smarteye-e-components 0.0.39 → 0.0.40
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/dist/smarteye-e-components.js +9 -9
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +1405 -1047
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/multi-video-area-layout-switch/index.vue.d.ts +8 -0
- package/lib/components/multi-video-area-layout-switch/model/index.d.ts +36 -0
- package/lib/components/multi-video-area-layout-switch/utils/index.d.ts +18 -0
- package/lib/components/video-areas-layout-show/index.vue.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
var
|
|
1
|
+
import { defineComponent as _e, computed as j, openBlock as P, createElementBlock as k, renderSlot as oe, createElementVNode as C, toDisplayString as ue, h as ke, ref as G, watch as $e, normalizeStyle as Ie, Fragment as de, renderList as De, inject as fn, resolveComponent as ie, normalizeClass as Xe, createVNode as se, withCtx as ce, createCommentVNode as Be, createBlock as _n, getCurrentInstance as it, effectScope as bo, onMounted as To, onUnmounted as yo, isRef as Io, Text as Lo, provide as So, withDirectives as wo, vShow as Do, pushScopeId as Co, popScopeId as Ao } from "vue";
|
|
2
|
+
var bt;
|
|
3
3
|
((e) => {
|
|
4
4
|
((n) => {
|
|
5
5
|
function r(s) {
|
|
@@ -79,8 +79,81 @@ var vt;
|
|
|
79
79
|
}
|
|
80
80
|
n.AccessSession = r;
|
|
81
81
|
})(e.Utils || (e.Utils = {}));
|
|
82
|
-
})(
|
|
83
|
-
|
|
82
|
+
})(bt || (bt = {}));
|
|
83
|
+
var U;
|
|
84
|
+
((e) => {
|
|
85
|
+
function t(n, r, o) {
|
|
86
|
+
if (o) {
|
|
87
|
+
let s = n * r;
|
|
88
|
+
return o.forEach(([l, i, c, u]) => {
|
|
89
|
+
s -= (u - i) * (c - l) - 1;
|
|
90
|
+
}), {
|
|
91
|
+
count: s,
|
|
92
|
+
row: n,
|
|
93
|
+
col: r,
|
|
94
|
+
name: `${s < 10 ? `0${s}` : s}`,
|
|
95
|
+
areas: o.map(([l, i, c, u]) => ({
|
|
96
|
+
leftTop: {
|
|
97
|
+
col: l,
|
|
98
|
+
row: i
|
|
99
|
+
},
|
|
100
|
+
rightBottom: {
|
|
101
|
+
col: c,
|
|
102
|
+
row: u
|
|
103
|
+
}
|
|
104
|
+
}))
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const a = n * r;
|
|
108
|
+
return {
|
|
109
|
+
count: a,
|
|
110
|
+
row: n,
|
|
111
|
+
col: r,
|
|
112
|
+
name: `${a < 10 ? `0${a}` : a}`
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
e.genLayout = t, ((n) => {
|
|
116
|
+
function r(a, s, l) {
|
|
117
|
+
if (l) {
|
|
118
|
+
const c = a * s - (l[3] - l[1]) * (l[2] - l[0]) + 1;
|
|
119
|
+
return {
|
|
120
|
+
count: c,
|
|
121
|
+
row: a,
|
|
122
|
+
col: s,
|
|
123
|
+
name: `${c < 10 ? `0${c}` : c}`,
|
|
124
|
+
area: {
|
|
125
|
+
leftTop: {
|
|
126
|
+
row: l[1],
|
|
127
|
+
col: l[0]
|
|
128
|
+
},
|
|
129
|
+
rightBottom: {
|
|
130
|
+
row: l[3],
|
|
131
|
+
col: l[2]
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const i = a * s;
|
|
137
|
+
return {
|
|
138
|
+
count: i,
|
|
139
|
+
row: a,
|
|
140
|
+
col: s,
|
|
141
|
+
name: `${i < 10 ? `0${i}` : i}`
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
n.genLayout = r;
|
|
145
|
+
function o() {
|
|
146
|
+
return {
|
|
147
|
+
count: 25,
|
|
148
|
+
row: 5,
|
|
149
|
+
col: 5,
|
|
150
|
+
name: "12"
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
n.getTestLayout = o;
|
|
154
|
+
})(e.Test || (e.Test = {}));
|
|
155
|
+
})(U || (U = {}));
|
|
156
|
+
const Po = _e({
|
|
84
157
|
props: {
|
|
85
158
|
countInfo: Object,
|
|
86
159
|
controlParams: Object
|
|
@@ -95,7 +168,7 @@ const Eo = Re({
|
|
|
95
168
|
}
|
|
96
169
|
return 0;
|
|
97
170
|
}
|
|
98
|
-
const n =
|
|
171
|
+
const n = j(() => t((o) => {
|
|
99
172
|
var a, s;
|
|
100
173
|
if (o.devices) {
|
|
101
174
|
let l = (a = o.devices) == null ? void 0 : a.filter((c) => c.online);
|
|
@@ -105,7 +178,7 @@ const Eo = Re({
|
|
|
105
178
|
return 0;
|
|
106
179
|
}, e.countInfo));
|
|
107
180
|
return {
|
|
108
|
-
totalCount:
|
|
181
|
+
totalCount: j(() => t((o) => {
|
|
109
182
|
var a;
|
|
110
183
|
if (o.devices) {
|
|
111
184
|
let s = o.devices;
|
|
@@ -118,64 +191,64 @@ const Eo = Re({
|
|
|
118
191
|
};
|
|
119
192
|
}
|
|
120
193
|
});
|
|
121
|
-
const
|
|
194
|
+
const me = (e, t) => {
|
|
122
195
|
const n = e.__vccOpts || e;
|
|
123
196
|
for (const [r, o] of t)
|
|
124
197
|
n[r] = o;
|
|
125
198
|
return n;
|
|
126
|
-
},
|
|
127
|
-
function
|
|
128
|
-
return
|
|
199
|
+
}, Ro = { class: "root" }, Fo = { class: "count-show" };
|
|
200
|
+
function ko(e, t, n, r, o, a) {
|
|
201
|
+
return P(), k("div", Ro, [
|
|
129
202
|
oe(e.$slots, "default", {
|
|
130
203
|
total: e.totalCount,
|
|
131
204
|
online: e.onlineCount
|
|
132
205
|
}, void 0, !0),
|
|
133
|
-
|
|
206
|
+
C("span", Fo, ue(e.onlineCount) + "/" + ue(e.totalCount), 1)
|
|
134
207
|
]);
|
|
135
208
|
}
|
|
136
|
-
const
|
|
209
|
+
const dn = /* @__PURE__ */ me(Po, [["render", ko], ["__scopeId", "data-v-a063c331"]]), mn = Object.freeze(
|
|
137
210
|
{
|
|
138
211
|
left: 0,
|
|
139
212
|
top: 0,
|
|
140
213
|
width: 16,
|
|
141
214
|
height: 16
|
|
142
215
|
}
|
|
143
|
-
),
|
|
216
|
+
), gn = Object.freeze({
|
|
144
217
|
rotate: 0,
|
|
145
218
|
vFlip: !1,
|
|
146
219
|
hFlip: !1
|
|
147
|
-
}),
|
|
148
|
-
...
|
|
149
|
-
...
|
|
220
|
+
}), ct = Object.freeze({
|
|
221
|
+
...mn,
|
|
222
|
+
...gn
|
|
150
223
|
});
|
|
151
224
|
Object.freeze({
|
|
152
|
-
...
|
|
225
|
+
...ct,
|
|
153
226
|
body: "",
|
|
154
227
|
hidden: !1
|
|
155
228
|
});
|
|
156
229
|
({
|
|
157
|
-
...
|
|
230
|
+
...mn
|
|
158
231
|
});
|
|
159
|
-
const
|
|
232
|
+
const pn = Object.freeze({
|
|
160
233
|
width: null,
|
|
161
234
|
height: null
|
|
162
|
-
}),
|
|
163
|
-
...
|
|
164
|
-
...
|
|
235
|
+
}), hn = Object.freeze({
|
|
236
|
+
...pn,
|
|
237
|
+
...gn
|
|
165
238
|
});
|
|
166
|
-
function
|
|
239
|
+
function $o(e, t) {
|
|
167
240
|
const n = {
|
|
168
241
|
...e
|
|
169
242
|
};
|
|
170
243
|
for (const r in t) {
|
|
171
244
|
const o = t[r], a = typeof o;
|
|
172
|
-
r in
|
|
245
|
+
r in pn ? (o === null || o && (a === "string" || a === "number")) && (n[r] = o) : a === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
|
|
173
246
|
}
|
|
174
247
|
return n;
|
|
175
248
|
}
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
t.split(
|
|
249
|
+
const Mo = /[\s,]+/;
|
|
250
|
+
function Vo(e, t) {
|
|
251
|
+
t.split(Mo).forEach((n) => {
|
|
179
252
|
switch (n.trim()) {
|
|
180
253
|
case "horizontal":
|
|
181
254
|
e.hFlip = !0;
|
|
@@ -186,7 +259,7 @@ function Io(e, t) {
|
|
|
186
259
|
}
|
|
187
260
|
});
|
|
188
261
|
}
|
|
189
|
-
function
|
|
262
|
+
function Uo(e, t = 0) {
|
|
190
263
|
const n = e.replace(/^-?[0-9.]*/, "");
|
|
191
264
|
function r(o) {
|
|
192
265
|
for (; o < 0; )
|
|
@@ -212,19 +285,19 @@ function Lo(e, t = 0) {
|
|
|
212
285
|
}
|
|
213
286
|
return t;
|
|
214
287
|
}
|
|
215
|
-
const
|
|
216
|
-
function
|
|
288
|
+
const xo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Go = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
289
|
+
function Tt(e, t, n) {
|
|
217
290
|
if (t === 1)
|
|
218
291
|
return e;
|
|
219
292
|
if (n = n || 100, typeof e == "number")
|
|
220
293
|
return Math.ceil(e * t * n) / n;
|
|
221
294
|
if (typeof e != "string")
|
|
222
295
|
return e;
|
|
223
|
-
const r = e.split(
|
|
296
|
+
const r = e.split(xo);
|
|
224
297
|
if (r === null || !r.length)
|
|
225
298
|
return e;
|
|
226
299
|
const o = [];
|
|
227
|
-
let a = r.shift(), s =
|
|
300
|
+
let a = r.shift(), s = Go.test(a);
|
|
228
301
|
for (; ; ) {
|
|
229
302
|
if (s) {
|
|
230
303
|
const l = parseFloat(a);
|
|
@@ -236,12 +309,12 @@ function Nt(e, t, n) {
|
|
|
236
309
|
s = !s;
|
|
237
310
|
}
|
|
238
311
|
}
|
|
239
|
-
function
|
|
312
|
+
function Wo(e, t) {
|
|
240
313
|
const n = {
|
|
241
|
-
...
|
|
314
|
+
...ct,
|
|
242
315
|
...e
|
|
243
316
|
}, r = {
|
|
244
|
-
...
|
|
317
|
+
...hn,
|
|
245
318
|
...t
|
|
246
319
|
}, o = {
|
|
247
320
|
left: n.left,
|
|
@@ -251,113 +324,113 @@ function Do(e, t) {
|
|
|
251
324
|
};
|
|
252
325
|
let a = n.body;
|
|
253
326
|
[n, r].forEach((g) => {
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
|
|
327
|
+
const v = [], O = g.hFlip, E = g.vFlip;
|
|
328
|
+
let N = g.rotate;
|
|
329
|
+
O ? E ? N += 2 : (v.push(
|
|
257
330
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
258
|
-
),
|
|
331
|
+
), v.push("scale(-1 1)"), o.top = o.left = 0) : E && (v.push(
|
|
259
332
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
260
|
-
),
|
|
333
|
+
), v.push("scale(1 -1)"), o.top = o.left = 0);
|
|
261
334
|
let b;
|
|
262
|
-
switch (
|
|
335
|
+
switch (N < 0 && (N -= Math.floor(N / 4) * 4), N = N % 4, N) {
|
|
263
336
|
case 1:
|
|
264
|
-
b = o.height / 2 + o.top,
|
|
337
|
+
b = o.height / 2 + o.top, v.unshift(
|
|
265
338
|
"rotate(90 " + b.toString() + " " + b.toString() + ")"
|
|
266
339
|
);
|
|
267
340
|
break;
|
|
268
341
|
case 2:
|
|
269
|
-
|
|
342
|
+
v.unshift(
|
|
270
343
|
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
271
344
|
);
|
|
272
345
|
break;
|
|
273
346
|
case 3:
|
|
274
|
-
b = o.width / 2 + o.left,
|
|
347
|
+
b = o.width / 2 + o.left, v.unshift(
|
|
275
348
|
"rotate(-90 " + b.toString() + " " + b.toString() + ")"
|
|
276
349
|
);
|
|
277
350
|
break;
|
|
278
351
|
}
|
|
279
|
-
|
|
352
|
+
N % 2 === 1 && (o.left !== o.top && (b = o.left, o.left = o.top, o.top = b), o.width !== o.height && (b = o.width, o.width = o.height, o.height = b)), v.length && (a = '<g transform="' + v.join(" ") + '">' + a + "</g>");
|
|
280
353
|
});
|
|
281
354
|
const s = r.width, l = r.height, i = o.width, c = o.height;
|
|
282
|
-
let
|
|
283
|
-
return s === null ? (
|
|
355
|
+
let u, d;
|
|
356
|
+
return s === null ? (d = l === null ? "1em" : l === "auto" ? c : l, u = Tt(d, i / c)) : (u = s === "auto" ? i : s, d = l === null ? Tt(u, c / i) : l === "auto" ? c : l), {
|
|
284
357
|
attributes: {
|
|
285
|
-
width:
|
|
286
|
-
height:
|
|
358
|
+
width: u.toString(),
|
|
359
|
+
height: d.toString(),
|
|
287
360
|
viewBox: o.left.toString() + " " + o.top.toString() + " " + i.toString() + " " + c.toString()
|
|
288
361
|
},
|
|
289
362
|
body: a
|
|
290
363
|
};
|
|
291
364
|
}
|
|
292
|
-
const
|
|
293
|
-
let
|
|
294
|
-
function
|
|
365
|
+
const jo = /\sid="(\S+)"/g, Ho = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
366
|
+
let Bo = 0;
|
|
367
|
+
function Yo(e, t = Ho) {
|
|
295
368
|
const n = [];
|
|
296
369
|
let r;
|
|
297
|
-
for (; r =
|
|
370
|
+
for (; r = jo.exec(e); )
|
|
298
371
|
n.push(r[1]);
|
|
299
372
|
return n.length && n.forEach((o) => {
|
|
300
|
-
const a = typeof t == "function" ? t(o) : t + (
|
|
373
|
+
const a = typeof t == "function" ? t(o) : t + (Bo++).toString(), s = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
301
374
|
e = e.replace(
|
|
302
375
|
new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
|
|
303
376
|
"$1" + a + "$3"
|
|
304
377
|
);
|
|
305
378
|
}), e;
|
|
306
379
|
}
|
|
307
|
-
function
|
|
380
|
+
function zo(e, t) {
|
|
308
381
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
309
382
|
for (const r in t)
|
|
310
383
|
n += " " + r + '="' + t[r] + '"';
|
|
311
384
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
312
385
|
}
|
|
313
|
-
function
|
|
386
|
+
function Ko(e) {
|
|
314
387
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
315
388
|
}
|
|
316
|
-
function
|
|
317
|
-
return 'url("data:image/svg+xml,' +
|
|
389
|
+
function Xo(e) {
|
|
390
|
+
return 'url("data:image/svg+xml,' + Ko(e) + '")';
|
|
318
391
|
}
|
|
319
|
-
const
|
|
320
|
-
...
|
|
392
|
+
const yt = {
|
|
393
|
+
...hn,
|
|
321
394
|
inline: !1
|
|
322
|
-
},
|
|
395
|
+
}, Qo = {
|
|
323
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
324
397
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
325
398
|
"aria-hidden": !0,
|
|
326
399
|
role: "img"
|
|
327
|
-
},
|
|
400
|
+
}, Jo = {
|
|
328
401
|
display: "inline-block"
|
|
329
|
-
},
|
|
402
|
+
}, Qe = {
|
|
330
403
|
backgroundColor: "currentColor"
|
|
331
|
-
},
|
|
404
|
+
}, vn = {
|
|
332
405
|
backgroundColor: "transparent"
|
|
333
|
-
},
|
|
406
|
+
}, It = {
|
|
334
407
|
Image: "var(--svg)",
|
|
335
408
|
Repeat: "no-repeat",
|
|
336
409
|
Size: "100% 100%"
|
|
337
|
-
},
|
|
338
|
-
webkitMask:
|
|
339
|
-
mask:
|
|
340
|
-
background:
|
|
410
|
+
}, Lt = {
|
|
411
|
+
webkitMask: Qe,
|
|
412
|
+
mask: Qe,
|
|
413
|
+
background: vn
|
|
341
414
|
};
|
|
342
|
-
for (const e in
|
|
343
|
-
const t =
|
|
344
|
-
for (const n in
|
|
345
|
-
t[e + n] =
|
|
415
|
+
for (const e in Lt) {
|
|
416
|
+
const t = Lt[e];
|
|
417
|
+
for (const n in It)
|
|
418
|
+
t[e + n] = It[n];
|
|
346
419
|
}
|
|
347
|
-
const
|
|
420
|
+
const Fe = {};
|
|
348
421
|
["horizontal", "vertical"].forEach((e) => {
|
|
349
422
|
const t = e.slice(0, 1) + "Flip";
|
|
350
|
-
|
|
423
|
+
Fe[e + "-flip"] = t, Fe[e.slice(0, 1) + "-flip"] = t, Fe[e + "Flip"] = t;
|
|
351
424
|
});
|
|
352
|
-
function
|
|
425
|
+
function St(e) {
|
|
353
426
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
354
427
|
}
|
|
355
|
-
const
|
|
356
|
-
const n =
|
|
357
|
-
for (let
|
|
358
|
-
const
|
|
359
|
-
if (
|
|
360
|
-
switch (
|
|
428
|
+
const qo = (e, t) => {
|
|
429
|
+
const n = $o(yt, t), r = { ...Qo }, o = t.mode || "svg", a = {}, s = t.style, l = typeof s == "object" && !(s instanceof Array) ? s : {};
|
|
430
|
+
for (let O in t) {
|
|
431
|
+
const E = t[O];
|
|
432
|
+
if (E !== void 0)
|
|
433
|
+
switch (O) {
|
|
361
434
|
case "icon":
|
|
362
435
|
case "style":
|
|
363
436
|
case "onLoad":
|
|
@@ -366,72 +439,72 @@ const Uo = (e, t) => {
|
|
|
366
439
|
case "inline":
|
|
367
440
|
case "hFlip":
|
|
368
441
|
case "vFlip":
|
|
369
|
-
n[
|
|
442
|
+
n[O] = E === !0 || E === "true" || E === 1;
|
|
370
443
|
break;
|
|
371
444
|
case "flip":
|
|
372
|
-
typeof
|
|
445
|
+
typeof E == "string" && Vo(n, E);
|
|
373
446
|
break;
|
|
374
447
|
case "color":
|
|
375
|
-
a.color =
|
|
448
|
+
a.color = E;
|
|
376
449
|
break;
|
|
377
450
|
case "rotate":
|
|
378
|
-
typeof
|
|
451
|
+
typeof E == "string" ? n[O] = Uo(E) : typeof E == "number" && (n[O] = E);
|
|
379
452
|
break;
|
|
380
453
|
case "ariaHidden":
|
|
381
454
|
case "aria-hidden":
|
|
382
|
-
|
|
455
|
+
E !== !0 && E !== "true" && delete r["aria-hidden"];
|
|
383
456
|
break;
|
|
384
457
|
default: {
|
|
385
|
-
const
|
|
386
|
-
|
|
458
|
+
const N = Fe[O];
|
|
459
|
+
N ? (E === !0 || E === "true" || E === 1) && (n[N] = !0) : yt[O] === void 0 && (r[O] = E);
|
|
387
460
|
}
|
|
388
461
|
}
|
|
389
462
|
}
|
|
390
|
-
const i =
|
|
463
|
+
const i = Wo(e, n), c = i.attributes;
|
|
391
464
|
if (n.inline && (a.verticalAlign = "-0.125em"), o === "svg") {
|
|
392
465
|
r.style = {
|
|
393
466
|
...a,
|
|
394
467
|
...l
|
|
395
468
|
}, Object.assign(r, c);
|
|
396
|
-
let
|
|
397
|
-
return typeof
|
|
469
|
+
let O = 0, E = t.id;
|
|
470
|
+
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = Yo(i.body, E ? () => E + "ID" + O++ : "iconifyVue"), ke("svg", r);
|
|
398
471
|
}
|
|
399
|
-
const { body:
|
|
472
|
+
const { body: u, width: d, height: _ } = e, g = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), v = zo(u, {
|
|
400
473
|
...c,
|
|
401
|
-
width:
|
|
474
|
+
width: d + "",
|
|
402
475
|
height: _ + ""
|
|
403
476
|
});
|
|
404
477
|
return r.style = {
|
|
405
478
|
...a,
|
|
406
|
-
"--svg":
|
|
407
|
-
width:
|
|
408
|
-
height:
|
|
409
|
-
...
|
|
410
|
-
...g ?
|
|
479
|
+
"--svg": Xo(v),
|
|
480
|
+
width: St(c.width),
|
|
481
|
+
height: St(c.height),
|
|
482
|
+
...Jo,
|
|
483
|
+
...g ? Qe : vn,
|
|
411
484
|
...l
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
function
|
|
415
|
-
|
|
485
|
+
}, ke("span", r);
|
|
486
|
+
}, En = /* @__PURE__ */ Object.create(null);
|
|
487
|
+
function Ne(e, t) {
|
|
488
|
+
En[e] = t;
|
|
416
489
|
}
|
|
417
|
-
const
|
|
490
|
+
const Zo = _e({
|
|
418
491
|
inheritAttrs: !1,
|
|
419
492
|
render() {
|
|
420
|
-
const e = this.$attrs, t = e.icon, n = typeof t == "string" ?
|
|
421
|
-
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
422
|
-
...
|
|
493
|
+
const e = this.$attrs, t = e.icon, n = typeof t == "string" ? En[t] : typeof t == "object" ? t : null;
|
|
494
|
+
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : qo({
|
|
495
|
+
...ct,
|
|
423
496
|
...n
|
|
424
497
|
}, e);
|
|
425
498
|
}
|
|
426
499
|
});
|
|
427
|
-
var
|
|
500
|
+
var er = Object.defineProperty, tr = Object.defineProperties, nr = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, Dt = (e, t, n) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ct = (e, t) => {
|
|
428
501
|
for (var n in t || (t = {}))
|
|
429
|
-
|
|
430
|
-
if (
|
|
431
|
-
for (var n of
|
|
432
|
-
|
|
502
|
+
or.call(t, n) && Dt(e, n, t[n]);
|
|
503
|
+
if (wt)
|
|
504
|
+
for (var n of wt(t))
|
|
505
|
+
rr.call(t, n) && Dt(e, n, t[n]);
|
|
433
506
|
return e;
|
|
434
|
-
},
|
|
507
|
+
}, sr = (e, t) => tr(e, nr(t)), ar = (e, t, n) => new Promise((r, o) => {
|
|
435
508
|
var a = (i) => {
|
|
436
509
|
try {
|
|
437
510
|
l(n.next(i));
|
|
@@ -447,7 +520,7 @@ var Wo = Object.defineProperty, xo = Object.defineProperties, Go = Object.getOwn
|
|
|
447
520
|
}, l = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(a, s);
|
|
448
521
|
l((n = n.apply(e, t)).next());
|
|
449
522
|
});
|
|
450
|
-
const
|
|
523
|
+
const lr = {
|
|
451
524
|
name: "VirtualList",
|
|
452
525
|
props: {
|
|
453
526
|
listData: {
|
|
@@ -461,22 +534,22 @@ const Yo = {
|
|
|
461
534
|
},
|
|
462
535
|
setup(e) {
|
|
463
536
|
const t = {
|
|
464
|
-
screenHeight:
|
|
465
|
-
startOffset:
|
|
466
|
-
start:
|
|
467
|
-
end:
|
|
468
|
-
}, n =
|
|
469
|
-
listHeight:
|
|
470
|
-
visibleCount:
|
|
471
|
-
getTransform:
|
|
472
|
-
visibleData:
|
|
537
|
+
screenHeight: G(0),
|
|
538
|
+
startOffset: G(0),
|
|
539
|
+
start: G(0),
|
|
540
|
+
end: G(0)
|
|
541
|
+
}, n = G(), r = {
|
|
542
|
+
listHeight: j(() => e.listData.length * e.itemSize),
|
|
543
|
+
visibleCount: j(() => Math.ceil(t.screenHeight.value / e.itemSize)),
|
|
544
|
+
getTransform: j(() => `translate3d(0,${t.startOffset.value}px,0)`),
|
|
545
|
+
visibleData: j(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
|
|
473
546
|
};
|
|
474
|
-
return
|
|
547
|
+
return Ct(sr(Ct({}, r), {
|
|
475
548
|
virList: n
|
|
476
549
|
}), t);
|
|
477
550
|
},
|
|
478
551
|
mounted() {
|
|
479
|
-
this.init(),
|
|
552
|
+
this.init(), $e(() => this.listData.length, () => ar(this, null, function* () {
|
|
480
553
|
yield this.$nextTick(), this.init();
|
|
481
554
|
}));
|
|
482
555
|
},
|
|
@@ -492,46 +565,46 @@ const Yo = {
|
|
|
492
565
|
}
|
|
493
566
|
}
|
|
494
567
|
};
|
|
495
|
-
function
|
|
496
|
-
return
|
|
568
|
+
function ir(e, t, n, r, o, a) {
|
|
569
|
+
return P(), k("div", {
|
|
497
570
|
ref: "virList",
|
|
498
571
|
class: "infinite-list-container",
|
|
499
572
|
onScroll: t[0] || (t[0] = (s) => a.scrollEvent())
|
|
500
573
|
}, [
|
|
501
|
-
|
|
574
|
+
C("div", {
|
|
502
575
|
class: "infinite-list-phantom",
|
|
503
|
-
style:
|
|
576
|
+
style: Ie({ height: e.listHeight + "px" })
|
|
504
577
|
}, null, 4),
|
|
505
|
-
|
|
578
|
+
C("div", {
|
|
506
579
|
class: "infinite-list",
|
|
507
|
-
style:
|
|
580
|
+
style: Ie({ transform: e.getTransform })
|
|
508
581
|
}, [
|
|
509
|
-
(
|
|
582
|
+
(P(!0), k(de, null, De(e.visibleData, (s) => (P(), k("div", {
|
|
510
583
|
ref_for: !0,
|
|
511
584
|
ref: "items",
|
|
512
585
|
class: "infinite-list-item",
|
|
513
586
|
key: s.id,
|
|
514
|
-
style:
|
|
587
|
+
style: Ie({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
|
|
515
588
|
}, [
|
|
516
589
|
oe(e.$slots, "default", { data: s }, void 0, !0)
|
|
517
590
|
], 4))), 128))
|
|
518
591
|
], 4)
|
|
519
592
|
], 544);
|
|
520
593
|
}
|
|
521
|
-
const
|
|
522
|
-
var
|
|
594
|
+
const cr = /* @__PURE__ */ me(lr, [["render", ir], ["__scopeId", "data-v-12d2a294"]]);
|
|
595
|
+
var ur = Object.defineProperty, fr = Object.defineProperties, _r = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Pt = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, gr = (e, t) => {
|
|
523
596
|
for (var n in t || (t = {}))
|
|
524
|
-
|
|
525
|
-
if (
|
|
526
|
-
for (var n of
|
|
527
|
-
|
|
597
|
+
dr.call(t, n) && Pt(e, n, t[n]);
|
|
598
|
+
if (At)
|
|
599
|
+
for (var n of At(t))
|
|
600
|
+
mr.call(t, n) && Pt(e, n, t[n]);
|
|
528
601
|
return e;
|
|
529
|
-
},
|
|
530
|
-
const
|
|
602
|
+
}, pr = (e, t) => fr(e, _r(t));
|
|
603
|
+
const hr = _e({
|
|
531
604
|
components: {
|
|
532
|
-
VirtualList:
|
|
533
|
-
CountShow:
|
|
534
|
-
Icon:
|
|
605
|
+
VirtualList: cr,
|
|
606
|
+
CountShow: dn,
|
|
607
|
+
Icon: Zo
|
|
535
608
|
},
|
|
536
609
|
name: "group-show",
|
|
537
610
|
props: {
|
|
@@ -539,48 +612,48 @@ const or = Re({
|
|
|
539
612
|
controlParams: Object
|
|
540
613
|
},
|
|
541
614
|
setup(e, t) {
|
|
542
|
-
const n =
|
|
543
|
-
filterDevice(
|
|
544
|
-
var
|
|
545
|
-
let
|
|
546
|
-
(
|
|
547
|
-
let
|
|
548
|
-
return (
|
|
615
|
+
const n = G(), r = fn("theme"), o = {
|
|
616
|
+
filterDevice(u) {
|
|
617
|
+
var d, _, g, v, O;
|
|
618
|
+
let E = !0;
|
|
619
|
+
(d = e.controlParams) != null && d.searchStr && (E = u.name.indexOf((_ = e.controlParams) == null ? void 0 : _.searchStr) >= 0 || u.id.indexOf((g = e.controlParams) == null ? void 0 : g.searchStr) >= 0 || typeof u.user == "string" && u.user.indexOf((v = e.controlParams) == null ? void 0 : v.searchStr) >= 0);
|
|
620
|
+
let N = !0;
|
|
621
|
+
return (O = e.controlParams) != null && O.onlyShowOnline && (N = u.online), E && N;
|
|
549
622
|
},
|
|
550
|
-
deviceText(
|
|
551
|
-
return
|
|
623
|
+
deviceText(u) {
|
|
624
|
+
return u.user ? u.name.length > 0 ? `${u.user} [${u.id}] [${u.name}]` : `${u.user} [${u.id}] []` : u.name.length > 0 ? `${u.name} [${u.id}]` : ` [${u.id}]`;
|
|
552
625
|
},
|
|
553
|
-
groupText(
|
|
554
|
-
if (
|
|
555
|
-
return
|
|
626
|
+
groupText(u) {
|
|
627
|
+
if (u)
|
|
628
|
+
return u.name.length > 0 ? u.name : u.id;
|
|
556
629
|
}
|
|
557
630
|
}, a = {
|
|
558
|
-
filteredDevices:
|
|
559
|
-
var
|
|
560
|
-
const
|
|
561
|
-
return _.filter((
|
|
631
|
+
filteredDevices: j(() => {
|
|
632
|
+
var u;
|
|
633
|
+
const d = (u = e.deviceGroup) == null ? void 0 : u.devices, _ = d && d.filter((v) => o.filterDevice(v)) || [];
|
|
634
|
+
return _.filter((v) => v.online).concat(_.filter((v) => !v.online));
|
|
562
635
|
})
|
|
563
|
-
}, s =
|
|
564
|
-
function l(
|
|
565
|
-
if (
|
|
636
|
+
}, s = j(() => a.filteredDevices.value.length > 10 ? "400px" : `${a.filteredDevices.value.length * 40}px`);
|
|
637
|
+
function l(u, d) {
|
|
638
|
+
if (d.length == 0)
|
|
566
639
|
return !0;
|
|
567
640
|
let _ = !1;
|
|
568
|
-
if ((
|
|
569
|
-
for (let g = 0; g <
|
|
570
|
-
if (l(
|
|
641
|
+
if ((u == null ? void 0 : u.name.indexOf(d)) > 0 && (_ = !0), _ || (_ = (u == null ? void 0 : u.devices.find((g) => g.name.indexOf(d) >= 0 || g.id.indexOf(d) >= 0 || g.user && g.user.indexOf(d) >= 0)) != null), !_) {
|
|
642
|
+
for (let g = 0; g < u.items.length; g++)
|
|
643
|
+
if (l(u.items[g], d))
|
|
571
644
|
return !0;
|
|
572
645
|
}
|
|
573
646
|
return _;
|
|
574
647
|
}
|
|
575
|
-
const i =
|
|
648
|
+
const i = j(() => {
|
|
576
649
|
if (e.controlParams) {
|
|
577
|
-
const
|
|
650
|
+
const u = e.controlParams.searchStr;
|
|
578
651
|
if (e.deviceGroup)
|
|
579
|
-
return l(e.deviceGroup,
|
|
652
|
+
return l(e.deviceGroup, u);
|
|
580
653
|
}
|
|
581
654
|
return !1;
|
|
582
|
-
}), c =
|
|
583
|
-
return
|
|
655
|
+
}), c = G(!1);
|
|
656
|
+
return pr(gr({
|
|
584
657
|
innerUtils: o
|
|
585
658
|
}, a), {
|
|
586
659
|
devicePanelHeight: s,
|
|
@@ -591,105 +664,105 @@ const or = Re({
|
|
|
591
664
|
});
|
|
592
665
|
}
|
|
593
666
|
});
|
|
594
|
-
const
|
|
667
|
+
const vr = {
|
|
595
668
|
key: 0,
|
|
596
669
|
class: "head-op"
|
|
597
|
-
},
|
|
670
|
+
}, Er = {
|
|
598
671
|
key: 1,
|
|
599
672
|
style: { display: "inline-block", width: "25px" }
|
|
600
|
-
},
|
|
673
|
+
}, Or = {
|
|
601
674
|
key: 0,
|
|
602
675
|
class: "group-head-count"
|
|
603
|
-
},
|
|
676
|
+
}, Nr = ["title"], br = { class: "group-slot" }, Tr = {
|
|
604
677
|
key: 0,
|
|
605
678
|
style: { "margin-left": "26px" }
|
|
606
|
-
},
|
|
607
|
-
function
|
|
679
|
+
}, yr = ["title"], Ir = { class: "device-slot" };
|
|
680
|
+
function Lr(e, t, n, r, o, a) {
|
|
608
681
|
var s;
|
|
609
|
-
const l =
|
|
610
|
-
return e.showGroup ? (
|
|
682
|
+
const l = ie("Icon"), i = ie("CountShow"), c = ie("group-show"), u = ie("VirtualList");
|
|
683
|
+
return e.showGroup ? (P(), k("div", {
|
|
611
684
|
key: 0,
|
|
612
|
-
class:
|
|
685
|
+
class: Xe("group " + e.theme)
|
|
613
686
|
}, [
|
|
614
|
-
|
|
687
|
+
se(i, {
|
|
615
688
|
countInfo: e.deviceGroup,
|
|
616
689
|
controlParams: e.controlParams,
|
|
617
690
|
ref: "countRef"
|
|
618
691
|
}, {
|
|
619
|
-
default:
|
|
620
|
-
var g,
|
|
692
|
+
default: ce(({ online: d, total: _ }) => {
|
|
693
|
+
var g, v;
|
|
621
694
|
return [
|
|
622
|
-
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (
|
|
623
|
-
|
|
695
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (P(), k("span", vr, [
|
|
696
|
+
se(l, {
|
|
624
697
|
icon: e.bShow ? "minus" : "plus",
|
|
625
698
|
width: "20",
|
|
626
|
-
onClick: t[0] || (t[0] = (
|
|
699
|
+
onClick: t[0] || (t[0] = (O) => e.bShow = !e.bShow),
|
|
627
700
|
class: "handle-ls-svg"
|
|
628
701
|
}, null, 8, ["icon"])
|
|
629
|
-
])) : (
|
|
630
|
-
|
|
702
|
+
])) : (P(), k("span", Er)),
|
|
703
|
+
C("span", {
|
|
631
704
|
class: "group-head-db-click",
|
|
632
|
-
onDblclick: t[1] || (t[1] = (
|
|
705
|
+
onDblclick: t[1] || (t[1] = (O) => e.bShow = !e.bShow)
|
|
633
706
|
}, [
|
|
634
|
-
|
|
707
|
+
se(l, {
|
|
635
708
|
icon: e.bShow ? "group" : "group-closed",
|
|
636
709
|
width: "24",
|
|
637
710
|
class: "group-avatar"
|
|
638
711
|
}, null, 8, ["icon"]),
|
|
639
|
-
e.bShow ?
|
|
640
|
-
|
|
712
|
+
e.bShow ? Be("", !0) : (P(), k("span", Or, ue((g = e.deviceGroup) == null ? void 0 : g.items.length), 1)),
|
|
713
|
+
C("span", {
|
|
641
714
|
class: "group-name",
|
|
642
|
-
title: (
|
|
643
|
-
},
|
|
715
|
+
title: (v = e.deviceGroup) == null ? void 0 : v.name
|
|
716
|
+
}, ue(e.innerUtils.groupText(e.deviceGroup)), 9, Nr)
|
|
644
717
|
], 32),
|
|
645
|
-
|
|
718
|
+
C("div", br, [
|
|
646
719
|
oe(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
|
|
647
720
|
])
|
|
648
721
|
];
|
|
649
722
|
}),
|
|
650
723
|
_: 3
|
|
651
724
|
}, 8, ["countInfo", "controlParams"]),
|
|
652
|
-
e.bShow ? (
|
|
653
|
-
(
|
|
725
|
+
e.bShow ? (P(), k("div", Tr, [
|
|
726
|
+
(P(!0), k(de, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (d, _) => (P(), _n(c, {
|
|
654
727
|
key: _,
|
|
655
|
-
deviceGroup:
|
|
728
|
+
deviceGroup: d,
|
|
656
729
|
controlParams: e.controlParams
|
|
657
730
|
}, {
|
|
658
|
-
group:
|
|
731
|
+
group: ce(({ group: g }) => [
|
|
659
732
|
oe(e.$slots, "group", { group: g }, void 0, !0)
|
|
660
733
|
]),
|
|
661
|
-
device:
|
|
734
|
+
device: ce(({ device: g, group: v }) => [
|
|
662
735
|
oe(e.$slots, "device", {
|
|
663
736
|
device: g,
|
|
664
|
-
group:
|
|
737
|
+
group: v
|
|
665
738
|
}, void 0, !0)
|
|
666
739
|
]),
|
|
667
740
|
_: 2
|
|
668
741
|
}, 1032, ["deviceGroup", "controlParams"]))), 128)),
|
|
669
|
-
|
|
742
|
+
C("div", {
|
|
670
743
|
class: "device-show-div",
|
|
671
|
-
style:
|
|
744
|
+
style: Ie(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40}px`}`)
|
|
672
745
|
}, [
|
|
673
|
-
|
|
746
|
+
se(u, {
|
|
674
747
|
"list-data": e.filteredDevices,
|
|
675
748
|
"item-size": 40
|
|
676
749
|
}, {
|
|
677
|
-
default:
|
|
678
|
-
|
|
679
|
-
class:
|
|
750
|
+
default: ce(({ data: d }) => [
|
|
751
|
+
C("div", {
|
|
752
|
+
class: Xe(d.online && "online-device")
|
|
680
753
|
}, [
|
|
681
|
-
|
|
754
|
+
se(l, {
|
|
682
755
|
icon: "user",
|
|
683
756
|
width: "16",
|
|
684
757
|
class: "device-avatar"
|
|
685
758
|
}),
|
|
686
|
-
|
|
687
|
-
title: e.innerUtils.deviceText(
|
|
759
|
+
C("span", {
|
|
760
|
+
title: e.innerUtils.deviceText(d),
|
|
688
761
|
class: "device-name"
|
|
689
|
-
},
|
|
690
|
-
|
|
762
|
+
}, ue(e.innerUtils.deviceText(d)), 9, yr),
|
|
763
|
+
C("div", Ir, [
|
|
691
764
|
oe(e.$slots, "device", {
|
|
692
|
-
device:
|
|
765
|
+
device: d,
|
|
693
766
|
group: e.deviceGroup
|
|
694
767
|
}, void 0, !0)
|
|
695
768
|
])
|
|
@@ -698,30 +771,30 @@ function _r(e, t, n, r, o, a) {
|
|
|
698
771
|
_: 3
|
|
699
772
|
}, 8, ["list-data"])
|
|
700
773
|
], 4)
|
|
701
|
-
])) :
|
|
702
|
-
], 2)) :
|
|
774
|
+
])) : Be("", !0)
|
|
775
|
+
], 2)) : Be("", !0);
|
|
703
776
|
}
|
|
704
|
-
const
|
|
777
|
+
const Sr = /* @__PURE__ */ me(hr, [["render", Lr], ["__scopeId", "data-v-93cfc8dc"]]), wr = {
|
|
705
778
|
width: 1024,
|
|
706
779
|
height: 1024,
|
|
707
780
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
708
|
-
},
|
|
781
|
+
}, Dr = {
|
|
709
782
|
width: 1024,
|
|
710
783
|
height: 1024,
|
|
711
784
|
body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
|
|
712
|
-
},
|
|
785
|
+
}, Cr = {
|
|
713
786
|
width: 1024,
|
|
714
787
|
height: 1024,
|
|
715
788
|
body: '<path fill="currentColor" d="M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"/>'
|
|
716
|
-
},
|
|
789
|
+
}, Ar = {
|
|
717
790
|
width: 1024,
|
|
718
791
|
height: 1024,
|
|
719
792
|
body: '<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'
|
|
720
|
-
},
|
|
793
|
+
}, Pr = {
|
|
721
794
|
width: 1024,
|
|
722
795
|
height: 1024,
|
|
723
796
|
body: '<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'
|
|
724
|
-
},
|
|
797
|
+
}, Rr = {
|
|
725
798
|
width: 1024,
|
|
726
799
|
height: 1024,
|
|
727
800
|
body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
|
|
@@ -731,52 +804,52 @@ const mr = /* @__PURE__ */ ke(or, [["render", _r], ["__scopeId", "data-v-93cfc8d
|
|
|
731
804
|
* (c) 2022 kazuya kawaguchi
|
|
732
805
|
* Released under the MIT License.
|
|
733
806
|
*/
|
|
734
|
-
const
|
|
735
|
-
let
|
|
807
|
+
const te = typeof window < "u";
|
|
808
|
+
let X, fe;
|
|
736
809
|
if (process.env.NODE_ENV !== "production") {
|
|
737
|
-
const e =
|
|
738
|
-
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (
|
|
810
|
+
const e = te && window.performance;
|
|
811
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (X = (t) => e.mark(t), fe = (t, n, r) => {
|
|
739
812
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
740
813
|
});
|
|
741
814
|
}
|
|
742
|
-
const
|
|
743
|
-
function
|
|
744
|
-
return t.length === 1 &&
|
|
815
|
+
const Fr = /\{([0-9a-zA-Z]+)\}/g;
|
|
816
|
+
function ut(e, ...t) {
|
|
817
|
+
return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Fr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
745
818
|
}
|
|
746
|
-
const
|
|
747
|
-
function
|
|
819
|
+
const kr = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ne = (e) => kr ? Symbol(e) : e, $r = (e, t, n) => Mr({ l: e, k: t, s: n }), Mr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), M = (e) => typeof e == "number" && isFinite(e), Vr = (e) => dt(e) === "[object Date]", Me = (e) => dt(e) === "[object RegExp]", xe = (e) => y(e) && Object.keys(e).length === 0;
|
|
820
|
+
function be(e, t) {
|
|
748
821
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
749
822
|
}
|
|
750
|
-
const
|
|
751
|
-
let
|
|
752
|
-
const
|
|
753
|
-
function
|
|
823
|
+
const H = Object.assign;
|
|
824
|
+
let Rt;
|
|
825
|
+
const ft = () => Rt || (Rt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
826
|
+
function Ft(e) {
|
|
754
827
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
755
828
|
}
|
|
756
|
-
const
|
|
757
|
-
function
|
|
758
|
-
return
|
|
829
|
+
const Ur = Object.prototype.hasOwnProperty;
|
|
830
|
+
function _t(e, t) {
|
|
831
|
+
return Ur.call(e, t);
|
|
759
832
|
}
|
|
760
|
-
const
|
|
761
|
-
function
|
|
833
|
+
const R = Array.isArray, $ = (e) => typeof e == "function", h = (e) => typeof e == "string", A = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", On = Object.prototype.toString, dt = (e) => On.call(e), y = (e) => dt(e) === "[object Object]", xr = (e) => e == null ? "" : R(e) || y(e) && e.toString === On ? JSON.stringify(e, null, 2) : String(e), kt = 2;
|
|
834
|
+
function Gr(e, t = 0, n = e.length) {
|
|
762
835
|
const r = e.split(/\r?\n/);
|
|
763
836
|
let o = 0;
|
|
764
837
|
const a = [];
|
|
765
838
|
for (let s = 0; s < r.length; s++)
|
|
766
839
|
if (o += r[s].length + 1, o >= t) {
|
|
767
|
-
for (let l = s -
|
|
840
|
+
for (let l = s - kt; l <= s + kt || n > o; l++) {
|
|
768
841
|
if (l < 0 || l >= r.length)
|
|
769
842
|
continue;
|
|
770
843
|
const i = l + 1;
|
|
771
844
|
a.push(`${i}${" ".repeat(3 - String(i).length)}| ${r[l]}`);
|
|
772
845
|
const c = r[l].length;
|
|
773
846
|
if (l === s) {
|
|
774
|
-
const
|
|
775
|
-
a.push(" | " + " ".repeat(
|
|
847
|
+
const u = t - (o - c) + 1, d = Math.max(1, n > o ? c - u : n - t);
|
|
848
|
+
a.push(" | " + " ".repeat(u) + "^".repeat(d));
|
|
776
849
|
} else if (l > s) {
|
|
777
850
|
if (n > o) {
|
|
778
|
-
const
|
|
779
|
-
a.push(" | " + "^".repeat(
|
|
851
|
+
const u = Math.max(Math.min(n - o, c), 1);
|
|
852
|
+
a.push(" | " + "^".repeat(u));
|
|
780
853
|
}
|
|
781
854
|
o += c + 1;
|
|
782
855
|
}
|
|
@@ -786,7 +859,7 @@ function yr(e, t = 0, n = e.length) {
|
|
|
786
859
|
return a.join(`
|
|
787
860
|
`);
|
|
788
861
|
}
|
|
789
|
-
function
|
|
862
|
+
function Nn() {
|
|
790
863
|
const e = /* @__PURE__ */ new Map();
|
|
791
864
|
return {
|
|
792
865
|
events: e,
|
|
@@ -808,7 +881,7 @@ function dn() {
|
|
|
808
881
|
* (c) 2022 kazuya kawaguchi
|
|
809
882
|
* Released under the MIT License.
|
|
810
883
|
*/
|
|
811
|
-
const
|
|
884
|
+
const x = {
|
|
812
885
|
EXPECTED_TOKEN: 1,
|
|
813
886
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
814
887
|
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
@@ -824,24 +897,24 @@ const M = {
|
|
|
824
897
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
825
898
|
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
826
899
|
__EXTEND_POINT__: 15
|
|
827
|
-
},
|
|
828
|
-
[
|
|
829
|
-
[
|
|
830
|
-
[
|
|
831
|
-
[
|
|
832
|
-
[
|
|
833
|
-
[
|
|
834
|
-
[
|
|
835
|
-
[
|
|
836
|
-
[
|
|
837
|
-
[
|
|
838
|
-
[
|
|
839
|
-
[
|
|
840
|
-
[
|
|
841
|
-
[
|
|
900
|
+
}, Wr = {
|
|
901
|
+
[x.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
902
|
+
[x.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
903
|
+
[x.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
904
|
+
[x.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
905
|
+
[x.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
906
|
+
[x.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
907
|
+
[x.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
908
|
+
[x.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
909
|
+
[x.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
910
|
+
[x.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
911
|
+
[x.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
912
|
+
[x.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
913
|
+
[x.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
914
|
+
[x.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
842
915
|
};
|
|
843
|
-
function
|
|
844
|
-
const { domain: r, messages: o, args: a } = n, s = process.env.NODE_ENV !== "production" ?
|
|
916
|
+
function bn(e, t, n = {}) {
|
|
917
|
+
const { domain: r, messages: o, args: a } = n, s = process.env.NODE_ENV !== "production" ? ut((o || Wr)[e] || "", ...a || []) : e, l = new SyntaxError(String(s));
|
|
845
918
|
return l.code = e, t && (l.location = t), l.domain = r, l;
|
|
846
919
|
}
|
|
847
920
|
/*!
|
|
@@ -849,7 +922,7 @@ function gn(e, t, n = {}) {
|
|
|
849
922
|
* (c) 2022 kazuya kawaguchi
|
|
850
923
|
* Released under the MIT License.
|
|
851
924
|
*/
|
|
852
|
-
const
|
|
925
|
+
const Tn = {
|
|
853
926
|
I18nInit: "i18n:init",
|
|
854
927
|
FunctionTranslate: "function:translate"
|
|
855
928
|
};
|
|
@@ -858,25 +931,25 @@ const pn = {
|
|
|
858
931
|
* (c) 2022 kazuya kawaguchi
|
|
859
932
|
* Released under the MIT License.
|
|
860
933
|
*/
|
|
861
|
-
const
|
|
862
|
-
|
|
934
|
+
const ae = [];
|
|
935
|
+
ae[0] = {
|
|
863
936
|
w: [0],
|
|
864
937
|
i: [3, 0],
|
|
865
938
|
["["]: [4],
|
|
866
939
|
o: [7]
|
|
867
940
|
};
|
|
868
|
-
|
|
941
|
+
ae[1] = {
|
|
869
942
|
w: [1],
|
|
870
943
|
["."]: [2],
|
|
871
944
|
["["]: [4],
|
|
872
945
|
o: [7]
|
|
873
946
|
};
|
|
874
|
-
|
|
947
|
+
ae[2] = {
|
|
875
948
|
w: [2],
|
|
876
949
|
i: [3, 0],
|
|
877
950
|
[0]: [3, 0]
|
|
878
951
|
};
|
|
879
|
-
|
|
952
|
+
ae[3] = {
|
|
880
953
|
i: [3, 0],
|
|
881
954
|
[0]: [3, 0],
|
|
882
955
|
w: [1, 1],
|
|
@@ -884,7 +957,7 @@ re[3] = {
|
|
|
884
957
|
["["]: [4, 1],
|
|
885
958
|
o: [7, 1]
|
|
886
959
|
};
|
|
887
|
-
|
|
960
|
+
ae[4] = {
|
|
888
961
|
["'"]: [5, 0],
|
|
889
962
|
['"']: [6, 0],
|
|
890
963
|
["["]: [
|
|
@@ -895,25 +968,25 @@ re[4] = {
|
|
|
895
968
|
o: 8,
|
|
896
969
|
l: [4, 0]
|
|
897
970
|
};
|
|
898
|
-
|
|
971
|
+
ae[5] = {
|
|
899
972
|
["'"]: [4, 0],
|
|
900
973
|
o: 8,
|
|
901
974
|
l: [5, 0]
|
|
902
975
|
};
|
|
903
|
-
|
|
976
|
+
ae[6] = {
|
|
904
977
|
['"']: [4, 0],
|
|
905
978
|
o: 8,
|
|
906
979
|
l: [6, 0]
|
|
907
980
|
};
|
|
908
|
-
const
|
|
909
|
-
function
|
|
910
|
-
return
|
|
981
|
+
const jr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
982
|
+
function Hr(e) {
|
|
983
|
+
return jr.test(e);
|
|
911
984
|
}
|
|
912
|
-
function
|
|
985
|
+
function Br(e) {
|
|
913
986
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
914
987
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
915
988
|
}
|
|
916
|
-
function
|
|
989
|
+
function Yr(e) {
|
|
917
990
|
if (e == null)
|
|
918
991
|
return "o";
|
|
919
992
|
switch (e.charCodeAt(0)) {
|
|
@@ -938,13 +1011,13 @@ function wr(e) {
|
|
|
938
1011
|
}
|
|
939
1012
|
return "i";
|
|
940
1013
|
}
|
|
941
|
-
function
|
|
1014
|
+
function zr(e) {
|
|
942
1015
|
const t = e.trim();
|
|
943
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1016
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Hr(t) ? Br(t) : "*" + t;
|
|
944
1017
|
}
|
|
945
|
-
function
|
|
1018
|
+
function Kr(e) {
|
|
946
1019
|
const t = [];
|
|
947
|
-
let n = -1, r = 0, o = 0, a, s, l, i, c,
|
|
1020
|
+
let n = -1, r = 0, o = 0, a, s, l, i, c, u, d;
|
|
948
1021
|
const _ = [];
|
|
949
1022
|
_[0] = () => {
|
|
950
1023
|
s === void 0 ? s = l : s += l;
|
|
@@ -956,33 +1029,33 @@ function Fr(e) {
|
|
|
956
1029
|
if (o > 0)
|
|
957
1030
|
o--, r = 4, _[0]();
|
|
958
1031
|
else {
|
|
959
|
-
if (o = 0, s === void 0 || (s =
|
|
1032
|
+
if (o = 0, s === void 0 || (s = zr(s), s === !1))
|
|
960
1033
|
return !1;
|
|
961
1034
|
_[1]();
|
|
962
1035
|
}
|
|
963
1036
|
};
|
|
964
1037
|
function g() {
|
|
965
|
-
const
|
|
966
|
-
if (r === 5 &&
|
|
967
|
-
return n++, l = "\\" +
|
|
1038
|
+
const v = e[n + 1];
|
|
1039
|
+
if (r === 5 && v === "'" || r === 6 && v === '"')
|
|
1040
|
+
return n++, l = "\\" + v, _[0](), !0;
|
|
968
1041
|
}
|
|
969
1042
|
for (; r !== null; )
|
|
970
1043
|
if (n++, a = e[n], !(a === "\\" && g())) {
|
|
971
|
-
if (i =
|
|
1044
|
+
if (i = Yr(a), d = ae[r], c = d[i] || d.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (u = _[c[1]], u && (l = a, u() === !1))))
|
|
972
1045
|
return;
|
|
973
1046
|
if (r === 7)
|
|
974
1047
|
return t;
|
|
975
1048
|
}
|
|
976
1049
|
}
|
|
977
|
-
const
|
|
978
|
-
function
|
|
979
|
-
return
|
|
1050
|
+
const $t = /* @__PURE__ */ new Map();
|
|
1051
|
+
function Xr(e, t) {
|
|
1052
|
+
return S(e) ? e[t] : null;
|
|
980
1053
|
}
|
|
981
|
-
function
|
|
982
|
-
if (!
|
|
1054
|
+
function Qr(e, t) {
|
|
1055
|
+
if (!S(e))
|
|
983
1056
|
return null;
|
|
984
|
-
let n =
|
|
985
|
-
if (n || (n =
|
|
1057
|
+
let n = $t.get(t);
|
|
1058
|
+
if (n || (n = Kr(t), n && $t.set(t, n)), !n)
|
|
986
1059
|
return null;
|
|
987
1060
|
const r = n.length;
|
|
988
1061
|
let o = e, a = 0;
|
|
@@ -994,60 +1067,60 @@ function Mr(e, t) {
|
|
|
994
1067
|
}
|
|
995
1068
|
return o;
|
|
996
1069
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
1070
|
+
const Jr = (e) => e, qr = (e) => "", Zr = "text", es = (e) => e.length === 0 ? "" : e.join(""), ts = xr;
|
|
1071
|
+
function Mt(e, t) {
|
|
999
1072
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1000
1073
|
}
|
|
1001
|
-
function
|
|
1002
|
-
const t =
|
|
1003
|
-
return e.named && (
|
|
1074
|
+
function ns(e) {
|
|
1075
|
+
const t = M(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1076
|
+
return e.named && (M(e.named.count) || M(e.named.n)) ? M(e.named.count) ? e.named.count : M(e.named.n) ? e.named.n : t : t;
|
|
1004
1077
|
}
|
|
1005
|
-
function
|
|
1078
|
+
function os(e, t) {
|
|
1006
1079
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1007
1080
|
}
|
|
1008
|
-
function
|
|
1009
|
-
const t = e.locale, n =
|
|
1010
|
-
|
|
1011
|
-
const c = (
|
|
1012
|
-
function
|
|
1013
|
-
const b =
|
|
1014
|
-
return b || (e.parent ? e.parent.message(
|
|
1081
|
+
function rs(e = {}) {
|
|
1082
|
+
const t = e.locale, n = ns(e), r = S(e.pluralRules) && h(t) && $(e.pluralRules[t]) ? e.pluralRules[t] : Mt, o = S(e.pluralRules) && h(t) && $(e.pluralRules[t]) ? Mt : void 0, a = (N) => N[r(n, N.length, o)], s = e.list || [], l = (N) => s[N], i = e.named || {};
|
|
1083
|
+
M(e.pluralIndex) && os(n, i);
|
|
1084
|
+
const c = (N) => i[N];
|
|
1085
|
+
function u(N) {
|
|
1086
|
+
const b = $(e.messages) ? e.messages(N) : S(e.messages) ? e.messages[N] : !1;
|
|
1087
|
+
return b || (e.parent ? e.parent.message(N) : qr);
|
|
1015
1088
|
}
|
|
1016
|
-
const
|
|
1089
|
+
const d = (N) => e.modifiers ? e.modifiers[N] : Jr, _ = y(e.processor) && $(e.processor.normalize) ? e.processor.normalize : es, g = y(e.processor) && $(e.processor.interpolate) ? e.processor.interpolate : ts, v = y(e.processor) && h(e.processor.type) ? e.processor.type : Zr, E = {
|
|
1017
1090
|
list: l,
|
|
1018
1091
|
named: c,
|
|
1019
1092
|
plural: a,
|
|
1020
|
-
linked: (
|
|
1021
|
-
const [
|
|
1022
|
-
let p = "text",
|
|
1023
|
-
b.length === 1 ?
|
|
1024
|
-
let
|
|
1025
|
-
return p === "vnode" &&
|
|
1093
|
+
linked: (N, ...b) => {
|
|
1094
|
+
const [L, T] = b;
|
|
1095
|
+
let p = "text", w = "";
|
|
1096
|
+
b.length === 1 ? S(L) ? (w = L.modifier || w, p = L.type || p) : h(L) && (w = L || w) : b.length === 2 && (h(L) && (w = L || w), h(T) && (p = T || p));
|
|
1097
|
+
let I = u(N)(E);
|
|
1098
|
+
return p === "vnode" && R(I) && w && (I = I[0]), w ? d(w)(I, p) : I;
|
|
1026
1099
|
},
|
|
1027
|
-
message:
|
|
1028
|
-
type:
|
|
1100
|
+
message: u,
|
|
1101
|
+
type: v,
|
|
1029
1102
|
interpolate: g,
|
|
1030
1103
|
normalize: _
|
|
1031
1104
|
};
|
|
1032
|
-
return
|
|
1105
|
+
return E;
|
|
1033
1106
|
}
|
|
1034
|
-
let
|
|
1035
|
-
function
|
|
1036
|
-
|
|
1107
|
+
let Se = null;
|
|
1108
|
+
function ss(e) {
|
|
1109
|
+
Se = e;
|
|
1037
1110
|
}
|
|
1038
|
-
function
|
|
1039
|
-
|
|
1111
|
+
function as(e, t, n) {
|
|
1112
|
+
Se && Se.emit(Tn.I18nInit, {
|
|
1040
1113
|
timestamp: Date.now(),
|
|
1041
1114
|
i18n: e,
|
|
1042
1115
|
version: t,
|
|
1043
1116
|
meta: n
|
|
1044
1117
|
});
|
|
1045
1118
|
}
|
|
1046
|
-
const
|
|
1047
|
-
function
|
|
1048
|
-
return (t) =>
|
|
1119
|
+
const ls = /* @__PURE__ */ is(Tn.FunctionTranslate);
|
|
1120
|
+
function is(e) {
|
|
1121
|
+
return (t) => Se && Se.emit(e, t);
|
|
1049
1122
|
}
|
|
1050
|
-
const
|
|
1123
|
+
const K = {
|
|
1051
1124
|
NOT_FOUND_KEY: 1,
|
|
1052
1125
|
FALLBACK_TO_TRANSLATE: 2,
|
|
1053
1126
|
CANNOT_FORMAT_NUMBER: 3,
|
|
@@ -1055,124 +1128,124 @@ const z = {
|
|
|
1055
1128
|
CANNOT_FORMAT_DATE: 5,
|
|
1056
1129
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1057
1130
|
__EXTEND_POINT__: 7
|
|
1058
|
-
},
|
|
1059
|
-
[
|
|
1060
|
-
[
|
|
1061
|
-
[
|
|
1062
|
-
[
|
|
1063
|
-
[
|
|
1064
|
-
[
|
|
1131
|
+
}, cs = {
|
|
1132
|
+
[K.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1133
|
+
[K.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1134
|
+
[K.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1135
|
+
[K.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1136
|
+
[K.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1137
|
+
[K.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
|
|
1065
1138
|
};
|
|
1066
|
-
function
|
|
1067
|
-
return
|
|
1139
|
+
function Oe(e, ...t) {
|
|
1140
|
+
return ut(cs[e], ...t);
|
|
1068
1141
|
}
|
|
1069
|
-
function
|
|
1142
|
+
function us(e, t, n) {
|
|
1070
1143
|
return [.../* @__PURE__ */ new Set([
|
|
1071
1144
|
n,
|
|
1072
|
-
...
|
|
1145
|
+
...R(t) ? t : S(t) ? Object.keys(t) : h(t) ? [t] : [n]
|
|
1073
1146
|
])];
|
|
1074
1147
|
}
|
|
1075
|
-
function
|
|
1076
|
-
const r = h(n) ? n :
|
|
1148
|
+
function yn(e, t, n) {
|
|
1149
|
+
const r = h(n) ? n : mt, o = e;
|
|
1077
1150
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1078
1151
|
let a = o.__localeChainCache.get(r);
|
|
1079
1152
|
if (!a) {
|
|
1080
1153
|
a = [];
|
|
1081
1154
|
let s = [n];
|
|
1082
|
-
for (;
|
|
1083
|
-
s =
|
|
1084
|
-
const l =
|
|
1085
|
-
s = h(l) ? [l] : l,
|
|
1155
|
+
for (; R(s); )
|
|
1156
|
+
s = Vt(a, s, t);
|
|
1157
|
+
const l = R(t) || !y(t) ? t : t.default ? t.default : null;
|
|
1158
|
+
s = h(l) ? [l] : l, R(s) && Vt(a, s, !1), o.__localeChainCache.set(r, a);
|
|
1086
1159
|
}
|
|
1087
1160
|
return a;
|
|
1088
1161
|
}
|
|
1089
|
-
function
|
|
1162
|
+
function Vt(e, t, n) {
|
|
1090
1163
|
let r = !0;
|
|
1091
1164
|
for (let o = 0; o < t.length && A(r); o++) {
|
|
1092
1165
|
const a = t[o];
|
|
1093
|
-
h(a) && (r =
|
|
1166
|
+
h(a) && (r = fs(e, t[o], n));
|
|
1094
1167
|
}
|
|
1095
1168
|
return r;
|
|
1096
1169
|
}
|
|
1097
|
-
function
|
|
1170
|
+
function fs(e, t, n) {
|
|
1098
1171
|
let r;
|
|
1099
1172
|
const o = t.split("-");
|
|
1100
1173
|
do {
|
|
1101
1174
|
const a = o.join("-");
|
|
1102
|
-
r =
|
|
1175
|
+
r = _s(e, a, n), o.splice(-1, 1);
|
|
1103
1176
|
} while (o.length && r === !0);
|
|
1104
1177
|
return r;
|
|
1105
1178
|
}
|
|
1106
|
-
function
|
|
1179
|
+
function _s(e, t, n) {
|
|
1107
1180
|
let r = !1;
|
|
1108
1181
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1109
1182
|
r = t[t.length - 1] !== "!";
|
|
1110
1183
|
const o = t.replace(/!/g, "");
|
|
1111
|
-
e.push(o), (
|
|
1184
|
+
e.push(o), (R(n) || y(n)) && n[o] && (r = n[o]);
|
|
1112
1185
|
}
|
|
1113
1186
|
return r;
|
|
1114
1187
|
}
|
|
1115
|
-
const
|
|
1116
|
-
function
|
|
1188
|
+
const ds = "9.2.2", Ge = -1, mt = "en-US", Ve = "", Ut = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1189
|
+
function ms() {
|
|
1117
1190
|
return {
|
|
1118
|
-
upper: (e, t) => t === "text" && h(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1119
|
-
lower: (e, t) => t === "text" && h(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1120
|
-
capitalize: (e, t) => t === "text" && h(e) ?
|
|
1191
|
+
upper: (e, t) => t === "text" && h(e) ? e.toUpperCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1192
|
+
lower: (e, t) => t === "text" && h(e) ? e.toLowerCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1193
|
+
capitalize: (e, t) => t === "text" && h(e) ? Ut(e) : t === "vnode" && S(e) && "__v_isVNode" in e ? Ut(e.children) : e
|
|
1121
1194
|
};
|
|
1122
1195
|
}
|
|
1123
|
-
let
|
|
1124
|
-
function
|
|
1125
|
-
|
|
1126
|
-
}
|
|
1127
|
-
let
|
|
1128
|
-
function
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
let
|
|
1132
|
-
const
|
|
1133
|
-
|
|
1134
|
-
},
|
|
1135
|
-
let
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1138
|
-
},
|
|
1139
|
-
let
|
|
1140
|
-
function
|
|
1141
|
-
const t = h(e.version) ? e.version :
|
|
1142
|
-
|
|
1143
|
-
const
|
|
1196
|
+
let gs, In;
|
|
1197
|
+
function ps(e) {
|
|
1198
|
+
In = e;
|
|
1199
|
+
}
|
|
1200
|
+
let Ln;
|
|
1201
|
+
function hs(e) {
|
|
1202
|
+
Ln = e;
|
|
1203
|
+
}
|
|
1204
|
+
let Sn = null;
|
|
1205
|
+
const xt = (e) => {
|
|
1206
|
+
Sn = e;
|
|
1207
|
+
}, vs = () => Sn;
|
|
1208
|
+
let wn = null;
|
|
1209
|
+
const Gt = (e) => {
|
|
1210
|
+
wn = e;
|
|
1211
|
+
}, Es = () => wn;
|
|
1212
|
+
let Wt = 0;
|
|
1213
|
+
function Os(e = {}) {
|
|
1214
|
+
const t = h(e.version) ? e.version : ds, n = h(e.locale) ? e.locale : mt, r = R(e.fallbackLocale) || y(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, o = y(e.messages) ? e.messages : { [n]: {} }, a = y(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, s = y(e.numberFormats) ? e.numberFormats : { [n]: {} }, l = H({}, e.modifiers || {}, ms()), i = e.pluralRules || {}, c = $(e.missing) ? e.missing : null, u = A(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, d = A(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, _ = !!e.fallbackFormat, g = !!e.unresolving, v = $(e.postTranslation) ? e.postTranslation : null, O = y(e.processor) ? e.processor : null, E = A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, b = $(e.messageCompiler) ? e.messageCompiler : gs, L = $(e.messageResolver) ? e.messageResolver : In || Xr, T = $(e.localeFallbacker) ? e.localeFallbacker : Ln || us, p = S(e.fallbackContext) ? e.fallbackContext : void 0, w = $(e.onWarn) ? e.onWarn : be, I = e, V = S(I.__datetimeFormatters) ? I.__datetimeFormatters : /* @__PURE__ */ new Map(), z = S(I.__numberFormatters) ? I.__numberFormatters : /* @__PURE__ */ new Map(), J = S(I.__meta) ? I.__meta : {};
|
|
1215
|
+
Wt++;
|
|
1216
|
+
const q = {
|
|
1144
1217
|
version: t,
|
|
1145
|
-
cid:
|
|
1218
|
+
cid: Wt,
|
|
1146
1219
|
locale: n,
|
|
1147
1220
|
fallbackLocale: r,
|
|
1148
1221
|
messages: o,
|
|
1149
1222
|
modifiers: l,
|
|
1150
1223
|
pluralRules: i,
|
|
1151
1224
|
missing: c,
|
|
1152
|
-
missingWarn:
|
|
1153
|
-
fallbackWarn:
|
|
1225
|
+
missingWarn: u,
|
|
1226
|
+
fallbackWarn: d,
|
|
1154
1227
|
fallbackFormat: _,
|
|
1155
1228
|
unresolving: g,
|
|
1156
|
-
postTranslation:
|
|
1157
|
-
processor:
|
|
1158
|
-
warnHtmlMessage:
|
|
1159
|
-
escapeParameter:
|
|
1229
|
+
postTranslation: v,
|
|
1230
|
+
processor: O,
|
|
1231
|
+
warnHtmlMessage: E,
|
|
1232
|
+
escapeParameter: N,
|
|
1160
1233
|
messageCompiler: b,
|
|
1161
|
-
messageResolver:
|
|
1234
|
+
messageResolver: L,
|
|
1162
1235
|
localeFallbacker: T,
|
|
1163
1236
|
fallbackContext: p,
|
|
1164
|
-
onWarn:
|
|
1165
|
-
__meta:
|
|
1237
|
+
onWarn: w,
|
|
1238
|
+
__meta: J
|
|
1166
1239
|
};
|
|
1167
|
-
return
|
|
1240
|
+
return q.datetimeFormats = a, q.numberFormats = s, q.__datetimeFormatters = V, q.__numberFormatters = z, process.env.NODE_ENV !== "production" && (q.__v_emitter = I.__v_emitter != null ? I.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && as(q, t, J), q;
|
|
1168
1241
|
}
|
|
1169
|
-
function
|
|
1242
|
+
function We(e, t) {
|
|
1170
1243
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1171
1244
|
}
|
|
1172
|
-
function
|
|
1245
|
+
function Dn(e, t) {
|
|
1173
1246
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1174
1247
|
}
|
|
1175
|
-
function
|
|
1248
|
+
function gt(e, t, n, r, o) {
|
|
1176
1249
|
const { missing: a, onWarn: s } = e;
|
|
1177
1250
|
if (process.env.NODE_ENV !== "production") {
|
|
1178
1251
|
const l = e.__v_emitter;
|
|
@@ -1187,109 +1260,109 @@ function ft(e, t, n, r, o) {
|
|
|
1187
1260
|
const l = a(e, n, t, o);
|
|
1188
1261
|
return h(l) ? l : t;
|
|
1189
1262
|
} else
|
|
1190
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1263
|
+
return process.env.NODE_ENV !== "production" && Dn(r, t) && s(Oe(K.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1191
1264
|
}
|
|
1192
|
-
function
|
|
1265
|
+
function Te(e, t, n) {
|
|
1193
1266
|
const r = e;
|
|
1194
1267
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1195
1268
|
}
|
|
1196
|
-
let
|
|
1197
|
-
const
|
|
1198
|
-
INVALID_ARGUMENT:
|
|
1199
|
-
INVALID_DATE_ARGUMENT:
|
|
1200
|
-
INVALID_ISO_DATE_ARGUMENT:
|
|
1201
|
-
__EXTEND_POINT__:
|
|
1269
|
+
let Cn = x.__EXTEND_POINT__;
|
|
1270
|
+
const Ye = () => ++Cn, re = {
|
|
1271
|
+
INVALID_ARGUMENT: Cn,
|
|
1272
|
+
INVALID_DATE_ARGUMENT: Ye(),
|
|
1273
|
+
INVALID_ISO_DATE_ARGUMENT: Ye(),
|
|
1274
|
+
__EXTEND_POINT__: Ye()
|
|
1202
1275
|
};
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1205
|
-
}
|
|
1206
|
-
const
|
|
1207
|
-
[
|
|
1208
|
-
[
|
|
1209
|
-
[
|
|
1210
|
-
},
|
|
1211
|
-
function
|
|
1212
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: l } = e, [i, c] =
|
|
1213
|
-
_ &&
|
|
1214
|
-
let [
|
|
1276
|
+
function Ee(e) {
|
|
1277
|
+
return bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Ns } : void 0);
|
|
1278
|
+
}
|
|
1279
|
+
const Ns = {
|
|
1280
|
+
[re.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1281
|
+
[re.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1282
|
+
[re.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
1283
|
+
}, jt = () => "", ee = (e) => $(e);
|
|
1284
|
+
function Ht(e, ...t) {
|
|
1285
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: l } = e, [i, c] = Je(...t), u = A(c.missingWarn) ? c.missingWarn : e.missingWarn, d = A(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, _ = A(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, g = !!c.resolvedMessage, v = h(c.default) || A(c.default) ? A(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", O = n || v !== "", E = h(c.locale) ? c.locale : e.locale;
|
|
1286
|
+
_ && bs(c);
|
|
1287
|
+
let [N, b, L] = g ? [
|
|
1215
1288
|
i,
|
|
1216
|
-
|
|
1217
|
-
l[
|
|
1218
|
-
] :
|
|
1219
|
-
if (!g && !(h(T) ||
|
|
1220
|
-
return o ?
|
|
1289
|
+
E,
|
|
1290
|
+
l[E] || {}
|
|
1291
|
+
] : An(e, i, E, s, d, u), T = N, p = i;
|
|
1292
|
+
if (!g && !(h(T) || ee(T)) && O && (T = v, p = T), !g && (!(h(T) || ee(T)) || !h(b)))
|
|
1293
|
+
return o ? Ge : i;
|
|
1221
1294
|
if (process.env.NODE_ENV !== "production" && h(T) && e.messageCompiler == null)
|
|
1222
|
-
return
|
|
1223
|
-
let
|
|
1224
|
-
const
|
|
1225
|
-
|
|
1226
|
-
},
|
|
1227
|
-
if (
|
|
1295
|
+
return be(`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 '${i}'.`), i;
|
|
1296
|
+
let w = !1;
|
|
1297
|
+
const I = () => {
|
|
1298
|
+
w = !0;
|
|
1299
|
+
}, V = ee(T) ? T : Pn(e, i, b, T, p, I);
|
|
1300
|
+
if (w)
|
|
1228
1301
|
return T;
|
|
1229
|
-
const
|
|
1302
|
+
const z = Is(e, b, L, c), J = rs(z), q = Ts(e, V, J), Ce = r ? r(q, i) : q;
|
|
1230
1303
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1231
|
-
const
|
|
1304
|
+
const Ae = {
|
|
1232
1305
|
timestamp: Date.now(),
|
|
1233
|
-
key: h(i) ? i :
|
|
1234
|
-
locale: b || (
|
|
1235
|
-
format: h(T) ? T :
|
|
1236
|
-
message:
|
|
1306
|
+
key: h(i) ? i : ee(T) ? T.key : "",
|
|
1307
|
+
locale: b || (ee(T) ? T.locale : ""),
|
|
1308
|
+
format: h(T) ? T : ee(T) ? T.source : "",
|
|
1309
|
+
message: Ce
|
|
1237
1310
|
};
|
|
1238
|
-
|
|
1311
|
+
Ae.meta = H({}, e.__meta, vs() || {}), ls(Ae);
|
|
1239
1312
|
}
|
|
1240
|
-
return
|
|
1313
|
+
return Ce;
|
|
1241
1314
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1244
|
-
h(e.named[t]) && (e.named[t] =
|
|
1315
|
+
function bs(e) {
|
|
1316
|
+
R(e.list) ? e.list = e.list.map((t) => h(t) ? Ft(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1317
|
+
h(e.named[t]) && (e.named[t] = Ft(e.named[t]));
|
|
1245
1318
|
});
|
|
1246
1319
|
}
|
|
1247
|
-
function
|
|
1248
|
-
const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e,
|
|
1249
|
-
let
|
|
1250
|
-
const
|
|
1251
|
-
for (let
|
|
1252
|
-
if (_ =
|
|
1320
|
+
function An(e, t, n, r, o, a) {
|
|
1321
|
+
const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, u = c(e, r, n);
|
|
1322
|
+
let d = {}, _, g = null, v = n, O = null;
|
|
1323
|
+
const E = "translate";
|
|
1324
|
+
for (let N = 0; N < u.length; N++) {
|
|
1325
|
+
if (_ = O = u[N], process.env.NODE_ENV !== "production" && n !== _ && We(o, t) && l(Oe(K.FALLBACK_TO_TRANSLATE, {
|
|
1253
1326
|
key: t,
|
|
1254
1327
|
target: _
|
|
1255
1328
|
})), process.env.NODE_ENV !== "production" && n !== _) {
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1258
|
-
type:
|
|
1329
|
+
const w = e.__v_emitter;
|
|
1330
|
+
w && w.emit("fallback", {
|
|
1331
|
+
type: E,
|
|
1259
1332
|
key: t,
|
|
1260
|
-
from:
|
|
1261
|
-
to:
|
|
1262
|
-
groupId: `${
|
|
1333
|
+
from: v,
|
|
1334
|
+
to: O,
|
|
1335
|
+
groupId: `${E}:${t}`
|
|
1263
1336
|
});
|
|
1264
1337
|
}
|
|
1265
|
-
|
|
1266
|
-
let b = null,
|
|
1267
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1338
|
+
d = s[_] || {};
|
|
1339
|
+
let b = null, L, T;
|
|
1340
|
+
if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(), L = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(L)), (g = i(d, t)) === null && (g = d[t]), process.env.NODE_ENV !== "production" && te) {
|
|
1341
|
+
const w = window.performance.now(), I = e.__v_emitter;
|
|
1342
|
+
I && b && g && I.emit("message-resolve", {
|
|
1270
1343
|
type: "message-resolve",
|
|
1271
1344
|
key: t,
|
|
1272
1345
|
message: g,
|
|
1273
|
-
time:
|
|
1274
|
-
groupId: `${
|
|
1275
|
-
}),
|
|
1346
|
+
time: w - b,
|
|
1347
|
+
groupId: `${E}:${t}`
|
|
1348
|
+
}), L && T && X && fe && (X(T), fe("intlify message resolve", L, T));
|
|
1276
1349
|
}
|
|
1277
|
-
if (h(g) ||
|
|
1350
|
+
if (h(g) || $(g))
|
|
1278
1351
|
break;
|
|
1279
|
-
const p =
|
|
1352
|
+
const p = gt(
|
|
1280
1353
|
e,
|
|
1281
1354
|
t,
|
|
1282
1355
|
_,
|
|
1283
1356
|
a,
|
|
1284
|
-
|
|
1357
|
+
E
|
|
1285
1358
|
);
|
|
1286
|
-
p !== t && (g = p),
|
|
1359
|
+
p !== t && (g = p), v = O;
|
|
1287
1360
|
}
|
|
1288
|
-
return [g, _,
|
|
1361
|
+
return [g, _, d];
|
|
1289
1362
|
}
|
|
1290
|
-
function
|
|
1363
|
+
function Pn(e, t, n, r, o, a) {
|
|
1291
1364
|
const { messageCompiler: s, warnHtmlMessage: l } = e;
|
|
1292
|
-
if (
|
|
1365
|
+
if (ee(r)) {
|
|
1293
1366
|
const _ = r;
|
|
1294
1367
|
return _.locale = _.locale || n, _.key = _.key || t, _;
|
|
1295
1368
|
}
|
|
@@ -1297,48 +1370,48 @@ function Ln(e, t, n, r, o, a) {
|
|
|
1297
1370
|
const _ = () => r;
|
|
1298
1371
|
return _.locale = n, _.key = t, _;
|
|
1299
1372
|
}
|
|
1300
|
-
let i = null, c,
|
|
1301
|
-
process.env.NODE_ENV !== "production" &&
|
|
1302
|
-
const
|
|
1303
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1373
|
+
let i = null, c, u;
|
|
1374
|
+
process.env.NODE_ENV !== "production" && te && (i = window.performance.now(), c = "intlify-message-compilation-start", u = "intlify-message-compilation-end", X && X(c));
|
|
1375
|
+
const d = s(r, ys(e, n, o, r, l, a));
|
|
1376
|
+
if (process.env.NODE_ENV !== "production" && te) {
|
|
1304
1377
|
const _ = window.performance.now(), g = e.__v_emitter;
|
|
1305
1378
|
g && i && g.emit("message-compilation", {
|
|
1306
1379
|
type: "message-compilation",
|
|
1307
1380
|
message: r,
|
|
1308
1381
|
time: _ - i,
|
|
1309
1382
|
groupId: `translate:${t}`
|
|
1310
|
-
}), c &&
|
|
1383
|
+
}), c && u && X && fe && (X(u), fe("intlify message compilation", c, u));
|
|
1311
1384
|
}
|
|
1312
|
-
return
|
|
1385
|
+
return d.locale = n, d.key = t, d.source = r, d;
|
|
1313
1386
|
}
|
|
1314
|
-
function
|
|
1387
|
+
function Ts(e, t, n) {
|
|
1315
1388
|
let r = null, o, a;
|
|
1316
|
-
process.env.NODE_ENV !== "production" &&
|
|
1389
|
+
process.env.NODE_ENV !== "production" && te && (r = window.performance.now(), o = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", X && X(o));
|
|
1317
1390
|
const s = t(n);
|
|
1318
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1391
|
+
if (process.env.NODE_ENV !== "production" && te) {
|
|
1319
1392
|
const l = window.performance.now(), i = e.__v_emitter;
|
|
1320
1393
|
i && r && i.emit("message-evaluation", {
|
|
1321
1394
|
type: "message-evaluation",
|
|
1322
1395
|
value: s,
|
|
1323
1396
|
time: l - r,
|
|
1324
1397
|
groupId: `translate:${t.key}`
|
|
1325
|
-
}), o && a &&
|
|
1398
|
+
}), o && a && X && fe && (X(a), fe("intlify message evaluation", o, a));
|
|
1326
1399
|
}
|
|
1327
1400
|
return s;
|
|
1328
1401
|
}
|
|
1329
|
-
function
|
|
1402
|
+
function Je(...e) {
|
|
1330
1403
|
const [t, n, r] = e, o = {};
|
|
1331
|
-
if (!h(t) && !
|
|
1332
|
-
throw
|
|
1333
|
-
const a =
|
|
1334
|
-
return
|
|
1404
|
+
if (!h(t) && !M(t) && !ee(t))
|
|
1405
|
+
throw Ee(re.INVALID_ARGUMENT);
|
|
1406
|
+
const a = M(t) ? String(t) : (ee(t), t);
|
|
1407
|
+
return M(n) ? o.plural = n : h(n) ? o.default = n : y(n) && !xe(n) ? o.named = n : R(n) && (o.list = n), M(r) ? o.plural = r : h(r) ? o.default = r : y(r) && H(o, r), [a, o];
|
|
1335
1408
|
}
|
|
1336
|
-
function
|
|
1409
|
+
function ys(e, t, n, r, o, a) {
|
|
1337
1410
|
return {
|
|
1338
1411
|
warnHtmlMessage: o,
|
|
1339
1412
|
onError: (s) => {
|
|
1340
1413
|
if (a && a(s), process.env.NODE_ENV !== "production") {
|
|
1341
|
-
const l = `Message compilation error: ${s.message}`, i = s.location &&
|
|
1414
|
+
const l = `Message compilation error: ${s.message}`, i = s.location && Gr(r, s.location.start.offset, s.location.end.offset), c = e.__v_emitter;
|
|
1342
1415
|
c && c.emit("compile-error", {
|
|
1343
1416
|
message: r,
|
|
1344
1417
|
error: s.message,
|
|
@@ -1350,75 +1423,75 @@ ${i}` : l);
|
|
|
1350
1423
|
} else
|
|
1351
1424
|
throw s;
|
|
1352
1425
|
},
|
|
1353
|
-
onCacheKey: (s) =>
|
|
1426
|
+
onCacheKey: (s) => $r(t, n, s)
|
|
1354
1427
|
};
|
|
1355
1428
|
}
|
|
1356
|
-
function
|
|
1357
|
-
const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext:
|
|
1429
|
+
function Is(e, t, n, r) {
|
|
1430
|
+
const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: u } = e, _ = {
|
|
1358
1431
|
locale: t,
|
|
1359
1432
|
modifiers: o,
|
|
1360
1433
|
pluralRules: a,
|
|
1361
1434
|
messages: (g) => {
|
|
1362
|
-
let
|
|
1363
|
-
if (
|
|
1364
|
-
const [, ,
|
|
1365
|
-
|
|
1435
|
+
let v = s(n, g);
|
|
1436
|
+
if (v == null && u) {
|
|
1437
|
+
const [, , O] = An(u, g, t, l, i, c);
|
|
1438
|
+
v = s(O, g);
|
|
1366
1439
|
}
|
|
1367
|
-
if (h(
|
|
1368
|
-
let
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1440
|
+
if (h(v)) {
|
|
1441
|
+
let O = !1;
|
|
1442
|
+
const N = Pn(e, g, t, v, g, () => {
|
|
1443
|
+
O = !0;
|
|
1371
1444
|
});
|
|
1372
|
-
return
|
|
1445
|
+
return O ? jt : N;
|
|
1373
1446
|
} else
|
|
1374
|
-
return
|
|
1447
|
+
return ee(v) ? v : jt;
|
|
1375
1448
|
}
|
|
1376
1449
|
};
|
|
1377
|
-
return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named),
|
|
1450
|
+
return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named), M(r.plural) && (_.pluralIndex = r.plural), _;
|
|
1378
1451
|
}
|
|
1379
|
-
const
|
|
1380
|
-
dateTimeFormat:
|
|
1381
|
-
numberFormat:
|
|
1452
|
+
const Bt = typeof Intl < "u", Rn = {
|
|
1453
|
+
dateTimeFormat: Bt && typeof Intl.DateTimeFormat < "u",
|
|
1454
|
+
numberFormat: Bt && typeof Intl.NumberFormat < "u"
|
|
1382
1455
|
};
|
|
1383
|
-
function
|
|
1456
|
+
function Yt(e, ...t) {
|
|
1384
1457
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
|
|
1385
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1386
|
-
return a(
|
|
1387
|
-
const [i, c,
|
|
1458
|
+
if (process.env.NODE_ENV !== "production" && !Rn.dateTimeFormat)
|
|
1459
|
+
return a(Oe(K.CANNOT_FORMAT_DATE)), Ve;
|
|
1460
|
+
const [i, c, u, d] = qe(...t), _ = A(u.missingWarn) ? u.missingWarn : e.missingWarn, g = A(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, v = !!u.part, O = h(u.locale) ? u.locale : e.locale, E = s(
|
|
1388
1461
|
e,
|
|
1389
1462
|
o,
|
|
1390
|
-
|
|
1463
|
+
O
|
|
1391
1464
|
);
|
|
1392
1465
|
if (!h(i) || i === "")
|
|
1393
|
-
return new Intl.DateTimeFormat(
|
|
1394
|
-
let
|
|
1395
|
-
const
|
|
1396
|
-
for (let
|
|
1397
|
-
if (b = p =
|
|
1466
|
+
return new Intl.DateTimeFormat(O, d).format(c);
|
|
1467
|
+
let N = {}, b, L = null, T = O, p = null;
|
|
1468
|
+
const w = "datetime format";
|
|
1469
|
+
for (let z = 0; z < E.length; z++) {
|
|
1470
|
+
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Oe(K.FALLBACK_TO_DATE_FORMAT, {
|
|
1398
1471
|
key: i,
|
|
1399
1472
|
target: b
|
|
1400
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1401
|
-
const
|
|
1402
|
-
|
|
1403
|
-
type:
|
|
1473
|
+
})), process.env.NODE_ENV !== "production" && O !== b) {
|
|
1474
|
+
const J = e.__v_emitter;
|
|
1475
|
+
J && J.emit("fallback", {
|
|
1476
|
+
type: w,
|
|
1404
1477
|
key: i,
|
|
1405
1478
|
from: T,
|
|
1406
1479
|
to: p,
|
|
1407
|
-
groupId: `${
|
|
1480
|
+
groupId: `${w}:${i}`
|
|
1408
1481
|
});
|
|
1409
1482
|
}
|
|
1410
|
-
if (
|
|
1483
|
+
if (N = n[b] || {}, L = N[i], y(L))
|
|
1411
1484
|
break;
|
|
1412
|
-
|
|
1485
|
+
gt(e, i, b, _, w), T = p;
|
|
1413
1486
|
}
|
|
1414
|
-
if (!
|
|
1415
|
-
return r ?
|
|
1416
|
-
let
|
|
1417
|
-
|
|
1418
|
-
let
|
|
1419
|
-
return
|
|
1487
|
+
if (!y(L) || !h(b))
|
|
1488
|
+
return r ? Ge : i;
|
|
1489
|
+
let I = `${b}__${i}`;
|
|
1490
|
+
xe(d) || (I = `${I}__${JSON.stringify(d)}`);
|
|
1491
|
+
let V = l.get(I);
|
|
1492
|
+
return V || (V = new Intl.DateTimeFormat(b, H({}, L, d)), l.set(I, V)), v ? V.formatToParts(c) : V.format(c);
|
|
1420
1493
|
}
|
|
1421
|
-
const
|
|
1494
|
+
const Fn = [
|
|
1422
1495
|
"localeMatcher",
|
|
1423
1496
|
"weekday",
|
|
1424
1497
|
"era",
|
|
@@ -1440,78 +1513,78 @@ const yn = [
|
|
|
1440
1513
|
"hourCycle",
|
|
1441
1514
|
"fractionalSecondDigits"
|
|
1442
1515
|
];
|
|
1443
|
-
function
|
|
1516
|
+
function qe(...e) {
|
|
1444
1517
|
const [t, n, r, o] = e, a = {};
|
|
1445
1518
|
let s = {}, l;
|
|
1446
1519
|
if (h(t)) {
|
|
1447
1520
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1448
1521
|
if (!i)
|
|
1449
|
-
throw
|
|
1522
|
+
throw Ee(re.INVALID_ISO_DATE_ARGUMENT);
|
|
1450
1523
|
const c = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
1451
1524
|
l = new Date(c);
|
|
1452
1525
|
try {
|
|
1453
1526
|
l.toISOString();
|
|
1454
1527
|
} catch {
|
|
1455
|
-
throw
|
|
1528
|
+
throw Ee(re.INVALID_ISO_DATE_ARGUMENT);
|
|
1456
1529
|
}
|
|
1457
|
-
} else if (
|
|
1530
|
+
} else if (Vr(t)) {
|
|
1458
1531
|
if (isNaN(t.getTime()))
|
|
1459
|
-
throw
|
|
1532
|
+
throw Ee(re.INVALID_DATE_ARGUMENT);
|
|
1460
1533
|
l = t;
|
|
1461
|
-
} else if (
|
|
1534
|
+
} else if (M(t))
|
|
1462
1535
|
l = t;
|
|
1463
1536
|
else
|
|
1464
|
-
throw
|
|
1465
|
-
return h(n) ? a.key = n :
|
|
1466
|
-
|
|
1467
|
-
}), h(r) ? a.locale = r :
|
|
1537
|
+
throw Ee(re.INVALID_ARGUMENT);
|
|
1538
|
+
return h(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
|
|
1539
|
+
Fn.includes(i) ? s[i] = n[i] : a[i] = n[i];
|
|
1540
|
+
}), h(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
|
|
1468
1541
|
}
|
|
1469
|
-
function
|
|
1542
|
+
function zt(e, t, n) {
|
|
1470
1543
|
const r = e;
|
|
1471
1544
|
for (const o in n) {
|
|
1472
1545
|
const a = `${t}__${o}`;
|
|
1473
1546
|
!r.__datetimeFormatters.has(a) || r.__datetimeFormatters.delete(a);
|
|
1474
1547
|
}
|
|
1475
1548
|
}
|
|
1476
|
-
function
|
|
1549
|
+
function Kt(e, ...t) {
|
|
1477
1550
|
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __numberFormatters: l } = e;
|
|
1478
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1479
|
-
return a(
|
|
1480
|
-
const [i, c,
|
|
1551
|
+
if (process.env.NODE_ENV !== "production" && !Rn.numberFormat)
|
|
1552
|
+
return a(Oe(K.CANNOT_FORMAT_NUMBER)), Ve;
|
|
1553
|
+
const [i, c, u, d] = Ze(...t), _ = A(u.missingWarn) ? u.missingWarn : e.missingWarn, g = A(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, v = !!u.part, O = h(u.locale) ? u.locale : e.locale, E = s(
|
|
1481
1554
|
e,
|
|
1482
1555
|
o,
|
|
1483
|
-
|
|
1556
|
+
O
|
|
1484
1557
|
);
|
|
1485
1558
|
if (!h(i) || i === "")
|
|
1486
|
-
return new Intl.NumberFormat(
|
|
1487
|
-
let
|
|
1488
|
-
const
|
|
1489
|
-
for (let
|
|
1490
|
-
if (b = p =
|
|
1559
|
+
return new Intl.NumberFormat(O, d).format(c);
|
|
1560
|
+
let N = {}, b, L = null, T = O, p = null;
|
|
1561
|
+
const w = "number format";
|
|
1562
|
+
for (let z = 0; z < E.length; z++) {
|
|
1563
|
+
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Oe(K.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1491
1564
|
key: i,
|
|
1492
1565
|
target: b
|
|
1493
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1494
|
-
const
|
|
1495
|
-
|
|
1496
|
-
type:
|
|
1566
|
+
})), process.env.NODE_ENV !== "production" && O !== b) {
|
|
1567
|
+
const J = e.__v_emitter;
|
|
1568
|
+
J && J.emit("fallback", {
|
|
1569
|
+
type: w,
|
|
1497
1570
|
key: i,
|
|
1498
1571
|
from: T,
|
|
1499
1572
|
to: p,
|
|
1500
|
-
groupId: `${
|
|
1573
|
+
groupId: `${w}:${i}`
|
|
1501
1574
|
});
|
|
1502
1575
|
}
|
|
1503
|
-
if (
|
|
1576
|
+
if (N = n[b] || {}, L = N[i], y(L))
|
|
1504
1577
|
break;
|
|
1505
|
-
|
|
1578
|
+
gt(e, i, b, _, w), T = p;
|
|
1506
1579
|
}
|
|
1507
|
-
if (!
|
|
1508
|
-
return r ?
|
|
1509
|
-
let
|
|
1510
|
-
|
|
1511
|
-
let
|
|
1512
|
-
return
|
|
1580
|
+
if (!y(L) || !h(b))
|
|
1581
|
+
return r ? Ge : i;
|
|
1582
|
+
let I = `${b}__${i}`;
|
|
1583
|
+
xe(d) || (I = `${I}__${JSON.stringify(d)}`);
|
|
1584
|
+
let V = l.get(I);
|
|
1585
|
+
return V || (V = new Intl.NumberFormat(b, H({}, L, d)), l.set(I, V)), v ? V.formatToParts(c) : V.format(c);
|
|
1513
1586
|
}
|
|
1514
|
-
const
|
|
1587
|
+
const kn = [
|
|
1515
1588
|
"localeMatcher",
|
|
1516
1589
|
"style",
|
|
1517
1590
|
"currency",
|
|
@@ -1533,40 +1606,40 @@ const Dn = [
|
|
|
1533
1606
|
"roundingIncrement",
|
|
1534
1607
|
"trailingZeroDisplay"
|
|
1535
1608
|
];
|
|
1536
|
-
function
|
|
1609
|
+
function Ze(...e) {
|
|
1537
1610
|
const [t, n, r, o] = e, a = {};
|
|
1538
1611
|
let s = {};
|
|
1539
|
-
if (!
|
|
1540
|
-
throw
|
|
1612
|
+
if (!M(t))
|
|
1613
|
+
throw Ee(re.INVALID_ARGUMENT);
|
|
1541
1614
|
const l = t;
|
|
1542
|
-
return h(n) ? a.key = n :
|
|
1543
|
-
|
|
1544
|
-
}), h(r) ? a.locale = r :
|
|
1615
|
+
return h(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
|
|
1616
|
+
kn.includes(i) ? s[i] = n[i] : a[i] = n[i];
|
|
1617
|
+
}), h(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
|
|
1545
1618
|
}
|
|
1546
|
-
function
|
|
1619
|
+
function Xt(e, t, n) {
|
|
1547
1620
|
const r = e;
|
|
1548
1621
|
for (const o in n) {
|
|
1549
1622
|
const a = `${t}__${o}`;
|
|
1550
1623
|
!r.__numberFormatters.has(a) || r.__numberFormatters.delete(a);
|
|
1551
1624
|
}
|
|
1552
1625
|
}
|
|
1553
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1554
|
-
function
|
|
1555
|
-
return
|
|
1626
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ft().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1627
|
+
function Ls() {
|
|
1628
|
+
return $n().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1556
1629
|
}
|
|
1557
|
-
function
|
|
1630
|
+
function $n() {
|
|
1558
1631
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
1559
1632
|
}
|
|
1560
|
-
const
|
|
1561
|
-
let
|
|
1562
|
-
function
|
|
1633
|
+
const Ss = typeof Proxy == "function", ws = "devtools-plugin:setup", Ds = "plugin:settings:set";
|
|
1634
|
+
let he, et;
|
|
1635
|
+
function Cs() {
|
|
1563
1636
|
var e;
|
|
1564
|
-
return
|
|
1637
|
+
return he !== void 0 || (typeof window < "u" && window.performance ? (he = !0, et = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (he = !0, et = global.perf_hooks.performance) : he = !1), he;
|
|
1565
1638
|
}
|
|
1566
|
-
function
|
|
1567
|
-
return
|
|
1639
|
+
function As() {
|
|
1640
|
+
return Cs() ? et.now() : Date.now();
|
|
1568
1641
|
}
|
|
1569
|
-
class
|
|
1642
|
+
class Ps {
|
|
1570
1643
|
constructor(t, n) {
|
|
1571
1644
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
1572
1645
|
const r = {};
|
|
@@ -1594,9 +1667,9 @@ class Es {
|
|
|
1594
1667
|
a = s;
|
|
1595
1668
|
},
|
|
1596
1669
|
now() {
|
|
1597
|
-
return
|
|
1670
|
+
return As();
|
|
1598
1671
|
}
|
|
1599
|
-
}, n && n.on(
|
|
1672
|
+
}, n && n.on(Ds, (s, l) => {
|
|
1600
1673
|
s === this.plugin.id && this.fallbacks.setSettings(l);
|
|
1601
1674
|
}), this.proxiedOn = new Proxy({}, {
|
|
1602
1675
|
get: (s, l) => this.target ? this.target.on[l] : (...i) => {
|
|
@@ -1628,12 +1701,12 @@ class Es {
|
|
|
1628
1701
|
n.resolve(await this.target[n.method](...n.args));
|
|
1629
1702
|
}
|
|
1630
1703
|
}
|
|
1631
|
-
function
|
|
1632
|
-
const n = e, r =
|
|
1704
|
+
function Rs(e, t) {
|
|
1705
|
+
const n = e, r = $n(), o = Ls(), a = Ss && n.enableEarlyProxy;
|
|
1633
1706
|
if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
1634
|
-
o.emit(
|
|
1707
|
+
o.emit(ws, e, t);
|
|
1635
1708
|
else {
|
|
1636
|
-
const s = a ? new
|
|
1709
|
+
const s = a ? new Ps(n, o) : null;
|
|
1637
1710
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1638
1711
|
pluginDescriptor: n,
|
|
1639
1712
|
setupFn: t,
|
|
@@ -1646,13 +1719,13 @@ function vs(e, t) {
|
|
|
1646
1719
|
* (c) 2022 kazuya kawaguchi
|
|
1647
1720
|
* Released under the MIT License.
|
|
1648
1721
|
*/
|
|
1649
|
-
const
|
|
1722
|
+
const ze = {
|
|
1650
1723
|
["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
|
|
1651
1724
|
["vue-i18n-resource-inspector"]: "I18n Resources",
|
|
1652
1725
|
["vue-i18n-timeline"]: "Vue I18n"
|
|
1653
|
-
},
|
|
1726
|
+
}, Fs = {
|
|
1654
1727
|
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
1655
|
-
},
|
|
1728
|
+
}, ks = {
|
|
1656
1729
|
["vue-i18n-timeline"]: 16764185
|
|
1657
1730
|
};
|
|
1658
1731
|
/*!
|
|
@@ -1660,113 +1733,113 @@ const He = {
|
|
|
1660
1733
|
* (c) 2022 kazuya kawaguchi
|
|
1661
1734
|
* Released under the MIT License.
|
|
1662
1735
|
*/
|
|
1663
|
-
const
|
|
1664
|
-
function
|
|
1736
|
+
const $s = "9.2.2";
|
|
1737
|
+
function Ms() {
|
|
1665
1738
|
let e = !1;
|
|
1666
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1667
|
-
}
|
|
1668
|
-
let
|
|
1669
|
-
const
|
|
1670
|
-
FALLBACK_TO_ROOT:
|
|
1671
|
-
NOT_SUPPORTED_PRESERVE:
|
|
1672
|
-
NOT_SUPPORTED_FORMATTER:
|
|
1673
|
-
NOT_SUPPORTED_PRESERVE_DIRECTIVE:
|
|
1674
|
-
NOT_SUPPORTED_GET_CHOICE_INDEX:
|
|
1675
|
-
COMPONENT_NAME_LEGACY_COMPATIBLE:
|
|
1676
|
-
NOT_FOUND_PARENT_SCOPE:
|
|
1677
|
-
},
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1739
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ft().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
|
1740
|
+
}
|
|
1741
|
+
let Mn = K.__EXTEND_POINT__;
|
|
1742
|
+
const ve = () => ++Mn, Z = {
|
|
1743
|
+
FALLBACK_TO_ROOT: Mn,
|
|
1744
|
+
NOT_SUPPORTED_PRESERVE: ve(),
|
|
1745
|
+
NOT_SUPPORTED_FORMATTER: ve(),
|
|
1746
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: ve(),
|
|
1747
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: ve(),
|
|
1748
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: ve(),
|
|
1749
|
+
NOT_FOUND_PARENT_SCOPE: ve()
|
|
1750
|
+
}, Vs = {
|
|
1751
|
+
[Z.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
1752
|
+
[Z.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
1753
|
+
[Z.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
|
1754
|
+
[Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
|
|
1755
|
+
[Z.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
|
|
1756
|
+
[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
|
1757
|
+
[Z.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
|
|
1685
1758
|
};
|
|
1686
|
-
function
|
|
1687
|
-
return
|
|
1688
|
-
}
|
|
1689
|
-
let
|
|
1690
|
-
const
|
|
1691
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1692
|
-
INVALID_ARGUMENT:
|
|
1693
|
-
MUST_BE_CALL_SETUP_TOP:
|
|
1694
|
-
NOT_INSLALLED:
|
|
1695
|
-
NOT_AVAILABLE_IN_LEGACY_MODE:
|
|
1696
|
-
REQUIRED_VALUE:
|
|
1697
|
-
INVALID_VALUE:
|
|
1698
|
-
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:
|
|
1699
|
-
NOT_INSLALLED_WITH_PROVIDE:
|
|
1700
|
-
UNEXPECTED_ERROR:
|
|
1701
|
-
NOT_COMPATIBLE_LEGACY_VUE_I18N:
|
|
1702
|
-
BRIDGE_SUPPORT_VUE_2_ONLY:
|
|
1703
|
-
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:
|
|
1704
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY:
|
|
1705
|
-
__EXTEND_POINT__:
|
|
1759
|
+
function je(e, ...t) {
|
|
1760
|
+
return ut(Vs[e], ...t);
|
|
1761
|
+
}
|
|
1762
|
+
let Vn = x.__EXTEND_POINT__;
|
|
1763
|
+
const Y = () => ++Vn, D = {
|
|
1764
|
+
UNEXPECTED_RETURN_TYPE: Vn,
|
|
1765
|
+
INVALID_ARGUMENT: Y(),
|
|
1766
|
+
MUST_BE_CALL_SETUP_TOP: Y(),
|
|
1767
|
+
NOT_INSLALLED: Y(),
|
|
1768
|
+
NOT_AVAILABLE_IN_LEGACY_MODE: Y(),
|
|
1769
|
+
REQUIRED_VALUE: Y(),
|
|
1770
|
+
INVALID_VALUE: Y(),
|
|
1771
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: Y(),
|
|
1772
|
+
NOT_INSLALLED_WITH_PROVIDE: Y(),
|
|
1773
|
+
UNEXPECTED_ERROR: Y(),
|
|
1774
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: Y(),
|
|
1775
|
+
BRIDGE_SUPPORT_VUE_2_ONLY: Y(),
|
|
1776
|
+
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: Y(),
|
|
1777
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: Y(),
|
|
1778
|
+
__EXTEND_POINT__: Y()
|
|
1706
1779
|
};
|
|
1707
|
-
function
|
|
1708
|
-
return
|
|
1709
|
-
}
|
|
1710
|
-
const
|
|
1711
|
-
[
|
|
1712
|
-
[
|
|
1713
|
-
[
|
|
1714
|
-
[
|
|
1715
|
-
[
|
|
1716
|
-
[
|
|
1717
|
-
[
|
|
1718
|
-
[
|
|
1719
|
-
[
|
|
1720
|
-
[
|
|
1721
|
-
[
|
|
1722
|
-
[
|
|
1723
|
-
[
|
|
1724
|
-
[
|
|
1725
|
-
},
|
|
1726
|
-
|
|
1727
|
-
const
|
|
1728
|
-
function
|
|
1729
|
-
if (!
|
|
1780
|
+
function Q(e, ...t) {
|
|
1781
|
+
return bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Us, args: t } : void 0);
|
|
1782
|
+
}
|
|
1783
|
+
const Us = {
|
|
1784
|
+
[D.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
1785
|
+
[D.INVALID_ARGUMENT]: "Invalid argument",
|
|
1786
|
+
[D.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
1787
|
+
[D.NOT_INSLALLED]: "Need to install with `app.use` function",
|
|
1788
|
+
[D.UNEXPECTED_ERROR]: "Unexpected error",
|
|
1789
|
+
[D.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
|
1790
|
+
[D.REQUIRED_VALUE]: "Required in value: {0}",
|
|
1791
|
+
[D.INVALID_VALUE]: "Invalid value",
|
|
1792
|
+
[D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
1793
|
+
[D.NOT_INSLALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
1794
|
+
[D.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
1795
|
+
[D.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
1796
|
+
[D.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
|
|
1797
|
+
[D.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1798
|
+
}, tt = /* @__PURE__ */ ne("__transrateVNode"), nt = /* @__PURE__ */ ne("__datetimeParts"), ot = /* @__PURE__ */ ne("__numberParts"), we = /* @__PURE__ */ ne("__enableEmitter"), rt = /* @__PURE__ */ ne("__disableEmitter"), xs = ne("__setPluralRules");
|
|
1799
|
+
ne("__intlifyMeta");
|
|
1800
|
+
const Gs = /* @__PURE__ */ ne("__injectWithOption");
|
|
1801
|
+
function st(e) {
|
|
1802
|
+
if (!S(e))
|
|
1730
1803
|
return e;
|
|
1731
1804
|
for (const t in e)
|
|
1732
|
-
if (!!
|
|
1805
|
+
if (!!_t(e, t))
|
|
1733
1806
|
if (!t.includes("."))
|
|
1734
|
-
|
|
1807
|
+
S(e[t]) && st(e[t]);
|
|
1735
1808
|
else {
|
|
1736
1809
|
const n = t.split("."), r = n.length - 1;
|
|
1737
1810
|
let o = e;
|
|
1738
1811
|
for (let a = 0; a < r; a++)
|
|
1739
1812
|
n[a] in o || (o[n[a]] = {}), o = o[n[a]];
|
|
1740
|
-
o[n[r]] = e[t], delete e[t],
|
|
1813
|
+
o[n[r]] = e[t], delete e[t], S(o[n[r]]) && st(o[n[r]]);
|
|
1741
1814
|
}
|
|
1742
1815
|
return e;
|
|
1743
1816
|
}
|
|
1744
|
-
function
|
|
1745
|
-
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s =
|
|
1746
|
-
if (
|
|
1817
|
+
function Un(e, t) {
|
|
1818
|
+
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s = y(n) ? n : R(r) ? {} : { [e]: {} };
|
|
1819
|
+
if (R(r) && r.forEach((l) => {
|
|
1747
1820
|
if ("locale" in l && "resource" in l) {
|
|
1748
1821
|
const { locale: i, resource: c } = l;
|
|
1749
|
-
i ? (s[i] = s[i] || {},
|
|
1822
|
+
i ? (s[i] = s[i] || {}, Le(c, s[i])) : Le(c, s);
|
|
1750
1823
|
} else
|
|
1751
|
-
h(l) &&
|
|
1824
|
+
h(l) && Le(JSON.parse(l), s);
|
|
1752
1825
|
}), o == null && a)
|
|
1753
1826
|
for (const l in s)
|
|
1754
|
-
|
|
1827
|
+
_t(s, l) && st(s[l]);
|
|
1755
1828
|
return s;
|
|
1756
1829
|
}
|
|
1757
|
-
const
|
|
1758
|
-
function
|
|
1759
|
-
if (
|
|
1760
|
-
throw
|
|
1830
|
+
const Re = (e) => !S(e) || R(e);
|
|
1831
|
+
function Le(e, t) {
|
|
1832
|
+
if (Re(e) || Re(t))
|
|
1833
|
+
throw Q(D.INVALID_VALUE);
|
|
1761
1834
|
for (const n in e)
|
|
1762
|
-
|
|
1835
|
+
_t(e, n) && (Re(e[n]) || Re(t[n]) ? t[n] = e[n] : Le(e[n], t[n]));
|
|
1763
1836
|
}
|
|
1764
|
-
function
|
|
1837
|
+
function xn(e) {
|
|
1765
1838
|
return e.type;
|
|
1766
1839
|
}
|
|
1767
|
-
function
|
|
1768
|
-
let r =
|
|
1769
|
-
"__i18nGlobal" in n && (r =
|
|
1840
|
+
function Ws(e, t, n) {
|
|
1841
|
+
let r = S(t.messages) ? t.messages : {};
|
|
1842
|
+
"__i18nGlobal" in n && (r = Un(e.locale.value, {
|
|
1770
1843
|
messages: r,
|
|
1771
1844
|
__i18n: n.__i18nGlobal
|
|
1772
1845
|
}));
|
|
@@ -1775,13 +1848,13 @@ function Ds(e, t, n) {
|
|
|
1775
1848
|
e.mergeLocaleMessage(a, r[a]);
|
|
1776
1849
|
});
|
|
1777
1850
|
{
|
|
1778
|
-
if (
|
|
1851
|
+
if (S(t.datetimeFormats)) {
|
|
1779
1852
|
const a = Object.keys(t.datetimeFormats);
|
|
1780
1853
|
a.length && a.forEach((s) => {
|
|
1781
1854
|
e.mergeDateTimeFormat(s, t.datetimeFormats[s]);
|
|
1782
1855
|
});
|
|
1783
1856
|
}
|
|
1784
|
-
if (
|
|
1857
|
+
if (S(t.numberFormats)) {
|
|
1785
1858
|
const a = Object.keys(t.numberFormats);
|
|
1786
1859
|
a.length && a.forEach((s) => {
|
|
1787
1860
|
e.mergeNumberFormat(s, t.numberFormats[s]);
|
|
@@ -1789,55 +1862,55 @@ function Ds(e, t, n) {
|
|
|
1789
1862
|
}
|
|
1790
1863
|
}
|
|
1791
1864
|
}
|
|
1792
|
-
function Yt(e) {
|
|
1793
|
-
return ae(po, null, e, 0);
|
|
1794
|
-
}
|
|
1795
|
-
const Kt = "__INTLIFY_META__";
|
|
1796
|
-
let Xt = 0;
|
|
1797
1865
|
function Qt(e) {
|
|
1798
|
-
return (
|
|
1866
|
+
return se(Lo, null, e, 0);
|
|
1799
1867
|
}
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1868
|
+
const Jt = "__INTLIFY_META__";
|
|
1869
|
+
let qt = 0;
|
|
1870
|
+
function Zt(e) {
|
|
1871
|
+
return (t, n, r, o) => e(n, r, it() || void 0, o);
|
|
1872
|
+
}
|
|
1873
|
+
const js = () => {
|
|
1874
|
+
const e = it();
|
|
1802
1875
|
let t = null;
|
|
1803
|
-
return e && (t =
|
|
1876
|
+
return e && (t = xn(e)[Jt]) ? { [Jt]: t } : null;
|
|
1804
1877
|
};
|
|
1805
|
-
function
|
|
1878
|
+
function Gn(e = {}, t) {
|
|
1806
1879
|
const { __root: n } = e, r = n === void 0;
|
|
1807
1880
|
let o = A(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1808
|
-
const a =
|
|
1809
|
-
n && o ? n.locale.value : h(e.locale) ? e.locale :
|
|
1810
|
-
), s =
|
|
1811
|
-
n && o ? n.fallbackLocale.value : h(e.fallbackLocale) ||
|
|
1812
|
-
), l =
|
|
1813
|
-
let
|
|
1814
|
-
const
|
|
1881
|
+
const a = G(
|
|
1882
|
+
n && o ? n.locale.value : h(e.locale) ? e.locale : mt
|
|
1883
|
+
), s = G(
|
|
1884
|
+
n && o ? n.fallbackLocale.value : h(e.fallbackLocale) || R(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1885
|
+
), l = G(Un(a.value, e)), i = G(y(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = G(y(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1886
|
+
let u = n ? n.missingWarn : A(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, d = n ? n.fallbackWarn : A(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, _ = n ? n.fallbackRoot : A(e.fallbackRoot) ? e.fallbackRoot : !0, g = !!e.fallbackFormat, v = $(e.missing) ? e.missing : null, O = $(e.missing) ? Zt(e.missing) : null, E = $(e.postTranslation) ? e.postTranslation : null, N = n ? n.warnHtmlMessage : A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
|
|
1887
|
+
const L = n ? n.modifiers : y(e.modifiers) ? e.modifiers : {};
|
|
1815
1888
|
let T = e.pluralRules || n && n.pluralRules, p;
|
|
1816
1889
|
p = (() => {
|
|
1817
|
-
r &&
|
|
1818
|
-
const
|
|
1819
|
-
version:
|
|
1890
|
+
r && Gt(null);
|
|
1891
|
+
const f = {
|
|
1892
|
+
version: $s,
|
|
1820
1893
|
locale: a.value,
|
|
1821
1894
|
fallbackLocale: s.value,
|
|
1822
1895
|
messages: l.value,
|
|
1823
|
-
modifiers:
|
|
1896
|
+
modifiers: L,
|
|
1824
1897
|
pluralRules: T,
|
|
1825
|
-
missing:
|
|
1826
|
-
missingWarn:
|
|
1827
|
-
fallbackWarn:
|
|
1898
|
+
missing: O === null ? void 0 : O,
|
|
1899
|
+
missingWarn: u,
|
|
1900
|
+
fallbackWarn: d,
|
|
1828
1901
|
fallbackFormat: g,
|
|
1829
1902
|
unresolving: !0,
|
|
1830
|
-
postTranslation:
|
|
1831
|
-
warnHtmlMessage:
|
|
1903
|
+
postTranslation: E === null ? void 0 : E,
|
|
1904
|
+
warnHtmlMessage: N,
|
|
1832
1905
|
escapeParameter: b,
|
|
1833
1906
|
messageResolver: e.messageResolver,
|
|
1834
1907
|
__meta: { framework: "vue" }
|
|
1835
1908
|
};
|
|
1836
|
-
|
|
1837
|
-
const
|
|
1838
|
-
return r &&
|
|
1839
|
-
})(),
|
|
1840
|
-
function
|
|
1909
|
+
f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters = y(p) ? p.__datetimeFormatters : void 0, f.__numberFormatters = y(p) ? p.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (f.__v_emitter = y(p) ? p.__v_emitter : void 0);
|
|
1910
|
+
const m = Os(f);
|
|
1911
|
+
return r && Gt(m), m;
|
|
1912
|
+
})(), Te(p, a.value, s.value);
|
|
1913
|
+
function I() {
|
|
1841
1914
|
return [
|
|
1842
1915
|
a.value,
|
|
1843
1916
|
s.value,
|
|
@@ -1846,197 +1919,197 @@ function Fn(e = {}, t) {
|
|
|
1846
1919
|
c.value
|
|
1847
1920
|
];
|
|
1848
1921
|
}
|
|
1849
|
-
const
|
|
1922
|
+
const V = j({
|
|
1850
1923
|
get: () => a.value,
|
|
1851
|
-
set: (
|
|
1852
|
-
a.value =
|
|
1924
|
+
set: (f) => {
|
|
1925
|
+
a.value = f, p.locale = a.value;
|
|
1853
1926
|
}
|
|
1854
|
-
}),
|
|
1927
|
+
}), z = j({
|
|
1855
1928
|
get: () => s.value,
|
|
1856
|
-
set: (
|
|
1857
|
-
s.value =
|
|
1929
|
+
set: (f) => {
|
|
1930
|
+
s.value = f, p.fallbackLocale = s.value, Te(p, a.value, f);
|
|
1858
1931
|
}
|
|
1859
|
-
}),
|
|
1860
|
-
function
|
|
1861
|
-
return
|
|
1932
|
+
}), J = j(() => l.value), q = /* @__PURE__ */ j(() => i.value), Ce = /* @__PURE__ */ j(() => c.value);
|
|
1933
|
+
function Ae() {
|
|
1934
|
+
return $(E) ? E : null;
|
|
1862
1935
|
}
|
|
1863
|
-
function
|
|
1864
|
-
|
|
1936
|
+
function Qn(f) {
|
|
1937
|
+
E = f, p.postTranslation = f;
|
|
1865
1938
|
}
|
|
1866
|
-
function
|
|
1867
|
-
return
|
|
1939
|
+
function Jn() {
|
|
1940
|
+
return v;
|
|
1868
1941
|
}
|
|
1869
|
-
function
|
|
1870
|
-
|
|
1942
|
+
function qn(f) {
|
|
1943
|
+
f !== null && (O = Zt(f)), v = f, p.missing = O;
|
|
1871
1944
|
}
|
|
1872
|
-
function
|
|
1873
|
-
return
|
|
1945
|
+
function Zn(f, m) {
|
|
1946
|
+
return f !== "translate" || !m.resolvedMessage;
|
|
1874
1947
|
}
|
|
1875
|
-
const
|
|
1876
|
-
|
|
1877
|
-
let
|
|
1948
|
+
const ge = (f, m, B, W, He, Pe) => {
|
|
1949
|
+
I();
|
|
1950
|
+
let pe;
|
|
1878
1951
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1879
1952
|
try {
|
|
1880
|
-
|
|
1953
|
+
xt(js()), r || (p.fallbackContext = n ? Es() : void 0), pe = f(p);
|
|
1881
1954
|
} finally {
|
|
1882
|
-
|
|
1955
|
+
xt(null), r || (p.fallbackContext = void 0);
|
|
1883
1956
|
}
|
|
1884
1957
|
else
|
|
1885
|
-
|
|
1886
|
-
if (
|
|
1887
|
-
const [
|
|
1888
|
-
if (process.env.NODE_ENV !== "production" && n && h(
|
|
1889
|
-
key:
|
|
1890
|
-
type:
|
|
1958
|
+
pe = f(p);
|
|
1959
|
+
if (M(pe) && pe === Ge) {
|
|
1960
|
+
const [le, No] = m();
|
|
1961
|
+
if (process.env.NODE_ENV !== "production" && n && h(le) && Zn(B, No) && (_ && (We(d, le) || Dn(u, le)) && be(je(Z.FALLBACK_TO_ROOT, {
|
|
1962
|
+
key: le,
|
|
1963
|
+
type: B
|
|
1891
1964
|
})), process.env.NODE_ENV !== "production")) {
|
|
1892
|
-
const { __v_emitter:
|
|
1893
|
-
|
|
1894
|
-
type:
|
|
1895
|
-
key:
|
|
1965
|
+
const { __v_emitter: Nt } = p;
|
|
1966
|
+
Nt && _ && Nt.emit("fallback", {
|
|
1967
|
+
type: B,
|
|
1968
|
+
key: le,
|
|
1896
1969
|
to: "global",
|
|
1897
|
-
groupId: `${
|
|
1970
|
+
groupId: `${B}:${le}`
|
|
1898
1971
|
});
|
|
1899
1972
|
}
|
|
1900
|
-
return n && _ ?
|
|
1973
|
+
return n && _ ? W(n) : He(le);
|
|
1901
1974
|
} else {
|
|
1902
|
-
if (
|
|
1903
|
-
return
|
|
1904
|
-
throw
|
|
1975
|
+
if (Pe(pe))
|
|
1976
|
+
return pe;
|
|
1977
|
+
throw Q(D.UNEXPECTED_RETURN_TYPE);
|
|
1905
1978
|
}
|
|
1906
1979
|
};
|
|
1907
|
-
function
|
|
1908
|
-
return
|
|
1980
|
+
function Et(...f) {
|
|
1981
|
+
return ge((m) => Reflect.apply(Ht, null, [m, ...f]), () => Je(...f), "translate", (m) => Reflect.apply(m.t, m, [...f]), (m) => m, (m) => h(m));
|
|
1909
1982
|
}
|
|
1910
|
-
function
|
|
1911
|
-
const [
|
|
1912
|
-
if (
|
|
1913
|
-
throw
|
|
1914
|
-
return
|
|
1983
|
+
function eo(...f) {
|
|
1984
|
+
const [m, B, W] = f;
|
|
1985
|
+
if (W && !S(W))
|
|
1986
|
+
throw Q(D.INVALID_ARGUMENT);
|
|
1987
|
+
return Et(m, B, H({ resolvedMessage: !0 }, W || {}));
|
|
1915
1988
|
}
|
|
1916
|
-
function
|
|
1917
|
-
return
|
|
1989
|
+
function to(...f) {
|
|
1990
|
+
return ge((m) => Reflect.apply(Yt, null, [m, ...f]), () => qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => Ve, (m) => h(m));
|
|
1918
1991
|
}
|
|
1919
|
-
function
|
|
1920
|
-
return
|
|
1992
|
+
function no(...f) {
|
|
1993
|
+
return ge((m) => Reflect.apply(Kt, null, [m, ...f]), () => Ze(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => Ve, (m) => h(m));
|
|
1921
1994
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return
|
|
1995
|
+
function oo(f) {
|
|
1996
|
+
return f.map((m) => h(m) || M(m) || A(m) ? Qt(String(m)) : m);
|
|
1924
1997
|
}
|
|
1925
|
-
const
|
|
1926
|
-
normalize:
|
|
1927
|
-
interpolate: (
|
|
1998
|
+
const ro = {
|
|
1999
|
+
normalize: oo,
|
|
2000
|
+
interpolate: (f) => f,
|
|
1928
2001
|
type: "vnode"
|
|
1929
2002
|
};
|
|
1930
|
-
function
|
|
1931
|
-
return
|
|
1932
|
-
(
|
|
1933
|
-
let
|
|
1934
|
-
const
|
|
2003
|
+
function so(...f) {
|
|
2004
|
+
return ge(
|
|
2005
|
+
(m) => {
|
|
2006
|
+
let B;
|
|
2007
|
+
const W = m;
|
|
1935
2008
|
try {
|
|
1936
|
-
|
|
2009
|
+
W.processor = ro, B = Reflect.apply(Ht, null, [W, ...f]);
|
|
1937
2010
|
} finally {
|
|
1938
|
-
|
|
2011
|
+
W.processor = null;
|
|
1939
2012
|
}
|
|
1940
|
-
return
|
|
2013
|
+
return B;
|
|
1941
2014
|
},
|
|
1942
|
-
() =>
|
|
2015
|
+
() => Je(...f),
|
|
1943
2016
|
"translate",
|
|
1944
|
-
(
|
|
1945
|
-
(
|
|
1946
|
-
(
|
|
2017
|
+
(m) => m[tt](...f),
|
|
2018
|
+
(m) => [Qt(m)],
|
|
2019
|
+
(m) => R(m)
|
|
1947
2020
|
);
|
|
1948
2021
|
}
|
|
1949
|
-
function
|
|
1950
|
-
return
|
|
1951
|
-
(
|
|
1952
|
-
() =>
|
|
2022
|
+
function ao(...f) {
|
|
2023
|
+
return ge(
|
|
2024
|
+
(m) => Reflect.apply(Kt, null, [m, ...f]),
|
|
2025
|
+
() => Ze(...f),
|
|
1953
2026
|
"number format",
|
|
1954
|
-
(
|
|
2027
|
+
(m) => m[ot](...f),
|
|
1955
2028
|
() => [],
|
|
1956
|
-
(
|
|
2029
|
+
(m) => h(m) || R(m)
|
|
1957
2030
|
);
|
|
1958
2031
|
}
|
|
1959
|
-
function
|
|
1960
|
-
return
|
|
1961
|
-
(
|
|
1962
|
-
() =>
|
|
2032
|
+
function lo(...f) {
|
|
2033
|
+
return ge(
|
|
2034
|
+
(m) => Reflect.apply(Yt, null, [m, ...f]),
|
|
2035
|
+
() => qe(...f),
|
|
1963
2036
|
"datetime format",
|
|
1964
|
-
(
|
|
2037
|
+
(m) => m[nt](...f),
|
|
1965
2038
|
() => [],
|
|
1966
|
-
(
|
|
2039
|
+
(m) => h(m) || R(m)
|
|
1967
2040
|
);
|
|
1968
2041
|
}
|
|
1969
|
-
function
|
|
1970
|
-
T =
|
|
2042
|
+
function io(f) {
|
|
2043
|
+
T = f, p.pluralRules = T;
|
|
1971
2044
|
}
|
|
1972
|
-
function
|
|
1973
|
-
const
|
|
1974
|
-
return p.messageResolver(
|
|
2045
|
+
function co(f, m) {
|
|
2046
|
+
const B = h(m) ? m : a.value, W = Ot(B);
|
|
2047
|
+
return p.messageResolver(W, f) !== null;
|
|
1975
2048
|
}
|
|
1976
|
-
function
|
|
1977
|
-
let
|
|
1978
|
-
const
|
|
1979
|
-
for (let
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
1982
|
-
|
|
2049
|
+
function uo(f) {
|
|
2050
|
+
let m = null;
|
|
2051
|
+
const B = yn(p, s.value, a.value);
|
|
2052
|
+
for (let W = 0; W < B.length; W++) {
|
|
2053
|
+
const He = l.value[B[W]] || {}, Pe = p.messageResolver(He, f);
|
|
2054
|
+
if (Pe != null) {
|
|
2055
|
+
m = Pe;
|
|
1983
2056
|
break;
|
|
1984
2057
|
}
|
|
1985
2058
|
}
|
|
1986
|
-
return
|
|
2059
|
+
return m;
|
|
1987
2060
|
}
|
|
1988
|
-
function
|
|
1989
|
-
const
|
|
1990
|
-
return
|
|
2061
|
+
function fo(f) {
|
|
2062
|
+
const m = uo(f);
|
|
2063
|
+
return m != null ? m : n ? n.tm(f) || {} : {};
|
|
1991
2064
|
}
|
|
1992
|
-
function
|
|
1993
|
-
return l.value[
|
|
2065
|
+
function Ot(f) {
|
|
2066
|
+
return l.value[f] || {};
|
|
1994
2067
|
}
|
|
1995
|
-
function
|
|
1996
|
-
l.value[
|
|
2068
|
+
function _o(f, m) {
|
|
2069
|
+
l.value[f] = m, p.messages = l.value;
|
|
1997
2070
|
}
|
|
1998
|
-
function
|
|
1999
|
-
l.value[
|
|
2071
|
+
function mo(f, m) {
|
|
2072
|
+
l.value[f] = l.value[f] || {}, Le(m, l.value[f]), p.messages = l.value;
|
|
2000
2073
|
}
|
|
2001
|
-
function
|
|
2002
|
-
return i.value[
|
|
2074
|
+
function go(f) {
|
|
2075
|
+
return i.value[f] || {};
|
|
2003
2076
|
}
|
|
2004
|
-
function
|
|
2005
|
-
i.value[
|
|
2077
|
+
function po(f, m) {
|
|
2078
|
+
i.value[f] = m, p.datetimeFormats = i.value, zt(p, f, m);
|
|
2006
2079
|
}
|
|
2007
|
-
function
|
|
2008
|
-
i.value[
|
|
2080
|
+
function ho(f, m) {
|
|
2081
|
+
i.value[f] = H(i.value[f] || {}, m), p.datetimeFormats = i.value, zt(p, f, m);
|
|
2009
2082
|
}
|
|
2010
|
-
function
|
|
2011
|
-
return c.value[
|
|
2083
|
+
function vo(f) {
|
|
2084
|
+
return c.value[f] || {};
|
|
2012
2085
|
}
|
|
2013
|
-
function
|
|
2014
|
-
c.value[
|
|
2086
|
+
function Eo(f, m) {
|
|
2087
|
+
c.value[f] = m, p.numberFormats = c.value, Xt(p, f, m);
|
|
2015
2088
|
}
|
|
2016
|
-
function
|
|
2017
|
-
c.value[
|
|
2089
|
+
function Oo(f, m) {
|
|
2090
|
+
c.value[f] = H(c.value[f] || {}, m), p.numberFormats = c.value, Xt(p, f, m);
|
|
2018
2091
|
}
|
|
2019
|
-
|
|
2020
|
-
o && (a.value =
|
|
2021
|
-
}),
|
|
2022
|
-
o && (s.value =
|
|
2092
|
+
qt++, n && te && ($e(n.locale, (f) => {
|
|
2093
|
+
o && (a.value = f, p.locale = f, Te(p, a.value, s.value));
|
|
2094
|
+
}), $e(n.fallbackLocale, (f) => {
|
|
2095
|
+
o && (s.value = f, p.fallbackLocale = f, Te(p, a.value, s.value));
|
|
2023
2096
|
}));
|
|
2024
|
-
const
|
|
2025
|
-
id:
|
|
2026
|
-
locale:
|
|
2027
|
-
fallbackLocale:
|
|
2097
|
+
const F = {
|
|
2098
|
+
id: qt,
|
|
2099
|
+
locale: V,
|
|
2100
|
+
fallbackLocale: z,
|
|
2028
2101
|
get inheritLocale() {
|
|
2029
2102
|
return o;
|
|
2030
2103
|
},
|
|
2031
|
-
set inheritLocale(
|
|
2032
|
-
o =
|
|
2104
|
+
set inheritLocale(f) {
|
|
2105
|
+
o = f, f && n && (a.value = n.locale.value, s.value = n.fallbackLocale.value, Te(p, a.value, s.value));
|
|
2033
2106
|
},
|
|
2034
2107
|
get availableLocales() {
|
|
2035
2108
|
return Object.keys(l.value).sort();
|
|
2036
2109
|
},
|
|
2037
|
-
messages:
|
|
2110
|
+
messages: J,
|
|
2038
2111
|
get modifiers() {
|
|
2039
|
-
return
|
|
2112
|
+
return L;
|
|
2040
2113
|
},
|
|
2041
2114
|
get pluralRules() {
|
|
2042
2115
|
return T || {};
|
|
@@ -2045,58 +2118,58 @@ function Fn(e = {}, t) {
|
|
|
2045
2118
|
return r;
|
|
2046
2119
|
},
|
|
2047
2120
|
get missingWarn() {
|
|
2048
|
-
return
|
|
2121
|
+
return u;
|
|
2049
2122
|
},
|
|
2050
|
-
set missingWarn(
|
|
2051
|
-
|
|
2123
|
+
set missingWarn(f) {
|
|
2124
|
+
u = f, p.missingWarn = u;
|
|
2052
2125
|
},
|
|
2053
2126
|
get fallbackWarn() {
|
|
2054
|
-
return
|
|
2127
|
+
return d;
|
|
2055
2128
|
},
|
|
2056
|
-
set fallbackWarn(
|
|
2057
|
-
|
|
2129
|
+
set fallbackWarn(f) {
|
|
2130
|
+
d = f, p.fallbackWarn = d;
|
|
2058
2131
|
},
|
|
2059
2132
|
get fallbackRoot() {
|
|
2060
2133
|
return _;
|
|
2061
2134
|
},
|
|
2062
|
-
set fallbackRoot(
|
|
2063
|
-
_ =
|
|
2135
|
+
set fallbackRoot(f) {
|
|
2136
|
+
_ = f;
|
|
2064
2137
|
},
|
|
2065
2138
|
get fallbackFormat() {
|
|
2066
2139
|
return g;
|
|
2067
2140
|
},
|
|
2068
|
-
set fallbackFormat(
|
|
2069
|
-
g =
|
|
2141
|
+
set fallbackFormat(f) {
|
|
2142
|
+
g = f, p.fallbackFormat = g;
|
|
2070
2143
|
},
|
|
2071
2144
|
get warnHtmlMessage() {
|
|
2072
|
-
return
|
|
2145
|
+
return N;
|
|
2073
2146
|
},
|
|
2074
|
-
set warnHtmlMessage(
|
|
2075
|
-
|
|
2147
|
+
set warnHtmlMessage(f) {
|
|
2148
|
+
N = f, p.warnHtmlMessage = f;
|
|
2076
2149
|
},
|
|
2077
2150
|
get escapeParameter() {
|
|
2078
2151
|
return b;
|
|
2079
2152
|
},
|
|
2080
|
-
set escapeParameter(
|
|
2081
|
-
b =
|
|
2153
|
+
set escapeParameter(f) {
|
|
2154
|
+
b = f, p.escapeParameter = f;
|
|
2082
2155
|
},
|
|
2083
|
-
t:
|
|
2084
|
-
getLocaleMessage:
|
|
2085
|
-
setLocaleMessage:
|
|
2086
|
-
mergeLocaleMessage:
|
|
2087
|
-
getPostTranslationHandler:
|
|
2088
|
-
setPostTranslationHandler:
|
|
2089
|
-
getMissingHandler:
|
|
2090
|
-
setMissingHandler:
|
|
2091
|
-
[
|
|
2156
|
+
t: Et,
|
|
2157
|
+
getLocaleMessage: Ot,
|
|
2158
|
+
setLocaleMessage: _o,
|
|
2159
|
+
mergeLocaleMessage: mo,
|
|
2160
|
+
getPostTranslationHandler: Ae,
|
|
2161
|
+
setPostTranslationHandler: Qn,
|
|
2162
|
+
getMissingHandler: Jn,
|
|
2163
|
+
setMissingHandler: qn,
|
|
2164
|
+
[xs]: io
|
|
2092
2165
|
};
|
|
2093
|
-
return
|
|
2094
|
-
p.__v_emitter =
|
|
2095
|
-
},
|
|
2166
|
+
return F.datetimeFormats = q, F.numberFormats = Ce, F.rt = eo, F.te = co, F.tm = fo, F.d = to, F.n = no, F.getDateTimeFormat = go, F.setDateTimeFormat = po, F.mergeDateTimeFormat = ho, F.getNumberFormat = vo, F.setNumberFormat = Eo, F.mergeNumberFormat = Oo, F[Gs] = e.__injectWithOption, F[tt] = so, F[nt] = lo, F[ot] = ao, process.env.NODE_ENV !== "production" && (F[we] = (f) => {
|
|
2167
|
+
p.__v_emitter = f;
|
|
2168
|
+
}, F[rt] = () => {
|
|
2096
2169
|
p.__v_emitter = void 0;
|
|
2097
|
-
}),
|
|
2170
|
+
}), F;
|
|
2098
2171
|
}
|
|
2099
|
-
const
|
|
2172
|
+
const pt = {
|
|
2100
2173
|
tag: {
|
|
2101
2174
|
type: [String, Object]
|
|
2102
2175
|
},
|
|
@@ -2112,65 +2185,65 @@ const _t = {
|
|
|
2112
2185
|
type: Object
|
|
2113
2186
|
}
|
|
2114
2187
|
};
|
|
2115
|
-
function
|
|
2188
|
+
function Hs({ slots: e }, t) {
|
|
2116
2189
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => r = [
|
|
2117
2190
|
...r,
|
|
2118
|
-
...
|
|
2191
|
+
...R(o.children) ? o.children : [o]
|
|
2119
2192
|
], []) : t.reduce((n, r) => {
|
|
2120
2193
|
const o = e[r];
|
|
2121
2194
|
return o && (n[r] = o()), n;
|
|
2122
2195
|
}, {});
|
|
2123
2196
|
}
|
|
2124
|
-
function
|
|
2125
|
-
return
|
|
2197
|
+
function Wn(e) {
|
|
2198
|
+
return de;
|
|
2126
2199
|
}
|
|
2127
|
-
const
|
|
2200
|
+
const Ke = {
|
|
2128
2201
|
name: "i18n-t",
|
|
2129
|
-
props:
|
|
2202
|
+
props: H({
|
|
2130
2203
|
keypath: {
|
|
2131
2204
|
type: String,
|
|
2132
2205
|
required: !0
|
|
2133
2206
|
},
|
|
2134
2207
|
plural: {
|
|
2135
2208
|
type: [Number, String],
|
|
2136
|
-
validator: (e) =>
|
|
2209
|
+
validator: (e) => M(e) || !isNaN(e)
|
|
2137
2210
|
}
|
|
2138
|
-
},
|
|
2211
|
+
}, pt),
|
|
2139
2212
|
setup(e, t) {
|
|
2140
|
-
const { slots: n, attrs: r } = t, o = e.i18n ||
|
|
2213
|
+
const { slots: n, attrs: r } = t, o = e.i18n || vt({
|
|
2141
2214
|
useScope: e.scope,
|
|
2142
2215
|
__useComponent: !0
|
|
2143
2216
|
});
|
|
2144
2217
|
return () => {
|
|
2145
|
-
const a = Object.keys(n).filter((
|
|
2218
|
+
const a = Object.keys(n).filter((d) => d !== "_"), s = {};
|
|
2146
2219
|
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = h(e.plural) ? +e.plural : e.plural);
|
|
2147
|
-
const l =
|
|
2148
|
-
return
|
|
2220
|
+
const l = Hs(t, a), i = o[tt](e.keypath, l, s), c = H({}, r), u = h(e.tag) || S(e.tag) ? e.tag : Wn();
|
|
2221
|
+
return ke(u, c, i);
|
|
2149
2222
|
};
|
|
2150
2223
|
}
|
|
2151
2224
|
};
|
|
2152
|
-
function
|
|
2153
|
-
return
|
|
2225
|
+
function Bs(e) {
|
|
2226
|
+
return R(e) && !h(e[0]);
|
|
2154
2227
|
}
|
|
2155
|
-
function
|
|
2228
|
+
function jn(e, t, n, r) {
|
|
2156
2229
|
const { slots: o, attrs: a } = t;
|
|
2157
2230
|
return () => {
|
|
2158
2231
|
const s = { part: !0 };
|
|
2159
2232
|
let l = {};
|
|
2160
|
-
e.locale && (s.locale = e.locale), h(e.format) ? s.key = e.format :
|
|
2233
|
+
e.locale && (s.locale = e.locale), h(e.format) ? s.key = e.format : S(e.format) && (h(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((_, g) => n.includes(g) ? H({}, _, { [g]: e.format[g] }) : _, {}));
|
|
2161
2234
|
const i = r(e.value, s, l);
|
|
2162
2235
|
let c = [s.key];
|
|
2163
|
-
|
|
2164
|
-
const
|
|
2165
|
-
return
|
|
2236
|
+
R(i) ? c = i.map((_, g) => {
|
|
2237
|
+
const v = o[_.type], O = v ? v({ [_.type]: _.value, index: g, parts: i }) : [_.value];
|
|
2238
|
+
return Bs(O) && (O[0].key = `${_.type}-${g}`), O;
|
|
2166
2239
|
}) : h(i) && (c = [i]);
|
|
2167
|
-
const
|
|
2168
|
-
return
|
|
2240
|
+
const u = H({}, a), d = h(e.tag) || S(e.tag) ? e.tag : Wn();
|
|
2241
|
+
return ke(d, u, c);
|
|
2169
2242
|
};
|
|
2170
2243
|
}
|
|
2171
|
-
const
|
|
2244
|
+
const en = {
|
|
2172
2245
|
name: "i18n-n",
|
|
2173
|
-
props:
|
|
2246
|
+
props: H({
|
|
2174
2247
|
value: {
|
|
2175
2248
|
type: Number,
|
|
2176
2249
|
required: !0
|
|
@@ -2178,14 +2251,14 @@ const Jt = {
|
|
|
2178
2251
|
format: {
|
|
2179
2252
|
type: [String, Object]
|
|
2180
2253
|
}
|
|
2181
|
-
},
|
|
2254
|
+
}, pt),
|
|
2182
2255
|
setup(e, t) {
|
|
2183
|
-
const n = e.i18n ||
|
|
2184
|
-
return
|
|
2256
|
+
const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
|
|
2257
|
+
return jn(e, t, kn, (...r) => n[ot](...r));
|
|
2185
2258
|
}
|
|
2186
|
-
},
|
|
2259
|
+
}, tn = {
|
|
2187
2260
|
name: "i18n-d",
|
|
2188
|
-
props:
|
|
2261
|
+
props: H({
|
|
2189
2262
|
value: {
|
|
2190
2263
|
type: [Number, Date],
|
|
2191
2264
|
required: !0
|
|
@@ -2193,13 +2266,13 @@ const Jt = {
|
|
|
2193
2266
|
format: {
|
|
2194
2267
|
type: [String, Object]
|
|
2195
2268
|
}
|
|
2196
|
-
},
|
|
2269
|
+
}, pt),
|
|
2197
2270
|
setup(e, t) {
|
|
2198
|
-
const n = e.i18n ||
|
|
2199
|
-
return
|
|
2271
|
+
const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
|
|
2272
|
+
return jn(e, t, Fn, (...r) => n[nt](...r));
|
|
2200
2273
|
}
|
|
2201
2274
|
};
|
|
2202
|
-
function
|
|
2275
|
+
function Ys(e, t) {
|
|
2203
2276
|
const n = e;
|
|
2204
2277
|
if (e.mode === "composition")
|
|
2205
2278
|
return n.__getInstance(t) || e.global;
|
|
@@ -2208,34 +2281,34 @@ function ws(e, t) {
|
|
|
2208
2281
|
return r != null ? r.__composer : e.global.__composer;
|
|
2209
2282
|
}
|
|
2210
2283
|
}
|
|
2211
|
-
function
|
|
2284
|
+
function zs(e) {
|
|
2212
2285
|
const t = (s) => {
|
|
2213
2286
|
const { instance: l, modifiers: i, value: c } = s;
|
|
2214
2287
|
if (!l || !l.$)
|
|
2215
|
-
throw
|
|
2216
|
-
const
|
|
2217
|
-
process.env.NODE_ENV !== "production" && i.preserve &&
|
|
2218
|
-
const
|
|
2288
|
+
throw Q(D.UNEXPECTED_ERROR);
|
|
2289
|
+
const u = Ys(e, l.$);
|
|
2290
|
+
process.env.NODE_ENV !== "production" && i.preserve && be(je(Z.NOT_SUPPORTED_PRESERVE));
|
|
2291
|
+
const d = nn(c);
|
|
2219
2292
|
return [
|
|
2220
|
-
Reflect.apply(
|
|
2221
|
-
|
|
2293
|
+
Reflect.apply(u.t, u, [...on(d)]),
|
|
2294
|
+
u
|
|
2222
2295
|
];
|
|
2223
2296
|
};
|
|
2224
2297
|
return {
|
|
2225
2298
|
created: (s, l) => {
|
|
2226
2299
|
const [i, c] = t(l);
|
|
2227
|
-
|
|
2300
|
+
te && e.global === c && (s.__i18nWatcher = $e(c.locale, () => {
|
|
2228
2301
|
l.instance && l.instance.$forceUpdate();
|
|
2229
2302
|
})), s.__composer = c, s.textContent = i;
|
|
2230
2303
|
},
|
|
2231
2304
|
unmounted: (s) => {
|
|
2232
|
-
|
|
2305
|
+
te && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
|
|
2233
2306
|
},
|
|
2234
2307
|
beforeUpdate: (s, { value: l }) => {
|
|
2235
2308
|
if (s.__composer) {
|
|
2236
|
-
const i = s.__composer, c =
|
|
2309
|
+
const i = s.__composer, c = nn(l);
|
|
2237
2310
|
s.textContent = Reflect.apply(i.t, i, [
|
|
2238
|
-
...
|
|
2311
|
+
...on(c)
|
|
2239
2312
|
]);
|
|
2240
2313
|
}
|
|
2241
2314
|
},
|
|
@@ -2245,71 +2318,71 @@ function Rs(e) {
|
|
|
2245
2318
|
}
|
|
2246
2319
|
};
|
|
2247
2320
|
}
|
|
2248
|
-
function
|
|
2321
|
+
function nn(e) {
|
|
2249
2322
|
if (h(e))
|
|
2250
2323
|
return { path: e };
|
|
2251
|
-
if (
|
|
2324
|
+
if (y(e)) {
|
|
2252
2325
|
if (!("path" in e))
|
|
2253
|
-
throw
|
|
2326
|
+
throw Q(D.REQUIRED_VALUE, "path");
|
|
2254
2327
|
return e;
|
|
2255
2328
|
} else
|
|
2256
|
-
throw
|
|
2329
|
+
throw Q(D.INVALID_VALUE);
|
|
2257
2330
|
}
|
|
2258
|
-
function
|
|
2331
|
+
function on(e) {
|
|
2259
2332
|
const { path: t, locale: n, args: r, choice: o, plural: a } = e, s = {}, l = r || {};
|
|
2260
|
-
return h(n) && (s.locale = n),
|
|
2333
|
+
return h(n) && (s.locale = n), M(o) && (s.plural = o), M(a) && (s.plural = a), [t, l, s];
|
|
2261
2334
|
}
|
|
2262
|
-
function
|
|
2263
|
-
const r =
|
|
2264
|
-
process.env.NODE_ENV !== "production" && a && o &&
|
|
2265
|
-
name:
|
|
2266
|
-
})), a && (e.component(o ? "i18n" :
|
|
2335
|
+
function Ks(e, t, ...n) {
|
|
2336
|
+
const r = y(n[0]) ? n[0] : {}, o = !!r.useI18nComponentName, a = A(r.globalInstall) ? r.globalInstall : !0;
|
|
2337
|
+
process.env.NODE_ENV !== "production" && a && o && be(je(Z.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
2338
|
+
name: Ke.name
|
|
2339
|
+
})), a && (e.component(o ? "i18n" : Ke.name, Ke), e.component(en.name, en), e.component(tn.name, tn)), e.directive("t", zs(t));
|
|
2267
2340
|
}
|
|
2268
|
-
const
|
|
2269
|
-
let
|
|
2270
|
-
async function
|
|
2341
|
+
const Hn = "vue-i18n: composer properties";
|
|
2342
|
+
let at;
|
|
2343
|
+
async function Xs(e, t) {
|
|
2271
2344
|
return new Promise((n, r) => {
|
|
2272
2345
|
try {
|
|
2273
|
-
|
|
2346
|
+
Rs({
|
|
2274
2347
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2275
|
-
label:
|
|
2348
|
+
label: ze["vue-devtools-plugin-vue-i18n"],
|
|
2276
2349
|
packageName: "vue-i18n",
|
|
2277
2350
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2278
2351
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2279
|
-
componentStateTypes: [
|
|
2352
|
+
componentStateTypes: [Hn],
|
|
2280
2353
|
app: e
|
|
2281
2354
|
}, (o) => {
|
|
2282
|
-
|
|
2283
|
-
|
|
2355
|
+
at = o, o.on.visitComponentTree(({ componentInstance: s, treeNode: l }) => {
|
|
2356
|
+
Qs(s, l, t);
|
|
2284
2357
|
}), o.on.inspectComponent(({ componentInstance: s, instanceData: l }) => {
|
|
2285
|
-
s.vnode.el && s.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? s.vnode.el.__VUE_I18N__ !== t.global.__composer &&
|
|
2358
|
+
s.vnode.el && s.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? s.vnode.el.__VUE_I18N__ !== t.global.__composer && rn(l, s.vnode.el.__VUE_I18N__) : rn(l, s.vnode.el.__VUE_I18N__));
|
|
2286
2359
|
}), o.addInspector({
|
|
2287
2360
|
id: "vue-i18n-resource-inspector",
|
|
2288
|
-
label:
|
|
2361
|
+
label: ze["vue-i18n-resource-inspector"],
|
|
2289
2362
|
icon: "language",
|
|
2290
|
-
treeFilterPlaceholder:
|
|
2363
|
+
treeFilterPlaceholder: Fs["vue-i18n-resource-inspector"]
|
|
2291
2364
|
}), o.on.getInspectorTree((s) => {
|
|
2292
|
-
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2365
|
+
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && ta(s, t);
|
|
2293
2366
|
});
|
|
2294
2367
|
const a = /* @__PURE__ */ new Map();
|
|
2295
2368
|
o.on.getInspectorState(async (s) => {
|
|
2296
2369
|
if (s.app === e && s.inspectorId === "vue-i18n-resource-inspector")
|
|
2297
|
-
if (o.unhighlightElement(),
|
|
2370
|
+
if (o.unhighlightElement(), oa(s, t), s.nodeId === "global") {
|
|
2298
2371
|
if (!a.has(s.app)) {
|
|
2299
2372
|
const [l] = await o.getComponentInstances(s.app);
|
|
2300
2373
|
a.set(s.app, l);
|
|
2301
2374
|
}
|
|
2302
2375
|
o.highlightElement(a.get(s.app));
|
|
2303
2376
|
} else {
|
|
2304
|
-
const l =
|
|
2377
|
+
const l = na(s.nodeId, t);
|
|
2305
2378
|
l && o.highlightElement(l);
|
|
2306
2379
|
}
|
|
2307
2380
|
}), o.on.editInspectorState((s) => {
|
|
2308
|
-
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2381
|
+
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && sa(s, t);
|
|
2309
2382
|
}), o.addTimelineLayer({
|
|
2310
2383
|
id: "vue-i18n-timeline",
|
|
2311
|
-
label:
|
|
2312
|
-
color:
|
|
2384
|
+
label: ze["vue-i18n-timeline"],
|
|
2385
|
+
color: ks["vue-i18n-timeline"]
|
|
2313
2386
|
}), n(!0);
|
|
2314
2387
|
});
|
|
2315
2388
|
} catch (o) {
|
|
@@ -2317,22 +2390,22 @@ async function ks(e, t) {
|
|
|
2317
2390
|
}
|
|
2318
2391
|
});
|
|
2319
2392
|
}
|
|
2320
|
-
function
|
|
2393
|
+
function Bn(e) {
|
|
2321
2394
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2322
2395
|
}
|
|
2323
|
-
function
|
|
2396
|
+
function Qs(e, t, n) {
|
|
2324
2397
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2325
2398
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2326
2399
|
const o = {
|
|
2327
|
-
label: `i18n (${
|
|
2400
|
+
label: `i18n (${Bn(e)} Scope)`,
|
|
2328
2401
|
textColor: 0,
|
|
2329
2402
|
backgroundColor: 16764185
|
|
2330
2403
|
};
|
|
2331
2404
|
t.tags.push(o);
|
|
2332
2405
|
}
|
|
2333
2406
|
}
|
|
2334
|
-
function
|
|
2335
|
-
const n =
|
|
2407
|
+
function rn(e, t) {
|
|
2408
|
+
const n = Hn;
|
|
2336
2409
|
e.state.push({
|
|
2337
2410
|
type: n,
|
|
2338
2411
|
key: "locale",
|
|
@@ -2357,7 +2430,7 @@ function tn(e, t) {
|
|
|
2357
2430
|
type: n,
|
|
2358
2431
|
key: "messages",
|
|
2359
2432
|
editable: !1,
|
|
2360
|
-
value:
|
|
2433
|
+
value: ht(t.messages.value)
|
|
2361
2434
|
}), e.state.push({
|
|
2362
2435
|
type: n,
|
|
2363
2436
|
key: "datetimeFormats",
|
|
@@ -2370,27 +2443,27 @@ function tn(e, t) {
|
|
|
2370
2443
|
value: t.numberFormats.value
|
|
2371
2444
|
});
|
|
2372
2445
|
}
|
|
2373
|
-
function
|
|
2446
|
+
function ht(e) {
|
|
2374
2447
|
const t = {};
|
|
2375
2448
|
return Object.keys(e).forEach((n) => {
|
|
2376
2449
|
const r = e[n];
|
|
2377
|
-
|
|
2450
|
+
$(r) && "source" in r ? t[n] = ea(r) : S(r) ? t[n] = ht(r) : t[n] = r;
|
|
2378
2451
|
}), t;
|
|
2379
2452
|
}
|
|
2380
|
-
const
|
|
2453
|
+
const Js = {
|
|
2381
2454
|
"<": "<",
|
|
2382
2455
|
">": ">",
|
|
2383
2456
|
'"': """,
|
|
2384
2457
|
"&": "&"
|
|
2385
2458
|
};
|
|
2386
|
-
function
|
|
2387
|
-
return e.replace(/[<>"&]/g,
|
|
2459
|
+
function qs(e) {
|
|
2460
|
+
return e.replace(/[<>"&]/g, Zs);
|
|
2388
2461
|
}
|
|
2389
|
-
function
|
|
2390
|
-
return
|
|
2462
|
+
function Zs(e) {
|
|
2463
|
+
return Js[e] || e;
|
|
2391
2464
|
}
|
|
2392
|
-
function
|
|
2393
|
-
const t = e.source ? `("${
|
|
2465
|
+
function ea(e) {
|
|
2466
|
+
const t = e.source ? `("${qs(e.source)}")` : "(?)";
|
|
2394
2467
|
return {
|
|
2395
2468
|
_custom: {
|
|
2396
2469
|
type: "function",
|
|
@@ -2398,7 +2471,7 @@ function Ws(e) {
|
|
|
2398
2471
|
}
|
|
2399
2472
|
};
|
|
2400
2473
|
}
|
|
2401
|
-
function
|
|
2474
|
+
function ta(e, t) {
|
|
2402
2475
|
e.rootNodes.push({
|
|
2403
2476
|
id: "global",
|
|
2404
2477
|
label: "Global Scope"
|
|
@@ -2408,11 +2481,11 @@ function xs(e, t) {
|
|
|
2408
2481
|
const a = t.mode === "composition" ? o : o.__composer;
|
|
2409
2482
|
n !== a && e.rootNodes.push({
|
|
2410
2483
|
id: a.id.toString(),
|
|
2411
|
-
label: `${
|
|
2484
|
+
label: `${Bn(r)} Scope`
|
|
2412
2485
|
});
|
|
2413
2486
|
}
|
|
2414
2487
|
}
|
|
2415
|
-
function
|
|
2488
|
+
function na(e, t) {
|
|
2416
2489
|
let n = null;
|
|
2417
2490
|
if (e !== "global") {
|
|
2418
2491
|
for (const [r, o] of t.__instances.entries())
|
|
@@ -2423,7 +2496,7 @@ function Gs(e, t) {
|
|
|
2423
2496
|
}
|
|
2424
2497
|
return n;
|
|
2425
2498
|
}
|
|
2426
|
-
function
|
|
2499
|
+
function Yn(e, t) {
|
|
2427
2500
|
if (e === "global")
|
|
2428
2501
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2429
2502
|
{
|
|
@@ -2431,11 +2504,11 @@ function $n(e, t) {
|
|
|
2431
2504
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2432
2505
|
}
|
|
2433
2506
|
}
|
|
2434
|
-
function
|
|
2435
|
-
const n =
|
|
2436
|
-
return n && (e.state =
|
|
2507
|
+
function oa(e, t) {
|
|
2508
|
+
const n = Yn(e.nodeId, t);
|
|
2509
|
+
return n && (e.state = ra(n)), null;
|
|
2437
2510
|
}
|
|
2438
|
-
function
|
|
2511
|
+
function ra(e) {
|
|
2439
2512
|
const t = {}, n = "Locale related info", r = [
|
|
2440
2513
|
{
|
|
2441
2514
|
type: n,
|
|
@@ -2468,7 +2541,7 @@ function js(e) {
|
|
|
2468
2541
|
type: o,
|
|
2469
2542
|
key: "messages",
|
|
2470
2543
|
editable: !1,
|
|
2471
|
-
value:
|
|
2544
|
+
value: ht(e.messages.value)
|
|
2472
2545
|
}
|
|
2473
2546
|
];
|
|
2474
2547
|
t[o] = a;
|
|
@@ -2494,10 +2567,10 @@ function js(e) {
|
|
|
2494
2567
|
}
|
|
2495
2568
|
return t;
|
|
2496
2569
|
}
|
|
2497
|
-
function
|
|
2498
|
-
if (
|
|
2570
|
+
function lt(e, t) {
|
|
2571
|
+
if (at) {
|
|
2499
2572
|
let n;
|
|
2500
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
2573
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), at.addTimelineEvent({
|
|
2501
2574
|
layerId: "vue-i18n-timeline",
|
|
2502
2575
|
event: {
|
|
2503
2576
|
title: e,
|
|
@@ -2510,27 +2583,27 @@ function nt(e, t) {
|
|
|
2510
2583
|
});
|
|
2511
2584
|
}
|
|
2512
2585
|
}
|
|
2513
|
-
function
|
|
2514
|
-
const n =
|
|
2586
|
+
function sa(e, t) {
|
|
2587
|
+
const n = Yn(e.nodeId, t);
|
|
2515
2588
|
if (n) {
|
|
2516
2589
|
const [r] = e.path;
|
|
2517
|
-
r === "locale" && h(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (h(e.state.value) ||
|
|
2590
|
+
r === "locale" && h(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (h(e.state.value) || R(e.state.value) || S(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && A(e.state.value) && (n.inheritLocale = e.state.value);
|
|
2518
2591
|
}
|
|
2519
2592
|
}
|
|
2520
|
-
const
|
|
2521
|
-
function
|
|
2522
|
-
const n = A(e.globalInjection) ? e.globalInjection : !0, r = !0, o = /* @__PURE__ */ new Map(), [a, s] =
|
|
2523
|
-
function i(
|
|
2524
|
-
return o.get(
|
|
2593
|
+
const aa = /* @__PURE__ */ ne("global-vue-i18n");
|
|
2594
|
+
function la(e = {}, t) {
|
|
2595
|
+
const n = A(e.globalInjection) ? e.globalInjection : !0, r = !0, o = /* @__PURE__ */ new Map(), [a, s] = ia(e), l = ne(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
2596
|
+
function i(d) {
|
|
2597
|
+
return o.get(d) || null;
|
|
2525
2598
|
}
|
|
2526
|
-
function c(
|
|
2527
|
-
o.set(
|
|
2599
|
+
function c(d, _) {
|
|
2600
|
+
o.set(d, _);
|
|
2528
2601
|
}
|
|
2529
|
-
function
|
|
2530
|
-
o.delete(
|
|
2602
|
+
function u(d) {
|
|
2603
|
+
o.delete(d);
|
|
2531
2604
|
}
|
|
2532
2605
|
{
|
|
2533
|
-
const
|
|
2606
|
+
const d = {
|
|
2534
2607
|
get mode() {
|
|
2535
2608
|
return "composition";
|
|
2536
2609
|
},
|
|
@@ -2538,19 +2611,19 @@ function Ys(e = {}, t) {
|
|
|
2538
2611
|
return r;
|
|
2539
2612
|
},
|
|
2540
2613
|
async install(_, ...g) {
|
|
2541
|
-
process.env.NODE_ENV !== "production" && (_.__VUE_I18N__ =
|
|
2542
|
-
const
|
|
2614
|
+
process.env.NODE_ENV !== "production" && (_.__VUE_I18N__ = d), _.__VUE_I18N_SYMBOL__ = l, _.provide(_.__VUE_I18N_SYMBOL__, d), n && pa(_, d.global), Ks(_, d, ...g);
|
|
2615
|
+
const v = _.unmount;
|
|
2543
2616
|
if (_.unmount = () => {
|
|
2544
|
-
|
|
2617
|
+
d.dispose(), v();
|
|
2545
2618
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
2546
|
-
if (!await
|
|
2547
|
-
throw
|
|
2548
|
-
const
|
|
2619
|
+
if (!await Xs(_, d))
|
|
2620
|
+
throw Q(D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
2621
|
+
const E = Nn();
|
|
2549
2622
|
{
|
|
2550
|
-
const
|
|
2551
|
-
|
|
2623
|
+
const N = s;
|
|
2624
|
+
N[we] && N[we](E);
|
|
2552
2625
|
}
|
|
2553
|
-
|
|
2626
|
+
E.on("*", lt);
|
|
2554
2627
|
}
|
|
2555
2628
|
},
|
|
2556
2629
|
get global() {
|
|
@@ -2562,56 +2635,56 @@ function Ys(e = {}, t) {
|
|
|
2562
2635
|
__instances: o,
|
|
2563
2636
|
__getInstance: i,
|
|
2564
2637
|
__setInstance: c,
|
|
2565
|
-
__deleteInstance:
|
|
2638
|
+
__deleteInstance: u
|
|
2566
2639
|
};
|
|
2567
|
-
return
|
|
2640
|
+
return d;
|
|
2568
2641
|
}
|
|
2569
2642
|
}
|
|
2570
|
-
function
|
|
2571
|
-
const t =
|
|
2643
|
+
function vt(e = {}) {
|
|
2644
|
+
const t = it();
|
|
2572
2645
|
if (t == null)
|
|
2573
|
-
throw
|
|
2646
|
+
throw Q(D.MUST_BE_CALL_SETUP_TOP);
|
|
2574
2647
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2575
|
-
throw
|
|
2576
|
-
const n =
|
|
2648
|
+
throw Q(D.NOT_INSLALLED);
|
|
2649
|
+
const n = ca(t), r = fa(n), o = xn(t), a = ua(e, o);
|
|
2577
2650
|
if (a === "global")
|
|
2578
|
-
return
|
|
2651
|
+
return Ws(r, e, o), r;
|
|
2579
2652
|
if (a === "parent") {
|
|
2580
|
-
let i =
|
|
2581
|
-
return i == null && (process.env.NODE_ENV !== "production" &&
|
|
2653
|
+
let i = _a(n, t, e.__useComponent);
|
|
2654
|
+
return i == null && (process.env.NODE_ENV !== "production" && be(je(Z.NOT_FOUND_PARENT_SCOPE)), i = r), i;
|
|
2582
2655
|
}
|
|
2583
2656
|
const s = n;
|
|
2584
2657
|
let l = s.__getInstance(t);
|
|
2585
2658
|
if (l == null) {
|
|
2586
|
-
const i =
|
|
2587
|
-
"__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l =
|
|
2659
|
+
const i = H({}, e);
|
|
2660
|
+
"__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l = Gn(i), da(s, t, l), s.__setInstance(t, l);
|
|
2588
2661
|
}
|
|
2589
2662
|
return l;
|
|
2590
2663
|
}
|
|
2591
|
-
function
|
|
2592
|
-
const r =
|
|
2664
|
+
function ia(e, t, n) {
|
|
2665
|
+
const r = bo();
|
|
2593
2666
|
{
|
|
2594
|
-
const o = r.run(() =>
|
|
2667
|
+
const o = r.run(() => Gn(e));
|
|
2595
2668
|
if (o == null)
|
|
2596
|
-
throw
|
|
2669
|
+
throw Q(D.UNEXPECTED_ERROR);
|
|
2597
2670
|
return [r, o];
|
|
2598
2671
|
}
|
|
2599
2672
|
}
|
|
2600
|
-
function
|
|
2673
|
+
function ca(e) {
|
|
2601
2674
|
{
|
|
2602
|
-
const t =
|
|
2675
|
+
const t = fn(e.isCE ? aa : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2603
2676
|
if (!t)
|
|
2604
|
-
throw
|
|
2677
|
+
throw Q(e.isCE ? D.NOT_INSLALLED_WITH_PROVIDE : D.UNEXPECTED_ERROR);
|
|
2605
2678
|
return t;
|
|
2606
2679
|
}
|
|
2607
2680
|
}
|
|
2608
|
-
function
|
|
2609
|
-
return
|
|
2681
|
+
function ua(e, t) {
|
|
2682
|
+
return xe(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2610
2683
|
}
|
|
2611
|
-
function
|
|
2684
|
+
function fa(e) {
|
|
2612
2685
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2613
2686
|
}
|
|
2614
|
-
function
|
|
2687
|
+
function _a(e, t, n = !1) {
|
|
2615
2688
|
let r = null;
|
|
2616
2689
|
const o = t.root;
|
|
2617
2690
|
let a = t.parent;
|
|
@@ -2623,35 +2696,35 @@ function qs(e, t, n = !1) {
|
|
|
2623
2696
|
}
|
|
2624
2697
|
return r;
|
|
2625
2698
|
}
|
|
2626
|
-
function
|
|
2699
|
+
function da(e, t, n) {
|
|
2627
2700
|
let r = null;
|
|
2628
|
-
|
|
2701
|
+
To(() => {
|
|
2629
2702
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
2630
|
-
t.vnode.el.__VUE_I18N__ = n, r =
|
|
2703
|
+
t.vnode.el.__VUE_I18N__ = n, r = Nn();
|
|
2631
2704
|
const o = n;
|
|
2632
|
-
o[
|
|
2705
|
+
o[we] && o[we](r), r.on("*", lt);
|
|
2633
2706
|
}
|
|
2634
|
-
}, t),
|
|
2707
|
+
}, t), yo(() => {
|
|
2635
2708
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
2636
|
-
r && r.off("*",
|
|
2709
|
+
r && r.off("*", lt);
|
|
2637
2710
|
const o = n;
|
|
2638
|
-
o[
|
|
2711
|
+
o[rt] && o[rt](), delete t.vnode.el.__VUE_I18N__;
|
|
2639
2712
|
}
|
|
2640
2713
|
e.__deleteInstance(t);
|
|
2641
2714
|
}, t);
|
|
2642
2715
|
}
|
|
2643
|
-
const
|
|
2716
|
+
const ma = [
|
|
2644
2717
|
"locale",
|
|
2645
2718
|
"fallbackLocale",
|
|
2646
2719
|
"availableLocales"
|
|
2647
|
-
],
|
|
2648
|
-
function
|
|
2720
|
+
], ga = ["t", "rt", "d", "n", "tm"];
|
|
2721
|
+
function pa(e, t) {
|
|
2649
2722
|
const n = /* @__PURE__ */ Object.create(null);
|
|
2650
|
-
|
|
2723
|
+
ma.forEach((r) => {
|
|
2651
2724
|
const o = Object.getOwnPropertyDescriptor(t, r);
|
|
2652
2725
|
if (!o)
|
|
2653
|
-
throw
|
|
2654
|
-
const a =
|
|
2726
|
+
throw Q(D.UNEXPECTED_ERROR);
|
|
2727
|
+
const a = Io(o.value) ? {
|
|
2655
2728
|
get() {
|
|
2656
2729
|
return o.value.value;
|
|
2657
2730
|
},
|
|
@@ -2664,42 +2737,42 @@ function na(e, t) {
|
|
|
2664
2737
|
}
|
|
2665
2738
|
};
|
|
2666
2739
|
Object.defineProperty(n, r, a);
|
|
2667
|
-
}), e.config.globalProperties.$i18n = n,
|
|
2740
|
+
}), e.config.globalProperties.$i18n = n, ga.forEach((r) => {
|
|
2668
2741
|
const o = Object.getOwnPropertyDescriptor(t, r);
|
|
2669
2742
|
if (!o || !o.value)
|
|
2670
|
-
throw
|
|
2743
|
+
throw Q(D.UNEXPECTED_ERROR);
|
|
2671
2744
|
Object.defineProperty(e.config.globalProperties, `$${r}`, o);
|
|
2672
2745
|
});
|
|
2673
2746
|
}
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2747
|
+
ps(Qr);
|
|
2748
|
+
hs(yn);
|
|
2749
|
+
Ms();
|
|
2677
2750
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2678
|
-
const e =
|
|
2679
|
-
e.__INTLIFY__ = !0,
|
|
2751
|
+
const e = ft();
|
|
2752
|
+
e.__INTLIFY__ = !0, ss(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2680
2753
|
}
|
|
2681
2754
|
process.env.NODE_ENV;
|
|
2682
|
-
const
|
|
2755
|
+
const ha = {
|
|
2683
2756
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
2684
2757
|
const { normalize: t } = e;
|
|
2685
2758
|
return t(["\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907"]);
|
|
2686
2759
|
}
|
|
2687
|
-
},
|
|
2760
|
+
}, va = {
|
|
2688
2761
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
2689
2762
|
const { normalize: t } = e;
|
|
2690
2763
|
return t(["online only"]);
|
|
2691
2764
|
}
|
|
2692
2765
|
};
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
const
|
|
2766
|
+
Ne("right", wr);
|
|
2767
|
+
Ne("group", Dr);
|
|
2768
|
+
Ne("group-closed", Cr);
|
|
2769
|
+
Ne("user", Ar);
|
|
2770
|
+
Ne("plus", Pr);
|
|
2771
|
+
Ne("minus", Rr);
|
|
2772
|
+
const Ea = _e({
|
|
2700
2773
|
components: {
|
|
2701
|
-
CountShow:
|
|
2702
|
-
GroupShow:
|
|
2774
|
+
CountShow: dn,
|
|
2775
|
+
GroupShow: Sr
|
|
2703
2776
|
},
|
|
2704
2777
|
props: {
|
|
2705
2778
|
deviceGroup: Object,
|
|
@@ -2722,21 +2795,21 @@ const sa = Re({
|
|
|
2722
2795
|
}
|
|
2723
2796
|
},
|
|
2724
2797
|
setup(e) {
|
|
2725
|
-
const t =
|
|
2798
|
+
const t = la({
|
|
2726
2799
|
locale: e.locale,
|
|
2727
2800
|
messages: {
|
|
2728
|
-
"zh-cn":
|
|
2729
|
-
"en-us":
|
|
2801
|
+
"zh-cn": ha,
|
|
2802
|
+
"en-us": va
|
|
2730
2803
|
},
|
|
2731
2804
|
fallbackLocale: "en-us",
|
|
2732
2805
|
silentTranslationWarn: !0,
|
|
2733
2806
|
silentFallbackWarn: !0
|
|
2734
2807
|
});
|
|
2735
|
-
|
|
2736
|
-
const n =
|
|
2808
|
+
So("theme", e.theme);
|
|
2809
|
+
const n = G({
|
|
2737
2810
|
onlyShowOnline: !1,
|
|
2738
2811
|
searchStr: ""
|
|
2739
|
-
}), r =
|
|
2812
|
+
}), r = G();
|
|
2740
2813
|
return {
|
|
2741
2814
|
i18nHello: t.global,
|
|
2742
2815
|
inputSearchRef: r,
|
|
@@ -2744,37 +2817,37 @@ const sa = Re({
|
|
|
2744
2817
|
};
|
|
2745
2818
|
}
|
|
2746
2819
|
});
|
|
2747
|
-
const
|
|
2748
|
-
function
|
|
2820
|
+
const Oa = { class: "device-group-list" }, Na = { class: "search-panel" }, ba = { for: "onlineShow" }, Ta = { class: "device-panel" };
|
|
2821
|
+
function ya(e, t, n, r, o, a) {
|
|
2749
2822
|
var s;
|
|
2750
|
-
const l =
|
|
2751
|
-
return
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
default:
|
|
2755
|
-
|
|
2823
|
+
const l = ie("CountShow"), i = ie("group-show");
|
|
2824
|
+
return P(), k("div", Oa, [
|
|
2825
|
+
C("div", Na, [
|
|
2826
|
+
se(l, { countInfo: e.deviceGroup }, {
|
|
2827
|
+
default: ce(() => [
|
|
2828
|
+
C("input", {
|
|
2756
2829
|
type: "checkbox",
|
|
2757
2830
|
id: "onlineShow",
|
|
2758
2831
|
value: "onlineShow",
|
|
2759
2832
|
onChange: t[0] || (t[0] = (...c) => e.onCheckBoxChange && e.onCheckBoxChange(...c))
|
|
2760
2833
|
}, null, 32),
|
|
2761
|
-
|
|
2834
|
+
C("label", ba, ue(e.i18nHello.t("zhi-xian-shi-zai-xian-she-bei")), 1)
|
|
2762
2835
|
]),
|
|
2763
2836
|
_: 1
|
|
2764
2837
|
}, 8, ["countInfo"])
|
|
2765
2838
|
]),
|
|
2766
|
-
|
|
2767
|
-
(
|
|
2839
|
+
C("div", Ta, [
|
|
2840
|
+
(P(!0), k(de, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (c, u) => (P(), _n(i, {
|
|
2768
2841
|
controlParams: e.controlParams,
|
|
2769
|
-
key:
|
|
2842
|
+
key: u,
|
|
2770
2843
|
deviceGroup: c
|
|
2771
2844
|
}, {
|
|
2772
|
-
group:
|
|
2773
|
-
oe(e.$slots, "group", { group:
|
|
2845
|
+
group: ce(({ group: d }) => [
|
|
2846
|
+
oe(e.$slots, "group", { group: d }, void 0, !0)
|
|
2774
2847
|
]),
|
|
2775
|
-
device:
|
|
2848
|
+
device: ce(({ device: d, group: _ }) => [
|
|
2776
2849
|
oe(e.$slots, "device", {
|
|
2777
|
-
device:
|
|
2850
|
+
device: d,
|
|
2778
2851
|
group: _
|
|
2779
2852
|
}, void 0, !0)
|
|
2780
2853
|
]),
|
|
@@ -2783,18 +2856,303 @@ function ua(e, t, n, r, o, a) {
|
|
|
2783
2856
|
])
|
|
2784
2857
|
]);
|
|
2785
2858
|
}
|
|
2786
|
-
const
|
|
2787
|
-
|
|
2788
|
-
|
|
2859
|
+
const Ia = /* @__PURE__ */ me(Ea, [["render", ya], ["__scopeId", "data-v-17e4082a"]]);
|
|
2860
|
+
var La = Object.defineProperty, Sa = Object.defineProperties, wa = Object.getOwnPropertyDescriptors, sn = Object.getOwnPropertySymbols, Da = Object.prototype.hasOwnProperty, Ca = Object.prototype.propertyIsEnumerable, an = (e, t, n) => t in e ? La(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zn = (e, t) => {
|
|
2861
|
+
for (var n in t || (t = {}))
|
|
2862
|
+
Da.call(t, n) && an(e, n, t[n]);
|
|
2863
|
+
if (sn)
|
|
2864
|
+
for (var n of sn(t))
|
|
2865
|
+
Ca.call(t, n) && an(e, n, t[n]);
|
|
2866
|
+
return e;
|
|
2867
|
+
}, Aa = (e, t) => Sa(e, wa(t));
|
|
2868
|
+
const ye = 6, ln = ye * 2;
|
|
2869
|
+
function Pa(e, t) {
|
|
2870
|
+
return e.map(
|
|
2871
|
+
({ leftTop: { col: n, row: r }, rightBottom: { col: o, row: a } }) => `<line x1="${n * t.col + ye}" y1="${r * t.row + ye}" x2="${o * t.col + ye}" y2="${a * t.row + ye}" stroke="black" stroke-width="5"/>`
|
|
2872
|
+
).join(" ");
|
|
2873
|
+
}
|
|
2874
|
+
function Ra(e, t, n) {
|
|
2875
|
+
return n.findIndex((r) => e >= r.leftTop.row && e < r.rightBottom.row && t >= r.leftTop.col && t < r.rightBottom.col) >= 0;
|
|
2876
|
+
}
|
|
2877
|
+
function Fa(e, t, n) {
|
|
2878
|
+
n.forEach((r) => {
|
|
2879
|
+
const o = Aa(zn({}, r.leftTop), {
|
|
2880
|
+
id: Kn(r.leftTop),
|
|
2881
|
+
layout: {
|
|
2882
|
+
left: 100 / t.col * r.leftTop.col,
|
|
2883
|
+
top: 100 / t.row * r.leftTop.row,
|
|
2884
|
+
width: 100 / t.col * (r.rightBottom.col - r.leftTop.col),
|
|
2885
|
+
height: 100 / t.row * (r.rightBottom.row - r.leftTop.row)
|
|
2886
|
+
}
|
|
2887
|
+
});
|
|
2888
|
+
e.push(o);
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
function Kn(e) {
|
|
2892
|
+
return `${e.row}-${e.col}`;
|
|
2893
|
+
}
|
|
2894
|
+
const cn = "ComponentsDefaultLayoutKeyAF84566";
|
|
2895
|
+
function ka(e) {
|
|
2896
|
+
const t = [], n = [];
|
|
2897
|
+
for (let r = 0; r < e.points.length / 2; r++)
|
|
2898
|
+
n.push(e.points.slice(r * 2, r * 2 + 2));
|
|
2899
|
+
if (typeof e.row == "number") {
|
|
2900
|
+
const r = e.row;
|
|
2901
|
+
n.forEach(([o, a]) => {
|
|
2902
|
+
t.push({
|
|
2903
|
+
leftTop: { row: r, col: o },
|
|
2904
|
+
rightBottom: { row: r, col: a }
|
|
2905
|
+
});
|
|
2906
|
+
});
|
|
2907
|
+
}
|
|
2908
|
+
if (typeof e.col == "number") {
|
|
2909
|
+
const r = e.col;
|
|
2910
|
+
n.forEach(([o, a]) => {
|
|
2911
|
+
t.push({
|
|
2912
|
+
leftTop: { col: r, row: o },
|
|
2913
|
+
rightBottom: { col: r, row: a }
|
|
2914
|
+
});
|
|
2915
|
+
});
|
|
2916
|
+
}
|
|
2917
|
+
return t;
|
|
2918
|
+
}
|
|
2919
|
+
const Ue = {
|
|
2920
|
+
TransLayoutToFrams(e) {
|
|
2921
|
+
const t = [];
|
|
2922
|
+
e.area && t.push(e.area), e.areas && t.push(...e.areas);
|
|
2923
|
+
const n = [];
|
|
2924
|
+
for (let r = 0; r < e.row; r++)
|
|
2925
|
+
for (let o = 0; o < e.col; o++) {
|
|
2926
|
+
if (Ra(r, o, t))
|
|
2927
|
+
continue;
|
|
2928
|
+
const a = zn({
|
|
2929
|
+
layout: {
|
|
2930
|
+
left: 100 / e.col * o,
|
|
2931
|
+
top: 100 / e.row * r,
|
|
2932
|
+
width: 100 / e.col,
|
|
2933
|
+
height: 100 / e.row
|
|
2934
|
+
},
|
|
2935
|
+
id: Kn({ row: r, col: o })
|
|
2936
|
+
}, { row: r, col: o });
|
|
2937
|
+
n.push(a);
|
|
2938
|
+
}
|
|
2939
|
+
return Fa(n, e, t), n;
|
|
2940
|
+
},
|
|
2941
|
+
TransLayoutToSVG(e, t) {
|
|
2942
|
+
const n = [];
|
|
2943
|
+
e.area && n.push(e.area), e.areas && n.push(...e.areas);
|
|
2944
|
+
const r = [], o = [];
|
|
2945
|
+
for (let c = 0; c <= e.row; c++)
|
|
2946
|
+
r.push({
|
|
2947
|
+
row: c,
|
|
2948
|
+
points: [0, e.col]
|
|
2949
|
+
});
|
|
2950
|
+
for (let c = 0; c <= e.col; c++)
|
|
2951
|
+
o.push({
|
|
2952
|
+
col: c,
|
|
2953
|
+
points: [0, e.row]
|
|
2954
|
+
});
|
|
2955
|
+
n.forEach(({ leftTop: { row: c, col: u }, rightBottom: { row: d, col: _ } }) => {
|
|
2956
|
+
for (let g = c + 1; g < d; g++)
|
|
2957
|
+
r[g].points.push(u, _);
|
|
2958
|
+
for (let g = u + 1; g < _; g++)
|
|
2959
|
+
o[g].points.push(c, d);
|
|
2960
|
+
});
|
|
2961
|
+
const a = r.concat(...o), s = [];
|
|
2962
|
+
a.forEach((c) => {
|
|
2963
|
+
c.points = c.points.sort(), s.push(...ka(c));
|
|
2964
|
+
});
|
|
2965
|
+
const l = {
|
|
2966
|
+
row: t.height / e.row,
|
|
2967
|
+
col: t.width / e.col
|
|
2968
|
+
}, i = Pa(s, l);
|
|
2969
|
+
return `<svg viewBox='0 0 ${t.width + ln} ${t.height + ln} ' width="100%" height="100%"> ${i} </svg>`;
|
|
2970
|
+
},
|
|
2971
|
+
StorageDefaultLayout: {
|
|
2972
|
+
get() {
|
|
2973
|
+
const e = localStorage.getItem(cn);
|
|
2974
|
+
if (e == null)
|
|
2975
|
+
return null;
|
|
2976
|
+
try {
|
|
2977
|
+
return JSON.parse(e);
|
|
2978
|
+
} catch {
|
|
2979
|
+
return null;
|
|
2980
|
+
}
|
|
2981
|
+
},
|
|
2982
|
+
set(e) {
|
|
2983
|
+
localStorage.setItem(cn, JSON.stringify(e));
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
}, $a = _e({
|
|
2987
|
+
emits: {
|
|
2988
|
+
onselect(e, t) {
|
|
2989
|
+
return !0;
|
|
2990
|
+
}
|
|
2991
|
+
},
|
|
2992
|
+
props: {
|
|
2993
|
+
defaultLayout: {
|
|
2994
|
+
type: Object
|
|
2995
|
+
},
|
|
2996
|
+
layouts: {
|
|
2997
|
+
type: Object
|
|
2998
|
+
}
|
|
2999
|
+
},
|
|
3000
|
+
setup(e) {
|
|
3001
|
+
const t = G([]);
|
|
3002
|
+
return e.layouts && e.layouts.forEach((n) => {
|
|
3003
|
+
t.value.push({
|
|
3004
|
+
svg: Ue.TransLayoutToSVG(n, { width: 100, height: 100 }),
|
|
3005
|
+
layout: n,
|
|
3006
|
+
select: JSON.stringify(n) == JSON.stringify(e.defaultLayout)
|
|
3007
|
+
});
|
|
3008
|
+
}), {
|
|
3009
|
+
layoutInfos: t
|
|
3010
|
+
};
|
|
3011
|
+
},
|
|
3012
|
+
mounted() {
|
|
3013
|
+
const e = this.layoutInfos.find((t) => t.select);
|
|
3014
|
+
e && this.$emit("onselect", e.layout, e.svg);
|
|
3015
|
+
},
|
|
3016
|
+
methods: {
|
|
3017
|
+
selectClick(e) {
|
|
3018
|
+
e.select == !1 && (this.layoutInfos.forEach((t) => {
|
|
3019
|
+
t.select = !1;
|
|
3020
|
+
}), e.select = !0, this.$emit("onselect", e.layout, e.svg));
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
3024
|
+
const Ma = ["onClick"], Va = { style: { position: "relative", display: "inline-block", margin: "10px" } }, Ua = ["innerHTML"], xa = { style: { "vertical-align": "middle" } };
|
|
3025
|
+
function Ga(e, t, n, r, o, a) {
|
|
3026
|
+
return P(), k("div", null, [
|
|
3027
|
+
(P(!0), k(de, null, De(e.layoutInfos, (s) => (P(), k("div", {
|
|
3028
|
+
class: Xe(s.select ? "layout-item layout-item-select" : "layout-item"),
|
|
3029
|
+
onClick: (l) => e.selectClick(s)
|
|
3030
|
+
}, [
|
|
3031
|
+
C("div", Va, [
|
|
3032
|
+
C("div", {
|
|
3033
|
+
innerHTML: s.svg,
|
|
3034
|
+
class: "svg-style"
|
|
3035
|
+
}, null, 8, Ua),
|
|
3036
|
+
C("span", xa, ue(s.layout.name), 1)
|
|
3037
|
+
])
|
|
3038
|
+
], 10, Ma))), 256))
|
|
3039
|
+
]);
|
|
3040
|
+
}
|
|
3041
|
+
const Wa = /* @__PURE__ */ me($a, [["render", Ga], ["__scopeId", "data-v-b01255ca"]]), ja = _e({
|
|
3042
|
+
emits: {
|
|
3043
|
+
LayoutChange(e) {
|
|
3044
|
+
return !0;
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
components: {
|
|
3048
|
+
LayoutShow: Wa
|
|
3049
|
+
},
|
|
3050
|
+
setup(e, t) {
|
|
3051
|
+
const n = [
|
|
3052
|
+
U.Test.genLayout(1, 1),
|
|
3053
|
+
U.Test.genLayout(1, 2),
|
|
3054
|
+
U.Test.genLayout(2, 2),
|
|
3055
|
+
U.Test.genLayout(2, 3),
|
|
3056
|
+
U.genLayout(3, 3, [[0, 0, 2, 2], [2, 0, 3, 2]]),
|
|
3057
|
+
U.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3058
|
+
U.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3059
|
+
U.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3060
|
+
U.Test.genLayout(3, 3),
|
|
3061
|
+
U.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3062
|
+
U.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3063
|
+
U.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3064
|
+
U.Test.genLayout(4, 4),
|
|
3065
|
+
U.Test.genLayout(5, 5),
|
|
3066
|
+
U.Test.genLayout(6, 6)
|
|
3067
|
+
];
|
|
3068
|
+
let r = Ue.StorageDefaultLayout.get();
|
|
3069
|
+
const o = r || n[0];
|
|
3070
|
+
function a(i, c) {
|
|
3071
|
+
l.value = c, t.emit("LayoutChange", i);
|
|
3072
|
+
}
|
|
3073
|
+
const s = function(i, c) {
|
|
3074
|
+
JSON.stringify(r) != JSON.stringify(i) && (r = i, Ue.StorageDefaultLayout.set(i), a(i, c)), l.value.length == 0 && a(i, c);
|
|
3075
|
+
}, l = G("");
|
|
3076
|
+
return {
|
|
3077
|
+
onselect: s,
|
|
3078
|
+
svgSelect: l,
|
|
3079
|
+
layout: n,
|
|
3080
|
+
defaultLayout: o
|
|
3081
|
+
};
|
|
3082
|
+
},
|
|
3083
|
+
expose: []
|
|
3084
|
+
});
|
|
3085
|
+
const Xn = (e) => (Co("data-v-a690450e"), e = e(), Ao(), e), Ha = ["innerHTML"], Ba = { class: "switch-panel" }, Ya = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("div", { style: { "margin-left": "10px" } }, [
|
|
3086
|
+
/* @__PURE__ */ C("span", null, "\u8BF7\u9009\u62E9\u5E03\u5C40\u6837\u5F0F")
|
|
3087
|
+
], -1)), za = { style: { "margin-left": "10px", padding: "10px" } }, Ka = { style: { "margin-left": "10px" } }, Xa = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("span", null, "\u6807\u51C6\u6A21\u5F0F\uFF1A", -1));
|
|
3088
|
+
function Qa(e, t, n, r, o, a) {
|
|
3089
|
+
const s = ie("LayoutShow");
|
|
3090
|
+
return P(), k(de, null, [
|
|
3091
|
+
C("div", null, [
|
|
3092
|
+
C("div", {
|
|
3093
|
+
innerHTML: e.svgSelect,
|
|
3094
|
+
style: { height: "32px", display: "inline-block", "vertical-align": "middle" }
|
|
3095
|
+
}, null, 8, Ha)
|
|
3096
|
+
]),
|
|
3097
|
+
wo(C("div", Ba, [
|
|
3098
|
+
Ya,
|
|
3099
|
+
C("div", za, [
|
|
3100
|
+
C("div", Ka, [
|
|
3101
|
+
Xa,
|
|
3102
|
+
se(s, {
|
|
3103
|
+
layouts: e.layout,
|
|
3104
|
+
defaultLayout: e.defaultLayout,
|
|
3105
|
+
onOnselect: e.onselect
|
|
3106
|
+
}, null, 8, ["layouts", "defaultLayout", "onOnselect"])
|
|
3107
|
+
])
|
|
3108
|
+
])
|
|
3109
|
+
], 512), [
|
|
3110
|
+
[Do, !0]
|
|
3111
|
+
])
|
|
3112
|
+
], 64);
|
|
3113
|
+
}
|
|
3114
|
+
const Ja = /* @__PURE__ */ me(ja, [["render", Qa], ["__scopeId", "data-v-a690450e"]]), qa = _e({
|
|
3115
|
+
props: {
|
|
3116
|
+
layout: {
|
|
3117
|
+
type: Object
|
|
3118
|
+
}
|
|
3119
|
+
},
|
|
3120
|
+
setup(e) {
|
|
3121
|
+
return {
|
|
3122
|
+
frameRef: j(() => e.layout ? Ue.TransLayoutToFrams(e.layout) : [])
|
|
3123
|
+
};
|
|
3124
|
+
}
|
|
3125
|
+
});
|
|
3126
|
+
const Za = { style: { position: "relative", height: "calc(100% - 400px)", width: "100%", border: "1px solid", "border-bottom": "0px", "border-left": "0px" } };
|
|
3127
|
+
function el(e, t, n, r, o, a) {
|
|
3128
|
+
return P(), k("div", Za, [
|
|
3129
|
+
(P(!0), k(de, null, De(e.frameRef, ({ layout: s, id: l, row: i, col: c }) => (P(), k("div", {
|
|
3130
|
+
class: "play-area",
|
|
3131
|
+
style: Ie(`position: absolute; top: calc(${s.top}%); left: calc(${s.left}%); width: calc(${s.width}%); height: calc(${s.height}%);`)
|
|
3132
|
+
}, [
|
|
3133
|
+
oe(e.$slots, "default", {
|
|
3134
|
+
id: l,
|
|
3135
|
+
row: i,
|
|
3136
|
+
col: c
|
|
3137
|
+
}, void 0, !0)
|
|
3138
|
+
], 4))), 256))
|
|
3139
|
+
]);
|
|
3140
|
+
}
|
|
3141
|
+
const tl = /* @__PURE__ */ me(qa, [["render", el], ["__scopeId", "data-v-e5654385"]]), un = {
|
|
3142
|
+
RecursionDeviceGroup: Ia,
|
|
3143
|
+
VideoAreasLayoutShow: tl,
|
|
3144
|
+
MultiVideoAreaLayoutSwitch: Ja
|
|
3145
|
+
}, rl = {
|
|
2789
3146
|
install(e) {
|
|
2790
|
-
for (const t in
|
|
2791
|
-
const n =
|
|
3147
|
+
for (const t in un) {
|
|
3148
|
+
const n = un[t];
|
|
2792
3149
|
e.component(t, n);
|
|
2793
3150
|
}
|
|
2794
3151
|
}
|
|
2795
3152
|
};
|
|
2796
3153
|
export {
|
|
2797
|
-
|
|
2798
|
-
|
|
3154
|
+
bt as RecursionDeviceGroup,
|
|
3155
|
+
U as VideoAreaLayout,
|
|
3156
|
+
rl as default
|
|
2799
3157
|
};
|
|
2800
3158
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|