@folkehelseinstituttet/designsystem 0.40.0 → 0.40.1

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 (270) hide show
  1. package/decorate-DFXIek-k.js +611 -0
  2. package/decorate-DFXIek-k.js.map +1 -0
  3. package/fhi-body.js +23 -32
  4. package/fhi-body.js.map +1 -1
  5. package/fhi-button.js +90 -112
  6. package/fhi-button.js.map +1 -1
  7. package/fhi-checkbox.js +53 -66
  8. package/fhi-checkbox.js.map +1 -1
  9. package/fhi-data-table-cell.js +23 -29
  10. package/fhi-data-table-cell.js.map +1 -1
  11. package/fhi-data-table-row.js +40 -65
  12. package/fhi-data-table-row.js.map +1 -1
  13. package/fhi-data-table.js +30 -36
  14. package/fhi-data-table.js.map +1 -1
  15. package/fhi-date-input.component-Bus7CeKM.js +278 -0
  16. package/fhi-date-input.component-Bus7CeKM.js.map +1 -0
  17. package/fhi-date-input.js +2 -305
  18. package/fhi-display.js +29 -46
  19. package/fhi-display.js.map +1 -1
  20. package/fhi-flex.js +40 -50
  21. package/fhi-flex.js.map +1 -1
  22. package/fhi-grid.js +30 -46
  23. package/fhi-grid.js.map +1 -1
  24. package/fhi-headline.js +29 -46
  25. package/fhi-headline.js.map +1 -1
  26. package/fhi-icon-arrow-down-left.js +26 -43
  27. package/fhi-icon-arrow-down-left.js.map +1 -1
  28. package/fhi-icon-arrow-down-right.js +26 -43
  29. package/fhi-icon-arrow-down-right.js.map +1 -1
  30. package/fhi-icon-arrow-down.js +26 -43
  31. package/fhi-icon-arrow-down.js.map +1 -1
  32. package/fhi-icon-arrow-left.js +26 -43
  33. package/fhi-icon-arrow-left.js.map +1 -1
  34. package/fhi-icon-arrow-right-left.js +26 -43
  35. package/fhi-icon-arrow-right-left.js.map +1 -1
  36. package/fhi-icon-arrow-right.js +26 -43
  37. package/fhi-icon-arrow-right.js.map +1 -1
  38. package/fhi-icon-arrow-up-down.js +26 -43
  39. package/fhi-icon-arrow-up-down.js.map +1 -1
  40. package/fhi-icon-arrow-up-left.js +26 -43
  41. package/fhi-icon-arrow-up-left.js.map +1 -1
  42. package/fhi-icon-arrow-up-right.js +26 -43
  43. package/fhi-icon-arrow-up-right.js.map +1 -1
  44. package/fhi-icon-arrow-up.js +26 -43
  45. package/fhi-icon-arrow-up.js.map +1 -1
  46. package/fhi-icon-bell.js +26 -43
  47. package/fhi-icon-bell.js.map +1 -1
  48. package/fhi-icon-calendar-clock.js +26 -43
  49. package/fhi-icon-calendar-clock.js.map +1 -1
  50. package/fhi-icon-calendar.js +26 -43
  51. package/fhi-icon-calendar.js.map +1 -1
  52. package/fhi-icon-chart-bar-stacked.js +26 -43
  53. package/fhi-icon-chart-bar-stacked.js.map +1 -1
  54. package/fhi-icon-chart-bar.js +26 -43
  55. package/fhi-icon-chart-bar.js.map +1 -1
  56. package/fhi-icon-chart-column-stacked.js +26 -43
  57. package/fhi-icon-chart-column-stacked.js.map +1 -1
  58. package/fhi-icon-chart-column.js +26 -43
  59. package/fhi-icon-chart-column.js.map +1 -1
  60. package/fhi-icon-chart-line.js +26 -43
  61. package/fhi-icon-chart-line.js.map +1 -1
  62. package/fhi-icon-chart-no-axes-combined.js +26 -43
  63. package/fhi-icon-chart-no-axes-combined.js.map +1 -1
  64. package/fhi-icon-chart-pie.js +26 -43
  65. package/fhi-icon-chart-pie.js.map +1 -1
  66. package/fhi-icon-check.js +26 -43
  67. package/fhi-icon-check.js.map +1 -1
  68. package/fhi-icon-chevron-down.js +26 -43
  69. package/fhi-icon-chevron-down.js.map +1 -1
  70. package/fhi-icon-chevron-left.js +26 -43
  71. package/fhi-icon-chevron-left.js.map +1 -1
  72. package/fhi-icon-chevron-right.js +26 -43
  73. package/fhi-icon-chevron-right.js.map +1 -1
  74. package/fhi-icon-chevron-up.js +26 -43
  75. package/fhi-icon-chevron-up.js.map +1 -1
  76. package/fhi-icon-chevrons-down.js +26 -43
  77. package/fhi-icon-chevrons-down.js.map +1 -1
  78. package/fhi-icon-chevrons-left.js +26 -43
  79. package/fhi-icon-chevrons-left.js.map +1 -1
  80. package/fhi-icon-chevrons-right.js +26 -43
  81. package/fhi-icon-chevrons-right.js.map +1 -1
  82. package/fhi-icon-chevrons-up.js +26 -43
  83. package/fhi-icon-chevrons-up.js.map +1 -1
  84. package/fhi-icon-circle-arrow-down.js +26 -43
  85. package/fhi-icon-circle-arrow-down.js.map +1 -1
  86. package/fhi-icon-circle-arrow-left.js +26 -43
  87. package/fhi-icon-circle-arrow-left.js.map +1 -1
  88. package/fhi-icon-circle-arrow-right.js +26 -43
  89. package/fhi-icon-circle-arrow-right.js.map +1 -1
  90. package/fhi-icon-circle-arrow-up.js +26 -43
  91. package/fhi-icon-circle-arrow-up.js.map +1 -1
  92. package/fhi-icon-circle-check-big.js +26 -43
  93. package/fhi-icon-circle-check-big.js.map +1 -1
  94. package/fhi-icon-circle-check.js +26 -43
  95. package/fhi-icon-circle-check.js.map +1 -1
  96. package/fhi-icon-circle-chevron-down.js +26 -43
  97. package/fhi-icon-circle-chevron-down.js.map +1 -1
  98. package/fhi-icon-circle-chevron-left.js +26 -43
  99. package/fhi-icon-circle-chevron-left.js.map +1 -1
  100. package/fhi-icon-circle-chevron-right.js +26 -43
  101. package/fhi-icon-circle-chevron-right.js.map +1 -1
  102. package/fhi-icon-circle-chevron-up.js +26 -43
  103. package/fhi-icon-circle-chevron-up.js.map +1 -1
  104. package/fhi-icon-circle-exclamation.js +26 -43
  105. package/fhi-icon-circle-exclamation.js.map +1 -1
  106. package/fhi-icon-circle-info.js +26 -43
  107. package/fhi-icon-circle-info.js.map +1 -1
  108. package/fhi-icon-circle-minus.js +26 -43
  109. package/fhi-icon-circle-minus.js.map +1 -1
  110. package/fhi-icon-circle-plus.js +26 -43
  111. package/fhi-icon-circle-plus.js.map +1 -1
  112. package/fhi-icon-circle-question.js +26 -43
  113. package/fhi-icon-circle-question.js.map +1 -1
  114. package/fhi-icon-circle-x.js +26 -43
  115. package/fhi-icon-circle-x.js.map +1 -1
  116. package/fhi-icon-circle.js +26 -43
  117. package/fhi-icon-circle.js.map +1 -1
  118. package/fhi-icon-clock.js +26 -43
  119. package/fhi-icon-clock.js.map +1 -1
  120. package/fhi-icon-copy.js +26 -43
  121. package/fhi-icon-copy.js.map +1 -1
  122. package/fhi-icon-download.js +26 -43
  123. package/fhi-icon-download.js.map +1 -1
  124. package/fhi-icon-ellipsis-vertical.js +26 -43
  125. package/fhi-icon-ellipsis-vertical.js.map +1 -1
  126. package/fhi-icon-ellipsis.js +26 -43
  127. package/fhi-icon-ellipsis.js.map +1 -1
  128. package/fhi-icon-exclamation.js +26 -43
  129. package/fhi-icon-exclamation.js.map +1 -1
  130. package/fhi-icon-expand.js +26 -43
  131. package/fhi-icon-expand.js.map +1 -1
  132. package/fhi-icon-external-link.js +26 -43
  133. package/fhi-icon-external-link.js.map +1 -1
  134. package/fhi-icon-eye-off.js +26 -43
  135. package/fhi-icon-eye-off.js.map +1 -1
  136. package/fhi-icon-eye.js +26 -43
  137. package/fhi-icon-eye.js.map +1 -1
  138. package/fhi-icon-file-text.js +26 -43
  139. package/fhi-icon-file-text.js.map +1 -1
  140. package/fhi-icon-file.js +26 -43
  141. package/fhi-icon-file.js.map +1 -1
  142. package/fhi-icon-filter.js +26 -43
  143. package/fhi-icon-filter.js.map +1 -1
  144. package/fhi-icon-folder.js +26 -43
  145. package/fhi-icon-folder.js.map +1 -1
  146. package/fhi-icon-gear.js +26 -43
  147. package/fhi-icon-gear.js.map +1 -1
  148. package/fhi-icon-grid-9-dots.js +26 -43
  149. package/fhi-icon-grid-9-dots.js.map +1 -1
  150. package/fhi-icon-grip-horizontal.js +26 -43
  151. package/fhi-icon-grip-horizontal.js.map +1 -1
  152. package/fhi-icon-grip-vertical.js +26 -43
  153. package/fhi-icon-grip-vertical.js.map +1 -1
  154. package/fhi-icon-history.js +26 -43
  155. package/fhi-icon-history.js.map +1 -1
  156. package/fhi-icon-info.js +26 -43
  157. package/fhi-icon-info.js.map +1 -1
  158. package/fhi-icon-link-2-off.js +26 -43
  159. package/fhi-icon-link-2-off.js.map +1 -1
  160. package/fhi-icon-link-2.js +26 -43
  161. package/fhi-icon-link-2.js.map +1 -1
  162. package/fhi-icon-link.js +26 -43
  163. package/fhi-icon-link.js.map +1 -1
  164. package/fhi-icon-lock-open.js +26 -43
  165. package/fhi-icon-lock-open.js.map +1 -1
  166. package/fhi-icon-lock.js +26 -43
  167. package/fhi-icon-lock.js.map +1 -1
  168. package/fhi-icon-log-in.js +26 -43
  169. package/fhi-icon-log-in.js.map +1 -1
  170. package/fhi-icon-log-out.js +26 -43
  171. package/fhi-icon-log-out.js.map +1 -1
  172. package/fhi-icon-mail.js +26 -43
  173. package/fhi-icon-mail.js.map +1 -1
  174. package/fhi-icon-map-pin.js +26 -43
  175. package/fhi-icon-map-pin.js.map +1 -1
  176. package/fhi-icon-menu.js +26 -43
  177. package/fhi-icon-menu.js.map +1 -1
  178. package/fhi-icon-message.js +26 -43
  179. package/fhi-icon-message.js.map +1 -1
  180. package/fhi-icon-minus.js +26 -43
  181. package/fhi-icon-minus.js.map +1 -1
  182. package/fhi-icon-octagon-alert.js +26 -43
  183. package/fhi-icon-octagon-alert.js.map +1 -1
  184. package/fhi-icon-paperclip.js +26 -43
  185. package/fhi-icon-paperclip.js.map +1 -1
  186. package/fhi-icon-pencil.js +26 -43
  187. package/fhi-icon-pencil.js.map +1 -1
  188. package/fhi-icon-phone.js +26 -43
  189. package/fhi-icon-phone.js.map +1 -1
  190. package/fhi-icon-pin-off.js +26 -43
  191. package/fhi-icon-pin-off.js.map +1 -1
  192. package/fhi-icon-pin.js +26 -43
  193. package/fhi-icon-pin.js.map +1 -1
  194. package/fhi-icon-plus.js +26 -43
  195. package/fhi-icon-plus.js.map +1 -1
  196. package/fhi-icon-printer.js +26 -43
  197. package/fhi-icon-printer.js.map +1 -1
  198. package/fhi-icon-question.js +26 -43
  199. package/fhi-icon-question.js.map +1 -1
  200. package/fhi-icon-refresh.js +26 -43
  201. package/fhi-icon-refresh.js.map +1 -1
  202. package/fhi-icon-rotate-left.js +26 -43
  203. package/fhi-icon-rotate-left.js.map +1 -1
  204. package/fhi-icon-rotate-right.js +26 -43
  205. package/fhi-icon-rotate-right.js.map +1 -1
  206. package/fhi-icon-search.js +26 -43
  207. package/fhi-icon-search.js.map +1 -1
  208. package/fhi-icon-send.js +26 -43
  209. package/fhi-icon-send.js.map +1 -1
  210. package/fhi-icon-share.js +26 -43
  211. package/fhi-icon-share.js.map +1 -1
  212. package/fhi-icon-sheet.js +26 -43
  213. package/fhi-icon-sheet.js.map +1 -1
  214. package/fhi-icon-square-check-big.js +26 -43
  215. package/fhi-icon-square-check-big.js.map +1 -1
  216. package/fhi-icon-square-check.js +26 -43
  217. package/fhi-icon-square-check.js.map +1 -1
  218. package/fhi-icon-square-pen.js +26 -43
  219. package/fhi-icon-square-pen.js.map +1 -1
  220. package/fhi-icon-square-x.js +26 -43
  221. package/fhi-icon-square-x.js.map +1 -1
  222. package/fhi-icon-square.js +26 -43
  223. package/fhi-icon-square.js.map +1 -1
  224. package/fhi-icon-trash.js +26 -43
  225. package/fhi-icon-trash.js.map +1 -1
  226. package/fhi-icon-triangle-alert.js +26 -43
  227. package/fhi-icon-triangle-alert.js.map +1 -1
  228. package/fhi-icon-upload.js +26 -43
  229. package/fhi-icon-upload.js.map +1 -1
  230. package/fhi-icon-user.js +26 -43
  231. package/fhi-icon-user.js.map +1 -1
  232. package/fhi-icon-x.js +26 -43
  233. package/fhi-icon-x.js.map +1 -1
  234. package/fhi-label.js +23 -32
  235. package/fhi-label.js.map +1 -1
  236. package/fhi-modal-dialog.js +76 -111
  237. package/fhi-modal-dialog.js.map +1 -1
  238. package/fhi-radio.js +91 -109
  239. package/fhi-radio.js.map +1 -1
  240. package/fhi-tag.js +32 -44
  241. package/fhi-tag.js.map +1 -1
  242. package/fhi-text-input.js +96 -126
  243. package/fhi-text-input.js.map +1 -1
  244. package/fhi-title.js +29 -46
  245. package/fhi-title.js.map +1 -1
  246. package/fhi-tooltip.component-DJNDfrHK.js +919 -0
  247. package/fhi-tooltip.component-DJNDfrHK.js.map +1 -0
  248. package/fhi-tooltip.js +2 -1162
  249. package/fonts/RobotoFlex.ttf.js.map +1 -1
  250. package/if-defined-Dl-W5B5_.js +7 -0
  251. package/if-defined-Dl-W5B5_.js.map +1 -0
  252. package/index.js +123 -369
  253. package/package.json +1 -1
  254. package/theme/default.css +1 -1
  255. package/unsafe-html-CBTN3162.js +50 -0
  256. package/unsafe-html-CBTN3162.js.map +1 -0
  257. package/web-types.json +1 -1
  258. package/base-D76d76ww.js +0 -10
  259. package/base-D76d76ww.js.map +0 -1
  260. package/fhi-date-input.js.map +0 -1
  261. package/fhi-tooltip.js.map +0 -1
  262. package/if-defined-B_sR6Mtk.js +0 -11
  263. package/if-defined-B_sR6Mtk.js.map +0 -1
  264. package/index.js.map +0 -1
  265. package/property-B2Ico5CW.js +0 -605
  266. package/property-B2Ico5CW.js.map +0 -1
  267. package/query-Ddbd72Um.js +0 -21
  268. package/query-Ddbd72Um.js.map +0 -1
  269. package/unsafe-html-DfuTUjUu.js +0 -48
  270. package/unsafe-html-DfuTUjUu.js.map +0 -1
@@ -0,0 +1,611 @@
1
+ //#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/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, ne = m ? m.emptyScript : "", re = p.reactiveElementPolyfillSupport, h = (e, t) => e, g = {
33
+ toAttribute(e, t) {
34
+ switch (t) {
35
+ case Boolean:
36
+ e = e ? ne : 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
+ }, _ = (e, t) => !l(e, t), v = {
62
+ attribute: !0,
63
+ type: String,
64
+ converter: g,
65
+ reflect: !1,
66
+ useDefault: !1,
67
+ hasChanged: _
68
+ };
69
+ Symbol.metadata ??= Symbol("metadata"), p.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
70
+ var y = 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 = v) {
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) ?? v;
104
+ }
105
+ static _$Ei() {
106
+ if (this.hasOwnProperty(h("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(h("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(h("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 ? g : 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 ? g : e.converter;
182
+ this._$Em = r;
183
+ let a = i.fromAttribute(t, e.type);
184
+ this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
185
+ }
186
+ }
187
+ requestUpdate(e, t, n, r = !1, i) {
188
+ if (e !== void 0) {
189
+ let a = this.constructor;
190
+ if (!1 === r && (i = this[e]), n ??= a.getPropertyOptions(e), !((n.hasChanged ?? _)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(a._$Eu(e, n)))) return;
191
+ this.C(e, t, n);
192
+ }
193
+ !1 === this.isUpdatePending && (this._$ES = this._$EP());
194
+ }
195
+ C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
196
+ 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));
197
+ }
198
+ async _$EP() {
199
+ this.isUpdatePending = !0;
200
+ try {
201
+ await this._$ES;
202
+ } catch (e) {
203
+ Promise.reject(e);
204
+ }
205
+ let e = this.scheduleUpdate();
206
+ return e != null && await e, !this.isUpdatePending;
207
+ }
208
+ scheduleUpdate() {
209
+ return this.performUpdate();
210
+ }
211
+ performUpdate() {
212
+ if (!this.isUpdatePending) return;
213
+ if (!this.hasUpdated) {
214
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
215
+ for (let [e, t] of this._$Ep) this[e] = t;
216
+ this._$Ep = void 0;
217
+ }
218
+ let e = this.constructor.elementProperties;
219
+ if (e.size > 0) for (let [t, n] of e) {
220
+ let { wrapped: e } = n, r = this[t];
221
+ !0 !== e || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
222
+ }
223
+ }
224
+ let e = !1, t = this._$AL;
225
+ try {
226
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((e) => e.hostUpdate?.()), this.update(t)) : this._$EM();
227
+ } catch (t) {
228
+ throw e = !1, this._$EM(), t;
229
+ }
230
+ e && this._$AE(t);
231
+ }
232
+ willUpdate(e) {}
233
+ _$AE(e) {
234
+ this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
235
+ }
236
+ _$EM() {
237
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
238
+ }
239
+ get updateComplete() {
240
+ return this.getUpdateComplete();
241
+ }
242
+ getUpdateComplete() {
243
+ return this._$ES;
244
+ }
245
+ shouldUpdate(e) {
246
+ return !0;
247
+ }
248
+ update(e) {
249
+ this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
250
+ }
251
+ updated(e) {}
252
+ firstUpdated(e) {}
253
+ };
254
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[h("elementProperties")] = /* @__PURE__ */ new Map(), y[h("finalized")] = /* @__PURE__ */ new Map(), re?.({ ReactiveElement: y }), (p.reactiveElementVersions ??= []).push("2.1.2");
255
+ //#endregion
256
+ //#region ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js
257
+ var b = globalThis, x = (e) => e, S = b.trustedTypes, C = S ? S.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, w = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, E = "?" + T, D = `<${E}>`, O = document, k = () => O.createComment(""), A = (e) => e === null || typeof e != "object" && typeof e != "function", j = Array.isArray, ie = (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, ae = ((e) => (t, ...n) => ({
258
+ _$litType$: e,
259
+ strings: t,
260
+ values: n
261
+ }))(1), B = Symbol.for("lit-noChange"), V = Symbol.for("lit-nothing"), H = /* @__PURE__ */ new WeakMap(), U = O.createTreeWalker(O, 129);
262
+ function W(e, t) {
263
+ if (!j(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
264
+ return C === void 0 ? t : C.createHTML(t);
265
+ }
266
+ var oe = (e, t) => {
267
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = N;
268
+ for (let t = 0; t < n; t++) {
269
+ let n = e[t], s, c, l = -1, u = 0;
270
+ 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);
271
+ let d = o === I && e[t + 1].startsWith("/>") ? " " : "";
272
+ a += o === N ? n + D : l >= 0 ? (r.push(s), n.slice(0, l) + w + n.slice(l) + T + d) : n + T + (l === -2 ? t : d);
273
+ }
274
+ return [W(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
275
+ }, G = class e {
276
+ constructor({ strings: t, _$litType$: n }, r) {
277
+ let i;
278
+ this.parts = [];
279
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = oe(t, n);
280
+ if (this.el = e.createElement(l, r), U.currentNode = this.el.content, n === 2 || n === 3) {
281
+ let e = this.el.content.firstChild;
282
+ e.replaceWith(...e.childNodes);
283
+ }
284
+ for (; (i = U.nextNode()) !== null && c.length < s;) {
285
+ if (i.nodeType === 1) {
286
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(w)) {
287
+ let t = u[o++], n = i.getAttribute(e).split(T), r = /([.?@])?(.*)/.exec(t);
288
+ c.push({
289
+ type: 1,
290
+ index: a,
291
+ name: r[2],
292
+ strings: n,
293
+ ctor: r[1] === "." ? ce : r[1] === "?" ? le : r[1] === "@" ? ue : J
294
+ }), i.removeAttribute(e);
295
+ } else e.startsWith(T) && (c.push({
296
+ type: 6,
297
+ index: a
298
+ }), i.removeAttribute(e));
299
+ if (z.test(i.tagName)) {
300
+ let e = i.textContent.split(T), t = e.length - 1;
301
+ if (t > 0) {
302
+ i.textContent = S ? S.emptyScript : "";
303
+ for (let n = 0; n < t; n++) i.append(e[n], k()), U.nextNode(), c.push({
304
+ type: 2,
305
+ index: ++a
306
+ });
307
+ i.append(e[t], k());
308
+ }
309
+ }
310
+ } else if (i.nodeType === 8) if (i.data === E) c.push({
311
+ type: 2,
312
+ index: a
313
+ });
314
+ else {
315
+ let e = -1;
316
+ for (; (e = i.data.indexOf(T, e + 1)) !== -1;) c.push({
317
+ type: 7,
318
+ index: a
319
+ }), e += T.length - 1;
320
+ }
321
+ a++;
322
+ }
323
+ }
324
+ static createElement(e, t) {
325
+ let n = O.createElement("template");
326
+ return n.innerHTML = e, n;
327
+ }
328
+ };
329
+ function K(e, t, n = e, r) {
330
+ if (t === B) return t;
331
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = A(t) ? void 0 : t._$litDirective$;
332
+ 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 = K(e, i._$AS(e, t.values), i, r)), t;
333
+ }
334
+ var se = class {
335
+ constructor(e, t) {
336
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
337
+ }
338
+ get parentNode() {
339
+ return this._$AM.parentNode;
340
+ }
341
+ get _$AU() {
342
+ return this._$AM._$AU;
343
+ }
344
+ u(e) {
345
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? O).importNode(t, !0);
346
+ U.currentNode = r;
347
+ let i = U.nextNode(), a = 0, o = 0, s = n[0];
348
+ for (; s !== void 0;) {
349
+ if (a === s.index) {
350
+ let t;
351
+ s.type === 2 ? t = new q(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new de(i, this, e)), this._$AV.push(t), s = n[++o];
352
+ }
353
+ a !== s?.index && (i = U.nextNode(), a++);
354
+ }
355
+ return U.currentNode = O, r;
356
+ }
357
+ p(e) {
358
+ let t = 0;
359
+ 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++;
360
+ }
361
+ }, q = class e {
362
+ get _$AU() {
363
+ return this._$AM?._$AU ?? this._$Cv;
364
+ }
365
+ constructor(e, t, n, r) {
366
+ 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;
367
+ }
368
+ get parentNode() {
369
+ let e = this._$AA.parentNode, t = this._$AM;
370
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
371
+ }
372
+ get startNode() {
373
+ return this._$AA;
374
+ }
375
+ get endNode() {
376
+ return this._$AB;
377
+ }
378
+ _$AI(e, t = this) {
379
+ e = K(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 ? ie(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
380
+ }
381
+ O(e) {
382
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
383
+ }
384
+ T(e) {
385
+ this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
386
+ }
387
+ _(e) {
388
+ this._$AH !== V && A(this._$AH) ? this._$AA.nextSibling.data = e : this.T(O.createTextNode(e)), this._$AH = e;
389
+ }
390
+ $(e) {
391
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = G.createElement(W(n.h, n.h[0]), this.options)), n);
392
+ if (this._$AH?._$AD === r) this._$AH.p(t);
393
+ else {
394
+ let e = new se(r, this), n = e.u(this.options);
395
+ e.p(t), this.T(n), this._$AH = e;
396
+ }
397
+ }
398
+ _$AC(e) {
399
+ let t = H.get(e.strings);
400
+ return t === void 0 && H.set(e.strings, t = new G(e)), t;
401
+ }
402
+ k(t) {
403
+ j(this._$AH) || (this._$AH = [], this._$AR());
404
+ let n = this._$AH, r, i = 0;
405
+ 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++;
406
+ i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
407
+ }
408
+ _$AR(e = this._$AA.nextSibling, t) {
409
+ for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
410
+ let t = x(e).nextSibling;
411
+ x(e).remove(), e = t;
412
+ }
413
+ }
414
+ setConnected(e) {
415
+ this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
416
+ }
417
+ }, J = class {
418
+ get tagName() {
419
+ return this.element.tagName;
420
+ }
421
+ get _$AU() {
422
+ return this._$AM._$AU;
423
+ }
424
+ constructor(e, t, n, r, i) {
425
+ 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;
426
+ }
427
+ _$AI(e, t = this, n, r) {
428
+ let i = this.strings, a = !1;
429
+ if (i === void 0) e = K(this, e, t, 0), a = !A(e) || e !== this._$AH && e !== B, a && (this._$AH = e);
430
+ else {
431
+ let r = e, o, s;
432
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = K(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;
433
+ }
434
+ a && !r && this.j(e);
435
+ }
436
+ j(e) {
437
+ e === V ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
438
+ }
439
+ }, ce = class extends J {
440
+ constructor() {
441
+ super(...arguments), this.type = 3;
442
+ }
443
+ j(e) {
444
+ this.element[this.name] = e === V ? void 0 : e;
445
+ }
446
+ }, le = class extends J {
447
+ constructor() {
448
+ super(...arguments), this.type = 4;
449
+ }
450
+ j(e) {
451
+ this.element.toggleAttribute(this.name, !!e && e !== V);
452
+ }
453
+ }, ue = class extends J {
454
+ constructor(e, t, n, r, i) {
455
+ super(e, t, n, r, i), this.type = 5;
456
+ }
457
+ _$AI(e, t = this) {
458
+ if ((e = K(this, e, t, 0) ?? V) === B) return;
459
+ 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);
460
+ r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
461
+ }
462
+ handleEvent(e) {
463
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
464
+ }
465
+ }, de = class {
466
+ constructor(e, t, n) {
467
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
468
+ }
469
+ get _$AU() {
470
+ return this._$AM._$AU;
471
+ }
472
+ _$AI(e) {
473
+ K(this, e);
474
+ }
475
+ }, fe = b.litHtmlPolyfillSupport;
476
+ fe?.(G, q), (b.litHtmlVersions ??= []).push("3.3.3");
477
+ var pe = (e, t, n) => {
478
+ let r = n?.renderBefore ?? t, i = r._$litPart$;
479
+ if (i === void 0) {
480
+ let e = n?.renderBefore ?? null;
481
+ r._$litPart$ = i = new q(t.insertBefore(k(), e), e, void 0, n ?? {});
482
+ }
483
+ return i._$AI(e), i;
484
+ }, Y = globalThis, X = class extends y {
485
+ constructor() {
486
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
487
+ }
488
+ createRenderRoot() {
489
+ let e = super.createRenderRoot();
490
+ return this.renderOptions.renderBefore ??= e.firstChild, e;
491
+ }
492
+ update(e) {
493
+ let t = this.render();
494
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = pe(t, this.renderRoot, this.renderOptions);
495
+ }
496
+ connectedCallback() {
497
+ super.connectedCallback(), this._$Do?.setConnected(!0);
498
+ }
499
+ disconnectedCallback() {
500
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
501
+ }
502
+ render() {
503
+ return B;
504
+ }
505
+ };
506
+ X._$litElement$ = !0, X.finalized = !0, Y.litElementHydrateSupport?.({ LitElement: X });
507
+ var me = Y.litElementPolyfillSupport;
508
+ me?.({ LitElement: X }), (Y.litElementVersions ??= []).push("4.2.2");
509
+ //#endregion
510
+ //#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js
511
+ var Z = (e) => (t, n) => {
512
+ n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
513
+ customElements.define(e, t);
514
+ });
515
+ }, he = {
516
+ attribute: !0,
517
+ type: String,
518
+ converter: g,
519
+ reflect: !1,
520
+ hasChanged: _
521
+ }, ge = (e = he, t, n) => {
522
+ let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
523
+ if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
524
+ let { name: r } = n;
525
+ return {
526
+ set(n) {
527
+ let i = t.get.call(this);
528
+ t.set.call(this, n), this.requestUpdate(r, i, e, !0, n);
529
+ },
530
+ init(t) {
531
+ return t !== void 0 && this.C(r, void 0, e, t), t;
532
+ }
533
+ };
534
+ }
535
+ if (r === "setter") {
536
+ let { name: r } = n;
537
+ return function(n) {
538
+ let i = this[r];
539
+ t.call(this, n), this.requestUpdate(r, i, e, !0, n);
540
+ };
541
+ }
542
+ throw Error("Unsupported decorator location: " + r);
543
+ };
544
+ function Q(e) {
545
+ return (t, n) => typeof n == "object" ? ge(e, t, n) : ((e, t, n) => {
546
+ let r = t.hasOwnProperty(n);
547
+ return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
548
+ })(e, t, n);
549
+ }
550
+ //#endregion
551
+ //#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js
552
+ function _e(e) {
553
+ return Q({
554
+ ...e,
555
+ state: !0,
556
+ attribute: !1
557
+ });
558
+ }
559
+ //#endregion
560
+ //#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/base.js
561
+ var $ = (e, t, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, n), n);
562
+ //#endregion
563
+ //#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js
564
+ function ve(e, t) {
565
+ return (n, r, i) => {
566
+ let a = (t) => t.renderRoot?.querySelector(e) ?? null;
567
+ if (t) {
568
+ let { get: e, set: t } = typeof r == "object" ? n : i ?? (() => {
569
+ let e = Symbol();
570
+ return {
571
+ get() {
572
+ return this[e];
573
+ },
574
+ set(t) {
575
+ this[e] = t;
576
+ }
577
+ };
578
+ })();
579
+ return $(n, r, { get() {
580
+ let n = e.call(this);
581
+ return n === void 0 && (n = a(this), (n !== null || this.hasUpdated) && t.call(this, n)), n;
582
+ } });
583
+ }
584
+ return $(n, r, { get() {
585
+ return a(this);
586
+ } });
587
+ };
588
+ }
589
+ //#endregion
590
+ //#region ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
591
+ function ye(e) {
592
+ return (t, n) => {
593
+ let { slot: r, selector: i } = e ?? {}, a = "slot" + (r ? `[name=${r}]` : ":not([name])");
594
+ return $(t, n, { get() {
595
+ let t = (this.renderRoot?.querySelector(a))?.assignedElements(e) ?? [];
596
+ return i === void 0 ? t : t.filter((e) => e.matches(i));
597
+ } });
598
+ };
599
+ }
600
+ //#endregion
601
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
602
+ function be(e, t, n, r) {
603
+ var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
604
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
605
+ 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);
606
+ return i > 3 && a && Object.defineProperty(t, n, a), a;
607
+ }
608
+ //#endregion
609
+ export { Q as a, V as c, o as d, _e as i, B as l, ye as n, Z as o, ve as r, X as s, be as t, ae as u };
610
+
611
+ //# sourceMappingURL=decorate-DFXIek-k.js.map