@luzmo/lucero 1.0.1-alpha.3 → 1.0.1-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.cjs +6 -6
- package/components/accordion/index.js +13 -12
- package/components/action-bar/index.cjs +4 -4
- package/components/action-bar/index.js +11 -9
- package/components/action-button/index.cjs +3 -3
- package/components/action-button/index.js +6 -5
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/{action-group-DBImibFn.js → action-group-Bwt9w8Vh.js} +10 -9
- package/components/action-group-D917z7XF.cjs +20 -0
- package/components/action-menu/index.cjs +9 -9
- package/components/action-menu/index.js +9 -9
- package/components/avatar/index.cjs +3 -3
- package/components/avatar/index.js +6 -6
- package/components/base-5nDSSNeT.cjs +18 -0
- package/components/base-CdYjmV_8.js +96 -0
- package/components/button/button-base.d.ts +16 -0
- package/components/button/button.d.ts +38 -2
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +34 -29
- package/components/{button-base-DbkDzb71.js → button-base-B5uul3tZ.js} +54 -39
- package/components/button-base-C7or8-FB.cjs +25 -0
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +10 -8
- package/components/calendar/index.cjs +96 -1
- package/components/calendar/index.js +538 -6
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.js +6 -4
- package/components/{checkbox-mixin-Do7EgtpQ.js → checkbox-mixin-DUbGDm7f.js} +9 -9
- package/components/{checkbox-mixin-BDN0dBtS.cjs → checkbox-mixin-DhN8CIXY.cjs} +3 -3
- package/components/{clear-button-DoeRUWQ3.js → clear-button-Bjp7N52G.js} +14 -13
- package/components/clear-button-C39c3PH0.cjs +18 -0
- package/components/{close-button-BWXdHSx3.js → close-button-CqlkCakI.js} +13 -12
- package/components/close-button-rjMQFibf.cjs +18 -0
- package/components/color-area/index.cjs +5 -5
- package/components/color-area/index.js +11 -10
- package/components/color-controller-7sNUf7SP.js +386 -0
- package/components/color-controller-ChN-A9Ft.cjs +18 -0
- package/components/color-field/color-field.d.ts +8 -0
- package/components/color-field/index.cjs +4 -4
- package/components/color-field/index.js +37 -24
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +7 -5
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/color-loupe-CIEFp7ln.cjs +56 -0
- package/components/{color-loupe-CmMsXbjT.js → color-loupe-CLPX6xVb.js} +6 -4
- package/components/color-menu/index.cjs +8 -8
- package/components/color-menu/index.js +45 -45
- package/components/color-palette/color-palette.d.ts +38 -3
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +53 -39
- package/components/color-palette-group/color-palette-group.d.ts +79 -0
- package/components/color-palette-group/index.cjs +28 -0
- package/components/color-palette-group/index.d.ts +7 -0
- package/components/color-palette-group/index.js +206 -0
- package/components/color-picker/color-picker.d.ts +31 -2
- package/components/color-picker/index.cjs +6 -5
- package/components/color-picker/index.js +15 -11
- package/components/color-slider/index.cjs +40 -1
- package/components/color-slider/index.js +452 -6
- package/components/date-time-picker/index.cjs +16 -16
- package/components/date-time-picker/index.js +104 -105
- package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-CO-VPlqq.js} +4 -4
- package/components/{dependency-manger-C5HCkMMB.cjs → dependency-manger-uthev62E.cjs} +1 -1
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +10 -8
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/field-group-BYHNJmv0.cjs +23 -0
- package/components/{field-group-DXfBWrkO.js → field-group-CHmw159R.js} +7 -5
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-CZ2zzChK.js → field-label-Cy3xMWZ-.js} +9 -8
- package/components/field-label-DZoeqJJX.cjs +25 -0
- package/components/{focus-visible-DBlJGoEW.js → focus-visible-BvScGDCE.js} +20 -20
- package/components/focus-visible-D4BXb5RB.cjs +18 -0
- package/components/{focusable-BxtpnzWp.js → focusable-BjvsvVam.js} +3 -2
- package/components/focusable-CbVKgGfS.cjs +18 -0
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +22 -20
- package/components/index.cjs +1 -1
- package/components/index.js +139 -137
- package/components/infield-button/index.cjs +2 -2
- package/components/infield-button/index.js +4 -3
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +6 -4
- package/components/{language-resolution-8yZa5r_P.js → language-resolution-B-wjV5bb.js} +9 -8
- package/components/{directive-C7oCP5Bh.cjs → language-resolution-EUER43cg.cjs} +1 -5
- package/components/like-anchor-B2EqJPdw.cjs +32 -0
- package/components/{like-anchor-Bvn_vLQ8.js → like-anchor-CgqCU210.js} +23 -22
- package/components/{manage-help-text-DhgARkZX.cjs → manage-help-text-Bat9yGvF.cjs} +3 -3
- package/components/{manage-help-text-syYnjKGL.js → manage-help-text-C9sCHK3R.js} +8 -8
- package/components/menu/index.cjs +38 -13
- package/components/menu/index.js +137 -104
- package/components/menu/menu-item.d.ts +8 -1
- package/components/multi-language-field/index.cjs +2 -2
- package/components/multi-language-field/index.js +8 -6
- package/components/number-field/index.cjs +6 -6
- package/components/number-field/index.js +33 -34
- package/components/observe-slot-presence-CNltc0C0.cjs +18 -0
- package/components/{observe-slot-presence-CmVi0zTc.js → observe-slot-presence-DFi6GE3H.js} +1 -1
- package/components/observe-slot-text-CBMHpuIK.cjs +18 -0
- package/components/{observe-slot-text-BPfIQQtz.js → observe-slot-text-DorVpCL4.js} +14 -15
- package/components/options/index.cjs +26 -58
- package/components/options/index.js +205 -849
- package/components/overlay/index.cjs +6 -6
- package/components/overlay/index.js +30 -31
- package/components/overlay-DpWon1Rp.js +1736 -0
- package/components/overlay-nUwFClQq.cjs +47 -0
- package/components/{pending-state-CaH1si5b.cjs → pending-state-DQctFHI8.cjs} +2 -2
- package/components/{pending-state-DTX7ggyF.js → pending-state-Dx1u3EXA.js} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/{picker-BmoXv1jt.js → picker-Cm6_didQ.js} +44 -44
- package/components/picker-DxYgh4LR.cjs +123 -0
- package/components/picker-button/index.cjs +4 -4
- package/components/picker-button/index.js +7 -6
- package/components/{platform-BiXhwqk3.cjs → platform-BJnOJJag.cjs} +1 -1
- package/components/{platform-BM-uMWpX.js → platform-CqwNrovd.js} +12 -12
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/popover-lcZnODPK.cjs +30 -0
- package/components/{popover-DjX0aAnY.js → popover-ucIgjbQs.js} +8 -7
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-DXH9z8-6.js → progress-circle-D5J0ZwY0.js} +8 -7
- package/components/progress-circle-DgMbqrzG.cjs +33 -0
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +11 -10
- package/components/search/index.cjs +6 -6
- package/components/search/index.js +5 -5
- package/components/select/index.cjs +43 -43
- package/components/select/index.js +106 -91
- package/components/select/select.d.ts +1 -1
- package/components/{base-BjTwmyRF.cjs → sized-mixin-DcvJLFeo.cjs} +1 -5
- package/components/{sized-mixin-D4ACoVUr.js → sized-mixin-cJbo3PKR.js} +5 -5
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +48 -1101
- package/components/{strategies-9indNIEb.js → strategies-Bk97oVn1.js} +15 -50
- package/components/strategies-CNgBb6dM.cjs +18 -0
- package/components/{streaming-listener-CP-JE6Fa.js → streaming-listener-BlWm-XZU.js} +5 -6
- package/components/streaming-listener-D9Wc7skA.cjs +18 -0
- package/components/swatch/index.cjs +7 -7
- package/components/swatch/index.js +17 -16
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +5 -4
- package/components/tabs/index.cjs +16 -24
- package/components/tabs/index.js +93 -161
- package/components/tags/index.cjs +4 -4
- package/components/tags/index.js +14 -13
- package/components/text-field/index.cjs +3 -3
- package/components/text-field/index.js +12 -10
- package/components/text-field/text-field.d.ts +1 -0
- package/components/{text-field-BIADXoLC.js → text-field-BTEpwGFu.js} +73 -99
- package/components/text-field-JMrsh-zo.cjs +81 -0
- package/components/{text-field.module-ColtFhf_.js → text-field.module-C2KVUJcX.js} +1 -1
- package/components/{text-field.module-p_VF2tC_.cjs → text-field.module-DXhFA9G-.cjs} +1 -1
- package/components/toast/index.cjs +11 -11
- package/components/toast/index.js +10 -8
- package/components/tooltip/index.cjs +4 -4
- package/components/tooltip/index.js +60 -36
- package/components/tooltip/tooltip.d.ts +12 -1
- package/components/unit-input/index.cjs +6 -6
- package/components/unit-input/index.js +10 -9
- package/components/utils.cjs +1 -1
- package/components/utils.js +6 -6
- package/custom-elements.json +1 -1
- package/index.d.ts +1 -0
- package/package.json +67 -1
- package/components/NumberFormatter-DewVDY5w.cjs +0 -18
- package/components/NumberFormatter-DgOUVrge.js +0 -136
- package/components/NumberParser-Dik4a0h-.cjs +0 -18
- package/components/NumberParser-ci9J5EKv.js +0 -173
- package/components/action-group-DJGMcRHb.cjs +0 -20
- package/components/async-directive-BX1T1e1_.cjs +0 -22
- package/components/async-directive-BfcqVjDp.js +0 -82
- package/components/base-CBCg3yyw.cjs +0 -40
- package/components/base-D76d76ww.js +0 -26
- package/components/base-WsynuqaS.js +0 -677
- package/components/button-base-XgPLmwP-.cjs +0 -25
- package/components/class-map-Di1D_rCm.cjs +0 -22
- package/components/class-map-NbVXqBU0.js +0 -51
- package/components/clear-button-Qi1pMA5S.cjs +0 -18
- package/components/close-button-BFMBEw3q.cjs +0 -18
- package/components/color-controller-DTp1juRz.js +0 -3198
- package/components/color-controller-_ZwyhvaU.cjs +0 -18
- package/components/color-loupe-CaA_Lfkk.cjs +0 -56
- package/components/directive-helpers-Cm6gitnu.js +0 -62
- package/components/directive-helpers-DyIRTWwA.cjs +0 -22
- package/components/directive-oAbCiebi.js +0 -44
- package/components/field-group-DkGst3r5.cjs +0 -23
- package/components/field-label-mO1AkUgR.cjs +0 -25
- package/components/flow-D-0MTYCm.js +0 -527
- package/components/flow-DM3dNAKs.cjs +0 -30
- package/components/focus-visible-B0P9aY_G.cjs +0 -18
- package/components/focusable-EbipgXRh.cjs +0 -18
- package/components/if-defined-C9YGdo33.cjs +0 -22
- package/components/if-defined-DOaE2coe.js +0 -27
- package/components/index-A-yOTB_d.js +0 -1490
- package/components/index-BLWuwZXx.cjs +0 -113
- package/components/index-BwxgAdzi.cjs +0 -57
- package/components/index-HjQa8tew.js +0 -1174
- package/components/language-resolution-DJzmyzZq.cjs +0 -18
- package/components/like-anchor-sod1C1fR.cjs +0 -32
- package/components/luzmo-icons-DbwDQtuO.js +0 -229
- package/components/luzmo-icons-DletXGWU.cjs +0 -29
- package/components/mutation-controller-DH7YOCyj.js +0 -52
- package/components/mutation-controller-DkOMCW-c.cjs +0 -22
- package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
- package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
- package/components/overlay-Cig9r6uU.js +0 -2747
- package/components/overlay-KSKMzzkh.cjs +0 -47
- package/components/picker-DWsBWdPN.cjs +0 -123
- package/components/popover-KFfO0IYL.cjs +0 -30
- package/components/progress-circle-BvRJNuNo.cjs +0 -33
- package/components/query-BL-TJj7K.cjs +0 -22
- package/components/query-D_KR_GUc.js +0 -51
- package/components/query-assigned-elements-DjfhL1cl.js +0 -36
- package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
- package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
- package/components/query-assigned-nodes-C76XVPWY.js +0 -36
- package/components/sized-mixin-CPxE5C96.cjs +0 -18
- package/components/state-D8JEtYqe.cjs +0 -22
- package/components/state-Deh-vKYE.js +0 -29
- package/components/strategies-BACP6MhR.cjs +0 -18
- package/components/streaming-listener-B00MvALi.cjs +0 -18
- package/components/style-map-CeilmSgs.cjs +0 -22
- package/components/style-map-IgqIKvlE.js +0 -53
- package/components/text-field-D5d_Gt0t.cjs +0 -85
- package/components/when-CDK1Tt5Y.js +0 -28
- package/components/when-CDZyJPvd.cjs +0 -22
|
@@ -1,677 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2019 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/
|
|
23
|
-
const O = globalThis, j = O.ShadowRoot && (O.ShadyCSS === void 0 || O.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, B = Symbol(), q = /* @__PURE__ */ new WeakMap();
|
|
24
|
-
let st = class {
|
|
25
|
-
constructor(t, e, s) {
|
|
26
|
-
if (this._$cssResult$ = !0, s !== B) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
27
|
-
this.cssText = t, this.t = e;
|
|
28
|
-
}
|
|
29
|
-
get styleSheet() {
|
|
30
|
-
let t = this.o;
|
|
31
|
-
const e = this.t;
|
|
32
|
-
if (j && t === void 0) {
|
|
33
|
-
const s = e !== void 0 && e.length === 1;
|
|
34
|
-
s && (t = q.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && q.set(e, t));
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
}
|
|
38
|
-
toString() {
|
|
39
|
-
return this.cssText;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const at = (n) => new st(typeof n == "string" ? n : n + "", void 0, B), Ht = (n, ...t) => {
|
|
43
|
-
const e = n.length === 1 ? n[0] : t.reduce((s, i, o) => s + ((r) => {
|
|
44
|
-
if (r._$cssResult$ === !0) return r.cssText;
|
|
45
|
-
if (typeof r == "number") return r;
|
|
46
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
47
|
-
})(i) + n[o + 1], n[0]);
|
|
48
|
-
return new st(e, n, B);
|
|
49
|
-
}, lt = (n, t) => {
|
|
50
|
-
if (j) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
51
|
-
else for (const e of t) {
|
|
52
|
-
const s = document.createElement("style"), i = O.litNonce;
|
|
53
|
-
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
|
|
54
|
-
}
|
|
55
|
-
}, F = j ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
56
|
-
let e = "";
|
|
57
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
58
|
-
return at(e);
|
|
59
|
-
})(n) : n;
|
|
60
|
-
/**
|
|
61
|
-
* @license
|
|
62
|
-
* Copyright 2017 Google LLC
|
|
63
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
|
-
*/
|
|
65
|
-
const { is: ct, defineProperty: dt, getOwnPropertyDescriptor: ut, getOwnPropertyNames: pt, getOwnPropertySymbols: $t, getPrototypeOf: _t } = Object, f = globalThis, Z = f.trustedTypes, ft = Z ? Z.emptyScript : "", k = f.reactiveElementPolyfillSupport, w = (n, t) => n, H = { toAttribute(n, t) {
|
|
66
|
-
switch (t) {
|
|
67
|
-
case Boolean:
|
|
68
|
-
n = n ? ft : null;
|
|
69
|
-
break;
|
|
70
|
-
case Object:
|
|
71
|
-
case Array:
|
|
72
|
-
n = n == null ? n : JSON.stringify(n);
|
|
73
|
-
}
|
|
74
|
-
return n;
|
|
75
|
-
}, fromAttribute(n, t) {
|
|
76
|
-
let e = n;
|
|
77
|
-
switch (t) {
|
|
78
|
-
case Boolean:
|
|
79
|
-
e = n !== null;
|
|
80
|
-
break;
|
|
81
|
-
case Number:
|
|
82
|
-
e = n === null ? null : Number(n);
|
|
83
|
-
break;
|
|
84
|
-
case Object:
|
|
85
|
-
case Array:
|
|
86
|
-
try {
|
|
87
|
-
e = JSON.parse(n);
|
|
88
|
-
} catch {
|
|
89
|
-
e = null;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return e;
|
|
93
|
-
} }, V = (n, t) => !ct(n, t), J = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: V };
|
|
94
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
95
|
-
let y = class extends HTMLElement {
|
|
96
|
-
static addInitializer(t) {
|
|
97
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
98
|
-
}
|
|
99
|
-
static get observedAttributes() {
|
|
100
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
101
|
-
}
|
|
102
|
-
static createProperty(t, e = J) {
|
|
103
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
104
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
105
|
-
i !== void 0 && dt(this.prototype, t, i);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
static getPropertyDescriptor(t, e, s) {
|
|
109
|
-
const { get: i, set: o } = ut(this.prototype, t) ?? { get() {
|
|
110
|
-
return this[e];
|
|
111
|
-
}, set(r) {
|
|
112
|
-
this[e] = r;
|
|
113
|
-
} };
|
|
114
|
-
return { get() {
|
|
115
|
-
return i == null ? void 0 : i.call(this);
|
|
116
|
-
}, set(r) {
|
|
117
|
-
const a = i == null ? void 0 : i.call(this);
|
|
118
|
-
o.call(this, r), this.requestUpdate(t, a, s);
|
|
119
|
-
}, configurable: !0, enumerable: !0 };
|
|
120
|
-
}
|
|
121
|
-
static getPropertyOptions(t) {
|
|
122
|
-
return this.elementProperties.get(t) ?? J;
|
|
123
|
-
}
|
|
124
|
-
static _$Ei() {
|
|
125
|
-
if (this.hasOwnProperty(w("elementProperties"))) return;
|
|
126
|
-
const t = _t(this);
|
|
127
|
-
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
128
|
-
}
|
|
129
|
-
static finalize() {
|
|
130
|
-
if (this.hasOwnProperty(w("finalized"))) return;
|
|
131
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
|
|
132
|
-
const e = this.properties, s = [...pt(e), ...$t(e)];
|
|
133
|
-
for (const i of s) this.createProperty(i, e[i]);
|
|
134
|
-
}
|
|
135
|
-
const t = this[Symbol.metadata];
|
|
136
|
-
if (t !== null) {
|
|
137
|
-
const e = litPropertyMetadata.get(t);
|
|
138
|
-
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
139
|
-
}
|
|
140
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
|
141
|
-
for (const [e, s] of this.elementProperties) {
|
|
142
|
-
const i = this._$Eu(e, s);
|
|
143
|
-
i !== void 0 && this._$Eh.set(i, e);
|
|
144
|
-
}
|
|
145
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
146
|
-
}
|
|
147
|
-
static finalizeStyles(t) {
|
|
148
|
-
const e = [];
|
|
149
|
-
if (Array.isArray(t)) {
|
|
150
|
-
const s = new Set(t.flat(1 / 0).reverse());
|
|
151
|
-
for (const i of s) e.unshift(F(i));
|
|
152
|
-
} else t !== void 0 && e.push(F(t));
|
|
153
|
-
return e;
|
|
154
|
-
}
|
|
155
|
-
static _$Eu(t, e) {
|
|
156
|
-
const s = e.attribute;
|
|
157
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
158
|
-
}
|
|
159
|
-
constructor() {
|
|
160
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
161
|
-
}
|
|
162
|
-
_$Ev() {
|
|
163
|
-
var t;
|
|
164
|
-
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));
|
|
165
|
-
}
|
|
166
|
-
addController(t) {
|
|
167
|
-
var e;
|
|
168
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
169
|
-
}
|
|
170
|
-
removeController(t) {
|
|
171
|
-
var e;
|
|
172
|
-
(e = this._$EO) == null || e.delete(t);
|
|
173
|
-
}
|
|
174
|
-
_$E_() {
|
|
175
|
-
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
176
|
-
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
177
|
-
t.size > 0 && (this._$Ep = t);
|
|
178
|
-
}
|
|
179
|
-
createRenderRoot() {
|
|
180
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
181
|
-
return lt(t, this.constructor.elementStyles), t;
|
|
182
|
-
}
|
|
183
|
-
connectedCallback() {
|
|
184
|
-
var t;
|
|
185
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
186
|
-
var s;
|
|
187
|
-
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
enableUpdating(t) {
|
|
191
|
-
}
|
|
192
|
-
disconnectedCallback() {
|
|
193
|
-
var t;
|
|
194
|
-
(t = this._$EO) == null || t.forEach((e) => {
|
|
195
|
-
var s;
|
|
196
|
-
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
attributeChangedCallback(t, e, s) {
|
|
200
|
-
this._$AK(t, s);
|
|
201
|
-
}
|
|
202
|
-
_$EC(t, e) {
|
|
203
|
-
var o;
|
|
204
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
205
|
-
if (i !== void 0 && s.reflect === !0) {
|
|
206
|
-
const r = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : H).toAttribute(e, s.type);
|
|
207
|
-
this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
_$AK(t, e) {
|
|
211
|
-
var o;
|
|
212
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
|
213
|
-
if (i !== void 0 && this._$Em !== i) {
|
|
214
|
-
const r = s.getPropertyOptions(i), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((o = r.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? r.converter : H;
|
|
215
|
-
this._$Em = i, this[i] = a.fromAttribute(e, r.type), this._$Em = null;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
requestUpdate(t, e, s) {
|
|
219
|
-
if (t !== void 0) {
|
|
220
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? V)(this[t], e)) return;
|
|
221
|
-
this.P(t, e, s);
|
|
222
|
-
}
|
|
223
|
-
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
224
|
-
}
|
|
225
|
-
P(t, e, s) {
|
|
226
|
-
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
227
|
-
}
|
|
228
|
-
async _$ET() {
|
|
229
|
-
this.isUpdatePending = !0;
|
|
230
|
-
try {
|
|
231
|
-
await this._$ES;
|
|
232
|
-
} catch (e) {
|
|
233
|
-
Promise.reject(e);
|
|
234
|
-
}
|
|
235
|
-
const t = this.scheduleUpdate();
|
|
236
|
-
return t != null && await t, !this.isUpdatePending;
|
|
237
|
-
}
|
|
238
|
-
scheduleUpdate() {
|
|
239
|
-
return this.performUpdate();
|
|
240
|
-
}
|
|
241
|
-
performUpdate() {
|
|
242
|
-
var s;
|
|
243
|
-
if (!this.isUpdatePending) return;
|
|
244
|
-
if (!this.hasUpdated) {
|
|
245
|
-
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
246
|
-
for (const [o, r] of this._$Ep) this[o] = r;
|
|
247
|
-
this._$Ep = void 0;
|
|
248
|
-
}
|
|
249
|
-
const i = this.constructor.elementProperties;
|
|
250
|
-
if (i.size > 0) for (const [o, r] of i) r.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], r);
|
|
251
|
-
}
|
|
252
|
-
let t = !1;
|
|
253
|
-
const e = this._$AL;
|
|
254
|
-
try {
|
|
255
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
|
256
|
-
var o;
|
|
257
|
-
return (o = i.hostUpdate) == null ? void 0 : o.call(i);
|
|
258
|
-
}), this.update(e)) : this._$EU();
|
|
259
|
-
} catch (i) {
|
|
260
|
-
throw t = !1, this._$EU(), i;
|
|
261
|
-
}
|
|
262
|
-
t && this._$AE(e);
|
|
263
|
-
}
|
|
264
|
-
willUpdate(t) {
|
|
265
|
-
}
|
|
266
|
-
_$AE(t) {
|
|
267
|
-
var e;
|
|
268
|
-
(e = this._$EO) == null || e.forEach((s) => {
|
|
269
|
-
var i;
|
|
270
|
-
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
|
271
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
272
|
-
}
|
|
273
|
-
_$EU() {
|
|
274
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
275
|
-
}
|
|
276
|
-
get updateComplete() {
|
|
277
|
-
return this.getUpdateComplete();
|
|
278
|
-
}
|
|
279
|
-
getUpdateComplete() {
|
|
280
|
-
return this._$ES;
|
|
281
|
-
}
|
|
282
|
-
shouldUpdate(t) {
|
|
283
|
-
return !0;
|
|
284
|
-
}
|
|
285
|
-
update(t) {
|
|
286
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
|
287
|
-
}
|
|
288
|
-
updated(t) {
|
|
289
|
-
}
|
|
290
|
-
firstUpdated(t) {
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[w("elementProperties")] = /* @__PURE__ */ new Map(), y[w("finalized")] = /* @__PURE__ */ new Map(), k == null || k({ ReactiveElement: y }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
|
|
294
|
-
/**
|
|
295
|
-
* @license
|
|
296
|
-
* Copyright 2017 Google LLC
|
|
297
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
298
|
-
*/
|
|
299
|
-
const C = globalThis, N = C.trustedTypes, K = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, it = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, nt = "?" + _, mt = `<${nt}>`, A = document, U = () => A.createComment(""), x = (n) => n === null || typeof n != "object" && typeof n != "function", W = Array.isArray, gt = (n) => W(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", L = `[
|
|
300
|
-
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, G = /-->/g, Q = />/g, m = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
|
|
301
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), X = /'/g, Y = /"/g, rt = /^(?:script|style|textarea|title)$/i, ot = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Rt = ot(1), kt = ot(2), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), tt = /* @__PURE__ */ new WeakMap(), g = A.createTreeWalker(A, 129);
|
|
302
|
-
function ht(n, t) {
|
|
303
|
-
if (!W(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
304
|
-
return K !== void 0 ? K.createHTML(t) : t;
|
|
305
|
-
}
|
|
306
|
-
const At = (n, t) => {
|
|
307
|
-
const e = n.length - 1, s = [];
|
|
308
|
-
let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = S;
|
|
309
|
-
for (let a = 0; a < e; a++) {
|
|
310
|
-
const h = n[a];
|
|
311
|
-
let c, u, l = -1, p = 0;
|
|
312
|
-
for (; p < h.length && (r.lastIndex = p, u = r.exec(h), u !== null); ) p = r.lastIndex, r === S ? u[1] === "!--" ? r = G : u[1] !== void 0 ? r = Q : u[2] !== void 0 ? (rt.test(u[2]) && (i = RegExp("</" + u[2], "g")), r = m) : u[3] !== void 0 && (r = m) : r === m ? u[0] === ">" ? (r = i ?? S, l = -1) : u[1] === void 0 ? l = -2 : (l = r.lastIndex - u[2].length, c = u[1], r = u[3] === void 0 ? m : u[3] === '"' ? Y : X) : r === Y || r === X ? r = m : r === G || r === Q ? r = S : (r = m, i = void 0);
|
|
313
|
-
const $ = r === m && n[a + 1].startsWith("/>") ? " " : "";
|
|
314
|
-
o += r === S ? h + mt : l >= 0 ? (s.push(c), h.slice(0, l) + it + h.slice(l) + _ + $) : h + _ + (l === -2 ? a : $);
|
|
315
|
-
}
|
|
316
|
-
return [ht(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
317
|
-
};
|
|
318
|
-
class M {
|
|
319
|
-
constructor({ strings: t, _$litType$: e }, s) {
|
|
320
|
-
let i;
|
|
321
|
-
this.parts = [];
|
|
322
|
-
let o = 0, r = 0;
|
|
323
|
-
const a = t.length - 1, h = this.parts, [c, u] = At(t, e);
|
|
324
|
-
if (this.el = M.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) {
|
|
325
|
-
const l = this.el.content.firstChild;
|
|
326
|
-
l.replaceWith(...l.childNodes);
|
|
327
|
-
}
|
|
328
|
-
for (; (i = g.nextNode()) !== null && h.length < a; ) {
|
|
329
|
-
if (i.nodeType === 1) {
|
|
330
|
-
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(it)) {
|
|
331
|
-
const p = u[r++], $ = i.getAttribute(l).split(_), T = /([.?@])?(.*)/.exec(p);
|
|
332
|
-
h.push({ type: 1, index: o, name: T[2], strings: $, ctor: T[1] === "." ? vt : T[1] === "?" ? Et : T[1] === "@" ? bt : R }), i.removeAttribute(l);
|
|
333
|
-
} else l.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(l));
|
|
334
|
-
if (rt.test(i.tagName)) {
|
|
335
|
-
const l = i.textContent.split(_), p = l.length - 1;
|
|
336
|
-
if (p > 0) {
|
|
337
|
-
i.textContent = N ? N.emptyScript : "";
|
|
338
|
-
for (let $ = 0; $ < p; $++) i.append(l[$], U()), g.nextNode(), h.push({ type: 2, index: ++o });
|
|
339
|
-
i.append(l[p], U());
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
} else if (i.nodeType === 8) if (i.data === nt) h.push({ type: 2, index: o });
|
|
343
|
-
else {
|
|
344
|
-
let l = -1;
|
|
345
|
-
for (; (l = i.data.indexOf(_, l + 1)) !== -1; ) h.push({ type: 7, index: o }), l += _.length - 1;
|
|
346
|
-
}
|
|
347
|
-
o++;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
static createElement(t, e) {
|
|
351
|
-
const s = A.createElement("template");
|
|
352
|
-
return s.innerHTML = t, s;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
function E(n, t, e = n, s) {
|
|
356
|
-
var r, a;
|
|
357
|
-
if (t === v) return t;
|
|
358
|
-
let i = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
|
|
359
|
-
const o = x(t) ? void 0 : t._$litDirective$;
|
|
360
|
-
return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(n), i._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(n, i._$AS(n, t.values), i, s)), t;
|
|
361
|
-
}
|
|
362
|
-
class yt {
|
|
363
|
-
constructor(t, e) {
|
|
364
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
365
|
-
}
|
|
366
|
-
get parentNode() {
|
|
367
|
-
return this._$AM.parentNode;
|
|
368
|
-
}
|
|
369
|
-
get _$AU() {
|
|
370
|
-
return this._$AM._$AU;
|
|
371
|
-
}
|
|
372
|
-
u(t) {
|
|
373
|
-
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
|
|
374
|
-
g.currentNode = i;
|
|
375
|
-
let o = g.nextNode(), r = 0, a = 0, h = s[0];
|
|
376
|
-
for (; h !== void 0; ) {
|
|
377
|
-
if (r === h.index) {
|
|
378
|
-
let c;
|
|
379
|
-
h.type === 2 ? c = new b(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++a];
|
|
380
|
-
}
|
|
381
|
-
r !== (h == null ? void 0 : h.index) && (o = g.nextNode(), r++);
|
|
382
|
-
}
|
|
383
|
-
return g.currentNode = A, i;
|
|
384
|
-
}
|
|
385
|
-
p(t) {
|
|
386
|
-
let e = 0;
|
|
387
|
-
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++;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
class b {
|
|
391
|
-
get _$AU() {
|
|
392
|
-
var t;
|
|
393
|
-
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
394
|
-
}
|
|
395
|
-
constructor(t, e, s, i) {
|
|
396
|
-
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;
|
|
397
|
-
}
|
|
398
|
-
get parentNode() {
|
|
399
|
-
let t = this._$AA.parentNode;
|
|
400
|
-
const e = this._$AM;
|
|
401
|
-
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
|
402
|
-
}
|
|
403
|
-
get startNode() {
|
|
404
|
-
return this._$AA;
|
|
405
|
-
}
|
|
406
|
-
get endNode() {
|
|
407
|
-
return this._$AB;
|
|
408
|
-
}
|
|
409
|
-
_$AI(t, e = this) {
|
|
410
|
-
t = E(this, t, e), x(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : gt(t) ? this.k(t) : this._(t);
|
|
411
|
-
}
|
|
412
|
-
O(t) {
|
|
413
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
414
|
-
}
|
|
415
|
-
T(t) {
|
|
416
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
417
|
-
}
|
|
418
|
-
_(t) {
|
|
419
|
-
this._$AH !== d && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
|
|
420
|
-
}
|
|
421
|
-
$(t) {
|
|
422
|
-
var o;
|
|
423
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = M.createElement(ht(s.h, s.h[0]), this.options)), s);
|
|
424
|
-
if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
|
|
425
|
-
else {
|
|
426
|
-
const r = new yt(i, this), a = r.u(this.options);
|
|
427
|
-
r.p(e), this.T(a), this._$AH = r;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
_$AC(t) {
|
|
431
|
-
let e = tt.get(t.strings);
|
|
432
|
-
return e === void 0 && tt.set(t.strings, e = new M(t)), e;
|
|
433
|
-
}
|
|
434
|
-
k(t) {
|
|
435
|
-
W(this._$AH) || (this._$AH = [], this._$AR());
|
|
436
|
-
const e = this._$AH;
|
|
437
|
-
let s, i = 0;
|
|
438
|
-
for (const o of t) i === e.length ? e.push(s = new b(this.O(U()), this.O(U()), this, this.options)) : s = e[i], s._$AI(o), i++;
|
|
439
|
-
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
440
|
-
}
|
|
441
|
-
_$AR(t = this._$AA.nextSibling, e) {
|
|
442
|
-
var s;
|
|
443
|
-
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
444
|
-
const i = t.nextSibling;
|
|
445
|
-
t.remove(), t = i;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
setConnected(t) {
|
|
449
|
-
var e;
|
|
450
|
-
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
class R {
|
|
454
|
-
get tagName() {
|
|
455
|
-
return this.element.tagName;
|
|
456
|
-
}
|
|
457
|
-
get _$AU() {
|
|
458
|
-
return this._$AM._$AU;
|
|
459
|
-
}
|
|
460
|
-
constructor(t, e, s, i, o) {
|
|
461
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
|
|
462
|
-
}
|
|
463
|
-
_$AI(t, e = this, s, i) {
|
|
464
|
-
const o = this.strings;
|
|
465
|
-
let r = !1;
|
|
466
|
-
if (o === void 0) t = E(this, t, e, 0), r = !x(t) || t !== this._$AH && t !== v, r && (this._$AH = t);
|
|
467
|
-
else {
|
|
468
|
-
const a = t;
|
|
469
|
-
let h, c;
|
|
470
|
-
for (t = o[0], h = 0; h < o.length - 1; h++) c = E(this, a[s + h], e, h), c === v && (c = this._$AH[h]), r || (r = !x(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
|
|
471
|
-
}
|
|
472
|
-
r && !i && this.j(t);
|
|
473
|
-
}
|
|
474
|
-
j(t) {
|
|
475
|
-
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
class vt extends R {
|
|
479
|
-
constructor() {
|
|
480
|
-
super(...arguments), this.type = 3;
|
|
481
|
-
}
|
|
482
|
-
j(t) {
|
|
483
|
-
this.element[this.name] = t === d ? void 0 : t;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
class Et extends R {
|
|
487
|
-
constructor() {
|
|
488
|
-
super(...arguments), this.type = 4;
|
|
489
|
-
}
|
|
490
|
-
j(t) {
|
|
491
|
-
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
class bt extends R {
|
|
495
|
-
constructor(t, e, s, i, o) {
|
|
496
|
-
super(t, e, s, i, o), this.type = 5;
|
|
497
|
-
}
|
|
498
|
-
_$AI(t, e = this) {
|
|
499
|
-
if ((t = E(this, t, e, 0) ?? d) === v) return;
|
|
500
|
-
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
|
|
501
|
-
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
502
|
-
}
|
|
503
|
-
handleEvent(t) {
|
|
504
|
-
var e;
|
|
505
|
-
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
class St {
|
|
509
|
-
constructor(t, e, s) {
|
|
510
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
511
|
-
}
|
|
512
|
-
get _$AU() {
|
|
513
|
-
return this._$AM._$AU;
|
|
514
|
-
}
|
|
515
|
-
_$AI(t) {
|
|
516
|
-
E(this, t);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
const Lt = { I: b }, D = C.litHtmlPolyfillSupport;
|
|
520
|
-
D == null || D(M, b), (C.litHtmlVersions ?? (C.litHtmlVersions = [])).push("3.2.1");
|
|
521
|
-
const wt = (n, t, e) => {
|
|
522
|
-
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
523
|
-
let i = s._$litPart$;
|
|
524
|
-
if (i === void 0) {
|
|
525
|
-
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
526
|
-
s._$litPart$ = i = new b(t.insertBefore(U(), o), o, void 0, e ?? {});
|
|
527
|
-
}
|
|
528
|
-
return i._$AI(n), i;
|
|
529
|
-
};
|
|
530
|
-
/**
|
|
531
|
-
* @license
|
|
532
|
-
* Copyright 2017 Google LLC
|
|
533
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
534
|
-
*/
|
|
535
|
-
let P = class extends y {
|
|
536
|
-
constructor() {
|
|
537
|
-
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
538
|
-
}
|
|
539
|
-
createRenderRoot() {
|
|
540
|
-
var e;
|
|
541
|
-
const t = super.createRenderRoot();
|
|
542
|
-
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
|
543
|
-
}
|
|
544
|
-
update(t) {
|
|
545
|
-
const e = this.render();
|
|
546
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wt(e, this.renderRoot, this.renderOptions);
|
|
547
|
-
}
|
|
548
|
-
connectedCallback() {
|
|
549
|
-
var t;
|
|
550
|
-
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
|
551
|
-
}
|
|
552
|
-
disconnectedCallback() {
|
|
553
|
-
var t;
|
|
554
|
-
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
555
|
-
}
|
|
556
|
-
render() {
|
|
557
|
-
return v;
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
var et;
|
|
561
|
-
P._$litElement$ = !0, P.finalized = !0, (et = globalThis.litElementHydrateSupport) == null || et.call(globalThis, { LitElement: P });
|
|
562
|
-
const z = globalThis.litElementPolyfillSupport;
|
|
563
|
-
z == null || z({ LitElement: P });
|
|
564
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
565
|
-
/**
|
|
566
|
-
* @license
|
|
567
|
-
* Copyright 2017 Google LLC
|
|
568
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
|
-
*/
|
|
570
|
-
const Ct = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: V }, Pt = (n = Ct, t, e) => {
|
|
571
|
-
const { kind: s, metadata: i } = e;
|
|
572
|
-
let o = globalThis.litPropertyMetadata.get(i);
|
|
573
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, n), s === "accessor") {
|
|
574
|
-
const { name: r } = e;
|
|
575
|
-
return { set(a) {
|
|
576
|
-
const h = t.get.call(this);
|
|
577
|
-
t.set.call(this, a), this.requestUpdate(r, h, n);
|
|
578
|
-
}, init(a) {
|
|
579
|
-
return a !== void 0 && this.P(r, void 0, n), a;
|
|
580
|
-
} };
|
|
581
|
-
}
|
|
582
|
-
if (s === "setter") {
|
|
583
|
-
const { name: r } = e;
|
|
584
|
-
return function(a) {
|
|
585
|
-
const h = this[r];
|
|
586
|
-
t.call(this, a), this.requestUpdate(r, h, n);
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
throw Error("Unsupported decorator location: " + s);
|
|
590
|
-
};
|
|
591
|
-
function zt(n) {
|
|
592
|
-
return (t, e) => typeof e == "object" ? Pt(n, t, e) : ((s, i, o) => {
|
|
593
|
-
const r = i.hasOwnProperty(o);
|
|
594
|
-
return i.constructor.createProperty(o, r ? { ...s, wrapped: !0 } : s), r ? Object.getOwnPropertyDescriptor(i, o) : void 0;
|
|
595
|
-
})(n, t, e);
|
|
596
|
-
}
|
|
597
|
-
const I = /* @__PURE__ */ new Set(), Ut = () => {
|
|
598
|
-
const n = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
|
|
599
|
-
I.forEach((t) => {
|
|
600
|
-
t.setAttribute("dir", n);
|
|
601
|
-
});
|
|
602
|
-
}, xt = new MutationObserver(Ut);
|
|
603
|
-
xt.observe(document.documentElement, {
|
|
604
|
-
attributes: !0,
|
|
605
|
-
attributeFilter: ["dir"]
|
|
606
|
-
});
|
|
607
|
-
const Mt = (n) => n.startManagingContentDirection !== void 0 || n.tagName === "LUZMO-THEME";
|
|
608
|
-
function Tt(n) {
|
|
609
|
-
class t extends n {
|
|
610
|
-
/**
|
|
611
|
-
* @private
|
|
612
|
-
*/
|
|
613
|
-
get isLTR() {
|
|
614
|
-
return this.dir === "ltr";
|
|
615
|
-
}
|
|
616
|
-
hasVisibleFocusInTree() {
|
|
617
|
-
const i = ((o = document) => {
|
|
618
|
-
var h;
|
|
619
|
-
let r = o.activeElement;
|
|
620
|
-
for (; r != null && r.shadowRoot && r.shadowRoot.activeElement; )
|
|
621
|
-
r = r.shadowRoot.activeElement;
|
|
622
|
-
const a = r ? [r] : [];
|
|
623
|
-
for (; r; ) {
|
|
624
|
-
const c = r.assignedSlot || r.parentElement || ((h = r.getRootNode()) == null ? void 0 : h.host);
|
|
625
|
-
c && a.push(c), r = c;
|
|
626
|
-
}
|
|
627
|
-
return a;
|
|
628
|
-
})(this.getRootNode())[0];
|
|
629
|
-
if (!i)
|
|
630
|
-
return !1;
|
|
631
|
-
try {
|
|
632
|
-
return i.matches(":focus-visible") || i.matches(".focus-visible");
|
|
633
|
-
} catch {
|
|
634
|
-
return i.matches(".focus-visible");
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
connectedCallback() {
|
|
638
|
-
if (!this.hasAttribute("dir")) {
|
|
639
|
-
let s = this.assignedSlot || this.parentNode;
|
|
640
|
-
for (; s !== document.documentElement && !Mt(s); )
|
|
641
|
-
s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
642
|
-
s.parentNode || // DOM Element detected
|
|
643
|
-
s.host;
|
|
644
|
-
if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
|
|
645
|
-
I.add(this);
|
|
646
|
-
else {
|
|
647
|
-
const { localName: i } = s;
|
|
648
|
-
i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
|
|
649
|
-
s.startManagingContentDirection(this);
|
|
650
|
-
}) : s.startManagingContentDirection(this);
|
|
651
|
-
}
|
|
652
|
-
this._dirParent = s;
|
|
653
|
-
}
|
|
654
|
-
super.connectedCallback();
|
|
655
|
-
}
|
|
656
|
-
disconnectedCallback() {
|
|
657
|
-
super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? I.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
return t;
|
|
661
|
-
}
|
|
662
|
-
class It extends Tt(P) {
|
|
663
|
-
}
|
|
664
|
-
export {
|
|
665
|
-
wt as B,
|
|
666
|
-
d as E,
|
|
667
|
-
Tt as L,
|
|
668
|
-
v as T,
|
|
669
|
-
Lt as Z,
|
|
670
|
-
It as a,
|
|
671
|
-
kt as b,
|
|
672
|
-
P as c,
|
|
673
|
-
Ht as i,
|
|
674
|
-
zt as n,
|
|
675
|
-
at as r,
|
|
676
|
-
Rt as x
|
|
677
|
-
};
|