instaui 0.1.17__py2.py3-none-any.whl → 0.1.18__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.
@@ -1,10 +1,10 @@
1
- var Wn = Object.defineProperty;
2
- var Un = (e, t, n) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var B = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
4
- import * as Kn from "vue";
5
- import { toRaw as Gn, customRef as Ce, toValue as q, unref as W, watch as G, nextTick as Te, isRef as Ht, ref as Z, shallowRef as J, watchEffect as zt, computed as U, readonly as qn, provide as Ie, inject as ee, shallowReactive as Hn, defineComponent as F, reactive as zn, h as A, getCurrentInstance as Jt, normalizeStyle as Jn, normalizeClass as Ye, toDisplayString as Qt, onUnmounted as xe, Fragment as De, vModelDynamic as Qn, vShow as Yn, resolveDynamicComponent as ft, normalizeProps as Xn, withDirectives as Zn, onErrorCaptured as er, openBlock as he, createElementBlock as Ve, createElementVNode as tr, createVNode as nr, withCtx as rr, renderList as or, createBlock as sr, TransitionGroup as Yt, KeepAlive as ir } from "vue";
1
+ var Un = Object.defineProperty;
2
+ var Kn = (e, t, n) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var B = (e, t, n) => Kn(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as Gn from "vue";
5
+ import { toRaw as qn, customRef as je, toValue as q, unref as L, watch as G, nextTick as Ie, isRef as Ht, ref as Z, shallowRef as J, watchEffect as zt, computed as K, readonly as Hn, provide as Ne, inject as ee, shallowReactive as zn, defineComponent as F, reactive as Jn, h as A, getCurrentInstance as Jt, normalizeStyle as Qn, normalizeClass as Ye, toDisplayString as Qt, onUnmounted as Ce, Fragment as xe, vModelDynamic as Yn, vShow as Xn, resolveDynamicComponent as ft, normalizeProps as Zn, withDirectives as er, onErrorCaptured as tr, openBlock as he, createElementBlock as ke, createElementVNode as nr, createVNode as rr, withCtx as or, renderList as sr, createBlock as ir, TransitionGroup as Yt, KeepAlive as ar } from "vue";
6
6
  let Xt;
7
- function ar(e) {
7
+ function cr(e) {
8
8
  Xt = e;
9
9
  }
10
10
  function Xe() {
@@ -18,7 +18,7 @@ function ye() {
18
18
  ...n === void 0 ? {} : { queryParams: n }
19
19
  };
20
20
  }
21
- class cr extends Map {
21
+ class ur extends Map {
22
22
  constructor(t) {
23
23
  super(), this.factory = t;
24
24
  }
@@ -31,12 +31,12 @@ class cr extends Map {
31
31
  }
32
32
  }
33
33
  function _e(e) {
34
- return new cr(e);
34
+ return new ur(e);
35
35
  }
36
- function bt(e, t) {
36
+ function St(e, t) {
37
37
  Object.entries(e).forEach(([n, r]) => t(r, n));
38
38
  }
39
- function Oe(e, t) {
39
+ function De(e, t) {
40
40
  return Zt(e, {
41
41
  valueFn: t
42
42
  });
@@ -97,18 +97,18 @@ function Ze(e, t, n, r) {
97
97
  function nn(e) {
98
98
  return JSON.parse(JSON.stringify(e));
99
99
  }
100
- class ur {
100
+ class lr {
101
101
  toString() {
102
102
  return "";
103
103
  }
104
104
  }
105
- const we = new ur();
105
+ const we = new lr();
106
106
  function Ee(e) {
107
- return Gn(e) === we;
107
+ return qn(e) === we;
108
108
  }
109
- function St(e, t, n) {
109
+ function Ot(e, t, n) {
110
110
  const { paths: r, getBindableValueFn: o } = t, { paths: s, getBindableValueFn: i } = t;
111
- return r === void 0 || r.length === 0 ? e : Ce(() => ({
111
+ return r === void 0 || r.length === 0 ? e : je(() => ({
112
112
  get() {
113
113
  try {
114
114
  return be(
@@ -120,18 +120,18 @@ function St(e, t, n) {
120
120
  return;
121
121
  }
122
122
  },
123
- set(c) {
123
+ set(u) {
124
124
  Ze(
125
125
  q(e),
126
126
  s || r,
127
- c,
127
+ u,
128
128
  i
129
129
  );
130
130
  }
131
131
  }));
132
132
  }
133
133
  function ht(e) {
134
- return Ce((t, n) => ({
134
+ return je((t, n) => ({
135
135
  get() {
136
136
  return t(), e;
137
137
  },
@@ -141,7 +141,7 @@ function ht(e) {
141
141
  }));
142
142
  }
143
143
  function de(e) {
144
- return typeof e == "function" ? e() : W(e);
144
+ return typeof e == "function" ? e() : L(e);
145
145
  }
146
146
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
147
147
  const et = () => {
@@ -152,13 +152,13 @@ function tt(e, t = !1, n = "Timeout") {
152
152
  });
153
153
  }
154
154
  function nt(e, t = !1) {
155
- function n(u, { flush: f = "sync", deep: d = !1, timeout: v, throwOnTimeout: p } = {}) {
155
+ function n(a, { flush: f = "sync", deep: d = !1, timeout: v, throwOnTimeout: p } = {}) {
156
156
  let g = null;
157
- const _ = [new Promise((O) => {
157
+ const _ = [new Promise((S) => {
158
158
  g = G(
159
159
  e,
160
160
  (R) => {
161
- u(R) !== t && (g ? g() : Te(() => g == null ? void 0 : g()), O(R));
161
+ a(R) !== t && (g ? g() : Ie(() => g == null ? void 0 : g()), S(R));
162
162
  },
163
163
  {
164
164
  flush: f,
@@ -171,16 +171,16 @@ function nt(e, t = !1) {
171
171
  tt(v, p).then(() => de(e)).finally(() => g == null ? void 0 : g())
172
172
  ), Promise.race(_);
173
173
  }
174
- function r(u, f) {
175
- if (!Ht(u))
176
- return n((R) => R === u, f);
174
+ function r(a, f) {
175
+ if (!Ht(a))
176
+ return n((R) => R === a, f);
177
177
  const { flush: d = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
178
178
  let y = null;
179
- const O = [new Promise((R) => {
179
+ const S = [new Promise((R) => {
180
180
  y = G(
181
- [e, u],
181
+ [e, a],
182
182
  ([D, C]) => {
183
- t !== (D === C) && (y ? y() : Te(() => y == null ? void 0 : y()), R(D));
183
+ t !== (D === C) && (y ? y() : Ie(() => y == null ? void 0 : y()), R(D));
184
184
  },
185
185
  {
186
186
  flush: d,
@@ -189,40 +189,40 @@ function nt(e, t = !1) {
189
189
  }
190
190
  );
191
191
  })];
192
- return p != null && O.push(
192
+ return p != null && S.push(
193
193
  tt(p, g).then(() => de(e)).finally(() => (y == null || y(), de(e)))
194
- ), Promise.race(O);
194
+ ), Promise.race(S);
195
195
  }
196
- function o(u) {
197
- return n((f) => !!f, u);
196
+ function o(a) {
197
+ return n((f) => !!f, a);
198
198
  }
199
- function s(u) {
200
- return r(null, u);
199
+ function s(a) {
200
+ return r(null, a);
201
201
  }
202
- function i(u) {
203
- return r(void 0, u);
202
+ function i(a) {
203
+ return r(void 0, a);
204
204
  }
205
- function c(u) {
206
- return n(Number.isNaN, u);
205
+ function u(a) {
206
+ return n(Number.isNaN, a);
207
207
  }
208
- function l(u, f) {
208
+ function l(a, f) {
209
209
  return n((d) => {
210
210
  const v = Array.from(d);
211
- return v.includes(u) || v.includes(de(u));
211
+ return v.includes(a) || v.includes(de(a));
212
212
  }, f);
213
213
  }
214
- function h(u) {
215
- return a(1, u);
214
+ function h(a) {
215
+ return c(1, a);
216
216
  }
217
- function a(u = 1, f) {
217
+ function c(a = 1, f) {
218
218
  let d = -1;
219
- return n(() => (d += 1, d >= u), f);
219
+ return n(() => (d += 1, d >= a), f);
220
220
  }
221
221
  return Array.isArray(de(e)) ? {
222
222
  toMatch: n,
223
223
  toContains: l,
224
224
  changed: h,
225
- changedTimes: a,
225
+ changedTimes: c,
226
226
  get not() {
227
227
  return nt(e, !t);
228
228
  }
@@ -231,19 +231,19 @@ function nt(e, t = !1) {
231
231
  toBe: r,
232
232
  toBeTruthy: o,
233
233
  toBeNull: s,
234
- toBeNaN: c,
234
+ toBeNaN: u,
235
235
  toBeUndefined: i,
236
236
  changed: h,
237
- changedTimes: a,
237
+ changedTimes: c,
238
238
  get not() {
239
239
  return nt(e, !t);
240
240
  }
241
241
  };
242
242
  }
243
- function lr(e) {
243
+ function fr(e) {
244
244
  return nt(e);
245
245
  }
246
- function fr(e, t, n) {
246
+ function hr(e, t, n) {
247
247
  let r;
248
248
  Ht(n) ? r = {
249
249
  evaluating: n
@@ -252,67 +252,67 @@ function fr(e, t, n) {
252
252
  lazy: o = !1,
253
253
  evaluating: s = void 0,
254
254
  shallow: i = !0,
255
- onError: c = et
255
+ onError: u = et
256
256
  } = r, l = Z(!o), h = i ? J(t) : Z(t);
257
- let a = 0;
258
- return zt(async (u) => {
257
+ let c = 0;
258
+ return zt(async (a) => {
259
259
  if (!l.value)
260
260
  return;
261
- a++;
262
- const f = a;
261
+ c++;
262
+ const f = c;
263
263
  let d = !1;
264
264
  s && Promise.resolve().then(() => {
265
265
  s.value = !0;
266
266
  });
267
267
  try {
268
268
  const v = await e((p) => {
269
- u(() => {
269
+ a(() => {
270
270
  s && (s.value = !1), d || p();
271
271
  });
272
272
  });
273
- f === a && (h.value = v);
273
+ f === c && (h.value = v);
274
274
  } catch (v) {
275
- c(v);
275
+ u(v);
276
276
  } finally {
277
- s && f === a && (s.value = !1), d = !0;
277
+ s && f === c && (s.value = !1), d = !0;
278
278
  }
279
- }), o ? U(() => (l.value = !0, h.value)) : h;
279
+ }), o ? K(() => (l.value = !0, h.value)) : h;
280
280
  }
281
- function hr(e, t, n) {
281
+ function dr(e, t, n) {
282
282
  const {
283
283
  immediate: r = !0,
284
284
  delay: o = 0,
285
285
  onError: s = et,
286
286
  onSuccess: i = et,
287
- resetOnExecute: c = !0,
287
+ resetOnExecute: u = !0,
288
288
  shallow: l = !0,
289
289
  throwError: h
290
- } = {}, a = l ? J(t) : Z(t), u = Z(!1), f = Z(!1), d = J(void 0);
290
+ } = {}, c = l ? J(t) : Z(t), a = Z(!1), f = Z(!1), d = J(void 0);
291
291
  async function v(y = 0, ..._) {
292
- c && (a.value = t), d.value = void 0, u.value = !1, f.value = !0, y > 0 && await tt(y);
293
- const O = typeof e == "function" ? e(..._) : e;
292
+ u && (c.value = t), d.value = void 0, a.value = !1, f.value = !0, y > 0 && await tt(y);
293
+ const S = typeof e == "function" ? e(..._) : e;
294
294
  try {
295
- const R = await O;
296
- a.value = R, u.value = !0, i(R);
295
+ const R = await S;
296
+ c.value = R, a.value = !0, i(R);
297
297
  } catch (R) {
298
298
  if (d.value = R, s(R), h)
299
299
  throw R;
300
300
  } finally {
301
301
  f.value = !1;
302
302
  }
303
- return a.value;
303
+ return c.value;
304
304
  }
305
305
  r && v(o);
306
306
  const p = {
307
- state: a,
308
- isReady: u,
307
+ state: c,
308
+ isReady: a,
309
309
  isLoading: f,
310
310
  error: d,
311
311
  execute: v
312
312
  };
313
313
  function g() {
314
314
  return new Promise((y, _) => {
315
- lr(f).toBe(!1).then(() => y(p)).catch(_);
315
+ fr(f).toBe(!1).then(() => y(p)).catch(_);
316
316
  });
317
317
  }
318
318
  return {
@@ -322,20 +322,20 @@ function hr(e, t, n) {
322
322
  }
323
323
  };
324
324
  }
325
- function L(e, t) {
325
+ function W(e, t) {
326
326
  t = t || {};
327
- const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Kn];
327
+ const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Gn];
328
328
  try {
329
329
  return new Function(...n, `return (${e})`)(...r);
330
330
  } catch (o) {
331
331
  throw new Error(o + " in function code: " + e);
332
332
  }
333
333
  }
334
- function dr(e) {
334
+ function pr(e) {
335
335
  if (e.startsWith(":")) {
336
336
  e = e.slice(1);
337
337
  try {
338
- return L(e);
338
+ return W(e);
339
339
  } catch (t) {
340
340
  throw new Error(t + " in function code: " + e);
341
341
  }
@@ -344,88 +344,88 @@ function dr(e) {
344
344
  function rn(e) {
345
345
  return e.constructor.name === "AsyncFunction";
346
346
  }
347
- function pr(e, t) {
347
+ function mr(e, t) {
348
348
  const { deepCompare: n = !1 } = e;
349
349
  return n ? ht(e.value) : Z(e.value);
350
350
  }
351
- function mr(e, t, n) {
352
- const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((a, u) => s[u] === 1 ? a : t.getVueRefObjectOrValue(a));
351
+ function gr(e, t, n) {
352
+ const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((c, a) => s[a] === 1 ? c : t.getVueRefObjectOrValue(c));
353
353
  if (rn(new Function(o)))
354
- return fr(
354
+ return hr(
355
355
  async () => {
356
- const a = Object.fromEntries(
357
- Object.keys(r).map((u, f) => [u, i[f]])
356
+ const c = Object.fromEntries(
357
+ Object.keys(r).map((a, f) => [a, i[f]])
358
358
  );
359
- return await L(o, a)();
359
+ return await W(o, c)();
360
360
  },
361
361
  null,
362
362
  { lazy: !0 }
363
363
  );
364
- const c = Object.fromEntries(
365
- Object.keys(r).map((a, u) => [a, i[u]])
366
- ), l = L(o, c);
367
- return U(l);
364
+ const u = Object.fromEntries(
365
+ Object.keys(r).map((c, a) => [c, i[a]])
366
+ ), l = W(o, u);
367
+ return K(l);
368
368
  }
369
- function gr(e, t, n) {
369
+ function vr(e, t, n) {
370
370
  const {
371
371
  inputs: r = [],
372
372
  code: o,
373
373
  slient: s,
374
374
  data: i,
375
- asyncInit: c = null,
375
+ asyncInit: u = null,
376
376
  deepEqOnInput: l = 0
377
- } = e, h = s || Array(r.length).fill(0), a = i || Array(r.length).fill(0), u = r.filter((g, y) => h[y] === 0 && a[y] === 0).map((g) => t.getVueRefObject(g));
377
+ } = e, h = s || Array(r.length).fill(0), c = i || Array(r.length).fill(0), a = r.filter((g, y) => h[y] === 0 && c[y] === 0).map((g) => t.getVueRefObject(g));
378
378
  function f() {
379
379
  return r.map(
380
- (g, y) => a[y] === 1 ? g : t.getObjectToValue(g)
380
+ (g, y) => c[y] === 1 ? g : t.getObjectToValue(g)
381
381
  );
382
382
  }
383
- const d = L(o), v = l === 0 ? J(we) : ht(we), p = { immediate: !0, deep: !0 };
384
- return rn(d) ? (v.value = c, G(
385
- u,
383
+ const d = W(o), v = l === 0 ? J(we) : ht(we), p = { immediate: !0, deep: !0 };
384
+ return rn(d) ? (v.value = u, G(
385
+ a,
386
386
  async () => {
387
387
  f().some(Ee) || (v.value = await d(...f()));
388
388
  },
389
389
  p
390
390
  )) : G(
391
- u,
391
+ a,
392
392
  () => {
393
393
  const g = f();
394
394
  g.some(Ee) || (v.value = d(...g));
395
395
  },
396
396
  p
397
- ), qn(v);
397
+ ), Hn(v);
398
398
  }
399
- function vr() {
399
+ function yr() {
400
400
  return [];
401
401
  }
402
- const Se = _e(vr);
402
+ const Se = _e(yr);
403
403
  function on(e, t) {
404
- var s, i, c, l, h;
404
+ var s, i, u, l, h;
405
405
  const n = Se.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
406
406
  n.push(r), t.replaceSnapshot({
407
407
  scopeSnapshot: sn()
408
408
  });
409
- const o = (a, u) => {
410
- r.set(a.id, u);
409
+ const o = (c, a) => {
410
+ r.set(c.id, a);
411
411
  };
412
- return (s = e.refs) == null || s.forEach((a) => {
413
- o(a, pr(a));
414
- }), (i = e.web_computed) == null || i.forEach((a) => {
415
- const { init: u } = a, f = a.deepEqOnInput === void 0 ? J(u ?? we) : ht(u ?? we);
416
- o(a, f);
417
- }), (c = e.vue_computed) == null || c.forEach((a) => {
412
+ return (s = e.refs) == null || s.forEach((c) => {
413
+ o(c, mr(c));
414
+ }), (i = e.web_computed) == null || i.forEach((c) => {
415
+ const { init: a } = c, f = c.deepEqOnInput === void 0 ? J(a ?? we) : ht(a ?? we);
416
+ o(c, f);
417
+ }), (u = e.vue_computed) == null || u.forEach((c) => {
418
418
  o(
419
- a,
420
- mr(a, t)
419
+ c,
420
+ gr(c, t)
421
421
  );
422
- }), (l = e.js_computed) == null || l.forEach((a) => {
422
+ }), (l = e.js_computed) == null || l.forEach((c) => {
423
423
  o(
424
- a,
425
- gr(a, t)
424
+ c,
425
+ vr(c, t)
426
426
  );
427
- }), (h = e.data) == null || h.forEach((a) => {
428
- o(a, a.value);
427
+ }), (h = e.data) == null || h.forEach((c) => {
428
+ o(c, c.value);
429
429
  }), n.length - 1;
430
430
  }
431
431
  function sn() {
@@ -441,7 +441,7 @@ function sn() {
441
441
  getVueRef: t
442
442
  };
443
443
  }
444
- function yr(e) {
444
+ function wr(e) {
445
445
  return an(e, Se);
446
446
  }
447
447
  function an(e, t) {
@@ -453,7 +453,7 @@ function an(e, t) {
453
453
  throw new Error(`Var ${e.id} not found in scope ${e.sid}`);
454
454
  return o;
455
455
  }
456
- function wr(e) {
456
+ function Er(e) {
457
457
  Se.delete(e);
458
458
  }
459
459
  function cn(e, t) {
@@ -461,7 +461,7 @@ function cn(e, t) {
461
461
  n && n.splice(t, 1);
462
462
  }
463
463
  const dt = _e(() => []);
464
- function Er(e) {
464
+ function _r(e) {
465
465
  var r;
466
466
  const t = /* @__PURE__ */ new Map(), n = dt.getOrDefault(e.id).push(t);
467
467
  return (r = e.eRefs) == null || r.forEach((o) => {
@@ -469,7 +469,7 @@ function Er(e) {
469
469
  t.set(o.id, s);
470
470
  }), n;
471
471
  }
472
- function _r(e, t) {
472
+ function br(e, t) {
473
473
  const n = dt.get(e);
474
474
  n && n.splice(t, 1);
475
475
  }
@@ -489,63 +489,59 @@ function un() {
489
489
  }
490
490
  var N;
491
491
  ((e) => {
492
- function t(f) {
493
- return f.type === "var";
492
+ function t(a) {
493
+ return a.type === "var";
494
494
  }
495
495
  e.isVar = t;
496
- function n(f) {
497
- return f.type === "routePar";
496
+ function n(a) {
497
+ return a.type === "routePar";
498
498
  }
499
499
  e.isRouterParams = n;
500
- function r(f) {
501
- return f.type === "routeAct";
500
+ function r(a) {
501
+ return a.type === "routeAct";
502
502
  }
503
503
  e.isRouterAction = r;
504
- function o(f) {
505
- return f.type === "js";
506
- }
507
- e.isJs = o;
508
- function s(f) {
509
- return f.type === "jsOutput";
504
+ function o(a) {
505
+ return a.type === "jsFn";
510
506
  }
511
- e.isJsOutput = s;
512
- function i(f) {
513
- return f.type === "vf";
507
+ e.isJsFn = o;
508
+ function s(a) {
509
+ return a.type === "vf";
514
510
  }
515
- e.isVForItem = i;
516
- function c(f) {
517
- return f.type === "vf-i";
511
+ e.isVForItem = s;
512
+ function i(a) {
513
+ return a.type === "vf-i";
518
514
  }
519
- e.isVForIndex = c;
520
- function l(f) {
521
- return f.type === "sp";
515
+ e.isVForIndex = i;
516
+ function u(a) {
517
+ return a.type === "sp";
522
518
  }
523
- e.isSlotProp = l;
524
- function h(f) {
525
- return f.type === "event";
519
+ e.isSlotProp = u;
520
+ function l(a) {
521
+ return a.type === "event";
526
522
  }
527
- e.isEventContext = h;
528
- function a(f) {
529
- return f.type === "ele_ref";
523
+ e.isEventContext = l;
524
+ function h(a) {
525
+ return a.type === "ele_ref";
530
526
  }
531
- e.isElementRef = a;
532
- function u(f) {
533
- return f.type !== void 0;
527
+ e.isElementRef = h;
528
+ function c(a) {
529
+ return a.type !== void 0;
534
530
  }
535
- e.IsBinding = u;
531
+ e.IsBinding = c;
536
532
  })(N || (N = {}));
537
533
  const Me = _e(() => []);
538
- function Or(e) {
534
+ function Sr(e) {
539
535
  const t = Me.getOrDefault(e);
540
536
  return t.push(J({})), t.length - 1;
541
537
  }
542
- function br(e, t, n) {
538
+ function Or(e, t, n) {
543
539
  Me.get(e)[t].value = n;
544
540
  }
545
- function Sr(e) {
541
+ function Rr(e) {
546
542
  Me.delete(e);
547
543
  }
548
- function Rr() {
544
+ function Pr() {
549
545
  const e = /* @__PURE__ */ new Map();
550
546
  for (const [n, r] of Me) {
551
547
  const o = r[r.length - 1];
@@ -559,38 +555,38 @@ function Rr() {
559
555
  };
560
556
  }
561
557
  const ln = /* @__PURE__ */ new Map(), pt = _e(() => /* @__PURE__ */ new Map()), fn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
562
- function Pr(e) {
558
+ function kr(e) {
563
559
  const t = dn() ?? {};
564
- Ie(hn, { ...t, [e.fid]: e.key });
560
+ Ne(hn, { ...t, [e.fid]: e.key });
565
561
  }
566
562
  function dn() {
567
563
  return ee(hn, void 0);
568
564
  }
569
- function kr() {
565
+ function Vr() {
570
566
  const e = dn(), t = /* @__PURE__ */ new Map();
571
567
  return e === void 0 || Object.keys(e).forEach((n) => {
572
568
  t.set(n, e[n]);
573
569
  }), t;
574
570
  }
575
- function Vr(e, t, n, r) {
571
+ function Nr(e, t, n, r) {
576
572
  if (r) {
577
573
  fn.add(e);
578
574
  return;
579
575
  }
580
576
  let o;
581
577
  if (n)
582
- o = new Cr(t);
578
+ o = new xr(t);
583
579
  else {
584
- const s = Array.isArray(t) ? t : Object.entries(t).map(([i, c], l) => [c, i, l]);
585
- o = new jr(s);
580
+ const s = Array.isArray(t) ? t : Object.entries(t).map(([i, u], l) => [u, i, l]);
581
+ o = new Cr(s);
586
582
  }
587
583
  ln.set(e, o);
588
584
  }
589
- function Nr(e, t, n) {
585
+ function Ir(e, t, n) {
590
586
  const r = pt.getOrDefault(e);
591
587
  r.has(t) || r.set(t, Z(n)), r.get(t).value = n;
592
588
  }
593
- function Ir(e) {
589
+ function Tr(e) {
594
590
  const t = /* @__PURE__ */ new Set();
595
591
  function n(o) {
596
592
  t.add(o);
@@ -606,8 +602,8 @@ function Ir(e) {
606
602
  removeUnusedKeys: r
607
603
  };
608
604
  }
609
- function Tr(e) {
610
- const t = e, n = kr();
605
+ function Ar(e) {
606
+ const t = e, n = Vr();
611
607
  function r(o) {
612
608
  const s = n.get(o) ?? t;
613
609
  return pt.get(o).get(s).value;
@@ -616,19 +612,19 @@ function Tr(e) {
616
612
  getVForIndex: r
617
613
  };
618
614
  }
619
- function Ar(e) {
615
+ function $r(e) {
620
616
  return ln.get(e.binding.fid).createRefObjectWithPaths(e);
621
617
  }
622
- function $r(e) {
618
+ function jr(e) {
623
619
  return fn.has(e);
624
620
  }
625
- class jr {
621
+ class Cr {
626
622
  constructor(t) {
627
623
  this.array = t;
628
624
  }
629
625
  createRefObjectWithPaths(t) {
630
626
  const { binding: n } = t, { snapshot: r } = t, { path: o = [] } = n, s = [...o], i = r.getVForIndex(n.fid);
631
- return s.unshift(i), Ce(() => ({
627
+ return s.unshift(i), je(() => ({
632
628
  get: () => be(
633
629
  this.array,
634
630
  s,
@@ -640,7 +636,7 @@ class jr {
640
636
  }));
641
637
  }
642
638
  }
643
- class Cr {
639
+ class xr {
644
640
  constructor(t) {
645
641
  B(this, "_isDictSource");
646
642
  this.binding = t;
@@ -653,17 +649,17 @@ class Cr {
653
649
  return this._isDictSource;
654
650
  }
655
651
  createRefObjectWithPaths(t) {
656
- const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), c = this.isDictSource(i), l = s.getVForIndex(n.fid), h = c && o.length === 0 ? [0] : [];
657
- return o.unshift(l, ...h), Ce(() => ({
652
+ const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), u = this.isDictSource(i), l = s.getVForIndex(n.fid), h = u && o.length === 0 ? [0] : [];
653
+ return o.unshift(l, ...h), je(() => ({
658
654
  get: () => {
659
- const a = q(i), u = c ? Object.entries(a).map(([f, d], v) => [
655
+ const c = q(i), a = u ? Object.entries(c).map(([f, d], v) => [
660
656
  d,
661
657
  f,
662
658
  v
663
- ]) : a;
659
+ ]) : c;
664
660
  try {
665
661
  return be(
666
- q(u),
662
+ q(a),
667
663
  o,
668
664
  s.getObjectToValue
669
665
  );
@@ -671,34 +667,31 @@ class Cr {
671
667
  return;
672
668
  }
673
669
  },
674
- set: (a) => {
675
- const u = q(i);
676
- if (c) {
677
- const f = Object.keys(u);
670
+ set: (c) => {
671
+ const a = q(i);
672
+ if (u) {
673
+ const f = Object.keys(a);
678
674
  if (l >= f.length)
679
675
  throw new Error("Cannot set value to a non-existent key");
680
676
  const d = f[l];
681
677
  Ze(
682
- u,
683
- [d],
684
678
  a,
679
+ [d],
680
+ c,
685
681
  s.getObjectToValue
686
682
  );
687
683
  return;
688
684
  }
689
685
  Ze(
690
- u,
691
- o,
692
686
  a,
687
+ o,
688
+ c,
693
689
  s.getObjectToValue
694
690
  );
695
691
  }
696
692
  }));
697
693
  }
698
694
  }
699
- function xr(e, t, n = !1) {
700
- return n && (e = `$computed(${e})`, t = { ...t, $computed: U }), L(e, t);
701
- }
702
695
  function Rt(e) {
703
696
  return e == null;
704
697
  }
@@ -723,14 +716,14 @@ class Ur {
723
716
  const r = {};
724
717
  if (t.settings)
725
718
  for (const i in t.settings) {
726
- const c = t.settings[i];
727
- r[i] = c.defaultValue;
719
+ const u = t.settings[i];
720
+ r[i] = u.defaultValue;
728
721
  }
729
722
  const o = `__vue-devtools-plugin-settings__${t.id}`;
730
723
  let s = Object.assign({}, r);
731
724
  try {
732
- const i = localStorage.getItem(o), c = JSON.parse(i);
733
- Object.assign(s, c);
725
+ const i = localStorage.getItem(o), u = JSON.parse(i);
726
+ Object.assign(s, u);
734
727
  } catch {
735
728
  }
736
729
  this.fallbacks = {
@@ -747,24 +740,24 @@ class Ur {
747
740
  now() {
748
741
  return Wr();
749
742
  }
750
- }, n && n.on(Br, (i, c) => {
751
- i === this.plugin.id && this.fallbacks.setSettings(c);
743
+ }, n && n.on(Br, (i, u) => {
744
+ i === this.plugin.id && this.fallbacks.setSettings(u);
752
745
  }), this.proxiedOn = new Proxy({}, {
753
- get: (i, c) => this.target ? this.target.on[c] : (...l) => {
746
+ get: (i, u) => this.target ? this.target.on[u] : (...l) => {
754
747
  this.onQueue.push({
755
- method: c,
748
+ method: u,
756
749
  args: l
757
750
  });
758
751
  }
759
752
  }), this.proxiedTarget = new Proxy({}, {
760
- get: (i, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...l) => (this.targetQueue.push({
761
- method: c,
753
+ get: (i, u) => this.target ? this.target[u] : u === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(u) ? (...l) => (this.targetQueue.push({
754
+ method: u,
762
755
  args: l,
763
756
  resolve: () => {
764
757
  }
765
- }), this.fallbacks[c](...l)) : (...l) => new Promise((h) => {
758
+ }), this.fallbacks[u](...l)) : (...l) => new Promise((h) => {
766
759
  this.targetQueue.push({
767
- method: c,
760
+ method: u,
768
761
  args: l,
769
762
  resolve: h
770
763
  });
@@ -792,7 +785,7 @@ function Kr(e, t) {
792
785
  }), i && t(i.proxiedTarget);
793
786
  }
794
787
  }
795
- var S = {};
788
+ var O = {};
796
789
  const z = typeof document < "u";
797
790
  function mn(e) {
798
791
  return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
@@ -807,12 +800,12 @@ function He(e, t) {
807
800
  const n = {};
808
801
  for (const r in t) {
809
802
  const o = t[r];
810
- n[r] = K(o) ? o.map(e) : e(o);
803
+ n[r] = U(o) ? o.map(e) : e(o);
811
804
  }
812
805
  return n;
813
806
  }
814
807
  const ve = () => {
815
- }, K = Array.isArray;
808
+ }, U = Array.isArray;
816
809
  function P(e) {
817
810
  const t = Array.from(arguments).slice(1);
818
811
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
@@ -840,16 +833,16 @@ function ae(e) {
840
833
  try {
841
834
  return decodeURIComponent("" + e);
842
835
  } catch {
843
- S.NODE_ENV !== "production" && P(`Error decoding "${e}". Using original value`);
836
+ O.NODE_ENV !== "production" && P(`Error decoding "${e}". Using original value`);
844
837
  }
845
838
  return "" + e;
846
839
  }
847
840
  const so = /\/$/, io = (e) => e.replace(so, "");
848
841
  function ze(e, t, n = "/") {
849
842
  let r, o = {}, s = "", i = "";
850
- const c = t.indexOf("#");
843
+ const u = t.indexOf("#");
851
844
  let l = t.indexOf("?");
852
- return c < l && c >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, c > -1 ? c : t.length), o = e(s)), c > -1 && (r = r || t.slice(0, c), i = t.slice(c, t.length)), r = uo(r ?? t, n), {
845
+ return u < l && u >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, u > -1 ? u : t.length), o = e(s)), u > -1 && (r = r || t.slice(0, u), i = t.slice(u, t.length)), r = uo(r ?? t, n), {
853
846
  fullPath: r + (s && "?") + s + i,
854
847
  path: r,
855
848
  query: o,
@@ -879,24 +872,24 @@ function _n(e, t) {
879
872
  return !0;
880
873
  }
881
874
  function co(e, t) {
882
- return K(e) ? Vt(e, t) : K(t) ? Vt(t, e) : e === t;
875
+ return U(e) ? Vt(e, t) : U(t) ? Vt(t, e) : e === t;
883
876
  }
884
877
  function Vt(e, t) {
885
- return K(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
878
+ return U(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
886
879
  }
887
880
  function uo(e, t) {
888
881
  if (e.startsWith("/"))
889
882
  return e;
890
- if (S.NODE_ENV !== "production" && !t.startsWith("/"))
883
+ if (O.NODE_ENV !== "production" && !t.startsWith("/"))
891
884
  return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
892
885
  if (!e)
893
886
  return t;
894
887
  const n = t.split("/"), r = e.split("/"), o = r[r.length - 1];
895
888
  (o === ".." || o === ".") && r.push("");
896
- let s = n.length - 1, i, c;
889
+ let s = n.length - 1, i, u;
897
890
  for (i = 0; i < r.length; i++)
898
- if (c = r[i], c !== ".")
899
- if (c === "..")
891
+ if (u = r[i], u !== ".")
892
+ if (u === "..")
900
893
  s > 1 && s--;
901
894
  else
902
895
  break;
@@ -923,7 +916,7 @@ var oe;
923
916
  e.back = "back", e.forward = "forward", e.unknown = "";
924
917
  })(oe || (oe = {}));
925
918
  const Je = "";
926
- function On(e) {
919
+ function bn(e) {
927
920
  if (!e)
928
921
  if (z) {
929
922
  const t = document.querySelector("base");
@@ -933,7 +926,7 @@ function On(e) {
933
926
  return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), io(e);
934
927
  }
935
928
  const lo = /^[^#]+#/;
936
- function bn(e, t) {
929
+ function Sn(e, t) {
937
930
  return e.replace(lo, "#") + t;
938
931
  }
939
932
  function fo(e, t) {
@@ -952,7 +945,7 @@ function ho(e) {
952
945
  let t;
953
946
  if ("el" in e) {
954
947
  const n = e.el, r = typeof n == "string" && n.startsWith("#");
955
- if (S.NODE_ENV !== "production" && typeof e.el == "string" && (!r || !document.getElementById(e.el.slice(1))))
948
+ if (O.NODE_ENV !== "production" && typeof e.el == "string" && (!r || !document.getElementById(e.el.slice(1))))
956
949
  try {
957
950
  const s = document.querySelector(e.el);
958
951
  if (r && s) {
@@ -965,7 +958,7 @@ function ho(e) {
965
958
  }
966
959
  const o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
967
960
  if (!o) {
968
- S.NODE_ENV !== "production" && P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
961
+ O.NODE_ENV !== "production" && P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
969
962
  return;
970
963
  }
971
964
  t = fo(o, e);
@@ -985,18 +978,18 @@ function mo(e) {
985
978
  return st.delete(e), t;
986
979
  }
987
980
  let go = () => location.protocol + "//" + location.host;
988
- function Sn(e, t) {
981
+ function On(e, t) {
989
982
  const { pathname: n, search: r, hash: o } = t, s = e.indexOf("#");
990
983
  if (s > -1) {
991
- let c = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(c);
984
+ let u = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(u);
992
985
  return l[0] !== "/" && (l = "/" + l), Pt(l, "");
993
986
  }
994
987
  return Pt(n, e) + r + o;
995
988
  }
996
989
  function vo(e, t, n, r) {
997
990
  let o = [], s = [], i = null;
998
- const c = ({ state: f }) => {
999
- const d = Sn(e, location), v = n.value, p = t.value;
991
+ const u = ({ state: f }) => {
992
+ const d = On(e, location), v = n.value, p = t.value;
1000
993
  let g = 0;
1001
994
  if (f) {
1002
995
  if (n.value = d, t.value = f, i && i === v) {
@@ -1025,21 +1018,21 @@ function vo(e, t, n, r) {
1025
1018
  };
1026
1019
  return s.push(d), d;
1027
1020
  }
1028
- function a() {
1021
+ function c() {
1029
1022
  const { history: f } = window;
1030
1023
  f.state && f.replaceState(I({}, f.state, { scroll: Fe() }), "");
1031
1024
  }
1032
- function u() {
1025
+ function a() {
1033
1026
  for (const f of s)
1034
1027
  f();
1035
- s = [], window.removeEventListener("popstate", c), window.removeEventListener("beforeunload", a);
1028
+ s = [], window.removeEventListener("popstate", u), window.removeEventListener("beforeunload", c);
1036
1029
  }
1037
- return window.addEventListener("popstate", c), window.addEventListener("beforeunload", a, {
1030
+ return window.addEventListener("popstate", u), window.addEventListener("beforeunload", c, {
1038
1031
  passive: !0
1039
1032
  }), {
1040
1033
  pauseListeners: l,
1041
1034
  listen: h,
1042
- destroy: u
1035
+ destroy: a
1043
1036
  };
1044
1037
  }
1045
1038
  function It(e, t, n, r = !1, o = !1) {
@@ -1054,7 +1047,7 @@ function It(e, t, n, r = !1, o = !1) {
1054
1047
  }
1055
1048
  function yo(e) {
1056
1049
  const { history: t, location: n } = window, r = {
1057
- value: Sn(e, n)
1050
+ value: On(e, n)
1058
1051
  }, o = { value: t.state };
1059
1052
  o.value || s(r.value, {
1060
1053
  back: null,
@@ -1067,26 +1060,26 @@ function yo(e) {
1067
1060
  // scrollBehavior to be triggered without a saved position
1068
1061
  scroll: null
1069
1062
  }, !0);
1070
- function s(l, h, a) {
1071
- const u = e.indexOf("#"), f = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + l : go() + e + l;
1063
+ function s(l, h, c) {
1064
+ const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : go() + e + l;
1072
1065
  try {
1073
- t[a ? "replaceState" : "pushState"](h, "", f), o.value = h;
1066
+ t[c ? "replaceState" : "pushState"](h, "", f), o.value = h;
1074
1067
  } catch (d) {
1075
- S.NODE_ENV !== "production" ? P("Error with push/replace State", d) : console.error(d), n[a ? "replace" : "assign"](f);
1068
+ O.NODE_ENV !== "production" ? P("Error with push/replace State", d) : console.error(d), n[c ? "replace" : "assign"](f);
1076
1069
  }
1077
1070
  }
1078
1071
  function i(l, h) {
1079
- const a = I({}, t.state, It(
1072
+ const c = I({}, t.state, It(
1080
1073
  o.value.back,
1081
1074
  // keep back and forward entries but override current position
1082
1075
  l,
1083
1076
  o.value.forward,
1084
1077
  !0
1085
1078
  ), h, { position: o.value.position });
1086
- s(l, a, !0), r.value = l;
1079
+ s(l, c, !0), r.value = l;
1087
1080
  }
1088
- function c(l, h) {
1089
- const a = I(
1081
+ function u(l, h) {
1082
+ const c = I(
1090
1083
  {},
1091
1084
  // use current history state to gracefully handle a wrong call to
1092
1085
  // history.replaceState
@@ -1098,23 +1091,23 @@ function yo(e) {
1098
1091
  scroll: Fe()
1099
1092
  }
1100
1093
  );
1101
- S.NODE_ENV !== "production" && !t.state && P(`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:
1094
+ O.NODE_ENV !== "production" && !t.state && P(`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:
1102
1095
 
1103
1096
  history.replaceState(history.state, '', url)
1104
1097
 
1105
- You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(a.current, a, !0);
1106
- const u = I({}, It(r.value, l, null), { position: a.position + 1 }, h);
1107
- s(l, u, !1), r.value = l;
1098
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(c.current, c, !0);
1099
+ const a = I({}, It(r.value, l, null), { position: c.position + 1 }, h);
1100
+ s(l, a, !1), r.value = l;
1108
1101
  }
1109
1102
  return {
1110
1103
  location: r,
1111
1104
  state: o,
1112
- push: c,
1105
+ push: u,
1113
1106
  replace: i
1114
1107
  };
1115
1108
  }
1116
1109
  function Rn(e) {
1117
- e = On(e);
1110
+ e = bn(e);
1118
1111
  const t = yo(e), n = vo(e, t.state, t.location, t.replace);
1119
1112
  function r(s, i = !0) {
1120
1113
  i || n.pauseListeners(), history.go(s);
@@ -1124,7 +1117,7 @@ function Rn(e) {
1124
1117
  location: "",
1125
1118
  base: e,
1126
1119
  go: r,
1127
- createHref: bn.bind(null, e)
1120
+ createHref: Sn.bind(null, e)
1128
1121
  }, t, n);
1129
1122
  return Object.defineProperty(o, "location", {
1130
1123
  enumerable: !0,
@@ -1136,18 +1129,18 @@ function Rn(e) {
1136
1129
  }
1137
1130
  function wo(e = "") {
1138
1131
  let t = [], n = [Je], r = 0;
1139
- e = On(e);
1140
- function o(c) {
1141
- r++, r !== n.length && n.splice(r), n.push(c);
1132
+ e = bn(e);
1133
+ function o(u) {
1134
+ r++, r !== n.length && n.splice(r), n.push(u);
1142
1135
  }
1143
- function s(c, l, { direction: h, delta: a }) {
1144
- const u = {
1136
+ function s(u, l, { direction: h, delta: c }) {
1137
+ const a = {
1145
1138
  direction: h,
1146
- delta: a,
1139
+ delta: c,
1147
1140
  type: ce.pop
1148
1141
  };
1149
1142
  for (const f of t)
1150
- f(c, l, u);
1143
+ f(u, l, a);
1151
1144
  }
1152
1145
  const i = {
1153
1146
  // rewritten by Object.defineProperty
@@ -1155,32 +1148,32 @@ function wo(e = "") {
1155
1148
  // TODO: should be kept in queue
1156
1149
  state: {},
1157
1150
  base: e,
1158
- createHref: bn.bind(null, e),
1159
- replace(c) {
1160
- n.splice(r--, 1), o(c);
1151
+ createHref: Sn.bind(null, e),
1152
+ replace(u) {
1153
+ n.splice(r--, 1), o(u);
1161
1154
  },
1162
- push(c, l) {
1163
- o(c);
1155
+ push(u, l) {
1156
+ o(u);
1164
1157
  },
1165
- listen(c) {
1166
- return t.push(c), () => {
1167
- const l = t.indexOf(c);
1158
+ listen(u) {
1159
+ return t.push(u), () => {
1160
+ const l = t.indexOf(u);
1168
1161
  l > -1 && t.splice(l, 1);
1169
1162
  };
1170
1163
  },
1171
1164
  destroy() {
1172
1165
  t = [], n = [Je], r = 0;
1173
1166
  },
1174
- go(c, l = !0) {
1175
- const h = this.location, a = (
1167
+ go(u, l = !0) {
1168
+ const h = this.location, c = (
1176
1169
  // we are considering delta === 0 going forward, but in abstract mode
1177
1170
  // using 0 for the delta doesn't make sense like it does in html5 where
1178
1171
  // it reloads the page
1179
- c < 0 ? oe.back : oe.forward
1172
+ u < 0 ? oe.back : oe.forward
1180
1173
  );
1181
- r = Math.max(0, Math.min(r + c, n.length - 1)), l && s(this.location, h, {
1182
- direction: a,
1183
- delta: c
1174
+ r = Math.max(0, Math.min(r + u, n.length - 1)), l && s(this.location, h, {
1175
+ direction: c,
1176
+ delta: u
1184
1177
  });
1185
1178
  }
1186
1179
  };
@@ -1190,16 +1183,16 @@ function wo(e = "") {
1190
1183
  }), i;
1191
1184
  }
1192
1185
  function Eo(e) {
1193
- return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), S.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && P(`A hash base must end with a "#":
1186
+ return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && P(`A hash base must end with a "#":
1194
1187
  "${e}" should be "${e.replace(/#.*$/, "#")}".`), Rn(e);
1195
1188
  }
1196
- function Ae(e) {
1189
+ function Te(e) {
1197
1190
  return typeof e == "string" || e && typeof e == "object";
1198
1191
  }
1199
1192
  function Pn(e) {
1200
1193
  return typeof e == "string" || typeof e == "symbol";
1201
1194
  }
1202
- const it = Symbol(S.NODE_ENV !== "production" ? "navigation failure" : "");
1195
+ const it = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
1203
1196
  var Tt;
1204
1197
  (function(e) {
1205
1198
  e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
@@ -1212,7 +1205,7 @@ while being at
1212
1205
  ` + JSON.stringify(t) : ""}`;
1213
1206
  },
1214
1207
  2({ from: e, to: t }) {
1215
- return `Redirected from "${e.fullPath}" to "${bo(t)}" via a navigation guard.`;
1208
+ return `Redirected from "${e.fullPath}" to "${So(t)}" via a navigation guard.`;
1216
1209
  },
1217
1210
  4({ from: e, to: t }) {
1218
1211
  return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
@@ -1225,7 +1218,7 @@ while being at
1225
1218
  }
1226
1219
  };
1227
1220
  function ue(e, t) {
1228
- return S.NODE_ENV !== "production" ? I(new Error(_o[e](t)), {
1221
+ return O.NODE_ENV !== "production" ? I(new Error(_o[e](t)), {
1229
1222
  type: e,
1230
1223
  [it]: !0
1231
1224
  }, t) : I(new Error(), {
@@ -1236,38 +1229,38 @@ function ue(e, t) {
1236
1229
  function H(e, t) {
1237
1230
  return e instanceof Error && it in e && (t == null || !!(e.type & t));
1238
1231
  }
1239
- const Oo = ["params", "query", "hash"];
1240
- function bo(e) {
1232
+ const bo = ["params", "query", "hash"];
1233
+ function So(e) {
1241
1234
  if (typeof e == "string")
1242
1235
  return e;
1243
1236
  if (e.path != null)
1244
1237
  return e.path;
1245
1238
  const t = {};
1246
- for (const n of Oo)
1239
+ for (const n of bo)
1247
1240
  n in e && (t[n] = e[n]);
1248
1241
  return JSON.stringify(t, null, 2);
1249
1242
  }
1250
- const At = "[^/]+?", So = {
1243
+ const At = "[^/]+?", Oo = {
1251
1244
  sensitive: !1,
1252
1245
  strict: !1,
1253
1246
  start: !0,
1254
1247
  end: !0
1255
1248
  }, Ro = /[.+*?^${}()[\]/\\]/g;
1256
1249
  function Po(e, t) {
1257
- const n = I({}, So, t), r = [];
1250
+ const n = I({}, Oo, t), r = [];
1258
1251
  let o = n.start ? "^" : "";
1259
1252
  const s = [];
1260
1253
  for (const h of e) {
1261
- const a = h.length ? [] : [
1254
+ const c = h.length ? [] : [
1262
1255
  90
1263
1256
  /* PathScore.Root */
1264
1257
  ];
1265
1258
  n.strict && !h.length && (o += "/");
1266
- for (let u = 0; u < h.length; u++) {
1267
- const f = h[u];
1259
+ for (let a = 0; a < h.length; a++) {
1260
+ const f = h[a];
1268
1261
  let d = 40 + (n.sensitive ? 0.25 : 0);
1269
1262
  if (f.type === 0)
1270
- u || (o += "/"), o += f.value.replace(Ro, "\\$&"), d += 40;
1263
+ a || (o += "/"), o += f.value.replace(Ro, "\\$&"), d += 40;
1271
1264
  else if (f.type === 1) {
1272
1265
  const { value: v, repeatable: p, optional: g, regexp: y } = f;
1273
1266
  s.push({
@@ -1284,14 +1277,14 @@ function Po(e, t) {
1284
1277
  throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` + R.message);
1285
1278
  }
1286
1279
  }
1287
- let O = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1288
- u || (O = // avoid an optional / if there are more segments e.g. /:p?-static
1280
+ let S = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1281
+ a || (S = // avoid an optional / if there are more segments e.g. /:p?-static
1289
1282
  // or /:p?-:p2
1290
- g && h.length < 2 ? `(?:/${O})` : "/" + O), g && (O += "?"), o += O, d += 20, g && (d += -8), p && (d += -20), _ === ".*" && (d += -50);
1283
+ g && h.length < 2 ? `(?:/${S})` : "/" + S), g && (S += "?"), o += S, d += 20, g && (d += -8), p && (d += -20), _ === ".*" && (d += -50);
1291
1284
  }
1292
- a.push(d);
1285
+ c.push(d);
1293
1286
  }
1294
- r.push(a);
1287
+ r.push(c);
1295
1288
  }
1296
1289
  if (n.strict && n.end) {
1297
1290
  const h = r.length - 1;
@@ -1299,43 +1292,43 @@ function Po(e, t) {
1299
1292
  }
1300
1293
  n.strict || (o += "/?"), n.end ? o += "$" : n.strict && !o.endsWith("/") && (o += "(?:/|$)");
1301
1294
  const i = new RegExp(o, n.sensitive ? "" : "i");
1302
- function c(h) {
1303
- const a = h.match(i), u = {};
1304
- if (!a)
1295
+ function u(h) {
1296
+ const c = h.match(i), a = {};
1297
+ if (!c)
1305
1298
  return null;
1306
- for (let f = 1; f < a.length; f++) {
1307
- const d = a[f] || "", v = s[f - 1];
1308
- u[v.name] = d && v.repeatable ? d.split("/") : d;
1299
+ for (let f = 1; f < c.length; f++) {
1300
+ const d = c[f] || "", v = s[f - 1];
1301
+ a[v.name] = d && v.repeatable ? d.split("/") : d;
1309
1302
  }
1310
- return u;
1303
+ return a;
1311
1304
  }
1312
1305
  function l(h) {
1313
- let a = "", u = !1;
1306
+ let c = "", a = !1;
1314
1307
  for (const f of e) {
1315
- (!u || !a.endsWith("/")) && (a += "/"), u = !1;
1308
+ (!a || !c.endsWith("/")) && (c += "/"), a = !1;
1316
1309
  for (const d of f)
1317
1310
  if (d.type === 0)
1318
- a += d.value;
1311
+ c += d.value;
1319
1312
  else if (d.type === 1) {
1320
1313
  const { value: v, repeatable: p, optional: g } = d, y = v in h ? h[v] : "";
1321
- if (K(y) && !p)
1314
+ if (U(y) && !p)
1322
1315
  throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);
1323
- const _ = K(y) ? y.join("/") : y;
1316
+ const _ = U(y) ? y.join("/") : y;
1324
1317
  if (!_)
1325
1318
  if (g)
1326
- f.length < 2 && (a.endsWith("/") ? a = a.slice(0, -1) : u = !0);
1319
+ f.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : a = !0);
1327
1320
  else
1328
1321
  throw new Error(`Missing required param "${v}"`);
1329
- a += _;
1322
+ c += _;
1330
1323
  }
1331
1324
  }
1332
- return a || "/";
1325
+ return c || "/";
1333
1326
  }
1334
1327
  return {
1335
1328
  re: i,
1336
1329
  score: r,
1337
1330
  keys: s,
1338
- parse: c,
1331
+ parse: u,
1339
1332
  stringify: l
1340
1333
  };
1341
1334
  }
@@ -1380,7 +1373,7 @@ function Io(e) {
1380
1373
  if (e === "/")
1381
1374
  return [[Vo]];
1382
1375
  if (!e.startsWith("/"))
1383
- throw new Error(S.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1376
+ throw new Error(O.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1384
1377
  function t(d) {
1385
1378
  throw new Error(`ERR (${n})/"${h}": ${d}`);
1386
1379
  }
@@ -1390,15 +1383,15 @@ function Io(e) {
1390
1383
  function i() {
1391
1384
  s && o.push(s), s = [];
1392
1385
  }
1393
- let c = 0, l, h = "", a = "";
1394
- function u() {
1386
+ let u = 0, l, h = "", c = "";
1387
+ function a() {
1395
1388
  h && (n === 0 ? s.push({
1396
1389
  type: 0,
1397
1390
  value: h
1398
1391
  }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (l === "*" || l === "+") && t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`), s.push({
1399
1392
  type: 1,
1400
1393
  value: h,
1401
- regexp: a,
1394
+ regexp: c,
1402
1395
  repeatable: l === "*" || l === "+",
1403
1396
  optional: l === "*" || l === "?"
1404
1397
  })) : t("Invalid state to consume buffer"), h = "");
@@ -1406,37 +1399,37 @@ function Io(e) {
1406
1399
  function f() {
1407
1400
  h += l;
1408
1401
  }
1409
- for (; c < e.length; ) {
1410
- if (l = e[c++], l === "\\" && n !== 2) {
1402
+ for (; u < e.length; ) {
1403
+ if (l = e[u++], l === "\\" && n !== 2) {
1411
1404
  r = n, n = 4;
1412
1405
  continue;
1413
1406
  }
1414
1407
  switch (n) {
1415
1408
  case 0:
1416
- l === "/" ? (h && u(), i()) : l === ":" ? (u(), n = 1) : f();
1409
+ l === "/" ? (h && a(), i()) : l === ":" ? (a(), n = 1) : f();
1417
1410
  break;
1418
1411
  case 4:
1419
1412
  f(), n = r;
1420
1413
  break;
1421
1414
  case 1:
1422
- l === "(" ? n = 2 : No.test(l) ? f() : (u(), n = 0, l !== "*" && l !== "?" && l !== "+" && c--);
1415
+ l === "(" ? n = 2 : No.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--);
1423
1416
  break;
1424
1417
  case 2:
1425
- l === ")" ? a[a.length - 1] == "\\" ? a = a.slice(0, -1) + l : n = 3 : a += l;
1418
+ l === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + l : n = 3 : c += l;
1426
1419
  break;
1427
1420
  case 3:
1428
- u(), n = 0, l !== "*" && l !== "?" && l !== "+" && c--, a = "";
1421
+ a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--, c = "";
1429
1422
  break;
1430
1423
  default:
1431
1424
  t("Unknown state");
1432
1425
  break;
1433
1426
  }
1434
1427
  }
1435
- return n === 2 && t(`Unfinished custom RegExp for param "${h}"`), u(), i(), o;
1428
+ return n === 2 && t(`Unfinished custom RegExp for param "${h}"`), a(), i(), o;
1436
1429
  }
1437
1430
  function To(e, t, n) {
1438
1431
  const r = Po(Io(e.path), n);
1439
- if (S.NODE_ENV !== "production") {
1432
+ if (O.NODE_ENV !== "production") {
1440
1433
  const s = /* @__PURE__ */ new Set();
1441
1434
  for (const i of r.keys)
1442
1435
  s.has(i.name) && P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
@@ -1453,15 +1446,15 @@ function To(e, t, n) {
1453
1446
  function Ao(e, t) {
1454
1447
  const n = [], r = /* @__PURE__ */ new Map();
1455
1448
  t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
1456
- function o(u) {
1457
- return r.get(u);
1458
- }
1459
- function s(u, f, d) {
1460
- const v = !d, p = Ct(u);
1461
- S.NODE_ENV !== "production" && xo(p, f), p.aliasOf = d && d.record;
1462
- const g = Dt(t, u), y = [p];
1463
- if ("alias" in u) {
1464
- const R = typeof u.alias == "string" ? [u.alias] : u.alias;
1449
+ function o(a) {
1450
+ return r.get(a);
1451
+ }
1452
+ function s(a, f, d) {
1453
+ const v = !d, p = Ct(a);
1454
+ O.NODE_ENV !== "production" && xo(p, f), p.aliasOf = d && d.record;
1455
+ const g = Dt(t, a), y = [p];
1456
+ if ("alias" in a) {
1457
+ const R = typeof a.alias == "string" ? [a.alias] : a.alias;
1465
1458
  for (const D of R)
1466
1459
  y.push(
1467
1460
  // we need to normalize again to ensure the `mods` property
@@ -1478,53 +1471,53 @@ function Ao(e, t) {
1478
1471
  }))
1479
1472
  );
1480
1473
  }
1481
- let _, O;
1474
+ let _, S;
1482
1475
  for (const R of y) {
1483
1476
  const { path: D } = R;
1484
1477
  if (f && D[0] !== "/") {
1485
1478
  const C = f.record.path, x = C[C.length - 1] === "/" ? "" : "/";
1486
1479
  R.path = f.record.path + (D && x + D);
1487
1480
  }
1488
- if (S.NODE_ENV !== "production" && R.path === "*")
1481
+ if (O.NODE_ENV !== "production" && R.path === "*")
1489
1482
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1490
1483
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
1491
- if (_ = To(R, f, g), S.NODE_ENV !== "production" && f && D[0] === "/" && Mo(_, f), d ? (d.alias.push(_), S.NODE_ENV !== "production" && Co(d, _)) : (O = O || _, O !== _ && O.alias.push(_), v && u.name && !xt(_) && (S.NODE_ENV !== "production" && Do(u, f), i(u.name))), Vn(_) && l(_), p.children) {
1484
+ if (_ = To(R, f, g), O.NODE_ENV !== "production" && f && D[0] === "/" && Mo(_, f), d ? (d.alias.push(_), O.NODE_ENV !== "production" && Co(d, _)) : (S = S || _, S !== _ && S.alias.push(_), v && a.name && !xt(_) && (O.NODE_ENV !== "production" && Do(a, f), i(a.name))), Vn(_) && l(_), p.children) {
1492
1485
  const C = p.children;
1493
1486
  for (let x = 0; x < C.length; x++)
1494
1487
  s(C[x], _, d && d.children[x]);
1495
1488
  }
1496
1489
  d = d || _;
1497
1490
  }
1498
- return O ? () => {
1499
- i(O);
1491
+ return S ? () => {
1492
+ i(S);
1500
1493
  } : ve;
1501
1494
  }
1502
- function i(u) {
1503
- if (Pn(u)) {
1504
- const f = r.get(u);
1505
- f && (r.delete(u), n.splice(n.indexOf(f), 1), f.children.forEach(i), f.alias.forEach(i));
1495
+ function i(a) {
1496
+ if (Pn(a)) {
1497
+ const f = r.get(a);
1498
+ f && (r.delete(a), n.splice(n.indexOf(f), 1), f.children.forEach(i), f.alias.forEach(i));
1506
1499
  } else {
1507
- const f = n.indexOf(u);
1508
- f > -1 && (n.splice(f, 1), u.record.name && r.delete(u.record.name), u.children.forEach(i), u.alias.forEach(i));
1500
+ const f = n.indexOf(a);
1501
+ f > -1 && (n.splice(f, 1), a.record.name && r.delete(a.record.name), a.children.forEach(i), a.alias.forEach(i));
1509
1502
  }
1510
1503
  }
1511
- function c() {
1504
+ function u() {
1512
1505
  return n;
1513
1506
  }
1514
- function l(u) {
1515
- const f = Fo(u, n);
1516
- n.splice(f, 0, u), u.record.name && !xt(u) && r.set(u.record.name, u);
1507
+ function l(a) {
1508
+ const f = Fo(a, n);
1509
+ n.splice(f, 0, a), a.record.name && !xt(a) && r.set(a.record.name, a);
1517
1510
  }
1518
- function h(u, f) {
1511
+ function h(a, f) {
1519
1512
  let d, v = {}, p, g;
1520
- if ("name" in u && u.name) {
1521
- if (d = r.get(u.name), !d)
1513
+ if ("name" in a && a.name) {
1514
+ if (d = r.get(a.name), !d)
1522
1515
  throw ue(1, {
1523
- location: u
1516
+ location: a
1524
1517
  });
1525
- if (S.NODE_ENV !== "production") {
1526
- const O = Object.keys(u.params || {}).filter((R) => !d.keys.find((D) => D.name === R));
1527
- O.length && P(`Discarded invalid param(s) "${O.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1518
+ if (O.NODE_ENV !== "production") {
1519
+ const S = Object.keys(a.params || {}).filter((R) => !d.keys.find((D) => D.name === R));
1520
+ S.length && P(`Discarded invalid param(s) "${S.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1528
1521
  }
1529
1522
  g = d.record.name, v = I(
1530
1523
  // paramsFromLocation is a new object
@@ -1532,21 +1525,21 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1532
1525
  f.params,
1533
1526
  // only keep params that exist in the resolved location
1534
1527
  // only keep optional params coming from a parent record
1535
- d.keys.filter((O) => !O.optional).concat(d.parent ? d.parent.keys.filter((O) => O.optional) : []).map((O) => O.name)
1528
+ d.keys.filter((S) => !S.optional).concat(d.parent ? d.parent.keys.filter((S) => S.optional) : []).map((S) => S.name)
1536
1529
  ),
1537
1530
  // discard any existing params in the current location that do not exist here
1538
1531
  // #1497 this ensures better active/exact matching
1539
- u.params && jt(u.params, d.keys.map((O) => O.name))
1532
+ a.params && jt(a.params, d.keys.map((S) => S.name))
1540
1533
  ), p = d.stringify(v);
1541
- } else if (u.path != null)
1542
- p = u.path, S.NODE_ENV !== "production" && !p.startsWith("/") && P(`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.`), d = n.find((O) => O.re.test(p)), d && (v = d.parse(p), g = d.record.name);
1534
+ } else if (a.path != null)
1535
+ p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") && P(`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.`), d = n.find((S) => S.re.test(p)), d && (v = d.parse(p), g = d.record.name);
1543
1536
  else {
1544
- if (d = f.name ? r.get(f.name) : n.find((O) => O.re.test(f.path)), !d)
1537
+ if (d = f.name ? r.get(f.name) : n.find((S) => S.re.test(f.path)), !d)
1545
1538
  throw ue(1, {
1546
- location: u,
1539
+ location: a,
1547
1540
  currentLocation: f
1548
1541
  });
1549
- g = d.record.name, v = I({}, f.params, u.params), p = d.stringify(v);
1542
+ g = d.record.name, v = I({}, f.params, a.params), p = d.stringify(v);
1550
1543
  }
1551
1544
  const y = [];
1552
1545
  let _ = d;
@@ -1560,16 +1553,16 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1560
1553
  meta: jo(y)
1561
1554
  };
1562
1555
  }
1563
- e.forEach((u) => s(u));
1564
- function a() {
1556
+ e.forEach((a) => s(a));
1557
+ function c() {
1565
1558
  n.length = 0, r.clear();
1566
1559
  }
1567
1560
  return {
1568
1561
  addRoute: s,
1569
1562
  resolve: h,
1570
1563
  removeRoute: i,
1571
- clearRoutes: a,
1572
- getRoutes: c,
1564
+ clearRoutes: c,
1565
+ getRoutes: u,
1573
1566
  getRecordMatcher: o
1574
1567
  };
1575
1568
  }
@@ -1658,7 +1651,7 @@ function Fo(e, t) {
1658
1651
  kn(e, t[s]) < 0 ? r = s : n = s + 1;
1659
1652
  }
1660
1653
  const o = Bo(e);
1661
- return o && (r = t.lastIndexOf(o, r - 1), S.NODE_ENV !== "production" && r < 0 && P(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1654
+ return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 && P(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1662
1655
  }
1663
1656
  function Bo(e) {
1664
1657
  let t = e;
@@ -1675,12 +1668,12 @@ function Lo(e) {
1675
1668
  return t;
1676
1669
  const r = (e[0] === "?" ? e.slice(1) : e).split("&");
1677
1670
  for (let o = 0; o < r.length; ++o) {
1678
- const s = r[o].replace(vn, " "), i = s.indexOf("="), c = ae(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ae(s.slice(i + 1));
1679
- if (c in t) {
1680
- let h = t[c];
1681
- K(h) || (h = t[c] = [h]), h.push(l);
1671
+ const s = r[o].replace(vn, " "), i = s.indexOf("="), u = ae(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ae(s.slice(i + 1));
1672
+ if (u in t) {
1673
+ let h = t[u];
1674
+ U(h) || (h = t[u] = [h]), h.push(l);
1682
1675
  } else
1683
- t[c] = l;
1676
+ t[u] = l;
1684
1677
  }
1685
1678
  return t;
1686
1679
  }
@@ -1692,7 +1685,7 @@ function Mt(e) {
1692
1685
  r !== void 0 && (t += (t.length ? "&" : "") + n);
1693
1686
  continue;
1694
1687
  }
1695
- (K(r) ? r.map((s) => s && ot(s)) : [r && ot(r)]).forEach((s) => {
1688
+ (U(r) ? r.map((s) => s && ot(s)) : [r && ot(r)]).forEach((s) => {
1696
1689
  s !== void 0 && (t += (t.length ? "&" : "") + n, s != null && (t += "=" + s));
1697
1690
  });
1698
1691
  }
@@ -1702,11 +1695,11 @@ function Wo(e) {
1702
1695
  const t = {};
1703
1696
  for (const n in e) {
1704
1697
  const r = e[n];
1705
- r !== void 0 && (t[n] = K(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
1698
+ r !== void 0 && (t[n] = U(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
1706
1699
  }
1707
1700
  return t;
1708
1701
  }
1709
- const Uo = Symbol(S.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(S.NODE_ENV !== "production" ? "router view depth" : ""), Be = Symbol(S.NODE_ENV !== "production" ? "router" : ""), gt = Symbol(S.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(S.NODE_ENV !== "production" ? "router view location" : "");
1702
+ const Uo = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Be = Symbol(O.NODE_ENV !== "production" ? "router" : ""), gt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
1710
1703
  function pe() {
1711
1704
  let e = [];
1712
1705
  function t(r) {
@@ -1727,30 +1720,30 @@ function pe() {
1727
1720
  function X(e, t, n, r, o, s = (i) => i()) {
1728
1721
  const i = r && // name is defined if record is because of the function overload
1729
1722
  (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
1730
- return () => new Promise((c, l) => {
1723
+ return () => new Promise((u, l) => {
1731
1724
  const h = (f) => {
1732
1725
  f === !1 ? l(ue(4, {
1733
1726
  from: n,
1734
1727
  to: t
1735
- })) : f instanceof Error ? l(f) : Ae(f) ? l(ue(2, {
1728
+ })) : f instanceof Error ? l(f) : Te(f) ? l(ue(2, {
1736
1729
  from: t,
1737
1730
  to: f
1738
1731
  })) : (i && // since enterCallbackArray is truthy, both record and name also are
1739
- r.enterCallbacks[o] === i && typeof f == "function" && i.push(f), c());
1740
- }, a = s(() => e.call(r && r.instances[o], t, n, S.NODE_ENV !== "production" ? Ko(h, t, n) : h));
1741
- let u = Promise.resolve(a);
1742
- if (e.length < 3 && (u = u.then(h)), S.NODE_ENV !== "production" && e.length > 2) {
1732
+ r.enterCallbacks[o] === i && typeof f == "function" && i.push(f), u());
1733
+ }, c = s(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? Ko(h, t, n) : h));
1734
+ let a = Promise.resolve(c);
1735
+ if (e.length < 3 && (a = a.then(h)), O.NODE_ENV !== "production" && e.length > 2) {
1743
1736
  const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
1744
1737
  ${e.toString()}
1745
1738
  . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
1746
- if (typeof a == "object" && "then" in a)
1747
- u = u.then((d) => h._called ? d : (P(f), Promise.reject(new Error("Invalid navigation guard"))));
1748
- else if (a !== void 0 && !h._called) {
1739
+ if (typeof c == "object" && "then" in c)
1740
+ a = a.then((d) => h._called ? d : (P(f), Promise.reject(new Error("Invalid navigation guard"))));
1741
+ else if (c !== void 0 && !h._called) {
1749
1742
  P(f), l(new Error("Invalid navigation guard"));
1750
1743
  return;
1751
1744
  }
1752
1745
  }
1753
- u.catch((f) => l(f));
1746
+ a.catch((f) => l(f));
1754
1747
  });
1755
1748
  }
1756
1749
  function Ko(e, t, n) {
@@ -1762,32 +1755,32 @@ function Ko(e, t, n) {
1762
1755
  function Qe(e, t, n, r, o = (s) => s()) {
1763
1756
  const s = [];
1764
1757
  for (const i of e) {
1765
- S.NODE_ENV !== "production" && !i.components && !i.children.length && P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
1766
- for (const c in i.components) {
1767
- let l = i.components[c];
1768
- if (S.NODE_ENV !== "production") {
1758
+ O.NODE_ENV !== "production" && !i.components && !i.children.length && P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
1759
+ for (const u in i.components) {
1760
+ let l = i.components[u];
1761
+ if (O.NODE_ENV !== "production") {
1769
1762
  if (!l || typeof l != "object" && typeof l != "function")
1770
- throw P(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
1763
+ throw P(`Component "${u}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
1771
1764
  if ("then" in l) {
1772
- P(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
1765
+ P(`Component "${u}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
1773
1766
  const h = l;
1774
1767
  l = () => h;
1775
1768
  } else l.__asyncLoader && // warn only once per component
1776
- !l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, P(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
1769
+ !l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, P(`Component "${u}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
1777
1770
  }
1778
- if (!(t !== "beforeRouteEnter" && !i.instances[c]))
1771
+ if (!(t !== "beforeRouteEnter" && !i.instances[u]))
1779
1772
  if (mn(l)) {
1780
- const a = (l.__vccOpts || l)[t];
1781
- a && s.push(X(a, n, r, i, c, o));
1773
+ const c = (l.__vccOpts || l)[t];
1774
+ c && s.push(X(c, n, r, i, u, o));
1782
1775
  } else {
1783
1776
  let h = l();
1784
- S.NODE_ENV !== "production" && !("catch" in h) && (P(`Component "${c}" in record with path "${i.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.`), h = Promise.resolve(h)), s.push(() => h.then((a) => {
1785
- if (!a)
1786
- throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);
1787
- const u = Gr(a) ? a.default : a;
1788
- i.mods[c] = a, i.components[c] = u;
1789
- const d = (u.__vccOpts || u)[t];
1790
- return d && X(d, n, r, i, c, o)();
1777
+ O.NODE_ENV !== "production" && !("catch" in h) && (P(`Component "${u}" in record with path "${i.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.`), h = Promise.resolve(h)), s.push(() => h.then((c) => {
1778
+ if (!c)
1779
+ throw new Error(`Couldn't resolve component "${u}" at "${i.path}"`);
1780
+ const a = Gr(c) ? c.default : c;
1781
+ i.mods[u] = c, i.components[u] = a;
1782
+ const d = (a.__vccOpts || a)[t];
1783
+ return d && X(d, n, r, i, u, o)();
1791
1784
  }));
1792
1785
  }
1793
1786
  }
@@ -1797,59 +1790,59 @@ function Qe(e, t, n, r, o = (s) => s()) {
1797
1790
  function Bt(e) {
1798
1791
  const t = ee(Be), n = ee(gt);
1799
1792
  let r = !1, o = null;
1800
- const s = U(() => {
1801
- const a = W(e.to);
1802
- return S.NODE_ENV !== "production" && (!r || a !== o) && (Ae(a) || (r ? P(`Invalid value for prop "to" in useLink()
1803
- - to:`, a, `
1793
+ const s = K(() => {
1794
+ const c = L(e.to);
1795
+ return O.NODE_ENV !== "production" && (!r || c !== o) && (Te(c) || (r ? P(`Invalid value for prop "to" in useLink()
1796
+ - to:`, c, `
1804
1797
  - previous to:`, o, `
1805
1798
  - props:`, e) : P(`Invalid value for prop "to" in useLink()
1806
- - to:`, a, `
1807
- - props:`, e)), o = a, r = !0), t.resolve(a);
1808
- }), i = U(() => {
1809
- const { matched: a } = s.value, { length: u } = a, f = a[u - 1], d = n.matched;
1799
+ - to:`, c, `
1800
+ - props:`, e)), o = c, r = !0), t.resolve(c);
1801
+ }), i = K(() => {
1802
+ const { matched: c } = s.value, { length: a } = c, f = c[a - 1], d = n.matched;
1810
1803
  if (!f || !d.length)
1811
1804
  return -1;
1812
1805
  const v = d.findIndex(te.bind(null, f));
1813
1806
  if (v > -1)
1814
1807
  return v;
1815
- const p = Lt(a[u - 2]);
1808
+ const p = Lt(c[a - 2]);
1816
1809
  return (
1817
1810
  // we are dealing with nested routes
1818
- u > 1 && // if the parent and matched route have the same path, this link is
1811
+ a > 1 && // if the parent and matched route have the same path, this link is
1819
1812
  // referring to the empty child. Or we currently are on a different
1820
1813
  // child of the same parent
1821
1814
  Lt(f) === p && // avoid comparing the child with its parent
1822
- d[d.length - 1].path !== p ? d.findIndex(te.bind(null, a[u - 2])) : v
1815
+ d[d.length - 1].path !== p ? d.findIndex(te.bind(null, c[a - 2])) : v
1823
1816
  );
1824
- }), c = U(() => i.value > -1 && Jo(n.params, s.value.params)), l = U(() => i.value > -1 && i.value === n.matched.length - 1 && _n(n.params, s.value.params));
1825
- function h(a = {}) {
1826
- if (zo(a)) {
1827
- const u = t[W(e.replace) ? "replace" : "push"](
1828
- W(e.to)
1817
+ }), u = K(() => i.value > -1 && Jo(n.params, s.value.params)), l = K(() => i.value > -1 && i.value === n.matched.length - 1 && _n(n.params, s.value.params));
1818
+ function h(c = {}) {
1819
+ if (zo(c)) {
1820
+ const a = t[L(e.replace) ? "replace" : "push"](
1821
+ L(e.to)
1829
1822
  // avoid uncaught errors are they are logged anyway
1830
1823
  ).catch(ve);
1831
- return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => u), u;
1824
+ return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => a), a;
1832
1825
  }
1833
1826
  return Promise.resolve();
1834
1827
  }
1835
- if (S.NODE_ENV !== "production" && z) {
1836
- const a = Jt();
1837
- if (a) {
1838
- const u = {
1828
+ if (O.NODE_ENV !== "production" && z) {
1829
+ const c = Jt();
1830
+ if (c) {
1831
+ const a = {
1839
1832
  route: s.value,
1840
- isActive: c.value,
1833
+ isActive: u.value,
1841
1834
  isExactActive: l.value,
1842
1835
  error: null
1843
1836
  };
1844
- a.__vrl_devtools = a.__vrl_devtools || [], a.__vrl_devtools.push(u), zt(() => {
1845
- u.route = s.value, u.isActive = c.value, u.isExactActive = l.value, u.error = Ae(W(e.to)) ? null : 'Invalid "to" value';
1837
+ c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(a), zt(() => {
1838
+ a.route = s.value, a.isActive = u.value, a.isExactActive = l.value, a.error = Te(L(e.to)) ? null : 'Invalid "to" value';
1846
1839
  }, { flush: "post" });
1847
1840
  }
1848
1841
  }
1849
1842
  return {
1850
1843
  route: s,
1851
- href: U(() => s.value.href),
1852
- isActive: c,
1844
+ href: K(() => s.value.href),
1845
+ isActive: u,
1853
1846
  isExactActive: l,
1854
1847
  navigate: h
1855
1848
  };
@@ -1877,7 +1870,7 @@ const qo = /* @__PURE__ */ F({
1877
1870
  },
1878
1871
  useLink: Bt,
1879
1872
  setup(e, { slots: t }) {
1880
- const n = zn(Bt(e)), { options: r } = ee(Be), o = U(() => ({
1873
+ const n = Jn(Bt(e)), { options: r } = ee(Be), o = K(() => ({
1881
1874
  [Wt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
1882
1875
  // [getLinkClass(
1883
1876
  // props.inactiveClass,
@@ -1915,7 +1908,7 @@ function Jo(e, t) {
1915
1908
  if (typeof r == "string") {
1916
1909
  if (r !== o)
1917
1910
  return !1;
1918
- } else if (!K(o) || o.length !== r.length || r.some((s, i) => s !== o[i]))
1911
+ } else if (!U(o) || o.length !== r.length || r.some((s, i) => s !== o[i]))
1919
1912
  return !1;
1920
1913
  }
1921
1914
  return !0;
@@ -1938,40 +1931,40 @@ const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
1938
1931
  // https://github.com/vuejs/router/issues/1315
1939
1932
  compatConfig: { MODE: 3 },
1940
1933
  setup(e, { attrs: t, slots: n }) {
1941
- S.NODE_ENV !== "production" && Xo();
1942
- const r = ee(ct), o = U(() => e.route || r.value), s = ee(Ft, 0), i = U(() => {
1943
- let h = W(s);
1944
- const { matched: a } = o.value;
1945
- let u;
1946
- for (; (u = a[h]) && !u.components; )
1934
+ O.NODE_ENV !== "production" && Xo();
1935
+ const r = ee(ct), o = K(() => e.route || r.value), s = ee(Ft, 0), i = K(() => {
1936
+ let h = L(s);
1937
+ const { matched: c } = o.value;
1938
+ let a;
1939
+ for (; (a = c[h]) && !a.components; )
1947
1940
  h++;
1948
1941
  return h;
1949
- }), c = U(() => o.value.matched[i.value]);
1950
- Ie(Ft, U(() => i.value + 1)), Ie(Uo, c), Ie(ct, o);
1942
+ }), u = K(() => o.value.matched[i.value]);
1943
+ Ne(Ft, K(() => i.value + 1)), Ne(Uo, u), Ne(ct, o);
1951
1944
  const l = Z();
1952
- return G(() => [l.value, c.value, e.name], ([h, a, u], [f, d, v]) => {
1953
- a && (a.instances[u] = h, d && d !== a && h && h === f && (a.leaveGuards.size || (a.leaveGuards = d.leaveGuards), a.updateGuards.size || (a.updateGuards = d.updateGuards))), h && a && // if there is no instance but to and from are the same this might be
1945
+ return G(() => [l.value, u.value, e.name], ([h, c, a], [f, d, v]) => {
1946
+ c && (c.instances[a] = h, d && d !== c && h && h === f && (c.leaveGuards.size || (c.leaveGuards = d.leaveGuards), c.updateGuards.size || (c.updateGuards = d.updateGuards))), h && c && // if there is no instance but to and from are the same this might be
1954
1947
  // the first visit
1955
- (!d || !te(a, d) || !f) && (a.enterCallbacks[u] || []).forEach((p) => p(h));
1948
+ (!d || !te(c, d) || !f) && (c.enterCallbacks[a] || []).forEach((p) => p(h));
1956
1949
  }, { flush: "post" }), () => {
1957
- const h = o.value, a = e.name, u = c.value, f = u && u.components[a];
1950
+ const h = o.value, c = e.name, a = u.value, f = a && a.components[c];
1958
1951
  if (!f)
1959
1952
  return Ut(n.default, { Component: f, route: h });
1960
- const d = u.props[a], v = d ? d === !0 ? h.params : typeof d == "function" ? d(h) : d : null, g = A(f, I({}, v, t, {
1953
+ const d = a.props[c], v = d ? d === !0 ? h.params : typeof d == "function" ? d(h) : d : null, g = A(f, I({}, v, t, {
1961
1954
  onVnodeUnmounted: (y) => {
1962
- y.component.isUnmounted && (u.instances[a] = null);
1955
+ y.component.isUnmounted && (a.instances[c] = null);
1963
1956
  },
1964
1957
  ref: l
1965
1958
  }));
1966
- if (S.NODE_ENV !== "production" && z && g.ref) {
1959
+ if (O.NODE_ENV !== "production" && z && g.ref) {
1967
1960
  const y = {
1968
1961
  depth: i.value,
1969
- name: u.name,
1970
- path: u.path,
1971
- meta: u.meta
1962
+ name: a.name,
1963
+ path: a.path,
1964
+ meta: a.meta
1972
1965
  };
1973
- (K(g.ref) ? g.ref.map((O) => O.i) : [g.ref.i]).forEach((O) => {
1974
- O.__vrv_devtools = y;
1966
+ (U(g.ref) ? g.ref.map((S) => S.i) : [g.ref.i]).forEach((S) => {
1967
+ S.__vrv_devtools = y;
1975
1968
  });
1976
1969
  }
1977
1970
  return (
@@ -2018,7 +2011,7 @@ function me(e, t) {
2018
2011
  }
2019
2012
  };
2020
2013
  }
2021
- function Ne(e) {
2014
+ function Ve(e) {
2022
2015
  return {
2023
2016
  _custom: {
2024
2017
  display: e
@@ -2040,26 +2033,26 @@ function es(e, t, n) {
2040
2033
  componentStateTypes: ["Routing"],
2041
2034
  app: e
2042
2035
  }, (o) => {
2043
- typeof o.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.on.inspectComponent((a, u) => {
2044
- a.instanceData && a.instanceData.state.push({
2036
+ typeof o.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.on.inspectComponent((c, a) => {
2037
+ c.instanceData && c.instanceData.state.push({
2045
2038
  type: "Routing",
2046
2039
  key: "$route",
2047
2040
  editable: !1,
2048
2041
  value: me(t.currentRoute.value, "Current Route")
2049
2042
  });
2050
- }), o.on.visitComponentTree(({ treeNode: a, componentInstance: u }) => {
2051
- if (u.__vrv_devtools) {
2052
- const f = u.__vrv_devtools;
2053
- a.tags.push({
2043
+ }), o.on.visitComponentTree(({ treeNode: c, componentInstance: a }) => {
2044
+ if (a.__vrv_devtools) {
2045
+ const f = a.__vrv_devtools;
2046
+ c.tags.push({
2054
2047
  label: (f.name ? `${f.name.toString()}: ` : "") + f.path,
2055
2048
  textColor: 0,
2056
2049
  tooltip: "This component is rendered by &lt;router-view&gt;",
2057
2050
  backgroundColor: Nn
2058
2051
  });
2059
2052
  }
2060
- K(u.__vrl_devtools) && (u.__devtoolsApi = o, u.__vrl_devtools.forEach((f) => {
2053
+ U(a.__vrl_devtools) && (a.__devtoolsApi = o, a.__vrl_devtools.forEach((f) => {
2061
2054
  let d = f.route.path, v = An, p = "", g = 0;
2062
- f.error ? (d = f.error, v = ss, g = is) : f.isExactActive ? (v = Tn, p = "This is exactly active") : f.isActive && (v = In, p = "This link is active"), a.tags.push({
2055
+ f.error ? (d = f.error, v = ss, g = is) : f.isExactActive ? (v = Tn, p = "This is exactly active") : f.isActive && (v = In, p = "This link is active"), c.tags.push({
2063
2056
  label: d,
2064
2057
  textColor: g,
2065
2058
  tooltip: p,
@@ -2067,48 +2060,48 @@ function es(e, t, n) {
2067
2060
  });
2068
2061
  }));
2069
2062
  }), G(t.currentRoute, () => {
2070
- l(), o.notifyComponentUpdate(), o.sendInspectorTree(c), o.sendInspectorState(c);
2063
+ l(), o.notifyComponentUpdate(), o.sendInspectorTree(u), o.sendInspectorState(u);
2071
2064
  });
2072
2065
  const s = "router:navigations:" + r;
2073
2066
  o.addTimelineLayer({
2074
2067
  id: s,
2075
2068
  label: `Router${r ? " " + r : ""} Navigations`,
2076
2069
  color: 4237508
2077
- }), t.onError((a, u) => {
2070
+ }), t.onError((c, a) => {
2078
2071
  o.addTimelineEvent({
2079
2072
  layerId: s,
2080
2073
  event: {
2081
2074
  title: "Error during Navigation",
2082
- subtitle: u.fullPath,
2075
+ subtitle: a.fullPath,
2083
2076
  logType: "error",
2084
2077
  time: o.now(),
2085
- data: { error: a },
2086
- groupId: u.meta.__navigationId
2078
+ data: { error: c },
2079
+ groupId: a.meta.__navigationId
2087
2080
  }
2088
2081
  });
2089
2082
  });
2090
2083
  let i = 0;
2091
- t.beforeEach((a, u) => {
2084
+ t.beforeEach((c, a) => {
2092
2085
  const f = {
2093
- guard: Ne("beforeEach"),
2094
- from: me(u, "Current Location during this navigation"),
2095
- to: me(a, "Target location")
2086
+ guard: Ve("beforeEach"),
2087
+ from: me(a, "Current Location during this navigation"),
2088
+ to: me(c, "Target location")
2096
2089
  };
2097
- Object.defineProperty(a.meta, "__navigationId", {
2090
+ Object.defineProperty(c.meta, "__navigationId", {
2098
2091
  value: i++
2099
2092
  }), o.addTimelineEvent({
2100
2093
  layerId: s,
2101
2094
  event: {
2102
2095
  time: o.now(),
2103
2096
  title: "Start of navigation",
2104
- subtitle: a.fullPath,
2097
+ subtitle: c.fullPath,
2105
2098
  data: f,
2106
- groupId: a.meta.__navigationId
2099
+ groupId: c.meta.__navigationId
2107
2100
  }
2108
2101
  });
2109
- }), t.afterEach((a, u, f) => {
2102
+ }), t.afterEach((c, a, f) => {
2110
2103
  const d = {
2111
- guard: Ne("afterEach")
2104
+ guard: Ve("afterEach")
2112
2105
  };
2113
2106
  f ? (d.failure = {
2114
2107
  _custom: {
@@ -2118,21 +2111,21 @@ function es(e, t, n) {
2118
2111
  tooltip: "Navigation Failure",
2119
2112
  value: f
2120
2113
  }
2121
- }, d.status = Ne("❌")) : d.status = Ne("✅"), d.from = me(u, "Current Location during this navigation"), d.to = me(a, "Target location"), o.addTimelineEvent({
2114
+ }, d.status = Ve("❌")) : d.status = Ve("✅"), d.from = me(a, "Current Location during this navigation"), d.to = me(c, "Target location"), o.addTimelineEvent({
2122
2115
  layerId: s,
2123
2116
  event: {
2124
2117
  title: "End of navigation",
2125
- subtitle: a.fullPath,
2118
+ subtitle: c.fullPath,
2126
2119
  time: o.now(),
2127
2120
  data: d,
2128
2121
  logType: f ? "warning" : "default",
2129
- groupId: a.meta.__navigationId
2122
+ groupId: c.meta.__navigationId
2130
2123
  }
2131
2124
  });
2132
2125
  });
2133
- const c = "router-inspector:" + r;
2126
+ const u = "router-inspector:" + r;
2134
2127
  o.addInspector({
2135
- id: c,
2128
+ id: u,
2136
2129
  label: "Routes" + (r ? " " + r : ""),
2137
2130
  icon: "book",
2138
2131
  treeFilterPlaceholder: "Search routes"
@@ -2140,26 +2133,26 @@ function es(e, t, n) {
2140
2133
  function l() {
2141
2134
  if (!h)
2142
2135
  return;
2143
- const a = h;
2144
- let u = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
2136
+ const c = h;
2137
+ let a = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
2145
2138
  // therefore we still need to include them
2146
2139
  !f.parent.record.components);
2147
- u.forEach(Cn), a.filter && (u = u.filter((f) => (
2140
+ a.forEach(Cn), c.filter && (a = a.filter((f) => (
2148
2141
  // save matches state based on the payload
2149
- ut(f, a.filter.toLowerCase())
2150
- ))), u.forEach((f) => jn(f, t.currentRoute.value)), a.rootNodes = u.map($n);
2142
+ ut(f, c.filter.toLowerCase())
2143
+ ))), a.forEach((f) => jn(f, t.currentRoute.value)), c.rootNodes = a.map($n);
2151
2144
  }
2152
2145
  let h;
2153
- o.on.getInspectorTree((a) => {
2154
- h = a, a.app === e && a.inspectorId === c && l();
2155
- }), o.on.getInspectorState((a) => {
2156
- if (a.app === e && a.inspectorId === c) {
2157
- const f = n.getRoutes().find((d) => d.record.__vd_id === a.nodeId);
2158
- f && (a.state = {
2146
+ o.on.getInspectorTree((c) => {
2147
+ h = c, c.app === e && c.inspectorId === u && l();
2148
+ }), o.on.getInspectorState((c) => {
2149
+ if (c.app === e && c.inspectorId === u) {
2150
+ const f = n.getRoutes().find((d) => d.record.__vd_id === c.nodeId);
2151
+ f && (c.state = {
2159
2152
  options: ns(f)
2160
2153
  });
2161
2154
  }
2162
- }), o.sendInspectorTree(c), o.sendInspectorState(c);
2155
+ }), o.sendInspectorTree(u), o.sendInspectorState(u);
2163
2156
  });
2164
2157
  }
2165
2158
  function ts(e) {
@@ -2273,22 +2266,22 @@ function us(e, t) {
2273
2266
  }
2274
2267
  function ls(e) {
2275
2268
  const t = Ao(e.routes, e), n = e.parseQuery || Lo, r = e.stringifyQuery || Mt, o = e.history;
2276
- if (S.NODE_ENV !== "production" && !o)
2269
+ if (O.NODE_ENV !== "production" && !o)
2277
2270
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
2278
- const s = pe(), i = pe(), c = pe(), l = J(Y);
2271
+ const s = pe(), i = pe(), u = pe(), l = J(Y);
2279
2272
  let h = Y;
2280
2273
  z && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2281
- const a = He.bind(null, (m) => "" + m), u = He.bind(null, oo), f = (
2274
+ const c = He.bind(null, (m) => "" + m), a = He.bind(null, oo), f = (
2282
2275
  // @ts-expect-error: intentionally avoid the type check
2283
2276
  He.bind(null, ae)
2284
2277
  );
2285
2278
  function d(m, E) {
2286
2279
  let w, b;
2287
- return Pn(m) ? (w = t.getRecordMatcher(m), S.NODE_ENV !== "production" && !w && P(`Parent route "${String(m)}" not found when adding child route`, E), b = E) : b = m, t.addRoute(b, w);
2280
+ return Pn(m) ? (w = t.getRecordMatcher(m), O.NODE_ENV !== "production" && !w && P(`Parent route "${String(m)}" not found when adding child route`, E), b = E) : b = m, t.addRoute(b, w);
2288
2281
  }
2289
2282
  function v(m) {
2290
2283
  const E = t.getRecordMatcher(m);
2291
- E ? t.removeRoute(E) : S.NODE_ENV !== "production" && P(`Cannot remove non-existent route "${String(m)}"`);
2284
+ E ? t.removeRoute(E) : O.NODE_ENV !== "production" && P(`Cannot remove non-existent route "${String(m)}"`);
2292
2285
  }
2293
2286
  function p() {
2294
2287
  return t.getRoutes().map((m) => m.record);
@@ -2299,19 +2292,19 @@ function ls(e) {
2299
2292
  function y(m, E) {
2300
2293
  if (E = I({}, E || l.value), typeof m == "string") {
2301
2294
  const k = ze(n, m, E.path), $ = t.resolve({ path: k.path }, E), re = o.createHref(k.fullPath);
2302
- return S.NODE_ENV !== "production" && (re.startsWith("//") ? P(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || P(`No match found for location with path "${m}"`)), I(k, $, {
2295
+ return O.NODE_ENV !== "production" && (re.startsWith("//") ? P(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || P(`No match found for location with path "${m}"`)), I(k, $, {
2303
2296
  params: f($.params),
2304
2297
  hash: ae(k.hash),
2305
2298
  redirectedFrom: void 0,
2306
2299
  href: re
2307
2300
  });
2308
2301
  }
2309
- if (S.NODE_ENV !== "production" && !Ae(m))
2302
+ if (O.NODE_ENV !== "production" && !Te(m))
2310
2303
  return P(`router.resolve() was passed an invalid location. This will fail in production.
2311
2304
  - Location:`, m), y({});
2312
2305
  let w;
2313
2306
  if (m.path != null)
2314
- S.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
2307
+ O.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
2315
2308
  Object.keys(m.params).length && P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
2316
2309
  path: ze(n, m.path, E.path).path
2317
2310
  });
@@ -2320,16 +2313,16 @@ function ls(e) {
2320
2313
  for (const $ in k)
2321
2314
  k[$] == null && delete k[$];
2322
2315
  w = I({}, m, {
2323
- params: u(k)
2324
- }), E.params = u(E.params);
2316
+ params: a(k)
2317
+ }), E.params = a(E.params);
2325
2318
  }
2326
2319
  const b = t.resolve(w, E), T = m.hash || "";
2327
- S.NODE_ENV !== "production" && T && !T.startsWith("#") && P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), b.params = a(f(b.params));
2320
+ O.NODE_ENV !== "production" && T && !T.startsWith("#") && P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), b.params = c(f(b.params));
2328
2321
  const j = ao(r, I({}, m, {
2329
2322
  hash: to(T),
2330
2323
  path: b.path
2331
2324
  })), V = o.createHref(j);
2332
- return S.NODE_ENV !== "production" && (V.startsWith("//") ? P(`Location "${m}" resolved to "${V}". A resolved location cannot start with multiple slashes.`) : b.matched.length || P(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
2325
+ return O.NODE_ENV !== "production" && (V.startsWith("//") ? P(`Location "${m}" resolved to "${V}". A resolved location cannot start with multiple slashes.`) : b.matched.length || P(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
2333
2326
  fullPath: j,
2334
2327
  // keep the hash encoded so fullPath is effectively path + encodedQuery +
2335
2328
  // hash
@@ -2350,7 +2343,7 @@ function ls(e) {
2350
2343
  function _(m) {
2351
2344
  return typeof m == "string" ? ze(n, m, l.value.path) : I({}, m);
2352
2345
  }
2353
- function O(m, E) {
2346
+ function S(m, E) {
2354
2347
  if (h !== m)
2355
2348
  return ue(8, {
2356
2349
  from: E,
@@ -2371,7 +2364,7 @@ function ls(e) {
2371
2364
  if (typeof b == "string" && (b = b.includes("?") || b.includes("#") ? b = _(b) : (
2372
2365
  // force empty params
2373
2366
  { path: b }
2374
- ), b.params = {}), S.NODE_ENV !== "production" && b.path == null && !("name" in b))
2367
+ ), b.params = {}), O.NODE_ENV !== "production" && b.path == null && !("name" in b))
2375
2368
  throw P(`Invalid redirect found:
2376
2369
  ${JSON.stringify(b, null, 2)}
2377
2370
  when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
@@ -2424,7 +2417,7 @@ ${JSON.stringify(b, null, 2)}
2424
2417
  2
2425
2418
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2426
2419
  ))
2427
- return S.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2420
+ return O.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2428
2421
  kt(r, y(M.to), $) && // and we have done it a couple of times
2429
2422
  E && // @ts-expect-error: added only in dev
2430
2423
  (E._count = E._count ? (
@@ -2449,11 +2442,11 @@ ${JSON.stringify(b, null, 2)}
2449
2442
  });
2450
2443
  }
2451
2444
  function Le(m, E) {
2452
- const w = O(m, E);
2445
+ const w = S(m, E);
2453
2446
  return w ? Promise.reject(w) : Promise.resolve();
2454
2447
  }
2455
2448
  function le(m) {
2456
- const E = ke.values().next().value;
2449
+ const E = Pe.values().next().value;
2457
2450
  return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
2458
2451
  }
2459
2452
  function vt(m, E) {
@@ -2481,7 +2474,7 @@ ${JSON.stringify(b, null, 2)}
2481
2474
  w = [];
2482
2475
  for (const k of j)
2483
2476
  if (k.beforeEnter)
2484
- if (K(k.beforeEnter))
2477
+ if (U(k.beforeEnter))
2485
2478
  for (const $ of k.beforeEnter)
2486
2479
  w.push(X($, m, E));
2487
2480
  else
@@ -2499,10 +2492,10 @@ ${JSON.stringify(b, null, 2)}
2499
2492
  ) ? k : Promise.reject(k));
2500
2493
  }
2501
2494
  function yt(m, E, w) {
2502
- c.list().forEach((b) => le(() => b(m, E, w)));
2495
+ u.list().forEach((b) => le(() => b(m, E, w)));
2503
2496
  }
2504
2497
  function wt(m, E, w, b, T) {
2505
- const j = O(m, E);
2498
+ const j = S(m, E);
2506
2499
  if (j)
2507
2500
  return j;
2508
2501
  const V = E === Y, k = z ? history.state : {};
@@ -2511,9 +2504,9 @@ ${JSON.stringify(b, null, 2)}
2511
2504
  }, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, V), Ke();
2512
2505
  }
2513
2506
  let fe;
2514
- function Bn() {
2507
+ function Ln() {
2515
2508
  fe || (fe = o.listen((m, E, w) => {
2516
- if (!Ot.listening)
2509
+ if (!bt.listening)
2517
2510
  return;
2518
2511
  const b = y(m), T = C(b);
2519
2512
  if (T) {
@@ -2562,30 +2555,30 @@ ${JSON.stringify(b, null, 2)}
2562
2555
  }).catch(ve);
2563
2556
  }));
2564
2557
  }
2565
- let We = pe(), Et = pe(), Pe;
2558
+ let We = pe(), Et = pe(), Re;
2566
2559
  function Ue(m, E, w) {
2567
2560
  Ke(m);
2568
2561
  const b = Et.list();
2569
- return b.length ? b.forEach((T) => T(m, E, w)) : (S.NODE_ENV !== "production" && P("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2562
+ return b.length ? b.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" && P("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2570
2563
  }
2571
- function Ln() {
2572
- return Pe && l.value !== Y ? Promise.resolve() : new Promise((m, E) => {
2564
+ function Wn() {
2565
+ return Re && l.value !== Y ? Promise.resolve() : new Promise((m, E) => {
2573
2566
  We.add([m, E]);
2574
2567
  });
2575
2568
  }
2576
2569
  function Ke(m) {
2577
- return Pe || (Pe = !m, Bn(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
2570
+ return Re || (Re = !m, Ln(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
2578
2571
  }
2579
2572
  function _t(m, E, w, b) {
2580
2573
  const { scrollBehavior: T } = e;
2581
2574
  if (!z || !T)
2582
2575
  return Promise.resolve();
2583
2576
  const j = !w && mo(Nt(m.fullPath, 0)) || (b || !w) && history.state && history.state.scroll || null;
2584
- return Te().then(() => T(m, E, j)).then((V) => V && ho(V)).catch((V) => Ue(V, m, E));
2577
+ return Ie().then(() => T(m, E, j)).then((V) => V && ho(V)).catch((V) => Ue(V, m, E));
2585
2578
  }
2586
2579
  const Ge = (m) => o.go(m);
2587
2580
  let qe;
2588
- const ke = /* @__PURE__ */ new Set(), Ot = {
2581
+ const Pe = /* @__PURE__ */ new Set(), bt = {
2589
2582
  currentRoute: l,
2590
2583
  listening: !0,
2591
2584
  addRoute: d,
@@ -2602,18 +2595,18 @@ ${JSON.stringify(b, null, 2)}
2602
2595
  forward: () => Ge(1),
2603
2596
  beforeEach: s.add,
2604
2597
  beforeResolve: i.add,
2605
- afterEach: c.add,
2598
+ afterEach: u.add,
2606
2599
  onError: Et.add,
2607
- isReady: Ln,
2600
+ isReady: Wn,
2608
2601
  install(m) {
2609
2602
  const E = this;
2610
2603
  m.component("RouterLink", Ho), m.component("RouterView", Yo), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
2611
2604
  enumerable: !0,
2612
- get: () => W(l)
2605
+ get: () => L(l)
2613
2606
  }), z && // used for the initial navigation client side to avoid pushing
2614
2607
  // multiple times when the router is used in multiple apps
2615
2608
  !qe && l.value === Y && (qe = !0, R(o.location).catch((T) => {
2616
- S.NODE_ENV !== "production" && P("Unexpected error when starting the router:", T);
2609
+ O.NODE_ENV !== "production" && P("Unexpected error when starting the router:", T);
2617
2610
  }));
2618
2611
  const w = {};
2619
2612
  for (const T in Y)
@@ -2621,23 +2614,23 @@ ${JSON.stringify(b, null, 2)}
2621
2614
  get: () => l.value[T],
2622
2615
  enumerable: !0
2623
2616
  });
2624
- m.provide(Be, E), m.provide(gt, Hn(w)), m.provide(ct, l);
2617
+ m.provide(Be, E), m.provide(gt, zn(w)), m.provide(ct, l);
2625
2618
  const b = m.unmount;
2626
- ke.add(m), m.unmount = function() {
2627
- ke.delete(m), ke.size < 1 && (h = Y, fe && fe(), fe = null, l.value = Y, qe = !1, Pe = !1), b();
2628
- }, S.NODE_ENV !== "production" && z && es(m, E, t);
2619
+ Pe.add(m), m.unmount = function() {
2620
+ Pe.delete(m), Pe.size < 1 && (h = Y, fe && fe(), fe = null, l.value = Y, qe = !1, Re = !1), b();
2621
+ }, O.NODE_ENV !== "production" && z && es(m, E, t);
2629
2622
  }
2630
2623
  };
2631
2624
  function se(m) {
2632
2625
  return m.reduce((E, w) => E.then(() => le(w)), Promise.resolve());
2633
2626
  }
2634
- return Ot;
2627
+ return bt;
2635
2628
  }
2636
2629
  function fs(e, t) {
2637
2630
  const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
2638
2631
  for (let i = 0; i < s; i++) {
2639
- const c = t.matched[i];
2640
- c && (e.matched.find((h) => te(h, c)) ? r.push(c) : n.push(c));
2632
+ const u = t.matched[i];
2633
+ u && (e.matched.find((h) => te(h, u)) ? r.push(u) : n.push(u));
2641
2634
  const l = e.matched[i];
2642
2635
  l && (t.matched.find((h) => te(h, l)) || o.push(l));
2643
2636
  }
@@ -2649,21 +2642,31 @@ function hs() {
2649
2642
  function ds(e) {
2650
2643
  return ee(gt);
2651
2644
  }
2645
+ const xn = /* @__PURE__ */ new Map();
2646
+ function ps(e) {
2647
+ var t;
2648
+ (t = e.jsFn) == null || t.forEach((n) => {
2649
+ xn.set(n.id, W(n.code));
2650
+ });
2651
+ }
2652
+ function ms(e) {
2653
+ return xn.get(e);
2654
+ }
2652
2655
  function ne(e) {
2653
- let t = sn(), n = Rr(), r = Tr(e), o = un(), s = hs(), i = ds();
2654
- function c(p) {
2656
+ let t = sn(), n = Pr(), r = Ar(e), o = un(), s = hs(), i = ds();
2657
+ function u(p) {
2655
2658
  p.scopeSnapshot && (t = p.scopeSnapshot), p.slotSnapshot && (n = p.slotSnapshot), p.vforSnapshot && (r = p.vforSnapshot), p.elementRefSnapshot && (o = p.elementRefSnapshot), p.routerSnapshot && (s = p.routerSnapshot);
2656
2659
  }
2657
2660
  function l(p) {
2658
2661
  if (N.isVar(p))
2659
2662
  return q(h(p));
2660
2663
  if (N.isVForItem(p))
2661
- return $r(p.fid) ? r.getVForIndex(p.fid) : q(h(p));
2664
+ return jr(p.fid) ? r.getVForIndex(p.fid) : q(h(p));
2662
2665
  if (N.isVForIndex(p))
2663
2666
  return r.getVForIndex(p.fid);
2664
- if (N.isJs(p)) {
2665
- const { code: g, bind: y } = p, _ = Oe(y, (O) => a(O));
2666
- return xr(g, _)();
2667
+ if (N.isJsFn(p)) {
2668
+ const { id: g } = p;
2669
+ return ms(g);
2667
2670
  }
2668
2671
  if (N.isSlotProp(p))
2669
2672
  return n.getPropsValue(p);
@@ -2673,14 +2676,14 @@ function ne(e) {
2673
2676
  }
2674
2677
  function h(p) {
2675
2678
  if (N.isVar(p)) {
2676
- const g = t.getVueRef(p) || yr(p);
2677
- return St(g, {
2679
+ const g = t.getVueRef(p) || wr(p);
2680
+ return Ot(g, {
2678
2681
  paths: p.path,
2679
2682
  getBindableValueFn: l
2680
2683
  });
2681
2684
  }
2682
2685
  if (N.isVForItem(p))
2683
- return Ar({
2686
+ return $r({
2684
2687
  binding: p,
2685
2688
  snapshot: v
2686
2689
  });
@@ -2688,25 +2691,23 @@ function ne(e) {
2688
2691
  return () => l(p);
2689
2692
  if (N.isRouterParams(p)) {
2690
2693
  const { prop: g = "params" } = p;
2691
- return St(() => i[g], {
2694
+ return Ot(() => i[g], {
2692
2695
  paths: p.path,
2693
2696
  getBindableValueFn: l
2694
2697
  });
2695
2698
  }
2696
2699
  throw new Error(`Invalid binding: ${p}`);
2697
2700
  }
2698
- function a(p) {
2701
+ function c(p) {
2699
2702
  if (N.isVar(p) || N.isVForItem(p))
2700
2703
  return h(p);
2701
- if (N.isVForIndex(p))
2704
+ if (N.isVForIndex(p) || N.isJsFn(p))
2702
2705
  return l(p);
2703
- if (N.isJs(p))
2704
- return null;
2705
2706
  if (N.isRouterParams(p))
2706
2707
  return h(p);
2707
2708
  throw new Error(`Invalid binding: ${p}`);
2708
2709
  }
2709
- function u(p) {
2710
+ function a(p) {
2710
2711
  if (N.isVar(p))
2711
2712
  return {
2712
2713
  sid: p.sid,
@@ -2723,8 +2724,8 @@ function ne(e) {
2723
2724
  fid: p.fid,
2724
2725
  value: null
2725
2726
  };
2726
- if (N.isJs(p))
2727
- return null;
2727
+ if (N.isJsFn(p))
2728
+ return l(p);
2728
2729
  }
2729
2730
  function f(p) {
2730
2731
  var g, y;
@@ -2742,30 +2743,25 @@ function ne(e) {
2742
2743
  return;
2743
2744
  g = g;
2744
2745
  const y = p.values, _ = p.skips || new Array(g.length).fill(0);
2745
- g.forEach((O, R) => {
2746
+ g.forEach((S, R) => {
2746
2747
  if (_[R] === 1)
2747
2748
  return;
2748
- if (N.isVar(O)) {
2749
- const C = h(O);
2749
+ if (N.isVar(S)) {
2750
+ const C = h(S);
2750
2751
  C.value = y[R];
2751
2752
  return;
2752
2753
  }
2753
- if (N.isRouterAction(O)) {
2754
+ if (N.isRouterAction(S)) {
2754
2755
  const C = y[R], x = s[C.fn];
2755
2756
  x(...C.args);
2756
2757
  return;
2757
2758
  }
2758
- if (N.isElementRef(O)) {
2759
- const C = o.getRef(O).value, x = y[R], { method: Le, args: le = [] } = x;
2759
+ if (N.isElementRef(S)) {
2760
+ const C = o.getRef(S).value, x = y[R], { method: Le, args: le = [] } = x;
2760
2761
  C[Le](...le);
2761
2762
  return;
2762
2763
  }
2763
- if (N.isJsOutput(O)) {
2764
- const C = y[R], x = L(C);
2765
- typeof x == "function" && x();
2766
- return;
2767
- }
2768
- const D = h(O);
2764
+ const D = h(S);
2769
2765
  D.value = y[R];
2770
2766
  });
2771
2767
  }
@@ -2773,19 +2769,19 @@ function ne(e) {
2773
2769
  getVForIndex: r.getVForIndex,
2774
2770
  getObjectToValue: l,
2775
2771
  getVueRefObject: h,
2776
- getVueRefObjectOrValue: a,
2777
- getBindingServerInfo: u,
2772
+ getVueRefObjectOrValue: c,
2773
+ getBindingServerInfo: a,
2778
2774
  updateRefFromServer: f,
2779
2775
  updateOutputsRefFromServer: d,
2780
- replaceSnapshot: c
2776
+ replaceSnapshot: u
2781
2777
  };
2782
2778
  return v;
2783
2779
  }
2784
- class ps {
2780
+ class gs {
2785
2781
  async eventSend(t, n) {
2786
- const { fType: r, hKey: o, key: s } = t, i = Xe().webServerInfo, c = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
2782
+ const { fType: r, hKey: o, key: s } = t, i = Xe().webServerInfo, u = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
2787
2783
  let h = {};
2788
- const a = await fetch(l, {
2784
+ const c = await fetch(l, {
2789
2785
  method: "POST",
2790
2786
  headers: {
2791
2787
  "Content-Type": "application/json"
@@ -2793,19 +2789,19 @@ class ps {
2793
2789
  body: JSON.stringify({
2794
2790
  bind: n,
2795
2791
  hKey: o,
2796
- ...c,
2792
+ ...u,
2797
2793
  page: ye(),
2798
2794
  ...h
2799
2795
  })
2800
2796
  });
2801
- if (!a.ok)
2802
- throw new Error(`HTTP error! status: ${a.status}`);
2803
- return await a.json();
2797
+ if (!c.ok)
2798
+ throw new Error(`HTTP error! status: ${c.status}`);
2799
+ return await c.json();
2804
2800
  }
2805
2801
  async watchSend(t) {
2806
- const { outputs: n, fType: r, key: o } = t.watchConfig, s = Xe().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, c = t.getServerInputs(), l = {
2802
+ const { outputs: n, fType: r, key: o } = t.watchConfig, s = Xe().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, u = t.getServerInputs(), l = {
2807
2803
  key: o,
2808
- input: c,
2804
+ input: u,
2809
2805
  page: ye()
2810
2806
  };
2811
2807
  return await (await fetch(i, {
@@ -2817,17 +2813,17 @@ class ps {
2817
2813
  })).json();
2818
2814
  }
2819
2815
  }
2820
- class ms {
2816
+ class vs {
2821
2817
  async eventSend(t, n) {
2822
2818
  const { fType: r, hKey: o, key: s } = t, i = s !== void 0 ? { key: s } : {};
2823
- let c = {};
2819
+ let u = {};
2824
2820
  const l = {
2825
2821
  bind: n,
2826
2822
  fType: r,
2827
2823
  hKey: o,
2828
2824
  ...i,
2829
2825
  page: ye(),
2830
- ...c
2826
+ ...u
2831
2827
  };
2832
2828
  return await window.pywebview.api.event_call(l);
2833
2829
  }
@@ -2842,20 +2838,20 @@ class ms {
2842
2838
  }
2843
2839
  }
2844
2840
  let lt;
2845
- function gs(e) {
2841
+ function ys(e) {
2846
2842
  switch (e.mode) {
2847
2843
  case "web":
2848
- lt = new ps();
2844
+ lt = new gs();
2849
2845
  break;
2850
2846
  case "webview":
2851
- lt = new ms();
2847
+ lt = new vs();
2852
2848
  break;
2853
2849
  }
2854
2850
  }
2855
- function xn() {
2851
+ function Dn() {
2856
2852
  return lt;
2857
2853
  }
2858
- function vs(e) {
2854
+ function ws(e) {
2859
2855
  const t = {
2860
2856
  type: "var",
2861
2857
  sid: e.sid,
@@ -2867,10 +2863,10 @@ function vs(e) {
2867
2863
  outputs: [t, ...e.outputs || []]
2868
2864
  };
2869
2865
  }
2870
- function ys(e, t, n) {
2871
- return new ws(e, t, n);
2866
+ function Es(e, t, n) {
2867
+ return new _s(e, t, n);
2872
2868
  }
2873
- class ws {
2869
+ class _s {
2874
2870
  constructor(t, n, r) {
2875
2871
  B(this, "taskQueue", []);
2876
2872
  B(this, "id2TaskMap", /* @__PURE__ */ new Map());
@@ -2878,41 +2874,41 @@ class ws {
2878
2874
  this.snapshots = r;
2879
2875
  const o = [], s = (i) => {
2880
2876
  var l;
2881
- const c = new Es(i, r);
2882
- return this.id2TaskMap.set(c.id, c), (l = i.inputs) == null || l.forEach((h, a) => {
2877
+ const u = new bs(i, r);
2878
+ return this.id2TaskMap.set(u.id, u), (l = i.inputs) == null || l.forEach((h, c) => {
2883
2879
  var f, d;
2884
- if (((f = i.data) == null ? void 0 : f[a]) === 0 && ((d = i.slient) == null ? void 0 : d[a]) === 0) {
2880
+ if (((f = i.data) == null ? void 0 : f[c]) === 0 && ((d = i.slient) == null ? void 0 : d[c]) === 0) {
2885
2881
  const v = `${h.sid}-${h.id}`;
2886
- this.input2TaskIdMap.getOrDefault(v).push(c.id);
2882
+ this.input2TaskIdMap.getOrDefault(v).push(u.id);
2887
2883
  }
2888
- }), c;
2884
+ }), u;
2889
2885
  };
2890
2886
  t == null || t.forEach((i) => {
2891
- const c = s(i);
2892
- o.push(c);
2887
+ const u = s(i);
2888
+ o.push(u);
2893
2889
  }), n == null || n.forEach((i) => {
2894
- const c = s(
2895
- vs(i)
2890
+ const u = s(
2891
+ ws(i)
2896
2892
  );
2897
- o.push(c);
2893
+ o.push(u);
2898
2894
  }), o.forEach((i) => {
2899
2895
  const {
2900
- deep: c = !0,
2896
+ deep: u = !0,
2901
2897
  once: l,
2902
2898
  flush: h,
2903
- immediate: a = !0
2904
- } = i.watchConfig, u = {
2905
- immediate: a,
2906
- deep: c,
2899
+ immediate: c = !0
2900
+ } = i.watchConfig, a = {
2901
+ immediate: c,
2902
+ deep: u,
2907
2903
  once: l,
2908
2904
  flush: h
2909
2905
  }, f = this._getWatchTargets(i);
2910
2906
  G(
2911
2907
  f,
2912
2908
  (d) => {
2913
- d.some(Ee) || (i.modify = !0, this.taskQueue.push(new _s(i)), this._scheduleNextTick());
2909
+ d.some(Ee) || (i.modify = !0, this.taskQueue.push(new Ss(i)), this._scheduleNextTick());
2914
2910
  },
2915
- u
2911
+ a
2916
2912
  );
2917
2913
  });
2918
2914
  }
@@ -2925,7 +2921,7 @@ class ws {
2925
2921
  ).map((s) => this.snapshots.getVueRefObjectOrValue(s));
2926
2922
  }
2927
2923
  _scheduleNextTick() {
2928
- Te(() => this._runAllTasks());
2924
+ Ie(() => this._runAllTasks());
2929
2925
  }
2930
2926
  _runAllTasks() {
2931
2927
  const t = this.taskQueue.slice();
@@ -2960,7 +2956,7 @@ class ws {
2960
2956
  }), n;
2961
2957
  }
2962
2958
  }
2963
- class Es {
2959
+ class bs {
2964
2960
  constructor(t, n) {
2965
2961
  B(this, "modify", !0);
2966
2962
  B(this, "_running", !1);
@@ -3016,7 +3012,7 @@ class Es {
3016
3012
  }
3017
3013
  }
3018
3014
  }
3019
- class _s {
3015
+ class Ss {
3020
3016
  /**
3021
3017
  *
3022
3018
  */
@@ -3069,43 +3065,43 @@ class _s {
3069
3065
  }
3070
3066
  }
3071
3067
  async function Os(e) {
3072
- const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await xn().watchSend(e);
3068
+ const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await Dn().watchSend(e);
3073
3069
  r && t.updateOutputsRefFromServer(r, n);
3074
3070
  }
3075
- function bs(e, t) {
3071
+ function Rs(e, t) {
3076
3072
  const {
3077
3073
  on: n,
3078
3074
  code: r,
3079
3075
  immediate: o,
3080
3076
  deep: s,
3081
3077
  once: i,
3082
- flush: c,
3078
+ flush: u,
3083
3079
  bind: l = {},
3084
3080
  onData: h,
3085
- bindData: a
3086
- } = e, u = h || new Array(n.length).fill(0), f = a || new Array(Object.keys(l).length).fill(0), d = Oe(
3081
+ bindData: c
3082
+ } = e, a = h || new Array(n.length).fill(0), f = c || new Array(Object.keys(l).length).fill(0), d = De(
3087
3083
  l,
3088
3084
  (g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
3089
- ), v = L(r, d), p = n.length === 1 ? Kt(u[0] === 1, n[0], t) : n.map(
3090
- (g, y) => Kt(u[y] === 1, g, t)
3085
+ ), v = W(r, d), p = n.length === 1 ? Kt(a[0] === 1, n[0], t) : n.map(
3086
+ (g, y) => Kt(a[y] === 1, g, t)
3091
3087
  );
3092
- return G(p, v, { immediate: o, deep: s, once: i, flush: c });
3088
+ return G(p, v, { immediate: o, deep: s, once: i, flush: u });
3093
3089
  }
3094
3090
  function Kt(e, t, n) {
3095
3091
  return e ? () => t : n.getVueRefObject(t);
3096
3092
  }
3097
- function Ss(e, t) {
3093
+ function Ps(e, t) {
3098
3094
  const {
3099
3095
  inputs: n = [],
3100
3096
  outputs: r,
3101
3097
  slient: o,
3102
3098
  data: s,
3103
3099
  code: i,
3104
- immediate: c = !0,
3100
+ immediate: u = !0,
3105
3101
  deep: l,
3106
3102
  once: h,
3107
- flush: a
3108
- } = e, u = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), d = L(i), v = n.filter((g, y) => u[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
3103
+ flush: c
3104
+ } = e, a = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), d = W(i), v = n.filter((g, y) => a[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
3109
3105
  function p() {
3110
3106
  return n.map((g, y) => f[y] === 0 ? nn(q(t.getVueRefObject(g))) : g);
3111
3107
  }
@@ -3115,35 +3111,35 @@ function Ss(e, t) {
3115
3111
  let g = d(...p());
3116
3112
  if (!r)
3117
3113
  return;
3118
- const _ = r.length === 1 ? [g] : g, O = _.map((R) => R === void 0 ? 1 : 0);
3114
+ const _ = r.length === 1 ? [g] : g, S = _.map((R) => R === void 0 ? 1 : 0);
3119
3115
  t.updateOutputsRefFromServer(
3120
- { values: _, skips: O },
3116
+ { values: _, skips: S },
3121
3117
  r
3122
3118
  );
3123
3119
  },
3124
- { immediate: c, deep: l, once: h, flush: a }
3120
+ { immediate: u, deep: l, once: h, flush: c }
3125
3121
  );
3126
3122
  }
3127
- function Rs(e, t) {
3123
+ function ks(e, t) {
3128
3124
  return Object.assign(
3129
3125
  {},
3130
3126
  ...Object.entries(e ?? {}).map(([n, r]) => {
3131
- const o = r.map((c) => {
3132
- if (c.type === "web") {
3133
- const l = Ps(c.bind, t);
3134
- return ks(c, l, t);
3127
+ const o = r.map((u) => {
3128
+ if (u.type === "web") {
3129
+ const l = Vs(u.bind, t);
3130
+ return Ns(u, l, t);
3135
3131
  } else {
3136
- if (c.type === "vue")
3137
- return Ns(c, t);
3138
- if (c.type === "js")
3139
- return Vs(c, t);
3132
+ if (u.type === "vue")
3133
+ return Ts(u, t);
3134
+ if (u.type === "js")
3135
+ return Is(u, t);
3140
3136
  }
3141
- throw new Error(`unknown event type ${c}`);
3142
- }), i = L(
3137
+ throw new Error(`unknown event type ${u}`);
3138
+ }), i = W(
3143
3139
  " (...args)=> Promise.all(promises(...args))",
3144
3140
  {
3145
- promises: (...c) => o.map(async (l) => {
3146
- await l(...c);
3141
+ promises: (...u) => o.map(async (l) => {
3142
+ await l(...u);
3147
3143
  })
3148
3144
  }
3149
3145
  );
@@ -3151,74 +3147,74 @@ function Rs(e, t) {
3151
3147
  })
3152
3148
  );
3153
3149
  }
3154
- function Ps(e, t) {
3150
+ function Vs(e, t) {
3155
3151
  return (...n) => (e ?? []).map((r) => {
3156
3152
  if (N.isEventContext(r)) {
3157
3153
  if (r.path.startsWith(":")) {
3158
3154
  const o = r.path.slice(1);
3159
- return L(o)(...n);
3155
+ return W(o)(...n);
3160
3156
  }
3161
3157
  return be(n[0], r.path.split("."));
3162
3158
  }
3163
3159
  return N.IsBinding(r) ? t.getObjectToValue(r) : r;
3164
3160
  });
3165
3161
  }
3166
- function ks(e, t, n) {
3162
+ function Ns(e, t, n) {
3167
3163
  async function r(...o) {
3168
- const s = t(...o), i = await xn().eventSend(e, s);
3164
+ const s = t(...o), i = await Dn().eventSend(e, s);
3169
3165
  i && n.updateOutputsRefFromServer(i, e.set);
3170
3166
  }
3171
3167
  return r;
3172
3168
  }
3173
- function Vs(e, t) {
3174
- const { code: n, inputs: r = [], set: o } = e, s = L(n);
3175
- function i(...c) {
3176
- const l = (r ?? []).map((a) => {
3177
- if (N.isEventContext(a)) {
3178
- if (a.path.startsWith(":")) {
3179
- const u = a.path.slice(1);
3180
- return L(u)(...c);
3169
+ function Is(e, t) {
3170
+ const { code: n, inputs: r = [], set: o } = e, s = W(n);
3171
+ function i(...u) {
3172
+ const l = (r ?? []).map((c) => {
3173
+ if (N.isEventContext(c)) {
3174
+ if (c.path.startsWith(":")) {
3175
+ const a = c.path.slice(1);
3176
+ return W(a)(...u);
3181
3177
  }
3182
- return be(c[0], a.path.split("."));
3178
+ return be(u[0], c.path.split("."));
3183
3179
  }
3184
- return N.IsBinding(a) ? nn(t.getObjectToValue(a)) : a;
3180
+ return N.IsBinding(c) ? nn(t.getObjectToValue(c)) : c;
3185
3181
  }), h = s(...l);
3186
3182
  if (o !== void 0) {
3187
- const u = o.length === 1 ? [h] : h, f = u.map((d) => d === void 0 ? 1 : 0);
3188
- t.updateOutputsRefFromServer({ values: u, skips: f }, o);
3183
+ const a = o.length === 1 ? [h] : h, f = a.map((d) => d === void 0 ? 1 : 0);
3184
+ t.updateOutputsRefFromServer({ values: a, skips: f }, o);
3189
3185
  }
3190
3186
  }
3191
3187
  return i;
3192
3188
  }
3193
- function Ns(e, t) {
3194
- const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = Oe(
3189
+ function Ts(e, t) {
3190
+ const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = De(
3195
3191
  r,
3196
- (h, a, u) => s[u] === 0 ? t.getVueRefObject(h) : h
3197
- ), c = L(n, i);
3192
+ (h, c, a) => s[a] === 0 ? t.getVueRefObject(h) : h
3193
+ ), u = W(n, i);
3198
3194
  function l(...h) {
3199
- c(...h);
3195
+ u(...h);
3200
3196
  }
3201
3197
  return l;
3202
3198
  }
3203
- function Is(e, t) {
3199
+ function As(e, t) {
3204
3200
  const n = [];
3205
3201
  (e.bStyle || []).forEach((s) => {
3206
3202
  Array.isArray(s) ? n.push(
3207
3203
  ...s.map((i) => t.getObjectToValue(i))
3208
3204
  ) : n.push(
3209
- Oe(
3205
+ De(
3210
3206
  s,
3211
3207
  (i) => t.getObjectToValue(i)
3212
3208
  )
3213
3209
  );
3214
3210
  });
3215
- const r = Jn([e.style || {}, n]);
3211
+ const r = Qn([e.style || {}, n]);
3216
3212
  return {
3217
3213
  hasStyle: r && Object.keys(r).length > 0,
3218
3214
  styles: r
3219
3215
  };
3220
3216
  }
3221
- function Ts(e, t) {
3217
+ function $s(e, t) {
3222
3218
  const n = e.classes;
3223
3219
  if (!n)
3224
3220
  return null;
@@ -3226,16 +3222,16 @@ function Ts(e, t) {
3226
3222
  return Ye(n);
3227
3223
  const { str: r, map: o, bind: s } = n, i = [];
3228
3224
  return r && i.push(r), o && i.push(
3229
- Oe(
3225
+ De(
3230
3226
  o,
3231
- (c) => t.getObjectToValue(c)
3227
+ (u) => t.getObjectToValue(u)
3232
3228
  )
3233
- ), s && i.push(...s.map((c) => t.getObjectToValue(c))), Ye(i);
3229
+ ), s && i.push(...s.map((u) => t.getObjectToValue(u))), Ye(i);
3234
3230
  }
3235
- function $e(e, t = !0) {
3231
+ function Ae(e, t = !0) {
3236
3232
  if (!(typeof e != "object" || e === null)) {
3237
3233
  if (Array.isArray(e)) {
3238
- t && e.forEach((n) => $e(n, !0));
3234
+ t && e.forEach((n) => Ae(n, !0));
3239
3235
  return;
3240
3236
  }
3241
3237
  for (const [n, r] of Object.entries(e))
@@ -3249,66 +3245,66 @@ function $e(e, t = !0) {
3249
3245
  );
3250
3246
  }
3251
3247
  else
3252
- t && $e(r, !0);
3248
+ t && Ae(r, !0);
3253
3249
  }
3254
3250
  }
3255
- function As(e, t) {
3251
+ function js(e, t) {
3256
3252
  const n = e.startsWith(":");
3257
- return n && (e = e.slice(1), t = L(t)), { name: e, value: t, isFunc: n };
3253
+ return n && (e = e.slice(1), t = W(t)), { name: e, value: t, isFunc: n };
3258
3254
  }
3259
- function $s(e, t, n) {
3255
+ function Cs(e, t, n) {
3260
3256
  var o;
3261
3257
  const r = {};
3262
- return bt(e.bProps || {}, (s, i) => {
3263
- const c = n.getObjectToValue(s);
3264
- Ee(c) || ($e(c), r[i] = js(c, i));
3258
+ return St(e.bProps || {}, (s, i) => {
3259
+ const u = n.getObjectToValue(s);
3260
+ Ee(u) || (Ae(u), r[i] = xs(u, i));
3265
3261
  }), (o = e.proxyProps) == null || o.forEach((s) => {
3266
3262
  const i = n.getObjectToValue(s);
3267
- typeof i == "object" && bt(i, (c, l) => {
3268
- const { name: h, value: a } = As(l, c);
3269
- r[h] = a;
3263
+ typeof i == "object" && St(i, (u, l) => {
3264
+ const { name: h, value: c } = js(l, u);
3265
+ r[h] = c;
3270
3266
  });
3271
3267
  }), { ...t || {}, ...r };
3272
3268
  }
3273
- function js(e, t) {
3269
+ function xs(e, t) {
3274
3270
  return t === "innerText" ? Qt(e) : e;
3275
3271
  }
3276
- function Cs(e, { slots: t }) {
3277
- const { id: n, use: r } = e.propsInfo, o = Or(n);
3278
- return xe(() => {
3279
- Sr(n);
3272
+ function Ds(e, { slots: t }) {
3273
+ const { id: n, use: r } = e.propsInfo, o = Sr(n);
3274
+ return Ce(() => {
3275
+ Rr(n);
3280
3276
  }), () => {
3281
3277
  const s = e.propsValue;
3282
- return br(
3278
+ return Or(
3283
3279
  n,
3284
3280
  o,
3285
3281
  Object.fromEntries(
3286
3282
  r.map((i) => [i, s[i]])
3287
3283
  )
3288
- ), A(De, null, t.default());
3284
+ ), A(xe, null, t.default());
3289
3285
  };
3290
3286
  }
3291
- const xs = F(Cs, {
3287
+ const Ms = F(Ds, {
3292
3288
  props: ["propsInfo", "propsValue"]
3293
3289
  });
3294
- function Ds(e, t) {
3290
+ function Fs(e, t) {
3295
3291
  if (!e.slots)
3296
3292
  return null;
3297
3293
  const n = e.slots ?? {};
3298
3294
  return Array.isArray(n) ? t ? ge(n) : () => ge(n) : Zt(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => {
3299
- const { items: c } = i;
3295
+ const { items: u } = i;
3300
3296
  return (l) => {
3301
3297
  if (i.scope) {
3302
- const h = () => i.props ? Gt(i.props, l, c) : ge(c);
3303
- return A(Re, { scope: i.scope }, h);
3298
+ const h = () => i.props ? Gt(i.props, l, u) : ge(u);
3299
+ return A(Oe, { scope: i.scope }, h);
3304
3300
  }
3305
- return i.props ? Gt(i.props, l, c) : ge(c);
3301
+ return i.props ? Gt(i.props, l, u) : ge(u);
3306
3302
  };
3307
3303
  } });
3308
3304
  }
3309
3305
  function Gt(e, t, n) {
3310
3306
  return A(
3311
- xs,
3307
+ Ms,
3312
3308
  { propsInfo: e, propsValue: t },
3313
3309
  () => ge(n)
3314
3310
  );
@@ -3319,22 +3315,22 @@ function ge(e) {
3319
3315
  }));
3320
3316
  return t.length <= 0 ? null : t;
3321
3317
  }
3322
- function Ms(e, t) {
3318
+ function Bs(e, t) {
3323
3319
  const n = {}, r = [];
3324
3320
  return (e || []).forEach((o) => {
3325
- const { sys: s, name: i, arg: c, value: l, mf: h } = o;
3321
+ const { sys: s, name: i, arg: u, value: l, mf: h } = o;
3326
3322
  if (i === "vmodel") {
3327
- const a = t.getVueRefObject(l);
3328
- if (n[`onUpdate:${c}`] = (u) => {
3329
- a.value = u;
3323
+ const c = t.getVueRefObject(l);
3324
+ if (n[`onUpdate:${u}`] = (a) => {
3325
+ c.value = a;
3330
3326
  }, s === 1) {
3331
- const u = h ? Object.fromEntries(h.map((f) => [f, !0])) : {};
3332
- r.push([Qn, a.value, void 0, u]);
3327
+ const a = h ? Object.fromEntries(h.map((f) => [f, !0])) : {};
3328
+ r.push([Yn, c.value, void 0, a]);
3333
3329
  } else
3334
- n[c] = a.value;
3330
+ n[u] = c.value;
3335
3331
  } else if (i === "vshow") {
3336
- const a = t.getVueRefObject(l);
3337
- r.push([Yn, a.value]);
3332
+ const c = t.getVueRefObject(l);
3333
+ r.push([Xn, c.value]);
3338
3334
  } else
3339
3335
  console.warn(`Directive ${i} is not supported yet`);
3340
3336
  }), {
@@ -3342,56 +3338,56 @@ function Ms(e, t) {
3342
3338
  directiveArray: r
3343
3339
  };
3344
3340
  }
3345
- function Fs(e, t) {
3341
+ function Ls(e, t) {
3346
3342
  const { eRef: n } = e;
3347
3343
  return n === void 0 ? {} : { ref: t.getRef(n) };
3348
3344
  }
3349
- function Bs(e) {
3345
+ function Ws(e) {
3350
3346
  const t = ne(), n = un(), r = e.component.props ?? {};
3351
- return $e(r, !0), () => {
3352
- const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s), c = typeof i == "string", l = Ts(e.component, t), { styles: h, hasStyle: a } = Is(e.component, t), u = Rs(e.component.events ?? {}, t), f = Ds(e.component, c), d = $s(e.component, r, t), { newProps: v, directiveArray: p } = Ms(
3347
+ return Ae(r, !0), () => {
3348
+ const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s), u = typeof i == "string", l = $s(e.component, t), { styles: h, hasStyle: c } = As(e.component, t), a = ks(e.component.events ?? {}, t), f = Fs(e.component, u), d = Cs(e.component, r, t), { newProps: v, directiveArray: p } = Bs(
3353
3349
  e.component.dir,
3354
3350
  t
3355
- ), g = Fs(
3351
+ ), g = Ls(
3356
3352
  e.component,
3357
3353
  n
3358
- ), y = Xn({
3354
+ ), y = Zn({
3359
3355
  ...d,
3360
- ...u,
3356
+ ...a,
3361
3357
  ...v,
3362
3358
  ...g
3363
3359
  }) || {};
3364
- a && (y.style = h), l && (y.class = l);
3360
+ c && (y.style = h), l && (y.class = l);
3365
3361
  const _ = A(i, { ...y }, f);
3366
- return p.length > 0 ? Zn(
3362
+ return p.length > 0 ? er(
3367
3363
  // @ts-ignore
3368
3364
  _,
3369
3365
  p
3370
3366
  ) : _;
3371
3367
  };
3372
3368
  }
3373
- const Q = F(Bs, {
3369
+ const Q = F(Ws, {
3374
3370
  props: ["component"]
3375
3371
  });
3376
- function Dn(e, t) {
3372
+ function Mn(e, t) {
3377
3373
  var n, r;
3378
3374
  if (e) {
3379
- const o = Er(e), s = on(e, ne(t)), i = ne(t);
3380
- ys(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((c) => bs(c, i)), (r = e.js_watch) == null || r.forEach((c) => Ss(c, i)), xe(() => {
3381
- cn(e.id, s), _r(e.id, o);
3375
+ const o = _r(e), s = on(e, ne(t)), i = ne(t);
3376
+ Es(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((u) => Rs(u, i)), (r = e.js_watch) == null || r.forEach((u) => Ps(u, i)), Ce(() => {
3377
+ cn(e.id, s), br(e.id, o);
3382
3378
  });
3383
3379
  }
3384
3380
  }
3385
- function Ls(e, { slots: t }) {
3381
+ function Us(e, { slots: t }) {
3386
3382
  const { scope: n } = e;
3387
- return Dn(n), () => A(De, null, t.default());
3383
+ return Mn(n), () => A(xe, null, t.default());
3388
3384
  }
3389
- const Re = F(Ls, {
3385
+ const Oe = F(Us, {
3390
3386
  props: ["scope"]
3391
- }), Ws = F(
3387
+ }), Ks = F(
3392
3388
  (e) => {
3393
3389
  const { scope: t, items: n, vforInfo: r } = e;
3394
- return Pr(r), Dn(t, r.key), n.length === 1 ? () => A(Q, {
3390
+ return kr(r), Mn(t, r.key), n.length === 1 ? () => A(Q, {
3395
3391
  component: n[0]
3396
3392
  }) : () => n.map(
3397
3393
  (s) => A(Q, {
@@ -3403,8 +3399,8 @@ const Re = F(Ls, {
3403
3399
  props: ["scope", "items", "vforInfo"]
3404
3400
  }
3405
3401
  );
3406
- function Us(e, t) {
3407
- const { state: n, isReady: r, isLoading: o } = hr(async () => {
3402
+ function Gs(e, t) {
3403
+ const { state: n, isReady: r, isLoading: o } = dr(async () => {
3408
3404
  let s = e;
3409
3405
  const i = t;
3410
3406
  if (!s && !i)
@@ -3415,45 +3411,45 @@ function Us(e, t) {
3415
3411
  }, {});
3416
3412
  return { config: n, isReady: r, isLoading: o };
3417
3413
  }
3418
- function Ks(e, t) {
3414
+ function qs(e, t) {
3419
3415
  let n;
3420
3416
  return t.component ? n = `Error captured from component:tag: ${t.component.tag} ; id: ${t.component.id} ` : n = "Error captured from app init", console.group(n), console.error("Component:", t.component), console.error("Error:", e), console.groupEnd(), !1;
3421
3417
  }
3422
- const Gs = { class: "app-box" }, qs = {
3418
+ const Hs = { class: "app-box" }, zs = {
3423
3419
  key: 0,
3424
3420
  style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
3425
- }, Hs = /* @__PURE__ */ F({
3421
+ }, Js = /* @__PURE__ */ F({
3426
3422
  __name: "App",
3427
3423
  props: {
3428
3424
  config: {},
3429
3425
  configUrl: {}
3430
3426
  },
3431
3427
  setup(e) {
3432
- const t = e, { config: n, isLoading: r } = Us(
3428
+ const t = e, { config: n, isLoading: r } = Gs(
3433
3429
  t.config,
3434
3430
  t.configUrl
3435
3431
  );
3436
3432
  let o = null;
3437
3433
  return G(n, (s) => {
3438
- o = s, s.url && (ar({
3434
+ o = s, s.url && (cr({
3439
3435
  mode: s.mode,
3440
3436
  version: s.version,
3441
3437
  queryPath: s.url.path,
3442
3438
  pathParams: s.url.params,
3443
3439
  webServerInfo: s.webInfo
3444
- }), gs(s));
3445
- }), er(Ks), (s, i) => (he(), Ve("div", Gs, [
3446
- W(r) ? (he(), Ve("div", qs, i[0] || (i[0] = [
3447
- tr("p", { style: { margin: "auto" } }, "Loading ...", -1)
3448
- ]))) : (he(), Ve("div", {
3440
+ }), ys(s), ps(s));
3441
+ }), tr(qs), (s, i) => (he(), ke("div", Hs, [
3442
+ L(r) ? (he(), ke("div", zs, i[0] || (i[0] = [
3443
+ nr("p", { style: { margin: "auto" } }, "Loading ...", -1)
3444
+ ]))) : (he(), ke("div", {
3449
3445
  key: 1,
3450
- class: Ye(["insta-main", W(n).class])
3446
+ class: Ye(["insta-main", L(n).class])
3451
3447
  }, [
3452
- nr(W(Re), {
3453
- scope: W(o).scope
3448
+ rr(L(Oe), {
3449
+ scope: L(o).scope
3454
3450
  }, {
3455
- default: rr(() => [
3456
- (he(!0), Ve(De, null, or(W(o).items, (c) => (he(), sr(W(Q), { component: c }, null, 8, ["component"]))), 256))
3451
+ default: or(() => [
3452
+ (he(!0), ke(xe, null, sr(L(o).items, (u) => (he(), ir(L(Q), { component: u }, null, 8, ["component"]))), 256))
3457
3453
  ]),
3458
3454
  _: 1
3459
3455
  }, 8, ["scope"])
@@ -3461,19 +3457,19 @@ const Gs = { class: "app-box" }, qs = {
3461
3457
  ]));
3462
3458
  }
3463
3459
  });
3464
- function zs(e) {
3460
+ function Qs(e) {
3465
3461
  const { on: t, scope: n, items: r } = e, o = ne();
3466
3462
  return () => {
3467
3463
  const s = typeof t == "boolean" ? t : o.getObjectToValue(t);
3468
- return A(Re, { scope: n }, () => s ? r.map(
3469
- (c) => A(Q, { component: c })
3464
+ return A(Oe, { scope: n }, () => s ? r.map(
3465
+ (u) => A(Q, { component: u })
3470
3466
  ) : void 0);
3471
3467
  };
3472
3468
  }
3473
- const Js = F(zs, {
3469
+ const Ys = F(Qs, {
3474
3470
  props: ["on", "scope", "items"]
3475
3471
  });
3476
- function Qs(e) {
3472
+ function Xs(e) {
3477
3473
  const { start: t = 0, end: n, step: r = 1 } = e;
3478
3474
  let o = [];
3479
3475
  if (r > 0)
@@ -3484,22 +3480,22 @@ function Qs(e) {
3484
3480
  o.push(s);
3485
3481
  return o;
3486
3482
  }
3487
- function Ys(e) {
3488
- const { array: t, bArray: n, items: r, fkey: o, fid: s, scope: i, num: c, tsGroup: l = {} } = e, h = t === void 0, a = c !== void 0, u = h ? n : t, f = ne();
3489
- Vr(s, u, h, a);
3490
- const v = ni(o ?? "index");
3491
- return xe(() => {
3492
- wr(i.id);
3483
+ function Zs(e) {
3484
+ const { array: t, bArray: n, items: r, fkey: o, fid: s, scope: i, num: u, tsGroup: l = {} } = e, h = t === void 0, c = u !== void 0, a = h ? n : t, f = ne();
3485
+ Nr(s, a, h, c);
3486
+ const v = oi(o ?? "index");
3487
+ return Ce(() => {
3488
+ Er(i.id);
3493
3489
  }), () => {
3494
- const p = Zs(
3495
- a,
3490
+ const p = ti(
3491
+ c,
3496
3492
  h,
3497
- u,
3493
+ a,
3498
3494
  f,
3499
- c
3500
- ), g = Ir(s), y = p.map((_, O) => {
3501
- const R = v(_, O);
3502
- return g.add(R), Nr(s, R, O), A(Ws, {
3495
+ u
3496
+ ), g = Tr(s), y = p.map((_, S) => {
3497
+ const R = v(_, S);
3498
+ return g.add(R), Ir(s, R, S), A(Ks, {
3503
3499
  scope: e.scope,
3504
3500
  items: r,
3505
3501
  vforInfo: {
@@ -3514,76 +3510,76 @@ function Ys(e) {
3514
3510
  }) : y;
3515
3511
  };
3516
3512
  }
3517
- const Xs = F(Ys, {
3513
+ const ei = F(Zs, {
3518
3514
  props: ["array", "items", "fid", "bArray", "scope", "num", "fkey", "tsGroup"]
3519
3515
  });
3520
- function Zs(e, t, n, r, o) {
3516
+ function ti(e, t, n, r, o) {
3521
3517
  if (e) {
3522
3518
  let i = 0;
3523
- return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, Qs({
3519
+ return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, Xs({
3524
3520
  end: Math.max(0, i)
3525
3521
  });
3526
3522
  }
3527
3523
  const s = t ? r.getObjectToValue(n) || [] : n;
3528
3524
  return typeof s == "object" ? Object.values(s) : s;
3529
3525
  }
3530
- const ei = (e) => e, ti = (e, t) => t;
3531
- function ni(e) {
3532
- const t = dr(e);
3533
- return typeof t == "function" ? t : e === "item" ? ei : ti;
3526
+ const ni = (e) => e, ri = (e, t) => t;
3527
+ function oi(e) {
3528
+ const t = pr(e);
3529
+ return typeof t == "function" ? t : e === "item" ? ni : ri;
3534
3530
  }
3535
- function ri(e) {
3531
+ function si(e) {
3536
3532
  return e.map((n) => {
3537
3533
  if (n.tag)
3538
3534
  return A(Q, { component: n });
3539
- const r = ft(Mn);
3535
+ const r = ft(Fn);
3540
3536
  return A(r, {
3541
3537
  scope: n
3542
3538
  });
3543
3539
  });
3544
3540
  }
3545
- const Mn = F(
3541
+ const Fn = F(
3546
3542
  (e) => {
3547
3543
  const t = e.scope;
3548
- return () => ri(t.items ?? []);
3544
+ return () => si(t.items ?? []);
3549
3545
  },
3550
3546
  {
3551
3547
  props: ["scope"]
3552
3548
  }
3553
3549
  );
3554
- function oi(e) {
3550
+ function ii(e) {
3555
3551
  return e.map((t) => {
3556
3552
  if (t.tag)
3557
3553
  return A(Q, { component: t });
3558
- const n = ft(Mn);
3554
+ const n = ft(Fn);
3559
3555
  return A(n, {
3560
3556
  scope: t
3561
3557
  });
3562
3558
  });
3563
3559
  }
3564
- const si = F(
3560
+ const ai = F(
3565
3561
  (e) => {
3566
3562
  const { scope: t, on: n, items: r } = e, o = J(r), s = on(t), i = ne();
3567
- return je.createDynamicWatchRefresh(n, i, async () => {
3568
- const { items: c, on: l } = await je.fetchRemote(e, i);
3569
- return o.value = c, l;
3570
- }), xe(() => {
3563
+ return $e.createDynamicWatchRefresh(n, i, async () => {
3564
+ const { items: u, on: l } = await $e.fetchRemote(e, i);
3565
+ return o.value = u, l;
3566
+ }), Ce(() => {
3571
3567
  cn(t.id, s);
3572
- }), () => oi(o.value);
3568
+ }), () => ii(o.value);
3573
3569
  },
3574
3570
  {
3575
3571
  props: ["sid", "url", "hKey", "on", "bind", "items", "scope"]
3576
3572
  }
3577
3573
  );
3578
- var je;
3574
+ var $e;
3579
3575
  ((e) => {
3580
3576
  function t(r, o, s) {
3581
- let i = null, c = r, l = c.map((a) => o.getVueRefObject(a));
3577
+ let i = null, u = r, l = u.map((c) => o.getVueRefObject(c));
3582
3578
  function h() {
3583
3579
  i && i(), i = G(
3584
3580
  l,
3585
3581
  async () => {
3586
- c = await s(), l = c.map((a) => o.getVueRefObject(a)), h();
3582
+ u = await s(), l = u.map((c) => o.getVueRefObject(c)), h();
3587
3583
  },
3588
3584
  { deep: !0 }
3589
3585
  );
@@ -3594,61 +3590,61 @@ var je;
3594
3590
  }
3595
3591
  e.createDynamicWatchRefresh = t;
3596
3592
  async function n(r, o) {
3597
- const s = Object.values(r.bind).map((a) => ({
3598
- sid: a.sid,
3599
- id: a.id,
3600
- value: o.getObjectToValue(a)
3593
+ const s = Object.values(r.bind).map((c) => ({
3594
+ sid: c.sid,
3595
+ id: c.id,
3596
+ value: o.getObjectToValue(c)
3601
3597
  })), i = {
3602
3598
  sid: r.sid,
3603
3599
  bind: s,
3604
3600
  hKey: r.hKey,
3605
3601
  page: ye()
3606
- }, c = {
3602
+ }, u = {
3607
3603
  method: "POST",
3608
3604
  headers: {
3609
3605
  "Content-Type": "application/json"
3610
3606
  },
3611
3607
  body: JSON.stringify(i)
3612
- }, l = await fetch(r.url, c);
3608
+ }, l = await fetch(r.url, u);
3613
3609
  if (!l.ok)
3614
3610
  throw new Error("Failed to fetch data");
3615
3611
  return await l.json();
3616
3612
  }
3617
3613
  e.fetchRemote = n;
3618
- })(je || (je = {}));
3619
- function ii(e) {
3614
+ })($e || ($e = {}));
3615
+ function ci(e) {
3620
3616
  const { scope: t, items: n } = e;
3621
3617
  return () => {
3622
3618
  const r = n.map((o) => A(Q, { component: o }));
3623
- return A(Re, { scope: t }, () => r);
3619
+ return A(Oe, { scope: t }, () => r);
3624
3620
  };
3625
3621
  }
3626
- const qt = F(ii, {
3622
+ const qt = F(ci, {
3627
3623
  props: ["scope", "items"]
3628
3624
  });
3629
- function ai(e) {
3625
+ function ui(e) {
3630
3626
  const { on: t, case: n, default: r } = e, o = ne();
3631
3627
  return () => {
3632
- const s = o.getObjectToValue(t), i = n.map((c) => {
3633
- const { value: l, items: h, scope: a } = c.props;
3628
+ const s = o.getObjectToValue(t), i = n.map((u) => {
3629
+ const { value: l, items: h, scope: c } = u.props;
3634
3630
  if (s === l)
3635
3631
  return A(qt, {
3636
- scope: a,
3632
+ scope: c,
3637
3633
  items: h,
3638
3634
  key: ["case", l].join("-")
3639
3635
  });
3640
- }).filter((c) => c);
3636
+ }).filter((u) => u);
3641
3637
  if (r && !i.length) {
3642
- const { items: c, scope: l } = r.props;
3643
- i.push(A(qt, { scope: l, items: c, key: "default" }));
3638
+ const { items: u, scope: l } = r.props;
3639
+ i.push(A(qt, { scope: l, items: u, key: "default" }));
3644
3640
  }
3645
- return A(De, i);
3641
+ return A(xe, i);
3646
3642
  };
3647
3643
  }
3648
- const ci = F(ai, {
3644
+ const li = F(ui, {
3649
3645
  props: ["case", "on", "default"]
3650
3646
  });
3651
- function ui(e, { slots: t }) {
3647
+ function fi(e, { slots: t }) {
3652
3648
  const { name: n = "fade", tag: r } = e;
3653
3649
  return () => A(
3654
3650
  Yt,
@@ -3658,61 +3654,61 @@ function ui(e, { slots: t }) {
3658
3654
  }
3659
3655
  );
3660
3656
  }
3661
- const li = F(ui, {
3657
+ const hi = F(fi, {
3662
3658
  props: ["name", "tag"]
3663
3659
  });
3664
- function fi(e) {
3660
+ function di(e) {
3665
3661
  const { content: t, r: n = 0 } = e, r = ne(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
3666
3662
  return () => Qt(o());
3667
3663
  }
3668
- const hi = F(fi, {
3664
+ const pi = F(di, {
3669
3665
  props: ["content", "r"]
3670
3666
  });
3671
- function di(e) {
3667
+ function mi(e) {
3672
3668
  if (!e.router)
3673
3669
  throw new Error("Router config is not provided.");
3674
3670
  const { routes: t, kAlive: n = !1 } = e.router;
3675
3671
  return t.map(
3676
- (o) => Fn(o, n)
3672
+ (o) => Bn(o, n)
3677
3673
  );
3678
3674
  }
3679
- function Fn(e, t) {
3675
+ function Bn(e, t) {
3680
3676
  var l;
3681
3677
  const { server: n = !1, vueItem: r, scope: o } = e, s = () => {
3682
3678
  if (n)
3683
3679
  throw new Error("Server-side rendering is not supported yet.");
3684
- return Promise.resolve(pi(r, o, t));
3680
+ return Promise.resolve(gi(r, o, t));
3685
3681
  }, i = (l = r.children) == null ? void 0 : l.map(
3686
- (h) => Fn(h, t)
3687
- ), c = {
3682
+ (h) => Bn(h, t)
3683
+ ), u = {
3688
3684
  ...r,
3689
3685
  children: i,
3690
3686
  component: s
3691
3687
  };
3692
- return r.component.length === 0 && delete c.component, i === void 0 && delete c.children, c;
3688
+ return r.component.length === 0 && delete u.component, i === void 0 && delete u.children, u;
3693
3689
  }
3694
- function pi(e, t, n) {
3690
+ function gi(e, t, n) {
3695
3691
  const { path: r, component: o } = e, s = A(
3696
- Re,
3692
+ Oe,
3697
3693
  { scope: t, key: r },
3698
- () => o.map((c) => A(Q, { component: c }))
3694
+ () => o.map((u) => A(Q, { component: u }))
3699
3695
  );
3700
- return n ? A(ir, null, () => s) : s;
3696
+ return n ? A(ar, null, () => s) : s;
3701
3697
  }
3702
- function mi(e, t) {
3698
+ function vi(e, t) {
3703
3699
  const { mode: n = "hash" } = t.router, r = n === "hash" ? Eo() : n === "memory" ? wo() : Rn();
3704
3700
  e.use(
3705
3701
  ls({
3706
3702
  history: r,
3707
- routes: di(t)
3703
+ routes: mi(t)
3708
3704
  })
3709
3705
  );
3710
3706
  }
3711
- function yi(e, t) {
3712
- e.component("insta-ui", Hs), e.component("vif", Js), e.component("vfor", Xs), e.component("match", ci), e.component("refresh", si), e.component("ts-group", li), e.component("content", hi), t.router && mi(e, t);
3707
+ function Ei(e, t) {
3708
+ e.component("insta-ui", Js), e.component("vif", Ys), e.component("vfor", ei), e.component("match", li), e.component("refresh", ai), e.component("ts-group", hi), e.component("content", pi), t.router && vi(e, t);
3713
3709
  }
3714
3710
  export {
3715
- $e as convertDynamicProperties,
3716
- yi as install
3711
+ Ae as convertDynamicProperties,
3712
+ Ei as install
3717
3713
  };
3718
3714
  //# sourceMappingURL=insta-ui.js.map