@melodicdev/components 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  const P = (e) => typeof e == "string" ? e : typeof e == "symbol" ? e.toString() : e.name;
2
- function ms(e) {
2
+ function vs(e) {
3
3
  return function(t, r, l) {
4
4
  t.params || (t.params = []), t.params[l] = { __injectionToken: P(e) };
5
5
  };
@@ -60,7 +60,7 @@ var pe = class {
60
60
  clearInstance() {
61
61
  return this._instance = void 0, this._resolved = !1, this;
62
62
  }
63
- }, Br = class {
63
+ }, Hr = class {
64
64
  constructor() {
65
65
  this._bindings = /* @__PURE__ */ new Map(), this._constructionStack = /* @__PURE__ */ new Set();
66
66
  }
@@ -134,7 +134,7 @@ var pe = class {
134
134
  return e.args.length > 0 && (l = l.concat(e.args)), Reflect.construct(r, l);
135
135
  }
136
136
  };
137
- const N = new Br();
137
+ const N = new Hr();
138
138
  function B(e) {
139
139
  return function(t, r) {
140
140
  const l = `__service_${String(r)}`;
@@ -148,10 +148,10 @@ function B(e) {
148
148
  });
149
149
  };
150
150
  }
151
- function se(e) {
151
+ function Z(e) {
152
152
  return Symbol(e);
153
153
  }
154
- async function us(e = {}) {
154
+ async function gs(e = {}) {
155
155
  const t = e.devMode ?? !1, r = [];
156
156
  if (t && console.log("[Melodic] Bootstrap starting..."), e.onError) {
157
157
  const o = (n) => {
@@ -197,17 +197,17 @@ async function us(e = {}) {
197
197
  function Oe(e, t) {
198
198
  e.renderInto(t);
199
199
  }
200
- const yr = Symbol("melodic.signal"), Hr = (e) => typeof e == "function" && yr in e;
201
- var Ne = "melodic-styles", Kr = `style[${Ne}], link[rel="stylesheet"][${Ne}]`, Re = [], ve = null;
202
- const Wr = (e) => {
203
- if (Ur()) {
200
+ const yr = Symbol("melodic.signal"), Kr = (e) => typeof e == "function" && yr in e;
201
+ var Ne = "melodic-styles", Wr = `style[${Ne}], link[rel="stylesheet"][${Ne}]`, Re = [], ve = null;
202
+ const Gr = (e) => {
203
+ if (Yr()) {
204
204
  Le(e);
205
205
  return;
206
206
  }
207
- ve || (ve = Gr()), ve.then(() => Le(e));
207
+ ve || (ve = Ur()), ve.then(() => Le(e));
208
208
  };
209
- var Gr = async () => {
210
- const e = document.querySelectorAll(Kr);
209
+ var Ur = async () => {
210
+ const e = document.querySelectorAll(Wr);
211
211
  if (e.length !== 0)
212
212
  for (const t of e) {
213
213
  if (t instanceof HTMLStyleElement) {
@@ -228,9 +228,9 @@ var Gr = async () => {
228
228
  const r = new CSSStyleSheet();
229
229
  r.replaceSync(t), Re.push(r);
230
230
  }
231
- }, Ur = () => Re.length > 0, Yr = class extends HTMLElement {
231
+ }, Yr = () => Re.length > 0, Xr = class extends HTMLElement {
232
232
  constructor(e, t) {
233
- super(), this._unsubscribers = [], this._renderScheduled = !1, this._booleanProperties = /* @__PURE__ */ new Set(), this._meta = e, this._component = t, this._component.elementRef = this, this._root = this.attachShadow({ mode: "open" }), Wr(this._root), this._style = this.renderStyles(), this.observe(), this._component.onInit && this._component.onInit();
233
+ super(), this._unsubscribers = [], this._renderScheduled = !1, this._booleanProperties = /* @__PURE__ */ new Set(), this._meta = e, this._component = t, this._component.elementRef = this, this._root = this.attachShadow({ mode: "open" }), Gr(this._root), this._style = this.renderStyles(), this.observe(), this._component.onInit && this._component.onInit();
234
234
  }
235
235
  get component() {
236
236
  return this._component;
@@ -281,7 +281,7 @@ var Gr = async () => {
281
281
  }
282
282
  const l = e.filter((a) => {
283
283
  const o = this._component[a];
284
- return a.startsWith("_") ? !1 : Hr(o) ? (this.subscribeToSignal(o), !1) : typeof o == "function" ? !1 : a !== "elementRef" && a !== "constructor";
284
+ return a.startsWith("_") ? !1 : Kr(o) ? (this.subscribeToSignal(o), !1) : typeof o == "function" ? !1 : a !== "elementRef" && a !== "constructor";
285
285
  });
286
286
  for (const a of l) {
287
287
  const o = this.getPropertyDescriptor(this._component, a), s = Object.getOwnPropertyDescriptor(this, a)?.value;
@@ -335,7 +335,7 @@ var Gr = async () => {
335
335
  function _(e) {
336
336
  return function(t) {
337
337
  if (customElements.get(e.selector) === void 0) {
338
- const r = class extends Yr {
338
+ const r = class extends Xr {
339
339
  constructor() {
340
340
  const a = [], o = t.params;
341
341
  if (o && Array.isArray(o)) for (const s of o) {
@@ -350,23 +350,48 @@ function _(e) {
350
350
  }
351
351
  };
352
352
  }
353
- var Te = class xr extends Error {
353
+ function Jr() {
354
+ return "prod";
355
+ }
356
+ const Qr = Jr();
357
+ function xr(e, t) {
358
+ const r = { ...e };
359
+ for (const l of Object.keys(t)) {
360
+ const a = r[l], o = t[l];
361
+ o !== null && typeof o == "object" && !Array.isArray(o) && a !== null && typeof a == "object" && !Array.isArray(a) ? r[l] = xr(a, o) : r[l] = o;
362
+ }
363
+ return r;
364
+ }
365
+ function bs(e) {
366
+ const t = e[Qr], r = {
367
+ ...e.base,
368
+ ...t
369
+ };
370
+ return e.extends ? xr(e.extends, r) : r;
371
+ }
372
+ const Zr = Z("APP_CONFIG");
373
+ function fs(e) {
374
+ return (t) => {
375
+ t.bindValue(Zr, e);
376
+ };
377
+ }
378
+ var Te = class wr extends Error {
354
379
  constructor(t, r, l) {
355
- super(t), this.config = r, this.code = l, this.name = "HttpBaseError", Object.setPrototypeOf(this, xr.prototype);
380
+ super(t), this.config = r, this.code = l, this.name = "HttpBaseError", Object.setPrototypeOf(this, wr.prototype);
356
381
  }
357
- }, Xr = class wr extends Te {
382
+ }, el = class kr extends Te {
358
383
  constructor(t, r, l) {
359
- super(t, l, `HTTP_${r.status}`), this.response = r, this.name = "HttpError", Object.setPrototypeOf(this, wr.prototype);
384
+ super(t, l, `HTTP_${r.status}`), this.response = r, this.name = "HttpError", Object.setPrototypeOf(this, kr.prototype);
360
385
  }
361
- }, Jr = class kr extends Te {
386
+ }, tl = class $r extends Te {
362
387
  constructor(t, r) {
363
- super(t, r, "NETWORK_ERROR"), this.name = "NetworkError", Object.setPrototypeOf(this, kr.prototype);
388
+ super(t, r, "NETWORK_ERROR"), this.name = "NetworkError", Object.setPrototypeOf(this, $r.prototype);
364
389
  }
365
- }, Qr = class $r extends Te {
390
+ }, rl = class Cr extends Te {
366
391
  constructor(t, r) {
367
- super(t, r, "ABORTED"), this.name = "AbortError", Object.setPrototypeOf(this, $r.prototype);
392
+ super(t, r, "ABORTED"), this.name = "AbortError", Object.setPrototypeOf(this, Cr.prototype);
368
393
  }
369
- }, Zr = class {
394
+ }, ll = class {
370
395
  constructor() {
371
396
  this._pendingRequests = /* @__PURE__ */ new Map();
372
397
  }
@@ -416,7 +441,7 @@ var Te = class xr extends Error {
416
441
  }
417
442
  }, je = class {
418
443
  constructor(e) {
419
- this._requestManager = new Zr(), this._interceptors = {
444
+ this._requestManager = new ll(), this._interceptors = {
420
445
  request: [],
421
446
  response: []
422
447
  }, this.interceptors = {
@@ -510,10 +535,10 @@ var Te = class xr extends Error {
510
535
  headers: r.headers,
511
536
  config: e
512
537
  };
513
- if (!r.ok) throw new Xr(`HTTP Error: ${r.status} ${r.statusText}`, l, e);
538
+ if (!r.ok) throw new el(`HTTP Error: ${r.status} ${r.statusText}`, l, e);
514
539
  return l;
515
540
  }).catch((r) => {
516
- throw r instanceof Error && r.name === "AbortError" ? new Qr("Request aborted", e) : new Jr((r instanceof Error ? r.message : "Network error") || "Network error", e);
541
+ throw r instanceof Error && r.name === "AbortError" ? new rl("Request aborted", e) : new tl((r instanceof Error ? r.message : "Network error") || "Network error", e);
517
542
  });
518
543
  return e.deduplicate === !0 && this._requestManager.addPendingRequest(e, t), await t;
519
544
  }
@@ -580,7 +605,7 @@ var Te = class xr extends Error {
580
605
  return r.includes("application/json") ? await e.json() : r.includes("text/") ? await e.text() : r.includes("application/octet-stream") || r.includes("image/") ? await e.blob() : await e.text();
581
606
  }
582
607
  };
583
- function hs(e, t) {
608
+ function _s(e, t) {
584
609
  return (r) => {
585
610
  const l = new je(e);
586
611
  r.bindValue(je, l), t?.request && t.request.forEach((a) => {
@@ -590,13 +615,13 @@ function hs(e, t) {
590
615
  });
591
616
  };
592
617
  }
593
- function ps(e) {
618
+ function ys(e) {
594
619
  return { canActivate: e };
595
620
  }
596
- function vs(e) {
621
+ function xs(e) {
597
622
  return { canDeactivate: e };
598
623
  }
599
- function gs(e) {
624
+ function ws(e) {
600
625
  return { resolve: e };
601
626
  }
602
627
  var be = class {
@@ -652,17 +677,17 @@ var be = class {
652
677
  return r === "R" ? e.test(t) : r === "F" ? e(t) : e === t;
653
678
  }
654
679
  };
655
- const el = "melodic:route-context";
656
- var bs = class extends CustomEvent {
680
+ const al = "melodic:route-context";
681
+ var ks = class extends CustomEvent {
657
682
  constructor(e) {
658
- super(el, {
683
+ super(al, {
659
684
  bubbles: !1,
660
685
  composed: !0,
661
686
  detail: e
662
687
  });
663
688
  }
664
689
  };
665
- function Cr(e, t, r, l, a) {
690
+ function Sr(e, t, r, l, a) {
666
691
  for (const o of e) {
667
692
  const s = new be(o.path);
668
693
  if (o.redirectTo && o.path === t) return {
@@ -698,7 +723,7 @@ function Cr(e, t, r, l, a) {
698
723
  fullPath: m,
699
724
  children: o.children
700
725
  };
701
- return Object.assign(a, c.params), l.push(u), o.children && c.remainingPath ? Cr(o.children, c.remainingPath, m, l, a) : {
726
+ return Object.assign(a, c.params), l.push(u), o.children && c.remainingPath ? Sr(o.children, c.remainingPath, m, l, a) : {
702
727
  matches: l,
703
728
  params: a,
704
729
  isExactMatch: c.remainingPath === ""
@@ -713,7 +738,7 @@ function Cr(e, t, r, l, a) {
713
738
  };
714
739
  }
715
740
  function fe(e, t, r = "") {
716
- const l = Cr(e, t.startsWith("/") ? t.slice(1) : t, r, [], {});
741
+ const l = Sr(e, t.startsWith("/") ? t.slice(1) : t, r, [], {});
717
742
  return {
718
743
  matches: l.matches,
719
744
  params: l.params,
@@ -721,17 +746,17 @@ function fe(e, t, r = "") {
721
746
  redirectTo: l.redirectTo
722
747
  };
723
748
  }
724
- function tl(e, t) {
749
+ function ol(e, t) {
725
750
  for (const r of e) {
726
751
  if (r.name === t) return r;
727
752
  if (r.children) {
728
- const l = tl(r.children, t);
753
+ const l = ol(r.children, t);
729
754
  if (l) return l;
730
755
  }
731
756
  }
732
757
  return null;
733
758
  }
734
- function rl(e, t, r = {}) {
759
+ function il(e, t, r = {}) {
735
760
  const l = [];
736
761
  function a(o, s) {
737
762
  for (const n of o) {
@@ -843,9 +868,9 @@ var ze = (e, t, r, l) => new PopStateEvent("History", { state: {
843
868
  protocol: window.location.protocol,
844
869
  params: new URLSearchParams(window.location.search),
845
870
  title: r
846
- } }), ll = history.pushState;
871
+ } }), sl = history.pushState;
847
872
  history.pushState = (e, t, r) => {
848
- ll.apply(history, [
873
+ sl.apply(history, [
849
874
  e,
850
875
  t,
851
876
  r
@@ -853,9 +878,9 @@ history.pushState = (e, t, r) => {
853
878
  const l = new CustomEvent("NavigationEvent", { detail: ze("push", e, t, r) });
854
879
  window.dispatchEvent(l);
855
880
  };
856
- var al = history.replaceState;
881
+ var nl = history.replaceState;
857
882
  history.replaceState = (e, t, r) => {
858
- al.apply(history, [
883
+ nl.apply(history, [
859
884
  e,
860
885
  t,
861
886
  r
@@ -965,7 +990,7 @@ var L = class {
965
990
  };
966
991
  }
967
992
  async navigateByName(t, r = {}, l = {}) {
968
- const a = rl(this._routes, t, r);
993
+ const a = il(this._routes, t, r);
969
994
  return a ? this.navigate(a, l) : {
970
995
  success: !1,
971
996
  error: `Route with name '${t}' not found`
@@ -1076,7 +1101,7 @@ var L = class {
1076
1101
  }
1077
1102
  };
1078
1103
  L = g([Q(), V("design:paramtypes", [])], L);
1079
- var K = /* @__PURE__ */ new Map(), Sr = (e) => {
1104
+ var K = /* @__PURE__ */ new Map(), Er = (e) => {
1080
1105
  if (K.has(e)) return K.get(e);
1081
1106
  const t = e.toLowerCase();
1082
1107
  for (const [r, l] of K) if (r.toLowerCase() === t) return l;
@@ -1084,27 +1109,27 @@ var K = /* @__PURE__ */ new Map(), Sr = (e) => {
1084
1109
  function ne(e, t) {
1085
1110
  K.set(e, t);
1086
1111
  }
1087
- function ol(e) {
1088
- return Sr(e);
1112
+ function dl(e) {
1113
+ return Er(e);
1089
1114
  }
1090
- function ys(e) {
1091
- return Sr(e) !== void 0;
1115
+ function Ss(e) {
1116
+ return Er(e) !== void 0;
1092
1117
  }
1093
- function xs(e) {
1118
+ function Es(e) {
1094
1119
  return K.delete(e);
1095
1120
  }
1096
- function ws() {
1121
+ function Rs() {
1097
1122
  return Array.from(K.keys());
1098
1123
  }
1099
- function Z(e) {
1124
+ function ee(e) {
1100
1125
  return typeof e == "object" && e !== null && "__directive" in e;
1101
1126
  }
1102
- var de = `m${Math.random().toString(36).slice(2, 9)}`, il = `<!--${de}-->`, Ae = `__${de}_`, Fe = new RegExp(`${Ae}(\\d+)__`, "g"), ee = (e) => `${Ae}${e}__`, U = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new WeakMap();
1127
+ var de = `m${Math.random().toString(36).slice(2, 9)}`, cl = `<!--${de}-->`, Ae = `__${de}_`, Fe = new RegExp(`${Ae}(\\d+)__`, "g"), te = (e) => `${Ae}${e}__`, U = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new WeakMap();
1103
1128
  function Be(e) {
1104
1129
  let t = qe.get(e);
1105
1130
  return t === void 0 && (t = e.join(de), qe.set(e, t)), t;
1106
1131
  }
1107
- var sl = class Y {
1132
+ var ml = class Y {
1108
1133
  constructor(t, r) {
1109
1134
  this.strings = t, this.values = r;
1110
1135
  }
@@ -1141,11 +1166,11 @@ var sl = class Y {
1141
1166
  for (let x = 1; x < this.strings.length; x++) {
1142
1167
  const k = this.strings[x], R = x - 1, C = /([@.:]?[\w:-]+)\s*=\s*["']?$/.exec(a), E = /([@.:]?[\w:-]+)\s*=\s*(["'])([^"']*)$/.exec(a);
1143
1168
  let S = "___";
1144
- if (s) a += ee(R);
1169
+ if (s) a += te(R);
1145
1170
  else {
1146
1171
  const A = E?.[1]?.charAt(0), z = A !== void 0 && Object.keys(o).includes(A);
1147
1172
  if (E && !z)
1148
- a += ee(R), s = E[1], n = E[2];
1173
+ a += te(R), s = E[1], n = E[2];
1149
1174
  else {
1150
1175
  if (C) {
1151
1176
  S = "__";
@@ -1153,7 +1178,7 @@ var sl = class Y {
1153
1178
  Object.keys(o).includes(F) && (S = F);
1154
1179
  }
1155
1180
  if (S === "__" && C) {
1156
- a += ee(R), s = C[1];
1181
+ a += te(R), s = C[1];
1157
1182
  const F = /(["'])$/.exec(C[0]);
1158
1183
  n = F ? F[1] : null;
1159
1184
  } else a = o[S](R, a, C ? C[1] : void 0, C);
@@ -1274,11 +1299,11 @@ var sl = class Y {
1274
1299
  index: r,
1275
1300
  name: a?.slice(1)
1276
1301
  }), l.slice(0, -(o?.[0].length ?? 0)) + `__action-${r}__=""`),
1277
- __: (r, l, a) => l + ee(r),
1302
+ __: (r, l, a) => l + te(r),
1278
1303
  ___: (r, l) => (t.push({
1279
1304
  type: "node",
1280
1305
  index: r
1281
- }), l + il)
1306
+ }), l + cl)
1282
1307
  };
1283
1308
  }
1284
1309
  prepareParts(t, r) {
@@ -1480,15 +1505,15 @@ var sl = class Y {
1480
1505
  commit(t) {
1481
1506
  for (const r of t) {
1482
1507
  const l = this.values[r.index], a = r.type === "attribute" && r.attributeIndices && r.attributeStrings;
1483
- if (!(!a && !Z(l) && r.type !== "action" && r.previousValue === l)) {
1508
+ if (!(!a && !ee(l) && r.type !== "action" && r.previousValue === l)) {
1484
1509
  switch (r.type) {
1485
1510
  case "node":
1486
- r.node && (Z(l) ? r.directiveState = l.render(r.node, r.directiveState) : l instanceof Y ? this.renderNestedTemplate(r, l) : l instanceof Node ? this.renderNode(r, l) : Array.isArray(l) ? this.renderArray(r, l) : (this.clearRenderedNodes(r), r.node.textContent = String(l ?? "")));
1511
+ r.node && (ee(l) ? r.directiveState = l.render(r.node, r.directiveState) : l instanceof Y ? this.renderNestedTemplate(r, l) : l instanceof Node ? this.renderNode(r, l) : Array.isArray(l) ? this.renderArray(r, l) : (this.clearRenderedNodes(r), r.node.textContent = String(l ?? "")));
1487
1512
  break;
1488
1513
  case "attribute":
1489
1514
  if (r.node && r.name) {
1490
1515
  const o = r.node;
1491
- if (Z(l)) r.directiveState = l.render(o, r.directiveState);
1516
+ if (ee(l)) r.directiveState = l.render(o, r.directiveState);
1492
1517
  else if (a) {
1493
1518
  const s = r.attributeStrings, n = r.attributeIndices;
1494
1519
  let c = s[0] ?? "";
@@ -1503,7 +1528,7 @@ var sl = class Y {
1503
1528
  }
1504
1529
  break;
1505
1530
  case "property":
1506
- r.node && r.name && (Z(l) ? r.directiveState = l.render(r.node, r.directiveState) : r.node[r.name] = l);
1531
+ r.node && r.name && (ee(l) ? r.directiveState = l.render(r.node, r.directiveState) : r.node[r.name] = l);
1507
1532
  break;
1508
1533
  case "event":
1509
1534
  if (r.node && r.name) {
@@ -1517,7 +1542,7 @@ var sl = class Y {
1517
1542
  const o = r.node, s = r.index >= 0 ? l : r.staticValue;
1518
1543
  if (r.index >= 0 && r.previousValue === s || r.index < 0 && r.actionCleanup !== void 0) continue;
1519
1544
  r.actionCleanup && (r.actionCleanup(), r.actionCleanup = void 0);
1520
- const n = ol(r.name);
1545
+ const n = dl(r.name);
1521
1546
  if (n) {
1522
1547
  const c = n(o, s, r.name);
1523
1548
  typeof c == "function" ? r.actionCleanup = c : r.actionCleanup = () => {
@@ -1534,7 +1559,7 @@ var sl = class Y {
1534
1559
  }
1535
1560
  };
1536
1561
  function i(e, ...t) {
1537
- return new sl(e, t);
1562
+ return new ml(e, t);
1538
1563
  }
1539
1564
  const y = i;
1540
1565
  var He, Ke = "melodic:outlet-register", ye = class {
@@ -1804,7 +1829,7 @@ xe = g([_({
1804
1829
  `,
1805
1830
  attributes: ["href", "active-class"]
1806
1831
  })], xe);
1807
- function nl(e, t, r) {
1832
+ function ul(e, t, r) {
1808
1833
  let l;
1809
1834
  if (typeof t == "string") l = { href: t };
1810
1835
  else if (t && typeof t == "object" && "href" in t) l = t;
@@ -1846,12 +1871,12 @@ function nl(e, t, r) {
1846
1871
  e.removeEventListener("click", b), window.removeEventListener("NavigationEvent", w);
1847
1872
  });
1848
1873
  }
1849
- ne("routerLink", nl);
1850
- var Er = null;
1874
+ ne("routerLink", ul);
1875
+ var Rr = null;
1851
1876
  const Ge = (e) => {
1852
- Er = e;
1853
- }, Rr = () => Er;
1854
- var Tr = class {
1877
+ Rr = e;
1878
+ }, Tr = () => Rr;
1879
+ var zr = class {
1855
1880
  constructor(e) {
1856
1881
  this.execute = e, this._dependencies = /* @__PURE__ */ new Set(), this._isRunning = !1, this._needsRerun = !1, this.run = () => {
1857
1882
  if (this._isRunning) {
@@ -1863,7 +1888,7 @@ var Tr = class {
1863
1888
  this._needsRerun = !1, this._dependencies.forEach((r) => {
1864
1889
  r.unsubscribe(this.run);
1865
1890
  }), this._dependencies.clear();
1866
- const t = Rr();
1891
+ const t = Tr();
1867
1892
  Ge(this), this.execute(), Ge(t);
1868
1893
  } while (this._needsRerun);
1869
1894
  this._isRunning = !1;
@@ -1883,7 +1908,7 @@ function M(e) {
1883
1908
  const r = /* @__PURE__ */ new Set(), l = () => {
1884
1909
  [...r].forEach((o) => o(t));
1885
1910
  }, a = (() => {
1886
- const o = Rr();
1911
+ const o = Tr();
1887
1912
  return o && (o.addDependency(a), r.add(o.run)), t;
1888
1913
  });
1889
1914
  return a.set = (o) => {
@@ -1901,7 +1926,7 @@ function M(e) {
1901
1926
  }), a;
1902
1927
  }
1903
1928
  function T(e) {
1904
- const t = M(void 0), r = new Tr(() => {
1929
+ const t = M(void 0), r = new zr(() => {
1905
1930
  t.set(e());
1906
1931
  });
1907
1932
  r.run();
@@ -1910,23 +1935,23 @@ function T(e) {
1910
1935
  r.destroy(), l();
1911
1936
  }, t;
1912
1937
  }
1913
- const Cs = () => () => ({}), Ss = (e, t) => ((r) => ({
1938
+ const As = () => () => ({}), Ds = (e, t) => ((r) => ({
1914
1939
  type: e,
1915
1940
  payload: r ?? (t ? t() : void 0)
1916
1941
  }));
1917
- function Es(...e) {
1942
+ function Is(...e) {
1918
1943
  return { reducers: e };
1919
1944
  }
1920
- const Rs = (e) => {
1945
+ const Ms = (e) => {
1921
1946
  const t = {};
1922
1947
  return Object.keys(e).forEach((r) => {
1923
1948
  t[r] = M(e[r]);
1924
1949
  }), t;
1925
- }, Ts = (e, t) => ({
1950
+ }, Ps = (e, t) => ({
1926
1951
  action: e(),
1927
1952
  reducer: t
1928
- }), we = se("RX_INIT_STATE"), ke = se("RX_ACTION_PROVIDERS"), $e = se("RX_EFFECTS_PROVIDERS"), zr = se("RX_STATE_DEBUG");
1929
- var dl = class {
1953
+ }), we = Z("RX_INIT_STATE"), ke = Z("RX_ACTION_PROVIDERS"), $e = Z("RX_EFFECTS_PROVIDERS"), Ar = Z("RX_STATE_DEBUG");
1954
+ var hl = class {
1930
1955
  constructor() {
1931
1956
  this._effects = [];
1932
1957
  }
@@ -1939,7 +1964,7 @@ var dl = class {
1939
1964
  getEffects() {
1940
1965
  return this._effects;
1941
1966
  }
1942
- }, zs = class extends dl {
1967
+ }, Os = class extends hl {
1943
1968
  constructor(e, t = { reducers: [] }, r = !1) {
1944
1969
  super(), this._initState = e, this._reducerConfig = t, this._debug = r, this._state = M(e);
1945
1970
  }
@@ -2051,24 +2076,24 @@ var dl = class {
2051
2076
  g([B(we), V("design:type", Object)], j.prototype, "_state", void 0);
2052
2077
  g([B(ke), V("design:type", Object)], j.prototype, "_reducerMap", void 0);
2053
2078
  g([B($e), V("design:type", Object)], j.prototype, "_effectMap", void 0);
2054
- g([B(zr), V("design:type", Boolean)], j.prototype, "_debug", void 0);
2079
+ g([B(Ar), V("design:type", Boolean)], j.prototype, "_debug", void 0);
2055
2080
  j = g([Q(), V("design:paramtypes", [])], j);
2056
- function Ds(e, t, r, l = !1) {
2081
+ function Ls(e, t, r, l = !1) {
2057
2082
  return (a) => {
2058
- a.bindValue(we, e), a.bindValue(ke, t), a.bindValue($e, r), a.bindValue(zr, l), a.bind(j, j, { dependencies: [
2083
+ a.bindValue(we, e), a.bindValue(ke, t), a.bindValue($e, r), a.bindValue(Ar, l), a.bind(j, j, { dependencies: [
2059
2084
  we,
2060
2085
  ke,
2061
2086
  $e
2062
2087
  ] });
2063
2088
  };
2064
2089
  }
2065
- var Ue = /* @__PURE__ */ new WeakMap(), cl = class Ar {
2090
+ var Ue = /* @__PURE__ */ new WeakMap(), pl = class Dr {
2066
2091
  constructor(t) {
2067
2092
  this._factory = null, this._hasEvents = !1, this._canCompile = !1, this.analyzeAndCompile(t);
2068
2093
  }
2069
2094
  static compile(t) {
2070
2095
  let r = Ue.get(t);
2071
- return r || (r = new Ar(t), Ue.set(t, r)), r;
2096
+ return r || (r = new Dr(t), Ue.set(t, r)), r;
2072
2097
  }
2073
2098
  /**
2074
2099
  * Check if this template can use the fast path
@@ -2195,7 +2220,7 @@ function Ye(e, t, r, l) {
2195
2220
  }
2196
2221
  }
2197
2222
  if (l.useCompiledPath === void 0 && e.length > 0) {
2198
- const p = r(e[0], 0), b = cl.compile(p.strings);
2223
+ const p = r(e[0], 0), b = pl.compile(p.strings);
2199
2224
  l.useCompiledPath = b.canUseFastPath(), l.useCompiledPath && (l.compiledTemplate = b);
2200
2225
  }
2201
2226
  const n = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
@@ -2211,7 +2236,7 @@ function Ye(e, t, r, l) {
2211
2236
  isNew: !1
2212
2237
  });
2213
2238
  } else {
2214
- const f = ml(b, p, w, r, l);
2239
+ const f = vl(b, p, w, r, l);
2215
2240
  s.push({
2216
2241
  item: f,
2217
2242
  oldIndex: -1,
@@ -2219,20 +2244,20 @@ function Ye(e, t, r, l) {
2219
2244
  });
2220
2245
  }
2221
2246
  }
2222
- for (const p of n.values()) pl(p);
2247
+ for (const p of n.values()) fl(p);
2223
2248
  if (s.length === 0) {
2224
2249
  l.keyToIndex = o, l.items = [];
2225
2250
  return;
2226
2251
  }
2227
- const m = vl(s), u = l.startMarker.parentElement;
2252
+ const m = _l(s), u = l.startMarker.parentElement;
2228
2253
  let h = l.endMarker;
2229
2254
  for (let p = s.length - 1; p >= 0; p--) {
2230
2255
  const b = s[p];
2231
- b.isNew ? ul(b.item, u, h) : m.has(p) || hl(b.item, h), h = b.item.start;
2256
+ b.isNew ? gl(b.item, u, h) : m.has(p) || bl(b.item, h), h = b.item.start;
2232
2257
  }
2233
2258
  l.keyToIndex = o, l.items = s.map((p) => p.item);
2234
2259
  }
2235
- function ml(e, t, r, l, a) {
2260
+ function vl(e, t, r, l, a) {
2236
2261
  const o = l(e, t);
2237
2262
  let s, n;
2238
2263
  if (a.useCompiledPath && a.compiledTemplate) {
@@ -2249,13 +2274,13 @@ function ml(e, t, r, l, a) {
2249
2274
  end: document.createComment("repeat-item-end")
2250
2275
  };
2251
2276
  }
2252
- function ul(e, t, r) {
2277
+ function gl(e, t, r) {
2253
2278
  const l = document.createDocumentFragment();
2254
2279
  l.appendChild(e.start);
2255
2280
  for (const a of e.nodes) l.appendChild(a);
2256
2281
  l.appendChild(e.end), t.insertBefore(l, r);
2257
2282
  }
2258
- function hl(e, t) {
2283
+ function bl(e, t) {
2259
2284
  const r = t.parentNode;
2260
2285
  if (!r) return;
2261
2286
  const l = document.createDocumentFragment();
@@ -2268,7 +2293,7 @@ function hl(e, t) {
2268
2293
  }
2269
2294
  r.insertBefore(l, t);
2270
2295
  }
2271
- function pl(e) {
2296
+ function fl(e) {
2272
2297
  let t = e.start;
2273
2298
  const r = e.end;
2274
2299
  for (; t; ) {
@@ -2277,17 +2302,17 @@ function pl(e) {
2277
2302
  t = l;
2278
2303
  }
2279
2304
  }
2280
- function vl(e) {
2305
+ function _l(e) {
2281
2306
  const t = [], r = [];
2282
2307
  for (let o = 0; o < e.length; o++) e[o].oldIndex >= 0 && (t.push(e[o].oldIndex), r.push(o));
2283
- const l = gl(t), a = /* @__PURE__ */ new Set();
2308
+ const l = yl(t), a = /* @__PURE__ */ new Set();
2284
2309
  for (const o of l) {
2285
2310
  const s = r[o];
2286
2311
  s !== void 0 && a.add(s);
2287
2312
  }
2288
2313
  return a;
2289
2314
  }
2290
- function gl(e) {
2315
+ function yl(e) {
2291
2316
  if (e.length === 0) return [];
2292
2317
  const t = new Array(e.length).fill(-1), r = new Array(e.length).fill(0);
2293
2318
  let l = 0;
@@ -2306,7 +2331,7 @@ function gl(e) {
2306
2331
  a[s] = o, o = t[o];
2307
2332
  return a;
2308
2333
  }
2309
- function Is(e, t, r) {
2334
+ function Vs(e, t, r) {
2310
2335
  return G((l, a) => {
2311
2336
  if (!a) {
2312
2337
  const o = l.parentNode;
@@ -2327,10 +2352,10 @@ function Is(e, t, r) {
2327
2352
  }
2328
2353
  return o.insertBefore(m, n), c;
2329
2354
  }
2330
- return bl(e, t, r, a), a;
2355
+ return xl(e, t, r, a), a;
2331
2356
  });
2332
2357
  }
2333
- function bl(e, t, r, l) {
2358
+ function xl(e, t, r, l) {
2334
2359
  const a = l.keyToItem, o = /* @__PURE__ */ new Map(), s = l.startMarker.parentElement, n = l.endMarker;
2335
2360
  if (a.size === e.length) {
2336
2361
  let u = !0, h = 0;
@@ -2395,13 +2420,13 @@ function d(e, t, r) {
2395
2420
  endMarker: n,
2396
2421
  nodes: []
2397
2422
  };
2398
- return e ? te(c, !0) : c.falseTemplate && te(c, !1), c.condition = e, c;
2423
+ return e ? re(c, !0) : c.falseTemplate && re(c, !1), c.condition = e, c;
2399
2424
  }
2400
2425
  if (!a.startMarker.parentNode) throw new Error("when() directive: markers were removed from DOM");
2401
2426
  if (e && !a.condition)
2402
- Xe(a), a.template = t(), te(a, !0);
2427
+ Xe(a), a.template = t(), re(a, !0);
2403
2428
  else if (!e && a.condition)
2404
- Xe(a), r && (a.falseTemplate = r(), te(a, !1));
2429
+ Xe(a), r && (a.falseTemplate = r(), re(a, !1));
2405
2430
  else if (e && a.condition) {
2406
2431
  const o = t();
2407
2432
  a.container && o.renderInto(a.container), a.template = o;
@@ -2412,7 +2437,7 @@ function d(e, t, r) {
2412
2437
  return a.condition = e, a;
2413
2438
  });
2414
2439
  }
2415
- function te(e, t) {
2440
+ function re(e, t) {
2416
2441
  const r = e.startMarker.parentNode;
2417
2442
  if (!r) throw new Error("when() directive: markers not in DOM");
2418
2443
  const l = t ? e.template : e.falseTemplate;
@@ -2443,7 +2468,7 @@ function W(e) {
2443
2468
  return a;
2444
2469
  });
2445
2470
  }
2446
- function Ms(e) {
2471
+ function js(e) {
2447
2472
  return G((t, r) => {
2448
2473
  if (!r) {
2449
2474
  const l = t.parentNode;
@@ -2473,10 +2498,10 @@ function Je(e, t) {
2473
2498
  for (const o of t.nodes) r.insertBefore(o, t.endMarker);
2474
2499
  t.html = e;
2475
2500
  }
2476
- function fl(e) {
2501
+ function wl(e) {
2477
2502
  return typeof e == "string" ? document.querySelector(e) : e;
2478
2503
  }
2479
- function _l(e) {
2504
+ function kl(e) {
2480
2505
  return typeof e == "string" ? {
2481
2506
  target: e,
2482
2507
  persist: !1
@@ -2488,12 +2513,12 @@ function _l(e) {
2488
2513
  persist: e.persist ?? !1
2489
2514
  };
2490
2515
  }
2491
- function yl(e, t, r) {
2516
+ function $l(e, t, r) {
2492
2517
  if (!t) {
2493
2518
  console.warn("portal directive: value is required");
2494
2519
  return;
2495
2520
  }
2496
- const l = _l(t), a = fl(l.target);
2521
+ const l = kl(t), a = wl(l.target);
2497
2522
  if (!a) {
2498
2523
  console.warn(`portal directive: target "${l.target}" not found`);
2499
2524
  return;
@@ -2504,16 +2529,16 @@ function yl(e, t, r) {
2504
2529
  l.persist || e.remove(), o.remove();
2505
2530
  };
2506
2531
  }
2507
- ne("portal", yl);
2508
- var Ps = class {
2532
+ ne("portal", $l);
2533
+ var Fs = class {
2509
2534
  constructor() {
2510
2535
  this.__directive = !0;
2511
2536
  }
2512
2537
  };
2513
- const Dr = Symbol("melodic.formControl");
2514
- var xl = class {
2538
+ const Ir = Symbol("melodic.formControl");
2539
+ var Cl = class {
2515
2540
  constructor(e, t = {}) {
2516
- this[Dr] = !0, this._validators = [], this._asyncValidators = [], this._touched = M(!1), this._dirty = M(!1), this._pending = M(!1), this._disabled = M(!1), this._asyncValidationId = 0, this.initialValue = e, this.value = M(e), this.errors = M(null), this._validators = t.validators ?? [], this._asyncValidators = t.asyncValidators ?? [], this._disabled.set(t.disabled ?? !1), this.updateOn = t.updateOn ?? "input", this.dirty = T(() => this._dirty()), this.touched = T(() => this._touched()), this.pristine = T(() => !this._dirty()), this.pending = T(() => this._pending()), this.disabled = T(() => this._disabled()), this.valid = T(() => this.errors() === null && !this._pending()), this.invalid = T(() => this.errors() !== null), this.state = T(() => ({
2541
+ this[Ir] = !0, this._validators = [], this._asyncValidators = [], this._touched = M(!1), this._dirty = M(!1), this._pending = M(!1), this._disabled = M(!1), this._asyncValidationId = 0, this.initialValue = e, this.value = M(e), this.errors = M(null), this._validators = t.validators ?? [], this._asyncValidators = t.asyncValidators ?? [], this._disabled.set(t.disabled ?? !1), this.updateOn = t.updateOn ?? "input", this.dirty = T(() => this._dirty()), this.touched = T(() => this._touched()), this.pristine = T(() => !this._dirty()), this.pending = T(() => this._pending()), this.disabled = T(() => this._disabled()), this.valid = T(() => this.errors() === null && !this._pending()), this.invalid = T(() => this.errors() !== null), this.state = T(() => ({
2517
2542
  dirty: this._dirty(),
2518
2543
  touched: this._touched(),
2519
2544
  pristine: !this._dirty(),
@@ -2610,10 +2635,10 @@ var xl = class {
2610
2635
  this.errors.set(t);
2611
2636
  }
2612
2637
  };
2613
- const wl = Symbol("melodic.formGroup");
2614
- var kl = class {
2638
+ const Sl = Symbol("melodic.formGroup");
2639
+ var El = class {
2615
2640
  constructor(e, t = {}) {
2616
- this[wl] = !0, this._validators = [], this._asyncValidators = [], this._disabled = M(!1), this._controlEffects = [], this.controls = e, this._validators = t.validators ?? [], this._asyncValidators = t.asyncValidators ?? [], this._disabled.set(t.disabled ?? !1), this.value = T(() => this.computeValue()), this.errors = M(null), this.setupControlWatchers(), this.valid = T(() => this.errors() !== null ? !1 : Object.values(this.controls).every((r) => r.valid())), this.invalid = T(() => !this.valid()), this.pending = T(() => Object.values(this.controls).some((r) => r.pending())), this.dirty = T(() => Object.values(this.controls).some((r) => r.dirty())), this.touched = T(() => Object.values(this.controls).some((r) => r.touched())), this.pristine = T(() => !this.dirty()), this.disabled = T(() => this._disabled()), this.runGroupValidation();
2641
+ this[Sl] = !0, this._validators = [], this._asyncValidators = [], this._disabled = M(!1), this._controlEffects = [], this.controls = e, this._validators = t.validators ?? [], this._asyncValidators = t.asyncValidators ?? [], this._disabled.set(t.disabled ?? !1), this.value = T(() => this.computeValue()), this.errors = M(null), this.setupControlWatchers(), this.valid = T(() => this.errors() !== null ? !1 : Object.values(this.controls).every((r) => r.valid())), this.invalid = T(() => !this.valid()), this.pending = T(() => Object.values(this.controls).some((r) => r.pending())), this.dirty = T(() => Object.values(this.controls).some((r) => r.dirty())), this.touched = T(() => Object.values(this.controls).some((r) => r.touched())), this.pristine = T(() => !this.dirty()), this.disabled = T(() => this._disabled()), this.runGroupValidation();
2617
2642
  }
2618
2643
  get(e) {
2619
2644
  return this.controls[e];
@@ -2704,7 +2729,7 @@ var kl = class {
2704
2729
  });
2705
2730
  }
2706
2731
  setupControlWatcher(e) {
2707
- const t = new Tr(() => {
2732
+ const t = new zr(() => {
2708
2733
  e.value(), this.runGroupValidation();
2709
2734
  });
2710
2735
  t.run(), this._controlEffects.push(t);
@@ -2729,13 +2754,13 @@ var kl = class {
2729
2754
  this.errors.set(t);
2730
2755
  }
2731
2756
  };
2732
- function Os(e, t) {
2733
- return new xl(e, t);
2757
+ function qs(e, t) {
2758
+ return new Cl(e, t);
2734
2759
  }
2735
- function Ns(e, t) {
2736
- return new kl(e, t);
2760
+ function Bs(e, t) {
2761
+ return new El(e, t);
2737
2762
  }
2738
- const Ls = {
2763
+ const Hs = {
2739
2764
  required: (e) => e == null || e === "" || Array.isArray(e) && e.length === 0 ? { required: {
2740
2765
  code: "required",
2741
2766
  message: "This field is required"
@@ -2811,22 +2836,22 @@ const Ls = {
2811
2836
  return l;
2812
2837
  }
2813
2838
  };
2814
- function Vs(e, t, r) {
2839
+ function Ks(e, t, r) {
2815
2840
  return (l) => t(l) ? null : { [e]: {
2816
2841
  code: e,
2817
2842
  message: typeof r == "function" ? r(l) : r
2818
2843
  } };
2819
2844
  }
2820
- function js(e, t, r) {
2845
+ function Ws(e, t, r) {
2821
2846
  return async (l) => await t(l) ? null : { [e]: {
2822
2847
  code: e,
2823
2848
  message: typeof r == "function" ? r(l) : r
2824
2849
  } };
2825
2850
  }
2826
- function $l(e) {
2827
- return e !== null && typeof e == "object" && Dr in e;
2851
+ function Rl(e) {
2852
+ return e !== null && typeof e == "object" && Ir in e;
2828
2853
  }
2829
- function Cl(e) {
2854
+ function Tl(e) {
2830
2855
  const t = e.tagName.toLowerCase();
2831
2856
  if (t === "select") return "select";
2832
2857
  if (t === "textarea") return "textarea";
@@ -2837,12 +2862,12 @@ function Cl(e) {
2837
2862
  }
2838
2863
  return "text";
2839
2864
  }
2840
- function Sl(e, t, r) {
2841
- if (!$l(t)) {
2865
+ function zl(e, t, r) {
2866
+ if (!Rl(t)) {
2842
2867
  console.warn("formControl directive: value must be a FormControl");
2843
2868
  return;
2844
2869
  }
2845
- const l = t, a = Cl(e), o = [], s = (f) => {
2870
+ const l = t, a = Tl(e), o = [], s = (f) => {
2846
2871
  a === "checkbox" ? e.checked = !!f : a === "radio" ? e.checked = e.value === f : e.value = f != null ? String(f) : "";
2847
2872
  }, n = (f) => {
2848
2873
  f ? e.setAttribute("disabled", "") : e.removeAttribute("disabled");
@@ -2872,8 +2897,8 @@ function Sl(e, t, r) {
2872
2897
  e.removeEventListener(w, m), e.removeEventListener("blur", u), e.removeAttribute("data-form-control"), o.forEach((f) => f());
2873
2898
  };
2874
2899
  }
2875
- ne("formControl", Sl);
2876
- const El = {
2900
+ ne("formControl", zl);
2901
+ const Al = {
2877
2902
  "--ml-white": "#ffffff",
2878
2903
  "--ml-black": "#000000",
2879
2904
  "--ml-gray-25": "#fcfcfd",
@@ -2960,7 +2985,7 @@ const El = {
2960
2985
  "--ml-purple-800": "#53389e",
2961
2986
  "--ml-purple-900": "#42307d",
2962
2987
  "--ml-purple-950": "#2c1c5f"
2963
- }, Rl = {
2988
+ }, Dl = {
2964
2989
  "--ml-color-primary": "var(--ml-blue-600)",
2965
2990
  "--ml-color-primary-hover": "var(--ml-blue-700)",
2966
2991
  "--ml-color-primary-active": "var(--ml-blue-800)",
@@ -3038,7 +3063,7 @@ const El = {
3038
3063
  "--ml-tooltip-bg": "var(--ml-gray-900)",
3039
3064
  "--ml-tooltip-text": "var(--ml-white)",
3040
3065
  "--ml-card-footer-bg": "var(--ml-gray-50)"
3041
- }, Tl = {
3066
+ }, Il = {
3042
3067
  "--ml-space-0": "0",
3043
3068
  "--ml-space-px": "1px",
3044
3069
  "--ml-space-0-5": "0.125rem",
@@ -3074,7 +3099,7 @@ const El = {
3074
3099
  "--ml-space-72": "18rem",
3075
3100
  "--ml-space-80": "20rem",
3076
3101
  "--ml-space-96": "24rem"
3077
- }, zl = {
3102
+ }, Ml = {
3078
3103
  "--ml-font-sans": "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
3079
3104
  "--ml-font-serif": "Georgia, Cambria, 'Times New Roman', Times, serif",
3080
3105
  "--ml-font-mono": "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
@@ -3112,7 +3137,7 @@ const El = {
3112
3137
  "--ml-tracking-wide": "0.025em",
3113
3138
  "--ml-tracking-wider": "0.05em",
3114
3139
  "--ml-tracking-widest": "0.1em"
3115
- }, Al = {
3140
+ }, Pl = {
3116
3141
  "--ml-shadow-none": "none",
3117
3142
  "--ml-shadow-xs": "0 1px 2px 0 rgb(16 24 40 / 0.05)",
3118
3143
  "--ml-shadow-sm": "0 1px 2px 0 rgb(16 24 40 / 0.06), 0 1px 3px 0 rgb(16 24 40 / 0.1)",
@@ -3137,7 +3162,7 @@ const El = {
3137
3162
  "--ml-shadow-primary": "0 1px 2px 0 rgb(21 94 239 / 0.05)",
3138
3163
  "--ml-shadow-success": "0 1px 2px 0 rgb(7 148 85 / 0.05)",
3139
3164
  "--ml-shadow-danger": "0 1px 2px 0 rgb(217 45 32 / 0.05)"
3140
- }, Dl = {
3165
+ }, Ol = {
3141
3166
  "--ml-radius-none": "0",
3142
3167
  "--ml-radius-xxs": "0.125rem",
3143
3168
  "--ml-radius-xs": "0.25rem",
@@ -3155,7 +3180,7 @@ const El = {
3155
3180
  "--ml-border-2": "2px",
3156
3181
  "--ml-border-4": "4px",
3157
3182
  "--ml-border-8": "8px"
3158
- }, Il = {
3183
+ }, Nl = {
3159
3184
  "--ml-duration-0": "0ms",
3160
3185
  "--ml-duration-75": "75ms",
3161
3186
  "--ml-duration-100": "100ms",
@@ -3176,35 +3201,35 @@ const El = {
3176
3201
  "--ml-transition-opacity": "opacity var(--ml-duration-150) var(--ml-ease-in-out)",
3177
3202
  "--ml-transition-shadow": "box-shadow var(--ml-duration-150) var(--ml-ease-in-out)",
3178
3203
  "--ml-transition-transform": "transform var(--ml-duration-150) var(--ml-ease-in-out)"
3179
- }, Ml = {
3204
+ }, Ll = {
3180
3205
  "--ml-screen-xs": "320px",
3181
3206
  "--ml-screen-sm": "640px",
3182
3207
  "--ml-screen-md": "768px",
3183
3208
  "--ml-screen-lg": "1024px",
3184
3209
  "--ml-screen-xl": "1280px",
3185
3210
  "--ml-screen-2xl": "1536px"
3186
- }, Fs = {
3211
+ }, Gs = {
3187
3212
  xs: 320,
3188
3213
  sm: 640,
3189
3214
  md: 768,
3190
3215
  lg: 1024,
3191
3216
  xl: 1280,
3192
3217
  "2xl": 1536
3193
- }, Pl = {
3194
- ...El,
3195
- ...Rl,
3196
- ...Tl,
3197
- ...zl,
3218
+ }, Vl = {
3198
3219
  ...Al,
3199
3220
  ...Dl,
3200
3221
  ...Il,
3201
- ...Ml
3222
+ ...Ml,
3223
+ ...Pl,
3224
+ ...Ol,
3225
+ ...Nl,
3226
+ ...Ll
3202
3227
  };
3203
- function Ol(e) {
3228
+ function jl(e) {
3204
3229
  return Object.entries(e).map(([t, r]) => `${t}: ${r};`).join(`
3205
3230
  `);
3206
3231
  }
3207
- const Nl = {
3232
+ const Fl = {
3208
3233
  "--ml-color-background": "var(--ml-white)",
3209
3234
  "--ml-color-surface": "var(--ml-white)",
3210
3235
  "--ml-color-surface-raised": "var(--ml-gray-50)",
@@ -3218,8 +3243,8 @@ const Nl = {
3218
3243
  "--ml-color-border": "var(--ml-gray-200)",
3219
3244
  "--ml-color-border-strong": "var(--ml-gray-300)",
3220
3245
  "--ml-color-border-muted": "var(--ml-gray-100)"
3221
- }, qs = `:root, [data-theme="light"] {
3222
- ${Object.entries(Nl).map(([e, t]) => `${e}: ${t};`).join(`
3246
+ }, Us = `:root, [data-theme="light"] {
3247
+ ${Object.entries(Fl).map(([e, t]) => `${e}: ${t};`).join(`
3223
3248
  `)}
3224
3249
 
3225
3250
  color-scheme: light;
@@ -3292,7 +3317,7 @@ const Nl = {
3292
3317
  "--ml-tooltip-bg": "var(--ml-gray-100)",
3293
3318
  "--ml-tooltip-text": "var(--ml-gray-900)",
3294
3319
  "--ml-card-footer-bg": "var(--ml-gray-800)"
3295
- }, Bs = `[data-theme="dark"] {
3320
+ }, Ys = `[data-theme="dark"] {
3296
3321
  ${Object.entries(Qe).map(([e, t]) => `${e}: ${t};`).join(`
3297
3322
  `)}
3298
3323
 
@@ -3306,57 +3331,57 @@ const Nl = {
3306
3331
 
3307
3332
  color-scheme: dark;
3308
3333
  }
3309
- }`, Hs = `:root {
3310
- ${Ol(Pl)}
3334
+ }`, Xs = `:root {
3335
+ ${jl(Vl)}
3311
3336
 
3312
3337
  /* Default to light color scheme */
3313
3338
  color-scheme: light;
3314
3339
  }`;
3315
- var ae = "system", Ce = /* @__PURE__ */ new Set(), re = null;
3316
- function Ks() {
3317
- return ae;
3340
+ var oe = "system", Ce = /* @__PURE__ */ new Set(), le = null;
3341
+ function Js() {
3342
+ return oe;
3318
3343
  }
3319
- function Ll() {
3320
- return ae === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : ae;
3344
+ function ql() {
3345
+ return oe === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : oe;
3321
3346
  }
3322
- function Vl(e) {
3323
- if (re && (re(), re = null), ae = e, e === "system") {
3347
+ function Bl(e) {
3348
+ if (le && (le(), le = null), oe = e, e === "system") {
3324
3349
  const t = window.matchMedia("(prefers-color-scheme: dark)"), r = () => {
3325
3350
  const a = t.matches ? "dark" : "light";
3326
3351
  document.documentElement.setAttribute("data-theme", a), ge("system", a);
3327
3352
  };
3328
- t.addEventListener("change", r), re = () => t.removeEventListener("change", r);
3353
+ t.addEventListener("change", r), le = () => t.removeEventListener("change", r);
3329
3354
  const l = t.matches ? "dark" : "light";
3330
3355
  document.documentElement.setAttribute("data-theme", l), ge("system", l);
3331
3356
  } else
3332
3357
  document.documentElement.setAttribute("data-theme", e), ge(e, e);
3333
3358
  }
3334
- function Ws(e) {
3359
+ function Qs(e) {
3335
3360
  return Ce.add(e), () => Ce.delete(e);
3336
3361
  }
3337
3362
  function ge(e, t) {
3338
3363
  Ce.forEach((r) => r(e, t));
3339
3364
  }
3340
- function Gs() {
3341
- Vl(Ll() === "light" ? "dark" : "light");
3365
+ function Zs() {
3366
+ Bl(ql() === "light" ? "dark" : "light");
3342
3367
  }
3343
- function Ir(e, t) {
3368
+ function Mr(e, t) {
3344
3369
  return `[data-theme="${e}"] {
3345
3370
  ${Object.entries(t).map(([r, l]) => `${r}: ${l};`).join(`
3346
3371
  `)}
3347
3372
  }`;
3348
3373
  }
3349
- function Us(e, t) {
3350
- const r = Ir(e, t), l = document.createElement("style");
3374
+ function en(e, t) {
3375
+ const r = Mr(e, t), l = document.createElement("style");
3351
3376
  l.id = `ml-theme-${e}`, l.textContent = r;
3352
3377
  const a = document.getElementById(l.id);
3353
3378
  return a && a.remove(), document.head.appendChild(l), l;
3354
3379
  }
3355
- function Ys(e, t) {
3380
+ function tn(e, t) {
3356
3381
  const r = {};
3357
- return t.primary && (r["--ml-color-primary"] = t.primary), t.secondary && (r["--ml-color-secondary"] = t.secondary), t.success && (r["--ml-color-success"] = t.success), t.warning && (r["--ml-color-warning"] = t.warning), t.danger && (r["--ml-color-danger"] = t.danger), Ir(e, r);
3382
+ return t.primary && (r["--ml-color-primary"] = t.primary), t.secondary && (r["--ml-color-secondary"] = t.secondary), t.success && (r["--ml-color-success"] = t.success), t.warning && (r["--ml-color-warning"] = t.warning), t.danger && (r["--ml-color-danger"] = t.danger), Mr(e, r);
3358
3383
  }
3359
- function jl(e, t, r) {
3384
+ function Hl(e, t, r) {
3360
3385
  const [l, a = "center"] = r.split("-");
3361
3386
  let o = 0, s = 0;
3362
3387
  switch (l) {
@@ -3401,7 +3426,7 @@ function jl(e, t, r) {
3401
3426
  };
3402
3427
  }
3403
3428
  function ce(e, t, r = {}) {
3404
- const { placement: l = "bottom", middleware: a = [] } = r, o = e.getBoundingClientRect(), s = t.getBoundingClientRect(), { x: n, y: c } = jl(o, s, l);
3429
+ const { placement: l = "bottom", middleware: a = [] } = r, o = e.getBoundingClientRect(), s = t.getBoundingClientRect(), { x: n, y: c } = Hl(o, s, l);
3405
3430
  let m = {
3406
3431
  x: n,
3407
3432
  y: c,
@@ -3433,7 +3458,7 @@ function ce(e, t, r = {}) {
3433
3458
  middlewareData: m.middlewareData
3434
3459
  };
3435
3460
  }
3436
- function Fl(e) {
3461
+ function Kl(e) {
3437
3462
  const t = {
3438
3463
  top: "bottom",
3439
3464
  bottom: "top",
@@ -3442,10 +3467,10 @@ function Fl(e) {
3442
3467
  };
3443
3468
  return e.replace(/top|bottom|left|right/g, (r) => t[r]);
3444
3469
  }
3445
- function oe(e) {
3470
+ function ie(e) {
3446
3471
  return e.split("-")[0];
3447
3472
  }
3448
- function ql(e) {
3473
+ function Wl(e) {
3449
3474
  const t = [];
3450
3475
  let r = e;
3451
3476
  for (; r; ) {
@@ -3464,7 +3489,7 @@ function ql(e) {
3464
3489
  function De(e, t, r, l = {}) {
3465
3490
  const { ancestorScroll: a = !0, ancestorResize: o = !0, elementResize: s = !0, animationFrame: n = !1 } = l, c = [];
3466
3491
  if (a) {
3467
- const m = ql(e);
3492
+ const m = Wl(e);
3468
3493
  for (const u of m)
3469
3494
  u.addEventListener("scroll", r, { passive: !0 }), c.push(() => u.removeEventListener("scroll", r));
3470
3495
  window.addEventListener("scroll", r, { passive: !0 }), c.push(() => window.removeEventListener("scroll", r));
@@ -3491,7 +3516,7 @@ function me(e = 0) {
3491
3516
  return {
3492
3517
  name: "offset",
3493
3518
  fn(l) {
3494
- const { x: a, y: o, placement: s } = l, n = oe(s);
3519
+ const { x: a, y: o, placement: s } = l, n = ie(s);
3495
3520
  let c = a, m = o;
3496
3521
  switch (n) {
3497
3522
  case "top":
@@ -3547,12 +3572,12 @@ function ue(e = {}) {
3547
3572
  return {
3548
3573
  name: "flip",
3549
3574
  fn(r) {
3550
- const { x: l, y: a, placement: o, rects: s } = r, n = oe(o);
3575
+ const { x: l, y: a, placement: o, rects: s } = r, n = ie(o);
3551
3576
  if (!et(Ze(l, a, s.floating, t), n)) return;
3552
- const c = Fl(o), m = e.fallbackPlacements ?? [c];
3577
+ const c = Kl(o), m = e.fallbackPlacements ?? [c];
3553
3578
  for (const u of m) {
3554
- const h = Bl(s.reference, s.floating, u);
3555
- if (!et(Ze(h.x, h.y, s.floating, t), oe(u))) return {
3579
+ const h = Gl(s.reference, s.floating, u);
3580
+ if (!et(Ze(h.x, h.y, s.floating, t), ie(u))) return {
3556
3581
  x: h.x,
3557
3582
  y: h.y,
3558
3583
  placement: u
@@ -3561,7 +3586,7 @@ function ue(e = {}) {
3561
3586
  }
3562
3587
  };
3563
3588
  }
3564
- function Bl(e, t, r) {
3589
+ function Gl(e, t, r) {
3565
3590
  const [l, a = "center"] = r.split("-");
3566
3591
  let o = 0, s = 0;
3567
3592
  switch (l) {
@@ -3630,12 +3655,12 @@ function he(e = {}) {
3630
3655
  }
3631
3656
  };
3632
3657
  }
3633
- function Mr(e) {
3658
+ function Pr(e) {
3634
3659
  const { element: t, padding: r = 0 } = e;
3635
3660
  return {
3636
3661
  name: "arrow",
3637
3662
  fn(l) {
3638
- const { rects: a, placement: o } = l, s = oe(o), n = t.getBoundingClientRect(), c = n.width, m = n.height;
3663
+ const { rects: a, placement: o } = l, s = ie(o), n = t.getBoundingClientRect(), c = n.width, m = n.height;
3639
3664
  let u, h;
3640
3665
  if (s === "top" || s === "bottom") {
3641
3666
  u = a.reference.left + a.reference.width / 2 - l.x - c / 2;
@@ -3654,7 +3679,7 @@ function Mr(e) {
3654
3679
  }
3655
3680
  };
3656
3681
  }
3657
- var Hl = [
3682
+ var Ul = [
3658
3683
  "a[href]",
3659
3684
  "area[href]",
3660
3685
  'input:not([disabled]):not([type="hidden"])',
@@ -3668,24 +3693,24 @@ var Hl = [
3668
3693
  '[tabindex]:not([tabindex="-1"])'
3669
3694
  ].join(", ");
3670
3695
  function Ie(e) {
3671
- return Array.from(e.querySelectorAll(Hl)).filter((t) => !(t.offsetParent === null && t.style.position !== "fixed" || getComputedStyle(t).visibility === "hidden"));
3696
+ return Array.from(e.querySelectorAll(Ul)).filter((t) => !(t.offsetParent === null && t.style.position !== "fixed" || getComputedStyle(t).visibility === "hidden"));
3672
3697
  }
3673
- function Pr(e) {
3698
+ function Or(e) {
3674
3699
  return Ie(e)[0] ?? null;
3675
3700
  }
3676
- function Kl(e) {
3701
+ function Yl(e) {
3677
3702
  const t = Ie(e);
3678
3703
  return t[t.length - 1] ?? null;
3679
3704
  }
3680
- function Xs(e) {
3681
- const t = Pr(e);
3705
+ function rn(e) {
3706
+ const t = Or(e);
3682
3707
  return t ? (t.focus(), !0) : !1;
3683
3708
  }
3684
- function Js(e) {
3685
- const t = Kl(e);
3709
+ function ln(e) {
3710
+ const t = Yl(e);
3686
3711
  return t ? (t.focus(), !0) : !1;
3687
3712
  }
3688
- function Wl(e, t = {}) {
3713
+ function Xl(e, t = {}) {
3689
3714
  const { initialFocus: r = null, returnFocus: l = null, autoFocus: a = !0 } = t;
3690
3715
  let o = !1, s = null;
3691
3716
  function n(h) {
@@ -3699,7 +3724,7 @@ function Wl(e, t = {}) {
3699
3724
  if (!o) {
3700
3725
  if (o = !0, s = document.activeElement, e.addEventListener("keydown", n), r) r.focus();
3701
3726
  else if (a) {
3702
- const h = Pr(e);
3727
+ const h = Or(e);
3703
3728
  h && h.focus();
3704
3729
  }
3705
3730
  }
@@ -3719,12 +3744,12 @@ function Wl(e, t = {}) {
3719
3744
  isActive: u
3720
3745
  };
3721
3746
  }
3722
- function Qs(e, t) {
3723
- const r = Wl(e, t);
3747
+ function an(e, t) {
3748
+ const r = Xl(e, t);
3724
3749
  return r.activate(), () => r.deactivate();
3725
3750
  }
3726
3751
  var X = !1, tt = !1;
3727
- function Or() {
3752
+ function Nr() {
3728
3753
  tt || (tt = !0, document.addEventListener("keydown", () => {
3729
3754
  X = !0;
3730
3755
  }, !0), document.addEventListener("mousedown", () => {
@@ -3733,11 +3758,11 @@ function Or() {
3733
3758
  X = !1;
3734
3759
  }, !0));
3735
3760
  }
3736
- function Zs() {
3737
- return Or(), X;
3761
+ function on() {
3762
+ return Nr(), X;
3738
3763
  }
3739
- function en(e, t = "focus-visible") {
3740
- Or();
3764
+ function sn(e, t = "focus-visible") {
3765
+ Nr();
3741
3766
  function r() {
3742
3767
  X && e.classList.add(t);
3743
3768
  }
@@ -3749,7 +3774,7 @@ function en(e, t = "focus-visible") {
3749
3774
  };
3750
3775
  }
3751
3776
  var D = null;
3752
- function Gl() {
3777
+ function Jl() {
3753
3778
  return D && document.body.contains(D) || (D = document.createElement("div"), D.id = "ml-live-region", D.setAttribute("aria-live", "polite"), D.setAttribute("aria-atomic", "true"), D.setAttribute("role", "status"), Object.assign(D.style, {
3754
3779
  position: "absolute",
3755
3780
  width: "1px",
@@ -3762,13 +3787,13 @@ function Gl() {
3762
3787
  border: "0"
3763
3788
  }), document.body.appendChild(D)), D;
3764
3789
  }
3765
- function tn(e, t = "polite") {
3766
- const r = Gl();
3790
+ function nn(e, t = "polite") {
3791
+ const r = Jl();
3767
3792
  r.setAttribute("aria-live", t), r.textContent = "", setTimeout(() => {
3768
3793
  r.textContent = e;
3769
3794
  }, 50);
3770
3795
  }
3771
- function rn(e = {}) {
3796
+ function dn(e = {}) {
3772
3797
  const { id: t, priority: r = "polite", atomic: l = !0 } = e, a = document.createElement("div");
3773
3798
  return t && (a.id = t), a.setAttribute("aria-live", r), a.setAttribute("aria-atomic", l.toString()), a.setAttribute("role", "status"), Object.assign(a.style, {
3774
3799
  position: "absolute",
@@ -3782,7 +3807,7 @@ function rn(e = {}) {
3782
3807
  border: "0"
3783
3808
  }), a;
3784
3809
  }
3785
- const ln = `
3810
+ const cn = `
3786
3811
  *,
3787
3812
  *::before,
3788
3813
  *::after {
@@ -3827,7 +3852,7 @@ const ln = `
3827
3852
  [hidden] {
3828
3853
  display: none !important;
3829
3854
  }
3830
- `, an = `
3855
+ `, mn = `
3831
3856
  .visually-hidden {
3832
3857
  position: absolute;
3833
3858
  width: 1px;
@@ -3850,7 +3875,7 @@ const ln = `
3850
3875
  clip: auto;
3851
3876
  white-space: normal;
3852
3877
  }
3853
- `, on = `
3878
+ `, un = `
3854
3879
  :host {
3855
3880
  /* Inherit font from parent by default */
3856
3881
  font-family: var(--ml-font-sans);
@@ -3882,7 +3907,7 @@ const ln = `
3882
3907
  display: none !important;
3883
3908
  }
3884
3909
  `;
3885
- function sn(e, t) {
3910
+ function hn(e, t) {
3886
3911
  function r(l) {
3887
3912
  const a = l.target;
3888
3913
  e.contains(a) || t(l);
@@ -3891,7 +3916,7 @@ function sn(e, t) {
3891
3916
  document.removeEventListener("click", r, !0);
3892
3917
  };
3893
3918
  }
3894
- var Nr = class {
3919
+ var Lr = class {
3895
3920
  constructor() {
3896
3921
  this._viewport = null, this._resizeObserver = null, this._options = null, this._handleScroll = () => {
3897
3922
  this._compute(this._viewport.clientHeight);
@@ -3922,24 +3947,24 @@ var Nr = class {
3922
3947
  l(Math.max(0, Math.floor(n / c) - o), Math.min(s, Math.ceil((n + e) / c) + o));
3923
3948
  }
3924
3949
  };
3925
- const Ul = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, function(e) {
3950
+ const Ql = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, function(e) {
3926
3951
  const t = Math.trunc(Math.random() * 16);
3927
3952
  return (e === "x" ? t : t & 3 | 8).toString(16);
3928
3953
  });
3929
- function Yl(e) {
3954
+ function Zl(e) {
3930
3955
  return typeof e == "string" ? { content: e } : e && typeof e == "object" && "content" in e ? e : { content: String(e ?? "") };
3931
3956
  }
3932
- function Xl(e, t) {
3957
+ function ea(e, t) {
3933
3958
  if (!t) return;
3934
- const { content: r, placement: l } = Yl(t);
3959
+ const { content: r, placement: l } = Zl(t);
3935
3960
  if (!r) return;
3936
3961
  const a = document.createElement("ml-tooltip");
3937
3962
  return a.setAttribute("content", r), l && a.setAttribute("placement", l), e.parentNode?.insertBefore(a, e), a.appendChild(e), () => {
3938
3963
  a.parentNode?.insertBefore(e, a), a.remove();
3939
3964
  };
3940
3965
  }
3941
- ne("tooltip", Xl);
3942
- function Jl(e) {
3966
+ ne("tooltip", ea);
3967
+ function ta(e) {
3943
3968
  return i`
3944
3969
  <div
3945
3970
  class=${v({
@@ -3963,7 +3988,7 @@ function Jl(e) {
3963
3988
  </div>
3964
3989
  `;
3965
3990
  }
3966
- const Ql = () => y`
3991
+ const ra = () => y`
3967
3992
  :host {
3968
3993
  display: inline-flex;
3969
3994
  align-items: center;
@@ -4041,11 +4066,11 @@ var rt = class {
4041
4066
  };
4042
4067
  rt = g([_({
4043
4068
  selector: "ml-spinner",
4044
- template: Jl,
4045
- styles: Ql,
4069
+ template: ta,
4070
+ styles: ra,
4046
4071
  attributes: ["size", "label"]
4047
4072
  })], rt);
4048
- function Zl(e) {
4073
+ function la(e) {
4049
4074
  return i`
4050
4075
  <button
4051
4076
  type="${e.type}"
@@ -4075,7 +4100,7 @@ function Zl(e) {
4075
4100
  </button>
4076
4101
  `;
4077
4102
  }
4078
- const ea = () => y`
4103
+ const aa = () => y`
4079
4104
  :host {
4080
4105
  display: inline-block;
4081
4106
  }
@@ -4323,8 +4348,8 @@ var lt = class {
4323
4348
  };
4324
4349
  lt = g([_({
4325
4350
  selector: "ml-button",
4326
- template: Zl,
4327
- styles: ea,
4351
+ template: la,
4352
+ styles: aa,
4328
4353
  attributes: [
4329
4354
  "variant",
4330
4355
  "size",
@@ -4334,7 +4359,7 @@ lt = g([_({
4334
4359
  "full-width"
4335
4360
  ]
4336
4361
  })], lt);
4337
- function ta(e) {
4362
+ function oa(e) {
4338
4363
  return i`
4339
4364
  <div
4340
4365
  class=${v({
@@ -4347,7 +4372,7 @@ function ta(e) {
4347
4372
  </div>
4348
4373
  `;
4349
4374
  }
4350
- const ra = () => y`
4375
+ const ia = () => y`
4351
4376
  :host {
4352
4377
  display: inline-flex;
4353
4378
  }
@@ -4403,8 +4428,8 @@ var at = class {
4403
4428
  };
4404
4429
  at = g([_({
4405
4430
  selector: "ml-button-group",
4406
- template: ta,
4407
- styles: ra,
4431
+ template: oa,
4432
+ styles: ia,
4408
4433
  attributes: [
4409
4434
  "value",
4410
4435
  "variant",
@@ -4413,7 +4438,7 @@ at = g([_({
4413
4438
  "multiple"
4414
4439
  ]
4415
4440
  })], at);
4416
- function la(e) {
4441
+ function sa(e) {
4417
4442
  return i`
4418
4443
  <button
4419
4444
  type="button"
@@ -4427,7 +4452,7 @@ function la(e) {
4427
4452
  </button>
4428
4453
  `;
4429
4454
  }
4430
- const aa = () => y`
4455
+ const na = () => y`
4431
4456
  :host {
4432
4457
  display: inline-flex;
4433
4458
  }
@@ -4551,8 +4576,8 @@ var ot = class {
4551
4576
  };
4552
4577
  ot = g([_({
4553
4578
  selector: "ml-button-group-item",
4554
- template: la,
4555
- styles: aa,
4579
+ template: sa,
4580
+ styles: na,
4556
4581
  attributes: [
4557
4582
  "value",
4558
4583
  "icon",
@@ -4562,7 +4587,7 @@ ot = g([_({
4562
4587
  "group-size"
4563
4588
  ]
4564
4589
  })], ot);
4565
- function oa(e) {
4590
+ function da(e) {
4566
4591
  return i`
4567
4592
  <div
4568
4593
  class=${v({
@@ -4571,7 +4596,7 @@ function oa(e) {
4571
4596
  "ml-input--disabled": e.disabled,
4572
4597
  "ml-input--readonly": e.readonly,
4573
4598
  "ml-input--error": !!e.error,
4574
- "ml-input--focused": e._focused
4599
+ "ml-input--focused": e.focused
4575
4600
  })}
4576
4601
  >
4577
4602
  ${d(!!e.label, () => i`
@@ -4607,7 +4632,7 @@ function oa(e) {
4607
4632
  </div>
4608
4633
  `;
4609
4634
  }
4610
- const ia = () => y`
4635
+ const ca = () => y`
4611
4636
  :host {
4612
4637
  display: block;
4613
4638
  width: 100%;
@@ -4739,7 +4764,7 @@ const ia = () => y`
4739
4764
  `;
4740
4765
  var it = class {
4741
4766
  constructor() {
4742
- this.type = "text", this.value = "", this.placeholder = "", this.label = "", this.hint = "", this.error = "", this.size = "md", this.disabled = !1, this.readonly = !1, this.required = !1, this.autocomplete = "off", this._focused = !1, this.handleInput = (t) => {
4767
+ this.type = "text", this.value = "", this.placeholder = "", this.label = "", this.hint = "", this.error = "", this.size = "md", this.disabled = !1, this.readonly = !1, this.required = !1, this.autocomplete = "off", this.focused = !1, this.handleInput = (t) => {
4743
4768
  this.value = t.target.value, this.elementRef.dispatchEvent(new CustomEvent("ml:input", {
4744
4769
  bubbles: !0,
4745
4770
  composed: !0,
@@ -4752,12 +4777,12 @@ var it = class {
4752
4777
  detail: { value: this.value }
4753
4778
  }));
4754
4779
  }, this.handleFocus = () => {
4755
- this._focused = !0, this.elementRef.dispatchEvent(new CustomEvent("ml:focus", {
4780
+ this.focused = !0, this.elementRef.dispatchEvent(new CustomEvent("ml:focus", {
4756
4781
  bubbles: !0,
4757
4782
  composed: !0
4758
4783
  }));
4759
4784
  }, this.handleBlur = () => {
4760
- this._focused = !1, this.elementRef.dispatchEvent(new CustomEvent("ml:blur", {
4785
+ this.focused = !1, this.elementRef.dispatchEvent(new CustomEvent("ml:blur", {
4761
4786
  bubbles: !0,
4762
4787
  composed: !0
4763
4788
  }));
@@ -4769,8 +4794,8 @@ var it = class {
4769
4794
  };
4770
4795
  it = g([_({
4771
4796
  selector: "ml-input",
4772
- template: oa,
4773
- styles: ia,
4797
+ template: da,
4798
+ styles: ca,
4774
4799
  attributes: [
4775
4800
  "type",
4776
4801
  "value",
@@ -4785,7 +4810,7 @@ it = g([_({
4785
4810
  "autocomplete"
4786
4811
  ]
4787
4812
  })], it);
4788
- function sa(e) {
4813
+ function ma(e) {
4789
4814
  return i`
4790
4815
  <div
4791
4816
  class=${v({
@@ -4794,7 +4819,7 @@ function sa(e) {
4794
4819
  "ml-textarea--disabled": e.disabled,
4795
4820
  "ml-textarea--readonly": e.readonly,
4796
4821
  "ml-textarea--error": !!e.error,
4797
- "ml-textarea--focused": e._focused,
4822
+ "ml-textarea--focused": e.focused,
4798
4823
  "ml-textarea--resize": e.resize
4799
4824
  })}
4800
4825
  >
@@ -4832,7 +4857,7 @@ function sa(e) {
4832
4857
  </div>
4833
4858
  `;
4834
4859
  }
4835
- const na = () => y`
4860
+ const ua = () => y`
4836
4861
  :host {
4837
4862
  display: block;
4838
4863
  width: 100%;
@@ -4947,7 +4972,7 @@ const na = () => y`
4947
4972
  `;
4948
4973
  var st = class {
4949
4974
  constructor() {
4950
- this.value = "", this.placeholder = "", this.label = "", this.hint = "", this.error = "", this.size = "md", this.rows = 3, this.maxLength = 0, this.disabled = !1, this.readonly = !1, this.required = !1, this.resize = !1, this._focused = !1, this.handleInput = (t) => {
4975
+ this.value = "", this.placeholder = "", this.label = "", this.hint = "", this.error = "", this.size = "md", this.rows = 3, this.maxLength = 0, this.disabled = !1, this.readonly = !1, this.required = !1, this.resize = !1, this.focused = !1, this.handleInput = (t) => {
4951
4976
  this.value = t.target.value, this.elementRef.dispatchEvent(new CustomEvent("ml:input", {
4952
4977
  bubbles: !0,
4953
4978
  composed: !0,
@@ -4960,12 +4985,12 @@ var st = class {
4960
4985
  detail: { value: this.value }
4961
4986
  }));
4962
4987
  }, this.handleFocus = () => {
4963
- this._focused = !0, this.elementRef.dispatchEvent(new CustomEvent("ml:focus", {
4988
+ this.focused = !0, this.elementRef.dispatchEvent(new CustomEvent("ml:focus", {
4964
4989
  bubbles: !0,
4965
4990
  composed: !0
4966
4991
  }));
4967
4992
  }, this.handleBlur = () => {
4968
- this._focused = !1, this.elementRef.dispatchEvent(new CustomEvent("ml:blur", {
4993
+ this.focused = !1, this.elementRef.dispatchEvent(new CustomEvent("ml:blur", {
4969
4994
  bubbles: !0,
4970
4995
  composed: !0
4971
4996
  }));
@@ -4977,8 +5002,8 @@ var st = class {
4977
5002
  };
4978
5003
  st = g([_({
4979
5004
  selector: "ml-textarea",
4980
- template: sa,
4981
- styles: na,
5005
+ template: ma,
5006
+ styles: ua,
4982
5007
  attributes: [
4983
5008
  "value",
4984
5009
  "placeholder",
@@ -4994,7 +5019,7 @@ st = g([_({
4994
5019
  "resize"
4995
5020
  ]
4996
5021
  })], st);
4997
- function da(e) {
5022
+ function ha(e) {
4998
5023
  return i`
4999
5024
  <label
5000
5025
  class=${v({
@@ -5030,7 +5055,7 @@ function da(e) {
5030
5055
  ${d(!!e.hint, () => i`<span class="ml-checkbox__hint">${e.hint}</span>`)}
5031
5056
  `;
5032
5057
  }
5033
- const ca = () => y`
5058
+ const pa = () => y`
5034
5059
  :host {
5035
5060
  display: block;
5036
5061
  }
@@ -5162,8 +5187,8 @@ var nt = class {
5162
5187
  };
5163
5188
  nt = g([_({
5164
5189
  selector: "ml-checkbox",
5165
- template: da,
5166
- styles: ca,
5190
+ template: ha,
5191
+ styles: pa,
5167
5192
  attributes: [
5168
5193
  "label",
5169
5194
  "hint",
@@ -5173,7 +5198,7 @@ nt = g([_({
5173
5198
  "disabled"
5174
5199
  ]
5175
5200
  })], nt);
5176
- function ma(e) {
5201
+ function va(e) {
5177
5202
  return i`
5178
5203
  <label
5179
5204
  class=${v({
@@ -5200,7 +5225,7 @@ function ma(e) {
5200
5225
  ${d(!!e.hint, () => i`<span class="ml-radio__hint">${e.hint}</span>`)}
5201
5226
  `;
5202
5227
  }
5203
- const ua = () => y`
5228
+ const ga = () => y`
5204
5229
  :host {
5205
5230
  display: block;
5206
5231
  }
@@ -5343,8 +5368,8 @@ var dt = class {
5343
5368
  };
5344
5369
  dt = g([_({
5345
5370
  selector: "ml-radio",
5346
- template: ma,
5347
- styles: ua,
5371
+ template: va,
5372
+ styles: ga,
5348
5373
  attributes: [
5349
5374
  "name",
5350
5375
  "value",
@@ -5355,7 +5380,7 @@ dt = g([_({
5355
5380
  "disabled"
5356
5381
  ]
5357
5382
  })], dt);
5358
- function ha(e) {
5383
+ function ba(e) {
5359
5384
  return i`
5360
5385
  <fieldset
5361
5386
  class=${v({
@@ -5382,7 +5407,7 @@ function ha(e) {
5382
5407
  </fieldset>
5383
5408
  `;
5384
5409
  }
5385
- const pa = () => y`
5410
+ const fa = () => y`
5386
5411
  :host {
5387
5412
  display: block;
5388
5413
  }
@@ -5472,8 +5497,8 @@ var ct = class {
5472
5497
  };
5473
5498
  ct = g([_({
5474
5499
  selector: "ml-radio-group",
5475
- template: ha,
5476
- styles: pa,
5500
+ template: ba,
5501
+ styles: fa,
5477
5502
  attributes: [
5478
5503
  "label",
5479
5504
  "name",
@@ -5485,7 +5510,7 @@ ct = g([_({
5485
5510
  "required"
5486
5511
  ]
5487
5512
  })], ct);
5488
- function va(e) {
5513
+ function _a(e) {
5489
5514
  return i`
5490
5515
  <fieldset
5491
5516
  class=${v({
@@ -5514,7 +5539,7 @@ function va(e) {
5514
5539
  </fieldset>
5515
5540
  `;
5516
5541
  }
5517
- const ga = () => y`
5542
+ const ya = () => y`
5518
5543
  :host {
5519
5544
  display: block;
5520
5545
  }
@@ -5615,8 +5640,8 @@ var mt = class {
5615
5640
  };
5616
5641
  mt = g([_({
5617
5642
  selector: "ml-radio-card-group",
5618
- template: va,
5619
- styles: ga,
5643
+ template: _a,
5644
+ styles: ya,
5620
5645
  attributes: [
5621
5646
  "value",
5622
5647
  "label",
@@ -5627,7 +5652,7 @@ mt = g([_({
5627
5652
  "required"
5628
5653
  ]
5629
5654
  })], mt);
5630
- function ba(e) {
5655
+ function xa(e) {
5631
5656
  return i`
5632
5657
  <div
5633
5658
  class=${v({
@@ -5667,7 +5692,7 @@ function ba(e) {
5667
5692
  </div>
5668
5693
  `;
5669
5694
  }
5670
- const fa = () => y`
5695
+ const wa = () => y`
5671
5696
  :host {
5672
5697
  display: block;
5673
5698
  }
@@ -5820,8 +5845,8 @@ var ut = class {
5820
5845
  };
5821
5846
  ut = g([_({
5822
5847
  selector: "ml-radio-card",
5823
- template: ba,
5824
- styles: fa,
5848
+ template: xa,
5849
+ styles: wa,
5825
5850
  attributes: [
5826
5851
  "value",
5827
5852
  "label",
@@ -5833,7 +5858,7 @@ ut = g([_({
5833
5858
  "group-disabled"
5834
5859
  ]
5835
5860
  })], ut);
5836
- function _a(e) {
5861
+ function ka(e) {
5837
5862
  return i`
5838
5863
  <label
5839
5864
  class=${v({
@@ -5852,7 +5877,7 @@ function _a(e) {
5852
5877
  ${d(!!e.hint, () => i`<span class="ml-toggle__hint">${e.hint}</span>`)}
5853
5878
  `;
5854
5879
  }
5855
- const ya = () => y`
5880
+ const $a = () => y`
5856
5881
  :host {
5857
5882
  display: block;
5858
5883
  }
@@ -5999,8 +6024,8 @@ var ht = class {
5999
6024
  };
6000
6025
  ht = g([_({
6001
6026
  selector: "ml-toggle",
6002
- template: _a,
6003
- styles: ya,
6027
+ template: ka,
6028
+ styles: $a,
6004
6029
  attributes: [
6005
6030
  "label",
6006
6031
  "hint",
@@ -6009,7 +6034,7 @@ ht = g([_({
6009
6034
  "disabled"
6010
6035
  ]
6011
6036
  })], ht);
6012
- function xa(e) {
6037
+ function Ca(e) {
6013
6038
  return i`
6014
6039
  <div
6015
6040
  class=${v({
@@ -6040,7 +6065,7 @@ function xa(e) {
6040
6065
  @click=${e.toggle}
6041
6066
  >
6042
6067
  <span class="ml-select__value">
6043
- ${d(e.multiple, () => ka(e), () => wa(e))}
6068
+ ${d(e.multiple, () => Ea(e), () => Sa(e))}
6044
6069
  </span>
6045
6070
  <ml-icon icon="caret-down" size="sm" format="regular" class="ml-select__chevron"></ml-icon>
6046
6071
  </div>
@@ -6053,7 +6078,7 @@ function xa(e) {
6053
6078
  role="listbox"
6054
6079
  aria-multiselectable=${e.multiple || !1}
6055
6080
  >
6056
- ${e.filteredOptions.length ? $(e.filteredOptions, (t) => `${t.value}-${e.multiple ? e.values.includes(t.value) : e.value === t.value}`, (t, r) => $a(e, t, r)) : i`<div class="ml-select__empty">No results found</div>`}
6081
+ ${e.filteredOptions.length ? $(e.filteredOptions, (t) => `${t.value}-${e.multiple ? e.values.includes(t.value) : e.value === t.value}`, (t, r) => Ra(e, t, r)) : i`<div class="ml-select__empty">No results found</div>`}
6057
6082
  </div>
6058
6083
  </div>
6059
6084
 
@@ -6061,13 +6086,13 @@ function xa(e) {
6061
6086
  </div>
6062
6087
  `;
6063
6088
  }
6064
- function wa(e) {
6089
+ function Sa(e) {
6065
6090
  return i`
6066
6091
  ${d(!!e.selectedOption?.icon, () => i`<ml-icon icon="${e.selectedOption?.icon ?? ""}" size="sm" class="ml-select__value-icon"></ml-icon>`)}
6067
6092
  ${e.displayText ? i`<span class="ml-select__value-text">${e.displayText}</span>` : i`<span class="ml-select__placeholder">${e.placeholder}</span>`}
6068
6093
  `;
6069
6094
  }
6070
- function ka(e) {
6095
+ function Ea(e) {
6071
6096
  return i`
6072
6097
  <ml-icon icon="magnifying-glass" size="sm" format="regular" class="ml-select__search-icon"></ml-icon>
6073
6098
  <span class="ml-select__tags">
@@ -6092,7 +6117,7 @@ function ka(e) {
6092
6117
  />
6093
6118
  `;
6094
6119
  }
6095
- function $a(e, t, r) {
6120
+ function Ra(e, t, r) {
6096
6121
  const l = e.multiple ? e.values.includes(t.value) : e.value === t.value, a = e.focusedIndex === r;
6097
6122
  return i`
6098
6123
  <div
@@ -6114,7 +6139,7 @@ function $a(e, t, r) {
6114
6139
  </div>
6115
6140
  `;
6116
6141
  }
6117
- const Ca = () => y`
6142
+ const Ta = () => y`
6118
6143
  :host {
6119
6144
  display: block;
6120
6145
  width: 100%;
@@ -6684,8 +6709,8 @@ var pt = class {
6684
6709
  };
6685
6710
  pt = g([_({
6686
6711
  selector: "ml-select",
6687
- template: xa,
6688
- styles: Ca,
6712
+ template: Ca,
6713
+ styles: Ta,
6689
6714
  attributes: [
6690
6715
  "label",
6691
6716
  "placeholder",
@@ -6698,7 +6723,7 @@ pt = g([_({
6698
6723
  "multiple"
6699
6724
  ]
6700
6725
  })], pt);
6701
- function Sa(e) {
6726
+ function za(e) {
6702
6727
  return i`
6703
6728
  <div
6704
6729
  class=${v({
@@ -6737,7 +6762,7 @@ function Sa(e) {
6737
6762
  </div>
6738
6763
  `;
6739
6764
  }
6740
- const Ea = () => y`
6765
+ const Aa = () => y`
6741
6766
  :host {
6742
6767
  display: block;
6743
6768
  }
@@ -6935,8 +6960,8 @@ var vt = class {
6935
6960
  };
6936
6961
  vt = g([_({
6937
6962
  selector: "ml-slider",
6938
- template: Sa,
6939
- styles: Ea,
6963
+ template: za,
6964
+ styles: Aa,
6940
6965
  attributes: [
6941
6966
  "label",
6942
6967
  "value",
@@ -6950,7 +6975,7 @@ vt = g([_({
6950
6975
  "error"
6951
6976
  ]
6952
6977
  })], vt);
6953
- function Ra(e) {
6978
+ function Da(e) {
6954
6979
  return i`
6955
6980
  <div
6956
6981
  class=${v({
@@ -6977,7 +7002,7 @@ function Ra(e) {
6977
7002
  </div>
6978
7003
  `;
6979
7004
  }
6980
- const Ta = () => y`
7005
+ const Ia = () => y`
6981
7006
  :host {
6982
7007
  display: block;
6983
7008
  width: 100%;
@@ -7193,8 +7218,8 @@ var gt = class {
7193
7218
  };
7194
7219
  gt = g([_({
7195
7220
  selector: "ml-form-field",
7196
- template: Ra,
7197
- styles: Ta,
7221
+ template: Da,
7222
+ styles: Ia,
7198
7223
  attributes: [
7199
7224
  "label",
7200
7225
  "hint",
@@ -7205,7 +7230,7 @@ gt = g([_({
7205
7230
  "required"
7206
7231
  ]
7207
7232
  })], gt);
7208
- function za(e) {
7233
+ function Ma(e) {
7209
7234
  return i`
7210
7235
  <div class="ml-calendar" role="grid" aria-label=${e.monthLabel}>
7211
7236
  <div class="ml-calendar__header">
@@ -7263,7 +7288,7 @@ function za(e) {
7263
7288
  </div>
7264
7289
  `;
7265
7290
  }
7266
- const Aa = () => y`
7291
+ const Pa = () => y`
7267
7292
  :host {
7268
7293
  display: inline-block;
7269
7294
  }
@@ -7448,7 +7473,7 @@ const Aa = () => y`
7448
7473
  box-shadow: var(--ml-shadow-focus-ring);
7449
7474
  }
7450
7475
  `;
7451
- var Da = [
7476
+ var Oa = [
7452
7477
  "January",
7453
7478
  "February",
7454
7479
  "March",
@@ -7461,7 +7486,7 @@ var Da = [
7461
7486
  "October",
7462
7487
  "November",
7463
7488
  "December"
7464
- ], Ia = [
7489
+ ], Na = [
7465
7490
  "Su",
7466
7491
  "Mo",
7467
7492
  "Tu",
@@ -7470,12 +7495,12 @@ var Da = [
7470
7495
  "Fr",
7471
7496
  "Sa"
7472
7497
  ];
7473
- function le(e, t, r) {
7498
+ function ae(e, t, r) {
7474
7499
  return `${e}-${String(t + 1).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
7475
7500
  }
7476
7501
  function bt() {
7477
7502
  const e = /* @__PURE__ */ new Date();
7478
- return le(e.getFullYear(), e.getMonth(), e.getDate());
7503
+ return ae(e.getFullYear(), e.getMonth(), e.getDate());
7479
7504
  }
7480
7505
  var ft = class {
7481
7506
  constructor() {
@@ -7516,15 +7541,15 @@ var ft = class {
7516
7541
  t.length === 3 && (this.viewYear = Number.parseInt(t[0], 10), this.viewMonth = Number.parseInt(t[1], 10) - 1);
7517
7542
  }
7518
7543
  get monthLabel() {
7519
- return `${Da[this.viewMonth]} ${this.viewYear}`;
7544
+ return `${Oa[this.viewMonth]} ${this.viewYear}`;
7520
7545
  }
7521
7546
  get weekdays() {
7522
- return Ia;
7547
+ return Na;
7523
7548
  }
7524
7549
  get days() {
7525
7550
  const t = this.viewYear, r = this.viewMonth, l = new Date(t, r, 1).getDay(), a = new Date(t, r + 1, 0).getDate(), o = new Date(t, r, 0).getDate(), s = bt(), n = [], c = r === 0 ? 11 : r - 1, m = r === 0 ? t - 1 : t;
7526
7551
  for (let b = l - 1; b >= 0; b--) {
7527
- const w = o - b, f = le(m, c, w);
7552
+ const w = o - b, f = ae(m, c, w);
7528
7553
  n.push({
7529
7554
  date: w,
7530
7555
  month: c,
@@ -7537,7 +7562,7 @@ var ft = class {
7537
7562
  });
7538
7563
  }
7539
7564
  for (let b = 1; b <= a; b++) {
7540
- const w = le(t, r, b);
7565
+ const w = ae(t, r, b);
7541
7566
  n.push({
7542
7567
  date: b,
7543
7568
  month: r,
@@ -7553,7 +7578,7 @@ var ft = class {
7553
7578
  if (p > 0) {
7554
7579
  const b = 7 - p;
7555
7580
  for (let w = 1; w <= b; w++) {
7556
- const f = le(h, u, w);
7581
+ const f = ae(h, u, w);
7557
7582
  n.push({
7558
7583
  date: w,
7559
7584
  month: u,
@@ -7574,15 +7599,15 @@ var ft = class {
7574
7599
  };
7575
7600
  ft = g([_({
7576
7601
  selector: "ml-calendar",
7577
- template: za,
7578
- styles: Aa,
7602
+ template: Ma,
7603
+ styles: Pa,
7579
7604
  attributes: [
7580
7605
  "value",
7581
7606
  "min",
7582
7607
  "max"
7583
7608
  ]
7584
7609
  })], ft);
7585
- function Ma(e) {
7610
+ function La(e) {
7586
7611
  return i`
7587
7612
  <div class=${v({
7588
7613
  "ml-date-picker": !0,
@@ -7629,7 +7654,7 @@ function Ma(e) {
7629
7654
  </div>
7630
7655
  `;
7631
7656
  }
7632
- const Pa = () => y`
7657
+ const Va = () => y`
7633
7658
  :host {
7634
7659
  display: block;
7635
7660
  }
@@ -7781,7 +7806,7 @@ const Pa = () => y`
7781
7806
  color: var(--ml-color-danger);
7782
7807
  }
7783
7808
  `;
7784
- var Oa = [
7809
+ var ja = [
7785
7810
  "Jan",
7786
7811
  "Feb",
7787
7812
  "Mar",
@@ -7795,12 +7820,12 @@ var Oa = [
7795
7820
  "Nov",
7796
7821
  "Dec"
7797
7822
  ];
7798
- function Na(e) {
7823
+ function Fa(e) {
7799
7824
  if (!e) return "";
7800
7825
  const t = e.split("-");
7801
7826
  if (t.length !== 3) return e;
7802
7827
  const r = parseInt(t[1], 10) - 1, l = parseInt(t[2], 10), a = parseInt(t[0], 10);
7803
- return `${Oa[r]} ${l}, ${a}`;
7828
+ return `${ja[r]} ${l}, ${a}`;
7804
7829
  }
7805
7830
  var _t = class {
7806
7831
  constructor() {
@@ -7819,7 +7844,7 @@ var _t = class {
7819
7844
  };
7820
7845
  }
7821
7846
  get displayValue() {
7822
- return Na(this.value);
7847
+ return Fa(this.value);
7823
7848
  }
7824
7849
  onCreate() {
7825
7850
  const t = this.getPopoverEl();
@@ -7871,8 +7896,8 @@ var _t = class {
7871
7896
  };
7872
7897
  _t = g([_({
7873
7898
  selector: "ml-date-picker",
7874
- template: Ma,
7875
- styles: Pa,
7899
+ template: La,
7900
+ styles: Va,
7876
7901
  attributes: [
7877
7902
  "value",
7878
7903
  "placeholder",
@@ -7886,7 +7911,7 @@ _t = g([_({
7886
7911
  "max"
7887
7912
  ]
7888
7913
  })], _t);
7889
- function La(e) {
7914
+ function qa(e) {
7890
7915
  return i`
7891
7916
  <div
7892
7917
  class=${v({
@@ -7914,7 +7939,7 @@ function La(e) {
7914
7939
  </div>
7915
7940
  `;
7916
7941
  }
7917
- const Va = () => y`
7942
+ const Ba = () => y`
7918
7943
  :host {
7919
7944
  display: block;
7920
7945
  }
@@ -8046,8 +8071,8 @@ var yt = class {
8046
8071
  };
8047
8072
  yt = g([_({
8048
8073
  selector: "ml-alert",
8049
- template: La,
8050
- styles: Va,
8074
+ template: qa,
8075
+ styles: Ba,
8051
8076
  attributes: [
8052
8077
  "variant",
8053
8078
  "title",
@@ -8104,7 +8129,7 @@ var xt = class {
8104
8129
  }
8105
8130
  };
8106
8131
  xt = g([Q()], xt);
8107
- function ja(e) {
8132
+ function Ha(e) {
8108
8133
  return i`
8109
8134
  <div
8110
8135
  class=${v({
@@ -8128,7 +8153,7 @@ function ja(e) {
8128
8153
  </div>
8129
8154
  `;
8130
8155
  }
8131
- const Fa = () => y`
8156
+ const Ka = () => y`
8132
8157
  :host {
8133
8158
  display: block;
8134
8159
  }
@@ -8241,8 +8266,8 @@ var wt = class {
8241
8266
  };
8242
8267
  wt = g([_({
8243
8268
  selector: "ml-toast",
8244
- template: ja,
8245
- styles: Fa,
8269
+ template: Ha,
8270
+ styles: Ka,
8246
8271
  attributes: [
8247
8272
  "variant",
8248
8273
  "title",
@@ -8251,7 +8276,7 @@ wt = g([_({
8251
8276
  "dismissible"
8252
8277
  ]
8253
8278
  })], wt);
8254
- function qa(e) {
8279
+ function Wa(e) {
8255
8280
  return i`
8256
8281
  <div
8257
8282
  class=${v({
@@ -8263,7 +8288,7 @@ function qa(e) {
8263
8288
  </div>
8264
8289
  `;
8265
8290
  }
8266
- const Ba = () => y`
8291
+ const Ga = () => y`
8267
8292
  :host {
8268
8293
  display: block;
8269
8294
  }
@@ -8332,11 +8357,11 @@ var kt = class {
8332
8357
  };
8333
8358
  kt = g([_({
8334
8359
  selector: "ml-toast-container",
8335
- template: qa,
8336
- styles: Ba,
8360
+ template: Wa,
8361
+ styles: Ga,
8337
8362
  attributes: ["position"]
8338
8363
  })], kt);
8339
- function Ha(e) {
8364
+ function Ua(e) {
8340
8365
  const t = e.labelPosition === "top" && (!!e.label || e.showValue), r = e.labelPosition === "right" && e.showValue, l = e.labelPosition === "bottom" && e.showValue, a = e.labelPosition === "floating-top" && e.showValue, o = e.labelPosition === "floating-bottom" && e.showValue;
8341
8366
  return i`
8342
8367
  <div class=${v({
@@ -8380,7 +8405,7 @@ function Ha(e) {
8380
8405
  </div>
8381
8406
  `;
8382
8407
  }
8383
- function Ka(e) {
8408
+ function Ya(e) {
8384
8409
  return i`
8385
8410
  <div class=${v({
8386
8411
  "ml-progress-circle": !0,
@@ -8423,7 +8448,7 @@ function Ka(e) {
8423
8448
  </div>
8424
8449
  `;
8425
8450
  }
8426
- function Wa(e) {
8451
+ function Xa(e) {
8427
8452
  return i`
8428
8453
  <div class=${v({
8429
8454
  "ml-progress-half": !0,
@@ -8462,10 +8487,10 @@ function Wa(e) {
8462
8487
  </div>
8463
8488
  `;
8464
8489
  }
8465
- function Ga(e) {
8466
- return e.shape === "circle" ? Ka(e) : e.shape === "half-circle" ? Wa(e) : Ha(e);
8490
+ function Ja(e) {
8491
+ return e.shape === "circle" ? Ya(e) : e.shape === "half-circle" ? Xa(e) : Ua(e);
8467
8492
  }
8468
- const Ua = () => y`
8493
+ const Qa = () => y`
8469
8494
  :host {
8470
8495
  display: block;
8471
8496
  }
@@ -8805,8 +8830,8 @@ var $t = class {
8805
8830
  };
8806
8831
  $t = g([_({
8807
8832
  selector: "ml-progress",
8808
- template: Ga,
8809
- styles: Ua,
8833
+ template: Ja,
8834
+ styles: Qa,
8810
8835
  attributes: [
8811
8836
  "value",
8812
8837
  "max",
@@ -8818,7 +8843,7 @@ $t = g([_({
8818
8843
  "label-position"
8819
8844
  ]
8820
8845
  })], $t);
8821
- function Ya(e) {
8846
+ function Za(e) {
8822
8847
  return i`
8823
8848
  <div
8824
8849
  class=${v({
@@ -8845,7 +8870,7 @@ function Ya(e) {
8845
8870
  </div>
8846
8871
  `;
8847
8872
  }
8848
- const Xa = () => y`
8873
+ const eo = () => y`
8849
8874
  :host {
8850
8875
  display: block;
8851
8876
  }
@@ -8936,15 +8961,15 @@ var Ct = class {
8936
8961
  };
8937
8962
  Ct = g([_({
8938
8963
  selector: "ml-card",
8939
- template: Ya,
8940
- styles: Xa,
8964
+ template: Za,
8965
+ styles: eo,
8941
8966
  attributes: [
8942
8967
  "variant",
8943
8968
  "hoverable",
8944
8969
  "clickable"
8945
8970
  ]
8946
8971
  })], Ct);
8947
- function Ja(e) {
8972
+ function to(e) {
8948
8973
  return i`
8949
8974
  <div
8950
8975
  class=${v({
@@ -8963,7 +8988,7 @@ function Ja(e) {
8963
8988
  </div>
8964
8989
  `;
8965
8990
  }
8966
- const Qa = () => y`
8991
+ const ro = () => y`
8967
8992
  :host {
8968
8993
  display: block;
8969
8994
  }
@@ -9045,18 +9070,18 @@ var St = class {
9045
9070
  };
9046
9071
  St = g([_({
9047
9072
  selector: "ml-divider",
9048
- template: Ja,
9049
- styles: Qa,
9073
+ template: to,
9074
+ styles: ro,
9050
9075
  attributes: ["orientation"]
9051
9076
  })], St);
9052
- function Za(e) {
9077
+ function lo(e) {
9053
9078
  return i`
9054
9079
  <div class="ml-stack" style=${W(e.getStyles())}>
9055
9080
  <slot></slot>
9056
9081
  </div>
9057
9082
  `;
9058
9083
  }
9059
- const eo = () => y`
9084
+ const ao = () => y`
9060
9085
  :host {
9061
9086
  display: block;
9062
9087
  }
@@ -9095,8 +9120,8 @@ var Et = class {
9095
9120
  };
9096
9121
  Et = g([_({
9097
9122
  selector: "ml-stack",
9098
- template: Za,
9099
- styles: eo,
9123
+ template: lo,
9124
+ styles: ao,
9100
9125
  attributes: [
9101
9126
  "direction",
9102
9127
  "gap",
@@ -9105,14 +9130,14 @@ Et = g([_({
9105
9130
  "wrap"
9106
9131
  ]
9107
9132
  })], Et);
9108
- function to(e) {
9133
+ function oo(e) {
9109
9134
  return i`
9110
9135
  <div class="ml-container" style=${W(e.getStyles())}>
9111
9136
  <slot></slot>
9112
9137
  </div>
9113
9138
  `;
9114
9139
  }
9115
- const ro = () => y`
9140
+ const io = () => y`
9116
9141
  :host {
9117
9142
  display: block;
9118
9143
  width: 100%;
@@ -9144,15 +9169,15 @@ var Rt = class {
9144
9169
  };
9145
9170
  Rt = g([_({
9146
9171
  selector: "ml-container",
9147
- template: to,
9148
- styles: ro,
9172
+ template: oo,
9173
+ styles: io,
9149
9174
  attributes: [
9150
9175
  "size",
9151
9176
  "padding",
9152
9177
  "centered"
9153
9178
  ]
9154
9179
  })], Rt);
9155
- function lo(e) {
9180
+ function so(e) {
9156
9181
  return i`
9157
9182
  <span
9158
9183
  class=${v({
@@ -9173,7 +9198,7 @@ function lo(e) {
9173
9198
  </span>
9174
9199
  `;
9175
9200
  }
9176
- const ao = () => y`
9201
+ const no = () => y`
9177
9202
  :host {
9178
9203
  display: inline-block;
9179
9204
  }
@@ -9274,8 +9299,8 @@ var Tt = class {
9274
9299
  };
9275
9300
  Tt = g([_({
9276
9301
  selector: "ml-avatar",
9277
- template: lo,
9278
- styles: ao,
9302
+ template: so,
9303
+ styles: no,
9279
9304
  attributes: [
9280
9305
  "src",
9281
9306
  "alt",
@@ -9284,7 +9309,7 @@ Tt = g([_({
9284
9309
  "rounded"
9285
9310
  ]
9286
9311
  })], Tt);
9287
- function oo(e) {
9312
+ function co(e) {
9288
9313
  return i`
9289
9314
  <span
9290
9315
  class=${v({
@@ -9300,7 +9325,7 @@ function oo(e) {
9300
9325
  </span>
9301
9326
  `;
9302
9327
  }
9303
- const io = () => y`
9328
+ const mo = () => y`
9304
9329
  :host {
9305
9330
  display: inline-block;
9306
9331
  }
@@ -9392,8 +9417,8 @@ var zt = class {
9392
9417
  };
9393
9418
  zt = g([_({
9394
9419
  selector: "ml-badge",
9395
- template: oo,
9396
- styles: io,
9420
+ template: co,
9421
+ styles: mo,
9397
9422
  attributes: [
9398
9423
  "variant",
9399
9424
  "size",
@@ -9401,7 +9426,7 @@ zt = g([_({
9401
9426
  "pill"
9402
9427
  ]
9403
9428
  })], zt);
9404
- function so(e) {
9429
+ function uo(e) {
9405
9430
  const t = e.badgePosition === "trailing";
9406
9431
  return i`
9407
9432
  <span
@@ -9424,7 +9449,7 @@ function so(e) {
9424
9449
  </span>
9425
9450
  `;
9426
9451
  }
9427
- const no = () => y`
9452
+ const ho = () => y`
9428
9453
  :host {
9429
9454
  display: inline-block;
9430
9455
  }
@@ -9562,8 +9587,8 @@ var At = class {
9562
9587
  };
9563
9588
  At = g([_({
9564
9589
  selector: "ml-badge-group",
9565
- template: so,
9566
- styles: no,
9590
+ template: uo,
9591
+ styles: ho,
9567
9592
  attributes: [
9568
9593
  "label",
9569
9594
  "variant",
@@ -9573,7 +9598,7 @@ At = g([_({
9573
9598
  "icon"
9574
9599
  ]
9575
9600
  })], At);
9576
- function co(e) {
9601
+ function po(e) {
9577
9602
  const t = e["avatar-src"], r = e["dot-color"];
9578
9603
  return i`
9579
9604
  <span
@@ -9624,7 +9649,7 @@ function co(e) {
9624
9649
  </span>
9625
9650
  `;
9626
9651
  }
9627
- const mo = () => y`
9652
+ const vo = () => y`
9628
9653
  :host {
9629
9654
  display: inline-block;
9630
9655
  }
@@ -9835,8 +9860,8 @@ var Dt = class {
9835
9860
  };
9836
9861
  Dt = g([_({
9837
9862
  selector: "ml-tag",
9838
- template: co,
9839
- styles: mo,
9863
+ template: po,
9864
+ styles: vo,
9840
9865
  attributes: [
9841
9866
  "size",
9842
9867
  "dot",
@@ -9850,7 +9875,7 @@ Dt = g([_({
9850
9875
  "disabled"
9851
9876
  ]
9852
9877
  })], Dt);
9853
- function uo(e) {
9878
+ function go(e) {
9854
9879
  return i`
9855
9880
  <div
9856
9881
  class=${v({
@@ -9864,7 +9889,7 @@ function uo(e) {
9864
9889
  </div>
9865
9890
  `;
9866
9891
  }
9867
- const ho = () => y`
9892
+ const bo = () => y`
9868
9893
  :host {
9869
9894
  display: block;
9870
9895
  }
@@ -9899,11 +9924,11 @@ var It = class {
9899
9924
  };
9900
9925
  It = g([_({
9901
9926
  selector: "ml-list",
9902
- template: uo,
9903
- styles: ho,
9927
+ template: go,
9928
+ styles: bo,
9904
9929
  attributes: ["variant", "size"]
9905
9930
  })], It);
9906
- function po(e) {
9931
+ function fo(e) {
9907
9932
  return i`
9908
9933
  <div class="ml-li" role="listitem">
9909
9934
  ${d(e.hasLeadingSlot, () => i`
@@ -9924,7 +9949,7 @@ function po(e) {
9924
9949
  </div>
9925
9950
  `;
9926
9951
  }
9927
- const vo = () => y`
9952
+ const _o = () => y`
9928
9953
  :host {
9929
9954
  display: block;
9930
9955
  padding: var(--_ml-list-padding, var(--ml-space-3) 0);
@@ -10010,8 +10035,8 @@ var Mt = class {
10010
10035
  };
10011
10036
  Mt = g([_({
10012
10037
  selector: "ml-list-item",
10013
- template: po,
10014
- styles: vo,
10038
+ template: fo,
10039
+ styles: _o,
10015
10040
  attributes: [
10016
10041
  "primary",
10017
10042
  "secondary",
@@ -10019,7 +10044,7 @@ Mt = g([_({
10019
10044
  "interactive"
10020
10045
  ]
10021
10046
  })], Mt);
10022
- function go(e) {
10047
+ function yo(e) {
10023
10048
  return i`
10024
10049
  <div
10025
10050
  class=${v({
@@ -10032,7 +10057,7 @@ function go(e) {
10032
10057
  </div>
10033
10058
  `;
10034
10059
  }
10035
- const bo = () => y`
10060
+ const xo = () => y`
10036
10061
  :host {
10037
10062
  display: block;
10038
10063
  }
@@ -10063,11 +10088,11 @@ var Pt = class {
10063
10088
  };
10064
10089
  Pt = g([_({
10065
10090
  selector: "ml-activity-feed",
10066
- template: go,
10067
- styles: bo,
10091
+ template: yo,
10092
+ styles: xo,
10068
10093
  attributes: ["variant"]
10069
10094
  })], Pt);
10070
- function fo(e) {
10095
+ function wo(e) {
10071
10096
  return i`
10072
10097
  <article class="ml-afi">
10073
10098
  <div class="ml-afi__left">
@@ -10110,7 +10135,7 @@ function fo(e) {
10110
10135
  </article>
10111
10136
  `;
10112
10137
  }
10113
- const _o = () => y`
10138
+ const ko = () => y`
10114
10139
  :host {
10115
10140
  display: block;
10116
10141
  padding: var(--ml-space-4) 0;
@@ -10253,8 +10278,8 @@ var Ot = class {
10253
10278
  };
10254
10279
  Ot = g([_({
10255
10280
  selector: "ml-activity-feed-item",
10256
- template: fo,
10257
- styles: _o,
10281
+ template: wo,
10282
+ styles: ko,
10258
10283
  attributes: [
10259
10284
  "name",
10260
10285
  "timestamp",
@@ -10266,10 +10291,10 @@ Ot = g([_({
10266
10291
  "indicator-color"
10267
10292
  ]
10268
10293
  })], Ot);
10269
- function yo(e, t, r) {
10294
+ function $o(e, t, r) {
10270
10295
  return e.render ? e.render(t[e.key], t, r) : t[e.key] ?? "";
10271
10296
  }
10272
- function xo(e) {
10297
+ function Co(e) {
10273
10298
  return i`
10274
10299
  <div class=${v({
10275
10300
  "ml-table": !0,
@@ -10362,7 +10387,7 @@ function xo(e) {
10362
10387
  "ml-table__td": !0,
10363
10388
  [`ml-table__td--${a.align ?? "left"}`]: !0
10364
10389
  })}>
10365
- ${yo(a, t, l)}
10390
+ ${$o(a, t, l)}
10366
10391
  </td>
10367
10392
  `)}
10368
10393
  </tr>
@@ -10386,7 +10411,7 @@ function xo(e) {
10386
10411
  </div>
10387
10412
  `;
10388
10413
  }
10389
- const wo = () => y`
10414
+ const So = () => y`
10390
10415
  :host {
10391
10416
  display: block;
10392
10417
  }
@@ -10627,7 +10652,7 @@ const wo = () => y`
10627
10652
  `;
10628
10653
  var Nt = class {
10629
10654
  constructor() {
10630
- this.hasFooter = !1, this.hasHeaderActions = !1, this.selectable = !1, this.striped = !1, this.hoverable = !0, this.stickyHeader = !1, this.size = "md", this.tableTitle = "", this.description = "", this.virtual = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.selectedIndices = [], this.startIndex = 0, this.endIndex = 50, this._scroller = new Nr(), this._viewport = null, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
10655
+ this.hasFooter = !1, this.hasHeaderActions = !1, this.selectable = !1, this.striped = !1, this.hoverable = !0, this.stickyHeader = !1, this.size = "md", this.tableTitle = "", this.description = "", this.virtual = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.selectedIndices = [], this.startIndex = 0, this.endIndex = 50, this._scroller = new Lr(), this._viewport = null, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
10631
10656
  t.sortable && (this.sortKey === t.key ? this.sortDirection = this.sortDirection === "asc" ? "desc" : "asc" : (this.sortKey = t.key, this.sortDirection = "asc"), this.selectedIndices = [], this._scroller.invalidate(), this.elementRef.dispatchEvent(new CustomEvent("ml:sort", {
10632
10657
  bubbles: !0,
10633
10658
  composed: !0,
@@ -10731,8 +10756,8 @@ var Nt = class {
10731
10756
  };
10732
10757
  Nt = g([_({
10733
10758
  selector: "ml-table",
10734
- template: xo,
10735
- styles: wo,
10759
+ template: Co,
10760
+ styles: So,
10736
10761
  attributes: [
10737
10762
  "selectable",
10738
10763
  "striped",
@@ -10744,12 +10769,12 @@ Nt = g([_({
10744
10769
  "virtual"
10745
10770
  ]
10746
10771
  })], Nt);
10747
- function ko(e, t, r) {
10772
+ function Eo(e, t, r) {
10748
10773
  if (e.render) return e.render(t[e.key], t, r);
10749
10774
  const l = t[e.key];
10750
10775
  return l ?? "";
10751
10776
  }
10752
- function $o(e) {
10777
+ function Ro(e) {
10753
10778
  const t = e.gridTemplateColumns, r = e.totalGridWidth;
10754
10779
  return i`
10755
10780
  <div class=${v({
@@ -10896,7 +10921,7 @@ function $o(e) {
10896
10921
  })}
10897
10922
  style=${o.pinned === "left" ? `left: ${e.getPinnedLeftOffset(o.key)}px` : ""}
10898
10923
  >
10899
- ${ko(o, l, e.startIndex + a)}
10924
+ ${Eo(o, l, e.startIndex + a)}
10900
10925
  </div>
10901
10926
  `)}
10902
10927
  </div>
@@ -10951,7 +10976,7 @@ function $o(e) {
10951
10976
  </div>
10952
10977
  `;
10953
10978
  }
10954
- const Co = () => y`
10979
+ const To = () => y`
10955
10980
  :host {
10956
10981
  display: flex;
10957
10982
  flex-direction: column;
@@ -11444,7 +11469,7 @@ const Co = () => y`
11444
11469
  `;
11445
11470
  var Lt = class {
11446
11471
  constructor() {
11447
- this.selectable = !1, this.striped = !1, this.hoverable = !0, this.size = "md", this.gridTitle = "", this.description = "", this.serverSide = !1, this.pageSize = 50, this.virtual = !0, this.showFilterRow = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.filters = {}, this.selectedIndices = [], this.currentPage = 1, this.startIndex = 0, this.endIndex = 50, this.colWidths = {}, this.colOrder = [], this.resizingKey = null, this.draggingKey = null, this.dragOverKey = null, this._scroller = new Nr(), this._viewport = null, this._resizeStartX = 0, this._resizeStartWidth = 0, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
11472
+ this.selectable = !1, this.striped = !1, this.hoverable = !0, this.size = "md", this.gridTitle = "", this.description = "", this.serverSide = !1, this.pageSize = 50, this.virtual = !0, this.showFilterRow = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.filters = {}, this.selectedIndices = [], this.currentPage = 1, this.startIndex = 0, this.endIndex = 50, this.colWidths = {}, this.colOrder = [], this.resizingKey = null, this.draggingKey = null, this.dragOverKey = null, this._scroller = new Lr(), this._viewport = null, this._resizeStartX = 0, this._resizeStartWidth = 0, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
11448
11473
  t.sortable && (this.sortKey === t.key ? this.sortDirection = this.sortDirection === "asc" ? "desc" : "asc" : (this.sortKey = t.key, this.sortDirection = "asc"), this.currentPage = 1, this._scroller.invalidate(), this.elementRef.dispatchEvent(new CustomEvent("ml:sort", {
11449
11474
  bubbles: !0,
11450
11475
  composed: !0,
@@ -11651,8 +11676,8 @@ var Lt = class {
11651
11676
  };
11652
11677
  Lt = g([_({
11653
11678
  selector: "ml-data-grid",
11654
- template: $o,
11655
- styles: Co,
11679
+ template: Ro,
11680
+ styles: To,
11656
11681
  attributes: [
11657
11682
  "selectable",
11658
11683
  "striped",
@@ -11666,7 +11691,7 @@ Lt = g([_({
11666
11691
  "show-filter-row"
11667
11692
  ]
11668
11693
  })], Lt);
11669
- var So = [
11694
+ var zo = [
11670
11695
  "January",
11671
11696
  "February",
11672
11697
  "March",
@@ -11692,7 +11717,7 @@ var So = [
11692
11717
  "Oct",
11693
11718
  "Nov",
11694
11719
  "Dec"
11695
- ], Lr = [
11720
+ ], Vr = [
11696
11721
  "Sunday",
11697
11722
  "Monday",
11698
11723
  "Tuesday",
@@ -11716,11 +11741,11 @@ function Vt(e) {
11716
11741
  const [t, r, l] = e.split("T")[0].split("-").map(Number);
11717
11742
  return new Date(t, r - 1, l);
11718
11743
  }
11719
- function Eo(e, t) {
11744
+ function Ao(e, t) {
11720
11745
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
11721
11746
  }
11722
- function Vr(e) {
11723
- return Eo(e, /* @__PURE__ */ new Date());
11747
+ function jr(e) {
11748
+ return Ao(e, /* @__PURE__ */ new Date());
11724
11749
  }
11725
11750
  function H(e, t) {
11726
11751
  const r = new Date(e);
@@ -11730,11 +11755,11 @@ function jt(e, t) {
11730
11755
  const r = new Date(e);
11731
11756
  return r.setMonth(r.getMonth() + t), r;
11732
11757
  }
11733
- function jr(e, t = 0) {
11758
+ function Fr(e, t = 0) {
11734
11759
  const r = new Date(e), l = (r.getDay() - t + 7) % 7;
11735
11760
  return r.setDate(r.getDate() - l), r;
11736
11761
  }
11737
- function Ro(e) {
11762
+ function Do(e) {
11738
11763
  const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()));
11739
11764
  t.setUTCDate(t.getUTCDate() + 4 - (t.getUTCDay() || 7));
11740
11765
  const r = new Date(Date.UTC(t.getUTCFullYear(), 0, 1));
@@ -11745,9 +11770,9 @@ function q(e) {
11745
11770
  return l === 0 ? `${o} ${a}` : `${o}:${String(l).padStart(2, "0")} ${a}`;
11746
11771
  }
11747
11772
  function Ft(e) {
11748
- return `${So[e.getMonth()]} ${e.getFullYear()}`;
11773
+ return `${zo[e.getMonth()]} ${e.getFullYear()}`;
11749
11774
  }
11750
- function To(e, t) {
11775
+ function Io(e, t) {
11751
11776
  const r = Se[e.getMonth()], l = Se[t.getMonth()];
11752
11777
  return e.getMonth() === t.getMonth() && e.getFullYear() === t.getFullYear() ? `${r} ${e.getDate()} – ${t.getDate()}, ${e.getFullYear()}` : e.getFullYear() === t.getFullYear() ? `${r} ${e.getDate()} – ${l} ${t.getDate()}, ${e.getFullYear()}` : `${r} ${e.getDate()}, ${e.getFullYear()} – ${l} ${t.getDate()}, ${t.getFullYear()}`;
11753
11778
  }
@@ -11792,8 +11817,8 @@ function qt(e, t, r = 0) {
11792
11817
  }
11793
11818
  return c;
11794
11819
  }
11795
- function zo(e, t = 0) {
11796
- const r = jr(e, t);
11820
+ function Mo(e, t = 0) {
11821
+ const r = Fr(e, t);
11797
11822
  return Array.from({ length: 7 }, (l, a) => H(r, a));
11798
11823
  }
11799
11824
  function Bt(e = 0) {
@@ -11801,18 +11826,18 @@ function Bt(e = 0) {
11801
11826
  const l = (e + r) % 7;
11802
11827
  return {
11803
11828
  short: Me[l],
11804
- full: Lr[l]
11829
+ full: Vr[l]
11805
11830
  };
11806
11831
  });
11807
11832
  }
11808
- function ie(e, t) {
11833
+ function se(e, t) {
11809
11834
  return e.filter((r) => r.start.split("T")[0] === t);
11810
11835
  }
11811
- function Ao(e) {
11836
+ function Po(e) {
11812
11837
  return Se[e.getMonth()];
11813
11838
  }
11814
- function Do(e) {
11815
- return Lr[e.getDay()];
11839
+ function Oo(e) {
11840
+ return Vr[e.getDay()];
11816
11841
  }
11817
11842
  function I(e) {
11818
11843
  const t = new Date(e);
@@ -11821,7 +11846,7 @@ function I(e) {
11821
11846
  function Ht(e) {
11822
11847
  return Math.floor(e / 30) + 1;
11823
11848
  }
11824
- function Fr(e) {
11849
+ function qr(e) {
11825
11850
  if (e.length === 0) return [];
11826
11851
  const t = [...e].sort((n, c) => {
11827
11852
  const m = I(n.start), u = I(c.start);
@@ -11864,7 +11889,7 @@ function Fr(e) {
11864
11889
  }
11865
11890
  return s;
11866
11891
  }
11867
- function Io() {
11892
+ function No() {
11868
11893
  const e = [];
11869
11894
  for (let t = 0; t < 24; t++) for (let r = 0; r < 60; r += 30) {
11870
11895
  const l = t >= 12 ? "PM" : "AM", a = t % 12 || 12, o = r === 0 ? `${a} ${l}` : "";
@@ -11876,29 +11901,29 @@ function Io() {
11876
11901
  }
11877
11902
  return e;
11878
11903
  }
11879
- function Mo(e, t, r) {
11880
- return zo(e, t).map((l) => {
11881
- const a = O(l.getFullYear(), l.getMonth(), l.getDate()), o = ie(r, a).filter((s) => !s.allDay);
11904
+ function Lo(e, t, r) {
11905
+ return Mo(e, t).map((l) => {
11906
+ const a = O(l.getFullYear(), l.getMonth(), l.getDate()), o = se(r, a).filter((s) => !s.allDay);
11882
11907
  return {
11883
11908
  date: a,
11884
11909
  dayLabel: Me[l.getDay()],
11885
11910
  dayNumber: l.getDate(),
11886
- isToday: Vr(l),
11887
- events: Fr(o)
11911
+ isToday: jr(l),
11912
+ events: qr(o)
11888
11913
  };
11889
11914
  });
11890
11915
  }
11891
- function Po(e, t) {
11892
- const r = O(e.getFullYear(), e.getMonth(), e.getDate()), l = ie(t, r).filter((a) => !a.allDay);
11916
+ function Vo(e, t) {
11917
+ const r = O(e.getFullYear(), e.getMonth(), e.getDate()), l = se(t, r).filter((a) => !a.allDay);
11893
11918
  return {
11894
11919
  date: r,
11895
11920
  dayLabel: Me[e.getDay()],
11896
11921
  dayNumber: e.getDate(),
11897
- isToday: Vr(e),
11898
- events: Fr(l)
11922
+ isToday: jr(e),
11923
+ events: qr(l)
11899
11924
  };
11900
11925
  }
11901
- function Oo(e, t, r) {
11926
+ function jo(e, t, r) {
11902
11927
  const l = /* @__PURE__ */ new Set(), a = new Date(e, t + 1, 0).getDate();
11903
11928
  for (let o = 1; o <= a; o++) {
11904
11929
  const s = O(e, t, o);
@@ -11906,12 +11931,12 @@ function Oo(e, t, r) {
11906
11931
  }
11907
11932
  return l;
11908
11933
  }
11909
- var No = {
11934
+ var Fo = {
11910
11935
  month: "Month view",
11911
11936
  week: "Week view",
11912
11937
  day: "Day view"
11913
11938
  };
11914
- function Lo(e) {
11939
+ function qo(e) {
11915
11940
  return i`
11916
11941
  <div class="ml-cv__today-badge">
11917
11942
  <span class="ml-cv__today-badge-month">${e.todayMonthAbbrev}</span>
@@ -11926,7 +11951,7 @@ function Lo(e) {
11926
11951
  </div>
11927
11952
  `;
11928
11953
  }
11929
- function Vo(e) {
11954
+ function Bo(e) {
11930
11955
  return i`
11931
11956
  ${d(!e.hideNav, () => i`
11932
11957
  <div class="ml-cv__nav-group">
@@ -11951,7 +11976,7 @@ function Vo(e) {
11951
11976
  })}
11952
11977
  @click=${e.toggleViewDropdown}
11953
11978
  >
11954
- ${No[e.view]}
11979
+ ${Fo[e.view]}
11955
11980
  <ml-icon icon="caret-down" size="xs"></ml-icon>
11956
11981
  </button>
11957
11982
  ${d(e.isViewDropdownOpen, () => i`
@@ -11999,20 +12024,20 @@ function Vo(e) {
11999
12024
  `)}
12000
12025
  `;
12001
12026
  }
12002
- function jo(e) {
12027
+ function Ho(e) {
12003
12028
  return i`
12004
12029
  <div class="ml-cv__header">
12005
12030
  <div class="ml-cv__header-left">
12006
- ${d(e.hasHeaderLeftSlot, () => i`<slot name="header-left"></slot>`, () => Lo(e))}
12031
+ ${d(e.hasHeaderLeftSlot, () => i`<slot name="header-left"></slot>`, () => qo(e))}
12007
12032
  </div>
12008
12033
 
12009
12034
  <div class="ml-cv__header-right">
12010
- ${d(e.hasHeaderActionsSlot, () => i`<slot name="header-actions"></slot>`, () => Vo(e))}
12035
+ ${d(e.hasHeaderActionsSlot, () => i`<slot name="header-actions"></slot>`, () => Bo(e))}
12011
12036
  </div>
12012
12037
  </div>
12013
12038
  `;
12014
12039
  }
12015
- function Fo(e, t) {
12040
+ function Ko(e, t) {
12016
12041
  const r = t.color || "blue";
12017
12042
  return i`
12018
12043
  <div
@@ -12031,7 +12056,7 @@ function Fo(e, t) {
12031
12056
  </div>
12032
12057
  `;
12033
12058
  }
12034
- function qo(e) {
12059
+ function Wo(e) {
12035
12060
  const t = e.weekdayHeaders, r = e.monthGrid, l = (/* @__PURE__ */ new Date()).getDay(), a = e.weekStartsOn;
12036
12061
  return i`
12037
12062
  <div class="ml-cv__month">
@@ -12064,7 +12089,7 @@ function qo(e) {
12064
12089
  })}>${o.date}</div>
12065
12090
 
12066
12091
  <div class="ml-cv__day-events">
12067
- ${$(s, (c) => c.id, (c) => Fo(e, c))}
12092
+ ${$(s, (c) => c.id, (c) => Ko(e, c))}
12068
12093
  ${d(n > 0, () => i`
12069
12094
  <button
12070
12095
  type="button"
@@ -12091,7 +12116,7 @@ function qo(e) {
12091
12116
  </div>
12092
12117
  `;
12093
12118
  }
12094
- function Bo(e, t, r) {
12119
+ function Go(e, t, r) {
12095
12120
  const l = t.event.color || "blue";
12096
12121
  return i`
12097
12122
  <div
@@ -12109,7 +12134,7 @@ function Bo(e, t, r) {
12109
12134
  </div>
12110
12135
  `;
12111
12136
  }
12112
- function Ho(e) {
12137
+ function Uo(e) {
12113
12138
  const t = e.weekColumns, r = e.timeSlots;
12114
12139
  return i`
12115
12140
  <div class="ml-cv__time-layout">
@@ -12156,13 +12181,13 @@ function Ho(e) {
12156
12181
  ${$(t.flatMap((l, a) => l.events.map((o) => ({
12157
12182
  pe: o,
12158
12183
  colIdx: a
12159
- }))), (l) => l.pe.event.id, (l) => Bo(e, l.pe, l.colIdx))}
12184
+ }))), (l) => l.pe.event.id, (l) => Go(e, l.pe, l.colIdx))}
12160
12185
  </div>
12161
12186
  </div>
12162
12187
  </div>
12163
12188
  `;
12164
12189
  }
12165
- function Ko(e, t) {
12190
+ function Yo(e, t) {
12166
12191
  const r = t.event.color || "blue";
12167
12192
  return i`
12168
12193
  <div
@@ -12180,7 +12205,7 @@ function Ko(e, t) {
12180
12205
  </div>
12181
12206
  `;
12182
12207
  }
12183
- function Wo(e) {
12208
+ function Xo(e) {
12184
12209
  const t = e.miniCalendarGrid, r = e.miniCalendarWeekdays, l = e.miniCalendarDots, a = e.currentIsoDate;
12185
12210
  return i`
12186
12211
  <div class="ml-cv__mini-cal">
@@ -12222,7 +12247,7 @@ function Wo(e) {
12222
12247
  </div>
12223
12248
  `;
12224
12249
  }
12225
- function Go(e) {
12250
+ function Jo(e) {
12226
12251
  const t = e.dayEvents;
12227
12252
  return i`
12228
12253
  <div class="ml-cv__sidebar-title">Events for ${e.dayViewDateLabel}</div>
@@ -12246,7 +12271,7 @@ function Go(e) {
12246
12271
  `)}
12247
12272
  `;
12248
12273
  }
12249
- function Uo(e) {
12274
+ function Qo(e) {
12250
12275
  const t = e.dayColumn, r = e.timeSlots;
12251
12276
  return i`
12252
12277
  <div class="ml-cv__day-layout">
@@ -12282,30 +12307,30 @@ function Uo(e) {
12282
12307
  `)}
12283
12308
 
12284
12309
  <!-- Events -->
12285
- ${$(t.events, (l) => l.event.id, (l) => Ko(e, l))}
12310
+ ${$(t.events, (l) => l.event.id, (l) => Yo(e, l))}
12286
12311
  </div>
12287
12312
  </div>
12288
12313
  </div>
12289
12314
  </div>
12290
12315
 
12291
12316
  <div class="ml-cv__day-sidebar">
12292
- ${Wo(e)}
12293
- ${Go(e)}
12317
+ ${Xo(e)}
12318
+ ${Jo(e)}
12294
12319
  </div>
12295
12320
  </div>
12296
12321
  `;
12297
12322
  }
12298
- function Yo(e) {
12323
+ function Zo(e) {
12299
12324
  return i`
12300
12325
  <div class="ml-cv">
12301
- ${jo(e)}
12302
- ${d(e.view === "month", () => qo(e))}
12303
- ${d(e.view === "week", () => Ho(e))}
12304
- ${d(e.view === "day", () => Uo(e))}
12326
+ ${Ho(e)}
12327
+ ${d(e.view === "month", () => Wo(e))}
12328
+ ${d(e.view === "week", () => Uo(e))}
12329
+ ${d(e.view === "day", () => Qo(e))}
12305
12330
  </div>
12306
12331
  `;
12307
12332
  }
12308
- const Xo = () => y`
12333
+ const ei = () => y`
12309
12334
  :host {
12310
12335
  display: block;
12311
12336
  font-family: var(--ml-font-sans);
@@ -13163,7 +13188,7 @@ var Kt = class {
13163
13188
  }
13164
13189
  }
13165
13190
  get todayMonthAbbrev() {
13166
- return Ao(/* @__PURE__ */ new Date());
13191
+ return Po(/* @__PURE__ */ new Date());
13167
13192
  }
13168
13193
  get todayDayNumber() {
13169
13194
  return (/* @__PURE__ */ new Date()).getDate();
@@ -13172,15 +13197,15 @@ var Kt = class {
13172
13197
  return Ft(this._currentDate);
13173
13198
  }
13174
13199
  get weekNumber() {
13175
- return Ro(this._currentDate);
13200
+ return Do(this._currentDate);
13176
13201
  }
13177
13202
  get headerSubtitle() {
13178
13203
  if (this.view === "month") return `Week ${this.weekNumber}`;
13179
13204
  if (this.view === "week") {
13180
- const t = jr(this._currentDate, this.weekStartsOn);
13181
- return To(t, H(t, 6));
13205
+ const t = Fr(this._currentDate, this.weekStartsOn);
13206
+ return Io(t, H(t, 6));
13182
13207
  }
13183
- return Do(this._currentDate);
13208
+ return Oo(this._currentDate);
13184
13209
  }
13185
13210
  get currentIsoDate() {
13186
13211
  const t = this._currentDate;
@@ -13191,20 +13216,20 @@ var Kt = class {
13191
13216
  }
13192
13217
  get monthGrid() {
13193
13218
  const t = this._currentDate, r = qt(t.getFullYear(), t.getMonth(), this.weekStartsOn);
13194
- for (const l of r) l.events = ie(this.events, l.iso);
13219
+ for (const l of r) l.events = se(this.events, l.iso);
13195
13220
  return r;
13196
13221
  }
13197
13222
  get weekColumns() {
13198
- return Mo(this._currentDate, this.weekStartsOn, this.events);
13223
+ return Lo(this._currentDate, this.weekStartsOn, this.events);
13199
13224
  }
13200
13225
  get timeSlots() {
13201
- return Io();
13226
+ return No();
13202
13227
  }
13203
13228
  get dayColumn() {
13204
- return Po(this._currentDate, this.events);
13229
+ return Vo(this._currentDate, this.events);
13205
13230
  }
13206
13231
  get dayEvents() {
13207
- return ie(this.events, this.currentIsoDate);
13232
+ return se(this.events, this.currentIsoDate);
13208
13233
  }
13209
13234
  get dayViewDateLabel() {
13210
13235
  return this._currentDate.toLocaleDateString("en-US", {
@@ -13223,7 +13248,7 @@ var Kt = class {
13223
13248
  return qt(this._miniCalYear, this._miniCalMonth, this.weekStartsOn);
13224
13249
  }
13225
13250
  get miniCalendarDots() {
13226
- return Oo(this._miniCalYear, this._miniCalMonth, this.events);
13251
+ return jo(this._miniCalYear, this._miniCalMonth, this.events);
13227
13252
  }
13228
13253
  setDate(t) {
13229
13254
  this.date = O(t.getFullYear(), t.getMonth(), t.getDate()), this._miniCalYear = t.getFullYear(), this._miniCalMonth = t.getMonth(), this.elementRef.dispatchEvent(new CustomEvent("ml:date-change", {
@@ -13235,8 +13260,8 @@ var Kt = class {
13235
13260
  };
13236
13261
  Kt = g([_({
13237
13262
  selector: "ml-calendar-view",
13238
- template: Yo,
13239
- styles: Xo,
13263
+ template: Zo,
13264
+ styles: ei,
13240
13265
  attributes: [
13241
13266
  "view",
13242
13267
  "date",
@@ -13249,7 +13274,7 @@ Kt = g([_({
13249
13274
  "hide-add-button"
13250
13275
  ]
13251
13276
  })], Kt);
13252
- const Jo = (e) => i`<i class="${e.format === "regular" ? "ph" : `ph-${e.format}`}">${e.format === "regular" ? e.icon : `${e.icon}-${e.format}`}</i>`, Qo = () => y`
13277
+ const ti = (e) => i`<i class="${e.format === "regular" ? "ph" : `ph-${e.format}`}">${e.format === "regular" ? e.icon : `${e.icon}-${e.format}`}</i>`, ri = () => y`
13253
13278
  :host {
13254
13279
  display: inline-flex;
13255
13280
  align-items: center;
@@ -13284,15 +13309,15 @@ var Wt = class {
13284
13309
  };
13285
13310
  Wt = g([_({
13286
13311
  selector: "ml-icon",
13287
- template: Jo,
13288
- styles: Qo,
13312
+ template: ti,
13313
+ styles: ri,
13289
13314
  attributes: [
13290
13315
  "icon",
13291
13316
  "format",
13292
13317
  "size"
13293
13318
  ]
13294
13319
  })], Wt);
13295
- function Zo(e) {
13320
+ function li(e) {
13296
13321
  const t = e.tabs.length > 0;
13297
13322
  return i`
13298
13323
  <div
@@ -13309,7 +13334,7 @@ function Zo(e) {
13309
13334
  aria-orientation=${e.orientation}
13310
13335
  @keydown=${e.handleKeyDown}
13311
13336
  >
13312
- ${t ? $(e.tabs, (r) => `${r.value}-${e.value === r.value}`, (r) => ei(e, r)) : i`<slot name="tab" @slotchange=${e.handleTabSlotChange}></slot>`}
13337
+ ${t ? $(e.tabs, (r) => `${r.value}-${e.value === r.value}`, (r) => ai(e, r)) : i`<slot name="tab" @slotchange=${e.handleTabSlotChange}></slot>`}
13313
13338
  </div>
13314
13339
 
13315
13340
  <div class="ml-tabs__panels">
@@ -13318,7 +13343,7 @@ function Zo(e) {
13318
13343
  </div>
13319
13344
  `;
13320
13345
  }
13321
- function ei(e, t) {
13346
+ function ai(e, t) {
13322
13347
  const r = e.value === t.value;
13323
13348
  return i`
13324
13349
  <button
@@ -13341,7 +13366,7 @@ function ei(e, t) {
13341
13366
  </button>
13342
13367
  `;
13343
13368
  }
13344
- const ti = () => y`
13369
+ const oi = () => y`
13345
13370
  :host {
13346
13371
  display: block;
13347
13372
  width: 100%;
@@ -13683,8 +13708,8 @@ var Gt = class {
13683
13708
  };
13684
13709
  Gt = g([_({
13685
13710
  selector: "ml-tabs",
13686
- template: Zo,
13687
- styles: ti,
13711
+ template: li,
13712
+ styles: oi,
13688
13713
  attributes: [
13689
13714
  "value",
13690
13715
  "variant",
@@ -13693,7 +13718,7 @@ Gt = g([_({
13693
13718
  "routed"
13694
13719
  ]
13695
13720
  })], Gt);
13696
- function ri(e) {
13721
+ function ii(e) {
13697
13722
  return i`
13698
13723
  <button
13699
13724
  type="button"
@@ -13715,7 +13740,7 @@ function ri(e) {
13715
13740
  </button>
13716
13741
  `;
13717
13742
  }
13718
- const li = () => y`
13743
+ const si = () => y`
13719
13744
  :host {
13720
13745
  display: contents;
13721
13746
  }
@@ -13776,8 +13801,8 @@ var Ut = class {
13776
13801
  };
13777
13802
  Ut = g([_({
13778
13803
  selector: "ml-tab",
13779
- template: ri,
13780
- styles: li,
13804
+ template: ii,
13805
+ styles: si,
13781
13806
  attributes: [
13782
13807
  "value",
13783
13808
  "label",
@@ -13787,14 +13812,14 @@ Ut = g([_({
13787
13812
  "href"
13788
13813
  ]
13789
13814
  })], Ut);
13790
- function ai(e) {
13815
+ function ni(e) {
13791
13816
  return i`
13792
13817
  <div class="ml-tab-panel" role="tabpanel">
13793
13818
  <slot></slot>
13794
13819
  </div>
13795
13820
  `;
13796
13821
  }
13797
- const oi = () => y`
13822
+ const di = () => y`
13798
13823
  :host {
13799
13824
  display: block;
13800
13825
  }
@@ -13819,11 +13844,11 @@ var Yt = class {
13819
13844
  };
13820
13845
  Yt = g([_({
13821
13846
  selector: "ml-tab-panel",
13822
- template: ai,
13823
- styles: oi,
13847
+ template: ni,
13848
+ styles: di,
13824
13849
  attributes: ["value"]
13825
13850
  })], Yt);
13826
- function ii(e) {
13851
+ function ci(e) {
13827
13852
  return i`
13828
13853
  <nav class="ml-breadcrumb" aria-label="Breadcrumb">
13829
13854
  <ol class="ml-breadcrumb__list">
@@ -13832,7 +13857,7 @@ function ii(e) {
13832
13857
  </nav>
13833
13858
  `;
13834
13859
  }
13835
- const si = () => y`
13860
+ const mi = () => y`
13836
13861
  :host {
13837
13862
  display: block;
13838
13863
  }
@@ -13854,11 +13879,11 @@ var Xt = class {
13854
13879
  };
13855
13880
  Xt = g([_({
13856
13881
  selector: "ml-breadcrumb",
13857
- template: ii,
13858
- styles: si,
13882
+ template: ci,
13883
+ styles: mi,
13859
13884
  attributes: ["separator"]
13860
13885
  })], Xt);
13861
- function ni(e) {
13886
+ function ui(e) {
13862
13887
  const t = e.separator === "slash" ? "slash-forward" : "caret-right";
13863
13888
  return i`
13864
13889
  <li
@@ -13884,7 +13909,7 @@ function ni(e) {
13884
13909
  </li>
13885
13910
  `;
13886
13911
  }
13887
- const di = () => y`
13912
+ const hi = () => y`
13888
13913
  :host {
13889
13914
  display: contents;
13890
13915
  }
@@ -13952,8 +13977,8 @@ var Jt = class {
13952
13977
  };
13953
13978
  Jt = g([_({
13954
13979
  selector: "ml-breadcrumb-item",
13955
- template: ni,
13956
- styles: di,
13980
+ template: ui,
13981
+ styles: hi,
13957
13982
  attributes: [
13958
13983
  "href",
13959
13984
  "icon",
@@ -13961,7 +13986,7 @@ Jt = g([_({
13961
13986
  "separator"
13962
13987
  ]
13963
13988
  })], Jt);
13964
- function ci(e) {
13989
+ function pi(e) {
13965
13990
  return i`
13966
13991
  <nav class="ml-pagination" aria-label="Pagination">
13967
13992
  <button
@@ -14011,7 +14036,7 @@ function ci(e) {
14011
14036
  </nav>
14012
14037
  `;
14013
14038
  }
14014
- const mi = () => y`
14039
+ const vi = () => y`
14015
14040
  :host {
14016
14041
  display: block;
14017
14042
  }
@@ -14143,15 +14168,15 @@ var Qt = class {
14143
14168
  };
14144
14169
  Qt = g([_({
14145
14170
  selector: "ml-pagination",
14146
- template: ci,
14147
- styles: mi,
14171
+ template: pi,
14172
+ styles: vi,
14148
14173
  attributes: [
14149
14174
  "page",
14150
14175
  "total-pages",
14151
14176
  "siblings"
14152
14177
  ]
14153
14178
  })], Qt);
14154
- function ui(e) {
14179
+ function gi(e) {
14155
14180
  const t = e.navigation.length > 0, r = e.footerNavigation.length > 0, l = e.collapsed;
14156
14181
  return i`
14157
14182
  <aside
@@ -14174,7 +14199,7 @@ function ui(e) {
14174
14199
  `)}
14175
14200
 
14176
14201
  <div class="ml-sidebar__main">
14177
- ${t ? $(e.navigation, (a, o) => `nav-group-${o}`, (a) => hi(e, a)) : i`<slot @slotchange=${e.handleDefaultSlotChange}></slot>`}
14202
+ ${t ? $(e.navigation, (a, o) => `nav-group-${o}`, (a) => bi(e, a)) : i`<slot @slotchange=${e.handleDefaultSlotChange}></slot>`}
14178
14203
  </div>
14179
14204
 
14180
14205
  <div class="ml-sidebar__footer">
@@ -14203,7 +14228,7 @@ function ui(e) {
14203
14228
  </aside>
14204
14229
  `;
14205
14230
  }
14206
- function hi(e, t) {
14231
+ function bi(e, t) {
14207
14232
  const r = e.collapsed;
14208
14233
  return i`
14209
14234
  <div class="ml-sidebar__group">
@@ -14217,7 +14242,7 @@ function hi(e, t) {
14217
14242
  `;
14218
14243
  }
14219
14244
  function Pe(e, t, r) {
14220
- const l = e.active === t.value, a = !!t.children && t.children.length > 0, o = e._expandedItems.has(t.value), s = e.collapsed, n = v({
14245
+ const l = e.active === t.value, a = !!t.children && t.children.length > 0, o = e.expandedItems.has(t.value), s = e.collapsed, n = v({
14221
14246
  "ml-sidebar__item-link": !0,
14222
14247
  "ml-sidebar__item-link--active": l,
14223
14248
  "ml-sidebar__item-link--disabled": !!t.disabled,
@@ -14227,7 +14252,7 @@ function Pe(e, t, r) {
14227
14252
  }), c = (u) => {
14228
14253
  if (!t.disabled) {
14229
14254
  if (a) {
14230
- u.preventDefault(), e.handleConfigToggle(t, e._expandedItems);
14255
+ u.preventDefault(), e.handleConfigToggle(t);
14231
14256
  return;
14232
14257
  }
14233
14258
  e.handleConfigItemClick(t.value, t.href);
@@ -14286,7 +14311,7 @@ function Pe(e, t, r) {
14286
14311
  </div>
14287
14312
  `;
14288
14313
  }
14289
- const pi = () => y`
14314
+ const fi = () => y`
14290
14315
  :host {
14291
14316
  display: block;
14292
14317
  height: 100%;
@@ -14579,8 +14604,9 @@ var Zt = class {
14579
14604
  this._slottedItems = t.target.assignedElements({ flatten: !0 }), this.updateItemStates();
14580
14605
  }, this.handleConfigItemClick = (t, r) => {
14581
14606
  this.activateItem(t, r);
14582
- }, this.handleConfigToggle = (t, r) => {
14583
- r.has(t.value) ? r.delete(t.value) : r.add(t.value), this.elementRef.dispatchEvent(new Event("ml:internal-update"));
14607
+ }, this.handleConfigToggle = (t) => {
14608
+ const r = new Set(this.expandedItems);
14609
+ r.has(t.value) ? r.delete(t.value) : r.add(t.value), this.expandedItems = r;
14584
14610
  }, this.handleKeyDown = (t) => {
14585
14611
  const r = this.elementRef.shadowRoot?.querySelector(".ml-sidebar__main");
14586
14612
  if (!r) return;
@@ -14603,7 +14629,7 @@ var Zt = class {
14603
14629
  return;
14604
14630
  }
14605
14631
  o !== a && l[o] && l[o].focus();
14606
- }, this._expandedItems = /* @__PURE__ */ new Set();
14632
+ }, this.expandedItems = /* @__PURE__ */ new Set();
14607
14633
  }
14608
14634
  /** Check if search slot has content */
14609
14635
  get hasSearch() {
@@ -14670,11 +14696,11 @@ var Zt = class {
14670
14696
  };
14671
14697
  Zt = g([_({
14672
14698
  selector: "ml-sidebar",
14673
- template: ui,
14674
- styles: pi,
14699
+ template: gi,
14700
+ styles: fi,
14675
14701
  attributes: ["variant", "active"]
14676
14702
  })], Zt);
14677
- function vi(e) {
14703
+ function _i(e) {
14678
14704
  return i`
14679
14705
  <div class="ml-sidebar-group">
14680
14706
  ${d(!!e.label && !e.collapsed, () => i`
@@ -14686,7 +14712,7 @@ function vi(e) {
14686
14712
  </div>
14687
14713
  `;
14688
14714
  }
14689
- const gi = () => y`
14715
+ const yi = () => y`
14690
14716
  :host {
14691
14717
  display: block;
14692
14718
  }
@@ -14721,11 +14747,11 @@ var er = class {
14721
14747
  };
14722
14748
  er = g([_({
14723
14749
  selector: "ml-sidebar-group",
14724
- template: vi,
14725
- styles: gi,
14750
+ template: _i,
14751
+ styles: yi,
14726
14752
  attributes: ["label", "collapsed"]
14727
14753
  })], er);
14728
- function bi(e) {
14754
+ function xi(e) {
14729
14755
  const t = parseInt(e.level, 10) || 0, r = e.collapsed, l = i`
14730
14756
  <div class="ml-sidebar-item__leading">
14731
14757
  <slot name="leading">
@@ -14796,7 +14822,7 @@ function bi(e) {
14796
14822
  </div>
14797
14823
  `;
14798
14824
  }
14799
- const fi = () => y`
14825
+ const wi = () => y`
14800
14826
  :host {
14801
14827
  display: block;
14802
14828
  }
@@ -14978,8 +15004,8 @@ var tr = class {
14978
15004
  };
14979
15005
  tr = g([_({
14980
15006
  selector: "ml-sidebar-item",
14981
- template: bi,
14982
- styles: fi,
15007
+ template: xi,
15008
+ styles: wi,
14983
15009
  attributes: [
14984
15010
  "icon",
14985
15011
  "label",
@@ -14995,7 +15021,7 @@ tr = g([_({
14995
15021
  "level"
14996
15022
  ]
14997
15023
  })], tr);
14998
- function _i(e) {
15024
+ function ki(e) {
14999
15025
  const t = e.steps.length > 0, r = e.compact;
15000
15026
  return i`
15001
15027
  <div
@@ -15012,7 +15038,7 @@ function _i(e) {
15012
15038
  aria-orientation=${e.orientation}
15013
15039
  @keydown=${e.handleKeyDown}
15014
15040
  >
15015
- ${t ? $(e.steps, (l) => `${l.value}-${e.active === l.value}`, (l, a) => yi(e, l, a)) : i`<slot name="step" @slotchange=${e.handleStepSlotChange}></slot>`}
15041
+ ${t ? $(e.steps, (l) => `${l.value}-${e.active === l.value}`, (l, a) => $i(e, l, a)) : i`<slot name="step" @slotchange=${e.handleStepSlotChange}></slot>`}
15016
15042
  </div>
15017
15043
 
15018
15044
  ${d(r, () => i`
@@ -15027,7 +15053,7 @@ function _i(e) {
15027
15053
  </div>
15028
15054
  `;
15029
15055
  }
15030
- function yi(e, t, r) {
15056
+ function $i(e, t, r) {
15031
15057
  const l = e.steps, a = r === 0, o = r === l.length - 1, s = e.getStepStatus(t.value), n = e.variant === "bar", c = e.compact;
15032
15058
  return i`
15033
15059
  <div
@@ -15049,13 +15075,13 @@ function yi(e, t, r) {
15049
15075
  tabindex=${s === "current" ? "0" : "-1"}
15050
15076
  @click=${() => e.handleStepClick(t.value, t.href)}
15051
15077
  >
15052
- ${d(n, () => xi(e, t))}
15053
- ${d(!n && !c, () => wi(e, t, r, a, o, s))}
15054
- ${d(!n && c, () => ki(e, s))}
15078
+ ${d(n, () => Ci(e, t))}
15079
+ ${d(!n && !c, () => Si(e, t, r, a, o, s))}
15080
+ ${d(!n && c, () => Ei(e, s))}
15055
15081
  </div>
15056
15082
  `;
15057
15083
  }
15058
- function xi(e, t) {
15084
+ function Ci(e, t) {
15059
15085
  return i`
15060
15086
  <div class="ml-step__bar"></div>
15061
15087
  <div class="ml-step__content">
@@ -15064,12 +15090,12 @@ function xi(e, t) {
15064
15090
  </div>
15065
15091
  `;
15066
15092
  }
15067
- function wi(e, t, r, l, a, o) {
15093
+ function Si(e, t, r, l, a, o) {
15068
15094
  return i`
15069
15095
  <div class="ml-step__track">
15070
15096
  <div class="ml-step__connector-before ${l ? "ml-step__connector--hidden" : `ml-step__connector--${e.connector}`}"></div>
15071
15097
  <div class="ml-step__indicator">
15072
- ${$i(e, t, r, o)}
15098
+ ${Ri(e, t, r, o)}
15073
15099
  </div>
15074
15100
  <div class="ml-step__connector-after ${a ? "ml-step__connector--hidden" : `ml-step__connector--${e.connector}`}"></div>
15075
15101
  </div>
@@ -15079,10 +15105,10 @@ function wi(e, t, r, l, a, o) {
15079
15105
  </div>
15080
15106
  `;
15081
15107
  }
15082
- function ki(e, t) {
15108
+ function Ei(e, t) {
15083
15109
  return i`<div class="ml-step__dot"></div>`;
15084
15110
  }
15085
- function $i(e, t, r, l) {
15111
+ function Ri(e, t, r, l) {
15086
15112
  switch (e.variant) {
15087
15113
  case "numbered":
15088
15114
  return i`
@@ -15108,7 +15134,7 @@ function $i(e, t, r, l) {
15108
15134
  return i``;
15109
15135
  }
15110
15136
  }
15111
- const Ci = () => y`
15137
+ const Ti = () => y`
15112
15138
  :host {
15113
15139
  display: block;
15114
15140
  width: 100%;
@@ -15758,8 +15784,8 @@ var rr = class {
15758
15784
  };
15759
15785
  rr = g([_({
15760
15786
  selector: "ml-steps",
15761
- template: _i,
15762
- styles: Ci,
15787
+ template: ki,
15788
+ styles: Ti,
15763
15789
  attributes: [
15764
15790
  "active",
15765
15791
  "variant",
@@ -15770,7 +15796,7 @@ rr = g([_({
15770
15796
  "routed"
15771
15797
  ]
15772
15798
  })], rr);
15773
- function Si(e) {
15799
+ function zi(e) {
15774
15800
  const t = e.variant === "bar", r = e.compact;
15775
15801
  return i`
15776
15802
  <div
@@ -15791,13 +15817,13 @@ function Si(e) {
15791
15817
  tabindex=${e.status === "current" ? "0" : "-1"}
15792
15818
  @click=${e.handleClick}
15793
15819
  >
15794
- ${d(t, () => Ei(e))}
15795
- ${d(!t && !r, () => Ri(e))}
15796
- ${d(!t && r, () => Ti(e))}
15820
+ ${d(t, () => Ai(e))}
15821
+ ${d(!t && !r, () => Di(e))}
15822
+ ${d(!t && r, () => Ii(e))}
15797
15823
  </div>
15798
15824
  `;
15799
15825
  }
15800
- function Ei(e) {
15826
+ function Ai(e) {
15801
15827
  return i`
15802
15828
  <div class="ml-step__bar"></div>
15803
15829
  <div class="ml-step__content">
@@ -15806,12 +15832,12 @@ function Ei(e) {
15806
15832
  </div>
15807
15833
  `;
15808
15834
  }
15809
- function Ri(e) {
15835
+ function Di(e) {
15810
15836
  return i`
15811
15837
  <div class="ml-step__track">
15812
15838
  <div class="ml-step__connector-before ${e.first ? "ml-step__connector--hidden" : `ml-step__connector--${e.connector}`}"></div>
15813
15839
  <div class="ml-step__indicator">
15814
- ${zi(e)}
15840
+ ${Mi(e)}
15815
15841
  </div>
15816
15842
  <div class="ml-step__connector-after ${e.last ? "ml-step__connector--hidden" : `ml-step__connector--${e.connector}`}"></div>
15817
15843
  </div>
@@ -15821,19 +15847,19 @@ function Ri(e) {
15821
15847
  </div>
15822
15848
  `;
15823
15849
  }
15824
- function Ti(e) {
15850
+ function Ii(e) {
15825
15851
  return i`
15826
15852
  <div class="ml-step__dot"></div>
15827
15853
  `;
15828
15854
  }
15829
- function zi(e) {
15855
+ function Mi(e) {
15830
15856
  switch (e.variant) {
15831
15857
  case "numbered":
15832
15858
  return lr(e);
15833
15859
  case "circles":
15834
- return Ai(e);
15860
+ return Pi(e);
15835
15861
  case "icons":
15836
- return Di(e);
15862
+ return Oi(e);
15837
15863
  default:
15838
15864
  return lr(e);
15839
15865
  }
@@ -15847,7 +15873,7 @@ function lr(e) {
15847
15873
  </div>
15848
15874
  `;
15849
15875
  }
15850
- function Ai(e) {
15876
+ function Pi(e) {
15851
15877
  const t = e.status === "completed";
15852
15878
  return i`
15853
15879
  <div class="ml-step__indicator-inner ml-step__indicator-inner--circles">
@@ -15856,14 +15882,14 @@ function Ai(e) {
15856
15882
  </div>
15857
15883
  `;
15858
15884
  }
15859
- function Di(e) {
15885
+ function Oi(e) {
15860
15886
  return i`
15861
15887
  <div class="ml-step__indicator-inner ml-step__indicator-inner--icons">
15862
15888
  <ml-icon icon=${e.icon || "circle"} size="sm"></ml-icon>
15863
15889
  </div>
15864
15890
  `;
15865
15891
  }
15866
- const Ii = () => y`
15892
+ const Ni = () => y`
15867
15893
  :host {
15868
15894
  display: contents;
15869
15895
  }
@@ -16383,8 +16409,8 @@ var ar = class {
16383
16409
  };
16384
16410
  ar = g([_({
16385
16411
  selector: "ml-step",
16386
- template: Si,
16387
- styles: Ii,
16412
+ template: zi,
16413
+ styles: Ni,
16388
16414
  attributes: [
16389
16415
  "value",
16390
16416
  "label",
@@ -16402,14 +16428,14 @@ ar = g([_({
16402
16428
  "compact"
16403
16429
  ]
16404
16430
  })], ar);
16405
- function Mi(e) {
16431
+ function Li(e) {
16406
16432
  return i`
16407
16433
  <div class="ml-step-panel" role="tabpanel">
16408
16434
  <slot></slot>
16409
16435
  </div>
16410
16436
  `;
16411
16437
  }
16412
- const Pi = () => y`
16438
+ const Vi = () => y`
16413
16439
  :host {
16414
16440
  display: block;
16415
16441
  }
@@ -16429,11 +16455,11 @@ var or = class {
16429
16455
  };
16430
16456
  or = g([_({
16431
16457
  selector: "ml-step-panel",
16432
- template: Mi,
16433
- styles: Pi,
16458
+ template: Li,
16459
+ styles: Vi,
16434
16460
  attributes: ["value"]
16435
16461
  })], or);
16436
- const Oi = () => i`<dialog class="ml-dialog">
16462
+ const ji = () => i`<dialog class="ml-dialog">
16437
16463
  <div class="ml-dialog-header">
16438
16464
  <slot name="dialog-header"></slot>
16439
16465
  </div>
@@ -16445,7 +16471,7 @@ const Oi = () => i`<dialog class="ml-dialog">
16445
16471
  <div class="ml-dialog-footer">
16446
16472
  <slot name="dialog-footer"></slot>
16447
16473
  </div>
16448
- </dialog> `, Ni = () => y`
16474
+ </dialog> `, Fi = () => y`
16449
16475
  :host {
16450
16476
  display: contents;
16451
16477
  }
@@ -16624,7 +16650,7 @@ const Oi = () => i`<dialog class="ml-dialog">
16624
16650
  }
16625
16651
  }
16626
16652
  `;
16627
- var Li = class {
16653
+ var qi = class {
16628
16654
  constructor(e, t) {
16629
16655
  this._dialogID = e, this._dialogEl = t, this._afterOpenedCallback = null, this._afterClosedCallback = null, this._disableClose = !1, this._handleCancel = this.onCancel.bind(this), this._handleBackdropClick = this.onBackdropClick.bind(this), this._dialogEl.addEventListener("cancel", this._handleCancel), this._dialogEl.addEventListener("click", this._handleBackdropClick);
16630
16656
  }
@@ -16667,7 +16693,7 @@ var Li = class {
16667
16693
  this._dialogs = /* @__PURE__ */ new Map();
16668
16694
  }
16669
16695
  addDialog(t, r) {
16670
- const l = new Li(t, r);
16696
+ const l = new qi(t, r);
16671
16697
  return this._dialogs.set(t, {
16672
16698
  dialogRef: l,
16673
16699
  dialogComponent: void 0
@@ -16704,7 +16730,7 @@ var Li = class {
16704
16730
  J = g([Q()], J);
16705
16731
  var ir, Ee = class {
16706
16732
  constructor() {
16707
- this._dialogID = Ul();
16733
+ this._dialogID = Ql();
16708
16734
  }
16709
16735
  onCreate() {
16710
16736
  this._dialogEl = this.elementRef.shadowRoot?.querySelector("dialog"), this._dialogID = this.createDialogID(), this._dialogEl.id = this._dialogID, this._dialogRef = this._dialogService.addDialog(this._dialogID, this._dialogEl);
@@ -16725,11 +16751,11 @@ var ir, Ee = class {
16725
16751
  g([B(J), V("design:type", typeof (ir = typeof J < "u" && J) == "function" ? ir : Object)], Ee.prototype, "_dialogService", void 0);
16726
16752
  Ee = g([_({
16727
16753
  selector: "ml-dialog",
16728
- template: Oi,
16729
- styles: Ni,
16754
+ template: ji,
16755
+ styles: Fi,
16730
16756
  attributes: []
16731
16757
  })], Ee);
16732
- function Vi(e) {
16758
+ function Bi(e) {
16733
16759
  const t = e.side === "left" ? "left" : "right", r = e.size === "sm" || e.size === "md" || e.size === "lg" || e.size === "xl" ? e.size : "md";
16734
16760
  return i`
16735
16761
  <dialog
@@ -16764,7 +16790,7 @@ function Vi(e) {
16764
16790
  </dialog>
16765
16791
  `;
16766
16792
  }
16767
- const ji = () => y`
16793
+ const Hi = () => y`
16768
16794
  :host {
16769
16795
  display: contents;
16770
16796
  }
@@ -16988,15 +17014,15 @@ var sr = class {
16988
17014
  };
16989
17015
  sr = g([_({
16990
17016
  selector: "ml-drawer",
16991
- template: Vi,
16992
- styles: ji,
17017
+ template: Bi,
17018
+ styles: Hi,
16993
17019
  attributes: [
16994
17020
  "side",
16995
17021
  "size",
16996
17022
  "show-close"
16997
17023
  ]
16998
17024
  })], sr);
16999
- function Fi(e) {
17025
+ function Ki(e) {
17000
17026
  return i`
17001
17027
  <div class="ml-dropdown">
17002
17028
  <div class="ml-dropdown__trigger" @click=${e.toggle}>
@@ -17013,7 +17039,7 @@ function Fi(e) {
17013
17039
  </div>
17014
17040
  `;
17015
17041
  }
17016
- const qi = () => y`
17042
+ const Wi = () => y`
17017
17043
  :host {
17018
17044
  display: inline-block;
17019
17045
  }
@@ -17245,7 +17271,7 @@ var nr = class {
17245
17271
  ue(),
17246
17272
  he({ padding: 8 })
17247
17273
  ];
17248
- l && a.push(Mr({
17274
+ l && a.push(Pr({
17249
17275
  element: l,
17250
17276
  padding: 8
17251
17277
  }));
@@ -17268,15 +17294,15 @@ var nr = class {
17268
17294
  };
17269
17295
  nr = g([_({
17270
17296
  selector: "ml-dropdown",
17271
- template: Fi,
17272
- styles: qi,
17297
+ template: Ki,
17298
+ styles: Wi,
17273
17299
  attributes: [
17274
17300
  "placement",
17275
17301
  "offset",
17276
17302
  "arrow"
17277
17303
  ]
17278
17304
  })], nr);
17279
- function Bi(e) {
17305
+ function Gi(e) {
17280
17306
  return i`
17281
17307
  <div
17282
17308
  class=${v({
@@ -17296,7 +17322,7 @@ function Bi(e) {
17296
17322
  </div>
17297
17323
  `;
17298
17324
  }
17299
- const Hi = () => y`
17325
+ const Ui = () => y`
17300
17326
  :host {
17301
17327
  display: block;
17302
17328
  }
@@ -17377,8 +17403,8 @@ var dr = class {
17377
17403
  };
17378
17404
  dr = g([_({
17379
17405
  selector: "ml-dropdown-item",
17380
- template: Bi,
17381
- styles: Hi,
17406
+ template: Gi,
17407
+ styles: Ui,
17382
17408
  attributes: [
17383
17409
  "value",
17384
17410
  "icon",
@@ -17387,10 +17413,10 @@ dr = g([_({
17387
17413
  "destructive"
17388
17414
  ]
17389
17415
  })], dr);
17390
- function Ki() {
17416
+ function Yi() {
17391
17417
  return i`<div class="ml-dropdown-separator" role="separator"></div>`;
17392
17418
  }
17393
- const Wi = () => y`
17419
+ const Xi = () => y`
17394
17420
  :host {
17395
17421
  display: block;
17396
17422
  }
@@ -17405,10 +17431,10 @@ var cr = class {
17405
17431
  };
17406
17432
  cr = g([_({
17407
17433
  selector: "ml-dropdown-separator",
17408
- template: Ki,
17409
- styles: Wi
17434
+ template: Yi,
17435
+ styles: Xi
17410
17436
  })], cr);
17411
- function Gi(e) {
17437
+ function Ji(e) {
17412
17438
  return i`
17413
17439
  <div class="ml-dropdown-group" role="group">
17414
17440
  ${d(!!e.label, () => i`<div class="ml-dropdown-group__label">${e.label}</div>`)}
@@ -17416,7 +17442,7 @@ function Gi(e) {
17416
17442
  </div>
17417
17443
  `;
17418
17444
  }
17419
- const Ui = () => y`
17445
+ const Qi = () => y`
17420
17446
  :host {
17421
17447
  display: block;
17422
17448
  }
@@ -17438,11 +17464,11 @@ var mr = class {
17438
17464
  };
17439
17465
  mr = g([_({
17440
17466
  selector: "ml-dropdown-group",
17441
- template: Gi,
17442
- styles: Ui,
17467
+ template: Ji,
17468
+ styles: Qi,
17443
17469
  attributes: ["label"]
17444
17470
  })], mr);
17445
- function Yi(e) {
17471
+ function Zi(e) {
17446
17472
  return i`
17447
17473
  <div class="ml-tooltip">
17448
17474
  <div
@@ -17468,7 +17494,7 @@ function Yi(e) {
17468
17494
  </div>
17469
17495
  `;
17470
17496
  }
17471
- const Xi = () => y`
17497
+ const es = () => y`
17472
17498
  :host {
17473
17499
  display: inline-block;
17474
17500
  }
@@ -17569,15 +17595,15 @@ var ur = class {
17569
17595
  };
17570
17596
  ur = g([_({
17571
17597
  selector: "ml-tooltip",
17572
- template: Yi,
17573
- styles: Xi,
17598
+ template: Zi,
17599
+ styles: es,
17574
17600
  attributes: [
17575
17601
  "content",
17576
17602
  "placement",
17577
17603
  "delay"
17578
17604
  ]
17579
17605
  })], ur);
17580
- function Ji(e) {
17606
+ function ts(e) {
17581
17607
  return i`
17582
17608
  <div class="ml-popover">
17583
17609
  <div class="ml-popover__trigger" @click=${e.toggle}>
@@ -17593,7 +17619,7 @@ function Ji(e) {
17593
17619
  </div>
17594
17620
  `;
17595
17621
  }
17596
- const Qi = () => y`
17622
+ const rs = () => y`
17597
17623
  :host {
17598
17624
  display: inline-block;
17599
17625
  }
@@ -17713,7 +17739,7 @@ var hr = class {
17713
17739
  ue(),
17714
17740
  he({ padding: 8 })
17715
17741
  ];
17716
- l && a.push(Mr({
17742
+ l && a.push(Pr({
17717
17743
  element: l,
17718
17744
  padding: 8
17719
17745
  }));
@@ -17736,8 +17762,8 @@ var hr = class {
17736
17762
  };
17737
17763
  hr = g([_({
17738
17764
  selector: "ml-popover",
17739
- template: Ji,
17740
- styles: Qi,
17765
+ template: ts,
17766
+ styles: rs,
17741
17767
  attributes: [
17742
17768
  "placement",
17743
17769
  "offset",
@@ -17745,8 +17771,8 @@ hr = g([_({
17745
17771
  "arrow"
17746
17772
  ]
17747
17773
  })], hr);
17748
- function Zi(e) {
17749
- const t = e["sidebar-position"] === "right", r = e["sidebar-collapsed"], l = e["header-fixed"], a = e._mobileOpen, o = e.isMobile;
17774
+ function ls(e) {
17775
+ const t = e["sidebar-position"] === "right", r = e["sidebar-collapsed"], l = e["header-fixed"], a = e.mobileOpen, o = e.mobile;
17750
17776
  return i`
17751
17777
  <div
17752
17778
  class=${v({
@@ -17800,7 +17826,7 @@ function Zi(e) {
17800
17826
  </div>
17801
17827
  `;
17802
17828
  }
17803
- const es = () => y`
17829
+ const as = () => y`
17804
17830
  :host {
17805
17831
  display: block;
17806
17832
  height: 100%;
@@ -17990,36 +18016,33 @@ const es = () => y`
17990
18016
  `;
17991
18017
  var pr = class {
17992
18018
  constructor() {
17993
- this["sidebar-position"] = "left", this["sidebar-collapsed"] = !1, this["header-fixed"] = !1, this._mobileOpen = !1, this._mediaQuery = null, this._handleMediaChange = this.onMediaChange.bind(this), this.toggleMobileSidebar = () => {
17994
- this._mobileOpen = !this._mobileOpen;
18019
+ this["sidebar-position"] = "left", this["sidebar-collapsed"] = !1, this["header-fixed"] = !1, this.mobile = !1, this.mobileOpen = !1, this._mediaQuery = null, this._handleMediaChange = this.onMediaChange.bind(this), this.toggleMobileSidebar = () => {
18020
+ this.mobileOpen = !this.mobileOpen;
17995
18021
  }, this.closeMobileSidebar = () => {
17996
- this._mobileOpen = !1;
18022
+ this.mobileOpen = !1;
17997
18023
  };
17998
18024
  }
17999
- get isMobile() {
18000
- return this._mediaQuery?.matches === !1;
18001
- }
18002
18025
  onCreate() {
18003
- this._mediaQuery = window.matchMedia("(min-width: 768px)"), this._mediaQuery.addEventListener("change", this._handleMediaChange), this.isMobile || (this._mobileOpen = !1);
18026
+ this._mediaQuery = window.matchMedia("(min-width: 768px)"), this._mediaQuery.addEventListener("change", this._handleMediaChange), this.mobile = !this._mediaQuery.matches;
18004
18027
  }
18005
18028
  onDestroy() {
18006
18029
  this._mediaQuery?.removeEventListener("change", this._handleMediaChange);
18007
18030
  }
18008
18031
  onMediaChange(t) {
18009
- t.matches && (this._mobileOpen = !1);
18032
+ this.mobile = !t.matches, t.matches && (this.mobileOpen = !1);
18010
18033
  }
18011
18034
  };
18012
18035
  pr = g([_({
18013
18036
  selector: "ml-app-shell",
18014
- template: Zi,
18015
- styles: es,
18037
+ template: ls,
18038
+ styles: as,
18016
18039
  attributes: [
18017
18040
  "sidebar-position",
18018
18041
  "sidebar-collapsed",
18019
18042
  "header-fixed"
18020
18043
  ]
18021
18044
  })], pr);
18022
- function ts(e) {
18045
+ function os(e) {
18023
18046
  const t = e.variant === "split" || e.variant === "split-reverse";
18024
18047
  return i`
18025
18048
  <section
@@ -18080,7 +18103,7 @@ function ts(e) {
18080
18103
  </section>
18081
18104
  `;
18082
18105
  }
18083
- const rs = () => y`
18106
+ const is = () => y`
18084
18107
  :host {
18085
18108
  display: block;
18086
18109
  width: 100%;
@@ -18352,8 +18375,8 @@ var vr = class {
18352
18375
  };
18353
18376
  vr = g([_({
18354
18377
  selector: "ml-hero-section",
18355
- template: ts,
18356
- styles: rs,
18378
+ template: os,
18379
+ styles: is,
18357
18380
  attributes: [
18358
18381
  "variant",
18359
18382
  "size",
@@ -18362,7 +18385,7 @@ vr = g([_({
18362
18385
  "description"
18363
18386
  ]
18364
18387
  })], vr);
18365
- function ls(e) {
18388
+ function ss(e) {
18366
18389
  const t = !!(e.title || e.hasTitleSlot), r = !!(e.description || e.hasDescriptionSlot);
18367
18390
  return i`
18368
18391
  <header
@@ -18414,7 +18437,7 @@ function ls(e) {
18414
18437
  </header>
18415
18438
  `;
18416
18439
  }
18417
- const as = () => y`
18440
+ const ns = () => y`
18418
18441
  :host {
18419
18442
  display: block;
18420
18443
  }
@@ -18610,8 +18633,8 @@ var gr = class {
18610
18633
  };
18611
18634
  gr = g([_({
18612
18635
  selector: "ml-page-header",
18613
- template: ls,
18614
- styles: as,
18636
+ template: ss,
18637
+ styles: ns,
18615
18638
  attributes: [
18616
18639
  "variant",
18617
18640
  "divider",
@@ -18619,7 +18642,7 @@ gr = g([_({
18619
18642
  "description"
18620
18643
  ]
18621
18644
  })], gr);
18622
- function os(e) {
18645
+ function ds(e) {
18623
18646
  const t = e.variant === "split", r = i`
18624
18647
  <div class="ml-auth__logo">
18625
18648
  <slot name="logo"></slot>
@@ -18673,7 +18696,7 @@ function os(e) {
18673
18696
  </div>
18674
18697
  `;
18675
18698
  }
18676
- const qr = `
18699
+ const Br = `
18677
18700
  /* ============================================
18678
18701
  AUTH LAYOUT - SHARED STYLES
18679
18702
  ============================================ */
@@ -18845,8 +18868,8 @@ const qr = `
18845
18868
  padding: var(--ml-space-6);
18846
18869
  }
18847
18870
  }
18848
- `, is = () => y`
18849
- ${qr}
18871
+ `, cs = () => y`
18872
+ ${Br}
18850
18873
  `;
18851
18874
  var br = class {
18852
18875
  constructor() {
@@ -18863,15 +18886,15 @@ var br = class {
18863
18886
  };
18864
18887
  br = g([_({
18865
18888
  selector: "ml-login-page",
18866
- template: os,
18867
- styles: is,
18889
+ template: ds,
18890
+ styles: cs,
18868
18891
  attributes: [
18869
18892
  "variant",
18870
18893
  "title",
18871
18894
  "description"
18872
18895
  ]
18873
18896
  })], br);
18874
- function ss(e) {
18897
+ function ms(e) {
18875
18898
  const t = e.variant === "split", r = i`
18876
18899
  <div class="ml-auth__logo">
18877
18900
  <slot name="logo"></slot>
@@ -18925,8 +18948,8 @@ function ss(e) {
18925
18948
  </div>
18926
18949
  `;
18927
18950
  }
18928
- const ns = () => y`
18929
- ${qr}
18951
+ const us = () => y`
18952
+ ${Br}
18930
18953
  `;
18931
18954
  var fr = class {
18932
18955
  constructor() {
@@ -18943,15 +18966,15 @@ var fr = class {
18943
18966
  };
18944
18967
  fr = g([_({
18945
18968
  selector: "ml-signup-page",
18946
- template: ss,
18947
- styles: ns,
18969
+ template: ms,
18970
+ styles: us,
18948
18971
  attributes: [
18949
18972
  "variant",
18950
18973
  "title",
18951
18974
  "description"
18952
18975
  ]
18953
18976
  })], fr);
18954
- function ds(e) {
18977
+ function hs(e) {
18955
18978
  const t = e.layout === "default" && e.hasAside;
18956
18979
  return i`
18957
18980
  <ml-app-shell>
@@ -18994,7 +19017,7 @@ function ds(e) {
18994
19017
  </ml-app-shell>
18995
19018
  `;
18996
19019
  }
18997
- const cs = () => y`
19020
+ const ps = () => y`
18998
19021
  :host {
18999
19022
  display: block;
19000
19023
  height: 100%;
@@ -19106,8 +19129,8 @@ var _r = class {
19106
19129
  };
19107
19130
  _r = g([_({
19108
19131
  selector: "ml-dashboard-page",
19109
- template: ds,
19110
- styles: cs,
19132
+ template: hs,
19133
+ styles: ps,
19111
19134
  attributes: [
19112
19135
  "title",
19113
19136
  "description",
@@ -19115,7 +19138,8 @@ _r = g([_({
19115
19138
  ]
19116
19139
  })], _r);
19117
19140
  export {
19118
- Qr as AbortError,
19141
+ Zr as APP_CONFIG,
19142
+ rl as AbortError,
19119
19143
  Pt as ActivityFeedComponent,
19120
19144
  Ot as ActivityFeedItemComponent,
19121
19145
  yt as AlertComponent,
@@ -19133,56 +19157,56 @@ export {
19133
19157
  Kt as CalendarViewComponent,
19134
19158
  Ct as CardComponent,
19135
19159
  nt as CheckboxComponent,
19136
- Yr as ComponentBase,
19137
- zs as ComponentStateBaseService,
19160
+ Xr as ComponentBase,
19161
+ Os as ComponentStateBaseService,
19138
19162
  Rt as ContainerComponent,
19139
19163
  _r as DashboardPageComponent,
19140
19164
  _t as DatePickerComponent,
19141
19165
  Ee as DialogComponent,
19142
- Li as DialogRef,
19166
+ qi as DialogRef,
19143
19167
  J as DialogService,
19144
- Ps as Directive,
19168
+ Fs as Directive,
19145
19169
  St as DividerComponent,
19146
19170
  sr as DrawerComponent,
19147
19171
  nr as DropdownComponent,
19148
19172
  mr as DropdownGroupComponent,
19149
19173
  dr as DropdownItemComponent,
19150
19174
  cr as DropdownSeparatorComponent,
19151
- dl as EffectsBase,
19152
- Dr as FORM_CONTROL_MARKER,
19153
- wl as FORM_GROUP_MARKER,
19154
- xl as FormControl,
19175
+ hl as EffectsBase,
19176
+ Ir as FORM_CONTROL_MARKER,
19177
+ Sl as FORM_GROUP_MARKER,
19178
+ Cl as FormControl,
19155
19179
  gt as FormFieldComponent,
19156
- kl as FormGroup,
19180
+ El as FormGroup,
19157
19181
  vr as HeroSectionComponent,
19158
19182
  Te as HttpBaseError,
19159
19183
  je as HttpClient,
19160
- Xr as HttpError,
19184
+ el as HttpError,
19161
19185
  Wt as IconComponent,
19162
- ms as Inject,
19186
+ vs as Inject,
19163
19187
  Q as Injectable,
19164
- Br as InjectionEngine,
19188
+ Hr as InjectionEngine,
19165
19189
  N as Injector,
19166
19190
  it as InputComponent,
19167
19191
  It as ListComponent,
19168
19192
  Mt as ListItemComponent,
19169
19193
  br as LoginPageComponent,
19170
19194
  _ as MelodicComponent,
19171
- Jr as NetworkError,
19195
+ tl as NetworkError,
19172
19196
  gr as PageHeaderComponent,
19173
19197
  Qt as PaginationComponent,
19174
19198
  hr as PopoverComponent,
19175
19199
  $t as ProgressComponent,
19176
- el as ROUTE_CONTEXT_EVENT,
19200
+ al as ROUTE_CONTEXT_EVENT,
19177
19201
  ke as RX_ACTION_PROVIDERS,
19178
19202
  $e as RX_EFFECTS_PROVIDERS,
19179
19203
  we as RX_INIT_STATE,
19180
- zr as RX_STATE_DEBUG,
19204
+ Ar as RX_STATE_DEBUG,
19181
19205
  ut as RadioCardComponent,
19182
19206
  mt as RadioCardGroupComponent,
19183
19207
  dt as RadioComponent,
19184
19208
  ct as RadioGroupComponent,
19185
- bs as RouteContextEvent,
19209
+ ks as RouteContextEvent,
19186
19210
  _e as RouteContextService,
19187
19211
  be as RouteMatcher,
19188
19212
  xe as RouterLinkComponent,
@@ -19194,7 +19218,7 @@ export {
19194
19218
  Zt as SidebarComponent,
19195
19219
  er as SidebarGroupComponent,
19196
19220
  tr as SidebarItemComponent,
19197
- Tr as SignalEffect,
19221
+ zr as SignalEffect,
19198
19222
  j as SignalStoreService,
19199
19223
  fr as SignupPageComponent,
19200
19224
  vt as SliderComponent,
@@ -19208,177 +19232,181 @@ export {
19208
19232
  Nt as TableComponent,
19209
19233
  Gt as TabsComponent,
19210
19234
  Dt as TagComponent,
19211
- sl as TemplateResult,
19235
+ ml as TemplateResult,
19212
19236
  st as TextareaComponent,
19213
19237
  wt as ToastComponent,
19214
19238
  kt as ToastContainerComponent,
19215
19239
  xt as ToastService,
19216
19240
  ht as ToggleComponent,
19217
19241
  ur as TooltipComponent,
19218
- Ls as Validators,
19219
- Nr as VirtualScroller,
19220
- _o as activityFeedItemStyles,
19221
- fo as activityFeedItemTemplate,
19222
- bo as activityFeedStyles,
19223
- go as activityFeedTemplate,
19224
- Pl as allTokens,
19225
- tn as announce,
19226
- es as appShellStyles,
19227
- Zi as appShellTemplate,
19228
- Wr as applyGlobalStyles,
19229
- Vl as applyTheme,
19230
- Mr as arrow,
19242
+ Hs as Validators,
19243
+ Lr as VirtualScroller,
19244
+ ko as activityFeedItemStyles,
19245
+ wo as activityFeedItemTemplate,
19246
+ xo as activityFeedStyles,
19247
+ yo as activityFeedTemplate,
19248
+ Vl as allTokens,
19249
+ nn as announce,
19250
+ as as appShellStyles,
19251
+ ls as appShellTemplate,
19252
+ Gr as applyGlobalStyles,
19253
+ Bl as applyTheme,
19254
+ Pr as arrow,
19231
19255
  De as autoUpdate,
19232
- Hs as baseThemeCss,
19233
- us as bootstrap,
19234
- Dl as borderTokens,
19235
- di as breadcrumbItemStyles,
19236
- ni as breadcrumbItemTemplate,
19237
- si as breadcrumbStyles,
19238
- ii as breadcrumbTemplate,
19239
- Ml as breakpointTokens,
19240
- Fs as breakpoints,
19241
- rl as buildPathFromRoute,
19242
- Xo as calendarViewStyles,
19243
- Yo as calendarViewTemplate,
19256
+ Xs as baseThemeCss,
19257
+ gs as bootstrap,
19258
+ Ol as borderTokens,
19259
+ hi as breadcrumbItemStyles,
19260
+ ui as breadcrumbItemTemplate,
19261
+ mi as breadcrumbStyles,
19262
+ ci as breadcrumbTemplate,
19263
+ Ll as breakpointTokens,
19264
+ Gs as breakpoints,
19265
+ il as buildPathFromRoute,
19266
+ ei as calendarViewStyles,
19267
+ Zo as calendarViewTemplate,
19244
19268
  v as classMap,
19245
- sn as clickOutside,
19246
- Rl as colorTokens,
19247
- on as componentBaseStyles,
19269
+ hn as clickOutside,
19270
+ Dl as colorTokens,
19271
+ un as componentBaseStyles,
19248
19272
  ce as computePosition,
19249
19273
  T as computed,
19250
- ro as containerStyles,
19251
- to as containerTemplate,
19252
- Ss as createAction,
19253
- js as createAsyncValidator,
19254
- Ys as createBrandTheme,
19255
- vs as createDeactivateGuard,
19256
- Wl as createFocusTrap,
19257
- Os as createFormControl,
19258
- Ns as createFormGroup,
19259
- ps as createGuard,
19260
- rn as createLiveRegion,
19261
- Es as createReducer,
19262
- gs as createResolver,
19263
- Rs as createState,
19264
- Ir as createTheme,
19265
- se as createToken,
19266
- Vs as createValidator,
19274
+ io as containerStyles,
19275
+ oo as containerTemplate,
19276
+ Ds as createAction,
19277
+ Ws as createAsyncValidator,
19278
+ tn as createBrandTheme,
19279
+ xs as createDeactivateGuard,
19280
+ Xl as createFocusTrap,
19281
+ qs as createFormControl,
19282
+ Bs as createFormGroup,
19283
+ ys as createGuard,
19284
+ dn as createLiveRegion,
19285
+ Is as createReducer,
19286
+ ws as createResolver,
19287
+ Ms as createState,
19288
+ Mr as createTheme,
19289
+ Z as createToken,
19290
+ Ks as createValidator,
19267
19291
  y as css,
19268
19292
  Qe as darkTheme,
19269
- Bs as darkThemeCss,
19270
- cs as dashboardPageStyles,
19271
- ds as dashboardPageTemplate,
19293
+ Ys as darkThemeCss,
19294
+ ps as dashboardPageStyles,
19295
+ hs as dashboardPageTemplate,
19296
+ bs as defineConfig,
19272
19297
  G as directive,
19273
- ji as drawerStyles,
19274
- Vi as drawerTemplate,
19275
- Ui as dropdownGroupStyles,
19276
- Gi as dropdownGroupTemplate,
19277
- Hi as dropdownItemStyles,
19278
- Bi as dropdownItemTemplate,
19279
- Wi as dropdownSeparatorStyles,
19280
- Ki as dropdownSeparatorTemplate,
19281
- qi as dropdownStyles,
19282
- Fi as dropdownTemplate,
19283
- tl as findRouteByName,
19298
+ Hi as drawerStyles,
19299
+ Bi as drawerTemplate,
19300
+ Qi as dropdownGroupStyles,
19301
+ Ji as dropdownGroupTemplate,
19302
+ Ui as dropdownItemStyles,
19303
+ Gi as dropdownItemTemplate,
19304
+ Xi as dropdownSeparatorStyles,
19305
+ Yi as dropdownSeparatorTemplate,
19306
+ Wi as dropdownStyles,
19307
+ Ki as dropdownTemplate,
19308
+ Qr as environment,
19309
+ ol as findRouteByName,
19284
19310
  ue as flip,
19285
- Xs as focusFirst,
19286
- Js as focusLast,
19287
- Qs as focusTrap,
19288
- en as focusVisible,
19289
- Sl as formControlDirective,
19290
- Ta as formFieldStyles,
19291
- Ra as formFieldTemplate,
19292
- Rr as getActiveEffect,
19293
- ol as getAttributeDirective,
19294
- Pr as getFirstFocusable,
19311
+ rn as focusFirst,
19312
+ ln as focusLast,
19313
+ an as focusTrap,
19314
+ sn as focusVisible,
19315
+ zl as formControlDirective,
19316
+ Ia as formFieldStyles,
19317
+ Da as formFieldTemplate,
19318
+ Tr as getActiveEffect,
19319
+ dl as getAttributeDirective,
19320
+ Jr as getEnvironment,
19321
+ Or as getFirstFocusable,
19295
19322
  Ie as getFocusableElements,
19296
- Kl as getLastFocusable,
19297
- ws as getRegisteredDirectives,
19298
- Ll as getResolvedTheme,
19299
- Ks as getTheme,
19323
+ Yl as getLastFocusable,
19324
+ Rs as getRegisteredDirectives,
19325
+ ql as getResolvedTheme,
19326
+ Js as getTheme,
19300
19327
  P as getTokenKey,
19301
- ys as hasAttributeDirective,
19302
- rs as heroSectionStyles,
19303
- ts as heroSectionTemplate,
19328
+ Ss as hasAttributeDirective,
19329
+ is as heroSectionStyles,
19330
+ os as heroSectionTemplate,
19304
19331
  i as html,
19305
- Us as injectTheme,
19306
- Z as isDirective,
19307
- Zs as isFocusVisible,
19308
- Hr as isSignal,
19309
- Nl as lightTheme,
19310
- qs as lightThemeCss,
19311
- vo as listItemStyles,
19312
- po as listItemTemplate,
19313
- ho as listStyles,
19314
- uo as listTemplate,
19315
- is as loginPageStyles,
19316
- os as loginPageTemplate,
19332
+ en as injectTheme,
19333
+ ee as isDirective,
19334
+ on as isFocusVisible,
19335
+ Kr as isSignal,
19336
+ Fl as lightTheme,
19337
+ Us as lightThemeCss,
19338
+ _o as listItemStyles,
19339
+ fo as listItemTemplate,
19340
+ bo as listStyles,
19341
+ go as listTemplate,
19342
+ cs as loginPageStyles,
19343
+ ds as loginPageTemplate,
19317
19344
  fe as matchRouteTree,
19318
- Ul as newID,
19345
+ Ql as newID,
19319
19346
  me as offset,
19320
- Ts as onAction,
19321
- Ws as onThemeChange,
19322
- as as pageHeaderStyles,
19323
- ls as pageHeaderTemplate,
19324
- mi as paginationStyles,
19325
- ci as paginationTemplate,
19326
- yl as portalDirective,
19327
- El as primitiveColors,
19328
- Ua as progressStyles,
19329
- Ga as progressTemplate,
19330
- Cs as props,
19331
- hs as provideHttp,
19332
- Ds as provideRX,
19347
+ Ps as onAction,
19348
+ Qs as onThemeChange,
19349
+ ns as pageHeaderStyles,
19350
+ ss as pageHeaderTemplate,
19351
+ vi as paginationStyles,
19352
+ pi as paginationTemplate,
19353
+ $l as portalDirective,
19354
+ Al as primitiveColors,
19355
+ Qa as progressStyles,
19356
+ Ja as progressTemplate,
19357
+ As as props,
19358
+ fs as provideConfig,
19359
+ _s as provideHttp,
19360
+ Ls as provideRX,
19333
19361
  ne as registerAttributeDirective,
19334
19362
  Oe as render,
19335
19363
  $ as repeat,
19336
- Is as repeatRaw,
19337
- ln as resetStyles,
19338
- nl as routerLinkDirective,
19339
- Ca as selectStyles,
19340
- xa as selectTemplate,
19364
+ Vs as repeatRaw,
19365
+ cn as resetStyles,
19366
+ ul as routerLinkDirective,
19367
+ Ta as selectStyles,
19368
+ Ca as selectTemplate,
19341
19369
  Ge as setActiveEffect,
19342
- Al as shadowTokens,
19370
+ Pl as shadowTokens,
19343
19371
  he as shift,
19344
- gi as sidebarGroupStyles,
19345
- vi as sidebarGroupTemplate,
19346
- fi as sidebarItemStyles,
19347
- bi as sidebarItemTemplate,
19348
- pi as sidebarStyles,
19349
- ui as sidebarTemplate,
19372
+ yi as sidebarGroupStyles,
19373
+ _i as sidebarGroupTemplate,
19374
+ wi as sidebarItemStyles,
19375
+ xi as sidebarItemTemplate,
19376
+ fi as sidebarStyles,
19377
+ gi as sidebarTemplate,
19350
19378
  M as signal,
19351
- ns as signupPageStyles,
19352
- ss as signupPageTemplate,
19353
- Ea as sliderStyles,
19354
- Sa as sliderTemplate,
19355
- Tl as spacingTokens,
19356
- Pi as stepPanelStyles,
19357
- Mi as stepPanelTemplate,
19358
- Ii as stepStyles,
19359
- Si as stepTemplate,
19360
- Ci as stepsStyles,
19361
- _i as stepsTemplate,
19379
+ us as signupPageStyles,
19380
+ ms as signupPageTemplate,
19381
+ Aa as sliderStyles,
19382
+ za as sliderTemplate,
19383
+ Il as spacingTokens,
19384
+ Vi as stepPanelStyles,
19385
+ Li as stepPanelTemplate,
19386
+ Ni as stepStyles,
19387
+ zi as stepTemplate,
19388
+ Ti as stepsStyles,
19389
+ ki as stepsTemplate,
19362
19390
  W as styleMap,
19363
- oi as tabPanelStyles,
19364
- ai as tabPanelTemplate,
19365
- li as tabStyles,
19366
- ri as tabTemplate,
19367
- wo as tableStyles,
19368
- xo as tableTemplate,
19369
- ti as tabsStyles,
19370
- Zo as tabsTemplate,
19371
- Ba as toastContainerStyles,
19372
- qa as toastContainerTemplate,
19373
- Fa as toastStyles,
19374
- ja as toastTemplate,
19375
- Gs as toggleTheme,
19376
- Ol as tokensToCss,
19377
- Xl as tooltipDirective,
19378
- Il as transitionTokens,
19379
- zl as typographyTokens,
19380
- xs as unregisterAttributeDirective,
19381
- Ms as unsafeHTML,
19382
- an as visuallyHiddenStyles,
19391
+ di as tabPanelStyles,
19392
+ ni as tabPanelTemplate,
19393
+ si as tabStyles,
19394
+ ii as tabTemplate,
19395
+ So as tableStyles,
19396
+ Co as tableTemplate,
19397
+ oi as tabsStyles,
19398
+ li as tabsTemplate,
19399
+ Ga as toastContainerStyles,
19400
+ Wa as toastContainerTemplate,
19401
+ Ka as toastStyles,
19402
+ Ha as toastTemplate,
19403
+ Zs as toggleTheme,
19404
+ jl as tokensToCss,
19405
+ ea as tooltipDirective,
19406
+ Nl as transitionTokens,
19407
+ Ml as typographyTokens,
19408
+ Es as unregisterAttributeDirective,
19409
+ js as unsafeHTML,
19410
+ mn as visuallyHiddenStyles,
19383
19411
  d as when
19384
19412
  };