@maggioli-design-system/mds-table-row 5.0.0 → 5.0.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 (57) hide show
  1. package/dist/cjs/{index-41069a63.js → index-cb928c36.js} +161 -66
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-table-row.cjs.entry.js +2 -7
  4. package/dist/cjs/mds-table-row.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/floating-controller.js +180 -0
  7. package/dist/collection/common/slot.js +10 -4
  8. package/dist/collection/components/mds-table-row/mds-table-row.js +11 -6
  9. package/dist/collection/dictionary/tree.js +13 -0
  10. package/dist/collection/type/tree.js +1 -0
  11. package/dist/components/mds-table-row.js +1 -6
  12. package/dist/documentation.d.ts +8 -0
  13. package/dist/documentation.json +17 -7
  14. package/dist/esm/{index-b3683315.js → index-8134a00a.js} +161 -66
  15. package/dist/esm/loader.js +2 -2
  16. package/dist/esm/mds-table-row.entry.js +2 -7
  17. package/dist/esm/mds-table-row.js +3 -3
  18. package/dist/esm-es5/index-8134a00a.js +1 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/mds-table-row.entry.js +2 -2
  21. package/dist/esm-es5/mds-table-row.js +1 -1
  22. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  23. package/dist/mds-table-row/mds-table-row.js +1 -1
  24. package/dist/mds-table-row/p-11048c96.system.js +1 -0
  25. package/dist/mds-table-row/p-22d4881a.js +2 -0
  26. package/dist/mds-table-row/p-827e2f31.entry.js +6 -0
  27. package/dist/mds-table-row/p-88f814c9.system.js +2 -0
  28. package/{www/build/p-6e0586ed.system.entry.js → dist/mds-table-row/p-ed03fa5e.system.entry.js} +2 -2
  29. package/dist/stats.json +72 -42
  30. package/dist/types/common/floating-controller.d.ts +46 -0
  31. package/dist/types/common/slot.d.ts +2 -1
  32. package/dist/types/dictionary/tree.d.ts +4 -0
  33. package/dist/types/type/tree.d.ts +3 -0
  34. package/documentation.json +42 -12
  35. package/package.json +4 -4
  36. package/src/common/floating-controller.ts +263 -0
  37. package/src/common/slot.ts +12 -3
  38. package/src/dictionary/tree.ts +21 -0
  39. package/src/fixtures/icons.json +20 -0
  40. package/src/fixtures/iconsauce.json +6 -0
  41. package/src/type/tree.ts +12 -0
  42. package/www/build/mds-table-row.esm.js +1 -1
  43. package/www/build/mds-table-row.js +1 -1
  44. package/www/build/p-11048c96.system.js +1 -0
  45. package/www/build/p-22d4881a.js +2 -0
  46. package/www/build/p-827e2f31.entry.js +6 -0
  47. package/www/build/p-88f814c9.system.js +2 -0
  48. package/{dist/mds-table-row/p-6e0586ed.system.entry.js → www/build/p-ed03fa5e.system.entry.js} +2 -2
  49. package/dist/esm-es5/index-b3683315.js +0 -1
  50. package/dist/mds-table-row/p-883b6082.entry.js +0 -6
  51. package/dist/mds-table-row/p-94f5e1a3.system.js +0 -2
  52. package/dist/mds-table-row/p-953317ff.js +0 -2
  53. package/dist/mds-table-row/p-ca6821e0.system.js +0 -1
  54. package/www/build/p-883b6082.entry.js +0 -6
  55. package/www/build/p-94f5e1a3.system.js +0 -2
  56. package/www/build/p-953317ff.js +0 -2
  57. package/www/build/p-ca6821e0.system.js +0 -1
@@ -0,0 +1,263 @@
1
+ import {
2
+ arrow,
3
+ autoPlacement,
4
+ autoUpdate,
5
+ computePosition,
6
+ flip,
7
+ Middleware,
8
+ MiddlewareData,
9
+ offset,
10
+ shift,
11
+ } from '@floating-ui/dom'
12
+ import { FloatingUIPlacement, FloatingUIStrategy } from '@type/floating-ui'
13
+ import { cssDurationToMilliseconds } from './unit'
14
+ import { setAttributeIfEmpty } from './aria'
15
+ import { HTMLStencilElement } from '@stencil/core/internal'
16
+
17
+ export interface FloatingElement extends PositionOptions {
18
+ host: HTMLFloatingElement,
19
+ }
20
+
21
+ export interface HTMLFloatingElement extends HTMLStencilElement, PositionOptions {
22
+ visible: boolean,
23
+ }
24
+
25
+ export interface PositionOptions {
26
+ arrow: boolean;
27
+ arrowPadding: number;
28
+ autoPlacement: boolean;
29
+ flip: boolean;
30
+ offset: number;
31
+ placement: FloatingUIPlacement;
32
+ shift: boolean;
33
+ shiftPadding: number;
34
+ strategy: FloatingUIStrategy;
35
+ }
36
+
37
+ export class FloatingController {
38
+ private _caller: HTMLElement
39
+ private readonly _host: HTMLFloatingElement
40
+ arrowEl: HTMLElement | undefined
41
+
42
+ private cleanupAutoUpdate: () => void
43
+
44
+ constructor (host: HTMLFloatingElement, arrowEl?: HTMLElement) {
45
+ this._host = host
46
+ this.arrowEl = arrowEl
47
+ }
48
+
49
+ updateCaller (target: string): HTMLElement {
50
+ // search caller in document or rootNode of host (if target is in shadowDOM)
51
+ const caller = (this._host.parentElement?.shadowRoot?.querySelector(target) as HTMLElement) ??
52
+ ((this._host.getRootNode() as HTMLElement).querySelector(target) as HTMLElement)
53
+
54
+ if (!caller) {
55
+ throw Error(`Target not found: ${target}`)
56
+ }
57
+
58
+ this._caller = caller
59
+
60
+ setAttributeIfEmpty(this._caller, 'aria-haspopup', 'true')
61
+ setAttributeIfEmpty(this._caller, 'aria-controls', target)
62
+ setAttributeIfEmpty(this._host, 'role', 'menu')
63
+ setAttributeIfEmpty(this._host, 'aria-labelledby', target)
64
+ return caller
65
+ }
66
+
67
+ private readonly arrowInset = (
68
+ middleware: MiddlewareData,
69
+ arrowPosition: string,
70
+ ): { bottom?: string; left?: string; right?: string; top?: string } => {
71
+ const { arrow } = middleware
72
+ const inset = { bottom: '', left: '', right: '', top: '' }
73
+
74
+ if (arrow === undefined) {
75
+ return {}
76
+ }
77
+
78
+ switch (arrowPosition) {
79
+ case 'bottom':
80
+ inset.left = arrow.x !== null ? `${arrow.x}px` : ''
81
+ inset.top = '100%'
82
+ break
83
+ case 'left':
84
+ inset.right = '100%'
85
+ inset.top = arrow.y !== null ? `${arrow.y}px` : ''
86
+ break
87
+ case 'right':
88
+ inset.left = '100%'
89
+ inset.top = arrow.y !== null ? `${arrow.y}px` : ''
90
+ break
91
+ case 'top':
92
+ inset.left = arrow.x !== null ? `${arrow.x}px` : ''
93
+ inset.top = ''
94
+ break
95
+ default:
96
+ break
97
+ }
98
+ return inset
99
+ }
100
+
101
+ private readonly arrowTransform = (
102
+ arrowPosition: string,
103
+ ): { transform: string } => {
104
+ let transformProps = this._host.arrow && this._host.visible ? 'scale(1)' : 'scale(0)'
105
+ switch (arrowPosition) {
106
+ case 'bottom':
107
+ transformProps = `rotate(180deg) ${transformProps} translate(0, -100%)`
108
+ break
109
+ case 'left':
110
+ transformProps = `rotate(-90deg) ${transformProps} translate(50%, -50%)`
111
+ break
112
+ case 'right':
113
+ transformProps = `rotate(90deg) ${transformProps} translate(-50%, -50%)`
114
+ break
115
+ case 'top':
116
+ transformProps = `rotate(0deg) ${transformProps} translate(0, 0)`
117
+ break
118
+ default:
119
+ break
120
+ }
121
+ return { transform: transformProps }
122
+ }
123
+
124
+ private readonly arrowTransformOrigin = (
125
+ arrowPosition: string,
126
+ ): { transformOrigin: string } => {
127
+ switch (arrowPosition) {
128
+ case 'bottom':
129
+ return { transformOrigin: 'center top' }
130
+ case 'left':
131
+ return { transformOrigin: 'right center' }
132
+ case 'right':
133
+ return { transformOrigin: 'left center' }
134
+ case 'top':
135
+ return { transformOrigin: 'center bottom' }
136
+ default:
137
+ return { transformOrigin: 'center top' }
138
+ }
139
+ }
140
+
141
+ private readonly calculatePosition = (): void => {
142
+ if (!this._caller) return
143
+
144
+ const middleware: Middleware[] = new Array<Middleware>()
145
+ const config: { padding?: number } = {}
146
+
147
+ if (this._host.shiftPadding) {
148
+ config.padding = this._host.shiftPadding
149
+ }
150
+
151
+ if (this._host.autoPlacement) {
152
+ middleware.push(autoPlacement())
153
+ }
154
+
155
+ if (this._host.offset) {
156
+ middleware.push(offset(this._host.offset))
157
+ }
158
+
159
+ if (!this._host.autoPlacement && this._host.flip) {
160
+ middleware.push(flip(config))
161
+ }
162
+
163
+ if (this._host.shift) {
164
+ middleware.push(shift(config))
165
+ }
166
+
167
+ if (this.arrowEl && this._host.arrow) {
168
+ middleware.push(
169
+ arrow({
170
+ element: this.arrowEl,
171
+ padding: this._host.arrowPadding,
172
+ }),
173
+ )
174
+ }
175
+
176
+ computePosition(this._caller, this._host, {
177
+ middleware,
178
+ placement: this._host.placement,
179
+ strategy: this._host.strategy,
180
+ }).then(({ x, y, placement, middlewareData }) => {
181
+ Object.assign(this._host.style, {
182
+ left: `${x}px`,
183
+ top: `${y}px`,
184
+ })
185
+
186
+ const arrowStyle = {}
187
+ const arrowPosition = {
188
+ top: 'bottom',
189
+ right: 'left',
190
+ bottom: 'top',
191
+ left: 'right',
192
+ }[placement.split('-')[0]]
193
+
194
+ if (arrowPosition && this.arrowEl) {
195
+ Object.assign(arrowStyle, this.arrowTransform(arrowPosition))
196
+ Object.assign(
197
+ arrowStyle,
198
+ this.arrowInset(middlewareData, arrowPosition),
199
+ )
200
+ Object.assign(arrowStyle, this.arrowTransformOrigin(arrowPosition))
201
+ Object.assign(this.arrowEl.style, arrowStyle)
202
+ }
203
+ })
204
+ }
205
+
206
+ updatePosition (): void {
207
+ if (this.cleanupAutoUpdate) this.cleanupAutoUpdate()
208
+ this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition)
209
+ }
210
+
211
+ dismiss (): void {
212
+ this.cleanupAutoUpdate()
213
+ }
214
+ }
215
+
216
+ export class Backdrop {
217
+ private readonly defaultBackdropId = 'mds-backdrop'
218
+ private readonly backdropBackgroundVisible = 'rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))'
219
+ private readonly backdropBackgroundHidden = 'rgba(var(--magma-backdrop-color, 0 0 0) / 0)'
220
+
221
+ private readonly backdropId
222
+ private readonly cssBackdropZIndex
223
+ private readonly cssBackdropDuration
224
+
225
+ private backdropEl: HTMLElement
226
+ private backdropTimer: NodeJS.Timeout
227
+
228
+ constructor (backdropId?: string) {
229
+ this.backdropId = backdropId ?? this.defaultBackdropId
230
+ this.cssBackdropZIndex = `var(--${this.backdropId}-z-index)`
231
+ this.cssBackdropDuration = `var(--${this.backdropId}-duration)`
232
+ }
233
+
234
+ attachBackdrop (): void {
235
+ if (!this.backdropEl) {
236
+ this.backdropEl = document.createElement('div')
237
+ this.backdropEl.className = this.backdropId
238
+ this.backdropEl.style.inset = '0'
239
+ this.backdropEl.style.pointerEvents = 'none'
240
+ this.backdropEl.style.position = 'fixed'
241
+ this.backdropEl.style.transition = `background-color ${this.cssBackdropDuration} ease-out`
242
+ this.backdropEl.style.zIndex = this.cssBackdropZIndex
243
+ }
244
+ this.backdropEl.style.backgroundColor = this.backdropBackgroundHidden
245
+ document.body.appendChild(this.backdropEl)
246
+
247
+ clearTimeout(this.backdropTimer)
248
+ this.backdropTimer = setTimeout(() => {
249
+ this.backdropEl.style.backgroundColor = this.backdropBackgroundVisible
250
+ }, 1)
251
+ }
252
+
253
+ detachBackdrop (): void {
254
+ if (!this.backdropEl) {
255
+ return
256
+ }
257
+ this.backdropEl.style.backgroundColor = 'transparent'
258
+ clearTimeout(this.backdropTimer)
259
+ this.backdropTimer = setTimeout(() => {
260
+ this.backdropEl.remove()
261
+ }, cssDurationToMilliseconds(this.cssBackdropDuration))
262
+ }
263
+ }
@@ -1,8 +1,16 @@
1
1
  const hasSlottedElements = (el: HTMLElement, name?: string): boolean => {
2
- let query = 'slot'
3
- if (name) {
4
- query = `slot[name=${name}]`
2
+ const query = name ? `slot[name="${name}"]` : 'slot:not([name])'
3
+
4
+ const slot: HTMLSlotElement = el.shadowRoot?.querySelector(query) as HTMLSlotElement
5
+ if (slot) {
6
+ return slot.assignedElements({ flatten: true }).length > 0
5
7
  }
8
+ return false
9
+ }
10
+
11
+ const hasSlottedNodes = (el: HTMLElement, name?: string): boolean => {
12
+ const query = name ? `slot[name="${name}"]` : 'slot:not([name])'
13
+
6
14
  const slot: HTMLSlotElement = el.shadowRoot?.querySelector(query) as HTMLSlotElement
7
15
  if (slot) {
8
16
  return slot.assignedNodes().length > 0
@@ -12,4 +20,5 @@ const hasSlottedElements = (el: HTMLElement, name?: string): boolean => {
12
20
 
13
21
  export {
14
22
  hasSlottedElements,
23
+ hasSlottedNodes,
15
24
  }
@@ -0,0 +1,21 @@
1
+ const treeActionsDictionary = [
2
+ 'auto',
3
+ 'visible',
4
+ ]
5
+
6
+ const treeAppearanceDictionary = [
7
+ 'depth',
8
+ 'none',
9
+ ]
10
+
11
+ const treeIconDictionary = [
12
+ 'folder',
13
+ 'chevron',
14
+ ]
15
+
16
+ export {
17
+ treeActionsDictionary,
18
+ treeAppearanceDictionary,
19
+ treeIconDictionary,
20
+ }
21
+
@@ -7,6 +7,10 @@
7
7
  "mdi/dots-vertical",
8
8
  "mdi/email",
9
9
  "mdi/file-document-remove-outline",
10
+ "mdi/file-download-outline",
11
+ "mdi/file-upload-outline",
12
+ "mdi/folder-open",
13
+ "mdi/handshake",
10
14
  "mdi/harddisk",
11
15
  "mdi/license",
12
16
  "mdi/map-marker",
@@ -44,6 +48,7 @@
44
48
  "mgg/ai-status-processing",
45
49
  "mgg/ai-status-suspended",
46
50
  "mgg/alerts-pagopa",
51
+ "mgg/anagrafe-nazionale",
47
52
  "mgg/anpr",
48
53
  "mgg/ansc",
49
54
  "mgg/area-edificabile",
@@ -68,6 +73,7 @@
68
73
  "mgg/cancelled-sheet",
69
74
  "mgg/car-license",
70
75
  "mgg/card-stamping",
76
+ "mgg/cash-register-settings",
71
77
  "mgg/check-small",
72
78
  "mgg/checklist",
73
79
  "mgg/checklist-settings",
@@ -164,7 +170,9 @@
164
170
  "mgg/home-hammer",
165
171
  "mgg/home-link",
166
172
  "mgg/home-number",
173
+ "mgg/inad",
167
174
  "mgg/inagibile",
175
+ "mgg/inps",
168
176
  "mgg/input-calendar-costs",
169
177
  "mgg/input-calendar-period",
170
178
  "mgg/input-calendar-time",
@@ -237,7 +245,9 @@
237
245
  "mgg/places-park",
238
246
  "mgg/places-park-alt",
239
247
  "mgg/places-store-access-denied",
248
+ "mgg/pos",
240
249
  "mgg/property-owner",
250
+ "mgg/registro-imprese",
241
251
  "mgg/relevance",
242
252
  "mgg/reporting-abuse",
243
253
  "mgg/residency-permit",
@@ -332,21 +342,27 @@
332
342
  "mi/baseline/check-box",
333
343
  "mi/baseline/check-box-outline-blank",
334
344
  "mi/baseline/check-circle",
345
+ "mi/baseline/chevron-right",
335
346
  "mi/baseline/close",
336
347
  "mi/baseline/contrast",
337
348
  "mi/baseline/css",
338
349
  "mi/baseline/dark-mode",
339
350
  "mi/baseline/delete",
340
351
  "mi/baseline/description",
352
+ "mi/baseline/desk",
341
353
  "mi/baseline/directions-run",
342
354
  "mi/baseline/directions-walk",
343
355
  "mi/baseline/done",
344
356
  "mi/baseline/downhill-skiing",
357
+ "mi/baseline/draw",
345
358
  "mi/baseline/eco",
346
359
  "mi/baseline/email",
347
360
  "mi/baseline/error",
348
361
  "mi/baseline/explore",
362
+ "mi/baseline/favorite",
363
+ "mi/baseline/favorite-border",
349
364
  "mi/baseline/file-download-done",
365
+ "mi/baseline/folder",
350
366
  "mi/baseline/folder-zip",
351
367
  "mi/baseline/horizontal-rule",
352
368
  "mi/baseline/indeterminate-check-box",
@@ -356,9 +372,12 @@
356
372
  "mi/baseline/keyboard-arrow-up",
357
373
  "mi/baseline/light-mode",
358
374
  "mi/baseline/local-activity",
375
+ "mi/baseline/location-city",
359
376
  "mi/baseline/lock-open",
360
377
  "mi/baseline/login",
361
378
  "mi/baseline/logout",
379
+ "mi/baseline/meeting-room",
380
+ "mi/baseline/more-vert",
362
381
  "mi/baseline/navigate-next",
363
382
  "mi/baseline/panorama",
364
383
  "mi/baseline/person",
@@ -376,6 +395,7 @@
376
395
  "mi/baseline/terminal",
377
396
  "mi/baseline/timer",
378
397
  "mi/baseline/tv",
398
+ "mi/baseline/unfold-less",
379
399
  "mi/baseline/unfold-more",
380
400
  "mi/baseline/videocam",
381
401
  "mi/baseline/visibility",
@@ -31,6 +31,7 @@
31
31
  "mgg/ai-status-processing",
32
32
  "mgg/ai-status-suspended",
33
33
  "mgg/alerts-pagopa",
34
+ "mgg/anagrafe-nazionale",
34
35
  "mgg/anpr",
35
36
  "mgg/ansc",
36
37
  "mgg/area-edificabile",
@@ -55,6 +56,7 @@
55
56
  "mgg/cancelled-sheet",
56
57
  "mgg/car-license",
57
58
  "mgg/card-stamping",
59
+ "mgg/cash-register-settings",
58
60
  "mgg/check-small",
59
61
  "mgg/checklist-settings",
60
62
  "mgg/checklist",
@@ -151,7 +153,9 @@
151
153
  "mgg/home-hammer",
152
154
  "mgg/home-link",
153
155
  "mgg/home-number",
156
+ "mgg/inad",
154
157
  "mgg/inagibile",
158
+ "mgg/inps",
155
159
  "mgg/input-calendar-costs",
156
160
  "mgg/input-calendar-period",
157
161
  "mgg/input-calendar-time",
@@ -224,7 +228,9 @@
224
228
  "mgg/places-park-alt",
225
229
  "mgg/places-park",
226
230
  "mgg/places-store-access-denied",
231
+ "mgg/pos",
227
232
  "mgg/property-owner",
233
+ "mgg/registro-imprese",
228
234
  "mgg/relevance",
229
235
  "mgg/reporting-abuse",
230
236
  "mgg/residency-permit",
@@ -0,0 +1,12 @@
1
+ export type TreeAppearance =
2
+ | 'none'
3
+ | 'depth'
4
+
5
+ export type TreeIcon =
6
+ | 'folder'
7
+ | 'chevron'
8
+
9
+
10
+ export type TreeActions =
11
+ | 'auto'
12
+ | 'visible'
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-953317ff.js";export{s as setNonce}from"./p-953317ff.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-883b6082",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],language:[32],updateLang:[64]}]]]],e))));
1
+ import{p as e,b as a}from"./p-22d4881a.js";export{s as setNonce}from"./p-22d4881a.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-827e2f31",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],language:[32],updateLang:[64]}]]]],e))));
@@ -115,7 +115,7 @@ DOMTokenList
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
117
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
118
- var url = new URL('./p-ca6821e0.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-11048c96.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
119
  System.import(url.href);
120
120
  };
121
121
 
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,c){function u(t){try{o(r.next(t))}catch(t){c(t)}}function a(t){try{o(r["throw"](t))}catch(t){c(t)}}function o(t){t.done?n(t.value):i(t.value).then(u,a)}o((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(e){return o([t,e])}}function o(a){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(r=1,i&&(c=a[0]&2?i["return"]:a[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,a[1])).done)return c;if(i=0,c)a=[a[0]&2,c.value];switch(a[0]){case 0:case 1:c=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!c||a[1]>c[0]&&a[1]<c[3])){n.label=a[1];break}if(a[0]===6&&n.label<c[1]){n.label=c[1];c=a;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(a);break}if(c[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{r=c=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-88f814c9.system.js","./p-56ba5cbf.system.js"],(function(t,e){"use strict";var n,r,i;return{setters:[function(e){n=e.p;r=e.b;t("setNonce",e.s)},function(t){i=t.g}],execute:function(){var t=this;var c=function(){var t=e.meta.url;var r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return n(r)};c().then((function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,i()];case 1:t.sent();return[2,r([["p-ed03fa5e.system",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],language:[32],updateLang:[64]}]]]],e)]}}))}))}))}}}));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.o?w(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(m),$(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=v(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),H={},D=(e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):e,L=e=>n(e).$hostElement$,N=new WeakMap,R=e=>"sc-"+e.$,T=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=W(n);let s=W(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(F);t=t.replace(V,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},U=/\s/,W=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(U):[]),F="Capture",V=RegExp(F+"$"),q=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(l)))e in s||T(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))T(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=!1,B=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else if(l=o.v=a.createElement(o.m),q(null,o,z),o.h)for(i=0;i<o.h.length;++i)s=B(e,o,i),s&&l.appendChild(s);return l["s-hn"]=C,l},I=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=B(null,n,l),i&&(o[l].v=i,X(r,i,t)))},J=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},K=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),Q=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.i;null===i?(("slot"!==t.m||_)&&q(e,t,z),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(K(h,m,l))Q(h,m,l),h=t[++r],m=o[++c];else if(K(d,y,l))Q(d,y,l),d=t[--f],y=o[--p];else if(K(h,y,l))Q(h,y,l),X(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(K(d,m,l))Q(d,m,l),X(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=B(t&&t[c],n,u):(Q(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=B(t&&t[c],n,c),m=o[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?I(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&J(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),I(o,null,t,s,0,s.length-1)):!n&&null!==l&&J(l,0,l.length-1)):e.i!==i&&(o.data=i)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Z=(e,t)=>{if(e.o|=16,!(4&e.o))return Y(e,e.j),S((()=>ee(e,t)));e.o|=512},ee=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=re(o,"componentWillLoad",void 0,n)),te(l,(()=>oe(e,o,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=R(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.k)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||A(null,null),i=(e=>e&&e.m===H)(t)?t:x(null,null,t);if(C=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,_=!!(1&l.o),Q(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,ce(t),re(n,"componentDidLoad",void 0,t),e.P(t),o||ie()),e.A(t),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>Z(e,!1))),e.o&=-517},ie=()=>{ce(a.documentElement),w((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"mds-table-row"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,o)}},ce=e=>e.setAttribute("hydrated",""),ue=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.H.get(t),r=s.o,c=s.t;o=D(o,l.D[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.H.set(t,o),c&&2==(18&r)&&Z(s,!1))},ae=(e,t,o)=>{var l,s;const i=e.prototype;if(t.D){const r=Object.entries(null!=(l=t.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.D[e][0]|=2048),r&&(t.D[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.D[e][0]))return((e,t)=>n(this).H.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.H.get(e)?s=i.H.get(e):!i.H.get(e)&&n&&i.H.set(e,n),r.call(this,D(s,l)),void ue(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.D[e][0]))return ue(this,e,s,t),void(1&o&&!i.t&&i.L.then((()=>{4096&t.D[e][0]&&i.t[e]!==i.H.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.H.get(e)&&n&&i.H.set(e,n),i.t[e]=D(s,l),ue(this,e,i.t[e],t)};i.t?n():i.L.then((()=>n()))}}})}else 1&o&&64&l&&Object.defineProperty(i,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.N)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.R)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.R)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.M)||l.push([e,s])),s}))]))}}return e},fe=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],$:o[1],D:o[2],T:o[3]};4&l.o&&(g=!0),l.D=o[2],l.M=[];const c=l.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,H:new Map};o.N=new Promise((e=>o.A=e)),o.L=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){t.o|=32;{const l=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.U;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{s(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${t.W}" was not found`);o.isProxied||(ae(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){s(t,e)}t.o&=-9,r()}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=R(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Z(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).L}};l.U=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ae(u,l,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=f.k)?l:j(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ie,30)))},he=e=>f.k=e;export{H,fe as b,L as g,x as h,h as p,o as r,he as s}
@@ -0,0 +1,6 @@
1
+ import{r as t,h as n,H as e,g as r}from"./p-22d4881a.js";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var i={exports:{}};i.exports=function(){
2
+ /*!
3
+ * mustache.js - Logic-less {{mustache}} templates with JavaScript
4
+ * http://github.com/janl/mustache.js
5
+ */
6
+ var t=Object.prototype.toString,n=Array.isArray||function(n){return"[object Array]"===t.call(n)};function e(t){return"function"==typeof t}function r(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(t,n){return null!=t&&"object"==typeof t&&n in t}var o=RegExp.prototype.test;var s=/\S/;function a(t){return!function(t,n){return o.call(t,n)}(s,t)}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};var l=/\s*/,d=/\s+/,h=/\s*=/,u=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function b(t){this.string=t,this.tail=t,this.pos=0}function m(t,n){this.view=t,this.cache={".":this.view},this.parent=n}function v(){this.templateCache={_cache:{},set:function(t,n){this._cache[t]=n},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}b.prototype.eos=function(){return""===this.tail},b.prototype.scan=function(t){var n=this.tail.match(t);if(!n||0!==n.index)return"";var e=n[0];return this.tail=this.tail.substring(e.length),this.pos+=e.length,e},b.prototype.scanUntil=function(t){var n,e=this.tail.search(t);switch(e){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,e),this.tail=this.tail.substring(e)}return this.pos+=n.length,n},m.prototype.push=function(t){return new m(t,this)},m.prototype.lookup=function(t){var n,r,o,s=this.cache;if(s.hasOwnProperty(t))n=s[t];else{for(var a,c,l,d=this,h=!1;d;){if(t.indexOf(".")>0)for(a=d.view,c=t.split("."),l=0;null!=a&&l<c.length;)l===c.length-1&&(h=i(a,c[l])||(o=c[l],null!=(r=a)&&"object"!=typeof r&&r.hasOwnProperty&&r.hasOwnProperty(o))),a=a[c[l++]];else a=d.view[t],h=i(d.view,t);if(h){n=a;break}d=d.parent}s[t]=n}return e(n)&&(n=n.call(this.view)),n},v.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},v.prototype.parse=function(t,e){var i=this.templateCache,o=t+":"+(e||g.tags).join(":"),s=void 0!==i,c=s?i.get(o):void 0;return null==c&&(c=function(t,e){if(!t)return[];var i,o,s,c=!1,m=[],v=[],w=[],p=!1,k=!1,y="",x=0;function R(){if(p&&!k)for(;w.length;)delete v[w.pop()];else w=[];p=!1,k=!1}function j(t){if("string"==typeof t&&(t=t.split(d,2)),!n(t)||2!==t.length)throw new Error("Invalid tags: "+t);i=new RegExp(r(t[0])+"\\s*"),o=new RegExp("\\s*"+r(t[1])),s=new RegExp("\\s*"+r("}"+t[1]))}j(e||g.tags);for(var E,S,X,z,C,D,L=new b(t);!L.eos();){if(E=L.pos,X=L.scanUntil(i))for(var T=0,U=X.length;T<U;++T)a(z=X.charAt(T))?(w.push(v.length),y+=z):(k=!0,c=!0,y+=" "),v.push(["text",z,E,E+1]),E+=1,"\n"===z&&(R(),y="",x=0,c=!1);if(!L.scan(i))break;if(p=!0,S=L.scan(f)||"name",L.scan(l),"="===S?(X=L.scanUntil(h),L.scan(h),L.scanUntil(o)):"{"===S?(X=L.scanUntil(s),L.scan(u),L.scanUntil(o),S="&"):X=L.scanUntil(o),!L.scan(o))throw new Error("Unclosed tag at "+L.pos);if(C=">"==S?[S,X,E,L.pos,y,x,c]:[S,X,E,L.pos],x++,v.push(C),"#"===S||"^"===S)m.push(C);else if("/"===S){if(!(D=m.pop()))throw new Error('Unopened section "'+X+'" at '+E);if(D[1]!==X)throw new Error('Unclosed section "'+D[1]+'" at '+E)}else"name"===S||"{"===S||"&"===S?k=!0:"="===S&&j(X)}if(R(),D=m.pop())throw new Error('Unclosed section "'+D[1]+'" at '+L.pos);return function(t){for(var n,e=[],r=e,i=[],o=0,s=t.length;o<s;++o)switch((n=t[o])[0]){case"#":case"^":r.push(n),i.push(n),r=n[4]=[];break;case"/":i.pop()[5]=n[2],r=i.length>0?i[i.length-1][4]:e;break;default:r.push(n)}return e}(function(t){for(var n,e,r=[],i=0,o=t.length;i<o;++i)(n=t[i])&&("text"===n[0]&&e&&"text"===e[0]?(e[1]+=n[1],e[3]=n[3]):(r.push(n),e=n));return r}(v))}(t,e),s&&i.set(o,c)),c},v.prototype.render=function(t,n,e,r){var i=this.getConfigTags(r),o=this.parse(t,i),s=n instanceof m?n:new m(n,void 0);return this.renderTokens(o,s,e,t,r)},v.prototype.renderTokens=function(t,n,e,r,i){for(var o,s,a,c="",l=0,d=t.length;l<d;++l)a=void 0,"#"===(s=(o=t[l])[0])?a=this.renderSection(o,n,e,r,i):"^"===s?a=this.renderInverted(o,n,e,r,i):">"===s?a=this.renderPartial(o,n,e,i):"&"===s?a=this.unescapedValue(o,n):"name"===s?a=this.escapedValue(o,n,i):"text"===s&&(a=this.rawValue(o)),void 0!==a&&(c+=a);return c},v.prototype.renderSection=function(t,r,i,o,s){var a=this,c="",l=r.lookup(t[1]);if(l){if(n(l))for(var d=0,h=l.length;d<h;++d)c+=this.renderTokens(t[4],r.push(l[d]),i,o,s);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)c+=this.renderTokens(t[4],r.push(l),i,o,s);else if(e(l)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(r.view,o.slice(t[3],t[5]),(function(t){return a.render(t,r,i,s)})))&&(c+=l)}else c+=this.renderTokens(t[4],r,i,o,s);return c}},v.prototype.renderInverted=function(t,e,r,i,o){var s=e.lookup(t[1]);if(!s||n(s)&&0===s.length)return this.renderTokens(t[4],e,r,i,o)},v.prototype.indentPartial=function(t,n,e){for(var r=n.replace(/[^ \t]/g,""),i=t.split("\n"),o=0;o<i.length;o++)i[o].length&&(o>0||!e)&&(i[o]=r+i[o]);return i.join("\n")},v.prototype.renderPartial=function(t,n,r,i){if(r){var o=this.getConfigTags(i),s=e(r)?r(t[1]):r[t[1]];if(null!=s){var a=t[4],c=s;0==t[5]&&a&&(c=this.indentPartial(s,a,t[6]));var l=this.parse(c,o);return this.renderTokens(l,n,r,c,i)}}},v.prototype.unescapedValue=function(t,n){var e=n.lookup(t[1]);if(null!=e)return e},v.prototype.escapedValue=function(t,n,e){var r=this.getConfigEscape(e)||g.escape,i=n.lookup(t[1]);if(null!=i)return"number"==typeof i&&r===g.escape?String(i):r(i)},v.prototype.rawValue=function(t){return t[1]},v.prototype.getConfigTags=function(t){return n(t)?t:t&&"object"==typeof t?t.tags:void 0},v.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!n(t)?t.escape:void 0};var g={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){w.templateCache=t},get templateCache(){return w.templateCache}},w=new v;return g.clearCache=function(){return w.clearCache()},g.parse=function(t,n){return w.parse(t,n)},g.render=function(t,e,r,i){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+((n(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)'));var o;return w.render(t,e,r,i)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return c[t]}))},g.Scanner=b,g.Context=m,g.Writer=v,g}();class o{constructor(t){this.rollbackLanguage="en",this.set=t=>{this.config=t},this.lang=t=>(this.element=t,this.closestElement=this.element.closest("[lang]"),this.closestElement&&this.closestElement.lang?(this.language=this.closestElement.lang,this.language):(this.language=this.rollbackLanguage,this.language)),this.update=t=>{const n=null!=t?t:this.element.shadowRoot;n&&n.querySelectorAll("*").forEach((t=>{t.tagName.toLowerCase().startsWith("mds-")&&t&&"updateLang"in t&&t.updateLang()}))},this.pluralize=(t,n)=>{const e=this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],r=[];Array.isArray(e)?(r.push(e[0]),r.push(e[1])):(r.push(e),r.push(e));const[o]=r;let s=o;const a=Object.keys(n);if(a.length>0){const[t]=a;"number"==typeof n[t]&&1!==n[t]&&(s=r[1])}return i.exports.render(s,n)},this.get=(t,n)=>n?this.pluralize(t,n):this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],t&&this.set(t)}}const s={selectRow:"Επιλογή γραμμής",unselectRow:"Αποεπιλογή γραμμής"},a={selectRow:"Select row",unselectRow:"Deselect row"},c={selectRow:"Seleccionar fila",unselectRow:"Deseleccionar fila"},l={selectRow:"Seleziona riga",unselectRow:"Deseleziona riga"},d=class{constructor(n){t(this,n),this.t=new o({el:s,en:a,es:c,it:l}),this.selectable=void 0,this.handleSelectionChange=t=>{var n;this.selected=t.detail.checked,null===(n=this.host.closest("mds-table"))||void 0===n||n.updateSelection()}}async updateLang(){this.language=this.t.lang(this.host),this.t.update()}componentWillLoad(){this.language=this.t.lang(this.host),this.hasActions=null!==this.host.querySelector('[slot="action"]')}componentDidLoad(){var t;this.hasActions&&(this.actions=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".actions"),this.sizerWidth=`${this.actions.offsetWidth.toString()}px`)}render(){return n(e,{key:"4905591b94a0af846d25e3cf55fe5805ecec76be",role:"row"},this.selectable&&n("mds-table-cell",{key:"07f8596969f20148250cc42fde0a806435825274",class:"selection-cell"},n("div",{key:"2d0bb74f3f5edaf6180c68a60457b374dcd7a4bd",class:"checkbox-wrapper"},n("mds-input-switch",{key:"e04fafd6a53ed1c6a4208b0317419fe21d08f28e",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),n("slot",{key:"d71c2ec9e675fd8190eeeb7d816a5e2566c6afc4"}),this.hasActions&&n("mds-table-cell",{key:"0ede2c5f98d7541920c4170d70c21f9f61ac93cb",class:"actions-cell"},n("div",{key:"8a097d4b04bd594778f51bedfe438fe1fd3479b3",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),n("div",{key:"31f1fe8d7e4ee01f33f1c6a5b76e23fd875dfd82",class:"actions-view"},n("div",{key:"762785e31a306ba3c1e7654218bdf8cb33044cd3",class:"actions",style:{marginRight:`calc(${this.sizerWidth} + var(--mds-table-cell-padding))`}},n("slot",{key:"05ea2b5edc71e58859e55e52c1ab65ca0c5354f8",name:"action"})))))}get host(){return r(this)}};d.style="@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color, rgb(var(--tone-neutral-02)));\n --mds-table-row-color-alt: var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));\n --mds-table-row-background-hover: var(--mds-table-background, rgb(var(--tone-neutral)));\n --mds-table-row-background-alt: var(--mds-table-background-alt, rgb(var(--tone-neutral)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.selection-cell {\n vertical-align: middle;\n}\n\n.checkbox-wrapper {\n display: -ms-flexbox;\n display: flex;\n}\n\n:host([interactive]:hover) {\n\n --mds-table-row-actions-background: var(--mds-table-row-background-hover);\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n:host([selected]) {\n\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n:host([sorted]) {\n\n --mds-table-row-background: var(--mds-table-row-background-alt);\n --mds-table-row-color: var(--mds-table-row-color-alt);\n}\n\n:host([sorted][selected]) {\n\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n.actions-view {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n inset: 0;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n\n --mds-table-row-actions-background: var(--mds-table-row-background);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-table-row-actions-background);\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n inset: 0;\n margin-right: 100%;\n padding-right: 0;\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, padding-right, -webkit-transform;\n transition-property: background-color, padding-right, -webkit-transform;\n transition-property: transform, background-color, padding-right;\n transition-property: transform, background-color, padding-right, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n\n:host([overlay-actions]) .actions {\n padding-right: var(--mds-table-cell-padding);\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([overlay-actions]:hover) .actions {\n\n --mds-table-row-actions-background: var(--mds-table-row-background);\n\n -webkit-transform: translateX(0);\n\n transform: translateX(0);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .actions {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .actions {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";export{d as mds_table_row}
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,r,n,t){function i(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,a){function f(e){try{o(t.next(e))}catch(e){a(e)}}function u(e){try{o(t["throw"](e))}catch(e){a(e)}}function o(e){e.done?n(e.value):i(e.value).then(f,u)}o((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(e){return function(r){return o([e,r])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=r.call(e,n)}catch(e){u=[6,e];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var t=0,i=r.length,a;t<i;t++){if(a||!(t in r)){if(!a)a=Array.prototype.slice.call(r,0,t);a[t]=r[t]}}return e.concat(a||Array.prototype.slice.call(r))};System.register([],(function(e,r){"use strict";return{execute:function(){var n=this;var t="mds-table-row";var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:false,element:false,event:false,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:false,propString:false,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:false};var a=Object.defineProperty;var f=function(e,r){for(var n in r)a(e,n,{get:r[n],enumerable:true})};var u=new WeakMap;var o=function(e){return u.get(e)};var l=e("r",(function(e,r){u.set(r.t=e,r)}));var s=function(e,r){var n={i:0,$hostElement$:e,u:r,o:new Map};{n.l=new Promise((function(e){return n.v=e}))}{n.h=new Promise((function(e){return n.p=e}));e["s-p"]=[];e["s-rc"]=[]}var t=u.set(e,n);return t};var v=function(e,r){return r in e};var c=function(e,r){return(0,console.error)(e,r)};var d=new Map;var h=function(e,n,t){var i=e.m.replace(/-/g,"_");var a=e.S;if(!a){return void 0}var f=d.get(a);if(f){return f[i]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return r.import("./".concat(a,".entry.js").concat("")).then((function(e){{d.set(a,e)}return e[i]}),(function(e){c(e,n.$hostElement$)}))};var p=new Map;var m="sty-id";var y="{visibility:hidden}[hydrated]{visibility:inherit}";var w="slot-fb{display:contents}slot-fb[hidden]{display:none}";var b=typeof window!=="undefined"?window:{};var S=b.document||{head:{}};var g={i:0,_:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,n,t){return e.addEventListener(r,n,t)},rel:function(e,r,n,t){return e.removeEventListener(r,n,t)},ce:function(e,r){return new CustomEvent(e,r)}};var _=e("p",(function(e){return Promise.resolve(e)}));var $=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var j=false;var k=[];var A=[];var C=function(e,r){return function(n){e.push(n);if(!j){j=true;if(r&&g.i&4){T(x)}else{g.raf(x)}}}};var O=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){c(e)}}e.length=0};var x=function(){O(k);{O(A);if(j=k.length>0){g.raf(x)}}};var T=function(e){return _().then(e)};var D=C(A,true);var E=function(e){e=typeof e;return e==="object"||e==="function"};function L(e){var r,n,t;return(t=(n=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var M={};f(M,{err:function(){return F},map:function(){return R},ok:function(){return P},unwrap:function(){return N},unwrapErr:function(){return U}});var P=function(e){return{isOk:true,isErr:false,value:e}};var F=function(e){return{isOk:false,isErr:true,value:e}};function R(e,r){if(e.isOk){var n=r(e.value);if(n instanceof Promise){return n.then((function(e){return P(e)}))}else{return P(n)}}if(e.isErr){var t=e.value;return F(t)}throw"should never get here"}var N=function(e){if(e.isOk){return e.value}else{throw e.value}};var U=function(e){if(e.isErr){return e.value}else{throw e.value}};var W=function(e,r){if(r===void 0){r=""}{return function(){return}}};var H=function(e,r){{return function(){return}}};var z=e("h",(function(e,r){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=false;var u=false;var o=[];var l=function(r){for(var n=0;n<r.length;n++){i=r[n];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(f=typeof e!=="function"&&!E(i)){i=String(i)}if(f&&u){o[o.length-1].$+=i}else{o.push(f?B(null,i):i)}u=f}}};l(n);if(r){if(r.key){a=r.key}{var s=r.className||r.class;if(s){r.class=typeof s!=="object"?s:Object.keys(s).filter((function(e){return s[e]})).join(" ")}}}var v=B(e,null);v.j=r;if(o.length>0){v.k=o}{v.A=a}return v}));var B=function(e,r){var n={i:0,C:e,$:r,O:null,k:null};{n.j=null}{n.A=null}return n};var G=e("H",{});var Q=function(e){return e&&e.C===G};var V=function(e,r){if(e!=null&&!E(e)){if(r&4){return e==="false"?false:e===""||!!e}return e}return e};var q=e("g",(function(e){return o(e).$hostElement$}));var I=function(e,r,n){var t=g.ce(r,n);e.dispatchEvent(t);return t};var K=new WeakMap;var X=function(e,r,n){var t=p.get(e);if($&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=r}else{t.replaceSync(r)}}else{t=r}p.set(e,t)};var J=function(e,r,n){var t;var i=Z(r);var a=p.get(i);e=e.nodeType===11?e:S;if(a){if(typeof a==="string"){e=e.head||e;var f=K.get(e);var u=void 0;if(!f){K.set(e,f=new Set)}if(!f.has(i)){{u=document.querySelector("[".concat(m,'="').concat(i,'"]'))||S.createElement("style");u.innerHTML=a;var o=(t=g.T)!=null?t:L(S);if(o!=null){u.setAttribute("nonce",o)}if(!(r.i&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var s=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(s==null?void 0:s.parentNode)===e?s:null)}else if("host"in e){if($){var v=new CSSStyleSheet;v.replaceSync(a);e.adoptedStyleSheets=__spreadArray([v],e.adoptedStyleSheets,true)}else{var c=e.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{e.prepend(u)}}}else{e.append(u)}}if(r.i&1&&e.nodeName!=="HEAD"){e.insertBefore(u,null)}}if(r.i&4){u.innerHTML+=w}if(f){f.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var Y=function(e){var r=e.u;var n=e.$hostElement$;var t=r.i;var i=W("attachStyles",r.m);var a=J(n.shadowRoot?n.shadowRoot:n.getRootNode(),r);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var Z=function(e,r){return"sc-"+e.m};var ee=function(e,r,n,t,i,a,f){if(n!==t){var u=v(e,r);var o=r.toLowerCase();if(r==="class"){var l=e.classList;var s=ne(n);var c=ne(t);{l.remove.apply(l,s.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!s.includes(e)})))}}else if(r==="style"){{for(var d in n){if(!t||t[d]==null){if(d.includes("-")){e.style.removeProperty(d)}else{e.style[d]=""}}}}for(var d in t){if(!n||t[d]!==n[d]){if(d.includes("-")){e.style.setProperty(d,t[d])}else{e.style[d]=t[d]}}}}else if(r==="key");else if(!u&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(v(b,o)){r=o.slice(2)}else{r=o[2]+r.slice(3)}if(n||t){var h=r.endsWith(te);r=r.replace(ie,"");if(n){g.rel(e,r,n,h)}if(t){g.ael(e,r,t,h)}}}else{var p=E(t);if((u||p&&t!==null)&&!i){try{if(!e.tagName.includes("-")){var m=t==null?"":t;if(r==="list"){u=false}else if(n==null||e[r]!=m){if(typeof e.__lookupSetter__(r)==="function"){e[r]=m}else{e.setAttribute(r,m)}}}else if(e[r]!==t){e[r]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!u||a&4||i)&&!p){t=t===true?"":t;{e.setAttribute(r,t)}}}}};var re=/\s/;var ne=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(re)};var te="Capture";var ie=new RegExp(te+"$");var ae=function(e,r,n,t){var i=r.O.nodeType===11&&r.O.host?r.O.host:r.O;var a=e&&e.j||{};var f=r.j||{};{for(var u=0,o=fe(Object.keys(a));u<o.length;u++){var l=o[u];if(!(l in f)){ee(i,l,a[l],void 0,n,r.i)}}}for(var s=0,v=fe(Object.keys(f));s<v.length;s++){var l=v[s];ee(i,l,a[l],f[l],n,r.i)}};function fe(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var ue;var oe=false;var le=false;var se=function(e,r,n){var t=r.k[n];var a=0;var f;var u;if(t.$!==null){f=t.O=S.createTextNode(t.$)}else{f=t.O=S.createElement(!oe&&i.slotRelocation&&t.i&2?"slot-fb":t.C);{ae(null,t,le)}if(t.k){for(a=0;a<t.k.length;++a){u=se(e,t,a);if(u){f.appendChild(u)}}}}f["s-hn"]=ue;return f};var ve=function(e,r,n,t,i,a){var f=e;var u;if(f.shadowRoot&&f.tagName===ue){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=se(null,n,i);if(u){t[i].O=u;me(f,u,r)}}}};var ce=function(e,r,n){for(var t=r;t<=n;++t){var i=e[t];if(i){var a=i.O;if(a){a.remove()}}}};var de=function(e,r,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=r.length-1;var s=r[0];var v=r[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(s==null){s=r[++a]}else if(v==null){v=r[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(he(s,d,i)){pe(s,d,i);s=r[++a];d=t[++f]}else if(he(v,h,i)){pe(v,h,i);v=r[--l];h=t[--c]}else if(he(s,h,i)){pe(s,h,i);me(e,s.O,v.O.nextSibling);s=r[++a];h=t[--c]}else if(he(v,d,i)){pe(v,d,i);me(e,v.O,s.O);v=r[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(r[o]&&r[o].A!==null&&r[o].A===d.A){u=o;break}}}if(u>=0){m=r[u];if(m.C!==d.C){p=se(r&&r[f],n,u)}else{pe(m,d,i);r[u]=void 0;p=m.O}d=t[++f]}else{p=se(r&&r[f],n,f);d=t[++f]}if(p){{me(s.O.parentNode,p,s.O)}}}}if(a>l){ve(e,t[c+1]==null?null:t[c+1].O,n,t,f,c)}else if(f>c){ce(r,a,l)}};var he=function(e,r,n){if(n===void 0){n=false}if(e.C===r.C){if(!n){return e.A===r.A}if(n&&!e.A&&r.A){e.A=r.A}return true}return false};var pe=function(e,r,n){if(n===void 0){n=false}var t=r.O=e.O;var a=e.k;var f=r.k;var u=r.C;var o=r.$;if(o===null){{if(u==="slot"&&!oe);else{ae(e,r,le)}}if(a!==null&&f!==null){de(t,a,r,f,n)}else if(f!==null){if(e.$!==null){t.textContent=""}ve(t,null,r,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){ce(a,0,a.length-1)}}else if(e.$!==o){t.data=o}};var me=function(e,r,n){{return e==null?void 0:e.insertBefore(r,n)}};var ye=function(e,r,n){if(n===void 0){n=false}var t=e.$hostElement$;var i=e.u;var a=e.D||B(null,null);var f=Q(r)?r:z(null,null,r);ue=t.tagName;if(i.L){f.j=f.j||{};i.L.map((function(e){var r=e[0],n=e[1];return f.j[n]=t[r]}))}if(n&&f.j){for(var u=0,o=Object.keys(f.j);u<o.length;u++){var l=o[u];if(t.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){f.j[l]=t[l]}}}f.C=null;f.i|=4;e.D=f;f.O=a.O=t.shadowRoot||t;oe=(i.i&1)!==0;pe(a,f,n)};var we=function(e,r){if(r&&!e.M&&r["s-p"]){var n=r["s-p"].push(new Promise((function(t){return e.M=function(){r["s-p"].splice(n-1,1);t()}})))}};var be=function(e,r){{e.i|=16}if(e.i&4){e.i|=512;return}we(e,e.P);var n=function(){return Se(e,r)};return D(n)};var Se=function(e,r){var n=e.$hostElement$;var t=W("scheduleUpdate",e.u.m);var i=e.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){{a=Ce(i,"componentWillLoad",void 0,n)}}t();return ge(a,(function(){return $e(e,i,r)}))};var ge=function(e,r){return _e(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var _e=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var $e=function(e,r,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(s){i=e.$hostElement$;a=W("update",e.u.m);f=i["s-rc"];if(t){Y(e)}u=W("render",e.u.m);{je(e,r,i,t)}if(f){f.map((function(e){return e()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return ke(e)};if(o.length===0){l()}else{Promise.all(o).then(l);e.i|=4;o.length=0}}return[2]}))}))};var je=function(e,r,n,t){try{r=r.render();{e.i&=~16}{e.i|=2}{{{ye(e,r,t)}}}}catch(r){c(r,e.$hostElement$)}return null};var ke=function(e){var r=e.u.m;var n=e.$hostElement$;var t=W("postUpdate",r);var i=e.t;var a=e.P;if(!(e.i&64)){e.i|=64;{Oe(n)}{Ce(i,"componentDidLoad",void 0,n)}t();{e.p(n);if(!a){Ae()}}}else{t()}{e.v(n)}{if(e.M){e.M();e.M=void 0}if(e.i&512){T((function(){return be(e,false)}))}e.i&=~(4|512)}};var Ae=function(e){{Oe(S.documentElement)}T((function(){return I(b,"appload",{detail:{namespace:t}})}))};var Ce=function(e,r,n,t){if(e&&e[r]){try{return e[r](n)}catch(e){c(e,t)}}return void 0};var Oe=function(e){var r;return e.setAttribute((r=i.hydratedSelectorName)!=null?r:"hydrated","")};var xe=function(e,r){return o(e).o.get(r)};var Te=function(e,r,n,t){var i=o(e);if(!i){throw new Error("Couldn't find host element for \"".concat(t.m,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=i.o.get(r);var f=i.i;var u=i.t;n=V(n,t.F[r][0]);var l=Number.isNaN(a)&&Number.isNaN(n);var s=n!==a&&!l;if((!(f&8)||a===void 0)&&s){i.o.set(r,n);if(u){if((f&(2|16))===2){be(i,false)}}}};var De=function(e,r,n){var t,a;var f=e.prototype;if(r.F||i.watchCallback){var u=Object.entries((t=r.F)!=null?t:{});u.map((function(e){var t=e[0],i=e[1][0];if(i&31||n&2&&i&32){var a=Object.getOwnPropertyDescriptor(f,t)||{},u=a.get,l=a.set;if(u)r.F[t][0]|=2048;if(l)r.F[t][0]|=4096;if(n&1||!u){Object.defineProperty(f,t,{get:function(){{if((r.F[t][0]&2048)===0){return xe(this,t)}var e=o(this);var n=e?e.t:f;if(!n)return;return n[t]}},configurable:true,enumerable:true})}Object.defineProperty(f,t,{set:function(e){var a=this;var f=o(this);if(l){var u=i&32?this[t]:f.$hostElement$[t];if(typeof u==="undefined"&&f.o.get(t)){e=f.o.get(t)}else if(!f.o.get(t)&&u){f.o.set(t,u)}l.apply(this,[V(e,i)]);e=i&32?this[t]:f.$hostElement$[t];Te(this,t,e,r);return}{if((n&1)===0||(r.F[t][0]&4096)===0){Te(this,t,e,r);if(n&1&&!f.t){f.h.then((function(){if(r.F[t][0]&4096&&f.t[t]!==f.o.get(t)){f.t[t]=e}}))}return}var s=function(){var n=f.t[t];if(!f.o.get(t)&&n){f.o.set(t,n)}f.t[t]=V(e,i);Te(a,t,f.t[t],r)};if(f.t){s()}else{f.h.then((function(){return s()}))}}}})}else if(n&1&&i&64){Object.defineProperty(f,t,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var n;var i=o(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var r;return(r=i.t)==null?void 0:r[t].apply(r,e)}))}})}}));if(n&1){var l=new Map;f.attributeChangedCallback=function(e,n,t){var a=this;g.jmp((function(){var u;var s=l.get(e);if(a.hasOwnProperty(s)&&i.lazyLoad){t=a[s];delete a[s]}else if(f.hasOwnProperty(s)&&typeof a[s]==="number"&&a[s]==t){return}else if(s==null){var v=o(a);var c=v==null?void 0:v.i;if(c&&!(c&8)&&c&128&&t!==n){var d=v.t;var h=(u=r.R)==null?void 0:u[e];h==null?void 0:h.forEach((function(r){if(d[r]!=null){d[r].call(d,t,n,e)}}))}return}var p=Object.getOwnPropertyDescriptor(f,s);t=t===null&&typeof a[s]==="boolean"?false:t;if(t!==a[s]&&(!p.get||!!p.set)){a[s]=t}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=r.R)!=null?a:{}),true),u.filter((function(e){var r=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],t=e[1];var i;var a=t[1]||n;l.set(a,n);if(t[0]&512){(i=r.L)==null?void 0:i.push([n,a])}return a})),true)))}}return e};var Ee=function(e,r,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,s,v;return __generator(this,(function(d){switch(d.label){case 0:if(!((r.i&32)===0))return[3,4];r.i|=32;i=h(t,r);if(!(i&&"then"in i))return[3,2];a=H();return[4,i];case 1:n=d.sent();a();return[3,3];case 2:n=i;d.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(r.N,'" was not found'))}if(!n.isProxied){De(n,t,2);n.isProxied=true}f=W("createInstance",t.m);{r.i|=8}try{new n(r)}catch(r){c(r,e)}{r.i&=~8}f();if(n&&n.style){u=void 0;if(typeof n.style==="string"){u=n.style}o=Z(t);if(!p.has(o)){l=W("registerStyles",t.m);X(o,u,!!(t.i&1));l()}}d.label=4;case 4:s=r.P;v=function(){return be(r,true)};if(s&&s["s-rc"]){s["s-rc"].push(v)}else{v()}return[2]}}))}))};var Le=function(e,r){};var Me=function(e){if((g.i&1)===0){var r=o(e);var n=r.u;var t=W("connectedCallback",n.m);if(!(r.i&1)){r.i|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){we(r,r.P=i);break}}}if(n.F){Object.entries(n.F).map((function(r){var n=r[0],t=r[1][0];if(t&31&&e.hasOwnProperty(n)){var i=e[n];delete e[n];e[n]=i}}))}{Ee(e,r,n)}}else{if(r==null?void 0:r.t);else if(r==null?void 0:r.h){r.h.then((function(){return Le()}))}}t()}};var Pe=function(e,r){};var Fe=function(e){return __awaiter(n,void 0,void 0,(function(){var r;return __generator(this,(function(n){if((g.i&1)===0){r=o(e);if(r==null?void 0:r.t);else if(r==null?void 0:r.h){r.h.then((function(){return Pe()}))}}if(K.has(e)){K.delete(e)}if(e.shadowRoot&&K.has(e.shadowRoot)){K.delete(e.shadowRoot)}return[2]}))}))};var Re=e("b",(function(e,r){if(r===void 0){r={}}var n;var t=W();var i=[];var a=r.exclude||[];var f=b.customElements;var u=S.head;var l=u.querySelector("meta[charset]");var v=S.createElement("style");var c=[];var d;var h=true;Object.assign(g,r);g._=new URL(r.resourcesUrl||"./",S.baseURI).href;var p=false;e.map((function(e){e[1].map((function(r){var n={i:r[0],m:r[1],F:r[2],U:r[3]};if(n.i&4){p=true}{n.F=r[2]}{n.L=[]}var t=n.m;var u=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;t.hasRegisteredEventListeners=false;r=t;s(r,n);if(n.i&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open"})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.m,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}r.prototype.connectedCallback=function(){var e=this;o(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){c.push(this)}else{g.jmp((function(){return Me(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;g.jmp((function(){return Fe(e)}));g.raf((function(){var r;var n=o(e);if(((r=n==null?void 0:n.D)==null?void 0:r.O)instanceof Node&&!n.D.O.isConnected){delete n.D.O}}))};r.prototype.componentOnReady=function(){return o(this).h};return r}(HTMLElement);n.S=e[0];if(!a.includes(t)&&!f.get(t)){i.push(t);f.define(t,De(u,n,1))}}))}));if(i.length>0){if(p){v.textContent+=w}{v.textContent+=i.sort()+y}if(v.innerHTML.length){v.setAttribute("data-styles","");var m=(n=g.T)!=null?n:L(S);if(m!=null){v.setAttribute("nonce",m)}u.insertBefore(v,l?l.nextSibling:u.firstChild)}}h=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{g.jmp((function(){return d=setTimeout(Ae,30)}))}}t()}));var Ne=e("s",(function(e){return g.T=e}))}}}));