smoothly 1.0.0-alpha.21 → 1.0.0-alpha.210
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/dist/cjs/{Listenable-63ea2d90.js → Data-ae713814.js} +523 -6
- package/dist/cjs/Data-ae713814.js.map +1 -0
- package/dist/cjs/Observers-6450f075.js +25 -0
- package/dist/cjs/Observers-6450f075.js.map +1 -0
- package/dist/cjs/TimeZone-016ac7b0.js +6181 -0
- package/dist/cjs/TimeZone-016ac7b0.js.map +1 -0
- package/dist/cjs/getLanguage-49a534df.js +6118 -0
- package/dist/cjs/getLanguage-49a534df.js.map +1 -0
- package/dist/cjs/{index-8adc5c1b.js → index-43af753b.js} +55 -2
- package/dist/cjs/index-43af753b.js.map +1 -0
- package/dist/cjs/index.cjs.js +22 -17
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{Notice-88ba4c70.js → redirect-2e5d4524.js} +11 -2
- package/dist/cjs/redirect-2e5d4524.js.map +1 -0
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js +61 -0
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-accordion.cjs.entry.js +58 -0
- package/dist/cjs/smoothly-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-app_80.cjs.entry.js +10872 -0
- package/dist/cjs/smoothly-app_80.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +102 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +56 -55
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +26 -0
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +6 -6
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly.cjs.js +4 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +37 -15
- package/dist/collection/components/Button.js +16 -2
- package/dist/collection/components/Button.js.map +1 -1
- package/dist/collection/components/accordion/index.js +32 -12
- package/dist/collection/components/accordion/index.js.map +1 -1
- package/dist/collection/components/accordion-item/index.js +18 -25
- package/dist/collection/components/accordion-item/index.js.map +1 -1
- package/dist/collection/components/app/index.js +99 -29
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +134 -25
- package/dist/collection/components/app/room/index.js.map +1 -1
- package/dist/collection/components/app/room/style.css +39 -10
- package/dist/collection/components/app/style.css +104 -39
- package/dist/collection/components/app-demo/index.js +1 -1
- package/dist/collection/components/app-demo/index.js.map +1 -1
- package/dist/collection/components/backtotop/index.js +3 -3
- package/dist/collection/components/backtotop/index.js.map +1 -1
- package/dist/collection/components/burger/index.js +60 -14
- package/dist/collection/components/burger/index.js.map +1 -1
- package/dist/collection/components/burger/style.css +2 -2
- package/dist/collection/components/button/index.js +10 -23
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/button/style.css +33 -35
- package/dist/collection/components/button-demo/index.js +4 -2
- package/dist/collection/components/button-demo/index.js.map +1 -1
- package/dist/collection/components/button-demo/style.css +1 -0
- package/dist/collection/components/calendar/generate.js +1 -1
- package/dist/collection/components/calendar/generate.js.map +1 -1
- package/dist/collection/components/calendar/index.js +16 -16
- package/dist/collection/components/calendar/index.js.map +1 -1
- package/dist/collection/components/checkbox/index.js +82 -29
- package/dist/collection/components/checkbox/index.js.map +1 -1
- package/dist/collection/components/checkbox/style.css +39 -42
- package/dist/collection/components/confirm/index.js +261 -0
- package/dist/collection/components/confirm/index.js.map +1 -0
- package/dist/collection/components/confirm/style.css +15 -0
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/display/index.js +6 -3
- package/dist/collection/components/display/index.js.map +1 -1
- package/dist/collection/components/display-amount/index.js +1 -1
- package/dist/collection/components/display-demo/index.js +16 -1
- package/dist/collection/components/display-demo/index.js.map +1 -1
- package/dist/collection/components/filter/Filter.js +17 -0
- package/dist/collection/components/filter/Filter.js.map +1 -0
- package/dist/collection/components/filter/field/index.js +105 -0
- package/dist/collection/components/filter/field/index.js.map +1 -0
- package/dist/collection/components/filter/field/style.css +4 -0
- package/dist/collection/components/filter/index.js +55 -132
- package/dist/collection/components/filter/index.js.map +1 -1
- package/dist/collection/components/filter/input/index.js +64 -302
- package/dist/collection/components/filter/input/index.js.map +1 -1
- package/dist/collection/components/filter/picker/index.js +174 -0
- package/dist/collection/components/filter/picker/index.js.map +1 -0
- package/dist/collection/components/filter/picker/style.css +7 -0
- package/dist/collection/components/filter/style.css +56 -71
- package/dist/collection/components/filter/toggle/index.js +248 -0
- package/dist/collection/components/filter/toggle/index.js.map +1 -0
- package/dist/collection/components/filter/toggle/style.css +8 -0
- package/dist/collection/components/form/index.js +302 -35
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/form/style.css +11 -17
- package/dist/collection/components/icon/index.js +29 -38
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon-demo/index.js +1 -1
- package/dist/collection/components/icon-demo/index.js.map +1 -1
- package/dist/collection/components/icon-demo/style.css +5 -6
- package/dist/collection/components/input/Clearable.js.map +1 -0
- package/dist/collection/components/input/Editable.js +18 -0
- package/dist/collection/components/input/Editable.js.map +1 -0
- package/dist/collection/components/input/Input.js +23 -0
- package/dist/collection/components/input/Input.js.map +1 -0
- package/dist/collection/components/input/Looks.js +8 -0
- package/dist/collection/components/input/Looks.js.map +1 -0
- package/dist/collection/components/input/Submittable.js +8 -0
- package/dist/collection/components/input/Submittable.js.map +1 -0
- package/dist/collection/components/input/checkbox/index.js +235 -0
- package/dist/collection/components/input/checkbox/index.js.map +1 -0
- package/dist/collection/components/input/checkbox/style.css +31 -0
- package/dist/collection/components/input/clear/index.js +242 -0
- package/dist/collection/components/input/clear/index.js.map +1 -0
- package/dist/collection/components/input/clear/style.css +256 -0
- package/dist/collection/components/input/color/index.js +226 -0
- package/dist/collection/components/input/color/index.js.map +1 -0
- package/dist/collection/components/input/color/style.css +15 -0
- package/dist/collection/components/{input-date-range → input/date}/index.js +153 -99
- package/dist/collection/components/input/date/index.js.map +1 -0
- package/dist/collection/components/input/date/range/index.js +443 -0
- package/dist/collection/components/input/date/range/index.js.map +1 -0
- package/dist/collection/components/input/date/range/style.css +94 -0
- package/dist/collection/components/input/date/style.css +83 -0
- package/dist/collection/components/input/demo/index.js +47 -0
- package/dist/collection/components/input/demo/index.js.map +1 -0
- package/dist/collection/components/input/demo/style.css +15 -0
- package/dist/collection/components/input/edit/index.js +231 -0
- package/dist/collection/components/input/edit/index.js.map +1 -0
- package/dist/collection/components/input/edit/style.css +239 -0
- package/dist/collection/components/input/file/index.js +305 -0
- package/dist/collection/components/input/file/index.js.map +1 -0
- package/dist/collection/components/input/file/style.css +107 -0
- package/dist/collection/components/input/index.js +329 -104
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/collection/components/{input-month → input/month}/index.js +8 -8
- package/dist/collection/components/input/month/index.js.map +1 -0
- package/dist/collection/components/input/radio/Selected.js +11 -0
- package/dist/collection/components/input/radio/Selected.js.map +1 -0
- package/dist/collection/components/input/radio/index.js +404 -0
- package/dist/collection/components/input/radio/index.js.map +1 -0
- package/dist/collection/components/input/radio/item/index.js +150 -0
- package/dist/collection/components/input/radio/item/index.js.map +1 -0
- package/dist/collection/components/input/radio/item/style.css +28 -0
- package/dist/collection/components/input/radio/style.css +66 -0
- package/dist/collection/components/input/range/index.js +305 -0
- package/dist/collection/components/input/range/index.js.map +1 -0
- package/dist/collection/components/input/range/style.css +154 -0
- package/dist/collection/components/input/reset/index.js +241 -0
- package/dist/collection/components/input/reset/index.js.map +1 -0
- package/dist/collection/components/input/reset/style.css +259 -0
- package/dist/collection/components/input/select/index.js +452 -0
- package/dist/collection/components/input/select/index.js.map +1 -0
- package/dist/collection/components/input/select/style.css +104 -0
- package/dist/collection/components/input/style.css +47 -10
- package/dist/collection/components/input/submit/index.js +232 -0
- package/dist/collection/components/input/submit/index.js.map +1 -0
- package/dist/collection/components/input/submit/style.css +236 -0
- package/dist/collection/components/item/index.js +5 -5
- package/dist/collection/components/item/index.js.map +1 -1
- package/dist/collection/components/label/index.js +81 -0
- package/dist/collection/components/label/index.js.map +1 -0
- package/dist/collection/components/label/style.css +15 -0
- package/dist/collection/components/lazy/index.js +73 -0
- package/dist/collection/components/lazy/index.js.map +1 -0
- package/dist/collection/components/{radio → load-more}/index.js +35 -46
- package/dist/collection/components/load-more/index.js.map +1 -0
- package/dist/collection/components/load-more/style.css +5 -0
- package/dist/collection/components/notification/index.js +45 -8
- package/dist/collection/components/notification/index.js.map +1 -1
- package/dist/collection/components/notification/style.css +25 -1
- package/dist/collection/components/notifier/style.css +1 -3
- package/dist/collection/components/picker/demo/index.js +91 -0
- package/dist/collection/components/picker/demo/index.js.map +1 -0
- package/dist/collection/components/picker/demo/style.css +30 -0
- package/dist/collection/components/picker/index.js +197 -396
- package/dist/collection/components/picker/index.js.map +1 -1
- package/dist/collection/components/picker/menu/index.js +429 -0
- package/dist/collection/components/picker/menu/index.js.map +1 -0
- package/dist/collection/components/picker/menu/style.css +44 -0
- package/dist/collection/components/picker/option/index.js +298 -0
- package/dist/collection/components/picker/option/index.js.map +1 -0
- package/dist/collection/components/picker/option/style.css +30 -0
- package/dist/collection/components/picker/slot-elements/index.js +109 -0
- package/dist/collection/components/picker/slot-elements/index.js.map +1 -0
- package/dist/collection/components/picker/slot-elements/style.css +3 -0
- package/dist/collection/components/picker/slotted-elements/index.js +84 -0
- package/dist/collection/components/picker/slotted-elements/index.js.map +1 -0
- package/dist/collection/components/picker/slotted-elements/style.css +3 -0
- package/dist/collection/components/picker/style.css +76 -136
- package/dist/collection/components/popup/index.js +5 -5
- package/dist/collection/components/popup/index.js.map +1 -1
- package/dist/collection/components/popup/style.css +4 -4
- package/dist/collection/components/select-demo/index.js +0 -87
- package/dist/collection/components/select-demo/index.js.map +1 -1
- package/dist/collection/components/spinner/style.css +1 -0
- package/dist/collection/components/submit/index.js +64 -5
- package/dist/collection/components/submit/index.js.map +1 -1
- package/dist/collection/components/submit/style.css +226 -0
- package/dist/collection/components/summary/index.js +46 -4
- package/dist/collection/components/summary/index.js.map +1 -1
- package/dist/collection/components/summary/style.css +25 -16
- package/dist/collection/components/svg/style.css +2 -2
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/cell/index.js.map +1 -1
- package/dist/collection/components/table/cell/style.css +18 -11
- package/dist/collection/components/table/demo/filtered/Root.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +18 -18
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/style.css +9 -0
- package/dist/collection/components/table/demo/index.js +2 -9
- package/dist/collection/components/table/demo/index.js.map +1 -1
- package/dist/collection/components/table/demo/style.css +7 -0
- package/dist/collection/components/table/demo/testing/data.js +28 -0
- package/dist/collection/components/table/demo/testing/data.js.map +1 -0
- package/dist/collection/components/table/demo/testing/index.js +28 -0
- package/dist/collection/components/table/demo/testing/index.js.map +1 -0
- package/dist/collection/components/table/demo/testing/style.css +32 -0
- package/dist/collection/components/table/expandable/cell/index.js +14 -33
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +32 -25
- package/dist/collection/components/table/expandable/row/index.js +9 -51
- package/dist/collection/components/table/expandable/row/index.js.map +1 -1
- package/dist/collection/components/table/expandable/row/style.css +32 -29
- package/dist/collection/components/table/footer/index.js +19 -0
- package/dist/collection/components/table/footer/index.js.map +1 -0
- package/dist/collection/components/table/footer/style.css +10 -0
- package/dist/collection/components/table/header/style.css +2 -3
- package/dist/collection/components/table/index.js +55 -12
- package/dist/collection/components/table/index.js.map +1 -1
- package/dist/collection/components/table/row/index.js +37 -5
- package/dist/collection/components/table/row/index.js.map +1 -1
- package/dist/collection/components/table/row/style.css +4 -1
- package/dist/collection/components/table/style.css +0 -2
- package/dist/collection/components/theme/color/index.js +48 -0
- package/dist/collection/components/theme/color/index.js.map +1 -0
- package/dist/collection/components/theme/color/style.css +8 -0
- package/dist/collection/components/theme/color/variant/index.js +66 -0
- package/dist/collection/components/theme/color/variant/index.js.map +1 -0
- package/dist/collection/components/theme/color/variant/style.css +18 -0
- package/dist/collection/components/theme/colors/index.js +30 -0
- package/dist/collection/components/theme/colors/index.js.map +1 -0
- package/dist/collection/components/theme/colors/style.css +7 -0
- package/dist/collection/components/theme/picker/index.js +48 -0
- package/dist/collection/components/theme/picker/index.js.map +1 -0
- package/dist/collection/components/theme/picker/style.css +0 -0
- package/dist/collection/components/toggle-switch/index.js +69 -17
- package/dist/collection/components/toggle-switch/index.js.map +1 -1
- package/dist/collection/components/toggle-switch/style.css +19 -12
- package/dist/collection/components/trigger-source/index.js +3 -3
- package/dist/collection/components/trigger-source/index.js.map +1 -1
- package/dist/collection/global/Observers.js +22 -0
- package/dist/collection/global/Observers.js.map +1 -0
- package/dist/collection/global/index.js +5 -0
- package/dist/collection/global/index.js.map +1 -0
- package/dist/collection/index.js +2 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/model/Color.js +18 -1
- package/dist/collection/model/Color.js.map +1 -1
- package/dist/collection/{components/form → model}/Data.js +8 -1
- package/dist/collection/model/Data.js.map +1 -0
- package/dist/collection/model/Icon.js +23 -0
- package/dist/collection/model/Icon.js.map +1 -0
- package/dist/collection/model/Listenable.js +17 -4
- package/dist/collection/model/Listenable.js.map +1 -1
- package/dist/collection/model/Notice.js +1 -1
- package/dist/collection/model/Notice.js.map +1 -1
- package/dist/collection/model/Option.js.map +1 -1
- package/dist/collection/model/index.js +4 -0
- package/dist/collection/model/index.js.map +1 -1
- package/dist/collection/model/redirect.js +8 -0
- package/dist/collection/model/redirect.js.map +1 -0
- package/dist/collection/smoothly.js +3 -0
- package/dist/collection/smoothly.js.map +1 -0
- package/dist/custom-elements/index.d.ts +176 -50
- package/dist/custom-elements/index.js +13369 -29834
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{Listenable-fb6f4723.js → Data-0390d600.js} +518 -7
- package/dist/esm/Data-0390d600.js.map +1 -0
- package/dist/esm/Observers-5f08e828.js +25 -0
- package/dist/esm/Observers-5f08e828.js.map +1 -0
- package/dist/esm/TimeZone-c8df4905.js +6181 -0
- package/dist/esm/TimeZone-c8df4905.js.map +1 -0
- package/dist/esm/getLanguage-1e9ec036.js +6116 -0
- package/dist/esm/getLanguage-1e9ec036.js.map +1 -0
- package/dist/esm/{index-6ac4212d.js → index-258984d3.js} +55 -2
- package/dist/esm/index-258984d3.js.map +1 -0
- package/dist/esm/index.js +20 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{Notice-1fa17794.js → redirect-b0f87e88.js} +11 -3
- package/dist/esm/redirect-b0f87e88.js.map +1 -0
- package/dist/esm/smoothly-accordion-item.entry.js +57 -0
- package/dist/esm/smoothly-accordion-item.entry.js.map +1 -0
- package/dist/esm/smoothly-accordion.entry.js +54 -0
- package/dist/esm/smoothly-accordion.entry.js.map +1 -0
- package/dist/esm/smoothly-address-display.entry.js +1 -1
- package/dist/esm/smoothly-address.entry.js +1 -1
- package/dist/esm/smoothly-addresses.entry.js +1 -1
- package/dist/esm/smoothly-app_80.entry.js +10789 -0
- package/dist/esm/smoothly-app_80.entry.js.map +1 -0
- package/dist/esm/smoothly-checkbox.entry.js +98 -0
- package/dist/esm/smoothly-checkbox.entry.js.map +1 -0
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +10 -9
- package/dist/esm/smoothly-country.entry.js.map +1 -1
- package/dist/esm/smoothly-display-date-time.entry.js +22 -0
- package/dist/esm/smoothly-display-date-time.entry.js.map +1 -0
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
- package/dist/esm/smoothly-trigger-source.entry.js +4 -4
- package/dist/esm/smoothly-trigger-source.entry.js.map +1 -1
- package/dist/esm/smoothly.js +5 -4
- package/dist/esm/smoothly.js.map +1 -1
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/index.esm.js.map +1 -1
- package/dist/smoothly/{p-04fb45e1.entry.js → p-12182a73.entry.js} +2 -2
- package/dist/smoothly/{p-5629e452.entry.js → p-127dcc56.entry.js} +2 -2
- package/dist/smoothly/p-21905b32.entry.js +2 -0
- package/dist/smoothly/p-21905b32.entry.js.map +1 -0
- package/dist/smoothly/p-312ef066.js +2 -0
- package/dist/smoothly/p-312ef066.js.map +1 -0
- package/dist/smoothly/p-36a1aa35.entry.js +2 -0
- package/dist/smoothly/p-36a1aa35.entry.js.map +1 -0
- package/dist/smoothly/p-47151a53.entry.js +2 -0
- package/dist/smoothly/p-5e387578.js +3 -0
- package/dist/smoothly/p-5e387578.js.map +1 -0
- package/dist/smoothly/{p-0fec28cc.entry.js → p-6aebb818.entry.js} +2 -2
- package/dist/smoothly/p-6e9aca2e.entry.js +2 -0
- package/dist/smoothly/p-6e9aca2e.entry.js.map +1 -0
- package/dist/smoothly/{p-ae467192.entry.js → p-7bf147bf.entry.js} +2 -2
- package/dist/smoothly/p-823e02b0.entry.js +2 -0
- package/dist/smoothly/p-823e02b0.entry.js.map +1 -0
- package/dist/smoothly/p-9b828bde.js +2 -0
- package/dist/smoothly/p-9b828bde.js.map +1 -0
- package/dist/smoothly/p-a0ebd646.entry.js +2 -0
- package/dist/smoothly/p-a0ebd646.entry.js.map +1 -0
- package/dist/smoothly/{p-b3eef141.entry.js → p-b3eac6af.entry.js} +2 -2
- package/dist/smoothly/p-c833c402.js +2 -0
- package/dist/smoothly/p-c833c402.js.map +1 -0
- package/dist/smoothly/{p-3a6873ed.entry.js → p-cb493516.entry.js} +2 -2
- package/dist/smoothly/p-ede93d69.js +2 -0
- package/dist/smoothly/p-ede93d69.js.map +1 -0
- package/dist/smoothly/p-eef1c80b.entry.js +2 -0
- package/dist/smoothly/p-eef1c80b.entry.js.map +1 -0
- package/dist/smoothly/p-f125610c.entry.js +2 -0
- package/dist/smoothly/p-f125610c.entry.js.map +1 -0
- package/dist/smoothly/p-fa664317.js +2 -0
- package/dist/smoothly/p-fa664317.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/Button.d.ts +1 -2
- package/dist/types/components/accordion/index.d.ts +1 -1
- package/dist/types/components/accordion-item/index.d.ts +5 -4
- package/dist/types/components/app/index.d.ts +23 -10
- package/dist/types/components/app/room/index.d.ts +21 -7
- package/dist/types/components/app-demo/index.d.ts +1 -0
- package/dist/types/components/backtotop/index.d.ts +1 -1
- package/dist/types/components/burger/index.d.ts +7 -2
- package/dist/types/components/button/index.d.ts +2 -2
- package/dist/types/components/calendar/index.d.ts +5 -5
- package/dist/types/components/checkbox/index.d.ts +7 -3
- package/dist/types/components/confirm/index.d.ts +19 -0
- package/dist/types/components/filter/Filter.d.ts +21 -0
- package/dist/types/components/filter/field/index.d.ts +10 -0
- package/dist/types/components/filter/index.d.ts +13 -12
- package/dist/types/components/filter/input/index.d.ts +15 -23
- package/dist/types/components/filter/picker/index.d.ts +22 -0
- package/dist/types/components/filter/toggle/index.d.ts +22 -0
- package/dist/types/components/form/index.d.ts +23 -7
- package/dist/types/components/icon/index.d.ts +3 -9
- package/dist/types/components/input/Editable.d.ts +20 -0
- package/dist/types/components/input/Input.d.ts +22 -0
- package/dist/types/components/input/Looks.d.ts +7 -0
- package/dist/types/components/input/Submittable.d.ts +6 -0
- package/dist/types/components/input/checkbox/index.d.ts +20 -0
- package/dist/types/components/input/clear/index.d.ts +17 -0
- package/dist/types/components/input/color/index.d.ts +24 -0
- package/dist/types/components/input/date/index.d.ts +28 -0
- package/dist/types/components/input/date/range/index.d.ts +33 -0
- package/dist/types/components/input/demo/index.d.ts +6 -0
- package/dist/types/components/input/edit/index.d.ts +17 -0
- package/dist/types/components/input/file/index.d.ts +24 -0
- package/dist/types/components/input/index.d.ts +30 -11
- package/dist/types/components/{input-month → input/month}/index.d.ts +2 -2
- package/dist/types/components/input/radio/Selected.d.ts +10 -0
- package/dist/types/components/input/radio/index.d.ts +35 -0
- package/dist/types/components/input/radio/item/index.d.ts +15 -0
- package/dist/types/components/input/range/index.d.ts +24 -0
- package/dist/types/components/input/reset/index.d.ts +18 -0
- package/dist/types/components/input/select/index.d.ts +36 -0
- package/dist/types/components/input/submit/index.d.ts +17 -0
- package/dist/types/components/item/index.d.ts +1 -1
- package/dist/types/components/label/index.d.ts +6 -0
- package/dist/types/components/lazy/index.d.ts +7 -0
- package/dist/types/components/load-more/index.d.ts +11 -0
- package/dist/types/components/notification/index.d.ts +3 -1
- package/dist/types/components/picker/demo/index.d.ts +22 -0
- package/dist/types/components/picker/index.d.ts +33 -45
- package/dist/types/components/picker/menu/index.d.ts +54 -0
- package/dist/types/components/picker/option/index.d.ts +23 -0
- package/dist/types/components/picker/slot-elements/index.d.ts +15 -0
- package/dist/types/components/picker/slotted-elements/index.d.ts +8 -0
- package/dist/types/components/popup/index.d.ts +1 -1
- package/dist/types/components/select-demo/index.d.ts +0 -9
- package/dist/types/components/submit/index.d.ts +6 -1
- package/dist/types/components/summary/index.d.ts +4 -0
- package/dist/types/components/table/demo/filtered/Root.d.ts +1 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +7 -7
- package/dist/types/components/table/demo/index.d.ts +1 -1
- package/dist/types/components/table/demo/testing/data.d.ts +5 -0
- package/dist/types/components/table/demo/testing/index.d.ts +4 -0
- package/dist/types/components/table/expandable/cell/index.d.ts +4 -5
- package/dist/types/components/table/expandable/row/index.d.ts +3 -8
- package/dist/types/components/table/footer/index.d.ts +3 -0
- package/dist/types/components/table/index.d.ts +6 -3
- package/dist/types/components/table/row/index.d.ts +3 -1
- package/dist/types/components/theme/color/index.d.ts +5 -0
- package/dist/types/components/theme/color/variant/index.d.ts +6 -0
- package/dist/types/components/theme/colors/index.d.ts +3 -0
- package/dist/types/components/theme/picker/index.d.ts +4 -0
- package/dist/types/components/toggle-switch/index.d.ts +7 -2
- package/dist/types/components/trigger-source/index.d.ts +1 -1
- package/dist/types/components.d.ts +912 -347
- package/dist/types/global/Observers.d.ts +8 -0
- package/dist/types/global/index.d.ts +4 -0
- package/dist/types/index.d.ts +1 -3
- package/dist/types/model/Color.d.ts +7 -1
- package/dist/types/{components/form → model}/Data.d.ts +4 -0
- package/dist/types/model/Icon.d.ts +8 -0
- package/dist/types/model/Listenable.d.ts +10 -1
- package/dist/types/model/Notice.d.ts +1 -1
- package/dist/types/model/Option.d.ts +24 -6
- package/dist/types/model/index.d.ts +3 -0
- package/dist/types/model/redirect.d.ts +1 -0
- package/dist/types/smoothly.d.ts +3 -0
- package/package.json +7 -6
- package/dist/cjs/Listenable-63ea2d90.js.map +0 -1
- package/dist/cjs/Notice-88ba4c70.js.map +0 -1
- package/dist/cjs/getLanguage-4f0a45d5.js +0 -12227
- package/dist/cjs/getLanguage-4f0a45d5.js.map +0 -1
- package/dist/cjs/index-8adc5c1b.js.map +0 -1
- package/dist/cjs/index-d16d46f4.js +0 -1224
- package/dist/cjs/index-d16d46f4.js.map +0 -1
- package/dist/cjs/smoothly-accordion_62.cjs.entry.js +0 -28199
- package/dist/cjs/smoothly-accordion_62.cjs.entry.js.map +0 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +0 -22
- package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +0 -1
- package/dist/collection/components/filter/Clearable.js.map +0 -1
- package/dist/collection/components/form/Clearable.js +0 -8
- package/dist/collection/components/form/Clearable.js.map +0 -1
- package/dist/collection/components/form/Data.js.map +0 -1
- package/dist/collection/components/input-date/index.js +0 -206
- package/dist/collection/components/input-date/index.js.map +0 -1
- package/dist/collection/components/input-date/style.css +0 -40
- package/dist/collection/components/input-date-range/index.js.map +0 -1
- package/dist/collection/components/input-date-range/style.css +0 -51
- package/dist/collection/components/input-demo/index.js +0 -45
- package/dist/collection/components/input-demo/index.js.map +0 -1
- package/dist/collection/components/input-demo/style.css +0 -4
- package/dist/collection/components/input-month/index.js.map +0 -1
- package/dist/collection/components/menu-options/index.js +0 -413
- package/dist/collection/components/menu-options/index.js.map +0 -1
- package/dist/collection/components/menu-options/style.css +0 -18
- package/dist/collection/components/option/index.js +0 -270
- package/dist/collection/components/option/index.js.map +0 -1
- package/dist/collection/components/option/style.css +0 -42
- package/dist/collection/components/radio/index.js.map +0 -1
- package/dist/collection/components/radio/style.css +0 -31
- package/dist/collection/components/radio-button/Selected.js +0 -2
- package/dist/collection/components/radio-button/Selected.js.map +0 -1
- package/dist/collection/components/radio-button/index.js +0 -137
- package/dist/collection/components/radio-button/index.js.map +0 -1
- package/dist/collection/components/radio-button/item/index.js +0 -117
- package/dist/collection/components/radio-button/item/index.js.map +0 -1
- package/dist/collection/components/radio-button/item/style.css +0 -85
- package/dist/collection/components/radio-group/index.js +0 -43
- package/dist/collection/components/radio-group/index.js.map +0 -1
- package/dist/collection/components/radio-group/style.css +0 -36
- package/dist/collection/components/select/index.js +0 -108
- package/dist/collection/components/select/index.js.map +0 -1
- package/dist/collection/components/select/style.css +0 -20
- package/dist/collection/components/selector/index.js +0 -234
- package/dist/collection/components/selector/index.js.map +0 -1
- package/dist/collection/components/selector/style.css +0 -46
- package/dist/custom-elements/index2.js +0 -1222
- package/dist/custom-elements/index2.js.map +0 -1
- package/dist/esm/Listenable-fb6f4723.js.map +0 -1
- package/dist/esm/Notice-1fa17794.js.map +0 -1
- package/dist/esm/getLanguage-ffacd7b7.js +0 -12225
- package/dist/esm/getLanguage-ffacd7b7.js.map +0 -1
- package/dist/esm/index-6ac4212d.js.map +0 -1
- package/dist/esm/index-d5330059.js +0 -1222
- package/dist/esm/index-d5330059.js.map +0 -1
- package/dist/esm/smoothly-accordion_62.entry.js +0 -28134
- package/dist/esm/smoothly-accordion_62.entry.js.map +0 -1
- package/dist/esm/smoothly-radio-group.entry.js +0 -18
- package/dist/esm/smoothly-radio-group.entry.js.map +0 -1
- package/dist/smoothly/p-06337b89.js +0 -2
- package/dist/smoothly/p-06337b89.js.map +0 -1
- package/dist/smoothly/p-16cba662.entry.js +0 -2
- package/dist/smoothly/p-16cba662.entry.js.map +0 -1
- package/dist/smoothly/p-3ad51805.entry.js +0 -2
- package/dist/smoothly/p-3ad51805.entry.js.map +0 -1
- package/dist/smoothly/p-5e34795b.js +0 -2
- package/dist/smoothly/p-5e34795b.js.map +0 -1
- package/dist/smoothly/p-75373584.js +0 -2
- package/dist/smoothly/p-75373584.js.map +0 -1
- package/dist/smoothly/p-75452eb8.js +0 -2
- package/dist/smoothly/p-75452eb8.js.map +0 -1
- package/dist/smoothly/p-ae33d7e1.entry.js +0 -2
- package/dist/smoothly/p-ae33d7e1.entry.js.map +0 -1
- package/dist/smoothly/p-b98cd447.js +0 -3
- package/dist/smoothly/p-b98cd447.js.map +0 -1
- package/dist/smoothly/p-c109fc66.entry.js +0 -2
- package/dist/smoothly/p-c109fc66.entry.js.map +0 -1
- package/dist/smoothly/p-f29cc9ff.entry.js +0 -2
- package/dist/types/components/form/Clearable.d.ts +0 -6
- package/dist/types/components/input-date/index.d.ts +0 -14
- package/dist/types/components/input-date-range/index.d.ts +0 -23
- package/dist/types/components/input-demo/index.d.ts +0 -3
- package/dist/types/components/menu-options/index.d.ts +0 -35
- package/dist/types/components/option/index.d.ts +0 -32
- package/dist/types/components/radio/index.d.ts +0 -13
- package/dist/types/components/radio-button/Selected.d.ts +0 -5
- package/dist/types/components/radio-button/index.d.ts +0 -15
- package/dist/types/components/radio-button/item/index.d.ts +0 -12
- package/dist/types/components/radio-group/index.d.ts +0 -4
- package/dist/types/components/select/index.d.ts +0 -14
- package/dist/types/components/selector/index.d.ts +0 -23
- /package/dist/collection/components/{filter → input}/Clearable.js +0 -0
- /package/dist/collection/components/{input-month → input/month}/style.css +0 -0
- /package/dist/collection/components/{radio-button → lazy}/style.css +0 -0
- /package/dist/smoothly/{p-04fb45e1.entry.js.map → p-12182a73.entry.js.map} +0 -0
- /package/dist/smoothly/{p-5629e452.entry.js.map → p-127dcc56.entry.js.map} +0 -0
- /package/dist/smoothly/{p-f29cc9ff.entry.js.map → p-47151a53.entry.js.map} +0 -0
- /package/dist/smoothly/{p-0fec28cc.entry.js.map → p-6aebb818.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ae467192.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-b3eef141.entry.js.map → p-b3eac6af.entry.js.map} +0 -0
- /package/dist/smoothly/{p-3a6873ed.entry.js.map → p-cb493516.entry.js.map} +0 -0
- /package/dist/types/components/{filter → input}/Clearable.d.ts +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as o,c as e,H as s,g as i}from"./p-5e387578.js";import{b as l,T as n,o as r,s as a,r as h,c,u,D as m,C as d,M as y,a as p}from"./p-9b828bde.js";import"./p-bd478a53.js";import{r as f,N as b}from"./p-c833c402.js";import{D as g,a as v,T as w,C as k,L as x,b as S,c as C}from"./p-fa664317.js";import{O as z}from"./p-ede93d69.js";function j(){return{Observers:z}}class _ extends l{constructor(){super(...arguments);this.is=t=>t!=undefined}}function L(t){return new _(t??"any")}class T extends l{constructor(){super("function");this.is=t=>!!(t&&typeof t=="function")}}function A(){return new T}const I='smoothly-app{--header-height:5rem;display:block}smoothly-app main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:5;width:100%;height:var(--header-height);display:flex;justify-content:space-between;box-sizing:border-box;align-items:center;box-shadow:0 2px 5px 0 rgba(var(--smoothly-dark-shadow));border-bottom:1px solid rgba(var(--smoothly-dark-color));background:rgba(var(--smoothly-color));color:rgba(var(--smoothly-color-contrast))}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2;height:100%}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{display:flex;margin:0}smoothly-app>smoothly-notifier>header>h1{margin-left:1rem;margin-bottom:0.8em;display:flex;height:100%}smoothly-app>smoothly-notifier>header>h1>a{display:inline-block;align-self:center;size:100%;background-position-y:center;text-decoration:none;white-space:nowrap}smoothly-app>smoothly-notifier>header>nav>ul li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container{display:flex;align-items:center;height:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{display:flex;gap:1rem;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;gap:0.5em;align-self:center;height:fit-content;margin-left:10rem}smoothly-app>smoothly-notifier>header>nav>ul li a{display:flex;height:2.3rem;text-decoration:none;align-items:center;align-self:center}@media screen and (max-width: 900px){smoothly-app>smoothly-notifier>header>nav{width:50dvw;max-width:15rem;top:100%;position:absolute;max-height:calc(100dvh - var(--header-height));overflow-y:scroll;right:0;height:auto}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app>smoothly-notifier>header>nav>ul li{margin-right:0;margin-bottom:1em;width:100%}smoothly-app>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-start"]{display:none}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center;gap:1em}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app>smoothly-notifier>header>nav:not(.menu-open){display:none}';const O=class{constructor(o){t(this,o);this.rooms={};this.label="App";this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var t;if(!this.selected&&!window.location.search)(t=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((t=>!(t===null||t===void 0?void 0:t.element.disabled))))===null||t===void 0?void 0:t.element.setSelected(true)}async selectRoom(t){var o;(o=this.rooms[t])===null||o===void 0?void 0:o.element.setSelected(true)}async selectedChanged(){var t;Object.values(this.rooms).forEach((t=>{var o;return(t===null||t===void 0?void 0:t.element.path)!=((o=this.selected)===null||o===void 0?void 0:o.element.path)&&(t===null||t===void 0?void 0:t.element.setSelected(false))}));const o=await((t=this.selected)===null||t===void 0?void 0:t.element.getContent());if(this.mainElement&&o){this.mainElement.innerHTML="";this.mainElement.appendChild(o)}}burgerVisibilityHandler(t){this.burgerVisibility=t.detail}burgerStatusHandler(t){t.stopPropagation();this.menuOpen=t.detail}async locationChangeHandler(t){var o;(o=this.rooms[t.state.smoothlyPath])===null||o===void 0?void 0:o.element.setSelected(true,{history:true})}roomSelectedHandler(t){this.selected={element:t.target};if(this.burgerVisibility)this.menuOpen=false;if(!t.detail.history){const t=this.selected.element.path.toString();const o=new URL(window.location.pathname==t?window.location.href:window.location.origin);o.pathname=t;window.history.pushState({smoothlyPath:t},"",o.href)}}roomLoadedHandler(t){const o=this.rooms[t.target.path.toString()]={element:t.target};if(o.element.selected){this.selected=o;window.history.replaceState({smoothlyPath:o.element.path},"",window.location.href)}}clickHandler(t){if(this.burgerVisibility)if(t.composedPath().some((t=>t==this.burgerElement||t==this.navElement)));else this.menuOpen=false}render(){return o("smoothly-notifier",null,o("header",{color:this.color},o("h1",null,o("a",{href:""},this.label)),o("slot",{name:"header"}),o("nav",{ref:t=>this.navElement=t,class:{"menu-open":this.menuOpen}},o("ul",null,o("div",{class:"nav-start-container"},o("slot",{name:"nav-start"})),o("slot",null," "),o("div",{class:"nav-end-container"},o("slot",{name:"nav-end"})))),o("smoothly-burger",{ref:t=>this.burgerElement=t,open:this.menuOpen,onSmoothlyNavStatus:t=>this.burgerStatusHandler(t),onSmoothlyVisibleStatus:t=>this.burgerVisibilityHandler(t)})),o("main",{ref:t=>this.mainElement=t}))}static get watchers(){return{selected:["selectedChanged"]}}};O.style=I;const $=class{constructor(o){t(this,o);this.baseUrl=undefined}render(){return o("smoothly-app",{color:"dark",label:"Smoothly Demo",home:"/root",ref:t=>this.app=t},o("smoothly-trigger",{slot:"nav-start",type:"link",name:"logout"},o("smoothly-icon",{toolTip:"Log out",name:"log-out",size:"medium"})),o("smoothly-app-room",{path:"/root",label:"root"},o("h2",null,"Theme"),o("smoothly-theme-picker",null,o("smoothly-item",{value:"assets/style/smoothly.css"},"Smoothly"),o("smoothly-item",{value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),o("smoothly-item",{value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),o("smoothly-item",{value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),o("smoothly-item",{value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),o("smoothly-item",{value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),o("smoothly-item",{value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),o("smoothly-item",{value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),o("smoothly-item",{value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),o("smoothly-theme-colors",null),o("smoothly-button",{type:"link",link:"/redirect"},"To redirect"),o("smoothly-button",{type:"link",link:"/redirect"},"To /redirect"),o("smoothly-button",{type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),o("smoothly-button",{type:"link",link:"redirect/nested"},"To redirect nested")),o("smoothly-app-room",{path:"/links",label:"Links"},o("smoothly-input",{type:"text"},"Default"),o("div",{style:{padding:"1em",maxWidth:"12em"}},o("smoothly-button",{fill:"solid",color:"danger",link:"https://google.com"},"open"),o("smoothly-button",{fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),o("smoothly-button",{fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),o("smoothly-button",{disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),o("smoothly-button",{type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),o("smoothly-app-room",{path:"/input",label:"Input"},o("smoothly-input-demo",null)),o("smoothly-app-room",{path:"/button",label:"Button"},o("smoothly-button-demo",null)),o("smoothly-app-room",{path:"/dialog",label:"Dialog"},o("smoothly-dialog-demo",null)),o("smoothly-app-room",{path:"/display",label:"Display",icon:"eye-outline"},o("smoothly-display-demo",null)),o("smoothly-app-room",{path:"/table",label:"Table"},o("smoothly-table-demo",null)),o("smoothly-app-room",{path:"/select",label:"Select"},o("smoothly-select-demo",null)),o("smoothly-app-room",{path:"/icon",label:"Icon",content:o("smoothly-icon-demo",null)}),o("smoothly-app-room",{path:"/old",label:"Old",to:"select"}),o("smoothly-app-room",{path:"/redirect",label:"Redirect"},o("smoothly-button",{type:"link",link:"/input"},"To input"),o("smoothly-button",{type:"link",link:"../button"},"To button"),o("smoothly-button",{type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),o("smoothly-button",{type:"link",link:"/redirect"},"To redirect"),o("smoothly-button",{type:"link",link:"nested"},"To redirect nested, relative path")),o("smoothly-app-room",{path:"/hidden"},o("p",null,"hello world!")),o("smoothly-app-room",{path:"/redirect/nested"},"this is a nested room"))}};var E=/[$_\p{ID_Start}]/u;var D=/[$_\u200C\u200D\p{ID_Continue}]/u;function M(t,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function P(t,o=false){const e=[];let s=0;while(s<t.length){const i=t[s];const l=function(i){if(!o)throw new TypeError(i);e.push({type:"INVALID_CHAR",index:s,value:t[s++]})};if(i==="*"){e.push({type:"ASTERISK",index:s,value:t[s++]});continue}if(i==="+"||i==="?"){e.push({type:"MODIFIER",index:s,value:t[s++]});continue}if(i==="\\"){e.push({type:"ESCAPED_CHAR",index:s++,value:t[s++]});continue}if(i==="{"){e.push({type:"OPEN",index:s,value:t[s++]});continue}if(i==="}"){e.push({type:"CLOSE",index:s,value:t[s++]});continue}if(i===":"){let o="";let i=s+1;while(i<t.length){const e=t.substr(i,1);if(i===s+1&&E.test(e)||i!==s+1&&D.test(e)){o+=t[i++];continue}break}if(!o){l(`Missing parameter name at ${s}`);continue}e.push({type:"NAME",index:s,value:o});s=i;continue}if(i==="("){let o=1;let i="";let n=s+1;let r=false;if(t[n]==="?"){l(`Pattern cannot start with "?" at ${n}`);continue}while(n<t.length){if(!M(t[n],false)){l(`Invalid character '${t[n]}' at ${n}.`);r=true;break}if(t[n]==="\\"){i+=t[n++]+t[n++];continue}if(t[n]===")"){o--;if(o===0){n++;break}}else if(t[n]==="("){o++;if(t[n+1]!=="?"){l(`Capturing groups are not allowed at ${n}`);r=true;break}}i+=t[n++]}if(r){continue}if(o){l(`Unbalanced pattern at ${s}`);continue}if(!i){l(`Missing pattern at ${s}`);continue}e.push({type:"PATTERN",index:s,value:i});s=n;continue}e.push({type:"CHAR",index:s,value:t[s++]})}e.push({type:"END",index:s,value:""});return e}function R(t,o={}){const e=P(t);const{prefixes:s="./"}=o;const i=`[^${N(o.delimiter===void 0?"/#?":o.delimiter)}]+?`;const l=[];let n=0;let r=0;let a="";let h=new Set;const c=t=>{if(r<e.length&&e[r].type===t)return e[r++].value};const u=()=>{const t=c("MODIFIER");if(t){return t}return c("ASTERISK")};const m=t=>{const o=c(t);if(o!==void 0)return o;const{type:s,index:i}=e[r];throw new TypeError(`Unexpected ${s} at ${i}, expected ${t}`)};const d=()=>{let t="";let o;while(o=c("CHAR")||c("ESCAPED_CHAR")){t+=o}return t};const y=t=>t;const p=o.encodePart||y;while(r<e.length){const t=c("CHAR");const o=c("NAME");let e=c("PATTERN");if(!o&&!e&&c("ASTERISK")){e=".*"}if(o||e){let r=t||"";if(s.indexOf(r)===-1){a+=r;r=""}if(a){l.push(p(a));a=""}const c=o||n++;if(h.has(c)){throw new TypeError(`Duplicate name '${c}'.`)}h.add(c);l.push({name:c,prefix:p(r),suffix:"",pattern:e||i,modifier:u()||""});continue}const r=t||c("ESCAPED_CHAR");if(r){a+=r;continue}const y=c("OPEN");if(y){const t=d();const o=c("NAME")||"";let e=c("PATTERN")||"";if(!o&&!e&&c("ASTERISK")){e=".*"}const s=d();m("CLOSE");const r=u()||"";if(!o&&!e&&!r){a+=t;continue}if(!o&&!e&&!t){continue}if(a){l.push(p(a));a=""}l.push({name:o||(e?n++:""),pattern:o&&!e?i:e,prefix:p(t),suffix:p(s),modifier:r});continue}if(a){l.push(p(a));a=""}m("END")}return l}function N(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function H(t){return t&&t.ignoreCase?"ui":"u"}function F(t,o){if(!o)return t;const e=/\((?:\?<(.*?)>)?(?!\?)/g;let s=0;let i=e.exec(t.source);while(i){o.push({name:i[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""});i=e.exec(t.source)}return t}function Y(t,o,e){const s=t.map((t=>q(t,o,e).source));return new RegExp(`(?:${s.join("|")})`,H(e))}function W(t,o,e){return U(R(t,e),o,e)}function U(t,o,e={}){const{strict:s=false,start:i=true,end:l=true,encode:n=(t=>t)}=e;const r=`[${N(e.endsWith===void 0?"":e.endsWith)}]|$`;const a=`[${N(e.delimiter===void 0?"/#?":e.delimiter)}]`;let h=i?"^":"";for(const e of t){if(typeof e==="string"){h+=N(n(e))}else{const t=N(n(e.prefix));const s=N(n(e.suffix));if(e.pattern){if(o)o.push(e);if(t||s){if(e.modifier==="+"||e.modifier==="*"){const o=e.modifier==="*"?"?":"";h+=`(?:${t}((?:${e.pattern})(?:${s}${t}(?:${e.pattern}))*)${s})${o}`}else{h+=`(?:${t}(${e.pattern})${s})${e.modifier}`}}else{if(e.modifier==="+"||e.modifier==="*"){h+=`((?:${e.pattern})${e.modifier})`}else{h+=`(${e.pattern})${e.modifier}`}}}else{h+=`(?:${t}${s})${e.modifier}`}}}if(l){if(!s)h+=`${a}?`;h+=!e.endsWith?"$":`(?=${r})`}else{const o=t[t.length-1];const e=typeof o==="string"?a.indexOf(o[o.length-1])>-1:o===void 0;if(!s){h+=`(?:${a}(?=${r}))?`}if(!e){h+=`(?=${a}|${r})`}}return new RegExp(h,H(e))}function q(t,o,e){if(t instanceof RegExp)return F(t,o);if(Array.isArray(t))return Y(t,o,e);return W(t,o,e)}var B={delimiter:"",prefixes:"",sensitive:true,strict:true};var V={delimiter:".",prefixes:"",sensitive:true,strict:true};var X={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function K(t,o){if(!t.length){return false}if(t[0]==="/"){return true}if(!o){return false}if(t.length<2){return false}if((t[0]=="\\"||t[0]=="{")&&t[1]=="/"){return true}return false}function J(t,o){if(t.startsWith(o)){return t.substring(o.length,t.length)}return t}function G(t,o){if(t.endsWith(o)){return t.substr(0,t.length-o.length)}return t}function Z(t){if(!t||t.length<2){return false}if(t[0]==="["){return true}if((t[0]==="\\"||t[0]==="{")&&t[1]==="["){return true}return false}var Q=["ftp","file","http","https","ws","wss"];function tt(t){if(!t){return true}for(const o of Q){if(t.test(o)){return true}}return false}function ot(t,o){t=J(t,"#");if(o||t===""){return t}const e=new URL("https://example.com");e.hash=t;return e.hash?e.hash.substring(1,e.hash.length):""}function et(t,o){t=J(t,"?");if(o||t===""){return t}const e=new URL("https://example.com");e.search=t;return e.search?e.search.substring(1,e.search.length):""}function st(t,o){if(o||t===""){return t}if(Z(t)){return yt(t)}else{return dt(t)}}function it(t,o){if(o||t===""){return t}const e=new URL("https://example.com");e.password=t;return e.password}function lt(t,o){if(o||t===""){return t}const e=new URL("https://example.com");e.username=t;return e.username}function nt(t,o,e){if(e||t===""){return t}if(o&&!Q.includes(o)){const e=new URL(`${o}:${t}`);return e.pathname}const s=t[0]=="/";t=new URL(!s?"/-"+t:t,"https://example.com").pathname;if(!s){t=t.substring(2,t.length)}return t}function rt(t,o,e){if(ht(o)===t){t=""}if(e||t===""){return t}return pt(t)}function at(t,o){t=G(t,":");if(o||t===""){return t}return ct(t)}function ht(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ct(t){if(t===""){return t}if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function ut(t){if(t===""){return t}const o=new URL("https://example.com");o.username=t;return o.username}function mt(t){if(t===""){return t}const o=new URL("https://example.com");o.password=t;return o.password}function dt(t){if(t===""){return t}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t)){throw new TypeError(`Invalid hostname '${t}'`)}const o=new URL("https://example.com");o.hostname=t;return o.hostname}function yt(t){if(t===""){return t}if(/[^0-9a-fA-F[\]:]/g.test(t)){throw new TypeError(`Invalid IPv6 hostname '${t}'`)}return t.toLowerCase()}function pt(t){if(t===""){return t}if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535){return t}throw new TypeError(`Invalid port '${t}'.`)}function ft(t){if(t===""){return t}const o=new URL("https://example.com");o.pathname=t[0]!=="/"?"/-"+t:t;if(t[0]!=="/"){return o.pathname.substring(2,o.pathname.length)}return o.pathname}function bt(t){if(t===""){return t}const o=new URL(`data:${t}`);return o.pathname}function gt(t){if(t===""){return t}const o=new URL("https://example.com");o.search=t;return o.search.substring(1,o.search.length)}function vt(t){if(t===""){return t}const o=new URL("https://example.com");o.hash=t;return o.hash.substring(1,o.hash.length)}var wt=class{constructor(t){this.tokenList=[];this.internalResult={};this.tokenIndex=0;this.tokenIncrement=1;this.componentStart=0;this.state=0;this.groupDepth=0;this.hostnameIPv6BracketDepth=0;this.shouldTreatAsStandardURL=false;this.input=t}get result(){return this.internalResult}parse(){this.tokenList=P(this.input,true);for(;this.tokenIndex<this.tokenList.length;this.tokenIndex+=this.tokenIncrement){this.tokenIncrement=1;if(this.tokenList[this.tokenIndex].type==="END"){if(this.state===0){this.rewind();if(this.isHashPrefix()){this.changeState(9,1)}else if(this.isSearchPrefix()){this.changeState(8,1);this.internalResult.hash=""}else{this.changeState(7,0);this.internalResult.search="";this.internalResult.hash=""}continue}else if(this.state===2){this.rewindAndSetState(5);continue}this.changeState(10,0);break}if(this.groupDepth>0){if(this.isGroupClose()){this.groupDepth-=1}else{continue}}if(this.isGroupOpen()){this.groupDepth+=1;continue}switch(this.state){case 0:if(this.isProtocolSuffix()){this.internalResult.username="";this.internalResult.password="";this.internalResult.hostname="";this.internalResult.port="";this.internalResult.pathname="";this.internalResult.search="";this.internalResult.hash="";this.rewindAndSetState(1)}break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let t=7;let o=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){t=2;o=3}else if(this.shouldTreatAsStandardURL){t=2}this.changeState(t,o)}break;case 2:if(this.isIdentityTerminator()){this.rewindAndSetState(3)}else if(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix()){this.rewindAndSetState(5)}break;case 3:if(this.isPasswordPrefix()){this.changeState(4,1)}else if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 4:if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 5:if(this.isIPv6Open()){this.hostnameIPv6BracketDepth+=1}else if(this.isIPv6Close()){this.hostnameIPv6BracketDepth-=1}if(this.isPortPrefix()&&!this.hostnameIPv6BracketDepth){this.changeState(6,1)}else if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 6:if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 7:if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 8:if(this.isHashPrefix()){this.changeState(9,1)}break}}}changeState(t,o){switch(this.state){case 0:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 2:break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString();break}this.changeStateWithoutSettingComponent(t,o)}changeStateWithoutSettingComponent(t,o){this.state=t;this.componentStart=this.tokenIndex+o;this.tokenIndex+=o;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(t){this.rewind();this.state=t}safeToken(t){if(t<0){t=this.tokenList.length-t}if(t<this.tokenList.length){return this.tokenList[t]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(t,o){const e=this.safeToken(t);return e.value===o&&(e.type==="CHAR"||e.type==="ESCAPED_CHAR"||e.type==="INVALID_CHAR")}isProtocolSuffix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}nextIsAuthoritySlashes(){return this.isNonSpecialPatternChar(this.tokenIndex+1,"/")&&this.isNonSpecialPatternChar(this.tokenIndex+2,"/")}isIdentityTerminator(){return this.isNonSpecialPatternChar(this.tokenIndex,"@")}isPasswordPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPortPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPathnameStart(){return this.isNonSpecialPatternChar(this.tokenIndex,"/")}isSearchPrefix(){if(this.isNonSpecialPatternChar(this.tokenIndex,"?")){return true}if(this.tokenList[this.tokenIndex].value!=="?"){return false}const t=this.safeToken(this.tokenIndex-1);return t.type!=="NAME"&&t.type!=="PATTERN"&&t.type!=="CLOSE"&&t.type!=="ASTERISK"}isHashPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,"#")}isGroupOpen(){return this.tokenList[this.tokenIndex].type=="OPEN"}isGroupClose(){return this.tokenList[this.tokenIndex].type=="CLOSE"}isIPv6Open(){return this.isNonSpecialPatternChar(this.tokenIndex,"[")}isIPv6Close(){return this.isNonSpecialPatternChar(this.tokenIndex,"]")}makeComponentString(){const t=this.tokenList[this.tokenIndex];const o=this.safeToken(this.componentStart).index;return this.input.substring(o,t.index)}computeShouldTreatAsStandardURL(){const t={};Object.assign(t,B);t.encodePart=ct;const o=q(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=tt(o)}};var kt=["protocol","username","password","hostname","port","pathname","search","hash"];var xt="*";function St(t,o){if(typeof t!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const e=new URL(t,o);return{protocol:e.protocol.substring(0,e.protocol.length-1),username:e.username,password:e.password,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search!=""?e.search.substring(1,e.search.length):void 0,hash:e.hash!=""?e.hash.substring(1,e.hash.length):void 0}}function Ct(t,o){if(!o){return t}return jt(t)}function zt(t,o,e){let s;if(typeof o.baseURL==="string"){try{s=new URL(o.baseURL);t.protocol=Ct(s.protocol.substring(0,s.protocol.length-1),e);t.username=Ct(s.username,e);t.password=Ct(s.password,e);t.hostname=Ct(s.hostname,e);t.port=Ct(s.port,e);t.pathname=Ct(s.pathname,e);t.search=Ct(s.search.substring(1,s.search.length),e);t.hash=Ct(s.hash.substring(1,s.hash.length),e)}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}}if(typeof o.protocol==="string"){t.protocol=at(o.protocol,e)}if(typeof o.username==="string"){t.username=lt(o.username,e)}if(typeof o.password==="string"){t.password=it(o.password,e)}if(typeof o.hostname==="string"){t.hostname=st(o.hostname,e)}if(typeof o.port==="string"){t.port=rt(o.port,t.protocol,e)}if(typeof o.pathname==="string"){t.pathname=o.pathname;if(s&&!K(t.pathname,e)){const o=s.pathname.lastIndexOf("/");if(o>=0){t.pathname=Ct(s.pathname.substring(0,o+1),e)+t.pathname}}t.pathname=nt(t.pathname,t.protocol,e)}if(typeof o.search==="string"){t.search=et(o.search,e)}if(typeof o.hash==="string"){t.hash=ot(o.hash,e)}return t}function jt(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function _t(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Lt(t,o){const e=".*";const s=`[^${_t(o.delimiter===void 0?"/#?":o.delimiter)}]+?`;const i=/[$_\u200C\u200D\p{ID_Continue}]/u;let l="";for(let n=0;n<t.length;++n){const r=t[n];const a=n>0?t[n-1]:null;const h=n<t.length-1?t[n+1]:null;if(typeof r==="string"){l+=jt(r);continue}if(r.pattern===""){if(r.modifier===""){l+=jt(r.prefix);continue}l+=`{${jt(r.prefix)}}${r.modifier}`;continue}const c=typeof r.name!=="number";const u=o.prefixes!==void 0?o.prefixes:"./";let m=r.suffix!==""||r.prefix!==""&&(r.prefix.length!==1||!u.includes(r.prefix));if(!m&&c&&r.pattern===s&&r.modifier===""&&h&&!h.prefix&&!h.suffix){if(typeof h==="string"){const t=h.length>0?h[0]:"";m=i.test(t)}else{m=typeof h.name==="number"}}if(!m&&r.prefix===""&&a&&typeof a==="string"&&a.length>0){const t=a[a.length-1];m=u.includes(t)}if(m){l+="{"}l+=jt(r.prefix);if(c){l+=`:${r.name}`}if(r.pattern===e){if(!c&&(!a||typeof a==="string"||a.modifier||m||r.prefix!=="")){l+="*"}else{l+=`(${e})`}}else if(r.pattern===s){if(!c){l+=`(${s})`}}else{l+=`(${r.pattern})`}if(r.pattern===s&&c&&r.suffix!==""){if(i.test(r.suffix[0])){l+="\\"}}l+=jt(r.suffix);if(m){l+="}"}l+=r.modifier}return l}var Tt=class{constructor(t={},o,e){this.regexp={};this.keys={};this.component_pattern={};try{let s=void 0;if(typeof o==="string"){s=o}else{e=o}if(typeof t==="string"){const o=new wt(t);o.parse();t=o.result;if(s===void 0&&typeof t.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}t.baseURL=s}else{if(!t||typeof t!=="object"){throw new TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`)}if(s){throw new TypeError(`parameter 1 is not of type 'string'.`)}}if(typeof e==="undefined"){e={ignoreCase:false}}const i={ignoreCase:e.ignoreCase===true};const l={pathname:xt,protocol:xt,username:xt,password:xt,hostname:xt,port:xt,search:xt,hash:xt};this.pattern=zt(l,t,true);if(ht(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of kt){if(!(n in this.pattern))continue;const t={};const o=this.pattern[n];this.keys[n]=[];switch(n){case"protocol":Object.assign(t,B);t.encodePart=ct;break;case"username":Object.assign(t,B);t.encodePart=ut;break;case"password":Object.assign(t,B);t.encodePart=mt;break;case"hostname":Object.assign(t,V);if(Z(o)){t.encodePart=yt}else{t.encodePart=dt}break;case"port":Object.assign(t,B);t.encodePart=pt;break;case"pathname":if(tt(this.regexp.protocol)){Object.assign(t,X,i);t.encodePart=ft}else{Object.assign(t,B,i);t.encodePart=bt}break;case"search":Object.assign(t,B,i);t.encodePart=gt;break;case"hash":Object.assign(t,B,i);t.encodePart=vt;break}try{const e=R(o,t);this.regexp[n]=U(e,this.keys[n],t);this.component_pattern[n]=Lt(e,t)}catch{throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}test(t={},o){let e={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&o){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return false}try{if(typeof t==="object"){e=zt(e,t,false)}else{e=zt(e,St(t,o),false)}}catch(t){return false}let s;for(s of kt){if(!this.regexp[s].exec(e[s])){return false}}return true}exec(t={},o){let e={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&o){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return}try{if(typeof t==="object"){e=zt(e,t,false)}else{e=zt(e,St(t,o),false)}}catch(t){return null}let s={};if(o){s.inputs=[t,o]}else{s.inputs=[t]}let i;for(i of kt){let t=this.regexp[i].exec(e[i]);if(!t){return null}let o={};for(let[e,s]of this.keys[i].entries()){if(typeof s.name==="string"||typeof s.name==="number"){let i=t[e+1];o[s.name]=i}}s[i]={input:e[i]||"",groups:o}}return s}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}};if(!globalThis.URLPattern){globalThis.URLPattern=Tt}const At=".sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer}main.sc-smoothly-app-room{overflow-y:auto}:not([label].sc-smoothly-app-room-h,[icon]).sc-smoothly-app-room-h,[disabled].sc-smoothly-app-room-h{display:none}.sc-smoothly-app-room-h>main.sc-smoothly-app-room{display:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room{height:100%;list-style:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0 1.5em;height:100%}[selected].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{display:flex;color:rgb(var(--smoothly-color-contrast));background:rgb(var(--smoothly-color-shade))}.sc-smoothly-app-room-h:hover>li.sc-smoothly-app-room>a.sc-smoothly-app-room{color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));transition:0.2s}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>smoothly-icon.sc-smoothly-app-room{align-self:inherit;margin-bottom:1em}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}}";const It=class{constructor(o){t(this,o);this.smoothlyRoomSelected=e(this,"smoothlyRoomSelected",7);this.smoothlyRoomLoaded=e(this,"smoothlyRoomLoaded",7);this.label=undefined;this.icon=undefined;this.disabled=undefined;this.path="";this.to=undefined;this.selected=undefined;this.content=undefined}componentWillLoad(){this.selected=(typeof this.path=="string"?new URLPattern({pathname:this.path}):this.path).test(window.location);this.smoothlyRoomLoaded.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(t,o){this.selected=t;if(t)this.smoothlyRoomSelected.emit({history:!!(o===null||o===void 0?void 0:o.history)})}clickHandler(t){if(!t.metaKey&&!t.ctrlKey&&t.which!=2&&t.button!=1){t.preventDefault();this.setSelected(true)}}render(){return o(s,null,o("li",null,o("a",{href:typeof this.path=="string"?this.path:this.path.pathname,onClick:t=>this.clickHandler(t)},this.icon?o("smoothly-icon",{name:this.icon,toolTip:this.label}):this.label)),o("main",{ref:t=>this.contentElement=t},this.content&&o("smoothly-lazy",{content:this.content}),o("slot",null)))}};It.style=At;const Ot=".sc-smoothly-back-to-top-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";const $t=class{constructor(o){t(this,o);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){window.addEventListener("scroll",(()=>{this.visible=document.body.scrollTop>20||document.documentElement.scrollTop>20}))}render(){const t={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return o(s,{style:t,onClick:()=>window.scrollTo({top:0,left:0,behavior:"smooth"})},o("smoothly-icon",{name:"caret-up-outline"}))}};$t.style=Ot;const Et="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Dt=class{constructor(o){t(this,o);this.smoothlyNavStatus=e(this,"smoothlyNavStatus",7);this.smoothlyVisibleStatus=e(this,"smoothlyVisibleStatus",7);this.visible=undefined;this.open=false;this.mediaQuery="(max-width: 900px)";this.history=undefined}componentWillLoad(){this.history=window.matchMedia(this.mediaQuery).matches;if(!window.matchMedia(this.mediaQuery).matches)this.visible=false;else this.visible=true;this.smoothlyNavStatus.emit(!this.visible);this.smoothlyVisibleStatus.emit(this.visible)}openChanged(){this.smoothlyNavStatus.emit(this.open)}clickHandler(t){if(this.visible)this.open=!this.open}resizeHandler(){const t=window.matchMedia(this.mediaQuery).matches;if(t!=this.history){if(t){this.visible=true;this.open=false}else{this.visible=false;this.open=false}this.smoothlyVisibleStatus.emit(this.visible);this.smoothlyNavStatus.emit(!this.visible)}this.history=t}render(){return o(s,null,o("span",{class:"burger"},o("smoothly-icon",{name:"menu"})))}get element(){return i(this)}static get watchers(){return{open:["openChanged"]}}};Dt.style=Et;const Mt=({disabled:t,type:e,link:s})=>t&&(s||e=="link")?o("slot",null):e=="link"?o("a",{href:s,onClick:!s||!Rt(s)?undefined:t=>(t.preventDefault(),f(Pt(s)))},o("slot",{name:"start"}),o("slot",null),o("slot",{name:"end"})):e=="download"?o("a",{href:s,target:"_blank",download:true},o("slot",{name:"start"}),o("slot",null),o("slot",{name:"end"})):o("button",{disabled:t},o("slot",{name:"start"}),o("slot",null),o("slot",{name:"end"}));function Pt(t){let o;if(t.startsWith(window.location.origin))o=new URL(t).pathname;else if(t.match(/^\//))o=new URL(t,window.location.origin).pathname;else o=new URL(`${window.location.pathname.replace(/\/+$/,"")}/${t}`,window.location.origin).pathname;return o}function Rt(t){return new URL(t,window.location.origin).origin==window.location.origin}const Nt="[color=default].sc-smoothly-button{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-button{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-button{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-button{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-button{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-button{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-button{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-button{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-button{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-button{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-button-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-button-h{display:inline;border:none}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}a.sc-smoothly-button,button.sc-smoothly-button{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-button{justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-button-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-button{padding:0.8em;min-width:8em}.sc-smoothly-button-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-button{padding:0.6em}[size=icon].sc-smoothly-button-h>button.sc-smoothly-button{padding:0.5em}[shape=rounded].sc-smoothly-button-h>button.sc-smoothly-button,[shape=rounded].sc-smoothly-button-h{border-radius:2rem}[type=button].sc-smoothly-button-h>a.sc-smoothly-button{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-button-h>button.sc-smoothly-button{font-size:100%}[size=large].sc-smoothly-button-h>button.sc-smoothly-button{font-size:130%}.sc-smoothly-button-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-button-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-button-h>button.sc-smoothly-button,[shape=rounded].sc-smoothly-button-h{border-radius:2rem}.sc-smoothly-button-h:not([fill=clear]):hover,.sc-smoothly-button-h:not([fill=clear]):focus,.sc-smoothly-button-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-button-h:not([fill=clear]):hover>button.sc-smoothly-button,.sc-smoothly-button-h:not([fill=clear]):focus>button.sc-smoothly-button,.sc-smoothly-button-h:not([fill=clear]):active>button.sc-smoothly-button,.sc-smoothly-button-h:not([fill=clear]):hover .sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h:not([fill=clear]):focus .sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h:not([fill=clear]):active .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-button-h:hover>button.sc-smoothly-button,[fill=clear].sc-smoothly-button-h:focus>button.sc-smoothly-button,[fill=clear].sc-smoothly-button-h:active>button.sc-smoothly-button{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h:not([fill]),[fill=default].sc-smoothly-button-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-button-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-button-h>button.sc-smoothly-button,[fill=default].sc-smoothly-button-h>button.sc-smoothly-button{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button,[fill=clear].sc-smoothly-button-h>button.sc-smoothly-button{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-button-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-button-h{background:transparent;border-color:transparent}.sc-smoothly-button-s>smoothly-icon[slot=start],.sc-smoothly-button-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-button-h{display:none}";const Ht=class{constructor(o){t(this,o);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.link=undefined}render(){return o(Mt,{disabled:this.disabled,type:this.type,link:this.link},o("slot",null))}};Ht.style=Nt;const Ft=".sc-smoothly-button-confirm-h{display:inline-block}[disabled].sc-smoothly-button-confirm-h{opacity:0.5}.sc-smoothly-button-confirm-h:not([warning]) smoothly-button.sc-smoothly-button-confirm:first-child{display:none}[warning].sc-smoothly-button-confirm-h smoothly-button.sc-smoothly-button-confirm:nth-child(2){display:none}[expand].sc-smoothly-button-confirm-h{width:100%}";const Yt=class{constructor(o){t(this,o);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.smoothlyConfirm=e(this,"smoothlyConfirm",7);this.color=undefined;this.name=undefined;this.doubleClickTime=.2;this.expand=undefined;this.fill=undefined;this.disabled=false;this.shape=undefined;this.type="button";this.size=undefined;this.clickTimeStamp=undefined}clickHandler(t){if(this.clickTimeStamp&&t.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=t.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return o(s,{warning:this.clickTimeStamp},o("smoothly-button",{fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:this.type,onClick:t=>this.clickHandler(t)},o("smoothly-icon",{name:"alert-outline",fill:"solid",color:"warning",size:"small"})),o("smoothly-button",{fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:this.type,onClick:t=>this.clickHandler(t)},o("slot",null)))}};Yt.style=Ft;const Wt="smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}";const Ut=class{constructor(o){t(this,o)}render(){return[o("h2",null,"Buttons"),o("section",null,o("h4",null,"Confirm button (two clicks)"),o("div",null,o("smoothly-button-confirm",{name:"confirm",type:"button",shape:"rounded",color:"danger",size:"large"},"Delete"),o("smoothly-button-confirm",{name:"confirm-icon",type:"button",shape:"rounded",color:"success",size:"icon"},o("smoothly-icon",{name:"checkmark-outline",size:"small"}))),o("h4",null,"Toggle button"),o("smoothly-toggle",null,o("smoothly-icon",{name:"card",fill:"solid",slot:"icon-slot"})),o("smoothly-toggle",null,o("smoothly-icon",{name:"briefcase",slot:"icon-slot"})),o("smoothly-toggle",null,o("smoothly-icon",{name:"airplane",slot:"icon-slot"})),o("h4",null,"Toggle switches"),o("smoothly-toggle-switch",{checkmark:false,color:"primary",disabled:false,size:"small",onSmoothlyToggleSwitchChange:t=>{console.log("toggleSwitch ",t.detail)}}),o("smoothly-toggle-switch",{disabled:false}),o("smoothly-toggle-switch",{disabled:false,size:"large"}),o("h4",null,"Links with icons"),o("smoothly-button",{type:"link"},o("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"type link"),o("smoothly-button",{type:"button",color:"warning",fill:"default"},o("smoothly-icon",{name:"call",slot:"start"}),o("a",{href:"https://google.com"},"link")),o("smoothly-button",{link:"https://google.com",type:"link"},o("smoothly-icon",{name:"arrow-forward",slot:"end"}),"link + type link"),o("h4",null,"Size and Color test"),o("smoothly-button",{color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),o("smoothly-button",{color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),o("smoothly-button",{color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),o("smoothly-button",{color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),o("smoothly-button",{color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),o("smoothly-button",{color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),o("smoothly-button",{color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),o("smoothly-button",{color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),o("smoothly-button",{color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),o("h4",null,"Expand examples"),o("smoothly-button",{color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),o("smoothly-button",{color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),o("h4",null,"Fill examples"),o("div",null,o("smoothly-button",{shape:"rounded",color:"primary",fill:"solid"},o("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"Fill Solid"),o("smoothly-button",{shape:"rounded",color:"secondary",fill:"outline"},o("smoothly-icon",{name:"checkmark-circle",slot:"start",fill:"clear"}),"Fill Outline"),o("smoothly-button",{shape:"rounded",color:"tertiary",fill:"clear"},o("smoothly-icon",{name:"checkmark-circle",slot:"start",fill:"clear"}),"Fill Clear"),o("smoothly-button",{size:"icon",shape:"rounded",color:"success",fill:"solid"},o("smoothly-icon",{name:"basketball",fill:"solid"}))),o("h4",null,'Buttons with Icon in "start"'),o("div",null,o("smoothly-button",{shape:"rounded",fill:"solid",color:"warning"},o("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"Check"),o("smoothly-button",{shape:"rounded",fill:"solid",color:"secondary"},o("smoothly-icon",{name:"basketball",slot:"start"}),"Check"),o("smoothly-button",{shape:"rounded",fill:"solid",color:"success"},o("smoothly-icon",{name:"call",slot:"start"}),"Check"),o("smoothly-button",{size:"icon",fill:"solid",shape:"rounded",color:"success"},o("smoothly-icon",{name:"call"})),o("smoothly-button",{size:"flexible",fill:"solid",color:"success"},o("smoothly-icon",{name:"airplane"}))),o("h4",null,'Buttons with Icon in "end"'),o("smoothly-button",{fill:"solid",color:"light"},"Go Forward",o("smoothly-icon",{name:"arrow-forward",slot:"end"})),o("h4",null,"Test for icon button"),o("div",null,o("smoothly-button",{size:"icon",fill:"solid",shape:"rounded",color:"success"},o("smoothly-icon",{name:"call"})),o("smoothly-button",{size:"icon",shape:"rounded",color:"warning",fill:"solid"},o("smoothly-icon",{name:"search-outline"})),o("smoothly-button",{size:"icon",shape:"rounded",color:"secondary"},o("smoothly-icon",{name:"checkmark-circle"}))),o("h4",null,"Link examples"),o("div",null,o("smoothly-button",{type:"link"},"type link"),o("smoothly-button",{type:"button",fill:"clear"},o("a",{href:"https://google.com"},"link")),o("smoothly-button",{link:"https://google.com",type:"link"},"link + type link")),o("h4",null,"Disabled buttons"),o("div",null,o("smoothly-button",{disabled:true,fill:"solid",color:"secondary"},"Disabled"),o("smoothly-button",{type:"link",link:"https://google.com",disabled:true},"Disabled link"))),o("smoothly-back-to-top",null)]}};Ut.style=Wt;function qt(t){const o=new Date(t);o.setDate(1);let e=-((o.getDay()+6)%7)+1;const s=[];for(let o=0;o<6;o++){const i=[];for(let o=0;o<7;o++){const o=new Date(t);o.setUTCDate(e++);i.push(g.create(o))}if(o<5||g.firstOfMonth(i[0])==g.firstOfMonth(t))s.push(i)}return s}function Bt(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const o=[];for(let e=0;e<7;e++){o.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return o}function Vt(t){const o=new globalThis.Date(t);const e=[];for(let s=0;s<12;s++){o.setMonth(s,28);const i=g.create(o);e.push({date:i,name:o.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return e}function Xt(t){const o=new globalThis.Date(t);const e=(new Date).getFullYear()-10;const s=(new Date).getFullYear()+10;const i=[];for(let l=e;l<=s;l++){o.setFullYear(l);const e=g.create(o);i.push({date:e,name:o.toLocaleString(undefined,{year:"numeric"}),selected:e==t})}return i}const Kt=".sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;margin-bottom:1rem}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{width:calc(100% - 1em);padding:0.5em 0.5em 0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}th.sc-smoothly-calendar,td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;background-color:rgb(var(--smoothly-default-shade));cursor:pointer;user-select:none}td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}td.sc-smoothly-calendar:nth-child(6),td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-danger-tint))}td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-danger-tint), var(--other-month-opacity))}td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}td.sc-smoothly-calendar:not(.selected,.dateRange).sc-smoothly-calendar:not(:hover).today{background:rgb(var(--smoothly-dark-tint));color:rgb(var(--smoothly-dark-contrast))}td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}td.disable.sc-smoothly-calendar{cursor:not-allowed;background-color:rgb(var(--smoothly-default-tint), 0.5);color:rgb(var(--smoothly-default-contrast), 0.5)}";const Jt=class{constructor(o){t(this,o);this.smoothlyValueChange=e(this,"smoothlyValueChange",7);this.smoothlyStartChange=e(this,"smoothlyStartChange",7);this.smoothlyEndChange=e(this,"smoothlyEndChange",7);this.smoothlyDateSet=e(this,"smoothlyDateSet",7);this.smoothlyDateRangeSet=e(this,"smoothlyDateRangeSet",7);this.clickCounter=0;this.month=undefined;this.value=g.now();this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.doubleInput=undefined;this.firstSelected=undefined}onStart(t){this.smoothlyStartChange.emit(t)}onEnd(t){this.smoothlyEndChange.emit(t)}onClick(t){this.smoothlyValueChange.emit(this.value=t);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=t;else{if(this.start&&t>this.start)this.end=t;else this.start=t}}!this.doubleInput&&this.smoothlyDateSet.emit(this.value);this.doubleInput&&this.clickCounter%2==0&&this.start&&this.end&&this.smoothlyDateRangeSet.emit({start:this.start,end:this.end})}onHover(t){if(this.doubleInput&&this.clickCounter%2==1){if(t<this.frozenDate){this.start=t;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=t}}}render(){var t,e;return[o("smoothly-input-month",{value:(t=this.month)!==null&&t!==void 0?t:this.value,onSmoothlyValueChange:t=>{this.month=t.detail;t.stopPropagation()}}),o("table",null,o("thead",null,o("tr",null,Bt().map((t=>o("th",null,t))))),qt((e=this.month)!==null&&e!==void 0?e:this.value).map((t=>o("tr",null,t.map((t=>{var e,s,i;return o("td",{tabindex:1,onMouseOver:()=>{!this.doubleInput&&(this.min||this.max)&&(t<this.min||t>this.max)?undefined:this.onHover(t)},onClick:(this.min||this.max)&&(t<this.min||t>this.max)?undefined:()=>this.onClick(t),class:(t==this.value?["selected"]:[]).concat(...t==g.now()?["today"]:[],g.firstOfMonth((e=this.month)!==null&&e!==void 0?e:this.value)==g.firstOfMonth(t)?["currentMonth"]:[],this.doubleInput?this.start==t||this.end==t?["selected"]:t>=((s=this.start)!==null&&s!==void 0?s:"")&&t<=((i=this.end)!==null&&i!==void 0?i:"")?["dateRange"]:[]:"").concat(...this.min||this.max?t<this.min||t>this.max?["disable"]:[]:"").join(" ")},t.substring(8,10))}))))))]}get element(){return i(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};Jt.style=Kt;const Gt=".sc-smoothly-dialog-h{display:block;position:fixed;left:0;top:0;width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>main.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header]) main.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";const Zt=class{constructor(o){t(this,o);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(t){if(n.is(t.detail)&&t.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return[o("header",null,this.closable?o("smoothly-trigger",{fill:"clear",name:"close"},o("smoothly-icon",{name:"close-circle",fill:"solid",color:this.color})):[],this.header?o("h1",null,this.header):o("slot",{name:"header"})),o("main",null,o("slot",null))]}render(){return o(s,this.hostData(),this.__stencil_render())}};Zt.style=Gt;const Qt=class{constructor(o){t(this,o)}render(){return o("smoothly-dialog",{color:"default",style:{"margin-top":"6vh"},closable:true},o("smoothly-frame",{url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}}))}};function to(t,o,e){let s=0;while(e.exec(t)!=null){s=e.lastIndex;if(e.lastIndex>o)break}e.lastIndex<=o&&(s=t.length);return s}function oo(t,o,e){let s=0;let i;while((i=e.exec(t))!=null){if(e.lastIndex-i[0].length<o)s=e.lastIndex-i[0].length;else break}return s}function eo(t,o,e){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return e=="backward"?oo(t,o,s):to(t,o,s)}var so;(function(t){function o(t){return t.direction=="backward"?t.start:t.end}t.getCursor=o;function e(t){return t.direction!="backward"?t.start:t.end}t.getStalker=e})(so||(so={}));var io;(function(t){function o(t){return{value:t.value,selection:{start:t.selection.start,end:t.selection.end,direction:t.selection.direction}}}t.copy=o})(io||(io={}));class lo{constructor(t){this.value=t.value;this.selection={start:t.selection?.start,end:t.selection?.end,direction:t.selection?.direction}}get(t,o=1){return this.value.substr(t,o)}is(t,...o){const e=this.get(t);return o.some((t=>e==t))}isDigit(t){const o=this.get(t);return o>="0"&&o<="9"}match(t){return this.value.match(t)}replace(t,o,e){let s;if(typeof t=="string"&&typeof o=="string"){let e;s=this;while((e=s.value.indexOf(t))>-1)s=s.replace(e,e+t.length,o)}else if(typeof t=="number"&&typeof o=="number"){const i={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!e)e="";i.value=this.value.slice(0,t)+e+this.value.slice(o,this.value.length);if(this.selection.start>=o)i.selection.start=this.selection.start+e.length-o+t;else if(this.selection.start>t&&this.selection.start<o)i.selection.start=Math.min(this.selection.start,t+e.length);if(this.selection.end>=o)i.selection.end=this.selection.end+e.length-o+t;else if(this.selection.end>t&&this.selection.end<o)i.selection.end=Math.min(this.selection.end,t+e.length);s=new lo(i)}return s||this}insert(t,o){return this.replace(t,t,o)}append(t){return this.insert(this.value.length,t)}prepend(t){return this.insert(0,t)}suffix(t){return new lo({value:this.value+t,selection:this.selection})}delete(t,o){let e;if(!this.value)e=this;else if(typeof t=="string"){let o;e=this;while(t&&(o=e.value.indexOf(t))>-1)e=e.delete(o,o+t.length)}else e=this.replace(t,o||t+1,"");return e}truncate(t){return this.value.length>=t?this.delete(t,this.value.length):this}pad(t,o,e){let s=this;while(t>s.value.length+o.length)s=s.insert(e,o);if(t>s.value.length)s=s.insert(e,o.substring(0,t-s.value.length));return s}padEnd(t,o){return this.pad(t,o,this.value.length)}padStart(t,o){return this.pad(t,o,0)}toLower(){return this.map((t=>t.toLowerCase()))}toUpper(){return this.map((t=>t.toUpperCase()))}map(t){let o=this;let e=0;for(let s=0;s<this.value.length;s++){const i=t(this.get(s),s);o=o.replace(e,e+1,i);e+=i.length}return o}static copy(t){return new lo({...t})}static create(){return new lo({value:"",selection:{start:0,end:0}})}static modify(t){return new lo(typeof t=="string"?{value:t,selection:{start:t.length,end:t.length}}:t)}}var no;(function(t){function o(t,o,e){let h=io.copy(t.unformat(lo.copy(o)));if(o.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(o.value))e?.key&&(e.key="Backspace");if(e){if(e.ctrlKey||e.metaKey){if(e.key=="a")n(h,0,h.value.length,"forward");else if(["ArrowLeft","ArrowRight"].includes(e.key)&&o?.type!="password")h=s(t,o,e);else if(["Delete","Backspace"].includes(e.key)&&o?.type!="password")h=i(t,o,e)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(e.key))l(h,e);else if(["Delete","Backspace"].includes(e.key)){h.selection.start==h.selection.end&&n(h,h.selection.start+(e.key=="Backspace"?-1:0),h.selection.end+(e.key=="Delete"?1:0));r(h)}else if(e.key!="Unidentified"){r(h);t.allowed(e.key,h)&&a(h,e.key)}}return t.format(lo.copy(h))}t.apply=o;function e(t,o,e){const s=io.copy(t.unformat(lo.copy(o)));a(s,e);return t.format(lo.copy(s))}t.paste=e;function s(t,o,e){let s=so.getCursor(o.selection);let i=so.getStalker(o.selection);s=eo(o.value,s,e.key=="ArrowLeft"?"backward":"forward");i=e.shiftKey?i:s;return io.copy(t.unformat(lo.copy({...o,selection:{start:Math.min(i,s),end:Math.max(i,s),direction:i<s?"forward":i>s?"backward":"none"}})))}function i(t,o,e){const s=so.getCursor(o.selection);const i=eo(o.value,s,e.key=="Backspace"?"backward":"forward");const l=io.copy(t.unformat(lo.copy({...o,selection:{start:Math.min(s,i),end:Math.max(s,i),direction:"none"}})));l.value=l.value.substring(0,l.selection.start)+l.value.substring(l.selection.end);l.selection.end=l.selection.start;return l}function l(t,o){let e=so.getCursor(t.selection);let s=so.getStalker(t.selection);e=o.key=="Home"?0:o.key=="End"?t.value.length:t.selection.start==t.selection.end||o.shiftKey?Math.min(Math.max(e+(o.key=="ArrowLeft"?-1:1),0),t.value.length):o.key=="ArrowLeft"?t.selection.start:t.selection.end;s=o.shiftKey?s:e;t.selection.direction=s<e?"forward":s>e?"backward":"none";t.selection.start=Math.min(s,e);t.selection.end=Math.max(s,e)}function n(t,o,e,s){t.selection.start=o;t.selection.end=e;s&&(t.selection.direction=s)}function r(t){a(t,"")}function a(t,o){t.value=t.value.substring(0,t.selection.start)+o+t.value.substring(t.selection.end);t.selection.start=t.selection.start+o.length;t.selection.end=t.selection.start}})(no||(no={}));const ro={};function ao(t,o){ro[t]=o}function ho(t,...o){const e=ro[t];return e&&e(o)}function co(t,o,...e){const s=ho(o,...e);return s?s.format(lo.modify(s.toString(typeof t=="string"?uo(t,o,e):t))).value:""}function uo(t,o,...e){const s=ho(o,e);return s?s.fromString(s.unformat(lo.modify(t)).value):undefined}class mo{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}format(t){return{...t,type:"tel",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(t){return t}allowed(t,o){return o.value.length<3&&t>="0"&&t<="9"}}ao("card-csc",(()=>new mo));class yo{toString(t){return Array.isArray(t)&&t.length==2&&typeof t[0]=="number"&&typeof t[1]=="number"?t[0].toString().padStart(2,"0")+t[1].toString().padStart(2,"0"):""}fromString(t){return typeof t=="string"&&t.length==4?[Number.parseInt(t.slice(0,2)),Number.parseInt(t.slice(2))]:undefined}format(t){let o=t;if(t.value.length>0&&!t.is(0,"0","1"))o=o.prepend("0");if(o.value.length>1)o=o.insert(2," / ");return{...o,type:"tel",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(t){return t.delete(" / ")}allowed(t,o){return o.value.length<4&&t>="0"&&t<="9"}}ao("card-expires",(()=>new yo));class po{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}format(t){const o=fo(t.value);const e=t.map(((t,e)=>(e!=0&&e%4==0&&e+1<o.length[0]?" ":"")+t));return{...e,type:"tel",autocomplete:"cc-number",length:o.length.slice(1),pattern:o.verification,classes:["issuer-"+o.icon]}}unformat(t){return t.delete(" ")}allowed(t,o){const e=fo(o.value);return t>="0"&&t<="9"&&o.value.length<e.length[0]}}ao("card-number",(()=>new po));function fo(t){let o=bo;for(const e in go)if(Object.prototype.hasOwnProperty.call(go,e)&&go[e].identification.test(t)){o={...bo,name:e,...go[e]};break}return o}const bo={name:"unknown",verification:/^\d{19}$/,identification:/^\d/,length:[16,16,19],icon:"generic"};const go={amex:{verification:/^3[47][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{3}$/,identification:/^3[47]/,length:[15,18,18],icon:"amex"},dankort:{verification:/^(5019)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(5019)\d+/,length:[16,19,19],icon:"generic"},diners:{verification:/^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{2}$/,identification:/^3(?:0[0-5]|[68][0-9])/,length:[14,17,17],icon:"diners"},discover:{verification:/^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^6(?:011|5[0-9]{2})/,length:[16,19,19],icon:"generic"},electron:{verification:/^((4026|4405|4508|4844|4913|4917)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|((4175)\s(00)[0-9]{2}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(4026|417500|4405|4508|4844|4913|4917)/,length:[16,19,19],icon:"generic"},interpayment:{verification:/^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(636)/,length:[16,19,19],icon:"generic"},jcb:{verification:/^((?:2131|1800)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|(35[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(?:2131|1800|35\d{3})/,length:[16,19,19],icon:"generic"},unionpay:{verification:/^(62|88)[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(62|88)/,length:[16,19,19],icon:"generic"},maestro:{verification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)/,length:[16,19,19],icon:"maestro"},mastercard:{verification:/^5[1-5][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,identification:/^5[1-5][0-9]/,length:[16,19,19],icon:"mastercard"},visa:{verification:/^4[0-9]{3}\s[0-9]{4}\s[0-9]{4}\s[0-9](?:[0-9]{3})?$/,identification:/^4[0-9]/,length:[16,16,19],icon:"visa"}};var vo;(function(t){function o(t){let o;switch(t){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":o="dd/mm/YYYY";break;case"en-US":o="mm/dd/YYYY";break;case"et-EE":case"de-AT":case"de-DE":case"he-IL":case"is-IS":case"lv-LV":case"pl-PL":case"ru-RU":case"fi-FI":o="dd.mm.YYYY";break;case"hi-IN":case"en-IN":o="dd-mm-YYYY";break;default:o="YYYY-mm-dd";break}return o}t.fromLocale=o;function e(t){let o;switch(t){case"dd/mm/YYYY":o="en-GB";break;case"mm/dd/YYYY":o="en-US";break;case"dd.mm.YYYY":o="de-DE";break;default:o="sv-SE";break}return o}t.toLocale=e;function s(t){return typeof t=="string"&&(t=="YYYY-mm-dd"||t=="dd/mm/YYYY"||t=="dd.mm.YYYY"||t=="mm/dd/YYYY")}t.is=s})(vo||(vo={}));class wo{constructor(t){this.separator=t}unformat(t){return t.delete(this.separator)}validMonth(t,o,e){return new Date(Number.parseInt(e??"2004"),Number.parseInt(o),0).getDate()>=Number.parseInt(t)}}const ko={};function xo(t,o){ko[t]=o}ao("date",(t=>{const o=t&&t.length>0?t[0]:undefined;const e=vo.is(o)?o:vo.fromLocale(o);const s=ko[e]??ko["YYYY-mm-dd"];return s()}));class So extends wo{constructor(t){super(t)}toString(t){return g.is(t)&&t.length==10?[t.substring(8,10),t.substring(5,7),t.substring(0,4)].join(this.separator):""}fromString(t){const o=t?.length==8?`${t.substring(4,8)}-${t.substring(2,4)}-${t.substring(0,2)}`:undefined;return g.is(o)?o:undefined}format(t){let o=t;if(o.get(0,1)>"3")o=o.insert(0,"0");if(o.value.length>1)o=o.insert(2,this.separator);if(o.get(3,1)>"1")o=o.insert(3,"0");if(o.value.length>4)o=o.insert(5,this.separator);return{...o,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|[12][0-9]|3[01])","(0[1-9]|1[012])","\\d{4}$"].join(this.separator))}}allowed(t,o){return o.selection.start==1&&o.value[0]=="3"?t>="0"&&t<="1":o.selection.start==1&&o.value[0]=="0"?t>="1"&&t<="9":o.selection.start==2?t>="0"&&t<="9"&&(t=="0"||t=="1"||this.validMonth(o.value.substring(0,2),t)):o.selection.start==3?t>="0"&&t<="9"&&this.validMonth(o.value.substring(0,2),o.value[2]+t):o.selection.start==7?t>="0"&&t<="9"&&this.validMonth(o.value.substring(0,2),o.value.substring(2,4),o.value.substring(4,7)+t):o.selection.start<8&&t>="0"&&t<="9"}}xo("dd.mm.YYYY",(()=>new So(".")));xo("dd/mm/YYYY",(()=>new So("/")));xo("dd-mm-YYYY",(()=>new So("-")));class Co extends wo{constructor(t){super(t)}toString(t){return g.is(t)&&t.length==10?[t.substring(5,7),t.substring(8,10),t.substring(0,4)].join(this.separator):""}fromString(t){const o=t.length==8?`${t.substring(4,8)}-${t.substring(0,2)}-${t.substring(2,4)}`:undefined;return g.is(o)?o:undefined}format(t){let o=t;if(o.get(0,1)>"1")o=o.insert(0,"0");if(o.value.length>1)o=o.insert(2,this.separator);if(o.get(3,1)>(o.get(0,2)=="02"?"2":"3"))o=o.insert(3,"0");if(o.value.length>4)o=o.insert(5,this.separator);return{...o,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])","\\d{4}$"].join(this.separator))}}allowed(t,o){const e=o.selection.start==1&&o.value[0]=="1"?t>="0"&&t<="2":o.selection.start==1&&o.value[0]=="0"?t>="1"&&t<="9":o.selection.start==3?t>="0"&&t<="9"&&this.validMonth(o.value[2]+t,o.value.substring(0,2)):o.selection.start==7?t>="0"&&t<="9"&&this.validMonth(o.value.substring(2,4),o.value.substring(0,2),o.value.substring(4,7)+t):o.selection.start<8&&t>="0"&&t<="9";return e}}xo("mm/dd/YYYY",(()=>new Co("/")));class zo extends wo{constructor(t){super(t)}toString(t){return typeof t!="string"?"":t}fromString(t){const o=t?.length==8?`${t.substring(0,4)}-${t.substring(4,6)}-${t.substring(6,8)}`:undefined;return g.is(o)?o:undefined}daysInMonth(t){const o=`${t.substring(0,4)}-${t.substring(4,6)}-01`;return g.is(o)?+g.lastOfMonth(`${t.substring(0,4)}-${t.substring(4,6)}-01`).substring(8,10):31}format(t){let o=t;if(o.value.length>3){o=o.insert(4,this.separator);if(o.get(5,1)>"1")o=o.insert(5,"0");if(o.value.length>6){o=o.insert(7,this.separator);if(o.get(8,1)>this.daysInMonth(t.value).toString().substring(0,1))o=o.insert(8,"0")}}return{...o,type:"text",length:[0,10],pattern:new RegExp(["^\\d{4}","(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])$"].join(this.separator))}}allowed(t,o){const e=this.daysInMonth(o.value);return o.selection.start==5&&o.value[4]=="0"?t>="1"&&t<="9":o.selection.start==5&&o.value[4]=="1"?t>="0"&&t<="2":o.selection.start==7&&o.value[6]=="0"?t>="1"&&t<="9":o.selection.start==7&&(o.value[6]=="2"&&e<30||o.value[6]=="3")?t>="0"&&t<=e.toString().substring(1):o.selection.start<8&&t>="0"&&t<="9"}}xo("YYYY-mm-dd",(()=>new zo("-")));class jo{toString(t){return typeof t=="string"?t:""}fromString(t){let o=t.replace(" ","T");const e="0000-01-01T00:00:00.000Z";if(o?.match(/-\d$/))o=o.substring(0,o.length-1)+"0"+o.substring(o.length-1,o.length);o=!o.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:o+e.substring(o.length,e.length);return v.is(o)?o:undefined}format(t){let o=_o(t);if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))o=o.insert(10," ");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))o=o.replace(11,12,"23:");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))o=o.insert(11,"23:");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))o=o.insert(11,"23:5");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))o=o.replace(10,13,"00:");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))o=o.insert(12,"3:");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))o=o.insert(12,"3:5").append(":");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])\d[\s\S]$/))o=o.insert(13,":");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))o=o.insert(14,"5");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d\d$/))o=o.insert(16,":");if(o.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d:[6-9]$/))o=o.insert(17,"5");return{...o,type:"text",length:[0,19],pattern:/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])(:[0-5]\d){2}$/}}unformat(t){return t}allowed(t,o){return o.value.length<19&&(t>="0"&&t<="9"||t=="-"||t==":"||t=="."||t==" ")}}ao("date-time",(()=>new jo));function _o(t,o){let e=t;switch(o){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Lo(e.value,o))e=e.replace(0,10,Lo("31"+e.value.substring(2,10),o)?"31"+e.value.substring(2,10):Lo("30"+e.value.substring(2,10),o)?"30"+e.value.substring(2,10):Lo("29"+e.value.substring(2,10),o)?"29"+e.value.substring(2,10):Lo("28"+e.value.substring(2,10),o)?"28"+e.value.substring(2,10):e.value);break;case"mm/dd/YYYY":if(!Lo(e.value,o))e=e.replace(0,10,Lo(e.value.substring(0,3)+"31"+e.value.substring(5,10),o)?e.value.substring(0,3)+"31"+e.value.substring(5,10):Lo(e.value.substring(0,3)+"30"+e.value.substring(5,10),o)?e.value.substring(0,3)+"30"+e.value.substring(5,10):Lo(e.value.substring(0,3)+"29"+e.value.substring(5,10),o)?e.value.substring(0,3)+"29"+e.value.substring(5,10):Lo(e.value.substring(0,3)+"28"+e.value.substring(5,10),o)?e.value.substring(0,3)+"28"+e.value.substring(5,10):e.value);break;default:if(t.value.length==10){if(!Lo(e.value)){e=e.replace(0,10,Lo(e.value.substring(0,8)+"31")?e.value.substring(0,8)+"31":Lo(e.value.substring(0,8)+"30")?e.value.substring(0,8)+"30":Lo(e.value.substring(0,8)+"29")?e.value.substring(0,8)+"29":Lo(e.value.substring(0,8)+"28")?e.value.substring(0,8)+"28":e.value);break}return t}}return e}function Lo(t,o){let e;let s;let i;switch(o){case"dd/mm/YYYY":case"dd.mm.YYYY":e=parseInt(t.substring(6,10));s=parseInt(t.substring(3,5));i=parseInt(t.substring(0,2));return e&&s&&i?i>0&&To(e,s)>=i:false;case"mm/dd/YYYY":e=parseInt(t.substring(6,10));s=parseInt(t.substring(0,2));i=parseInt(t.substring(3,5));return e&&s&&i?i>0&&To(e,s)>=i:false;default:e=parseInt(t.substring(0,4));s=parseInt(t.substring(5,7));i=parseInt(t.substring(8,10));return e&&s&&i?i>0&&To(e,s)>=i:false}}function To(t,o){let e;switch(o){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:e=31;break;case 4:case 6:case 9:case 11:e=30;break;case 2:e=28;break}return e}class Ao{toString(t){return Array.isArray(t)&&t.length==2&&typeof t[0]=="number"&&typeof t[1]=="number"?t[0].toString()+" / "+t[1].toString():typeof t=="number"?t.toString():""}fromString(t){return typeof t=="string"&&t.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(t.slice(0,2)),Number.parseInt(t.slice(t.length-2))]:typeof t=="string"&&t.match(/\d{1,2}/)?Number.parseInt(t):undefined}format(t){let o=t;if(t.match(/^\d\/$/))o=t.replace(1,2," / ");else if(t.match(/^\d{1,2}\s$/))o=t.replace(t.value.length-1,t.value.length," / ");else if(t.match(/^[\D.]+\/[\D.]+$/))o=t.delete(0,t.value.length);else if(t.match(/^[\D.]+\/[\D.]+\d$/))o=t.delete(0,t.value.length-1);else if(t.match(/^[\D.]+\/[\D.]+\d\d$/))o=t.delete(0,t.value.length-2);else if(t.match(/^[\D.]+\//))o=t.delete(0,t.value.search("/")+1);else if(t.match(/^\d\d\/$/))o=t.replace(2,3," / ");else if(t.match(/^\d\d\s+\/$/))o=t.delete(2,t.value.length);else if(t.match(/^\d\s+\/$/))o=t.delete(1,t.value.length);else if(t.match(/^\d\d\s\s+\/\s*$/))o=t.replace(2,t.value.length," / ");else if(t.match(/^\d\s\s+(\/\s*)?$/))o=t.replace(1,t.value.length," / ");else if(t.match(/^\d\s\/\s\d\d.+$/))o=t.delete(6,t.value.length);else if(t.value.length>1&&t.value.indexOf("/")<1)o=t.insert(2," / ");else if(t.value.length>1&&t.value.split("/").length>2)o=t.delete(t.value.lastIndexOf("/"));else if(t.value.length==1&&!t.isDigit(0))o=t.delete(0);return{...o,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(t){return t}allowed(t,o){return o.value.length<7&&(t>="0"&&t<="9"||t=="/"||t==" ")}}ao("divisor",(()=>new Ao));class Io{constructor(){this.separator=":";this.patterns={allowed:/^-?\d*(?::{0,1}[0-5]{0,1}[0-9]{0,1}|[.,]{0,1}[0-9]{0,2})$/,extract:/^(-?)(\d*)([:,.]{0,1})([0-9]{0,2})$/,zeros:/^(-?)(0+)(?:[1-9]|0[,.:]?)/}}toString(t){let o;if(!w.is(t))o="";else{const e=w.normalize(t);if(!e.minutes&&!e.hours)o="";else if(this.separator!=":")o=(+w.toHours(e).toFixed(2)||"").toString(10);else if(e.hours&&!e.minutes)o=e.hours.toString(10);else if(!e.hours&&e.minutes)o=`${e.minutes<0?"-":""}0:${Math.abs(e.minutes).toString(10)}`;else o=`${e.hours?.toString(10)}:${Math.abs(e.minutes??0).toString(10)}`}return o}fromString(t){let o;const e=t.match(this.patterns.extract);if(!e)o=undefined;else{const[t,s,i,l,n]=e;this.separator=l;if(l==":"){const t={hours:parseInt(i),minutes:parseInt(n)};const e=s?-1:1;o=w.normalize({hours:!Number.isFinite(t.hours)?0:t.hours*e,minutes:!Number.isFinite(t.minutes)?0:t.minutes*e})}else{const e=parseFloat(t.replace(",","."));o=w.normalize({hours:!Number.isFinite(e)?0:e})}}return o}format(t){let o=t;const[,e,s,i]=t.match(this.patterns.extract)??[];if(!s&&i)o=o.insert(e?1:0,"0");const l=o.match(this.patterns.zeros);if(l){const[,t,e]=l;if(e){const s=t?1:0;o=o.delete(s,e.length+s)}}return{...o,type:"tel",pattern:this.patterns.allowed}}unformat(t){const[,,,o]=t.match(this.patterns.extract)??[];if(o)this.separator=o;return t}allowed(t,o){const e=o.value.slice(0,o.selection.start)+t+o.value.slice(o.selection.end);return!!e.match(this.patterns.allowed)}}ao("duration",(()=>new Io));class Oo{constructor(t,o){this.settings=t;this.mode=o}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}split(t){let o;return t.map(((t,e)=>{const s=e!==0&&t===t.toUpperCase()&&isNaN(+t)&&o!==" "?" "+t:(t==="_"||t==="-")&&o!==" "?" ":t===" "&&o===" "?"":t;o=t;return s})).toLower().delete("-").delete("_")}format(t){const o=this.split(t);let e;switch(this.mode){case"code":e=o.delete(" ");break;case"pascal":case"camel":let s;e=o.map(((t,o)=>{const e=o===0&&this.mode==="pascal"||s?t.toUpperCase():t.toLowerCase();s=t==" ";return e})).delete(" ");break;case"snake":e=o.replace(" ","_").toLower();break;case"attribute":e=o.replace(" ","-").toLower();break;default:e=t}return{...e,...this.settings,type:"text",autocomplete:"on"}}unformat(t){return t}allowed(t,o){return t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"&&(this.mode=="code"||o.value.length>0)||t=="_"&&this.mode=="snake"&&o.value.length>0||t=="-"&&this.mode=="attribute"&&o.value.length>0}}ao("identifier-code",(t=>new Oo(t||{},"code")));ao("identifier-pascal",(t=>new Oo(t||{},"pascal")));ao("identifier-snake",(t=>new Oo(t||{},"snake")));ao("identifier-camel",(t=>new Oo(t||{},"camel")));ao("identifier-attribute",(t=>new Oo(t||{},"attribute")));class $o{constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}format(t){let o=t;const e=(new Date).getFullYear().toString();if(t.value.length>1&&t.get(0,2)!="19"&&t.get(0,2)!="20")o=o.prepend(t.get(0,2)>e.substr(2,2)?"19":"20");if(o.value.length>=8)o=o.insert(8,"-");return{...o.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(t){return t.delete("-")}allowed(t,o){return o.value.length<13&&t>="0"&&t<="9"}}ao("identity-number",(t=>new $o(t&&t.length>0?t[0]:undefined)));class Eo{toString(t){return typeof t=="number"?t.toString():""}fromString(t){const o=typeof t=="string"?Number.parseInt(t):undefined;return typeof o=="number"&&!Number.isNaN(o)?o:undefined}format(t){return{...t,type:"number",length:[3,undefined],pattern:/^[0-9]+$/}}unformat(t){return t}allowed(t,o){return t>="0"&&t<="9"}}ao("integer",(()=>new Eo));class Do{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}format(t){return{...t,type:"password",autocomplete:"current-password"}}unformat(t){return t}allowed(t,o){return true}}ao("password",(()=>new Do));class Mo{toString(t){return typeof t=="number"?(t*100).toString():""}fromString(t){const o=typeof t=="string"?Number.parseFloat(t):undefined;return typeof o=="number"&&!Number.isNaN(o)?o/100:undefined}format(t){return{...t.value?t.suffix(" %"):t,type:"text",length:[3,undefined],pattern:/^\d+(.\d)? %+$/}}unformat(t){return t.delete(" %")}allowed(t,o){return t>="0"&&t<="9"||t=="."&&!o.value.includes(".")}}ao("percent",(()=>new Mo));const Po=[{countryCode:"+46",areaCodes:["011","0120","0121","0122","0123","0125","013","0140","0141","0142","0143","0144","0150","0151","0152","0155","0156","0157","0158","0159","016","0171","0173","0174","0175","0176","018","019","021","0220","0221","0222","0223","0224","0225","0226","0227","023","0240","0241","0243","0246","0247","0248","0250","0251","0253","0258","026","0270","0271","0278","0280","0281","0290","0291","0292","0293","0294","0295","0297","0300","0301","0302","0303","0304","031","0320","0321","0322","0325","033","0340","0345","0346","035","036","0370","0371","0372","0380","0381","0382","0383","0390","0392","0393","040","0410","0411","0413","0414","0415","0416","0417","0418","042","0430","0431","0433","0435","044","0451","0454","0455","0456","0457","0459","046","0470","0471","0472","0474","0476","0477","0478","0479","0480","0481","0485","0486","0490","0491","0492","0493","0494","0495","0496","0498","0499","0500","0501","0502","0503","0504","0505","0506","0510","0511","0512","0513","0514","0515","0520","0521","0522","0523","0524","0525","0526","0528","0530","0531","0532","0533","0534","054","0550","0551","0552","0553","0554","0555","0560","0563","0564","0565","0570","0571","0573","0580","0581","0582","0583","0584","0585","0586","0587","0589","0590","0591","060","0611","0612","0613","0620","0621","0622","0623","0624","063","0640","0642","0643","0644","0645","0647","0650","0651","0652","0653","0657","0660","0661","0662","0663","0670","0671","0672","0680","0682","0684","0687","0690","0691","0692","0693","0695","0696","08","090","0910","0911","0912","0913","0914","0915","0916","0918","0920","0921","0922","0923","0924","0925","0926","0927","0928","0929","0930","0932","0933","0934","0935","0940","0941","0942","0943","0950","0951","0952","0953","0954","0960","0961","0970","0971","0973","0975","0976","0977","0978","0980","0981","010","020","0378","070","072","073","076","079","0710","0740","0746","0749","0741","0742","0743","0744","0745","0747","075","077","078","0900","0939","0944","0969","099"]}];class Ro{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}format(t){let o=t;if(o.value.startsWith("+")){for(const t of Po)if(o.value.startsWith(t.countryCode))for(let e of t.areaCodes){e=e.substring(1);if(o.value.startsWith(t.countryCode+e)&&!o.value.includes("-"))o=o.insert(t.countryCode.length,"-").insert(t.countryCode.length+1+e.length,"-")}}else{const t=Po[0];for(const e of t.areaCodes)if(o.value.startsWith(e)&&!o.value.includes("-")){o=o.insert(e.length,"-");o=o.delete(0);o=o.insert(0,"-").insert(0,t.countryCode)}}if(o.value.includes("-")){const t=o.value.indexOf("-",o.value.indexOf("-")+1)+1;const e=o.value.substring(t,o.value.length+1).length;switch(e){case 4:o=o.insert(t+2," ");break;case 5:o=o.insert(t+3," ");break;case 6:o=o.insert(t+2," ");o=o.insert(t+5," ");break;case 7:o=o.insert(t+3," ");o=o.insert(t+6," ");break;case 8:case 9:o=o.insert(t+3," ");o=o.insert(t+7," ");break}if(e>9){const s=Math.ceil(e/3)-1;if(s>0){for(let e=0;e<s;e++){const s=e*3+3+e;o=o.insert(s+t," ")}}}}return{...o,type:"text",autocomplete:"tel"}}unformat(t){return t.delete(" ").delete("-")}allowed(t,o){return t>="0"&&t<="9"||o.selection.start==0&&t=="+"&&!o.value.includes("+")}}ao("phone",(()=>new Ro));class No{constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}format(t){const o=!t.value.includes(" ")&&t.value.length>=4?t.insert(3," "):t;return{...o.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(t){return t.delete(" ")}allowed(t,o){return o.value.length<=5&&t>="0"&&t<="9"}}ao("postal-code",(t=>new No(t&&t.length>0?t[0]:undefined)));class Ho{constructor(t){this.currency=t}toString(t){return typeof t=="number"?isNaN(t)?"":t.toString():""}fromString(t){const o=typeof t=="string"?Number.parseFloat(t):undefined;return o!=undefined&&!isNaN(o)?o:undefined}format(t){let o=t.value=="NaN"?t.replace(0,t.value.length,""):lo.copy(t);const e=this.currency&&k.decimalDigits(this.currency);if(!o.value.includes(".")&&e&&Math.abs(Number.parseFloat(o.value))>0)o=o.suffix(".0");let s=o.value&&o.value.includes(".")?o.value.indexOf("."):undefined;if(s==0){o=o.prepend("0");s++}if(s!=undefined){const t=s+1+(e??2)-o.value.length;o=t<0?o.truncate(o.value.length+t):o.suffix("0".repeat(t))}else s=o.value.length;const i=s<=0?0:Math.ceil(s/3)-1;for(let t=0;t<i;t++){const e=s-(i-t)*3;o=o.insert(e," ");s++}if(o.match(/^[0\s]{2,}$/))o=o.replace(0,o.value.length,"0");else if(o.match(/^[0\s]{2,}(\s\w{3}){1}$/))o=o.replace(0,o.value.length-4,"0");o=this.currency&&(o.value.length>1||o.value.length==1&&o.value.charAt(0)!=".")?o.suffix(" "+this.currency):o;return{...o,type:"text",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}unformat(t){return this.currency?t.delete(" ").delete(""+this.currency):t.delete(" ")}allowed(t,o){return t>="0"&&t<="9"||t=="."&&!o.value.includes(".")}}ao("price",(t=>new Ho(t&&t.length>0?t[0]:undefined)));class Fo{constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}format(t){return{...t,type:"text",...this.settings}}unformat(t){return t}allowed(t,o){return this.settings.length==undefined||this.settings.length[1]==undefined||o.value.length<this.settings.length[1]}}ao("text",(t=>new Fo(t||{})));ao("email",(t=>new Fo(t||{})));const Yo=".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";const Wo=class{constructor(o){t(this,o);this.type=undefined;this.value=undefined;this.currency=undefined;this.country=undefined;this.format=undefined}render(){var t,e;let s;const i=this.type;switch(i){default:s=co(this.value,i);break;case"email":s=o("a",{href:"mailto:"+this.value},co(this.value,i));break;case"phone":s=o("a",{href:"tel:"+this.value},co(this.value,i,this.country));break;case"postal-code":s=co(this.value,i,this.country);break;case"price":s=co(this.value,i,this.currency);break;case"date":s=(t=ho(this.type,Uo()))===null||t===void 0?void 0:t.toString(this.value);break;case"duration":s=co(this.value,i);break;case"date-time":s=this.format?v.localize(this.value,this.format,Uo()):(e=ho(this.type,Uo()))===null||e===void 0?void 0:e.toString(this.value);break}return s}};function Uo(){const t=navigator.language;return x.is(t)?t:S.is(t)?x.toLocale(t):undefined}Wo.style=Yo;const qo=".sc-smoothly-display-amount-h{display:block}[hidden].sc-smoothly-display-amount-h{display:none}";const Bo=class{constructor(o){t(this,o);this.amount=undefined;this.currency=undefined;this.toInteger=false}format(t){const o=3;const e=2;const s=k.decimalDigits(this.currency)?k.decimalDigits(this.currency):e;let i=t.length;let l;let n=t;if(n=="")n="0";if(t.includes(".")){l=t.indexOf(".");if(l==0){n="0"+n;l++}i=l;n=n.padEnd(l+s+1,"0");n=n.substring(0,l+s+1)}else if(!this.toInteger){n=n+".";l=n.length-1;n=n.padEnd(l+s+1,"0")}const r=Math.ceil(i/o)-1;if(r>0){for(let t=0;t<r;t++){const e=i-(r-t)*o;n=n.slice(0,e)+" "+n.slice(e,n.length);i++}}return n}render(){return[typeof this.amount=="number"?this.format(this.amount.toString()):this.format(this.amount)," ",this.currency]}};Bo.style=qo;const Vo=class{constructor(o){t(this,o);this.notice=e(this,"notice",7)}noticeWarning(t){console.log("emit",t);this.notice.emit(t)}render(){return[o("main",null,o("fieldset",null,o("h2",null,"Smoothly display"),o("dl",null,o("dt",null,"Duration"),o("dd",null,o("div",null,o("smoothly-display",{type:"duration",value:{hours:13,minutes:100}}),o("smoothly-display",{type:"duration",value:{hours:8}}),o("smoothly-display",{type:"duration",value:{minutes:3}}),o("smoothly-display",{type:"duration",value:{hours:-13,minutes:100}}),o("smoothly-display",{type:"duration",value:{hours:-8}}),o("smoothly-display",{type:"duration",value:{minutes:-3}}))),o("dt",null,"text"),o("dd",null,o("smoothly-display",{type:"text",value:"text"})),o("dt",null,"postal code"),o("dd",null,o("smoothly-display",{type:"postal-code",value:"752 31"})),o("dt",null,"password"),o("dd",null,o("smoothly-display",{type:"password",value:"password"})),o("dt",null,"email"),o("dd",null,o("smoothly-display",{type:"email",value:"test@example.com"})),o("dt",null,"price"),o("dd",null,o("smoothly-display",{type:"price",value:"13.37",currency:"SEK"})),o("dt",null,"display amount without decimals"),o("dd",null,o("smoothly-display-amount",{amount:200,currency:"SEK",toInteger:true})),o("dt",null,"display amount with decimals if they are set, otherwise no decimal"),o("dd",null,o("smoothly-display-amount",{amount:200.2,currency:"SEK",toInteger:true})),o("dt",null,"display amount with decimals"),o("dd",null,o("smoothly-display-amount",{amount:200.2,currency:"SEK"})),o("dt",null,"percent"),o("dd",null,o("smoothly-display",{type:"percent",value:"42"})),o("dt",null,"phone"),o("dd",null,o("smoothly-display",{type:"phone",value:"0101881108"})),o("dt",null,"card number"),o("dd",null,o("smoothly-display",{type:"card-number",value:"4111111111111111"})),o("dt",null,"card expires"),o("dd",null,o("smoothly-display",{type:"card-expires",value:"7/22"})),o("dt",null,"card csc"),o("dd",null,o("smoothly-display",{type:"card-csc",value:"987"})),o("dt",null,"date"),o("dd",null,o("smoothly-display",{type:"date",value:"2022-07-07"})),o("dt",null,"date time"),o("dd",null,o("smoothly-display",{type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),o("dd",null,o("smoothly-display",{type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),o("dd",null,o("smoothly-display",{type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),o("dd",null,o("smoothly-display",{type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),o("dd",null,o("smoothly-display",{type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),o("dd",null,o("smoothly-display",{type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),o("dd",null,o("smoothly-display",{type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),o("dt",null,"Deprecated display date time"),o("dt",null,"Display amount"),o("dd",null,o("smoothly-display-amount",{currency:"SEK",amount:"1289.5"})),o("dt",null,"Quiet"),o("dd",null,o("smoothly-quiet",{color:"dark"},"-")))),o("fieldset",null,o("h2",null,"Smoothly skeleton"),o("smoothly-skeleton",{period:3,distance:"20rem",width:"20rem"}),o("smoothly-skeleton",{period:3,distance:"20rem",color:"200,200,255"}),o("smoothly-skeleton",{period:3,distance:"20rem",color:"var(--smoothly-warning-color)"}),o("smoothly-skeleton",{period:3,distance:"20rem"}),o("smoothly-skeleton",{align:"center",period:3,distance:"20rem",width:"20rem"}),o("smoothly-skeleton",{align:"center",period:3,distance:"20rem"}),o("smoothly-skeleton",{align:"center",period:3,distance:"20rem"}),o("smoothly-skeleton",{align:"center",period:3,distance:"20rem"}),o("smoothly-skeleton",{align:"right",period:3,distance:"20rem",width:"20rem"}),o("smoothly-skeleton",{align:"right",period:3,distance:"20rem"}),o("smoothly-skeleton",{align:"right",period:3,distance:"20rem"}),o("smoothly-skeleton",{align:"right",period:3,distance:"20rem"})),o("fieldset",null,o("h2",null,"Smoothly URL encoded"),o("smoothly-urlencoded",{data:"hej=hopp&tjena=moss"})),o("fieldset",null,o("h2",null,"Smoothly popup"),o("div",{style:{display:"flex",justifyContent:"space-between"}},o("smoothly-popup",{direction:"down"},"Click for popup",o("span",{slot:"popup",color:"dark",style:{whiteSpace:"nowrap"}},"Some popup stuff that has a lot of text")),o("smoothly-popup",{direction:"down"},"Click for popup",o("span",{slot:"popup",color:"dark",style:{whiteSpace:"nowrap"}},"Some popup with a bunch of text."))),o("smoothly-popup",null,o("div",null,"Popup, click me"),o("div",{color:"dark",slot:"popup"},"1 line popup"))),o("fieldset",null,o("h2",null,"Test of different kinds of notifier"),o("button",{onClick:()=>this.noticeWarning(b.warn("This is a test warning notice."))},"warning"),o("button",{onClick:()=>this.noticeWarning(b.succeeded("This is a test success notice."))},"success"),o("button",{onClick:()=>this.noticeWarning(b.failed("This is a test danger notice."))},"danger"),o("button",{onClick:()=>this.noticeWarning(b.execute("This is a test execute notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"execute"),o("button",{onClick:()=>this.noticeWarning(b.delay("This is a test delay notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"delay")),o("fieldset",null,o("h2",null,"Smoothly spinner"),o("div",{style:{position:"relative",height:"10em"}},"Large Spinner",o("smoothly-spinner",{active:true,size:"large",style:{"--background-color":"255,255,255","--background-opacity":"0.2","--spinner-color":"0,130,0"}})),o("div",{style:{position:"relative",height:"10em"}},"Medium Spinner",o("smoothly-spinner",{active:true,size:"medium"})),o("div",{style:{position:"relative",height:"10em"}},"Small Spinner",o("smoothly-spinner",{active:true,size:"small"})),o("div",{style:{position:"absolute",left:"500px",top:"150px"}},o("smoothly-svg",{url:"https://theme.payfunc.com/intergiro/animated-logo.svg"}))),o("fieldset",null,o("h2",null,"Smoothly summary"),o("smoothly-summary",null,o("p",{slot:"summary"},"Some title"),o("p",{slot:"content"},"Some content")),o("smoothly-summary",{size:"large"},o("p",{slot:"summary"},"Some title"),o("p",{slot:"content"},"Some content")),o("smoothly-summary",{color:"danger",fill:"clear"},o("div",{slot:"summary",style:{display:"flex",gap:"0.3rem"}},o("span",null,"Person"),o("smoothly-icon",{name:"person",color:"light",fill:"clear",size:"tiny"})),o("p",{slot:"content"},"Some person information.")),o("smoothly-summary",{color:"danger",fill:"clear",open:true},o("p",{slot:"summary"},"Some other title"),o("p",{slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.")),o("h2",null,"Label"),Xo.map((t=>o("smoothly-label",{hue:t.hue,description:t.description,shape:"rectangle"},t.name)))))]}};const Xo=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];class Ko{filter(t){return t.filter((t=>this.is(t)))}stringify(t=0){let o=this.toString();if(this.precedence<t)o="("+o+")";return o}}const Jo=[t=>t instanceof Ko?t:undefined];function Go(t){Jo.push(t)}let Zo;function Qo(t){Zo=t}function te(t){let o;for(const e of Jo){o=e(t);if(o)break}return o||Zo}class oe extends Ko{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(t){return true}toString(){return""}}Qo(new oe);class ee extends Ko{constructor(t){super();this.criteria=t;this.precedence=50;this.class="Any"}is(t){return t&&typeof t=="object"&&Object.getOwnPropertyNames(t).some((o=>this.criteria.is(t[o])||this.is(t[o])))}toString(){return this.criteria.stringify(this.precedence)}}class se extends Ko{constructor(t){super();this.precedence=40;this.class="And";this.rules=t.reduce(((t,o)=>o instanceof se?[...t,...o.rules]:[...t,o]),[])}is(t){return this.rules.every((o=>o.is(t)))}toString(){return this.rules.map((t=>t.stringify(this.precedence))).join(" ")}generalize(){return new se(this.rules.map((t=>t.class=="Property"?t:new ee(t))))}}function ie(...t){return new se(t.map(te))}var le;(function(t){t.is=ne})(le||(le={}));function ne(t,o=false){return typeof t=="number"||typeof t=="string"||t instanceof Ko||o&&typeof t=="object"&&t&&Object.values(t).every((t=>Array.isArray(t)?t.every((t=>ne(t,true))):ne(t,true)))}var re=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function ae(t,o,e){return e={path:o,exports:{},require:function(t,o){return he()}},t(e,e.exports),e.exports}function he(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ce=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});(function(t){t[t["Logging"]=0]="Logging";t[t["Debug"]=1]="Debug";t[t["Warning"]=2]="Warning";t[t["Recoverable"]=3]="Recoverable";t[t["Critical"]=4]="Critical"})(o.Level||(o.Level={}))}));var ue=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{constructor(t,o=ce.Level.Recoverable,e="unknown",s){this.description=t;this.level=o;this.type=e;this.region=s}toString(){return ce.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}o.Message=e}));var me=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{raise(t,o,e,s){if(!(t instanceof ue.Message))t=new ue.Message(t,o,e,s);console.error(t.toString())}}o.ConsoleHandler=e}));var de=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{constructor(t,o){this.line=t;this.column=o}toString(){return"Ln "+this.line+", Col "+this.column}}o.Position=e}));var ye=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends de.Position{constructor(t,o,e){super(o,e);this.resource=t}toString(){return this.resource.toString()+" @ "+super.toString()}}o.Location=e}));var pe=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{constructor(t,o,e,s){this.resource=t;this.start=o;this.end=e;this.content=s}merge(t){return t?new e(this.resource,this.start,t.end,this.content?this.content:""+t.content?t.content:""):this}toString(){let t=this.resource.toString();if(this.start&&this.end)t+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)t+=this.content;return t}}o.Region=e}));var fe=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});o.ConsoleHandler=me.ConsoleHandler;o.Level=ce.Level;o.Location=ye.Location;o.Message=ue.Message;o.Position=de.Position;o.Region=pe.Region}));var be=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{constructor(t,o){this.name=t;this.password=o}get isEmpty(){return!this.name&&!this.password}toString(){let t="";if(this.name)t=this.name;if(this.password)t+=":"+this.password;return t}static parse(t){let o;if(t){const s=t.split(":",2);o=new e(s[0],s[1])}else o=new e;return o}}o.User=e}));var ge=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{constructor(t=[],o){this.host=t;this.port=o}get isEmpty(){return this.host.length==0&&!this.port}toString(){let t=this.host.join(".");if(this.port)t+=":"+this.port.toString();return t}static parse(t){let o;if(t){const s=t.split(":",2);o=new e(s[0].split("."),s.length>1?parseInt(s[1]):undefined)}else o=new e;return o}}o.Endpoint=e}));var ve=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{constructor(t=new be.User,o=new ge.Endpoint){this.user=t;this.endpoint=o}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let t="";if(!this.user.isEmpty)t=this.user.toString()+"@";if(!this.endpoint.isEmpty)t=t+this.endpoint.toString();return t}static parse(t){let o;if(t){const s=t.split("@",2);o=new e(be.User.parse(s.length==2?s.pop():undefined),ge.Endpoint.parse(s.pop()))}return o}}o.Authority=e}));var we=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{constructor(t=[],o=new ve.Authority,e=[],s={},i){this.scheme=t;this.authority=o;this.path=e;this.query=s;this.fragment=i}get isRelative(){return this.path[0]=="."||this.path[0]==".."}get isFolder(){return this.path[this.path.length-1]==""}get folder(){return this.isFolder?this:new e(this.scheme,this.authority,this.path.filter(((t,o)=>o<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const t=this.name.split(".");return t.length>1?t[t.length-1]:""}createArray(t,o){const e=[];while(o-- >0)e.push(t);return e}normalize(){let t=0;const o=this.path.reverse().filter(((o,e)=>{let s=false;if((o==""||o==".")&&e<this.path.length-1)s=false;else if(o=="..")t++;else if(t>0)t--;else s=true;return s})).concat(this.createArray("..",t)).reverse();return new e(this.scheme,this.authority,o,this.query,this.fragment)}resolve(t){return!t?this:new e(this.scheme.length>0?this.scheme:t.scheme,!this.authority.isEmpty?this.authority:t.authority,this.isRelative?t.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(t){return new e(this.scheme,this.authority,t instanceof Array?[...this.path,...t]:[...this.path,t],this.query,this.fragment)}toString(){let t="";if(this.scheme.length>0)t+=this.scheme.join("+")+":";if(!this.authority.isEmpty)t+="//"+this.authority.toString();else if(this.scheme.length>0)t+="//";if(this.path){let o=this.path.join("/");if(o[0]!="."||t.length>0)o="/"+o;t+=o}if(Object.keys(this.query).length>0)t+="?"+this.query.toString();if(this.fragment)t+="#"+this.fragment;return t}static parse(t){let o;switch(t){case"":case null:case undefined:break;default:let s=true;let i=[];let l=t.split("://",2);if(l.length>1){i=(l.shift()||"").split("+");t=l.shift()}else if(t.slice(0,2)=="//")t=t.slice(2);else s=false;let n;let r;if(t&&(n=t.lastIndexOf("#"))>-1){r=t.slice(n+1);t=t.slice(0,n)}let a={};if(t&&(n=t.lastIndexOf("?"))>-1){a=new Object;t.slice(n+1).split(";").forEach((t=>{l=t.split("=");const o=l.shift();const e=l.shift();if(o&&e)a[o]=e}));t=t.slice(0,n)}let h;let c=[];if(t){l=t.split("/");if(l.length>0){switch(l[0]){case".":case"..":break;case"":l.shift();break;default:if(s)h=ve.Authority.parse(l.shift());else l.unshift(".");break}c=l}}o=new e(i,h,c,a,r);break}return o}}o.Locator=e;e.empty=new e(undefined,undefined,undefined,undefined,undefined)}));var ke=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});o.Authority=ve.Authority;o.Endpoint=ge.Endpoint;o.Locator=we.Locator;o.User=be.User}));var xe=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{}o.Device=e}));var Se=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends xe.Device{}o.InDevice=e}));var Ce=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Se.InDevice{static addOpener(t,o){if(!o)o=0;e.openers.push({open:t,priority:o});e.openers=e.openers.sort(((t,o)=>o.priority-t.priority))}static open(t){let o;let s=0;do{o=e.openers[s++].open(t)}while(!o&&s<e.openers.length);return o}}o.Reader=e;e.openers=[]}));var ze=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});var e=Ce;o.Reader=e.Reader;class s extends Ce.Reader{constructor(t){super();this.backend=t;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return!!this.backend}get opened(){return!!this.backend}get isEmpty(){return(this.buffer.length==0||this.buffer[0].data=="\0")&&this.backend.isEmpty}get resource(){const t=this.location;return t?t.resource:ke.Locator.empty}get location(){return this.locationValue}get region(){return new fe.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(t){if(!t)t=1;let o;while(t>this.buffer.length&&(o=this.backend.read()))this.buffer.push({data:o,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,t>this.buffer.length?this.buffer.length:t).map((t=>t.data)).join("")}read(t){if(!t)t=1;const o=this.peek(t);if(o&&o.length>0){this.locationValue=this.buffer[o.length-1].location;this.buffer.splice(0,o.length);this.lastContent+=o}return o}peekIs(t,o){let e;if(t)if(typeof t=="string"){const s=t;while(o&&o-- >0)t+=s;e=this.peek(t.length)==t?t:undefined}else if(t.length>0&&!(e=this.peekIs(t[0]))&&t.length)e=this.peekIs(t.slice(1));return e}readIf(t){let o;if(t)if(typeof t=="string")o=this.peek(t.length)==t&&this.read(t.length)||undefined;else if(t.length>0&&!(o=this.readIf(t[0]))&&t.length)o=this.readIf(t.slice(1));return o}readAll(){let t="";while(this.peek())t+=this.read();return t!=""?t:undefined}mark(){const t=this.region;this.lastMark=this.location;this.lastContent="";return t}static create(t){return t?new s(t):undefined}}o.BufferedReader=s}));var je=ae((function(t,o){var e=re&&re.__awaiter||function(t,o,e,s){function i(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,l){function n(t){try{a(s.next(t))}catch(t){l(t)}}function r(t){try{a(s["throw"](t))}catch(t){l(t)}}function a(t){t.done?e(t.value):i(t.value).then(n,r)}a((s=s.apply(t,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});function s(t){return e(this,void 0,void 0,(function*(){}))}o.close=s;function i(t){return e(this,void 0,void 0,(function*(){}))}o.fsync=i;function l(t,o,s){return e(this,void 0,void 0,(function*(){return 0}))}o.open=l;function n(t,o,s,i){return e(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}o.write=n;function r(t,o){return{isDirectory:()=>false}}o.lstatSync=r;function a(t){return[]}o.readdirSync=a;function h(t,o){return""}o.readFileSync=h}));var _e=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});const e="/";o.sep=e}));var Le=ae((function(t,o){var e=re&&re.__awaiter||function(t,o,e,s){function i(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,l){function n(t){try{a(s.next(t))}catch(t){l(t)}}function r(t){try{a(s["throw"](t))}catch(t){l(t)}}function a(t){t.done?e(t.value):i(t.value).then(n,r)}a((s=s.apply(t,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});class s extends Ce.Reader{constructor(t,o){super();this.content=t;this.resource=o;this.tabSize=2;this.count=0;this.line=1;this.column=1;this.lastContent="";this.readable=true;this.content+="\0";this.lastPosition=this.location}get opened(){return this.count+1>=this.content.length}get isEmpty(){return this.opened}get location(){return new fe.Location(this.resource,this.line,this.column)}get region(){return new fe.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return e(this,void 0,void 0,(function*(){const t=!(yield this.isEmpty);if(t)this.count=this.content.length;return t}))}read(){let t;if(this.count<this.content.length)t=this.content.charAt(this.count);else if(this.count==this.content.length)t=undefined;this.count++;if(t){switch(t){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=t}return t}mark(){const t=this.region;this.lastPosition=this.location;this.lastContent="";return t}static create(t,o){return t!=undefined?new s(t,o||ke.Locator.empty):undefined}}o.StringReader=s}));var Te=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Ce.Reader{constructor(t){super();this.backend=t}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.backend.isEmpty}get resource(){return this.backend?this.backend.resource:ke.Locator.empty}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){return this.backend.read()}mark(){return this.backend.mark()}static open(t){let o;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{o=Le.StringReader.create(je.readFileSync((t.isRelative?"":_e.sep)+t.path.join(_e.sep),"utf-8"),t)}catch(o){console.log(`Failed to open file: ${t.toString()}`)}return o?new e(o):undefined}}o.FileReader=e;Ce.Reader.addOpener((t=>e.open(t)),10)}));var Ae=ae((function(t,o){var e=re&&re.__awaiter||function(t,o,e,s){function i(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,l){function n(t){try{a(s.next(t))}catch(t){l(t)}}function r(t){try{a(s["throw"](t))}catch(t){l(t)}}function a(t){t.done?e(t.value):i(t.value).then(n,r)}a((s=s.apply(t,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});class s extends Ce.Reader{constructor(t){super();this.files=t;this.tabSizeValue=2;this.lastLocation=new fe.Location(ke.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(t){this.tabSizeValue=t;if(this.current)this.current.tabSize=t}get readable(){return this.current!=undefined&&this.current.readable||this.files.length>0}get opened(){return this.current!=undefined||this.files.length>0}get isEmpty(){return this.files.length==0&&(!this.current||this.current.isEmpty)}get resource(){return this.current?this.current.resource:this.lastLocation.resource}get location(){return this.current?this.current.location:this.lastLocation}get region(){return this.current?this.current.region:new fe.Region(this.resource)}close(){return e(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let t;if(!this.current&&this.files.length>0){this.current=Te.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){t=this.current.read();if(t==undefined||t=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return t}mark(){return this.current?this.current.mark():new fe.Region(this.resource)}static getFiles(t,o,e=[]){let i=[];const l=je.readdirSync(t);l.forEach((l=>{const n=t+_e.sep+l;if(e.indexOf(n)==-1){if(je.lstatSync(n).isDirectory())i=i.concat(s.getFiles(n,o,e));else if(l.length>o.length&&l.lastIndexOf(o,l.length-o.length)===l.length-o.length)i.push(n)}}));return i}static open(t){let o;try{if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file")&&t.isFolder||t.name.match("*"))o=s.getFiles((t.isRelative?"":_e.sep)+t.folder.path.join(_e.sep),t.extension)}catch(t){}return o?new s(o.map((t=>new ke.Locator(["file"],undefined,t.split(_e.sep))))):undefined}}o.FolderReader=s;Ce.Reader.addOpener((t=>s.open(t)),0)}));var Ie=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});function*e(t){let o;while((o=t())!=undefined)yield o}function s(t){return t.next instanceof Function}function*i(t,o){let e;while(!(e=t.next()).done)yield e.value;if(s(o))while(!(e=o.next()).done)yield e.value;else yield o}class l{constructor(t){this.iterator=t instanceof Function?e(t):t}get length(){let t=0;while(!this.next().done)t++;return t}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const t=this.next();return t.done?undefined:t.value}next(t){return this.nextValue=this.iterator.next(t)}append(t){return new l(i(this,t))}map(t){return new l((()=>{const o=this.fetch();return o!=undefined?t(o):undefined}))}reduce(t,o){const e=this.fetch();return e?this.reduce(t,t(o,e)):o}apply(t){const o=this.fetch();if(o){t(o);this.apply(t)}}filter(t){return new l((()=>{let o;do{o=this.fetch()}while(o!=undefined&&!t(o));return o}))}toArray(){const t=this.fetch();let o;if(!t)o=[];else{o=this.toArray();o.unshift(t)}return o}static from(t){return new l(t)}}o.Enumerator=l;l.empty=l.from((()=>undefined))}));var Oe=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});function e(t){return t==null?false:typeof t[Symbol.iterator]==="function"}class s{constructor(t){this.get=t}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new Ie.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(t){return new s((()=>this.get().append(t)))}map(t){return new s((()=>this.get().map(t)))}reduce(t,o){return this.get().reduce(t,o)}apply(t){this.get().apply(t)}filter(t){return new s((()=>this.get().filter(t)))}toArray(){return this.getEnumerator().toArray()}static from(t){return e(t)?new s((()=>new Ie.Enumerator(t[Symbol.iterator]()))):new s((()=>{const o=t();return o instanceof Ie.Enumerator?o:new Ie.Enumerator(o)}))}}o.Enumerable=s;s.empty=s.from([])}));var $e=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Ie.Enumerator{constructor(t){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=t;this.position=0}}o.ArrayEnumerator=e}));var Ee=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Ie.Enumerator{constructor(t){super((()=>{const t=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return t}));this.backend=t;this.buffer=[]}peek(t){if(!t)t=0;let o;while(t>this.buffer.length-1&&(o=this.backend.fetch()))this.buffer.push(o);return t>this.buffer.length-1?undefined:this.buffer[t]}}o.BufferedEnumerator=e}));var De=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e{static padLeft(t,o,s){return e.pad(t,o,s,true)}static padRight(t,o,s){return e.pad(t,o,s,false)}static pad(t,o,e,s){let i="";const l=e-t.length;for(let t=0;t<l;t++)i+=o;return s?i+t:t+i}}o.String=e}));var Me=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});o.Enumerator=Ie.Enumerator;o.Enumerable=Oe.Enumerable;o.ArrayEnumerator=$e.ArrayEnumerator;o.BufferedEnumerator=Ee.BufferedEnumerator;o.String=De.String}));var Pe=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends xe.Device{}o.OutDevice=e}));var Re=ae((function(t,o){var e=re&&re.__awaiter||function(t,o,e,s){function i(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,l){function n(t){try{a(s.next(t))}catch(t){l(t)}}function r(t){try{a(s["throw"](t))}catch(t){l(t)}}function a(t){t.done?e(t.value):i(t.value).then(n,r)}a((s=s.apply(t,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});class s extends Pe.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(t){return e(this,void 0,void 0,(function*(){return t instanceof Me.Enumerator?this.writeImplementation(t):t instanceof Array?this.writeImplementation(new Me.ArrayEnumerator(t)):this.writeImplementation(new Me.ArrayEnumerator([t]))}))}writeLine(t){return e(this,void 0,void 0,(function*(){return t instanceof Me.Enumerator?this.writeImplementation(t.append(this.newLineSymbol)):t instanceof Array?this.writeImplementation(new Me.ArrayEnumerator([...t,this.newLineSymbol])):t?this.writeImplementation(new Me.ArrayEnumerator([t,this.newLineSymbol])):this.writeImplementation(new Me.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(t,o){if(!o)o=0;s.openers.push({open:t,priority:o});s.openers=s.openers.sort(((t,o)=>o.priority-t.priority))}static open(t){return e(this,void 0,void 0,(function*(){let o;if(typeof t=="string"){const e=ke.Locator.parse(t);o=e?yield s.open(e):undefined}else{let e=0;do{o=yield s.openers[e++].open(t)}while(!o&&e<s.openers.length)}return o}))}}o.Writer=s;s.openers=[]}));var Ne=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Re.Writer{constructor(t){super();this.backend=t;this.autoFlush=true;this.indentionSymbol="\t";this.indentionCount=0;this.indentNext=false}get resource(){return this.backend.resource}get opened(){return this.backend.opened}get writable(){return this.backend.writable}flush(){return this.backend.flush()}close(){return this.backend.close()}increase(){this.indentionCount++;return true}decrease(){this.indentionCount--;return this.indentionCount>=0}getIndention(){return this.indentionSymbol.repeat(this.indentionCount)}writeImplementation(t){const o=[];let e;let s=t.fetch();if(s)do{e=s;s=t.fetch();if(this.indentNext)e=this.getIndention()+e;this.indentNext=e.endsWith(this.newLineSymbol);e=e.replace(this.newLineSymbol,this.newLineSymbol+this.getIndention());if(this.indentNext)e=e.substring(0,e.length-this.indentionCount*this.indentionSymbol.length);o.push(this.backend.write(e))}while(s);return Promise.all(o).then((t=>t.reduce(((t,o)=>t&&o),true)))}}o.Indenter=e}));var He=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Ce.Reader{constructor(t,o){super();this.prefix=o;this.done=false;this.backend=t instanceof ze.BufferedReader?t:ze.BufferedReader.create(t)}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){let t;if(!this.done){t=this.backend.read();this.done=t=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return t}mark(){return this.backend.mark()}static create(t,o){return t&&o?new e(t,o):t}}o.PrefixReader=e}));var Fe=ae((function(t,o){var e=re&&re.__awaiter||function(t,o,e,s){function i(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,l){function n(t){try{a(s.next(t))}catch(t){l(t)}}function r(t){try{a(s["throw"](t))}catch(t){l(t)}}function a(t){t.done?e(t.value):i(t.value).then(n,r)}a((s=s.apply(t,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});class s extends Re.Writer{constructor(t,o){super();this.resource=t;this.descriptor=o;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return e(this,void 0,void 0,(function*(){let t=true;try{yield je.fsync(this.descriptor)}catch(o){t=false}return t}))}close(){return e(this,void 0,void 0,(function*(){let t=this.opened;if(t){try{yield je.close(this.descriptor)}catch(o){t=false}this.descriptor=0}return t}))}writeImplementation(t){return e(this,void 0,void 0,(function*(){let o=true;const e=Buffer.from(t.reduce(((t,o)=>t+o),""));try{const t=yield je.write(this.descriptor,e,0,"utf8");o=t.bytesWritten==e.length}catch(t){o=false}return o&&(!this.autoFlush||(yield this.flush()))}))}static open(t){return e(this,void 0,void 0,(function*(){let o;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{o=yield je.open((t.isRelative?"":_e.sep)+t.path.join(_e.sep),"w")}catch(t){o=undefined}return o?new s(t,o):undefined}))}}o.FileWriter=s;Re.Writer.addOpener(s.open)}));var Ye=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Ce.Reader{constructor(t,o){super();this.endMark=o;this.done=false;this.backend=t instanceof ze.BufferedReader?t:ze.BufferedReader.create(t);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const t=!this.done;if(t)this.done=true;return Promise.resolve(t)}read(){let t;if(!this.done){t=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return t}mark(){return this.backend.mark()}static create(t,o){return t&&o?new e(t,o):t}}o.TillReader=e}));var We=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});class e extends Ce.Reader{constructor(t,o){super();this.endMark=o;this.done=-1;this.backend=t instanceof ze.BufferedReader?t:ze.BufferedReader.create(t);const e=this.backend.peekIs(this.endMark);if(e)this.done=e.length}get tabSize(){return this.backend.tabSize}set tabSize(t){this.backend.tabSize=t}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done==0||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const t=this.done>0;if(t)this.done=0;return Promise.resolve(t)}read(){let t;if(this.done!=0){t=this.backend.read();let o;if(this.done>0)this.done--;else if(o=this.backend.peekIs(this.endMark))this.done=o.length}return t}mark(){return this.backend.mark()}static create(t,o){return t&&o?new e(t,o):t}}o.UntilReader=e}));var Ue=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});o.BufferedReader=ze.BufferedReader;o.Device=xe.Device;o.FileReader=Te.FileReader;o.FolderReader=Ae.FolderReader;o.Indenter=Ne.Indenter;o.InDevice=Se.InDevice;o.OutDevice=Pe.OutDevice;o.PrefixReader=He.PrefixReader;o.Reader=Ce.Reader;o.StringReader=Le.StringReader;o.FileWriter=Fe.FileWriter;o.TillReader=Ye.TillReader;o.UntilReader=We.UntilReader;o.Writer=Re.Writer}));var qe=ae((function(t,o){Object.defineProperty(o,"__esModule",{value:true});o.Error=fe;o.IO=Ue;o.Uri=ke;o.Utilities=Me}));class Be extends qe.IO.BufferedReader{constructor(t,o){super(typeof t=="string"?qe.IO.StringReader.create(t):t);this.errorHandler=o}raise(t,o,e="lexical",s){if(!(t instanceof qe.Error.Message)){if(!o)o=qe.Error.Level.Critical;if(!s)s=this.region;t=new qe.Error.Message(t,o,e,s)}if(this.errorHandler)this.errorHandler.raise(t)}requirePrefix(t){return new Be(new qe.IO.PrefixReader(this,t),this.errorHandler)}till(t){return new Be(qe.IO.TillReader.create(this,t),this.errorHandler)}until(t){return new Be(qe.IO.UntilReader.create(this,t),this.errorHandler)}peekIsSymbol(t){return this.peekIs(t??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function Ve(t,o,e){const s=new Be(t,o);return new qe.Utilities.Enumerator((()=>{let t;let o=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(e))s.read();if(o=s.peekIsSymbol(e))t={value:s.read(o)||"",region:s.mark()};else{let o="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(e))o+=s.read();if(o)t={value:o,region:s.mark()}}}return t}))}class Xe{tokenize(t){return Ve(t,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((t=>({value:t.value}))).toArray()}}class Ke extends Xe{constructor(t){super();this.class="array";this.array=t}complete(t,o,e){const s=typeof t=="string"?this.tokenize(t):t;return Ke.completor.flatMap((t=>t(s,this,o))).reduce(((t,o)=>t.some((t=>t.value==o.value&&t.cursor==o.cursor))?t:[...t,o]),[])}isType(t){return global.Array.isArray(t)}static add(...t){this.completor.push(...t)}static is(t){return t instanceof Ke}}Ke.completor=[];var Je;(function(t){function o(t){return typeof t=="object"&&typeof t.start=="number"&&typeof t.end=="number"}t.is=o})(Je||(Je={}));var Ge;(function(t){function o(t){return t.map((t=>typeof t.cursor=="number"?t.value.slice(0,t.cursor)+"_"+t.value.slice(t.cursor,t.value.length):t.value+"_"))}t.stringify=o;function e(t,o,s){return Array.isArray(o)?o.map((o=>e(t,o,s))):{value:t+o.value+(s??""),cursor:typeof o?.cursor=="number"?o?.cursor+t.length:Je.is(o.cursor)?{start:o.cursor.start+t.length,end:o.cursor.end+t.length}:o.value.length+t.length,suggestion:o.suggestion}}t.prepend=e})(Ge||(Ge={}));class Ze extends Xe{constructor(){super();this.class="boolean"}complete(t,o,e){const s=typeof t=="string"?this.tokenize(t):t;const i=e?Ze.literals.filter((t=>t.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Ge.prepend(":",Ze.literals.filter((t=>t.value.startsWith(s[1]?.value??"")))):[];return[...i??[],...(e?[]:Ze.completor).flatMap((t=>t(s,this,o))).reduce(((t,o)=>t.some((t=>t.value==o.value&&t.cursor==o.cursor))?t:[...t,o]),[])]}isType(t){return typeof t=="boolean"}static add(...t){this.completor.push(...t)}}Ze.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Ze.completor=[];var Qe;(function(t){function o(t,o,e){return t.length==0?[{value:":",suggestion:{value:":"}}]:t.length<=3&&t[0].value==":"&&e.value.startsWith(t[1]?.value??"")&&(t[2]?.value??"(")=="("?Ge.prepend(":",[e]):t.length<=4&&t.slice(0,4).reduce(((t,o)=>t+o.value),"")==":"+e.value?Ge.prepend(":"+e.value.substring(0,e.value.length-1),o(),")"):t.length==5&&t.slice(0,3).reduce(((t,o)=>t+o.value),"")+t[4].value==":"+e.value?Ge.prepend(":"+e.value.substring(0,e.value.length-1),o(t.slice(3,t.length-1)),")"):t.length>5&&t.slice(0,3).reduce(((t,o)=>t+o.value),"")+t[t.length-1].value==":"+e.value?Ge.prepend(":"+e.value.substring(0,e.value.length-1),o(t.slice(3,t.length-1)),")"):[]}t.functions=o;function e(t,o,e){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1?Ge.prepend(":",[e]):Ge.prepend(":",o(t.slice(1)))}t.expressions=e;function s(t,o,e){return t.length>=1&&t[0].value==e.value?Ge.prepend(e.value,o(t.slice(1))):t.length==0||t.length==1&&e.value.startsWith(t[0].value)||t[0].value==e.value.replace(/ /g,"")?[e]:[]}t.operators=s})(Qe||(Qe={}));class ts extends Xe{constructor(t){super();this.input=t;this.class="number";if(t)this.value=t}complete(t,o,e){const s=typeof t=="string"?this.tokenize(t):t;return[...s.length>0&&s[0].value==":"&&o?Ge.prepend(":",o.complete(s.slice(1),undefined,this)):o&&s.length>=0&&e?Ge.prepend(" ",o?.complete(s,undefined,undefined)):[],...(e?ts.completorArgument:ts.completor).flatMap((t=>t(s,this,o))).reduce(((t,o)=>t.some((t=>t.value==o.value&&t.cursor==o.cursor))?t:[...t,o]),[])]}isType(t){return isNaN(+t)?false:true}static add(...t){this.completor.push(...t)}static addArgument(...t){this.completorArgument.push(...t)}static is(t){return t instanceof ts||!global.Number.isNaN(t)}}ts.completor=[];ts.completorArgument=[];class os extends Xe{constructor(t){super();this.properties=t;this.class="object";this.completions=Object.keys(this.properties).map((t=>({value:t,suggestion:{value:t}})))}complete(t,o,e){const s=typeof t=="string"?this.tokenize(t):t;let i;const l=this.filterByType(e);if(!o){const t=s.length>0?this.match(s[0],l):undefined;if(t)i=s.length>=1?Ge.prepend(t.value,this.properties[t.value].complete(s.slice(1),this,e)):[];else if(e&&s.length>2&&e.isType(s[0].value+s[1].value+s[2].value))i=Ge.prepend(s[0].value+s[1].value+s[2].value,e.complete(s.slice(3),this,e));else if(e&&s.length>0&&e.isType(s[0].value))i=Ge.prepend(s[0].value,e.complete(s.slice(1),this,e));else{let t;i=s.length==0?[...this.addDot(l,e),...e?.class=="number"?[]:os.wildcard]:s.length==1&&(t=os.wildcard.find((t=>t.value==s[0].value)))?Ge.prepend(t.value,this.completions,e?".":""):s.length>=1&&(t=os.wildcard.find((t=>t.value==s[0].value)))?Ge.prepend(t.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],l),e)}}else i=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Ge.prepend(".",this.addDot(l,e)):this.properties[s[1].value]?Ge.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),o,e)):Ge.prepend(".",this.addDot(this.partial(s[1],l),e));return[...i.reduce(((t,o)=>t.some((t=>t.value==o.value&&t.cursor==o.cursor))?t:[...t,o]),[]),...os.completor.flatMap((t=>t(s,this,o)))]}filterByType(t){return t?this.completions.filter((o=>this.properties[o.value].class==t.class||(this.properties[o.value].class=="object"?this.properties[o.value].filterByType(t).length>0:false))):this.completions}addDot(t,o){return!t?[]:o?t.map((t=>this.properties[t.value].class=="object"?{value:t.value+".",suggestion:{value:t.suggestion?.value+"."}}:t)):t}partial(t,o){const e=o.filter((o=>o.value.startsWith(t.value)));return e&&e.length>0?e:undefined}match(t,o){const e=o.filter((o=>o.value==t.value));return e&&e.length>0?e[0]:undefined}isType(t){return false}static add(...t){this.completor.push(...t)}}os.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];os.completor=[];class es extends Xe{constructor(t){super();this.class="string";if(t)this.value=t}complete(t,o,e){const s=typeof t=="string"?this.tokenize(t):t;let i;if(e)i=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else i=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[Ge.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...i??[],...(e?[]:es.completor).flatMap((t=>t(s,this,o))).reduce(((t,o)=>t.some((t=>t.value==o.value&&t.cursor==o.cursor))?t:[...t,o]),[])]}isType(t){return typeof t.value=="string"}static add(...t){this.completor.push(...t)}static is(t){return t instanceof es}}es.completor=[];class ss extends Xe{constructor(t){super();this.type=t;this.class="union"}complete(t,o,e){const s=typeof t=="string"?this.tokenize(t):t;return this.type?this.type?.flatMap((t=>t?.complete(s,o,e)??[])):[]}isType(t){return t instanceof ss}static is(t){return t instanceof ss}}var is;(function(t){function o(t,o){const e=t.complete(o);return e.filter((t=>!o.includes(t.value)&&t.suggestion?.value)).map((t=>({full:t.value,cursor:t?.cursor??t.value.length,addon:t?.suggestion?.value,description:t?.suggestion?.description})))}t.complete=o;function e(t){let o;switch(typeof t){case"object":o=global.Array.isArray(t)?new Ke(t.map((t=>e(t)))):new os(global.Object.entries(t).reduce(((t,o)=>({...t,[o[0]]:e(o[1])})),{}));break;case"string":o=new es(t);break;default:o=new ts(t);break}return o}t.convert=e;t.Array=Ke;t.Boolean=Ze;t.Completion=Ge;t.Object=os;t.String=es;t.Number=ts;t.Union=ss;t.Completor=Qe})(is||(is={}));class ls extends Ko{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(t){return typeof t=="string"&&t.endsWith(this.needle)}toString(){return`*${this.needle}`}}function ns(t,o){return Qe.expressions(t,(t=>!t||t[0].value=="*"&&o.value&&o.value.endsWith(t[1]?.value??"")?[is.Completion.prepend("*",{value:o?.value??"",suggestion:{value:o?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}is.String.add(ns);class rs extends Ko{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Every"}is(t){return Array.isArray(t)&&t.every((t=>this.criteria.is(t)))}toString(){return`every(${this.criteria.toString()})`}}function as(t,o){const e=t=>o.array.some(is.String.is)&&t?o.array.filter(is.String.is).map((o=>o.complete([{value:":"},...t]))).reduce(((t,o)=>Array.isArray(o)?t.concat(o):o?[...t,o]:t),[]):!t&&o.array.some(is.String.is)?o.array.filter(is.String.is).map((t=>({value:t?.value??""}))):o.array.some(is.Number.is)&&t?o.array.filter(is.Number.is).map((o=>o.complete(t))).reduce(((t,o)=>Array.isArray(o)?t.concat(o):o?[...t,o]:t),[]):!t&&o.array.some(is.Number.is)?o.array.filter(is.Number.is).map((t=>({value:(t?.value??"").toString()}))):[];return Qe.functions(t,e,{value:"every()",cursor:6,suggestion:{value:"every()"}})}is.Array.add(as);class hs extends Ko{constructor(t,o,e){super();this.identifier=t;this.argument=o;this.definition=e;this.precedence=85;this.class="FunctionCall"}is(t){return this.definition?.is(t)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class cs{stringify(t=0){let o=this.toString();if(this.precedence<t)o="("+o+")";return o}}class us extends cs{constructor(t,o){super();this.name=o;this.precedence=us.precedence;this.class="Value";if(typeof t=="string")this.value=isNaN(+t.replace(",","."))?t:+t.replace(",",".");else this.value=t}toString(){return this.name?`${this.name?.toString()}.`+this.value.toString():this.value.toString()}evaluate(t){return t?this.get(t):+this.value}get(t){return typeof this.value=="string"?+t[this.value]:this.name&&typeof this.value=="object"?this.value.get(t[this.name]):+this.value}static create(t,o){return new us(t,o)}}us.precedence=19;class ms extends Ko{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(t,o){return(isNaN(+t)?t:+t)>(this.value instanceof us&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(o))}toString(){return this.value.toString()}}function ds(t,o,e){return is.Completor.operators(t,(t=>t&&e?e?.complete(t,undefined,o):[]),{value:">",suggestion:{value:">"}})}is.Number.add(ds);is.String.add(ds);class ys extends Ko{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(t,o){return(isNaN(+t)?t:+t)>=(this.value instanceof us&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(o))}toString(){return this.value.toString()}}function ps(t,o,e){return is.Completor.operators(t,(t=>t&&e?e?.complete(t,undefined,o):[]),{value:">=",suggestion:{value:">="}})}is.Number.add(ps);is.String.add(ps);class fs extends Ko{constructor(t){super();this.property=t;this.precedence=85;this.class="Has"}is(t,o){return typeof t=="object"&&t?Object.entries(t).some((t=>{o=typeof o=="string"?o:this.property;return t[0]==o?true:typeof t[1]=="object"&&t[1]?this.is(t[1],o.includes(".")&&o.split(".")[0]==t[0]?o.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function bs(t,o,e){return e&&o?.class=="object"?Qe.functions(t,(t=>o.completions.filter((o=>o.value.startsWith(t?t[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}is.Object.add(bs);class gs extends Ko{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(t){return typeof t=="string"&&t.includes(this.needle)}toString(){return`*${this.needle}*`}}function vs(t,o){const e=new gs(t);return o?e.is(o):e}function ws(t,o){return Qe.expressions(t,(t=>!t||t.length==3&&o.value?.includes(t[1].value)&&o.value!=t[1].value||t.length==2&&t[0].value+t[1].value=="**"?[is.Completion.prepend("*",{value:o?.value??"",suggestion:{value:o?.value??""}},"*")]:t.length==1&&t[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}is.String.add(ws);class ks extends Ko{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Some"}is(t,o){return Array.isArray(t)&&t.some((t=>this.criteria.is(t,o)))}toString(){return`some(${this.criteria.toString()})`}}function xs(t,o){const e=new ks(te(t));return o?e.is(o):e}function Ss(t,o,e){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1&&t[0].value==":"?is.Completion.prepend(":",o.array.filter(is.String.is).filter((t=>t.value&&t.value!="string")).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):t.length==2&&t[0].value==":"?is.Completion.prepend(":",o.array.filter(is.String.is).filter((o=>o.value&&o.value!="string"&&o.value.startsWith(t[1].value))).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):[]}is.Array.add(Ss);class Cs extends Ko{constructor(t){super();this.value=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(t,o){return Array.isArray(t)&&ne(this.value)?xs(this.value,t):(typeof t=="boolean"?t.toString():isNaN(+t)?t:+t)==(typeof this.value=="object"?this.value.evaluate(o):this.value)}toString(){return this.value.toString()}}Go((t=>typeof t=="bigint"||typeof t=="boolean"||typeof t=="number"||typeof t=="string"?new Cs(t):undefined));class zs extends Ko{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(t,o){return(isNaN(+t)?t:+t)<(this.value instanceof us&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(o))}toString(){return this.value.toString()}}function js(t,o,e){return is.Completor.operators(t,(t=>t&&e?e?.complete(t,undefined,o):[]),{value:"<",suggestion:{value:"<"}})}is.Number.add(js);is.String.add(js);class _s extends Ko{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(t,o){return(isNaN(+t)?t:+t)<=(this.value instanceof us&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(o))}toString(){return this.value.toString()}}function Ls(t,o,e){return is.Completor.operators(t,(t=>t&&e?e?.complete(t,undefined,o):[]),{value:"<=",suggestion:{value:"<="}})}is.Number.add(Ls);is.String.add(Ls);function Ts(t,o){return Qe.expressions(t,(t=>t&&t?.length==1&&t[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}is.String.add(Ts);class As extends Ko{constructor(t){super();this.criteria=t;this.precedence=As.precedence;this.class="Not"}is(t){return!this.criteria.is(t)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}As.precedence=90;function Is(t,o){const e=new As(te(t));return o?e.is(o):e}function Os(t,o,e){return o&&o.class!="object"&&e?Qe.expressions(t,(t=>t[0].value!="!"?[]:is.Completion.prepend("!",o.complete(t.slice(1),e,o))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}is.String.add(Os);is.Number.add(Os);is.Boolean.add(Os);is.Object.add(Os);class $s extends Ko{constructor(t){super();this.precedence=$s.precedence;this.class="Or";this.criteria=t.reduce(((t,o)=>o instanceof $s?[...t,...o.criteria]:[...t,o]),[])}is(t){return this.criteria.some((o=>o.is(t)))}toString(){return this.criteria.map((t=>t.stringify(this.precedence))).join(" | ")}}$s.precedence=30;function Es(t,o,e){return is.Completor.operators(t,(t=>t&&e?e?.complete(t,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}is.Number.addArgument(Es);class Ds extends qe.Utilities.BufferedEnumerator{constructor(t,o){super(Array.isArray(t)?new qe.Utilities.ArrayEnumerator(t):t);this.errorHandler=o}clone(t="(",o=")"){let e=0;return new Ds(new qe.Utilities.Enumerator((()=>{let s;if(this.peekIs(t))e++;else if(this.peekIs(o))e--;if(e>=0)s=this.fetch();return s})),this)}peekIs(...t){return t.every(((t,o)=>{const e=this.peek(o);return e&&e.value&&Ds.is(t,e.value)}))}fetchIf(...t){const o=[];if(this.peekIs(...t))t.forEach((t=>o.push(this.fetch())));return t.length==1?o.length==1?o[0]:undefined:t.length==o.length?o:undefined}mark(){return qe.Utilities.Enumerable.from(qe.Utilities.Enumerable.empty)}raise(t,o=qe.Error.Level.Critical,e="grammatical",s){if(typeof t=="string"){if(!s&&this.last)s=this.last.region;t=new qe.Error.Message(t,o,e,s)}this.errorHandler.raise(t)}static is(t,o){return Array.isArray(t)?t.some((t=>Ds.is(t,o))):typeof t!="string"?t.test(o):t.startsWith("!")&&t!="!"?!Ds.is(t.substring(1),o):t=="any"?Ds.symbol.every((t=>t!=o)):t=="symbol"?Ds.symbol.some((t=>t==o)):t=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(o):t==o}}Ds.wildcard=["*","?"];Ds.separator=["(",")","."];Ds.operator=["!","|"];Ds.comparator=["<","<=",">",">=",":"];Ds.binaryOperator=[" * "," + "," - "];Ds.symbol=[...Ds.wildcard,...Ds.separator,...Ds.operator,...Ds.comparator];function Ms(t,o){if(typeof t=="string"){o=o||new qe.Error.ConsoleHandler;const e=Ve(t,o).toArray();t=new Ds(e,o)}o=o instanceof Ko?o:undefined;const e=[];while(t.peek()){if(t.fetchIf("|"))e[e.length-1]=new $s([e[e.length-1],Ps(0,t)]);else e.push(Ps(0,t))}return e.length==1?e[0]:new se(e)}function Ps(t,o){let e;const s=typeof t=="number"?o=>t<o:o=>t.precedence>o;const i=typeof t=="number"?undefined:t;for(const t of Rs)if(s(t[1]||Number.MAX_SAFE_INTEGER)){const s=t[0](o,i);if(s){e=Ps(s,o);break}}return e||i||new se([])}const Rs=[];function Ns(t,o){Rs.push([t,o])}function Hs(t,o){if(typeof t=="string"){o=o||new qe.Error.ConsoleHandler;const e=Ve(t,o).toArray();t=new Ds(e,o)}o=o instanceof cs?o:undefined;let e;let s=false;let i=false;while(!e!=s&&!i&&t.peek()){let o=1;s=false;i=false;while(!s&&!i&&t.peek(o)){s=Ds.binaryOperator.some((e=>t.peek(o)?.value==e));i=Ds.comparator.some((e=>t.peek(o)?.value==e));o++}e=Fs(e??Number.MAX_SAFE_INTEGER,t)}if(!e)t.raise("Missing Expression");return e??new us(NaN)}function Fs(t,o){let e;const s=typeof t=="number"?undefined:t;for(const s of Ys){const i=s[0](o,t);if(i){e=i;break}}return e||s}const Ys=[];function Ws(t,o){Ys.push([t,o])}Ns((t=>{const o=t.fetchIf(":","every","(")&&new rs(Ms(t.clone()));if(o&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return o}));Ns((t=>{const o=t.fetchIf(":","some","(")&&new ks(Ms(t.clone()));if(o&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return o}));Ns(Us(Ms));Ws(Us(Hs));function Us(t){return o=>{const e=o.fetchIf("(")&&t(o.clone());if(e&&!o.fetchIf(")"))o.raise("Missing end of parenthesis.");return e}}Ns((t=>t.fetchIf(">")&&new ms(Hs(t))));Ns((t=>t.fetchIf(">=")&&new ys(Hs(t))));Ns((t=>t.fetchIf("<")&&new zs(Hs(t))));Ns((t=>t.fetchIf("<=")&&new _s(Hs(t))));Ns((t=>t.fetchIf("!")&&new As(Ps(As.precedence,t))));Ns((t=>{const o=t.fetchIf("has","(","any",")")||t.fetchIf(":","has","(","any",")");return o&&new fs(o.length==4?o[2].value:o[3].value)}));class qs extends Ko{constructor(t){super();this.value=t;this.precedence=85;this.class="Within"}is(t){return this.value.includes(t)}toString(){return`within(${this.value.join(", ")})`}}function Bs(t,o){const e=new qs(t);return o?e.is(o):e}function Vs(t,o,e){return e&&o?.class?Qe.functions(t,(t=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}is.String.add(Vs);is.Number.add(Vs);Ns((t=>{const o=t.fetchIf(":","within","(");let e;if(o&&t.peek()){e=[t.fetch()?.value??""];while(t.fetchIf(","))e.push(t.fetchIf("any")?.value??"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return o&&e?new qs(e):undefined}));Ns((t=>{const o=t.peek(3)?.value;const e=[")",",","("].find((t=>t==o))||t.peek(2)?.value==")"?t.fetchIf("identifier","("):undefined;let s;if(e&&t.peek()){s=[t.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(t.fetchIf(","))s.push(t.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return e&&s?new hs(e[0].value,s):undefined}));class Xs extends Ko{constructor(t,o){super();this.name=t;this.criteria=o;this.precedence=Xs.precedence;this.class="Property";this.symbol="."}is(t,o){return!this.criteria?t==o?.[this.name]:typeof t=="object"?this.criteria.is(t[this.name],o??t):this.criteria.is(t,o?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Xs.precedence=80;function Ks(t,o,e){const s=(Array.isArray(t)?t:[t]).reduceRight(((t,o)=>new Xs(o,t)),te(o));return e?s.is(e):s}Go((t=>typeof t=="object"&&!(t instanceof Ko)&&!Array.isArray(t)?ie(...Object.getOwnPropertyNames(t).map((o=>Ks(o,t[o])))):undefined));Ns((t=>{const o=[];let e;while(e=t.fetchIf("identifier","."))o.push(e[0].value);if(t.peekIs("identifier",Ds.comparator)&&(e=t.fetchIf("identifier")))o.push(e.value);return o.length>0?o.reduceRight(((t,o)=>new Xs(o,t)),t.peekIs("identifier")&&(e=t.fetchIf("identifier"))?new Xs(e.value):Ps(Xs.precedence,t)):undefined}));Ns((t=>{const o=t.fetchIf(":","*","any","*")||t.fetchIf("*","any","*");return o&&new gs(o.length==4?o[2].value:o[1].value)}));class Js extends Ko{constructor(t){super();this.needle=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(t){return typeof t=="string"&&t.startsWith(this.needle)}toString(){return`${this.needle}*`}}function Gs(t,o){return Qe.expressions(t,(t=>!t||t.length==1&&t[0].value=="*"||t.length==2&&t[1].value=="*"&&o.value&&o.value.startsWith(t[0]?.value??"")?[is.Completion.prepend("",{value:o?.value??"",suggestion:{value:o?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}is.String.add(Gs);Ns((t=>{const o=t.fetchIf(":","any","*")||t.fetchIf("any","*");return o&&new Js(o?.length==3?o[1].value:o[0].value)}));Ns((t=>{const o=t.fetchIf(":","*","any")||t.fetchIf("*","any");return o&&new ls(o?.length==3?o[2].value:o[1].value)}));class Zs extends cs{toString(){const t=this.symbol;return this.left.stringify(Zs.getPrecedence(t))+` ${t} `+this.right.stringify(Zs.getPrecedence(t))}constructor(t,o,e,s){super();this.precedence=o;this.left=e;this.right=s;this.class="InfixOperator";this.symbol=t.replace(/ /g,"")}evaluate(t){let o;switch(this.getSymbol()){case"+":o=this.left.evaluate(t)+this.right.evaluate(t);break;case"-":o=this.left.evaluate(t)-this.right.evaluate(t);break;case"*":o=this.left.evaluate(t)*this.right.evaluate(t);break;default:o=NaN;break}return o}getSymbol(){return this.symbol}stringify(t=0){let o=this.toString();if(this.precedence<t)o="("+o+")";return o}static getPrecedence(t){let o;t=t?.replace(/ /g,"");switch(t){case"+":o=14;break;case"-":o=15;break;case"*":o=16;break;default:o=undefined;break}return o}static create(t,o,e){let s;const i=new Zs("+",14,o,e);const l=Zs.getPrecedence(t);if(l)s=new Zs(t,l,o,e);return s||i}}function Qs(t,o,e){return[" + "," - "," * "].map((t=>({value:t,suggestion:{value:t}}))).map((s=>is.Completor.operators(t,(t=>t?e.complete(t,undefined,o):[]),s))).reduce(((t,o)=>t.concat(o)),[])}is.Number.addArgument(Qs);Ws(((t,o)=>{let e;const s=t.peekIs(Ds.binaryOperator)&&t.fetch().value;let i;if(s&&typeof o=="object"){let l;let n;let r=0;i=Zs.getPrecedence(s);while(!n&&t.peek(r)){n=t.peek(r)?.value=="("?Number.MAX_SAFE_INTEGER:Zs.getPrecedence(t.peek(r)?.value);r++}if(n&&i<n){l=Fs(i,t);if(!l){t.raise("Missing right hand side of "+s)}}else l=Fs(NaN,t);if(n&&i==n||n==Number.MAX_SAFE_INTEGER){e=Fs(new Zs(s,i,o,l),t)}else e=new Zs(s,i,o,l)}return e}));Ws(((t,o)=>{const e=[];let s;while(s=t.fetchIf("identifier","."))e.push(s[0].value);let i;if(e.length==0){s=t.fetchIf("any",".","any")||t.fetchIf("any",",","any")||t.fetchIf("any");i=s&&(Array.isArray(s)?new us(+s.map((t=>t.value.replace(",","."))).join("")):new us(s.value))}else{s=t.fetchIf("identifier");const o=new us(s?s.value:0);i=e.length>0?e.reduceRight(((t,o)=>new us(isNaN(+t)?t:+t,o)),o):undefined}if(i&&typeof o=="number"&&!isNaN(o)&&o!=Number.MAX_SAFE_INTEGER)i=Fs(i,t);return i}));Ns((t=>{let o;if(t.fetchIf(":")){let e=false;let s=false;let i=1;while(!e&&!s&&t.peek(i)){e=Ds.binaryOperator.some((o=>t.peek(i)?.value==o));s=Ds.comparator.some((o=>t.peek(i)?.value==o));i++}if(e)o=Hs(t)}const e=t.fetchIf("any");return o?new Cs(o):e&&new Cs(e.value)}));Ns((t=>{t.raise(`Ignoring unknown token "${t.fetch()}"`);return undefined}));var ti;(function(t){function o(t,o){let e=undefined;let s;const i=typeof t=="string"?t:t.toString();if(o&&o.input&&o.identifier&&o?.input?.length>0&&o?.identifier?.length>0&&o.identifier.includes(i)){s=o.identifier.indexOf(i);e=isNaN(+o.input[s])?o.input[s]:+o.input[s]}return e}t.argument=o})(ti||(ti={}));class oi extends Ko{constructor(t){super();this.criteria=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(t){return this.criteria.length==t.length&&this.criteria.every(((o,e)=>o.is(t[e])))}toString(){return`[${this.criteria.map((t=>t.toString())).join(", ")}]`}}Go((t=>Array.isArray(t)?new oi(t.map(te)):undefined));function ei(t,o){const e=te(t);return o?e.is(o):e}function si(t,o){const e=te(t);return e.filter(o)}const ii=r({emit:A()});var li;(function(t){let o;(function(t){t.type=r({property:a().optional(),properties:h(a(),a()).optional()})})(o=t.Element||(t.Element={}));t.type=o.type.extend({smoothlyFilterUpdate:ii,smoothlyFilterManipulate:ii})})(li||(li={}));const ni='.sc-smoothly-filter-h{position:relative;border:1px solid rgb(var(--smoothly-medium-tint));margin-left:1rem;margin-right:1rem;display:flex;flex-direction:row;align-items:center}.sc-smoothly-filter-h>div.sc-smoothly-filter-s>[slot=detail]{z-index:5}.sc-smoothly-filter-h.sc-smoothly-filter-s>[slot=bar]{pointer-events:auto;margin-left:0.3em;margin-right:0.3em}.sc-smoothly-filter-h>div.sc-smoothly-filter:empty+smoothly-icon.sc-smoothly-filter{display:none}.sc-smoothly-filter-h>smoothly-icon.sc-smoothly-filter{cursor:pointer;margin-left:0.3em;margin-right:0.3em;flex-shrink:0}.close.sc-smoothly-filter{position:fixed;z-index:3;top:0;left:0;width:100dvw;height:100dvh;background:transparent}.hidden.sc-smoothly-filter{display:none}.sc-smoothly-filter-h>.container.sc-smoothly-filter{padding:2em;position:absolute;right:0.35em;width:fit-content;display:flex;justify-content:center;top:100%;width:fit-content;z-index:4;background-color:rgb(var(--smoothly-color));margin:0.8em -2em}.container.sc-smoothly-filter:before{content:"";width:0.6em;height:0.6em;transform:rotate(45deg);border-top:1px solid rgb(var(--smoothly-medium-tint));border-left:1px solid rgb(var(--smoothly-medium-tint));background-color:rgb(var(--smoothly-color));position:absolute;z-index:3}.container.arrow-top.sc-smoothly-filter:before{left:calc(91%);top:-5px}.container.sc-smoothly-filter:after{content:"";height:100%;width:100%;border:1px solid rgb(var(--smoothly-medium-tint));border-radius:0.25em;position:absolute;top:0;left:0}';const ri=class{constructor(o){t(this,o);this.smoothlyFilter=e(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=ie();this.expanded=false}updateHandler(t){t.stopPropagation();if(li.Element.type.is(t.target))this.filters.add(t.detail)}manipulateHandler(t){t.stopPropagation();this.updating=true;this.criteria=t.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((t=>t(this.criteria)));this.updating=false}filterFieldHandler(t){t.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=ie(t.detail));this.filters.forEach((t=>t(this.criteria)))}}clear(){var t;(t=this.field)===null||t===void 0?void 0:t.clear();this.smoothlyFilter.emit(this.criteria=ie());this.filters.forEach((t=>t(this.criteria)))}render(){return o(s,null,o("slot",{name:"bar"}),o("smoothly-filter-field",{criteria:this.criteria,ref:t=>this.field=t}),this.criteria.toString()!=""&&o("smoothly-icon",{name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),o("div",{class:this.expanded?"container arrow-top":"hidden"},o("slot",{name:"detail"})),o("smoothly-icon",{name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),o("div",{class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};ri.style=ni;const ai=".sc-smoothly-filter-field-h{flex-grow:1}";const hi=class{constructor(o){t(this,o);this.smoothlyFilterField=e(this,"smoothlyFilterField",7);this.criteria=undefined}async clear(){var t;await((t=this.input)===null||t===void 0?void 0:t.clear())}filterFieldEmit(){var t;this.smoothlyFilterField.emit(Ms((t=this.input)===null||t===void 0?void 0:t.value))}render(){return o(s,{onKeyDown:t=>t.key=="Enter"&&this.filterFieldEmit()},o("smoothly-input",{name:"filter",ref:t=>this.input=t,value:this.criteria.toString(),onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyBlur:t=>{t.stopPropagation();this.filterFieldEmit()},onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation()}},"Filter"))}};hi.style=ai;const ci=".sc-smoothly-filter-input-h{display:block}";const ui=class{constructor(o){t(this,o);this.smoothlyFilterUpdate=e(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=e(this,"smoothlyFilterManipulate",7);this.type="text";this.needle="";this.property=undefined;this.placeholder=undefined}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(t){var o,e;if(t instanceof se&&t.rules.length>0)this.needle=(e=(o=t.rules.find((t=>t instanceof Xs&&t.name==this.property&&t.criteria instanceof gs)))===null||o===void 0?void 0:o.criteria.needle)!==null&&e!==void 0?e:"";else this.needle=""}inputHandler(t){t.stopPropagation();const o=t.detail[this.property];const e=t=>{let e=t;const s=o?Ks(this.property,vs(o)):undefined;if(e instanceof se){const t=e.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s?t!=-1&&e.rules.splice(t,1):t==-1?e.rules.push(s):e.rules[t]=s;e=ie(...e.rules)}return e};this.smoothlyFilterManipulate.emit(e.bind(this))}findInstanceOf(t,o){return t instanceof Xs&&t.name==o}render(){return o("smoothly-input",{name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>this.inputHandler(t)},o("slot",null))}};ui.style=ci;const mi=".sc-smoothly-filter-picker-h{display:contents}.sc-smoothly-filter-picker-h>smoothly-picker.sc-smoothly-filter-picker{width:12.5em}";const di=class{constructor(o){t(this,o);this.smoothlyFilterUpdate=e(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=e(this,"smoothlyFilterManipulate",7);this.updating=false;this.options=new Map;this.property=undefined;this.multiple=false}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}optionChangeHandler(t){t.stopPropagation();this.options.set(t.detail.value,{state:{[this.property]:t.detail.value},selected:t.detail.set.selected})}update(t){this.updating=true;if(t instanceof se&&t.rules.length>0)for(const o of this.options.values())o.selected(t.rules.some((t=>t.is(o.state)&&t instanceof Xs&&t.name==this.property)));else this.options.forEach((t=>t.selected(false)));this.updating=false}pickerHandler(t){t.stopPropagation();if(!this.updating){const o=t.detail[this.property];const e=t=>{let e=t;const s=this.getCriteria(o);if(!(e instanceof Ko)){e=s?ie(e,s):e}else if(e instanceof se){const t=e.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s?e.rules.splice(t,1):t==-1?e.rules.push(s):e.rules[t]=s;e=ie(...e.rules)}return e};this.smoothlyFilterManipulate.emit(e.bind(this))}}findInstanceOf(t,o){return t instanceof Xs&&t.name==o}getCriteria(t){let o;if(this.multiple&&a().array({criteria:"minLength",value:1}).is(t))o=Ks(this.property,Bs(t));else if(typeof t=="string")o=Ks(this.property,ei(t));else o=undefined;return o}render(){return o("smoothly-picker",{name:this.property,looks:"border",multiple:this.multiple,onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyPickerLoaded:t=>t.stopPropagation(),onSmoothlyInput:t=>this.pickerHandler(t)},o("span",{slot:"label"},[this.property.slice(0,1).toUpperCase(),this.property.slice(1,this.property.length)].join("")),o("span",{slot:"search"},"Search"),o("slot",null))}};di.style=mi;const yi=".sc-smoothly-filter-toggle-h{position:relative;display:inline-block}[flip].sc-smoothly-filter-toggle-h{transform:scaleX(-1)}";const pi=class{constructor(o){t(this,o);this.smoothlyFilterUpdate=e(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=e(this,"smoothlyFilterManipulate",7);this.icon=undefined;this.properties=undefined;this.toolTip=undefined;this.not=undefined;this.flip=false;this.active=false}componentWillLoad(){this.active&&this.activeHandler()}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(t){if(t instanceof se&&t.rules.length>0){this.active=Object.entries(this.properties).every((([o,e])=>t.rules.some((t=>{const s=!this.not?t:t instanceof As?t.criteria:undefined;return e==""?!(s instanceof Xs&&s.name==o):this.isCriteria(s,o,e)}))))}else this.active=false}isCriteria(t,o,e){const[s,...i]=o.split(".");return t instanceof Xs&&t.name==s&&(t.criteria instanceof Cs&&t.criteria.value==e||this.isCriteria(t.criteria,i.join("."),e))}activeHandler(t){const o=o=>{let e=o;t&&(this.active=!this.active);if(e instanceof se){for(const[t,o]of Object.entries(this.properties)){const s=!this.active||this.active&&o==""?undefined:this.not?Is(this.createCriteria(t,o)):this.createCriteria(t,o);const i=e.rules.findIndex((o=>this.findInstanceOf(o,t)));!s&&i>=0?e.rules.splice(i,1):!s?undefined:i==-1?e.rules.push(s):e.rules[i]=s}e=ie(...e.rules)}return e};this.smoothlyFilterManipulate.emit(o.bind(this))}createCriteria(t,o){const[e,...s]=t.split(".");return Ks(e,s.length==0?ei(o):this.createCriteria(s.join("."),o))}findInstanceOf(t,o){const e=!this.not?t:t instanceof As?t.criteria:false;const[s,...i]=o.split(".");return e instanceof Xs&&e.name==s&&(i.length==0||!!e.criteria&&this.findInstanceOf(e.criteria,i.join(".")))}render(){return o("smoothly-icon",{fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};pi.style=yi;var fi;(function(t){function o(t){return typeof t=="string"&&(t=="GET"||t=="POST"||t=="DELETE"||t=="HEAD"||t=="PATCH"||t=="PUT"||t=="OPTIONS"||t=="TRACE"||t=="CONNECT")}t.is=o;function e(t){t=t?.toUpperCase();return o(t)?t:undefined}t.parse=e})(fi||(fi={}));const bi={};function gi(t,...o){o.forEach((o=>bi[o]=t))}function vi(t){const o=t.headers.get("Content-Type");const e=o&&o.split(";");const s=bi[e?.[0]??"plain/text"];return s?s(t):t.text()}const wi={};function ki(t,...o){o.forEach((o=>wi[o]=t))}function xi(t,o){const e=wi[o?.split(";")[0]??""];return e?e(t,o):t}function Si(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function Ci(t){const o=t.replace(/[A-Z]/g,(t=>"-"+t));return o[0].toUpperCase()+o.substring(1)}const zi=[["aIM","A-IM",1],["accept","Accept",2],["acceptCharset","Accept-Charset",2],["acceptDatetime","Accept-Datetime",1],["acceptEncoding","Accept-Encoding",2],["acceptLanguage","Accept-Language",2],["accessControlRequestMethod","Access-Control-Request-Method",1],["accessControlRequestHeaders","Access-Control-Request-Headers",1],["authorization","Authorization",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentLength","Content-Length",1],["contentMD5","Content-MD5",1],["contentType","Content-Type",1],["cookie","Cookie",1],["date","Date",1],["expect","Expect",1],["forwarded","Forwarded",1],["from","From",1],["host","Host",1],["http2Settings","HTTP2-Settings",1],["ifMatch","If-Match",2],["ifModifiedSince","If-Modified-Since",1],["ifNoneMatch","If-None-Match",2],["ifRange","If-Range",1],["ifUnmodifiedSince","If-Unmodified-Since",1],["maxForwards","Max-Forwards",1],["origin","Origin",1],["pragma","Pragma",1],["proxyAuthorization","Proxy-Authorization",1],["range","Range",1],["referer","Referer",1],["te","TE",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["userAgent","User-Agent",1],["upgrade","Upgrade",2],["via","Via",2],["warning","Warning",1],["upgradeInsecureRequests","Upgrade-Insecure-Requests",1],["xRequestedWith","X-Requested-With",1],["dnt","DNT",1],["xForwardedFor","X-Forwarded-For",1],["xForwardedHost","X-Forwarded-Host",1],["xForwardedProto","X-Forwarded-Proto",1],["xMsContinuation","X-Ms-Continuation",1],["frontEndHttps","Front-End-Https",1],["xHttpMethodOverride","X-Http-Method-Override",1],["xAttDeviceId","X-ATT-DeviceId",1],["xWapProfile","X-Wap-Profile",1],["proxyConnection","Proxy-Connection",1],["xCsrfToken","X-Csrf-Token",1],["xCorrelationID","X-Correlation-ID",1],["xModNonce","x-mod-nonce",1],["xModRetry","x-mod-retry",1],["saveData","Save-Data",1],["xAuthToken","X-Auth-Token",1],["xTrackingId","x-tracking-id",1]];var ji;(function(t){function o(t){function o(t){return t==undefined||typeof t=="string"}function e(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&zi.every((s=>(s[2]==1?o:e)(t[s[0]])))}t.is=o;function e(t){return Object.fromEntries(Object.entries(t).map((([t,o])=>{const e=zi.find((([o,e,s])=>o==t));return[e?e[1]:Ci(t),Array.isArray(o)?o.join(", "):o]})))}t.to=e;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...o])=>[t,o.join(", ")])):l(t)?[...t]:Object.entries(t)).map((([t,o])=>{const e=zi.find((([o,e,s])=>t.toLowerCase()==e.toLowerCase()));return e?[e[0],e[2]==1||typeof o!="string"?o:o.split(",").map((t=>t.trim()))]:[Si(t),o]})))}t.from=s;function i(t){return Object.entries(t).map((([t,o])=>t+": "+o)).join("\n")}t.toString=i;function l(t){return typeof t.entries=="function"}})(ji||(ji={}));var _i;(function(t){function o(t){return typeof t=="object"&&Object.keys(t).every((t=>["method","url","parameter","search","remote","header","body"].some((o=>o==t))))&&fi.is(t.method)&&t.url instanceof URL&&typeof t.parameter=="object"&&Object.entries(t.parameter).every((([t,o])=>typeof t=="string"&&typeof o=="string"))&&typeof t.search=="object"&&Object.entries(t.search).every((([t,o])=>typeof t=="string"&&typeof o=="string"))&&(t.remote==undefined||typeof t.remote=="string")&&(t.header==undefined||ji.is(t.header))}t.is=o;async function e(t){const e=o(t)?t:i(t);const s=e.header.contentType?.startsWith("multipart/form-data")?(({contentType:t,...o})=>o)(e.header):e.header;return{url:e.url.toString(),method:e.method,headers:ji.to(s),body:["GET","HEAD"].some((t=>t==e.method))?undefined:await xi(await e.body,e.header.contentType)}}t.to=e;function s(t){const o=new URL(t.url);return{method:fi.parse(t.method)??"GET",url:o,header:ji.from(t.headers),parameter:{},search:Object.fromEntries(o.searchParams.entries()),body:vi(t),..."cf"in t&&{cloudflare:t.cf}}}t.from=s;function i(t){let o;if(typeof t=="string")o=i({url:t});else{const e=typeof t.url=="string"?new URL(t.url):t.url;o={method:fi.parse(t.method)??"GET",url:e,parameter:t.parameter??{},search:{...t.search,...Object.fromEntries(e.searchParams.entries())},remote:t.remote,header:t.header??{},body:t.body}}return o}t.create=i;(function(t){t.is=ji.is;t.from=ji.from;t.to=ji.to})(t.Header||(t.Header={}))})(_i||(_i={}));const Li=typeof Response!="undefined"?Response:globalThis.Response;var Ti=undefined&&undefined.__classPrivateFieldGet||function(t,o,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof o==="function"?t!==o||!s:!o.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(t):s?s.value:o.get(t)};var Ai=undefined&&undefined.__classPrivateFieldSet||function(t,o,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof o==="function"?t!==o||!i:!o.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,e):i?i.value=e:o.set(t,e),e};var Ii,Oi,$i,Ei,Di,Mi,Pi,Ri,Ni;class Hi{get state(){return Ti(this,Ei,"f")?"closed":"opened"}set onMessage(t){if(Ti(this,Oi,"f").length&&t){Ti(this,Oi,"f").forEach(t);Ai(this,Oi,[],"f")}Ai(this,Mi,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();Ai(this,Pi,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();Ai(this,Ni,t,"f")}constructor(t,o){Ii.add(this);Oi.set(this,[]);$i.set(this,[]);Ei.set(this,false);Di.set(this,void 0);Mi.set(this,void 0);Pi.set(this,void 0);Ni.set(this,void 0);Ai(this,Di,t,"f");if(o)Ai(this,$i,undefined,"f");Ti(this,Di,"f").addEventListener("open",(()=>{if(Ti(this,Ni,"f"))Ti(this,Ni,"f").call(this);Ti(this,Ii,"m",Ri).bind(this)}));Ti(this,Di,"f").addEventListener("message",(async t=>{const o=this.processReceived(t.data);Ti(this,Ii,"m",Ri).call(this);if(Ti(this,Mi,"f"))Ti(this,Mi,"f").call(this,o);else Ti(this,Oi,"f")?.push(o)}));Ti(this,Di,"f").addEventListener("close",(()=>{if(Ti(this,Pi,"f"))Ti(this,Pi,"f").call(this);Ai(this,Ei,true,"f")}))}send(t){if(Ti(this,$i,"f"))Ti(this,$i,"f").push(this.processSend(t));else Ti(this,Di,"f").send(this.processSend(t))}}Oi=new WeakMap,$i=new WeakMap,Ei=new WeakMap,Di=new WeakMap,Mi=new WeakMap,Pi=new WeakMap,Ni=new WeakMap,Ii=new WeakSet,Ri=function t(){Ti(this,$i,"f")?.forEach((t=>Ti(this,Di,"f").send(t)));Ai(this,$i,undefined,"f")};class Fi extends Hi{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}}class Yi extends Hi{processReceived(t){return JSON.parse(t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t)}processSend(t){return JSON.stringify(t)}}class Wi extends Hi{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var Ui=undefined&&undefined.__classPrivateFieldGet||function(t,o,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof o==="function"?t!==o||!s:!o.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(t):s?s.value:o.get(t)};var qi=undefined&&undefined.__classPrivateFieldSet||function(t,o,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof o==="function"?t!==o||!i:!o.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,e):i?i.value=e:o.set(t,e),e};var Bi,Vi,Xi;class Ki{get json(){if(!Ui(this,Bi,"f"))qi(this,Bi,new Yi(this.backend,this.isOpen),"f");return Ui(this,Bi,"f")}get string(){if(!Ui(this,Vi,"f"))qi(this,Vi,new Wi(this.backend,this.isOpen),"f");return Ui(this,Vi,"f")}get arrayBuffer(){if(!Ui(this,Xi,"f"))qi(this,Xi,new Fi(this.backend,this.isOpen),"f");return Ui(this,Xi,"f")}constructor(t,o){this.backend=t;this.isOpen=o;Bi.set(this,void 0);Vi.set(this,void 0);Xi.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,o){this.backend.close(t,o)}}Bi=new WeakMap,Vi=new WeakMap,Xi=new WeakMap;var Ji;(function(t){t.Factory=Ki})(Ji||(Ji={}));const Gi=[["accessControlAllowOrigin","Access-Control-Allow-Origin",1],["accessControlAllowCredentials","Access-Control-Allow-Credentials",1],["accessControlExposeHeaders","Access-Control-Expose-Headers",2],["accessControlMaxAge","Access-Control-Max-Age",1],["accessControlAllowMethods","Access-Control-Allow-Methods",2],["accessControlAllowHeaders","Access-Control-Allow-Headers",2],["acceptPatch","Accept-Patch",1],["acceptRanges","Accept-Ranges",1],["age","Age",1],["allow","Allow",2],["altSvc","Alt-Svc",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentDisposition","Content-Disposition",1],["contentEncoding","Content-Encoding",1],["contentLanguage","Content-Language",2],["contentLength","Content-Length",1],["contentLocation","Content-Location",1],["contentMD5","Content-MD5",1],["contentRange","Content-Range",1],["contentSecurityPolicy","Content-Security-Policy",1],["contentType","Content-Type",1],["date","Date",1],["deltaBase","Delta-Base",1],["eTag","ETag",1],["expires","Expires",1],["iM","IM",1],["lastModified","Last-Modified",1],["link","Link",1],["location","Location",1],["p3P","P3P",1],["pragma","Pragma",1],["proxyAuthenticate","Proxy-Authenticate",1],["publicKeyPins","Public-Key-Pins",1],["refresh","Refresh",1],["retryAfter","Retry-After",1],["server","Server",1],["setCookie","Set-Cookie",1],["status","Status",1],["strictTransportSecurity","Strict-Transport-Security",1],["timingAllowOrigin","Timing-Allow-Origin",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["tk","Tk",1],["upgrade","Upgrade",2],["vary","Vary",2],["via","Via",1],["warning","Warning",1],["wwwAuthenticate","WWW-Authenticate",1],["xContentDuration","X-Content-Duration",1],["xContentSecurityPolicy","X-Content-Security-Policy",1],["xContentTypeOptions","X-Content-Type-Options",1],["xCorrelationId","X-Correlation-ID",1],["xFrameOptions","X-Frame-Options",1],["xMsContinuation","X-Ms-Continuation",1],["xPoweredBy","X-Powered-By",1],["xRequestId","X-Request-ID",1],["xUACompatible","X-UA-Compatible",1],["xWebkitCsp","X-WebKit-CSP",1],["xXssProtection","X-XSS-Protection",1]];var Zi;(function(t){function o(t){function o(t){return t==undefined||typeof t=="string"}function e(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&Gi.every((s=>(s[2]==1?o:e)(t[s[0]])))}t.is=o;function e(t){return Object.fromEntries(Object.entries(t).map((([t,o])=>{const e=Gi.find((([o,...e])=>o==t));return[e?e[1]:Ci(t),Array.isArray(o)?o.join(", "):o]})))}t.to=e;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...o])=>[t,o.join(", ")])):l(t)?n(t):Object.entries(t)).map((([t,o])=>{const e=Gi.find((([o,e,s])=>t.toLowerCase()==e.toLowerCase()));return e?[e[0],e[2]==1||typeof o!="string"?o:o.split(",").map((t=>t.trim()))]:[Si(t),o]})))}t.from=s;function i(t){return Object.entries(t).map((([t,o])=>t+": "+o)).join("\n")}t.toString=i;function l(t){return typeof t.forEach=="function"}function n(t){const o=[];t.forEach(((t,e)=>o.push([e,t])));return o}})(Zi||(Zi={}));var Qi;(function(t){function o(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((o=>o==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||Zi.is(t.header))&&(t.socket==undefined||typeof t.socket.close=="function"&&typeof t.socket.json?.send=="function"&&typeof t.socket.string?.send=="function"&&typeof t.socket.arrayBuffer?.send=="function")&&(t.status!=undefined||t.header!=undefined||t.body!=undefined)}t.is=o})(Qi||(Qi={}));var tl;(function(t){function o(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((o=>o==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||Zi.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=o;async function e(t){return new Li(await xi(await t.body,t.header.contentType),{status:t.status,headers:new Headers(Zi.to(!t.header.contentType?.startsWith("multipart/formdata")?t.header:(({contentType:t,...o})=>o)(t.header))),...t.socket&&{webSocket:{...t.socket.createResponse().socket}?.backend}})}t.to=e;function s(t){return{status:t.status,header:Zi.from(t.headers),body:t.status==101?undefined:vi(t),...t.webSocket&&{socket:new Ji.Factory(t.webSocket)}}}t.from=s;function i(t,o){const e=Qi.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(o==undefined||Zi.is(o))?t.createResponse(o):{status:typeof t=="object"&&typeof t.status=="number"&&t.status||200,header:typeof t=="object"?{...t.header,...(t.status==301||t.status==302)&&t.location?{location:t.location}:{}}:{},body:!(typeof t=="object"&&!Array.isArray(t))||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof FormData?t:(({header:t,...o})=>o)(t),...t.webSocket&&{socket:new Ji.Factory(t.webSocket)}||t.socket&&{socket:t.socket}};if(!e.header.contentType)switch(typeof e.body){case"undefined":break;default:case"object":e.header.contentType=typeof o=="string"?o:o?.contentType?o.contentType:e.body instanceof FormData?"multipart/formdata":e.body instanceof ArrayBuffer||ArrayBuffer.isView(e.body)?l(e.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":e.header.contentType=e.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(e.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(e.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return e}t.create=i;function l(t){const o=new Uint8Array(ArrayBuffer.isView(t)?t.buffer:t).slice(0,4);return[37,80,68,70].every(((t,e)=>t==o[e]))}t.Header=Zi;t.Like=Qi})(tl||(tl={}));const ol=el(globalThis.fetch);ol.create=el;function el(t){return async o=>{const e=_i.create(o);return tl.from(await t(e.url.toString(),await _i.to(e)))}}var sl;(function(t){function o(t){const o=new globalThis.FormData;o.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(e(t,"",o)))],{type:"application/json; charset=utf-8"}));return o}t.to=o;function e(t,o,i){return Object.entries(t).reduce(((t,[l,n])=>{n instanceof Blob?i.append(o?`${o}.${l}`:l,n):typeof n=="object"&&n?Array.isArray(n)?t[l]=s(n,o?`${o}.${l}`:l,i):t[l]=e(n,o?`${o}.${l}`:l,i):t[l]=n;return t}),{})}function s(t,o,i){return t.reduce(((t,l)=>{typeof l=="object"&&l?Array.isArray(l)?t.push(s(l,o,i)):t.push(e(l,o,i)):t.push(l);return t}),[])}async function i(t){const o={};for(const[e,s]of t.entries())await l(o,e.split("."),s);return o}t.from=i;async function l(t,[o,...e],s){if(e.length==0)s instanceof Blob&&s.type.startsWith("application/json")?o=="*"?n(t,JSON.parse(await s.text())):typeof t[o]=="object"&&t[o]?n(t[o],JSON.parse(await s.text())):t[o]=JSON.parse(await s.text()):t[o]=s;else l(typeof t[o]=="object"&&t[o]?t[o]:t[o]={},e,s)}function n(t,...o){if(o.length){const[e,...s]=o;Object.entries(e).forEach((([o,s])=>r(s)?n(r(t[o])?t[o]:t[o]={},s):t[o]=e[o]));n(t,...s)}}function r(t){return t&&typeof t=="object"&&!Array.isArray(t)}t.isObject=r})(sl||(sl={}));function il(t){const o=[];const e=(t,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":o.push(`${t}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o))e(t?t+`[${o}]`:o,s[o]);break}};e("",t);return o.join("&")}function ll(t){const o=t=>typeof t=="object"&&Object.keys(t).sort().every(((t,o)=>`${t}`==`${o}`))?Object.entries(t).sort().map((t=>typeof t[1]=="object"?o(t[1]):t[1])):typeof t=="object"?Object.fromEntries(Object.entries(t).map((t=>[t[0],o(t[1])]))):t;const e=(t,o,s)=>{t[o[0]]=o.length>1?e(t[o[0]]??{},o.slice(1),s):s;return t};const s=t.split("&").map((t=>t.split("=",2))).map((([t,o])=>[decodeURIComponent(t).split("[").map((t=>t.replace("]",""))),decodeURIComponent(o.replace(/\+/g," "))]));return s.reduce(((t,[s,i])=>o(e(t,s,i))),{})}gi((async t=>await t.text()),"text/plain","text/html");gi((async t=>await t.json()),"application/json");gi((async t=>await t.arrayBuffer()),"application/pdf");gi((async t=>sl.from(await t.formData())),"multipart/form-data");gi((async t=>ll(await t.text())),"application/x-www-form-urlencoded");ki((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");ki((async t=>JSON.stringify(t)),"application/json");ki((async t=>t),"application/pdf");ki((async t=>il(t)),"application/x-www-form-urlencoded");ki((async t=>t instanceof globalThis.FormData?t:sl.to(t)),"multipart/form-data");var nl;(function(t){function o(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=o})(nl||(nl={}));var rl;(function(t){let o;(function(t){t.type=r({edit:A(),readonly:c(),listen:A(),reset:A()})})(o=t.Element||(t.Element={}));t.type=o.type.extend({changed:c(),value:L().optional()})})(rl||(rl={}));var al;(function(t){t.types=["plain","grid","border","line","transparent"];t.type=a(t.types);t.is=t.type.is})(al||(al={}));var hl;(function(t){let o;(function(t){t.type=r({value:u(m.type,m.valueType).optional(),color:d.type.optional(),name:a(),looks:al.type});t.is=t.type.is})(o=t.Element||(t.Element={}));const e=r({emit:A()});t.type=o.type.extend({smoothlyInput:e,smoothlyInputForm:e.optional()});t.is=t.type.is})(hl||(hl={}));const cl='smoothly-form{display:block;position:relative;--background-color:var(--smoothly-color-shade);--text-color:var(--smoothly-color-contrast)}smoothly-form>form{position:relative;min-width:15em}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:10em;flex-basis:40%}smoothly-form[looks="grid"]>form>fieldset{border:rgba(var(--text-color), .5) solid .5px}smoothly-form[looks="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{gap:2em}smoothly-form>form>div{display:flex;justify-content:end;gap:1em}';const ul=class{constructor(o){t(this,o);this.smoothlyFormInput=e(this,"smoothlyFormInput",7);this.smoothlyFormSubmit=e(this,"smoothlyFormSubmit",7);this.notice=e(this,"notice",7);this.inputs=new Map;this.listeners={};this.color=undefined;this.value={};this.readonly=false;this.looks="plain";this.name=undefined;this.method=undefined;this.action=undefined;this.processing=undefined;this.prevent=true;this.changed=false}async listen(t,o){var e;var s;((e=(s=this.listeners)[t])!==null&&e!==void 0?e:s[t]=[]).push(o);o(this)}watchValue(){var t;this.changed=[...this.inputs.values()].some((t=>rl.type.is(t)?t.changed:true));(t=this.listeners.changed)===null||t===void 0?void 0:t.forEach((t=>t(this)))}watchReadonly(){var t;(t=this.listeners.changed)===null||t===void 0?void 0:t.forEach((t=>t(this)))}smoothlyInputLooksHandler(t){t.stopPropagation();t.detail(this.looks,this.color)}async smoothlyInputHandler(t){this.smoothlyFormInput.emit(this.value=m.merge(this.value,t.detail))}async smoothlySubmitHandler(t){this.processing=true;await this.submit();this.processing=false}async smoothlyInputLoadHandler(t){t.stopPropagation();t.detail(this);if(hl.Element.is(t.target)){this.value=m.merge(this.value,{[t.target.name]:t.target.value});this.inputs.set(t.target.name,t.target)}}async smoothlyFormDisableHandler(t){t.stopPropagation();t.detail(this.readonly)}async submit(){var t;this.smoothlyFormSubmit.emit(this.value);if(this.action){const o=this.action;(t=this.notice)===null||t===void 0?void 0:t.emit(b.execute("Submitting form",(async()=>{const t=await ol(this.method=="POST"?_i.create({method:"POST",url:o,header:{contentType:"application/json"},body:this.value}):{url:`${o}?${il(this.value)}`}).catch((()=>undefined));let e;if(!t||(t===null||t===void 0?void 0:t.status)<200||t.status>=300)e=[false,"Failed to submit form."];else{e=[true,"Form successfully submitted."];this.clear()}return e})))}}async clear(){this.inputs.forEach((t=>{nl.is(t)&&t.clear()}))}async edit(t){this.inputs.forEach((o=>{rl.Element.type.is(o)&&o.edit(t)}));this.readonly=!t}async reset(){this.inputs.forEach((t=>{rl.Element.type.is(t)&&t.reset()}));this.changed=[...this.inputs.values()].some((t=>rl.type.is(t)?t.changed:true))}render(){return o(s,null,o("smoothly-spinner",{active:this.processing}),o("form",{onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},o("fieldset",null,o("slot",null)),o("div",null,o("slot",{name:"edit"}),o("slot",{name:"reset"}),o("slot",{name:"clear"}),o("slot",{name:"submit"}))))}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};ul.style=cl;const ml=".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";const dl=class{constructor(o){t(this,o);this.trigger=e(this,"trigger",7);this.message2=e(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const t=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return t&&t.contentWindow||undefined}get defaultOrigin(){const t=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return t?t[0]:"*"}componentDidLoad(){var t;if(this.contentWindow)y.listen((t=this.origin)!==null&&t!==void 0?t:this.defaultOrigin,((t,o)=>{if(t==this.name)if(n.is(o))this.trigger.emit(o);else this.message2.emit({destination:t,content:o})}),window)}async send(t,o){var e,s;if(typeof t=="string")y.send(((e=this.origin)!==null&&e!==void 0?e:this.defaultOrigin)+"#"+t,o,this.contentWindow);else if(y.is(t)&&this.contentWindow)y.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+t.destination,content:t.destination},this.contentWindow)}render(){return[]}get element(){return i(this)}};dl.style=ml;const yl="[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:block}[hidden].sc-smoothly-icon-h{display:none}[size=tiny].sc-smoothly-icon-h{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}";const pl=class{constructor(o){t(this,o);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";this.toolTip=undefined;this.document=undefined}async componentWillLoad(){let t;if(this.name!="empty"){t=await p.load(this.name);t=t===null||t===void 0?void 0:t.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(t===null||t===void 0?void 0:t.includes("<title>"))t=t.replace(/(<title>)[\w\d\s-]*(<\/title>)/,`<title>${this.toolTip||""}</title>`);else t=t===null||t===void 0?void 0:t.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip||""}</title>$2`)}this.document=t!==null&&t!==void 0?t:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\n\t\t<title>Empty</title>\n\t\t</svg>`}render(){return o(s,{innerHTML:this.document})}static get watchers(){return{name:["componentWillLoad"]}}};pl.style=yl;const fl=".sc-smoothly-icon-demo-h{display:block}[hidden].sc-smoothly-icon-demo-h{display:none}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>*.sc-smoothly-icon-demo{margin:0.5cm}";const bl=class{constructor(o){t(this,o);this.page=0}render(){return[o("h1",null,"Icons"),o("div",null,["add-circle","add","airplane","alarm","albums","alert-circle","alert","american-football","analytics","aperture","apps","archive","arrow-back-circle","arrow-back","arrow-down-circle","arrow-down","arrow-forward-circle","arrow-forward","arrow-redo-circle","arrow-redo","arrow-undo-circle","arrow-undo","arrow-up-circle","arrow-up","at-circle","at","attach","backspace","bandage","barbell","bar-chart","barcode","baseball","basketball","basket","battery-charging","battery-dead","battery-full","battery-half","beaker","bed","beer","bicycle","bluetooth","boat","body","bonfire","bookmarks","bookmark","book","briefcase","browsers","brush","bug","build","bulb","business","bus","cafe","calculator","calendar","call","camera-reverse","camera","card","caret-back-circle","caret-back","caret-down-circle","caret-down","caret-forward-circle","caret-forward","caret-up-circle","caret-up","car-sport","car","cart","cash","cellular","chatbox-ellipses","chatbox","chatbubble-ellipses","chatbubbles","chatbubble","checkbox","checkmark-circle","checkmark-done-circle","checkmark-done","checkmark","chevron-back-circle","chevron-back","chevron-down-circle","chevron-down","chevron-forward-circle","chevron-forward","chevron-up-circle","chevron-up","clipboard","close-circle","close","cloud-circle","cloud-done","cloud-download","cloud-offline","cloud","cloud-upload","cloudy-night","cloudy","code-download","code-slash","code","code-working","cog","color-fill","color-filter","color-palette","color-wand","compass","construct","contract","contrast","copy","create","crop","cube","cut","desktop","disc","document-attach","documents","document","document-text","download","duplicate","ear","earth","easel","egg","ellipse","ellipsis-horizontal-circle","ellipsis-horizontal","ellipsis-vertical-circle","ellipsis-vertical","enter","exit","expand","eyedrop","eye-off","eye","fast-food","female","file-tray-full","file-tray-stacked","file-tray","film","filter","finger-print","fitness","flag","flame","flashlight","flash-off","flash","flask","flower","folder-open","folder","football","funnel","game-controller","gift","git-branch","git-commit","git-compare","git-merge","git-network","git-pull-request","glasses","globe","golf","grid","hammer","hand-left","hand-right","happy","hardware-chip","headset","heart-circle","heart-dislike-circle","heart-dislike","heart-half","heart","help-buoy","help-circle","help","home","hourglass","ice-cream","images","image","infinite","information-circle","information","journal","keypad","key","language","laptop","layers","leaf","library","link","list-circle","list","locate","location","lock-closed","lock-open","log-in","logo-amazon","logo-amplify","logo-android","logo-angular","logo-apple-appstore","logo-apple","logo-behance","logo-bitbucket","logo-bitcoin","logo-buffer","logo-capacitor","logo-chrome","logo-closed-captioning","logo-codepen","logo-css3","logo-designernews","logo-docker","logo-dribbble","logo-dropbox","logo-edge","logo-electron","logo-euro","logo-facebook","logo-firebase","logo-firefox","logo-flickr","logo-foursquare","logo-github","logo-gitlab","logo-google-playstore","logo-google","logo-hackernews","logo-html5","logo-instagram","logo-ionic","logo-ionitron","logo-javascript","logo-laravel","logo-linkedin","logo-markdown","logo-medium","logo-nodejs","logo-no-smoking","logo-npm","logo-octocat","logo-paypal","logo-pinterest","logo-playstation","logo-pwa","logo-python","logo-react","logo-reddit","logo-rss","logo-sass","logo-skype","logo-slack","logo-snapchat","logo-soundcloud","logo-stackoverflow","logo-steam","logo-stencil","logo-tiktok","logo-tumblr","logo-tux","logo-twitch","logo-twitter","logo-usd","log-out","logo-web-component","logo-venmo","logo-whatsapp","logo-vimeo","logo-windows","logo-vk","logo-wordpress","logo-vue","logo-xbox","logo-xing","logo-yahoo","logo-yen","logo-youtube","magnet","mail-open","mail","mail-unread","male-female","male","man","map","medal","medical","medkit","megaphone","menu","mic-circle","mic-off-circle","mic-off","mic","moon","move","musical-notes","musical-note","navigate-circle","navigate","newspaper","notifications-circle","notifications-off-circle","notifications-off","notifications","nuclear","nutrition","open","options","paper-plane","partly-sunny","pause-circle","pause","paw","pencil","people-circle","people","person-add","person-circle","person-remove","person","phone-landscape","phone-portrait","pie-chart","pin","pint","pizza","planet","play-back-circle","play-back","play-circle","play-forward-circle","play-forward","play-skip-back-circle","play-skip-back","play-skip-forward-circle","play-skip-forward","play","podium","power","pricetags","pricetag","print","pulse","push","qr-code","radio-button-off","radio-button-on","radio","rainy","reader","receipt","recording","refresh-circle","refresh","reload-circle","reload","remove-circle","remove","reorder-four","reorder-three","reorder-two","repeat","resize","restaurant","return-down-back","return-down-forward","return-up-back","return-up-forward","ribbon","rocket","rose","sad","save","scan-circle","scan","school","search-circle","search","send","server","settings","shapes","share-social","share","shield-checkmark","shield","shirt","shuffle","skull","snow","speedometer","square","star-half","star","stats-chart","stop-circle","stop","stopwatch","subway","sunny","swap-horizontal","swap-vertical","sync-circle","sync","tablet-landscape","tablet-portrait","tennisball","terminal","text","thermometer","thumbs-down","thumbs-up","thunderstorm","timer","time","today","toggle","trail-sign","train","transgender","trash-bin","trash","trending-down","trending-up","triangle","trophy","tv","umbrella","walk","wallet","warning","watch","water","videocam","wifi","wine","volume-high","volume-low","volume-medium","volume-mute","volume-off","woman"].slice(this.page*100,100).map((t=>o("smoothly-icon",{name:t,toolTip:t}))))]}};bl.style=fl;const gl='.sc-smoothly-input-h{box-sizing:border-box}.sc-smoothly-input-h[looks="border"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-input-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-h[looks="line"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-input-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-h[looks="grid"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-input-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-input-h{border:none}[looks="transparent"].sc-smoothly-input-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-h:not(:focus-within) input.sc-smoothly-input{background:transparent}[looks="transparent"].sc-smoothly-input-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-h{display:flex;align-items:center;justify-content:center;font-weight:var(--smoothly-font-weight);padding:0 0.4em;overflow:hidden;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));color:rgb(var(--text-color, var(--smoothly-color-contrast)))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input:nth-child(2){margin-left:0.2em}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}label.sc-smoothly-input{position:absolute;left:0;top:0.6em;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h:not([show-label]) label.sc-smoothly-input{display:none}.sc-smoothly-input-h:not([show-label]) input.sc-smoothly-input{padding:0.7em 0.3em 0.7em 0.4em}input.sc-smoothly-input{padding:1.2em 0.3em 0.2em 0.4em;box-sizing:border-box;width:100%;height:100%;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family);background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+label.sc-smoothly-input+smoothly-icon.sc-smoothly-input{display:block}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.sc-smoothly-input-h:not([readonly]):not(.has-value)[placeholder]>div.sc-smoothly-input>label.sc-smoothly-input,.has-value.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input,.sc-smoothly-input-h:not([readonly]):not(.has-value):focus-within>div.sc-smoothly-input>label.sc-smoothly-input{top:0.4em;transform:scale(0.6)}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--background-color, var(--smoothly-color-shade))) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--background-color, var(--smoothly-color-shade))) inset}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--text-color, var(--smoothly-color-contrast)))}';const vl=class{constructor(o){t(this,o);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=e(this,"smoothlyFormDisable",7);this.smoothlyBlur=e(this,"smoothlyBlur",7);this.smoothlyChange=e(this,"smoothlyChange",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.keepFocusOnReRender=false;this.listener={};this.color=undefined;this.delay=0;this.looks="plain";this.name=undefined;this.value=undefined;this.type="text";this.required=false;this.showLabel=true;this.autocomplete=true;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.currency=undefined;this.changed=false;this.formatter=undefined;this.initialValue=undefined}async listen(t,o){this.listener[t]=o;o(this)}async SmoothlyInputLoadHandler(t){if(!(t.target&&"name"in t.target&&t.target.name==this.name)){t.stopPropagation();t.detail(this)}}typeChange(){let t;switch(this.type){case"price":t=ho("price",this.currency);break;default:t=ho(this.type,wl());break}this.formatter=t||ho("text")}newState(t){return this.formatter.format(lo.copy(this.formatter.unformat(lo.copy(t))))}valueWatcher(t,o){var e,s;this.changed=this.initialValue!==this.value;if(this.lastValue!=t){this.lastValue=t;this.state=Object.assign(Object.assign({},this.state),{value:this.newState({value:this.formatter.toString(t),selection:this.state.selection}).value})}if(t!=o){if(typeof t=="string")t=t.trim();this.smoothlyInputEmit(t)}(s=(e=this.listener).changed)===null||s===void 0?void 0:s.call(e,this)}async smoothlyInputEmit(t){var o;(o=this.abortInputEvent)===null||o===void 0?void 0:o.call(this);const e=window.setTimeout((()=>{this.abortInputEvent=undefined;this.smoothlyInput.emit({[this.name]:t})}),this.delay*1e3);this.abortInputEvent=()=>{this.abortInputEvent=undefined;window.clearTimeout(e)}}watchingReadonly(){var t,o;(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}onCurrency(){this.state=Object.assign(Object.assign({},this.state),{value:this.newState({value:this.formatter.toString(this.value),selection:this.state.selection}).value,pattern:this.newState({value:this.formatter.toString(this.value),selection:this.state.selection}).pattern})}componentWillLoad(){var t,o;this.typeChange();const e=this.formatter.toString(this.value)||"";this.lastValue=this.initialValue=this.value;const s=e.length;this.state=this.newState({value:e,selection:{start:s,end:s,direction:"none"}});this.smoothlyInputLooks.emit(((t,o)=>(this.looks=t,!this.color&&(this.color=o))));this.smoothlyInputLoad.emit((()=>{}));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}componentDidRender(){if(this.keepFocusOnReRender){this.inputElement.focus();this.keepFocusOnReRender=false}}async clear(){this.value=undefined}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async getFormData(t){const o={};const e=document.forms.namedItem(t);if(e){const t=e.elements;for(let e=0;e<t.length;e++){const s=t.item(e);if(this.hasNameAndValue(s)&&s.name)o[s.name]=s.value}const s=e.getElementsByTagName("smoothly-input");for(let t=0;t<s.length;t++){const e=s.item(t);if(this.hasNameAndValue(e)&&e.name)o[e.name]=e.value}}return o}hasNameAndValue(t){return typeof t.name=="string"&&typeof t.value=="string"}async setKeepFocusOnReRender(t){this.keepFocusOnReRender=t}async setSelectionRange(t,o,e){this.state=this.newState(Object.assign(Object.assign({},this.state),{selection:{start:t,end:o,direction:e!==null&&e!==void 0?e:this.state.selection.direction}}));const s=this.formatter.format(lo.copy(this.formatter.unformat(lo.copy(Object.assign({},this.state)))));this.updateBackend(s,this.inputElement)}onBlur(t){this.smoothlyBlur.emit();if(this.abortInputEvent){this.abortInputEvent();const t=typeof this.value=="string"?this.value.trim():this.value;this.smoothlyInput.emit({[this.name]:t})}if(this.initialValue!=this.value)this.smoothlyChange.emit({[this.name]:this.value})}onFocus(t){const o=this.formatter.format(lo.copy(this.formatter.unformat(lo.copy(Object.assign({},this.state)))));if(t.target)this.updateBackend(o,t.target,false)}onClick(t){var o,e,s;const i=t.target;this.state=Object.assign(Object.assign({},this.state),{value:i.value,selection:{start:(o=i.selectionStart)!==null&&o!==void 0?o:i.value.length,end:(e=i.selectionEnd)!==null&&e!==void 0?e:i.value.length,direction:(s=i.selectionDirection)!==null&&s!==void 0?s:"none"}});const l=this.newState(Object.assign({},this.state));this.updateBackend(l,i)}onKeyDown(t){var o,e,s;if(t.key&&!(t.key=="Unidentified")){const i=t.target;this.state=Object.assign(Object.assign({},this.state),{value:i.value,selection:{start:(o=i.selectionStart)!==null&&o!==void 0?o:i.value.length,end:(e=i.selectionEnd)!==null&&e!==void 0?e:i.value.length,direction:(s=i.selectionDirection)!==null&&s!==void 0?s:"none"}});if(!((t.ctrlKey||t.metaKey)&&(t.key=="v"||t.key=="x"||t.key=="c"))&&t.key.length==1||t.key=="ArrowLeft"||t.key=="ArrowRight"||t.key=="Delete"||t.key=="Backspace"||t.key=="Home"||t.key=="End"){t.preventDefault();this.processKey(t,i)}else if(t.key=="ArrowUp"||t.key=="ArrowDown")t.preventDefault()}}onPaste(t){t.preventDefault();let o=t.clipboardData?t.clipboardData.getData("text"):"";const e=t.target;o=this.expiresAutocompleteFix(e,o);this.processPaste(o,e)}onInput(t){var o;if(t.inputType=="insertReplacementText"){this.processKey({key:"a",ctrlKey:true},t.target);[...(o=t.data)!==null&&o!==void 0?o:""].forEach((o=>this.processKey({key:o},t.target)))}else{const o=t.target;let e=o.value;if(e){t.preventDefault();this.processKey({key:"a",ctrlKey:true},o);e=this.expiresAutocompleteFix(o,e);for(const t of e)this.processKey({key:t},o)}}}expiresAutocompleteFix(t,o){var e;if(((e=t.attributes.getNamedItem("autocomplete"))===null||e===void 0?void 0:e.value)=="cc-exp")o=o.match(/^20\d\d[.\D]*\d\d$/)?o.substring(o.length-2,o.length)+o.substring(2,4):o.match(/^(1[3-9]|[2-9]\d)[.\D]*\d\d$/)?o.substring(o.length-2,o.length)+o.substring(0,2):o.match(/^\d\d[.\D]*20\d\d$/)?o.substring(0,2)+o.substring(o.length-2,o.length):o;return o}processPaste(t,o){if(!this.readonly){const e=no.paste(this.formatter,this.state,t);this.updateBackend(e,o)}}processKey(t,o){if(!this.readonly){const e=no.apply(this.formatter,this.state,t);this.updateBackend(e,o)}}updateBackend(t,o,e=true){var s;if(t.value!=o.value)o.value=t.value;if(e){if(o.selectionStart!=undefined&&t.selection.start!=o.selectionStart)o.selectionStart=t.selection.start;if(o.selectionEnd!=undefined&&t.selection.end!=o.selectionEnd)o.selectionEnd=t.selection.end;o.selectionDirection=(s=t.selection.direction)!==null&&s!==void 0?s:o.selectionDirection}this.state=t;this.value=this.lastValue=this.formatter.fromString(this.formatter.unformat(lo.copy(Object.assign({},this.state))).value)}render(){var t,e,i,l,n,r,a;return o(s,{class:{"has-value":((t=this.state)===null||t===void 0?void 0:t.value)!=undefined&&((e=this.state)===null||e===void 0?void 0:e.value)!=""},onclick:()=>{var t;return(t=this.inputElement)===null||t===void 0?void 0:t.focus()}},o("slot",{name:"start"}),o("div",null,o("input",{color:this.color,name:this.name,type:(i=this.state)===null||i===void 0?void 0:i.type,placeholder:this.placeholder,required:this.required,autocomplete:this.autocomplete?(l=this.state)===null||l===void 0?void 0:l.autocomplete:"off",disabled:this.disabled,readOnly:this.readonly,pattern:((n=this.state)===null||n===void 0?void 0:n.pattern)&&((r=this.state)===null||r===void 0?void 0:r.pattern.source),value:(a=this.state)===null||a===void 0?void 0:a.value,onInput:t=>this.onInput(t),onFocus:t=>this.onFocus(t),onClick:t=>this.onClick(t),onBlur:t=>this.onBlur(t),onKeyDown:t=>this.onKeyDown(t),ref:t=>this.inputElement=t,onPaste:t=>this.onPaste(t)}),o("label",{htmlFor:this.name},o("slot",null)),o("smoothly-icon",{name:"alert-circle",color:"danger",fill:"clear",size:"small"})),o("slot",{name:"end"}))}static get watchers(){return{type:["typeChange"],value:["valueWatcher"],readonly:["watchingReadonly"],currency:["onCurrency"]}}};function wl(){const t=navigator.language;return x.is(t)?t:S.is(t)?x.toLocale(t):undefined}vl.style=gl;const kl=".sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5em;padding:0 .4em;box-sizing:border-box}smoothly-icon.sc-smoothly-input-checkbox{position:absolute}.sc-smoothly-input-checkbox-h input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;height:1.2em;width:1.2em;border:1px solid black;display:block;z-index:1}[disabled].sc-smoothly-input-checkbox-h input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h smoothly-icon.sc-smoothly-input-checkbox{border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}";const xl=class{constructor(o){t(this,o);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.name=undefined;this.value=undefined;this.checked=false;this.looks="plain";this.disabled=undefined}componentWillLoad(){this.smoothlyInput.emit({[this.name]:this.checked?this.value:undefined});this.smoothlyInputLoad.emit((()=>{}))}async clear(){!this.disabled&&(this.checked=false)}elementCheck(){this.smoothlyInput.emit({[this.name]:this.checked?this.value:undefined})}inputHandler(t){!this.disabled&&t.target instanceof HTMLInputElement&&(this.checked=t.target.checked)}render(){return o(s,null,this.checked&&o("smoothly-icon",{name:"checkmark-outline",size:"tiny"}),o("input",{type:"checkbox",checked:this.checked,onClick:t=>this.inputHandler(t)}),o("label",null,o("slot",null)))}static get watchers(){return{checked:["elementCheck"]}}};xl.style=kl;const Sl='[color=default].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-clear-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-input-clear-h{display:inline;border:none}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}a.sc-smoothly-input-clear,button.sc-smoothly-input-clear{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-input-clear{justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-clear{padding:0.8em;min-width:8em}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-clear{padding:0.6em}[size=icon].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{padding:0.5em}[shape=rounded].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[shape=rounded].sc-smoothly-input-clear-h{border-radius:2rem}[type=button].sc-smoothly-input-clear-h>a.sc-smoothly-input-clear{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:100%}[size=large].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:130%}.sc-smoothly-input-clear-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-clear-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-input-clear-h{width:100%}[expand=full].sc-smoothly-input-clear-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[shape=rounded].sc-smoothly-input-clear-h{border-radius:2rem}.sc-smoothly-input-clear-h:not([fill=clear]):hover,.sc-smoothly-input-clear-h:not([fill=clear]):focus,.sc-smoothly-input-clear-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-input-clear-h:not([fill=clear]):hover>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h:not([fill=clear]):focus>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h:not([fill=clear]):active>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h:not([fill=clear]):hover .sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h:not([fill=clear]):focus .sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h:not([fill=clear]):active .sc-smoothly-input-clear-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-input-clear-h:hover>button.sc-smoothly-input-clear,[fill=clear].sc-smoothly-input-clear-h:focus>button.sc-smoothly-input-clear,[fill=clear].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-clear-h:not([fill]),[fill=default].sc-smoothly-input-clear-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-input-clear-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[fill=default].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,[fill=clear].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-input-clear-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-input-clear-h{background:transparent;border-color:transparent}.sc-smoothly-input-clear-s>smoothly-icon[slot=start],.sc-smoothly-input-clear-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h{transition:0.6s;margin:0rem;min-width:0rem}[type="input"].sc-smoothly-input-clear-h{line-height:1}[type="form"].sc-smoothly-input-clear-h{margin:1em 0em}.sc-smoothly-input-clear-h[type="input"] .sc-smoothly-input-clear-s>smoothly-icon{filter:opacity(60%);font-size:70%}.sc-smoothly-input-clear-h[type="input"]:hover .sc-smoothly-input-clear-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}[type="input"].sc-smoothly-input-clear-h button.sc-smoothly-input-clear{padding:0rem;margin:0rem;min-width:0rem}';const Cl=class{constructor(o){t(this,o);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size=undefined;this.shape=undefined;this.display=true;this.type="input"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(nl.is(t)){this.parent=t;if(rl.Element.type.is(t)){t.listen("changed",(async t=>{if(hl.is(t)){this.disabled=t.readonly?true:!t.value;this.display=t.readonly?false:Boolean(t.value)}if(t instanceof ul){this.disabled=t.readonly?true:Object.values(t.value).filter((t=>t)).length<1;this.display=!t.readonly}}))}}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.clear()}render(){return o(Mt,{disabled:this.disabled,type:"button"},o("slot",null))}};Cl.style=Sl;const zl=".sc-smoothly-input-color-h{display:flex}.sc-smoothly-input-color-h smoothly-input.sc-smoothly-input-color{width:100%}.sc-smoothly-input-color-h .color-sample.sc-smoothly-input-color{height:2em;width:5em;background-color:var(--value);border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px;border-radius:2px}";const jl=class{constructor(o){t(this,o);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.value=undefined;this.looks="plain";this.name=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((t=>this.looks=t));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((()=>{}))}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){if(t.target!=this.element)t.stopPropagation()}async clear(){this.value=undefined}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}inputHandler(t){this.value=t.detail[this.name]}render(){return o(s,{style:{"--value":this.value}},o("smoothly-input",{value:this.value,name:this.name,looks:this.looks,onSmoothlyInput:t=>this.inputHandler(t)},"Color",o("div",{slot:"end",class:"color-sample"})))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};jl.style=zl;const _l='.sc-smoothly-input-date-h{box-sizing:border-box}.sc-smoothly-input-date-h[looks="border"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-date-h[looks="line"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-date-h[looks="grid"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-date-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-input-date-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-input-date-h{border:none}[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within) input.sc-smoothly-input-date{background:transparent}[looks="transparent"].sc-smoothly-input-date-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-date-h{position:relative;max-width:100vw;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}[looks=transparent].sc-smoothly-input-date-h smoothly-input.sc-smoothly-input-date{outline:none}nav.sc-smoothly-input-date{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));min-width:18em}.sc-smoothly-input-date-h>div.sc-smoothly-input-date{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>.arrow.sc-smoothly-input-date{position:absolute;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}@media screen and (min-width: 400px){nav.sc-smoothly-input-date{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));max-width:22em}}';const Ll=class{constructor(o){t(this,o);this.smoothlyValueChange=e(this,"smoothlyValueChange",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.color=undefined;this.looks="plain";this.name=undefined;this.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true;this.disabled=undefined}componentWillLoad(){this.smoothlyInputLooks.emit(((t,o)=>(this.looks=t,!this.color&&(this.color=o))))}async clear(){this.value=undefined}onStart(t){this.smoothlyValueChange.emit(t);this.smoothlyInput.emit({[this.name]:t})}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}dateSetHandler(t){this.open=false;t.stopPropagation()}render(){var t;return[o("smoothly-input",{color:this.color,name:this.name,onFocus:()=>this.open=!this.open,onClick:()=>this.open=!this.open,disabled:this.disabled,type:"date",value:this.value,looks:this.looks,showLabel:this.showLabel,onSmoothlyInput:t=>this.value=t.detail[this.name]},o("slot",null)),this.open&&!this.disabled?[o("div",{onClick:()=>this.open=false}),o("nav",null,o("div",{class:"arrow"}),o("smoothly-calendar",{doubleInput:false,value:(t=this.value)!==null&&t!==void 0?t:g.now(),onSmoothlyValueChange:t=>{this.value=t.detail;t.stopPropagation()},max:this.max,min:this.min}))]:[]]}get element(){return i(this)}static get watchers(){return{value:["onStart"]}}};Ll.style=_l;const Tl='.sc-smoothly-input-date-range-h{box-sizing:border-box}.sc-smoothly-input-date-range-h[looks="border"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-range-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-date-range-h[looks="line"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-range-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-range-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-date-range-h[looks="grid"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-date-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-input-date-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-input-date-range-h{border:none}[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within) input.sc-smoothly-input-date-range{background:transparent}[looks="transparent"].sc-smoothly-input-date-range-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-date-range-h{position:relative;display:block;width:fit-content;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.sc-smoothly-input-date-range-h:focus-within smoothly-input.sc-smoothly-input-date-range{outline:none}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:3.5em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));max-width:22em}.sc-smoothly-input-date-range-h>div.sc-smoothly-input-date-range{position:fixed;top:0px;left:0px;right:0px;bottom:0px;width:100vw;height:100vh;z-index:2}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>.arrow.sc-smoothly-input-date-range{position:absolute;z-index:9;transform:translate(10em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;background-color:var(--background-color, var(--smoothly-color-shade), transparent);border-radius:0.25rem;cursor:pointer}smoothly-input.sc-smoothly-input-date-range{border-radius:var(--border-radius, none);background-color:transparent;width:var(--input-width);flex-grow:1}span.sc-smoothly-input-date-range{padding:0.5em 0.2em 0.5em 0.2em;align-self:center}';const Al=class{constructor(o){t(this,o);this.smoothlyValueChange=e(this,"smoothlyValueChange",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.color=undefined;this.looks="plain";this.name=undefined;this.value=undefined;this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.open=undefined;this.showLabel=true;this.labelStart="from";this.labelEnd="to"}async clear(){this.start=undefined;this.end=undefined}componentWillLoad(){this.smoothlyInputLooks.emit(((t,o)=>(this.looks=t,!this.color&&(this.color=o))));if(this.start&&this.end)this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}})}onValue(t){this.smoothlyValueChange.emit(t)}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}onStartChanged(t){this.start=t.detail}onEndChanged(t){this.end=t.detail}onDateRangeSet(t){this.open=false;t.stopPropagation();C.is(t.detail)&&this.smoothlyInput.emit({[this.name]:t.detail})}render(){var t;return o(s,{tabindex:0},o("section",{onClick:()=>this.open=!this.open},o("smoothly-input",{type:"date",name:"start",value:this.start,looks:this.looks,showLabel:this.showLabel,onSmoothlyInput:t=>this.start=t.detail.start},`${this.labelStart}`),o("span",null,"–"),o("smoothly-input",{type:"date",name:"end",value:this.end,looks:this.looks,showLabel:this.showLabel,onSmoothlyInput:t=>this.end=t.detail.end},`${this.labelEnd}`)),this.open?o("div",{onClick:()=>this.open=false}):[],this.open?o("nav",null,o("div",{class:"arrow"}),o("smoothly-calendar",{doubleInput:true,value:(t=this.value)!==null&&t!==void 0?t:g.now(),onSmoothlyValueChange:t=>{this.value=t.detail;t.stopPropagation()},start:this.start,end:this.end,max:this.max,min:this.min})):[])}get element(){return i(this)}static get watchers(){return{value:["onValue"]}}};Al.style=Tl;const Il="smoothly-input-demo{display:block;margin:2em;margin-bottom:20rem}smoothly-button{margin:1em}.checkbox-group{display:flex;gap:1.5em;align-items:center}";const Ol=class{constructor(o){t(this,o);this.duration={hours:8}}render(){return o(s,null,o("h2",null,"Delayed"),o("smoothly-input",{name:"Delayed",delay:2},"Delayed"),o("h2",null,"Editable form and Input with Clear and Reset"),o("smoothly-form",{looks:"grid",readonly:true},o("smoothly-input",{name:"First Name",value:"John"},"First name"),o("smoothly-input",{name:"Last name",value:"Doe"},"Last name",o("smoothly-input-clear",{size:"icon",slot:"end"},o("smoothly-icon",{name:"close"}))),o("smoothly-input",{type:"phone",name:"Phone",value:"777888999"},"Phone",o("smoothly-input-reset",{size:"icon",slot:"end"},o("smoothly-icon",{name:"refresh-outline"}))),o("smoothly-input-radio",{clearable:true,name:"radioFirstInput"},o("p",{slot:"label"},"Clearable"),o("smoothly-input-radio-item",{slot:"options",value:"first"},"Label 1"),o("smoothly-input-radio-item",{selected:true,slot:"options",value:"second"},"Label 2"),o("smoothly-input-radio-item",{slot:"options",value:"third"},"Label 3")),o("smoothly-input-edit",{fill:"default",type:"button",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"},o("smoothly-icon",{name:"create-outline",fill:"solid",size:"tiny"})),o("smoothly-input-reset",{fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"},o("smoothly-icon",{name:"refresh-outline",fill:"solid",size:"tiny"})),o("smoothly-input-clear",{fill:"default",type:"form",color:"danger",slot:"clear",size:"icon",shape:"rounded"},o("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})),o("smoothly-input-submit",{fill:"default",type:"button",color:"success",slot:"submit",size:"icon",shape:"rounded"},o("smoothly-icon",{name:"checkmark-outline",fill:"solid",size:"tiny"}))),o("h2",null,"Color"),o("smoothly-form",{looks:"border"},o("smoothly-input-color",{name:"color"})),o("h2",null,"Range"),o("smoothly-form",{looks:"border"},o("smoothly-input-range",{step:1,name:"range",outputSide:"right"},"Select and so"),o("smoothly-input-range",{step:1,name:"range2"},"Select with really really long label",o("smoothly-icon",{name:"checkmark-circle",slot:"start"}),o("smoothly-input-clear",{size:"icon",slot:"end"},o("smoothly-icon",{name:"close"}))),o("smoothly-input-range",{step:1,name:"range3"},"Select")),o("h2",null,"Duration"),o("smoothly-form",{looks:"border"},o("smoothly-input",{name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:t=>{const o=t.detail.duration;console.log("event duration",o);this.duration=o}},"Duration"),o("smoothly-input",{name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:t=>{const o=t.detail.duration;console.log("event duration",o);this.duration=o}},"Duration")),o("h2",null,"Transparent inputs"),o("smoothly-form",{looks:"transparent"},o("smoothly-input-file",{name:"file"},o("span",{slot:"label"},"File"),o("smoothly-icon",{slot:"button",name:"folder-open-outline",size:"small"})),o("smoothly-input",{type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),o("smoothly-picker",null,o("span",{slot:"label"},"Picker"),o("span",{slot:"search"},"Search"),o("smoothly-picker-option",{value:"circle"},o("smoothly-icon",{name:"ellipse-outline"})),o("smoothly-picker-option",{value:"square"},o("smoothly-icon",{name:"square-outline"}))),o("smoothly-input-date",null,"Date"),o("smoothly-input-date-range",null,"Date Range"),o("smoothly-input-select",{name:"transport"},o("smoothly-item",{value:"plane"},o("smoothly-icon",{name:"airplane-outline"})),o("smoothly-item",{value:"car"},o("smoothly-icon",{name:"car-outline"})),o("smoothly-item",{value:"bus",selected:true},o("smoothly-icon",{name:"bus-outline"})))),o("h2",null,"Submit"),o("smoothly-form",{looks:"border"},o("smoothly-input",{type:"email",name:"email"},"Email"),o("smoothly-input",{type:"password",name:"password"},"Password"),o("smoothly-input-clear",{fill:"default",type:"form",color:"danger",slot:"clear"},"Clear"),o("smoothly-submit",{slot:"submit"},"Submit")),o("h2",null,"Prices"),o("smoothly-form",{looks:"border"},o("smoothly-input",{type:"price",name:"no"},"No currency"),o("smoothly-input",{type:"price",name:"crowns",currency:"SEK"},"SEK"),o("smoothly-input",{type:"price",name:"usDollar",currency:"USD"},"USD"),o("smoothly-input",{type:"price",name:"pounds",currency:"GBP"},"GBP"),o("smoothly-input",{type:"price",name:"peso",currency:"UYW"},"UYW"),o("smoothly-input",{type:"price",name:"iceland",currency:"ISK"},"ISK"),o("smoothly-input",{type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),o("smoothly-input-clear",{fill:"default",type:"form",color:"danger",slot:"clear"},"Clear"),o("smoothly-submit",{slot:"submit"},"Submit")),o("h4",null,"Clear"),o("smoothly-form",{looks:"border"},o("smoothly-input",{name:"First Name",value:"John"},"First name"),o("smoothly-input",{name:"Last name",value:"Doe"},"Last name",o("smoothly-input-clear",{size:"icon",slot:"end"},o("smoothly-icon",{name:"close"}))),o("smoothly-input",{type:"phone",name:"Phone"},"Phone",o("smoothly-input-clear",{slot:"end"},o("smoothly-icon",{name:"close"}))),o("smoothly-input-clear",{fill:"default",type:"form",color:"danger",slot:"submit"},"Clear")),o("h2",null,"Identifier"),o("smoothly-form",{looks:"border"},o("smoothly-input",{type:"identifier-code"},"Code"),o("smoothly-input",{type:"identifier-attribute"},"Attribute"),o("smoothly-input",{type:"identifier-snake"},"Snake"),o("smoothly-input",{type:"identifier-pascal"},"Pascal"),o("smoothly-input",{type:"identifier-camel"},"Camel")),o("h2",null,"Border"),o("smoothly-form",{looks:"border"},o("smoothly-input",{type:"email",name:"email"},"Email"),o("smoothly-input",{type:"password",name:"password"},"Password"),o("smoothly-submit",{slot:"submit",onSubmit:t=>alert(t),color:"success",fill:"solid"},"Send")),o("h2",null,"Grid"),o("h4",null,"Contact"),o("smoothly-form",{looks:"grid",method:"GET",action:"https://webhook.site/85bb78f6-b450-4a74-81ac-d7cac6e94bbe"},o("smoothly-input",{type:"text",name:"name.last"},"First Name"),o("smoothly-input",{type:"text",name:"name.first"},"Last Name"),o("smoothly-input",{type:"text",name:"street",value:"Torgny Segerstedts Allé 87"},"Street"),o("smoothly-input",{type:"postal-code",name:"zip"},"ZipCode"),o("smoothly-input",{type:"text",name:"city"},"City"),o("smoothly-input",{type:"text",name:"countryCode"},"CountryCode"),o("smoothly-input",{type:"phone",name:"phone"},"Phone"),o("smoothly-input",{type:"email",name:"email"},"Email"),o("smoothly-submit",{slot:"submit",color:"success",fill:"solid"},o("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"Submit")),o("h4",null,"Card"),o("smoothly-form",{looks:"grid",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail))},o("smoothly-input",{type:"card-number",name:"card"},"Card #"),o("smoothly-submit",{size:"icon",slot:"submit",color:"success",fill:"solid"},o("smoothly-icon",{name:"checkmark-circle"})),o("smoothly-input",{type:"card-expires",name:"expires"},"Expires"),o("smoothly-input",{type:"card-csc",name:"csc"},"CVV/CVC"),o("smoothly-input",{type:"text",name:"name.first"},"First Name"),o("smoothly-input",{type:"text",name:"name.last"},"Last Name")),o("h4",null,"Contact"),o("smoothly-form",{looks:"grid"},o("smoothly-input",{type:"email",name:"email"},"Email"),o("smoothly-input",{type:"password",name:"password"},"Password"),o("smoothly-input",{type:"price",currency:"SEK",name:"price"},"Price"),o("smoothly-input",{type:"percent",name:"percent"},"Percent"),o("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},o("smoothly-icon",{name:"checkmark-circle"}))),o("h4",null,"Random"),o("smoothly-form",{looks:"grid"},o("smoothly-input",{type:"text",name:"name",readonly:true,value:"Readonly",onSmoothlyBlur:()=>console.log("smoothly blur"),style:{width:"100%"}},"Readonly"),o("smoothly-input",{type:"text",name:"testing"},"TextTest"),o("smoothly-input",{type:"date-time",name:"date-time"},"Date-Time"),o("smoothly-input",{type:"divisor",name:"divisor"},"Divisor"),o("smoothly-input",{type:"date",name:"date"},"Date"),o("smoothly-input-date",{name:"some-date"},"Calendar")),o("h2",null,"Line"),o("smoothly-form",{looks:"line",method:"POST",action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4"},o("smoothly-input",{type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},"First Name"),o("smoothly-input",{type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name"),o("smoothly-submit",{slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"},"Send")),o("h2",null,"Input Alternatives"),o("smoothly-form",{looks:"border"},o("smoothly-input",{type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},o("smoothly-icon",{name:"checkmark-circle",slot:"start"}),"First Name"),o("smoothly-input",{type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",o("smoothly-icon",{name:"checkmark-circle",slot:"end"})),o("smoothly-input",{type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",o("smoothly-icon",{name:"checkmark-circle",slot:"end"})),o("smoothly-input",{placeholder:"test"}),o("smoothly-submit",{slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"},"Send")),o("h4",null,"Smoothly checkboxes"),o("smoothly-form",null,o("div",{class:"checkbox-group"},o("smoothly-input-checkbox",{disabled:true,name:"first-checkbox",value:"first"},o("smoothly-icon",{name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),o("smoothly-input-checkbox",{name:"second-checkbox",checked:true,value:"second"},o("smoothly-icon",{name:"checkmark-circle",slot:"start",size:"tiny"}),"second",o("smoothly-input-clear",{size:"icon",slot:"end"},o("smoothly-icon",{name:"close"}))),o("smoothly-input-checkbox",{name:"third-checkbox",value:"third"},"3rd"))),o("h4",null,"Smoothly Radio Buttons"),o("smoothly-form",{onSmoothlyFormSubmit:t=>console.log(t.detail),looks:"border"},o("smoothly-input-radio",{clearable:true,name:"radioFirstInput"},o("smoothly-icon",{name:"checkmark-circle",slot:"start"}),o("smoothly-input-clear",{size:"icon",slot:"end"},o("smoothly-icon",{name:"close"})),o("p",{slot:"label"},"Clearable"),o("smoothly-input-radio-item",{slot:"options",value:"first"},"Label 1"),o("smoothly-input-radio-item",{selected:true,slot:"options",value:"second"},"Label 2"),o("smoothly-input-radio-item",{slot:"options",value:"third"},"Label 3")),o("smoothly-input-radio",{name:"radioSecondInput"},o("p",{slot:"label"},"Not clearable"),o("smoothly-input-radio-item",{slot:"options",value:"first"},"Label 1"),o("smoothly-input-radio-item",{slot:"options",value:"second"},"Label 2"),o("smoothly-input-radio-item",{slot:"options",value:"third"},"Label 3"),o("smoothly-input-radio-item",{slot:"options",value:"fourth"},"Label 4"),o("smoothly-input-radio-item",{slot:"options",value:"fifth"},"Label 5"),o("smoothly-input-radio-item",{slot:"options",value:"sixth"},"Label 6"))),o("h4",null,"Smoothly Picker"),o("smoothly-picker-demo",null),o("smoothly-back-to-top",null),o("h4",null,"Smoothly Date"),o("smoothly-input-date",null,"Date"),o("smoothly-input-date",{showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),o("smoothly-form",{looks:"grid",onSmoothlyFormSubmit:t=>console.log(t.detail)},o("smoothly-input-date-range",{name:"testing",start:g.now(),end:g.nextMonth(g.now()),min:"2021-10-10",max:"2024-12-30"}),o("smoothly-input-clear",{type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),o("smoothly-submit",{slot:"submit"},"submit daterange")),o("smoothly-input-date-range",{looks:"grid",start:g.now(),end:g.nextMonth(g.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),o("br",null),o("h4",null,"Smoothly Selector"),o("smoothly-input-select",{type:"icon",initialValue:"folder",showSelected:false},o("smoothly-item",{value:"folder"},o("smoothly-icon",{color:"dark",name:"folder-outline"})),o("smoothly-item",{value:"camera"},o("smoothly-icon",{color:"dark",name:"camera-outline"}))),o("br",null),o("smoothly-input-select",{looks:"line",initialPrompt:"Select...",ref:t=>this.selectElement=t},o("smoothly-item",{value:"1"},"January"),o("smoothly-item",{value:"2"},"February"),o("smoothly-item",{value:"3"},"March"),o("smoothly-item",{value:"4"},"April"),o("smoothly-item",{value:"5"},"May"),o("smoothly-item",{value:"6"},"June"),o("smoothly-item",{value:"7"},"July"),o("smoothly-item",{value:"8"},"August"),o("smoothly-item",{value:"9"},"September"),o("smoothly-item",{value:"10"},"October"),o("smoothly-item",{value:"11"},"November"),o("smoothly-item",{value:"12"},"December")),o("button",{onClick:async()=>this.selectElement.reset()},"Reset select"),o("br",null),o("smoothly-form",{looks:"grid",onSmoothlyFormSubmit:t=>console.log("Submitted",t.detail)},o("smoothly-input",{type:"text",name:"text"},"Text"),o("div",null,o("smoothly-input-file",{placeholder:"Select or drag a file here",name:"file"},o("span",{slot:"label"},"Testing file input"),o("smoothly-icon",{slot:"button",name:"folder-outline"}))),o("smoothly-input-file",{camera:"back",placeholder:"Capture a photo",name:"image"},o("span",{slot:"label"},"Testing camera photo"),o("smoothly-icon",{slot:"button",name:"camera-outline"})),o("smoothly-input-clear",{type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),o("smoothly-submit",{slot:"submit"},"Submit")),o("br",null),o("smoothly-form",{looks:"line",onSmoothlyFormSubmit:t=>console.log("form input",t.detail)},o("smoothly-input",{name:"text"},"Input"),o("smoothly-input-file",{camera:"back",placeholder:"Capture a photo",name:"image"},o("span",{slot:"label"},"Testing camera photo"),o("smoothly-icon",{slot:"button",name:"camera-outline"})),o("smoothly-picker",{name:"picker"},o("span",{slot:"label"},"Shape"),o("span",{slot:"search"},"Search"),o("smoothly-picker-option",{value:"circle"},o("span",{slot:"label"},"Circle"),o("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),o("smoothly-picker-option",{value:"cube"},o("span",{slot:"label"},"Cube"),o("smoothly-icon",{size:"tiny",name:"cube-outline"})),o("smoothly-picker-option",{value:"square",selected:true},o("span",{slot:"label"},"Square"),o("smoothly-icon",{size:"tiny",name:"square-outline"}))),o("smoothly-input-select",{name:"select",initialPrompt:"Select...",menuHeight:"7.5items",ref:t=>this.selectElement=t},o("smoothly-item",{value:"1"},"January"),o("smoothly-item",{value:"2"},"February"),o("smoothly-item",{value:"3"},"March"),o("smoothly-item",{value:"4"},"April"),o("smoothly-item",{value:"5"},"May"),o("smoothly-item",{value:"6"},"June"),o("smoothly-item",{value:"7"},"July"),o("smoothly-item",{value:"8"},"August"),o("smoothly-item",{value:"9"},"September"),o("smoothly-item",{value:"10"},"October"),o("smoothly-item",{value:"11"},"November"),o("smoothly-item",{value:"12"},"December")),o("smoothly-input-date-range",{name:"date-range",start:g.now(),end:g.nextMonth(g.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),o("smoothly-input-date",{name:"date",value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),o("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},o("smoothly-icon",{name:"checkmark-circle",fill:"solid",size:"medium"}))),o("h4",null,"Form with spinner showcase"),o("smoothly-form",{looks:"line",processing:true,onSmoothlyFormSubmit:t=>console.log("form input",t.detail)},o("smoothly-input",{name:"text"},"Input"),o("smoothly-input-file",{camera:"back",placeholder:"Capture a photo",name:"image"},o("span",{slot:"label"},"Testing camera photo"),o("smoothly-icon",{slot:"button",name:"camera-outline"})),o("smoothly-picker",{name:"picker"},o("span",{slot:"label"},"Shape"),o("span",{slot:"search"},"Search"),o("smoothly-picker-option",{value:"circle"},o("span",{slot:"label"},"Circle"),o("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),o("smoothly-picker-option",{value:"cube"},o("span",{slot:"label"},"Cube"),o("smoothly-icon",{size:"tiny",name:"cube-outline"})),o("smoothly-picker-option",{value:"square",selected:true},o("span",{slot:"label"},"Square"),o("smoothly-icon",{size:"tiny",name:"square-outline"}))),o("smoothly-input-select",{name:"select",initialPrompt:"Select...",ref:t=>this.selectElement=t},o("smoothly-item",{value:"1"},"January"),o("smoothly-item",{value:"2"},"February"),o("smoothly-item",{value:"3"},"March"),o("smoothly-item",{value:"4"},"April"),o("smoothly-item",{value:"5"},"May"),o("smoothly-item",{value:"6"},"June"),o("smoothly-item",{value:"7"},"July"),o("smoothly-item",{value:"8"},"August"),o("smoothly-item",{value:"9"},"September"),o("smoothly-item",{value:"10"},"October"),o("smoothly-item",{value:"11"},"November"),o("smoothly-item",{value:"12"},"December")),o("smoothly-input-date-range",{name:"date-range",start:g.now(),end:g.nextMonth(g.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--border-radius":"4px","--padding":"0 0.75em","--input-width":"12ch"}}),o("smoothly-input-date",{name:"date",value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),o("smoothly-submit",{slot:"submit",color:"success",fill:"solid",size:"icon"},o("smoothly-icon",{name:"checkmark-circle",fill:"solid",size:"medium"}))))}};Ol.style=Il;const $l='[color=default].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-edit-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-input-edit-h{display:inline;border:none}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}a.sc-smoothly-input-edit,button.sc-smoothly-input-edit{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-input-edit{justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-edit{padding:0.8em;min-width:8em}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-edit{padding:0.6em}[size=icon].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{padding:0.5em}[shape=rounded].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,[shape=rounded].sc-smoothly-input-edit-h{border-radius:2rem}[type=button].sc-smoothly-input-edit-h>a.sc-smoothly-input-edit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:100%}[size=large].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:130%}.sc-smoothly-input-edit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-edit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-input-edit-h{width:100%}[expand=full].sc-smoothly-input-edit-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,[shape=rounded].sc-smoothly-input-edit-h{border-radius:2rem}.sc-smoothly-input-edit-h:not([fill=clear]):hover,.sc-smoothly-input-edit-h:not([fill=clear]):focus,.sc-smoothly-input-edit-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-input-edit-h:not([fill=clear]):hover>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h:not([fill=clear]):focus>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h:not([fill=clear]):active>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h:not([fill=clear]):hover .sc-smoothly-input-edit-s>smoothly-icon,.sc-smoothly-input-edit-h:not([fill=clear]):focus .sc-smoothly-input-edit-s>smoothly-icon,.sc-smoothly-input-edit-h:not([fill=clear]):active .sc-smoothly-input-edit-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-input-edit-h:hover>button.sc-smoothly-input-edit,[fill=clear].sc-smoothly-input-edit-h:focus>button.sc-smoothly-input-edit,[fill=clear].sc-smoothly-input-edit-h:active>button.sc-smoothly-input-edit{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-edit-h:not([fill]),[fill=default].sc-smoothly-input-edit-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-input-edit-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,[fill=default].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,[fill=clear].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-input-edit-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-input-edit-h{background:transparent;border-color:transparent}.sc-smoothly-input-edit-s>smoothly-icon[slot=start],.sc-smoothly-input-edit-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-input-edit-h{display:none}.sc-smoothly-input-edit-h:not([display]){display:none}[type="button"].sc-smoothly-input-edit-h{margin:1em 0em}[editable].sc-smoothly-input-edit-h{opacity:0.5}.sc-smoothly-input-edit-h button.sc-smoothly-input-edit-s>smoothly-icon{transform:translate(.1em, -.1em)}';const El=class{constructor(o){t(this,o);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.color="tertiary";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=true;this.shape=undefined;this.type="button";this.size=undefined}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(rl.type.is(t)){this.parent=t;t.listen("changed",(async t=>{this.disabled=!t.readonly;this.display=t.readonly}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.edit(true)}render(){return o(Mt,{disabled:this.disabled,type:"button"},o("slot",null))}};El.style=$l;const Dl='.sc-smoothly-input-file-h{box-sizing:border-box}.sc-smoothly-input-file-h[looks="border"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-file-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-input-file-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-file-h[looks="line"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-file-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-input-file-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-file-h[looks="grid"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-file-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-input-file-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-input-file-h{border:none}[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within) input.sc-smoothly-input-file{background:transparent}[looks="transparent"].sc-smoothly-input-file-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:0.4rem;background-color:rgb(var(--background-color,var(--smoothly-color-shade)))}.mask.sc-smoothly-input-file{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgb(var(--text-color ,var(--smoothly-color-contrast)), 0.3)}.sc-smoothly-input-file-h:not(.dragging) .mask.sc-smoothly-input-file{display:none}input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.input.sc-smoothly-input-file{display:flex;align-items:center;padding-left:0.4rem;padding-bottom:0.2rem}smoothly-button.sc-smoothly-input-file{margin:0;border:none}label.sc-smoothly-input-file{padding-left:0.4rem;padding-top:0.4rem;display:flex;width:100%;align-items:baseline;justify-content:flex-start;color:rgb(var(--text-color, var(--smoothly-color-contrast)));cursor:inherit}label.sc-smoothly-input-file-s>*{display:block;width:100%;font-size:0.65em;opacity:0.8}.sc-smoothly-input-file-h:not([show-label]) label.sc-smoothly-input-file{display:none}smoothly-icon.sc-smoothly-input-file{display:none;position:absolute;right:0.2em;top:0.6em}span.sc-smoothly-input-file{cursor:pointer;padding-left:0.5rem}';const Ml=class{constructor(o){t(this,o);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyChange=e(this,"smoothlyChange",7);this.transfer=new DataTransfer;this.dragging=false;this.accept=undefined;this.color=undefined;this.looks="plain";this.camera=undefined;this.name=undefined;this.showLabel=true;this.value=undefined;this.placeholder=undefined}componentWillLoad(){this.smoothlyInputLooks.emit(((t,o)=>(this.looks=t,!this.color&&(this.color=o))))}async clear(){this.value=undefined}render(){var t,e,i;return o(s,{class:{dragging:this.dragging},tabindex:0,onClick:()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.click()},onDragOver:t=>(t.preventDefault(),t.stopPropagation()),onDragEnter:()=>this.dragging=true},o("label",null,o("slot",{name:"label"})),o("div",{class:"input"},o("smoothly-button",{color:this.color,fill:"clear",size:"flexible",onClick:t=>{var o;return t.stopPropagation(),(o=this.input)===null||o===void 0?void 0:o.click()}},o("slot",{name:"button"})),o("span",{onClick:t=>{var o;return t.stopPropagation(),(o=this.input)===null||o===void 0?void 0:o.click()}},(e=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&e!==void 0?e:this.placeholder),o("div",{class:"mask",onDrop:t=>{var o;return t.preventDefault(),t.stopPropagation(),this.dragging=false,((o=t.dataTransfer)===null||o===void 0?void 0:o.files.length)&&(this.smoothlyInput.emit({[this.name]:this.value=t.dataTransfer.files[0]}),this.smoothlyChange.emit({[this.name]:this.value=t.dataTransfer.files[0]}))},onDragLeave:t=>(t.stopPropagation(),this.dragging=false)}),o("input",{ref:t=>this.input=t,type:"file",capture:this.camera=="back"?"environment":"user",accept:(i=this.accept)!==null&&i!==void 0?i:!this.camera?undefined:"image/jpeg",files:(this.transfer.items.clear(),this.value&&this.transfer.items.add(this.value),this.transfer.files),onInput:t=>{var o,e,s;return t.stopPropagation(),((e=(o=this.input)===null||o===void 0?void 0:o.files)===null||e===void 0?void 0:e.length)&&this.smoothlyInput.emit({[this.name]:this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]})},onChange:t=>{var o,e,s;return t.stopPropagation(),((e=(o=this.input)===null||o===void 0?void 0:o.files)===null||e===void 0?void 0:e.length)&&this.smoothlyChange.emit({[this.name]:this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]})}})),o("slot",null))}};Ml.style=Dl;const Pl=".sc-smoothly-input-month-h{display:flex;justify-content:space-between;font-size:large}smoothly-icon.sc-smoothly-input-month{font-size:smaller}";const Rl=class{constructor(o){t(this,o);this.smoothlyValueChange=e(this,"smoothlyValueChange",7);this.value=undefined}onValueChanged(t){this.smoothlyValueChange.emit(t)}adjustMonth(t){var o;const e=g.parse((o=this.value)!==null&&o!==void 0?o:g.now());e.setMonth(e.getMonth()+t);this.value=g.create(e)}render(){var t,e;return[o("div",{onClick:()=>this.adjustMonth(-1)},o("smoothly-icon",{name:"caret-back-outline",size:"small"})),o("smoothly-input-select",{onSmoothlySelect:t=>this.value=t.detail},Xt((t=this.value)!==null&&t!==void 0?t:g.now()).map((t=>o("smoothly-item",{value:t.date,selected:t.selected},t.name)))),o("smoothly-input-select",{onSmoothlySelect:t=>this.value=t.detail},Vt((e=this.value)!==null&&e!==void 0?e:g.now()).map((t=>o("smoothly-item",{value:t.date,selected:t.selected},t.name)))),o("div",{onClick:()=>this.adjustMonth(1)},o("smoothly-icon",{name:"caret-forward-outline",size:"small"}))]}static get watchers(){return{value:["onValueChanged"]}}};Rl.style=Pl;const Nl='.sc-smoothly-input-radio-h{box-sizing:border-box}.sc-smoothly-input-radio-h[looks="border"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-radio-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-input-radio-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-radio-h[looks="line"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-radio-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-input-radio-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-radio-h[looks="grid"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-radio-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-input-radio-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-input-radio-h{border:none}[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within) input.sc-smoothly-input-radio{background:transparent}[looks="transparent"].sc-smoothly-input-radio-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-radio-h{padding:.4em;background-color:rgb(var(--background-color,var(--smoothly-color-shade)));display:flex;align-items:center}.sc-smoothly-input-radio-h .input-group.sc-smoothly-input-radio{display:flex;width:100%;align-items:center;gap:1em}.sc-smoothly-input-radio-h .input-group.sc-smoothly-input-radio div.sc-smoothly-input-radio{align-items:center;display:flex;justify-content:right;width:100%;flex-wrap:wrap;gap:1em}.sc-smoothly-input-radio-h .input-group.sc-smoothly-input-radio-s>p{margin:0 0 0 0.2em;white-space:nowrap}';const Hl=class{constructor(o){t(this,o);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=e(this,"smoothlyFormDisable",7);this.valueReceivedOnLoad=false;this.listener={};this.changed=undefined;this.value=undefined;this.looks="plain";this.clearable=undefined;this.readonly=false;this.name=undefined}componentWillLoad(){var t,o;this.smoothlyInputLooks.emit((t=>this.looks=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((()=>{}));this.initialValue=this.active}handleRegister(t){t.stopPropagation();t.detail(this.name)}SmoothlyInputLoadHandler(t){if(!(t.target&&"name"in t.target&&t.target.name===this.name)){t.stopPropagation();t.detail(this)}}smoothlyRadioInputHandler(t){var o,e,s;t.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((o=this.active)===null||o===void 0?void 0:o.value)===t.detail.value)this.clear();else if(((e=this.active)===null||e===void 0?void 0:e.value)!==t.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=t.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(t,o){this.listener[t]=o;o(this)}async clear(){var t;if(this.clearable){(t=this.active)===null||t===void 0?void 0:t.select(false);this.value=undefined}}async edit(t){this.readonly=!t}async reset(){var t,o,e;(t=this.active)===null||t===void 0?void 0:t.select(false);this.active=this.initialValue;this.value=(o=this.initialValue)===null||o===void 0?void 0:o.value;(e=this.active)===null||e===void 0?void 0:e.select(true)}valueChanged(){var t,o,e;this.changed=((t=this.initialValue)===null||t===void 0?void 0:t.value)!==this.value;this.smoothlyInput.emit({[this.name]:this.value});(e=(o=this.listener).changed)===null||e===void 0?void 0:e.call(o,this)}watchingReadonly(){var t,o;(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}render(){return o(s,null,o("slot",{name:"start"}),o("div",{class:"input-group"},o("slot",{name:"label"}),o("div",null,o("slot",{name:"options"}))),o("slot",{name:"end"}))}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Hl.style=Nl;const Fl=".sc-smoothly-input-radio-item-h{display:flex;align-items:center;position:relative}.sc-smoothly-input-radio-item-h:hover>*.sc-smoothly-input-radio-item{cursor:pointer}.sc-smoothly-input-radio-item-h input.sc-smoothly-input-radio-item:focus-visible+smoothly-icon.sc-smoothly-input-radio-item{outline:2px solid rgb(var(--smoothly-primary-color));border-radius:1px}.sc-smoothly-input-radio-item-h input.sc-smoothly-input-radio-item{opacity:0;z-index:1;width:1.5em;height:1.5em;position:absolute;transform:translateX(50%)}.sc-smoothly-input-radio-item-h label.sc-smoothly-input-radio-item{padding:0 .3em;white-space:nowrap}";const Yl=class{constructor(o){t(this,o);this.smoothlySelect=e(this,"smoothlySelect",7);this.smoothlyRadioButtonRegister=e(this,"smoothlyRadioButtonRegister",7);this.value=undefined;this.selected=false;this.looks="plain";this.name=undefined}componentWillLoad(){this.smoothlyRadioButtonRegister.emit((t=>this.name=t));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:t=>this.selected=t})}render(){return o(s,{onClick:()=>this.inputHandler()},o("input",{name:this.name,type:"radio",checked:this.selected}),o("smoothly-icon",{name:this.selected?"checkmark-circle":"ellipse-outline",size:"medium",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),o("label",null,o("slot",null)))}get element(){return i(this)}};Yl.style=Fl;const Wl='.sc-smoothly-input-range-h{box-sizing:border-box}.sc-smoothly-input-range-h[looks="border"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-range-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-input-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-range-h[looks="line"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-range-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-input-range-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-range-h[looks="grid"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-input-range-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-input-range-h{border:none}[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within) input.sc-smoothly-input-range{background:transparent}[looks="transparent"].sc-smoothly-input-range-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}*.sc-smoothly-input-range{box-sizing:border-box}.sc-smoothly-input-range-h{position:relative;width:100%;justify-content:center;align-items:center;display:flex;background-color:rgb(var(--background-color,var(--smoothly-color-shade)));padding:0 .4em}.sc-smoothly-input-range-h .sc-smoothly-input-range:nth-child(2){margin-left:0.2em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range{position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding:1.1em 0 .1em 0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.sc-smoothly-input-range-h output.sc-smoothly-input-range{min-width:4em;text-align:center;margin-left:.5em}.sc-smoothly-input-range-h label.sc-smoothly-input-range{position:absolute;display:block;white-space:nowrap;text-align:center;top:.5em;left:0;font-size:.6em}.output-side-right.sc-smoothly-input-range-h label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:left;padding-right:.5em}.output-side-right.sc-smoothly-input-range-h output.sc-smoothly-input-range{order:3;margin:0}input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em;padding:0 .4em}input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--text-color, var(--smoothly-color-contrast))) solid;cursor:pointer;margin-top:-.45em}input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:1.2em;width:.7em;border-radius:20%;background-color:rgb(var(--smoothly-primary-contrast));border:1px rgb(var(--text-color, var(--smoothly-color-contrast))) solid;cursor:pointer}input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}input[type=range].sc-smoothly-input-range::-moz-range-track{width:100%;height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h:not([value]) input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{background-color:rgb(var(--smoothly-primary-tint))}.sc-smoothly-input-range-h:not([value]) input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}';const Ul=class{constructor(o){t(this,o);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.value=undefined;this.looks="plain";this.min=0;this.max=1e5;this.name=undefined;this.labelText=undefined;this.step="any";this.outputSide="left"}componentWillLoad(){this.smoothlyInputLooks.emit((t=>this.looks=t));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((()=>{}))}SmoothlyInputLoadHandler(t){if(!(t.target&&"name"in t.target&&t.target.name===this.name)){t.stopPropagation();t.detail(this)}}async clear(){this.value=undefined}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}inputHandler(t){t.target instanceof HTMLInputElement&&(this.value=this.step!=="any"?t.target.valueAsNumber:Math.round(t.target.valueAsNumber*100)/100)}render(){var t,e;return o(s,{class:{"output-side-right":this.outputSide==="right"}},o("slot",{name:"start"}),o("div",null,o("label",{htmlFor:this.name},o("slot",null)),o("output",{htmlFor:this.name},(t=this.value)!==null&&t!==void 0?t:"—"),o("input",{name:this.name,part:"range",type:"range",min:this.min,max:this.max,step:this.step,onInput:t=>this.inputHandler(t),value:(e=this.value)!==null&&e!==void 0?e:this.min})),o("slot",{name:"end"}))}static get watchers(){return{value:["valueChanged"]}}};Ul.style=Wl;const ql='[color=default].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-reset-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-input-reset-h{display:inline;border:none}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}a.sc-smoothly-input-reset,button.sc-smoothly-input-reset{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-input-reset{justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-reset{padding:0.8em;min-width:8em}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-reset{padding:0.6em}[size=icon].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{padding:0.5em}[shape=rounded].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,[shape=rounded].sc-smoothly-input-reset-h{border-radius:2rem}[type=button].sc-smoothly-input-reset-h>a.sc-smoothly-input-reset{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:100%}[size=large].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:130%}.sc-smoothly-input-reset-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-reset-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-input-reset-h{width:100%}[expand=full].sc-smoothly-input-reset-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,[shape=rounded].sc-smoothly-input-reset-h{border-radius:2rem}.sc-smoothly-input-reset-h:not([fill=clear]):hover,.sc-smoothly-input-reset-h:not([fill=clear]):focus,.sc-smoothly-input-reset-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-input-reset-h:not([fill=clear]):hover>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h:not([fill=clear]):focus>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h:not([fill=clear]):active>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h:not([fill=clear]):hover .sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h:not([fill=clear]):focus .sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h:not([fill=clear]):active .sc-smoothly-input-reset-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-input-reset-h:hover>button.sc-smoothly-input-reset,[fill=clear].sc-smoothly-input-reset-h:focus>button.sc-smoothly-input-reset,[fill=clear].sc-smoothly-input-reset-h:active>button.sc-smoothly-input-reset{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-reset-h:not([fill]),[fill=default].sc-smoothly-input-reset-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-input-reset-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,[fill=default].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,[fill=clear].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-input-reset-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-input-reset-h{background:transparent;border-color:transparent}.sc-smoothly-input-reset-s>smoothly-icon[slot=start],.sc-smoothly-input-reset-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h{transition:0.6s;margin:0rem;min-width:0rem}[type="input"].sc-smoothly-input-reset-h{line-height:1}[type="form"].sc-smoothly-input-reset-h{margin:1em 0em}.sc-smoothly-input-reset-h[type="input"] .sc-smoothly-input-reset-s>smoothly-icon{filter:opacity(60%);font-size:70%}.sc-smoothly-input-reset-h[type="input"]:hover .sc-smoothly-input-reset-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}[type="input"].sc-smoothly-input-reset-h button.sc-smoothly-input-reset{padding:0rem;margin:0rem;min-width:0rem}.sc-smoothly-input-reset-h button.sc-smoothly-input-reset-s>smoothly-icon{transform:translateY(-.1em)}';const Bl=class{constructor(o){t(this,o);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size=undefined;this.shape=undefined;this.display=true;this.type="input"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(rl.Element.type.is(t)){this.parent=t;this.readonlyAtLoad=t.readonly;t.listen("changed",(async t=>{if(hl.is(t)){this.disabled=t.readonly?true:!t.changed;this.display=t.readonly?false:t.changed}if(t instanceof ul){this.disabled=t.readonly?true:!t.changed;this.display=!t.readonly}}))}}))}clickHandler(){var t,o;(t=this.parent)===null||t===void 0?void 0:t.reset();this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){return o(Mt,{disabled:this.disabled,type:"button"},o("slot",null))}};Bl.style=ql;const Vl='.sc-smoothly-input-select-h{box-sizing:border-box}.sc-smoothly-input-select-h[looks="border"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-input-select-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-select-h[looks="line"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-input-select-h[looks="grid"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-input-select-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-input-select-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within) input.sc-smoothly-input-select{background:transparent}[looks="transparent"].sc-smoothly-input-select-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-select-h{display:flex;flex-direction:column;position:relative;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>main.sc-smoothly-input-select,.sc-smoothly-input-select-h>main.sc-smoothly-input-select>*.sc-smoothly-input-select{height:100%;display:flex;align-items:center;cursor:default}.icon.sc-smoothly-input-select-h>main.sc-smoothly-input-select,.icon.sc-smoothly-input-select-h>main.sc-smoothly-input-select>*.sc-smoothly-input-select{padding:0.5em}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>nav.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;z-index:10;height:var(--menu-height, unset);overflow-y:scroll}.sc-smoothly-input-select-h>aside.sc-smoothly-input-select{position:absolute;top:0;left:5em;z-index:10;background-color:rgb(var(--smoothly-tertiary-color));color:rgb(var(--smoothly-tertiary-contrast));height:1.25rem;border-radius:0.3rem;padding:0.3rem;display:flex;align-items:center}.missing.sc-smoothly-input-select-h>aside.sc-smoothly-input-select{background-color:rgb(var(--smoothly-warning-color));color:rgb(var(--smoothly-warning-contrast))}.hidden.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h>section.sc-smoothly-input-select{position:fixed;top:0px;left:0px;width:100vw;height:100vh;z-index:10}';const Xl=class{constructor(o){t(this,o);this.smoothlySelect=e(this,"smoothlySelect",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.items=[];this.name="selected";this.color=undefined;this.looks="plain";this.type=undefined;this.showSelected=true;this.initialPrompt=undefined;this.initialValue=undefined;this.menuHeight=undefined;this.opened=false;this.selectedElement=undefined;this.missing=false;this.filter=""}componentWillLoad(){this.smoothlyInputLooks.emit(((t,o)=>(this.looks=t,!this.color&&(this.color=o))))}async reset(){var t;this.selectedElement=undefined;if(this.mainElement){this.mainElement.innerHTML=(t=this.initialPrompt)!==null&&t!==void 0?t:"(none)"}}onSelectedChange(t,o){if(o)o.selected=false;this.smoothlySelect.emit(t===null||t===void 0?void 0:t.value);this.smoothlyInput.emit({[this.name]:t===null||t===void 0?void 0:t.value})}async onFilterChange(t){t=t.toLowerCase();if(!(await Promise.all(this.items.map((o=>o.filter(t))))).some((t=>t))){this.missing=true;this.items.forEach((t=>t.filter("")))}else this.missing=false}onClick(t){t.stopPropagation();this.opened=!this.opened}onItemSelect(t){this.selectedElement&&(this.selectedElement.hidden=false);this.selectedElement=t.target;!this.showSelected&&(this.selectedElement.hidden=true);if(this.mainElement)this.mainElement.innerHTML=this.selectedElement.innerHTML}onClosed(){if(!this.opened){const t=this.items.find((t=>t.marked));if(t)t.marked=false}}onKeyDown(t){t.stopPropagation();if(t.key!="Tab"&&!t.ctrlKey&&!t.metaKey)t.preventDefault();if(this.opened){switch(t.key){case"ArrowUp":this.move(-1);break;case"ArrowDown":this.move(1);break;case"Escape":if(this.filter=="")this.opened=false;this.filter="";break;case"Backspace":this.filter=this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((t=>t.marked));if(o===null||o===void 0?void 0:o.value)o.selected=true;this.opened=false;this.filter="";break;case"Tab":this.opened=false;break;default:if(t.key.length==1)this.filter+=t.key;break}}else{switch(t.key){case"Enter":case" ":this.opened=true;break;case"ArrowDown":this.opened=true;this.move(0);break;case"ArrowUp":this.opened=true;this.move(-1);break;case"Tab":break;default:this.opened=true;if(t.key.length==1)this.filter+=t.key;break}}}move(t){let o=this.items.findIndex((t=>t.marked));if(o==-1)o=this.items.findIndex((t=>t.selected));if(this.items[o])this.items[o].marked=false;if(o==-1)o=0;do{o=(o+t+this.items.length)%this.items.length}while(this.items[o].hidden);this.items[o].marked=true;this.items[o].focus()}render(){var t,e;return o(s,{tabIndex:0,class:(t=this.missing?"missing":this.type)!==null&&t!==void 0?t:""},o("main",{ref:t=>this.mainElement=t},(e=this.initialPrompt)!==null&&e!==void 0?e:"(none)"),this.filter.length!=0?o("aside",{ref:t=>this.aside=t},this.filter,o("button",{onClick:t=>{t.stopPropagation();this.filter=""}},o("smoothly-icon",{name:"close",size:"small"}))):undefined,this.opened?o("section",{onClick:()=>this.opened=true}):[],o("div",{class:this.opened?"":"hidden"},o("nav",null,o("slot",null))))}componentDidRender(){var t,o,e;const s=[];const i=this.element.querySelectorAll("div > nav > smoothly-item");for(let t=0;t<i.length;t++){const o=i.item(t);if(Kl(o)){s.push(o);o.value==this.initialValue&&this.mainElement&&!this.selectedElement&&(o.selected=true)}}this.items=s;if(this.menuHeight)(t=this.element)===null||t===void 0?void 0:t.style.setProperty("--menu-height",!this.menuHeight.endsWith("items")||!this.items.length?this.menuHeight:`${this.items[0].clientHeight*+((e=(o=this.menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g))===null||o===void 0?void 0:o[0])!==null&&e!==void 0?e:"10")}px`)}get element(){return i(this)}static get watchers(){return{selectedElement:["onSelectedChange"],filter:["onFilterChange"],opened:["onClosed"]}}};function Kl(t){return typeof t=="object"&&(typeof t.selected=="boolean"||t.selected==undefined)&&typeof t.filter=="function"}Xl.style=Vl;var Jl;(function(t){function o(t){return t&&typeof t=="object"&&typeof t.submit=="function"}t.is=o})(Jl||(Jl={}));const Gl='[color=default].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-submit-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-input-submit-h{display:inline;border:none}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}a.sc-smoothly-input-submit,button.sc-smoothly-input-submit{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-input-submit{justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{padding:0.8em;min-width:8em}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-submit{padding:0.6em}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{padding:0.5em}[shape=rounded].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,[shape=rounded].sc-smoothly-input-submit-h{border-radius:2rem}[type=button].sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:100%}[size=large].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:130%}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,[shape=rounded].sc-smoothly-input-submit-h{border-radius:2rem}.sc-smoothly-input-submit-h:not([fill=clear]):hover,.sc-smoothly-input-submit-h:not([fill=clear]):focus,.sc-smoothly-input-submit-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-input-submit-h:not([fill=clear]):hover>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h:not([fill=clear]):focus>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h:not([fill=clear]):active>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h:not([fill=clear]):hover .sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h:not([fill=clear]):focus .sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h:not([fill=clear]):active .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-input-submit-h:hover>button.sc-smoothly-input-submit,[fill=clear].sc-smoothly-input-submit-h:focus>button.sc-smoothly-input-submit,[fill=clear].sc-smoothly-input-submit-h:active>button.sc-smoothly-input-submit{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-submit-h:not([fill]),[fill=default].sc-smoothly-input-submit-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-input-submit-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,[fill=default].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,[fill=clear].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-input-submit-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-input-submit-h{background:transparent;border-color:transparent}.sc-smoothly-input-submit-s>smoothly-icon[slot=start],.sc-smoothly-input-submit-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-input-submit-h{display:none}[type="button"].sc-smoothly-input-submit-h{margin:1em 0em}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h{transition:0.6s;margin:0rem;min-width:0rem}';const Zl=class{constructor(o){t(this,o);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.color="tertiary";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=false;this.shape=undefined;this.type="button";this.size=undefined}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(Jl.is(t)&&rl.type.is(t)){this.parent=t;t.listen("changed",(async t=>{this.display=!t.readonly;this.disabled=t.readonly?true:Object.values(t.value).filter((t=>t)).length<1?true:!t.changed}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.submit()}render(){return o(Mt,{disabled:this.disabled,type:"button"},o("slot",null))}};Zl.style=Gl;const Ql="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;background-color:rgb(var(--smoothly-default-shade));color:rgb(var(--smoothly-default-contrast));border:rgb(var(--smoothly-default-shade) solid 1px)}[marked].sc-smoothly-item-h,.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-primary-color));color:rgb(var(--smoothly-primary-contrast))}";const tn=class{constructor(o){t(this,o);this.smoothlyItemSelect=e(this,"smoothlyItemSelect",7);this.value=undefined;this.selected=undefined;this.marked=undefined}onSelectedChanged(t,o){if(t&&!o)this.smoothlyItemSelect.emit()}onClick(){this.selected=true;this.smoothlyItemSelect.emit()}componentDidLoad(){if(this.selected)this.smoothlyItemSelect.emit()}async filter(t){const o=!(this.element.hidden=t?!((typeof this.value==="string"?this.value:JSON.stringify(this.value)).toLowerCase().includes(t)||this.element.innerText.toLowerCase().includes(t)):false);return o}render(){return o(s,{tabIndex:-1},o("slot",null))}get element(){return i(this)}static get watchers(){return{selected:["onSelectedChanged"]}}};tn.style=Ql;const on=".sc-smoothly-label-h{position:relative;width:max-content;display:flex;justify-content:center;align-items:center;padding:0.15em 0.6em;border-radius:2em;color:rgb(var(--smoothly-default-contrast));background-color:hsl(var(--hue), 85%, 70%)}[shape=rectangle].sc-smoothly-label-h{border-radius:0.3em}";const en=class{constructor(o){t(this,o);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){return o(s,{title:this.description,style:{"--hue":this.hue.toString()}},o("slot",null))}};en.style=on;const sn=".sc-smoothly-lazy-h{display:block}";const ln=class{constructor(o){t(this,o);this.show=false;this.content=undefined}loadMoreHandler(t){t.stopPropagation();this.show=true}render(){return o(s,null,o("slot",{name:"before"}),o("smoothly-load-more",{onSmoothlyLoadMore:t=>this.loadMoreHandler(t)}),this.show&&(typeof this.content=="function"?o(this.content,null):this.content),o("slot",null))}};ln.style=sn;const nn=".sc-smoothly-load-more-h{display:block;position:relative;top:var(--offset,)}";const rn=class{constructor(o){t(this,o);this.smoothlyLoadMore=e(this,"smoothlyLoadMore",7);this.offset="0";this.name="";this.multiple=false}componentWillLoad(){const t=new IntersectionObserver(((t,o)=>this.observationHandler(o,t)));t.observe(this.element)}observationHandler(t,o){var e,s;if((s=(e=o.find((t=>t.target==this.element)))===null||e===void 0?void 0:e.intersectionRatio)!==null&&s!==void 0?s:0){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(t.unobserve(this.element),t.disconnect())}}render(){return o(s,{style:{"--offset":`${this.offset}`}})}get element(){return i(this)}};rn.style=nn;const an=".sc-smoothly-notification-h{display:block;width:30em;min-height:3em;border-radius:5px;margin:0.5em}.clean.sc-smoothly-notification{display:flex;justify-content:center;align-items:center;padding:0.5em 1em}.icon.sc-smoothly-notification{display:grid;width:100%;grid-template-columns:1fr 5fr}.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}smoothly-icon.sc-smoothly-notification{left:0;font-size:1.2em;align-self:center;justify-self:center}smoothly-trigger.sc-smoothly-notification{font-size:0.5em;float:right;text-align:right;margin-right:0.2em}";const hn=class{constructor(o){t(this,o);this.remove=e(this,"remove",7);this.listener=t=>{if(t.state=="closed")this.remove.emit(t);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=false;this.tick={}}get properties(){let t;switch(this.notice.state){case"delayed":case"warning":t=["warning","warning-outline"];break;case"success":t=["success","checkmark-circle"];break;case"executing":t=["light","hourglass-outline"];break;case"failed":t=["danger","alert-circle"];break;default:t=["light",undefined];break}return t}onTrigger(t){if(t.detail.name=="close"){t.stopPropagation();this.notice.close()}}onUpdatedNotice(t,o){if(o)o.unlisten(this.listener);t.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return o(s,{color:this.properties[0],fill:"solid"},this.closable?o("smoothly-trigger",{fill:"clear",name:"close"},o("smoothly-icon",{name:"close-circle-outline"})):"",o("span",{class:this.icon?"icon":"clean"},this.icon?o("smoothly-icon",{name:this.properties[1]}):"",o("p",null,this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};hn.style=an;const cn=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";const un=class{constructor(o){t(this,o);this.notices=[]}onNotice(t){this.notices=[...this.notices,t.detail]}onRemove(t){this.notices=[...this.notices.filter((o=>o!=t.detail))]}render(){return[o("slot",null),o("aside",null,this.notices.map((t=>o("smoothly-notification",{notice:t}))))]}};un.style=cn;const mn='.sc-smoothly-picker-h{box-sizing:border-box}.sc-smoothly-picker-h[looks="border"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-picker-h{border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="border"][readonly].sc-smoothly-picker-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-picker-h[looks="line"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-picker-h{border-bottom:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}[looks="line"][readonly].sc-smoothly-picker-h{border-bottom:rgba(var(--text-color, var(--smoothly-color-contrast)), .1) solid 1px}.sc-smoothly-picker-h[looks="grid"].sc-smoothly-picker-s>smoothly-picker-menu smoothly-input,[looks="grid"].sc-smoothly-picker-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px}[looks="grid"][readonly].sc-smoothly-picker-h{border:rgba(var(--text-color, var(--smoothly-color-contrast)), .2) solid .5px}[looks="transparent"].sc-smoothly-picker-h{border:none}[looks="transparent"].sc-smoothly-picker-h:not(:focus-within){background-color:transparent}[looks="transparent"].sc-smoothly-picker-h:not(:focus-within) input.sc-smoothly-picker{background:transparent}[looks="transparent"].sc-smoothly-picker-h:focus-within{outline:1px solid rgb(var(--smoothly-color-contrast))}.sc-smoothly-picker-h{display:flex;position:relative;width:max-content;padding:1.2em 0.7em 0.2em 0.8em;background-color:rgb(var(--background-color, var(--smoothly-color-shade)))}.sc-smoothly-picker-h div.element.sc-smoothly-picker{display:flex;background-color:inherit}smoothly-slot-elements.sc-smoothly-picker{white-space:nowrap}.selected.sc-smoothly-picker{position:relative;display:flex;align-items:center;gap:1rem;width:100%;overflow:hidden;text-overflow:ellipsis;margin-right:2px}.selected.sc-smoothly-picker::after{content:"";position:absolute;top:0;bottom:0;right:0;width:2ch}.sc-smoothly-picker-h:not([looks=transparent]) .selected.sc-smoothly-picker::after{background:linear-gradient(90deg, rgba(var(--background-color, var(--smoothly-color-shade)), 0) 0%, rgba(var(--background-color, var(--smoothly-color-shade)), 1) 100%)}.selected.sc-smoothly-picker *.sc-smoothly-picker{display:none}.label.sc-smoothly-picker{position:absolute;left:0.4rem;top:0.6rem;color:rgb(var(--text-color, var(--smoothly-color-contrast)));opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.selected.sc-smoothly-picker:not(:empty)+.label.sc-smoothly-picker{top:0.4em;transform:scale(0.6)}';var dn=undefined&&undefined.__rest||function(t,o){var e={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&o.indexOf(s)<0)e[s]=t[s];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++){if(o.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i]))e[s[i]]=t[s[i]]}return e};const yn=class{constructor(o){t(this,o);this.smoothlyPickerLoaded=e(this,"smoothlyPickerLoaded",7);this.smoothlyInput=e(this,"smoothlyInput",7);this.smoothlyChange=e(this,"smoothlyChange",7);this.smoothlyInputLooks=e(this,"smoothlyInputLooks",7);this.looks="plain";this.name=undefined;this.open=false;this.mutable=false;this.multiple=false;this.readonly=false;this.validator=undefined;this.selected=new Map;this.display=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((t=>this.looks=t))}selectedChanged(){var t;const o=Array.from(this.selected.values(),(t=>t.value));if((t=this.controls)===null||t===void 0?void 0:t.synced()){this.smoothlyInput.emit({[this.name]:this.multiple?o:o.at(0)});this.smoothlyChange.emit({[this.name]:this.multiple?o:o.at(0)})}this.display=Array.from(this.selected.values(),(t=>{const o=document.createElement("span");t.slotted.forEach((t=>o.appendChild(t.cloneNode(true))));return o}))}componentDidLoad(){if(this.controls)this.smoothlyPickerLoaded.emit((t=>{var o=dn(t,["synced"]);return o})(this.controls))}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}menuLoadedHandler(t){this.controls=t.detail}optionLoadedHandler(t){if(t.detail.selected)this.selected=this.multiple?new Map(this.selected.set(t.detail.value,t.detail).entries()):(new Map).set(t.detail.value,t.detail)}optionChangeHandler(t){if(!this.readonly)if(this.multiple)this.selected=t.detail.selected?new Map(this.selected.set(t.detail.value,t.detail).entries()):!this.selected.delete(t.detail.value)?this.selected:new Map(this.selected.entries());else this.selected=!t.detail.selected?new Map:(new Map).set(t.detail.value,t.detail)}clickHandler(t){this.open=!t.composedPath().includes(this.element)?false:!this.open}focusHandler(t){if(!t.composedPath().includes(this.element))this.open=false}async clear(){this.selected.forEach((t=>t.selected&&t.element.clickHandler()))}render(){return o(s,{tabindex:0},o("smoothly-slot-elements",{class:"selected",nodes:this.display}),o("span",{class:"label"},o("slot",{name:"label"})),o("button",{type:"button"},o("smoothly-icon",{size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),o("slot",{name:"child"}),o("smoothly-picker-menu",{open:this.open,looks:this.looks,onClick:t=>t.stopPropagation(),multiple:this.multiple,mutable:this.mutable,readonly:this.readonly,validator:this.validator},o("slot",{name:"search",slot:"search"}),o("slot",{name:"display",slot:"display"}),o("slot",null)))}get element(){return i(this)}static get watchers(){return{selected:["selectedChanged"]}}};yn.style=mn;const pn=".sc-smoothly-picker-demo-h{display:flex;flex-direction:column}.sc-smoothly-picker-demo-h smoothly-form.sc-smoothly-picker-demo{max-width:50rem}.sc-smoothly-picker-demo-h .counter.sc-smoothly-picker-demo{position:relative;width:3rem;height:3rem}.sc-smoothly-picker-demo-h .counter-button.sc-smoothly-picker-demo{position:absolute;top:0;left:0;padding:0;margin:0;height:3rem;width:3rem;background-color:inherit;border:none;display:flex;justify-content:center;align-items:center}.sc-smoothly-picker-demo-h .controlled.sc-smoothly-picker-demo smoothly-input.sc-smoothly-picker-demo:not([readonly]),.sc-smoothly-picker-demo-h .controlled.sc-smoothly-picker-demo smoothly-picker.sc-smoothly-picker-demo:not([readonly]){outline:1px solid rgb(var(--smoothly-success-color))}";function fn(t){return t.match(/^.+@.+/)?true:{result:false,notice:b.failed("That is not an email")}}const bn=class{constructor(o){t(this,o);this.users={"giovani@rocket.com":"giovani doe","jessie@rocket.com":"jessie doe","james@rocket.com":"james doe"};this.counter=3;this.data={message:"hello world",emails:[{value:"jessie@rocket.com"},{value:"james@rocket.com"}],options:[{value:"giovani@rocket.com"},{value:"john@example.com"},{value:"jane@example.com"},{value:"jack@example.com"},{value:"jessica@example.com"},{value:"julia@example.com"},{value:"jayden@example.com"},{value:"jake@example.com"},{value:"jamie@example.com"},{value:"jasmine@example.com"}]};this.change=undefined}inputHandler(t){if(this.change){this.change=Object.assign(Object.assign({},this.change),t.detail);console.log("demo input",this.change)}}submitHandler(t){console.log("submitted",t.detail)}clickHandler(){var t,o;if(!this.change)(t=this.controls)===null||t===void 0?void 0:t.remember();else(o=this.controls)===null||o===void 0?void 0:o.restore();this.change=this.change?undefined:Object.assign(Object.assign({},this.data),{emails:[...this.data.emails]})}loadedHandler(t){this.controls=t.detail}render(){var t,e;return o(s,null,o("div",null,o("smoothly-button",{onClick:()=>this.counter+=1},"Add one"),o("smoothly-button",{onClick:()=>this.counter-=1},"Remove one"),o("smoothly-picker",{class:"counter",key:Array.from({length:this.counter}).toString(),name:"counter",multiple:true,mutable:true},Array.from({length:this.counter}).map(((t,e)=>o("smoothly-picker-option",{value:e,selected:e<this.counter-1},e))),o("span",{slot:"search"},"Search"),o("button",{slot:"child",class:"counter-button"},o("smoothly-icon",{name:"add-outline"})))),o("h5",null,"Controlled input"),o("smoothly-button",{color:"secondary",onClick:()=>this.clickHandler()},!this.change?"start edit":"end edit"),o("smoothly-form",{class:"controlled",looks:"line",onSmoothlyFormInput:t=>this.inputHandler(t)},o("smoothly-input",{readonly:!this.change,name:"message",value:this.data.message},"Message"),o("smoothly-picker",{name:"emails",mutable:true,multiple:true,readonly:!this.change,validator:fn,onSmoothlyPickerLoaded:t=>this.loadedHandler(t)},o("span",{slot:"label"},"Emails"),o("span",{slot:"search"},"Search"),o("smoothly-icon",{size:"tiny",slot:"display",name:"person-add-outline"}),((e=(t=this.change)===null||t===void 0?void 0:t.emails)!==null&&e!==void 0?e:this.data.emails).map((t=>{var e;return o("smoothly-picker-option",{key:t.value,value:t,selected:true,search:[(e=this.users[t.value])!==null&&e!==void 0?e:[]].flat()},o("span",null,this.users[t.value]),o("span",{slot:"label"},t.value),o("smoothly-icon",{size:"tiny",slot:"display",name:"person-outline"}))})),this.data.options.map((t=>{var e;return o("smoothly-picker-option",{key:t.value,value:t,search:[(e=this.users[t.value])!==null&&e!==void 0?e:[]].flat()},o("span",null,this.users[t.value]),o("span",{slot:"label"},t.value),o("smoothly-icon",{size:"tiny",slot:"display",name:"person-outline"}))}))),o("smoothly-input-clear",{slot:"submit",type:"form",color:"danger",fill:"solid"},"Clear"),o("smoothly-button",{slot:"submit",color:"secondary",onClick:()=>{var t;return(t=this.controls)===null||t===void 0?void 0:t.clear()}},"Removed added by mutation"),o("smoothly-submit",{size:"icon",slot:"submit"},o("smoothly-icon",{name:"checkmark-circle"}))),o("h5",null,"uncontrolled inputs"),o("smoothly-form",{onSmoothlyFormSubmit:t=>console.log("submitted",t.detail),looks:"line"},o("smoothly-input",{name:"purpose",type:"text"},"Purpose"),o("smoothly-picker",{multiple:true,mutable:true,name:"emails",validator:fn},o("span",{slot:"label"},"Emails"),o("span",{slot:"search"},"Search"),o("smoothly-picker-option",{value:"james@rocket.com"},"james@rocket.com"),o("smoothly-picker-option",{selected:true,value:"jessie@rocket.com"},"jessie@rocket.com"),o("smoothly-picker-option",{value:"giovanni@rocket.com"},"giovanni@rocket.com")),o("smoothly-submit",{slot:"submit"},"Submit"),o("smoothly-input-clear",{type:"form",color:"danger",fill:"solid",slot:"clear"},"Clear"),o("smoothly-picker",{name:"shape"},o("span",{slot:"label"},"Shape"),o("span",{slot:"search"},"Search"),o("smoothly-picker-option",{value:"circle"},o("span",{slot:"label"},"Circle"),o("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),o("smoothly-picker-option",{value:"cube"},o("span",{slot:"label"},"Cube"),o("smoothly-icon",{size:"tiny",name:"cube-outline"})),o("smoothly-picker-option",{value:"square",selected:true},o("span",{slot:"label"},"Square"),o("smoothly-icon",{size:"tiny",name:"square-outline"}))),o("smoothly-picker",{multiple:true,readonly:true,name:"animals"},o("span",{slot:"label"},"Animals"),o("span",{slot:"search"},"Search"),o("smoothly-picker-option",{selected:true,value:"cat"},"Cat"),o("smoothly-picker-option",{value:"dog"},"Dog"),o("smoothly-picker-option",{value:"fish"},"Fish"))),o("smoothly-picker",{looks:"border",name:"icon",multiple:true},o("span",{slot:"label"},"Icon"),o("span",{slot:"search"},"Search"),o("smoothly-picker-option",{value:"circle",required:true},o("span",{slot:"label"},"Circle"),o("smoothly-icon",{size:"tiny",name:"ellipse-outline"})),o("smoothly-picker-option",{value:"cube"},o("span",{slot:"label"},"Cube"),o("smoothly-icon",{size:"tiny",name:"cube-outline"})),o("smoothly-picker-option",{value:"square",selected:true},o("span",{slot:"label"},"Square"),o("smoothly-icon",{size:"tiny",name:"square-outline"})),o("smoothly-picker-option",{value:"airplane"},o("span",{slot:"label"},"Airplane"),o("smoothly-icon",{size:"tiny",name:"airplane-outline"})),o("smoothly-picker-option",{value:"alarm"},o("span",{slot:"label"},"Alarm"),o("smoothly-icon",{size:"tiny",name:"alarm-outline"})),o("smoothly-picker-option",{value:"archive"},o("span",{slot:"label"},"Archive"),o("smoothly-icon",{size:"tiny",name:"archive-outline"})),o("smoothly-picker-option",{value:"bag"},o("span",{slot:"label"},"Bag"),o("smoothly-icon",{size:"tiny",name:"bag-outline"})),o("smoothly-picker-option",{value:"cafe"},o("span",{slot:"label"},"Cafe"),o("smoothly-icon",{size:"tiny",name:"cafe-outline"})),o("smoothly-picker-option",{value:"disc"},o("span",{slot:"label"},"Disc"),o("smoothly-icon",{size:"tiny",name:"disc-outline"})),o("smoothly-picker-option",{value:"earth"},o("span",{slot:"label"},"Earth"),o("smoothly-icon",{size:"tiny",name:"earth-outline"})),o("smoothly-picker-option",{value:"fast-food"},o("span",{slot:"label"},"Fast food"),o("smoothly-icon",{size:"tiny",name:"fast-food-outline"}))))}};bn.style=pn;const gn=".sc-smoothly-picker-menu-h{display:flex;flex-direction:column;gap:0.5rem;position:absolute;z-index:4;left:-1px;right:-1px;min-width:max-content;background-color:rgb(var(--background-color, var(--smoothly-color-shade)));padding:0.5rem;border:rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px}.sc-smoothly-picker-menu-h:not(.flip){top:100%}.flip.sc-smoothly-picker-menu-h{bottom:100%}.sc-smoothly-picker-menu-h:not([open]){display:none}.sc-smoothly-picker-menu-h .list.sc-smoothly-picker-menu{display:grid;grid-template-columns:auto 1fr auto;align-items:center;row-gap:0.5ch;overflow-y:auto;max-height:calc(1.75rem * 10 + 0.5ch * 9);padding-right:0.5rem;padding-bottom:0.25rem}.sc-smoothly-picker-menu-h .hide.sc-smoothly-picker-menu{display:none}.sc-smoothly-picker-menu-h .controls.sc-smoothly-picker-menu{display:grid;grid-template-columns:1fr auto;gap:0.5rem;transition:grid-template-columns 200ms linear}.sc-smoothly-picker-menu-h .controls.sc-smoothly-picker-menu>button.sc-smoothly-picker-menu:disabled{opacity:0.3}";const vn=j().Observers;function*wn(...t){for(const o of t)yield*o}function kn(t,o){t===null||t===void 0?void 0:t.set.selected(t.selected=o.selected);t===null||t===void 0?void 0:t.set.readonly(t.readonly=o.readonly);t===null||t===void 0?void 0:t.set.visible(t.visible=o.visible);t===null||t===void 0?void 0:t.set.value(t.value=o.value);t===null||t===void 0?void 0:t.set.search(t.search=o.search);return t}function xn(t,o){t===null||t===void 0?void 0:t.addEventListener("smoothlyPickerOptionLoad",(t=>kn(t.detail,o)))}const Sn=class{constructor(o){t(this,o);this.notice=e(this,"notice",7);this.smoothlyPickerMenuLoaded=e(this,"smoothlyPickerMenuLoaded",7);this.synced=false;this.looks=undefined;this.open=false;this.multiple=false;this.mutable=false;this.readonly=false;this.validator=undefined;this.backend=new Map;this.options=new Map;this.created=new Map;this.search="";this.valid=false;this.display=undefined;this.flip=false;this.flipChecked=false}componentWillLoad(){if(!vn.has(this.element)){const t=.4;vn.set(this.element,new IntersectionObserver((o=>{var e,s;return((s=(e=o.find((t=>t.target==this.element)))===null||e===void 0?void 0:e.intersectionRatio)!==null&&s!==void 0?s:0)<t&&!this.flipChecked&&(this.flip=!this.flip,this.flipChecked=true)}),{threshold:t}))}}sync(){if(this.backend.size!=this.options.size)this.synced=false;else this.synced=true}componentDidLoad(){this.smoothlyPickerMenuLoaded.emit({remember:()=>{this.memory={backend:new Map(Array.from(this.backend.entries(),(([t,o])=>[t,Object.assign({},o)]))),options:new Map(Array.from(this.options.entries(),(([t,o])=>[t,Object.assign({},o)])))}},restore:()=>{if(this.memory){for(const t of this.options.values()){const o=this.memory.options.get(t.value);if(o!=undefined)kn(t,o);else if(this.created.get(t.value))t.set.selected(t.selected=false)}for(const t of this.backend.values()){const o=this.memory.backend.get(t.value);if(o!=undefined)kn(t,o);else if(this.created.get(t.value))t.set.selected(t.selected=false)}}},clear:()=>{const t=Array.from(this.backend.entries());t.filter((([t])=>this.created.has(t))).forEach((([,t])=>t.set.selected(false)));this.backend=new Map(t.filter((([t])=>!this.created.has(t))));this.options=new Map(Array.from(this.options.entries()).filter((([t])=>!this.created.has(t))));this.created=new Map},synced:()=>this.synced})}disconnectedCallback(){var t;if(!this.element.parentElement){(t=vn.get(this.element))===null||t===void 0?void 0:t.disconnect();vn.remove(this.element)}}openChange(){const t=vn.get(this.element);if(this.open)t===null||t===void 0?void 0:t.observe(this.element);else t===null||t===void 0?void 0:t.unobserve(this.element)}readonlyChanged(){for(const t of wn(this.options.values(),this.backend.values()))t.set.readonly(this.readonly)}scrollHandler(){this.flipChecked=false}optionLoadHandler(t){if(!this.listElement||!t.composedPath().includes(this.listElement)){t.stopPropagation();this.sync();t.detail.set.readonly(this.readonly);const o=this.options.get(t.detail.value);if(o)t.detail.set.selected(o.element.selected)}}optionLoadedHandler(t){var o;if(!this.listElement||!t.composedPath().includes(this.listElement)){t.stopPropagation();const e=kn(this.backend.get(t.detail.value),t.detail);this.backend=new Map(this.backend.set(t.detail.value,Object.assign(Object.assign({},t.detail),{clone:(o=e===null||e===void 0?void 0:e.clone)!==null&&o!==void 0?o:t.detail.element.cloneNode(true)})).entries())}else this.options.set(t.detail.value,t.detail);this.sync()}optionChangeHandler(t){var o;if(!this.listElement||!t.composedPath().includes(this.listElement)){t.stopPropagation();(o=this.options.get(t.detail.value))===null||o===void 0?void 0:o.set.selected(t.detail.selected)}else{const o=this.backend.get(t.detail.value);if(o===null||o===void 0?void 0:o.element.parentElement)o===null||o===void 0?void 0:o.set.selected(t.detail.selected)}if(!this.readonly&&!this.multiple&&t.detail.selected)for(const o of wn(this.options.values(),this.backend.values()))if(o.value!=t.detail.value)o.set.selected(false)}inputHandler(t){t.stopPropagation();this.search=t.detail.search;if(!this.search){this.valid=false;for(const t of wn(this.options.values(),this.backend.values()))t.set.visible(true)}else{this.valid=!Array.from(this.options.values()).find((t=>t.value==this.search));const t=this.search.toLocaleLowerCase();for(const o of wn(this.options.values(),this.backend.values())){const e=o.value.toString().toLocaleLowerCase().includes(t);const s=o.search.some((o=>o.includes(t)));const i=e||s;o.set.visible(i)}}}addHandler(){var t;const o=!this.validator?true:this.validator(this.search);if(this.mutable){if(typeof o=="object"?o.result:o){if(!this.multiple)for(const t of wn(this.options.values(),this.backend.values()))t.set.selected(false);this.created=new Map(this.created.set(this.search,{value:this.search,selected:true}).entries());this.search="";(t=this.searchElement)===null||t===void 0?void 0:t.focus();this.valid=false}if(typeof o=="object")this.notice.emit(o.notice)}}keyDownHandler(t){if(t.key=="Enter"){t.preventDefault();this.addHandler()}}emptyDisplayHandler(t){t.stopPropagation();t.detail.set.nodes(this.display)}render(){return o(s,{class:{valid:this.valid,flip:this.flip}},o("smoothly-slotted-elements",{class:"hide",onSmoothlySlottedChange:t=>this.display=t.detail},o("slot",{name:"display"})),o("div",{class:"hide"},o("slot",null),Array.from(this.created.values(),(t=>o("smoothly-picker-option",{key:t.value,value:t.value,selected:t.selected},t.value,o("smoothly-slot-elements",{slot:"display",nodes:this.display}))))),o("div",{class:"controls"},o("smoothly-input",{ref:t=>this.searchElement=t,name:"search",value:this.search,looks:this.looks,onKeyDown:t=>this.keyDownHandler(t),onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyBlur:t=>t.stopPropagation()},o("slot",{name:"search"})),this.mutable&&!this.readonly?o("button",{onClick:()=>this.addHandler(),disabled:!this.valid,type:"button"},o("smoothly-icon",{name:"add-outline"})):null),o("div",{class:"list",ref:t=>this.listElement=t},Array.from(this.backend.values()).sort(((t,o)=>t.position-o.position)).map((t=>o("smoothly-slot-elements",{ref:o=>xn(o,t),clone:false,nodes:t.clone})))))}get element(){return i(this)}static get watchers(){return{open:["openChange"],readonly:["readonlyChanged"]}}};Sn.style=gn;const Cn=":host{display:contents}:host(:not([visible])){display:none}:host>*{cursor:pointer;padding:0.25ch 0.5rem}:host .display{padding-left:0}:host button{color:unset;background-color:inherit;border:none;padding-right:0}:host .content{display:flex;column-gap:1rem;justify-content:space-between}:host([required])>*{cursor:default}:host([required]) button{opacity:0.65}";var zn=undefined&&undefined.__rest||function(t,o){var e={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&o.indexOf(s)<0)e[s]=t[s];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++){if(o.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i]))e[s[i]]=t[s[i]]}return e};const jn=class{constructor(o){t(this,o);this.smoothlyPickerOptionLoad=e(this,"smoothlyPickerOptionLoad",7);this.smoothlyPickerOptionLoaded=e(this,"smoothlyPickerOptionLoaded",7);this.smoothlyPickerOptionChange=e(this,"smoothlyPickerOptionChange",7);this.selected=false;this.visible=true;this.value=undefined;this.search=[];this.position=-1;this.required=false;this.readonly=false;this.slotted=[]}get option(){var t;return{element:this.element,selected:this.selected,readonly:this.readonly,required:this.required,visible:this.visible,search:this.search,value:this.value,slotted:this.slotted,position:this.position>=0||!((t=this.element.parentElement)===null||t===void 0?void 0:t.parentElement)?this.position:Array.from(this.element.parentElement.parentElement.children).indexOf(this.element.parentElement),set:{selected:t=>this.selected=t,readonly:t=>this.readonly=t,visible:t=>this.visible=t,search:t=>this.search=t,value:t=>this.value=t}}}emitChange(){if(this.element.parentElement)this.smoothlyPickerOptionChange.emit(this.option)}componentWillLoad(){if(this.required)this.selected=true;this.smoothlyPickerOptionLoad.emit((t=>{var o=zn(t,["slotted"]);return o})(this.option))}componentDidLoad(){this.smoothlyPickerOptionLoaded.emit(this.option)}slottedChangeHandler(t){t.stopPropagation();this.slotted=t.detail}async clickHandler(){if(!this.readonly&&!this.required)this.selected=!this.selected}render(){return o(s,{class:{visible:this.visible},onClick:()=>this.clickHandler()},o("div",{part:"display",class:"display"},o("slot",{name:"display"})),o("div",{part:"content",class:"content"},o("smoothly-slotted-elements",{onSmoothlySlottedChange:t=>this.slottedChangeHandler(t),clone:true},o("slot",null)),o("slot",{name:"label"})),o("button",{type:"button"},o("smoothly-icon",{name:this.selected?"checkbox-outline":"square-outline"})))}get element(){return i(this)}static get watchers(){return{position:["emitChange"],selected:["emitChange"],slotted:["emitChange"]}}};jn.style=Cn;const _n='.sc-smoothly-popup-h{display:inline-flex;position:relative}[hidden].sc-smoothly-popup-h{display:none}.sc-smoothly-popup-h:not([visible]) .popup.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .popup.sc-smoothly-popup{display:inline;position:absolute;padding:0.3em;left:var(--left);right:var(--right);background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);border-style:solid;border-width:0.1em;border-radius:0.6em;z-index:3}[direction=down].sc-smoothly-popup-h .popup.sc-smoothly-popup{top:2.2em;box-shadow:6px 5px 9px -9px black, 5px 6px 9px -9px black}[direction=up].sc-smoothly-popup-h .popup.sc-smoothly-popup{bottom:2.2em;box-shadow:-6px -5px 9px -9px black, -5px -6px 9px -9px black}.sc-smoothly-popup-h:not([visible]) .background.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .background.sc-smoothly-popup{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:2}.sc-smoothly-popup-h:not([visible]) .arrow.sc-smoothly-popup{display:none}.sc-smoothly-popup-h .arrow.sc-smoothly-popup{background-color:rgb(238, 238, 238);border-color:rgb(238, 238, 238);z-index:2;content:"";position:absolute;width:12px;height:12px;transform:rotate(45deg);left:calc(var(--left) + 1em);right:calc(var(--right) + 1em)}[direction=down].sc-smoothly-popup-h .arrow.sc-smoothly-popup{top:2em;border-top-style:solid;border-top-width:1px;border-left-style:solid;border-left-width:1px}[direction=up].sc-smoothly-popup-h .arrow.sc-smoothly-popup{bottom:2em;border-bottom-style:solid;border-bottom-width:1px;border-right-style:solid;border-right-width:1px}.sc-smoothly-popup-h .pointer.sc-smoothly-popup{cursor:pointer}';const Ln=class{constructor(o){t(this,o);this.popup=e(this,"popup",7);this.visible=false;this.direction="down";this.cssVariables={"--left":"0.1em"}}onClick(){var t,o,e,s,i,l;if(this.visible==false){(t=this.popupElement)===null||t===void 0?void 0:t.style.setProperty("display","block");this.cssVariables=((e=(o=this.popupElement)===null||o===void 0?void 0:o.getBoundingClientRect().right)!==null&&e!==void 0?e:0)>=window.innerWidth?{"--right":"0.1em"}:((i=(s=this.popupElement)===null||s===void 0?void 0:s.getBoundingClientRect().left)!==null&&i!==void 0?i:0)<0?{"--left":"0.1em"}:this.cssVariables;(l=this.popupElement)===null||l===void 0?void 0:l.style.removeProperty("display")}this.visible=!this.visible;this.popup.emit(this.visible)}render(){return o(s,{style:Object.assign({},this.cssVariables)},o("div",{class:"pointer",onClick:()=>this.onClick()},o("slot",null)),o("div",{class:"background",onClick:()=>this.onClick()}),o("div",{class:"arrow",onClick:()=>this.onClick()}),o("div",{class:"popup",ref:t=>this.popupElement=t},o("slot",{name:"popup"})))}};Ln.style=_n;const Tn=".sc-smoothly-quiet-h{opacity:0.5}";const An=class{constructor(o){t(this,o);this.color=undefined}render(){return o(s,{color:this.color},o("slot",null))}};An.style=Tn;const In=".sc-smoothly-select-demo-h{display:block}[hidden].sc-smoothly-select-demo-h{display:none}button.sc-smoothly-select-demo:focus{outline:none}smoothly-selector.sc-smoothly-select-demo{outline:none}button.sc-smoothly-select-demo{display:block}";const On=class{constructor(o){t(this,o)}render(){return[o("smoothly-tab-switch",null,o("smoothly-tab",{label:"test1",open:true},"Hello world!"),o("smoothly-tab",{label:"test2"},"this is a test message!"),o("smoothly-tab",{label:"test3"},"this is a test message again!"))]}};On.style=In;const $n='.sc-smoothly-skeleton-h{display:block;height:1rem}.sc-smoothly-skeleton-h::before{content:"";display:block;width:var(--width);height:100%;border-radius:0.4rem;background-image:linear-gradient(90deg, rgb(var(--color, var(--smoothly-dark-color))) 0, transparent 2.5rem, rgb(var(--color, var(--smoothly-dark-color))) 5rem);background-size:calc(var(--distance) + 5rem);animation-duration:var(--period, 1.6s);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:shine-lines-left}@keyframes shine-lines-left{0%{background-position:-5rem}40%,100%{background-position:var(--distance)}}[align=center].sc-smoothly-skeleton-h::before{margin:0 auto;animation-name:shine-lines-center}@keyframes shine-lines-center{0%{background-position:calc((var(--width) - var(--distance)) / 2 - 5rem)}40%,100%{background-position:calc(var(--width) + (var(--distance) - var(--width)) / 2)}}[align=right].sc-smoothly-skeleton-h::before{margin:0;margin-left:auto;animation-name:shine-lines-right}@keyframes shine-lines-right{0%{background-position:calc(var(--width) - var(--distance) - 5rem)}40%,100%{background-position:var(--width)}}';const En=class{constructor(o){t(this,o);this.widths=["8rem","9rem","10rem"];this.width=undefined;this.color=undefined;this.period=undefined;this.distance=undefined;this.align="left"}componentWillLoad(){var t;this.width=(t=this.width)!==null&&t!==void 0?t:this.widths[Math.floor(Math.random()*this.widths.length)]}render(){var t;const e=Object.assign(Object.assign({"--width":this.width,"--distance":(t=this.distance)!==null&&t!==void 0?t:"10rem"},this.color?{"--color":this.color}:undefined),this.period?{"--period":this.period+"s"}:undefined);return o(s,{style:e})}};En.style=$n;const Dn=".sc-smoothly-slot-elements-h{display:contents}";const Mn=class{constructor(o){t(this,o);this.smoothlySlotEmpty=e(this,"smoothlySlotEmpty",7);this.clone=true;this.nodes=undefined}componentWillLoad(){if(!this.nodes)this.smoothlySlotEmpty.emit({set:{nodes:t=>this.nodes=t}})}componentDidLoad(){this.element.innerHTML="";if(this.nodes)if(Array.isArray(this.nodes))this.nodes.forEach((t=>this.element.appendChild(this.clone?t.cloneNode(true):t)));else this.element.appendChild(this.clone?this.nodes.cloneNode(true):this.nodes)}render(){return o(s,null,o("slot",null))}get element(){return i(this)}static get watchers(){return{nodes:["componentDidLoad"]}}};Mn.style=Dn;const Pn=".sc-smoothly-slotted-elements-h{display:contents}";const Rn=class{constructor(o){t(this,o);this.smoothlySlottedChange=e(this,"smoothlySlottedChange",7);this.clone=true}componentDidRender(){const t=Array.from(this.element.childNodes,(t=>{let o;if(t instanceof HTMLSlotElement){const e=t.assignedNodes();o=e.length?e.map((t=>this.clone?t.cloneNode(true):t)):this.clone?t.cloneNode(true):t}else o=t;return o})).flat();this.smoothlySlottedChange.emit(Array.from(t,(t=>this.clone?t.cloneNode(true):t)))}render(){return o(s,null,o("slot",null))}get element(){return i(this)}};Rn.style=Pn;const Nn=".sc-smoothly-spinner-h:not([active]){display:none}[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{display:block;stroke:rgb(var(--spinner-color, var(--smoothly-primary-tint)));position:absolute;z-index:4;inset:0;width:100%;height:100%;background-color:rgba(var(--background-color, var(--smoothly-default-color)), var(--background-opacity, var(--smoothly-semitransparent, 0.8)))}.sc-smoothly-spinner-h svg.sc-smoothly-spinner{position:absolute;left:calc(50% - var(--size) / 2);top:calc(50% - var(--size) / 2);width:var(--size);animation:SPIN-SVG 1.4s linear infinite}.sc-smoothly-spinner-h svg.sc-smoothly-spinner circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE 1.4s ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}";const Hn=class{constructor(o){t(this,o);this.active=undefined;this.size="large"}render(){const t=this.size=="large"?6:this.size=="medium"?8:12;return o(s,{style:{"--color":`var(--spinner-color)`,"--size":this.size=="large"?"5em":this.size=="medium"?"3em":"1.2em"}},o("svg",{class:"spinner",viewBox:`0 0 ${60+t} ${60+t}`,xmlns:"http://www.w3.org/2000/svg"},o("circle",{class:"path",fill:"none","stroke-width":t,"stroke-linecap":"round",cx:`${30+t/2}`,cy:`${30+t/2}`,r:"30"})))}};Hn.style=Nn;const Fn="[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-color);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{display:inline-block;box-sizing:border-box;border-radius:0.5rem;border:solid 1px;transition:background 150ms ease-in-out;cursor:pointer}[type=link].sc-smoothly-submit-h{display:inline;border:none}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}a.sc-smoothly-submit,button.sc-smoothly-submit{font-size:110%;font-weight:400;border:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem}button.sc-smoothly-submit{justify-content:center;height:100%;width:100%;border-radius:0.5rem;align-items:center}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-submit{padding:0.8em;min-width:8em}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-submit{padding:0.6em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[shape=rounded].sc-smoothly-submit-h>button.sc-smoothly-submit,[shape=rounded].sc-smoothly-submit-h{border-radius:2rem}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center;border:none}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0 !important}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;border-radius:0}[shape=rounded].sc-smoothly-submit-h>button.sc-smoothly-submit,[shape=rounded].sc-smoothly-submit-h{border-radius:2rem}.sc-smoothly-submit-h:not([fill=clear]):hover,.sc-smoothly-submit-h:not([fill=clear]):focus,.sc-smoothly-submit-h:not([fill=clear]):active{border-color:rgb(var(--smoothly-color-tint)) !important;background:rgb(var(--smoothly-color-tint)) !important}.sc-smoothly-submit-h:not([fill=clear]):hover>button.sc-smoothly-submit,.sc-smoothly-submit-h:not([fill=clear]):focus>button.sc-smoothly-submit,.sc-smoothly-submit-h:not([fill=clear]):active>button.sc-smoothly-submit,.sc-smoothly-submit-h:not([fill=clear]):hover .sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h:not([fill=clear]):focus .sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h:not([fill=clear]):active .sc-smoothly-submit-s>smoothly-icon{color:rgb(var(--smoothly-color-contrast)) !important;stroke:rgb(var(--smoothly-color-contrast)) !important;fill:rgb(var(--smoothly-color-contrast)) !important}[fill=clear].sc-smoothly-submit-h:hover>button.sc-smoothly-submit,[fill=clear].sc-smoothly-submit-h:focus>button.sc-smoothly-submit,[fill=clear].sc-smoothly-submit-h:active>button.sc-smoothly-submit{color:rgb(var(--smoothly-color-tint)) !important;stroke:rgb(var(--smoothly-color-tint)) !important;fill:rgb(var(--smoothly-color-tint)) !important}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h:not([fill]),[fill=default].sc-smoothly-submit-h{background:rgb(var(--smoothly-color));border-color:transparent}[fill=solid].sc-smoothly-submit-h{background:rgb(var(--smoothly-color));border-color:rgb(var(--smoothly-color))}[fill=solid].sc-smoothly-submit-h>button.sc-smoothly-submit,[fill=default].sc-smoothly-submit-h>button.sc-smoothly-submit{stroke:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));color:rgb(var(--smoothly-color-contrast))}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit,[fill=clear].sc-smoothly-submit-h>button.sc-smoothly-submit{stroke:rgb(var(--smoothly-color));fill:rgb(var(--smoothly-color));color:rgb(var(--smoothly-color))}[fill=outline].sc-smoothly-submit-h{background:transparent;border-color:rgb(var(--smoothly-color))}[fill=clear].sc-smoothly-submit-h{background:transparent;border-color:transparent}.sc-smoothly-submit-s>smoothly-icon[slot=start],.sc-smoothly-submit-s>smoothly-icon[slot=end]{font-size:0.65em}[hidden].sc-smoothly-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}";const Yn=class{constructor(o){t(this,o);this.smoothlySubmit=e(this,"smoothlySubmit",7);this.smoothlyInputLoad=e(this,"smoothlyInputLoad",7);this.color="success";this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.prevent=true}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(Jl.is(t)){this.parent=t}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.submit()}render(){return o(Mt,{disabled:this.disabled,type:this.type},o("slot",null))}};Yn.style=Fn;const Wn=".sc-smoothly-summary-h{display:grid;grid-template-columns:auto 1fr;column-gap:0.3rem}.sc-smoothly-summary-h>details.sc-smoothly-summary{display:contents}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary{display:grid;grid-template-columns:subgrid;grid-column:1/-1;list-style:none;align-items:center}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-summary-h:hover details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{opacity:1}.sc-smoothly-summary-h>details[open].sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transform:rotate(90deg)}.sc-smoothly-summary-h>details.sc-smoothly-summary-s>[slot=content]{grid-column:2}@media screen and (min-width: 900px){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover{cursor:pointer}}";const Un=class{constructor(o){t(this,o);this.smoothlySummaryOpen=e(this,"smoothlySummaryOpen",7);this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}toggleHandler(t){if(t.target instanceof HTMLDetailsElement){this.open=t.target.open;this.smoothlySummaryOpen.emit(this.open)}}render(){return o("details",{onToggle:t=>this.toggleHandler(t),open:this.open},o("summary",null,o("smoothly-icon",{name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),o("slot",{name:"summary"})),o("slot",{name:"content"}))}};Un.style=Wn;const qn=".sc-smoothly-svg-h{display:block;min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color, var(--smoothly-color-contrast)))}object.sc-smoothly-svg{min-width:var(--size-width);min-height:var(--size-height);background-color:rgb(var(--color, var(--smoothly-color-contrast)))}";const Bn=class{constructor(o){t(this,o);this.defaultSizes={large:{height:"50rem",width:"50rem"},medium:{height:"30rem",width:"30rem"},small:{height:"10rem",width:"10rem"},tiny:{height:"5rem",width:"5rem"}};this.url=undefined;this.size=undefined;this.color=undefined}render(){const t=this.size?typeof this.size=="object"?this.size.height:this.defaultSizes[this.size].height:"10rem";const e=this.size?typeof this.size=="object"?this.size.width:this.defaultSizes[this.size].width:"10rem";return o(s,{style:{"min-height":t,"min-width":e,"--size-height":t,"--size-width":e,"--color":this.color}},o("object",{height:t,width:e,type:"image/svg+xml",data:this.url}))}};Bn.style=qn;const Vn="[open].sc-smoothly-tab-h{border-bottom:3px solid rgb(var(--smoothly-primary-color));box-sizing:border-box;margin-bottom:-3px}.hide.sc-smoothly-tab{display:none}label.sc-smoothly-tab{display:block;padding:.5rem;background-color:transparent;width:auto}";const Xn=class{constructor(o){t(this,o);this.expansionOpen=e(this,"expansionOpen",7);this.label=undefined;this.open=undefined}openChanged(){if(this.expansionElement){this.expansionOpen.emit(this.expansionElement)}}onClick(t){this.open=!this.open;t.stopPropagation()}componentDidLoad(){if(this.expansionElement&&this.open){this.expansionOpen.emit(this.expansionElement)}}render(){return o(s,null,o("label",null,this.label),o("div",{ref:t=>this.expansionElement=t,class:!this.open?"hide":""},o("slot",null)))}static get watchers(){return{open:["openChanged"]}}};Xn.style=Vn;const Kn=".sc-smoothly-tab-switch-h{display:flex;flex-direction:row;justify-content:space-around;border-bottom:3px solid rgb(var(--smoothly-default-shade))}";const Jn=class{constructor(o){t(this,o);this.selectedElement=undefined}openChanged(t){t.stopPropagation();this.selectedElement=t.target;this.selectedElement.open=true;this.element.after(t.detail)}onSelectedChange(t,o){if(o)o.open=false}render(){return o(s,null,o("slot",null))}get element(){return i(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};Jn.style=Kn;const Gn=".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";const Zn=class{constructor(o){t(this,o);this.smoothlyNestedTable=e(this,"smoothlyNestedTable",7);this.smoothlySpotlightChange=e(this,"smoothlySpotlightChange",7);this.smoothlyTableLoad=e(this,"smoothlyTableLoad",7);this.expandable=new WeakMap;this.expanded=new Set;this.root=true;this.color=undefined;this.align="middle";this.open=false}componentWillLoad(){this.smoothlyNestedTable.emit((()=>this.root=false));this.smoothlyTableLoad.emit((t=>this.owner=t))}handleExpandableLoaded(t){t.stopPropagation();t.target&&this.expandable.set(t.target,t.detail)}handleExpandableState(t){t.stopPropagation();t.target&&(t.detail?this.expanded.add(t.target):this.expanded.delete(t.target));this.smoothlySpotlightChange.emit({allowSpotlight:!this.expanded.size,owner:this.owner})}handleSpotlightState(t){var o;this.open=!!this.expanded.size;t.target!=this.element&&(t.stopPropagation(),t.detail.owner&&((o=this.expandable.get(t.detail.owner))===null||o===void 0?void 0:o.allowSpotlight(t.detail.allowSpotlight)))}handleNestedTable(t){t.target!=this.element&&(t.stopPropagation(),t.detail())}handleEvents(t){t.stopPropagation()}render(){return[o("slot",null)]}get element(){return i(this)}};Zn.style=Gn;const Qn=".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem 0 0.3rem 1rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div .sc-smoothly-table-cell-h:last-of-type smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";const tr=class{constructor(o){t(this,o)}render(){return o(s,null,o("div",null,o("div",null,o("slot",null)),o("smoothly-icon",{name:"caret-forward-outline",size:"tiny"})))}};tr.style=Qn;const or=".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:1.5rem;margin-right:1.5rem}.content.sc-smoothly-table-demo{display:contents}smoothly-lazy.sc-smoothly-table-demo{width:80%}";const er=class{constructor(o){t(this,o)}render(){return o(s,null,o("h4",null,"Demo table 1: Filtered & Checked Table")," ",o("smoothly-lazy",{content:o("smoothly-table-demo-filtered",null)}),o("h4",null,"Demo table 2")," ",o("smoothly-table-testing",null)," ",o("h4",null,"Demo table 3"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"Header A"),o("smoothly-table-header",null,"Header B"),o("smoothly-table-header",null,"Header C"),o("smoothly-table-header",null,"Header D")),o("smoothly-table-row",null,o("smoothly-table-expandable-cell",null,"normal row (exp.cell)",o("div",{slot:"detail"},"expandable cell 1 content")),o("smoothly-table-expandable-cell",null,"expandable cell",o("div",{slot:"detail"},"expandable cell 2 content")),o("smoothly-table-expandable-cell",null,"expandable cell",o("div",{slot:"detail"},"expandable cell 3 content")),o("smoothly-table-expandable-cell",null,"expandable cell",o("div",{slot:"detail"},"expandable cell 4 content"))),o("smoothly-table-row",null,o("smoothly-table-cell",null,'normal row (nor.cell)"'),o("smoothly-table-cell",null,"normal cell"),o("smoothly-table-expandable-cell",null,"expandable cell",o("div",{slot:"detail"},"expandable cell details.")),o("smoothly-table-expandable-cell",null,"expandable cell",o("div",{slot:"detail"},"expandable cell details."))),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"expandable row (nor.cell)"),o("smoothly-table-cell",null,"Normal cell"),o("smoothly-table-cell",null,"normal cell"),o("smoothly-table-cell",null,"Normal cell"),o("div",{slot:"detail"},"expandable row content"))),o("h4",null,"Demo table 4"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"Header A"),o("smoothly-table-expandable-cell",null,"Header expansion",o("div",{slot:"detail"},"Expansion content"))),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"A Content"),o("smoothly-table-cell",null,"Expansion cell"),o("div",{slot:"detail"},o("smoothly-tab-switch",null,o("smoothly-tab",{label:"innertable 1",open:true},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"Header B")),o("smoothly-table-expandable-row",null,"B Content"))),o("smoothly-tab",{label:"innertable 2"},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"Header C")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"C Content"))))))),o("smoothly-table-row",null,o("smoothly-table-cell",null,"A Content"),o("smoothly-table-expandable-cell",null,"Expandable cell",o("div",{slot:"detail"},"Expansion content")))),o("h4",null,"Demo table 5"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"A"),o("smoothly-table-header",null,"B")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"nested expandable row"),o("smoothly-table-cell",null,"b row"),o("div",{slot:"detail"},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"C"),o("smoothly-table-header",null,"D")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"c"),o("smoothly-table-cell",null,"d"),o("div",{slot:"detail"},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"E"),o("smoothly-table-header",null,"F")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"e row"),o("smoothly-table-cell",null,"f row"),o("div",{slot:"detail"},"nested expandable row expansion e f")))))))),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,o("span",null,"one"),o("span",null,"two"),o("span",null,"three")),o("smoothly-table-cell",null,"five",o("smoothly-icon",{name:"paper-plane-sharp",size:"small"})),o("div",{slot:"detail"},"four")),o("smoothly-table-row",null,o("smoothly-table-expandable-cell",null,o("span",null,"nested expandable cells"),o("div",{slot:"detail"},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"E"),o("smoothly-table-header",null,"F")),o("smoothly-table-row",null,o("smoothly-table-expandable-cell",null,"e cell",o("div",{slot:"detail"},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"G"),o("smoothly-table-header",null,"H")),o("smoothly-table-row",null,o("smoothly-table-expandable-cell",null,"g cell",o("div",{slot:"detail"},"nested expandable cell expansion g")),o("smoothly-table-expandable-cell",null,"h cell",o("div",{slot:"detail"},"nested expandable cell expansion h")))))),o("smoothly-table-expandable-cell",null,"f cell",o("div",{slot:"detail"},"nested expandable cell expansion f")))))),o("smoothly-table-expandable-cell",null,"b cell",o("div",{slot:"detail"},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"C"),o("smoothly-table-header",null,"D")),o("smoothly-table-row",null,o("smoothly-table-expandable-cell",null,"c cell",o("div",{slot:"detail"},"nested expandable cell expansion c")),o("smoothly-table-expandable-cell",null,"d cell",o("div",{slot:"detail"},"nested expandable cell expansion d")))))))),o("h4",null,"Demo table 6"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"display"),o("smoothly-table-header",null,"contents")),o("smoothly-table-expandable-row",null,o("div",{class:"content"},o("smoothly-table-cell",null,"A"),o("smoothly-table-cell",null,"B")),o("div",{slot:"detail"},"expansion"))),o("h4",null,"Demo table 7")," ",o("span",null,"nested 1 then normal"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"A"),o("smoothly-table-header",null,"B")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"a"),o("smoothly-table-cell",null,"b"),o("div",{slot:"detail"},o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"C"),o("smoothly-table-header",null,"D")),o("smoothly-table-row",null,o("smoothly-table-cell",null,"c"),o("smoothly-table-cell",null,"d")),o("smoothly-table-row",null,o("smoothly-table-cell",null,"ccc"),o("smoothly-table-cell",null,"ddd")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"cccc"),o("smoothly-table-cell",null,"dddd"),o("div",{slot:"detail"},"CONTENT")),o("smoothly-table-row",null,o("smoothly-table-cell",null,"ccccc"),o("smoothly-table-cell",null,"ddd")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"cccc"),o("smoothly-table-cell",null,"dddd"),o("div",{slot:"detail"},"CONTENT")))))),o("h4",null,"Demo table 8")," ",o("span",null,"not nested"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"C"),o("smoothly-table-header",null,"D")),o("smoothly-table-row",null,o("smoothly-table-cell",null,"c"),o("smoothly-table-cell",null,"d")),o("smoothly-table-row",null,o("smoothly-table-cell",null,"cc"),o("smoothly-table-cell",null,"dd")),o("smoothly-table-row",null,o("smoothly-table-cell",null,"ccc"),o("smoothly-table-cell",null,"ddd"))),o("h4",null,"Demo table 9"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"First name"),o("smoothly-table-header",null,"Last name"),o("smoothly-table-header",{style:{width:"1px"}},o("smoothly-icon",{name:"alert-outline"}))),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"Jessie"),o("smoothly-table-cell",null,"Doe"),o("smoothly-table-cell",null),o("div",{slot:"detail"},o("p",null,"This is Jessie")))),o("h4",null,"Demo table 9 - Lazy expansion rows"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"Company")),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"Proquse"),o("smoothly-lazy",{slot:"detail",content:o("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})})),o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,"Pax2Pay"),o("smoothly-lazy",{slot:"detail",content:()=>o("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})}))),o("h4",null,"Demo table 10 - Lazy expansion cells"),o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,"Company")),o("smoothly-table-row",null,o("smoothly-table-expandable-cell",null,"Proquse",o("smoothly-lazy",{slot:"detail",content:o("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})}))),o("smoothly-table-row",null,o("smoothly-table-expandable-cell",null,"Pax2Pay",o("smoothly-lazy",{slot:"detail",content:()=>o("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})})))))}};er.style=or;var sr=undefined&&undefined.__classPrivateFieldGet||function(t,o,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof o==="function"?t!==o||!s:!o.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(t):s?s.value:o.get(t)};var ir=undefined&&undefined.__classPrivateFieldSet||function(t,o,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof o==="function"?t!==o||!i:!o.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,e):i?i.value=e:o.set(t,e),e};var lr;class nr{get selected(){var t;return ir(this,lr,(t=sr(this,lr,"f"))!==null&&t!==void 0?t:Object.values(this.data),"f")}constructor(t,o={}){this.key=t;this.data=o;lr.set(this,void 0)}handle(t){var o;return new nr(this.key,"check-all"in t?(o=t["check-all"])!==null&&o!==void 0?o:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),t)).filter((([t,o])=>o!=undefined))))}render(t){var e,s,i;return Array.isArray(t)?o("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(t.map((t=>[t[this.key],t]))),intermediate:this.selected.length>0&&this.selected.length<t.length,checked:this.selected.length==t.length?true:this.selected.length==0&&false}):o("smoothly-checkbox",{name:(e=t[this.key])===null||e===void 0?void 0:e.toString(),value:t,checked:!!this.data[(i=(s=t[this.key])===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""]})}static create(t){return new nr(t)}}lr=new WeakMap;const rr=".sc-smoothly-table-demo-filtered-h{display:block;width:80%}smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2){text-align:right}td.sc-smoothly-table-demo-filtered{padding-left:1.5em}";const ar=class{constructor(o){t(this,o);this.criteria={};this.cats=undefined;this.selector=nr.create("breed")}onFilterUpdate(t){t.stopPropagation();this.criteria=t.detail}smoothlyInputHandler(t){t.stopPropagation();this.selector=this.selector.handle(t.detail)}async componentWillLoad(){const t=await ol("https://catfact.ninja/breeds?limit=15");this.cats=t.status==200&&(await t.body).data.map((t=>Object.assign(Object.assign({},t),{price:[...t.breed].reduce(((t,o)=>t+o.charCodeAt(0)),0),nested:t})))}render(){const t=this.cats&&si(this.criteria,this.cats);return o(s,null,o("smoothly-filter",null,o("smoothly-filter-toggle",{properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),o("smoothly-filter-toggle",{properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),o("smoothly-filter-toggle",{properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),o("smoothly-filter-toggle",{properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),o("smoothly-filter-picker",{property:"coat",slot:"bar",multiple:false},this.cats&&this.cats.map((t=>t.coat&&o("smoothly-picker-option",{value:t.coat},t.coat)))),o("div",{slot:"detail"},o("smoothly-form",{looks:"border"},o("smoothly-filter-picker",{property:"breed",multiple:false},this.cats&&this.cats.map((t=>t.breed&&o("smoothly-picker-option",{value:t.breed},t.breed)))),o("smoothly-filter-input",{property:"coat",placeholder:"ex. Short"})))),!t?"Failed to load data.":o("smoothly-table",null,o("smoothly-table-row",null,o("smoothly-table-header",null,this.selector.render(t)),o("smoothly-table-header",null,"Breed"),o("smoothly-table-header",null,"Coat"),o("smoothly-table-header",null,"Price")),t.map((t=>o("smoothly-table-row",null,o("smoothly-table-cell",null,this.selector.render(t)),o("smoothly-table-expandable-cell",null,t.breed,o("div",{slot:"detail"},"Country: ",t.country)),o("smoothly-table-expandable-cell",null,t.coat,o("div",{slot:"detail"},"Pattern: ",t.pattern)),o("smoothly-table-cell",null,o("smoothly-display",{type:"price",value:t.price,currency:"SEK"}))))),o("smoothly-table-footer",null,o("td",{colSpan:5},o("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:t?t.length:"?"}`})))))}};ar.style=rr;const hr='.sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0 0.3rem 0;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;padding:0 0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg)}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{display:grid;grid-template-columns:auto 1fr;align-items:center}.hide.sc-smoothly-table-expandable-cell{display:none}td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}td.sc-smoothly-table-expandable-cell-s>*::before{content:"";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}td.sc-smoothly-table-expandable-cell-s>*::after{content:"";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}';const cr=class{constructor(o){t(this,o);this.smoothlyExpansionOpen=e(this,"smoothlyExpansionOpen",7);this.smoothlyExpansionLoad=e(this,"smoothlyExpansionLoad",7);this.smoothlyExpandableChange=e(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=e(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}openChanged(t){if(this.expansionElement)if(t)this.beginOpen=true;else this.element.append(this.expansionElement);this.smoothlyExpandableChange.emit(this.open)}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpansionLoad.emit();this.smoothlyExpandableLoad.emit({allowSpotlight:t=>this.allowSpotlight=t})}componentDidRender(){if(this.beginOpen){this.beginOpen=false;this.smoothlyExpansionOpen.emit(this.expansionElement)}}onClick(){this.open=!this.open}handleTableLoaded(t){t.stopPropagation();t.detail(this.element)}render(){return o(s,null,o("div",null,o("smoothly-icon",{name:"caret-forward-outline"}),o("slot",null)),o("tr",{class:{spotlight:this.spotlight},ref:t=>this.expansionElement=t},o("td",{colSpan:999,class:!this.open?"hide":""},o("slot",{name:"detail"}))))}get element(){return i(this)}static get watchers(){return{open:["openChanged","handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};cr.style=hr;const ur='.sc-smoothly-table-expandable-row-h{display:contents}div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.hide.sc-smoothly-table-expandable-row{display:none}div.sc-smoothly-table-expandable-row>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}td.sc-smoothly-table-expandable-row-s>*::before{content:"";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}td.sc-smoothly-table-expandable-row-s>*::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}';const mr=class{constructor(o){t(this,o);this.smoothlyExpansionOpen=e(this,"smoothlyExpansionOpen",7);this.smoothlyExpandableChange=e(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=e(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpandableLoad.emit({allowSpotlight:t=>this.allowSpotlight=t})}handleTableLoaded(t){t.stopPropagation();t.detail(this.element)}render(){return o(s,null,o("div",{onClick:()=>this.open=!this.open},o("slot",null)),o("tr",{class:{spotlight:this.spotlight}},o("td",{colSpan:999,class:{hide:!this.open}},o("slot",{name:"detail"}))))}get element(){return i(this)}static get watchers(){return{open:["handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};mr.style=ur;const dr=".sc-smoothly-table-footer-h{display:table-footer-group;position:sticky;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\t\tinset 0 1px 0 rgb(var(--smoothly-color-shade));line-height:2.5rem;font-weight:bold}";const yr=class{constructor(o){t(this,o)}render(){return o("slot",null)}};yr.style=dr;const pr=".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding-left:1rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";const fr=class{constructor(o){t(this,o);this.name=undefined}render(){return o(s,null,o("slot",null))}};fr.style=pr;const br=".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}div.sc-smoothly-table-row{display:contents}";const gr=class{constructor(o){t(this,o);this.expansions=[];this.open=false}onExpansionLoad(t){this.expansions.push(t.target)}onExpansionChange(){this.open=this.expansions.some((t=>t.open))}onExpansionOpen(t){var o;this.expansions.forEach((o=>{if(o!=t.target)o.open=false}));if(t.detail)(o=this.element)===null||o===void 0?void 0:o.after(t.detail)}render(){return o("div",{ref:t=>this.element=t},o("slot",null))}};gr.style=br;const vr=[{type:"cat",name:"Lazie",age:3},{type:"dog",name:"Jessie",age:8},{type:"cat",name:"Snooz",age:5},{type:"bird",name:"Squeak",age:1},{type:"bird",name:"Quirk",age:2}];const wr=".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}td.sc-smoothly-table-testing>div.footer.sc-smoothly-table-testing{display:flex;padding-left:1.5em;flex-direction:row;gap:1em}";const kr=class{constructor(o){t(this,o);this.counter=0}render(){return o(s,null,o("smoothly-table",{color:"dark"},o("smoothly-table-row",null,o("smoothly-table-header",null,"Type"),o("smoothly-table-header",null,"Name"),o("smoothly-table-header",null,"Age")),vr.map((t=>o("smoothly-table-expandable-row",null,o("smoothly-table-cell",null,t.type),o("smoothly-table-cell",null,t.name),o("smoothly-table-cell",null,t.age),o("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},o("smoothly-input",{value:t.type},"Type"),o("smoothly-input",{value:t.name},"Name"),o("smoothly-input",null,t.age),o("smoothly-submit",{slot:"submit"},"Submit!"))))),vr.map((t=>o("smoothly-table-row",null,o("smoothly-table-cell",null,t.type),o("smoothly-table-expandable-cell",null,t.name,o("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},o("smoothly-input",{value:t.name},"Name"),o("smoothly-submit",{slot:"submit"},"Submit!"))),o("smoothly-table-expandable-cell",null,t.age,o("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},o("smoothly-input",{value:t.type},"Type"),o("smoothly-input",{value:t.name},"Name"),o("smoothly-input",null,t.age),o("smoothly-submit",{slot:"submit"},"Submit!")))))),o("smoothly-table-footer",null,o("td",{colSpan:2},o("div",{class:"footer"},"Currently viewing content from:",o("smoothly-display",{type:"date",value:"2023-10-12"}))),o("smoothly-table-header",null,"Total age: "+vr.reduce(((t,o)=>t+o.age),0)))))}};kr.style=wr;const xr=".sc-smoothly-theme-color-h{display:flex;flex-direction:column;align-items:center}.sc-smoothly-theme-color-h>.sc-smoothly-theme-color:first-child{margin-top:0.2rem}";const Sr=class{constructor(o){t(this,o);this.color=undefined}render(){return o(s,null,this.color,["tint","color","shade"].map((t=>o("smoothly-theme-color-variant",{color:this.color,variant:t}))))}};Sr.style=xr;const Cr=".sc-smoothly-theme-color-variant-h{display:flex;justify-content:center;align-items:center;width:3em;height:3em;font-weight:900}[color][variant=color].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color))}[color][variant=tint].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-tint))}[color][variant=shade].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-shade))}";const zr=class{constructor(o){t(this,o);this.color=undefined;this.variant="color"}render(){return"Aa"}};zr.style=Cr;const jr=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const _r=class{constructor(o){t(this,o)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((t=>o("smoothly-theme-color",{color:t})))}};_r.style=jr;const Lr="";const Tr=class{constructor(o){t(this,o);this.element="smoothly-css"}render(){return o(s,null,o("smoothly-input-select",{name:"theme",onSmoothlyInput:t=>{const o=document.querySelector(`#${this.element}`);if(o instanceof HTMLLinkElement&&typeof t.detail.theme=="string")o.href=t.detail.theme}},o("slot",null)))}};Tr.style=Lr;const Ar=".sc-smoothly-toggle-h{display:inline-block;border:none}button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const Ir=class{constructor(o){t(this,o);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(t){this.selected=!this.selected}render(){return o("button",null,o("slot",{name:"icon-slot"}),o("slot",null,this.name))}};Ir.style=Ar;const Or=":host{display:block;margin:1em 0;width:3.6em;height:1.8em}:host button{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-light-tint))}:host button:hover{background-color:rgb(var(--smoothly-light-color))}:host smoothly-icon{display:flex;justify-content:flex-start;align-items:center;position:absolute;left:0;fill:rgb(var(--smoothly-color));stroke:rgb(var(--smoothly-color));font-size:1.2em;transition:100ms ease-in-out}:host[checkmark] smoothly-icon{fill:rgb(var(--smoothly-success-color));stroke:rgb(var(--smoothly-success-color))}:host([selected][checkmark]) button{background-color:rgb(var(--smoothly-success-color))}:host([selected]) smoothly-icon{transform:translateX(100%)}:host([size=small]){width:3.05em;height:1.5em}:host([size=large]){width:5.2em;height:2.5em}:host([size=small]) smoothly-icon{font-size:1em}:host([size=large]) smoothly-icon{font-size:1.75em}";const $r=class{constructor(o){t(this,o);this.smoothlyToggleSwitchChange=e(this,"smoothlyToggleSwitchChange",7);this.checkmark=true;this.selected=false;this.disabled=false;this.size="default";this.color=undefined;this.fill="clear"}handleClick(){this.selected=!this.selected;this.smoothlyToggleSwitchChange.emit(this.selected)}render(){return o(s,null,o("button",{disabled:this.disabled,onClick:()=>this.handleClick()},o("smoothly-icon",{color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};$r.style=Or;const Er=".sc-smoothly-trigger-h{display:block;border-style:solid;border-width:1px;border-radius:3px}[hidden].sc-smoothly-trigger-h{display:none}[disabled].sc-smoothly-trigger-h{opacity:0.5}button.sc-smoothly-trigger{border-color:transparent;background-color:transparent;padding:0.2em 0.3em;font-size:110%;font-weight:400}.sc-smoothly-trigger-h:not([disabled]):hover,.sc-smoothly-trigger-h:not([disabled]):focus,.sc-smoothly-trigger-h:not([disabled]):active{border-color:var(--smoothly-trigger-border)}[expand=full].sc-smoothly-trigger-h>button.sc-smoothly-trigger,[expand=block].sc-smoothly-trigger-h>button.sc-smoothly-trigger{width:100%}[expand=full].sc-smoothly-trigger-h{border-left:none;border-right:none}";const Dr=class{constructor(o){t(this,o);this.trigger=e(this,"trigger",7);this.color=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.name=undefined;this.value=undefined}onClick(t){this.trigger.emit({name:this.name,value:this.value});t.stopPropagation();t.preventDefault()}render(){let t;switch(this.type){case"link":t=this.disabled?o("slot",null):o("a",{onClick:t=>this.onClick(t)},o("slot",null));break;case"button":t=o("button",{disabled:this.disabled,name:this.name},o("slot",null));break}return t}};Dr.style=Er;const Mr=class{constructor(o){t(this,o);this.tuple=undefined}render(){return[o("b",null,this.tuple[0]),": ",this.tuple[1],o("br",null)]}};const Pr=class{constructor(o){t(this,o);this.data=undefined}render(){return this.data.split("&").map((t=>t.split("="))).map((t=>o("smoothly-tuple",{tuple:t})))}};export{O as smoothly_app,$ as smoothly_app_demo,It as smoothly_app_room,$t as smoothly_back_to_top,Dt as smoothly_burger,Ht as smoothly_button,Yt as smoothly_button_confirm,Ut as smoothly_button_demo,Jt as smoothly_calendar,Zt as smoothly_dialog,Qt as smoothly_dialog_demo,Wo as smoothly_display,Bo as smoothly_display_amount,Vo as smoothly_display_demo,ri as smoothly_filter,hi as smoothly_filter_field,ui as smoothly_filter_input,di as smoothly_filter_picker,pi as smoothly_filter_toggle,ul as smoothly_form,dl as smoothly_frame,pl as smoothly_icon,bl as smoothly_icon_demo,vl as smoothly_input,xl as smoothly_input_checkbox,Cl as smoothly_input_clear,jl as smoothly_input_color,Ll as smoothly_input_date,Al as smoothly_input_date_range,Ol as smoothly_input_demo,El as smoothly_input_edit,Ml as smoothly_input_file,Rl as smoothly_input_month,Hl as smoothly_input_radio,Yl as smoothly_input_radio_item,Ul as smoothly_input_range,Bl as smoothly_input_reset,Xl as smoothly_input_select,Zl as smoothly_input_submit,tn as smoothly_item,en as smoothly_label,ln as smoothly_lazy,rn as smoothly_load_more,hn as smoothly_notification,un as smoothly_notifier,yn as smoothly_picker,bn as smoothly_picker_demo,Sn as smoothly_picker_menu,jn as smoothly_picker_option,Ln as smoothly_popup,An as smoothly_quiet,On as smoothly_select_demo,En as smoothly_skeleton,Mn as smoothly_slot_elements,Rn as smoothly_slotted_elements,Hn as smoothly_spinner,Yn as smoothly_submit,Un as smoothly_summary,Bn as smoothly_svg,Xn as smoothly_tab,Jn as smoothly_tab_switch,Zn as smoothly_table,tr as smoothly_table_cell,er as smoothly_table_demo,ar as smoothly_table_demo_filtered,cr as smoothly_table_expandable_cell,mr as smoothly_table_expandable_row,yr as smoothly_table_footer,fr as smoothly_table_header,gr as smoothly_table_row,kr as smoothly_table_testing,Sr as smoothly_theme_color,zr as smoothly_theme_color_variant,_r as smoothly_theme_colors,Tr as smoothly_theme_picker,Ir as smoothly_toggle,$r as smoothly_toggle_switch,Dr as smoothly_trigger,Mr as smoothly_tuple,Pr as smoothly_urlencoded};
|
|
2
|
+
//# sourceMappingURL=p-36a1aa35.entry.js.map
|