@wishbone-media/spark 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,32 +1,32 @@
1
- import { computed as T, resolveComponent as V, createElementBlock as y, openBlock as g, normalizeClass as _, createElementVNode as p, createVNode as v, unref as x, renderSlot as z, Fragment as se, renderList as fe, createCommentVNode as R, toDisplayString as F, reactive as oe, ref as q, inject as tn, provide as nn, markRaw as xt, createBlock as Y, withCtx as O, resolveDynamicComponent as St, mergeProps as vt, toHandlers as Ct, createTextVNode as qe, withModifiers as ce, onMounted as sn, watch as rn } from "vue";
1
+ import { computed as L, resolveComponent as M, createElementBlock as g, openBlock as m, normalizeClass as _, createElementVNode as f, createVNode as v, unref as x, renderSlot as z, Fragment as ae, renderList as me, createCommentVNode as E, toDisplayString as O, reactive as le, ref as q, inject as tn, provide as nn, markRaw as xt, createBlock as te, withCtx as k, resolveDynamicComponent as Ct, mergeProps as vt, toHandlers as St, createTextVNode as G, withModifiers as fe, onMounted as sn, watch as rn } from "vue";
2
2
  import { library as _t } from "@fortawesome/fontawesome-svg-core";
3
3
  import { FontAwesomeIcon as on } from "@fortawesome/vue-fontawesome";
4
- import { faSignOut as an, faXmark as ln, faTimes as cn, faStreetView as un, faSortUp as dn, faSortDown as fn, faSort as pn, faScaleBalanced as hn, faSatelliteDish as mn, faLayerPlus as gn, faLaptopMobile as yn, faInfoCircle as wn, faGripDotsVertical as bn, faGearComplex as xn, faFlag as Sn, faFaceSmileWink as vn, faFaceSmileRelaxed as Cn, faExclamationTriangle as _n, faEllipsisVertical as kn, faEllipsis as Rn, faEdit as En, faComments as On, faCircleXmark as An, faCircleUser as Tn, faChevronUp as $n, faChevronRight as Ln, faChevronLeft as Fn, faChevronDown as Bn, faCheckCircle as Nn, faCheck as Pn, faBullhorn as Hn, faBellRing as Un, faBarsSort as Vn, faArrowRightToLine as Dn, faArrowLeftToLine as jn } from "@fortawesome/pro-regular-svg-icons";
5
- import { defineStore as Re } from "pinia";
6
- import { TransitionRoot as kt, Dialog as Rt, TransitionChild as _e, DialogPanel as Et } from "@headlessui/vue";
7
- import { useRouter as Ee, useRoute as Oe } from "vue-router";
8
- const N = {
9
- farArrowLeftToLine: jn,
10
- farArrowRightToLine: Dn,
11
- farBarsSort: Vn,
12
- farBellRing: Un,
13
- farBullhorn: Hn,
14
- farCheck: Pn,
15
- farCheckCircle: Nn,
16
- farChevronDown: Bn,
17
- farChevronLeft: Fn,
18
- farChevronRight: Ln,
19
- farChevronUp: $n,
20
- farCircleUser: Tn,
4
+ import { faSignOut as an, faXmark as ln, faTimes as cn, faStreetView as un, faSortUp as dn, faSortDown as fn, faSort as pn, faScaleBalanced as hn, faSatelliteDish as mn, faLayerPlus as gn, faLaptopMobile as yn, faInfoCircle as wn, faGripDotsVertical as bn, faGearComplex as xn, faFlag as Cn, faFaceSmileWink as vn, faFaceSmileRelaxed as Sn, faExclamationTriangle as _n, faEllipsisVertical as kn, faEllipsis as Rn, faEdit as En, faComments as $n, faCircleXmark as An, faCircleUser as On, faChevronUp as Ln, faChevronRight as Tn, faChevronLeft as Hn, faChevronDown as Fn, faCheckCircle as Bn, faCheck as Vn, faBullhorn as Nn, faBellRing as Pn, faBarsSort as Mn, faArrowRightToLine as Un, faArrowLeftToLine as Dn } from "@fortawesome/pro-regular-svg-icons";
5
+ import { defineStore as Ae } from "pinia";
6
+ import { TransitionRoot as kt, Dialog as Rt, TransitionChild as Ee, DialogPanel as Et } from "@headlessui/vue";
7
+ import { useRouter as se, useRoute as Oe } from "vue-router";
8
+ const B = {
9
+ farArrowLeftToLine: Dn,
10
+ farArrowRightToLine: Un,
11
+ farBarsSort: Mn,
12
+ farBellRing: Pn,
13
+ farBullhorn: Nn,
14
+ farCheck: Vn,
15
+ farCheckCircle: Bn,
16
+ farChevronDown: Fn,
17
+ farChevronLeft: Hn,
18
+ farChevronRight: Tn,
19
+ farChevronUp: Ln,
20
+ farCircleUser: On,
21
21
  farCircleXmark: An,
22
- farComments: On,
22
+ farComments: $n,
23
23
  farEdit: En,
24
24
  farEllipsis: Rn,
25
25
  farEllipsisVertical: kn,
26
26
  farExclamationTriangle: _n,
27
- farFaceSmileRelaxed: Cn,
27
+ farFaceSmileRelaxed: Sn,
28
28
  farFaceSmileWink: vn,
29
- farFlag: Sn,
29
+ farFlag: Cn,
30
30
  farGearComplex: xn,
31
31
  farGripDotsVertical: bn,
32
32
  farInfoCircle: wn,
@@ -42,13 +42,13 @@ const N = {
42
42
  farXmark: ln,
43
43
  farSignOut: an
44
44
  };
45
- function Ca(e) {
46
- Object.assign(N, e), _t.add(...Object.values(e));
45
+ function Za(e) {
46
+ Object.assign(B, e), _t.add(...Object.values(e));
47
47
  }
48
- function _a(e) {
49
- _t.add(...Object.values(N)), e.component("FontAwesomeIcon", on);
48
+ function Wa(e) {
49
+ _t.add(...Object.values(B)), e.component("FontAwesomeIcon", on);
50
50
  }
51
- const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }, zn = { class: "ml-3" }, qn = { class: "ml-auto pl-3 pt-1 self-start" }, Wn = { class: "-mx-1.5 -my-1.5" }, ka = {
51
+ const jn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }, zn = { class: "ml-3" }, qn = { class: "ml-auto pl-3 pt-1 self-start" }, Zn = { class: "-mx-1.5 -my-1.5" }, Ga = {
52
52
  __name: "SparkAlert",
53
53
  props: {
54
54
  type: {
@@ -59,51 +59,51 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
59
59
  },
60
60
  emits: ["close"],
61
61
  setup(e) {
62
- const t = e, n = T(() => ({
62
+ const t = e, n = L(() => ({
63
63
  success: "bg-green-50 border-green-200 text-green-700",
64
64
  warning: "bg-yellow-50 border-yellow-200 text-yellow-700",
65
65
  danger: "bg-red-50 border-red-200 text-red-700",
66
66
  info: "bg-blue-50 border-blue-200 text-blue-700"
67
- })[t.type]), s = T(() => ({
67
+ })[t.type]), s = L(() => ({
68
68
  success: "text-green-400",
69
69
  warning: "text-yellow-400",
70
70
  danger: "text-red-400",
71
71
  info: "text-blue-400"
72
- })[t.type]), r = T(() => ({
72
+ })[t.type]), r = L(() => ({
73
73
  success: "farCheckCircle",
74
74
  warning: "farExclamationTriangle",
75
75
  danger: "farCircleXmark",
76
76
  info: "farInfoCircle"
77
- })[t.type]), a = T(() => ({
77
+ })[t.type]), o = L(() => ({
78
78
  success: "text-green-400 hover:bg-green-100",
79
79
  warning: "text-yellow-400 hover:bg-yellow-100",
80
80
  danger: "text-red-400 hover:bg-red-100",
81
81
  info: "text-blue-400 hover:bg-blue-100"
82
82
  })[t.type]);
83
- return (o, c) => {
84
- const l = V("font-awesome-icon");
85
- return g(), y("div", {
83
+ return (a, c) => {
84
+ const l = M("font-awesome-icon");
85
+ return m(), g("div", {
86
86
  class: _(["rounded-md border p-4", n.value])
87
87
  }, [
88
- p("div", Mn, [
89
- p("div", In, [
88
+ f("div", jn, [
89
+ f("div", In, [
90
90
  v(l, {
91
- icon: x(N)[r.value],
91
+ icon: x(B)[r.value],
92
92
  class: _(s.value)
93
93
  }, null, 8, ["icon", "class"])
94
94
  ]),
95
- p("div", zn, [
96
- z(o.$slots, "default")
95
+ f("div", zn, [
96
+ z(a.$slots, "default")
97
97
  ]),
98
- p("div", qn, [
99
- p("div", Wn, [
100
- p("button", {
98
+ f("div", qn, [
99
+ f("div", Zn, [
100
+ f("button", {
101
101
  type: "button",
102
- class: _(["inline-flex rounded-md px-2 py-1.5", a.value]),
103
- onClick: c[0] || (c[0] = (i) => o.$emit("close"))
102
+ class: _(["inline-flex rounded-md px-2 py-1.5", o.value]),
103
+ onClick: c[0] || (c[0] = (i) => a.$emit("close"))
104
104
  }, [
105
105
  v(l, {
106
- icon: x(N).farXmark
106
+ icon: x(B).farXmark
107
107
  }, null, 8, ["icon"])
108
108
  ], 2)
109
109
  ])
@@ -112,7 +112,7 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
112
112
  ], 2);
113
113
  };
114
114
  }
115
- }, Jn = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Kn = { class: "flex flex-1 flex-col" }, Gn = { class: "divide-y divide-gray-200" }, Zn = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, Xn = { class: "ml-auto flex items-center" }, Qn = ["onClick"], Yn = { class: "gap-y-1" }, es = { class: "text-base text-gray-800 flex items-center" }, ts = { class: "font-medium" }, ns = {
115
+ }, Wn = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Gn = { class: "flex flex-1 flex-col" }, Jn = { class: "divide-y divide-gray-200" }, Kn = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, Xn = { class: "ml-auto flex items-center" }, Yn = ["onClick"], Qn = { class: "gap-y-1" }, es = { class: "text-base text-gray-800 flex items-center" }, ts = { class: "font-medium" }, ns = {
116
116
  key: 0,
117
117
  class: "inline-flex items-center rounded-full bg-green-100 px-1.5 py-0.5 text-xs font-medium text-green-700 ml-1"
118
118
  }, ss = { class: "text-sm text-gray-500" }, rs = { class: "ml-auto flex items-center" }, os = {
@@ -168,91 +168,91 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
168
168
  },
169
169
  emits: ["close", "select"],
170
170
  setup(e, { emit: t }) {
171
- const n = e, s = t, r = T(() => n.appItems.map((o) => ({
172
- ...o,
173
- current: o.name === n.currentApp
174
- }))), a = (o) => {
175
- window.open(o.href, "_blank"), s("select", o);
171
+ const n = e, s = t, r = L(() => n.appItems.map((a) => ({
172
+ ...a,
173
+ current: a.name === n.currentApp
174
+ }))), o = (a) => {
175
+ window.open(a.href, "_blank"), s("select", a);
176
176
  };
177
- return (o, c) => {
178
- const l = V("font-awesome-icon");
179
- return g(), y("div", Jn, [
180
- p("div", Kn, [
181
- p("div", Gn, [
182
- p("div", Zn, [
183
- c[1] || (c[1] = p("div", null, "Mr Group Network", -1)),
184
- p("div", Xn, [
177
+ return (a, c) => {
178
+ const l = M("font-awesome-icon");
179
+ return m(), g("div", Wn, [
180
+ f("div", Gn, [
181
+ f("div", Jn, [
182
+ f("div", Kn, [
183
+ c[1] || (c[1] = f("div", null, "Mr Group Network", -1)),
184
+ f("div", Xn, [
185
185
  v(l, {
186
- icon: x(N).farTimes,
186
+ icon: x(B).farTimes,
187
187
  class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
188
188
  onClick: c[0] || (c[0] = (i) => s("close"))
189
189
  }, null, 8, ["icon"])
190
190
  ])
191
191
  ]),
192
- (g(!0), y(se, null, fe(r.value, (i) => (g(), y("div", {
192
+ (m(!0), g(ae, null, me(r.value, (i) => (m(), g("div", {
193
193
  key: i.name,
194
194
  class: _([i.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
195
- onClick: (d) => a(i)
195
+ onClick: (d) => o(i)
196
196
  }, [
197
- p("div", Yn, [
198
- p("div", es, [
199
- p("div", ts, F(i.name), 1),
200
- i.current ? (g(), y("span", ns, " Active ")) : R("", !0)
197
+ f("div", Qn, [
198
+ f("div", es, [
199
+ f("div", ts, O(i.name), 1),
200
+ i.current ? (m(), g("span", ns, " Active ")) : E("", !0)
201
201
  ]),
202
- p("div", ss, F(i.description), 1)
202
+ f("div", ss, O(i.description), 1)
203
203
  ]),
204
- p("div", rs, [
204
+ f("div", rs, [
205
205
  v(l, {
206
206
  class: _([i.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
207
- icon: x(N)[i.icon]
207
+ icon: x(B)[i.icon]
208
208
  }, null, 8, ["class", "icon"])
209
209
  ])
210
- ], 10, Qn))), 128)),
211
- c[2] || (c[2] = p("div", null, null, -1))
210
+ ], 10, Yn))), 128)),
211
+ c[2] || (c[2] = f("div", null, null, -1))
212
212
  ]),
213
- c[3] || (c[3] = p("div", { class: "mt-auto" }, [
214
- p("div", { class: "p-6" }, "Learn More"),
215
- p("div", { class: "bg-gray-50 p-6" }, "Footer")
213
+ c[3] || (c[3] = f("div", { class: "mt-auto" }, [
214
+ f("div", { class: "p-6" }, "Learn More"),
215
+ f("div", { class: "bg-gray-50 p-6" }, "Footer")
216
216
  ], -1))
217
217
  ])
218
218
  ]);
219
219
  };
220
220
  }
221
- }, Ot = Re(
221
+ }, $t = Ae(
222
222
  "brandFilter",
223
223
  () => {
224
- const e = oe({
224
+ const e = le({
225
225
  brands: []
226
- }), t = (a = {}) => {
227
- if (!a.brands || !Array.isArray(a.brands)) {
226
+ }), t = (o = {}) => {
227
+ if (!o.brands || !Array.isArray(o.brands)) {
228
228
  console.warn("useSparkBrandFilterStore: No brands provided to initialize()"), e.brands = [];
229
229
  return;
230
230
  }
231
- const o = a.brands.filter((l) => {
231
+ const a = o.brands.filter((l) => {
232
232
  const i = l.id && l.name && l.logo;
233
233
  return i || console.warn("useSparkBrandFilterStore: Invalid brand object", l), i;
234
- }), c = o.filter((l) => l.current);
235
- c.length === 0 && o.length > 0 ? o[0].current = !0 : c.length > 1 && o.forEach((l) => {
234
+ }), c = a.filter((l) => l.current);
235
+ c.length === 0 && a.length > 0 ? a[0].current = !0 : c.length > 1 && a.forEach((l) => {
236
236
  l.current = l === c[0];
237
- }), e.brands = o.map((l) => ({
237
+ }), e.brands = a.map((l) => ({
238
238
  id: l.id,
239
239
  name: l.name,
240
240
  logo: l.logo,
241
241
  current: l.current || !1
242
242
  }));
243
- }, n = T(() => e.brands.find((a) => a.current) || null), s = T(() => e.brands);
243
+ }, n = L(() => e.brands.find((o) => o.current) || null), s = L(() => e.brands);
244
244
  return {
245
245
  state: e,
246
246
  initialize: t,
247
247
  currentBrand: n,
248
248
  allBrands: s,
249
- toggleBrand: (a) => {
250
- if (!a || !e.brands.includes(a)) {
249
+ toggleBrand: (o) => {
250
+ if (!o || !e.brands.includes(o)) {
251
251
  console.warn("useSparkBrandFilterStore: Invalid brand provided to toggleBrand()");
252
252
  return;
253
253
  }
254
- e.brands.forEach((o) => {
255
- o.current = o === a;
254
+ e.brands.forEach((a) => {
255
+ a.current = a === o;
256
256
  });
257
257
  }
258
258
  };
@@ -268,59 +268,59 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
268
268
  }, fs = ["onClick"], ps = { class: "gap-y-1 flex" }, hs = { class: "flex items-center mr-4" }, ms = ["src", "alt"], gs = { class: "ml-auto flex flex-col" }, ys = { class: "text-base text-gray-800 flex items-center" }, ws = { class: "font-medium" }, bs = {
269
269
  key: 0,
270
270
  class: "inline-flex items-center rounded-full bg-green-100 px-1.5 py-0.5 text-xs font-medium text-green-700 ml-1"
271
- }, xs = { class: "text-sm text-gray-500" }, Ss = {
271
+ }, xs = { class: "text-sm text-gray-500" }, Cs = {
272
272
  __name: "SparkBrandSelector",
273
273
  emits: ["close", "select"],
274
274
  setup(e, { emit: t }) {
275
- const n = t, s = Ot(), r = (a) => {
276
- n("select", a);
275
+ const n = t, s = $t(), r = (o) => {
276
+ n("select", o);
277
277
  };
278
- return (a, o) => {
279
- const c = V("font-awesome-icon");
280
- return g(), y("div", as, [
281
- p("div", is, [
282
- p("div", ls, [
283
- p("div", cs, [
284
- o[1] || (o[1] = p("div", null, "Filter by Brand", -1)),
285
- p("div", us, [
278
+ return (o, a) => {
279
+ const c = M("font-awesome-icon");
280
+ return m(), g("div", as, [
281
+ f("div", is, [
282
+ f("div", ls, [
283
+ f("div", cs, [
284
+ a[1] || (a[1] = f("div", null, "Filter by Brand", -1)),
285
+ f("div", us, [
286
286
  v(c, {
287
- icon: x(N).farTimes,
287
+ icon: x(B).farTimes,
288
288
  class: "size-4 text-gray-400 cursor-pointer",
289
- onClick: o[0] || (o[0] = (l) => n("close"))
289
+ onClick: a[0] || (a[0] = (l) => n("close"))
290
290
  }, null, 8, ["icon"])
291
291
  ])
292
292
  ]),
293
- x(s).allBrands.length === 0 ? (g(), y("div", ds, " No brands configured ")) : R("", !0),
294
- (g(!0), y(se, null, fe(x(s).allBrands, (l) => (g(), y("div", {
293
+ x(s).allBrands.length === 0 ? (m(), g("div", ds, " No brands configured ")) : E("", !0),
294
+ (m(!0), g(ae, null, me(x(s).allBrands, (l) => (m(), g("div", {
295
295
  key: l.id,
296
296
  class: _([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
297
297
  onClick: (i) => r(l)
298
298
  }, [
299
- p("div", ps, [
300
- p("div", hs, [
301
- p("img", {
299
+ f("div", ps, [
300
+ f("div", hs, [
301
+ f("img", {
302
302
  src: l.logo,
303
303
  alt: `${l.name} logo`,
304
304
  class: "h-8 w-auto"
305
305
  }, null, 8, ms)
306
306
  ]),
307
- p("div", gs, [
308
- p("div", ys, [
309
- p("div", ws, F(l.name), 1),
310
- l.current ? (g(), y("span", bs, " Current ")) : R("", !0)
307
+ f("div", gs, [
308
+ f("div", ys, [
309
+ f("div", ws, O(l.name), 1),
310
+ l.current ? (m(), g("span", bs, " Current ")) : E("", !0)
311
311
  ]),
312
- p("div", xs, F(l.current ? "Current Brand" : "Change to"), 1)
312
+ f("div", xs, O(l.current ? "Current Brand" : "Change to"), 1)
313
313
  ])
314
314
  ])
315
315
  ], 10, fs))), 128)),
316
- o[2] || (o[2] = p("div", null, null, -1))
316
+ a[2] || (a[2] = f("div", null, null, -1))
317
317
  ]),
318
- o[3] || (o[3] = p("div", { class: "mt-auto" }, null, -1))
318
+ a[3] || (a[3] = f("div", { class: "mt-auto" }, null, -1))
319
319
  ])
320
320
  ]);
321
321
  };
322
322
  }
323
- }, vs = ["disabled"], Ae = {
323
+ }, vs = ["disabled"], re = {
324
324
  __name: "SparkButton",
325
325
  props: {
326
326
  size: {
@@ -342,7 +342,7 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
342
342
  }
343
343
  },
344
344
  setup(e) {
345
- const t = e, n = q(null), s = tn("buttonGroup", null), r = T(() => {
345
+ const t = e, n = q(null), s = tn("buttonGroup", null), r = L(() => {
346
346
  if (!s?.isInGroup || !n.value) return null;
347
347
  const l = s.getButtonIndex(n.value), i = s.getButtonCount();
348
348
  return {
@@ -351,7 +351,7 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
351
351
  index: l,
352
352
  total: i
353
353
  };
354
- }), a = {
354
+ }), o = {
355
355
  paddingX: /^px-/,
356
356
  paddingY: /^py-/,
357
357
  paddingAll: /^p-/,
@@ -361,18 +361,18 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
361
361
  borderRadius: /^rounded-/,
362
362
  background: /^bg-/,
363
363
  text: /^text-(?!white|black)/
364
- }, o = (l, i) => {
364
+ }, a = (l, i) => {
365
365
  if (!i) return l;
366
- const d = l.split(" ").filter(Boolean), f = i.split(" ").filter(Boolean);
367
- return [...d.filter((E) => !f.some((h) => {
368
- const w = Object.entries(a).find(
369
- ([k, $]) => $.test(E)
370
- )?.[0], m = Object.entries(a).find(
371
- ([k, $]) => $.test(h)
366
+ const d = l.split(" ").filter(Boolean), p = i.split(" ").filter(Boolean);
367
+ return [...d.filter(($) => !p.some((h) => {
368
+ const w = Object.entries(o).find(
369
+ ([R, T]) => T.test($)
370
+ )?.[0], y = Object.entries(o).find(
371
+ ([R, T]) => T.test(h)
372
372
  )?.[0];
373
- return w && w === m;
374
- })), ...f].join(" ");
375
- }, c = T(() => {
373
+ return w && w === y;
374
+ })), ...p].join(" ");
375
+ }, c = L(() => {
376
376
  let l = "", i = "";
377
377
  switch (t.size) {
378
378
  case "xs":
@@ -392,8 +392,8 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
392
392
  break;
393
393
  }
394
394
  if (s?.isInGroup && r.value) {
395
- const { isFirst: d, isLast: f } = r.value;
396
- l += " relative inline-flex items-center focus:z-10", d && f ? l += ` rounded-${i}` : d ? l += ` rounded-l-${i} rounded-r-none` : f ? l += ` rounded-r-${i} rounded-l-none -ml-px` : l += " rounded-none -ml-px";
395
+ const { isFirst: d, isLast: p } = r.value;
396
+ l += " relative inline-flex items-center focus:z-10", d && p ? l += ` rounded-${i}` : d ? l += ` rounded-l-${i} rounded-r-none` : p ? l += ` rounded-r-${i} rounded-l-none -ml-px` : l += " rounded-none -ml-px";
397
397
  } else
398
398
  l += ` shadow-xs rounded-${i}`;
399
399
  switch (t.variant) {
@@ -418,9 +418,9 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
418
418
  default:
419
419
  l += ` bg-${t.variant}-600 hover:bg-${t.variant}-500 text-white`;
420
420
  }
421
- return l = o(l, t.buttonClass), l;
421
+ return l = a(l, t.buttonClass), l;
422
422
  });
423
- return (l, i) => (g(), y("button", {
423
+ return (l, i) => (m(), g("button", {
424
424
  type: "button",
425
425
  ref_key: "buttonRef",
426
426
  ref: n,
@@ -431,7 +431,7 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
431
431
  z(l.$slots, "default")
432
432
  ], 10, vs));
433
433
  }
434
- }, Ra = {
434
+ }, Ja = {
435
435
  __name: "SparkButtonGroup",
436
436
  setup(e) {
437
437
  const t = q(null);
@@ -439,7 +439,7 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
439
439
  isInGroup: !0,
440
440
  getButtonIndex: (r) => t.value ? Array.from(t.value.children).indexOf(r) : -1,
441
441
  getButtonCount: () => t.value?.children.length || 0
442
- }), (r, a) => (g(), y("div", {
442
+ }), (r, o) => (m(), g("div", {
443
443
  class: "inline-flex rounded-md shadow-xs",
444
444
  ref_key: "groupRef",
445
445
  ref: t
@@ -447,13 +447,13 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
447
447
  z(r.$slots, "default")
448
448
  ], 512));
449
449
  }
450
- }, Cs = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, _s = {
450
+ }, Ss = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, _s = {
451
451
  key: 0,
452
452
  class: "p-5"
453
453
  }, ks = {
454
454
  key: 1,
455
455
  class: "p-5"
456
- }, Ea = {
456
+ }, Ka = {
457
457
  __name: "SparkCard",
458
458
  props: {
459
459
  padded: {
@@ -467,24 +467,24 @@ const Mn = { class: "flex items-center" }, In = { class: "shrink-0 self-start" }
467
467
  },
468
468
  setup(e) {
469
469
  const t = e;
470
- return (n, s) => (g(), y("div", Cs, [
471
- n.$slots.header ? (g(), y("div", _s, [
470
+ return (n, s) => (m(), g("div", Ss, [
471
+ n.$slots.header ? (m(), g("div", _s, [
472
472
  z(n.$slots, "header")
473
- ])) : R("", !0),
474
- p("div", {
473
+ ])) : E("", !0),
474
+ f("div", {
475
475
  class: _([t.padded ? t.paddedClass : ""])
476
476
  }, [
477
477
  z(n.$slots, "default")
478
478
  ], 2),
479
- n.$slots.footer ? (g(), y("div", ks, [
479
+ n.$slots.footer ? (m(), g("div", ks, [
480
480
  z(n.$slots, "footer")
481
- ])) : R("", !0)
481
+ ])) : E("", !0)
482
482
  ]));
483
483
  }
484
484
  };
485
485
  class Rs {
486
486
  constructor() {
487
- this.state = oe({
487
+ this.state = le({
488
488
  isVisible: !1,
489
489
  content: null,
490
490
  props: {},
@@ -498,20 +498,20 @@ class Rs {
498
498
  this.state.isVisible = !1, this.state.eventHandlers = {};
499
499
  };
500
500
  }
501
- const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Os = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, As = {
501
+ const pe = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, $s = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, As = {
502
502
  __name: "SparkModalContainer",
503
503
  setup(e) {
504
- return (t, n) => (g(), Y(x(kt), {
504
+ return (t, n) => (m(), te(x(kt), {
505
505
  as: "template",
506
- show: x(ue).state.isVisible
506
+ show: x(pe).state.isVisible
507
507
  }, {
508
- default: O(() => [
508
+ default: k(() => [
509
509
  v(x(Rt), {
510
510
  class: "relative z-200",
511
- onClose: x(ue).hide
511
+ onClose: x(pe).hide
512
512
  }, {
513
- default: O(() => [
514
- v(x(_e), {
513
+ default: k(() => [
514
+ v(x(Ee), {
515
515
  as: "template",
516
516
  enter: "ease-out duration-300",
517
517
  "enter-from": "opacity-0",
@@ -520,14 +520,14 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
520
520
  "leave-from": "opacity-100",
521
521
  "leave-to": "opacity-0"
522
522
  }, {
523
- default: O(() => [...n[0] || (n[0] = [
524
- p("div", { class: "fixed inset-0 bg-gray-500/75 transition-opacity" }, null, -1)
523
+ default: k(() => [...n[0] || (n[0] = [
524
+ f("div", { class: "fixed inset-0 bg-gray-500/75 transition-opacity" }, null, -1)
525
525
  ])]),
526
526
  _: 1
527
527
  }),
528
- p("div", Es, [
529
- p("div", Os, [
530
- v(x(_e), {
528
+ f("div", Es, [
529
+ f("div", $s, [
530
+ v(x(Ee), {
531
531
  as: "template",
532
532
  enter: "ease-out duration-300",
533
533
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -536,10 +536,10 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
536
536
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
537
537
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
538
538
  }, {
539
- default: O(() => [
539
+ default: k(() => [
540
540
  v(x(Et), { class: "relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:min-w-lg sm:max-w-max" }, {
541
- default: O(() => [
542
- (g(), Y(St(x(ue).state.content), vt(x(ue).state.props, Ct(x(ue).state.eventHandlers)), null, 16))
541
+ default: k(() => [
542
+ (m(), te(Ct(x(pe).state.content), vt(x(pe).state.props, St(x(pe).state.eventHandlers)), null, 16))
543
543
  ]),
544
544
  _: 1
545
545
  })
@@ -555,10 +555,10 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
555
555
  _: 1
556
556
  }, 8, ["show"]));
557
557
  }
558
- }, Ts = { class: "px-4 pt-5 pb-4 sm:p-6" }, $s = {
558
+ }, Os = { class: "px-4 pt-5 pb-4 sm:p-6" }, Ls = {
559
559
  key: 0,
560
560
  class: "text-lg font-medium text-gray-900"
561
- }, Oa = {
561
+ }, Xa = {
562
562
  __name: "SparkModalDialog",
563
563
  props: {
564
564
  title: {
@@ -608,7 +608,7 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
608
608
  "input"
609
609
  ],
610
610
  setup(e) {
611
- const t = e, n = T(() => !t.buttons || t.buttons.length === 0 ? [{ text: "OK", variant: "primary", event: "ok" }] : t.buttons), s = T(() => {
611
+ const t = e, n = L(() => !t.buttons || t.buttons.length === 0 ? [{ text: "OK", variant: "primary", event: "ok" }] : t.buttons), s = L(() => {
612
612
  switch (n.value.length) {
613
613
  case 1:
614
614
  return "sm:grid sm:grid-flow-row-dense";
@@ -624,48 +624,48 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
624
624
  success: "farCheckCircle",
625
625
  warning: "farExclamationTriangle",
626
626
  danger: "farCircleXmark"
627
- }, a = T(() => t.icon || r[t.type]), o = T(() => ({
627
+ }, o = L(() => t.icon || r[t.type]), a = L(() => ({
628
628
  info: "bg-blue-100",
629
629
  success: "bg-green-100",
630
630
  warning: "bg-yellow-100",
631
631
  danger: "bg-red-100"
632
- })[t.type]), c = T(() => ({
632
+ })[t.type]), c = L(() => ({
633
633
  info: "text-blue-400",
634
634
  success: "text-green-400",
635
635
  warning: "text-yellow-400",
636
636
  danger: "text-red-400"
637
637
  })[t.type]);
638
638
  return (l, i) => {
639
- const d = V("font-awesome-icon");
640
- return g(), y("div", Ts, [
641
- a.value ? (g(), y("div", {
639
+ const d = M("font-awesome-icon");
640
+ return m(), g("div", Os, [
641
+ o.value ? (m(), g("div", {
642
642
  key: 0,
643
- class: _(["mx-auto flex size-12 items-center justify-center rounded-full", o.value])
643
+ class: _(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
644
644
  }, [
645
645
  v(d, {
646
- icon: x(N)[a.value],
646
+ icon: x(B)[o.value],
647
647
  class: _(["h-5 w-5", c.value])
648
648
  }, null, 8, ["icon", "class"])
649
- ], 2)) : R("", !0),
650
- p("div", {
651
- class: _(["text-center", { "mt-3 sm:mt-5": a.value }])
649
+ ], 2)) : E("", !0),
650
+ f("div", {
651
+ class: _(["text-center", { "mt-3 sm:mt-5": o.value }])
652
652
  }, [
653
- e.title ? (g(), y("h3", $s, F(e.title), 1)) : R("", !0),
654
- e.message ? (g(), y("div", {
653
+ e.title ? (m(), g("h3", Ls, O(e.title), 1)) : E("", !0),
654
+ e.message ? (m(), g("div", {
655
655
  key: 1,
656
656
  class: _([{ "mt-2": e.title }, "text-sm text-gray-500"])
657
- }, F(e.message), 3)) : R("", !0)
657
+ }, O(e.message), 3)) : E("", !0)
658
658
  ], 2),
659
- p("div", {
659
+ f("div", {
660
660
  class: _(["mt-5 sm:mt-6", s.value])
661
661
  }, [
662
- (g(!0), y(se, null, fe(n.value, (f, b) => (g(), Y(x(Ae), {
662
+ (m(!0), g(ae, null, me(n.value, (p, b) => (m(), te(x(re), {
663
663
  key: b,
664
- variant: f.variant,
665
- onClick: (E) => l.$emit(f.event, f)
664
+ variant: p.variant,
665
+ onClick: ($) => l.$emit(p.event, p)
666
666
  }, {
667
- default: O(() => [
668
- qe(F(f.text), 1)
667
+ default: k(() => [
668
+ G(O(p.text), 1)
669
669
  ]),
670
670
  _: 2
671
671
  }, 1032, ["variant", "onClick"]))), 128))
@@ -673,7 +673,7 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
673
673
  ]);
674
674
  };
675
675
  }
676
- }, Ls = { class: "fixed inset-0 flex" }, nt = {
676
+ }, Ts = { class: "fixed inset-0 flex" }, nt = {
677
677
  __name: "SparkOverlay",
678
678
  props: {
679
679
  position: {
@@ -688,18 +688,18 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
688
688
  },
689
689
  setup(e) {
690
690
  const t = q(null);
691
- return (n, s) => (g(), Y(x(kt), {
691
+ return (n, s) => (m(), te(x(kt), {
692
692
  show: e.overlayInstance.state.isVisible,
693
693
  as: "template"
694
694
  }, {
695
- default: O(() => [
695
+ default: k(() => [
696
696
  v(x(Rt), {
697
697
  initialFocus: t.value,
698
698
  class: "relative z-200",
699
699
  onClose: e.overlayInstance.close
700
700
  }, {
701
- default: O(() => [
702
- v(x(_e), {
701
+ default: k(() => [
702
+ v(x(Ee), {
703
703
  as: "template",
704
704
  enter: "transition-opacity ease-linear duration-150",
705
705
  "enter-from": "opacity-0",
@@ -708,13 +708,13 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
708
708
  "leave-from": "opacity-100",
709
709
  "leave-to": "opacity-0"
710
710
  }, {
711
- default: O(() => [...s[0] || (s[0] = [
712
- p("div", { class: "fixed inset-0 bg-gray-600/30" }, null, -1)
711
+ default: k(() => [...s[0] || (s[0] = [
712
+ f("div", { class: "fixed inset-0 bg-gray-600/30" }, null, -1)
713
713
  ])]),
714
714
  _: 1
715
715
  }),
716
- p("div", Ls, [
717
- v(x(_e), {
716
+ f("div", Ts, [
717
+ v(x(Ee), {
718
718
  as: "template",
719
719
  enter: "transition ease-in-out duration-150 transform",
720
720
  "enter-from": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
@@ -723,7 +723,7 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
723
723
  "leave-from": "translate-x-0 opacity-100",
724
724
  "leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
725
725
  }, {
726
- default: O(() => [
726
+ default: k(() => [
727
727
  v(x(Et), {
728
728
  ref_key: "panelRef",
729
729
  ref: t,
@@ -732,8 +732,8 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
732
732
  e.position === "left" ? "relative left-[10px]" : "absolute right-[10px] h-full"
733
733
  ])
734
734
  }, {
735
- default: O(() => [
736
- (g(), Y(St(e.overlayInstance.state.content), vt({ ...n.$attrs, ...e.overlayInstance.state.props }, Ct(e.overlayInstance.state.eventHandlers)), null, 16))
735
+ default: k(() => [
736
+ (m(), te(Ct(e.overlayInstance.state.content), vt({ ...n.$attrs, ...e.overlayInstance.state.props }, St(e.overlayInstance.state.eventHandlers)), null, 16))
737
737
  ]),
738
738
  _: 1
739
739
  }, 8, ["class"])
@@ -750,7 +750,7 @@ const ue = new Rs(), Es = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
750
750
  }
751
751
  };
752
752
  function st() {
753
- const e = oe({
753
+ const e = le({
754
754
  isVisible: !1,
755
755
  content: null,
756
756
  props: {},
@@ -761,8 +761,8 @@ function st() {
761
761
  e.isVisible = !1, e.eventHandlers = {};
762
762
  }, s = () => {
763
763
  e.isVisible = !0;
764
- }, r = (o, c = {}, l = {}) => {
765
- e.content = xt(o), e.props = c, e.eventHandlers = l;
764
+ }, r = (a, c = {}, l = {}) => {
765
+ e.content = xt(a), e.props = c, e.eventHandlers = l;
766
766
  };
767
767
  return {
768
768
  state: e,
@@ -770,12 +770,12 @@ function st() {
770
770
  close: n,
771
771
  open: s,
772
772
  setContent: r,
773
- show: (o, c = {}, l = {}) => {
774
- o && r(o, c, l), s();
773
+ show: (a, c = {}, l = {}) => {
774
+ a && r(a, c, l), s();
775
775
  }
776
776
  };
777
777
  }
778
- class Fs {
778
+ class Hs {
779
779
  constructor() {
780
780
  this.left = st(), this.right = st();
781
781
  }
@@ -795,19 +795,19 @@ class Fs {
795
795
  this.left.close(), this.right.close();
796
796
  };
797
797
  }
798
- const Z = new Fs(), Bs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Ns = { class: "flex flex-1 flex-col" }, Ps = {
798
+ const Y = new Hs(), Fs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Bs = { class: "flex flex-1 flex-col" }, Vs = {
799
799
  class: "flex flex-1 flex-col gap-y-7",
800
800
  role: "list"
801
- }, Hs = { role: "list" }, Us = { class: "flex items-center pb-8" }, Vs = ["href", "onClick"], Ds = {
801
+ }, Ns = { role: "list" }, Ps = { class: "flex items-center pb-8" }, Ms = ["href", "onClick"], Us = {
802
802
  key: 2,
803
803
  class: "w-full flex justify-center"
804
- }, js = {
804
+ }, Ds = {
805
805
  key: 0,
806
806
  class: "mt-[5px] flex flex-col gap-[5px]"
807
- }, Ms = ["href", "onClick"], Is = {
807
+ }, js = ["href", "onClick"], Is = {
808
808
  key: 1,
809
809
  class: "text-[13px]"
810
- }, zs = { class: "mt-auto" }, qs = { class: "p-[10px] flex-shrink-0" }, Ws = { class: "flex flex-1 items-center gap-x-6" }, Js = { class: "relative flex flex-1 items-center gap-4" }, Ks = { class: "cursor-pointer" }, Gs = ["src"], Zs = { class: "ml-auto" }, Xs = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, Aa = {
810
+ }, zs = { class: "mt-auto" }, qs = { class: "p-[10px] flex-shrink-0" }, Zs = { class: "flex flex-1 items-center gap-x-6" }, Ws = { class: "relative flex flex-1 items-center gap-4" }, Gs = { class: "cursor-pointer" }, Js = ["src"], Ks = { class: "ml-auto" }, Xs = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, Ya = {
811
811
  __name: "SparkDefaultContainer",
812
812
  props: {
813
813
  appStore: {
@@ -820,109 +820,109 @@ const Z = new Fs(), Bs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Ns =
820
820
  }
821
821
  },
822
822
  setup(e) {
823
- const t = e, n = Ot(), s = () => {
824
- Z.showRight(os, {
823
+ const t = e, n = $t(), s = () => {
824
+ Y.showRight(os, {
825
825
  currentApp: t.appStore.state.app
826
826
  });
827
827
  }, r = () => {
828
- Z.showLeft(
829
- Ss,
828
+ Y.showLeft(
829
+ Cs,
830
830
  {},
831
831
  {
832
832
  select: (c) => {
833
- n.toggleBrand(c), Z.closeLeft();
833
+ n.toggleBrand(c), Y.closeLeft();
834
834
  }
835
835
  }
836
836
  );
837
- }, a = T(() => t.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [t.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), o = T(() => t.mainNavStore.state.hidden ? ["pl-2.5"] : [t.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
837
+ }, o = L(() => t.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [t.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), a = L(() => t.mainNavStore.state.hidden ? ["pl-2.5"] : [t.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
838
838
  return (c, l) => {
839
- const i = V("font-awesome-icon"), d = V("router-view");
840
- return g(), y(se, null, [
841
- p("div", {
842
- class: _([a.value, "fixed inset-y-0 flex transition-all z-100"])
839
+ const i = M("font-awesome-icon"), d = M("router-view");
840
+ return m(), g(ae, null, [
841
+ f("div", {
842
+ class: _([o.value, "fixed inset-y-0 flex transition-all z-100"])
843
843
  }, [
844
- p("div", Bs, [
845
- p("nav", Ns, [
846
- p("ul", Ps, [
847
- p("li", null, [
848
- p("ul", Hs, [
849
- p("li", Us, [
850
- p("a", {
844
+ f("div", Fs, [
845
+ f("nav", Bs, [
846
+ f("ul", Vs, [
847
+ f("li", null, [
848
+ f("ul", Ns, [
849
+ f("li", Ps, [
850
+ f("a", {
851
851
  class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
852
- onClick: l[0] || (l[0] = ce((f) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
852
+ onClick: l[0] || (l[0] = fe((p) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
853
853
  }, [
854
854
  v(i, {
855
- icon: x(N)[e.appStore.state.icon],
855
+ icon: x(B)[e.appStore.state.icon],
856
856
  class: "size-5"
857
857
  }, null, 8, ["icon"])
858
858
  ]),
859
- e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
859
+ e.mainNavStore.state.collapsed ? E("", !0) : (m(), g("a", {
860
860
  key: 0,
861
- onClick: l[1] || (l[1] = ce((f) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
861
+ onClick: l[1] || (l[1] = fe((p) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
862
862
  class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
863
- }, F(e.appStore.state.app), 1))
863
+ }, O(e.appStore.state.app), 1))
864
864
  ]),
865
- (g(!0), y(se, null, fe(e.mainNavStore.state.menu, (f) => (g(), y("li", {
866
- key: f.name,
865
+ (m(!0), g(ae, null, me(e.mainNavStore.state.menu, (p) => (m(), g("li", {
866
+ key: p.name,
867
867
  class: _({
868
- "mt-[10px]": f.children
868
+ "mt-[10px]": p.children
869
869
  })
870
870
  }, [
871
- p("a", {
871
+ f("a", {
872
872
  class: _([{
873
- "bg-gray-100": f.current,
874
- "hover:bg-gray-100": f?.href
873
+ "bg-gray-100": p.current,
874
+ "hover:bg-gray-100": p?.href
875
875
  }, "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
876
- href: f?.href,
877
- onClick: ce((b) => e.mainNavStore.goto(f.href), ["prevent"])
876
+ href: p?.href,
877
+ onClick: fe((b) => e.mainNavStore.goto(p.href), ["prevent"])
878
878
  }, [
879
- f.icon ? (g(), Y(i, {
879
+ p.icon ? (m(), te(i, {
880
880
  key: 0,
881
- icon: x(N)[f.icon],
882
- class: _([[(f.current, "text-gray-400")], "size-4"])
883
- }, null, 8, ["icon", "class"])) : R("", !0),
884
- e.mainNavStore.state.collapsed ? f?.children ? (g(), y("div", Ds, [...l[4] || (l[4] = [
885
- p("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
886
- ])])) : R("", !0) : (g(), y("span", {
881
+ icon: x(B)[p.icon],
882
+ class: _([[(p.current, "text-gray-400")], "size-4"])
883
+ }, null, 8, ["icon", "class"])) : E("", !0),
884
+ e.mainNavStore.state.collapsed ? p?.children ? (m(), g("div", Us, [...l[4] || (l[4] = [
885
+ f("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
886
+ ])])) : E("", !0) : (m(), g("span", {
887
887
  key: 1,
888
888
  class: _({
889
- "text-[11px]": f?.children,
890
- "text-[13px]": !f?.children,
891
- "font-semibold": f?.children,
892
- "text-gray-500": f?.children
889
+ "text-[11px]": p?.children,
890
+ "text-[13px]": !p?.children,
891
+ "font-semibold": p?.children,
892
+ "text-gray-500": p?.children
893
893
  })
894
- }, F(f.name), 3))
895
- ], 10, Vs),
896
- f.children ? (g(), y("ul", js, [
897
- (g(!0), y(se, null, fe(f.children, (b) => (g(), y("li", {
894
+ }, O(p.name), 3))
895
+ ], 10, Ms),
896
+ p.children ? (m(), g("ul", Ds, [
897
+ (m(!0), g(ae, null, me(p.children, (b) => (m(), g("li", {
898
898
  key: b.name
899
899
  }, [
900
- p("a", {
900
+ f("a", {
901
901
  class: _([[b.current ? "bg-gray-100" : "", "hover:bg-gray-100"], "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
902
902
  href: b.href,
903
- onClick: ce((E) => e.mainNavStore.goto(b.href), ["prevent"])
903
+ onClick: fe(($) => e.mainNavStore.goto(b.href), ["prevent"])
904
904
  }, [
905
- b.icon ? (g(), Y(i, {
905
+ b.icon ? (m(), te(i, {
906
906
  key: 0,
907
- icon: x(N)[b.icon],
907
+ icon: x(B)[b.icon],
908
908
  class: _([[(b.current, "text-gray-400")], "size-4"])
909
- }, null, 8, ["icon", "class"])) : R("", !0),
910
- e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", Is, F(b.name), 1))
911
- ], 10, Ms)
909
+ }, null, 8, ["icon", "class"])) : E("", !0),
910
+ e.mainNavStore.state.collapsed ? E("", !0) : (m(), g("span", Is, O(b.name), 1))
911
+ ], 10, js)
912
912
  ]))), 128))
913
- ])) : R("", !0)
913
+ ])) : E("", !0)
914
914
  ], 2))), 128))
915
915
  ])
916
916
  ]),
917
- p("li", zs, [
917
+ f("li", zs, [
918
918
  z(c.$slots, "sidebar-footer"),
919
- p("a", {
919
+ f("a", {
920
920
  class: "font-medium grid place-content-center gap-x-3 rounded-md h-10 p-2.5 text-gray-800 text-[13px] hover:bg-gray-100 transition-all duration-300 ease-in-out",
921
921
  href: "#",
922
- onClick: l[2] || (l[2] = ce((f) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
922
+ onClick: l[2] || (l[2] = fe((p) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
923
923
  }, [
924
924
  v(i, {
925
- icon: x(N)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
925
+ icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
926
926
  class: "class-5"
927
927
  }, null, 8, ["icon"])
928
928
  ])
@@ -931,137 +931,137 @@ const Z = new Fs(), Bs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Ns =
931
931
  ])
932
932
  ])
933
933
  ], 2),
934
- p("div", {
935
- class: _([o.value, "h-full transition-all flex flex-col"])
934
+ f("div", {
935
+ class: _([a.value, "h-full transition-all flex flex-col"])
936
936
  }, [
937
- p("div", qs, [
938
- p("div", Ws, [
939
- p("div", Js, [
937
+ f("div", qs, [
938
+ f("div", Zs, [
939
+ f("div", Ws, [
940
940
  z(c.$slots, "header-left", {}, () => [
941
- p("div", Ks, [
941
+ f("div", Gs, [
942
942
  v(i, {
943
- icon: x(N).farBarsSort,
943
+ icon: x(B).farBarsSort,
944
944
  class: "size-5",
945
- onClick: l[3] || (l[3] = (f) => e.mainNavStore.toggleHidden())
945
+ onClick: l[3] || (l[3] = (p) => e.mainNavStore.toggleHidden())
946
946
  }, null, 8, ["icon"])
947
947
  ])
948
948
  ]),
949
949
  z(c.$slots, "header-center", {}, () => [
950
- e.appStore.state.showBrandSelector ? (g(), y("div", {
950
+ e.appStore.state.showBrandSelector ? (m(), g("div", {
951
951
  key: 0,
952
952
  class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
953
953
  onClick: r
954
954
  }, [
955
- x(n).currentBrand ? (g(), y("img", {
955
+ x(n).currentBrand ? (m(), g("img", {
956
956
  key: 0,
957
957
  src: x(n).currentBrand.logo,
958
958
  alt: "",
959
959
  class: "h-[30px] w-auto"
960
- }, null, 8, Gs)) : R("", !0)
961
- ])) : R("", !0)
960
+ }, null, 8, Js)) : E("", !0)
961
+ ])) : E("", !0)
962
962
  ]),
963
- p("div", Zs, [
963
+ f("div", Ks, [
964
964
  z(c.$slots, "header-right", {}, () => [
965
- e.appStore.state.showAppSelector ? (g(), y("button", {
965
+ e.appStore.state.showAppSelector ? (m(), g("button", {
966
966
  key: 0,
967
967
  class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
968
968
  type: "button",
969
969
  onClick: s
970
970
  }, [
971
971
  v(i, {
972
- icon: x(N).farGripDotsVertical,
972
+ icon: x(B).farGripDotsVertical,
973
973
  class: "size-4 text-gray-400"
974
974
  }, null, 8, ["icon"])
975
- ])) : R("", !0)
975
+ ])) : E("", !0)
976
976
  ])
977
977
  ])
978
978
  ])
979
979
  ])
980
980
  ]),
981
- p("main", Xs, [
981
+ f("main", Xs, [
982
982
  v(d)
983
983
  ])
984
984
  ], 2),
985
985
  v(x(nt), {
986
986
  position: "left",
987
- "overlay-instance": x(Z).left,
988
- onClose: x(Z).closeLeft
987
+ "overlay-instance": x(Y).left,
988
+ onClose: x(Y).closeLeft
989
989
  }, null, 8, ["overlay-instance", "onClose"]),
990
990
  v(x(nt), {
991
991
  position: "right",
992
- "overlay-instance": x(Z).right,
993
- onClose: x(Z).closeRight
992
+ "overlay-instance": x(Y).right,
993
+ onClose: x(Y).closeRight
994
994
  }, null, 8, ["overlay-instance", "onClose"]),
995
995
  v(x(As))
996
996
  ], 64);
997
997
  };
998
998
  }
999
- }, Qs = (e, t) => {
999
+ }, Ys = (e, t) => {
1000
1000
  const n = e.__vccOpts || e;
1001
1001
  for (const [s, r] of t)
1002
1002
  n[s] = r;
1003
1003
  return n;
1004
- }, Ys = {}, er = { class: "h-full" };
1004
+ }, Qs = {}, er = { class: "h-full" };
1005
1005
  function tr(e, t) {
1006
- const n = V("router-view");
1007
- return g(), y("main", er, [
1006
+ const n = M("router-view");
1007
+ return m(), g("main", er, [
1008
1008
  v(n)
1009
1009
  ]);
1010
1010
  }
1011
- const Ta = /* @__PURE__ */ Qs(Ys, [["render", tr]]);
1011
+ const Qa = /* @__PURE__ */ Ys(Qs, [["render", tr]]);
1012
1012
  function At(e, t) {
1013
1013
  return function() {
1014
1014
  return e.apply(t, arguments);
1015
1015
  };
1016
1016
  }
1017
- const { toString: nr } = Object.prototype, { getPrototypeOf: We } = Object, { iterator: Te, toStringTag: Tt } = Symbol, $e = /* @__PURE__ */ ((e) => (t) => {
1017
+ const { toString: nr } = Object.prototype, { getPrototypeOf: Ze } = Object, { iterator: Le, toStringTag: Ot } = Symbol, Te = /* @__PURE__ */ ((e) => (t) => {
1018
1018
  const n = nr.call(t);
1019
1019
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1020
- })(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (t) => $e(t) === e), Le = (e) => (t) => typeof t === e, { isArray: ae } = Array, re = Le("undefined");
1021
- function pe(e) {
1022
- return e !== null && !re(e) && e.constructor !== null && !re(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1020
+ })(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Te(t) === e), He = (e) => (t) => typeof t === e, { isArray: ce } = Array, ie = He("undefined");
1021
+ function ge(e) {
1022
+ return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1023
1023
  }
1024
- const $t = j("ArrayBuffer");
1024
+ const Lt = D("ArrayBuffer");
1025
1025
  function sr(e) {
1026
1026
  let t;
1027
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && $t(e.buffer), t;
1027
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lt(e.buffer), t;
1028
1028
  }
1029
- const rr = Le("string"), P = Le("function"), Lt = Le("number"), he = (e) => e !== null && typeof e == "object", or = (e) => e === !0 || e === !1, Se = (e) => {
1030
- if ($e(e) !== "object")
1029
+ const rr = He("string"), V = He("function"), Tt = He("number"), ye = (e) => e !== null && typeof e == "object", or = (e) => e === !0 || e === !1, _e = (e) => {
1030
+ if (Te(e) !== "object")
1031
1031
  return !1;
1032
- const t = We(e);
1033
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Tt in e) && !(Te in e);
1032
+ const t = Ze(e);
1033
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ot in e) && !(Le in e);
1034
1034
  }, ar = (e) => {
1035
- if (!he(e) || pe(e))
1035
+ if (!ye(e) || ge(e))
1036
1036
  return !1;
1037
1037
  try {
1038
1038
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
1039
1039
  } catch {
1040
1040
  return !1;
1041
1041
  }
1042
- }, ir = j("Date"), lr = j("File"), cr = j("Blob"), ur = j("FileList"), dr = (e) => he(e) && P(e.pipe), fr = (e) => {
1042
+ }, ir = D("Date"), lr = D("File"), cr = D("Blob"), ur = D("FileList"), dr = (e) => ye(e) && V(e.pipe), fr = (e) => {
1043
1043
  let t;
1044
- return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = $e(e)) === "formdata" || // detect form-data instance
1045
- t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
1046
- }, pr = j("URLSearchParams"), [hr, mr, gr, yr] = ["ReadableStream", "Request", "Response", "Headers"].map(j), wr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1047
- function me(e, t, { allOwnKeys: n = !1 } = {}) {
1044
+ return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Te(e)) === "formdata" || // detect form-data instance
1045
+ t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
1046
+ }, pr = D("URLSearchParams"), [hr, mr, gr, yr] = ["ReadableStream", "Request", "Response", "Headers"].map(D), wr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1047
+ function we(e, t, { allOwnKeys: n = !1 } = {}) {
1048
1048
  if (e === null || typeof e > "u")
1049
1049
  return;
1050
1050
  let s, r;
1051
- if (typeof e != "object" && (e = [e]), ae(e))
1051
+ if (typeof e != "object" && (e = [e]), ce(e))
1052
1052
  for (s = 0, r = e.length; s < r; s++)
1053
1053
  t.call(null, e[s], s, e);
1054
1054
  else {
1055
- if (pe(e))
1055
+ if (ge(e))
1056
1056
  return;
1057
- const a = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = a.length;
1057
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
1058
1058
  let c;
1059
- for (s = 0; s < o; s++)
1060
- c = a[s], t.call(null, e[c], c, e);
1059
+ for (s = 0; s < a; s++)
1060
+ c = o[s], t.call(null, e[c], c, e);
1061
1061
  }
1062
1062
  }
1063
- function Ft(e, t) {
1064
- if (pe(e))
1063
+ function Ht(e, t) {
1064
+ if (ge(e))
1065
1065
  return null;
1066
1066
  t = t.toLowerCase();
1067
1067
  const n = Object.keys(e);
@@ -1071,51 +1071,51 @@ function Ft(e, t) {
1071
1071
  return r;
1072
1072
  return null;
1073
1073
  }
1074
- const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Bt = (e) => !re(e) && e !== X;
1074
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ft = (e) => !ie(e) && e !== Q;
1075
1075
  function je() {
1076
- const { caseless: e, skipUndefined: t } = Bt(this) && this || {}, n = {}, s = (r, a) => {
1077
- const o = e && Ft(n, a) || a;
1078
- Se(n[o]) && Se(r) ? n[o] = je(n[o], r) : Se(r) ? n[o] = je({}, r) : ae(r) ? n[o] = r.slice() : (!t || !re(r)) && (n[o] = r);
1076
+ const { caseless: e, skipUndefined: t } = Ft(this) && this || {}, n = {}, s = (r, o) => {
1077
+ const a = e && Ht(n, o) || o;
1078
+ _e(n[a]) && _e(r) ? n[a] = je(n[a], r) : _e(r) ? n[a] = je({}, r) : ce(r) ? n[a] = r.slice() : (!t || !ie(r)) && (n[a] = r);
1079
1079
  };
1080
- for (let r = 0, a = arguments.length; r < a; r++)
1081
- arguments[r] && me(arguments[r], s);
1080
+ for (let r = 0, o = arguments.length; r < o; r++)
1081
+ arguments[r] && we(arguments[r], s);
1082
1082
  return n;
1083
1083
  }
1084
- const br = (e, t, n, { allOwnKeys: s } = {}) => (me(t, (r, a) => {
1085
- n && P(r) ? e[a] = At(r, n) : e[a] = r;
1086
- }, { allOwnKeys: s }), e), xr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Sr = (e, t, n, s) => {
1084
+ const br = (e, t, n, { allOwnKeys: s } = {}) => (we(t, (r, o) => {
1085
+ n && V(r) ? e[o] = At(r, n) : e[o] = r;
1086
+ }, { allOwnKeys: s }), e), xr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Cr = (e, t, n, s) => {
1087
1087
  e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1088
1088
  value: t.prototype
1089
1089
  }), n && Object.assign(e.prototype, n);
1090
1090
  }, vr = (e, t, n, s) => {
1091
- let r, a, o;
1091
+ let r, o, a;
1092
1092
  const c = {};
1093
1093
  if (t = t || {}, e == null) return t;
1094
1094
  do {
1095
- for (r = Object.getOwnPropertyNames(e), a = r.length; a-- > 0; )
1096
- o = r[a], (!s || s(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
1097
- e = n !== !1 && We(e);
1095
+ for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
1096
+ a = r[o], (!s || s(a, e, t)) && !c[a] && (t[a] = e[a], c[a] = !0);
1097
+ e = n !== !1 && Ze(e);
1098
1098
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
1099
1099
  return t;
1100
- }, Cr = (e, t, n) => {
1100
+ }, Sr = (e, t, n) => {
1101
1101
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
1102
1102
  const s = e.indexOf(t, n);
1103
1103
  return s !== -1 && s === n;
1104
1104
  }, _r = (e) => {
1105
1105
  if (!e) return null;
1106
- if (ae(e)) return e;
1106
+ if (ce(e)) return e;
1107
1107
  let t = e.length;
1108
- if (!Lt(t)) return null;
1108
+ if (!Tt(t)) return null;
1109
1109
  const n = new Array(t);
1110
1110
  for (; t-- > 0; )
1111
1111
  n[t] = e[t];
1112
1112
  return n;
1113
- }, kr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && We(Uint8Array)), Rr = (e, t) => {
1114
- const s = (e && e[Te]).call(e);
1113
+ }, kr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ze(Uint8Array)), Rr = (e, t) => {
1114
+ const s = (e && e[Le]).call(e);
1115
1115
  let r;
1116
1116
  for (; (r = s.next()) && !r.done; ) {
1117
- const a = r.value;
1118
- t.call(e, a[0], a[1]);
1117
+ const o = r.value;
1118
+ t.call(e, o[0], o[1]);
1119
1119
  }
1120
1120
  }, Er = (e, t) => {
1121
1121
  let n;
@@ -1123,23 +1123,23 @@ const br = (e, t, n, { allOwnKeys: s } = {}) => (me(t, (r, a) => {
1123
1123
  for (; (n = e.exec(t)) !== null; )
1124
1124
  s.push(n);
1125
1125
  return s;
1126
- }, Or = j("HTMLFormElement"), Ar = (e) => e.toLowerCase().replace(
1126
+ }, $r = D("HTMLFormElement"), Ar = (e) => e.toLowerCase().replace(
1127
1127
  /[-_\s]([a-z\d])(\w*)/g,
1128
1128
  function(n, s, r) {
1129
1129
  return s.toUpperCase() + r;
1130
1130
  }
1131
- ), rt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Tr = j("RegExp"), Nt = (e, t) => {
1131
+ ), rt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Or = D("RegExp"), Bt = (e, t) => {
1132
1132
  const n = Object.getOwnPropertyDescriptors(e), s = {};
1133
- me(n, (r, a) => {
1134
- let o;
1135
- (o = t(r, a, e)) !== !1 && (s[a] = o || r);
1133
+ we(n, (r, o) => {
1134
+ let a;
1135
+ (a = t(r, o, e)) !== !1 && (s[o] = a || r);
1136
1136
  }), Object.defineProperties(e, s);
1137
- }, $r = (e) => {
1138
- Nt(e, (t, n) => {
1139
- if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1137
+ }, Lr = (e) => {
1138
+ Bt(e, (t, n) => {
1139
+ if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1140
1140
  return !1;
1141
1141
  const s = e[n];
1142
- if (P(s)) {
1142
+ if (V(s)) {
1143
1143
  if (t.enumerable = !1, "writable" in t) {
1144
1144
  t.writable = !1;
1145
1145
  return;
@@ -1149,108 +1149,108 @@ const br = (e, t, n, { allOwnKeys: s } = {}) => (me(t, (r, a) => {
1149
1149
  });
1150
1150
  }
1151
1151
  });
1152
- }, Lr = (e, t) => {
1152
+ }, Tr = (e, t) => {
1153
1153
  const n = {}, s = (r) => {
1154
- r.forEach((a) => {
1155
- n[a] = !0;
1154
+ r.forEach((o) => {
1155
+ n[o] = !0;
1156
1156
  });
1157
1157
  };
1158
- return ae(e) ? s(e) : s(String(e).split(t)), n;
1159
- }, Fr = () => {
1160
- }, Br = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1161
- function Nr(e) {
1162
- return !!(e && P(e.append) && e[Tt] === "FormData" && e[Te]);
1158
+ return ce(e) ? s(e) : s(String(e).split(t)), n;
1159
+ }, Hr = () => {
1160
+ }, Fr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1161
+ function Br(e) {
1162
+ return !!(e && V(e.append) && e[Ot] === "FormData" && e[Le]);
1163
1163
  }
1164
- const Pr = (e) => {
1164
+ const Vr = (e) => {
1165
1165
  const t = new Array(10), n = (s, r) => {
1166
- if (he(s)) {
1166
+ if (ye(s)) {
1167
1167
  if (t.indexOf(s) >= 0)
1168
1168
  return;
1169
- if (pe(s))
1169
+ if (ge(s))
1170
1170
  return s;
1171
1171
  if (!("toJSON" in s)) {
1172
1172
  t[r] = s;
1173
- const a = ae(s) ? [] : {};
1174
- return me(s, (o, c) => {
1175
- const l = n(o, r + 1);
1176
- !re(l) && (a[c] = l);
1177
- }), t[r] = void 0, a;
1173
+ const o = ce(s) ? [] : {};
1174
+ return we(s, (a, c) => {
1175
+ const l = n(a, r + 1);
1176
+ !ie(l) && (o[c] = l);
1177
+ }), t[r] = void 0, o;
1178
1178
  }
1179
1179
  }
1180
1180
  return s;
1181
1181
  };
1182
1182
  return n(e, 0);
1183
- }, Hr = j("AsyncFunction"), Ur = (e) => e && (he(e) || P(e)) && P(e.then) && P(e.catch), Pt = ((e, t) => e ? setImmediate : t ? ((n, s) => (X.addEventListener("message", ({ source: r, data: a }) => {
1184
- r === X && a === n && s.length && s.shift()();
1183
+ }, Nr = D("AsyncFunction"), Pr = (e) => e && (ye(e) || V(e)) && V(e.then) && V(e.catch), Vt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Q.addEventListener("message", ({ source: r, data: o }) => {
1184
+ r === Q && o === n && s.length && s.shift()();
1185
1185
  }, !1), (r) => {
1186
- s.push(r), X.postMessage(n, "*");
1186
+ s.push(r), Q.postMessage(n, "*");
1187
1187
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1188
1188
  typeof setImmediate == "function",
1189
- P(X.postMessage)
1190
- ), Vr = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || Pt, Dr = (e) => e != null && P(e[Te]), u = {
1191
- isArray: ae,
1192
- isArrayBuffer: $t,
1193
- isBuffer: pe,
1189
+ V(Q.postMessage)
1190
+ ), Mr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Vt, Ur = (e) => e != null && V(e[Le]), u = {
1191
+ isArray: ce,
1192
+ isArrayBuffer: Lt,
1193
+ isBuffer: ge,
1194
1194
  isFormData: fr,
1195
1195
  isArrayBufferView: sr,
1196
1196
  isString: rr,
1197
- isNumber: Lt,
1197
+ isNumber: Tt,
1198
1198
  isBoolean: or,
1199
- isObject: he,
1200
- isPlainObject: Se,
1199
+ isObject: ye,
1200
+ isPlainObject: _e,
1201
1201
  isEmptyObject: ar,
1202
1202
  isReadableStream: hr,
1203
1203
  isRequest: mr,
1204
1204
  isResponse: gr,
1205
1205
  isHeaders: yr,
1206
- isUndefined: re,
1206
+ isUndefined: ie,
1207
1207
  isDate: ir,
1208
1208
  isFile: lr,
1209
1209
  isBlob: cr,
1210
- isRegExp: Tr,
1211
- isFunction: P,
1210
+ isRegExp: Or,
1211
+ isFunction: V,
1212
1212
  isStream: dr,
1213
1213
  isURLSearchParams: pr,
1214
1214
  isTypedArray: kr,
1215
1215
  isFileList: ur,
1216
- forEach: me,
1216
+ forEach: we,
1217
1217
  merge: je,
1218
1218
  extend: br,
1219
1219
  trim: wr,
1220
1220
  stripBOM: xr,
1221
- inherits: Sr,
1221
+ inherits: Cr,
1222
1222
  toFlatObject: vr,
1223
- kindOf: $e,
1224
- kindOfTest: j,
1225
- endsWith: Cr,
1223
+ kindOf: Te,
1224
+ kindOfTest: D,
1225
+ endsWith: Sr,
1226
1226
  toArray: _r,
1227
1227
  forEachEntry: Rr,
1228
1228
  matchAll: Er,
1229
- isHTMLForm: Or,
1229
+ isHTMLForm: $r,
1230
1230
  hasOwnProperty: rt,
1231
1231
  hasOwnProp: rt,
1232
1232
  // an alias to avoid ESLint no-prototype-builtins detection
1233
- reduceDescriptors: Nt,
1234
- freezeMethods: $r,
1235
- toObjectSet: Lr,
1233
+ reduceDescriptors: Bt,
1234
+ freezeMethods: Lr,
1235
+ toObjectSet: Tr,
1236
1236
  toCamelCase: Ar,
1237
- noop: Fr,
1238
- toFiniteNumber: Br,
1239
- findKey: Ft,
1240
- global: X,
1241
- isContextDefined: Bt,
1242
- isSpecCompliantForm: Nr,
1243
- toJSONObject: Pr,
1244
- isAsyncFn: Hr,
1245
- isThenable: Ur,
1246
- setImmediate: Pt,
1247
- asap: Vr,
1248
- isIterable: Dr
1237
+ noop: Hr,
1238
+ toFiniteNumber: Fr,
1239
+ findKey: Ht,
1240
+ global: Q,
1241
+ isContextDefined: Ft,
1242
+ isSpecCompliantForm: Br,
1243
+ toJSONObject: Vr,
1244
+ isAsyncFn: Nr,
1245
+ isThenable: Pr,
1246
+ setImmediate: Vt,
1247
+ asap: Mr,
1248
+ isIterable: Ur
1249
1249
  };
1250
- function S(e, t, n, s, r) {
1250
+ function C(e, t, n, s, r) {
1251
1251
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
1252
1252
  }
1253
- u.inherits(S, Error, {
1253
+ u.inherits(C, Error, {
1254
1254
  toJSON: function() {
1255
1255
  return {
1256
1256
  // Standard
@@ -1271,7 +1271,7 @@ u.inherits(S, Error, {
1271
1271
  };
1272
1272
  }
1273
1273
  });
1274
- const Ht = S.prototype, Ut = {};
1274
+ const Nt = C.prototype, Pt = {};
1275
1275
  [
1276
1276
  "ERR_BAD_OPTION_VALUE",
1277
1277
  "ERR_BAD_OPTION",
@@ -1287,32 +1287,32 @@ const Ht = S.prototype, Ut = {};
1287
1287
  "ERR_INVALID_URL"
1288
1288
  // eslint-disable-next-line func-names
1289
1289
  ].forEach((e) => {
1290
- Ut[e] = { value: e };
1290
+ Pt[e] = { value: e };
1291
1291
  });
1292
- Object.defineProperties(S, Ut);
1293
- Object.defineProperty(Ht, "isAxiosError", { value: !0 });
1294
- S.from = (e, t, n, s, r, a) => {
1295
- const o = Object.create(Ht);
1296
- u.toFlatObject(e, o, function(d) {
1292
+ Object.defineProperties(C, Pt);
1293
+ Object.defineProperty(Nt, "isAxiosError", { value: !0 });
1294
+ C.from = (e, t, n, s, r, o) => {
1295
+ const a = Object.create(Nt);
1296
+ u.toFlatObject(e, a, function(d) {
1297
1297
  return d !== Error.prototype;
1298
1298
  }, (i) => i !== "isAxiosError");
1299
1299
  const c = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
1300
- return S.call(o, c, l, n, s, r), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", a && Object.assign(o, a), o;
1300
+ return C.call(a, c, l, n, s, r), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", o && Object.assign(a, o), a;
1301
1301
  };
1302
- const jr = null;
1303
- function Me(e) {
1302
+ const Dr = null;
1303
+ function Ie(e) {
1304
1304
  return u.isPlainObject(e) || u.isArray(e);
1305
1305
  }
1306
- function Vt(e) {
1306
+ function Mt(e) {
1307
1307
  return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
1308
1308
  }
1309
1309
  function ot(e, t, n) {
1310
- return e ? e.concat(t).map(function(r, a) {
1311
- return r = Vt(r), !n && a ? "[" + r + "]" : r;
1310
+ return e ? e.concat(t).map(function(r, o) {
1311
+ return r = Mt(r), !n && o ? "[" + r + "]" : r;
1312
1312
  }).join(n ? "." : "") : t;
1313
1313
  }
1314
- function Mr(e) {
1315
- return u.isArray(e) && !e.some(Me);
1314
+ function jr(e) {
1315
+ return u.isArray(e) && !e.some(Ie);
1316
1316
  }
1317
1317
  const Ir = u.toFlatObject(u, {}, null, function(t) {
1318
1318
  return /^is[A-Z]/.test(t);
@@ -1324,10 +1324,10 @@ function Fe(e, t, n) {
1324
1324
  metaTokens: !0,
1325
1325
  dots: !1,
1326
1326
  indexes: !1
1327
- }, !1, function(w, m) {
1328
- return !u.isUndefined(m[w]);
1327
+ }, !1, function(w, y) {
1328
+ return !u.isUndefined(y[w]);
1329
1329
  });
1330
- const s = n.metaTokens, r = n.visitor || d, a = n.dots, o = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
1330
+ const s = n.metaTokens, r = n.visitor || d, o = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
1331
1331
  if (!u.isFunction(r))
1332
1332
  throw new TypeError("visitor must be a function");
1333
1333
  function i(h) {
@@ -1337,48 +1337,48 @@ function Fe(e, t, n) {
1337
1337
  if (u.isBoolean(h))
1338
1338
  return h.toString();
1339
1339
  if (!l && u.isBlob(h))
1340
- throw new S("Blob is not supported. Use a Buffer instead.");
1340
+ throw new C("Blob is not supported. Use a Buffer instead.");
1341
1341
  return u.isArrayBuffer(h) || u.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
1342
1342
  }
1343
- function d(h, w, m) {
1344
- let k = h;
1345
- if (h && !m && typeof h == "object") {
1343
+ function d(h, w, y) {
1344
+ let R = h;
1345
+ if (h && !y && typeof h == "object") {
1346
1346
  if (u.endsWith(w, "{}"))
1347
1347
  w = s ? w : w.slice(0, -2), h = JSON.stringify(h);
1348
- else if (u.isArray(h) && Mr(h) || (u.isFileList(h) || u.endsWith(w, "[]")) && (k = u.toArray(h)))
1349
- return w = Vt(w), k.forEach(function(A, B) {
1348
+ else if (u.isArray(h) && jr(h) || (u.isFileList(h) || u.endsWith(w, "[]")) && (R = u.toArray(h)))
1349
+ return w = Mt(w), R.forEach(function(A, F) {
1350
1350
  !(u.isUndefined(A) || A === null) && t.append(
1351
1351
  // eslint-disable-next-line no-nested-ternary
1352
- o === !0 ? ot([w], B, a) : o === null ? w : w + "[]",
1352
+ a === !0 ? ot([w], F, o) : a === null ? w : w + "[]",
1353
1353
  i(A)
1354
1354
  );
1355
1355
  }), !1;
1356
1356
  }
1357
- return Me(h) ? !0 : (t.append(ot(m, w, a), i(h)), !1);
1357
+ return Ie(h) ? !0 : (t.append(ot(y, w, o), i(h)), !1);
1358
1358
  }
1359
- const f = [], b = Object.assign(Ir, {
1359
+ const p = [], b = Object.assign(Ir, {
1360
1360
  defaultVisitor: d,
1361
1361
  convertValue: i,
1362
- isVisitable: Me
1362
+ isVisitable: Ie
1363
1363
  });
1364
- function E(h, w) {
1364
+ function $(h, w) {
1365
1365
  if (!u.isUndefined(h)) {
1366
- if (f.indexOf(h) !== -1)
1366
+ if (p.indexOf(h) !== -1)
1367
1367
  throw Error("Circular reference detected in " + w.join("."));
1368
- f.push(h), u.forEach(h, function(k, $) {
1369
- (!(u.isUndefined(k) || k === null) && r.call(
1368
+ p.push(h), u.forEach(h, function(R, T) {
1369
+ (!(u.isUndefined(R) || R === null) && r.call(
1370
1370
  t,
1371
- k,
1372
- u.isString($) ? $.trim() : $,
1371
+ R,
1372
+ u.isString(T) ? T.trim() : T,
1373
1373
  w,
1374
1374
  b
1375
- )) === !0 && E(k, w ? w.concat($) : [$]);
1376
- }), f.pop();
1375
+ )) === !0 && $(R, w ? w.concat(T) : [T]);
1376
+ }), p.pop();
1377
1377
  }
1378
1378
  }
1379
1379
  if (!u.isObject(e))
1380
1380
  throw new TypeError("data must be an object");
1381
- return E(e), t;
1381
+ return $(e), t;
1382
1382
  }
1383
1383
  function at(e) {
1384
1384
  const t = {
@@ -1394,14 +1394,14 @@ function at(e) {
1394
1394
  return t[s];
1395
1395
  });
1396
1396
  }
1397
- function Je(e, t) {
1397
+ function We(e, t) {
1398
1398
  this._pairs = [], e && Fe(e, this, t);
1399
1399
  }
1400
- const Dt = Je.prototype;
1401
- Dt.append = function(t, n) {
1400
+ const Ut = We.prototype;
1401
+ Ut.append = function(t, n) {
1402
1402
  this._pairs.push([t, n]);
1403
1403
  };
1404
- Dt.toString = function(t) {
1404
+ Ut.toString = function(t) {
1405
1405
  const n = t ? function(s) {
1406
1406
  return t.call(this, s, at);
1407
1407
  } : at;
@@ -1412,7 +1412,7 @@ Dt.toString = function(t) {
1412
1412
  function zr(e) {
1413
1413
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1414
1414
  }
1415
- function jt(e, t, n) {
1415
+ function Dt(e, t, n) {
1416
1416
  if (!t)
1417
1417
  return e;
1418
1418
  const s = n && n.encode || zr;
@@ -1420,10 +1420,10 @@ function jt(e, t, n) {
1420
1420
  serialize: n
1421
1421
  });
1422
1422
  const r = n && n.serialize;
1423
- let a;
1424
- if (r ? a = r(t, n) : a = u.isURLSearchParams(t) ? t.toString() : new Je(t, n).toString(s), a) {
1425
- const o = e.indexOf("#");
1426
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
1423
+ let o;
1424
+ if (r ? o = r(t, n) : o = u.isURLSearchParams(t) ? t.toString() : new We(t, n).toString(s), o) {
1425
+ const a = e.indexOf("#");
1426
+ a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
1427
1427
  }
1428
1428
  return e;
1429
1429
  }
@@ -1481,34 +1481,34 @@ class it {
1481
1481
  });
1482
1482
  }
1483
1483
  }
1484
- const Mt = {
1484
+ const jt = {
1485
1485
  silentJSONParsing: !0,
1486
1486
  forcedJSONParsing: !0,
1487
1487
  clarifyTimeoutError: !1
1488
- }, qr = typeof URLSearchParams < "u" ? URLSearchParams : Je, Wr = typeof FormData < "u" ? FormData : null, Jr = typeof Blob < "u" ? Blob : null, Kr = {
1488
+ }, qr = typeof URLSearchParams < "u" ? URLSearchParams : We, Zr = typeof FormData < "u" ? FormData : null, Wr = typeof Blob < "u" ? Blob : null, Gr = {
1489
1489
  isBrowser: !0,
1490
1490
  classes: {
1491
1491
  URLSearchParams: qr,
1492
- FormData: Wr,
1493
- Blob: Jr
1492
+ FormData: Zr,
1493
+ Blob: Wr
1494
1494
  },
1495
1495
  protocols: ["http", "https", "file", "blob", "url", "data"]
1496
- }, Ke = typeof window < "u" && typeof document < "u", Ie = typeof navigator == "object" && navigator || void 0, Gr = Ke && (!Ie || ["ReactNative", "NativeScript", "NS"].indexOf(Ie.product) < 0), Zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1497
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xr = Ke && window.location.href || "http://localhost", Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1496
+ }, Ge = typeof window < "u" && typeof document < "u", ze = typeof navigator == "object" && navigator || void 0, Jr = Ge && (!ze || ["ReactNative", "NativeScript", "NS"].indexOf(ze.product) < 0), Kr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1497
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xr = Ge && window.location.href || "http://localhost", Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1498
1498
  __proto__: null,
1499
- hasBrowserEnv: Ke,
1500
- hasStandardBrowserEnv: Gr,
1501
- hasStandardBrowserWebWorkerEnv: Zr,
1502
- navigator: Ie,
1499
+ hasBrowserEnv: Ge,
1500
+ hasStandardBrowserEnv: Jr,
1501
+ hasStandardBrowserWebWorkerEnv: Kr,
1502
+ navigator: ze,
1503
1503
  origin: Xr
1504
- }, Symbol.toStringTag, { value: "Module" })), L = {
1505
- ...Qr,
1506
- ...Kr
1504
+ }, Symbol.toStringTag, { value: "Module" })), H = {
1505
+ ...Yr,
1506
+ ...Gr
1507
1507
  };
1508
- function Yr(e, t) {
1509
- return Fe(e, new L.classes.URLSearchParams(), {
1510
- visitor: function(n, s, r, a) {
1511
- return L.isNode && u.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
1508
+ function Qr(e, t) {
1509
+ return Fe(e, new H.classes.URLSearchParams(), {
1510
+ visitor: function(n, s, r, o) {
1511
+ return H.isNode && u.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1512
1512
  },
1513
1513
  ...t
1514
1514
  });
@@ -1520,17 +1520,17 @@ function to(e) {
1520
1520
  const t = {}, n = Object.keys(e);
1521
1521
  let s;
1522
1522
  const r = n.length;
1523
- let a;
1523
+ let o;
1524
1524
  for (s = 0; s < r; s++)
1525
- a = n[s], t[a] = e[a];
1525
+ o = n[s], t[o] = e[o];
1526
1526
  return t;
1527
1527
  }
1528
1528
  function It(e) {
1529
- function t(n, s, r, a) {
1530
- let o = n[a++];
1531
- if (o === "__proto__") return !0;
1532
- const c = Number.isFinite(+o), l = a >= n.length;
1533
- return o = !o && u.isArray(r) ? r.length : o, l ? (u.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !c) : ((!r[o] || !u.isObject(r[o])) && (r[o] = []), t(n, s, r[o], a) && u.isArray(r[o]) && (r[o] = to(r[o])), !c);
1529
+ function t(n, s, r, o) {
1530
+ let a = n[o++];
1531
+ if (a === "__proto__") return !0;
1532
+ const c = Number.isFinite(+a), l = o >= n.length;
1533
+ return a = !a && u.isArray(r) ? r.length : a, l ? (u.hasOwnProp(r, a) ? r[a] = [r[a], s] : r[a] = s, !c) : ((!r[a] || !u.isObject(r[a])) && (r[a] = []), t(n, s, r[a], o) && u.isArray(r[a]) && (r[a] = to(r[a])), !c);
1534
1534
  }
1535
1535
  if (u.isFormData(e) && u.isFunction(e.entries)) {
1536
1536
  const n = {};
@@ -1550,12 +1550,12 @@ function no(e, t, n) {
1550
1550
  }
1551
1551
  return (n || JSON.stringify)(e);
1552
1552
  }
1553
- const ge = {
1554
- transitional: Mt,
1553
+ const be = {
1554
+ transitional: jt,
1555
1555
  adapter: ["xhr", "http", "fetch"],
1556
1556
  transformRequest: [function(t, n) {
1557
- const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, a = u.isObject(t);
1558
- if (a && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
1557
+ const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = u.isObject(t);
1558
+ if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
1559
1559
  return r ? JSON.stringify(It(t)) : t;
1560
1560
  if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
1561
1561
  return t;
@@ -1564,9 +1564,9 @@ const ge = {
1564
1564
  if (u.isURLSearchParams(t))
1565
1565
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1566
1566
  let c;
1567
- if (a) {
1567
+ if (o) {
1568
1568
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
1569
- return Yr(t, this.formSerializer).toString();
1569
+ return Qr(t, this.formSerializer).toString();
1570
1570
  if ((c = u.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
1571
1571
  const l = this.env && this.env.FormData;
1572
1572
  return Fe(
@@ -1576,19 +1576,19 @@ const ge = {
1576
1576
  );
1577
1577
  }
1578
1578
  }
1579
- return a || r ? (n.setContentType("application/json", !1), no(t)) : t;
1579
+ return o || r ? (n.setContentType("application/json", !1), no(t)) : t;
1580
1580
  }],
1581
1581
  transformResponse: [function(t) {
1582
- const n = this.transitional || ge.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
1582
+ const n = this.transitional || be.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
1583
1583
  if (u.isResponse(t) || u.isReadableStream(t))
1584
1584
  return t;
1585
1585
  if (t && u.isString(t) && (s && !this.responseType || r)) {
1586
- const o = !(n && n.silentJSONParsing) && r;
1586
+ const a = !(n && n.silentJSONParsing) && r;
1587
1587
  try {
1588
1588
  return JSON.parse(t, this.parseReviver);
1589
1589
  } catch (c) {
1590
- if (o)
1591
- throw c.name === "SyntaxError" ? S.from(c, S.ERR_BAD_RESPONSE, this, null, this.response) : c;
1590
+ if (a)
1591
+ throw c.name === "SyntaxError" ? C.from(c, C.ERR_BAD_RESPONSE, this, null, this.response) : c;
1592
1592
  }
1593
1593
  }
1594
1594
  return t;
@@ -1603,8 +1603,8 @@ const ge = {
1603
1603
  maxContentLength: -1,
1604
1604
  maxBodyLength: -1,
1605
1605
  env: {
1606
- FormData: L.classes.FormData,
1607
- Blob: L.classes.Blob
1606
+ FormData: H.classes.FormData,
1607
+ Blob: H.classes.Blob
1608
1608
  },
1609
1609
  validateStatus: function(t) {
1610
1610
  return t >= 200 && t < 300;
@@ -1617,7 +1617,7 @@ const ge = {
1617
1617
  }
1618
1618
  };
1619
1619
  u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1620
- ge.headers[e] = {};
1620
+ be.headers[e] = {};
1621
1621
  });
1622
1622
  const so = u.toObjectSet([
1623
1623
  "age",
@@ -1641,15 +1641,15 @@ const so = u.toObjectSet([
1641
1641
  const t = {};
1642
1642
  let n, s, r;
1643
1643
  return e && e.split(`
1644
- `).forEach(function(o) {
1645
- r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || t[n] && so[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1644
+ `).forEach(function(a) {
1645
+ r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && so[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1646
1646
  }), t;
1647
1647
  }, lt = Symbol("internals");
1648
- function de(e) {
1648
+ function he(e) {
1649
1649
  return e && String(e).trim().toLowerCase();
1650
1650
  }
1651
- function ve(e) {
1652
- return e === !1 || e == null ? e : u.isArray(e) ? e.map(ve) : String(e);
1651
+ function ke(e) {
1652
+ return e === !1 || e == null ? e : u.isArray(e) ? e.map(ke) : String(e);
1653
1653
  }
1654
1654
  function oo(e) {
1655
1655
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -1659,7 +1659,7 @@ function oo(e) {
1659
1659
  return t;
1660
1660
  }
1661
1661
  const ao = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1662
- function He(e, t, n, s, r) {
1662
+ function Pe(e, t, n, s, r) {
1663
1663
  if (u.isFunction(s))
1664
1664
  return s.call(this, t, n);
1665
1665
  if (r && (t = n), !!u.isString(t)) {
@@ -1676,31 +1676,31 @@ function lo(e, t) {
1676
1676
  const n = u.toCamelCase(" " + t);
1677
1677
  ["get", "set", "has"].forEach((s) => {
1678
1678
  Object.defineProperty(e, s + n, {
1679
- value: function(r, a, o) {
1680
- return this[s].call(this, t, r, a, o);
1679
+ value: function(r, o, a) {
1680
+ return this[s].call(this, t, r, o, a);
1681
1681
  },
1682
1682
  configurable: !0
1683
1683
  });
1684
1684
  });
1685
1685
  }
1686
- let H = class {
1686
+ let N = class {
1687
1687
  constructor(t) {
1688
1688
  t && this.set(t);
1689
1689
  }
1690
1690
  set(t, n, s) {
1691
1691
  const r = this;
1692
- function a(c, l, i) {
1693
- const d = de(l);
1692
+ function o(c, l, i) {
1693
+ const d = he(l);
1694
1694
  if (!d)
1695
1695
  throw new Error("header name must be a non-empty string");
1696
- const f = u.findKey(r, d);
1697
- (!f || r[f] === void 0 || i === !0 || i === void 0 && r[f] !== !1) && (r[f || l] = ve(c));
1696
+ const p = u.findKey(r, d);
1697
+ (!p || r[p] === void 0 || i === !0 || i === void 0 && r[p] !== !1) && (r[p || l] = ke(c));
1698
1698
  }
1699
- const o = (c, l) => u.forEach(c, (i, d) => a(i, d, l));
1699
+ const a = (c, l) => u.forEach(c, (i, d) => o(i, d, l));
1700
1700
  if (u.isPlainObject(t) || t instanceof this.constructor)
1701
- o(t, n);
1701
+ a(t, n);
1702
1702
  else if (u.isString(t) && (t = t.trim()) && !ao(t))
1703
- o(ro(t), n);
1703
+ a(ro(t), n);
1704
1704
  else if (u.isObject(t) && u.isIterable(t)) {
1705
1705
  let c = {}, l, i;
1706
1706
  for (const d of t) {
@@ -1708,13 +1708,13 @@ let H = class {
1708
1708
  throw TypeError("Object iterator must return a key-value pair");
1709
1709
  c[i = d[0]] = (l = c[i]) ? u.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
1710
1710
  }
1711
- o(c, n);
1711
+ a(c, n);
1712
1712
  } else
1713
- t != null && a(n, t, s);
1713
+ t != null && o(n, t, s);
1714
1714
  return this;
1715
1715
  }
1716
1716
  get(t, n) {
1717
- if (t = de(t), t) {
1717
+ if (t = he(t), t) {
1718
1718
  const s = u.findKey(this, t);
1719
1719
  if (s) {
1720
1720
  const r = this[s];
@@ -1731,42 +1731,42 @@ let H = class {
1731
1731
  }
1732
1732
  }
1733
1733
  has(t, n) {
1734
- if (t = de(t), t) {
1734
+ if (t = he(t), t) {
1735
1735
  const s = u.findKey(this, t);
1736
- return !!(s && this[s] !== void 0 && (!n || He(this, this[s], s, n)));
1736
+ return !!(s && this[s] !== void 0 && (!n || Pe(this, this[s], s, n)));
1737
1737
  }
1738
1738
  return !1;
1739
1739
  }
1740
1740
  delete(t, n) {
1741
1741
  const s = this;
1742
1742
  let r = !1;
1743
- function a(o) {
1744
- if (o = de(o), o) {
1745
- const c = u.findKey(s, o);
1746
- c && (!n || He(s, s[c], c, n)) && (delete s[c], r = !0);
1743
+ function o(a) {
1744
+ if (a = he(a), a) {
1745
+ const c = u.findKey(s, a);
1746
+ c && (!n || Pe(s, s[c], c, n)) && (delete s[c], r = !0);
1747
1747
  }
1748
1748
  }
1749
- return u.isArray(t) ? t.forEach(a) : a(t), r;
1749
+ return u.isArray(t) ? t.forEach(o) : o(t), r;
1750
1750
  }
1751
1751
  clear(t) {
1752
1752
  const n = Object.keys(this);
1753
1753
  let s = n.length, r = !1;
1754
1754
  for (; s--; ) {
1755
- const a = n[s];
1756
- (!t || He(this, this[a], a, t, !0)) && (delete this[a], r = !0);
1755
+ const o = n[s];
1756
+ (!t || Pe(this, this[o], o, t, !0)) && (delete this[o], r = !0);
1757
1757
  }
1758
1758
  return r;
1759
1759
  }
1760
1760
  normalize(t) {
1761
1761
  const n = this, s = {};
1762
- return u.forEach(this, (r, a) => {
1763
- const o = u.findKey(s, a);
1764
- if (o) {
1765
- n[o] = ve(r), delete n[a];
1762
+ return u.forEach(this, (r, o) => {
1763
+ const a = u.findKey(s, o);
1764
+ if (a) {
1765
+ n[a] = ke(r), delete n[o];
1766
1766
  return;
1767
1767
  }
1768
- const c = t ? io(a) : String(a).trim();
1769
- c !== a && delete n[a], n[c] = ve(r), s[c] = !0;
1768
+ const c = t ? io(o) : String(o).trim();
1769
+ c !== o && delete n[o], n[c] = ke(r), s[c] = !0;
1770
1770
  }), this;
1771
1771
  }
1772
1772
  concat(...t) {
@@ -1802,15 +1802,15 @@ let H = class {
1802
1802
  const s = (this[lt] = this[lt] = {
1803
1803
  accessors: {}
1804
1804
  }).accessors, r = this.prototype;
1805
- function a(o) {
1806
- const c = de(o);
1807
- s[c] || (lo(r, o), s[c] = !0);
1805
+ function o(a) {
1806
+ const c = he(a);
1807
+ s[c] || (lo(r, a), s[c] = !0);
1808
1808
  }
1809
- return u.isArray(t) ? t.forEach(a) : a(t), this;
1809
+ return u.isArray(t) ? t.forEach(o) : o(t), this;
1810
1810
  }
1811
1811
  };
1812
- H.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1813
- u.reduceDescriptors(H.prototype, ({ value: e }, t) => {
1812
+ N.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1813
+ u.reduceDescriptors(N.prototype, ({ value: e }, t) => {
1814
1814
  let n = t[0].toUpperCase() + t.slice(1);
1815
1815
  return {
1816
1816
  get: () => e,
@@ -1819,28 +1819,28 @@ u.reduceDescriptors(H.prototype, ({ value: e }, t) => {
1819
1819
  }
1820
1820
  };
1821
1821
  });
1822
- u.freezeMethods(H);
1823
- function Ue(e, t) {
1824
- const n = this || ge, s = t || n, r = H.from(s.headers);
1825
- let a = s.data;
1822
+ u.freezeMethods(N);
1823
+ function Me(e, t) {
1824
+ const n = this || be, s = t || n, r = N.from(s.headers);
1825
+ let o = s.data;
1826
1826
  return u.forEach(e, function(c) {
1827
- a = c.call(n, a, r.normalize(), t ? t.status : void 0);
1828
- }), r.normalize(), a;
1827
+ o = c.call(n, o, r.normalize(), t ? t.status : void 0);
1828
+ }), r.normalize(), o;
1829
1829
  }
1830
1830
  function zt(e) {
1831
1831
  return !!(e && e.__CANCEL__);
1832
1832
  }
1833
- function ie(e, t, n) {
1834
- S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
1833
+ function ue(e, t, n) {
1834
+ C.call(this, e ?? "canceled", C.ERR_CANCELED, t, n), this.name = "CanceledError";
1835
1835
  }
1836
- u.inherits(ie, S, {
1836
+ u.inherits(ue, C, {
1837
1837
  __CANCEL__: !0
1838
1838
  });
1839
1839
  function qt(e, t, n) {
1840
1840
  const s = n.config.validateStatus;
1841
- !n.status || !s || s(n.status) ? e(n) : t(new S(
1841
+ !n.status || !s || s(n.status) ? e(n) : t(new C(
1842
1842
  "Request failed with status code " + n.status,
1843
- [S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1843
+ [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1844
1844
  n.config,
1845
1845
  n.request,
1846
1846
  n
@@ -1853,49 +1853,49 @@ function co(e) {
1853
1853
  function uo(e, t) {
1854
1854
  e = e || 10;
1855
1855
  const n = new Array(e), s = new Array(e);
1856
- let r = 0, a = 0, o;
1856
+ let r = 0, o = 0, a;
1857
1857
  return t = t !== void 0 ? t : 1e3, function(l) {
1858
- const i = Date.now(), d = s[a];
1859
- o || (o = i), n[r] = l, s[r] = i;
1860
- let f = a, b = 0;
1861
- for (; f !== r; )
1862
- b += n[f++], f = f % e;
1863
- if (r = (r + 1) % e, r === a && (a = (a + 1) % e), i - o < t)
1858
+ const i = Date.now(), d = s[o];
1859
+ a || (a = i), n[r] = l, s[r] = i;
1860
+ let p = o, b = 0;
1861
+ for (; p !== r; )
1862
+ b += n[p++], p = p % e;
1863
+ if (r = (r + 1) % e, r === o && (o = (o + 1) % e), i - a < t)
1864
1864
  return;
1865
- const E = d && i - d;
1866
- return E ? Math.round(b * 1e3 / E) : void 0;
1865
+ const $ = d && i - d;
1866
+ return $ ? Math.round(b * 1e3 / $) : void 0;
1867
1867
  };
1868
1868
  }
1869
1869
  function fo(e, t) {
1870
- let n = 0, s = 1e3 / t, r, a;
1871
- const o = (i, d = Date.now()) => {
1872
- n = d, r = null, a && (clearTimeout(a), a = null), e(...i);
1870
+ let n = 0, s = 1e3 / t, r, o;
1871
+ const a = (i, d = Date.now()) => {
1872
+ n = d, r = null, o && (clearTimeout(o), o = null), e(...i);
1873
1873
  };
1874
1874
  return [(...i) => {
1875
- const d = Date.now(), f = d - n;
1876
- f >= s ? o(i, d) : (r = i, a || (a = setTimeout(() => {
1877
- a = null, o(r);
1878
- }, s - f)));
1879
- }, () => r && o(r)];
1875
+ const d = Date.now(), p = d - n;
1876
+ p >= s ? a(i, d) : (r = i, o || (o = setTimeout(() => {
1877
+ o = null, a(r);
1878
+ }, s - p)));
1879
+ }, () => r && a(r)];
1880
1880
  }
1881
- const ke = (e, t, n = 3) => {
1881
+ const $e = (e, t, n = 3) => {
1882
1882
  let s = 0;
1883
1883
  const r = uo(50, 250);
1884
- return fo((a) => {
1885
- const o = a.loaded, c = a.lengthComputable ? a.total : void 0, l = o - s, i = r(l), d = o <= c;
1886
- s = o;
1887
- const f = {
1888
- loaded: o,
1884
+ return fo((o) => {
1885
+ const a = o.loaded, c = o.lengthComputable ? o.total : void 0, l = a - s, i = r(l), d = a <= c;
1886
+ s = a;
1887
+ const p = {
1888
+ loaded: a,
1889
1889
  total: c,
1890
- progress: c ? o / c : void 0,
1890
+ progress: c ? a / c : void 0,
1891
1891
  bytes: l,
1892
1892
  rate: i || void 0,
1893
- estimated: i && c && d ? (c - o) / i : void 0,
1894
- event: a,
1893
+ estimated: i && c && d ? (c - a) / i : void 0,
1894
+ event: o,
1895
1895
  lengthComputable: c != null,
1896
1896
  [t ? "download" : "upload"]: !0
1897
1897
  };
1898
- e(f);
1898
+ e(p);
1899
1899
  }, n);
1900
1900
  }, ct = (e, t) => {
1901
1901
  const n = e != null;
@@ -1904,16 +1904,16 @@ const ke = (e, t, n = 3) => {
1904
1904
  total: e,
1905
1905
  loaded: s
1906
1906
  }), t[1]];
1907
- }, ut = (e) => (...t) => u.asap(() => e(...t)), po = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, L.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1908
- new URL(L.origin),
1909
- L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
1910
- ) : () => !0, ho = L.hasStandardBrowserEnv ? (
1907
+ }, ut = (e) => (...t) => u.asap(() => e(...t)), po = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1908
+ new URL(H.origin),
1909
+ H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
1910
+ ) : () => !0, ho = H.hasStandardBrowserEnv ? (
1911
1911
  // Standard browser envs support document.cookie
1912
1912
  {
1913
- write(e, t, n, s, r, a, o) {
1913
+ write(e, t, n, s, r, o, a) {
1914
1914
  if (typeof document > "u") return;
1915
1915
  const c = [`${e}=${encodeURIComponent(t)}`];
1916
- u.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), u.isString(s) && c.push(`path=${s}`), u.isString(r) && c.push(`domain=${r}`), a === !0 && c.push("secure"), u.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
1916
+ u.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), u.isString(s) && c.push(`path=${s}`), u.isString(r) && c.push(`domain=${r}`), o === !0 && c.push("secure"), u.isString(a) && c.push(`SameSite=${a}`), document.cookie = c.join("; ");
1917
1917
  },
1918
1918
  read(e) {
1919
1919
  if (typeof document > "u") return null;
@@ -1942,174 +1942,174 @@ function mo(e) {
1942
1942
  function go(e, t) {
1943
1943
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1944
1944
  }
1945
- function Wt(e, t, n) {
1945
+ function Zt(e, t, n) {
1946
1946
  let s = !mo(t);
1947
1947
  return e && (s || n == !1) ? go(e, t) : t;
1948
1948
  }
1949
- const dt = (e) => e instanceof H ? { ...e } : e;
1950
- function ee(e, t) {
1949
+ const dt = (e) => e instanceof N ? { ...e } : e;
1950
+ function ne(e, t) {
1951
1951
  t = t || {};
1952
1952
  const n = {};
1953
- function s(i, d, f, b) {
1953
+ function s(i, d, p, b) {
1954
1954
  return u.isPlainObject(i) && u.isPlainObject(d) ? u.merge.call({ caseless: b }, i, d) : u.isPlainObject(d) ? u.merge({}, d) : u.isArray(d) ? d.slice() : d;
1955
1955
  }
1956
- function r(i, d, f, b) {
1956
+ function r(i, d, p, b) {
1957
1957
  if (u.isUndefined(d)) {
1958
1958
  if (!u.isUndefined(i))
1959
- return s(void 0, i, f, b);
1960
- } else return s(i, d, f, b);
1959
+ return s(void 0, i, p, b);
1960
+ } else return s(i, d, p, b);
1961
1961
  }
1962
- function a(i, d) {
1962
+ function o(i, d) {
1963
1963
  if (!u.isUndefined(d))
1964
1964
  return s(void 0, d);
1965
1965
  }
1966
- function o(i, d) {
1966
+ function a(i, d) {
1967
1967
  if (u.isUndefined(d)) {
1968
1968
  if (!u.isUndefined(i))
1969
1969
  return s(void 0, i);
1970
1970
  } else return s(void 0, d);
1971
1971
  }
1972
- function c(i, d, f) {
1973
- if (f in t)
1972
+ function c(i, d, p) {
1973
+ if (p in t)
1974
1974
  return s(i, d);
1975
- if (f in e)
1975
+ if (p in e)
1976
1976
  return s(void 0, i);
1977
1977
  }
1978
1978
  const l = {
1979
- url: a,
1980
- method: a,
1981
- data: a,
1982
- baseURL: o,
1983
- transformRequest: o,
1984
- transformResponse: o,
1985
- paramsSerializer: o,
1986
- timeout: o,
1987
- timeoutMessage: o,
1988
- withCredentials: o,
1989
- withXSRFToken: o,
1990
- adapter: o,
1991
- responseType: o,
1992
- xsrfCookieName: o,
1993
- xsrfHeaderName: o,
1994
- onUploadProgress: o,
1995
- onDownloadProgress: o,
1996
- decompress: o,
1997
- maxContentLength: o,
1998
- maxBodyLength: o,
1999
- beforeRedirect: o,
2000
- transport: o,
2001
- httpAgent: o,
2002
- httpsAgent: o,
2003
- cancelToken: o,
2004
- socketPath: o,
2005
- responseEncoding: o,
1979
+ url: o,
1980
+ method: o,
1981
+ data: o,
1982
+ baseURL: a,
1983
+ transformRequest: a,
1984
+ transformResponse: a,
1985
+ paramsSerializer: a,
1986
+ timeout: a,
1987
+ timeoutMessage: a,
1988
+ withCredentials: a,
1989
+ withXSRFToken: a,
1990
+ adapter: a,
1991
+ responseType: a,
1992
+ xsrfCookieName: a,
1993
+ xsrfHeaderName: a,
1994
+ onUploadProgress: a,
1995
+ onDownloadProgress: a,
1996
+ decompress: a,
1997
+ maxContentLength: a,
1998
+ maxBodyLength: a,
1999
+ beforeRedirect: a,
2000
+ transport: a,
2001
+ httpAgent: a,
2002
+ httpsAgent: a,
2003
+ cancelToken: a,
2004
+ socketPath: a,
2005
+ responseEncoding: a,
2006
2006
  validateStatus: c,
2007
- headers: (i, d, f) => r(dt(i), dt(d), f, !0)
2007
+ headers: (i, d, p) => r(dt(i), dt(d), p, !0)
2008
2008
  };
2009
2009
  return u.forEach(Object.keys({ ...e, ...t }), function(d) {
2010
- const f = l[d] || r, b = f(e[d], t[d], d);
2011
- u.isUndefined(b) && f !== c || (n[d] = b);
2010
+ const p = l[d] || r, b = p(e[d], t[d], d);
2011
+ u.isUndefined(b) && p !== c || (n[d] = b);
2012
2012
  }), n;
2013
2013
  }
2014
- const Jt = (e) => {
2015
- const t = ee({}, e);
2016
- let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: a, headers: o, auth: c } = t;
2017
- if (t.headers = o = H.from(o), t.url = jt(Wt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
2014
+ const Wt = (e) => {
2015
+ const t = ne({}, e);
2016
+ let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: c } = t;
2017
+ if (t.headers = a = N.from(a), t.url = Dt(Zt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && a.set(
2018
2018
  "Authorization",
2019
2019
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
2020
2020
  ), u.isFormData(n)) {
2021
- if (L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv)
2022
- o.setContentType(void 0);
2021
+ if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
2022
+ a.setContentType(void 0);
2023
2023
  else if (u.isFunction(n.getHeaders)) {
2024
2024
  const l = n.getHeaders(), i = ["content-type", "content-length"];
2025
- Object.entries(l).forEach(([d, f]) => {
2026
- i.includes(d.toLowerCase()) && o.set(d, f);
2025
+ Object.entries(l).forEach(([d, p]) => {
2026
+ i.includes(d.toLowerCase()) && a.set(d, p);
2027
2027
  });
2028
2028
  }
2029
2029
  }
2030
- if (L.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && po(t.url))) {
2031
- const l = r && a && ho.read(a);
2032
- l && o.set(r, l);
2030
+ if (H.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && po(t.url))) {
2031
+ const l = r && o && ho.read(o);
2032
+ l && a.set(r, l);
2033
2033
  }
2034
2034
  return t;
2035
2035
  }, yo = typeof XMLHttpRequest < "u", wo = yo && function(e) {
2036
2036
  return new Promise(function(n, s) {
2037
- const r = Jt(e);
2038
- let a = r.data;
2039
- const o = H.from(r.headers).normalize();
2040
- let { responseType: c, onUploadProgress: l, onDownloadProgress: i } = r, d, f, b, E, h;
2037
+ const r = Wt(e);
2038
+ let o = r.data;
2039
+ const a = N.from(r.headers).normalize();
2040
+ let { responseType: c, onUploadProgress: l, onDownloadProgress: i } = r, d, p, b, $, h;
2041
2041
  function w() {
2042
- E && E(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(d), r.signal && r.signal.removeEventListener("abort", d);
2042
+ $ && $(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(d), r.signal && r.signal.removeEventListener("abort", d);
2043
2043
  }
2044
- let m = new XMLHttpRequest();
2045
- m.open(r.method.toUpperCase(), r.url, !0), m.timeout = r.timeout;
2046
- function k() {
2047
- if (!m)
2044
+ let y = new XMLHttpRequest();
2045
+ y.open(r.method.toUpperCase(), r.url, !0), y.timeout = r.timeout;
2046
+ function R() {
2047
+ if (!y)
2048
2048
  return;
2049
- const A = H.from(
2050
- "getAllResponseHeaders" in m && m.getAllResponseHeaders()
2051
- ), D = {
2052
- data: !c || c === "text" || c === "json" ? m.responseText : m.response,
2053
- status: m.status,
2054
- statusText: m.statusText,
2049
+ const A = N.from(
2050
+ "getAllResponseHeaders" in y && y.getAllResponseHeaders()
2051
+ ), U = {
2052
+ data: !c || c === "text" || c === "json" ? y.responseText : y.response,
2053
+ status: y.status,
2054
+ statusText: y.statusText,
2055
2055
  headers: A,
2056
2056
  config: e,
2057
- request: m
2057
+ request: y
2058
2058
  };
2059
- qt(function(U) {
2060
- n(U), w();
2061
- }, function(U) {
2062
- s(U), w();
2063
- }, D), m = null;
2059
+ qt(function(P) {
2060
+ n(P), w();
2061
+ }, function(P) {
2062
+ s(P), w();
2063
+ }, U), y = null;
2064
2064
  }
2065
- "onloadend" in m ? m.onloadend = k : m.onreadystatechange = function() {
2066
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(k);
2067
- }, m.onabort = function() {
2068
- m && (s(new S("Request aborted", S.ECONNABORTED, e, m)), m = null);
2069
- }, m.onerror = function(B) {
2070
- const D = B && B.message ? B.message : "Network Error", K = new S(D, S.ERR_NETWORK, e, m);
2071
- K.event = B || null, s(K), m = null;
2072
- }, m.ontimeout = function() {
2073
- let B = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
2074
- const D = r.transitional || Mt;
2075
- r.timeoutErrorMessage && (B = r.timeoutErrorMessage), s(new S(
2076
- B,
2077
- D.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
2065
+ "onloadend" in y ? y.onloadend = R : y.onreadystatechange = function() {
2066
+ !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(R);
2067
+ }, y.onabort = function() {
2068
+ y && (s(new C("Request aborted", C.ECONNABORTED, e, y)), y = null);
2069
+ }, y.onerror = function(F) {
2070
+ const U = F && F.message ? F.message : "Network Error", K = new C(U, C.ERR_NETWORK, e, y);
2071
+ K.event = F || null, s(K), y = null;
2072
+ }, y.ontimeout = function() {
2073
+ let F = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
2074
+ const U = r.transitional || jt;
2075
+ r.timeoutErrorMessage && (F = r.timeoutErrorMessage), s(new C(
2076
+ F,
2077
+ U.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
2078
2078
  e,
2079
- m
2080
- )), m = null;
2081
- }, a === void 0 && o.setContentType(null), "setRequestHeader" in m && u.forEach(o.toJSON(), function(B, D) {
2082
- m.setRequestHeader(D, B);
2083
- }), u.isUndefined(r.withCredentials) || (m.withCredentials = !!r.withCredentials), c && c !== "json" && (m.responseType = r.responseType), i && ([b, h] = ke(i, !0), m.addEventListener("progress", b)), l && m.upload && ([f, E] = ke(l), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", E)), (r.cancelToken || r.signal) && (d = (A) => {
2084
- m && (s(!A || A.type ? new ie(null, e, m) : A), m.abort(), m = null);
2079
+ y
2080
+ )), y = null;
2081
+ }, o === void 0 && a.setContentType(null), "setRequestHeader" in y && u.forEach(a.toJSON(), function(F, U) {
2082
+ y.setRequestHeader(U, F);
2083
+ }), u.isUndefined(r.withCredentials) || (y.withCredentials = !!r.withCredentials), c && c !== "json" && (y.responseType = r.responseType), i && ([b, h] = $e(i, !0), y.addEventListener("progress", b)), l && y.upload && ([p, $] = $e(l), y.upload.addEventListener("progress", p), y.upload.addEventListener("loadend", $)), (r.cancelToken || r.signal) && (d = (A) => {
2084
+ y && (s(!A || A.type ? new ue(null, e, y) : A), y.abort(), y = null);
2085
2085
  }, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
2086
- const $ = co(r.url);
2087
- if ($ && L.protocols.indexOf($) === -1) {
2088
- s(new S("Unsupported protocol " + $ + ":", S.ERR_BAD_REQUEST, e));
2086
+ const T = co(r.url);
2087
+ if (T && H.protocols.indexOf(T) === -1) {
2088
+ s(new C("Unsupported protocol " + T + ":", C.ERR_BAD_REQUEST, e));
2089
2089
  return;
2090
2090
  }
2091
- m.send(a || null);
2091
+ y.send(o || null);
2092
2092
  });
2093
2093
  }, bo = (e, t) => {
2094
2094
  const { length: n } = e = e ? e.filter(Boolean) : [];
2095
2095
  if (t || n) {
2096
2096
  let s = new AbortController(), r;
2097
- const a = function(i) {
2097
+ const o = function(i) {
2098
2098
  if (!r) {
2099
2099
  r = !0, c();
2100
2100
  const d = i instanceof Error ? i : this.reason;
2101
- s.abort(d instanceof S ? d : new ie(d instanceof Error ? d.message : d));
2101
+ s.abort(d instanceof C ? d : new ue(d instanceof Error ? d.message : d));
2102
2102
  }
2103
2103
  };
2104
- let o = t && setTimeout(() => {
2105
- o = null, a(new S(`timeout ${t} of ms exceeded`, S.ETIMEDOUT));
2104
+ let a = t && setTimeout(() => {
2105
+ a = null, o(new C(`timeout ${t} of ms exceeded`, C.ETIMEDOUT));
2106
2106
  }, t);
2107
2107
  const c = () => {
2108
- e && (o && clearTimeout(o), o = null, e.forEach((i) => {
2109
- i.unsubscribe ? i.unsubscribe(a) : i.removeEventListener("abort", a);
2108
+ e && (a && clearTimeout(a), a = null, e.forEach((i) => {
2109
+ i.unsubscribe ? i.unsubscribe(o) : i.removeEventListener("abort", o);
2110
2110
  }), e = null);
2111
2111
  };
2112
- e.forEach((i) => i.addEventListener("abort", a));
2112
+ e.forEach((i) => i.addEventListener("abort", o));
2113
2113
  const { signal: l } = s;
2114
2114
  return l.unsubscribe = () => u.asap(c), l;
2115
2115
  }
@@ -2122,7 +2122,7 @@ const Jt = (e) => {
2122
2122
  let s = 0, r;
2123
2123
  for (; s < n; )
2124
2124
  r = s + t, yield e.slice(s, r), s = r;
2125
- }, So = async function* (e, t) {
2125
+ }, Co = async function* (e, t) {
2126
2126
  for await (const n of vo(e))
2127
2127
  yield* xo(n, t);
2128
2128
  }, vo = async function* (e) {
@@ -2142,9 +2142,9 @@ const Jt = (e) => {
2142
2142
  await t.cancel();
2143
2143
  }
2144
2144
  }, ft = (e, t, n, s) => {
2145
- const r = So(e, t);
2146
- let a = 0, o, c = (l) => {
2147
- o || (o = !0, s && s(l));
2145
+ const r = Co(e, t);
2146
+ let o = 0, a, c = (l) => {
2147
+ a || (a = !0, s && s(l));
2148
2148
  };
2149
2149
  return new ReadableStream({
2150
2150
  async pull(l) {
@@ -2154,9 +2154,9 @@ const Jt = (e) => {
2154
2154
  c(), l.close();
2155
2155
  return;
2156
2156
  }
2157
- let f = d.byteLength;
2157
+ let p = d.byteLength;
2158
2158
  if (n) {
2159
- let b = a += f;
2159
+ let b = o += p;
2160
2160
  n(b);
2161
2161
  }
2162
2162
  l.enqueue(new Uint8Array(d));
@@ -2170,7 +2170,7 @@ const Jt = (e) => {
2170
2170
  }, {
2171
2171
  highWaterMark: 2
2172
2172
  });
2173
- }, pt = 64 * 1024, { isFunction: xe } = u, Co = (({ Request: e, Response: t }) => ({
2173
+ }, pt = 64 * 1024, { isFunction: Se } = u, So = (({ Request: e, Response: t }) => ({
2174
2174
  Request: e,
2175
2175
  Response: t
2176
2176
  }))(u.global), {
@@ -2185,13 +2185,13 @@ const Jt = (e) => {
2185
2185
  }, _o = (e) => {
2186
2186
  e = u.merge.call({
2187
2187
  skipUndefined: !0
2188
- }, Co, e);
2189
- const { fetch: t, Request: n, Response: s } = e, r = t ? xe(t) : typeof fetch == "function", a = xe(n), o = xe(s);
2188
+ }, So, e);
2189
+ const { fetch: t, Request: n, Response: s } = e, r = t ? Se(t) : typeof fetch == "function", o = Se(n), a = Se(s);
2190
2190
  if (!r)
2191
2191
  return !1;
2192
- const c = r && xe(ht), l = r && (typeof mt == "function" ? /* @__PURE__ */ ((h) => (w) => h.encode(w))(new mt()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), i = a && c && gt(() => {
2192
+ const c = r && Se(ht), l = r && (typeof mt == "function" ? /* @__PURE__ */ ((h) => (w) => h.encode(w))(new mt()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), i = o && c && gt(() => {
2193
2193
  let h = !1;
2194
- const w = new n(L.origin, {
2194
+ const w = new n(H.origin, {
2195
2195
  body: new ht(),
2196
2196
  method: "POST",
2197
2197
  get duplex() {
@@ -2199,15 +2199,15 @@ const Jt = (e) => {
2199
2199
  }
2200
2200
  }).headers.has("Content-Type");
2201
2201
  return h && !w;
2202
- }), d = o && c && gt(() => u.isReadableStream(new s("").body)), f = {
2202
+ }), d = a && c && gt(() => u.isReadableStream(new s("").body)), p = {
2203
2203
  stream: d && ((h) => h.body)
2204
2204
  };
2205
2205
  r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
2206
- !f[h] && (f[h] = (w, m) => {
2207
- let k = w && w[h];
2208
- if (k)
2209
- return k.call(w);
2210
- throw new S(`Response type '${h}' is not supported`, S.ERR_NOT_SUPPORT, m);
2206
+ !p[h] && (p[h] = (w, y) => {
2207
+ let R = w && w[h];
2208
+ if (R)
2209
+ return R.call(w);
2210
+ throw new C(`Response type '${h}' is not supported`, C.ERR_NOT_SUPPORT, y);
2211
2211
  });
2212
2212
  });
2213
2213
  const b = async (h) => {
@@ -2216,7 +2216,7 @@ const Jt = (e) => {
2216
2216
  if (u.isBlob(h))
2217
2217
  return h.size;
2218
2218
  if (u.isSpecCompliantForm(h))
2219
- return (await new n(L.origin, {
2219
+ return (await new n(H.origin, {
2220
2220
  method: "POST",
2221
2221
  body: h
2222
2222
  }).arrayBuffer()).byteLength;
@@ -2224,117 +2224,117 @@ const Jt = (e) => {
2224
2224
  return h.byteLength;
2225
2225
  if (u.isURLSearchParams(h) && (h = h + ""), u.isString(h))
2226
2226
  return (await l(h)).byteLength;
2227
- }, E = async (h, w) => {
2228
- const m = u.toFiniteNumber(h.getContentLength());
2229
- return m ?? b(w);
2227
+ }, $ = async (h, w) => {
2228
+ const y = u.toFiniteNumber(h.getContentLength());
2229
+ return y ?? b(w);
2230
2230
  };
2231
2231
  return async (h) => {
2232
2232
  let {
2233
2233
  url: w,
2234
- method: m,
2235
- data: k,
2236
- signal: $,
2234
+ method: y,
2235
+ data: R,
2236
+ signal: T,
2237
2237
  cancelToken: A,
2238
- timeout: B,
2239
- onDownloadProgress: D,
2238
+ timeout: F,
2239
+ onDownloadProgress: U,
2240
2240
  onUploadProgress: K,
2241
- responseType: U,
2242
- headers: Ne,
2243
- withCredentials: ye = "same-origin",
2244
- fetchOptions: Ze
2245
- } = Jt(h), Xe = t || fetch;
2246
- U = U ? (U + "").toLowerCase() : "text";
2247
- let we = bo([$, A && A.toAbortSignal()], B), le = null;
2248
- const G = we && we.unsubscribe && (() => {
2249
- we.unsubscribe();
2241
+ responseType: P,
2242
+ headers: Ve,
2243
+ withCredentials: xe = "same-origin",
2244
+ fetchOptions: Ke
2245
+ } = Wt(h), Xe = t || fetch;
2246
+ P = P ? (P + "").toLowerCase() : "text";
2247
+ let Ce = bo([T, A && A.toAbortSignal()], F), de = null;
2248
+ const X = Ce && Ce.unsubscribe && (() => {
2249
+ Ce.unsubscribe();
2250
2250
  });
2251
- let Qe;
2251
+ let Ye;
2252
2252
  try {
2253
- if (K && i && m !== "get" && m !== "head" && (Qe = await E(Ne, k)) !== 0) {
2254
- let J = new n(w, {
2253
+ if (K && i && y !== "get" && y !== "head" && (Ye = await $(Ve, R)) !== 0) {
2254
+ let W = new n(w, {
2255
2255
  method: "POST",
2256
- body: k,
2256
+ body: R,
2257
2257
  duplex: "half"
2258
- }), ne;
2259
- if (u.isFormData(k) && (ne = J.headers.get("content-type")) && Ne.setContentType(ne), J.body) {
2260
- const [Pe, be] = ct(
2261
- Qe,
2262
- ke(ut(K))
2258
+ }), oe;
2259
+ if (u.isFormData(R) && (oe = W.headers.get("content-type")) && Ve.setContentType(oe), W.body) {
2260
+ const [Ne, ve] = ct(
2261
+ Ye,
2262
+ $e(ut(K))
2263
2263
  );
2264
- k = ft(J.body, pt, Pe, be);
2264
+ R = ft(W.body, pt, Ne, ve);
2265
2265
  }
2266
2266
  }
2267
- u.isString(ye) || (ye = ye ? "include" : "omit");
2268
- const M = a && "credentials" in n.prototype, Ye = {
2269
- ...Ze,
2270
- signal: we,
2271
- method: m.toUpperCase(),
2272
- headers: Ne.normalize().toJSON(),
2273
- body: k,
2267
+ u.isString(xe) || (xe = xe ? "include" : "omit");
2268
+ const j = o && "credentials" in n.prototype, Qe = {
2269
+ ...Ke,
2270
+ signal: Ce,
2271
+ method: y.toUpperCase(),
2272
+ headers: Ve.normalize().toJSON(),
2273
+ body: R,
2274
2274
  duplex: "half",
2275
- credentials: M ? ye : void 0
2275
+ credentials: j ? xe : void 0
2276
2276
  };
2277
- le = a && new n(w, Ye);
2278
- let W = await (a ? Xe(le, Ze) : Xe(w, Ye));
2279
- const et = d && (U === "stream" || U === "response");
2280
- if (d && (D || et && G)) {
2281
- const J = {};
2277
+ de = o && new n(w, Qe);
2278
+ let Z = await (o ? Xe(de, Ke) : Xe(w, Qe));
2279
+ const et = d && (P === "stream" || P === "response");
2280
+ if (d && (U || et && X)) {
2281
+ const W = {};
2282
2282
  ["status", "statusText", "headers"].forEach((tt) => {
2283
- J[tt] = W[tt];
2283
+ W[tt] = Z[tt];
2284
2284
  });
2285
- const ne = u.toFiniteNumber(W.headers.get("content-length")), [Pe, be] = D && ct(
2286
- ne,
2287
- ke(ut(D), !0)
2285
+ const oe = u.toFiniteNumber(Z.headers.get("content-length")), [Ne, ve] = U && ct(
2286
+ oe,
2287
+ $e(ut(U), !0)
2288
2288
  ) || [];
2289
- W = new s(
2290
- ft(W.body, pt, Pe, () => {
2291
- be && be(), G && G();
2289
+ Z = new s(
2290
+ ft(Z.body, pt, Ne, () => {
2291
+ ve && ve(), X && X();
2292
2292
  }),
2293
- J
2293
+ W
2294
2294
  );
2295
2295
  }
2296
- U = U || "text";
2297
- let en = await f[u.findKey(f, U) || "text"](W, h);
2298
- return !et && G && G(), await new Promise((J, ne) => {
2299
- qt(J, ne, {
2296
+ P = P || "text";
2297
+ let en = await p[u.findKey(p, P) || "text"](Z, h);
2298
+ return !et && X && X(), await new Promise((W, oe) => {
2299
+ qt(W, oe, {
2300
2300
  data: en,
2301
- headers: H.from(W.headers),
2302
- status: W.status,
2303
- statusText: W.statusText,
2301
+ headers: N.from(Z.headers),
2302
+ status: Z.status,
2303
+ statusText: Z.statusText,
2304
2304
  config: h,
2305
- request: le
2305
+ request: de
2306
2306
  });
2307
2307
  });
2308
- } catch (M) {
2309
- throw G && G(), M && M.name === "TypeError" && /Load failed|fetch/i.test(M.message) ? Object.assign(
2310
- new S("Network Error", S.ERR_NETWORK, h, le),
2308
+ } catch (j) {
2309
+ throw X && X(), j && j.name === "TypeError" && /Load failed|fetch/i.test(j.message) ? Object.assign(
2310
+ new C("Network Error", C.ERR_NETWORK, h, de),
2311
2311
  {
2312
- cause: M.cause || M
2312
+ cause: j.cause || j
2313
2313
  }
2314
- ) : S.from(M, M && M.code, h, le);
2314
+ ) : C.from(j, j && j.code, h, de);
2315
2315
  }
2316
2316
  };
2317
- }, ko = /* @__PURE__ */ new Map(), Kt = (e) => {
2317
+ }, ko = /* @__PURE__ */ new Map(), Gt = (e) => {
2318
2318
  let t = e && e.env || {};
2319
- const { fetch: n, Request: s, Response: r } = t, a = [
2319
+ const { fetch: n, Request: s, Response: r } = t, o = [
2320
2320
  s,
2321
2321
  r,
2322
2322
  n
2323
2323
  ];
2324
- let o = a.length, c = o, l, i, d = ko;
2324
+ let a = o.length, c = a, l, i, d = ko;
2325
2325
  for (; c--; )
2326
- l = a[c], i = d.get(l), i === void 0 && d.set(l, i = c ? /* @__PURE__ */ new Map() : _o(t)), d = i;
2326
+ l = o[c], i = d.get(l), i === void 0 && d.set(l, i = c ? /* @__PURE__ */ new Map() : _o(t)), d = i;
2327
2327
  return i;
2328
2328
  };
2329
- Kt();
2330
- const Ge = {
2331
- http: jr,
2329
+ Gt();
2330
+ const Je = {
2331
+ http: Dr,
2332
2332
  xhr: wo,
2333
2333
  fetch: {
2334
- get: Kt
2334
+ get: Gt
2335
2335
  }
2336
2336
  };
2337
- u.forEach(Ge, (e, t) => {
2337
+ u.forEach(Je, (e, t) => {
2338
2338
  if (e) {
2339
2339
  try {
2340
2340
  Object.defineProperty(e, "name", { value: t });
@@ -2348,31 +2348,31 @@ function Eo(e, t) {
2348
2348
  e = u.isArray(e) ? e : [e];
2349
2349
  const { length: n } = e;
2350
2350
  let s, r;
2351
- const a = {};
2352
- for (let o = 0; o < n; o++) {
2353
- s = e[o];
2351
+ const o = {};
2352
+ for (let a = 0; a < n; a++) {
2353
+ s = e[a];
2354
2354
  let c;
2355
- if (r = s, !Ro(s) && (r = Ge[(c = String(s)).toLowerCase()], r === void 0))
2356
- throw new S(`Unknown adapter '${c}'`);
2355
+ if (r = s, !Ro(s) && (r = Je[(c = String(s)).toLowerCase()], r === void 0))
2356
+ throw new C(`Unknown adapter '${c}'`);
2357
2357
  if (r && (u.isFunction(r) || (r = r.get(t))))
2358
2358
  break;
2359
- a[c || "#" + o] = r;
2359
+ o[c || "#" + a] = r;
2360
2360
  }
2361
2361
  if (!r) {
2362
- const o = Object.entries(a).map(
2362
+ const a = Object.entries(o).map(
2363
2363
  ([l, i]) => `adapter ${l} ` + (i === !1 ? "is not supported by the environment" : "is not available in the build")
2364
2364
  );
2365
- let c = n ? o.length > 1 ? `since :
2366
- ` + o.map(yt).join(`
2367
- `) : " " + yt(o[0]) : "as no adapter specified";
2368
- throw new S(
2365
+ let c = n ? a.length > 1 ? `since :
2366
+ ` + a.map(yt).join(`
2367
+ `) : " " + yt(a[0]) : "as no adapter specified";
2368
+ throw new C(
2369
2369
  "There is no suitable adapter to dispatch the request " + c,
2370
2370
  "ERR_NOT_SUPPORT"
2371
2371
  );
2372
2372
  }
2373
2373
  return r;
2374
2374
  }
2375
- const Gt = {
2375
+ const Jt = {
2376
2376
  /**
2377
2377
  * Resolve an adapter from a list of adapter names or functions.
2378
2378
  * @type {Function}
@@ -2382,31 +2382,31 @@ const Gt = {
2382
2382
  * Exposes all known adapters
2383
2383
  * @type {Object<string, Function|Object>}
2384
2384
  */
2385
- adapters: Ge
2385
+ adapters: Je
2386
2386
  };
2387
- function Ve(e) {
2387
+ function Ue(e) {
2388
2388
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2389
- throw new ie(null, e);
2389
+ throw new ue(null, e);
2390
2390
  }
2391
2391
  function wt(e) {
2392
- return Ve(e), e.headers = H.from(e.headers), e.data = Ue.call(
2392
+ return Ue(e), e.headers = N.from(e.headers), e.data = Me.call(
2393
2393
  e,
2394
2394
  e.transformRequest
2395
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Gt.getAdapter(e.adapter || ge.adapter, e)(e).then(function(s) {
2396
- return Ve(e), s.data = Ue.call(
2395
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Jt.getAdapter(e.adapter || be.adapter, e)(e).then(function(s) {
2396
+ return Ue(e), s.data = Me.call(
2397
2397
  e,
2398
2398
  e.transformResponse,
2399
2399
  s
2400
- ), s.headers = H.from(s.headers), s;
2400
+ ), s.headers = N.from(s.headers), s;
2401
2401
  }, function(s) {
2402
- return zt(s) || (Ve(e), s && s.response && (s.response.data = Ue.call(
2402
+ return zt(s) || (Ue(e), s && s.response && (s.response.data = Me.call(
2403
2403
  e,
2404
2404
  e.transformResponse,
2405
2405
  s.response
2406
- ), s.response.headers = H.from(s.response.headers))), Promise.reject(s);
2406
+ ), s.response.headers = N.from(s.response.headers))), Promise.reject(s);
2407
2407
  });
2408
2408
  }
2409
- const Zt = "1.13.2", Be = {};
2409
+ const Kt = "1.13.2", Be = {};
2410
2410
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2411
2411
  Be[e] = function(s) {
2412
2412
  return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -2414,48 +2414,48 @@ const Zt = "1.13.2", Be = {};
2414
2414
  });
2415
2415
  const bt = {};
2416
2416
  Be.transitional = function(t, n, s) {
2417
- function r(a, o) {
2418
- return "[Axios v" + Zt + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
2417
+ function r(o, a) {
2418
+ return "[Axios v" + Kt + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
2419
2419
  }
2420
- return (a, o, c) => {
2420
+ return (o, a, c) => {
2421
2421
  if (t === !1)
2422
- throw new S(
2423
- r(o, " has been removed" + (n ? " in " + n : "")),
2424
- S.ERR_DEPRECATED
2422
+ throw new C(
2423
+ r(a, " has been removed" + (n ? " in " + n : "")),
2424
+ C.ERR_DEPRECATED
2425
2425
  );
2426
- return n && !bt[o] && (bt[o] = !0, console.warn(
2426
+ return n && !bt[a] && (bt[a] = !0, console.warn(
2427
2427
  r(
2428
- o,
2428
+ a,
2429
2429
  " has been deprecated since v" + n + " and will be removed in the near future"
2430
2430
  )
2431
- )), t ? t(a, o, c) : !0;
2431
+ )), t ? t(o, a, c) : !0;
2432
2432
  };
2433
2433
  };
2434
2434
  Be.spelling = function(t) {
2435
2435
  return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
2436
2436
  };
2437
- function Oo(e, t, n) {
2437
+ function $o(e, t, n) {
2438
2438
  if (typeof e != "object")
2439
- throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
2439
+ throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
2440
2440
  const s = Object.keys(e);
2441
2441
  let r = s.length;
2442
2442
  for (; r-- > 0; ) {
2443
- const a = s[r], o = t[a];
2444
- if (o) {
2445
- const c = e[a], l = c === void 0 || o(c, a, e);
2443
+ const o = s[r], a = t[o];
2444
+ if (a) {
2445
+ const c = e[o], l = c === void 0 || a(c, o, e);
2446
2446
  if (l !== !0)
2447
- throw new S("option " + a + " must be " + l, S.ERR_BAD_OPTION_VALUE);
2447
+ throw new C("option " + o + " must be " + l, C.ERR_BAD_OPTION_VALUE);
2448
2448
  continue;
2449
2449
  }
2450
2450
  if (n !== !0)
2451
- throw new S("Unknown option " + a, S.ERR_BAD_OPTION);
2451
+ throw new C("Unknown option " + o, C.ERR_BAD_OPTION);
2452
2452
  }
2453
2453
  }
2454
- const Ce = {
2455
- assertOptions: Oo,
2454
+ const Re = {
2455
+ assertOptions: $o,
2456
2456
  validators: Be
2457
- }, I = Ce.validators;
2458
- let Q = class {
2457
+ }, I = Re.validators;
2458
+ let ee = class {
2459
2459
  constructor(t) {
2460
2460
  this.defaults = t || {}, this.interceptors = {
2461
2461
  request: new it(),
@@ -2477,10 +2477,10 @@ let Q = class {
2477
2477
  if (s instanceof Error) {
2478
2478
  let r = {};
2479
2479
  Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
2480
- const a = r.stack ? r.stack.replace(/^.+\n/, "") : "";
2480
+ const o = r.stack ? r.stack.replace(/^.+\n/, "") : "";
2481
2481
  try {
2482
- s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
2483
- ` + a) : s.stack = a;
2482
+ s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
2483
+ ` + o) : s.stack = o;
2484
2484
  } catch {
2485
2485
  }
2486
2486
  }
@@ -2488,31 +2488,31 @@ let Q = class {
2488
2488
  }
2489
2489
  }
2490
2490
  _request(t, n) {
2491
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ee(this.defaults, n);
2492
- const { transitional: s, paramsSerializer: r, headers: a } = n;
2493
- s !== void 0 && Ce.assertOptions(s, {
2491
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ne(this.defaults, n);
2492
+ const { transitional: s, paramsSerializer: r, headers: o } = n;
2493
+ s !== void 0 && Re.assertOptions(s, {
2494
2494
  silentJSONParsing: I.transitional(I.boolean),
2495
2495
  forcedJSONParsing: I.transitional(I.boolean),
2496
2496
  clarifyTimeoutError: I.transitional(I.boolean)
2497
2497
  }, !1), r != null && (u.isFunction(r) ? n.paramsSerializer = {
2498
2498
  serialize: r
2499
- } : Ce.assertOptions(r, {
2499
+ } : Re.assertOptions(r, {
2500
2500
  encode: I.function,
2501
2501
  serialize: I.function
2502
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ce.assertOptions(n, {
2502
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Re.assertOptions(n, {
2503
2503
  baseUrl: I.spelling("baseURL"),
2504
2504
  withXsrfToken: I.spelling("withXSRFToken")
2505
2505
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2506
- let o = a && u.merge(
2507
- a.common,
2508
- a[n.method]
2506
+ let a = o && u.merge(
2507
+ o.common,
2508
+ o[n.method]
2509
2509
  );
2510
- a && u.forEach(
2510
+ o && u.forEach(
2511
2511
  ["delete", "get", "head", "post", "put", "patch", "common"],
2512
2512
  (h) => {
2513
- delete a[h];
2513
+ delete o[h];
2514
2514
  }
2515
- ), n.headers = H.concat(o, a);
2515
+ ), n.headers = N.concat(a, o);
2516
2516
  const c = [];
2517
2517
  let l = !0;
2518
2518
  this.interceptors.request.forEach(function(w) {
@@ -2522,42 +2522,42 @@ let Q = class {
2522
2522
  this.interceptors.response.forEach(function(w) {
2523
2523
  i.push(w.fulfilled, w.rejected);
2524
2524
  });
2525
- let d, f = 0, b;
2525
+ let d, p = 0, b;
2526
2526
  if (!l) {
2527
2527
  const h = [wt.bind(this), void 0];
2528
- for (h.unshift(...c), h.push(...i), b = h.length, d = Promise.resolve(n); f < b; )
2529
- d = d.then(h[f++], h[f++]);
2528
+ for (h.unshift(...c), h.push(...i), b = h.length, d = Promise.resolve(n); p < b; )
2529
+ d = d.then(h[p++], h[p++]);
2530
2530
  return d;
2531
2531
  }
2532
2532
  b = c.length;
2533
- let E = n;
2534
- for (; f < b; ) {
2535
- const h = c[f++], w = c[f++];
2533
+ let $ = n;
2534
+ for (; p < b; ) {
2535
+ const h = c[p++], w = c[p++];
2536
2536
  try {
2537
- E = h(E);
2538
- } catch (m) {
2539
- w.call(this, m);
2537
+ $ = h($);
2538
+ } catch (y) {
2539
+ w.call(this, y);
2540
2540
  break;
2541
2541
  }
2542
2542
  }
2543
2543
  try {
2544
- d = wt.call(this, E);
2544
+ d = wt.call(this, $);
2545
2545
  } catch (h) {
2546
2546
  return Promise.reject(h);
2547
2547
  }
2548
- for (f = 0, b = i.length; f < b; )
2549
- d = d.then(i[f++], i[f++]);
2548
+ for (p = 0, b = i.length; p < b; )
2549
+ d = d.then(i[p++], i[p++]);
2550
2550
  return d;
2551
2551
  }
2552
2552
  getUri(t) {
2553
- t = ee(this.defaults, t);
2554
- const n = Wt(t.baseURL, t.url, t.allowAbsoluteUrls);
2555
- return jt(n, t.params, t.paramsSerializer);
2553
+ t = ne(this.defaults, t);
2554
+ const n = Zt(t.baseURL, t.url, t.allowAbsoluteUrls);
2555
+ return Dt(n, t.params, t.paramsSerializer);
2556
2556
  }
2557
2557
  };
2558
2558
  u.forEach(["delete", "get", "head", "options"], function(t) {
2559
- Q.prototype[t] = function(n, s) {
2560
- return this.request(ee(s || {}, {
2559
+ ee.prototype[t] = function(n, s) {
2560
+ return this.request(ne(s || {}, {
2561
2561
  method: t,
2562
2562
  url: n,
2563
2563
  data: (s || {}).data
@@ -2566,44 +2566,44 @@ u.forEach(["delete", "get", "head", "options"], function(t) {
2566
2566
  });
2567
2567
  u.forEach(["post", "put", "patch"], function(t) {
2568
2568
  function n(s) {
2569
- return function(a, o, c) {
2570
- return this.request(ee(c || {}, {
2569
+ return function(o, a, c) {
2570
+ return this.request(ne(c || {}, {
2571
2571
  method: t,
2572
2572
  headers: s ? {
2573
2573
  "Content-Type": "multipart/form-data"
2574
2574
  } : {},
2575
- url: a,
2576
- data: o
2575
+ url: o,
2576
+ data: a
2577
2577
  }));
2578
2578
  };
2579
2579
  }
2580
- Q.prototype[t] = n(), Q.prototype[t + "Form"] = n(!0);
2580
+ ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
2581
2581
  });
2582
2582
  let Ao = class Xt {
2583
2583
  constructor(t) {
2584
2584
  if (typeof t != "function")
2585
2585
  throw new TypeError("executor must be a function.");
2586
2586
  let n;
2587
- this.promise = new Promise(function(a) {
2588
- n = a;
2587
+ this.promise = new Promise(function(o) {
2588
+ n = o;
2589
2589
  });
2590
2590
  const s = this;
2591
2591
  this.promise.then((r) => {
2592
2592
  if (!s._listeners) return;
2593
- let a = s._listeners.length;
2594
- for (; a-- > 0; )
2595
- s._listeners[a](r);
2593
+ let o = s._listeners.length;
2594
+ for (; o-- > 0; )
2595
+ s._listeners[o](r);
2596
2596
  s._listeners = null;
2597
2597
  }), this.promise.then = (r) => {
2598
- let a;
2599
- const o = new Promise((c) => {
2600
- s.subscribe(c), a = c;
2598
+ let o;
2599
+ const a = new Promise((c) => {
2600
+ s.subscribe(c), o = c;
2601
2601
  }).then(r);
2602
- return o.cancel = function() {
2603
- s.unsubscribe(a);
2604
- }, o;
2605
- }, t(function(a, o, c) {
2606
- s.reason || (s.reason = new ie(a, o, c), n(s.reason));
2602
+ return a.cancel = function() {
2603
+ s.unsubscribe(o);
2604
+ }, a;
2605
+ }, t(function(o, a, c) {
2606
+ s.reason || (s.reason = new ue(o, a, c), n(s.reason));
2607
2607
  });
2608
2608
  }
2609
2609
  /**
@@ -2652,15 +2652,15 @@ let Ao = class Xt {
2652
2652
  };
2653
2653
  }
2654
2654
  };
2655
- function To(e) {
2655
+ function Oo(e) {
2656
2656
  return function(n) {
2657
2657
  return e.apply(null, n);
2658
2658
  };
2659
2659
  }
2660
- function $o(e) {
2660
+ function Lo(e) {
2661
2661
  return u.isObject(e) && e.isAxiosError === !0;
2662
2662
  }
2663
- const ze = {
2663
+ const qe = {
2664
2664
  Continue: 100,
2665
2665
  SwitchingProtocols: 101,
2666
2666
  Processing: 102,
@@ -2731,75 +2731,75 @@ const ze = {
2731
2731
  SslHandshakeFailed: 525,
2732
2732
  InvalidSslCertificate: 526
2733
2733
  };
2734
- Object.entries(ze).forEach(([e, t]) => {
2735
- ze[t] = e;
2734
+ Object.entries(qe).forEach(([e, t]) => {
2735
+ qe[t] = e;
2736
2736
  });
2737
- function Qt(e) {
2738
- const t = new Q(e), n = At(Q.prototype.request, t);
2739
- return u.extend(n, Q.prototype, t, { allOwnKeys: !0 }), u.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2740
- return Qt(ee(e, r));
2737
+ function Yt(e) {
2738
+ const t = new ee(e), n = At(ee.prototype.request, t);
2739
+ return u.extend(n, ee.prototype, t, { allOwnKeys: !0 }), u.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2740
+ return Yt(ne(e, r));
2741
2741
  }, n;
2742
2742
  }
2743
- const C = Qt(ge);
2744
- C.Axios = Q;
2745
- C.CanceledError = ie;
2746
- C.CancelToken = Ao;
2747
- C.isCancel = zt;
2748
- C.VERSION = Zt;
2749
- C.toFormData = Fe;
2750
- C.AxiosError = S;
2751
- C.Cancel = C.CanceledError;
2752
- C.all = function(t) {
2743
+ const S = Yt(be);
2744
+ S.Axios = ee;
2745
+ S.CanceledError = ue;
2746
+ S.CancelToken = Ao;
2747
+ S.isCancel = zt;
2748
+ S.VERSION = Kt;
2749
+ S.toFormData = Fe;
2750
+ S.AxiosError = C;
2751
+ S.Cancel = S.CanceledError;
2752
+ S.all = function(t) {
2753
2753
  return Promise.all(t);
2754
2754
  };
2755
- C.spread = To;
2756
- C.isAxiosError = $o;
2757
- C.mergeConfig = ee;
2758
- C.AxiosHeaders = H;
2759
- C.formToJSON = (e) => It(u.isHTMLForm(e) ? new FormData(e) : e);
2760
- C.getAdapter = Gt.getAdapter;
2761
- C.HttpStatusCode = ze;
2762
- C.default = C;
2755
+ S.spread = Oo;
2756
+ S.isAxiosError = Lo;
2757
+ S.mergeConfig = ne;
2758
+ S.AxiosHeaders = N;
2759
+ S.formToJSON = (e) => It(u.isHTMLForm(e) ? new FormData(e) : e);
2760
+ S.getAdapter = Jt.getAdapter;
2761
+ S.HttpStatusCode = qe;
2762
+ S.default = S;
2763
2763
  const {
2764
- Axios: Fa,
2765
- AxiosError: Ba,
2766
- CanceledError: Na,
2767
- isCancel: Pa,
2768
- CancelToken: Ha,
2769
- VERSION: Ua,
2770
- all: Va,
2771
- Cancel: Da,
2772
- isAxiosError: ja,
2773
- spread: Ma,
2774
- toFormData: Ia,
2775
- AxiosHeaders: za,
2776
- HttpStatusCode: qa,
2777
- formToJSON: Wa,
2778
- getAdapter: Ja,
2779
- mergeConfig: Ka
2780
- } = C, Lo = (e) => {
2764
+ Axios: ni,
2765
+ AxiosError: si,
2766
+ CanceledError: ri,
2767
+ isCancel: oi,
2768
+ CancelToken: ai,
2769
+ VERSION: ii,
2770
+ all: li,
2771
+ Cancel: ci,
2772
+ isAxiosError: ui,
2773
+ spread: di,
2774
+ toFormData: fi,
2775
+ AxiosHeaders: pi,
2776
+ HttpStatusCode: hi,
2777
+ formToJSON: mi,
2778
+ getAdapter: gi,
2779
+ mergeConfig: yi
2780
+ } = S, To = (e) => {
2781
2781
  const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
2782
2782
  return t ? t[2] : null;
2783
- }, Fo = (e, t, n = {}) => {
2783
+ }, Ho = (e, t, n = {}) => {
2784
2784
  const {
2785
2785
  maxAge: s = 31536e3,
2786
2786
  // 365 days in seconds
2787
- domain: r = Yt(),
2788
- secure: a = !0,
2789
- sameSite: o = "Lax",
2787
+ domain: r = Qt(),
2788
+ secure: o = !0,
2789
+ sameSite: a = "Lax",
2790
2790
  path: c = "/"
2791
2791
  } = n;
2792
- let l = `${e}=${t}; max-age=${s}; path=${c}; samesite=${o}`;
2793
- r && (l += `; domain=${r}`), a && (l += "; secure"), document.cookie = l;
2794
- }, Bo = (e, t = {}) => {
2795
- const { domain: n = Yt(), path: s = "/" } = t;
2792
+ let l = `${e}=${t}; max-age=${s}; path=${c}; samesite=${a}`;
2793
+ r && (l += `; domain=${r}`), o && (l += "; secure"), document.cookie = l;
2794
+ }, Fo = (e, t = {}) => {
2795
+ const { domain: n = Qt(), path: s = "/" } = t;
2796
2796
  let r = `${e}=; max-age=0; path=${s}`;
2797
2797
  n && (r += `; domain=${n}`), document.cookie = r;
2798
- }, Yt = () => {
2798
+ }, Qt = () => {
2799
2799
  const e = window.location.hostname;
2800
2800
  return e === "localhost" ? "localhost" : e.endsWith(".test") || e.endsWith(".io") ? "." + e.split(".").slice(-2).join(".") : e.endsWith(".com.au") ? "." + e.split(".").slice(-3).join(".") : e;
2801
- }, De = "bolt-next-token", te = Re("auth", () => {
2802
- const e = oe({
2801
+ }, De = "bolt-next-token", J = Ae("auth", () => {
2802
+ const e = le({
2803
2803
  user: null,
2804
2804
  token: null,
2805
2805
  ready: !1,
@@ -2834,15 +2834,15 @@ const {
2834
2834
  }), t = (i = {}) => {
2835
2835
  i.endpoints && Object.assign(e.endpoints, i.endpoints), i.routes && Object.assign(e.routes, i.routes), i.devCredentials && Object.assign(e.devCredentials, i.devCredentials), i.callbacks && Object.assign(e.callbacks, i.callbacks), i.overrideToken && (e.overrideToken = i.overrideToken);
2836
2836
  }, n = (i) => {
2837
- Fo(De, i), e.token = i;
2837
+ Ho(De, i), e.token = i;
2838
2838
  }, s = () => {
2839
- Bo(De), e.token = null;
2840
- }, r = () => Lo(De), a = async (i) => {
2841
- const d = await C.post(e.endpoints.login, i), f = d.headers.authorization;
2842
- return n(f), e.user = d.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(d.data), d.data;
2843
- }, o = async () => {
2839
+ Fo(De), e.token = null;
2840
+ }, r = () => To(De), o = async (i) => {
2841
+ const d = await S.post(e.endpoints.login, i), p = d.headers.authorization;
2842
+ return n(p), e.user = d.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(d.data), d.data;
2843
+ }, a = async () => {
2844
2844
  try {
2845
- await C.post(
2845
+ await S.post(
2846
2846
  e.endpoints.logout,
2847
2847
  {},
2848
2848
  {
@@ -2861,7 +2861,7 @@ const {
2861
2861
  if (!i)
2862
2862
  return e.ready = !0, null;
2863
2863
  try {
2864
- const { data: d } = await C.get(e.endpoints.fetch, {
2864
+ const { data: d } = await S.get(e.endpoints.fetch, {
2865
2865
  headers: {
2866
2866
  Authorization: `Bearer ${i}`
2867
2867
  }
@@ -2872,29 +2872,29 @@ const {
2872
2872
  } finally {
2873
2873
  e.ready = !0;
2874
2874
  }
2875
- }, l = T(() => e.overrideToken ? !0 : !!e.token && !!e.user);
2875
+ }, l = L(() => e.overrideToken ? !0 : !!e.token && !!e.user);
2876
2876
  return {
2877
2877
  state: e,
2878
2878
  initialize: t,
2879
- login: a,
2880
- logout: o,
2879
+ login: o,
2880
+ logout: a,
2881
2881
  fetchUser: c,
2882
2882
  check: l,
2883
2883
  setTokenCookie: n,
2884
2884
  clearTokenCookie: s,
2885
2885
  getTokenCookie: r
2886
2886
  };
2887
- }), No = { class: "h-full grid place-content-center relative" }, Po = { class: "absolute top-8 left-8" }, Ho = ["src"], Uo = {
2887
+ }), Bo = { class: "h-full grid place-content-center relative" }, Vo = { class: "absolute top-8 left-8" }, No = ["src"], Po = {
2888
2888
  key: 1,
2889
2889
  width: "59",
2890
2890
  height: "23",
2891
2891
  viewBox: "0 0 59 23",
2892
2892
  fill: "none",
2893
2893
  xmlns: "http://www.w3.org/2000/svg"
2894
- }, Vo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Do = { class: "mb-7" }, jo = { class: "text-gray-600" }, Mo = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, Io = {
2894
+ }, Mo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Uo = { class: "mb-7" }, Do = { class: "text-gray-600" }, jo = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, Io = {
2895
2895
  key: 0,
2896
2896
  class: "text-red-600 text-sm mb-2"
2897
- }, zo = { key: 0 }, qo = { key: 1 }, Wo = {
2897
+ }, zo = { key: 0 }, qo = { key: 1 }, Zo = {
2898
2898
  __name: "SparkLoginView",
2899
2899
  props: {
2900
2900
  logo: {
@@ -2911,8 +2911,8 @@ const {
2911
2911
  }
2912
2912
  },
2913
2913
  setup(e) {
2914
- const t = Ee(), n = Oe(), s = ma(), r = te(), a = e, o = q(!1), c = q(""), l = async (i) => {
2915
- o.value = !0, c.value = "";
2914
+ const t = se(), n = Oe(), s = Pa(), r = J(), o = e, a = q(!1), c = q(""), l = async (i) => {
2915
+ a.value = !0, c.value = "";
2916
2916
  try {
2917
2917
  await r.login(i);
2918
2918
  const d = n.query.redirect;
@@ -2923,53 +2923,53 @@ const {
2923
2923
  }
2924
2924
  await t.push(d);
2925
2925
  } else
2926
- await t.push(a.defaultRedirect);
2926
+ await t.push(o.defaultRedirect);
2927
2927
  } catch (d) {
2928
2928
  c.value = d.response?.data?.message || d.message || "Login failed. Please try again.";
2929
2929
  } finally {
2930
- o.value = !1;
2930
+ a.value = !1;
2931
2931
  }
2932
2932
  };
2933
2933
  return (i, d) => {
2934
- const f = V("FormKit"), b = V("router-link");
2935
- return g(), y("div", No, [
2936
- p("div", Po, [
2937
- a.logo ? (g(), y("img", {
2934
+ const p = M("FormKit"), b = M("router-link");
2935
+ return m(), g("div", Bo, [
2936
+ f("div", Vo, [
2937
+ o.logo ? (m(), g("img", {
2938
2938
  key: 0,
2939
- src: a.logo,
2939
+ src: o.logo,
2940
2940
  alt: "Logo",
2941
2941
  class: "h-[23px] w-auto"
2942
- }, null, 8, Ho)) : (g(), y("svg", Uo, [...d[0] || (d[0] = [
2943
- p("path", {
2942
+ }, null, 8, No)) : (m(), g("svg", Po, [...d[0] || (d[0] = [
2943
+ f("path", {
2944
2944
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
2945
2945
  fill: "#1C64F2"
2946
2946
  }, null, -1),
2947
- p("path", {
2947
+ f("path", {
2948
2948
  d: "M34.5 5.22235H38.228V14.1664H46.5V17.1264H34.5V5.22235Z",
2949
2949
  fill: "#1C64F2"
2950
2950
  }, null, -1),
2951
- p("path", {
2951
+ f("path", {
2952
2952
  d: "M28.3161 0C29.1499 0 29.7522 0.798785 29.5209 1.59757L27.1856 9.77748H30.9046C31.747 9.77748 32.4279 10.4584 32.4279 11.3008C32.4279 11.7504 32.2315 12.1738 31.891 12.4619L20.5989 22.0517C20.3719 22.2438 20.0839 22.3485 19.787 22.3485C18.9533 22.3485 18.351 21.5497 18.5823 20.751L20.9176 12.571H17.1463C16.33 12.571 15.6709 11.9119 15.6709 11.1001C15.6709 10.6679 15.8586 10.262 16.186 9.98263L27.5043 0.301181C27.7312 0.104759 28.0193 0 28.3161 0ZM26.7404 3.71021L18.8311 10.4759H22.3056C22.633 10.4759 22.9429 10.6286 23.1437 10.8905C23.3445 11.1524 23.4056 11.4929 23.3139 11.8072L21.3584 18.6601L29.355 11.8727H25.7976C25.4702 11.8727 25.1603 11.7199 24.9595 11.458C24.7587 11.1961 24.6976 10.8556 24.7893 10.5413L26.7404 3.71021Z",
2953
2953
  fill: "#1C64F2"
2954
2954
  }, null, -1),
2955
- p("path", {
2955
+ f("path", {
2956
2956
  d: "M0 17.1264V5.22235H10.192C13.6 5.22235 14.544 6.53435 14.544 7.94235V8.16635C14.544 9.70235 13.232 10.3264 12.656 10.4864C13.472 10.6944 15.216 11.3984 15.216 13.4784V13.7024C15.216 15.5904 14.144 17.1264 10.288 17.1264H0ZM9.552 7.73435H3.728V9.67035H9.552C10.592 9.67035 10.848 9.19035 10.848 8.71035V8.67835C10.848 8.18235 10.592 7.73435 9.552 7.73435ZM9.872 12.1984H3.728V14.5344H9.872C11.12 14.5344 11.344 13.8464 11.344 13.3664V13.3024C11.344 12.7904 11.104 12.1984 9.872 12.1984Z",
2957
2957
  fill: "#1C64F2"
2958
2958
  }, null, -1)
2959
2959
  ])]))
2960
2960
  ]),
2961
- p("div", Vo, [
2962
- p("div", Do, [
2963
- d[1] || (d[1] = p("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
2964
- p("p", jo, " Welcome back" + F(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
2961
+ f("div", Mo, [
2962
+ f("div", Uo, [
2963
+ d[1] || (d[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
2964
+ f("p", Do, " Welcome back" + O(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
2965
2965
  ]),
2966
- v(f, {
2966
+ v(p, {
2967
2967
  type: "form",
2968
2968
  onSubmit: l,
2969
2969
  actions: !1
2970
2970
  }, {
2971
- default: O(() => [
2972
- v(f, {
2971
+ default: k(() => [
2972
+ v(p, {
2973
2973
  label: "Email",
2974
2974
  name: "email",
2975
2975
  placeholder: "Enter your email",
@@ -2978,7 +2978,7 @@ const {
2978
2978
  "outer-class": "max-w-full",
2979
2979
  value: x(r).state.devCredentials.username
2980
2980
  }, null, 8, ["value"]),
2981
- v(f, {
2981
+ v(p, {
2982
2982
  label: "Password",
2983
2983
  name: "password",
2984
2984
  placeholder: "••••••••",
@@ -2987,27 +2987,27 @@ const {
2987
2987
  "outer-class": "max-w-full",
2988
2988
  value: x(r).state.devCredentials.password
2989
2989
  }, null, 8, ["value"]),
2990
- p("div", Mo, [
2991
- d[3] || (d[3] = p("span", null, null, -1)),
2990
+ f("div", jo, [
2991
+ d[3] || (d[3] = f("span", null, null, -1)),
2992
2992
  v(b, {
2993
- to: a.forgotPasswordRoute,
2993
+ to: o.forgotPasswordRoute,
2994
2994
  class: "text-sm text-primary-600 font-semibold"
2995
2995
  }, {
2996
- default: O(() => [...d[2] || (d[2] = [
2997
- qe(" Forgot password ", -1)
2996
+ default: k(() => [...d[2] || (d[2] = [
2997
+ G(" Forgot password ", -1)
2998
2998
  ])]),
2999
2999
  _: 1
3000
3000
  }, 8, ["to"])
3001
3001
  ]),
3002
- c.value ? (g(), y("div", Io, F(c.value), 1)) : R("", !0),
3003
- v(x(Ae), {
3002
+ c.value ? (m(), g("div", Io, O(c.value), 1)) : E("", !0),
3003
+ v(x(re), {
3004
3004
  type: "submit",
3005
3005
  size: "xl",
3006
- disabled: o.value,
3006
+ disabled: a.value,
3007
3007
  "button-class": "w-full mb-2"
3008
3008
  }, {
3009
- default: O(() => [
3010
- o.value ? (g(), y("span", qo, "Signing in...")) : (g(), y("span", zo, "Sign in"))
3009
+ default: k(() => [
3010
+ a.value ? (m(), g("span", qo, "Signing in...")) : (m(), g("span", zo, "Sign in"))
3011
3011
  ]),
3012
3012
  _: 1
3013
3013
  }, 8, ["disabled"])
@@ -3018,7 +3018,7 @@ const {
3018
3018
  ]);
3019
3019
  };
3020
3020
  }
3021
- }, Jo = {
3021
+ }, Wo = {
3022
3022
  __name: "SparkLogoutView",
3023
3023
  props: {
3024
3024
  defaultRedirect: {
@@ -3027,21 +3027,21 @@ const {
3027
3027
  }
3028
3028
  },
3029
3029
  setup(e) {
3030
- const t = Ee(), n = Oe(), s = te(), r = e;
3030
+ const t = se(), n = Oe(), s = J(), r = e;
3031
3031
  return sn(async () => {
3032
3032
  await s.logout();
3033
- const a = n.query.redirect;
3034
- a && a.startsWith("http") ? window.location.href = a : await t.push(a || r.defaultRedirect);
3035
- }), (a, o) => null;
3033
+ const o = n.query.redirect;
3034
+ o && o.startsWith("http") ? window.location.href = o : await t.push(o || r.defaultRedirect);
3035
+ }), (o, a) => null;
3036
3036
  }
3037
- }, Ko = { class: "h-full grid place-content-center relative" }, Go = { class: "absolute top-8 left-8" }, Zo = ["src"], Xo = {
3037
+ }, Go = { class: "h-full grid place-content-center relative" }, Jo = { class: "absolute top-8 left-8" }, Ko = ["src"], Xo = {
3038
3038
  key: 1,
3039
3039
  width: "59",
3040
3040
  height: "23",
3041
3041
  viewBox: "0 0 59 23",
3042
3042
  fill: "none",
3043
3043
  xmlns: "http://www.w3.org/2000/svg"
3044
- }, Qo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Yo = {
3044
+ }, Yo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Qo = {
3045
3045
  key: 0,
3046
3046
  class: "text-red-600 text-sm mb-2"
3047
3047
  }, ea = {
@@ -3060,10 +3060,10 @@ const {
3060
3060
  }
3061
3061
  },
3062
3062
  setup(e) {
3063
- const t = te(), n = e, s = q(!1), r = q(""), a = q(""), o = async ({ email: c }) => {
3064
- s.value = !0, r.value = "", a.value = "";
3063
+ const t = J(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: c }) => {
3064
+ s.value = !0, r.value = "", o.value = "";
3065
3065
  try {
3066
- await C.post(t.state.endpoints.passwordEmail, { email: c }), a.value = "Password reset link sent! Check your email.";
3066
+ await S.post(t.state.endpoints.passwordEmail, { email: c }), o.value = "Password reset link sent! Check your email.";
3067
3067
  } catch (l) {
3068
3068
  r.value = l.response?.data?.message || "Failed to send reset link.";
3069
3069
  } finally {
@@ -3071,44 +3071,44 @@ const {
3071
3071
  }
3072
3072
  };
3073
3073
  return (c, l) => {
3074
- const i = V("FormKit"), d = V("router-link");
3075
- return g(), y("div", Ko, [
3076
- p("div", Go, [
3077
- n.logo ? (g(), y("img", {
3074
+ const i = M("FormKit"), d = M("router-link");
3075
+ return m(), g("div", Go, [
3076
+ f("div", Jo, [
3077
+ n.logo ? (m(), g("img", {
3078
3078
  key: 0,
3079
3079
  src: n.logo,
3080
3080
  alt: "Logo",
3081
3081
  class: "h-[23px] w-auto"
3082
- }, null, 8, Zo)) : (g(), y("svg", Xo, [...l[0] || (l[0] = [
3083
- p("path", {
3082
+ }, null, 8, Ko)) : (m(), g("svg", Xo, [...l[0] || (l[0] = [
3083
+ f("path", {
3084
3084
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3085
3085
  fill: "#1C64F2"
3086
3086
  }, null, -1),
3087
- p("path", {
3087
+ f("path", {
3088
3088
  d: "M34.5 5.22235H38.228V14.1664H46.5V17.1264H34.5V5.22235Z",
3089
3089
  fill: "#1C64F2"
3090
3090
  }, null, -1),
3091
- p("path", {
3091
+ f("path", {
3092
3092
  d: "M28.3161 0C29.1499 0 29.7522 0.798785 29.5209 1.59757L27.1856 9.77748H30.9046C31.747 9.77748 32.4279 10.4584 32.4279 11.3008C32.4279 11.7504 32.2315 12.1738 31.891 12.4619L20.5989 22.0517C20.3719 22.2438 20.0839 22.3485 19.787 22.3485C18.9533 22.3485 18.351 21.5497 18.5823 20.751L20.9176 12.571H17.1463C16.33 12.571 15.6709 11.9119 15.6709 11.1001C15.6709 10.6679 15.8586 10.262 16.186 9.98263L27.5043 0.301181C27.7312 0.104759 28.0193 0 28.3161 0ZM26.7404 3.71021L18.8311 10.4759H22.3056C22.633 10.4759 22.9429 10.6286 23.1437 10.8905C23.3445 11.1524 23.4056 11.4929 23.3139 11.8072L21.3584 18.6601L29.355 11.8727H25.7976C25.4702 11.8727 25.1603 11.7199 24.9595 11.458C24.7587 11.1961 24.6976 10.8556 24.7893 10.5413L26.7404 3.71021Z",
3093
3093
  fill: "#1C64F2"
3094
3094
  }, null, -1),
3095
- p("path", {
3095
+ f("path", {
3096
3096
  d: "M0 17.1264V5.22235H10.192C13.6 5.22235 14.544 6.53435 14.544 7.94235V8.16635C14.544 9.70235 13.232 10.3264 12.656 10.4864C13.472 10.6944 15.216 11.3984 15.216 13.4784V13.7024C15.216 15.5904 14.144 17.1264 10.288 17.1264H0ZM9.552 7.73435H3.728V9.67035H9.552C10.592 9.67035 10.848 9.19035 10.848 8.71035V8.67835C10.848 8.18235 10.592 7.73435 9.552 7.73435ZM9.872 12.1984H3.728V14.5344H9.872C11.12 14.5344 11.344 13.8464 11.344 13.3664V13.3024C11.344 12.7904 11.104 12.1984 9.872 12.1984Z",
3097
3097
  fill: "#1C64F2"
3098
3098
  }, null, -1)
3099
3099
  ])]))
3100
3100
  ]),
3101
- p("div", Qo, [
3102
- l[2] || (l[2] = p("div", { class: "mb-7" }, [
3103
- p("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
3104
- p("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
3101
+ f("div", Yo, [
3102
+ l[2] || (l[2] = f("div", { class: "mb-7" }, [
3103
+ f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
3104
+ f("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
3105
3105
  ], -1)),
3106
3106
  v(i, {
3107
3107
  type: "form",
3108
- onSubmit: o,
3108
+ onSubmit: a,
3109
3109
  actions: !1
3110
3110
  }, {
3111
- default: O(() => [
3111
+ default: k(() => [
3112
3112
  v(i, {
3113
3113
  label: "Email",
3114
3114
  name: "email",
@@ -3117,16 +3117,16 @@ const {
3117
3117
  validation: "required|email",
3118
3118
  "outer-class": "max-w-full"
3119
3119
  }),
3120
- r.value ? (g(), y("div", Yo, F(r.value), 1)) : R("", !0),
3121
- a.value ? (g(), y("div", ea, F(a.value), 1)) : R("", !0),
3122
- v(x(Ae), {
3120
+ r.value ? (m(), g("div", Qo, O(r.value), 1)) : E("", !0),
3121
+ o.value ? (m(), g("div", ea, O(o.value), 1)) : E("", !0),
3122
+ v(x(re), {
3123
3123
  type: "submit",
3124
3124
  size: "xl",
3125
3125
  disabled: s.value,
3126
3126
  "button-class": "w-full mb-2"
3127
3127
  }, {
3128
- default: O(() => [
3129
- s.value ? (g(), y("span", na, "Sending...")) : (g(), y("span", ta, "Send reset link"))
3128
+ default: k(() => [
3129
+ s.value ? (m(), g("span", na, "Sending...")) : (m(), g("span", ta, "Send reset link"))
3130
3130
  ]),
3131
3131
  _: 1
3132
3132
  }, 8, ["disabled"]),
@@ -3134,8 +3134,8 @@ const {
3134
3134
  to: n.loginRoute,
3135
3135
  class: "text-sm text-center text-primary-600 font-semibold block"
3136
3136
  }, {
3137
- default: O(() => [...l[1] || (l[1] = [
3138
- qe(" Back to login ", -1)
3137
+ default: k(() => [...l[1] || (l[1] = [
3138
+ G(" Back to login ", -1)
3139
3139
  ])]),
3140
3140
  _: 1
3141
3141
  }, 8, ["to"])
@@ -3169,60 +3169,60 @@ const {
3169
3169
  }
3170
3170
  },
3171
3171
  setup(e) {
3172
- const t = Ee(), n = Oe(), s = te(), r = e, a = q(!1), o = q(""), c = async ({ password: l, password_confirmation: i }) => {
3173
- a.value = !0, o.value = "";
3172
+ const t = se(), n = Oe(), s = J(), r = e, o = q(!1), a = q(""), c = async ({ password: l, password_confirmation: i }) => {
3173
+ o.value = !0, a.value = "";
3174
3174
  try {
3175
- await C.post(s.state.endpoints.passwordReset, {
3175
+ await S.post(s.state.endpoints.passwordReset, {
3176
3176
  email: n.query.email,
3177
3177
  token: n.query.token,
3178
3178
  password: l,
3179
3179
  password_confirmation: i
3180
3180
  }), await t.push(r.loginRoute);
3181
3181
  } catch (d) {
3182
- o.value = d.response?.data?.message || "Failed to reset password.";
3182
+ a.value = d.response?.data?.message || "Failed to reset password.";
3183
3183
  } finally {
3184
- a.value = !1;
3184
+ o.value = !1;
3185
3185
  }
3186
3186
  };
3187
3187
  return (l, i) => {
3188
- const d = V("FormKit");
3189
- return g(), y("div", ra, [
3190
- p("div", oa, [
3191
- r.logo ? (g(), y("img", {
3188
+ const d = M("FormKit");
3189
+ return m(), g("div", ra, [
3190
+ f("div", oa, [
3191
+ r.logo ? (m(), g("img", {
3192
3192
  key: 0,
3193
3193
  src: r.logo,
3194
3194
  alt: "Logo",
3195
3195
  class: "h-[23px] w-auto"
3196
- }, null, 8, aa)) : (g(), y("svg", ia, [...i[0] || (i[0] = [
3197
- p("path", {
3196
+ }, null, 8, aa)) : (m(), g("svg", ia, [...i[0] || (i[0] = [
3197
+ f("path", {
3198
3198
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3199
3199
  fill: "#1C64F2"
3200
3200
  }, null, -1),
3201
- p("path", {
3201
+ f("path", {
3202
3202
  d: "M34.5 5.22235H38.228V14.1664H46.5V17.1264H34.5V5.22235Z",
3203
3203
  fill: "#1C64F2"
3204
3204
  }, null, -1),
3205
- p("path", {
3205
+ f("path", {
3206
3206
  d: "M28.3161 0C29.1499 0 29.7522 0.798785 29.5209 1.59757L27.1856 9.77748H30.9046C31.747 9.77748 32.4279 10.4584 32.4279 11.3008C32.4279 11.7504 32.2315 12.1738 31.891 12.4619L20.5989 22.0517C20.3719 22.2438 20.0839 22.3485 19.787 22.3485C18.9533 22.3485 18.351 21.5497 18.5823 20.751L20.9176 12.571H17.1463C16.33 12.571 15.6709 11.9119 15.6709 11.1001C15.6709 10.6679 15.8586 10.262 16.186 9.98263L27.5043 0.301181C27.7312 0.104759 28.0193 0 28.3161 0ZM26.7404 3.71021L18.8311 10.4759H22.3056C22.633 10.4759 22.9429 10.6286 23.1437 10.8905C23.3445 11.1524 23.4056 11.4929 23.3139 11.8072L21.3584 18.6601L29.355 11.8727H25.7976C25.4702 11.8727 25.1603 11.7199 24.9595 11.458C24.7587 11.1961 24.6976 10.8556 24.7893 10.5413L26.7404 3.71021Z",
3207
3207
  fill: "#1C64F2"
3208
3208
  }, null, -1),
3209
- p("path", {
3209
+ f("path", {
3210
3210
  d: "M0 17.1264V5.22235H10.192C13.6 5.22235 14.544 6.53435 14.544 7.94235V8.16635C14.544 9.70235 13.232 10.3264 12.656 10.4864C13.472 10.6944 15.216 11.3984 15.216 13.4784V13.7024C15.216 15.5904 14.144 17.1264 10.288 17.1264H0ZM9.552 7.73435H3.728V9.67035H9.552C10.592 9.67035 10.848 9.19035 10.848 8.71035V8.67835C10.848 8.18235 10.592 7.73435 9.552 7.73435ZM9.872 12.1984H3.728V14.5344H9.872C11.12 14.5344 11.344 13.8464 11.344 13.3664V13.3024C11.344 12.7904 11.104 12.1984 9.872 12.1984Z",
3211
3211
  fill: "#1C64F2"
3212
3212
  }, null, -1)
3213
3213
  ])]))
3214
3214
  ]),
3215
- p("div", la, [
3216
- i[1] || (i[1] = p("div", { class: "mb-7" }, [
3217
- p("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
3218
- p("p", { class: "text-gray-600" }, " Enter your new password below. ")
3215
+ f("div", la, [
3216
+ i[1] || (i[1] = f("div", { class: "mb-7" }, [
3217
+ f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
3218
+ f("p", { class: "text-gray-600" }, " Enter your new password below. ")
3219
3219
  ], -1)),
3220
3220
  v(d, {
3221
3221
  type: "form",
3222
3222
  onSubmit: c,
3223
3223
  actions: !1
3224
3224
  }, {
3225
- default: O(() => [
3225
+ default: k(() => [
3226
3226
  v(d, {
3227
3227
  label: "New Password",
3228
3228
  name: "password",
@@ -3239,15 +3239,15 @@ const {
3239
3239
  validation: "required|confirm",
3240
3240
  "outer-class": "max-w-full"
3241
3241
  }),
3242
- o.value ? (g(), y("div", ca, F(o.value), 1)) : R("", !0),
3243
- v(x(Ae), {
3242
+ a.value ? (m(), g("div", ca, O(a.value), 1)) : E("", !0),
3243
+ v(x(re), {
3244
3244
  type: "submit",
3245
3245
  size: "xl",
3246
- disabled: a.value,
3246
+ disabled: o.value,
3247
3247
  "button-class": "w-full mb-2"
3248
3248
  }, {
3249
- default: O(() => [
3250
- a.value ? (g(), y("span", da, "Resetting...")) : (g(), y("span", ua, "Reset password"))
3249
+ default: k(() => [
3250
+ o.value ? (m(), g("span", da, "Resetting...")) : (m(), g("span", ua, "Reset password"))
3251
3251
  ]),
3252
3252
  _: 1
3253
3253
  }, 8, ["disabled"])
@@ -3258,28 +3258,251 @@ const {
3258
3258
  ]);
3259
3259
  };
3260
3260
  }
3261
+ }, pa = { class: "h-full grid place-content-center relative" }, ha = { class: "absolute top-8 left-8" }, ma = ["src"], ga = {
3262
+ key: 1,
3263
+ width: "59",
3264
+ height: "23",
3265
+ viewBox: "0 0 59 23",
3266
+ fill: "none",
3267
+ xmlns: "http://www.w3.org/2000/svg"
3268
+ }, ya = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, wa = { class: "flex gap-4 justify-center" }, ba = {
3269
+ __name: "SparkError403View",
3270
+ props: {
3271
+ logo: {
3272
+ type: String,
3273
+ default: ""
3274
+ },
3275
+ homeRoute: {
3276
+ type: String,
3277
+ default: "/dashboard"
3278
+ }
3279
+ },
3280
+ setup(e) {
3281
+ const t = se(), n = e, s = () => {
3282
+ t.push(n.homeRoute);
3283
+ };
3284
+ return (r, o) => (m(), g("div", pa, [
3285
+ f("div", ha, [
3286
+ n.logo ? (m(), g("img", {
3287
+ key: 0,
3288
+ src: n.logo,
3289
+ alt: "Logo",
3290
+ class: "h-[23px] w-auto"
3291
+ }, null, 8, ma)) : (m(), g("svg", ga, [...o[0] || (o[0] = [
3292
+ f("path", {
3293
+ d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3294
+ fill: "#1C64F2"
3295
+ }, null, -1),
3296
+ f("path", {
3297
+ d: "M34.5 5.22235H38.228V14.1664H46.5V17.1264H34.5V5.22235Z",
3298
+ fill: "#1C64F2"
3299
+ }, null, -1),
3300
+ f("path", {
3301
+ d: "M28.3161 0C29.1499 0 29.7522 0.798785 29.5209 1.59757L27.1856 9.77748H30.9046C31.747 9.77748 32.4279 10.4584 32.4279 11.3008C32.4279 11.7504 32.2315 12.1738 31.891 12.4619L20.5989 22.0517C20.3719 22.2438 20.0839 22.3485 19.787 22.3485C18.9533 22.3485 18.351 21.5497 18.5823 20.751L20.9176 12.571H17.1463C16.33 12.571 15.6709 11.9119 15.6709 11.1001C15.6709 10.6679 15.8586 10.262 16.186 9.98263L27.5043 0.301181C27.7312 0.104759 28.0193 0 28.3161 0ZM26.7404 3.71021L18.8311 10.4759H22.3056C22.633 10.4759 22.9429 10.6286 23.1437 10.8905C23.3445 11.1524 23.4056 11.4929 23.3139 11.8072L21.3584 18.6601L29.355 11.8727H25.7976C25.4702 11.8727 25.1603 11.7199 24.9595 11.458C24.7587 11.1961 24.6976 10.8556 24.7893 10.5413L26.7404 3.71021Z",
3302
+ fill: "#1C64F2"
3303
+ }, null, -1),
3304
+ f("path", {
3305
+ d: "M0 17.1264V5.22235H10.192C13.6 5.22235 14.544 6.53435 14.544 7.94235V8.16635C14.544 9.70235 13.232 10.3264 12.656 10.4864C13.472 10.6944 15.216 11.3984 15.216 13.4784V13.7024C15.216 15.5904 14.144 17.1264 10.288 17.1264H0ZM9.552 7.73435H3.728V9.67035H9.552C10.592 9.67035 10.848 9.19035 10.848 8.71035V8.67835C10.848 8.18235 10.592 7.73435 9.552 7.73435ZM9.872 12.1984H3.728V14.5344H9.872C11.12 14.5344 11.344 13.8464 11.344 13.3664V13.3024C11.344 12.7904 11.104 12.1984 9.872 12.1984Z",
3306
+ fill: "#1C64F2"
3307
+ }, null, -1)
3308
+ ])]))
3309
+ ]),
3310
+ f("div", ya, [
3311
+ o[2] || (o[2] = f("div", null, [
3312
+ f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
3313
+ f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
3314
+ f("p", { class: "text-gray-600" }, [
3315
+ G(" You don't have permission to access this resource."),
3316
+ f("br"),
3317
+ G(" If you believe this is an error, please contact your administrator. ")
3318
+ ])
3319
+ ], -1)),
3320
+ f("div", wa, [
3321
+ v(x(re), {
3322
+ onClick: s,
3323
+ size: "lg"
3324
+ }, {
3325
+ default: k(() => [...o[1] || (o[1] = [
3326
+ G(" Go to Home ", -1)
3327
+ ])]),
3328
+ _: 1
3329
+ })
3330
+ ])
3331
+ ])
3332
+ ]));
3333
+ }
3334
+ }, xa = { class: "h-full grid place-content-center relative" }, Ca = { class: "absolute top-8 left-8" }, va = ["src"], Sa = {
3335
+ key: 1,
3336
+ width: "59",
3337
+ height: "23",
3338
+ viewBox: "0 0 59 23",
3339
+ fill: "none",
3340
+ xmlns: "http://www.w3.org/2000/svg"
3341
+ }, _a = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, ka = { class: "flex gap-4 justify-center" }, Ra = {
3342
+ __name: "SparkError404View",
3343
+ props: {
3344
+ logo: {
3345
+ type: String,
3346
+ default: ""
3347
+ },
3348
+ homeRoute: {
3349
+ type: String,
3350
+ default: "/dashboard"
3351
+ }
3352
+ },
3353
+ setup(e) {
3354
+ const t = se(), n = e, s = () => {
3355
+ t.push(n.homeRoute);
3356
+ };
3357
+ return (r, o) => (m(), g("div", xa, [
3358
+ f("div", Ca, [
3359
+ n.logo ? (m(), g("img", {
3360
+ key: 0,
3361
+ src: n.logo,
3362
+ alt: "Logo",
3363
+ class: "h-[23px] w-auto"
3364
+ }, null, 8, va)) : (m(), g("svg", Sa, [...o[0] || (o[0] = [
3365
+ f("path", {
3366
+ d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3367
+ fill: "#1C64F2"
3368
+ }, null, -1),
3369
+ f("path", {
3370
+ d: "M34.5 5.22235H38.228V14.1664H46.5V17.1264H34.5V5.22235Z",
3371
+ fill: "#1C64F2"
3372
+ }, null, -1),
3373
+ f("path", {
3374
+ d: "M28.3161 0C29.1499 0 29.7522 0.798785 29.5209 1.59757L27.1856 9.77748H30.9046C31.747 9.77748 32.4279 10.4584 32.4279 11.3008C32.4279 11.7504 32.2315 12.1738 31.891 12.4619L20.5989 22.0517C20.3719 22.2438 20.0839 22.3485 19.787 22.3485C18.9533 22.3485 18.351 21.5497 18.5823 20.751L20.9176 12.571H17.1463C16.33 12.571 15.6709 11.9119 15.6709 11.1001C15.6709 10.6679 15.8586 10.262 16.186 9.98263L27.5043 0.301181C27.7312 0.104759 28.0193 0 28.3161 0ZM26.7404 3.71021L18.8311 10.4759H22.3056C22.633 10.4759 22.9429 10.6286 23.1437 10.8905C23.3445 11.1524 23.4056 11.4929 23.3139 11.8072L21.3584 18.6601L29.355 11.8727H25.7976C25.4702 11.8727 25.1603 11.7199 24.9595 11.458C24.7587 11.1961 24.6976 10.8556 24.7893 10.5413L26.7404 3.71021Z",
3375
+ fill: "#1C64F2"
3376
+ }, null, -1),
3377
+ f("path", {
3378
+ d: "M0 17.1264V5.22235H10.192C13.6 5.22235 14.544 6.53435 14.544 7.94235V8.16635C14.544 9.70235 13.232 10.3264 12.656 10.4864C13.472 10.6944 15.216 11.3984 15.216 13.4784V13.7024C15.216 15.5904 14.144 17.1264 10.288 17.1264H0ZM9.552 7.73435H3.728V9.67035H9.552C10.592 9.67035 10.848 9.19035 10.848 8.71035V8.67835C10.848 8.18235 10.592 7.73435 9.552 7.73435ZM9.872 12.1984H3.728V14.5344H9.872C11.12 14.5344 11.344 13.8464 11.344 13.3664V13.3024C11.344 12.7904 11.104 12.1984 9.872 12.1984Z",
3379
+ fill: "#1C64F2"
3380
+ }, null, -1)
3381
+ ])]))
3382
+ ]),
3383
+ f("div", _a, [
3384
+ o[2] || (o[2] = f("div", null, [
3385
+ f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
3386
+ f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
3387
+ f("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
3388
+ ], -1)),
3389
+ f("div", ka, [
3390
+ v(x(re), {
3391
+ onClick: s,
3392
+ size: "lg"
3393
+ }, {
3394
+ default: k(() => [...o[1] || (o[1] = [
3395
+ G(" Go to Home ", -1)
3396
+ ])]),
3397
+ _: 1
3398
+ })
3399
+ ])
3400
+ ])
3401
+ ]));
3402
+ }
3403
+ }, Ea = { class: "h-full grid place-content-center relative" }, $a = { class: "absolute top-8 left-8" }, Aa = ["src"], Oa = {
3404
+ key: 1,
3405
+ width: "59",
3406
+ height: "23",
3407
+ viewBox: "0 0 59 23",
3408
+ fill: "none",
3409
+ xmlns: "http://www.w3.org/2000/svg"
3410
+ }, La = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Ta = { class: "text-primary-600 text-7xl font-bold mb-4" }, Ha = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Fa = { class: "text-gray-600" }, Ba = { class: "flex gap-4 justify-center" }, wi = {
3411
+ __name: "SparkErrorGeneralView",
3412
+ props: {
3413
+ logo: {
3414
+ type: String,
3415
+ default: ""
3416
+ },
3417
+ homeRoute: {
3418
+ type: String,
3419
+ default: "/dashboard"
3420
+ },
3421
+ errorCode: {
3422
+ type: [String, Number],
3423
+ default: null
3424
+ },
3425
+ title: {
3426
+ type: String,
3427
+ default: ""
3428
+ },
3429
+ message: {
3430
+ type: String,
3431
+ default: ""
3432
+ }
3433
+ },
3434
+ setup(e) {
3435
+ const t = se(), n = e, s = () => {
3436
+ t.push(n.homeRoute);
3437
+ };
3438
+ return (r, o) => (m(), g("div", Ea, [
3439
+ f("div", $a, [
3440
+ n.logo ? (m(), g("img", {
3441
+ key: 0,
3442
+ src: n.logo,
3443
+ alt: "Logo",
3444
+ class: "h-[23px] w-auto"
3445
+ }, null, 8, Aa)) : (m(), g("svg", Oa, [...o[0] || (o[0] = [
3446
+ f("path", {
3447
+ d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3448
+ fill: "#1C64F2"
3449
+ }, null, -1),
3450
+ f("path", {
3451
+ d: "M34.5 5.22235H38.228V14.1664H46.5V17.1264H34.5V5.22235Z",
3452
+ fill: "#1C64F2"
3453
+ }, null, -1),
3454
+ f("path", {
3455
+ d: "M28.3161 0C29.1499 0 29.7522 0.798785 29.5209 1.59757L27.1856 9.77748H30.9046C31.747 9.77748 32.4279 10.4584 32.4279 11.3008C32.4279 11.7504 32.2315 12.1738 31.891 12.4619L20.5989 22.0517C20.3719 22.2438 20.0839 22.3485 19.787 22.3485C18.9533 22.3485 18.351 21.5497 18.5823 20.751L20.9176 12.571H17.1463C16.33 12.571 15.6709 11.9119 15.6709 11.1001C15.6709 10.6679 15.8586 10.262 16.186 9.98263L27.5043 0.301181C27.7312 0.104759 28.0193 0 28.3161 0ZM26.7404 3.71021L18.8311 10.4759H22.3056C22.633 10.4759 22.9429 10.6286 23.1437 10.8905C23.3445 11.1524 23.4056 11.4929 23.3139 11.8072L21.3584 18.6601L29.355 11.8727H25.7976C25.4702 11.8727 25.1603 11.7199 24.9595 11.458C24.7587 11.1961 24.6976 10.8556 24.7893 10.5413L26.7404 3.71021Z",
3456
+ fill: "#1C64F2"
3457
+ }, null, -1),
3458
+ f("path", {
3459
+ d: "M0 17.1264V5.22235H10.192C13.6 5.22235 14.544 6.53435 14.544 7.94235V8.16635C14.544 9.70235 13.232 10.3264 12.656 10.4864C13.472 10.6944 15.216 11.3984 15.216 13.4784V13.7024C15.216 15.5904 14.144 17.1264 10.288 17.1264H0ZM9.552 7.73435H3.728V9.67035H9.552C10.592 9.67035 10.848 9.19035 10.848 8.71035V8.67835C10.848 8.18235 10.592 7.73435 9.552 7.73435ZM9.872 12.1984H3.728V14.5344H9.872C11.12 14.5344 11.344 13.8464 11.344 13.3664V13.3024C11.344 12.7904 11.104 12.1984 9.872 12.1984Z",
3460
+ fill: "#1C64F2"
3461
+ }, null, -1)
3462
+ ])]))
3463
+ ]),
3464
+ f("div", La, [
3465
+ f("div", null, [
3466
+ f("div", Ta, O(n.errorCode || "Error"), 1),
3467
+ f("h1", Ha, O(n.title || "Something went wrong"), 1),
3468
+ f("p", Fa, O(n.message || "An unexpected error occurred. Please try again later."), 1)
3469
+ ]),
3470
+ f("div", Ba, [
3471
+ v(x(re), {
3472
+ onClick: s,
3473
+ size: "lg"
3474
+ }, {
3475
+ default: k(() => [...o[1] || (o[1] = [
3476
+ G(" Go to Home ", -1)
3477
+ ])]),
3478
+ _: 1
3479
+ })
3480
+ ])
3481
+ ])
3482
+ ]));
3483
+ }
3261
3484
  };
3262
- function Ga(e = {}) {
3485
+ function bi(e = {}) {
3263
3486
  const {
3264
3487
  loginPath: t = "/login",
3265
3488
  logoutPath: n = "/logout",
3266
3489
  forgotPasswordPath: s = "/forgot-password",
3267
3490
  resetPasswordPath: r = "/reset-password",
3268
- logo: a = "",
3269
- defaultRedirect: o = "/dashboard"
3491
+ logo: o = "",
3492
+ defaultRedirect: a = "/dashboard"
3270
3493
  } = e;
3271
3494
  return [
3272
3495
  {
3273
3496
  path: t,
3274
3497
  name: "login",
3275
- component: Wo,
3276
- props: { logo: a, defaultRedirect: o },
3498
+ component: Zo,
3499
+ props: { logo: o, defaultRedirect: a },
3277
3500
  meta: { auth: !1 }
3278
3501
  },
3279
3502
  {
3280
3503
  path: n,
3281
3504
  name: "logout",
3282
- component: Jo,
3505
+ component: Wo,
3283
3506
  props: { defaultRedirect: t },
3284
3507
  meta: { auth: !1 }
3285
3508
  },
@@ -3287,32 +3510,32 @@ function Ga(e = {}) {
3287
3510
  path: s,
3288
3511
  name: "forgot-password",
3289
3512
  component: sa,
3290
- props: { logo: a, loginRoute: t },
3513
+ props: { logo: o, loginRoute: t },
3291
3514
  meta: { auth: !1 }
3292
3515
  },
3293
3516
  {
3294
3517
  path: r,
3295
3518
  name: "reset-password",
3296
3519
  component: fa,
3297
- props: { logo: a, loginRoute: t },
3520
+ props: { logo: o, loginRoute: t },
3298
3521
  meta: { auth: !1 }
3299
3522
  }
3300
3523
  ];
3301
3524
  }
3302
- function Za(e, t = {}) {
3525
+ function xi(e, t = {}) {
3303
3526
  const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
3304
- e.beforeEach(async (s, r, a) => {
3305
- const o = te();
3306
- o.state.ready || await o.fetchUser(), pa(s, a, o, n);
3527
+ e.beforeEach(async (s, r, o) => {
3528
+ const a = J();
3529
+ a.state.ready || await a.fetchUser(), Va(s, o, a, n);
3307
3530
  });
3308
3531
  }
3309
- function pa(e, t, n, s) {
3310
- const r = e.meta.auth !== !1, a = n.check;
3532
+ function Va(e, t, n, s) {
3533
+ const r = e.meta.auth !== !1, o = n.check;
3311
3534
  if (n.state.overrideToken && e.path === "/logout") {
3312
3535
  t({ path: s });
3313
3536
  return;
3314
3537
  }
3315
- if (!a) {
3538
+ if (!o) {
3316
3539
  if (!r) {
3317
3540
  if (e.path === "/logout") {
3318
3541
  t({ path: n.state.routes.auth });
@@ -3321,18 +3544,18 @@ function pa(e, t, n, s) {
3321
3544
  t();
3322
3545
  return;
3323
3546
  }
3324
- let o = e.fullPath;
3325
- if (o === "/" || o === "" || o === s) {
3547
+ let a = e.fullPath;
3548
+ if (a === "/" || a === "" || a === s) {
3326
3549
  t({ path: n.state.routes.auth });
3327
3550
  return;
3328
3551
  }
3329
- o.includes("%") && (o = decodeURIComponent(o)), t({
3552
+ a.includes("%") && (a = decodeURIComponent(a)), t({
3330
3553
  path: n.state.routes.auth,
3331
- query: { redirect: o }
3554
+ query: { redirect: a }
3332
3555
  });
3333
3556
  return;
3334
3557
  }
3335
- if (a) {
3558
+ if (o) {
3336
3559
  if (!r && e.path === n.state.routes.auth) {
3337
3560
  t({ path: s });
3338
3561
  return;
@@ -3344,8 +3567,35 @@ function pa(e, t, n, s) {
3344
3567
  t();
3345
3568
  }
3346
3569
  }
3347
- function ha(e = {}) {
3348
- const t = C.create({
3570
+ function Ci(e = {}) {
3571
+ const {
3572
+ forbiddenPath: t = "/error/403",
3573
+ logo: n = "",
3574
+ homeRoute: s = "/dashboard"
3575
+ } = e;
3576
+ return {
3577
+ path: t,
3578
+ name: "error-403",
3579
+ component: ba,
3580
+ props: { logo: n, homeRoute: s },
3581
+ meta: { auth: !1 }
3582
+ };
3583
+ }
3584
+ function vi(e = {}) {
3585
+ const {
3586
+ logo: t = "",
3587
+ homeRoute: n = "/dashboard"
3588
+ } = e;
3589
+ return {
3590
+ path: "/:pathMatch(.*)*",
3591
+ name: "error-404",
3592
+ component: Ra,
3593
+ props: { logo: t, homeRoute: n },
3594
+ meta: { auth: !1 }
3595
+ };
3596
+ }
3597
+ function Na(e = {}) {
3598
+ const t = S.create({
3349
3599
  baseURL: e.baseURL || "",
3350
3600
  timeout: e.timeout || 3e4,
3351
3601
  headers: {
@@ -3356,7 +3606,7 @@ function ha(e = {}) {
3356
3606
  return t.interceptors.request.use(
3357
3607
  (n) => {
3358
3608
  try {
3359
- const s = te();
3609
+ const s = J();
3360
3610
  s.state.overrideToken ? n.headers.Authorization = `Bearer ${s.state.overrideToken}` : s.state.token && (n.headers.Authorization = `Bearer ${s.state.token}`);
3361
3611
  } catch {
3362
3612
  }
@@ -3368,21 +3618,28 @@ function ha(e = {}) {
3368
3618
  async (n) => {
3369
3619
  if (n.response?.status === 401)
3370
3620
  try {
3371
- const s = te();
3621
+ const s = J();
3372
3622
  await s.logout(), window.location.href = s.state.routes.auth;
3373
3623
  } catch (s) {
3374
3624
  console.error("Error during auto-logout:", s), window.location.href = "/login";
3375
3625
  }
3626
+ if (n.response?.status === 403)
3627
+ try {
3628
+ const s = J();
3629
+ window.location.href = s.state.routes.forbidden;
3630
+ } catch (s) {
3631
+ console.error("Error during 403 redirect:", s), window.location.href = "/error/403";
3632
+ }
3376
3633
  return Promise.reject(n);
3377
3634
  }
3378
3635
  ), t;
3379
3636
  }
3380
- function Xa(e, t = {}) {
3381
- const n = ha(t);
3637
+ function Si(e, t = {}) {
3638
+ const n = Na(t);
3382
3639
  return e.provide("axios", n), e.config.globalProperties.$axios = n, n;
3383
3640
  }
3384
- const ma = Re("sparkApp", () => {
3385
- const e = oe({
3641
+ const Pa = Ae("sparkApp", () => {
3642
+ const e = le({
3386
3643
  app: "",
3387
3644
  icon: "",
3388
3645
  homeRoute: "dashboard",
@@ -3395,23 +3652,23 @@ const ma = Re("sparkApp", () => {
3395
3652
  e.app = n.app || "", e.icon = n.icon || "", e.homeRoute = n.homeRoute ?? "dashboard", e.showBrandSelector = n.showBrandSelector ?? !0, e.showAppSelector = n.showAppSelector ?? !0;
3396
3653
  }
3397
3654
  };
3398
- }), Qa = Re("sparkNav", () => {
3399
- const e = oe({
3655
+ }), _i = Ae("sparkNav", () => {
3656
+ const e = le({
3400
3657
  menu: [],
3401
3658
  collapsed: !1,
3402
3659
  hidden: !1
3403
- }), t = Ee(), n = Oe(), s = (i = []) => {
3660
+ }), t = se(), n = Oe(), s = (i = []) => {
3404
3661
  e.menu = i;
3405
3662
  }, r = (i, d) => {
3406
- for (const f of i) {
3407
- if (f.href === d) return f;
3408
- if (f.children) {
3409
- const b = r(f.children, d);
3663
+ for (const p of i) {
3664
+ if (p.href === d) return p;
3665
+ if (p.children) {
3666
+ const b = r(p.children, d);
3410
3667
  if (b) return b;
3411
3668
  }
3412
3669
  }
3413
3670
  return null;
3414
- }, a = async (i) => {
3671
+ }, o = async (i) => {
3415
3672
  if (i) {
3416
3673
  const d = r(e.menu, i);
3417
3674
  if (d && typeof d.action == "function") {
@@ -3420,15 +3677,15 @@ const ma = Re("sparkApp", () => {
3420
3677
  }
3421
3678
  await t.push(i);
3422
3679
  }
3423
- }, o = () => {
3680
+ }, a = () => {
3424
3681
  e.collapsed = !e.collapsed;
3425
3682
  }, c = () => {
3426
3683
  e.hidden = !e.hidden;
3427
3684
  }, l = () => {
3428
3685
  const i = n.name || n.path.replace("/", "");
3429
3686
  if (i) {
3430
- const d = (f) => {
3431
- f.forEach((b) => {
3687
+ const d = (p) => {
3688
+ p.forEach((b) => {
3432
3689
  b.current = b.href === i, b.children && d(b.children);
3433
3690
  });
3434
3691
  };
@@ -3444,40 +3701,45 @@ const ma = Re("sparkApp", () => {
3444
3701
  ), {
3445
3702
  state: e,
3446
3703
  initialize: s,
3447
- goto: a,
3448
- toggleCollapsed: o,
3704
+ goto: o,
3705
+ toggleCollapsed: a,
3449
3706
  toggleHidden: c,
3450
3707
  syncWithRoute: l
3451
3708
  };
3452
3709
  });
3453
3710
  export {
3454
- N as Icons,
3455
- ka as SparkAlert,
3711
+ B as Icons,
3712
+ Ga as SparkAlert,
3456
3713
  os as SparkAppSelector,
3457
- Ss as SparkBrandSelector,
3458
- Ae as SparkButton,
3459
- Ra as SparkButtonGroup,
3460
- Ea as SparkCard,
3461
- Aa as SparkDefaultContainer,
3714
+ Cs as SparkBrandSelector,
3715
+ re as SparkButton,
3716
+ Ja as SparkButtonGroup,
3717
+ Ka as SparkCard,
3718
+ Ya as SparkDefaultContainer,
3719
+ ba as SparkError403View,
3720
+ Ra as SparkError404View,
3721
+ wi as SparkErrorGeneralView,
3462
3722
  sa as SparkForgotPasswordView,
3463
- Wo as SparkLoginView,
3464
- Jo as SparkLogoutView,
3723
+ Zo as SparkLoginView,
3724
+ Wo as SparkLogoutView,
3465
3725
  As as SparkModalContainer,
3466
- Oa as SparkModalDialog,
3726
+ Xa as SparkModalDialog,
3467
3727
  nt as SparkOverlay,
3468
- Ta as SparkPublicContainer,
3728
+ Qa as SparkPublicContainer,
3469
3729
  fa as SparkResetPasswordView,
3470
- Ca as addIcons,
3471
- Ga as createAuthRoutes,
3472
- ha as createAxiosInstance,
3473
- Za as setupAuthGuards,
3474
- Xa as setupAxios,
3475
- _a as setupFontAwesome,
3476
- ue as sparkModalService,
3477
- Z as sparkOverlayService,
3478
- ma as useSparkAppStore,
3479
- te as useSparkAuthStore,
3480
- Ot as useSparkBrandFilterStore,
3481
- Qa as useSparkNavStore,
3730
+ Za as addIcons,
3731
+ Ci as create403Route,
3732
+ vi as create404Route,
3733
+ bi as createAuthRoutes,
3734
+ Na as createAxiosInstance,
3735
+ xi as setupAuthGuards,
3736
+ Si as setupAxios,
3737
+ Wa as setupFontAwesome,
3738
+ pe as sparkModalService,
3739
+ Y as sparkOverlayService,
3740
+ Pa as useSparkAppStore,
3741
+ J as useSparkAuthStore,
3742
+ $t as useSparkBrandFilterStore,
3743
+ _i as useSparkNavStore,
3482
3744
  st as useSparkOverlay
3483
3745
  };