@epigraph/epigraph-std-lib 5.0.0-alpha.14 → 5.0.0-alpha.16

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 (41) hide show
  1. package/README.md +68 -68
  2. package/dist/Epigraph/epigraph.cjs +1 -1
  3. package/dist/Epigraph/epigraph.js +94 -126
  4. package/dist/Epigraph/epigraphBaseSolutions.cjs +1 -1
  5. package/dist/Epigraph/epigraphBaseSolutions.js +60 -68
  6. package/dist/EpigraphLibs/EpigraphAnalytics/consent-plugins/auto-consent-resolver.d.ts +21 -0
  7. package/dist/EpigraphLibs/EpigraphAnalytics/consent-plugins/one-trust-consent-plugin.d.ts +1 -0
  8. package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.cjs +1 -16
  9. package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.d.ts +14 -5
  10. package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.js +2 -1057
  11. package/dist/EpigraphLibs/EpigraphAnalytics/plugins/ga4-analytics-plugin.d.ts +6 -0
  12. package/dist/EpigraphLibs/EpigraphAnalytics/plugins/nexus-analytics-plugin.d.ts +1 -0
  13. package/dist/EpigraphLibs/EpigraphLogger/epigraphLogger.cjs +1 -1
  14. package/dist/EpigraphLibs/EpigraphLogger/epigraphLogger.js +74 -198
  15. package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.cjs +1 -1
  16. package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.js +197 -425
  17. package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.cjs +1 -7
  18. package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.js +2 -78
  19. package/dist/EpigraphLibs/EpigraphResultFactory/epigraphResultFactory.cjs +1 -1
  20. package/dist/EpigraphLibs/EpigraphResultFactory/epigraphResultFactory.js +24 -26
  21. package/dist/EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.cjs +1 -1
  22. package/dist/EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.js +2 -88
  23. package/dist/EpigraphLibs/EpigraphUrlProcessor/epigraphUrlProcessor.cjs +1 -1
  24. package/dist/EpigraphLibs/EpigraphUrlProcessor/epigraphUrlProcessor.js +44 -75
  25. package/dist/enums-BSSe4NAs.js +8 -0
  26. package/dist/enums-PfFMiIoe.cjs +1 -0
  27. package/dist/epigraph-std-lib.cjs +1 -1
  28. package/dist/epigraph-std-lib.js +11 -74
  29. package/dist/epigraphAnalytics-CADAVr-I.cjs +1 -0
  30. package/dist/epigraphAnalytics-Dv5dGbcW.js +851 -0
  31. package/dist/epigraphQrCodeGenerator-BXUNL2XK.js +54 -0
  32. package/dist/epigraphQrCodeGenerator-F2eLrPC_.cjs +7 -0
  33. package/dist/epigraphUnitsConverter-CwpmWl7p.cjs +1 -0
  34. package/dist/epigraphUnitsConverter-DsX4Rmsp.js +66 -0
  35. package/dist/lit--5TUYSGn.js +508 -0
  36. package/dist/lit-DZtv4Pds.cjs +2 -0
  37. package/package.json +40 -40
  38. package/dist/enums-1vqWxJ0i.cjs +0 -1
  39. package/dist/enums-CvOTKyNu.js +0 -5
  40. package/dist/lit-element-C3moVMGu.js +0 -524
  41. package/dist/lit-element-CYaaFRfk.cjs +0 -19
@@ -0,0 +1,54 @@
1
+ import { n as e, r as t, t as n } from "./lit--5TUYSGn.js";
2
+ import { query as r } from "lit/decorators.js";
3
+ import i from "qr-creator";
4
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
5
+ function a(e, t, n, r) {
6
+ var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
7
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
8
+ 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);
9
+ return i > 3 && a && Object.defineProperty(t, n, a), a;
10
+ }
11
+ //#endregion
12
+ //#region lib/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.ts
13
+ var o = class extends n {
14
+ static {
15
+ this.webComponentName = "epigraph-qr-code-generator";
16
+ }
17
+ static {
18
+ this.styles = t`
19
+ :host {
20
+ display: none;
21
+ }
22
+ `;
23
+ }
24
+ get qrCodeGenCanvasRef() {
25
+ return this._qrCodeGenCanvasRef;
26
+ }
27
+ dataUritoBlob(e) {
28
+ let t = e.split(",");
29
+ if (t.length !== 2) throw Error("Invalid data URI format");
30
+ let n = t[0].split(":")[1].split(";")[0], r = atob(t[1]), i = new Uint8Array(Array.from(r, (e) => e.charCodeAt(0)));
31
+ return new Blob([i], { type: n });
32
+ }
33
+ generateQrCode(e = {
34
+ text: "www.epigraph.us",
35
+ radius: .5,
36
+ ecLevel: "H",
37
+ fill: "black",
38
+ background: null,
39
+ size: 256
40
+ }) {
41
+ if (!this._qrCodeGenCanvasRef) return "";
42
+ i.render(e, this._qrCodeGenCanvasRef);
43
+ let t = this._qrCodeGenCanvasRef.toDataURL(), n = this.dataUritoBlob(t);
44
+ return URL.createObjectURL(n);
45
+ }
46
+ render() {
47
+ return e`
48
+ <canvas id="qrCodeCanvas"></canvas>
49
+ `;
50
+ }
51
+ };
52
+ a([r("#qrCodeCanvas")], o.prototype, "_qrCodeGenCanvasRef", void 0), window.customElements.get(o.webComponentName) === void 0 && window.customElements.define(o.webComponentName, o);
53
+ //#endregion
54
+ export { o as t };
@@ -0,0 +1,7 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require("./lit-DZtv4Pds.cjs");let l=require("lit/decorators.js"),u=require("qr-creator");u=s(u,1);function d(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);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);return i>3&&a&&Object.defineProperty(t,n,a),a}var f=class extends c.t{static{this.webComponentName=`epigraph-qr-code-generator`}static{this.styles=c.r`
2
+ :host {
3
+ display: none;
4
+ }
5
+ `}get qrCodeGenCanvasRef(){return this._qrCodeGenCanvasRef}dataUritoBlob(e){let t=e.split(`,`);if(t.length!==2)throw Error(`Invalid data URI format`);let n=t[0].split(`:`)[1].split(`;`)[0],r=atob(t[1]),i=new Uint8Array(Array.from(r,e=>e.charCodeAt(0)));return new Blob([i],{type:n})}generateQrCode(e={text:`www.epigraph.us`,radius:.5,ecLevel:`H`,fill:`black`,background:null,size:256}){if(!this._qrCodeGenCanvasRef)return``;u.default.render(e,this._qrCodeGenCanvasRef);let t=this._qrCodeGenCanvasRef.toDataURL(),n=this.dataUritoBlob(t);return URL.createObjectURL(n)}render(){return c.n`
6
+ <canvas id="qrCodeCanvas"></canvas>
7
+ `}};d([(0,l.query)(`#qrCodeCanvas`)],f.prototype,`_qrCodeGenCanvasRef`,void 0),window.customElements.get(f.webComponentName)===void 0&&window.customElements.define(f.webComponentName,f),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
@@ -0,0 +1 @@
1
+ var e=function(e){return e.RAW=`raw`,e.DISTANCE=`distance`,e.WEIGHT=`weight`,e}({}),t=function(e){return e.millimeter=`mm`,e.centimeter=`cm`,e.decimeter=`dm`,e.meter=`m`,e.decameter=`dam`,e.hectometer=`hm`,e.kilometer=`km`,e.inch=`in`,e.foot=`ft`,e.yard=`yd`,e.mile=`mi`,e}({}),n={};n[`${t.millimeter}-${t.meter}`]=.001,n[`${t.meter}-${t.millimeter}`]=1e3,n[`${t.centimeter}-${t.meter}`]=.01,n[`${t.meter}-${t.centimeter}`]=100,n[`${t.decimeter}-${t.meter}`]=.1,n[`${t.meter}-${t.decimeter}`]=10,n[`${t.meter}-${t.meter}`]=1,n[`${t.decameter}-${t.meter}`]=10,n[`${t.meter}-${t.decameter}`]=.1,n[`${t.hectometer}-${t.meter}`]=100,n[`${t.meter}-${t.hectometer}`]=.01,n[`${t.kilometer}-${t.meter}`]=1e3,n[`${t.meter}-${t.kilometer}`]=.001,n[`${t.inch}-${t.meter}`]=.0254,n[`${t.meter}-${t.inch}`]=39.3701,n[`${t.foot}-${t.meter}`]=.3048,n[`${t.meter}-${t.foot}`]=3.28084,n[`${t.yard}-${t.meter}`]=.9144,n[`${t.meter}-${t.yard}`]=1.09361,n[`${t.mile}-${t.meter}`]=1609.34,n[`${t.meter}-${t.mile}`]=621371e-9;var r=class r{constructor(n,i){if(this._type=e.DISTANCE,this._rawValue=n,this._rawValueUnit=i,i!==t.meter){let e=r.convert(this._rawValue,i,t.meter);this._rawValue=e.value,this._rawValueUnit=e.valueUnit}}get type(){return this._type}static buildConvertedUnitResult(e,t){return{value:e,valueUnit:t,valueWithUnit:`${e.toFixed(2)}${t}`}}static convert(e,t,i){let a=e,o=i;return t===i||(a=e*n[`${t}-${i}`]),r.buildConvertedUnitResult(a,o)}get inMillimeters(){return r.convert(this._rawValue,this._rawValueUnit,t.millimeter)}get inCentimeters(){return r.convert(this._rawValue,this._rawValueUnit,t.centimeter)}get inDecimeters(){return r.convert(this._rawValue,this._rawValueUnit,t.decimeter)}get inMeters(){return r.convert(this._rawValue,this._rawValueUnit,t.meter)}get inDecameters(){return r.convert(this._rawValue,this._rawValueUnit,t.decameter)}get inHectometers(){return r.convert(this._rawValue,this._rawValueUnit,t.hectometer)}get inKilometers(){return r.convert(this._rawValue,this._rawValueUnit,t.kilometer)}get inInches(){return r.convert(this._rawValue,this._rawValueUnit,t.inch)}get inFeet(){return r.convert(this._rawValue,this._rawValueUnit,t.foot)}get inYard(){return r.convert(this._rawValue,this._rawValueUnit,t.yard)}get inMiles(){return r.convert(this._rawValue,this._rawValueUnit,t.mile)}};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
@@ -0,0 +1,66 @@
1
+ //#region lib/EpigraphLibs/EpigraphUnitsConverter/enums.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.RAW = "raw", e.DISTANCE = "distance", e.WEIGHT = "weight", e;
4
+ }({}), t = /* @__PURE__ */ function(e) {
5
+ return e.millimeter = "mm", e.centimeter = "cm", e.decimeter = "dm", e.meter = "m", e.decameter = "dam", e.hectometer = "hm", e.kilometer = "km", e.inch = "in", e.foot = "ft", e.yard = "yd", e.mile = "mi", e;
6
+ }({}), n = {};
7
+ n[`${t.millimeter}-${t.meter}`] = .001, n[`${t.meter}-${t.millimeter}`] = 1e3, n[`${t.centimeter}-${t.meter}`] = .01, n[`${t.meter}-${t.centimeter}`] = 100, n[`${t.decimeter}-${t.meter}`] = .1, n[`${t.meter}-${t.decimeter}`] = 10, n[`${t.meter}-${t.meter}`] = 1, n[`${t.decameter}-${t.meter}`] = 10, n[`${t.meter}-${t.decameter}`] = .1, n[`${t.hectometer}-${t.meter}`] = 100, n[`${t.meter}-${t.hectometer}`] = .01, n[`${t.kilometer}-${t.meter}`] = 1e3, n[`${t.meter}-${t.kilometer}`] = .001, n[`${t.inch}-${t.meter}`] = .0254, n[`${t.meter}-${t.inch}`] = 39.3701, n[`${t.foot}-${t.meter}`] = .3048, n[`${t.meter}-${t.foot}`] = 3.28084, n[`${t.yard}-${t.meter}`] = .9144, n[`${t.meter}-${t.yard}`] = 1.09361, n[`${t.mile}-${t.meter}`] = 1609.34, n[`${t.meter}-${t.mile}`] = 621371e-9;
8
+ //#endregion
9
+ //#region lib/EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.ts
10
+ var r = class r {
11
+ constructor(n, i) {
12
+ if (this._type = e.DISTANCE, this._rawValue = n, this._rawValueUnit = i, i !== t.meter) {
13
+ let e = r.convert(this._rawValue, i, t.meter);
14
+ this._rawValue = e.value, this._rawValueUnit = e.valueUnit;
15
+ }
16
+ }
17
+ get type() {
18
+ return this._type;
19
+ }
20
+ static buildConvertedUnitResult(e, t) {
21
+ return {
22
+ value: e,
23
+ valueUnit: t,
24
+ valueWithUnit: `${e.toFixed(2)}${t}`
25
+ };
26
+ }
27
+ static convert(e, t, i) {
28
+ let a = e, o = i;
29
+ return t === i || (a = e * n[`${t}-${i}`]), r.buildConvertedUnitResult(a, o);
30
+ }
31
+ get inMillimeters() {
32
+ return r.convert(this._rawValue, this._rawValueUnit, t.millimeter);
33
+ }
34
+ get inCentimeters() {
35
+ return r.convert(this._rawValue, this._rawValueUnit, t.centimeter);
36
+ }
37
+ get inDecimeters() {
38
+ return r.convert(this._rawValue, this._rawValueUnit, t.decimeter);
39
+ }
40
+ get inMeters() {
41
+ return r.convert(this._rawValue, this._rawValueUnit, t.meter);
42
+ }
43
+ get inDecameters() {
44
+ return r.convert(this._rawValue, this._rawValueUnit, t.decameter);
45
+ }
46
+ get inHectometers() {
47
+ return r.convert(this._rawValue, this._rawValueUnit, t.hectometer);
48
+ }
49
+ get inKilometers() {
50
+ return r.convert(this._rawValue, this._rawValueUnit, t.kilometer);
51
+ }
52
+ get inInches() {
53
+ return r.convert(this._rawValue, this._rawValueUnit, t.inch);
54
+ }
55
+ get inFeet() {
56
+ return r.convert(this._rawValue, this._rawValueUnit, t.foot);
57
+ }
58
+ get inYard() {
59
+ return r.convert(this._rawValue, this._rawValueUnit, t.yard);
60
+ }
61
+ get inMiles() {
62
+ return r.convert(this._rawValue, this._rawValueUnit, t.mile);
63
+ }
64
+ };
65
+ //#endregion
66
+ export { t as n, e as r, r as t };
@@ -0,0 +1,508 @@
1
+ //#region node_modules/@lit/reactive-element/css-tag.js
2
+ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, n = Symbol(), r = /* @__PURE__ */ new WeakMap(), i = class {
3
+ constructor(e, t, r) {
4
+ if (this._$cssResult$ = !0, r !== n) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
5
+ this.cssText = e, this.t = t;
6
+ }
7
+ get styleSheet() {
8
+ let e = this.o, n = this.t;
9
+ if (t && e === void 0) {
10
+ let t = n !== void 0 && n.length === 1;
11
+ t && (e = r.get(n)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), t && r.set(n, e));
12
+ }
13
+ return e;
14
+ }
15
+ toString() {
16
+ return this.cssText;
17
+ }
18
+ }, a = (e) => new i(typeof e == "string" ? e : e + "", void 0, n), o = (e, ...t) => new i(e.length === 1 ? e[0] : t.reduce(((t, n, r) => t + ((e) => {
19
+ if (!0 === e._$cssResult$) return e.cssText;
20
+ if (typeof e == "number") return e;
21
+ 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.");
22
+ })(n) + e[r + 1]), e[0]), e, n), s = (n, r) => {
23
+ if (t) n.adoptedStyleSheets = r.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
24
+ else for (let t of r) {
25
+ let r = document.createElement("style"), i = e.litNonce;
26
+ i !== void 0 && r.setAttribute("nonce", i), r.textContent = t.cssText, n.appendChild(r);
27
+ }
28
+ }, c = t ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
29
+ let t = "";
30
+ for (let n of e.cssRules) t += n.cssText;
31
+ return a(t);
32
+ })(e) : e, { is: l, defineProperty: u, getOwnPropertyDescriptor: d, getOwnPropertyNames: ee, getOwnPropertySymbols: te, getPrototypeOf: f } = Object, p = globalThis, m = p.trustedTypes, h = m ? m.emptyScript : "", g = p.reactiveElementPolyfillSupport, _ = (e, t) => e, v = {
33
+ toAttribute(e, t) {
34
+ switch (t) {
35
+ case Boolean:
36
+ e = e ? h : null;
37
+ break;
38
+ case Object:
39
+ case Array: e = e == null ? e : JSON.stringify(e);
40
+ }
41
+ return e;
42
+ },
43
+ fromAttribute(e, t) {
44
+ let n = e;
45
+ switch (t) {
46
+ case Boolean:
47
+ n = e !== null;
48
+ break;
49
+ case Number:
50
+ n = e === null ? null : Number(e);
51
+ break;
52
+ case Object:
53
+ case Array: try {
54
+ n = JSON.parse(e);
55
+ } catch {
56
+ n = null;
57
+ }
58
+ }
59
+ return n;
60
+ }
61
+ }, y = (e, t) => !l(e, t), b = {
62
+ attribute: !0,
63
+ type: String,
64
+ converter: v,
65
+ reflect: !1,
66
+ useDefault: !1,
67
+ hasChanged: y
68
+ };
69
+ Symbol.metadata ??= Symbol("metadata"), p.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
70
+ var x = class extends HTMLElement {
71
+ static addInitializer(e) {
72
+ this._$Ei(), (this.l ??= []).push(e);
73
+ }
74
+ static get observedAttributes() {
75
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
76
+ }
77
+ static createProperty(e, t = b) {
78
+ 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) {
79
+ let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
80
+ r !== void 0 && u(this.prototype, e, r);
81
+ }
82
+ }
83
+ static getPropertyDescriptor(e, t, n) {
84
+ let { get: r, set: i } = d(this.prototype, e) ?? {
85
+ get() {
86
+ return this[t];
87
+ },
88
+ set(e) {
89
+ this[t] = e;
90
+ }
91
+ };
92
+ return {
93
+ get: r,
94
+ set(t) {
95
+ let a = r?.call(this);
96
+ i?.call(this, t), this.requestUpdate(e, a, n);
97
+ },
98
+ configurable: !0,
99
+ enumerable: !0
100
+ };
101
+ }
102
+ static getPropertyOptions(e) {
103
+ return this.elementProperties.get(e) ?? b;
104
+ }
105
+ static _$Ei() {
106
+ if (this.hasOwnProperty(_("elementProperties"))) return;
107
+ let e = f(this);
108
+ e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
+ }
110
+ static finalize() {
111
+ if (this.hasOwnProperty(_("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(_("properties"))) {
113
+ let e = this.properties, t = [...ee(e), ...te(e)];
114
+ for (let n of t) this.createProperty(n, e[n]);
115
+ }
116
+ let e = this[Symbol.metadata];
117
+ if (e !== null) {
118
+ let t = litPropertyMetadata.get(e);
119
+ if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
120
+ }
121
+ this._$Eh = /* @__PURE__ */ new Map();
122
+ for (let [e, t] of this.elementProperties) {
123
+ let n = this._$Eu(e, t);
124
+ n !== void 0 && this._$Eh.set(n, e);
125
+ }
126
+ this.elementStyles = this.finalizeStyles(this.styles);
127
+ }
128
+ static finalizeStyles(e) {
129
+ let t = [];
130
+ if (Array.isArray(e)) {
131
+ let n = new Set(e.flat(Infinity).reverse());
132
+ for (let e of n) t.unshift(c(e));
133
+ } else e !== void 0 && t.push(c(e));
134
+ return t;
135
+ }
136
+ static _$Eu(e, t) {
137
+ let n = t.attribute;
138
+ return !1 === n ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
139
+ }
140
+ constructor() {
141
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
142
+ }
143
+ _$Ev() {
144
+ this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
145
+ }
146
+ addController(e) {
147
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
148
+ }
149
+ removeController(e) {
150
+ this._$EO?.delete(e);
151
+ }
152
+ _$E_() {
153
+ let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
154
+ for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
155
+ e.size > 0 && (this._$Ep = e);
156
+ }
157
+ createRenderRoot() {
158
+ let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
159
+ return s(e, this.constructor.elementStyles), e;
160
+ }
161
+ connectedCallback() {
162
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
163
+ }
164
+ enableUpdating(e) {}
165
+ disconnectedCallback() {
166
+ this._$EO?.forEach(((e) => e.hostDisconnected?.()));
167
+ }
168
+ attributeChangedCallback(e, t, n) {
169
+ this._$AK(e, n);
170
+ }
171
+ _$ET(e, t) {
172
+ let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
173
+ if (r !== void 0 && !0 === n.reflect) {
174
+ let i = (n.converter?.toAttribute === void 0 ? v : n.converter).toAttribute(t, n.type);
175
+ this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
176
+ }
177
+ }
178
+ _$AK(e, t) {
179
+ let n = this.constructor, r = n._$Eh.get(e);
180
+ if (r !== void 0 && this._$Em !== r) {
181
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? v : e.converter;
182
+ this._$Em = r, this[r] = i.fromAttribute(t, e.type) ?? this._$Ej?.get(r) ?? null, this._$Em = null;
183
+ }
184
+ }
185
+ requestUpdate(e, t, n) {
186
+ if (e !== void 0) {
187
+ let r = this.constructor, i = this[e];
188
+ if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? y)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
189
+ this.C(e, t, n);
190
+ }
191
+ !1 === this.isUpdatePending && (this._$ES = this._$EP());
192
+ }
193
+ C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
194
+ 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));
195
+ }
196
+ async _$EP() {
197
+ this.isUpdatePending = !0;
198
+ try {
199
+ await this._$ES;
200
+ } catch (e) {
201
+ Promise.reject(e);
202
+ }
203
+ let e = this.scheduleUpdate();
204
+ return e != null && await e, !this.isUpdatePending;
205
+ }
206
+ scheduleUpdate() {
207
+ return this.performUpdate();
208
+ }
209
+ performUpdate() {
210
+ if (!this.isUpdatePending) return;
211
+ if (!this.hasUpdated) {
212
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
213
+ for (let [e, t] of this._$Ep) this[e] = t;
214
+ this._$Ep = void 0;
215
+ }
216
+ let e = this.constructor.elementProperties;
217
+ if (e.size > 0) for (let [t, n] of e) {
218
+ let { wrapped: e } = n, r = this[t];
219
+ !0 !== e || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
220
+ }
221
+ }
222
+ let e = !1, t = this._$AL;
223
+ try {
224
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((e) => e.hostUpdate?.())), this.update(t)) : this._$EM();
225
+ } catch (t) {
226
+ throw e = !1, this._$EM(), t;
227
+ }
228
+ e && this._$AE(t);
229
+ }
230
+ willUpdate(e) {}
231
+ _$AE(e) {
232
+ this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
233
+ }
234
+ _$EM() {
235
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
236
+ }
237
+ get updateComplete() {
238
+ return this.getUpdateComplete();
239
+ }
240
+ getUpdateComplete() {
241
+ return this._$ES;
242
+ }
243
+ shouldUpdate(e) {
244
+ return !0;
245
+ }
246
+ update(e) {
247
+ this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
248
+ }
249
+ updated(e) {}
250
+ firstUpdated(e) {}
251
+ };
252
+ x.elementStyles = [], x.shadowRootOptions = { mode: "open" }, x[_("elementProperties")] = /* @__PURE__ */ new Map(), x[_("finalized")] = /* @__PURE__ */ new Map(), g?.({ ReactiveElement: x }), (p.reactiveElementVersions ??= []).push("2.1.0");
253
+ //#endregion
254
+ //#region node_modules/lit-html/lit-html.js
255
+ var S = globalThis, C = S.trustedTypes, w = C ? C.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, T = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, D = "?" + E, ne = `<${D}>`, O = document, k = () => O.createComment(""), A = (e) => e === null || typeof e != "object" && typeof e != "function", j = Array.isArray, re = (e) => j(e) || typeof e?.[Symbol.iterator] == "function", M = "[ \n\f\r]", N = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, P = /-->/g, F = />/g, I = RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), L = /'/g, R = /"/g, z = /^(?:script|style|textarea|title)$/i, ie = ((e) => (t, ...n) => ({
256
+ _$litType$: e,
257
+ strings: t,
258
+ values: n
259
+ }))(1), B = Symbol.for("lit-noChange"), V = Symbol.for("lit-nothing"), H = /* @__PURE__ */ new WeakMap(), U = O.createTreeWalker(O, 129);
260
+ function W(e, t) {
261
+ if (!j(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
262
+ return w === void 0 ? t : w.createHTML(t);
263
+ }
264
+ var G = (e, t) => {
265
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = N;
266
+ for (let t = 0; t < n; t++) {
267
+ let n = e[t], s, c, l = -1, u = 0;
268
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === N ? c[1] === "!--" ? o = P : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = I) : (z.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = I) : o = F : o === I ? c[0] === ">" ? (o = i ?? N, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? I : c[3] === "\"" ? R : L) : o === R || o === L ? o = I : o === P || o === F ? o = N : (o = I, i = void 0);
269
+ let d = o === I && e[t + 1].startsWith("/>") ? " " : "";
270
+ a += o === N ? n + ne : l >= 0 ? (r.push(s), n.slice(0, l) + T + n.slice(l) + E + d) : n + E + (l === -2 ? t : d);
271
+ }
272
+ return [W(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
273
+ }, K = class e {
274
+ constructor({ strings: t, _$litType$: n }, r) {
275
+ let i;
276
+ this.parts = [];
277
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = G(t, n);
278
+ if (this.el = e.createElement(l, r), U.currentNode = this.el.content, n === 2 || n === 3) {
279
+ let e = this.el.content.firstChild;
280
+ e.replaceWith(...e.childNodes);
281
+ }
282
+ for (; (i = U.nextNode()) !== null && c.length < s;) {
283
+ if (i.nodeType === 1) {
284
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(T)) {
285
+ let t = u[o++], n = i.getAttribute(e).split(E), r = /([.?@])?(.*)/.exec(t);
286
+ c.push({
287
+ type: 1,
288
+ index: a,
289
+ name: r[2],
290
+ strings: n,
291
+ ctor: r[1] === "." ? Z : r[1] === "?" ? ae : r[1] === "@" ? oe : X
292
+ }), i.removeAttribute(e);
293
+ } else e.startsWith(E) && (c.push({
294
+ type: 6,
295
+ index: a
296
+ }), i.removeAttribute(e));
297
+ if (z.test(i.tagName)) {
298
+ let e = i.textContent.split(E), t = e.length - 1;
299
+ if (t > 0) {
300
+ i.textContent = C ? C.emptyScript : "";
301
+ for (let n = 0; n < t; n++) i.append(e[n], k()), U.nextNode(), c.push({
302
+ type: 2,
303
+ index: ++a
304
+ });
305
+ i.append(e[t], k());
306
+ }
307
+ }
308
+ } else if (i.nodeType === 8) if (i.data === D) c.push({
309
+ type: 2,
310
+ index: a
311
+ });
312
+ else {
313
+ let e = -1;
314
+ for (; (e = i.data.indexOf(E, e + 1)) !== -1;) c.push({
315
+ type: 7,
316
+ index: a
317
+ }), e += E.length - 1;
318
+ }
319
+ a++;
320
+ }
321
+ }
322
+ static createElement(e, t) {
323
+ let n = O.createElement("template");
324
+ return n.innerHTML = e, n;
325
+ }
326
+ };
327
+ function q(e, t, n = e, r) {
328
+ if (t === B) return t;
329
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = A(t) ? void 0 : t._$litDirective$;
330
+ 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 = q(e, i._$AS(e, t.values), i, r)), t;
331
+ }
332
+ var J = class {
333
+ constructor(e, t) {
334
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
335
+ }
336
+ get parentNode() {
337
+ return this._$AM.parentNode;
338
+ }
339
+ get _$AU() {
340
+ return this._$AM._$AU;
341
+ }
342
+ u(e) {
343
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? O).importNode(t, !0);
344
+ U.currentNode = r;
345
+ let i = U.nextNode(), a = 0, o = 0, s = n[0];
346
+ for (; s !== void 0;) {
347
+ if (a === s.index) {
348
+ let t;
349
+ s.type === 2 ? t = new Y(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new se(i, this, e)), this._$AV.push(t), s = n[++o];
350
+ }
351
+ a !== s?.index && (i = U.nextNode(), a++);
352
+ }
353
+ return U.currentNode = O, r;
354
+ }
355
+ p(e) {
356
+ let t = 0;
357
+ 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++;
358
+ }
359
+ }, Y = class e {
360
+ get _$AU() {
361
+ return this._$AM?._$AU ?? this._$Cv;
362
+ }
363
+ constructor(e, t, n, r) {
364
+ this.type = 2, this._$AH = V, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
365
+ }
366
+ get parentNode() {
367
+ let e = this._$AA.parentNode, t = this._$AM;
368
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
369
+ }
370
+ get startNode() {
371
+ return this._$AA;
372
+ }
373
+ get endNode() {
374
+ return this._$AB;
375
+ }
376
+ _$AI(e, t = this) {
377
+ e = q(this, e, t), A(e) ? e === V || e == null || e === "" ? (this._$AH !== V && this._$AR(), this._$AH = V) : e !== this._$AH && e !== B && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? re(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
378
+ }
379
+ O(e) {
380
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
381
+ }
382
+ T(e) {
383
+ this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
384
+ }
385
+ _(e) {
386
+ this._$AH !== V && A(this._$AH) ? this._$AA.nextSibling.data = e : this.T(O.createTextNode(e)), this._$AH = e;
387
+ }
388
+ $(e) {
389
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = K.createElement(W(n.h, n.h[0]), this.options)), n);
390
+ if (this._$AH?._$AD === r) this._$AH.p(t);
391
+ else {
392
+ let e = new J(r, this), n = e.u(this.options);
393
+ e.p(t), this.T(n), this._$AH = e;
394
+ }
395
+ }
396
+ _$AC(e) {
397
+ let t = H.get(e.strings);
398
+ return t === void 0 && H.set(e.strings, t = new K(e)), t;
399
+ }
400
+ k(t) {
401
+ j(this._$AH) || (this._$AH = [], this._$AR());
402
+ let n = this._$AH, r, i = 0;
403
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(k()), this.O(k()), this, this.options)) : r = n[i], r._$AI(a), i++;
404
+ i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
405
+ }
406
+ _$AR(e = this._$AA.nextSibling, t) {
407
+ for (this._$AP?.(!1, !0, t); e && e !== this._$AB;) {
408
+ let t = e.nextSibling;
409
+ e.remove(), e = t;
410
+ }
411
+ }
412
+ setConnected(e) {
413
+ this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
414
+ }
415
+ }, X = class {
416
+ get tagName() {
417
+ return this.element.tagName;
418
+ }
419
+ get _$AU() {
420
+ return this._$AM._$AU;
421
+ }
422
+ constructor(e, t, n, r, i) {
423
+ this.type = 1, this._$AH = V, 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 = V;
424
+ }
425
+ _$AI(e, t = this, n, r) {
426
+ let i = this.strings, a = !1;
427
+ if (i === void 0) e = q(this, e, t, 0), a = !A(e) || e !== this._$AH && e !== B, a && (this._$AH = e);
428
+ else {
429
+ let r = e, o, s;
430
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = q(this, r[n + o], t, o), s === B && (s = this._$AH[o]), a ||= !A(s) || s !== this._$AH[o], s === V ? e = V : e !== V && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
431
+ }
432
+ a && !r && this.j(e);
433
+ }
434
+ j(e) {
435
+ e === V ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
436
+ }
437
+ }, Z = class extends X {
438
+ constructor() {
439
+ super(...arguments), this.type = 3;
440
+ }
441
+ j(e) {
442
+ this.element[this.name] = e === V ? void 0 : e;
443
+ }
444
+ }, ae = class extends X {
445
+ constructor() {
446
+ super(...arguments), this.type = 4;
447
+ }
448
+ j(e) {
449
+ this.element.toggleAttribute(this.name, !!e && e !== V);
450
+ }
451
+ }, oe = class extends X {
452
+ constructor(e, t, n, r, i) {
453
+ super(e, t, n, r, i), this.type = 5;
454
+ }
455
+ _$AI(e, t = this) {
456
+ if ((e = q(this, e, t, 0) ?? V) === B) return;
457
+ let n = this._$AH, r = e === V && n !== V || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== V && (n === V || r);
458
+ r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
459
+ }
460
+ handleEvent(e) {
461
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
462
+ }
463
+ }, se = class {
464
+ constructor(e, t, n) {
465
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
466
+ }
467
+ get _$AU() {
468
+ return this._$AM._$AU;
469
+ }
470
+ _$AI(e) {
471
+ q(this, e);
472
+ }
473
+ }, ce = S.litHtmlPolyfillSupport;
474
+ ce?.(K, Y), (S.litHtmlVersions ??= []).push("3.3.0");
475
+ var le = (e, t, n) => {
476
+ let r = n?.renderBefore ?? t, i = r._$litPart$;
477
+ if (i === void 0) {
478
+ let e = n?.renderBefore ?? null;
479
+ r._$litPart$ = i = new Y(t.insertBefore(k(), e), e, void 0, n ?? {});
480
+ }
481
+ return i._$AI(e), i;
482
+ }, Q = globalThis, $ = class extends x {
483
+ constructor() {
484
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
485
+ }
486
+ createRenderRoot() {
487
+ let e = super.createRenderRoot();
488
+ return this.renderOptions.renderBefore ??= e.firstChild, e;
489
+ }
490
+ update(e) {
491
+ let t = this.render();
492
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = le(t, this.renderRoot, this.renderOptions);
493
+ }
494
+ connectedCallback() {
495
+ super.connectedCallback(), this._$Do?.setConnected(!0);
496
+ }
497
+ disconnectedCallback() {
498
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
499
+ }
500
+ render() {
501
+ return B;
502
+ }
503
+ };
504
+ $._$litElement$ = !0, $.finalized = !0, Q.litElementHydrateSupport?.({ LitElement: $ });
505
+ var ue = Q.litElementPolyfillSupport;
506
+ ue?.({ LitElement: $ }), (Q.litElementVersions ??= []).push("4.2.0");
507
+ //#endregion
508
+ export { ie as n, o as r, $ as t };