@xwiki/cristal-authentication-nextcloud-ui 0.19.0 → 0.20.0-rc.0

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.
@@ -0,0 +1,1286 @@
1
+ import { NextcloudAuthenticationState as Et } from "@xwiki/cristal-authentication-nextcloud-state";
2
+ import { useI18n as Nt } from "vue-i18n";
3
+ /**
4
+ * @vue/shared v3.5.17
5
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
+ * @license MIT
7
+ **/
8
+ const q = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, wt = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], U = () => {
9
+ }, bt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
10
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), j = Object.assign, y = Array.isArray, je = (e) => ve(e) === "[object Map]", ze = (e) => ve(e) === "[object Set]", _ = (e) => typeof e == "function", D = (e) => typeof e == "string", Oe = (e) => typeof e == "symbol", S = (e) => e !== null && typeof e == "object", St = (e) => (S(e) || _(e)) && _(e.then) && _(e.catch), Je = Object.prototype.toString, ve = (e) => Je.call(e), Be = (e) => ve(e) === "[object Object]", qe = (e) => {
11
+ const t = /* @__PURE__ */ Object.create(null);
12
+ return (n) => t[n] || (t[n] = e(n));
13
+ }, xt = /-(\w)/g, oe = qe(
14
+ (e) => e.replace(xt, (t, n) => n ? n.toUpperCase() : "")
15
+ ), _e = qe((e) => e.charAt(0).toUpperCase() + e.slice(1)), ye = (e, t) => !Object.is(e, t);
16
+ let Fe;
17
+ const ce = () => Fe || (Fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
18
+ function Ve(e) {
19
+ if (y(e)) {
20
+ const t = {};
21
+ for (let n = 0; n < e.length; n++) {
22
+ const o = e[n], s = D(o) ? Ct(o) : Ve(o);
23
+ if (s)
24
+ for (const r in s)
25
+ t[r] = s[r];
26
+ }
27
+ return t;
28
+ } else if (D(e) || S(e))
29
+ return e;
30
+ }
31
+ const Ot = /;(?![^(]*\))/g, vt = /:([^]+)/, Vt = /\/\*[^]*?\*\//g;
32
+ function Ct(e) {
33
+ const t = {};
34
+ return e.replace(Vt, "").split(Ot).forEach((n) => {
35
+ if (n) {
36
+ const o = n.split(vt);
37
+ o.length > 1 && (t[o[0].trim()] = o[1].trim());
38
+ }
39
+ }), t;
40
+ }
41
+ function Ce(e) {
42
+ let t = "";
43
+ if (D(e))
44
+ t = e;
45
+ else if (y(e))
46
+ for (let n = 0; n < e.length; n++) {
47
+ const o = Ce(e[n]);
48
+ o && (t += o + " ");
49
+ }
50
+ else if (S(e))
51
+ for (const n in e)
52
+ e[n] && (t += n + " ");
53
+ return t.trim();
54
+ }
55
+ const Ke = (e) => !!(e && e.__v_isRef === !0), Ye = (e) => D(e) ? e : e == null ? "" : y(e) || S(e) && (e.toString === Je || !_(e.toString)) ? Ke(e) ? Ye(e.value) : JSON.stringify(e, Ge, 2) : String(e), Ge = (e, t) => Ke(t) ? Ge(e, t.value) : je(t) ? {
56
+ [`Map(${t.size})`]: [...t.entries()].reduce(
57
+ (n, [o, s], r) => (n[pe(o, r) + " =>"] = s, n),
58
+ {}
59
+ )
60
+ } : ze(t) ? {
61
+ [`Set(${t.size})`]: [...t.values()].map((n) => pe(n))
62
+ } : Oe(t) ? pe(t) : S(t) && !y(t) && !Be(t) ? String(t) : t, pe = (e, t = "") => {
63
+ var n;
64
+ return (
65
+ // Symbol.description in es2019+ so we need to cast here to pass
66
+ // the lib: es2016 check
67
+ Oe(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
68
+ );
69
+ };
70
+ /**
71
+ * @vue/reactivity v3.5.17
72
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
73
+ * @license MIT
74
+ **/
75
+ function De(e, ...t) {
76
+ console.warn(`[Vue warn] ${e}`, ...t);
77
+ }
78
+ let v;
79
+ const de = /* @__PURE__ */ new WeakSet();
80
+ class Dt {
81
+ constructor(t) {
82
+ this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0;
83
+ }
84
+ pause() {
85
+ this.flags |= 64;
86
+ }
87
+ resume() {
88
+ this.flags & 64 && (this.flags &= -65, de.has(this) && (de.delete(this), this.trigger()));
89
+ }
90
+ /**
91
+ * @internal
92
+ */
93
+ notify() {
94
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || kt(this);
95
+ }
96
+ run() {
97
+ if (!(this.flags & 1))
98
+ return this.fn();
99
+ this.flags |= 2, Pe(this), Qe(this);
100
+ const t = v;
101
+ v = this;
102
+ try {
103
+ return this.fn();
104
+ } finally {
105
+ process.env.NODE_ENV !== "production" && v !== this && De(
106
+ "Active effect was not restored correctly - this is likely a Vue internal bug."
107
+ ), Xe(this), v = t, this.flags &= -3;
108
+ }
109
+ }
110
+ stop() {
111
+ if (this.flags & 1) {
112
+ for (let t = this.deps; t; t = t.nextDep)
113
+ ke(t);
114
+ this.deps = this.depsTail = void 0, Pe(this), this.onStop && this.onStop(), this.flags &= -2;
115
+ }
116
+ }
117
+ trigger() {
118
+ this.flags & 64 ? de.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
119
+ }
120
+ /**
121
+ * @internal
122
+ */
123
+ runIfDirty() {
124
+ Ee(this) && this.run();
125
+ }
126
+ get dirty() {
127
+ return Ee(this);
128
+ }
129
+ }
130
+ let $e, Ae;
131
+ function kt(e, t = !1) {
132
+ if (e.flags |= 8, t) {
133
+ e.next = Ae, Ae = e;
134
+ return;
135
+ }
136
+ e.next = $e, $e = e;
137
+ }
138
+ function Qe(e) {
139
+ for (let t = e.deps; t; t = t.nextDep)
140
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
141
+ }
142
+ function Xe(e) {
143
+ let t, n = e.depsTail, o = n;
144
+ for (; o; ) {
145
+ const s = o.prevDep;
146
+ o.version === -1 ? (o === n && (n = s), ke(o), Rt(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
147
+ }
148
+ e.deps = t, e.depsTail = n;
149
+ }
150
+ function Ee(e) {
151
+ for (let t = e.deps; t; t = t.nextDep)
152
+ if (t.dep.version !== t.version || t.dep.computed && (It(t.dep.computed) || t.dep.version !== t.version))
153
+ return !0;
154
+ return !!e._dirty;
155
+ }
156
+ function It(e) {
157
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === He) || (e.globalVersion = He, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Ee(e))))
158
+ return;
159
+ e.flags |= 2;
160
+ const t = e.dep, n = v;
161
+ v = e;
162
+ try {
163
+ Qe(e);
164
+ const o = e.fn(e._value);
165
+ (t.version === 0 || ye(o, e._value)) && (e.flags |= 128, e._value = o, t.version++);
166
+ } catch (o) {
167
+ throw t.version++, o;
168
+ } finally {
169
+ v = n, Xe(e), e.flags &= -3;
170
+ }
171
+ }
172
+ function ke(e, t = !1) {
173
+ const { dep: n, prevSub: o, nextSub: s } = e;
174
+ if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = s), n.subs === e && (n.subs = o, !o && n.computed)) {
175
+ n.computed.flags &= -5;
176
+ for (let r = n.computed.deps; r; r = r.nextDep)
177
+ ke(r, !0);
178
+ }
179
+ !t && !--n.sc && n.map && n.map.delete(n.key);
180
+ }
181
+ function Rt(e) {
182
+ const { prevDep: t, nextDep: n } = e;
183
+ t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
184
+ }
185
+ function Pe(e) {
186
+ const { cleanup: t } = e;
187
+ if (e.cleanup = void 0, t) {
188
+ const n = v;
189
+ v = void 0;
190
+ try {
191
+ t();
192
+ } finally {
193
+ v = n;
194
+ }
195
+ }
196
+ }
197
+ let He = 0;
198
+ Symbol(
199
+ process.env.NODE_ENV !== "production" ? "Object iterate" : ""
200
+ );
201
+ Symbol(
202
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
203
+ );
204
+ Symbol(
205
+ process.env.NODE_ENV !== "production" ? "Array iterate" : ""
206
+ );
207
+ new Set(
208
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Oe)
209
+ );
210
+ function B(e) {
211
+ return Ne(e) ? B(e.__v_raw) : !!(e && e.__v_isReactive);
212
+ }
213
+ function Ne(e) {
214
+ return !!(e && e.__v_isReadonly);
215
+ }
216
+ function W(e) {
217
+ return !!(e && e.__v_isShallow);
218
+ }
219
+ function we(e) {
220
+ return e ? !!e.__v_raw : !1;
221
+ }
222
+ function $(e) {
223
+ const t = e && e.__v_raw;
224
+ return t ? $(t) : e;
225
+ }
226
+ function V(e) {
227
+ return e ? e.__v_isRef === !0 : !1;
228
+ }
229
+ function O(e) {
230
+ return V(e) ? e.value : e;
231
+ }
232
+ const X = {}, se = /* @__PURE__ */ new WeakMap();
233
+ let F;
234
+ function Tt(e, t = !1, n = F) {
235
+ if (n) {
236
+ let o = se.get(n);
237
+ o || se.set(n, o = []), o.push(e);
238
+ } else process.env.NODE_ENV !== "production" && !t && De(
239
+ "onWatcherCleanup() was called when there was no active watcher to associate with."
240
+ );
241
+ }
242
+ function Ft(e, t, n = q) {
243
+ const { immediate: o, deep: s, once: r, scheduler: l, augmentJob: c, call: a } = n, d = (p) => {
244
+ (n.onWarn || De)(
245
+ "Invalid watch source: ",
246
+ p,
247
+ "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
248
+ );
249
+ }, m = (p) => s ? p : W(p) || s === !1 || s === 0 ? I(p, 1) : I(p);
250
+ let i, u, f, h, N = !1, G = !1;
251
+ if (V(e) ? (u = () => e.value, N = W(e)) : B(e) ? (u = () => m(e), N = !0) : y(e) ? (G = !0, N = e.some((p) => B(p) || W(p)), u = () => e.map((p) => {
252
+ if (V(p))
253
+ return p.value;
254
+ if (B(p))
255
+ return m(p);
256
+ if (_(p))
257
+ return a ? a(p, 2) : p();
258
+ process.env.NODE_ENV !== "production" && d(p);
259
+ })) : _(e) ? t ? u = a ? () => a(e, 2) : e : u = () => {
260
+ if (f)
261
+ try {
262
+ f();
263
+ } finally {
264
+ }
265
+ const p = F;
266
+ F = i;
267
+ try {
268
+ return a ? a(e, 3, [h]) : e(h);
269
+ } finally {
270
+ F = p;
271
+ }
272
+ } : (u = U, process.env.NODE_ENV !== "production" && d(e)), t && s) {
273
+ const p = u, x = s === !0 ? 1 / 0 : s;
274
+ u = () => I(p(), x);
275
+ }
276
+ const P = () => {
277
+ i.stop();
278
+ };
279
+ if (r && t) {
280
+ const p = t;
281
+ t = (...x) => {
282
+ p(...x), P();
283
+ };
284
+ }
285
+ let T = G ? new Array(e.length).fill(X) : X;
286
+ const z = (p) => {
287
+ if (!(!(i.flags & 1) || !i.dirty && !p))
288
+ if (t) {
289
+ const x = i.run();
290
+ if (s || N || (G ? x.some((fe, Q) => ye(fe, T[Q])) : ye(x, T))) {
291
+ f && f();
292
+ const fe = F;
293
+ F = i;
294
+ try {
295
+ const Q = [
296
+ x,
297
+ // pass undefined as the old value when it's changed for the first time
298
+ T === X ? void 0 : G && T[0] === X ? [] : T,
299
+ h
300
+ ];
301
+ T = x, a ? a(t, 3, Q) : (
302
+ // @ts-expect-error
303
+ t(...Q)
304
+ );
305
+ } finally {
306
+ F = fe;
307
+ }
308
+ }
309
+ } else
310
+ i.run();
311
+ };
312
+ return c && c(z), i = new Dt(u), i.scheduler = l ? () => l(z, !1) : z, h = (p) => Tt(p, !1, i), f = i.onStop = () => {
313
+ const p = se.get(i);
314
+ if (p) {
315
+ if (a)
316
+ a(p, 4);
317
+ else
318
+ for (const x of p) x();
319
+ se.delete(i);
320
+ }
321
+ }, process.env.NODE_ENV !== "production" && (i.onTrack = n.onTrack, i.onTrigger = n.onTrigger), t ? o ? z(!0) : T = i.run() : l ? l(z.bind(null, !0), !0) : i.run(), P.pause = i.pause.bind(i), P.resume = i.resume.bind(i), P.stop = P, P;
322
+ }
323
+ function I(e, t = 1 / 0, n) {
324
+ if (t <= 0 || !S(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
325
+ return e;
326
+ if (n.add(e), t--, V(e))
327
+ I(e.value, t, n);
328
+ else if (y(e))
329
+ for (let o = 0; o < e.length; o++)
330
+ I(e[o], t, n);
331
+ else if (ze(e) || je(e))
332
+ e.forEach((o) => {
333
+ I(o, t, n);
334
+ });
335
+ else if (Be(e)) {
336
+ for (const o in e)
337
+ I(e[o], t, n);
338
+ for (const o of Object.getOwnPropertySymbols(e))
339
+ Object.prototype.propertyIsEnumerable.call(e, o) && I(e[o], t, n);
340
+ }
341
+ return e;
342
+ }
343
+ /**
344
+ * @vue/runtime-core v3.5.17
345
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
346
+ * @license MIT
347
+ **/
348
+ const A = [];
349
+ function $t(e) {
350
+ A.push(e);
351
+ }
352
+ function At() {
353
+ A.pop();
354
+ }
355
+ let he = !1;
356
+ function g(e, ...t) {
357
+ if (he) return;
358
+ he = !0;
359
+ const n = A.length ? A[A.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = Pt();
360
+ if (o)
361
+ ae(
362
+ o,
363
+ n,
364
+ 11,
365
+ [
366
+ // eslint-disable-next-line no-restricted-syntax
367
+ e + t.map((r) => {
368
+ var l, c;
369
+ return (c = (l = r.toString) == null ? void 0 : l.call(r)) != null ? c : JSON.stringify(r);
370
+ }).join(""),
371
+ n && n.proxy,
372
+ s.map(
373
+ ({ vnode: r }) => `at <${_t(n, r.type)}>`
374
+ ).join(`
375
+ `),
376
+ s
377
+ ]
378
+ );
379
+ else {
380
+ const r = [`[Vue warn]: ${e}`, ...t];
381
+ s.length && r.push(`
382
+ `, ...Ht(s)), console.warn(...r);
383
+ }
384
+ he = !1;
385
+ }
386
+ function Pt() {
387
+ let e = A[A.length - 1];
388
+ if (!e)
389
+ return [];
390
+ const t = [];
391
+ for (; e; ) {
392
+ const n = t[0];
393
+ n && n.vnode === e ? n.recurseCount++ : t.push({
394
+ vnode: e,
395
+ recurseCount: 0
396
+ });
397
+ const o = e.component && e.component.parent;
398
+ e = o && o.vnode;
399
+ }
400
+ return t;
401
+ }
402
+ function Ht(e) {
403
+ const t = [];
404
+ return e.forEach((n, o) => {
405
+ t.push(...o === 0 ? [] : [`
406
+ `], ...Mt(n));
407
+ }), t;
408
+ }
409
+ function Mt({ vnode: e, recurseCount: t }) {
410
+ const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${_t(
411
+ e.component,
412
+ e.type,
413
+ o
414
+ )}`, r = ">" + n;
415
+ return e.props ? [s, ...Ut(e.props), r] : [s + r];
416
+ }
417
+ function Ut(e) {
418
+ const t = [], n = Object.keys(e);
419
+ return n.slice(0, 3).forEach((o) => {
420
+ t.push(...Ze(o, e[o]));
421
+ }), n.length > 3 && t.push(" ..."), t;
422
+ }
423
+ function Ze(e, t, n) {
424
+ return D(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : V(t) ? (t = Ze(e, $(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : _(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = $(t), n ? t : [`${e}=`, t]);
425
+ }
426
+ const et = {
427
+ sp: "serverPrefetch hook",
428
+ bc: "beforeCreate hook",
429
+ c: "created hook",
430
+ bm: "beforeMount hook",
431
+ m: "mounted hook",
432
+ bu: "beforeUpdate hook",
433
+ u: "updated",
434
+ bum: "beforeUnmount hook",
435
+ um: "unmounted hook",
436
+ a: "activated hook",
437
+ da: "deactivated hook",
438
+ ec: "errorCaptured hook",
439
+ rtc: "renderTracked hook",
440
+ rtg: "renderTriggered hook",
441
+ 0: "setup function",
442
+ 1: "render function",
443
+ 2: "watcher getter",
444
+ 3: "watcher callback",
445
+ 4: "watcher cleanup function",
446
+ 5: "native event handler",
447
+ 6: "component event handler",
448
+ 7: "vnode hook",
449
+ 8: "directive hook",
450
+ 9: "transition hook",
451
+ 10: "app errorHandler",
452
+ 11: "app warnHandler",
453
+ 12: "ref function",
454
+ 13: "async component loader",
455
+ 14: "scheduler flush",
456
+ 15: "component update",
457
+ 16: "app unmount cleanup function"
458
+ };
459
+ function ae(e, t, n, o) {
460
+ try {
461
+ return o ? e(...o) : e();
462
+ } catch (s) {
463
+ Ie(s, t, n);
464
+ }
465
+ }
466
+ function tt(e, t, n, o) {
467
+ if (_(e)) {
468
+ const s = ae(e, t, n, o);
469
+ return s && St(s) && s.catch((r) => {
470
+ Ie(r, t, n);
471
+ }), s;
472
+ }
473
+ if (y(e)) {
474
+ const s = [];
475
+ for (let r = 0; r < e.length; r++)
476
+ s.push(tt(e[r], t, n, o));
477
+ return s;
478
+ } else process.env.NODE_ENV !== "production" && g(
479
+ `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
480
+ );
481
+ }
482
+ function Ie(e, t, n, o = !0) {
483
+ const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: l } = t && t.appContext.config || q;
484
+ if (t) {
485
+ let c = t.parent;
486
+ const a = t.proxy, d = process.env.NODE_ENV !== "production" ? et[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
487
+ for (; c; ) {
488
+ const m = c.ec;
489
+ if (m) {
490
+ for (let i = 0; i < m.length; i++)
491
+ if (m[i](e, a, d) === !1)
492
+ return;
493
+ }
494
+ c = c.parent;
495
+ }
496
+ if (r) {
497
+ ae(r, null, 10, [
498
+ e,
499
+ a,
500
+ d
501
+ ]);
502
+ return;
503
+ }
504
+ }
505
+ Wt(e, n, s, o, l);
506
+ }
507
+ function Wt(e, t, n, o = !0, s = !1) {
508
+ if (process.env.NODE_ENV !== "production") {
509
+ const r = et[t];
510
+ if (n && $t(n), g(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && At(), o)
511
+ throw e;
512
+ console.error(e);
513
+ } else {
514
+ if (s)
515
+ throw e;
516
+ console.error(e);
517
+ }
518
+ }
519
+ const w = [];
520
+ let C = -1;
521
+ const L = [];
522
+ let k = null, H = 0;
523
+ const Lt = /* @__PURE__ */ Promise.resolve();
524
+ let be = null;
525
+ const jt = 100;
526
+ function zt(e) {
527
+ let t = C + 1, n = w.length;
528
+ for (; t < n; ) {
529
+ const o = t + n >>> 1, s = w[o], r = K(s);
530
+ r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
531
+ }
532
+ return t;
533
+ }
534
+ function nt(e) {
535
+ if (!(e.flags & 1)) {
536
+ const t = K(e), n = w[w.length - 1];
537
+ !n || // fast path when the job id is larger than the tail
538
+ !(e.flags & 2) && t >= K(n) ? w.push(e) : w.splice(zt(t), 0, e), e.flags |= 1, ot();
539
+ }
540
+ }
541
+ function ot() {
542
+ be || (be = Lt.then(rt));
543
+ }
544
+ function st(e) {
545
+ y(e) ? L.push(...e) : k && e.id === -1 ? k.splice(H + 1, 0, e) : e.flags & 1 || (L.push(e), e.flags |= 1), ot();
546
+ }
547
+ function Jt(e) {
548
+ if (L.length) {
549
+ const t = [...new Set(L)].sort(
550
+ (n, o) => K(n) - K(o)
551
+ );
552
+ if (L.length = 0, k) {
553
+ k.push(...t);
554
+ return;
555
+ }
556
+ for (k = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), H = 0; H < k.length; H++) {
557
+ const n = k[H];
558
+ process.env.NODE_ENV !== "production" && it(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
559
+ }
560
+ k = null, H = 0;
561
+ }
562
+ }
563
+ const K = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
564
+ function rt(e) {
565
+ process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
566
+ const t = process.env.NODE_ENV !== "production" ? (n) => it(e, n) : U;
567
+ try {
568
+ for (C = 0; C < w.length; C++) {
569
+ const n = w[C];
570
+ if (n && !(n.flags & 8)) {
571
+ if (process.env.NODE_ENV !== "production" && t(n))
572
+ continue;
573
+ n.flags & 4 && (n.flags &= -2), ae(
574
+ n,
575
+ n.i,
576
+ n.i ? 15 : 14
577
+ ), n.flags & 4 || (n.flags &= -2);
578
+ }
579
+ }
580
+ } finally {
581
+ for (; C < w.length; C++) {
582
+ const n = w[C];
583
+ n && (n.flags &= -2);
584
+ }
585
+ C = -1, w.length = 0, Jt(e), be = null, (w.length || L.length) && rt(e);
586
+ }
587
+ }
588
+ function it(e, t) {
589
+ const n = e.get(t) || 0;
590
+ if (n > jt) {
591
+ const o = t.i, s = o && Te(o.type);
592
+ return Ie(
593
+ `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
594
+ null,
595
+ 10
596
+ ), !0;
597
+ }
598
+ return e.set(t, n + 1), !1;
599
+ }
600
+ const me = /* @__PURE__ */ new Map();
601
+ process.env.NODE_ENV !== "production" && (ce().__VUE_HMR_RUNTIME__ = {
602
+ createRecord: ge(Bt),
603
+ rerender: ge(qt),
604
+ reload: ge(Kt)
605
+ });
606
+ const re = /* @__PURE__ */ new Map();
607
+ function Bt(e, t) {
608
+ return re.has(e) ? !1 : (re.set(e, {
609
+ initialDef: ie(t),
610
+ instances: /* @__PURE__ */ new Set()
611
+ }), !0);
612
+ }
613
+ function ie(e) {
614
+ return yt(e) ? e.__vccOpts : e;
615
+ }
616
+ function qt(e, t) {
617
+ const n = re.get(e);
618
+ n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
619
+ t && (o.render = t, ie(o.type).render = t), o.renderCache = [], o.update();
620
+ }));
621
+ }
622
+ function Kt(e, t) {
623
+ const n = re.get(e);
624
+ if (!n) return;
625
+ t = ie(t), Me(n.initialDef, t);
626
+ const o = [...n.instances];
627
+ for (let s = 0; s < o.length; s++) {
628
+ const r = o[s], l = ie(r.type);
629
+ let c = me.get(l);
630
+ c || (l !== n.initialDef && Me(l, t), me.set(l, c = /* @__PURE__ */ new Set())), c.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (c.add(r), r.ceReload(t.styles), c.delete(r)) : r.parent ? nt(() => {
631
+ r.parent.update(), c.delete(r);
632
+ }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
633
+ "[HMR] Root or manually mounted instance modified. Full reload required."
634
+ ), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(l);
635
+ }
636
+ st(() => {
637
+ me.clear();
638
+ });
639
+ }
640
+ function Me(e, t) {
641
+ j(e, t);
642
+ for (const n in e)
643
+ n !== "__file" && !(n in t) && delete e[n];
644
+ }
645
+ function ge(e) {
646
+ return (t, n) => {
647
+ try {
648
+ return e(t, n);
649
+ } catch (o) {
650
+ console.error(o), console.warn(
651
+ "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
652
+ );
653
+ }
654
+ };
655
+ }
656
+ let R, J = [], Se = !1;
657
+ function Yt(e, ...t) {
658
+ R ? R.emit(e, ...t) : Se || J.push({ event: e, args: t });
659
+ }
660
+ function lt(e, t) {
661
+ var n, o;
662
+ R = e, R ? (R.enabled = !0, J.forEach(({ event: s, args: r }) => R.emit(s, ...r)), J = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
663
+ window.HTMLElement && // also exclude jsdom
664
+ // eslint-disable-next-line no-restricted-syntax
665
+ !((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
666
+ lt(r, t);
667
+ }), setTimeout(() => {
668
+ R || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Se = !0, J = []);
669
+ }, 3e3)) : (Se = !0, J = []);
670
+ }
671
+ const Gt = /* @__PURE__ */ Qt(
672
+ "component:updated"
673
+ /* COMPONENT_UPDATED */
674
+ );
675
+ /*! #__NO_SIDE_EFFECTS__ */
676
+ // @__NO_SIDE_EFFECTS__
677
+ function Qt(e) {
678
+ return (t) => {
679
+ Yt(
680
+ e,
681
+ t.appContext.app,
682
+ t.uid,
683
+ t.parent ? t.parent.uid : void 0,
684
+ t
685
+ );
686
+ };
687
+ }
688
+ let b = null, ct = null;
689
+ function Ue(e) {
690
+ const t = b;
691
+ return b = e, ct = e && e.type.__scopeId || null, t;
692
+ }
693
+ function Z(e, t = b, n) {
694
+ if (!t || e._n)
695
+ return e;
696
+ const o = (...s) => {
697
+ o._d && Le(-1);
698
+ const r = Ue(t);
699
+ let l;
700
+ try {
701
+ l = e(...s);
702
+ } finally {
703
+ Ue(r), o._d && Le(1);
704
+ }
705
+ return process.env.NODE_ENV !== "production" && Gt(t), l;
706
+ };
707
+ return o._n = !0, o._c = !0, o._d = !0, o;
708
+ }
709
+ const Xt = (e) => e.__isTeleport;
710
+ function at(e, t) {
711
+ e.shapeFlag & 6 && e.component ? (e.transition = t, at(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
712
+ }
713
+ /*! #__NO_SIDE_EFFECTS__ */
714
+ // @__NO_SIDE_EFFECTS__
715
+ function Zt(e, t) {
716
+ return _(e) ? (
717
+ // #8236: extend call and options.name access are considered side-effects
718
+ // by Rollup, so we have to wrap it in a pure-annotated IIFE.
719
+ j({ name: e.name }, t, { setup: e })
720
+ ) : e;
721
+ }
722
+ ce().requestIdleCallback;
723
+ ce().cancelIdleCallback;
724
+ const en = "components";
725
+ function ee(e, t) {
726
+ return nn(en, e, !0, t) || e;
727
+ }
728
+ const tn = Symbol.for("v-ndc");
729
+ function nn(e, t, n = !0, o = !1) {
730
+ const s = b || ue;
731
+ if (s) {
732
+ const r = s.type;
733
+ {
734
+ const c = Te(
735
+ r,
736
+ !1
737
+ );
738
+ if (c && (c === t || c === oe(t) || c === _e(oe(t))))
739
+ return r;
740
+ }
741
+ const l = (
742
+ // local registration
743
+ // check instance[type] first which is resolved for options API
744
+ We(s[e] || r[e], t) || // global registration
745
+ We(s.appContext[e], t)
746
+ );
747
+ return !l && o ? r : (process.env.NODE_ENV !== "production" && n && !l && g(`Failed to resolve ${e.slice(0, -1)}: ${t}
748
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`), l);
749
+ } else process.env.NODE_ENV !== "production" && g(
750
+ `resolve${_e(e.slice(0, -1))} can only be used in render() or setup().`
751
+ );
752
+ }
753
+ function We(e, t) {
754
+ return e && (e[t] || e[oe(t)] || e[_e(oe(t))]);
755
+ }
756
+ const on = {};
757
+ process.env.NODE_ENV !== "production" && (on.ownKeys = (e) => (g(
758
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
759
+ ), Reflect.ownKeys(e)));
760
+ let sn = null;
761
+ function ut(e, t, n = !1) {
762
+ const o = ue || b;
763
+ if (o || sn) {
764
+ let s = o ? o.parent == null || o.ce ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : void 0;
765
+ if (s && e in s)
766
+ return s[e];
767
+ if (arguments.length > 1)
768
+ return n && _(t) ? t.call(o && o.proxy) : t;
769
+ process.env.NODE_ENV !== "production" && g(`injection "${String(e)}" not found.`);
770
+ } else process.env.NODE_ENV !== "production" && g("inject() can only be used inside setup() or functional components.");
771
+ }
772
+ const rn = {}, ft = (e) => Object.getPrototypeOf(e) === rn, ln = dn, cn = Symbol.for("v-scx"), an = () => {
773
+ {
774
+ const e = ut(cn);
775
+ return e || process.env.NODE_ENV !== "production" && g(
776
+ "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
777
+ ), e;
778
+ }
779
+ };
780
+ function un(e, t, n) {
781
+ return process.env.NODE_ENV !== "production" && !_(t) && g(
782
+ "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
783
+ ), fn(e, t, n);
784
+ }
785
+ function fn(e, t, n = q) {
786
+ const { immediate: o, deep: s, flush: r, once: l } = n;
787
+ process.env.NODE_ENV !== "production" && !t && (o !== void 0 && g(
788
+ 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
789
+ ), s !== void 0 && g(
790
+ 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
791
+ ), l !== void 0 && g(
792
+ 'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
793
+ ));
794
+ const c = j({}, n);
795
+ process.env.NODE_ENV !== "production" && (c.onWarn = g);
796
+ const a = t && o || !t && r !== "post";
797
+ let d;
798
+ if (xe) {
799
+ if (r === "sync") {
800
+ const f = an();
801
+ d = f.__watcherHandles || (f.__watcherHandles = []);
802
+ } else if (!a) {
803
+ const f = () => {
804
+ };
805
+ return f.stop = U, f.resume = U, f.pause = U, f;
806
+ }
807
+ }
808
+ const m = ue;
809
+ c.call = (f, h, N) => tt(f, m, h, N);
810
+ let i = !1;
811
+ r === "post" ? c.scheduler = (f) => {
812
+ ln(f, m && m.suspense);
813
+ } : r !== "sync" && (i = !0, c.scheduler = (f, h) => {
814
+ h ? f() : nt(f);
815
+ }), c.augmentJob = (f) => {
816
+ t && (f.flags |= 4), i && (f.flags |= 2, m && (f.id = m.uid, f.i = m));
817
+ };
818
+ const u = Ft(e, t, c);
819
+ return xe && (d ? d.push(u) : a && u()), u;
820
+ }
821
+ const pn = (e) => e.__isSuspense;
822
+ function dn(e, t) {
823
+ t && t.pendingBranch ? y(e) ? t.effects.push(...e) : t.effects.push(e) : st(e);
824
+ }
825
+ const pt = Symbol.for("v-fgt"), hn = Symbol.for("v-txt"), mn = Symbol.for("v-cmt"), te = [];
826
+ let E = null;
827
+ function gn(e = !1) {
828
+ te.push(E = e ? null : []);
829
+ }
830
+ function _n() {
831
+ te.pop(), E = te[te.length - 1] || null;
832
+ }
833
+ let Y = 1;
834
+ function Le(e, t = !1) {
835
+ Y += e, e < 0 && E && t && (E.hasOnce = !0);
836
+ }
837
+ function yn(e) {
838
+ return e.dynamicChildren = Y > 0 ? E || wt : null, _n(), Y > 0 && E && E.push(e), e;
839
+ }
840
+ function En(e, t, n, o, s) {
841
+ return yn(
842
+ M(
843
+ e,
844
+ t,
845
+ n,
846
+ o,
847
+ s,
848
+ !0
849
+ )
850
+ );
851
+ }
852
+ function Nn(e) {
853
+ return e ? e.__v_isVNode === !0 : !1;
854
+ }
855
+ const wn = (...e) => ht(
856
+ ...e
857
+ ), dt = ({ key: e }) => e ?? null, ne = ({
858
+ ref: e,
859
+ ref_key: t,
860
+ ref_for: n
861
+ }) => (typeof e == "number" && (e = "" + e), e != null ? D(e) || V(e) || _(e) ? { i: b, r: e, k: t, f: !!n } : e : null);
862
+ function bn(e, t = null, n = null, o = 0, s = null, r = e === pt ? 0 : 1, l = !1, c = !1) {
863
+ const a = {
864
+ __v_isVNode: !0,
865
+ __v_skip: !0,
866
+ type: e,
867
+ props: t,
868
+ key: t && dt(t),
869
+ ref: t && ne(t),
870
+ scopeId: ct,
871
+ slotScopeIds: null,
872
+ children: n,
873
+ component: null,
874
+ suspense: null,
875
+ ssContent: null,
876
+ ssFallback: null,
877
+ dirs: null,
878
+ transition: null,
879
+ el: null,
880
+ anchor: null,
881
+ target: null,
882
+ targetStart: null,
883
+ targetAnchor: null,
884
+ staticCount: 0,
885
+ shapeFlag: r,
886
+ patchFlag: o,
887
+ dynamicProps: s,
888
+ dynamicChildren: null,
889
+ appContext: null,
890
+ ctx: b
891
+ };
892
+ return c ? (Re(a, n), r & 128 && e.normalize(a)) : n && (a.shapeFlag |= D(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && g("VNode created with invalid key (NaN). VNode type:", a.type), Y > 0 && // avoid a block node from tracking itself
893
+ !l && // has current parent block
894
+ E && // presence of a patch flag indicates this node needs patching on updates.
895
+ // component nodes also should always be patched, because even if the
896
+ // component doesn't need to update, it needs to persist the instance on to
897
+ // the next vnode so that it can be properly unmounted later.
898
+ (a.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
899
+ // vnode should not be considered dynamic due to handler caching.
900
+ a.patchFlag !== 32 && E.push(a), a;
901
+ }
902
+ const M = process.env.NODE_ENV !== "production" ? wn : ht;
903
+ function ht(e, t = null, n = null, o = 0, s = null, r = !1) {
904
+ if ((!e || e === tn) && (process.env.NODE_ENV !== "production" && !e && g(`Invalid vnode type when creating vnode: ${e}.`), e = mn), Nn(e)) {
905
+ const c = le(
906
+ e,
907
+ t,
908
+ !0
909
+ /* mergeRef: true */
910
+ );
911
+ return n && Re(c, n), Y > 0 && !r && E && (c.shapeFlag & 6 ? E[E.indexOf(e)] = c : E.push(c)), c.patchFlag = -2, c;
912
+ }
913
+ if (yt(e) && (e = e.__vccOpts), t) {
914
+ t = Sn(t);
915
+ let { class: c, style: a } = t;
916
+ c && !D(c) && (t.class = Ce(c)), S(a) && (we(a) && !y(a) && (a = j({}, a)), t.style = Ve(a));
917
+ }
918
+ const l = D(e) ? 1 : pn(e) ? 128 : Xt(e) ? 64 : S(e) ? 4 : _(e) ? 2 : 0;
919
+ return process.env.NODE_ENV !== "production" && l & 4 && we(e) && (e = $(e), g(
920
+ "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
921
+ `
922
+ Component that was made reactive: `,
923
+ e
924
+ )), bn(
925
+ e,
926
+ t,
927
+ n,
928
+ o,
929
+ s,
930
+ l,
931
+ r,
932
+ !0
933
+ );
934
+ }
935
+ function Sn(e) {
936
+ return e ? we(e) || ft(e) ? j({}, e) : e : null;
937
+ }
938
+ function le(e, t, n = !1, o = !1) {
939
+ const { props: s, ref: r, patchFlag: l, children: c, transition: a } = e, d = t ? xn(s || {}, t) : s, m = {
940
+ __v_isVNode: !0,
941
+ __v_skip: !0,
942
+ type: e.type,
943
+ props: d,
944
+ key: d && dt(d),
945
+ ref: t && t.ref ? (
946
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
947
+ // if the vnode itself already has a ref, cloneVNode will need to merge
948
+ // the refs so the single vnode can be set on multiple refs
949
+ n && r ? y(r) ? r.concat(ne(t)) : [r, ne(t)] : ne(t)
950
+ ) : r,
951
+ scopeId: e.scopeId,
952
+ slotScopeIds: e.slotScopeIds,
953
+ children: process.env.NODE_ENV !== "production" && l === -1 && y(c) ? c.map(mt) : c,
954
+ target: e.target,
955
+ targetStart: e.targetStart,
956
+ targetAnchor: e.targetAnchor,
957
+ staticCount: e.staticCount,
958
+ shapeFlag: e.shapeFlag,
959
+ // if the vnode is cloned with extra props, we can no longer assume its
960
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
961
+ // note: preserve flag for fragments since they use the flag for children
962
+ // fast paths only.
963
+ patchFlag: t && e.type !== pt ? l === -1 ? 16 : l | 16 : l,
964
+ dynamicProps: e.dynamicProps,
965
+ dynamicChildren: e.dynamicChildren,
966
+ appContext: e.appContext,
967
+ dirs: e.dirs,
968
+ transition: a,
969
+ // These should technically only be non-null on mounted VNodes. However,
970
+ // they *should* be copied for kept-alive vnodes. So we just always copy
971
+ // them since them being non-null during a mount doesn't affect the logic as
972
+ // they will simply be overwritten.
973
+ component: e.component,
974
+ suspense: e.suspense,
975
+ ssContent: e.ssContent && le(e.ssContent),
976
+ ssFallback: e.ssFallback && le(e.ssFallback),
977
+ el: e.el,
978
+ anchor: e.anchor,
979
+ ctx: e.ctx,
980
+ ce: e.ce
981
+ };
982
+ return a && o && at(
983
+ m,
984
+ a.clone(m)
985
+ ), m;
986
+ }
987
+ function mt(e) {
988
+ const t = le(e);
989
+ return y(e.children) && (t.children = e.children.map(mt)), t;
990
+ }
991
+ function gt(e = " ", t = 0) {
992
+ return M(hn, null, e, t);
993
+ }
994
+ function Re(e, t) {
995
+ let n = 0;
996
+ const { shapeFlag: o } = e;
997
+ if (t == null)
998
+ t = null;
999
+ else if (y(t))
1000
+ n = 16;
1001
+ else if (typeof t == "object")
1002
+ if (o & 65) {
1003
+ const s = t.default;
1004
+ s && (s._c && (s._d = !1), Re(e, s()), s._c && (s._d = !0));
1005
+ return;
1006
+ } else {
1007
+ n = 32;
1008
+ const s = t._;
1009
+ !s && !ft(t) ? t._ctx = b : s === 3 && b && (b.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1010
+ }
1011
+ else _(t) ? (t = { default: t, _ctx: b }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [gt(t)]) : n = 8);
1012
+ e.children = t, e.shapeFlag |= n;
1013
+ }
1014
+ function xn(...e) {
1015
+ const t = {};
1016
+ for (let n = 0; n < e.length; n++) {
1017
+ const o = e[n];
1018
+ for (const s in o)
1019
+ if (s === "class")
1020
+ t.class !== o.class && (t.class = Ce([t.class, o.class]));
1021
+ else if (s === "style")
1022
+ t.style = Ve([t.style, o.style]);
1023
+ else if (bt(s)) {
1024
+ const r = t[s], l = o[s];
1025
+ l && r !== l && !(y(r) && r.includes(l)) && (t[s] = r ? [].concat(r, l) : l);
1026
+ } else s !== "" && (t[s] = o[s]);
1027
+ }
1028
+ return t;
1029
+ }
1030
+ let ue = null;
1031
+ {
1032
+ const e = ce(), t = (n, o) => {
1033
+ let s;
1034
+ return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
1035
+ s.length > 1 ? s.forEach((l) => l(r)) : s[0](r);
1036
+ };
1037
+ };
1038
+ t(
1039
+ "__VUE_INSTANCE_SETTERS__",
1040
+ (n) => ue = n
1041
+ ), t(
1042
+ "__VUE_SSR_SETTERS__",
1043
+ (n) => xe = n
1044
+ );
1045
+ }
1046
+ let xe = !1;
1047
+ process.env.NODE_ENV;
1048
+ const On = /(?:^|[-_])(\w)/g, vn = (e) => e.replace(On, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1049
+ function Te(e, t = !0) {
1050
+ return _(e) ? e.displayName || e.name : e.name || t && e.__name;
1051
+ }
1052
+ function _t(e, t, n = !1) {
1053
+ let o = Te(t);
1054
+ if (!o && t.__file) {
1055
+ const s = t.__file.match(/([^/\\]+)\.\w+$/);
1056
+ s && (o = s[1]);
1057
+ }
1058
+ if (!o && e && e.parent) {
1059
+ const s = (r) => {
1060
+ for (const l in r)
1061
+ if (r[l] === t)
1062
+ return l;
1063
+ };
1064
+ o = s(
1065
+ e.components || e.parent.type.components
1066
+ ) || s(e.appContext.components);
1067
+ }
1068
+ return o ? vn(o) : n ? "App" : "Anonymous";
1069
+ }
1070
+ function yt(e) {
1071
+ return _(e) && "__vccOpts" in e;
1072
+ }
1073
+ function Vn() {
1074
+ if (process.env.NODE_ENV === "production" || typeof window > "u")
1075
+ return;
1076
+ const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
1077
+ __vue_custom_formatter: !0,
1078
+ header(i) {
1079
+ if (!S(i))
1080
+ return null;
1081
+ if (i.__isVue)
1082
+ return ["div", e, "VueInstance"];
1083
+ if (V(i)) {
1084
+ const u = i.value;
1085
+ return [
1086
+ "div",
1087
+ {},
1088
+ ["span", e, m(i)],
1089
+ "<",
1090
+ c(u),
1091
+ ">"
1092
+ ];
1093
+ } else {
1094
+ if (B(i))
1095
+ return [
1096
+ "div",
1097
+ {},
1098
+ ["span", e, W(i) ? "ShallowReactive" : "Reactive"],
1099
+ "<",
1100
+ c(i),
1101
+ `>${Ne(i) ? " (readonly)" : ""}`
1102
+ ];
1103
+ if (Ne(i))
1104
+ return [
1105
+ "div",
1106
+ {},
1107
+ ["span", e, W(i) ? "ShallowReadonly" : "Readonly"],
1108
+ "<",
1109
+ c(i),
1110
+ ">"
1111
+ ];
1112
+ }
1113
+ return null;
1114
+ },
1115
+ hasBody(i) {
1116
+ return i && i.__isVue;
1117
+ },
1118
+ body(i) {
1119
+ if (i && i.__isVue)
1120
+ return [
1121
+ "div",
1122
+ {},
1123
+ ...r(i.$)
1124
+ ];
1125
+ }
1126
+ };
1127
+ function r(i) {
1128
+ const u = [];
1129
+ i.type.props && i.props && u.push(l("props", $(i.props))), i.setupState !== q && u.push(l("setup", i.setupState)), i.data !== q && u.push(l("data", $(i.data)));
1130
+ const f = a(i, "computed");
1131
+ f && u.push(l("computed", f));
1132
+ const h = a(i, "inject");
1133
+ return h && u.push(l("injected", h)), u.push([
1134
+ "div",
1135
+ {},
1136
+ [
1137
+ "span",
1138
+ {
1139
+ style: o.style + ";opacity:0.66"
1140
+ },
1141
+ "$ (internal): "
1142
+ ],
1143
+ ["object", { object: i }]
1144
+ ]), u;
1145
+ }
1146
+ function l(i, u) {
1147
+ return u = j({}, u), Object.keys(u).length ? [
1148
+ "div",
1149
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
1150
+ [
1151
+ "div",
1152
+ {
1153
+ style: "color:#476582"
1154
+ },
1155
+ i
1156
+ ],
1157
+ [
1158
+ "div",
1159
+ {
1160
+ style: "padding-left:1.25em"
1161
+ },
1162
+ ...Object.keys(u).map((f) => [
1163
+ "div",
1164
+ {},
1165
+ ["span", o, f + ": "],
1166
+ c(u[f], !1)
1167
+ ])
1168
+ ]
1169
+ ] : ["span", {}];
1170
+ }
1171
+ function c(i, u = !0) {
1172
+ return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : S(i) ? ["object", { object: u ? $(i) : i }] : ["span", n, String(i)];
1173
+ }
1174
+ function a(i, u) {
1175
+ const f = i.type;
1176
+ if (_(f))
1177
+ return;
1178
+ const h = {};
1179
+ for (const N in i.ctx)
1180
+ d(f, N, u) && (h[N] = i.ctx[N]);
1181
+ return h;
1182
+ }
1183
+ function d(i, u, f) {
1184
+ const h = i[f];
1185
+ if (y(h) && h.includes(u) || S(h) && u in h || i.extends && d(i.extends, u, f) || i.mixins && i.mixins.some((N) => d(N, u, f)))
1186
+ return !0;
1187
+ }
1188
+ function m(i) {
1189
+ return W(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
1190
+ }
1191
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1192
+ }
1193
+ process.env.NODE_ENV;
1194
+ process.env.NODE_ENV;
1195
+ process.env.NODE_ENV;
1196
+ /**
1197
+ * vue v3.5.17
1198
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1199
+ * @license MIT
1200
+ **/
1201
+ function Cn() {
1202
+ Vn();
1203
+ }
1204
+ process.env.NODE_ENV !== "production" && Cn();
1205
+ const Dn = {
1206
+ "authentication.nextcloud.modal.title": "Nextcloud Login",
1207
+ "authentication.nextcloud.modal.username.label": "Username",
1208
+ "authentication.nextcloud.modal.username.help": "Enter your username.",
1209
+ "authentication.nextcloud.modal.password.label": "Password",
1210
+ "authentication.nextcloud.modal.password.help": "It is not recommended to enter your own personal password, you should enter a specific application password instead.",
1211
+ "authentication.nextcloud.modal.submit.label": "Log-in"
1212
+ }, kn = {
1213
+ "authentication.nextcloud.modal.title": "Connexion à Nextcloud",
1214
+ "authentication.nextcloud.modal.username.label": "Nom d'utilisateur",
1215
+ "authentication.nextcloud.modal.username.help": "Saisissez votre nom d'utilisateur.",
1216
+ "authentication.nextcloud.modal.password.label": "Mot de passe",
1217
+ "authentication.nextcloud.modal.password.help": "Il n'est pas recommandé de saisir votre mot de passe personnel, vous devriez saisir un mot de passe d'application à la place.",
1218
+ "authentication.nextcloud.modal.submit.label": "Se connecter"
1219
+ }, In = {
1220
+ en: Dn,
1221
+ fr: kn
1222
+ }, Fn = /* @__PURE__ */ Zt({
1223
+ __name: "NextcloudLoginMenu",
1224
+ setup(e) {
1225
+ const { t } = Nt({
1226
+ messages: In
1227
+ }), o = ut("cristal").getContainer().get(Et), s = o.modalOpened, r = o.username, l = o.password, c = o.callback;
1228
+ return un(
1229
+ o.modalOpened,
1230
+ async (a, d) => {
1231
+ a && !d && (o.username.value = "", o.password.value = "");
1232
+ }
1233
+ ), (a, d) => {
1234
+ const m = ee("x-text-field"), i = ee("x-form"), u = ee("x-btn"), f = ee("x-dialog");
1235
+ return gn(), En(f, {
1236
+ modelValue: O(s),
1237
+ "onUpdate:modelValue": d[2] || (d[2] = (h) => V(s) ? s.value = h : null),
1238
+ width: "auto",
1239
+ title: O(t)("authentication.nextcloud.modal.title")
1240
+ }, {
1241
+ default: Z(() => [
1242
+ M(i, {
1243
+ id: "nextcloud-login-form",
1244
+ onSubmit: O(c)
1245
+ }, {
1246
+ default: Z(() => [
1247
+ M(m, {
1248
+ modelValue: O(r),
1249
+ "onUpdate:modelValue": d[0] || (d[0] = (h) => V(r) ? r.value = h : null),
1250
+ label: O(t)("authentication.nextcloud.modal.username.label"),
1251
+ help: O(t)("authentication.nextcloud.modal.username.help"),
1252
+ autofocus: "",
1253
+ required: ""
1254
+ }, null, 8, ["modelValue", "label", "help"]),
1255
+ M(m, {
1256
+ modelValue: O(l),
1257
+ "onUpdate:modelValue": d[1] || (d[1] = (h) => V(l) ? l.value = h : null),
1258
+ type: "password",
1259
+ label: O(t)("authentication.nextcloud.modal.password.label"),
1260
+ help: O(t)("authentication.nextcloud.modal.password.help")
1261
+ }, null, 8, ["modelValue", "label", "help"])
1262
+ ]),
1263
+ _: 1
1264
+ }, 8, ["onSubmit"])
1265
+ ]),
1266
+ footer: Z(() => [
1267
+ M(u, {
1268
+ variant: "primary",
1269
+ type: "submit",
1270
+ form: "nextcloud-login-form"
1271
+ }, {
1272
+ default: Z(() => [
1273
+ gt(Ye(O(t)("authentication.nextcloud.modal.submit.label")), 1)
1274
+ ]),
1275
+ _: 1
1276
+ })
1277
+ ]),
1278
+ _: 1
1279
+ }, 8, ["modelValue", "title"]);
1280
+ };
1281
+ }
1282
+ });
1283
+ export {
1284
+ Fn as default
1285
+ };
1286
+ //# sourceMappingURL=NextcloudLoginMenu-3GsKsr0I.js.map