smoothly 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/smoothly-app_99.cjs.entry.js +147 -147
- package/dist/cjs/smoothly-app_99.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-submit.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- 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/app/room/index.js +1 -1
- package/dist/collection/components/back-to-top/index.js +2 -2
- package/dist/collection/components/burger/index.js +1 -1
- package/dist/collection/components/button/demo/index.js +3 -3
- package/dist/collection/components/button/index.js +1 -1
- package/dist/collection/components/calendar/index.js +2 -2
- package/dist/collection/components/checkbox/index.js +2 -2
- package/dist/collection/components/color/index.js +1 -1
- package/dist/collection/components/confirm/index.js +1 -1
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/dialog/demo/index.js +1 -1
- package/dist/collection/components/dialog/index.js +1 -1
- package/dist/collection/components/display/demo/index.js +10 -10
- package/dist/collection/components/display/demo/json/index.js +1 -1
- package/dist/collection/components/display/index.js +3 -3
- package/dist/collection/components/display/json/index.js +1 -1
- package/dist/collection/components/display/json/object/index.js +2 -2
- package/dist/collection/components/display/json/object/key/index.js +1 -1
- package/dist/collection/components/display/json/primitive/index.js +1 -1
- package/dist/collection/components/filter/field/index.js +1 -1
- package/dist/collection/components/filter/index.js +3 -3
- package/dist/collection/components/filter/input/index.js +1 -1
- package/dist/collection/components/filter/select/index.js +1 -1
- package/dist/collection/components/filter/toggle/index.js +1 -1
- package/dist/collection/components/form/demo/all/index.js +2 -2
- package/dist/collection/components/form/demo/card/index.js +1 -1
- package/dist/collection/components/form/demo/controlled/index.js +1 -1
- package/dist/collection/components/form/demo/date/index.js +1 -1
- package/dist/collection/components/form/demo/date-range/index.js +1 -1
- package/dist/collection/components/form/demo/index.js +1 -1
- package/dist/collection/components/form/demo/login/index.js +1 -1
- package/dist/collection/components/form/demo/pet/index.js +2 -2
- package/dist/collection/components/form/demo/prices/index.js +1 -1
- package/dist/collection/components/form/demo/schedule/index.js +1 -1
- package/dist/collection/components/form/demo/transparent/index.js +1 -1
- package/dist/collection/components/form/demo/typed/index.js +1 -1
- package/dist/collection/components/form/index.js +1 -1
- package/dist/collection/components/icon/demo/index.js +1 -1
- package/dist/collection/components/icon/index.js +1 -1
- package/dist/collection/components/input/checkbox/demo/index.js +1 -1
- package/dist/collection/components/input/checkbox/index.js +1 -1
- package/dist/collection/components/input/clear/index.js +1 -1
- package/dist/collection/components/input/color/demo/index.js +1 -1
- package/dist/collection/components/input/color/index.js +2 -2
- package/dist/collection/components/input/date/index.js +3 -3
- package/dist/collection/components/input/date/range/index.js +2 -2
- package/dist/collection/components/input/date/time/index.js +5 -5
- package/dist/collection/components/input/demo/index.js +4 -4
- package/dist/collection/components/input/demo/price/index.js +1 -1
- package/dist/collection/components/input/demo/standard/index.js +1 -1
- package/dist/collection/components/input/edit/index.js +1 -1
- package/dist/collection/components/input/file/index.js +1 -1
- package/dist/collection/components/input/index.js +2 -2
- package/dist/collection/components/input/month/index.js +2 -2
- package/dist/collection/components/input/radio/index.js +1 -1
- package/dist/collection/components/input/radio/item/index.js +1 -1
- package/dist/collection/components/input/range/demo/index.js +1 -1
- package/dist/collection/components/input/range/index.js +4 -4
- package/dist/collection/components/input/reset/index.js +1 -1
- package/dist/collection/components/input/select/index.js +3 -3
- package/dist/collection/components/input/submit/index.js +1 -1
- package/dist/collection/components/item/index.js +1 -1
- package/dist/collection/components/label/index.js +2 -2
- package/dist/collection/components/lazy/index.js +1 -1
- package/dist/collection/components/load-more/index.js +1 -1
- package/dist/collection/components/modal/index.js +1 -1
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notifier/index.js +1 -1
- package/dist/collection/components/spinner/index.js +2 -2
- package/dist/collection/components/submit/index.js +1 -1
- package/dist/collection/components/summary/index.js +1 -1
- package/dist/collection/components/table/body/index.js +1 -1
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/demo/colspan/index.js +1 -1
- package/dist/collection/components/table/demo/filler-row/index.js +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +5 -5
- package/dist/collection/components/table/demo/group/index.js +1 -1
- package/dist/collection/components/table/demo/index.js +1 -1
- package/dist/collection/components/table/demo/nested/index.js +1 -1
- package/dist/collection/components/table/demo/nested/inner/index.js +1 -1
- package/dist/collection/components/table/demo/simple/simple.js +1 -1
- package/dist/collection/components/table/expandable/cell/index.js +1 -1
- package/dist/collection/components/table/expandable/row/index.js +1 -1
- package/dist/collection/components/table/filler-row/index.js +1 -1
- package/dist/collection/components/table/foot/index.js +1 -1
- package/dist/collection/components/table/group/index.js +1 -1
- package/dist/collection/components/table/head/index.js +1 -1
- package/dist/collection/components/table/index.js +1 -1
- package/dist/collection/components/table/row/index.js +1 -1
- package/dist/collection/components/tabs/demo/index.js +1 -1
- package/dist/collection/components/tabs/index.js +1 -1
- package/dist/collection/components/tabs/tab/index.js +1 -1
- package/dist/collection/components/theme/color/index.js +1 -1
- package/dist/collection/components/theme/demo/index.js +1 -1
- package/dist/collection/components/theme/guide/index.js +8 -8
- package/dist/collection/components/theme/picker/index.js +2 -2
- package/dist/collection/components/toggle-switch/demo/index.js +1 -1
- package/dist/collection/components/toggle-switch/index.js +1 -1
- package/dist/collection/components/trigger/index.js +1 -1
- package/dist/collection/components/trigger/sink/index.js +1 -1
- package/dist/collection/components/trigger/source/index.js +1 -1
- package/dist/components/{p-cd4ae22e.js → p-00e29131.js} +4 -4
- package/dist/components/{p-cd4ae22e.js.map → p-00e29131.js.map} +1 -1
- package/dist/components/{p-3a1f5e8b.js → p-03be2708.js} +10 -10
- package/dist/components/{p-3a1f5e8b.js.map → p-03be2708.js.map} +1 -1
- package/dist/components/{p-5dd30cc0.js → p-03c91070.js} +2 -2
- package/dist/components/{p-5dd30cc0.js.map → p-03c91070.js.map} +1 -1
- package/dist/components/{p-11cc925c.js → p-065cbcf5.js} +8 -8
- package/dist/components/{p-11cc925c.js.map → p-065cbcf5.js.map} +1 -1
- package/dist/components/{p-e2ff40ce.js → p-07d9e68a.js} +2 -2
- package/dist/components/{p-e2ff40ce.js.map → p-07d9e68a.js.map} +1 -1
- package/dist/components/{p-e569751f.js → p-0b8373df.js} +2 -2
- package/dist/components/{p-e569751f.js.map → p-0b8373df.js.map} +1 -1
- package/dist/components/{p-49deb5fc.js → p-115371b7.js} +3 -3
- package/dist/components/{p-49deb5fc.js.map → p-115371b7.js.map} +1 -1
- package/dist/components/p-14ea6e65.js +244 -0
- package/dist/components/{p-a0df7a64.js.map → p-14ea6e65.js.map} +1 -1
- package/dist/components/{p-f21f43d1.js → p-18451fa9.js} +3 -3
- package/dist/components/{p-f21f43d1.js.map → p-18451fa9.js.map} +1 -1
- package/dist/components/{p-a74a5a51.js → p-18e35dd4.js} +3 -3
- package/dist/components/{p-a74a5a51.js.map → p-18e35dd4.js.map} +1 -1
- package/dist/components/p-1d36d047.js +123 -0
- package/dist/components/{p-a95bab7d.js.map → p-1d36d047.js.map} +1 -1
- package/dist/components/{p-95439799.js → p-1e8fa07d.js} +5 -5
- package/dist/components/{p-95439799.js.map → p-1e8fa07d.js.map} +1 -1
- package/dist/components/{p-940e5b8e.js → p-1eab7079.js} +4 -4
- package/dist/components/{p-940e5b8e.js.map → p-1eab7079.js.map} +1 -1
- package/dist/components/{p-d0935bef.js → p-28dac8ac.js} +3 -3
- package/dist/components/{p-d0935bef.js.map → p-28dac8ac.js.map} +1 -1
- package/dist/components/{p-04799383.js → p-2bbb8f53.js} +2 -2
- package/dist/components/{p-04799383.js.map → p-2bbb8f53.js.map} +1 -1
- package/dist/components/{p-97254dfe.js → p-2c9a8b37.js} +11 -11
- package/dist/components/{p-97254dfe.js.map → p-2c9a8b37.js.map} +1 -1
- package/dist/components/{p-8f6b490b.js → p-2f17a8e0.js} +14 -14
- package/dist/components/{p-8f6b490b.js.map → p-2f17a8e0.js.map} +1 -1
- package/dist/components/{p-a91db04a.js → p-3024abfc.js} +4 -4
- package/dist/components/{p-a91db04a.js.map → p-3024abfc.js.map} +1 -1
- package/dist/components/{p-d209231e.js → p-347162c4.js} +10 -10
- package/dist/components/{p-d209231e.js.map → p-347162c4.js.map} +1 -1
- package/dist/components/{p-4d18f37f.js → p-35d30b5f.js} +14 -14
- package/dist/components/{p-4d18f37f.js.map → p-35d30b5f.js.map} +1 -1
- package/dist/components/{p-0f3b692b.js → p-3609c2f0.js} +13 -13
- package/dist/components/{p-0f3b692b.js.map → p-3609c2f0.js.map} +1 -1
- package/dist/components/{p-9bb1e20b.js → p-382b5857.js} +6 -6
- package/dist/components/{p-9bb1e20b.js.map → p-382b5857.js.map} +1 -1
- package/dist/components/{p-67370f30.js → p-38ec49fa.js} +3 -3
- package/dist/components/{p-67370f30.js.map → p-38ec49fa.js.map} +1 -1
- package/dist/components/{p-dfb0153c.js → p-3989ef69.js} +3 -3
- package/dist/components/{p-dfb0153c.js.map → p-3989ef69.js.map} +1 -1
- package/dist/components/{p-948e9305.js → p-3b06b8a0.js} +27 -27
- package/dist/components/{p-948e9305.js.map → p-3b06b8a0.js.map} +1 -1
- package/dist/components/{p-33cdc807.js → p-3b26fe6c.js} +5 -5
- package/dist/components/{p-33cdc807.js.map → p-3b26fe6c.js.map} +1 -1
- package/dist/components/{p-33f636a1.js → p-3f7a437a.js} +15 -15
- package/dist/components/{p-33f636a1.js.map → p-3f7a437a.js.map} +1 -1
- package/dist/components/{p-50f2b79d.js → p-4139620f.js} +14 -14
- package/dist/components/{p-50f2b79d.js.map → p-4139620f.js.map} +1 -1
- package/dist/components/{p-2de92429.js → p-49837ba2.js} +2 -2
- package/dist/components/{p-2de92429.js.map → p-49837ba2.js.map} +1 -1
- package/dist/components/{p-f0e08ba3.js → p-4fbdcaa4.js} +4 -4
- package/dist/components/{p-f0e08ba3.js.map → p-4fbdcaa4.js.map} +1 -1
- package/dist/components/{p-18ba7524.js → p-5083f036.js} +2 -2
- package/dist/components/{p-18ba7524.js.map → p-5083f036.js.map} +1 -1
- package/dist/components/{p-eba2af2b.js → p-50847f24.js} +13 -13
- package/dist/components/{p-eba2af2b.js.map → p-50847f24.js.map} +1 -1
- package/dist/components/{p-e91292f2.js → p-52ba5546.js} +5 -5
- package/dist/components/{p-e91292f2.js.map → p-52ba5546.js.map} +1 -1
- package/dist/components/{p-b8107946.js → p-565f1d48.js} +7 -7
- package/dist/components/{p-b8107946.js.map → p-565f1d48.js.map} +1 -1
- package/dist/components/{p-8ac400d5.js → p-56fc01bf.js} +5 -5
- package/dist/components/{p-8ac400d5.js.map → p-56fc01bf.js.map} +1 -1
- package/dist/components/{p-37363a06.js → p-5bb38e6d.js} +8 -8
- package/dist/components/{p-37363a06.js.map → p-5bb38e6d.js.map} +1 -1
- package/dist/components/{p-21601376.js → p-5bf78c75.js} +2 -2
- package/dist/components/{p-21601376.js.map → p-5bf78c75.js.map} +1 -1
- package/dist/components/{p-cf692cc2.js → p-5e242cbd.js} +3 -3
- package/dist/components/{p-cf692cc2.js.map → p-5e242cbd.js.map} +1 -1
- package/dist/components/{p-f4c50262.js → p-627c3fc7.js} +8 -8
- package/dist/components/{p-f4c50262.js.map → p-627c3fc7.js.map} +1 -1
- package/dist/components/{p-2683f275.js → p-6396cebd.js} +12 -12
- package/dist/components/{p-2683f275.js.map → p-6396cebd.js.map} +1 -1
- package/dist/components/{p-065742a9.js → p-68c91da3.js} +4 -4
- package/dist/components/{p-065742a9.js.map → p-68c91da3.js.map} +1 -1
- package/dist/components/{p-9f71d26f.js → p-72b6a817.js} +5 -5
- package/dist/components/{p-9f71d26f.js.map → p-72b6a817.js.map} +1 -1
- package/dist/components/{p-5e4e6b48.js → p-7b0de261.js} +6 -6
- package/dist/components/{p-5e4e6b48.js.map → p-7b0de261.js.map} +1 -1
- package/dist/components/{p-10e9b56f.js → p-7b9c60c5.js} +16 -16
- package/dist/components/{p-10e9b56f.js.map → p-7b9c60c5.js.map} +1 -1
- package/dist/components/{p-d20010f3.js → p-840a2e6c.js} +32 -32
- package/dist/components/{p-d20010f3.js.map → p-840a2e6c.js.map} +1 -1
- package/dist/components/{p-1d50e1c3.js → p-8a0d18a0.js} +15 -15
- package/dist/components/{p-1d50e1c3.js.map → p-8a0d18a0.js.map} +1 -1
- package/dist/components/{p-f0f3ed83.js → p-8a92424a.js} +37 -37
- package/dist/components/{p-f0f3ed83.js.map → p-8a92424a.js.map} +1 -1
- package/dist/components/{p-7995e164.js → p-8c0ab6b7.js} +15 -15
- package/dist/components/{p-7995e164.js.map → p-8c0ab6b7.js.map} +1 -1
- package/dist/components/{p-8309d8d7.js → p-8dedb4ea.js} +7 -7
- package/dist/components/{p-8309d8d7.js.map → p-8dedb4ea.js.map} +1 -1
- package/dist/components/{p-a0930b47.js → p-94091007.js} +6 -6
- package/dist/components/{p-a0930b47.js.map → p-94091007.js.map} +1 -1
- package/dist/components/p-97b63ea3.js +176 -0
- package/dist/components/{p-42fba537.js.map → p-97b63ea3.js.map} +1 -1
- package/dist/components/{p-28a3024e.js → p-98440131.js} +2 -2
- package/dist/components/{p-28a3024e.js.map → p-98440131.js.map} +1 -1
- package/dist/components/{p-8ce2b17b.js → p-9bc7b378.js} +15 -15
- package/dist/components/{p-8ce2b17b.js.map → p-9bc7b378.js.map} +1 -1
- package/dist/components/{p-76b9e403.js → p-9d5f7dde.js} +15 -15
- package/dist/components/{p-76b9e403.js.map → p-9d5f7dde.js.map} +1 -1
- package/dist/components/{p-8b2f08c5.js → p-9e3806ff.js} +7 -7
- package/dist/components/{p-8b2f08c5.js.map → p-9e3806ff.js.map} +1 -1
- package/dist/components/{p-e6eca6ea.js → p-a09be6d8.js} +2 -2
- package/dist/components/{p-e6eca6ea.js.map → p-a09be6d8.js.map} +1 -1
- package/dist/components/{p-6ce1475e.js → p-a50f622f.js} +5 -5
- package/dist/components/{p-6ce1475e.js.map → p-a50f622f.js.map} +1 -1
- package/dist/components/{p-182310f5.js → p-a57e7345.js} +7 -7
- package/dist/components/{p-182310f5.js.map → p-a57e7345.js.map} +1 -1
- package/dist/components/{p-125e9845.js → p-a765eaaa.js} +5 -5
- package/dist/components/{p-125e9845.js.map → p-a765eaaa.js.map} +1 -1
- package/dist/components/{p-a9bd3ecf.js → p-a966d505.js} +16 -16
- package/dist/components/{p-a9bd3ecf.js.map → p-a966d505.js.map} +1 -1
- package/dist/components/{p-9f7e55ba.js → p-b121c0da.js} +2 -2
- package/dist/components/{p-9f7e55ba.js.map → p-b121c0da.js.map} +1 -1
- package/dist/components/{p-ff99dcde.js → p-b235b5aa.js} +5 -5
- package/dist/components/{p-ff99dcde.js.map → p-b235b5aa.js.map} +1 -1
- package/dist/components/{p-3062590d.js → p-b3cfa9a5.js} +13 -13
- package/dist/components/{p-3062590d.js.map → p-b3cfa9a5.js.map} +1 -1
- package/dist/components/{p-b0806e7f.js → p-b5f48ead.js} +28 -28
- package/dist/components/{p-b0806e7f.js.map → p-b5f48ead.js.map} +1 -1
- package/dist/components/{p-a6abef9e.js → p-b74838fd.js} +2 -2
- package/dist/components/{p-a6abef9e.js.map → p-b74838fd.js.map} +1 -1
- package/dist/components/p-ba16f7d3.js +45 -0
- package/dist/components/{p-026d5067.js.map → p-ba16f7d3.js.map} +1 -1
- package/dist/components/{p-3217c7b5.js → p-ba76192d.js} +3 -3
- package/dist/components/{p-3217c7b5.js.map → p-ba76192d.js.map} +1 -1
- package/dist/components/p-bbc6eae6.js +175 -0
- package/dist/components/{p-f5758759.js.map → p-bbc6eae6.js.map} +1 -1
- package/dist/components/{p-77aa479d.js → p-c131480d.js} +4 -4
- package/dist/components/{p-77aa479d.js.map → p-c131480d.js.map} +1 -1
- package/dist/components/{p-559c35a3.js → p-c31cce0c.js} +14 -14
- package/dist/components/{p-559c35a3.js.map → p-c31cce0c.js.map} +1 -1
- package/dist/components/{p-b1d28f3f.js → p-c3d52c12.js} +7 -7
- package/dist/components/{p-b1d28f3f.js.map → p-c3d52c12.js.map} +1 -1
- package/dist/components/{p-8677ee6e.js → p-c5f249a3.js} +14 -14
- package/dist/components/{p-8677ee6e.js.map → p-c5f249a3.js.map} +1 -1
- package/dist/components/{p-675c3d3e.js → p-c9619231.js} +12 -12
- package/dist/components/{p-675c3d3e.js.map → p-c9619231.js.map} +1 -1
- package/dist/components/{p-0eacf5f4.js → p-c98922f4.js} +2 -2
- package/dist/components/{p-0eacf5f4.js.map → p-c98922f4.js.map} +1 -1
- package/dist/components/{p-1f5357e1.js → p-ca85bc1d.js} +2 -2
- package/dist/components/{p-1f5357e1.js.map → p-ca85bc1d.js.map} +1 -1
- package/dist/components/{p-2498d762.js → p-cbf3c133.js} +45 -45
- package/dist/components/{p-2498d762.js.map → p-cbf3c133.js.map} +1 -1
- package/dist/components/{p-0fb1eac0.js → p-cef759f2.js} +5 -5
- package/dist/components/{p-0fb1eac0.js.map → p-cef759f2.js.map} +1 -1
- package/dist/components/{p-ec207ccc.js → p-d0953a9e.js} +4 -4
- package/dist/components/{p-ec207ccc.js.map → p-d0953a9e.js.map} +1 -1
- package/dist/components/{p-44f424f6.js → p-d1462fc3.js} +3 -3
- package/dist/components/{p-44f424f6.js.map → p-d1462fc3.js.map} +1 -1
- package/dist/components/{p-fd158b77.js → p-d1dcafa9.js} +4 -4
- package/dist/components/{p-fd158b77.js.map → p-d1dcafa9.js.map} +1 -1
- package/dist/components/{p-51cb1946.js → p-d3c8be66.js} +5 -5
- package/dist/components/{p-51cb1946.js.map → p-d3c8be66.js.map} +1 -1
- package/dist/components/{p-fd1daa5a.js → p-d5fe813a.js} +2 -2
- package/dist/components/{p-fd1daa5a.js.map → p-d5fe813a.js.map} +1 -1
- package/dist/components/{p-f3e69915.js → p-d693d5de.js} +9 -9
- package/dist/components/{p-f3e69915.js.map → p-d693d5de.js.map} +1 -1
- package/dist/components/{p-5a0e167d.js → p-d81a3a84.js} +3 -3
- package/dist/components/{p-5a0e167d.js.map → p-d81a3a84.js.map} +1 -1
- package/dist/components/{p-d9989605.js → p-d8bd7cc0.js} +2 -2
- package/dist/components/{p-d9989605.js.map → p-d8bd7cc0.js.map} +1 -1
- package/dist/components/{p-c8f13bb3.js → p-d969fa64.js} +2 -2
- package/dist/components/{p-c8f13bb3.js.map → p-d969fa64.js.map} +1 -1
- package/dist/components/{p-90d81e79.js → p-da4c10d0.js} +2 -2
- package/dist/components/{p-90d81e79.js.map → p-da4c10d0.js.map} +1 -1
- package/dist/components/{p-aac94573.js → p-dd3b21a0.js} +10 -10
- package/dist/components/{p-aac94573.js.map → p-dd3b21a0.js.map} +1 -1
- package/dist/components/p-e4b92c84.js +73 -0
- package/dist/components/{p-6140aafa.js.map → p-e4b92c84.js.map} +1 -1
- package/dist/components/{p-a4614623.js → p-e5627b06.js} +4 -4
- package/dist/components/{p-a4614623.js.map → p-e5627b06.js.map} +1 -1
- package/dist/components/{p-5bee4bdc.js → p-e9e71692.js} +5 -5
- package/dist/components/{p-5bee4bdc.js.map → p-e9e71692.js.map} +1 -1
- package/dist/components/{p-e87aacc3.js → p-ea4cee14.js} +15 -15
- package/dist/components/{p-e87aacc3.js.map → p-ea4cee14.js.map} +1 -1
- package/dist/components/{p-758edf83.js → p-ec3b9004.js} +4 -4
- package/dist/components/{p-758edf83.js.map → p-ec3b9004.js.map} +1 -1
- package/dist/components/{p-16c06f14.js → p-ed1e7da4.js} +3 -3
- package/dist/components/{p-16c06f14.js.map → p-ed1e7da4.js.map} +1 -1
- package/dist/components/{p-270e635e.js → p-f2969db7.js} +2 -2
- package/dist/components/{p-270e635e.js.map → p-f2969db7.js.map} +1 -1
- package/dist/components/{p-33087585.js → p-fec4d798.js} +2 -2
- package/dist/components/{p-33087585.js.map → p-fec4d798.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +97 -97
- package/dist/components/smoothly-app-demo.js.map +1 -1
- package/dist/components/smoothly-app-room.js +1 -1
- package/dist/components/smoothly-app.js +1 -1
- package/dist/components/smoothly-back-to-top.js +1 -1
- package/dist/components/smoothly-burger.js +1 -1
- package/dist/components/smoothly-button-confirm.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-button.js +1 -1
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-checkbox.js +3 -3
- package/dist/components/smoothly-color.js +1 -1
- package/dist/components/smoothly-country.js +1 -1
- package/dist/components/smoothly-dialog-demo.js +1 -1
- package/dist/components/smoothly-dialog.js +1 -1
- package/dist/components/smoothly-display-demo-json.js +1 -1
- package/dist/components/smoothly-display-demo.js +1 -1
- package/dist/components/smoothly-display-json-object.js +1 -1
- package/dist/components/smoothly-display-json-primitive.js +1 -1
- package/dist/components/smoothly-display-json-record-key.js +1 -1
- package/dist/components/smoothly-display-json.js +1 -1
- package/dist/components/smoothly-display.js +1 -1
- package/dist/components/smoothly-filter-field.js +1 -1
- package/dist/components/smoothly-filter-input.js +1 -1
- package/dist/components/smoothly-filter-select.js +1 -1
- package/dist/components/smoothly-filter-toggle.js +1 -1
- package/dist/components/smoothly-filter.js +1 -1
- package/dist/components/smoothly-form-demo-all.js +1 -1
- package/dist/components/smoothly-form-demo-card.js +1 -1
- package/dist/components/smoothly-form-demo-controlled.js +1 -1
- package/dist/components/smoothly-form-demo-date-range.js +1 -1
- package/dist/components/smoothly-form-demo-date.js +1 -1
- package/dist/components/smoothly-form-demo-login.js +1 -1
- package/dist/components/smoothly-form-demo-pet.js +1 -1
- package/dist/components/smoothly-form-demo-prices.js +1 -1
- package/dist/components/smoothly-form-demo-schedule.js +1 -1
- package/dist/components/smoothly-form-demo-transparent.js +1 -1
- package/dist/components/smoothly-form-demo-typed.js +1 -1
- package/dist/components/smoothly-form-demo.js +1 -1
- package/dist/components/smoothly-form.js +1 -1
- package/dist/components/smoothly-icon-demo.js +1 -1
- package/dist/components/smoothly-icon.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +29 -29
- package/dist/components/smoothly-input-checkbox.js +1 -1
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-color-demo.js +1 -1
- package/dist/components/smoothly-input-color.js +1 -1
- package/dist/components/smoothly-input-date-range.js +1 -1
- package/dist/components/smoothly-input-date-time.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-edit.js +1 -1
- package/dist/components/smoothly-input-file.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-price-demo.js +1 -1
- package/dist/components/smoothly-input-radio-item.js +1 -1
- package/dist/components/smoothly-input-radio.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-range.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-input-submit.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-item.js +1 -1
- package/dist/components/smoothly-label.js +1 -1
- package/dist/components/smoothly-lazy.js +1 -1
- package/dist/components/smoothly-load-more.js +1 -1
- package/dist/components/smoothly-modal.js +1 -1
- package/dist/components/smoothly-notification.js +1 -1
- package/dist/components/smoothly-notifier.js +1 -1
- package/dist/components/smoothly-spinner.js +1 -1
- package/dist/components/smoothly-submit.js +1 -1
- package/dist/components/smoothly-summary.js +1 -1
- package/dist/components/smoothly-tab.js +1 -1
- package/dist/components/smoothly-table-body.js +1 -1
- package/dist/components/smoothly-table-cell.js +1 -1
- package/dist/components/smoothly-table-demo-colspan.js +1 -1
- package/dist/components/smoothly-table-demo-filler-row.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo-group.js +1 -1
- package/dist/components/smoothly-table-demo-nested-inner.js +1 -1
- package/dist/components/smoothly-table-demo-nested.js +1 -1
- package/dist/components/smoothly-table-demo-simple.js +1 -1
- package/dist/components/smoothly-table-demo.js +1 -1
- package/dist/components/smoothly-table-expandable-cell.js +1 -1
- package/dist/components/smoothly-table-expandable-row.js +1 -1
- package/dist/components/smoothly-table-filler-row.js +1 -1
- package/dist/components/smoothly-table-foot.js +1 -1
- package/dist/components/smoothly-table-head.js +1 -1
- package/dist/components/smoothly-table-row-group.js +1 -1
- package/dist/components/smoothly-table-row.js +1 -1
- package/dist/components/smoothly-table.js +1 -1
- package/dist/components/smoothly-tabs-demo.js +1 -1
- package/dist/components/smoothly-tabs.js +1 -1
- package/dist/components/smoothly-theme-color.js +1 -1
- package/dist/components/smoothly-theme-colors.js +1 -1
- package/dist/components/smoothly-theme-demo.js +1 -1
- package/dist/components/smoothly-theme-guide.js +1 -1
- package/dist/components/smoothly-theme-picker.js +1 -1
- package/dist/components/smoothly-toggle-switch-demo.js +1 -1
- package/dist/components/smoothly-toggle-switch.js +1 -1
- package/dist/components/smoothly-trigger-sink.js +1 -1
- package/dist/components/smoothly-trigger-source.js +1 -1
- package/dist/components/smoothly-trigger.js +1 -1
- package/dist/esm/smoothly-app_99.entry.js +147 -147
- package/dist/esm/smoothly-app_99.entry.js.map +1 -1
- package/dist/esm/smoothly-checkbox.entry.js +2 -2
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +1 -1
- package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
- package/dist/esm/smoothly-submit.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/smoothly/{p-ad856966.entry.js → p-0e2084ab.entry.js} +2 -2
- package/dist/smoothly/p-2f754778.entry.js +2 -0
- package/dist/smoothly/p-2f754778.entry.js.map +1 -0
- package/dist/smoothly/{p-2f60a07e.entry.js → p-451b0f1f.entry.js} +2 -2
- package/dist/smoothly/p-542e6f79.entry.js +2 -0
- package/dist/smoothly/{p-cdb8913e.entry.js → p-87b8d337.entry.js} +2 -2
- package/dist/smoothly/{p-018e3f3c.entry.js → p-884217fa.entry.js} +2 -2
- package/dist/smoothly/{p-e513fb66.entry.js → p-d4de2329.entry.js} +2 -2
- package/dist/smoothly/{p-519dd2b0.entry.js → p-d52851a6.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-026d5067.js +0 -45
- package/dist/components/p-42fba537.js +0 -176
- package/dist/components/p-6140aafa.js +0 -73
- package/dist/components/p-a0df7a64.js +0 -244
- package/dist/components/p-a95bab7d.js +0 -123
- package/dist/components/p-f5758759.js +0 -175
- package/dist/smoothly/p-8deb6fb9.entry.js +0 -2
- package/dist/smoothly/p-8deb6fb9.entry.js.map +0 -1
- package/dist/smoothly/p-ec1809c5.entry.js +0 -2
- /package/dist/smoothly/{p-ad856966.entry.js.map → p-0e2084ab.entry.js.map} +0 -0
- /package/dist/smoothly/{p-2f60a07e.entry.js.map → p-451b0f1f.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ec1809c5.entry.js.map → p-542e6f79.entry.js.map} +0 -0
- /package/dist/smoothly/{p-cdb8913e.entry.js.map → p-87b8d337.entry.js.map} +0 -0
- /package/dist/smoothly/{p-018e3f3c.entry.js.map → p-884217fa.entry.js.map} +0 -0
- /package/dist/smoothly/{p-e513fb66.entry.js.map → p-d4de2329.entry.js.map} +0 -0
- /package/dist/smoothly/{p-519dd2b0.entry.js.map → p-d52851a6.entry.js.map} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,c as o,H as s,g as i,F as a}from"./p-ad674a4e.js";import{a as n,T as l,C as r,i as c,r as h,D as d,f as m,R as u,M as y,I as b,F as f}from"./p-cdac3cf4.js";import{B as p,S as g}from"./p-b5e2b527.js";import{T as k,L as v,a as w,D as x,c as S,d as C,C as z,o as j,s as I,b as _,e as T,n as L,A as O}from"./p-34d144e8.js";import{N as A}from"./p-ef01331e.js";import{f as M}from"./p-2257be8c.js";import"./p-ef377b79.js";function E(t){return new D(t??"any")}class D extends k{class="any";is=t=>t!=undefined}function $(){const t=navigator.language;return v.is(t)?t:w.is(t)?v.toLocale(t):undefined}const R='smoothly-app{--header-height:5rem;display:block}smoothly-app>smoothly-notifier>main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}header:has(smoothly-burger[visible])>nav>ul smoothly-app-room{width:100%;height:4em}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 1px 0 0 rgb(var(--smoothly-color-shade))}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:not([label])>smoothly-notifier>header>h1{display:none}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{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;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;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:fit-content;max-width:100%;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;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}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app:not([menu-open])>smoothly-notifier>header>nav{display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const P=R;const F=class{constructor(e){t(this,e);this.rooms={};this.label=undefined;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 e;(e=this.rooms[t])===null||e===void 0?void 0:e.element.setSelected(true)}async selectedChanged(){var t;Object.values(this.rooms).forEach((t=>{var e;return(t===null||t===void 0?void 0:t.element.path)!=((e=this.selected)===null||e===void 0?void 0:e.element.path)&&(t===null||t===void 0?void 0:t.element.setSelected(false))}));const e=await((t=this.selected)===null||t===void 0?void 0:t.element.getContent());requestAnimationFrame((()=>{if(this.mainElement&&e)this.mainElement.replaceChildren(e)}))}burgerVisibilityHandler(t){this.burgerVisibility=t.detail}burgerStatusHandler(t){t.stopPropagation();this.menuOpen=t.detail}async locationChangeHandler(t){var e;(e=this.rooms[t.state.smoothlyPath])===null||e===void 0?void 0:e.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 e=new URL(window.location.pathname==t?window.location.href:window.location.origin);e.pathname=t;window.history.pushState({smoothlyPath:t},"",e.href)}}roomLoadedHandler(t){const e=this.rooms[t.target.path.toString()]={element:t.target};if(e.element.selected){this.selected=e;window.history.replaceState({smoothlyPath:e.element.path},"",window.location.href)}}clickHandler(t){if(this.burgerVisibility&&!t.composedPath().some((t=>t==this.burgerElement||t==this.navElement)))this.menuOpen=false}render(){return e("smoothly-notifier",{key:"ca8596edab7ca03d2790ac426dae3ed2b0a016e5"},e("header",{key:"d1d3c3b9aadde6e8ac48f6e2a0ed1dbda13efaca",color:this.color},e("h1",{key:"299cec593915416e4cbb909a9184863a5d873203"},e("a",{key:"97c7829f4faf239c853eaf96355ebc40871e9827",href:""},this.label)),e("slot",{key:"199d31b149daaeb1cd9b5323dba192dda646ecb8",name:"header"}),e("nav",{key:"a4b4229f4a441c44c11fc191f3148c28bb0bfb77",ref:t=>this.navElement=t},e("ul",{key:"83d549969e763e30e1b9b7f93319588637dea8a8"},e("div",{key:"2e668a0eca12985f4c134ba47b04eae2888dd487",class:"nav-start-container"},e("slot",{key:"2b38080d9a134492fa81c2d902331fb9c7bb6fbb",name:"nav-start"})),e("slot",{key:"7a4264888094eeafebff0f1b608a440f721c7d80"}),e("div",{key:"7db0a3a05fdb6e8c8c22cafb01aeb1d7099a6f8b",class:"nav-end-container"},e("slot",{key:"7edaccd0522fdece150fd91d5dd8bfa8f7399b71",name:"nav-end"})))),e("smoothly-burger",{key:"5228e136cd1af7109fcc6556a9745c3db170a4c6",ref:t=>this.burgerElement=t,open:this.menuOpen,onSmoothlyNavStatus:t=>this.burgerStatusHandler(t),onSmoothlyVisibleStatus:t=>this.burgerVisibilityHandler(t)})),e("main",{key:"13e58905f69f051662d77529c7f5bedc7fb82572",ref:t=>this.mainElement=t}))}static get watchers(){return{selected:["selectedChanged"]}}};F.style=P;const H=class{constructor(e){t(this,e);this.baseUrl=undefined}render(){return e("smoothly-app",{key:"aa798117a543b094b87cd4f794e41c2c62eedcf5",color:"dark",label:"Smoothly Demo",home:"/root",ref:t=>this.app=t},e("smoothly-trigger",{key:"8576545a5f1408fe488c80ca5a0856650d3d5b49",slot:"nav-start",type:"link",name:"logout"},e("smoothly-icon",{key:"1a9947b787c40e5d5b12c8477f1c4ffe393e0474",toolTip:"Log out",name:"log-out",size:"medium"})),e("smoothly-app-room",{key:"9653a86cd2f346ffc301960432f8eeaf690e0e70",path:"/root",label:"root"},e("smoothly-theme-demo",{key:"fd749cb147c01fb958ed096d077a029de1f26697"})),e("smoothly-app-room",{key:"727ba15cef2a69ab89c28f552d44990a6768dae6",path:"/links",label:"Links"},e("smoothly-input",{key:"44b3a95f3ef5c88763f4615198361660756066c6",type:"text"},"Default"),e("div",{key:"ec9caa80e9960bcaa73944459f6f04bd5293c67d",style:{padding:"1em",maxWidth:"12em"}},e("smoothly-button",{key:"1763ca643449adf56a5709b716adb8f2a9af898c",fill:"solid",color:"danger",link:"https://google.com"},"open"),e("smoothly-button",{key:"090a3ef85119ac1fd24e96971077d386e4b431eb",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),e("smoothly-button",{key:"075b6d63e37e741003b83a4ed5a0852f5bdb32ea",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"67a4e3426af4c0195af3958534ebe696e79d7f64",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),e("smoothly-button",{key:"469b300005825ea47e9ff2b6dd1546c1f240d320",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),e("smoothly-app-room",{key:"fa597eed63894a2b79230662218b4b4bb0a4123e",path:"/form",label:"Form"},e("smoothly-form-demo",{key:"c3c3fc18571c6c7749ebe336c101b3c6958c6ce5"})),e("smoothly-app-room",{key:"e74f975d2821661b1252a8d39abce539474b91d6",path:"/input",label:"Input"},e("smoothly-input-demo",{key:"2622b3979883e8b22ee24549e088235c4def37f7"})),e("smoothly-app-room",{key:"281e375aa7899aca4a72b1f28e5c35dba5afe47b",path:"/button",label:"Button"},e("smoothly-button-demo",{key:"1aa500d67a2db7debedcd51a1dab5540b7e76839"})),e("smoothly-app-room",{key:"52cca01be8d244ba27a9a0de84a7e9f6b38de862",path:"/dialog",label:"Dialog"},e("smoothly-dialog-demo",{key:"2ead6d7fdbccfac18eaca281324a022bb2476683"})),e("smoothly-app-room",{key:"1293f71f581304e67b7b23fd3ef7ea5b5358672a",path:"/display",label:"Display",icon:"eye-outline"},e("smoothly-display-demo",{key:"081a6770103ae7e31f862d2431932a23e3c44883"})),e("smoothly-app-room",{key:"edf9fc7b7c778e319f7072a06604962e9a887d45",path:"/table",label:"Table"},e("smoothly-table-demo",{key:"d4fd3e790dbff9761b7900611870c4de8ba3463b"})),e("smoothly-app-room",{key:"def6a10fe0cb4a2bb2c660a7a08d92f66bdefaf7",path:"/tabs",label:"Tabs",slot:"nav-end"},e("smoothly-tabs-demo",{key:"a612be377600630739c788f3e76978653b5750fd"})),e("smoothly-app-room",{key:"4b37f6e8cc32b66eed31354be28c8979e5a44872",path:"/icon",label:"Icon",content:e("smoothly-icon-demo",null),slot:"nav-end"}),e("smoothly-app-room",{key:"fc40658c71e321e7cd65fc4c0583a2799809cca3",path:"/redirect",label:"Redirect",slot:"nav-end"},e("smoothly-button",{key:"b4475ca298c2fb6598dd75c4a16a0bd47c234fa9",type:"link",link:"/input"},"To input"),e("smoothly-button",{key:"402887f2f0c5477ce46105be52197f5073a2d5c6",type:"link",link:"../button"},"To button"),e("smoothly-button",{key:"cf2d2d8c4936eecc243cf121f5d40bd94d1006f6",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),e("smoothly-button",{key:"e8354e2f81be7ec324ae734784022acdb02162cc",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"62411c9f8b6d9bb88ebef3fe531e912d2b27f97e",type:"link",link:"nested"},"To redirect nested, relative path")),e("smoothly-app-room",{key:"6b7fe4565b60a0f76c36ade149536daca1eff5b0",path:"/hidden"},e("p",{key:"c87cebb277d5463d07165e3fb7b8068dc317735e"},"hello world!")),e("smoothly-app-room",{key:"9a06e5a59ff5ff8db9b465826653f26f477ebdb2",path:"/redirect/nested"},"this is a nested room"))}};var N=class{constructor(t,e,o,s,i,a){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=t;this.name=e;this.prefix=o;this.value=s;this.suffix=i;this.modifier=a}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var Y=/[$_\p{ID_Start}]/u;var U=/[$_\u200C\u200D\p{ID_Continue}]/u;var W=".*";function B(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function V(t,e=false){const o=[];let s=0;while(s<t.length){const i=t[s];const a=function(i){if(!e)throw new TypeError(i);o.push({type:"INVALID_CHAR",index:s,value:t[s++]})};if(i==="*"){o.push({type:"ASTERISK",index:s,value:t[s++]});continue}if(i==="+"||i==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:t[s++]});continue}if(i==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:t[s++]});continue}if(i==="{"){o.push({type:"OPEN",index:s,value:t[s++]});continue}if(i==="}"){o.push({type:"CLOSE",index:s,value:t[s++]});continue}if(i===":"){let e="";let i=s+1;while(i<t.length){const o=t.substr(i,1);if(i===s+1&&Y.test(o)||i!==s+1&&U.test(o)){e+=t[i++];continue}break}if(!e){a(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:e});s=i;continue}if(i==="("){let e=1;let i="";let n=s+1;let l=false;if(t[n]==="?"){a(`Pattern cannot start with "?" at ${n}`);continue}while(n<t.length){if(!B(t[n],false)){a(`Invalid character '${t[n]}' at ${n}.`);l=true;break}if(t[n]==="\\"){i+=t[n++]+t[n++];continue}if(t[n]===")"){e--;if(e===0){n++;break}}else if(t[n]==="("){e++;if(t[n+1]!=="?"){a(`Capturing groups are not allowed at ${n}`);l=true;break}}i+=t[n++]}if(l){continue}if(e){a(`Unbalanced pattern at ${s}`);continue}if(!i){a(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:i});s=n;continue}o.push({type:"CHAR",index:s,value:t[s++]})}o.push({type:"END",index:s,value:""});return o}function G(t,e={}){const o=V(t);e.delimiter??(e.delimiter="/#?");e.prefixes??(e.prefixes="./");const s=`[^${K(e.delimiter)}]+?`;const i=[];let a=0;let n=0;let l=new Set;const r=t=>{if(n<o.length&&o[n].type===t)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const h=t=>{const e=r(t);if(e!==void 0)return e;const{type:s,index:i}=o[n];throw new TypeError(`Unexpected ${s} at ${i}, expected ${t}`)};const d=()=>{let t="";let e;while(e=r("CHAR")??r("ESCAPED_CHAR")){t+=e}return t};const m=t=>t;const u=e.encodePart||m;let y="";const b=t=>{y+=t};const f=()=>{if(!y.length){return}i.push(new N(3,"","",u(y),"",3));y=""};const p=(t,e,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!e&&!o&&c===3){b(t);return}f();if(!e&&!o){if(!t){return}i.push(new N(3,"","",u(t),"",c));return}let h;if(!o){h=s}else if(o==="*"){h=W}else{h=o}let d=2;if(h===s){d=1;h=""}else if(h===W){d=0;h=""}let m;if(e){m=e}else if(o){m=a++}if(l.has(m)){throw new TypeError(`Duplicate name '${m}'.`)}l.add(m);i.push(new N(d,m,u(t),h,u(n),c))};while(n<o.length){const t=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let i=t??"";if(e.prefixes.indexOf(i)===-1){b(i);i=""}f();let a=c();p(i,o,s,"",a);continue}const i=t??r("ESCAPED_CHAR");if(i){b(i);continue}const a=r("OPEN");if(a){const t=d();const e=r("NAME");let o=r("REGEX");if(!e&&!o){o=r("ASTERISK")}const s=d();h("CLOSE");const i=c();p(t,e,o,s,i);continue}f();h("END")}return i}function K(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Z(t){return t&&t.ignoreCase?"ui":"u"}function q(t,e,o){return J(G(t,o),e,o)}function X(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function J(t,e,o={}){o.delimiter??(o.delimiter="/#?");o.prefixes??(o.prefixes="./");o.sensitive??(o.sensitive=false);o.strict??(o.strict=false);o.end??(o.end=true);o.start??(o.start=true);o.endsWith="";let s=o.start?"^":"";for(const i of t){if(i.type===3){if(i.modifier===3){s+=K(i.value)}else{s+=`(?:${K(i.value)})${X(i.modifier)}`}continue}if(e)e.push(i.name);const t=`[^${K(o.delimiter)}]+?`;let a=i.value;if(i.type===1)a=t;else if(i.type===0)a=W;if(!i.prefix.length&&!i.suffix.length){if(i.modifier===3||i.modifier===1){s+=`(${a})${X(i.modifier)}`}else{s+=`((?:${a})${X(i.modifier)})`}continue}if(i.modifier===3||i.modifier===1){s+=`(?:${K(i.prefix)}(${a})${K(i.suffix)})`;s+=X(i.modifier);continue}s+=`(?:${K(i.prefix)}`;s+=`((?:${a})(?:`;s+=K(i.suffix);s+=K(i.prefix);s+=`(?:${a}))*)${K(i.suffix)})`;if(i.modifier===0){s+="?"}}const i=`[${K(o.endsWith)}]|$`;const a=`[${K(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${a}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${i})`}return new RegExp(s,Z(o))}if(!o.strict){s+=`(?:${a}(?=${i}))?`}let n=false;if(t.length){const e=t[t.length-1];if(e.type===3&&e.modifier===3){n=o.delimiter.indexOf(e)>-1}}if(!n){s+=`(?=${a}|${i})`}return new RegExp(s,Z(o))}var Q={delimiter:"",prefixes:"",sensitive:true,strict:true};var tt={delimiter:".",prefixes:"",sensitive:true,strict:true};var et={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function ot(t,e){if(!t.length){return false}if(t[0]==="/"){return true}if(!e){return false}if(t.length<2){return false}if((t[0]=="\\"||t[0]=="{")&&t[1]=="/"){return true}return false}function st(t,e){if(t.startsWith(e)){return t.substring(e.length,t.length)}return t}function it(t,e){if(t.endsWith(e)){return t.substr(0,t.length-e.length)}return t}function at(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 nt=["ftp","file","http","https","ws","wss"];function lt(t){if(!t){return true}for(const e of nt){if(t.test(e)){return true}}return false}function rt(t,e){t=st(t,"#");if(e||t===""){return t}const o=new URL("https://example.com");o.hash=t;return o.hash?o.hash.substring(1,o.hash.length):""}function ct(t,e){t=st(t,"?");if(e||t===""){return t}const o=new URL("https://example.com");o.search=t;return o.search?o.search.substring(1,o.search.length):""}function ht(t,e){if(e||t===""){return t}if(at(t)){return wt(t)}else{return vt(t)}}function dt(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.password=t;return o.password}function mt(t,e){if(e||t===""){return t}const o=new URL("https://example.com");o.username=t;return o.username}function ut(t,e,o){if(o||t===""){return t}if(e&&!nt.includes(e)){const o=new URL(`${e}:${t}`);return o.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 yt(t,e,o){if(ft(e)===t){t=""}if(o||t===""){return t}return xt(t)}function bt(t,e){t=it(t,":");if(e||t===""){return t}return pt(t)}function ft(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function pt(t){if(t===""){return t}if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function gt(t){if(t===""){return t}const e=new URL("https://example.com");e.username=t;return e.username}function kt(t){if(t===""){return t}const e=new URL("https://example.com");e.password=t;return e.password}function vt(t){if(t===""){return t}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t)){throw new TypeError(`Invalid hostname '${t}'`)}const e=new URL("https://example.com");e.hostname=t;return e.hostname}function wt(t){if(t===""){return t}if(/[^0-9a-fA-F[\]:]/g.test(t)){throw new TypeError(`Invalid IPv6 hostname '${t}'`)}return t.toLowerCase()}function xt(t){if(t===""){return t}if(/^[0-9]*$/.test(t)&&parseInt(t)<=65535){return t}throw new TypeError(`Invalid port '${t}'.`)}function St(t){if(t===""){return t}const e=new URL("https://example.com");e.pathname=t[0]!=="/"?"/-"+t:t;if(t[0]!=="/"){return e.pathname.substring(2,e.pathname.length)}return e.pathname}function Ct(t){if(t===""){return t}const e=new URL(`data:${t}`);return e.pathname}function zt(t){if(t===""){return t}const e=new URL("https://example.com");e.search=t;return e.search.substring(1,e.search.length)}function jt(t){if(t===""){return t}const e=new URL("https://example.com");e.hash=t;return e.hash.substring(1,e.hash.length)}var It=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=V(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 e=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){t=2;e=3}else if(this.shouldTreatAsStandardURL){t=2}this.changeState(t,e)}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,e){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,e)}changeStateWithoutSettingComponent(t,e){this.state=t;this.componentStart=this.tokenIndex+e;this.tokenIndex+=e;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,e){const o=this.safeToken(t);return o.value===e&&(o.type==="CHAR"||o.type==="ESCAPED_CHAR"||o.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!=="REGEX"&&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 e=this.safeToken(this.componentStart).index;return this.input.substring(e,t.index)}computeShouldTreatAsStandardURL(){const t={};Object.assign(t,Q);t.encodePart=pt;const e=q(this.makeComponentString(),void 0,t);this.shouldTreatAsStandardURL=lt(e)}};var _t=["protocol","username","password","hostname","port","pathname","search","hash"];var Tt="*";function Lt(t,e){if(typeof t!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(t,e);return{protocol:o.protocol.substring(0,o.protocol.length-1),username:o.username,password:o.password,hostname:o.hostname,port:o.port,pathname:o.pathname,search:o.search!==""?o.search.substring(1,o.search.length):void 0,hash:o.hash!==""?o.hash.substring(1,o.hash.length):void 0}}function Ot(t,e){if(!e){return t}return Mt(t)}function At(t,e,o){let s;if(typeof e.baseURL==="string"){try{s=new URL(e.baseURL);t.protocol=Ot(s.protocol.substring(0,s.protocol.length-1),o);t.username=Ot(s.username,o);t.password=Ot(s.password,o);t.hostname=Ot(s.hostname,o);t.port=Ot(s.port,o);t.pathname=Ot(s.pathname,o);t.search=Ot(s.search.substring(1,s.search.length),o);t.hash=Ot(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}}if(typeof e.protocol==="string"){t.protocol=bt(e.protocol,o)}if(typeof e.username==="string"){t.username=mt(e.username,o)}if(typeof e.password==="string"){t.password=dt(e.password,o)}if(typeof e.hostname==="string"){t.hostname=ht(e.hostname,o)}if(typeof e.port==="string"){t.port=yt(e.port,t.protocol,o)}if(typeof e.pathname==="string"){t.pathname=e.pathname;if(s&&!ot(t.pathname,o)){const e=s.pathname.lastIndexOf("/");if(e>=0){t.pathname=Ot(s.pathname.substring(0,e+1),o)+t.pathname}}t.pathname=ut(t.pathname,t.protocol,o)}if(typeof e.search==="string"){t.search=ct(e.search,o)}if(typeof e.hash==="string"){t.hash=rt(e.hash,o)}return t}function Mt(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function Et(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Dt(t,e){e.delimiter??(e.delimiter="/#?");e.prefixes??(e.prefixes="./");e.sensitive??(e.sensitive=false);e.strict??(e.strict=false);e.end??(e.end=true);e.start??(e.start=true);e.endsWith="";const o=".*";const s=`[^${Et(e.delimiter)}]+?`;const i=/[$_\u200C\u200D\p{ID_Continue}]/u;let a="";for(let n=0;n<t.length;++n){const l=t[n];if(l.type===3){if(l.modifier===3){a+=Mt(l.value);continue}a+=`{${Mt(l.value)}}${X(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!e.prefixes.includes(l.prefix));const h=n>0?t[n-1]:null;const d=n<t.length-1?t[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&d&&!d.prefix.length&&!d.suffix.length){if(d.type===3){const t=d.value.length>0?d.value[0]:"";c=i.test(t)}else{c=!d.hasCustomName()}}if(!c&&!l.prefix.length&&h&&h.type===3){const t=h.value[h.value.length-1];c=e.prefixes.includes(t)}if(c){a+="{"}a+=Mt(l.prefix);if(r){a+=`:${l.name}`}if(l.type===2){a+=`(${l.value})`}else if(l.type===1){if(!r){a+=`(${s})`}}else if(l.type===0){if(!r&&(!h||h.type===3||h.modifier!==3||c||l.prefix!=="")){a+="*"}else{a+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(i.test(l.suffix[0])){a+="\\"}}a+=Mt(l.suffix);if(c){a+="}"}if(l.modifier!==3){a+=X(l.modifier)}}return a}var $t=class{constructor(t={},e,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof e==="string"){s=e}else{o=e}if(typeof t==="string"){const e=new It(t);e.parse();t=e.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 o==="undefined"){o={ignoreCase:false}}const i={ignoreCase:o.ignoreCase===true};const a={pathname:Tt,protocol:Tt,username:Tt,password:Tt,hostname:Tt,port:Tt,search:Tt,hash:Tt};this.pattern=At(a,t,true);if(ft(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of _t){if(!(n in this.pattern))continue;const t={};const e=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(t,Q);t.encodePart=pt;break;case"username":Object.assign(t,Q);t.encodePart=gt;break;case"password":Object.assign(t,Q);t.encodePart=kt;break;case"hostname":Object.assign(t,tt);if(at(e)){t.encodePart=wt}else{t.encodePart=vt}break;case"port":Object.assign(t,Q);t.encodePart=xt;break;case"pathname":if(lt(this.regexp.protocol)){Object.assign(t,et,i);t.encodePart=St}else{Object.assign(t,Q,i);t.encodePart=Ct}break;case"search":Object.assign(t,Q,i);t.encodePart=zt;break;case"hash":Object.assign(t,Q,i);t.encodePart=jt;break}try{this.parts[n]=G(e,t);this.regexp[n]=J(this.parts[n],this.names[n],t);this.component_pattern[n]=Dt(this.parts[n],t)}catch(t){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}test(t={},e){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&e){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return false}try{if(typeof t==="object"){o=At(o,t,false)}else{o=At(o,Lt(t,e),false)}}catch(t){return false}let s;for(s of _t){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(t={},e){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!=="string"&&e){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof t==="undefined"){return}try{if(typeof t==="object"){o=At(o,t,false)}else{o=At(o,Lt(t,e),false)}}catch(t){return null}let s={};if(e){s.inputs=[t,e]}else{s.inputs=[t]}let i;for(i of _t){let t=this.regexp[i].exec(o[i]);if(!t){return null}let e={};for(let[o,s]of this.names[i].entries()){if(typeof s==="string"||typeof s==="number"){let i=t[o+1];e[s]=i}}s[i]={input:o[i]??"",groups:e}}return s}static compareComponent(t,e,o){const s=(t,e)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(t[o]<e[o])return-1;else if(t[o]===e[o])continue;else return 1}return 0};const i=new N(3,"","","","",3);const a=new N(0,"","","","",3);const n=(t,e)=>{let o=0;for(;o<Math.min(t.length,e.length);++o){let i=s(t[o],e[o]);if(i)return i}if(t.length===e.length){return 0}return s(t[o]??i,e[o]??i)};if(!e.component_pattern[t]&&!o.component_pattern[t]){return 0}if(e.component_pattern[t]&&!o.component_pattern[t]){return n(e.parts[t],[a])}if(!e.component_pattern[t]&&o.component_pattern[t]){return n([a],o.parts[t])}return n(e.parts[t],o.parts[t])}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=$t}const Rt='.sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer;height:100%;position:relative}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{overflow-y:auto;height:100%}: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>div.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}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:none}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{position:absolute;color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));border-radius:0.25rem;pointer-events:none}[icon][label].sc-smoothly-app-room-h:hover::before{content:"";bottom:-1.75rem;transform:rotate(45deg);width:1.25em;height:1.25em}[icon][label].sc-smoothly-app-room-h:hover::after{content:attr(label);white-space:nowrap;bottom:-3.25rem;padding:.5rem 1rem;border-radius:.25rem}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:unset;padding:0 1rem}.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}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{content:unset}}';const Pt=Rt;const Ft=class{constructor(e){t(this,e);this.smoothlyRoomSelect=o(this,"smoothlyRoomSelect",7);this.smoothlyRoomLoad=o(this,"smoothlyRoomLoad",7);this.label=undefined;this.icon=undefined;this.disabled=undefined;this.path="";this.selected=undefined;this.content=undefined}componentWillLoad(){this.selected=(typeof this.path=="string"?new URLPattern({pathname:this.path}):this.path).test(window.location);this.smoothlyRoomLoad.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(t,e){this.selected=t;if(t)this.smoothlyRoomSelect.emit({history:!!(e===null||e===void 0?void 0:e.history)})}clickHandler(t){if(!t.metaKey&&!t.ctrlKey&&t.which!=2&&t.button!=1){t.preventDefault();this.setSelected(true)}}render(){return e(s,{key:"145d89e87e5bc7988a2c37b30321e8e969724508"},e("li",{key:"bf5a642b87750bf78273b9eb856187ec5d0dfade"},e("a",{key:"b22e1fcf21a1d4cb60d73b967cca67e639ec539b",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:t=>this.clickHandler(t)},this.icon&&e("smoothly-icon",{key:"7a40b124bcda86b48dcd10a32a240c413c2851b6",name:this.icon}),this.label&&e("span",{key:"01cb8b9aa06d17a13c3eed564e870fe4fba2e438",class:"label"},this.label))),e("div",{key:"a75f04cbb0aca3574f8b309cf88fa96c82a461aa",ref:t=>this.contentElement=t},this.content&&e("smoothly-lazy",{key:"37efba7cfc89753339c41038f6f69e6c380ee187",content:this.content}),e("slot",{key:"0b5a9394b9b83f153b73c6de35365a3cfc58a7da"})))}};Ft.style=Pt;const Ht=".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 Nt=Ht;const Yt=class{constructor(e){t(this,e);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){var t;this.scrollableParent=n.findParent(this.element);(t=this.scrollableParent)===null||t===void 0?void 0:t.addEventListener("scroll",(()=>{var t,e;this.visible=((e=(t=this.scrollableParent)===null||t===void 0?void 0:t.scrollTop)!==null&&e!==void 0?e:0)>20}))}render(){const t={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return e(s,{key:"b2fe364dcdf392c75b51a6c0bc90802ac2c9b44a",style:t,onClick:()=>{var t;return(t=this.scrollableParent)===null||t===void 0?void 0:t.scrollTo({top:0,left:0,behavior:"smooth"})}},e("smoothly-icon",{key:"d0d21c03ed49fcc248ab89c8a5f54de6d3c995ac",name:"caret-up-outline"}))}get element(){return i(this)}};Yt.style=Nt;const Ut="[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{--smoothly-icon-size:3rem;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 Wt=Ut;const Bt=class{constructor(e){t(this,e);this.smoothlyNavStatus=o(this,"smoothlyNavStatus",7);this.smoothlyVisibleStatus=o(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 e(s,{key:"6cf2501d1c4ad5a0a2865dd41667e40abffe756a"},e("span",{key:"c7bb85eb13d1acb54554a6456aa279f1e8593da8",class:"burger"},e("smoothly-icon",{key:"b7b51da7eb3de4c290ba0f4f0c9f9a44fe494c00",name:"menu"})))}get element(){return i(this)}static get watchers(){return{open:["openChanged"]}}};Bt.style=Wt;const Vt='[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-contrast);--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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-button-h{display:inline}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h>a.sc-smoothly-button,.sc-smoothly-button-h>button.sc-smoothly-button{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-button-h>a.sc-smoothly-button:empty,.sc-smoothly-button-h>button.sc-smoothly-button:empty{border-width:0}.sc-smoothly-button-h>button.sc-smoothly-button{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-button-h:not([fill=clear])>button.sc-smoothly-button:hover,.sc-smoothly-button-h>button.sc-smoothly-button:focus-visible,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:hover::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:focus-within::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:hover,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:focus-visible,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-button-h>button.sc-smoothly-button,.sc-smoothly-button-h.sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-button-h{display:none}';const Gt=Vt;const Kt=class{constructor(e){t(this,e);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type=undefined;this.size=undefined;this.shape=undefined;this.link=undefined}render(){return e(p,{key:"1350144b97a2a5fdc24d5b53678ea9d7f97b5b71",disabled:this.disabled,type:this.type,link:this.link},e("slot",{key:"315355a1987956c9741a03819de181d2f626a205"}))}};Kt.style=Gt;const Zt=".sc-smoothly-button-confirm-h{display:inline-block}[disabled].sc-smoothly-button-confirm-h{opacity:0.5;pointer-events:none}.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 qt=Zt;const Xt=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyConfirm=o(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.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 e(s,{key:"316a3f9fb74039c7a6b80c0b665582c9c016176b",warning:this.clickTimeStamp},e("smoothly-button",{key:"c4e4a4845ccb4ca9b599957eafe177494f03f124",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:"button",onClick:t=>this.clickHandler(t)},e("smoothly-icon",{key:"d7763547cf321bbff31ce9fa437c0d7753b4767c",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),e("smoothly-button",{key:"f3e3af94612519e43694139c91bfca618293af94",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:"button",onClick:t=>this.clickHandler(t)},e("slot",{key:"38fbabcf48c532abea1fde79454acb5785955b77"})))}};Xt.style=qt;const Jt="smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}smoothly-button-demo smoothly-button{margin:.2em .5em}";const Qt=Jt;const te=class{constructor(e){t(this,e)}render(){return[e("h2",{key:"bddbcdcb9ce5d83b6bfa7b6ecfdc6aa39a2eb566"},"Buttons"),e("section",{key:"1a68d5f5e150439e623fa625432c0b76d84cb4da"},e("h4",{key:"ce297567bb70f6f61cb5c9adfce457b96a727dee"},"Confirm button (two clicks)"),e("div",{key:"6b8561f4fe3001800c5a058e01a023361e8ff5fc"},e("smoothly-button-confirm",{key:"c26ec515d6e59142694394336d6c408f9d77d5c2",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),e("smoothly-button-confirm",{key:"bc1fe30703e9469b80851611286309c2465b6708",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},e("smoothly-icon",{key:"2c5ad6e48b66c4aac2b85dc8ea27b292b9229054",name:"checkmark-outline",size:"tiny"})),e("smoothly-button-confirm",{key:"b00eff042a7e4ad8d84dbd5928499dfe93e0aade",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},e("smoothly-icon",{key:"180734788ed2a6bf6dd7b833ec6e2bb8c8aa4d65",name:"trash-outline",size:"tiny",fill:"outline"}))),e("smoothly-toggle-switch-demo",{key:"05f0025358df19ae26c50e988f75488f41da289d"}),e("h4",{key:"a9d8bcaea4a0f4faefb18091126dbcdf41f310d9"},"Links with icons"),e("smoothly-button",{key:"167bbb5902842ca9bffce2c147d628d56e400190",type:"link"},e("smoothly-icon",{key:"d072acb7417bacbe2f7ecdc46aabda39cbdbfc06",name:"checkmark-circle",slot:"start"}),"type link"),e("smoothly-button",{key:"009968c3ec3174984ea7d2d0f8583283dac79cd7",type:"button",color:"warning",fill:"default"},e("smoothly-icon",{key:"a006bec82e32c090679bf672067786ad20ee1a1c",name:"call",slot:"start"}),e("a",{key:"f07b7790a97c5ee46d0f9b2208c7adc6be83b578",href:"https://google.com"},"link")),e("smoothly-button",{key:"6bc40589a121c17134918def9047a9f4c5849d92",link:"https://google.com",type:"link"},e("smoothly-icon",{key:"7fe282e07c20828f9d3370fc652212dbfbffeb22",name:"arrow-forward",slot:"end"}),"link + type link"),e("h4",{key:"8ba8336502afd8345f6fb4e4fab960482ae518a8"},"Size and Color test"),e("smoothly-button",{key:"8853f3af8f2a529da7b4e852bb97b683b83305df",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),e("smoothly-button",{key:"58bacfecc8658277fce79ca8c92b09269d98dd9a",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),e("smoothly-button",{key:"ad0d74e0a69340b75589a4758a09aac2dcb76f00",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),e("smoothly-button",{key:"440876e5df141e0c8ac44027661f8e575921699f",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),e("smoothly-button",{key:"2c7792f5eab260fc72dea8d02a69f870e017c461",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),e("smoothly-button",{key:"e6a5713a3f4c683442c44c7dce5d4b14d5ed137b",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),e("smoothly-button",{key:"9344764b926c4b7620a116f7811c569e2825440d",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),e("smoothly-button",{key:"47ee717243171483731ddb1645c4769dc02386e8",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),e("smoothly-button",{key:"fcb45ba51f2efd49e3bb1601213d3e7ad020fbbd",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),e("h4",{key:"2445eacd62ea0749ed0bdcd7a624fc9d0003b69e"},"Expand examples"),e("smoothly-button",{key:"9cdb6cfac5d2806e522c2764aaf4f3f8b24bd81c",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),e("smoothly-button",{key:"72c233f139b871a57202f29cc3f2d26bd45900a2",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),e("h4",{key:"b6912697d2018ba136133d3d21349c8fade175fb"},"Fill examples"),e("div",{key:"e4095adae1b21cac1437407a4b032ebf2b5857fb"},e("smoothly-button",{key:"537fb2c0df80f137e082ff7b0cfd3fd6dd0dbe46",shape:"rounded",color:"primary",fill:"solid"},e("smoothly-icon",{key:"9982e7b95ca149470e6d5b34967f46cad195a35f",name:"checkmark-circle",slot:"start"}),"Fill Solid"),e("smoothly-button",{key:"9a7021a7c1743c2c46a8a67159d2cda23e4579c2",shape:"rounded",color:"secondary",fill:"outline"},e("smoothly-icon",{key:"469608b3bfc55b192d773f42ef70e567795ca455",name:"checkmark-circle",slot:"start"}),"Fill Outline"),e("smoothly-button",{key:"52a5d266726a031d6b66b3a1180ad37623dd74c9",shape:"rounded",color:"tertiary",fill:"clear"},e("smoothly-icon",{key:"94e036929040b6ac859a055bde8ad09e804ad1fd",name:"checkmark-circle",slot:"start"}),"Fill Clear"),e("smoothly-button",{key:"f48dfdc3b4151689bfe7c3f069156b8e97ccd485",size:"icon",shape:"rounded",color:"success",fill:"solid"},e("smoothly-icon",{key:"729e24c3f27ee5ee5d9ac91a872d0ebaf232ef06",name:"basketball"}))),e("h4",{key:"f6925e64d522c3049c3df03ae5572e7cb79b91aa"},'Buttons with Icon in "start"'),e("div",{key:"4caf500f1fc1e0bc4fdefbada8053ec53d919859"},e("smoothly-button",{key:"69248dd64f9f1e6bd2eb72d9bb060d2adc95230e",shape:"rounded",fill:"solid",color:"warning"},e("smoothly-icon",{key:"326c813748e85699bf9378ae903f82c3a94a99fe",name:"checkmark-circle",slot:"start"}),"Check"),e("smoothly-button",{key:"e32f179237d11e7168f6b9d86584a941e7c132ba",shape:"rounded",fill:"solid",color:"secondary"},e("smoothly-icon",{key:"ac60c8faa7ee073a8193a670c1f4195331930f43",name:"basketball",slot:"start"}),"Check"),e("smoothly-button",{key:"19388cc01865030341d6e481e17f2b8201f7e2a2",shape:"rounded",fill:"solid",color:"success"},e("smoothly-icon",{key:"9ef487e2d5ee74050fb1d544d2cd38cba4e031ff",name:"call",slot:"start"}),"Check"),e("smoothly-button",{key:"551d64ac42aff595a46024e330dd09db0985f958",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"c834b6e258f7a992a28349103b8029384fde8a60",name:"call"})),e("smoothly-button",{key:"747732c4f71779e75dd1e28f1279afbb5ca9977f",size:"flexible",fill:"solid",color:"success"},e("smoothly-icon",{key:"39095a422a92dae1516d70fc6cd307886dd44f8d",name:"airplane"}))),e("h4",{key:"bbbc29959dfe655b2d9cce283dea0fb02429a834"},'Buttons with Icon in "end"'),e("smoothly-button",{key:"24d19a5ecc1208b8a918027a8e32b7148554380e",fill:"solid",color:"light"},"Go Forward",e("smoothly-icon",{key:"263940589ee234ba91a0ee6d80474b3df208a27f",name:"arrow-forward",slot:"end"})),e("h4",{key:"94736445a17a3cf6880880463e181f50b41e919a"},"Test for icon button"),e("div",{key:"445605a6a79169dff7f1d8fc06afe4aa71279fc5"},e("smoothly-button",{key:"e2bf3d70b09f51ef033160538ee894ed7e5a5704",size:"icon",fill:"solid",shape:"rounded",color:"success"},e("smoothly-icon",{key:"bb6eeb8eefa8c9ded0804b62976fa3dea30e6f04",name:"call"})),e("smoothly-button",{key:"0dc78ad3f658c896c2f1094dbb378319ce081b7e",size:"icon",shape:"rounded",color:"warning",fill:"solid"},e("smoothly-icon",{key:"a07d3a8a103b9ce19b11b91f2464b8e7089d1337",name:"search-outline"})),e("smoothly-button",{key:"0408dea25ae083f2427cf347677914478426dbbc",size:"icon",shape:"rounded",color:"secondary"},e("smoothly-icon",{key:"38337dd0de50a5dcfe4d1ccd070826cfc0cd6124",name:"checkmark-circle"}))),e("h4",{key:"15e4d907e44d0c9191acf970a7ffa718b0baf537"},"Link examples"),e("div",{key:"f966263b0a25dd27dc146a28ba03774813c6469a"},e("smoothly-button",{key:"b1a65a0fd62273af3cb6d982ee98c7a1c565fb20",type:"link"},"type link"),e("smoothly-button",{key:"2b19c2d53a823dcc74426b12309e6854d3a4923d",type:"button",fill:"clear"},e("a",{key:"45c4ce410828bfb775464872aaa7e6ab6e0e800e",href:"https://google.com"},"link")),e("smoothly-button",{key:"c98b71da6960956e031b99d23e53cc5a123341a3",link:"https://google.com",type:"link"},"link + type link")),e("h4",{key:"559ef66961156a0c954e7a6009283a8328a4dd48"},"Disabled buttons"),e("div",{key:"5856c23cde78acfc84c73b78aaa5c1b1f1e82c43"},e("smoothly-button",{key:"6da6041b5d6b51adc0cc19ecf074412d7183fe7b",disabled:true,fill:"solid",color:"secondary"},"Disabled"),e("smoothly-button",{key:"57e28f82cf722df8dc9ecfb0bff304a345e27018",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),e("smoothly-back-to-top",{key:"a1d78b61fcc3da58bd3f8683fbeccb34bbcb3ef3"})]}};te.style=Qt;function ee(t){const e=new Date(t);e.setDate(1);let o=-((e.getDay()+6)%7)+1;const s=[];for(let e=0;e<6;e++){const i=[];for(let e=0;e<7;e++){const e=new Date(t);e.setUTCDate(o++);i.push(x.create(e))}if(e<5||x.firstOfMonth(i[0])==x.firstOfMonth(t))s.push(i)}return s}function oe(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const e=[];for(let o=0;o<7;o++){e.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return e}function se(t){const e=new globalThis.Date(t);const o=[];for(let s=0;s<12;s++){e.setMonth(s,28);const i=x.create(e);o.push({date:i,name:e.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return o}function ie(t,e,o){const s=new globalThis.Date(t);const i=e?x.getYear(e):(new Date).getFullYear()-50;const a=o?x.getYear(o):(new Date).getFullYear()+50;const n=[];for(let e=i;e<=a;e++){s.setFullYear(e);const o=x.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return n}const ae='.sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;padding:0.5em;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{padding:0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>thead.sc-smoothly-calendar>tr.sc-smoothly-calendar>th.sc-smoothly-calendar,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));-webkit-user-select:none;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{position:relative;cursor:pointer}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.today.sc-smoothly-calendar::before{content:"";inset:2px;position:absolute;border:1px solid currentColor}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.disable.sc-smoothly-calendar{cursor:not-allowed;opacity:0.5}';const ne=ae;const le=class{constructor(e){t(this,e);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyStartChange=o(this,"smoothlyStartChange",7);this.smoothlyEndChange=o(this,"smoothlyEndChange",7);this.smoothlyDateSet=o(this,"smoothlyDateSet",7);this.smoothlyDateRangeSet=o(this,"smoothlyDateRangeSet",7);this.clickCounter=0;this.month=undefined;this.value=undefined;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}}}withinLimit(t){return(!this.min||t>=this.min)&&(!this.max||t<=this.max)}render(){var t,o,s;return e(a,{key:"818f64c07d09772dcf0ca9a9d561b5745684c9ae"},e("smoothly-input-month",{key:"b407c0b400e94cfad36c372bf8353ad1fe52a5fd",name:"month",value:(t=this.month)!==null&&t!==void 0?t:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:t=>{t.stopPropagation();"month"in t.detail&&typeof t.detail.month=="string"&&(this.month=t.detail.month)}},e("div",{key:"46d05aa65a4a0de959e2bb79f00fd6bce67662a1",slot:"year-label"},e("slot",{key:"cbd40bacc7fa9a661916deb52e5538e163de5067",name:"year-label"})),e("div",{key:"26f35188e898cbd35a20ab6d5f469418bfc5952d",slot:"month-label"},e("slot",{key:"79ece04c1955c45809892accb4c692a3277a2c4b",name:"month-label"}))),e("table",{key:"3002ee275ea4b53934e14fa27d08ba67d79a993d"},e("thead",{key:"f6d280f29660fe107ef459e4cdc8a829b91d26b0"},e("tr",{key:"cdeaec6bc32757bb65c130618e9ea92b668acc25"},oe().map((t=>e("th",null,t))))),ee((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:x.now()).map((t=>e("tr",null,t.map((t=>{var o,s,i,a;return e("td",{tabindex:1,onMouseOver:()=>this.withinLimit(t)?this.onHover(t):undefined,onClick:this.withinLimit(t)?()=>this.onClick(t):undefined,class:{selected:t==this.value||this.doubleInput&&(t==this.start||t==this.end),today:t==x.now(),currentMonth:x.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:x.now())==x.firstOfMonth(t),dateRange:this.doubleInput&&t>((i=this.start)!==null&&i!==void 0?i:"")&&t<((a=this.end)!==null&&a!==void 0?a:""),disable:!this.withinLimit(t)}},t.substring(8,10))})))))))}get element(){return i(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};le.style=ne;const re=".sc-smoothly-dialog-h{display:block;position:fixed;top:55%;left:50%;transform:translate(-50%, -50%);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>section.sc-smoothly-dialog{margin-top:var(--smoothly-dialog-margin-top)}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.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]) div.header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.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>section.sc-smoothly-dialog>div.content.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])>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog>smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";const ce=re;const he=class{constructor(e){t(this,e);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(t){if(l.is(t.detail)&&t.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return e("section",{key:"d13e5bf2132afe9b22f3ed6f3f3d5c96f8f61fc2"},e("div",{key:"9f0c40b2efb77ef63312ef5c6e70e55f6605b3b5",class:"header"},this.closable&&e("smoothly-trigger",{key:"2cbd48cb261f1c5e951a385a4e87e5af8ef3f9fa",fill:"clear",name:"close"},e("smoothly-icon",{key:"c87a41fd9350c00fa41965eb95a8ef8366a12361",name:"close-circle",fill:"solid",color:this.color})),this.header?e("h1",null,this.header):e("slot",{name:"header"})),e("div",{key:"f50603dce6e75b2254469f688c055610590df737",class:"content"},e("slot",{key:"2774f7a85f71e91ce07c1dd4c6fd48b53c589b47"})))}render(){return e(s,this.hostData(),this.__stencil_render())}};he.style=ce;const de=".sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}";const me=de;const ue=class{constructor(e){t(this,e);this.openModal=false;this.openTallModal=false;this.showFrame=false}render(){return e(s,{key:"f7ae2fc97658b0aa8c08755714792ec4399224da"},e("smoothly-button",{key:"f99ac0d5c89394052b2d6faab955d8b2634e2b5f",fill:"solid",color:"light",onClick:()=>this.openModal=true},"Open Modal"),e("smoothly-button",{key:"8e6a1ff75c6469816cdd206fe6afa2c8eead8684",fill:"solid",color:"light",onClick:()=>this.openTallModal=true},"Open Modal with long text and top-aligned."),e("smoothly-button",{key:"c8af4a1887f7f2c005926bec9032038e1fa43d3b",fill:"solid",color:"light",onClick:()=>this.showFrame=!this.showFrame},"Show Frame"),e("smoothly-modal",{key:"534b00fc5e74c9539ba8106b0c9cf382463448b3",closable:true,open:this.openModal,onSmoothlyModalChange:t=>this.openModal=t.detail},e("h2",{key:"82a998800b4e7ea57210a3116cdf35eec00aa952",slot:"header"},"Modal"),e("span",{key:"edeb8eaa859444f30e3f95b76fab7db2b322683f"},"Are you sure you want to confirm this action?"),e("smoothly-button",{key:"50a4de7de97c55783fdd3e8167ec9fac4395d16a",slot:"actions",color:"success"},"Confirm"),e("smoothly-button",{key:"d4740cdac6527a55b692c04dd70ad17fefbe7eb8",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openModal=false},"Cancel")),e("smoothly-modal",{key:"0beaeb3ab4f2af395a3aa0257674f38f55faabd6",closable:true,open:this.openTallModal,onSmoothlyModalChange:t=>this.openTallModal=t.detail,align:"top"},e("h2",{key:"453c4ded8638235b6dc0ff5c043b57d37995be4d",slot:"header"},"Modal"),e("smoothly-summary",{key:"871fc4ad53812e7331093c43dee851b14d33f726"},e("div",{key:"720c732d6f03309304d677b6292b853ac38257f8",slot:"summary"},"Lorem ipsum"),e("div",{key:"2e5632e1402f5ff2830e63dc56be723549c2a90e",slot:"content"},Array.from({length:10}).map((()=>e("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."))))),e("smoothly-button",{key:"5fb59dab67d31d2783855d1e0c4f67197a7eaa04",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openTallModal=false},"Cancel")),this.showFrame&&e("smoothly-dialog",{key:"939b4f257b01be10467dc90b45801402df5f70e3",closable:true},e("smoothly-frame",{key:"83c2ac363001992a0673506df8317b30b487ff60",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}})))}};ue.style=me;function ye(t,e,o){let s=0;while(o.exec(t)!=null){s=o.lastIndex;if(o.lastIndex>e)break}o.lastIndex<=e&&(s=t.length);return s}function be(t,e,o){let s=0;let i;while((i=o.exec(t))!=null){if(o.lastIndex-i[0].length<e)s=o.lastIndex-i[0].length;else break}return s}function fe(t,e,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?be(t,e,s):ye(t,e,s)}var pe;(function(t){function e(t){return t.direction=="backward"?t.start:t.end}t.getCursor=e;function o(t){return t.direction!="backward"?t.start:t.end}t.getStalker=o})(pe||(pe={}));var ge;(function(t){function e(t){return{value:t.value,selection:{start:t.selection.start,end:t.selection.end,direction:t.selection.direction},remainder:t.remainder}}t.copy=e})(ge||(ge={}));class ke{value;selection;constructor(t){this.value=t.value;this.selection={start:t.selection?.start,end:t.selection?.end,direction:t.selection?.direction}}get(t,e=1){return this.value.substring(t,t+e)}is(t,...e){const o=this.get(t);return e.some((t=>o==t))}isDigit(t){const e=this.get(t);return e>="0"&&e<="9"}match(t){return this.value.match(t)}replace(t,e,o){let s;if(typeof t=="string"&&typeof e=="string"){let o;s=this;while((o=s.value.indexOf(t))>-1)s=s.replace(o,o+t.length,e)}else if(typeof t=="number"&&typeof e=="number"){const i={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";i.value=this.value.slice(0,t)+o+this.value.slice(e,this.value.length);if(this.selection.start>=e)i.selection.start=this.selection.start+o.length-e+t;else if(this.selection.start>t&&this.selection.start<e)i.selection.start=Math.min(this.selection.start,t+o.length);if(this.selection.end>=e)i.selection.end=this.selection.end+o.length-e+t;else if(this.selection.end>t&&this.selection.end<e)i.selection.end=Math.min(this.selection.end,t+o.length);s=new ke(i)}return s||this}insert(t,e){return this.replace(t,t,e)}append(t){return this.insert(this.value.length,t)}prepend(t){return this.insert(0,t)}suffix(t){return new ke({value:this.value+t,selection:this.selection})}delete(t,e){let o;if(!this.value)o=this;else if(typeof t=="string"){let e;o=this;while(t&&(e=o.value.indexOf(t))>-1)o=o.delete(e,e+t.length)}else o=this.replace(t,e||t+1,"");return o}truncate(t){return this.value.length>=t?this.delete(t,this.value.length):this}pad(t,e,o){let s=this;while(t>s.value.length+e.length)s=s.insert(o,e);if(t>s.value.length)s=s.insert(o,e.substring(0,t-s.value.length));return s}padEnd(t,e){return this.pad(t,e,this.value.length)}padStart(t,e){return this.pad(t,e,0)}toLower(){return this.map((t=>t.toLowerCase()))}toUpper(){return this.map((t=>t.toUpperCase()))}map(t){let e=this;let o=0;for(let s=0;s<this.value.length;s++){const i=t(this.get(s),s);e=e.replace(o,o+1,i);o+=i.length}return e}static copy(t){return new ke({...t})}static create(){return new ke({value:"",selection:{start:0,end:0}})}static modify(t){return new ke(typeof t=="string"?{value:t,selection:{start:t.length,end:t.length}}:t)}}var ve;(function(t){function e(t,e,o){let c=ge.copy(t.unformat(ke.copy(e)));if(e.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(e.value))o?.key&&(o.key="Backspace");if(o){if(o.ctrlKey||o.metaKey){if(o.key=="a")n(c,0,c.value.length,"forward");else if(["ArrowLeft","ArrowRight"].includes(o.key)&&e?.type!="password")c=s(t,e,o);else if(["Delete","Backspace"].includes(o.key)&&e?.type!="password")c=i(t,e,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))a(c,o);else if(["Delete","Backspace"].includes(o.key)){c.selection.start==c.selection.end&&n(c,c.selection.start+(o.key=="Backspace"?-1:0),c.selection.end+(o.key=="Delete"?1:0));l(c)}else if(o.key!="Unidentified"){l(c);t.allowed(o.key,c)&&r(c,o.key)}}return t.format(ke.copy(c))}t.apply=e;function o(t,e,o){const s=ge.copy(t.unformat(ke.copy(e)));r(s,o);return t.format(ke.copy(s))}t.paste=o;function s(t,e,o){let s=pe.getCursor(e.selection);let i=pe.getStalker(e.selection);s=fe(e.value,s,o.key=="ArrowLeft"?"backward":"forward");i=o.shiftKey?i:s;return ge.copy(t.unformat(ke.copy({...e,selection:{start:Math.min(i,s),end:Math.max(i,s),direction:i<s?"forward":i>s?"backward":"none"}})))}function i(t,e,o){const s=pe.getCursor(e.selection);const i=fe(e.value,s,o.key=="Backspace"?"backward":"forward");const a=ge.copy(t.unformat(ke.copy({...e,selection:{start:Math.min(s,i),end:Math.max(s,i),direction:"none"}})));a.value=a.value.substring(0,a.selection.start)+a.value.substring(a.selection.end);a.selection.end=a.selection.start;return a}function a(t,e){let o=pe.getCursor(t.selection);let s=pe.getStalker(t.selection);o=e.key=="Home"?0:e.key=="End"?t.value.length:t.selection.start==t.selection.end||e.shiftKey?Math.min(Math.max(o+(e.key=="ArrowLeft"?-1:1),0),t.value.length):e.key=="ArrowLeft"?t.selection.start:t.selection.end;s=e.shiftKey?s:o;t.selection.direction=s<o?"forward":s>o?"backward":"none";t.selection.start=Math.min(s,o);t.selection.end=Math.max(s,o)}function n(t,e,o,s){t.selection.start=e;t.selection.end=o;s&&(t.selection.direction=s)}function l(t){r(t,"")}function r(t,e){t.value=t.value.substring(0,t.selection.start)+e+t.value.substring(t.selection.end);t.selection.start=t.selection.start+e.length;t.selection.end=t.selection.start}})(ve||(ve={}));const we={};function xe(t,e){we[t]=e}function Se(t,...e){const o=we[t];return o&&o(e)}function Ce(t,e,...o){const s=Se(e,...o);return s?s.format(ke.modify(s.toString(typeof t=="string"?ze(t,e,o):t))).value:""}function ze(t,e,...o){const s=Se(e,o);return s?s.fromString(s.unformat(ke.modify(t)).value):undefined}class je{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"text",inputmode:"numeric",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(t){return t}allowed(t,e){return e.value.length<3&&t>="0"&&t<="9"}}xe("card-csc",(()=>new je));class Ie{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}partialFormat=this.format;format(t){let e=t;if(t.value.length>0&&!t.is(0,"0","1"))e=e.prepend("0");if(e.value.length>1)e=e.insert(2," / ");return{...e,type:"text",inputmode:"numeric",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(t){return t.delete(" / ")}allowed(t,e){return e.value.length<4&&t>="0"&&t<="9"}}xe("card-expires",(()=>new Ie));class _e{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){const e=Te(t.value);const o=t.map(((t,o)=>(o+1<e.length[0]&&e.spaceIndexes.includes(o)?" ":"")+t));return{...o,type:"text",inputmode:"numeric",autocomplete:"cc-number",length:e.length.slice(1),pattern:e.verification,classes:["issuer-"+e.icon]}}unformat(t){return t.delete(" ")}allowed(t,e){const o=Te(e.value);return t>="0"&&t<="9"&&e.value.length<o.length[0]}}xe("card-number",(()=>new _e));function Te(t){let e={...Le,spaceIndexes:t.length==14?[4,10]:Le.spaceIndexes};for(const o in Oe)if(Object.prototype.hasOwnProperty.call(Oe,o)&&Oe[o].identification.test(t)){e={...Le,name:o,...Oe[o]};break}return e}const Le={name:"unknown",verification:/^\d{19}$/,spaceIndexes:[4,8,12],identification:/^\d/,length:[16,16,19],icon:"generic"};const Oe={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}$/,spaceIndexes:[4,8,12],identification:/^(5019)\d+/,length:[16,19,19],icon:"generic"},diners:{verification:/^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{6}\s[0-9]{4}$/,identification:/^3(?:0[0-5]|[68][0-9])/,spaceIndexes:[4,10],length:[14,16,16],icon:"diners"},discover:{verification:/^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],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)/,spaceIndexes:[4,8,12],length:[16,19,19],icon:"generic"},interpayment:{verification:/^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],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})/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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}$/,spaceIndexes:[4,8,12],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})?$/,spaceIndexes:[4,8,12],identification:/^4[0-9]/,length:[16,16,19],icon:"visa"}};var Ae;(function(t){function e(t){let e;switch(t){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":e="dd/mm/YYYY";break;case"en-US":e="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":e="dd.mm.YYYY";break;case"hi-IN":case"en-IN":e="dd-mm-YYYY";break;default:e="YYYY-mm-dd";break}return e}t.fromLocale=e;function o(t){let e;switch(t){case"dd/mm/YYYY":e="en-GB";break;case"mm/dd/YYYY":e="en-US";break;case"dd.mm.YYYY":e="de-DE";break;default:e="sv-SE";break}return e}t.toLocale=o;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})(Ae||(Ae={}));class Me{separator;constructor(t){this.separator=t}partialFormat(t){const e=this.format(t);return{...e,remainder:this.formatString.slice(e.value.length)}}unformat(t){return t.delete(this.separator)}validMonth(t,e,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(e),0).getDate()>=Number.parseInt(t)}}const Ee={};function De(t,e){Ee[t]=e}xe("date",(t=>{const e=t&&t.length>0?t[0]:undefined;const o=Ae.is(e)?e:Ae.fromLocale(e);const s=Ee[o]??Ee["YYYY-mm-dd"];return s()}));class $e extends Me{constructor(t){super(t)}toString(t){return x.is(t)&&t.length==10?[t.substring(8,10),t.substring(5,7),t.substring(0,4)].join(this.separator):""}fromString(t){const e=t?.length==8?`${t.substring(4,8)}-${t.substring(2,4)}-${t.substring(0,2)}`:undefined;return x.is(e)?e:undefined}formatString=`DD${this.separator}MM${this.separator}YYYY`;format(t){let e=t.delete(this.separator);if(e.get(0,1)>"3")e=e.insert(0,"0");if(e.value.length>1)e=e.insert(2,this.separator);if(e.get(3,1)>"1")e=e.insert(3,"0");if(e.value.length>4)e=e.insert(5,this.separator);return{...e,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,e){return e.selection.start==1&&e.value[0]=="3"?t>="0"&&t<="1":e.selection.start==1&&e.value[0]=="0"?t>="1"&&t<="9":e.selection.start==2?t>="0"&&t<="9"&&(t=="0"||t=="1"||this.validMonth(e.value.substring(0,2),t)):e.selection.start==3?t>="0"&&t<="9"&&this.validMonth(e.value.substring(0,2),e.value[2]+t):e.selection.start==7?t>="0"&&t<="9"&&this.validMonth(e.value.substring(0,2),e.value.substring(2,4),e.value.substring(4,7)+t):e.selection.start<8&&t>="0"&&t<="9"}}De("dd.mm.YYYY",(()=>new $e(".")));De("dd/mm/YYYY",(()=>new $e("/")));De("dd-mm-YYYY",(()=>new $e("-")));class Re extends Me{constructor(t){super(t)}toString(t){return x.is(t)&&t.length==10?[t.substring(5,7),t.substring(8,10),t.substring(0,4)].join(this.separator):""}fromString(t){const e=t.length==8?`${t.substring(4,8)}-${t.substring(0,2)}-${t.substring(2,4)}`:undefined;return x.is(e)?e:undefined}formatString=`MM${this.separator}DD${this.separator}YYYY`;format(t){let e=t.delete(this.separator);if(e.get(0,1)>"1")e=e.insert(0,"0");if(e.value.length>1)e=e.insert(2,this.separator);if(e.get(3,1)>(e.get(0,2)=="02"?"2":"3"))e=e.insert(3,"0");if(e.value.length>4)e=e.insert(5,this.separator);return{...e,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,e){const o=e.selection.start==1&&e.value[0]=="1"?t>="0"&&t<="2":e.selection.start==1&&e.value[0]=="0"?t>="1"&&t<="9":e.selection.start==3?t>="0"&&t<="9"&&this.validMonth(e.value[2]+t,e.value.substring(0,2)):e.selection.start==7?t>="0"&&t<="9"&&this.validMonth(e.value.substring(2,4),e.value.substring(0,2),e.value.substring(4,7)+t):e.selection.start<8&&t>="0"&&t<="9";return o}}De("mm/dd/YYYY",(()=>new Re("/")));class Pe extends Me{constructor(t){super(t)}toString(t){return typeof t!="string"?"":t}fromString(t){const e=t?.length==8?`${t.substring(0,4)}-${t.substring(4,6)}-${t.substring(6,8)}`:undefined;return x.is(e)?e:undefined}daysInMonth(t){const e=`${t.substring(0,4)}-${t.substring(4,6)}-01`;return x.is(e)?+x.lastOfMonth(`${t.substring(0,4)}-${t.substring(4,6)}-01`).substring(8,10):31}formatString=`YYYY${this.separator}MM${this.separator}DD`;format(t){let e=t.delete(this.separator);if(e.value.length>3){e=e.insert(4,this.separator);if(e.get(5,1)>"1")e=e.insert(5,"0");if(e.value.length>6){e=e.insert(7,this.separator);if(e.get(8,1)>this.daysInMonth(t.value).toString().substring(0,1))e=e.insert(8,"0")}}return{...e,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,e){const o=this.daysInMonth(e.value);return e.selection.start==5&&e.value[4]=="0"?t>="1"&&t<="9":e.selection.start==5&&e.value[4]=="1"?t>="0"&&t<="2":e.selection.start==7&&e.value[6]=="0"?t>="1"&&t<="9":e.selection.start==7&&(e.value[6]=="2"&&o<30||e.value[6]=="3")?t>="0"&&t<=o.toString().substring(1):e.selection.start<8&&t>="0"&&t<="9"}}De("YYYY-mm-dd",(()=>new Pe("-")));class Fe{toString(t){return typeof t=="string"?t:""}fromString(t){let e=t.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(e?.match(/-\d$/))e=e.substring(0,e.length-1)+"0"+e.substring(e.length-1,e.length);e=!e.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:e+o.substring(e.length,o.length);return S.is(e)?e:undefined}partialFormat=this.format;format(t){let e=He(t);if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))e=e.insert(10," ");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))e=e.replace(11,12,"23:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))e=e.insert(11,"23:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))e=e.insert(11,"23:5");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))e=e.replace(10,13,"00:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))e=e.insert(12,"3:");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))e=e.insert(12,"3:5").append(":");if(e.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]$/))e=e.insert(13,":");if(e.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))e=e.insert(14,"5");if(e.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$/))e=e.insert(16,":");if(e.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]$/))e=e.insert(17,"5");return{...e,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,e){return e.value.length<19&&(t>="0"&&t<="9"||t=="-"||t==":"||t=="."||t==" ")}}xe("date-time",(()=>new Fe));function He(t,e){let o=t;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Ne(o.value,e))o=o.replace(0,10,Ne("31"+o.value.substring(2,10),e)?"31"+o.value.substring(2,10):Ne("30"+o.value.substring(2,10),e)?"30"+o.value.substring(2,10):Ne("29"+o.value.substring(2,10),e)?"29"+o.value.substring(2,10):Ne("28"+o.value.substring(2,10),e)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!Ne(o.value,e))o=o.replace(0,10,Ne(o.value.substring(0,3)+"31"+o.value.substring(5,10),e)?o.value.substring(0,3)+"31"+o.value.substring(5,10):Ne(o.value.substring(0,3)+"30"+o.value.substring(5,10),e)?o.value.substring(0,3)+"30"+o.value.substring(5,10):Ne(o.value.substring(0,3)+"29"+o.value.substring(5,10),e)?o.value.substring(0,3)+"29"+o.value.substring(5,10):Ne(o.value.substring(0,3)+"28"+o.value.substring(5,10),e)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(t.value.length==10){if(!Ne(o.value)){o=o.replace(0,10,Ne(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":Ne(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":Ne(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":Ne(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return t}}return o}function Ne(t,e){let o;let s;let i;switch(e){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(3,5));i=parseInt(t.substring(0,2));return o&&s&&i?i>0&&Ye(o,s)>=i:false;case"mm/dd/YYYY":o=parseInt(t.substring(6,10));s=parseInt(t.substring(0,2));i=parseInt(t.substring(3,5));return o&&s&&i?i>0&&Ye(o,s)>=i:false;default:o=parseInt(t.substring(0,4));s=parseInt(t.substring(5,7));i=parseInt(t.substring(8,10));return o&&s&&i?i>0&&Ye(o,s)>=i:false}}function Ye(t,e){let o;switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:o=31;break;case 4:case 6:case 9:case 11:o=30;break;case 2:o=28;break}return o}class Ue{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}partialFormat=this.format;format(t){let e=t;if(t.match(/^\d\/$/))e=t.replace(1,2," / ");else if(t.match(/^\d{1,2}\s$/))e=t.replace(t.value.length-1,t.value.length," / ");else if(t.match(/^[\D.]+\/[\D.]+$/))e=t.delete(0,t.value.length);else if(t.match(/^[\D.]+\/[\D.]+\d$/))e=t.delete(0,t.value.length-1);else if(t.match(/^[\D.]+\/[\D.]+\d\d$/))e=t.delete(0,t.value.length-2);else if(t.match(/^[\D.]+\//))e=t.delete(0,t.value.search("/")+1);else if(t.match(/^\d\d\/$/))e=t.replace(2,3," / ");else if(t.match(/^\d\d\s+\/$/))e=t.delete(2,t.value.length);else if(t.match(/^\d\s+\/$/))e=t.delete(1,t.value.length);else if(t.match(/^\d\d\s\s+\/\s*$/))e=t.replace(2,t.value.length," / ");else if(t.match(/^\d\s\s+(\/\s*)?$/))e=t.replace(1,t.value.length," / ");else if(t.match(/^\d\s\/\s\d\d.+$/))e=t.delete(6,t.value.length);else if(t.value.length>1&&t.value.indexOf("/")<1)e=t.insert(2," / ");else if(t.value.length>1&&t.value.split("/").length>2)e=t.delete(t.value.lastIndexOf("/"));else if(t.value.length==1&&!t.isDigit(0))e=t.delete(0);return{...e,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(t){return t}allowed(t,e){return e.value.length<7&&(t>="0"&&t<="9"||t=="/"||t==" ")}}xe("divisor",(()=>new Ue));class We{separator=":";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 e;if(!C.is(t))e="";else{const o=C.normalize(t);if(!o.minutes&&!o.hours)e="";else if(this.separator!=":")e=(+C.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)e=o.hours.toString(10);else if(!o.hours&&o.minutes)e=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else e=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return e}fromString(t){let e;const o=t.match(this.patterns.extract);if(!o)e=undefined;else{const[t,s,i,a,n]=o;this.separator=a;if(a==":"){const t={hours:parseInt(i),minutes:parseInt(n)};const o=s?-1:1;e=C.normalize({hours:!Number.isFinite(t.hours)?0:t.hours*o,minutes:!Number.isFinite(t.minutes)?0:t.minutes*o})}else{const o=parseFloat(t.replace(",","."));e=C.normalize({hours:!Number.isFinite(o)?0:o})}}return e}partialFormat=this.format;format(t){let e=t;const[,o,s,i]=t.match(this.patterns.extract)??[];if(!s&&i)e=e.insert(o?1:0,"0");const a=e.match(this.patterns.zeros);if(a){const[,t,o]=a;if(o){const s=t?1:0;e=e.delete(s,o.length+s)}}return{...e,type:"tel",pattern:this.patterns.allowed}}unformat(t){const[,,,e]=t.match(this.patterns.extract)??[];if(e)this.separator=e;return t}allowed(t,e){const o=e.value.slice(0,e.selection.start)+t+e.value.slice(e.selection.end);return!!o.match(this.patterns.allowed)}}xe("duration",(()=>new We));class Be{settings;constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(t){return t}allowed(t,e){return this.settings.length==undefined||this.settings.length[1]==undefined||e.value.length<this.settings.length[1]}}xe("email",(t=>new Be(t||{})));class Ve{settings;mode;constructor(t,e){this.settings=t;this.mode=e}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}split(t){let e;let o="";return t.map(((t,s)=>{const i=s!==0&&t===t.toUpperCase()&&isNaN(+t)&&o!==" "&&this.isSymbolAllowed(t)&&e?" "+t:(t==="_"||t==="-")&&o!==" "?" ":t===" "&&o===" "||!this.isSymbolAllowed(t)||!e&&!this.isSymbolLetter(t)&&this.mode!=="code"?"":t;!e&&(e=this.isSymbolLetter(t));this.isSymbolAllowed(t)&&(o=t);return i})).toLower().delete("-").delete("_")}isSymbolLetter(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"}isSymbolAllowed(t){return this.isSymbolLetter(t)||t>="0"&&t<="9"||t===" "}partialFormat=this.format;format(t){const e=this.split(t);let o;switch(this.mode){case"code":o=e.delete(" ");break;case"pascal":case"camel":let s;o=e.map(((t,e)=>{const o=e===0&&this.mode==="pascal"||s?t.toUpperCase():t.toLowerCase();s=t==" ";return o})).delete(" ");break;case"snake":case"attribute":o=e.replace(" ",this.mode==="snake"?"_":"-");break;default:o=t}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(t){return t}allowed(t,e){return this.isSymbolLetter(t)||t>="0"&&t<="9"&&(this.mode=="code"||e.value.length>0)||t=="_"&&this.mode=="snake"&&e.value.length>0||t=="-"&&this.mode=="attribute"&&e.value.length>0}}xe("identifier-code",(t=>new Ve(t||{},"code")));xe("identifier-pascal",(t=>new Ve(t||{},"pascal")));xe("identifier-snake",(t=>new Ve(t||{},"snake")));xe("identifier-camel",(t=>new Ve(t||{},"camel")));xe("identifier-attribute",(t=>new Ve(t||{},"attribute")));class Ge{country;constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){let e=t;const o=(new Date).getFullYear().toString();if(t.value.length>1&&t.get(0,2)!="19"&&t.get(0,2)!="20")e=e.prepend(t.get(0,2)>o.substring(2,4)?"19":"20");if(e.value.length>=8)e=e.insert(8,"-");return{...e.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(t){return t.delete("-")}allowed(t,e){return e.value.length<13&&t>="0"&&t<="9"}}xe("identity-number",(t=>new Ge(t&&t.length>0?t[0]:undefined)));class Ke{min;max;constructor(t){this.min=t.min;this.max=t.max}toString(t){return typeof t=="number"?t.toString():""}fromString(t){const e=typeof t=="string"?Number.parseInt(t):undefined;return typeof e=="number"&&!Number.isNaN(e)?e:undefined}partialFormat(t){return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}format(t){const e=this.partialFormat(t);const o=this.fromString(e.value);return{...e,value:o==undefined?e.value:this.min!=undefined&&o<this.min?this.toString(this.min):this.max!=undefined&&o>this.max?this.toString(this.max):e.value}}unformat(t){return t}allowed(t,e){return t>="0"&&t<="9"}}xe("integer",(t=>new Ke(t?.[0]??{})));class Ze{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"password",autocomplete:"current-password"}}unformat(t){return t}allowed(t,e){return true}}xe("password",(()=>new Ze));class qe{toString(t){let e="";if(typeof t=="number"){const o=t.toString().split(".")[1]?.length??2;e=(t*100).toFixed(!o||o<=1?0:o-2)}return e}fromString(t){const e=typeof t=="string"?Number.parseFloat(t):undefined;return typeof e=="number"&&!Number.isNaN(e)?e/100:undefined}partialFormat=this.format;format(t){return{...t.value?t.suffix(" %"):t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(t){return t.delete(" %")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")}}xe("percent",(()=>new qe));const Xe=[{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 Je{toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){let e=t;if(e.value.startsWith("+")){for(const t of Xe)if(e.value.startsWith(t.countryCode))for(let o of t.areaCodes){o=o.substring(1);if(e.value.startsWith(t.countryCode+o)&&!e.value.includes("-"))e=e.insert(t.countryCode.length,"-").insert(t.countryCode.length+1+o.length,"-")}}else{const t=Xe[0];for(const o of t.areaCodes)if(e.value.startsWith(o)&&!e.value.includes("-")){e=e.insert(o.length,"-");e=e.delete(0);e=e.insert(0,"-").insert(0,t.countryCode)}}if(e.value.includes("-")){const t=e.value.indexOf("-",e.value.indexOf("-")+1)+1;const o=e.value.substring(t,e.value.length+1).length;switch(o){case 4:e=e.insert(t+2," ");break;case 5:e=e.insert(t+3," ");break;case 6:e=e.insert(t+2," ");e=e.insert(t+5," ");break;case 7:e=e.insert(t+3," ");e=e.insert(t+6," ");break;case 8:case 9:e=e.insert(t+3," ");e=e.insert(t+7," ");break}if(o>9){const s=Math.ceil(o/3)-1;if(s>0){for(let o=0;o<s;o++){const s=o*3+3+o;e=e.insert(s+t," ")}}}}return{...e,type:"tel",autocomplete:"tel"}}unformat(t){return t.delete(" ").delete("-")}allowed(t,e){return t>="0"&&t<="9"||e.selection.start==0&&t=="+"&&!e.value.includes("+")}}xe("phone",(()=>new Je));class Qe{country;constructor(t){this.country=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){const e=!t.value.includes(" ")&&t.value.length>=4?t.insert(3," "):t;return{...e.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(t){return t.delete(" ")}allowed(t,e){return e.value.length<=5&&t>="0"&&t<="9"}}xe("postal-code",(t=>new Qe(t&&t.length>0?t[0]:undefined)));class to{currency;toInteger;constructor(t){this.currency=t&&typeof t=="object"?t.currency:t;this.toInteger=t&&typeof t=="object"?t.toInteger:undefined}toString(t){return typeof t=="number"?isNaN(t)?"":t.toString():""}fromString(t){const e=typeof t=="string"?Number.parseFloat(t):undefined;return e!=undefined&&!isNaN(e)?e:undefined}partialFormat(t){let e=t.value=="NaN"?t.replace(0,t.value.length,""):ke.copy(t);const o=this.currency&&z.decimalDigits(this.currency);e=this.addLeadingIntegerZero(e);e=this.fillDecimalsIfPresent(e,o,"onlyLimit");e=this.truncateIntegerZeros(e);e=this.addThousandSeparators(e);return{...e,remainder:this.format(t).value.slice(e.value.length),type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d*)?$")}}format(t){let e=t.value=="NaN"?t.replace(0,t.value.length,""):ke.copy(t);const o=this.currency&&z.decimalDigits(this.currency);if(!this.toInteger)e=this.forceDecimalZero(e,o);e=this.addLeadingIntegerZero(e);e=this.fillDecimalsIfPresent(e,o,"fillAndLimit");e=this.truncateIntegerZeros(e);e=this.addThousandSeparators(e);e=this.appendCurrency(e);return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}forceDecimalZero(t,e){if(!t.value.includes(".")&&e&&(Math.abs(Number.parseFloat(t.value))>=0||t.value=="0"))t=t.suffix(".0");return t}addLeadingIntegerZero(t){const e=t.value&&t.value.includes(".")?t.value.indexOf("."):undefined;if(e==0)t=t.prepend("0");return t}fillDecimalsIfPresent(t,e,o){const s=t.value.indexOf(".");if(s!=-1){const i=s+1+(e??2)-t.value.length;t=i<0?t.truncate(t.value.length+i):o=="fillAndLimit"?t.suffix("0".repeat(i)):t}return t}truncateIntegerZeros(t){const e=t.match(/^[0\s]{2,}/);if(e)t=t.replace(0,e[0].length,"0");return t}addThousandSeparators(t){let e=t.value.includes(".")?t.value.indexOf("."):t.value.length;const o=e<=0?0:Math.ceil(e/3)-1;for(let s=0;s<o;s++){const i=e-(o-s)*3;t=t.insert(i," ");e++}return t}appendCurrency(t){return this.currency&&(t.value.length>1||t.value.length==1&&t.value.charAt(0)!=".")?t.suffix(" "+this.currency):t}unformat(t){return this.currency?t.delete(" ").delete(""+this.currency):t.delete(" ")}allowed(t,e){return t>="0"&&t<="9"||t=="."&&!e.value.includes(".")&&(!this.currency||z.decimalDigits(this.currency)!=0)}}xe("price",(t=>new to(t&&t.length>0?t[0]:undefined)));class eo{settings;constructor(t){this.settings=t}toString(t){return typeof t=="string"?t:""}fromString(t){return typeof t=="string"&&!!t?t:undefined}partialFormat=this.format;format(t){return{...t,type:"text",...this.settings}}unformat(t){return t}allowed(t,e){return this.settings.length==undefined||this.settings.length[1]==undefined||e.value.length<this.settings.length[1]}}xe("text",(t=>new eo(t||{})));class oo{toString(t){return typeof t=="string"?"#"+t:""}fromString(t){return t?"#"+t:undefined}partialFormat=this.format;format(t){const e=t.delete("#");return{...e.value?e.prepend("#"):e,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(t){return t.delete("#")}allowed(t,e){return(t>="0"&&t<="9"||t>="a"&&t<="f"||t>="A"&&t<="F")&&e.value.length<6}}xe("hex-color",(()=>new oo));const so=".sc-smoothly-display-h{display:block;white-space:wrap}[hidden].sc-smoothly-display-h{display:none}.sc-smoothly-display-h>div.sc-smoothly-display{opacity:0.6;font-size:.8rem}";const io=so;const ao=class{constructor(e){t(this,e);this.type=undefined;this.label=undefined;this.value=undefined;this.collapseDepth=undefined;this.toInteger=undefined;this.currency=undefined;this.country=undefined;this.format=undefined}render(){var t,o;let s;const i=this.type;switch(i){case"json":s=e("smoothly-display-json",{key:"1ede546f9829aea0f9b8c319db98df10e07b04a3",value:this.value,collapseDepth:this.collapseDepth});break;default:s=Ce(this.value,i);break;case"email":s=e("a",{key:"c6047f436091639f6302be22f62610c0515a4009",href:"mailto:"+this.value},Ce(this.value,i));break;case"phone":s=e("a",{key:"b62431225a51efb22037598e4227671e863be3c3",href:"tel:"+this.value},Ce(this.value,i,this.country));break;case"postal-code":s=Ce(this.value,i,this.country);break;case"price":s=Ce(this.value,i,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(t=Se(this.type,$()))===null||t===void 0?void 0:t.toString(this.value);break;case"duration":s=Ce(this.value,i)||"0";break;case"date-time":s=this.format?S.localize(this.value,this.format,$()):(o=Se(this.type,$()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[e("div",null,this.label),s]:s}};ao.style=io;const no=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(t){console.log("emit",t);this.notice.emit(t)}render(){return[e("main",{key:"21fb2b79f1e444d11b25150a336ce64e74f94386"},e("fieldset",{key:"8b8ef87a351e4cb8754f44f74ad31185db62b0cb"},e("h2",{key:"e466ccf59ad1f4e2a41c8dd1b1d85da6b37c8f95"},"Smoothly display"),e("dl",{key:"acb593cb9a73566cc3defcc55eede3a7710a42b0"},e("dt",{key:"9ccdcb7f5e3f55ea39d78b8ed6e75edb5f4a4c96"},"Duration"),e("dd",{key:"b7c93ccc874874faabe5e313ba204795a19adfc0"},e("div",{key:"d6e3d99849191e6d8effae216348bd634a4114b2"},e("div",{key:"bb64f8e9518218a499d0e52b5df759b31093e0e0"},e("smoothly-display",{key:"151b7ca20847a1e41701d3c93ad780a222f990fb",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),e("div",{key:"72035e5cab01fd9a06d2782ba1255c2f86cbfdac"},e("smoothly-display",{key:"0f4723aac6e41aa4a7e29b0456e4661066b28985",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),e("div",{key:"1346fe1098e87dab09ae4268fab19f7eb18cd949"},e("smoothly-display",{key:"5e70c627fe2dc9e1d65cfec40fa63a36d419466f",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),e("div",{key:"24beed45ab0c2cb2703d97ddecb72b767f19d989"},e("smoothly-display",{key:"a57ee2a431537bffe6d8a630c2466e342a10f089",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),e("div",{key:"44f65151109d00905e996e9205d71588ecabaea3"},e("smoothly-display",{key:"5c0a01aca2d99cb82c66701d4c7d7de26043d987",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),e("div",{key:"18cbc082f3d8f71f3ba6c6b7eb3a977b13d45268"},e("smoothly-display",{key:"a5bbf74186f51ce22f6eceb8396f215e7b0fc297",style:{display:"inline"},type:"duration",value:{}})," h"),e("div",{key:"1d2361cec57f38f40636641702f92100ebcd9122"},e("smoothly-display",{key:"a561ef92252a23064e7f7f7ffca3314a099329f2",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),e("dt",{key:"ab7b23c9c2ad57ceb6a2ce75d8f0a4e93439e610"},"text"),e("dd",{key:"8913158f3f3a5c4012ae94a3f1b38442fcb5aff2"},e("smoothly-display",{key:"13d54b85dcf178d480c8c834c79c47231c785aa6",type:"text",value:"text"})),e("dt",{key:"e3c43484f7cc87eb9bf67d6474bc9552dbd643bd"},"postal code"),e("dd",{key:"0df2d428a7847b3ddf436d2e9db2fe367f41df80"},e("smoothly-display",{key:"8550c5ee46cc4e0c1bb956b2dbf8a62c452aee30",type:"postal-code",value:"752 31"})),e("dt",{key:"1b06810c083306938ce8d25b5582a15cb066b085"},"password"),e("dd",{key:"b078c56b5a9d62e23b9d9b8ab6cd4d10798aa726"},e("smoothly-display",{key:"773204df4456963fbcc5cc26416c40f8111e43d0",type:"password",value:"password"})),e("dt",{key:"38c93b73ae2830ef7995f9c6d93d62c1ba019680"},"email"),e("dd",{key:"3f822f17d630c3388155a66e97e0bbb6fb7c3951"},e("smoothly-display",{key:"f31678fe3df819cdc266876c54a1d810e9fbf9e8",type:"email",value:"test@example.com"})),e("dt",{key:"9abf27aa6b2a6ffc035f14adc1204e620d8061ce"},"price"),e("dd",{key:"15a0e06145971b2c14abb0250cbb7edcea81483b"},e("smoothly-display",{key:"256922cd4e8c86be1707c1ddc9d9e8550fe7b5b3",type:"price",value:"13.37",currency:"SEK"})),e("dt",{key:"84e0e9b898c72e2390a5b50cc2445a988a845a60"},"price without decimals"),e("dd",{key:"3979f33c43640eb1376a533755cc39ac1a8c17b3"},e("smoothly-display",{key:"04afd00d763536c5b1faa310074726f346914114",type:"price",value:200,currency:"SEK",toInteger:true})),e("dt",{key:"28c9ddc91d2ceb52a7bd60577570a0ece1ef1704"},"price with decimals if they are set, otherwise no decimal"),e("dd",{key:"e2ae34d84db38387ee3d81b474a606b7b3d40742"},e("smoothly-display",{key:"a8c053147e77e15ba5a6a7d372d24d0948d67bd0",type:"price",value:200.2,currency:"SEK",toInteger:true})),e("dt",{key:"a42173872dac85db0f822c70e69baef5a244b4ef"},"price with decimals"),e("dd",{key:"4034e3ca1bde5f9ba3f5cdca710d3757b7e12955"},e("smoothly-display",{key:"0a07c33c6bf9b14aeafcbbff3e9f6d2817eb7230",type:"price",value:200.2,currency:"SEK"})),e("dt",{key:"701bee2385a94b38bf90f58b3dc4fb65458188e6"},"percent"),e("dd",{key:"e1b856b2059122d2c80e5c242bb95429bca4caeb"},e("smoothly-display",{key:"2682ebd78e2753fc2b1d558e00cf10eec0449c83",type:"percent",value:"42"})),e("dt",{key:"d6504232e42d7bd6fb239b24f8065677bfe7f5ce"},"phone"),e("dd",{key:"3b2cf4c53cf6b6fba8687ab994d6ded634d60046"},e("smoothly-display",{key:"1cb2c5406dfbec1db57c05be5f59f828b005cb17",type:"phone",value:"0101881108"})),e("dt",{key:"94ee7083b2d5eef22e7ff0e15c460f6fd863db9e"},"card number"),e("dd",{key:"97954e5e4d12f6be04096006d51ea6c9ac3e7fa3"},e("smoothly-display",{key:"027c2522274e6e23f6cda08da141b24432671837",type:"card-number",value:"4111111111111111"})),e("dt",{key:"77cda0ed14b7a75ef02966d1b29bf94b6d5fe6ef"},"card expires"),e("dd",{key:"e2c1cbe5353efc0bea8435181499188bcdf8d051"},e("smoothly-display",{key:"4aab5bf769fb89cadd2bf3fbb279a219e668c85d",type:"card-expires",value:"7/22"})),e("dt",{key:"ecb64258605dbce40b3b6b8f51ec1922046ecd44"},"card csc"),e("dd",{key:"b37ef76653942f81a110df017f26c4c5699f32ad"},e("smoothly-display",{key:"e9cb2787e18d88f2cde4559c90f8ad9d45889d51",type:"card-csc",value:"987"})),e("dt",{key:"f028f598bc51de708361494c66264047b8ab777e"},"date"),e("dd",{key:"8900bb90156489b4cc9d22c663c9a2f5f80b1062"},e("smoothly-display",{key:"c31d4cf0631bf5495c9286bcc87a37c056ac6308",type:"date",value:"2022-07-07"})),e("dt",{key:"a9df319e34d74e6ec9ef36e9f9128cda2df9043b"},"date time"),e("dd",{key:"f57d07c19738d28a60e0138cc827218a0f1ef7af"},e("smoothly-display",{key:"663d9cfa4235e90f6a8231b9c7c7d6d0bd4beb4b",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),e("dd",{key:"664a74d91f65917bff18734fd100347533fb9b4e"},e("smoothly-display",{key:"456469ffdc5ccdea880ad86f92b9a29c183dcdba",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"})),e("dd",{key:"6714499c457900dee5e2cd5bedbba3ef7083b749"},e("smoothly-display",{key:"4fea3c22e9402170205a5019a17850576fbb06f7",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),e("dd",{key:"79c14cffa0634ab2af6fd3ba014d081e28e38319"},e("smoothly-display",{key:"d5559326f39e2f5bc8311135176b5eedb4ed2870",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),e("dd",{key:"419b427db910e49fd541de31e95c7dd3dbd2811e"},e("smoothly-display",{key:"ebd569c36dd017c14523ee1efc8925c622f7747e",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"6df381d322a21b50ad70fc41fee8800721ca0889"},e("smoothly-display",{key:"1ace79e51e8285e5124158f567a73508833bdcb4",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),e("dd",{key:"dbdc1a002cab9e951678621ad394c1237e91f3f1"},e("smoothly-display",{key:"529e5cd2b7f4bde6b06dfb51832cb4cb498c3447",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"})),e("dt",{key:"d7b788672f67fbf1d0528f604ef1e77673d2e69f"},"Display JSON"),e("dd",{key:"87a892e6845db8618efd46d571e8a90f30ce1e6d"},e("smoothly-display-demo-json",{key:"f66473975507a01af105282f01f640c1baaa88ae"})))),e("h2",{key:"084965cafe76cf10bac4804c82ea460c0960f7da"},"With labels"),e("dd",{key:"395e03618fc767dcca6b12386286a97c83882686"},e("smoothly-display",{key:"d5f90cfeaad01ea046ed543f54e70b089c91463d",label:"Today",type:"date",value:x.now()}),e("smoothly-display",{key:"3333769695dd0b7e0d54fd729f2b3b59dc34737c",label:"Total amount",type:"price",currency:"SEK",value:6789}),e("smoothly-display",{key:"57070580aa9096b1d273bb7cb51a6ac82e22f9ca",label:"Total amount",type:"price",currency:"GBP",value:678.9}),e("smoothly-display",{key:"b4af7875200f61caf1c51f969c61362af7b3d402",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),e("fieldset",{key:"411e5133a5c4bf2d36ad1c6b00cf549e769d7665"},e("h2",{key:"536dd0526204b6d389c670c576f32bca45c3630e"},"Test of different kinds of notifier"),e("button",{key:"2faebb0bcea77262e0a18b5e8a375bef7b5de11b",onClick:()=>this.noticeWarning(A.warn("This is a test warning notice."))},"warning"),e("button",{key:"21181f519f1bfe818fcc084596be2317fe541968",onClick:()=>this.noticeWarning(A.succeeded("This is a test success notice."))},"success"),e("button",{key:"c67c4056842c761165115333bb079165609208f1",onClick:()=>this.noticeWarning(A.failed("This is a test danger notice."))},"danger"),e("button",{key:"a42b0b8a77b40fa6ddea705306634489abaec09b",onClick:()=>this.noticeWarning(A.execute("This is a test execute notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"execute"),e("button",{key:"d651ea26abb9ce9dd336b45ded8849fc4a00c56a",onClick:()=>this.noticeWarning(A.delay("This is a test delay notice.",(()=>new Promise((t=>window.setTimeout((()=>t([true,"This went great"])),3e3))))))},"delay")),e("fieldset",{key:"91b1d46f457a5261ddff3a1bc67db822190f0591"},e("h2",{key:"d46c2765def7f55a8bd225dbd9f1c5379029878b"},"Smoothly spinner"),e("div",{key:"efb40135dbbbd78e6ba4c9927ff212178a3da9eb",style:{width:"fit-content"}},"Large",e("smoothly-spinner",{key:"70616018eb896ff0bd28744b504fec5c416f1b45",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),e("div",{key:"585aff079f29aaeb3319268ebcf3857bec165942",style:{width:"fit-content"}},"Medium",e("smoothly-spinner",{key:"d46336b4e6fe98d2d2958c3047747b07d7999fe8",size:"medium"})),e("div",{key:"47db1735399b1b59e582b94229c4fdc51389b51d",style:{width:"fit-content"}},"Small",e("smoothly-spinner",{key:"8292ad153260c3cd3d26ad597effa2356e913ca9",size:"small"})),e("div",{key:"45ed5bea68185714286757dfa56d14b5987c3a19"},"Icon sized spinner on button",r.values.map((t=>e("smoothly-button",{size:"icon",color:t,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&e("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&e("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),e("h3",{key:"f4f8637fd7928426d61b262cb5b286903d5a9edc"},"Spinner with overlay"),e("div",{key:"11880b67e3425ca7b1aa96fe1f0be53613cadce6",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",e("smoothly-spinner",{key:"26d08b7f6d5c14f03643521e41d399d57567c2a0",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),e("div",{key:"2092cd92eb0a8797cf30e05692e632c0b9a3a09e",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",e("smoothly-spinner",{key:"bf7a3539c259ad7a1e84ce233dd6e3840436c834",overlay:true,color:"secondary",size:"medium"})),e("div",{key:"21f2f4a511fab1672bf573336403dd6a073c3b2a",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",e("smoothly-spinner",{key:"9d1e787b73a9158de842d116ef1b9367a43658f7",overlay:true,size:"small"}))),e("fieldset",{key:"c69bac882a363b3de75857289acde3ee240de84b"},e("h2",{key:"48f6bba196c4a8ac79b6de5563fcdabe176f9a09"},"Smoothly summary"),e("smoothly-summary",{key:"e127119ddebe9ac42d447384a277f8f3785d0bd2"},e("p",{key:"38fcd455229b895a477b8d6a0f608492c19be7d1",slot:"summary"},"Some title"),e("p",{key:"1da7ba6e1a5c72e29bcd42c5d1e2469bb38c0e24",slot:"content"},"Some content")),e("smoothly-summary",{key:"8cd4afa538a5ad269741acf3cffe3730e7613c41",size:"large"},e("p",{key:"751fe6f320fdccd799a43f9a6b4c82a6e4e4c075",slot:"summary"},"Some title"),e("p",{key:"e7549c895b88cf20bf368c66f5e126a9c3407677",slot:"content"},"Some content")),e("smoothly-summary",{key:"ab35b1c6a284eb8f3b913f31726b0fbc88132915",color:"danger",fill:"clear"},e("div",{key:"40b066f48899e2bab7e5a0601f18f02ede99aaca",slot:"summary",style:{display:"flex",gap:"0.3rem"}},e("span",{key:"877b910238083ce23c9b6130438b1db664200158"},"Person"),e("smoothly-icon",{key:"653ab4903ed6b6631ff9edeab0db9a98626644e3",name:"person",color:"light",fill:"clear",size:"tiny"})),e("p",{key:"b6a604da7924a87bea1e2615cd5d13634e214daf",slot:"content"},"Some person information.")),e("smoothly-summary",{key:"e2333f4c0ae45eaaa8f36bf06a0304080560811e",color:"danger",fill:"clear",open:true},e("p",{key:"f1f8a5c4fbcc13754598489d36ec5867106e851f",slot:"summary"},"Some other title"),e("p",{key:"d24ba7bf492e8630ddd5d08644f74783908792ae",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.")),e("h2",{key:"cad39175e8ad87abb419ff9aa9bbc6ff281b6055"},"Label"),lo.map((t=>e("smoothly-label",{hue:t.hue,description:t.description,shape:"rectangle"},t.name))),e("smoothly-label",{key:"4e1ef4a7f3d2dacc84cdd6520b2e39ed66249745",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const lo=[{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."}];const ro=class{constructor(e){t(this,e)}render(){return e(s,{key:"ea329526023da3b7329d8b7bd1cb34316542fd93"},[0,1,3,undefined].map((t=>[e("div",null,"collapseDepth=",t!==null&&t!==void 0?t:"undefined"),e("div",null,e("smoothly-display",{type:"json",value:co,collapseDepth:t}))])))}};const co={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const ho=({value:t,collapseDepth:o})=>j().is(t)||Array.isArray(t)?e("smoothly-display-json-object",{value:t,collapseDepth:o}):e("smoothly-display-json-primitive",{value:t});const mo=".sc-smoothly-display-json-h{font-family:monospace}";const uo=mo;const yo=class{constructor(e){t(this,e);this.value=undefined;this.collapseDepth=undefined}render(){return e(ho,{key:"a817223386521cc073aeab087efc636977b65e0a",value:this.value,collapseDepth:this.collapseDepth})}};yo.style=uo;const bo='.sc-smoothly-display-json-object-h{font-family:monospace;position:relative}[hidden].sc-smoothly-display-json-object-h{display:none}.indent.sc-smoothly-display-json-object{padding-left:1rem;border-left:1px solid rgba(var(--smoothly-default-contrast), 0.3)}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{opacity:0;position:absolute;pointer-events:none}.sc-smoothly-display-json-object-h>.content.sc-smoothly-display-json-object>.indent.sc-smoothly-display-json-object:last-child>.comma.sc-smoothly-display-json-object{display:none}.sc-smoothly-display-json-object-h .open-bracket.sc-smoothly-display-json-object{cursor:pointer}.sc-smoothly-display-json-object-h .open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));border:1px solid rgb(var(--smoothly-light-color));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover::after{color:rgb(var(--smoothly-default-contrast));border-color:rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open):not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▶ " attr(data-length) " ◀ "}.open.sc-smoothly-display-json-object-h:not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▼ "}.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover,.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover~.close-bracket.sc-smoothly-display-json-object{font-weight:bold}.sc-smoothly-display-json-object-h>.open-bracket.sc-smoothly-display-json-object:hover+.content.sc-smoothly-display-json-object>.indent.sc-smoothly-display-json-object{border-left-color:rgb(var(--smoothly-default-contrast))}';const fo=bo;const po=class{constructor(e){t(this,e);this.openBracket="";this.closeBracket="";this.value=undefined;this.collapseDepth=undefined;this.open=undefined;this.empty=undefined}componentWillLoad(){this.open=typeof this.collapseDepth=="number"?this.collapseDepth>0:true;if(Array.isArray(this.value)){this.openBracket="[";this.closeBracket="]";this.length=this.value.length}else{this.openBracket="{";this.closeBracket="}";this.length=Object.keys(this.value).length}this.empty=this.length==0}render(){const t=typeof this.collapseDepth=="number"?Math.max(this.collapseDepth-1,0):undefined;return e(s,{key:"2878d58011daeccd9d1e3383f1081883f08ec598",class:{empty:this.empty,open:this.open}},e("span",{key:"8e07de6271113ae7c223c44a2193162071cf9eaf",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),e("span",{key:"c850ca12c687165a5f752a1e3315a0d7bd947971",class:"content"},Array.isArray(this.value)?this.value.map((o=>e("div",{class:"indent"},e(ho,{value:o,collapseDepth:t}),e("span",{class:"comma"},",")))):Object.entries(this.value).map((([o,s])=>e("div",{class:"indent"},e("smoothly-display-json-record-key",{value:o}),":"," ",e(ho,{value:s,collapseDepth:t}),e("span",{class:"comma"},","))))),e("span",{key:"d8441108a2cd31b14ada6c0ad587716b0e05537e",class:"close-bracket"},this.closeBracket))}};po.style=fo;const go=".sc-smoothly-display-json-primitive-h{font-family:monospace;display:inline;word-wrap:anywhere}[hidden].sc-smoothly-display-json-primitive-h{display:none}.string.sc-smoothly-display-json-primitive-h,.number.sc-smoothly-display-json-primitive-h,.boolean.sc-smoothly-display-json-primitive-h{font-weight:bold}.string.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-primary-color))}.number.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-secondary-color))}.boolean.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-tertiary-color))}.null.sc-smoothly-display-json-primitive-h,.undefined.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-medium-color))}";const ko=go;const vo=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"171404fee1a7bdd8ecd7beb0032c136e4e2652d8",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};vo.style=ko;const wo=".sc-smoothly-display-json-record-key-h{font-family:monospace;display:inline;color:rgb(var(--smoothly-default-contrast))}[hidden].sc-smoothly-display-json-record-key-h{display:none}";const xo=wo;const So=class{constructor(e){t(this,e);this.value=undefined}render(){return e(s,{key:"525fa15610e18dc3073cc4c28b1acf559a4c4a8a"},'"',this.value,'"')}};So.style=xo;class Co{filter(t){return t.filter((t=>this.is(t)))}stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}const zo=[t=>t instanceof Co?t:undefined];function jo(t){zo.push(t)}let Io;function _o(t){Io=t}function To(t){let e;for(const o of zo){e=o(t);if(e)break}return e||Io}class Lo extends Co{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(t){return true}toString(){return""}}_o(new Lo);class Oo extends Co{constructor(t){super();this.criteria=t;this.precedence=50;this.class="Any"}is(t){return t&&typeof t=="object"&&Object.getOwnPropertyNames(t).some((e=>this.criteria.is(t[e])||this.is(t[e])))}toString(){return this.criteria.stringify(this.precedence)}}class Ao extends Co{constructor(t){super();this.precedence=40;this.class="And";this.rules=t.reduce(((t,e)=>e instanceof Ao?[...t,...e.rules]:[...t,e]),[])}is(t){return this.rules.every((e=>e.is(t)))}toString(){return this.rules.map((t=>t.stringify(this.precedence))).join(" ")}generalize(){return new Ao(this.rules.map((t=>t.class=="Property"?t:new Oo(t))))}}function Mo(...t){return new Ao(t.map(To))}var Eo;(function(t){t.is=Do})(Eo||(Eo={}));function Do(t,e=false){return typeof t=="number"||typeof t=="string"||t instanceof Co||e&&typeof t=="object"&&t&&Object.values(t).every((t=>Array.isArray(t)?t.every((t=>Do(t,true))):Do(t,true)))}var $o=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var Ro={};var Po={};var Fo={};var Ho={};var No={};(function(t){Object.defineProperty(t,"__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"})(t.Level||(t.Level={}))})(No);Object.defineProperty(Ho,"__esModule",{value:true});const Yo=No;class Uo{constructor(t,e=Yo.Level.Recoverable,o="unknown",s){this.description=t;this.level=e;this.type=o;this.region=s}toString(){return Yo.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}Ho.Message=Uo;Object.defineProperty(Fo,"__esModule",{value:true});const Wo=Ho;class Bo{raise(t,e,o,s){if(!(t instanceof Wo.Message))t=new Wo.Message(t,e,o,s);console.error(t.toString())}}Fo.ConsoleHandler=Bo;var Vo={};var Go={};Object.defineProperty(Go,"__esModule",{value:true});class Ko{constructor(t,e){this.line=t;this.column=e}toString(){return"Ln "+this.line+", Col "+this.column}}Go.Position=Ko;Object.defineProperty(Vo,"__esModule",{value:true});const Zo=Go;class qo extends Zo.Position{constructor(t,e,o){super(e,o);this.resource=t}toString(){return this.resource.toString()+" @ "+super.toString()}}Vo.Location=qo;var Xo={};Object.defineProperty(Xo,"__esModule",{value:true});class Jo{constructor(t,e,o,s){this.resource=t;this.start=e;this.end=o;this.content=s}merge(t){return t?new Jo(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}}Xo.Region=Jo;Object.defineProperty(Po,"__esModule",{value:true});var Qo=Fo;Po.ConsoleHandler=Qo.ConsoleHandler;var ts=No;Po.Level=ts.Level;var es=Vo;Po.Location=es.Location;var os=Ho;Po.Message=os.Message;var ss=Go;Po.Position=ss.Position;var is=Xo;Po.Region=is.Region;var as={};var ns={};var ls={};var rs={};var cs={};Object.defineProperty(cs,"__esModule",{value:true});class hs{constructor(t,e){this.name=t;this.password=e}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 e;if(t){const o=t.split(":",2);e=new hs(o[0],o[1])}else e=new hs;return e}}cs.User=hs;var ds={};Object.defineProperty(ds,"__esModule",{value:true});class ms{constructor(t=[],e){this.host=t;this.port=e}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 e;if(t){const o=t.split(":",2);e=new ms(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else e=new ms;return e}}ds.Endpoint=ms;Object.defineProperty(rs,"__esModule",{value:true});const us=cs;const ys=ds;class bs{constructor(t=new us.User,e=new ys.Endpoint){this.user=t;this.endpoint=e}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 e;if(t){const o=t.split("@",2);e=new bs(us.User.parse(o.length==2?o.pop():undefined),ys.Endpoint.parse(o.pop()))}return e}}rs.Authority=bs;var fs={};Object.defineProperty(fs,"__esModule",{value:true});const ps=rs;class gs{constructor(t=[],e=new ps.Authority,o=[],s={},i){this.scheme=t;this.authority=e;this.path=o;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 gs(this.scheme,this.authority,this.path.filter(((t,e)=>e<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,e){const o=[];while(e-- >0)o.push(t);return o}normalize(){let t=0;const e=this.path.reverse().filter(((e,o)=>{let s=false;if((e==""||e==".")&&o<this.path.length-1)s=false;else if(e=="..")t++;else if(t>0)t--;else s=true;return s})).concat(this.createArray("..",t)).reverse();return new gs(this.scheme,this.authority,e,this.query,this.fragment)}resolve(t){return!t?this:new gs(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 gs(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 e=this.path.join("/");if(e[0]!="."||t.length>0)e="/"+e;t+=e}if(Object.keys(this.query).length>0)t+="?"+this.query.toString();if(this.fragment)t+="#"+this.fragment;return t}static parse(t){let e;switch(t){case"":case null:case undefined:break;default:let o=true;let s=[];let i=t.split("://",2);if(i.length>1){s=(i.shift()||"").split("+");t=i.shift()}else if(t.slice(0,2)=="//")t=t.slice(2);else o=false;let a;let n;if(t&&(a=t.lastIndexOf("#"))>-1){n=t.slice(a+1);t=t.slice(0,a)}let l={};if(t&&(a=t.lastIndexOf("?"))>-1){l=new Object;t.slice(a+1).split(";").forEach((t=>{i=t.split("=");const e=i.shift();const o=i.shift();if(e&&o)l[e]=o}));t=t.slice(0,a)}let r;let c=[];if(t){i=t.split("/");if(i.length>0){switch(i[0]){case".":case"..":break;case"":i.shift();break;default:if(o)r=ps.Authority.parse(i.shift());else i.unshift(".");break}c=i}}e=new gs(s,r,c,l,n);break}return e}}fs.Locator=gs;gs.empty=new gs(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(ls,"__esModule",{value:true});var ks=rs;ls.Authority=ks.Authority;var vs=ds;ls.Endpoint=vs.Endpoint;var ws=fs;ls.Locator=ws.Locator;var xs=cs;ls.User=xs.User;var Ss={};var Cs={};var zs={};Object.defineProperty(zs,"__esModule",{value:true});class js{}zs.Device=js;Object.defineProperty(Cs,"__esModule",{value:true});const Is=zs;class _s extends Is.Device{}Cs.InDevice=_s;Object.defineProperty(Ss,"__esModule",{value:true});const Ts=Cs;class Ls extends Ts.InDevice{static addOpener(t,e){if(!e)e=0;Ls.openers.push({open:t,priority:e});Ls.openers=Ls.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){let e;let o=0;do{e=Ls.openers[o++].open(t)}while(!e&&o<Ls.openers.length);return e}}Ss.Reader=Ls;Ls.openers=[];Object.defineProperty(ns,"__esModule",{value:true});const Os=ls;const As=Po;const Ms=Ss;var Es=Ss;ns.Reader=Es.Reader;class Ds extends Ms.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:Os.Locator.empty}get location(){return this.locationValue}get region(){return new As.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(t){if(!t)t=1;let e;while(t>this.buffer.length&&(e=this.backend.read()))this.buffer.push({data:e,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 e=this.peek(t);if(e&&e.length>0){this.locationValue=this.buffer[e.length-1].location;this.buffer.splice(0,e.length);this.lastContent+=e}return e}peekIs(t,e){let o;if(t)if(typeof t=="string"){const s=t;while(e&&e-- >0)t+=s;o=this.peek(t.length)==t?t:undefined}else if(t.length>0&&!(o=this.peekIs(t[0]))&&t.length)o=this.peekIs(t.slice(1));return o}readIf(t){let e;if(t)if(typeof t=="string")e=this.peek(t.length)==t&&this.read(t.length)||undefined;else if(t.length>0&&!(e=this.readIf(t[0]))&&t.length)e=this.readIf(t.slice(1));return e}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 Ds(t):undefined}}ns.BufferedReader=Ds;var $s={};var Rs={};var Ps=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(Rs,"__esModule",{value:true});function Fs(t){return Ps(this,void 0,void 0,(function*(){}))}Rs.close=Fs;function Hs(t){return Ps(this,void 0,void 0,(function*(){}))}Rs.fsync=Hs;function Ns(t,e,o){return Ps(this,void 0,void 0,(function*(){return 0}))}Rs.open=Ns;function Ys(t,e,o,s){return Ps(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}Rs.write=Ys;function Us(t,e){return{isDirectory:()=>false}}Rs.lstatSync=Us;function Ws(t){return[]}Rs.readdirSync=Ws;function Bs(t,e){return""}Rs.readFileSync=Bs;var Vs={};Object.defineProperty(Vs,"__esModule",{value:true});const Gs="/";Vs.sep=Gs;var Ks={};var Zs=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(Ks,"__esModule",{value:true});const qs=Po;const Xs=ls;const Js=Ss;class Qs extends Js.Reader{constructor(t,e){super();this.content=t;this.resource=e;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 qs.Location(this.resource,this.line,this.column)}get region(){return new qs.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Zs(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,e){return t!=undefined?new Qs(t,e||Xs.Locator.empty):undefined}}Ks.StringReader=Qs;Object.defineProperty($s,"__esModule",{value:true});const ti=Rs;const ei=Vs;const oi=ls;const si=Ss;const ii=Ks;class ai extends si.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:oi.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 e;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{e=ii.StringReader.create(ti.readFileSync((t.isRelative?"":ei.sep)+t.path.join(ei.sep),"utf-8"),t)}catch(e){console.log(`Failed to open file: ${t.toString()}`)}return e?new ai(e):undefined}}$s.FileReader=ai;si.Reader.addOpener((t=>ai.open(t)),10);var ni={};var li=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(ni,"__esModule",{value:true});const ri=Rs;const ci=Vs;const hi=ls;const di=Po;const mi=Ss;const ui=$s;class yi extends mi.Reader{constructor(t){super();this.files=t;this.tabSizeValue=2;this.lastLocation=new di.Location(hi.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 di.Region(this.resource)}close(){return li(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=ui.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 di.Region(this.resource)}static getFiles(t,e,o=[]){let s=[];const i=ri.readdirSync(t);i.forEach((i=>{const a=t+ci.sep+i;if(o.indexOf(a)==-1){if(ri.lstatSync(a).isDirectory())s=s.concat(yi.getFiles(a,e,o));else if(i.length>e.length&&i.lastIndexOf(e,i.length-e.length)===i.length-e.length)s.push(a)}}));return s}static open(t){let e;try{if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file")&&t.isFolder||t.name.match("*"))e=yi.getFiles((t.isRelative?"":ci.sep)+t.folder.path.join(ci.sep),t.extension)}catch(t){}return e?new yi(e.map((t=>new hi.Locator(["file"],undefined,t.split(ci.sep))))):undefined}}ni.FolderReader=yi;mi.Reader.addOpener((t=>yi.open(t)),0);var bi={};var fi={};var pi={};var gi={};Object.defineProperty(gi,"__esModule",{value:true});function*ki(t){let e;while((e=t())!=undefined)yield e}function vi(t){return t.next instanceof Function}function*wi(t,e){let o;while(!(o=t.next()).done)yield o.value;if(vi(e))while(!(o=e.next()).done)yield o.value;else yield e}class xi{constructor(t){this.iterator=t instanceof Function?ki(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 xi(wi(this,t))}map(t){return new xi((()=>{const e=this.fetch();return e!=undefined?t(e):undefined}))}reduce(t,e){const o=this.fetch();return o?this.reduce(t,t(e,o)):e}apply(t){const e=this.fetch();if(e){t(e);this.apply(t)}}filter(t){return new xi((()=>{let e;do{e=this.fetch()}while(e!=undefined&&!t(e));return e}))}toArray(){const t=this.fetch();let e;if(!t)e=[];else{e=this.toArray();e.unshift(t)}return e}static from(t){return new xi(t)}}gi.Enumerator=xi;xi.empty=xi.from((()=>undefined));var Si={};Object.defineProperty(Si,"__esModule",{value:true});const Ci=gi;function zi(t){return t==null?false:typeof t[Symbol.iterator]==="function"}class ji{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 Ci.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(t){return new ji((()=>this.get().append(t)))}map(t){return new ji((()=>this.get().map(t)))}reduce(t,e){return this.get().reduce(t,e)}apply(t){this.get().apply(t)}filter(t){return new ji((()=>this.get().filter(t)))}toArray(){return this.getEnumerator().toArray()}static from(t){return zi(t)?new ji((()=>new Ci.Enumerator(t[Symbol.iterator]()))):new ji((()=>{const e=t();return e instanceof Ci.Enumerator?e:new Ci.Enumerator(e)}))}}Si.Enumerable=ji;ji.empty=ji.from([]);var Ii={};Object.defineProperty(Ii,"__esModule",{value:true});const _i=gi;class Ti extends _i.Enumerator{constructor(t){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=t;this.position=0}}Ii.ArrayEnumerator=Ti;var Li={};Object.defineProperty(Li,"__esModule",{value:true});const Oi=gi;class Ai extends Oi.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 e;while(t>this.buffer.length-1&&(e=this.backend.fetch()))this.buffer.push(e);return t>this.buffer.length-1?undefined:this.buffer[t]}}Li.BufferedEnumerator=Ai;var Mi={};Object.defineProperty(Mi,"__esModule",{value:true});class Ei{static padLeft(t,e,o){return Ei.pad(t,e,o,true)}static padRight(t,e,o){return Ei.pad(t,e,o,false)}static pad(t,e,o,s){let i="";const a=o-t.length;for(let t=0;t<a;t++)i+=e;return s?i+t:t+i}}Mi.String=Ei;Object.defineProperty(pi,"__esModule",{value:true});var Di=gi;pi.Enumerator=Di.Enumerator;var $i=Si;pi.Enumerable=$i.Enumerable;var Ri=Ii;pi.ArrayEnumerator=Ri.ArrayEnumerator;var Pi=Li;pi.BufferedEnumerator=Pi.BufferedEnumerator;var Fi=Mi;pi.String=Fi.String;var Hi={};Object.defineProperty(Hi,"__esModule",{value:true});const Ni=zs;class Yi extends Ni.Device{}Hi.OutDevice=Yi;var Ui=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(fi,"__esModule",{value:true});const Wi=ls;const Bi=pi;const Vi=Hi;class Gi extends Vi.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(t){return Ui(this,void 0,void 0,(function*(){return t instanceof Bi.Enumerator?this.writeImplementation(t):t instanceof Array?this.writeImplementation(new Bi.ArrayEnumerator(t)):this.writeImplementation(new Bi.ArrayEnumerator([t]))}))}writeLine(t){return Ui(this,void 0,void 0,(function*(){return t instanceof Bi.Enumerator?this.writeImplementation(t.append(this.newLineSymbol)):t instanceof Array?this.writeImplementation(new Bi.ArrayEnumerator([...t,this.newLineSymbol])):t?this.writeImplementation(new Bi.ArrayEnumerator([t,this.newLineSymbol])):this.writeImplementation(new Bi.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(t,e){if(!e)e=0;Gi.openers.push({open:t,priority:e});Gi.openers=Gi.openers.sort(((t,e)=>e.priority-t.priority))}static open(t){return Ui(this,void 0,void 0,(function*(){let e;if(typeof t=="string"){const o=Wi.Locator.parse(t);e=o?yield Gi.open(o):undefined}else{let o=0;do{e=yield Gi.openers[o++].open(t)}while(!e&&o<Gi.openers.length)}return e}))}}fi.Writer=Gi;Gi.openers=[];Object.defineProperty(bi,"__esModule",{value:true});const Ki=fi;class Zi extends Ki.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 e=[];let o;let s=t.fetch();if(s)do{o=s;s=t.fetch();if(this.indentNext)o=this.getIndention()+o;this.indentNext=o.endsWith(this.newLineSymbol);o=o.replace(this.newLineSymbol,this.newLineSymbol+this.getIndention());if(this.indentNext)o=o.substring(0,o.length-this.indentionCount*this.indentionSymbol.length);e.push(this.backend.write(o))}while(s);return Promise.all(e).then((t=>t.reduce(((t,e)=>t&&e),true)))}}bi.Indenter=Zi;var qi={};Object.defineProperty(qi,"__esModule",{value:true});const Xi=Ss;const Ji=ns;class Qi extends Xi.Reader{constructor(t,e){super();this.prefix=e;this.done=false;this.backend=t instanceof Ji.BufferedReader?t:Ji.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,e){return t&&e?new Qi(t,e):t}}qi.PrefixReader=Qi;var ta={};var ea=$o&&$o.__awaiter||function(t,e,o,s){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{r(s.next(t))}catch(t){a(t)}}function l(t){try{r(s["throw"](t))}catch(t){a(t)}}function r(t){t.done?o(t.value):i(t.value).then(n,l)}r((s=s.apply(t,e||[])).next())}))};Object.defineProperty(ta,"__esModule",{value:true});const oa=Rs;const sa=Vs;const ia=fi;class aa extends ia.Writer{constructor(t,e){super();this.resource=t;this.descriptor=e;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return ea(this,void 0,void 0,(function*(){let t=true;try{yield oa.fsync(this.descriptor)}catch(e){t=false}return t}))}close(){return ea(this,void 0,void 0,(function*(){let t=this.opened;if(t){try{yield oa.close(this.descriptor)}catch(e){t=false}this.descriptor=0}return t}))}writeImplementation(t){return ea(this,void 0,void 0,(function*(){let e=true;const o=Buffer.from(t.reduce(((t,e)=>t+e),""));try{const t=yield oa.write(this.descriptor,o,0,"utf8");e=t.bytesWritten==o.length}catch(t){e=false}return e&&(!this.autoFlush||(yield this.flush()))}))}static open(t){return ea(this,void 0,void 0,(function*(){let e;if(t&&(t.scheme.length==0||t.scheme.length==1&&t.scheme[0]=="file"))try{e=yield oa.open((t.isRelative?"":sa.sep)+t.path.join(sa.sep),"w")}catch(t){e=undefined}return e?new aa(t,e):undefined}))}}ta.FileWriter=aa;ia.Writer.addOpener(aa.open);var na={};Object.defineProperty(na,"__esModule",{value:true});const la=Ss;const ra=ns;class ca extends la.Reader{constructor(t,e){super();this.endMark=e;this.done=false;this.backend=t instanceof ra.BufferedReader?t:ra.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,e){return t&&e?new ca(t,e):t}}na.TillReader=ca;var ha={};Object.defineProperty(ha,"__esModule",{value:true});const da=Ss;const ma=ns;class ua extends da.Reader{constructor(t,e){super();this.endMark=e;this.done=-1;this.backend=t instanceof ma.BufferedReader?t:ma.BufferedReader.create(t);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.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 e;if(this.done>0)this.done--;else if(e=this.backend.peekIs(this.endMark))this.done=e.length}return t}mark(){return this.backend.mark()}static create(t,e){return t&&e?new ua(t,e):t}}ha.UntilReader=ua;Object.defineProperty(as,"__esModule",{value:true});var ya=ns;as.BufferedReader=ya.BufferedReader;var ba=zs;as.Device=ba.Device;var fa=$s;as.FileReader=fa.FileReader;var pa=ni;as.FolderReader=pa.FolderReader;var ga=bi;as.Indenter=ga.Indenter;var ka=Cs;as.InDevice=ka.InDevice;var va=Hi;as.OutDevice=va.OutDevice;var wa=qi;as.PrefixReader=wa.PrefixReader;var xa=Ss;as.Reader=xa.Reader;var Sa=Ks;as.StringReader=Sa.StringReader;var Ca=ta;as.FileWriter=Ca.FileWriter;var za=na;as.TillReader=za.TillReader;var ja=ha;as.UntilReader=ja.UntilReader;var Ia=fi;as.Writer=Ia.Writer;Object.defineProperty(Ro,"__esModule",{value:true});const _a=Po;var Ta=Ro.Error=_a;const La=as;var Oa=Ro.IO=La;const Aa=ls;Ro.Uri=Aa;const Ma=pi;var Ea=Ro.Utilities=Ma;class Da extends Oa.BufferedReader{constructor(t,e){super(typeof t=="string"?Oa.StringReader.create(t):t);this.errorHandler=e}raise(t,e,o="lexical",s){if(!(t instanceof Ta.Message)){if(!e)e=Ta.Level.Critical;if(!s)s=this.region;t=new Ta.Message(t,e,o,s)}if(this.errorHandler)this.errorHandler.raise(t)}requirePrefix(t){return new Da(new Oa.PrefixReader(this,t),this.errorHandler)}till(t){return new Da(Oa.TillReader.create(this,t),this.errorHandler)}until(t){return new Da(Oa.UntilReader.create(this,t),this.errorHandler)}peekIsSymbol(t){return this.peekIs(t??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function $a(t,e,o){const s=new Da(t,e);return new Ea.Enumerator((()=>{let t;let e=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(e=s.peekIsSymbol(o))t={value:s.read(e)||"",region:s.mark()};else{let e="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))e+=s.read();if(e)t={value:e,region:s.mark()}}}return t}))}class Ra{tokenize(t){return $a(t,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((t=>({value:t.value}))).toArray()}}class Pa extends Ra{constructor(t){super();this.class="array";this.array=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return Pa.completor.flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])}isType(t){return global.Array.isArray(t)}static add(...t){this.completor.push(...t)}static is(t){return t instanceof Pa}}Pa.completor=[];var Fa;(function(t){function e(t){return typeof t=="object"&&typeof t.start=="number"&&typeof t.end=="number"}t.is=e})(Fa||(Fa={}));var Ha;(function(t){function e(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=e;function o(t,e,s){return Array.isArray(e)?e.map((e=>o(t,e,s))):{value:t+e.value+(s??""),cursor:typeof e?.cursor=="number"?e?.cursor+t.length:Fa.is(e.cursor)?{start:e.cursor.start+t.length,end:e.cursor.end+t.length}:e.value.length+t.length,suggestion:e.suggestion}}t.prepend=o})(Ha||(Ha={}));class Na extends Ra{constructor(){super();this.class="boolean"}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;const i=o?Na.literals.filter((t=>t.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Ha.prepend(":",Na.literals.filter((t=>t.value.startsWith(s[1]?.value??"")))):[];return[...i??[],...(o?[]:Na.completor).flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return typeof t=="boolean"}static add(...t){this.completor.push(...t)}}Na.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Na.completor=[];var Ya;(function(t){function e(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t.length<=3&&t[0].value==":"&&o.value.startsWith(t[1]?.value??"")&&(t[2]?.value??"(")=="("?Ha.prepend(":",[o]):t.length<=4&&t.slice(0,4).reduce(((t,e)=>t+e.value),"")==":"+o.value?Ha.prepend(":"+o.value.substring(0,o.value.length-1),e(),")"):t.length==5&&t.slice(0,3).reduce(((t,e)=>t+e.value),"")+t[4].value==":"+o.value?Ha.prepend(":"+o.value.substring(0,o.value.length-1),e(t.slice(3,t.length-1)),")"):t.length>5&&t.slice(0,3).reduce(((t,e)=>t+e.value),"")+t[t.length-1].value==":"+o.value?Ha.prepend(":"+o.value.substring(0,o.value.length-1),e(t.slice(3,t.length-1)),")"):[]}t.functions=e;function o(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1?Ha.prepend(":",[o]):Ha.prepend(":",e(t.slice(1)))}t.expressions=o;function s(t,e,o){return t.length>=1&&t[0].value==o.value?Ha.prepend(o.value,e(t.slice(1))):t.length==0||t.length==1&&o.value.startsWith(t[0].value)||t[0].value==o.value.replace(/ /g,"")?[o]:[]}t.operators=s})(Ya||(Ya={}));class Ua extends Ra{constructor(t){super();this.input=t;this.class="number";if(t)this.value=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return[...s.length>0&&s[0].value==":"&&e?Ha.prepend(":",e.complete(s.slice(1),undefined,this)):e&&s.length>=0&&o?Ha.prepend(" ",e?.complete(s,undefined,undefined)):[],...(o?Ua.completorArgument:Ua.completor).flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}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 Ua||!global.Number.isNaN(t)}}Ua.completor=[];Ua.completorArgument=[];class Wa extends Ra{constructor(t){super();this.properties=t;this.class="object";this.completions=Object.keys(this.properties).map((t=>({value:t,suggestion:{value:t}})))}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;let i;const a=this.filterByType(o);if(!e){const t=s.length>0?this.match(s[0],a):undefined;if(t)i=s.length>=1?Ha.prepend(t.value,this.properties[t.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))i=Ha.prepend(s[0].value+s[1].value+s[2].value,o.complete(s.slice(3),this,o));else if(o&&s.length>0&&o.isType(s[0].value))i=Ha.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let t;i=s.length==0?[...this.addDot(a,o),...o?.class=="number"?[]:Wa.wildcard]:s.length==1&&(t=Wa.wildcard.find((t=>t.value==s[0].value)))?Ha.prepend(t.value,this.completions,o?".":""):s.length>=1&&(t=Wa.wildcard.find((t=>t.value==s[0].value)))?Ha.prepend(t.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],a),o)}}else i=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Ha.prepend(".",this.addDot(a,o)):this.properties[s[1].value]?Ha.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),e,o)):Ha.prepend(".",this.addDot(this.partial(s[1],a),o));return[...i.reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[]),...Wa.completor.flatMap((t=>t(s,this,e)))]}filterByType(t){return t?this.completions.filter((e=>this.properties[e.value].class==t.class||(this.properties[e.value].class=="object"?this.properties[e.value].filterByType(t).length>0:false))):this.completions}addDot(t,e){return!t?[]:e?t.map((t=>this.properties[t.value].class=="object"?{value:t.value+".",suggestion:{value:t.suggestion?.value+"."}}:t)):t}partial(t,e){const o=e.filter((e=>e.value.startsWith(t.value)));return o&&o.length>0?o:undefined}match(t,e){const o=e.filter((e=>e.value==t.value));return o&&o.length>0?o[0]:undefined}isType(t){return false}static add(...t){this.completor.push(...t)}}Wa.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Wa.completor=[];class Ba extends Ra{constructor(t){super();this.class="string";if(t)this.value=t}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;let i;if(o)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??"")?[Ha.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...i??[],...(o?[]:Ba.completor).flatMap((t=>t(s,this,e))).reduce(((t,e)=>t.some((t=>t.value==e.value&&t.cursor==e.cursor))?t:[...t,e]),[])]}isType(t){return typeof t.value=="string"}static add(...t){this.completor.push(...t)}static is(t){return t instanceof Ba}}Ba.completor=[];class Va extends Ra{constructor(t){super();this.type=t;this.class="union"}complete(t,e,o){const s=typeof t=="string"?this.tokenize(t):t;return this.type?this.type?.flatMap((t=>t?.complete(s,e,o)??[])):[]}isType(t){return t instanceof Va}static is(t){return t instanceof Va}}var Ga;(function(t){function e(t,e){const o=t.complete(e);return o.filter((t=>!e.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=e;function o(t){let e;switch(typeof t){case"object":e=global.Array.isArray(t)?new Pa(t.map((t=>o(t)))):new Wa(global.Object.entries(t).reduce(((t,e)=>({...t,[e[0]]:o(e[1])})),{}));break;case"string":e=new Ba(t);break;default:e=new Ua(t);break}return e}t.convert=o;t.Array=Pa;t.Boolean=Na;t.Completion=Ha;t.Object=Wa;t.String=Ba;t.Number=Ua;t.Union=Va;t.Completor=Ya})(Ga||(Ga={}));class Ka extends Co{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 Za(t,e){return Ya.expressions(t,(t=>!t||t[0].value=="*"&&e.value&&e.value.endsWith(t[1]?.value??"")?[Ga.Completion.prepend("*",{value:e?.value??"",suggestion:{value:e?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Ga.String.add(Za);class qa extends Co{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 Xa(t,e){const o=t=>e.array.some(Ga.String.is)&&t?e.array.filter(Ga.String.is).map((e=>e.complete([{value:":"},...t]))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Ga.String.is)?e.array.filter(Ga.String.is).map((t=>({value:t?.value??""}))):e.array.some(Ga.Number.is)&&t?e.array.filter(Ga.Number.is).map((e=>e.complete(t))).reduce(((t,e)=>Array.isArray(e)?t.concat(e):e?[...t,e]:t),[]):!t&&e.array.some(Ga.Number.is)?e.array.filter(Ga.Number.is).map((t=>({value:(t?.value??"").toString()}))):[];return Ya.functions(t,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Ga.Array.add(Xa);class Ja extends Co{constructor(t,e,o){super();this.identifier=t;this.argument=e;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(t){return this.definition?.is(t)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class Qa{stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}}class tn extends Qa{constructor(t,e){super();this.name=e;this.precedence=tn.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,e){return new tn(t,e)}}tn.precedence=19;class en extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(t,e){return(isNaN(+t)?t:+t)>(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function on(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">",suggestion:{value:">"}})}Ga.Number.add(on);Ga.String.add(on);class sn extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(t,e){return(isNaN(+t)?t:+t)>=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function an(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:">=",suggestion:{value:">="}})}Ga.Number.add(an);Ga.String.add(an);class nn extends Co{constructor(t){super();this.property=t;this.precedence=85;this.class="Has"}is(t,e){return typeof t=="object"&&t?Object.entries(t).some((t=>{e=typeof e=="string"?e:this.property;return t[0]==e?true:typeof t[1]=="object"&&t[1]?this.is(t[1],e.includes(".")&&e.split(".")[0]==t[0]?e.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function ln(t,e,o){return o&&e?.class=="object"?Ya.functions(t,(t=>e.completions.filter((e=>e.value.startsWith(t?t[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Ga.Object.add(ln);class rn extends Co{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 cn(t,e){const o=new rn(t);return e?o.is(e):o}function hn(t,e){return Ya.expressions(t,(t=>!t||t.length==3&&e.value?.includes(t[1].value)&&e.value!=t[1].value||t.length==2&&t[0].value+t[1].value=="**"?[Ga.Completion.prepend("*",{value:e?.value??"",suggestion:{value:e?.value??""}},"*")]:t.length==1&&t[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Ga.String.add(hn);class dn extends Co{constructor(t){super();this.criteria=t;this.precedence=100;this.class="Some"}is(t,e){return Array.isArray(t)&&t.some((t=>this.criteria.is(t,e)))}toString(){return`some(${this.criteria.toString()})`}}function mn(t,e){const o=new dn(To(t));return e?o.is(e):o}function un(t,e,o){return t.length==0?[{value:":",suggestion:{value:":"}}]:t[0].value!=":"?[]:t.length==1&&t[0].value==":"?Ga.Completion.prepend(":",e.array.filter(Ga.String.is).filter((t=>t.value&&t.value!="string")).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):t.length==2&&t[0].value==":"?Ga.Completion.prepend(":",e.array.filter(Ga.String.is).filter((e=>e.value&&e.value!="string"&&e.value.startsWith(t[1].value))).map((t=>({value:t?.value??"",suggestion:{value:t?.value??""}})))):[]}Ga.Array.add(un);class yn extends Co{constructor(t){super();this.value=t;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(t,e){return Array.isArray(t)&&Do(this.value)?mn(this.value,t):(typeof t=="boolean"?t.toString():isNaN(+t)?t:+t)==(typeof this.value=="object"?this.value.evaluate(e):this.value)}toString(){return this.value.toString()}}jo((t=>typeof t=="bigint"||typeof t=="boolean"||typeof t=="number"||typeof t=="string"?new yn(t):undefined));class bn extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(t,e){return(isNaN(+t)?t:+t)<(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function fn(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<",suggestion:{value:"<"}})}Ga.Number.add(fn);Ga.String.add(fn);class pn extends Co{constructor(t){super();this.value=t;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(t,e){return(isNaN(+t)?t:+t)<=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(e))}toString(){return this.value.toString()}}function gn(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,e):[]),{value:"<=",suggestion:{value:"<="}})}Ga.Number.add(gn);Ga.String.add(gn);function kn(t,e){return Ya.expressions(t,(t=>t&&t?.length==1&&t[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Ga.String.add(kn);class vn extends Co{constructor(t){super();this.criteria=t;this.precedence=vn.precedence;this.class="Not"}is(t){return!this.criteria.is(t)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}vn.precedence=90;function wn(t,e){const o=new vn(To(t));return e?o.is(e):o}function xn(t,e,o){return e&&e.class!="object"&&o?Ya.expressions(t,(t=>t[0].value!="!"?[]:Ga.Completion.prepend("!",e.complete(t.slice(1),o,e))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Ga.String.add(xn);Ga.Number.add(xn);Ga.Boolean.add(xn);Ga.Object.add(xn);class Sn extends Co{constructor(t){super();this.precedence=Sn.precedence;this.class="Or";this.criteria=t.reduce(((t,e)=>e instanceof Sn?[...t,...e.criteria]:[...t,e]),[])}is(t){return this.criteria.some((e=>e.is(t)))}toString(){return this.criteria.map((t=>t.stringify(this.precedence))).join(" | ")}}Sn.precedence=30;function Cn(t,e,o){return Ga.Completor.operators(t,(t=>t&&o?o?.complete(t,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Ga.Number.addArgument(Cn);class zn extends Ea.BufferedEnumerator{constructor(t,e){super(Array.isArray(t)?new Ea.ArrayEnumerator(t):t);this.errorHandler=e}clone(t="(",e=")"){let o=0;return new zn(new Ea.Enumerator((()=>{let s;if(this.peekIs(t))o++;else if(this.peekIs(e))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...t){return t.every(((t,e)=>{const o=this.peek(e);return o&&o.value&&zn.is(t,o.value)}))}fetchIf(...t){const e=[];if(this.peekIs(...t))t.forEach((t=>e.push(this.fetch())));return t.length==1?e.length==1?e[0]:undefined:t.length==e.length?e:undefined}mark(){return Ea.Enumerable.from(Ea.Enumerable.empty)}raise(t,e=Ta.Level.Critical,o="grammatical",s){if(typeof t=="string"){if(!s&&this.last)s=this.last.region;t=new Ta.Message(t,e,o,s)}this.errorHandler.raise(t)}static is(t,e){return Array.isArray(t)?t.some((t=>zn.is(t,e))):typeof t!="string"?t.test(e):t.startsWith("!")&&t!="!"?!zn.is(t.substring(1),e):t=="any"?zn.symbol.every((t=>t!=e)):t=="symbol"?zn.symbol.some((t=>t==e)):t=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(e):t==e}}zn.wildcard=["*","?"];zn.separator=["(",")","."];zn.operator=["!","|"];zn.comparator=["<","<=",">",">=",":"];zn.binaryOperator=[" * "," + "," - "];zn.symbol=[...zn.wildcard,...zn.separator,...zn.operator,...zn.comparator];function jn(t,e){if(typeof t=="string"){e=e||new Ta.ConsoleHandler;const o=$a(t,e).toArray();t=new zn(o,e)}e=e instanceof Co?e:undefined;const o=[];while(t.peek()){if(t.fetchIf("|"))o[o.length-1]=new Sn([o[o.length-1],In(0,t)]);else o.push(In(0,t))}return o.length==1?o[0]:new Ao(o)}function In(t,e){let o;const s=typeof t=="number"?e=>t<e:e=>t.precedence>e;const i=typeof t=="number"?undefined:t;for(const t of _n)if(s(t[1]||Number.MAX_SAFE_INTEGER)){const s=t[0](e,i);if(s){o=In(s,e);break}}return o||i||new Ao([])}const _n=[];function Tn(t,e){_n.push([t,e])}function Ln(t,e){if(typeof t=="string"){e=e||new Ta.ConsoleHandler;const o=$a(t,e).toArray();t=new zn(o,e)}e=e instanceof Qa?e:undefined;let o;let s=false;let i=false;while(!o!=s&&!i&&t.peek()){let e=1;s=false;i=false;while(!s&&!i&&t.peek(e)){s=zn.binaryOperator.some((o=>t.peek(e)?.value==o));i=zn.comparator.some((o=>t.peek(e)?.value==o));e++}o=On(o??Number.MAX_SAFE_INTEGER,t)}if(!o)t.raise("Missing Expression");return o??new tn(NaN)}function On(t,e){let o;const s=typeof t=="number"?undefined:t;for(const s of An){const i=s[0](e,t);if(i){o=i;break}}return o||s}const An=[];function Mn(t,e){An.push([t,e])}Tn((t=>{const e=t.fetchIf(":","every","(")&&new qa(jn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));Tn((t=>{const e=t.fetchIf(":","some","(")&&new dn(jn(t.clone()));if(e&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return e}));Tn(En(jn));Mn(En(Ln));function En(t){return e=>{const o=e.fetchIf("(")&&t(e.clone());if(o&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return o}}Tn((t=>t.fetchIf(">")&&new en(Ln(t))));Tn((t=>t.fetchIf(">=")&&new sn(Ln(t))));Tn((t=>t.fetchIf("<")&&new bn(Ln(t))));Tn((t=>t.fetchIf("<=")&&new pn(Ln(t))));Tn((t=>t.fetchIf("!")&&new vn(In(vn.precedence,t))));Tn((t=>{const e=t.fetchIf("has","(","any",")")||t.fetchIf(":","has","(","any",")");return e&&new nn(e.length==4?e[2].value:e[3].value)}));class Dn extends Co{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 $n(t,e){const o=new Dn(t);return e?o.is(e):o}function Rn(t,e,o){return o&&e?.class?Ya.functions(t,(t=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Ga.String.add(Rn);Ga.Number.add(Rn);Tn((t=>{const e=t.fetchIf(":","within","(");let o;if(e&&t.peek()){o=[t.fetch()?.value??""];while(t.fetchIf(","))o.push(t.fetchIf("any")?.value??"");if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return e&&o?new Dn(o):undefined}));class Pn extends Co{constructor(t){super();this.criteria=t;this.precedence=85;this.class="Contains"}is(t,e){return Array.isArray(t)&&this.criteria.every((e=>t.some((t=>e==t))))}toString(){return`contains(${this.criteria.join(", ")})`}}function Fn(t,e){const o=new Pn(t);return e?o.is(e):o}function Hn(t,e,o){return Ya.functions(t,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Ga.Array.add(Hn);Tn((t=>{const e=t.fetchIf(":","contains","(");const o=[];if(e&&t.peek()){do{o.push(t.fetchIf("any")?.value??"")}while(t.fetchIf(","));if(!t.fetchIf(")"))t.raise("Missing end of parenthesis.")}return e&&o.length>0?new Pn(o):undefined}));Tn((t=>{const e=t.peek(3)?.value;const o=[")",",","("].find((t=>t==e))||t.peek(2)?.value==")"?t.fetchIf("identifier","("):undefined;let s;if(o&&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 o&&s?new Ja(o[0].value,s):undefined}));class Nn extends Co{constructor(t,e){super();this.name=t;this.criteria=e;this.precedence=Nn.precedence;this.class="Property";this.symbol="."}is(t,e){return!this.criteria?t==e?.[this.name]:typeof t=="object"?this.criteria.is(t[this.name],e??t):this.criteria.is(t,e?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Nn.precedence=80;function Yn(t,e,o){const s=(Array.isArray(t)?t:[t]).reduceRight(((t,e)=>new Nn(e,t)),To(e));return o?s.is(o):s}jo((t=>typeof t=="object"&&!(t instanceof Co)&&!Array.isArray(t)?Mo(...Object.getOwnPropertyNames(t).map((e=>Yn(e,t[e])))):undefined));Tn((t=>{const e=[];let o;while(o=t.fetchIf("identifier","."))e.push(o[0].value);if(t.peekIs("identifier",zn.comparator)&&(o=t.fetchIf("identifier")))e.push(o.value);return e.length>0?e.reduceRight(((t,e)=>new Nn(e,t)),t.peekIs("identifier")&&(o=t.fetchIf("identifier"))?new Nn(o.value):In(Nn.precedence,t)):undefined}));Tn((t=>{const e=t.fetchIf(":","*","any","*")||t.fetchIf("*","any","*");return e&&new rn(e.length==4?e[2].value:e[1].value)}));class Un extends Co{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 Wn(t,e){return Ya.expressions(t,(t=>!t||t.length==1&&t[0].value=="*"||t.length==2&&t[1].value=="*"&&e.value&&e.value.startsWith(t[0]?.value??"")?[Ga.Completion.prepend("",{value:e?.value??"",suggestion:{value:e?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Ga.String.add(Wn);Tn((t=>{const e=t.fetchIf(":","any","*")||t.fetchIf("any","*");return e&&new Un(e?.length==3?e[1].value:e[0].value)}));Tn((t=>{const e=t.fetchIf(":","*","any")||t.fetchIf("*","any");return e&&new Ka(e?.length==3?e[2].value:e[1].value)}));class Bn extends Qa{toString(){const t=this.symbol;return this.left.stringify(Bn.getPrecedence(t))+` ${t} `+this.right.stringify(Bn.getPrecedence(t))}constructor(t,e,o,s){super();this.precedence=e;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=t.replace(/ /g,"")}evaluate(t){let e;switch(this.getSymbol()){case"+":e=this.left.evaluate(t)+this.right.evaluate(t);break;case"-":e=this.left.evaluate(t)-this.right.evaluate(t);break;case"*":e=this.left.evaluate(t)*this.right.evaluate(t);break;default:e=NaN;break}return e}getSymbol(){return this.symbol}stringify(t=0){let e=this.toString();if(this.precedence<t)e="("+e+")";return e}static getPrecedence(t){let e;t=t?.replace(/ /g,"");switch(t){case"+":e=14;break;case"-":e=15;break;case"*":e=16;break;default:e=undefined;break}return e}static create(t,e,o){let s;const i=new Bn("+",14,e,o);const a=Bn.getPrecedence(t);if(a)s=new Bn(t,a,e,o);return s||i}}function Vn(t,e,o){return[" + "," - "," * "].map((t=>({value:t,suggestion:{value:t}}))).map((s=>Ga.Completor.operators(t,(t=>t?o.complete(t,undefined,e):[]),s))).reduce(((t,e)=>t.concat(e)),[])}Ga.Number.addArgument(Vn);Mn(((t,e)=>{let o;const s=t.peekIs(zn.binaryOperator)&&t.fetch().value;let i;if(s&&typeof e=="object"){let a;let n;let l=0;i=Bn.getPrecedence(s);while(!n&&t.peek(l)){n=t.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Bn.getPrecedence(t.peek(l)?.value);l++}if(n&&i<n){a=On(i,t);if(!a){t.raise("Missing right hand side of "+s)}}else a=On(NaN,t);if(n&&i==n||n==Number.MAX_SAFE_INTEGER){o=On(new Bn(s,i,e,a),t)}else o=new Bn(s,i,e,a)}return o}));Mn(((t,e)=>{const o=[];let s;while(s=t.fetchIf("identifier","."))o.push(s[0].value);let i;if(o.length==0){s=t.fetchIf("any",".","any")||t.fetchIf("any",",","any")||t.fetchIf("any");i=s&&(Array.isArray(s)?new tn(+s.map((t=>t.value.replace(",","."))).join("")):new tn(s.value))}else{s=t.fetchIf("identifier");const e=new tn(s?s.value:0);i=o.length>0?o.reduceRight(((t,e)=>new tn(isNaN(+t)?t:+t,e)),e):undefined}if(i&&typeof e=="number"&&!isNaN(e)&&e!=Number.MAX_SAFE_INTEGER)i=On(i,t);return i}));Tn((t=>{let e;if(t.fetchIf(":")){let o=false;let s=false;let i=1;while(!o&&!s&&t.peek(i)){o=zn.binaryOperator.some((e=>t.peek(i)?.value==e));s=zn.comparator.some((e=>t.peek(i)?.value==e));i++}if(o)e=Ln(t)}const o=t.fetchIf("any");return e?new yn(e):o&&new yn(o.value)}));Tn((t=>{t.raise(`Ignoring unknown token "${t.fetch()}"`);return undefined}));function Gn(t,e,o={input:[],identifier:[]}){return Kn[e?.class]?.(t,e,o)??e}const Kn={};function Zn(t,e){Kn[t]=e}Zn("And",((t,e,o)=>new Ao(e.rules.map((e=>Gn(t,e,o))))));var qn;(function(t){function e(t,e){let o=undefined;let s;const i=typeof t=="string"?t:t.toString();if(e&&e.input&&e.identifier&&e?.input?.length>0&&e?.identifier?.length>0&&e.identifier.includes(i)){s=e.identifier.indexOf(i);o=isNaN(+e.input[s])?e.input[s]:+e.input[s]}return o}t.argument=e})(qn||(qn={}));Zn("EndsWith",((t,e,o)=>{const s=qn.argument(e.needle,o);return s?new Ka(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("Every",((t,e,o)=>new qa(Gn(t,e.criteria,o))));Zn("FunctionCall",((t,e,o)=>{const s=t[e.identifier];const i=s?jn(s.definition):undefined;const a=i?Gn(t,i,{input:o?.input?.concat(e.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Ja(e.identifier,e.argument,a)}));Zn("GreaterThan",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new en(s):e}));Zn("GreaterThanOrEqual",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new sn(s):e}));Zn("Has",((t,e,o)=>{const s=qn.argument(e.property,o);return s?new nn(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("Includes",((t,e,o)=>{const s=qn.argument(e.needle,o);return s?new rn(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("LesserThan",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new bn(s):e}));Zn("LesserThanOrEqual",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new pn(s):e}));Zn("Not",((t,e,o)=>new vn(Gn(t,e.criteria,o))));Zn("Or",((t,e,o)=>new Sn(e.criteria.map((e=>Gn(t,e,o))))));Zn("Property",((t,e,o)=>new Nn(e.name,e.criteria&&Gn(t,e.criteria,o))));Zn("Some",((t,e,o)=>new dn(Gn(t,e.criteria,o))));Zn("StartsWith",((t,e,o)=>{const s=qn.argument(e.needle,o);return s?new Un(typeof s=="object"?s.value.toString():s.toString()):e}));Zn("Is",((t,e,o)=>{const s=qn.argument(e.value,o);return s?new yn(s):e}));class Xn extends Co{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(((e,o)=>e.is(t[o])))}toString(){return`[${this.criteria.map((t=>t.toString())).join(", ")}]`}}jo((t=>Array.isArray(t)?new Xn(t.map(To)):undefined));function Jn(t,e){const o=To(t);return e?o.is(e):o}function Qn(t,e){const o=To(t);return o.filter(e)}const tl=j({emit:c()});var el;(function(t){let e;(function(t){t.type=j({property:I().optional(),properties:h(I(),I()).optional()})})(e=t.Element||(t.Element={}));t.type=e.type.extend({smoothlyFilterUpdate:tl,smoothlyFilterManipulate:tl})})(el||(el={}));const ol='.sc-smoothly-filter-h {\n\tposition: relative;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tmargin-left: 1rem;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tmargin-right: 1rem;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n\n.sc-smoothly-filter-h>div.sc-smoothly-filter-s > [slot=detail] {\n\tz-index: 5;\n}\n\n.sc-smoothly-filter-h.sc-smoothly-filter-s > [slot=bar] {\n\tpointer-events: auto;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\n\t&>[looks="plain"] {\n\t\tdisplay: flex;\n\t\talign-self: stretch;\n\t\talign-items: center;\n\t}\n}\n\n.sc-smoothly-filter-h > div.sc-smoothly-filter:empty + smoothly-icon.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > smoothly-icon.sc-smoothly-filter {\n\tcursor: pointer;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\tflex-shrink: 0;\n}\n\n.sc-smoothly-filter-h > div.close.sc-smoothly-filter {\n\tposition: fixed;\n\tz-index: 3;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100dvw;\n\theight: 100dvh;\n\tbackground: transparent;\n}\n\n.sc-smoothly-filter-h > div.hidden.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > .container.sc-smoothly-filter {\n\tpadding: 2em;\n\tposition: absolute;\n\tright: 0.35em;\n\twidth: fit-content;\n\tdisplay: flex;\n\tjustify-content: center;\n\ttop: 100%;\n\twidth: fit-content;\n\tz-index: 4;\n\tbackground-color: rgb(var(--smoothly-color));\n\tmargin: 0.8em -2em;\n}\n\n\n.sc-smoothly-filter-h > div.container.sc-smoothly-filter:before {\n\tcontent: "";\n\twidth: 0.6em;\n\theight: 0.6em;\n\ttransform: rotate(45deg);\n\tborder-top: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-left: 1px solid rgb(var(--smoothly-medium-tint));\n\tbackground-color: rgb(var(--smoothly-color));\n\tposition: absolute;\n\tz-index: 3;\n}\n\n\n.sc-smoothly-filter-h > div.container.arrow-top.sc-smoothly-filter:before {\n\tleft: calc(91%);\n\ttop: -5px;\n}\n\n.sc-smoothly-filter-h div.container.sc-smoothly-filter:after {\n\tcontent: "";\n\theight: 100%;\n\twidth: 100%;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-radius: 0.25em;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}';const sl=ol;const il=class{constructor(e){t(this,e);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Mo();this.expanded=false}updateHandler(t){t.stopPropagation();if(el.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=Mo(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=Mo());this.filters.forEach((t=>t(this.criteria)))}render(){return e(s,{key:"d0758e4b4003774f8d64ea98dd189c9d1bc4dfb7"},e("slot",{key:"326730f0a2cdc4efe92f75be74f50e9d0afc2337",name:"bar"}),e("smoothly-filter-field",{key:"771a0da9c7c28810fb8b9c3eae4e0b2d6a8d629a",criteria:this.criteria,ref:t=>this.field=t}),this.criteria.toString()!=""&&e("smoothly-icon",{key:"f0699e512b801b2a82a4b6a75764455c4f6ff970",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),e("div",{key:"4ed85c23a785b8f5a96d97acee1ec4bcdf11ccf1",class:this.expanded?"container arrow-top":"hidden"},e("slot",{key:"d41a7a8ed289625aa1f9de25b19a39cda75b6c29",name:"detail"})),e("smoothly-icon",{key:"534e48505b05d18bdbbc6d5817ef4f10d8c9f045",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),e("div",{key:"52289b92ffc7b5f53e287c5c875ec3605ee307a2",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};il.style=sl;const al=".sc-smoothly-filter-field-h{flex-grow:5}";const nl=al;const ll=class{constructor(e){t(this,e);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.value="";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(jn((t=this.value)!==null&&t!==void 0?t:""))}updateValue(t){this.value=t.detail.filter}render(){return e(s,{key:"247786bb8724ddcd5344cc02bb4f36e13737e43e"},e("smoothly-input",{key:"3b8088c08cf3a7671b8b9b33e48ac133b7d4fe14",name:"filter",ref:t=>this.input=t,value:this.criteria.toString(),onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyKeydown:t=>{t.stopPropagation();t.detail.key=="Enter"&&this.filterFieldEmit()},onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.updateValue(t)}},"Filter"))}};ll.style=nl;const rl=".sc-smoothly-filter-input-h{display:contents}.sc-smoothly-filter-input-h>smoothly-input.sc-smoothly-filter-input{flex-grow:1;min-width:10em;flex-basis:40%}";const cl=rl;const hl=class{constructor(e){t(this,e);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.type="text";this.needle="";this.label=undefined;this.property=undefined;this.placeholder=undefined}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(t){var e;if(t instanceof Ao&&t.rules.length>0)for(const o of t.rules){const t=this.isCriteria(o,this.property);if(t){this.needle=(e=t.needle)!==null&&e!==void 0?e:"";break}}else this.needle=""}isCriteria(t,e){const[o,...s]=e.split(".");return t instanceof Nn&&t.name==o&&(t.criteria instanceof rn&&t.criteria||t.criteria instanceof Nn&&this.isCriteria(t.criteria,s.join(".")))||undefined}inputHandler(t){t.stopPropagation();const e=t.detail[this.property];const o=t=>{let o=t;const s=e?this.getCriteria(e):undefined;if(o instanceof Ao){const t=o.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s?t!=-1&&o.rules.splice(t,1):t==-1?o.rules.push(s):o.rules[t]=s;o=Mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(t){return this.property.split(".").reduceRight(((t,e)=>Yn(e,t)),cn(t))}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Nn&&t.name==o&&(s.length==0||!!t.criteria&&this.findInstanceOf(t.criteria,s.join(".")))}render(){return e("smoothly-input",{key:"b9c0bad8ca30d5e45e9686b52f8536cf8b0f3a29",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyFormDisable:t=>t.stopPropagation(),onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyChange:t=>t.stopPropagation(),onSmoothlyInput:t=>this.inputHandler(t)},this.label,e("slot",{key:"b6bda14b39abfb507ce5a83f0cf95efb218d7c36"}))}};hl.style=cl;const dl=".sc-smoothly-filter-select-h{display:contents}.sc-smoothly-filter-select-h>smoothly-input-select.sc-smoothly-filter-select{flex-grow:1;width:12.5em}.options.sc-smoothly-filter-select{border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}";const ml=dl;const ul=class{constructor(e){t(this,e);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.updating=false;this.items=new Map;this.label=undefined;this.property=undefined;this.menuHeight=undefined;this.multiple=false;this.type="string";this.looks=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var e;return this.looks=(e=this.looks)!==null&&e!==void 0?e:t}))}async componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(t){var e,o;(o=await((e=this.selectElement)===null||e===void 0?void 0:e.getItems()))===null||o===void 0?void 0:o.forEach((t=>this.items.set(t.value,{state:this.property.split(".").reduceRight(((t,e)=>({[e]:t})),t.value),item:t})))}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks)}}update(t){this.updating=true;if(t instanceof Ao&&t.rules.length>0)for(const e of this.items.values()){const o=t.rules.some((t=>this.isCriteria(t,this.property,e.state)&&(this.type=="array"?this.findInstanceOf(t,this.property):t.is(e.state))));e.item.selected=o}else this.items.forEach((t=>t.item.selected=false));this.updating=false}isCriteria(t,e,o){const[s,...i]=e.split(".");const a=t instanceof Nn&&t.name==s?this.isCriteria(t.criteria,i.join("."),o[s]):this.multiple?t instanceof Dn&&t.value.some((t=>t==o))||this.type=="array"&&t instanceof Pn&&t.criteria.some((t=>t==o)):t instanceof yn&&t.value==o;return a}selectHandler(t){t.stopPropagation();if(!this.updating){const e=t.detail[this.property];const o=t=>{let o=t;const s=this.getCriteria(e);if(!(o instanceof Co))o=s?Mo(o,s):o;else if(o instanceof Ao){const t=o.rules.findIndex((t=>this.findInstanceOf(t,this.property)));!s&&t>=0?o.rules.splice(t,1):!s?undefined:t==-1?o.rules.push(s):o.rules[t]=s;o=Mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(t,e){const[o,...s]=e.split(".");return t instanceof Nn&&t.name==o&&(t.criteria instanceof Dn||t.criteria instanceof yn||t.criteria instanceof Pn||t.criteria instanceof Nn&&this.findInstanceOf(t.criteria,s.join(".")))}getCriteria(t){let e;if(this.multiple&&I().array({criteria:"minLength",value:1}).is(t))e=this.type=="array"?Fn(t):$n(t);else if(typeof t=="string")e=Jn(t);else e=undefined;return e&&this.property.split(".").reduceRight(((t,e)=>Yn(e,t)),e)}render(){return e("smoothly-input-select",{key:"9107d3913b3e08208538db9de5d27e9b8107c816",ref:t=>this.selectElement=t,name:this.property,looks:this.looks,multiple:this.multiple,menuHeight:this.menuHeight,onSmoothlyInputLooks:t=>t.stopPropagation(),onSmoothlyItemSelect:t=>t.stopPropagation(),onSmoothlyInput:t=>this.selectHandler(t)},this.label&&e("span",{key:"63b6cea56be4665c27dcb4822bd55700b1e62a7e",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),e("slot",{key:"30843b98d8e72b9eb258dfc6f12e58e5b49394ce",name:"items"}))}get element(){return i(this)}};ul.style=ml;const yl=".sc-smoothly-filter-toggle-h{position:relative;display:inline-block;cursor:pointer}.sc-smoothly-filter-toggle-h:hover>smoothly-icon.sc-smoothly-filter-toggle{stroke:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-tint));fill:rgb(var(--smoothly-success-tint))}[flip].sc-smoothly-filter-toggle-h{transform:scaleX(-1)}";const bl=yl;const fl=class{constructor(e){t(this,e);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(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 Ao&&t.rules.length>0){this.active=Object.entries(this.properties).every((([e,o])=>t.rules.some((t=>{const s=!this.not?t:t instanceof vn?t.criteria:undefined;return o==""?!(s instanceof Nn&&s.name==e):this.isCriteria(s,e,o)}))))}else this.active=false}isCriteria(t,e,o){const[s,...i]=e.split(".");return t instanceof Nn&&t.name==s&&(t.criteria instanceof yn&&t.criteria.value==o||this.isCriteria(t.criteria,i.join("."),o))}activeHandler(t){const e=e=>{let o=e;t&&(this.active=!this.active);if(o instanceof Ao){for(const[t,e]of Object.entries(this.properties)){const s=!this.active||this.active&&e==""?undefined:this.not?wn(this.createCriteria(t,e)):this.createCriteria(t,e);const i=o.rules.findIndex((e=>this.findInstanceOf(e,t)));!s&&i>=0?o.rules.splice(i,1):!s?undefined:i==-1?o.rules.push(s):o.rules[i]=s}o=Mo(...o.rules)}return o};this.smoothlyFilterManipulate.emit(e.bind(this))}createCriteria(t,e){const[o,...s]=t.split(".");return Yn(o,s.length==0?Jn(e):this.createCriteria(s.join("."),e))}findInstanceOf(t,e){const o=!this.not?t:t instanceof vn?t.criteria:false;const[s,...i]=e.split(".");return o instanceof Nn&&o.name==s&&(i.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,i.join(".")))}render(){return e("smoothly-icon",{key:"087ba0fc1cce503a6cf10665e89ca279075fcee7",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};fl.style=bl;var pl;(function(t){function e(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=e;function o(t){t=t?.toUpperCase();return e(t)?t:undefined}t.parse=o})(pl||(pl={}));const gl={};function kl(t,...e){e.forEach((e=>gl[e]=t))}function vl(t){const e=t.headers.get("Content-Type");const o=e&&e.split(";");const s=gl[o?.[0]??"plain/text"];return s?s(t):t.text()}const wl={};function xl(t,...e){e.forEach((e=>wl[e]=t))}function Sl(t,e){const o=wl[e?.split(";")[0]??""];return o?o(t,e):t}function Cl(t){return t.toLowerCase().replace(/-[a-z]/g,(t=>t.substring(1).toUpperCase()))}function zl(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t));return e[0].toUpperCase()+e.substring(1)}const jl=[["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 Il;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function o(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&jl.every((s=>(s[2]==1?e:o)(t[s[0]])))}t.is=e;function o(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const o=jl.find((([e,o,s])=>e==t));return[o?o[1]:zl(t),Array.isArray(e)?e.join(", "):e]})))}t.to=o;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):a(t)?[...t]:Object.entries(t)).map((([t,e])=>{const o=jl.find((([e,o,s])=>t.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[Cl(t),e]})))}t.from=s;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function a(t){return typeof t.entries=="function"}})(Il||(Il={}));var _l;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["method","url","parameter","search","remote","header","body"].some((e=>e==t))))&&pl.is(t.method)&&t.url instanceof URL&&typeof t.parameter=="object"&&Object.entries(t.parameter).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&typeof t.search=="object"&&Object.entries(t.search).every((([t,e])=>typeof t=="string"&&typeof e=="string"))&&(t.remote==undefined||typeof t.remote=="string")&&(t.header==undefined||Il.is(t.header))}t.is=e;async function o(t){const o=e(t)?t:i(t);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:t,...e})=>e)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:Il.to(s),body:["GET","HEAD"].some((t=>t==o.method))?undefined:await Sl(await o.body,o.header.contentType)}}t.to=o;function s(t){const e=new URL(t.url);return{method:pl.parse(t.method)??"GET",url:e,header:Il.from(t.headers),parameter:{},search:Object.fromEntries(e.searchParams.entries()),body:vl(t),..."cf"in t&&{cloudflare:t.cf}}}t.from=s;function i(t){let e;if(typeof t=="string")e=i({url:t});else{const o=typeof t.url=="string"?new URL(t.url):t.url;e={method:pl.parse(t.method)??"GET",url:o,parameter:t.parameter??{},search:{...t.search,...Object.fromEntries(o.searchParams.entries())},remote:t.remote,header:t.header??{},body:t.body}}return e}t.create=i;(function(t){t.is=Il.is;t.from=Il.from;t.to=Il.to})(t.Header||(t.Header={}))})(_l||(_l={}));const Tl=typeof Response!="undefined"?Response:globalThis.Response;var Ll=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Ol=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,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 e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Al,Ml,El,Dl,$l,Rl,Pl,Fl,Hl;class Nl{get state(){return Ll(this,Dl,"f")?"closed":"opened"}set onMessage(t){if(Ll(this,Ml,"f").length&&t){Ll(this,Ml,"f").forEach(t);Ol(this,Ml,[],"f")}Ol(this,Rl,t,"f")}set onClose(t){if(this.state=="closed"&&t)t();Ol(this,Pl,t,"f")}set onOpen(t){if(this.state=="opened"&&t)t();Ol(this,Hl,t,"f")}constructor(t,e){Al.add(this);Ml.set(this,[]);El.set(this,[]);Dl.set(this,false);$l.set(this,void 0);Rl.set(this,void 0);Pl.set(this,void 0);Hl.set(this,void 0);Ol(this,$l,t,"f");if(e)Ol(this,El,undefined,"f");Ll(this,$l,"f").addEventListener("open",(()=>{if(Ll(this,Hl,"f"))Ll(this,Hl,"f").call(this);Ll(this,Al,"m",Fl).bind(this)}));Ll(this,$l,"f").addEventListener("message",(async t=>{const e=this.processReceived(t.data);Ll(this,Al,"m",Fl).call(this);if(Ll(this,Rl,"f"))Ll(this,Rl,"f").call(this,e);else Ll(this,Ml,"f")?.push(e)}));Ll(this,$l,"f").addEventListener("close",(()=>{if(Ll(this,Pl,"f"))Ll(this,Pl,"f").call(this);Ol(this,Dl,true,"f")}))}send(t){if(Ll(this,El,"f"))Ll(this,El,"f").push(this.processSend(t));else Ll(this,$l,"f").send(this.processSend(t))}}Ml=new WeakMap,El=new WeakMap,Dl=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Pl=new WeakMap,Hl=new WeakMap,Al=new WeakSet,Fl=function t(){Ll(this,El,"f")?.forEach((t=>Ll(this,$l,"f").send(t)));Ol(this,El,undefined,"f")};class Yl extends Nl{processReceived(t){return t?.arrayBuffer?t.arrayBuffer():typeof t=="string"?(new TextEncoder).encode(t).buffer:t}processSend(t){return t}}class Ul extends Nl{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 Wl extends Nl{processReceived(t){return t?.arrayBuffer?(new TextDecoder).decode(t.arrayBuffer()):typeof t!="string"?(new TextDecoder).decode(t):t}processSend(t){return t}}var Bl=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Vl=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,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 e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Gl,Kl,Zl;class ql{get json(){if(!Bl(this,Gl,"f"))Vl(this,Gl,new Ul(this.backend,this.isOpen),"f");return Bl(this,Gl,"f")}get string(){if(!Bl(this,Kl,"f"))Vl(this,Kl,new Wl(this.backend,this.isOpen),"f");return Bl(this,Kl,"f")}get arrayBuffer(){if(!Bl(this,Zl,"f"))Vl(this,Zl,new Yl(this.backend,this.isOpen),"f");return Bl(this,Zl,"f")}constructor(t,e){this.backend=t;this.isOpen=e;Gl.set(this,void 0);Kl.set(this,void 0);Zl.set(this,void 0)}createResponse(t={}){return{status:101,socket:this,header:t}}close(t,e){this.backend.close(t,e)}}Gl=new WeakMap,Kl=new WeakMap,Zl=new WeakMap;var Xl;(function(t){t.Factory=ql})(Xl||(Xl={}));const Jl=[["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 Ql;(function(t){function e(t){function e(t){return t==undefined||typeof t=="string"}function o(t){return t==undefined||Array.isArray(t)&&t.every((t=>typeof t=="string"))}return typeof t=="object"&&Jl.every((s=>(s[2]==1?e:o)(t[s[0]])))}t.is=e;function o(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>{const o=Jl.find((([e,...o])=>e==t));return[o?o[1]:zl(t),Array.isArray(e)?e.join(", "):e]})))}t.to=o;function s(t){return Object.fromEntries((Array.isArray(t)?t.map((([t,...e])=>[t,e.join(", ")])):a(t)?n(t):Object.entries(t)).map((([t,e])=>{const o=Jl.find((([e,o,s])=>t.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof e!="string"?e:e.split(",").map((t=>t.trim()))]:[Cl(t),e]})))}t.from=s;function i(t){return Object.entries(t).map((([t,e])=>t+": "+e)).join("\n")}t.toString=i;function a(t){return typeof t.forEach=="function"}function n(t){const e=[];t.forEach(((t,o)=>e.push([o,t])));return e}})(Ql||(Ql={}));var tr;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||Ql.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=e})(tr||(tr={}));var er;(function(t){function e(t){return typeof t=="object"&&Object.keys(t).every((t=>["status","header","body","socket"].some((e=>e==t))))&&(t.status==undefined||typeof t.status=="number")&&(t.header==undefined||Ql.is(t.header))&&(t.socket==undefined||t.socket instanceof WebSocket)}t.is=e;async function o(t){return new Tl(await Sl(await t.body,t.header.contentType),{status:t.status,headers:new Headers(Ql.to(!t.header.contentType?.startsWith("multipart/formdata")?t.header:(({contentType:t,...e})=>e)(t.header))),...t.socket&&{webSocket:{...t.socket.createResponse().socket}?.backend}})}t.to=o;function s(t){return{status:t.status,header:Ql.from(t.headers),body:t.status==101?undefined:vl(t),...t.webSocket&&{socket:new Xl.Factory(t.webSocket)}}}t.from=s;function i(t,e){const o=tr.is(t)?{status:200,header:{},body:undefined,...t.socket&&{socket:t.socket},...t}:typeof t?.createResponse=="function"&&(e==undefined||Ql.is(e))?t.createResponse(e):{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,...e})=>e)(t),...t.webSocket&&{socket:new Xl.Factory(t.webSocket)}||t.socket&&{socket:t.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof e=="string"?e:e?.contentType?e.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?a(o.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":o.header.contentType=o.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(o.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(o.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return o}t.create=i;function a(t){const e=new Uint8Array(ArrayBuffer.isView(t)?t.buffer:t).slice(0,4);return[37,80,68,70].every(((t,o)=>t==e[o]))}t.Header=Ql;t.Like=tr})(er||(er={}));const or=sr(globalThis.fetch);or.create=sr;function sr(t){return async e=>{const o=_l.create(e);return er.from(await t(o.url.toString(),await _l.to(o)))}}var ir;(function(t){function e(t){const e=new globalThis.FormData;e.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(t,"",e)))],{type:"application/json; charset=utf-8"}));return e}t.to=e;function o(t,e,i){return Object.entries(t).reduce(((t,[a,n])=>{n instanceof Blob?i.append(e?`${e}.${a}`:a,n):typeof n=="object"&&n?Array.isArray(n)?t[a]=s(n,e?`${e}.${a}`:a,i):t[a]=o(n,e?`${e}.${a}`:a,i):t[a]=n;return t}),{})}function s(t,e,i){return t.reduce(((t,a)=>{typeof a=="object"&&a?Array.isArray(a)?t.push(s(a,e,i)):t.push(o(a,e,i)):t.push(a);return t}),[])}async function i(t){const e={};for(const[o,s]of t.entries())await a(e,o.split("."),s);return e}t.from=i;async function a(t,[e,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?e=="*"?n(t,JSON.parse(await s.text())):typeof t[e]=="object"&&t[e]?n(t[e],JSON.parse(await s.text())):t[e]=JSON.parse(await s.text()):t[e]=s;else a(typeof t[e]=="object"&&t[e]?t[e]:t[e]={},o,s)}function n(t,...e){if(e.length){const[o,...s]=e;Object.entries(o).forEach((([e,s])=>l(s)?n(l(t[e])?t[e]:t[e]={},s):t[e]=o[e]));n(t,...s)}}function l(t){return t&&typeof t=="object"&&!Array.isArray(t)}t.isObject=l})(ir||(ir={}));function ar(t){const e=[];const o=(t,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":e.push(`${t}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const e in s)if(Object.prototype.hasOwnProperty.call(s,e))o(t?t+`[${e}]`:e,s[e]);break}};o("",t);return e.join("&")}function nr(t){const e=t=>typeof t=="object"&&Object.keys(t).sort().every(((t,e)=>`${t}`==`${e}`))?Object.entries(t).sort().map((t=>typeof t[1]=="object"?e(t[1]):t[1])):typeof t=="object"?Object.fromEntries(Object.entries(t).map((t=>[t[0],e(t[1])]))):t;const o=(t,e,s)=>{t[e[0]]=e.length>1?o(t[e[0]]??{},e.slice(1),s):s;return t};const s=t.split("&").map((t=>t.split("=",2))).map((([t,e])=>[decodeURIComponent(t).split("[").map((t=>t.replace("]",""))),decodeURIComponent(e.replace(/\+/g," "))]));return s.reduce(((t,[s,i])=>e(o(t,s,i))),{})}kl((async t=>await t.text()),"text/plain","text/html");kl((async t=>await t.json()),"application/json");kl((async t=>await t.arrayBuffer()),"application/pdf");kl((async t=>ir.from(await t.formData())),"multipart/form-data");kl((async t=>nr(await t.text())),"application/x-www-form-urlencoded");xl((async t=>typeof t=="string"?t:t.toString()),"text/plain","text/html");xl((async t=>JSON.stringify(t)),"application/json");xl((async t=>t),"application/pdf");xl((async t=>ar(t)),"application/x-www-form-urlencoded");xl((async t=>t instanceof globalThis.FormData?t:ir.to(t)),"multipart/form-data");var lr;(function(t){function e(t){return t&&typeof t=="object"&&typeof t.clear=="function"}t.is=e})(lr||(lr={}));var rr;(function(t){let e;(function(t){t.type=j({edit:c(),readonly:_(),listen:c(),reset:c(),setInitialValue:c()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=j({emit:c()});t.type=e.type.extend({changed:_(),value:E().optional(),smoothlyFormDisable:o});t.is=t.type.is})(rr||(rr={}));var cr;(function(t){t.values=["plain","grid","border","line","transparent"];t.type=I(t.values);t.is=t.type.is})(cr||(cr={}));var hr;(function(t){let e;(function(t){t.type=j({register:c(),unregister:c(),getValue:c(),color:r.type.optional(),name:I(),invalid:_().optional(),looks:cr.type.optional(),defined:_().optional(),binary:c().optional()});t.is=t.type.is})(e=t.Element||(t.Element={}));const o=j({emit:c()});t.type=e.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyKeydown:o.optional(),smoothlyInputForm:o.optional(),parent:rr.type.optional()});t.is=t.type.is;function s(t){if(t.parent instanceof ur){t.parent.removeInput(t.name)}}t.formRemove=s;function i(t){t.smoothlyInputLoad.emit((e=>t.parent=e))}t.formAdd=i;function a(t,e){if(!(e.target&&"name"in e.target&&e.target.name===t.name)){e.stopPropagation();e.detail(t)}}t.registerSubAction=a})(hr||(hr={}));const dr='smoothly-form{display:block;position:relative}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="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{gap:2em}smoothly-form[looks="grid"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:0.5rem}';const mr=dr;const ur=class{constructor(e){t(this,e);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyFormInput=o(this,"smoothlyFormInput",7);this.smoothlyFormSubmit=o(this,"smoothlyFormSubmit",7);this.smoothlyFormReset=o(this,"smoothlyFormReset",7);this.smoothlyFormEdit=o(this,"smoothlyFormEdit",7);this.smoothlyFormClear=o(this,"smoothlyFormClear",7);this.notice=o(this,"notice",7);this.contentType="json";this.inputs=new Map;this.readonlyAtLoad=this.readonly;this.listeners={};this.color=undefined;this.value={};this.action=undefined;this.validator=undefined;this.type=this.action?"create":undefined;this.readonly=false;this.looks=undefined;this.name=undefined;this.prevent=true;this.changed=false;this.processing=undefined}componentWillLoad(){!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async removeInput(t){if(this.element.isConnected){this.value=d.remove(this.value,t);this.inputs.delete(t);this.smoothlyFormInput.emit(d.convertArrays(this.value))}}async listen(t,e){var o;var s;((o=(s=this.listeners)[t])!==null&&o!==void 0?o:s[t]=[]).push(e);e(this)}async watchValue(){var t,e,o;this.changed=[...this.inputs.values()].some((t=>rr.type.is(t)?t.changed:true));if(this.validator){const o=(e=(t=this.validator)===null||t===void 0?void 0:t.flaw(d.convertArrays(this.value)).flaws)===null||e===void 0?void 0:e.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{});for(const[t,e]of this.inputs.entries()){this.validate(o,t,e)}}(o=this.listeners.changed)===null||o===void 0?void 0:o.forEach((t=>t(this)))}validate(t,e,o){var s,i;if(e.includes(".")){const[a,...n]=e.split(".");const l=(i=(s=t===null||t===void 0?void 0:t[a])===null||s===void 0?void 0:s.flaws)!==null&&i!==void 0?i:[];this.validate(l.reduce(((t,e)=>e.property?Object.assign(Object.assign({},t),{[e.property]:e}):t),{}),n.join("."),o)}else{const s=t===null||t===void 0?void 0:t[e];o&&(o.invalid=!!s)}}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.value=d.merge(this.value,t.detail);this.smoothlyFormInput.emit(d.convertArrays(this.value))}async smoothlyKeydownHandler(t){if(t.detail.key=="Enter"&&this.inputs.has(t.detail.name)){t.stopPropagation();await this.submit()}}windowSubmitHandler(t){t.target==this.element&&t.detail.result(false)}submitHandler(t){this.action&&t.stopPropagation()}async smoothlyInputLoadHandler(t){var e;t.stopPropagation();t.detail(this);const o=t.target;if(hr.Element.is(o)){if(await((e=o.binary)===null||e===void 0?void 0:e.call(o)))this.contentType="form-data";const t=await o.getValue();this.value=d.merge(this.value,{[o.name]:t});this.smoothlyFormInput.emit(d.convertArrays(this.value));this.inputs.set(o.name,o)}}async smoothlyFormDisableHandler(t){t.stopPropagation();t.detail(this.readonly)}async submit(t){this.processing=new Promise((e=>{this.smoothlyFormSubmit.emit({value:d.convertArrays(this.value),result:e,type:t==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(A.execute("Submitting form",(async()=>{const s=t?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const i=await or(_l.create(s=="GET"?{method:s,url:`${o}?${ar(this.value)}`}:Object.assign({method:s,url:o},this.value&&{header:{contentType:this.contentType?"multipart/form-data":"application/json"},body:this.value}))).catch((()=>undefined));const a=!i||(i===null||i===void 0?void 0:i.status)<200||i.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];e(a[0]);return[...a]})))}}));if(await this.processing){this.type=="create"&&await this.clear();await this.setInitialValue();this.readonlyAtLoad&&await this.edit(!this.readonlyAtLoad)}this.processing=undefined}async clear(){await Promise.all([...this.inputs.values()].map((async t=>lr.is(t)&&t.clear())));this.smoothlyFormClear.emit()}async edit(t){await Promise.all([...this.inputs.values()].map((async e=>rr.Element.type.is(e)&&e.edit(t))));this.readonly=!t;this.smoothlyFormEdit.emit(t)}async reset(){await Promise.all([...this.inputs.values()].map((t=>rr.Element.type.is(t)&&t.reset())));this.changed=[...this.inputs.values()].some((t=>rr.type.is(t)?t.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((t=>rr.Element.type.is(t)&&t.setInitialValue())))}render(){return e(s,{key:"544cb7ab781d344afba275f3e363a7ca5e615c2e"},e("smoothly-spinner",{key:"ffc3e23544446c744aec87941e1f7e137e71d83e",overlay:true,hidden:!this.processing}),e("form",{key:"ee0a5b140641775c1d55c961db46e3e630b666a8",onSubmit:!this.prevent?undefined:t=>t.preventDefault(),name:this.name},e("fieldset",{key:"dc7509953049315094ba44369d7c56ee22c2e511"},e("slot",{key:"b510be19fca9b78c6ecb3b84648f75a21fb40d97"})),e("div",{key:"985fd0b35f3664135c09bdd03f6156399a4d3d58"},e("slot",{key:"014fd2d642d29332f9fc28298b0cdbf2d5b7956a",name:"clear"}),e("slot",{key:"55d2fd1d90b303f56e9578704780fc78b9bc9e17",name:"edit"}),e("slot",{key:"2af69ee44488e47a52cf7dff75138c16c1883ef8",name:"reset"}),e("slot",{key:"f35a976b66dada2670d5a280d310aac518eedc75",name:"delete"}),e("slot",{key:"90b1dfac51e438c663d93218fb114a491495864f",name:"submit"}))))}get element(){return i(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};ur.style=mr;const yr=".sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:100%}";const br=yr;const fr=class{constructor(e){t(this,e)}render(){return e(s,{key:"c5b442e2dc17139d030550d2595b2ce07c0c03ca"},e("div",{key:"5a453eff769ea4cef9f474ae7bd22cfdae97e66d"},e("smoothly-form-demo-all",{key:"1b771b6dbcdcf463b968518ee933bcf511adc25d"}),e("smoothly-form-demo-pet",{key:"9154d737dda44b49c7b1a4ddb3dfb7c2dc69bb4c"}),e("smoothly-form-demo-card",{key:"b91fb0a14460ddf0074e55b4b31de8871ad41d47"}),e("smoothly-form-demo-login",{key:"f0bc618e065739efda66c9eadb31d22785068e17"}),e("smoothly-form-demo-prices",{key:"b9c08280b8cdb857ffbd5c443f5693e2b22a7cd5"}),e("smoothly-form-demo-typed",{key:"e0a2cab7330a378e9aa8cec545f3aea804a0ff10"}),e("smoothly-form-demo-transparent",{key:"7cad7cf997da8d3cdfd40689a074fd746338eccc"}),e("smoothly-form-demo-date",{key:"1d8567528f1c8f3d5178b57e197b7818b7244dcf"}),e("smoothly-form-demo-schedule",{key:"0c96e9f297face51f234e8c377933468607d5ccd"}),e("smoothly-form-demo-date-range",{key:"e1409719e74987f69cb66e689a88484f3a662ef8"}),e("smoothly-form-demo-controlled",{key:"09d09373a678c6754be06e7795870ad8344bfe55"})))}};fr.style=br;const pr=class{constructor(e){t(this,e)}render(){return e(s,{key:"4aafdec8d02db081953d370ef8d76e2088bf1102"},e("h2",{key:"e8e4e41a8363fd24b1edc5a9e97a3b2c25858fe8"},"All inputs"),e("smoothly-form",{key:"2c8e99228944bacb529312d309b10b9f3dba8e43",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:t=>{Object.entries(t.detail.value).forEach((([t,e])=>console.log(t,e)))}},e("smoothly-input",{key:"5453b9a059c8210c3311476842b7391f045667ab",readonly:true,name:"First Name",value:"John"},"First name"),e("smoothly-input",{key:"90e31870a59bc198001b433647d2464a8686c019",showLabel:false,name:"Last name",value:"Doe"},"Last name",e("smoothly-input-clear",{key:"a9a8375a554d460964cf1f8d2d83599e378143c0",size:"icon",slot:"end"})),e("smoothly-input",{key:"f1af6f8f2c4c244a61bc4b7e2b2402c15bd36040",type:"phone",name:"Phone",value:"777888999"},"Phone",e("smoothly-input-reset",{key:"b07098fb565faa815121b1ac12d2f19c5dae383f",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"a7a55e86d8c37219a8f689ae44f249fa4b147357",clearable:true,name:"radioFirstInput"},e("label",{key:"3efcc33f30a7f52c4e287ddadf136b7bff33a383",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"bcdd7d2d5a7e3f9164f3970330ca517922ba1cc9",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"b90c7edce08ca75afc2abd72b91db9e7ec30621a",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"dfa717cfb10099f10c66810054e9c51874272c9a",value:"third"},"Label 3")),e("smoothly-input-color",{key:"28c439cbcb81a7f3480e67d956cf28b0cdff18c0",name:"color"},"Color"),e("smoothly-input-select",{key:"9d832b5471b3703173f92d0b2536af790ec872e2",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"bcc8d409a8d0fbfbdd7edc757958b3a43c2121b8",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"9270263fc0907a95fa4fda20faab20724463eccc",value:"1"},"January"),e("smoothly-item",{key:"df50a7b49930b58947e4ada4787fe0f3b9c7959b",value:"2"},"February"),e("smoothly-item",{key:"c9c9ed6fa3f64f2bb2a7f7ce7a8e3e6ec973a71b",value:"3"},"March"),e("smoothly-item",{key:"1a4df13779efe8c8c61f2e57c39684690a7e677a",value:"4"},"April"),e("smoothly-item",{key:"c03f5dfebd422e4a81af772ab5ac5ddb08edecbd",value:"5"},"May"),e("smoothly-item",{key:"1238d99c2295fa52c22e67076b9714d12cc19cba",value:"6"},"June"),e("smoothly-item",{key:"46256dc03ebe9f2bebf360dfc51778aa1fa3f231",value:"7"},"July"),e("smoothly-item",{key:"0d2d6530ef9a48579bf014197fa29c1778138b2d",value:"8"},"August"),e("smoothly-item",{key:"c454e4f74973b4e4919c8ea40576d174ec7c9762",value:"9"},"September"),e("smoothly-item",{key:"6a410dc5b68b3fbd123531b99bad22d7ed9c0bce",value:"10"},"October"),e("smoothly-item",{key:"5214628e65ea539a77a14eeb2bbfe4270fb03033",value:"11"},"November"),e("smoothly-item",{key:"2ab1330f7b25c711d6d50239cff5f8c417addca6",value:"12"},"December")),e("smoothly-input-select",{key:"a1493892d87ab651e53780905807570b50b91d07",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"61df0c697952bff56da044b3f29748926e58967a",value:"folder",selected:true},e("smoothly-icon",{key:"0e54b6ca59fccab56e3ed55aa03862a263eb7e55",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"5c3321c5142c69b3065b32a6b55a34aecfab33be",value:"camera"},e("smoothly-icon",{key:"cccbfdb9939b3d16a885d6605436fc54c1da3019",size:"small",name:"camera-outline"}))),e("smoothly-input-checkbox",{key:"f2bd24855f068fb7add590cb87f4050a3c18c17f",name:"checkbox"},"Check the box"),e("smoothly-input-checkbox",{key:"59a3654cf275543968911fa8dba440c1667496f9",name:"checkbox2",checked:true},"Check the box 2"),e("smoothly-input-range",{key:"45ed118690207280f2c26768d0da1b7801b24bf2",step:1,name:"range3",value:20,label:"Range"}),e("smoothly-input",{key:"4d597c188035beeec5adc9ccef43bdf9e3eb2427",name:"pets.0.name"},"First Pet's Name"),e("smoothly-input-range",{key:"9a9310130e8c940f4ec771aa6753e8f7231a7228",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),e("smoothly-input",{key:"2c6cd64ce3a290205856e2442a1ef199a46d1cff",name:"pets.1.name"},"Second Pet's Name"),e("smoothly-input-range",{key:"e90157d8dfae3668bc67aa5646f2176754b08347",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),e("smoothly-input",{key:"26ee4906aa12fc145f24a45fbe4e0e6ac4f828e7",name:"pets.2.name"},"Third Pet's Name"),e("smoothly-input-range",{key:"9c313148e3134d81f9ffbe76bb50ddea1e5f82e3",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),e("smoothly-input-file",{key:"471cde92dd3f9b6deb214d85fc689c4451ee2aac",name:"profile",placeholder:"Click or drag your profile picture here..."},e("span",{key:"9baf5b9e972d897d55296c4bc870b2c22df72caa",slot:"label"},"Profile"),e("smoothly-icon",{key:"15b62211482dedb406cc0fe9979b2ea845ba8fb6",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),e("smoothly-input",{key:"60578f6da664c305319c8f04d30a1c05eae33a06",type:"duration",name:"duration",value:{}},"Duration"),e("smoothly-input-clear",{key:"8a9f189bacdba4054cbe6f4f21cd11c5246b5abb",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),e("smoothly-input-edit",{key:"480cf7b27cbdc2047f126677eb425a1576e98314",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),e("smoothly-input-reset",{key:"e3b3fb9fbf3a7999c76d81c85629170dd5efd6c3",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"db4bb9254a75878098844e4804a6121f053f631b",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),e("smoothly-input-submit",{key:"57b118fb1b4852b39baf424c3f69f1fa00bea891",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const gr=class{constructor(e){t(this,e)}render(){return e(s,{key:"e6e9b32074fdf87dab50af3c1f904ac6861964ef"},e("h2",{key:"d4512eea73d23fb396db207b58fd437b282ba6d1"},"Card"),e("smoothly-form",{key:"96adcef6dba1a152573a391a8d020fba1c498b2e",looks:"grid",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail))},e("smoothly-input",{key:"c7e9dd627c326a133cdc3833d8aa9bee1fe3cd85",type:"card-number",name:"card"},"Card #"),e("smoothly-input-submit",{key:"e5d11e876a9ad1171ce24aefa7f104fc51948df3",size:"icon",slot:"submit",color:"success",fill:"solid"}),e("smoothly-input",{key:"b7193c79148812850e1d31970f6696da9c8a1083",type:"card-expires",name:"expires"},"Expires"),e("smoothly-input",{key:"69e610530f2d65909289c3a957df8c182613e9f4",type:"card-csc",name:"csc"},"CVV/CVC"),e("smoothly-input",{key:"4f9685d7d83dff346e4660c25886193030395e73",type:"text",name:"name.first"},"First Name"),e("smoothly-input",{key:"73f829b49a411a438f2228d17679671a0075335d",type:"text",name:"name.last"},"Last Name")))}};const kr=class{constructor(e){t(this,e);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=x.now()}nameChanged(t,e){console.log(`updated name from '${e}' to '${t}'`)}async submitHandler(t){t.stopPropagation();console.log("Received event. Processing...",t.detail);if(!(typeof t.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof t.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!z.is(t.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((t=>window.setTimeout(t,1e3)));this.name=t.detail.value.name;this.date=t.detail.value.date;this.currency=t.detail.value.currency;console.log("Finished processing successfully. Resolving true.");t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"ef92c785b3365355b8ba811433b79938d060a5a4"},e("h2",{key:"306ca5c5065a7a6e92ddf920fc987bf61228ab42"},"Controlled"),e("smoothly-form",{key:"92248470b1409209b278951fdd4235cab8b6dc08",readonly:true,looks:"grid",onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input",{key:"57d2c32977ca8b036f4d645ba9487df62d396073",type:"text",name:"name",value:this.name},"Name"),e("smoothly-input-select",{key:"9e29c5a6cb0b31b23fbe5e4db5c915e11b61eb10",name:"currency"},e("span",{key:"bae8a234efdf2ff5964797acb15ace498cdb2265",slot:"label"},"Currency"),this.currencies.map((t=>e("smoothly-item",{selected:t==this.currency,value:t},t)))),e("smoothly-input",{key:"d178a9307c618462ef461009da95292fd6f11b2f"},"Dummy"),e("smoothly-input-month",{key:"724c1e722dc1356525201c391321ecce06580ef4",name:"date",value:this.date,next:true,previous:true},e("span",{key:"93fb5f06e98380c3a26435e560cbbfdff67369ef",slot:"year-label"},"Year"),e("span",{key:"29ff08b4c11e66ddd5529b872ba310189ce460d5",slot:"month-label"},"Month")),e("smoothly-input-edit",{key:"869f2703a94250f47169d0f532995ee239479387",slot:"edit",size:"icon",color:"primary",fill:"default"}),e("smoothly-input-reset",{key:"6801450e28506323ec1e963540acf491419b48d2",slot:"reset",size:"icon",color:"warning",fill:"default"}),e("smoothly-input-submit",{key:"7c5df04fd4720162adaea05387260f3132e940bf",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const vr=".sc-smoothly-form-demo-date-h{display:block}";const wr=vr;const xr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=j({date:m("isoly.Date",x.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(A.failed(`Type is incomplete.`))}else{this.notice.emit(A.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"22f4ed40b5848bc4784005b35f4601ade0ce4aac"},e("h2",{key:"c894900036aa83547c5b92acde5fa1dc2e56030f"},"Date input"),e("smoothly-form",{key:"d0ac14b67b826e1b731b397c76d78f2999b946ec",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date",{key:"74557c8d42c7091413536585a6eedef8cc464ca1",name:"date"},"Date"),e("smoothly-input-submit",{key:"283d86091ece17e31f8a9818ee281335836a314e",slot:"submit"},e("smoothly-icon",{key:"189942a7dd92dd1166b83edfe8987cd3e18d8a39",name:"checkmark-outline"}))))}};xr.style=wr;const Sr=".sc-smoothly-form-demo-date-range-h{display:block}";const Cr=Sr;const zr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.validator=j({range:m("isoly.DateRange",T.is)})}async submitHandler(t){t.stopPropagation();if(!this.validator.is(t.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(A.failed(`Type is incomplete.`))}else{this.notice.emit(A.succeeded(`Type is complete!`));t.detail.result(true)}t.detail.result(false)}render(){return e(s,{key:"68aae8530e210936e6ee1cb52e65835cb5376088"},e("h2",{key:"ab56927aa4b3ffb87ad6ccda58ae62933c210ed7"},"Date-range input"),e("smoothly-form",{key:"b1901ddc4170e4f0cd5fd3a2685ba98230a519a4",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:t=>this.submitHandler(t)},e("smoothly-input-date-range",{key:"02ddba37b9f1a82f494717bbcdac1b86aff508b5",name:"range"},"Range"),e("smoothly-input-submit",{key:"91c4c3b390da5f50236ab9afbd53c1b005a7a90a",slot:"submit"},e("smoothly-icon",{key:"ddecec0e052bf335197963a0e85345a4396d3976",name:"checkmark-outline"}))))}};zr.style=Cr;const jr=class{constructor(e){t(this,e)}render(){return e(s,{key:"914cd546393dcc39159cb968565a77afb574538f"},e("h2",{key:"7fee155ff0311666f0061bfe0b0292d7418150f1"},"Login"),e("smoothly-form",{key:"f3237c61ebb16e0f7715a87e3a949705fa6979ab",looks:"border"},e("smoothly-input",{key:"0ed97ea010760f27c89e4c78d3b00dca898b4d98",type:"text",name:"username"},"Username"),e("smoothly-input",{key:"039a6e17d6e359a93639ec99442b8cd93c91a1e1",type:"password",name:"password"},"Password"),e("smoothly-input-reset",{key:"e64d6a94c00b458d0d7c5e5b77a5f8b3a0fc316f",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"886ea445167ab3281130390594d3e165e7676b4b",slot:"submit"})))}};const Ir='.sc-smoothly-form-demo-pet-h{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-column-gap:2rem}.sc-smoothly-form-demo-pet-h smoothly-input-checkbox[name="hasOwner"].sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-summary.sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-tabs.sc-smoothly-form-demo-pet{flex-basis:100%}';const _r=Ir;const Tr=class{constructor(e){t(this,e);this.hasOwner=false;this.owner={};this.value=undefined}render(){var t,o;return e(s,{key:"ca731e714eb7d3c9027c8eaacccf0ef611917de7"},e("h2",{key:"6b4198cb4bc6f85810f4559fcfa97b8aa1948d76"},"Pet"),e("h3",{key:"8877db7feccc2c437df73f4b9d1df2c0d9e9397f"},"Value"),e("smoothly-form",{key:"817548dbe700db117d066032605e83e89bae52f9",looks:"border",onSmoothlyFormSubmit:t=>alert(JSON.stringify(t.detail)),onSmoothlyFormInput:t=>this.value=Object.assign({},t.detail)},e("smoothly-input",{key:"159422b05784af942138ba2b73c663988a981795",type:"text",name:"name.first"},"Name"),e("smoothly-input",{key:"a63d1fee5a11efff76f921e18cf7905473a41715",type:"integer",name:"age"},"Age (Years)"),e("smoothly-input-checkbox",{key:"8ad23527074d579b7ba39e9d39ba25c458173114",name:"hasOwner",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{this.hasOwner=t.detail.hasOwner;t.stopPropagation()}},"Has Owner"),this.hasOwner&&e(a,{key:"fc45ad128e8f79b37745c32f67d1ba7e8b1c4fbf"},e("smoothly-input",{key:"86d389e5e7b0d28d0df399400085729f6471716c",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:t.detail["owner.firstName"]})},"Owner First Name"),e("smoothly-input",{key:"cd62d7fb931c4400103fcc9d9a053a05fa85e487",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:t.detail["owner.lastName"]})},"Owner Last Name"),e("smoothly-input-file",{key:"a2896030432f228ad920cdeb4ba5858622ec80c5",name:"owner.picture"},e("span",{key:"24617088152871d9ccdaec6090a8f373d91f23bd",slot:"label"},"Owner picture")),e("smoothly-input-date",{key:"0401cc3c3323b07f71276a072319a30325200c3a",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:t.detail["owner.birthday"]})},"Owner birthday"),e("smoothly-input-date-range",{key:"157925e70ec5003e368a04d598974017ed09ebb4",name:"owner.ownedRange",start:(t=this.owner.ownedRange)===null||t===void 0?void 0:t.start,end:(o=this.owner.ownedRange)===null||o===void 0?void 0:o.end,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:t.detail["owner.ownedRange"]})},"Owner ownedRange"),e("smoothly-input-range",{key:"ddb0c2ce68a4217fc9888bd5cfd1ba23f86070c7",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{height:t.detail["owner.height"]})},"Owner's Height"),e("smoothly-input-select",{key:"c8c5da0249521e8531c89a7b8b3ac763d87efb41",name:"owner.favoriteHat"},e("span",{key:"a80454815d98de8211d0811be4f4e010eb5fea1d",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o,selected:this.owner.favoriteHat==t},t)))),e("smoothly-input-color",{key:"e89472883061c53b0f8eb697ee7780fddd438426",name:"owner.favoriteColor",value:this.owner.favoriteColor?u.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:t.detail["owner.favoriteColor"]})},"Owner's Favorite Color"),e("smoothly-input-radio",{key:"50c7b642ea08b27fd6f2a29d1cd1985b13f14789",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:t.detail["owner.favoritePizza"]})},e("span",{key:"baa6df6905dd70e4572b91ee17d599c75a593c91",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"5bb00bd662f3c4e537ce4fd107845b8d5abf09fd",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:t=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:t.detail["owner.hasPet"]})},"Has Pet")),e("smoothly-summary",{key:"4a3fc4cd07aa3873945c3ab974f99d037e3fbbda"},e("span",{key:"0afdd64ca5682fbffd32bd276ad1754347be7c22",slot:"summary"},"Summary"),e("div",{key:"495ef4c2d75d1643bc4f60dba3ce24d4b59cbe74",slot:"content"},e("smoothly-input",{key:"b62901460412b55658e0ecf9684dcf228c9b8aeb",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),e("smoothly-input-file",{key:"f5bbe653d7d76f849d407ed5412e7fd74738cf67",name:"summary.picture"},e("span",{key:"f895d5cd3508e1d0584c4b0f27b55a782f400185",slot:"label"},"Summary picture")),e("smoothly-input-date",{key:"0954c449c3dde1535e41b5b7ef8c68769c41bc92",name:"summary.birthday"},"Summary birthday"),e("smoothly-input-date-range",{key:"517776b35be90839508d52ef064ab6f60666ac04",name:"summary.ownedRange"},"Summary ownedRange"),e("smoothly-input-range",{key:"9177373ede95dd28367e3da1ee1f1f9320f8d3b3",name:"summary.height",label:"Height"}),e("smoothly-input-select",{key:"b49a7896448c2d40440e5ab6cec301d73d873669",name:"summary.favoriteHat"},e("span",{key:"50efd70498341500f18cbc37beaaa36fabb8dfa1",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o},t)))),e("smoothly-input-month",{key:"3855402ed77dd5d6e8e2e3e5d83928df72846a6e",name:"summary.month"},e("span",{key:"2a19d1c8ca76b2a9e161c1ddff12574157074994",slot:"month-label"},"Summary month")),e("smoothly-input-color",{key:"5860b2f19faf59a89dc7ec927580eec8c87cbb4a",name:"summary.color"},"Summary Color"),e("smoothly-input-radio",{key:"ed742b746ecd09c0a68b239b020a0d5c98a055a7",name:"summary.favoritePizza"},e("span",{key:"658d7669cad7375204a0b8da4e811859d79ce8ac",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"5b6e99bdbf96c73a979dbf896e283e04c7e5914c",name:"summary.hasPet"},"Has Pet"))),e("smoothly-tabs",{key:"4f491e665758c320d52b1296eb9bb7497697b626"},e("smoothly-tab",{key:"a0bf8af72607a286852fc39001708de27bf2e150",label:"Dog"},e("smoothly-input",{key:"ad8d73982d3791688cac56360b7924747af0110e",type:"text",name:"dog.breed"},"Breed"),e("smoothly-input-file",{key:"8e5248bf2108046ca6cbdd8ec0185d2cb9aec86c",name:"dog.picture"},e("span",{key:"a4250a2ad68960d8842266cab470a91809c7b245",slot:"label"},"Dog picture")),e("smoothly-input-date-time",{key:"27a696243ca01d4cab3367300967196372fd952a",name:"dog.lastWalk"},"Time of last walk"),e("smoothly-input-date",{key:"c06d1ef75c940488c6016976e017718279efbb58",name:"dog.birthday"},"Dog birthday"),e("smoothly-input-date-range",{key:"62f5fb72529d8b243979a389861e9927c7a7e470",name:"dog.dateRange"},"Dog date range"),e("smoothly-input-select",{key:"abfe59ab4c9e1f78b34664c6a17e0e3301757632",name:"dog.favoriteHat"},e("span",{key:"54cbc4f6e9a219883a7d24562a5558a79cb45c11",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((t,o)=>e("smoothly-item",{value:t,key:o},t)))),e("smoothly-input-color",{key:"4b92479885ffe3f6457946214192c5301298d421",name:"dog.favoriteColor"},"Dog's Favorite Color"),e("smoothly-input-radio",{key:"e3c13c05702f5d50c9cfa5911a6b5d97d760b1be",name:"dog.favoritePizza"},e("span",{key:"32b8daa4d676b59d95f0c2668991c4849090098c",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((t,o)=>e("smoothly-input-radio-item",{value:t,key:o},t)))),e("smoothly-input-checkbox",{key:"7bee52a70d21bafa0850dd7f9281e257b68557d8",name:"dog.hasPet"},"Has Pet")),e("smoothly-tab",{key:"2adff795ab3cca5271c365a2d90ac515db6379d6",label:"Cat",open:true},e("smoothly-input",{key:"17b9bf37e745b6e535dde50decd7b7128e67c07c",name:"cat.favoriteFood"},"Favorite Food"))),e("smoothly-input-submit",{key:"905da98d7ab630b43cf07c21a2cd78fb20b2ba64",size:"icon",slot:"submit",color:"success",fill:"solid"})),e("smoothly-display",{key:"7cfb16ec38bb5c1929ac6e77ced637c1241e979f",type:"json",value:this.value}))}};Tr.style=_r;const Lr=class{constructor(e){t(this,e)}render(){return e(s,{key:"ef817730d780031d431f9d992a09bdd1d6dc0191"},e("h2",{key:"95f0c14315fe2cd12df649bb02827250ccfbe200"},"Prices"),e("smoothly-form",{key:"0f741fd222ea03a1c2e58d0f3e997ffbcddfb859",looks:"line"},e("smoothly-input",{key:"827cd91113c01c151a5233d794320bbc242faa82",type:"price",name:"no"},"No currency"),e("smoothly-input",{key:"0ec4534ffea6a2ece32abcb4d3a35b3b940f23d1",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),e("smoothly-input",{key:"f892fac339134188fc77faefd7e5c2b2df362a40",type:"price",name:"usDollar",currency:"USD"},"USD"),e("smoothly-input",{key:"9ec492d628eca72e8950e7cd43a70959a2c9040e",type:"price",name:"pounds",currency:"GBP"},"GBP"),e("smoothly-input",{key:"08633f3a3a246e4e9dabcea722dc55d8faa2f22e",type:"price",name:"peso",currency:"UYW"},"UYW"),e("smoothly-input",{key:"cc76fb65cc5a86910d65e5c9db18fe4d26c863db",type:"price",name:"iceland",currency:"ISK"},"ISK"),e("smoothly-input",{key:"88e78717c9067de04ee4420780b2d7fb05f316b2",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),e("smoothly-input-reset",{key:"40c78c747e0fb909c4b63499cc88b8cf6f798c82",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"eee6152ffc0a5d7672016e155df3105eb5a9f340",slot:"submit"})))}};var Or;(function(t){t.type=j({date:m("isoly.Date",x.is),amount:L()})})(Or||(Or={}));var Ar;(function(t){t.type=j({schedule:Or.type.array()})})(Ar||(Ar={}));const Mr=class{constructor(e){t(this,e)}render(){return e(s,{key:"9a8342191bcb4f1494d365dbd86a8d0d1faece52"},e("h2",{key:"e6a539aad12c022a22e1a8edc27d44fcb4df8867"},"Schedule"),e("smoothly-form",{key:"87269a58de54f9789fd32edb99bfc1523d7a919c",looks:"line",validator:Ar.type},e("smoothly-input-date",{key:"78b0c1c19ff5a62beffd822e7fc15303595b0963",name:"schedule.0.date"},"Date"),e("smoothly-input",{key:"85b77f75bde169c83db4d51231eeac72bf5af087",name:"schedule.0.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"e79ab0b49b6953dba70834e4f915d8c5ad0cc574",name:"schedule.1.date"},"Date"),e("smoothly-input",{key:"de7dc6c83c44e3288f4f3c3df59919d174d2d1b5",name:"schedule.1.amount",type:"price"},"Amount"),e("smoothly-input-date",{key:"ec0256b3c2d0a081400d3360dab5a3a28880dabe",name:"schedule.2.date"},"Date"),e("smoothly-input",{key:"f6940419a9d7f7694e17b1a777c5fc673dc2341a",name:"schedule.2.amount",type:"price"},"Amount"),e("smoothly-input-reset",{key:"ecd898be80239b97a44e442d4aed1ad136576781",slot:"reset",fill:"default",type:"form",color:"warning"}),e("smoothly-input-submit",{key:"b0e460ddd55e7e2336cdef8a41bf1ed80105d494",slot:"submit"})))}};const Er=class{constructor(e){t(this,e)}render(){return e(s,{key:"e9d2b7c2c35a7fef3d63e5a2e2ad78dac68afa94"},e("h2",{key:"b0196e756933499f3bb5e76029e7c8211b35ad14"},"Transparent"),e("smoothly-form",{key:"579b4321ee284ee6c6a015890011a020caf6513c",looks:"transparent",onSmoothlyFormSubmit:t=>console.log(t.detail.value)},e("smoothly-input-file",{key:"4bd0729987399d728df72d10d98f3d1d8a321a25",name:"file"},e("span",{key:"d94eb8d5b54e1288e498ef2a0b058d0d965a6574",slot:"label"},"File"),e("smoothly-icon",{key:"c7c69177f08ab65b15052e41ecf8f404c285dff5",slot:"button",name:"folder-open-outline",size:"small"})),e("smoothly-input",{key:"424ddc6565d5d529f1e3e3fc3c4cc378c4fa454c",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),e("smoothly-input-date",{key:"3c7598b83574ffdc75b482ab58ccf29fded61a2c"},"Date"),e("smoothly-input-date-range",{key:"cdf7915921db87ed535cb7eceb913429226322bb"},"Date Range"),e("smoothly-input-select",{key:"24b0fcdf3bc5a9a45f3121050d117154487f80a5",name:"transport"},e("smoothly-item",{key:"32bcc1947d96c59b65e7cfa233625e1777bcbc50",value:"plane"},e("smoothly-icon",{key:"ee4f64850410090b75d20b188ba6d3a705fdbdbf",name:"airplane-outline"})),e("smoothly-item",{key:"076e4bbd8dd60150320846294d6644b679fcce43",value:"car"},e("smoothly-icon",{key:"589f0efbfa101d53697454c13c4a9ac506a391d7",name:"car-outline"})),e("smoothly-item",{key:"3f91afc28773ede15773df606539ded87536c671",value:"bus",selected:true},e("smoothly-icon",{key:"c2a81e1abaad259df119248a3fcd81c5d63c713d",name:"bus-outline"}))),e("smoothly-input-submit",{key:"32fb53f041b821eda365ac8ffa8df118dbd2b3c7",icon:"checkbox-outline"})))}};var Dr;(function(t){t.type=j({name:j({first:I(),middle:I().optional(),last:I()}),age:L((t=>18<=t&&t<=120)),country:m("CountryCode",O.is),birthday:m("Date",x.is)})})(Dr||(Dr={}));const $r="";const Rr=$r;const Pr=class{constructor(e){t(this,e)}render(){return e(s,{key:"e53a0a17b2302337cf2e1e045f94c96906dd3bcb"},e("h2",{key:"0cbe465c14b22f04250ae487d0790ac1910f5e59"},"Typed Contact"),e("smoothly-form",{key:"88448919f6a71ea37240853f673dc0ff07df9587",validator:Dr.type},e("smoothly-input",{key:"b17b6cdfd48aa02789204504f52876f3a55c578e",name:"name.first"},"First Name"),e("smoothly-input",{key:"ece3d88c0ff08625d55281cc1cc6adbb1f02efda",name:"name.middle"},"Middle Name (optional)"),e("smoothly-input",{key:"61d9bf66ca545510b46d3c9936cf552e44538fac",name:"name.last"},"Last Name"),e("smoothly-input",{key:"dffb209c6e0f5c98cb17bd74dfcaa402061d2172",name:"age",type:"integer"},"Age (18-120)"),e("smoothly-input-select",{key:"04948477a80cca43ddab4fcefe77230b576f3145",name:"country"},e("span",{key:"e3d6e8bc8bd964b44f58a8ed47cccfa1aa363066",slot:"label"},"Country"),O.values.map((t=>e("smoothly-item",{value:t},M(t))))),e("smoothly-input-date",{key:"cc4e3676ec2e411a7026d48d4986864800a046a0",name:"birthday"},"Date of birth"),e("smoothly-input-reset",{key:"af37d92c8ffa3a47b8573af693f7aa4b245a1c98",slot:"reset",type:"form",size:"icon",color:"warning"}),e("smoothly-input-submit",{key:"e1d18fc9c58985f06bea1173a15920eecbf98d29",slot:"submit",size:"icon",color:"success"})))}};Pr.style=Rr;const Fr=".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 Hr=Fr;const Nr=class{constructor(e){t(this,e);this.trigger=o(this,"trigger",7);this.message2=o(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,e)=>{if(t==this.name)if(l.is(e))this.trigger.emit(e);else this.message2.emit({destination:t,content:e})}),window)}async send(t,e){var o,s;if(typeof t=="string")y.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+t,e,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)}};Nr.style=Hr;const Yr="[fill].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center;box-sizing:content-box}[rotate].sc-smoothly-icon-h{--rotate:rotate(var(--rotation, 0deg));transform:var(--rotate)}[flip=x].sc-smoothly-icon-h{--flip:scaleX(-1);transform:var(--flip)}[flip=y].sc-smoothly-icon-h{--flip:scaleY(-1);transform:var(--flip)}[rotate][flip].sc-smoothly-icon-h{transform:var(--rotate)var(--flip)}[hidden].sc-smoothly-icon-h{display:none}[size=tiny].sc-smoothly-icon-h{--smoothly-icon-size:1.2em}[size=small].sc-smoothly-icon-h{--smoothly-icon-size:1.4em}[size=medium].sc-smoothly-icon-h{--smoothly-icon-size:1.8em}[size=large].sc-smoothly-icon-h{--smoothly-icon-size:2.8em}[size=xlarge].sc-smoothly-icon-h{--smoothly-icon-size:4em}.sc-smoothly-icon-h{width:var(--smoothly-icon-size, 1.8em);height:var(--smoothly-icon-size, 1.8em)}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Ur=Yr;const Wr=class{constructor(e){t(this,e);this.color=undefined;this.fill="solid";this.name="empty";this.size=undefined;this.rotate=undefined;this.flip=undefined;this.toolTip=undefined;this.latestPromise=undefined;this.document=undefined}async componentWillLoad(){await this.nameChanged()}async nameChanged(){if(this.name!="empty"){const t=this.latestPromise=b.load(this.name);let e=await t;if(t==this.latestPromise){e=e===null||e===void 0?void 0:e.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)e=e===null||e===void 0?void 0:e.replace(/<title>.*<\/title>/,"");else if(e===null||e===void 0?void 0:e.includes("<title>"))e=e.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else e=e===null||e===void 0?void 0:e.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(e)}}else this.updateDocument()}updateDocument(t){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(){var t;return e(s,{key:"0cd1bf1fd47bb75db4addbb772c8ebf7420a9f76",innerHTML:this.document,style:{["--rotation"]:`${(t=this.rotate)!==null&&t!==void 0?t:0}deg`}})}static get watchers(){return{toolTip:["nameChanged"],name:["nameChanged"]}}};Wr.style=Ur;const Br=".sc-smoothly-icon-demo-h{display:block;width:clamp(200px, 100%, 1200px);margin:auto}[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>smoothly-icon.sc-smoothly-icon-demo{padding:1rem;position:relative}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover{scale:1.5}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover::after{content:attr(data-name);position:absolute;white-space:nowrap;bottom:100%;background:rgb(var(--smoothly-default-contrast));color:rgb(var(--smoothly-default-color));padding:0.25rem 1rem;z-index:1;pointer-events:none}";const Vr=Br;const Gr=class{constructor(e){t(this,e);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return e(s,{key:"62708f079ddee486734d33e49e50ae2558cc52d7"},e("h2",{key:"9daf63fea24f813509180b6da99d1989aad4448b"},"Filter and Variants"),e("smoothly-form",{key:"6ae13747e710a0e95782f87fc202ccda48db3824",onSmoothlyFormInput:t=>this.display=t.detail},e("smoothly-input",{key:"4d206c676a1a629331aa1492254c766566135ede",name:"filter"},"Filter"),e("smoothly-input-select",{key:"1dc08cd1e052453d4aa7e27fba2d65609a49f866",name:"variant"},e("span",{key:"646c1e579d8cb2e679c77a8835f620cb5e7dcaa9",slot:"label"},"Variant"),e("smoothly-item",{key:"cddbecdb6a46aa56e29a70179003e92afdf21ef4",value:"outline"},"outline"),e("smoothly-item",{key:"3121ff8590e82394c3bbf2c352e56fd7f0c3e048",value:"sharp"},"sharp"),e("smoothly-input-clear",{key:"affa09805a787591ad55073219a04e1083a70848",slot:"end"}))),e("h2",{key:"da00f6dafde8079b44e962bd4a51fab57b5769cf"},"Props"),e("smoothly-form",{key:"420c4c62dc31e8606475afd0754f535f7ae550c2",onSmoothlyFormInput:t=>this.props=t.detail},e("smoothly-input-select",{key:"5843a6d6eeeced970126d5f602693fa365c2492f",name:"color"},e("span",{key:"770f177f71499fa8274523241b97f4162a4bafb2",slot:"label"},"Color"),r.values.map((t=>e("smoothly-item",{value:t,color:t},t))),e("smoothly-input-clear",{key:"c2ce6484987455f4a9db213c9737489e86283a33",slot:"end"})),e("smoothly-input-select",{key:"c5b32eb509f543b213845dca10df50df9f04e8e8",name:"fill"},e("span",{key:"3d94614bc074a46b2f687f934377b31f727c7917",slot:"label"},"Fill"),f.values.map((t=>e("smoothly-item",{value:t},t))),e("smoothly-input-clear",{key:"40957b700c25fb1a27402667666bafe0cd0cc182",slot:"end"})),e("smoothly-input-select",{key:"cbef37a017be99621df6698d57eddd3b6975df0c",name:"flip"},e("span",{key:"d384e098cb6b58c141e98fbb37e28f00669e7884",slot:"label"},"Flip"),e("smoothly-item",{key:"3990c09061387a8aea7753103db56e08fb5c4f20",value:"x"},"x"),e("smoothly-item",{key:"a8e48ae9700a50c1340bbb05706386335441de24",value:"y"},"y"),e("smoothly-input-clear",{key:"984009c27202699fb8bfe6aad99886087afddfcb",slot:"end"})),e("smoothly-input-select",{key:"b192607f8615cac74df64ed1afda16ca5a88c884",name:"size"},e("span",{key:"899b2324d9993983766fb24ee175d8bfa758dbe5",slot:"label"},"Size"),e("smoothly-item",{key:"56e975109e10df35375eee193081e96c58d104fa",value:"tiny"},"tiny"),e("smoothly-item",{key:"9d9d204e20db7f1447f38947dd30521bcd68f5f0",value:"small"},"small"),e("smoothly-item",{key:"9d1216f79b2ab0f66cfc395eebddf8d88be3f6f5",value:"medium"},"medium"),e("smoothly-item",{key:"67e4f4bc0df6baa70ee927eaa0a275fdd3aef8d7",value:"large"},"large"),e("smoothly-item",{key:"42580e58183e763f425e375c42940d8613f0946a",value:"xlarge"},"xlarge"),e("smoothly-input-clear",{key:"11188b6cb463578b0253d694b097a13af0e842c5",slot:"end"})),e("smoothly-input-range",{key:"250cb6caf4a697ab7a7c4af16e0611858a0cdec8",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",e("smoothly-input-clear",{key:"01eef0ab611eaec82527f731f7423ad023af7507",slot:"end"}))),e("h1",{key:"69996c44ed040941e07bad3191edbf8f65d321a0"},"Icons"),e("div",{key:"c66af90970b454464bef605bc942ee1ea9796ec5",class:"icons"},[...b.Name.values.filter((t=>!this.display.filter||t.includes(this.display.filter))).map((t=>this.display.variant?`${t}-${this.display.variant}`:t)),...b.Logo.values.filter((t=>!this.display.filter||t.includes(this.display.filter)))].map((t=>e("smoothly-icon",{name:t,toolTip:t,"data-name":t,color:this.props.color,fill:this.props.fill,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(t);this.notice.emit(A.succeeded(`Copied "${t}"`))}})))))}};Gr.style=Vr;var Kr;(function(t){function e(t,o){if(t===o)return true;if(typeof t=="object"&&typeof o=="object"){const s=Object.keys(t);if(s.length==Object.keys(o).length&&s.every((s=>e(t[s],o[s]))))return true}return false}t.equal=e;function o(t,o){return!e(t,o)}t.notEqual=o})(Kr||(Kr={}));var Zr;(function(t){function e(t,e,i){const a=/([^.-@\s]+)/gi;return i=="backward"?o(t,e,a):s(t,e,a)}t.getWordBreakIndex=e;function o(t,e,o){let s=0;let i;while((i=o.exec(t))!=null){if(o.lastIndex-i[0].length<e)s=o.lastIndex-i[0].length;else break}return s}function s(t,e,o){let s=0;while(o.exec(t)!=null){s=o.lastIndex;if(o.lastIndex>e)break}o.lastIndex<=e&&(s=t.length);return s}})(Zr||(Zr={}));class qr{constructor(t,e){this.formatter=t;this.type=e;this.keydownHandlers={ArrowLeft:(t,e)=>t.ctrlKey||t.metaKey?e:this.moveCursor(t,e),ArrowRight:(t,e)=>t.ctrlKey||t.metaKey?e:this.moveCursor(t,e)};this.eventHandlers={beforeinput:{insertText:(t,e)=>this.insert(t,e),insertFromPaste:(t,e)=>this.insert(t,e),insertFromDrop:(t,e)=>this.insert(t,e),deleteContentBackward:(t,e)=>{t.preventDefault();if(e.selection.start==e.selection.end)this.select(e,e.selection.start-1,e.selection.end);this.erase(e);return e},deleteContentForward:(t,e)=>{t.preventDefault();if(e.selection.start==e.selection.end)this.select(e,e.selection.start,e.selection.end+1);this.erase(e);return e},deleteWordBackward:(t,e,o)=>{let s=e;if(this.type!="password"){t.preventDefault();s=this.deleteWord(o,"backward")}return s},deleteWordForward:(t,e,o)=>{let s=e;if(this.type!="password"){t.preventDefault();s=this.deleteWord(o,"forward")}return s},deleteByCut:(t,e)=>{this.erase(e);return e}},input:{insertReplacementText:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value}),insertCompositionText:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value}),deleteWordBackward:(t,e)=>this.type=="password"?Object.assign(Object.assign({},e),{value:t.target.value}):e,deleteWordForward:(t,e)=>this.type=="password"?Object.assign(Object.assign({},e),{value:t.target.value}):e,undefined:(t,e)=>Object.assign(Object.assign({},e),{value:t.target.value})}}}static create(t,e){let o;switch(t){case"price":o=Se("price",e);break;case"integer":o=Se("integer",e);break;default:o=Se(t,e);break}return new qr(o||Se("text"),t)}onKeyDown(t,e){var o,s,i,a;let n=e;const l=this.keydownHandlers[t.key];if(l){const r=t.target;e.selection.start=(o=r.selectionStart)!==null&&o!==void 0?o:e.selection.start;e.selection.end=(s=r.selectionEnd)!==null&&s!==void 0?s:e.selection.end;e.selection.direction=(i=r.selectionDirection)!==null&&i!==void 0?i:e.selection.direction;const c=l(t,this.unformatState(e),e);const h=this.partialFormatState(c);if(t.defaultPrevented){r.selectionStart=h.selection.start;r.selectionEnd=h.selection.end;r.selectionDirection=(a=h.selection.direction)!==null&&a!==void 0?a:null}n=h}return n}moveCursor(t,e){t.preventDefault();let o=pe.getCursor(e.selection);let s=pe.getStalker(e.selection);o=Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length);s=t.shiftKey?s:o;e.selection.direction=s<o?"forward":s>o?"backward":"none";e.selection.start=Math.min(s,o);e.selection.end=Math.max(s,o);return e}onFocus(t,e){const o=this.partialFormatState(this.unformatState(e));const s=t.target;s.value=o.value;return o}onBlur(t,e){const o=this.createFormattedState(e);const s=t.target;s.value=o.value;return o}onInputEvent(t,e){var o,s,i,a,n,l,r;const c=t.target;e.selection.start=(o=c.selectionStart)!==null&&o!==void 0?o:e.selection.start;e.selection.end=(s=c.selectionEnd)!==null&&s!==void 0?s:e.selection.end;e.selection.direction=(i=c.selectionDirection)!==null&&i!==void 0?i:e.selection.direction;const h=t.type=="beforeinput"||t.type=="input"?(l=(n=(a=this.eventHandlers[t.type])[t.inputType])===null||n===void 0?void 0:n.call(a,t,this.unformatState(e),e))!==null&&l!==void 0?l:e:e;const d=this.partialFormatState(h);if(t.defaultPrevented){c.value=d.value;c.selectionStart=d.selection.start;c.selectionEnd=d.selection.end;c.selectionDirection=(r=d.selection.direction)!==null&&r!==void 0?r:null}return d}insert(t,e){t.preventDefault();if(typeof t.data=="string")for(const o of t.data)this.formatter.allowed(o,e)&&this.replace(e,o);return e}deleteWord(t,e){const o=pe.getCursor(t.selection);const s=Zr.getWordBreakIndex(t.value,o,e);const i=this.unformatState(Object.assign(Object.assign({},t),{selection:{start:Math.min(o,s),end:Math.max(o,s),direction:"none"}}));const a=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.value=a;i.selection.end=i.selection.start;return i}select(t,e,o,s){t.selection.start=e;t.selection.end=o;s&&(t.selection.direction=s)}erase(t){this.replace(t,"")}replace(t,e){t.value=t.value.substring(0,t.selection.start)+e+t.value.substring(t.selection.end);t.selection.start=t.selection.start+e.length;t.selection.end=t.selection.start}unformatState(t){return ge.copy(this.formatter.unformat(ke.copy(t)))}partialFormatState(t){return this.formatter.partialFormat(ke.copy(t))}createFormattedState(t){return this.formatter.format(ke.copy(this.formatter.unformat(ke.copy(t))))}toString(t){return this.formatter.toString(t)}initialState(t){const e=this.toString(t)||"";const o=e.length;const s=this.createFormattedState({value:e,selection:{start:o,end:o,direction:"none"}});return s}setValue(t,e,o){const s=Object.assign(Object.assign({},e),{value:this.createFormattedState({value:this.formatter.toString(o),selection:e.selection}).value});t.value=s.value;return s}getValue(t){return this.formatter.fromString(this.unformatState(t).value)}setSelection(t,e,o,s){t.focus();t.selectionStart=o;t.selectionEnd=s;this.select(e,o,s);return e}}var Xr;(function(t){t.type=j({name:I(),key:I(),shift:_(),ctrl:_(),alt:_(),meta:_()});t.is=t.type.is;function e(t,e){return{name:t,key:e.key,shift:e.shiftKey,ctrl:e.ctrlKey,alt:e.altKey,meta:e.metaKey}}t.create=e})(Xr||(Xr={}));const Jr='.sc-smoothly-input-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-h[looks="border"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-h,[looks="transparent"].sc-smoothly-input-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-h>input.sc-smoothly-input,[looks="transparent"].sc-smoothly-input-h:not(:focus-within)>input.sc-smoothly-input{background:transparent}[looks="transparent"].sc-smoothly-input-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-h.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .label.sc-smoothly-input{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h.floating-label.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.floating-label .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder] .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly] .sc-smoothly-input-s>[slot=label],.has-value.sc-smoothly-input-h .label.sc-smoothly-input,[placeholder].sc-smoothly-input-h .label.sc-smoothly-input,[readonly].sc-smoothly-input-h .label.sc-smoothly-input,.sc-smoothly-input-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-h:not([show-label]):not(.show-label) .label.sc-smoothly-input{display:none}.sc-smoothly-input-h{display:flex;align-items:center;justify-content:center;font-weight:var(--smoothly-font-weight);overflow:hidden;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input{position:relative;flex-grow:1;height:100%}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>label.sc-smoothly-input{left:var(--input-padding-side)}.sc-smoothly-input-h:not([show-label])>div.sc-smoothly-input>input.sc-smoothly-input{padding:0 var(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input{position:absolute;box-sizing:border-box;align-content:center;height:100%;padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side)}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>div.ghost.sc-smoothly-input>div.remainder.sc-smoothly-input{display:inline;pointer-events:none;opacity:0.5}.sc-smoothly-input-h>.smoothly-input-container.sc-smoothly-input>input.sc-smoothly-input{padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side);box-sizing:border-box;width:100%;height:100%;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}.sc-smoothly-input-h>.smoothly-invalid.sc-smoothly-input{display:none;z-index:2;cursor:pointer;padding:0.5rem}[invalid].sc-smoothly-input-h>.smoothly-invalid.sc-smoothly-input{display:flex}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:focus{outline:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:hover,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:focus,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--smoothly-input-foreground))}';const Qr=Jr;const tc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyKeydown=o(this,"smoothlyKeydown",7);this.smoothlyBlur=o(this,"smoothlyBlur",7);this.smoothlyChange=o(this,"smoothlyChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.uneditable=this.readonly;this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.value=undefined;this.type="text";this.required=false;this.showLabel=true;this.autocomplete=undefined;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.toInteger=undefined;this.currency=undefined;this.min=undefined;this.max=undefined;this.invalid=false;this.changed=false;this.errorMessage=undefined;this.initialValue=undefined;this.state=undefined}async getValue(){return this.stateHandler.getValue(this.state)}async setValue(t){if(this.inputElement)this.state=this.stateHandler.setValue(this.inputElement,this.state,t)}async setFocus(){var t;(t=this.inputElement)===null||t===void 0?void 0:t.focus()}async setSelection(t,e){if(this.inputElement)this.state=this.stateHandler.setSelection(this.inputElement,this.state,t,e<0?this.inputElement.value.length+e+1:e)}async listen(t,e){this.listener[t]=e;e(this)}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async clear(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,undefined)}}async edit(t){!this.uneditable&&(this.readonly=!t)}async reset(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,this.initialValue)}}async setInitialValue(){this.changed=false;this.initialValue=this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}async setCustomInitialValue(t){this.initialValue=t}async smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}typeChange(){var t,e;switch(this.type){case"price":this.stateHandler=qr.create("price",{currency:this.currency,toInteger:this.toInteger});break;case"integer":this.stateHandler=qr.create("integer",{min:this.min,max:this.max});break;default:this.stateHandler=qr.create(this.type,$());break}this.state=this.stateHandler.initialState((t=this.value)!==null&&t!==void 0?t:(e=this.state)===null||e===void 0?void 0:e.value)}stateChange(){var t,e;this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}valueChange(t){const e=this.stateHandler.getValue(this.state);if(Kr.notEqual(e,t)&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,t);this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}}readonlyChange(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentWillLoad(){var t,e;this.typeChange();this.initialValue=this.value;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){if(this.inputElement)this.inputElement.value=this.state.value}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}onEvent(t){this.state=this.stateHandler.onInputEvent(t,this.state)}render(){var t,o,i,a,n,l,r,c,h,d;return e(s,{key:"0046874130373d440f019048c4605836bab13866",class:{"has-value":((t=this.state)===null||t===void 0?void 0:t.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var t;return(t=this.inputElement)===null||t===void 0?void 0:t.focus()}},e("slot",{key:"62543fd9baa1a180154a070946790ce5af1141c0",name:"start"}),e("div",{key:"00e17a078ec4fa127467d44d3e32b6eb7c559800",class:"smoothly-input-container"},e("div",{key:"6dda805d5c3f0f064e16c56eb03cc17f28d83bc9",class:"ghost"},e("div",{key:"17bb1306fe1d35949ba6e45512cd3e99c6484ba5",class:"value"},(i=this.state)===null||i===void 0?void 0:i.value),e("div",{key:"f7e84112afdfa56381042b721d39aa0d30ece6d3",class:"remainder"},(a=this.state)===null||a===void 0?void 0:a.remainder)),e("input",{key:"8356c125ce07feb88d40f7503b7b1da1a0447dbb",ref:t=>this.inputElement=t,color:this.color,name:this.name,type:(n=this.state)===null||n===void 0?void 0:n.type,inputmode:(l=this.state)===null||l===void 0?void 0:l.inputmode,placeholder:this.placeholder,required:this.required,autocomplete:(r=this.autocomplete)!==null&&r!==void 0?r:(c=this.state)===null||c===void 0?void 0:c.autocomplete,disabled:this.disabled,readOnly:this.readonly,pattern:((h=this.state)===null||h===void 0?void 0:h.pattern)&&((d=this.state)===null||d===void 0?void 0:d.pattern.source),onKeyDown:t=>{this.state=this.stateHandler.onKeyDown(t,this.state);if(!this.readonly&&!this.disabled)this.smoothlyKeydown.emit(Xr.create(this.name,t))},onFocus:t=>!this.readonly&&(this.state=this.stateHandler.onFocus(t,this.state)),onBlur:t=>{if(!this.readonly){const e=this.stateHandler.getValue(this.state);this.state=this.stateHandler.onBlur(t,this.state);this.smoothlyBlur.emit();this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});if(Kr.notEqual(e,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}}),e("label",{key:"8d17e6b68b32b37e299ee896697bac07205acc4d",class:"label float-on-focus",htmlFor:this.name},e("slot",{key:"07feb99cc38b31c7b1ca9a212799b1d9cfc7f58b"}))),e("smoothly-icon",{key:"fae4b45c6cf93493ddc0cefb4e9d639294f466d5",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"b998ad53b86d558c0b73e5c3f1ad40210d692420",name:"end"}))}get element(){return i(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};tc.style=Qr;const ec='.sc-smoothly-input-checkbox-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-checkbox-h[looks="border"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}.sc-smoothly-input-checkbox-h[looks="line"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-checkbox-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-checkbox-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding:0 var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.25rem;width:1.25rem;border:1px solid black;display:block}.sc-smoothly-input-checkbox-h:not([readonly]),.sc-smoothly-input-checkbox-h:not([readonly])>*.sc-smoothly-input-checkbox{cursor:pointer}[readonly].sc-smoothly-input-checkbox-h,[readonly].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}[disabled].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{cursor:not-allowed;border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}[looks="transparent"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}';const oc=ec;const sc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name=undefined;this.changed=false;this.readonly=false;this.checked=false;this.value=this.checked;this.looks=undefined;this.color=undefined;this.disabled=undefined}componentWillLoad(){var t,e;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}async elementCheck(){var t,e;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}click(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return e(s,{key:"833609164edc11403d0abf37581eae241ade4022",onMouseDown:t=>this.mouseDownPosition={x:t.clientX,y:t.clientY},onMouseUp:t=>{var e;return((e=this.mouseDownPosition)===null||e===void 0?void 0:e.x)==t.clientX&&this.mouseDownPosition.y==t.clientY&&this.click()}},e("input",{key:"0a1383f71f2da86ca8f5145b673cc363464c2307",type:"checkbox",checked:this.checked}),this.checked&&e("smoothly-icon",{key:"0b1a207721e0374dd79a0be0bea78c7a5ac9d3e2",name:"checkmark-outline",size:"tiny"}),e("label",{key:"656867d69e3cf8554df686764a76d8d4ff55dac8"},e("slot",{key:"536b8f6429d82b7ead0746f8f78918844d74942a"})))}get element(){return i(this)}static get watchers(){return{checked:["elementCheck"]}}};sc.style=oc;const ic='[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-contrast);--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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-clear-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-clear-h{display:inline}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear:empty,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:empty{border-width:0}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[size=flexible].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-clear-h{width:100%}[expand=full].sc-smoothly-input-clear-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-clear-h:not([fill=clear])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-visible,[fill=outline].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:hover::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-within::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:focus-visible,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h .sc-smoothly-input-clear-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h{display:flex}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h[type="input"].sc-smoothly-input-clear-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-clear-h{cursor:not-allowed}.sc-smoothly-input-clear-h[type="input"]:hover.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h[type="input"]:hover .sc-smoothly-input-clear-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}';const ac=ic;const nc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Clear"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(lr.is(t)){this.parent=t;if(rr.Element.is(t)){t.listen("changed",(async t=>{if(hr.is(t)){this.display=!t.readonly&&(typeof t.defined=="boolean"?t.defined:Boolean(await t.getValue()))}if(t instanceof ur){this.disabled=t.readonly||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(){var t;return e(s,{key:"cd3f880e2bbbf7e76336ad2ecf759e8534978141",title:this.tooltip},e("smoothly-button",{key:"04f616c6342c64cb53bb8bf2e296b81a4a131b2a",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined},e("slot",{key:"19abfef9437763a04dda38a4db19972274375b04"}),e("smoothly-icon",{key:"69e46b20ee1c15268aec5e710ae52b6d6038c444",name:"close",size:"tiny"})))}};nc.style=ac;const lc='.sc-smoothly-input-color-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-color-h[looks="border"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}.sc-smoothly-input-color-h[looks="line"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-color-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-color-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-color-h,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background:transparent}[looks="transparent"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{filter:opacity(60%)}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:10;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:"";transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}';const rc=lc;const cc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.readonly=false;this.output="rgb";this.name=undefined;this.showLabel=true;this.open=false;this.sliderMode="rgb"}async componentWillLoad(){this.value&&this.setInitialValue();this.value&&(this.rgb=r.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.output==="rgb"?{r:this.rgb.r===undefined?undefined:Math.round(this.rgb.r),g:this.rgb.g===undefined?undefined:Math.round(this.rgb.g),b:this.rgb.b===undefined?undefined:Math.round(this.rgb.b)}:this.value?this.value:undefined}async clear(){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){var t,e;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}handleSwitchMode(t){t.stopPropagation();this.sliderMode=t.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=r.Hex.toRGB(this.value))}else{this.value&&(this.hsl=r.RGB.toHSL(r.Hex.toRGB(this.value)))}}hexInputHandler(t){if(t!==this.value){if(t&&r.Hex.type.is(t)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=r.Hex.toRGB(t)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=r.RGB.toHSL(r.Hex.toRGB(t))}}else if(!t||!r.Hex.type.is(t)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=t}}sliderInputHandler(t){var e;t.stopPropagation();const o=Object.keys(t.detail)[0];let s=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(t.detail[o]===undefined)){for(const i of Object.keys(s))if(i===o)s=Object.assign(Object.assign({},s),{[i]:i==="s"||i==="l"?+((e=t.detail[o])!==null&&e!==void 0?e:0)*100:t.detail[o]});else if(s[i]===undefined)s=Object.assign(Object.assign({},s),{[i]:0});if(this.sliderMode==="rgb"){this.rgb=Object.assign({},s);this.hsl=r.RGB.toHSL(this.rgb);this.hexInputHandler(r.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},s);this.rgb=r.HSL.toRGB(this.hsl);this.hexInputHandler(r.RGB.toHex(r.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var t,o,i,a,n,l;return e(s,{key:"2f1a28996b592d69882975831576e63be86cda4c",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((t=this.rgb.r)!==null&&t!==void 0?t:0)}`,"--rgb-g":`${Math.round((o=this.rgb.g)!==null&&o!==void 0?o:0)}`,"--rgb-b":`${Math.round((i=this.rgb.b)!==null&&i!==void 0?i:0)}`,"--hsl-h":`${Math.round((a=this.hsl.h)!==null&&a!==void 0?a:0)}`,"--hsl-s":`${Math.round((n=this.hsl.s)!==null&&n!==void 0?n:0)}%`,"--hsl-l":`${Math.round((l=this.hsl.l)!==null&&l!==void 0?l:0)}%`,"--element-height":`${this.element.clientHeight}px`}},e("smoothly-input",{key:"6cfaa6fc460579212c82e23f576b614a8ec939e7",value:this.value,name:this.name,looks:undefined,color:this.color,type:"hex-color",showLabel:this.showLabel,readonly:this.readonly,onSmoothlyInput:t=>(t===null||t===void 0?void 0:t.stopPropagation(),this.hexInputHandler(t.detail[this.name]))},e("slot",{key:"9876c7a6a6f94e6971240e59340b2ddc45fe011e"})),e("div",{key:"303fe59863a8eadb230b775393776214891c458c",class:"color-sample"}),e("smoothly-icon",{key:"7166e064dfc8e3bee8fbc96e174b978a39313fe6",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),e("div",{key:"38b7b41c4dde97ede1b72df696555f71acf19c13"},e("slot",{key:"9fb68c9faeae04a02761a0cda7c70d226546fa9c",name:"end"})),this.open&&!this.readonly&&e("div",{key:"67c5708df458d961f2bbba5970d39a04e6709c13",class:"rgb-sliders"},e("smoothly-toggle-switch",{key:"025476f000074e93fc6ce82c314a92bed9a100d7",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:t=>this.handleSwitchMode(t),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([t,o])=>e("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:t,min:0,max:255,color:undefined,type:"text",value:o,step:1,outputSide:"right",onSmoothlyInput:t=>this.sliderInputHandler(t),label:t.toUpperCase()}))),Object.entries(this.hsl).map((([t,o])=>e("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:t,min:0,max:t==="h"?359:1,color:undefined,type:t==="s"||t==="l"?"percent":"text",value:(t==="s"||t==="l")&&o?o/100:o,step:t==="s"||t==="l"?.01:1,outputSide:"right",onSmoothlyInput:t=>this.sliderInputHandler(t),label:t.toUpperCase()})))))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};cc.style=rc;const hc=class{constructor(e){t(this,e)}render(){return e(s,{key:"425472ef4f686d52c44e4d3a929be66d78823b26"},e("h2",{key:"621c263cd20e5e1e31b26e184c9691b7b16ad282"},"Color"),e("smoothly-input-color",{key:"2aece7d05a7fa18b83ca8830096a78bb105c8f85",name:"color"},"Choose color"))}};hc.style="style.css";const dc='.sc-smoothly-input-date-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-h,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-h>input.sc-smoothly-input-date,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within)>input.sc-smoothly-input-date{background:transparent}[looks="transparent"].sc-smoothly-input-date-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .label.sc-smoothly-input-date{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-h.floating-label.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.floating-label .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder] .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly] .sc-smoothly-input-date-s>[slot=label],.has-value.sc-smoothly-input-date-h .label.sc-smoothly-input-date,[placeholder].sc-smoothly-input-date-h .label.sc-smoothly-input-date,[readonly].sc-smoothly-input-date-h .label.sc-smoothly-input-date,.sc-smoothly-input-date-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date{display:none}.sc-smoothly-input-date-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;min-height:var(--input-min-height)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:pointer}[readonly].sc-smoothly-input-date-h,[readonly].sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:not-allowed}[looks=transparent].sc-smoothly-input-date-h smoothly-input.sc-smoothly-input-date{outline:none}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));min-width:18em}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>smoothly-calendar.sc-smoothly-input-date::before{content:"";box-sizing:border-box;position:absolute;top:1px;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h>span.icons.sc-smoothly-input-date{display:flex;flex-direction:row;align-items:center}@media screen and (min-width: 400px){.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em}}';const mc=dc;const uc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.changed=false;this.readonly=false;this.invalid=false;this.errorMessage=undefined;this.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true}componentWillLoad(){var t,e;this.setInitialValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async listen(t,e){this.listener[t]=e;e(this)}async clear(){this.value=undefined}onStart(t){var e,o;this.smoothlyValueChange.emit(t);this.smoothlyInput.emit({[this.name]:t});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.changed=false}dateSetHandler(t){this.open=false;t.stopPropagation()}render(){return e(s,{key:"9db0c63036aa6f0207fce78ffd6f802b7deeb5ad"},e("smoothly-input",{key:"a6db19ef7beb77e6a0beee10b274373f3f2a732d",color:this.color,looks:this.looks=="transparent"?this.looks:undefined,name:this.name,onFocus:()=>!this.readonly&&(this.open=!this.open),onClick:()=>!this.readonly&&(this.open=!this.open),readonly:this.readonly,errorMessage:this.errorMessage,invalid:this.invalid,type:"date",value:this.value,showLabel:this.showLabel,onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.value=t.detail[this.name]}},e("slot",{key:"2e6e4e4151da614f0de08159c5b0e37a3404b120"})),e("span",{key:"686e082fc080a78bc2af6eac16f1cf352db9b68b",class:"icons"},e("slot",{key:"037c3e5ecfb313d705aa23317cf9eeb793769f48",name:"end"})),this.open&&!this.readonly&&e("nav",{key:"63a91d7dfd85ea9d3731e47e4b68bbb49bf67db1"},e("smoothly-calendar",{key:"e121009669154791ed3df7981a540bfa6cb12fc1",doubleInput:false,value:this.value,onSmoothlyValueChange:t=>{this.value=t.detail;t.stopPropagation()},max:this.max,min:this.min},e("div",{key:"c42e755a2c39062bd185905db9502c55ab3e30ae",slot:"year-label"},e("slot",{key:"101b37555fb0c8922cc3989455eeff39eeecbc34",name:"year-label"})),e("div",{key:"cd14ec9baed6b289de558f03ac04d63d1fc40115",slot:"month-label"},e("slot",{key:"d7eee5fdb8a0191e411f1be6fd22c997bddc18ca",name:"month-label"})))))}get element(){return i(this)}static get watchers(){return{value:["onStart"]}}};uc.style=mc;const yc='.sc-smoothly-input-date-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-range-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-range-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-range-h,[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-range-h>input.sc-smoothly-input-date-range,[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:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-range-h.floating-label.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.floating-label .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder] .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly] .sc-smoothly-input-date-range-s>[slot=label],.has-value.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[placeholder].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[readonly].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,.sc-smoothly-input-date-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date-range{display:none}.sc-smoothly-input-date-range-h{position:relative;display:flex;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-date-range-h:focus-within smoothly-input.sc-smoothly-input-date-range{outline:none}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:pointer}[readonly].sc-smoothly-input-date-range-h,[readonly].sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:not-allowed}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em;min-width:18em}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>smoothly-calendar.sc-smoothly-input-date-range::before{content:"";position:absolute;box-sizing:border-box;top:1px;left:-7em;z-index:9;transform:translate(10em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;width:100%;background-color:var(--smoothly-input-background);border-radius:0.25rem;cursor:pointer}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range{min-width:15rem;width:100%;background-color:transparent;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>span.sc-smoothly-input-date-range{padding:0.5em 0.2em 0.5em 0.2em;align-self:center}.sc-smoothly-input-date-range-h>span.icons.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center}';const bc=yc;const fc=class{constructor(e){t(this,e);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name="dateRange";this.color=undefined;this.looks=undefined;this.readonly=false;this.showLabel=true;this.start=undefined;this.end=undefined;this.placeholder="from — to";this.invalid=false;this.max=undefined;this.min=undefined;this.changed=false;this.value=undefined;this.open=undefined}componentWillLoad(){var t,e;this.setInitialValue();this.updateValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}inputHandler(t){const e="dateRangeInput"in t&&typeof t.dateRangeInput=="string"&&t.dateRangeInput.split(" - ");if(e&&e.length==2&&x.is(e[0])&&x.is(e[1])){this.start=e[0];this.end=e[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var t,e;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.start&&this.end?{start:this.start,end:this.end}:undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.start=this.initialStart;this.end=this.initialEnd}async setInitialValue(){this.initialStart=this.start;this.initialEnd=this.end;this.changed=false}async clear(){this.start=undefined;this.end=undefined;this.smoothlyInput.emit({[this.name]:undefined})}render(){const t=navigator.language;return e(s,{key:"9264a1feea92e3151f9eb3a7ed4a33ba8d70d2b0",tabindex:0},e("section",{key:"683a4226bec41fe455f53000a52b2de7e3299030",onClick:()=>!this.readonly&&(this.open=!this.open)},e("smoothly-input",{key:"c6b5c3d154cd6ebc651b4fa187b2808bd5f9dae2",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${Ce(this.start,"date",t)} — ${Ce(this.end,"date",t)}`:undefined,invalid:this.invalid,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:t=>{t.stopPropagation();this.inputHandler(t.detail)}},e("slot",{key:"9e32996babca0c1ad197d91a1d7db1e9e0dd553b"}))),e("span",{key:"a1bffd73159766ed93c979e8d434802b095716f3",class:"icons"},e("slot",{key:"2257c8ebd21da97cc917b66c0fc2799c66402f20",name:"end"})),this.open&&e("nav",{key:"112d3614de43a24f357b3846b207cdd7851d1452"},e("smoothly-calendar",{key:"0b8d5227c5f066d32c9b0ba83bcce0201564bbd9",doubleInput:true,onSmoothlyValueChange:t=>t.stopPropagation(),onSmoothlyStartChange:t=>{t.stopPropagation();this.start=t.detail},onSmoothlyEndChange:t=>{t.stopPropagation();this.end=t.detail},onSmoothlyDateSet:t=>t.stopPropagation(),onSmoothlyDateRangeSet:t=>{t.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:t.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return i(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};fc.style=bc;const pc='.sc-smoothly-input-date-time-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-date-time-h[looks="border"].sc-smoothly-input-date-time-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-time-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-time-h{border:transparent solid 1px}.sc-smoothly-input-date-time-h[looks="line"].sc-smoothly-input-date-time-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-time-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-time-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-time-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-time-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-time-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-time-h,[looks="transparent"].sc-smoothly-input-date-time-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-time-h>input.sc-smoothly-input-date-time,[looks="transparent"].sc-smoothly-input-date-time-h:not(:focus-within)>input.sc-smoothly-input-date-time{background:transparent}[looks="transparent"].sc-smoothly-input-date-time-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-time-h.sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-time-h.floating-label.sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h.floating-label .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h.has-value.sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h.has-value .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[placeholder].sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[placeholder] .sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[readonly].sc-smoothly-input-date-time-s>[slot=label],.sc-smoothly-input-date-time-h[readonly] .sc-smoothly-input-date-time-s>[slot=label],.has-value.sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time,[placeholder].sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time,[readonly].sc-smoothly-input-date-time-h .label.sc-smoothly-input-date-time,.sc-smoothly-input-date-time-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date-time{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-time-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date-time{display:none}.sc-smoothly-input-date-time-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;min-height:var(--input-min-height)}.sc-smoothly-input-date-time-h>smoothly-input.sc-smoothly-input-date-time{--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-time-h>smoothly-input.sc-smoothly-input-date-time>div.sc-smoothly-input-date-time>input.sc-smoothly-input-date-time{cursor:pointer}[readonly].sc-smoothly-input-date-time-h,[readonly].sc-smoothly-input-date-time-h>smoothly-input.sc-smoothly-input-date-time>div.sc-smoothly-input-date-time>input.sc-smoothly-input-date-time{cursor:not-allowed}[looks=transparent].sc-smoothly-input-date-time-h smoothly-input.sc-smoothly-input-date-time{outline:none}.sc-smoothly-input-date-time-h>nav.sc-smoothly-input-date-time{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));min-width:18em}.sc-smoothly-input-date-time-h>nav.sc-smoothly-input-date-time>smoothly-calendar.sc-smoothly-input-date-time::before{content:"";box-sizing:border-box;position:absolute;top:1px;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-time-h>span.icons.sc-smoothly-input-date-time{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-date-time-h>smoothly-input[name="date"].sc-smoothly-input-date-time{width:12rem}.sc-smoothly-input-date-time-h>smoothly-input[name="hour"].sc-smoothly-input-date-time{width:4rem}.sc-smoothly-input-date-time-h>smoothly-input[name="minute"].sc-smoothly-input-date-time{min-width:4rem;flex-grow:1}.sc-smoothly-input-date-time-h>span.colon.sc-smoothly-input-date-time{padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side)}.sc-smoothly-input-date-time-h>.icons.sc-smoothly-input-date-time>.smoothly-invalid.sc-smoothly-input-date-time{display:none;z-index:2;cursor:pointer;padding:0.5rem}[invalid].sc-smoothly-input-date-time-h>.icons.sc-smoothly-input-date-time>.smoothly-invalid.sc-smoothly-input-date-time{display:flex}@media screen and (min-width: 400px){.sc-smoothly-input-date-time-h>nav.sc-smoothly-input-date-time{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em}}';const gc=pc;const kc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.changed=false;this.readonly=false;this.invalid=false;this.errorMessage=undefined;this.value=undefined;this.open=undefined;this.showLabel=true;this.min=undefined;this.max=undefined;this.date=undefined;this.hour=undefined;this.minute=undefined}componentWillLoad(){var t,e;this.setInitialValue();this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){const t=this.date&&typeof this.hour=="number"&&typeof this.minute=="number"?`${this.date}T${`${this.hour}`.padStart(2,"0")}:${`${this.minute}`.padStart(2,"0")}:00.000Z`:undefined;return S.is(t)?t:undefined}async listen(t,e){this.listener[t]=e;e(this)}async clear(){this.value=undefined;this.date=undefined;this.hour=undefined;this.minute=undefined}async handleChange(){var t,e;const o=await this.getValue();this.smoothlyValueChange.emit(o);this.smoothlyInput.emit({[this.name]:o});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}valueChange(t){var e,o;if(S.is(t)){this.date=S.getDate(t);this.hour=S.getHour(t);this.minute=S.getMinute(t)}this.smoothlyValueChange.emit(t);this.smoothlyInput.emit({[this.name]:t});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}smoothlyInputHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(t){this.readonly=!t}async reset(){if(S.is(this.initialValue)){this.date=S.getDate(this.initialValue);this.hour=S.getHour(this.initialValue);this.minute=S.getMinute(this.initialValue)}else{this.date=undefined;this.hour=undefined;this.minute=undefined}}async setInitialValue(){this.initialValue=await this.getValue();this.changed=false}render(){return e(s,{key:"f685671f7623581876d377217bc42b9486e4a179"},e("smoothly-input",{key:"a31204db327a688869ee1c5275db78b871afa268",color:this.color,looks:this.looks=="transparent"?this.looks:undefined,name:"date",onFocus:()=>!this.readonly&&(this.open=!this.open),onClick:()=>!this.readonly&&(this.open=!this.open),readonly:this.readonly,type:"date",value:this.date,showLabel:this.showLabel,onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.date=t.detail.date}},e("slot",{key:"1a08c1994f7d59f58349d7896de61f1e58be148f"})),e("smoothly-input",{key:"5714b1a043d1fbaef8d9ffe74d31789b46c603e1",name:"hour",type:"integer",max:23,value:this.hour,placeholder:"hh",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.hour=t.detail.hour}}),e("span",{key:"22de8e550b339963d907a6acb7352abf1bcb4672",class:"colon"},":"),e("smoothly-input",{key:"f990c4c4fe93b57a1dd8b1959ef5a5cd734322f8",name:"minute",type:"integer",max:59,value:this.minute,placeholder:"mm",onSmoothlyInputLoad:t=>t.stopPropagation(),onSmoothlyInput:t=>{t.stopPropagation();this.minute=t.detail.minute}}),e("span",{key:"03f9d327ff1f3e8e85f130174de8cf6bb973b68a",class:"icons"},e("smoothly-icon",{key:"8ab24a69f37c9f91e7eae091b5e1e0a234f5603e",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"aa179179ebb4e651983ef043f7c3681874c3fec2",name:"end"})),this.open&&!this.readonly&&e("nav",{key:"79d2319fdeb0324acbac5b3372104a46433366b7"},e("smoothly-calendar",{key:"c3e4d0a7f52b6d9a1d5226fd5d8156ccbb61148e",doubleInput:false,value:this.value,min:this.min?S.getDate(this.min):undefined,max:this.max?S.getDate(this.max):undefined,onSmoothlyValueChange:t=>{this.date=t.detail;t.stopPropagation()},onSmoothlyDateSet:t=>{this.open=false;t.stopPropagation()}},e("div",{key:"f8b4da09f4e35f8e15a1947ce2925d20a2bffca5",slot:"year-label"},e("slot",{key:"e2eb5db558c1d6065a4eb335e0b28b14643e75d9",name:"year-label"})),e("div",{key:"9b03608816d7c7c1f16314f694d540587b142e92",slot:"month-label"},e("slot",{key:"c7c67e09c8a4cd5171bc6d3cea431ac6d41e06de",name:"month-label"})))))}get element(){return i(this)}static get watchers(){return{date:["handleChange"],hour:["handleChange"],minute:["handleChange"],value:["valueChange"]}}};kc.style=gc;const vc=".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{margin:auto;width:50%}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>smoothly-color.sc-smoothly-input-demo>*.sc-smoothly-input-demo,.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-basis:49%}";const wc=vc;const xc=class{constructor(e){t(this,e);this.duration={hours:8};this.alphanumeric="!@##"}render(){return e(s,{key:"6b76ad9238bac8081314e4837ebd98307de38dad"},e("smoothly-input-demo-standard",{key:"f01eea6d5242a634b41ad706f4e071e5d18ab0d0"}),e("div",{key:"19c7dfa3c020b0367552a7254eabe5914895df3d",class:"inputs"},e("h2",{key:"bc28b9077ccf104566263415792fcc17adaabf48"},"Calendar"),e("smoothly-input-date",{key:"927f509aeea74a8c71192de2da1e9a94cac8ba25",name:"some-date"},"Calendar"),e("smoothly-input-date-time",{key:"51dfd1f872fc354689d6b50cb09b50af29397d92",name:"someDateTime"},"DateTime"),e("h2",{key:"d6c4206b9cd37968ddb31a729421426b8155a684"},"Date Range"),e("smoothly-input-date-range",{key:"0a0b797d687900af6153056f1aa2e6b036977e8f",name:"testing",start:x.now(),end:x.nextMonth(x.now()),min:"2021-10-01",max:"2025-01-31"}),e("smoothly-input-date-range",{key:"692a39e6f84cb8fef83b6f5e45669d39212f40ee",name:"testing",start:x.now(),end:x.nextMonth(x.now()),min:"2021-10-10",max:"2024-12-30"},e("smoothly-input-reset",{key:"31c69e1203027ef28a57ff0f9444aa6ea008d596",slot:"end",size:"icon"})),e("smoothly-input-date-range",{key:"c0f0c89f1651ec73d40bc4b90b3ad420c11b175d",looks:"grid",start:x.now(),end:x.nextMonth(x.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem"}},e("smoothly-input-clear",{key:"71919ae4a599a69a4d22b64a0df7cf14fbb90fb1",slot:"end",size:"icon"})),e("h2",{key:"876ef70c63a70873047b2248ea9f6d4213f81f19"},"Date"),e("smoothly-input-date",{key:"1f8ca07a67bafed4f51eae08e17d0b4d7bc8db42"},"Date"),e("smoothly-input-date",{key:"49455625eb71c6f7d6d1b690aedcd42a3d79a67b",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),e("smoothly-input-date",{key:"136f7e38566b2542b9961124eb688da89a229d0f",value:"2021-10-28"},"Date",e("smoothly-input-reset",{key:"74300b814beda57a74c4b22375b4c2c77fc3ef85",slot:"end",size:"icon"})),e("smoothly-input-date",{key:"a95b8bd4c1de2703992ce072047013e9a30f458d",value:"2021-10-28"},"Date",e("smoothly-input-clear",{key:"279e6b6abcc5cb81e59338dcc27508f1f3d9ba11",slot:"end",size:"icon"})),e("h2",{key:"0f0d51fe5f32942c087c9e7a8773c7654d205a58"},"Select"),e("div",{key:"0b8402098b70e7faa9d2e4764c5925b7a828d0a0",class:"select-div"},e("smoothly-input-select",{key:"961ac8725d3405ba3f3765cfe5a0878d6fe7a071",name:"select-dessert",looks:"border"},e("label",{key:"7bf194639e6ee9ff96b62a15ed9e00f88621b3b7",slot:"label"},"Select with clear button"),e("smoothly-item",{key:"b1bc6e49f1cc78d8e289f89c8604f40edfda62aa",value:"1"},"Ice cream"),e("smoothly-item",{key:"29b0128fdaf49a260d619b830736f6d35614114b",value:"2"},"Sponge cake"),e("smoothly-item",{key:"91d62568b8f072b4d00f58315b0553fb6edafbe7",value:"3",disabled:true},"Disabled Item"),e("smoothly-item",{key:"0b058b8d63dd1e13551274ec665ccb686ef6be07",value:"4"},"Cookie"),e("smoothly-item",{key:"72d8ab4c88bd951e9b49bb149074231b71052b85",value:"5"},"Croissant"),e("smoothly-item",{key:"8edd5911789eb1263b327f61c620dfbe609e6b24",value:"6"},"Chocolate fondue"),e("smoothly-input-clear",{key:"f220a43c7476375dfbfbefa7cdb167fac3ef0b41",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"22ce7d332e32a112d9fe82927687c2f4ebe2e536",multiple:true,name:"select-dessert-multiple",looks:"border"},e("label",{key:"e5e50901992e8f08a703cafb997a9684507cfd78",slot:"label"},"Select multiple with reset button"),e("smoothly-item",{key:"4fa5eb62bacee098d016122c0a669db50dc82f26",value:"ice cream"},"Ice cream"),e("smoothly-item",{key:"8298d237826158bb5b21dd34c2844b745175e804",value:"sponge cake"},"Sponge cake"),e("smoothly-item",{key:"5d5a5dd8ca97227d2ffe3cfcf6ad2e538a4d41f6",selected:true,value:"cookie"},"Cookie"),e("smoothly-item",{key:"9b9f7784c4ed671d64a958b4723344f600ac50f0",value:"croissant"},"Croissant"),e("smoothly-item",{key:"d12a6181d71bb6525009cee933871861c076335e",selected:true,value:"chocolate fondue"},"Chocolate fondue"),e("smoothly-input-reset",{key:"f41010be4b6b0f872b7322992720ce208a56d32b",size:"icon",slot:"end"})),e("smoothly-input-select",{key:"2a39d303bafa529d36a86326e419e2df9c1d9f8e",name:"spirit-animals",looks:"border",mutable:true},e("label",{key:"11814867e9393040169f40ba26cdb139b175e3ca",slot:"label"},"Select or add new options"),e("smoothly-item",{key:"971b0682de76f47bafbab665a577f7b908f2c1ae",value:"manatee"},"Manatee"),e("smoothly-item",{key:"10f6203ce57f262f73e22a76cd8da6c051912b40",selected:true,value:"cthulu"},"Cthulu")),e("smoothly-input-select",{key:"7cf1347aaf5443c4a131e8524a0a2d2e56a2a449",name:"select-icon",clearable:false,showSelected:false},e("smoothly-item",{key:"4aa469f9a2181273191b157a83c731acf8d8d0e2",value:"folder",selected:true},e("smoothly-icon",{key:"0b842c2b5fbce95c5e10ea142479c2cab4c30a59",size:"small",name:"folder-outline"})),e("smoothly-item",{key:"eaf8e46883d3fc6c8f2e6d10de8505c4431d386f",value:"camera"},e("smoothly-icon",{key:"c7d8a64c45ecc10fac807228eda7ea3d0e04bf1a",size:"small",name:"camera-outline"}))),e("smoothly-input-select",{key:"5885ee3fba0c90739172588b81a3986d0b0ffa22",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"b7bc9954f3626c31107ab0396f93ce144c77076d",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((t,e)=>String.fromCharCode(e+65))).map((t=>e("smoothly-item",{value:t,selected:t=="H"},t)))),e("smoothly-input-select",{key:"c4aa7cffaaf167f14aa0c64d892884cbde68e5be",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},e("label",{key:"545276bfb714dfd58c6154782ee8ae211b95cec6",slot:"label"},"Month multiple select"),e("smoothly-item",{key:"7e65f5dc15cae37de91517e7faf6ac6e5399bce9",value:"1"},"January"),e("smoothly-item",{key:"c30435464dc59d081fcc3027a0559cc2ed651263",value:"2"},"February"),e("smoothly-item",{key:"2369d8e036dd55c75e7c38650a2cd84477302b26",value:"3"},"March"),e("smoothly-item",{key:"70deb72243f26d8e44aefd45ad8934616162bbcb",value:"4"},"April"),e("smoothly-item",{key:"3746936d4ff064b7c4c102e1b12ab0fc9e032063",value:"5"},"May"),e("smoothly-item",{key:"7070e74bd89c6f8257617c69e9f86898b7276b6d",value:"6"},"June"),e("smoothly-item",{key:"6e7ce9026ab57b2504ba7cb66c6581a29cd3c719",value:"7"},"July"),e("smoothly-item",{key:"bd26f3aed9824a9badfe1c76e284d231bdcef74d",value:"8"},"August"),e("smoothly-item",{key:"fb68e06412265f8abd9d48b5e632b9703c4ac928",value:"9"},"September"),e("smoothly-item",{key:"8d665cb2ff2f3485fe78aba07b8f9de7a911251e",value:"10"},"October"),e("smoothly-item",{key:"2daee790fe6fb3b1ba06189a8a5b70af75f78a6a",value:"11"},"November"),e("smoothly-item",{key:"51c4c70fd8256d5aa2a609c3560f5a596d545e8f",value:"12"},"December"))),e("h2",{key:"fb225955c7e4944055c2f5dbabce570a1a471aae"},"Duration"),e("smoothly-input",{key:"f44446650cd88ad8d99ded00c6bc6ab5449cbd92",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:t=>this.duration=t.detail.duration},"Duration"),e("smoothly-input",{key:"11f884760d1597ea12a14a6cafa9038a6588f725",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:t=>{const e=t.detail.duration;this.duration=e}},"Duration"),e("h2",{key:"4c7492e9714e8fb6ed7cf3d9ed4ea96adb985130"},"Integer with Min/Max"),e("smoothly-input",{key:"b20b1b15b55f7b70f6242516efe1582b209a26d4",name:"days",type:"integer",min:0,max:365},"Days per year (0-365)"),e("smoothly-input",{key:"c906c1f3899f68a55f8be01c02eec8a1555475a0",name:"hour",type:"integer",min:0,max:23},"Hours per day (0-23)"),e("smoothly-input",{key:"86ee548b052dde32fcfdc56bf3fc87b3523a4af8",name:"minute",type:"integer",min:0,max:59},"Minutes per hour (0-59)"),e("smoothly-input",{key:"66e657e487efa82de5f1fc0263b43019bdac2cbd",name:"minute",type:"integer",min:18,max:120},"Age (18-120)"),e("h2",{key:"cda6e85e77f12cfd3ef7726b6441044708f8fdf6"},"Invalid text with warning icon and tooltip"),e("smoothly-input",{key:"c46bdd16248a0abd4719c60b2214e3d0a76be91f",name:"alphanumeric",invalid:!/^[a-zA-Z0-9]+$/.test(this.alphanumeric),errorMessage:"Only alphanumeric allowed",value:this.alphanumeric,onSmoothlyInput:t=>this.alphanumeric=t.detail.alphanumeric},"Alphanumeric"),e("h2",{key:"8b9ac9caaee89b0f0311b3b07cff22a642dd0e91"},"Identifiers"),e("smoothly-input",{key:"a86d2727f6403d4f0abf68523b64cf87d41e920e",type:"identifier-code"},"Code"),e("smoothly-input",{key:"0c1074b72c4f43c4154384d40b3d57544a368b5c",type:"identifier-attribute"},"Attribute"),e("smoothly-input",{key:"8daee7413012f41575269d5d1544bd55163a6224",type:"identifier-snake"},"Snake"),e("smoothly-input",{key:"853d8e4ca927c3fb4795a8c22a074ac70e3221cb",type:"identifier-pascal"},"Pascal"),e("smoothly-input",{key:"47d002602d7b06b9200425dea97832e2f2af166e",type:"identifier-camel"},"Camel"),e("h2",{key:"90d5bc2db3b3a24e7811f235150be80dda8b99e1"},"Input Alternatives"),e("smoothly-input",{key:"45f7215c2e1a24efe1e9d57a17cabc61baeb0111",type:"text",name:"name.last",onSmoothlyChange:t=>console.log("smoothly change event")},e("smoothly-icon",{key:"52329d58edb2c7339ca9cfe141caeb0fc293d0bb",name:"checkmark-circle",slot:"start"}),"First Name"),e("smoothly-input",{key:"38bab99ffee2515d50a6ffe8ccd4e84e3dc9f886",type:"text",name:"name.first",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"e9f274e1ef1f3c3b8bfe745ca96d5869b3dab037",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"6fd7aa7c4d8efc4c4c4df1b59795242841591688",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:t=>console.log("smoothly change event")},"Last Name",e("smoothly-icon",{key:"89710a2b183a786dc6a3d4b8d74f16e112ff8f5e",name:"checkmark-circle",slot:"end"})),e("smoothly-input",{key:"2a89776d8fb9d51d67349f98dcf8664bcc998a57",placeholder:"test"}),e("smoothly-input-submit",{key:"5556f4dfce7aa8ccaa7c2c31854bdc1834309b34",slot:"submit",fill:"solid",onSubmit:t=>alert(t),color:"success"}),e("h4",{key:"fbecb4027ca619c48dbaf4959a7a37e67727af67"},"Smoothly checkboxes"),e("div",{key:"32412e16e082f5a1ccd1baa209058d7cdd9a4e91",class:"checkbox-group"},e("smoothly-input-checkbox",{key:"9abd96ea1d8a91bbb24e9ce02e72a7266df75799",disabled:true,name:"first-checkbox"},e("smoothly-icon",{key:"1223e51c9b85cff662d82d510094dee740c2ee77",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),e("smoothly-input-checkbox",{key:"31bf44e0df0221c42adf3fe58463cff04e8cc4bc",name:"second-checkbox",checked:true},e("smoothly-icon",{key:"f11474c5b4f4ac1267aa3497bf234d4cdc50f130",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",e("smoothly-input-clear",{key:"9d54145cfe1114a9cabc02ed57535da3e11f375b",size:"icon",slot:"end"})),e("smoothly-input-checkbox",{key:"b638676c431660d910eed5792faa0cfc87500412",name:"third-checkbox"},"3rd")),e("h4",{key:"22a945c153157b3896913bac81f8c4314b8451d6"},"Smoothly Radio Buttons"),e("smoothly-input-radio",{key:"35ed33aa765ba3fb0817e039fcf90fcebf3cd6c2",clearable:true,name:"radioFirstInput"},e("smoothly-icon",{key:"be8659761a6623b0e7fa12a0d0fa535edaaedcc2",name:"checkmark-circle",slot:"start"}),e("label",{key:"a0e5f61e0a27a4f4dca21298671aec752a1d407c",slot:"label"},"Clearable"),e("smoothly-input-radio-item",{key:"d1a85abe8267d8970d5ef498abe8dcf5f76d6a84",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"af7eca3580a8dfbc8fbd918a0bef5d3ca5c9ce80",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"a0b23474026cb3bf08b5b8cdc709db8e3a3afcb6",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"8f6f0c21cfdf282fb6768239ae410197bbfd3a14",size:"icon",slot:"end"})),e("smoothly-input-radio",{key:"b0838be43e328f4cb185f61ac8b51ef94db28a1b",name:"radioSecondInput"},e("label",{key:"f8d216209a405c137fc5b806feb041806844eace",slot:"label"},"Not clearable"),e("smoothly-input-radio-item",{key:"6930abf2cfe2911c03446c3ab08e7be7a3a87728",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"54ce3c3bff3fd64d0aa19ca134fb375bf9f34ddc",value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"fc864e57e7cab32ca10c26416f60cdce45c2fac5",value:"third"},"Label 3"),e("smoothly-input-radio-item",{key:"130e9a9d0c0357cdcbcd0074ecb74ccaa9306c01",value:"fourth"},"Label 4"),e("smoothly-input-radio-item",{key:"e7016eea8f86a0639de1b062ad4a7d81750ee6cd",value:"fifth"},"Label 5"),e("smoothly-input-radio-item",{key:"8a52b7c1c44cffb63cd877eda812806caae059a8",value:"sixth"},"Label 6")),e("smoothly-input-range-demo",{key:"d0b867c8b63f616ae7a1eacba91d08df641f0db2"}),e("smoothly-input-color-demo",{key:"c3dc25177603e7c31df0a00c1a624e87532233e0"}),e("smoothly-input-price-demo",{key:"0ca0b6ae79ecf4db86c5597e8f0ac84e0f57094a"}),e("smoothly-back-to-top",{key:"ea8d2cc631f98ec5f49d56f7ad4fe3596578090b"})))}};xc.style=wc;const Sc='.sc-smoothly-input-demo-standard-h{width:50%;margin:auto}.sc-smoothly-input-demo-standard-h h2.sc-smoothly-input-demo-standard,.sc-smoothly-input-demo-standard-h p.sc-smoothly-input-demo-standard{margin:.5rem 0}div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;margin-top:1rem;grid-template-columns:2fr 1fr;gap:1rem;position:relative;justify-content:space-around}div.input-wrapper.sc-smoothly-input-demo-standard>[name].sc-smoothly-input-demo-standard{grid-column:1 / 2}div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard{width:100%;text-align:center;border-bottom:1px dashed black}div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard{align-content:center;grid-column:2 / 3;border-left:1px dashed black;padding-left:1rem;content:"hello"}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{width:0.5rem;grid-column:1 / 2;white-space:nowrap;overflow:visible;position:relative;cursor:default}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard::before{content:"";position:absolute;width:100%;top:1.5rem;bottom:-1rem;border:1px dashed black;z-index:2}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard:hover::before{bottom:-100vh}.vertical.sc-smoothly-input-demo-standard-h{width:100%;row-gap:0;position:relative}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;grid-template-columns:repeat(auto-fill, 14rem);gap:.5rem}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{display:none}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::before,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::after{content:"";pointer-events:none;right:0;width:100vw;position:absolute;z-index:2;border-top:1px dotted black}.sc-smoothly-input-demo-standard-h:not(.vertical) .guide-lines.sc-smoothly-input-demo-standard{display:none}.guide-lines.sc-smoothly-input-demo-standard{text-align:end;justify-self:center;align-content:center}.guide-lines.sc-smoothly-input-demo-standard::before{top:1rem}.guide-lines.sc-smoothly-input-demo-standard::after{top:2rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::before{top:1.05rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::after{top:2.3rem}';const Cc=Sc;const zc=class{constructor(e){t(this,e);this.duration={hours:8};this.options={}}connectedCallback(){this.updateInputHeightText()}componentDidRender(){this.updateInputHeightText()}updateInputHeightText(){const t=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));this.element.querySelectorAll(".height").forEach((e=>{const o=e.clientHeight;e.innerHTML=`<b>${o/t}rem</b> (${o}pixels)`}))}render(){const t=this.options.placeholder?"placeholder":undefined;return e(s,{key:"14f3997d5443f2e76fd46941eba1d63d3154b97c",class:{vertical:!!this.options.vertical}},e("div",{key:"d546f2bcbdf79cf259c0643f2d1c7b752a32d855",class:"description"},e("h2",{key:"5eba4de9ad8e9d25a74b9c37e74dd96d8945f754"},"Input Standard"),e("p",{key:"711ee8f5c5fb7ad1d59bdcb254d16b7adf778766"},"Height of input should be ",e("code",{key:"3685a00cb89ee68f0086edbb9017ae8aa9cead62"},"3rem")," including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."),e("smoothly-form",{key:"27dfad971615ab7bc9ffd0f44be0165e67dd62d9",looks:"grid",onSmoothlyFormInput:t=>this.options=t.detail},e("smoothly-input-select",{key:"aef29635c1ec10565093e49a5acbabb93cc33efe",name:"looks"},e("span",{key:"c6489fe16be3e9e6790eec65fa6dd05f1dcf4093",slot:"label"},"Looks"),cr.values.map((t=>e("smoothly-item",{value:t},t)))),e("smoothly-input-checkbox",{key:"47648eb64993a231fcd229b60dc7d96d91868c4f",name:"readonly"},"Readonly"),e("smoothly-input-select",{key:"382c46535ac9a515cac68c02ffb875d25db36d6a",name:"color"},e("span",{key:"5b81d2cbbf12c6b7a0edb935cccc1e168c3f288e",slot:"label"},"Color"),r.values.map((t=>e("smoothly-item",{value:t},e("span",{color:t},t)))),e("smoothly-input-clear",{key:"52f8eefbd4340e6a29a56c8f0cd0b74e20a100f6",slot:"end"})),e("smoothly-input-checkbox",{key:"6a9cefbb724d4505f6071177d5cac39e6bc9132d",name:"vertical"},"Vertical Layout"),e("smoothly-input-checkbox",{key:"19ee4c2294b35122fb8cfc635afd521d14a52f86",name:"showLabel",checked:true},"Show Label"),e("smoothly-input-checkbox",{key:"7f7eb514020c2a3fbcb4aa2ebd26d54db17f1e2b",name:"placeholder"},"Placeholder"),e("smoothly-input-checkbox",{key:"1b46418e59527440485f41d08ec7fbd1d7eb98e0",name:"invalid"},"Invalid"),e("smoothly-input",{key:"ab089629619a331cf101cf1b0fd8d99591625162",name:"errorMessage",value:"This is not a valid value"},"Error Message"),e("smoothly-input-range",{key:"8049224f96f3f89c0524c1add0c84fbf39f1b7cc",label:"Border Radius (rem)",name:"borderRadius",min:0,max:2,step:.25}))),e("div",{key:"cad9cb051bf5c2d831c1144861f0d321dabc89c8",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},e("div",{key:"531cf00988eb45c201f98bf0068cde80271f4d76",class:"width"},"100%"),e("div",{key:"9ffb19f9a5cbe3cf2a1abedba6bdeb4e436ede27",class:"left-padding"},"0.5rem - left padding"),e("smoothly-input",{key:"0aa816550e207f2486b36938e09b300a07d514eb",name:"text",looks:this.options.looks,placeholder:t,invalid:this.options.invalid,errorMessage:this.options.errorMessage,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"a17dba081f48d638910ab56877c94d3a29dd1a03"},"Text"),e("smoothly-input-clear",{key:"fb8c295bd08bcabd77d6892a255d3e62fe90da22",slot:"end"})),e("div",{key:"d138de3fe84ad220c32913e5f3088ba4789b32dd",class:"height"}),e("smoothly-input-select",{key:"1cb41795811d6dae4f918d60352e4a3069e1e0bf",name:"month",looks:this.options.looks,placeholder:t,invalid:this.options.invalid,errorMessage:this.options.errorMessage,readonly:this.options.readonly,color:this.options.color},this.options.showLabel&&e("label",{key:"954f7ab810fafd0e97ba9aae2a8d6cced6287e14",slot:"label"},"Select"),e("smoothly-item",{key:"3ca96142851f51cb9534225b8e666949d2c21b26",value:"1"},"January"),e("smoothly-item",{key:"347345a2874ba4d69a12fc6f0ec63e153c45abad",value:"2"},"February"),e("smoothly-item",{key:"47ae3f0baa1c43fd3822b0211e39028e5a2bd913",value:"3"},"March"),e("smoothly-item",{key:"ba9e6f827429953aac90063eaecaa62bc4c827b8",value:"4"},"April"),e("smoothly-item",{key:"19c5129b5d01e402dd1590442b38c4e391955787",value:"5"},"May"),e("smoothly-item",{key:"c098e0163dd1072cceb3cda351e58b8174f29550",value:"6"},"June"),e("smoothly-item",{key:"c024c4f46a4842a4166fae8e94982935a94f1c52",value:"7"},"July"),e("smoothly-item",{key:"4ea99fc760fa7ca2e2a198072f8f97afcee27611",value:"8"},"August"),e("smoothly-item",{key:"e1d0fed7a17667950ad1412864b8ac451ed1bce7",value:"9"},"September"),e("smoothly-item",{key:"ed048d75a54a0857e1f837e3bdf64135e9cac385",value:"10"},"October"),e("smoothly-item",{key:"61adb3f944994a3a7de21bbc86af2c597db13afb",value:"11"},"November"),e("smoothly-item",{key:"50d1ee703328a10c7a24914b4018a880251ca8e1",value:"12"},"December"),e("smoothly-input-clear",{key:"6d043e427de3b06c96688a5ed9ec81980cc683ad",slot:"end"})),e("div",{key:"9c72f92e10878960773f7e35e941125c18602165",class:"height"}),e("smoothly-input-checkbox",{key:"170fa03ac2b2b687e2adbd3e76c742aee945db49",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),e("div",{key:"6032900febc8c4f19eec5de4c836ad789af6c51f",class:"height"}),e("smoothly-input-radio",{key:"8371012b68b5b5ec8142e458ad263a8bbe5c1974",name:"radio",clearable:true,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("label",{key:"3d745c001e8eb4a7e7c111d5633ebe67aa959b1e",slot:"label"},"Radio"),e("smoothly-input-radio-item",{key:"241b15c2fc477fbf223ce4278fc920f78af4404a",value:"first"},"Label 1"),e("smoothly-input-radio-item",{key:"c1a9b31d82df396edee4b138c91b3cb7554c3dce",selected:true,value:"second"},"Label 2"),e("smoothly-input-radio-item",{key:"5ce18fbd44df0a140689fb319a218fcbb4345112",value:"third"},"Label 3"),e("smoothly-input-clear",{key:"1543c4db8d51d2ac474e7fc64ac08148fe686c6f",slot:"end"})),e("div",{key:"9164f57828a874e7ac265525add448b9cef6499f",class:"height"}),e("smoothly-input-file",{key:"998832500189a8048b61c0d088ebf6091936de83",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:t,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"f7042552073f536c32221a76a0c15c6456d9a651",slot:"label"},"File"),e("smoothly-input-clear",{key:"0f6aafb859e647da06d3780ff368799dba535d26",slot:"end"})),e("div",{key:"148c9d320a09e57a70d5c3f055a8b8968e37fa98",class:"height"}),e("smoothly-input-range",{key:"7dfb09485f2e8cd990bb99cce68e9330f5588cad",name:"range",label:this.options.showLabel?"Range":undefined,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},e("smoothly-input-clear",{key:"55688ff7c249e1448e7c0982ad3600324b8154de",slot:"end"})),e("div",{key:"17118e5f9818d7394bd1d48c8cdecb56027896a3",class:"height"}),e("smoothly-input-color",{key:"74d74bc522829d74ef66d7bcdae1d036d52fdea6",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"739954a57951a1a8a5a43d86dc18ec36ef01122d"},"Color"),e("smoothly-input-clear",{key:"c1945bc7985ca512c4676e41ded665b30153e51d",slot:"end"})),e("div",{key:"95dac85925a2456d07c959331a16ccc35856f740",class:"height"}),e("smoothly-input-date",{key:"c1ce4940545188b1666a2714c3f2ceffc0bda60a",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"c2bae1b862f1d02201d03b6a5ab2acdb1d1cb045"},"Date"),e("smoothly-input-clear",{key:"7f03d5653485e61c14f0fddcf2fab6d2c6d47499",slot:"end"})),e("div",{key:"abea3ee074a0bd8a936f8893ecabed881a820e15",class:"height"}),e("smoothly-input-date-time",{key:"4027287369d494864485f48074171903d67a8f6e",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,errorMessage:this.options.errorMessage,color:this.options.color,showLabel:this.options.showLabel},"DateTime",e("smoothly-input-clear",{key:"12c698ba807f45233aea2ff29e527cee700f452e",slot:"end"})),e("div",{key:"dd08b676e93e76c9105022784d3cbefdfae667c6",class:"height"}),e("smoothly-input-date-range",{key:"927589ec6d706d73b1553da6d6cf03191c688b3c",looks:this.options.looks,readonly:this.options.readonly,invalid:this.options.invalid,color:this.options.color,placeholder:t,showLabel:this.options.showLabel},this.options.showLabel&&e("span",{key:"e679284c2b91b9b231071bc6444b73dee31e2bc5"},"Date Range"),e("smoothly-input-clear",{key:"33d186198e131bfba24b0b1dece79ee3fe36878c",slot:"end"})),e("div",{key:"14c03e80bada19f0635da1a85b7f2cbfadd989ec",class:"height"}),e("div",{key:"3a4fd556ccccfbf566a8c27eb3c74760dffa6893",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return i(this)}};zc.style=Cc;const jc='[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-contrast);--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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-edit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-edit-h{display:inline}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit:empty,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:empty{border-width:0}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[size=flexible].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-edit-h{width:100%}[expand=full].sc-smoothly-input-edit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-edit-h:not([fill=clear])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-visible,[fill=outline].sc-smoothly-input-edit-h:active>button.sc-smoothly-input-edit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:hover::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-within::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:focus-visible,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>smoothly-icon,.sc-smoothly-input-edit-h .sc-smoothly-input-edit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-edit-h{display:none}.sc-smoothly-input-edit-h:not([display]){display:none}[editable].sc-smoothly-input-edit-h{opacity:0.5}.sc-smoothly-input-edit-h[type="input"].sc-smoothly-input-edit-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-edit-h smoothly-icon.default.sc-smoothly-input-edit{transform:translate(.1em, -.1em)}.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>button>*+smoothly-icon{display:none}';const Ic=jc;const _c=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="tertiary";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=true;this.shape=undefined;this.type="input";this.size=undefined;this.toolTip="Edit"}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(rr.type.is(t)){this.parent=t;t.listen("changed",(async t=>{this.display=t.readonly}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.edit(true)}render(){var t;return e(s,{key:"f4b88c08f34277a915cfec6bce48fedbc10eae07",title:this.toolTip},e("smoothly-button",{key:"1cd4dd7d49d1dc11bc1661477fa814849b8a3e1f",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined},e("slot",{key:"a0fa979725be9d57c13754e1fa7d01f9b1f5b8d1"}),e("smoothly-icon",{key:"328075c5444edb7ce7a967f16579c7ec7edc742e",class:"default",name:"create-outline",size:"tiny"})))}};_c.style=Ic;const Tc='.sc-smoothly-input-file-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-file-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-file-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-file-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-file-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-file-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-file-h,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-file-h>input.sc-smoothly-input-file,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background:transparent}[looks="transparent"].sc-smoothly-input-file-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-file-h.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .label.sc-smoothly-input-file{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-file-h.floating-label.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.floating-label .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder] .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly] .sc-smoothly-input-file-s>[slot=label],.has-value.sc-smoothly-input-file-h .label.sc-smoothly-input-file,[placeholder].sc-smoothly-input-file-h .label.sc-smoothly-input-file,[readonly].sc-smoothly-input-file-h .label.sc-smoothly-input-file,.sc-smoothly-input-file-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-file{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-file-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{position:absolute;inset:0;background-color:rgb(var(--smoothly-input-hover-background), 0.6);border-radius:var(--smoothly-input-border-radius);border:0.25rem dashed rgb(var(--smoothly-input-hover-foreground));display:flex;justify-content:center;align-items:center}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file>smoothly-icon.sc-smoothly-input-file{color:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h:not([show-label])>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem}.sc-smoothly-input-file-h:not([show-label])>smoothly-button.sc-smoothly-input-file:not(:empty){margin-right:1ch}[show-label].sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom);height:100%;box-sizing:border-box;flex-grow:1}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>smoothly-button.sc-smoothly-input-file{margin:0;border:none}.sc-smoothly-input-file-h>label.sc-smoothly-input-file{left:var(--input-padding-side)}.sc-smoothly-input-file-h,.sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:pointer}[readonly].sc-smoothly-input-file-h,[readonly].sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:not-allowed}';const Lc=Tc;const Oc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.transfer=new DataTransfer;this.changed=false;this.readonly=false;this.accept=undefined;this.color=undefined;this.looks=undefined;this.camera=undefined;this.name=undefined;this.showLabel=true;this.value=undefined;this.placeholder=undefined;this.dragging=false}get files(){this.transfer.items.clear();this.value&&this.transfer.items.add(this.value);return this.transfer.files}async componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t))}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}async binary(){return true}async valueChanged(){this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}inputHandler(t){var e,o,s;t.stopPropagation();if((o=(e=this.input)===null||e===void 0?void 0:e.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(t){var e;t.preventDefault();t.stopPropagation();this.dragging=false;if((e=t.dataTransfer)===null||e===void 0?void 0:e.files.length)this.value=t.dataTransfer.files[0]}clickHandler(t){var e;if(!this.readonly&&!t.composedPath().find((t=>t==this.input))){(e=this.input)===null||e===void 0?void 0:e.click()}}dragOverHandler(t){t.preventDefault();t.stopPropagation()}dragEnterHandler(t){t.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(t){t.stopPropagation();this.dragging=false}render(){var t,o,i;return e(s,{key:"fd024c3fb839f3d9b444b09c3b55dcd96c4139df",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:0,onClick:t=>this.clickHandler(t),onDragOver:t=>this.dragOverHandler(t),onDragEnter:t=>this.dragEnterHandler(t)},e("label",{key:"636345d960e05bc6e7299c1c306cfd763ad78c32"},e("slot",{key:"911d9215654b918bdb843269c5392523c97337a8",name:"label"})),e("div",{key:"f54718991c82336e4fe2f3a6f8a84cc52da635b8",class:"input"},e("smoothly-button",{key:"55c379187cf9d59ffee497075bb8ee6576d99740",type:"button",color:this.color,fill:"clear",size:"flexible"},e("slot",{key:"3b6ab18c1ab0fb76a4c7151054415b95815876b9",name:"button"})),e("span",{key:"7901e7c5cd0b8344474e18746288bc14f103ee04"},(o=(t=this.value)===null||t===void 0?void 0:t.name)!==null&&o!==void 0?o:this.placeholder),e("div",{key:"4c435365bee82aac9459a6d86b201225065ec3a4",class:"drag-overlay",onDrop:t=>this.dropHandler(t),onDragLeave:t=>this.dragLeaveHandler(t)},e("smoothly-icon",{key:"83c7cfdd671c04e48f6b95cac4b9ab1429a07caf",name:"document-attach-outline"})),e("input",{key:"cfc2bafb8d4b9b5af6d6b9f1f17d1312b3dfea68",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.files,onInput:t=>this.inputHandler(t)})),e("div",{key:"4d125c84153bf6f60d40de857043bc6a53932361",class:"end",onClick:t=>t.stopPropagation()},e("slot",{key:"4d59248a3b753b10e785cebe9dc77fbd79b01ac0",name:"end"})))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};Oc.style=Lc;const Ac=".sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}";const Mc=Ac;const Ec=class{constructor(e){t(this,e);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.listener={};this.readonly=undefined;this.color=undefined;this.looks=undefined;this.name=undefined;this.value=x.now();this.max=undefined;this.min=undefined;this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var e;return this.looks=(e=this.looks)!==null&&e!==void 0?e:t}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(t){var e;if(!this.readonly){const o=x.parse((e=this.value)!==null&&e!==void 0?e:x.now());o.setMonth(o.getMonth()+t);this.value=x.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var t,e;const o=x.previousMonth((t=this.value)!==null&&t!==void 0?t:x.now()).substring(0,7);const s=(e=this.min)===null||e===void 0?void 0:e.substring(0,7);this.allowPreviousMonth=!s||o>=s}setAllowNextMonth(){var t,e;const o=x.nextMonth((t=this.value)!==null&&t!==void 0?t:x.now()).substring(0,7);const s=(e=this.max)===null||e===void 0?void 0:e.substring(0,7);this.allowNextMonth=!s||o<=s}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var t,e;(t=this.year)===null||t===void 0?void 0:t.clear();(e=this.month)===null||e===void 0?void 0:e.clear()}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){var t,e;(t=this.year)===null||t===void 0?void 0:t.reset();(e=this.month)===null||e===void 0?void 0:e.reset()}async setInitialValue(){var t,e;(t=this.year)===null||t===void 0?void 0:t.setInitialValue();(e=this.month)===null||e===void 0?void 0:e.setInitialValue()}inputHandler(t){if(t.target!=this.element){t.stopPropagation();const e=t.detail[`${this.name}-year`];const o=t.detail[`${this.name}-month`];if(o&&x.is(o))this.value=x.firstOfMonth(o);else if(e&&x.is(e))this.value=x.firstOfMonth(e)}}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(t){if(t.target!=this.element)t.stopPropagation()}render(){var t,o;return e(s,{key:"e3b78671189b4799aa6420870caac62bbe2e3206"},e("smoothly-icon",{key:"edd56db8506d2348f45d0e451dc6343b2ac1c40f",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),e("smoothly-input-select",{key:"37537931c02522dff6b3a841aa2e6443a86db8e5",ref:t=>this.year=t,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),searchDisabled:true},e("div",{key:"c52efe9d16ac08f24545f337d7a89f1a7ad83af5",slot:"label"},e("slot",{key:"8e0a0a023d413d1fef890639b213791320f73e66",name:"year-label"})),ie((t=this.value)!==null&&t!==void 0?t:x.now(),this.min,this.max).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-input-select",{key:"98147726f3b4e0f51ac8af4b6394cb581529f8e6",ref:t=>this.month=t,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),searchDisabled:true},e("div",{key:"836cd43278fd86d0d810e817335367c6d8522df1",slot:"label"},e("slot",{key:"a370f8065bc60246a4b3128b71df92f3d469b717",name:"month-label"})),se((o=this.value)!==null&&o!==void 0?o:x.now()).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-icon",{key:"186887cd04242aff455980704947aacfae63f640",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged","setAllowPreviousMonth","setAllowNextMonth"],min:["setAllowPreviousMonth"],max:["setAllowNextMonth"]}}};Ec.style=Mc;const Dc=".sc-smoothly-input-price-demo-h{display:block}";const $c=Dc;const Rc=class{constructor(e){t(this,e);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return e(s,{key:"79d2b4b0522cd90b751e7da7f2630289a204411e"},e("h2",{key:"4a50850a8cea3d8ac1535e3e7ba247986ead7bdb"},"State demo on smoothly-input"),e("p",{key:"1d60b9f3086fe2d6aef0406d4e88aec87b4cd9f9"},"This demo/test the internal state of the smoothly-input component."),e("p",{key:"0e8c90bc64628754392262b590aef28a46c8113f"},"The currency of the price should update when switching between the currencies."),e("smoothly-input-radio",{key:"485449050be389b7b101328dca5478cf739afaf4",name:"currency",onSmoothlyInput:t=>this.currency=z.is(t.detail.currency)?t.detail.currency:undefined},this.currencies.map((t=>e("smoothly-input-radio-item",{key:t,selected:t==this.currency,value:t},t)))),e("smoothly-input",{key:"9920d32947730f631e72072bb22b4f82d940cd73",type:"price",currency:this.currency},"price"))}};Rc.style=$c;const Pc='.sc-smoothly-input-radio-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-radio-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-radio-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-radio-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-radio-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-radio-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-radio-h,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-radio-h>input.sc-smoothly-input-radio,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within)>input.sc-smoothly-input-radio{background:transparent}[looks="transparent"].sc-smoothly-input-radio-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-radio-h.floating-label.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.floating-label .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder] .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly] .sc-smoothly-input-radio-s>[slot=label],.has-value.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[placeholder].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[readonly].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.sc-smoothly-input-radio-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-radio{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-radio-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-radio{display:none}.sc-smoothly-input-radio-h{background-color:rgb(var(--smoothly-input-background));display:flex;align-items:center;padding-left:var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom)}.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio,.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio>div.options.sc-smoothly-input-radio{display:flex;gap:1.5rem}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end]{margin-right:0;margin-left:auto}[readonly].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}';const Fc=Pc;const Hc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.valueReceivedOnLoad=false;this.listener={};this.changed=false;this.value=undefined;this.looks=undefined;this.color=undefined;this.clearable=undefined;this.readonly=false;this.name=undefined;this.showLabel=true}componentWillLoad(){var t,e;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((t=>this.parent=t));this.initialValue=this.active}handleRegister(t){t.stopPropagation();t.detail(this.name)}smoothlyInputLoadHandler(t){hr.registerSubAction(this,t)}smoothlyRadioInputHandler(t){var e,o,s;t.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((e=this.active)===null||e===void 0?void 0:e.value)===t.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.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,e){this.listener[t]=e;e(this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var t;if(this.clearable){(t=this.active)===null||t===void 0?void 0:t.select(false);this.active=undefined;this.value=undefined}}async edit(t){this.readonly=!t}async reset(){var t,e,o;(t=this.active)===null||t===void 0?void 0:t.select(false);this.active=this.initialValue;this.value=(e=this.initialValue)===null||e===void 0?void 0:e.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var t,e,o;this.valueReceivedOnLoad&&(this.changed=((t=this.initialValue)===null||t===void 0?void 0:t.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});(o=(e=this.listener).changed)===null||o===void 0?void 0:o.call(e,this)}watchingReadonly(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}render(){return e(s,{key:"2683b527137fcd6362d031d734239dbeaf40189f",class:"floating-label"},e("slot",{key:"2b7b2a76600ce44547604cde7c4bdc6b1c49f060",name:"start"}),e("div",{key:"d5c326b86b585ec49fdb4a1f1b9b9035ba8bb0d2"},e("slot",{key:"11f4e016acf166e44e5533666015fde2ffba09fa",name:"label"}),e("div",{key:"d099fdeaa59227b67d3149d60c5a240dba9a14e1",class:"options"},e("slot",{key:"0c871b481539804b6c51037ee1739e901a7f6628"}))),e("slot",{key:"aee4f654185112600103bb644047584bb6e6d0c0",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Hc.style=Fc;const Nc=".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 Yc=Nc;const Uc=class{constructor(e){t(this,e);this.smoothlySelect=o(this,"smoothlySelect",7);this.smoothlyRadioItemRegister=o(this,"smoothlyRadioItemRegister",7);this.value=undefined;this.selected=false;this.looks=undefined;this.name=undefined}componentWillLoad(){this.smoothlyRadioItemRegister.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 e(s,{key:"accc7b7e7097677782604053aee9b48ed9349756",onClick:()=>this.inputHandler()},e("input",{key:"9bd4dd5bfdfd1e6eb23a02b8d4fdea14cd936802",name:this.name,type:"radio",checked:this.selected}),e("smoothly-icon",{key:"fe0d24d61fd2b5a318542f68effa90c163abf5fe",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),e("label",{key:"0d6e257ed8300bacc23b6327d5c249e38cb51775"},e("slot",{key:"d380a71b8949a325493c98f60a933a6f82e5b1bb"})))}get element(){return i(this)}};Uc.style=Yc;const Wc='.sc-smoothly-input-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-range-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-range-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-range-h,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-range-h>input.sc-smoothly-input-range,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within)>input.sc-smoothly-input-range{background:transparent}[looks="transparent"].sc-smoothly-input-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-range-h.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .label.sc-smoothly-input-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-range-h.floating-label.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.floating-label .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder] .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly] .sc-smoothly-input-range-s>[slot=label],.has-value.sc-smoothly-input-range-h .label.sc-smoothly-input-range,[placeholder].sc-smoothly-input-range-h .label.sc-smoothly-input-range,[readonly].sc-smoothly-input-range-h .label.sc-smoothly-input-range,.sc-smoothly-input-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-range{display:none}*.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(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-range-h>div.sc-smoothly-input-range:not([slot]){position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding-right:var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{width:12em;--input-min-height:calc(3rem - 2px)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range:focus{outline:none;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{white-space:nowrap}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{text-align:center;margin-left:var(--input-padding-side);border:none;box-sizing:border-box;width:5em;order:3;margin:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-display.sc-smoothly-input-range,.sc-smoothly-input-range-h:not(.output-side-right)>div.sc-smoothly-input-range>label.sc-smoothly-input-range{display:none}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range input.sc-smoothly-input-range{padding:0;text-align:center}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{width:100%}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:center;margin:0 var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em;padding:0 .4em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;margin-top:-.25em;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>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}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>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])>div.sc-smoothly-input-range>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])>dov.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track,[readonly].sc-smoothly-input-range-h,[readonly].sc-smoothly-input-range-h *.sc-smoothly-input-range{cursor:not-allowed}input.sc-smoothly-input-range::-webkit-outer-spin-button,input.sc-smoothly-input-range::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}';const Bc=Wc;const Vc=class{constructor(e){t(this,e);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.initialValue=undefined;this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.defined=false;this.readonly=false;this.type="text";this.min=0;this.max=100;this.name="range";this.step=undefined;this.outputSide="left";this.label=undefined;this.showInput=false}componentWillLoad(){this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,this.color=e}));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.value&&(this.initialValue=this.value);this.valueChanged()}smoothlyInputLoadHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this)}}smoothlyInputLooksHandler(t){if(t.target!=this.element)t.stopPropagation()}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(t,e){this.listener[t]=e;e(this)}async edit(t){this.readonly=!t}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var t,e,o,s;const i=!this.step?undefined:(e=(t=this.step.toString().split(".")[1])===null||t===void 0?void 0:t.length)!==null&&e!==void 0?e:0;this.value=Number.isNaN(this.value)||this.value==undefined?undefined:+this.value.toFixed(i);this.changed=this.initialValue!==this.value;this.defined=typeof this.value==="number";(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this);this.smoothlyInput.emit({[this.name]:this.value})}setValue(t){var e;if(t==undefined)this.value=undefined;else if(t<this.min)this.value=this.min;else if(t>this.max)this.value=this.max;else this.value=t;this.input&&(this.input.value=this.type=="text"?(e=this.value)===null||e===void 0?void 0:e.toString():this.value)}render(){var t,o,i;return e(s,{key:"2faaa0e7a748f84cb04a785ffba77ac005137e04",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},e("slot",{key:"652c0722bd06da67656bb6cdd941cfb9808fab6f",name:"start"}),e("div",{key:"0b1af258430da3891efe8dabd7f8d34ce023f113"},e("label",{key:"31c27bfd26aa9671668b449c0b4e53025b3b08df",htmlFor:this.name},this.label),e("smoothly-input",{key:"8809cc1771f887cf29939a78f31bf0090a650349",ref:t=>this.input=t,looks:undefined,color:this.color,name:this.name,showLabel:this.outputSide==="left"&&!!this.label,type:this.type,onSmoothlyInputLoad:async t=>(t.stopPropagation(),this.setValue(hr.Element.is(t.target)?Number(await t.target.getValue()):undefined)),onSmoothlyBlur:t=>t.stopPropagation(),onSmoothlyInput:async t=>{t.stopPropagation();this.setValue(hr.Element.is(t.target)?Number(await t.target.getValue()):undefined)},value:this.type=="percent"?this.value:(t=this.value)===null||t===void 0?void 0:t.toString(),placeholder:this.outputSide==="right"?"-":undefined,readonly:this.readonly},this.label),e("smoothly-display",{key:"3f49234277227496ebc666da01ce74b920573795",label:(this.type=="percent"?this.min*100:this.min).toString()}),e("input",{key:"aeb3791f8cddfa450c297c271af75a1eaab3229c",name:this.name,part:"range",type:"range",min:this.min,max:this.max,step:(o=this.step)!==null&&o!==void 0?o:"any",disabled:this.readonly,onInput:t=>{t.stopPropagation();this.setValue(t.target.valueAsNumber)},value:(i=this.value)!==null&&i!==void 0?i:this.min}),e("smoothly-display",{key:"5f259976445a88d9204f3afdd3ecaee885d3cc37",label:(this.type=="percent"?this.max*100:this.max).toString()})),e("slot",{key:"28f5e3334e63b5930fac6f87f255c7841dbeb3a8",name:"end"}))}get element(){return i(this)}static get watchers(){return{value:["valueChanged"]}}};Vc.style=Bc;const Gc=class{constructor(e){t(this,e)}render(){return e(s,{key:"d01c20bae43d1c4399040a27d06a8899e6c41d61"},e("h2",{key:"a4c84c71e44029a74fc896abb4f208d694188721"},"Range"),e("h3",{key:"a8c1e2e60e1c4dd2f5f7ef7e3dd2c25ffd2c9a95"},"Phone Number"),e("smoothly-input-range",{key:"f91c8f7c67d28b3dae1359da6a397a0db2896daf",min:7e8,max:799999999,step:1,label:"Phone Number"}),e("h3",{key:"135e17f039d09a3cb3cd1317702cdcf19ca11f76"},"Stars out of ten"),e("smoothly-input-range",{key:"c7827f612a561e6237a69d5eef8d8c170bf3529b",max:10,step:1,label:"Stars"}),e("h3",{key:"8ca8c80a31bf68ef58dc4a47c72a64b946c98538"},"Percent"),e("smoothly-input-range",{key:"a134090aed032211a135d82ecb7de5040f56b18a",type:"percent",max:1,step:.01,label:"Percent"}),e("h3",{key:"2377916ee7a4787eec2efff1eee6fb6c2029bbc7"},"With icon at start and clear button"),e("smoothly-input-range",{key:"91c7c98d7654a14d4066fec7734d64d8ec9e2810",step:1,name:"range2",label:"Select"},e("smoothly-icon",{key:"47afc40b571788d84b564c7078dd5e797b36b33d",name:"checkmark-circle",slot:"start"}),e("smoothly-input-clear",{key:"5351d78c059982ab2b72264b97c662d828cca0cb",size:"icon",slot:"end"})))}};const Kc='[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-contrast);--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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-reset-h{display:inline}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset:empty,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:empty{border-width:0}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[size=flexible].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-reset-h{width:100%}[expand=full].sc-smoothly-input-reset-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-reset-h:not([fill=clear])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-visible,[fill=outline].sc-smoothly-input-reset-h:active>button.sc-smoothly-input-reset::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:hover::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-within::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:focus-visible,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h .sc-smoothly-input-reset-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h[type="input"].sc-smoothly-input-reset-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-reset-h{cursor:not-allowed}.sc-smoothly-input-reset-h[type="input"]:hover.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h[type="input"]:hover .sc-smoothly-input-reset-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}';const Zc=Kc;const qc=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Reset"}async componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(rr.Element.type.is(t)){this.parent=t;this.readonlyAtLoad=t.readonly;t.listen("changed",(async t=>{if(hr.is(t)){this.display=t.readonly?false:t.changed}if(t instanceof ur){this.display=!t.readonly;this.disabled=!this.readonlyAtLoad&&!t.changed}}))}}))}clickHandler(t){var e,o;t.stopPropagation();(e=this.parent)===null||e===void 0?void 0:e.reset();this.parent instanceof ur&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var t;return e(s,{key:"898e6ce3936aa5d448653cf7297050e9b8d9b789",title:this.tooltip},e("smoothly-button",{key:"6b417bd20cc7e55bb669745475fc646b8f7729d9",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(t=this.fill)!==null&&t!==void 0?t:this.type=="input"?"clear":undefined,onClick:t=>this.clickHandler(t)},e("slot",{key:"7ebc5081b0d518f22f4961ae5852b98b1abb5572"}),e("smoothly-icon",{key:"b367a1fe2f2b6721b10a2ae7e52f36c0e16aa50c",flip:"x",name:"refresh-outline",size:"tiny"})))}};qc.style=Zc;var Xc;(function(t){let e;(function(t){t.type=j({value:E(),deselectable:_(),selected:_().optional(),filter:c()});t.is=t.type.is})(e=t.Element||(t.Element={}));t.type=e.type.extend({});t.is=t.type.is})(Xc||(Xc={}));const Jc='.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.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(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent 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(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;cursor:pointer;padding:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not(:has([slot=label]))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>div.select-display.sc-smoothly-input-select{padding:.6em 0;align-items:center}[readonly].sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{cursor:not-allowed}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-icon:not("color"){color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));filter:opacity(60%)}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;cursor:pointer;height:100%;padding-inline:var(--input-padding-side)}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h .label.sc-smoothly-input-select{left:.5rem}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.options.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:10;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));left:0;right:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);min-width:fit-content;border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}[looks="grid"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{left:-1px;right:-1px}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{margin-left:auto;margin-right:0}.sc-smoothly-input-select-h>div.options.hidden.sc-smoothly-input-select{display:none}';const Qc=Jc;const th=class{constructor(e){t(this,e);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.initialValue=[];this.initialValueHandled=false;this.listener={};this.items=[];this.lastOpen=false;this.invalid=false;this.errorMessage=undefined;this.name="selected";this.color=undefined;this.looks=undefined;this.showLabel=true;this.showSelected=true;this.readonly=false;this.inCalendar=false;this.ordered=undefined;this.multiple=false;this.clearable=true;this.changed=false;this.defined=false;this.placeholder=undefined;this.menuHeight=undefined;this.required=false;this.searchDisabled=false;this.mutable=false;this.open=false;this.selected=[];this.filter="";this.addedItems=[]}componentWillLoad(){var t,e;this.smoothlyInputLooks.emit(((t,e)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:t,!this.color&&(this.color=e)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var t,e,o,s,i;this.itemHeight===undefined&&(this.itemHeight=(t=this.items.find((t=>t.clientHeight>0)))===null||t===void 0?void 0:t.clientHeight);if(this.menuHeight&&this.itemHeight){(e=this.element)===null||e===void 0?void 0:e.style.setProperty("--menu-height",!this.menuHeight.endsWith("items")||this.items.length==0?this.menuHeight:`${this.itemHeight*+((s=(o=this.menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g))===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:"10")}px`)}(i=this.element)===null||i===void 0?void 0:i.style.setProperty("--element-height",`${this.element.clientHeight}px`);if(this.ordered&&!this.multiple&&this.open&&!this.lastOpen){this.scrollToSelected()}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((t=>t.value)):undefined}async getItems(){return this.items}async listen(t,e){this.listener[t]=e;e(this)}async reset(){this.selected.forEach((t=>t.selected=t.hidden=false));this.initialValue.forEach((t=>t.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var t;if(this.clearable){this.selected.forEach((t=>t.selected=t.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(t=this.placeholder)!==null&&t!==void 0?t:""}}}async edit(t){this.readonly=!t}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}async onSelectedChange(){var t,e;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}onRequiredChange(){this.items.forEach((t=>t.deselectable=!this.required))}async onFilterChange(t){t=t.toLowerCase();await Promise.all(this.items.map((e=>e.filter(t))))}watchingReadonly(){var t,e;(e=(t=this.listener).changed)===null||e===void 0?void 0:e.call(t,this)}async smoothlyInputLoadHandler(t){if(t.target&&("name"in t.target&&t.target.name!==this.name||t.composedPath().some((t=>t==this.iconsDiv))&&!t.composedPath().some((t=>t==this.toggle)))){t.stopPropagation()}else if(Xc.Element.is(t.target)){t.stopPropagation();t.target.deselectable=!this.required;this.items.push(t.target)}hr.registerSubAction(this,t);this.displaySelected()}onWindowClick(t){!t.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(t){t.stopPropagation();if(this.multiple){this.selected=t.detail.selected?[...this.selected,t.detail]:this.selected.filter((t=>t.selected))}else if(t.detail.selected||!this.items.some((t=>t.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!t.detail.selected?this.selected.filter((t=>t.selected)):[t.detail];!this.showSelected&&t.detail.selected&&(t.detail.hidden=true)}this.displaySelected()}onClosed(t,e){this.lastOpen=e;if(!t){const t=this.items.find((t=>t.marked));if(t){t.marked=false}}}handleShowOptions(t){const e=(t===null||t===void 0?void 0:t.composedPath().some((t=>t==this.iconsDiv)))&&!t.composedPath().some((t=>t==this.toggle));const o=t===null||t===void 0?void 0:t.composedPath().find((t=>"tagName"in t&&t.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!e&&(this.open=!this.open);this.filter=""}areValuesEqual(t,e){return t.length===e.length&&e.every((e=>t.includes(e)))}displaySelected(){var t;const e=this.selected.map((t=>`<div>${t.innerHTML}</div>`)).join("");this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?e:(t=this.placeholder)!==null&&t!==void 0?t:"")}onKeyDown(t){if(!this.searchDisabled){t.stopPropagation();const e=this.items.some((t=>t.getAttribute("hidden")===null));if(t.key!="Tab"&&!t.ctrlKey&&!t.metaKey)t.preventDefault();if(this.open){switch(t.key){case"ArrowUp":e&&this.move(-1);break;case"ArrowDown":e&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=t.ctrlKey?"":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=!o.selected;if(!this.multiple){this.open=false;this.filter=""}break;case"Tab":this.open=false;break;default:if(t.key.length==1)this.filter+=t.key;break}}else{switch(t.key){case"Enter":case" ":this.handleShowOptions();break;case"ArrowDown":this.handleShowOptions();this.move(1);break;case"ArrowUp":this.handleShowOptions();this.move(-1);break;case"Tab":break;default:this.handleShowOptions();if(t.key.length==1)this.filter+=t.key;break}}}}scrollToSelected(){const t=this.items.find((t=>t.selected));if(t){this.items.map((t=>t.marked=false));t.marked=true;this.scrollTo(t,"instant")}}move(t){const e=this.items.filter((t=>!t.hidden&&!t.disabled));let o=e.findIndex((t=>t.marked));if(o==-1)o=0;else{e[o].marked=false;o=(o+t+e.length)%e.length}e[o].marked=true;this.scrollTo(e[o],"smooth")}scrollTo(t,e){var o,s,i;(o=this.optionsDiv)===null||o===void 0?void 0:o.scrollTo({top:t.offsetTop+t.offsetHeight/2-((i=(s=this.optionsDiv)===null||s===void 0?void 0:s.clientHeight)!==null&&i!==void 0?i:0)/2,behavior:e})}addItem(){this.addedItems=this.addedItems.concat(e("smoothly-item",{value:this.filter,selected:true},this.filter))}render(){return e(s,{key:"c631dc1181b49bd7057175d67ed8c2e5b2dad63f",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open},onClick:t=>this.handleShowOptions(t)},e("div",{key:"29660cf0508f40e9b04fe5011517e4b03819a13e",class:"select-display",ref:t=>this.displaySelectedElement=t},this.placeholder),e("div",{key:"8be43f1f1590b43fee1ee7a95a2beeba1b8bfe1d",class:"icons",ref:t=>this.iconsDiv=t},e("smoothly-icon",{key:"bf67cf558290681008788976b57f119027eec54f",class:"smoothly-invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage}),e("slot",{key:"7a0791050ba8cec4053ffe30c8f00b5ba5c858ea",name:"end"}),this.looks=="border"&&!this.readonly&&e("smoothly-icon",{key:"456fe3c9e103033de5e14815224bb82906cf00d9",ref:t=>this.toggle=t,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),e("slot",{key:"d366cbabc2d06aa0975623b56e7a68206586fe3b",name:"label"}),e("div",{key:"f1ff68203d774d98e6497ccabae9a33fa0957df1",class:{hidden:!this.open,options:true},ref:t=>this.optionsDiv=t},this.filter.length>0&&e("div",{key:"f830796521edba5c927418e05acdcf4f83442a5f",class:"search-preview"},e("smoothly-icon",{key:"bf5d3525c6ebca58be716e6bbdd2b03307087a39",name:"search-outline",size:"small"}),this.filter,e("smoothly-icon",{key:"7bfd62b31e9464bf8a6afd6925d5da23d05a0a00",name:"backspace-outline",size:"small",onClick:t=>{t.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&e("smoothly-icon",{key:"79262791c7deafb2d4ec24eea96c077cb3a807b0",name:"add",size:"small",onClick:t=>{t.stopPropagation();this.addItem()}})),e("slot",{key:"165ce33ce27039b670b03ad5b578167966a613b3"}),this.addedItems))}get element(){return i(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};th.style=Qc;const eh='[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-contrast);--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{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);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}[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}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}';const oh=eh;const sh=class{constructor(e){t(this,e);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.delete=false;this.color=undefined;this.icon="checkmark-outline";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=false;this.shape=undefined;this.size="icon";this.toolTip=this.delete?"Remove":"Submit"}componentWillLoad(){this.smoothlyInputLoad.emit((t=>{if(g.is(t)&&rr.type.is(t)){this.parent=t;t.listen("changed",(async t=>{var e;this.display=!t.readonly;this.disabled=!this.delete&&(t.readonly||"validator"in t&&t.validator instanceof k&&!((e=t.validator)===null||e===void 0?void 0:e.is(d.convertArrays(t.value)))||!t.changed)}))}}))}clickHandler(){var t;(t=this.parent)===null||t===void 0?void 0:t.submit(this.delete)}render(){var t,o;return e(s,{key:"5c8b92761756007ece453dd533f33bcaa5f0e95f",title:this.toolTip},this.delete==true?e("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(t=this.color)!==null&&t!==void 0?t:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},e("slot",null),e("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):e("smoothly-button",{disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:(o=this.color)!==null&&o!==void 0?o:"success",fill:this.fill,onClick:()=>this.clickHandler()},e("slot",null),this.icon&&e("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}};sh.style=oh;const ih="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-item-selected-background));color:rgb(var(--smoothly-item-selected-foreground));border-left:.3em solid rgb(var(--smoothly-item-selected-border))}[disabled].sc-smoothly-item-h,.sc-smoothly-item-h[disabled].sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-disabled-background));color:rgb(var(--smoothly-item-disabled-foreground));opacity:var(--smoothly-item-disabled-opacity);cursor:not-allowed}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground))}.sc-smoothly-item-h:not([disabled])[marked],.sc-smoothly-item-h:not([disabled]):hover,.sc-smoothly-item-h:not([disabled])[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:not([disabled]):hover.sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-hover-background));color:rgb(var(--smoothly-item-hover-foreground));fill:rgb(var(--smoothly-item-hover-foreground));stroke:rgb(var(--smoothly-item-hover-foreground))}";const ah=ih;const nh=class{constructor(e){t(this,e);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.disabled=false;this.deselectable=true}clickHandler(){if(!this.disabled&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&!this.disabled)this.smoothlyItemSelect.emit(this.element)}async filter(t){var e;const o=typeof this.value==="string"?this.value:JSON.stringify((e=this.value)!==null&&e!==void 0?e:"");this.element.hidden=t?!(o.includes(t)||this.element.innerText.toLowerCase().includes(t)):false}render(){return e(s,{key:"8fdd6ce70e3a8263c4b939a8c43d1039fc72a56e",tabIndex:-1},e("slot",{key:"84271be5ece6ae93054de397edf0eb49c9d1a2df"}))}get element(){return i(this)}static get watchers(){return{selected:["selectedWatcher"]}}};nh.style=ah;const lh=".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 rh=lh;const ch=class{constructor(e){t(this,e);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var t;return e(s,{key:"ec1329d179512c0470f04abbe12d98fa0a5810f8",title:this.description,style:{"--hue":(t=this.hue)===null||t===void 0?void 0:t.toString()}},e("slot",{key:"09bbea1ba8a2ab9ef7b417275c3500ae44711ce7"}))}};ch.style=rh;const hh=".sc-smoothly-lazy-h{display:block}";const dh=hh;const mh=class{constructor(e){t(this,e);this.show=false;this.content=undefined}loadMoreHandler(t){t.stopPropagation();this.show=true}render(){return e(s,{key:"0f6d1d415c90aa8891873c229585e7e2a5fd9ff1"},e("slot",{key:"f1f8c6da2e7b3d76433853365b54dbdb9a54bf45",name:"before"}),e("smoothly-load-more",{key:"3308f6e409f6b4fbd4f0e9eecaf6481d2c9b1a51",onSmoothlyLoadMore:t=>this.loadMoreHandler(t)}),this.show&&(typeof this.content=="function"?e(this.content,null):this.content),e("slot",{key:"2581dc862b138ddc60fbd581e9b16404d9b22ce8"}))}};mh.style=dh;const uh=class{constructor(e){t(this,e);this.smoothlyLoadMore=o(this,"smoothlyLoadMore",7);this.triggerMode="intersection";this.name="";this.multiple=false;this.inView=undefined}checkInView(){if(this.inView)this.smoothlyLoadMore.emit(this.name)}connectedCallback(){var t;this.observer=new IntersectionObserver(((t,e)=>this.observationHandler(e,t)));this.observer.observe(this.element);if(this.triggerMode=="scroll"){this.inView&&this.smoothlyLoadMore.emit(this.name);if(this.multiple||!this.multiple&&!this.inView){this.scrollableParent=n.findParent(this.element);(t=this.scrollableParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var t;(t=this.scrollableParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(t,e){var o,s;this.inView=((s=(o=e.find((t=>t.target==this.element)))===null||o===void 0?void 0:o.intersectionRatio)!==null&&s!==void 0?s:0)>0;if(this.inView){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(t.unobserve(this.element),t.disconnect())}}render(){return e(s,{key:"9e6f0728a14a854d39e5b7c10ec663e8e0b12bc9"})}get element(){return i(this)}};const yh='.sc-smoothly-modal-h{position:fixed;display:flex;justify-content:center;top:0;left:0;width:100%;height:100%;background-color:rgba(var(--smoothly-modal-backdrop));color:rgb(var(--smoothly-modal-foreground));z-index:5}.sc-smoothly-modal-h:not([open]),[hidden].sc-smoothly-modal-h{display:none}[align=center].sc-smoothly-modal-h{align-items:center}[align=top].sc-smoothly-modal-h>div.modal.sc-smoothly-modal{margin-top:calc((100dvh - var(--smoothly-modal-max-height)) / 2)}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal{display:flex;flex-direction:column;padding:2rem;gap:1.5rem;width:var(--smoothly-modal-width, 40rem);max-width:calc(100dvw - 1rem);height:fit-content;max-height:min(var(--smoothly-modal-max-height), 100dvh);background:rgb(var(--smoothly-modal-background, var(--smoothly-color)));border:1px solid rgb(var(--smoothly-modal-border));border-radius:var(--smoothly-modal-border-radius);box-shadow:var(--smoothly-modal-shadow);box-sizing:border-box}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:empty,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal:empty{display:none}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal{display:flex;justify-content:space-between;align-items:center}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>*.sc-smoothly-modal{margin-block:0}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal:not(.header):not(.actions){overflow-y:auto}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:not(:has([slot="header"])){justify-content:end}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]){cursor:pointer;opacity:0.7;color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]):hover{opacity:1}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}';const bh=yh;const fh=class{constructor(e){t(this,e);this.smoothlyModalChange=o(this,"smoothlyModalChange",7);this.open=false;this.closable=false;this.align="center"}openChanged(){this.smoothlyModalChange.emit(this.open)}render(){return e(s,{key:"9e7830cc5e0d8672ac279c7148ea9f2f71112c17",role:"alertdialog"},e("div",{key:"8127616fe7158848d3c6f6b1124db0bfb283277c",class:"modal"},e("div",{key:"2f64da1bd8e42a737baf8f2ea9d50264553876ac",class:"header"},e("slot",{key:"4e0b103f8f9dd9e370789e71a9a01f057787f528",name:"header"}),this.closable&&e("smoothly-icon",{key:"fc9f4e07359b7670e5b5e89258590c504ae5ecaa",name:"close-outline",fill:"solid",onClick:()=>this.open=false})),e("slot",{key:"e175c68469046774ea8eaafd443675988b4a94c8"}),e("div",{key:"e1be4aea7820501bad389d7f52ba6017234943e9",class:"actions"},e("slot",{key:"6798c42f8f4f7d3e1d5a6e47f06bc3beea23477e",name:"actions"}))))}static get watchers(){return{open:["openChanged"]}}};fh.style=bh;const ph=".sc-smoothly-notification-h{display:block;position:relative;min-width:30em;min-height:3em;border-radius:5px;margin:0.5em}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin:0 2rem 0 1rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.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}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{font-size:0.7em;position:absolute;right:0}";const gh=ph;const kh=class{constructor(e){t(this,e);this.remove=o(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=undefined;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,e){if(e)e.unlisten(this.listener);t.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return e(s,{key:"c9d05c75f3632db3f15858d5c02f39c38b0925e8",color:this.properties[0],fill:"solid"},this.closable&&e("smoothly-trigger",{key:"d2f70e41ac22b0b9918e558910e7021a8fe31d9f",fill:"clear",name:"close"},e("smoothly-icon",{key:"35e2695cd3a83e3699b117a01e62efb96d17be78",name:"close-circle-outline"})),e("span",{key:"a199bb745cc72a0c635c15bc4a26a6509ad12910",class:this.icon?"icon":"clean"},this.icon&&e("smoothly-icon",{key:"5f518ab4af784bbe5eada263b726718e4bd07b0c",name:this.properties[1]}),e("p",{key:"6064c0964359b9953a713f3a6aed1bcbf3d23e64"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};kh.style=gh;const vh=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>.smoothly-notifier-wrapper.sc-smoothly-notifier{pointer-events:none;display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}.sc-smoothly-notifier-h>.smoothly-notifier-wrapper.sc-smoothly-notifier>smoothly-notification.sc-smoothly-notifier{pointer-events:all}";const wh=vh;const xh=class{constructor(e){t(this,e);this.icon=false;this.notices=[]}onNotice(t){this.notices=[...this.notices,t.detail]}onRemove(t){this.notices=[...this.notices.filter((e=>e!=t.detail))]}render(){return e(s,{key:"7e71527eb9d845d83a31a54fb59a516fef7d2985"},e("slot",{key:"8da2fa5664ae5c4453e06ab14b73c7f8335fd72a"}),e("div",{key:"b19ec204f8215f9f552422990263e2a89b320082",class:"smoothly-notifier-wrapper"},this.notices.map((t=>e("smoothly-notification",{notice:t,icon:this.icon})))))}};xh.style=wh;const Sh="[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) 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 Ch=Sh;const zh=class{constructor(e){t(this,e);this.size="large";this.overlay=undefined}render(){const t=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return e(s,{key:"41b99e921e14ec12d85f0535654a3312e0a0e064",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},e("svg",{key:"ba95701f05e8916221779a08278736b3cc32b868",class:"spinner",viewBox:`0 0 ${60+t} ${60+t}`,xmlns:"http://www.w3.org/2000/svg"},e("circle",{key:"762d7d72d60f998898a13d10675f3008dd7476f4",class:"path",fill:"none","stroke-width":t,"stroke-linecap":"round",cx:`${30+t/2}`,cy:`${30+t/2}`,r:"30"})))}};zh.style=Ch;const jh=".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;cursor:pointer}.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>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover>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 (prefers-reduced-motion){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:none}}@supports selector(details::details-content){.sc-smoothly-summary-h>details.sc-smoothly-summary::details-content{grid-column:2}}";const Ih=jh;const _h=class{constructor(e){t(this,e);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.inputs={};this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}async toggleHandler(t){if(t.target instanceof HTMLDetailsElement){this.open=t.target.open;this.smoothlySummaryOpen.emit(this.open);this.open?await Promise.all(Object.values(this.inputs).map((t=>t.register()))):await Promise.all(Object.values(this.inputs).map((t=>t.unregister())))}}onInputLoad(t){if(hr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e("details",{key:"affa54f5d7cf68fe7f8e85ebef3cba2f26dfb4f6",onToggle:t=>this.toggleHandler(t),open:this.open},e("summary",{key:"e0a90e5340973d5a4bc7daa923910c4ed30f6848"},e("smoothly-icon",{key:"786ef493adf27540e1d6fafc75b1d8acafad701c",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),e("slot",{key:"e0681a2e318a8e7ccc06acf27e64daf3b3948585",name:"summary"})),e("slot",{key:"805bd54a4f306c1ffc4f944942c60ca00eb852bf",name:"content"}))}};_h.style=Ih;const Th=".sc-smoothly-tab-h{display:contents;--line-width:3px}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child{grid-column:span 1;background-color:transparent;border-bottom-color:rgb(var(--smoothly-default-shade));border-bottom-width:var(--line-width);border-bottom-style:solid}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{display:block;padding:.5rem;width:fit-content;margin:auto;cursor:pointer}[open].sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{border-bottom:var(--line-width) solid rgb(var(--smoothly-primary-color));margin-bottom:calc(-1 * var(--line-width));position:relative}.sc-smoothly-tab-h>div.sc-smoothly-tab:nth-child(2){grid-row:2 / 3;grid-column:1 / -1}";const Lh=Th;const Oh=class{constructor(e){t(this,e);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.smoothlyTabLoad=o(this,"smoothlyTabLoad",7);this.inputs={};this.label=undefined;this.open=undefined}async openHandler(){if(this.open)this.smoothlyTabOpen.emit(this.label);this.open?await Promise.all(Object.values(this.inputs).map((t=>t.register()))):await Promise.all(Object.values(this.inputs).map((t=>t.unregister())))}onClick(){this.open=true}connectedCallback(){this.smoothlyTabLoad.emit()}async componentDidLoad(){await this.openHandler()}onInputLoad(t){if(hr.Element.is(t.target)){this.inputs[t.target.name]=t.target;if(!this.open)t.stopPropagation()}}render(){return e(s,{key:"ab4afa56bcd29938b069d8a932e07241a0073f04"},e("div",{key:"557d75d174f05d83c4356878274f871d5e122587"},e("label",{key:"7a577ccf8a4f92c47f54b7f51af041c84d0f7f7c"},this.label)),e("div",{key:"78d8f5b363a08e8498bfb599d5e5b945a830eda0",hidden:!this.open},e("slot",{key:"d7c1412ac6655065d1ce57de6e8001b7d33f4c53"})))}static get watchers(){return{open:["openHandler"]}}};Oh.style=Lh;const Ah=".sc-smoothly-table-h{display:grid;grid-template-columns:repeat(var(--columns), auto);color:rgb(var(--smoothly-table-foreground));stroke:rgb(var(--smoothly-table-foreground));fill:rgb(var(--smoothly-table-foreground))}";const Mh=Ah;const Eh=class{constructor(e){t(this,e);this.columns=1}smoothlyTableExpandableRowChange(t){t.stopPropagation()}smoothlyTableExpandableCellChange(t){t.stopPropagation()}render(){return e(s,{key:"27103c94544a0522eccaaed12290f4ed90c590b4",style:{"--columns":this.columns.toString()}},e("slot",{key:"cf2e937d1bc707539cf332e91461b9e21f97c4b5"}))}};Eh.style=Mh;const Dh=".sc-smoothly-table-body-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;color:rgb(var(--smoothly-table-foreground));background-color:rgb(var(--smoothly-table-background))}";const $h=Dh;const Rh=class{constructor(e){t(this,e)}render(){return e(s,{key:"0ada15e4c41e0728f3ae1fdcdc85837412360be5"},e("slot",{key:"9ff916c41b95eeb8b127f8df0c27d0f4f570ae98"}))}};Rh.style=$h;const Ph=".sc-smoothly-table-cell-h{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;align-items:center;padding:0.3rem 1.1rem;white-space:nowrap}";const Fh=Ph;const Hh=class{constructor(e){t(this,e);this.span=1}render(){var t;return e(s,{key:"8d3d61d3dd6662a25300eb43b6ff164554672e0d",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("slot",{key:"05a97c68515632493be2333cdc43fe7fec9309eb"}))}};Hh.style=Fh;const Nh=".sc-smoothly-table-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const Yh=Nh;const Uh=class{constructor(e){t(this,e)}render(){return e(s,{key:"65cea5347c7532eaf07a12b55993cf601a5256e8"},e("smoothly-table-demo-filler-row",{key:"2574b26c77d3fcd6134bc1f7f11971030419ed4b"}),e("smoothly-table-demo-group",{key:"e6d462116b01ab4d129541da72e57e7563a8f2ed"}),e("smoothly-table-demo-colspan",{key:"d32e5b14f816384531fccfeef24494d13ec481d9"}),e("smoothly-table-demo-simple",{key:"b9fbf61c71a2eb7dfabf14d6bc7f1202d1634358"}),e("smoothly-table-demo-nested",{key:"ce1db6290315b9d0936e1674b0c38c4c38c67a9e"}),e("smoothly-table-demo-filtered",{key:"7dd201443e90c58bcb9b8c8a0241d16f4978fd0b"}))}};Uh.style=Yh;const Wh=".sc-smoothly-table-demo-colspan-h{display:block}.sc-smoothly-table-demo-colspan-h smoothly-display.sc-smoothly-table-demo-colspan{display:inline}";const Bh=Wh;const Vh=class{constructor(e){t(this,e)}render(){return e(s,{key:"52a60c5b7897b5c62e3accb439c3015df87c5726"},e("smoothly-table",{key:"47b3f1fbc81e9d8228cf3a0cfae13cc128bdabdb",columns:3},e("smoothly-table-head",{key:"0473090ae8a09e024d3f8729e4f17f5dcd52f581"},e("smoothly-table-row",{key:"f92c603b53912109b94e9e371fd2c5fae0c550db"},e("smoothly-table-cell",{key:"df62d09721b0f7bf5f3e246baf96969bab4cfb7d"},"Date"),e("smoothly-table-cell",{key:"4af65c6e059e4c26a58882396c8c87aac19b2578"},"Skip"),e("smoothly-table-cell",{key:"05dc66e7bb0d3f11ca0fffd6eecd7e32958118fa"},"Total"))),e("smoothly-table-body",{key:"c3f452ef201d714624c9849c443b26c7799e6374"},e("smoothly-table-row",{key:"b14aeaa8b8f23cc6f16e60bca382b8e33c282632"},e("smoothly-table-cell",{key:"ecd28f52a9ccf616098a026cf8a587f15dded411",span:2},e("smoothly-display",{key:"0d0354908dea64d4b59e5cca0cab93d3003e7b8d",type:"date",value:"2024-01-01"})),e("smoothly-table-cell",{key:"3e08f587933f153cc27c034170f6529bfa8198ed"},e("smoothly-display",{key:"b22b375f6181cbb05e651b34844720a131f7f2eb",type:"price",value:120,currency:"EUR"}))),e("smoothly-table-row",{key:"a44a3587308ff7aa181faf9109246d1e69138c93"},e("smoothly-table-expandable-cell",{key:"c2a3e2e9b9a66e4837ea4ee7727720d1b7caf336",span:2},e("smoothly-display",{key:"eeb70f7444fd6cc95641ba80230104d21d207aa2",type:"date",value:"2024-01-02"}),e("smoothly-lazy",{key:"28e0a1be13c4580cd7459e63d57295872a83c1e2",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),e("smoothly-table-expandable-cell",{key:"0fc19b4ca2e81e91004bdbbdc76130aa02b19076"},e("smoothly-display",{key:"7e82f526773b50d8be3cd435e3599bc52e2943af",type:"price",value:220,currency:"EUR"}),e("smoothly-lazy",{key:"5321d3c3d733e6c1fa1610d2f18fb42858c08b48",slot:"detail",content:e("span",null,e("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",e("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),e("smoothly-table-row",{key:"117fd7a049aee712ed0dbeb9810a94baf887eca8"},e("smoothly-table-cell",{key:"3a149155a5fe80f1cb8f7b43e566743b26ce0db0"},e("smoothly-display",{key:"87688bcea53a58823bf2785605497fc37eb483e3",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"0967becc93a1908abb519ffa15de55a275553729"},"Not Skipped"),e("smoothly-table-cell",{key:"4357c37ccd914e1fae027cedb8fd70da12555d11"},e("smoothly-display",{key:"d271dc5bc6110639bcc915bd67242d44138ce44a",type:"price",value:320,currency:"EUR"}))))))}};Vh.style=Bh;const Gh=".sc-smoothly-table-demo-filler-row-h{display:block}.sc-smoothly-table-demo-filler-row-h>smoothly-display.sc-smoothly-table-demo-filler-row{font-size:2em}.sc-smoothly-table-demo-filler-row-h>*.sc-smoothly-table-demo-filler-row{margin-bottom:2rem}";const Kh=Gh;const Zh=class{constructor(e){t(this,e);this.cats=[]}async componentDidLoad(){window.setTimeout((()=>{this.cats=undefined}),3e3)}render(){return e(s,{key:"3732c9f5b04611c92815425c666cb98a1a8a13b6"},e("smoothly-display",{key:"f8870230eb6cd3dd6ab82b8d40e7f13271acb663",type:"text",value:"Filler row"}),e("smoothly-table",{key:"4984b2eaa37b32f667cede832c56e4cf378de49c",color:"primary",columns:4},e("smoothly-table-head",{key:"44333a55c2bd228fd3c8dc14043e3ca5156c2ddd"},e("smoothly-table-row",{key:"c615fc72b835e77ae9b9f8ba5d0e1e0b61954030"},e("smoothly-table-cell",{key:"c0ac5b42239415560e589de1d50024a22d1e0d65"},"Breed"),e("smoothly-table-cell",{key:"d3bf58bcd3d630f02e4645215f8e981c180a3bf5"},"Country"),e("smoothly-table-cell",{key:"6e26fd8c273220e6b970b8a9dd3a2de90c4d3661"},"Coat"),e("smoothly-table-cell",{key:"c98c2d0387969a9a7998878b089fcecbf10f8c58"},"Origin"))),e("smoothly-table-body",{key:"b54e5af5cae91e7db57e58f0cc09eca10e9fbe86"},this.cats===undefined?e("smoothly-table-filler-row",null,"No data to display"):this.cats.length===0?e("smoothly-table-filler-row",null,e("smoothly-spinner",{style:{margin:"auto"},color:"default",size:"small"})):this.cats.map((t=>e("smoothly-table-row",null,e("smoothly-table-cell",null,t.breed),e("smoothly-table-cell",null,t.country),e("smoothly-table-cell",null,t.coat),e("smoothly-table-cell",null,t.origin)))))))}};Zh.style=Kh;var qh=undefined&&undefined.__classPrivateFieldGet||function(t,e,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(t):s?s.value:e.get(t)};var Xh=undefined&&undefined.__classPrivateFieldSet||function(t,e,o,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 e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(t,o):i?i.value=o:e.set(t,o),o};var Jh;class Qh{get selected(){var t;return Xh(this,Jh,(t=qh(this,Jh,"f"))!==null&&t!==void 0?t:Object.values(this.data),"f")}constructor(t,e={}){this.key=t;this.data=e;Jh.set(this,void 0)}handle(t){var e;return new Qh(this.key,"check-all"in t?(e=t["check-all"])!==null&&e!==void 0?e:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),t)).filter((([t,e])=>e!=undefined))))}render(t){var o,s,i;return Array.isArray(t)?e("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}):e("smoothly-checkbox",{name:(o=t[this.key])===null||o===void 0?void 0:o.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 Qh(t)}}Jh=new WeakMap;const td='.sc-smoothly-table-demo-filtered-h{display:grid;grid-template-columns:auto auto;grid-template-areas:"header filter"\n\t\t"main main";margin-bottom:50em}.sc-smoothly-table-demo-filtered-h>smoothly-display.sc-smoothly-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-table-demo-filtered-h>smoothly-filter.sc-smoothly-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-table-demo-filtered-h>*.sc-smoothly-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2),.sc-smoothly-table-demo-filtered-h>smoothly-table.sc-smoothly-table-demo-filtered>smoothly-table-head.sc-smoothly-table-demo-filtered>smoothly-table-row.sc-smoothly-table-demo-filtered>smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(4){justify-content:end}';const ed=td;const od=class{constructor(e){t(this,e);this.criteria={};this.cats=undefined;this.selector=Qh.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 or("https://catfact.ninja/breeds?limit=15");this.cats=t.status==200&&(await t.body).data.map((t=>{var e,o;return Object.assign(Object.assign({},t),{price:[...t.breed].reduce(((t,e)=>t+e.charCodeAt(0)),0),nested:Object.assign(Object.assign({},t),{names:(e=sd[t.country])!==null&&e!==void 0?e:[]}),names:(o=sd[t.country])!==null&&o!==void 0?o:[]})}))}render(){const t=this.cats&&Qn(this.criteria,this.cats);return e(s,{key:"6a127cf14c6e9ac9cf1fd624976c7202c7443521"},e("smoothly-display",{key:"b540b7fae79ae7a24c60d9cb612d5abdc020d629",type:"text",value:"Filtered"}),e("smoothly-filter",{key:"75a46178baeff2e540033e1995e7453a9a63f782"},e("smoothly-filter-toggle",{key:"af8c196c100f0efb79ea0f1d33344923acba1d34",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),e("smoothly-filter-toggle",{key:"b365b3ea14a558a82bfb901bca2c3b0c163d8b0c",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"487d35f33304a855dae3e822fa4e637ef0af6f01",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),e("smoothly-filter-toggle",{key:"167dc2b558a6f119b1643796bb212ce5033c5b08",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),e("smoothly-filter-select",{key:"dfd5d2d8fec55e3c98a9ceeb0585f838abcfb5a3",menuHeight:"5items",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.nested?Object.assign(Object.assign({},t),{[e.nested.coat]:e}):t),{})).map((t=>{var o;return((o=t.nested)===null||o===void 0?void 0:o.coat)&&e("smoothly-item",{slot:"items",value:t.nested.coat},t.nested.coat)}))),e("div",{key:"8f242713cc3aaccd0bca45b5af973d58e1fed72c",slot:"detail"},e("smoothly-form",{key:"54487a1753cbf4e9e0ff9958d8c2e1e6edf86573",looks:"border"},e("smoothly-filter-select",{key:"0366d788269d03db39f41c9977ccc7c185a524b1",menuHeight:"5items",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.nested?Object.assign(Object.assign({},t),{[e.nested.coat]:e}):t),{})).map((t=>{var o;return((o=t.nested)===null||o===void 0?void 0:o.coat)&&e("smoothly-item",{slot:"items",value:t.nested.coat},t.nested.coat)}))),e("smoothly-filter-select",{key:"547d51c2bb14f44d1a708d37b114bcdbc05fa3a7",menuHeight:"5items",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((t,e)=>e.breed?Object.assign(Object.assign({},t),{[e.breed]:e}):t),{})).map((t=>t.breed&&e("smoothly-item",{slot:"items",value:t.breed},t.breed)))),e("smoothly-filter-select",{key:"db47a049da7fbb18888e899f27d0b5ffd74dc871",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(sd).flat().reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:true})),{})).flatMap((t=>e("smoothly-item",{slot:"items",value:t},t)))),e("smoothly-filter-input",{key:"1d02ba7ad55d55de609badd1bd4df469c809dadd",label:"Coat",property:"coat"}),e("smoothly-filter-input",{key:"480b135571c42dcd5460f7f8f1f70ed03b1e54ee",label:"Nested Coat",property:"nested.coat"})))),!t?"Failed to load data.":e("smoothly-table",{columns:4},e("smoothly-table-head",null,e("smoothly-table-row",null,e("smoothly-table-cell",null,this.selector.render(t)),e("smoothly-table-cell",null,"Breed"),e("smoothly-table-cell",null,"Coat"),e("smoothly-table-cell",null,"Price"))),t.map((t=>e("smoothly-table-row",null,e("smoothly-table-cell",null,this.selector.render(t)),e("smoothly-table-expandable-cell",null,t.breed,e("div",{slot:"detail"},"Country: ",t.country)),e("smoothly-table-expandable-cell",null,t.coat,e("div",{slot:"detail"},"Pattern: ",t.pattern)),e("smoothly-table-cell",null,e("smoothly-display",{type:"price",value:t.price,currency:"SEK"}))))),e("smoothly-table-foot",null,e("smoothly-table-row",null,e("smoothly-table-cell",{span:3},e("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:t?t.length:"?"}`}))))))}};const sd={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};od.style=ed;const id=".sc-smoothly-table-demo-group-h{display:block}.sc-smoothly-table-demo-group-h smoothly-display.sc-smoothly-table-demo-group{display:inline}.sc-smoothly-table-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-table-demo-group{grid-column:span 2}.sc-smoothly-table-demo-group-h>smoothly-display.sc-smoothly-table-demo-group{display:inherit;font-size:2em}.sc-smoothly-table-demo-group-h>*.sc-smoothly-table-demo-group{margin-bottom:2rem}.sc-smoothly-table-demo-group-h fake-group-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-row-wrapper.sc-smoothly-table-demo-group,.sc-smoothly-table-demo-group-h fake-expandable-row-wrapper.sc-smoothly-table-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-table-demo-group-h fake-cell-wrapper.sc-smoothly-table-demo-group{grid-column:span 1;display:block}.sc-smoothly-table-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-table-demo-group{display:contents}";const ad=id;const nd=class{constructor(e){t(this,e)}render(){return e(s,{key:"ac1e2b26f2380a5f96245f1b2163151b2ad7b3e7"},e("smoothly-display",{key:"2aacadd33613d06b333ad69891486fd8b6eb69ef",type:"text",value:"Group"}),e("smoothly-table",{key:"57d9e86ee2e9886663ebaa8a4eed65d15a6b7b92",color:"primary",columns:2},e("smoothly-table-head",{key:"51b92cb9bc233305b122dcf17218ffa8484fc45d"},e("smoothly-table-row",{key:"594ed85e562ed3fb61d06803a4e068cb6597c599"},e("smoothly-table-cell",{key:"1a2fd79dd5b6cf3639d46ecc7575d8875774348c"},"Date"),e("smoothly-table-cell",{key:"be4715328ec4467c724bf09c370ec1091fedb771"},"Total"))),e("smoothly-table-body",{key:"8f33c69d6915080b09f39fc81f24c0d884141fbe"},e("smoothly-table-row-group",{key:"d0f4dd5a1f7df7b292bd2fa48548ab11f2331e23",align:true},e("smoothly-display",{key:"0163976ad21213b03059df5b33fe8667e4b1ab61",slot:"start",type:"date",value:"2024-01-01"}),e("smoothly-display",{key:"9fa1e617b130038c017ffbb8b14c16b894bd0fa7",slot:"end",type:"price",currency:"EUR",value:510}),e("smoothly-table-expandable-row",{key:"01cd244dc7b6c8c2c46466932d2e1b8fcc72136b"},e("smoothly-table-cell",{key:"599ea21bf02dd781b0e534f536d9db2d357411dd"},e("smoothly-display",{key:"e69887f04252006b8c815497717683d6bff103ee",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),e("smoothly-table-cell",{key:"c7083e894459c0af28577d7f457445fcfbb332b8"},e("smoothly-display",{key:"ebd41fd0de8f02cd8791fbf1a8133d0cf70e7bfa",type:"price",currency:"EUR",value:250})),e("smoothly-lazy",{key:"1183b94bfa97c42c4a283291c4036b91e9aba84f",slot:"detail",content:e(a,null,"Details of 2024-01-01T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"197aa13a0ba31133e08f2723ee398b541052e377"},e("smoothly-table-cell",{key:"148263446a5546a9aea1c24c627a612a5447a22c"},e("smoothly-display",{key:"ab9646e529fa57b8bf1bf3568643891bd6b34659",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),e("smoothly-table-cell",{key:"58a8d86babe68e9c6988bd2972b0edda1749c0ec"},e("smoothly-display",{key:"cfa34641d9c1adb8e7f6e6239bedcd44bbd4d908",type:"price",currency:"EUR",value:260})),e("smoothly-lazy",{key:"def091fc9cc806d11379792cb18a027591155484",slot:"detail",content:e(a,null,"Details of 2024-01-01T13:37:00.000Z")}))),e("smoothly-table-row",{key:"6257f6207341f724d6a9dffeeaaf8186fb36673a"},e("smoothly-table-cell",{key:"93989c61fe42aa07f202610f0929c2049faf8301"},e("smoothly-display",{key:"ae0ac80a8105d5137c7541cefaa0da293d7c166c",type:"date",value:"2024-01-02"})),e("smoothly-table-cell",{key:"c049824b441dcfd5a90952814b7932e0a706a611"},e("smoothly-display",{key:"1109b09b8fd9ab91aacad6fac87663dd7d8bc397",type:"price",currency:"EUR",value:130}))),e("smoothly-table-row-group",{key:"8024d8c48bc150254bb7c32b9b1e4d25c1f0227b"},e("smoothly-display",{key:"8b0512426d5e003c7dcd168a7033ba91c5482f3e",slot:"start",type:"date",value:"2024-01-03"}),e("smoothly-display",{key:"fcf8088def567c886ef14394ae761c7481e8ae69",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"77855907af956570d16bc04979b2d133bdf0f3dc"},e("smoothly-table-cell",{key:"645dd969cf30cad850143b7746775f67e8dd067c"},e("smoothly-display",{key:"a8c4208116f295666224502abc1935df992caf25",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),e("smoothly-table-cell",{key:"6f9e7bd4df149dc8f26c7e4cac625c6ae50ba6e5"},e("smoothly-display",{key:"561248e3a9a090f71a5e8c0824e04cc151781346",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"01e619b768f4d6a75d330717b8c62caff3b1d5de",slot:"detail",content:e(a,null,"Details of 2024-01-03T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"11fc0d3d5af141e92f95cc0f33d1624b6ecfc702"},e("smoothly-table-cell",{key:"53b593499f30b1fe9bbcdcf9e34a3843f595065d"},e("smoothly-display",{key:"ded56d951cc0954619d31c9153f9b4b38d04b4ac",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),e("smoothly-table-cell",{key:"f45ee29586add80ae10f886974fa99f7b2692f5d"},e("smoothly-display",{key:"26940755ba0efb3151154f4efca225f071b231e2",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"4b48c9d516e1c0acd6de61f385563f0cce5fc3f5",slot:"detail",content:e(a,null,"Details of 2024-01-03T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"49b134a12cbee6c373abd8e1cb29bd7a42e58122"},e("smoothly-display",{key:"ca0b7af40a5b904722ea9352471dc592b6888d22",slot:"start",type:"date",value:"2024-01-04"}),e("smoothly-table-expandable-row",{key:"619bf96abacccf28b1d0cc6b4cf760a20cabcfd0"},e("smoothly-table-cell",{key:"f81c78d4f6ac39a9f511b9c2a3f1781861462e13"},e("smoothly-display",{key:"02941b7e64aa0b43fc204a67f3239af65c818fbf",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),e("smoothly-table-cell",{key:"c93c70f460e9ddbb9d2ddadec99771cb8b80787b"},e("smoothly-display",{key:"1f0fad76ef3a0775bfaa7901bea6d039a480808c",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"88b01a1486453745ec84673e9b8ba1d3b5665fd4",slot:"detail",content:e(a,null,"Details of 2024-01-04T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"f46236401cff7790c805501aaf17fbb27cb5deef"},e("smoothly-table-cell",{key:"983123f84dac8b8444d574c0f17b40fde54f82b7"},e("smoothly-display",{key:"ce2ce797c6da24fe2b792ea0fdbedf31446c554b",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),e("smoothly-table-cell",{key:"d7cee8e15c2729262626df9e7fb4f274081bf6d5"},e("smoothly-display",{key:"3e030ede5ddec3069cd7523ccf0e72667025c897",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"20444c6ca489da00358efda2aecd4d2b4828d943",slot:"detail",content:e(a,null,"Details of 2024-01-04T13:37:00.000Z")}))),e("smoothly-table-row-group",{key:"b4102e638c5be5706df5202e443dc6627e5100f9"},e("smoothly-display",{key:"835b77937ce71f8dccadfbe27424698654758bc5",slot:"end",type:"price",currency:"EUR",value:720}),e("smoothly-table-expandable-row",{key:"133846d95cec85f4d36d3a35ea342b170c907fdf"},e("smoothly-table-cell",{key:"96e0ab35c87f41b52f5ac25fa37c91577d3dab4c"},e("smoothly-display",{key:"697fcaf06d91f8fcf675a9c181752eda2edcb957",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),e("smoothly-table-cell",{key:"01e3e076f6e3b2237baa5ae94c11d099f40bc2c1"},e("smoothly-display",{key:"dfabd0a43902e0d2468e45c4c0b7e57c26c72f21",type:"price",currency:"EUR",value:320})),e("smoothly-lazy",{key:"74ba4dce88edcb26d388dc570fc9e7f683ffe914",slot:"detail",content:e(a,null,"Details of 2024-01-05T01:37:00.000Z")})),e("smoothly-table-expandable-row",{key:"fc95ba0ad6792d17b9a152e220004c0a0ae915fa"},e("smoothly-table-cell",{key:"4095a8723d5dfef1a5311d02b5eb6ddacdd21d4f"},e("smoothly-display",{key:"79e73efb2d15ad1423ff50fc59850d33e0c37332",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),e("smoothly-table-cell",{key:"bcebdc2bd0446896de6bbe63b36353d21572e4d2"},e("smoothly-display",{key:"debfdac7984b94192a8f4b0de882830a0fe1b9f5",type:"price",currency:"EUR",value:400})),e("smoothly-lazy",{key:"57853f97602df3961cc1921e73ad0eb7e2edd2cb",slot:"detail",content:e(a,null,"Details of 2024-01-05T13:37:00.000Z")}))),e("fake-group-wrapper",{key:"3d4d9d34a570a9a1ed3762aa1884d105ff1c3921"},e("smoothly-table-row-group",{key:"d4b1ace25b3870f2e5c9ff843eef7cdc58f8d77b"},e("smoothly-display",{key:"bef9be6c16383367efeed4e0329408991f86afe3",slot:"start",type:"date",value:"2024-01-06"}),e("smoothly-display",{key:"7852ab6f71d06069c70ee749f7d75da35e56b3dd",slot:"end",type:"price",currency:"EUR",value:720}),e("fake-row-wrapper",{key:"59d809fadda4bf589598feb8fcea0775d524b5ac"},e("smoothly-table-row",{key:"4be357fc59ab67ab05cb567f922967a196a4e4ee"},e("fake-cell-wrapper",{key:"287d8fac5591b448b02f02170011ec50213c5724"},e("smoothly-table-cell",{key:"0d6caa57455cc936a149fa987616ddd143a135e0"},e("smoothly-display",{key:"90b82e4e9d5d28f6825fc8e4a225c887b37cea1f",type:"date",value:"2024-01-02"}))),e("fake-expandable-cell-wrapper",{key:"0d4a64edab46d9ae0d69831713a8cfaca6630da1"},e("smoothly-table-expandable-cell",{key:"523918968f3a22ddc5de7d0d7577e18d524a9aaf"},e("smoothly-display",{key:"9f8da05b5a433d82fb68f656217a22c4801d07c9",type:"price",currency:"EUR",value:130}),e("smoothly-lazy",{key:"a196d55674366110428f32f469f414048f9a8c8b",slot:"detail",content:e("span",null,e("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",e("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),e("fake-expandable-row-wrapper",{key:"42945048578ebfb8e5573604347776dae8efb2dc"},e("smoothly-table-expandable-row",{key:"9a3d3fe7187c0181beb0d0d71519d3fc6caec842"},e("fake-cell-wrapper",{key:"a8c8cc790dc98f50640c7c55657f8772634d50ff",class:"span-2"},e("smoothly-table-cell",{key:"1ad78842759037672fe9e31d08c8c845b46b9814",span:2},e("smoothly-display",{key:"96951fcb252a7c29a5c69ddc1b319e706f806cdb",type:"date",value:"2024-01-07"}))),e("smoothly-lazy",{key:"7770e38591005b8f87cf28ae9b46643b84804fa8",slot:"detail",content:e("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),e("smoothly-table-row-group",{key:"6b57c7aecd0e4556c47826bbdedd42c3b716ef73"},e("smoothly-display",{key:"26e21c0bc8fea7e27387dde2471fd34f6fa3623b",slot:"start",type:"date",value:"2024-01-08"}),e("smoothly-display",{key:"39995adb80b1c246a45aaad63d28b31a36d1b5f6",slot:"end",type:"price",currency:"EUR",value:720})))))}};nd.style=ad;const ld=[{id:"667d329f9f4934ecdc4bf9eb",balance:1450.03,age:35,eyeColor:"blue",name:"Glenda Ballard",gender:"female",company:"ZENTIA",registered:"2022-06-13T12:39:15.908",friends:[{id:0,name:"Manning Hunter",age:30,balance:1922.25},{id:1,name:"Mcmillan Oliver",age:32,balance:2440.53},{id:2,name:"Graham Garza",age:33,balance:3712.59},{id:3,name:"Gabrielle Neal",age:36,balance:2519.25},{id:4,name:"Dotson Duncan",age:29,balance:3274.11}]},{id:"667d329f4e07097167ef92a2",balance:2488.91,age:21,eyeColor:"blue",name:"Delaney Haley",gender:"male",company:"COMTOURS",registered:"2018-05-11T08:58:36.197",friends:[{id:0,name:"Elsa Cochran",age:28,balance:2009.45},{id:1,name:"Willis Acevedo",age:33,balance:2198.01},{id:2,name:"Slater Fowler",age:34,balance:2888.16},{id:3,name:"Ashley Wilkerson",age:22,balance:1863.65},{id:4,name:"Ola Lynch",age:23,balance:3649.29}]},{id:"667d329f14a0aeea0d70d5e7",balance:1660.91,age:36,eyeColor:"brown",name:"Riddle Reilly",gender:"male",company:"OPTIQUE",registered:"2016-09-15T09:46:07.962",friends:[{id:0,name:"Hazel Steele",age:33,balance:3129.64},{id:1,name:"Golden Chapman",age:40,balance:2491},{id:2,name:"Solomon Lopez",age:26,balance:1382.71},{id:3,name:"Castro Booth",age:23,balance:1991.6},{id:4,name:"Hernandez Bartlett",age:25,balance:2842.85},{id:5,name:"Lindsay Wagner",age:20,balance:3636.6}]},{id:"667d329f953aaaba19bea98b",balance:1381.34,age:24,eyeColor:"brown",name:"Diana Burns",gender:"female",company:"CODACT",registered:"2023-06-02T09:07:46.478",friends:[{id:0,name:"Tamika Merritt",age:25,balance:2401.06},{id:1,name:"Ballard Buckner",age:36,balance:1986.13},{id:2,name:"Stokes Ramirez",age:25,balance:3521.75},{id:3,name:"Wood Aguirre",age:36,balance:1186.13},{id:4,name:"Sophia Bowen",age:25,balance:2750.95},{id:5,name:"Wilkinson Gordon",age:34,balance:3864.91}]},{id:"667d329f6a753976e21e23b5",balance:3054.74,age:22,eyeColor:"brown",name:"Jackson Burnett",gender:"male",company:"COMCUR",registered:"2019-06-05T09:17:31.312",friends:[{id:0,name:"Atkinson Alston",age:37,balance:1025.72},{id:1,name:"Delia Ford",age:34,balance:3061.87},{id:2,name:"Marylou Hanson",age:33,balance:3255.77},{id:3,name:"Kelly Ray",age:32,balance:3671.73},{id:4,name:"Valdez Weeks",age:38,balance:3911.29},{id:5,name:"Hayes Crawford",age:20,balance:3194.97}]},{id:"667d329fc4805cafac37861e",balance:1173.94,age:20,eyeColor:"green",name:"Stephenson Mcleod",gender:"male",company:"POLARAX",registered:"2015-12-10T07:36:10.267",friends:[{id:0,name:"Kristine Newton",age:26,balance:2713.9},{id:1,name:"Craft Patel",age:40,balance:3822.36},{id:2,name:"Cochran French",age:30,balance:1535.91},{id:3,name:"Bowen Vinson",age:29,balance:2787.01},{id:4,name:"Adrian Ewing",age:21,balance:2319.14},{id:5,name:"Jimmie Mathews",age:31,balance:2869.09},{id:6,name:"Dixon Daugherty",age:24,balance:1496.25}]},{id:"667d329f76318162fe27b208",balance:2977.01,age:24,eyeColor:"blue",name:"Claudette Christensen",gender:"female",company:"PIVITOL",registered:"2021-08-08T07:08:00.936",friends:[{id:0,name:"Parker Lamb",age:36,balance:3409.27},{id:1,name:"Kennedy Bryan",age:34,balance:3904.27},{id:2,name:"Johanna Barton",age:20,balance:3613.79},{id:3,name:"Vazquez Melendez",age:26,balance:3692.31},{id:4,name:"Mendoza Wooten",age:31,balance:2175.64},{id:5,name:"Kelli Hicks",age:21,balance:1326.46},{id:6,name:"Jill Sanchez",age:36,balance:3214.36}]},{id:"667d329ff80a953b7f0a73d2",balance:1993.09,age:20,eyeColor:"green",name:"Buckley Gutierrez",gender:"male",company:"HOUSEDOWN",registered:"2015-04-02T04:53:42.985",friends:[{id:0,name:"Leanne Pennington",age:37,balance:3111.48},{id:1,name:"Juarez Hoover",age:29,balance:2000.62},{id:2,name:"Navarro Mccormick",age:22,balance:3083.93},{id:3,name:"Berry Curry",age:31,balance:3181.41},{id:4,name:"Josefa Howard",age:30,balance:3744.56}]},{id:"667d329f4f53eb59f0512361",balance:2374.56,age:34,eyeColor:"brown",name:"Sallie Mccoy",gender:"female",company:"REALYSIS",registered:"2018-05-11T05:26:36.604",friends:[{id:0,name:"Martina Kirby",age:22,balance:1278.07},{id:1,name:"Macias Lyons",age:20,balance:2991.44},{id:2,name:"Alta Chaney",age:26,balance:1032.71},{id:3,name:"White Manning",age:39,balance:3103.16},{id:4,name:"Mason Rosa",age:31,balance:1384.77},{id:5,name:"Meghan Martin",age:27,balance:1982.09}]},{id:"667d329f8a6cf9319bfdbd30",balance:3220.94,age:23,eyeColor:"blue",name:"Huff Hull",gender:"male",company:"GADTRON",registered:"2023-02-14T01:58:56.938",friends:[{id:0,name:"Rochelle Maldonado",age:28,balance:1548.77},{id:1,name:"Diann Conrad",age:32,balance:1721.33},{id:2,name:"Hope Jarvis",age:38,balance:1265.24},{id:3,name:"Dixie Huffman",age:31,balance:3764.23},{id:4,name:"Erickson Porter",age:27,balance:2958.59},{id:5,name:"Christensen Thomas",age:21,balance:1233.2}]},{id:"667d329f1415ecb1efb216cc",balance:2907.83,age:26,eyeColor:"brown",name:"Hancock Eaton",gender:"male",company:"POLARIUM",registered:"2018-02-25T01:03:11.860",friends:[{id:0,name:"Flynn Gilmore",age:27,balance:2582.57},{id:1,name:"Kline Hickman",age:31,balance:3853.99},{id:2,name:"Hatfield Owens",age:40,balance:2016.57},{id:3,name:"Michael Carson",age:31,balance:1293.03},{id:4,name:"Strickland Lowery",age:23,balance:1367.06},{id:5,name:"Georgia Chavez",age:37,balance:2957.48},{id:6,name:"Alma Berry",age:26,balance:2357.01}]},{id:"667d329f722eb89c82b56dec",balance:1602.02,age:35,eyeColor:"brown",name:"Lorrie Mcpherson",gender:"female",company:"PYRAMIA",registered:"2018-12-07T05:18:34.223",friends:[{id:0,name:"Bridgett Everett",age:37,balance:1438.53},{id:1,name:"Carlene Farley",age:25,balance:1410.54},{id:2,name:"Phoebe Mendez",age:24,balance:1979.36},{id:3,name:"Louella Cox",age:36,balance:3430.55},{id:4,name:"Velez Pugh",age:30,balance:3436.5}]},{id:"667d329ff853efe8c4e0a454",balance:2654.19,age:36,eyeColor:"brown",name:"Luann Jennings",gender:"female",company:"NAXDIS",registered:"2014-02-18T04:25:50.302",friends:[{id:0,name:"Walton Gentry",age:26,balance:1328.43},{id:1,name:"Lucy Koch",age:23,balance:2134.54},{id:2,name:"Toni Meyers",age:31,balance:2572.29},{id:3,name:"Vicki Frost",age:39,balance:3299.36},{id:4,name:"Meadows Baker",age:21,balance:2323.75}]},{id:"667d329f84f3bfbfcc763674",balance:2528.48,age:28,eyeColor:"brown",name:"Michelle Carey",gender:"female",company:"IDEGO",registered:"2016-10-01T04:25:07.187",friends:[{id:0,name:"Roman Sanders",age:40,balance:3551.16},{id:1,name:"Amanda Herman",age:22,balance:3928.02},{id:2,name:"Kay Montgomery",age:26,balance:3241.16},{id:3,name:"Valentine Wilder",age:23,balance:1413.31},{id:4,name:"Brigitte Nixon",age:32,balance:3113.39}]},{id:"667d329f4359ec766055a765",balance:3732.65,age:30,eyeColor:"brown",name:"Beach Maddox",gender:"male",company:"GEEKETRON",registered:"2021-03-24T11:55:31.135",friends:[{id:0,name:"Candy Gibbs",age:20,balance:2602.28},{id:1,name:"Alissa Rosario",age:36,balance:1958.84},{id:2,name:"Imelda Harmon",age:23,balance:3817.79},{id:3,name:"Addie Serrano",age:35,balance:3154.77},{id:4,name:"Jordan Shields",age:26,balance:3566.08}]},{id:"667d329f9ef3817d307e2583",balance:2151.52,age:32,eyeColor:"brown",name:"Whitney Hood",gender:"male",company:"EVENTAGE",registered:"2021-06-17T12:11:56.473",friends:[{id:0,name:"Noel Walsh",age:29,balance:2790.49},{id:1,name:"Barlow Rodriquez",age:35,balance:1664.23},{id:2,name:"Nash Keith",age:23,balance:2285.17},{id:3,name:"Chavez Webster",age:23,balance:3381.55},{id:4,name:"Herminia Chen",age:24,balance:1064.96},{id:5,name:"Susana Glass",age:22,balance:2749.35}]},{id:"667d329f9bd581700cac2dbc",balance:2209.77,age:40,eyeColor:"blue",name:"Tasha Mosley",gender:"female",company:"QUIZKA",registered:"2014-05-11T11:44:55.071",friends:[{id:0,name:"Larsen Wall",age:22,balance:1523.28},{id:1,name:"Holmes Hopkins",age:35,balance:1112.68},{id:2,name:"Giles Espinoza",age:21,balance:2550.95},{id:3,name:"Aimee Rosales",age:26,balance:2195.06},{id:4,name:"Karin Little",age:28,balance:2896.23},{id:5,name:"Angelita Mcfadden",age:25,balance:1051.15}]},{id:"667d329f6e2dbb2002be4b9e",balance:3298.23,age:31,eyeColor:"brown",name:"Schneider Walker",gender:"male",company:"BLEENDOT",registered:"2020-02-11T08:57:29.025",friends:[{id:0,name:"Helena William",age:34,balance:2579.69},{id:1,name:"Silva Ware",age:30,balance:2683.79},{id:2,name:"Enid Oconnor",age:22,balance:1816.46},{id:3,name:"Knowles Goff",age:24,balance:1675.75},{id:4,name:"Carolina Greer",age:29,balance:3337.27}]},{id:"667d329f8c548510c5d4f5ce",balance:2823.51,age:35,eyeColor:"green",name:"Mayo Shepard",gender:"male",company:"KIOSK",registered:"2024-02-24T12:45:57.463",friends:[{id:0,name:"Olga Hester",age:21,balance:3878.21},{id:1,name:"Rogers Sampson",age:23,balance:2669.62},{id:2,name:"Myra Johnson",age:27,balance:3489.32},{id:3,name:"Mcfadden Phillips",age:20,balance:2758.8},{id:4,name:"Park Moody",age:23,balance:3519.08}]},{id:"667d329f6574ada6f090fd54",balance:2631.69,age:40,eyeColor:"blue",name:"Avis Carlson",gender:"female",company:"LINGOAGE",registered:"2016-08-08T08:59:54.752",friends:[{id:0,name:"Mcdonald Dyer",age:25,balance:2262.39},{id:1,name:"Irene Baldwin",age:29,balance:1291.1},{id:2,name:"Rollins Anderson",age:26,balance:1437.04},{id:3,name:"Juliana Larson",age:29,balance:3492.22},{id:4,name:"Michele Gardner",age:20,balance:2003.15},{id:5,name:"Vang Cardenas",age:31,balance:1855.52},{id:6,name:"Puckett Hubbard",age:21,balance:1659.92}]}];const rd=".sc-smoothly-table-demo-nested-h{display:block}.sc-smoothly-table-demo-nested-h>smoothly-display.sc-smoothly-table-demo-nested{font-size:2em}.sc-smoothly-table-demo-nested-h>*.sc-smoothly-table-demo-nested{margin-bottom:2rem}";const cd=rd;const hd=class{constructor(e){t(this,e)}render(){return e(s,{key:"b1cfcc83bb5397065a1d777dfa0f9cf751e808be"},e("smoothly-display",{key:"bea669ea1d46ac3ab50e4033584e352de05fdb5c",type:"text",value:"Nested"}),e("smoothly-table",{key:"dbd243f99ebeb3126748c56757295707c7c175c5",color:"primary",columns:8},e("smoothly-table-head",{key:"4dd94aa5f1a331edc9b41aa95ab0e17f4586f045"},e("smoothly-table-row",{key:"9d042acec171f925354f8f252ee659f8ac427891"},e("smoothly-table-cell",{key:"279a2a141615a6ea84c55a86529a2132d20b2046"},"Id"),e("smoothly-table-cell",{key:"1de3fe9c3024565213bc56a6c4cc19da422d6136"},"Registered"),e("smoothly-table-cell",{key:"f43b1fba655d56b5d67b24246b11b6a0c3180a4a"},"Name"),e("smoothly-table-cell",{key:"bfbed6445d92e2589e2880e963c2c1e5e1602499"},"Age"),e("smoothly-table-cell",{key:"1c318f2accb7742ada0c08f57450ed0e95660bab"},"Balance"),e("smoothly-table-cell",{key:"ee1b188c175ad0aa13da3ece68cead04e4c37ca3"},"EyeColor"),e("smoothly-table-cell",{key:"0ea22b942e50353848b8f780ed026a53ae7823b0"},"Gender"),e("smoothly-table-cell",{key:"b6e5fc234c096fc087747453bdd998dd4354c797"},"Company"))),e("smoothly-table-body",{key:"ad2a5aebba009a01c4a9e5d658df6d693a1052af"},ld.map((t=>e("smoothly-table-expandable-row",null,e("smoothly-table-demo-nested-inner",{color:"secondary",data:t.friends,slot:"detail"}),e("smoothly-table-cell",null,t.id),e("smoothly-table-cell",null,t.registered),e("smoothly-table-cell",null,t.name),e("smoothly-table-cell",null,t.age),e("smoothly-table-cell",null,t.balance),e("smoothly-table-cell",null,t.eyeColor),e("smoothly-table-cell",null,t.gender),e("smoothly-table-cell",null,t.company))))),e("smoothly-table-foot",{key:"af0f355726c11ba2b1b828bc734dd8640a352e3d"},e("smoothly-table-row",{key:"73a5a5f6123bcf29225cab6c848c9e472770c18e"},e("smoothly-table-cell",{key:"9f77de2a89b6dd6ad7a52774ce959fc53e8651e4"},"Footer Cell"),e("smoothly-table-cell",{key:"f68116ade3d4242b8d9e886e800bc465ca7ffda6"},"Footer Cell")))))}};hd.style=cd;const dd=".sc-smoothly-table-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const md=dd;const ud=class{constructor(e){t(this,e);this.data=undefined}render(){var t;return e(s,{key:"c0654deea2db537fe7c1487df0eb688bdf25e8a6"},e("smoothly-table",{key:"a3459d01e3831cf3e9fc979b18e88115bf81d300",columns:4},e("smoothly-table-head",{key:"faf10ce9172f295ec14fe0e6931ba752f9df7f49"},e("smoothly-table-row",{key:"ab5ef8bef62bba52edaa6226981b382f0e9f36f6"},e("smoothly-table-cell",{key:"0da61e2692c0452333dea76b135ee20668e5009c"},"Id"),e("smoothly-table-cell",{key:"8ebb662123689a08fb0839aca95fc8241c542aab"},"Name"),e("smoothly-table-cell",{key:"9e00beeb61e6d93d47d1990dac907ef870738a4d"},"Age"),e("smoothly-table-cell",{key:"0f013a590d49450f35e8f543e4534b7b4e16d26a"},"Balance"))),e("smoothly-table-body",{key:"c3beac792b1f7dfa4cdbe8f852d3d1181ffa090d"},(t=this.data)===null||t===void 0?void 0:t.map((t=>e("smoothly-table-expandable-row",null,e("smoothly-table-cell",null,t.id),e("smoothly-table-cell",null,t.name),e("smoothly-table-cell",null,t.age),e("smoothly-table-cell",null,t.balance)))))))}};ud.style=md;const yd=".sc-smoothly-table-demo-simple-h{display:block}.sc-smoothly-table-demo-simple-h>smoothly-display.sc-smoothly-table-demo-simple{font-size:2em}.sc-smoothly-table-demo-simple-h>*.sc-smoothly-table-demo-simple{margin-bottom:2rem}";const bd=yd;const fd=class{constructor(e){t(this,e)}render(){return e(s,{key:"4160a168ef196c8b45b43f09f8ae12537cd3ad89"},e("smoothly-display",{key:"12db6fc178e7f7f5ac419003b71a24c38a77c29b",type:"text",value:"Simple"}),e("smoothly-table",{key:"21d36d1aa990d5294380638a4d8a71530f7ad947",color:"primary",columns:2},e("smoothly-table-head",{key:"2345482602d9f425bbc2a950ee69b5a3f7903b9b"},e("smoothly-table-row",{key:"056ceafc16fb10788c272c19bf603ac6996bee49"},e("smoothly-table-cell",{key:"11cb8ee8e2075de98a82b94fa1d69003d9bac260"},"Breed"),e("smoothly-table-cell",{key:"dfbdf9fcfe690da26a7cf9ca0baff65a45058093"},"Coat"))),e("smoothly-table-body",{key:"fd43d6ba0345d8784b8c9ec978cfe4e24686b60d"},pd.map((t=>e("smoothly-table-row",null,e("smoothly-table-expandable-cell",null,t.breed,e("div",{slot:"detail"},"Country:",e("br",null),t.country)),e("smoothly-table-expandable-cell",null,t.coat,e("div",{slot:"detail"},"Pattern: ",t.pattern))))),e("smoothly-table-expandable-row",{key:"363729f4f578bbf278a33f50dd6f102212bd0c59"},e("div",{key:"192cc5b9770ad01445e01d4044798d8c8e4f17d5",slot:"detail"},"Content",e("br",{key:"5ab7bf93f05a1d379077dcd18316773a9f8d8d27"}),"of",e("br",{key:"27196c3cf38a41451303673dea547a4c9989df43"}),"the",e("br",{key:"429a2b8bd42a852b291ae7cffb7895fe556521c6"}),"expandable",e("br",{key:"ea5a837eb4ba48a3f3b17020d8005f843205c1cc"}),"row"),e("smoothly-table-cell",{key:"114f74729aa76bed62c2c2afbd064364649e622a"},"Cell1 in expandable row"),e("smoothly-table-cell",{key:"4293fcd40caf821b226104e23989b6903ece84de"},"Cell2 in expandable row")),e("smoothly-table-row",{key:"4c45e0a6e39e107e39dd70bb383e9568c425d9cf"},e("smoothly-table-cell",{key:"0f8778b5b0dd9d61a409ab8da0b76cbfa72cc95e"},"Cell5"),e("smoothly-table-expandable-cell",{key:"0293a16c0179cffa94efa38d225e6c925ad273ab"},"Expandable Cell",e("div",{key:"5a7d691c14ffe390bab6385cefcad5e370eee625",slot:"detail"},"Content of the expandable cell"))),e("smoothly-table-row",{key:"ec09b484fe4c56a016f2d46fd6f18f9d2e8e93bf"},e("smoothly-table-expandable-cell",{key:"4b06350e86abb3aaf4bb03a18a226a4fc6288be4"},"Expandable Cell 1",e("div",{key:"fd36b974249796bde27c44dfaed50ab5fa1507c6",slot:"detail"},"Content of the expandable cell 1")),e("smoothly-table-expandable-cell",{key:"c3c818355805831308cc0d6d054f332d95b20613"},"Expandable Cell 2",e("div",{key:"5e4a1d4d7d37f4f42544b33ff6725d6d02194fc0",slot:"detail"},"Content of the expandable cell 2")))),e("smoothly-table-foot",{key:"8ecfbcb2a29dc1ea3697cacfe037fd40e03dc4cc"},e("smoothly-table-row",{key:"77190bca600068af282bce6e81b354f5e65040db"},e("smoothly-table-cell",{key:"7f20ab199ccf7d1c0e2e9e9fb646262d9c0b5000"},"Footer Cell"),e("smoothly-table-cell",{key:"3aeb7280536957ac5cf6b49c5b0cd306e2d7e71c"},"Footer Cell")))))}};const pd=[{breed:"Abyssinian",country:"Ethiopia",origin:"Natural/Standard",coat:"Short",pattern:"Ticked"},{breed:"Aegean",country:"Greece",origin:"Natural/Standard",coat:"Semi-long",pattern:"Bi- or tri-colored"},{breed:"American Curl",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Bobtail",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Shorthair",country:"United States",origin:"Natural",coat:"Short",pattern:"All but colorpoint"},{breed:"American Wirehair",country:"United States",origin:"Mutation",coat:"Rex",pattern:"All but colorpoint"},{breed:"Arabian Mau",country:"Arabian Peninsula",origin:"Natural",coat:"Short",pattern:""},{breed:"Australian Mist",country:"Australia",origin:"Crossbreed",coat:"Short",pattern:"Spotted and Classic tabby"},{breed:"Asian",country:"developed in the United Kingdom (founding stock from Asia)",origin:"",coat:"Short",pattern:"Evenly solid"},{breed:"Asian Semi-longhair",country:"United Kingdom",origin:"Crossbreed",coat:"Semi-long",pattern:"Solid"}];fd.style=bd;const gd='.sc-smoothly-table-expandable-cell-h{display:contents}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;box-sizing:border-box;align-items:center;white-space:nowrap;position:relative}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell:hover::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell::before{rotate:45deg}.sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell:hover{background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground));stroke:rgb(var(--smoothly-table-hover-foreground));fill:rgb(var(--smoothly-table-hover-foreground))}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-table-expandable-cell-h>div.content.sc-smoothly-table-expandable-cell{box-shadow:1px 1px 1px -1px rgb(var(--smoothly-table-border)) inset, -3px -1px 1px -3px rgb(var(--smoothly-table-border)) inset}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));stroke:rgb(var(--smoothly-table-expanded-foreground));fill:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-table-expandable-cell{display:none}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-cell-h>div.detail.sc-smoothly-table-expandable-cell::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const kd=gd;const vd=class{constructor(e){t(this,e);this.smoothlyTableExpandableCellChange=o(this,"smoothlyTableExpandableCellChange",7);this.smoothlyTableExpandableCellRegister=o(this,"smoothlyTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open}openChange(){this.smoothlyTableExpandableCellChange.emit(this.open)}render(){var t;return e(s,{key:"4f1000fd7561413101983a7441ff34f87fbff049",style:{"--smoothly-table-cell-span":(t=this.span)===null||t===void 0?void 0:t.toString(10)}},e("div",{key:"4641a3bc646176b9f59ec6a9d0f138c0aaaef38e",onClick:()=>this.clickHandler(),class:"content"},e("slot",{key:"5c5e5844812ec4823c21326d6ed6cfbe0ba7d641"})),e("div",{key:"1f985dbde06079773c72da68c6e112d14a725551",class:"detail"},e("slot",{key:"9bbec1f675f4875276b42248bf2763a5dd211326",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};vd.style=kd;const wd='.sc-smoothly-table-expandable-row-h{grid-column:1/-1;display:grid;grid-template-columns:subgrid;grid-template-rows:auto 0fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h.sc-smoothly-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-table-expandable-row-h:has(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-table-expandable-row-h{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));grid-template-rows:auto 1fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border)), 0px 0px 1px rgb(var(--smoothly-table-border)) inset;grid-template-rows:0fr 1fr}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child{grid-column:1/-1;cursor:default;position:relative;overflow:hidden;background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-expandable-row-h:has(>.sc-smoothly-table-expandable-row:not(:last-child):hover)>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-table-expandable-row-h>.sc-smoothly-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row:last-child::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const xd=wd;const Sd=class{constructor(e){t(this,e);this.smoothlyTableExpandableRowChange=o(this,"smoothlyTableExpandableRowChange",7);this.open=false}clickHandler(t){this.div&&t.composedPath().includes(this.div)||(this.open=!this.open)}openChange(){this.smoothlyTableExpandableRowChange.emit(this.open)}render(){return e(s,{key:"9479deddbc9ed879366caffff26c426f9f438c56",onClick:t=>this.clickHandler(t)},e("slot",{key:"67e5f0bc1338d700b42e568917b4ebf5858efc5a"}),e("div",{key:"2bd03a31ebe086abd6ea476eff35d378ae0a4d6a",ref:t=>this.div=t},e("slot",{key:"74086f954d58fe3e9d3969f10f08e1f2e2efef48",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};Sd.style=xd;const Cd=".sc-smoothly-table-filler-row-h{grid-column:1 / -1}";const zd=Cd;const jd=class{constructor(e){t(this,e)}render(){return e("smoothly-table-row",{key:"669bd80f7d70aeea18b844f5a638befadddc9962"},e("smoothly-table-cell",{key:"e4ba2e8247ed5786b69f2f841b7af91c4221f841"},e("slot",{key:"8f87537817111fdee4b82d8a33e83346afd59e78"})))}};jd.style=zd;const Id=".sc-smoothly-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}";const _d=Id;const Td=class{constructor(e){t(this,e)}render(){return e(s,{key:"d62f9ff352e723dd96a9dca0b9ed1dc7e3da35d4"},e("slot",{key:"36ebf16d849edd47d09bf8826602a2d6e3286f05"}))}};Td.style=_d;const Ld=".sc-smoothly-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:0;position:sticky;z-index:1;--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";const Od=Ld;const Ad=class{constructor(e){t(this,e);this.onScroll=t=>{if(t.target instanceof HTMLElement){this.scrollParent=t.target;const e=this.scrollParent.getBoundingClientRect();const o=this.element.getBoundingClientRect();this.scrolled=e.top==o.top}};this.scrolled=undefined}connectedCallback(){var t;this.scrollParent=n.findParent(this.element);(t=this.scrollParent)===null||t===void 0?void 0:t.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var t;(t=this.scrollParent)===null||t===void 0?void 0:t.removeEventListener("scroll",this.onScroll)}render(){return e(s,{key:"f8b99f1629ab98316368f39dbae06c562c6edf37",class:{scrolled:!!this.scrolled}},e("slot",{key:"29259680e8b93ecf2d780e608a8fd3036d9641bd"}))}get element(){return i(this)}};Ad.style=Od;const Md=".sc-smoothly-table-row-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;box-sizing:border-box;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-table-row-h:has(smoothly-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-table-row-h:has(smoothly-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const Ed=Md;const Dd=class{constructor(e){t(this,e);this.expandableCells=new Set}smoothlyTableExpandableCellRegisterHandler(t){t.stopPropagation();this.expandableCells.add(t.target)}smoothlyTableExpandableCellChangeHandler(t){if(t.detail)for(const e of this.expandableCells)t.target!=e&&e.close()}render(){return e(s,{key:"b608313036bb6e17c3b4b60fdadf47e5d817d489"},e("slot",{key:"9873b97f168b210f50924a06a3a8923da052ffe1"}))}};Dd.style=Ed;const $d=".sc-smoothly-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group{display:contents}[align].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group>*.sc-smoothly-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2, auto);justify-content:space-between;padding:0.3rem 1.1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([align])>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-table-row-group-h:not([open])>div.sc-smoothly-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child::before{content:'';display:flex;position:absolute;top:50%;translate:0 -50%;left:0.3em;height:0.4em;width:0.4em;border-bottom:1px solid rgb(var(--smoothly-default-contrast));border-right:1px solid rgb(var(--smoothly-default-contrast));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover>div.sc-smoothly-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child>div.sc-smoothly-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-table-row-group-h>div.sc-smoothly-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const Rd=$d;const Pd=class{constructor(e){t(this,e);this.smoothlyTableRowGroupChange=o(this,"smoothlyTableRowGroupChange",7);this.align=false;this.open=false}clickHandler(){this.open=!this.open;this.smoothlyTableRowGroupChange.emit(this.open)}render(){return e(s,{key:"91c803790cbbb1d1f98138fae837f4797a8e543f"},e("div",{key:"fcfabf942cd18c6647d00bece21412e768656454",onClick:()=>this.clickHandler()},e("div",{key:"3547051ef9a8900a4982b9e0592b3501ba9d46cc"},e("slot",{key:"9613f0b10c3b589ac2d9c7e73cf09d155e162eaf",name:"start"})),e("div",{key:"7c431d32cdd963bf166dc44693a239872fff942e"},e("slot",{key:"7f9992bf59d226da834e2015f1e9efd574a72aba",name:"end"}))),e("div",{key:"1aacd15711f519620ce5ec07691911bfe650d5e0"},e("slot",{key:"d40ae903a11106a79fd96efe3f31be571b3270e1"})))}};Pd.style=Rd;const Fd=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}.sc-smoothly-tabs-h.hide-tabs.sc-smoothly-tabs-s>smoothly-tab>div:first-child{display:none}";const Hd=Fd;const Nd=class{constructor(e){t(this,e);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs="always";this.tabElements=[];this.selectedElement=undefined}onInputLoad(t){if(t.target instanceof HTMLElement&&!this.tabElements.includes(t.target)){this.tabElements=[...this.tabElements,t.target]}}openChanged(t){if(t.target!=this.element){t.stopPropagation();this.selectedElement=t.target;this.smoothlyTabOpen.emit(t.detail)}}onSelectedChange(t,e){if(e)e.open=false}render(){return e(s,{key:"baeff19415ff5426e798b488041a2948cc8c9303",class:{"hide-tabs":this.tabs=="multiple"&&this.tabElements.length==1},style:{"--tabs":`${this.tabElements.length}`}},e("slot",{key:"f706416adcbff5999340466806f938308643963d"}))}get element(){return i(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};Nd.style=Hd;const Yd=".sc-smoothly-tabs-demo-h{display:block}[hidden].sc-smoothly-tabs-demo-h{display:none}.sc-smoothly-tabs-demo-h>*.sc-smoothly-tabs-demo{margin:auto;max-width:1200px;width:100%;margin-block:5rem}.sc-smoothly-tabs-demo-h code.sc-smoothly-tabs-demo{color:rgb(var(--smoothly-medium-contrast));background-color:rgb(var(--smoothly-medium-color));padding-inline:0.25rem;border-radius:0.25rem}";const Ud=Yd;const Wd=class{constructor(e){t(this,e);this.extraTab=undefined}render(){return e(s,{key:"f0b8e3d8ccd4f161beb9464ac4f44c4a8f423f6a"},e("smoothly-tabs",{key:"60a0f8cdcef3fa829ce5b744882759cd5d10dc51",tabs:"multiple"},e("smoothly-tab",{key:"a09669d6f67e49af1e4484ac8bdb6dcbe82ac5c2",label:"Single Tab",open:true},e("strong",{key:"386f0a6b23532753c16f25d21d90b92b9f7d559d"},"Single Tab content here.")," If only one tab is available setting ",e("code",{key:"a6abc1cb869d182f93e9c551cb437a51cfd40924"},"tabs")," to"," ",e("code",{key:"013e2add2798ca9bb6c521af6f2d5439023d397a"},'"multiple"')," will hide the tab navigation and display the single tab's content directly.",!this.extraTab&&e("div",{key:"61b05badfbf979cee4130a5895bb42051b98e4bd"},e("smoothly-button",{key:"2b9951d31501f6c2fec35a10ff2aa7aa547ed904",color:"primary",onClick:()=>this.extraTab=true},"Click to add extra tab"))),this.extraTab&&e("smoothly-tab",{key:"10c9ccc57c7a157dd5d88ded68a18c9ba2bd82ce",label:"Extra tab"},"When there are more then one tab, the tab navigation will show.")),e("smoothly-tabs",{key:"c6a3e02c61d207a63baa6aab315a4963d29000f2"},e("smoothly-tab",{key:"6f27b753d78d46286806ddc9b034a154bc0cc42f",label:"test1",open:true},"Hello world!"),e("smoothly-tab",{key:"52718ac6518275d5a0e9fbeb5d29e2e7ab1485ab",label:"test2"},"this is a test message!"),e("smoothly-tab",{key:"2007136c4d3a01a8e8ff203046961d1fd224f001",label:"test3"},"this is a test message again!")))}};Wd.style=Ud;const Bd=".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 Vd=Bd;const Gd=class{constructor(e){t(this,e);this.color=undefined}render(){return e(s,{key:"fa3fcf5c0db4ea68505dd4a91ef67867a79af95d"},this.color,["tint","color","shade"].map((t=>e("smoothly-theme-color-variant",{title:`${this.color} ${t}`,color:this.color,variant:t}))))}};Gd.style=Vd;const Kd=".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 Zd=Kd;const qd=class{constructor(e){t(this,e);this.color=undefined;this.variant="color"}render(){return"Aa"}};qd.style=Zd;const Xd=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const Jd=Xd;const Qd=class{constructor(e){t(this,e)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((t=>e("smoothly-theme-color",{color:t})))}};Qd.style=Jd;const tm=".sc-smoothly-theme-demo-h{display:flex;width:50%;margin:auto;flex-direction:column;gap:2em;margin-top:2em}.sc-smoothly-theme-demo-h>smoothly-theme-picker.sc-smoothly-theme-demo{width:20em}.sc-smoothly-theme-demo-h>span.sc-smoothly-theme-demo{display:flex;flex-direction:row;gap:10em}";const em=tm;const om=class{constructor(e){t(this,e)}render(){return e(s,{key:"c6cb7e07d179881b5c7ea01ab5fad117333c7924"},e("h2",{key:"84d2225eb190763579f2e26e6bc0e909b20d7e69"},"Theme"),e("smoothly-theme-picker",{key:"5e92995da49847d47f63e566975b7025b8af2e43"},e("smoothly-item",{key:"bfd982aa4a72d08b1e0f5ada079f181eaad405e6",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),e("smoothly-item",{key:"2782d40d30d9127f2412468fcdf6e6d2e5916381",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),e("smoothly-item",{key:"7b6a503af2810acf328adbee327513989a8cda95",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),e("smoothly-item",{key:"805852f34c258b72dac8f98e31dfb63e7e9c794a",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),e("smoothly-item",{key:"40294e04abc1d52b3a49117d212ede1b49a3445b",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),e("smoothly-item",{key:"a6901786da8b1ee5d7483faf83bdbf3fab619d6f",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),e("smoothly-item",{key:"06b203f64a7fd490540b85551ca776dfbc8fb13c",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),e("smoothly-item",{key:"d7f641b6379b62b07604a8414c29e3c849c74f95",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),e("smoothly-item",{key:"178735bb029460772b022ebfd0e498c85dc81e1e",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),e("span",{key:"6c0adc3df188c6c0710ce74008843e496ea6c325"},e("smoothly-theme-colors",{key:"aff57e9c718ddde147f7ab7ad70a81a07a0c7b6e"}),e("smoothly-theme-guide",{key:"17c985e6cd4c1c3e87b2a015ec1a34b51a850305"})),e("smoothly-button",{key:"4859f1550db90aa5dd37a2d48e5cfe77aa0086df",type:"link",link:"/redirect"},"To redirect"),e("smoothly-button",{key:"808ca46948dbabbf1e6c435a7bab364895affd13",type:"link",link:"/redirect"},"To /redirect"),e("smoothly-button",{key:"b39a6fe0f311230c5cef50e03f7ca5fa56212d9c",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),e("smoothly-button",{key:"4aeb31316b4b9d697cf849b96849aa3525bcfffb",type:"link",link:"redirect/nested"},"To redirect nested"))}};om.style=em;const sm="";const im=sm;const am=class{constructor(e){t(this,e)}render(){return[e("smoothly-display",{key:"d5def8cc615917e2d7762e22296b6aa67680bd78"},"Tint is used as background to highlight, for example hovering an item in the select menu."),e("br",{key:"97ade6009bdd6a90f47eaa801b413cedb6ea174f"}),e("smoothly-display",{key:"869f59736dd90617038de1320219e81b18e5e44c"},"Color is used as a normal background or as a background to show that something is selected, for example a selected item in the select menu."),e("br",{key:"079c331d0e2f7da44a3cfd60bcdaa2ba93da9ff7"}),e("smoothly-display",{key:"e0fa54384263fce4d365c13cab5b1170f1daba5d"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),e("br",{key:"702641981ae80b9fbcd4d76ba0244193ef425e09"}),e("smoothly-display",{key:"5140cbc1b6e52bf273d747e7d9f584f8006aa501"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),e("br",{key:"9e25bf7bfc02d655c2e2918f30ebf2ec138dba08"})]}};am.style=im;const nm="";const lm=nm;const rm=class{constructor(e){t(this,e);this.element="smoothly-css"}render(){return e(s,{key:"797098864c8e731601bac823f5beae0a033395e9"},e("smoothly-input-select",{key:"07b3829ae764749d6022d7ccbd756894e30d9d94",name:"theme",looks:"border",onSmoothlyInput:t=>{const e=document.querySelector(`#${this.element}`);if(e instanceof HTMLLinkElement&&typeof t.detail.theme=="string")e.href=t.detail.theme}},e("label",{key:"206a6ab21d40f6826171cd6a1eb9df12a576bdfe",slot:"label"},"Select theme"),e("slot",{key:"16afd07b7c033891e17b5f17cbd48916708edc53"})))}};rm.style=lm;const cm=".sc-smoothly-toggle-switch-h{display:block}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;align-items:center;padding-inline:0;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-color))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-color-tint))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{display:flex;justify-content:flex-start;align-items:center;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));transition:100ms ease-in-out}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{fill:rgb(var(--smoothly-success-contrast));stroke:rgb(var(--smoothly-success-contrast))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{background-color:rgb(var(--smoothly-success-color))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-success-tint))}[selected].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{transform:translateX(100%)}[size=tiny].sc-smoothly-toggle-switch-h{--height:1.25rem}[size=small].sc-smoothly-toggle-switch-h{--height:1.5rem}[size=default].sc-smoothly-toggle-switch-h{--height:2rem}[size=large].sc-smoothly-toggle-switch-h{--height:2.5rem}.sc-smoothly-toggle-switch-h{height:var(--height);width:calc(var(--height) * 2)}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{--smoothly-icon-size:var(--height)}";const hm=cm;const dm=class{constructor(e){t(this,e);this.smoothlyToggleSwitchChange=o(this,"smoothlyToggleSwitchChange",7);this.checkmark=true;this.selected=false;this.disabled=false;this.size="default";this.color="medium";this.fill="clear"}handleClick(){this.selected=!this.selected;this.smoothlyToggleSwitchChange.emit(this.selected)}render(){return e(s,{key:"6b126167f4e51e4e9c0981c3b4f4c9483e44d47e"},e("button",{key:"fb4d0ad185bb171ef0b42aea38a50b48511122a9",type:"button",disabled:this.disabled,onClick:()=>this.handleClick()},e("smoothly-icon",{key:"5be759c24e81ac328c93b374b08a2f736b8e3791",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};dm.style=hm;const mm=".sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo{display:grid;grid-template-columns:repeat(5, max-content);gap:1em}.sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo>span.sc-smoothly-toggle-switch-demo>p.sc-smoothly-toggle-switch-demo{margin:0}";const um=mm;const ym=class{constructor(e){t(this,e)}render(){return e(s,{key:"64d65f2ee5ed516e63264d26db3456f73b9c6331"},e("h4",{key:"c409d5b69a391b3ff0a12da6bcfa7ea2f77c4339"},"Toggle switches"),e("div",{key:"4b45e077f05c7498d55e6810133072aedaedfbdf"},e("p",{key:"db1f36a76edbc78cf99cd4df4c48fc51843ad3ea"},"Checkmark"),e("span",{key:"00abcde30020c0b5d4f759c4268987b0add5afcd"},e("p",{key:"e760075480f2550d9751e4831baa9e6af69656cd"},"Tiny"),e("smoothly-toggle-switch",{key:"096c2f537ff710255e436778fcc4bcb61ffd0018",disabled:false,size:"tiny"})),e("span",{key:"9aed14a6b02b5d97758290c8495477b2bf8177e6"},e("p",{key:"2e03a9d69cb02223fb924de0a776d4fa4a765e35"},"Small"),e("smoothly-toggle-switch",{key:"8d2c073010357c33c672c3e7da1637c79ca98147",disabled:false,size:"small"})),e("span",{key:"b49e50e83baf36ff0f1f96c80baadf18a0a6d853"},e("p",{key:"7806781a6c3c0d7aed53b52542fcb33a8719758b"},"Standard"),e("smoothly-toggle-switch",{key:"d7ca3708a9d73962c19dc0827095c45a5aece9ab",disabled:false})),e("span",{key:"69d4c4a6d939119d7ceb27a54fb2b20633036423"},e("p",{key:"76c9a8367703853d7573d2699f1a726e097badbe"},"Large"),e("smoothly-toggle-switch",{key:"dc92f8ae4404b9fe4fa27fec647d5153e8a9908f",disabled:false,size:"large"})),e("p",{key:"b778e2e7b4af23485ce7805b33a552a2a8f48a6c"},"Colors checkmark"),e("span",{key:"001263dffb778cbe8cacdd3a8035024cb29e5b77"},e("p",{key:"d31d0c6c746919a70802dcffab365c83d0389b03"},"Danger"),e("smoothly-toggle-switch",{key:"7b8767302b9cc27e6ace0541200f54074bb23d8f",color:"danger",disabled:false,size:"small"})),e("span",{key:"21276af4e73022cda210e63d91cf722dd26c34f1"},e("p",{key:"49e291d0c969c521f86b6810f222b933022d5cce"},"Primary color"),e("smoothly-toggle-switch",{key:"f11f9b1d60e05bd70f4a47fdee1827368aba4a00",color:"primary",disabled:false,size:"small"})),e("span",{key:"a3731c8dce346c3dc4e9a7247d2a5d545dfaa527"},e("p",{key:"a805c7788843d34897b765ef29374fc644b34c4d"},"Secondary color"),e("smoothly-toggle-switch",{key:"3446001233269011daf368f0cad9df4a497b47b7",color:"secondary",disabled:false,size:"small"})),e("p",{key:"e84abf650d03f54523a3ae2b6209e3cebd4fcf8e"}),e("p",{key:"d90de75f3e41659bac7ac35592fc962bb1ad3936"},"Colors no checkmark"),e("span",{key:"517697478057731d040086f99f2a14f946bdf74c"},e("p",{key:"4f690df01c2cb009f7f4d4fe27816ad2c15c8ced"},"Danger"),e("smoothly-toggle-switch",{key:"c7d57f387bbc5a610721d7ce6df6a53d0227008c",checkmark:false,color:"danger",disabled:false,size:"small"})),e("span",{key:"3e6a4e13f0ce183b49f4318713048a0d174d858b"},e("p",{key:"7ce09e9094f19eb5ee64c4866573472245fa8ec3"},"Primary color"),e("smoothly-toggle-switch",{key:"af107a283ed20b3413e930e092383a77d1d0ef08",checkmark:false,color:"primary",disabled:false,size:"small"})),e("span",{key:"5bc62d8e1b96c79716eacedd5d4771ce62eae982"},e("p",{key:"e4e90e5342573f376f9817b8a114bc5e93e3c485"},"Secondary color"),e("smoothly-toggle-switch",{key:"c15b01e1ecb3750bf917f673e710feea15af2b35",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};ym.style=um;const bm=".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}.sc-smoothly-trigger-h>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 fm=bm;const pm=class{constructor(e){t(this,e);this.trigger=o(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?e("slot",null):e("a",{onClick:t=>this.onClick(t)},e("slot",null));break;case"button":t=e("button",{key:"a6b8002b54f35d0000548a9e1f658b3225a5db4c",disabled:this.disabled,name:this.name},e("slot",{key:"f045e36a7be08974eca7c771479fc71b9b9d751e"}));break}return t}};pm.style=fm;export{F as smoothly_app,H as smoothly_app_demo,Ft as smoothly_app_room,Yt as smoothly_back_to_top,Bt as smoothly_burger,Kt as smoothly_button,Xt as smoothly_button_confirm,te as smoothly_button_demo,le as smoothly_calendar,he as smoothly_dialog,ue as smoothly_dialog_demo,ao as smoothly_display,no as smoothly_display_demo,ro as smoothly_display_demo_json,yo as smoothly_display_json,po as smoothly_display_json_object,vo as smoothly_display_json_primitive,So as smoothly_display_json_record_key,il as smoothly_filter,ll as smoothly_filter_field,hl as smoothly_filter_input,ul as smoothly_filter_select,fl as smoothly_filter_toggle,ur as smoothly_form,fr as smoothly_form_demo,pr as smoothly_form_demo_all,gr as smoothly_form_demo_card,kr as smoothly_form_demo_controlled,xr as smoothly_form_demo_date,zr as smoothly_form_demo_date_range,jr as smoothly_form_demo_login,Tr as smoothly_form_demo_pet,Lr as smoothly_form_demo_prices,Mr as smoothly_form_demo_schedule,Er as smoothly_form_demo_transparent,Pr as smoothly_form_demo_typed,Nr as smoothly_frame,Wr as smoothly_icon,Gr as smoothly_icon_demo,tc as smoothly_input,sc as smoothly_input_checkbox,nc as smoothly_input_clear,cc as smoothly_input_color,hc as smoothly_input_color_demo,uc as smoothly_input_date,fc as smoothly_input_date_range,kc as smoothly_input_date_time,xc as smoothly_input_demo,zc as smoothly_input_demo_standard,_c as smoothly_input_edit,Oc as smoothly_input_file,Ec as smoothly_input_month,Rc as smoothly_input_price_demo,Hc as smoothly_input_radio,Uc as smoothly_input_radio_item,Vc as smoothly_input_range,Gc as smoothly_input_range_demo,qc as smoothly_input_reset,th as smoothly_input_select,sh as smoothly_input_submit,nh as smoothly_item,ch as smoothly_label,mh as smoothly_lazy,uh as smoothly_load_more,fh as smoothly_modal,kh as smoothly_notification,xh as smoothly_notifier,zh as smoothly_spinner,_h as smoothly_summary,Oh as smoothly_tab,Eh as smoothly_table,Rh as smoothly_table_body,Hh as smoothly_table_cell,Uh as smoothly_table_demo,Vh as smoothly_table_demo_colspan,Zh as smoothly_table_demo_filler_row,od as smoothly_table_demo_filtered,nd as smoothly_table_demo_group,hd as smoothly_table_demo_nested,ud as smoothly_table_demo_nested_inner,fd as smoothly_table_demo_simple,vd as smoothly_table_expandable_cell,Sd as smoothly_table_expandable_row,jd as smoothly_table_filler_row,Td as smoothly_table_foot,Ad as smoothly_table_head,Dd as smoothly_table_row,Pd as smoothly_table_row_group,Nd as smoothly_tabs,Wd as smoothly_tabs_demo,Gd as smoothly_theme_color,qd as smoothly_theme_color_variant,Qd as smoothly_theme_colors,om as smoothly_theme_demo,am as smoothly_theme_guide,rm as smoothly_theme_picker,dm as smoothly_toggle_switch,ym as smoothly_toggle_switch_demo,pm as smoothly_trigger};
|
|
2
|
-
//# sourceMappingURL=p-8deb6fb9.entry.js.map
|