@vonage/vivid 5.15.1 → 5.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/definition.cjs +7 -207
- package/accordion/definition.js +2 -199
- package/accordion/index.cjs +4 -4
- package/accordion/index.js +93 -127
- package/accordion-item/definition.cjs +6 -146
- package/accordion-item/definition.js +2 -139
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +6 -2
- package/action-group/definition.cjs +5 -69
- package/action-group/definition.js +1 -62
- package/action-group/index.cjs +4 -4
- package/action-group/index.js +16 -46
- package/alert/definition.cjs +6 -201
- package/alert/definition.js +2 -194
- package/alert/index.cjs +15 -15
- package/alert/index.js +90 -136
- package/audio-player/definition.cjs +6 -459
- package/audio-player/definition.js +2 -452
- package/audio-player/index.cjs +49 -49
- package/audio-player/index.js +234 -302
- package/avatar/definition.cjs +6 -117
- package/avatar/definition.js +2 -110
- package/avatar/index.cjs +14 -14
- package/avatar/index.js +44 -84
- package/badge/definition.cjs +6 -85
- package/badge/definition.js +2 -78
- package/badge/index.cjs +4 -4
- package/badge/index.js +21 -65
- package/banner/definition.cjs +6 -160
- package/banner/definition.js +2 -153
- package/banner/index.cjs +13 -13
- package/banner/index.js +76 -109
- package/breadcrumb/definition.cjs +5 -97
- package/breadcrumb/definition.js +1 -90
- package/breadcrumb/index.cjs +4 -4
- package/breadcrumb/index.js +33 -59
- package/breadcrumb-item/definition.cjs +7 -47
- package/breadcrumb-item/definition.js +3 -40
- package/breadcrumb-item/index.cjs +5 -5
- package/breadcrumb-item/index.js +20 -32
- package/bundled/affix.cjs +10 -10
- package/bundled/affix.js +44 -57
- package/bundled/anchored.cjs +3 -3
- package/bundled/anchored.js +47 -65
- package/bundled/aria.cjs +1 -1
- package/bundled/aria.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +17 -28
- package/bundled/base-color-picker.cjs +10 -10
- package/bundled/base-color-picker.js +115 -197
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +29 -56
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/breadcrumb-item.js +11 -20
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +65 -100
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +11 -34
- package/bundled/calendar-picker.template.cjs +77 -77
- package/bundled/calendar-picker.template.js +2883 -3347
- package/bundled/char-count.cjs +7 -7
- package/bundled/char-count.js +31 -46
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +27 -45
- package/bundled/class-names.cjs +1 -1
- package/bundled/class-names.js +8 -8
- package/bundled/data-grid.options.cjs +1 -1
- package/bundled/data-grid.options.js +22 -26
- package/bundled/decorate.cjs +1 -0
- package/bundled/decorate.js +9 -0
- package/bundled/definition.cjs +1 -39
- package/bundled/definition.js +5 -122
- package/bundled/definition10.cjs +18 -72
- package/bundled/definition10.js +74 -355
- package/bundled/definition11.cjs +10 -12
- package/bundled/definition11.js +28 -92
- package/bundled/definition12.cjs +72 -18
- package/bundled/definition12.js +192 -222
- package/bundled/definition13.cjs +20 -10
- package/bundled/definition13.js +55 -41
- package/bundled/definition14.cjs +5 -1
- package/bundled/definition14.js +11 -20
- package/bundled/definition15.cjs +19 -5
- package/bundled/definition15.js +77 -28
- package/bundled/definition16.cjs +12 -29
- package/bundled/definition16.js +80 -78
- package/bundled/definition17.cjs +17 -17
- package/bundled/definition17.js +126 -98
- package/bundled/definition18.cjs +87 -13
- package/bundled/definition18.js +423 -134
- package/bundled/definition19.cjs +5 -87
- package/bundled/definition19.js +16 -742
- package/bundled/definition2.cjs +8 -8
- package/bundled/definition2.js +79 -122
- package/bundled/definition20.cjs +26 -16
- package/bundled/definition20.js +153 -98
- package/bundled/definition21.cjs +29 -5
- package/bundled/definition21.js +174 -18
- package/bundled/definition22.cjs +38 -23
- package/bundled/definition22.js +70 -149
- package/bundled/definition3.cjs +1 -29
- package/bundled/definition3.js +183 -194
- package/bundled/definition4.cjs +24 -6
- package/bundled/definition4.js +88 -40
- package/bundled/definition5.cjs +30 -1
- package/bundled/definition5.js +48 -346
- package/bundled/definition6.cjs +28 -30
- package/bundled/definition6.js +110 -264
- package/bundled/definition7.cjs +6 -30
- package/bundled/definition7.js +22 -288
- package/bundled/definition8.cjs +13 -18
- package/bundled/definition8.js +150 -132
- package/bundled/definition9.cjs +12 -14
- package/bundled/definition9.js +67 -235
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +56 -88
- package/bundled/dialog.cjs +1 -0
- package/bundled/dialog.js +6 -0
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +16 -33
- package/bundled/dom.cjs +1 -1
- package/bundled/dom.js +5 -5
- package/bundled/enums.cjs +1 -1
- package/bundled/enums.js +16 -9
- package/bundled/floating-ui.dom.cjs +1 -1
- package/bundled/floating-ui.dom.js +953 -1238
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +165 -318
- package/bundled/form-element.cjs +1 -1
- package/bundled/form-element.js +33 -55
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +46 -69
- package/bundled/key-codes.cjs +1 -1
- package/bundled/key-codes.js +4 -16
- package/bundled/linkable.cjs +6 -6
- package/bundled/linkable.js +25 -45
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +176 -351
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +451 -564
- package/bundled/mixins.cjs +20 -20
- package/bundled/mixins.js +162 -210
- package/bundled/normalize.cjs +1 -1
- package/bundled/normalize.js +6 -6
- package/bundled/numbers.cjs +1 -1
- package/bundled/numbers.js +9 -11
- package/bundled/picker-field.template.cjs +23 -23
- package/bundled/picker-field.template.js +108 -171
- package/bundled/playbackRates.cjs +1 -1
- package/bundled/playbackRates.js +10 -10
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +10 -14
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +421 -552
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +26 -29
- package/bundled/single-date-picker.cjs +1 -1
- package/bundled/single-date-picker.js +23 -38
- package/bundled/single-value-picker.cjs +1 -1
- package/bundled/single-value-picker.js +58 -86
- package/bundled/slider.template.cjs +14 -14
- package/bundled/slider.template.js +67 -78
- package/bundled/slottable-request.cjs +4 -4
- package/bundled/slottable-request.js +1907 -2904
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +47 -97
- package/bundled/strings.cjs +1 -1
- package/bundled/strings.js +6 -6
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +4 -4
- package/bundled/time-selection-picker.template.cjs +26 -26
- package/bundled/time-selection-picker.template.js +355 -552
- package/bundled/trapped-focus.cjs +1 -1
- package/bundled/trapped-focus.js +18 -25
- package/bundled/vivid-element.cjs +4 -5
- package/bundled/vivid-element.js +1781 -2806
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +10 -10
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +15 -31
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-error-text.js +25 -38
- package/bundled/with-success-text.cjs +1 -1
- package/bundled/with-success-text.js +8 -15
- package/button/definition.cjs +6 -14
- package/button/definition.js +3 -4
- package/button/index.cjs +1 -1
- package/button/index.js +6 -2
- package/calendar/definition.cjs +5 -358
- package/calendar/definition.js +1 -351
- package/calendar/index.cjs +20 -20
- package/calendar/index.js +165 -427
- package/calendar-event/definition.cjs +6 -58
- package/calendar-event/definition.js +2 -51
- package/calendar-event/index.cjs +7 -7
- package/calendar-event/index.js +25 -41
- package/card/definition.cjs +6 -194
- package/card/definition.js +2 -187
- package/card/index.cjs +37 -34
- package/card/index.js +83 -133
- package/checkbox/definition.cjs +6 -209
- package/checkbox/definition.js +2 -202
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +6 -2
- package/color-picker/definition.cjs +6 -1175
- package/color-picker/definition.js +2 -1168
- package/color-picker/index.cjs +94 -94
- package/color-picker/index.js +605 -737
- package/combobox/definition.cjs +6 -647
- package/combobox/definition.js +2 -640
- package/combobox/index.cjs +38 -37
- package/combobox/index.js +258 -458
- package/contextual-help/definition.cjs +6 -63
- package/contextual-help/definition.js +2 -56
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +6 -2
- package/country/definition.cjs +6 -340
- package/country/definition.js +2 -333
- package/country/index.cjs +6 -6
- package/country/index.js +1209 -308
- package/custom-elements.json +1247 -1173
- package/data-grid/definition.cjs +10 -2350
- package/data-grid/definition.js +2 -2339
- package/data-grid/index.cjs +65 -65
- package/data-grid/index.js +644 -997
- package/date-picker/definition.cjs +6 -152
- package/date-picker/definition.js +2 -145
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +66 -114
- package/date-range-picker/definition.cjs +6 -467
- package/date-range-picker/definition.js +2 -460
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +218 -334
- package/date-time-picker/definition.cjs +6 -285
- package/date-time-picker/definition.js +2 -278
- package/date-time-picker/index.cjs +4 -4
- package/date-time-picker/index.js +116 -211
- package/dial-pad/definition.cjs +6 -460
- package/dial-pad/definition.js +2 -453
- package/dial-pad/index.cjs +44 -43
- package/dial-pad/index.js +197 -288
- package/dialog/definition.cjs +6 -349
- package/dialog/definition.js +2 -342
- package/dialog/index.cjs +28 -28
- package/dialog/index.js +148 -229
- package/divider/definition.cjs +6 -42
- package/divider/definition.js +2 -35
- package/divider/index.cjs +1 -1
- package/divider/index.js +5 -2
- package/elevation/definition.cjs +4 -11
- package/elevation/definition.js +2 -2
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +5 -2
- package/empty-state/definition.cjs +6 -86
- package/empty-state/definition.js +2 -79
- package/empty-state/index.cjs +9 -9
- package/empty-state/index.js +28 -60
- package/fab/definition.cjs +6 -105
- package/fab/definition.js +2 -98
- package/fab/index.cjs +17 -17
- package/fab/index.js +46 -81
- package/file-picker/definition.cjs +6 -523
- package/file-picker/definition.js +2 -516
- package/file-picker/index.cjs +32 -29
- package/file-picker/index.js +254 -356
- package/header/definition.cjs +5 -78
- package/header/definition.js +1 -71
- package/header/index.cjs +6 -6
- package/header/index.js +28 -42
- package/icon/definition.cjs +5 -202
- package/icon/definition.js +1 -195
- package/icon/index.cjs +1 -1
- package/icon/index.js +5 -2
- package/index.cjs +353 -356
- package/index.js +79 -78
- package/layout/definition.cjs +5 -72
- package/layout/definition.js +1 -65
- package/layout/index.cjs +2 -2
- package/layout/index.js +10 -51
- package/lib/alert/alert.d.ts +0 -1
- package/lib/audio-player/audio-player.d.ts +0 -1
- package/lib/banner/banner.d.ts +0 -2
- package/lib/button/button.d.ts +0 -1
- package/lib/calendar/calendar.d.ts +0 -1
- package/lib/combobox/combobox.d.ts +0 -3
- package/lib/data-grid/data-grid-cell.d.ts +0 -3
- package/lib/data-grid/data-grid-row.d.ts +0 -3
- package/lib/data-grid/data-grid.d.ts +0 -1
- package/lib/date-time-picker/date-time-picker.d.ts +0 -4
- package/lib/dial-pad/dial-pad.d.ts +6 -2
- package/lib/dialog/dialog.d.ts +0 -1
- package/lib/fab/fab.d.ts +0 -1
- package/lib/file-picker/file-picker.d.ts +1 -1
- package/lib/icon/icon.d.ts +0 -1
- package/lib/menu/menu.d.ts +0 -1
- package/lib/option/option.d.ts +4 -1
- package/lib/pagination/pagination.d.ts +0 -4
- package/lib/popover/popover.d.ts +0 -5
- package/lib/rich-text-editor/rte/exports.d.ts +1 -0
- package/lib/rich-text-editor/rte/features/alignment.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/character-count.d.ts +21 -0
- package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/keyboard-shortcuts.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +1 -1
- package/lib/rich-text-editor/rte/public-interface.d.ts +6 -0
- package/lib/searchable-select/option-tag.d.ts +0 -1
- package/lib/split-button/split-button.d.ts +0 -2
- package/lib/tab/tab.d.ts +0 -2
- package/lib/table/definition.d.ts +2 -1
- package/lib/table/table-header-cell.d.ts +3 -0
- package/lib/table/table-sorting-button.d.ts +415 -0
- package/lib/table/table-sorting-button.template.d.ts +3 -0
- package/lib/tag/tag.d.ts +0 -2
- package/lib/toggletip/toggletip.d.ts +0 -1
- package/lib/tree-item/tree-item.d.ts +0 -2
- package/lib/tree-view/tree-view.d.ts +0 -1
- package/locales/de-DE.cjs +266 -550
- package/locales/de-DE.js +264 -548
- package/locales/en-GB.cjs +266 -382
- package/locales/en-GB.js +264 -380
- package/locales/en-US.cjs +266 -550
- package/locales/en-US.js +264 -548
- package/locales/ja-JP.cjs +266 -549
- package/locales/ja-JP.js +264 -547
- package/locales/zh-CN.cjs +266 -551
- package/locales/zh-CN.js +264 -549
- package/menu/definition.cjs +6 -393
- package/menu/definition.js +2 -386
- package/menu/index.cjs +1 -1
- package/menu/index.js +6 -2
- package/menu-item/definition.cjs +7 -14
- package/menu-item/definition.js +3 -3
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +6 -2
- package/nav/definition.cjs +5 -27
- package/nav/definition.js +1 -20
- package/nav/index.cjs +3 -3
- package/nav/index.js +7 -10
- package/nav-disclosure/definition.cjs +6 -122
- package/nav-disclosure/definition.js +2 -115
- package/nav-disclosure/index.cjs +8 -8
- package/nav-disclosure/index.js +49 -86
- package/nav-item/definition.cjs +6 -79
- package/nav-item/definition.js +2 -72
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +33 -58
- package/note/definition.cjs +6 -61
- package/note/definition.js +2 -54
- package/note/index.cjs +5 -5
- package/note/index.js +24 -38
- package/number-field/definition.cjs +6 -440
- package/number-field/definition.js +2 -433
- package/number-field/index.cjs +31 -31
- package/number-field/index.js +160 -328
- package/option/definition.cjs +6 -13
- package/option/definition.js +3 -3
- package/option/index.cjs +1 -1
- package/option/index.js +6 -2
- package/package.json +15 -17
- package/pagination/definition.cjs +6 -254
- package/pagination/definition.js +2 -247
- package/pagination/index.cjs +37 -37
- package/pagination/index.js +148 -186
- package/popover/definition.cjs +6 -356
- package/popover/definition.js +2 -349
- package/popover/index.cjs +16 -16
- package/popover/index.js +161 -239
- package/popup/definition.cjs +5 -13
- package/popup/definition.js +3 -4
- package/popup/index.cjs +1 -1
- package/popup/index.js +6 -2
- package/progress/definition.cjs +5 -87
- package/progress/definition.js +1 -80
- package/progress/index.cjs +9 -9
- package/progress/index.js +33 -55
- package/progress-ring/definition.cjs +5 -95
- package/progress-ring/definition.js +1 -88
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +5 -2
- package/radio/definition.cjs +5 -227
- package/radio/definition.js +1 -220
- package/radio/index.cjs +1 -1
- package/radio/index.js +5 -2
- package/radio-group/definition.cjs +6 -361
- package/radio-group/definition.js +2 -354
- package/radio-group/index.cjs +10 -10
- package/radio-group/index.js +160 -242
- package/range-slider/definition.cjs +6 -632
- package/range-slider/definition.js +2 -625
- package/range-slider/index.cjs +41 -41
- package/range-slider/index.js +259 -429
- package/rich-text-editor/definition.cjs +33 -15694
- package/rich-text-editor/definition.js +3 -15662
- package/rich-text-editor/index.cjs +18 -18
- package/rich-text-editor/index.js +9129 -11475
- package/rich-text-view/definition.cjs +5 -171
- package/rich-text-view/definition.js +1 -164
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +68 -102
- package/searchable-select/definition.cjs +5 -1401
- package/searchable-select/definition.js +2 -1395
- package/searchable-select/index.cjs +94 -94
- package/searchable-select/index.js +600 -1015
- package/select/definition.cjs +6 -1002
- package/select/definition.js +2 -995
- package/select/index.cjs +1 -1
- package/select/index.js +6 -2
- package/selectable-box/definition.cjs +6 -174
- package/selectable-box/definition.js +2 -167
- package/selectable-box/index.cjs +18 -18
- package/selectable-box/index.js +66 -127
- package/shared/foundation/test-utilities/fixture.d.ts +1 -1
- package/shared/patterns/linkable.d.ts +1 -1
- package/side-drawer/definition.cjs +5 -130
- package/side-drawer/definition.js +1 -123
- package/side-drawer/index.cjs +7 -7
- package/side-drawer/index.js +47 -89
- package/simple-color-picker/definition.cjs +6 -225
- package/simple-color-picker/definition.js +2 -218
- package/simple-color-picker/index.cjs +15 -15
- package/simple-color-picker/index.js +98 -135
- package/slider/definition.cjs +6 -499
- package/slider/definition.js +2 -492
- package/slider/index.cjs +1 -1
- package/slider/index.js +6 -2
- package/split-button/definition.cjs +6 -176
- package/split-button/definition.js +2 -169
- package/split-button/index.cjs +15 -15
- package/split-button/index.js +74 -135
- package/status/definition.cjs +6 -82
- package/status/definition.js +2 -75
- package/status/index.cjs +7 -7
- package/status/index.js +35 -52
- package/switch/definition.cjs +6 -148
- package/switch/definition.js +2 -141
- package/switch/index.cjs +8 -8
- package/switch/index.js +48 -92
- package/tab/definition.cjs +6 -127
- package/tab/definition.js +2 -120
- package/tab/index.cjs +1 -1
- package/tab/index.js +6 -2
- package/tab-panel/definition.cjs +5 -29
- package/tab-panel/definition.js +1 -22
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +5 -2
- package/table/definition.cjs +18 -174
- package/table/definition.js +3 -158
- package/table/index.cjs +19 -10
- package/table/index.js +74 -82
- package/tabs/definition.cjs +7 -467
- package/tabs/definition.js +2 -459
- package/tabs/index.cjs +11 -11
- package/tabs/index.js +169 -296
- package/tag/definition.cjs +6 -176
- package/tag/definition.js +2 -169
- package/tag/index.cjs +26 -26
- package/tag/index.js +64 -125
- package/tag-group/definition.cjs +5 -40
- package/tag-group/definition.js +1 -33
- package/tag-group/index.cjs +4 -4
- package/tag-group/index.js +10 -21
- package/text-area/definition.cjs +6 -355
- package/text-area/definition.js +2 -348
- package/text-area/index.cjs +11 -11
- package/text-area/index.js +153 -260
- package/text-field/definition.cjs +6 -423
- package/text-field/definition.js +2 -416
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +6 -2
- package/time-picker/definition.cjs +7 -43
- package/time-picker/definition.js +3 -36
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +24 -29
- package/toggletip/definition.cjs +6 -159
- package/toggletip/definition.js +2 -152
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +6 -2
- package/tooltip/definition.cjs +6 -139
- package/tooltip/definition.js +2 -132
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +6 -2
- package/tree-item/definition.cjs +6 -13
- package/tree-item/definition.js +3 -3
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +6 -2
- package/tree-view/definition.cjs +6 -302
- package/tree-view/definition.js +2 -295
- package/tree-view/index.cjs +11 -11
- package/tree-view/index.js +145 -174
- package/unbundled/affix.cjs +89 -62
- package/unbundled/affix.js +58 -55
- package/unbundled/anchored.cjs +87 -94
- package/unbundled/anchored.js +74 -90
- package/unbundled/attribute-binding-behaviour.cjs +37 -42
- package/unbundled/attribute-binding-behaviour.js +31 -40
- package/unbundled/base-color-picker.cjs +226 -275
- package/unbundled/base-color-picker.js +214 -272
- package/unbundled/base-progress.cjs +63 -78
- package/unbundled/base-progress.js +57 -76
- package/unbundled/breadcrumb-item.cjs +24 -28
- package/unbundled/breadcrumb-item.js +18 -26
- package/unbundled/button.cjs +115 -166
- package/unbundled/button.js +109 -164
- package/unbundled/calendar-event.cjs +28 -41
- package/unbundled/calendar-event.js +22 -39
- package/unbundled/calendar-picker.template.cjs +4967 -792
- package/unbundled/calendar-picker.template.js +4907 -781
- package/unbundled/char-count.cjs +50 -80
- package/unbundled/char-count.js +44 -78
- package/unbundled/chunk.cjs +28 -0
- package/unbundled/data-grid.options.cjs +80 -29
- package/unbundled/data-grid.options.js +51 -23
- package/unbundled/decorate.cjs +14 -0
- package/unbundled/decorate.js +9 -0
- package/unbundled/definition.cjs +42 -405
- package/unbundled/definition.js +24 -399
- package/unbundled/definition10.cjs +253 -0
- package/unbundled/definition10.js +229 -0
- package/unbundled/definition11.cjs +397 -0
- package/unbundled/definition11.js +379 -0
- package/unbundled/definition12.cjs +317 -0
- package/unbundled/definition12.js +287 -0
- package/unbundled/definition13.cjs +321 -0
- package/unbundled/definition13.js +303 -0
- package/unbundled/definition14.cjs +406 -0
- package/unbundled/definition14.js +388 -0
- package/unbundled/definition15.cjs +107 -0
- package/unbundled/definition15.js +89 -0
- package/unbundled/definition16.cjs +63 -0
- package/unbundled/definition16.js +45 -0
- package/unbundled/definition17.cjs +151 -0
- package/unbundled/definition17.js +133 -0
- package/unbundled/definition18.cjs +47 -0
- package/unbundled/definition18.js +35 -0
- package/unbundled/definition19.cjs +98 -0
- package/unbundled/definition19.js +80 -0
- package/unbundled/definition2.cjs +180 -220
- package/unbundled/definition2.js +162 -215
- package/unbundled/definition20.cjs +56 -0
- package/unbundled/definition20.js +43 -0
- package/unbundled/definition21.cjs +304 -0
- package/unbundled/definition21.js +285 -0
- package/unbundled/definition22.cjs +179 -0
- package/unbundled/definition22.js +161 -0
- package/unbundled/definition23.cjs +161 -0
- package/unbundled/definition23.js +143 -0
- package/unbundled/definition24.cjs +157 -0
- package/unbundled/definition24.js +139 -0
- package/unbundled/definition25.cjs +75 -0
- package/unbundled/definition25.js +57 -0
- package/unbundled/definition26.cjs +363 -0
- package/unbundled/definition26.js +345 -0
- package/unbundled/definition27.cjs +137 -0
- package/unbundled/definition27.js +119 -0
- package/unbundled/definition28.cjs +538 -0
- package/unbundled/definition28.js +520 -0
- package/unbundled/definition29.cjs +236 -0
- package/unbundled/definition29.js +212 -0
- package/unbundled/definition3.cjs +131 -284
- package/unbundled/definition3.js +113 -279
- package/unbundled/definition30.cjs +559 -0
- package/unbundled/definition30.js +541 -0
- package/unbundled/definition31.cjs +1265 -0
- package/unbundled/definition31.js +1247 -0
- package/unbundled/definition32.cjs +1908 -0
- package/unbundled/definition32.js +1866 -0
- package/unbundled/definition33.cjs +346 -0
- package/unbundled/definition33.js +256 -0
- package/unbundled/definition34.cjs +46 -0
- package/unbundled/definition34.js +33 -0
- package/unbundled/definition35.cjs +152 -0
- package/unbundled/definition35.js +134 -0
- package/unbundled/definition36.cjs +426 -0
- package/unbundled/definition36.js +408 -0
- package/unbundled/definition37.cjs +247 -0
- package/unbundled/definition37.js +229 -0
- package/unbundled/definition38.cjs +411 -0
- package/unbundled/definition38.js +393 -0
- package/unbundled/definition39.cjs +299 -0
- package/unbundled/definition39.js +281 -0
- package/unbundled/definition4.cjs +186 -205
- package/unbundled/definition4.js +162 -200
- package/unbundled/definition40.cjs +81 -0
- package/unbundled/definition40.js +63 -0
- package/unbundled/definition41.cjs +100 -0
- package/unbundled/definition41.js +82 -0
- package/unbundled/definition42.cjs +468 -0
- package/unbundled/definition42.js +450 -0
- package/unbundled/definition43.cjs +86 -0
- package/unbundled/definition43.js +68 -0
- package/unbundled/definition44.cjs +60 -0
- package/unbundled/definition44.js +41 -0
- package/unbundled/definition45.cjs +124 -0
- package/unbundled/definition45.js +106 -0
- package/unbundled/definition46.cjs +85 -0
- package/unbundled/definition46.js +67 -0
- package/unbundled/definition47.cjs +52 -0
- package/unbundled/definition47.js +31 -0
- package/unbundled/definition48.cjs +69 -0
- package/unbundled/definition48.js +51 -0
- package/unbundled/definition49.cjs +377 -0
- package/unbundled/definition49.js +359 -0
- package/unbundled/definition5.cjs +69 -298
- package/unbundled/definition5.js +44 -293
- package/unbundled/definition50.cjs +246 -0
- package/unbundled/definition50.js +228 -0
- package/unbundled/definition51.cjs +337 -0
- package/unbundled/definition51.js +319 -0
- package/unbundled/definition52.cjs +86 -0
- package/unbundled/definition52.js +67 -0
- package/unbundled/definition53.cjs +193 -0
- package/unbundled/definition53.js +174 -0
- package/unbundled/definition54.cjs +297 -0
- package/unbundled/definition54.js +279 -0
- package/unbundled/definition55.cjs +510 -0
- package/unbundled/definition55.js +492 -0
- package/unbundled/definition56.cjs +3659 -0
- package/unbundled/definition56.js +3478 -0
- package/unbundled/definition57.cjs +837 -0
- package/unbundled/definition57.js +819 -0
- package/unbundled/definition58.cjs +147 -0
- package/unbundled/definition58.js +129 -0
- package/unbundled/definition59.cjs +1081 -0
- package/unbundled/definition59.js +1063 -0
- package/unbundled/definition6.cjs +88 -56
- package/unbundled/definition6.js +69 -52
- package/unbundled/definition60.cjs +149 -0
- package/unbundled/definition60.js +131 -0
- package/unbundled/definition61.cjs +116 -0
- package/unbundled/definition61.js +97 -0
- package/unbundled/definition62.cjs +213 -0
- package/unbundled/definition62.js +195 -0
- package/unbundled/definition63.cjs +159 -0
- package/unbundled/definition63.js +141 -0
- package/unbundled/definition64.cjs +86 -0
- package/unbundled/definition64.js +68 -0
- package/unbundled/definition65.cjs +126 -0
- package/unbundled/definition65.js +107 -0
- package/unbundled/definition66.cjs +49 -0
- package/unbundled/definition66.js +28 -0
- package/unbundled/definition67.cjs +119 -0
- package/unbundled/definition67.js +101 -0
- package/unbundled/definition68.cjs +374 -0
- package/unbundled/definition68.js +349 -0
- package/unbundled/definition69.cjs +57 -0
- package/unbundled/definition69.js +38 -0
- package/unbundled/definition7.cjs +190 -0
- package/unbundled/definition7.js +166 -0
- package/unbundled/definition70.cjs +155 -0
- package/unbundled/definition70.js +137 -0
- package/unbundled/definition71.cjs +302 -0
- package/unbundled/definition71.js +284 -0
- package/unbundled/definition72.cjs +48 -0
- package/unbundled/definition72.js +37 -0
- package/unbundled/definition73.cjs +171 -0
- package/unbundled/definition73.js +147 -0
- package/unbundled/definition74.cjs +232 -0
- package/unbundled/definition74.js +213 -0
- package/unbundled/definition75.cjs +533 -0
- package/unbundled/definition75.js +513 -0
- package/unbundled/definition8.cjs +63 -0
- package/unbundled/definition8.js +44 -0
- package/unbundled/definition9.cjs +183 -0
- package/unbundled/definition9.js +165 -0
- package/unbundled/delegates-aria.cjs +90 -131
- package/unbundled/delegates-aria.js +77 -127
- package/unbundled/dialog.cjs +15 -0
- package/unbundled/dialog.js +10 -0
- package/unbundled/divider.cjs +42 -50
- package/unbundled/divider.js +30 -47
- package/unbundled/enums.cjs +166 -107
- package/unbundled/enums.js +95 -94
- package/unbundled/form-associated.cjs +408 -463
- package/unbundled/form-associated.js +396 -460
- package/unbundled/form-element.cjs +74 -83
- package/unbundled/form-element.js +68 -81
- package/unbundled/host-semantics.cjs +70 -89
- package/unbundled/host-semantics.js +57 -85
- package/unbundled/key-codes.cjs +16 -10
- package/unbundled/key-codes.js +5 -7
- package/unbundled/linkable.cjs +35 -56
- package/unbundled/linkable.js +27 -52
- package/unbundled/listbox.cjs +363 -465
- package/unbundled/listbox.js +357 -463
- package/unbundled/localized.cjs +79 -74
- package/unbundled/localized.js +61 -70
- package/unbundled/mixins.cjs +222 -223
- package/unbundled/mixins.js +186 -211
- package/unbundled/picker-field.template.cjs +188 -217
- package/unbundled/picker-field.template.js +165 -208
- package/unbundled/playbackRates.cjs +18 -11
- package/unbundled/playbackRates.js +13 -9
- package/unbundled/scrollIntoView.cjs +38 -43
- package/unbundled/scrollIntoView.js +33 -41
- package/unbundled/single-date-picker.cjs +48 -45
- package/unbundled/single-date-picker.js +43 -43
- package/unbundled/single-value-picker.cjs +106 -114
- package/unbundled/single-value-picker.js +101 -112
- package/unbundled/slider.template.cjs +107 -73
- package/unbundled/slider.template.js +67 -62
- package/unbundled/slottable-request.cjs +145 -3700
- package/unbundled/slottable-request.js +98 -3681
- package/unbundled/text-field.cjs +9 -5
- package/unbundled/text-field.js +4 -3
- package/unbundled/time-selection-picker.template.cjs +611 -755
- package/unbundled/time-selection-picker.template.js +554 -742
- package/unbundled/trapped-focus.cjs +45 -35
- package/unbundled/trapped-focus.js +34 -32
- package/unbundled/vivid-element.cjs +281 -274
- package/unbundled/vivid-element.js +239 -266
- package/unbundled/with-contextual-help.cjs +35 -39
- package/unbundled/with-contextual-help.js +29 -37
- package/unbundled/with-error-text.cjs +45 -55
- package/unbundled/with-error-text.js +39 -53
- package/unbundled/with-success-text.cjs +18 -22
- package/unbundled/with-success-text.js +12 -20
- package/video-player/definition.cjs +5 -69835
- package/video-player/definition.js +1 -69828
- package/video-player/index.cjs +44 -39
- package/video-player/index.js +23517 -35507
- package/visually-hidden/definition.cjs +5 -30
- package/visually-hidden/definition.js +1 -23
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +5 -2
- package/vivid.api.json +331 -1874
- package/bundled/index.cjs +0 -1
- package/bundled/index.js +0 -6
- package/unbundled/_commonjsHelpers.cjs +0 -40
- package/unbundled/_commonjsHelpers.js +0 -36
- package/unbundled/index.cjs +0 -11
- package/unbundled/index.js +0 -9
package/bundled/vivid-element.js
CHANGED
|
@@ -1,2824 +1,1799 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/interfaces.js
|
|
2
|
+
var e, t = "fast-kernel";
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
4
|
+
if (document.currentScript) e = document.currentScript.getAttribute(t);
|
|
5
|
+
else {
|
|
6
|
+
let n = document.getElementsByTagName("script");
|
|
7
|
+
e = n[n.length - 1].getAttribute(t);
|
|
8
|
+
}
|
|
10
9
|
} catch {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
switch (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}), e;
|
|
70
|
-
}
|
|
71
|
-
var pt = {}, bt;
|
|
72
|
-
function ye() {
|
|
73
|
-
return bt || (bt = 1, (function() {
|
|
74
|
-
if (!(typeof globalThis < "u"))
|
|
75
|
-
if (typeof tt < "u")
|
|
76
|
-
tt.globalThis = tt;
|
|
77
|
-
else if (typeof self < "u")
|
|
78
|
-
self.globalThis = self;
|
|
79
|
-
else if (typeof window < "u")
|
|
80
|
-
window.globalThis = window;
|
|
81
|
-
else {
|
|
82
|
-
const t = new Function("return this")();
|
|
83
|
-
t.globalThis = t;
|
|
84
|
-
}
|
|
85
|
-
})(), (function() {
|
|
86
|
-
"requestIdleCallback" in globalThis || (globalThis.requestIdleCallback = function(e, s) {
|
|
87
|
-
const n = Date.now();
|
|
88
|
-
return setTimeout(() => {
|
|
89
|
-
e({
|
|
90
|
-
didTimeout: s?.timeout ? Date.now() - n >= s.timeout : !1,
|
|
91
|
-
timeRemaining: () => 0
|
|
92
|
-
});
|
|
93
|
-
}, 1);
|
|
94
|
-
}, globalThis.cancelIdleCallback = function(e) {
|
|
95
|
-
clearTimeout(e);
|
|
96
|
-
});
|
|
97
|
-
})()), pt;
|
|
98
|
-
}
|
|
99
|
-
ye();
|
|
100
|
-
const zt = {
|
|
101
|
-
configurable: !1,
|
|
102
|
-
enumerable: !1,
|
|
103
|
-
writable: !1
|
|
10
|
+
e = "isolate";
|
|
11
|
+
}
|
|
12
|
+
var n;
|
|
13
|
+
switch (e) {
|
|
14
|
+
case "share":
|
|
15
|
+
n = Object.freeze({
|
|
16
|
+
updateQueue: 1,
|
|
17
|
+
observable: 2,
|
|
18
|
+
contextEvent: 3,
|
|
19
|
+
elementRegistry: 4
|
|
20
|
+
});
|
|
21
|
+
break;
|
|
22
|
+
case "share-v2":
|
|
23
|
+
n = Object.freeze({
|
|
24
|
+
updateQueue: 1.2,
|
|
25
|
+
observable: 2.2,
|
|
26
|
+
contextEvent: 3.2,
|
|
27
|
+
elementRegistry: 4.2
|
|
28
|
+
});
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
let e = `-${Math.random().toString(36).substring(2, 8)}`;
|
|
32
|
+
n = Object.freeze({
|
|
33
|
+
updateQueue: `1.2${e}`,
|
|
34
|
+
observable: `2.2${e}`,
|
|
35
|
+
contextEvent: `3.2${e}`,
|
|
36
|
+
elementRegistry: `4.2${e}`
|
|
37
|
+
});
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
var r = (e) => typeof e == "function", i = (e) => typeof e == "string", a = () => void 0;
|
|
41
|
+
(function() {
|
|
42
|
+
if (!(typeof globalThis < "u")) if (typeof global < "u") global.globalThis = global;
|
|
43
|
+
else if (typeof self < "u") self.globalThis = self;
|
|
44
|
+
else if (typeof window < "u") window.globalThis = window;
|
|
45
|
+
else {
|
|
46
|
+
let e = Function("return this")();
|
|
47
|
+
e.globalThis = e;
|
|
48
|
+
}
|
|
49
|
+
})(), (function() {
|
|
50
|
+
"requestIdleCallback" in globalThis || (globalThis.requestIdleCallback = function(e, t) {
|
|
51
|
+
let n = Date.now();
|
|
52
|
+
return setTimeout(() => {
|
|
53
|
+
e({
|
|
54
|
+
didTimeout: t?.timeout ? Date.now() - n >= t.timeout : !1,
|
|
55
|
+
timeRemaining: () => 0
|
|
56
|
+
});
|
|
57
|
+
}, 1);
|
|
58
|
+
}, globalThis.cancelIdleCallback = function(e) {
|
|
59
|
+
clearTimeout(e);
|
|
60
|
+
});
|
|
61
|
+
})();
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/platform.js
|
|
64
|
+
var o = {
|
|
65
|
+
configurable: !1,
|
|
66
|
+
enumerable: !1,
|
|
67
|
+
writable: !1
|
|
104
68
|
};
|
|
105
|
-
globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value:
|
|
106
|
-
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
addMessages() {
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
const pi = Object.freeze([]);
|
|
124
|
-
function Ut() {
|
|
125
|
-
const i = /* @__PURE__ */ new Map();
|
|
126
|
-
return Object.freeze({
|
|
127
|
-
register(t) {
|
|
128
|
-
return i.has(t.type) ? !1 : (i.set(t.type, t), !0);
|
|
129
|
-
},
|
|
130
|
-
getByType(t) {
|
|
131
|
-
return i.get(t);
|
|
132
|
-
},
|
|
133
|
-
getForInstance(t) {
|
|
134
|
-
if (t != null)
|
|
135
|
-
return i.get(t.constructor);
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
function qt() {
|
|
140
|
-
const i = /* @__PURE__ */ new WeakMap();
|
|
141
|
-
return function(t) {
|
|
142
|
-
let e = i.get(t);
|
|
143
|
-
if (e === void 0) {
|
|
144
|
-
let s = Reflect.getPrototypeOf(t);
|
|
145
|
-
for (; e === void 0 && s !== null; )
|
|
146
|
-
e = i.get(s), s = Reflect.getPrototypeOf(s);
|
|
147
|
-
e = e === void 0 ? [] : e.slice(0), i.set(t, e);
|
|
148
|
-
}
|
|
149
|
-
return e;
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function x(i) {
|
|
153
|
-
i.prototype.toJSON = ge;
|
|
154
|
-
}
|
|
155
|
-
const y = Object.freeze({
|
|
156
|
-
/**
|
|
157
|
-
* Not aspected.
|
|
158
|
-
*/
|
|
159
|
-
none: 0,
|
|
160
|
-
/**
|
|
161
|
-
* An attribute.
|
|
162
|
-
*/
|
|
163
|
-
attribute: 1,
|
|
164
|
-
/**
|
|
165
|
-
* A boolean attribute.
|
|
166
|
-
*/
|
|
167
|
-
booleanAttribute: 2,
|
|
168
|
-
/**
|
|
169
|
-
* A property.
|
|
170
|
-
*/
|
|
171
|
-
property: 3,
|
|
172
|
-
/**
|
|
173
|
-
* Content
|
|
174
|
-
*/
|
|
175
|
-
content: 4,
|
|
176
|
-
/**
|
|
177
|
-
* A token list.
|
|
178
|
-
*/
|
|
179
|
-
tokenList: 5,
|
|
180
|
-
/**
|
|
181
|
-
* An event.
|
|
182
|
-
*/
|
|
183
|
-
event: 6
|
|
184
|
-
}), gt = (i) => i, ve = globalThis.trustedTypes ? globalThis.trustedTypes.createPolicy("fast-html", { createHTML: gt }) : { createHTML: gt };
|
|
185
|
-
let P = Object.freeze({
|
|
186
|
-
createHTML(i) {
|
|
187
|
-
return ve.createHTML(i);
|
|
188
|
-
},
|
|
189
|
-
protect(i, t, e, s) {
|
|
190
|
-
return s;
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
const me = P, T = Object.freeze({
|
|
194
|
-
/**
|
|
195
|
-
* Gets the dom policy used by the templating system.
|
|
196
|
-
*/
|
|
197
|
-
get policy() {
|
|
198
|
-
return P;
|
|
199
|
-
},
|
|
200
|
-
/**
|
|
201
|
-
* Sets the dom policy used by the templating system.
|
|
202
|
-
* @param policy - The policy to set.
|
|
203
|
-
* @remarks
|
|
204
|
-
* This API can only be called once, for security reasons. It should be
|
|
205
|
-
* called by the application developer at the start of their program.
|
|
206
|
-
*/
|
|
207
|
-
setPolicy(i) {
|
|
208
|
-
if (P !== me)
|
|
209
|
-
throw v.error(
|
|
210
|
-
1201
|
|
211
|
-
/* Message.onlySetDOMPolicyOnce */
|
|
212
|
-
);
|
|
213
|
-
P = i;
|
|
214
|
-
},
|
|
215
|
-
/**
|
|
216
|
-
* Sets an attribute value on an element.
|
|
217
|
-
* @param element - The element to set the attribute value on.
|
|
218
|
-
* @param attributeName - The attribute name to set.
|
|
219
|
-
* @param value - The value of the attribute to set.
|
|
220
|
-
* @remarks
|
|
221
|
-
* If the value is `null` or `undefined`, the attribute is removed, otherwise
|
|
222
|
-
* it is set to the provided value using the standard `setAttribute` API.
|
|
223
|
-
*/
|
|
224
|
-
setAttribute(i, t, e) {
|
|
225
|
-
e == null ? i.removeAttribute(t) : i.setAttribute(t, e);
|
|
226
|
-
},
|
|
227
|
-
/**
|
|
228
|
-
* Sets a boolean attribute value.
|
|
229
|
-
* @param element - The element to set the boolean attribute value on.
|
|
230
|
-
* @param attributeName - The attribute name to set.
|
|
231
|
-
* @param value - The value of the attribute to set.
|
|
232
|
-
* @remarks
|
|
233
|
-
* If the value is true, the attribute is added; otherwise it is removed.
|
|
234
|
-
*/
|
|
235
|
-
setBooleanAttribute(i, t, e) {
|
|
236
|
-
e ? i.setAttribute(t, "") : i.removeAttribute(t);
|
|
237
|
-
}
|
|
238
|
-
}), Wt = v.getById(N.updateQueue, () => {
|
|
239
|
-
const i = [], t = [], e = globalThis.requestAnimationFrame;
|
|
240
|
-
let s = !0;
|
|
241
|
-
function n() {
|
|
242
|
-
if (t.length)
|
|
243
|
-
throw t.shift();
|
|
244
|
-
}
|
|
245
|
-
function r(d) {
|
|
246
|
-
try {
|
|
247
|
-
d.call();
|
|
248
|
-
} catch (l) {
|
|
249
|
-
if (s)
|
|
250
|
-
t.push(l), setTimeout(n, 0);
|
|
251
|
-
else
|
|
252
|
-
throw i.length = 0, l;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
function o() {
|
|
256
|
-
let l = 0;
|
|
257
|
-
for (; l < i.length; )
|
|
258
|
-
if (r(i[l]), l++, l > 1024) {
|
|
259
|
-
for (let a = 0, h = i.length - l; a < h; a++)
|
|
260
|
-
i[a] = i[a + l];
|
|
261
|
-
i.length -= l, l = 0;
|
|
262
|
-
}
|
|
263
|
-
i.length = 0;
|
|
264
|
-
}
|
|
265
|
-
function c(d) {
|
|
266
|
-
i.push(d), i.length < 2 && (s ? e(o) : o());
|
|
267
|
-
}
|
|
268
|
-
return Object.freeze({
|
|
269
|
-
enqueue: c,
|
|
270
|
-
next: () => new Promise(c),
|
|
271
|
-
process: o,
|
|
272
|
-
setMode: (d) => s = d
|
|
273
|
-
});
|
|
69
|
+
globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value: Object.create(null) }, o));
|
|
70
|
+
var s = globalThis.FAST;
|
|
71
|
+
if (s.getById === void 0) {
|
|
72
|
+
let e = Object.create(null);
|
|
73
|
+
Reflect.defineProperty(s, "getById", Object.assign({ value(t, n) {
|
|
74
|
+
let r = e[t];
|
|
75
|
+
return r === void 0 && (r = n ? e[t] = n() : null), r;
|
|
76
|
+
} }, o));
|
|
77
|
+
}
|
|
78
|
+
s.error === void 0 && Object.assign(s, {
|
|
79
|
+
warn() {},
|
|
80
|
+
error(e) {
|
|
81
|
+
return /* @__PURE__ */ Error(`Error ${e}`);
|
|
82
|
+
},
|
|
83
|
+
addMessages() {}
|
|
274
84
|
});
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
binding(l, a, h = this.isVolatileBinding(l)) {
|
|
547
|
-
return new d(l, a, h);
|
|
548
|
-
},
|
|
549
|
-
/**
|
|
550
|
-
* Determines whether a binding expression is volatile and needs to have its dependency list re-evaluated
|
|
551
|
-
* on every evaluation of the value.
|
|
552
|
-
* @param expression - The binding to inspect.
|
|
553
|
-
*/
|
|
554
|
-
isVolatileBinding(l) {
|
|
555
|
-
return t.test(l.toString());
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
});
|
|
559
|
-
function bi(i, t) {
|
|
560
|
-
g.defineProperty(i, t);
|
|
561
|
-
}
|
|
562
|
-
function gi(i, t, e) {
|
|
563
|
-
return Object.assign({}, e, {
|
|
564
|
-
get() {
|
|
565
|
-
return g.trackVolatile(), e.get.apply(this);
|
|
566
|
-
}
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
const yt = v.getById(N.contextEvent, () => {
|
|
570
|
-
let i = null;
|
|
571
|
-
return {
|
|
572
|
-
get() {
|
|
573
|
-
return i;
|
|
574
|
-
},
|
|
575
|
-
set(t) {
|
|
576
|
-
i = t;
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
}), O = Object.freeze({
|
|
580
|
-
/**
|
|
581
|
-
* A default execution context.
|
|
582
|
-
*/
|
|
583
|
-
default: {
|
|
584
|
-
index: 0,
|
|
585
|
-
length: 0,
|
|
586
|
-
get event() {
|
|
587
|
-
return O.getEvent();
|
|
588
|
-
},
|
|
589
|
-
eventDetail() {
|
|
590
|
-
return this.event.detail;
|
|
591
|
-
},
|
|
592
|
-
eventTarget() {
|
|
593
|
-
return this.event.target;
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
/**
|
|
597
|
-
* Gets the current event.
|
|
598
|
-
* @returns An event object.
|
|
599
|
-
*/
|
|
600
|
-
getEvent() {
|
|
601
|
-
return yt.get();
|
|
602
|
-
},
|
|
603
|
-
/**
|
|
604
|
-
* Sets the current event.
|
|
605
|
-
* @param event - An event object.
|
|
606
|
-
*/
|
|
607
|
-
setEvent(i) {
|
|
608
|
-
yt.set(i);
|
|
609
|
-
}
|
|
85
|
+
var c = Object.freeze([]);
|
|
86
|
+
function l() {
|
|
87
|
+
let e = /* @__PURE__ */ new Map();
|
|
88
|
+
return Object.freeze({
|
|
89
|
+
register(t) {
|
|
90
|
+
return e.has(t.type) ? !1 : (e.set(t.type, t), !0);
|
|
91
|
+
},
|
|
92
|
+
getByType(t) {
|
|
93
|
+
return e.get(t);
|
|
94
|
+
},
|
|
95
|
+
getForInstance(t) {
|
|
96
|
+
if (t != null) return e.get(t.constructor);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function u() {
|
|
101
|
+
let e = /* @__PURE__ */ new WeakMap();
|
|
102
|
+
return function(t) {
|
|
103
|
+
let n = e.get(t);
|
|
104
|
+
if (n === void 0) {
|
|
105
|
+
let r = Reflect.getPrototypeOf(t);
|
|
106
|
+
for (; n === void 0 && r !== null;) n = e.get(r), r = Reflect.getPrototypeOf(r);
|
|
107
|
+
n = n === void 0 ? [] : n.slice(0), e.set(t, n);
|
|
108
|
+
}
|
|
109
|
+
return n;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function d(e) {
|
|
113
|
+
e.prototype.toJSON = a;
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/dom.js
|
|
117
|
+
var f = Object.freeze({
|
|
118
|
+
none: 0,
|
|
119
|
+
attribute: 1,
|
|
120
|
+
booleanAttribute: 2,
|
|
121
|
+
property: 3,
|
|
122
|
+
content: 4,
|
|
123
|
+
tokenList: 5,
|
|
124
|
+
event: 6
|
|
125
|
+
}), p = (e) => e, ee = globalThis.trustedTypes ? globalThis.trustedTypes.createPolicy("fast-html", { createHTML: p }) : { createHTML: p }, m = Object.freeze({
|
|
126
|
+
createHTML(e) {
|
|
127
|
+
return ee.createHTML(e);
|
|
128
|
+
},
|
|
129
|
+
protect(e, t, n, r) {
|
|
130
|
+
return r;
|
|
131
|
+
}
|
|
132
|
+
}), te = m, h = Object.freeze({
|
|
133
|
+
get policy() {
|
|
134
|
+
return m;
|
|
135
|
+
},
|
|
136
|
+
setPolicy(e) {
|
|
137
|
+
if (m !== te) throw s.error(1201);
|
|
138
|
+
m = e;
|
|
139
|
+
},
|
|
140
|
+
setAttribute(e, t, n) {
|
|
141
|
+
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
142
|
+
},
|
|
143
|
+
setBooleanAttribute(e, t, n) {
|
|
144
|
+
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
145
|
+
}
|
|
146
|
+
}), g = s.getById(n.updateQueue, () => {
|
|
147
|
+
let e = [], t = [], n = globalThis.requestAnimationFrame, r = !0;
|
|
148
|
+
function i() {
|
|
149
|
+
if (t.length) throw t.shift();
|
|
150
|
+
}
|
|
151
|
+
function a(n) {
|
|
152
|
+
try {
|
|
153
|
+
n.call();
|
|
154
|
+
} catch (n) {
|
|
155
|
+
if (r) t.push(n), setTimeout(i, 0);
|
|
156
|
+
else throw e.length = 0, n;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function o() {
|
|
160
|
+
let t = 0;
|
|
161
|
+
for (; t < e.length;) if (a(e[t]), t++, t > 1024) {
|
|
162
|
+
for (let n = 0, r = e.length - t; n < r; n++) e[n] = e[n + t];
|
|
163
|
+
e.length -= t, t = 0;
|
|
164
|
+
}
|
|
165
|
+
e.length = 0;
|
|
166
|
+
}
|
|
167
|
+
function s(t) {
|
|
168
|
+
e.push(t), e.length < 2 && (r ? n(o) : o());
|
|
169
|
+
}
|
|
170
|
+
return Object.freeze({
|
|
171
|
+
enqueue: s,
|
|
172
|
+
next: () => new Promise(s),
|
|
173
|
+
process: o,
|
|
174
|
+
setMode: (e) => r = e
|
|
175
|
+
});
|
|
176
|
+
}), _ = class {
|
|
177
|
+
constructor(e, t) {
|
|
178
|
+
this.sub1 = void 0, this.sub2 = void 0, this.spillover = void 0, this.subject = e, this.sub1 = t;
|
|
179
|
+
}
|
|
180
|
+
has(e) {
|
|
181
|
+
return this.spillover === void 0 ? this.sub1 === e || this.sub2 === e : this.spillover.indexOf(e) !== -1;
|
|
182
|
+
}
|
|
183
|
+
subscribe(e) {
|
|
184
|
+
let t = this.spillover;
|
|
185
|
+
if (t === void 0) {
|
|
186
|
+
if (this.has(e)) return;
|
|
187
|
+
if (this.sub1 === void 0) {
|
|
188
|
+
this.sub1 = e;
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
if (this.sub2 === void 0) {
|
|
192
|
+
this.sub2 = e;
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
this.spillover = [
|
|
196
|
+
this.sub1,
|
|
197
|
+
this.sub2,
|
|
198
|
+
e
|
|
199
|
+
], this.sub1 = void 0, this.sub2 = void 0;
|
|
200
|
+
} else t.indexOf(e) === -1 && t.push(e);
|
|
201
|
+
}
|
|
202
|
+
unsubscribe(e) {
|
|
203
|
+
let t = this.spillover;
|
|
204
|
+
if (t === void 0) this.sub1 === e ? this.sub1 = void 0 : this.sub2 === e && (this.sub2 = void 0);
|
|
205
|
+
else {
|
|
206
|
+
let n = t.indexOf(e);
|
|
207
|
+
n !== -1 && t.splice(n, 1);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
notify(e) {
|
|
211
|
+
let t = this.spillover, n = this.subject;
|
|
212
|
+
if (t === void 0) {
|
|
213
|
+
let t = this.sub1, r = this.sub2;
|
|
214
|
+
t !== void 0 && t.handleChange(n, e), r !== void 0 && r.handleChange(n, e);
|
|
215
|
+
} else for (let r = 0, i = t.length; r < i; ++r) t[r].handleChange(n, e);
|
|
216
|
+
}
|
|
217
|
+
}, ne = class {
|
|
218
|
+
constructor(e) {
|
|
219
|
+
this.subscribers = {}, this.subjectSubscribers = null, this.subject = e;
|
|
220
|
+
}
|
|
221
|
+
notify(e) {
|
|
222
|
+
var t, n;
|
|
223
|
+
(t = this.subscribers[e]) == null || t.notify(e), (n = this.subjectSubscribers) == null || n.notify(e);
|
|
224
|
+
}
|
|
225
|
+
subscribe(e, t) {
|
|
226
|
+
let n;
|
|
227
|
+
n = t ? this.subscribers[t] ?? (this.subscribers[t] = new _(this.subject)) : this.subjectSubscribers ??= new _(this.subject), n.subscribe(e);
|
|
228
|
+
}
|
|
229
|
+
unsubscribe(e, t) {
|
|
230
|
+
var n, r;
|
|
231
|
+
t ? (n = this.subscribers[t]) == null || n.unsubscribe(e) : (r = this.subjectSubscribers) == null || r.unsubscribe(e);
|
|
232
|
+
}
|
|
233
|
+
}, v = Object.freeze({
|
|
234
|
+
unknown: void 0,
|
|
235
|
+
coupled: 1
|
|
236
|
+
}), y = s.getById(n.observable, () => {
|
|
237
|
+
let e = g.enqueue, t = /(:|&&|\|\||if|\?\.)/, n = /* @__PURE__ */ new WeakMap(), a, o = (e) => {
|
|
238
|
+
throw s.error(1101);
|
|
239
|
+
};
|
|
240
|
+
function c(e) {
|
|
241
|
+
let t = e.$fastController ?? n.get(e);
|
|
242
|
+
return t === void 0 && (Array.isArray(e) ? t = o(e) : n.set(e, t = new ne(e))), t;
|
|
243
|
+
}
|
|
244
|
+
let l = u();
|
|
245
|
+
class f {
|
|
246
|
+
constructor(e) {
|
|
247
|
+
this.name = e, this.field = `_${e}`, this.callback = `${e}Changed`;
|
|
248
|
+
}
|
|
249
|
+
getValue(e) {
|
|
250
|
+
return a !== void 0 && a.watch(e, this.name), e[this.field];
|
|
251
|
+
}
|
|
252
|
+
setValue(e, t) {
|
|
253
|
+
let n = this.field, i = e[n];
|
|
254
|
+
if (i !== t) {
|
|
255
|
+
e[n] = t;
|
|
256
|
+
let a = e[this.callback];
|
|
257
|
+
r(a) && a.call(e, i, t), c(e).notify(this.name);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
class p extends _ {
|
|
262
|
+
constructor(e, t, n = !1) {
|
|
263
|
+
super(e, t), this.expression = e, this.isVolatileBinding = n, this.needsRefresh = !0, this.needsQueue = !0, this.isAsync = !0, this.first = this, this.last = null, this.propertySource = void 0, this.propertyName = void 0, this.notifier = void 0, this.next = void 0;
|
|
264
|
+
}
|
|
265
|
+
setMode(e) {
|
|
266
|
+
this.isAsync = this.needsQueue = e;
|
|
267
|
+
}
|
|
268
|
+
bind(e) {
|
|
269
|
+
this.controller = e;
|
|
270
|
+
let t = this.observe(e.source, e.context);
|
|
271
|
+
return !e.isBound && this.requiresUnbind(e) && e.onUnbind(this), t;
|
|
272
|
+
}
|
|
273
|
+
requiresUnbind(e) {
|
|
274
|
+
return e.sourceLifetime !== v.coupled || this.first !== this.last || this.first.propertySource !== e.source;
|
|
275
|
+
}
|
|
276
|
+
unbind(e) {
|
|
277
|
+
this.dispose();
|
|
278
|
+
}
|
|
279
|
+
observe(e, t) {
|
|
280
|
+
this.needsRefresh && this.last !== null && this.dispose();
|
|
281
|
+
let n = a;
|
|
282
|
+
a = this.needsRefresh ? this : void 0, this.needsRefresh = this.isVolatileBinding;
|
|
283
|
+
let r;
|
|
284
|
+
try {
|
|
285
|
+
r = this.expression(e, t);
|
|
286
|
+
} finally {
|
|
287
|
+
a = n;
|
|
288
|
+
}
|
|
289
|
+
return r;
|
|
290
|
+
}
|
|
291
|
+
disconnect() {
|
|
292
|
+
this.dispose();
|
|
293
|
+
}
|
|
294
|
+
dispose() {
|
|
295
|
+
if (this.last !== null) {
|
|
296
|
+
let e = this.first;
|
|
297
|
+
for (; e !== void 0;) e.notifier.unsubscribe(this, e.propertyName), e = e.next;
|
|
298
|
+
this.last = null, this.needsRefresh = this.needsQueue = this.isAsync;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
watch(e, t) {
|
|
302
|
+
let n = this.last, r = c(e), i = n === null ? this.first : {};
|
|
303
|
+
if (i.propertySource = e, i.propertyName = t, i.notifier = r, r.subscribe(this, t), n !== null) {
|
|
304
|
+
if (!this.needsRefresh) {
|
|
305
|
+
let t;
|
|
306
|
+
a = void 0, t = n.propertySource[n.propertyName], a = this, e === t && (this.needsRefresh = !0);
|
|
307
|
+
}
|
|
308
|
+
n.next = i;
|
|
309
|
+
}
|
|
310
|
+
this.last = i;
|
|
311
|
+
}
|
|
312
|
+
handleChange() {
|
|
313
|
+
this.needsQueue ? (this.needsQueue = !1, e(this)) : this.isAsync || this.call();
|
|
314
|
+
}
|
|
315
|
+
call() {
|
|
316
|
+
this.last !== null && (this.needsQueue = this.isAsync, this.notify(this));
|
|
317
|
+
}
|
|
318
|
+
*records() {
|
|
319
|
+
let e = this.first;
|
|
320
|
+
for (; e !== void 0;) yield e, e = e.next;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return d(p), Object.freeze({
|
|
324
|
+
setArrayObserverFactory(e) {
|
|
325
|
+
o = e;
|
|
326
|
+
},
|
|
327
|
+
getNotifier: c,
|
|
328
|
+
track(e, t) {
|
|
329
|
+
a && a.watch(e, t);
|
|
330
|
+
},
|
|
331
|
+
trackVolatile() {
|
|
332
|
+
a && (a.needsRefresh = !0);
|
|
333
|
+
},
|
|
334
|
+
notify(e, t) {
|
|
335
|
+
c(e).notify(t);
|
|
336
|
+
},
|
|
337
|
+
defineProperty(e, t) {
|
|
338
|
+
i(t) && (t = new f(t)), l(e).push(t), Reflect.defineProperty(e, t.name, {
|
|
339
|
+
enumerable: !0,
|
|
340
|
+
get() {
|
|
341
|
+
return t.getValue(this);
|
|
342
|
+
},
|
|
343
|
+
set(e) {
|
|
344
|
+
t.setValue(this, e);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
},
|
|
348
|
+
getAccessors: l,
|
|
349
|
+
binding(e, t, n = this.isVolatileBinding(e)) {
|
|
350
|
+
return new p(e, t, n);
|
|
351
|
+
},
|
|
352
|
+
isVolatileBinding(e) {
|
|
353
|
+
return t.test(e.toString());
|
|
354
|
+
}
|
|
355
|
+
});
|
|
610
356
|
});
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
get strategy() {
|
|
658
|
-
return this._strategy === null && this.withStrategy(vt), this._strategy;
|
|
659
|
-
}
|
|
660
|
-
/** @internal */
|
|
661
|
-
addStylesTo(t) {
|
|
662
|
-
this.strategy.addStylesTo(t), this.targets.add(t);
|
|
663
|
-
}
|
|
664
|
-
/** @internal */
|
|
665
|
-
removeStylesFrom(t) {
|
|
666
|
-
this.strategy.removeStylesFrom(t), this.targets.delete(t);
|
|
667
|
-
}
|
|
668
|
-
/** @internal */
|
|
669
|
-
isAttachedTo(t) {
|
|
670
|
-
return this.targets.has(t);
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* Associates behaviors with this set of styles.
|
|
674
|
-
* @param behaviors - The behaviors to associate.
|
|
675
|
-
*/
|
|
676
|
-
withBehaviors(...t) {
|
|
677
|
-
return this.behaviors = this.behaviors === null ? t : this.behaviors.concat(t), this;
|
|
678
|
-
}
|
|
679
|
-
/**
|
|
680
|
-
* Sets the strategy that handles adding/removing these styles for an element.
|
|
681
|
-
* @param strategy - The strategy to use.
|
|
682
|
-
*/
|
|
683
|
-
withStrategy(t) {
|
|
684
|
-
return this._strategy = new t(Xt(this.styles)), this;
|
|
685
|
-
}
|
|
686
|
-
/**
|
|
687
|
-
* Sets the default strategy type to use when creating style strategies.
|
|
688
|
-
* @param Strategy - The strategy type to construct.
|
|
689
|
-
*/
|
|
690
|
-
static setDefaultStrategy(t) {
|
|
691
|
-
vt = t;
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* Normalizes a set of composable style options.
|
|
695
|
-
* @param styles - The style options to normalize.
|
|
696
|
-
* @returns A singular ElementStyles instance or undefined.
|
|
697
|
-
*/
|
|
698
|
-
static normalize(t) {
|
|
699
|
-
return t === void 0 ? void 0 : Array.isArray(t) ? new m(t) : t instanceof m ? t : new m([t]);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
m.supportsAdoptedStyleSheets = Array.isArray(document.adoptedStyleSheets) && "replace" in CSSStyleSheet.prototype;
|
|
703
|
-
const mt = /fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/, wt = /fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/, St = /fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/, Ct = /fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/, kt = /^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/, Tt = /fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;
|
|
704
|
-
function $t(i) {
|
|
705
|
-
return i && i.nodeType === Node.COMMENT_NODE;
|
|
706
|
-
}
|
|
707
|
-
const w = Object.freeze({
|
|
708
|
-
attributeMarkerName: "data-fe-b",
|
|
709
|
-
attributeBindingSeparator: " ",
|
|
710
|
-
contentBindingStartMarker(i, t) {
|
|
711
|
-
return `fe-b$$start$$${i}$$${t}$$fe-b`;
|
|
712
|
-
},
|
|
713
|
-
contentBindingEndMarker(i, t) {
|
|
714
|
-
return `fe-b$$end$$${i}$$${t}$$fe-b`;
|
|
715
|
-
},
|
|
716
|
-
repeatStartMarker(i) {
|
|
717
|
-
return `fe-repeat$$start$$${i}$$fe-repeat`;
|
|
718
|
-
},
|
|
719
|
-
repeatEndMarker(i) {
|
|
720
|
-
return `fe-repeat$$end$$${i}$$fe-repeat`;
|
|
721
|
-
},
|
|
722
|
-
isContentBindingStartMarker(i) {
|
|
723
|
-
return mt.test(i);
|
|
724
|
-
},
|
|
725
|
-
isContentBindingEndMarker(i) {
|
|
726
|
-
return wt.test(i);
|
|
727
|
-
},
|
|
728
|
-
isRepeatViewStartMarker(i) {
|
|
729
|
-
return St.test(i);
|
|
730
|
-
},
|
|
731
|
-
isRepeatViewEndMarker(i) {
|
|
732
|
-
return Ct.test(i);
|
|
733
|
-
},
|
|
734
|
-
isElementBoundaryStartMarker(i) {
|
|
735
|
-
return $t(i) && kt.test(i.data.trim());
|
|
736
|
-
},
|
|
737
|
-
isElementBoundaryEndMarker(i) {
|
|
738
|
-
return $t(i) && Tt.test(i.data);
|
|
739
|
-
},
|
|
740
|
-
/**
|
|
741
|
-
* Returns the indexes of the ViewBehaviorFactories affecting
|
|
742
|
-
* attributes for the element, or null if no factories were found.
|
|
743
|
-
*/
|
|
744
|
-
parseAttributeBinding(i) {
|
|
745
|
-
const t = i.getAttribute(this.attributeMarkerName);
|
|
746
|
-
return t === null ? t : t.split(this.attributeBindingSeparator).map((e) => parseInt(e));
|
|
747
|
-
},
|
|
748
|
-
/**
|
|
749
|
-
* Returns the indexes of the ViewBehaviorFactories affecting
|
|
750
|
-
* attributes for the element, or null if no factories were found.
|
|
751
|
-
*
|
|
752
|
-
* Uses the alternative syntax of data-fe-b-<number>
|
|
753
|
-
*/
|
|
754
|
-
parseEnumeratedAttributeBinding(i) {
|
|
755
|
-
const t = [], e = this.attributeMarkerName.length + 1, s = `${this.attributeMarkerName}-`;
|
|
756
|
-
for (const n of i.getAttributeNames())
|
|
757
|
-
if (n.startsWith(s)) {
|
|
758
|
-
const r = Number(n.slice(e));
|
|
759
|
-
if (!Number.isNaN(r))
|
|
760
|
-
t.push(r);
|
|
761
|
-
else
|
|
762
|
-
throw new Error(`Invalid attribute marker name: ${n}. Expected format is ${s}<number>.`);
|
|
763
|
-
}
|
|
764
|
-
return t.length === 0 ? null : t;
|
|
765
|
-
},
|
|
766
|
-
/**
|
|
767
|
-
* Parses the ViewBehaviorFactory index from string data. Returns
|
|
768
|
-
* the binding index or null if the index cannot be retrieved.
|
|
769
|
-
*/
|
|
770
|
-
parseContentBindingStartMarker(i) {
|
|
771
|
-
return xt(mt, i);
|
|
772
|
-
},
|
|
773
|
-
parseContentBindingEndMarker(i) {
|
|
774
|
-
return xt(wt, i);
|
|
775
|
-
},
|
|
776
|
-
/**
|
|
777
|
-
* Parses the index of a repeat directive from a content string.
|
|
778
|
-
*/
|
|
779
|
-
parseRepeatStartMarker(i) {
|
|
780
|
-
return Nt(St, i);
|
|
781
|
-
},
|
|
782
|
-
parseRepeatEndMarker(i) {
|
|
783
|
-
return Nt(Ct, i);
|
|
784
|
-
},
|
|
785
|
-
/**
|
|
786
|
-
* Parses element Id from element boundary markers
|
|
787
|
-
*/
|
|
788
|
-
parseElementBoundaryStartMarker(i) {
|
|
789
|
-
return Bt(kt, i.trim());
|
|
790
|
-
},
|
|
791
|
-
parseElementBoundaryEndMarker(i) {
|
|
792
|
-
return Bt(Tt, i);
|
|
793
|
-
}
|
|
794
|
-
});
|
|
795
|
-
function Nt(i, t) {
|
|
796
|
-
const e = i.exec(t);
|
|
797
|
-
return e === null ? e : parseInt(e[1]);
|
|
798
|
-
}
|
|
799
|
-
function Bt(i, t) {
|
|
800
|
-
const e = i.exec(t);
|
|
801
|
-
return e === null ? e : e[1];
|
|
802
|
-
}
|
|
803
|
-
function xt(i, t) {
|
|
804
|
-
const e = i.exec(t);
|
|
805
|
-
return e === null ? e : [parseInt(e[1]), e[2]];
|
|
806
|
-
}
|
|
807
|
-
const z = /* @__PURE__ */ Symbol.for("fe-hydration");
|
|
808
|
-
function U(i) {
|
|
809
|
-
return i[z] === z;
|
|
810
|
-
}
|
|
811
|
-
const ct = `fast-${Math.random().toString(36).substring(2, 8)}`, D = `${ct}{`, R = `}${ct}`, Se = R.length;
|
|
812
|
-
let Ce = 0;
|
|
813
|
-
const j = () => `${ct}-${++Ce}`, Yt = Object.freeze({
|
|
814
|
-
/**
|
|
815
|
-
* Creates a placeholder string suitable for marking out a location *within*
|
|
816
|
-
* an attribute value or HTML content.
|
|
817
|
-
* @param index - The directive index to create the placeholder for.
|
|
818
|
-
* @remarks
|
|
819
|
-
* Used internally by binding directives.
|
|
820
|
-
*/
|
|
821
|
-
interpolation: (i) => `${D}${i}${R}`,
|
|
822
|
-
/**
|
|
823
|
-
* Creates a placeholder that manifests itself as an attribute on an
|
|
824
|
-
* element.
|
|
825
|
-
* @param attributeName - The name of the custom attribute.
|
|
826
|
-
* @param index - The directive index to create the placeholder for.
|
|
827
|
-
* @remarks
|
|
828
|
-
* Used internally by attribute directives such as `ref`, `slotted`, and `children`.
|
|
829
|
-
*/
|
|
830
|
-
attribute: (i) => `${j()}="${D}${i}${R}"`,
|
|
831
|
-
/**
|
|
832
|
-
* Creates a placeholder that manifests itself as a marker within the DOM structure.
|
|
833
|
-
* @param index - The directive index to create the placeholder for.
|
|
834
|
-
* @remarks
|
|
835
|
-
* Used internally by structural directives such as `repeat`.
|
|
836
|
-
*/
|
|
837
|
-
comment: (i) => `<!--${D}${i}${R}-->`
|
|
838
|
-
}), K = Object.freeze({
|
|
839
|
-
/**
|
|
840
|
-
* Parses text content or HTML attribute content, separating out the static strings
|
|
841
|
-
* from the directives.
|
|
842
|
-
* @param value - The content or attribute string to parse.
|
|
843
|
-
* @param factories - A list of directives to search for in the string.
|
|
844
|
-
* @returns A heterogeneous array of static strings interspersed with
|
|
845
|
-
* directives or null if no directives are found in the string.
|
|
846
|
-
*/
|
|
847
|
-
parse(i, t) {
|
|
848
|
-
const e = i.split(D);
|
|
849
|
-
if (e.length === 1)
|
|
850
|
-
return null;
|
|
851
|
-
const s = [];
|
|
852
|
-
for (let n = 0, r = e.length; n < r; ++n) {
|
|
853
|
-
const o = e[n], c = o.indexOf(R);
|
|
854
|
-
let d;
|
|
855
|
-
if (c === -1)
|
|
856
|
-
d = o;
|
|
857
|
-
else {
|
|
858
|
-
const l = o.substring(0, c);
|
|
859
|
-
s.push(t[l]), d = o.substring(c + Se);
|
|
860
|
-
}
|
|
861
|
-
d !== "" && s.push(d);
|
|
862
|
-
}
|
|
863
|
-
return s;
|
|
864
|
-
}
|
|
865
|
-
}), et = Ut(), $ = Object.freeze({
|
|
866
|
-
/**
|
|
867
|
-
* Gets the directive definition associated with the instance.
|
|
868
|
-
* @param instance - The directive instance to retrieve the definition for.
|
|
869
|
-
*/
|
|
870
|
-
getForInstance: et.getForInstance,
|
|
871
|
-
/**
|
|
872
|
-
* Gets the directive definition associated with the specified type.
|
|
873
|
-
* @param type - The directive type to retrieve the definition for.
|
|
874
|
-
*/
|
|
875
|
-
getByType: et.getByType,
|
|
876
|
-
/**
|
|
877
|
-
* Defines an HTMLDirective based on the options.
|
|
878
|
-
* @param type - The type to define as a directive.
|
|
879
|
-
* @param options - Options that specify the directive's application.
|
|
880
|
-
*/
|
|
881
|
-
define(i, t) {
|
|
882
|
-
return t = t || {}, t.type = i, et.register(t), i;
|
|
883
|
-
},
|
|
884
|
-
/**
|
|
885
|
-
*
|
|
886
|
-
* @param directive - The directive to assign the aspect to.
|
|
887
|
-
* @param value - The value to base the aspect determination on.
|
|
888
|
-
* @remarks
|
|
889
|
-
* If a falsy value is provided, then the content aspect will be assigned.
|
|
890
|
-
*/
|
|
891
|
-
assignAspect(i, t) {
|
|
892
|
-
if (!t) {
|
|
893
|
-
i.aspectType = y.content;
|
|
894
|
-
return;
|
|
895
|
-
}
|
|
896
|
-
switch (i.sourceAspect = t, t[0]) {
|
|
897
|
-
case ":":
|
|
898
|
-
i.targetAspect = t.substring(1), i.aspectType = i.targetAspect === "classList" ? y.tokenList : y.property;
|
|
899
|
-
break;
|
|
900
|
-
case "?":
|
|
901
|
-
i.targetAspect = t.substring(1), i.aspectType = y.booleanAttribute;
|
|
902
|
-
break;
|
|
903
|
-
case "@":
|
|
904
|
-
i.targetAspect = t.substring(1), i.aspectType = y.event;
|
|
905
|
-
break;
|
|
906
|
-
default:
|
|
907
|
-
i.targetAspect = t, i.aspectType = y.attribute;
|
|
908
|
-
break;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
});
|
|
912
|
-
class ke {
|
|
913
|
-
/**
|
|
914
|
-
* Creates an instance of RefDirective.
|
|
915
|
-
* @param options - The options to use in configuring the directive.
|
|
916
|
-
*/
|
|
917
|
-
constructor(t) {
|
|
918
|
-
this.options = t;
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* Creates a placeholder string based on the directive's index within the template.
|
|
922
|
-
* @param index - The index of the directive within the template.
|
|
923
|
-
* @remarks
|
|
924
|
-
* Creates a custom attribute placeholder.
|
|
925
|
-
*/
|
|
926
|
-
createHTML(t) {
|
|
927
|
-
return Yt.attribute(t(this));
|
|
928
|
-
}
|
|
929
|
-
/**
|
|
930
|
-
* Creates a behavior.
|
|
931
|
-
* @param targets - The targets available for behaviors to be attached to.
|
|
932
|
-
*/
|
|
933
|
-
createBehavior() {
|
|
934
|
-
return this;
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
x(ke);
|
|
938
|
-
class Zt extends Error {
|
|
939
|
-
constructor(t, e, s) {
|
|
940
|
-
super(t), this.factories = e, this.node = s;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
function dt(i) {
|
|
944
|
-
return i.nodeType === Node.COMMENT_NODE;
|
|
945
|
-
}
|
|
946
|
-
function te(i) {
|
|
947
|
-
return i.nodeType === Node.TEXT_NODE;
|
|
948
|
-
}
|
|
949
|
-
function ee(i, t) {
|
|
950
|
-
const e = document.createRange();
|
|
951
|
-
return e.setStart(i, 0), e.setEnd(t, dt(t) || te(t) ? t.data.length : t.childNodes.length), e;
|
|
952
|
-
}
|
|
953
|
-
function Te(i) {
|
|
954
|
-
return i instanceof DocumentFragment && "mode" in i;
|
|
955
|
-
}
|
|
956
|
-
function $e(i, t, e) {
|
|
957
|
-
const s = ee(i, t), n = s.commonAncestorContainer, r = document.createTreeWalker(n, NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_COMMENT + NodeFilter.SHOW_TEXT, {
|
|
958
|
-
acceptNode(l) {
|
|
959
|
-
return s.comparePoint(l, 0) === 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
960
|
-
}
|
|
961
|
-
}), o = {}, c = {};
|
|
962
|
-
let d = r.currentNode = i;
|
|
963
|
-
for (; d !== null; ) {
|
|
964
|
-
switch (d.nodeType) {
|
|
965
|
-
case Node.ELEMENT_NODE: {
|
|
966
|
-
Ne(d, e, o);
|
|
967
|
-
break;
|
|
968
|
-
}
|
|
969
|
-
case Node.COMMENT_NODE: {
|
|
970
|
-
Be(d, r, e, o, c);
|
|
971
|
-
break;
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
d = r.nextNode();
|
|
975
|
-
}
|
|
976
|
-
return s.detach(), { targets: o, boundaries: c };
|
|
977
|
-
}
|
|
978
|
-
function Ne(i, t, e) {
|
|
979
|
-
var s;
|
|
980
|
-
const n = (s = w.parseAttributeBinding(i)) !== null && s !== void 0 ? s : w.parseEnumeratedAttributeBinding(i);
|
|
981
|
-
if (n !== null) {
|
|
982
|
-
for (const r of n) {
|
|
983
|
-
if (!t[r])
|
|
984
|
-
throw new Zt(`HydrationView was unable to successfully target factory on ${i.nodeName} inside ${i.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`, t, i);
|
|
985
|
-
q(t[r], i, e);
|
|
986
|
-
}
|
|
987
|
-
i.removeAttribute(w.attributeMarkerName);
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
function Be(i, t, e, s, n) {
|
|
991
|
-
if (w.isElementBoundaryStartMarker(i)) {
|
|
992
|
-
xe(i, t);
|
|
993
|
-
return;
|
|
994
|
-
}
|
|
995
|
-
if (w.isContentBindingStartMarker(i.data)) {
|
|
996
|
-
const r = w.parseContentBindingStartMarker(i.data);
|
|
997
|
-
if (r === null)
|
|
998
|
-
return;
|
|
999
|
-
const [o, c] = r, d = e[o], l = [];
|
|
1000
|
-
let a = t.nextSibling();
|
|
1001
|
-
i.data = "";
|
|
1002
|
-
const h = a;
|
|
1003
|
-
for (; a !== null; ) {
|
|
1004
|
-
if (dt(a)) {
|
|
1005
|
-
const u = w.parseContentBindingEndMarker(a.data);
|
|
1006
|
-
if (u && u[1] === c)
|
|
1007
|
-
break;
|
|
1008
|
-
}
|
|
1009
|
-
l.push(a), a = t.nextSibling();
|
|
1010
|
-
}
|
|
1011
|
-
if (a === null) {
|
|
1012
|
-
const u = i.getRootNode();
|
|
1013
|
-
throw new Error(`Error hydrating Comment node inside "${Te(u) ? u.host.nodeName : u.nodeName}".`);
|
|
1014
|
-
}
|
|
1015
|
-
if (a.data = "", l.length === 1 && te(l[0]))
|
|
1016
|
-
q(d, l[0], s);
|
|
1017
|
-
else {
|
|
1018
|
-
a !== h && a.previousSibling !== null && (n[d.targetNodeId] = {
|
|
1019
|
-
first: h,
|
|
1020
|
-
last: a.previousSibling
|
|
1021
|
-
});
|
|
1022
|
-
const u = a.parentNode.insertBefore(document.createTextNode(""), a);
|
|
1023
|
-
q(d, u, s);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
function xe(i, t) {
|
|
1028
|
-
const e = w.parseElementBoundaryStartMarker(i.data);
|
|
1029
|
-
let s = t.nextSibling();
|
|
1030
|
-
for (; s !== null; ) {
|
|
1031
|
-
if (dt(s)) {
|
|
1032
|
-
const n = w.parseElementBoundaryEndMarker(s.data);
|
|
1033
|
-
if (n && n === e)
|
|
1034
|
-
break;
|
|
1035
|
-
}
|
|
1036
|
-
s = t.nextSibling();
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
function q(i, t, e) {
|
|
1040
|
-
if (i.targetNodeId === void 0)
|
|
1041
|
-
throw new Error("Factory could not be target to the node");
|
|
1042
|
-
e[i.targetNodeId] = t;
|
|
1043
|
-
}
|
|
1044
|
-
var ie;
|
|
1045
|
-
function at(i, t) {
|
|
1046
|
-
const e = i.parentNode;
|
|
1047
|
-
let s = i, n;
|
|
1048
|
-
for (; s !== t; ) {
|
|
1049
|
-
if (n = s.nextSibling, !n)
|
|
1050
|
-
throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
|
|
1051
|
-
e.removeChild(s), s = n;
|
|
1052
|
-
}
|
|
1053
|
-
e.removeChild(t);
|
|
1054
|
-
}
|
|
1055
|
-
class se {
|
|
1056
|
-
constructor() {
|
|
1057
|
-
this.index = 0, this.length = 0;
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
* The current event within an event handler.
|
|
1061
|
-
*/
|
|
1062
|
-
get event() {
|
|
1063
|
-
return O.getEvent();
|
|
1064
|
-
}
|
|
1065
|
-
/**
|
|
1066
|
-
* Indicates whether the current item within a repeat context
|
|
1067
|
-
* has an even index.
|
|
1068
|
-
*/
|
|
1069
|
-
get isEven() {
|
|
1070
|
-
return this.index % 2 === 0;
|
|
1071
|
-
}
|
|
1072
|
-
/**
|
|
1073
|
-
* Indicates whether the current item within a repeat context
|
|
1074
|
-
* has an odd index.
|
|
1075
|
-
*/
|
|
1076
|
-
get isOdd() {
|
|
1077
|
-
return this.index % 2 !== 0;
|
|
1078
|
-
}
|
|
1079
|
-
/**
|
|
1080
|
-
* Indicates whether the current item within a repeat context
|
|
1081
|
-
* is the first item in the collection.
|
|
1082
|
-
*/
|
|
1083
|
-
get isFirst() {
|
|
1084
|
-
return this.index === 0;
|
|
1085
|
-
}
|
|
1086
|
-
/**
|
|
1087
|
-
* Indicates whether the current item within a repeat context
|
|
1088
|
-
* is somewhere in the middle of the collection.
|
|
1089
|
-
*/
|
|
1090
|
-
get isInMiddle() {
|
|
1091
|
-
return !this.isFirst && !this.isLast;
|
|
1092
|
-
}
|
|
1093
|
-
/**
|
|
1094
|
-
* Indicates whether the current item within a repeat context
|
|
1095
|
-
* is the last item in the collection.
|
|
1096
|
-
*/
|
|
1097
|
-
get isLast() {
|
|
1098
|
-
return this.index === this.length - 1;
|
|
1099
|
-
}
|
|
1100
|
-
/**
|
|
1101
|
-
* Returns the typed event detail of a custom event.
|
|
1102
|
-
*/
|
|
1103
|
-
eventDetail() {
|
|
1104
|
-
return this.event.detail;
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* Returns the typed event target of the event.
|
|
1108
|
-
*/
|
|
1109
|
-
eventTarget() {
|
|
1110
|
-
return this.event.target;
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
class X extends se {
|
|
1114
|
-
/**
|
|
1115
|
-
* Constructs an instance of HTMLView.
|
|
1116
|
-
* @param fragment - The html fragment that contains the nodes for this view.
|
|
1117
|
-
* @param behaviors - The behaviors to be applied to this view.
|
|
1118
|
-
*/
|
|
1119
|
-
constructor(t, e, s) {
|
|
1120
|
-
super(), this.fragment = t, this.factories = e, this.targets = s, this.behaviors = null, this.unbindables = [], this.source = null, this.isBound = !1, this.sourceLifetime = J.unknown, this.context = this, this.firstChild = t.firstChild, this.lastChild = t.lastChild;
|
|
1121
|
-
}
|
|
1122
|
-
/**
|
|
1123
|
-
* Appends the view's DOM nodes to the referenced node.
|
|
1124
|
-
* @param node - The parent node to append the view's DOM nodes to.
|
|
1125
|
-
*/
|
|
1126
|
-
appendTo(t) {
|
|
1127
|
-
t.appendChild(this.fragment);
|
|
1128
|
-
}
|
|
1129
|
-
/**
|
|
1130
|
-
* Inserts the view's DOM nodes before the referenced node.
|
|
1131
|
-
* @param node - The node to insert the view's DOM before.
|
|
1132
|
-
*/
|
|
1133
|
-
insertBefore(t) {
|
|
1134
|
-
if (this.fragment.hasChildNodes())
|
|
1135
|
-
t.parentNode.insertBefore(this.fragment, t);
|
|
1136
|
-
else {
|
|
1137
|
-
const e = this.lastChild;
|
|
1138
|
-
if (t.previousSibling === e)
|
|
1139
|
-
return;
|
|
1140
|
-
const s = t.parentNode;
|
|
1141
|
-
let n = this.firstChild, r;
|
|
1142
|
-
for (; n !== e; )
|
|
1143
|
-
r = n.nextSibling, s.insertBefore(n, t), n = r;
|
|
1144
|
-
s.insertBefore(e, t);
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
/**
|
|
1148
|
-
* Removes the view's DOM nodes.
|
|
1149
|
-
* The nodes are not disposed and the view can later be re-inserted.
|
|
1150
|
-
*/
|
|
1151
|
-
remove() {
|
|
1152
|
-
const t = this.fragment, e = this.lastChild;
|
|
1153
|
-
let s = this.firstChild, n;
|
|
1154
|
-
for (; s !== e; )
|
|
1155
|
-
n = s.nextSibling, t.appendChild(s), s = n;
|
|
1156
|
-
t.appendChild(e);
|
|
1157
|
-
}
|
|
1158
|
-
/**
|
|
1159
|
-
* Removes the view and unbinds its behaviors, disposing of DOM nodes afterward.
|
|
1160
|
-
* Once a view has been disposed, it cannot be inserted or bound again.
|
|
1161
|
-
*/
|
|
1162
|
-
dispose() {
|
|
1163
|
-
at(this.firstChild, this.lastChild), this.unbind();
|
|
1164
|
-
}
|
|
1165
|
-
onUnbind(t) {
|
|
1166
|
-
this.unbindables.push(t);
|
|
1167
|
-
}
|
|
1168
|
-
/**
|
|
1169
|
-
* Binds a view's behaviors to its binding source.
|
|
1170
|
-
* @param source - The binding source for the view's binding behaviors.
|
|
1171
|
-
* @param context - The execution context to run the behaviors within.
|
|
1172
|
-
*/
|
|
1173
|
-
bind(t, e = this) {
|
|
1174
|
-
if (this.source === t)
|
|
1175
|
-
return;
|
|
1176
|
-
let s = this.behaviors;
|
|
1177
|
-
if (s === null) {
|
|
1178
|
-
this.source = t, this.context = e, this.behaviors = s = new Array(this.factories.length);
|
|
1179
|
-
const n = this.factories;
|
|
1180
|
-
for (let r = 0, o = n.length; r < o; ++r) {
|
|
1181
|
-
const c = n[r].createBehavior();
|
|
1182
|
-
c.bind(this), s[r] = c;
|
|
1183
|
-
}
|
|
1184
|
-
} else {
|
|
1185
|
-
this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = t, this.context = e;
|
|
1186
|
-
for (let n = 0, r = s.length; n < r; ++n)
|
|
1187
|
-
s[n].bind(this);
|
|
1188
|
-
}
|
|
1189
|
-
this.isBound = !0;
|
|
1190
|
-
}
|
|
1191
|
-
/**
|
|
1192
|
-
* Unbinds a view's behaviors from its binding source.
|
|
1193
|
-
*/
|
|
1194
|
-
unbind() {
|
|
1195
|
-
!this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
|
|
1196
|
-
}
|
|
1197
|
-
evaluateUnbindables() {
|
|
1198
|
-
const t = this.unbindables;
|
|
1199
|
-
for (let e = 0, s = t.length; e < s; ++e)
|
|
1200
|
-
t[e].unbind(this);
|
|
1201
|
-
t.length = 0;
|
|
1202
|
-
}
|
|
1203
|
-
/**
|
|
1204
|
-
* Efficiently disposes of a contiguous range of synthetic view instances.
|
|
1205
|
-
* @param views - A contiguous range of views to be disposed.
|
|
1206
|
-
*/
|
|
1207
|
-
static disposeContiguousBatch(t) {
|
|
1208
|
-
if (t.length !== 0) {
|
|
1209
|
-
at(t[0].firstChild, t[t.length - 1].lastChild);
|
|
1210
|
-
for (let e = 0, s = t.length; e < s; ++e)
|
|
1211
|
-
t[e].unbind();
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
x(X);
|
|
1216
|
-
g.defineProperty(X.prototype, "index");
|
|
1217
|
-
g.defineProperty(X.prototype, "length");
|
|
1218
|
-
const A = {
|
|
1219
|
-
unhydrated: "unhydrated",
|
|
1220
|
-
hydrating: "hydrating",
|
|
1221
|
-
hydrated: "hydrated"
|
|
357
|
+
function re(e, t) {
|
|
358
|
+
y.defineProperty(e, t);
|
|
359
|
+
}
|
|
360
|
+
function ie(e, t, n) {
|
|
361
|
+
return Object.assign({}, n, { get() {
|
|
362
|
+
return y.trackVolatile(), n.get.apply(this);
|
|
363
|
+
} });
|
|
364
|
+
}
|
|
365
|
+
var ae = s.getById(n.contextEvent, () => {
|
|
366
|
+
let e = null;
|
|
367
|
+
return {
|
|
368
|
+
get() {
|
|
369
|
+
return e;
|
|
370
|
+
},
|
|
371
|
+
set(t) {
|
|
372
|
+
e = t;
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
}), b = Object.freeze({
|
|
376
|
+
default: {
|
|
377
|
+
index: 0,
|
|
378
|
+
length: 0,
|
|
379
|
+
get event() {
|
|
380
|
+
return b.getEvent();
|
|
381
|
+
},
|
|
382
|
+
eventDetail() {
|
|
383
|
+
return this.event.detail;
|
|
384
|
+
},
|
|
385
|
+
eventTarget() {
|
|
386
|
+
return this.event.target;
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
getEvent() {
|
|
390
|
+
return ae.get();
|
|
391
|
+
},
|
|
392
|
+
setEvent(e) {
|
|
393
|
+
ae.set(e);
|
|
394
|
+
}
|
|
395
|
+
}), x = class {
|
|
396
|
+
constructor(e, t, n = !1) {
|
|
397
|
+
this.evaluate = e, this.policy = t, this.isVolatile = n;
|
|
398
|
+
}
|
|
399
|
+
}, oe = class extends x {
|
|
400
|
+
createObserver(e) {
|
|
401
|
+
return y.binding(this.evaluate, e, this.isVolatile);
|
|
402
|
+
}
|
|
1222
403
|
};
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
class
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
get targets() {
|
|
1236
|
-
return this._targets;
|
|
1237
|
-
}
|
|
1238
|
-
get bindingViewBoundaries() {
|
|
1239
|
-
return this._bindingViewBoundaries;
|
|
1240
|
-
}
|
|
1241
|
-
/**
|
|
1242
|
-
* no-op. Hydrated views are don't need to be moved from a documentFragment
|
|
1243
|
-
* to the target node.
|
|
1244
|
-
*/
|
|
1245
|
-
insertBefore(t) {
|
|
1246
|
-
if (this.fragment !== null)
|
|
1247
|
-
if (this.fragment.hasChildNodes())
|
|
1248
|
-
t.parentNode.insertBefore(this.fragment, t);
|
|
1249
|
-
else {
|
|
1250
|
-
const e = this.lastChild;
|
|
1251
|
-
if (t.previousSibling === e)
|
|
1252
|
-
return;
|
|
1253
|
-
const s = t.parentNode;
|
|
1254
|
-
let n = this.firstChild, r;
|
|
1255
|
-
for (; n !== e; )
|
|
1256
|
-
r = n.nextSibling, s.insertBefore(n, t), n = r;
|
|
1257
|
-
s.insertBefore(e, t);
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
/**
|
|
1261
|
-
* Appends the view to a node. In cases where this is called before the
|
|
1262
|
-
* view has been removed, the method will no-op.
|
|
1263
|
-
* @param node - the node to append the view to.
|
|
1264
|
-
*/
|
|
1265
|
-
appendTo(t) {
|
|
1266
|
-
this.fragment !== null && t.appendChild(this.fragment);
|
|
1267
|
-
}
|
|
1268
|
-
remove() {
|
|
1269
|
-
const t = this.fragment || (this.fragment = document.createDocumentFragment()), e = this.lastChild;
|
|
1270
|
-
let s = this.firstChild, n;
|
|
1271
|
-
for (; s !== e; ) {
|
|
1272
|
-
if (n = s.nextSibling, !n)
|
|
1273
|
-
throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);
|
|
1274
|
-
t.appendChild(s), s = n;
|
|
1275
|
-
}
|
|
1276
|
-
t.appendChild(e);
|
|
1277
|
-
}
|
|
1278
|
-
bind(t, e = this) {
|
|
1279
|
-
var s;
|
|
1280
|
-
if (this.hydrationStage !== A.hydrated && (this._hydrationStage = A.hydrating), this.source === t)
|
|
1281
|
-
return;
|
|
1282
|
-
let n = this.behaviors;
|
|
1283
|
-
if (n === null) {
|
|
1284
|
-
this.source = t, this.context = e;
|
|
1285
|
-
try {
|
|
1286
|
-
const { targets: o, boundaries: c } = $e(this.firstChild, this.lastChild, this.factories);
|
|
1287
|
-
this._targets = o, this._bindingViewBoundaries = c;
|
|
1288
|
-
} catch (o) {
|
|
1289
|
-
if (o instanceof Zt) {
|
|
1290
|
-
let c = this.sourceTemplate.html;
|
|
1291
|
-
typeof c != "string" && (c = c.innerHTML), o.templateString = c;
|
|
1292
|
-
}
|
|
1293
|
-
throw o;
|
|
1294
|
-
}
|
|
1295
|
-
this.behaviors = n = new Array(this.factories.length);
|
|
1296
|
-
const r = this.factories;
|
|
1297
|
-
for (let o = 0, c = r.length; o < c; ++o) {
|
|
1298
|
-
const d = r[o];
|
|
1299
|
-
if (d.targetNodeId === "h" && this.hostBindingTarget && q(d, this.hostBindingTarget, this._targets), d.targetNodeId in this.targets) {
|
|
1300
|
-
const l = d.createBehavior();
|
|
1301
|
-
l.bind(this), n[o] = l;
|
|
1302
|
-
} else {
|
|
1303
|
-
let l = this.sourceTemplate.html;
|
|
1304
|
-
typeof l != "string" && (l = l.innerHTML);
|
|
1305
|
-
const a = ((s = this.firstChild) === null || s === void 0 ? void 0 : s.getRootNode()).host, h = a?.nodeName || "unknown", u = d, b = [
|
|
1306
|
-
`HydrationView was unable to successfully target bindings inside "<${h.toLowerCase()}>".`,
|
|
1307
|
-
`
|
|
1308
|
-
Mismatch Details:`,
|
|
1309
|
-
` - Expected target node ID: "${d.targetNodeId}"`,
|
|
1310
|
-
` - Available target IDs: [${Object.keys(this.targets).join(", ") || "none"}]`
|
|
1311
|
-
];
|
|
1312
|
-
throw d.targetTagName && b.push(` - Expected tag name: "${d.targetTagName}"`), u.sourceAspect && b.push(` - Source aspect: "${u.sourceAspect}"`), u.aspectType !== void 0 && b.push(` - Aspect type: ${u.aspectType}`), b.push(`
|
|
1313
|
-
This usually means:`, " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `
|
|
1314
|
-
Template: ${l.slice(0, 200)}${l.length > 200 ? "..." : ""}`), new Ae(b.join(`
|
|
1315
|
-
`), d, ee(this.firstChild, this.lastChild).cloneContents(), l);
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
} else {
|
|
1319
|
-
this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = t, this.context = e;
|
|
1320
|
-
for (let r = 0, o = n.length; r < o; ++r)
|
|
1321
|
-
n[r].bind(this);
|
|
1322
|
-
}
|
|
1323
|
-
this.isBound = !0, this._hydrationStage = A.hydrated;
|
|
1324
|
-
}
|
|
1325
|
-
unbind() {
|
|
1326
|
-
!this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
|
|
1327
|
-
}
|
|
1328
|
-
/**
|
|
1329
|
-
* Removes the view and unbinds its behaviors, disposing of DOM nodes afterward.
|
|
1330
|
-
* Once a view has been disposed, it cannot be inserted or bound again.
|
|
1331
|
-
*/
|
|
1332
|
-
dispose() {
|
|
1333
|
-
at(this.firstChild, this.lastChild), this.unbind();
|
|
1334
|
-
}
|
|
1335
|
-
onUnbind(t) {
|
|
1336
|
-
this.unbindables.push(t);
|
|
1337
|
-
}
|
|
1338
|
-
evaluateUnbindables() {
|
|
1339
|
-
const t = this.unbindables;
|
|
1340
|
-
for (let e = 0, s = t.length; e < s; ++e)
|
|
1341
|
-
t[e].unbind(this);
|
|
1342
|
-
t.length = 0;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
ie = z;
|
|
1346
|
-
x(Me);
|
|
1347
|
-
function Oe(i) {
|
|
1348
|
-
return i.create !== void 0;
|
|
1349
|
-
}
|
|
1350
|
-
function Ee(i, t, e, s) {
|
|
1351
|
-
if (e == null && (e = ""), Oe(e)) {
|
|
1352
|
-
i.textContent = "";
|
|
1353
|
-
let n = i.$fastView;
|
|
1354
|
-
if (n === void 0)
|
|
1355
|
-
if (U(s) && U(e) && s.bindingViewBoundaries[this.targetNodeId] !== void 0 && s.hydrationStage !== A.hydrated) {
|
|
1356
|
-
const r = s.bindingViewBoundaries[this.targetNodeId];
|
|
1357
|
-
n = e.hydrate(r.first, r.last);
|
|
1358
|
-
} else
|
|
1359
|
-
n = e.create();
|
|
1360
|
-
else
|
|
1361
|
-
i.$fastTemplate !== e && (n.isComposed && (n.remove(), n.unbind()), n = e.create());
|
|
1362
|
-
n.isComposed ? n.needsBindOnly && (n.needsBindOnly = !1, n.bind(s.source, s.context)) : (n.isComposed = !0, n.bind(s.source, s.context), n.insertBefore(i), i.$fastView = n, i.$fastTemplate = e);
|
|
1363
|
-
} else {
|
|
1364
|
-
const n = i.$fastView;
|
|
1365
|
-
n !== void 0 && n.isComposed && (n.isComposed = !1, n.remove(), n.needsBindOnly ? n.needsBindOnly = !1 : n.unbind()), i.textContent = e;
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
function Re(i, t, e) {
|
|
1369
|
-
var s;
|
|
1370
|
-
const n = `${this.id}-t`, r = (s = i[n]) !== null && s !== void 0 ? s : i[n] = { v: 0, cv: /* @__PURE__ */ Object.create(null) }, o = r.cv;
|
|
1371
|
-
let c = r.v;
|
|
1372
|
-
const d = i[t];
|
|
1373
|
-
if (e != null && e.length) {
|
|
1374
|
-
const l = e.split(/\s+/);
|
|
1375
|
-
for (let a = 0, h = l.length; a < h; ++a) {
|
|
1376
|
-
const u = l[a];
|
|
1377
|
-
u !== "" && (o[u] = c, d.add(u));
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
if (r.v = c + 1, c !== 0) {
|
|
1381
|
-
c -= 1;
|
|
1382
|
-
for (const l in o)
|
|
1383
|
-
o[l] === c && d.remove(l);
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
const _e = {
|
|
1387
|
-
[y.attribute]: T.setAttribute,
|
|
1388
|
-
[y.booleanAttribute]: T.setBooleanAttribute,
|
|
1389
|
-
[y.property]: (i, t, e) => i[t] = e,
|
|
1390
|
-
[y.content]: Ee,
|
|
1391
|
-
[y.tokenList]: Re,
|
|
1392
|
-
[y.event]: () => {
|
|
1393
|
-
}
|
|
404
|
+
function se(e, t, n = y.isVolatileBinding(e)) {
|
|
405
|
+
return new oe(e, t, n);
|
|
406
|
+
}
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/binding/one-time.js
|
|
409
|
+
var ce = class extends x {
|
|
410
|
+
createObserver() {
|
|
411
|
+
return this;
|
|
412
|
+
}
|
|
413
|
+
bind(e) {
|
|
414
|
+
return this.evaluate(e.source, e.context);
|
|
415
|
+
}
|
|
1394
416
|
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
break;
|
|
1434
|
-
case y.content:
|
|
1435
|
-
t.onUnbind(this);
|
|
1436
|
-
// intentional fall through
|
|
1437
|
-
default:
|
|
1438
|
-
const r = (e = s[this.data]) !== null && e !== void 0 ? e : s[this.data] = this.dataBinding.createObserver(this, this);
|
|
1439
|
-
if (r.target = s, r.controller = t, n && (this.aspectType === y.attribute || this.aspectType === y.booleanAttribute)) {
|
|
1440
|
-
r.bind(t);
|
|
1441
|
-
break;
|
|
1442
|
-
}
|
|
1443
|
-
this.updateTarget(s, this.targetAspect, r.bind(t), t);
|
|
1444
|
-
break;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
/** @internal */
|
|
1448
|
-
unbind(t) {
|
|
1449
|
-
const s = t.targets[this.targetNodeId].$fastView;
|
|
1450
|
-
s !== void 0 && s.isComposed && (s.unbind(), s.needsBindOnly = !0);
|
|
1451
|
-
}
|
|
1452
|
-
/** @internal */
|
|
1453
|
-
handleEvent(t) {
|
|
1454
|
-
const e = t.currentTarget[this.data];
|
|
1455
|
-
if (e.isBound) {
|
|
1456
|
-
O.setEvent(t);
|
|
1457
|
-
const s = this.dataBinding.evaluate(e.source, e.context);
|
|
1458
|
-
O.setEvent(null), s !== !0 && t.preventDefault();
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
/** @internal */
|
|
1462
|
-
handleChange(t, e) {
|
|
1463
|
-
const s = e.target, n = e.controller;
|
|
1464
|
-
this.updateTarget(s, this.targetAspect, e.bind(n), n);
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
$.define(M, { aspected: !0 });
|
|
1468
|
-
const ne = (i, t) => `${i}.${t}`, At = {}, C = {
|
|
1469
|
-
index: 0,
|
|
1470
|
-
node: null
|
|
417
|
+
d(ce);
|
|
418
|
+
function le(e, t) {
|
|
419
|
+
return new ce(e, t);
|
|
420
|
+
}
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/styles/element-styles.js
|
|
423
|
+
var ue;
|
|
424
|
+
function de(e) {
|
|
425
|
+
return e.map((e) => e instanceof S ? de(e.styles) : [e]).reduce((e, t) => e.concat(t), []);
|
|
426
|
+
}
|
|
427
|
+
var S = class e {
|
|
428
|
+
constructor(t) {
|
|
429
|
+
this.styles = t, this.targets = /* @__PURE__ */ new WeakSet(), this._strategy = null, this.behaviors = t.map((t) => t instanceof e ? t.behaviors : null).reduce((e, t) => t === null ? e : e === null ? t : e.concat(t), null);
|
|
430
|
+
}
|
|
431
|
+
get strategy() {
|
|
432
|
+
return this._strategy === null && this.withStrategy(ue), this._strategy;
|
|
433
|
+
}
|
|
434
|
+
addStylesTo(e) {
|
|
435
|
+
this.strategy.addStylesTo(e), this.targets.add(e);
|
|
436
|
+
}
|
|
437
|
+
removeStylesFrom(e) {
|
|
438
|
+
this.strategy.removeStylesFrom(e), this.targets.delete(e);
|
|
439
|
+
}
|
|
440
|
+
isAttachedTo(e) {
|
|
441
|
+
return this.targets.has(e);
|
|
442
|
+
}
|
|
443
|
+
withBehaviors(...e) {
|
|
444
|
+
return this.behaviors = this.behaviors === null ? e : this.behaviors.concat(e), this;
|
|
445
|
+
}
|
|
446
|
+
withStrategy(e) {
|
|
447
|
+
return this._strategy = new e(de(this.styles)), this;
|
|
448
|
+
}
|
|
449
|
+
static setDefaultStrategy(e) {
|
|
450
|
+
ue = e;
|
|
451
|
+
}
|
|
452
|
+
static normalize(t) {
|
|
453
|
+
return t === void 0 ? void 0 : Array.isArray(t) ? new e(t) : t instanceof e ? t : new e([t]);
|
|
454
|
+
}
|
|
1471
455
|
};
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
return C.index = n + 1, C.node = c.nextSibling, C;
|
|
1544
|
-
}
|
|
1545
|
-
function ae(i, t, e) {
|
|
1546
|
-
let s = 0, n = t.firstChild;
|
|
1547
|
-
for (; n; ) {
|
|
1548
|
-
const r = Ve(i, e, n, s);
|
|
1549
|
-
n = r.node, s = r.index;
|
|
1550
|
-
}
|
|
1551
|
-
}
|
|
1552
|
-
function Ve(i, t, e, s) {
|
|
1553
|
-
const n = ne(t, s);
|
|
1554
|
-
switch (e.nodeType) {
|
|
1555
|
-
case 1:
|
|
1556
|
-
re(i, t, e, n, s), ae(i, e, n);
|
|
1557
|
-
break;
|
|
1558
|
-
case 3:
|
|
1559
|
-
return Le(i, e, t, n, s);
|
|
1560
|
-
case 8:
|
|
1561
|
-
const r = K.parse(e.data, i.directives);
|
|
1562
|
-
r !== null && i.addFactory(
|
|
1563
|
-
/* eslint-disable-next-line @typescript-eslint/no-use-before-define */
|
|
1564
|
-
ht.aggregate(r),
|
|
1565
|
-
t,
|
|
1566
|
-
n,
|
|
1567
|
-
s,
|
|
1568
|
-
null
|
|
1569
|
-
);
|
|
1570
|
-
break;
|
|
1571
|
-
}
|
|
1572
|
-
return C.index = s + 1, C.node = e.nextSibling, C;
|
|
1573
|
-
}
|
|
1574
|
-
function Fe(i, t) {
|
|
1575
|
-
return i && i.nodeType == 8 && K.parse(i.data, t) !== null;
|
|
1576
|
-
}
|
|
1577
|
-
const Ot = "TEMPLATE", ht = {
|
|
1578
|
-
/**
|
|
1579
|
-
* Compiles a template and associated directives into a compilation
|
|
1580
|
-
* result which can be used to create views.
|
|
1581
|
-
* @param html - The html string or template element to compile.
|
|
1582
|
-
* @param factories - The behavior factories referenced by the template.
|
|
1583
|
-
* @param policy - The security policy to compile the html with.
|
|
1584
|
-
* @remarks
|
|
1585
|
-
* The template that is provided for compilation is altered in-place
|
|
1586
|
-
* and cannot be compiled again. If the original template must be preserved,
|
|
1587
|
-
* it is recommended that you clone the original and pass the clone to this API.
|
|
1588
|
-
* @public
|
|
1589
|
-
*/
|
|
1590
|
-
compile(i, t, e = T.policy) {
|
|
1591
|
-
let s;
|
|
1592
|
-
if (B(i)) {
|
|
1593
|
-
s = document.createElement(Ot), s.innerHTML = e.createHTML(i);
|
|
1594
|
-
const o = s.content.firstElementChild;
|
|
1595
|
-
o !== null && o.tagName === Ot && (s = o);
|
|
1596
|
-
} else
|
|
1597
|
-
s = i;
|
|
1598
|
-
!s.content.firstChild && !s.content.lastChild && s.content.appendChild(document.createComment(""));
|
|
1599
|
-
const n = document.adoptNode(s.content), r = new je(n, t, e);
|
|
1600
|
-
return re(
|
|
1601
|
-
r,
|
|
1602
|
-
"",
|
|
1603
|
-
s,
|
|
1604
|
-
/* host */
|
|
1605
|
-
"h",
|
|
1606
|
-
0,
|
|
1607
|
-
!0
|
|
1608
|
-
), // If the first node in a fragment is a marker, that means it's an unstable first node,
|
|
1609
|
-
// because something like a when, repeat, etc. could add nodes before the marker.
|
|
1610
|
-
// To mitigate this, we insert a stable first node. However, if we insert a node,
|
|
1611
|
-
// that will alter the result of the TreeWalker. So, we also need to offset the target index.
|
|
1612
|
-
(Fe(n.firstChild, t) || // Or if there is only one node and a directive, it means the template's content
|
|
1613
|
-
// is *only* the directive. In that case, HTMLView.dispose() misses any nodes inserted by
|
|
1614
|
-
// the directive. Inserting a new node ensures proper disposal of nodes added by the directive.
|
|
1615
|
-
n.childNodes.length === 1 && Object.keys(t).length > 0) && n.insertBefore(document.createComment(""), n.firstChild), ae(
|
|
1616
|
-
r,
|
|
1617
|
-
n,
|
|
1618
|
-
/* root */
|
|
1619
|
-
"r"
|
|
1620
|
-
), C.node = null, r.freeze();
|
|
1621
|
-
},
|
|
1622
|
-
/**
|
|
1623
|
-
* Sets the default compilation strategy that will be used by the ViewTemplate whenever
|
|
1624
|
-
* it needs to compile a view preprocessed with the html template function.
|
|
1625
|
-
* @param strategy - The compilation strategy to use when compiling templates.
|
|
1626
|
-
*/
|
|
1627
|
-
setDefaultStrategy(i) {
|
|
1628
|
-
this.compile = i;
|
|
1629
|
-
},
|
|
1630
|
-
/**
|
|
1631
|
-
* Aggregates an array of strings and directives into a single directive.
|
|
1632
|
-
* @param parts - A heterogeneous array of static strings interspersed with
|
|
1633
|
-
* directives.
|
|
1634
|
-
* @param policy - The security policy to use with the aggregated bindings.
|
|
1635
|
-
* @returns A single inline directive that aggregates the behavior of all the parts.
|
|
1636
|
-
*/
|
|
1637
|
-
aggregate(i, t = T.policy) {
|
|
1638
|
-
if (i.length === 1)
|
|
1639
|
-
return i[0];
|
|
1640
|
-
let e, s = !1, n;
|
|
1641
|
-
const r = i.length, o = i.map((l) => B(l) ? () => l : (e = l.sourceAspect || e, s = s || l.dataBinding.isVolatile, n = n || l.dataBinding.policy, l.dataBinding.evaluate)), c = (l, a) => {
|
|
1642
|
-
let h = "";
|
|
1643
|
-
for (let u = 0; u < r; ++u)
|
|
1644
|
-
h += o[u](l, a);
|
|
1645
|
-
return h;
|
|
1646
|
-
}, d = new M(Gt(c, n ?? t, s));
|
|
1647
|
-
return $.assignAspect(d, e), d;
|
|
1648
|
-
}
|
|
1649
|
-
}, Pe = (
|
|
1650
|
-
/* eslint-disable-next-line no-control-regex, max-len */
|
|
1651
|
-
/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/
|
|
1652
|
-
), De = /* @__PURE__ */ Object.create(null);
|
|
1653
|
-
class L {
|
|
1654
|
-
/**
|
|
1655
|
-
* Creates an instance of InlineTemplateDirective.
|
|
1656
|
-
* @param template - The template to inline.
|
|
1657
|
-
*/
|
|
1658
|
-
constructor(t, e = De) {
|
|
1659
|
-
this.html = t, this.factories = e;
|
|
1660
|
-
}
|
|
1661
|
-
/**
|
|
1662
|
-
* Creates HTML to be used within a template.
|
|
1663
|
-
* @param add - Can be used to add behavior factories to a template.
|
|
1664
|
-
*/
|
|
1665
|
-
createHTML(t) {
|
|
1666
|
-
const e = this.factories;
|
|
1667
|
-
for (const s in e)
|
|
1668
|
-
t(e[s]);
|
|
1669
|
-
return this.html;
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
L.empty = new L("");
|
|
1673
|
-
$.define(L);
|
|
1674
|
-
function He(i, t, e, s = $.getForInstance(i)) {
|
|
1675
|
-
if (s.aspected) {
|
|
1676
|
-
const n = Pe.exec(t);
|
|
1677
|
-
n !== null && $.assignAspect(i, n[2]);
|
|
1678
|
-
}
|
|
1679
|
-
return i.createHTML(e);
|
|
1680
|
-
}
|
|
1681
|
-
class Y {
|
|
1682
|
-
/**
|
|
1683
|
-
* Creates an instance of ViewTemplate.
|
|
1684
|
-
* @param html - The html representing what this template will instantiate, including placeholders for directives.
|
|
1685
|
-
* @param factories - The directives that will be connected to placeholders in the html.
|
|
1686
|
-
* @param policy - The security policy to use when compiling this template.
|
|
1687
|
-
*/
|
|
1688
|
-
constructor(t, e = {}, s) {
|
|
1689
|
-
this.policy = s, this.result = null, this.html = t, this.factories = e;
|
|
1690
|
-
}
|
|
1691
|
-
/**
|
|
1692
|
-
* @internal
|
|
1693
|
-
*/
|
|
1694
|
-
compile() {
|
|
1695
|
-
return this.result === null && (this.result = ht.compile(this.html, this.factories, this.policy)), this.result;
|
|
1696
|
-
}
|
|
1697
|
-
/**
|
|
1698
|
-
* Creates an HTMLView instance based on this template definition.
|
|
1699
|
-
* @param hostBindingTarget - The element that host behaviors will be bound to.
|
|
1700
|
-
*/
|
|
1701
|
-
create(t) {
|
|
1702
|
-
return this.compile().createView(t);
|
|
1703
|
-
}
|
|
1704
|
-
/**
|
|
1705
|
-
* Returns a directive that can inline the template.
|
|
1706
|
-
*/
|
|
1707
|
-
inline() {
|
|
1708
|
-
return new L(B(this.html) ? this.html : this.html.innerHTML, this.factories);
|
|
1709
|
-
}
|
|
1710
|
-
/**
|
|
1711
|
-
* Sets the DOMPolicy for this template.
|
|
1712
|
-
* @param policy - The policy to associated with this template.
|
|
1713
|
-
* @returns The modified template instance.
|
|
1714
|
-
* @remarks
|
|
1715
|
-
* The DOMPolicy can only be set once for a template and cannot be
|
|
1716
|
-
* set after the template is compiled.
|
|
1717
|
-
*/
|
|
1718
|
-
withPolicy(t) {
|
|
1719
|
-
if (this.result)
|
|
1720
|
-
throw v.error(
|
|
1721
|
-
1208
|
|
1722
|
-
/* Message.cannotSetTemplatePolicyAfterCompilation */
|
|
1723
|
-
);
|
|
1724
|
-
if (this.policy)
|
|
1725
|
-
throw v.error(
|
|
1726
|
-
1207
|
|
1727
|
-
/* Message.onlySetTemplatePolicyOnce */
|
|
1728
|
-
);
|
|
1729
|
-
return this.policy = t, this;
|
|
1730
|
-
}
|
|
1731
|
-
/**
|
|
1732
|
-
* Creates an HTMLView from this template, binds it to the source, and then appends it to the host.
|
|
1733
|
-
* @param source - The data source to bind the template to.
|
|
1734
|
-
* @param host - The Element where the template will be rendered.
|
|
1735
|
-
* @param hostBindingTarget - An HTML element to target the host bindings at if different from the
|
|
1736
|
-
* host that the template is being attached to.
|
|
1737
|
-
*/
|
|
1738
|
-
render(t, e, s) {
|
|
1739
|
-
const n = this.create(s);
|
|
1740
|
-
return n.bind(t), n.appendTo(e), n;
|
|
1741
|
-
}
|
|
1742
|
-
/**
|
|
1743
|
-
* Creates a template based on a set of static strings and dynamic values.
|
|
1744
|
-
* @param strings - The static strings to create the template with.
|
|
1745
|
-
* @param values - The dynamic values to create the template with.
|
|
1746
|
-
* @param policy - The DOMPolicy to associated with the template.
|
|
1747
|
-
* @returns A ViewTemplate.
|
|
1748
|
-
* @remarks
|
|
1749
|
-
* This API should not be used directly under normal circumstances because constructing
|
|
1750
|
-
* a template in this way, if not done properly, can open up the application to XSS
|
|
1751
|
-
* attacks. When using this API, provide a strong DOMPolicy that can properly sanitize
|
|
1752
|
-
* and also be sure to manually sanitize all static strings particularly if they can
|
|
1753
|
-
* come from user input.
|
|
1754
|
-
*/
|
|
1755
|
-
static create(t, e, s) {
|
|
1756
|
-
let n = "";
|
|
1757
|
-
const r = /* @__PURE__ */ Object.create(null), o = (c) => {
|
|
1758
|
-
var d;
|
|
1759
|
-
const l = (d = c.id) !== null && d !== void 0 ? d : c.id = j();
|
|
1760
|
-
return r[l] = c, l;
|
|
1761
|
-
};
|
|
1762
|
-
for (let c = 0, d = t.length - 1; c < d; ++c) {
|
|
1763
|
-
const l = t[c];
|
|
1764
|
-
let a = e[c], h;
|
|
1765
|
-
if (n += l, E(a))
|
|
1766
|
-
a = new M(Gt(a));
|
|
1767
|
-
else if (a instanceof lt)
|
|
1768
|
-
a = new M(a);
|
|
1769
|
-
else if (!(h = $.getForInstance(a))) {
|
|
1770
|
-
const u = a;
|
|
1771
|
-
a = new M(Kt(() => u));
|
|
1772
|
-
}
|
|
1773
|
-
n += He(a, l, o, h);
|
|
1774
|
-
}
|
|
1775
|
-
return new Y(n + t[t.length - 1], r, s);
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
x(Y);
|
|
1779
|
-
const oe = ((i, ...t) => {
|
|
1780
|
-
if (Array.isArray(i) && Array.isArray(i.raw))
|
|
1781
|
-
return Y.create(i, t);
|
|
1782
|
-
throw v.error(
|
|
1783
|
-
1206
|
|
1784
|
-
/* Message.directCallToHTMLTagNotAllowed */
|
|
1785
|
-
);
|
|
456
|
+
S.supportsAdoptedStyleSheets = Array.isArray(document.adoptedStyleSheets) && "replace" in CSSStyleSheet.prototype;
|
|
457
|
+
//#endregion
|
|
458
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/hydration.js
|
|
459
|
+
var fe = /fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/, pe = /fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/, me = /fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/, he = /fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/, ge = /^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/, _e = /fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;
|
|
460
|
+
function ve(e) {
|
|
461
|
+
return e && e.nodeType === Node.COMMENT_NODE;
|
|
462
|
+
}
|
|
463
|
+
var C = Object.freeze({
|
|
464
|
+
attributeMarkerName: "data-fe-b",
|
|
465
|
+
attributeBindingSeparator: " ",
|
|
466
|
+
contentBindingStartMarker(e, t) {
|
|
467
|
+
return `fe-b$$start$$${e}$$${t}$$fe-b`;
|
|
468
|
+
},
|
|
469
|
+
contentBindingEndMarker(e, t) {
|
|
470
|
+
return `fe-b$$end$$${e}$$${t}$$fe-b`;
|
|
471
|
+
},
|
|
472
|
+
repeatStartMarker(e) {
|
|
473
|
+
return `fe-repeat$$start$$${e}$$fe-repeat`;
|
|
474
|
+
},
|
|
475
|
+
repeatEndMarker(e) {
|
|
476
|
+
return `fe-repeat$$end$$${e}$$fe-repeat`;
|
|
477
|
+
},
|
|
478
|
+
isContentBindingStartMarker(e) {
|
|
479
|
+
return fe.test(e);
|
|
480
|
+
},
|
|
481
|
+
isContentBindingEndMarker(e) {
|
|
482
|
+
return pe.test(e);
|
|
483
|
+
},
|
|
484
|
+
isRepeatViewStartMarker(e) {
|
|
485
|
+
return me.test(e);
|
|
486
|
+
},
|
|
487
|
+
isRepeatViewEndMarker(e) {
|
|
488
|
+
return he.test(e);
|
|
489
|
+
},
|
|
490
|
+
isElementBoundaryStartMarker(e) {
|
|
491
|
+
return ve(e) && ge.test(e.data.trim());
|
|
492
|
+
},
|
|
493
|
+
isElementBoundaryEndMarker(e) {
|
|
494
|
+
return ve(e) && _e.test(e.data);
|
|
495
|
+
},
|
|
496
|
+
parseAttributeBinding(e) {
|
|
497
|
+
let t = e.getAttribute(this.attributeMarkerName);
|
|
498
|
+
return t === null ? t : t.split(this.attributeBindingSeparator).map((e) => parseInt(e));
|
|
499
|
+
},
|
|
500
|
+
parseEnumeratedAttributeBinding(e) {
|
|
501
|
+
let t = [], n = this.attributeMarkerName.length + 1, r = `${this.attributeMarkerName}-`;
|
|
502
|
+
for (let i of e.getAttributeNames()) if (i.startsWith(r)) {
|
|
503
|
+
let e = Number(i.slice(n));
|
|
504
|
+
if (!Number.isNaN(e)) t.push(e);
|
|
505
|
+
else throw Error(`Invalid attribute marker name: ${i}. Expected format is ${r}<number>.`);
|
|
506
|
+
}
|
|
507
|
+
return t.length === 0 ? null : t;
|
|
508
|
+
},
|
|
509
|
+
parseContentBindingStartMarker(e) {
|
|
510
|
+
return xe(fe, e);
|
|
511
|
+
},
|
|
512
|
+
parseContentBindingEndMarker(e) {
|
|
513
|
+
return xe(pe, e);
|
|
514
|
+
},
|
|
515
|
+
parseRepeatStartMarker(e) {
|
|
516
|
+
return ye(me, e);
|
|
517
|
+
},
|
|
518
|
+
parseRepeatEndMarker(e) {
|
|
519
|
+
return ye(he, e);
|
|
520
|
+
},
|
|
521
|
+
parseElementBoundaryStartMarker(e) {
|
|
522
|
+
return be(ge, e.trim());
|
|
523
|
+
},
|
|
524
|
+
parseElementBoundaryEndMarker(e) {
|
|
525
|
+
return be(_e, e);
|
|
526
|
+
}
|
|
1786
527
|
});
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
528
|
+
function ye(e, t) {
|
|
529
|
+
let n = e.exec(t);
|
|
530
|
+
return n === null ? n : parseInt(n[1]);
|
|
531
|
+
}
|
|
532
|
+
function be(e, t) {
|
|
533
|
+
let n = e.exec(t);
|
|
534
|
+
return n === null ? n : n[1];
|
|
535
|
+
}
|
|
536
|
+
function xe(e, t) {
|
|
537
|
+
let n = e.exec(t);
|
|
538
|
+
return n === null ? n : [parseInt(n[1]), n[2]];
|
|
539
|
+
}
|
|
540
|
+
var w = Symbol.for("fe-hydration");
|
|
541
|
+
function T(e) {
|
|
542
|
+
return e[w] === w;
|
|
543
|
+
}
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/markup.js
|
|
546
|
+
var Se = `fast-${Math.random().toString(36).substring(2, 8)}`, E = `${Se}{`, D = `}${Se}`, Ce = D.length, we = 0, O = () => `${Se}-${++we}`, Te = Object.freeze({
|
|
547
|
+
interpolation: (e) => `${E}${e}${D}`,
|
|
548
|
+
attribute: (e) => `${O()}="${E}${e}${D}"`,
|
|
549
|
+
comment: (e) => `<!--${E}${e}${D}-->`
|
|
550
|
+
}), k = Object.freeze({ parse(e, t) {
|
|
551
|
+
let n = e.split(E);
|
|
552
|
+
if (n.length === 1) return null;
|
|
553
|
+
let r = [];
|
|
554
|
+
for (let e = 0, i = n.length; e < i; ++e) {
|
|
555
|
+
let i = n[e], a = i.indexOf(D), o;
|
|
556
|
+
if (a === -1) o = i;
|
|
557
|
+
else {
|
|
558
|
+
let e = i.substring(0, a);
|
|
559
|
+
r.push(t[e]), o = i.substring(a + Ce);
|
|
560
|
+
}
|
|
561
|
+
o !== "" && r.push(o);
|
|
562
|
+
}
|
|
563
|
+
return r;
|
|
564
|
+
} }), A = l(), j = Object.freeze({
|
|
565
|
+
getForInstance: A.getForInstance,
|
|
566
|
+
getByType: A.getByType,
|
|
567
|
+
define(e, t) {
|
|
568
|
+
return t ||= {}, t.type = e, A.register(t), e;
|
|
569
|
+
},
|
|
570
|
+
assignAspect(e, t) {
|
|
571
|
+
if (!t) {
|
|
572
|
+
e.aspectType = f.content;
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
switch (e.sourceAspect = t, t[0]) {
|
|
576
|
+
case ":":
|
|
577
|
+
e.targetAspect = t.substring(1), e.aspectType = e.targetAspect === "classList" ? f.tokenList : f.property;
|
|
578
|
+
break;
|
|
579
|
+
case "?":
|
|
580
|
+
e.targetAspect = t.substring(1), e.aspectType = f.booleanAttribute;
|
|
581
|
+
break;
|
|
582
|
+
case "@":
|
|
583
|
+
e.targetAspect = t.substring(1), e.aspectType = f.event;
|
|
584
|
+
break;
|
|
585
|
+
default:
|
|
586
|
+
e.targetAspect = t, e.aspectType = f.attribute;
|
|
587
|
+
break;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}), Ee = class {
|
|
591
|
+
constructor(e) {
|
|
592
|
+
this.options = e;
|
|
593
|
+
}
|
|
594
|
+
createHTML(e) {
|
|
595
|
+
return Te.attribute(e(this));
|
|
596
|
+
}
|
|
597
|
+
createBehavior() {
|
|
598
|
+
return this;
|
|
599
|
+
}
|
|
1800
600
|
};
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
toView(i) {
|
|
1809
|
-
const t = _t(i);
|
|
1810
|
-
return t && t.toString();
|
|
1811
|
-
},
|
|
1812
|
-
fromView: _t
|
|
601
|
+
d(Ee);
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/hydration/target-builder.js
|
|
604
|
+
var De = class extends Error {
|
|
605
|
+
constructor(e, t, n) {
|
|
606
|
+
super(e), this.factories = t, this.node = n;
|
|
607
|
+
}
|
|
1813
608
|
};
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
609
|
+
function M(e) {
|
|
610
|
+
return e.nodeType === Node.COMMENT_NODE;
|
|
611
|
+
}
|
|
612
|
+
function Oe(e) {
|
|
613
|
+
return e.nodeType === Node.TEXT_NODE;
|
|
614
|
+
}
|
|
615
|
+
function ke(e, t) {
|
|
616
|
+
let n = document.createRange();
|
|
617
|
+
return n.setStart(e, 0), n.setEnd(t, M(t) || Oe(t) ? t.data.length : t.childNodes.length), n;
|
|
618
|
+
}
|
|
619
|
+
function Ae(e) {
|
|
620
|
+
return e instanceof DocumentFragment && "mode" in e;
|
|
621
|
+
}
|
|
622
|
+
function je(e, t, n) {
|
|
623
|
+
let r = ke(e, t), i = r.commonAncestorContainer, a = document.createTreeWalker(i, NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_COMMENT + NodeFilter.SHOW_TEXT, { acceptNode(e) {
|
|
624
|
+
return r.comparePoint(e, 0) === 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
625
|
+
} }), o = {}, s = {}, c = a.currentNode = e;
|
|
626
|
+
for (; c !== null;) {
|
|
627
|
+
switch (c.nodeType) {
|
|
628
|
+
case Node.ELEMENT_NODE:
|
|
629
|
+
Me(c, n, o);
|
|
630
|
+
break;
|
|
631
|
+
case Node.COMMENT_NODE:
|
|
632
|
+
Ne(c, a, n, o, s);
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
c = a.nextNode();
|
|
636
|
+
}
|
|
637
|
+
return r.detach(), {
|
|
638
|
+
targets: o,
|
|
639
|
+
boundaries: s
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function Me(e, t, n) {
|
|
643
|
+
let r = C.parseAttributeBinding(e) ?? C.parseEnumeratedAttributeBinding(e);
|
|
644
|
+
if (r !== null) {
|
|
645
|
+
for (let i of r) {
|
|
646
|
+
if (!t[i]) throw new De(`HydrationView was unable to successfully target factory on ${e.nodeName} inside ${e.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`, t, e);
|
|
647
|
+
N(t[i], e, n);
|
|
648
|
+
}
|
|
649
|
+
e.removeAttribute(C.attributeMarkerName);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
function Ne(e, t, n, r, i) {
|
|
653
|
+
if (C.isElementBoundaryStartMarker(e)) {
|
|
654
|
+
Pe(e, t);
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
if (C.isContentBindingStartMarker(e.data)) {
|
|
658
|
+
let a = C.parseContentBindingStartMarker(e.data);
|
|
659
|
+
if (a === null) return;
|
|
660
|
+
let [o, s] = a, c = n[o], l = [], u = t.nextSibling();
|
|
661
|
+
e.data = "";
|
|
662
|
+
let d = u;
|
|
663
|
+
for (; u !== null;) {
|
|
664
|
+
if (M(u)) {
|
|
665
|
+
let e = C.parseContentBindingEndMarker(u.data);
|
|
666
|
+
if (e && e[1] === s) break;
|
|
667
|
+
}
|
|
668
|
+
l.push(u), u = t.nextSibling();
|
|
669
|
+
}
|
|
670
|
+
if (u === null) {
|
|
671
|
+
let t = e.getRootNode();
|
|
672
|
+
throw Error(`Error hydrating Comment node inside "${Ae(t) ? t.host.nodeName : t.nodeName}".`);
|
|
673
|
+
}
|
|
674
|
+
u.data = "", l.length === 1 && Oe(l[0]) ? N(c, l[0], r) : (u !== d && u.previousSibling !== null && (i[c.targetNodeId] = {
|
|
675
|
+
first: d,
|
|
676
|
+
last: u.previousSibling
|
|
677
|
+
}), N(c, u.parentNode.insertBefore(document.createTextNode(""), u), r));
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
function Pe(e, t) {
|
|
681
|
+
let n = C.parseElementBoundaryStartMarker(e.data), r = t.nextSibling();
|
|
682
|
+
for (; r !== null;) {
|
|
683
|
+
if (M(r)) {
|
|
684
|
+
let e = C.parseElementBoundaryEndMarker(r.data);
|
|
685
|
+
if (e && e === n) break;
|
|
686
|
+
}
|
|
687
|
+
r = t.nextSibling();
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
function N(e, t, n) {
|
|
691
|
+
if (e.targetNodeId === void 0) throw Error("Factory could not be target to the node");
|
|
692
|
+
n[e.targetNodeId] = t;
|
|
693
|
+
}
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/view.js
|
|
696
|
+
var Fe;
|
|
697
|
+
function P(e, t) {
|
|
698
|
+
let n = e.parentNode, r = e, i;
|
|
699
|
+
for (; r !== t;) {
|
|
700
|
+
if (i = r.nextSibling, !i) throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
|
|
701
|
+
n.removeChild(r), r = i;
|
|
702
|
+
}
|
|
703
|
+
n.removeChild(t);
|
|
704
|
+
}
|
|
705
|
+
var Ie = class {
|
|
706
|
+
constructor() {
|
|
707
|
+
this.index = 0, this.length = 0;
|
|
708
|
+
}
|
|
709
|
+
get event() {
|
|
710
|
+
return b.getEvent();
|
|
711
|
+
}
|
|
712
|
+
get isEven() {
|
|
713
|
+
return this.index % 2 == 0;
|
|
714
|
+
}
|
|
715
|
+
get isOdd() {
|
|
716
|
+
return this.index % 2 != 0;
|
|
717
|
+
}
|
|
718
|
+
get isFirst() {
|
|
719
|
+
return this.index === 0;
|
|
720
|
+
}
|
|
721
|
+
get isInMiddle() {
|
|
722
|
+
return !this.isFirst && !this.isLast;
|
|
723
|
+
}
|
|
724
|
+
get isLast() {
|
|
725
|
+
return this.index === this.length - 1;
|
|
726
|
+
}
|
|
727
|
+
eventDetail() {
|
|
728
|
+
return this.event.detail;
|
|
729
|
+
}
|
|
730
|
+
eventTarget() {
|
|
731
|
+
return this.event.target;
|
|
732
|
+
}
|
|
733
|
+
}, F = class extends Ie {
|
|
734
|
+
constructor(e, t, n) {
|
|
735
|
+
super(), this.fragment = e, this.factories = t, this.targets = n, this.behaviors = null, this.unbindables = [], this.source = null, this.isBound = !1, this.sourceLifetime = v.unknown, this.context = this, this.firstChild = e.firstChild, this.lastChild = e.lastChild;
|
|
736
|
+
}
|
|
737
|
+
appendTo(e) {
|
|
738
|
+
e.appendChild(this.fragment);
|
|
739
|
+
}
|
|
740
|
+
insertBefore(e) {
|
|
741
|
+
if (this.fragment.hasChildNodes()) e.parentNode.insertBefore(this.fragment, e);
|
|
742
|
+
else {
|
|
743
|
+
let t = this.lastChild;
|
|
744
|
+
if (e.previousSibling === t) return;
|
|
745
|
+
let n = e.parentNode, r = this.firstChild, i;
|
|
746
|
+
for (; r !== t;) i = r.nextSibling, n.insertBefore(r, e), r = i;
|
|
747
|
+
n.insertBefore(t, e);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
remove() {
|
|
751
|
+
let e = this.fragment, t = this.lastChild, n = this.firstChild, r;
|
|
752
|
+
for (; n !== t;) r = n.nextSibling, e.appendChild(n), n = r;
|
|
753
|
+
e.appendChild(t);
|
|
754
|
+
}
|
|
755
|
+
dispose() {
|
|
756
|
+
P(this.firstChild, this.lastChild), this.unbind();
|
|
757
|
+
}
|
|
758
|
+
onUnbind(e) {
|
|
759
|
+
this.unbindables.push(e);
|
|
760
|
+
}
|
|
761
|
+
bind(e, t = this) {
|
|
762
|
+
if (this.source === e) return;
|
|
763
|
+
let n = this.behaviors;
|
|
764
|
+
if (n === null) {
|
|
765
|
+
this.source = e, this.context = t, this.behaviors = n = Array(this.factories.length);
|
|
766
|
+
let r = this.factories;
|
|
767
|
+
for (let e = 0, t = r.length; e < t; ++e) {
|
|
768
|
+
let t = r[e].createBehavior();
|
|
769
|
+
t.bind(this), n[e] = t;
|
|
770
|
+
}
|
|
771
|
+
} else {
|
|
772
|
+
this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = e, this.context = t;
|
|
773
|
+
for (let e = 0, t = n.length; e < t; ++e) n[e].bind(this);
|
|
774
|
+
}
|
|
775
|
+
this.isBound = !0;
|
|
776
|
+
}
|
|
777
|
+
unbind() {
|
|
778
|
+
!this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
|
|
779
|
+
}
|
|
780
|
+
evaluateUnbindables() {
|
|
781
|
+
let e = this.unbindables;
|
|
782
|
+
for (let t = 0, n = e.length; t < n; ++t) e[t].unbind(this);
|
|
783
|
+
e.length = 0;
|
|
784
|
+
}
|
|
785
|
+
static disposeContiguousBatch(e) {
|
|
786
|
+
if (e.length !== 0) {
|
|
787
|
+
P(e[0].firstChild, e[e.length - 1].lastChild);
|
|
788
|
+
for (let t = 0, n = e.length; t < n; ++t) e[t].unbind();
|
|
789
|
+
}
|
|
790
|
+
}
|
|
1921
791
|
};
|
|
1922
|
-
|
|
1923
|
-
|
|
792
|
+
d(F), y.defineProperty(F.prototype, "index"), y.defineProperty(F.prototype, "length");
|
|
793
|
+
var I = {
|
|
794
|
+
unhydrated: "unhydrated",
|
|
795
|
+
hydrating: "hydrating",
|
|
796
|
+
hydrated: "hydrated"
|
|
797
|
+
}, Le = class extends Error {
|
|
798
|
+
constructor(e, t, n, r) {
|
|
799
|
+
super(e), this.factory = t, this.fragment = n, this.templateString = r;
|
|
800
|
+
}
|
|
801
|
+
}, Re = class extends Ie {
|
|
802
|
+
constructor(e, t, n, r) {
|
|
803
|
+
super(), this.firstChild = e, this.lastChild = t, this.sourceTemplate = n, this.hostBindingTarget = r, this[Fe] = w, this.context = this, this.source = null, this.isBound = !1, this.sourceLifetime = v.unknown, this.unbindables = [], this.fragment = null, this.behaviors = null, this._hydrationStage = I.unhydrated, this._bindingViewBoundaries = {}, this._targets = {}, this.factories = n.compile().factories;
|
|
804
|
+
}
|
|
805
|
+
get hydrationStage() {
|
|
806
|
+
return this._hydrationStage;
|
|
807
|
+
}
|
|
808
|
+
get targets() {
|
|
809
|
+
return this._targets;
|
|
810
|
+
}
|
|
811
|
+
get bindingViewBoundaries() {
|
|
812
|
+
return this._bindingViewBoundaries;
|
|
813
|
+
}
|
|
814
|
+
insertBefore(e) {
|
|
815
|
+
if (this.fragment !== null) if (this.fragment.hasChildNodes()) e.parentNode.insertBefore(this.fragment, e);
|
|
816
|
+
else {
|
|
817
|
+
let t = this.lastChild;
|
|
818
|
+
if (e.previousSibling === t) return;
|
|
819
|
+
let n = e.parentNode, r = this.firstChild, i;
|
|
820
|
+
for (; r !== t;) i = r.nextSibling, n.insertBefore(r, e), r = i;
|
|
821
|
+
n.insertBefore(t, e);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
appendTo(e) {
|
|
825
|
+
this.fragment !== null && e.appendChild(this.fragment);
|
|
826
|
+
}
|
|
827
|
+
remove() {
|
|
828
|
+
let e = this.fragment ||= document.createDocumentFragment(), t = this.lastChild, n = this.firstChild, r;
|
|
829
|
+
for (; n !== t;) {
|
|
830
|
+
if (r = n.nextSibling, !r) throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
|
|
831
|
+
e.appendChild(n), n = r;
|
|
832
|
+
}
|
|
833
|
+
e.appendChild(t);
|
|
834
|
+
}
|
|
835
|
+
bind(e, t = this) {
|
|
836
|
+
if (this.hydrationStage !== I.hydrated && (this._hydrationStage = I.hydrating), this.source === e) return;
|
|
837
|
+
let n = this.behaviors;
|
|
838
|
+
if (n === null) {
|
|
839
|
+
this.source = e, this.context = t;
|
|
840
|
+
try {
|
|
841
|
+
let { targets: e, boundaries: t } = je(this.firstChild, this.lastChild, this.factories);
|
|
842
|
+
this._targets = e, this._bindingViewBoundaries = t;
|
|
843
|
+
} catch (e) {
|
|
844
|
+
if (e instanceof De) {
|
|
845
|
+
let t = this.sourceTemplate.html;
|
|
846
|
+
typeof t != "string" && (t = t.innerHTML), e.templateString = t;
|
|
847
|
+
}
|
|
848
|
+
throw e;
|
|
849
|
+
}
|
|
850
|
+
this.behaviors = n = Array(this.factories.length);
|
|
851
|
+
let r = this.factories;
|
|
852
|
+
for (let e = 0, t = r.length; e < t; ++e) {
|
|
853
|
+
let t = r[e];
|
|
854
|
+
if (t.targetNodeId === "h" && this.hostBindingTarget && N(t, this.hostBindingTarget, this._targets), t.targetNodeId in this.targets) {
|
|
855
|
+
let r = t.createBehavior();
|
|
856
|
+
r.bind(this), n[e] = r;
|
|
857
|
+
} else {
|
|
858
|
+
let e = this.sourceTemplate.html;
|
|
859
|
+
typeof e != "string" && (e = e.innerHTML);
|
|
860
|
+
let n = (this.firstChild?.getRootNode()).host?.nodeName || "unknown", r = t, i = [
|
|
861
|
+
`HydrationView was unable to successfully target bindings inside "<${n.toLowerCase()}>".`,
|
|
862
|
+
"\nMismatch Details:",
|
|
863
|
+
` - Expected target node ID: "${t.targetNodeId}"`,
|
|
864
|
+
` - Available target IDs: [${Object.keys(this.targets).join(", ") || "none"}]`
|
|
865
|
+
];
|
|
866
|
+
throw t.targetTagName && i.push(` - Expected tag name: "${t.targetTagName}"`), r.sourceAspect && i.push(` - Source aspect: "${r.sourceAspect}"`), r.aspectType !== void 0 && i.push(` - Aspect type: ${r.aspectType}`), i.push("\nThis usually means:", " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `\nTemplate: ${e.slice(0, 200)}${e.length > 200 ? "..." : ""}`), new Le(i.join("\n"), t, ke(this.firstChild, this.lastChild).cloneContents(), e);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
} else {
|
|
870
|
+
this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = e, this.context = t;
|
|
871
|
+
for (let e = 0, t = n.length; e < t; ++e) n[e].bind(this);
|
|
872
|
+
}
|
|
873
|
+
this.isBound = !0, this._hydrationStage = I.hydrated;
|
|
874
|
+
}
|
|
875
|
+
unbind() {
|
|
876
|
+
!this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
|
|
877
|
+
}
|
|
878
|
+
dispose() {
|
|
879
|
+
P(this.firstChild, this.lastChild), this.unbind();
|
|
880
|
+
}
|
|
881
|
+
onUnbind(e) {
|
|
882
|
+
this.unbindables.push(e);
|
|
883
|
+
}
|
|
884
|
+
evaluateUnbindables() {
|
|
885
|
+
let e = this.unbindables;
|
|
886
|
+
for (let t = 0, n = e.length; t < n; ++t) e[t].unbind(this);
|
|
887
|
+
e.length = 0;
|
|
888
|
+
}
|
|
1924
889
|
};
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
this.observedNodes.add(t), super.observe(t, e);
|
|
2019
|
-
}
|
|
2020
|
-
unobserve(t) {
|
|
2021
|
-
this.observedNodes.delete(t), this.observedNodes.size < 1 && this.disconnect();
|
|
2022
|
-
}
|
|
2023
|
-
}
|
|
2024
|
-
const vi = Object.freeze({
|
|
2025
|
-
/**
|
|
2026
|
-
* Creates a ViewBehaviorOrchestrator.
|
|
2027
|
-
* @param source - The source to to associate behaviors with.
|
|
2028
|
-
* @returns A ViewBehaviorOrchestrator.
|
|
2029
|
-
*/
|
|
2030
|
-
create(i) {
|
|
2031
|
-
const t = [], e = {};
|
|
2032
|
-
let s = null, n = !1;
|
|
2033
|
-
return {
|
|
2034
|
-
source: i,
|
|
2035
|
-
context: O.default,
|
|
2036
|
-
targets: e,
|
|
2037
|
-
get isBound() {
|
|
2038
|
-
return n;
|
|
2039
|
-
},
|
|
2040
|
-
addBehaviorFactory(r, o) {
|
|
2041
|
-
var c, d, l, a;
|
|
2042
|
-
const h = r;
|
|
2043
|
-
h.id = (c = h.id) !== null && c !== void 0 ? c : j(), h.targetNodeId = (d = h.targetNodeId) !== null && d !== void 0 ? d : j(), h.targetTagName = (l = o.tagName) !== null && l !== void 0 ? l : null, h.policy = (a = h.policy) !== null && a !== void 0 ? a : T.policy, this.addTarget(h.targetNodeId, o), this.addBehavior(h.createBehavior());
|
|
2044
|
-
},
|
|
2045
|
-
addTarget(r, o) {
|
|
2046
|
-
e[r] = o;
|
|
2047
|
-
},
|
|
2048
|
-
addBehavior(r) {
|
|
2049
|
-
t.push(r), n && r.bind(this);
|
|
2050
|
-
},
|
|
2051
|
-
onUnbind(r) {
|
|
2052
|
-
s === null && (s = []), s.push(r);
|
|
2053
|
-
},
|
|
2054
|
-
connectedCallback(r) {
|
|
2055
|
-
n || (n = !0, t.forEach((o) => o.bind(this)));
|
|
2056
|
-
},
|
|
2057
|
-
disconnectedCallback(r) {
|
|
2058
|
-
n && (n = !1, s !== null && s.forEach((o) => o.unbind(this)));
|
|
2059
|
-
}
|
|
2060
|
-
};
|
|
2061
|
-
}
|
|
2062
|
-
}), Ge = {
|
|
2063
|
-
bubbles: !0,
|
|
2064
|
-
composed: !0,
|
|
2065
|
-
cancelable: !0
|
|
2066
|
-
}, H = "isConnected", ce = /* @__PURE__ */ new WeakMap();
|
|
2067
|
-
function I(i) {
|
|
2068
|
-
var t, e;
|
|
2069
|
-
return (e = (t = i.shadowRoot) !== null && t !== void 0 ? t : ce.get(i)) !== null && e !== void 0 ? e : null;
|
|
2070
|
-
}
|
|
2071
|
-
let Lt;
|
|
2072
|
-
class S extends Qt {
|
|
2073
|
-
/**
|
|
2074
|
-
* Creates a Controller to control the specified element.
|
|
2075
|
-
* @param element - The element to be controlled by this controller.
|
|
2076
|
-
* @param definition - The element definition metadata that instructs this
|
|
2077
|
-
* controller in how to handle rendering and other platform integrations.
|
|
2078
|
-
* @internal
|
|
2079
|
-
*/
|
|
2080
|
-
constructor(t, e) {
|
|
2081
|
-
super(t), this.boundObservables = null, this.needsInitialization = !0, this.hasExistingShadowRoot = !1, this._template = null, this.stage = 3, this.guardBehaviorConnection = !1, this.behaviors = null, this.behaviorsConnected = !1, this._mainStyles = null, this.$fastController = this, this.view = null, this.source = t, this.definition = e, this.shadowOptions = e.shadowOptions;
|
|
2082
|
-
const s = g.getAccessors(t);
|
|
2083
|
-
if (s.length > 0) {
|
|
2084
|
-
const n = this.boundObservables = /* @__PURE__ */ Object.create(null);
|
|
2085
|
-
for (let r = 0, o = s.length; r < o; ++r) {
|
|
2086
|
-
const c = s[r].name, d = t[c];
|
|
2087
|
-
d !== void 0 && (delete t[c], n[c] = d);
|
|
2088
|
-
}
|
|
2089
|
-
}
|
|
2090
|
-
}
|
|
2091
|
-
/**
|
|
2092
|
-
* Indicates whether or not the custom element has been
|
|
2093
|
-
* connected to the document.
|
|
2094
|
-
*/
|
|
2095
|
-
get isConnected() {
|
|
2096
|
-
return g.track(this, H), this.stage === 1;
|
|
2097
|
-
}
|
|
2098
|
-
/**
|
|
2099
|
-
* The context the expression is evaluated against.
|
|
2100
|
-
*/
|
|
2101
|
-
get context() {
|
|
2102
|
-
var t, e;
|
|
2103
|
-
return (e = (t = this.view) === null || t === void 0 ? void 0 : t.context) !== null && e !== void 0 ? e : O.default;
|
|
2104
|
-
}
|
|
2105
|
-
/**
|
|
2106
|
-
* Indicates whether the controller is bound.
|
|
2107
|
-
*/
|
|
2108
|
-
get isBound() {
|
|
2109
|
-
var t, e;
|
|
2110
|
-
return (e = (t = this.view) === null || t === void 0 ? void 0 : t.isBound) !== null && e !== void 0 ? e : !1;
|
|
2111
|
-
}
|
|
2112
|
-
/**
|
|
2113
|
-
* Indicates how the source's lifetime relates to the controller's lifetime.
|
|
2114
|
-
*/
|
|
2115
|
-
get sourceLifetime() {
|
|
2116
|
-
var t;
|
|
2117
|
-
return (t = this.view) === null || t === void 0 ? void 0 : t.sourceLifetime;
|
|
2118
|
-
}
|
|
2119
|
-
/**
|
|
2120
|
-
* Gets/sets the template used to render the component.
|
|
2121
|
-
* @remarks
|
|
2122
|
-
* This value can only be accurately read after connect but can be set at any time.
|
|
2123
|
-
*/
|
|
2124
|
-
get template() {
|
|
2125
|
-
var t;
|
|
2126
|
-
if (this._template === null) {
|
|
2127
|
-
const e = this.definition;
|
|
2128
|
-
this.source.resolveTemplate ? this._template = this.source.resolveTemplate() : e.template && (this._template = (t = e.template) !== null && t !== void 0 ? t : null);
|
|
2129
|
-
}
|
|
2130
|
-
return this._template;
|
|
2131
|
-
}
|
|
2132
|
-
set template(t) {
|
|
2133
|
-
this._template !== t && (this._template = t, this.needsInitialization || this.renderTemplate(t));
|
|
2134
|
-
}
|
|
2135
|
-
/**
|
|
2136
|
-
* The shadow root options for the component.
|
|
2137
|
-
*/
|
|
2138
|
-
get shadowOptions() {
|
|
2139
|
-
return this._shadowRootOptions;
|
|
2140
|
-
}
|
|
2141
|
-
set shadowOptions(t) {
|
|
2142
|
-
if (this._shadowRootOptions === void 0 && t !== void 0) {
|
|
2143
|
-
this._shadowRootOptions = t;
|
|
2144
|
-
let e = this.source.shadowRoot;
|
|
2145
|
-
e ? this.hasExistingShadowRoot = !0 : (e = this.source.attachShadow(t), t.mode === "closed" && ce.set(this.source, e));
|
|
2146
|
-
}
|
|
2147
|
-
}
|
|
2148
|
-
/**
|
|
2149
|
-
* The main set of styles used for the component, independent
|
|
2150
|
-
* of any dynamically added styles.
|
|
2151
|
-
*/
|
|
2152
|
-
get mainStyles() {
|
|
2153
|
-
var t;
|
|
2154
|
-
if (this._mainStyles === null) {
|
|
2155
|
-
const e = this.definition;
|
|
2156
|
-
this.source.resolveStyles ? this._mainStyles = this.source.resolveStyles() : e.styles && (this._mainStyles = (t = e.styles) !== null && t !== void 0 ? t : null);
|
|
2157
|
-
}
|
|
2158
|
-
return this._mainStyles;
|
|
2159
|
-
}
|
|
2160
|
-
set mainStyles(t) {
|
|
2161
|
-
this._mainStyles !== t && (this._mainStyles !== null && this.removeStyles(this._mainStyles), this._mainStyles = t, this.needsInitialization || this.addStyles(t));
|
|
2162
|
-
}
|
|
2163
|
-
/**
|
|
2164
|
-
* Registers an unbind handler with the controller.
|
|
2165
|
-
* @param behavior - An object to call when the controller unbinds.
|
|
2166
|
-
*/
|
|
2167
|
-
onUnbind(t) {
|
|
2168
|
-
var e;
|
|
2169
|
-
(e = this.view) === null || e === void 0 || e.onUnbind(t);
|
|
2170
|
-
}
|
|
2171
|
-
/**
|
|
2172
|
-
* Adds the behavior to the component.
|
|
2173
|
-
* @param behavior - The behavior to add.
|
|
2174
|
-
*/
|
|
2175
|
-
addBehavior(t) {
|
|
2176
|
-
var e, s;
|
|
2177
|
-
const n = (e = this.behaviors) !== null && e !== void 0 ? e : this.behaviors = /* @__PURE__ */ new Map(), r = (s = n.get(t)) !== null && s !== void 0 ? s : 0;
|
|
2178
|
-
r === 0 ? (n.set(t, 1), t.addedCallback && t.addedCallback(this), t.connectedCallback && !this.guardBehaviorConnection && (this.stage === 1 || this.stage === 0) && t.connectedCallback(this)) : n.set(t, r + 1);
|
|
2179
|
-
}
|
|
2180
|
-
/**
|
|
2181
|
-
* Removes the behavior from the component.
|
|
2182
|
-
* @param behavior - The behavior to remove.
|
|
2183
|
-
* @param force - Forces removal even if this behavior was added more than once.
|
|
2184
|
-
*/
|
|
2185
|
-
removeBehavior(t, e = !1) {
|
|
2186
|
-
const s = this.behaviors;
|
|
2187
|
-
if (s === null)
|
|
2188
|
-
return;
|
|
2189
|
-
const n = s.get(t);
|
|
2190
|
-
n !== void 0 && (n === 1 || e ? (s.delete(t), t.disconnectedCallback && this.stage !== 3 && t.disconnectedCallback(this), t.removedCallback && t.removedCallback(this)) : s.set(t, n - 1));
|
|
2191
|
-
}
|
|
2192
|
-
/**
|
|
2193
|
-
* Adds styles to this element. Providing an HTMLStyleElement will attach the element instance to the shadowRoot.
|
|
2194
|
-
* @param styles - The styles to add.
|
|
2195
|
-
*/
|
|
2196
|
-
addStyles(t) {
|
|
2197
|
-
var e;
|
|
2198
|
-
if (!t)
|
|
2199
|
-
return;
|
|
2200
|
-
const s = this.source;
|
|
2201
|
-
if (t instanceof HTMLElement)
|
|
2202
|
-
((e = I(s)) !== null && e !== void 0 ? e : this.source).append(t);
|
|
2203
|
-
else if (!t.isAttachedTo(s)) {
|
|
2204
|
-
const n = t.behaviors;
|
|
2205
|
-
if (t.addStylesTo(s), n !== null)
|
|
2206
|
-
for (let r = 0, o = n.length; r < o; ++r)
|
|
2207
|
-
this.addBehavior(n[r]);
|
|
2208
|
-
}
|
|
2209
|
-
}
|
|
2210
|
-
/**
|
|
2211
|
-
* Removes styles from this element. Providing an HTMLStyleElement will detach the element instance from the shadowRoot.
|
|
2212
|
-
* @param styles - the styles to remove.
|
|
2213
|
-
*/
|
|
2214
|
-
removeStyles(t) {
|
|
2215
|
-
var e;
|
|
2216
|
-
if (!t)
|
|
2217
|
-
return;
|
|
2218
|
-
const s = this.source;
|
|
2219
|
-
if (t instanceof HTMLElement)
|
|
2220
|
-
((e = I(s)) !== null && e !== void 0 ? e : s).removeChild(t);
|
|
2221
|
-
else if (t.isAttachedTo(s)) {
|
|
2222
|
-
const n = t.behaviors;
|
|
2223
|
-
if (t.removeStylesFrom(s), n !== null)
|
|
2224
|
-
for (let r = 0, o = n.length; r < o; ++r)
|
|
2225
|
-
this.removeBehavior(n[r]);
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
/**
|
|
2229
|
-
* Runs connected lifecycle behavior on the associated element.
|
|
2230
|
-
*/
|
|
2231
|
-
connect() {
|
|
2232
|
-
this.stage === 3 && (this.stage = 0, this.bindObservables(), this.connectBehaviors(), this.needsInitialization ? (this.renderTemplate(this.template), this.addStyles(this.mainStyles), this.needsInitialization = !1) : this.view !== null && this.view.bind(this.source), this.stage = 1, g.notify(this, H));
|
|
2233
|
-
}
|
|
2234
|
-
/**
|
|
2235
|
-
* Binds any observables that were set before upgrade.
|
|
2236
|
-
*/
|
|
2237
|
-
bindObservables() {
|
|
2238
|
-
if (this.boundObservables !== null) {
|
|
2239
|
-
const t = this.source, e = this.boundObservables, s = Object.keys(e);
|
|
2240
|
-
for (let n = 0, r = s.length; n < r; ++n) {
|
|
2241
|
-
const o = s[n];
|
|
2242
|
-
t[o] = e[o];
|
|
2243
|
-
}
|
|
2244
|
-
this.boundObservables = null;
|
|
2245
|
-
}
|
|
2246
|
-
}
|
|
2247
|
-
/**
|
|
2248
|
-
* Connects any existing behaviors on the associated element.
|
|
2249
|
-
*/
|
|
2250
|
-
connectBehaviors() {
|
|
2251
|
-
if (this.behaviorsConnected === !1) {
|
|
2252
|
-
const t = this.behaviors;
|
|
2253
|
-
if (t !== null) {
|
|
2254
|
-
this.guardBehaviorConnection = !0;
|
|
2255
|
-
for (const e of t.keys())
|
|
2256
|
-
e.connectedCallback && e.connectedCallback(this);
|
|
2257
|
-
this.guardBehaviorConnection = !1;
|
|
2258
|
-
}
|
|
2259
|
-
this.behaviorsConnected = !0;
|
|
2260
|
-
}
|
|
2261
|
-
}
|
|
2262
|
-
/**
|
|
2263
|
-
* Disconnects any behaviors on the associated element.
|
|
2264
|
-
*/
|
|
2265
|
-
disconnectBehaviors() {
|
|
2266
|
-
if (this.behaviorsConnected === !0) {
|
|
2267
|
-
const t = this.behaviors;
|
|
2268
|
-
if (t !== null)
|
|
2269
|
-
for (const e of t.keys())
|
|
2270
|
-
e.disconnectedCallback && e.disconnectedCallback(this);
|
|
2271
|
-
this.behaviorsConnected = !1;
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
|
-
/**
|
|
2275
|
-
* Runs disconnected lifecycle behavior on the associated element.
|
|
2276
|
-
*/
|
|
2277
|
-
disconnect() {
|
|
2278
|
-
this.stage === 1 && (this.stage = 2, g.notify(this, H), this.view !== null && this.view.unbind(), this.disconnectBehaviors(), this.stage = 3);
|
|
2279
|
-
}
|
|
2280
|
-
/**
|
|
2281
|
-
* Runs the attribute changed callback for the associated element.
|
|
2282
|
-
* @param name - The name of the attribute that changed.
|
|
2283
|
-
* @param oldValue - The previous value of the attribute.
|
|
2284
|
-
* @param newValue - The new value of the attribute.
|
|
2285
|
-
*/
|
|
2286
|
-
onAttributeChangedCallback(t, e, s) {
|
|
2287
|
-
const n = this.definition.attributeLookup[t];
|
|
2288
|
-
n !== void 0 && n.onAttributeChangedCallback(this.source, s);
|
|
2289
|
-
}
|
|
2290
|
-
/**
|
|
2291
|
-
* Emits a custom HTML event.
|
|
2292
|
-
* @param type - The type name of the event.
|
|
2293
|
-
* @param detail - The event detail object to send with the event.
|
|
2294
|
-
* @param options - The event options. By default bubbles and composed.
|
|
2295
|
-
* @remarks
|
|
2296
|
-
* Only emits events if connected.
|
|
2297
|
-
*/
|
|
2298
|
-
emit(t, e, s) {
|
|
2299
|
-
return this.stage === 1 ? this.source.dispatchEvent(new CustomEvent(t, Object.assign(Object.assign({ detail: e }, Ge), s))) : !1;
|
|
2300
|
-
}
|
|
2301
|
-
/**
|
|
2302
|
-
* Renders the provided template to the element.
|
|
2303
|
-
*
|
|
2304
|
-
* @param template - The template to render.
|
|
2305
|
-
* @remarks
|
|
2306
|
-
* If `null` is provided, any existing view will be removed.
|
|
2307
|
-
*/
|
|
2308
|
-
renderTemplate(t) {
|
|
2309
|
-
var e;
|
|
2310
|
-
const s = this.source, n = (e = I(s)) !== null && e !== void 0 ? e : s;
|
|
2311
|
-
if (this.view !== null)
|
|
2312
|
-
this.view.dispose(), this.view = null;
|
|
2313
|
-
else if (!this.needsInitialization || this.hasExistingShadowRoot) {
|
|
2314
|
-
this.hasExistingShadowRoot = !1;
|
|
2315
|
-
for (let r = n.firstChild; r !== null; r = n.firstChild)
|
|
2316
|
-
n.removeChild(r);
|
|
2317
|
-
}
|
|
2318
|
-
t && (this.view = t.render(s, n, s), this.view.sourceLifetime = J.coupled);
|
|
2319
|
-
}
|
|
2320
|
-
/**
|
|
2321
|
-
* Locates or creates a controller for the specified element.
|
|
2322
|
-
* @param element - The element to return the controller for.
|
|
2323
|
-
* @param override - Reset the controller even if one has been defined.
|
|
2324
|
-
* @remarks
|
|
2325
|
-
* The specified element must have a {@link FASTElementDefinition}
|
|
2326
|
-
* registered either through the use of the {@link customElement}
|
|
2327
|
-
* decorator or a call to `FASTElement.define`.
|
|
2328
|
-
*/
|
|
2329
|
-
static forCustomElement(t, e = !1) {
|
|
2330
|
-
const s = t.$fastController;
|
|
2331
|
-
if (s !== void 0 && !e)
|
|
2332
|
-
return s;
|
|
2333
|
-
const n = p.getForInstance(t);
|
|
2334
|
-
if (n === void 0)
|
|
2335
|
-
throw v.error(
|
|
2336
|
-
1401
|
|
2337
|
-
/* Message.missingElementDefinition */
|
|
2338
|
-
);
|
|
2339
|
-
return g.getNotifier(n).subscribe({
|
|
2340
|
-
handleChange: () => {
|
|
2341
|
-
S.forCustomElement(t, !0), t.$fastController.connect();
|
|
2342
|
-
}
|
|
2343
|
-
}, "template"), g.getNotifier(n).subscribe({
|
|
2344
|
-
handleChange: () => {
|
|
2345
|
-
S.forCustomElement(t, !0), t.$fastController.connect();
|
|
2346
|
-
}
|
|
2347
|
-
}, "shadowOptions"), t.$fastController = new Lt(t, n);
|
|
2348
|
-
}
|
|
2349
|
-
/**
|
|
2350
|
-
* Sets the strategy that ElementController.forCustomElement uses to construct
|
|
2351
|
-
* ElementController instances for an element.
|
|
2352
|
-
* @param strategy - The strategy to use.
|
|
2353
|
-
*/
|
|
2354
|
-
static setStrategy(t) {
|
|
2355
|
-
Lt = t;
|
|
2356
|
-
}
|
|
2357
|
-
}
|
|
2358
|
-
x(S);
|
|
2359
|
-
S.setStrategy(S);
|
|
2360
|
-
function Q(i) {
|
|
2361
|
-
var t;
|
|
2362
|
-
return "adoptedStyleSheets" in i ? i : (t = I(i)) !== null && t !== void 0 ? t : i.getRootNode();
|
|
2363
|
-
}
|
|
2364
|
-
class Z {
|
|
2365
|
-
constructor(t) {
|
|
2366
|
-
const e = Z.styleSheetCache;
|
|
2367
|
-
this.sheets = t.map((s) => {
|
|
2368
|
-
if (s instanceof CSSStyleSheet)
|
|
2369
|
-
return s;
|
|
2370
|
-
let n = e.get(s);
|
|
2371
|
-
return n === void 0 && (n = new CSSStyleSheet(), n.replaceSync(s), e.set(s, n)), n;
|
|
2372
|
-
});
|
|
2373
|
-
}
|
|
2374
|
-
addStylesTo(t) {
|
|
2375
|
-
de(Q(t), this.sheets);
|
|
2376
|
-
}
|
|
2377
|
-
removeStylesFrom(t) {
|
|
2378
|
-
he(Q(t), this.sheets);
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
Z.styleSheetCache = /* @__PURE__ */ new Map();
|
|
2382
|
-
let Je = 0;
|
|
2383
|
-
const Ke = () => `fast-${++Je}`;
|
|
2384
|
-
function Vt(i) {
|
|
2385
|
-
return i === document ? document.body : i;
|
|
2386
|
-
}
|
|
2387
|
-
class Xe {
|
|
2388
|
-
constructor(t) {
|
|
2389
|
-
this.styles = t, this.styleClass = Ke();
|
|
2390
|
-
}
|
|
2391
|
-
addStylesTo(t) {
|
|
2392
|
-
t = Vt(Q(t));
|
|
2393
|
-
const e = this.styles, s = this.styleClass;
|
|
2394
|
-
for (let n = 0; n < e.length; n++) {
|
|
2395
|
-
const r = document.createElement("style");
|
|
2396
|
-
r.innerHTML = e[n], r.className = s, t.append(r);
|
|
2397
|
-
}
|
|
2398
|
-
}
|
|
2399
|
-
removeStylesFrom(t) {
|
|
2400
|
-
t = Vt(Q(t));
|
|
2401
|
-
const e = t.querySelectorAll(`.${this.styleClass}`);
|
|
2402
|
-
for (let s = 0, n = e.length; s < n; ++s)
|
|
2403
|
-
t.removeChild(e[s]);
|
|
2404
|
-
}
|
|
2405
|
-
}
|
|
2406
|
-
let de = (i, t) => {
|
|
2407
|
-
i.adoptedStyleSheets = [...i.adoptedStyleSheets, ...t];
|
|
2408
|
-
}, he = (i, t) => {
|
|
2409
|
-
i.adoptedStyleSheets = i.adoptedStyleSheets.filter((e) => t.indexOf(e) === -1);
|
|
890
|
+
Fe = w, d(Re);
|
|
891
|
+
//#endregion
|
|
892
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/html-binding-directive.js
|
|
893
|
+
function ze(e) {
|
|
894
|
+
return e.create !== void 0;
|
|
895
|
+
}
|
|
896
|
+
function Be(e, t, n, r) {
|
|
897
|
+
if (n ??= "", ze(n)) {
|
|
898
|
+
e.textContent = "";
|
|
899
|
+
let t = e.$fastView;
|
|
900
|
+
if (t === void 0) if (T(r) && T(n) && r.bindingViewBoundaries[this.targetNodeId] !== void 0 && r.hydrationStage !== I.hydrated) {
|
|
901
|
+
let e = r.bindingViewBoundaries[this.targetNodeId];
|
|
902
|
+
t = n.hydrate(e.first, e.last);
|
|
903
|
+
} else t = n.create();
|
|
904
|
+
else e.$fastTemplate !== n && (t.isComposed && (t.remove(), t.unbind()), t = n.create());
|
|
905
|
+
t.isComposed ? t.needsBindOnly && (t.needsBindOnly = !1, t.bind(r.source, r.context)) : (t.isComposed = !0, t.bind(r.source, r.context), t.insertBefore(e), e.$fastView = t, e.$fastTemplate = n);
|
|
906
|
+
} else {
|
|
907
|
+
let t = e.$fastView;
|
|
908
|
+
t !== void 0 && t.isComposed && (t.isComposed = !1, t.remove(), t.needsBindOnly ? t.needsBindOnly = !1 : t.unbind()), e.textContent = n;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
function Ve(e, t, n) {
|
|
912
|
+
let r = `${this.id}-t`, i = e[r] ?? (e[r] = {
|
|
913
|
+
v: 0,
|
|
914
|
+
cv: Object.create(null)
|
|
915
|
+
}), a = i.cv, o = i.v, s = e[t];
|
|
916
|
+
if (n != null && n.length) {
|
|
917
|
+
let e = n.split(/\s+/);
|
|
918
|
+
for (let t = 0, n = e.length; t < n; ++t) {
|
|
919
|
+
let n = e[t];
|
|
920
|
+
n !== "" && (a[n] = o, s.add(n));
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
if (i.v = o + 1, o !== 0) {
|
|
924
|
+
--o;
|
|
925
|
+
for (let e in a) a[e] === o && s.remove(e);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
var He = {
|
|
929
|
+
[f.attribute]: h.setAttribute,
|
|
930
|
+
[f.booleanAttribute]: h.setBooleanAttribute,
|
|
931
|
+
[f.property]: (e, t, n) => e[t] = n,
|
|
932
|
+
[f.content]: Be,
|
|
933
|
+
[f.tokenList]: Ve,
|
|
934
|
+
[f.event]: () => void 0
|
|
935
|
+
}, L = class {
|
|
936
|
+
constructor(e) {
|
|
937
|
+
this.dataBinding = e, this.updateTarget = null, this.aspectType = f.content;
|
|
938
|
+
}
|
|
939
|
+
createHTML(e) {
|
|
940
|
+
return Te.interpolation(e(this));
|
|
941
|
+
}
|
|
942
|
+
createBehavior() {
|
|
943
|
+
if (this.updateTarget === null) {
|
|
944
|
+
let e = He[this.aspectType], t = this.dataBinding.policy ?? this.policy;
|
|
945
|
+
if (!e) throw s.error(1205);
|
|
946
|
+
this.data = `${this.id}-d`, this.updateTarget = t.protect(this.targetTagName, this.aspectType, this.targetAspect, e);
|
|
947
|
+
}
|
|
948
|
+
return this;
|
|
949
|
+
}
|
|
950
|
+
bind(e) {
|
|
951
|
+
let t = e.targets[this.targetNodeId], n = T(e) && e.hydrationStage && e.hydrationStage !== I.hydrated;
|
|
952
|
+
switch (this.aspectType) {
|
|
953
|
+
case f.event:
|
|
954
|
+
t[this.data] = e, t.addEventListener(this.targetAspect, this, this.dataBinding.options);
|
|
955
|
+
break;
|
|
956
|
+
case f.content: e.onUnbind(this);
|
|
957
|
+
default:
|
|
958
|
+
let r = t[this.data] ?? (t[this.data] = this.dataBinding.createObserver(this, this));
|
|
959
|
+
if (r.target = t, r.controller = e, n && (this.aspectType === f.attribute || this.aspectType === f.booleanAttribute)) {
|
|
960
|
+
r.bind(e);
|
|
961
|
+
break;
|
|
962
|
+
}
|
|
963
|
+
this.updateTarget(t, this.targetAspect, r.bind(e), e);
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
unbind(e) {
|
|
968
|
+
let t = e.targets[this.targetNodeId].$fastView;
|
|
969
|
+
t !== void 0 && t.isComposed && (t.unbind(), t.needsBindOnly = !0);
|
|
970
|
+
}
|
|
971
|
+
handleEvent(e) {
|
|
972
|
+
let t = e.currentTarget[this.data];
|
|
973
|
+
if (t.isBound) {
|
|
974
|
+
b.setEvent(e);
|
|
975
|
+
let n = this.dataBinding.evaluate(t.source, t.context);
|
|
976
|
+
b.setEvent(null), n !== !0 && e.preventDefault();
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
handleChange(e, t) {
|
|
980
|
+
let n = t.target, r = t.controller;
|
|
981
|
+
this.updateTarget(n, this.targetAspect, t.bind(r), r);
|
|
982
|
+
}
|
|
2410
983
|
};
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
}
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
defineAsync: Ze
|
|
984
|
+
j.define(L, { aspected: !0 });
|
|
985
|
+
//#endregion
|
|
986
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/compiler.js
|
|
987
|
+
var Ue = (e, t) => `${e}.${t}`, We = {}, R = {
|
|
988
|
+
index: 0,
|
|
989
|
+
node: null
|
|
990
|
+
};
|
|
991
|
+
function Ge(e) {
|
|
992
|
+
e.startsWith("fast-") || s.warn(1204, { name: e });
|
|
993
|
+
}
|
|
994
|
+
var Ke = new Proxy(document.createElement("div"), {
|
|
995
|
+
get(e, t) {
|
|
996
|
+
Ge(t);
|
|
997
|
+
let n = Reflect.get(e, t);
|
|
998
|
+
return r(n) ? n.bind(e) : n;
|
|
999
|
+
},
|
|
1000
|
+
set(e, t, n) {
|
|
1001
|
+
return Ge(t), Reflect.set(e, t, n);
|
|
1002
|
+
}
|
|
1003
|
+
}), qe = class {
|
|
1004
|
+
constructor(e, t, n) {
|
|
1005
|
+
this.fragment = e, this.directives = t, this.policy = n, this.proto = null, this.nodeIds = /* @__PURE__ */ new Set(), this.descriptors = {}, this.factories = [];
|
|
1006
|
+
}
|
|
1007
|
+
addFactory(e, t, n, r, i) {
|
|
1008
|
+
this.nodeIds.has(n) || (this.nodeIds.add(n), this.addTargetDescriptor(t, n, r)), e.id = e.id ?? O(), e.targetNodeId = n, e.targetTagName = i, e.policy = e.policy ?? this.policy, this.factories.push(e);
|
|
1009
|
+
}
|
|
1010
|
+
freeze() {
|
|
1011
|
+
return this.proto = Object.create(null, this.descriptors), this;
|
|
1012
|
+
}
|
|
1013
|
+
addTargetDescriptor(e, t, n) {
|
|
1014
|
+
let r = this.descriptors;
|
|
1015
|
+
if (t === "r" || t === "h" || r[t]) return;
|
|
1016
|
+
if (!r[e]) {
|
|
1017
|
+
let t = e.lastIndexOf("."), n = e.substring(0, t), r = parseInt(e.substring(t + 1));
|
|
1018
|
+
this.addTargetDescriptor(n, e, r);
|
|
1019
|
+
}
|
|
1020
|
+
let i = We[t];
|
|
1021
|
+
if (!i) {
|
|
1022
|
+
let r = `_${t}`;
|
|
1023
|
+
We[t] = i = { get() {
|
|
1024
|
+
return this[r] ?? (this[r] = this[e].childNodes[n]);
|
|
1025
|
+
} };
|
|
1026
|
+
}
|
|
1027
|
+
r[t] = i;
|
|
1028
|
+
}
|
|
1029
|
+
createView(e) {
|
|
1030
|
+
let t = this.fragment.cloneNode(!0), n = Object.create(this.proto);
|
|
1031
|
+
n.r = t, n.h = e ?? Ke;
|
|
1032
|
+
for (let e of this.nodeIds) n[e];
|
|
1033
|
+
return new F(t, this.factories, n);
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
function Je(e, t, n, r, i, a = !1) {
|
|
1037
|
+
let o = n.attributes, s = e.directives;
|
|
1038
|
+
for (let c = 0, l = o.length; c < l; ++c) {
|
|
1039
|
+
let u = o[c], d = u.value, f = k.parse(d, s), p = null;
|
|
1040
|
+
f === null ? a && (p = new L(le(() => d, e.policy)), j.assignAspect(p, u.name)) : p = z.aggregate(f, e.policy), p !== null && (n.removeAttributeNode(u), c--, l--, e.addFactory(p, t, r, i, n.tagName));
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
function Ye(e, t, n, r, a) {
|
|
1044
|
+
let o = k.parse(t.textContent, e.directives);
|
|
1045
|
+
if (o === null) return R.node = t.nextSibling, R.index = a + 1, R;
|
|
1046
|
+
let s, c = s = t;
|
|
1047
|
+
for (let t = 0, l = o.length; t < l; ++t) {
|
|
1048
|
+
let l = o[t];
|
|
1049
|
+
t !== 0 && (a++, r = Ue(n, a), s = c.parentNode.insertBefore(document.createTextNode(""), c.nextSibling)), i(l) ? s.textContent = l : (s.textContent = " ", j.assignAspect(l), e.addFactory(l, n, r, a, null)), c = s;
|
|
1050
|
+
}
|
|
1051
|
+
return R.index = a + 1, R.node = c.nextSibling, R;
|
|
1052
|
+
}
|
|
1053
|
+
function Xe(e, t, n) {
|
|
1054
|
+
let r = 0, i = t.firstChild;
|
|
1055
|
+
for (; i;) {
|
|
1056
|
+
let t = Ze(e, n, i, r);
|
|
1057
|
+
i = t.node, r = t.index;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
function Ze(e, t, n, r) {
|
|
1061
|
+
let i = Ue(t, r);
|
|
1062
|
+
switch (n.nodeType) {
|
|
1063
|
+
case 1:
|
|
1064
|
+
Je(e, t, n, i, r), Xe(e, n, i);
|
|
1065
|
+
break;
|
|
1066
|
+
case 3: return Ye(e, n, t, i, r);
|
|
1067
|
+
case 8:
|
|
1068
|
+
let a = k.parse(n.data, e.directives);
|
|
1069
|
+
a !== null && e.addFactory(z.aggregate(a), t, i, r, null);
|
|
1070
|
+
break;
|
|
1071
|
+
}
|
|
1072
|
+
return R.index = r + 1, R.node = n.nextSibling, R;
|
|
1073
|
+
}
|
|
1074
|
+
function Qe(e, t) {
|
|
1075
|
+
return e && e.nodeType == 8 && k.parse(e.data, t) !== null;
|
|
1076
|
+
}
|
|
1077
|
+
var $e = "TEMPLATE", z = {
|
|
1078
|
+
compile(e, t, n = h.policy) {
|
|
1079
|
+
let r;
|
|
1080
|
+
if (i(e)) {
|
|
1081
|
+
r = document.createElement($e), r.innerHTML = n.createHTML(e);
|
|
1082
|
+
let t = r.content.firstElementChild;
|
|
1083
|
+
t !== null && t.tagName === $e && (r = t);
|
|
1084
|
+
} else r = e;
|
|
1085
|
+
!r.content.firstChild && !r.content.lastChild && r.content.appendChild(document.createComment(""));
|
|
1086
|
+
let a = document.adoptNode(r.content), o = new qe(a, t, n);
|
|
1087
|
+
return Je(o, "", r, "h", 0, !0), (Qe(a.firstChild, t) || a.childNodes.length === 1 && Object.keys(t).length > 0) && a.insertBefore(document.createComment(""), a.firstChild), Xe(o, a, "r"), R.node = null, o.freeze();
|
|
1088
|
+
},
|
|
1089
|
+
setDefaultStrategy(e) {
|
|
1090
|
+
this.compile = e;
|
|
1091
|
+
},
|
|
1092
|
+
aggregate(e, t = h.policy) {
|
|
1093
|
+
if (e.length === 1) return e[0];
|
|
1094
|
+
let n, r = !1, a, o = e.length, s = e.map((e) => i(e) ? () => e : (n = e.sourceAspect || n, r ||= e.dataBinding.isVolatile, a ||= e.dataBinding.policy, e.dataBinding.evaluate)), c = new L(se((e, t) => {
|
|
1095
|
+
let n = "";
|
|
1096
|
+
for (let r = 0; r < o; ++r) n += s[r](e, t);
|
|
1097
|
+
return n;
|
|
1098
|
+
}, a ?? t, r));
|
|
1099
|
+
return j.assignAspect(c, n), c;
|
|
1100
|
+
}
|
|
1101
|
+
}, et = /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/, tt = Object.create(null), B = class {
|
|
1102
|
+
constructor(e, t = tt) {
|
|
1103
|
+
this.html = e, this.factories = t;
|
|
1104
|
+
}
|
|
1105
|
+
createHTML(e) {
|
|
1106
|
+
let t = this.factories;
|
|
1107
|
+
for (let n in t) e(t[n]);
|
|
1108
|
+
return this.html;
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
B.empty = new B(""), j.define(B);
|
|
1112
|
+
function nt(e, t, n, r = j.getForInstance(e)) {
|
|
1113
|
+
if (r.aspected) {
|
|
1114
|
+
let n = et.exec(t);
|
|
1115
|
+
n !== null && j.assignAspect(e, n[2]);
|
|
1116
|
+
}
|
|
1117
|
+
return e.createHTML(n);
|
|
1118
|
+
}
|
|
1119
|
+
var rt = class e {
|
|
1120
|
+
constructor(e, t = {}, n) {
|
|
1121
|
+
this.policy = n, this.result = null, this.html = e, this.factories = t;
|
|
1122
|
+
}
|
|
1123
|
+
compile() {
|
|
1124
|
+
return this.result === null && (this.result = z.compile(this.html, this.factories, this.policy)), this.result;
|
|
1125
|
+
}
|
|
1126
|
+
create(e) {
|
|
1127
|
+
return this.compile().createView(e);
|
|
1128
|
+
}
|
|
1129
|
+
inline() {
|
|
1130
|
+
return new B(i(this.html) ? this.html : this.html.innerHTML, this.factories);
|
|
1131
|
+
}
|
|
1132
|
+
withPolicy(e) {
|
|
1133
|
+
if (this.result) throw s.error(1208);
|
|
1134
|
+
if (this.policy) throw s.error(1207);
|
|
1135
|
+
return this.policy = e, this;
|
|
1136
|
+
}
|
|
1137
|
+
render(e, t, n) {
|
|
1138
|
+
let r = this.create(n);
|
|
1139
|
+
return r.bind(e), r.appendTo(t), r;
|
|
1140
|
+
}
|
|
1141
|
+
static create(t, n, i) {
|
|
1142
|
+
let a = "", o = Object.create(null), s = (e) => {
|
|
1143
|
+
let t = e.id ??= O();
|
|
1144
|
+
return o[t] = e, t;
|
|
1145
|
+
};
|
|
1146
|
+
for (let e = 0, i = t.length - 1; e < i; ++e) {
|
|
1147
|
+
let i = t[e], o = n[e], c;
|
|
1148
|
+
if (a += i, r(o)) o = new L(se(o));
|
|
1149
|
+
else if (o instanceof x) o = new L(o);
|
|
1150
|
+
else if (!(c = j.getForInstance(o))) {
|
|
1151
|
+
let e = o;
|
|
1152
|
+
o = new L(le(() => e));
|
|
1153
|
+
}
|
|
1154
|
+
a += nt(o, i, s, c);
|
|
1155
|
+
}
|
|
1156
|
+
return new e(a + t[t.length - 1], o, i);
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
d(rt);
|
|
1160
|
+
var V = ((e, ...t) => {
|
|
1161
|
+
if (Array.isArray(e) && Array.isArray(e.raw)) return rt.create(e, t);
|
|
1162
|
+
throw s.error(1206);
|
|
2591
1163
|
});
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
}), Ft.add(r), nt.set(o, r);
|
|
2603
|
-
for (const a of n.dependencies)
|
|
2604
|
-
s(a);
|
|
2605
|
-
const c = new Map([
|
|
2606
|
-
[n.type, r],
|
|
2607
|
-
...n.dependencies.map(
|
|
2608
|
-
(a) => [a.type, e(a.name)]
|
|
2609
|
-
)
|
|
2610
|
-
]), l = {
|
|
2611
|
-
tagFor: (a, h) => {
|
|
2612
|
-
if (!c.has(a))
|
|
2613
|
-
throw new Error(
|
|
2614
|
-
`Could not get tag for ${a.name} as it is not a dependency of ${n.name}.`
|
|
2615
|
-
);
|
|
2616
|
-
const u = c.get(a);
|
|
2617
|
-
return h ? u : oe.partial(u);
|
|
2618
|
-
},
|
|
2619
|
-
tagForNonDependency(a) {
|
|
2620
|
-
return e(a);
|
|
2621
|
-
}
|
|
2622
|
-
};
|
|
2623
|
-
p.compose(o, {
|
|
2624
|
-
...n.options,
|
|
2625
|
-
template: si(
|
|
2626
|
-
n.template,
|
|
2627
|
-
l
|
|
2628
|
-
),
|
|
2629
|
-
name: `${t}-${n.name}`
|
|
2630
|
-
}).define();
|
|
2631
|
-
};
|
|
2632
|
-
s(i);
|
|
2633
|
-
}, wi = (i, t, e, s, n) => ({
|
|
2634
|
-
name: i,
|
|
2635
|
-
type: t,
|
|
2636
|
-
template: e,
|
|
2637
|
-
dependencies: s,
|
|
2638
|
-
options: n
|
|
2639
|
-
}), Pt = /* @__PURE__ */ new WeakMap(), fe = (i) => {
|
|
2640
|
-
let t = Pt.get(i);
|
|
2641
|
-
return t || (t = [], Pt.set(i, t)), t;
|
|
2642
|
-
}, Si = (i, t) => {
|
|
2643
|
-
fe(i).push(t);
|
|
2644
|
-
}, ni = (i, t) => {
|
|
2645
|
-
fe(i).forEach((e) => e(i, t));
|
|
2646
|
-
}, ri = (i) => i === "delegate", Dt = (i) => `vvd${i.charAt(0).toUpperCase()}${i.slice(1)}`, pe = (i, t) => {
|
|
2647
|
-
if (ri(i._vividAriaBehaviour)) {
|
|
2648
|
-
const e = i[t];
|
|
2649
|
-
i[`_${t}`] = null, i.removeAttribute(ot(t)), i[`_${t}`] = e, i[t] !== null ? i.dataset[Dt(t)] = i[t] : delete i.dataset[Dt(t)];
|
|
2650
|
-
} else
|
|
2651
|
-
T.setAttribute(
|
|
2652
|
-
i,
|
|
2653
|
-
ot(t),
|
|
2654
|
-
i[t]
|
|
2655
|
-
);
|
|
2656
|
-
}, G = /* @__PURE__ */ new WeakMap(), ai = (i, t) => {
|
|
2657
|
-
const e = G.get(i);
|
|
2658
|
-
e ? e.add(t) : G.set(i, /* @__PURE__ */ new Set([t]));
|
|
2659
|
-
}, oi = (i, t) => {
|
|
2660
|
-
i.isConnected ? pe(i, t) : ai(i, t);
|
|
2661
|
-
}, li = (i) => {
|
|
2662
|
-
const t = G.get(i);
|
|
2663
|
-
if (t) {
|
|
2664
|
-
for (const e of t)
|
|
2665
|
-
pe(i, e);
|
|
2666
|
-
G.delete(i);
|
|
2667
|
-
}
|
|
2668
|
-
}, Ht = [
|
|
2669
|
-
"role",
|
|
2670
|
-
"ariaAtomic",
|
|
2671
|
-
"ariaAutoComplete",
|
|
2672
|
-
"ariaBusy",
|
|
2673
|
-
"ariaChecked",
|
|
2674
|
-
"ariaColCount",
|
|
2675
|
-
"ariaColIndex",
|
|
2676
|
-
"ariaColIndexText",
|
|
2677
|
-
"ariaColSpan",
|
|
2678
|
-
"ariaCurrent",
|
|
2679
|
-
"ariaDescription",
|
|
2680
|
-
"ariaDisabled",
|
|
2681
|
-
"ariaExpanded",
|
|
2682
|
-
"ariaHasPopup",
|
|
2683
|
-
"ariaHidden",
|
|
2684
|
-
"ariaInvalid",
|
|
2685
|
-
"ariaKeyShortcuts",
|
|
2686
|
-
"ariaLabel",
|
|
2687
|
-
"ariaLevel",
|
|
2688
|
-
"ariaLive",
|
|
2689
|
-
"ariaModal",
|
|
2690
|
-
"ariaMultiLine",
|
|
2691
|
-
"ariaMultiSelectable",
|
|
2692
|
-
"ariaOrientation",
|
|
2693
|
-
"ariaPlaceholder",
|
|
2694
|
-
"ariaPosInSet",
|
|
2695
|
-
"ariaPressed",
|
|
2696
|
-
"ariaReadOnly",
|
|
2697
|
-
"ariaRequired",
|
|
2698
|
-
"ariaRoleDescription",
|
|
2699
|
-
"ariaRowCount",
|
|
2700
|
-
"ariaRowIndex",
|
|
2701
|
-
"ariaRowIndexText",
|
|
2702
|
-
"ariaRowSpan",
|
|
2703
|
-
"ariaSelected",
|
|
2704
|
-
"ariaSetSize",
|
|
2705
|
-
"ariaSort",
|
|
2706
|
-
"ariaValueMax",
|
|
2707
|
-
"ariaValueMin",
|
|
2708
|
-
"ariaValueNow",
|
|
2709
|
-
"ariaValueText",
|
|
2710
|
-
"ariaRelevant"
|
|
2711
|
-
// Non-standard
|
|
2712
|
-
], ot = (i) => i.replace("aria", "aria-").toLowerCase(), ci = (i) => {
|
|
2713
|
-
class t extends i {
|
|
2714
|
-
constructor(...s) {
|
|
2715
|
-
super(...s), this._vividAriaBehaviour = "default";
|
|
2716
|
-
for (const n of Ht)
|
|
2717
|
-
this[`_${n}`] = null;
|
|
2718
|
-
}
|
|
2719
|
-
connectedCallback() {
|
|
2720
|
-
super.connectedCallback(), li(this);
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
for (const e of Ht)
|
|
2724
|
-
Ue({
|
|
2725
|
-
attribute: ot(e),
|
|
2726
|
-
mode: "fromView"
|
|
2727
|
-
})(t.prototype, e), t.prototype[`${e}Changed`] = function() {
|
|
2728
|
-
oi(this, e), this._vividAriaBehaviour !== "default" && ni(this, e);
|
|
2729
|
-
};
|
|
2730
|
-
return t;
|
|
1164
|
+
V.partial = (e) => new B(e);
|
|
1165
|
+
//#endregion
|
|
1166
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/attributes.js
|
|
1167
|
+
var it = "boolean", at = "reflect", ot = Object.freeze({ locate: u() }), st = {
|
|
1168
|
+
toView(e) {
|
|
1169
|
+
return e ? "true" : "false";
|
|
1170
|
+
},
|
|
1171
|
+
fromView(e) {
|
|
1172
|
+
return !(e == null || e === "false" || e === !1 || e === 0);
|
|
1173
|
+
}
|
|
2731
1174
|
};
|
|
2732
|
-
function
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
},
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
1175
|
+
function ct(e) {
|
|
1176
|
+
if (e == null) return null;
|
|
1177
|
+
let t = e * 1;
|
|
1178
|
+
return isNaN(t) ? null : t;
|
|
1179
|
+
}
|
|
1180
|
+
var lt = {
|
|
1181
|
+
toView(e) {
|
|
1182
|
+
let t = ct(e);
|
|
1183
|
+
return t && t.toString();
|
|
1184
|
+
},
|
|
1185
|
+
fromView: ct
|
|
1186
|
+
}, ut = class e {
|
|
1187
|
+
constructor(e, t, n = t.toLowerCase(), r = at, i) {
|
|
1188
|
+
this.guards = /* @__PURE__ */ new Set(), this.Owner = e, this.name = t, this.attribute = n, this.mode = r, this.converter = i, this.fieldName = `_${t}`, this.callbackName = `${t}Changed`, this.hasCallback = this.callbackName in e.prototype, r === it && i === void 0 && (this.converter = st);
|
|
1189
|
+
}
|
|
1190
|
+
setValue(e, t) {
|
|
1191
|
+
let n = e[this.fieldName], r = this.converter;
|
|
1192
|
+
r !== void 0 && (t = r.fromView(t)), n !== t && (e[this.fieldName] = t, this.tryReflectToAttribute(e), this.hasCallback && e[this.callbackName](n, t), e.$fastController.notify(this.name));
|
|
1193
|
+
}
|
|
1194
|
+
getValue(e) {
|
|
1195
|
+
return y.track(e, this.name), e[this.fieldName];
|
|
1196
|
+
}
|
|
1197
|
+
onAttributeChangedCallback(e, t) {
|
|
1198
|
+
this.guards.has(e) || (this.guards.add(e), this.setValue(e, t), this.guards.delete(e));
|
|
1199
|
+
}
|
|
1200
|
+
tryReflectToAttribute(e) {
|
|
1201
|
+
let t = this.mode, n = this.guards;
|
|
1202
|
+
n.has(e) || t === "fromView" || g.enqueue(() => {
|
|
1203
|
+
n.add(e);
|
|
1204
|
+
let r = e[this.fieldName];
|
|
1205
|
+
switch (t) {
|
|
1206
|
+
case at:
|
|
1207
|
+
let t = this.converter;
|
|
1208
|
+
h.setAttribute(e, this.attribute, t === void 0 ? r : t.toView(r));
|
|
1209
|
+
break;
|
|
1210
|
+
case it:
|
|
1211
|
+
h.setBooleanAttribute(e, this.attribute, r);
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
n.delete(e);
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
static collect(t, ...n) {
|
|
1218
|
+
let r = [];
|
|
1219
|
+
n.push(ot.locate(t));
|
|
1220
|
+
for (let a = 0, o = n.length; a < o; ++a) {
|
|
1221
|
+
let o = n[a];
|
|
1222
|
+
if (o !== void 0) for (let n = 0, a = o.length; n < a; ++n) {
|
|
1223
|
+
let a = o[n];
|
|
1224
|
+
i(a) ? r.push(new e(t, a)) : r.push(new e(t, a.property, a.attribute, a.mode, a.converter));
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
return r;
|
|
1228
|
+
}
|
|
2772
1229
|
};
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
1230
|
+
function dt(e, t) {
|
|
1231
|
+
let n;
|
|
1232
|
+
function r(e, t) {
|
|
1233
|
+
arguments.length > 1 && (n.property = t), ot.locate(e.constructor).push(n);
|
|
1234
|
+
}
|
|
1235
|
+
if (arguments.length > 1) {
|
|
1236
|
+
n = {}, r(e, t);
|
|
1237
|
+
return;
|
|
1238
|
+
}
|
|
1239
|
+
return n = e === void 0 ? {} : e, r;
|
|
1240
|
+
}
|
|
1241
|
+
//#endregion
|
|
1242
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/fast-definitions.js
|
|
1243
|
+
var ft = function(e, t, n, r) {
|
|
1244
|
+
function i(e) {
|
|
1245
|
+
return e instanceof n ? e : new n(function(t) {
|
|
1246
|
+
t(e);
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
return new (n ||= Promise)(function(n, a) {
|
|
1250
|
+
function o(e) {
|
|
1251
|
+
try {
|
|
1252
|
+
c(r.next(e));
|
|
1253
|
+
} catch (e) {
|
|
1254
|
+
a(e);
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
function s(e) {
|
|
1258
|
+
try {
|
|
1259
|
+
c(r.throw(e));
|
|
1260
|
+
} catch (e) {
|
|
1261
|
+
a(e);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
function c(e) {
|
|
1265
|
+
e.done ? n(e.value) : i(e.value).then(o, s);
|
|
1266
|
+
}
|
|
1267
|
+
c((r = r.apply(e, t || [])).next());
|
|
1268
|
+
});
|
|
1269
|
+
}, pt = { mode: "open" }, mt = {}, H = /* @__PURE__ */ new Set(), U = s.getById(n.elementRegistry, () => l()), ht = { deferAndHydrate: "defer-and-hydrate" }, W = class e {
|
|
1270
|
+
constructor(t, n = t.definition) {
|
|
1271
|
+
this.platformDefined = !1, i(n) && (n = { name: n }), this.type = t, this.name = n.name, this.template = n.template, this.templateOptions = n.templateOptions, this.registry = n.registry ?? customElements;
|
|
1272
|
+
let r = t.prototype, a = ut.collect(t, n.attributes), o = Array(a.length), s = {}, c = {};
|
|
1273
|
+
for (let e = 0, t = a.length; e < t; ++e) {
|
|
1274
|
+
let t = a[e];
|
|
1275
|
+
o[e] = t.attribute, s[t.name] = t, c[t.attribute] = t, y.defineProperty(r, t);
|
|
1276
|
+
}
|
|
1277
|
+
Reflect.defineProperty(t, "observedAttributes", {
|
|
1278
|
+
value: o,
|
|
1279
|
+
enumerable: !0
|
|
1280
|
+
}), this.attributes = a, this.propertyLookup = s, this.attributeLookup = c, this.shadowOptions = n.shadowOptions === void 0 ? pt : n.shadowOptions === null ? void 0 : Object.assign(Object.assign({}, pt), n.shadowOptions), this.elementOptions = n.elementOptions === void 0 ? mt : Object.assign(Object.assign({}, mt), n.elementOptions), this.styles = S.normalize(n.styles), U.register(this), y.defineProperty(e.isRegistered, this.name), e.isRegistered[this.name] = this.type;
|
|
1281
|
+
}
|
|
1282
|
+
get isDefined() {
|
|
1283
|
+
return this.platformDefined;
|
|
1284
|
+
}
|
|
1285
|
+
define(e = this.registry) {
|
|
1286
|
+
var t, n;
|
|
1287
|
+
let r = this.type;
|
|
1288
|
+
return e.get(this.name) || (this.platformDefined = !0, e.define(this.name, r, this.elementOptions), (n = (t = this.lifecycleCallbacks)?.elementDidDefine) == null || n.call(t, this.name)), this;
|
|
1289
|
+
}
|
|
1290
|
+
static compose(t, n) {
|
|
1291
|
+
return H.has(t) || U.getByType(t) ? new e(class extends t {}, n) : new e(t, n);
|
|
1292
|
+
}
|
|
1293
|
+
static registerBaseType(e) {
|
|
1294
|
+
H.add(e);
|
|
1295
|
+
}
|
|
1296
|
+
static composeAsync(t, n) {
|
|
1297
|
+
return new Promise((r) => {
|
|
1298
|
+
(H.has(t) || U.getByType(t)) && r(new e(class extends t {}, n));
|
|
1299
|
+
let i = new e(t, n);
|
|
1300
|
+
y.getNotifier(i).subscribe({ handleChange: () => {
|
|
1301
|
+
var e, t;
|
|
1302
|
+
(t = (e = i.lifecycleCallbacks)?.templateDidUpdate) == null || t.call(e, i.name), r(i);
|
|
1303
|
+
} }, "template");
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1307
|
+
W.isRegistered = {}, W.getByType = U.getByType, W.getForInstance = U.getForInstance, W.registerAsync = (e) => ft(void 0, void 0, void 0, function* () {
|
|
1308
|
+
return new Promise((t) => {
|
|
1309
|
+
W.isRegistered[e] && t(W.isRegistered[e]), y.getNotifier(W.isRegistered).subscribe({ handleChange: () => t(W.isRegistered[e]) }, e);
|
|
1310
|
+
});
|
|
1311
|
+
}), y.defineProperty(W.prototype, "template");
|
|
1312
|
+
//#endregion
|
|
1313
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/utilities.js
|
|
1314
|
+
var gt = class extends MutationObserver {
|
|
1315
|
+
constructor(e) {
|
|
1316
|
+
function t(e) {
|
|
1317
|
+
this.callback.call(null, e.filter((e) => this.observedNodes.has(e.target)));
|
|
1318
|
+
}
|
|
1319
|
+
super(t), this.callback = e, this.observedNodes = /* @__PURE__ */ new Set();
|
|
1320
|
+
}
|
|
1321
|
+
observe(e, t) {
|
|
1322
|
+
this.observedNodes.add(e), super.observe(e, t);
|
|
1323
|
+
}
|
|
1324
|
+
unobserve(e) {
|
|
1325
|
+
this.observedNodes.delete(e), this.observedNodes.size < 1 && this.disconnect();
|
|
1326
|
+
}
|
|
1327
|
+
}, _t = Object.freeze({ create(e) {
|
|
1328
|
+
let t = [], n = {}, r = null, i = !1;
|
|
1329
|
+
return {
|
|
1330
|
+
source: e,
|
|
1331
|
+
context: b.default,
|
|
1332
|
+
targets: n,
|
|
1333
|
+
get isBound() {
|
|
1334
|
+
return i;
|
|
1335
|
+
},
|
|
1336
|
+
addBehaviorFactory(e, t) {
|
|
1337
|
+
let n = e;
|
|
1338
|
+
n.id = n.id ?? O(), n.targetNodeId = n.targetNodeId ?? O(), n.targetTagName = t.tagName ?? null, n.policy = n.policy ?? h.policy, this.addTarget(n.targetNodeId, t), this.addBehavior(n.createBehavior());
|
|
1339
|
+
},
|
|
1340
|
+
addTarget(e, t) {
|
|
1341
|
+
n[e] = t;
|
|
1342
|
+
},
|
|
1343
|
+
addBehavior(e) {
|
|
1344
|
+
t.push(e), i && e.bind(this);
|
|
1345
|
+
},
|
|
1346
|
+
onUnbind(e) {
|
|
1347
|
+
r === null && (r = []), r.push(e);
|
|
1348
|
+
},
|
|
1349
|
+
connectedCallback(e) {
|
|
1350
|
+
i || (i = !0, t.forEach((e) => e.bind(this)));
|
|
1351
|
+
},
|
|
1352
|
+
disconnectedCallback(e) {
|
|
1353
|
+
i && (i = !1, r !== null && r.forEach((e) => e.unbind(this)));
|
|
1354
|
+
}
|
|
1355
|
+
};
|
|
1356
|
+
} }), vt = {
|
|
1357
|
+
bubbles: !0,
|
|
1358
|
+
composed: !0,
|
|
1359
|
+
cancelable: !0
|
|
1360
|
+
}, G = "isConnected", yt = /* @__PURE__ */ new WeakMap();
|
|
1361
|
+
function K(e) {
|
|
1362
|
+
return e.shadowRoot ?? yt.get(e) ?? null;
|
|
1363
|
+
}
|
|
1364
|
+
var bt, q = class e extends ne {
|
|
1365
|
+
constructor(e, t) {
|
|
1366
|
+
super(e), this.boundObservables = null, this.needsInitialization = !0, this.hasExistingShadowRoot = !1, this._template = null, this.stage = 3, this.guardBehaviorConnection = !1, this.behaviors = null, this.behaviorsConnected = !1, this._mainStyles = null, this.$fastController = this, this.view = null, this.source = e, this.definition = t, this.shadowOptions = t.shadowOptions;
|
|
1367
|
+
let n = y.getAccessors(e);
|
|
1368
|
+
if (n.length > 0) {
|
|
1369
|
+
let t = this.boundObservables = Object.create(null);
|
|
1370
|
+
for (let r = 0, i = n.length; r < i; ++r) {
|
|
1371
|
+
let i = n[r].name, a = e[i];
|
|
1372
|
+
a !== void 0 && (delete e[i], t[i] = a);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
get isConnected() {
|
|
1377
|
+
return y.track(this, G), this.stage === 1;
|
|
1378
|
+
}
|
|
1379
|
+
get context() {
|
|
1380
|
+
return this.view?.context ?? b.default;
|
|
1381
|
+
}
|
|
1382
|
+
get isBound() {
|
|
1383
|
+
return this.view?.isBound ?? !1;
|
|
1384
|
+
}
|
|
1385
|
+
get sourceLifetime() {
|
|
1386
|
+
return this.view?.sourceLifetime;
|
|
1387
|
+
}
|
|
1388
|
+
get template() {
|
|
1389
|
+
if (this._template === null) {
|
|
1390
|
+
let e = this.definition;
|
|
1391
|
+
this.source.resolveTemplate ? this._template = this.source.resolveTemplate() : e.template && (this._template = e.template ?? null);
|
|
1392
|
+
}
|
|
1393
|
+
return this._template;
|
|
1394
|
+
}
|
|
1395
|
+
set template(e) {
|
|
1396
|
+
this._template !== e && (this._template = e, this.needsInitialization || this.renderTemplate(e));
|
|
1397
|
+
}
|
|
1398
|
+
get shadowOptions() {
|
|
1399
|
+
return this._shadowRootOptions;
|
|
1400
|
+
}
|
|
1401
|
+
set shadowOptions(e) {
|
|
1402
|
+
if (this._shadowRootOptions === void 0 && e !== void 0) {
|
|
1403
|
+
this._shadowRootOptions = e;
|
|
1404
|
+
let t = this.source.shadowRoot;
|
|
1405
|
+
t ? this.hasExistingShadowRoot = !0 : (t = this.source.attachShadow(e), e.mode === "closed" && yt.set(this.source, t));
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
get mainStyles() {
|
|
1409
|
+
if (this._mainStyles === null) {
|
|
1410
|
+
let e = this.definition;
|
|
1411
|
+
this.source.resolveStyles ? this._mainStyles = this.source.resolveStyles() : e.styles && (this._mainStyles = e.styles ?? null);
|
|
1412
|
+
}
|
|
1413
|
+
return this._mainStyles;
|
|
1414
|
+
}
|
|
1415
|
+
set mainStyles(e) {
|
|
1416
|
+
this._mainStyles !== e && (this._mainStyles !== null && this.removeStyles(this._mainStyles), this._mainStyles = e, this.needsInitialization || this.addStyles(e));
|
|
1417
|
+
}
|
|
1418
|
+
onUnbind(e) {
|
|
1419
|
+
var t;
|
|
1420
|
+
(t = this.view) == null || t.onUnbind(e);
|
|
1421
|
+
}
|
|
1422
|
+
addBehavior(e) {
|
|
1423
|
+
let t = this.behaviors ??= /* @__PURE__ */ new Map(), n = t.get(e) ?? 0;
|
|
1424
|
+
n === 0 ? (t.set(e, 1), e.addedCallback && e.addedCallback(this), e.connectedCallback && !this.guardBehaviorConnection && (this.stage === 1 || this.stage === 0) && e.connectedCallback(this)) : t.set(e, n + 1);
|
|
1425
|
+
}
|
|
1426
|
+
removeBehavior(e, t = !1) {
|
|
1427
|
+
let n = this.behaviors;
|
|
1428
|
+
if (n === null) return;
|
|
1429
|
+
let r = n.get(e);
|
|
1430
|
+
r !== void 0 && (r === 1 || t ? (n.delete(e), e.disconnectedCallback && this.stage !== 3 && e.disconnectedCallback(this), e.removedCallback && e.removedCallback(this)) : n.set(e, r - 1));
|
|
1431
|
+
}
|
|
1432
|
+
addStyles(e) {
|
|
1433
|
+
if (!e) return;
|
|
1434
|
+
let t = this.source;
|
|
1435
|
+
if (e instanceof HTMLElement) (K(t) ?? this.source).append(e);
|
|
1436
|
+
else if (!e.isAttachedTo(t)) {
|
|
1437
|
+
let n = e.behaviors;
|
|
1438
|
+
if (e.addStylesTo(t), n !== null) for (let e = 0, t = n.length; e < t; ++e) this.addBehavior(n[e]);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
removeStyles(e) {
|
|
1442
|
+
if (!e) return;
|
|
1443
|
+
let t = this.source;
|
|
1444
|
+
if (e instanceof HTMLElement) (K(t) ?? t).removeChild(e);
|
|
1445
|
+
else if (e.isAttachedTo(t)) {
|
|
1446
|
+
let n = e.behaviors;
|
|
1447
|
+
if (e.removeStylesFrom(t), n !== null) for (let e = 0, t = n.length; e < t; ++e) this.removeBehavior(n[e]);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
connect() {
|
|
1451
|
+
this.stage === 3 && (this.stage = 0, this.bindObservables(), this.connectBehaviors(), this.needsInitialization ? (this.renderTemplate(this.template), this.addStyles(this.mainStyles), this.needsInitialization = !1) : this.view !== null && this.view.bind(this.source), this.stage = 1, y.notify(this, G));
|
|
1452
|
+
}
|
|
1453
|
+
bindObservables() {
|
|
1454
|
+
if (this.boundObservables !== null) {
|
|
1455
|
+
let e = this.source, t = this.boundObservables, n = Object.keys(t);
|
|
1456
|
+
for (let r = 0, i = n.length; r < i; ++r) {
|
|
1457
|
+
let i = n[r];
|
|
1458
|
+
e[i] = t[i];
|
|
1459
|
+
}
|
|
1460
|
+
this.boundObservables = null;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
connectBehaviors() {
|
|
1464
|
+
if (this.behaviorsConnected === !1) {
|
|
1465
|
+
let e = this.behaviors;
|
|
1466
|
+
if (e !== null) {
|
|
1467
|
+
this.guardBehaviorConnection = !0;
|
|
1468
|
+
for (let t of e.keys()) t.connectedCallback && t.connectedCallback(this);
|
|
1469
|
+
this.guardBehaviorConnection = !1;
|
|
1470
|
+
}
|
|
1471
|
+
this.behaviorsConnected = !0;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
disconnectBehaviors() {
|
|
1475
|
+
if (this.behaviorsConnected === !0) {
|
|
1476
|
+
let e = this.behaviors;
|
|
1477
|
+
if (e !== null) for (let t of e.keys()) t.disconnectedCallback && t.disconnectedCallback(this);
|
|
1478
|
+
this.behaviorsConnected = !1;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
disconnect() {
|
|
1482
|
+
this.stage === 1 && (this.stage = 2, y.notify(this, G), this.view !== null && this.view.unbind(), this.disconnectBehaviors(), this.stage = 3);
|
|
1483
|
+
}
|
|
1484
|
+
onAttributeChangedCallback(e, t, n) {
|
|
1485
|
+
let r = this.definition.attributeLookup[e];
|
|
1486
|
+
r !== void 0 && r.onAttributeChangedCallback(this.source, n);
|
|
1487
|
+
}
|
|
1488
|
+
emit(e, t, n) {
|
|
1489
|
+
return this.stage === 1 ? this.source.dispatchEvent(new CustomEvent(e, Object.assign(Object.assign({ detail: t }, vt), n))) : !1;
|
|
1490
|
+
}
|
|
1491
|
+
renderTemplate(e) {
|
|
1492
|
+
let t = this.source, n = K(t) ?? t;
|
|
1493
|
+
if (this.view !== null) this.view.dispose(), this.view = null;
|
|
1494
|
+
else if (!this.needsInitialization || this.hasExistingShadowRoot) {
|
|
1495
|
+
this.hasExistingShadowRoot = !1;
|
|
1496
|
+
for (let e = n.firstChild; e !== null; e = n.firstChild) n.removeChild(e);
|
|
1497
|
+
}
|
|
1498
|
+
e && (this.view = e.render(t, n, t), this.view.sourceLifetime = v.coupled);
|
|
1499
|
+
}
|
|
1500
|
+
static forCustomElement(t, n = !1) {
|
|
1501
|
+
let r = t.$fastController;
|
|
1502
|
+
if (r !== void 0 && !n) return r;
|
|
1503
|
+
let i = W.getForInstance(t);
|
|
1504
|
+
if (i === void 0) throw s.error(1401);
|
|
1505
|
+
return y.getNotifier(i).subscribe({ handleChange: () => {
|
|
1506
|
+
e.forCustomElement(t, !0), t.$fastController.connect();
|
|
1507
|
+
} }, "template"), y.getNotifier(i).subscribe({ handleChange: () => {
|
|
1508
|
+
e.forCustomElement(t, !0), t.$fastController.connect();
|
|
1509
|
+
} }, "shadowOptions"), t.$fastController = new bt(t, i);
|
|
1510
|
+
}
|
|
1511
|
+
static setStrategy(e) {
|
|
1512
|
+
bt = e;
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
d(q), q.setStrategy(q);
|
|
1516
|
+
function J(e) {
|
|
1517
|
+
return "adoptedStyleSheets" in e ? e : K(e) ?? e.getRootNode();
|
|
1518
|
+
}
|
|
1519
|
+
var xt = class e {
|
|
1520
|
+
constructor(t) {
|
|
1521
|
+
let n = e.styleSheetCache;
|
|
1522
|
+
this.sheets = t.map((e) => {
|
|
1523
|
+
if (e instanceof CSSStyleSheet) return e;
|
|
1524
|
+
let t = n.get(e);
|
|
1525
|
+
return t === void 0 && (t = new CSSStyleSheet(), t.replaceSync(e), n.set(e, t)), t;
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
addStylesTo(e) {
|
|
1529
|
+
Et(J(e), this.sheets);
|
|
1530
|
+
}
|
|
1531
|
+
removeStylesFrom(e) {
|
|
1532
|
+
Dt(J(e), this.sheets);
|
|
1533
|
+
}
|
|
1534
|
+
};
|
|
1535
|
+
xt.styleSheetCache = /* @__PURE__ */ new Map();
|
|
1536
|
+
var St = 0, Ct = () => `fast-${++St}`;
|
|
1537
|
+
function wt(e) {
|
|
1538
|
+
return e === document ? document.body : e;
|
|
1539
|
+
}
|
|
1540
|
+
var Tt = class {
|
|
1541
|
+
constructor(e) {
|
|
1542
|
+
this.styles = e, this.styleClass = Ct();
|
|
1543
|
+
}
|
|
1544
|
+
addStylesTo(e) {
|
|
1545
|
+
e = wt(J(e));
|
|
1546
|
+
let t = this.styles, n = this.styleClass;
|
|
1547
|
+
for (let r = 0; r < t.length; r++) {
|
|
1548
|
+
let i = document.createElement("style");
|
|
1549
|
+
i.innerHTML = t[r], i.className = n, e.append(i);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
removeStylesFrom(e) {
|
|
1553
|
+
e = wt(J(e));
|
|
1554
|
+
let t = e.querySelectorAll(`.${this.styleClass}`);
|
|
1555
|
+
for (let n = 0, r = t.length; n < r; ++n) e.removeChild(t[n]);
|
|
1556
|
+
}
|
|
1557
|
+
}, Et = (e, t) => {
|
|
1558
|
+
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ...t];
|
|
1559
|
+
}, Dt = (e, t) => {
|
|
1560
|
+
e.adoptedStyleSheets = e.adoptedStyleSheets.filter((e) => t.indexOf(e) === -1);
|
|
1561
|
+
};
|
|
1562
|
+
if (S.supportsAdoptedStyleSheets) {
|
|
1563
|
+
try {
|
|
1564
|
+
document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(), Et = (e, t) => {
|
|
1565
|
+
e.adoptedStyleSheets.push(...t);
|
|
1566
|
+
}, Dt = (e, t) => {
|
|
1567
|
+
for (let n of t) {
|
|
1568
|
+
let t = e.adoptedStyleSheets.indexOf(n);
|
|
1569
|
+
t !== -1 && e.adoptedStyleSheets.splice(t, 1);
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1572
|
+
} catch {}
|
|
1573
|
+
S.setDefaultStrategy(xt);
|
|
1574
|
+
} else S.setDefaultStrategy(Tt);
|
|
1575
|
+
var Ot = "defer-hydration", kt = "needs-hydration", Y = class e extends q {
|
|
1576
|
+
get shadowOptions() {
|
|
1577
|
+
return super.shadowOptions;
|
|
1578
|
+
}
|
|
1579
|
+
set shadowOptions(e) {
|
|
1580
|
+
super.shadowOptions = e, (this.hasExistingShadowRoot || e !== void 0 && !this.template) && this.definition.templateOptions === ht.deferAndHydrate && (this.source.toggleAttribute(Ot, !0), this.source.toggleAttribute(kt, !0));
|
|
1581
|
+
}
|
|
1582
|
+
addHydratingInstance() {
|
|
1583
|
+
if (!e.hydratingInstances) return;
|
|
1584
|
+
let t = this.definition.name, n = e.hydratingInstances.get(t);
|
|
1585
|
+
n || (n = /* @__PURE__ */ new Set(), e.hydratingInstances.set(t, n)), n.add(this.source);
|
|
1586
|
+
}
|
|
1587
|
+
static config(t) {
|
|
1588
|
+
return e.lifecycleCallbacks = t, this;
|
|
1589
|
+
}
|
|
1590
|
+
static hydrationObserverHandler(t) {
|
|
1591
|
+
for (let n of t) n.target.hasAttribute("defer-hydration") || (e.hydrationObserver.unobserve(n.target), n.target.$fastController.connect());
|
|
1592
|
+
}
|
|
1593
|
+
static checkHydrationComplete(t) {
|
|
1594
|
+
var n, r;
|
|
1595
|
+
if (t.didTimeout) {
|
|
1596
|
+
e.idleCallbackId = requestIdleCallback(e.checkHydrationComplete, { timeout: 50 });
|
|
1597
|
+
return;
|
|
1598
|
+
}
|
|
1599
|
+
e.hydratingInstances?.size === 0 && ((r = (n = e.lifecycleCallbacks)?.hydrationComplete) == null || r.call(n), q.setStrategy(q));
|
|
1600
|
+
}
|
|
1601
|
+
connect() {
|
|
1602
|
+
var t, n, r;
|
|
1603
|
+
if (this.needsHydration = this.needsHydration ?? this.source.hasAttribute(kt), this.needsHydration && ((n = (t = e.lifecycleCallbacks)?.elementWillHydrate) == null || n.call(t, this.definition.name)), this.source.hasAttribute("defer-hydration")) {
|
|
1604
|
+
this.addHydratingInstance(), e.hydrationObserver.observe(this.source, { attributeFilter: [Ot] });
|
|
1605
|
+
return;
|
|
1606
|
+
}
|
|
1607
|
+
if (!this.needsHydration) {
|
|
1608
|
+
super.connect(), this.removeHydratingInstance();
|
|
1609
|
+
return;
|
|
1610
|
+
}
|
|
1611
|
+
if (this.stage === 3) {
|
|
1612
|
+
if (this.stage = 0, this.bindObservables(), this.connectBehaviors(), this.template) if (T(this.template)) {
|
|
1613
|
+
let e = this.source, t = K(e) ?? e, n = t.firstChild, i = t.lastChild;
|
|
1614
|
+
e.shadowRoot === null && (C.isElementBoundaryStartMarker(n) && (n.data = "", n = n.nextSibling), C.isElementBoundaryEndMarker(i) && (i.data = "", i = i.previousSibling)), this.view = this.template.hydrate(n, i, e), (r = this.view) == null || r.bind(this.source);
|
|
1615
|
+
} else this.renderTemplate(this.template);
|
|
1616
|
+
this.addStyles(this.mainStyles), this.stage = 1, this.source.removeAttribute(kt), this.needsInitialization = this.needsHydration = !1, this.removeHydratingInstance(), y.notify(this, G);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
removeHydratingInstance() {
|
|
1620
|
+
var t, n;
|
|
1621
|
+
if (!e.hydratingInstances) return;
|
|
1622
|
+
let r = this.definition.name, i = e.hydratingInstances.get(r);
|
|
1623
|
+
(n = (t = e.lifecycleCallbacks)?.elementDidHydrate) == null || n.call(t, this.definition.name), i && (i.delete(this.source), i.size || e.hydratingInstances.delete(r), e.idleCallbackId && cancelIdleCallback(e.idleCallbackId), e.idleCallbackId = requestIdleCallback(e.checkHydrationComplete, { timeout: 50 }));
|
|
1624
|
+
}
|
|
1625
|
+
disconnect() {
|
|
1626
|
+
super.disconnect(), e.hydrationObserver.unobserve(this.source);
|
|
1627
|
+
}
|
|
1628
|
+
static install() {
|
|
1629
|
+
q.setStrategy(e);
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
Y.hydrationObserver = new gt(Y.hydrationObserverHandler), Y.idleCallbackId = null, Y.hydratingInstances = /* @__PURE__ */ new Map();
|
|
1633
|
+
//#endregion
|
|
1634
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/fast-element.js
|
|
1635
|
+
function At(e) {
|
|
1636
|
+
let t = class extends e {
|
|
1637
|
+
constructor() {
|
|
1638
|
+
super(), q.forCustomElement(this);
|
|
1639
|
+
}
|
|
1640
|
+
$emit(e, t, n) {
|
|
1641
|
+
return this.$fastController.emit(e, t, n);
|
|
1642
|
+
}
|
|
1643
|
+
connectedCallback() {
|
|
1644
|
+
this.$fastController.connect();
|
|
1645
|
+
}
|
|
1646
|
+
disconnectedCallback() {
|
|
1647
|
+
this.$fastController.disconnect();
|
|
1648
|
+
}
|
|
1649
|
+
attributeChangedCallback(e, t, n) {
|
|
1650
|
+
this.$fastController.onAttributeChangedCallback(e, t, n);
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
return W.registerBaseType(t), t;
|
|
1654
|
+
}
|
|
1655
|
+
function jt(e, t) {
|
|
1656
|
+
return r(e) ? W.compose(e, t) : W.compose(this, e);
|
|
1657
|
+
}
|
|
1658
|
+
function Mt(e, t) {
|
|
1659
|
+
return r(e) ? new Promise((n) => {
|
|
1660
|
+
W.composeAsync(e, t).then((e) => {
|
|
1661
|
+
n(e);
|
|
1662
|
+
});
|
|
1663
|
+
}).then((e) => e.define().type) : new Promise((t) => {
|
|
1664
|
+
W.composeAsync(this, e).then((e) => {
|
|
1665
|
+
t(e);
|
|
1666
|
+
});
|
|
1667
|
+
}).then((e) => e.define().type);
|
|
1668
|
+
}
|
|
1669
|
+
function Nt(e, t) {
|
|
1670
|
+
return r(e) ? W.compose(e, t).define().type : W.compose(this, e).define().type;
|
|
1671
|
+
}
|
|
1672
|
+
function Pt(e) {
|
|
1673
|
+
return At(e);
|
|
1674
|
+
}
|
|
1675
|
+
var Ft = Object.assign(At(HTMLElement), {
|
|
1676
|
+
from: Pt,
|
|
1677
|
+
define: Nt,
|
|
1678
|
+
compose: jt,
|
|
1679
|
+
defineAsync: Mt
|
|
1680
|
+
});
|
|
1681
|
+
//#endregion
|
|
1682
|
+
//#region src/shared/design-system/createRegisterFunction.ts
|
|
1683
|
+
function It(e, t) {
|
|
1684
|
+
return e instanceof Function ? e(t) : e;
|
|
1685
|
+
}
|
|
1686
|
+
var Lt = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Map(), Rt = (e) => (t = "vwc") => {
|
|
1687
|
+
let n = (e) => `${t}-${e}`, r = (e) => {
|
|
1688
|
+
let i = n(e.name), a = e.type;
|
|
1689
|
+
if (a.componentName = e.name, Lt.has(i)) return;
|
|
1690
|
+
X.has(a) && X.get(a) !== i && (a = class extends a {}), Lt.add(i), X.set(a, i);
|
|
1691
|
+
for (let t of e.dependencies) r(t);
|
|
1692
|
+
let o = new Map([[e.type, i], ...e.dependencies.map((e) => [e.type, n(e.name)])]), s = {
|
|
1693
|
+
tagFor: (t, n) => {
|
|
1694
|
+
if (!o.has(t)) throw Error(`Could not get tag for ${t.name} as it is not a dependency of ${e.name}.`);
|
|
1695
|
+
let r = o.get(t);
|
|
1696
|
+
return n ? r : V.partial(r);
|
|
1697
|
+
},
|
|
1698
|
+
tagForNonDependency(e) {
|
|
1699
|
+
return n(e);
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
|
+
W.compose(a, {
|
|
1703
|
+
...e.options,
|
|
1704
|
+
template: It(e.template, s),
|
|
1705
|
+
name: `${t}-${e.name}`
|
|
1706
|
+
}).define();
|
|
1707
|
+
};
|
|
1708
|
+
r(e);
|
|
1709
|
+
}, zt = (e, t, n, r, i) => ({
|
|
1710
|
+
name: e,
|
|
1711
|
+
type: t,
|
|
1712
|
+
template: n,
|
|
1713
|
+
dependencies: r,
|
|
1714
|
+
options: i
|
|
1715
|
+
}), Bt = /* @__PURE__ */ new WeakMap(), Vt = (e) => {
|
|
1716
|
+
let t = Bt.get(e);
|
|
1717
|
+
return t || (t = [], Bt.set(e, t)), t;
|
|
1718
|
+
}, Ht = (e, t) => {
|
|
1719
|
+
Vt(e).push(t);
|
|
1720
|
+
}, Ut = (e, t) => {
|
|
1721
|
+
Vt(e).forEach((n) => n(e, t));
|
|
1722
|
+
}, Wt = (e) => e === "delegate", Gt = (e) => `vvd${e.charAt(0).toUpperCase()}${e.slice(1)}`, Kt = (e, t) => {
|
|
1723
|
+
if (Wt(e._vividAriaBehaviour)) {
|
|
1724
|
+
let n = e[t];
|
|
1725
|
+
e[`_${t}`] = null, e.removeAttribute($(t)), e[`_${t}`] = n, e[t] === null ? delete e.dataset[Gt(t)] : e.dataset[Gt(t)] = e[t];
|
|
1726
|
+
} else h.setAttribute(e, $(t), e[t]);
|
|
1727
|
+
}, Z = /* @__PURE__ */ new WeakMap(), qt = (e, t) => {
|
|
1728
|
+
let n = Z.get(e);
|
|
1729
|
+
n ? n.add(t) : Z.set(e, new Set([t]));
|
|
1730
|
+
}, Jt = (e, t) => {
|
|
1731
|
+
e.isConnected ? Kt(e, t) : qt(e, t);
|
|
1732
|
+
}, Yt = (e) => {
|
|
1733
|
+
let t = Z.get(e);
|
|
1734
|
+
if (t) {
|
|
1735
|
+
for (let n of t) Kt(e, n);
|
|
1736
|
+
Z.delete(e);
|
|
1737
|
+
}
|
|
1738
|
+
}, Q = /* @__PURE__ */ "role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColIndexText.ariaColSpan.ariaCurrent.ariaDescription.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowIndexText.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText.ariaRelevant".split("."), $ = (e) => e.replace("aria", "aria-").toLowerCase(), Xt = (e) => {
|
|
1739
|
+
class t extends e {
|
|
1740
|
+
constructor(...e) {
|
|
1741
|
+
super(...e), this._vividAriaBehaviour = "default";
|
|
1742
|
+
for (let e of Q) this[`_${e}`] = null;
|
|
1743
|
+
}
|
|
1744
|
+
connectedCallback() {
|
|
1745
|
+
super.connectedCallback(), Yt(this);
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
for (let e of Q) dt({
|
|
1749
|
+
attribute: $(e),
|
|
1750
|
+
mode: "fromView"
|
|
1751
|
+
})(t.prototype, e), t.prototype[`${e}Changed`] = function() {
|
|
1752
|
+
Jt(this, e), this._vividAriaBehaviour !== "default" && Ut(this, e);
|
|
1753
|
+
};
|
|
1754
|
+
return t;
|
|
1755
|
+
};
|
|
1756
|
+
//#endregion
|
|
1757
|
+
//#region src/shared/deprecation/replaced-props.ts
|
|
1758
|
+
function Zt() {
|
|
1759
|
+
let e = /* @__PURE__ */ new WeakMap();
|
|
1760
|
+
return (t) => (e.has(t) || e.set(t, []), e.get(t));
|
|
1761
|
+
}
|
|
1762
|
+
var Qt = Zt(), $t = (e) => (t, n) => {
|
|
1763
|
+
Qt(t.constructor).push({
|
|
1764
|
+
newPropertyName: n,
|
|
1765
|
+
...e
|
|
1766
|
+
});
|
|
1767
|
+
}, en = (e) => {
|
|
1768
|
+
class t extends e {
|
|
1769
|
+
#e(e) {
|
|
1770
|
+
let t = !1, n = !1, r = (t) => n && e.fromDeprecated(t[e.deprecatedPropertyName]) === t[e.newPropertyName], i = (n) => t && e.toDeprecated && e.toDeprecated(n[e.newPropertyName]) === n[e.deprecatedPropertyName], a = { handleChange(a, o) {
|
|
1771
|
+
if (o === e.newPropertyName) {
|
|
1772
|
+
if (t = !0, !e.toDeprecated || r(a)) return;
|
|
1773
|
+
a[e.deprecatedPropertyName] = e.toDeprecated(a[e.newPropertyName]);
|
|
1774
|
+
}
|
|
1775
|
+
if (o === e.deprecatedPropertyName) {
|
|
1776
|
+
if (n = !0, i(a)) return;
|
|
1777
|
+
a[e.newPropertyName] = e.fromDeprecated(a[e.deprecatedPropertyName]);
|
|
1778
|
+
}
|
|
1779
|
+
} }, o = y.getNotifier(this);
|
|
1780
|
+
o.subscribe(a, e.newPropertyName), o.subscribe(a, e.deprecatedPropertyName);
|
|
1781
|
+
}
|
|
1782
|
+
constructor(...e) {
|
|
1783
|
+
super(...e);
|
|
1784
|
+
for (let e of Qt(this.constructor)) this.#e(e);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return t;
|
|
1788
|
+
}, tn = class extends Xt(en(Ft)) {
|
|
1789
|
+
static {
|
|
1790
|
+
this.VIVID_VERSION = "5.17.0";
|
|
1791
|
+
}
|
|
1792
|
+
connectedCallback() {
|
|
1793
|
+
super.connectedCallback();
|
|
1794
|
+
let e = this.constructor.componentName;
|
|
1795
|
+
this.setAttribute("data-vvd-component", e);
|
|
1796
|
+
}
|
|
2824
1797
|
};
|
|
1798
|
+
//#endregion
|
|
1799
|
+
export { c as A, b as C, _ as D, ie as E, i as M, a as N, g as O, x as S, re as T, C as _, Ht as a, le as b, _t as c, V as d, F as f, Te as g, Ee as h, Q as i, r as j, h as k, dt as l, j as m, $t as n, zt as o, I as p, $ as r, Rt as s, tn as t, lt as u, T as v, y as w, se as x, S as y };
|