@xy-planning-network/trees 0.7.1 → 0.7.3-dev

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/trees.es.js CHANGED
@@ -1,16 +1,16 @@
1
1
  var Mi = Object.defineProperty;
2
2
  var Pi = (t, n, e) => n in t ? Mi(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
3
  var Gn = (t, n, e) => (Pi(t, typeof n != "symbol" ? n + "" : n, e), e);
4
- import { ref as T, cloneVNode as Ai, h as dt, watchEffect as he, provide as xe, inject as ve, defineComponent as F, onUnmounted as Qe, Teleport as Ri, reactive as Li, onUpdated as Ra, computed as L, unref as w, onMounted as $e, nextTick as ct, toRaw as kt, watch as rt, openBlock as x, createBlock as B, createVNode as S, shallowRef as La, getCurrentScope as Ii, onScopeDispose as Ni, shallowReadonly as Ct, toRef as yt, withCtx as R, Transition as Dn, createElementVNode as h, normalizeStyle as Ia, createElementBlock as k, Fragment as Z, renderList as oe, normalizeClass as U, resolveDynamicComponent as Ke, createCommentVNode as W, createTextVNode as Te, toDisplayString as z, renderSlot as le, mergeProps as Ve, normalizeProps as Na, useAttrs as et, withModifiers as ft, TransitionGroup as Fi, withDirectives as lr, vShow as Zr, isRef as ji, isVNode as Bi, vModelText as Vi, resolveComponent as Hi, Comment as Ui, Text as Yi, useSlots as Fa } from "vue";
4
+ import { ref as T, cloneVNode as Ai, h as dt, watchEffect as he, provide as xe, inject as ve, defineComponent as F, onUnmounted as Qe, Teleport as Ri, reactive as Li, onUpdated as Ra, computed as L, unref as w, onMounted as $e, nextTick as ct, toRaw as kt, watch as rt, openBlock as x, createBlock as B, createVNode as S, shallowRef as La, getCurrentScope as Ii, onScopeDispose as Ni, shallowReadonly as Ct, toRef as yt, withCtx as R, Transition as En, createElementVNode as h, normalizeStyle as Ia, createElementBlock as k, Fragment as Z, renderList as oe, normalizeClass as U, resolveDynamicComponent as Ke, createCommentVNode as W, createTextVNode as Te, toDisplayString as z, renderSlot as le, mergeProps as Ve, normalizeProps as Na, useAttrs as et, withModifiers as ft, TransitionGroup as Fi, withDirectives as lr, vShow as Zr, isRef as ji, isVNode as Bi, vModelText as Vi, resolveComponent as Hi, Comment as Ui, Text as Yi, useSlots as Fa } from "vue";
5
5
  function ja(t, n) {
6
6
  return function() {
7
7
  return t.apply(n, arguments);
8
8
  };
9
9
  }
10
- const { toString: Wi } = Object.prototype, { getPrototypeOf: wr } = Object, En = ((t) => (n) => {
10
+ const { toString: Wi } = Object.prototype, { getPrototypeOf: wr } = Object, kn = ((t) => (n) => {
11
11
  const e = Wi.call(n);
12
12
  return t[e] || (t[e] = e.slice(8, -1).toLowerCase());
13
- })(/* @__PURE__ */ Object.create(null)), tt = (t) => (t = t.toLowerCase(), (n) => En(n) === t), kn = (t) => (n) => typeof n === t, { isArray: It } = Array, zt = kn("undefined");
13
+ })(/* @__PURE__ */ Object.create(null)), tt = (t) => (t = t.toLowerCase(), (n) => kn(n) === t), $n = (t) => (n) => typeof n === t, { isArray: It } = Array, zt = $n("undefined");
14
14
  function zi(t) {
15
15
  return t !== null && !zt(t) && t.constructor !== null && !zt(t.constructor) && je(t.constructor.isBuffer) && t.constructor.isBuffer(t);
16
16
  }
@@ -19,14 +19,14 @@ function Ki(t) {
19
19
  let n;
20
20
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(t) : n = t && t.buffer && Ba(t.buffer), n;
21
21
  }
22
- const qi = kn("string"), je = kn("function"), Va = kn("number"), $n = (t) => t !== null && typeof t == "object", Gi = (t) => t === !0 || t === !1, pn = (t) => {
23
- if (En(t) !== "object")
22
+ const qi = $n("string"), je = $n("function"), Va = $n("number"), Sn = (t) => t !== null && typeof t == "object", Gi = (t) => t === !0 || t === !1, mn = (t) => {
23
+ if (kn(t) !== "object")
24
24
  return !1;
25
25
  const n = wr(t);
26
26
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
27
- }, Ji = tt("Date"), Xi = tt("File"), Zi = tt("Blob"), Qi = tt("FileList"), es = (t) => $n(t) && je(t.pipe), ts = (t) => {
27
+ }, Ji = tt("Date"), Xi = tt("File"), Zi = tt("Blob"), Qi = tt("FileList"), es = (t) => Sn(t) && je(t.pipe), ts = (t) => {
28
28
  let n;
29
- return t && (typeof FormData == "function" && t instanceof FormData || je(t.append) && ((n = En(t)) === "formdata" || // detect form-data instance
29
+ return t && (typeof FormData == "function" && t instanceof FormData || je(t.append) && ((n = kn(t)) === "formdata" || // detect form-data instance
30
30
  n === "object" && je(t.toString) && t.toString() === "[object FormData]"));
31
31
  }, ns = tt("URLSearchParams"), rs = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
32
32
  function Zt(t, n, { allOwnKeys: e = !1 } = {}) {
@@ -56,7 +56,7 @@ const Ua = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? sel
56
56
  function ur() {
57
57
  const { caseless: t } = Ya(this) && this || {}, n = {}, e = (r, a) => {
58
58
  const o = t && Ha(n, a) || a;
59
- pn(n[o]) && pn(r) ? n[o] = ur(n[o], r) : pn(r) ? n[o] = ur({}, r) : It(r) ? n[o] = r.slice() : n[o] = r;
59
+ mn(n[o]) && mn(r) ? n[o] = ur(n[o], r) : mn(r) ? n[o] = ur({}, r) : It(r) ? n[o] = r.slice() : n[o] = r;
60
60
  };
61
61
  for (let r = 0, a = arguments.length; r < a; r++)
62
62
  arguments[r] && Zt(arguments[r], e);
@@ -158,7 +158,7 @@ function xs(t) {
158
158
  }
159
159
  const Cs = (t) => {
160
160
  const n = new Array(10), e = (r, a) => {
161
- if ($n(r)) {
161
+ if (Sn(r)) {
162
162
  if (n.indexOf(r) >= 0)
163
163
  return;
164
164
  if (!("toJSON" in r)) {
@@ -173,7 +173,7 @@ const Cs = (t) => {
173
173
  return r;
174
174
  };
175
175
  return e(t, 0);
176
- }, _s = tt("AsyncFunction"), Ds = (t) => t && ($n(t) || je(t)) && je(t.then) && je(t.catch), D = {
176
+ }, _s = tt("AsyncFunction"), Ds = (t) => t && (Sn(t) || je(t)) && je(t.then) && je(t.catch), D = {
177
177
  isArray: It,
178
178
  isArrayBuffer: Ba,
179
179
  isBuffer: zi,
@@ -182,8 +182,8 @@ const Cs = (t) => {
182
182
  isString: qi,
183
183
  isNumber: Va,
184
184
  isBoolean: Gi,
185
- isObject: $n,
186
- isPlainObject: pn,
185
+ isObject: Sn,
186
+ isPlainObject: mn,
187
187
  isUndefined: zt,
188
188
  isDate: Ji,
189
189
  isFile: Xi,
@@ -201,7 +201,7 @@ const Cs = (t) => {
201
201
  stripBOM: os,
202
202
  inherits: is,
203
203
  toFlatObject: ss,
204
- kindOf: En,
204
+ kindOf: kn,
205
205
  kindOfTest: tt,
206
206
  endsWith: ls,
207
207
  toArray: us,
@@ -295,7 +295,7 @@ function ks(t) {
295
295
  const $s = D.toFlatObject(D, {}, null, function(n) {
296
296
  return /^is[A-Z]/.test(n);
297
297
  });
298
- function Sn(t, n, e) {
298
+ function Tn(t, n, e) {
299
299
  if (!D.isObject(t))
300
300
  throw new TypeError("target must be an object");
301
301
  n = n || new FormData(), e = D.toFlatObject(e, {
@@ -372,7 +372,7 @@ function na(t) {
372
372
  });
373
373
  }
374
374
  function xr(t, n) {
375
- this._pairs = [], t && Sn(t, this, n);
375
+ this._pairs = [], t && Tn(t, this, n);
376
376
  }
377
377
  const Ja = xr.prototype;
378
378
  Ja.append = function(n, e) {
@@ -474,7 +474,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
474
474
  protocols: ["http", "https", "file", "blob", "url", "data"]
475
475
  };
476
476
  function Ls(t, n) {
477
- return Sn(t, new Ue.classes.URLSearchParams(), Object.assign({
477
+ return Tn(t, new Ue.classes.URLSearchParams(), Object.assign({
478
478
  visitor: function(e, r, a, o) {
479
479
  return Ue.isNode && D.isBuffer(e) ? (this.append(r, e.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
480
480
  }
@@ -535,7 +535,7 @@ const Cr = {
535
535
  return Ls(n, this.formSerializer).toString();
536
536
  if ((s = D.isFileList(n)) || r.indexOf("multipart/form-data") > -1) {
537
537
  const l = this.env && this.env.FormData;
538
- return Sn(
538
+ return Tn(
539
539
  s ? { "files[]": n } : n,
540
540
  l && new l(),
541
541
  this.formSerializer
@@ -612,8 +612,8 @@ const _r = Cr, js = D.toObjectSet([
612
612
  function Vt(t) {
613
613
  return t && String(t).trim().toLowerCase();
614
614
  }
615
- function mn(t) {
616
- return t === !1 || t == null ? t : D.isArray(t) ? t.map(mn) : String(t);
615
+ function hn(t) {
616
+ return t === !1 || t == null ? t : D.isArray(t) ? t.map(hn) : String(t);
617
617
  }
618
618
  function Vs(t) {
619
619
  const n = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -647,7 +647,7 @@ function Ys(t, n) {
647
647
  });
648
648
  });
649
649
  }
650
- class Tn {
650
+ class On {
651
651
  constructor(n) {
652
652
  n && this.set(n);
653
653
  }
@@ -658,7 +658,7 @@ class Tn {
658
658
  if (!d)
659
659
  throw new Error("header name must be a non-empty string");
660
660
  const p = D.findKey(a, d);
661
- (!p || a[p] === void 0 || u === !0 || u === void 0 && a[p] !== !1) && (a[p || l] = mn(s));
661
+ (!p || a[p] === void 0 || u === !0 || u === void 0 && a[p] !== !1) && (a[p || l] = hn(s));
662
662
  }
663
663
  const i = (s, l) => D.forEach(s, (u, d) => o(u, d, l));
664
664
  return D.isPlainObject(n) || n instanceof this.constructor ? i(n, e) : D.isString(n) && (n = n.trim()) && !Hs(n) ? i(Bs(n), e) : n != null && o(e, n, r), this;
@@ -712,11 +712,11 @@ class Tn {
712
712
  return D.forEach(this, (a, o) => {
713
713
  const i = D.findKey(r, o);
714
714
  if (i) {
715
- e[i] = mn(a), delete e[o];
715
+ e[i] = hn(a), delete e[o];
716
716
  return;
717
717
  }
718
718
  const s = n ? Us(o) : String(o).trim();
719
- s !== o && delete e[o], e[s] = mn(a), r[s] = !0;
719
+ s !== o && delete e[o], e[s] = hn(a), r[s] = !0;
720
720
  }), this;
721
721
  }
722
722
  concat(...n) {
@@ -756,8 +756,8 @@ class Tn {
756
756
  return D.isArray(n) ? n.forEach(o) : o(n), this;
757
757
  }
758
758
  }
759
- Tn.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
760
- D.reduceDescriptors(Tn.prototype, ({ value: t }, n) => {
759
+ On.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
760
+ D.reduceDescriptors(On.prototype, ({ value: t }, n) => {
761
761
  let e = n[0].toUpperCase() + n.slice(1);
762
762
  return {
763
763
  get: () => t,
@@ -766,8 +766,8 @@ D.reduceDescriptors(Tn.prototype, ({ value: t }, n) => {
766
766
  }
767
767
  };
768
768
  });
769
- D.freezeMethods(Tn);
770
- const at = Tn;
769
+ D.freezeMethods(On);
770
+ const at = On;
771
771
  function Zn(t, n) {
772
772
  const e = this || _r, r = n || e, a = at.from(r.headers);
773
773
  let o = r.data;
@@ -970,11 +970,11 @@ const Zs = typeof XMLHttpRequest < "u", Qs = Zs && function(t) {
970
970
  }
971
971
  u.send(a || null);
972
972
  });
973
- }, hn = {
973
+ }, vn = {
974
974
  http: Es,
975
975
  xhr: Qs
976
976
  };
977
- D.forEach(hn, (t, n) => {
977
+ D.forEach(vn, (t, n) => {
978
978
  if (t) {
979
979
  try {
980
980
  Object.defineProperty(t, "name", { value: n });
@@ -988,20 +988,20 @@ const no = {
988
988
  t = D.isArray(t) ? t : [t];
989
989
  const { length: n } = t;
990
990
  let e, r;
991
- for (let a = 0; a < n && (e = t[a], !(r = D.isString(e) ? hn[e.toLowerCase()] : e)); a++)
991
+ for (let a = 0; a < n && (e = t[a], !(r = D.isString(e) ? vn[e.toLowerCase()] : e)); a++)
992
992
  ;
993
993
  if (!r)
994
994
  throw r === !1 ? new J(
995
995
  `Adapter ${e} is not supported by the environment`,
996
996
  "ERR_NOT_SUPPORT"
997
997
  ) : new Error(
998
- D.hasOwnProp(hn, e) ? `Adapter '${e}' is not available in the build` : `Unknown adapter '${e}'`
998
+ D.hasOwnProp(vn, e) ? `Adapter '${e}' is not available in the build` : `Unknown adapter '${e}'`
999
999
  );
1000
1000
  if (!D.isFunction(r))
1001
1001
  throw new TypeError("adapter is not a function");
1002
1002
  return r;
1003
1003
  },
1004
- adapters: hn
1004
+ adapters: vn
1005
1005
  };
1006
1006
  function Qn(t) {
1007
1007
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
@@ -1137,7 +1137,7 @@ const cr = {
1137
1137
  assertOptions: el,
1138
1138
  validators: Dr
1139
1139
  }, st = cr.validators;
1140
- class bn {
1140
+ class yn {
1141
1141
  constructor(n) {
1142
1142
  this.defaults = n, this.interceptors = {
1143
1143
  request: new ra(),
@@ -1218,7 +1218,7 @@ class bn {
1218
1218
  }
1219
1219
  }
1220
1220
  D.forEach(["delete", "get", "head", "options"], function(n) {
1221
- bn.prototype[n] = function(e, r) {
1221
+ yn.prototype[n] = function(e, r) {
1222
1222
  return this.request(Mt(r || {}, {
1223
1223
  method: n,
1224
1224
  url: e,
@@ -1239,9 +1239,9 @@ D.forEach(["post", "put", "patch"], function(n) {
1239
1239
  }));
1240
1240
  };
1241
1241
  }
1242
- bn.prototype[n] = e(), bn.prototype[n + "Form"] = e(!0);
1242
+ yn.prototype[n] = e(), yn.prototype[n + "Form"] = e(!0);
1243
1243
  });
1244
- const vn = bn;
1244
+ const gn = yn;
1245
1245
  class Er {
1246
1246
  constructor(n) {
1247
1247
  if (typeof n != "function")
@@ -1389,18 +1389,18 @@ Object.entries(fr).forEach(([t, n]) => {
1389
1389
  });
1390
1390
  const al = fr;
1391
1391
  function ao(t) {
1392
- const n = new vn(t), e = ja(vn.prototype.request, n);
1393
- return D.extend(e, vn.prototype, n, { allOwnKeys: !0 }), D.extend(e, n, null, { allOwnKeys: !0 }), e.create = function(a) {
1392
+ const n = new gn(t), e = ja(gn.prototype.request, n);
1393
+ return D.extend(e, gn.prototype, n, { allOwnKeys: !0 }), D.extend(e, n, null, { allOwnKeys: !0 }), e.create = function(a) {
1394
1394
  return ao(Mt(t, a));
1395
1395
  }, e;
1396
1396
  }
1397
1397
  const fe = ao(_r);
1398
- fe.Axios = vn;
1398
+ fe.Axios = gn;
1399
1399
  fe.CanceledError = Qt;
1400
1400
  fe.CancelToken = tl;
1401
1401
  fe.isCancel = eo;
1402
1402
  fe.VERSION = ro;
1403
- fe.toFormData = Sn;
1403
+ fe.toFormData = Tn;
1404
1404
  fe.AxiosError = J;
1405
1405
  fe.Cancel = fe.CanceledError;
1406
1406
  fe.all = function(n) {
@@ -1415,7 +1415,7 @@ fe.getAdapter = no.getAdapter;
1415
1415
  fe.HttpStatusCode = al;
1416
1416
  fe.default = fe;
1417
1417
  const pr = fe, oo = "HttpError", io = "HttpErrorCanceled";
1418
- class gn extends Error {
1418
+ class bn extends Error {
1419
1419
  constructor(e, r, a, o) {
1420
1420
  super(e || "");
1421
1421
  /**
@@ -1480,12 +1480,12 @@ const Dt = (t, n) => {
1480
1480
  }, 200);
1481
1481
  return lo({ ...t, ...n }).then((a) => a.data).catch((a) => {
1482
1482
  var o, i;
1483
- throw pr.isAxiosError(a) ? new gn(
1483
+ throw pr.isAxiosError(a) ? new bn(
1484
1484
  a.message,
1485
1485
  (o = a.response) == null ? void 0 : o.status,
1486
1486
  (i = a.response) == null ? void 0 : i.data,
1487
1487
  pr.isCancel(a) ? io : oo
1488
- ) : a instanceof Error ? new gn(a.message, 0) : new gn("An unknown error has occurred.", 0);
1488
+ ) : a instanceof Error ? new bn(a.message, 0) : new bn("An unknown error has occurred.", 0);
1489
1489
  }).finally(() => {
1490
1490
  e.skipLoader !== !0 && ua.hide(), window.clearTimeout(r);
1491
1491
  });
@@ -1512,7 +1512,7 @@ const Dt = (t, n) => {
1512
1512
  e || {}
1513
1513
  );
1514
1514
  }
1515
- }, sl = (t) => t instanceof gn, ll = (t) => sl(t) && t.name === io;
1515
+ }, sl = (t) => t instanceof bn, ll = (t) => sl(t) && t.name === io;
1516
1516
  function ne() {
1517
1517
  return ne = Object.assign || function(t) {
1518
1518
  for (var n = 1; n < arguments.length; n++) {
@@ -1590,13 +1590,13 @@ var Re;
1590
1590
  function ue(t) {
1591
1591
  var n = t.visible, e = n === void 0 ? !0 : n, r = t.features, a = r === void 0 ? Se.None : r, o = Ge(t, ["visible", "features"]);
1592
1592
  if (e || a & Se.Static && o.props.static)
1593
- return ln(o);
1593
+ return un(o);
1594
1594
  if (a & Se.RenderStrategy) {
1595
1595
  var i, s, l = (i = o.props.unmount) == null || i ? Re.Unmount : Re.Hidden;
1596
1596
  return Oe(l, (s = {}, s[Re.Unmount] = function() {
1597
1597
  return null;
1598
1598
  }, s[Re.Hidden] = function() {
1599
- return ln(ne({}, o, {
1599
+ return un(ne({}, o, {
1600
1600
  props: ne({}, o.props, {
1601
1601
  hidden: !0,
1602
1602
  style: {
@@ -1606,9 +1606,9 @@ function ue(t) {
1606
1606
  }));
1607
1607
  }, s));
1608
1608
  }
1609
- return ln(o);
1609
+ return un(o);
1610
1610
  }
1611
- function ln(t) {
1611
+ function un(t) {
1612
1612
  var n = t.props, e = t.attrs, r = t.slots, a = t.slot, o = t.name, i = dl(n, ["unmount", "static"]), s = i.as, l = Ge(i, ["as"]), u = r.default == null ? void 0 : r.default(a);
1613
1613
  if (s === "template") {
1614
1614
  if (Object.keys(l).length > 0 || Object.keys(e).length > 0) {
@@ -1818,11 +1818,11 @@ var Le;
1818
1818
  (function(t) {
1819
1819
  t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow";
1820
1820
  })(Le || (Le = {}));
1821
- var yn;
1821
+ var wn;
1822
1822
  (function(t) {
1823
1823
  t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next";
1824
- })(yn || (yn = {}));
1825
- function wn(t) {
1824
+ })(wn || (wn = {}));
1825
+ function xn(t) {
1826
1826
  return t === void 0 && (t = document.body), t == null ? [] : Array.from(t.querySelectorAll(hr));
1827
1827
  }
1828
1828
  var $t;
@@ -1848,11 +1848,11 @@ function Ht(t) {
1848
1848
  });
1849
1849
  }
1850
1850
  function Ye(t, n) {
1851
- var e = Array.isArray(t) ? t : wn(t), r = document.activeElement, a = function() {
1851
+ var e = Array.isArray(t) ? t : xn(t), r = document.activeElement, a = function() {
1852
1852
  if (n & (te.First | te.Next))
1853
- return yn.Next;
1853
+ return wn.Next;
1854
1854
  if (n & (te.Previous | te.Last))
1855
- return yn.Previous;
1855
+ return wn.Previous;
1856
1856
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
1857
1857
  }(), o = function() {
1858
1858
  if (n & te.First)
@@ -2062,7 +2062,7 @@ function Cl() {
2062
2062
  function Nt() {
2063
2063
  return ve(go, null);
2064
2064
  }
2065
- function On(t) {
2065
+ function Mn(t) {
2066
2066
  xe(go, t);
2067
2067
  }
2068
2068
  var De;
@@ -2078,7 +2078,7 @@ function Kt(t) {
2078
2078
  }
2079
2079
  return n;
2080
2080
  }
2081
- var un = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Mn = /* @__PURE__ */ F({
2081
+ var dn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Pn = /* @__PURE__ */ F({
2082
2082
  name: "Dialog",
2083
2083
  inheritAttrs: !1,
2084
2084
  props: {
@@ -2096,7 +2096,7 @@ var un = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Mn = /* @__PURE__ */ F({
2096
2096
  },
2097
2097
  open: {
2098
2098
  type: [Boolean, String],
2099
- default: un
2099
+ default: dn
2100
2100
  },
2101
2101
  initialFocus: {
2102
2102
  type: Object,
@@ -2146,16 +2146,16 @@ var un = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Mn = /* @__PURE__ */ F({
2146
2146
  },
2147
2147
  setup: function(n, e) {
2148
2148
  var r = e.emit, a = T(/* @__PURE__ */ new Set()), o = Nt(), i = L(function() {
2149
- if (n.open === un && o !== null) {
2149
+ if (n.open === dn && o !== null) {
2150
2150
  var E;
2151
2151
  return Oe(o.value, (E = {}, E[me.Open] = !0, E[me.Closed] = !1, E));
2152
2152
  }
2153
2153
  return n.open;
2154
- }), s = n.open !== un || o !== null;
2154
+ }), s = n.open !== dn || o !== null;
2155
2155
  if (!s)
2156
2156
  throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
2157
2157
  if (typeof i.value != "boolean")
2158
- throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: " + (i.value === un ? void 0 : n.open));
2158
+ throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: " + (i.value === dn ? void 0 : n.open));
2159
2159
  var l = L(function() {
2160
2160
  return n.open ? De.Open : De.Closed;
2161
2161
  }), u = L(function() {
@@ -2238,7 +2238,7 @@ var un = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Mn = /* @__PURE__ */ F({
2238
2238
  }
2239
2239
  };
2240
2240
  }
2241
- }), Pn = /* @__PURE__ */ F({
2241
+ }), An = /* @__PURE__ */ F({
2242
2242
  name: "DialogOverlay",
2243
2243
  props: {
2244
2244
  as: {
@@ -2312,7 +2312,7 @@ function va(t, n) {
2312
2312
  if (typeof e == "string" && e.toLowerCase() === "button")
2313
2313
  return "button";
2314
2314
  }
2315
- function An(t, n) {
2315
+ function Rn(t, n) {
2316
2316
  var e = T(va(t.value.type, t.value.as));
2317
2317
  return $e(function() {
2318
2318
  e.value = va(t.value.type, t.value.as);
@@ -2372,7 +2372,7 @@ var Dl = /* @__PURE__ */ F({
2372
2372
  v == null || v.focus();
2373
2373
  }
2374
2374
  };
2375
- return xe(yo, d), On(L(function() {
2375
+ return xe(yo, d), Mn(L(function() {
2376
2376
  var p;
2377
2377
  return Oe(s.value, (p = {}, p[ge.Open] = me.Open, p[ge.Closed] = me.Closed, p));
2378
2378
  })), function() {
@@ -2436,7 +2436,7 @@ var Dl = /* @__PURE__ */ F({
2436
2436
  isWithinPanel: i,
2437
2437
  id: a.buttonId,
2438
2438
  el: s,
2439
- type: An(L(function() {
2439
+ type: Rn(L(function() {
2440
2440
  return {
2441
2441
  as: n.as,
2442
2442
  type: r.type
@@ -2674,7 +2674,7 @@ var Tr = /* @__PURE__ */ F({
2674
2674
  o.value === we.Open && ((v = A(i)) != null && v.contains(_) || ((g = A(s)) != null && g.contains(_) || p.closeMenu(), !(E !== document.body && (E != null && E.contains(_))) && (m.defaultPrevented || (y = A(i)) == null || y.focus({
2675
2675
  preventScroll: !0
2676
2676
  }))));
2677
- }), xe(Co, p), On(L(function() {
2677
+ }), xe(Co, p), Mn(L(function() {
2678
2678
  var m;
2679
2679
  return Oe(o.value, (m = {}, m[we.Open] = me.Open, m[we.Closed] = me.Closed, m));
2680
2680
  })), function() {
@@ -2771,7 +2771,7 @@ var Tr = /* @__PURE__ */ F({
2771
2771
  return {
2772
2772
  id: o,
2773
2773
  el: a.buttonRef,
2774
- type: An(L(function() {
2774
+ type: Rn(L(function() {
2775
2775
  return {
2776
2776
  as: n.as,
2777
2777
  type: r.type
@@ -3031,7 +3031,7 @@ var ko = /* @__PURE__ */ F({
3031
3031
  E == null || E.focus();
3032
3032
  }
3033
3033
  };
3034
- xe(_o, d), On(L(function() {
3034
+ xe(_o, d), Mn(L(function() {
3035
3035
  var y;
3036
3036
  return Oe(s.value, (y = {}, y[ee.Open] = me.Open, y[ee.Closed] = me.Closed, y));
3037
3037
  }));
@@ -3120,7 +3120,7 @@ var ko = /* @__PURE__ */ F({
3120
3120
  }), {
3121
3121
  isWithinPanel: l,
3122
3122
  el: p,
3123
- type: An(L(function() {
3123
+ type: Rn(L(function() {
3124
3124
  return {
3125
3125
  as: n.as,
3126
3126
  type: r.type
@@ -3157,7 +3157,7 @@ var ko = /* @__PURE__ */ F({
3157
3157
  var _, E;
3158
3158
  if (!d.value || (_ = A(a.button)) != null && _.contains(d.value) || (E = A(a.panel)) != null && E.contains(d.value))
3159
3159
  return;
3160
- var M = wn(), P = M.indexOf(d.value), Q = M.indexOf(A(a.button));
3160
+ var M = xn(), P = M.indexOf(d.value), Q = M.indexOf(A(a.button));
3161
3161
  if (Q > P)
3162
3162
  return;
3163
3163
  v.preventDefault(), v.stopPropagation(), Ye(A(a.panel), te.Last);
@@ -3173,7 +3173,7 @@ var ko = /* @__PURE__ */ F({
3173
3173
  case V.Tab:
3174
3174
  if (!d.value || (g = A(a.button)) != null && g.contains(d.value) || (y = A(a.panel)) != null && y.contains(d.value))
3175
3175
  return;
3176
- var _ = wn(), E = _.indexOf(d.value), M = _.indexOf(A(a.button));
3176
+ var _ = xn(), E = _.indexOf(d.value), M = _.indexOf(A(a.button));
3177
3177
  if (M > E)
3178
3178
  return;
3179
3179
  v.preventDefault(), v.stopPropagation(), Ye(A(a.panel), te.Last);
@@ -3252,7 +3252,7 @@ var ko = /* @__PURE__ */ F({
3252
3252
  } else if (l === Le.Overflow) {
3253
3253
  if (!A(r.button))
3254
3254
  return;
3255
- var d = wn(), p = d.indexOf(A(r.button)), m = d.splice(p + 1).filter(function(v) {
3255
+ var d = xn(), p = d.indexOf(A(r.button)), m = d.splice(p + 1).filter(function(v) {
3256
3256
  var g;
3257
3257
  return !((g = A(r.panel)) != null && g.contains(v));
3258
3258
  });
@@ -3650,7 +3650,7 @@ var Il = /* @__PURE__ */ F({
3650
3650
  return {
3651
3651
  id: i,
3652
3652
  el: u,
3653
- type: An(L(function() {
3653
+ type: Rn(L(function() {
3654
3654
  return {
3655
3655
  as: n.as,
3656
3656
  type: a.type
@@ -3732,7 +3732,7 @@ function nr(t) {
3732
3732
  r[a - 1] = arguments[a];
3733
3733
  t && r.length > 0 && (n = t.classList).add.apply(n, r);
3734
3734
  }
3735
- function dn(t) {
3735
+ function cn(t) {
3736
3736
  for (var n, e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), a = 1; a < e; a++)
3737
3737
  r[a - 1] = arguments[a];
3738
3738
  t && r.length > 0 && (n = t.classList).remove.apply(n, r);
@@ -3762,12 +3762,12 @@ function Bl(t, n) {
3762
3762
  function ba(t, n, e, r, a, o) {
3763
3763
  var i = Po(), s = o !== void 0 ? jl(o) : function() {
3764
3764
  };
3765
- return dn.apply(void 0, [t].concat(a)), nr.apply(void 0, [t].concat(n, e)), i.nextFrame(function() {
3766
- dn.apply(void 0, [t].concat(e)), nr.apply(void 0, [t].concat(r)), i.add(Bl(t, function(l) {
3767
- return dn.apply(void 0, [t].concat(r, n)), nr.apply(void 0, [t].concat(a)), s(l);
3765
+ return cn.apply(void 0, [t].concat(a)), nr.apply(void 0, [t].concat(n, e)), i.nextFrame(function() {
3766
+ cn.apply(void 0, [t].concat(e)), nr.apply(void 0, [t].concat(r)), i.add(Bl(t, function(l) {
3767
+ return cn.apply(void 0, [t].concat(r, n)), nr.apply(void 0, [t].concat(a)), s(l);
3768
3768
  }));
3769
3769
  }), i.add(function() {
3770
- return dn.apply(void 0, [t].concat(n, e, r, a));
3770
+ return cn.apply(void 0, [t].concat(n, e, r, a));
3771
3771
  }), i.add(function() {
3772
3772
  return s(pt.Cancelled);
3773
3773
  }), i.dispose;
@@ -3797,8 +3797,8 @@ function Ul() {
3797
3797
  return t;
3798
3798
  }
3799
3799
  var Rr = /* @__PURE__ */ Symbol("NestingContext");
3800
- function Rn(t) {
3801
- return "children" in t ? Rn(t.children) : t.value.filter(function(n) {
3800
+ function Ln(t) {
3801
+ return "children" in t ? Ln(t.children) : t.value.filter(function(n) {
3802
3802
  var e = n.state;
3803
3803
  return e === ie.Visible;
3804
3804
  }).length > 0;
@@ -3821,7 +3821,7 @@ function Ao(t) {
3821
3821
  n.value.splice(l, 1);
3822
3822
  }, s[Re.Hidden] = function() {
3823
3823
  n.value[l].state = ie.Hidden;
3824
- }, s)), !Rn(n) && e.value && (t == null || t()));
3824
+ }, s)), !Ln(n) && e.value && (t == null || t()));
3825
3825
  }
3826
3826
  function a(o) {
3827
3827
  var i = n.value.find(function(s) {
@@ -3979,7 +3979,7 @@ var Ro = Se.RenderStrategy, ot = /* @__PURE__ */ F({
3979
3979
  !pe || !(pe instanceof HTMLElement) || re || (y.value = !0, l.value && r("beforeEnter"), l.value || r("beforeLeave"), Y(l.value ? ba(pe, E, M, P, Q, function(be) {
3980
3980
  y.value = !1, be === pt.Finished && r("afterEnter");
3981
3981
  }) : ba(pe, q, G, N, Q, function(be) {
3982
- y.value = !1, be === pt.Finished && (Rn(_) || (o.value = ie.Hidden, m(g), r("afterLeave")));
3982
+ y.value = !1, be === pt.Finished && (Ln(_) || (o.value = ie.Hidden, m(g), r("afterLeave")));
3983
3983
  })));
3984
3984
  }
3985
3985
  return $e(function() {
@@ -3988,7 +3988,7 @@ var Ro = Se.RenderStrategy, ot = /* @__PURE__ */ F({
3988
3988
  }, {
3989
3989
  immediate: !0
3990
3990
  });
3991
- }), xe(Rr, _), On(L(function() {
3991
+ }), xe(Rr, _), Mn(L(function() {
3992
3992
  var Y;
3993
3993
  return Oe(o.value, (Y = {}, Y[ie.Visible] = me.Open, Y[ie.Hidden] = me.Closed, Y));
3994
3994
  })), {
@@ -4116,7 +4116,7 @@ var Ro = Se.RenderStrategy, ot = /* @__PURE__ */ F({
4116
4116
  };
4117
4117
  return $e(function() {
4118
4118
  he(function() {
4119
- i.value = !1, r.value ? a.value = ie.Visible : Rn(o) || (a.value = ie.Hidden);
4119
+ i.value = !1, r.value ? a.value = ie.Visible : Ln(o) || (a.value = ie.Hidden);
4120
4120
  });
4121
4121
  }), xe(Rr, o), xe(Ar, s), {
4122
4122
  state: a,
@@ -4196,12 +4196,12 @@ function Io(t) {
4196
4196
  function Rt(t) {
4197
4197
  return t.split("-")[0];
4198
4198
  }
4199
- function Ln(t) {
4199
+ function In(t) {
4200
4200
  return ["top", "bottom"].includes(Rt(t)) ? "x" : "y";
4201
4201
  }
4202
4202
  function ya(t, n, e) {
4203
4203
  let { reference: r, floating: a } = t;
4204
- const o = r.x + r.width / 2 - a.width / 2, i = r.y + r.height / 2 - a.height / 2, s = Ln(n), l = Io(s), u = r[l] / 2 - a[l] / 2, d = s === "x";
4204
+ const o = r.x + r.width / 2 - a.width / 2, i = r.y + r.height / 2 - a.height / 2, s = In(n), l = Io(s), u = r[l] / 2 - a[l] / 2, d = s === "x";
4205
4205
  let p;
4206
4206
  switch (Rt(n)) {
4207
4207
  case "top":
@@ -4237,7 +4237,7 @@ const ql = async (t, n, e) => {
4237
4237
  }
4238
4238
  return { x: d, y: p, placement: m, strategy: a, middlewareData: v };
4239
4239
  };
4240
- function In(t, n) {
4240
+ function Nn(t, n) {
4241
4241
  return typeof t == "function" ? t(n) : t;
4242
4242
  }
4243
4243
  function Gl(t) {
@@ -4245,13 +4245,13 @@ function Gl(t) {
4245
4245
  return { top: 0, right: 0, bottom: 0, left: 0, ...n };
4246
4246
  }(t) : { top: t, right: t, bottom: t, left: t };
4247
4247
  }
4248
- function xn(t) {
4248
+ function Cn(t) {
4249
4249
  return { ...t, top: t.y, left: t.x, right: t.x + t.width, bottom: t.y + t.height };
4250
4250
  }
4251
4251
  async function No(t, n) {
4252
4252
  var e;
4253
4253
  n === void 0 && (n = {});
4254
- const { x: r, y: a, platform: o, rects: i, elements: s, strategy: l } = t, { boundary: u = "clippingAncestors", rootBoundary: d = "viewport", elementContext: p = "floating", altBoundary: m = !1, padding: v = 0 } = In(n, t), g = Gl(v), y = s[m ? p === "floating" ? "reference" : "floating" : p], _ = xn(await o.getClippingRect({ element: (e = await (o.isElement == null ? void 0 : o.isElement(y))) == null || e ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)), boundary: u, rootBoundary: d, strategy: l })), E = p === "floating" ? { ...i.floating, x: r, y: a } : i.reference, M = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), P = await (o.isElement == null ? void 0 : o.isElement(M)) && await (o.getScale == null ? void 0 : o.getScale(M)) || { x: 1, y: 1 }, Q = xn(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: E, offsetParent: M, strategy: l }) : E);
4254
+ const { x: r, y: a, platform: o, rects: i, elements: s, strategy: l } = t, { boundary: u = "clippingAncestors", rootBoundary: d = "viewport", elementContext: p = "floating", altBoundary: m = !1, padding: v = 0 } = Nn(n, t), g = Gl(v), y = s[m ? p === "floating" ? "reference" : "floating" : p], _ = Cn(await o.getClippingRect({ element: (e = await (o.isElement == null ? void 0 : o.isElement(y))) == null || e ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)), boundary: u, rootBoundary: d, strategy: l })), E = p === "floating" ? { ...i.floating, x: r, y: a } : i.reference, M = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), P = await (o.isElement == null ? void 0 : o.isElement(M)) && await (o.getScale == null ? void 0 : o.getScale(M)) || { x: 1, y: 1 }, Q = Cn(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: E, offsetParent: M, strategy: l }) : E);
4255
4255
  return { top: (_.top - Q.top + g.top) / P.y, bottom: (Q.bottom - _.bottom + g.bottom) / P.y, left: (_.left - Q.left + g.left) / P.x, right: (Q.right - _.right + g.right) / P.x };
4256
4256
  }
4257
4257
  const Jl = Math.min, Xl = Math.max;
@@ -4264,7 +4264,7 @@ function Ca(t) {
4264
4264
  }
4265
4265
  function eu(t, n, e) {
4266
4266
  e === void 0 && (e = !1);
4267
- const r = ut(t), a = Ln(t), o = Io(a);
4267
+ const r = ut(t), a = In(t), o = Io(a);
4268
4268
  let i = a === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
4269
4269
  return n.reference[o] > n.floating[o] && (i = Ca(i)), { main: i, cross: Ca(i) };
4270
4270
  }
@@ -4275,7 +4275,7 @@ function nu(t) {
4275
4275
  const ru = function(t) {
4276
4276
  return t === void 0 && (t = {}), { name: "autoPlacement", options: t, async fn(n) {
4277
4277
  var e, r, a;
4278
- const { rects: o, middlewareData: i, placement: s, platform: l, elements: u } = n, { crossAxis: d = !1, alignment: p, allowedPlacements: m = xa, autoAlignment: v = !0, ...g } = In(t, n), y = p !== void 0 || m === xa ? function(re, pe, be) {
4278
+ const { rects: o, middlewareData: i, placement: s, platform: l, elements: u } = n, { crossAxis: d = !1, alignment: p, allowedPlacements: m = xa, autoAlignment: v = !0, ...g } = Nn(t, n), y = p !== void 0 || m === xa ? function(re, pe, be) {
4279
4279
  return (re ? [...be.filter((Ee) => ut(Ee) === re), ...be.filter((Ee) => ut(Ee) !== re)] : be.filter((Ee) => Rt(Ee) === Ee)).filter((Ee) => !re || ut(Ee) === re || !!pe && nu(Ee) !== Ee);
4280
4280
  }(p || null, v, m) : m, _ = await No(n, g), E = ((e = i.autoPlacement) == null ? void 0 : e.index) || 0, M = y[E];
4281
4281
  if (M == null)
@@ -4295,7 +4295,7 @@ const ru = function(t) {
4295
4295
  }, au = function(t) {
4296
4296
  return t === void 0 && (t = 0), { name: "offset", options: t, async fn(n) {
4297
4297
  const { x: e, y: r } = n, a = await async function(o, i) {
4298
- const { placement: s, platform: l, elements: u } = o, d = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), p = Rt(s), m = ut(s), v = Ln(s) === "x", g = ["left", "top"].includes(p) ? -1 : 1, y = d && v ? -1 : 1, _ = In(i, o);
4298
+ const { placement: s, platform: l, elements: u } = o, d = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), p = Rt(s), m = ut(s), v = In(s) === "x", g = ["left", "top"].includes(p) ? -1 : 1, y = d && v ? -1 : 1, _ = Nn(i, o);
4299
4299
  let { mainAxis: E, crossAxis: M, alignmentAxis: P } = typeof _ == "number" ? { mainAxis: _, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ..._ };
4300
4300
  return m && typeof P == "number" && (M = m === "end" ? -1 * P : P), v ? { x: M * y, y: E * g } : { x: E * g, y: M * y };
4301
4301
  }(n, t);
@@ -4310,7 +4310,7 @@ const iu = function(t) {
4310
4310
  const { x: e, y: r, placement: a } = n, { mainAxis: o = !0, crossAxis: i = !1, limiter: s = { fn: (_) => {
4311
4311
  let { x: E, y: M } = _;
4312
4312
  return { x: E, y: M };
4313
- } }, ...l } = In(t, n), u = { x: e, y: r }, d = await No(n, l), p = Ln(Rt(a)), m = ou(p);
4313
+ } }, ...l } = Nn(t, n), u = { x: e, y: r }, d = await No(n, l), p = In(Rt(a)), m = ou(p);
4314
4314
  let v = u[p], g = u[m];
4315
4315
  if (o) {
4316
4316
  const _ = p === "y" ? "bottom" : "right";
@@ -4360,14 +4360,14 @@ function vr(t) {
4360
4360
  function Lr() {
4361
4361
  return !(typeof CSS > "u" || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
4362
4362
  }
4363
- function Nn(t) {
4363
+ function Fn(t) {
4364
4364
  return ["html", "body", "#document"].includes(ht(t));
4365
4365
  }
4366
- const Da = Math.min, Ut = Math.max, Cn = Math.round;
4366
+ const Da = Math.min, Ut = Math.max, _n = Math.round;
4367
4367
  function jo(t) {
4368
4368
  const n = We(t);
4369
4369
  let e = parseFloat(n.width) || 0, r = parseFloat(n.height) || 0;
4370
- const a = qe(t), o = a ? t.offsetWidth : e, i = a ? t.offsetHeight : r, s = Cn(e) !== o || Cn(r) !== i;
4370
+ const a = qe(t), o = a ? t.offsetWidth : e, i = a ? t.offsetHeight : r, s = _n(e) !== o || _n(r) !== i;
4371
4371
  return s && (e = o, r = i), { width: e, height: r, fallback: s };
4372
4372
  }
4373
4373
  function Bo(t) {
@@ -4379,7 +4379,7 @@ function St(t) {
4379
4379
  if (!qe(n))
4380
4380
  return Vo;
4381
4381
  const e = n.getBoundingClientRect(), { width: r, height: a, fallback: o } = jo(n);
4382
- let i = (o ? Cn(e.width) : e.width) / r, s = (o ? Cn(e.height) : e.height) / a;
4382
+ let i = (o ? _n(e.width) : e.width) / r, s = (o ? _n(e.height) : e.height) / a;
4383
4383
  return i && Number.isFinite(i) || (i = 1), s && Number.isFinite(s) || (s = 1), { x: i, y: s };
4384
4384
  }
4385
4385
  const Ea = { x: 0, y: 0 };
@@ -4405,16 +4405,16 @@ function wt(t, n, e, r) {
4405
4405
  _.x += (g.clientLeft + parseFloat(E.paddingLeft)) * y.x, _.y += (g.clientTop + parseFloat(E.paddingTop)) * y.y, l *= y.x, u *= y.y, d *= y.x, p *= y.y, l += _.x, u += _.y, g = Be(g).frameElement;
4406
4406
  }
4407
4407
  }
4408
- return xn({ width: d, height: p, x: l, y: u });
4408
+ return Cn({ width: d, height: p, x: l, y: u });
4409
4409
  }
4410
4410
  function mt(t) {
4411
4411
  return ((Fo(t) ? t.ownerDocument : t.document) || window.document).documentElement;
4412
4412
  }
4413
- function Fn(t) {
4413
+ function jn(t) {
4414
4414
  return Ie(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
4415
4415
  }
4416
4416
  function Uo(t) {
4417
- return wt(mt(t)).left + Fn(t).scrollLeft;
4417
+ return wt(mt(t)).left + jn(t).scrollLeft;
4418
4418
  }
4419
4419
  function Lt(t) {
4420
4420
  if (ht(t) === "html")
@@ -4424,7 +4424,7 @@ function Lt(t) {
4424
4424
  }
4425
4425
  function Yo(t) {
4426
4426
  const n = Lt(t);
4427
- return Nn(n) ? n.ownerDocument.body : qe(n) && Jt(n) ? n : Yo(n);
4427
+ return Fn(n) ? n.ownerDocument.body : qe(n) && Jt(n) ? n : Yo(n);
4428
4428
  }
4429
4429
  function Yt(t, n) {
4430
4430
  var e;
@@ -4447,7 +4447,7 @@ function ka(t, n, e) {
4447
4447
  }(t, e);
4448
4448
  else if (n === "document")
4449
4449
  r = function(a) {
4450
- const o = mt(a), i = Fn(a), s = a.ownerDocument.body, l = Ut(o.scrollWidth, o.clientWidth, s.scrollWidth, s.clientWidth), u = Ut(o.scrollHeight, o.clientHeight, s.scrollHeight, s.clientHeight);
4450
+ const o = mt(a), i = jn(a), s = a.ownerDocument.body, l = Ut(o.scrollWidth, o.clientWidth, s.scrollWidth, s.clientWidth), u = Ut(o.scrollHeight, o.clientHeight, s.scrollHeight, s.clientHeight);
4451
4451
  let d = -i.scrollLeft + Uo(a);
4452
4452
  const p = -i.scrollTop;
4453
4453
  return We(s).direction === "rtl" && (d += Ut(o.clientWidth, s.clientWidth) - l), { width: l, height: u, x: d, y: p };
@@ -4461,11 +4461,11 @@ function ka(t, n, e) {
4461
4461
  const a = Ho(t);
4462
4462
  r = { ...n, x: n.x - a.x, y: n.y - a.y };
4463
4463
  }
4464
- return xn(r);
4464
+ return Cn(r);
4465
4465
  }
4466
4466
  function Wo(t, n) {
4467
4467
  const e = Lt(t);
4468
- return !(e === n || !Ie(e) || Nn(e)) && (We(e).position === "fixed" || Wo(e, n));
4468
+ return !(e === n || !Ie(e) || Fn(e)) && (We(e).position === "fixed" || Wo(e, n));
4469
4469
  }
4470
4470
  function $a(t, n) {
4471
4471
  return qe(t) && We(t).position !== "fixed" ? n ? n(t) : t.offsetParent : null;
@@ -4479,7 +4479,7 @@ function Sa(t, n) {
4479
4479
  r = $a(r, n);
4480
4480
  return r && (ht(r) === "html" || ht(r) === "body" && We(r).position === "static" && !vr(r)) ? e : r || function(a) {
4481
4481
  let o = Lt(a);
4482
- for (; qe(o) && !Nn(o); ) {
4482
+ for (; qe(o) && !Fn(o); ) {
4483
4483
  if (vr(o))
4484
4484
  return o;
4485
4485
  o = Lt(o);
@@ -4492,7 +4492,7 @@ function lu(t, n, e) {
4492
4492
  let s = { scrollLeft: 0, scrollTop: 0 };
4493
4493
  const l = { x: 0, y: 0 };
4494
4494
  if (r || !r && !o)
4495
- if ((ht(n) !== "body" || Jt(a)) && (s = Fn(n)), qe(n)) {
4495
+ if ((ht(n) !== "body" || Jt(a)) && (s = jn(n)), qe(n)) {
4496
4496
  const u = wt(n, !0, o, n);
4497
4497
  l.x = u.x + n.clientLeft, l.y = u.y + n.clientTop;
4498
4498
  } else
@@ -4508,7 +4508,7 @@ const uu = { getClippingRect: function(t) {
4508
4508
  let m = Yt(u).filter((_) => Ie(_) && ht(_) !== "body"), v = null;
4509
4509
  const g = We(u).position === "fixed";
4510
4510
  let y = g ? Lt(u) : u;
4511
- for (; Ie(y) && !Nn(y); ) {
4511
+ for (; Ie(y) && !Fn(y); ) {
4512
4512
  const _ = We(y), E = vr(y);
4513
4513
  E || _.position !== "fixed" || (v = null), (g ? !E && !v : !E && _.position === "static" && v && ["absolute", "fixed"].includes(v.position) || Jt(y) && !E && Wo(u, y)) ? m = m.filter((M) => M !== y) : v = _, y = Lt(y);
4514
4514
  }
@@ -4525,7 +4525,7 @@ const uu = { getClippingRect: function(t) {
4525
4525
  return n;
4526
4526
  let i = { scrollLeft: 0, scrollTop: 0 }, s = { x: 1, y: 1 };
4527
4527
  const l = { x: 0, y: 0 };
4528
- if ((a || !a && r !== "fixed") && ((ht(e) !== "body" || Jt(o)) && (i = Fn(e)), qe(e))) {
4528
+ if ((a || !a && r !== "fixed") && ((ht(e) !== "body" || Jt(o)) && (i = jn(e)), qe(e))) {
4529
4529
  const u = wt(e);
4530
4530
  s = St(e), l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
4531
4531
  }
@@ -4683,7 +4683,7 @@ const cu = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open options", -1),
4683
4683
  ]),
4684
4684
  _: 1
4685
4685
  }, 8, ["disabled"]),
4686
- S(Dn, {
4686
+ S(En, {
4687
4687
  "enter-active-class": "transition ease-out duration-100",
4688
4688
  "enter-from-class": "transform opacity-0 scale-95",
4689
4689
  "enter-to-class": "transform opacity-100 scale-100",
@@ -4786,7 +4786,7 @@ const cu = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open options", -1),
4786
4786
  show: r.modelValue
4787
4787
  }, {
4788
4788
  default: R(() => [
4789
- S(w(Mn), {
4789
+ S(w(Pn), {
4790
4790
  as: "div",
4791
4791
  static: "",
4792
4792
  class: "fixed z-30 inset-0 overflow-y-auto",
@@ -4805,7 +4805,7 @@ const cu = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open options", -1),
4805
4805
  "leave-to": "opacity-0"
4806
4806
  }, {
4807
4807
  default: R(() => [
4808
- S(w(Pn), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
4808
+ S(w(An), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
4809
4809
  ]),
4810
4810
  _: 1
4811
4811
  }),
@@ -5021,7 +5021,7 @@ function X(t, n, e) {
5021
5021
  const r = window.document.createElement(t);
5022
5022
  return n = n || "", e = e || "", r.className = n, e !== void 0 && (r.textContent = e), r;
5023
5023
  }
5024
- function cn(t) {
5024
+ function fn(t) {
5025
5025
  for (; t.firstChild; )
5026
5026
  t.removeChild(t.firstChild);
5027
5027
  }
@@ -5031,7 +5031,7 @@ function Go(t, n) {
5031
5031
  if (t.parentNode)
5032
5032
  return Go(t.parentNode, n);
5033
5033
  }
5034
- function fn(t, n) {
5034
+ function pn(t, n) {
5035
5035
  const e = X("div", "numInputWrapper"), r = X("input", "numInput " + t), a = X("span", "arrowUp"), o = X("span", "arrowDown");
5036
5036
  if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? r.type = "number" : (r.type = "text", r.pattern = "\\d*"), n !== void 0)
5037
5037
  for (const i in n)
@@ -5046,7 +5046,7 @@ function Pe(t) {
5046
5046
  }
5047
5047
  }
5048
5048
  const or = () => {
5049
- }, _n = (t, n, e) => e.months[n ? "shorthand" : "longhand"][t], $u = {
5049
+ }, Dn = (t, n, e) => e.months[n ? "shorthand" : "longhand"][t], $u = {
5050
5050
  D: or,
5051
5051
  F: function(t, n, e) {
5052
5052
  t.setMonth(e.months.longhand.indexOf(n));
@@ -5135,7 +5135,7 @@ const or = () => {
5135
5135
  return n.weekdays.shorthand[Wt.w(t, n, e)];
5136
5136
  },
5137
5137
  F: function(t, n, e) {
5138
- return _n(Wt.n(t, n, e) - 1, !1, n);
5138
+ return Dn(Wt.n(t, n, e) - 1, !1, n);
5139
5139
  },
5140
5140
  G: function(t, n, e) {
5141
5141
  return ke(Wt.h(t, n, e));
@@ -5146,7 +5146,7 @@ const or = () => {
5146
5146
  },
5147
5147
  K: (t, n) => n.amPM[Fe(t.getHours() > 11)],
5148
5148
  M: function(t, n) {
5149
- return _n(t.getMonth(), !0, n);
5149
+ return Dn(t.getMonth(), !0, n);
5150
5150
  },
5151
5151
  S: (t) => ke(t.getSeconds()),
5152
5152
  U: (t) => t.getTime() / 1e3,
@@ -5244,7 +5244,7 @@ function Mu(t, n) {
5244
5244
  config: Object.assign(Object.assign({}, Tt), de.defaultConfig),
5245
5245
  l10n: Xt
5246
5246
  };
5247
- e.parseDate = br({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = g, e._setHoursFromDate = p, e._positionCalendar = rn, e.changeMonth = Hn, e.changeYear = tn, e.clear = si, e.close = li, e._createElement = X, e.destroy = ui, e.isEnabled = vt, e.jumpToDate = E, e.open = pi, e.redraw = Kr, e.set = gi, e.setDate = bi, e.toggle = Ci;
5247
+ e.parseDate = br({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = g, e._setHoursFromDate = p, e._positionCalendar = an, e.changeMonth = Hn, e.changeYear = nn, e.clear = si, e.close = li, e._createElement = X, e.destroy = ui, e.isEnabled = vt, e.jumpToDate = E, e.open = pi, e.redraw = Kr, e.set = gi, e.setDate = bi, e.toggle = Ci;
5248
5248
  function r() {
5249
5249
  e.utils = {
5250
5250
  getDaysInMonth(c = e.currentMonth, f = e.currentYear) {
@@ -5255,7 +5255,7 @@ function Mu(t, n) {
5255
5255
  function a() {
5256
5256
  e.element = e.input = t, e.isOpen = !1, mi(), zr(), wi(), yi(), r(), e.isMobile || Q(), _(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && p(e.config.noCalendar ? e.latestSelectedDateObj : void 0), it(!1)), i();
5257
5257
  const c = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
5258
- !e.isMobile && c && rn(), se("onReady");
5258
+ !e.isMobile && c && an(), se("onReady");
5259
5259
  }
5260
5260
  function o(c) {
5261
5261
  return c.bind(e);
@@ -5315,7 +5315,7 @@ function Mu(t, n) {
5315
5315
  }
5316
5316
  function v(c) {
5317
5317
  const f = Pe(c), b = parseInt(f.value) + (c.delta || 0);
5318
- (b / 1e3 > 1 || c.key === "Enter" && !/[^\d]/.test(b.toString())) && tn(b);
5318
+ (b / 1e3 > 1 || c.key === "Enter" && !/[^\d]/.test(b.toString())) && nn(b);
5319
5319
  }
5320
5320
  function g(c, f, b, C) {
5321
5321
  if (f instanceof Array)
@@ -5412,7 +5412,7 @@ function Mu(t, n) {
5412
5412
  e.changeMonth(O), Y(N(O), 0);
5413
5413
  }
5414
5414
  function Y(c, f) {
5415
- const b = nn(document.activeElement || document.body), C = c !== void 0 ? c : b ? document.activeElement : e.selectedDateElem !== void 0 && nn(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && nn(e.todayDateElem) ? e.todayDateElem : N(f > 0 ? 1 : -1);
5415
+ const b = rn(document.activeElement || document.body), C = c !== void 0 ? c : b ? document.activeElement : e.selectedDateElem !== void 0 && rn(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && rn(e.todayDateElem) ? e.todayDateElem : N(f > 0 ? 1 : -1);
5416
5416
  C === void 0 ? e._input.focus() : b ? Me(C, f) : G(C);
5417
5417
  }
5418
5418
  function re(c, f) {
@@ -5430,7 +5430,7 @@ function Mu(t, n) {
5430
5430
  function pe() {
5431
5431
  if (e.daysContainer === void 0)
5432
5432
  return;
5433
- cn(e.daysContainer), e.weekNumbers && cn(e.weekNumbers);
5433
+ fn(e.daysContainer), e.weekNumbers && fn(e.weekNumbers);
5434
5434
  const c = document.createDocumentFragment();
5435
5435
  for (let f = 0; f < e.config.showMonths; f++) {
5436
5436
  const b = new Date(e.currentYear, e.currentMonth, 1);
@@ -5449,7 +5449,7 @@ function Mu(t, n) {
5449
5449
  if (!c(f))
5450
5450
  continue;
5451
5451
  const b = X("option", "flatpickr-monthDropdown-month");
5452
- b.value = new Date(e.currentYear, f).getMonth().toString(), b.textContent = _n(f, e.config.shorthandCurrentMonth, e.l10n), b.tabIndex = -1, e.currentMonth === f && (b.selected = !0), e.monthsDropdownContainer.appendChild(b);
5452
+ b.value = new Date(e.currentYear, f).getMonth().toString(), b.textContent = Dn(f, e.config.shorthandCurrentMonth, e.l10n), b.tabIndex = -1, e.currentMonth === f && (b.selected = !0), e.monthsDropdownContainer.appendChild(b);
5453
5453
  }
5454
5454
  }
5455
5455
  function Ee() {
@@ -5459,7 +5459,7 @@ function Mu(t, n) {
5459
5459
  const I = Pe(j), H = parseInt(I.value, 10);
5460
5460
  e.changeMonth(H - e.currentMonth), se("onMonthChange");
5461
5461
  }), be(), b = e.monthsDropdownContainer);
5462
- const C = fn("cur-year", { tabindex: "-1" }), O = C.getElementsByTagName("input")[0];
5462
+ const C = pn("cur-year", { tabindex: "-1" }), O = C.getElementsByTagName("input")[0];
5463
5463
  O.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && O.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (O.setAttribute("max", e.config.maxDate.getFullYear().toString()), O.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
5464
5464
  const $ = X("div", "flatpickr-current-month");
5465
5465
  return $.appendChild(b), $.appendChild(C), f.appendChild($), c.appendChild(f), {
@@ -5469,7 +5469,7 @@ function Mu(t, n) {
5469
5469
  };
5470
5470
  }
5471
5471
  function Vr() {
5472
- cn(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
5472
+ fn(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
5473
5473
  for (let c = e.config.showMonths; c--; ) {
5474
5474
  const f = Ee();
5475
5475
  e.yearElements.push(f.yearElement), e.monthElements.push(f.monthElement), e.monthNav.appendChild(f.container);
@@ -5487,28 +5487,28 @@ function Mu(t, n) {
5487
5487
  set(c) {
5488
5488
  e.__hideNextMonthArrow !== c && (_e(e.nextMonthNav, "flatpickr-disabled", c), e.__hideNextMonthArrow = c);
5489
5489
  }
5490
- }), e.currentYearElement = e.yearElements[0], on(), e.monthNav;
5490
+ }), e.currentYearElement = e.yearElements[0], sn(), e.monthNav;
5491
5491
  }
5492
5492
  function oi() {
5493
5493
  e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
5494
5494
  const c = ir(e.config);
5495
5495
  e.timeContainer = X("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
5496
- const f = X("span", "flatpickr-time-separator", ":"), b = fn("flatpickr-hour", {
5496
+ const f = X("span", "flatpickr-time-separator", ":"), b = pn("flatpickr-hour", {
5497
5497
  "aria-label": e.l10n.hourAriaLabel
5498
5498
  });
5499
5499
  e.hourElement = b.getElementsByTagName("input")[0];
5500
- const C = fn("flatpickr-minute", {
5500
+ const C = pn("flatpickr-minute", {
5501
5501
  "aria-label": e.l10n.minuteAriaLabel
5502
5502
  });
5503
5503
  if (e.minuteElement = C.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = ke(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? c.hours : u(c.hours)), e.minuteElement.value = ke(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : c.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(b), e.timeContainer.appendChild(f), e.timeContainer.appendChild(C), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
5504
5504
  e.timeContainer.classList.add("hasSeconds");
5505
- const O = fn("flatpickr-second");
5505
+ const O = pn("flatpickr-second");
5506
5506
  e.secondElement = O.getElementsByTagName("input")[0], e.secondElement.value = ke(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : c.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(X("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(O);
5507
5507
  }
5508
5508
  return e.config.time_24hr || (e.amPM = X("span", "flatpickr-am-pm", e.l10n.amPM[Fe((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
5509
5509
  }
5510
5510
  function Hr() {
5511
- e.weekdayContainer ? cn(e.weekdayContainer) : e.weekdayContainer = X("div", "flatpickr-weekdays");
5511
+ e.weekdayContainer ? fn(e.weekdayContainer) : e.weekdayContainer = X("div", "flatpickr-weekdays");
5512
5512
  for (let c = e.config.showMonths; c--; ) {
5513
5513
  const f = X("div", "flatpickr-weekdaycontainer");
5514
5514
  e.weekdayContainer.appendChild(f);
@@ -5543,7 +5543,7 @@ function Mu(t, n) {
5543
5543
  }
5544
5544
  function Hn(c, f = !0) {
5545
5545
  const b = f ? c : c - e.currentMonth;
5546
- b < 0 && e._hidePrevMonthArrow === !0 || b > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += b, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, se("onYearChange"), be()), pe(), se("onMonthChange"), on());
5546
+ b < 0 && e._hidePrevMonthArrow === !0 || b > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += b, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, se("onYearChange"), be()), pe(), se("onMonthChange"), sn());
5547
5547
  }
5548
5548
  function si(c = !0, f = !0) {
5549
5549
  if (e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, f === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
@@ -5617,7 +5617,7 @@ function Mu(t, n) {
5617
5617
  O && $ && (e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && s(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && (e.clear(!1), e.redraw()));
5618
5618
  }
5619
5619
  }
5620
- function tn(c) {
5620
+ function nn(c) {
5621
5621
  if (!c || e.config.minDate && c < e.config.minDate.getFullYear() || e.config.maxDate && c > e.config.maxDate.getFullYear())
5622
5622
  return;
5623
5623
  const f = c, b = e.currentYear !== f;
@@ -5646,7 +5646,7 @@ function Mu(t, n) {
5646
5646
  }
5647
5647
  return !O;
5648
5648
  }
5649
- function nn(c) {
5649
+ function rn(c) {
5650
5650
  return e.daysContainer !== void 0 ? c.className.indexOf("hidden") === -1 && c.className.indexOf("flatpickr-disabled") === -1 && e.daysContainer.contains(c) : !1;
5651
5651
  }
5652
5652
  function di(c) {
@@ -5674,7 +5674,7 @@ function Mu(t, n) {
5674
5674
  case 37:
5675
5675
  case 39:
5676
5676
  if (!j && !b) {
5677
- if (c.preventDefault(), e.daysContainer !== void 0 && (C === !1 || document.activeElement && nn(document.activeElement))) {
5677
+ if (c.preventDefault(), e.daysContainer !== void 0 && (C === !1 || document.activeElement && rn(document.activeElement))) {
5678
5678
  const H = c.keyCode === 39 ? 1 : -1;
5679
5679
  c.ctrlKey ? (c.stopPropagation(), Hn(H), Y(N(1), 0)) : Y(void 0, H);
5680
5680
  }
@@ -5685,7 +5685,7 @@ function Mu(t, n) {
5685
5685
  case 40:
5686
5686
  c.preventDefault();
5687
5687
  const I = c.keyCode === 40 ? 1 : -1;
5688
- e.daysContainer && f.$i !== void 0 || f === e.input || f === e.altInput ? c.ctrlKey ? (c.stopPropagation(), tn(e.currentYear - I), Y(N(1), 0)) : j || Y(void 0, I * 7) : f === e.currentYearElement ? tn(e.currentYear - I) : e.config.enableTime && (!j && e.hourElement && e.hourElement.focus(), s(c), e._debouncedChange());
5688
+ e.daysContainer && f.$i !== void 0 || f === e.input || f === e.altInput ? c.ctrlKey ? (c.stopPropagation(), nn(e.currentYear - I), Y(N(1), 0)) : j || Y(void 0, I * 7) : f === e.currentYearElement ? nn(e.currentYear - I) : e.config.enableTime && (!j && e.hourElement && e.hourElement.focus(), s(c), e._debouncedChange());
5689
5689
  break;
5690
5690
  case 9:
5691
5691
  if (j) {
@@ -5742,7 +5742,7 @@ function Mu(t, n) {
5742
5742
  }
5743
5743
  }
5744
5744
  function fi() {
5745
- e.isOpen && !e.config.static && !e.config.inline && rn();
5745
+ e.isOpen && !e.config.static && !e.config.inline && an();
5746
5746
  }
5747
5747
  function pi(c, f = e._positionElement) {
5748
5748
  if (e.isMobile === !0) {
@@ -5756,7 +5756,7 @@ function Mu(t, n) {
5756
5756
  } else if (e._input.disabled || e.config.inline)
5757
5757
  return;
5758
5758
  const b = e.isOpen;
5759
- e.isOpen = !0, b || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"), se("onOpen"), rn(f)), e.config.enableTime === !0 && e.config.noCalendar === !0 && e.config.allowInput === !1 && (c === void 0 || !e.timeContainer.contains(c.relatedTarget)) && setTimeout(() => e.hourElement.select(), 50);
5759
+ e.isOpen = !0, b || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"), se("onOpen"), an(f)), e.config.enableTime === !0 && e.config.noCalendar === !0 && e.config.allowInput === !1 && (c === void 0 || !e.timeContainer.contains(c.relatedTarget)) && setTimeout(() => e.hourElement.select(), 50);
5760
5760
  }
5761
5761
  function Yr(c) {
5762
5762
  return (f) => {
@@ -5836,7 +5836,7 @@ function Mu(t, n) {
5836
5836
  function zr() {
5837
5837
  typeof e.config.locale != "object" && typeof de.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)), e.l10n = Object.assign(Object.assign({}, de.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? de.l10ns[e.config.locale] : void 0), gr.K = `(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`, Object.assign(Object.assign({}, n), JSON.parse(JSON.stringify(t.dataset || {}))).time_24hr === void 0 && de.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = Jo(e), e.parseDate = br({ config: e.config, l10n: e.l10n });
5838
5838
  }
5839
- function rn(c) {
5839
+ function an(c) {
5840
5840
  if (typeof e.config.position == "function")
5841
5841
  return void e.config.position(e, c);
5842
5842
  if (e.calendarContainer === void 0)
@@ -5845,8 +5845,8 @@ function Mu(t, n) {
5845
5845
  const f = c || e._positionElement, b = Array.prototype.reduce.call(e.calendarContainer.children, (Bt, qn) => Bt + qn.offsetHeight, 0), C = e.calendarContainer.offsetWidth, O = e.config.position.split(" "), $ = O[0], j = O.length > 1 ? O[1] : null, I = f.getBoundingClientRect(), H = window.innerHeight - I.bottom, K = $ === "above" || $ !== "below" && H < b && I.top > b, ae = window.pageYOffset + I.top + (K ? -b - 2 : f.offsetHeight + 2);
5846
5846
  if (_e(e.calendarContainer, "arrowTop", !K), _e(e.calendarContainer, "arrowBottom", K), e.config.inline)
5847
5847
  return;
5848
- let Ne = window.pageXOffset + I.left, ye = !1, sn = !1;
5849
- j === "center" ? (Ne -= (C - I.width) / 2, ye = !0) : j === "right" && (Ne -= C - I.width, sn = !0), _e(e.calendarContainer, "arrowLeft", !ye && !sn), _e(e.calendarContainer, "arrowCenter", ye), _e(e.calendarContainer, "arrowRight", sn);
5848
+ let Ne = window.pageXOffset + I.left, ye = !1, ln = !1;
5849
+ j === "center" ? (Ne -= (C - I.width) / 2, ye = !0) : j === "right" && (Ne -= C - I.width, ln = !0), _e(e.calendarContainer, "arrowLeft", !ye && !ln), _e(e.calendarContainer, "arrowCenter", ye), _e(e.calendarContainer, "arrowRight", ln);
5850
5850
  const Je = window.document.body.offsetWidth - (window.pageXOffset + I.right), Ft = Ne + C > window.document.body.offsetWidth, jt = Je + C > window.document.body.offsetWidth;
5851
5851
  if (_e(e.calendarContainer, "rightMost", Ft), !e.config.static)
5852
5852
  if (e.calendarContainer.style.top = `${ae}px`, !Ft)
@@ -5880,7 +5880,7 @@ function Mu(t, n) {
5880
5880
  return document.head.appendChild(c), c.sheet;
5881
5881
  }
5882
5882
  function Kr() {
5883
- e.config.noCalendar || e.isMobile || (be(), on(), pe());
5883
+ e.config.noCalendar || e.isMobile || (be(), sn(), pe());
5884
5884
  }
5885
5885
  function Wn() {
5886
5886
  e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
@@ -5902,13 +5902,13 @@ function Mu(t, n) {
5902
5902
  const j = e.currentYear !== O.getFullYear();
5903
5903
  e.currentYear = O.getFullYear(), e.currentMonth = O.getMonth(), j && (se("onYearChange"), be()), se("onMonthChange");
5904
5904
  }
5905
- if (on(), pe(), it(), !$ && e.config.mode !== "range" && e.config.showMonths === 1 ? G(C) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
5905
+ if (sn(), pe(), it(), !$ && e.config.mode !== "range" && e.config.showMonths === 1 ? G(C) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
5906
5906
  const j = e.config.mode === "single" && !e.config.enableTime, I = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
5907
5907
  (j || I) && Wn();
5908
5908
  }
5909
5909
  y();
5910
5910
  }
5911
- const an = {
5911
+ const on = {
5912
5912
  locale: [zr, Ur],
5913
5913
  showMonths: [Vr, i, Hr],
5914
5914
  minDate: [E],
@@ -5923,9 +5923,9 @@ function Mu(t, n) {
5923
5923
  if (c !== null && typeof c == "object") {
5924
5924
  Object.assign(e.config, c);
5925
5925
  for (const b in c)
5926
- an[b] !== void 0 && an[b].forEach((C) => C());
5926
+ on[b] !== void 0 && on[b].forEach((C) => C());
5927
5927
  } else
5928
- e.config[c] = f, an[c] !== void 0 ? an[c].forEach((b) => b()) : rr.indexOf(c) > -1 && (e.config[c] = ar(f));
5928
+ e.config[c] = f, on[c] !== void 0 ? on[c].forEach((b) => b()) : rr.indexOf(c) > -1 && (e.config[c] = ar(f));
5929
5929
  e.redraw(), it(!0);
5930
5930
  }
5931
5931
  function Gr(c, f) {
@@ -6012,10 +6012,10 @@ function Mu(t, n) {
6012
6012
  function _i(c) {
6013
6013
  return e.config.mode !== "range" || e.selectedDates.length < 2 ? !1 : Ae(c, e.selectedDates[0]) >= 0 && Ae(c, e.selectedDates[1]) <= 0;
6014
6014
  }
6015
- function on() {
6015
+ function sn() {
6016
6016
  e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach((c, f) => {
6017
6017
  const b = new Date(e.currentYear, e.currentMonth, 1);
6018
- b.setMonth(e.currentMonth + f), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[f].textContent = _n(b.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = b.getMonth().toString(), c.value = b.getFullYear().toString();
6018
+ b.setMonth(e.currentMonth + f), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[f].textContent = Dn(b.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = b.getMonth().toString(), c.value = b.getFullYear().toString();
6019
6019
  }), e._hidePrevMonthArrow = e.config.minDate !== void 0 && (e.currentYear === e.config.minDate.getFullYear() ? e.currentMonth <= e.config.minDate.getMonth() : e.currentYear < e.config.minDate.getFullYear()), e._hideNextMonthArrow = e.config.maxDate !== void 0 && (e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth + 1 > e.config.maxDate.getMonth() : e.currentYear > e.config.maxDate.getFullYear()));
6020
6020
  }
6021
6021
  function Xr(c) {
@@ -6332,7 +6332,7 @@ const ze = /* @__PURE__ */ F({
6332
6332
  ]));
6333
6333
  }
6334
6334
  });
6335
- function jn(t, n = "GET", e = {}) {
6335
+ function tn(t, n = "GET", e = {}) {
6336
6336
  const r = T(), a = La(), o = T(!1), i = T(!1), s = T(!1), l = T(!1);
6337
6337
  let u = 0, d;
6338
6338
  const p = () => {
@@ -6369,16 +6369,19 @@ function jn(t, n = "GET", e = {}) {
6369
6369
  };
6370
6370
  }
6371
6371
  function tm(t, n = {}) {
6372
- return jn(t, "GET", n);
6372
+ return tn(t, "GET", n);
6373
6373
  }
6374
6374
  function nm(t, n = {}) {
6375
- return jn(t, "DELETE", n);
6375
+ return tn(t, "DELETE", n);
6376
6376
  }
6377
6377
  function rm(t, n = {}) {
6378
- return jn(t, "POST", n);
6378
+ return tn(t, "PATCH", n);
6379
6379
  }
6380
6380
  function am(t, n = {}) {
6381
- return jn(t, "PUT", n);
6381
+ return tn(t, "POST", n);
6382
+ }
6383
+ function om(t, n = {}) {
6384
+ return tn(t, "PUT", n);
6382
6385
  }
6383
6386
  function Bu(t = {}) {
6384
6387
  const n = T(/* @__PURE__ */ new Map());
@@ -6828,7 +6831,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
6828
6831
  show: a.modelValue
6829
6832
  }, {
6830
6833
  default: R(() => [
6831
- S(w(Mn), {
6834
+ S(w(Pn), {
6832
6835
  as: "div",
6833
6836
  static: "",
6834
6837
  class: "fixed z-30 inset-0 overflow-y-auto",
@@ -6847,7 +6850,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
6847
6850
  "leave-to": "opacity-0"
6848
6851
  }, {
6849
6852
  default: R(() => [
6850
- S(w(Pn), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
6853
+ S(w(An), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
6851
6854
  ]),
6852
6855
  _: 1
6853
6856
  }),
@@ -7017,7 +7020,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
7017
7020
  w(e) ? (x(), k("div", Sd, [
7018
7021
  S(ti, { class: "w-32 h-32" }),
7019
7022
  lr(h("div", Td, [
7020
- S(Dn, {
7023
+ S(En, {
7021
7024
  appear: "",
7022
7025
  "enter-active-class": "ease-out duration-1000",
7023
7026
  "enter-from-class": "opacity-0",
@@ -7049,10 +7052,10 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
7049
7052
  }, Bd = { class: "mt-6 px-2" }, Vd = /* @__PURE__ */ h("div", {
7050
7053
  class: "shrink-0 w-14",
7051
7054
  "aria-hidden": "true"
7052
- }, null, -1), Hd = { class: "hidden md:flex md:shrink-0" }, Ud = { class: "flex flex-col w-64" }, Yd = { class: "flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto" }, Wd = { class: "flex justify-center shrink-0 px-4" }, zd = ["src"], Kd = { class: "mt-5 grow flex flex-col" }, qd = { class: "flex-1 px-2 bg-white space-y-1" }, Gd = ["href", "target"], Jd = {
7055
+ }, null, -1), Hd = { class: "hidden lg:flex lg:shrink-0" }, Ud = { class: "flex flex-col w-64" }, Yd = { class: "flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto" }, Wd = { class: "flex justify-center shrink-0 px-4" }, zd = ["src"], Kd = { class: "mt-5 grow flex flex-col" }, qd = { class: "flex-1 px-2 bg-white space-y-1" }, Gd = ["href", "target"], Jd = {
7053
7056
  key: 0,
7054
7057
  class: "mt-atuo"
7055
- }, Xd = { class: "mt-6 px-2" }, Zd = { class: "flex flex-col w-0 flex-1 overflow-hidden" }, Qd = { class: "relative z-10 shrink-0 flex h-16 bg-xy-blue shadow" }, ec = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open sidebar", -1), tc = { class: "flex-1 px-4 flex justify-between" }, nc = { class: "flex-1 flex" }, rc = { class: "flex items-center text-2xl text-white" }, ac = { class: "ml-4 flex items-center md:ml-6" }, oc = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open user menu", -1), ic = ["href"], sc = { class: "flex-1 relative overflow-y-auto focus:outline-none" }, lc = { class: "mx-auto" }, uc = /* @__PURE__ */ F({
7058
+ }, Xd = { class: "mt-6 px-2" }, Zd = { class: "flex flex-col w-0 flex-1 overflow-hidden" }, Qd = { class: "relative z-10 shrink-0 flex h-16 bg-xy-blue shadow" }, ec = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open sidebar", -1), tc = { class: "flex-1 px-4 flex justify-between" }, nc = { class: "flex-1 flex" }, rc = { class: "flex items-center text-2xl text-white" }, ac = { class: "ml-4 flex items-center lg:ml-6" }, oc = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open user menu", -1), ic = ["href"], sc = { class: "flex-1 relative overflow-y-auto focus:outline-none" }, lc = { class: "mx-auto" }, uc = /* @__PURE__ */ F({
7056
7059
  __name: "SidebarLayout",
7057
7060
  props: {
7058
7061
  activeUrl: { default: "" },
@@ -7069,10 +7072,10 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
7069
7072
  show: e.value
7070
7073
  }, {
7071
7074
  default: R(() => [
7072
- S(w(Mn), {
7075
+ S(w(Pn), {
7073
7076
  as: "div",
7074
7077
  static: "",
7075
- class: "fixed inset-0 flex z-10 md:hidden",
7078
+ class: "fixed inset-0 flex z-10 lg:hidden",
7076
7079
  open: e.value,
7077
7080
  onClose: o[1] || (o[1] = (i) => e.value = !1)
7078
7081
  }, {
@@ -7087,7 +7090,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
7087
7090
  "leave-to": "opacity-0"
7088
7091
  }, {
7089
7092
  default: R(() => [
7090
- S(w(Pn), { class: "fixed inset-0 bg-gray-600 bg-opacity-75" })
7093
+ S(w(An), { class: "fixed inset-0 bg-gray-600 bg-opacity-75" })
7091
7094
  ]),
7092
7095
  _: 1
7093
7096
  }),
@@ -7215,7 +7218,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
7215
7218
  h("div", Zd, [
7216
7219
  h("div", Qd, [
7217
7220
  h("button", {
7218
- class: "px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 md:hidden",
7221
+ class: "px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",
7219
7222
  onClick: o[2] || (o[2] = (i) => e.value = !0)
7220
7223
  }, [
7221
7224
  ec,
@@ -7248,7 +7251,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
7248
7251
  _: 1
7249
7252
  })
7250
7253
  ]),
7251
- S(Dn, {
7254
+ S(En, {
7252
7255
  "enter-active-class": "transition ease-out duration-100",
7253
7256
  "enter-from-class": "transform opacity-0 scale-95",
7254
7257
  "enter-to-class": "transform opacity-100 scale-100",
@@ -7380,7 +7383,7 @@ const mc = /* @__PURE__ */ dc(cc, [["render", pc]]), hc = { class: "absolute ins
7380
7383
  show: o.modelValue
7381
7384
  }, {
7382
7385
  default: R(() => [
7383
- S(w(Mn), {
7386
+ S(w(Pn), {
7384
7387
  as: "div",
7385
7388
  static: "",
7386
7389
  class: "fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",
@@ -7389,7 +7392,7 @@ const mc = /* @__PURE__ */ dc(cc, [["render", pc]]), hc = { class: "absolute ins
7389
7392
  }, {
7390
7393
  default: R(() => [
7391
7394
  h("div", hc, [
7392
- S(w(Pn), { class: "absolute inset-0" }),
7395
+ S(w(An), { class: "absolute inset-0" }),
7393
7396
  h("div", vc, [
7394
7397
  S(w(ot), {
7395
7398
  as: "template",
@@ -7550,7 +7553,7 @@ const mc = /* @__PURE__ */ dc(cc, [["render", pc]]), hc = { class: "absolute ins
7550
7553
  _: 1
7551
7554
  })
7552
7555
  ]),
7553
- S(Dn, {
7556
+ S(En, {
7554
7557
  "enter-active-class": "transition ease-out duration-200",
7555
7558
  "enter-from-class": "transform opacity-0 scale-95",
7556
7559
  "enter-to-class": "transform opacity-100 scale-100",
@@ -8753,7 +8756,7 @@ const Vn = /* @__PURE__ */ F({
8753
8756
  Tooltip: Mc,
8754
8757
  XYSpinner: ti,
8755
8758
  YesOrNoRadio: Xp
8756
- }, Symbol.toStringTag, { value: "Module" })), om = function(n) {
8759
+ }, Symbol.toStringTag, { value: "Module" })), im = function(n) {
8757
8760
  Object.entries(Zp).forEach(([e, r]) => {
8758
8761
  n.component(e, r);
8759
8762
  });
@@ -8795,17 +8798,18 @@ export {
8795
8798
  Mc as Tooltip,
8796
8799
  ti as XYSpinner,
8797
8800
  Xp as YesOrNoRadio,
8798
- om as default,
8801
+ im as default,
8799
8802
  ll as isHttpCancel,
8800
8803
  sl as isHttpError,
8801
8804
  ei as useAppFlasher,
8802
8805
  Et as useAppFlashes,
8803
8806
  ua as useAppSpinner,
8804
- jn as useBaseAPI,
8807
+ tn as useBaseAPI,
8805
8808
  nm as useBaseAPIDelete,
8806
8809
  tm as useBaseAPIGet,
8807
- rm as useBaseAPIPost,
8808
- am as useBaseAPIPut,
8810
+ rm as useBaseAPIPatch,
8811
+ am as useBaseAPIPost,
8812
+ om as useBaseAPIPut,
8809
8813
  Bu as useFlashes,
8810
8814
  ol as useSpinnerDisplay
8811
8815
  };