@wishbone-media/spark 0.13.0 → 0.14.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,54 +1,54 @@
1
- import { computed as A, resolveComponent as U, createElementBlock as g, openBlock as m, normalizeClass as k, createElementVNode as f, createVNode as C, unref as b, renderSlot as M, reactive as se, Fragment as ie, renderList as me, createCommentVNode as _, toDisplayString as O, createBlock as Z, resolveDynamicComponent as $e, ref as q, inject as on, provide as an, markRaw as vt, withCtx as R, mergeProps as _t, toHandlers as kt, createTextVNode as J, useSlots as ln, withModifiers as fe, h as rt, onMounted as cn, watch as un } from "vue";
2
- import { library as Rt } from "@fortawesome/fontawesome-svg-core";
3
- import { FontAwesomeIcon as dn } from "@fortawesome/vue-fontawesome";
4
- import { faSignOut as fn, faXmark as pn, faTimes as hn, faStreetView as mn, faSortUp as gn, faSortDown as yn, faSort as wn, faScaleBalanced as bn, faSatelliteDish as xn, faLayerPlus as Sn, faLaptopMobile as Cn, faInfoCircle as vn, faGripDotsVertical as _n, faGearComplex as kn, faFlag as Rn, faFaceSmileWink as En, faFaceSmileRelaxed as $n, faExclamationTriangle as An, faEllipsisVertical as Ln, faEllipsis as On, faEdit as Tn, faComments as Hn, faCircleXmark as Fn, faCircleUser as Bn, faChevronUp as Vn, faChevronRight as Nn, faChevronLeft as Pn, faChevronDown as Mn, faCheckCircle as Un, faCheck as jn, faBullhorn as Dn, faBellRing as In, faBarsSort as zn, faArrowRightToLine as qn, faArrowLeftToLine as Zn } from "@fortawesome/pro-regular-svg-icons";
1
+ import { computed as $, resolveComponent as U, createElementBlock as y, openBlock as g, normalizeClass as E, createElementVNode as f, createVNode as C, unref as x, renderSlot as M, reactive as ne, Fragment as ie, renderList as me, createCommentVNode as R, toDisplayString as L, createBlock as W, resolveDynamicComponent as $e, ref as q, inject as ln, provide as cn, markRaw as _t, withCtx as A, mergeProps as kt, toHandlers as Rt, createTextVNode as K, useSlots as un, withModifiers as fe, h as ot, onMounted as dn, watch as fn } from "vue";
2
+ import { library as Et } from "@fortawesome/fontawesome-svg-core";
3
+ import { FontAwesomeIcon as pn } from "@fortawesome/vue-fontawesome";
4
+ import { faSignOut as hn, faXmark as mn, faTimes as gn, faStreetView as yn, faSortUp as wn, faSortDown as bn, faSort as xn, faScaleBalanced as Sn, faSatelliteDish as Cn, faLayerPlus as vn, faLaptopMobile as _n, faInfoCircle as kn, faGripDotsVertical as Rn, faGearComplex as En, faFlag as An, faFaceSmileWink as $n, faFaceSmileRelaxed as On, faExclamationTriangle as Ln, faEllipsisVertical as Tn, faEllipsis as Hn, faEdit as Fn, faComments as Bn, faCircleXmark as Vn, faCircleUser as Nn, faChevronUp as Pn, faChevronRight as Mn, faChevronLeft as Un, faChevronDown as jn, faCheckCircle as Dn, faCheck as In, faBullhorn as zn, faBellRing as qn, faBarsSort as Zn, faArrowRightToLine as Wn, faArrowLeftToLine as Gn } from "@fortawesome/pro-regular-svg-icons";
5
5
  import { defineStore as ge } from "pinia";
6
- import { TransitionRoot as Et, Dialog as $t, TransitionChild as Ae, DialogPanel as At } from "@headlessui/vue";
7
- import { useRouter as re, useRoute as Oe } from "vue-router";
6
+ import { TransitionRoot as At, Dialog as $t, TransitionChild as Oe, DialogPanel as Ot } from "@headlessui/vue";
7
+ import { useRouter as se, useRoute as Te } from "vue-router";
8
8
  const B = {
9
- farArrowLeftToLine: Zn,
10
- farArrowRightToLine: qn,
11
- farBarsSort: zn,
12
- farBellRing: In,
13
- farBullhorn: Dn,
14
- farCheck: jn,
15
- farCheckCircle: Un,
16
- farChevronDown: Mn,
17
- farChevronLeft: Pn,
18
- farChevronRight: Nn,
19
- farChevronUp: Vn,
20
- farCircleUser: Bn,
21
- farCircleXmark: Fn,
22
- farComments: Hn,
23
- farEdit: Tn,
24
- farEllipsis: On,
25
- farEllipsisVertical: Ln,
26
- farExclamationTriangle: An,
27
- farFaceSmileRelaxed: $n,
28
- farFaceSmileWink: En,
29
- farFlag: Rn,
30
- farGearComplex: kn,
31
- farGripDotsVertical: _n,
32
- farInfoCircle: vn,
33
- farLaptopMobile: Cn,
34
- farLayerPlus: Sn,
35
- farSatelliteDish: xn,
36
- farScaleBalanced: bn,
37
- farSort: wn,
38
- farSortDown: yn,
39
- farSortUp: gn,
40
- farStreetView: mn,
41
- farTimes: hn,
42
- farXmark: pn,
43
- farSignOut: fn
9
+ farArrowLeftToLine: Gn,
10
+ farArrowRightToLine: Wn,
11
+ farBarsSort: Zn,
12
+ farBellRing: qn,
13
+ farBullhorn: zn,
14
+ farCheck: In,
15
+ farCheckCircle: Dn,
16
+ farChevronDown: jn,
17
+ farChevronLeft: Un,
18
+ farChevronRight: Mn,
19
+ farChevronUp: Pn,
20
+ farCircleUser: Nn,
21
+ farCircleXmark: Vn,
22
+ farComments: Bn,
23
+ farEdit: Fn,
24
+ farEllipsis: Hn,
25
+ farEllipsisVertical: Tn,
26
+ farExclamationTriangle: Ln,
27
+ farFaceSmileRelaxed: On,
28
+ farFaceSmileWink: $n,
29
+ farFlag: An,
30
+ farGearComplex: En,
31
+ farGripDotsVertical: Rn,
32
+ farInfoCircle: kn,
33
+ farLaptopMobile: _n,
34
+ farLayerPlus: vn,
35
+ farSatelliteDish: Cn,
36
+ farScaleBalanced: Sn,
37
+ farSort: xn,
38
+ farSortDown: bn,
39
+ farSortUp: wn,
40
+ farStreetView: yn,
41
+ farTimes: gn,
42
+ farXmark: mn,
43
+ farSignOut: hn
44
44
  };
45
- function ei(e) {
46
- Object.assign(B, e), Rt.add(...Object.values(e));
45
+ function ri(e) {
46
+ Object.assign(B, e), Et.add(...Object.values(e));
47
47
  }
48
- function ti(e) {
49
- Rt.add(...Object.values(B)), e.component("FontAwesomeIcon", dn);
48
+ function oi(e) {
49
+ Et.add(...Object.values(B)), e.component("FontAwesomeIcon", pn);
50
50
  }
51
- const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }, Jn = { class: "ml-3" }, Kn = { class: "ml-auto pl-3 pt-1 self-start" }, Xn = { class: "-mx-1.5 -my-1.5" }, ni = {
51
+ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }, Xn = { class: "ml-3" }, Yn = { class: "ml-auto pl-3 pt-1 self-start" }, Qn = { class: "-mx-1.5 -my-1.5" }, ai = {
52
52
  __name: "SparkAlert",
53
53
  props: {
54
54
  type: {
@@ -59,22 +59,22 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
59
59
  },
60
60
  emits: ["close"],
61
61
  setup(e) {
62
- const t = e, n = A(() => ({
62
+ const t = e, n = $(() => ({
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 = A(() => ({
67
+ })[t.type]), s = $(() => ({
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 = A(() => ({
72
+ })[t.type]), r = $(() => ({
73
73
  success: "farCheckCircle",
74
74
  warning: "farExclamationTriangle",
75
75
  danger: "farCircleXmark",
76
76
  info: "farInfoCircle"
77
- })[t.type]), o = A(() => ({
77
+ })[t.type]), o = $(() => ({
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",
@@ -82,28 +82,28 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
82
82
  })[t.type]);
83
83
  return (a, i) => {
84
84
  const l = U("font-awesome-icon");
85
- return m(), g("div", {
86
- class: k(["rounded-md border p-4", n.value])
85
+ return g(), y("div", {
86
+ class: E(["rounded-md border p-4", n.value])
87
87
  }, [
88
- f("div", Wn, [
89
- f("div", Gn, [
88
+ f("div", Jn, [
89
+ f("div", Kn, [
90
90
  C(l, {
91
- icon: b(B)[r.value],
92
- class: k(s.value)
91
+ icon: x(B)[r.value],
92
+ class: E(s.value)
93
93
  }, null, 8, ["icon", "class"])
94
94
  ]),
95
- f("div", Jn, [
95
+ f("div", Xn, [
96
96
  M(a.$slots, "default")
97
97
  ]),
98
- f("div", Kn, [
99
- f("div", Xn, [
98
+ f("div", Yn, [
99
+ f("div", Qn, [
100
100
  f("button", {
101
101
  type: "button",
102
- class: k(["inline-flex rounded-md px-2 py-1.5", o.value]),
103
- onClick: i[0] || (i[0] = (u) => a.$emit("close"))
102
+ class: E(["inline-flex rounded-md px-2 py-1.5", o.value]),
103
+ onClick: i[0] || (i[0] = (c) => a.$emit("close"))
104
104
  }, [
105
105
  C(l, {
106
- icon: b(B).farXmark
106
+ icon: x(B).farXmark
107
107
  }, null, 8, ["icon"])
108
108
  ], 2)
109
109
  ])
@@ -112,7 +112,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
112
112
  ], 2);
113
113
  };
114
114
  }
115
- }, Me = [
115
+ }, Ue = [
116
116
  {
117
117
  name: "3CX",
118
118
  description: "VOIP Phone",
@@ -156,8 +156,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
156
156
  icon: "farCompass"
157
157
  }
158
158
  ], Lt = ge("sparkAppSelector", () => {
159
- const e = se({
160
- apps: [...Me]
159
+ const e = ne({
160
+ apps: [...Ue]
161
161
  }), t = (o = {}) => {
162
162
  if (o.apps && Array.isArray(o.apps)) {
163
163
  const a = o.apps.filter((i) => {
@@ -176,7 +176,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
176
176
  const a = /* @__PURE__ */ new Map();
177
177
  Object.keys(o.appHrefs).forEach((i) => {
178
178
  a.set(i.toLowerCase(), o.appHrefs[i]);
179
- }), e.apps = Me.map((i) => {
179
+ }), e.apps = Ue.map((i) => {
180
180
  const l = a.get(i.name.toLowerCase());
181
181
  return {
182
182
  ...i,
@@ -185,8 +185,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
185
185
  });
186
186
  return;
187
187
  }
188
- e.apps = [...Me];
189
- }, n = A(() => e.apps), s = (o) => {
188
+ e.apps = [...Ue];
189
+ }, n = $(() => e.apps), s = (o) => {
190
190
  if (!o) return null;
191
191
  const a = o.toLowerCase();
192
192
  return e.apps.find((i) => i.name.toLowerCase() === a) || null;
@@ -201,8 +201,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
201
201
  return a ? a.icon : "";
202
202
  }
203
203
  };
204
- }), Ot = ge("sparkApp", () => {
205
- const e = se({
204
+ }), Tt = ge("sparkApp", () => {
205
+ const e = ne({
206
206
  app: "",
207
207
  homeRoute: "dashboard",
208
208
  showBrandSelector: !0,
@@ -214,16 +214,16 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
214
214
  e.app = n.app || "", e.homeRoute = n.homeRoute ?? "dashboard", e.showBrandSelector = n.showBrandSelector ?? !0, e.showAppSelector = n.showAppSelector ?? !0;
215
215
  }
216
216
  };
217
- }), Yn = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Qn = { class: "flex flex-1 flex-col" }, es = { class: "divide-y divide-gray-200" }, ts = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, ns = { class: "ml-auto flex items-center" }, ss = ["href", "onClick"], rs = { class: "gap-y-1" }, os = { class: "text-base text-gray-800 flex items-center" }, as = { class: "font-medium" }, is = {
217
+ }), es = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ts = { class: "flex flex-1 flex-col" }, ns = { class: "divide-y divide-gray-200" }, ss = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, rs = { class: "ml-auto flex items-center" }, os = ["href", "onClick"], as = { class: "gap-y-1" }, is = { class: "text-base text-gray-800 flex items-center" }, ls = { class: "font-medium" }, cs = {
218
218
  key: 0,
219
219
  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"
220
- }, ls = { class: "text-sm text-gray-500" }, cs = { class: "ml-auto flex items-center" }, us = { class: "mt-auto" }, ds = {
220
+ }, us = { class: "text-sm text-gray-500" }, ds = { class: "ml-auto flex items-center" }, fs = { class: "mt-auto" }, ps = {
221
221
  key: 0,
222
222
  class: "p-6"
223
- }, fs = {
223
+ }, hs = {
224
224
  key: 1,
225
225
  class: "bg-gray-50 p-6"
226
- }, ps = {
226
+ }, ms = {
227
227
  __name: "SparkAppSelector",
228
228
  props: {
229
229
  bottomSlot: {
@@ -237,7 +237,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
237
237
  },
238
238
  emits: ["close", "select"],
239
239
  setup(e, { emit: t }) {
240
- const n = t, s = Lt(), r = Ot(), o = A(() => {
240
+ const n = t, s = Lt(), r = Tt(), o = $(() => {
241
241
  const i = r.state.app;
242
242
  return s.state.apps.map((l) => ({
243
243
  ...l,
@@ -247,63 +247,63 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
247
247
  n("select", i);
248
248
  };
249
249
  return (i, l) => {
250
- const u = U("font-awesome-icon");
251
- return m(), g("div", Yn, [
252
- f("div", Qn, [
253
- f("div", es, [
254
- f("div", ts, [
250
+ const c = U("font-awesome-icon");
251
+ return g(), y("div", es, [
252
+ f("div", ts, [
253
+ f("div", ns, [
254
+ f("div", ss, [
255
255
  l[1] || (l[1] = f("div", null, "Mr Group Network", -1)),
256
- f("div", ns, [
257
- C(u, {
258
- icon: b(B).farTimes,
256
+ f("div", rs, [
257
+ C(c, {
258
+ icon: x(B).farTimes,
259
259
  class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
260
- onClick: l[0] || (l[0] = (c) => n("close"))
260
+ onClick: l[0] || (l[0] = (u) => n("close"))
261
261
  }, null, 8, ["icon"])
262
262
  ])
263
263
  ]),
264
- (m(!0), g(ie, null, me(o.value, (c) => (m(), g("a", {
265
- key: c.name,
266
- href: c.href,
264
+ (g(!0), y(ie, null, me(o.value, (u) => (g(), y("a", {
265
+ key: u.name,
266
+ href: u.href,
267
267
  target: "_blank",
268
- class: k([c.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
269
- onClick: (h) => c.current ? h.preventDefault() : a(c)
268
+ class: E([u.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
269
+ onClick: (m) => u.current ? m.preventDefault() : a(u)
270
270
  }, [
271
- f("div", rs, [
272
- f("div", os, [
273
- f("div", as, O(c.name), 1),
274
- c.current ? (m(), g("span", is, " Active ")) : _("", !0)
271
+ f("div", as, [
272
+ f("div", is, [
273
+ f("div", ls, L(u.name), 1),
274
+ u.current ? (g(), y("span", cs, " Active ")) : R("", !0)
275
275
  ]),
276
- f("div", ls, O(c.description), 1)
276
+ f("div", us, L(u.description), 1)
277
277
  ]),
278
- f("div", cs, [
279
- C(u, {
280
- class: k([c.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
281
- icon: b(B)[c.icon]
278
+ f("div", ds, [
279
+ C(c, {
280
+ class: E([u.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
281
+ icon: x(B)[u.icon]
282
282
  }, null, 8, ["class", "icon"])
283
283
  ])
284
- ], 10, ss))), 128)),
284
+ ], 10, os))), 128)),
285
285
  l[2] || (l[2] = f("div", null, null, -1))
286
286
  ]),
287
- f("div", us, [
288
- i.$slots.bottom || e.bottomSlot ? (m(), g("div", ds, [
287
+ f("div", fs, [
288
+ i.$slots.bottom || e.bottomSlot ? (g(), y("div", ps, [
289
289
  M(i.$slots, "bottom", {}, () => [
290
- e.bottomSlot ? (m(), Z($e(e.bottomSlot), { key: 0 })) : _("", !0)
290
+ e.bottomSlot ? (g(), W($e(e.bottomSlot), { key: 0 })) : R("", !0)
291
291
  ])
292
- ])) : _("", !0),
293
- i.$slots.footer || e.footerSlot ? (m(), g("div", fs, [
292
+ ])) : R("", !0),
293
+ i.$slots.footer || e.footerSlot ? (g(), y("div", hs, [
294
294
  M(i.$slots, "footer", {}, () => [
295
- e.footerSlot ? (m(), Z($e(e.footerSlot), { key: 0 })) : _("", !0)
295
+ e.footerSlot ? (g(), W($e(e.footerSlot), { key: 0 })) : R("", !0)
296
296
  ])
297
- ])) : _("", !0)
297
+ ])) : R("", !0)
298
298
  ])
299
299
  ])
300
300
  ]);
301
301
  };
302
302
  }
303
- }, Tt = ge(
303
+ }, Ht = ge(
304
304
  "brandFilter",
305
305
  () => {
306
- const e = se({
306
+ const e = ne({
307
307
  brands: []
308
308
  }), t = (o = {}) => {
309
309
  if (!o.brands || !Array.isArray(o.brands)) {
@@ -311,8 +311,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
311
311
  return;
312
312
  }
313
313
  const a = o.brands.filter((l) => {
314
- const u = l.id && l.name && l.logo;
315
- return u || console.warn("useSparkBrandFilterStore: Invalid brand object", l), u;
314
+ const c = l.id && l.name && l.logo;
315
+ return c || console.warn("useSparkBrandFilterStore: Invalid brand object", l), c;
316
316
  }), i = a.filter((l) => l.current);
317
317
  i.length === 0 && a.length > 0 ? a[0].current = !0 : i.length > 1 && a.forEach((l) => {
318
318
  l.current = l === i[0];
@@ -322,7 +322,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
322
322
  logo: l.logo,
323
323
  current: l.current || !1
324
324
  }));
325
- }, n = A(() => e.brands.find((o) => o.current) || null), s = A(() => e.brands);
325
+ }, n = $(() => e.brands.find((o) => o.current) || null), s = $(() => e.brands);
326
326
  return {
327
327
  state: e,
328
328
  initialize: t,
@@ -344,57 +344,57 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
344
344
  paths: ["state.brands"]
345
345
  }
346
346
  }
347
- ), hs = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ms = { class: "flex flex-1 flex-col" }, gs = { class: "divide-y divide-gray-200" }, ys = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, ws = { class: "ml-auto flex items-center" }, bs = {
347
+ ), gs = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ys = { class: "flex flex-1 flex-col" }, ws = { class: "divide-y divide-gray-200" }, bs = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, xs = { class: "ml-auto flex items-center" }, Ss = {
348
348
  key: 0,
349
349
  class: "flex px-[22px] py-[15px] text-gray-500 text-sm"
350
- }, xs = ["onClick"], Ss = { class: "gap-y-1 flex" }, Cs = { class: "flex items-center mr-4" }, vs = ["src", "alt"], _s = { class: "ml-auto flex flex-col" }, ks = { class: "text-base text-gray-800 flex items-center" }, Rs = { class: "font-medium" }, Es = {
350
+ }, Cs = ["onClick"], vs = { class: "gap-y-1 flex" }, _s = { class: "flex items-center mr-4" }, ks = ["src", "alt"], Rs = { class: "ml-auto flex flex-col" }, Es = { class: "text-base text-gray-800 flex items-center" }, As = { class: "font-medium" }, $s = {
351
351
  key: 0,
352
352
  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"
353
- }, $s = { class: "text-sm text-gray-500" }, As = {
353
+ }, Os = { class: "text-sm text-gray-500" }, Ls = {
354
354
  __name: "SparkBrandSelector",
355
355
  emits: ["close", "select"],
356
356
  setup(e, { emit: t }) {
357
- const n = t, s = Tt(), r = (o) => {
357
+ const n = t, s = Ht(), r = (o) => {
358
358
  n("select", o);
359
359
  };
360
360
  return (o, a) => {
361
361
  const i = U("font-awesome-icon");
362
- return m(), g("div", hs, [
363
- f("div", ms, [
364
- f("div", gs, [
365
- f("div", ys, [
362
+ return g(), y("div", gs, [
363
+ f("div", ys, [
364
+ f("div", ws, [
365
+ f("div", bs, [
366
366
  a[1] || (a[1] = f("div", null, "Filter by Brand", -1)),
367
- f("div", ws, [
367
+ f("div", xs, [
368
368
  C(i, {
369
- icon: b(B).farTimes,
369
+ icon: x(B).farTimes,
370
370
  class: "size-4 text-gray-400 cursor-pointer",
371
371
  onClick: a[0] || (a[0] = (l) => n("close"))
372
372
  }, null, 8, ["icon"])
373
373
  ])
374
374
  ]),
375
- b(s).allBrands.length === 0 ? (m(), g("div", bs, " No brands configured ")) : _("", !0),
376
- (m(!0), g(ie, null, me(b(s).allBrands, (l) => (m(), g("div", {
375
+ x(s).allBrands.length === 0 ? (g(), y("div", Ss, " No brands configured ")) : R("", !0),
376
+ (g(!0), y(ie, null, me(x(s).allBrands, (l) => (g(), y("div", {
377
377
  key: l.id,
378
- class: k([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
379
- onClick: (u) => r(l)
378
+ class: E([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
379
+ onClick: (c) => r(l)
380
380
  }, [
381
- f("div", Ss, [
382
- f("div", Cs, [
381
+ f("div", vs, [
382
+ f("div", _s, [
383
383
  f("img", {
384
384
  src: l.logo,
385
385
  alt: `${l.name} logo`,
386
386
  class: "h-8 w-auto"
387
- }, null, 8, vs)
387
+ }, null, 8, ks)
388
388
  ]),
389
- f("div", _s, [
390
- f("div", ks, [
391
- f("div", Rs, O(l.name), 1),
392
- l.current ? (m(), g("span", Es, " Current ")) : _("", !0)
389
+ f("div", Rs, [
390
+ f("div", Es, [
391
+ f("div", As, L(l.name), 1),
392
+ l.current ? (g(), y("span", $s, " Current ")) : R("", !0)
393
393
  ]),
394
- f("div", $s, O(l.current ? "Current Brand" : "Change to"), 1)
394
+ f("div", Os, L(l.current ? "Current Brand" : "Change to"), 1)
395
395
  ])
396
396
  ])
397
- ], 10, xs))), 128)),
397
+ ], 10, Cs))), 128)),
398
398
  a[2] || (a[2] = f("div", null, null, -1))
399
399
  ]),
400
400
  a[3] || (a[3] = f("div", { class: "mt-auto" }, null, -1))
@@ -402,7 +402,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
402
402
  ]);
403
403
  };
404
404
  }
405
- }, Ls = ["disabled"], oe = {
405
+ }, Ts = ["disabled"], re = {
406
406
  __name: "SparkButton",
407
407
  props: {
408
408
  size: {
@@ -424,14 +424,14 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
424
424
  }
425
425
  },
426
426
  setup(e) {
427
- const t = e, n = q(null), s = on("buttonGroup", null), r = A(() => {
427
+ const t = e, n = q(null), s = ln("buttonGroup", null), r = $(() => {
428
428
  if (!s?.isInGroup || !n.value) return null;
429
- const l = s.getButtonIndex(n.value), u = s.getButtonCount();
429
+ const l = s.getButtonIndex(n.value), c = s.getButtonCount();
430
430
  return {
431
431
  isFirst: l === 0,
432
- isLast: l === u - 1,
432
+ isLast: l === c - 1,
433
433
  index: l,
434
- total: u
434
+ total: c
435
435
  };
436
436
  }), o = {
437
437
  paddingX: /^px-/,
@@ -443,41 +443,41 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
443
443
  borderRadius: /^rounded-/,
444
444
  background: /^bg-/,
445
445
  text: /^text-(?!white|black)/
446
- }, a = (l, u) => {
447
- if (!u) return l;
448
- const c = l.split(" ").filter(Boolean), h = u.split(" ").filter(Boolean);
449
- return [...c.filter((E) => !h.some((p) => {
450
- const w = Object.entries(o).find(
451
- ([$, T]) => T.test(E)
452
- )?.[0], y = Object.entries(o).find(
453
- ([$, T]) => T.test(p)
446
+ }, a = (l, c) => {
447
+ if (!c) return l;
448
+ const u = l.split(" ").filter(Boolean), m = c.split(" ").filter(Boolean);
449
+ return [...u.filter((v) => !m.some((p) => {
450
+ const b = Object.entries(o).find(
451
+ ([_, T]) => T.test(v)
452
+ )?.[0], h = Object.entries(o).find(
453
+ ([_, T]) => T.test(p)
454
454
  )?.[0];
455
- return w && w === y;
456
- })), ...h].join(" ");
457
- }, i = A(() => {
458
- let l = "", u = "";
455
+ return b && b === h;
456
+ })), ...m].join(" ");
457
+ }, i = $(() => {
458
+ let l = "", c = "";
459
459
  switch (t.size) {
460
460
  case "xs":
461
- l += " px-2 py-1 text-xs", u = "sm";
461
+ l += " px-2 py-1 text-xs", c = "sm";
462
462
  break;
463
463
  case "sm":
464
- l += " px-2 py-1 text-sm", u = "sm";
464
+ l += " px-2 py-1 text-sm", c = "sm";
465
465
  break;
466
466
  case "md":
467
- l += " px-2.5 py-1.5 text-sm", u = "md";
467
+ l += " px-2.5 py-1.5 text-sm", c = "md";
468
468
  break;
469
469
  case "lg":
470
- l += " px-3 py-2 text-sm", u = "md";
470
+ l += " px-3 py-2 text-sm", c = "md";
471
471
  break;
472
472
  case "xl":
473
- l += " px-3.5 py-2.5 text-sm", u = "md";
473
+ l += " px-3.5 py-2.5 text-sm", c = "md";
474
474
  break;
475
475
  }
476
476
  if (s?.isInGroup && r.value) {
477
- const { isFirst: c, isLast: h } = r.value;
478
- l += " relative inline-flex items-center focus:z-10", c && h ? l += ` rounded-${u}` : c ? l += ` rounded-l-${u} rounded-r-none` : h ? l += ` rounded-r-${u} rounded-l-none -ml-px` : l += " rounded-none -ml-px";
477
+ const { isFirst: u, isLast: m } = r.value;
478
+ l += " relative inline-flex items-center focus:z-10", u && m ? l += ` rounded-${c}` : u ? l += ` rounded-l-${c} rounded-r-none` : m ? l += ` rounded-r-${c} rounded-l-none -ml-px` : l += " rounded-none -ml-px";
479
479
  } else
480
- l += ` shadow-xs rounded-${u}`;
480
+ l += ` shadow-xs rounded-${c}`;
481
481
  switch (t.variant) {
482
482
  case "primary":
483
483
  l += " bg-primary-600 hover:bg-primary-500 text-white";
@@ -502,26 +502,26 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
502
502
  }
503
503
  return l = a(l, t.buttonClass), l;
504
504
  });
505
- return (l, u) => (m(), g("button", {
505
+ return (l, c) => (g(), y("button", {
506
506
  type: "button",
507
507
  ref_key: "buttonRef",
508
508
  ref: n,
509
- class: k(i.value),
509
+ class: E(i.value),
510
510
  disabled: e.disabled,
511
- onClick: u[0] || (u[0] = (c) => l.$emit("click"))
511
+ onClick: c[0] || (c[0] = (u) => l.$emit("click"))
512
512
  }, [
513
513
  M(l.$slots, "default")
514
- ], 10, Ls));
514
+ ], 10, Ts));
515
515
  }
516
- }, si = {
516
+ }, ii = {
517
517
  __name: "SparkButtonGroup",
518
518
  setup(e) {
519
519
  const t = q(null);
520
- return an("buttonGroup", {
520
+ return cn("buttonGroup", {
521
521
  isInGroup: !0,
522
522
  getButtonIndex: (r) => t.value ? Array.from(t.value.children).indexOf(r) : -1,
523
523
  getButtonCount: () => t.value?.children.length || 0
524
- }), (r, o) => (m(), g("div", {
524
+ }), (r, o) => (g(), y("div", {
525
525
  class: "inline-flex rounded-md shadow-xs",
526
526
  ref_key: "groupRef",
527
527
  ref: t
@@ -529,13 +529,13 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
529
529
  M(r.$slots, "default")
530
530
  ], 512));
531
531
  }
532
- }, Os = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Ts = {
532
+ }, Hs = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Fs = {
533
533
  key: 0,
534
534
  class: "p-5"
535
- }, Hs = {
535
+ }, Bs = {
536
536
  key: 1,
537
537
  class: "p-5"
538
- }, ri = {
538
+ }, li = {
539
539
  __name: "SparkCard",
540
540
  props: {
541
541
  padded: {
@@ -549,24 +549,24 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
549
549
  },
550
550
  setup(e) {
551
551
  const t = e;
552
- return (n, s) => (m(), g("div", Os, [
553
- n.$slots.header ? (m(), g("div", Ts, [
552
+ return (n, s) => (g(), y("div", Hs, [
553
+ n.$slots.header ? (g(), y("div", Fs, [
554
554
  M(n.$slots, "header")
555
- ])) : _("", !0),
555
+ ])) : R("", !0),
556
556
  f("div", {
557
- class: k([t.padded ? t.paddedClass : ""])
557
+ class: E([t.padded ? t.paddedClass : ""])
558
558
  }, [
559
559
  M(n.$slots, "default")
560
560
  ], 2),
561
- n.$slots.footer ? (m(), g("div", Hs, [
561
+ n.$slots.footer ? (g(), y("div", Bs, [
562
562
  M(n.$slots, "footer")
563
- ])) : _("", !0)
563
+ ])) : R("", !0)
564
564
  ]));
565
565
  }
566
566
  };
567
- class Fs {
567
+ class Vs {
568
568
  constructor() {
569
- this.state = se({
569
+ this.state = ne({
570
570
  isVisible: !1,
571
571
  content: null,
572
572
  props: {},
@@ -574,26 +574,26 @@ class Fs {
574
574
  });
575
575
  }
576
576
  show = (t, n = {}, s = {}) => {
577
- this.state.content = vt(t), this.state.props = n, this.state.eventHandlers = s, this.state.isVisible = !0;
577
+ this.state.content = _t(t), this.state.props = n, this.state.eventHandlers = s, this.state.isVisible = !0;
578
578
  };
579
579
  hide = () => {
580
580
  this.state.isVisible = !1, this.state.eventHandlers = {};
581
581
  };
582
582
  }
583
- const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Vs = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ns = {
583
+ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Ps = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ms = {
584
584
  __name: "SparkModalContainer",
585
585
  setup(e) {
586
- return (t, n) => (m(), Z(b(Et), {
586
+ return (t, n) => (g(), W(x(At), {
587
587
  as: "template",
588
- show: b(pe).state.isVisible
588
+ show: x(pe).state.isVisible
589
589
  }, {
590
- default: R(() => [
591
- C(b($t), {
590
+ default: A(() => [
591
+ C(x($t), {
592
592
  class: "relative z-200",
593
- onClose: b(pe).hide
593
+ onClose: x(pe).hide
594
594
  }, {
595
- default: R(() => [
596
- C(b(Ae), {
595
+ default: A(() => [
596
+ C(x(Oe), {
597
597
  as: "template",
598
598
  enter: "ease-out duration-300",
599
599
  "enter-from": "opacity-0",
@@ -602,14 +602,14 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
602
602
  "leave-from": "opacity-100",
603
603
  "leave-to": "opacity-0"
604
604
  }, {
605
- default: R(() => [...n[0] || (n[0] = [
605
+ default: A(() => [...n[0] || (n[0] = [
606
606
  f("div", { class: "fixed inset-0 bg-gray-500/75 transition-opacity" }, null, -1)
607
607
  ])]),
608
608
  _: 1
609
609
  }),
610
- f("div", Bs, [
611
- f("div", Vs, [
612
- C(b(Ae), {
610
+ f("div", Ns, [
611
+ f("div", Ps, [
612
+ C(x(Oe), {
613
613
  as: "template",
614
614
  enter: "ease-out duration-300",
615
615
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -618,10 +618,10 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
618
618
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
619
619
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
620
620
  }, {
621
- default: R(() => [
622
- C(b(At), { 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" }, {
623
- default: R(() => [
624
- (m(), Z($e(b(pe).state.content), _t(b(pe).state.props, kt(b(pe).state.eventHandlers)), null, 16))
621
+ default: A(() => [
622
+ C(x(Ot), { 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" }, {
623
+ default: A(() => [
624
+ (g(), W($e(x(pe).state.content), kt(x(pe).state.props, Rt(x(pe).state.eventHandlers)), null, 16))
625
625
  ]),
626
626
  _: 1
627
627
  })
@@ -637,10 +637,10 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
637
637
  _: 1
638
638
  }, 8, ["show"]));
639
639
  }
640
- }, Ps = { class: "px-4 pt-5 pb-4 sm:p-6" }, Ms = {
640
+ }, Us = { class: "px-4 pt-5 pb-4 sm:p-6" }, js = {
641
641
  key: 0,
642
642
  class: "text-lg font-medium text-gray-900"
643
- }, oi = {
643
+ }, ci = {
644
644
  __name: "SparkModalDialog",
645
645
  props: {
646
646
  title: {
@@ -690,7 +690,7 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
690
690
  "input"
691
691
  ],
692
692
  setup(e) {
693
- const t = e, n = A(() => !t.buttons || t.buttons.length === 0 ? [{ text: "OK", variant: "primary", event: "ok" }] : t.buttons), s = A(() => {
693
+ const t = e, n = $(() => !t.buttons || t.buttons.length === 0 ? [{ text: "OK", variant: "primary", event: "ok" }] : t.buttons), s = $(() => {
694
694
  switch (n.value.length) {
695
695
  case 1:
696
696
  return "sm:grid sm:grid-flow-row-dense";
@@ -706,48 +706,48 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
706
706
  success: "farCheckCircle",
707
707
  warning: "farExclamationTriangle",
708
708
  danger: "farCircleXmark"
709
- }, o = A(() => t.icon || r[t.type]), a = A(() => ({
709
+ }, o = $(() => t.icon || r[t.type]), a = $(() => ({
710
710
  info: "bg-blue-100",
711
711
  success: "bg-green-100",
712
712
  warning: "bg-yellow-100",
713
713
  danger: "bg-red-100"
714
- })[t.type]), i = A(() => ({
714
+ })[t.type]), i = $(() => ({
715
715
  info: "text-blue-400",
716
716
  success: "text-green-400",
717
717
  warning: "text-yellow-400",
718
718
  danger: "text-red-400"
719
719
  })[t.type]);
720
- return (l, u) => {
721
- const c = U("font-awesome-icon");
722
- return m(), g("div", Ps, [
723
- o.value ? (m(), g("div", {
720
+ return (l, c) => {
721
+ const u = U("font-awesome-icon");
722
+ return g(), y("div", Us, [
723
+ o.value ? (g(), y("div", {
724
724
  key: 0,
725
- class: k(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
725
+ class: E(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
726
726
  }, [
727
- C(c, {
728
- icon: b(B)[o.value],
729
- class: k(["h-5 w-5", i.value])
727
+ C(u, {
728
+ icon: x(B)[o.value],
729
+ class: E(["h-5 w-5", i.value])
730
730
  }, null, 8, ["icon", "class"])
731
- ], 2)) : _("", !0),
731
+ ], 2)) : R("", !0),
732
732
  f("div", {
733
- class: k(["text-center", { "mt-3 sm:mt-5": o.value }])
733
+ class: E(["text-center", { "mt-3 sm:mt-5": o.value }])
734
734
  }, [
735
- e.title ? (m(), g("h3", Ms, O(e.title), 1)) : _("", !0),
736
- e.message ? (m(), g("div", {
735
+ e.title ? (g(), y("h3", js, L(e.title), 1)) : R("", !0),
736
+ e.message ? (g(), y("div", {
737
737
  key: 1,
738
- class: k([{ "mt-2": e.title }, "text-sm text-gray-500"])
739
- }, O(e.message), 3)) : _("", !0)
738
+ class: E([{ "mt-2": e.title }, "text-sm text-gray-500"])
739
+ }, L(e.message), 3)) : R("", !0)
740
740
  ], 2),
741
741
  f("div", {
742
- class: k(["mt-5 sm:mt-6", s.value])
742
+ class: E(["mt-5 sm:mt-6", s.value])
743
743
  }, [
744
- (m(!0), g(ie, null, me(n.value, (h, x) => (m(), Z(b(oe), {
745
- key: x,
746
- variant: h.variant,
747
- onClick: (E) => l.$emit(h.event, h)
744
+ (g(!0), y(ie, null, me(n.value, (m, w) => (g(), W(x(re), {
745
+ key: w,
746
+ variant: m.variant,
747
+ onClick: (v) => l.$emit(m.event, m)
748
748
  }, {
749
- default: R(() => [
750
- J(O(h.text), 1)
749
+ default: A(() => [
750
+ K(L(m.text), 1)
751
751
  ]),
752
752
  _: 2
753
753
  }, 1032, ["variant", "onClick"]))), 128))
@@ -755,7 +755,7 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
755
755
  ]);
756
756
  };
757
757
  }
758
- }, Us = { class: "fixed inset-0 flex" }, ot = {
758
+ }, Ds = { class: "fixed inset-0 flex" }, at = {
759
759
  __name: "SparkOverlay",
760
760
  props: {
761
761
  position: {
@@ -768,20 +768,23 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
768
768
  required: !0
769
769
  }
770
770
  },
771
- setup(e) {
772
- const t = q(null);
773
- return (n, s) => (m(), Z(b(Et), {
771
+ emits: ["close"],
772
+ setup(e, { emit: t }) {
773
+ const n = q(null), s = e, r = t, o = () => {
774
+ s.overlayInstance.close(), r("close");
775
+ };
776
+ return (a, i) => (g(), W(x(At), {
774
777
  show: e.overlayInstance.state.isVisible,
775
778
  as: "template"
776
779
  }, {
777
- default: R(() => [
778
- C(b($t), {
779
- initialFocus: t.value,
780
+ default: A(() => [
781
+ C(x($t), {
782
+ initialFocus: n.value,
780
783
  class: "relative z-200",
781
- onClose: e.overlayInstance.close
784
+ onClose: o
782
785
  }, {
783
- default: R(() => [
784
- C(b(Ae), {
786
+ default: A(() => [
787
+ C(x(Oe), {
785
788
  as: "template",
786
789
  enter: "transition-opacity ease-linear duration-150",
787
790
  "enter-from": "opacity-0",
@@ -790,13 +793,13 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
790
793
  "leave-from": "opacity-100",
791
794
  "leave-to": "opacity-0"
792
795
  }, {
793
- default: R(() => [...s[0] || (s[0] = [
796
+ default: A(() => [...i[0] || (i[0] = [
794
797
  f("div", { class: "fixed inset-0 bg-gray-600/30" }, null, -1)
795
798
  ])]),
796
799
  _: 1
797
800
  }),
798
- f("div", Us, [
799
- C(b(Ae), {
801
+ f("div", Ds, [
802
+ C(x(Oe), {
800
803
  as: "template",
801
804
  enter: "transition ease-in-out duration-150 transform",
802
805
  "enter-from": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
@@ -805,17 +808,17 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
805
808
  "leave-from": "translate-x-0 opacity-100",
806
809
  "leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
807
810
  }, {
808
- default: R(() => [
809
- C(b(At), {
811
+ default: A(() => [
812
+ C(x(Ot), {
810
813
  ref_key: "panelRef",
811
- ref: t,
812
- class: k([
814
+ ref: n,
815
+ class: E([
813
816
  "flex w-[400px] py-2.5",
814
817
  e.position === "left" ? "relative left-[10px]" : "absolute right-[10px] h-full"
815
818
  ])
816
819
  }, {
817
- default: R(() => [
818
- (m(), Z($e(e.overlayInstance.state.content), _t(e.overlayInstance.state.props, kt(e.overlayInstance.state.eventHandlers)), null, 16))
820
+ default: A(() => [
821
+ (g(), W($e(e.overlayInstance.state.content), kt(e.overlayInstance.state.props, Rt(e.overlayInstance.state.eventHandlers)), null, 16))
819
822
  ]),
820
823
  _: 1
821
824
  }, 8, ["class"])
@@ -825,14 +828,14 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
825
828
  ])
826
829
  ]),
827
830
  _: 1
828
- }, 8, ["initialFocus", "onClose"])
831
+ }, 8, ["initialFocus"])
829
832
  ]),
830
833
  _: 1
831
834
  }, 8, ["show"]));
832
835
  }
833
836
  };
834
- function at() {
835
- const e = se({
837
+ function it() {
838
+ const e = ne({
836
839
  isVisible: !1,
837
840
  content: null,
838
841
  props: {},
@@ -844,7 +847,7 @@ function at() {
844
847
  }, s = () => {
845
848
  e.isVisible = !0;
846
849
  }, r = (a, i = {}, l = {}) => {
847
- e.content = vt(a), e.props = i, e.eventHandlers = l;
850
+ e.content = _t(a), e.props = i, e.eventHandlers = l;
848
851
  };
849
852
  return {
850
853
  state: e,
@@ -857,15 +860,27 @@ function at() {
857
860
  }
858
861
  };
859
862
  }
860
- class js {
863
+ class Is {
861
864
  constructor() {
862
- this.left = at(), this.right = at();
865
+ this.left = it(), this.right = it();
863
866
  }
864
867
  showLeft = (t, n = {}, s = {}) => {
865
- this.left.show(t, n, s);
868
+ const r = {
869
+ close: () => {
870
+ s.close?.(), this.closeLeft();
871
+ },
872
+ ...s
873
+ };
874
+ this.left.show(t, n, r);
866
875
  };
867
876
  showRight = (t, n = {}, s = {}) => {
868
- this.right.show(t, n, s);
877
+ const r = {
878
+ close: () => {
879
+ s.close?.(), this.closeRight();
880
+ },
881
+ ...s
882
+ };
883
+ this.right.show(t, n, r);
869
884
  };
870
885
  closeLeft = () => {
871
886
  this.left.close();
@@ -877,22 +892,22 @@ class js {
877
892
  this.left.close(), this.right.close();
878
893
  };
879
894
  }
880
- const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is = { class: "flex flex-1 flex-col" }, zs = {
895
+ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs = { class: "flex flex-1 flex-col" }, Zs = {
881
896
  class: "flex flex-1 flex-col gap-y-7",
882
897
  role: "list"
883
- }, qs = { class: "flex flex-1 flex-col" }, Zs = {
898
+ }, Ws = { class: "flex flex-1 flex-col" }, Gs = {
884
899
  role: "list",
885
900
  class: "flex flex-1 flex-col"
886
- }, Ws = { class: "flex items-center pb-8" }, Gs = ["href", "onClick"], Js = {
901
+ }, Js = { class: "flex items-center pb-8" }, Ks = ["href", "onClick"], Xs = {
887
902
  key: 2,
888
903
  class: "w-full flex justify-center"
889
- }, Ks = {
904
+ }, Ys = {
890
905
  key: 0,
891
906
  class: "mt-[5px] flex flex-col gap-[5px]"
892
- }, Xs = ["href", "onClick"], Ys = {
907
+ }, Qs = ["href", "onClick"], er = {
893
908
  key: 1,
894
909
  class: "text-[13px]"
895
- }, Qs = { class: "mt-auto" }, er = { class: "p-[10px] flex-shrink-0" }, tr = { class: "flex flex-1 items-center gap-x-6" }, nr = { class: "relative flex flex-1 items-center gap-4" }, sr = { class: "cursor-pointer" }, rr = ["src"], or = { class: "ml-auto" }, ar = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, ai = {
910
+ }, tr = { class: "mt-auto" }, nr = { class: "p-[10px] flex-shrink-0" }, sr = { class: "flex flex-1 items-center gap-x-6" }, rr = { class: "relative flex flex-1 items-center gap-4" }, or = { class: "cursor-pointer" }, ar = ["src"], ir = { class: "ml-auto" }, lr = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, ui = {
896
911
  __name: "SparkDefaultContainer",
897
912
  props: {
898
913
  appStore: {
@@ -908,110 +923,111 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
908
923
  default: () => ({})
909
924
  }
910
925
  },
911
- setup(e) {
912
- const t = e, n = ln(), s = Tt(), r = Lt(), o = A(() => r.getAppIcon(t.appStore.state.app)), a = () => {
913
- const c = {};
914
- n["app-selector-bottom"] ? c.bottomSlot = () => rt("div", {}, n["app-selector-bottom"]()) : t.appSelectorSlots.bottomSlot && (c.bottomSlot = t.appSelectorSlots.bottomSlot), n["app-selector-footer"] ? c.footerSlot = () => rt("div", {}, n["app-selector-footer"]()) : t.appSelectorSlots.footerSlot && (c.footerSlot = t.appSelectorSlots.footerSlot), Q.showRight(ps, c);
915
- }, i = () => {
916
- Q.showLeft(
917
- As,
926
+ emits: ["overlayClose"],
927
+ setup(e, { emit: t }) {
928
+ const n = e, s = t, r = un(), o = Ht(), a = Lt(), i = $(() => a.getAppIcon(n.appStore.state.app)), l = () => {
929
+ const w = {};
930
+ r["app-selector-bottom"] ? w.bottomSlot = () => ot("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (w.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? w.footerSlot = () => ot("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (w.footerSlot = n.appSelectorSlots.footerSlot), _e.showRight(ms, w);
931
+ }, c = () => {
932
+ _e.showLeft(
933
+ Ls,
918
934
  {},
919
935
  {
920
- select: (c) => {
921
- s.toggleBrand(c), Q.closeLeft();
936
+ select: (w) => {
937
+ o.toggleBrand(w);
922
938
  }
923
939
  }
924
940
  );
925
- }, l = A(() => t.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [t.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), u = A(() => t.mainNavStore.state.hidden ? ["pl-2.5"] : [t.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
926
- return (c, h) => {
927
- const x = U("font-awesome-icon"), E = U("router-view");
928
- return m(), g(ie, null, [
941
+ }, u = $(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), m = $(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
942
+ return (w, v) => {
943
+ const p = U("font-awesome-icon"), b = U("router-view");
944
+ return g(), y(ie, null, [
929
945
  f("div", {
930
- class: k([l.value, "fixed inset-y-0 flex transition-all z-100"])
946
+ class: E([u.value, "fixed inset-y-0 flex transition-all z-100"])
931
947
  }, [
932
- f("div", Ds, [
933
- f("nav", Is, [
934
- f("ul", zs, [
935
- f("li", qs, [
936
- f("ul", Zs, [
937
- f("li", Ws, [
948
+ f("div", zs, [
949
+ f("nav", qs, [
950
+ f("ul", Zs, [
951
+ f("li", Ws, [
952
+ f("ul", Gs, [
953
+ f("li", Js, [
938
954
  f("a", {
939
955
  class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
940
- onClick: h[0] || (h[0] = fe((p) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
956
+ onClick: v[0] || (v[0] = fe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
941
957
  }, [
942
- C(x, {
943
- icon: b(B)[o.value],
958
+ C(p, {
959
+ icon: x(B)[i.value],
944
960
  class: "size-5"
945
961
  }, null, 8, ["icon"])
946
962
  ]),
947
- e.mainNavStore.state.collapsed ? _("", !0) : (m(), g("a", {
963
+ e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
948
964
  key: 0,
949
- onClick: h[1] || (h[1] = fe((p) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
965
+ onClick: v[1] || (v[1] = fe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
950
966
  class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
951
- }, O(e.appStore.state.app), 1))
967
+ }, L(e.appStore.state.app), 1))
952
968
  ]),
953
- (m(!0), g(ie, null, me(e.mainNavStore.state.menu, (p) => (m(), g("li", {
954
- key: p.name,
955
- class: k({
956
- "mt-[10px]": p.children,
957
- "mt-auto": p.footerSection
969
+ (g(!0), y(ie, null, me(e.mainNavStore.state.menu, (h) => (g(), y("li", {
970
+ key: h.name,
971
+ class: E({
972
+ "mt-[10px]": h.children,
973
+ "mt-auto": h.footerSection
958
974
  })
959
975
  }, [
960
976
  f("a", {
961
- class: k([{
962
- "bg-gray-100": p.current,
963
- "hover:bg-gray-100": p?.href
977
+ class: E([{
978
+ "bg-gray-100": h.current,
979
+ "hover:bg-gray-100": h?.href
964
980
  }, "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"]),
965
- href: p?.href,
966
- onClick: fe((w) => e.mainNavStore.goto(p.href), ["prevent"])
981
+ href: h?.href,
982
+ onClick: fe((_) => e.mainNavStore.goto(h.href), ["prevent"])
967
983
  }, [
968
- p.icon ? (m(), Z(x, {
984
+ h.icon ? (g(), W(p, {
969
985
  key: 0,
970
- icon: b(B)[p.icon],
971
- class: k([[(p.current, "text-gray-400")], "size-4"])
972
- }, null, 8, ["icon", "class"])) : _("", !0),
973
- e.mainNavStore.state.collapsed ? p?.children ? (m(), g("div", Js, [...h[4] || (h[4] = [
986
+ icon: x(B)[h.icon],
987
+ class: E([[(h.current, "text-gray-400")], "size-4"])
988
+ }, null, 8, ["icon", "class"])) : R("", !0),
989
+ e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div", Xs, [...v[6] || (v[6] = [
974
990
  f("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
975
- ])])) : _("", !0) : (m(), g("span", {
991
+ ])])) : R("", !0) : (g(), y("span", {
976
992
  key: 1,
977
- class: k({
978
- "text-[11px]": p?.children,
979
- "text-[13px]": !p?.children,
980
- "font-semibold": p?.children,
981
- "text-gray-500": p?.children
993
+ class: E({
994
+ "text-[11px]": h?.children,
995
+ "text-[13px]": !h?.children,
996
+ "font-semibold": h?.children,
997
+ "text-gray-500": h?.children
982
998
  })
983
- }, O(p.name), 3))
984
- ], 10, Gs),
985
- p.children ? (m(), g("ul", Ks, [
986
- (m(!0), g(ie, null, me(p.children, (w) => (m(), g("li", {
987
- key: w.name
999
+ }, L(h.name), 3))
1000
+ ], 10, Ks),
1001
+ h.children ? (g(), y("ul", Ys, [
1002
+ (g(!0), y(ie, null, me(h.children, (_) => (g(), y("li", {
1003
+ key: _.name
988
1004
  }, [
989
1005
  f("a", {
990
- class: k([[w.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"]),
991
- href: w.href,
992
- onClick: fe((y) => e.mainNavStore.goto(w.href), ["prevent"])
1006
+ class: E([[_.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"]),
1007
+ href: _.href,
1008
+ onClick: fe((T) => e.mainNavStore.goto(_.href), ["prevent"])
993
1009
  }, [
994
- w.icon ? (m(), Z(x, {
1010
+ _.icon ? (g(), W(p, {
995
1011
  key: 0,
996
- icon: b(B)[w.icon],
997
- class: k([[(w.current, "text-gray-400")], "size-4"])
998
- }, null, 8, ["icon", "class"])) : _("", !0),
999
- e.mainNavStore.state.collapsed ? _("", !0) : (m(), g("span", Ys, O(w.name), 1))
1000
- ], 10, Xs)
1012
+ icon: x(B)[_.icon],
1013
+ class: E([[(_.current, "text-gray-400")], "size-4"])
1014
+ }, null, 8, ["icon", "class"])) : R("", !0),
1015
+ e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", er, L(_.name), 1))
1016
+ ], 10, Qs)
1001
1017
  ]))), 128))
1002
- ])) : _("", !0)
1018
+ ])) : R("", !0)
1003
1019
  ], 2))), 128))
1004
1020
  ])
1005
1021
  ]),
1006
- f("li", Qs, [
1007
- M(c.$slots, "sidebar-footer"),
1022
+ f("li", tr, [
1023
+ M(w.$slots, "sidebar-footer"),
1008
1024
  f("a", {
1009
1025
  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",
1010
1026
  href: "#",
1011
- onClick: h[2] || (h[2] = fe((p) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
1027
+ onClick: v[2] || (v[2] = fe((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
1012
1028
  }, [
1013
- C(x, {
1014
- icon: b(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
1029
+ C(p, {
1030
+ icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
1015
1031
  class: "class-5"
1016
1032
  }, null, 8, ["icon"])
1017
1033
  ])
@@ -1021,106 +1037,106 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
1021
1037
  ])
1022
1038
  ], 2),
1023
1039
  f("div", {
1024
- class: k([u.value, "h-full transition-all flex flex-col"])
1040
+ class: E([m.value, "h-full transition-all flex flex-col"])
1025
1041
  }, [
1026
- f("div", er, [
1027
- f("div", tr, [
1028
- f("div", nr, [
1029
- M(c.$slots, "header-left", {}, () => [
1030
- f("div", sr, [
1031
- C(x, {
1032
- icon: b(B).farBarsSort,
1042
+ f("div", nr, [
1043
+ f("div", sr, [
1044
+ f("div", rr, [
1045
+ M(w.$slots, "header-left", {}, () => [
1046
+ f("div", or, [
1047
+ C(p, {
1048
+ icon: x(B).farBarsSort,
1033
1049
  class: "size-5",
1034
- onClick: h[3] || (h[3] = (p) => e.mainNavStore.toggleHidden())
1050
+ onClick: v[3] || (v[3] = (h) => e.mainNavStore.toggleHidden())
1035
1051
  }, null, 8, ["icon"])
1036
1052
  ])
1037
1053
  ]),
1038
- M(c.$slots, "header-center", {}, () => [
1039
- e.appStore.state.showBrandSelector ? (m(), g("div", {
1054
+ M(w.$slots, "header-center", {}, () => [
1055
+ e.appStore.state.showBrandSelector ? (g(), y("div", {
1040
1056
  key: 0,
1041
1057
  class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
1042
- onClick: i
1058
+ onClick: c
1043
1059
  }, [
1044
- b(s).currentBrand ? (m(), g("img", {
1060
+ x(o).currentBrand ? (g(), y("img", {
1045
1061
  key: 0,
1046
- src: b(s).currentBrand.logo,
1062
+ src: x(o).currentBrand.logo,
1047
1063
  alt: "",
1048
1064
  class: "h-[30px] w-auto"
1049
- }, null, 8, rr)) : _("", !0)
1050
- ])) : _("", !0)
1065
+ }, null, 8, ar)) : R("", !0)
1066
+ ])) : R("", !0)
1051
1067
  ]),
1052
- f("div", or, [
1053
- M(c.$slots, "header-right", {}, () => [
1054
- e.appStore.state.showAppSelector ? (m(), g("button", {
1068
+ f("div", ir, [
1069
+ M(w.$slots, "header-right", {}, () => [
1070
+ e.appStore.state.showAppSelector ? (g(), y("button", {
1055
1071
  key: 0,
1056
1072
  class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
1057
1073
  type: "button",
1058
- onClick: a
1074
+ onClick: l
1059
1075
  }, [
1060
- C(x, {
1061
- icon: b(B).farGripDotsVertical,
1076
+ C(p, {
1077
+ icon: x(B).farGripDotsVertical,
1062
1078
  class: "size-4 text-gray-400"
1063
1079
  }, null, 8, ["icon"])
1064
- ])) : _("", !0)
1080
+ ])) : R("", !0)
1065
1081
  ])
1066
1082
  ])
1067
1083
  ])
1068
1084
  ])
1069
1085
  ]),
1070
- f("main", ar, [
1071
- C(E)
1086
+ f("main", lr, [
1087
+ C(b)
1072
1088
  ])
1073
1089
  ], 2),
1074
- C(b(ot), {
1090
+ C(x(at), {
1075
1091
  position: "left",
1076
- "overlay-instance": b(Q).left,
1077
- onClose: b(Q).closeLeft
1078
- }, null, 8, ["overlay-instance", "onClose"]),
1079
- C(b(ot), {
1092
+ "overlay-instance": x(_e).left,
1093
+ onClose: v[4] || (v[4] = (h) => s("overlayClose", "left"))
1094
+ }, null, 8, ["overlay-instance"]),
1095
+ C(x(at), {
1080
1096
  position: "right",
1081
- "overlay-instance": b(Q).right,
1082
- onClose: b(Q).closeRight
1083
- }, null, 8, ["overlay-instance", "onClose"]),
1084
- C(b(Ns))
1097
+ "overlay-instance": x(_e).right,
1098
+ onClose: v[5] || (v[5] = (h) => s("overlayClose", "right"))
1099
+ }, null, 8, ["overlay-instance"]),
1100
+ C(x(Ms))
1085
1101
  ], 64);
1086
1102
  };
1087
1103
  }
1088
- }, ir = (e, t) => {
1104
+ }, cr = (e, t) => {
1089
1105
  const n = e.__vccOpts || e;
1090
1106
  for (const [s, r] of t)
1091
1107
  n[s] = r;
1092
1108
  return n;
1093
- }, lr = {}, cr = { class: "h-full" };
1094
- function ur(e, t) {
1109
+ }, ur = {}, dr = { class: "h-full" };
1110
+ function fr(e, t) {
1095
1111
  const n = U("router-view");
1096
- return m(), g("main", cr, [
1112
+ return g(), y("main", dr, [
1097
1113
  C(n)
1098
1114
  ]);
1099
1115
  }
1100
- const ii = /* @__PURE__ */ ir(lr, [["render", ur]]);
1101
- function Ht(e, t) {
1116
+ const di = /* @__PURE__ */ cr(ur, [["render", fr]]);
1117
+ function Ft(e, t) {
1102
1118
  return function() {
1103
1119
  return e.apply(t, arguments);
1104
1120
  };
1105
1121
  }
1106
- const { toString: dr } = Object.prototype, { getPrototypeOf: Ge } = Object, { iterator: Te, toStringTag: Ft } = Symbol, He = /* @__PURE__ */ ((e) => (t) => {
1107
- const n = dr.call(t);
1122
+ const { toString: pr } = Object.prototype, { getPrototypeOf: Je } = Object, { iterator: He, toStringTag: Bt } = Symbol, Fe = /* @__PURE__ */ ((e) => (t) => {
1123
+ const n = pr.call(t);
1108
1124
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1109
- })(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => He(t) === e), Fe = (e) => (t) => typeof t === e, { isArray: ce } = Array, le = Fe("undefined");
1125
+ })(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Be = (e) => (t) => typeof t === e, { isArray: ce } = Array, le = Be("undefined");
1110
1126
  function ye(e) {
1111
1127
  return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1112
1128
  }
1113
- const Bt = D("ArrayBuffer");
1114
- function fr(e) {
1129
+ const Vt = D("ArrayBuffer");
1130
+ function hr(e) {
1115
1131
  let t;
1116
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Bt(e.buffer), t;
1132
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vt(e.buffer), t;
1117
1133
  }
1118
- const pr = Fe("string"), V = Fe("function"), Vt = Fe("number"), we = (e) => e !== null && typeof e == "object", hr = (e) => e === !0 || e === !1, ke = (e) => {
1119
- if (He(e) !== "object")
1134
+ const mr = Be("string"), V = Be("function"), Nt = Be("number"), we = (e) => e !== null && typeof e == "object", gr = (e) => e === !0 || e === !1, Re = (e) => {
1135
+ if (Fe(e) !== "object")
1120
1136
  return !1;
1121
- const t = Ge(e);
1122
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ft in e) && !(Te in e);
1123
- }, mr = (e) => {
1137
+ const t = Je(e);
1138
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Bt in e) && !(He in e);
1139
+ }, yr = (e) => {
1124
1140
  if (!we(e) || ye(e))
1125
1141
  return !1;
1126
1142
  try {
@@ -1128,11 +1144,11 @@ const pr = Fe("string"), V = Fe("function"), Vt = Fe("number"), we = (e) => e !=
1128
1144
  } catch {
1129
1145
  return !1;
1130
1146
  }
1131
- }, gr = D("Date"), yr = D("File"), wr = D("Blob"), br = D("FileList"), xr = (e) => we(e) && V(e.pipe), Sr = (e) => {
1147
+ }, wr = D("Date"), br = D("File"), xr = D("Blob"), Sr = D("FileList"), Cr = (e) => we(e) && V(e.pipe), vr = (e) => {
1132
1148
  let t;
1133
- return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = He(e)) === "formdata" || // detect form-data instance
1149
+ return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Fe(e)) === "formdata" || // detect form-data instance
1134
1150
  t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
1135
- }, Cr = D("URLSearchParams"), [vr, _r, kr, Rr] = ["ReadableStream", "Request", "Response", "Headers"].map(D), Er = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1151
+ }, _r = D("URLSearchParams"), [kr, Rr, Er, Ar] = ["ReadableStream", "Request", "Response", "Headers"].map(D), $r = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1136
1152
  function be(e, t, { allOwnKeys: n = !1 } = {}) {
1137
1153
  if (e === null || typeof e > "u")
1138
1154
  return;
@@ -1149,7 +1165,7 @@ function be(e, t, { allOwnKeys: n = !1 } = {}) {
1149
1165
  i = o[s], t.call(null, e[i], i, e);
1150
1166
  }
1151
1167
  }
1152
- function Nt(e, t) {
1168
+ function Pt(e, t) {
1153
1169
  if (ye(e))
1154
1170
  return null;
1155
1171
  t = t.toLowerCase();
@@ -1160,71 +1176,71 @@ function Nt(e, t) {
1160
1176
  return r;
1161
1177
  return null;
1162
1178
  }
1163
- const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pt = (e) => !le(e) && e !== ee;
1164
- function ze() {
1165
- const { caseless: e, skipUndefined: t } = Pt(this) && this || {}, n = {}, s = (r, o) => {
1166
- const a = e && Nt(n, o) || o;
1167
- ke(n[a]) && ke(r) ? n[a] = ze(n[a], r) : ke(r) ? n[a] = ze({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
1179
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !le(e) && e !== Q;
1180
+ function qe() {
1181
+ const { caseless: e, skipUndefined: t } = Mt(this) && this || {}, n = {}, s = (r, o) => {
1182
+ const a = e && Pt(n, o) || o;
1183
+ Re(n[a]) && Re(r) ? n[a] = qe(n[a], r) : Re(r) ? n[a] = qe({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
1168
1184
  };
1169
1185
  for (let r = 0, o = arguments.length; r < o; r++)
1170
1186
  arguments[r] && be(arguments[r], s);
1171
1187
  return n;
1172
1188
  }
1173
- const $r = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
1174
- n && V(r) ? e[o] = Ht(r, n) : e[o] = r;
1175
- }, { allOwnKeys: s }), e), Ar = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lr = (e, t, n, s) => {
1189
+ const Or = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
1190
+ n && V(r) ? e[o] = Ft(r, n) : e[o] = r;
1191
+ }, { allOwnKeys: s }), e), Lr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tr = (e, t, n, s) => {
1176
1192
  e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1177
1193
  value: t.prototype
1178
1194
  }), n && Object.assign(e.prototype, n);
1179
- }, Or = (e, t, n, s) => {
1195
+ }, Hr = (e, t, n, s) => {
1180
1196
  let r, o, a;
1181
1197
  const i = {};
1182
1198
  if (t = t || {}, e == null) return t;
1183
1199
  do {
1184
1200
  for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
1185
1201
  a = r[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
1186
- e = n !== !1 && Ge(e);
1202
+ e = n !== !1 && Je(e);
1187
1203
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
1188
1204
  return t;
1189
- }, Tr = (e, t, n) => {
1205
+ }, Fr = (e, t, n) => {
1190
1206
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
1191
1207
  const s = e.indexOf(t, n);
1192
1208
  return s !== -1 && s === n;
1193
- }, Hr = (e) => {
1209
+ }, Br = (e) => {
1194
1210
  if (!e) return null;
1195
1211
  if (ce(e)) return e;
1196
1212
  let t = e.length;
1197
- if (!Vt(t)) return null;
1213
+ if (!Nt(t)) return null;
1198
1214
  const n = new Array(t);
1199
1215
  for (; t-- > 0; )
1200
1216
  n[t] = e[t];
1201
1217
  return n;
1202
- }, Fr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ge(Uint8Array)), Br = (e, t) => {
1203
- const s = (e && e[Te]).call(e);
1218
+ }, Vr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Je(Uint8Array)), Nr = (e, t) => {
1219
+ const s = (e && e[He]).call(e);
1204
1220
  let r;
1205
1221
  for (; (r = s.next()) && !r.done; ) {
1206
1222
  const o = r.value;
1207
1223
  t.call(e, o[0], o[1]);
1208
1224
  }
1209
- }, Vr = (e, t) => {
1225
+ }, Pr = (e, t) => {
1210
1226
  let n;
1211
1227
  const s = [];
1212
1228
  for (; (n = e.exec(t)) !== null; )
1213
1229
  s.push(n);
1214
1230
  return s;
1215
- }, Nr = D("HTMLFormElement"), Pr = (e) => e.toLowerCase().replace(
1231
+ }, Mr = D("HTMLFormElement"), Ur = (e) => e.toLowerCase().replace(
1216
1232
  /[-_\s]([a-z\d])(\w*)/g,
1217
1233
  function(n, s, r) {
1218
1234
  return s.toUpperCase() + r;
1219
1235
  }
1220
- ), it = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mr = D("RegExp"), Mt = (e, t) => {
1236
+ ), lt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), jr = D("RegExp"), Ut = (e, t) => {
1221
1237
  const n = Object.getOwnPropertyDescriptors(e), s = {};
1222
1238
  be(n, (r, o) => {
1223
1239
  let a;
1224
1240
  (a = t(r, o, e)) !== !1 && (s[o] = a || r);
1225
1241
  }), Object.defineProperties(e, s);
1226
- }, Ur = (e) => {
1227
- Mt(e, (t, n) => {
1242
+ }, Dr = (e) => {
1243
+ Ut(e, (t, n) => {
1228
1244
  if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1229
1245
  return !1;
1230
1246
  const s = e[n];
@@ -1238,19 +1254,19 @@ const $r = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
1238
1254
  });
1239
1255
  }
1240
1256
  });
1241
- }, jr = (e, t) => {
1257
+ }, Ir = (e, t) => {
1242
1258
  const n = {}, s = (r) => {
1243
1259
  r.forEach((o) => {
1244
1260
  n[o] = !0;
1245
1261
  });
1246
1262
  };
1247
1263
  return ce(e) ? s(e) : s(String(e).split(t)), n;
1248
- }, Dr = () => {
1249
- }, Ir = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1250
- function zr(e) {
1251
- return !!(e && V(e.append) && e[Ft] === "FormData" && e[Te]);
1264
+ }, zr = () => {
1265
+ }, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1266
+ function Zr(e) {
1267
+ return !!(e && V(e.append) && e[Bt] === "FormData" && e[He]);
1252
1268
  }
1253
- const qr = (e) => {
1269
+ const Wr = (e) => {
1254
1270
  const t = new Array(10), n = (s, r) => {
1255
1271
  if (we(s)) {
1256
1272
  if (t.indexOf(s) >= 0)
@@ -1269,72 +1285,72 @@ const qr = (e) => {
1269
1285
  return s;
1270
1286
  };
1271
1287
  return n(e, 0);
1272
- }, Zr = D("AsyncFunction"), Wr = (e) => e && (we(e) || V(e)) && V(e.then) && V(e.catch), Ut = ((e, t) => e ? setImmediate : t ? ((n, s) => (ee.addEventListener("message", ({ source: r, data: o }) => {
1273
- r === ee && o === n && s.length && s.shift()();
1288
+ }, Gr = D("AsyncFunction"), Jr = (e) => e && (we(e) || V(e)) && V(e.then) && V(e.catch), jt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Q.addEventListener("message", ({ source: r, data: o }) => {
1289
+ r === Q && o === n && s.length && s.shift()();
1274
1290
  }, !1), (r) => {
1275
- s.push(r), ee.postMessage(n, "*");
1291
+ s.push(r), Q.postMessage(n, "*");
1276
1292
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1277
1293
  typeof setImmediate == "function",
1278
- V(ee.postMessage)
1279
- ), Gr = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || Ut, Jr = (e) => e != null && V(e[Te]), d = {
1294
+ V(Q.postMessage)
1295
+ ), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || jt, Xr = (e) => e != null && V(e[He]), d = {
1280
1296
  isArray: ce,
1281
- isArrayBuffer: Bt,
1297
+ isArrayBuffer: Vt,
1282
1298
  isBuffer: ye,
1283
- isFormData: Sr,
1284
- isArrayBufferView: fr,
1285
- isString: pr,
1286
- isNumber: Vt,
1287
- isBoolean: hr,
1299
+ isFormData: vr,
1300
+ isArrayBufferView: hr,
1301
+ isString: mr,
1302
+ isNumber: Nt,
1303
+ isBoolean: gr,
1288
1304
  isObject: we,
1289
- isPlainObject: ke,
1290
- isEmptyObject: mr,
1291
- isReadableStream: vr,
1292
- isRequest: _r,
1293
- isResponse: kr,
1294
- isHeaders: Rr,
1305
+ isPlainObject: Re,
1306
+ isEmptyObject: yr,
1307
+ isReadableStream: kr,
1308
+ isRequest: Rr,
1309
+ isResponse: Er,
1310
+ isHeaders: Ar,
1295
1311
  isUndefined: le,
1296
- isDate: gr,
1297
- isFile: yr,
1298
- isBlob: wr,
1299
- isRegExp: Mr,
1312
+ isDate: wr,
1313
+ isFile: br,
1314
+ isBlob: xr,
1315
+ isRegExp: jr,
1300
1316
  isFunction: V,
1301
- isStream: xr,
1302
- isURLSearchParams: Cr,
1303
- isTypedArray: Fr,
1304
- isFileList: br,
1317
+ isStream: Cr,
1318
+ isURLSearchParams: _r,
1319
+ isTypedArray: Vr,
1320
+ isFileList: Sr,
1305
1321
  forEach: be,
1306
- merge: ze,
1307
- extend: $r,
1308
- trim: Er,
1309
- stripBOM: Ar,
1310
- inherits: Lr,
1311
- toFlatObject: Or,
1312
- kindOf: He,
1322
+ merge: qe,
1323
+ extend: Or,
1324
+ trim: $r,
1325
+ stripBOM: Lr,
1326
+ inherits: Tr,
1327
+ toFlatObject: Hr,
1328
+ kindOf: Fe,
1313
1329
  kindOfTest: D,
1314
- endsWith: Tr,
1315
- toArray: Hr,
1316
- forEachEntry: Br,
1317
- matchAll: Vr,
1318
- isHTMLForm: Nr,
1319
- hasOwnProperty: it,
1320
- hasOwnProp: it,
1330
+ endsWith: Fr,
1331
+ toArray: Br,
1332
+ forEachEntry: Nr,
1333
+ matchAll: Pr,
1334
+ isHTMLForm: Mr,
1335
+ hasOwnProperty: lt,
1336
+ hasOwnProp: lt,
1321
1337
  // an alias to avoid ESLint no-prototype-builtins detection
1322
- reduceDescriptors: Mt,
1323
- freezeMethods: Ur,
1324
- toObjectSet: jr,
1325
- toCamelCase: Pr,
1326
- noop: Dr,
1327
- toFiniteNumber: Ir,
1328
- findKey: Nt,
1329
- global: ee,
1330
- isContextDefined: Pt,
1331
- isSpecCompliantForm: zr,
1332
- toJSONObject: qr,
1333
- isAsyncFn: Zr,
1334
- isThenable: Wr,
1335
- setImmediate: Ut,
1336
- asap: Gr,
1337
- isIterable: Jr
1338
+ reduceDescriptors: Ut,
1339
+ freezeMethods: Dr,
1340
+ toObjectSet: Ir,
1341
+ toCamelCase: Ur,
1342
+ noop: zr,
1343
+ toFiniteNumber: qr,
1344
+ findKey: Pt,
1345
+ global: Q,
1346
+ isContextDefined: Mt,
1347
+ isSpecCompliantForm: Zr,
1348
+ toJSONObject: Wr,
1349
+ isAsyncFn: Gr,
1350
+ isThenable: Jr,
1351
+ setImmediate: jt,
1352
+ asap: Kr,
1353
+ isIterable: Xr
1338
1354
  };
1339
1355
  function S(e, t, n, s, r) {
1340
1356
  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);
@@ -1360,7 +1376,7 @@ d.inherits(S, Error, {
1360
1376
  };
1361
1377
  }
1362
1378
  });
1363
- const jt = S.prototype, Dt = {};
1379
+ const Dt = S.prototype, It = {};
1364
1380
  [
1365
1381
  "ERR_BAD_OPTION_VALUE",
1366
1382
  "ERR_BAD_OPTION",
@@ -1376,50 +1392,50 @@ const jt = S.prototype, Dt = {};
1376
1392
  "ERR_INVALID_URL"
1377
1393
  // eslint-disable-next-line func-names
1378
1394
  ].forEach((e) => {
1379
- Dt[e] = { value: e };
1395
+ It[e] = { value: e };
1380
1396
  });
1381
- Object.defineProperties(S, Dt);
1382
- Object.defineProperty(jt, "isAxiosError", { value: !0 });
1397
+ Object.defineProperties(S, It);
1398
+ Object.defineProperty(Dt, "isAxiosError", { value: !0 });
1383
1399
  S.from = (e, t, n, s, r, o) => {
1384
- const a = Object.create(jt);
1385
- d.toFlatObject(e, a, function(c) {
1386
- return c !== Error.prototype;
1387
- }, (u) => u !== "isAxiosError");
1400
+ const a = Object.create(Dt);
1401
+ d.toFlatObject(e, a, function(u) {
1402
+ return u !== Error.prototype;
1403
+ }, (c) => c !== "isAxiosError");
1388
1404
  const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
1389
1405
  return S.call(a, i, 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;
1390
1406
  };
1391
- const Kr = null;
1392
- function qe(e) {
1407
+ const Yr = null;
1408
+ function Ze(e) {
1393
1409
  return d.isPlainObject(e) || d.isArray(e);
1394
1410
  }
1395
- function It(e) {
1411
+ function zt(e) {
1396
1412
  return d.endsWith(e, "[]") ? e.slice(0, -2) : e;
1397
1413
  }
1398
- function lt(e, t, n) {
1414
+ function ct(e, t, n) {
1399
1415
  return e ? e.concat(t).map(function(r, o) {
1400
- return r = It(r), !n && o ? "[" + r + "]" : r;
1416
+ return r = zt(r), !n && o ? "[" + r + "]" : r;
1401
1417
  }).join(n ? "." : "") : t;
1402
1418
  }
1403
- function Xr(e) {
1404
- return d.isArray(e) && !e.some(qe);
1419
+ function Qr(e) {
1420
+ return d.isArray(e) && !e.some(Ze);
1405
1421
  }
1406
- const Yr = d.toFlatObject(d, {}, null, function(t) {
1422
+ const eo = d.toFlatObject(d, {}, null, function(t) {
1407
1423
  return /^is[A-Z]/.test(t);
1408
1424
  });
1409
- function Be(e, t, n) {
1425
+ function Ve(e, t, n) {
1410
1426
  if (!d.isObject(e))
1411
1427
  throw new TypeError("target must be an object");
1412
1428
  t = t || new FormData(), n = d.toFlatObject(n, {
1413
1429
  metaTokens: !0,
1414
1430
  dots: !1,
1415
1431
  indexes: !1
1416
- }, !1, function(w, y) {
1417
- return !d.isUndefined(y[w]);
1432
+ }, !1, function(b, h) {
1433
+ return !d.isUndefined(h[b]);
1418
1434
  });
1419
- const s = n.metaTokens, r = n.visitor || c, o = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(t);
1435
+ const s = n.metaTokens, r = n.visitor || u, o = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(t);
1420
1436
  if (!d.isFunction(r))
1421
1437
  throw new TypeError("visitor must be a function");
1422
- function u(p) {
1438
+ function c(p) {
1423
1439
  if (p === null) return "";
1424
1440
  if (d.isDate(p))
1425
1441
  return p.toISOString();
@@ -1429,47 +1445,47 @@ function Be(e, t, n) {
1429
1445
  throw new S("Blob is not supported. Use a Buffer instead.");
1430
1446
  return d.isArrayBuffer(p) || d.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
1431
1447
  }
1432
- function c(p, w, y) {
1433
- let $ = p;
1434
- if (p && !y && typeof p == "object") {
1435
- if (d.endsWith(w, "{}"))
1436
- w = s ? w : w.slice(0, -2), p = JSON.stringify(p);
1437
- else if (d.isArray(p) && Xr(p) || (d.isFileList(p) || d.endsWith(w, "[]")) && ($ = d.toArray(p)))
1438
- return w = It(w), $.forEach(function(L, F) {
1439
- !(d.isUndefined(L) || L === null) && t.append(
1448
+ function u(p, b, h) {
1449
+ let _ = p;
1450
+ if (p && !h && typeof p == "object") {
1451
+ if (d.endsWith(b, "{}"))
1452
+ b = s ? b : b.slice(0, -2), p = JSON.stringify(p);
1453
+ else if (d.isArray(p) && Qr(p) || (d.isFileList(p) || d.endsWith(b, "[]")) && (_ = d.toArray(p)))
1454
+ return b = zt(b), _.forEach(function(O, F) {
1455
+ !(d.isUndefined(O) || O === null) && t.append(
1440
1456
  // eslint-disable-next-line no-nested-ternary
1441
- a === !0 ? lt([w], F, o) : a === null ? w : w + "[]",
1442
- u(L)
1457
+ a === !0 ? ct([b], F, o) : a === null ? b : b + "[]",
1458
+ c(O)
1443
1459
  );
1444
1460
  }), !1;
1445
1461
  }
1446
- return qe(p) ? !0 : (t.append(lt(y, w, o), u(p)), !1);
1462
+ return Ze(p) ? !0 : (t.append(ct(h, b, o), c(p)), !1);
1447
1463
  }
1448
- const h = [], x = Object.assign(Yr, {
1449
- defaultVisitor: c,
1450
- convertValue: u,
1451
- isVisitable: qe
1464
+ const m = [], w = Object.assign(eo, {
1465
+ defaultVisitor: u,
1466
+ convertValue: c,
1467
+ isVisitable: Ze
1452
1468
  });
1453
- function E(p, w) {
1469
+ function v(p, b) {
1454
1470
  if (!d.isUndefined(p)) {
1455
- if (h.indexOf(p) !== -1)
1456
- throw Error("Circular reference detected in " + w.join("."));
1457
- h.push(p), d.forEach(p, function($, T) {
1458
- (!(d.isUndefined($) || $ === null) && r.call(
1471
+ if (m.indexOf(p) !== -1)
1472
+ throw Error("Circular reference detected in " + b.join("."));
1473
+ m.push(p), d.forEach(p, function(_, T) {
1474
+ (!(d.isUndefined(_) || _ === null) && r.call(
1459
1475
  t,
1460
- $,
1476
+ _,
1461
1477
  d.isString(T) ? T.trim() : T,
1462
- w,
1463
- x
1464
- )) === !0 && E($, w ? w.concat(T) : [T]);
1465
- }), h.pop();
1478
+ b,
1479
+ w
1480
+ )) === !0 && v(_, b ? b.concat(T) : [T]);
1481
+ }), m.pop();
1466
1482
  }
1467
1483
  }
1468
1484
  if (!d.isObject(e))
1469
1485
  throw new TypeError("data must be an object");
1470
- return E(e), t;
1486
+ return v(e), t;
1471
1487
  }
1472
- function ct(e) {
1488
+ function ut(e) {
1473
1489
  const t = {
1474
1490
  "!": "%21",
1475
1491
  "'": "%27",
@@ -1483,40 +1499,40 @@ function ct(e) {
1483
1499
  return t[s];
1484
1500
  });
1485
1501
  }
1486
- function Je(e, t) {
1487
- this._pairs = [], e && Be(e, this, t);
1502
+ function Ke(e, t) {
1503
+ this._pairs = [], e && Ve(e, this, t);
1488
1504
  }
1489
- const zt = Je.prototype;
1490
- zt.append = function(t, n) {
1505
+ const qt = Ke.prototype;
1506
+ qt.append = function(t, n) {
1491
1507
  this._pairs.push([t, n]);
1492
1508
  };
1493
- zt.toString = function(t) {
1509
+ qt.toString = function(t) {
1494
1510
  const n = t ? function(s) {
1495
- return t.call(this, s, ct);
1496
- } : ct;
1511
+ return t.call(this, s, ut);
1512
+ } : ut;
1497
1513
  return this._pairs.map(function(r) {
1498
1514
  return n(r[0]) + "=" + n(r[1]);
1499
1515
  }, "").join("&");
1500
1516
  };
1501
- function Qr(e) {
1517
+ function to(e) {
1502
1518
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1503
1519
  }
1504
- function qt(e, t, n) {
1520
+ function Zt(e, t, n) {
1505
1521
  if (!t)
1506
1522
  return e;
1507
- const s = n && n.encode || Qr;
1523
+ const s = n && n.encode || to;
1508
1524
  d.isFunction(n) && (n = {
1509
1525
  serialize: n
1510
1526
  });
1511
1527
  const r = n && n.serialize;
1512
1528
  let o;
1513
- if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new Je(t, n).toString(s), o) {
1529
+ if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new Ke(t, n).toString(s), o) {
1514
1530
  const a = e.indexOf("#");
1515
1531
  a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
1516
1532
  }
1517
1533
  return e;
1518
1534
  }
1519
- class ut {
1535
+ class dt {
1520
1536
  constructor() {
1521
1537
  this.handlers = [];
1522
1538
  }
@@ -1570,42 +1586,42 @@ class ut {
1570
1586
  });
1571
1587
  }
1572
1588
  }
1573
- const Zt = {
1589
+ const Wt = {
1574
1590
  silentJSONParsing: !0,
1575
1591
  forcedJSONParsing: !0,
1576
1592
  clarifyTimeoutError: !1
1577
- }, eo = typeof URLSearchParams < "u" ? URLSearchParams : Je, to = typeof FormData < "u" ? FormData : null, no = typeof Blob < "u" ? Blob : null, so = {
1593
+ }, no = typeof URLSearchParams < "u" ? URLSearchParams : Ke, so = typeof FormData < "u" ? FormData : null, ro = typeof Blob < "u" ? Blob : null, oo = {
1578
1594
  isBrowser: !0,
1579
1595
  classes: {
1580
- URLSearchParams: eo,
1581
- FormData: to,
1582
- Blob: no
1596
+ URLSearchParams: no,
1597
+ FormData: so,
1598
+ Blob: ro
1583
1599
  },
1584
1600
  protocols: ["http", "https", "file", "blob", "url", "data"]
1585
- }, Ke = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, ro = Ke && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), oo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1586
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ao = Ke && window.location.href || "http://localhost", io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1601
+ }, Xe = typeof window < "u" && typeof document < "u", We = typeof navigator == "object" && navigator || void 0, ao = Xe && (!We || ["ReactNative", "NativeScript", "NS"].indexOf(We.product) < 0), io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1602
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lo = Xe && window.location.href || "http://localhost", co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1587
1603
  __proto__: null,
1588
- hasBrowserEnv: Ke,
1589
- hasStandardBrowserEnv: ro,
1590
- hasStandardBrowserWebWorkerEnv: oo,
1591
- navigator: Ze,
1592
- origin: ao
1604
+ hasBrowserEnv: Xe,
1605
+ hasStandardBrowserEnv: ao,
1606
+ hasStandardBrowserWebWorkerEnv: io,
1607
+ navigator: We,
1608
+ origin: lo
1593
1609
  }, Symbol.toStringTag, { value: "Module" })), H = {
1594
- ...io,
1595
- ...so
1610
+ ...co,
1611
+ ...oo
1596
1612
  };
1597
- function lo(e, t) {
1598
- return Be(e, new H.classes.URLSearchParams(), {
1613
+ function uo(e, t) {
1614
+ return Ve(e, new H.classes.URLSearchParams(), {
1599
1615
  visitor: function(n, s, r, o) {
1600
1616
  return H.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1601
1617
  },
1602
1618
  ...t
1603
1619
  });
1604
1620
  }
1605
- function co(e) {
1621
+ function fo(e) {
1606
1622
  return d.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1607
1623
  }
1608
- function uo(e) {
1624
+ function po(e) {
1609
1625
  const t = {}, n = Object.keys(e);
1610
1626
  let s;
1611
1627
  const r = n.length;
@@ -1614,22 +1630,22 @@ function uo(e) {
1614
1630
  o = n[s], t[o] = e[o];
1615
1631
  return t;
1616
1632
  }
1617
- function Wt(e) {
1633
+ function Gt(e) {
1618
1634
  function t(n, s, r, o) {
1619
1635
  let a = n[o++];
1620
1636
  if (a === "__proto__") return !0;
1621
1637
  const i = Number.isFinite(+a), l = o >= n.length;
1622
- return a = !a && d.isArray(r) ? r.length : a, l ? (d.hasOwnProp(r, a) ? r[a] = [r[a], s] : r[a] = s, !i) : ((!r[a] || !d.isObject(r[a])) && (r[a] = []), t(n, s, r[a], o) && d.isArray(r[a]) && (r[a] = uo(r[a])), !i);
1638
+ return a = !a && d.isArray(r) ? r.length : a, l ? (d.hasOwnProp(r, a) ? r[a] = [r[a], s] : r[a] = s, !i) : ((!r[a] || !d.isObject(r[a])) && (r[a] = []), t(n, s, r[a], o) && d.isArray(r[a]) && (r[a] = po(r[a])), !i);
1623
1639
  }
1624
1640
  if (d.isFormData(e) && d.isFunction(e.entries)) {
1625
1641
  const n = {};
1626
1642
  return d.forEachEntry(e, (s, r) => {
1627
- t(co(s), r, n, 0);
1643
+ t(fo(s), r, n, 0);
1628
1644
  }), n;
1629
1645
  }
1630
1646
  return null;
1631
1647
  }
1632
- function fo(e, t, n) {
1648
+ function ho(e, t, n) {
1633
1649
  if (d.isString(e))
1634
1650
  try {
1635
1651
  return (t || JSON.parse)(e), d.trim(e);
@@ -1640,12 +1656,12 @@ function fo(e, t, n) {
1640
1656
  return (n || JSON.stringify)(e);
1641
1657
  }
1642
1658
  const xe = {
1643
- transitional: Zt,
1659
+ transitional: Wt,
1644
1660
  adapter: ["xhr", "http", "fetch"],
1645
1661
  transformRequest: [function(t, n) {
1646
1662
  const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = d.isObject(t);
1647
1663
  if (o && d.isHTMLForm(t) && (t = new FormData(t)), d.isFormData(t))
1648
- return r ? JSON.stringify(Wt(t)) : t;
1664
+ return r ? JSON.stringify(Gt(t)) : t;
1649
1665
  if (d.isArrayBuffer(t) || d.isBuffer(t) || d.isStream(t) || d.isFile(t) || d.isBlob(t) || d.isReadableStream(t))
1650
1666
  return t;
1651
1667
  if (d.isArrayBufferView(t))
@@ -1655,17 +1671,17 @@ const xe = {
1655
1671
  let i;
1656
1672
  if (o) {
1657
1673
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
1658
- return lo(t, this.formSerializer).toString();
1674
+ return uo(t, this.formSerializer).toString();
1659
1675
  if ((i = d.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
1660
1676
  const l = this.env && this.env.FormData;
1661
- return Be(
1677
+ return Ve(
1662
1678
  i ? { "files[]": t } : t,
1663
1679
  l && new l(),
1664
1680
  this.formSerializer
1665
1681
  );
1666
1682
  }
1667
1683
  }
1668
- return o || r ? (n.setContentType("application/json", !1), fo(t)) : t;
1684
+ return o || r ? (n.setContentType("application/json", !1), ho(t)) : t;
1669
1685
  }],
1670
1686
  transformResponse: [function(t) {
1671
1687
  const n = this.transitional || xe.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
@@ -1708,7 +1724,7 @@ const xe = {
1708
1724
  d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1709
1725
  xe.headers[e] = {};
1710
1726
  });
1711
- const po = d.toObjectSet([
1727
+ const mo = d.toObjectSet([
1712
1728
  "age",
1713
1729
  "authorization",
1714
1730
  "content-length",
@@ -1726,29 +1742,29 @@ const po = d.toObjectSet([
1726
1742
  "referer",
1727
1743
  "retry-after",
1728
1744
  "user-agent"
1729
- ]), ho = (e) => {
1745
+ ]), go = (e) => {
1730
1746
  const t = {};
1731
1747
  let n, s, r;
1732
1748
  return e && e.split(`
1733
1749
  `).forEach(function(a) {
1734
- r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && po[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1750
+ r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && mo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1735
1751
  }), t;
1736
- }, dt = Symbol("internals");
1752
+ }, ft = Symbol("internals");
1737
1753
  function he(e) {
1738
1754
  return e && String(e).trim().toLowerCase();
1739
1755
  }
1740
- function Re(e) {
1741
- return e === !1 || e == null ? e : d.isArray(e) ? e.map(Re) : String(e);
1756
+ function Ee(e) {
1757
+ return e === !1 || e == null ? e : d.isArray(e) ? e.map(Ee) : String(e);
1742
1758
  }
1743
- function mo(e) {
1759
+ function yo(e) {
1744
1760
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1745
1761
  let s;
1746
1762
  for (; s = n.exec(e); )
1747
1763
  t[s[1]] = s[2];
1748
1764
  return t;
1749
1765
  }
1750
- const go = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1751
- function Ue(e, t, n, s, r) {
1766
+ const wo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1767
+ function je(e, t, n, s, r) {
1752
1768
  if (d.isFunction(s))
1753
1769
  return s.call(this, t, n);
1754
1770
  if (r && (t = n), !!d.isString(t)) {
@@ -1758,10 +1774,10 @@ function Ue(e, t, n, s, r) {
1758
1774
  return s.test(t);
1759
1775
  }
1760
1776
  }
1761
- function yo(e) {
1777
+ function bo(e) {
1762
1778
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
1763
1779
  }
1764
- function wo(e, t) {
1780
+ function xo(e, t) {
1765
1781
  const n = d.toCamelCase(" " + t);
1766
1782
  ["get", "set", "has"].forEach((s) => {
1767
1783
  Object.defineProperty(e, s + n, {
@@ -1778,24 +1794,24 @@ let N = class {
1778
1794
  }
1779
1795
  set(t, n, s) {
1780
1796
  const r = this;
1781
- function o(i, l, u) {
1782
- const c = he(l);
1783
- if (!c)
1797
+ function o(i, l, c) {
1798
+ const u = he(l);
1799
+ if (!u)
1784
1800
  throw new Error("header name must be a non-empty string");
1785
- const h = d.findKey(r, c);
1786
- (!h || r[h] === void 0 || u === !0 || u === void 0 && r[h] !== !1) && (r[h || l] = Re(i));
1801
+ const m = d.findKey(r, u);
1802
+ (!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] = Ee(i));
1787
1803
  }
1788
- const a = (i, l) => d.forEach(i, (u, c) => o(u, c, l));
1804
+ const a = (i, l) => d.forEach(i, (c, u) => o(c, u, l));
1789
1805
  if (d.isPlainObject(t) || t instanceof this.constructor)
1790
1806
  a(t, n);
1791
- else if (d.isString(t) && (t = t.trim()) && !go(t))
1792
- a(ho(t), n);
1807
+ else if (d.isString(t) && (t = t.trim()) && !wo(t))
1808
+ a(go(t), n);
1793
1809
  else if (d.isObject(t) && d.isIterable(t)) {
1794
- let i = {}, l, u;
1795
- for (const c of t) {
1796
- if (!d.isArray(c))
1810
+ let i = {}, l, c;
1811
+ for (const u of t) {
1812
+ if (!d.isArray(u))
1797
1813
  throw TypeError("Object iterator must return a key-value pair");
1798
- i[u = c[0]] = (l = i[u]) ? d.isArray(l) ? [...l, c[1]] : [l, c[1]] : c[1];
1814
+ i[c = u[0]] = (l = i[c]) ? d.isArray(l) ? [...l, u[1]] : [l, u[1]] : u[1];
1799
1815
  }
1800
1816
  a(i, n);
1801
1817
  } else
@@ -1810,7 +1826,7 @@ let N = class {
1810
1826
  if (!n)
1811
1827
  return r;
1812
1828
  if (n === !0)
1813
- return mo(r);
1829
+ return yo(r);
1814
1830
  if (d.isFunction(n))
1815
1831
  return n.call(this, r, s);
1816
1832
  if (d.isRegExp(n))
@@ -1822,7 +1838,7 @@ let N = class {
1822
1838
  has(t, n) {
1823
1839
  if (t = he(t), t) {
1824
1840
  const s = d.findKey(this, t);
1825
- return !!(s && this[s] !== void 0 && (!n || Ue(this, this[s], s, n)));
1841
+ return !!(s && this[s] !== void 0 && (!n || je(this, this[s], s, n)));
1826
1842
  }
1827
1843
  return !1;
1828
1844
  }
@@ -1832,7 +1848,7 @@ let N = class {
1832
1848
  function o(a) {
1833
1849
  if (a = he(a), a) {
1834
1850
  const i = d.findKey(s, a);
1835
- i && (!n || Ue(s, s[i], i, n)) && (delete s[i], r = !0);
1851
+ i && (!n || je(s, s[i], i, n)) && (delete s[i], r = !0);
1836
1852
  }
1837
1853
  }
1838
1854
  return d.isArray(t) ? t.forEach(o) : o(t), r;
@@ -1842,7 +1858,7 @@ let N = class {
1842
1858
  let s = n.length, r = !1;
1843
1859
  for (; s--; ) {
1844
1860
  const o = n[s];
1845
- (!t || Ue(this, this[o], o, t, !0)) && (delete this[o], r = !0);
1861
+ (!t || je(this, this[o], o, t, !0)) && (delete this[o], r = !0);
1846
1862
  }
1847
1863
  return r;
1848
1864
  }
@@ -1851,11 +1867,11 @@ let N = class {
1851
1867
  return d.forEach(this, (r, o) => {
1852
1868
  const a = d.findKey(s, o);
1853
1869
  if (a) {
1854
- n[a] = Re(r), delete n[o];
1870
+ n[a] = Ee(r), delete n[o];
1855
1871
  return;
1856
1872
  }
1857
- const i = t ? yo(o) : String(o).trim();
1858
- i !== o && delete n[o], n[i] = Re(r), s[i] = !0;
1873
+ const i = t ? bo(o) : String(o).trim();
1874
+ i !== o && delete n[o], n[i] = Ee(r), s[i] = !0;
1859
1875
  }), this;
1860
1876
  }
1861
1877
  concat(...t) {
@@ -1888,12 +1904,12 @@ let N = class {
1888
1904
  return n.forEach((r) => s.set(r)), s;
1889
1905
  }
1890
1906
  static accessor(t) {
1891
- const s = (this[dt] = this[dt] = {
1907
+ const s = (this[ft] = this[ft] = {
1892
1908
  accessors: {}
1893
1909
  }).accessors, r = this.prototype;
1894
1910
  function o(a) {
1895
1911
  const i = he(a);
1896
- s[i] || (wo(r, a), s[i] = !0);
1912
+ s[i] || (xo(r, a), s[i] = !0);
1897
1913
  }
1898
1914
  return d.isArray(t) ? t.forEach(o) : o(t), this;
1899
1915
  }
@@ -1909,14 +1925,14 @@ d.reduceDescriptors(N.prototype, ({ value: e }, t) => {
1909
1925
  };
1910
1926
  });
1911
1927
  d.freezeMethods(N);
1912
- function je(e, t) {
1928
+ function De(e, t) {
1913
1929
  const n = this || xe, s = t || n, r = N.from(s.headers);
1914
1930
  let o = s.data;
1915
1931
  return d.forEach(e, function(i) {
1916
1932
  o = i.call(n, o, r.normalize(), t ? t.status : void 0);
1917
1933
  }), r.normalize(), o;
1918
1934
  }
1919
- function Gt(e) {
1935
+ function Jt(e) {
1920
1936
  return !!(e && e.__CANCEL__);
1921
1937
  }
1922
1938
  function ue(e, t, n) {
@@ -1925,7 +1941,7 @@ function ue(e, t, n) {
1925
1941
  d.inherits(ue, S, {
1926
1942
  __CANCEL__: !0
1927
1943
  });
1928
- function Jt(e, t, n) {
1944
+ function Kt(e, t, n) {
1929
1945
  const s = n.config.validateStatus;
1930
1946
  !n.status || !s || s(n.status) ? e(n) : t(new S(
1931
1947
  "Request failed with status code " + n.status,
@@ -1935,68 +1951,68 @@ function Jt(e, t, n) {
1935
1951
  n
1936
1952
  ));
1937
1953
  }
1938
- function bo(e) {
1954
+ function So(e) {
1939
1955
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1940
1956
  return t && t[1] || "";
1941
1957
  }
1942
- function xo(e, t) {
1958
+ function Co(e, t) {
1943
1959
  e = e || 10;
1944
1960
  const n = new Array(e), s = new Array(e);
1945
1961
  let r = 0, o = 0, a;
1946
1962
  return t = t !== void 0 ? t : 1e3, function(l) {
1947
- const u = Date.now(), c = s[o];
1948
- a || (a = u), n[r] = l, s[r] = u;
1949
- let h = o, x = 0;
1950
- for (; h !== r; )
1951
- x += n[h++], h = h % e;
1952
- if (r = (r + 1) % e, r === o && (o = (o + 1) % e), u - a < t)
1963
+ const c = Date.now(), u = s[o];
1964
+ a || (a = c), n[r] = l, s[r] = c;
1965
+ let m = o, w = 0;
1966
+ for (; m !== r; )
1967
+ w += n[m++], m = m % e;
1968
+ if (r = (r + 1) % e, r === o && (o = (o + 1) % e), c - a < t)
1953
1969
  return;
1954
- const E = c && u - c;
1955
- return E ? Math.round(x * 1e3 / E) : void 0;
1970
+ const v = u && c - u;
1971
+ return v ? Math.round(w * 1e3 / v) : void 0;
1956
1972
  };
1957
1973
  }
1958
- function So(e, t) {
1974
+ function vo(e, t) {
1959
1975
  let n = 0, s = 1e3 / t, r, o;
1960
- const a = (u, c = Date.now()) => {
1961
- n = c, r = null, o && (clearTimeout(o), o = null), e(...u);
1976
+ const a = (c, u = Date.now()) => {
1977
+ n = u, r = null, o && (clearTimeout(o), o = null), e(...c);
1962
1978
  };
1963
- return [(...u) => {
1964
- const c = Date.now(), h = c - n;
1965
- h >= s ? a(u, c) : (r = u, o || (o = setTimeout(() => {
1979
+ return [(...c) => {
1980
+ const u = Date.now(), m = u - n;
1981
+ m >= s ? a(c, u) : (r = c, o || (o = setTimeout(() => {
1966
1982
  o = null, a(r);
1967
- }, s - h)));
1983
+ }, s - m)));
1968
1984
  }, () => r && a(r)];
1969
1985
  }
1970
1986
  const Le = (e, t, n = 3) => {
1971
1987
  let s = 0;
1972
- const r = xo(50, 250);
1973
- return So((o) => {
1974
- const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, u = r(l), c = a <= i;
1988
+ const r = Co(50, 250);
1989
+ return vo((o) => {
1990
+ const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = r(l), u = a <= i;
1975
1991
  s = a;
1976
- const h = {
1992
+ const m = {
1977
1993
  loaded: a,
1978
1994
  total: i,
1979
1995
  progress: i ? a / i : void 0,
1980
1996
  bytes: l,
1981
- rate: u || void 0,
1982
- estimated: u && i && c ? (i - a) / u : void 0,
1997
+ rate: c || void 0,
1998
+ estimated: c && i && u ? (i - a) / c : void 0,
1983
1999
  event: o,
1984
2000
  lengthComputable: i != null,
1985
2001
  [t ? "download" : "upload"]: !0
1986
2002
  };
1987
- e(h);
2003
+ e(m);
1988
2004
  }, n);
1989
- }, ft = (e, t) => {
2005
+ }, pt = (e, t) => {
1990
2006
  const n = e != null;
1991
2007
  return [(s) => t[0]({
1992
2008
  lengthComputable: n,
1993
2009
  total: e,
1994
2010
  loaded: s
1995
2011
  }), t[1]];
1996
- }, pt = (e) => (...t) => d.asap(() => e(...t)), Co = 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)))(
2012
+ }, ht = (e) => (...t) => d.asap(() => e(...t)), _o = 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)))(
1997
2013
  new URL(H.origin),
1998
2014
  H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
1999
- ) : () => !0, vo = H.hasStandardBrowserEnv ? (
2015
+ ) : () => !0, ko = H.hasStandardBrowserEnv ? (
2000
2016
  // Standard browser envs support document.cookie
2001
2017
  {
2002
2018
  write(e, t, n, s, r, o, a) {
@@ -2025,44 +2041,44 @@ const Le = (e, t, n = 3) => {
2025
2041
  }
2026
2042
  }
2027
2043
  );
2028
- function _o(e) {
2044
+ function Ro(e) {
2029
2045
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2030
2046
  }
2031
- function ko(e, t) {
2047
+ function Eo(e, t) {
2032
2048
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2033
2049
  }
2034
- function Kt(e, t, n) {
2035
- let s = !_o(t);
2036
- return e && (s || n == !1) ? ko(e, t) : t;
2050
+ function Xt(e, t, n) {
2051
+ let s = !Ro(t);
2052
+ return e && (s || n == !1) ? Eo(e, t) : t;
2037
2053
  }
2038
- const ht = (e) => e instanceof N ? { ...e } : e;
2039
- function ne(e, t) {
2054
+ const mt = (e) => e instanceof N ? { ...e } : e;
2055
+ function te(e, t) {
2040
2056
  t = t || {};
2041
2057
  const n = {};
2042
- function s(u, c, h, x) {
2043
- return d.isPlainObject(u) && d.isPlainObject(c) ? d.merge.call({ caseless: x }, u, c) : d.isPlainObject(c) ? d.merge({}, c) : d.isArray(c) ? c.slice() : c;
2058
+ function s(c, u, m, w) {
2059
+ return d.isPlainObject(c) && d.isPlainObject(u) ? d.merge.call({ caseless: w }, c, u) : d.isPlainObject(u) ? d.merge({}, u) : d.isArray(u) ? u.slice() : u;
2044
2060
  }
2045
- function r(u, c, h, x) {
2046
- if (d.isUndefined(c)) {
2047
- if (!d.isUndefined(u))
2048
- return s(void 0, u, h, x);
2049
- } else return s(u, c, h, x);
2061
+ function r(c, u, m, w) {
2062
+ if (d.isUndefined(u)) {
2063
+ if (!d.isUndefined(c))
2064
+ return s(void 0, c, m, w);
2065
+ } else return s(c, u, m, w);
2050
2066
  }
2051
- function o(u, c) {
2052
- if (!d.isUndefined(c))
2053
- return s(void 0, c);
2067
+ function o(c, u) {
2068
+ if (!d.isUndefined(u))
2069
+ return s(void 0, u);
2054
2070
  }
2055
- function a(u, c) {
2056
- if (d.isUndefined(c)) {
2057
- if (!d.isUndefined(u))
2058
- return s(void 0, u);
2059
- } else return s(void 0, c);
2071
+ function a(c, u) {
2072
+ if (d.isUndefined(u)) {
2073
+ if (!d.isUndefined(c))
2074
+ return s(void 0, c);
2075
+ } else return s(void 0, u);
2060
2076
  }
2061
- function i(u, c, h) {
2062
- if (h in t)
2063
- return s(u, c);
2064
- if (h in e)
2065
- return s(void 0, u);
2077
+ function i(c, u, m) {
2078
+ if (m in t)
2079
+ return s(c, u);
2080
+ if (m in e)
2081
+ return s(void 0, c);
2066
2082
  }
2067
2083
  const l = {
2068
2084
  url: o,
@@ -2093,116 +2109,116 @@ function ne(e, t) {
2093
2109
  socketPath: a,
2094
2110
  responseEncoding: a,
2095
2111
  validateStatus: i,
2096
- headers: (u, c, h) => r(ht(u), ht(c), h, !0)
2112
+ headers: (c, u, m) => r(mt(c), mt(u), m, !0)
2097
2113
  };
2098
- return d.forEach(Object.keys({ ...e, ...t }), function(c) {
2099
- const h = l[c] || r, x = h(e[c], t[c], c);
2100
- d.isUndefined(x) && h !== i || (n[c] = x);
2114
+ return d.forEach(Object.keys({ ...e, ...t }), function(u) {
2115
+ const m = l[u] || r, w = m(e[u], t[u], u);
2116
+ d.isUndefined(w) && m !== i || (n[u] = w);
2101
2117
  }), n;
2102
2118
  }
2103
- const Xt = (e) => {
2104
- const t = ne({}, e);
2119
+ const Yt = (e) => {
2120
+ const t = te({}, e);
2105
2121
  let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: i } = t;
2106
- if (t.headers = a = N.from(a), t.url = qt(Kt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
2122
+ if (t.headers = a = N.from(a), t.url = Zt(Xt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
2107
2123
  "Authorization",
2108
2124
  "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
2109
2125
  ), d.isFormData(n)) {
2110
2126
  if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
2111
2127
  a.setContentType(void 0);
2112
2128
  else if (d.isFunction(n.getHeaders)) {
2113
- const l = n.getHeaders(), u = ["content-type", "content-length"];
2114
- Object.entries(l).forEach(([c, h]) => {
2115
- u.includes(c.toLowerCase()) && a.set(c, h);
2129
+ const l = n.getHeaders(), c = ["content-type", "content-length"];
2130
+ Object.entries(l).forEach(([u, m]) => {
2131
+ c.includes(u.toLowerCase()) && a.set(u, m);
2116
2132
  });
2117
2133
  }
2118
2134
  }
2119
- if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 && Co(t.url))) {
2120
- const l = r && o && vo.read(o);
2135
+ if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 && _o(t.url))) {
2136
+ const l = r && o && ko.read(o);
2121
2137
  l && a.set(r, l);
2122
2138
  }
2123
2139
  return t;
2124
- }, Ro = typeof XMLHttpRequest < "u", Eo = Ro && function(e) {
2140
+ }, Ao = typeof XMLHttpRequest < "u", $o = Ao && function(e) {
2125
2141
  return new Promise(function(n, s) {
2126
- const r = Xt(e);
2142
+ const r = Yt(e);
2127
2143
  let o = r.data;
2128
2144
  const a = N.from(r.headers).normalize();
2129
- let { responseType: i, onUploadProgress: l, onDownloadProgress: u } = r, c, h, x, E, p;
2130
- function w() {
2131
- E && E(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
2132
- }
2133
- let y = new XMLHttpRequest();
2134
- y.open(r.method.toUpperCase(), r.url, !0), y.timeout = r.timeout;
2135
- function $() {
2136
- if (!y)
2145
+ let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = r, u, m, w, v, p;
2146
+ function b() {
2147
+ v && v(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
2148
+ }
2149
+ let h = new XMLHttpRequest();
2150
+ h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
2151
+ function _() {
2152
+ if (!h)
2137
2153
  return;
2138
- const L = N.from(
2139
- "getAllResponseHeaders" in y && y.getAllResponseHeaders()
2154
+ const O = N.from(
2155
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
2140
2156
  ), j = {
2141
- data: !i || i === "text" || i === "json" ? y.responseText : y.response,
2142
- status: y.status,
2143
- statusText: y.statusText,
2144
- headers: L,
2157
+ data: !i || i === "text" || i === "json" ? h.responseText : h.response,
2158
+ status: h.status,
2159
+ statusText: h.statusText,
2160
+ headers: O,
2145
2161
  config: e,
2146
- request: y
2162
+ request: h
2147
2163
  };
2148
- Jt(function(P) {
2149
- n(P), w();
2164
+ Kt(function(P) {
2165
+ n(P), b();
2150
2166
  }, function(P) {
2151
- s(P), w();
2152
- }, j), y = null;
2153
- }
2154
- "onloadend" in y ? y.onloadend = $ : y.onreadystatechange = function() {
2155
- !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout($);
2156
- }, y.onabort = function() {
2157
- y && (s(new S("Request aborted", S.ECONNABORTED, e, y)), y = null);
2158
- }, y.onerror = function(F) {
2159
- const j = F && F.message ? F.message : "Network Error", X = new S(j, S.ERR_NETWORK, e, y);
2160
- X.event = F || null, s(X), y = null;
2161
- }, y.ontimeout = function() {
2167
+ s(P), b();
2168
+ }, j), h = null;
2169
+ }
2170
+ "onloadend" in h ? h.onloadend = _ : h.onreadystatechange = function() {
2171
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(_);
2172
+ }, h.onabort = function() {
2173
+ h && (s(new S("Request aborted", S.ECONNABORTED, e, h)), h = null);
2174
+ }, h.onerror = function(F) {
2175
+ const j = F && F.message ? F.message : "Network Error", X = new S(j, S.ERR_NETWORK, e, h);
2176
+ X.event = F || null, s(X), h = null;
2177
+ }, h.ontimeout = function() {
2162
2178
  let F = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
2163
- const j = r.transitional || Zt;
2179
+ const j = r.transitional || Wt;
2164
2180
  r.timeoutErrorMessage && (F = r.timeoutErrorMessage), s(new S(
2165
2181
  F,
2166
2182
  j.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
2167
2183
  e,
2168
- y
2169
- )), y = null;
2170
- }, o === void 0 && a.setContentType(null), "setRequestHeader" in y && d.forEach(a.toJSON(), function(F, j) {
2171
- y.setRequestHeader(j, F);
2172
- }), d.isUndefined(r.withCredentials) || (y.withCredentials = !!r.withCredentials), i && i !== "json" && (y.responseType = r.responseType), u && ([x, p] = Le(u, !0), y.addEventListener("progress", x)), l && y.upload && ([h, E] = Le(l), y.upload.addEventListener("progress", h), y.upload.addEventListener("loadend", E)), (r.cancelToken || r.signal) && (c = (L) => {
2173
- y && (s(!L || L.type ? new ue(null, e, y) : L), y.abort(), y = null);
2174
- }, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
2175
- const T = bo(r.url);
2184
+ h
2185
+ )), h = null;
2186
+ }, o === void 0 && a.setContentType(null), "setRequestHeader" in h && d.forEach(a.toJSON(), function(F, j) {
2187
+ h.setRequestHeader(j, F);
2188
+ }), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Le(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Le(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (O) => {
2189
+ h && (s(!O || O.type ? new ue(null, e, h) : O), h.abort(), h = null);
2190
+ }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
2191
+ const T = So(r.url);
2176
2192
  if (T && H.protocols.indexOf(T) === -1) {
2177
2193
  s(new S("Unsupported protocol " + T + ":", S.ERR_BAD_REQUEST, e));
2178
2194
  return;
2179
2195
  }
2180
- y.send(o || null);
2196
+ h.send(o || null);
2181
2197
  });
2182
- }, $o = (e, t) => {
2198
+ }, Oo = (e, t) => {
2183
2199
  const { length: n } = e = e ? e.filter(Boolean) : [];
2184
2200
  if (t || n) {
2185
2201
  let s = new AbortController(), r;
2186
- const o = function(u) {
2202
+ const o = function(c) {
2187
2203
  if (!r) {
2188
2204
  r = !0, i();
2189
- const c = u instanceof Error ? u : this.reason;
2190
- s.abort(c instanceof S ? c : new ue(c instanceof Error ? c.message : c));
2205
+ const u = c instanceof Error ? c : this.reason;
2206
+ s.abort(u instanceof S ? u : new ue(u instanceof Error ? u.message : u));
2191
2207
  }
2192
2208
  };
2193
2209
  let a = t && setTimeout(() => {
2194
2210
  a = null, o(new S(`timeout ${t} of ms exceeded`, S.ETIMEDOUT));
2195
2211
  }, t);
2196
2212
  const i = () => {
2197
- e && (a && clearTimeout(a), a = null, e.forEach((u) => {
2198
- u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
2213
+ e && (a && clearTimeout(a), a = null, e.forEach((c) => {
2214
+ c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
2199
2215
  }), e = null);
2200
2216
  };
2201
- e.forEach((u) => u.addEventListener("abort", o));
2217
+ e.forEach((c) => c.addEventListener("abort", o));
2202
2218
  const { signal: l } = s;
2203
2219
  return l.unsubscribe = () => d.asap(i), l;
2204
2220
  }
2205
- }, Ao = function* (e, t) {
2221
+ }, Lo = function* (e, t) {
2206
2222
  let n = e.byteLength;
2207
2223
  if (n < t) {
2208
2224
  yield e;
@@ -2211,10 +2227,10 @@ const Xt = (e) => {
2211
2227
  let s = 0, r;
2212
2228
  for (; s < n; )
2213
2229
  r = s + t, yield e.slice(s, r), s = r;
2214
- }, Lo = async function* (e, t) {
2215
- for await (const n of Oo(e))
2216
- yield* Ao(n, t);
2217
- }, Oo = async function* (e) {
2230
+ }, To = async function* (e, t) {
2231
+ for await (const n of Ho(e))
2232
+ yield* Lo(n, t);
2233
+ }, Ho = async function* (e) {
2218
2234
  if (e[Symbol.asyncIterator]) {
2219
2235
  yield* e;
2220
2236
  return;
@@ -2230,27 +2246,27 @@ const Xt = (e) => {
2230
2246
  } finally {
2231
2247
  await t.cancel();
2232
2248
  }
2233
- }, mt = (e, t, n, s) => {
2234
- const r = Lo(e, t);
2249
+ }, gt = (e, t, n, s) => {
2250
+ const r = To(e, t);
2235
2251
  let o = 0, a, i = (l) => {
2236
2252
  a || (a = !0, s && s(l));
2237
2253
  };
2238
2254
  return new ReadableStream({
2239
2255
  async pull(l) {
2240
2256
  try {
2241
- const { done: u, value: c } = await r.next();
2242
- if (u) {
2257
+ const { done: c, value: u } = await r.next();
2258
+ if (c) {
2243
2259
  i(), l.close();
2244
2260
  return;
2245
2261
  }
2246
- let h = c.byteLength;
2262
+ let m = u.byteLength;
2247
2263
  if (n) {
2248
- let x = o += h;
2249
- n(x);
2264
+ let w = o += m;
2265
+ n(w);
2250
2266
  }
2251
- l.enqueue(new Uint8Array(c));
2252
- } catch (u) {
2253
- throw i(u), u;
2267
+ l.enqueue(new Uint8Array(u));
2268
+ } catch (c) {
2269
+ throw i(c), c;
2254
2270
  }
2255
2271
  },
2256
2272
  cancel(l) {
@@ -2259,47 +2275,47 @@ const Xt = (e) => {
2259
2275
  }, {
2260
2276
  highWaterMark: 2
2261
2277
  });
2262
- }, gt = 64 * 1024, { isFunction: _e } = d, To = (({ Request: e, Response: t }) => ({
2278
+ }, yt = 64 * 1024, { isFunction: ke } = d, Fo = (({ Request: e, Response: t }) => ({
2263
2279
  Request: e,
2264
2280
  Response: t
2265
2281
  }))(d.global), {
2266
- ReadableStream: yt,
2267
- TextEncoder: wt
2268
- } = d.global, bt = (e, ...t) => {
2282
+ ReadableStream: wt,
2283
+ TextEncoder: bt
2284
+ } = d.global, xt = (e, ...t) => {
2269
2285
  try {
2270
2286
  return !!e(...t);
2271
2287
  } catch {
2272
2288
  return !1;
2273
2289
  }
2274
- }, Ho = (e) => {
2290
+ }, Bo = (e) => {
2275
2291
  e = d.merge.call({
2276
2292
  skipUndefined: !0
2277
- }, To, e);
2278
- const { fetch: t, Request: n, Response: s } = e, r = t ? _e(t) : typeof fetch == "function", o = _e(n), a = _e(s);
2293
+ }, Fo, e);
2294
+ const { fetch: t, Request: n, Response: s } = e, r = t ? ke(t) : typeof fetch == "function", o = ke(n), a = ke(s);
2279
2295
  if (!r)
2280
2296
  return !1;
2281
- const i = r && _e(yt), l = r && (typeof wt == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new wt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), u = o && i && bt(() => {
2297
+ const i = r && ke(wt), l = r && (typeof bt == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new bt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), c = o && i && xt(() => {
2282
2298
  let p = !1;
2283
- const w = new n(H.origin, {
2284
- body: new yt(),
2299
+ const b = new n(H.origin, {
2300
+ body: new wt(),
2285
2301
  method: "POST",
2286
2302
  get duplex() {
2287
2303
  return p = !0, "half";
2288
2304
  }
2289
2305
  }).headers.has("Content-Type");
2290
- return p && !w;
2291
- }), c = a && i && bt(() => d.isReadableStream(new s("").body)), h = {
2292
- stream: c && ((p) => p.body)
2306
+ return p && !b;
2307
+ }), u = a && i && xt(() => d.isReadableStream(new s("").body)), m = {
2308
+ stream: u && ((p) => p.body)
2293
2309
  };
2294
2310
  r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
2295
- !h[p] && (h[p] = (w, y) => {
2296
- let $ = w && w[p];
2297
- if ($)
2298
- return $.call(w);
2299
- throw new S(`Response type '${p}' is not supported`, S.ERR_NOT_SUPPORT, y);
2311
+ !m[p] && (m[p] = (b, h) => {
2312
+ let _ = b && b[p];
2313
+ if (_)
2314
+ return _.call(b);
2315
+ throw new S(`Response type '${p}' is not supported`, S.ERR_NOT_SUPPORT, h);
2300
2316
  });
2301
2317
  });
2302
- const x = async (p) => {
2318
+ const w = async (p) => {
2303
2319
  if (p == null)
2304
2320
  return 0;
2305
2321
  if (d.isBlob(p))
@@ -2313,83 +2329,83 @@ const Xt = (e) => {
2313
2329
  return p.byteLength;
2314
2330
  if (d.isURLSearchParams(p) && (p = p + ""), d.isString(p))
2315
2331
  return (await l(p)).byteLength;
2316
- }, E = async (p, w) => {
2317
- const y = d.toFiniteNumber(p.getContentLength());
2318
- return y ?? x(w);
2332
+ }, v = async (p, b) => {
2333
+ const h = d.toFiniteNumber(p.getContentLength());
2334
+ return h ?? w(b);
2319
2335
  };
2320
2336
  return async (p) => {
2321
2337
  let {
2322
- url: w,
2323
- method: y,
2324
- data: $,
2338
+ url: b,
2339
+ method: h,
2340
+ data: _,
2325
2341
  signal: T,
2326
- cancelToken: L,
2342
+ cancelToken: O,
2327
2343
  timeout: F,
2328
2344
  onDownloadProgress: j,
2329
2345
  onUploadProgress: X,
2330
2346
  responseType: P,
2331
- headers: Ne,
2347
+ headers: Pe,
2332
2348
  withCredentials: Se = "same-origin",
2333
- fetchOptions: Ye
2334
- } = Xt(p), Qe = t || fetch;
2349
+ fetchOptions: Qe
2350
+ } = Yt(p), et = t || fetch;
2335
2351
  P = P ? (P + "").toLowerCase() : "text";
2336
- let Ce = $o([T, L && L.toAbortSignal()], F), de = null;
2352
+ let Ce = Oo([T, O && O.toAbortSignal()], F), de = null;
2337
2353
  const Y = Ce && Ce.unsubscribe && (() => {
2338
2354
  Ce.unsubscribe();
2339
2355
  });
2340
- let et;
2356
+ let tt;
2341
2357
  try {
2342
- if (X && u && y !== "get" && y !== "head" && (et = await E(Ne, $)) !== 0) {
2343
- let G = new n(w, {
2358
+ if (X && c && h !== "get" && h !== "head" && (tt = await v(Pe, _)) !== 0) {
2359
+ let J = new n(b, {
2344
2360
  method: "POST",
2345
- body: $,
2361
+ body: _,
2346
2362
  duplex: "half"
2347
- }), ae;
2348
- if (d.isFormData($) && (ae = G.headers.get("content-type")) && Ne.setContentType(ae), G.body) {
2349
- const [Pe, ve] = ft(
2350
- et,
2351
- Le(pt(X))
2363
+ }), oe;
2364
+ if (d.isFormData(_) && (oe = J.headers.get("content-type")) && Pe.setContentType(oe), J.body) {
2365
+ const [Me, ve] = pt(
2366
+ tt,
2367
+ Le(ht(X))
2352
2368
  );
2353
- $ = mt(G.body, gt, Pe, ve);
2369
+ _ = gt(J.body, yt, Me, ve);
2354
2370
  }
2355
2371
  }
2356
2372
  d.isString(Se) || (Se = Se ? "include" : "omit");
2357
- const I = o && "credentials" in n.prototype, tt = {
2358
- ...Ye,
2373
+ const I = o && "credentials" in n.prototype, nt = {
2374
+ ...Qe,
2359
2375
  signal: Ce,
2360
- method: y.toUpperCase(),
2361
- headers: Ne.normalize().toJSON(),
2362
- body: $,
2376
+ method: h.toUpperCase(),
2377
+ headers: Pe.normalize().toJSON(),
2378
+ body: _,
2363
2379
  duplex: "half",
2364
2380
  credentials: I ? Se : void 0
2365
2381
  };
2366
- de = o && new n(w, tt);
2367
- let W = await (o ? Qe(de, Ye) : Qe(w, tt));
2368
- const nt = c && (P === "stream" || P === "response");
2369
- if (c && (j || nt && Y)) {
2370
- const G = {};
2371
- ["status", "statusText", "headers"].forEach((st) => {
2372
- G[st] = W[st];
2382
+ de = o && new n(b, nt);
2383
+ let G = await (o ? et(de, Qe) : et(b, nt));
2384
+ const st = u && (P === "stream" || P === "response");
2385
+ if (u && (j || st && Y)) {
2386
+ const J = {};
2387
+ ["status", "statusText", "headers"].forEach((rt) => {
2388
+ J[rt] = G[rt];
2373
2389
  });
2374
- const ae = d.toFiniteNumber(W.headers.get("content-length")), [Pe, ve] = j && ft(
2375
- ae,
2376
- Le(pt(j), !0)
2390
+ const oe = d.toFiniteNumber(G.headers.get("content-length")), [Me, ve] = j && pt(
2391
+ oe,
2392
+ Le(ht(j), !0)
2377
2393
  ) || [];
2378
- W = new s(
2379
- mt(W.body, gt, Pe, () => {
2394
+ G = new s(
2395
+ gt(G.body, yt, Me, () => {
2380
2396
  ve && ve(), Y && Y();
2381
2397
  }),
2382
- G
2398
+ J
2383
2399
  );
2384
2400
  }
2385
2401
  P = P || "text";
2386
- let rn = await h[d.findKey(h, P) || "text"](W, p);
2387
- return !nt && Y && Y(), await new Promise((G, ae) => {
2388
- Jt(G, ae, {
2389
- data: rn,
2390
- headers: N.from(W.headers),
2391
- status: W.status,
2392
- statusText: W.statusText,
2402
+ let an = await m[d.findKey(m, P) || "text"](G, p);
2403
+ return !st && Y && Y(), await new Promise((J, oe) => {
2404
+ Kt(J, oe, {
2405
+ data: an,
2406
+ headers: N.from(G.headers),
2407
+ status: G.status,
2408
+ statusText: G.statusText,
2393
2409
  config: p,
2394
2410
  request: de
2395
2411
  });
@@ -2403,27 +2419,27 @@ const Xt = (e) => {
2403
2419
  ) : S.from(I, I && I.code, p, de);
2404
2420
  }
2405
2421
  };
2406
- }, Fo = /* @__PURE__ */ new Map(), Yt = (e) => {
2422
+ }, Vo = /* @__PURE__ */ new Map(), Qt = (e) => {
2407
2423
  let t = e && e.env || {};
2408
2424
  const { fetch: n, Request: s, Response: r } = t, o = [
2409
2425
  s,
2410
2426
  r,
2411
2427
  n
2412
2428
  ];
2413
- let a = o.length, i = a, l, u, c = Fo;
2429
+ let a = o.length, i = a, l, c, u = Vo;
2414
2430
  for (; i--; )
2415
- l = o[i], u = c.get(l), u === void 0 && c.set(l, u = i ? /* @__PURE__ */ new Map() : Ho(t)), c = u;
2416
- return u;
2431
+ l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() : Bo(t)), u = c;
2432
+ return c;
2417
2433
  };
2418
- Yt();
2419
- const Xe = {
2420
- http: Kr,
2421
- xhr: Eo,
2434
+ Qt();
2435
+ const Ye = {
2436
+ http: Yr,
2437
+ xhr: $o,
2422
2438
  fetch: {
2423
- get: Yt
2439
+ get: Qt
2424
2440
  }
2425
2441
  };
2426
- d.forEach(Xe, (e, t) => {
2442
+ d.forEach(Ye, (e, t) => {
2427
2443
  if (e) {
2428
2444
  try {
2429
2445
  Object.defineProperty(e, "name", { value: t });
@@ -2432,8 +2448,8 @@ d.forEach(Xe, (e, t) => {
2432
2448
  Object.defineProperty(e, "adapterName", { value: t });
2433
2449
  }
2434
2450
  });
2435
- const xt = (e) => `- ${e}`, Bo = (e) => d.isFunction(e) || e === null || e === !1;
2436
- function Vo(e, t) {
2451
+ const St = (e) => `- ${e}`, No = (e) => d.isFunction(e) || e === null || e === !1;
2452
+ function Po(e, t) {
2437
2453
  e = d.isArray(e) ? e : [e];
2438
2454
  const { length: n } = e;
2439
2455
  let s, r;
@@ -2441,7 +2457,7 @@ function Vo(e, t) {
2441
2457
  for (let a = 0; a < n; a++) {
2442
2458
  s = e[a];
2443
2459
  let i;
2444
- if (r = s, !Bo(s) && (r = Xe[(i = String(s)).toLowerCase()], r === void 0))
2460
+ if (r = s, !No(s) && (r = Ye[(i = String(s)).toLowerCase()], r === void 0))
2445
2461
  throw new S(`Unknown adapter '${i}'`);
2446
2462
  if (r && (d.isFunction(r) || (r = r.get(t))))
2447
2463
  break;
@@ -2449,11 +2465,11 @@ function Vo(e, t) {
2449
2465
  }
2450
2466
  if (!r) {
2451
2467
  const a = Object.entries(o).map(
2452
- ([l, u]) => `adapter ${l} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
2468
+ ([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
2453
2469
  );
2454
2470
  let i = n ? a.length > 1 ? `since :
2455
- ` + a.map(xt).join(`
2456
- `) : " " + xt(a[0]) : "as no adapter specified";
2471
+ ` + a.map(St).join(`
2472
+ `) : " " + St(a[0]) : "as no adapter specified";
2457
2473
  throw new S(
2458
2474
  "There is no suitable adapter to dispatch the request " + i,
2459
2475
  "ERR_NOT_SUPPORT"
@@ -2461,50 +2477,50 @@ function Vo(e, t) {
2461
2477
  }
2462
2478
  return r;
2463
2479
  }
2464
- const Qt = {
2480
+ const en = {
2465
2481
  /**
2466
2482
  * Resolve an adapter from a list of adapter names or functions.
2467
2483
  * @type {Function}
2468
2484
  */
2469
- getAdapter: Vo,
2485
+ getAdapter: Po,
2470
2486
  /**
2471
2487
  * Exposes all known adapters
2472
2488
  * @type {Object<string, Function|Object>}
2473
2489
  */
2474
- adapters: Xe
2490
+ adapters: Ye
2475
2491
  };
2476
- function De(e) {
2492
+ function Ie(e) {
2477
2493
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2478
2494
  throw new ue(null, e);
2479
2495
  }
2480
- function St(e) {
2481
- return De(e), e.headers = N.from(e.headers), e.data = je.call(
2496
+ function Ct(e) {
2497
+ return Ie(e), e.headers = N.from(e.headers), e.data = De.call(
2482
2498
  e,
2483
2499
  e.transformRequest
2484
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qt.getAdapter(e.adapter || xe.adapter, e)(e).then(function(s) {
2485
- return De(e), s.data = je.call(
2500
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), en.getAdapter(e.adapter || xe.adapter, e)(e).then(function(s) {
2501
+ return Ie(e), s.data = De.call(
2486
2502
  e,
2487
2503
  e.transformResponse,
2488
2504
  s
2489
2505
  ), s.headers = N.from(s.headers), s;
2490
2506
  }, function(s) {
2491
- return Gt(s) || (De(e), s && s.response && (s.response.data = je.call(
2507
+ return Jt(s) || (Ie(e), s && s.response && (s.response.data = De.call(
2492
2508
  e,
2493
2509
  e.transformResponse,
2494
2510
  s.response
2495
2511
  ), s.response.headers = N.from(s.response.headers))), Promise.reject(s);
2496
2512
  });
2497
2513
  }
2498
- const en = "1.13.2", Ve = {};
2514
+ const tn = "1.13.2", Ne = {};
2499
2515
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2500
- Ve[e] = function(s) {
2516
+ Ne[e] = function(s) {
2501
2517
  return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
2502
2518
  };
2503
2519
  });
2504
- const Ct = {};
2505
- Ve.transitional = function(t, n, s) {
2520
+ const vt = {};
2521
+ Ne.transitional = function(t, n, s) {
2506
2522
  function r(o, a) {
2507
- return "[Axios v" + en + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
2523
+ return "[Axios v" + tn + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
2508
2524
  }
2509
2525
  return (o, a, i) => {
2510
2526
  if (t === !1)
@@ -2512,7 +2528,7 @@ Ve.transitional = function(t, n, s) {
2512
2528
  r(a, " has been removed" + (n ? " in " + n : "")),
2513
2529
  S.ERR_DEPRECATED
2514
2530
  );
2515
- return n && !Ct[a] && (Ct[a] = !0, console.warn(
2531
+ return n && !vt[a] && (vt[a] = !0, console.warn(
2516
2532
  r(
2517
2533
  a,
2518
2534
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -2520,10 +2536,10 @@ Ve.transitional = function(t, n, s) {
2520
2536
  )), t ? t(o, a, i) : !0;
2521
2537
  };
2522
2538
  };
2523
- Ve.spelling = function(t) {
2539
+ Ne.spelling = function(t) {
2524
2540
  return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
2525
2541
  };
2526
- function No(e, t, n) {
2542
+ function Mo(e, t, n) {
2527
2543
  if (typeof e != "object")
2528
2544
  throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
2529
2545
  const s = Object.keys(e);
@@ -2540,15 +2556,15 @@ function No(e, t, n) {
2540
2556
  throw new S("Unknown option " + o, S.ERR_BAD_OPTION);
2541
2557
  }
2542
2558
  }
2543
- const Ee = {
2544
- assertOptions: No,
2545
- validators: Ve
2546
- }, z = Ee.validators;
2547
- let te = class {
2559
+ const Ae = {
2560
+ assertOptions: Mo,
2561
+ validators: Ne
2562
+ }, z = Ae.validators;
2563
+ let ee = class {
2548
2564
  constructor(t) {
2549
2565
  this.defaults = t || {}, this.interceptors = {
2550
- request: new ut(),
2551
- response: new ut()
2566
+ request: new dt(),
2567
+ response: new dt()
2552
2568
  };
2553
2569
  }
2554
2570
  /**
@@ -2577,18 +2593,18 @@ let te = class {
2577
2593
  }
2578
2594
  }
2579
2595
  _request(t, n) {
2580
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ne(this.defaults, n);
2596
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
2581
2597
  const { transitional: s, paramsSerializer: r, headers: o } = n;
2582
- s !== void 0 && Ee.assertOptions(s, {
2598
+ s !== void 0 && Ae.assertOptions(s, {
2583
2599
  silentJSONParsing: z.transitional(z.boolean),
2584
2600
  forcedJSONParsing: z.transitional(z.boolean),
2585
2601
  clarifyTimeoutError: z.transitional(z.boolean)
2586
2602
  }, !1), r != null && (d.isFunction(r) ? n.paramsSerializer = {
2587
2603
  serialize: r
2588
- } : Ee.assertOptions(r, {
2604
+ } : Ae.assertOptions(r, {
2589
2605
  encode: z.function,
2590
2606
  serialize: z.function
2591
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ee.assertOptions(n, {
2607
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ae.assertOptions(n, {
2592
2608
  baseUrl: z.spelling("baseURL"),
2593
2609
  withXsrfToken: z.spelling("withXSRFToken")
2594
2610
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
@@ -2604,49 +2620,49 @@ let te = class {
2604
2620
  ), n.headers = N.concat(a, o);
2605
2621
  const i = [];
2606
2622
  let l = !0;
2607
- this.interceptors.request.forEach(function(w) {
2608
- typeof w.runWhen == "function" && w.runWhen(n) === !1 || (l = l && w.synchronous, i.unshift(w.fulfilled, w.rejected));
2623
+ this.interceptors.request.forEach(function(b) {
2624
+ typeof b.runWhen == "function" && b.runWhen(n) === !1 || (l = l && b.synchronous, i.unshift(b.fulfilled, b.rejected));
2609
2625
  });
2610
- const u = [];
2611
- this.interceptors.response.forEach(function(w) {
2612
- u.push(w.fulfilled, w.rejected);
2626
+ const c = [];
2627
+ this.interceptors.response.forEach(function(b) {
2628
+ c.push(b.fulfilled, b.rejected);
2613
2629
  });
2614
- let c, h = 0, x;
2630
+ let u, m = 0, w;
2615
2631
  if (!l) {
2616
- const p = [St.bind(this), void 0];
2617
- for (p.unshift(...i), p.push(...u), x = p.length, c = Promise.resolve(n); h < x; )
2618
- c = c.then(p[h++], p[h++]);
2619
- return c;
2620
- }
2621
- x = i.length;
2622
- let E = n;
2623
- for (; h < x; ) {
2624
- const p = i[h++], w = i[h++];
2632
+ const p = [Ct.bind(this), void 0];
2633
+ for (p.unshift(...i), p.push(...c), w = p.length, u = Promise.resolve(n); m < w; )
2634
+ u = u.then(p[m++], p[m++]);
2635
+ return u;
2636
+ }
2637
+ w = i.length;
2638
+ let v = n;
2639
+ for (; m < w; ) {
2640
+ const p = i[m++], b = i[m++];
2625
2641
  try {
2626
- E = p(E);
2627
- } catch (y) {
2628
- w.call(this, y);
2642
+ v = p(v);
2643
+ } catch (h) {
2644
+ b.call(this, h);
2629
2645
  break;
2630
2646
  }
2631
2647
  }
2632
2648
  try {
2633
- c = St.call(this, E);
2649
+ u = Ct.call(this, v);
2634
2650
  } catch (p) {
2635
2651
  return Promise.reject(p);
2636
2652
  }
2637
- for (h = 0, x = u.length; h < x; )
2638
- c = c.then(u[h++], u[h++]);
2639
- return c;
2653
+ for (m = 0, w = c.length; m < w; )
2654
+ u = u.then(c[m++], c[m++]);
2655
+ return u;
2640
2656
  }
2641
2657
  getUri(t) {
2642
- t = ne(this.defaults, t);
2643
- const n = Kt(t.baseURL, t.url, t.allowAbsoluteUrls);
2644
- return qt(n, t.params, t.paramsSerializer);
2658
+ t = te(this.defaults, t);
2659
+ const n = Xt(t.baseURL, t.url, t.allowAbsoluteUrls);
2660
+ return Zt(n, t.params, t.paramsSerializer);
2645
2661
  }
2646
2662
  };
2647
2663
  d.forEach(["delete", "get", "head", "options"], function(t) {
2648
- te.prototype[t] = function(n, s) {
2649
- return this.request(ne(s || {}, {
2664
+ ee.prototype[t] = function(n, s) {
2665
+ return this.request(te(s || {}, {
2650
2666
  method: t,
2651
2667
  url: n,
2652
2668
  data: (s || {}).data
@@ -2656,7 +2672,7 @@ d.forEach(["delete", "get", "head", "options"], function(t) {
2656
2672
  d.forEach(["post", "put", "patch"], function(t) {
2657
2673
  function n(s) {
2658
2674
  return function(o, a, i) {
2659
- return this.request(ne(i || {}, {
2675
+ return this.request(te(i || {}, {
2660
2676
  method: t,
2661
2677
  headers: s ? {
2662
2678
  "Content-Type": "multipart/form-data"
@@ -2666,9 +2682,9 @@ d.forEach(["post", "put", "patch"], function(t) {
2666
2682
  }));
2667
2683
  };
2668
2684
  }
2669
- te.prototype[t] = n(), te.prototype[t + "Form"] = n(!0);
2685
+ ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
2670
2686
  });
2671
- let Po = class tn {
2687
+ let Uo = class nn {
2672
2688
  constructor(t) {
2673
2689
  if (typeof t != "function")
2674
2690
  throw new TypeError("executor must be a function.");
@@ -2734,22 +2750,22 @@ let Po = class tn {
2734
2750
  static source() {
2735
2751
  let t;
2736
2752
  return {
2737
- token: new tn(function(r) {
2753
+ token: new nn(function(r) {
2738
2754
  t = r;
2739
2755
  }),
2740
2756
  cancel: t
2741
2757
  };
2742
2758
  }
2743
2759
  };
2744
- function Mo(e) {
2760
+ function jo(e) {
2745
2761
  return function(n) {
2746
2762
  return e.apply(null, n);
2747
2763
  };
2748
2764
  }
2749
- function Uo(e) {
2765
+ function Do(e) {
2750
2766
  return d.isObject(e) && e.isAxiosError === !0;
2751
2767
  }
2752
- const We = {
2768
+ const Ge = {
2753
2769
  Continue: 100,
2754
2770
  SwitchingProtocols: 101,
2755
2771
  Processing: 102,
@@ -2820,75 +2836,97 @@ const We = {
2820
2836
  SslHandshakeFailed: 525,
2821
2837
  InvalidSslCertificate: 526
2822
2838
  };
2823
- Object.entries(We).forEach(([e, t]) => {
2824
- We[t] = e;
2839
+ Object.entries(Ge).forEach(([e, t]) => {
2840
+ Ge[t] = e;
2825
2841
  });
2826
- function nn(e) {
2827
- const t = new te(e), n = Ht(te.prototype.request, t);
2828
- return d.extend(n, te.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2829
- return nn(ne(e, r));
2842
+ function sn(e) {
2843
+ const t = new ee(e), n = Ft(ee.prototype.request, t);
2844
+ return d.extend(n, ee.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2845
+ return sn(te(e, r));
2830
2846
  }, n;
2831
2847
  }
2832
- const v = nn(xe);
2833
- v.Axios = te;
2834
- v.CanceledError = ue;
2835
- v.CancelToken = Po;
2836
- v.isCancel = Gt;
2837
- v.VERSION = en;
2838
- v.toFormData = Be;
2839
- v.AxiosError = S;
2840
- v.Cancel = v.CanceledError;
2841
- v.all = function(t) {
2848
+ const k = sn(xe);
2849
+ k.Axios = ee;
2850
+ k.CanceledError = ue;
2851
+ k.CancelToken = Uo;
2852
+ k.isCancel = Jt;
2853
+ k.VERSION = tn;
2854
+ k.toFormData = Ve;
2855
+ k.AxiosError = S;
2856
+ k.Cancel = k.CanceledError;
2857
+ k.all = function(t) {
2842
2858
  return Promise.all(t);
2843
2859
  };
2844
- v.spread = Mo;
2845
- v.isAxiosError = Uo;
2846
- v.mergeConfig = ne;
2847
- v.AxiosHeaders = N;
2848
- v.formToJSON = (e) => Wt(d.isHTMLForm(e) ? new FormData(e) : e);
2849
- v.getAdapter = Qt.getAdapter;
2850
- v.HttpStatusCode = We;
2851
- v.default = v;
2860
+ k.spread = jo;
2861
+ k.isAxiosError = Do;
2862
+ k.mergeConfig = te;
2863
+ k.AxiosHeaders = N;
2864
+ k.formToJSON = (e) => Gt(d.isHTMLForm(e) ? new FormData(e) : e);
2865
+ k.getAdapter = en.getAdapter;
2866
+ k.HttpStatusCode = Ge;
2867
+ k.default = k;
2852
2868
  const {
2853
- Axios: ui,
2854
- AxiosError: di,
2855
- CanceledError: fi,
2856
- isCancel: pi,
2857
- CancelToken: hi,
2858
- VERSION: mi,
2859
- all: gi,
2860
- Cancel: yi,
2861
- isAxiosError: wi,
2862
- spread: bi,
2863
- toFormData: xi,
2864
- AxiosHeaders: Si,
2865
- HttpStatusCode: Ci,
2866
- formToJSON: vi,
2867
- getAdapter: _i,
2868
- mergeConfig: ki
2869
- } = v, jo = (e) => {
2869
+ Axios: hi,
2870
+ AxiosError: mi,
2871
+ CanceledError: gi,
2872
+ isCancel: yi,
2873
+ CancelToken: wi,
2874
+ VERSION: bi,
2875
+ all: xi,
2876
+ Cancel: Si,
2877
+ isAxiosError: Ci,
2878
+ spread: vi,
2879
+ toFormData: _i,
2880
+ AxiosHeaders: ki,
2881
+ HttpStatusCode: Ri,
2882
+ formToJSON: Ei,
2883
+ getAdapter: Ai,
2884
+ mergeConfig: $i
2885
+ } = k, Io = (e) => {
2870
2886
  const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
2871
2887
  return t ? t[2] : null;
2872
- }, Do = (e, t, n = {}) => {
2888
+ }, zo = (e, t, n = {}) => {
2873
2889
  const {
2874
2890
  maxAge: s = 31536e3,
2875
2891
  // 365 days in seconds
2876
- domain: r = sn(),
2892
+ domain: r = rn(),
2877
2893
  secure: o = !0,
2878
2894
  sameSite: a = "Lax",
2879
2895
  path: i = "/"
2880
2896
  } = n;
2881
2897
  let l = `${e}=${t}; max-age=${s}; path=${i}; samesite=${a}`;
2882
2898
  r && (l += `; domain=${r}`), o && (l += "; secure"), document.cookie = l;
2883
- }, Io = (e, t = {}) => {
2884
- const { domain: n = sn(), path: s = "/" } = t;
2899
+ }, qo = (e, t = {}) => {
2900
+ const { domain: n = rn(), path: s = "/" } = t;
2885
2901
  let r = `${e}=; max-age=0; path=${s}`;
2886
2902
  n && (r += `; domain=${n}`), document.cookie = r;
2887
- }, sn = () => {
2903
+ }, rn = () => {
2888
2904
  const e = window.location.hostname;
2889
2905
  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;
2890
- }, Ie = "bolt-next-token", K = ge("auth", () => {
2891
- const e = se({
2906
+ }, on = [];
2907
+ function Zo(e) {
2908
+ on.push(e);
2909
+ }
2910
+ function Wo() {
2911
+ on.forEach((e) => e());
2912
+ }
2913
+ function Oi(e) {
2914
+ let t = !1;
2915
+ return Zo(() => {
2916
+ t = !1;
2917
+ }), {
2918
+ bootstrapApp: async () => {
2919
+ if (!t)
2920
+ try {
2921
+ await e(), t = !0;
2922
+ } catch (r) {
2923
+ throw console.error("Error during app bootstrap:", r), r;
2924
+ }
2925
+ }
2926
+ };
2927
+ }
2928
+ const ze = "bolt-next-token", Z = ge("auth", () => {
2929
+ const e = ne({
2892
2930
  user: null,
2893
2931
  token: null,
2894
2932
  ready: !1,
@@ -2920,18 +2958,18 @@ const {
2920
2958
  onLogoutSuccess: null,
2921
2959
  onLogoutError: null
2922
2960
  }
2923
- }), t = (u = {}) => {
2924
- u.endpoints && Object.assign(e.endpoints, u.endpoints), u.routes && Object.assign(e.routes, u.routes), u.devCredentials && Object.assign(e.devCredentials, u.devCredentials), u.callbacks && Object.assign(e.callbacks, u.callbacks), u.overrideToken && (e.overrideToken = u.overrideToken);
2925
- }, n = (u) => {
2926
- Do(Ie, u), e.token = u;
2961
+ }), t = (c = {}) => {
2962
+ c.endpoints && Object.assign(e.endpoints, c.endpoints), c.routes && Object.assign(e.routes, c.routes), c.devCredentials && Object.assign(e.devCredentials, c.devCredentials), c.callbacks && Object.assign(e.callbacks, c.callbacks), c.overrideToken && (e.overrideToken = c.overrideToken);
2963
+ }, n = (c) => {
2964
+ zo(ze, c), e.token = c;
2927
2965
  }, s = () => {
2928
- Io(Ie), e.token = null;
2929
- }, r = () => jo(Ie), o = async (u) => {
2930
- const c = await v.post(e.endpoints.login, u), h = c.headers.authorization;
2931
- return n(h), e.user = c.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(c.data), c.data;
2966
+ qo(ze), e.token = null;
2967
+ }, r = () => Io(ze), o = async (c) => {
2968
+ const u = await k.post(e.endpoints.login, c), m = u.headers.authorization;
2969
+ return n(m), e.user = u.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(u.data), u.data;
2932
2970
  }, a = async () => {
2933
2971
  try {
2934
- await v.post(
2972
+ await k.post(
2935
2973
  e.endpoints.logout,
2936
2974
  {},
2937
2975
  {
@@ -2940,28 +2978,28 @@ const {
2940
2978
  }
2941
2979
  }
2942
2980
  ), e.callbacks.onLogoutSuccess && await e.callbacks.onLogoutSuccess();
2943
- } catch (u) {
2944
- throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(u), u;
2981
+ } catch (c) {
2982
+ throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
2945
2983
  } finally {
2946
- s(), e.user = null;
2984
+ s(), e.user = null, Wo();
2947
2985
  }
2948
2986
  }, i = async () => {
2949
- const u = e.overrideToken || r();
2950
- if (!u)
2987
+ const c = e.overrideToken || r();
2988
+ if (!c)
2951
2989
  return e.ready = !0, null;
2952
2990
  try {
2953
- const { data: c } = await v.get(e.endpoints.fetch, {
2991
+ const { data: u } = await k.get(e.endpoints.fetch, {
2954
2992
  headers: {
2955
- Authorization: `Bearer ${u}`
2993
+ Authorization: `Bearer ${c}`
2956
2994
  }
2957
2995
  });
2958
- e.user = c, e.overrideToken || (e.token = u);
2996
+ e.user = u, e.overrideToken || (e.token = c);
2959
2997
  } catch {
2960
2998
  e.overrideToken || s();
2961
2999
  } finally {
2962
3000
  e.ready = !0;
2963
3001
  }
2964
- }, l = A(() => e.overrideToken ? !0 : !!e.token && !!e.user);
3002
+ }, l = $(() => e.overrideToken ? !0 : !!e.token && !!e.user);
2965
3003
  return {
2966
3004
  state: e,
2967
3005
  initialize: t,
@@ -2973,17 +3011,17 @@ const {
2973
3011
  clearTokenCookie: s,
2974
3012
  getTokenCookie: r
2975
3013
  };
2976
- }), zo = { class: "h-full grid place-content-center relative" }, qo = { class: "absolute top-8 left-8" }, Zo = ["src"], Wo = {
3014
+ }), Go = { class: "h-full grid place-content-center relative" }, Jo = { class: "absolute top-8 left-8" }, Ko = ["src"], Xo = {
2977
3015
  key: 1,
2978
3016
  width: "59",
2979
3017
  height: "23",
2980
3018
  viewBox: "0 0 59 23",
2981
3019
  fill: "none",
2982
3020
  xmlns: "http://www.w3.org/2000/svg"
2983
- }, Go = { class: "max-w-sm grid gap-y-1 -mt-8" }, Jo = { class: "mb-7" }, Ko = { class: "text-gray-600" }, Xo = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, Yo = {
3021
+ }, Yo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Qo = { class: "mb-7" }, ea = { class: "text-gray-600" }, ta = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, na = {
2984
3022
  key: 0,
2985
3023
  class: "text-red-600 text-sm mb-2"
2986
- }, Qo = { key: 0 }, ea = { key: 1 }, ta = {
3024
+ }, sa = { key: 0 }, ra = { key: 1 }, oa = {
2987
3025
  __name: "SparkLoginView",
2988
3026
  props: {
2989
3027
  logo: {
@@ -3000,35 +3038,35 @@ const {
3000
3038
  }
3001
3039
  },
3002
3040
  setup(e) {
3003
- const t = re(), n = Oe(), s = Ot(), r = K(), o = e, a = q(!1), i = q(""), l = async (u) => {
3041
+ const t = se(), n = Te(), s = Tt(), r = Z(), o = e, a = q(!1), i = q(""), l = async (c) => {
3004
3042
  a.value = !0, i.value = "";
3005
3043
  try {
3006
- await r.login(u);
3007
- const c = n.query.redirect;
3008
- if (c) {
3009
- if (c.startsWith("http")) {
3010
- window.location.href = c;
3044
+ await r.login(c);
3045
+ const u = n.query.redirect;
3046
+ if (u) {
3047
+ if (u.startsWith("http")) {
3048
+ window.location.href = u;
3011
3049
  return;
3012
3050
  }
3013
- await t.push(c);
3051
+ await t.push(u);
3014
3052
  } else
3015
3053
  await t.push(o.defaultRedirect);
3016
- } catch (c) {
3017
- i.value = c.response?.data?.message || c.message || "Login failed. Please try again.";
3054
+ } catch (u) {
3055
+ i.value = u.response?.data?.message || u.message || "Login failed. Please try again.";
3018
3056
  } finally {
3019
3057
  a.value = !1;
3020
3058
  }
3021
3059
  };
3022
- return (u, c) => {
3023
- const h = U("FormKit"), x = U("router-link");
3024
- return m(), g("div", zo, [
3025
- f("div", qo, [
3026
- o.logo ? (m(), g("img", {
3060
+ return (c, u) => {
3061
+ const m = U("FormKit"), w = U("router-link");
3062
+ return g(), y("div", Go, [
3063
+ f("div", Jo, [
3064
+ o.logo ? (g(), y("img", {
3027
3065
  key: 0,
3028
3066
  src: o.logo,
3029
3067
  alt: "Logo",
3030
3068
  class: "h-[23px] w-auto"
3031
- }, null, 8, Zo)) : (m(), g("svg", Wo, [...c[0] || (c[0] = [
3069
+ }, null, 8, Ko)) : (g(), y("svg", Xo, [...u[0] || (u[0] = [
3032
3070
  f("path", {
3033
3071
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3034
3072
  fill: "#1C64F2"
@@ -3047,56 +3085,56 @@ const {
3047
3085
  }, null, -1)
3048
3086
  ])]))
3049
3087
  ]),
3050
- f("div", Go, [
3051
- f("div", Jo, [
3052
- c[1] || (c[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
3053
- f("p", Ko, " Welcome back" + O(b(s).state.app ? ` to ${b(s).state.app}` : "") + "! Please enter your details. ", 1)
3088
+ f("div", Yo, [
3089
+ f("div", Qo, [
3090
+ u[1] || (u[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
3091
+ f("p", ea, " Welcome back" + L(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
3054
3092
  ]),
3055
- C(h, {
3093
+ C(m, {
3056
3094
  type: "form",
3057
3095
  onSubmit: l,
3058
3096
  actions: !1
3059
3097
  }, {
3060
- default: R(() => [
3061
- C(h, {
3098
+ default: A(() => [
3099
+ C(m, {
3062
3100
  label: "Email",
3063
3101
  name: "email",
3064
3102
  placeholder: "Enter your email",
3065
3103
  type: "email",
3066
3104
  validation: "required|email",
3067
3105
  "outer-class": "max-w-full",
3068
- value: b(r).state.devCredentials.username
3106
+ value: x(r).state.devCredentials.username
3069
3107
  }, null, 8, ["value"]),
3070
- C(h, {
3108
+ C(m, {
3071
3109
  label: "Password",
3072
3110
  name: "password",
3073
3111
  placeholder: "••••••••",
3074
3112
  type: "password",
3075
3113
  validation: "required",
3076
3114
  "outer-class": "max-w-full",
3077
- value: b(r).state.devCredentials.password
3115
+ value: x(r).state.devCredentials.password
3078
3116
  }, null, 8, ["value"]),
3079
- f("div", Xo, [
3080
- c[3] || (c[3] = f("span", null, null, -1)),
3081
- C(x, {
3117
+ f("div", ta, [
3118
+ u[3] || (u[3] = f("span", null, null, -1)),
3119
+ C(w, {
3082
3120
  to: o.forgotPasswordRoute,
3083
3121
  class: "text-sm text-primary-600 font-semibold"
3084
3122
  }, {
3085
- default: R(() => [...c[2] || (c[2] = [
3086
- J(" Forgot password ", -1)
3123
+ default: A(() => [...u[2] || (u[2] = [
3124
+ K(" Forgot password ", -1)
3087
3125
  ])]),
3088
3126
  _: 1
3089
3127
  }, 8, ["to"])
3090
3128
  ]),
3091
- i.value ? (m(), g("div", Yo, O(i.value), 1)) : _("", !0),
3092
- C(b(oe), {
3129
+ i.value ? (g(), y("div", na, L(i.value), 1)) : R("", !0),
3130
+ C(x(re), {
3093
3131
  type: "submit",
3094
3132
  size: "xl",
3095
3133
  disabled: a.value,
3096
3134
  "button-class": "w-full mb-2"
3097
3135
  }, {
3098
- default: R(() => [
3099
- a.value ? (m(), g("span", ea, "Signing in...")) : (m(), g("span", Qo, "Sign in"))
3136
+ default: A(() => [
3137
+ a.value ? (g(), y("span", ra, "Signing in...")) : (g(), y("span", sa, "Sign in"))
3100
3138
  ]),
3101
3139
  _: 1
3102
3140
  }, 8, ["disabled"])
@@ -3107,7 +3145,7 @@ const {
3107
3145
  ]);
3108
3146
  };
3109
3147
  }
3110
- }, na = {
3148
+ }, aa = {
3111
3149
  __name: "SparkLogoutView",
3112
3150
  props: {
3113
3151
  defaultRedirect: {
@@ -3116,27 +3154,27 @@ const {
3116
3154
  }
3117
3155
  },
3118
3156
  setup(e) {
3119
- const t = re(), n = Oe(), s = K(), r = e;
3120
- return cn(async () => {
3157
+ const t = se(), n = Te(), s = Z(), r = e;
3158
+ return dn(async () => {
3121
3159
  await s.logout();
3122
3160
  const o = n.query.redirect;
3123
3161
  o && o.startsWith("http") ? window.location.href = o : await t.push(o || r.defaultRedirect);
3124
3162
  }), (o, a) => null;
3125
3163
  }
3126
- }, sa = { class: "h-full grid place-content-center relative" }, ra = { class: "absolute top-8 left-8" }, oa = ["src"], aa = {
3164
+ }, ia = { class: "h-full grid place-content-center relative" }, la = { class: "absolute top-8 left-8" }, ca = ["src"], ua = {
3127
3165
  key: 1,
3128
3166
  width: "59",
3129
3167
  height: "23",
3130
3168
  viewBox: "0 0 59 23",
3131
3169
  fill: "none",
3132
3170
  xmlns: "http://www.w3.org/2000/svg"
3133
- }, ia = { class: "max-w-sm grid gap-y-1 -mt-8" }, la = {
3171
+ }, da = { class: "max-w-sm grid gap-y-1 -mt-8" }, fa = {
3134
3172
  key: 0,
3135
3173
  class: "text-red-600 text-sm mb-2"
3136
- }, ca = {
3174
+ }, pa = {
3137
3175
  key: 1,
3138
3176
  class: "text-green-600 text-sm mb-2"
3139
- }, ua = { key: 0 }, da = { key: 1 }, fa = {
3177
+ }, ha = { key: 0 }, ma = { key: 1 }, ga = {
3140
3178
  __name: "SparkForgotPasswordView",
3141
3179
  props: {
3142
3180
  logo: {
@@ -3149,10 +3187,10 @@ const {
3149
3187
  }
3150
3188
  },
3151
3189
  setup(e) {
3152
- const t = K(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
3190
+ const t = Z(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
3153
3191
  s.value = !0, r.value = "", o.value = "";
3154
3192
  try {
3155
- await v.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
3193
+ await k.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
3156
3194
  } catch (l) {
3157
3195
  r.value = l.response?.data?.message || "Failed to send reset link.";
3158
3196
  } finally {
@@ -3160,15 +3198,15 @@ const {
3160
3198
  }
3161
3199
  };
3162
3200
  return (i, l) => {
3163
- const u = U("FormKit"), c = U("router-link");
3164
- return m(), g("div", sa, [
3165
- f("div", ra, [
3166
- n.logo ? (m(), g("img", {
3201
+ const c = U("FormKit"), u = U("router-link");
3202
+ return g(), y("div", ia, [
3203
+ f("div", la, [
3204
+ n.logo ? (g(), y("img", {
3167
3205
  key: 0,
3168
3206
  src: n.logo,
3169
3207
  alt: "Logo",
3170
3208
  class: "h-[23px] w-auto"
3171
- }, null, 8, oa)) : (m(), g("svg", aa, [...l[0] || (l[0] = [
3209
+ }, null, 8, ca)) : (g(), y("svg", ua, [...l[0] || (l[0] = [
3172
3210
  f("path", {
3173
3211
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3174
3212
  fill: "#1C64F2"
@@ -3187,18 +3225,18 @@ const {
3187
3225
  }, null, -1)
3188
3226
  ])]))
3189
3227
  ]),
3190
- f("div", ia, [
3228
+ f("div", da, [
3191
3229
  l[2] || (l[2] = f("div", { class: "mb-7" }, [
3192
3230
  f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
3193
3231
  f("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
3194
3232
  ], -1)),
3195
- C(u, {
3233
+ C(c, {
3196
3234
  type: "form",
3197
3235
  onSubmit: a,
3198
3236
  actions: !1
3199
3237
  }, {
3200
- default: R(() => [
3201
- C(u, {
3238
+ default: A(() => [
3239
+ C(c, {
3202
3240
  label: "Email",
3203
3241
  name: "email",
3204
3242
  placeholder: "Enter your email",
@@ -3206,25 +3244,25 @@ const {
3206
3244
  validation: "required|email",
3207
3245
  "outer-class": "max-w-full"
3208
3246
  }),
3209
- r.value ? (m(), g("div", la, O(r.value), 1)) : _("", !0),
3210
- o.value ? (m(), g("div", ca, O(o.value), 1)) : _("", !0),
3211
- C(b(oe), {
3247
+ r.value ? (g(), y("div", fa, L(r.value), 1)) : R("", !0),
3248
+ o.value ? (g(), y("div", pa, L(o.value), 1)) : R("", !0),
3249
+ C(x(re), {
3212
3250
  type: "submit",
3213
3251
  size: "xl",
3214
3252
  disabled: s.value,
3215
3253
  "button-class": "w-full mb-2"
3216
3254
  }, {
3217
- default: R(() => [
3218
- s.value ? (m(), g("span", da, "Sending...")) : (m(), g("span", ua, "Send reset link"))
3255
+ default: A(() => [
3256
+ s.value ? (g(), y("span", ma, "Sending...")) : (g(), y("span", ha, "Send reset link"))
3219
3257
  ]),
3220
3258
  _: 1
3221
3259
  }, 8, ["disabled"]),
3222
- C(c, {
3260
+ C(u, {
3223
3261
  to: n.loginRoute,
3224
3262
  class: "text-sm text-center text-primary-600 font-semibold block"
3225
3263
  }, {
3226
- default: R(() => [...l[1] || (l[1] = [
3227
- J(" Back to login ", -1)
3264
+ default: A(() => [...l[1] || (l[1] = [
3265
+ K(" Back to login ", -1)
3228
3266
  ])]),
3229
3267
  _: 1
3230
3268
  }, 8, ["to"])
@@ -3235,17 +3273,17 @@ const {
3235
3273
  ]);
3236
3274
  };
3237
3275
  }
3238
- }, pa = { class: "h-full grid place-content-center relative" }, ha = { class: "absolute top-8 left-8" }, ma = ["src"], ga = {
3276
+ }, ya = { class: "h-full grid place-content-center relative" }, wa = { class: "absolute top-8 left-8" }, ba = ["src"], xa = {
3239
3277
  key: 1,
3240
3278
  width: "59",
3241
3279
  height: "23",
3242
3280
  viewBox: "0 0 59 23",
3243
3281
  fill: "none",
3244
3282
  xmlns: "http://www.w3.org/2000/svg"
3245
- }, ya = { class: "max-w-sm grid gap-y-1 -mt-8" }, wa = {
3283
+ }, Sa = { class: "max-w-sm grid gap-y-1 -mt-8" }, Ca = {
3246
3284
  key: 0,
3247
3285
  class: "text-red-600 text-sm mb-2"
3248
- }, ba = { key: 0 }, xa = { key: 1 }, Sa = {
3286
+ }, va = { key: 0 }, _a = { key: 1 }, ka = {
3249
3287
  __name: "SparkResetPasswordView",
3250
3288
  props: {
3251
3289
  logo: {
@@ -3258,31 +3296,31 @@ const {
3258
3296
  }
3259
3297
  },
3260
3298
  setup(e) {
3261
- const t = re(), n = Oe(), s = K(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: u }) => {
3299
+ const t = se(), n = Te(), s = Z(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: c }) => {
3262
3300
  o.value = !0, a.value = "";
3263
3301
  try {
3264
- await v.post(s.state.endpoints.passwordReset, {
3302
+ await k.post(s.state.endpoints.passwordReset, {
3265
3303
  email: n.query.email,
3266
3304
  token: n.query.token,
3267
3305
  password: l,
3268
- password_confirmation: u
3306
+ password_confirmation: c
3269
3307
  }), await t.push(r.loginRoute);
3270
- } catch (c) {
3271
- a.value = c.response?.data?.message || "Failed to reset password.";
3308
+ } catch (u) {
3309
+ a.value = u.response?.data?.message || "Failed to reset password.";
3272
3310
  } finally {
3273
3311
  o.value = !1;
3274
3312
  }
3275
3313
  };
3276
- return (l, u) => {
3277
- const c = U("FormKit");
3278
- return m(), g("div", pa, [
3279
- f("div", ha, [
3280
- r.logo ? (m(), g("img", {
3314
+ return (l, c) => {
3315
+ const u = U("FormKit");
3316
+ return g(), y("div", ya, [
3317
+ f("div", wa, [
3318
+ r.logo ? (g(), y("img", {
3281
3319
  key: 0,
3282
3320
  src: r.logo,
3283
3321
  alt: "Logo",
3284
3322
  class: "h-[23px] w-auto"
3285
- }, null, 8, ma)) : (m(), g("svg", ga, [...u[0] || (u[0] = [
3323
+ }, null, 8, ba)) : (g(), y("svg", xa, [...c[0] || (c[0] = [
3286
3324
  f("path", {
3287
3325
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3288
3326
  fill: "#1C64F2"
@@ -3301,18 +3339,18 @@ const {
3301
3339
  }, null, -1)
3302
3340
  ])]))
3303
3341
  ]),
3304
- f("div", ya, [
3305
- u[1] || (u[1] = f("div", { class: "mb-7" }, [
3342
+ f("div", Sa, [
3343
+ c[1] || (c[1] = f("div", { class: "mb-7" }, [
3306
3344
  f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
3307
3345
  f("p", { class: "text-gray-600" }, " Enter your new password below. ")
3308
3346
  ], -1)),
3309
- C(c, {
3347
+ C(u, {
3310
3348
  type: "form",
3311
3349
  onSubmit: i,
3312
3350
  actions: !1
3313
3351
  }, {
3314
- default: R(() => [
3315
- C(c, {
3352
+ default: A(() => [
3353
+ C(u, {
3316
3354
  label: "New Password",
3317
3355
  name: "password",
3318
3356
  placeholder: "••••••••",
@@ -3320,7 +3358,7 @@ const {
3320
3358
  validation: "required|length:8",
3321
3359
  "outer-class": "max-w-full"
3322
3360
  }),
3323
- C(c, {
3361
+ C(u, {
3324
3362
  label: "Confirm Password",
3325
3363
  name: "password_confirmation",
3326
3364
  placeholder: "••••••••",
@@ -3328,15 +3366,15 @@ const {
3328
3366
  validation: "required|confirm:password",
3329
3367
  "outer-class": "max-w-full"
3330
3368
  }),
3331
- a.value ? (m(), g("div", wa, O(a.value), 1)) : _("", !0),
3332
- C(b(oe), {
3369
+ a.value ? (g(), y("div", Ca, L(a.value), 1)) : R("", !0),
3370
+ C(x(re), {
3333
3371
  type: "submit",
3334
3372
  size: "xl",
3335
3373
  disabled: o.value,
3336
3374
  "button-class": "w-full mb-2"
3337
3375
  }, {
3338
- default: R(() => [
3339
- o.value ? (m(), g("span", xa, "Resetting...")) : (m(), g("span", ba, "Reset password"))
3376
+ default: A(() => [
3377
+ o.value ? (g(), y("span", _a, "Resetting...")) : (g(), y("span", va, "Reset password"))
3340
3378
  ]),
3341
3379
  _: 1
3342
3380
  }, 8, ["disabled"])
@@ -3347,14 +3385,14 @@ const {
3347
3385
  ]);
3348
3386
  };
3349
3387
  }
3350
- }, Ca = { class: "h-full grid place-content-center relative" }, va = { class: "absolute top-8 left-8" }, _a = ["src"], ka = {
3388
+ }, Ra = { class: "h-full grid place-content-center relative" }, Ea = { class: "absolute top-8 left-8" }, Aa = ["src"], $a = {
3351
3389
  key: 1,
3352
3390
  width: "59",
3353
3391
  height: "23",
3354
3392
  viewBox: "0 0 59 23",
3355
3393
  fill: "none",
3356
3394
  xmlns: "http://www.w3.org/2000/svg"
3357
- }, Ra = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Ea = { class: "flex gap-4 justify-center" }, $a = {
3395
+ }, Oa = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, La = { class: "flex gap-4 justify-center" }, Ta = {
3358
3396
  __name: "SparkError403View",
3359
3397
  props: {
3360
3398
  logo: {
@@ -3367,17 +3405,17 @@ const {
3367
3405
  }
3368
3406
  },
3369
3407
  setup(e) {
3370
- const t = re(), n = e, s = () => {
3408
+ const t = se(), n = e, s = () => {
3371
3409
  t.push(n.homeRoute);
3372
3410
  };
3373
- return (r, o) => (m(), g("div", Ca, [
3374
- f("div", va, [
3375
- n.logo ? (m(), g("img", {
3411
+ return (r, o) => (g(), y("div", Ra, [
3412
+ f("div", Ea, [
3413
+ n.logo ? (g(), y("img", {
3376
3414
  key: 0,
3377
3415
  src: n.logo,
3378
3416
  alt: "Logo",
3379
3417
  class: "h-[23px] w-auto"
3380
- }, null, 8, _a)) : (m(), g("svg", ka, [...o[0] || (o[0] = [
3418
+ }, null, 8, Aa)) : (g(), y("svg", $a, [...o[0] || (o[0] = [
3381
3419
  f("path", {
3382
3420
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3383
3421
  fill: "#1C64F2"
@@ -3396,23 +3434,23 @@ const {
3396
3434
  }, null, -1)
3397
3435
  ])]))
3398
3436
  ]),
3399
- f("div", Ra, [
3437
+ f("div", Oa, [
3400
3438
  o[2] || (o[2] = f("div", null, [
3401
3439
  f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
3402
3440
  f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
3403
3441
  f("p", { class: "text-gray-600" }, [
3404
- J(" You don't have permission to access this resource."),
3442
+ K(" You don't have permission to access this resource."),
3405
3443
  f("br"),
3406
- J(" If you believe this is an error, please contact your administrator. ")
3444
+ K(" If you believe this is an error, please contact your administrator. ")
3407
3445
  ])
3408
3446
  ], -1)),
3409
- f("div", Ea, [
3410
- C(b(oe), {
3447
+ f("div", La, [
3448
+ C(x(re), {
3411
3449
  onClick: s,
3412
3450
  size: "lg"
3413
3451
  }, {
3414
- default: R(() => [...o[1] || (o[1] = [
3415
- J(" Go to Home ", -1)
3452
+ default: A(() => [...o[1] || (o[1] = [
3453
+ K(" Go to Home ", -1)
3416
3454
  ])]),
3417
3455
  _: 1
3418
3456
  })
@@ -3420,14 +3458,14 @@ const {
3420
3458
  ])
3421
3459
  ]));
3422
3460
  }
3423
- }, Aa = { class: "h-full grid place-content-center relative" }, La = { class: "absolute top-8 left-8" }, Oa = ["src"], Ta = {
3461
+ }, Ha = { class: "h-full grid place-content-center relative" }, Fa = { class: "absolute top-8 left-8" }, Ba = ["src"], Va = {
3424
3462
  key: 1,
3425
3463
  width: "59",
3426
3464
  height: "23",
3427
3465
  viewBox: "0 0 59 23",
3428
3466
  fill: "none",
3429
3467
  xmlns: "http://www.w3.org/2000/svg"
3430
- }, Ha = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Fa = { class: "flex gap-4 justify-center" }, Ba = {
3468
+ }, Na = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Pa = { class: "flex gap-4 justify-center" }, Ma = {
3431
3469
  __name: "SparkError404View",
3432
3470
  props: {
3433
3471
  logo: {
@@ -3440,17 +3478,17 @@ const {
3440
3478
  }
3441
3479
  },
3442
3480
  setup(e) {
3443
- const t = re(), n = e, s = () => {
3481
+ const t = se(), n = e, s = () => {
3444
3482
  t.push(n.homeRoute);
3445
3483
  };
3446
- return (r, o) => (m(), g("div", Aa, [
3447
- f("div", La, [
3448
- n.logo ? (m(), g("img", {
3484
+ return (r, o) => (g(), y("div", Ha, [
3485
+ f("div", Fa, [
3486
+ n.logo ? (g(), y("img", {
3449
3487
  key: 0,
3450
3488
  src: n.logo,
3451
3489
  alt: "Logo",
3452
3490
  class: "h-[23px] w-auto"
3453
- }, null, 8, Oa)) : (m(), g("svg", Ta, [...o[0] || (o[0] = [
3491
+ }, null, 8, Ba)) : (g(), y("svg", Va, [...o[0] || (o[0] = [
3454
3492
  f("path", {
3455
3493
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3456
3494
  fill: "#1C64F2"
@@ -3469,19 +3507,19 @@ const {
3469
3507
  }, null, -1)
3470
3508
  ])]))
3471
3509
  ]),
3472
- f("div", Ha, [
3510
+ f("div", Na, [
3473
3511
  o[2] || (o[2] = f("div", null, [
3474
3512
  f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
3475
3513
  f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
3476
3514
  f("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
3477
3515
  ], -1)),
3478
- f("div", Fa, [
3479
- C(b(oe), {
3516
+ f("div", Pa, [
3517
+ C(x(re), {
3480
3518
  onClick: s,
3481
3519
  size: "lg"
3482
3520
  }, {
3483
- default: R(() => [...o[1] || (o[1] = [
3484
- J(" Go to Home ", -1)
3521
+ default: A(() => [...o[1] || (o[1] = [
3522
+ K(" Go to Home ", -1)
3485
3523
  ])]),
3486
3524
  _: 1
3487
3525
  })
@@ -3489,14 +3527,14 @@ const {
3489
3527
  ])
3490
3528
  ]));
3491
3529
  }
3492
- }, Va = { class: "h-full grid place-content-center relative" }, Na = { class: "absolute top-8 left-8" }, Pa = ["src"], Ma = {
3530
+ }, Ua = { class: "h-full grid place-content-center relative" }, ja = { class: "absolute top-8 left-8" }, Da = ["src"], Ia = {
3493
3531
  key: 1,
3494
3532
  width: "59",
3495
3533
  height: "23",
3496
3534
  viewBox: "0 0 59 23",
3497
3535
  fill: "none",
3498
3536
  xmlns: "http://www.w3.org/2000/svg"
3499
- }, Ua = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, ja = { class: "text-primary-600 text-7xl font-bold mb-4" }, Da = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Ia = { class: "text-gray-600" }, za = { class: "flex gap-4 justify-center" }, Ri = {
3537
+ }, za = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, qa = { class: "text-primary-600 text-7xl font-bold mb-4" }, Za = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Wa = { class: "text-gray-600" }, Ga = { class: "flex gap-4 justify-center" }, Li = {
3500
3538
  __name: "SparkErrorGeneralView",
3501
3539
  props: {
3502
3540
  logo: {
@@ -3521,17 +3559,17 @@ const {
3521
3559
  }
3522
3560
  },
3523
3561
  setup(e) {
3524
- const t = re(), n = e, s = () => {
3562
+ const t = se(), n = e, s = () => {
3525
3563
  t.push(n.homeRoute);
3526
3564
  };
3527
- return (r, o) => (m(), g("div", Va, [
3528
- f("div", Na, [
3529
- n.logo ? (m(), g("img", {
3565
+ return (r, o) => (g(), y("div", Ua, [
3566
+ f("div", ja, [
3567
+ n.logo ? (g(), y("img", {
3530
3568
  key: 0,
3531
3569
  src: n.logo,
3532
3570
  alt: "Logo",
3533
3571
  class: "h-[23px] w-auto"
3534
- }, null, 8, Pa)) : (m(), g("svg", Ma, [...o[0] || (o[0] = [
3572
+ }, null, 8, Da)) : (g(), y("svg", Ia, [...o[0] || (o[0] = [
3535
3573
  f("path", {
3536
3574
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3537
3575
  fill: "#1C64F2"
@@ -3550,19 +3588,19 @@ const {
3550
3588
  }, null, -1)
3551
3589
  ])]))
3552
3590
  ]),
3553
- f("div", Ua, [
3591
+ f("div", za, [
3554
3592
  f("div", null, [
3555
- f("div", ja, O(n.errorCode || "Error"), 1),
3556
- f("h1", Da, O(n.title || "Something went wrong"), 1),
3557
- f("p", Ia, O(n.message || "An unexpected error occurred. Please try again later."), 1)
3593
+ f("div", qa, L(n.errorCode || "Error"), 1),
3594
+ f("h1", Za, L(n.title || "Something went wrong"), 1),
3595
+ f("p", Wa, L(n.message || "An unexpected error occurred. Please try again later."), 1)
3558
3596
  ]),
3559
- f("div", za, [
3560
- C(b(oe), {
3597
+ f("div", Ga, [
3598
+ C(x(re), {
3561
3599
  onClick: s,
3562
3600
  size: "lg"
3563
3601
  }, {
3564
- default: R(() => [...o[1] || (o[1] = [
3565
- J(" Go to Home ", -1)
3602
+ default: A(() => [...o[1] || (o[1] = [
3603
+ K(" Go to Home ", -1)
3566
3604
  ])]),
3567
3605
  _: 1
3568
3606
  })
@@ -3571,7 +3609,7 @@ const {
3571
3609
  ]));
3572
3610
  }
3573
3611
  };
3574
- function Ei(e = {}) {
3612
+ function Ti(e = {}) {
3575
3613
  const {
3576
3614
  loginPath: t = "/login",
3577
3615
  logoutPath: n = "/logout",
@@ -3584,41 +3622,41 @@ function Ei(e = {}) {
3584
3622
  {
3585
3623
  path: t,
3586
3624
  name: "login",
3587
- component: ta,
3625
+ component: oa,
3588
3626
  props: { logo: o, defaultRedirect: a },
3589
3627
  meta: { auth: !1 }
3590
3628
  },
3591
3629
  {
3592
3630
  path: n,
3593
3631
  name: "logout",
3594
- component: na,
3632
+ component: aa,
3595
3633
  props: { defaultRedirect: t },
3596
3634
  meta: { auth: !1 }
3597
3635
  },
3598
3636
  {
3599
3637
  path: s,
3600
3638
  name: "forgot-password",
3601
- component: fa,
3639
+ component: ga,
3602
3640
  props: { logo: o, loginRoute: t },
3603
3641
  meta: { auth: !1 }
3604
3642
  },
3605
3643
  {
3606
3644
  path: r,
3607
3645
  name: "password-reset",
3608
- component: Sa,
3646
+ component: ka,
3609
3647
  props: { logo: o, loginRoute: t },
3610
3648
  meta: { auth: !1 }
3611
3649
  }
3612
3650
  ];
3613
3651
  }
3614
- function $i(e, t = {}) {
3652
+ function Hi(e, t = {}) {
3615
3653
  const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
3616
3654
  e.beforeEach(async (s, r, o) => {
3617
- const a = K();
3618
- a.state.ready || await a.fetchUser(), qa(s, o, a, n);
3655
+ const a = Z();
3656
+ a.state.ready || await a.fetchUser(), Ja(s, o, a, n);
3619
3657
  });
3620
3658
  }
3621
- function qa(e, t, n, s) {
3659
+ function Ja(e, t, n, s) {
3622
3660
  const r = e.meta.auth !== !1, o = n.check;
3623
3661
  if (n.state.overrideToken && e.path === "/logout") {
3624
3662
  t({ path: s });
@@ -3656,7 +3694,7 @@ function qa(e, t, n, s) {
3656
3694
  t();
3657
3695
  }
3658
3696
  }
3659
- function Ai(e = {}) {
3697
+ function Fi(e = {}) {
3660
3698
  const {
3661
3699
  forbiddenPath: t = "/error/403",
3662
3700
  logo: n = "",
@@ -3665,12 +3703,12 @@ function Ai(e = {}) {
3665
3703
  return {
3666
3704
  path: t,
3667
3705
  name: "error-403",
3668
- component: $a,
3706
+ component: Ta,
3669
3707
  props: { logo: n, homeRoute: s },
3670
3708
  meta: { auth: !1 }
3671
3709
  };
3672
3710
  }
3673
- function Li(e = {}) {
3711
+ function Bi(e = {}) {
3674
3712
  const {
3675
3713
  logo: t = "",
3676
3714
  homeRoute: n = "/dashboard"
@@ -3678,13 +3716,21 @@ function Li(e = {}) {
3678
3716
  return {
3679
3717
  path: "/:pathMatch(.*)*",
3680
3718
  name: "error-404",
3681
- component: Ba,
3719
+ component: Ma,
3682
3720
  props: { logo: t, homeRoute: n },
3683
3721
  meta: { auth: !1 }
3684
3722
  };
3685
3723
  }
3686
- function Za(e = {}) {
3687
- const t = v.create({
3724
+ function Vi(e, t) {
3725
+ e.beforeResolve(async (n) => {
3726
+ if (n.meta.auth !== !1) {
3727
+ const s = Z();
3728
+ s.state.ready && s.check && await t();
3729
+ }
3730
+ });
3731
+ }
3732
+ function Ka(e = {}) {
3733
+ const t = k.create({
3688
3734
  baseURL: e.baseURL || "",
3689
3735
  timeout: e.timeout || 3e4,
3690
3736
  headers: {
@@ -3695,7 +3741,7 @@ function Za(e = {}) {
3695
3741
  return t.interceptors.request.use(
3696
3742
  (n) => {
3697
3743
  try {
3698
- const s = K();
3744
+ const s = Z();
3699
3745
  s.state.overrideToken ? n.headers.Authorization = `Bearer ${s.state.overrideToken}` : s.state.token && (n.headers.Authorization = `Bearer ${s.state.token}`);
3700
3746
  } catch {
3701
3747
  }
@@ -3707,14 +3753,14 @@ function Za(e = {}) {
3707
3753
  async (n) => {
3708
3754
  if (n.response?.status === 401)
3709
3755
  try {
3710
- const s = K();
3756
+ const s = Z();
3711
3757
  await s.logout(), window.location.href = s.state.routes.auth;
3712
3758
  } catch (s) {
3713
3759
  console.error("Error during auto-logout:", s), window.location.href = "/login";
3714
3760
  }
3715
3761
  if (n.response?.status === 403)
3716
3762
  try {
3717
- const s = K();
3763
+ const s = Z();
3718
3764
  window.location.href = s.state.routes.forbidden;
3719
3765
  } catch (s) {
3720
3766
  console.error("Error during 403 redirect:", s), window.location.href = "/error/403";
@@ -3723,51 +3769,56 @@ function Za(e = {}) {
3723
3769
  }
3724
3770
  ), t;
3725
3771
  }
3726
- function Oi(e, t = {}) {
3727
- const n = Za(t);
3728
- return e.provide("axios", n), e.config.globalProperties.$axios = n, n;
3772
+ let ae = null;
3773
+ function Ni(e, t = {}) {
3774
+ return ae = Ka(t), e.provide("axios", ae), e.config.globalProperties.$axios = ae, ae;
3775
+ }
3776
+ function Pi() {
3777
+ if (!ae)
3778
+ throw new Error("Axios instance not initialized. Call setupAxios() first.");
3779
+ return ae;
3729
3780
  }
3730
- const Ti = ge("sparkNav", () => {
3731
- const e = se({
3781
+ const Mi = ge("sparkNav", () => {
3782
+ const e = ne({
3732
3783
  menu: [],
3733
3784
  collapsed: !1,
3734
3785
  hidden: !1
3735
- }), t = re(), n = Oe(), s = (u = []) => {
3736
- e.menu = u;
3737
- }, r = (u, c) => {
3738
- for (const h of u) {
3739
- if (h.href === c) return h;
3740
- if (h.children) {
3741
- const x = r(h.children, c);
3742
- if (x) return x;
3786
+ }), t = se(), n = Te(), s = (c = []) => {
3787
+ e.menu = c;
3788
+ }, r = (c, u) => {
3789
+ for (const m of c) {
3790
+ if (m.href === u) return m;
3791
+ if (m.children) {
3792
+ const w = r(m.children, u);
3793
+ if (w) return w;
3743
3794
  }
3744
3795
  }
3745
3796
  return null;
3746
- }, o = async (u) => {
3747
- if (u) {
3748
- const c = r(e.menu, u);
3749
- if (c && typeof c.action == "function") {
3750
- c.action();
3797
+ }, o = async (c) => {
3798
+ if (c) {
3799
+ const u = r(e.menu, c);
3800
+ if (u && typeof u.action == "function") {
3801
+ u.action();
3751
3802
  return;
3752
3803
  }
3753
- await t.push(u);
3804
+ await t.push(c);
3754
3805
  }
3755
3806
  }, a = () => {
3756
3807
  e.collapsed = !e.collapsed;
3757
3808
  }, i = () => {
3758
3809
  e.hidden = !e.hidden;
3759
3810
  }, l = () => {
3760
- const u = n.name || n.path.replace("/", "");
3761
- if (u) {
3762
- const c = (h) => {
3763
- h.forEach((x) => {
3764
- x.current = x.href === u, x.children && c(x.children);
3811
+ const c = n.name || n.path.replace("/", "");
3812
+ if (c) {
3813
+ const u = (m) => {
3814
+ m.forEach((w) => {
3815
+ w.current = w.href === c, w.children && u(w.children);
3765
3816
  });
3766
3817
  };
3767
- c(e.menu);
3818
+ u(e.menu);
3768
3819
  }
3769
3820
  };
3770
- return un(
3821
+ return fn(
3771
3822
  () => n.path,
3772
3823
  () => {
3773
3824
  l();
@@ -3784,38 +3835,41 @@ const Ti = ge("sparkNav", () => {
3784
3835
  });
3785
3836
  export {
3786
3837
  B as Icons,
3787
- ni as SparkAlert,
3788
- ps as SparkAppSelector,
3789
- As as SparkBrandSelector,
3790
- oe as SparkButton,
3791
- si as SparkButtonGroup,
3792
- ri as SparkCard,
3793
- ai as SparkDefaultContainer,
3794
- $a as SparkError403View,
3795
- Ba as SparkError404View,
3796
- Ri as SparkErrorGeneralView,
3797
- fa as SparkForgotPasswordView,
3798
- ta as SparkLoginView,
3799
- na as SparkLogoutView,
3800
- Ns as SparkModalContainer,
3801
- oi as SparkModalDialog,
3802
- ot as SparkOverlay,
3803
- ii as SparkPublicContainer,
3804
- Sa as SparkResetPasswordView,
3805
- ei as addIcons,
3806
- Ai as create403Route,
3807
- Li as create404Route,
3808
- Ei as createAuthRoutes,
3809
- Za as createAxiosInstance,
3810
- $i as setupAuthGuards,
3811
- Oi as setupAxios,
3812
- ti as setupFontAwesome,
3838
+ ai as SparkAlert,
3839
+ ms as SparkAppSelector,
3840
+ Ls as SparkBrandSelector,
3841
+ re as SparkButton,
3842
+ ii as SparkButtonGroup,
3843
+ li as SparkCard,
3844
+ ui as SparkDefaultContainer,
3845
+ Ta as SparkError403View,
3846
+ Ma as SparkError404View,
3847
+ Li as SparkErrorGeneralView,
3848
+ ga as SparkForgotPasswordView,
3849
+ oa as SparkLoginView,
3850
+ aa as SparkLogoutView,
3851
+ Ms as SparkModalContainer,
3852
+ ci as SparkModalDialog,
3853
+ at as SparkOverlay,
3854
+ di as SparkPublicContainer,
3855
+ ka as SparkResetPasswordView,
3856
+ ri as addIcons,
3857
+ Fi as create403Route,
3858
+ Bi as create404Route,
3859
+ Ti as createAuthRoutes,
3860
+ Ka as createAxiosInstance,
3861
+ Oi as createBootstrapService,
3862
+ Pi as getAxiosInstance,
3863
+ Hi as setupAuthGuards,
3864
+ Ni as setupAxios,
3865
+ Vi as setupBootstrapGuard,
3866
+ oi as setupFontAwesome,
3813
3867
  pe as sparkModalService,
3814
- Q as sparkOverlayService,
3868
+ _e as sparkOverlayService,
3815
3869
  Lt as useSparkAppSelectorStore,
3816
- Ot as useSparkAppStore,
3817
- K as useSparkAuthStore,
3818
- Tt as useSparkBrandFilterStore,
3819
- Ti as useSparkNavStore,
3820
- at as useSparkOverlay
3870
+ Tt as useSparkAppStore,
3871
+ Z as useSparkAuthStore,
3872
+ Ht as useSparkBrandFilterStore,
3873
+ Mi as useSparkNavStore,
3874
+ it as useSparkOverlay
3821
3875
  };