quasar-factory-lib 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist/components/KMyButton/MyButton.vue.d.ts +27 -0
- package/dist/components/KMyButton/index.d.ts +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/plugins.d.ts +2 -0
- package/dist/i18n/en/index.d.ts +3 -0
- package/dist/i18n/es/index.d.ts +3 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/messages.d.ts +7 -0
- package/dist/i18n/translateKeys.d.ts +4 -0
- package/dist/index.d.ts +10 -0
- package/dist/layouts/MenuLayout.vue.d.ts +2 -0
- package/dist/quasar-factory-lib.js +5033 -0
- package/dist/quasar-factory-lib.umd.cjs +21 -0
- package/dist/router/index.d.ts +2 -0
- package/dist/router/routes.d.ts +3 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/plugins.d.ts +8 -0
- package/dist/vite.svg +1 -0
- package/package.json +106 -0
- package/src/App.vue +12 -0
- package/src/assets/vue.svg +1 -0
- package/src/boot/register.js +1 -0
- package/src/components/KMyButton/MyButton.vue +36 -0
- package/src/components/KMyButton/index.ts +18 -0
- package/src/components/index.ts +1 -0
- package/src/components/plugins.ts +4 -0
- package/src/css/app.scss +0 -0
- package/src/i18n/en/index.ts +6 -0
- package/src/i18n/es/index.ts +6 -0
- package/src/i18n/index.js +13 -0
- package/src/i18n/messages.js +8 -0
- package/src/i18n/translateKeys.ts +5 -0
- package/src/index.sass +0 -0
- package/src/index.ts +38 -0
- package/src/layouts/ComponentLayout.vue +10 -0
- package/src/layouts/MenuLayout.vue +16 -0
- package/src/main.ts +40 -0
- package/src/router/index.ts +22 -0
- package/src/router/routes.ts +10 -0
- package/src/style.css +78 -0
- package/src/types/index.ts +0 -0
- package/src/utils/index.ts +0 -0
- package/src/utils/plugins.ts +18 -0
- package/src/volar.d.ts +1 -0
|
@@ -0,0 +1,5033 @@
|
|
|
1
|
+
import { ref as dt, reactive as Nr, markRaw as Lr, defineComponent as at, computed as F, getCurrentInstance as Le, h as G, onBeforeUnmount as ca, Transition as ua, withDirectives as fa, createElementBlock as da, openBlock as _a, Fragment as an, createTextVNode as ma, createVNode as yr, effectScope as ga, shallowRef as pa, watch as Vt, isRef as ha, inject as Ea, onMounted as va, onUnmounted as ba, Text as Na } from "vue";
|
|
2
|
+
function sn(e, t, n, a) {
|
|
3
|
+
return Object.defineProperty(e, t, {
|
|
4
|
+
get: n,
|
|
5
|
+
set: a,
|
|
6
|
+
enumerable: !0
|
|
7
|
+
}), e;
|
|
8
|
+
}
|
|
9
|
+
const Ae = dt(
|
|
10
|
+
!1
|
|
11
|
+
);
|
|
12
|
+
let Wt;
|
|
13
|
+
function La(e, t) {
|
|
14
|
+
const n = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
|
|
15
|
+
return {
|
|
16
|
+
browser: n[5] || n[3] || n[1] || "",
|
|
17
|
+
version: n[4] || n[2] || "0",
|
|
18
|
+
platform: t[0] || ""
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function ya(e) {
|
|
22
|
+
return /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(silk)/.exec(e) || /(android)/.exec(e) || /(win)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || /(playbook)/.exec(e) || /(bb)/.exec(e) || /(blackberry)/.exec(e) || [];
|
|
23
|
+
}
|
|
24
|
+
const Tr = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
25
|
+
function Ta(e) {
|
|
26
|
+
const t = e.toLowerCase(), n = ya(t), a = La(t, n), r = {
|
|
27
|
+
mobile: !1,
|
|
28
|
+
desktop: !1,
|
|
29
|
+
cordova: !1,
|
|
30
|
+
capacitor: !1,
|
|
31
|
+
nativeMobile: !1,
|
|
32
|
+
// nativeMobileWrapper: void 0,
|
|
33
|
+
electron: !1,
|
|
34
|
+
bex: !1,
|
|
35
|
+
linux: !1,
|
|
36
|
+
mac: !1,
|
|
37
|
+
win: !1,
|
|
38
|
+
cros: !1,
|
|
39
|
+
chrome: !1,
|
|
40
|
+
firefox: !1,
|
|
41
|
+
opera: !1,
|
|
42
|
+
safari: !1,
|
|
43
|
+
vivaldi: !1,
|
|
44
|
+
edge: !1,
|
|
45
|
+
edgeChromium: !1,
|
|
46
|
+
ie: !1,
|
|
47
|
+
webkit: !1,
|
|
48
|
+
android: !1,
|
|
49
|
+
ios: !1,
|
|
50
|
+
ipad: !1,
|
|
51
|
+
iphone: !1,
|
|
52
|
+
ipod: !1,
|
|
53
|
+
kindle: !1,
|
|
54
|
+
winphone: !1,
|
|
55
|
+
blackberry: !1,
|
|
56
|
+
playbook: !1,
|
|
57
|
+
silk: !1
|
|
58
|
+
};
|
|
59
|
+
a.browser && (r[a.browser] = !0, r.version = a.version, r.versionNumber = parseInt(a.version, 10)), a.platform && (r[a.platform] = !0);
|
|
60
|
+
const s = r.android || r.ios || r.bb || r.blackberry || r.ipad || r.iphone || r.ipod || r.kindle || r.playbook || r.silk || r["windows phone"];
|
|
61
|
+
if (s === !0 || t.indexOf("mobile") !== -1 ? r.mobile = !0 : r.desktop = !0, r["windows phone"] && (r.winphone = !0, delete r["windows phone"]), r.edga || r.edgios || r.edg ? (r.edge = !0, a.browser = "edge") : r.crios ? (r.chrome = !0, a.browser = "chrome") : r.fxios && (r.firefox = !0, a.browser = "firefox"), (r.ipod || r.ipad || r.iphone) && (r.ios = !0), r.vivaldi && (a.browser = "vivaldi", r.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
|
|
62
|
+
(r.chrome || r.opr || r.safari || r.vivaldi || r.mobile === !0 && r.ios !== !0 && s !== !0) && (r.webkit = !0), r.opr && (a.browser = "opera", r.opera = !0), r.safari && (r.blackberry || r.bb ? (a.browser = "blackberry", r.blackberry = !0) : r.playbook ? (a.browser = "playbook", r.playbook = !0) : r.android ? (a.browser = "android", r.android = !0) : r.kindle ? (a.browser = "kindle", r.kindle = !0) : r.silk && (a.browser = "silk", r.silk = !0)), r.name = a.browser, r.platform = a.platform, t.indexOf("electron") !== -1)
|
|
63
|
+
r.electron = !0;
|
|
64
|
+
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
65
|
+
r.bex = !0;
|
|
66
|
+
else {
|
|
67
|
+
if (window.Capacitor !== void 0 ? (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova"), Ae.value === !0 && (Wt = { is: { ...r } }), Tr === !0 && r.mac === !0 && (r.desktop === !0 && r.safari === !0 || r.nativeMobile === !0 && r.android !== !0 && r.ios !== !0 && r.ipad !== !0)) {
|
|
68
|
+
delete r.mac, delete r.desktop;
|
|
69
|
+
const o = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
70
|
+
Object.assign(r, {
|
|
71
|
+
mobile: !0,
|
|
72
|
+
ios: !0,
|
|
73
|
+
platform: o,
|
|
74
|
+
[o]: !0
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
r.mobile !== !0 && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete r.desktop, r.mobile = !0);
|
|
78
|
+
}
|
|
79
|
+
return r;
|
|
80
|
+
}
|
|
81
|
+
const Ln = navigator.userAgent || navigator.vendor || window.opera, Oa = {
|
|
82
|
+
has: {
|
|
83
|
+
touch: !1,
|
|
84
|
+
webStorage: !1
|
|
85
|
+
},
|
|
86
|
+
within: { iframe: !1 }
|
|
87
|
+
}, _e = {
|
|
88
|
+
userAgent: Ln,
|
|
89
|
+
is: Ta(Ln),
|
|
90
|
+
has: {
|
|
91
|
+
touch: Tr
|
|
92
|
+
},
|
|
93
|
+
within: {
|
|
94
|
+
iframe: window.self !== window.top
|
|
95
|
+
}
|
|
96
|
+
}, Bt = {
|
|
97
|
+
install(e) {
|
|
98
|
+
const { $q: t } = e;
|
|
99
|
+
Ae.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
100
|
+
Object.assign(t.platform, _e), Ae.value = !1;
|
|
101
|
+
}), t.platform = Nr(this)) : t.platform = this;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
{
|
|
105
|
+
let e;
|
|
106
|
+
sn(_e.has, "webStorage", () => {
|
|
107
|
+
if (e !== void 0)
|
|
108
|
+
return e;
|
|
109
|
+
try {
|
|
110
|
+
if (window.localStorage)
|
|
111
|
+
return e = !0, !0;
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
return e = !1, !1;
|
|
115
|
+
}), Object.assign(Bt, _e), Ae.value === !0 && (Object.assign(Bt, Wt, Oa), Wt = null);
|
|
116
|
+
}
|
|
117
|
+
function on(e) {
|
|
118
|
+
return Lr(at(e));
|
|
119
|
+
}
|
|
120
|
+
function Ia(e) {
|
|
121
|
+
return Lr(e);
|
|
122
|
+
}
|
|
123
|
+
const gt = (e, t) => {
|
|
124
|
+
const n = Nr(e);
|
|
125
|
+
for (const a in e)
|
|
126
|
+
sn(
|
|
127
|
+
t,
|
|
128
|
+
a,
|
|
129
|
+
() => n[a],
|
|
130
|
+
(r) => {
|
|
131
|
+
n[a] = r;
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
return t;
|
|
135
|
+
}, st = {
|
|
136
|
+
hasPassive: !1,
|
|
137
|
+
passiveCapture: !0,
|
|
138
|
+
notPassiveCapture: !0
|
|
139
|
+
};
|
|
140
|
+
try {
|
|
141
|
+
const e = Object.defineProperty({}, "passive", {
|
|
142
|
+
get() {
|
|
143
|
+
Object.assign(st, {
|
|
144
|
+
hasPassive: !0,
|
|
145
|
+
passive: { passive: !0 },
|
|
146
|
+
notPassive: { passive: !1 },
|
|
147
|
+
passiveCapture: { passive: !0, capture: !0 },
|
|
148
|
+
notPassiveCapture: { passive: !1, capture: !0 }
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
153
|
+
} catch {
|
|
154
|
+
}
|
|
155
|
+
function Je() {
|
|
156
|
+
}
|
|
157
|
+
function ka(e) {
|
|
158
|
+
return e.touches && e.touches[0] ? e = e.touches[0] : e.changedTouches && e.changedTouches[0] ? e = e.changedTouches[0] : e.targetTouches && e.targetTouches[0] && (e = e.targetTouches[0]), {
|
|
159
|
+
top: e.clientY,
|
|
160
|
+
left: e.clientX
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function Or(e) {
|
|
164
|
+
e.stopPropagation();
|
|
165
|
+
}
|
|
166
|
+
function Sa(e) {
|
|
167
|
+
e.cancelable !== !1 && e.preventDefault();
|
|
168
|
+
}
|
|
169
|
+
function Fe(e) {
|
|
170
|
+
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
171
|
+
}
|
|
172
|
+
function Ca(e, t, n) {
|
|
173
|
+
const a = `__q_${t}_evt`;
|
|
174
|
+
e[a] = e[a] !== void 0 ? e[a].concat(n) : n, n.forEach((r) => {
|
|
175
|
+
r[0].addEventListener(r[1], e[r[2]], st[r[3]]);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
function wa(e, t) {
|
|
179
|
+
const n = `__q_${t}_evt`;
|
|
180
|
+
e[n] !== void 0 && (e[n].forEach((a) => {
|
|
181
|
+
a[0].removeEventListener(a[1], e[a[2]], st[a[3]]);
|
|
182
|
+
}), e[n] = void 0);
|
|
183
|
+
}
|
|
184
|
+
function Aa(e, t = 250, n) {
|
|
185
|
+
let a = null;
|
|
186
|
+
function r() {
|
|
187
|
+
const s = arguments, o = () => {
|
|
188
|
+
a = null, e.apply(this, s);
|
|
189
|
+
};
|
|
190
|
+
a !== null && clearTimeout(a), a = setTimeout(o, t);
|
|
191
|
+
}
|
|
192
|
+
return r.cancel = () => {
|
|
193
|
+
a !== null && clearTimeout(a);
|
|
194
|
+
}, r;
|
|
195
|
+
}
|
|
196
|
+
const Dt = ["sm", "md", "lg", "xl"], { passive: yn } = st, Pa = gt({
|
|
197
|
+
width: 0,
|
|
198
|
+
height: 0,
|
|
199
|
+
name: "xs",
|
|
200
|
+
sizes: {
|
|
201
|
+
sm: 600,
|
|
202
|
+
md: 1024,
|
|
203
|
+
lg: 1440,
|
|
204
|
+
xl: 1920
|
|
205
|
+
},
|
|
206
|
+
lt: {
|
|
207
|
+
sm: !0,
|
|
208
|
+
md: !0,
|
|
209
|
+
lg: !0,
|
|
210
|
+
xl: !0
|
|
211
|
+
},
|
|
212
|
+
gt: {
|
|
213
|
+
xs: !1,
|
|
214
|
+
sm: !1,
|
|
215
|
+
md: !1,
|
|
216
|
+
lg: !1
|
|
217
|
+
},
|
|
218
|
+
xs: !0,
|
|
219
|
+
sm: !1,
|
|
220
|
+
md: !1,
|
|
221
|
+
lg: !1,
|
|
222
|
+
xl: !1
|
|
223
|
+
}, {
|
|
224
|
+
setSizes: Je,
|
|
225
|
+
setDebounce: Je,
|
|
226
|
+
install({ $q: e, onSSRHydrated: t }) {
|
|
227
|
+
if (e.screen = this, this.__installed === !0) {
|
|
228
|
+
e.config.screen !== void 0 && (e.config.screen.bodyClasses === !1 ? document.body.classList.remove(`screen--${this.name}`) : this.__update(!0));
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
const { visualViewport: n } = window, a = n || window, r = document.scrollingElement || document.documentElement, s = n === void 0 || _e.is.mobile === !0 ? () => [
|
|
232
|
+
Math.max(window.innerWidth, r.clientWidth),
|
|
233
|
+
Math.max(window.innerHeight, r.clientHeight)
|
|
234
|
+
] : () => [
|
|
235
|
+
n.width * n.scale + window.innerWidth - r.clientWidth,
|
|
236
|
+
n.height * n.scale + window.innerHeight - r.clientHeight
|
|
237
|
+
], o = e.config.screen !== void 0 && e.config.screen.bodyClasses === !0;
|
|
238
|
+
this.__update = (v) => {
|
|
239
|
+
const [f, O] = s();
|
|
240
|
+
if (O !== this.height && (this.height = O), f !== this.width)
|
|
241
|
+
this.width = f;
|
|
242
|
+
else if (v !== !0)
|
|
243
|
+
return;
|
|
244
|
+
let S = this.sizes;
|
|
245
|
+
this.gt.xs = f >= S.sm, this.gt.sm = f >= S.md, this.gt.md = f >= S.lg, this.gt.lg = f >= S.xl, this.lt.sm = f < S.sm, this.lt.md = f < S.md, this.lt.lg = f < S.lg, this.lt.xl = f < S.xl, this.xs = this.lt.sm, this.sm = this.gt.xs === !0 && this.lt.md === !0, this.md = this.gt.sm === !0 && this.lt.lg === !0, this.lg = this.gt.md === !0 && this.lt.xl === !0, this.xl = this.gt.lg, S = this.xs === !0 && "xs" || this.sm === !0 && "sm" || this.md === !0 && "md" || this.lg === !0 && "lg" || "xl", S !== this.name && (o === !0 && (document.body.classList.remove(`screen--${this.name}`), document.body.classList.add(`screen--${S}`)), this.name = S);
|
|
246
|
+
};
|
|
247
|
+
let i, u = {}, _ = 16;
|
|
248
|
+
this.setSizes = (v) => {
|
|
249
|
+
Dt.forEach((f) => {
|
|
250
|
+
v[f] !== void 0 && (u[f] = v[f]);
|
|
251
|
+
});
|
|
252
|
+
}, this.setDebounce = (v) => {
|
|
253
|
+
_ = v;
|
|
254
|
+
};
|
|
255
|
+
const h = () => {
|
|
256
|
+
const v = getComputedStyle(document.body);
|
|
257
|
+
v.getPropertyValue("--q-size-sm") && Dt.forEach((f) => {
|
|
258
|
+
this.sizes[f] = parseInt(v.getPropertyValue(`--q-size-${f}`), 10);
|
|
259
|
+
}), this.setSizes = (f) => {
|
|
260
|
+
Dt.forEach((O) => {
|
|
261
|
+
f[O] && (this.sizes[O] = f[O]);
|
|
262
|
+
}), this.__update(!0);
|
|
263
|
+
}, this.setDebounce = (f) => {
|
|
264
|
+
i !== void 0 && a.removeEventListener("resize", i, yn), i = f > 0 ? Aa(this.__update, f) : this.__update, a.addEventListener("resize", i, yn);
|
|
265
|
+
}, this.setDebounce(_), Object.keys(u).length !== 0 ? (this.setSizes(u), u = void 0) : this.__update(), o === !0 && this.name === "xs" && document.body.classList.add("screen--xs");
|
|
266
|
+
};
|
|
267
|
+
Ae.value === !0 ? t.push(h) : h();
|
|
268
|
+
}
|
|
269
|
+
}), te = gt({
|
|
270
|
+
isActive: !1,
|
|
271
|
+
mode: !1
|
|
272
|
+
}, {
|
|
273
|
+
__media: void 0,
|
|
274
|
+
set(e) {
|
|
275
|
+
te.mode = e, e === "auto" ? (te.__media === void 0 && (te.__media = window.matchMedia("(prefers-color-scheme: dark)"), te.__updateMedia = () => {
|
|
276
|
+
te.set("auto");
|
|
277
|
+
}, te.__media.addListener(te.__updateMedia)), e = te.__media.matches) : te.__media !== void 0 && (te.__media.removeListener(te.__updateMedia), te.__media = void 0), te.isActive = e === !0, document.body.classList.remove(`body--${e === !0 ? "light" : "dark"}`), document.body.classList.add(`body--${e === !0 ? "dark" : "light"}`);
|
|
278
|
+
},
|
|
279
|
+
toggle() {
|
|
280
|
+
te.set(te.isActive === !1);
|
|
281
|
+
},
|
|
282
|
+
install({ $q: e, ssrContext: t }) {
|
|
283
|
+
const { dark: n } = e.config;
|
|
284
|
+
e.dark = this, this.__installed !== !0 && this.set(n !== void 0 ? n : !1);
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
function Ra(e, t, n = document.body) {
|
|
288
|
+
if (typeof e != "string")
|
|
289
|
+
throw new TypeError("Expected a string as propName");
|
|
290
|
+
if (typeof t != "string")
|
|
291
|
+
throw new TypeError("Expected a string as value");
|
|
292
|
+
if (!(n instanceof Element))
|
|
293
|
+
throw new TypeError("Expected a DOM element");
|
|
294
|
+
n.style.setProperty(`--q-${e}`, t);
|
|
295
|
+
}
|
|
296
|
+
let Ir = !1;
|
|
297
|
+
function Da(e) {
|
|
298
|
+
Ir = e.isComposing === !0;
|
|
299
|
+
}
|
|
300
|
+
function Ma(e) {
|
|
301
|
+
return Ir === !0 || e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
302
|
+
}
|
|
303
|
+
function Ht(e, t) {
|
|
304
|
+
return Ma(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
305
|
+
}
|
|
306
|
+
function kr(e) {
|
|
307
|
+
if (e.ios === !0) return "ios";
|
|
308
|
+
if (e.android === !0) return "android";
|
|
309
|
+
}
|
|
310
|
+
function Fa({ is: e, has: t, within: n }, a) {
|
|
311
|
+
const r = [
|
|
312
|
+
e.desktop === !0 ? "desktop" : "mobile",
|
|
313
|
+
`${t.touch === !1 ? "no-" : ""}touch`
|
|
314
|
+
];
|
|
315
|
+
if (e.mobile === !0) {
|
|
316
|
+
const s = kr(e);
|
|
317
|
+
s !== void 0 && r.push("platform-" + s);
|
|
318
|
+
}
|
|
319
|
+
if (e.nativeMobile === !0) {
|
|
320
|
+
const s = e.nativeMobileWrapper;
|
|
321
|
+
r.push(s), r.push("native-mobile"), e.ios === !0 && (a[s] === void 0 || a[s].iosStatusBarPadding !== !1) && r.push("q-ios-padding");
|
|
322
|
+
} else e.electron === !0 ? r.push("electron") : e.bex === !0 && r.push("bex");
|
|
323
|
+
return n.iframe === !0 && r.push("within-iframe"), r;
|
|
324
|
+
}
|
|
325
|
+
function xa() {
|
|
326
|
+
const { is: e } = _e, t = document.body.className, n = new Set(t.replace(/ {2}/g, " ").split(" "));
|
|
327
|
+
if (e.nativeMobile !== !0 && e.electron !== !0 && e.bex !== !0) {
|
|
328
|
+
if (e.desktop === !0)
|
|
329
|
+
n.delete("mobile"), n.delete("platform-ios"), n.delete("platform-android"), n.add("desktop");
|
|
330
|
+
else if (e.mobile === !0) {
|
|
331
|
+
n.delete("desktop"), n.add("mobile"), n.delete("platform-ios"), n.delete("platform-android");
|
|
332
|
+
const r = kr(e);
|
|
333
|
+
r !== void 0 && n.add(`platform-${r}`);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
_e.has.touch === !0 && (n.delete("no-touch"), n.add("touch")), _e.within.iframe === !0 && n.add("within-iframe");
|
|
337
|
+
const a = Array.from(n).join(" ");
|
|
338
|
+
t !== a && (document.body.className = a);
|
|
339
|
+
}
|
|
340
|
+
function Ua(e) {
|
|
341
|
+
for (const t in e)
|
|
342
|
+
Ra(t, e[t]);
|
|
343
|
+
}
|
|
344
|
+
const $a = {
|
|
345
|
+
install(e) {
|
|
346
|
+
if (this.__installed !== !0) {
|
|
347
|
+
if (Ae.value === !0)
|
|
348
|
+
xa();
|
|
349
|
+
else {
|
|
350
|
+
const { $q: t } = e;
|
|
351
|
+
t.config.brand !== void 0 && Ua(t.config.brand);
|
|
352
|
+
const n = Fa(_e, t.config);
|
|
353
|
+
document.body.classList.add.apply(document.body.classList, n);
|
|
354
|
+
}
|
|
355
|
+
_e.is.ios === !0 && document.body.addEventListener("touchstart", Je), window.addEventListener("keydown", Da, !0);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}, Sr = () => !0;
|
|
359
|
+
function Va(e) {
|
|
360
|
+
return typeof e == "string" && e !== "" && e !== "/" && e !== "#/";
|
|
361
|
+
}
|
|
362
|
+
function Wa(e) {
|
|
363
|
+
return e.startsWith("#") === !0 && (e = e.substring(1)), e.startsWith("/") === !1 && (e = "/" + e), e.endsWith("/") === !0 && (e = e.substring(0, e.length - 1)), "#" + e;
|
|
364
|
+
}
|
|
365
|
+
function Ba(e) {
|
|
366
|
+
if (e.backButtonExit === !1)
|
|
367
|
+
return () => !1;
|
|
368
|
+
if (e.backButtonExit === "*")
|
|
369
|
+
return Sr;
|
|
370
|
+
const t = ["#/"];
|
|
371
|
+
return Array.isArray(e.backButtonExit) === !0 && t.push(
|
|
372
|
+
...e.backButtonExit.filter(Va).map(Wa)
|
|
373
|
+
), () => t.includes(window.location.hash);
|
|
374
|
+
}
|
|
375
|
+
const Ha = {
|
|
376
|
+
__history: [],
|
|
377
|
+
add: Je,
|
|
378
|
+
remove: Je,
|
|
379
|
+
install({ $q: e }) {
|
|
380
|
+
if (this.__installed === !0) return;
|
|
381
|
+
const { cordova: t, capacitor: n } = _e.is;
|
|
382
|
+
if (t !== !0 && n !== !0) return;
|
|
383
|
+
const a = e.config[t === !0 ? "cordova" : "capacitor"];
|
|
384
|
+
if (a !== void 0 && a.backButton === !1 || // if we're on Capacitor mode
|
|
385
|
+
n === !0 && (window.Capacitor === void 0 || window.Capacitor.Plugins.App === void 0)) return;
|
|
386
|
+
this.add = (o) => {
|
|
387
|
+
o.condition === void 0 && (o.condition = Sr), this.__history.push(o);
|
|
388
|
+
}, this.remove = (o) => {
|
|
389
|
+
const i = this.__history.indexOf(o);
|
|
390
|
+
i >= 0 && this.__history.splice(i, 1);
|
|
391
|
+
};
|
|
392
|
+
const r = Ba(
|
|
393
|
+
Object.assign(
|
|
394
|
+
{ backButtonExit: !0 },
|
|
395
|
+
a
|
|
396
|
+
)
|
|
397
|
+
), s = () => {
|
|
398
|
+
if (this.__history.length) {
|
|
399
|
+
const o = this.__history[this.__history.length - 1];
|
|
400
|
+
o.condition() === !0 && (this.__history.pop(), o.handler());
|
|
401
|
+
} else r() === !0 ? navigator.app.exitApp() : window.history.back();
|
|
402
|
+
};
|
|
403
|
+
t === !0 ? document.addEventListener("deviceready", () => {
|
|
404
|
+
document.addEventListener("backbutton", s, !1);
|
|
405
|
+
}) : window.Capacitor.Plugins.App.addListener("backButton", s);
|
|
406
|
+
}
|
|
407
|
+
}, Tn = {
|
|
408
|
+
isoName: "en-US",
|
|
409
|
+
nativeName: "English (US)",
|
|
410
|
+
label: {
|
|
411
|
+
clear: "Clear",
|
|
412
|
+
ok: "OK",
|
|
413
|
+
cancel: "Cancel",
|
|
414
|
+
close: "Close",
|
|
415
|
+
set: "Set",
|
|
416
|
+
select: "Select",
|
|
417
|
+
reset: "Reset",
|
|
418
|
+
remove: "Remove",
|
|
419
|
+
update: "Update",
|
|
420
|
+
create: "Create",
|
|
421
|
+
search: "Search",
|
|
422
|
+
filter: "Filter",
|
|
423
|
+
refresh: "Refresh",
|
|
424
|
+
expand: (e) => e ? `Expand "${e}"` : "Expand",
|
|
425
|
+
collapse: (e) => e ? `Collapse "${e}"` : "Collapse"
|
|
426
|
+
},
|
|
427
|
+
date: {
|
|
428
|
+
days: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
429
|
+
daysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
|
|
430
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
431
|
+
monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
|
|
432
|
+
firstDayOfWeek: 0,
|
|
433
|
+
// 0-6, 0 - Sunday, 1 Monday, ...
|
|
434
|
+
format24h: !1,
|
|
435
|
+
pluralDay: "days"
|
|
436
|
+
},
|
|
437
|
+
table: {
|
|
438
|
+
noData: "No data available",
|
|
439
|
+
noResults: "No matching records found",
|
|
440
|
+
loading: "Loading...",
|
|
441
|
+
selectedRecords: (e) => e === 1 ? "1 record selected." : (e === 0 ? "No" : e) + " records selected.",
|
|
442
|
+
recordsPerPage: "Records per page:",
|
|
443
|
+
allRows: "All",
|
|
444
|
+
pagination: (e, t, n) => e + "-" + t + " of " + n,
|
|
445
|
+
columns: "Columns"
|
|
446
|
+
},
|
|
447
|
+
editor: {
|
|
448
|
+
url: "URL",
|
|
449
|
+
bold: "Bold",
|
|
450
|
+
italic: "Italic",
|
|
451
|
+
strikethrough: "Strikethrough",
|
|
452
|
+
underline: "Underline",
|
|
453
|
+
unorderedList: "Unordered List",
|
|
454
|
+
orderedList: "Ordered List",
|
|
455
|
+
subscript: "Subscript",
|
|
456
|
+
superscript: "Superscript",
|
|
457
|
+
hyperlink: "Hyperlink",
|
|
458
|
+
toggleFullscreen: "Toggle Fullscreen",
|
|
459
|
+
quote: "Quote",
|
|
460
|
+
left: "Left align",
|
|
461
|
+
center: "Center align",
|
|
462
|
+
right: "Right align",
|
|
463
|
+
justify: "Justify align",
|
|
464
|
+
print: "Print",
|
|
465
|
+
outdent: "Decrease indentation",
|
|
466
|
+
indent: "Increase indentation",
|
|
467
|
+
removeFormat: "Remove formatting",
|
|
468
|
+
formatting: "Formatting",
|
|
469
|
+
fontSize: "Font Size",
|
|
470
|
+
align: "Align",
|
|
471
|
+
hr: "Insert Horizontal Rule",
|
|
472
|
+
undo: "Undo",
|
|
473
|
+
redo: "Redo",
|
|
474
|
+
heading1: "Heading 1",
|
|
475
|
+
heading2: "Heading 2",
|
|
476
|
+
heading3: "Heading 3",
|
|
477
|
+
heading4: "Heading 4",
|
|
478
|
+
heading5: "Heading 5",
|
|
479
|
+
heading6: "Heading 6",
|
|
480
|
+
paragraph: "Paragraph",
|
|
481
|
+
code: "Code",
|
|
482
|
+
size1: "Very small",
|
|
483
|
+
size2: "A bit small",
|
|
484
|
+
size3: "Normal",
|
|
485
|
+
size4: "Medium-large",
|
|
486
|
+
size5: "Big",
|
|
487
|
+
size6: "Very big",
|
|
488
|
+
size7: "Maximum",
|
|
489
|
+
defaultFont: "Default Font",
|
|
490
|
+
viewSource: "View Source"
|
|
491
|
+
},
|
|
492
|
+
tree: {
|
|
493
|
+
noNodes: "No nodes available",
|
|
494
|
+
noResults: "No matching nodes found"
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
function On() {
|
|
498
|
+
const e = Array.isArray(navigator.languages) === !0 && navigator.languages.length !== 0 ? navigator.languages[0] : navigator.language;
|
|
499
|
+
if (typeof e == "string")
|
|
500
|
+
return e.split(/[-_]/).map((t, n) => n === 0 ? t.toLowerCase() : n > 1 || t.length < 4 ? t.toUpperCase() : t[0].toUpperCase() + t.slice(1).toLowerCase()).join("-");
|
|
501
|
+
}
|
|
502
|
+
const be = gt({
|
|
503
|
+
__qLang: {}
|
|
504
|
+
}, {
|
|
505
|
+
// props: object
|
|
506
|
+
// __langConfig: object
|
|
507
|
+
getLocale: On,
|
|
508
|
+
set(e = Tn, t) {
|
|
509
|
+
const n = {
|
|
510
|
+
...e,
|
|
511
|
+
rtl: e.rtl === !0,
|
|
512
|
+
getLocale: On
|
|
513
|
+
};
|
|
514
|
+
{
|
|
515
|
+
if (n.set = be.set, be.__langConfig === void 0 || be.__langConfig.noHtmlAttrs !== !0) {
|
|
516
|
+
const a = document.documentElement;
|
|
517
|
+
a.setAttribute("dir", n.rtl === !0 ? "rtl" : "ltr"), a.setAttribute("lang", n.isoName);
|
|
518
|
+
}
|
|
519
|
+
Object.assign(be.__qLang, n);
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
install({ $q: e, lang: t, ssrContext: n }) {
|
|
523
|
+
e.lang = be.__qLang, be.__langConfig = e.config.lang, this.__installed === !0 ? t !== void 0 && this.set(t) : (this.props = new Proxy(this.__qLang, {
|
|
524
|
+
get() {
|
|
525
|
+
return Reflect.get(...arguments);
|
|
526
|
+
},
|
|
527
|
+
ownKeys(a) {
|
|
528
|
+
return Reflect.ownKeys(a).filter((r) => r !== "set" && r !== "getLocale");
|
|
529
|
+
}
|
|
530
|
+
}), this.set(t || Tn));
|
|
531
|
+
}
|
|
532
|
+
}), ja = {
|
|
533
|
+
name: "material-icons",
|
|
534
|
+
type: {
|
|
535
|
+
positive: "check_circle",
|
|
536
|
+
negative: "warning",
|
|
537
|
+
info: "info",
|
|
538
|
+
warning: "priority_high"
|
|
539
|
+
},
|
|
540
|
+
arrow: {
|
|
541
|
+
up: "arrow_upward",
|
|
542
|
+
right: "arrow_forward",
|
|
543
|
+
down: "arrow_downward",
|
|
544
|
+
left: "arrow_back",
|
|
545
|
+
dropdown: "arrow_drop_down"
|
|
546
|
+
},
|
|
547
|
+
chevron: {
|
|
548
|
+
left: "chevron_left",
|
|
549
|
+
right: "chevron_right"
|
|
550
|
+
},
|
|
551
|
+
colorPicker: {
|
|
552
|
+
spectrum: "gradient",
|
|
553
|
+
tune: "tune",
|
|
554
|
+
palette: "style"
|
|
555
|
+
},
|
|
556
|
+
pullToRefresh: {
|
|
557
|
+
icon: "refresh"
|
|
558
|
+
},
|
|
559
|
+
carousel: {
|
|
560
|
+
left: "chevron_left",
|
|
561
|
+
right: "chevron_right",
|
|
562
|
+
up: "keyboard_arrow_up",
|
|
563
|
+
down: "keyboard_arrow_down",
|
|
564
|
+
navigationIcon: "lens"
|
|
565
|
+
},
|
|
566
|
+
chip: {
|
|
567
|
+
remove: "cancel",
|
|
568
|
+
selected: "check"
|
|
569
|
+
},
|
|
570
|
+
datetime: {
|
|
571
|
+
arrowLeft: "chevron_left",
|
|
572
|
+
arrowRight: "chevron_right",
|
|
573
|
+
now: "access_time",
|
|
574
|
+
today: "today"
|
|
575
|
+
},
|
|
576
|
+
editor: {
|
|
577
|
+
bold: "format_bold",
|
|
578
|
+
italic: "format_italic",
|
|
579
|
+
strikethrough: "strikethrough_s",
|
|
580
|
+
underline: "format_underlined",
|
|
581
|
+
unorderedList: "format_list_bulleted",
|
|
582
|
+
orderedList: "format_list_numbered",
|
|
583
|
+
subscript: "vertical_align_bottom",
|
|
584
|
+
superscript: "vertical_align_top",
|
|
585
|
+
hyperlink: "link",
|
|
586
|
+
toggleFullscreen: "fullscreen",
|
|
587
|
+
quote: "format_quote",
|
|
588
|
+
left: "format_align_left",
|
|
589
|
+
center: "format_align_center",
|
|
590
|
+
right: "format_align_right",
|
|
591
|
+
justify: "format_align_justify",
|
|
592
|
+
print: "print",
|
|
593
|
+
outdent: "format_indent_decrease",
|
|
594
|
+
indent: "format_indent_increase",
|
|
595
|
+
removeFormat: "format_clear",
|
|
596
|
+
formatting: "text_format",
|
|
597
|
+
fontSize: "format_size",
|
|
598
|
+
align: "format_align_left",
|
|
599
|
+
hr: "remove",
|
|
600
|
+
undo: "undo",
|
|
601
|
+
redo: "redo",
|
|
602
|
+
heading: "format_size",
|
|
603
|
+
code: "code",
|
|
604
|
+
size: "format_size",
|
|
605
|
+
font: "font_download",
|
|
606
|
+
viewSource: "code"
|
|
607
|
+
},
|
|
608
|
+
expansionItem: {
|
|
609
|
+
icon: "keyboard_arrow_down",
|
|
610
|
+
denseIcon: "arrow_drop_down"
|
|
611
|
+
},
|
|
612
|
+
fab: {
|
|
613
|
+
icon: "add",
|
|
614
|
+
activeIcon: "close"
|
|
615
|
+
},
|
|
616
|
+
field: {
|
|
617
|
+
clear: "cancel",
|
|
618
|
+
error: "error"
|
|
619
|
+
},
|
|
620
|
+
pagination: {
|
|
621
|
+
first: "first_page",
|
|
622
|
+
prev: "keyboard_arrow_left",
|
|
623
|
+
next: "keyboard_arrow_right",
|
|
624
|
+
last: "last_page"
|
|
625
|
+
},
|
|
626
|
+
rating: {
|
|
627
|
+
icon: "grade"
|
|
628
|
+
},
|
|
629
|
+
stepper: {
|
|
630
|
+
done: "check",
|
|
631
|
+
active: "edit",
|
|
632
|
+
error: "warning"
|
|
633
|
+
},
|
|
634
|
+
tabs: {
|
|
635
|
+
left: "chevron_left",
|
|
636
|
+
right: "chevron_right",
|
|
637
|
+
up: "keyboard_arrow_up",
|
|
638
|
+
down: "keyboard_arrow_down"
|
|
639
|
+
},
|
|
640
|
+
table: {
|
|
641
|
+
arrowUp: "arrow_upward",
|
|
642
|
+
warning: "warning",
|
|
643
|
+
firstPage: "first_page",
|
|
644
|
+
prevPage: "chevron_left",
|
|
645
|
+
nextPage: "chevron_right",
|
|
646
|
+
lastPage: "last_page"
|
|
647
|
+
},
|
|
648
|
+
tree: {
|
|
649
|
+
icon: "play_arrow"
|
|
650
|
+
},
|
|
651
|
+
uploader: {
|
|
652
|
+
done: "done",
|
|
653
|
+
clear: "clear",
|
|
654
|
+
add: "add_box",
|
|
655
|
+
upload: "cloud_upload",
|
|
656
|
+
removeQueue: "clear_all",
|
|
657
|
+
removeUploaded: "done_all"
|
|
658
|
+
}
|
|
659
|
+
}, _t = gt({
|
|
660
|
+
iconMapFn: null,
|
|
661
|
+
__qIconSet: {}
|
|
662
|
+
}, {
|
|
663
|
+
// props: object
|
|
664
|
+
set(e, t) {
|
|
665
|
+
const n = { ...e };
|
|
666
|
+
n.set = _t.set, Object.assign(_t.__qIconSet, n);
|
|
667
|
+
},
|
|
668
|
+
install({ $q: e, iconSet: t, ssrContext: n }) {
|
|
669
|
+
e.config.iconMapFn !== void 0 && (this.iconMapFn = e.config.iconMapFn), e.iconSet = this.__qIconSet, sn(e, "iconMapFn", () => this.iconMapFn, (a) => {
|
|
670
|
+
this.iconMapFn = a;
|
|
671
|
+
}), this.__installed === !0 ? t !== void 0 && this.set(t) : (this.props = new Proxy(this.__qIconSet, {
|
|
672
|
+
get() {
|
|
673
|
+
return Reflect.get(...arguments);
|
|
674
|
+
},
|
|
675
|
+
ownKeys(a) {
|
|
676
|
+
return Reflect.ownKeys(a).filter((r) => r !== "set");
|
|
677
|
+
}
|
|
678
|
+
}), this.set(t || ja));
|
|
679
|
+
}
|
|
680
|
+
}), Ga = "_q_", In = {};
|
|
681
|
+
let Cr = !1;
|
|
682
|
+
function qa() {
|
|
683
|
+
Cr = !0;
|
|
684
|
+
}
|
|
685
|
+
function kn(e) {
|
|
686
|
+
return e !== null && typeof e == "object" && Array.isArray(e) !== !0;
|
|
687
|
+
}
|
|
688
|
+
const Sn = [
|
|
689
|
+
Bt,
|
|
690
|
+
$a,
|
|
691
|
+
te,
|
|
692
|
+
Pa,
|
|
693
|
+
Ha,
|
|
694
|
+
be,
|
|
695
|
+
_t
|
|
696
|
+
];
|
|
697
|
+
function Cn(e, t) {
|
|
698
|
+
t.forEach((n) => {
|
|
699
|
+
n.install(e), n.__installed = !0;
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
function Ka(e, t, n) {
|
|
703
|
+
e.config.globalProperties.$q = n.$q, e.provide(Ga, n.$q), Cn(n, Sn), t.components !== void 0 && Object.values(t.components).forEach((a) => {
|
|
704
|
+
kn(a) === !0 && a.name !== void 0 && e.component(a.name, a);
|
|
705
|
+
}), t.directives !== void 0 && Object.values(t.directives).forEach((a) => {
|
|
706
|
+
kn(a) === !0 && a.name !== void 0 && e.directive(a.name, a);
|
|
707
|
+
}), t.plugins !== void 0 && Cn(
|
|
708
|
+
n,
|
|
709
|
+
Object.values(t.plugins).filter(
|
|
710
|
+
(a) => typeof a.install == "function" && Sn.includes(a) === !1
|
|
711
|
+
)
|
|
712
|
+
), Ae.value === !0 && (n.$q.onSSRHydrated = () => {
|
|
713
|
+
n.onSSRHydrated.forEach((a) => {
|
|
714
|
+
a();
|
|
715
|
+
}), n.$q.onSSRHydrated = () => {
|
|
716
|
+
};
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
const Ya = function(e, t = {}) {
|
|
720
|
+
const n = { version: "2.17.7" };
|
|
721
|
+
Cr === !1 ? (t.config !== void 0 && Object.assign(In, t.config), n.config = { ...In }, qa()) : n.config = t.config || {}, Ka(e, t, {
|
|
722
|
+
parentApp: e,
|
|
723
|
+
$q: n,
|
|
724
|
+
lang: t.lang,
|
|
725
|
+
iconSet: t.iconSet,
|
|
726
|
+
onSSRHydrated: []
|
|
727
|
+
});
|
|
728
|
+
}, Xa = {
|
|
729
|
+
name: "Quasar",
|
|
730
|
+
version: "2.17.7",
|
|
731
|
+
install: Ya,
|
|
732
|
+
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
733
|
+
// We provide a deprecated fallback here
|
|
734
|
+
lang: be,
|
|
735
|
+
// TODO: remove in Qv3 (should only be used through the plugin)
|
|
736
|
+
// We provide a deprecated fallback here
|
|
737
|
+
iconSet: _t
|
|
738
|
+
}, jt = {
|
|
739
|
+
xs: 18,
|
|
740
|
+
sm: 24,
|
|
741
|
+
md: 32,
|
|
742
|
+
lg: 38,
|
|
743
|
+
xl: 46
|
|
744
|
+
}, wr = {
|
|
745
|
+
size: String
|
|
746
|
+
};
|
|
747
|
+
function Ar(e, t = jt) {
|
|
748
|
+
return F(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
749
|
+
}
|
|
750
|
+
function Qa(e, t) {
|
|
751
|
+
return e !== void 0 && e() || t;
|
|
752
|
+
}
|
|
753
|
+
function Qe(e, t) {
|
|
754
|
+
return e !== void 0 ? t.concat(e()) : t;
|
|
755
|
+
}
|
|
756
|
+
const wn = "0 0 24 24", An = (e) => e, Mt = (e) => `ionicons ${e}`, Pr = {
|
|
757
|
+
"mdi-": (e) => `mdi ${e}`,
|
|
758
|
+
"icon-": An,
|
|
759
|
+
// fontawesome equiv
|
|
760
|
+
"bt-": (e) => `bt ${e}`,
|
|
761
|
+
"eva-": (e) => `eva ${e}`,
|
|
762
|
+
"ion-md": Mt,
|
|
763
|
+
"ion-ios": Mt,
|
|
764
|
+
"ion-logo": Mt,
|
|
765
|
+
"iconfont ": An,
|
|
766
|
+
"ti-": (e) => `themify-icon ${e}`,
|
|
767
|
+
"bi-": (e) => `bootstrap-icons ${e}`
|
|
768
|
+
}, Rr = {
|
|
769
|
+
o_: "-outlined",
|
|
770
|
+
r_: "-round",
|
|
771
|
+
s_: "-sharp"
|
|
772
|
+
}, Dr = {
|
|
773
|
+
sym_o_: "-outlined",
|
|
774
|
+
sym_r_: "-rounded",
|
|
775
|
+
sym_s_: "-sharp"
|
|
776
|
+
}, Ja = new RegExp("^(" + Object.keys(Pr).join("|") + ")"), za = new RegExp("^(" + Object.keys(Rr).join("|") + ")"), Pn = new RegExp("^(" + Object.keys(Dr).join("|") + ")"), Za = /^[Mm]\s?[-+]?\.?\d/, es = /^img:/, ts = /^svguse:/, ns = /^ion-/, rs = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, Rn = on({
|
|
777
|
+
name: "QIcon",
|
|
778
|
+
props: {
|
|
779
|
+
...wr,
|
|
780
|
+
tag: {
|
|
781
|
+
type: String,
|
|
782
|
+
default: "i"
|
|
783
|
+
},
|
|
784
|
+
name: String,
|
|
785
|
+
color: String,
|
|
786
|
+
left: Boolean,
|
|
787
|
+
right: Boolean
|
|
788
|
+
},
|
|
789
|
+
setup(e, { slots: t }) {
|
|
790
|
+
const { proxy: { $q: n } } = Le(), a = Ar(e), r = F(
|
|
791
|
+
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
792
|
+
), s = F(() => {
|
|
793
|
+
let o, i = e.name;
|
|
794
|
+
if (i === "none" || !i)
|
|
795
|
+
return { none: !0 };
|
|
796
|
+
if (n.iconMapFn !== null) {
|
|
797
|
+
const h = n.iconMapFn(i);
|
|
798
|
+
if (h !== void 0)
|
|
799
|
+
if (h.icon !== void 0) {
|
|
800
|
+
if (i = h.icon, i === "none" || !i)
|
|
801
|
+
return { none: !0 };
|
|
802
|
+
} else
|
|
803
|
+
return {
|
|
804
|
+
cls: h.cls,
|
|
805
|
+
content: h.content !== void 0 ? h.content : " "
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
if (Za.test(i) === !0) {
|
|
809
|
+
const [h, v = wn] = i.split("|");
|
|
810
|
+
return {
|
|
811
|
+
svg: !0,
|
|
812
|
+
viewBox: v,
|
|
813
|
+
nodes: h.split("&&").map((f) => {
|
|
814
|
+
const [O, S, k] = f.split("@@");
|
|
815
|
+
return G("path", { style: S, d: O, transform: k });
|
|
816
|
+
})
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
if (es.test(i) === !0)
|
|
820
|
+
return {
|
|
821
|
+
img: !0,
|
|
822
|
+
src: i.substring(4)
|
|
823
|
+
};
|
|
824
|
+
if (ts.test(i) === !0) {
|
|
825
|
+
const [h, v = wn] = i.split("|");
|
|
826
|
+
return {
|
|
827
|
+
svguse: !0,
|
|
828
|
+
src: h.substring(7),
|
|
829
|
+
viewBox: v
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
let u = " ";
|
|
833
|
+
const _ = i.match(Ja);
|
|
834
|
+
if (_ !== null)
|
|
835
|
+
o = Pr[_[1]](i);
|
|
836
|
+
else if (rs.test(i) === !0)
|
|
837
|
+
o = i;
|
|
838
|
+
else if (ns.test(i) === !0)
|
|
839
|
+
o = `ionicons ion-${n.platform.is.ios === !0 ? "ios" : "md"}${i.substring(3)}`;
|
|
840
|
+
else if (Pn.test(i) === !0) {
|
|
841
|
+
o = "notranslate material-symbols";
|
|
842
|
+
const h = i.match(Pn);
|
|
843
|
+
h !== null && (i = i.substring(6), o += Dr[h[1]]), u = i;
|
|
844
|
+
} else {
|
|
845
|
+
o = "notranslate material-icons";
|
|
846
|
+
const h = i.match(za);
|
|
847
|
+
h !== null && (i = i.substring(2), o += Rr[h[1]]), u = i;
|
|
848
|
+
}
|
|
849
|
+
return {
|
|
850
|
+
cls: o,
|
|
851
|
+
content: u
|
|
852
|
+
};
|
|
853
|
+
});
|
|
854
|
+
return () => {
|
|
855
|
+
const o = {
|
|
856
|
+
class: r.value,
|
|
857
|
+
style: a.value,
|
|
858
|
+
"aria-hidden": "true",
|
|
859
|
+
role: "presentation"
|
|
860
|
+
};
|
|
861
|
+
return s.value.none === !0 ? G(e.tag, o, Qa(t.default)) : s.value.img === !0 ? G(e.tag, o, Qe(t.default, [
|
|
862
|
+
G("img", { src: s.value.src })
|
|
863
|
+
])) : s.value.svg === !0 ? G(e.tag, o, Qe(t.default, [
|
|
864
|
+
G("svg", {
|
|
865
|
+
viewBox: s.value.viewBox || "0 0 24 24"
|
|
866
|
+
}, s.value.nodes)
|
|
867
|
+
])) : s.value.svguse === !0 ? G(e.tag, o, Qe(t.default, [
|
|
868
|
+
G("svg", {
|
|
869
|
+
viewBox: s.value.viewBox
|
|
870
|
+
}, [
|
|
871
|
+
G("use", { "xlink:href": s.value.src })
|
|
872
|
+
])
|
|
873
|
+
])) : (s.value.cls !== void 0 && (o.class += " " + s.value.cls), G(e.tag, o, Qe(t.default, [
|
|
874
|
+
s.value.content
|
|
875
|
+
])));
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
}), as = {
|
|
879
|
+
size: {
|
|
880
|
+
type: [String, Number],
|
|
881
|
+
default: "1em"
|
|
882
|
+
},
|
|
883
|
+
color: String
|
|
884
|
+
};
|
|
885
|
+
function ss(e) {
|
|
886
|
+
return {
|
|
887
|
+
cSize: F(() => e.size in jt ? `${jt[e.size]}px` : e.size),
|
|
888
|
+
classes: F(
|
|
889
|
+
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
890
|
+
)
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
const os = on({
|
|
894
|
+
name: "QSpinner",
|
|
895
|
+
props: {
|
|
896
|
+
...as,
|
|
897
|
+
thickness: {
|
|
898
|
+
type: Number,
|
|
899
|
+
default: 5
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
setup(e) {
|
|
903
|
+
const { cSize: t, classes: n } = ss(e);
|
|
904
|
+
return () => G("svg", {
|
|
905
|
+
class: n.value + " q-spinner-mat",
|
|
906
|
+
width: t.value,
|
|
907
|
+
height: t.value,
|
|
908
|
+
viewBox: "25 25 50 50"
|
|
909
|
+
}, [
|
|
910
|
+
G("circle", {
|
|
911
|
+
class: "path",
|
|
912
|
+
cx: "50",
|
|
913
|
+
cy: "50",
|
|
914
|
+
r: "20",
|
|
915
|
+
fill: "none",
|
|
916
|
+
stroke: "currentColor",
|
|
917
|
+
"stroke-width": e.thickness,
|
|
918
|
+
"stroke-miterlimit": "10"
|
|
919
|
+
})
|
|
920
|
+
]);
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
function is(e, t) {
|
|
924
|
+
const n = e.style;
|
|
925
|
+
for (const a in t)
|
|
926
|
+
n[a] = t[a];
|
|
927
|
+
}
|
|
928
|
+
function ls(e, t = 250) {
|
|
929
|
+
let n = !1, a;
|
|
930
|
+
return function() {
|
|
931
|
+
return n === !1 && (n = !0, setTimeout(() => {
|
|
932
|
+
n = !1;
|
|
933
|
+
}, t), a = e.apply(this, arguments)), a;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
function Dn(e, t, n, a) {
|
|
937
|
+
n.modifiers.stop === !0 && Or(e);
|
|
938
|
+
const r = n.modifiers.color;
|
|
939
|
+
let s = n.modifiers.center;
|
|
940
|
+
s = s === !0 || a === !0;
|
|
941
|
+
const o = document.createElement("span"), i = document.createElement("span"), u = ka(e), { left: _, top: h, width: v, height: f } = t.getBoundingClientRect(), O = Math.sqrt(v * v + f * f), S = O / 2, k = `${(v - O) / 2}px`, y = s ? k : `${u.left - _ - S}px`, d = `${(f - O) / 2}px`, m = s ? d : `${u.top - h - S}px`;
|
|
942
|
+
i.className = "q-ripple__inner", is(i, {
|
|
943
|
+
height: `${O}px`,
|
|
944
|
+
width: `${O}px`,
|
|
945
|
+
transform: `translate3d(${y},${m},0) scale3d(.2,.2,1)`,
|
|
946
|
+
opacity: 0
|
|
947
|
+
}), o.className = `q-ripple${r ? " text-" + r : ""}`, o.setAttribute("dir", "ltr"), o.appendChild(i), t.appendChild(o);
|
|
948
|
+
const L = () => {
|
|
949
|
+
o.remove(), clearTimeout(p);
|
|
950
|
+
};
|
|
951
|
+
n.abort.push(L);
|
|
952
|
+
let p = setTimeout(() => {
|
|
953
|
+
i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${k},${d},0) scale3d(1,1,1)`, i.style.opacity = 0.2, p = setTimeout(() => {
|
|
954
|
+
i.classList.remove("q-ripple__inner--enter"), i.classList.add("q-ripple__inner--leave"), i.style.opacity = 0, p = setTimeout(() => {
|
|
955
|
+
o.remove(), n.abort.splice(n.abort.indexOf(L), 1);
|
|
956
|
+
}, 275);
|
|
957
|
+
}, 250);
|
|
958
|
+
}, 50);
|
|
959
|
+
}
|
|
960
|
+
function Mn(e, { modifiers: t, value: n, arg: a }) {
|
|
961
|
+
const r = Object.assign({}, e.cfg.ripple, t, n);
|
|
962
|
+
e.modifiers = {
|
|
963
|
+
early: r.early === !0,
|
|
964
|
+
stop: r.stop === !0,
|
|
965
|
+
center: r.center === !0,
|
|
966
|
+
color: r.color || a,
|
|
967
|
+
keyCodes: [].concat(r.keyCodes || 13)
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
const cs = Ia(
|
|
971
|
+
{
|
|
972
|
+
name: "ripple",
|
|
973
|
+
beforeMount(e, t) {
|
|
974
|
+
const n = t.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
975
|
+
if (n.ripple === !1) return;
|
|
976
|
+
const a = {
|
|
977
|
+
cfg: n,
|
|
978
|
+
enabled: t.value !== !1,
|
|
979
|
+
modifiers: {},
|
|
980
|
+
abort: [],
|
|
981
|
+
start(r) {
|
|
982
|
+
a.enabled === !0 && r.qSkipRipple !== !0 && r.type === (a.modifiers.early === !0 ? "pointerdown" : "click") && Dn(r, e, a, r.qKeyEvent === !0);
|
|
983
|
+
},
|
|
984
|
+
keystart: ls((r) => {
|
|
985
|
+
a.enabled === !0 && r.qSkipRipple !== !0 && Ht(r, a.modifiers.keyCodes) === !0 && r.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && Dn(r, e, a, !0);
|
|
986
|
+
}, 300)
|
|
987
|
+
};
|
|
988
|
+
Mn(a, t), e.__qripple = a, Ca(a, "main", [
|
|
989
|
+
[e, "pointerdown", "start", "passive"],
|
|
990
|
+
[e, "click", "start", "passive"],
|
|
991
|
+
[e, "keydown", "keystart", "passive"],
|
|
992
|
+
[e, "keyup", "keystart", "passive"]
|
|
993
|
+
]);
|
|
994
|
+
},
|
|
995
|
+
updated(e, t) {
|
|
996
|
+
if (t.oldValue !== t.value) {
|
|
997
|
+
const n = e.__qripple;
|
|
998
|
+
n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && Mn(n, t));
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
beforeUnmount(e) {
|
|
1002
|
+
const t = e.__qripple;
|
|
1003
|
+
t !== void 0 && (t.abort.forEach((n) => {
|
|
1004
|
+
n();
|
|
1005
|
+
}), wa(t, "main"), delete e._qripple);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
), Mr = {
|
|
1009
|
+
left: "start",
|
|
1010
|
+
center: "center",
|
|
1011
|
+
right: "end",
|
|
1012
|
+
between: "between",
|
|
1013
|
+
around: "around",
|
|
1014
|
+
evenly: "evenly",
|
|
1015
|
+
stretch: "stretch"
|
|
1016
|
+
}, us = Object.keys(Mr), fs = {
|
|
1017
|
+
align: {
|
|
1018
|
+
type: String,
|
|
1019
|
+
validator: (e) => us.includes(e)
|
|
1020
|
+
}
|
|
1021
|
+
};
|
|
1022
|
+
function ds(e) {
|
|
1023
|
+
return F(() => {
|
|
1024
|
+
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
1025
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${Mr[t]}`;
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
function _s(e) {
|
|
1029
|
+
return e.appContext.config.globalProperties.$router !== void 0;
|
|
1030
|
+
}
|
|
1031
|
+
function Fn(e) {
|
|
1032
|
+
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
1033
|
+
}
|
|
1034
|
+
function xn(e, t) {
|
|
1035
|
+
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
1036
|
+
}
|
|
1037
|
+
function ms(e, t) {
|
|
1038
|
+
for (const n in t) {
|
|
1039
|
+
const a = t[n], r = e[n];
|
|
1040
|
+
if (typeof a == "string") {
|
|
1041
|
+
if (a !== r)
|
|
1042
|
+
return !1;
|
|
1043
|
+
} else if (Array.isArray(r) === !1 || r.length !== a.length || a.some((s, o) => s !== r[o]))
|
|
1044
|
+
return !1;
|
|
1045
|
+
}
|
|
1046
|
+
return !0;
|
|
1047
|
+
}
|
|
1048
|
+
function Un(e, t) {
|
|
1049
|
+
return Array.isArray(t) === !0 ? e.length === t.length && e.every((n, a) => n === t[a]) : e.length === 1 && e[0] === t;
|
|
1050
|
+
}
|
|
1051
|
+
function gs(e, t) {
|
|
1052
|
+
return Array.isArray(e) === !0 ? Un(e, t) : Array.isArray(t) === !0 ? Un(t, e) : e === t;
|
|
1053
|
+
}
|
|
1054
|
+
function ps(e, t) {
|
|
1055
|
+
if (Object.keys(e).length !== Object.keys(t).length)
|
|
1056
|
+
return !1;
|
|
1057
|
+
for (const n in e)
|
|
1058
|
+
if (gs(e[n], t[n]) === !1)
|
|
1059
|
+
return !1;
|
|
1060
|
+
return !0;
|
|
1061
|
+
}
|
|
1062
|
+
const hs = {
|
|
1063
|
+
// router-link
|
|
1064
|
+
to: [String, Object],
|
|
1065
|
+
replace: Boolean,
|
|
1066
|
+
// regular <a> link
|
|
1067
|
+
href: String,
|
|
1068
|
+
target: String,
|
|
1069
|
+
// state
|
|
1070
|
+
disable: Boolean
|
|
1071
|
+
};
|
|
1072
|
+
function Es({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
1073
|
+
const n = Le(), { props: a, proxy: r, emit: s } = n, o = _s(n), i = F(() => a.disable !== !0 && a.href !== void 0), u = t === !0 ? F(
|
|
1074
|
+
() => o === !0 && a.disable !== !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
1075
|
+
) : F(
|
|
1076
|
+
() => o === !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
1077
|
+
), _ = F(() => u.value === !0 ? m(a.to) : null), h = F(() => _.value !== null), v = F(() => i.value === !0 || h.value === !0), f = F(() => a.type === "a" || v.value === !0 ? "a" : a.tag || e || "div"), O = F(() => i.value === !0 ? {
|
|
1078
|
+
href: a.href,
|
|
1079
|
+
target: a.target
|
|
1080
|
+
} : h.value === !0 ? {
|
|
1081
|
+
href: _.value.href,
|
|
1082
|
+
target: a.target
|
|
1083
|
+
} : {}), S = F(() => {
|
|
1084
|
+
if (h.value === !1)
|
|
1085
|
+
return -1;
|
|
1086
|
+
const { matched: N } = _.value, { length: I } = N, E = N[I - 1];
|
|
1087
|
+
if (E === void 0)
|
|
1088
|
+
return -1;
|
|
1089
|
+
const P = r.$route.matched;
|
|
1090
|
+
if (P.length === 0)
|
|
1091
|
+
return -1;
|
|
1092
|
+
const D = P.findIndex(
|
|
1093
|
+
xn.bind(null, E)
|
|
1094
|
+
);
|
|
1095
|
+
if (D !== -1)
|
|
1096
|
+
return D;
|
|
1097
|
+
const q = Fn(N[I - 2]);
|
|
1098
|
+
return (
|
|
1099
|
+
// we are dealing with nested routes
|
|
1100
|
+
I > 1 && Fn(E) === q && P[P.length - 1].path !== q ? P.findIndex(
|
|
1101
|
+
xn.bind(null, N[I - 2])
|
|
1102
|
+
) : D
|
|
1103
|
+
);
|
|
1104
|
+
}), k = F(
|
|
1105
|
+
() => h.value === !0 && S.value !== -1 && ms(r.$route.params, _.value.params)
|
|
1106
|
+
), y = F(
|
|
1107
|
+
() => k.value === !0 && S.value === r.$route.matched.length - 1 && ps(r.$route.params, _.value.params)
|
|
1108
|
+
), d = F(() => h.value === !0 ? y.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : k.value === !0 ? ` ${a.activeClass}` : "" : "");
|
|
1109
|
+
function m(N) {
|
|
1110
|
+
try {
|
|
1111
|
+
return r.$router.resolve(N);
|
|
1112
|
+
} catch {
|
|
1113
|
+
}
|
|
1114
|
+
return null;
|
|
1115
|
+
}
|
|
1116
|
+
function L(N, { returnRouterError: I, to: E = a.to, replace: P = a.replace } = {}) {
|
|
1117
|
+
if (a.disable === !0)
|
|
1118
|
+
return N.preventDefault(), Promise.resolve(!1);
|
|
1119
|
+
if (
|
|
1120
|
+
// don't redirect with control keys;
|
|
1121
|
+
// should match RouterLink from Vue Router
|
|
1122
|
+
N.metaKey || N.altKey || N.ctrlKey || N.shiftKey || N.button !== void 0 && N.button !== 0 || a.target === "_blank"
|
|
1123
|
+
)
|
|
1124
|
+
return Promise.resolve(!1);
|
|
1125
|
+
N.preventDefault();
|
|
1126
|
+
const D = r.$router[P === !0 ? "replace" : "push"](E);
|
|
1127
|
+
return I === !0 ? D : D.then(() => {
|
|
1128
|
+
}).catch(() => {
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
function p(N) {
|
|
1132
|
+
if (h.value === !0) {
|
|
1133
|
+
const I = (E) => L(N, E);
|
|
1134
|
+
s("click", N, I), N.defaultPrevented !== !0 && I();
|
|
1135
|
+
} else
|
|
1136
|
+
s("click", N);
|
|
1137
|
+
}
|
|
1138
|
+
return {
|
|
1139
|
+
hasRouterLink: h,
|
|
1140
|
+
hasHrefLink: i,
|
|
1141
|
+
hasLink: v,
|
|
1142
|
+
linkTag: f,
|
|
1143
|
+
resolvedLink: _,
|
|
1144
|
+
linkIsActive: k,
|
|
1145
|
+
linkIsExactActive: y,
|
|
1146
|
+
linkClass: d,
|
|
1147
|
+
linkAttrs: O,
|
|
1148
|
+
getLink: m,
|
|
1149
|
+
navigateToRouterLink: L,
|
|
1150
|
+
navigateOnClick: p
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
const $n = {
|
|
1154
|
+
none: 0,
|
|
1155
|
+
xs: 4,
|
|
1156
|
+
sm: 8,
|
|
1157
|
+
md: 16,
|
|
1158
|
+
lg: 24,
|
|
1159
|
+
xl: 32
|
|
1160
|
+
}, vs = {
|
|
1161
|
+
xs: 8,
|
|
1162
|
+
sm: 10,
|
|
1163
|
+
md: 14,
|
|
1164
|
+
lg: 20,
|
|
1165
|
+
xl: 24
|
|
1166
|
+
}, bs = ["button", "submit", "reset"], Ns = /[^\s]\/[^\s]/, Ls = ["flat", "outline", "push", "unelevated"];
|
|
1167
|
+
function ys(e, t) {
|
|
1168
|
+
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
1169
|
+
}
|
|
1170
|
+
const Ts = {
|
|
1171
|
+
...wr,
|
|
1172
|
+
...hs,
|
|
1173
|
+
type: {
|
|
1174
|
+
type: String,
|
|
1175
|
+
default: "button"
|
|
1176
|
+
},
|
|
1177
|
+
label: [Number, String],
|
|
1178
|
+
icon: String,
|
|
1179
|
+
iconRight: String,
|
|
1180
|
+
...Ls.reduce(
|
|
1181
|
+
(e, t) => (e[t] = Boolean) && e,
|
|
1182
|
+
{}
|
|
1183
|
+
),
|
|
1184
|
+
square: Boolean,
|
|
1185
|
+
rounded: Boolean,
|
|
1186
|
+
glossy: Boolean,
|
|
1187
|
+
size: String,
|
|
1188
|
+
fab: Boolean,
|
|
1189
|
+
fabMini: Boolean,
|
|
1190
|
+
padding: String,
|
|
1191
|
+
color: String,
|
|
1192
|
+
textColor: String,
|
|
1193
|
+
noCaps: Boolean,
|
|
1194
|
+
noWrap: Boolean,
|
|
1195
|
+
dense: Boolean,
|
|
1196
|
+
tabindex: [Number, String],
|
|
1197
|
+
ripple: {
|
|
1198
|
+
type: [Boolean, Object],
|
|
1199
|
+
default: !0
|
|
1200
|
+
},
|
|
1201
|
+
align: {
|
|
1202
|
+
...fs.align,
|
|
1203
|
+
default: "center"
|
|
1204
|
+
},
|
|
1205
|
+
stack: Boolean,
|
|
1206
|
+
stretch: Boolean,
|
|
1207
|
+
loading: {
|
|
1208
|
+
type: Boolean,
|
|
1209
|
+
default: null
|
|
1210
|
+
},
|
|
1211
|
+
disable: Boolean
|
|
1212
|
+
}, Os = {
|
|
1213
|
+
...Ts,
|
|
1214
|
+
round: Boolean
|
|
1215
|
+
};
|
|
1216
|
+
function Is(e) {
|
|
1217
|
+
const t = Ar(e, vs), n = ds(e), { hasRouterLink: a, hasLink: r, linkTag: s, linkAttrs: o, navigateOnClick: i } = Es({
|
|
1218
|
+
fallbackTag: "button"
|
|
1219
|
+
}), u = F(() => {
|
|
1220
|
+
const y = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
1221
|
+
return e.padding !== void 0 ? Object.assign({}, y, {
|
|
1222
|
+
padding: e.padding.split(/\s+/).map((d) => d in $n ? $n[d] + "px" : d).join(" "),
|
|
1223
|
+
minWidth: "0",
|
|
1224
|
+
minHeight: "0"
|
|
1225
|
+
}) : y;
|
|
1226
|
+
}), _ = F(
|
|
1227
|
+
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
1228
|
+
), h = F(
|
|
1229
|
+
() => e.disable !== !0 && e.loading !== !0
|
|
1230
|
+
), v = F(() => h.value === !0 ? e.tabindex || 0 : -1), f = F(() => ys(e, "standard")), O = F(() => {
|
|
1231
|
+
const y = { tabindex: v.value };
|
|
1232
|
+
return r.value === !0 ? Object.assign(y, o.value) : bs.includes(e.type) === !0 && (y.type = e.type), s.value === "a" ? (e.disable === !0 ? y["aria-disabled"] = "true" : y.href === void 0 && (y.role = "button"), a.value !== !0 && Ns.test(e.type) === !0 && (y.type = e.type)) : e.disable === !0 && (y.disabled = "", y["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(y, {
|
|
1233
|
+
role: "progressbar",
|
|
1234
|
+
"aria-valuemin": 0,
|
|
1235
|
+
"aria-valuemax": 100,
|
|
1236
|
+
"aria-valuenow": e.percentage
|
|
1237
|
+
}), y;
|
|
1238
|
+
}), S = F(() => {
|
|
1239
|
+
let y;
|
|
1240
|
+
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? y = `text-${e.textColor || e.color}` : y = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (y = `text-${e.textColor}`);
|
|
1241
|
+
const d = e.round === !0 ? "round" : `rectangle${_.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
1242
|
+
return `q-btn--${f.value} q-btn--${d}` + (y !== void 0 ? " " + y : "") + (h.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
1243
|
+
}), k = F(
|
|
1244
|
+
() => n.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
1245
|
+
);
|
|
1246
|
+
return {
|
|
1247
|
+
classes: S,
|
|
1248
|
+
style: u,
|
|
1249
|
+
innerClasses: k,
|
|
1250
|
+
attributes: O,
|
|
1251
|
+
hasLink: r,
|
|
1252
|
+
linkTag: s,
|
|
1253
|
+
navigateOnClick: i,
|
|
1254
|
+
isActionable: h
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
const { passiveCapture: le } = st;
|
|
1258
|
+
let xe = null, Ue = null, $e = null;
|
|
1259
|
+
const Fr = on({
|
|
1260
|
+
name: "QBtn",
|
|
1261
|
+
props: {
|
|
1262
|
+
...Os,
|
|
1263
|
+
percentage: Number,
|
|
1264
|
+
darkPercentage: Boolean,
|
|
1265
|
+
onTouchstart: [Function, Array]
|
|
1266
|
+
},
|
|
1267
|
+
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
1268
|
+
setup(e, { slots: t, emit: n }) {
|
|
1269
|
+
const { proxy: a } = Le(), {
|
|
1270
|
+
classes: r,
|
|
1271
|
+
style: s,
|
|
1272
|
+
innerClasses: o,
|
|
1273
|
+
attributes: i,
|
|
1274
|
+
hasLink: u,
|
|
1275
|
+
linkTag: _,
|
|
1276
|
+
navigateOnClick: h,
|
|
1277
|
+
isActionable: v
|
|
1278
|
+
} = Is(e), f = dt(null), O = dt(null);
|
|
1279
|
+
let S = null, k, y = null;
|
|
1280
|
+
const d = F(
|
|
1281
|
+
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
1282
|
+
), m = F(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
1283
|
+
keyCodes: u.value === !0 ? [13, 32] : [13],
|
|
1284
|
+
...e.ripple === !0 ? {} : e.ripple
|
|
1285
|
+
}), L = F(() => ({ center: e.round })), p = F(() => {
|
|
1286
|
+
const A = Math.max(0, Math.min(100, e.percentage));
|
|
1287
|
+
return A > 0 ? { transition: "transform 0.6s", transform: `translateX(${A - 100}%)` } : {};
|
|
1288
|
+
}), N = F(() => {
|
|
1289
|
+
if (e.loading === !0)
|
|
1290
|
+
return {
|
|
1291
|
+
onMousedown: ie,
|
|
1292
|
+
onTouchstart: ie,
|
|
1293
|
+
onClick: ie,
|
|
1294
|
+
onKeydown: ie,
|
|
1295
|
+
onKeyup: ie
|
|
1296
|
+
};
|
|
1297
|
+
if (v.value === !0) {
|
|
1298
|
+
const A = {
|
|
1299
|
+
onClick: E,
|
|
1300
|
+
onKeydown: P,
|
|
1301
|
+
onMousedown: q
|
|
1302
|
+
};
|
|
1303
|
+
if (a.$q.platform.has.touch === !0) {
|
|
1304
|
+
const K = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
1305
|
+
A[`onTouchstart${K}`] = D;
|
|
1306
|
+
}
|
|
1307
|
+
return A;
|
|
1308
|
+
}
|
|
1309
|
+
return {
|
|
1310
|
+
// needed; especially for disabled <a> tags
|
|
1311
|
+
onClick: Fe
|
|
1312
|
+
};
|
|
1313
|
+
}), I = F(() => ({
|
|
1314
|
+
ref: f,
|
|
1315
|
+
class: "q-btn q-btn-item non-selectable no-outline " + r.value,
|
|
1316
|
+
style: s.value,
|
|
1317
|
+
...i.value,
|
|
1318
|
+
...N.value
|
|
1319
|
+
}));
|
|
1320
|
+
function E(A) {
|
|
1321
|
+
if (f.value !== null) {
|
|
1322
|
+
if (A !== void 0) {
|
|
1323
|
+
if (A.defaultPrevented === !0) return;
|
|
1324
|
+
const K = document.activeElement;
|
|
1325
|
+
if (e.type === "submit" && K !== document.body && f.value.contains(K) === !1 && K.contains(f.value) === !1) {
|
|
1326
|
+
f.value.focus();
|
|
1327
|
+
const Ee = () => {
|
|
1328
|
+
document.removeEventListener("keydown", Fe, !0), document.removeEventListener("keyup", Ee, le), f.value !== null && f.value.removeEventListener("blur", Ee, le);
|
|
1329
|
+
};
|
|
1330
|
+
document.addEventListener("keydown", Fe, !0), document.addEventListener("keyup", Ee, le), f.value.addEventListener("blur", Ee, le);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
h(A);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
function P(A) {
|
|
1337
|
+
f.value !== null && (n("keydown", A), Ht(A, [13, 32]) === !0 && Ue !== f.value && (Ue !== null && j(), A.defaultPrevented !== !0 && (f.value.focus(), Ue = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("keyup", X, !0), f.value.addEventListener("blur", X, le)), Fe(A)));
|
|
1338
|
+
}
|
|
1339
|
+
function D(A) {
|
|
1340
|
+
f.value !== null && (n("touchstart", A), A.defaultPrevented !== !0 && (xe !== f.value && (xe !== null && j(), xe = f.value, S = A.target, S.addEventListener("touchcancel", X, le), S.addEventListener("touchend", X, le)), k = !0, y !== null && clearTimeout(y), y = setTimeout(() => {
|
|
1341
|
+
y = null, k = !1;
|
|
1342
|
+
}, 200)));
|
|
1343
|
+
}
|
|
1344
|
+
function q(A) {
|
|
1345
|
+
f.value !== null && (A.qSkipRipple = k === !0, n("mousedown", A), A.defaultPrevented !== !0 && $e !== f.value && ($e !== null && j(), $e = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("mouseup", X, le)));
|
|
1346
|
+
}
|
|
1347
|
+
function X(A) {
|
|
1348
|
+
if (f.value !== null && !(A !== void 0 && A.type === "blur" && document.activeElement === f.value)) {
|
|
1349
|
+
if (A !== void 0 && A.type === "keyup") {
|
|
1350
|
+
if (Ue === f.value && Ht(A, [13, 32]) === !0) {
|
|
1351
|
+
const K = new MouseEvent("click", A);
|
|
1352
|
+
K.qKeyEvent = !0, A.defaultPrevented === !0 && Sa(K), A.cancelBubble === !0 && Or(K), f.value.dispatchEvent(K), Fe(A), A.qKeyEvent = !0;
|
|
1353
|
+
}
|
|
1354
|
+
n("keyup", A);
|
|
1355
|
+
}
|
|
1356
|
+
j();
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
function j(A) {
|
|
1360
|
+
const K = O.value;
|
|
1361
|
+
A !== !0 && (xe === f.value || $e === f.value) && K !== null && K !== document.activeElement && (K.setAttribute("tabindex", -1), K.focus()), xe === f.value && (S !== null && (S.removeEventListener("touchcancel", X, le), S.removeEventListener("touchend", X, le)), xe = S = null), $e === f.value && (document.removeEventListener("mouseup", X, le), $e = null), Ue === f.value && (document.removeEventListener("keyup", X, !0), f.value !== null && f.value.removeEventListener("blur", X, le), Ue = null), f.value !== null && f.value.classList.remove("q-btn--active");
|
|
1362
|
+
}
|
|
1363
|
+
function ie(A) {
|
|
1364
|
+
Fe(A), A.qSkipRipple = !0;
|
|
1365
|
+
}
|
|
1366
|
+
return ca(() => {
|
|
1367
|
+
j(!0);
|
|
1368
|
+
}), Object.assign(a, {
|
|
1369
|
+
click: (A) => {
|
|
1370
|
+
v.value === !0 && E(A);
|
|
1371
|
+
}
|
|
1372
|
+
}), () => {
|
|
1373
|
+
let A = [];
|
|
1374
|
+
e.icon !== void 0 && A.push(
|
|
1375
|
+
G(Rn, {
|
|
1376
|
+
name: e.icon,
|
|
1377
|
+
left: e.stack !== !0 && d.value === !0,
|
|
1378
|
+
role: "img"
|
|
1379
|
+
})
|
|
1380
|
+
), d.value === !0 && A.push(
|
|
1381
|
+
G("span", { class: "block" }, [e.label])
|
|
1382
|
+
), A = Qe(t.default, A), e.iconRight !== void 0 && e.round === !1 && A.push(
|
|
1383
|
+
G(Rn, {
|
|
1384
|
+
name: e.iconRight,
|
|
1385
|
+
right: e.stack !== !0 && d.value === !0,
|
|
1386
|
+
role: "img"
|
|
1387
|
+
})
|
|
1388
|
+
);
|
|
1389
|
+
const K = [
|
|
1390
|
+
G("span", {
|
|
1391
|
+
class: "q-focus-helper",
|
|
1392
|
+
ref: O
|
|
1393
|
+
})
|
|
1394
|
+
];
|
|
1395
|
+
return e.loading === !0 && e.percentage !== void 0 && K.push(
|
|
1396
|
+
G("span", {
|
|
1397
|
+
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
1398
|
+
}, [
|
|
1399
|
+
G("span", {
|
|
1400
|
+
class: "q-btn__progress-indicator fit block",
|
|
1401
|
+
style: p.value
|
|
1402
|
+
})
|
|
1403
|
+
])
|
|
1404
|
+
), K.push(
|
|
1405
|
+
G("span", {
|
|
1406
|
+
class: "q-btn__content text-center col items-center q-anchor--skip " + o.value
|
|
1407
|
+
}, A)
|
|
1408
|
+
), e.loading !== null && K.push(
|
|
1409
|
+
G(ua, {
|
|
1410
|
+
name: "q-transition--fade"
|
|
1411
|
+
}, () => e.loading === !0 ? [
|
|
1412
|
+
G("span", {
|
|
1413
|
+
key: "loading",
|
|
1414
|
+
class: "absolute-full flex flex-center"
|
|
1415
|
+
}, t.loading !== void 0 ? t.loading() : [G(os)])
|
|
1416
|
+
] : null)
|
|
1417
|
+
), fa(
|
|
1418
|
+
G(
|
|
1419
|
+
_.value,
|
|
1420
|
+
I.value,
|
|
1421
|
+
K
|
|
1422
|
+
),
|
|
1423
|
+
[[
|
|
1424
|
+
cs,
|
|
1425
|
+
m.value,
|
|
1426
|
+
void 0,
|
|
1427
|
+
L.value
|
|
1428
|
+
]]
|
|
1429
|
+
);
|
|
1430
|
+
};
|
|
1431
|
+
}
|
|
1432
|
+
}), ks = at({
|
|
1433
|
+
name: "MyButton",
|
|
1434
|
+
components: {
|
|
1435
|
+
QBtn: Fr
|
|
1436
|
+
},
|
|
1437
|
+
props: {
|
|
1438
|
+
label: {
|
|
1439
|
+
type: String,
|
|
1440
|
+
required: !0
|
|
1441
|
+
},
|
|
1442
|
+
color: {
|
|
1443
|
+
type: String,
|
|
1444
|
+
default: "primary"
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
setup(e) {
|
|
1448
|
+
return {
|
|
1449
|
+
onClick: () => {
|
|
1450
|
+
console.log(`${e.label} button clicked!`);
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
}), Ss = (e, t) => {
|
|
1455
|
+
const n = e.__vccOpts || e;
|
|
1456
|
+
for (const [a, r] of t)
|
|
1457
|
+
n[a] = r;
|
|
1458
|
+
return n;
|
|
1459
|
+
};
|
|
1460
|
+
function Cs(e, t, n, a, r, s) {
|
|
1461
|
+
return _a(), da(an, null, [
|
|
1462
|
+
t[0] || (t[0] = ma("abc")),
|
|
1463
|
+
yr(Fr, {
|
|
1464
|
+
label: e.label,
|
|
1465
|
+
color: e.color,
|
|
1466
|
+
onClick: e.onClick
|
|
1467
|
+
}, null, 8, ["label", "color", "onClick"])
|
|
1468
|
+
], 64);
|
|
1469
|
+
}
|
|
1470
|
+
const ws = /* @__PURE__ */ Ss(ks, [["render", Cs], ["__scopeId", "data-v-dec36ed8"]]), As = (e, t) => {
|
|
1471
|
+
e.use(t);
|
|
1472
|
+
}, Ps = (e, t, n) => {
|
|
1473
|
+
e.component(t, n);
|
|
1474
|
+
}, Rs = {
|
|
1475
|
+
install(e) {
|
|
1476
|
+
Ps(e, "KMyButton", ws);
|
|
1477
|
+
}
|
|
1478
|
+
}, Ds = {
|
|
1479
|
+
test: "Test"
|
|
1480
|
+
}, Ms = {
|
|
1481
|
+
test: "Test"
|
|
1482
|
+
}, Fs = {
|
|
1483
|
+
en: Ds,
|
|
1484
|
+
es: Ms
|
|
1485
|
+
};
|
|
1486
|
+
/*!
|
|
1487
|
+
* shared v10.0.5
|
|
1488
|
+
* (c) 2024 kazuya kawaguchi
|
|
1489
|
+
* Released under the MIT License.
|
|
1490
|
+
*/
|
|
1491
|
+
const fe = typeof window < "u";
|
|
1492
|
+
let oe, Pe;
|
|
1493
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1494
|
+
const e = fe && window.performance;
|
|
1495
|
+
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
1496
|
+
e.clearMeasures && (oe = (t) => {
|
|
1497
|
+
e.mark(t);
|
|
1498
|
+
}, Pe = (t, n, a) => {
|
|
1499
|
+
e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
const xs = /\{([0-9a-zA-Z]+)\}/g;
|
|
1503
|
+
function pt(e, ...t) {
|
|
1504
|
+
return t.length === 1 && x(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(xs, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
1505
|
+
}
|
|
1506
|
+
const me = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Us = (e, t, n) => $s({ l: e, k: t, s: n }), $s = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Z = (e) => typeof e == "number" && isFinite(e), Vs = (e) => ln(e) === "[object Date]", Be = (e) => ln(e) === "[object RegExp]", ht = (e) => M(e) && Object.keys(e).length === 0, ee = Object.assign, Ws = Object.create, W = (e = null) => Ws(e);
|
|
1507
|
+
let Vn;
|
|
1508
|
+
const we = () => Vn || (Vn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
1509
|
+
function Wn(e) {
|
|
1510
|
+
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1511
|
+
}
|
|
1512
|
+
const Bs = Object.prototype.hasOwnProperty;
|
|
1513
|
+
function ue(e, t) {
|
|
1514
|
+
return Bs.call(e, t);
|
|
1515
|
+
}
|
|
1516
|
+
const Y = Array.isArray, H = (e) => typeof e == "function", C = (e) => typeof e == "string", U = (e) => typeof e == "boolean", x = (e) => e !== null && typeof e == "object", Hs = (e) => x(e) && H(e.then) && H(e.catch), xr = Object.prototype.toString, ln = (e) => xr.call(e), M = (e) => ln(e) === "[object Object]", js = (e) => e == null ? "" : Y(e) || M(e) && e.toString === xr ? JSON.stringify(e, null, 2) : String(e);
|
|
1517
|
+
function cn(e, t = "") {
|
|
1518
|
+
return e.reduce((n, a, r) => r === 0 ? n + a : n + t + a, "");
|
|
1519
|
+
}
|
|
1520
|
+
const Bn = 2;
|
|
1521
|
+
function Gs(e, t = 0, n = e.length) {
|
|
1522
|
+
const a = e.split(/\r?\n/);
|
|
1523
|
+
let r = 0;
|
|
1524
|
+
const s = [];
|
|
1525
|
+
for (let o = 0; o < a.length; o++)
|
|
1526
|
+
if (r += a[o].length + 1, r >= t) {
|
|
1527
|
+
for (let i = o - Bn; i <= o + Bn || n > r; i++) {
|
|
1528
|
+
if (i < 0 || i >= a.length)
|
|
1529
|
+
continue;
|
|
1530
|
+
const u = i + 1;
|
|
1531
|
+
s.push(`${u}${" ".repeat(3 - String(u).length)}| ${a[i]}`);
|
|
1532
|
+
const _ = a[i].length;
|
|
1533
|
+
if (i === o) {
|
|
1534
|
+
const h = t - (r - _) + 1, v = Math.max(1, n > r ? _ - h : n - t);
|
|
1535
|
+
s.push(" | " + " ".repeat(h) + "^".repeat(v));
|
|
1536
|
+
} else if (i > o) {
|
|
1537
|
+
if (n > r) {
|
|
1538
|
+
const h = Math.max(Math.min(n - r, _), 1);
|
|
1539
|
+
s.push(" | " + "^".repeat(h));
|
|
1540
|
+
}
|
|
1541
|
+
r += _ + 1;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
break;
|
|
1545
|
+
}
|
|
1546
|
+
return s.join(`
|
|
1547
|
+
`);
|
|
1548
|
+
}
|
|
1549
|
+
function Te(e, t) {
|
|
1550
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
1551
|
+
}
|
|
1552
|
+
const Hn = {};
|
|
1553
|
+
function Ur(e) {
|
|
1554
|
+
Hn[e] || (Hn[e] = !0, Te(e));
|
|
1555
|
+
}
|
|
1556
|
+
function un() {
|
|
1557
|
+
const e = /* @__PURE__ */ new Map();
|
|
1558
|
+
return {
|
|
1559
|
+
events: e,
|
|
1560
|
+
on(n, a) {
|
|
1561
|
+
const r = e.get(n);
|
|
1562
|
+
r && r.push(a) || e.set(n, [a]);
|
|
1563
|
+
},
|
|
1564
|
+
off(n, a) {
|
|
1565
|
+
const r = e.get(n);
|
|
1566
|
+
r && r.splice(r.indexOf(a) >>> 0, 1);
|
|
1567
|
+
},
|
|
1568
|
+
emit(n, a) {
|
|
1569
|
+
(e.get(n) || []).slice().map((r) => r(a)), (e.get("*") || []).slice().map((r) => r(n, a));
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
const lt = (e) => !x(e) || Y(e);
|
|
1574
|
+
function ft(e, t) {
|
|
1575
|
+
if (lt(e) || lt(t))
|
|
1576
|
+
throw new Error("Invalid value");
|
|
1577
|
+
const n = [{ src: e, des: t }];
|
|
1578
|
+
for (; n.length; ) {
|
|
1579
|
+
const { src: a, des: r } = n.pop();
|
|
1580
|
+
Object.keys(a).forEach((s) => {
|
|
1581
|
+
s !== "__proto__" && (x(a[s]) && !x(r[s]) && (r[s] = Array.isArray(a[s]) ? [] : W()), lt(r[s]) || lt(a[s]) ? r[s] = a[s] : n.push({ src: a[s], des: r[s] }));
|
|
1582
|
+
});
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
/*!
|
|
1586
|
+
* message-compiler v10.0.5
|
|
1587
|
+
* (c) 2024 kazuya kawaguchi
|
|
1588
|
+
* Released under the MIT License.
|
|
1589
|
+
*/
|
|
1590
|
+
function qs(e, t, n) {
|
|
1591
|
+
return { line: e, column: t, offset: n };
|
|
1592
|
+
}
|
|
1593
|
+
function Gt(e, t, n) {
|
|
1594
|
+
return { start: e, end: t };
|
|
1595
|
+
}
|
|
1596
|
+
const R = {
|
|
1597
|
+
// tokenizer error codes
|
|
1598
|
+
EXPECTED_TOKEN: 1,
|
|
1599
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
1600
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
1601
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
1602
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
1603
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
|
1604
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
|
1605
|
+
EMPTY_PLACEHOLDER: 8,
|
|
1606
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
1607
|
+
INVALID_LINKED_FORMAT: 10,
|
|
1608
|
+
// parser error codes
|
|
1609
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
1610
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
1611
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
1612
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
1613
|
+
// generator error codes
|
|
1614
|
+
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
1615
|
+
// minifier error codes
|
|
1616
|
+
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
1617
|
+
}, Ks = 17, Ys = {
|
|
1618
|
+
// tokenizer error messages
|
|
1619
|
+
[R.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
1620
|
+
[R.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
1621
|
+
[R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
1622
|
+
[R.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
1623
|
+
[R.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
1624
|
+
[R.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
1625
|
+
[R.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
1626
|
+
[R.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
1627
|
+
[R.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
1628
|
+
[R.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
1629
|
+
// parser error messages
|
|
1630
|
+
[R.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
1631
|
+
[R.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
1632
|
+
[R.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
1633
|
+
[R.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
1634
|
+
// generator error messages
|
|
1635
|
+
[R.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
1636
|
+
// minimizer error messages
|
|
1637
|
+
[R.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
1638
|
+
};
|
|
1639
|
+
function je(e, t, n = {}) {
|
|
1640
|
+
const { domain: a, messages: r, args: s } = n, o = process.env.NODE_ENV !== "production" ? pt((r || Ys)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
1641
|
+
return i.code = e, t && (i.location = t), i.domain = a, i;
|
|
1642
|
+
}
|
|
1643
|
+
function Xs(e) {
|
|
1644
|
+
throw e;
|
|
1645
|
+
}
|
|
1646
|
+
const Qs = /<\/?[\w\s="/.':;#-\/]+>/, Js = (e) => Qs.test(e), pe = " ", zs = "\r", re = `
|
|
1647
|
+
`, Zs = "\u2028", eo = "\u2029";
|
|
1648
|
+
function to(e) {
|
|
1649
|
+
const t = e;
|
|
1650
|
+
let n = 0, a = 1, r = 1, s = 0;
|
|
1651
|
+
const o = (E) => t[E] === zs && t[E + 1] === re, i = (E) => t[E] === re, u = (E) => t[E] === eo, _ = (E) => t[E] === Zs, h = (E) => o(E) || i(E) || u(E) || _(E), v = () => n, f = () => a, O = () => r, S = () => s, k = (E) => o(E) || u(E) || _(E) ? re : t[E], y = () => k(n), d = () => k(n + s);
|
|
1652
|
+
function m() {
|
|
1653
|
+
return s = 0, h(n) && (a++, r = 0), o(n) && n++, n++, r++, t[n];
|
|
1654
|
+
}
|
|
1655
|
+
function L() {
|
|
1656
|
+
return o(n + s) && s++, s++, t[n + s];
|
|
1657
|
+
}
|
|
1658
|
+
function p() {
|
|
1659
|
+
n = 0, a = 1, r = 1, s = 0;
|
|
1660
|
+
}
|
|
1661
|
+
function N(E = 0) {
|
|
1662
|
+
s = E;
|
|
1663
|
+
}
|
|
1664
|
+
function I() {
|
|
1665
|
+
const E = n + s;
|
|
1666
|
+
for (; E !== n; )
|
|
1667
|
+
m();
|
|
1668
|
+
s = 0;
|
|
1669
|
+
}
|
|
1670
|
+
return {
|
|
1671
|
+
index: v,
|
|
1672
|
+
line: f,
|
|
1673
|
+
column: O,
|
|
1674
|
+
peekOffset: S,
|
|
1675
|
+
charAt: k,
|
|
1676
|
+
currentChar: y,
|
|
1677
|
+
currentPeek: d,
|
|
1678
|
+
next: m,
|
|
1679
|
+
peek: L,
|
|
1680
|
+
reset: p,
|
|
1681
|
+
resetPeek: N,
|
|
1682
|
+
skipToPeek: I
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
const ve = void 0, no = ".", jn = "'", ro = "tokenizer";
|
|
1686
|
+
function ao(e, t = {}) {
|
|
1687
|
+
const n = t.location !== !1, a = to(e), r = () => a.index(), s = () => qs(a.line(), a.column(), a.index()), o = s(), i = r(), u = {
|
|
1688
|
+
currentType: 13,
|
|
1689
|
+
offset: i,
|
|
1690
|
+
startLoc: o,
|
|
1691
|
+
endLoc: o,
|
|
1692
|
+
lastType: 13,
|
|
1693
|
+
lastOffset: i,
|
|
1694
|
+
lastStartLoc: o,
|
|
1695
|
+
lastEndLoc: o,
|
|
1696
|
+
braceNest: 0,
|
|
1697
|
+
inLinked: !1,
|
|
1698
|
+
text: ""
|
|
1699
|
+
}, _ = () => u, { onError: h } = t;
|
|
1700
|
+
function v(l, c, b, ...w) {
|
|
1701
|
+
const Q = _();
|
|
1702
|
+
if (c.column += b, c.offset += b, h) {
|
|
1703
|
+
const J = n ? Gt(Q.startLoc, c) : null, $ = je(l, J, {
|
|
1704
|
+
domain: ro,
|
|
1705
|
+
args: w
|
|
1706
|
+
});
|
|
1707
|
+
h($);
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
function f(l, c, b) {
|
|
1711
|
+
l.endLoc = s(), l.currentType = c;
|
|
1712
|
+
const w = { type: c };
|
|
1713
|
+
return n && (w.loc = Gt(l.startLoc, l.endLoc)), b != null && (w.value = b), w;
|
|
1714
|
+
}
|
|
1715
|
+
const O = (l) => f(
|
|
1716
|
+
l,
|
|
1717
|
+
13
|
|
1718
|
+
/* TokenTypes.EOF */
|
|
1719
|
+
);
|
|
1720
|
+
function S(l, c) {
|
|
1721
|
+
return l.currentChar() === c ? (l.next(), c) : (v(R.EXPECTED_TOKEN, s(), 0, c), "");
|
|
1722
|
+
}
|
|
1723
|
+
function k(l) {
|
|
1724
|
+
let c = "";
|
|
1725
|
+
for (; l.currentPeek() === pe || l.currentPeek() === re; )
|
|
1726
|
+
c += l.currentPeek(), l.peek();
|
|
1727
|
+
return c;
|
|
1728
|
+
}
|
|
1729
|
+
function y(l) {
|
|
1730
|
+
const c = k(l);
|
|
1731
|
+
return l.skipToPeek(), c;
|
|
1732
|
+
}
|
|
1733
|
+
function d(l) {
|
|
1734
|
+
if (l === ve)
|
|
1735
|
+
return !1;
|
|
1736
|
+
const c = l.charCodeAt(0);
|
|
1737
|
+
return c >= 97 && c <= 122 || // a-z
|
|
1738
|
+
c >= 65 && c <= 90 || // A-Z
|
|
1739
|
+
c === 95;
|
|
1740
|
+
}
|
|
1741
|
+
function m(l) {
|
|
1742
|
+
if (l === ve)
|
|
1743
|
+
return !1;
|
|
1744
|
+
const c = l.charCodeAt(0);
|
|
1745
|
+
return c >= 48 && c <= 57;
|
|
1746
|
+
}
|
|
1747
|
+
function L(l, c) {
|
|
1748
|
+
const { currentType: b } = c;
|
|
1749
|
+
if (b !== 2)
|
|
1750
|
+
return !1;
|
|
1751
|
+
k(l);
|
|
1752
|
+
const w = d(l.currentPeek());
|
|
1753
|
+
return l.resetPeek(), w;
|
|
1754
|
+
}
|
|
1755
|
+
function p(l, c) {
|
|
1756
|
+
const { currentType: b } = c;
|
|
1757
|
+
if (b !== 2)
|
|
1758
|
+
return !1;
|
|
1759
|
+
k(l);
|
|
1760
|
+
const w = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), Q = m(w);
|
|
1761
|
+
return l.resetPeek(), Q;
|
|
1762
|
+
}
|
|
1763
|
+
function N(l, c) {
|
|
1764
|
+
const { currentType: b } = c;
|
|
1765
|
+
if (b !== 2)
|
|
1766
|
+
return !1;
|
|
1767
|
+
k(l);
|
|
1768
|
+
const w = l.currentPeek() === jn;
|
|
1769
|
+
return l.resetPeek(), w;
|
|
1770
|
+
}
|
|
1771
|
+
function I(l, c) {
|
|
1772
|
+
const { currentType: b } = c;
|
|
1773
|
+
if (b !== 7)
|
|
1774
|
+
return !1;
|
|
1775
|
+
k(l);
|
|
1776
|
+
const w = l.currentPeek() === ".";
|
|
1777
|
+
return l.resetPeek(), w;
|
|
1778
|
+
}
|
|
1779
|
+
function E(l, c) {
|
|
1780
|
+
const { currentType: b } = c;
|
|
1781
|
+
if (b !== 8)
|
|
1782
|
+
return !1;
|
|
1783
|
+
k(l);
|
|
1784
|
+
const w = d(l.currentPeek());
|
|
1785
|
+
return l.resetPeek(), w;
|
|
1786
|
+
}
|
|
1787
|
+
function P(l, c) {
|
|
1788
|
+
const { currentType: b } = c;
|
|
1789
|
+
if (!(b === 7 || b === 11))
|
|
1790
|
+
return !1;
|
|
1791
|
+
k(l);
|
|
1792
|
+
const w = l.currentPeek() === ":";
|
|
1793
|
+
return l.resetPeek(), w;
|
|
1794
|
+
}
|
|
1795
|
+
function D(l, c) {
|
|
1796
|
+
const { currentType: b } = c;
|
|
1797
|
+
if (b !== 9)
|
|
1798
|
+
return !1;
|
|
1799
|
+
const w = () => {
|
|
1800
|
+
const J = l.currentPeek();
|
|
1801
|
+
return J === "{" ? d(l.peek()) : J === "@" || J === "|" || J === ":" || J === "." || J === pe || !J ? !1 : J === re ? (l.peek(), w()) : X(l, !1);
|
|
1802
|
+
}, Q = w();
|
|
1803
|
+
return l.resetPeek(), Q;
|
|
1804
|
+
}
|
|
1805
|
+
function q(l) {
|
|
1806
|
+
k(l);
|
|
1807
|
+
const c = l.currentPeek() === "|";
|
|
1808
|
+
return l.resetPeek(), c;
|
|
1809
|
+
}
|
|
1810
|
+
function X(l, c = !0) {
|
|
1811
|
+
const b = (Q = !1, J = "") => {
|
|
1812
|
+
const $ = l.currentPeek();
|
|
1813
|
+
return $ === "{" || $ === "@" || !$ ? Q : $ === "|" ? !(J === pe || J === re) : $ === pe ? (l.peek(), b(!0, pe)) : $ === re ? (l.peek(), b(!0, re)) : !0;
|
|
1814
|
+
}, w = b();
|
|
1815
|
+
return c && l.resetPeek(), w;
|
|
1816
|
+
}
|
|
1817
|
+
function j(l, c) {
|
|
1818
|
+
const b = l.currentChar();
|
|
1819
|
+
return b === ve ? ve : c(b) ? (l.next(), b) : null;
|
|
1820
|
+
}
|
|
1821
|
+
function ie(l) {
|
|
1822
|
+
const c = l.charCodeAt(0);
|
|
1823
|
+
return c >= 97 && c <= 122 || // a-z
|
|
1824
|
+
c >= 65 && c <= 90 || // A-Z
|
|
1825
|
+
c >= 48 && c <= 57 || // 0-9
|
|
1826
|
+
c === 95 || // _
|
|
1827
|
+
c === 36;
|
|
1828
|
+
}
|
|
1829
|
+
function A(l) {
|
|
1830
|
+
return j(l, ie);
|
|
1831
|
+
}
|
|
1832
|
+
function K(l) {
|
|
1833
|
+
const c = l.charCodeAt(0);
|
|
1834
|
+
return c >= 97 && c <= 122 || // a-z
|
|
1835
|
+
c >= 65 && c <= 90 || // A-Z
|
|
1836
|
+
c >= 48 && c <= 57 || // 0-9
|
|
1837
|
+
c === 95 || // _
|
|
1838
|
+
c === 36 || // $
|
|
1839
|
+
c === 45;
|
|
1840
|
+
}
|
|
1841
|
+
function Ee(l) {
|
|
1842
|
+
return j(l, K);
|
|
1843
|
+
}
|
|
1844
|
+
function Nt(l) {
|
|
1845
|
+
const c = l.charCodeAt(0);
|
|
1846
|
+
return c >= 48 && c <= 57;
|
|
1847
|
+
}
|
|
1848
|
+
function Lt(l) {
|
|
1849
|
+
return j(l, Nt);
|
|
1850
|
+
}
|
|
1851
|
+
function yt(l) {
|
|
1852
|
+
const c = l.charCodeAt(0);
|
|
1853
|
+
return c >= 48 && c <= 57 || // 0-9
|
|
1854
|
+
c >= 65 && c <= 70 || // A-F
|
|
1855
|
+
c >= 97 && c <= 102;
|
|
1856
|
+
}
|
|
1857
|
+
function ge(l) {
|
|
1858
|
+
return j(l, yt);
|
|
1859
|
+
}
|
|
1860
|
+
function Ge(l) {
|
|
1861
|
+
let c = "", b = "";
|
|
1862
|
+
for (; c = Lt(l); )
|
|
1863
|
+
b += c;
|
|
1864
|
+
return b;
|
|
1865
|
+
}
|
|
1866
|
+
function Tt(l) {
|
|
1867
|
+
let c = "";
|
|
1868
|
+
for (; ; ) {
|
|
1869
|
+
const b = l.currentChar();
|
|
1870
|
+
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
1871
|
+
break;
|
|
1872
|
+
if (b === pe || b === re)
|
|
1873
|
+
if (X(l))
|
|
1874
|
+
c += b, l.next();
|
|
1875
|
+
else {
|
|
1876
|
+
if (q(l))
|
|
1877
|
+
break;
|
|
1878
|
+
c += b, l.next();
|
|
1879
|
+
}
|
|
1880
|
+
else
|
|
1881
|
+
c += b, l.next();
|
|
1882
|
+
}
|
|
1883
|
+
return c;
|
|
1884
|
+
}
|
|
1885
|
+
function Ot(l) {
|
|
1886
|
+
y(l);
|
|
1887
|
+
let c = "", b = "";
|
|
1888
|
+
for (; c = Ee(l); )
|
|
1889
|
+
b += c;
|
|
1890
|
+
return l.currentChar() === ve && v(R.UNTERMINATED_CLOSING_BRACE, s(), 0), b;
|
|
1891
|
+
}
|
|
1892
|
+
function It(l) {
|
|
1893
|
+
y(l);
|
|
1894
|
+
let c = "";
|
|
1895
|
+
return l.currentChar() === "-" ? (l.next(), c += `-${Ge(l)}`) : c += Ge(l), l.currentChar() === ve && v(R.UNTERMINATED_CLOSING_BRACE, s(), 0), c;
|
|
1896
|
+
}
|
|
1897
|
+
function kt(l) {
|
|
1898
|
+
return l !== jn && l !== re;
|
|
1899
|
+
}
|
|
1900
|
+
function bn(l) {
|
|
1901
|
+
y(l), S(l, "'");
|
|
1902
|
+
let c = "", b = "";
|
|
1903
|
+
for (; c = j(l, kt); )
|
|
1904
|
+
c === "\\" ? b += St(l) : b += c;
|
|
1905
|
+
const w = l.currentChar();
|
|
1906
|
+
return w === re || w === ve ? (v(R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), w === re && (l.next(), S(l, "'")), b) : (S(l, "'"), b);
|
|
1907
|
+
}
|
|
1908
|
+
function St(l) {
|
|
1909
|
+
const c = l.currentChar();
|
|
1910
|
+
switch (c) {
|
|
1911
|
+
case "\\":
|
|
1912
|
+
case "'":
|
|
1913
|
+
return l.next(), `\\${c}`;
|
|
1914
|
+
case "u":
|
|
1915
|
+
return ot(l, c, 4);
|
|
1916
|
+
case "U":
|
|
1917
|
+
return ot(l, c, 6);
|
|
1918
|
+
default:
|
|
1919
|
+
return v(R.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, c), "";
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
function ot(l, c, b) {
|
|
1923
|
+
S(l, c);
|
|
1924
|
+
let w = "";
|
|
1925
|
+
for (let Q = 0; Q < b; Q++) {
|
|
1926
|
+
const J = ge(l);
|
|
1927
|
+
if (!J) {
|
|
1928
|
+
v(R.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${c}${w}${l.currentChar()}`);
|
|
1929
|
+
break;
|
|
1930
|
+
}
|
|
1931
|
+
w += J;
|
|
1932
|
+
}
|
|
1933
|
+
return `\\${c}${w}`;
|
|
1934
|
+
}
|
|
1935
|
+
function Ct(l) {
|
|
1936
|
+
return l !== "{" && l !== "}" && l !== pe && l !== re;
|
|
1937
|
+
}
|
|
1938
|
+
function wt(l) {
|
|
1939
|
+
y(l);
|
|
1940
|
+
let c = "", b = "";
|
|
1941
|
+
for (; c = j(l, Ct); )
|
|
1942
|
+
b += c;
|
|
1943
|
+
return b;
|
|
1944
|
+
}
|
|
1945
|
+
function At(l) {
|
|
1946
|
+
let c = "", b = "";
|
|
1947
|
+
for (; c = A(l); )
|
|
1948
|
+
b += c;
|
|
1949
|
+
return b;
|
|
1950
|
+
}
|
|
1951
|
+
function Pt(l) {
|
|
1952
|
+
const c = (b) => {
|
|
1953
|
+
const w = l.currentChar();
|
|
1954
|
+
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w === pe ? b : (b += w, l.next(), c(b));
|
|
1955
|
+
};
|
|
1956
|
+
return c("");
|
|
1957
|
+
}
|
|
1958
|
+
function qe(l) {
|
|
1959
|
+
y(l);
|
|
1960
|
+
const c = S(
|
|
1961
|
+
l,
|
|
1962
|
+
"|"
|
|
1963
|
+
/* TokenChars.Pipe */
|
|
1964
|
+
);
|
|
1965
|
+
return y(l), c;
|
|
1966
|
+
}
|
|
1967
|
+
function Ke(l, c) {
|
|
1968
|
+
let b = null;
|
|
1969
|
+
switch (l.currentChar()) {
|
|
1970
|
+
case "{":
|
|
1971
|
+
return c.braceNest >= 1 && v(R.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), l.next(), b = f(
|
|
1972
|
+
c,
|
|
1973
|
+
2,
|
|
1974
|
+
"{"
|
|
1975
|
+
/* TokenChars.BraceLeft */
|
|
1976
|
+
), y(l), c.braceNest++, b;
|
|
1977
|
+
case "}":
|
|
1978
|
+
return c.braceNest > 0 && c.currentType === 2 && v(R.EMPTY_PLACEHOLDER, s(), 0), l.next(), b = f(
|
|
1979
|
+
c,
|
|
1980
|
+
3,
|
|
1981
|
+
"}"
|
|
1982
|
+
/* TokenChars.BraceRight */
|
|
1983
|
+
), c.braceNest--, c.braceNest > 0 && y(l), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), b;
|
|
1984
|
+
case "@":
|
|
1985
|
+
return c.braceNest > 0 && v(R.UNTERMINATED_CLOSING_BRACE, s(), 0), b = ke(l, c) || O(c), c.braceNest = 0, b;
|
|
1986
|
+
default: {
|
|
1987
|
+
let Q = !0, J = !0, $ = !0;
|
|
1988
|
+
if (q(l))
|
|
1989
|
+
return c.braceNest > 0 && v(R.UNTERMINATED_CLOSING_BRACE, s(), 0), b = f(c, 1, qe(l)), c.braceNest = 0, c.inLinked = !1, b;
|
|
1990
|
+
if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
|
|
1991
|
+
return v(R.UNTERMINATED_CLOSING_BRACE, s(), 0), c.braceNest = 0, Ye(l, c);
|
|
1992
|
+
if (Q = L(l, c))
|
|
1993
|
+
return b = f(c, 4, Ot(l)), y(l), b;
|
|
1994
|
+
if (J = p(l, c))
|
|
1995
|
+
return b = f(c, 5, It(l)), y(l), b;
|
|
1996
|
+
if ($ = N(l, c))
|
|
1997
|
+
return b = f(c, 6, bn(l)), y(l), b;
|
|
1998
|
+
if (!Q && !J && !$)
|
|
1999
|
+
return b = f(c, 12, wt(l)), v(R.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, b.value), y(l), b;
|
|
2000
|
+
break;
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
return b;
|
|
2004
|
+
}
|
|
2005
|
+
function ke(l, c) {
|
|
2006
|
+
const { currentType: b } = c;
|
|
2007
|
+
let w = null;
|
|
2008
|
+
const Q = l.currentChar();
|
|
2009
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (Q === re || Q === pe) && v(R.INVALID_LINKED_FORMAT, s(), 0), Q) {
|
|
2010
|
+
case "@":
|
|
2011
|
+
return l.next(), w = f(
|
|
2012
|
+
c,
|
|
2013
|
+
7,
|
|
2014
|
+
"@"
|
|
2015
|
+
/* TokenChars.LinkedAlias */
|
|
2016
|
+
), c.inLinked = !0, w;
|
|
2017
|
+
case ".":
|
|
2018
|
+
return y(l), l.next(), f(
|
|
2019
|
+
c,
|
|
2020
|
+
8,
|
|
2021
|
+
"."
|
|
2022
|
+
/* TokenChars.LinkedDot */
|
|
2023
|
+
);
|
|
2024
|
+
case ":":
|
|
2025
|
+
return y(l), l.next(), f(
|
|
2026
|
+
c,
|
|
2027
|
+
9,
|
|
2028
|
+
":"
|
|
2029
|
+
/* TokenChars.LinkedDelimiter */
|
|
2030
|
+
);
|
|
2031
|
+
default:
|
|
2032
|
+
return q(l) ? (w = f(c, 1, qe(l)), c.braceNest = 0, c.inLinked = !1, w) : I(l, c) || P(l, c) ? (y(l), ke(l, c)) : E(l, c) ? (y(l), f(c, 11, At(l))) : D(l, c) ? (y(l), Q === "{" ? Ke(l, c) || w : f(c, 10, Pt(l))) : (b === 7 && v(R.INVALID_LINKED_FORMAT, s(), 0), c.braceNest = 0, c.inLinked = !1, Ye(l, c));
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
function Ye(l, c) {
|
|
2036
|
+
let b = {
|
|
2037
|
+
type: 13
|
|
2038
|
+
/* TokenTypes.EOF */
|
|
2039
|
+
};
|
|
2040
|
+
if (c.braceNest > 0)
|
|
2041
|
+
return Ke(l, c) || O(c);
|
|
2042
|
+
if (c.inLinked)
|
|
2043
|
+
return ke(l, c) || O(c);
|
|
2044
|
+
switch (l.currentChar()) {
|
|
2045
|
+
case "{":
|
|
2046
|
+
return Ke(l, c) || O(c);
|
|
2047
|
+
case "}":
|
|
2048
|
+
return v(R.UNBALANCED_CLOSING_BRACE, s(), 0), l.next(), f(
|
|
2049
|
+
c,
|
|
2050
|
+
3,
|
|
2051
|
+
"}"
|
|
2052
|
+
/* TokenChars.BraceRight */
|
|
2053
|
+
);
|
|
2054
|
+
case "@":
|
|
2055
|
+
return ke(l, c) || O(c);
|
|
2056
|
+
default: {
|
|
2057
|
+
if (q(l))
|
|
2058
|
+
return b = f(c, 1, qe(l)), c.braceNest = 0, c.inLinked = !1, b;
|
|
2059
|
+
if (X(l))
|
|
2060
|
+
return f(c, 0, Tt(l));
|
|
2061
|
+
break;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
return b;
|
|
2065
|
+
}
|
|
2066
|
+
function Rt() {
|
|
2067
|
+
const { currentType: l, offset: c, startLoc: b, endLoc: w } = u;
|
|
2068
|
+
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = b, u.lastEndLoc = w, u.offset = r(), u.startLoc = s(), a.currentChar() === ve ? f(
|
|
2069
|
+
u,
|
|
2070
|
+
13
|
|
2071
|
+
/* TokenTypes.EOF */
|
|
2072
|
+
) : Ye(a, u);
|
|
2073
|
+
}
|
|
2074
|
+
return {
|
|
2075
|
+
nextToken: Rt,
|
|
2076
|
+
currentOffset: r,
|
|
2077
|
+
currentPosition: s,
|
|
2078
|
+
context: _
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
const so = "parser", oo = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
2082
|
+
function io(e, t, n) {
|
|
2083
|
+
switch (e) {
|
|
2084
|
+
case "\\\\":
|
|
2085
|
+
return "\\";
|
|
2086
|
+
case "\\'":
|
|
2087
|
+
return "'";
|
|
2088
|
+
default: {
|
|
2089
|
+
const a = parseInt(t || n, 16);
|
|
2090
|
+
return a <= 55295 || a >= 57344 ? String.fromCodePoint(a) : "�";
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
function lo(e = {}) {
|
|
2095
|
+
const t = e.location !== !1, { onError: n } = e;
|
|
2096
|
+
function a(d, m, L, p, ...N) {
|
|
2097
|
+
const I = d.currentPosition();
|
|
2098
|
+
if (I.offset += p, I.column += p, n) {
|
|
2099
|
+
const E = t ? Gt(L, I) : null, P = je(m, E, {
|
|
2100
|
+
domain: so,
|
|
2101
|
+
args: N
|
|
2102
|
+
});
|
|
2103
|
+
n(P);
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
function r(d, m, L) {
|
|
2107
|
+
const p = { type: d };
|
|
2108
|
+
return t && (p.start = m, p.end = m, p.loc = { start: L, end: L }), p;
|
|
2109
|
+
}
|
|
2110
|
+
function s(d, m, L, p) {
|
|
2111
|
+
t && (d.end = m, d.loc && (d.loc.end = L));
|
|
2112
|
+
}
|
|
2113
|
+
function o(d, m) {
|
|
2114
|
+
const L = d.context(), p = r(3, L.offset, L.startLoc);
|
|
2115
|
+
return p.value = m, s(p, d.currentOffset(), d.currentPosition()), p;
|
|
2116
|
+
}
|
|
2117
|
+
function i(d, m) {
|
|
2118
|
+
const L = d.context(), { lastOffset: p, lastStartLoc: N } = L, I = r(5, p, N);
|
|
2119
|
+
return I.index = parseInt(m, 10), d.nextToken(), s(I, d.currentOffset(), d.currentPosition()), I;
|
|
2120
|
+
}
|
|
2121
|
+
function u(d, m) {
|
|
2122
|
+
const L = d.context(), { lastOffset: p, lastStartLoc: N } = L, I = r(4, p, N);
|
|
2123
|
+
return I.key = m, d.nextToken(), s(I, d.currentOffset(), d.currentPosition()), I;
|
|
2124
|
+
}
|
|
2125
|
+
function _(d, m) {
|
|
2126
|
+
const L = d.context(), { lastOffset: p, lastStartLoc: N } = L, I = r(9, p, N);
|
|
2127
|
+
return I.value = m.replace(oo, io), d.nextToken(), s(I, d.currentOffset(), d.currentPosition()), I;
|
|
2128
|
+
}
|
|
2129
|
+
function h(d) {
|
|
2130
|
+
const m = d.nextToken(), L = d.context(), { lastOffset: p, lastStartLoc: N } = L, I = r(8, p, N);
|
|
2131
|
+
return m.type !== 11 ? (a(d, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), I.value = "", s(I, p, N), {
|
|
2132
|
+
nextConsumeToken: m,
|
|
2133
|
+
node: I
|
|
2134
|
+
}) : (m.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, de(m)), I.value = m.value || "", s(I, d.currentOffset(), d.currentPosition()), {
|
|
2135
|
+
node: I
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
function v(d, m) {
|
|
2139
|
+
const L = d.context(), p = r(7, L.offset, L.startLoc);
|
|
2140
|
+
return p.value = m, s(p, d.currentOffset(), d.currentPosition()), p;
|
|
2141
|
+
}
|
|
2142
|
+
function f(d) {
|
|
2143
|
+
const m = d.context(), L = r(6, m.offset, m.startLoc);
|
|
2144
|
+
let p = d.nextToken();
|
|
2145
|
+
if (p.type === 8) {
|
|
2146
|
+
const N = h(d);
|
|
2147
|
+
L.modifier = N.node, p = N.nextConsumeToken || d.nextToken();
|
|
2148
|
+
}
|
|
2149
|
+
switch (p.type !== 9 && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(p)), p = d.nextToken(), p.type === 2 && (p = d.nextToken()), p.type) {
|
|
2150
|
+
case 10:
|
|
2151
|
+
p.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(p)), L.key = v(d, p.value || "");
|
|
2152
|
+
break;
|
|
2153
|
+
case 4:
|
|
2154
|
+
p.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(p)), L.key = u(d, p.value || "");
|
|
2155
|
+
break;
|
|
2156
|
+
case 5:
|
|
2157
|
+
p.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(p)), L.key = i(d, p.value || "");
|
|
2158
|
+
break;
|
|
2159
|
+
case 6:
|
|
2160
|
+
p.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(p)), L.key = _(d, p.value || "");
|
|
2161
|
+
break;
|
|
2162
|
+
default: {
|
|
2163
|
+
a(d, R.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
|
|
2164
|
+
const N = d.context(), I = r(7, N.offset, N.startLoc);
|
|
2165
|
+
return I.value = "", s(I, N.offset, N.startLoc), L.key = I, s(L, N.offset, N.startLoc), {
|
|
2166
|
+
nextConsumeToken: p,
|
|
2167
|
+
node: L
|
|
2168
|
+
};
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
return s(L, d.currentOffset(), d.currentPosition()), {
|
|
2172
|
+
node: L
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
function O(d) {
|
|
2176
|
+
const m = d.context(), L = m.currentType === 1 ? d.currentOffset() : m.offset, p = m.currentType === 1 ? m.endLoc : m.startLoc, N = r(2, L, p);
|
|
2177
|
+
N.items = [];
|
|
2178
|
+
let I = null;
|
|
2179
|
+
do {
|
|
2180
|
+
const D = I || d.nextToken();
|
|
2181
|
+
switch (I = null, D.type) {
|
|
2182
|
+
case 0:
|
|
2183
|
+
D.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(D)), N.items.push(o(d, D.value || ""));
|
|
2184
|
+
break;
|
|
2185
|
+
case 5:
|
|
2186
|
+
D.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(D)), N.items.push(i(d, D.value || ""));
|
|
2187
|
+
break;
|
|
2188
|
+
case 4:
|
|
2189
|
+
D.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(D)), N.items.push(u(d, D.value || ""));
|
|
2190
|
+
break;
|
|
2191
|
+
case 6:
|
|
2192
|
+
D.value == null && a(d, R.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, de(D)), N.items.push(_(d, D.value || ""));
|
|
2193
|
+
break;
|
|
2194
|
+
case 7: {
|
|
2195
|
+
const q = f(d);
|
|
2196
|
+
N.items.push(q.node), I = q.nextConsumeToken || null;
|
|
2197
|
+
break;
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
} while (m.currentType !== 13 && m.currentType !== 1);
|
|
2201
|
+
const E = m.currentType === 1 ? m.lastOffset : d.currentOffset(), P = m.currentType === 1 ? m.lastEndLoc : d.currentPosition();
|
|
2202
|
+
return s(N, E, P), N;
|
|
2203
|
+
}
|
|
2204
|
+
function S(d, m, L, p) {
|
|
2205
|
+
const N = d.context();
|
|
2206
|
+
let I = p.items.length === 0;
|
|
2207
|
+
const E = r(1, m, L);
|
|
2208
|
+
E.cases = [], E.cases.push(p);
|
|
2209
|
+
do {
|
|
2210
|
+
const P = O(d);
|
|
2211
|
+
I || (I = P.items.length === 0), E.cases.push(P);
|
|
2212
|
+
} while (N.currentType !== 13);
|
|
2213
|
+
return I && a(d, R.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), s(E, d.currentOffset(), d.currentPosition()), E;
|
|
2214
|
+
}
|
|
2215
|
+
function k(d) {
|
|
2216
|
+
const m = d.context(), { offset: L, startLoc: p } = m, N = O(d);
|
|
2217
|
+
return m.currentType === 13 ? N : S(d, L, p, N);
|
|
2218
|
+
}
|
|
2219
|
+
function y(d) {
|
|
2220
|
+
const m = ao(d, ee({}, e)), L = m.context(), p = r(0, L.offset, L.startLoc);
|
|
2221
|
+
return t && p.loc && (p.loc.source = d), p.body = k(m), e.onCacheKey && (p.cacheKey = e.onCacheKey(d)), L.currentType !== 13 && a(m, R.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, d[L.offset] || ""), s(p, m.currentOffset(), m.currentPosition()), p;
|
|
2222
|
+
}
|
|
2223
|
+
return { parse: y };
|
|
2224
|
+
}
|
|
2225
|
+
function de(e) {
|
|
2226
|
+
if (e.type === 13)
|
|
2227
|
+
return "EOF";
|
|
2228
|
+
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
2229
|
+
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
2230
|
+
}
|
|
2231
|
+
function co(e, t = {}) {
|
|
2232
|
+
const n = {
|
|
2233
|
+
ast: e,
|
|
2234
|
+
helpers: /* @__PURE__ */ new Set()
|
|
2235
|
+
};
|
|
2236
|
+
return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
|
|
2237
|
+
}
|
|
2238
|
+
function Gn(e, t) {
|
|
2239
|
+
for (let n = 0; n < e.length; n++)
|
|
2240
|
+
fn(e[n], t);
|
|
2241
|
+
}
|
|
2242
|
+
function fn(e, t) {
|
|
2243
|
+
switch (e.type) {
|
|
2244
|
+
case 1:
|
|
2245
|
+
Gn(e.cases, t), t.helper(
|
|
2246
|
+
"plural"
|
|
2247
|
+
/* HelperNameMap.PLURAL */
|
|
2248
|
+
);
|
|
2249
|
+
break;
|
|
2250
|
+
case 2:
|
|
2251
|
+
Gn(e.items, t);
|
|
2252
|
+
break;
|
|
2253
|
+
case 6: {
|
|
2254
|
+
fn(e.key, t), t.helper(
|
|
2255
|
+
"linked"
|
|
2256
|
+
/* HelperNameMap.LINKED */
|
|
2257
|
+
), t.helper(
|
|
2258
|
+
"type"
|
|
2259
|
+
/* HelperNameMap.TYPE */
|
|
2260
|
+
);
|
|
2261
|
+
break;
|
|
2262
|
+
}
|
|
2263
|
+
case 5:
|
|
2264
|
+
t.helper(
|
|
2265
|
+
"interpolate"
|
|
2266
|
+
/* HelperNameMap.INTERPOLATE */
|
|
2267
|
+
), t.helper(
|
|
2268
|
+
"list"
|
|
2269
|
+
/* HelperNameMap.LIST */
|
|
2270
|
+
);
|
|
2271
|
+
break;
|
|
2272
|
+
case 4:
|
|
2273
|
+
t.helper(
|
|
2274
|
+
"interpolate"
|
|
2275
|
+
/* HelperNameMap.INTERPOLATE */
|
|
2276
|
+
), t.helper(
|
|
2277
|
+
"named"
|
|
2278
|
+
/* HelperNameMap.NAMED */
|
|
2279
|
+
);
|
|
2280
|
+
break;
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
function uo(e, t = {}) {
|
|
2284
|
+
const n = co(e);
|
|
2285
|
+
n.helper(
|
|
2286
|
+
"normalize"
|
|
2287
|
+
/* HelperNameMap.NORMALIZE */
|
|
2288
|
+
), e.body && fn(e.body, n);
|
|
2289
|
+
const a = n.context();
|
|
2290
|
+
e.helpers = Array.from(a.helpers);
|
|
2291
|
+
}
|
|
2292
|
+
function fo(e) {
|
|
2293
|
+
const t = e.body;
|
|
2294
|
+
return t.type === 2 ? qn(t) : t.cases.forEach((n) => qn(n)), e;
|
|
2295
|
+
}
|
|
2296
|
+
function qn(e) {
|
|
2297
|
+
if (e.items.length === 1) {
|
|
2298
|
+
const t = e.items[0];
|
|
2299
|
+
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
2300
|
+
} else {
|
|
2301
|
+
const t = [];
|
|
2302
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
2303
|
+
const a = e.items[n];
|
|
2304
|
+
if (!(a.type === 3 || a.type === 9) || a.value == null)
|
|
2305
|
+
break;
|
|
2306
|
+
t.push(a.value);
|
|
2307
|
+
}
|
|
2308
|
+
if (t.length === e.items.length) {
|
|
2309
|
+
e.static = cn(t);
|
|
2310
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
2311
|
+
const a = e.items[n];
|
|
2312
|
+
(a.type === 3 || a.type === 9) && delete a.value;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
const _o = "minifier";
|
|
2318
|
+
function We(e) {
|
|
2319
|
+
switch (e.t = e.type, e.type) {
|
|
2320
|
+
case 0: {
|
|
2321
|
+
const t = e;
|
|
2322
|
+
We(t.body), t.b = t.body, delete t.body;
|
|
2323
|
+
break;
|
|
2324
|
+
}
|
|
2325
|
+
case 1: {
|
|
2326
|
+
const t = e, n = t.cases;
|
|
2327
|
+
for (let a = 0; a < n.length; a++)
|
|
2328
|
+
We(n[a]);
|
|
2329
|
+
t.c = n, delete t.cases;
|
|
2330
|
+
break;
|
|
2331
|
+
}
|
|
2332
|
+
case 2: {
|
|
2333
|
+
const t = e, n = t.items;
|
|
2334
|
+
for (let a = 0; a < n.length; a++)
|
|
2335
|
+
We(n[a]);
|
|
2336
|
+
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
2337
|
+
break;
|
|
2338
|
+
}
|
|
2339
|
+
case 3:
|
|
2340
|
+
case 9:
|
|
2341
|
+
case 8:
|
|
2342
|
+
case 7: {
|
|
2343
|
+
const t = e;
|
|
2344
|
+
t.value && (t.v = t.value, delete t.value);
|
|
2345
|
+
break;
|
|
2346
|
+
}
|
|
2347
|
+
case 6: {
|
|
2348
|
+
const t = e;
|
|
2349
|
+
We(t.key), t.k = t.key, delete t.key, t.modifier && (We(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
2350
|
+
break;
|
|
2351
|
+
}
|
|
2352
|
+
case 5: {
|
|
2353
|
+
const t = e;
|
|
2354
|
+
t.i = t.index, delete t.index;
|
|
2355
|
+
break;
|
|
2356
|
+
}
|
|
2357
|
+
case 4: {
|
|
2358
|
+
const t = e;
|
|
2359
|
+
t.k = t.key, delete t.key;
|
|
2360
|
+
break;
|
|
2361
|
+
}
|
|
2362
|
+
default:
|
|
2363
|
+
if (process.env.NODE_ENV !== "production")
|
|
2364
|
+
throw je(R.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
2365
|
+
domain: _o,
|
|
2366
|
+
args: [e.type]
|
|
2367
|
+
});
|
|
2368
|
+
}
|
|
2369
|
+
delete e.type;
|
|
2370
|
+
}
|
|
2371
|
+
const mo = "parser";
|
|
2372
|
+
function go(e, t) {
|
|
2373
|
+
const { filename: n, breakLineCode: a, needIndent: r } = t, s = t.location !== !1, o = {
|
|
2374
|
+
filename: n,
|
|
2375
|
+
code: "",
|
|
2376
|
+
column: 1,
|
|
2377
|
+
line: 1,
|
|
2378
|
+
offset: 0,
|
|
2379
|
+
map: void 0,
|
|
2380
|
+
breakLineCode: a,
|
|
2381
|
+
needIndent: r,
|
|
2382
|
+
indentLevel: 0
|
|
2383
|
+
};
|
|
2384
|
+
s && e.loc && (o.source = e.loc.source);
|
|
2385
|
+
const i = () => o;
|
|
2386
|
+
function u(k, y) {
|
|
2387
|
+
o.code += k;
|
|
2388
|
+
}
|
|
2389
|
+
function _(k, y = !0) {
|
|
2390
|
+
const d = y ? a : "";
|
|
2391
|
+
u(r ? d + " ".repeat(k) : d);
|
|
2392
|
+
}
|
|
2393
|
+
function h(k = !0) {
|
|
2394
|
+
const y = ++o.indentLevel;
|
|
2395
|
+
k && _(y);
|
|
2396
|
+
}
|
|
2397
|
+
function v(k = !0) {
|
|
2398
|
+
const y = --o.indentLevel;
|
|
2399
|
+
k && _(y);
|
|
2400
|
+
}
|
|
2401
|
+
function f() {
|
|
2402
|
+
_(o.indentLevel);
|
|
2403
|
+
}
|
|
2404
|
+
return {
|
|
2405
|
+
context: i,
|
|
2406
|
+
push: u,
|
|
2407
|
+
indent: h,
|
|
2408
|
+
deindent: v,
|
|
2409
|
+
newline: f,
|
|
2410
|
+
helper: (k) => `_${k}`,
|
|
2411
|
+
needIndent: () => o.needIndent
|
|
2412
|
+
};
|
|
2413
|
+
}
|
|
2414
|
+
function po(e, t) {
|
|
2415
|
+
const { helper: n } = e;
|
|
2416
|
+
e.push(`${n(
|
|
2417
|
+
"linked"
|
|
2418
|
+
/* HelperNameMap.LINKED */
|
|
2419
|
+
)}(`), He(e, t.key), t.modifier ? (e.push(", "), He(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
2420
|
+
}
|
|
2421
|
+
function ho(e, t) {
|
|
2422
|
+
const { helper: n, needIndent: a } = e;
|
|
2423
|
+
e.push(`${n(
|
|
2424
|
+
"normalize"
|
|
2425
|
+
/* HelperNameMap.NORMALIZE */
|
|
2426
|
+
)}([`), e.indent(a());
|
|
2427
|
+
const r = t.items.length;
|
|
2428
|
+
for (let s = 0; s < r && (He(e, t.items[s]), s !== r - 1); s++)
|
|
2429
|
+
e.push(", ");
|
|
2430
|
+
e.deindent(a()), e.push("])");
|
|
2431
|
+
}
|
|
2432
|
+
function Eo(e, t) {
|
|
2433
|
+
const { helper: n, needIndent: a } = e;
|
|
2434
|
+
if (t.cases.length > 1) {
|
|
2435
|
+
e.push(`${n(
|
|
2436
|
+
"plural"
|
|
2437
|
+
/* HelperNameMap.PLURAL */
|
|
2438
|
+
)}([`), e.indent(a());
|
|
2439
|
+
const r = t.cases.length;
|
|
2440
|
+
for (let s = 0; s < r && (He(e, t.cases[s]), s !== r - 1); s++)
|
|
2441
|
+
e.push(", ");
|
|
2442
|
+
e.deindent(a()), e.push("])");
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
function vo(e, t) {
|
|
2446
|
+
t.body ? He(e, t.body) : e.push("null");
|
|
2447
|
+
}
|
|
2448
|
+
function He(e, t) {
|
|
2449
|
+
const { helper: n } = e;
|
|
2450
|
+
switch (t.type) {
|
|
2451
|
+
case 0:
|
|
2452
|
+
vo(e, t);
|
|
2453
|
+
break;
|
|
2454
|
+
case 1:
|
|
2455
|
+
Eo(e, t);
|
|
2456
|
+
break;
|
|
2457
|
+
case 2:
|
|
2458
|
+
ho(e, t);
|
|
2459
|
+
break;
|
|
2460
|
+
case 6:
|
|
2461
|
+
po(e, t);
|
|
2462
|
+
break;
|
|
2463
|
+
case 8:
|
|
2464
|
+
e.push(JSON.stringify(t.value), t);
|
|
2465
|
+
break;
|
|
2466
|
+
case 7:
|
|
2467
|
+
e.push(JSON.stringify(t.value), t);
|
|
2468
|
+
break;
|
|
2469
|
+
case 5:
|
|
2470
|
+
e.push(`${n(
|
|
2471
|
+
"interpolate"
|
|
2472
|
+
/* HelperNameMap.INTERPOLATE */
|
|
2473
|
+
)}(${n(
|
|
2474
|
+
"list"
|
|
2475
|
+
/* HelperNameMap.LIST */
|
|
2476
|
+
)}(${t.index}))`, t);
|
|
2477
|
+
break;
|
|
2478
|
+
case 4:
|
|
2479
|
+
e.push(`${n(
|
|
2480
|
+
"interpolate"
|
|
2481
|
+
/* HelperNameMap.INTERPOLATE */
|
|
2482
|
+
)}(${n(
|
|
2483
|
+
"named"
|
|
2484
|
+
/* HelperNameMap.NAMED */
|
|
2485
|
+
)}(${JSON.stringify(t.key)}))`, t);
|
|
2486
|
+
break;
|
|
2487
|
+
case 9:
|
|
2488
|
+
e.push(JSON.stringify(t.value), t);
|
|
2489
|
+
break;
|
|
2490
|
+
case 3:
|
|
2491
|
+
e.push(JSON.stringify(t.value), t);
|
|
2492
|
+
break;
|
|
2493
|
+
default:
|
|
2494
|
+
if (process.env.NODE_ENV !== "production")
|
|
2495
|
+
throw je(R.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
2496
|
+
domain: mo,
|
|
2497
|
+
args: [t.type]
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
const bo = (e, t = {}) => {
|
|
2502
|
+
const n = C(t.mode) ? t.mode : "normal", a = C(t.filename) ? t.filename : "message.intl";
|
|
2503
|
+
t.sourceMap;
|
|
2504
|
+
const r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
2505
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = go(e, {
|
|
2506
|
+
filename: a,
|
|
2507
|
+
breakLineCode: r,
|
|
2508
|
+
needIndent: s
|
|
2509
|
+
});
|
|
2510
|
+
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(s), o.length > 0 && (i.push(`const { ${cn(o.map((h) => `${h}: _${h}`), ", ")} } = ctx`), i.newline()), i.push("return "), He(i, e), i.deindent(s), i.push("}"), delete e.helpers;
|
|
2511
|
+
const { code: u, map: _ } = i.context();
|
|
2512
|
+
return {
|
|
2513
|
+
ast: e,
|
|
2514
|
+
code: u,
|
|
2515
|
+
map: _ ? _.toJSON() : void 0
|
|
2516
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2517
|
+
};
|
|
2518
|
+
};
|
|
2519
|
+
function No(e, t = {}) {
|
|
2520
|
+
const n = ee({}, t), a = !!n.jit, r = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = lo(n).parse(e);
|
|
2521
|
+
return a ? (s && fo(i), r && We(i), { ast: i, code: "" }) : (uo(i, n), bo(i, n));
|
|
2522
|
+
}
|
|
2523
|
+
/*!
|
|
2524
|
+
* core-base v10.0.5
|
|
2525
|
+
* (c) 2024 kazuya kawaguchi
|
|
2526
|
+
* Released under the MIT License.
|
|
2527
|
+
*/
|
|
2528
|
+
function Lo() {
|
|
2529
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (we().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (we().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
2530
|
+
}
|
|
2531
|
+
function Ft(e) {
|
|
2532
|
+
return (n) => yo(n, e);
|
|
2533
|
+
}
|
|
2534
|
+
function yo(e, t) {
|
|
2535
|
+
const n = Oo(t);
|
|
2536
|
+
if (n == null)
|
|
2537
|
+
throw ze(
|
|
2538
|
+
0
|
|
2539
|
+
/* NodeTypes.Resource */
|
|
2540
|
+
);
|
|
2541
|
+
if (dn(n) === 1) {
|
|
2542
|
+
const s = ko(n);
|
|
2543
|
+
return e.plural(s.reduce((o, i) => [
|
|
2544
|
+
...o,
|
|
2545
|
+
Kn(e, i)
|
|
2546
|
+
], []));
|
|
2547
|
+
} else
|
|
2548
|
+
return Kn(e, n);
|
|
2549
|
+
}
|
|
2550
|
+
const To = ["b", "body"];
|
|
2551
|
+
function Oo(e) {
|
|
2552
|
+
return Oe(e, To);
|
|
2553
|
+
}
|
|
2554
|
+
const Io = ["c", "cases"];
|
|
2555
|
+
function ko(e) {
|
|
2556
|
+
return Oe(e, Io, []);
|
|
2557
|
+
}
|
|
2558
|
+
function Kn(e, t) {
|
|
2559
|
+
const n = Co(t);
|
|
2560
|
+
if (n != null)
|
|
2561
|
+
return e.type === "text" ? n : e.normalize([n]);
|
|
2562
|
+
{
|
|
2563
|
+
const a = Ao(t).reduce((r, s) => [...r, qt(e, s)], []);
|
|
2564
|
+
return e.normalize(a);
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
const So = ["s", "static"];
|
|
2568
|
+
function Co(e) {
|
|
2569
|
+
return Oe(e, So);
|
|
2570
|
+
}
|
|
2571
|
+
const wo = ["i", "items"];
|
|
2572
|
+
function Ao(e) {
|
|
2573
|
+
return Oe(e, wo, []);
|
|
2574
|
+
}
|
|
2575
|
+
function qt(e, t) {
|
|
2576
|
+
const n = dn(t);
|
|
2577
|
+
switch (n) {
|
|
2578
|
+
case 3:
|
|
2579
|
+
return ct(t, n);
|
|
2580
|
+
case 9:
|
|
2581
|
+
return ct(t, n);
|
|
2582
|
+
case 4: {
|
|
2583
|
+
const a = t;
|
|
2584
|
+
if (ue(a, "k") && a.k)
|
|
2585
|
+
return e.interpolate(e.named(a.k));
|
|
2586
|
+
if (ue(a, "key") && a.key)
|
|
2587
|
+
return e.interpolate(e.named(a.key));
|
|
2588
|
+
throw ze(n);
|
|
2589
|
+
}
|
|
2590
|
+
case 5: {
|
|
2591
|
+
const a = t;
|
|
2592
|
+
if (ue(a, "i") && Z(a.i))
|
|
2593
|
+
return e.interpolate(e.list(a.i));
|
|
2594
|
+
if (ue(a, "index") && Z(a.index))
|
|
2595
|
+
return e.interpolate(e.list(a.index));
|
|
2596
|
+
throw ze(n);
|
|
2597
|
+
}
|
|
2598
|
+
case 6: {
|
|
2599
|
+
const a = t, r = Mo(a), s = xo(a);
|
|
2600
|
+
return e.linked(qt(e, s), r ? qt(e, r) : void 0, e.type);
|
|
2601
|
+
}
|
|
2602
|
+
case 7:
|
|
2603
|
+
return ct(t, n);
|
|
2604
|
+
case 8:
|
|
2605
|
+
return ct(t, n);
|
|
2606
|
+
default:
|
|
2607
|
+
throw new Error(`unhandled node on format message part: ${n}`);
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
const Po = ["t", "type"];
|
|
2611
|
+
function dn(e) {
|
|
2612
|
+
return Oe(e, Po);
|
|
2613
|
+
}
|
|
2614
|
+
const Ro = ["v", "value"];
|
|
2615
|
+
function ct(e, t) {
|
|
2616
|
+
const n = Oe(e, Ro);
|
|
2617
|
+
if (n)
|
|
2618
|
+
return n;
|
|
2619
|
+
throw ze(t);
|
|
2620
|
+
}
|
|
2621
|
+
const Do = ["m", "modifier"];
|
|
2622
|
+
function Mo(e) {
|
|
2623
|
+
return Oe(e, Do);
|
|
2624
|
+
}
|
|
2625
|
+
const Fo = ["k", "key"];
|
|
2626
|
+
function xo(e) {
|
|
2627
|
+
const t = Oe(e, Fo);
|
|
2628
|
+
if (t)
|
|
2629
|
+
return t;
|
|
2630
|
+
throw ze(
|
|
2631
|
+
6
|
|
2632
|
+
/* NodeTypes.Linked */
|
|
2633
|
+
);
|
|
2634
|
+
}
|
|
2635
|
+
function Oe(e, t, n) {
|
|
2636
|
+
for (let a = 0; a < t.length; a++) {
|
|
2637
|
+
const r = t[a];
|
|
2638
|
+
if (ue(e, r) && e[r] != null)
|
|
2639
|
+
return e[r];
|
|
2640
|
+
}
|
|
2641
|
+
return n;
|
|
2642
|
+
}
|
|
2643
|
+
function ze(e) {
|
|
2644
|
+
return new Error(`unhandled node type: ${e}`);
|
|
2645
|
+
}
|
|
2646
|
+
const Uo = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
2647
|
+
function $o(e, t) {
|
|
2648
|
+
t && Js(e) && Te(pt(Uo, { source: e }));
|
|
2649
|
+
}
|
|
2650
|
+
const Vo = (e) => e;
|
|
2651
|
+
let ut = W();
|
|
2652
|
+
function ye(e) {
|
|
2653
|
+
return x(e) && dn(e) === 0 && (ue(e, "b") || ue(e, "body"));
|
|
2654
|
+
}
|
|
2655
|
+
function Wo(e, t = {}) {
|
|
2656
|
+
let n = !1;
|
|
2657
|
+
const a = t.onError || Xs;
|
|
2658
|
+
return t.onError = (r) => {
|
|
2659
|
+
n = !0, a(r);
|
|
2660
|
+
}, { ...No(e, t), detectError: n };
|
|
2661
|
+
}
|
|
2662
|
+
// @__NO_SIDE_EFFECTS__
|
|
2663
|
+
function Bo(e, t) {
|
|
2664
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && C(e)) {
|
|
2665
|
+
const n = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
2666
|
+
process.env.NODE_ENV !== "production" && $o(e, n);
|
|
2667
|
+
const r = (t.onCacheKey || Vo)(e), s = ut[r];
|
|
2668
|
+
if (s)
|
|
2669
|
+
return s;
|
|
2670
|
+
const { ast: o, detectError: i } = Wo(e, {
|
|
2671
|
+
...t,
|
|
2672
|
+
location: process.env.NODE_ENV !== "production",
|
|
2673
|
+
jit: !0
|
|
2674
|
+
}), u = Ft(o);
|
|
2675
|
+
return i ? u : ut[r] = u;
|
|
2676
|
+
} else {
|
|
2677
|
+
if (process.env.NODE_ENV !== "production" && !ye(e))
|
|
2678
|
+
return Te(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
|
2679
|
+
const n = e.cacheKey;
|
|
2680
|
+
if (n) {
|
|
2681
|
+
const a = ut[n];
|
|
2682
|
+
return a || (ut[n] = Ft(e));
|
|
2683
|
+
} else
|
|
2684
|
+
return Ft(e);
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
let Ze = null;
|
|
2688
|
+
function Ho(e) {
|
|
2689
|
+
Ze = e;
|
|
2690
|
+
}
|
|
2691
|
+
function jo(e, t, n) {
|
|
2692
|
+
Ze && Ze.emit("i18n:init", {
|
|
2693
|
+
timestamp: Date.now(),
|
|
2694
|
+
i18n: e,
|
|
2695
|
+
version: t,
|
|
2696
|
+
meta: n
|
|
2697
|
+
});
|
|
2698
|
+
}
|
|
2699
|
+
const Go = /* @__PURE__ */ qo("function:translate");
|
|
2700
|
+
function qo(e) {
|
|
2701
|
+
return (t) => Ze && Ze.emit(e, t);
|
|
2702
|
+
}
|
|
2703
|
+
const ne = {
|
|
2704
|
+
INVALID_ARGUMENT: Ks,
|
|
2705
|
+
// 17
|
|
2706
|
+
INVALID_DATE_ARGUMENT: 18,
|
|
2707
|
+
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
2708
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
2709
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
2710
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
2711
|
+
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
2712
|
+
}, Ko = 24;
|
|
2713
|
+
function he(e) {
|
|
2714
|
+
return je(e, null, process.env.NODE_ENV !== "production" ? { messages: Yo } : void 0);
|
|
2715
|
+
}
|
|
2716
|
+
const Yo = {
|
|
2717
|
+
[ne.INVALID_ARGUMENT]: "Invalid arguments",
|
|
2718
|
+
[ne.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
2719
|
+
[ne.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
2720
|
+
[ne.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
2721
|
+
[ne.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
2722
|
+
[ne.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
2723
|
+
[ne.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
2724
|
+
};
|
|
2725
|
+
function _n(e, t) {
|
|
2726
|
+
return t.locale != null ? Yn(t.locale) : Yn(e.locale);
|
|
2727
|
+
}
|
|
2728
|
+
let xt;
|
|
2729
|
+
function Yn(e) {
|
|
2730
|
+
if (C(e))
|
|
2731
|
+
return e;
|
|
2732
|
+
if (H(e)) {
|
|
2733
|
+
if (e.resolvedOnce && xt != null)
|
|
2734
|
+
return xt;
|
|
2735
|
+
if (e.constructor.name === "Function") {
|
|
2736
|
+
const t = e();
|
|
2737
|
+
if (Hs(t))
|
|
2738
|
+
throw he(ne.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
2739
|
+
return xt = t;
|
|
2740
|
+
} else
|
|
2741
|
+
throw he(ne.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
2742
|
+
} else
|
|
2743
|
+
throw he(ne.NOT_SUPPORT_LOCALE_TYPE);
|
|
2744
|
+
}
|
|
2745
|
+
function Xo(e, t, n) {
|
|
2746
|
+
return [.../* @__PURE__ */ new Set([
|
|
2747
|
+
n,
|
|
2748
|
+
...Y(t) ? t : x(t) ? Object.keys(t) : C(t) ? [t] : [n]
|
|
2749
|
+
])];
|
|
2750
|
+
}
|
|
2751
|
+
function $r(e, t, n) {
|
|
2752
|
+
const a = C(n) ? n : et, r = e;
|
|
2753
|
+
r.__localeChainCache || (r.__localeChainCache = /* @__PURE__ */ new Map());
|
|
2754
|
+
let s = r.__localeChainCache.get(a);
|
|
2755
|
+
if (!s) {
|
|
2756
|
+
s = [];
|
|
2757
|
+
let o = [n];
|
|
2758
|
+
for (; Y(o); )
|
|
2759
|
+
o = Xn(s, o, t);
|
|
2760
|
+
const i = Y(t) || !M(t) ? t : t.default ? t.default : null;
|
|
2761
|
+
o = C(i) ? [i] : i, Y(o) && Xn(s, o, !1), r.__localeChainCache.set(a, s);
|
|
2762
|
+
}
|
|
2763
|
+
return s;
|
|
2764
|
+
}
|
|
2765
|
+
function Xn(e, t, n) {
|
|
2766
|
+
let a = !0;
|
|
2767
|
+
for (let r = 0; r < t.length && U(a); r++) {
|
|
2768
|
+
const s = t[r];
|
|
2769
|
+
C(s) && (a = Qo(e, t[r], n));
|
|
2770
|
+
}
|
|
2771
|
+
return a;
|
|
2772
|
+
}
|
|
2773
|
+
function Qo(e, t, n) {
|
|
2774
|
+
let a;
|
|
2775
|
+
const r = t.split("-");
|
|
2776
|
+
do {
|
|
2777
|
+
const s = r.join("-");
|
|
2778
|
+
a = Jo(e, s, n), r.splice(-1, 1);
|
|
2779
|
+
} while (r.length && a === !0);
|
|
2780
|
+
return a;
|
|
2781
|
+
}
|
|
2782
|
+
function Jo(e, t, n) {
|
|
2783
|
+
let a = !1;
|
|
2784
|
+
if (!e.includes(t) && (a = !0, t)) {
|
|
2785
|
+
a = t[t.length - 1] !== "!";
|
|
2786
|
+
const r = t.replace(/!/g, "");
|
|
2787
|
+
e.push(r), (Y(n) || M(n)) && n[r] && (a = n[r]);
|
|
2788
|
+
}
|
|
2789
|
+
return a;
|
|
2790
|
+
}
|
|
2791
|
+
const Ie = [];
|
|
2792
|
+
Ie[
|
|
2793
|
+
0
|
|
2794
|
+
/* States.BEFORE_PATH */
|
|
2795
|
+
] = {
|
|
2796
|
+
w: [
|
|
2797
|
+
0
|
|
2798
|
+
/* States.BEFORE_PATH */
|
|
2799
|
+
],
|
|
2800
|
+
i: [
|
|
2801
|
+
3,
|
|
2802
|
+
0
|
|
2803
|
+
/* Actions.APPEND */
|
|
2804
|
+
],
|
|
2805
|
+
"[": [
|
|
2806
|
+
4
|
|
2807
|
+
/* States.IN_SUB_PATH */
|
|
2808
|
+
],
|
|
2809
|
+
o: [
|
|
2810
|
+
7
|
|
2811
|
+
/* States.AFTER_PATH */
|
|
2812
|
+
]
|
|
2813
|
+
};
|
|
2814
|
+
Ie[
|
|
2815
|
+
1
|
|
2816
|
+
/* States.IN_PATH */
|
|
2817
|
+
] = {
|
|
2818
|
+
w: [
|
|
2819
|
+
1
|
|
2820
|
+
/* States.IN_PATH */
|
|
2821
|
+
],
|
|
2822
|
+
".": [
|
|
2823
|
+
2
|
|
2824
|
+
/* States.BEFORE_IDENT */
|
|
2825
|
+
],
|
|
2826
|
+
"[": [
|
|
2827
|
+
4
|
|
2828
|
+
/* States.IN_SUB_PATH */
|
|
2829
|
+
],
|
|
2830
|
+
o: [
|
|
2831
|
+
7
|
|
2832
|
+
/* States.AFTER_PATH */
|
|
2833
|
+
]
|
|
2834
|
+
};
|
|
2835
|
+
Ie[
|
|
2836
|
+
2
|
|
2837
|
+
/* States.BEFORE_IDENT */
|
|
2838
|
+
] = {
|
|
2839
|
+
w: [
|
|
2840
|
+
2
|
|
2841
|
+
/* States.BEFORE_IDENT */
|
|
2842
|
+
],
|
|
2843
|
+
i: [
|
|
2844
|
+
3,
|
|
2845
|
+
0
|
|
2846
|
+
/* Actions.APPEND */
|
|
2847
|
+
],
|
|
2848
|
+
0: [
|
|
2849
|
+
3,
|
|
2850
|
+
0
|
|
2851
|
+
/* Actions.APPEND */
|
|
2852
|
+
]
|
|
2853
|
+
};
|
|
2854
|
+
Ie[
|
|
2855
|
+
3
|
|
2856
|
+
/* States.IN_IDENT */
|
|
2857
|
+
] = {
|
|
2858
|
+
i: [
|
|
2859
|
+
3,
|
|
2860
|
+
0
|
|
2861
|
+
/* Actions.APPEND */
|
|
2862
|
+
],
|
|
2863
|
+
0: [
|
|
2864
|
+
3,
|
|
2865
|
+
0
|
|
2866
|
+
/* Actions.APPEND */
|
|
2867
|
+
],
|
|
2868
|
+
w: [
|
|
2869
|
+
1,
|
|
2870
|
+
1
|
|
2871
|
+
/* Actions.PUSH */
|
|
2872
|
+
],
|
|
2873
|
+
".": [
|
|
2874
|
+
2,
|
|
2875
|
+
1
|
|
2876
|
+
/* Actions.PUSH */
|
|
2877
|
+
],
|
|
2878
|
+
"[": [
|
|
2879
|
+
4,
|
|
2880
|
+
1
|
|
2881
|
+
/* Actions.PUSH */
|
|
2882
|
+
],
|
|
2883
|
+
o: [
|
|
2884
|
+
7,
|
|
2885
|
+
1
|
|
2886
|
+
/* Actions.PUSH */
|
|
2887
|
+
]
|
|
2888
|
+
};
|
|
2889
|
+
Ie[
|
|
2890
|
+
4
|
|
2891
|
+
/* States.IN_SUB_PATH */
|
|
2892
|
+
] = {
|
|
2893
|
+
"'": [
|
|
2894
|
+
5,
|
|
2895
|
+
0
|
|
2896
|
+
/* Actions.APPEND */
|
|
2897
|
+
],
|
|
2898
|
+
'"': [
|
|
2899
|
+
6,
|
|
2900
|
+
0
|
|
2901
|
+
/* Actions.APPEND */
|
|
2902
|
+
],
|
|
2903
|
+
"[": [
|
|
2904
|
+
4,
|
|
2905
|
+
2
|
|
2906
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
2907
|
+
],
|
|
2908
|
+
"]": [
|
|
2909
|
+
1,
|
|
2910
|
+
3
|
|
2911
|
+
/* Actions.PUSH_SUB_PATH */
|
|
2912
|
+
],
|
|
2913
|
+
o: 8,
|
|
2914
|
+
l: [
|
|
2915
|
+
4,
|
|
2916
|
+
0
|
|
2917
|
+
/* Actions.APPEND */
|
|
2918
|
+
]
|
|
2919
|
+
};
|
|
2920
|
+
Ie[
|
|
2921
|
+
5
|
|
2922
|
+
/* States.IN_SINGLE_QUOTE */
|
|
2923
|
+
] = {
|
|
2924
|
+
"'": [
|
|
2925
|
+
4,
|
|
2926
|
+
0
|
|
2927
|
+
/* Actions.APPEND */
|
|
2928
|
+
],
|
|
2929
|
+
o: 8,
|
|
2930
|
+
l: [
|
|
2931
|
+
5,
|
|
2932
|
+
0
|
|
2933
|
+
/* Actions.APPEND */
|
|
2934
|
+
]
|
|
2935
|
+
};
|
|
2936
|
+
Ie[
|
|
2937
|
+
6
|
|
2938
|
+
/* States.IN_DOUBLE_QUOTE */
|
|
2939
|
+
] = {
|
|
2940
|
+
'"': [
|
|
2941
|
+
4,
|
|
2942
|
+
0
|
|
2943
|
+
/* Actions.APPEND */
|
|
2944
|
+
],
|
|
2945
|
+
o: 8,
|
|
2946
|
+
l: [
|
|
2947
|
+
6,
|
|
2948
|
+
0
|
|
2949
|
+
/* Actions.APPEND */
|
|
2950
|
+
]
|
|
2951
|
+
};
|
|
2952
|
+
const zo = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
2953
|
+
function Zo(e) {
|
|
2954
|
+
return zo.test(e);
|
|
2955
|
+
}
|
|
2956
|
+
function ei(e) {
|
|
2957
|
+
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
2958
|
+
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
2959
|
+
}
|
|
2960
|
+
function ti(e) {
|
|
2961
|
+
if (e == null)
|
|
2962
|
+
return "o";
|
|
2963
|
+
switch (e.charCodeAt(0)) {
|
|
2964
|
+
case 91:
|
|
2965
|
+
case 93:
|
|
2966
|
+
case 46:
|
|
2967
|
+
case 34:
|
|
2968
|
+
case 39:
|
|
2969
|
+
return e;
|
|
2970
|
+
case 95:
|
|
2971
|
+
case 36:
|
|
2972
|
+
case 45:
|
|
2973
|
+
return "i";
|
|
2974
|
+
case 9:
|
|
2975
|
+
case 10:
|
|
2976
|
+
case 13:
|
|
2977
|
+
case 160:
|
|
2978
|
+
case 65279:
|
|
2979
|
+
case 8232:
|
|
2980
|
+
case 8233:
|
|
2981
|
+
return "w";
|
|
2982
|
+
}
|
|
2983
|
+
return "i";
|
|
2984
|
+
}
|
|
2985
|
+
function ni(e) {
|
|
2986
|
+
const t = e.trim();
|
|
2987
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Zo(t) ? ei(t) : "*" + t;
|
|
2988
|
+
}
|
|
2989
|
+
function ri(e) {
|
|
2990
|
+
const t = [];
|
|
2991
|
+
let n = -1, a = 0, r = 0, s, o, i, u, _, h, v;
|
|
2992
|
+
const f = [];
|
|
2993
|
+
f[
|
|
2994
|
+
0
|
|
2995
|
+
/* Actions.APPEND */
|
|
2996
|
+
] = () => {
|
|
2997
|
+
o === void 0 ? o = i : o += i;
|
|
2998
|
+
}, f[
|
|
2999
|
+
1
|
|
3000
|
+
/* Actions.PUSH */
|
|
3001
|
+
] = () => {
|
|
3002
|
+
o !== void 0 && (t.push(o), o = void 0);
|
|
3003
|
+
}, f[
|
|
3004
|
+
2
|
|
3005
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
3006
|
+
] = () => {
|
|
3007
|
+
f[
|
|
3008
|
+
0
|
|
3009
|
+
/* Actions.APPEND */
|
|
3010
|
+
](), r++;
|
|
3011
|
+
}, f[
|
|
3012
|
+
3
|
|
3013
|
+
/* Actions.PUSH_SUB_PATH */
|
|
3014
|
+
] = () => {
|
|
3015
|
+
if (r > 0)
|
|
3016
|
+
r--, a = 4, f[
|
|
3017
|
+
0
|
|
3018
|
+
/* Actions.APPEND */
|
|
3019
|
+
]();
|
|
3020
|
+
else {
|
|
3021
|
+
if (r = 0, o === void 0 || (o = ni(o), o === !1))
|
|
3022
|
+
return !1;
|
|
3023
|
+
f[
|
|
3024
|
+
1
|
|
3025
|
+
/* Actions.PUSH */
|
|
3026
|
+
]();
|
|
3027
|
+
}
|
|
3028
|
+
};
|
|
3029
|
+
function O() {
|
|
3030
|
+
const S = e[n + 1];
|
|
3031
|
+
if (a === 5 && S === "'" || a === 6 && S === '"')
|
|
3032
|
+
return n++, i = "\\" + S, f[
|
|
3033
|
+
0
|
|
3034
|
+
/* Actions.APPEND */
|
|
3035
|
+
](), !0;
|
|
3036
|
+
}
|
|
3037
|
+
for (; a !== null; )
|
|
3038
|
+
if (n++, s = e[n], !(s === "\\" && O())) {
|
|
3039
|
+
if (u = ti(s), v = Ie[a], _ = v[u] || v.l || 8, _ === 8 || (a = _[0], _[1] !== void 0 && (h = f[_[1]], h && (i = s, h() === !1))))
|
|
3040
|
+
return;
|
|
3041
|
+
if (a === 7)
|
|
3042
|
+
return t;
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
const Qn = /* @__PURE__ */ new Map();
|
|
3046
|
+
function ai(e, t) {
|
|
3047
|
+
return x(e) ? e[t] : null;
|
|
3048
|
+
}
|
|
3049
|
+
function si(e, t) {
|
|
3050
|
+
if (!x(e))
|
|
3051
|
+
return null;
|
|
3052
|
+
let n = Qn.get(t);
|
|
3053
|
+
if (n || (n = ri(t), n && Qn.set(t, n)), !n)
|
|
3054
|
+
return null;
|
|
3055
|
+
const a = n.length;
|
|
3056
|
+
let r = e, s = 0;
|
|
3057
|
+
for (; s < a; ) {
|
|
3058
|
+
const o = r[n[s]];
|
|
3059
|
+
if (o === void 0 || H(r))
|
|
3060
|
+
return null;
|
|
3061
|
+
r = o, s++;
|
|
3062
|
+
}
|
|
3063
|
+
return r;
|
|
3064
|
+
}
|
|
3065
|
+
const se = {
|
|
3066
|
+
NOT_FOUND_KEY: 1,
|
|
3067
|
+
FALLBACK_TO_TRANSLATE: 2,
|
|
3068
|
+
CANNOT_FORMAT_NUMBER: 3,
|
|
3069
|
+
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
3070
|
+
CANNOT_FORMAT_DATE: 5,
|
|
3071
|
+
FALLBACK_TO_DATE_FORMAT: 6,
|
|
3072
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
3073
|
+
}, oi = 8, ii = {
|
|
3074
|
+
[se.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
3075
|
+
[se.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
3076
|
+
[se.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
3077
|
+
[se.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
3078
|
+
[se.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
3079
|
+
[se.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
3080
|
+
[se.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."
|
|
3081
|
+
};
|
|
3082
|
+
function Re(e, ...t) {
|
|
3083
|
+
return pt(ii[e], ...t);
|
|
3084
|
+
}
|
|
3085
|
+
const li = "10.0.5", Et = -1, et = "en-US", mt = "", Jn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
3086
|
+
function ci() {
|
|
3087
|
+
return {
|
|
3088
|
+
upper: (e, t) => t === "text" && C(e) ? e.toUpperCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
3089
|
+
lower: (e, t) => t === "text" && C(e) ? e.toLowerCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
3090
|
+
capitalize: (e, t) => t === "text" && C(e) ? Jn(e) : t === "vnode" && x(e) && "__v_isVNode" in e ? Jn(e.children) : e
|
|
3091
|
+
};
|
|
3092
|
+
}
|
|
3093
|
+
let Vr;
|
|
3094
|
+
function ui(e) {
|
|
3095
|
+
Vr = e;
|
|
3096
|
+
}
|
|
3097
|
+
let Wr;
|
|
3098
|
+
function fi(e) {
|
|
3099
|
+
Wr = e;
|
|
3100
|
+
}
|
|
3101
|
+
let Br;
|
|
3102
|
+
function di(e) {
|
|
3103
|
+
Br = e;
|
|
3104
|
+
}
|
|
3105
|
+
let Hr = null;
|
|
3106
|
+
const _i = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
3107
|
+
Hr = e;
|
|
3108
|
+
}, mi = /* @__NO_SIDE_EFFECTS__ */ () => Hr;
|
|
3109
|
+
let jr = null;
|
|
3110
|
+
const zn = (e) => {
|
|
3111
|
+
jr = e;
|
|
3112
|
+
}, gi = () => jr;
|
|
3113
|
+
let Zn = 0;
|
|
3114
|
+
function pi(e = {}) {
|
|
3115
|
+
const t = H(e.onWarn) ? e.onWarn : Te, n = C(e.version) ? e.version : li, a = C(e.locale) || H(e.locale) ? e.locale : et, r = H(a) ? et : a, s = Y(e.fallbackLocale) || M(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = M(e.messages) ? e.messages : Ut(r), i = M(e.datetimeFormats) ? e.datetimeFormats : Ut(r), u = M(e.numberFormats) ? e.numberFormats : Ut(r), _ = ee(W(), e.modifiers, ci()), h = e.pluralRules || W(), v = H(e.missing) ? e.missing : null, f = U(e.missingWarn) || Be(e.missingWarn) ? e.missingWarn : !0, O = U(e.fallbackWarn) || Be(e.fallbackWarn) ? e.fallbackWarn : !0, S = !!e.fallbackFormat, k = !!e.unresolving, y = H(e.postTranslation) ? e.postTranslation : null, d = M(e.processor) ? e.processor : null, m = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, p = H(e.messageCompiler) ? e.messageCompiler : Vr;
|
|
3116
|
+
process.env.NODE_ENV !== "production" && H(e.messageCompiler) && Ur(Re(se.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
3117
|
+
const N = H(e.messageResolver) ? e.messageResolver : Wr || ai, I = H(e.localeFallbacker) ? e.localeFallbacker : Br || Xo, E = x(e.fallbackContext) ? e.fallbackContext : void 0, P = e, D = x(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), q = x(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), X = x(P.__meta) ? P.__meta : {};
|
|
3118
|
+
Zn++;
|
|
3119
|
+
const j = {
|
|
3120
|
+
version: n,
|
|
3121
|
+
cid: Zn,
|
|
3122
|
+
locale: a,
|
|
3123
|
+
fallbackLocale: s,
|
|
3124
|
+
messages: o,
|
|
3125
|
+
modifiers: _,
|
|
3126
|
+
pluralRules: h,
|
|
3127
|
+
missing: v,
|
|
3128
|
+
missingWarn: f,
|
|
3129
|
+
fallbackWarn: O,
|
|
3130
|
+
fallbackFormat: S,
|
|
3131
|
+
unresolving: k,
|
|
3132
|
+
postTranslation: y,
|
|
3133
|
+
processor: d,
|
|
3134
|
+
warnHtmlMessage: m,
|
|
3135
|
+
escapeParameter: L,
|
|
3136
|
+
messageCompiler: p,
|
|
3137
|
+
messageResolver: N,
|
|
3138
|
+
localeFallbacker: I,
|
|
3139
|
+
fallbackContext: E,
|
|
3140
|
+
onWarn: t,
|
|
3141
|
+
__meta: X
|
|
3142
|
+
};
|
|
3143
|
+
return j.datetimeFormats = i, j.numberFormats = u, j.__datetimeFormatters = D, j.__numberFormatters = q, process.env.NODE_ENV !== "production" && (j.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && jo(j, n, X), j;
|
|
3144
|
+
}
|
|
3145
|
+
const Ut = (e) => ({ [e]: W() });
|
|
3146
|
+
function vt(e, t) {
|
|
3147
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
3148
|
+
}
|
|
3149
|
+
function Gr(e, t) {
|
|
3150
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
3151
|
+
}
|
|
3152
|
+
function mn(e, t, n, a, r) {
|
|
3153
|
+
const { missing: s, onWarn: o } = e;
|
|
3154
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3155
|
+
const i = e.__v_emitter;
|
|
3156
|
+
i && i.emit("missing", {
|
|
3157
|
+
locale: n,
|
|
3158
|
+
key: t,
|
|
3159
|
+
type: r,
|
|
3160
|
+
groupId: `${r}:${t}`
|
|
3161
|
+
});
|
|
3162
|
+
}
|
|
3163
|
+
if (s !== null) {
|
|
3164
|
+
const i = s(e, n, t, r);
|
|
3165
|
+
return C(i) ? i : t;
|
|
3166
|
+
} else
|
|
3167
|
+
return process.env.NODE_ENV !== "production" && Gr(a, t) && o(Re(se.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
3168
|
+
}
|
|
3169
|
+
function Xe(e, t, n) {
|
|
3170
|
+
const a = e;
|
|
3171
|
+
a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
3172
|
+
}
|
|
3173
|
+
function qr(e, t) {
|
|
3174
|
+
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
3175
|
+
}
|
|
3176
|
+
function hi(e, t) {
|
|
3177
|
+
const n = t.indexOf(e);
|
|
3178
|
+
if (n === -1)
|
|
3179
|
+
return !1;
|
|
3180
|
+
for (let a = n + 1; a < t.length; a++)
|
|
3181
|
+
if (qr(e, t[a]))
|
|
3182
|
+
return !0;
|
|
3183
|
+
return !1;
|
|
3184
|
+
}
|
|
3185
|
+
const er = typeof Intl < "u", Kr = {
|
|
3186
|
+
dateTimeFormat: er && typeof Intl.DateTimeFormat < "u",
|
|
3187
|
+
numberFormat: er && typeof Intl.NumberFormat < "u"
|
|
3188
|
+
};
|
|
3189
|
+
function tr(e, ...t) {
|
|
3190
|
+
const { datetimeFormats: n, unresolving: a, fallbackLocale: r, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
3191
|
+
if (process.env.NODE_ENV !== "production" && !Kr.dateTimeFormat)
|
|
3192
|
+
return s(Re(se.CANNOT_FORMAT_DATE)), mt;
|
|
3193
|
+
const [u, _, h, v] = Kt(...t), f = U(h.missingWarn) ? h.missingWarn : e.missingWarn, O = U(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, S = !!h.part, k = _n(e, h), y = o(
|
|
3194
|
+
e,
|
|
3195
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3196
|
+
r,
|
|
3197
|
+
k
|
|
3198
|
+
);
|
|
3199
|
+
if (!C(u) || u === "")
|
|
3200
|
+
return new Intl.DateTimeFormat(k, v).format(_);
|
|
3201
|
+
let d = {}, m, L = null, p = k, N = null;
|
|
3202
|
+
const I = "datetime format";
|
|
3203
|
+
for (let D = 0; D < y.length; D++) {
|
|
3204
|
+
if (m = N = y[D], process.env.NODE_ENV !== "production" && k !== m && vt(O, u) && s(Re(se.FALLBACK_TO_DATE_FORMAT, {
|
|
3205
|
+
key: u,
|
|
3206
|
+
target: m
|
|
3207
|
+
})), process.env.NODE_ENV !== "production" && k !== m) {
|
|
3208
|
+
const q = e.__v_emitter;
|
|
3209
|
+
q && q.emit("fallback", {
|
|
3210
|
+
type: I,
|
|
3211
|
+
key: u,
|
|
3212
|
+
from: p,
|
|
3213
|
+
to: N,
|
|
3214
|
+
groupId: `${I}:${u}`
|
|
3215
|
+
});
|
|
3216
|
+
}
|
|
3217
|
+
if (d = n[m] || {}, L = d[u], M(L))
|
|
3218
|
+
break;
|
|
3219
|
+
mn(e, u, m, f, I), p = N;
|
|
3220
|
+
}
|
|
3221
|
+
if (!M(L) || !C(m))
|
|
3222
|
+
return a ? Et : u;
|
|
3223
|
+
let E = `${m}__${u}`;
|
|
3224
|
+
ht(v) || (E = `${E}__${JSON.stringify(v)}`);
|
|
3225
|
+
let P = i.get(E);
|
|
3226
|
+
return P || (P = new Intl.DateTimeFormat(m, ee({}, L, v)), i.set(E, P)), S ? P.formatToParts(_) : P.format(_);
|
|
3227
|
+
}
|
|
3228
|
+
const Yr = [
|
|
3229
|
+
"localeMatcher",
|
|
3230
|
+
"weekday",
|
|
3231
|
+
"era",
|
|
3232
|
+
"year",
|
|
3233
|
+
"month",
|
|
3234
|
+
"day",
|
|
3235
|
+
"hour",
|
|
3236
|
+
"minute",
|
|
3237
|
+
"second",
|
|
3238
|
+
"timeZoneName",
|
|
3239
|
+
"formatMatcher",
|
|
3240
|
+
"hour12",
|
|
3241
|
+
"timeZone",
|
|
3242
|
+
"dateStyle",
|
|
3243
|
+
"timeStyle",
|
|
3244
|
+
"calendar",
|
|
3245
|
+
"dayPeriod",
|
|
3246
|
+
"numberingSystem",
|
|
3247
|
+
"hourCycle",
|
|
3248
|
+
"fractionalSecondDigits"
|
|
3249
|
+
];
|
|
3250
|
+
function Kt(...e) {
|
|
3251
|
+
const [t, n, a, r] = e, s = W();
|
|
3252
|
+
let o = W(), i;
|
|
3253
|
+
if (C(t)) {
|
|
3254
|
+
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
3255
|
+
if (!u)
|
|
3256
|
+
throw he(ne.INVALID_ISO_DATE_ARGUMENT);
|
|
3257
|
+
const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
3258
|
+
i = new Date(_);
|
|
3259
|
+
try {
|
|
3260
|
+
i.toISOString();
|
|
3261
|
+
} catch {
|
|
3262
|
+
throw he(ne.INVALID_ISO_DATE_ARGUMENT);
|
|
3263
|
+
}
|
|
3264
|
+
} else if (Vs(t)) {
|
|
3265
|
+
if (isNaN(t.getTime()))
|
|
3266
|
+
throw he(ne.INVALID_DATE_ARGUMENT);
|
|
3267
|
+
i = t;
|
|
3268
|
+
} else if (Z(t))
|
|
3269
|
+
i = t;
|
|
3270
|
+
else
|
|
3271
|
+
throw he(ne.INVALID_ARGUMENT);
|
|
3272
|
+
return C(n) ? s.key = n : M(n) && Object.keys(n).forEach((u) => {
|
|
3273
|
+
Yr.includes(u) ? o[u] = n[u] : s[u] = n[u];
|
|
3274
|
+
}), C(a) ? s.locale = a : M(a) && (o = a), M(r) && (o = r), [s.key || "", i, s, o];
|
|
3275
|
+
}
|
|
3276
|
+
function nr(e, t, n) {
|
|
3277
|
+
const a = e;
|
|
3278
|
+
for (const r in n) {
|
|
3279
|
+
const s = `${t}__${r}`;
|
|
3280
|
+
a.__datetimeFormatters.has(s) && a.__datetimeFormatters.delete(s);
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
function rr(e, ...t) {
|
|
3284
|
+
const { numberFormats: n, unresolving: a, fallbackLocale: r, onWarn: s, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
3285
|
+
if (process.env.NODE_ENV !== "production" && !Kr.numberFormat)
|
|
3286
|
+
return s(Re(se.CANNOT_FORMAT_NUMBER)), mt;
|
|
3287
|
+
const [u, _, h, v] = Yt(...t), f = U(h.missingWarn) ? h.missingWarn : e.missingWarn, O = U(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, S = !!h.part, k = _n(e, h), y = o(
|
|
3288
|
+
e,
|
|
3289
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3290
|
+
r,
|
|
3291
|
+
k
|
|
3292
|
+
);
|
|
3293
|
+
if (!C(u) || u === "")
|
|
3294
|
+
return new Intl.NumberFormat(k, v).format(_);
|
|
3295
|
+
let d = {}, m, L = null, p = k, N = null;
|
|
3296
|
+
const I = "number format";
|
|
3297
|
+
for (let D = 0; D < y.length; D++) {
|
|
3298
|
+
if (m = N = y[D], process.env.NODE_ENV !== "production" && k !== m && vt(O, u) && s(Re(se.FALLBACK_TO_NUMBER_FORMAT, {
|
|
3299
|
+
key: u,
|
|
3300
|
+
target: m
|
|
3301
|
+
})), process.env.NODE_ENV !== "production" && k !== m) {
|
|
3302
|
+
const q = e.__v_emitter;
|
|
3303
|
+
q && q.emit("fallback", {
|
|
3304
|
+
type: I,
|
|
3305
|
+
key: u,
|
|
3306
|
+
from: p,
|
|
3307
|
+
to: N,
|
|
3308
|
+
groupId: `${I}:${u}`
|
|
3309
|
+
});
|
|
3310
|
+
}
|
|
3311
|
+
if (d = n[m] || {}, L = d[u], M(L))
|
|
3312
|
+
break;
|
|
3313
|
+
mn(e, u, m, f, I), p = N;
|
|
3314
|
+
}
|
|
3315
|
+
if (!M(L) || !C(m))
|
|
3316
|
+
return a ? Et : u;
|
|
3317
|
+
let E = `${m}__${u}`;
|
|
3318
|
+
ht(v) || (E = `${E}__${JSON.stringify(v)}`);
|
|
3319
|
+
let P = i.get(E);
|
|
3320
|
+
return P || (P = new Intl.NumberFormat(m, ee({}, L, v)), i.set(E, P)), S ? P.formatToParts(_) : P.format(_);
|
|
3321
|
+
}
|
|
3322
|
+
const Xr = [
|
|
3323
|
+
"localeMatcher",
|
|
3324
|
+
"style",
|
|
3325
|
+
"currency",
|
|
3326
|
+
"currencyDisplay",
|
|
3327
|
+
"currencySign",
|
|
3328
|
+
"useGrouping",
|
|
3329
|
+
"minimumIntegerDigits",
|
|
3330
|
+
"minimumFractionDigits",
|
|
3331
|
+
"maximumFractionDigits",
|
|
3332
|
+
"minimumSignificantDigits",
|
|
3333
|
+
"maximumSignificantDigits",
|
|
3334
|
+
"compactDisplay",
|
|
3335
|
+
"notation",
|
|
3336
|
+
"signDisplay",
|
|
3337
|
+
"unit",
|
|
3338
|
+
"unitDisplay",
|
|
3339
|
+
"roundingMode",
|
|
3340
|
+
"roundingPriority",
|
|
3341
|
+
"roundingIncrement",
|
|
3342
|
+
"trailingZeroDisplay"
|
|
3343
|
+
];
|
|
3344
|
+
function Yt(...e) {
|
|
3345
|
+
const [t, n, a, r] = e, s = W();
|
|
3346
|
+
let o = W();
|
|
3347
|
+
if (!Z(t))
|
|
3348
|
+
throw he(ne.INVALID_ARGUMENT);
|
|
3349
|
+
const i = t;
|
|
3350
|
+
return C(n) ? s.key = n : M(n) && Object.keys(n).forEach((u) => {
|
|
3351
|
+
Xr.includes(u) ? o[u] = n[u] : s[u] = n[u];
|
|
3352
|
+
}), C(a) ? s.locale = a : M(a) && (o = a), M(r) && (o = r), [s.key || "", i, s, o];
|
|
3353
|
+
}
|
|
3354
|
+
function ar(e, t, n) {
|
|
3355
|
+
const a = e;
|
|
3356
|
+
for (const r in n) {
|
|
3357
|
+
const s = `${t}__${r}`;
|
|
3358
|
+
a.__numberFormatters.has(s) && a.__numberFormatters.delete(s);
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
const Ei = (e) => e, vi = (e) => "", bi = "text", Ni = (e) => e.length === 0 ? "" : cn(e), Li = js;
|
|
3362
|
+
function sr(e, t) {
|
|
3363
|
+
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
3364
|
+
}
|
|
3365
|
+
function yi(e) {
|
|
3366
|
+
const t = Z(e.pluralIndex) ? e.pluralIndex : -1;
|
|
3367
|
+
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;
|
|
3368
|
+
}
|
|
3369
|
+
function Ti(e, t) {
|
|
3370
|
+
t.count || (t.count = e), t.n || (t.n = e);
|
|
3371
|
+
}
|
|
3372
|
+
function Oi(e = {}) {
|
|
3373
|
+
const t = e.locale, n = yi(e), a = x(e.pluralRules) && C(t) && H(e.pluralRules[t]) ? e.pluralRules[t] : sr, r = x(e.pluralRules) && C(t) && H(e.pluralRules[t]) ? sr : void 0, s = (d) => d[a(n, d.length, r)], o = e.list || [], i = (d) => o[d], u = e.named || W();
|
|
3374
|
+
Z(e.pluralIndex) && Ti(n, u);
|
|
3375
|
+
const _ = (d) => u[d];
|
|
3376
|
+
function h(d, m) {
|
|
3377
|
+
const L = H(e.messages) ? e.messages(d, !!m) : x(e.messages) ? e.messages[d] : !1;
|
|
3378
|
+
return L || (e.parent ? e.parent.message(d) : vi);
|
|
3379
|
+
}
|
|
3380
|
+
const v = (d) => e.modifiers ? e.modifiers[d] : Ei, f = M(e.processor) && H(e.processor.normalize) ? e.processor.normalize : Ni, O = M(e.processor) && H(e.processor.interpolate) ? e.processor.interpolate : Li, S = M(e.processor) && C(e.processor.type) ? e.processor.type : bi, y = {
|
|
3381
|
+
list: i,
|
|
3382
|
+
named: _,
|
|
3383
|
+
plural: s,
|
|
3384
|
+
linked: (d, ...m) => {
|
|
3385
|
+
const [L, p] = m;
|
|
3386
|
+
let N = "text", I = "";
|
|
3387
|
+
m.length === 1 ? x(L) ? (I = L.modifier || I, N = L.type || N) : C(L) && (I = L || I) : m.length === 2 && (C(L) && (I = L || I), C(p) && (N = p || N));
|
|
3388
|
+
const E = h(d, !0)(y), P = (
|
|
3389
|
+
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
3390
|
+
N === "vnode" && Y(E) && I ? E[0] : E
|
|
3391
|
+
);
|
|
3392
|
+
return I ? v(I)(P, N) : P;
|
|
3393
|
+
},
|
|
3394
|
+
message: h,
|
|
3395
|
+
type: S,
|
|
3396
|
+
interpolate: O,
|
|
3397
|
+
normalize: f,
|
|
3398
|
+
values: ee(W(), o, u)
|
|
3399
|
+
};
|
|
3400
|
+
return y;
|
|
3401
|
+
}
|
|
3402
|
+
const or = () => "", ce = (e) => H(e);
|
|
3403
|
+
function ir(e, ...t) {
|
|
3404
|
+
const { fallbackFormat: n, postTranslation: a, unresolving: r, messageCompiler: s, fallbackLocale: o, messages: i } = e, [u, _] = Xt(...t), h = U(_.missingWarn) ? _.missingWarn : e.missingWarn, v = U(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, f = U(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, O = !!_.resolvedMessage, S = C(_.default) || U(_.default) ? U(_.default) ? s ? u : () => u : _.default : n ? s ? u : () => u : null, k = n || S != null && (C(S) || H(S)), y = _n(e, _);
|
|
3405
|
+
f && Ii(_);
|
|
3406
|
+
let [d, m, L] = O ? [
|
|
3407
|
+
u,
|
|
3408
|
+
y,
|
|
3409
|
+
i[y] || W()
|
|
3410
|
+
] : Qr(e, u, y, o, v, h), p = d, N = u;
|
|
3411
|
+
if (!O && !(C(p) || ye(p) || ce(p)) && k && (p = S, N = p), !O && (!(C(p) || ye(p) || ce(p)) || !C(m)))
|
|
3412
|
+
return r ? Et : u;
|
|
3413
|
+
if (process.env.NODE_ENV !== "production" && C(p) && e.messageCompiler == null)
|
|
3414
|
+
return Te(`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 '${u}'.`), u;
|
|
3415
|
+
let I = !1;
|
|
3416
|
+
const E = () => {
|
|
3417
|
+
I = !0;
|
|
3418
|
+
}, P = ce(p) ? p : Jr(e, u, m, p, N, E);
|
|
3419
|
+
if (I)
|
|
3420
|
+
return p;
|
|
3421
|
+
const D = wi(e, m, L, _), q = Oi(D), X = ki(e, P, q), j = a ? a(X, u) : X;
|
|
3422
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3423
|
+
const ie = {
|
|
3424
|
+
timestamp: Date.now(),
|
|
3425
|
+
key: C(u) ? u : ce(p) ? p.key : "",
|
|
3426
|
+
locale: m || (ce(p) ? p.locale : ""),
|
|
3427
|
+
format: C(p) ? p : ce(p) ? p.source : "",
|
|
3428
|
+
message: j
|
|
3429
|
+
};
|
|
3430
|
+
ie.meta = ee({}, e.__meta, /* @__PURE__ */ mi() || {}), Go(ie);
|
|
3431
|
+
}
|
|
3432
|
+
return j;
|
|
3433
|
+
}
|
|
3434
|
+
function Ii(e) {
|
|
3435
|
+
Y(e.list) ? e.list = e.list.map((t) => C(t) ? Wn(t) : t) : x(e.named) && Object.keys(e.named).forEach((t) => {
|
|
3436
|
+
C(e.named[t]) && (e.named[t] = Wn(e.named[t]));
|
|
3437
|
+
});
|
|
3438
|
+
}
|
|
3439
|
+
function Qr(e, t, n, a, r, s) {
|
|
3440
|
+
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: _ } = e, h = _(e, a, n);
|
|
3441
|
+
let v = W(), f, O = null, S = n, k = null;
|
|
3442
|
+
const y = "translate";
|
|
3443
|
+
for (let d = 0; d < h.length; d++) {
|
|
3444
|
+
if (f = k = h[d], process.env.NODE_ENV !== "production" && n !== f && !qr(n, f) && vt(r, t) && i(Re(se.FALLBACK_TO_TRANSLATE, {
|
|
3445
|
+
key: t,
|
|
3446
|
+
target: f
|
|
3447
|
+
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
3448
|
+
const N = e.__v_emitter;
|
|
3449
|
+
N && N.emit("fallback", {
|
|
3450
|
+
type: y,
|
|
3451
|
+
key: t,
|
|
3452
|
+
from: S,
|
|
3453
|
+
to: k,
|
|
3454
|
+
groupId: `${y}:${t}`
|
|
3455
|
+
});
|
|
3456
|
+
}
|
|
3457
|
+
v = o[f] || W();
|
|
3458
|
+
let m = null, L, p;
|
|
3459
|
+
if (process.env.NODE_ENV !== "production" && fe && (m = window.performance.now(), L = "intlify-message-resolve-start", p = "intlify-message-resolve-end", oe && oe(L)), (O = u(v, t)) === null && (O = v[t]), process.env.NODE_ENV !== "production" && fe) {
|
|
3460
|
+
const N = window.performance.now(), I = e.__v_emitter;
|
|
3461
|
+
I && m && O && I.emit("message-resolve", {
|
|
3462
|
+
type: "message-resolve",
|
|
3463
|
+
key: t,
|
|
3464
|
+
message: O,
|
|
3465
|
+
time: N - m,
|
|
3466
|
+
groupId: `${y}:${t}`
|
|
3467
|
+
}), L && p && oe && Pe && (oe(p), Pe("intlify message resolve", L, p));
|
|
3468
|
+
}
|
|
3469
|
+
if (C(O) || ye(O) || ce(O))
|
|
3470
|
+
break;
|
|
3471
|
+
if (!hi(f, h)) {
|
|
3472
|
+
const N = mn(
|
|
3473
|
+
e,
|
|
3474
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3475
|
+
t,
|
|
3476
|
+
f,
|
|
3477
|
+
s,
|
|
3478
|
+
y
|
|
3479
|
+
);
|
|
3480
|
+
N !== t && (O = N);
|
|
3481
|
+
}
|
|
3482
|
+
S = k;
|
|
3483
|
+
}
|
|
3484
|
+
return [O, f, v];
|
|
3485
|
+
}
|
|
3486
|
+
function Jr(e, t, n, a, r, s) {
|
|
3487
|
+
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
3488
|
+
if (ce(a)) {
|
|
3489
|
+
const f = a;
|
|
3490
|
+
return f.locale = f.locale || n, f.key = f.key || t, f;
|
|
3491
|
+
}
|
|
3492
|
+
if (o == null) {
|
|
3493
|
+
const f = () => a;
|
|
3494
|
+
return f.locale = n, f.key = t, f;
|
|
3495
|
+
}
|
|
3496
|
+
let u = null, _, h;
|
|
3497
|
+
process.env.NODE_ENV !== "production" && fe && (u = window.performance.now(), _ = "intlify-message-compilation-start", h = "intlify-message-compilation-end", oe && oe(_));
|
|
3498
|
+
const v = o(a, Si(e, n, r, a, i, s));
|
|
3499
|
+
if (process.env.NODE_ENV !== "production" && fe) {
|
|
3500
|
+
const f = window.performance.now(), O = e.__v_emitter;
|
|
3501
|
+
O && u && O.emit("message-compilation", {
|
|
3502
|
+
type: "message-compilation",
|
|
3503
|
+
message: a,
|
|
3504
|
+
time: f - u,
|
|
3505
|
+
groupId: `translate:${t}`
|
|
3506
|
+
}), _ && h && oe && Pe && (oe(h), Pe("intlify message compilation", _, h));
|
|
3507
|
+
}
|
|
3508
|
+
return v.locale = n, v.key = t, v.source = a, v;
|
|
3509
|
+
}
|
|
3510
|
+
function ki(e, t, n) {
|
|
3511
|
+
let a = null, r, s;
|
|
3512
|
+
process.env.NODE_ENV !== "production" && fe && (a = window.performance.now(), r = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", oe && oe(r));
|
|
3513
|
+
const o = t(n);
|
|
3514
|
+
if (process.env.NODE_ENV !== "production" && fe) {
|
|
3515
|
+
const i = window.performance.now(), u = e.__v_emitter;
|
|
3516
|
+
u && a && u.emit("message-evaluation", {
|
|
3517
|
+
type: "message-evaluation",
|
|
3518
|
+
value: o,
|
|
3519
|
+
time: i - a,
|
|
3520
|
+
groupId: `translate:${t.key}`
|
|
3521
|
+
}), r && s && oe && Pe && (oe(s), Pe("intlify message evaluation", r, s));
|
|
3522
|
+
}
|
|
3523
|
+
return o;
|
|
3524
|
+
}
|
|
3525
|
+
function Xt(...e) {
|
|
3526
|
+
const [t, n, a] = e, r = W();
|
|
3527
|
+
if (!C(t) && !Z(t) && !ce(t) && !ye(t))
|
|
3528
|
+
throw he(ne.INVALID_ARGUMENT);
|
|
3529
|
+
const s = Z(t) ? String(t) : (ce(t), t);
|
|
3530
|
+
return Z(n) ? r.plural = n : C(n) ? r.default = n : M(n) && !ht(n) ? r.named = n : Y(n) && (r.list = n), Z(a) ? r.plural = a : C(a) ? r.default = a : M(a) && ee(r, a), [s, r];
|
|
3531
|
+
}
|
|
3532
|
+
function Si(e, t, n, a, r, s) {
|
|
3533
|
+
return {
|
|
3534
|
+
locale: t,
|
|
3535
|
+
key: n,
|
|
3536
|
+
warnHtmlMessage: r,
|
|
3537
|
+
onError: (o) => {
|
|
3538
|
+
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
3539
|
+
const i = Ci(a), u = `Message compilation error: ${o.message}`, _ = o.location && i && Gs(i, o.location.start.offset, o.location.end.offset), h = e.__v_emitter;
|
|
3540
|
+
h && i && h.emit("compile-error", {
|
|
3541
|
+
message: i,
|
|
3542
|
+
error: o.message,
|
|
3543
|
+
start: o.location && o.location.start.offset,
|
|
3544
|
+
end: o.location && o.location.end.offset,
|
|
3545
|
+
groupId: `translate:${n}`
|
|
3546
|
+
}), console.error(_ ? `${u}
|
|
3547
|
+
${_}` : u);
|
|
3548
|
+
} else
|
|
3549
|
+
throw o;
|
|
3550
|
+
},
|
|
3551
|
+
onCacheKey: (o) => Us(t, n, o)
|
|
3552
|
+
};
|
|
3553
|
+
}
|
|
3554
|
+
function Ci(e) {
|
|
3555
|
+
if (C(e))
|
|
3556
|
+
return e;
|
|
3557
|
+
if (e.loc && e.loc.source)
|
|
3558
|
+
return e.loc.source;
|
|
3559
|
+
}
|
|
3560
|
+
function wi(e, t, n, a) {
|
|
3561
|
+
const { modifiers: r, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: _, fallbackContext: h } = e, f = {
|
|
3562
|
+
locale: t,
|
|
3563
|
+
modifiers: r,
|
|
3564
|
+
pluralRules: s,
|
|
3565
|
+
messages: (O, S) => {
|
|
3566
|
+
let k = o(n, O);
|
|
3567
|
+
if (k == null && (h || S)) {
|
|
3568
|
+
const [, , y] = Qr(
|
|
3569
|
+
h || e,
|
|
3570
|
+
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
3571
|
+
O,
|
|
3572
|
+
t,
|
|
3573
|
+
i,
|
|
3574
|
+
u,
|
|
3575
|
+
_
|
|
3576
|
+
);
|
|
3577
|
+
k = o(y, O);
|
|
3578
|
+
}
|
|
3579
|
+
if (C(k) || ye(k)) {
|
|
3580
|
+
let y = !1;
|
|
3581
|
+
const m = Jr(e, O, t, k, O, () => {
|
|
3582
|
+
y = !0;
|
|
3583
|
+
});
|
|
3584
|
+
return y ? or : m;
|
|
3585
|
+
} else return ce(k) ? k : or;
|
|
3586
|
+
}
|
|
3587
|
+
};
|
|
3588
|
+
return e.processor && (f.processor = e.processor), a.list && (f.list = a.list), a.named && (f.named = a.named), Z(a.plural) && (f.pluralIndex = a.plural), f;
|
|
3589
|
+
}
|
|
3590
|
+
Lo();
|
|
3591
|
+
function Ai() {
|
|
3592
|
+
return zr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
3593
|
+
}
|
|
3594
|
+
function zr() {
|
|
3595
|
+
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
3596
|
+
}
|
|
3597
|
+
const Pi = typeof Proxy == "function", Ri = "devtools-plugin:setup", Di = "plugin:settings:set";
|
|
3598
|
+
let Ve, Qt;
|
|
3599
|
+
function Mi() {
|
|
3600
|
+
var e;
|
|
3601
|
+
return Ve !== void 0 || (typeof window < "u" && window.performance ? (Ve = !0, Qt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ve = !0, Qt = globalThis.perf_hooks.performance) : Ve = !1), Ve;
|
|
3602
|
+
}
|
|
3603
|
+
function Fi() {
|
|
3604
|
+
return Mi() ? Qt.now() : Date.now();
|
|
3605
|
+
}
|
|
3606
|
+
class xi {
|
|
3607
|
+
constructor(t, n) {
|
|
3608
|
+
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
3609
|
+
const a = {};
|
|
3610
|
+
if (t.settings)
|
|
3611
|
+
for (const o in t.settings) {
|
|
3612
|
+
const i = t.settings[o];
|
|
3613
|
+
a[o] = i.defaultValue;
|
|
3614
|
+
}
|
|
3615
|
+
const r = `__vue-devtools-plugin-settings__${t.id}`;
|
|
3616
|
+
let s = Object.assign({}, a);
|
|
3617
|
+
try {
|
|
3618
|
+
const o = localStorage.getItem(r), i = JSON.parse(o);
|
|
3619
|
+
Object.assign(s, i);
|
|
3620
|
+
} catch {
|
|
3621
|
+
}
|
|
3622
|
+
this.fallbacks = {
|
|
3623
|
+
getSettings() {
|
|
3624
|
+
return s;
|
|
3625
|
+
},
|
|
3626
|
+
setSettings(o) {
|
|
3627
|
+
try {
|
|
3628
|
+
localStorage.setItem(r, JSON.stringify(o));
|
|
3629
|
+
} catch {
|
|
3630
|
+
}
|
|
3631
|
+
s = o;
|
|
3632
|
+
},
|
|
3633
|
+
now() {
|
|
3634
|
+
return Fi();
|
|
3635
|
+
}
|
|
3636
|
+
}, n && n.on(Di, (o, i) => {
|
|
3637
|
+
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
3638
|
+
}), this.proxiedOn = new Proxy({}, {
|
|
3639
|
+
get: (o, i) => this.target ? this.target.on[i] : (...u) => {
|
|
3640
|
+
this.onQueue.push({
|
|
3641
|
+
method: i,
|
|
3642
|
+
args: u
|
|
3643
|
+
});
|
|
3644
|
+
}
|
|
3645
|
+
}), this.proxiedTarget = new Proxy({}, {
|
|
3646
|
+
get: (o, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...u) => (this.targetQueue.push({
|
|
3647
|
+
method: i,
|
|
3648
|
+
args: u,
|
|
3649
|
+
resolve: () => {
|
|
3650
|
+
}
|
|
3651
|
+
}), this.fallbacks[i](...u)) : (...u) => new Promise((_) => {
|
|
3652
|
+
this.targetQueue.push({
|
|
3653
|
+
method: i,
|
|
3654
|
+
args: u,
|
|
3655
|
+
resolve: _
|
|
3656
|
+
});
|
|
3657
|
+
})
|
|
3658
|
+
});
|
|
3659
|
+
}
|
|
3660
|
+
async setRealTarget(t) {
|
|
3661
|
+
this.target = t;
|
|
3662
|
+
for (const n of this.onQueue)
|
|
3663
|
+
this.target.on[n.method](...n.args);
|
|
3664
|
+
for (const n of this.targetQueue)
|
|
3665
|
+
n.resolve(await this.target[n.method](...n.args));
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
function Ui(e, t) {
|
|
3669
|
+
const n = e, a = zr(), r = Ai(), s = Pi && n.enableEarlyProxy;
|
|
3670
|
+
if (r && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
3671
|
+
r.emit(Ri, e, t);
|
|
3672
|
+
else {
|
|
3673
|
+
const o = s ? new xi(n, r) : null;
|
|
3674
|
+
(a.__VUE_DEVTOOLS_PLUGINS__ = a.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
3675
|
+
pluginDescriptor: n,
|
|
3676
|
+
setupFn: t,
|
|
3677
|
+
proxy: o
|
|
3678
|
+
}), o && t(o.proxiedTarget);
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
/*!
|
|
3682
|
+
* vue-i18n v10.0.5
|
|
3683
|
+
* (c) 2024 kazuya kawaguchi
|
|
3684
|
+
* Released under the MIT License.
|
|
3685
|
+
*/
|
|
3686
|
+
const $i = "10.0.5";
|
|
3687
|
+
function Vi() {
|
|
3688
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (we().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (we().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (we().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (we().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
3689
|
+
}
|
|
3690
|
+
const Ne = {
|
|
3691
|
+
FALLBACK_TO_ROOT: oi,
|
|
3692
|
+
// 8
|
|
3693
|
+
NOT_FOUND_PARENT_SCOPE: 9,
|
|
3694
|
+
IGNORE_OBJ_FLATTEN: 10,
|
|
3695
|
+
DEPRECATE_TC: 11
|
|
3696
|
+
}, Wi = {
|
|
3697
|
+
[Ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
3698
|
+
[Ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
3699
|
+
[Ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
3700
|
+
[Ne.DEPRECATE_TC]: "'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."
|
|
3701
|
+
};
|
|
3702
|
+
function bt(e, ...t) {
|
|
3703
|
+
return pt(Wi[e], ...t);
|
|
3704
|
+
}
|
|
3705
|
+
const B = {
|
|
3706
|
+
// composer module errors
|
|
3707
|
+
UNEXPECTED_RETURN_TYPE: Ko,
|
|
3708
|
+
// 24
|
|
3709
|
+
// legacy module errors
|
|
3710
|
+
INVALID_ARGUMENT: 25,
|
|
3711
|
+
// i18n module errors
|
|
3712
|
+
MUST_BE_CALL_SETUP_TOP: 26,
|
|
3713
|
+
NOT_INSTALLED: 27,
|
|
3714
|
+
// directive module errors
|
|
3715
|
+
REQUIRED_VALUE: 28,
|
|
3716
|
+
INVALID_VALUE: 29,
|
|
3717
|
+
// vue-devtools errors
|
|
3718
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
|
|
3719
|
+
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
3720
|
+
// unexpected error
|
|
3721
|
+
UNEXPECTED_ERROR: 32,
|
|
3722
|
+
// not compatible legacy vue-i18n constructor
|
|
3723
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
3724
|
+
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
3725
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
3726
|
+
};
|
|
3727
|
+
function ae(e, ...t) {
|
|
3728
|
+
return je(e, null, process.env.NODE_ENV !== "production" ? { messages: Bi, args: t } : void 0);
|
|
3729
|
+
}
|
|
3730
|
+
const Bi = {
|
|
3731
|
+
[B.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
3732
|
+
[B.INVALID_ARGUMENT]: "Invalid argument",
|
|
3733
|
+
[B.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
3734
|
+
[B.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
3735
|
+
[B.UNEXPECTED_ERROR]: "Unexpected error",
|
|
3736
|
+
[B.REQUIRED_VALUE]: "Required in value: {0}",
|
|
3737
|
+
[B.INVALID_VALUE]: "Invalid value",
|
|
3738
|
+
[B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
3739
|
+
[B.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
3740
|
+
[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
3741
|
+
[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
3742
|
+
}, Jt = /* @__PURE__ */ me("__translateVNode"), zt = /* @__PURE__ */ me("__datetimeParts"), Zt = /* @__PURE__ */ me("__numberParts"), De = /* @__PURE__ */ me("__enableEmitter"), tt = /* @__PURE__ */ me("__disableEmitter"), Zr = me("__setPluralRules"), ea = /* @__PURE__ */ me("__injectWithOption"), en = /* @__PURE__ */ me("__dispose");
|
|
3743
|
+
function nt(e) {
|
|
3744
|
+
if (!x(e))
|
|
3745
|
+
return e;
|
|
3746
|
+
for (const t in e)
|
|
3747
|
+
if (ue(e, t))
|
|
3748
|
+
if (!t.includes("."))
|
|
3749
|
+
x(e[t]) && nt(e[t]);
|
|
3750
|
+
else {
|
|
3751
|
+
const n = t.split("."), a = n.length - 1;
|
|
3752
|
+
let r = e, s = !1;
|
|
3753
|
+
for (let o = 0; o < a; o++) {
|
|
3754
|
+
if (n[o] in r || (r[n[o]] = W()), !x(r[n[o]])) {
|
|
3755
|
+
process.env.NODE_ENV !== "production" && Te(bt(Ne.IGNORE_OBJ_FLATTEN, {
|
|
3756
|
+
key: n[o]
|
|
3757
|
+
})), s = !0;
|
|
3758
|
+
break;
|
|
3759
|
+
}
|
|
3760
|
+
r = r[n[o]];
|
|
3761
|
+
}
|
|
3762
|
+
s || (r[n[a]] = e[t], delete e[t]), x(r[n[a]]) && nt(r[n[a]]);
|
|
3763
|
+
}
|
|
3764
|
+
return e;
|
|
3765
|
+
}
|
|
3766
|
+
function gn(e, t) {
|
|
3767
|
+
const { messages: n, __i18n: a, messageResolver: r, flatJson: s } = t, o = M(n) ? n : Y(a) ? W() : { [e]: W() };
|
|
3768
|
+
if (Y(a) && a.forEach((i) => {
|
|
3769
|
+
if ("locale" in i && "resource" in i) {
|
|
3770
|
+
const { locale: u, resource: _ } = i;
|
|
3771
|
+
u ? (o[u] = o[u] || W(), ft(_, o[u])) : ft(_, o);
|
|
3772
|
+
} else
|
|
3773
|
+
C(i) && ft(JSON.parse(i), o);
|
|
3774
|
+
}), r == null && s)
|
|
3775
|
+
for (const i in o)
|
|
3776
|
+
ue(o, i) && nt(o[i]);
|
|
3777
|
+
return o;
|
|
3778
|
+
}
|
|
3779
|
+
function ta(e) {
|
|
3780
|
+
return e.type;
|
|
3781
|
+
}
|
|
3782
|
+
function na(e, t, n) {
|
|
3783
|
+
let a = x(t.messages) ? t.messages : W();
|
|
3784
|
+
"__i18nGlobal" in n && (a = gn(e.locale.value, {
|
|
3785
|
+
messages: a,
|
|
3786
|
+
__i18n: n.__i18nGlobal
|
|
3787
|
+
}));
|
|
3788
|
+
const r = Object.keys(a);
|
|
3789
|
+
r.length && r.forEach((s) => {
|
|
3790
|
+
e.mergeLocaleMessage(s, a[s]);
|
|
3791
|
+
});
|
|
3792
|
+
{
|
|
3793
|
+
if (x(t.datetimeFormats)) {
|
|
3794
|
+
const s = Object.keys(t.datetimeFormats);
|
|
3795
|
+
s.length && s.forEach((o) => {
|
|
3796
|
+
e.mergeDateTimeFormat(o, t.datetimeFormats[o]);
|
|
3797
|
+
});
|
|
3798
|
+
}
|
|
3799
|
+
if (x(t.numberFormats)) {
|
|
3800
|
+
const s = Object.keys(t.numberFormats);
|
|
3801
|
+
s.length && s.forEach((o) => {
|
|
3802
|
+
e.mergeNumberFormat(o, t.numberFormats[o]);
|
|
3803
|
+
});
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
function lr(e) {
|
|
3808
|
+
return yr(Na, null, e, 0);
|
|
3809
|
+
}
|
|
3810
|
+
const cr = "__INTLIFY_META__", ur = () => [], Hi = () => !1;
|
|
3811
|
+
let fr = 0;
|
|
3812
|
+
function dr(e) {
|
|
3813
|
+
return (t, n, a, r) => e(n, a, Le() || void 0, r);
|
|
3814
|
+
}
|
|
3815
|
+
const ji = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
3816
|
+
const e = Le();
|
|
3817
|
+
let t = null;
|
|
3818
|
+
return e && (t = ta(e)[cr]) ? { [cr]: t } : null;
|
|
3819
|
+
};
|
|
3820
|
+
function pn(e = {}) {
|
|
3821
|
+
const { __root: t, __injectWithOption: n } = e, a = t === void 0, r = e.flatJson, s = fe ? dt : pa;
|
|
3822
|
+
let o = U(e.inheritLocale) ? e.inheritLocale : !0;
|
|
3823
|
+
const i = s(
|
|
3824
|
+
// prettier-ignore
|
|
3825
|
+
t && o ? t.locale.value : C(e.locale) ? e.locale : et
|
|
3826
|
+
), u = s(
|
|
3827
|
+
// prettier-ignore
|
|
3828
|
+
t && o ? t.fallbackLocale.value : C(e.fallbackLocale) || Y(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
3829
|
+
), _ = s(gn(i.value, e)), h = s(M(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), v = s(M(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
3830
|
+
let f = t ? t.missingWarn : U(e.missingWarn) || Be(e.missingWarn) ? e.missingWarn : !0, O = t ? t.fallbackWarn : U(e.fallbackWarn) || Be(e.fallbackWarn) ? e.fallbackWarn : !0, S = t ? t.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, y = H(e.missing) ? e.missing : null, d = H(e.missing) ? dr(e.missing) : null, m = H(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, p = !!e.escapeParameter;
|
|
3831
|
+
const N = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
3832
|
+
let I = e.pluralRules || t && t.pluralRules, E;
|
|
3833
|
+
E = (() => {
|
|
3834
|
+
a && zn(null);
|
|
3835
|
+
const g = {
|
|
3836
|
+
version: $i,
|
|
3837
|
+
locale: i.value,
|
|
3838
|
+
fallbackLocale: u.value,
|
|
3839
|
+
messages: _.value,
|
|
3840
|
+
modifiers: N,
|
|
3841
|
+
pluralRules: I,
|
|
3842
|
+
missing: d === null ? void 0 : d,
|
|
3843
|
+
missingWarn: f,
|
|
3844
|
+
fallbackWarn: O,
|
|
3845
|
+
fallbackFormat: k,
|
|
3846
|
+
unresolving: !0,
|
|
3847
|
+
postTranslation: m === null ? void 0 : m,
|
|
3848
|
+
warnHtmlMessage: L,
|
|
3849
|
+
escapeParameter: p,
|
|
3850
|
+
messageResolver: e.messageResolver,
|
|
3851
|
+
messageCompiler: e.messageCompiler,
|
|
3852
|
+
__meta: { framework: "vue" }
|
|
3853
|
+
};
|
|
3854
|
+
g.datetimeFormats = h.value, g.numberFormats = v.value, g.__datetimeFormatters = M(E) ? E.__datetimeFormatters : void 0, g.__numberFormatters = M(E) ? E.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (g.__v_emitter = M(E) ? E.__v_emitter : void 0);
|
|
3855
|
+
const T = pi(g);
|
|
3856
|
+
return a && zn(T), T;
|
|
3857
|
+
})(), Xe(E, i.value, u.value);
|
|
3858
|
+
function D() {
|
|
3859
|
+
return [
|
|
3860
|
+
i.value,
|
|
3861
|
+
u.value,
|
|
3862
|
+
_.value,
|
|
3863
|
+
h.value,
|
|
3864
|
+
v.value
|
|
3865
|
+
];
|
|
3866
|
+
}
|
|
3867
|
+
const q = F({
|
|
3868
|
+
get: () => i.value,
|
|
3869
|
+
set: (g) => {
|
|
3870
|
+
i.value = g, E.locale = i.value;
|
|
3871
|
+
}
|
|
3872
|
+
}), X = F({
|
|
3873
|
+
get: () => u.value,
|
|
3874
|
+
set: (g) => {
|
|
3875
|
+
u.value = g, E.fallbackLocale = u.value, Xe(E, i.value, g);
|
|
3876
|
+
}
|
|
3877
|
+
}), j = F(() => _.value), ie = /* @__PURE__ */ F(() => h.value), A = /* @__PURE__ */ F(() => v.value);
|
|
3878
|
+
function K() {
|
|
3879
|
+
return H(m) ? m : null;
|
|
3880
|
+
}
|
|
3881
|
+
function Ee(g) {
|
|
3882
|
+
m = g, E.postTranslation = g;
|
|
3883
|
+
}
|
|
3884
|
+
function Nt() {
|
|
3885
|
+
return y;
|
|
3886
|
+
}
|
|
3887
|
+
function Lt(g) {
|
|
3888
|
+
g !== null && (d = dr(g)), y = g, E.missing = d;
|
|
3889
|
+
}
|
|
3890
|
+
function yt(g, T) {
|
|
3891
|
+
return g !== "translate" || !T.resolvedMessage;
|
|
3892
|
+
}
|
|
3893
|
+
const ge = (g, T, V, z, Se, it) => {
|
|
3894
|
+
D();
|
|
3895
|
+
let Me;
|
|
3896
|
+
try {
|
|
3897
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (E.fallbackContext = t ? gi() : void 0), Me = g(E);
|
|
3898
|
+
} finally {
|
|
3899
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (E.fallbackContext = void 0);
|
|
3900
|
+
}
|
|
3901
|
+
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
3902
|
+
Z(Me) && Me === Et || V === "translate exists" && !Me) {
|
|
3903
|
+
const [Ce, la] = T();
|
|
3904
|
+
if (process.env.NODE_ENV !== "production" && t && C(Ce) && yt(V, la) && (S && (vt(O, Ce) || Gr(f, Ce)) && Te(bt(Ne.FALLBACK_TO_ROOT, {
|
|
3905
|
+
key: Ce,
|
|
3906
|
+
type: V
|
|
3907
|
+
})), process.env.NODE_ENV !== "production")) {
|
|
3908
|
+
const { __v_emitter: Nn } = E;
|
|
3909
|
+
Nn && S && Nn.emit("fallback", {
|
|
3910
|
+
type: V,
|
|
3911
|
+
key: Ce,
|
|
3912
|
+
to: "global",
|
|
3913
|
+
groupId: `${V}:${Ce}`
|
|
3914
|
+
});
|
|
3915
|
+
}
|
|
3916
|
+
return t && S ? z(t) : Se(Ce);
|
|
3917
|
+
} else {
|
|
3918
|
+
if (it(Me))
|
|
3919
|
+
return Me;
|
|
3920
|
+
throw ae(B.UNEXPECTED_RETURN_TYPE);
|
|
3921
|
+
}
|
|
3922
|
+
};
|
|
3923
|
+
function Ge(...g) {
|
|
3924
|
+
return ge((T) => Reflect.apply(ir, null, [T, ...g]), () => Xt(...g), "translate", (T) => Reflect.apply(T.t, T, [...g]), (T) => T, (T) => C(T));
|
|
3925
|
+
}
|
|
3926
|
+
function Tt(...g) {
|
|
3927
|
+
const [T, V, z] = g;
|
|
3928
|
+
if (z && !x(z))
|
|
3929
|
+
throw ae(B.INVALID_ARGUMENT);
|
|
3930
|
+
return Ge(T, V, ee({ resolvedMessage: !0 }, z || {}));
|
|
3931
|
+
}
|
|
3932
|
+
function Ot(...g) {
|
|
3933
|
+
return ge((T) => Reflect.apply(tr, null, [T, ...g]), () => Kt(...g), "datetime format", (T) => Reflect.apply(T.d, T, [...g]), () => mt, (T) => C(T));
|
|
3934
|
+
}
|
|
3935
|
+
function It(...g) {
|
|
3936
|
+
return ge((T) => Reflect.apply(rr, null, [T, ...g]), () => Yt(...g), "number format", (T) => Reflect.apply(T.n, T, [...g]), () => mt, (T) => C(T));
|
|
3937
|
+
}
|
|
3938
|
+
function kt(g) {
|
|
3939
|
+
return g.map((T) => C(T) || Z(T) || U(T) ? lr(String(T)) : T);
|
|
3940
|
+
}
|
|
3941
|
+
const St = {
|
|
3942
|
+
normalize: kt,
|
|
3943
|
+
interpolate: (g) => g,
|
|
3944
|
+
type: "vnode"
|
|
3945
|
+
};
|
|
3946
|
+
function ot(...g) {
|
|
3947
|
+
return ge((T) => {
|
|
3948
|
+
let V;
|
|
3949
|
+
const z = T;
|
|
3950
|
+
try {
|
|
3951
|
+
z.processor = St, V = Reflect.apply(ir, null, [z, ...g]);
|
|
3952
|
+
} finally {
|
|
3953
|
+
z.processor = null;
|
|
3954
|
+
}
|
|
3955
|
+
return V;
|
|
3956
|
+
}, () => Xt(...g), "translate", (T) => T[Jt](...g), (T) => [lr(T)], (T) => Y(T));
|
|
3957
|
+
}
|
|
3958
|
+
function Ct(...g) {
|
|
3959
|
+
return ge((T) => Reflect.apply(rr, null, [T, ...g]), () => Yt(...g), "number format", (T) => T[Zt](...g), ur, (T) => C(T) || Y(T));
|
|
3960
|
+
}
|
|
3961
|
+
function wt(...g) {
|
|
3962
|
+
return ge((T) => Reflect.apply(tr, null, [T, ...g]), () => Kt(...g), "datetime format", (T) => T[zt](...g), ur, (T) => C(T) || Y(T));
|
|
3963
|
+
}
|
|
3964
|
+
function At(g) {
|
|
3965
|
+
I = g, E.pluralRules = I;
|
|
3966
|
+
}
|
|
3967
|
+
function Pt(g, T) {
|
|
3968
|
+
return ge(() => {
|
|
3969
|
+
if (!g)
|
|
3970
|
+
return !1;
|
|
3971
|
+
const V = C(T) ? T : i.value, z = ke(V), Se = E.messageResolver(z, g);
|
|
3972
|
+
return ye(Se) || ce(Se) || C(Se);
|
|
3973
|
+
}, () => [g], "translate exists", (V) => Reflect.apply(V.te, V, [g, T]), Hi, (V) => U(V));
|
|
3974
|
+
}
|
|
3975
|
+
function qe(g) {
|
|
3976
|
+
let T = null;
|
|
3977
|
+
const V = $r(E, u.value, i.value);
|
|
3978
|
+
for (let z = 0; z < V.length; z++) {
|
|
3979
|
+
const Se = _.value[V[z]] || {}, it = E.messageResolver(Se, g);
|
|
3980
|
+
if (it != null) {
|
|
3981
|
+
T = it;
|
|
3982
|
+
break;
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
return T;
|
|
3986
|
+
}
|
|
3987
|
+
function Ke(g) {
|
|
3988
|
+
const T = qe(g);
|
|
3989
|
+
return T ?? (t ? t.tm(g) || {} : {});
|
|
3990
|
+
}
|
|
3991
|
+
function ke(g) {
|
|
3992
|
+
return _.value[g] || {};
|
|
3993
|
+
}
|
|
3994
|
+
function Ye(g, T) {
|
|
3995
|
+
if (r) {
|
|
3996
|
+
const V = { [g]: T };
|
|
3997
|
+
for (const z in V)
|
|
3998
|
+
ue(V, z) && nt(V[z]);
|
|
3999
|
+
T = V[g];
|
|
4000
|
+
}
|
|
4001
|
+
_.value[g] = T, E.messages = _.value;
|
|
4002
|
+
}
|
|
4003
|
+
function Rt(g, T) {
|
|
4004
|
+
_.value[g] = _.value[g] || {};
|
|
4005
|
+
const V = { [g]: T };
|
|
4006
|
+
if (r)
|
|
4007
|
+
for (const z in V)
|
|
4008
|
+
ue(V, z) && nt(V[z]);
|
|
4009
|
+
T = V[g], ft(T, _.value[g]), E.messages = _.value;
|
|
4010
|
+
}
|
|
4011
|
+
function l(g) {
|
|
4012
|
+
return h.value[g] || {};
|
|
4013
|
+
}
|
|
4014
|
+
function c(g, T) {
|
|
4015
|
+
h.value[g] = T, E.datetimeFormats = h.value, nr(E, g, T);
|
|
4016
|
+
}
|
|
4017
|
+
function b(g, T) {
|
|
4018
|
+
h.value[g] = ee(h.value[g] || {}, T), E.datetimeFormats = h.value, nr(E, g, T);
|
|
4019
|
+
}
|
|
4020
|
+
function w(g) {
|
|
4021
|
+
return v.value[g] || {};
|
|
4022
|
+
}
|
|
4023
|
+
function Q(g, T) {
|
|
4024
|
+
v.value[g] = T, E.numberFormats = v.value, ar(E, g, T);
|
|
4025
|
+
}
|
|
4026
|
+
function J(g, T) {
|
|
4027
|
+
v.value[g] = ee(v.value[g] || {}, T), E.numberFormats = v.value, ar(E, g, T);
|
|
4028
|
+
}
|
|
4029
|
+
fr++, t && fe && (Vt(t.locale, (g) => {
|
|
4030
|
+
o && (i.value = g, E.locale = g, Xe(E, i.value, u.value));
|
|
4031
|
+
}), Vt(t.fallbackLocale, (g) => {
|
|
4032
|
+
o && (u.value = g, E.fallbackLocale = g, Xe(E, i.value, u.value));
|
|
4033
|
+
}));
|
|
4034
|
+
const $ = {
|
|
4035
|
+
id: fr,
|
|
4036
|
+
locale: q,
|
|
4037
|
+
fallbackLocale: X,
|
|
4038
|
+
get inheritLocale() {
|
|
4039
|
+
return o;
|
|
4040
|
+
},
|
|
4041
|
+
set inheritLocale(g) {
|
|
4042
|
+
o = g, g && t && (i.value = t.locale.value, u.value = t.fallbackLocale.value, Xe(E, i.value, u.value));
|
|
4043
|
+
},
|
|
4044
|
+
get availableLocales() {
|
|
4045
|
+
return Object.keys(_.value).sort();
|
|
4046
|
+
},
|
|
4047
|
+
messages: j,
|
|
4048
|
+
get modifiers() {
|
|
4049
|
+
return N;
|
|
4050
|
+
},
|
|
4051
|
+
get pluralRules() {
|
|
4052
|
+
return I || {};
|
|
4053
|
+
},
|
|
4054
|
+
get isGlobal() {
|
|
4055
|
+
return a;
|
|
4056
|
+
},
|
|
4057
|
+
get missingWarn() {
|
|
4058
|
+
return f;
|
|
4059
|
+
},
|
|
4060
|
+
set missingWarn(g) {
|
|
4061
|
+
f = g, E.missingWarn = f;
|
|
4062
|
+
},
|
|
4063
|
+
get fallbackWarn() {
|
|
4064
|
+
return O;
|
|
4065
|
+
},
|
|
4066
|
+
set fallbackWarn(g) {
|
|
4067
|
+
O = g, E.fallbackWarn = O;
|
|
4068
|
+
},
|
|
4069
|
+
get fallbackRoot() {
|
|
4070
|
+
return S;
|
|
4071
|
+
},
|
|
4072
|
+
set fallbackRoot(g) {
|
|
4073
|
+
S = g;
|
|
4074
|
+
},
|
|
4075
|
+
get fallbackFormat() {
|
|
4076
|
+
return k;
|
|
4077
|
+
},
|
|
4078
|
+
set fallbackFormat(g) {
|
|
4079
|
+
k = g, E.fallbackFormat = k;
|
|
4080
|
+
},
|
|
4081
|
+
get warnHtmlMessage() {
|
|
4082
|
+
return L;
|
|
4083
|
+
},
|
|
4084
|
+
set warnHtmlMessage(g) {
|
|
4085
|
+
L = g, E.warnHtmlMessage = g;
|
|
4086
|
+
},
|
|
4087
|
+
get escapeParameter() {
|
|
4088
|
+
return p;
|
|
4089
|
+
},
|
|
4090
|
+
set escapeParameter(g) {
|
|
4091
|
+
p = g, E.escapeParameter = g;
|
|
4092
|
+
},
|
|
4093
|
+
t: Ge,
|
|
4094
|
+
getLocaleMessage: ke,
|
|
4095
|
+
setLocaleMessage: Ye,
|
|
4096
|
+
mergeLocaleMessage: Rt,
|
|
4097
|
+
getPostTranslationHandler: K,
|
|
4098
|
+
setPostTranslationHandler: Ee,
|
|
4099
|
+
getMissingHandler: Nt,
|
|
4100
|
+
setMissingHandler: Lt,
|
|
4101
|
+
[Zr]: At
|
|
4102
|
+
};
|
|
4103
|
+
return $.datetimeFormats = ie, $.numberFormats = A, $.rt = Tt, $.te = Pt, $.tm = Ke, $.d = Ot, $.n = It, $.getDateTimeFormat = l, $.setDateTimeFormat = c, $.mergeDateTimeFormat = b, $.getNumberFormat = w, $.setNumberFormat = Q, $.mergeNumberFormat = J, $[ea] = n, $[Jt] = ot, $[zt] = wt, $[Zt] = Ct, process.env.NODE_ENV !== "production" && ($[De] = (g) => {
|
|
4104
|
+
E.__v_emitter = g;
|
|
4105
|
+
}, $[tt] = () => {
|
|
4106
|
+
E.__v_emitter = void 0;
|
|
4107
|
+
}), $;
|
|
4108
|
+
}
|
|
4109
|
+
const ra = "vue-i18n: composer properties", $t = {
|
|
4110
|
+
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
4111
|
+
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
4112
|
+
"vue-i18n-timeline": "Vue I18n"
|
|
4113
|
+
}, Gi = {
|
|
4114
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
4115
|
+
}, qi = {
|
|
4116
|
+
"vue-i18n-timeline": 16764185
|
|
4117
|
+
};
|
|
4118
|
+
let tn;
|
|
4119
|
+
async function Ki(e, t) {
|
|
4120
|
+
return new Promise((n, a) => {
|
|
4121
|
+
try {
|
|
4122
|
+
Ui({
|
|
4123
|
+
id: "vue-devtools-plugin-vue-i18n",
|
|
4124
|
+
label: $t["vue-devtools-plugin-vue-i18n"],
|
|
4125
|
+
packageName: "vue-i18n",
|
|
4126
|
+
homepage: "https://vue-i18n.intlify.dev",
|
|
4127
|
+
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
4128
|
+
componentStateTypes: [ra],
|
|
4129
|
+
app: e
|
|
4130
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4131
|
+
}, (r) => {
|
|
4132
|
+
tn = r, r.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
4133
|
+
Yi(o, i, t);
|
|
4134
|
+
}), r.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
4135
|
+
o.vnode.el && o.vnode.el.__VUE_I18N__ && i && (t.mode === "legacy" ? o.vnode.el.__VUE_I18N__ !== t.global.__composer && _r(i, o.vnode.el.__VUE_I18N__) : _r(i, o.vnode.el.__VUE_I18N__));
|
|
4136
|
+
}), r.addInspector({
|
|
4137
|
+
id: "vue-i18n-resource-inspector",
|
|
4138
|
+
label: $t["vue-i18n-resource-inspector"],
|
|
4139
|
+
icon: "language",
|
|
4140
|
+
treeFilterPlaceholder: Gi["vue-i18n-resource-inspector"]
|
|
4141
|
+
}), r.on.getInspectorTree((o) => {
|
|
4142
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Zi(o, t);
|
|
4143
|
+
});
|
|
4144
|
+
const s = /* @__PURE__ */ new Map();
|
|
4145
|
+
r.on.getInspectorState(async (o) => {
|
|
4146
|
+
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
4147
|
+
if (r.unhighlightElement(), tl(o, t), o.nodeId === "global") {
|
|
4148
|
+
if (!s.has(o.app)) {
|
|
4149
|
+
const [i] = await r.getComponentInstances(o.app);
|
|
4150
|
+
s.set(o.app, i);
|
|
4151
|
+
}
|
|
4152
|
+
r.highlightElement(s.get(o.app));
|
|
4153
|
+
} else {
|
|
4154
|
+
const i = el(o.nodeId, t);
|
|
4155
|
+
i && r.highlightElement(i);
|
|
4156
|
+
}
|
|
4157
|
+
}), r.on.editInspectorState((o) => {
|
|
4158
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && rl(o, t);
|
|
4159
|
+
}), r.addTimelineLayer({
|
|
4160
|
+
id: "vue-i18n-timeline",
|
|
4161
|
+
label: $t["vue-i18n-timeline"],
|
|
4162
|
+
color: qi["vue-i18n-timeline"]
|
|
4163
|
+
}), n(!0);
|
|
4164
|
+
});
|
|
4165
|
+
} catch (r) {
|
|
4166
|
+
console.error(r), a(!1);
|
|
4167
|
+
}
|
|
4168
|
+
});
|
|
4169
|
+
}
|
|
4170
|
+
function aa(e) {
|
|
4171
|
+
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
4172
|
+
}
|
|
4173
|
+
function Yi(e, t, n) {
|
|
4174
|
+
const a = n.mode === "composition" ? n.global : n.global.__composer;
|
|
4175
|
+
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== a) {
|
|
4176
|
+
const r = {
|
|
4177
|
+
label: `i18n (${aa(e)} Scope)`,
|
|
4178
|
+
textColor: 0,
|
|
4179
|
+
backgroundColor: 16764185
|
|
4180
|
+
};
|
|
4181
|
+
t.tags.push(r);
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
function _r(e, t) {
|
|
4185
|
+
const n = ra;
|
|
4186
|
+
e.state.push({
|
|
4187
|
+
type: n,
|
|
4188
|
+
key: "locale",
|
|
4189
|
+
editable: !0,
|
|
4190
|
+
value: t.locale.value
|
|
4191
|
+
}), e.state.push({
|
|
4192
|
+
type: n,
|
|
4193
|
+
key: "availableLocales",
|
|
4194
|
+
editable: !1,
|
|
4195
|
+
value: t.availableLocales
|
|
4196
|
+
}), e.state.push({
|
|
4197
|
+
type: n,
|
|
4198
|
+
key: "fallbackLocale",
|
|
4199
|
+
editable: !0,
|
|
4200
|
+
value: t.fallbackLocale.value
|
|
4201
|
+
}), e.state.push({
|
|
4202
|
+
type: n,
|
|
4203
|
+
key: "inheritLocale",
|
|
4204
|
+
editable: !0,
|
|
4205
|
+
value: t.inheritLocale
|
|
4206
|
+
}), e.state.push({
|
|
4207
|
+
type: n,
|
|
4208
|
+
key: "messages",
|
|
4209
|
+
editable: !1,
|
|
4210
|
+
value: hn(t.messages.value)
|
|
4211
|
+
}), e.state.push({
|
|
4212
|
+
type: n,
|
|
4213
|
+
key: "datetimeFormats",
|
|
4214
|
+
editable: !1,
|
|
4215
|
+
value: t.datetimeFormats.value
|
|
4216
|
+
}), e.state.push({
|
|
4217
|
+
type: n,
|
|
4218
|
+
key: "numberFormats",
|
|
4219
|
+
editable: !1,
|
|
4220
|
+
value: t.numberFormats.value
|
|
4221
|
+
});
|
|
4222
|
+
}
|
|
4223
|
+
function hn(e) {
|
|
4224
|
+
const t = {};
|
|
4225
|
+
return Object.keys(e).forEach((n) => {
|
|
4226
|
+
const a = e[n];
|
|
4227
|
+
H(a) && "source" in a ? t[n] = zi(a) : ye(a) && a.loc && a.loc.source ? t[n] = a.loc.source : x(a) ? t[n] = hn(a) : t[n] = a;
|
|
4228
|
+
}), t;
|
|
4229
|
+
}
|
|
4230
|
+
const Xi = {
|
|
4231
|
+
"<": "<",
|
|
4232
|
+
">": ">",
|
|
4233
|
+
'"': """,
|
|
4234
|
+
"&": "&"
|
|
4235
|
+
};
|
|
4236
|
+
function Qi(e) {
|
|
4237
|
+
return e.replace(/[<>"&]/g, Ji);
|
|
4238
|
+
}
|
|
4239
|
+
function Ji(e) {
|
|
4240
|
+
return Xi[e] || e;
|
|
4241
|
+
}
|
|
4242
|
+
function zi(e) {
|
|
4243
|
+
return {
|
|
4244
|
+
_custom: {
|
|
4245
|
+
type: "function",
|
|
4246
|
+
display: `<span>ƒ</span> ${e.source ? `("${Qi(e.source)}")` : "(?)"}`
|
|
4247
|
+
}
|
|
4248
|
+
};
|
|
4249
|
+
}
|
|
4250
|
+
function Zi(e, t) {
|
|
4251
|
+
e.rootNodes.push({
|
|
4252
|
+
id: "global",
|
|
4253
|
+
label: "Global Scope"
|
|
4254
|
+
});
|
|
4255
|
+
const n = t.mode === "composition" ? t.global : t.global.__composer;
|
|
4256
|
+
for (const [a, r] of t.__instances) {
|
|
4257
|
+
const s = t.mode === "composition" ? r : r.__composer;
|
|
4258
|
+
n !== s && e.rootNodes.push({
|
|
4259
|
+
id: s.id.toString(),
|
|
4260
|
+
label: `${aa(a)} Scope`
|
|
4261
|
+
});
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
function el(e, t) {
|
|
4265
|
+
let n = null;
|
|
4266
|
+
if (e !== "global") {
|
|
4267
|
+
for (const [a, r] of t.__instances.entries())
|
|
4268
|
+
if (r.id.toString() === e) {
|
|
4269
|
+
n = a;
|
|
4270
|
+
break;
|
|
4271
|
+
}
|
|
4272
|
+
}
|
|
4273
|
+
return n;
|
|
4274
|
+
}
|
|
4275
|
+
function sa(e, t) {
|
|
4276
|
+
if (e === "global")
|
|
4277
|
+
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
4278
|
+
{
|
|
4279
|
+
const n = Array.from(t.__instances.values()).find((a) => a.id.toString() === e);
|
|
4280
|
+
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
4281
|
+
}
|
|
4282
|
+
}
|
|
4283
|
+
function tl(e, t) {
|
|
4284
|
+
const n = sa(e.nodeId, t);
|
|
4285
|
+
return n && (e.state = nl(n)), null;
|
|
4286
|
+
}
|
|
4287
|
+
function nl(e) {
|
|
4288
|
+
const t = {}, n = "Locale related info", a = [
|
|
4289
|
+
{
|
|
4290
|
+
type: n,
|
|
4291
|
+
key: "locale",
|
|
4292
|
+
editable: !0,
|
|
4293
|
+
value: e.locale.value
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
type: n,
|
|
4297
|
+
key: "fallbackLocale",
|
|
4298
|
+
editable: !0,
|
|
4299
|
+
value: e.fallbackLocale.value
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
type: n,
|
|
4303
|
+
key: "availableLocales",
|
|
4304
|
+
editable: !1,
|
|
4305
|
+
value: e.availableLocales
|
|
4306
|
+
},
|
|
4307
|
+
{
|
|
4308
|
+
type: n,
|
|
4309
|
+
key: "inheritLocale",
|
|
4310
|
+
editable: !0,
|
|
4311
|
+
value: e.inheritLocale
|
|
4312
|
+
}
|
|
4313
|
+
];
|
|
4314
|
+
t[n] = a;
|
|
4315
|
+
const r = "Locale messages info", s = [
|
|
4316
|
+
{
|
|
4317
|
+
type: r,
|
|
4318
|
+
key: "messages",
|
|
4319
|
+
editable: !1,
|
|
4320
|
+
value: hn(e.messages.value)
|
|
4321
|
+
}
|
|
4322
|
+
];
|
|
4323
|
+
t[r] = s;
|
|
4324
|
+
{
|
|
4325
|
+
const o = "Datetime formats info", i = [
|
|
4326
|
+
{
|
|
4327
|
+
type: o,
|
|
4328
|
+
key: "datetimeFormats",
|
|
4329
|
+
editable: !1,
|
|
4330
|
+
value: e.datetimeFormats.value
|
|
4331
|
+
}
|
|
4332
|
+
];
|
|
4333
|
+
t[o] = i;
|
|
4334
|
+
const u = "Datetime formats info", _ = [
|
|
4335
|
+
{
|
|
4336
|
+
type: u,
|
|
4337
|
+
key: "numberFormats",
|
|
4338
|
+
editable: !1,
|
|
4339
|
+
value: e.numberFormats.value
|
|
4340
|
+
}
|
|
4341
|
+
];
|
|
4342
|
+
t[u] = _;
|
|
4343
|
+
}
|
|
4344
|
+
return t;
|
|
4345
|
+
}
|
|
4346
|
+
function rt(e, t) {
|
|
4347
|
+
if (tn) {
|
|
4348
|
+
let n;
|
|
4349
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), tn.addTimelineEvent({
|
|
4350
|
+
layerId: "vue-i18n-timeline",
|
|
4351
|
+
event: {
|
|
4352
|
+
title: e,
|
|
4353
|
+
groupId: n,
|
|
4354
|
+
time: Date.now(),
|
|
4355
|
+
meta: {},
|
|
4356
|
+
data: t || {},
|
|
4357
|
+
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
|
4358
|
+
}
|
|
4359
|
+
});
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
function rl(e, t) {
|
|
4363
|
+
const n = sa(e.nodeId, t);
|
|
4364
|
+
if (n) {
|
|
4365
|
+
const [a] = e.path;
|
|
4366
|
+
a === "locale" && C(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (C(e.state.value) || Y(e.state.value) || x(e.state.value)) ? n.fallbackLocale.value = e.state.value : a === "inheritLocale" && U(e.state.value) && (n.inheritLocale = e.state.value);
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4369
|
+
function al(e) {
|
|
4370
|
+
const t = C(e.locale) ? e.locale : et, n = C(e.fallbackLocale) || Y(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = H(e.missing) ? e.missing : void 0, r = U(e.silentTranslationWarn) || Be(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = U(e.silentFallbackWarn) || Be(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = U(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = M(e.modifiers) ? e.modifiers : {}, _ = e.pluralizationRules, h = H(e.postTranslation) ? e.postTranslation : void 0, v = C(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, O = U(e.sync) ? e.sync : !0;
|
|
4371
|
+
let S = e.messages;
|
|
4372
|
+
if (M(e.sharedMessages)) {
|
|
4373
|
+
const N = e.sharedMessages;
|
|
4374
|
+
S = Object.keys(N).reduce((E, P) => {
|
|
4375
|
+
const D = E[P] || (E[P] = {});
|
|
4376
|
+
return ee(D, N[P]), E;
|
|
4377
|
+
}, S || {});
|
|
4378
|
+
}
|
|
4379
|
+
const { __i18n: k, __root: y, __injectWithOption: d } = e, m = e.datetimeFormats, L = e.numberFormats, p = e.flatJson;
|
|
4380
|
+
return {
|
|
4381
|
+
locale: t,
|
|
4382
|
+
fallbackLocale: n,
|
|
4383
|
+
messages: S,
|
|
4384
|
+
flatJson: p,
|
|
4385
|
+
datetimeFormats: m,
|
|
4386
|
+
numberFormats: L,
|
|
4387
|
+
missing: a,
|
|
4388
|
+
missingWarn: r,
|
|
4389
|
+
fallbackWarn: s,
|
|
4390
|
+
fallbackRoot: o,
|
|
4391
|
+
fallbackFormat: i,
|
|
4392
|
+
modifiers: u,
|
|
4393
|
+
pluralRules: _,
|
|
4394
|
+
postTranslation: h,
|
|
4395
|
+
warnHtmlMessage: v,
|
|
4396
|
+
escapeParameter: f,
|
|
4397
|
+
messageResolver: e.messageResolver,
|
|
4398
|
+
inheritLocale: O,
|
|
4399
|
+
__i18n: k,
|
|
4400
|
+
__root: y,
|
|
4401
|
+
__injectWithOption: d
|
|
4402
|
+
};
|
|
4403
|
+
}
|
|
4404
|
+
function nn(e = {}) {
|
|
4405
|
+
const t = pn(al(e)), { __extender: n } = e, a = {
|
|
4406
|
+
// id
|
|
4407
|
+
id: t.id,
|
|
4408
|
+
// locale
|
|
4409
|
+
get locale() {
|
|
4410
|
+
return t.locale.value;
|
|
4411
|
+
},
|
|
4412
|
+
set locale(r) {
|
|
4413
|
+
t.locale.value = r;
|
|
4414
|
+
},
|
|
4415
|
+
// fallbackLocale
|
|
4416
|
+
get fallbackLocale() {
|
|
4417
|
+
return t.fallbackLocale.value;
|
|
4418
|
+
},
|
|
4419
|
+
set fallbackLocale(r) {
|
|
4420
|
+
t.fallbackLocale.value = r;
|
|
4421
|
+
},
|
|
4422
|
+
// messages
|
|
4423
|
+
get messages() {
|
|
4424
|
+
return t.messages.value;
|
|
4425
|
+
},
|
|
4426
|
+
// datetimeFormats
|
|
4427
|
+
get datetimeFormats() {
|
|
4428
|
+
return t.datetimeFormats.value;
|
|
4429
|
+
},
|
|
4430
|
+
// numberFormats
|
|
4431
|
+
get numberFormats() {
|
|
4432
|
+
return t.numberFormats.value;
|
|
4433
|
+
},
|
|
4434
|
+
// availableLocales
|
|
4435
|
+
get availableLocales() {
|
|
4436
|
+
return t.availableLocales;
|
|
4437
|
+
},
|
|
4438
|
+
// missing
|
|
4439
|
+
get missing() {
|
|
4440
|
+
return t.getMissingHandler();
|
|
4441
|
+
},
|
|
4442
|
+
set missing(r) {
|
|
4443
|
+
t.setMissingHandler(r);
|
|
4444
|
+
},
|
|
4445
|
+
// silentTranslationWarn
|
|
4446
|
+
get silentTranslationWarn() {
|
|
4447
|
+
return U(t.missingWarn) ? !t.missingWarn : t.missingWarn;
|
|
4448
|
+
},
|
|
4449
|
+
set silentTranslationWarn(r) {
|
|
4450
|
+
t.missingWarn = U(r) ? !r : r;
|
|
4451
|
+
},
|
|
4452
|
+
// silentFallbackWarn
|
|
4453
|
+
get silentFallbackWarn() {
|
|
4454
|
+
return U(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
|
|
4455
|
+
},
|
|
4456
|
+
set silentFallbackWarn(r) {
|
|
4457
|
+
t.fallbackWarn = U(r) ? !r : r;
|
|
4458
|
+
},
|
|
4459
|
+
// modifiers
|
|
4460
|
+
get modifiers() {
|
|
4461
|
+
return t.modifiers;
|
|
4462
|
+
},
|
|
4463
|
+
// formatFallbackMessages
|
|
4464
|
+
get formatFallbackMessages() {
|
|
4465
|
+
return t.fallbackFormat;
|
|
4466
|
+
},
|
|
4467
|
+
set formatFallbackMessages(r) {
|
|
4468
|
+
t.fallbackFormat = r;
|
|
4469
|
+
},
|
|
4470
|
+
// postTranslation
|
|
4471
|
+
get postTranslation() {
|
|
4472
|
+
return t.getPostTranslationHandler();
|
|
4473
|
+
},
|
|
4474
|
+
set postTranslation(r) {
|
|
4475
|
+
t.setPostTranslationHandler(r);
|
|
4476
|
+
},
|
|
4477
|
+
// sync
|
|
4478
|
+
get sync() {
|
|
4479
|
+
return t.inheritLocale;
|
|
4480
|
+
},
|
|
4481
|
+
set sync(r) {
|
|
4482
|
+
t.inheritLocale = r;
|
|
4483
|
+
},
|
|
4484
|
+
// warnInHtmlMessage
|
|
4485
|
+
get warnHtmlInMessage() {
|
|
4486
|
+
return t.warnHtmlMessage ? "warn" : "off";
|
|
4487
|
+
},
|
|
4488
|
+
set warnHtmlInMessage(r) {
|
|
4489
|
+
t.warnHtmlMessage = r !== "off";
|
|
4490
|
+
},
|
|
4491
|
+
// escapeParameterHtml
|
|
4492
|
+
get escapeParameterHtml() {
|
|
4493
|
+
return t.escapeParameter;
|
|
4494
|
+
},
|
|
4495
|
+
set escapeParameterHtml(r) {
|
|
4496
|
+
t.escapeParameter = r;
|
|
4497
|
+
},
|
|
4498
|
+
// pluralizationRules
|
|
4499
|
+
get pluralizationRules() {
|
|
4500
|
+
return t.pluralRules || {};
|
|
4501
|
+
},
|
|
4502
|
+
// for internal
|
|
4503
|
+
__composer: t,
|
|
4504
|
+
// t
|
|
4505
|
+
t(...r) {
|
|
4506
|
+
return Reflect.apply(t.t, t, [...r]);
|
|
4507
|
+
},
|
|
4508
|
+
// rt
|
|
4509
|
+
rt(...r) {
|
|
4510
|
+
return Reflect.apply(t.rt, t, [...r]);
|
|
4511
|
+
},
|
|
4512
|
+
// tc
|
|
4513
|
+
tc(...r) {
|
|
4514
|
+
const [s, o, i] = r, u = { plural: 1 };
|
|
4515
|
+
let _ = null, h = null;
|
|
4516
|
+
if (process.env.NODE_ENV !== "production" && Ur(bt(Ne.DEPRECATE_TC)), !C(s))
|
|
4517
|
+
throw ae(B.INVALID_ARGUMENT);
|
|
4518
|
+
const v = s;
|
|
4519
|
+
return C(o) ? u.locale = o : Z(o) ? u.plural = o : Y(o) ? _ = o : M(o) && (h = o), C(i) ? u.locale = i : Y(i) ? _ = i : M(i) && (h = i), Reflect.apply(t.t, t, [
|
|
4520
|
+
v,
|
|
4521
|
+
_ || h || {},
|
|
4522
|
+
u
|
|
4523
|
+
]);
|
|
4524
|
+
},
|
|
4525
|
+
// te
|
|
4526
|
+
te(r, s) {
|
|
4527
|
+
return t.te(r, s);
|
|
4528
|
+
},
|
|
4529
|
+
// tm
|
|
4530
|
+
tm(r) {
|
|
4531
|
+
return t.tm(r);
|
|
4532
|
+
},
|
|
4533
|
+
// getLocaleMessage
|
|
4534
|
+
getLocaleMessage(r) {
|
|
4535
|
+
return t.getLocaleMessage(r);
|
|
4536
|
+
},
|
|
4537
|
+
// setLocaleMessage
|
|
4538
|
+
setLocaleMessage(r, s) {
|
|
4539
|
+
t.setLocaleMessage(r, s);
|
|
4540
|
+
},
|
|
4541
|
+
// mergeLocaleMessage
|
|
4542
|
+
mergeLocaleMessage(r, s) {
|
|
4543
|
+
t.mergeLocaleMessage(r, s);
|
|
4544
|
+
},
|
|
4545
|
+
// d
|
|
4546
|
+
d(...r) {
|
|
4547
|
+
return Reflect.apply(t.d, t, [...r]);
|
|
4548
|
+
},
|
|
4549
|
+
// getDateTimeFormat
|
|
4550
|
+
getDateTimeFormat(r) {
|
|
4551
|
+
return t.getDateTimeFormat(r);
|
|
4552
|
+
},
|
|
4553
|
+
// setDateTimeFormat
|
|
4554
|
+
setDateTimeFormat(r, s) {
|
|
4555
|
+
t.setDateTimeFormat(r, s);
|
|
4556
|
+
},
|
|
4557
|
+
// mergeDateTimeFormat
|
|
4558
|
+
mergeDateTimeFormat(r, s) {
|
|
4559
|
+
t.mergeDateTimeFormat(r, s);
|
|
4560
|
+
},
|
|
4561
|
+
// n
|
|
4562
|
+
n(...r) {
|
|
4563
|
+
return Reflect.apply(t.n, t, [...r]);
|
|
4564
|
+
},
|
|
4565
|
+
// getNumberFormat
|
|
4566
|
+
getNumberFormat(r) {
|
|
4567
|
+
return t.getNumberFormat(r);
|
|
4568
|
+
},
|
|
4569
|
+
// setNumberFormat
|
|
4570
|
+
setNumberFormat(r, s) {
|
|
4571
|
+
t.setNumberFormat(r, s);
|
|
4572
|
+
},
|
|
4573
|
+
// mergeNumberFormat
|
|
4574
|
+
mergeNumberFormat(r, s) {
|
|
4575
|
+
t.mergeNumberFormat(r, s);
|
|
4576
|
+
}
|
|
4577
|
+
};
|
|
4578
|
+
return a.__extender = n, process.env.NODE_ENV !== "production" && (a.__enableEmitter = (r) => {
|
|
4579
|
+
const s = t;
|
|
4580
|
+
s[De] && s[De](r);
|
|
4581
|
+
}, a.__disableEmitter = () => {
|
|
4582
|
+
const r = t;
|
|
4583
|
+
r[tt] && r[tt]();
|
|
4584
|
+
}), a;
|
|
4585
|
+
}
|
|
4586
|
+
function sl(e, t, n) {
|
|
4587
|
+
return {
|
|
4588
|
+
beforeCreate() {
|
|
4589
|
+
const a = Le();
|
|
4590
|
+
if (!a)
|
|
4591
|
+
throw ae(B.UNEXPECTED_ERROR);
|
|
4592
|
+
const r = this.$options;
|
|
4593
|
+
if (r.i18n) {
|
|
4594
|
+
const s = r.i18n;
|
|
4595
|
+
if (r.__i18n && (s.__i18n = r.__i18n), s.__root = t, this === this.$root)
|
|
4596
|
+
this.$i18n = mr(e, s);
|
|
4597
|
+
else {
|
|
4598
|
+
s.__injectWithOption = !0, s.__extender = n.__vueI18nExtend, this.$i18n = nn(s);
|
|
4599
|
+
const o = this.$i18n;
|
|
4600
|
+
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
4601
|
+
}
|
|
4602
|
+
} else if (r.__i18n)
|
|
4603
|
+
if (this === this.$root)
|
|
4604
|
+
this.$i18n = mr(e, r);
|
|
4605
|
+
else {
|
|
4606
|
+
this.$i18n = nn({
|
|
4607
|
+
__i18n: r.__i18n,
|
|
4608
|
+
__injectWithOption: !0,
|
|
4609
|
+
__extender: n.__vueI18nExtend,
|
|
4610
|
+
__root: t
|
|
4611
|
+
});
|
|
4612
|
+
const s = this.$i18n;
|
|
4613
|
+
s.__extender && (s.__disposer = s.__extender(this.$i18n));
|
|
4614
|
+
}
|
|
4615
|
+
else
|
|
4616
|
+
this.$i18n = e;
|
|
4617
|
+
r.__i18nGlobal && na(t, r, r), this.$t = (...s) => this.$i18n.t(...s), this.$rt = (...s) => this.$i18n.rt(...s), this.$tc = (...s) => this.$i18n.tc(...s), this.$te = (s, o) => this.$i18n.te(s, o), this.$d = (...s) => this.$i18n.d(...s), this.$n = (...s) => this.$i18n.n(...s), this.$tm = (s) => this.$i18n.tm(s), n.__setInstance(a, this.$i18n);
|
|
4618
|
+
},
|
|
4619
|
+
mounted() {
|
|
4620
|
+
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
4621
|
+
const a = this.$i18n;
|
|
4622
|
+
this.$el.__VUE_I18N__ = a.__composer;
|
|
4623
|
+
const r = this.__v_emitter = un();
|
|
4624
|
+
a.__enableEmitter && a.__enableEmitter(r), r.on("*", rt);
|
|
4625
|
+
}
|
|
4626
|
+
},
|
|
4627
|
+
unmounted() {
|
|
4628
|
+
const a = Le();
|
|
4629
|
+
if (!a)
|
|
4630
|
+
throw ae(B.UNEXPECTED_ERROR);
|
|
4631
|
+
const r = this.$i18n;
|
|
4632
|
+
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", rt), delete this.__v_emitter), this.$i18n && (r.__disableEmitter && r.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, r.__disposer && (r.__disposer(), delete r.__disposer, delete r.__extender), n.__deleteInstance(a), delete this.$i18n;
|
|
4633
|
+
}
|
|
4634
|
+
};
|
|
4635
|
+
}
|
|
4636
|
+
function mr(e, t) {
|
|
4637
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Zr](t.pluralizationRules || e.pluralizationRules);
|
|
4638
|
+
const n = gn(e.locale, {
|
|
4639
|
+
messages: t.messages,
|
|
4640
|
+
__i18n: t.__i18n
|
|
4641
|
+
});
|
|
4642
|
+
return Object.keys(n).forEach((a) => e.mergeLocaleMessage(a, n[a])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((a) => e.mergeDateTimeFormat(a, t.datetimeFormats[a])), t.numberFormats && Object.keys(t.numberFormats).forEach((a) => e.mergeNumberFormat(a, t.numberFormats[a])), e;
|
|
4643
|
+
}
|
|
4644
|
+
const En = {
|
|
4645
|
+
tag: {
|
|
4646
|
+
type: [String, Object]
|
|
4647
|
+
},
|
|
4648
|
+
locale: {
|
|
4649
|
+
type: String
|
|
4650
|
+
},
|
|
4651
|
+
scope: {
|
|
4652
|
+
type: String,
|
|
4653
|
+
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
4654
|
+
validator: (e) => e === "parent" || e === "global",
|
|
4655
|
+
default: "parent"
|
|
4656
|
+
/* ComponentI18nScope */
|
|
4657
|
+
},
|
|
4658
|
+
i18n: {
|
|
4659
|
+
type: Object
|
|
4660
|
+
}
|
|
4661
|
+
};
|
|
4662
|
+
function ol({ slots: e }, t) {
|
|
4663
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((a, r) => [
|
|
4664
|
+
...a,
|
|
4665
|
+
// prettier-ignore
|
|
4666
|
+
...r.type === an ? r.children : [r]
|
|
4667
|
+
], []) : t.reduce((n, a) => {
|
|
4668
|
+
const r = e[a];
|
|
4669
|
+
return r && (n[a] = r()), n;
|
|
4670
|
+
}, W());
|
|
4671
|
+
}
|
|
4672
|
+
function oa() {
|
|
4673
|
+
return an;
|
|
4674
|
+
}
|
|
4675
|
+
const il = /* @__PURE__ */ at({
|
|
4676
|
+
/* eslint-disable */
|
|
4677
|
+
name: "i18n-t",
|
|
4678
|
+
props: ee({
|
|
4679
|
+
keypath: {
|
|
4680
|
+
type: String,
|
|
4681
|
+
required: !0
|
|
4682
|
+
},
|
|
4683
|
+
plural: {
|
|
4684
|
+
type: [Number, String],
|
|
4685
|
+
validator: (e) => Z(e) || !isNaN(e)
|
|
4686
|
+
}
|
|
4687
|
+
}, En),
|
|
4688
|
+
/* eslint-enable */
|
|
4689
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4690
|
+
setup(e, t) {
|
|
4691
|
+
const { slots: n, attrs: a } = t, r = e.i18n || vn({
|
|
4692
|
+
useScope: e.scope,
|
|
4693
|
+
__useComponent: !0
|
|
4694
|
+
});
|
|
4695
|
+
return () => {
|
|
4696
|
+
const s = Object.keys(n).filter((v) => v !== "_"), o = W();
|
|
4697
|
+
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = C(e.plural) ? +e.plural : e.plural);
|
|
4698
|
+
const i = ol(t, s), u = r[Jt](e.keypath, i, o), _ = ee(W(), a), h = C(e.tag) || x(e.tag) ? e.tag : oa();
|
|
4699
|
+
return G(h, _, u);
|
|
4700
|
+
};
|
|
4701
|
+
}
|
|
4702
|
+
}), gr = il;
|
|
4703
|
+
function ll(e) {
|
|
4704
|
+
return Y(e) && !C(e[0]);
|
|
4705
|
+
}
|
|
4706
|
+
function ia(e, t, n, a) {
|
|
4707
|
+
const { slots: r, attrs: s } = t;
|
|
4708
|
+
return () => {
|
|
4709
|
+
const o = { part: !0 };
|
|
4710
|
+
let i = W();
|
|
4711
|
+
e.locale && (o.locale = e.locale), C(e.format) ? o.key = e.format : x(e.format) && (C(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((f, O) => n.includes(O) ? ee(W(), f, { [O]: e.format[O] }) : f, W()));
|
|
4712
|
+
const u = a(e.value, o, i);
|
|
4713
|
+
let _ = [o.key];
|
|
4714
|
+
Y(u) ? _ = u.map((f, O) => {
|
|
4715
|
+
const S = r[f.type], k = S ? S({ [f.type]: f.value, index: O, parts: u }) : [f.value];
|
|
4716
|
+
return ll(k) && (k[0].key = `${f.type}-${O}`), k;
|
|
4717
|
+
}) : C(u) && (_ = [u]);
|
|
4718
|
+
const h = ee(W(), s), v = C(e.tag) || x(e.tag) ? e.tag : oa();
|
|
4719
|
+
return G(v, h, _);
|
|
4720
|
+
};
|
|
4721
|
+
}
|
|
4722
|
+
const cl = /* @__PURE__ */ at({
|
|
4723
|
+
/* eslint-disable */
|
|
4724
|
+
name: "i18n-n",
|
|
4725
|
+
props: ee({
|
|
4726
|
+
value: {
|
|
4727
|
+
type: Number,
|
|
4728
|
+
required: !0
|
|
4729
|
+
},
|
|
4730
|
+
format: {
|
|
4731
|
+
type: [String, Object]
|
|
4732
|
+
}
|
|
4733
|
+
}, En),
|
|
4734
|
+
/* eslint-enable */
|
|
4735
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4736
|
+
setup(e, t) {
|
|
4737
|
+
const n = e.i18n || vn({
|
|
4738
|
+
useScope: e.scope,
|
|
4739
|
+
__useComponent: !0
|
|
4740
|
+
});
|
|
4741
|
+
return ia(e, t, Xr, (...a) => (
|
|
4742
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4743
|
+
n[Zt](...a)
|
|
4744
|
+
));
|
|
4745
|
+
}
|
|
4746
|
+
}), pr = cl, ul = /* @__PURE__ */ at({
|
|
4747
|
+
/* eslint-disable */
|
|
4748
|
+
name: "i18n-d",
|
|
4749
|
+
props: ee({
|
|
4750
|
+
value: {
|
|
4751
|
+
type: [Number, Date],
|
|
4752
|
+
required: !0
|
|
4753
|
+
},
|
|
4754
|
+
format: {
|
|
4755
|
+
type: [String, Object]
|
|
4756
|
+
}
|
|
4757
|
+
}, En),
|
|
4758
|
+
/* eslint-enable */
|
|
4759
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4760
|
+
setup(e, t) {
|
|
4761
|
+
const n = e.i18n || vn({
|
|
4762
|
+
useScope: e.scope,
|
|
4763
|
+
__useComponent: !0
|
|
4764
|
+
});
|
|
4765
|
+
return ia(e, t, Yr, (...a) => (
|
|
4766
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4767
|
+
n[zt](...a)
|
|
4768
|
+
));
|
|
4769
|
+
}
|
|
4770
|
+
}), hr = ul;
|
|
4771
|
+
function fl(e, t) {
|
|
4772
|
+
const n = e;
|
|
4773
|
+
if (e.mode === "composition")
|
|
4774
|
+
return n.__getInstance(t) || e.global;
|
|
4775
|
+
{
|
|
4776
|
+
const a = n.__getInstance(t);
|
|
4777
|
+
return a != null ? a.__composer : e.global.__composer;
|
|
4778
|
+
}
|
|
4779
|
+
}
|
|
4780
|
+
function dl(e) {
|
|
4781
|
+
const t = (o) => {
|
|
4782
|
+
const { instance: i, value: u } = o;
|
|
4783
|
+
if (!i || !i.$)
|
|
4784
|
+
throw ae(B.UNEXPECTED_ERROR);
|
|
4785
|
+
const _ = fl(e, i.$), h = Er(u);
|
|
4786
|
+
return [
|
|
4787
|
+
Reflect.apply(_.t, _, [...vr(h)]),
|
|
4788
|
+
_
|
|
4789
|
+
];
|
|
4790
|
+
};
|
|
4791
|
+
return {
|
|
4792
|
+
created: (o, i) => {
|
|
4793
|
+
const [u, _] = t(i);
|
|
4794
|
+
fe && e.global === _ && (o.__i18nWatcher = Vt(_.locale, () => {
|
|
4795
|
+
i.instance && i.instance.$forceUpdate();
|
|
4796
|
+
})), o.__composer = _, o.textContent = u;
|
|
4797
|
+
},
|
|
4798
|
+
unmounted: (o) => {
|
|
4799
|
+
fe && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
|
|
4800
|
+
},
|
|
4801
|
+
beforeUpdate: (o, { value: i }) => {
|
|
4802
|
+
if (o.__composer) {
|
|
4803
|
+
const u = o.__composer, _ = Er(i);
|
|
4804
|
+
o.textContent = Reflect.apply(u.t, u, [
|
|
4805
|
+
...vr(_)
|
|
4806
|
+
]);
|
|
4807
|
+
}
|
|
4808
|
+
},
|
|
4809
|
+
getSSRProps: (o) => {
|
|
4810
|
+
const [i] = t(o);
|
|
4811
|
+
return { textContent: i };
|
|
4812
|
+
}
|
|
4813
|
+
};
|
|
4814
|
+
}
|
|
4815
|
+
function Er(e) {
|
|
4816
|
+
if (C(e))
|
|
4817
|
+
return { path: e };
|
|
4818
|
+
if (M(e)) {
|
|
4819
|
+
if (!("path" in e))
|
|
4820
|
+
throw ae(B.REQUIRED_VALUE, "path");
|
|
4821
|
+
return e;
|
|
4822
|
+
} else
|
|
4823
|
+
throw ae(B.INVALID_VALUE);
|
|
4824
|
+
}
|
|
4825
|
+
function vr(e) {
|
|
4826
|
+
const { path: t, locale: n, args: a, choice: r, plural: s } = e, o = {}, i = a || {};
|
|
4827
|
+
return C(n) && (o.locale = n), Z(r) && (o.plural = r), Z(s) && (o.plural = s), [t, i, o];
|
|
4828
|
+
}
|
|
4829
|
+
function _l(e, t, ...n) {
|
|
4830
|
+
const a = M(n[0]) ? n[0] : {};
|
|
4831
|
+
(U(a.globalInstall) ? a.globalInstall : !0) && ([gr.name, "I18nT"].forEach((s) => e.component(s, gr)), [pr.name, "I18nN"].forEach((s) => e.component(s, pr)), [hr.name, "I18nD"].forEach((s) => e.component(s, hr))), e.directive("t", dl(t));
|
|
4832
|
+
}
|
|
4833
|
+
const ml = /* @__PURE__ */ me("global-vue-i18n");
|
|
4834
|
+
function gl(e = {}, t) {
|
|
4835
|
+
const n = __VUE_I18N_LEGACY_API__ && U(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, a = U(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, o] = pl(e, n), i = /* @__PURE__ */ me(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
4836
|
+
function u(f) {
|
|
4837
|
+
return r.get(f) || null;
|
|
4838
|
+
}
|
|
4839
|
+
function _(f, O) {
|
|
4840
|
+
r.set(f, O);
|
|
4841
|
+
}
|
|
4842
|
+
function h(f) {
|
|
4843
|
+
r.delete(f);
|
|
4844
|
+
}
|
|
4845
|
+
const v = {
|
|
4846
|
+
// mode
|
|
4847
|
+
get mode() {
|
|
4848
|
+
return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition";
|
|
4849
|
+
},
|
|
4850
|
+
// install plugin
|
|
4851
|
+
async install(f, ...O) {
|
|
4852
|
+
if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = v), f.__VUE_I18N_SYMBOL__ = i, f.provide(f.__VUE_I18N_SYMBOL__, v), M(O[0])) {
|
|
4853
|
+
const y = O[0];
|
|
4854
|
+
v.__composerExtend = y.__composerExtend, v.__vueI18nExtend = y.__vueI18nExtend;
|
|
4855
|
+
}
|
|
4856
|
+
let S = null;
|
|
4857
|
+
!n && a && (S = Tl(f, v.global)), __VUE_I18N_FULL_INSTALL__ && _l(f, v, ...O), __VUE_I18N_LEGACY_API__ && n && f.mixin(sl(o, o.__composer, v));
|
|
4858
|
+
const k = f.unmount;
|
|
4859
|
+
if (f.unmount = () => {
|
|
4860
|
+
S && S(), v.dispose(), k();
|
|
4861
|
+
}, process.env.NODE_ENV !== "production") {
|
|
4862
|
+
if (!await Ki(f, v))
|
|
4863
|
+
throw ae(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
4864
|
+
const d = un();
|
|
4865
|
+
if (n) {
|
|
4866
|
+
const m = o;
|
|
4867
|
+
m.__enableEmitter && m.__enableEmitter(d);
|
|
4868
|
+
} else {
|
|
4869
|
+
const m = o;
|
|
4870
|
+
m[De] && m[De](d);
|
|
4871
|
+
}
|
|
4872
|
+
d.on("*", rt);
|
|
4873
|
+
}
|
|
4874
|
+
},
|
|
4875
|
+
// global accessor
|
|
4876
|
+
get global() {
|
|
4877
|
+
return o;
|
|
4878
|
+
},
|
|
4879
|
+
dispose() {
|
|
4880
|
+
s.stop();
|
|
4881
|
+
},
|
|
4882
|
+
// @internal
|
|
4883
|
+
__instances: r,
|
|
4884
|
+
// @internal
|
|
4885
|
+
__getInstance: u,
|
|
4886
|
+
// @internal
|
|
4887
|
+
__setInstance: _,
|
|
4888
|
+
// @internal
|
|
4889
|
+
__deleteInstance: h
|
|
4890
|
+
};
|
|
4891
|
+
return v;
|
|
4892
|
+
}
|
|
4893
|
+
function vn(e = {}) {
|
|
4894
|
+
const t = Le();
|
|
4895
|
+
if (t == null)
|
|
4896
|
+
throw ae(B.MUST_BE_CALL_SETUP_TOP);
|
|
4897
|
+
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
4898
|
+
throw ae(B.NOT_INSTALLED);
|
|
4899
|
+
const n = hl(t), a = vl(n), r = ta(t), s = El(e, r);
|
|
4900
|
+
if (s === "global")
|
|
4901
|
+
return na(a, e, r), a;
|
|
4902
|
+
if (s === "parent") {
|
|
4903
|
+
let u = bl(n, t, e.__useComponent);
|
|
4904
|
+
return u == null && (process.env.NODE_ENV !== "production" && Te(bt(Ne.NOT_FOUND_PARENT_SCOPE)), u = a), u;
|
|
4905
|
+
}
|
|
4906
|
+
const o = n;
|
|
4907
|
+
let i = o.__getInstance(t);
|
|
4908
|
+
if (i == null) {
|
|
4909
|
+
const u = ee({}, e);
|
|
4910
|
+
"__i18n" in r && (u.__i18n = r.__i18n), a && (u.__root = a), i = pn(u), o.__composerExtend && (i[en] = o.__composerExtend(i)), Ll(o, t, i), o.__setInstance(t, i);
|
|
4911
|
+
}
|
|
4912
|
+
return i;
|
|
4913
|
+
}
|
|
4914
|
+
function pl(e, t, n) {
|
|
4915
|
+
const a = ga(), r = __VUE_I18N_LEGACY_API__ && t ? a.run(() => nn(e)) : a.run(() => pn(e));
|
|
4916
|
+
if (r == null)
|
|
4917
|
+
throw ae(B.UNEXPECTED_ERROR);
|
|
4918
|
+
return [a, r];
|
|
4919
|
+
}
|
|
4920
|
+
function hl(e) {
|
|
4921
|
+
const t = Ea(e.isCE ? ml : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
4922
|
+
if (!t)
|
|
4923
|
+
throw ae(e.isCE ? B.NOT_INSTALLED_WITH_PROVIDE : B.UNEXPECTED_ERROR);
|
|
4924
|
+
return t;
|
|
4925
|
+
}
|
|
4926
|
+
function El(e, t) {
|
|
4927
|
+
return ht(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
4928
|
+
}
|
|
4929
|
+
function vl(e) {
|
|
4930
|
+
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
4931
|
+
}
|
|
4932
|
+
function bl(e, t, n = !1) {
|
|
4933
|
+
let a = null;
|
|
4934
|
+
const r = t.root;
|
|
4935
|
+
let s = Nl(t, n);
|
|
4936
|
+
for (; s != null; ) {
|
|
4937
|
+
const o = e;
|
|
4938
|
+
if (e.mode === "composition")
|
|
4939
|
+
a = o.__getInstance(s);
|
|
4940
|
+
else if (__VUE_I18N_LEGACY_API__) {
|
|
4941
|
+
const i = o.__getInstance(s);
|
|
4942
|
+
i != null && (a = i.__composer, n && a && !a[ea] && (a = null));
|
|
4943
|
+
}
|
|
4944
|
+
if (a != null || r === s)
|
|
4945
|
+
break;
|
|
4946
|
+
s = s.parent;
|
|
4947
|
+
}
|
|
4948
|
+
return a;
|
|
4949
|
+
}
|
|
4950
|
+
function Nl(e, t = !1) {
|
|
4951
|
+
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
4952
|
+
}
|
|
4953
|
+
function Ll(e, t, n) {
|
|
4954
|
+
let a = null;
|
|
4955
|
+
va(() => {
|
|
4956
|
+
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
4957
|
+
t.vnode.el.__VUE_I18N__ = n, a = un();
|
|
4958
|
+
const r = n;
|
|
4959
|
+
r[De] && r[De](a), a.on("*", rt);
|
|
4960
|
+
}
|
|
4961
|
+
}, t), ba(() => {
|
|
4962
|
+
const r = n;
|
|
4963
|
+
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (a && a.off("*", rt), r[tt] && r[tt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
4964
|
+
const s = r[en];
|
|
4965
|
+
s && (s(), delete r[en]);
|
|
4966
|
+
}, t);
|
|
4967
|
+
}
|
|
4968
|
+
const yl = [
|
|
4969
|
+
"locale",
|
|
4970
|
+
"fallbackLocale",
|
|
4971
|
+
"availableLocales"
|
|
4972
|
+
], br = ["t", "rt", "d", "n", "tm", "te"];
|
|
4973
|
+
function Tl(e, t) {
|
|
4974
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
4975
|
+
return yl.forEach((r) => {
|
|
4976
|
+
const s = Object.getOwnPropertyDescriptor(t, r);
|
|
4977
|
+
if (!s)
|
|
4978
|
+
throw ae(B.UNEXPECTED_ERROR);
|
|
4979
|
+
const o = ha(s.value) ? {
|
|
4980
|
+
get() {
|
|
4981
|
+
return s.value.value;
|
|
4982
|
+
},
|
|
4983
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4984
|
+
set(i) {
|
|
4985
|
+
s.value.value = i;
|
|
4986
|
+
}
|
|
4987
|
+
} : {
|
|
4988
|
+
get() {
|
|
4989
|
+
return s.get && s.get();
|
|
4990
|
+
}
|
|
4991
|
+
};
|
|
4992
|
+
Object.defineProperty(n, r, o);
|
|
4993
|
+
}), e.config.globalProperties.$i18n = n, br.forEach((r) => {
|
|
4994
|
+
const s = Object.getOwnPropertyDescriptor(t, r);
|
|
4995
|
+
if (!s || !s.value)
|
|
4996
|
+
throw ae(B.UNEXPECTED_ERROR);
|
|
4997
|
+
Object.defineProperty(e.config.globalProperties, `$${r}`, s);
|
|
4998
|
+
}), () => {
|
|
4999
|
+
delete e.config.globalProperties.$i18n, br.forEach((r) => {
|
|
5000
|
+
delete e.config.globalProperties[`$${r}`];
|
|
5001
|
+
});
|
|
5002
|
+
};
|
|
5003
|
+
}
|
|
5004
|
+
Vi();
|
|
5005
|
+
ui(Bo);
|
|
5006
|
+
fi(si);
|
|
5007
|
+
di($r);
|
|
5008
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
5009
|
+
const e = we();
|
|
5010
|
+
e.__INTLIFY__ = !0, Ho(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
5011
|
+
}
|
|
5012
|
+
process.env.NODE_ENV;
|
|
5013
|
+
const rn = gl({
|
|
5014
|
+
locale: "es",
|
|
5015
|
+
globalInjection: !0,
|
|
5016
|
+
silentTranslationWarn: !0,
|
|
5017
|
+
messages: Fs
|
|
5018
|
+
}), Il = {
|
|
5019
|
+
install(e) {
|
|
5020
|
+
console.log("[Quasar Components] Installing..."), As(e, Rs), e.use(rn), rn.global.locale = "en", e.use(Xa, {
|
|
5021
|
+
plugins: {}
|
|
5022
|
+
// import Quasar plugins and add here
|
|
5023
|
+
}), console.log("[Quasar components] Installed");
|
|
5024
|
+
}
|
|
5025
|
+
};
|
|
5026
|
+
function kl(e) {
|
|
5027
|
+
rn.global.locale = e;
|
|
5028
|
+
}
|
|
5029
|
+
export {
|
|
5030
|
+
ws as KMyButton,
|
|
5031
|
+
Il as QuasarFactoryLib,
|
|
5032
|
+
kl as updatePackageLanguage
|
|
5033
|
+
};
|