@webwriter/geogebra 1.0.0 → 1.1.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.
Files changed (158) hide show
  1. package/.github/workflows/main.yml +8 -0
  2. package/README.md +629 -0
  3. package/assets/icons/file-earmark-arrow-up.svg +4 -0
  4. package/components/geogebra-app.styles.ts +10 -0
  5. package/components/geogebra-app.ts +517 -182
  6. package/components/geogebra-options.styles.ts +37 -0
  7. package/components/geogebra-options.ts +187 -0
  8. package/custom-elements.json +10518 -0
  9. package/dist/widgets/webwriter-geogebra-3d.css +444 -0
  10. package/dist/widgets/webwriter-geogebra-3d.js +25359 -1408
  11. package/dist/widgets/webwriter-geogebra-classic.css +444 -0
  12. package/dist/widgets/webwriter-geogebra-classic.js +25359 -1408
  13. package/dist/widgets/webwriter-geogebra-geometry.css +444 -0
  14. package/dist/widgets/webwriter-geogebra-geometry.js +25359 -1408
  15. package/dist/widgets/webwriter-geogebra-notes.css +444 -0
  16. package/dist/widgets/webwriter-geogebra-notes.js +25359 -1408
  17. package/dist/widgets/webwriter-geogebra-scientific.css +444 -0
  18. package/dist/widgets/webwriter-geogebra-scientific.js +25359 -1408
  19. package/dist/widgets/webwriter-geogebra.css +444 -0
  20. package/dist/widgets/webwriter-geogebra.js +25370 -1413
  21. package/editing-config.json +37 -0
  22. package/lit-localize.json +47 -0
  23. package/localization/ar.xlf +30 -0
  24. package/localization/bg.xlf +30 -0
  25. package/localization/cs.xlf +30 -0
  26. package/localization/da.xlf +30 -0
  27. package/localization/de.xlf +29 -0
  28. package/localization/el.xlf +30 -0
  29. package/localization/es.xlf +30 -0
  30. package/localization/et.xlf +30 -0
  31. package/localization/fi.xlf +30 -0
  32. package/localization/fr.xlf +30 -0
  33. package/localization/generated/ar.ts +22 -0
  34. package/localization/generated/bg.ts +22 -0
  35. package/localization/generated/cs.ts +22 -0
  36. package/localization/generated/da.ts +22 -0
  37. package/localization/generated/de.ts +21 -0
  38. package/localization/generated/el.ts +22 -0
  39. package/localization/generated/es.ts +22 -0
  40. package/localization/generated/et.ts +22 -0
  41. package/localization/generated/fi.ts +22 -0
  42. package/localization/generated/fr.ts +22 -0
  43. package/localization/generated/hu.ts +22 -0
  44. package/localization/generated/id.ts +22 -0
  45. package/localization/generated/index.js +3 -0
  46. package/localization/generated/it.ts +22 -0
  47. package/localization/generated/ja.ts +22 -0
  48. package/localization/generated/ko.ts +22 -0
  49. package/localization/generated/locale-codes.js +83 -0
  50. package/localization/generated/lt.ts +22 -0
  51. package/localization/generated/lv.ts +22 -0
  52. package/localization/generated/nb.ts +22 -0
  53. package/localization/generated/nl.ts +22 -0
  54. package/localization/generated/pl.ts +22 -0
  55. package/localization/generated/pt-BR.ts +22 -0
  56. package/localization/generated/pt-PT.ts +22 -0
  57. package/localization/generated/ro.ts +22 -0
  58. package/localization/generated/ru.ts +22 -0
  59. package/localization/generated/sk.ts +22 -0
  60. package/localization/generated/sl.ts +22 -0
  61. package/localization/generated/sv.ts +22 -0
  62. package/localization/generated/tr.ts +22 -0
  63. package/localization/generated/uk.ts +22 -0
  64. package/localization/generated/zh-hans.ts +20 -0
  65. package/localization/generated/zh-hant.ts +20 -0
  66. package/localization/hu.xlf +30 -0
  67. package/localization/id.xlf +30 -0
  68. package/localization/it.xlf +30 -0
  69. package/localization/ja.xlf +30 -0
  70. package/localization/ko.xlf +30 -0
  71. package/localization/lt.xlf +30 -0
  72. package/localization/lv.xlf +30 -0
  73. package/localization/nb.xlf +30 -0
  74. package/localization/nl.xlf +30 -0
  75. package/localization/pkg/ar.xliff +6 -0
  76. package/localization/pkg/bg.xliff +6 -0
  77. package/localization/pkg/cs.xliff +6 -0
  78. package/localization/pkg/da.xliff +6 -0
  79. package/localization/pkg/de.xliff +6 -0
  80. package/localization/pkg/el.xliff +6 -0
  81. package/localization/pkg/es.xliff +6 -0
  82. package/localization/pkg/et.xliff +6 -0
  83. package/localization/pkg/fi.xliff +6 -0
  84. package/localization/pkg/fr.xliff +6 -0
  85. package/localization/pkg/hu.xliff +6 -0
  86. package/localization/pkg/id.xliff +6 -0
  87. package/localization/pkg/it.xliff +6 -0
  88. package/localization/pkg/ja.xliff +6 -0
  89. package/localization/pkg/ko.xliff +6 -0
  90. package/localization/pkg/lt.xliff +6 -0
  91. package/localization/pkg/lv.xliff +6 -0
  92. package/localization/pkg/nb.xliff +6 -0
  93. package/localization/pkg/nl.xliff +6 -0
  94. package/localization/pkg/pl.xliff +6 -0
  95. package/localization/pkg/pt-BR.xliff +6 -0
  96. package/localization/pkg/pt-PT.xliff +6 -0
  97. package/localization/pkg/ro.xliff +6 -0
  98. package/localization/pkg/ru.xliff +6 -0
  99. package/localization/pkg/sk.xliff +6 -0
  100. package/localization/pkg/sl.xliff +6 -0
  101. package/localization/pkg/sv.xliff +6 -0
  102. package/localization/pkg/tr.xliff +6 -0
  103. package/localization/pkg/uk.xliff +6 -0
  104. package/localization/pkg/zh-hans.xliff +6 -0
  105. package/localization/pkg/zh-hant.xliff +6 -0
  106. package/localization/pl.xlf +30 -0
  107. package/localization/pt-BR.xlf +30 -0
  108. package/localization/pt-PT.xlf +30 -0
  109. package/localization/ro.xlf +30 -0
  110. package/localization/ru.xlf +30 -0
  111. package/localization/sk.xlf +30 -0
  112. package/localization/sl.xlf +30 -0
  113. package/localization/snippets/ar.xliff +4 -0
  114. package/localization/snippets/bg.xliff +4 -0
  115. package/localization/snippets/cs.xliff +4 -0
  116. package/localization/snippets/da.xliff +4 -0
  117. package/localization/snippets/de.xliff +4 -0
  118. package/localization/snippets/el.xliff +4 -0
  119. package/localization/snippets/es.xliff +4 -0
  120. package/localization/snippets/et.xliff +4 -0
  121. package/localization/snippets/fi.xliff +4 -0
  122. package/localization/snippets/fr.xliff +4 -0
  123. package/localization/snippets/hu.xliff +4 -0
  124. package/localization/snippets/id.xliff +4 -0
  125. package/localization/snippets/it.xliff +4 -0
  126. package/localization/snippets/ja.xliff +4 -0
  127. package/localization/snippets/ko.xliff +4 -0
  128. package/localization/snippets/lt.xliff +4 -0
  129. package/localization/snippets/lv.xliff +4 -0
  130. package/localization/snippets/nb.xliff +4 -0
  131. package/localization/snippets/nl.xliff +4 -0
  132. package/localization/snippets/pl.xliff +4 -0
  133. package/localization/snippets/pt-BR.xliff +4 -0
  134. package/localization/snippets/pt-PT.xliff +4 -0
  135. package/localization/snippets/ro.xliff +4 -0
  136. package/localization/snippets/ru.xliff +4 -0
  137. package/localization/snippets/sk.xliff +4 -0
  138. package/localization/snippets/sl.xliff +4 -0
  139. package/localization/snippets/sv.xliff +4 -0
  140. package/localization/snippets/tr.xliff +4 -0
  141. package/localization/snippets/uk.xliff +4 -0
  142. package/localization/snippets/zh-hans.xliff +4 -0
  143. package/localization/snippets/zh-hant.xliff +4 -0
  144. package/localization/sv.xlf +30 -0
  145. package/localization/tr.xlf +30 -0
  146. package/localization/uk.xlf +30 -0
  147. package/localization/zh-hans.xlf +30 -0
  148. package/localization/zh-hant.xlf +30 -0
  149. package/package.json +157 -157
  150. package/utils/boolean-attribute-converter.ts +8 -0
  151. package/widgets/webwriter-geogebra-3d.ts +9 -3
  152. package/widgets/webwriter-geogebra-classic.ts +9 -3
  153. package/widgets/webwriter-geogebra-evaluator.ts +9 -3
  154. package/widgets/webwriter-geogebra-geometry.ts +9 -3
  155. package/widgets/webwriter-geogebra-notes.ts +9 -3
  156. package/widgets/webwriter-geogebra-scientific.ts +9 -3
  157. package/widgets/webwriter-geogebra.ts +20 -11
  158. package/dist/widgets/webwriter-geogebra-evaluator.js +0 -1885
@@ -1,1885 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __decorateClass = (decorators, target, key, kind) => {
4
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
- for (var i5 = decorators.length - 1, decorator; i5 >= 0; i5--)
6
- if (decorator = decorators[i5])
7
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
- if (kind && result) __defProp(target, key, result);
9
- return result;
10
- };
11
-
12
- // node_modules/@lit/reactive-element/decorators/custom-element.js
13
- var t = (t5) => (e6, o6) => {
14
- void 0 !== o6 ? o6.addInitializer(() => {
15
- customElements.define(t5, e6);
16
- }) : customElements.define(t5, e6);
17
- };
18
-
19
- // node_modules/@lit/reactive-element/css-tag.js
20
- var t2 = globalThis;
21
- var e = t2.ShadowRoot && (void 0 === t2.ShadyCSS || t2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
22
- var s = Symbol();
23
- var o = /* @__PURE__ */ new WeakMap();
24
- var n = class {
25
- constructor(t5, e6, o6) {
26
- if (this._$cssResult$ = true, o6 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
27
- this.cssText = t5, this.t = e6;
28
- }
29
- get styleSheet() {
30
- let t5 = this.o;
31
- const s4 = this.t;
32
- if (e && void 0 === t5) {
33
- const e6 = void 0 !== s4 && 1 === s4.length;
34
- e6 && (t5 = o.get(s4)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e6 && o.set(s4, t5));
35
- }
36
- return t5;
37
- }
38
- toString() {
39
- return this.cssText;
40
- }
41
- };
42
- var r = (t5) => new n("string" == typeof t5 ? t5 : t5 + "", void 0, s);
43
- var i = (t5, ...e6) => {
44
- const o6 = 1 === t5.length ? t5[0] : e6.reduce((e7, s4, o7) => e7 + ((t6) => {
45
- if (true === t6._$cssResult$) return t6.cssText;
46
- if ("number" == typeof t6) return t6;
47
- throw Error("Value passed to 'css' function must be a 'css' function result: " + t6 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
48
- })(s4) + t5[o7 + 1], t5[0]);
49
- return new n(o6, t5, s);
50
- };
51
- var S = (s4, o6) => {
52
- if (e) s4.adoptedStyleSheets = o6.map((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet);
53
- else for (const e6 of o6) {
54
- const o7 = document.createElement("style"), n6 = t2.litNonce;
55
- void 0 !== n6 && o7.setAttribute("nonce", n6), o7.textContent = e6.cssText, s4.appendChild(o7);
56
- }
57
- };
58
- var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
59
- let e6 = "";
60
- for (const s4 of t6.cssRules) e6 += s4.cssText;
61
- return r(e6);
62
- })(t5) : t5;
63
-
64
- // node_modules/@lit/reactive-element/reactive-element.js
65
- var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
66
- var a = globalThis;
67
- var c2 = a.trustedTypes;
68
- var l = c2 ? c2.emptyScript : "";
69
- var p = a.reactiveElementPolyfillSupport;
70
- var d = (t5, s4) => t5;
71
- var u = { toAttribute(t5, s4) {
72
- switch (s4) {
73
- case Boolean:
74
- t5 = t5 ? l : null;
75
- break;
76
- case Object:
77
- case Array:
78
- t5 = null == t5 ? t5 : JSON.stringify(t5);
79
- }
80
- return t5;
81
- }, fromAttribute(t5, s4) {
82
- let i5 = t5;
83
- switch (s4) {
84
- case Boolean:
85
- i5 = null !== t5;
86
- break;
87
- case Number:
88
- i5 = null === t5 ? null : Number(t5);
89
- break;
90
- case Object:
91
- case Array:
92
- try {
93
- i5 = JSON.parse(t5);
94
- } catch (t6) {
95
- i5 = null;
96
- }
97
- }
98
- return i5;
99
- } };
100
- var f = (t5, s4) => !i2(t5, s4);
101
- var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
102
- Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
103
- var b = class extends HTMLElement {
104
- static addInitializer(t5) {
105
- this._$Ei(), (this.l ??= []).push(t5);
106
- }
107
- static get observedAttributes() {
108
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
109
- }
110
- static createProperty(t5, s4 = y) {
111
- if (s4.state && (s4.attribute = false), this._$Ei(), this.elementProperties.set(t5, s4), !s4.noAccessor) {
112
- const i5 = Symbol(), r7 = this.getPropertyDescriptor(t5, i5, s4);
113
- void 0 !== r7 && e2(this.prototype, t5, r7);
114
- }
115
- }
116
- static getPropertyDescriptor(t5, s4, i5) {
117
- const { get: e6, set: h4 } = r2(this.prototype, t5) ?? { get() {
118
- return this[s4];
119
- }, set(t6) {
120
- this[s4] = t6;
121
- } };
122
- return { get() {
123
- return e6?.call(this);
124
- }, set(s5) {
125
- const r7 = e6?.call(this);
126
- h4.call(this, s5), this.requestUpdate(t5, r7, i5);
127
- }, configurable: true, enumerable: true };
128
- }
129
- static getPropertyOptions(t5) {
130
- return this.elementProperties.get(t5) ?? y;
131
- }
132
- static _$Ei() {
133
- if (this.hasOwnProperty(d("elementProperties"))) return;
134
- const t5 = n2(this);
135
- t5.finalize(), void 0 !== t5.l && (this.l = [...t5.l]), this.elementProperties = new Map(t5.elementProperties);
136
- }
137
- static finalize() {
138
- if (this.hasOwnProperty(d("finalized"))) return;
139
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
140
- const t6 = this.properties, s4 = [...h(t6), ...o2(t6)];
141
- for (const i5 of s4) this.createProperty(i5, t6[i5]);
142
- }
143
- const t5 = this[Symbol.metadata];
144
- if (null !== t5) {
145
- const s4 = litPropertyMetadata.get(t5);
146
- if (void 0 !== s4) for (const [t6, i5] of s4) this.elementProperties.set(t6, i5);
147
- }
148
- this._$Eh = /* @__PURE__ */ new Map();
149
- for (const [t6, s4] of this.elementProperties) {
150
- const i5 = this._$Eu(t6, s4);
151
- void 0 !== i5 && this._$Eh.set(i5, t6);
152
- }
153
- this.elementStyles = this.finalizeStyles(this.styles);
154
- }
155
- static finalizeStyles(s4) {
156
- const i5 = [];
157
- if (Array.isArray(s4)) {
158
- const e6 = new Set(s4.flat(1 / 0).reverse());
159
- for (const s5 of e6) i5.unshift(c(s5));
160
- } else void 0 !== s4 && i5.push(c(s4));
161
- return i5;
162
- }
163
- static _$Eu(t5, s4) {
164
- const i5 = s4.attribute;
165
- return false === i5 ? void 0 : "string" == typeof i5 ? i5 : "string" == typeof t5 ? t5.toLowerCase() : void 0;
166
- }
167
- constructor() {
168
- super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
169
- }
170
- _$Ev() {
171
- this._$ES = new Promise((t5) => this.enableUpdating = t5), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t5) => t5(this));
172
- }
173
- addController(t5) {
174
- (this._$EO ??= /* @__PURE__ */ new Set()).add(t5), void 0 !== this.renderRoot && this.isConnected && t5.hostConnected?.();
175
- }
176
- removeController(t5) {
177
- this._$EO?.delete(t5);
178
- }
179
- _$E_() {
180
- const t5 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
181
- for (const i5 of s4.keys()) this.hasOwnProperty(i5) && (t5.set(i5, this[i5]), delete this[i5]);
182
- t5.size > 0 && (this._$Ep = t5);
183
- }
184
- createRenderRoot() {
185
- const t5 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
186
- return S(t5, this.constructor.elementStyles), t5;
187
- }
188
- connectedCallback() {
189
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t5) => t5.hostConnected?.());
190
- }
191
- enableUpdating(t5) {
192
- }
193
- disconnectedCallback() {
194
- this._$EO?.forEach((t5) => t5.hostDisconnected?.());
195
- }
196
- attributeChangedCallback(t5, s4, i5) {
197
- this._$AK(t5, i5);
198
- }
199
- _$EC(t5, s4) {
200
- const i5 = this.constructor.elementProperties.get(t5), e6 = this.constructor._$Eu(t5, i5);
201
- if (void 0 !== e6 && true === i5.reflect) {
202
- const r7 = (void 0 !== i5.converter?.toAttribute ? i5.converter : u).toAttribute(s4, i5.type);
203
- this._$Em = t5, null == r7 ? this.removeAttribute(e6) : this.setAttribute(e6, r7), this._$Em = null;
204
- }
205
- }
206
- _$AK(t5, s4) {
207
- const i5 = this.constructor, e6 = i5._$Eh.get(t5);
208
- if (void 0 !== e6 && this._$Em !== e6) {
209
- const t6 = i5.getPropertyOptions(e6), r7 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u;
210
- this._$Em = e6, this[e6] = r7.fromAttribute(s4, t6.type), this._$Em = null;
211
- }
212
- }
213
- requestUpdate(t5, s4, i5) {
214
- if (void 0 !== t5) {
215
- if (i5 ??= this.constructor.getPropertyOptions(t5), !(i5.hasChanged ?? f)(this[t5], s4)) return;
216
- this.P(t5, s4, i5);
217
- }
218
- false === this.isUpdatePending && (this._$ES = this._$ET());
219
- }
220
- P(t5, s4, i5) {
221
- this._$AL.has(t5) || this._$AL.set(t5, s4), true === i5.reflect && this._$Em !== t5 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t5);
222
- }
223
- async _$ET() {
224
- this.isUpdatePending = true;
225
- try {
226
- await this._$ES;
227
- } catch (t6) {
228
- Promise.reject(t6);
229
- }
230
- const t5 = this.scheduleUpdate();
231
- return null != t5 && await t5, !this.isUpdatePending;
232
- }
233
- scheduleUpdate() {
234
- return this.performUpdate();
235
- }
236
- performUpdate() {
237
- if (!this.isUpdatePending) return;
238
- if (!this.hasUpdated) {
239
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
240
- for (const [t7, s5] of this._$Ep) this[t7] = s5;
241
- this._$Ep = void 0;
242
- }
243
- const t6 = this.constructor.elementProperties;
244
- if (t6.size > 0) for (const [s5, i5] of t6) true !== i5.wrapped || this._$AL.has(s5) || void 0 === this[s5] || this.P(s5, this[s5], i5);
245
- }
246
- let t5 = false;
247
- const s4 = this._$AL;
248
- try {
249
- t5 = this.shouldUpdate(s4), t5 ? (this.willUpdate(s4), this._$EO?.forEach((t6) => t6.hostUpdate?.()), this.update(s4)) : this._$EU();
250
- } catch (s5) {
251
- throw t5 = false, this._$EU(), s5;
252
- }
253
- t5 && this._$AE(s4);
254
- }
255
- willUpdate(t5) {
256
- }
257
- _$AE(t5) {
258
- this._$EO?.forEach((t6) => t6.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5);
259
- }
260
- _$EU() {
261
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
262
- }
263
- get updateComplete() {
264
- return this.getUpdateComplete();
265
- }
266
- getUpdateComplete() {
267
- return this._$ES;
268
- }
269
- shouldUpdate(t5) {
270
- return true;
271
- }
272
- update(t5) {
273
- this._$Ej &&= this._$Ej.forEach((t6) => this._$EC(t6, this[t6])), this._$EU();
274
- }
275
- updated(t5) {
276
- }
277
- firstUpdated(t5) {
278
- }
279
- };
280
- b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProperties")] = /* @__PURE__ */ new Map(), b[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: b }), (a.reactiveElementVersions ??= []).push("2.0.4");
281
-
282
- // node_modules/@lit/reactive-element/decorators/property.js
283
- var o3 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
284
- var r3 = (t5 = o3, e6, r7) => {
285
- const { kind: n6, metadata: i5 } = r7;
286
- let s4 = globalThis.litPropertyMetadata.get(i5);
287
- if (void 0 === s4 && globalThis.litPropertyMetadata.set(i5, s4 = /* @__PURE__ */ new Map()), s4.set(r7.name, t5), "accessor" === n6) {
288
- const { name: o6 } = r7;
289
- return { set(r8) {
290
- const n7 = e6.get.call(this);
291
- e6.set.call(this, r8), this.requestUpdate(o6, n7, t5);
292
- }, init(e7) {
293
- return void 0 !== e7 && this.P(o6, void 0, t5), e7;
294
- } };
295
- }
296
- if ("setter" === n6) {
297
- const { name: o6 } = r7;
298
- return function(r8) {
299
- const n7 = this[o6];
300
- e6.call(this, r8), this.requestUpdate(o6, n7, t5);
301
- };
302
- }
303
- throw Error("Unsupported decorator location: " + n6);
304
- };
305
- function n3(t5) {
306
- return (e6, o6) => "object" == typeof o6 ? r3(t5, e6, o6) : ((t6, e7, o7) => {
307
- const r7 = e7.hasOwnProperty(o7);
308
- return e7.constructor.createProperty(o7, r7 ? { ...t6, wrapped: true } : t6), r7 ? Object.getOwnPropertyDescriptor(e7, o7) : void 0;
309
- })(t5, e6, o6);
310
- }
311
-
312
- // node_modules/lit-html/lit-html.js
313
- var t3 = globalThis;
314
- var i3 = t3.trustedTypes;
315
- var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0;
316
- var e4 = "$lit$";
317
- var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
318
- var o4 = "?" + h2;
319
- var n4 = `<${o4}>`;
320
- var r4 = document;
321
- var l2 = () => r4.createComment("");
322
- var c3 = (t5) => null === t5 || "object" != typeof t5 && "function" != typeof t5;
323
- var a2 = Array.isArray;
324
- var u2 = (t5) => a2(t5) || "function" == typeof t5?.[Symbol.iterator];
325
- var d2 = "[ \n\f\r]";
326
- var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
327
- var v = /-->/g;
328
- var _ = />/g;
329
- var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
330
- \f\r"'\`<>=]|("|')|))|$)`, "g");
331
- var p2 = /'/g;
332
- var g = /"/g;
333
- var $ = /^(?:script|style|textarea|title)$/i;
334
- var y2 = (t5) => (i5, ...s4) => ({ _$litType$: t5, strings: i5, values: s4 });
335
- var x = y2(1);
336
- var b2 = y2(2);
337
- var w = y2(3);
338
- var T = Symbol.for("lit-noChange");
339
- var E = Symbol.for("lit-nothing");
340
- var A = /* @__PURE__ */ new WeakMap();
341
- var C = r4.createTreeWalker(r4, 129);
342
- function P(t5, i5) {
343
- if (!a2(t5) || !t5.hasOwnProperty("raw")) throw Error("invalid template strings array");
344
- return void 0 !== s2 ? s2.createHTML(i5) : i5;
345
- }
346
- var V = (t5, i5) => {
347
- const s4 = t5.length - 1, o6 = [];
348
- let r7, l4 = 2 === i5 ? "<svg>" : 3 === i5 ? "<math>" : "", c5 = f2;
349
- for (let i6 = 0; i6 < s4; i6++) {
350
- const s5 = t5[i6];
351
- let a4, u4, d4 = -1, y4 = 0;
352
- for (; y4 < s5.length && (c5.lastIndex = y4, u4 = c5.exec(s5), null !== u4); ) y4 = c5.lastIndex, c5 === f2 ? "!--" === u4[1] ? c5 = v : void 0 !== u4[1] ? c5 = _ : void 0 !== u4[2] ? ($.test(u4[2]) && (r7 = RegExp("</" + u4[2], "g")), c5 = m) : void 0 !== u4[3] && (c5 = m) : c5 === m ? ">" === u4[0] ? (c5 = r7 ?? f2, d4 = -1) : void 0 === u4[1] ? d4 = -2 : (d4 = c5.lastIndex - u4[2].length, a4 = u4[1], c5 = void 0 === u4[3] ? m : '"' === u4[3] ? g : p2) : c5 === g || c5 === p2 ? c5 = m : c5 === v || c5 === _ ? c5 = f2 : (c5 = m, r7 = void 0);
353
- const x3 = c5 === m && t5[i6 + 1].startsWith("/>") ? " " : "";
354
- l4 += c5 === f2 ? s5 + n4 : d4 >= 0 ? (o6.push(a4), s5.slice(0, d4) + e4 + s5.slice(d4) + h2 + x3) : s5 + h2 + (-2 === d4 ? i6 : x3);
355
- }
356
- return [P(t5, l4 + (t5[s4] || "<?>") + (2 === i5 ? "</svg>" : 3 === i5 ? "</math>" : "")), o6];
357
- };
358
- var N = class _N {
359
- constructor({ strings: t5, _$litType$: s4 }, n6) {
360
- let r7;
361
- this.parts = [];
362
- let c5 = 0, a4 = 0;
363
- const u4 = t5.length - 1, d4 = this.parts, [f4, v3] = V(t5, s4);
364
- if (this.el = _N.createElement(f4, n6), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
365
- const t6 = this.el.content.firstChild;
366
- t6.replaceWith(...t6.childNodes);
367
- }
368
- for (; null !== (r7 = C.nextNode()) && d4.length < u4; ) {
369
- if (1 === r7.nodeType) {
370
- if (r7.hasAttributes()) for (const t6 of r7.getAttributeNames()) if (t6.endsWith(e4)) {
371
- const i5 = v3[a4++], s5 = r7.getAttribute(t6).split(h2), e6 = /([.?@])?(.*)/.exec(i5);
372
- d4.push({ type: 1, index: c5, name: e6[2], strings: s5, ctor: "." === e6[1] ? H : "?" === e6[1] ? I : "@" === e6[1] ? L : k }), r7.removeAttribute(t6);
373
- } else t6.startsWith(h2) && (d4.push({ type: 6, index: c5 }), r7.removeAttribute(t6));
374
- if ($.test(r7.tagName)) {
375
- const t6 = r7.textContent.split(h2), s5 = t6.length - 1;
376
- if (s5 > 0) {
377
- r7.textContent = i3 ? i3.emptyScript : "";
378
- for (let i5 = 0; i5 < s5; i5++) r7.append(t6[i5], l2()), C.nextNode(), d4.push({ type: 2, index: ++c5 });
379
- r7.append(t6[s5], l2());
380
- }
381
- }
382
- } else if (8 === r7.nodeType) if (r7.data === o4) d4.push({ type: 2, index: c5 });
383
- else {
384
- let t6 = -1;
385
- for (; -1 !== (t6 = r7.data.indexOf(h2, t6 + 1)); ) d4.push({ type: 7, index: c5 }), t6 += h2.length - 1;
386
- }
387
- c5++;
388
- }
389
- }
390
- static createElement(t5, i5) {
391
- const s4 = r4.createElement("template");
392
- return s4.innerHTML = t5, s4;
393
- }
394
- };
395
- function S2(t5, i5, s4 = t5, e6) {
396
- if (i5 === T) return i5;
397
- let h4 = void 0 !== e6 ? s4._$Co?.[e6] : s4._$Cl;
398
- const o6 = c3(i5) ? void 0 : i5._$litDirective$;
399
- return h4?.constructor !== o6 && (h4?._$AO?.(false), void 0 === o6 ? h4 = void 0 : (h4 = new o6(t5), h4._$AT(t5, s4, e6)), void 0 !== e6 ? (s4._$Co ??= [])[e6] = h4 : s4._$Cl = h4), void 0 !== h4 && (i5 = S2(t5, h4._$AS(t5, i5.values), h4, e6)), i5;
400
- }
401
- var M = class {
402
- constructor(t5, i5) {
403
- this._$AV = [], this._$AN = void 0, this._$AD = t5, this._$AM = i5;
404
- }
405
- get parentNode() {
406
- return this._$AM.parentNode;
407
- }
408
- get _$AU() {
409
- return this._$AM._$AU;
410
- }
411
- u(t5) {
412
- const { el: { content: i5 }, parts: s4 } = this._$AD, e6 = (t5?.creationScope ?? r4).importNode(i5, true);
413
- C.currentNode = e6;
414
- let h4 = C.nextNode(), o6 = 0, n6 = 0, l4 = s4[0];
415
- for (; void 0 !== l4; ) {
416
- if (o6 === l4.index) {
417
- let i6;
418
- 2 === l4.type ? i6 = new R(h4, h4.nextSibling, this, t5) : 1 === l4.type ? i6 = new l4.ctor(h4, l4.name, l4.strings, this, t5) : 6 === l4.type && (i6 = new z(h4, this, t5)), this._$AV.push(i6), l4 = s4[++n6];
419
- }
420
- o6 !== l4?.index && (h4 = C.nextNode(), o6++);
421
- }
422
- return C.currentNode = r4, e6;
423
- }
424
- p(t5) {
425
- let i5 = 0;
426
- for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t5, s4, i5), i5 += s4.strings.length - 2) : s4._$AI(t5[i5])), i5++;
427
- }
428
- };
429
- var R = class _R {
430
- get _$AU() {
431
- return this._$AM?._$AU ?? this._$Cv;
432
- }
433
- constructor(t5, i5, s4, e6) {
434
- this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t5, this._$AB = i5, this._$AM = s4, this.options = e6, this._$Cv = e6?.isConnected ?? true;
435
- }
436
- get parentNode() {
437
- let t5 = this._$AA.parentNode;
438
- const i5 = this._$AM;
439
- return void 0 !== i5 && 11 === t5?.nodeType && (t5 = i5.parentNode), t5;
440
- }
441
- get startNode() {
442
- return this._$AA;
443
- }
444
- get endNode() {
445
- return this._$AB;
446
- }
447
- _$AI(t5, i5 = this) {
448
- t5 = S2(this, t5, i5), c3(t5) ? t5 === E || null == t5 || "" === t5 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t5 !== this._$AH && t5 !== T && this._(t5) : void 0 !== t5._$litType$ ? this.$(t5) : void 0 !== t5.nodeType ? this.T(t5) : u2(t5) ? this.k(t5) : this._(t5);
449
- }
450
- O(t5) {
451
- return this._$AA.parentNode.insertBefore(t5, this._$AB);
452
- }
453
- T(t5) {
454
- this._$AH !== t5 && (this._$AR(), this._$AH = this.O(t5));
455
- }
456
- _(t5) {
457
- this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t5 : this.T(r4.createTextNode(t5)), this._$AH = t5;
458
- }
459
- $(t5) {
460
- const { values: i5, _$litType$: s4 } = t5, e6 = "number" == typeof s4 ? this._$AC(t5) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
461
- if (this._$AH?._$AD === e6) this._$AH.p(i5);
462
- else {
463
- const t6 = new M(e6, this), s5 = t6.u(this.options);
464
- t6.p(i5), this.T(s5), this._$AH = t6;
465
- }
466
- }
467
- _$AC(t5) {
468
- let i5 = A.get(t5.strings);
469
- return void 0 === i5 && A.set(t5.strings, i5 = new N(t5)), i5;
470
- }
471
- k(t5) {
472
- a2(this._$AH) || (this._$AH = [], this._$AR());
473
- const i5 = this._$AH;
474
- let s4, e6 = 0;
475
- for (const h4 of t5) e6 === i5.length ? i5.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i5[e6], s4._$AI(h4), e6++;
476
- e6 < i5.length && (this._$AR(s4 && s4._$AB.nextSibling, e6), i5.length = e6);
477
- }
478
- _$AR(t5 = this._$AA.nextSibling, i5) {
479
- for (this._$AP?.(false, true, i5); t5 && t5 !== this._$AB; ) {
480
- const i6 = t5.nextSibling;
481
- t5.remove(), t5 = i6;
482
- }
483
- }
484
- setConnected(t5) {
485
- void 0 === this._$AM && (this._$Cv = t5, this._$AP?.(t5));
486
- }
487
- };
488
- var k = class {
489
- get tagName() {
490
- return this.element.tagName;
491
- }
492
- get _$AU() {
493
- return this._$AM._$AU;
494
- }
495
- constructor(t5, i5, s4, e6, h4) {
496
- this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t5, this.name = i5, this._$AM = e6, this.options = h4, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
497
- }
498
- _$AI(t5, i5 = this, s4, e6) {
499
- const h4 = this.strings;
500
- let o6 = false;
501
- if (void 0 === h4) t5 = S2(this, t5, i5, 0), o6 = !c3(t5) || t5 !== this._$AH && t5 !== T, o6 && (this._$AH = t5);
502
- else {
503
- const e7 = t5;
504
- let n6, r7;
505
- for (t5 = h4[0], n6 = 0; n6 < h4.length - 1; n6++) r7 = S2(this, e7[s4 + n6], i5, n6), r7 === T && (r7 = this._$AH[n6]), o6 ||= !c3(r7) || r7 !== this._$AH[n6], r7 === E ? t5 = E : t5 !== E && (t5 += (r7 ?? "") + h4[n6 + 1]), this._$AH[n6] = r7;
506
- }
507
- o6 && !e6 && this.j(t5);
508
- }
509
- j(t5) {
510
- t5 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t5 ?? "");
511
- }
512
- };
513
- var H = class extends k {
514
- constructor() {
515
- super(...arguments), this.type = 3;
516
- }
517
- j(t5) {
518
- this.element[this.name] = t5 === E ? void 0 : t5;
519
- }
520
- };
521
- var I = class extends k {
522
- constructor() {
523
- super(...arguments), this.type = 4;
524
- }
525
- j(t5) {
526
- this.element.toggleAttribute(this.name, !!t5 && t5 !== E);
527
- }
528
- };
529
- var L = class extends k {
530
- constructor(t5, i5, s4, e6, h4) {
531
- super(t5, i5, s4, e6, h4), this.type = 5;
532
- }
533
- _$AI(t5, i5 = this) {
534
- if ((t5 = S2(this, t5, i5, 0) ?? E) === T) return;
535
- const s4 = this._$AH, e6 = t5 === E && s4 !== E || t5.capture !== s4.capture || t5.once !== s4.once || t5.passive !== s4.passive, h4 = t5 !== E && (s4 === E || e6);
536
- e6 && this.element.removeEventListener(this.name, this, s4), h4 && this.element.addEventListener(this.name, this, t5), this._$AH = t5;
537
- }
538
- handleEvent(t5) {
539
- "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t5) : this._$AH.handleEvent(t5);
540
- }
541
- };
542
- var z = class {
543
- constructor(t5, i5, s4) {
544
- this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i5, this.options = s4;
545
- }
546
- get _$AU() {
547
- return this._$AM._$AU;
548
- }
549
- _$AI(t5) {
550
- S2(this, t5);
551
- }
552
- };
553
- var j = t3.litHtmlPolyfillSupport;
554
- j?.(N, R), (t3.litHtmlVersions ??= []).push("3.2.1");
555
- var B = (t5, i5, s4) => {
556
- const e6 = s4?.renderBefore ?? i5;
557
- let h4 = e6._$litPart$;
558
- if (void 0 === h4) {
559
- const t6 = s4?.renderBefore ?? null;
560
- e6._$litPart$ = h4 = new R(i5.insertBefore(l2(), t6), t6, void 0, s4 ?? {});
561
- }
562
- return h4._$AI(t5), h4;
563
- };
564
-
565
- // node_modules/lit-element/lit-element.js
566
- var r5 = class extends b {
567
- constructor() {
568
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
569
- }
570
- createRenderRoot() {
571
- const t5 = super.createRenderRoot();
572
- return this.renderOptions.renderBefore ??= t5.firstChild, t5;
573
- }
574
- update(t5) {
575
- const s4 = this.render();
576
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this._$Do = B(s4, this.renderRoot, this.renderOptions);
577
- }
578
- connectedCallback() {
579
- super.connectedCallback(), this._$Do?.setConnected(true);
580
- }
581
- disconnectedCallback() {
582
- super.disconnectedCallback(), this._$Do?.setConnected(false);
583
- }
584
- render() {
585
- return T;
586
- }
587
- };
588
- r5._$litElement$ = true, r5["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: r5 });
589
- var i4 = globalThis.litElementPolyfillSupport;
590
- i4?.({ LitElement: r5 });
591
- (globalThis.litElementVersions ??= []).push("4.1.1");
592
-
593
- // node_modules/@webwriter/lit/index.js
594
- var __create = Object.create;
595
- var __defProp2 = Object.defineProperty;
596
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
597
- var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
598
- var __typeError = (msg) => {
599
- throw TypeError(msg);
600
- };
601
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
602
- var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
603
- var __decoratorStart = (base) => [, , , __create(base?.[__knownSymbol("metadata")] ?? null)];
604
- var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
605
- var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn;
606
- var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
607
- var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
608
- var __runInitializers = (array, flags, self, value) => {
609
- for (var i32 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i32 < n52; i32++) flags & 1 ? fns[i32].call(self) : value = fns[i32].call(self, value);
610
- return value;
611
- };
612
- var __decorateElement = (array, flags, name, decorators, target, extra) => {
613
- var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16);
614
- var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings[k22 + 5];
615
- var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
616
- var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
617
- return __privateGet(this, extra);
618
- }, set [name](x22) {
619
- return __privateSet(this, extra, x22);
620
- } }, name));
621
- k22 ? p22 && k22 < 4 && __name(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name(target, name);
622
- for (var i32 = decorators.length - 1; i32 >= 0; i32--) {
623
- ctx = __decoratorContext(k22, name, done = {}, array[3], extraInitializers);
624
- if (k22) {
625
- ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn(target, x22) : (x22) => name in x22 };
626
- if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet : __privateMethod)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
627
- if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22;
628
- }
629
- it = (0, decorators[i32])(k22 ? k22 < 4 ? p22 ? extra : desc[key] : k22 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
630
- if (k22 ^ 4 || it === void 0) __expectFn(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it);
631
- else if (typeof it !== "object" || it === null) __typeError("Object expected");
632
- else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
633
- }
634
- return k22 || __decoratorMetadata(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target;
635
- };
636
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
637
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
638
- var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
639
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
640
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
641
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
642
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
643
- var t4 = globalThis;
644
- var e5 = t4.ShadowRoot && (void 0 === t4.ShadyCSS || t4.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
645
- var s3 = Symbol();
646
- var o5 = /* @__PURE__ */ new WeakMap();
647
- var n5 = class {
648
- constructor(t22, e42, o42) {
649
- if (this._$cssResult$ = true, o42 !== s3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
650
- this.cssText = t22, this.t = e42;
651
- }
652
- get styleSheet() {
653
- let t22 = this.o;
654
- const s22 = this.t;
655
- if (e5 && void 0 === t22) {
656
- const e42 = void 0 !== s22 && 1 === s22.length;
657
- e42 && (t22 = o5.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o5.set(s22, t22));
658
- }
659
- return t22;
660
- }
661
- toString() {
662
- return this.cssText;
663
- }
664
- };
665
- var r6 = (t22) => new n5("string" == typeof t22 ? t22 : t22 + "", void 0, s3);
666
- var S3 = (s22, o42) => {
667
- if (e5) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet);
668
- else for (const e42 of o42) {
669
- const o52 = document.createElement("style"), n52 = t4.litNonce;
670
- void 0 !== n52 && o52.setAttribute("nonce", n52), o52.textContent = e42.cssText, s22.appendChild(o52);
671
- }
672
- };
673
- var c4 = e5 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => {
674
- let e42 = "";
675
- for (const s22 of t32.cssRules) e42 += s22.cssText;
676
- return r6(e42);
677
- })(t22) : t22;
678
- var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h3, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
679
- var a3 = globalThis;
680
- var c22 = a3.trustedTypes;
681
- var l3 = c22 ? c22.emptyScript : "";
682
- var p3 = a3.reactiveElementPolyfillSupport;
683
- var d3 = (t22, s22) => t22;
684
- var u3 = { toAttribute(t22, s22) {
685
- switch (s22) {
686
- case Boolean:
687
- t22 = t22 ? l3 : null;
688
- break;
689
- case Object:
690
- case Array:
691
- t22 = null == t22 ? t22 : JSON.stringify(t22);
692
- }
693
- return t22;
694
- }, fromAttribute(t22, s22) {
695
- let i32 = t22;
696
- switch (s22) {
697
- case Boolean:
698
- i32 = null !== t22;
699
- break;
700
- case Number:
701
- i32 = null === t22 ? null : Number(t22);
702
- break;
703
- case Object:
704
- case Array:
705
- try {
706
- i32 = JSON.parse(t22);
707
- } catch (t32) {
708
- i32 = null;
709
- }
710
- }
711
- return i32;
712
- } };
713
- var f3 = (t22, s22) => !i22(t22, s22);
714
- var y3 = { attribute: true, type: String, converter: u3, reflect: false, hasChanged: f3 };
715
- Symbol.metadata ??= Symbol("metadata"), a3.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
716
- var b3 = class extends HTMLElement {
717
- static addInitializer(t22) {
718
- this._$Ei(), (this.l ??= []).push(t22);
719
- }
720
- static get observedAttributes() {
721
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
722
- }
723
- static createProperty(t22, s22 = y3) {
724
- if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) {
725
- const i32 = Symbol(), r42 = this.getPropertyDescriptor(t22, i32, s22);
726
- void 0 !== r42 && e22(this.prototype, t22, r42);
727
- }
728
- }
729
- static getPropertyDescriptor(t22, s22, i32) {
730
- const { get: e42, set: h4 } = r22(this.prototype, t22) ?? { get() {
731
- return this[s22];
732
- }, set(t32) {
733
- this[s22] = t32;
734
- } };
735
- return { get() {
736
- return e42?.call(this);
737
- }, set(s32) {
738
- const r42 = e42?.call(this);
739
- h4.call(this, s32), this.requestUpdate(t22, r42, i32);
740
- }, configurable: true, enumerable: true };
741
- }
742
- static getPropertyOptions(t22) {
743
- return this.elementProperties.get(t22) ?? y3;
744
- }
745
- static _$Ei() {
746
- if (this.hasOwnProperty(d3("elementProperties"))) return;
747
- const t22 = n22(this);
748
- t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties);
749
- }
750
- static finalize() {
751
- if (this.hasOwnProperty(d3("finalized"))) return;
752
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d3("properties"))) {
753
- const t32 = this.properties, s22 = [...h3(t32), ...o22(t32)];
754
- for (const i32 of s22) this.createProperty(i32, t32[i32]);
755
- }
756
- const t22 = this[Symbol.metadata];
757
- if (null !== t22) {
758
- const s22 = litPropertyMetadata.get(t22);
759
- if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32);
760
- }
761
- this._$Eh = /* @__PURE__ */ new Map();
762
- for (const [t32, s22] of this.elementProperties) {
763
- const i32 = this._$Eu(t32, s22);
764
- void 0 !== i32 && this._$Eh.set(i32, t32);
765
- }
766
- this.elementStyles = this.finalizeStyles(this.styles);
767
- }
768
- static finalizeStyles(s22) {
769
- const i32 = [];
770
- if (Array.isArray(s22)) {
771
- const e42 = new Set(s22.flat(1 / 0).reverse());
772
- for (const s32 of e42) i32.unshift(c4(s32));
773
- } else void 0 !== s22 && i32.push(c4(s22));
774
- return i32;
775
- }
776
- static _$Eu(t22, s22) {
777
- const i32 = s22.attribute;
778
- return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0;
779
- }
780
- constructor() {
781
- super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
782
- }
783
- _$Ev() {
784
- this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this));
785
- }
786
- addController(t22) {
787
- (this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.();
788
- }
789
- removeController(t22) {
790
- this._$EO?.delete(t22);
791
- }
792
- _$E_() {
793
- const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties;
794
- for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]);
795
- t22.size > 0 && (this._$Ep = t22);
796
- }
797
- createRenderRoot() {
798
- const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
799
- return S3(t22, this.constructor.elementStyles), t22;
800
- }
801
- connectedCallback() {
802
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.());
803
- }
804
- enableUpdating(t22) {
805
- }
806
- disconnectedCallback() {
807
- this._$EO?.forEach((t22) => t22.hostDisconnected?.());
808
- }
809
- attributeChangedCallback(t22, s22, i32) {
810
- this._$AK(t22, i32);
811
- }
812
- _$EC(t22, s22) {
813
- const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32);
814
- if (void 0 !== e42 && true === i32.reflect) {
815
- const r42 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u3).toAttribute(s22, i32.type);
816
- this._$Em = t22, null == r42 ? this.removeAttribute(e42) : this.setAttribute(e42, r42), this._$Em = null;
817
- }
818
- }
819
- _$AK(t22, s22) {
820
- const i32 = this.constructor, e42 = i32._$Eh.get(t22);
821
- if (void 0 !== e42 && this._$Em !== e42) {
822
- const t32 = i32.getPropertyOptions(e42), r42 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u3;
823
- this._$Em = e42, this[e42] = r42.fromAttribute(s22, t32.type), this._$Em = null;
824
- }
825
- }
826
- requestUpdate(t22, s22, i32) {
827
- if (void 0 !== t22) {
828
- if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f3)(this[t22], s22)) return;
829
- this.P(t22, s22, i32);
830
- }
831
- false === this.isUpdatePending && (this._$ES = this._$ET());
832
- }
833
- P(t22, s22, i32) {
834
- this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22);
835
- }
836
- async _$ET() {
837
- this.isUpdatePending = true;
838
- try {
839
- await this._$ES;
840
- } catch (t32) {
841
- Promise.reject(t32);
842
- }
843
- const t22 = this.scheduleUpdate();
844
- return null != t22 && await t22, !this.isUpdatePending;
845
- }
846
- scheduleUpdate() {
847
- return this.performUpdate();
848
- }
849
- performUpdate() {
850
- if (!this.isUpdatePending) return;
851
- if (!this.hasUpdated) {
852
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
853
- for (const [t42, s32] of this._$Ep) this[t42] = s32;
854
- this._$Ep = void 0;
855
- }
856
- const t32 = this.constructor.elementProperties;
857
- if (t32.size > 0) for (const [s32, i32] of t32) true !== i32.wrapped || this._$AL.has(s32) || void 0 === this[s32] || this.P(s32, this[s32], i32);
858
- }
859
- let t22 = false;
860
- const s22 = this._$AL;
861
- try {
862
- t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU();
863
- } catch (s32) {
864
- throw t22 = false, this._$EU(), s32;
865
- }
866
- t22 && this._$AE(s22);
867
- }
868
- willUpdate(t22) {
869
- }
870
- _$AE(t22) {
871
- this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22);
872
- }
873
- _$EU() {
874
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
875
- }
876
- get updateComplete() {
877
- return this.getUpdateComplete();
878
- }
879
- getUpdateComplete() {
880
- return this._$ES;
881
- }
882
- shouldUpdate(t22) {
883
- return true;
884
- }
885
- update(t22) {
886
- this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU();
887
- }
888
- updated(t22) {
889
- }
890
- firstUpdated(t22) {
891
- }
892
- };
893
- b3.elementStyles = [], b3.shadowRootOptions = { mode: "open" }, b3[d3("elementProperties")] = /* @__PURE__ */ new Map(), b3[d3("finalized")] = /* @__PURE__ */ new Map(), p3?.({ ReactiveElement: b3 }), (a3.reactiveElementVersions ??= []).push("2.0.4");
894
- var n32 = globalThis;
895
- var c32 = n32.trustedTypes;
896
- var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0;
897
- var f22 = "$lit$";
898
- var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
899
- var m2 = "?" + v2;
900
- var _2 = `<${m2}>`;
901
- var w2 = document;
902
- var lt = () => w2.createComment("");
903
- var st = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22;
904
- var g2 = Array.isArray;
905
- var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator];
906
- var x2 = "[ \n\f\r]";
907
- var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
908
- var E2 = /-->/g;
909
- var k2 = />/g;
910
- var O = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^
911
- \f\r"'\`<>=]|("|')|))|$)`, "g");
912
- var S22 = /'/g;
913
- var j2 = /"/g;
914
- var M2 = /^(?:script|style|textarea|title)$/i;
915
- var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 });
916
- var ke = P2(1);
917
- var Oe = P2(2);
918
- var Se = P2(3);
919
- var R2 = Symbol.for("lit-noChange");
920
- var D = Symbol.for("lit-nothing");
921
- var V2 = /* @__PURE__ */ new WeakMap();
922
- var I2 = w2.createTreeWalker(w2, 129);
923
- function N2(t22, i32) {
924
- if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array");
925
- return void 0 !== h22 ? h22.createHTML(i32) : i32;
926
- }
927
- var U = (t22, i32) => {
928
- const s22 = t22.length - 1, e42 = [];
929
- let h4, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2;
930
- for (let i42 = 0; i42 < s22; i42++) {
931
- const s32 = t22[i42];
932
- let r42, l22, c42 = -1, a22 = 0;
933
- for (; a22 < s32.length && (n52.lastIndex = a22, l22 = n52.exec(s32), null !== l22); ) a22 = n52.lastIndex, n52 === T2 ? "!--" === l22[1] ? n52 = E2 : void 0 !== l22[1] ? n52 = k2 : void 0 !== l22[2] ? (M2.test(l22[2]) && (h4 = RegExp("</" + l22[2], "g")), n52 = O) : void 0 !== l22[3] && (n52 = O) : n52 === O ? ">" === l22[0] ? (n52 = h4 ?? T2, c42 = -1) : void 0 === l22[1] ? c42 = -2 : (c42 = n52.lastIndex - l22[2].length, r42 = l22[1], n52 = void 0 === l22[3] ? O : '"' === l22[3] ? j2 : S22) : n52 === j2 || n52 === S22 ? n52 = O : n52 === E2 || n52 === k2 ? n52 = T2 : (n52 = O, h4 = void 0);
934
- const u22 = n52 === O && t22[i42 + 1].startsWith("/>") ? " " : "";
935
- o42 += n52 === T2 ? s32 + _2 : c42 >= 0 ? (e42.push(r42), s32.slice(0, c42) + f22 + s32.slice(c42) + v2 + u22) : s32 + v2 + (-2 === c42 ? i42 : u22);
936
- }
937
- return [N2(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42];
938
- };
939
- var B2 = class _B {
940
- constructor({ strings: t22, _$litType$: i32 }, s22) {
941
- let e42;
942
- this.parts = [];
943
- let h4 = 0, o42 = 0;
944
- const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U(t22, i32);
945
- if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) {
946
- const t32 = this.el.content.firstChild;
947
- t32.replaceWith(...t32.childNodes);
948
- }
949
- for (; null !== (e42 = I2.nextNode()) && r42.length < n52; ) {
950
- if (1 === e42.nodeType) {
951
- if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) {
952
- const i42 = a22[o42++], s32 = e42.getAttribute(t32).split(v2), n6 = /([.?@])?(.*)/.exec(i42);
953
- r42.push({ type: 1, index: h4, name: n6[2], strings: s32, ctor: "." === n6[1] ? Y : "?" === n6[1] ? Z : "@" === n6[1] ? q : G }), e42.removeAttribute(t32);
954
- } else t32.startsWith(v2) && (r42.push({ type: 6, index: h4 }), e42.removeAttribute(t32));
955
- if (M2.test(e42.tagName)) {
956
- const t32 = e42.textContent.split(v2), i42 = t32.length - 1;
957
- if (i42 > 0) {
958
- e42.textContent = c32 ? c32.emptyScript : "";
959
- for (let s32 = 0; s32 < i42; s32++) e42.append(t32[s32], lt()), I2.nextNode(), r42.push({ type: 2, index: ++h4 });
960
- e42.append(t32[i42], lt());
961
- }
962
- }
963
- } else if (8 === e42.nodeType) if (e42.data === m2) r42.push({ type: 2, index: h4 });
964
- else {
965
- let t32 = -1;
966
- for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r42.push({ type: 7, index: h4 }), t32 += v2.length - 1;
967
- }
968
- h4++;
969
- }
970
- }
971
- static createElement(t22, i32) {
972
- const s22 = w2.createElement("template");
973
- return s22.innerHTML = t22, s22;
974
- }
975
- };
976
- function z2(t22, i32, s22 = t22, e42) {
977
- if (i32 === R2) return i32;
978
- let h4 = void 0 !== e42 ? s22.o?.[e42] : s22.l;
979
- const o42 = st(i32) ? void 0 : i32._$litDirective$;
980
- return h4?.constructor !== o42 && (h4?._$AO?.(false), void 0 === o42 ? h4 = void 0 : (h4 = new o42(t22), h4._$AT(t22, s22, e42)), void 0 !== e42 ? (s22.o ??= [])[e42] = h4 : s22.l = h4), void 0 !== h4 && (i32 = z2(t22, h4._$AS(t22, i32.values), h4, e42)), i32;
981
- }
982
- var F = class {
983
- constructor(t22, i32) {
984
- this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32;
985
- }
986
- get parentNode() {
987
- return this._$AM.parentNode;
988
- }
989
- get _$AU() {
990
- return this._$AM._$AU;
991
- }
992
- u(t22) {
993
- const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true);
994
- I2.currentNode = e42;
995
- let h4 = I2.nextNode(), o42 = 0, n52 = 0, r42 = s22[0];
996
- for (; void 0 !== r42; ) {
997
- if (o42 === r42.index) {
998
- let i42;
999
- 2 === r42.type ? i42 = new et(h4, h4.nextSibling, this, t22) : 1 === r42.type ? i42 = new r42.ctor(h4, r42.name, r42.strings, this, t22) : 6 === r42.type && (i42 = new K(h4, this, t22)), this._$AV.push(i42), r42 = s22[++n52];
1000
- }
1001
- o42 !== r42?.index && (h4 = I2.nextNode(), o42++);
1002
- }
1003
- return I2.currentNode = w2, e42;
1004
- }
1005
- p(t22) {
1006
- let i32 = 0;
1007
- for (const s22 of this._$AV) void 0 !== s22 && (void 0 !== s22.strings ? (s22._$AI(t22, s22, i32), i32 += s22.strings.length - 2) : s22._$AI(t22[i32])), i32++;
1008
- }
1009
- };
1010
- var et = class _et {
1011
- get _$AU() {
1012
- return this._$AM?._$AU ?? this.v;
1013
- }
1014
- constructor(t22, i32, s22, e42) {
1015
- this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t22, this._$AB = i32, this._$AM = s22, this.options = e42, this.v = e42?.isConnected ?? true;
1016
- }
1017
- get parentNode() {
1018
- let t22 = this._$AA.parentNode;
1019
- const i32 = this._$AM;
1020
- return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22;
1021
- }
1022
- get startNode() {
1023
- return this._$AA;
1024
- }
1025
- get endNode() {
1026
- return this._$AB;
1027
- }
1028
- _$AI(t22, i32 = this) {
1029
- t22 = z2(this, t22, i32), st(t22) ? t22 === D || null == t22 || "" === t22 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t22 !== this._$AH && t22 !== R2 && this._(t22) : void 0 !== t22._$litType$ ? this.$(t22) : void 0 !== t22.nodeType ? this.T(t22) : $2(t22) ? this.k(t22) : this._(t22);
1030
- }
1031
- O(t22) {
1032
- return this._$AA.parentNode.insertBefore(t22, this._$AB);
1033
- }
1034
- T(t22) {
1035
- this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22));
1036
- }
1037
- _(t22) {
1038
- this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22;
1039
- }
1040
- $(t22) {
1041
- const { values: i32, _$litType$: s22 } = t22, e42 = "number" == typeof s22 ? this._$AC(t22) : (void 0 === s22.el && (s22.el = B2.createElement(N2(s22.h, s22.h[0]), this.options)), s22);
1042
- if (this._$AH?._$AD === e42) this._$AH.p(i32);
1043
- else {
1044
- const t32 = new F(e42, this), s32 = t32.u(this.options);
1045
- t32.p(i32), this.T(s32), this._$AH = t32;
1046
- }
1047
- }
1048
- _$AC(t22) {
1049
- let i32 = V2.get(t22.strings);
1050
- return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32;
1051
- }
1052
- k(t22) {
1053
- g2(this._$AH) || (this._$AH = [], this._$AR());
1054
- const i32 = this._$AH;
1055
- let s22, e42 = 0;
1056
- for (const h4 of t22) e42 === i32.length ? i32.push(s22 = new _et(this.O(lt()), this.O(lt()), this, this.options)) : s22 = i32[e42], s22._$AI(h4), e42++;
1057
- e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42);
1058
- }
1059
- _$AR(t22 = this._$AA.nextSibling, i32) {
1060
- for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) {
1061
- const i42 = t22.nextSibling;
1062
- t22.remove(), t22 = i42;
1063
- }
1064
- }
1065
- setConnected(t22) {
1066
- void 0 === this._$AM && (this.v = t22, this._$AP?.(t22));
1067
- }
1068
- };
1069
- var G = class {
1070
- get tagName() {
1071
- return this.element.tagName;
1072
- }
1073
- get _$AU() {
1074
- return this._$AM._$AU;
1075
- }
1076
- constructor(t22, i32, s22, e42, h4) {
1077
- this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t22, this.name = i32, this._$AM = e42, this.options = h4, s22.length > 2 || "" !== s22[0] || "" !== s22[1] ? (this._$AH = Array(s22.length - 1).fill(new String()), this.strings = s22) : this._$AH = D;
1078
- }
1079
- _$AI(t22, i32 = this, s22, e42) {
1080
- const h4 = this.strings;
1081
- let o42 = false;
1082
- if (void 0 === h4) t22 = z2(this, t22, i32, 0), o42 = !st(t22) || t22 !== this._$AH && t22 !== R2, o42 && (this._$AH = t22);
1083
- else {
1084
- const e52 = t22;
1085
- let n52, r42;
1086
- for (t22 = h4[0], n52 = 0; n52 < h4.length - 1; n52++) r42 = z2(this, e52[s22 + n52], i32, n52), r42 === R2 && (r42 = this._$AH[n52]), o42 ||= !st(r42) || r42 !== this._$AH[n52], r42 === D ? t22 = D : t22 !== D && (t22 += (r42 ?? "") + h4[n52 + 1]), this._$AH[n52] = r42;
1087
- }
1088
- o42 && !e42 && this.j(t22);
1089
- }
1090
- j(t22) {
1091
- t22 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? "");
1092
- }
1093
- };
1094
- var Y = class extends G {
1095
- constructor() {
1096
- super(...arguments), this.type = 3;
1097
- }
1098
- j(t22) {
1099
- this.element[this.name] = t22 === D ? void 0 : t22;
1100
- }
1101
- };
1102
- var Z = class extends G {
1103
- constructor() {
1104
- super(...arguments), this.type = 4;
1105
- }
1106
- j(t22) {
1107
- this.element.toggleAttribute(this.name, !!t22 && t22 !== D);
1108
- }
1109
- };
1110
- var q = class extends G {
1111
- constructor(t22, i32, s22, e42, h4) {
1112
- super(t22, i32, s22, e42, h4), this.type = 5;
1113
- }
1114
- _$AI(t22, i32 = this) {
1115
- if ((t22 = z2(this, t22, i32, 0) ?? D) === R2) return;
1116
- const s22 = this._$AH, e42 = t22 === D && s22 !== D || t22.capture !== s22.capture || t22.once !== s22.once || t22.passive !== s22.passive, h4 = t22 !== D && (s22 === D || e42);
1117
- e42 && this.element.removeEventListener(this.name, this, s22), h4 && this.element.addEventListener(this.name, this, t22), this._$AH = t22;
1118
- }
1119
- handleEvent(t22) {
1120
- "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22);
1121
- }
1122
- };
1123
- var K = class {
1124
- constructor(t22, i32, s22) {
1125
- this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22;
1126
- }
1127
- get _$AU() {
1128
- return this._$AM._$AU;
1129
- }
1130
- _$AI(t22) {
1131
- z2(this, t22);
1132
- }
1133
- };
1134
- var Re = n32.litHtmlPolyfillSupport;
1135
- Re?.(B2, et), (n32.litHtmlVersions ??= []).push("3.2.0");
1136
- var Q = (t22, i32, s22) => {
1137
- const e42 = s22?.renderBefore ?? i32;
1138
- let h4 = e42._$litPart$;
1139
- if (void 0 === h4) {
1140
- const t32 = s22?.renderBefore ?? null;
1141
- e42._$litPart$ = h4 = new et(i32.insertBefore(lt(), t32), t32, void 0, s22 ?? {});
1142
- }
1143
- return h4._$AI(t22), h4;
1144
- };
1145
- var h32 = class extends b3 {
1146
- constructor() {
1147
- super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
1148
- }
1149
- createRenderRoot() {
1150
- const t22 = super.createRenderRoot();
1151
- return this.renderOptions.renderBefore ??= t22.firstChild, t22;
1152
- }
1153
- update(t22) {
1154
- const e42 = this.render();
1155
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q(e42, this.renderRoot, this.renderOptions);
1156
- }
1157
- connectedCallback() {
1158
- super.connectedCallback(), this.o?.setConnected(true);
1159
- }
1160
- disconnectedCallback() {
1161
- super.disconnectedCallback(), this.o?.setConnected(false);
1162
- }
1163
- render() {
1164
- return R2;
1165
- }
1166
- };
1167
- h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 });
1168
- var f32 = globalThis.litElementPolyfillSupport;
1169
- f32?.({ LitElement: h32 });
1170
- (globalThis.litElementVersions ??= []).push("4.1.0");
1171
- var o32 = { attribute: true, type: String, converter: u3, reflect: false, hasChanged: f3 };
1172
- var r32 = (t22 = o32, e42, r42) => {
1173
- const { kind: n52, metadata: i32 } = r42;
1174
- let s22 = globalThis.litPropertyMetadata.get(i32);
1175
- if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r42.name, t22), "accessor" === n52) {
1176
- const { name: o42 } = r42;
1177
- return { set(r52) {
1178
- const n6 = e42.get.call(this);
1179
- e42.set.call(this, r52), this.requestUpdate(o42, n6, t22);
1180
- }, init(e52) {
1181
- return void 0 !== e52 && this.P(o42, void 0, t22), e52;
1182
- } };
1183
- }
1184
- if ("setter" === n52) {
1185
- const { name: o42 } = r42;
1186
- return function(r52) {
1187
- const n6 = this[o42];
1188
- e42.call(this, r52), this.requestUpdate(o42, n6, t22);
1189
- };
1190
- }
1191
- throw Error("Unsupported decorator location: " + n52);
1192
- };
1193
- function n42(t22) {
1194
- return (e42, o42) => "object" == typeof o42 ? r32(t22, e42, o42) : ((t32, e52, o52) => {
1195
- const r42 = e52.hasOwnProperty(o52);
1196
- return e52.constructor.createProperty(o52, r42 ? { ...t32, wrapped: true } : t32), r42 ? Object.getOwnPropertyDescriptor(e52, o52) : void 0;
1197
- })(t22, e42, o42);
1198
- }
1199
- var appliedClassMixins = /* @__PURE__ */ new WeakMap();
1200
- function wasMixinPreviouslyApplied(mixin, superClass) {
1201
- let klass = superClass;
1202
- while (klass) {
1203
- if (appliedClassMixins.get(klass) === mixin) {
1204
- return true;
1205
- }
1206
- klass = Object.getPrototypeOf(klass);
1207
- }
1208
- return false;
1209
- }
1210
- function dedupeMixin(mixin) {
1211
- return (superClass) => {
1212
- if (wasMixinPreviouslyApplied(mixin, superClass)) {
1213
- return superClass;
1214
- }
1215
- const mixedClass = mixin(superClass);
1216
- appliedClassMixins.set(mixedClass, mixin);
1217
- return mixedClass;
1218
- };
1219
- }
1220
- var version = "3.0.0";
1221
- var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []);
1222
- if (!versions.includes(version)) {
1223
- versions.push(version);
1224
- }
1225
- var ScopedElementsMixinImplementation = (superclass) => (
1226
- /** @type {ScopedElementsHost} */
1227
- class ScopedElementsHost extends superclass {
1228
- /**
1229
- * Obtains the scoped elements definitions map if specified.
1230
- *
1231
- * @type {ScopedElementsMap=}
1232
- */
1233
- static scopedElements;
1234
- static get scopedElementsVersion() {
1235
- return version;
1236
- }
1237
- /** @type {CustomElementRegistry=} */
1238
- static __registry;
1239
- /**
1240
- * Obtains the CustomElementRegistry associated to the ShadowRoot.
1241
- *
1242
- * @returns {CustomElementRegistry=}
1243
- */
1244
- get registry() {
1245
- return (
1246
- /** @type {typeof ScopedElementsHost} */
1247
- this.constructor.__registry
1248
- );
1249
- }
1250
- /**
1251
- * Set the CustomElementRegistry associated to the ShadowRoot
1252
- *
1253
- * @param {CustomElementRegistry} registry
1254
- */
1255
- set registry(registry) {
1256
- this.constructor.__registry = registry;
1257
- }
1258
- /**
1259
- * @param {ShadowRootInit} options
1260
- * @returns {ShadowRoot}
1261
- */
1262
- attachShadow(options) {
1263
- const { scopedElements } = (
1264
- /** @type {typeof ScopedElementsHost} */
1265
- this.constructor
1266
- );
1267
- const shouldCreateRegistry = !this.registry || // @ts-ignore
1268
- this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry");
1269
- if (shouldCreateRegistry) {
1270
- this.registry = new CustomElementRegistry();
1271
- for (const [tagName, klass] of Object.entries(scopedElements ?? {})) {
1272
- this.registry.define(tagName, klass);
1273
- }
1274
- }
1275
- return super.attachShadow({
1276
- ...options,
1277
- // The polyfill currently expects the registry to be passed as `customElements`
1278
- customElements: this.registry,
1279
- // But the proposal has moved forward, and renamed it to `registry`
1280
- // For backwards compatibility, we pass it as both
1281
- registry: this.registry
1282
- });
1283
- }
1284
- }
1285
- );
1286
- var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);
1287
- var ScopedElementsMixinImplementation2 = (superclass) => (
1288
- /** @type {ScopedElementsHost} */
1289
- class ScopedElementsHost extends ScopedElementsMixin(superclass) {
1290
- createRenderRoot() {
1291
- const { shadowRootOptions, elementStyles } = (
1292
- /** @type {TypeofLitElement} */
1293
- this.constructor
1294
- );
1295
- const shadowRoot = this.attachShadow(shadowRootOptions);
1296
- this.renderOptions.creationScope = shadowRoot;
1297
- S3(shadowRoot, elementStyles);
1298
- this.renderOptions.renderBefore ??= shadowRoot.firstChild;
1299
- return shadowRoot;
1300
- }
1301
- }
1302
- );
1303
- var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2);
1304
- var _lang_dec;
1305
- var _contentEditable_dec;
1306
- var _a;
1307
- var _init;
1308
- var _contentEditable;
1309
- var _lang;
1310
- var LitElementWw = class extends (_a = ScopedElementsMixin2(h32), _contentEditable_dec = [n42({ type: String, attribute: true, reflect: true })], _lang_dec = [n42({ type: String, attribute: true, reflect: true })], _a) {
1311
- constructor() {
1312
- super(...arguments);
1313
- __runInitializers(_init, 5, this);
1314
- __publicField(this, "options");
1315
- __publicField(this, "actions", {});
1316
- __publicField(this, "localize");
1317
- __privateAdd(this, _contentEditable, __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
1318
- __privateAdd(this, _lang, "");
1319
- __publicField(this, "_inTransaction", false);
1320
- }
1321
- get lang() {
1322
- return (__privateGet(this, _lang) || this.parentElement?.closest("[lang]")?.lang) ?? "";
1323
- }
1324
- set lang(value) {
1325
- __privateSet(this, _lang, value);
1326
- this.localize?.setLocale(value).finally(() => this.requestUpdate("lang"));
1327
- }
1328
- connectedCallback() {
1329
- super.connectedCallback();
1330
- this.localize?.setLocale(this.lang).finally(() => this.requestUpdate());
1331
- this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22)));
1332
- }
1333
- };
1334
- _init = __decoratorStart(_a);
1335
- _contentEditable = /* @__PURE__ */ new WeakMap();
1336
- _lang = /* @__PURE__ */ new WeakMap();
1337
- __decorateElement(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable);
1338
- __decorateElement(_init, 3, "lang", _lang_dec, LitElementWw);
1339
- __decoratorMetadata(_init, LitElementWw);
1340
- __publicField(LitElementWw, "shadowRootOptions", { ...h32.shadowRootOptions });
1341
- __publicField(LitElementWw, "scopedElements", {});
1342
- __publicField(LitElementWw, "options", {});
1343
- __publicField(LitElementWw, "actions", {});
1344
-
1345
- // components/geogebra-app.ts
1346
- var GeogebraApp = class extends LitElementWw {
1347
- static styles = i`
1348
- iframe {
1349
- border: none;
1350
- width: 100%;
1351
- aspect-ratio: 16/9;
1352
- }
1353
- `;
1354
- ggbStyles;
1355
- type = "classic";
1356
- width = 800;
1357
- height = 450;
1358
- // base64, material ID, file url
1359
- #src;
1360
- get src() {
1361
- return this.#src;
1362
- }
1363
- set src(_3) {
1364
- this.#src = _3;
1365
- }
1366
- borderColor = "gray";
1367
- borderRadius = 1;
1368
- enableRightClick = true;
1369
- enableLabelDrags = true;
1370
- enableShiftDragZoom = true;
1371
- showZoomButtons = false;
1372
- errorDialogsActive = true;
1373
- showMenuBar = false;
1374
- showToolBar = false;
1375
- showToolBarHelp = false;
1376
- customToolBar;
1377
- showAlgebraInput = true;
1378
- showResetIcon = false;
1379
- language;
1380
- country;
1381
- appletId;
1382
- allowStyleBar = false;
1383
- randomize = true;
1384
- randomSeed;
1385
- useBrowserForJs = false;
1386
- showLogging = false;
1387
- capturingThreshold = 3;
1388
- enableFileFeatures = true;
1389
- enableUndoRedo = true;
1390
- perspective;
1391
- enable3d;
1392
- enableCAS;
1393
- algebraInputPosition;
1394
- preventFocus = false;
1395
- scaleContainerClass;
1396
- autoHeight = true;
1397
- allowUpscale = false;
1398
- playButton = false;
1399
- scale = 1;
1400
- showAnimationButton = false;
1401
- showFullscreenButton = false;
1402
- showSuggestionButtons = false;
1403
- showStartTooltip = false;
1404
- rounding;
1405
- buttonShadows = false;
1406
- buttonRounding = 0.2;
1407
- buttonBorderColor;
1408
- editorBackgroundColor;
1409
- editorForegroundColor;
1410
- textmode = false;
1411
- showKeyboardOnFocus;
1412
- keyboardType;
1413
- transparentGraphics = false;
1414
- disabledJavaScript = false;
1415
- detachedKeyboardParent;
1416
- get ggbProperties() {
1417
- const { appletId: id, type: appName, width, height, borderColor, borderRadius, enableLabelDrags, enableShiftDragZoom, showZoomButtons, errorDialogsActive, showMenuBar, showToolBar, showToolBarHelp, customToolBar, showAlgebraInput, showResetIcon, language, country, allowStyleBar, randomize, randomSeed, useBrowserForJs, showLogging, capturingThreshold, enableFileFeatures, perspective, enable3d, enableCAS, algebraInputPosition, preventFocus, scaleContainerClass, autoHeight, allowUpscale, playButton, scale, showAnimationButton, showFullscreenButton, showSuggestionButtons, showStartTooltip, rounding, buttonShadows, buttonRounding, buttonBorderColor, editorBackgroundColor, editorForegroundColor, textmode, showKeyboardOnFocus, keyboardType, transparentGraphics, disabledJavaScript, detachedKeyboardParent } = this;
1418
- let filename, material_id, ggbBase64;
1419
- if (this.src && this.src.startsWith("data:")) {
1420
- ggbBase64 = this.src.split(",").at(-1);
1421
- } else if (this.src && this.src.startsWith("ggbid:")) {
1422
- material_id = this.src.slice("ggbid:".length);
1423
- } else if (this.src) {
1424
- filename = this.src;
1425
- }
1426
- return { id, appName, filename, material_id, ggbBase64, width, height, borderColor, borderRadius, enableLabelDrags, enableShiftDragZoom, showZoomButtons, errorDialogsActive, showMenuBar, showToolBar, showToolBarHelp, customToolBar, showAlgebraInput, showResetIcon, language: language ?? this.lang, country, allowStyleBar, randomize, randomSeed, useBrowserForJs, showLogging, capturingThreshold, enableFileFeatures, perspective, enable3d, enableCAS, algebraInputPosition, preventFocus, scaleContainerClass, autoHeight, allowUpscale, playButton, scale, showAnimationButton, showFullscreenButton, showSuggestionButtons, showStartTooltip, rounding, buttonShadows, buttonRounding, buttonBorderColor, editorBackgroundColor, editorForegroundColor, textmode, showKeyboardOnFocus, keyboardType, transparentGraphics, disabledJavaScript, detachedKeyboardParent };
1427
- }
1428
- updateSrc = () => {
1429
- if (!this.updatingGgb) {
1430
- this.src = `data:application/vnd.geogebra.file;base64,${this.api.getBase64()}`;
1431
- }
1432
- };
1433
- connectedCallback() {
1434
- super.connectedCallback();
1435
- this.apiReady = new Promise((r7) => {
1436
- this.addEventListener("ggb-load", (e6) => {
1437
- r7(e6.detail.api);
1438
- this.api = e6.detail.api;
1439
- this.api.registerAddListener(this.updateSrc);
1440
- this.api.registerClearListener(this.updateSrc);
1441
- this.api.registerUpdateListener(this.updateSrc);
1442
- this.api.registerRenameListener(this.updateSrc);
1443
- this.api.registerRemoveListener(this.updateSrc);
1444
- });
1445
- });
1446
- }
1447
- updatingGgb = false;
1448
- updated(changed) {
1449
- if (changed.has("src") && this.src && this.src.split(",").at(-1) !== this?.api?.getBase64()) {
1450
- this.updatingGgb = true;
1451
- this?.api?.setBase64(this.src.split(",").at(-1), () => this.updatingGgb = false);
1452
- } else if (changed.has("src") && !this.src) {
1453
- this.updatingGgb = true;
1454
- this?.api?.setBase64("", () => this.updatingGgb = false);
1455
- }
1456
- }
1457
- apiReady;
1458
- api;
1459
- initializeIFrame(e6) {
1460
- const iframe = e6.target;
1461
- const doc = iframe.contentDocument;
1462
- const win = iframe.contentWindow;
1463
- doc.body.style.margin = "0";
1464
- if (this.ggbStyles) {
1465
- const style = doc.createElement("style");
1466
- style.textContent = this.ggbStyles;
1467
- doc.head.append(style);
1468
- }
1469
- doc.body.addEventListener("focusin", () => this.dispatchEvent(new FocusEvent("focus", { bubbles: true, composed: true })));
1470
- const ggbEl = doc.createElement("div");
1471
- ggbEl.id = "ggb-element";
1472
- doc.body.append(ggbEl);
1473
- const deployScript = doc.createElement("script");
1474
- deployScript.src = "https://www.geogebra.org/apps/deployggb.js";
1475
- deployScript.addEventListener("load", () => {
1476
- const createScript = doc.createElement("script");
1477
- createScript.textContent = `
1478
- const applet = new GGBApplet({${JSON.stringify(this.ggbProperties).slice(1, -1)}, appletOnLoad: api => document.dispatchEvent(new CustomEvent("ggb-load", {bubbles: true, composed: true, detail: {api}}))})
1479
- applet.inject("ggb-element")
1480
- `;
1481
- doc.addEventListener("ggb-load", (e7) => this.dispatchEvent(new CustomEvent("ggb-load", { bubbles: true, composed: true, detail: e7.detail })));
1482
- doc.body.append(createScript);
1483
- });
1484
- doc.body.append(deployScript);
1485
- }
1486
- render() {
1487
- return x`
1488
- <iframe id="ggb" @load=${this.initializeIFrame}></iframe>
1489
- `;
1490
- }
1491
- };
1492
- __decorateClass([
1493
- n3({ type: String })
1494
- ], GeogebraApp.prototype, "ggbStyles", 2);
1495
- __decorateClass([
1496
- n3({ reflect: true })
1497
- ], GeogebraApp.prototype, "type", 2);
1498
- __decorateClass([
1499
- n3({ type: Number, reflect: true })
1500
- ], GeogebraApp.prototype, "width", 2);
1501
- __decorateClass([
1502
- n3({ type: Number, reflect: true })
1503
- ], GeogebraApp.prototype, "height", 2);
1504
- __decorateClass([
1505
- n3({ type: String, attribute: true, reflect: true })
1506
- ], GeogebraApp.prototype, "src", 1);
1507
- __decorateClass([
1508
- n3({ type: String, reflect: true })
1509
- ], GeogebraApp.prototype, "borderColor", 2);
1510
- __decorateClass([
1511
- n3({ type: Number, reflect: true })
1512
- ], GeogebraApp.prototype, "borderRadius", 2);
1513
- __decorateClass([
1514
- n3({ type: Boolean, reflect: true })
1515
- ], GeogebraApp.prototype, "enableRightClick", 2);
1516
- __decorateClass([
1517
- n3({ type: Boolean, reflect: true })
1518
- ], GeogebraApp.prototype, "enableLabelDrags", 2);
1519
- __decorateClass([
1520
- n3({ type: Boolean, reflect: true })
1521
- ], GeogebraApp.prototype, "enableShiftDragZoom", 2);
1522
- __decorateClass([
1523
- n3({ type: Boolean, reflect: true })
1524
- ], GeogebraApp.prototype, "showZoomButtons", 2);
1525
- __decorateClass([
1526
- n3({ type: Boolean, reflect: true })
1527
- ], GeogebraApp.prototype, "errorDialogsActive", 2);
1528
- __decorateClass([
1529
- n3({ type: Boolean, reflect: true })
1530
- ], GeogebraApp.prototype, "showMenuBar", 2);
1531
- __decorateClass([
1532
- n3({ type: Boolean, reflect: true })
1533
- ], GeogebraApp.prototype, "showToolBar", 2);
1534
- __decorateClass([
1535
- n3({ type: Boolean, reflect: true })
1536
- ], GeogebraApp.prototype, "showToolBarHelp", 2);
1537
- __decorateClass([
1538
- n3({ type: String, reflect: true })
1539
- ], GeogebraApp.prototype, "customToolBar", 2);
1540
- __decorateClass([
1541
- n3({ type: Boolean, reflect: true })
1542
- ], GeogebraApp.prototype, "showAlgebraInput", 2);
1543
- __decorateClass([
1544
- n3({ type: Boolean, reflect: true })
1545
- ], GeogebraApp.prototype, "showResetIcon", 2);
1546
- __decorateClass([
1547
- n3({ type: String, reflect: true })
1548
- ], GeogebraApp.prototype, "language", 2);
1549
- __decorateClass([
1550
- n3({ type: String, reflect: true })
1551
- ], GeogebraApp.prototype, "country", 2);
1552
- __decorateClass([
1553
- n3({ type: String, reflect: true })
1554
- ], GeogebraApp.prototype, "appletId", 2);
1555
- __decorateClass([
1556
- n3({ type: Boolean, reflect: true })
1557
- ], GeogebraApp.prototype, "allowStyleBar", 2);
1558
- __decorateClass([
1559
- n3({ type: Boolean, reflect: true })
1560
- ], GeogebraApp.prototype, "randomize", 2);
1561
- __decorateClass([
1562
- n3({ type: Number, reflect: true })
1563
- ], GeogebraApp.prototype, "randomSeed", 2);
1564
- __decorateClass([
1565
- n3({ type: Boolean, reflect: true })
1566
- ], GeogebraApp.prototype, "useBrowserForJs", 2);
1567
- __decorateClass([
1568
- n3({ type: Boolean, reflect: true })
1569
- ], GeogebraApp.prototype, "showLogging", 2);
1570
- __decorateClass([
1571
- n3({ type: Number, reflect: true })
1572
- ], GeogebraApp.prototype, "capturingThreshold", 2);
1573
- __decorateClass([
1574
- n3({ type: Boolean, reflect: true })
1575
- ], GeogebraApp.prototype, "enableFileFeatures", 2);
1576
- __decorateClass([
1577
- n3({ type: Boolean, reflect: true })
1578
- ], GeogebraApp.prototype, "enableUndoRedo", 2);
1579
- __decorateClass([
1580
- n3({ type: String, reflect: true })
1581
- ], GeogebraApp.prototype, "perspective", 2);
1582
- __decorateClass([
1583
- n3({ type: Boolean, reflect: true })
1584
- ], GeogebraApp.prototype, "enable3d", 2);
1585
- __decorateClass([
1586
- n3({ type: Boolean, reflect: true })
1587
- ], GeogebraApp.prototype, "enableCAS", 2);
1588
- __decorateClass([
1589
- n3({ type: String, reflect: true })
1590
- ], GeogebraApp.prototype, "algebraInputPosition", 2);
1591
- __decorateClass([
1592
- n3({ type: Boolean, reflect: true })
1593
- ], GeogebraApp.prototype, "preventFocus", 2);
1594
- __decorateClass([
1595
- n3({ type: String, reflect: true })
1596
- ], GeogebraApp.prototype, "scaleContainerClass", 2);
1597
- __decorateClass([
1598
- n3({ type: Boolean, reflect: true })
1599
- ], GeogebraApp.prototype, "autoHeight", 2);
1600
- __decorateClass([
1601
- n3({ type: Boolean, reflect: true })
1602
- ], GeogebraApp.prototype, "allowUpscale", 2);
1603
- __decorateClass([
1604
- n3({ type: Boolean, reflect: true })
1605
- ], GeogebraApp.prototype, "playButton", 2);
1606
- __decorateClass([
1607
- n3({ type: Number, reflect: true })
1608
- ], GeogebraApp.prototype, "scale", 2);
1609
- __decorateClass([
1610
- n3({ type: Boolean, reflect: true })
1611
- ], GeogebraApp.prototype, "showAnimationButton", 2);
1612
- __decorateClass([
1613
- n3({ type: Boolean, reflect: true })
1614
- ], GeogebraApp.prototype, "showFullscreenButton", 2);
1615
- __decorateClass([
1616
- n3({ type: Boolean, reflect: true })
1617
- ], GeogebraApp.prototype, "showSuggestionButtons", 2);
1618
- __decorateClass([
1619
- n3({ type: Boolean, reflect: true })
1620
- ], GeogebraApp.prototype, "showStartTooltip", 2);
1621
- __decorateClass([
1622
- n3({ type: String, reflect: true })
1623
- ], GeogebraApp.prototype, "rounding", 2);
1624
- __decorateClass([
1625
- n3({ type: Boolean, reflect: true })
1626
- ], GeogebraApp.prototype, "buttonShadows", 2);
1627
- __decorateClass([
1628
- n3({ type: Number, reflect: true })
1629
- ], GeogebraApp.prototype, "buttonRounding", 2);
1630
- __decorateClass([
1631
- n3({ type: String, reflect: true })
1632
- ], GeogebraApp.prototype, "buttonBorderColor", 2);
1633
- __decorateClass([
1634
- n3({ type: String, reflect: true })
1635
- ], GeogebraApp.prototype, "editorBackgroundColor", 2);
1636
- __decorateClass([
1637
- n3({ type: String, reflect: true })
1638
- ], GeogebraApp.prototype, "editorForegroundColor", 2);
1639
- __decorateClass([
1640
- n3({ type: Boolean, reflect: true })
1641
- ], GeogebraApp.prototype, "textmode", 2);
1642
- __decorateClass([
1643
- n3({ type: Boolean, reflect: true })
1644
- ], GeogebraApp.prototype, "showKeyboardOnFocus", 2);
1645
- __decorateClass([
1646
- n3({ type: String, reflect: true })
1647
- ], GeogebraApp.prototype, "keyboardType", 2);
1648
- __decorateClass([
1649
- n3({ type: Boolean, reflect: true })
1650
- ], GeogebraApp.prototype, "transparentGraphics", 2);
1651
- __decorateClass([
1652
- n3({ type: Boolean, reflect: true })
1653
- ], GeogebraApp.prototype, "disabledJavaScript", 2);
1654
- __decorateClass([
1655
- n3({ type: String, reflect: true })
1656
- ], GeogebraApp.prototype, "detachedKeyboardParent", 2);
1657
-
1658
- // widgets/webwriter-geogebra-evaluator.ts
1659
- var WebwriterGeogebraEvaluator = class extends GeogebraApp {
1660
- type = "evaluator";
1661
- showZoomButtons = true;
1662
- showFullscreenButton = true;
1663
- };
1664
- WebwriterGeogebraEvaluator = __decorateClass([
1665
- t("webwriter-geogebra-evaluator")
1666
- ], WebwriterGeogebraEvaluator);
1667
- export {
1668
- WebwriterGeogebraEvaluator
1669
- };
1670
- /*! Bundled license information:
1671
-
1672
- @lit/reactive-element/decorators/custom-element.js:
1673
- (**
1674
- * @license
1675
- * Copyright 2017 Google LLC
1676
- * SPDX-License-Identifier: BSD-3-Clause
1677
- *)
1678
-
1679
- @lit/reactive-element/css-tag.js:
1680
- (**
1681
- * @license
1682
- * Copyright 2019 Google LLC
1683
- * SPDX-License-Identifier: BSD-3-Clause
1684
- *)
1685
-
1686
- @lit/reactive-element/reactive-element.js:
1687
- (**
1688
- * @license
1689
- * Copyright 2017 Google LLC
1690
- * SPDX-License-Identifier: BSD-3-Clause
1691
- *)
1692
-
1693
- @lit/reactive-element/decorators/property.js:
1694
- (**
1695
- * @license
1696
- * Copyright 2017 Google LLC
1697
- * SPDX-License-Identifier: BSD-3-Clause
1698
- *)
1699
-
1700
- @lit/reactive-element/decorators/state.js:
1701
- (**
1702
- * @license
1703
- * Copyright 2017 Google LLC
1704
- * SPDX-License-Identifier: BSD-3-Clause
1705
- *)
1706
-
1707
- @lit/reactive-element/decorators/event-options.js:
1708
- (**
1709
- * @license
1710
- * Copyright 2017 Google LLC
1711
- * SPDX-License-Identifier: BSD-3-Clause
1712
- *)
1713
-
1714
- @lit/reactive-element/decorators/base.js:
1715
- (**
1716
- * @license
1717
- * Copyright 2017 Google LLC
1718
- * SPDX-License-Identifier: BSD-3-Clause
1719
- *)
1720
-
1721
- @lit/reactive-element/decorators/query.js:
1722
- (**
1723
- * @license
1724
- * Copyright 2017 Google LLC
1725
- * SPDX-License-Identifier: BSD-3-Clause
1726
- *)
1727
-
1728
- @lit/reactive-element/decorators/query-all.js:
1729
- (**
1730
- * @license
1731
- * Copyright 2017 Google LLC
1732
- * SPDX-License-Identifier: BSD-3-Clause
1733
- *)
1734
-
1735
- @lit/reactive-element/decorators/query-async.js:
1736
- (**
1737
- * @license
1738
- * Copyright 2017 Google LLC
1739
- * SPDX-License-Identifier: BSD-3-Clause
1740
- *)
1741
-
1742
- @lit/reactive-element/decorators/query-assigned-elements.js:
1743
- (**
1744
- * @license
1745
- * Copyright 2021 Google LLC
1746
- * SPDX-License-Identifier: BSD-3-Clause
1747
- *)
1748
-
1749
- @lit/reactive-element/decorators/query-assigned-nodes.js:
1750
- (**
1751
- * @license
1752
- * Copyright 2017 Google LLC
1753
- * SPDX-License-Identifier: BSD-3-Clause
1754
- *)
1755
-
1756
- lit-html/lit-html.js:
1757
- (**
1758
- * @license
1759
- * Copyright 2017 Google LLC
1760
- * SPDX-License-Identifier: BSD-3-Clause
1761
- *)
1762
-
1763
- lit-element/lit-element.js:
1764
- (**
1765
- * @license
1766
- * Copyright 2017 Google LLC
1767
- * SPDX-License-Identifier: BSD-3-Clause
1768
- *)
1769
-
1770
- lit-html/is-server.js:
1771
- (**
1772
- * @license
1773
- * Copyright 2022 Google LLC
1774
- * SPDX-License-Identifier: BSD-3-Clause
1775
- *)
1776
-
1777
- @webwriter/lit/index.js:
1778
- (*! Bundled license information:
1779
-
1780
- @lit/reactive-element/css-tag.js:
1781
- (**
1782
- * @license
1783
- * Copyright 2019 Google LLC
1784
- * SPDX-License-Identifier: BSD-3-Clause
1785
- *)
1786
-
1787
- @lit/reactive-element/reactive-element.js:
1788
- (**
1789
- * @license
1790
- * Copyright 2017 Google LLC
1791
- * SPDX-License-Identifier: BSD-3-Clause
1792
- *)
1793
-
1794
- lit-html/lit-html.js:
1795
- (**
1796
- * @license
1797
- * Copyright 2017 Google LLC
1798
- * SPDX-License-Identifier: BSD-3-Clause
1799
- *)
1800
-
1801
- lit-element/lit-element.js:
1802
- (**
1803
- * @license
1804
- * Copyright 2017 Google LLC
1805
- * SPDX-License-Identifier: BSD-3-Clause
1806
- *)
1807
-
1808
- lit-html/is-server.js:
1809
- (**
1810
- * @license
1811
- * Copyright 2022 Google LLC
1812
- * SPDX-License-Identifier: BSD-3-Clause
1813
- *)
1814
-
1815
- @lit/reactive-element/decorators/custom-element.js:
1816
- (**
1817
- * @license
1818
- * Copyright 2017 Google LLC
1819
- * SPDX-License-Identifier: BSD-3-Clause
1820
- *)
1821
-
1822
- @lit/reactive-element/decorators/property.js:
1823
- (**
1824
- * @license
1825
- * Copyright 2017 Google LLC
1826
- * SPDX-License-Identifier: BSD-3-Clause
1827
- *)
1828
-
1829
- @lit/reactive-element/decorators/state.js:
1830
- (**
1831
- * @license
1832
- * Copyright 2017 Google LLC
1833
- * SPDX-License-Identifier: BSD-3-Clause
1834
- *)
1835
-
1836
- @lit/reactive-element/decorators/event-options.js:
1837
- (**
1838
- * @license
1839
- * Copyright 2017 Google LLC
1840
- * SPDX-License-Identifier: BSD-3-Clause
1841
- *)
1842
-
1843
- @lit/reactive-element/decorators/base.js:
1844
- (**
1845
- * @license
1846
- * Copyright 2017 Google LLC
1847
- * SPDX-License-Identifier: BSD-3-Clause
1848
- *)
1849
-
1850
- @lit/reactive-element/decorators/query.js:
1851
- (**
1852
- * @license
1853
- * Copyright 2017 Google LLC
1854
- * SPDX-License-Identifier: BSD-3-Clause
1855
- *)
1856
-
1857
- @lit/reactive-element/decorators/query-all.js:
1858
- (**
1859
- * @license
1860
- * Copyright 2017 Google LLC
1861
- * SPDX-License-Identifier: BSD-3-Clause
1862
- *)
1863
-
1864
- @lit/reactive-element/decorators/query-async.js:
1865
- (**
1866
- * @license
1867
- * Copyright 2017 Google LLC
1868
- * SPDX-License-Identifier: BSD-3-Clause
1869
- *)
1870
-
1871
- @lit/reactive-element/decorators/query-assigned-elements.js:
1872
- (**
1873
- * @license
1874
- * Copyright 2021 Google LLC
1875
- * SPDX-License-Identifier: BSD-3-Clause
1876
- *)
1877
-
1878
- @lit/reactive-element/decorators/query-assigned-nodes.js:
1879
- (**
1880
- * @license
1881
- * Copyright 2017 Google LLC
1882
- * SPDX-License-Identifier: BSD-3-Clause
1883
- *)
1884
- *)
1885
- */