instaui 0.2.1__py2.py3-none-any.whl → 0.2.2__py2.py3-none-any.whl

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.
@@ -2,16 +2,16 @@ var Wn = Object.defineProperty;
2
2
  var Un = (e, t, n) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var F = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Gn from "vue";
5
- import { toRaw as Ht, customRef as je, toValue as q, unref as D, watch as H, nextTick as Ae, isRef as zt, shallowRef as X, ref as K, watchEffect as Qt, computed as G, readonly as qn, provide as Te, inject as Z, shallowReactive as Kn, defineComponent as W, reactive as Hn, h as A, getCurrentInstance as Jt, normalizeStyle as zn, normalizeClass as Ye, toDisplayString as ft, onUnmounted as dt, Fragment as De, vModelDynamic as Qn, vShow as Jn, resolveDynamicComponent as Yn, normalizeProps as Xn, withDirectives as Zn, onErrorCaptured as er, openBlock as ue, createElementBlock as ge, createElementVNode as tr, createVNode as nr, withCtx as rr, renderList as or, createBlock as sr, createCommentVNode as ir, TransitionGroup as Yt, KeepAlive as ar } from "vue";
5
+ import { toRaw as Kt, customRef as De, toValue as q, unref as D, watch as K, nextTick as Ae, isRef as zt, shallowRef as X, ref as H, watchEffect as Qt, computed as W, readonly as qn, provide as Te, inject as Z, shallowReactive as Hn, defineComponent as L, reactive as Kn, h as A, getCurrentInstance as Jt, normalizeStyle as zn, normalizeClass as Ce, toDisplayString as Me, onUnmounted as dt, Fragment as Fe, vModelDynamic as Qn, vShow as Jn, resolveDynamicComponent as Yn, normalizeProps as Xn, withDirectives as Zn, onErrorCaptured as er, openBlock as re, createElementBlock as fe, createElementVNode as tr, createVNode as nr, withCtx as rr, renderList as or, createBlock as sr, createCommentVNode as ir, TransitionGroup as Yt, KeepAlive as ar } from "vue";
6
6
  let Xt;
7
7
  function cr(e) {
8
8
  Xt = e;
9
9
  }
10
- function Xe() {
10
+ function Ze() {
11
11
  return Xt;
12
12
  }
13
- function Ce() {
14
- const { queryPath: e, pathParams: t, queryParams: n } = Xe();
13
+ function $e() {
14
+ const { queryPath: e, pathParams: t, queryParams: n } = Ze();
15
15
  return {
16
16
  path: e,
17
17
  ...t === void 0 ? {} : { params: t },
@@ -36,7 +36,7 @@ function Oe(e) {
36
36
  function bt(e, t) {
37
37
  Object.entries(e).forEach(([n, r]) => t(r, n));
38
38
  }
39
- function Me(e, t) {
39
+ function Be(e, t) {
40
40
  return Zt(e, {
41
41
  valueFn: t
42
42
  });
@@ -86,7 +86,7 @@ function Re(e, t, n) {
86
86
  e
87
87
  );
88
88
  }
89
- function Ze(e, t, n, r) {
89
+ function et(e, t, n, r) {
90
90
  t.reduce((o, i, s) => {
91
91
  if (s === t.length - 1)
92
92
  o[tn(i, r)] = n;
@@ -102,22 +102,25 @@ function lr(e, t, n) {
102
102
  return r[o];
103
103
  }, e);
104
104
  }
105
- const fr = structuredClone || ((e) => JSON.parse(JSON.stringify(e)));
105
+ function fr(e, t) {
106
+ return t.reduce((n, r) => n[r], e);
107
+ }
108
+ const dr = structuredClone || ((e) => JSON.parse(JSON.stringify(e)));
106
109
  function nn(e) {
107
- return typeof e == "function" ? e : fr(Ht(e));
110
+ return typeof e == "function" ? e : dr(Kt(e));
108
111
  }
109
- class dr {
112
+ class hr {
110
113
  toString() {
111
114
  return "";
112
115
  }
113
116
  }
114
- const Se = new dr();
117
+ const Se = new hr();
115
118
  function be(e) {
116
- return Ht(e) === Se;
119
+ return Kt(e) === Se;
117
120
  }
118
121
  function Ot(e, t, n) {
119
122
  const { paths: r, getBindableValueFn: o } = t, { paths: i, getBindableValueFn: s } = t;
120
- return r === void 0 || r.length === 0 ? e : je(() => ({
123
+ return r === void 0 || r.length === 0 ? e : De(() => ({
121
124
  get() {
122
125
  try {
123
126
  return Re(
@@ -130,7 +133,7 @@ function Ot(e, t, n) {
130
133
  }
131
134
  },
132
135
  set(c) {
133
- Ze(
136
+ et(
134
137
  q(e),
135
138
  i || r,
136
139
  c,
@@ -140,7 +143,7 @@ function Ot(e, t, n) {
140
143
  }));
141
144
  }
142
145
  function ht(e) {
143
- return je((t, n) => ({
146
+ return De((t, n) => ({
144
147
  get() {
145
148
  return t(), e;
146
149
  },
@@ -153,18 +156,18 @@ function ve(e) {
153
156
  return typeof e == "function" ? e() : D(e);
154
157
  }
155
158
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
156
- const et = () => {
159
+ const tt = () => {
157
160
  };
158
- function tt(e, t = !1, n = "Timeout") {
161
+ function nt(e, t = !1, n = "Timeout") {
159
162
  return new Promise((r, o) => {
160
163
  setTimeout(t ? () => o(n) : r, e);
161
164
  });
162
165
  }
163
- function nt(e, t = !1) {
166
+ function rt(e, t = !1) {
164
167
  function n(a, { flush: f = "sync", deep: h = !1, timeout: v, throwOnTimeout: p } = {}) {
165
168
  let g = null;
166
169
  const _ = [new Promise((b) => {
167
- g = H(
170
+ g = K(
168
171
  e,
169
172
  (R) => {
170
173
  a(R) !== t && (g ? g() : Ae(() => g == null ? void 0 : g()), b(R));
@@ -177,7 +180,7 @@ function nt(e, t = !1) {
177
180
  );
178
181
  })];
179
182
  return v != null && _.push(
180
- tt(v, p).then(() => ve(e)).finally(() => g == null ? void 0 : g())
183
+ nt(v, p).then(() => ve(e)).finally(() => g == null ? void 0 : g())
181
184
  ), Promise.race(_);
182
185
  }
183
186
  function r(a, f) {
@@ -186,10 +189,10 @@ function nt(e, t = !1) {
186
189
  const { flush: h = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
187
190
  let y = null;
188
191
  const b = [new Promise((R) => {
189
- y = H(
192
+ y = K(
190
193
  [e, a],
191
- ([$, U]) => {
192
- t !== ($ === U) && (y ? y() : Ae(() => y == null ? void 0 : y()), R($));
194
+ ([$, G]) => {
195
+ t !== ($ === G) && (y ? y() : Ae(() => y == null ? void 0 : y()), R($));
193
196
  },
194
197
  {
195
198
  flush: h,
@@ -199,7 +202,7 @@ function nt(e, t = !1) {
199
202
  );
200
203
  })];
201
204
  return p != null && b.push(
202
- tt(p, g).then(() => ve(e)).finally(() => (y == null || y(), ve(e)))
205
+ nt(p, g).then(() => ve(e)).finally(() => (y == null || y(), ve(e)))
203
206
  ), Promise.race(b);
204
207
  }
205
208
  function o(a) {
@@ -233,7 +236,7 @@ function nt(e, t = !1) {
233
236
  changed: d,
234
237
  changedTimes: u,
235
238
  get not() {
236
- return nt(e, !t);
239
+ return rt(e, !t);
237
240
  }
238
241
  } : {
239
242
  toMatch: n,
@@ -245,14 +248,14 @@ function nt(e, t = !1) {
245
248
  changed: d,
246
249
  changedTimes: u,
247
250
  get not() {
248
- return nt(e, !t);
251
+ return rt(e, !t);
249
252
  }
250
253
  };
251
254
  }
252
- function hr(e) {
253
- return nt(e);
255
+ function pr(e) {
256
+ return rt(e);
254
257
  }
255
- function pr(e, t, n) {
258
+ function mr(e, t, n) {
256
259
  let r;
257
260
  zt(n) ? r = {
258
261
  evaluating: n
@@ -261,8 +264,8 @@ function pr(e, t, n) {
261
264
  lazy: o = !1,
262
265
  evaluating: i = void 0,
263
266
  shallow: s = !0,
264
- onError: c = et
265
- } = r, l = K(!o), d = s ? X(t) : K(t);
267
+ onError: c = tt
268
+ } = r, l = H(!o), d = s ? X(t) : H(t);
266
269
  let u = 0;
267
270
  return Qt(async (a) => {
268
271
  if (!l.value)
@@ -285,20 +288,20 @@ function pr(e, t, n) {
285
288
  } finally {
286
289
  i && f === u && (i.value = !1), h = !0;
287
290
  }
288
- }), o ? G(() => (l.value = !0, d.value)) : d;
291
+ }), o ? W(() => (l.value = !0, d.value)) : d;
289
292
  }
290
- function mr(e, t, n) {
293
+ function gr(e, t, n) {
291
294
  const {
292
295
  immediate: r = !0,
293
296
  delay: o = 0,
294
- onError: i = et,
295
- onSuccess: s = et,
297
+ onError: i = tt,
298
+ onSuccess: s = tt,
296
299
  resetOnExecute: c = !0,
297
300
  shallow: l = !0,
298
301
  throwError: d
299
- } = {}, u = l ? X(t) : K(t), a = K(!1), f = K(!1), h = X(void 0);
302
+ } = {}, u = l ? X(t) : H(t), a = H(!1), f = H(!1), h = X(void 0);
300
303
  async function v(y = 0, ..._) {
301
- c && (u.value = t), h.value = void 0, a.value = !1, f.value = !0, y > 0 && await tt(y);
304
+ c && (u.value = t), h.value = void 0, a.value = !1, f.value = !0, y > 0 && await nt(y);
302
305
  const b = typeof e == "function" ? e(..._) : e;
303
306
  try {
304
307
  const R = await b;
@@ -321,7 +324,7 @@ function mr(e, t, n) {
321
324
  };
322
325
  function g() {
323
326
  return new Promise((y, _) => {
324
- hr(f).toBe(!1).then(() => y(p)).catch(_);
327
+ pr(f).toBe(!1).then(() => y(p)).catch(_);
325
328
  });
326
329
  }
327
330
  return {
@@ -340,7 +343,7 @@ function B(e, t) {
340
343
  throw new Error(o + " in function code: " + e);
341
344
  }
342
345
  }
343
- function gr(e) {
346
+ function vr(e) {
344
347
  if (e.startsWith(":")) {
345
348
  e = e.slice(1);
346
349
  try {
@@ -353,14 +356,14 @@ function gr(e) {
353
356
  function rn(e) {
354
357
  return e.constructor.name === "AsyncFunction";
355
358
  }
356
- function vr(e, t) {
359
+ function yr(e, t) {
357
360
  const { deepCompare: n = !1 } = e;
358
- return n ? ht(e.value) : K(e.value);
361
+ return n ? ht(e.value) : H(e.value);
359
362
  }
360
- function yr(e, t, n) {
363
+ function wr(e, t, n) {
361
364
  const { bind: r = {}, code: o, const: i = [] } = e, s = Object.values(r).map((u, a) => i[a] === 1 ? u : t.getVueRefObjectOrValue(u));
362
365
  if (rn(new Function(o)))
363
- return pr(
366
+ return mr(
364
367
  async () => {
365
368
  const u = Object.fromEntries(
366
369
  Object.keys(r).map((a, f) => [a, s[f]])
@@ -373,9 +376,9 @@ function yr(e, t, n) {
373
376
  const c = Object.fromEntries(
374
377
  Object.keys(r).map((u, a) => [u, s[a]])
375
378
  ), l = B(o, c);
376
- return G(l);
379
+ return W(l);
377
380
  }
378
- function wr(e, t, n) {
381
+ function Er(e, t, n) {
379
382
  const {
380
383
  inputs: r = [],
381
384
  code: o,
@@ -390,13 +393,13 @@ function wr(e, t, n) {
390
393
  );
391
394
  }
392
395
  const h = B(o), v = l === 0 ? X(Se) : ht(Se), p = { immediate: !0, deep: !0 };
393
- return rn(h) ? (v.value = c, H(
396
+ return rn(h) ? (v.value = c, K(
394
397
  a,
395
398
  async () => {
396
399
  f().some(be) || (v.value = await h(...f()));
397
400
  },
398
401
  p
399
- )) : H(
402
+ )) : K(
400
403
  a,
401
404
  () => {
402
405
  const g = f();
@@ -405,11 +408,11 @@ function wr(e, t, n) {
405
408
  p
406
409
  ), qn(v);
407
410
  }
408
- function Er() {
411
+ function _r() {
409
412
  return [];
410
413
  }
411
- const Ve = Oe(Er);
412
- function _r(e, t) {
414
+ const Ve = Oe(_r);
415
+ function Sr(e, t) {
413
416
  var i, s, c, l, d;
414
417
  const n = Ve.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
415
418
  n.push(r), t.replaceSnapshot({
@@ -419,19 +422,19 @@ function _r(e, t) {
419
422
  r.set(u.id, a);
420
423
  };
421
424
  return (i = e.refs) == null || i.forEach((u) => {
422
- o(u, vr(u));
425
+ o(u, yr(u));
423
426
  }), (s = e.web_computed) == null || s.forEach((u) => {
424
427
  const { init: a } = u, f = u.deepEqOnInput === void 0 ? X(a ?? Se) : ht(a ?? Se);
425
428
  o(u, f);
426
429
  }), (c = e.vue_computed) == null || c.forEach((u) => {
427
430
  o(
428
431
  u,
429
- yr(u, t)
432
+ wr(u, t)
430
433
  );
431
434
  }), (l = e.js_computed) == null || l.forEach((u) => {
432
435
  o(
433
436
  u,
434
- wr(u, t)
437
+ Er(u, t)
435
438
  );
436
439
  }), (d = e.data) == null || d.forEach((u) => {
437
440
  o(u, u.value);
@@ -450,7 +453,7 @@ function on() {
450
453
  getVueRef: t
451
454
  };
452
455
  }
453
- function Sr(e) {
456
+ function br(e) {
454
457
  return sn(e, Ve);
455
458
  }
456
459
  function sn(e, t) {
@@ -462,15 +465,15 @@ function sn(e, t) {
462
465
  throw new Error(`Var ${e.id} not found in scope ${e.sid}`);
463
466
  return o;
464
467
  }
465
- function br(e) {
468
+ function Or(e) {
466
469
  Ve.delete(e);
467
470
  }
468
- function Or(e, t) {
471
+ function Rr(e, t) {
469
472
  const n = Ve.get(e);
470
473
  n && n.splice(t, 1);
471
474
  }
472
475
  const pt = Oe(() => []);
473
- function Rr(e) {
476
+ function Vr(e) {
474
477
  var r;
475
478
  const t = /* @__PURE__ */ new Map(), n = pt.getOrDefault(e.id).push(t);
476
479
  return (r = e.eRefs) == null || r.forEach((o) => {
@@ -478,7 +481,7 @@ function Rr(e) {
478
481
  t.set(o.id, i);
479
482
  }), n;
480
483
  }
481
- function Vr(e, t) {
484
+ function Pr(e, t) {
482
485
  const n = pt.get(e);
483
486
  n && n.splice(t, 1);
484
487
  }
@@ -539,20 +542,20 @@ var N;
539
542
  }
540
543
  e.IsBinding = u;
541
544
  })(N || (N = {}));
542
- const Fe = Oe(() => []);
543
- function Pr(e) {
544
- const t = Fe.getOrDefault(e);
545
+ const Le = Oe(() => []);
546
+ function kr(e) {
547
+ const t = Le.getOrDefault(e);
545
548
  return t.push(X({})), t.length - 1;
546
549
  }
547
- function kr(e, t, n) {
548
- Fe.get(e)[t].value = n;
550
+ function Nr(e, t, n) {
551
+ Le.get(e)[t].value = n;
549
552
  }
550
- function Nr(e) {
551
- Fe.delete(e);
553
+ function Ir(e) {
554
+ Le.delete(e);
552
555
  }
553
- function Ir() {
556
+ function Tr() {
554
557
  const e = /* @__PURE__ */ new Map();
555
- for (const [n, r] of Fe) {
558
+ for (const [n, r] of Le) {
556
559
  const o = r[r.length - 1];
557
560
  e.set(n, o);
558
561
  }
@@ -564,38 +567,38 @@ function Ir() {
564
567
  };
565
568
  }
566
569
  const cn = /* @__PURE__ */ new Map(), mt = Oe(() => /* @__PURE__ */ new Map()), un = /* @__PURE__ */ new Set(), ln = Symbol("vfor");
567
- function Tr(e) {
570
+ function Ar(e) {
568
571
  const t = fn() ?? {};
569
572
  Te(ln, { ...t, [e.fid]: e.key });
570
573
  }
571
574
  function fn() {
572
575
  return Z(ln, void 0);
573
576
  }
574
- function Ar() {
577
+ function Cr() {
575
578
  const e = fn(), t = /* @__PURE__ */ new Map();
576
579
  return e === void 0 || Object.keys(e).forEach((n) => {
577
580
  t.set(n, e[n]);
578
581
  }), t;
579
582
  }
580
- function Cr(e, t, n, r) {
583
+ function $r(e, t, n, r) {
581
584
  if (r) {
582
585
  un.add(e);
583
586
  return;
584
587
  }
585
588
  let o;
586
589
  if (n)
587
- o = new Br(t);
590
+ o = new Lr(t);
588
591
  else {
589
592
  const i = Array.isArray(t) ? t : Object.entries(t).map(([s, c], l) => [c, s, l]);
590
- o = new Fr(i);
593
+ o = new Br(i);
591
594
  }
592
595
  cn.set(e, o);
593
596
  }
594
- function $r(e, t, n) {
597
+ function xr(e, t, n) {
595
598
  const r = mt.getOrDefault(e);
596
- r.has(t) || r.set(t, K(n)), r.get(t).value = n;
599
+ r.has(t) || r.set(t, H(n)), r.get(t).value = n;
597
600
  }
598
- function xr(e) {
601
+ function jr(e) {
599
602
  const t = /* @__PURE__ */ new Set();
600
603
  function n(o) {
601
604
  t.add(o);
@@ -611,8 +614,8 @@ function xr(e) {
611
614
  removeUnusedKeys: r
612
615
  };
613
616
  }
614
- function jr(e) {
615
- const t = e, n = Ar();
617
+ function Dr(e) {
618
+ const t = e, n = Cr();
616
619
  function r(o) {
617
620
  const i = n.get(o) ?? t;
618
621
  return mt.get(o).get(i).value;
@@ -621,19 +624,19 @@ function jr(e) {
621
624
  getVForIndex: r
622
625
  };
623
626
  }
624
- function Dr(e) {
627
+ function Mr(e) {
625
628
  return cn.get(e.binding.fid).createRefObjectWithPaths(e);
626
629
  }
627
- function Mr(e) {
630
+ function Fr(e) {
628
631
  return un.has(e);
629
632
  }
630
- class Fr {
633
+ class Br {
631
634
  constructor(t) {
632
635
  this.array = t;
633
636
  }
634
637
  createRefObjectWithPaths(t) {
635
638
  const { binding: n } = t, { snapshot: r } = t, { path: o = [] } = n, i = [...o], s = r.getVForIndex(n.fid);
636
- return i.unshift(s), je(() => ({
639
+ return i.unshift(s), De(() => ({
637
640
  get: () => Re(
638
641
  this.array,
639
642
  i,
@@ -645,7 +648,7 @@ class Fr {
645
648
  }));
646
649
  }
647
650
  }
648
- class Br {
651
+ class Lr {
649
652
  constructor(t) {
650
653
  F(this, "_isDictSource");
651
654
  this.binding = t;
@@ -659,7 +662,7 @@ class Br {
659
662
  }
660
663
  createRefObjectWithPaths(t) {
661
664
  const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: i } = t, s = i.getVueRefObject(this.binding), c = this.isDictSource(s), l = i.getVForIndex(n.fid), d = c && o.length === 0 ? [0] : [];
662
- return o.unshift(l, ...d), je(() => ({
665
+ return o.unshift(l, ...d), De(() => ({
663
666
  get: () => {
664
667
  const u = q(s), a = c ? Object.entries(u).map(([f, h], v) => [
665
668
  h,
@@ -683,7 +686,7 @@ class Br {
683
686
  if (l >= f.length)
684
687
  throw new Error("Cannot set value to a non-existent key");
685
688
  const h = f[l];
686
- Ze(
689
+ et(
687
690
  a,
688
691
  [h],
689
692
  u,
@@ -691,7 +694,7 @@ class Br {
691
694
  );
692
695
  return;
693
696
  }
694
- Ze(
697
+ et(
695
698
  a,
696
699
  o,
697
700
  u,
@@ -704,22 +707,22 @@ class Br {
704
707
  function Rt(e) {
705
708
  return e == null;
706
709
  }
707
- function Lr() {
710
+ function Wr() {
708
711
  return dn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
709
712
  }
710
713
  function dn() {
711
714
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
712
715
  }
713
- const Wr = typeof Proxy == "function", Ur = "devtools-plugin:setup", Gr = "plugin:settings:set";
714
- let le, rt;
715
- function qr() {
716
+ const Ur = typeof Proxy == "function", Gr = "devtools-plugin:setup", qr = "plugin:settings:set";
717
+ let le, ot;
718
+ function Hr() {
716
719
  var e;
717
- return le !== void 0 || (typeof window < "u" && window.performance ? (le = !0, rt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (le = !0, rt = globalThis.perf_hooks.performance) : le = !1), le;
720
+ return le !== void 0 || (typeof window < "u" && window.performance ? (le = !0, ot = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (le = !0, ot = globalThis.perf_hooks.performance) : le = !1), le;
718
721
  }
719
722
  function Kr() {
720
- return qr() ? rt.now() : Date.now();
723
+ return Hr() ? ot.now() : Date.now();
721
724
  }
722
- class Hr {
725
+ class zr {
723
726
  constructor(t, n) {
724
727
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
725
728
  const r = {};
@@ -749,7 +752,7 @@ class Hr {
749
752
  now() {
750
753
  return Kr();
751
754
  }
752
- }, n && n.on(Gr, (s, c) => {
755
+ }, n && n.on(qr, (s, c) => {
753
756
  s === this.plugin.id && this.fallbacks.setSettings(c);
754
757
  }), this.proxiedOn = new Proxy({}, {
755
758
  get: (s, c) => this.target ? this.target.on[c] : (...l) => {
@@ -781,12 +784,12 @@ class Hr {
781
784
  n.resolve(await this.target[n.method](...n.args));
782
785
  }
783
786
  }
784
- function zr(e, t) {
785
- const n = e, r = dn(), o = Lr(), i = Wr && n.enableEarlyProxy;
787
+ function Qr(e, t) {
788
+ const n = e, r = dn(), o = Wr(), i = Ur && n.enableEarlyProxy;
786
789
  if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i))
787
- o.emit(Ur, e, t);
790
+ o.emit(Gr, e, t);
788
791
  else {
789
- const s = i ? new Hr(n, o) : null;
792
+ const s = i ? new zr(n, o) : null;
790
793
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
791
794
  pluginDescriptor: n,
792
795
  setupFn: t,
@@ -799,46 +802,46 @@ const Q = typeof document < "u";
799
802
  function hn(e) {
800
803
  return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
801
804
  }
802
- function Qr(e) {
805
+ function Jr(e) {
803
806
  return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
804
807
  // add the Module string tag
805
808
  e.default && hn(e.default);
806
809
  }
807
810
  const I = Object.assign;
808
- function He(e, t) {
811
+ function Qe(e, t) {
809
812
  const n = {};
810
813
  for (const r in t) {
811
814
  const o = t[r];
812
- n[r] = L(o) ? o.map(e) : e(o);
815
+ n[r] = U(o) ? o.map(e) : e(o);
813
816
  }
814
817
  return n;
815
818
  }
816
819
  const _e = () => {
817
- }, L = Array.isArray;
820
+ }, U = Array.isArray;
818
821
  function V(e) {
819
822
  const t = Array.from(arguments).slice(1);
820
823
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
821
824
  }
822
- const pn = /#/g, Jr = /&/g, Yr = /\//g, Xr = /=/g, Zr = /\?/g, mn = /\+/g, eo = /%5B/g, to = /%5D/g, gn = /%5E/g, no = /%60/g, vn = /%7B/g, ro = /%7C/g, yn = /%7D/g, oo = /%20/g;
825
+ const pn = /#/g, Yr = /&/g, Xr = /\//g, Zr = /=/g, eo = /\?/g, mn = /\+/g, to = /%5B/g, no = /%5D/g, gn = /%5E/g, ro = /%60/g, vn = /%7B/g, oo = /%7C/g, yn = /%7D/g, so = /%20/g;
823
826
  function gt(e) {
824
- return encodeURI("" + e).replace(ro, "|").replace(eo, "[").replace(to, "]");
827
+ return encodeURI("" + e).replace(oo, "|").replace(to, "[").replace(no, "]");
825
828
  }
826
- function so(e) {
829
+ function io(e) {
827
830
  return gt(e).replace(vn, "{").replace(yn, "}").replace(gn, "^");
828
831
  }
829
- function ot(e) {
830
- return gt(e).replace(mn, "%2B").replace(oo, "+").replace(pn, "%23").replace(Jr, "%26").replace(no, "`").replace(vn, "{").replace(yn, "}").replace(gn, "^");
831
- }
832
- function io(e) {
833
- return ot(e).replace(Xr, "%3D");
832
+ function st(e) {
833
+ return gt(e).replace(mn, "%2B").replace(so, "+").replace(pn, "%23").replace(Yr, "%26").replace(ro, "`").replace(vn, "{").replace(yn, "}").replace(gn, "^");
834
834
  }
835
835
  function ao(e) {
836
- return gt(e).replace(pn, "%23").replace(Zr, "%3F");
836
+ return st(e).replace(Zr, "%3D");
837
837
  }
838
838
  function co(e) {
839
- return e == null ? "" : ao(e).replace(Yr, "%2F");
839
+ return gt(e).replace(pn, "%23").replace(eo, "%3F");
840
+ }
841
+ function uo(e) {
842
+ return e == null ? "" : co(e).replace(Xr, "%2F");
840
843
  }
841
- function fe(e) {
844
+ function de(e) {
842
845
  try {
843
846
  return decodeURIComponent("" + e);
844
847
  } catch {
@@ -846,19 +849,19 @@ function fe(e) {
846
849
  }
847
850
  return "" + e;
848
851
  }
849
- const uo = /\/$/, lo = (e) => e.replace(uo, "");
850
- function ze(e, t, n = "/") {
852
+ const lo = /\/$/, fo = (e) => e.replace(lo, "");
853
+ function Je(e, t, n = "/") {
851
854
  let r, o = {}, i = "", s = "";
852
855
  const c = t.indexOf("#");
853
856
  let l = t.indexOf("?");
854
- return c < l && c >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), i = t.slice(l + 1, c > -1 ? c : t.length), o = e(i)), c > -1 && (r = r || t.slice(0, c), s = t.slice(c, t.length)), r = po(r ?? t, n), {
857
+ return c < l && c >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), i = t.slice(l + 1, c > -1 ? c : t.length), o = e(i)), c > -1 && (r = r || t.slice(0, c), s = t.slice(c, t.length)), r = mo(r ?? t, n), {
855
858
  fullPath: r + (i && "?") + i + s,
856
859
  path: r,
857
860
  query: o,
858
- hash: fe(s)
861
+ hash: de(s)
859
862
  };
860
863
  }
861
- function fo(e, t) {
864
+ function ho(e, t) {
862
865
  const n = t.query ? e(t.query) : "";
863
866
  return t.path + (n && "?") + n + (t.hash || "");
864
867
  }
@@ -876,17 +879,17 @@ function wn(e, t) {
876
879
  if (Object.keys(e).length !== Object.keys(t).length)
877
880
  return !1;
878
881
  for (const n in e)
879
- if (!ho(e[n], t[n]))
882
+ if (!po(e[n], t[n]))
880
883
  return !1;
881
884
  return !0;
882
885
  }
883
- function ho(e, t) {
884
- return L(e) ? kt(e, t) : L(t) ? kt(t, e) : e === t;
886
+ function po(e, t) {
887
+ return U(e) ? kt(e, t) : U(t) ? kt(t, e) : e === t;
885
888
  }
886
889
  function kt(e, t) {
887
- return L(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
890
+ return U(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
888
891
  }
889
- function po(e, t) {
892
+ function mo(e, t) {
890
893
  if (e.startsWith("/"))
891
894
  return e;
892
895
  if (O.NODE_ENV !== "production" && !t.startsWith("/"))
@@ -916,15 +919,15 @@ const J = {
916
919
  meta: {},
917
920
  redirectedFrom: void 0
918
921
  };
919
- var de;
922
+ var he;
920
923
  (function(e) {
921
924
  e.pop = "pop", e.push = "push";
922
- })(de || (de = {}));
923
- var re;
925
+ })(he || (he = {}));
926
+ var oe;
924
927
  (function(e) {
925
928
  e.back = "back", e.forward = "forward", e.unknown = "";
926
- })(re || (re = {}));
927
- const Qe = "";
929
+ })(oe || (oe = {}));
930
+ const Ye = "";
928
931
  function En(e) {
929
932
  if (!e)
930
933
  if (Q) {
@@ -932,13 +935,13 @@ function En(e) {
932
935
  e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
933
936
  } else
934
937
  e = "/";
935
- return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), lo(e);
938
+ return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), fo(e);
936
939
  }
937
- const mo = /^[^#]+#/;
940
+ const go = /^[^#]+#/;
938
941
  function _n(e, t) {
939
- return e.replace(mo, "#") + t;
942
+ return e.replace(go, "#") + t;
940
943
  }
941
- function go(e, t) {
944
+ function vo(e, t) {
942
945
  const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
943
946
  return {
944
947
  behavior: t.behavior,
@@ -946,11 +949,11 @@ function go(e, t) {
946
949
  top: r.top - n.top - (t.top || 0)
947
950
  };
948
951
  }
949
- const Be = () => ({
952
+ const We = () => ({
950
953
  left: window.scrollX,
951
954
  top: window.scrollY
952
955
  });
953
- function vo(e) {
956
+ function yo(e) {
954
957
  let t;
955
958
  if ("el" in e) {
956
959
  const n = e.el, r = typeof n == "string" && n.startsWith("#");
@@ -970,7 +973,7 @@ function vo(e) {
970
973
  O.NODE_ENV !== "production" && V(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
971
974
  return;
972
975
  }
973
- t = go(o, e);
976
+ t = vo(o, e);
974
977
  } else
975
978
  t = e;
976
979
  "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
@@ -978,15 +981,15 @@ function vo(e) {
978
981
  function Nt(e, t) {
979
982
  return (history.state ? history.state.position - t : -1) + e;
980
983
  }
981
- const st = /* @__PURE__ */ new Map();
982
- function yo(e, t) {
983
- st.set(e, t);
984
+ const it = /* @__PURE__ */ new Map();
985
+ function wo(e, t) {
986
+ it.set(e, t);
984
987
  }
985
- function wo(e) {
986
- const t = st.get(e);
987
- return st.delete(e), t;
988
+ function Eo(e) {
989
+ const t = it.get(e);
990
+ return it.delete(e), t;
988
991
  }
989
- let Eo = () => location.protocol + "//" + location.host;
992
+ let _o = () => location.protocol + "//" + location.host;
990
993
  function Sn(e, t) {
991
994
  const { pathname: n, search: r, hash: o } = t, i = e.indexOf("#");
992
995
  if (i > -1) {
@@ -995,7 +998,7 @@ function Sn(e, t) {
995
998
  }
996
999
  return Vt(n, e) + r + o;
997
1000
  }
998
- function _o(e, t, n, r) {
1001
+ function So(e, t, n, r) {
999
1002
  let o = [], i = [], s = null;
1000
1003
  const c = ({ state: f }) => {
1001
1004
  const h = Sn(e, location), v = n.value, p = t.value;
@@ -1011,8 +1014,8 @@ function _o(e, t, n, r) {
1011
1014
  o.forEach((y) => {
1012
1015
  y(n.value, v, {
1013
1016
  delta: g,
1014
- type: de.pop,
1015
- direction: g ? g > 0 ? re.forward : re.back : re.unknown
1017
+ type: he.pop,
1018
+ direction: g ? g > 0 ? oe.forward : oe.back : oe.unknown
1016
1019
  });
1017
1020
  });
1018
1021
  };
@@ -1029,7 +1032,7 @@ function _o(e, t, n, r) {
1029
1032
  }
1030
1033
  function u() {
1031
1034
  const { history: f } = window;
1032
- f.state && f.replaceState(I({}, f.state, { scroll: Be() }), "");
1035
+ f.state && f.replaceState(I({}, f.state, { scroll: We() }), "");
1033
1036
  }
1034
1037
  function a() {
1035
1038
  for (const f of i)
@@ -1051,10 +1054,10 @@ function It(e, t, n, r = !1, o = !1) {
1051
1054
  forward: n,
1052
1055
  replaced: r,
1053
1056
  position: window.history.length,
1054
- scroll: o ? Be() : null
1057
+ scroll: o ? We() : null
1055
1058
  };
1056
1059
  }
1057
- function So(e) {
1060
+ function bo(e) {
1058
1061
  const { history: t, location: n } = window, r = {
1059
1062
  value: Sn(e, n)
1060
1063
  }, o = { value: t.state };
@@ -1070,7 +1073,7 @@ function So(e) {
1070
1073
  scroll: null
1071
1074
  }, !0);
1072
1075
  function i(l, d, u) {
1073
- const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : Eo() + e + l;
1076
+ const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : _o() + e + l;
1074
1077
  try {
1075
1078
  t[u ? "replaceState" : "pushState"](d, "", f), o.value = d;
1076
1079
  } catch (h) {
@@ -1097,7 +1100,7 @@ function So(e) {
1097
1100
  t.state,
1098
1101
  {
1099
1102
  forward: l,
1100
- scroll: Be()
1103
+ scroll: We()
1101
1104
  }
1102
1105
  );
1103
1106
  O.NODE_ENV !== "production" && !t.state && V(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
@@ -1117,7 +1120,7 @@ You can find more information at https://router.vuejs.org/guide/migration/#Usage
1117
1120
  }
1118
1121
  function bn(e) {
1119
1122
  e = En(e);
1120
- const t = So(e), n = _o(e, t.state, t.location, t.replace);
1123
+ const t = bo(e), n = So(e, t.state, t.location, t.replace);
1121
1124
  function r(i, s = !0) {
1122
1125
  s || n.pauseListeners(), history.go(i);
1123
1126
  }
@@ -1136,8 +1139,8 @@ function bn(e) {
1136
1139
  get: () => t.state.value
1137
1140
  }), o;
1138
1141
  }
1139
- function bo(e = "") {
1140
- let t = [], n = [Qe], r = 0;
1142
+ function Oo(e = "") {
1143
+ let t = [], n = [Ye], r = 0;
1141
1144
  e = En(e);
1142
1145
  function o(c) {
1143
1146
  r++, r !== n.length && n.splice(r), n.push(c);
@@ -1146,14 +1149,14 @@ function bo(e = "") {
1146
1149
  const a = {
1147
1150
  direction: d,
1148
1151
  delta: u,
1149
- type: de.pop
1152
+ type: he.pop
1150
1153
  };
1151
1154
  for (const f of t)
1152
1155
  f(c, l, a);
1153
1156
  }
1154
1157
  const s = {
1155
1158
  // rewritten by Object.defineProperty
1156
- location: Qe,
1159
+ location: Ye,
1157
1160
  // TODO: should be kept in queue
1158
1161
  state: {},
1159
1162
  base: e,
@@ -1171,14 +1174,14 @@ function bo(e = "") {
1171
1174
  };
1172
1175
  },
1173
1176
  destroy() {
1174
- t = [], n = [Qe], r = 0;
1177
+ t = [], n = [Ye], r = 0;
1175
1178
  },
1176
1179
  go(c, l = !0) {
1177
1180
  const d = this.location, u = (
1178
1181
  // we are considering delta === 0 going forward, but in abstract mode
1179
1182
  // using 0 for the delta doesn't make sense like it does in html5 where
1180
1183
  // it reloads the page
1181
- c < 0 ? re.back : re.forward
1184
+ c < 0 ? oe.back : oe.forward
1182
1185
  );
1183
1186
  r = Math.max(0, Math.min(r + c, n.length - 1)), l && i(this.location, d, {
1184
1187
  direction: u,
@@ -1191,22 +1194,22 @@ function bo(e = "") {
1191
1194
  get: () => n[r]
1192
1195
  }), s;
1193
1196
  }
1194
- function Oo(e) {
1197
+ function Ro(e) {
1195
1198
  return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && V(`A hash base must end with a "#":
1196
1199
  "${e}" should be "${e.replace(/#.*$/, "#")}".`), bn(e);
1197
1200
  }
1198
- function $e(e) {
1201
+ function xe(e) {
1199
1202
  return typeof e == "string" || e && typeof e == "object";
1200
1203
  }
1201
1204
  function On(e) {
1202
1205
  return typeof e == "string" || typeof e == "symbol";
1203
1206
  }
1204
- const it = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
1207
+ const at = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
1205
1208
  var Tt;
1206
1209
  (function(e) {
1207
1210
  e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
1208
1211
  })(Tt || (Tt = {}));
1209
- const Ro = {
1212
+ const Vo = {
1210
1213
  1({ location: e, currentLocation: t }) {
1211
1214
  return `No match for
1212
1215
  ${JSON.stringify(e)}${t ? `
@@ -1214,7 +1217,7 @@ while being at
1214
1217
  ` + JSON.stringify(t) : ""}`;
1215
1218
  },
1216
1219
  2({ from: e, to: t }) {
1217
- return `Redirected from "${e.fullPath}" to "${Po(t)}" via a navigation guard.`;
1220
+ return `Redirected from "${e.fullPath}" to "${ko(t)}" via a navigation guard.`;
1218
1221
  },
1219
1222
  4({ from: e, to: t }) {
1220
1223
  return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
@@ -1226,37 +1229,37 @@ while being at
1226
1229
  return `Avoided redundant navigation to current location: "${e.fullPath}".`;
1227
1230
  }
1228
1231
  };
1229
- function he(e, t) {
1230
- return O.NODE_ENV !== "production" ? I(new Error(Ro[e](t)), {
1232
+ function pe(e, t) {
1233
+ return O.NODE_ENV !== "production" ? I(new Error(Vo[e](t)), {
1231
1234
  type: e,
1232
- [it]: !0
1235
+ [at]: !0
1233
1236
  }, t) : I(new Error(), {
1234
1237
  type: e,
1235
- [it]: !0
1238
+ [at]: !0
1236
1239
  }, t);
1237
1240
  }
1238
1241
  function z(e, t) {
1239
- return e instanceof Error && it in e && (t == null || !!(e.type & t));
1242
+ return e instanceof Error && at in e && (t == null || !!(e.type & t));
1240
1243
  }
1241
- const Vo = ["params", "query", "hash"];
1242
- function Po(e) {
1244
+ const Po = ["params", "query", "hash"];
1245
+ function ko(e) {
1243
1246
  if (typeof e == "string")
1244
1247
  return e;
1245
1248
  if (e.path != null)
1246
1249
  return e.path;
1247
1250
  const t = {};
1248
- for (const n of Vo)
1251
+ for (const n of Po)
1249
1252
  n in e && (t[n] = e[n]);
1250
1253
  return JSON.stringify(t, null, 2);
1251
1254
  }
1252
- const At = "[^/]+?", ko = {
1255
+ const At = "[^/]+?", No = {
1253
1256
  sensitive: !1,
1254
1257
  strict: !1,
1255
1258
  start: !0,
1256
1259
  end: !0
1257
- }, No = /[.+*?^${}()[\]/\\]/g;
1258
- function Io(e, t) {
1259
- const n = I({}, ko, t), r = [];
1260
+ }, Io = /[.+*?^${}()[\]/\\]/g;
1261
+ function To(e, t) {
1262
+ const n = I({}, No, t), r = [];
1260
1263
  let o = n.start ? "^" : "";
1261
1264
  const i = [];
1262
1265
  for (const d of e) {
@@ -1269,7 +1272,7 @@ function Io(e, t) {
1269
1272
  const f = d[a];
1270
1273
  let h = 40 + (n.sensitive ? 0.25 : 0);
1271
1274
  if (f.type === 0)
1272
- a || (o += "/"), o += f.value.replace(No, "\\$&"), h += 40;
1275
+ a || (o += "/"), o += f.value.replace(Io, "\\$&"), h += 40;
1273
1276
  else if (f.type === 1) {
1274
1277
  const { value: v, repeatable: p, optional: g, regexp: y } = f;
1275
1278
  i.push({
@@ -1320,9 +1323,9 @@ function Io(e, t) {
1320
1323
  u += h.value;
1321
1324
  else if (h.type === 1) {
1322
1325
  const { value: v, repeatable: p, optional: g } = h, y = v in d ? d[v] : "";
1323
- if (L(y) && !p)
1326
+ if (U(y) && !p)
1324
1327
  throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);
1325
- const _ = L(y) ? y.join("/") : y;
1328
+ const _ = U(y) ? y.join("/") : y;
1326
1329
  if (!_)
1327
1330
  if (g)
1328
1331
  f.length < 2 && (u.endsWith("/") ? u = u.slice(0, -1) : a = !0);
@@ -1341,7 +1344,7 @@ function Io(e, t) {
1341
1344
  stringify: l
1342
1345
  };
1343
1346
  }
1344
- function To(e, t) {
1347
+ function Ao(e, t) {
1345
1348
  let n = 0;
1346
1349
  for (; n < e.length && n < t.length; ) {
1347
1350
  const r = t[n] - e[n];
@@ -1355,7 +1358,7 @@ function Rn(e, t) {
1355
1358
  let n = 0;
1356
1359
  const r = e.score, o = t.score;
1357
1360
  for (; n < r.length && n < o.length; ) {
1358
- const i = To(r[n], o[n]);
1361
+ const i = Ao(r[n], o[n]);
1359
1362
  if (i)
1360
1363
  return i;
1361
1364
  n++;
@@ -1372,15 +1375,15 @@ function Ct(e) {
1372
1375
  const t = e[e.length - 1];
1373
1376
  return e.length > 0 && t[t.length - 1] < 0;
1374
1377
  }
1375
- const Ao = {
1378
+ const Co = {
1376
1379
  type: 0,
1377
1380
  value: ""
1378
- }, Co = /[a-zA-Z0-9_]/;
1379
- function $o(e) {
1381
+ }, $o = /[a-zA-Z0-9_]/;
1382
+ function xo(e) {
1380
1383
  if (!e)
1381
1384
  return [[]];
1382
1385
  if (e === "/")
1383
- return [[Ao]];
1386
+ return [[Co]];
1384
1387
  if (!e.startsWith("/"))
1385
1388
  throw new Error(O.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1386
1389
  function t(h) {
@@ -1421,7 +1424,7 @@ function $o(e) {
1421
1424
  f(), n = r;
1422
1425
  break;
1423
1426
  case 1:
1424
- l === "(" ? n = 2 : Co.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && c--);
1427
+ l === "(" ? n = 2 : $o.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && c--);
1425
1428
  break;
1426
1429
  case 2:
1427
1430
  l === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + l : n = 3 : u += l;
@@ -1436,8 +1439,8 @@ function $o(e) {
1436
1439
  }
1437
1440
  return n === 2 && t(`Unfinished custom RegExp for param "${d}"`), a(), s(), o;
1438
1441
  }
1439
- function xo(e, t, n) {
1440
- const r = Io($o(e.path), n);
1442
+ function jo(e, t, n) {
1443
+ const r = To(xo(e.path), n);
1441
1444
  if (O.NODE_ENV !== "production") {
1442
1445
  const i = /* @__PURE__ */ new Set();
1443
1446
  for (const s of r.keys)
@@ -1452,7 +1455,7 @@ function xo(e, t, n) {
1452
1455
  });
1453
1456
  return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
1454
1457
  }
1455
- function jo(e, t) {
1458
+ function Do(e, t) {
1456
1459
  const n = [], r = /* @__PURE__ */ new Map();
1457
1460
  t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
1458
1461
  function o(a) {
@@ -1460,7 +1463,7 @@ function jo(e, t) {
1460
1463
  }
1461
1464
  function i(a, f, h) {
1462
1465
  const v = !h, p = xt(a);
1463
- O.NODE_ENV !== "production" && Bo(p, f), p.aliasOf = h && h.record;
1466
+ O.NODE_ENV !== "production" && Lo(p, f), p.aliasOf = h && h.record;
1464
1467
  const g = Dt(t, a), y = [p];
1465
1468
  if ("alias" in a) {
1466
1469
  const R = typeof a.alias == "string" ? [a.alias] : a.alias;
@@ -1484,16 +1487,16 @@ function jo(e, t) {
1484
1487
  for (const R of y) {
1485
1488
  const { path: $ } = R;
1486
1489
  if (f && $[0] !== "/") {
1487
- const U = f.record.path, x = U[U.length - 1] === "/" ? "" : "/";
1490
+ const G = f.record.path, x = G[G.length - 1] === "/" ? "" : "/";
1488
1491
  R.path = f.record.path + ($ && x + $);
1489
1492
  }
1490
1493
  if (O.NODE_ENV !== "production" && R.path === "*")
1491
1494
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1492
1495
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
1493
- if (_ = xo(R, f, g), O.NODE_ENV !== "production" && f && $[0] === "/" && Wo(_, f), h ? (h.alias.push(_), O.NODE_ENV !== "production" && Fo(h, _)) : (b = b || _, b !== _ && b.alias.push(_), v && a.name && !jt(_) && (O.NODE_ENV !== "production" && Lo(a, f), s(a.name))), Vn(_) && l(_), p.children) {
1494
- const U = p.children;
1495
- for (let x = 0; x < U.length; x++)
1496
- i(U[x], _, h && h.children[x]);
1496
+ if (_ = jo(R, f, g), O.NODE_ENV !== "production" && f && $[0] === "/" && Uo(_, f), h ? (h.alias.push(_), O.NODE_ENV !== "production" && Bo(h, _)) : (b = b || _, b !== _ && b.alias.push(_), v && a.name && !jt(_) && (O.NODE_ENV !== "production" && Wo(a, f), s(a.name))), Vn(_) && l(_), p.children) {
1497
+ const G = p.children;
1498
+ for (let x = 0; x < G.length; x++)
1499
+ i(G[x], _, h && h.children[x]);
1497
1500
  }
1498
1501
  h = h || _;
1499
1502
  }
@@ -1514,14 +1517,14 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1514
1517
  return n;
1515
1518
  }
1516
1519
  function l(a) {
1517
- const f = Uo(a, n);
1520
+ const f = Go(a, n);
1518
1521
  n.splice(f, 0, a), a.record.name && !jt(a) && r.set(a.record.name, a);
1519
1522
  }
1520
1523
  function d(a, f) {
1521
1524
  let h, v = {}, p, g;
1522
1525
  if ("name" in a && a.name) {
1523
1526
  if (h = r.get(a.name), !h)
1524
- throw he(1, {
1527
+ throw pe(1, {
1525
1528
  location: a
1526
1529
  });
1527
1530
  if (O.NODE_ENV !== "production") {
@@ -1544,7 +1547,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1544
1547
  p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") && V(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), h = n.find((b) => b.re.test(p)), h && (v = h.parse(p), g = h.record.name);
1545
1548
  else {
1546
1549
  if (h = f.name ? r.get(f.name) : n.find((b) => b.re.test(f.path)), !h)
1547
- throw he(1, {
1550
+ throw pe(1, {
1548
1551
  location: a,
1549
1552
  currentLocation: f
1550
1553
  });
@@ -1559,7 +1562,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1559
1562
  path: p,
1560
1563
  params: v,
1561
1564
  matched: y,
1562
- meta: Mo(y)
1565
+ meta: Fo(y)
1563
1566
  };
1564
1567
  }
1565
1568
  e.forEach((a) => i(a));
@@ -1589,7 +1592,7 @@ function xt(e) {
1589
1592
  meta: e.meta || {},
1590
1593
  aliasOf: e.aliasOf,
1591
1594
  beforeEnter: e.beforeEnter,
1592
- props: Do(e),
1595
+ props: Mo(e),
1593
1596
  children: e.children || [],
1594
1597
  instances: {},
1595
1598
  leaveGuards: /* @__PURE__ */ new Set(),
@@ -1603,7 +1606,7 @@ function xt(e) {
1603
1606
  value: {}
1604
1607
  }), t;
1605
1608
  }
1606
- function Do(e) {
1609
+ function Mo(e) {
1607
1610
  const t = {}, n = e.props || !1;
1608
1611
  if ("component" in e)
1609
1612
  t.default = n;
@@ -1620,7 +1623,7 @@ function jt(e) {
1620
1623
  }
1621
1624
  return !1;
1622
1625
  }
1623
- function Mo(e) {
1626
+ function Fo(e) {
1624
1627
  return e.reduce((t, n) => I(t, n.meta), {});
1625
1628
  }
1626
1629
  function Dt(e, t) {
@@ -1629,40 +1632,40 @@ function Dt(e, t) {
1629
1632
  n[r] = r in t ? t[r] : e[r];
1630
1633
  return n;
1631
1634
  }
1632
- function at(e, t) {
1635
+ function ct(e, t) {
1633
1636
  return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
1634
1637
  }
1635
- function Fo(e, t) {
1638
+ function Bo(e, t) {
1636
1639
  for (const n of e.keys)
1637
- if (!n.optional && !t.keys.find(at.bind(null, n)))
1640
+ if (!n.optional && !t.keys.find(ct.bind(null, n)))
1638
1641
  return V(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1639
1642
  for (const n of t.keys)
1640
- if (!n.optional && !e.keys.find(at.bind(null, n)))
1643
+ if (!n.optional && !e.keys.find(ct.bind(null, n)))
1641
1644
  return V(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1642
1645
  }
1643
- function Bo(e, t) {
1646
+ function Lo(e, t) {
1644
1647
  t && t.record.name && !e.name && !e.path && V(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
1645
1648
  }
1646
- function Lo(e, t) {
1649
+ function Wo(e, t) {
1647
1650
  for (let n = t; n; n = n.parent)
1648
1651
  if (n.record.name === e.name)
1649
1652
  throw new Error(`A route named "${String(e.name)}" has been added as a ${t === n ? "child" : "descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
1650
1653
  }
1651
- function Wo(e, t) {
1654
+ function Uo(e, t) {
1652
1655
  for (const n of t.keys)
1653
- if (!e.keys.find(at.bind(null, n)))
1656
+ if (!e.keys.find(ct.bind(null, n)))
1654
1657
  return V(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
1655
1658
  }
1656
- function Uo(e, t) {
1659
+ function Go(e, t) {
1657
1660
  let n = 0, r = t.length;
1658
1661
  for (; n !== r; ) {
1659
1662
  const i = n + r >> 1;
1660
1663
  Rn(e, t[i]) < 0 ? r = i : n = i + 1;
1661
1664
  }
1662
- const o = Go(e);
1665
+ const o = qo(e);
1663
1666
  return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 && V(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1664
1667
  }
1665
- function Go(e) {
1668
+ function qo(e) {
1666
1669
  let t = e;
1667
1670
  for (; t = t.parent; )
1668
1671
  if (Vn(t) && Rn(e, t) === 0)
@@ -1671,16 +1674,16 @@ function Go(e) {
1671
1674
  function Vn({ record: e }) {
1672
1675
  return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
1673
1676
  }
1674
- function qo(e) {
1677
+ function Ho(e) {
1675
1678
  const t = {};
1676
1679
  if (e === "" || e === "?")
1677
1680
  return t;
1678
1681
  const r = (e[0] === "?" ? e.slice(1) : e).split("&");
1679
1682
  for (let o = 0; o < r.length; ++o) {
1680
- const i = r[o].replace(mn, " "), s = i.indexOf("="), c = fe(s < 0 ? i : i.slice(0, s)), l = s < 0 ? null : fe(i.slice(s + 1));
1683
+ const i = r[o].replace(mn, " "), s = i.indexOf("="), c = de(s < 0 ? i : i.slice(0, s)), l = s < 0 ? null : de(i.slice(s + 1));
1681
1684
  if (c in t) {
1682
1685
  let d = t[c];
1683
- L(d) || (d = t[c] = [d]), d.push(l);
1686
+ U(d) || (d = t[c] = [d]), d.push(l);
1684
1687
  } else
1685
1688
  t[c] = l;
1686
1689
  }
@@ -1690,11 +1693,11 @@ function Mt(e) {
1690
1693
  let t = "";
1691
1694
  for (let n in e) {
1692
1695
  const r = e[n];
1693
- if (n = io(n), r == null) {
1696
+ if (n = ao(n), r == null) {
1694
1697
  r !== void 0 && (t += (t.length ? "&" : "") + n);
1695
1698
  continue;
1696
1699
  }
1697
- (L(r) ? r.map((i) => i && ot(i)) : [r && ot(r)]).forEach((i) => {
1700
+ (U(r) ? r.map((i) => i && st(i)) : [r && st(r)]).forEach((i) => {
1698
1701
  i !== void 0 && (t += (t.length ? "&" : "") + n, i != null && (t += "=" + i));
1699
1702
  });
1700
1703
  }
@@ -1704,11 +1707,11 @@ function Ko(e) {
1704
1707
  const t = {};
1705
1708
  for (const n in e) {
1706
1709
  const r = e[n];
1707
- r !== void 0 && (t[n] = L(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
1710
+ r !== void 0 && (t[n] = U(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
1708
1711
  }
1709
1712
  return t;
1710
1713
  }
1711
- const Ho = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Le = Symbol(O.NODE_ENV !== "production" ? "router" : ""), vt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
1714
+ const zo = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Ue = Symbol(O.NODE_ENV !== "production" ? "router" : ""), vt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ut = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
1712
1715
  function ye() {
1713
1716
  let e = [];
1714
1717
  function t(r) {
@@ -1731,15 +1734,15 @@ function Y(e, t, n, r, o, i = (s) => s()) {
1731
1734
  (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
1732
1735
  return () => new Promise((c, l) => {
1733
1736
  const d = (f) => {
1734
- f === !1 ? l(he(4, {
1737
+ f === !1 ? l(pe(4, {
1735
1738
  from: n,
1736
1739
  to: t
1737
- })) : f instanceof Error ? l(f) : $e(f) ? l(he(2, {
1740
+ })) : f instanceof Error ? l(f) : xe(f) ? l(pe(2, {
1738
1741
  from: t,
1739
1742
  to: f
1740
1743
  })) : (s && // since enterCallbackArray is truthy, both record and name also are
1741
1744
  r.enterCallbacks[o] === s && typeof f == "function" && s.push(f), c());
1742
- }, u = i(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? zo(d, t, n) : d));
1745
+ }, u = i(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? Qo(d, t, n) : d));
1743
1746
  let a = Promise.resolve(u);
1744
1747
  if (e.length < 3 && (a = a.then(d)), O.NODE_ENV !== "production" && e.length > 2) {
1745
1748
  const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
@@ -1755,13 +1758,13 @@ ${e.toString()}
1755
1758
  a.catch((f) => l(f));
1756
1759
  });
1757
1760
  }
1758
- function zo(e, t, n) {
1761
+ function Qo(e, t, n) {
1759
1762
  let r = 0;
1760
1763
  return function() {
1761
1764
  r++ === 1 && V(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, r === 1 && e.apply(null, arguments);
1762
1765
  };
1763
1766
  }
1764
- function Je(e, t, n, r, o = (i) => i()) {
1767
+ function Xe(e, t, n, r, o = (i) => i()) {
1765
1768
  const i = [];
1766
1769
  for (const s of e) {
1767
1770
  O.NODE_ENV !== "production" && !s.components && !s.children.length && V(`Record with path "${s.path}" is either missing a "component(s)" or "children" property.`);
@@ -1786,7 +1789,7 @@ function Je(e, t, n, r, o = (i) => i()) {
1786
1789
  O.NODE_ENV !== "production" && !("catch" in d) && (V(`Component "${c}" in record with path "${s.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), d = Promise.resolve(d)), i.push(() => d.then((u) => {
1787
1790
  if (!u)
1788
1791
  throw new Error(`Couldn't resolve component "${c}" at "${s.path}"`);
1789
- const a = Qr(u) ? u.default : u;
1792
+ const a = Jr(u) ? u.default : u;
1790
1793
  s.mods[c] = u, s.components[c] = a;
1791
1794
  const h = (a.__vccOpts || a)[t];
1792
1795
  return h && Y(h, n, r, s, c, o)();
@@ -1797,17 +1800,17 @@ function Je(e, t, n, r, o = (i) => i()) {
1797
1800
  return i;
1798
1801
  }
1799
1802
  function Bt(e) {
1800
- const t = Z(Le), n = Z(vt);
1803
+ const t = Z(Ue), n = Z(vt);
1801
1804
  let r = !1, o = null;
1802
- const i = G(() => {
1805
+ const i = W(() => {
1803
1806
  const u = D(e.to);
1804
- return O.NODE_ENV !== "production" && (!r || u !== o) && ($e(u) || (r ? V(`Invalid value for prop "to" in useLink()
1807
+ return O.NODE_ENV !== "production" && (!r || u !== o) && (xe(u) || (r ? V(`Invalid value for prop "to" in useLink()
1805
1808
  - to:`, u, `
1806
1809
  - previous to:`, o, `
1807
1810
  - props:`, e) : V(`Invalid value for prop "to" in useLink()
1808
1811
  - to:`, u, `
1809
1812
  - props:`, e)), o = u, r = !0), t.resolve(u);
1810
- }), s = G(() => {
1813
+ }), s = W(() => {
1811
1814
  const { matched: u } = i.value, { length: a } = u, f = u[a - 1], h = n.matched;
1812
1815
  if (!f || !h.length)
1813
1816
  return -1;
@@ -1823,9 +1826,9 @@ function Bt(e) {
1823
1826
  Lt(f) === p && // avoid comparing the child with its parent
1824
1827
  h[h.length - 1].path !== p ? h.findIndex(ee.bind(null, u[a - 2])) : v
1825
1828
  );
1826
- }), c = G(() => s.value > -1 && Zo(n.params, i.value.params)), l = G(() => s.value > -1 && s.value === n.matched.length - 1 && wn(n.params, i.value.params));
1829
+ }), c = W(() => s.value > -1 && es(n.params, i.value.params)), l = W(() => s.value > -1 && s.value === n.matched.length - 1 && wn(n.params, i.value.params));
1827
1830
  function d(u = {}) {
1828
- if (Xo(u)) {
1831
+ if (Zo(u)) {
1829
1832
  const a = t[D(e.replace) ? "replace" : "push"](
1830
1833
  D(e.to)
1831
1834
  // avoid uncaught errors are they are logged anyway
@@ -1844,22 +1847,22 @@ function Bt(e) {
1844
1847
  error: null
1845
1848
  };
1846
1849
  u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(a), Qt(() => {
1847
- a.route = i.value, a.isActive = c.value, a.isExactActive = l.value, a.error = $e(D(e.to)) ? null : 'Invalid "to" value';
1850
+ a.route = i.value, a.isActive = c.value, a.isExactActive = l.value, a.error = xe(D(e.to)) ? null : 'Invalid "to" value';
1848
1851
  }, { flush: "post" });
1849
1852
  }
1850
1853
  }
1851
1854
  return {
1852
1855
  route: i,
1853
- href: G(() => i.value.href),
1856
+ href: W(() => i.value.href),
1854
1857
  isActive: c,
1855
1858
  isExactActive: l,
1856
1859
  navigate: d
1857
1860
  };
1858
1861
  }
1859
- function Qo(e) {
1862
+ function Jo(e) {
1860
1863
  return e.length === 1 ? e[0] : e;
1861
1864
  }
1862
- const Jo = /* @__PURE__ */ W({
1865
+ const Yo = /* @__PURE__ */ L({
1863
1866
  name: "RouterLink",
1864
1867
  compatConfig: { MODE: 3 },
1865
1868
  props: {
@@ -1879,7 +1882,7 @@ const Jo = /* @__PURE__ */ W({
1879
1882
  },
1880
1883
  useLink: Bt,
1881
1884
  setup(e, { slots: t }) {
1882
- const n = Hn(Bt(e)), { options: r } = Z(Le), o = G(() => ({
1885
+ const n = Kn(Bt(e)), { options: r } = Z(Ue), o = W(() => ({
1883
1886
  [Wt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
1884
1887
  // [getLinkClass(
1885
1888
  // props.inactiveClass,
@@ -1889,7 +1892,7 @@ const Jo = /* @__PURE__ */ W({
1889
1892
  [Wt(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
1890
1893
  }));
1891
1894
  return () => {
1892
- const i = t.default && Qo(t.default(n));
1895
+ const i = t.default && Jo(t.default(n));
1893
1896
  return e.custom ? i : A("a", {
1894
1897
  "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
1895
1898
  href: n.href,
@@ -1900,8 +1903,8 @@ const Jo = /* @__PURE__ */ W({
1900
1903
  }, i);
1901
1904
  };
1902
1905
  }
1903
- }), Yo = Jo;
1904
- function Xo(e) {
1906
+ }), Xo = Yo;
1907
+ function Zo(e) {
1905
1908
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
1906
1909
  if (e.currentTarget && e.currentTarget.getAttribute) {
1907
1910
  const t = e.currentTarget.getAttribute("target");
@@ -1911,13 +1914,13 @@ function Xo(e) {
1911
1914
  return e.preventDefault && e.preventDefault(), !0;
1912
1915
  }
1913
1916
  }
1914
- function Zo(e, t) {
1917
+ function es(e, t) {
1915
1918
  for (const n in t) {
1916
1919
  const r = t[n], o = e[n];
1917
1920
  if (typeof r == "string") {
1918
1921
  if (r !== o)
1919
1922
  return !1;
1920
- } else if (!L(o) || o.length !== r.length || r.some((i, s) => i !== o[s]))
1923
+ } else if (!U(o) || o.length !== r.length || r.some((i, s) => i !== o[s]))
1921
1924
  return !1;
1922
1925
  }
1923
1926
  return !0;
@@ -1925,7 +1928,7 @@ function Zo(e, t) {
1925
1928
  function Lt(e) {
1926
1929
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
1927
1930
  }
1928
- const Wt = (e, t, n) => e ?? t ?? n, es = /* @__PURE__ */ W({
1931
+ const Wt = (e, t, n) => e ?? t ?? n, ts = /* @__PURE__ */ L({
1929
1932
  name: "RouterView",
1930
1933
  // #674 we manually inherit them
1931
1934
  inheritAttrs: !1,
@@ -1940,18 +1943,18 @@ const Wt = (e, t, n) => e ?? t ?? n, es = /* @__PURE__ */ W({
1940
1943
  // https://github.com/vuejs/router/issues/1315
1941
1944
  compatConfig: { MODE: 3 },
1942
1945
  setup(e, { attrs: t, slots: n }) {
1943
- O.NODE_ENV !== "production" && ns();
1944
- const r = Z(ct), o = G(() => e.route || r.value), i = Z(Ft, 0), s = G(() => {
1946
+ O.NODE_ENV !== "production" && rs();
1947
+ const r = Z(ut), o = W(() => e.route || r.value), i = Z(Ft, 0), s = W(() => {
1945
1948
  let d = D(i);
1946
1949
  const { matched: u } = o.value;
1947
1950
  let a;
1948
1951
  for (; (a = u[d]) && !a.components; )
1949
1952
  d++;
1950
1953
  return d;
1951
- }), c = G(() => o.value.matched[s.value]);
1952
- Te(Ft, G(() => s.value + 1)), Te(Ho, c), Te(ct, o);
1953
- const l = K();
1954
- return H(() => [l.value, c.value, e.name], ([d, u, a], [f, h, v]) => {
1954
+ }), c = W(() => o.value.matched[s.value]);
1955
+ Te(Ft, W(() => s.value + 1)), Te(zo, c), Te(ut, o);
1956
+ const l = H();
1957
+ return K(() => [l.value, c.value, e.name], ([d, u, a], [f, h, v]) => {
1955
1958
  u && (u.instances[a] = d, h && h !== u && d && d === f && (u.leaveGuards.size || (u.leaveGuards = h.leaveGuards), u.updateGuards.size || (u.updateGuards = h.updateGuards))), d && u && // if there is no instance but to and from are the same this might be
1956
1959
  // the first visit
1957
1960
  (!h || !ee(u, h) || !f) && (u.enterCallbacks[a] || []).forEach((p) => p(d));
@@ -1972,7 +1975,7 @@ const Wt = (e, t, n) => e ?? t ?? n, es = /* @__PURE__ */ W({
1972
1975
  path: a.path,
1973
1976
  meta: a.meta
1974
1977
  };
1975
- (L(g.ref) ? g.ref.map((b) => b.i) : [g.ref.i]).forEach((b) => {
1978
+ (U(g.ref) ? g.ref.map((b) => b.i) : [g.ref.i]).forEach((b) => {
1976
1979
  b.__vrv_devtools = y;
1977
1980
  });
1978
1981
  }
@@ -1990,8 +1993,8 @@ function Ut(e, t) {
1990
1993
  const n = e(t);
1991
1994
  return n.length === 1 ? n[0] : n;
1992
1995
  }
1993
- const ts = es;
1994
- function ns() {
1996
+ const ns = ts;
1997
+ function rs() {
1995
1998
  const e = Jt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
1996
1999
  if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
1997
2000
  const r = t === "KeepAlive" ? "keep-alive" : "transition";
@@ -2008,7 +2011,7 @@ Use slot props instead:
2008
2011
  function we(e, t) {
2009
2012
  const n = I({}, e, {
2010
2013
  // remove variables that can contain vue instances
2011
- matched: e.matched.map((r) => hs(r, ["instances", "children", "aliasOf"]))
2014
+ matched: e.matched.map((r) => ps(r, ["instances", "children", "aliasOf"]))
2012
2015
  });
2013
2016
  return {
2014
2017
  _custom: {
@@ -2027,13 +2030,13 @@ function Ie(e) {
2027
2030
  }
2028
2031
  };
2029
2032
  }
2030
- let rs = 0;
2031
- function os(e, t, n) {
2033
+ let os = 0;
2034
+ function ss(e, t, n) {
2032
2035
  if (t.__hasDevtools)
2033
2036
  return;
2034
2037
  t.__hasDevtools = !0;
2035
- const r = rs++;
2036
- zr({
2038
+ const r = os++;
2039
+ Qr({
2037
2040
  id: "org.vuejs.router" + (r ? "." + r : ""),
2038
2041
  label: "Vue Router",
2039
2042
  packageName: "vue-router",
@@ -2059,16 +2062,16 @@ function os(e, t, n) {
2059
2062
  backgroundColor: Pn
2060
2063
  });
2061
2064
  }
2062
- L(a.__vrl_devtools) && (a.__devtoolsApi = o, a.__vrl_devtools.forEach((f) => {
2065
+ U(a.__vrl_devtools) && (a.__devtoolsApi = o, a.__vrl_devtools.forEach((f) => {
2063
2066
  let h = f.route.path, v = In, p = "", g = 0;
2064
- f.error ? (h = f.error, v = us, g = ls) : f.isExactActive ? (v = Nn, p = "This is exactly active") : f.isActive && (v = kn, p = "This link is active"), u.tags.push({
2067
+ f.error ? (h = f.error, v = ls, g = fs) : f.isExactActive ? (v = Nn, p = "This is exactly active") : f.isActive && (v = kn, p = "This link is active"), u.tags.push({
2065
2068
  label: h,
2066
2069
  textColor: g,
2067
2070
  tooltip: p,
2068
2071
  backgroundColor: v
2069
2072
  });
2070
2073
  }));
2071
- }), H(t.currentRoute, () => {
2074
+ }), K(t.currentRoute, () => {
2072
2075
  l(), o.notifyComponentUpdate(), o.sendInspectorTree(c), o.sendInspectorState(c);
2073
2076
  });
2074
2077
  const i = "router:navigations:" + r;
@@ -2148,7 +2151,7 @@ function os(e, t, n) {
2148
2151
  !f.parent.record.components);
2149
2152
  a.forEach(Cn), u.filter && (a = a.filter((f) => (
2150
2153
  // save matches state based on the payload
2151
- ut(f, u.filter.toLowerCase())
2154
+ lt(f, u.filter.toLowerCase())
2152
2155
  ))), a.forEach((f) => An(f, t.currentRoute.value)), u.rootNodes = a.map(Tn);
2153
2156
  }
2154
2157
  let d;
@@ -2158,16 +2161,16 @@ function os(e, t, n) {
2158
2161
  if (u.app === e && u.inspectorId === c) {
2159
2162
  const f = n.getRoutes().find((h) => h.record.__vd_id === u.nodeId);
2160
2163
  f && (u.state = {
2161
- options: is(f)
2164
+ options: as(f)
2162
2165
  });
2163
2166
  }
2164
2167
  }), o.sendInspectorTree(c), o.sendInspectorState(c);
2165
2168
  });
2166
2169
  }
2167
- function ss(e) {
2170
+ function is(e) {
2168
2171
  return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
2169
2172
  }
2170
- function is(e) {
2173
+ function as(e) {
2171
2174
  const { record: t } = e, n = [
2172
2175
  { editable: !1, key: "path", value: t.path }
2173
2176
  ];
@@ -2182,7 +2185,7 @@ function is(e) {
2182
2185
  _custom: {
2183
2186
  type: null,
2184
2187
  readOnly: !0,
2185
- display: e.keys.map((r) => `${r.name}${ss(r)}`).join(" "),
2188
+ display: e.keys.map((r) => `${r.name}${is(r)}`).join(" "),
2186
2189
  tooltip: "Param keys",
2187
2190
  value: e.keys
2188
2191
  }
@@ -2213,13 +2216,13 @@ function is(e) {
2213
2216
  }
2214
2217
  }), n;
2215
2218
  }
2216
- const Pn = 15485081, kn = 2450411, Nn = 8702998, as = 2282478, In = 16486972, cs = 6710886, us = 16704226, ls = 12131356;
2219
+ const Pn = 15485081, kn = 2450411, Nn = 8702998, cs = 2282478, In = 16486972, us = 6710886, ls = 16704226, fs = 12131356;
2217
2220
  function Tn(e) {
2218
2221
  const t = [], { record: n } = e;
2219
2222
  n.name != null && t.push({
2220
2223
  label: String(n.name),
2221
2224
  textColor: 0,
2222
- backgroundColor: as
2225
+ backgroundColor: cs
2223
2226
  }), n.aliasOf && t.push({
2224
2227
  label: "alias",
2225
2228
  textColor: 0,
@@ -2239,18 +2242,18 @@ function Tn(e) {
2239
2242
  }), n.redirect && t.push({
2240
2243
  label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
2241
2244
  textColor: 16777215,
2242
- backgroundColor: cs
2245
+ backgroundColor: us
2243
2246
  });
2244
2247
  let r = n.__vd_id;
2245
- return r == null && (r = String(fs++), n.__vd_id = r), {
2248
+ return r == null && (r = String(ds++), n.__vd_id = r), {
2246
2249
  id: r,
2247
2250
  label: n.path,
2248
2251
  tags: t,
2249
2252
  children: e.children.map(Tn)
2250
2253
  };
2251
2254
  }
2252
- let fs = 0;
2253
- const ds = /^\/(.*)\/([a-z]*)$/;
2255
+ let ds = 0;
2256
+ const hs = /^\/(.*)\/([a-z]*)$/;
2254
2257
  function An(e, t) {
2255
2258
  const n = t.matched.length && ee(t.matched[t.matched.length - 1], e.record);
2256
2259
  e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => ee(r, e.record))), e.children.forEach((r) => An(r, t));
@@ -2258,31 +2261,31 @@ function An(e, t) {
2258
2261
  function Cn(e) {
2259
2262
  e.__vd_match = !1, e.children.forEach(Cn);
2260
2263
  }
2261
- function ut(e, t) {
2262
- const n = String(e.re).match(ds);
2264
+ function lt(e, t) {
2265
+ const n = String(e.re).match(hs);
2263
2266
  if (e.__vd_match = !1, !n || n.length < 3)
2264
2267
  return !1;
2265
2268
  if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
2266
- return e.children.forEach((s) => ut(s, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2267
- const o = e.record.path.toLowerCase(), i = fe(o);
2268
- return !t.startsWith("/") && (i.includes(t) || o.includes(t)) || i.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((s) => ut(s, t));
2269
+ return e.children.forEach((s) => lt(s, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2270
+ const o = e.record.path.toLowerCase(), i = de(o);
2271
+ return !t.startsWith("/") && (i.includes(t) || o.includes(t)) || i.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((s) => lt(s, t));
2269
2272
  }
2270
- function hs(e, t) {
2273
+ function ps(e, t) {
2271
2274
  const n = {};
2272
2275
  for (const r in e)
2273
2276
  t.includes(r) || (n[r] = e[r]);
2274
2277
  return n;
2275
2278
  }
2276
- function ps(e) {
2277
- const t = jo(e.routes, e), n = e.parseQuery || qo, r = e.stringifyQuery || Mt, o = e.history;
2279
+ function ms(e) {
2280
+ const t = Do(e.routes, e), n = e.parseQuery || Ho, r = e.stringifyQuery || Mt, o = e.history;
2278
2281
  if (O.NODE_ENV !== "production" && !o)
2279
2282
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
2280
2283
  const i = ye(), s = ye(), c = ye(), l = X(J);
2281
2284
  let d = J;
2282
2285
  Q && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2283
- const u = He.bind(null, (m) => "" + m), a = He.bind(null, co), f = (
2286
+ const u = Qe.bind(null, (m) => "" + m), a = Qe.bind(null, uo), f = (
2284
2287
  // @ts-expect-error: intentionally avoid the type check
2285
- He.bind(null, fe)
2288
+ Qe.bind(null, de)
2286
2289
  );
2287
2290
  function h(m, E) {
2288
2291
  let w, S;
@@ -2300,22 +2303,22 @@ function ps(e) {
2300
2303
  }
2301
2304
  function y(m, E) {
2302
2305
  if (E = I({}, E || l.value), typeof m == "string") {
2303
- const P = ze(n, m, E.path), C = t.resolve({ path: P.path }, E), ne = o.createHref(P.fullPath);
2306
+ const P = Je(n, m, E.path), C = t.resolve({ path: P.path }, E), ne = o.createHref(P.fullPath);
2304
2307
  return O.NODE_ENV !== "production" && (ne.startsWith("//") ? V(`Location "${m}" resolved to "${ne}". A resolved location cannot start with multiple slashes.`) : C.matched.length || V(`No match found for location with path "${m}"`)), I(P, C, {
2305
2308
  params: f(C.params),
2306
- hash: fe(P.hash),
2309
+ hash: de(P.hash),
2307
2310
  redirectedFrom: void 0,
2308
2311
  href: ne
2309
2312
  });
2310
2313
  }
2311
- if (O.NODE_ENV !== "production" && !$e(m))
2314
+ if (O.NODE_ENV !== "production" && !xe(m))
2312
2315
  return V(`router.resolve() was passed an invalid location. This will fail in production.
2313
2316
  - Location:`, m), y({});
2314
2317
  let w;
2315
2318
  if (m.path != null)
2316
2319
  O.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
2317
2320
  Object.keys(m.params).length && V(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
2318
- path: ze(n, m.path, E.path).path
2321
+ path: Je(n, m.path, E.path).path
2319
2322
  });
2320
2323
  else {
2321
2324
  const P = I({}, m.params);
@@ -2327,8 +2330,8 @@ function ps(e) {
2327
2330
  }
2328
2331
  const S = t.resolve(w, E), T = m.hash || "";
2329
2332
  O.NODE_ENV !== "production" && T && !T.startsWith("#") && V(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), S.params = u(f(S.params));
2330
- const j = fo(r, I({}, m, {
2331
- hash: so(T),
2333
+ const j = ho(r, I({}, m, {
2334
+ hash: io(T),
2332
2335
  path: S.path
2333
2336
  })), k = o.createHref(j);
2334
2337
  return O.NODE_ENV !== "production" && (k.startsWith("//") ? V(`Location "${m}" resolved to "${k}". A resolved location cannot start with multiple slashes.`) : S.matched.length || V(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
@@ -2350,11 +2353,11 @@ function ps(e) {
2350
2353
  });
2351
2354
  }
2352
2355
  function _(m) {
2353
- return typeof m == "string" ? ze(n, m, l.value.path) : I({}, m);
2356
+ return typeof m == "string" ? Je(n, m, l.value.path) : I({}, m);
2354
2357
  }
2355
2358
  function b(m, E) {
2356
2359
  if (d !== m)
2357
- return he(8, {
2360
+ return pe(8, {
2358
2361
  from: E,
2359
2362
  to: m
2360
2363
  });
@@ -2365,7 +2368,7 @@ function ps(e) {
2365
2368
  function $(m) {
2366
2369
  return R(I(_(m), { replace: !0 }));
2367
2370
  }
2368
- function U(m) {
2371
+ function G(m) {
2369
2372
  const E = m.matched[m.matched.length - 1];
2370
2373
  if (E && E.redirect) {
2371
2374
  const { redirect: w } = E;
@@ -2386,7 +2389,7 @@ ${JSON.stringify(S, null, 2)}
2386
2389
  }
2387
2390
  }
2388
2391
  function x(m, E) {
2389
- const w = d = y(m), S = l.value, T = m.state, j = m.force, k = m.replace === !0, P = U(w);
2392
+ const w = d = y(m), S = l.value, T = m.state, j = m.force, k = m.replace === !0, P = G(w);
2390
2393
  if (P)
2391
2394
  return x(
2392
2395
  I(_(P), {
@@ -2400,7 +2403,7 @@ ${JSON.stringify(S, null, 2)}
2400
2403
  const C = w;
2401
2404
  C.redirectedFrom = E;
2402
2405
  let ne;
2403
- return !j && Pt(r, S, w) && (ne = he(16, { to: C, from: S }), _t(
2406
+ return !j && Pt(r, S, w) && (ne = pe(16, { to: C, from: S }), _t(
2404
2407
  S,
2405
2408
  S,
2406
2409
  // this is a push, the only way for it to be triggered from a
@@ -2409,16 +2412,16 @@ ${JSON.stringify(S, null, 2)}
2409
2412
  // This cannot be the first navigation because the initial location
2410
2413
  // cannot be manually navigated to
2411
2414
  !1
2412
- )), (ne ? Promise.resolve(ne) : ae(C, S)).catch((M) => z(M) ? (
2415
+ )), (ne ? Promise.resolve(ne) : ce(C, S)).catch((M) => z(M) ? (
2413
2416
  // navigation redirects still mark the router as ready
2414
2417
  z(
2415
2418
  M,
2416
2419
  2
2417
2420
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2418
- ) ? M : Ge(M)
2421
+ ) ? M : He(M)
2419
2422
  ) : (
2420
2423
  // reject any unknown error
2421
- Ue(M, C, S)
2424
+ qe(M, C, S)
2422
2425
  )).then((M) => {
2423
2426
  if (M) {
2424
2427
  if (z(
@@ -2450,7 +2453,7 @@ ${JSON.stringify(S, null, 2)}
2450
2453
  return yt(C, S, M), M;
2451
2454
  });
2452
2455
  }
2453
- function ie(m, E) {
2456
+ function ae(m, E) {
2454
2457
  const w = b(m, E);
2455
2458
  return w ? Promise.reject(w) : Promise.resolve();
2456
2459
  }
@@ -2458,42 +2461,42 @@ ${JSON.stringify(S, null, 2)}
2458
2461
  const E = Ne.values().next().value;
2459
2462
  return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
2460
2463
  }
2461
- function ae(m, E) {
2464
+ function ce(m, E) {
2462
2465
  let w;
2463
- const [S, T, j] = ms(m, E);
2464
- w = Je(S.reverse(), "beforeRouteLeave", m, E);
2466
+ const [S, T, j] = gs(m, E);
2467
+ w = Xe(S.reverse(), "beforeRouteLeave", m, E);
2465
2468
  for (const P of S)
2466
2469
  P.leaveGuards.forEach((C) => {
2467
2470
  w.push(Y(C, m, E));
2468
2471
  });
2469
- const k = ie.bind(null, m, E);
2470
- return w.push(k), ce(w).then(() => {
2472
+ const k = ae.bind(null, m, E);
2473
+ return w.push(k), ue(w).then(() => {
2471
2474
  w = [];
2472
2475
  for (const P of i.list())
2473
2476
  w.push(Y(P, m, E));
2474
- return w.push(k), ce(w);
2477
+ return w.push(k), ue(w);
2475
2478
  }).then(() => {
2476
- w = Je(T, "beforeRouteUpdate", m, E);
2479
+ w = Xe(T, "beforeRouteUpdate", m, E);
2477
2480
  for (const P of T)
2478
2481
  P.updateGuards.forEach((C) => {
2479
2482
  w.push(Y(C, m, E));
2480
2483
  });
2481
- return w.push(k), ce(w);
2484
+ return w.push(k), ue(w);
2482
2485
  }).then(() => {
2483
2486
  w = [];
2484
2487
  for (const P of j)
2485
2488
  if (P.beforeEnter)
2486
- if (L(P.beforeEnter))
2489
+ if (U(P.beforeEnter))
2487
2490
  for (const C of P.beforeEnter)
2488
2491
  w.push(Y(C, m, E));
2489
2492
  else
2490
2493
  w.push(Y(P.beforeEnter, m, E));
2491
- return w.push(k), ce(w);
2492
- }).then(() => (m.matched.forEach((P) => P.enterCallbacks = {}), w = Je(j, "beforeRouteEnter", m, E, te), w.push(k), ce(w))).then(() => {
2494
+ return w.push(k), ue(w);
2495
+ }).then(() => (m.matched.forEach((P) => P.enterCallbacks = {}), w = Xe(j, "beforeRouteEnter", m, E, te), w.push(k), ue(w))).then(() => {
2493
2496
  w = [];
2494
2497
  for (const P of s.list())
2495
2498
  w.push(Y(P, m, E));
2496
- return w.push(k), ce(w);
2499
+ return w.push(k), ue(w);
2497
2500
  }).catch((P) => z(
2498
2501
  P,
2499
2502
  8
@@ -2510,21 +2513,21 @@ ${JSON.stringify(S, null, 2)}
2510
2513
  const k = E === J, P = Q ? history.state : {};
2511
2514
  w && (S || k ? o.replace(m.fullPath, I({
2512
2515
  scroll: k && P && P.scroll
2513
- }, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, k), Ge();
2516
+ }, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, k), He();
2514
2517
  }
2515
- let me;
2518
+ let ge;
2516
2519
  function Bn() {
2517
- me || (me = o.listen((m, E, w) => {
2520
+ ge || (ge = o.listen((m, E, w) => {
2518
2521
  if (!St.listening)
2519
2522
  return;
2520
- const S = y(m), T = U(S);
2523
+ const S = y(m), T = G(S);
2521
2524
  if (T) {
2522
2525
  x(I(T, { replace: !0, force: !0 }), S).catch(_e);
2523
2526
  return;
2524
2527
  }
2525
2528
  d = S;
2526
2529
  const j = l.value;
2527
- Q && yo(Nt(j.fullPath, w.delta), Be()), ae(S, j).catch((k) => z(
2530
+ Q && wo(Nt(j.fullPath, w.delta), We()), ce(S, j).catch((k) => z(
2528
2531
  k,
2529
2532
  12
2530
2533
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -2543,8 +2546,8 @@ ${JSON.stringify(S, null, 2)}
2543
2546
  P,
2544
2547
  20
2545
2548
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2546
- ) && !w.delta && w.type === de.pop && o.go(-1, !1);
2547
- }).catch(_e), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ue(k, S, j))).then((k) => {
2549
+ ) && !w.delta && w.type === he.pop && o.go(-1, !1);
2550
+ }).catch(_e), Promise.reject()) : (w.delta && o.go(-w.delta, !1), qe(k, S, j))).then((k) => {
2548
2551
  k = k || wt(
2549
2552
  // after navigation, all matched components are resolved
2550
2553
  S,
@@ -2556,7 +2559,7 @@ ${JSON.stringify(S, null, 2)}
2556
2559
  k,
2557
2560
  8
2558
2561
  /* ErrorTypes.NAVIGATION_CANCELLED */
2559
- ) ? o.go(-w.delta, !1) : w.type === de.pop && z(
2562
+ ) ? o.go(-w.delta, !1) : w.type === he.pop && z(
2560
2563
  k,
2561
2564
  20
2562
2565
  /* ErrorTypes.NAVIGATION_DUPLICATED */
@@ -2564,29 +2567,29 @@ ${JSON.stringify(S, null, 2)}
2564
2567
  }).catch(_e);
2565
2568
  }));
2566
2569
  }
2567
- let We = ye(), Et = ye(), ke;
2568
- function Ue(m, E, w) {
2569
- Ge(m);
2570
+ let Ge = ye(), Et = ye(), ke;
2571
+ function qe(m, E, w) {
2572
+ He(m);
2570
2573
  const S = Et.list();
2571
2574
  return S.length ? S.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" && V("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2572
2575
  }
2573
2576
  function Ln() {
2574
2577
  return ke && l.value !== J ? Promise.resolve() : new Promise((m, E) => {
2575
- We.add([m, E]);
2578
+ Ge.add([m, E]);
2576
2579
  });
2577
2580
  }
2578
- function Ge(m) {
2579
- return ke || (ke = !m, Bn(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
2581
+ function He(m) {
2582
+ return ke || (ke = !m, Bn(), Ge.list().forEach(([E, w]) => m ? w(m) : E()), Ge.reset()), m;
2580
2583
  }
2581
2584
  function _t(m, E, w, S) {
2582
2585
  const { scrollBehavior: T } = e;
2583
2586
  if (!Q || !T)
2584
2587
  return Promise.resolve();
2585
- const j = !w && wo(Nt(m.fullPath, 0)) || (S || !w) && history.state && history.state.scroll || null;
2586
- return Ae().then(() => T(m, E, j)).then((k) => k && vo(k)).catch((k) => Ue(k, m, E));
2588
+ const j = !w && Eo(Nt(m.fullPath, 0)) || (S || !w) && history.state && history.state.scroll || null;
2589
+ return Ae().then(() => T(m, E, j)).then((k) => k && yo(k)).catch((k) => qe(k, m, E));
2587
2590
  }
2588
- const qe = (m) => o.go(m);
2589
- let Ke;
2591
+ const Ke = (m) => o.go(m);
2592
+ let ze;
2590
2593
  const Ne = /* @__PURE__ */ new Set(), St = {
2591
2594
  currentRoute: l,
2592
2595
  listening: !0,
@@ -2599,9 +2602,9 @@ ${JSON.stringify(S, null, 2)}
2599
2602
  options: e,
2600
2603
  push: R,
2601
2604
  replace: $,
2602
- go: qe,
2603
- back: () => qe(-1),
2604
- forward: () => qe(1),
2605
+ go: Ke,
2606
+ back: () => Ke(-1),
2607
+ forward: () => Ke(1),
2605
2608
  beforeEach: i.add,
2606
2609
  beforeResolve: s.add,
2607
2610
  afterEach: c.add,
@@ -2609,12 +2612,12 @@ ${JSON.stringify(S, null, 2)}
2609
2612
  isReady: Ln,
2610
2613
  install(m) {
2611
2614
  const E = this;
2612
- m.component("RouterLink", Yo), m.component("RouterView", ts), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
2615
+ m.component("RouterLink", Xo), m.component("RouterView", ns), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
2613
2616
  enumerable: !0,
2614
2617
  get: () => D(l)
2615
2618
  }), Q && // used for the initial navigation client side to avoid pushing
2616
2619
  // multiple times when the router is used in multiple apps
2617
- !Ke && l.value === J && (Ke = !0, R(o.location).catch((T) => {
2620
+ !ze && l.value === J && (ze = !0, R(o.location).catch((T) => {
2618
2621
  O.NODE_ENV !== "production" && V("Unexpected error when starting the router:", T);
2619
2622
  }));
2620
2623
  const w = {};
@@ -2623,19 +2626,19 @@ ${JSON.stringify(S, null, 2)}
2623
2626
  get: () => l.value[T],
2624
2627
  enumerable: !0
2625
2628
  });
2626
- m.provide(Le, E), m.provide(vt, Kn(w)), m.provide(ct, l);
2629
+ m.provide(Ue, E), m.provide(vt, Hn(w)), m.provide(ut, l);
2627
2630
  const S = m.unmount;
2628
2631
  Ne.add(m), m.unmount = function() {
2629
- Ne.delete(m), Ne.size < 1 && (d = J, me && me(), me = null, l.value = J, Ke = !1, ke = !1), S();
2630
- }, O.NODE_ENV !== "production" && Q && os(m, E, t);
2632
+ Ne.delete(m), Ne.size < 1 && (d = J, ge && ge(), ge = null, l.value = J, ze = !1, ke = !1), S();
2633
+ }, O.NODE_ENV !== "production" && Q && ss(m, E, t);
2631
2634
  }
2632
2635
  };
2633
- function ce(m) {
2636
+ function ue(m) {
2634
2637
  return m.reduce((E, w) => E.then(() => te(w)), Promise.resolve());
2635
2638
  }
2636
2639
  return St;
2637
2640
  }
2638
- function ms(e, t) {
2641
+ function gs(e, t) {
2639
2642
  const n = [], r = [], o = [], i = Math.max(t.matched.length, e.matched.length);
2640
2643
  for (let s = 0; s < i; s++) {
2641
2644
  const c = t.matched[s];
@@ -2645,14 +2648,14 @@ function ms(e, t) {
2645
2648
  }
2646
2649
  return [n, r, o];
2647
2650
  }
2648
- function gs() {
2649
- return Z(Le);
2651
+ function vs() {
2652
+ return Z(Ue);
2650
2653
  }
2651
- function vs(e) {
2654
+ function ys(e) {
2652
2655
  return Z(vt);
2653
2656
  }
2654
2657
  const $n = /* @__PURE__ */ new Map();
2655
- function ys(e) {
2658
+ function ws(e) {
2656
2659
  var t;
2657
2660
  (t = e.jsFn) == null || t.forEach((n) => {
2658
2661
  const { immediately: r = !1 } = n;
@@ -2660,11 +2663,11 @@ function ys(e) {
2660
2663
  r && (o = o()), $n.set(n.id, o);
2661
2664
  });
2662
2665
  }
2663
- function ws(e) {
2666
+ function Es(e) {
2664
2667
  return $n.get(e);
2665
2668
  }
2666
- function oe(e) {
2667
- let t = on(), n = Ir(), r = jr(e), o = an(), i = gs(), s = vs();
2669
+ function se(e) {
2670
+ let t = on(), n = Tr(), r = Dr(e), o = an(), i = vs(), s = ys();
2668
2671
  function c(p) {
2669
2672
  p.scopeSnapshot && (t = p.scopeSnapshot), p.slotSnapshot && (n = p.slotSnapshot), p.vforSnapshot && (r = p.vforSnapshot), p.elementRefSnapshot && (o = p.elementRefSnapshot), p.routerSnapshot && (i = p.routerSnapshot);
2670
2673
  }
@@ -2672,29 +2675,31 @@ function oe(e) {
2672
2675
  if (N.isVar(p))
2673
2676
  return q(d(p));
2674
2677
  if (N.isVForItem(p))
2675
- return Mr(p.fid) ? r.getVForIndex(p.fid) : q(d(p));
2678
+ return Fr(p.fid) ? r.getVForIndex(p.fid) : q(d(p));
2676
2679
  if (N.isVForIndex(p))
2677
2680
  return r.getVForIndex(p.fid);
2678
2681
  if (N.isJsFn(p)) {
2679
2682
  const { id: g } = p;
2680
- return ws(g);
2683
+ return Es(g);
2684
+ }
2685
+ if (N.isSlotProp(p)) {
2686
+ const g = n.getPropsValue(p);
2687
+ return p.path ? fr(g, p.path) : g;
2681
2688
  }
2682
- if (N.isSlotProp(p))
2683
- return n.getPropsValue(p);
2684
2689
  if (N.isRouterParams(p))
2685
2690
  return q(d(p));
2686
2691
  throw new Error(`Invalid binding: ${p}`);
2687
2692
  }
2688
2693
  function d(p) {
2689
2694
  if (N.isVar(p)) {
2690
- const g = t.getVueRef(p) || Sr(p);
2695
+ const g = t.getVueRef(p) || br(p);
2691
2696
  return Ot(g, {
2692
2697
  paths: p.path,
2693
2698
  getBindableValueFn: l
2694
2699
  });
2695
2700
  }
2696
2701
  if (N.isVForItem(p))
2697
- return Dr({
2702
+ return Mr({
2698
2703
  binding: p,
2699
2704
  snapshot: v
2700
2705
  });
@@ -2761,8 +2766,8 @@ function oe(e) {
2761
2766
  if (N.isVar(b)) {
2762
2767
  const x = d(b);
2763
2768
  if ($ === 2) {
2764
- y[R].forEach(([te, ae]) => {
2765
- lr(x.value, te, ae);
2769
+ y[R].forEach(([te, ce]) => {
2770
+ lr(x.value, te, ce);
2766
2771
  });
2767
2772
  return;
2768
2773
  }
@@ -2770,17 +2775,17 @@ function oe(e) {
2770
2775
  return;
2771
2776
  }
2772
2777
  if (N.isRouterAction(b)) {
2773
- const x = y[R], ie = i[x.fn];
2774
- ie(...x.args);
2778
+ const x = y[R], ae = i[x.fn];
2779
+ ae(...x.args);
2775
2780
  return;
2776
2781
  }
2777
2782
  if (N.isElementRef(b)) {
2778
- const x = o.getRef(b).value, ie = y[R], { method: te, args: ae = [] } = ie;
2779
- x[te](...ae);
2783
+ const x = o.getRef(b).value, ae = y[R], { method: te, args: ce = [] } = ae;
2784
+ x[te](...ce);
2780
2785
  return;
2781
2786
  }
2782
- const U = d(b);
2783
- U.value = y[R];
2787
+ const G = d(b);
2788
+ G.value = y[R];
2784
2789
  });
2785
2790
  }
2786
2791
  const v = {
@@ -2795,9 +2800,9 @@ function oe(e) {
2795
2800
  };
2796
2801
  return v;
2797
2802
  }
2798
- class Es {
2803
+ class _s {
2799
2804
  async eventSend(t, n) {
2800
- const { fType: r, hKey: o, key: i } = t, s = Xe().webServerInfo, c = i !== void 0 ? { key: i } : {}, l = r === "sync" ? s.event_url : s.event_async_url;
2805
+ const { fType: r, hKey: o, key: i } = t, s = Ze().webServerInfo, c = i !== void 0 ? { key: i } : {}, l = r === "sync" ? s.event_url : s.event_async_url;
2801
2806
  let d = {};
2802
2807
  const u = await fetch(l, {
2803
2808
  method: "POST",
@@ -2808,7 +2813,7 @@ class Es {
2808
2813
  bind: n,
2809
2814
  hKey: o,
2810
2815
  ...c,
2811
- page: Ce(),
2816
+ page: $e(),
2812
2817
  ...d
2813
2818
  })
2814
2819
  });
@@ -2817,10 +2822,10 @@ class Es {
2817
2822
  return await u.json();
2818
2823
  }
2819
2824
  async watchSend(t) {
2820
- const { outputs: n, fType: r, key: o } = t.watchConfig, i = Xe().webServerInfo, s = r === "sync" ? i.watch_url : i.watch_async_url, c = t.getServerInputs(), l = {
2825
+ const { outputs: n, fType: r, key: o } = t.watchConfig, i = Ze().webServerInfo, s = r === "sync" ? i.watch_url : i.watch_async_url, c = t.getServerInputs(), l = {
2821
2826
  key: o,
2822
2827
  input: c,
2823
- page: Ce()
2828
+ page: $e()
2824
2829
  };
2825
2830
  return await (await fetch(s, {
2826
2831
  method: "POST",
@@ -2831,7 +2836,7 @@ class Es {
2831
2836
  })).json();
2832
2837
  }
2833
2838
  }
2834
- class _s {
2839
+ class Ss {
2835
2840
  async eventSend(t, n) {
2836
2841
  const { fType: r, hKey: o, key: i } = t, s = i !== void 0 ? { key: i } : {};
2837
2842
  let c = {};
@@ -2840,7 +2845,7 @@ class _s {
2840
2845
  fType: r,
2841
2846
  hKey: o,
2842
2847
  ...s,
2843
- page: Ce(),
2848
+ page: $e(),
2844
2849
  ...c
2845
2850
  };
2846
2851
  return await window.pywebview.api.event_call(l);
@@ -2850,26 +2855,26 @@ class _s {
2850
2855
  key: o,
2851
2856
  input: i,
2852
2857
  fType: r,
2853
- page: Ce()
2858
+ page: $e()
2854
2859
  };
2855
2860
  return await window.pywebview.api.watch_call(s);
2856
2861
  }
2857
2862
  }
2858
- let lt;
2859
- function Ss(e) {
2863
+ let ft;
2864
+ function bs(e) {
2860
2865
  switch (e) {
2861
2866
  case "web":
2862
- lt = new Es();
2867
+ ft = new _s();
2863
2868
  break;
2864
2869
  case "webview":
2865
- lt = new _s();
2870
+ ft = new Ss();
2866
2871
  break;
2867
2872
  }
2868
2873
  }
2869
2874
  function xn() {
2870
- return lt;
2875
+ return ft;
2871
2876
  }
2872
- function bs(e) {
2877
+ function Os(e) {
2873
2878
  const t = {
2874
2879
  type: "var",
2875
2880
  sid: e.sid,
@@ -2897,7 +2902,7 @@ function jn(e) {
2897
2902
  preValue: c.value,
2898
2903
  newValue: s.value,
2899
2904
  reset: !0
2900
- } : Os(c, s, n);
2905
+ } : Rs(c, s, n);
2901
2906
  });
2902
2907
  return {
2903
2908
  run: () => {
@@ -2912,7 +2917,7 @@ function jn(e) {
2912
2917
  }
2913
2918
  };
2914
2919
  }
2915
- function Os(e, t, n) {
2920
+ function Rs(e, t, n) {
2916
2921
  const r = B(t.code), o = t.inputs.map(
2917
2922
  (i) => n.getObjectToValue(i)
2918
2923
  );
@@ -2923,10 +2928,10 @@ function Os(e, t, n) {
2923
2928
  newValue: r(...o)
2924
2929
  };
2925
2930
  }
2926
- function Rs(e, t, n) {
2927
- return new Vs(e, t, n);
2931
+ function Vs(e, t, n) {
2932
+ return new Ps(e, t, n);
2928
2933
  }
2929
- class Vs {
2934
+ class Ps {
2930
2935
  constructor(t, n, r) {
2931
2936
  F(this, "taskQueue", []);
2932
2937
  F(this, "id2TaskMap", /* @__PURE__ */ new Map());
@@ -2934,7 +2939,7 @@ class Vs {
2934
2939
  this.snapshots = r;
2935
2940
  const o = [], i = (s) => {
2936
2941
  var l;
2937
- const c = new Ps(s, r);
2942
+ const c = new ks(s, r);
2938
2943
  return this.id2TaskMap.set(c.id, c), (l = s.inputs) == null || l.forEach((d, u) => {
2939
2944
  var f, h;
2940
2945
  if (((f = s.data) == null ? void 0 : f[u]) === 0 && ((h = s.slient) == null ? void 0 : h[u]) === 0) {
@@ -2948,7 +2953,7 @@ class Vs {
2948
2953
  o.push(c);
2949
2954
  }), n == null || n.forEach((s) => {
2950
2955
  const c = i(
2951
- bs(s)
2956
+ Os(s)
2952
2957
  );
2953
2958
  o.push(c);
2954
2959
  }), o.forEach((s) => {
@@ -2963,10 +2968,10 @@ class Vs {
2963
2968
  once: l,
2964
2969
  flush: d
2965
2970
  }, f = this._getWatchTargets(s);
2966
- H(
2971
+ K(
2967
2972
  f,
2968
2973
  (h) => {
2969
- h.some(be) || (s.modify = !0, this.taskQueue.push(new ks(s)), this._scheduleNextTick());
2974
+ h.some(be) || (s.modify = !0, this.taskQueue.push(new Ns(s)), this._scheduleNextTick());
2970
2975
  },
2971
2976
  a
2972
2977
  );
@@ -3016,7 +3021,7 @@ class Vs {
3016
3021
  }), n;
3017
3022
  }
3018
3023
  }
3019
- class Ps {
3024
+ class ks {
3020
3025
  constructor(t, n) {
3021
3026
  F(this, "modify", !0);
3022
3027
  F(this, "_running", !1);
@@ -3072,7 +3077,7 @@ class Ps {
3072
3077
  }
3073
3078
  }
3074
3079
  }
3075
- class ks {
3080
+ class Ns {
3076
3081
  /**
3077
3082
  *
3078
3083
  */
@@ -3117,14 +3122,14 @@ class ks {
3117
3122
  if (this.watchTask.modify) {
3118
3123
  this.watchTask.modify = !1, this.watchTask.setRunning();
3119
3124
  try {
3120
- await Ns(this.watchTask);
3125
+ await Is(this.watchTask);
3121
3126
  } finally {
3122
3127
  this.watchTask.taskDone();
3123
3128
  }
3124
3129
  }
3125
3130
  }
3126
3131
  }
3127
- async function Ns(e) {
3132
+ async function Is(e) {
3128
3133
  const { snapshot: t } = e, { outputs: n, preSetup: r } = e.watchConfig, o = jn({
3129
3134
  config: r,
3130
3135
  snapshot: t
@@ -3139,7 +3144,7 @@ async function Ns(e) {
3139
3144
  o.tryReset();
3140
3145
  }
3141
3146
  }
3142
- function Is(e, t) {
3147
+ function Ts(e, t) {
3143
3148
  const {
3144
3149
  on: n,
3145
3150
  code: r,
@@ -3150,18 +3155,18 @@ function Is(e, t) {
3150
3155
  bind: l = {},
3151
3156
  onData: d,
3152
3157
  bindData: u
3153
- } = e, a = d || new Array(n.length).fill(0), f = u || new Array(Object.keys(l).length).fill(0), h = Me(
3158
+ } = e, a = d || new Array(n.length).fill(0), f = u || new Array(Object.keys(l).length).fill(0), h = Be(
3154
3159
  l,
3155
3160
  (g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
3156
3161
  ), v = B(r, h), p = n.length === 1 ? Gt(a[0] === 1, n[0], t) : n.map(
3157
3162
  (g, y) => Gt(a[y] === 1, g, t)
3158
3163
  );
3159
- return H(p, v, { immediate: o, deep: i, once: s, flush: c });
3164
+ return K(p, v, { immediate: o, deep: i, once: s, flush: c });
3160
3165
  }
3161
3166
  function Gt(e, t, n) {
3162
3167
  return e ? () => t : n.getVueRefObject(t);
3163
3168
  }
3164
- function Ts(e, t) {
3169
+ function As(e, t) {
3165
3170
  const {
3166
3171
  inputs: n = [],
3167
3172
  outputs: r,
@@ -3176,7 +3181,7 @@ function Ts(e, t) {
3176
3181
  function p() {
3177
3182
  return n.map((g, y) => f[y] === 0 ? nn(q(t.getVueRefObject(g))) : g);
3178
3183
  }
3179
- H(
3184
+ K(
3180
3185
  v,
3181
3186
  () => {
3182
3187
  let g = h(...p());
@@ -3191,19 +3196,19 @@ function Ts(e, t) {
3191
3196
  { immediate: c, deep: l, once: d, flush: u }
3192
3197
  );
3193
3198
  }
3194
- function As(e, t) {
3199
+ function Cs(e, t) {
3195
3200
  return Object.assign(
3196
3201
  {},
3197
3202
  ...Object.entries(e ?? {}).map(([n, r]) => {
3198
3203
  const o = r.map((c) => {
3199
3204
  if (c.type === "web") {
3200
- const l = Cs(c.bind, t);
3201
- return $s(c, l, t);
3205
+ const l = $s(c.bind, t);
3206
+ return xs(c, l, t);
3202
3207
  } else {
3203
3208
  if (c.type === "vue")
3204
- return js(c, t);
3209
+ return Ds(c, t);
3205
3210
  if (c.type === "js")
3206
- return xs(c, t);
3211
+ return js(c, t);
3207
3212
  }
3208
3213
  throw new Error(`unknown event type ${c}`);
3209
3214
  }), s = B(
@@ -3218,7 +3223,7 @@ function As(e, t) {
3218
3223
  })
3219
3224
  );
3220
3225
  }
3221
- function Cs(e, t) {
3226
+ function $s(e, t) {
3222
3227
  return (...n) => (e ?? []).map((r) => {
3223
3228
  if (N.isEventContext(r)) {
3224
3229
  if (r.path.startsWith(":")) {
@@ -3230,7 +3235,7 @@ function Cs(e, t) {
3230
3235
  return N.IsBinding(r) ? t.getObjectToValue(r) : r;
3231
3236
  });
3232
3237
  }
3233
- function $s(e, t, n) {
3238
+ function xs(e, t, n) {
3234
3239
  async function r(...o) {
3235
3240
  const i = t(...o), s = jn({
3236
3241
  config: e.preSetup,
@@ -3248,7 +3253,7 @@ function $s(e, t, n) {
3248
3253
  }
3249
3254
  return r;
3250
3255
  }
3251
- function xs(e, t) {
3256
+ function js(e, t) {
3252
3257
  const { code: n, inputs: r = [], set: o } = e, i = B(n);
3253
3258
  function s(...c) {
3254
3259
  const l = (r ?? []).map((u) => {
@@ -3268,8 +3273,8 @@ function xs(e, t) {
3268
3273
  }
3269
3274
  return s;
3270
3275
  }
3271
- function js(e, t) {
3272
- const { code: n, bind: r = {}, bindData: o } = e, i = o || new Array(Object.keys(r).length).fill(0), s = Me(
3276
+ function Ds(e, t) {
3277
+ const { code: n, bind: r = {}, bindData: o } = e, i = o || new Array(Object.keys(r).length).fill(0), s = Be(
3273
3278
  r,
3274
3279
  (d, u, a) => i[a] === 0 ? t.getVueRefObject(d) : d
3275
3280
  ), c = B(n, s);
@@ -3278,13 +3283,13 @@ function js(e, t) {
3278
3283
  }
3279
3284
  return l;
3280
3285
  }
3281
- function Ds(e, t) {
3286
+ function Ms(e, t) {
3282
3287
  const n = [];
3283
3288
  (e.bStyle || []).forEach((i) => {
3284
3289
  Array.isArray(i) ? n.push(
3285
3290
  ...i.map((s) => t.getObjectToValue(s))
3286
3291
  ) : n.push(
3287
- Me(
3292
+ Be(
3288
3293
  i,
3289
3294
  (s) => t.getObjectToValue(s)
3290
3295
  )
@@ -3296,24 +3301,24 @@ function Ds(e, t) {
3296
3301
  styles: r
3297
3302
  };
3298
3303
  }
3299
- function Ms(e, t) {
3304
+ function Fs(e, t) {
3300
3305
  const n = e.classes;
3301
3306
  if (!n)
3302
3307
  return null;
3303
3308
  if (typeof n == "string")
3304
- return Ye(n);
3309
+ return Ce(n);
3305
3310
  const { str: r, map: o, bind: i } = n, s = [];
3306
3311
  return r && s.push(r), o && s.push(
3307
- Me(
3312
+ Be(
3308
3313
  o,
3309
3314
  (c) => t.getObjectToValue(c)
3310
3315
  )
3311
- ), i && s.push(...i.map((c) => t.getObjectToValue(c))), Ye(s);
3316
+ ), i && s.push(...i.map((c) => t.getObjectToValue(c))), Ce(s);
3312
3317
  }
3313
- function xe(e, t = !0) {
3318
+ function je(e, t = !0) {
3314
3319
  if (!(typeof e != "object" || e === null)) {
3315
3320
  if (Array.isArray(e)) {
3316
- t && e.forEach((n) => xe(n, !0));
3321
+ t && e.forEach((n) => je(n, !0));
3317
3322
  return;
3318
3323
  }
3319
3324
  for (const [n, r] of Object.entries(e))
@@ -3327,58 +3332,58 @@ function xe(e, t = !0) {
3327
3332
  );
3328
3333
  }
3329
3334
  else
3330
- t && xe(r, !0);
3335
+ t && je(r, !0);
3331
3336
  }
3332
3337
  }
3333
- function Fs(e, t) {
3338
+ function Bs(e, t) {
3334
3339
  const n = e.startsWith(":");
3335
3340
  return n && (e = e.slice(1), t = B(t)), { name: e, value: t, isFunc: n };
3336
3341
  }
3337
- function Bs(e, t, n) {
3342
+ function Ls(e, t, n) {
3338
3343
  var o;
3339
3344
  const r = {};
3340
3345
  return bt(e.bProps || {}, (i, s) => {
3341
3346
  const c = n.getObjectToValue(i);
3342
- be(c) || (xe(c), r[s] = Ls(c, s));
3347
+ be(c) || (je(c), r[s] = Ws(c, s));
3343
3348
  }), (o = e.proxyProps) == null || o.forEach((i) => {
3344
3349
  const s = n.getObjectToValue(i);
3345
3350
  typeof s == "object" && bt(s, (c, l) => {
3346
- const { name: d, value: u } = Fs(l, c);
3351
+ const { name: d, value: u } = Bs(l, c);
3347
3352
  r[d] = u;
3348
3353
  });
3349
3354
  }), { ...t || {}, ...r };
3350
3355
  }
3351
- function Ls(e, t) {
3352
- return t === "innerText" ? ft(e) : e;
3356
+ function Ws(e, t) {
3357
+ return t === "innerText" ? Me(e) : e;
3353
3358
  }
3354
- function Ws(e, { slots: t }) {
3355
- const { id: n, use: r } = e.propsInfo, o = Pr(n);
3359
+ function Us(e, { slots: t }) {
3360
+ const { id: n, use: r } = e.propsInfo, o = kr(n);
3356
3361
  return dt(() => {
3357
- Nr(n);
3362
+ Ir(n);
3358
3363
  }), () => {
3359
3364
  const i = e.propsValue;
3360
- return kr(
3365
+ return Nr(
3361
3366
  n,
3362
3367
  o,
3363
3368
  Object.fromEntries(
3364
3369
  r.map((s) => [s, i[s]])
3365
3370
  )
3366
- ), A(De, null, t.default());
3371
+ ), A(Fe, null, t.default());
3367
3372
  };
3368
3373
  }
3369
- const Us = W(Ws, {
3374
+ const Gs = L(Us, {
3370
3375
  props: ["propsInfo", "propsValue"]
3371
3376
  }), Dn = /* @__PURE__ */ new Map();
3372
- function Gs(e) {
3377
+ function qs(e) {
3373
3378
  var t;
3374
3379
  (t = e.scopes) == null || t.forEach((n) => {
3375
3380
  Dn.set(n.id, n);
3376
3381
  });
3377
3382
  }
3378
- function pe(e) {
3383
+ function me(e) {
3379
3384
  return Dn.get(e);
3380
3385
  }
3381
- function qs(e, t) {
3386
+ function Hs(e, t) {
3382
3387
  if (!e.slots)
3383
3388
  return null;
3384
3389
  const n = e.slots ?? {};
@@ -3389,7 +3394,7 @@ function qs(e, t) {
3389
3394
  const d = () => s.props ? qt(s.props, l, c) : Ee(c);
3390
3395
  return A(
3391
3396
  Pe,
3392
- { scope: pe(s.scopeId) },
3397
+ { scope: me(s.scopeId) },
3393
3398
  d
3394
3399
  );
3395
3400
  }
@@ -3399,13 +3404,13 @@ function qs(e, t) {
3399
3404
  }
3400
3405
  function qt(e, t, n) {
3401
3406
  return A(
3402
- Us,
3407
+ Gs,
3403
3408
  { propsInfo: e, propsValue: t },
3404
3409
  () => Ee(n)
3405
3410
  );
3406
3411
  }
3407
3412
  function Ee(e) {
3408
- const t = (e ?? []).map((n) => A(se, {
3413
+ const t = (e ?? []).map((n) => A(ie, {
3409
3414
  component: n
3410
3415
  }));
3411
3416
  return t.length <= 0 ? null : t;
@@ -3433,17 +3438,17 @@ function Ks(e, t) {
3433
3438
  directiveArray: r
3434
3439
  };
3435
3440
  }
3436
- function Hs(e, t) {
3441
+ function zs(e, t) {
3437
3442
  const { eRef: n } = e;
3438
3443
  return n === void 0 ? {} : { ref: t.getRef(n) };
3439
3444
  }
3440
- function zs(e) {
3441
- const t = oe(), n = an(), r = e.component.props ?? {};
3442
- return xe(r, !0), () => {
3443
- const { tag: o } = e.component, i = N.IsBinding(o) ? t.getObjectToValue(o) : o, s = Yn(i), c = typeof s == "string", l = Ms(e.component, t), { styles: d, hasStyle: u } = Ds(e.component, t), a = As(e.component.events ?? {}, t), f = qs(e.component, c), h = Bs(e.component, r, t), { newProps: v, directiveArray: p } = Ks(
3445
+ function Qs(e) {
3446
+ const t = se(), n = an(), r = e.component.props ?? {};
3447
+ return je(r, !0), () => {
3448
+ const { tag: o } = e.component, i = N.IsBinding(o) ? t.getObjectToValue(o) : o, s = Yn(i), c = typeof s == "string", l = Fs(e.component, t), { styles: d, hasStyle: u } = Ms(e.component, t), a = Cs(e.component.events ?? {}, t), f = Hs(e.component, c), h = Ls(e.component, r, t), { newProps: v, directiveArray: p } = Ks(
3444
3449
  e.component.dir,
3445
3450
  t
3446
- ), g = Hs(
3451
+ ), g = zs(
3447
3452
  e.component,
3448
3453
  n
3449
3454
  ), y = Xn({
@@ -3461,31 +3466,31 @@ function zs(e) {
3461
3466
  ) : _;
3462
3467
  };
3463
3468
  }
3464
- const se = W(zs, {
3469
+ const ie = L(Qs, {
3465
3470
  props: ["component"]
3466
3471
  });
3467
3472
  function Mn(e, t) {
3468
3473
  var n, r;
3469
3474
  if (e) {
3470
- const o = Rr(e), i = _r(e, oe(t)), s = oe(t);
3471
- Rs(e.py_watch, e.web_computed, s), (n = e.vue_watch) == null || n.forEach((c) => Is(c, s)), (r = e.js_watch) == null || r.forEach((c) => Ts(c, s)), dt(() => {
3472
- Or(e.id, i), Vr(e.id, o);
3475
+ const o = Vr(e), i = Sr(e, se(t)), s = se(t);
3476
+ Vs(e.py_watch, e.web_computed, s), (n = e.vue_watch) == null || n.forEach((c) => Ts(c, s)), (r = e.js_watch) == null || r.forEach((c) => As(c, s)), dt(() => {
3477
+ Rr(e.id, i), Pr(e.id, o);
3473
3478
  });
3474
3479
  }
3475
3480
  }
3476
- function Qs(e, { slots: t }) {
3481
+ function Js(e, { slots: t }) {
3477
3482
  const { scope: n } = e;
3478
- return Mn(n), () => A(De, null, t.default());
3483
+ return Mn(n), () => A(Fe, null, t.default());
3479
3484
  }
3480
- const Pe = W(Qs, {
3485
+ const Pe = L(Js, {
3481
3486
  props: ["scope"]
3482
- }), Js = W(
3487
+ }), Ys = L(
3483
3488
  (e) => {
3484
3489
  const { scope: t, items: n, vforInfo: r } = e;
3485
- return Tr(r), Mn(t, r.key), n.length === 1 ? () => A(se, {
3490
+ return Ar(r), Mn(t, r.key), n.length === 1 ? () => A(ie, {
3486
3491
  component: n[0]
3487
3492
  }) : () => n.map(
3488
- (i) => A(se, {
3493
+ (i) => A(ie, {
3489
3494
  component: i
3490
3495
  })
3491
3496
  );
@@ -3494,8 +3499,8 @@ const Pe = W(Qs, {
3494
3499
  props: ["scope", "items", "vforInfo"]
3495
3500
  }
3496
3501
  );
3497
- function Ys(e, t) {
3498
- const { state: n, isReady: r, isLoading: o } = mr(async () => {
3502
+ function Xs(e, t) {
3503
+ const { state: n, isReady: r, isLoading: o } = gr(async () => {
3499
3504
  let i = e;
3500
3505
  const s = t;
3501
3506
  if (!i && !s)
@@ -3506,21 +3511,24 @@ function Ys(e, t) {
3506
3511
  }, {});
3507
3512
  return { config: n, isReady: r, isLoading: o };
3508
3513
  }
3509
- function Xs(e) {
3510
- const t = K(!1), n = K("");
3514
+ function Zs(e) {
3515
+ const t = H(!1), n = H("");
3511
3516
  function r(o, i) {
3512
3517
  let s;
3513
3518
  return i.component ? s = `Error captured from component:tag: ${i.component.tag} ; id: ${i.component.id} ` : s = "Error captured from app init", console.group(s), console.error("Component:", i.component), console.error("Error:", o), console.groupEnd(), e && (t.value = !0, n.value = `${s} ${o.message}`), !1;
3514
3519
  }
3515
3520
  return er(r), { hasError: t, errorMessage: n };
3516
3521
  }
3517
- const Zs = { class: "app-box" }, ei = {
3522
+ const ei = {
3523
+ class: "app-box insta-themes",
3524
+ "data-scaling": "100%"
3525
+ }, ti = {
3518
3526
  key: 0,
3519
3527
  style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
3520
- }, ti = {
3528
+ }, ni = {
3521
3529
  key: 0,
3522
3530
  style: { color: "red", "font-size": "1.2em", margin: "1rem", border: "1px dashed red", padding: "1rem" }
3523
- }, ni = /* @__PURE__ */ W({
3531
+ }, ri = /* @__PURE__ */ L({
3524
3532
  __name: "App",
3525
3533
  props: {
3526
3534
  config: {},
@@ -3528,54 +3536,54 @@ const Zs = { class: "app-box" }, ei = {
3528
3536
  configUrl: {}
3529
3537
  },
3530
3538
  setup(e) {
3531
- const t = e, { debug: n = !1 } = t.meta, { config: r, isLoading: o } = Ys(
3539
+ const t = e, { debug: n = !1 } = t.meta, { config: r, isLoading: o } = Xs(
3532
3540
  t.config,
3533
3541
  t.configUrl
3534
3542
  );
3535
3543
  let i = null;
3536
- H(r, (l) => {
3544
+ K(r, (l) => {
3537
3545
  i = l, l.url && (cr({
3538
3546
  mode: t.meta.mode,
3539
3547
  version: t.meta.version,
3540
3548
  queryPath: l.url.path,
3541
3549
  pathParams: l.url.params,
3542
3550
  webServerInfo: l.webInfo
3543
- }), Ss(t.meta.mode)), Gs(l), ys(l);
3551
+ }), bs(t.meta.mode)), qs(l), ws(l);
3544
3552
  });
3545
- const { hasError: s, errorMessage: c } = Xs(n);
3546
- return (l, d) => (ue(), ge("div", Zs, [
3547
- D(o) ? (ue(), ge("div", ei, d[0] || (d[0] = [
3553
+ const { hasError: s, errorMessage: c } = Zs(n);
3554
+ return (l, d) => (re(), fe("div", ei, [
3555
+ D(o) ? (re(), fe("div", ti, d[0] || (d[0] = [
3548
3556
  tr("p", { style: { margin: "auto" } }, "Loading ...", -1)
3549
- ]))) : (ue(), ge("div", {
3557
+ ]))) : (re(), fe("div", {
3550
3558
  key: 1,
3551
- class: Ye(["insta-main", D(r).class])
3559
+ class: Ce(["insta-main", D(r).class])
3552
3560
  }, [
3553
3561
  nr(D(Pe), {
3554
- scope: D(pe)(D(i).scopeId)
3562
+ scope: D(me)(D(i).scopeId)
3555
3563
  }, {
3556
3564
  default: rr(() => [
3557
- (ue(!0), ge(De, null, or(D(i).items, (u) => (ue(), sr(D(se), { component: u }, null, 8, ["component"]))), 256))
3565
+ (re(!0), fe(Fe, null, or(D(i).items, (u) => (re(), sr(D(ie), { component: u }, null, 8, ["component"]))), 256))
3558
3566
  ]),
3559
3567
  _: 1
3560
3568
  }, 8, ["scope"]),
3561
- D(s) ? (ue(), ge("div", ti, ft(D(c)), 1)) : ir("", !0)
3569
+ D(s) ? (re(), fe("div", ni, Me(D(c)), 1)) : ir("", !0)
3562
3570
  ], 2))
3563
3571
  ]));
3564
3572
  }
3565
3573
  });
3566
- function ri(e) {
3567
- const { on: t, scopeId: n, items: r } = e, o = pe(n), i = oe();
3574
+ function oi(e) {
3575
+ const { on: t, scopeId: n, items: r } = e, o = me(n), i = se();
3568
3576
  return () => {
3569
3577
  const s = typeof t == "boolean" ? t : i.getObjectToValue(t);
3570
3578
  return A(Pe, { scope: o }, () => s ? r.map(
3571
- (l) => A(se, { component: l })
3579
+ (l) => A(ie, { component: l })
3572
3580
  ) : void 0);
3573
3581
  };
3574
3582
  }
3575
- const oi = W(ri, {
3583
+ const si = L(oi, {
3576
3584
  props: ["on", "scopeId", "items"]
3577
3585
  });
3578
- function si(e) {
3586
+ function ii(e) {
3579
3587
  const { start: t = 0, end: n, step: r = 1 } = e;
3580
3588
  let o = [];
3581
3589
  if (r > 0)
@@ -3586,24 +3594,24 @@ function si(e) {
3586
3594
  o.push(i);
3587
3595
  return o;
3588
3596
  }
3589
- function ii(e) {
3590
- const { array: t, bArray: n, items: r, fkey: o, fid: i, scopeId: s, num: c, tsGroup: l = {} } = e, d = t === void 0, u = c !== void 0, a = d ? n : t, f = oe();
3591
- Cr(i, a, d, u);
3592
- const v = fi(o ?? "index");
3597
+ function ai(e) {
3598
+ const { array: t, bArray: n, items: r, fkey: o, fid: i, scopeId: s, num: c, tsGroup: l = {} } = e, d = t === void 0, u = c !== void 0, a = d ? n : t, f = se();
3599
+ $r(i, a, d, u);
3600
+ const v = di(o ?? "index");
3593
3601
  dt(() => {
3594
- br(s);
3602
+ Or(s);
3595
3603
  });
3596
- const p = pe(s);
3604
+ const p = me(s);
3597
3605
  return () => {
3598
- const g = ci(
3606
+ const g = ui(
3599
3607
  u,
3600
3608
  d,
3601
3609
  a,
3602
3610
  f,
3603
3611
  c
3604
- ), y = xr(i), _ = g.map((b, R) => {
3612
+ ), y = jr(i), _ = g.map((b, R) => {
3605
3613
  const $ = v(b, R);
3606
- return y.add($), $r(i, $, R), A(Js, {
3614
+ return y.add($), xr(i, $, R), A(Ys, {
3607
3615
  scope: p,
3608
3616
  items: r,
3609
3617
  vforInfo: {
@@ -3618,7 +3626,7 @@ function ii(e) {
3618
3626
  }) : _;
3619
3627
  };
3620
3628
  }
3621
- const ai = W(ii, {
3629
+ const ci = L(ai, {
3622
3630
  props: [
3623
3631
  "array",
3624
3632
  "items",
@@ -3630,38 +3638,38 @@ const ai = W(ii, {
3630
3638
  "tsGroup"
3631
3639
  ]
3632
3640
  });
3633
- function ci(e, t, n, r, o) {
3641
+ function ui(e, t, n, r, o) {
3634
3642
  if (e) {
3635
3643
  let s = 0;
3636
- return typeof o == "number" ? s = o : s = r.getObjectToValue(o) ?? 0, si({
3644
+ return typeof o == "number" ? s = o : s = r.getObjectToValue(o) ?? 0, ii({
3637
3645
  end: Math.max(0, s)
3638
3646
  });
3639
3647
  }
3640
3648
  const i = t ? r.getObjectToValue(n) || [] : n;
3641
3649
  return typeof i == "object" ? Object.values(i) : i;
3642
3650
  }
3643
- const ui = (e) => e, li = (e, t) => t;
3644
- function fi(e) {
3645
- const t = gr(e);
3646
- return typeof t == "function" ? t : e === "item" ? ui : li;
3647
- }
3651
+ const li = (e) => e, fi = (e, t) => t;
3648
3652
  function di(e) {
3649
- const { scopeId: t, items: n } = e, r = pe(t);
3653
+ const t = vr(e);
3654
+ return typeof t == "function" ? t : e === "item" ? li : fi;
3655
+ }
3656
+ function hi(e) {
3657
+ const { scopeId: t, items: n } = e, r = me(t);
3650
3658
  return () => {
3651
- const o = n.map((i) => A(se, { component: i }));
3659
+ const o = n.map((i) => A(ie, { component: i }));
3652
3660
  return A(Pe, { scope: r }, () => o);
3653
3661
  };
3654
3662
  }
3655
- const Kt = W(di, {
3663
+ const Ht = L(hi, {
3656
3664
  props: ["scopeId", "items"]
3657
3665
  });
3658
- function hi(e) {
3659
- const { on: t, case: n, default: r } = e, o = oe();
3666
+ function pi(e) {
3667
+ const { on: t, case: n, default: r } = e, o = se();
3660
3668
  return () => {
3661
3669
  const i = o.getObjectToValue(t), s = n.map((c) => {
3662
3670
  const { value: l, items: d, scopeId: u } = c.props;
3663
3671
  if (i === l)
3664
- return A(Kt, {
3672
+ return A(Ht, {
3665
3673
  scopeId: u,
3666
3674
  items: d,
3667
3675
  key: ["case", l].join("-")
@@ -3669,15 +3677,15 @@ function hi(e) {
3669
3677
  }).filter((c) => c);
3670
3678
  if (r && !s.length) {
3671
3679
  const { items: c, scopeId: l } = r.props;
3672
- s.push(A(Kt, { scopeId: l, items: c, key: "default" }));
3680
+ s.push(A(Ht, { scopeId: l, items: c, key: "default" }));
3673
3681
  }
3674
- return A(De, s);
3682
+ return A(Fe, s);
3675
3683
  };
3676
3684
  }
3677
- const pi = W(hi, {
3685
+ const mi = L(pi, {
3678
3686
  props: ["case", "on", "default"]
3679
3687
  });
3680
- function mi(e, { slots: t }) {
3688
+ function gi(e, { slots: t }) {
3681
3689
  const { name: n = "fade", tag: r } = e;
3682
3690
  return () => A(
3683
3691
  Yt,
@@ -3687,17 +3695,45 @@ function mi(e, { slots: t }) {
3687
3695
  }
3688
3696
  );
3689
3697
  }
3690
- const gi = W(mi, {
3698
+ const vi = L(gi, {
3691
3699
  props: ["name", "tag"]
3692
3700
  });
3693
- function vi(e) {
3694
- const { content: t, r: n = 0 } = e, r = oe(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
3695
- return () => ft(o());
3701
+ function yi(e) {
3702
+ const { content: t, r: n = 0 } = e, r = se(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
3703
+ return () => Me(o());
3696
3704
  }
3697
- const yi = W(vi, {
3705
+ const wi = L(yi, {
3698
3706
  props: ["content", "r"]
3699
3707
  });
3700
- function wi(e) {
3708
+ function Ei(e) {
3709
+ return `i-size-${e}`;
3710
+ }
3711
+ function _i(e) {
3712
+ return e ? `i-weight-${e}` : "";
3713
+ }
3714
+ function Si(e) {
3715
+ return e ? `i-text-align-${e}` : "";
3716
+ }
3717
+ const bi = /* @__PURE__ */ L({
3718
+ __name: "Heading",
3719
+ props: {
3720
+ text: {},
3721
+ size: {},
3722
+ weight: {},
3723
+ align: {}
3724
+ },
3725
+ setup(e) {
3726
+ const t = e, n = W(() => [
3727
+ Ei(t.size ?? "6"),
3728
+ _i(t.weight),
3729
+ Si(t.align)
3730
+ ]);
3731
+ return (r, o) => (re(), fe("h1", {
3732
+ class: Ce(["insta-Heading", n.value])
3733
+ }, Me(r.text), 3));
3734
+ }
3735
+ });
3736
+ function Oi(e) {
3701
3737
  if (!e.router)
3702
3738
  throw new Error("Router config is not provided.");
3703
3739
  const { routes: t, kAlive: n = !1 } = e.router;
@@ -3711,7 +3747,7 @@ function Fn(e, t) {
3711
3747
  if (n)
3712
3748
  throw new Error("Server-side rendering is not supported yet.");
3713
3749
  return Promise.resolve(
3714
- Ei(r, pe(o), t)
3750
+ Ri(r, me(o), t)
3715
3751
  );
3716
3752
  }, s = (l = r.children) == null ? void 0 : l.map(
3717
3753
  (d) => Fn(d, t)
@@ -3722,28 +3758,28 @@ function Fn(e, t) {
3722
3758
  };
3723
3759
  return r.component.length === 0 && delete c.component, s === void 0 && delete c.children, c;
3724
3760
  }
3725
- function Ei(e, t, n) {
3761
+ function Ri(e, t, n) {
3726
3762
  const { path: r, component: o } = e, i = A(
3727
3763
  Pe,
3728
3764
  { scope: t, key: r },
3729
- () => o.map((c) => A(se, { component: c }))
3765
+ () => o.map((c) => A(ie, { component: c }))
3730
3766
  );
3731
3767
  return n ? A(ar, null, () => i) : i;
3732
3768
  }
3733
- function _i(e, t) {
3734
- const { mode: n = "hash" } = t.router, r = n === "hash" ? Oo() : n === "memory" ? bo() : bn();
3769
+ function Vi(e, t) {
3770
+ const { mode: n = "hash" } = t.router, r = n === "hash" ? Ro() : n === "memory" ? Oo() : bn();
3735
3771
  e.use(
3736
- ps({
3772
+ ms({
3737
3773
  history: r,
3738
- routes: wi(t)
3774
+ routes: Oi(t)
3739
3775
  })
3740
3776
  );
3741
3777
  }
3742
- function Oi(e, t) {
3743
- e.component("insta-ui", ni), e.component("vif", oi), e.component("vfor", ai), e.component("match", pi), e.component("ts-group", gi), e.component("content", yi), t.router && _i(e, t);
3778
+ function Ni(e, t) {
3779
+ e.component("insta-ui", ri), e.component("vif", si), e.component("vfor", ci), e.component("match", mi), e.component("ts-group", vi), e.component("content", wi), e.component("heading", bi), t.router && Vi(e, t);
3744
3780
  }
3745
3781
  export {
3746
- xe as convertDynamicProperties,
3747
- Oi as install
3782
+ je as convertDynamicProperties,
3783
+ Ni as install
3748
3784
  };
3749
3785
  //# sourceMappingURL=insta-ui.js.map