@uvalib/web-components 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +162 -0
- package/README.md +1164 -2
- package/bin/install-skill.mjs +139 -0
- package/dist/base/UvalibElement.d.ts +21 -0
- package/dist/base/UvalibElement.js +68 -0
- package/dist/base/UvalibElement.js.map +1 -0
- package/dist/base/analytics.d.ts +44 -0
- package/dist/base/analytics.js +59 -0
- package/dist/base/analytics.js.map +1 -0
- package/dist/base/color-scheme.d.ts +93 -0
- package/dist/base/color-scheme.js +267 -0
- package/dist/base/color-scheme.js.map +1 -0
- package/dist/base/define.d.ts +2 -0
- package/dist/base/define.js +6 -0
- package/dist/base/define.js.map +1 -0
- package/dist/base/heading-level.d.ts +12 -0
- package/dist/base/heading-level.js +52 -0
- package/dist/base/heading-level.js.map +1 -0
- package/dist/base/light-dom-styles.d.ts +18 -0
- package/dist/base/light-dom-styles.js +134 -0
- package/dist/base/light-dom-styles.js.map +1 -0
- package/dist/base.css +30 -0
- package/dist/base.d.ts +5 -0
- package/dist/base.js +5 -0
- package/dist/base.js.map +1 -0
- package/dist/components/bento-box/ArticlesSection.d.ts +19 -0
- package/dist/components/bento-box/ArticlesSection.js +22 -0
- package/dist/components/bento-box/ArticlesSection.js.map +1 -0
- package/dist/components/bento-box/BentoBox.d.ts +85 -0
- package/dist/components/bento-box/BentoBox.js +366 -0
- package/dist/components/bento-box/BentoBox.js.map +1 -0
- package/dist/components/bento-box/BentoSection.d.ts +115 -0
- package/dist/components/bento-box/BentoSection.js +468 -0
- package/dist/components/bento-box/BentoSection.js.map +1 -0
- package/dist/components/bento-box/CatalogSection.d.ts +18 -0
- package/dist/components/bento-box/CatalogSection.js +19 -0
- package/dist/components/bento-box/CatalogSection.js.map +1 -0
- package/dist/components/bento-box/LibGuidesSection.d.ts +24 -0
- package/dist/components/bento-box/LibGuidesSection.js +73 -0
- package/dist/components/bento-box/LibGuidesSection.js.map +1 -0
- package/dist/components/bento-box/VirgoSection.d.ts +19 -0
- package/dist/components/bento-box/VirgoSection.js +58 -0
- package/dist/components/bento-box/VirgoSection.js.map +1 -0
- package/dist/components/bento-box/WebsiteSection.d.ts +25 -0
- package/dist/components/bento-box/WebsiteSection.js +40 -0
- package/dist/components/bento-box/WebsiteSection.js.map +1 -0
- package/dist/components/bento-box/bento-box.d.ts +1 -0
- package/dist/components/bento-box/bento-box.js +13 -0
- package/dist/components/bento-box/bento-box.js.map +1 -0
- package/dist/components/bento-box/bento-data.d.ts +147 -0
- package/dist/components/bento-box/bento-data.js +422 -0
- package/dist/components/bento-box/bento-data.js.map +1 -0
- package/dist/components/events-section/EventsSection.d.ts +91 -0
- package/dist/components/events-section/EventsSection.js +435 -0
- package/dist/components/events-section/EventsSection.js.map +1 -0
- package/dist/components/events-section/events-data.d.ts +90 -0
- package/dist/components/events-section/events-data.js +174 -0
- package/dist/components/events-section/events-data.js.map +1 -0
- package/dist/components/events-section/events-section.d.ts +1 -0
- package/dist/components/events-section/events-section.js +4 -0
- package/dist/components/events-section/events-section.js.map +1 -0
- package/dist/components/library-hours/hours-data.d.ts +104 -0
- package/dist/components/library-hours/hours-data.js +267 -0
- package/dist/components/library-hours/hours-data.js.map +1 -0
- package/dist/components/library-hours-setup/LibraryHoursSetup.d.ts +21 -0
- package/dist/components/library-hours-setup/LibraryHoursSetup.js +59 -0
- package/dist/components/library-hours-setup/LibraryHoursSetup.js.map +1 -0
- package/dist/components/library-hours-setup/library-hours-setup.d.ts +1 -0
- package/dist/components/library-hours-setup/library-hours-setup.js +5 -0
- package/dist/components/library-hours-setup/library-hours-setup.js.map +1 -0
- package/dist/components/library-weekly-hours/LibraryWeeklyHours.d.ts +107 -0
- package/dist/components/library-weekly-hours/LibraryWeeklyHours.js +502 -0
- package/dist/components/library-weekly-hours/LibraryWeeklyHours.js.map +1 -0
- package/dist/components/library-weekly-hours/library-weekly-hours.d.ts +1 -0
- package/dist/components/library-weekly-hours/library-weekly-hours.js +4 -0
- package/dist/components/library-weekly-hours/library-weekly-hours.js.map +1 -0
- package/dist/components/link.d.ts +2 -0
- package/dist/components/link.js +7 -0
- package/dist/components/link.js.map +1 -0
- package/dist/components/site-analytics/SiteAnalytics.d.ts +44 -0
- package/dist/components/site-analytics/SiteAnalytics.js +161 -0
- package/dist/components/site-analytics/SiteAnalytics.js.map +1 -0
- package/dist/components/site-analytics/SiteAnalyticsMixin.d.ts +8 -0
- package/dist/components/site-analytics/SiteAnalyticsMixin.js +22 -0
- package/dist/components/site-analytics/SiteAnalyticsMixin.js.map +1 -0
- package/dist/components/site-analytics/site-analytics.d.ts +1 -0
- package/dist/components/site-analytics/site-analytics.js +4 -0
- package/dist/components/site-analytics/site-analytics.js.map +1 -0
- package/dist/components/site-footer/SiteFooter.d.ts +34 -0
- package/dist/components/site-footer/SiteFooter.js +275 -0
- package/dist/components/site-footer/SiteFooter.js.map +1 -0
- package/dist/components/site-footer/icons.d.ts +4 -0
- package/dist/components/site-footer/icons.js +7 -0
- package/dist/components/site-footer/icons.js.map +1 -0
- package/dist/components/site-footer/site-footer.d.ts +1 -0
- package/dist/components/site-footer/site-footer.js +4 -0
- package/dist/components/site-footer/site-footer.js.map +1 -0
- package/dist/components/site-header/SiteHeader.d.ts +154 -0
- package/dist/components/site-header/SiteHeader.js +845 -0
- package/dist/components/site-header/SiteHeader.js.map +1 -0
- package/dist/components/site-header/site-header.d.ts +1 -0
- package/dist/components/site-header/site-header.js +12 -0
- package/dist/components/site-header/site-header.js.map +1 -0
- package/dist/components/site-hours-section/SiteHoursSection.d.ts +63 -0
- package/dist/components/site-hours-section/SiteHoursSection.js +243 -0
- package/dist/components/site-hours-section/SiteHoursSection.js.map +1 -0
- package/dist/components/site-hours-section/site-hours-section.d.ts +1 -0
- package/dist/components/site-hours-section/site-hours-section.js +4 -0
- package/dist/components/site-hours-section/site-hours-section.js.map +1 -0
- package/dist/components/site-main-nav/SiteMainNav.d.ts +136 -0
- package/dist/components/site-main-nav/SiteMainNav.js +678 -0
- package/dist/components/site-main-nav/SiteMainNav.js.map +1 -0
- package/dist/components/site-main-nav/main-nav-data.d.ts +5 -0
- package/dist/components/site-main-nav/main-nav-data.js +90 -0
- package/dist/components/site-main-nav/main-nav-data.js.map +1 -0
- package/dist/components/site-main-nav/main-nav-items.d.ts +49 -0
- package/dist/components/site-main-nav/main-nav-items.js +138 -0
- package/dist/components/site-main-nav/main-nav-items.js.map +1 -0
- package/dist/components/site-main-nav/site-main-nav.d.ts +1 -0
- package/dist/components/site-main-nav/site-main-nav.js +4 -0
- package/dist/components/site-main-nav/site-main-nav.js.map +1 -0
- package/dist/components/site-page/SitePage.d.ts +145 -0
- package/dist/components/site-page/SitePage.js +480 -0
- package/dist/components/site-page/SitePage.js.map +1 -0
- package/dist/components/site-page/alerts.d.ts +24 -0
- package/dist/components/site-page/alerts.js +78 -0
- package/dist/components/site-page/alerts.js.map +1 -0
- package/dist/components/site-page/site-page.d.ts +1 -0
- package/dist/components/site-page/site-page.js +7 -0
- package/dist/components/site-page/site-page.js.map +1 -0
- package/dist/components/site-style/SiteStyle.d.ts +37 -0
- package/dist/components/site-style/SiteStyle.js +76 -0
- package/dist/components/site-style/SiteStyle.js.map +1 -0
- package/dist/components/site-style/site-style.d.ts +1 -0
- package/dist/components/site-style/site-style.js +4 -0
- package/dist/components/site-style/site-style.js.map +1 -0
- package/dist/components/uvalib-analytics/UvalibAnalytics.d.ts +10 -0
- package/dist/components/uvalib-analytics/UvalibAnalytics.js +11 -0
- package/dist/components/uvalib-analytics/UvalibAnalytics.js.map +1 -0
- package/dist/components/uvalib-analytics/UvalibAnalyticsMixin.d.ts +13 -0
- package/dist/components/uvalib-analytics/UvalibAnalyticsMixin.js +25 -0
- package/dist/components/uvalib-analytics/UvalibAnalyticsMixin.js.map +1 -0
- package/dist/components/uvalib-analytics/uvalib-analytics.d.ts +1 -0
- package/dist/components/uvalib-analytics/uvalib-analytics.js +4 -0
- package/dist/components/uvalib-analytics/uvalib-analytics.js.map +1 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.d.ts +46 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.js +339 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.js.map +1 -0
- package/dist/components/uvalib-date-range/uvalib-date-range.d.ts +1 -0
- package/dist/components/uvalib-date-range/uvalib-date-range.js +4 -0
- package/dist/components/uvalib-date-range/uvalib-date-range.js.map +1 -0
- package/dist/components/uvalib-filter/UvalibFilter.d.ts +73 -0
- package/dist/components/uvalib-filter/UvalibFilter.js +279 -0
- package/dist/components/uvalib-filter/UvalibFilter.js.map +1 -0
- package/dist/components/uvalib-filter/uvalib-filter.d.ts +1 -0
- package/dist/components/uvalib-filter/uvalib-filter.js +4 -0
- package/dist/components/uvalib-filter/uvalib-filter.js.map +1 -0
- package/dist/custom-elements.json +15178 -0
- package/dist/data/fetch-json.d.ts +28 -0
- package/dist/data/fetch-json.js +43 -0
- package/dist/data/fetch-json.js.map +1 -0
- package/dist/data/new-york.d.ts +5 -0
- package/dist/data/new-york.js +23 -0
- package/dist/data/new-york.js.map +1 -0
- package/dist/data/sites.d.ts +12 -0
- package/dist/data/sites.js +89 -0
- package/dist/data/sites.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/accessible.d.ts +1 -0
- package/dist/styles/accessible.js +37 -0
- package/dist/styles/accessible.js.map +1 -0
- package/dist/styles/base.d.ts +2 -0
- package/dist/styles/base.js +41 -0
- package/dist/styles/base.js.map +1 -0
- package/dist/styles/color-scheme.d.ts +1 -0
- package/dist/styles/color-scheme.js +81 -0
- package/dist/styles/color-scheme.js.map +1 -0
- package/dist/styles/tokens.d.ts +1 -0
- package/dist/styles/tokens.js +85 -0
- package/dist/styles/tokens.js.map +1 -0
- package/dist/styles/w3-subset.d.ts +1 -0
- package/dist/styles/w3-subset.js +33 -0
- package/dist/styles/w3-subset.js.map +1 -0
- package/dist/tokens.css +152 -0
- package/dist-cdn/base.css +30 -0
- package/dist-cdn/bento-box.js +1023 -0
- package/dist-cdn/bento-box.js.map +1 -0
- package/dist-cdn/chunks/SiteAnalytics-T1Wx3lsb.js +174 -0
- package/dist-cdn/chunks/SiteAnalytics-T1Wx3lsb.js.map +1 -0
- package/dist-cdn/chunks/UvalibElement-BnI-eRRR.js +695 -0
- package/dist-cdn/chunks/UvalibElement-BnI-eRRR.js.map +1 -0
- package/dist-cdn/chunks/accessible-GqhVn5_H.js +40 -0
- package/dist-cdn/chunks/accessible-GqhVn5_H.js.map +1 -0
- package/dist-cdn/chunks/analytics-C8D8n_wt.js +55 -0
- package/dist-cdn/chunks/analytics-C8D8n_wt.js.map +1 -0
- package/dist-cdn/chunks/base-DCGd2Oii.js +117 -0
- package/dist-cdn/chunks/base-DCGd2Oii.js.map +1 -0
- package/dist-cdn/chunks/fetch-json-Cyqv-gLU.js +25 -0
- package/dist-cdn/chunks/fetch-json-Cyqv-gLU.js.map +1 -0
- package/dist-cdn/chunks/heading-level-DIuNS44-.js +31 -0
- package/dist-cdn/chunks/heading-level-DIuNS44-.js.map +1 -0
- package/dist-cdn/chunks/hours-data-Bw6vkIw7.js +181 -0
- package/dist-cdn/chunks/hours-data-Bw6vkIw7.js.map +1 -0
- package/dist-cdn/chunks/library-weekly-hours-ByQ8ugxh.js +346 -0
- package/dist-cdn/chunks/library-weekly-hours-ByQ8ugxh.js.map +1 -0
- package/dist-cdn/chunks/link-DbJSwj16.js +7 -0
- package/dist-cdn/chunks/link-DbJSwj16.js.map +1 -0
- package/dist-cdn/chunks/new-york-DkcnqvJ4.js +18 -0
- package/dist-cdn/chunks/new-york-DkcnqvJ4.js.map +1 -0
- package/dist-cdn/chunks/repeat-CIFUYkyh.js +101 -0
- package/dist-cdn/chunks/repeat-CIFUYkyh.js.map +1 -0
- package/dist-cdn/chunks/site-header-BwDkZ2LL.js +802 -0
- package/dist-cdn/chunks/site-header-BwDkZ2LL.js.map +1 -0
- package/dist-cdn/chunks/site-main-nav-BLAAunnr.js +605 -0
- package/dist-cdn/chunks/site-main-nav-BLAAunnr.js.map +1 -0
- package/dist-cdn/chunks/static-html-1mTAG6nS.js +22 -0
- package/dist-cdn/chunks/static-html-1mTAG6nS.js.map +1 -0
- package/dist-cdn/custom-elements.json +15178 -0
- package/dist-cdn/events-section.js +401 -0
- package/dist-cdn/events-section.js.map +1 -0
- package/dist-cdn/library-hours-setup.js +28 -0
- package/dist-cdn/library-hours-setup.js.map +1 -0
- package/dist-cdn/library-weekly-hours.js +1 -0
- package/dist-cdn/manifest.json +23 -0
- package/dist-cdn/site-analytics.js +6 -0
- package/dist-cdn/site-analytics.js.map +1 -0
- package/dist-cdn/site-footer.js +267 -0
- package/dist-cdn/site-footer.js.map +1 -0
- package/dist-cdn/site-header.js +1 -0
- package/dist-cdn/site-hours-section.js +145 -0
- package/dist-cdn/site-hours-section.js.map +1 -0
- package/dist-cdn/site-main-nav.js +1 -0
- package/dist-cdn/site-page.js +317 -0
- package/dist-cdn/site-page.js.map +1 -0
- package/dist-cdn/site-style.js +42 -0
- package/dist-cdn/site-style.js.map +1 -0
- package/dist-cdn/skills/uvalib-web-components/SKILL.md +276 -0
- package/dist-cdn/skills/uvalib-web-components/reference/components.md +631 -0
- package/dist-cdn/skills/uvalib-web-components/reference/migration.md +52 -0
- package/dist-cdn/skills/uvalib-web-components/reference/snippets.md +147 -0
- package/dist-cdn/tokens.css +152 -0
- package/dist-cdn/uvalib-analytics.js +6 -0
- package/dist-cdn/uvalib-analytics.js.map +1 -0
- package/dist-cdn/uvalib-date-range.js +262 -0
- package/dist-cdn/uvalib-date-range.js.map +1 -0
- package/dist-cdn/uvalib-filter.js +184 -0
- package/dist-cdn/uvalib-filter.js.map +1 -0
- package/package.json +152 -4
- package/skills/uvalib-web-components/SKILL.md +276 -0
- package/skills/uvalib-web-components/reference/components.md +631 -0
- package/skills/uvalib-web-components/reference/migration.md +52 -0
- package/skills/uvalib-web-components/reference/snippets.md +147 -0
|
@@ -0,0 +1,695 @@
|
|
|
1
|
+
// src/base/define.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
customElements.get(e) || customElements.define(e, t);
|
|
4
|
+
}
|
|
5
|
+
// node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js
|
|
6
|
+
var t = globalThis, n = t.ShadowRoot && (t.ShadyCSS === void 0 || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, r = Symbol(), i = /* @__PURE__ */ new WeakMap(), a = class {
|
|
7
|
+
constructor(e, t, n) {
|
|
8
|
+
if (this._$cssResult$ = !0, n !== r) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
9
|
+
this.cssText = e, this.t = t;
|
|
10
|
+
}
|
|
11
|
+
get styleSheet() {
|
|
12
|
+
let e = this.o, t = this.t;
|
|
13
|
+
if (n && e === void 0) {
|
|
14
|
+
let n = t !== void 0 && t.length === 1;
|
|
15
|
+
n && (e = i.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && i.set(t, e));
|
|
16
|
+
}
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
toString() {
|
|
20
|
+
return this.cssText;
|
|
21
|
+
}
|
|
22
|
+
}, o = (e) => new a(typeof e == "string" ? e : e + "", void 0, r), s = (e, ...t) => new a(e.length === 1 ? e[0] : t.reduce((t, n, r) => t + ((e) => {
|
|
23
|
+
if (!0 === e._$cssResult$) return e.cssText;
|
|
24
|
+
if (typeof e == "number") return e;
|
|
25
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + e + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
26
|
+
})(n) + e[r + 1], e[0]), e, r), c = (e, r) => {
|
|
27
|
+
if (n) e.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
28
|
+
else for (let n of r) {
|
|
29
|
+
let r = document.createElement("style"), i = t.litNonce;
|
|
30
|
+
i !== void 0 && r.setAttribute("nonce", i), r.textContent = n.cssText, e.appendChild(r);
|
|
31
|
+
}
|
|
32
|
+
}, l = n ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
|
|
33
|
+
let t = "";
|
|
34
|
+
for (let n of e.cssRules) t += n.cssText;
|
|
35
|
+
return o(t);
|
|
36
|
+
})(e) : e, { is: u, defineProperty: d, getOwnPropertyDescriptor: ee, getOwnPropertyNames: te, getOwnPropertySymbols: ne, getPrototypeOf: re } = Object, f = globalThis, p = f.trustedTypes, ie = p ? p.emptyScript : "", ae = f.reactiveElementPolyfillSupport, m = (e, t) => e, h = {
|
|
37
|
+
toAttribute(e, t) {
|
|
38
|
+
switch (t) {
|
|
39
|
+
case Boolean:
|
|
40
|
+
e = e ? ie : null;
|
|
41
|
+
break;
|
|
42
|
+
case Object:
|
|
43
|
+
case Array: e = e == null ? e : JSON.stringify(e);
|
|
44
|
+
}
|
|
45
|
+
return e;
|
|
46
|
+
},
|
|
47
|
+
fromAttribute(e, t) {
|
|
48
|
+
let n = e;
|
|
49
|
+
switch (t) {
|
|
50
|
+
case Boolean:
|
|
51
|
+
n = e !== null;
|
|
52
|
+
break;
|
|
53
|
+
case Number:
|
|
54
|
+
n = e === null ? null : Number(e);
|
|
55
|
+
break;
|
|
56
|
+
case Object:
|
|
57
|
+
case Array: try {
|
|
58
|
+
n = JSON.parse(e);
|
|
59
|
+
} catch {
|
|
60
|
+
n = null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return n;
|
|
64
|
+
}
|
|
65
|
+
}, g = (e, t) => !u(e, t), _ = {
|
|
66
|
+
attribute: !0,
|
|
67
|
+
type: String,
|
|
68
|
+
converter: h,
|
|
69
|
+
reflect: !1,
|
|
70
|
+
useDefault: !1,
|
|
71
|
+
hasChanged: g
|
|
72
|
+
};
|
|
73
|
+
Symbol.metadata ??= Symbol("metadata"), f.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
74
|
+
var v = class extends HTMLElement {
|
|
75
|
+
static addInitializer(e) {
|
|
76
|
+
this._$Ei(), (this.l ??= []).push(e);
|
|
77
|
+
}
|
|
78
|
+
static get observedAttributes() {
|
|
79
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
80
|
+
}
|
|
81
|
+
static createProperty(e, t = _) {
|
|
82
|
+
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
83
|
+
let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
|
|
84
|
+
r !== void 0 && d(this.prototype, e, r);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
static getPropertyDescriptor(e, t, n) {
|
|
88
|
+
let { get: r, set: i } = ee(this.prototype, e) ?? {
|
|
89
|
+
get() {
|
|
90
|
+
return this[t];
|
|
91
|
+
},
|
|
92
|
+
set(e) {
|
|
93
|
+
this[t] = e;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
get: r,
|
|
98
|
+
set(t) {
|
|
99
|
+
let a = r?.call(this);
|
|
100
|
+
i?.call(this, t), this.requestUpdate(e, a, n);
|
|
101
|
+
},
|
|
102
|
+
configurable: !0,
|
|
103
|
+
enumerable: !0
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
static getPropertyOptions(e) {
|
|
107
|
+
return this.elementProperties.get(e) ?? _;
|
|
108
|
+
}
|
|
109
|
+
static _$Ei() {
|
|
110
|
+
if (this.hasOwnProperty(m("elementProperties"))) return;
|
|
111
|
+
let e = re(this);
|
|
112
|
+
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
113
|
+
}
|
|
114
|
+
static finalize() {
|
|
115
|
+
if (this.hasOwnProperty(m("finalized"))) return;
|
|
116
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(m("properties"))) {
|
|
117
|
+
let e = this.properties, t = [...te(e), ...ne(e)];
|
|
118
|
+
for (let n of t) this.createProperty(n, e[n]);
|
|
119
|
+
}
|
|
120
|
+
let e = this[Symbol.metadata];
|
|
121
|
+
if (e !== null) {
|
|
122
|
+
let t = litPropertyMetadata.get(e);
|
|
123
|
+
if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
|
|
124
|
+
}
|
|
125
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
126
|
+
for (let [e, t] of this.elementProperties) {
|
|
127
|
+
let n = this._$Eu(e, t);
|
|
128
|
+
n !== void 0 && this._$Eh.set(n, e);
|
|
129
|
+
}
|
|
130
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
131
|
+
}
|
|
132
|
+
static finalizeStyles(e) {
|
|
133
|
+
let t = [];
|
|
134
|
+
if (Array.isArray(e)) {
|
|
135
|
+
let n = new Set(e.flat(1 / 0).reverse());
|
|
136
|
+
for (let e of n) t.unshift(l(e));
|
|
137
|
+
} else e !== void 0 && t.push(l(e));
|
|
138
|
+
return t;
|
|
139
|
+
}
|
|
140
|
+
static _$Eu(e, t) {
|
|
141
|
+
let n = t.attribute;
|
|
142
|
+
return !1 === n ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
143
|
+
}
|
|
144
|
+
constructor() {
|
|
145
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
146
|
+
}
|
|
147
|
+
_$Ev() {
|
|
148
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
|
|
149
|
+
}
|
|
150
|
+
addController(e) {
|
|
151
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
|
|
152
|
+
}
|
|
153
|
+
removeController(e) {
|
|
154
|
+
this._$EO?.delete(e);
|
|
155
|
+
}
|
|
156
|
+
_$E_() {
|
|
157
|
+
let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
|
|
158
|
+
for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
|
|
159
|
+
e.size > 0 && (this._$Ep = e);
|
|
160
|
+
}
|
|
161
|
+
createRenderRoot() {
|
|
162
|
+
let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
163
|
+
return c(e, this.constructor.elementStyles), e;
|
|
164
|
+
}
|
|
165
|
+
connectedCallback() {
|
|
166
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
|
|
167
|
+
}
|
|
168
|
+
enableUpdating(e) {}
|
|
169
|
+
disconnectedCallback() {
|
|
170
|
+
this._$EO?.forEach((e) => e.hostDisconnected?.());
|
|
171
|
+
}
|
|
172
|
+
attributeChangedCallback(e, t, n) {
|
|
173
|
+
this._$AK(e, n);
|
|
174
|
+
}
|
|
175
|
+
_$ET(e, t) {
|
|
176
|
+
let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
|
|
177
|
+
if (r !== void 0 && !0 === n.reflect) {
|
|
178
|
+
let i = (n.converter?.toAttribute === void 0 ? h : n.converter).toAttribute(t, n.type);
|
|
179
|
+
this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
_$AK(e, t) {
|
|
183
|
+
let n = this.constructor, r = n._$Eh.get(e);
|
|
184
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
185
|
+
let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? h : e.converter;
|
|
186
|
+
this._$Em = r;
|
|
187
|
+
let a = i.fromAttribute(t, e.type);
|
|
188
|
+
this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
requestUpdate(e, t, n, r = !1, i) {
|
|
192
|
+
if (e !== void 0) {
|
|
193
|
+
let a = this.constructor;
|
|
194
|
+
if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? g)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
|
|
195
|
+
this.C(e, t, n);
|
|
196
|
+
}
|
|
197
|
+
!1 === this.isUpdatePending && (this._$ES = this._$EP());
|
|
198
|
+
}
|
|
199
|
+
C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
|
|
200
|
+
n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), !0 !== i || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), !0 === r && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
|
|
201
|
+
}
|
|
202
|
+
async _$EP() {
|
|
203
|
+
this.isUpdatePending = !0;
|
|
204
|
+
try {
|
|
205
|
+
await this._$ES;
|
|
206
|
+
} catch (e) {
|
|
207
|
+
Promise.reject(e);
|
|
208
|
+
}
|
|
209
|
+
let e = this.scheduleUpdate();
|
|
210
|
+
return e != null && await e, !this.isUpdatePending;
|
|
211
|
+
}
|
|
212
|
+
scheduleUpdate() {
|
|
213
|
+
return this.performUpdate();
|
|
214
|
+
}
|
|
215
|
+
performUpdate() {
|
|
216
|
+
if (!this.isUpdatePending) return;
|
|
217
|
+
if (!this.hasUpdated) {
|
|
218
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
219
|
+
for (let [e, t] of this._$Ep) this[e] = t;
|
|
220
|
+
this._$Ep = void 0;
|
|
221
|
+
}
|
|
222
|
+
let e = this.constructor.elementProperties;
|
|
223
|
+
if (e.size > 0) for (let [t, n] of e) {
|
|
224
|
+
let { wrapped: e } = n, r = this[t];
|
|
225
|
+
!0 !== e || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
let e = !1, t = this._$AL;
|
|
229
|
+
try {
|
|
230
|
+
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((e) => e.hostUpdate?.()), this.update(t)) : this._$EM();
|
|
231
|
+
} catch (t) {
|
|
232
|
+
throw e = !1, this._$EM(), t;
|
|
233
|
+
}
|
|
234
|
+
e && this._$AE(t);
|
|
235
|
+
}
|
|
236
|
+
willUpdate(e) {}
|
|
237
|
+
_$AE(e) {
|
|
238
|
+
this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
239
|
+
}
|
|
240
|
+
_$EM() {
|
|
241
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
242
|
+
}
|
|
243
|
+
get updateComplete() {
|
|
244
|
+
return this.getUpdateComplete();
|
|
245
|
+
}
|
|
246
|
+
getUpdateComplete() {
|
|
247
|
+
return this._$ES;
|
|
248
|
+
}
|
|
249
|
+
shouldUpdate(e) {
|
|
250
|
+
return !0;
|
|
251
|
+
}
|
|
252
|
+
update(e) {
|
|
253
|
+
this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
|
|
254
|
+
}
|
|
255
|
+
updated(e) {}
|
|
256
|
+
firstUpdated(e) {}
|
|
257
|
+
};
|
|
258
|
+
v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[m("elementProperties")] = /* @__PURE__ */ new Map(), v[m("finalized")] = /* @__PURE__ */ new Map(), ae?.({ ReactiveElement: v }), (f.reactiveElementVersions ??= []).push("2.1.2");
|
|
259
|
+
// node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js
|
|
260
|
+
var y = globalThis, oe = (e) => e, b = y.trustedTypes, se = b ? b.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, x = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, C = "?" + S, ce = `<${C}>`, w = document, T = () => w.createComment(""), E = (e) => e === null || typeof e != "object" && typeof e != "function", D = Array.isArray, O = (e) => D(e) || typeof e?.[Symbol.iterator] == "function", k = "[ \n\f\r]", A = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, le = /-->/g, ue = />/g, j = RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), de = /'/g, M = /"/g, N = /^(?:script|style|textarea|title)$/i, P = (e) => (t, ...n) => ({
|
|
261
|
+
_$litType$: e,
|
|
262
|
+
strings: t,
|
|
263
|
+
values: n
|
|
264
|
+
}), fe = P(1), pe = P(2), me = P(3), F = Symbol.for("lit-noChange"), I = Symbol.for("lit-nothing"), L = /* @__PURE__ */ new WeakMap(), R = w.createTreeWalker(w, 129);
|
|
265
|
+
function z(e, t) {
|
|
266
|
+
if (!D(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
267
|
+
return se === void 0 ? t : se.createHTML(t);
|
|
268
|
+
}
|
|
269
|
+
var B = (e, t) => {
|
|
270
|
+
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = A;
|
|
271
|
+
for (let t = 0; t < n; t++) {
|
|
272
|
+
let n = e[t], s, c, l = -1, u = 0;
|
|
273
|
+
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === A ? c[1] === "!--" ? o = le : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = j) : (N.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = j) : o = ue : o === j ? c[0] === ">" ? (o = i ?? A, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? j : c[3] === "\"" ? M : de) : o === M || o === de ? o = j : o === le || o === ue ? o = A : (o = j, i = void 0);
|
|
274
|
+
let d = o === j && e[t + 1].startsWith("/>") ? " " : "";
|
|
275
|
+
a += o === A ? n + ce : l >= 0 ? (r.push(s), n.slice(0, l) + x + n.slice(l) + S + d) : n + S + (l === -2 ? t : d);
|
|
276
|
+
}
|
|
277
|
+
return [z(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
278
|
+
}, V = class e {
|
|
279
|
+
constructor({ strings: t, _$litType$: n }, r) {
|
|
280
|
+
let i;
|
|
281
|
+
this.parts = [];
|
|
282
|
+
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = B(t, n);
|
|
283
|
+
if (this.el = e.createElement(l, r), R.currentNode = this.el.content, n === 2 || n === 3) {
|
|
284
|
+
let e = this.el.content.firstChild;
|
|
285
|
+
e.replaceWith(...e.childNodes);
|
|
286
|
+
}
|
|
287
|
+
for (; (i = R.nextNode()) !== null && c.length < s;) {
|
|
288
|
+
if (i.nodeType === 1) {
|
|
289
|
+
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(x)) {
|
|
290
|
+
let t = u[o++], n = i.getAttribute(e).split(S), r = /([.?@])?(.*)/.exec(t);
|
|
291
|
+
c.push({
|
|
292
|
+
type: 1,
|
|
293
|
+
index: a,
|
|
294
|
+
name: r[2],
|
|
295
|
+
strings: n,
|
|
296
|
+
ctor: r[1] === "." ? K : r[1] === "?" ? q : r[1] === "@" ? he : G
|
|
297
|
+
}), i.removeAttribute(e);
|
|
298
|
+
} else e.startsWith(S) && (c.push({
|
|
299
|
+
type: 6,
|
|
300
|
+
index: a
|
|
301
|
+
}), i.removeAttribute(e));
|
|
302
|
+
if (N.test(i.tagName)) {
|
|
303
|
+
let e = i.textContent.split(S), t = e.length - 1;
|
|
304
|
+
if (t > 0) {
|
|
305
|
+
i.textContent = b ? b.emptyScript : "";
|
|
306
|
+
for (let n = 0; n < t; n++) i.append(e[n], T()), R.nextNode(), c.push({
|
|
307
|
+
type: 2,
|
|
308
|
+
index: ++a
|
|
309
|
+
});
|
|
310
|
+
i.append(e[t], T());
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
} else if (i.nodeType === 8) {
|
|
314
|
+
if (i.data === C) c.push({
|
|
315
|
+
type: 2,
|
|
316
|
+
index: a
|
|
317
|
+
});
|
|
318
|
+
else {
|
|
319
|
+
let e = -1;
|
|
320
|
+
for (; (e = i.data.indexOf(S, e + 1)) !== -1;) c.push({
|
|
321
|
+
type: 7,
|
|
322
|
+
index: a
|
|
323
|
+
}), e += S.length - 1;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
a++;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
static createElement(e, t) {
|
|
330
|
+
let n = w.createElement("template");
|
|
331
|
+
return n.innerHTML = e, n;
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
function H(e, t, n = e, r) {
|
|
335
|
+
if (t === F) return t;
|
|
336
|
+
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = E(t) ? void 0 : t._$litDirective$;
|
|
337
|
+
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = H(e, i._$AS(e, t.values), i, r)), t;
|
|
338
|
+
}
|
|
339
|
+
var U = class {
|
|
340
|
+
constructor(e, t) {
|
|
341
|
+
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
342
|
+
}
|
|
343
|
+
get parentNode() {
|
|
344
|
+
return this._$AM.parentNode;
|
|
345
|
+
}
|
|
346
|
+
get _$AU() {
|
|
347
|
+
return this._$AM._$AU;
|
|
348
|
+
}
|
|
349
|
+
u(e) {
|
|
350
|
+
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? w).importNode(t, !0);
|
|
351
|
+
R.currentNode = r;
|
|
352
|
+
let i = R.nextNode(), a = 0, o = 0, s = n[0];
|
|
353
|
+
for (; s !== void 0;) {
|
|
354
|
+
if (a === s.index) {
|
|
355
|
+
let t;
|
|
356
|
+
s.type === 2 ? t = new W(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ge(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
357
|
+
}
|
|
358
|
+
a !== s?.index && (i = R.nextNode(), a++);
|
|
359
|
+
}
|
|
360
|
+
return R.currentNode = w, r;
|
|
361
|
+
}
|
|
362
|
+
p(e) {
|
|
363
|
+
let t = 0;
|
|
364
|
+
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
|
|
365
|
+
}
|
|
366
|
+
}, W = class e {
|
|
367
|
+
get _$AU() {
|
|
368
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
369
|
+
}
|
|
370
|
+
constructor(e, t, n, r) {
|
|
371
|
+
this.type = 2, this._$AH = I, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
372
|
+
}
|
|
373
|
+
get parentNode() {
|
|
374
|
+
let e = this._$AA.parentNode, t = this._$AM;
|
|
375
|
+
return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
|
|
376
|
+
}
|
|
377
|
+
get startNode() {
|
|
378
|
+
return this._$AA;
|
|
379
|
+
}
|
|
380
|
+
get endNode() {
|
|
381
|
+
return this._$AB;
|
|
382
|
+
}
|
|
383
|
+
_$AI(e, t = this) {
|
|
384
|
+
e = H(this, e, t), E(e) ? e === I || e == null || e === "" ? (this._$AH !== I && this._$AR(), this._$AH = I) : e !== this._$AH && e !== F && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? O(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
385
|
+
}
|
|
386
|
+
O(e) {
|
|
387
|
+
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
388
|
+
}
|
|
389
|
+
T(e) {
|
|
390
|
+
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
391
|
+
}
|
|
392
|
+
_(e) {
|
|
393
|
+
this._$AH !== I && E(this._$AH) ? this._$AA.nextSibling.data = e : this.T(w.createTextNode(e)), this._$AH = e;
|
|
394
|
+
}
|
|
395
|
+
$(e) {
|
|
396
|
+
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = V.createElement(z(n.h, n.h[0]), this.options)), n);
|
|
397
|
+
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
398
|
+
else {
|
|
399
|
+
let e = new U(r, this), n = e.u(this.options);
|
|
400
|
+
e.p(t), this.T(n), this._$AH = e;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
_$AC(e) {
|
|
404
|
+
let t = L.get(e.strings);
|
|
405
|
+
return t === void 0 && L.set(e.strings, t = new V(e)), t;
|
|
406
|
+
}
|
|
407
|
+
k(t) {
|
|
408
|
+
D(this._$AH) || (this._$AH = [], this._$AR());
|
|
409
|
+
let n = this._$AH, r, i = 0;
|
|
410
|
+
for (let a of t) i === n.length ? n.push(r = new e(this.O(T()), this.O(T()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
411
|
+
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
412
|
+
}
|
|
413
|
+
_$AR(e = this._$AA.nextSibling, t) {
|
|
414
|
+
for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
|
|
415
|
+
let t = oe(e).nextSibling;
|
|
416
|
+
oe(e).remove(), e = t;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
setConnected(e) {
|
|
420
|
+
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
421
|
+
}
|
|
422
|
+
}, G = class {
|
|
423
|
+
get tagName() {
|
|
424
|
+
return this.element.tagName;
|
|
425
|
+
}
|
|
426
|
+
get _$AU() {
|
|
427
|
+
return this._$AM._$AU;
|
|
428
|
+
}
|
|
429
|
+
constructor(e, t, n, r, i) {
|
|
430
|
+
this.type = 1, this._$AH = I, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = I;
|
|
431
|
+
}
|
|
432
|
+
_$AI(e, t = this, n, r) {
|
|
433
|
+
let i = this.strings, a = !1;
|
|
434
|
+
if (i === void 0) e = H(this, e, t, 0), a = !E(e) || e !== this._$AH && e !== F, a && (this._$AH = e);
|
|
435
|
+
else {
|
|
436
|
+
let r = e, o, s;
|
|
437
|
+
for (e = i[0], o = 0; o < i.length - 1; o++) s = H(this, r[n + o], t, o), s === F && (s = this._$AH[o]), a ||= !E(s) || s !== this._$AH[o], s === I ? e = I : e !== I && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
438
|
+
}
|
|
439
|
+
a && !r && this.j(e);
|
|
440
|
+
}
|
|
441
|
+
j(e) {
|
|
442
|
+
e === I ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
443
|
+
}
|
|
444
|
+
}, K = class extends G {
|
|
445
|
+
constructor() {
|
|
446
|
+
super(...arguments), this.type = 3;
|
|
447
|
+
}
|
|
448
|
+
j(e) {
|
|
449
|
+
this.element[this.name] = e === I ? void 0 : e;
|
|
450
|
+
}
|
|
451
|
+
}, q = class extends G {
|
|
452
|
+
constructor() {
|
|
453
|
+
super(...arguments), this.type = 4;
|
|
454
|
+
}
|
|
455
|
+
j(e) {
|
|
456
|
+
this.element.toggleAttribute(this.name, !!e && e !== I);
|
|
457
|
+
}
|
|
458
|
+
}, he = class extends G {
|
|
459
|
+
constructor(e, t, n, r, i) {
|
|
460
|
+
super(e, t, n, r, i), this.type = 5;
|
|
461
|
+
}
|
|
462
|
+
_$AI(e, t = this) {
|
|
463
|
+
if ((e = H(this, e, t, 0) ?? I) === F) return;
|
|
464
|
+
let n = this._$AH, r = e === I && n !== I || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== I && (n === I || r);
|
|
465
|
+
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
466
|
+
}
|
|
467
|
+
handleEvent(e) {
|
|
468
|
+
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
469
|
+
}
|
|
470
|
+
}, ge = class {
|
|
471
|
+
constructor(e, t, n) {
|
|
472
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
473
|
+
}
|
|
474
|
+
get _$AU() {
|
|
475
|
+
return this._$AM._$AU;
|
|
476
|
+
}
|
|
477
|
+
_$AI(e) {
|
|
478
|
+
H(this, e);
|
|
479
|
+
}
|
|
480
|
+
}, _e = {
|
|
481
|
+
M: x,
|
|
482
|
+
P: S,
|
|
483
|
+
A: C,
|
|
484
|
+
C: 1,
|
|
485
|
+
L: B,
|
|
486
|
+
R: U,
|
|
487
|
+
D: O,
|
|
488
|
+
V: H,
|
|
489
|
+
I: W,
|
|
490
|
+
H: G,
|
|
491
|
+
N: q,
|
|
492
|
+
U: he,
|
|
493
|
+
B: K,
|
|
494
|
+
F: ge
|
|
495
|
+
}, ve = y.litHtmlPolyfillSupport;
|
|
496
|
+
ve?.(V, W), (y.litHtmlVersions ??= []).push("3.3.3");
|
|
497
|
+
var ye = (e, t, n) => {
|
|
498
|
+
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
499
|
+
if (i === void 0) {
|
|
500
|
+
let e = n?.renderBefore ?? null;
|
|
501
|
+
r._$litPart$ = i = new W(t.insertBefore(T(), e), e, void 0, n ?? {});
|
|
502
|
+
}
|
|
503
|
+
return i._$AI(e), i;
|
|
504
|
+
}, J = globalThis, Y = class extends v {
|
|
505
|
+
constructor() {
|
|
506
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
507
|
+
}
|
|
508
|
+
createRenderRoot() {
|
|
509
|
+
let e = super.createRenderRoot();
|
|
510
|
+
return this.renderOptions.renderBefore ??= e.firstChild, e;
|
|
511
|
+
}
|
|
512
|
+
update(e) {
|
|
513
|
+
let t = this.render();
|
|
514
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ye(t, this.renderRoot, this.renderOptions);
|
|
515
|
+
}
|
|
516
|
+
connectedCallback() {
|
|
517
|
+
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
518
|
+
}
|
|
519
|
+
disconnectedCallback() {
|
|
520
|
+
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
521
|
+
}
|
|
522
|
+
render() {
|
|
523
|
+
return F;
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
Y._$litElement$ = !0, Y.finalized = !0, J.litElementHydrateSupport?.({ LitElement: Y });
|
|
527
|
+
var be = J.litElementPolyfillSupport;
|
|
528
|
+
be?.({ LitElement: Y }), (J.litElementVersions ??= []).push("4.2.2");
|
|
529
|
+
// node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js
|
|
530
|
+
var xe = {
|
|
531
|
+
attribute: !0,
|
|
532
|
+
type: String,
|
|
533
|
+
converter: h,
|
|
534
|
+
reflect: !1,
|
|
535
|
+
hasChanged: g
|
|
536
|
+
}, Se = (e = xe, t, n) => {
|
|
537
|
+
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
538
|
+
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
|
|
539
|
+
let { name: r } = n;
|
|
540
|
+
return {
|
|
541
|
+
set(n) {
|
|
542
|
+
let i = t.get.call(this);
|
|
543
|
+
t.set.call(this, n), this.requestUpdate(r, i, e, !0, n);
|
|
544
|
+
},
|
|
545
|
+
init(t) {
|
|
546
|
+
return t !== void 0 && this.C(r, void 0, e, t), t;
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
if (r === "setter") {
|
|
551
|
+
let { name: r } = n;
|
|
552
|
+
return function(n) {
|
|
553
|
+
let i = this[r];
|
|
554
|
+
t.call(this, n), this.requestUpdate(r, i, e, !0, n);
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
throw Error("Unsupported decorator location: " + r);
|
|
558
|
+
};
|
|
559
|
+
function X(e) {
|
|
560
|
+
return (t, n) => typeof n == "object" ? Se(e, t, n) : ((e, t, n) => {
|
|
561
|
+
let r = t.hasOwnProperty(n);
|
|
562
|
+
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
563
|
+
})(e, t, n);
|
|
564
|
+
}
|
|
565
|
+
// node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js
|
|
566
|
+
function Ce(e) {
|
|
567
|
+
return X({
|
|
568
|
+
...e,
|
|
569
|
+
state: !0,
|
|
570
|
+
attribute: !1
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
// src/base/light-dom-styles.ts
|
|
574
|
+
var Z = ":host", we = /* @__PURE__ */ new WeakMap(), Te = 1, Ee = 7;
|
|
575
|
+
function De(e, t) {
|
|
576
|
+
let n = "", r = 0;
|
|
577
|
+
for (; r < e.length;) {
|
|
578
|
+
let i = e.indexOf(Z, r);
|
|
579
|
+
if (i === -1) break;
|
|
580
|
+
n += e.slice(r, i);
|
|
581
|
+
let a = i + 5, o = e[a];
|
|
582
|
+
if (o === "(") {
|
|
583
|
+
let i = 0, o = a;
|
|
584
|
+
for (; o < e.length; o++) if (e[o] === "(") i++;
|
|
585
|
+
else if (e[o] === ")" && --i === 0) break;
|
|
586
|
+
if (o < e.length) {
|
|
587
|
+
n += t + e.slice(a + 1, o).trim(), r = o + 1;
|
|
588
|
+
continue;
|
|
589
|
+
}
|
|
590
|
+
n += Z, r = a;
|
|
591
|
+
} else o !== void 0 && /[\w-]/.test(o) ? (n += Z, r = a) : (n += t, r = a);
|
|
592
|
+
}
|
|
593
|
+
return n + e.slice(r);
|
|
594
|
+
}
|
|
595
|
+
function Oe(e) {
|
|
596
|
+
return typeof e == "object" && !!e && "cssRules" in e;
|
|
597
|
+
}
|
|
598
|
+
function ke(e, t) {
|
|
599
|
+
if (e) {
|
|
600
|
+
if (Array.isArray(e)) for (let n of e) ke(n, t);
|
|
601
|
+
else Oe(e) ? t.push([...e.cssRules].map((e) => e.cssText).join("\n")) : t.push(e.cssText);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
function Ae(e) {
|
|
605
|
+
let t = [], n = 0, r = 0;
|
|
606
|
+
for (let i = 0; i < e.length; i++) {
|
|
607
|
+
let a = e[i];
|
|
608
|
+
a === "(" || a === "[" ? n++ : a === ")" || a === "]" ? n-- : a === "," && n === 0 && (t.push(e.slice(r, i)), r = i + 1);
|
|
609
|
+
}
|
|
610
|
+
return t.push(e.slice(r)), t.map((e) => e.trim()).filter(Boolean);
|
|
611
|
+
}
|
|
612
|
+
function je(e, t) {
|
|
613
|
+
let n = "";
|
|
614
|
+
for (let r of e) {
|
|
615
|
+
let e = r.cssText;
|
|
616
|
+
if (r.type === Te) {
|
|
617
|
+
let i = r.selectorText, a = Ae(i).map((e) => e.startsWith(Z) ? De(e, t) : `${t} ${e}`).join(", ");
|
|
618
|
+
n += a + e.slice(e.indexOf("{"));
|
|
619
|
+
} else r.type !== Ee && "cssRules" in r ? n += `${e.slice(0, e.indexOf("{"))}{${je(r.cssRules, t)}}` : n += e;
|
|
620
|
+
}
|
|
621
|
+
return n;
|
|
622
|
+
}
|
|
623
|
+
function Me(e) {
|
|
624
|
+
return (e.ownerDocument ?? e).defaultView?.CSSStyleSheet ?? CSSStyleSheet;
|
|
625
|
+
}
|
|
626
|
+
function Ne(e, t, n = {}) {
|
|
627
|
+
let r = n.root ?? document, i = we.get(r) ?? /* @__PURE__ */ new Set();
|
|
628
|
+
if (i.has(e)) return !1;
|
|
629
|
+
let a = [];
|
|
630
|
+
ke(t, a);
|
|
631
|
+
let o = a.join("\n"), s = Me(r), c = o;
|
|
632
|
+
if (n.scope ?? !0) {
|
|
633
|
+
let t = new s();
|
|
634
|
+
t.replaceSync(o), c = je(t.cssRules, e);
|
|
635
|
+
}
|
|
636
|
+
let l = new s();
|
|
637
|
+
return l.replaceSync(n.layer ?? !0 ? `@layer uvalib{${c}}` : c), r.adoptedStyleSheets = [...r.adoptedStyleSheets, l], i.add(e), we.set(r, i), !0;
|
|
638
|
+
}
|
|
639
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
640
|
+
function Q(e, t, n, r) {
|
|
641
|
+
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
642
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
643
|
+
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
644
|
+
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
645
|
+
}
|
|
646
|
+
// src/base/UvalibElement.ts
|
|
647
|
+
var Pe = s`
|
|
648
|
+
:host {
|
|
649
|
+
color-scheme: var(--uva-color-scheme, light);
|
|
650
|
+
}
|
|
651
|
+
`, $ = class extends Y {
|
|
652
|
+
constructor(...e) {
|
|
653
|
+
super(...e), this.noShadowDom = !1, this.noStyle = !1;
|
|
654
|
+
}
|
|
655
|
+
static {
|
|
656
|
+
this.hostColorScheme = !0;
|
|
657
|
+
}
|
|
658
|
+
static finalizeStyles(e) {
|
|
659
|
+
let t = super.finalizeStyles(e);
|
|
660
|
+
return t.length && this.hostColorScheme ? [Pe, ...t] : t;
|
|
661
|
+
}
|
|
662
|
+
static {
|
|
663
|
+
this.shadowRootOptions = {
|
|
664
|
+
...Y.shadowRootOptions,
|
|
665
|
+
mode: "open"
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
get lightDom() {
|
|
669
|
+
return this._lightDom ?? !1;
|
|
670
|
+
}
|
|
671
|
+
createRenderRoot() {
|
|
672
|
+
if (this._lightDom ??= this.hasAttribute("no-shadow-dom") || this.noShadowDom, this.lightDom) return this;
|
|
673
|
+
let e = super.createRenderRoot();
|
|
674
|
+
return this.noStyle && (e.adoptedStyleSheets = []), e;
|
|
675
|
+
}
|
|
676
|
+
connectedCallback() {
|
|
677
|
+
if (super.connectedCallback(), this.lightDom && !this.noStyle) {
|
|
678
|
+
let e = this.getRootNode();
|
|
679
|
+
this.installLightStyles(e instanceof ShadowRoot || e instanceof Document ? e : void 0);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
installLightStyles(e) {
|
|
683
|
+
Ne(this.localName, this.constructor.elementStyles, { root: e });
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
Q([X({
|
|
687
|
+
type: Boolean,
|
|
688
|
+
attribute: "no-shadow-dom"
|
|
689
|
+
})], $.prototype, "noShadowDom", void 0), Q([X({
|
|
690
|
+
type: Boolean,
|
|
691
|
+
attribute: "no-style"
|
|
692
|
+
})], $.prototype, "noStyle", void 0);
|
|
693
|
+
export { X as a, me as c, pe as d, s as f, Ce as i, fe as l, e as m, Q as n, I as o, o as p, Ne as r, F as s, $ as t, _e as u };
|
|
694
|
+
|
|
695
|
+
//# sourceMappingURL=UvalibElement-BnI-eRRR.js.map
|