@luzmo/analytics-components-kit 1.0.1-alpha.27 → 1.0.1-alpha.29

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.
Files changed (171) hide show
  1. package/components/{async-directive-DWRUSKKF-CmOVMf6V.js → async-directive-DWRUSKKF-CPf9l5wJ.js} +1 -1
  2. package/components/{async-directive-DWRUSKKF-D4itZyzc.cjs → async-directive-DWRUSKKF-DWUZeMaj.cjs} +1 -1
  3. package/components/base-D76d76ww-C6YO3slp.cjs +94 -0
  4. package/components/base-D76d76ww-M5t7LVBG.js +758 -0
  5. package/components/{button-base-DSHx7XO8-VB_BBSqq.js → button-base-DSHx7XO8-B_LbLx9g.js} +7 -6
  6. package/components/{button-base-DSHx7XO8-Cixrr9aG.cjs → button-base-DSHx7XO8-ChNRhetl.cjs} +2 -2
  7. package/components/{checkbox-mixin-BFGTmw17-C34LMsgu.js → checkbox-mixin-BFGTmw17-C1tjSMaa.js} +2 -2
  8. package/components/{checkbox-mixin-BFGTmw17-CCjGd0nS.cjs → checkbox-mixin-BFGTmw17-DF2p-vSz.cjs} +4 -4
  9. package/components/{directive-helpers-nlQRAaQt-3kEWF2GV.cjs → directive-helpers-nlQRAaQt-DTZp2cFt.cjs} +4 -4
  10. package/components/{directive-helpers-nlQRAaQt-I6T4KZKW.js → directive-helpers-nlQRAaQt-DgSC1Yr2.js} +1 -1
  11. package/components/display-settings/display-settings.d.ts +3 -3
  12. package/components/display-settings/index.cjs +1 -1
  13. package/components/display-settings/index.js +20 -20
  14. package/components/display-settings-binning/display-settings-binning.d.ts +3 -3
  15. package/components/display-settings-binning/index.cjs +2 -2
  16. package/components/display-settings-binning/index.js +21 -21
  17. package/components/display-settings-datetime/display-settings-datetime.d.ts +3 -3
  18. package/components/display-settings-datetime/index.cjs +2 -2
  19. package/components/display-settings-datetime/index.js +23 -23
  20. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +3 -3
  21. package/components/display-settings-grand-totals/index.cjs +2 -2
  22. package/components/display-settings-grand-totals/index.js +20 -20
  23. package/components/display-settings-numeric/display-settings-numeric.d.ts +3 -3
  24. package/components/display-settings-numeric/index.cjs +4 -4
  25. package/components/display-settings-numeric/index.js +24 -24
  26. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +3 -3
  27. package/components/display-settings-period-over-period/index.cjs +15 -15
  28. package/components/display-settings-period-over-period/index.js +45 -44
  29. package/components/draggable-data-item/draggable-data-item.d.ts +3 -3
  30. package/components/draggable-data-item/index.cjs +4 -4
  31. package/components/draggable-data-item/index.js +7 -7
  32. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +3 -3
  33. package/components/draggable-data-item-level/index.cjs +4 -4
  34. package/components/draggable-data-item-level/index.js +16 -16
  35. package/components/droppable-slot/droppable-slot.d.ts +3 -3
  36. package/components/droppable-slot/index.cjs +2 -2
  37. package/components/droppable-slot/index.js +16 -16
  38. package/components/edit-item/edit-item.d.ts +2 -1
  39. package/components/edit-item/index.cjs +16 -16
  40. package/components/edit-item/index.js +38 -37
  41. package/components/edit-option/edit-option.d.ts +1 -1
  42. package/components/edit-option/helpers/control-markup.d.ts +1 -1
  43. package/components/edit-option/index.cjs +1 -1
  44. package/components/edit-option/index.js +2 -2
  45. package/components/edit-option-action-button-group/index.cjs +2 -2
  46. package/components/edit-option-action-button-group/index.js +7 -7
  47. package/components/edit-option-base/edit-option-base.d.ts +3 -3
  48. package/components/{edit-option-base-CPLI5-oZ.js → edit-option-base-C0zI8SOd.js} +4 -4
  49. package/components/edit-option-base-D8vs3Bty.cjs +53 -0
  50. package/components/edit-option-color-picker/index.cjs +26 -26
  51. package/components/edit-option-color-picker/index.js +35 -34
  52. package/components/edit-option-multi-language-field/index.cjs +1 -1
  53. package/components/edit-option-multi-language-field/index.js +4 -4
  54. package/components/edit-option-number-field/index.cjs +2 -2
  55. package/components/edit-option-number-field/index.js +4 -4
  56. package/components/edit-option-picker/index.cjs +2 -2
  57. package/components/edit-option-picker/index.js +5 -5
  58. package/components/edit-option-position-picker/index.cjs +2 -2
  59. package/components/edit-option-position-picker/index.js +4 -4
  60. package/components/edit-option-positions-number-field/index.cjs +1 -1
  61. package/components/edit-option-positions-number-field/index.js +6 -6
  62. package/components/edit-option-radio-button-group/index.cjs +4 -4
  63. package/components/edit-option-radio-button-group/index.js +5 -5
  64. package/components/edit-option-slider/index.cjs +3 -3
  65. package/components/edit-option-slider/index.js +8 -8
  66. package/components/edit-option-switch/index.cjs +5 -5
  67. package/components/edit-option-switch/index.js +10 -9
  68. package/components/edit-option-text-field/index.cjs +2 -2
  69. package/components/edit-option-text-field/index.js +4 -4
  70. package/components/focusable-Cu_m_GTh.cjs +42 -0
  71. package/components/focusable-Dw_pMNQL.js +852 -0
  72. package/components/focusable-cj2QhwDT-CvevSkDr.cjs +52 -0
  73. package/components/focusable-cj2QhwDT-DlzfnLn9.js +242 -0
  74. package/components/{if-defined-BSAr_4u4-4Ys8VE7T.js → if-defined-BSAr_4u4-BCnSpSsA.js} +14 -15
  75. package/components/{if-defined-BSAr_4u4-gECNwmTC.cjs → if-defined-BSAr_4u4-CIqREoag.cjs} +3 -3
  76. package/components/{if-defined-8BOch-oC.cjs → if-defined-CF8baNdl.cjs} +2 -2
  77. package/components/{if-defined-Bv6MRdSW.js → if-defined-DbhS35z5.js} +1 -1
  78. package/components/{index-Dv1aV79F.cjs → index-9hGc0AF6.cjs} +6 -6
  79. package/components/{index-OuAMpMdS.js → index-B2LO8M42.js} +10 -11
  80. package/components/{index-DFt-aKCN.cjs → index-B3417kqb.cjs} +2 -2
  81. package/components/{index-CDUZyVS8.cjs → index-BIauj-BP.cjs} +3 -3
  82. package/components/{index-CY1zprJk.cjs → index-BIcAxPGg.cjs} +4 -4
  83. package/components/{index-CMvCwUvn.cjs → index-BLyfPWMW.cjs} +1 -1
  84. package/components/{index-CAG4u31N.cjs → index-BW6jffrL.cjs} +8 -8
  85. package/components/{index-Bsn3jtgt.js → index-BjdUsH9B.js} +10 -11
  86. package/components/{index-CJtXD_RI.js → index-BnVt-dJY.js} +10 -11
  87. package/components/{index-BgR4fBCA.cjs → index-Bp6XY9q2.cjs} +3 -3
  88. package/components/{index-Dk2zOgvd.js → index-C8yP7YJD.js} +6 -7
  89. package/components/{index-B6Os866t.cjs → index-CAwT4m7K.cjs} +5 -5
  90. package/components/{index-CdZDTZcN.js → index-CBNsaHFy.js} +6 -7
  91. package/components/{index-NFKXlEm1.cjs → index-CC53jnJB.cjs} +2 -2
  92. package/components/{index-BnOOdgQZ.cjs → index-CZUy8SUo.cjs} +4 -4
  93. package/components/{index-DULisWB3.cjs → index-Cl7wWlXl.cjs} +2 -2
  94. package/components/{index-CT2P9cSY.cjs → index-Cz9Cvq1K.cjs} +6 -6
  95. package/components/{index-CX0ynTHR.js → index-D8GVYuJ-.js} +14 -15
  96. package/components/{index-Brne8JKA.js → index-DQCvi59x.js} +18 -18
  97. package/components/{index-DW3LXQ5Z.js → index-DelXrrBi.js} +15 -15
  98. package/components/{index-CTxrSfyd.js → index-Dku2WLRc.js} +5 -6
  99. package/components/{index-DDm8p09D.js → index-Du8Q4hhF.js} +1 -1
  100. package/components/{index-Dn7LyFPv.js → index-Dwp251OJ.js} +3 -3
  101. package/components/{index-Dpt_Qqgy.js → index-KY89MPqI.js} +4 -5
  102. package/components/{index-E6HaIK_Z.cjs → index-b9OSfNB6.cjs} +7 -7
  103. package/components/{index-CPdcj1Bo.js → index-fheP_kQJ.js} +3 -3
  104. package/components/{index-nP-SGD7o.js → index-fzqLW5XZ.js} +6 -7
  105. package/components/index-hogChFy0.cjs +195 -0
  106. package/components/{index-DoZEESMk.cjs → index-mB-t2zP2.cjs} +4 -4
  107. package/components/{index-DOnHTKUs.js → index-zFIy9Mwl.js} +13 -14
  108. package/components/index.cjs +1 -1
  109. package/components/index.js +2 -2
  110. package/components/{luzmo-icons-DxZo8BWX.js → luzmo-icons-CmY3chvZ.js} +1 -1
  111. package/components/luzmo-icons-lvebt6bp.cjs +31 -0
  112. package/components/{observe-slot-text-ggb4kKgY-DBVrKDBD.cjs → observe-slot-text-ggb4kKgY-5zLP4Vgh.cjs} +2 -2
  113. package/components/{observe-slot-text-ggb4kKgY-o5QFWUeA.js → observe-slot-text-ggb4kKgY-tm0SQCaj.js} +3 -3
  114. package/components/{popover-Bx4ZDHk4-BuzeOeNe.cjs → popover-Bx4ZDHk4-Cw2DKR2x.cjs} +2 -2
  115. package/components/{popover-Bx4ZDHk4-jZJ0Cd59.js → popover-Bx4ZDHk4-HbUSJ86p.js} +6 -7
  116. package/components/{query-assigned-nodes-C76XVPWY-DPC6kOmH.js → query-assigned-nodes-C76XVPWY-DON51dMU.js} +1 -1
  117. package/components/{query-assigned-nodes-C76XVPWY-BcyGjObB.cjs → query-assigned-nodes-C76XVPWY-DzOeAzcN.cjs} +1 -1
  118. package/components/sized-mixin-Cqlxwicw.cjs +20 -0
  119. package/components/sized-mixin-DMuOVsw0.js +65 -0
  120. package/components/slot-menu/index.cjs +1 -1
  121. package/components/slot-menu/index.js +28 -28
  122. package/components/slot-menu/slot-menu.d.ts +3 -3
  123. package/components/slot-menu-list/index.cjs +2 -2
  124. package/components/slot-menu-list/index.js +15 -15
  125. package/components/slot-menu-list/slot-menu-list.d.ts +3 -3
  126. package/components/{state-BFA93Sye.cjs → state-QgHgNZLe.cjs} +2 -2
  127. package/components/{state-Joaryhrg.js → state-e2n-fyrr.js} +1 -1
  128. package/components/{language-resolution-8yZa5r_P-CYK1IIrs.cjs → streaming-listener-CCalHg57-2AtO4Ho2.cjs} +3 -3
  129. package/components/{language-resolution-8yZa5r_P-Chn3SFme.js → streaming-listener-CCalHg57-CQgWstyf.js} +58 -58
  130. package/components/{task-B8yMzxui.cjs → task-fQFUVV8e.cjs} +2 -2
  131. package/components/{task-Cr9aRIbV.js → task-gE27tBDv.js} +1 -1
  132. package/components/{text-field-BTnBJoP9-jo797Hka.js → text-field-BTnBJoP9-BuahhcXU.js} +6 -6
  133. package/components/{text-field-BTnBJoP9-Cwm3XQ88.cjs → text-field-BTnBJoP9-CDMhK3d1.cjs} +2 -2
  134. package/custom-elements.json +52 -288
  135. package/package.json +2 -2
  136. package/utils/base/base.d.ts +16 -0
  137. package/utils/base/focus-visible.d.ts +29 -0
  138. package/utils/base/focusable.d.ts +58 -0
  139. package/utils/base/index.d.ts +4 -0
  140. package/utils/base/sized-mixin.d.ts +17 -0
  141. package/components/base-D76d76ww-BiajPmzU.cjs +0 -40
  142. package/components/base-D76d76ww-gf0ESLsU.js +0 -45
  143. package/components/edit-option-base-ChZvMFLr.cjs +0 -53
  144. package/components/filter-data-item-picker/filter-data-item-picker.d.ts +0 -80
  145. package/components/filter-data-item-picker/index.d.ts +0 -7
  146. package/components/filter-expression-picker/filter-expression-picker.d.ts +0 -60
  147. package/components/filter-expression-picker/index.d.ts +0 -7
  148. package/components/filter-group/filter-group.d.ts +0 -39
  149. package/components/filter-group/index.d.ts +0 -7
  150. package/components/filter-item/filter-item.d.ts +0 -64
  151. package/components/filter-item/index.d.ts +0 -7
  152. package/components/filter-item/stories/dataset-data-items.const.d.ts +0 -15
  153. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +0 -26
  154. package/components/filter-parameter-picker/index.d.ts +0 -7
  155. package/components/filter-value-picker/filter-value-picker.d.ts +0 -65
  156. package/components/filter-value-picker/index.d.ts +0 -7
  157. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +0 -43
  158. package/components/filter-value-picker-datetime/index.d.ts +0 -7
  159. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +0 -71
  160. package/components/filter-value-picker-hierarchy/index.d.ts +0 -7
  161. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +0 -72
  162. package/components/filter-value-picker-numeric/index.d.ts +0 -7
  163. package/components/index-eEpFkbP8.cjs +0 -195
  164. package/components/luzmo-icons-XsFsTAl3.cjs +0 -31
  165. package/components/property-0L4eB11h.cjs +0 -112
  166. package/components/property-B2F7x7Cz.js +0 -1481
  167. package/components/sized-mixin-BxMraZLS-B_y0PzR3.js +0 -82
  168. package/components/sized-mixin-BxMraZLS-DEFWqo8f.cjs +0 -36
  169. package/utils/data-broker/index.d.ts +0 -173
  170. package/utils/data-item-types/calculate-data-item-icon.d.ts +0 -3
  171. package/utils/expressions/index.d.ts +0 -13
@@ -0,0 +1,852 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ /**
21
+ * @license
22
+ * Copyright 2019 Google LLC
23
+ * SPDX-License-Identifier: BSD-3-Clause
24
+ */
25
+ const U = globalThis, z = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rt = Symbol(), Z = /* @__PURE__ */ new WeakMap();
26
+ let pt = class {
27
+ constructor(t, e, s) {
28
+ if (this._$cssResult$ = !0, s !== rt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
29
+ this.cssText = t, this.t = e;
30
+ }
31
+ get styleSheet() {
32
+ let t = this.o;
33
+ const e = this.t;
34
+ if (z && t === void 0) {
35
+ const s = e !== void 0 && e.length === 1;
36
+ s && (t = Z.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Z.set(e, t));
37
+ }
38
+ return t;
39
+ }
40
+ toString() {
41
+ return this.cssText;
42
+ }
43
+ };
44
+ const ft = (o) => new pt(typeof o == "string" ? o : o + "", void 0, rt), mt = (o, t) => {
45
+ if (z) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
46
+ else for (const e of t) {
47
+ const s = document.createElement("style"), i = U.litNonce;
48
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
49
+ }
50
+ }, J = z ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
51
+ let e = "";
52
+ for (const s of t.cssRules) e += s.cssText;
53
+ return ft(e);
54
+ })(o) : o;
55
+ /**
56
+ * @license
57
+ * Copyright 2017 Google LLC
58
+ * SPDX-License-Identifier: BSD-3-Clause
59
+ */
60
+ const { is: bt, defineProperty: $t, getOwnPropertyDescriptor: _t, getOwnPropertyNames: gt, getOwnPropertySymbols: At, getPrototypeOf: yt } = Object, b = globalThis, G = b.trustedTypes, vt = G ? G.emptyScript : "", k = b.reactiveElementPolyfillSupport, w = (o, t) => o, N = { toAttribute(o, t) {
61
+ switch (t) {
62
+ case Boolean:
63
+ o = o ? vt : null;
64
+ break;
65
+ case Object:
66
+ case Array:
67
+ o = o == null ? o : JSON.stringify(o);
68
+ }
69
+ return o;
70
+ }, fromAttribute(o, t) {
71
+ let e = o;
72
+ switch (t) {
73
+ case Boolean:
74
+ e = o !== null;
75
+ break;
76
+ case Number:
77
+ e = o === null ? null : Number(o);
78
+ break;
79
+ case Object:
80
+ case Array:
81
+ try {
82
+ e = JSON.parse(o);
83
+ } catch {
84
+ e = null;
85
+ }
86
+ }
87
+ return e;
88
+ } }, V = (o, t) => !bt(o, t), Q = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: V };
89
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), b.litPropertyMetadata ?? (b.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
90
+ let A = class extends HTMLElement {
91
+ static addInitializer(t) {
92
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
93
+ }
94
+ static get observedAttributes() {
95
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
96
+ }
97
+ static createProperty(t, e = Q) {
98
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
99
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
100
+ i !== void 0 && $t(this.prototype, t, i);
101
+ }
102
+ }
103
+ static getPropertyDescriptor(t, e, s) {
104
+ const { get: i, set: r } = _t(this.prototype, t) ?? { get() {
105
+ return this[e];
106
+ }, set(n) {
107
+ this[e] = n;
108
+ } };
109
+ return { get() {
110
+ return i == null ? void 0 : i.call(this);
111
+ }, set(n) {
112
+ const l = i == null ? void 0 : i.call(this);
113
+ r.call(this, n), this.requestUpdate(t, l, s);
114
+ }, configurable: !0, enumerable: !0 };
115
+ }
116
+ static getPropertyOptions(t) {
117
+ return this.elementProperties.get(t) ?? Q;
118
+ }
119
+ static _$Ei() {
120
+ if (this.hasOwnProperty(w("elementProperties"))) return;
121
+ const t = yt(this);
122
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
123
+ }
124
+ static finalize() {
125
+ if (this.hasOwnProperty(w("finalized"))) return;
126
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
127
+ const e = this.properties, s = [...gt(e), ...At(e)];
128
+ for (const i of s) this.createProperty(i, e[i]);
129
+ }
130
+ const t = this[Symbol.metadata];
131
+ if (t !== null) {
132
+ const e = litPropertyMetadata.get(t);
133
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
134
+ }
135
+ this._$Eh = /* @__PURE__ */ new Map();
136
+ for (const [e, s] of this.elementProperties) {
137
+ const i = this._$Eu(e, s);
138
+ i !== void 0 && this._$Eh.set(i, e);
139
+ }
140
+ this.elementStyles = this.finalizeStyles(this.styles);
141
+ }
142
+ static finalizeStyles(t) {
143
+ const e = [];
144
+ if (Array.isArray(t)) {
145
+ const s = new Set(t.flat(1 / 0).reverse());
146
+ for (const i of s) e.unshift(J(i));
147
+ } else t !== void 0 && e.push(J(t));
148
+ return e;
149
+ }
150
+ static _$Eu(t, e) {
151
+ const s = e.attribute;
152
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
153
+ }
154
+ constructor() {
155
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
156
+ }
157
+ _$Ev() {
158
+ var t;
159
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
160
+ }
161
+ addController(t) {
162
+ var e;
163
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
164
+ }
165
+ removeController(t) {
166
+ var e;
167
+ (e = this._$EO) == null || e.delete(t);
168
+ }
169
+ _$E_() {
170
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
171
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
172
+ t.size > 0 && (this._$Ep = t);
173
+ }
174
+ createRenderRoot() {
175
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
176
+ return mt(t, this.constructor.elementStyles), t;
177
+ }
178
+ connectedCallback() {
179
+ var t;
180
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
181
+ var s;
182
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
183
+ });
184
+ }
185
+ enableUpdating(t) {
186
+ }
187
+ disconnectedCallback() {
188
+ var t;
189
+ (t = this._$EO) == null || t.forEach((e) => {
190
+ var s;
191
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
192
+ });
193
+ }
194
+ attributeChangedCallback(t, e, s) {
195
+ this._$AK(t, s);
196
+ }
197
+ _$EC(t, e) {
198
+ var r;
199
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
200
+ if (i !== void 0 && s.reflect === !0) {
201
+ const n = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : N).toAttribute(e, s.type);
202
+ this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
203
+ }
204
+ }
205
+ _$AK(t, e) {
206
+ var r;
207
+ const s = this.constructor, i = s._$Eh.get(t);
208
+ if (i !== void 0 && this._$Em !== i) {
209
+ const n = s.getPropertyOptions(i), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? n.converter : N;
210
+ this._$Em = i, this[i] = l.fromAttribute(e, n.type), this._$Em = null;
211
+ }
212
+ }
213
+ requestUpdate(t, e, s) {
214
+ if (t !== void 0) {
215
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? V)(this[t], e)) return;
216
+ this.P(t, e, s);
217
+ }
218
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
219
+ }
220
+ P(t, e, s) {
221
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
222
+ }
223
+ async _$ET() {
224
+ this.isUpdatePending = !0;
225
+ try {
226
+ await this._$ES;
227
+ } catch (e) {
228
+ Promise.reject(e);
229
+ }
230
+ const t = this.scheduleUpdate();
231
+ return t != null && await t, !this.isUpdatePending;
232
+ }
233
+ scheduleUpdate() {
234
+ return this.performUpdate();
235
+ }
236
+ performUpdate() {
237
+ var s;
238
+ if (!this.isUpdatePending) return;
239
+ if (!this.hasUpdated) {
240
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
241
+ for (const [r, n] of this._$Ep) this[r] = n;
242
+ this._$Ep = void 0;
243
+ }
244
+ const i = this.constructor.elementProperties;
245
+ if (i.size > 0) for (const [r, n] of i) n.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], n);
246
+ }
247
+ let t = !1;
248
+ const e = this._$AL;
249
+ try {
250
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
251
+ var r;
252
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
253
+ }), this.update(e)) : this._$EU();
254
+ } catch (i) {
255
+ throw t = !1, this._$EU(), i;
256
+ }
257
+ t && this._$AE(e);
258
+ }
259
+ willUpdate(t) {
260
+ }
261
+ _$AE(t) {
262
+ var e;
263
+ (e = this._$EO) == null || e.forEach((s) => {
264
+ var i;
265
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
266
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
267
+ }
268
+ _$EU() {
269
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
270
+ }
271
+ get updateComplete() {
272
+ return this.getUpdateComplete();
273
+ }
274
+ getUpdateComplete() {
275
+ return this._$ES;
276
+ }
277
+ shouldUpdate(t) {
278
+ return !0;
279
+ }
280
+ update(t) {
281
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
282
+ }
283
+ updated(t) {
284
+ }
285
+ firstUpdated(t) {
286
+ }
287
+ };
288
+ A.elementStyles = [], A.shadowRootOptions = { mode: "open" }, A[w("elementProperties")] = /* @__PURE__ */ new Map(), A[w("finalized")] = /* @__PURE__ */ new Map(), k == null || k({ ReactiveElement: A }), (b.reactiveElementVersions ?? (b.reactiveElementVersions = [])).push("2.0.4");
289
+ /**
290
+ * @license
291
+ * Copyright 2017 Google LLC
292
+ * SPDX-License-Identifier: BSD-3-Clause
293
+ */
294
+ const x = globalThis, R = x.trustedTypes, X = R ? R.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, at = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, lt = "?" + m, Et = `<${lt}>`, g = document, C = () => g.createComment(""), P = (o) => o === null || typeof o != "object" && typeof o != "function", B = Array.isArray, wt = (o) => B(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", L = `[
295
+ \f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y = /-->/g, tt = />/g, $ = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
296
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), et = /'/g, st = /"/g, ht = /^(?:script|style|textarea|title)$/i, ct = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), Bt = ct(1), qt = ct(2), y = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), it = /* @__PURE__ */ new WeakMap(), _ = g.createTreeWalker(g, 129);
297
+ function dt(o, t) {
298
+ if (!B(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
299
+ return X !== void 0 ? X.createHTML(t) : t;
300
+ }
301
+ const xt = (o, t) => {
302
+ const e = o.length - 1, s = [];
303
+ let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = E;
304
+ for (let l = 0; l < e; l++) {
305
+ const a = o[l];
306
+ let c, u, h = -1, p = 0;
307
+ for (; p < a.length && (n.lastIndex = p, u = n.exec(a), u !== null); ) p = n.lastIndex, n === E ? u[1] === "!--" ? n = Y : u[1] !== void 0 ? n = tt : u[2] !== void 0 ? (ht.test(u[2]) && (i = RegExp("</" + u[2], "g")), n = $) : u[3] !== void 0 && (n = $) : n === $ ? u[0] === ">" ? (n = i ?? E, h = -1) : u[1] === void 0 ? h = -2 : (h = n.lastIndex - u[2].length, c = u[1], n = u[3] === void 0 ? $ : u[3] === '"' ? st : et) : n === st || n === et ? n = $ : n === Y || n === tt ? n = E : (n = $, i = void 0);
308
+ const f = n === $ && o[l + 1].startsWith("/>") ? " " : "";
309
+ r += n === E ? a + Et : h >= 0 ? (s.push(c), a.slice(0, h) + at + a.slice(h) + m + f) : a + m + (h === -2 ? l : f);
310
+ }
311
+ return [dt(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
312
+ };
313
+ class T {
314
+ constructor({ strings: t, _$litType$: e }, s) {
315
+ let i;
316
+ this.parts = [];
317
+ let r = 0, n = 0;
318
+ const l = t.length - 1, a = this.parts, [c, u] = xt(t, e);
319
+ if (this.el = T.createElement(c, s), _.currentNode = this.el.content, e === 2 || e === 3) {
320
+ const h = this.el.content.firstChild;
321
+ h.replaceWith(...h.childNodes);
322
+ }
323
+ for (; (i = _.nextNode()) !== null && a.length < l; ) {
324
+ if (i.nodeType === 1) {
325
+ if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(at)) {
326
+ const p = u[n++], f = i.getAttribute(h).split(m), O = /([.?@])?(.*)/.exec(p);
327
+ a.push({ type: 1, index: r, name: O[2], strings: f, ctor: O[1] === "." ? Ct : O[1] === "?" ? Pt : O[1] === "@" ? Tt : H }), i.removeAttribute(h);
328
+ } else h.startsWith(m) && (a.push({ type: 6, index: r }), i.removeAttribute(h));
329
+ if (ht.test(i.tagName)) {
330
+ const h = i.textContent.split(m), p = h.length - 1;
331
+ if (p > 0) {
332
+ i.textContent = R ? R.emptyScript : "";
333
+ for (let f = 0; f < p; f++) i.append(h[f], C()), _.nextNode(), a.push({ type: 2, index: ++r });
334
+ i.append(h[p], C());
335
+ }
336
+ }
337
+ } else if (i.nodeType === 8) if (i.data === lt) a.push({ type: 2, index: r });
338
+ else {
339
+ let h = -1;
340
+ for (; (h = i.data.indexOf(m, h + 1)) !== -1; ) a.push({ type: 7, index: r }), h += m.length - 1;
341
+ }
342
+ r++;
343
+ }
344
+ }
345
+ static createElement(t, e) {
346
+ const s = g.createElement("template");
347
+ return s.innerHTML = t, s;
348
+ }
349
+ }
350
+ function v(o, t, e = o, s) {
351
+ var n, l;
352
+ if (t === y) return t;
353
+ let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
354
+ const r = P(t) ? void 0 : t._$litDirective$;
355
+ return (i == null ? void 0 : i.constructor) !== r && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), r === void 0 ? i = void 0 : (i = new r(o), i._$AT(o, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = v(o, i._$AS(o, t.values), i, s)), t;
356
+ }
357
+ class St {
358
+ constructor(t, e) {
359
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
360
+ }
361
+ get parentNode() {
362
+ return this._$AM.parentNode;
363
+ }
364
+ get _$AU() {
365
+ return this._$AM._$AU;
366
+ }
367
+ u(t) {
368
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? g).importNode(e, !0);
369
+ _.currentNode = i;
370
+ let r = _.nextNode(), n = 0, l = 0, a = s[0];
371
+ for (; a !== void 0; ) {
372
+ if (n === a.index) {
373
+ let c;
374
+ a.type === 2 ? c = new M(r, r.nextSibling, this, t) : a.type === 1 ? c = new a.ctor(r, a.name, a.strings, this, t) : a.type === 6 && (c = new Mt(r, this, t)), this._$AV.push(c), a = s[++l];
375
+ }
376
+ n !== (a == null ? void 0 : a.index) && (r = _.nextNode(), n++);
377
+ }
378
+ return _.currentNode = g, i;
379
+ }
380
+ p(t) {
381
+ let e = 0;
382
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
383
+ }
384
+ }
385
+ class M {
386
+ get _$AU() {
387
+ var t;
388
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
389
+ }
390
+ constructor(t, e, s, i) {
391
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
392
+ }
393
+ get parentNode() {
394
+ let t = this._$AA.parentNode;
395
+ const e = this._$AM;
396
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
397
+ }
398
+ get startNode() {
399
+ return this._$AA;
400
+ }
401
+ get endNode() {
402
+ return this._$AB;
403
+ }
404
+ _$AI(t, e = this) {
405
+ t = v(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== y && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : wt(t) ? this.k(t) : this._(t);
406
+ }
407
+ O(t) {
408
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
409
+ }
410
+ T(t) {
411
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
412
+ }
413
+ _(t) {
414
+ this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
415
+ }
416
+ $(t) {
417
+ var r;
418
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = T.createElement(dt(s.h, s.h[0]), this.options)), s);
419
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
420
+ else {
421
+ const n = new St(i, this), l = n.u(this.options);
422
+ n.p(e), this.T(l), this._$AH = n;
423
+ }
424
+ }
425
+ _$AC(t) {
426
+ let e = it.get(t.strings);
427
+ return e === void 0 && it.set(t.strings, e = new T(t)), e;
428
+ }
429
+ k(t) {
430
+ B(this._$AH) || (this._$AH = [], this._$AR());
431
+ const e = this._$AH;
432
+ let s, i = 0;
433
+ for (const r of t) i === e.length ? e.push(s = new M(this.O(C()), this.O(C()), this, this.options)) : s = e[i], s._$AI(r), i++;
434
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
435
+ }
436
+ _$AR(t = this._$AA.nextSibling, e) {
437
+ var s;
438
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
439
+ const i = t.nextSibling;
440
+ t.remove(), t = i;
441
+ }
442
+ }
443
+ setConnected(t) {
444
+ var e;
445
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
446
+ }
447
+ }
448
+ class H {
449
+ get tagName() {
450
+ return this.element.tagName;
451
+ }
452
+ get _$AU() {
453
+ return this._$AM._$AU;
454
+ }
455
+ constructor(t, e, s, i, r) {
456
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
457
+ }
458
+ _$AI(t, e = this, s, i) {
459
+ const r = this.strings;
460
+ let n = !1;
461
+ if (r === void 0) t = v(this, t, e, 0), n = !P(t) || t !== this._$AH && t !== y, n && (this._$AH = t);
462
+ else {
463
+ const l = t;
464
+ let a, c;
465
+ for (t = r[0], a = 0; a < r.length - 1; a++) c = v(this, l[s + a], e, a), c === y && (c = this._$AH[a]), n || (n = !P(c) || c !== this._$AH[a]), c === d ? t = d : t !== d && (t += (c ?? "") + r[a + 1]), this._$AH[a] = c;
466
+ }
467
+ n && !i && this.j(t);
468
+ }
469
+ j(t) {
470
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
471
+ }
472
+ }
473
+ class Ct extends H {
474
+ constructor() {
475
+ super(...arguments), this.type = 3;
476
+ }
477
+ j(t) {
478
+ this.element[this.name] = t === d ? void 0 : t;
479
+ }
480
+ }
481
+ class Pt extends H {
482
+ constructor() {
483
+ super(...arguments), this.type = 4;
484
+ }
485
+ j(t) {
486
+ this.element.toggleAttribute(this.name, !!t && t !== d);
487
+ }
488
+ }
489
+ class Tt extends H {
490
+ constructor(t, e, s, i, r) {
491
+ super(t, e, s, i, r), this.type = 5;
492
+ }
493
+ _$AI(t, e = this) {
494
+ if ((t = v(this, t, e, 0) ?? d) === y) return;
495
+ const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== d && (s === d || i);
496
+ i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
497
+ }
498
+ handleEvent(t) {
499
+ var e;
500
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
501
+ }
502
+ }
503
+ class Mt {
504
+ constructor(t, e, s) {
505
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
506
+ }
507
+ get _$AU() {
508
+ return this._$AM._$AU;
509
+ }
510
+ _$AI(t) {
511
+ v(this, t);
512
+ }
513
+ }
514
+ const F = x.litHtmlPolyfillSupport;
515
+ F == null || F(T, M), (x.litHtmlVersions ?? (x.litHtmlVersions = [])).push("3.2.1");
516
+ const Ot = (o, t, e) => {
517
+ const s = (e == null ? void 0 : e.renderBefore) ?? t;
518
+ let i = s._$litPart$;
519
+ if (i === void 0) {
520
+ const r = (e == null ? void 0 : e.renderBefore) ?? null;
521
+ s._$litPart$ = i = new M(t.insertBefore(C(), r), r, void 0, e ?? {});
522
+ }
523
+ return i._$AI(o), i;
524
+ };
525
+ /**
526
+ * @license
527
+ * Copyright 2017 Google LLC
528
+ * SPDX-License-Identifier: BSD-3-Clause
529
+ */
530
+ let S = class extends A {
531
+ constructor() {
532
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
533
+ }
534
+ createRenderRoot() {
535
+ var e;
536
+ const t = super.createRenderRoot();
537
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
538
+ }
539
+ update(t) {
540
+ const e = this.render();
541
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ot(e, this.renderRoot, this.renderOptions);
542
+ }
543
+ connectedCallback() {
544
+ var t;
545
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
546
+ }
547
+ disconnectedCallback() {
548
+ var t;
549
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
550
+ }
551
+ render() {
552
+ return y;
553
+ }
554
+ };
555
+ var ot;
556
+ S._$litElement$ = !0, S.finalized = !0, (ot = globalThis.litElementHydrateSupport) == null || ot.call(globalThis, { LitElement: S });
557
+ const D = globalThis.litElementPolyfillSupport;
558
+ D == null || D({ LitElement: S });
559
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
560
+ /**
561
+ * @license
562
+ * Copyright 2017 Google LLC
563
+ * SPDX-License-Identifier: BSD-3-Clause
564
+ */
565
+ const Ut = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: V }, Nt = (o = Ut, t, e) => {
566
+ const { kind: s, metadata: i } = e;
567
+ let r = globalThis.litPropertyMetadata.get(i);
568
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, o), s === "accessor") {
569
+ const { name: n } = e;
570
+ return { set(l) {
571
+ const a = t.get.call(this);
572
+ t.set.call(this, l), this.requestUpdate(n, a, o);
573
+ }, init(l) {
574
+ return l !== void 0 && this.P(n, void 0, o), l;
575
+ } };
576
+ }
577
+ if (s === "setter") {
578
+ const { name: n } = e;
579
+ return function(l) {
580
+ const a = this[n];
581
+ t.call(this, l), this.requestUpdate(n, a, o);
582
+ };
583
+ }
584
+ throw Error("Unsupported decorator location: " + s);
585
+ };
586
+ function q(o) {
587
+ return (t, e) => typeof e == "object" ? Nt(o, t, e) : ((s, i, r) => {
588
+ const n = i.hasOwnProperty(r);
589
+ return i.constructor.createProperty(r, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
590
+ })(o, t, e);
591
+ }
592
+ const I = /* @__PURE__ */ new Set(), Rt = () => {
593
+ const o = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
594
+ I.forEach((t) => {
595
+ t.setAttribute("dir", o);
596
+ });
597
+ }, Ht = new MutationObserver(Rt);
598
+ Ht.observe(document.documentElement, {
599
+ attributes: !0,
600
+ attributeFilter: ["dir"]
601
+ });
602
+ const kt = (o) => o.startManagingContentDirection !== void 0 || o.tagName === "LUZMO-THEME";
603
+ function Lt(o) {
604
+ class t extends o {
605
+ /**
606
+ * @private
607
+ */
608
+ get isLTR() {
609
+ return this.dir === "ltr";
610
+ }
611
+ hasVisibleFocusInTree() {
612
+ const i = ((r = document) => {
613
+ var a;
614
+ let n = r.activeElement;
615
+ for (; n != null && n.shadowRoot && n.shadowRoot.activeElement; )
616
+ n = n.shadowRoot.activeElement;
617
+ const l = n ? [n] : [];
618
+ for (; n; ) {
619
+ const c = n.assignedSlot || n.parentElement || ((a = n.getRootNode()) == null ? void 0 : a.host);
620
+ c && l.push(c), n = c;
621
+ }
622
+ return l;
623
+ })(this.getRootNode())[0];
624
+ if (!i)
625
+ return !1;
626
+ try {
627
+ return i.matches(":focus-visible") || i.matches(".focus-visible");
628
+ } catch {
629
+ return i.matches(".focus-visible");
630
+ }
631
+ }
632
+ connectedCallback() {
633
+ if (!this.hasAttribute("dir")) {
634
+ let s = this.assignedSlot || this.parentNode;
635
+ for (; s !== document.documentElement && !kt(s); )
636
+ s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
637
+ s.parentNode || // DOM Element detected
638
+ s.host;
639
+ if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
640
+ I.add(this);
641
+ else {
642
+ const { localName: i } = s;
643
+ i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
644
+ s.startManagingContentDirection(this);
645
+ }) : s.startManagingContentDirection(this);
646
+ }
647
+ this._dirParent = s;
648
+ }
649
+ super.connectedCallback();
650
+ }
651
+ disconnectedCallback() {
652
+ super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? I.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
653
+ }
654
+ }
655
+ return t;
656
+ }
657
+ class Ft extends Lt(S) {
658
+ }
659
+ let j = !0;
660
+ try {
661
+ document.body.querySelector(":focus-visible");
662
+ } catch {
663
+ j = !1, Promise.resolve().then(() => Dt);
664
+ }
665
+ const ut = (o) => {
666
+ var t, e;
667
+ const s = (n) => {
668
+ if (n.shadowRoot == null || Object.hasOwn(n.dataset, "jsFocusVisible"))
669
+ return () => {
670
+ };
671
+ if (self.applyFocusVisiblePolyfill)
672
+ self.applyFocusVisiblePolyfill(n.shadowRoot), n.manageAutoFocus && n.manageAutoFocus();
673
+ else {
674
+ const l = () => {
675
+ self.applyFocusVisiblePolyfill && n.shadowRoot && self.applyFocusVisiblePolyfill(n.shadowRoot), n.manageAutoFocus && n.manageAutoFocus();
676
+ };
677
+ return self.addEventListener(
678
+ "focus-visible-polyfill-ready",
679
+ l,
680
+ { once: !0 }
681
+ ), () => {
682
+ self.removeEventListener(
683
+ "focus-visible-polyfill-ready",
684
+ l
685
+ );
686
+ };
687
+ }
688
+ return () => {
689
+ };
690
+ }, i = Symbol("endPolyfillCoordination");
691
+ class r extends (e = o, t = i, e) {
692
+ constructor() {
693
+ super(...arguments), this[t] = null;
694
+ }
695
+ // Attempt to coordinate with the polyfill when connected to the
696
+ // document:
697
+ connectedCallback() {
698
+ super.connectedCallback && super.connectedCallback(), j || requestAnimationFrame(() => {
699
+ this[i] == null && (this[i] = s(this));
700
+ });
701
+ }
702
+ disconnectedCallback() {
703
+ super.disconnectedCallback && super.disconnectedCallback(), j || requestAnimationFrame(() => {
704
+ this[i] != null && (this[i](), this[i] = null);
705
+ });
706
+ }
707
+ }
708
+ return r;
709
+ }, Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
710
+ __proto__: null,
711
+ FocusVisiblePolyfillMixin: ut
712
+ }, Symbol.toStringTag, { value: "Module" }));
713
+ var It = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, W = (o, t, e, s) => {
714
+ for (var i = s > 1 ? void 0 : s ? jt(t, e) : t, r = o.length - 1, n; r >= 0; r--)
715
+ (n = o[r]) && (i = (s ? n(t, e, i) : n(i)) || i);
716
+ return s && i && It(t, e, i), i;
717
+ };
718
+ function nt() {
719
+ return new Promise((o) => requestAnimationFrame(() => o()));
720
+ }
721
+ class K extends ut(Ft) {
722
+ constructor() {
723
+ super(...arguments), this.disabled = !1, this.autofocus = !1, this._tabIndex = 0, this.manipulatingTabindex = !1, this.autofocusReady = Promise.resolve();
724
+ }
725
+ get tabIndex() {
726
+ if (this.focusElement === this) {
727
+ const e = this.hasAttribute("tabindex") ? Number(this.getAttribute("tabindex")) : Number.NaN;
728
+ return Number.isNaN(e) ? -1 : e;
729
+ }
730
+ const t = Number.parseFloat(
731
+ this.hasAttribute("tabindex") && this.getAttribute("tabindex") || "0"
732
+ );
733
+ return this.disabled || t < 0 ? -1 : this.focusElement ? this._tabIndex : t;
734
+ }
735
+ set tabIndex(t) {
736
+ var e;
737
+ if (this.manipulatingTabindex) {
738
+ this.manipulatingTabindex = !1;
739
+ return;
740
+ }
741
+ if (this.focusElement === this) {
742
+ if (this.disabled)
743
+ this._tabIndex = t;
744
+ else if (t !== this._tabIndex) {
745
+ this._tabIndex = t;
746
+ const s = "" + t;
747
+ this.manipulatingTabindex = !0, this.setAttribute("tabindex", s);
748
+ }
749
+ return;
750
+ }
751
+ if (t === -1 ? this.addEventListener(
752
+ "pointerdown",
753
+ this.onPointerdownManagementOfTabIndex
754
+ ) : (this.manipulatingTabindex = !0, this.removeEventListener(
755
+ "pointerdown",
756
+ this.onPointerdownManagementOfTabIndex
757
+ )), t === -1 || this.disabled) {
758
+ if (this.manipulatingTabindex = !0, this.setAttribute("tabindex", "-1"), this.removeAttribute("focusable"), this.selfManageFocusElement)
759
+ return;
760
+ t === -1 ? (e = this.focusElement) == null || e.removeAttribute("tabindex") : (this._tabIndex = t, this.manageFocusElementTabindex(t));
761
+ return;
762
+ }
763
+ this.setAttribute("focusable", ""), this.hasAttribute("tabindex") ? this.removeAttribute("tabindex") : this.manipulatingTabindex = !1, this._tabIndex = t, this.manageFocusElementTabindex(t);
764
+ }
765
+ onPointerdownManagementOfTabIndex() {
766
+ this.tabIndex === -1 && setTimeout(() => {
767
+ this.tabIndex = 0, this.focus({ preventScroll: !0 }), this.tabIndex = -1;
768
+ });
769
+ }
770
+ async manageFocusElementTabindex(t) {
771
+ this.focusElement || await this.updateComplete, t === null ? this.focusElement.removeAttribute("tabindex") : this.focusElement !== this && (this.focusElement.tabIndex = t);
772
+ }
773
+ /**
774
+ * @private
775
+ */
776
+ get focusElement() {
777
+ throw new Error("Must implement focusElement getter!");
778
+ }
779
+ /**
780
+ * @public
781
+ * @returns whether the component should manage its focusElement tab-index or not
782
+ * Needed for action-menu to be supported in action-group in an accessible way
783
+ */
784
+ get selfManageFocusElement() {
785
+ return !1;
786
+ }
787
+ focus(t) {
788
+ this.disabled || !this.focusElement || (this.focusElement === this ? Reflect.apply(HTMLElement.prototype.focus, this, [t]) : this.focusElement.focus(t));
789
+ }
790
+ blur() {
791
+ const t = this.focusElement || this;
792
+ t === this ? HTMLElement.prototype.blur.apply(this) : t.blur();
793
+ }
794
+ click() {
795
+ if (this.disabled)
796
+ return;
797
+ const t = this.focusElement || this;
798
+ t === this ? HTMLElement.prototype.click.apply(this) : t.click();
799
+ }
800
+ manageAutoFocus() {
801
+ this.autofocus && (this.dispatchEvent(
802
+ new KeyboardEvent("keydown", {
803
+ code: "Tab"
804
+ })
805
+ ), this.focusElement.focus());
806
+ }
807
+ firstUpdated(t) {
808
+ super.firstUpdated(t), (!this.hasAttribute("tabindex") || this.getAttribute("tabindex") !== "-1") && this.setAttribute("focusable", "");
809
+ }
810
+ update(t) {
811
+ t.has("disabled") && this.handleDisabledChanged(
812
+ this.disabled,
813
+ t.get("disabled")
814
+ ), super.update(t);
815
+ }
816
+ updated(t) {
817
+ super.updated(t), t.has("disabled") && this.disabled && this.blur();
818
+ }
819
+ async handleDisabledChanged(t, e) {
820
+ const s = () => this.focusElement !== this && this.focusElement.disabled !== void 0;
821
+ t ? (this.manipulatingTabindex = !0, this.setAttribute("tabindex", "-1"), await this.updateComplete, s() ? this.focusElement.disabled = !0 : this.setAttribute("aria-disabled", "true")) : e && (this.manipulatingTabindex = !0, this.focusElement === this ? this.setAttribute("tabindex", "" + this._tabIndex) : this.removeAttribute("tabindex"), await this.updateComplete, s() ? this.focusElement.disabled = !1 : this.removeAttribute("aria-disabled"));
822
+ }
823
+ async getUpdateComplete() {
824
+ const t = await super.getUpdateComplete();
825
+ return await this.autofocusReady, t;
826
+ }
827
+ connectedCallback() {
828
+ super.connectedCallback(), this.autofocus && (this.autofocusReady = new Promise(async (t) => {
829
+ await nt(), await nt(), t();
830
+ }), this.updateComplete.then(() => {
831
+ this.manageAutoFocus();
832
+ }));
833
+ }
834
+ }
835
+ W([
836
+ q({ type: Boolean, reflect: !0 })
837
+ ], K.prototype, "disabled", 2);
838
+ W([
839
+ q({ type: Boolean })
840
+ ], K.prototype, "autofocus", 2);
841
+ W([
842
+ q({ type: Number })
843
+ ], K.prototype, "tabIndex", 1);
844
+ export {
845
+ d as E,
846
+ Ft as L,
847
+ qt as b,
848
+ V as f,
849
+ q as n,
850
+ ft as r,
851
+ Bt as x
852
+ };