smoothly 1.2.1-alpha.12 → 1.2.1-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cjs/smoothly-app_106.cjs.entry.js +11 -9
  2. package/dist/cjs/smoothly-app_106.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/input/index.js +11 -9
  4. package/dist/collection/components/input/index.js.map +1 -1
  5. package/dist/components/{p-6dcf3459.js → p-005bb52a.js} +2 -2
  6. package/dist/components/{p-6dcf3459.js.map → p-005bb52a.js.map} +1 -1
  7. package/dist/components/{p-db41903a.js → p-100d067e.js} +12 -10
  8. package/dist/components/p-100d067e.js.map +1 -0
  9. package/dist/components/{p-7b9bdf2a.js → p-15e66616.js} +2 -2
  10. package/dist/components/{p-7b9bdf2a.js.map → p-15e66616.js.map} +1 -1
  11. package/dist/components/{p-fee0f359.js → p-163bd817.js} +2 -2
  12. package/dist/components/{p-fee0f359.js.map → p-163bd817.js.map} +1 -1
  13. package/dist/components/{p-99ead2c5.js → p-1729ec54.js} +3 -3
  14. package/dist/components/{p-99ead2c5.js.map → p-1729ec54.js.map} +1 -1
  15. package/dist/components/{p-1e15b793.js → p-1847326a.js} +4 -4
  16. package/dist/components/{p-1e15b793.js.map → p-1847326a.js.map} +1 -1
  17. package/dist/components/{p-00a82884.js → p-20853a04.js} +6 -6
  18. package/dist/components/{p-00a82884.js.map → p-20853a04.js.map} +1 -1
  19. package/dist/components/{p-5879c0a2.js → p-275491c7.js} +3 -3
  20. package/dist/components/{p-5879c0a2.js.map → p-275491c7.js.map} +1 -1
  21. package/dist/components/{p-23654b8b.js → p-2b3e3dd5.js} +5 -5
  22. package/dist/components/{p-23654b8b.js.map → p-2b3e3dd5.js.map} +1 -1
  23. package/dist/components/{p-8acdd8d0.js → p-31af2db0.js} +7 -7
  24. package/dist/components/{p-8acdd8d0.js.map → p-31af2db0.js.map} +1 -1
  25. package/dist/components/{p-bd9c50fe.js → p-3765cc07.js} +5 -5
  26. package/dist/components/{p-bd9c50fe.js.map → p-3765cc07.js.map} +1 -1
  27. package/dist/components/{p-1e4b5d8f.js → p-413e4258.js} +3 -3
  28. package/dist/components/{p-1e4b5d8f.js.map → p-413e4258.js.map} +1 -1
  29. package/dist/components/{p-4f272618.js → p-476fd3b1.js} +4 -4
  30. package/dist/components/{p-4f272618.js.map → p-476fd3b1.js.map} +1 -1
  31. package/dist/components/{p-60cb135c.js → p-4bef3e5b.js} +3 -3
  32. package/dist/components/{p-60cb135c.js.map → p-4bef3e5b.js.map} +1 -1
  33. package/dist/components/{p-76fb0a4c.js → p-51c231f6.js} +2 -2
  34. package/dist/components/{p-76fb0a4c.js.map → p-51c231f6.js.map} +1 -1
  35. package/dist/components/{p-90302295.js → p-5b9429be.js} +2 -2
  36. package/dist/components/{p-90302295.js.map → p-5b9429be.js.map} +1 -1
  37. package/dist/components/{p-1797be0c.js → p-5f7dd700.js} +3 -3
  38. package/dist/components/{p-1797be0c.js.map → p-5f7dd700.js.map} +1 -1
  39. package/dist/components/{p-aaf83c91.js → p-6cdfda1e.js} +2 -2
  40. package/dist/components/{p-aaf83c91.js.map → p-6cdfda1e.js.map} +1 -1
  41. package/dist/components/{p-da906314.js → p-893f7863.js} +2 -2
  42. package/dist/components/{p-da906314.js.map → p-893f7863.js.map} +1 -1
  43. package/dist/components/{p-609eabe7.js → p-9651f988.js} +4 -4
  44. package/dist/components/{p-609eabe7.js.map → p-9651f988.js.map} +1 -1
  45. package/dist/components/{p-a50318cd.js → p-9e69db0b.js} +2 -2
  46. package/dist/components/{p-a50318cd.js.map → p-9e69db0b.js.map} +1 -1
  47. package/dist/components/{p-6daf3f93.js → p-a4df40d3.js} +6 -6
  48. package/dist/components/{p-6daf3f93.js.map → p-a4df40d3.js.map} +1 -1
  49. package/dist/components/{p-fa44b695.js → p-bc953568.js} +2 -2
  50. package/dist/components/{p-fa44b695.js.map → p-bc953568.js.map} +1 -1
  51. package/dist/components/{p-e7a4ac66.js → p-c8f8c147.js} +16 -16
  52. package/dist/components/{p-e7a4ac66.js.map → p-c8f8c147.js.map} +1 -1
  53. package/dist/components/{p-bfdbee5d.js → p-cb33287e.js} +3 -3
  54. package/dist/components/{p-bfdbee5d.js.map → p-cb33287e.js.map} +1 -1
  55. package/dist/components/{p-4bccb4ee.js → p-d19b3503.js} +2 -2
  56. package/dist/components/{p-4bccb4ee.js.map → p-d19b3503.js.map} +1 -1
  57. package/dist/components/{p-4fb88136.js → p-f029915f.js} +6 -6
  58. package/dist/components/{p-4fb88136.js.map → p-f029915f.js.map} +1 -1
  59. package/dist/components/{p-a44fd0aa.js → p-f551738d.js} +2 -2
  60. package/dist/components/{p-a44fd0aa.js.map → p-f551738d.js.map} +1 -1
  61. package/dist/components/{p-4ec525c8.js → p-f617a56e.js} +3 -3
  62. package/dist/components/{p-4ec525c8.js.map → p-f617a56e.js.map} +1 -1
  63. package/dist/components/{p-d92df881.js → p-fe81e409.js} +10 -10
  64. package/dist/components/{p-d92df881.js.map → p-fe81e409.js.map} +1 -1
  65. package/dist/components/smoothly-app-demo.js +30 -30
  66. package/dist/components/smoothly-filter-field.js +1 -1
  67. package/dist/components/smoothly-filter-input.js +1 -1
  68. package/dist/components/smoothly-filter.js +1 -1
  69. package/dist/components/smoothly-form-demo-all.js +1 -1
  70. package/dist/components/smoothly-form-demo-card.js +1 -1
  71. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  72. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  73. package/dist/components/smoothly-form-demo-date.js +1 -1
  74. package/dist/components/smoothly-form-demo-login.js +1 -1
  75. package/dist/components/smoothly-form-demo-pet.js +1 -1
  76. package/dist/components/smoothly-form-demo-prices.js +1 -1
  77. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  78. package/dist/components/smoothly-form-demo-typed.js +1 -1
  79. package/dist/components/smoothly-form-demo.js +1 -1
  80. package/dist/components/smoothly-icon-demo.js +1 -1
  81. package/dist/components/smoothly-input-checkbox-demo.js +5 -5
  82. package/dist/components/smoothly-input-color-demo.js +1 -1
  83. package/dist/components/smoothly-input-color.js +1 -1
  84. package/dist/components/smoothly-input-date-range.js +1 -1
  85. package/dist/components/smoothly-input-date.js +1 -1
  86. package/dist/components/smoothly-input-demo-standard.js +1 -1
  87. package/dist/components/smoothly-input-demo.js +1 -1
  88. package/dist/components/smoothly-input-price-demo.js +1 -1
  89. package/dist/components/smoothly-input-range-demo.js +1 -1
  90. package/dist/components/smoothly-input-range.js +1 -1
  91. package/dist/components/smoothly-input.js +1 -1
  92. package/dist/components/smoothly-next-demo.js +1 -1
  93. package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
  94. package/dist/components/smoothly-table-demo-filtered.js +1 -1
  95. package/dist/components/smoothly-table-demo.js +1 -1
  96. package/dist/components/smoothly-table-testing.js +1 -1
  97. package/dist/esm/smoothly-app_106.entry.js +11 -9
  98. package/dist/esm/smoothly-app_106.entry.js.map +1 -1
  99. package/dist/smoothly/{p-2229dd94.entry.js → p-dbd30071.entry.js} +2 -2
  100. package/dist/smoothly/{p-2229dd94.entry.js.map → p-dbd30071.entry.js.map} +1 -1
  101. package/dist/smoothly/smoothly.esm.js +1 -1
  102. package/package.json +1 -1
  103. package/dist/components/p-db41903a.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,c as o,H as s,g as a,F as i}from"./p-ad674a4e.js";import{b as n,a as l,T as r,C as c,o as d,i as h,s as b,r as m,c as y,D as u,f,R as p,n as g,M as k,I as v}from"./p-99846f9b.js";import{L as x,a as w,D as S,b as C,T as z,C as j,c as _,A as T}from"./p-05e38ae2.js";import{r as I,N as O}from"./p-c3f85494.js";import{f as L}from"./p-cf245e8a.js";function A(e){return new E(e??"any")}class E extends n{constructor(){super(...arguments);this.class="any";this.is=e=>e!=undefined}}function D(){const e=navigator.language;return x.is(e)?e:w.is(e)?x.toLocale(e):undefined}const M='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>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>smoothly-notifier>header>nav:not(.menu-open){display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const $=M;const R=class{constructor(t){e(this,t);this.rooms={};this.label="App";this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var e;if(!this.selected&&!window.location.search)(e=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((e=>!(e===null||e===void 0?void 0:e.element.disabled))))===null||e===void 0?void 0:e.element.setSelected(true)}async selectRoom(e){var t;(t=this.rooms[e])===null||t===void 0?void 0:t.element.setSelected(true)}async selectedChanged(){var e;Object.values(this.rooms).forEach((e=>{var t;return(e===null||e===void 0?void 0:e.element.path)!=((t=this.selected)===null||t===void 0?void 0:t.element.path)&&(e===null||e===void 0?void 0:e.element.setSelected(false))}));const t=await((e=this.selected)===null||e===void 0?void 0:e.element.getContent());if(this.mainElement&&t){this.mainElement.innerHTML="";this.mainElement.appendChild(t)}}burgerVisibilityHandler(e){this.burgerVisibility=e.detail}burgerStatusHandler(e){e.stopPropagation();this.menuOpen=e.detail}async locationChangeHandler(e){var t;(t=this.rooms[e.state.smoothlyPath])===null||t===void 0?void 0:t.element.setSelected(true,{history:true})}roomSelectedHandler(e){this.selected={element:e.target};if(this.burgerVisibility)this.menuOpen=false;if(!e.detail.history){const e=this.selected.element.path.toString();const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;window.history.pushState({smoothlyPath:e},"",t.href)}}roomLoadedHandler(e){const t=this.rooms[e.target.path.toString()]={element:e.target};if(t.element.selected){this.selected=t;window.history.replaceState({smoothlyPath:t.element.path},"",window.location.href)}}clickHandler(e){if(this.burgerVisibility)if(e.composedPath().some((e=>e==this.burgerElement||e==this.navElement)));else this.menuOpen=false}render(){return t("smoothly-notifier",{key:"97d74b5f676da85edbe4e758b5d774dece0e1684"},t("header",{key:"4f90451a95fd9456045c1bdc70e50d09a588521e",color:this.color},t("h1",{key:"69384c314419a1df953a8c5b4d74d53a9114d093"},t("a",{key:"3d0b0a8b224b0defabdbc8fb06e532ec5ce5bc1b",href:""},this.label)),t("slot",{key:"b3779a282b489fec4093c2b434e7cdb10ea5c3f8",name:"header"}),t("nav",{key:"76eacb845b036d3d89a0103ac7ad7676812b43df",ref:e=>this.navElement=e,class:{"menu-open":this.menuOpen}},t("ul",{key:"10a985248e9c88d06efcfa81823350fcad52d790"},t("div",{key:"3b81b1bdf3ceb2625d9f2e7b85cb04d41f12a318",class:"nav-start-container"},t("slot",{key:"6f844fb944680656a336a54def2e7aaeb7b632e9",name:"nav-start"})),t("slot",{key:"d74d563727c922ea2066fc8a37105ffc2a168708"}," "),t("div",{key:"cccf3d1dc30904fe99e874ee3c50507d4e50aedc",class:"nav-end-container"},t("slot",{key:"9cbd9cf2917b53ffb6820ea717c1fb1fc71478dd",name:"nav-end"})))),t("smoothly-burger",{key:"9083b5c832c4a936c54114adfef2fcfa2a8e81d4",ref:e=>this.burgerElement=e,open:this.menuOpen,onSmoothlyNavStatus:e=>this.burgerStatusHandler(e),onSmoothlyVisibleStatus:e=>this.burgerVisibilityHandler(e)})),t("main",{key:"c49aa4597a080ff715127517a5151f0eab91fac5",ref:e=>this.mainElement=e}))}static get watchers(){return{selected:["selectedChanged"]}}};R.style=$;const P=class{constructor(t){e(this,t);this.baseUrl=undefined}render(){return t("smoothly-app",{key:"aa798117a543b094b87cd4f794e41c2c62eedcf5",color:"dark",label:"Smoothly Demo",home:"/root",ref:e=>this.app=e},t("smoothly-trigger",{key:"8576545a5f1408fe488c80ca5a0856650d3d5b49",slot:"nav-start",type:"link",name:"logout"},t("smoothly-icon",{key:"193f43f5a6d919ba06eec2a08149ed2374aee06f",toolTip:"Log out",name:"log-out",size:"medium"})),t("smoothly-app-room",{key:"e8844d73ceb204d13bfc279e946a0bac80dc4d68",path:"/root",label:"root"},t("smoothly-theme-demo",{key:"6cb3d1813bf4d9fe930ef3ed82215aac2af0d628"})),t("smoothly-app-room",{key:"cbf46329c16c64a199535b1553e7a8c672529fbc",path:"/links",label:"Links"},t("smoothly-input",{key:"4a9793a5fcca2a9addc6090c9c0cd671b1ebbd24",type:"text"},"Default"),t("div",{key:"14eeb3c49e15d784862c4f6e9d59c8a3d8da7963",style:{padding:"1em",maxWidth:"12em"}},t("smoothly-button",{key:"31b4d3395c2591401eb6dab6da14d6caac0411fe",fill:"solid",color:"danger",link:"https://google.com"},"open"),t("smoothly-button",{key:"bfad0b8b15643d8d31c85ee11a9c0e84db2ab6c9",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),t("smoothly-button",{key:"bebe8268049b005938a50db82b40c0ee87612743",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"e29cddc1f4bfd034dde47491361278c6ce87ba7d",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"d8cc0600b0632998ba1b869ad084edab91fad2e5",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),t("smoothly-app-room",{key:"ac76d59a6a1abf64390f2abf922d5f5a6dee1669",path:"/form",label:"Form"},t("smoothly-form-demo",{key:"0bdc1d11f5b8f934dda4ff392458b08d4a70be3f"})),t("smoothly-app-room",{key:"4563223ad6f765c0939cc30cd45dc30cd5d69032",path:"/input",label:"Input"},t("smoothly-input-demo",{key:"375c06afd265f6307fc66e93c9835dc49ce3e6d6"})),t("smoothly-app-room",{key:"42e0a3a236f724591145301dd9df043f679af9ee",path:"/button",label:"Button"},t("smoothly-button-demo",{key:"5901292f12d2d24973a2cf5387508a431803b2e8"})),t("smoothly-app-room",{key:"d4a8784af2165b95cfc42aff5ca3be1e5c958e87",path:"/dialog",label:"Dialog"},t("smoothly-dialog-demo",{key:"35c854b7844271e48d3f0e6533f9306c8464baf0"})),t("smoothly-app-room",{key:"e2ad58e1f1265d3a5027cd3f224083e40d5973f7",path:"/display",label:"Display",icon:"eye-outline"},t("smoothly-display-demo",{key:"2bfc57d7150503495f8b12d2ed3d9ec7d5d89a88"})),t("smoothly-app-room",{key:"8d586a62c12cf26864db2f247ad12681f590a77d",path:"/table",label:"Table"},t("smoothly-table-demo",{key:"38415d9b5ce66403af5628b3348410592e67fa23"})),t("smoothly-app-room",{key:"751c2b58dcbc1863dcc5529d88dd4fdd903e757a",path:"/next",label:"Next"},t("smoothly-next-demo",{key:"4e59f67d38365c613cea03506f3084ea692ee586"})),t("smoothly-app-room",{key:"ae695b723b25a16a108fa9e0c2b3b09533e50286",path:"/tabs",label:"Tabs",slot:"nav-end"},t("smoothly-tabs-demo",{key:"c283c99faa9ac420440b044c3aeebe8a01ec43e4"})),t("smoothly-app-room",{key:"267db613a187c690e77b432dd39bcff73234ac38",path:"/icon",label:"Icon",content:t("smoothly-icon-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"8bfbb99b17ad01a4fd09b8806a822546cdf720a3",path:"/redirect",label:"Redirect",slot:"nav-end"},t("smoothly-button",{key:"d4b35584d2c1287d720ebc459100761b276de121",type:"link",link:"/input"},"To input"),t("smoothly-button",{key:"8f207c300488db536215a3c61edb66519a22cc4d",type:"link",link:"../button"},"To button"),t("smoothly-button",{key:"c71e440088db8957a47434ab649fe7fe7c6c0f8e",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),t("smoothly-button",{key:"e6257c6f6da592e923ba67f73d587b35d2435d09",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"d55eb65cf2286b9fef264f8531f68b499af73199",type:"link",link:"nested"},"To redirect nested, relative path")),t("smoothly-app-room",{key:"3ba5cd1cfc05a1b00ec42ea9ddfebbe8abf74d02",path:"/hidden"},t("p",{key:"0033b0c86f9199c4623da10af5ad62ae3c89eb82"},"hello world!")),t("smoothly-app-room",{key:"5f43fc7540b1d3a123b278eed2b6be274a661fd5",path:"/redirect/nested"},"this is a nested room"))}};var N=class{constructor(e,t,o,s,a,i){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=e;this.name=t;this.prefix=o;this.value=s;this.suffix=a;this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var H=/[$_\p{ID_Start}]/u;var F=/[$_\u200C\u200D\p{ID_Continue}]/u;var U=".*";function Y(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function W(e,t=false){const o=[];let s=0;while(s<e.length){const a=e[s];const i=function(a){if(!t)throw new TypeError(a);o.push({type:"INVALID_CHAR",index:s,value:e[s++]})};if(a==="*"){o.push({type:"ASTERISK",index:s,value:e[s++]});continue}if(a==="+"||a==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:e[s++]});continue}if(a==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:e[s++]});continue}if(a==="{"){o.push({type:"OPEN",index:s,value:e[s++]});continue}if(a==="}"){o.push({type:"CLOSE",index:s,value:e[s++]});continue}if(a===":"){let t="";let a=s+1;while(a<e.length){const o=e.substr(a,1);if(a===s+1&&H.test(o)||a!==s+1&&F.test(o)){t+=e[a++];continue}break}if(!t){i(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:t});s=a;continue}if(a==="("){let t=1;let a="";let n=s+1;let l=false;if(e[n]==="?"){i(`Pattern cannot start with "?" at ${n}`);continue}while(n<e.length){if(!Y(e[n],false)){i(`Invalid character '${e[n]}' at ${n}.`);l=true;break}if(e[n]==="\\"){a+=e[n++]+e[n++];continue}if(e[n]===")"){t--;if(t===0){n++;break}}else if(e[n]==="("){t++;if(e[n+1]!=="?"){i(`Capturing groups are not allowed at ${n}`);l=true;break}}a+=e[n++]}if(l){continue}if(t){i(`Unbalanced pattern at ${s}`);continue}if(!a){i(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:a});s=n;continue}o.push({type:"CHAR",index:s,value:e[s++]})}o.push({type:"END",index:s,value:""});return o}function B(e,t={}){const o=W(e);t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");const s=`[^${V(t.delimiter)}]+?`;const a=[];let i=0;let n=0;let l=new Set;const r=e=>{if(n<o.length&&o[n].type===e)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const d=e=>{const t=r(e);if(t!==void 0)return t;const{type:s,index:a}=o[n];throw new TypeError(`Unexpected ${s} at ${a}, expected ${e}`)};const h=()=>{let e="";let t;while(t=r("CHAR")??r("ESCAPED_CHAR")){e+=t}return e};const b=e=>e;const m=t.encodePart||b;let y="";const u=e=>{y+=e};const f=()=>{if(!y.length){return}a.push(new N(3,"","",m(y),"",3));y=""};const p=(e,t,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!t&&!o&&c===3){u(e);return}f();if(!t&&!o){if(!e){return}a.push(new N(3,"","",m(e),"",c));return}let d;if(!o){d=s}else if(o==="*"){d=U}else{d=o}let h=2;if(d===s){h=1;d=""}else if(d===U){h=0;d=""}let b;if(t){b=t}else if(o){b=i++}if(l.has(b)){throw new TypeError(`Duplicate name '${b}'.`)}l.add(b);a.push(new N(h,b,m(e),d,m(n),c))};while(n<o.length){const e=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let a=e??"";if(t.prefixes.indexOf(a)===-1){u(a);a=""}f();let i=c();p(a,o,s,"",i);continue}const a=e??r("ESCAPED_CHAR");if(a){u(a);continue}const i=r("OPEN");if(i){const e=h();const t=r("NAME");let o=r("REGEX");if(!t&&!o){o=r("ASTERISK")}const s=h();d("CLOSE");const a=c();p(e,t,o,s,a);continue}f();d("END")}return a}function V(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function G(e){return e&&e.ignoreCase?"ui":"u"}function K(e,t,o){return q(B(e,o),t,o)}function Z(e){switch(e){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function q(e,t,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 a of e){if(a.type===3){if(a.modifier===3){s+=V(a.value)}else{s+=`(?:${V(a.value)})${Z(a.modifier)}`}continue}if(t)t.push(a.name);const e=`[^${V(o.delimiter)}]+?`;let i=a.value;if(a.type===1)i=e;else if(a.type===0)i=U;if(!a.prefix.length&&!a.suffix.length){if(a.modifier===3||a.modifier===1){s+=`(${i})${Z(a.modifier)}`}else{s+=`((?:${i})${Z(a.modifier)})`}continue}if(a.modifier===3||a.modifier===1){s+=`(?:${V(a.prefix)}(${i})${V(a.suffix)})`;s+=Z(a.modifier);continue}s+=`(?:${V(a.prefix)}`;s+=`((?:${i})(?:`;s+=V(a.suffix);s+=V(a.prefix);s+=`(?:${i}))*)${V(a.suffix)})`;if(a.modifier===0){s+="?"}}const a=`[${V(o.endsWith)}]|$`;const i=`[${V(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${i}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${a})`}return new RegExp(s,G(o))}if(!o.strict){s+=`(?:${i}(?=${a}))?`}let n=false;if(e.length){const t=e[e.length-1];if(t.type===3&&t.modifier===3){n=o.delimiter.indexOf(t)>-1}}if(!n){s+=`(?=${i}|${a})`}return new RegExp(s,G(o))}var J={delimiter:"",prefixes:"",sensitive:true,strict:true};var X={delimiter:".",prefixes:"",sensitive:true,strict:true};var Q={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function ee(e,t){if(!e.length){return false}if(e[0]==="/"){return true}if(!t){return false}if(e.length<2){return false}if((e[0]=="\\"||e[0]=="{")&&e[1]=="/"){return true}return false}function te(e,t){if(e.startsWith(t)){return e.substring(t.length,e.length)}return e}function oe(e,t){if(e.endsWith(t)){return e.substr(0,e.length-t.length)}return e}function se(e){if(!e||e.length<2){return false}if(e[0]==="["){return true}if((e[0]==="\\"||e[0]==="{")&&e[1]==="["){return true}return false}var ae=["ftp","file","http","https","ws","wss"];function ie(e){if(!e){return true}for(const t of ae){if(e.test(t)){return true}}return false}function ne(e,t){e=te(e,"#");if(t||e===""){return e}const o=new URL("https://example.com");o.hash=e;return o.hash?o.hash.substring(1,o.hash.length):""}function le(e,t){e=te(e,"?");if(t||e===""){return e}const o=new URL("https://example.com");o.search=e;return o.search?o.search.substring(1,o.search.length):""}function re(e,t){if(t||e===""){return e}if(se(e)){return ke(e)}else{return ge(e)}}function ce(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.password=e;return o.password}function de(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.username=e;return o.username}function he(e,t,o){if(o||e===""){return e}if(t&&!ae.includes(t)){const o=new URL(`${t}:${e}`);return o.pathname}const s=e[0]=="/";e=new URL(!s?"/-"+e:e,"https://example.com").pathname;if(!s){e=e.substring(2,e.length)}return e}function be(e,t,o){if(ye(t)===e){e=""}if(o||e===""){return e}return ve(e)}function me(e,t){e=oe(e,":");if(t||e===""){return e}return ue(e)}function ye(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ue(e){if(e===""){return e}if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function fe(e){if(e===""){return e}const t=new URL("https://example.com");t.username=e;return t.username}function pe(e){if(e===""){return e}const t=new URL("https://example.com");t.password=e;return t.password}function ge(e){if(e===""){return e}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e)){throw new TypeError(`Invalid hostname '${e}'`)}const t=new URL("https://example.com");t.hostname=e;return t.hostname}function ke(e){if(e===""){return e}if(/[^0-9a-fA-F[\]:]/g.test(e)){throw new TypeError(`Invalid IPv6 hostname '${e}'`)}return e.toLowerCase()}function ve(e){if(e===""){return e}if(/^[0-9]*$/.test(e)&&parseInt(e)<=65535){return e}throw new TypeError(`Invalid port '${e}'.`)}function xe(e){if(e===""){return e}const t=new URL("https://example.com");t.pathname=e[0]!=="/"?"/-"+e:e;if(e[0]!=="/"){return t.pathname.substring(2,t.pathname.length)}return t.pathname}function we(e){if(e===""){return e}const t=new URL(`data:${e}`);return t.pathname}function Se(e){if(e===""){return e}const t=new URL("https://example.com");t.search=e;return t.search.substring(1,t.search.length)}function Ce(e){if(e===""){return e}const t=new URL("https://example.com");t.hash=e;return t.hash.substring(1,t.hash.length)}var ze=class{constructor(e){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=e}get result(){return this.internalResult}parse(){this.tokenList=W(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 e=7;let t=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){e=2;t=3}else if(this.shouldTreatAsStandardURL){e=2}this.changeState(e,t)}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(e,t){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(e,t)}changeStateWithoutSettingComponent(e,t){this.state=e;this.componentStart=this.tokenIndex+t;this.tokenIndex+=t;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(e){this.rewind();this.state=e}safeToken(e){if(e<0){e=this.tokenList.length-e}if(e<this.tokenList.length){return this.tokenList[e]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(e,t){const o=this.safeToken(e);return o.value===t&&(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 e=this.safeToken(this.tokenIndex-1);return e.type!=="NAME"&&e.type!=="REGEX"&&e.type!=="CLOSE"&&e.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 e=this.tokenList[this.tokenIndex];const t=this.safeToken(this.componentStart).index;return this.input.substring(t,e.index)}computeShouldTreatAsStandardURL(){const e={};Object.assign(e,J);e.encodePart=ue;const t=K(this.makeComponentString(),void 0,e);this.shouldTreatAsStandardURL=ie(t)}};var je=["protocol","username","password","hostname","port","pathname","search","hash"];var _e="*";function Te(e,t){if(typeof e!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(e,t);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 Ie(e,t){if(!t){return e}return Le(e)}function Oe(e,t,o){let s;if(typeof t.baseURL==="string"){try{s=new URL(t.baseURL);e.protocol=Ie(s.protocol.substring(0,s.protocol.length-1),o);e.username=Ie(s.username,o);e.password=Ie(s.password,o);e.hostname=Ie(s.hostname,o);e.port=Ie(s.port,o);e.pathname=Ie(s.pathname,o);e.search=Ie(s.search.substring(1,s.search.length),o);e.hash=Ie(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${t.baseURL}'.`)}}if(typeof t.protocol==="string"){e.protocol=me(t.protocol,o)}if(typeof t.username==="string"){e.username=de(t.username,o)}if(typeof t.password==="string"){e.password=ce(t.password,o)}if(typeof t.hostname==="string"){e.hostname=re(t.hostname,o)}if(typeof t.port==="string"){e.port=be(t.port,e.protocol,o)}if(typeof t.pathname==="string"){e.pathname=t.pathname;if(s&&!ee(e.pathname,o)){const t=s.pathname.lastIndexOf("/");if(t>=0){e.pathname=Ie(s.pathname.substring(0,t+1),o)+e.pathname}}e.pathname=he(e.pathname,e.protocol,o)}if(typeof t.search==="string"){e.search=le(t.search,o)}if(typeof t.hash==="string"){e.hash=ne(t.hash,o)}return e}function Le(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Ae(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Ee(e,t){t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");t.sensitive??(t.sensitive=false);t.strict??(t.strict=false);t.end??(t.end=true);t.start??(t.start=true);t.endsWith="";const o=".*";const s=`[^${Ae(t.delimiter)}]+?`;const a=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let n=0;n<e.length;++n){const l=e[n];if(l.type===3){if(l.modifier===3){i+=Le(l.value);continue}i+=`{${Le(l.value)}}${Z(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!t.prefixes.includes(l.prefix));const d=n>0?e[n-1]:null;const h=n<e.length-1?e[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&h&&!h.prefix.length&&!h.suffix.length){if(h.type===3){const e=h.value.length>0?h.value[0]:"";c=a.test(e)}else{c=!h.hasCustomName()}}if(!c&&!l.prefix.length&&d&&d.type===3){const e=d.value[d.value.length-1];c=t.prefixes.includes(e)}if(c){i+="{"}i+=Le(l.prefix);if(r){i+=`:${l.name}`}if(l.type===2){i+=`(${l.value})`}else if(l.type===1){if(!r){i+=`(${s})`}}else if(l.type===0){if(!r&&(!d||d.type===3||d.modifier!==3||c||l.prefix!=="")){i+="*"}else{i+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(a.test(l.suffix[0])){i+="\\"}}i+=Le(l.suffix);if(c){i+="}"}if(l.modifier!==3){i+=Z(l.modifier)}}return i}var De=class{constructor(e={},t,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof t==="string"){s=t}else{o=t}if(typeof e==="string"){const t=new ze(e);t.parse();e=t.result;if(s===void 0&&typeof e.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}e.baseURL=s}else{if(!e||typeof e!=="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 a={ignoreCase:o.ignoreCase===true};const i={pathname:_e,protocol:_e,username:_e,password:_e,hostname:_e,port:_e,search:_e,hash:_e};this.pattern=Oe(i,e,true);if(ye(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of je){if(!(n in this.pattern))continue;const e={};const t=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(e,J);e.encodePart=ue;break;case"username":Object.assign(e,J);e.encodePart=fe;break;case"password":Object.assign(e,J);e.encodePart=pe;break;case"hostname":Object.assign(e,X);if(se(t)){e.encodePart=ke}else{e.encodePart=ge}break;case"port":Object.assign(e,J);e.encodePart=ve;break;case"pathname":if(ie(this.regexp.protocol)){Object.assign(e,Q,a);e.encodePart=xe}else{Object.assign(e,J,a);e.encodePart=we}break;case"search":Object.assign(e,J,a);e.encodePart=Se;break;case"hash":Object.assign(e,J,a);e.encodePart=Ce;break}try{this.parts[n]=B(t,e);this.regexp[n]=q(this.parts[n],this.names[n],e);this.component_pattern[n]=Ee(this.parts[n],e)}catch(e){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return false}try{if(typeof e==="object"){o=Oe(o,e,false)}else{o=Oe(o,Te(e,t),false)}}catch(e){return false}let s;for(s of je){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return}try{if(typeof e==="object"){o=Oe(o,e,false)}else{o=Oe(o,Te(e,t),false)}}catch(e){return null}let s={};if(t){s.inputs=[e,t]}else{s.inputs=[e]}let a;for(a of je){let e=this.regexp[a].exec(o[a]);if(!e){return null}let t={};for(let[o,s]of this.names[a].entries()){if(typeof s==="string"||typeof s==="number"){let a=e[o+1];t[s]=a}}s[a]={input:o[a]??"",groups:t}}return s}static compareComponent(e,t,o){const s=(e,t)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(e[o]<t[o])return-1;else if(e[o]===t[o])continue;else return 1}return 0};const a=new N(3,"","","","",3);const i=new N(0,"","","","",3);const n=(e,t)=>{let o=0;for(;o<Math.min(e.length,t.length);++o){let a=s(e[o],t[o]);if(a)return a}if(e.length===t.length){return 0}return s(e[o]??a,t[o]??a)};if(!t.component_pattern[e]&&!o.component_pattern[e]){return 0}if(t.component_pattern[e]&&!o.component_pattern[e]){return n(t.parts[e],[i])}if(!t.component_pattern[e]&&o.component_pattern[e]){return n([i],o.parts[e])}return n(t.parts[e],o.parts[e])}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=De}const Me='.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 $e=Me;const Re=class{constructor(t){e(this,t);this.smoothlyRoomSelected=o(this,"smoothlyRoomSelected",7);this.smoothlyRoomLoaded=o(this,"smoothlyRoomLoaded",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.smoothlyRoomLoaded.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(e,t){this.selected=e;if(e)this.smoothlyRoomSelected.emit({history:!!(t===null||t===void 0?void 0:t.history)})}clickHandler(e){if(!e.metaKey&&!e.ctrlKey&&e.which!=2&&e.button!=1){e.preventDefault();this.setSelected(true)}}render(){return t(s,{key:"c8a335193ee0aa36091178413f9c66aeedb8c055"},t("li",{key:"14789089daba4c466cfae4f85d4cc00f713d2f7d"},t("a",{key:"5fa57305ed064e5c797b19bbdb21bb80798e5bd7",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:e=>this.clickHandler(e)},this.icon&&t("smoothly-icon",{key:"8e460965cfcf0be0dbc4ec3b0a5f2fac870c8847",name:this.icon}),this.label&&t("span",{key:"df177b3036464c00da7b305b59425e2421809adc",class:"label"},this.label))),t("div",{key:"8efc7494ce11d1260c32aba361d72a5a51cac010",ref:e=>this.contentElement=e},this.content&&t("smoothly-lazy",{key:"2bd422f0c20d4e56746dce0d120c578171a70a57",content:this.content}),t("slot",{key:"d45b27b47bd8bdb85fed17fc196d53eb33234bd8"})))}};Re.style=$e;const Pe=".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 Ne=Pe;const He=class{constructor(t){e(this,t);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){var e;this.scrollableParent=l.findParent(this.element);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",(()=>{var e,t;this.visible=((t=(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTop)!==null&&t!==void 0?t:0)>20}))}render(){const e={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return t(s,{key:"d58ae307b6f213cac17096127f4f02f89261134e",style:e,onClick:()=>{var e;return(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTo({top:0,left:0,behavior:"smooth"})}},t("smoothly-icon",{key:"ced3df0d986862792b4233ab646aa39acfbf5276",name:"caret-up-outline"}))}get element(){return a(this)}};He.style=Ne;const Fe="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Ue=Fe;const Ye=class{constructor(t){e(this,t);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(e){if(this.visible)this.open=!this.open}resizeHandler(){const e=window.matchMedia(this.mediaQuery).matches;if(e!=this.history){if(e){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=e}render(){return t(s,{key:"6e32b13474959bdbd15eb7be2339e1e14f109d33"},t("span",{key:"93fc4c98a838d5a37f5df7ac675e201b9c017cfd",class:"burger"},t("smoothly-icon",{key:"6c11e78a8e1ba2180ec15117a5affa8bcd52f4bd",name:"menu"})))}get element(){return a(this)}static get watchers(){return{open:["openChanged"]}}};Ye.style=Ue;const We=({disabled:e,type:o,link:s},a)=>e&&(s||o=="link")?t("slot",null):o=="link"?t("a",{href:s,onClick:!s||!Ve(s)?undefined:e=>(e.preventDefault(),I(Be(s)))},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):o=="download"?t("a",{href:s,target:"_blank",download:true},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):t("button",{disabled:e},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"}));function Be(e){let t;if(e.startsWith(window.location.origin))t=new URL(e).pathname;else if(e.match(/^\//))t=new URL(e,window.location.origin).pathname;else t=new URL(`${window.location.pathname.replace(/\/+$/,"")}/${e}`,window.location.origin).pathname;return t}function Ve(e){return new URL(e,window.location.origin).origin==window.location.origin}const Ge='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--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(--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;--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(--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 Ke=Ge;const Ze=class{constructor(t){e(this,t);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.link=undefined}render(){return t(We,{key:"510dea725bd1a1d8e014d4d3f7657e14eaf4dda0",disabled:this.disabled,type:this.type,link:this.link},t("slot",{key:"67e8771b5cea6002ec4d5a50da271a16008b6326"}))}};Ze.style=Ke;const qe=".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 Je=qe;const Xe=class{constructor(t){e(this,t);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(e){if(this.clickTimeStamp&&e.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=e.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return t(s,{key:"f6fef52919cece13e8cefc87e6876375057a0f07",warning:this.clickTimeStamp},t("smoothly-button",{key:"15ba285763f7e51d255144bf7b4a74c4e12ecc22",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("smoothly-icon",{key:"ab590fe61a83cede946727532183e7fa3f3420bf",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),t("smoothly-button",{key:"7e2f4b3056cea2eacba62a7e0ebaaa967ab98f4d",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("slot",{key:"516023c4ad2d3080f49284d5f6ae9b299954c977"})))}};Xe.style=Je;const Qe="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 et=Qe;const tt=class{constructor(t){e(this,t)}render(){return[t("h2",{key:"3c8025ac2be655262bcd2b450a7bf231a4fb4895"},"Buttons"),t("section",{key:"7135bb7d07661d9c7feef8b28bd17f0cc2c290c2"},t("h4",{key:"a15d2adbce40601099357e61ceb47627f491e820"},"Confirm button (two clicks)"),t("div",{key:"ae1862a69fa8a949b3eb4338fcd42db23f33e0ea"},t("smoothly-button-confirm",{key:"c2408dce7880cb2c97feb9abf74cfe23293d9e8a",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),t("smoothly-button-confirm",{key:"b933c3bfcc21591ea587c022be60b5dfa83d29dd",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},t("smoothly-icon",{key:"bb53ab8ab65c37b896d4d8889187fbaf1453b6aa",name:"checkmark-outline",size:"tiny"})),t("smoothly-button-confirm",{key:"29e5f6c63362ec0f2d67212ec119fb1527cf0715",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},t("smoothly-icon",{key:"5503b6db201faf2fc6756efb8eb7eed61f4e99b3",name:"trash-outline",size:"tiny",fill:"outline"}))),t("h4",{key:"ff82842ee1489a963ff6e609496210f1551c96d2"},"Toggle button"),t("smoothly-toggle",{key:"6222a1678c626c55914eac351c85d72a7f34baf9"},t("smoothly-icon",{key:"8bac18e6a2e093b6b3351e213f80f8659cf2bfad",name:"card",fill:"solid",slot:"icon-slot"})),t("smoothly-toggle",{key:"1f6fb978ecb57512a2edb0e827f3f755b9fed7b3"},t("smoothly-icon",{key:"92e78f07a80098c87db14a753ee185bbb4787965",name:"briefcase",slot:"icon-slot"})),t("smoothly-toggle",{key:"9dd282964fd8c821f9eaa4835a94ee46792160fd"},t("smoothly-icon",{key:"27fde3eb695917bb2aa80166deb3f79763672615",name:"airplane",slot:"icon-slot"})),t("smoothly-toggle-switch-demo",{key:"8142bb42ee3d41d537aaf9881499d8c14ae636ab"}),t("h4",{key:"8bf7ce023276823e238dc778ea7de087227b3c55"},"Links with icons"),t("smoothly-button",{key:"5dc5c52e56653c38b24653f8a09492b657a52812",type:"link"},t("smoothly-icon",{key:"bd37a7612e50a5b46a463cb33fcb3d3db4984fdc",name:"checkmark-circle",slot:"start"}),"type link"),t("smoothly-button",{key:"8c88fe90275d89b4d9266292ee5dfe2c89189453",type:"button",color:"warning",fill:"default"},t("smoothly-icon",{key:"7d0f38f8def892c6a70f94cfae60c97379f97a19",name:"call",slot:"start"}),t("a",{key:"c9a545939c8c69a936d7234f667a38304475ce29",href:"https://google.com"},"link")),t("smoothly-button",{key:"19ad20237f00b0fc3be118342479c542172aac85",link:"https://google.com",type:"link"},t("smoothly-icon",{key:"9417f3deb9468f0ec67b5e6f2e691d75237dfd8b",name:"arrow-forward",slot:"end"}),"link + type link"),t("h4",{key:"431e11211e7388a31e74c05c872f1225da3a8f2d"},"Size and Color test"),t("smoothly-button",{key:"e06b07125a4809a2fbfba8b663e7df05f2cafe2a",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),t("smoothly-button",{key:"4e6e0cd9552783605c85c0179ceb9867073d52f2",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),t("smoothly-button",{key:"86e387b350d60cf3bf568aab93a4f87351556b03",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),t("smoothly-button",{key:"81ae2d506757e6d6aefa22389b27cf52115b0cd6",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),t("smoothly-button",{key:"8e54050a99f8373f550dc225ec562415d6a28341",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),t("smoothly-button",{key:"73fff1e9835ea73331f883f877b330ffc92366e2",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),t("smoothly-button",{key:"38c004df8478e18cfaadeafb000d566e618cd4ce",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),t("smoothly-button",{key:"423bc99ba52358b5fab7d023926c13d3d4147f79",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),t("smoothly-button",{key:"66f6cfaa814db14e2eb4dc58ff61d3f3e5df6407",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),t("h4",{key:"e8ab771bcfd1cb19d506768c70bd1489c3a63612"},"Expand examples"),t("smoothly-button",{key:"c33ba658c35a6d638885657a10b8355c1a39cad8",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),t("smoothly-button",{key:"893978e950151a1f3bd34fa4e4d67be88a703f94",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),t("h4",{key:"7ca51c36f0f7795529b768ff164fe897a545a503"},"Fill examples"),t("div",{key:"352da5da95852f703b34102dacd5056e96d49d2f"},t("smoothly-button",{key:"11060ec131da8694e760f9659ed298ff064bd02c",shape:"rounded",color:"primary",fill:"solid"},t("smoothly-icon",{key:"c1720e101a57dd3d3c6142ff00d7b6d3050b93ce",name:"checkmark-circle",slot:"start"}),"Fill Solid"),t("smoothly-button",{key:"a04d9f0204302610c9394e95bf954764fe8eaf8c",shape:"rounded",color:"secondary",fill:"outline"},t("smoothly-icon",{key:"d6dc32cc36c6f801abf35271167d2bca787faea3",name:"checkmark-circle",slot:"start"}),"Fill Outline"),t("smoothly-button",{key:"ffd1db87eaeb7e12f983146449be5d79e7de2b53",shape:"rounded",color:"tertiary",fill:"clear"},t("smoothly-icon",{key:"15086ae92c84b20973d964c699b219cca193fd6d",name:"checkmark-circle",slot:"start"}),"Fill Clear"),t("smoothly-button",{key:"461519344c8a5024d6b0dce79171375645abbdf8",size:"icon",shape:"rounded",color:"success",fill:"solid"},t("smoothly-icon",{key:"1068fe90e108438f28c66f8f4c6b2a6f203120df",name:"basketball"}))),t("h4",{key:"8e09f401d9ec18825e5b248cac01bddbf10ad95b"},'Buttons with Icon in "start"'),t("div",{key:"d17091668a8b535291fe14b7fb5fa64bcee3d77d"},t("smoothly-button",{key:"7fbcf5e63dfa6370f6ea8db63fe23eaafdf92d56",shape:"rounded",fill:"solid",color:"warning"},t("smoothly-icon",{key:"43da748cdca6199f9b0d677ec26a6ed14349522e",name:"checkmark-circle",slot:"start"}),"Check"),t("smoothly-button",{key:"dc64fcac7f381493149bd161dc78fa0b75d1e01f",shape:"rounded",fill:"solid",color:"secondary"},t("smoothly-icon",{key:"b64e9f855ee14612b83a4d6d320247056825e85a",name:"basketball",slot:"start"}),"Check"),t("smoothly-button",{key:"f714f8a9a143d68077a10e9bcc3008aebe34b931",shape:"rounded",fill:"solid",color:"success"},t("smoothly-icon",{key:"b39275e626a28eceb0d6c34b1781f175cf012b2d",name:"call",slot:"start"}),"Check"),t("smoothly-button",{key:"3c744c78969e58dbff1efadd767c59353a261a3b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"64aa5126a00bd7e0c157defe25e0c0a636f6a524",name:"call"})),t("smoothly-button",{key:"a5fff4c066a80e3e1b592b76facee2bb4bba2083",size:"flexible",fill:"solid",color:"success"},t("smoothly-icon",{key:"a3d95e518c35e3f4e508d303dad7d1b40c55319a",name:"airplane"}))),t("h4",{key:"308a6bfd84cfc8466d3df9900b39577edd0d58de"},'Buttons with Icon in "end"'),t("smoothly-button",{key:"d2a76de598220adf8083e951bc2694d81643c833",fill:"solid",color:"light"},"Go Forward",t("smoothly-icon",{key:"878b5626becbb010ac6b8556251fe51b0360cf22",name:"arrow-forward",slot:"end"})),t("h4",{key:"94f535345d7687b50d2d07cc3d61b24ca18ed4a0"},"Test for icon button"),t("div",{key:"9a3da368b7c537da7f95d60d75509940d462329e"},t("smoothly-button",{key:"065d688ae55163481d40f96e12c8e917360fc05b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"758c53a3eae336fbf8d3d7270236e4105ed532d4",name:"call"})),t("smoothly-button",{key:"32b14031344f9c74984ae1d8da0715b0b2b76be0",size:"icon",shape:"rounded",color:"warning",fill:"solid"},t("smoothly-icon",{key:"8e1988d9199e234f1b206d81fc69457c0461edf0",name:"search-outline"})),t("smoothly-button",{key:"16d4c1196b3b9f39777649f5047e5024624367a3",size:"icon",shape:"rounded",color:"secondary"},t("smoothly-icon",{key:"f217f1893799b98be1aee4d07f91766e791d5a6b",name:"checkmark-circle"}))),t("h4",{key:"07490863a687effc3cce1e96b730cb73441470e5"},"Link examples"),t("div",{key:"8d551baa54233f19b6829cbe6bd83498c2a8cc33"},t("smoothly-button",{key:"6eee7e1bc81598a59034ea1677795e0552b62327",type:"link"},"type link"),t("smoothly-button",{key:"c9121104f5847dc29da2bf88f09d8c7bab43ffbc",type:"button",fill:"clear"},t("a",{key:"b8cc19e6bd19dd64138d909e3a7e2a966c1ba8dd",href:"https://google.com"},"link")),t("smoothly-button",{key:"d47a8cb6b0f0102411f7badf1829d8d1c7ffd66c",link:"https://google.com",type:"link"},"link + type link")),t("h4",{key:"5468594fd4858fe83b593dac3e1da0a0982182bf"},"Disabled buttons"),t("div",{key:"cd4000d7596bc837b5735e72ac50a047f985244b"},t("smoothly-button",{key:"cd0fae2e3e985640c3cc8a89e34ef7c5c84c55d6",disabled:true,fill:"solid",color:"secondary"},"Disabled"),t("smoothly-button",{key:"72ed13dfb8bc8262daab63047dfb455f1fb602f7",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),t("smoothly-back-to-top",{key:"2ec8649e3e567d6875b2c6a07125bdebd844786a"})]}};tt.style=et;function ot(e){const t=new Date(e);t.setDate(1);let o=-((t.getDay()+6)%7)+1;const s=[];for(let t=0;t<6;t++){const a=[];for(let t=0;t<7;t++){const t=new Date(e);t.setUTCDate(o++);a.push(S.create(t))}if(t<5||S.firstOfMonth(a[0])==S.firstOfMonth(e))s.push(a)}return s}function st(){const e=new globalThis.Date;e.setDate(e.getDate()-e.getDay()+1);const t=[];for(let o=0;o<7;o++){t.push(e.toLocaleString(undefined,{weekday:"short"}));e.setDate(e.getDate()+1)}return t}function at(e){const t=new globalThis.Date(e);const o=[];for(let s=0;s<12;s++){t.setMonth(s,28);const a=S.create(t);o.push({date:a,name:t.toLocaleString(undefined,{month:"long"}),selected:a.substr(0,7)==e.substr(0,7)})}return o}function it(e,t,o){const s=new globalThis.Date(e);const a=t?S.getYear(t):(new Date).getFullYear()-50;const i=o?S.getYear(o):(new Date).getFullYear()+50;const n=[];for(let t=a;t<=i;t++){s.setFullYear(t);const o=S.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==e})}return n}const nt='.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-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-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 lt=nt;const rt=class{constructor(t){e(this,t);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(e){this.smoothlyStartChange.emit(e)}onEnd(e){this.smoothlyEndChange.emit(e)}onClick(e){this.smoothlyValueChange.emit(this.value=e);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=e;else{if(this.start&&e>this.start)this.end=e;else this.start=e}}!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(e){if(this.doubleInput&&this.clickCounter%2==1){if(e<this.frozenDate){this.start=e;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=e}}}withinLimit(e){return(!this.min||e>=this.min)&&(!this.max||e<=this.max)}render(){var e,o,s;return t(i,{key:"01266a8f05c6f56bef69d4a461a92da65eb74175"},t("smoothly-input-month",{key:"3a848417dc83bc7ad2a4b4014abb3d0e18b306ff",name:"month",value:(e=this.month)!==null&&e!==void 0?e:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:e=>{e.stopPropagation();"month"in e.detail&&typeof e.detail.month=="string"&&(this.month=e.detail.month)}},t("div",{key:"2a07d690ad6f4b3ac5e659d9529e0809ad166ae4",slot:"year-label"},t("slot",{key:"969b558389bae096e008ab054f984054f384d36f",name:"year-label"})),t("div",{key:"d83fb0f82ab0ee7dd97e2b9dde36cdde2fde2091",slot:"month-label"},t("slot",{key:"aba0c170d3f5eadd461a0cdb12f8825edf429e74",name:"month-label"}))),t("table",{key:"437adf99b1dffa736954ab87eaa7b8639d139c91"},t("thead",{key:"d2ac8275277c4dc17946a1e8da12a170165889c3"},t("tr",{key:"a58f3d8ac02c850bb25973d8eaf3891cb8a79788"},st().map((e=>t("th",null,e))))),ot((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:S.now()).map((e=>t("tr",null,e.map((e=>{var o,s,a,i;return t("td",{tabindex:1,onMouseOver:()=>this.withinLimit(e)?this.onHover(e):undefined,onClick:this.withinLimit(e)?()=>this.onClick(e):undefined,class:{selected:e==this.value||this.doubleInput&&(e==this.start||e==this.end),today:e==S.now(),currentMonth:S.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:S.now())==S.firstOfMonth(e),dateRange:this.doubleInput&&e>((a=this.start)!==null&&a!==void 0?a:"")&&e<((i=this.end)!==null&&i!==void 0?i:""),disable:!this.withinLimit(e)}},e.substring(8,10))})))))))}get element(){return a(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};rt.style=lt;const ct=".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 dt=ct;const ht=class{constructor(t){e(this,t);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(e){if(r.is(e.detail)&&e.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return t("section",{key:"895d01d3dc41982402c51de51028bd6f775fc83a"},t("div",{key:"a10dddff73f3afde845bed759770b71c9fe87d17",class:"header"},this.closable&&t("smoothly-trigger",{key:"42957dd2cfa11eb08041897a84073d93e87d7f11",fill:"clear",name:"close"},t("smoothly-icon",{key:"245fed623b099c0c7d8aff0c2a098c5730329a3d",name:"close-circle",fill:"solid",color:this.color})),this.header?t("h1",null,this.header):t("slot",{name:"header"})),t("div",{key:"0ad2e35ade6a11497a69b5e6c63be9f05de79c78",class:"content"},t("slot",{key:"0af86e9eda2be05845a2653a1e97c60848911e03"})))}render(){return t(s,this.hostData(),this.__stencil_render())}};ht.style=dt;const bt=class{constructor(t){e(this,t)}render(){return t("smoothly-dialog",{key:"d7b88047c49add95c1816b1552bc9c30276ba08b",color:"default",closable:true},t("smoothly-frame",{key:"56aedefead747913a72d795c0149342ddc45c5bb",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}}))}};function mt(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}function yt(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function ut(e,t,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?yt(e,t,s):mt(e,t,s)}var ft;(function(e){function t(e){return e.direction=="backward"?e.start:e.end}e.getCursor=t;function o(e){return e.direction!="backward"?e.start:e.end}e.getStalker=o})(ft||(ft={}));var pt;(function(e){function t(e){return{value:e.value,selection:{start:e.selection.start,end:e.selection.end,direction:e.selection.direction},remainder:e.remainder}}e.copy=t})(pt||(pt={}));class gt{constructor(e){this.value=e.value;this.selection={start:e.selection?.start,end:e.selection?.end,direction:e.selection?.direction}}get(e,t=1){return this.value.substring(e,e+t)}is(e,...t){const o=this.get(e);return t.some((e=>o==e))}isDigit(e){const t=this.get(e);return t>="0"&&t<="9"}match(e){return this.value.match(e)}replace(e,t,o){let s;if(typeof e=="string"&&typeof t=="string"){let o;s=this;while((o=s.value.indexOf(e))>-1)s=s.replace(o,o+e.length,t)}else if(typeof e=="number"&&typeof t=="number"){const a={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";a.value=this.value.slice(0,e)+o+this.value.slice(t,this.value.length);if(this.selection.start>=t)a.selection.start=this.selection.start+o.length-t+e;else if(this.selection.start>e&&this.selection.start<t)a.selection.start=Math.min(this.selection.start,e+o.length);if(this.selection.end>=t)a.selection.end=this.selection.end+o.length-t+e;else if(this.selection.end>e&&this.selection.end<t)a.selection.end=Math.min(this.selection.end,e+o.length);s=new gt(a)}return s||this}insert(e,t){return this.replace(e,e,t)}append(e){return this.insert(this.value.length,e)}prepend(e){return this.insert(0,e)}suffix(e){return new gt({value:this.value+e,selection:this.selection})}delete(e,t){let o;if(!this.value)o=this;else if(typeof e=="string"){let t;o=this;while(e&&(t=o.value.indexOf(e))>-1)o=o.delete(t,t+e.length)}else o=this.replace(e,t||e+1,"");return o}truncate(e){return this.value.length>=e?this.delete(e,this.value.length):this}pad(e,t,o){let s=this;while(e>s.value.length+t.length)s=s.insert(o,t);if(e>s.value.length)s=s.insert(o,t.substring(0,e-s.value.length));return s}padEnd(e,t){return this.pad(e,t,this.value.length)}padStart(e,t){return this.pad(e,t,0)}toLower(){return this.map((e=>e.toLowerCase()))}toUpper(){return this.map((e=>e.toUpperCase()))}map(e){let t=this;let o=0;for(let s=0;s<this.value.length;s++){const a=e(this.get(s),s);t=t.replace(o,o+1,a);o+=a.length}return t}static copy(e){return new gt({...e})}static create(){return new gt({value:"",selection:{start:0,end:0}})}static modify(e){return new gt(typeof e=="string"?{value:e,selection:{start:e.length,end:e.length}}:e)}}var kt;(function(e){function t(e,t,o){let c=pt.copy(e.unformat(gt.copy(t)));if(t.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(t.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)&&t?.type!="password")c=s(e,t,o);else if(["Delete","Backspace"].includes(o.key)&&t?.type!="password")c=a(e,t,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))i(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);e.allowed(o.key,c)&&r(c,o.key)}}return e.format(gt.copy(c))}e.apply=t;function o(e,t,o){const s=pt.copy(e.unformat(gt.copy(t)));r(s,o);return e.format(gt.copy(s))}e.paste=o;function s(e,t,o){let s=ft.getCursor(t.selection);let a=ft.getStalker(t.selection);s=ut(t.value,s,o.key=="ArrowLeft"?"backward":"forward");a=o.shiftKey?a:s;return pt.copy(e.unformat(gt.copy({...t,selection:{start:Math.min(a,s),end:Math.max(a,s),direction:a<s?"forward":a>s?"backward":"none"}})))}function a(e,t,o){const s=ft.getCursor(t.selection);const a=ut(t.value,s,o.key=="Backspace"?"backward":"forward");const i=pt.copy(e.unformat(gt.copy({...t,selection:{start:Math.min(s,a),end:Math.max(s,a),direction:"none"}})));i.value=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.selection.end=i.selection.start;return i}function i(e,t){let o=ft.getCursor(e.selection);let s=ft.getStalker(e.selection);o=t.key=="Home"?0:t.key=="End"?e.value.length:e.selection.start==e.selection.end||t.shiftKey?Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length):t.key=="ArrowLeft"?e.selection.start:e.selection.end;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)}function n(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}function l(e){r(e,"")}function r(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}})(kt||(kt={}));const vt={};function xt(e,t){vt[e]=t}function wt(e,...t){const o=vt[e];return o&&o(t)}function St(e,t,...o){const s=wt(t,...o);return s?s.format(gt.modify(s.toString(typeof e=="string"?Ct(e,t,o):e))).value:""}function Ct(e,t,...o){const s=wt(t,o);return s?s.fromString(s.unformat(gt.modify(e)).value):undefined}class zt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"text",inputmode:"numeric",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(e){return e}allowed(e,t){return t.value.length<3&&e>="0"&&e<="9"}}xt("card-csc",(()=>new zt));class jt{constructor(){this.partialFormat=this.format}toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString().padStart(2,"0")+e[1].toString().padStart(2,"0"):""}fromString(e){return typeof e=="string"&&e.length==4?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(2))]:undefined}format(e){let t=e;if(e.value.length>0&&!e.is(0,"0","1"))t=t.prepend("0");if(t.value.length>1)t=t.insert(2," / ");return{...t,type:"text",inputmode:"numeric",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(e){return e.delete(" / ")}allowed(e,t){return t.value.length<4&&e>="0"&&e<="9"}}xt("card-expires",(()=>new jt));class _t{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){const t=Tt(e.value);const o=e.map(((e,o)=>(o+1<t.length[0]&&t.spaceIndexes.includes(o)?" ":"")+e));return{...o,type:"text",inputmode:"numeric",autocomplete:"cc-number",length:t.length.slice(1),pattern:t.verification,classes:["issuer-"+t.icon]}}unformat(e){return e.delete(" ")}allowed(e,t){const o=Tt(t.value);return e>="0"&&e<="9"&&t.value.length<o.length[0]}}xt("card-number",(()=>new _t));function Tt(e){let t={...It,spaceIndexes:e.length==14?[4,10]:It.spaceIndexes};for(const o in Ot)if(Object.prototype.hasOwnProperty.call(Ot,o)&&Ot[o].identification.test(e)){t={...It,name:o,...Ot[o]};break}return t}const It={name:"unknown",verification:/^\d{19}$/,spaceIndexes:[4,8,12],identification:/^\d/,length:[16,16,19],icon:"generic"};const Ot={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 Lt;(function(e){function t(e){let t;switch(e){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":t="dd/mm/YYYY";break;case"en-US":t="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":t="dd.mm.YYYY";break;case"hi-IN":case"en-IN":t="dd-mm-YYYY";break;default:t="YYYY-mm-dd";break}return t}e.fromLocale=t;function o(e){let t;switch(e){case"dd/mm/YYYY":t="en-GB";break;case"mm/dd/YYYY":t="en-US";break;case"dd.mm.YYYY":t="de-DE";break;default:t="sv-SE";break}return t}e.toLocale=o;function s(e){return typeof e=="string"&&(e=="YYYY-mm-dd"||e=="dd/mm/YYYY"||e=="dd.mm.YYYY"||e=="mm/dd/YYYY")}e.is=s})(Lt||(Lt={}));class At{constructor(e){this.separator=e}partialFormat(e){const t=this.format(e);return{...t,remainder:this.formatString.slice(t.value.length)}}unformat(e){return e.delete(this.separator)}validMonth(e,t,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(t),0).getDate()>=Number.parseInt(e)}}const Et={};function Dt(e,t){Et[e]=t}xt("date",(e=>{const t=e&&e.length>0?e[0]:undefined;const o=Lt.is(t)?t:Lt.fromLocale(t);const s=Et[o]??Et["YYYY-mm-dd"];return s()}));class Mt extends At{constructor(e){super(e);this.formatString=`DD${this.separator}MM${this.separator}YYYY`}toString(e){return S.is(e)&&e.length==10?[e.substring(8,10),e.substring(5,7),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e?.length==8?`${e.substring(4,8)}-${e.substring(2,4)}-${e.substring(0,2)}`:undefined;return S.is(t)?t:undefined}format(e){let t=e.delete(this.separator);if(t.get(0,1)>"3")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>"1")t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,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(e,t){return t.selection.start==1&&t.value[0]=="3"?e>="0"&&e<="1":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==2?e>="0"&&e<="9"&&(e=="0"||e=="1"||this.validMonth(t.value.substring(0,2),e)):t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value[2]+e):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value.substring(2,4),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9"}}Dt("dd.mm.YYYY",(()=>new Mt(".")));Dt("dd/mm/YYYY",(()=>new Mt("/")));Dt("dd-mm-YYYY",(()=>new Mt("-")));class $t extends At{constructor(e){super(e);this.formatString=`MM${this.separator}DD${this.separator}YYYY`}toString(e){return S.is(e)&&e.length==10?[e.substring(5,7),e.substring(8,10),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e.length==8?`${e.substring(4,8)}-${e.substring(0,2)}-${e.substring(2,4)}`:undefined;return S.is(t)?t:undefined}format(e){let t=e.delete(this.separator);if(t.get(0,1)>"1")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>(t.get(0,2)=="02"?"2":"3"))t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,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(e,t){const o=t.selection.start==1&&t.value[0]=="1"?e>="0"&&e<="2":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value[2]+e,t.value.substring(0,2)):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(2,4),t.value.substring(0,2),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9";return o}}Dt("mm/dd/YYYY",(()=>new $t("/")));class Rt extends At{constructor(e){super(e);this.formatString=`YYYY${this.separator}MM${this.separator}DD`}toString(e){return typeof e!="string"?"":e}fromString(e){const t=e?.length==8?`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`:undefined;return S.is(t)?t:undefined}daysInMonth(e){const t=`${e.substring(0,4)}-${e.substring(4,6)}-01`;return S.is(t)?+S.lastOfMonth(`${e.substring(0,4)}-${e.substring(4,6)}-01`).substring(8,10):31}format(e){let t=e.delete(this.separator);if(t.value.length>3){t=t.insert(4,this.separator);if(t.get(5,1)>"1")t=t.insert(5,"0");if(t.value.length>6){t=t.insert(7,this.separator);if(t.get(8,1)>this.daysInMonth(e.value).toString().substring(0,1))t=t.insert(8,"0")}}return{...t,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(e,t){const o=this.daysInMonth(t.value);return t.selection.start==5&&t.value[4]=="0"?e>="1"&&e<="9":t.selection.start==5&&t.value[4]=="1"?e>="0"&&e<="2":t.selection.start==7&&t.value[6]=="0"?e>="1"&&e<="9":t.selection.start==7&&(t.value[6]=="2"&&o<30||t.value[6]=="3")?e>="0"&&e<=o.toString().substring(1):t.selection.start<8&&e>="0"&&e<="9"}}Dt("YYYY-mm-dd",(()=>new Rt("-")));class Pt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){let t=e.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(t?.match(/-\d$/))t=t.substring(0,t.length-1)+"0"+t.substring(t.length-1,t.length);t=!t.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:t+o.substring(t.length,o.length);return C.is(t)?t:undefined}format(e){let t=Nt(e);if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))t=t.insert(10," ");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))t=t.replace(11,12,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))t=t.insert(11,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))t=t.insert(11,"23:5");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))t=t.replace(10,13,"00:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))t=t.insert(12,"3:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))t=t.insert(12,"3:5").append(":");if(t.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]$/))t=t.insert(13,":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))t=t.insert(14,"5");if(t.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$/))t=t.insert(16,":");if(t.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]$/))t=t.insert(17,"5");return{...t,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(e){return e}allowed(e,t){return t.value.length<19&&(e>="0"&&e<="9"||e=="-"||e==":"||e=="."||e==" ")}}xt("date-time",(()=>new Pt));function Nt(e,t){let o=e;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Ht(o.value,t))o=o.replace(0,10,Ht("31"+o.value.substring(2,10),t)?"31"+o.value.substring(2,10):Ht("30"+o.value.substring(2,10),t)?"30"+o.value.substring(2,10):Ht("29"+o.value.substring(2,10),t)?"29"+o.value.substring(2,10):Ht("28"+o.value.substring(2,10),t)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!Ht(o.value,t))o=o.replace(0,10,Ht(o.value.substring(0,3)+"31"+o.value.substring(5,10),t)?o.value.substring(0,3)+"31"+o.value.substring(5,10):Ht(o.value.substring(0,3)+"30"+o.value.substring(5,10),t)?o.value.substring(0,3)+"30"+o.value.substring(5,10):Ht(o.value.substring(0,3)+"29"+o.value.substring(5,10),t)?o.value.substring(0,3)+"29"+o.value.substring(5,10):Ht(o.value.substring(0,3)+"28"+o.value.substring(5,10),t)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(e.value.length==10){if(!Ht(o.value)){o=o.replace(0,10,Ht(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":Ht(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":Ht(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":Ht(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return e}}return o}function Ht(e,t){let o;let s;let a;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(3,5));a=parseInt(e.substring(0,2));return o&&s&&a?a>0&&Ft(o,s)>=a:false;case"mm/dd/YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(0,2));a=parseInt(e.substring(3,5));return o&&s&&a?a>0&&Ft(o,s)>=a:false;default:o=parseInt(e.substring(0,4));s=parseInt(e.substring(5,7));a=parseInt(e.substring(8,10));return o&&s&&a?a>0&&Ft(o,s)>=a:false}}function Ft(e,t){let o;switch(t){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 Ut{constructor(){this.partialFormat=this.format}toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString()+" / "+e[1].toString():typeof e=="number"?e.toString():""}fromString(e){return typeof e=="string"&&e.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(e.length-2))]:typeof e=="string"&&e.match(/\d{1,2}/)?Number.parseInt(e):undefined}format(e){let t=e;if(e.match(/^\d\/$/))t=e.replace(1,2," / ");else if(e.match(/^\d{1,2}\s$/))t=e.replace(e.value.length-1,e.value.length," / ");else if(e.match(/^[\D.]+\/[\D.]+$/))t=e.delete(0,e.value.length);else if(e.match(/^[\D.]+\/[\D.]+\d$/))t=e.delete(0,e.value.length-1);else if(e.match(/^[\D.]+\/[\D.]+\d\d$/))t=e.delete(0,e.value.length-2);else if(e.match(/^[\D.]+\//))t=e.delete(0,e.value.search("/")+1);else if(e.match(/^\d\d\/$/))t=e.replace(2,3," / ");else if(e.match(/^\d\d\s+\/$/))t=e.delete(2,e.value.length);else if(e.match(/^\d\s+\/$/))t=e.delete(1,e.value.length);else if(e.match(/^\d\d\s\s+\/\s*$/))t=e.replace(2,e.value.length," / ");else if(e.match(/^\d\s\s+(\/\s*)?$/))t=e.replace(1,e.value.length," / ");else if(e.match(/^\d\s\/\s\d\d.+$/))t=e.delete(6,e.value.length);else if(e.value.length>1&&e.value.indexOf("/")<1)t=e.insert(2," / ");else if(e.value.length>1&&e.value.split("/").length>2)t=e.delete(e.value.lastIndexOf("/"));else if(e.value.length==1&&!e.isDigit(0))t=e.delete(0);return{...t,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(e){return e}allowed(e,t){return t.value.length<7&&(e>="0"&&e<="9"||e=="/"||e==" ")}}xt("divisor",(()=>new Ut));class Yt{constructor(){this.separator=":";this.patterns={allowed:/^-?\d*(?::{0,1}[0-5]{0,1}[0-9]{0,1}|[.,]{0,1}[0-9]{0,2})$/,extract:/^(-?)(\d*)([:,.]{0,1})([0-9]{0,2})$/,zeros:/^(-?)(0+)(?:[1-9]|0[,.:]?)/};this.partialFormat=this.format}toString(e){let t;if(!z.is(e))t="";else{const o=z.normalize(e);if(!o.minutes&&!o.hours)t="";else if(this.separator!=":")t=(+z.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)t=o.hours.toString(10);else if(!o.hours&&o.minutes)t=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else t=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return t}fromString(e){let t;const o=e.match(this.patterns.extract);if(!o)t=undefined;else{const[e,s,a,i,n]=o;this.separator=i;if(i==":"){const e={hours:parseInt(a),minutes:parseInt(n)};const o=s?-1:1;t=z.normalize({hours:!Number.isFinite(e.hours)?0:e.hours*o,minutes:!Number.isFinite(e.minutes)?0:e.minutes*o})}else{const o=parseFloat(e.replace(",","."));t=z.normalize({hours:!Number.isFinite(o)?0:o})}}return t}format(e){let t=e;const[,o,s,a]=e.match(this.patterns.extract)??[];if(!s&&a)t=t.insert(o?1:0,"0");const i=t.match(this.patterns.zeros);if(i){const[,e,o]=i;if(o){const s=e?1:0;t=t.delete(s,o.length+s)}}return{...t,type:"tel",pattern:this.patterns.allowed}}unformat(e){const[,,,t]=e.match(this.patterns.extract)??[];if(t)this.separator=t;return e}allowed(e,t){const o=t.value.slice(0,t.selection.start)+e+t.value.slice(t.selection.end);return!!o.match(this.patterns.allowed)}}xt("duration",(()=>new Yt));class Wt{constructor(e){this.settings=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}xt("email",(e=>new Wt(e||{})));class Bt{constructor(e,t){this.settings=e;this.mode=t;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}split(e){let t;let o="";return e.map(((e,s)=>{const a=s!==0&&e===e.toUpperCase()&&isNaN(+e)&&o!==" "&&this.isSymbolAllowed(e)&&t?" "+e:(e==="_"||e==="-")&&o!==" "?" ":e===" "&&o===" "||!this.isSymbolAllowed(e)||!t&&!this.isSymbolLetter(e)&&this.mode!=="code"?"":e;!t&&(t=this.isSymbolLetter(e));this.isSymbolAllowed(e)&&(o=e);return a})).toLower().delete("-").delete("_")}isSymbolLetter(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isSymbolAllowed(e){return this.isSymbolLetter(e)||e>="0"&&e<="9"||e===" "}format(e){const t=this.split(e);let o;switch(this.mode){case"code":o=t.delete(" ");break;case"pascal":case"camel":let s;o=t.map(((e,t)=>{const o=t===0&&this.mode==="pascal"||s?e.toUpperCase():e.toLowerCase();s=e==" ";return o})).delete(" ");break;case"snake":case"attribute":o=t.replace(" ",this.mode==="snake"?"_":"-");break;default:o=e}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(e){return e}allowed(e,t){return this.isSymbolLetter(e)||e>="0"&&e<="9"&&(this.mode=="code"||t.value.length>0)||e=="_"&&this.mode=="snake"&&t.value.length>0||e=="-"&&this.mode=="attribute"&&t.value.length>0}}xt("identifier-code",(e=>new Bt(e||{},"code")));xt("identifier-pascal",(e=>new Bt(e||{},"pascal")));xt("identifier-snake",(e=>new Bt(e||{},"snake")));xt("identifier-camel",(e=>new Bt(e||{},"camel")));xt("identifier-attribute",(e=>new Bt(e||{},"attribute")));class Vt{constructor(e){this.country=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){let t=e;const o=(new Date).getFullYear().toString();if(e.value.length>1&&e.get(0,2)!="19"&&e.get(0,2)!="20")t=t.prepend(e.get(0,2)>o.substring(2,4)?"19":"20");if(t.value.length>=8)t=t.insert(8,"-");return{...t.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(e){return e.delete("-")}allowed(e,t){return t.value.length<13&&e>="0"&&e<="9"}}xt("identity-number",(e=>new Vt(e&&e.length>0?e[0]:undefined)));class Gt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="number"?e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseInt(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t:undefined}format(e){return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}unformat(e){return e}allowed(e,t){return e>="0"&&e<="9"}}xt("integer",(()=>new Gt));class Kt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"password",autocomplete:"current-password"}}unformat(e){return e}allowed(e,t){return true}}xt("password",(()=>new Kt));class Zt{constructor(){this.partialFormat=this.format}toString(e){let t="";if(typeof e=="number"){const o=e.toString().split(".")[1]?.length??2;t=(e*100).toFixed(!o||o<=1?0:o-2)}return t}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t/100:undefined}format(e){return{...e.value?e.suffix(" %"):e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(e){return e.delete(" %")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")}}xt("percent",(()=>new Zt));const qt=[{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 Jt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){let t=e;if(t.value.startsWith("+")){for(const e of qt)if(t.value.startsWith(e.countryCode))for(let o of e.areaCodes){o=o.substring(1);if(t.value.startsWith(e.countryCode+o)&&!t.value.includes("-"))t=t.insert(e.countryCode.length,"-").insert(e.countryCode.length+1+o.length,"-")}}else{const e=qt[0];for(const o of e.areaCodes)if(t.value.startsWith(o)&&!t.value.includes("-")){t=t.insert(o.length,"-");t=t.delete(0);t=t.insert(0,"-").insert(0,e.countryCode)}}if(t.value.includes("-")){const e=t.value.indexOf("-",t.value.indexOf("-")+1)+1;const o=t.value.substring(e,t.value.length+1).length;switch(o){case 4:t=t.insert(e+2," ");break;case 5:t=t.insert(e+3," ");break;case 6:t=t.insert(e+2," ");t=t.insert(e+5," ");break;case 7:t=t.insert(e+3," ");t=t.insert(e+6," ");break;case 8:case 9:t=t.insert(e+3," ");t=t.insert(e+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;t=t.insert(s+e," ")}}}}return{...t,type:"tel",autocomplete:"tel"}}unformat(e){return e.delete(" ").delete("-")}allowed(e,t){return e>="0"&&e<="9"||t.selection.start==0&&e=="+"&&!t.value.includes("+")}}xt("phone",(()=>new Jt));class Xt{constructor(e){this.country=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){const t=!e.value.includes(" ")&&e.value.length>=4?e.insert(3," "):e;return{...t.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(e){return e.delete(" ")}allowed(e,t){return t.value.length<=5&&e>="0"&&e<="9"}}xt("postal-code",(e=>new Xt(e&&e.length>0?e[0]:undefined)));class Qt{constructor(e){this.currency=e&&typeof e=="object"?e.currency:e;this.toInteger=e&&typeof e=="object"?e.toInteger:undefined}toString(e){return typeof e=="number"?isNaN(e)?"":e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return t!=undefined&&!isNaN(t)?t:undefined}partialFormat(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):gt.copy(e);const o=this.currency&&j.decimalDigits(this.currency);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"onlyLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);return{...t,remainder:this.format(e).value.slice(t.value.length),type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d*)?$")}}format(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):gt.copy(e);const o=this.currency&&j.decimalDigits(this.currency);if(!this.toInteger)t=this.forceDecimalZero(t,o);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"fillAndLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);t=this.appendCurrency(t);return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}forceDecimalZero(e,t){if(!e.value.includes(".")&&t&&(Math.abs(Number.parseFloat(e.value))>=0||e.value=="0"))e=e.suffix(".0");return e}addLeadingIntegerZero(e){const t=e.value&&e.value.includes(".")?e.value.indexOf("."):undefined;if(t==0)e=e.prepend("0");return e}fillDecimalsIfPresent(e,t,o){const s=e.value.indexOf(".");if(s!=-1){const a=s+1+(t??2)-e.value.length;e=a<0?e.truncate(e.value.length+a):o=="fillAndLimit"?e.suffix("0".repeat(a)):e}return e}truncateIntegerZeros(e){const t=e.match(/^[0\s]{2,}/);if(t)e=e.replace(0,t[0].length,"0");return e}addThousandSeparators(e){let t=e.value.includes(".")?e.value.indexOf("."):e.value.length;const o=t<=0?0:Math.ceil(t/3)-1;for(let s=0;s<o;s++){const a=t-(o-s)*3;e=e.insert(a," ");t++}return e}appendCurrency(e){return this.currency&&(e.value.length>1||e.value.length==1&&e.value.charAt(0)!=".")?e.suffix(" "+this.currency):e}unformat(e){return this.currency?e.delete(" ").delete(""+this.currency):e.delete(" ")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")&&(!this.currency||j.decimalDigits(this.currency)!=0)}}xt("price",(e=>new Qt(e&&e.length>0?e[0]:undefined)));class eo{constructor(e){this.settings=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"text",...this.settings}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}xt("text",(e=>new eo(e||{})));class to{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?"#"+e:""}fromString(e){return e?"#"+e:undefined}format(e){const t=e.delete("#");return{...t.value?t.prepend("#"):t,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(e){return e.delete("#")}allowed(e,t){return(e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F")&&t.value.length<6}}xt("hex-color",(()=>new to));const oo=".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 so=oo;const ao=class{constructor(t){e(this,t);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 e,o;let s;const a=this.type;switch(a){case"json":s=t("smoothly-display-json",{key:"72260098deaaf8e86824a3c3afb18a8f84e0c017",value:this.value,collapseDepth:this.collapseDepth});break;default:s=St(this.value,a);break;case"email":s=t("a",{key:"2f6c92ae6a5fd6669a55ebf574d4153a8dfba56b",href:"mailto:"+this.value},St(this.value,a));break;case"phone":s=t("a",{key:"2d85accc66c0d4ddfb0054b1a479bad1d03aef24",href:"tel:"+this.value},St(this.value,a,this.country));break;case"postal-code":s=St(this.value,a,this.country);break;case"price":s=St(this.value,a,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(e=wt(this.type,D()))===null||e===void 0?void 0:e.toString(this.value);break;case"duration":s=St(this.value,a)||"0";break;case"date-time":s=this.format?C.localize(this.value,this.format,D()):(o=wt(this.type,D()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[t("div",null,this.label),s]:s}};ao.style=so;const io=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[t("main",{key:"e7e31ea92b4ed1b752e1b36b1834d0f625f67cfd"},t("fieldset",{key:"581f468dda8f2bd82de2c000e4447d5321e9eed6"},t("h2",{key:"87966e476a302a692668bed7e3b3d19115882eb8"},"Smoothly display"),t("dl",{key:"cbcb2f6235ce01e0afeef271c80834c4ae5f3224"},t("dt",{key:"25181e180acc711c3cb77f33b80b73a0610c4486"},"Duration"),t("dd",{key:"83448124de87c9c3feb35c77275ff3fcded5aefa"},t("div",{key:"94230b9ab2b633e70e616cef8637c7ec14e42faf"},t("div",{key:"0eba921df28ca3c86529070be5635a6c65c7d40c"},t("smoothly-display",{key:"d68d7ffda5f4cb3f3be5749050ca40e1b8392d89",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),t("div",{key:"1493a1fcdb128fdcf2ed3cd8531aeb78fb1c1a98"},t("smoothly-display",{key:"5f66a9b3fbbddf42ddedad9d1662337d3f72f7df",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),t("div",{key:"3378de69efaba3bbb6df4552485af2e994070367"},t("smoothly-display",{key:"cdecb32bb23d5c87e913e58ab107fd235c96910e",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),t("div",{key:"db05908dbbf3bab906a3f6df6f88e416fa3422bf"},t("smoothly-display",{key:"a8f32adb32961b3e24436b5c5e8c8a21b65b9901",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),t("div",{key:"a20f84ade97c32a35c6490f8b15f757ec07ed3cc"},t("smoothly-display",{key:"8a3140e45105d3f276fe9fea7ef441ae0d8bd059",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),t("div",{key:"ec59e01cf6a1a57ff8152e1bb2f0ed523b1cec8f"},t("smoothly-display",{key:"dab86834e425d6086d247fcea8bdf2ccf64b96b1",style:{display:"inline"},type:"duration",value:{}})," h"),t("div",{key:"b040a252eb914cfed6e0136c0dfec52f6a92aea3"},t("smoothly-display",{key:"0ddbdae519c07a8d2907bff91b37aec1e08d1002",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),t("dt",{key:"092f01d470ea3a94defbd1a9bf89b03dcba5dd29"},"text"),t("dd",{key:"3819b8f1e424767e1d7e90b8de69990ea2914c69"},t("smoothly-display",{key:"4c902c18d635e3b0f2b3043c2ec5b500b9d07e66",type:"text",value:"text"})),t("dt",{key:"bd037b5ae1014379296aa0d1571b3d65a1e5ed2b"},"postal code"),t("dd",{key:"b35456ca38465589d719261c9daea0ca7806dc81"},t("smoothly-display",{key:"231f37d8cae724a1665ba3af41c483bc88d25bda",type:"postal-code",value:"752 31"})),t("dt",{key:"fde2305262f5ba77f3af9e0fae87c94d2d5dbf20"},"password"),t("dd",{key:"8c2ba8207b52bf849ffa5ac2d36af0a5738d5fd4"},t("smoothly-display",{key:"ee45bffb640e0ccf31d9b634633b0c2cb0285351",type:"password",value:"password"})),t("dt",{key:"d6c8e5c0dba5484cf8dfa114c57dfc36ee424ccb"},"email"),t("dd",{key:"d9b38d1f881646490db89ea50479ee5a82f3985d"},t("smoothly-display",{key:"0f92895923de8cd7c46870fc00374331c588e9a7",type:"email",value:"test@example.com"})),t("dt",{key:"1d044f4869f6aaa9fae4ea4b027bd3028d0026dc"},"price"),t("dd",{key:"a73a15154b8f1b835d8f7d26a7db6ac6fa57e5d7"},t("smoothly-display",{key:"f0f8ad0e46a2f84b6a6171d0ca3008c85da25ad8",type:"price",value:"13.37",currency:"SEK"})),t("dt",{key:"285d7294b63ca9bbf90ff0b7b9b07cd4427770e7"},"price without decimals"),t("dd",{key:"b8af56cc967f7c9e135bbb4a1b42b6e798856004"},t("smoothly-display",{key:"95ba14d11f83ed74037435a8eb59e0aee897ea17",type:"price",value:200,currency:"SEK",toInteger:true})),t("dt",{key:"a2460b0e68a5b7a4debdd765ea767b093a7b4bed"},"price with decimals if they are set, otherwise no decimal"),t("dd",{key:"c8e71e703498e330caffaa2422d400e1d39c3d3f"},t("smoothly-display",{key:"24e22a7d5d01b7082dfd2f9d6f1e1d33fb3aab92",type:"price",value:200.2,currency:"SEK",toInteger:true})),t("dt",{key:"e13f9079f4f938619ecc495456a00bb55839c285"},"price with decimals"),t("dd",{key:"72f7bcc6cc483e00caffcf5e480d298dc7433bc0"},t("smoothly-display",{key:"93efabea58c28b1bc6571acd1d76e474fada9f3e",type:"price",value:200.2,currency:"SEK"})),t("dt",{key:"f47315d9d331b0e44fa1083f70d66b2c52d2c5de"},"percent"),t("dd",{key:"caf1fad0df1ec581e4d10eeb931dca7debe193c7"},t("smoothly-display",{key:"1ac7b0ba18d696e80d932321af360df4dcb40eb8",type:"percent",value:"42"})),t("dt",{key:"57d24776382b532da3be0f5d735f109e7ebc38a6"},"phone"),t("dd",{key:"5d5f4fa27daf47c9c194b13bcaf3b643af3767bc"},t("smoothly-display",{key:"677a57d0535ffc5ba365b96a39be42ee79d10978",type:"phone",value:"0101881108"})),t("dt",{key:"6a18b773e36a3e9a9f6932288d7fc3e92d1cdab8"},"card number"),t("dd",{key:"2c577b2f57bce9f0c37ba2d191ff1093b8d06580"},t("smoothly-display",{key:"ad8e47881cdca3282cc0539ee829304478a145ac",type:"card-number",value:"4111111111111111"})),t("dt",{key:"e7d737ad090cee4f39ab91a600b4d49824d0fa06"},"card expires"),t("dd",{key:"2d532483f5a6347fe1bc381d91e0f21eee3963b8"},t("smoothly-display",{key:"c17999c3906e8ed19ae504796cdb9d8b8a03e04d",type:"card-expires",value:"7/22"})),t("dt",{key:"7db78e190ad8e66ba995ebe940759e0c4d6352e9"},"card csc"),t("dd",{key:"b9fbda14abbf23a1d276bfc98908ce8fde75b4c3"},t("smoothly-display",{key:"d010f0989dcd0511074d705ce4a159f7b5e710c0",type:"card-csc",value:"987"})),t("dt",{key:"b70f323a7ca5701cc8c5cae0b4cb8866001c3c93"},"date"),t("dd",{key:"3d03ff32f1082b228f3496d7350d1723b442cea9"},t("smoothly-display",{key:"5260595387fa3c2b1cf057a4d2287be3d590ba3a",type:"date",value:"2022-07-07"})),t("dt",{key:"ddd622b6a27b9df4f8aff1bc81859acf2607a446"},"date time"),t("dd",{key:"3580d27a731265f31a461b711e259d51f5f04c78"},t("smoothly-display",{key:"87269902b733eeee0d3176940ac585a05d7960be",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),t("dd",{key:"a622179096f208403250b108ae5ed6921fb1ede5"},t("smoothly-display",{key:"b069bc49fb68420f78f98a8afebe53ba594276d8",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"})),t("dd",{key:"35ebf02ee974dbfad74e11807d466a44d7dab651"},t("smoothly-display",{key:"e583e366e9cb87e8bf5bf6746ac1ed1982c19260",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"97a46b2e8748325431b1d3afd0476e3680781073"},t("smoothly-display",{key:"23bc78ca6a281cfb8b7d6604b7cfc8167c993f9b",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"aa5b12abeade5d25410bbadd79c24b2b8513c7b6"},t("smoothly-display",{key:"02d95bd64d06434862a5b173444664772085e60b",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"4768e4cc6d7331de78be1df17d2cb18730c8702f"},t("smoothly-display",{key:"e8ca4320e1f7f508b1117f55e2dab8c3f4cbf86c",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"04ecdbb2bd48b5cab09b237e526fe756beec527a"},t("smoothly-display",{key:"d115a6ddfba6bc4b7d5043a35ac135867d4197a4",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"})),t("dt",{key:"58cbda2d543ea346b2978251302dab8658bac60e"},"Display JSON"),t("dd",{key:"de862323b443aef9c4cb0d010aeae3a500e21811"},t("smoothly-display-demo-json",{key:"f37649a3f492ff36e0e47a89cfca41be88128e14"})))),t("h2",{key:"cd3c21b3baae669f14febc93e698d30cab5897b3"},"With labels"),t("dd",{key:"ae206d6ab12ff7229346a91b4b25b5b6d0841e8a"},t("smoothly-display",{key:"005821b1b1fc672b878e62cb2df51f77744ae629",label:"Today",type:"date",value:S.now()}),t("smoothly-display",{key:"5cd373c8e511ed140fc60f6cafbb435abcbf7da4",label:"Total amount",type:"price",currency:"SEK",value:6789}),t("smoothly-display",{key:"dfa7d3e1c59edd780b0097d8b2fa1b69a100a076",label:"Total amount",type:"price",currency:"GBP",value:678.9}),t("smoothly-display",{key:"59a2dabebe70950c5eb040fb330c45aa65da342e",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),t("fieldset",{key:"2170a3fa7a27b29fb7492b184358dd821c271050"},t("h2",{key:"1f8b40d2ec4209b128b26120825bce734e69b564"},"Test of different kinds of notifier"),t("button",{key:"70b9b22b9f6db72b67ec932d8b6eb55e57cc7911",onClick:()=>this.noticeWarning(O.warn("This is a test warning notice."))},"warning"),t("button",{key:"a844297ef5b7e62e84ade4f9bfe80fe94c65b048",onClick:()=>this.noticeWarning(O.succeeded("This is a test success notice."))},"success"),t("button",{key:"d11839578ed84c2cbe7fc1569e9e744a543f0174",onClick:()=>this.noticeWarning(O.failed("This is a test danger notice."))},"danger"),t("button",{key:"e7fa70e00831f203985c3a10bd9cdd5be2f994e9",onClick:()=>this.noticeWarning(O.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),t("button",{key:"ee5d0372d0c46394badfbd93e6f6649df7221ecb",onClick:()=>this.noticeWarning(O.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),t("fieldset",{key:"e5a63d08c9fa051ba0c8365712e1b6ba291864f2"},t("h2",{key:"5e3fc7cf6a2b995269369e7b235db0b271c49e87"},"Smoothly spinner"),t("div",{key:"a5ab353d1f2481be7e825c51c060793ff5286e2d",style:{width:"fit-content"}},"Large",t("smoothly-spinner",{key:"bd5d65f076d7fc61999cf3abf560b9071f60cb15",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),t("div",{key:"c69aedc3a3b8ad9b06152ce43f4382cf2ddef623",style:{width:"fit-content"}},"Medium",t("smoothly-spinner",{key:"6d1049cbf6ff23acb61f5d54cb9de3f4aeff029d",size:"medium"})),t("div",{key:"0846e58331aa79405c9191ddb2b7faa750ef33ae",style:{width:"fit-content"}},"Small",t("smoothly-spinner",{key:"08bba479fcd8be6fde340377c0a659a7d3b1a121",size:"small"})),t("div",{key:"7cef575d8cb061c70749cb0c3cde03635f2028e0"},"Icon sized spinner on button",c.types.map((e=>t("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&t("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&t("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),t("h3",{key:"07a35ccb69f841cb40122333bdfe1abc1efe18c4"},"Spinner with overlay"),t("div",{key:"5fbcb320946d8fec08458149ebdb47ccc9aa630c",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",t("smoothly-spinner",{key:"fd9acb9a5bb12ec0041a08f9a7a4257ded496bc8",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),t("div",{key:"858037c3dc104bef8b7b16eb418b4d1fa67170f6",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",t("smoothly-spinner",{key:"93ba7062b31cf94f0b10d7a00025db080b6092ce",overlay:true,color:"secondary",size:"medium"})),t("div",{key:"507bdbd9303934e19ae2737e9f779c1af9b9f51b",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",t("smoothly-spinner",{key:"29eab4404c1486e0e639b1b35664b663ed514dae",overlay:true,size:"small"}))),t("fieldset",{key:"13c77980b44a49e370dc2c53ff2abf005b02e26e"},t("h2",{key:"28bc4f36494dd133d49ead798fa35e7201c2c9bb"},"Smoothly summary"),t("smoothly-summary",{key:"cfcb5e6e539e465d501e8513dbe2c97bff51b182"},t("p",{key:"66a83893a90fb3c07ec48d81d0fc792e78ef2c88",slot:"summary"},"Some title"),t("p",{key:"9e9e8969fb180badabca40f5cfbe886b1a06dd9c",slot:"content"},"Some content")),t("smoothly-summary",{key:"75d56b87cdbb57f4ae2efded1fd55bd7030b737a",size:"large"},t("p",{key:"5a4ea8bbd79ace35331a60313a5726ba81e0ed4a",slot:"summary"},"Some title"),t("p",{key:"3e079e8f5e627e9248d2c6c297b2e7320d9edb56",slot:"content"},"Some content")),t("smoothly-summary",{key:"397ef2e4ef50dafc4c6f9b11ee4127fd9c6c4690",color:"danger",fill:"clear"},t("div",{key:"2dbb6179676804c2fedfdbd981574586361ee4bf",slot:"summary",style:{display:"flex",gap:"0.3rem"}},t("span",{key:"fbe1a347f5fef147cf93a29a460852c38c79ebd5"},"Person"),t("smoothly-icon",{key:"5d3b9bff5d1d788ac6c74de9ab08aaaba8672e9a",name:"person",color:"light",fill:"clear",size:"tiny"})),t("p",{key:"71d4fbebf7eda2d158f583e5217eb723e0a86131",slot:"content"},"Some person information.")),t("smoothly-summary",{key:"a8b48edc40de316c09cef79d8aa8ece3b7afd011",color:"danger",fill:"clear",open:true},t("p",{key:"25407c2aa319fa0d9da0ed18867e74238dacf50c",slot:"summary"},"Some other title"),t("p",{key:"ba29da74382114c1c157c1073380cbd76fcff742",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.")),t("h2",{key:"39f96c186d601ba2d00c2615b10dfe77f6cf46a4"},"Label"),no.map((e=>t("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),t("smoothly-label",{key:"9af567fc9f112cfc4694827752bd65a231892f8c",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const no=[{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 lo=class{constructor(t){e(this,t)}render(){return t(s,{key:"e2ff443448cb73a0bea3d0b8e9605267d05a4b7a"},[0,1,3,undefined].map((e=>[t("div",null,"collapseDepth=",e!==null&&e!==void 0?e:"undefined"),t("div",null,t("smoothly-display",{type:"json",value:ro,collapseDepth:e}))])))}};const ro={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const co=({value:e,collapseDepth:o})=>d().is(e)||Array.isArray(e)?t("smoothly-display-json-object",{value:e,collapseDepth:o}):t("smoothly-display-json-primitive",{value:e});const ho=".sc-smoothly-display-json-h{font-family:monospace}";const bo=ho;const mo=class{constructor(t){e(this,t);this.value=undefined;this.collapseDepth=undefined}render(){return t(co,{key:"5901dea5e79a06c0de84963d10a9b7b44e76dd55",value:this.value,collapseDepth:this.collapseDepth})}};mo.style=bo;const yo='.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 rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{display: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}.open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.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:" ▼ "}';const uo=yo;const fo=class{constructor(t){e(this,t);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 e=typeof this.collapseDepth=="number"?Math.max(this.collapseDepth-1,0):undefined;return t(s,{key:"d4b518cb0ed73061381c263aa1ce70b036c5a169",class:{empty:this.empty,open:this.open}},t("span",{key:"d3d5aa239a41aba16db7eb1aa2bf1cb3db67c30c",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),t("span",{key:"fa1efeaabbd3501a6351f82b966f0c326e613f84",class:"content"},Array.isArray(this.value)?this.value.map((o=>t("div",{class:"indent"},t(co,{value:o,collapseDepth:e}),t("span",{class:"comma"},",")))):Object.entries(this.value).map((([o,s])=>t("div",{class:"indent"},t("smoothly-display-json-record-key",{value:o}),":"," ",t(co,{value:s,collapseDepth:e}),t("span",{class:"comma"},","))))),t("span",{key:"44380da90e2071bc30146c06ee19d89ab97e734b"},this.closeBracket))}};fo.style=uo;const po=".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 go=po;const ko=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"60c85f55a13c6af67d6d68e8f5ca14a50f188d78",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};ko.style=go;const vo=".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=vo;const wo=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"312d806be76eb6dfad9bf4190c4816b9f7c763d4"},'"',this.value,'"')}};wo.style=xo;class So{filter(e){return e.filter((e=>this.is(e)))}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}const Co=[e=>e instanceof So?e:undefined];function zo(e){Co.push(e)}let jo;function _o(e){jo=e}function To(e){let t;for(const o of Co){t=o(e);if(t)break}return t||jo}class Io extends So{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(e){return true}toString(){return""}}_o(new Io);class Oo extends So{constructor(e){super();this.criteria=e;this.precedence=50;this.class="Any"}is(e){return e&&typeof e=="object"&&Object.getOwnPropertyNames(e).some((t=>this.criteria.is(e[t])||this.is(e[t])))}toString(){return this.criteria.stringify(this.precedence)}}class Lo extends So{constructor(e){super();this.precedence=40;this.class="And";this.rules=e.reduce(((e,t)=>t instanceof Lo?[...e,...t.rules]:[...e,t]),[])}is(e){return this.rules.every((t=>t.is(e)))}toString(){return this.rules.map((e=>e.stringify(this.precedence))).join(" ")}generalize(){return new Lo(this.rules.map((e=>e.class=="Property"?e:new Oo(e))))}}function Ao(...e){return new Lo(e.map(To))}var Eo;(function(e){e.is=Do})(Eo||(Eo={}));function Do(e,t=false){return typeof e=="number"||typeof e=="string"||e instanceof So||t&&typeof e=="object"&&e&&Object.values(e).every((e=>Array.isArray(e)?e.every((e=>Do(e,true))):Do(e,true)))}var Mo=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var $o={};var Ro={};var Po={};var No={};var Ho={};(function(e){Object.defineProperty(e,"__esModule",{value:true});(function(e){e[e["Logging"]=0]="Logging";e[e["Debug"]=1]="Debug";e[e["Warning"]=2]="Warning";e[e["Recoverable"]=3]="Recoverable";e[e["Critical"]=4]="Critical"})(e.Level||(e.Level={}))})(Ho);Object.defineProperty(No,"__esModule",{value:true});const Fo=Ho;class Uo{constructor(e,t=Fo.Level.Recoverable,o="unknown",s){this.description=e;this.level=t;this.type=o;this.region=s}toString(){return Fo.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}No.Message=Uo;Object.defineProperty(Po,"__esModule",{value:true});const Yo=No;class Wo{raise(e,t,o,s){if(!(e instanceof Yo.Message))e=new Yo.Message(e,t,o,s);console.error(e.toString())}}Po.ConsoleHandler=Wo;var Bo={};var Vo={};Object.defineProperty(Vo,"__esModule",{value:true});class Go{constructor(e,t){this.line=e;this.column=t}toString(){return"Ln "+this.line+", Col "+this.column}}Vo.Position=Go;Object.defineProperty(Bo,"__esModule",{value:true});const Ko=Vo;class Zo extends Ko.Position{constructor(e,t,o){super(t,o);this.resource=e}toString(){return this.resource.toString()+" @ "+super.toString()}}Bo.Location=Zo;var qo={};Object.defineProperty(qo,"__esModule",{value:true});class Jo{constructor(e,t,o,s){this.resource=e;this.start=t;this.end=o;this.content=s}merge(e){return e?new Jo(this.resource,this.start,e.end,this.content?this.content:""+e.content?e.content:""):this}toString(){let e=this.resource.toString();if(this.start&&this.end)e+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)e+=this.content;return e}}qo.Region=Jo;Object.defineProperty(Ro,"__esModule",{value:true});var Xo=Po;Ro.ConsoleHandler=Xo.ConsoleHandler;var Qo=Ho;Ro.Level=Qo.Level;var es=Bo;Ro.Location=es.Location;var ts=No;Ro.Message=ts.Message;var os=Vo;Ro.Position=os.Position;var ss=qo;Ro.Region=ss.Region;var as={};var is={};var ns={};var ls={};var rs={};Object.defineProperty(rs,"__esModule",{value:true});class cs{constructor(e,t){this.name=e;this.password=t}get isEmpty(){return!this.name&&!this.password}toString(){let e="";if(this.name)e=this.name;if(this.password)e+=":"+this.password;return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new cs(o[0],o[1])}else t=new cs;return t}}rs.User=cs;var ds={};Object.defineProperty(ds,"__esModule",{value:true});class hs{constructor(e=[],t){this.host=e;this.port=t}get isEmpty(){return this.host.length==0&&!this.port}toString(){let e=this.host.join(".");if(this.port)e+=":"+this.port.toString();return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new hs(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else t=new hs;return t}}ds.Endpoint=hs;Object.defineProperty(ls,"__esModule",{value:true});const bs=rs;const ms=ds;class ys{constructor(e=new bs.User,t=new ms.Endpoint){this.user=e;this.endpoint=t}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let e="";if(!this.user.isEmpty)e=this.user.toString()+"@";if(!this.endpoint.isEmpty)e=e+this.endpoint.toString();return e}static parse(e){let t;if(e){const o=e.split("@",2);t=new ys(bs.User.parse(o.length==2?o.pop():undefined),ms.Endpoint.parse(o.pop()))}return t}}ls.Authority=ys;var us={};Object.defineProperty(us,"__esModule",{value:true});const fs=ls;class ps{constructor(e=[],t=new fs.Authority,o=[],s={},a){this.scheme=e;this.authority=t;this.path=o;this.query=s;this.fragment=a}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 ps(this.scheme,this.authority,this.path.filter(((e,t)=>t<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const e=this.name.split(".");return e.length>1?e[e.length-1]:""}createArray(e,t){const o=[];while(t-- >0)o.push(e);return o}normalize(){let e=0;const t=this.path.reverse().filter(((t,o)=>{let s=false;if((t==""||t==".")&&o<this.path.length-1)s=false;else if(t=="..")e++;else if(e>0)e--;else s=true;return s})).concat(this.createArray("..",e)).reverse();return new ps(this.scheme,this.authority,t,this.query,this.fragment)}resolve(e){return!e?this:new ps(this.scheme.length>0?this.scheme:e.scheme,!this.authority.isEmpty?this.authority:e.authority,this.isRelative?e.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(e){return new ps(this.scheme,this.authority,e instanceof Array?[...this.path,...e]:[...this.path,e],this.query,this.fragment)}toString(){let e="";if(this.scheme.length>0)e+=this.scheme.join("+")+":";if(!this.authority.isEmpty)e+="//"+this.authority.toString();else if(this.scheme.length>0)e+="//";if(this.path){let t=this.path.join("/");if(t[0]!="."||e.length>0)t="/"+t;e+=t}if(Object.keys(this.query).length>0)e+="?"+this.query.toString();if(this.fragment)e+="#"+this.fragment;return e}static parse(e){let t;switch(e){case"":case null:case undefined:break;default:let o=true;let s=[];let a=e.split("://",2);if(a.length>1){s=(a.shift()||"").split("+");e=a.shift()}else if(e.slice(0,2)=="//")e=e.slice(2);else o=false;let i;let n;if(e&&(i=e.lastIndexOf("#"))>-1){n=e.slice(i+1);e=e.slice(0,i)}let l={};if(e&&(i=e.lastIndexOf("?"))>-1){l=new Object;e.slice(i+1).split(";").forEach((e=>{a=e.split("=");const t=a.shift();const o=a.shift();if(t&&o)l[t]=o}));e=e.slice(0,i)}let r;let c=[];if(e){a=e.split("/");if(a.length>0){switch(a[0]){case".":case"..":break;case"":a.shift();break;default:if(o)r=fs.Authority.parse(a.shift());else a.unshift(".");break}c=a}}t=new ps(s,r,c,l,n);break}return t}}us.Locator=ps;ps.empty=new ps(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(ns,"__esModule",{value:true});var gs=ls;ns.Authority=gs.Authority;var ks=ds;ns.Endpoint=ks.Endpoint;var vs=us;ns.Locator=vs.Locator;var xs=rs;ns.User=xs.User;var ws={};var Ss={};var Cs={};Object.defineProperty(Cs,"__esModule",{value:true});class zs{}Cs.Device=zs;Object.defineProperty(Ss,"__esModule",{value:true});const js=Cs;class _s extends js.Device{}Ss.InDevice=_s;Object.defineProperty(ws,"__esModule",{value:true});const Ts=Ss;class Is extends Ts.InDevice{static addOpener(e,t){if(!t)t=0;Is.openers.push({open:e,priority:t});Is.openers=Is.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){let t;let o=0;do{t=Is.openers[o++].open(e)}while(!t&&o<Is.openers.length);return t}}ws.Reader=Is;Is.openers=[];Object.defineProperty(is,"__esModule",{value:true});const Os=ns;const Ls=Ro;const As=ws;var Es=ws;is.Reader=Es.Reader;class Ds extends As.Reader{constructor(e){super();this.backend=e;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=this.location;return e?e.resource:Os.Locator.empty}get location(){return this.locationValue}get region(){return new Ls.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(e){if(!e)e=1;let t;while(e>this.buffer.length&&(t=this.backend.read()))this.buffer.push({data:t,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,e>this.buffer.length?this.buffer.length:e).map((e=>e.data)).join("")}read(e){if(!e)e=1;const t=this.peek(e);if(t&&t.length>0){this.locationValue=this.buffer[t.length-1].location;this.buffer.splice(0,t.length);this.lastContent+=t}return t}peekIs(e,t){let o;if(e)if(typeof e=="string"){const s=e;while(t&&t-- >0)e+=s;o=this.peek(e.length)==e?e:undefined}else if(e.length>0&&!(o=this.peekIs(e[0]))&&e.length)o=this.peekIs(e.slice(1));return o}readIf(e){let t;if(e)if(typeof e=="string")t=this.peek(e.length)==e&&this.read(e.length)||undefined;else if(e.length>0&&!(t=this.readIf(e[0]))&&e.length)t=this.readIf(e.slice(1));return t}readAll(){let e="";while(this.peek())e+=this.read();return e!=""?e:undefined}mark(){const e=this.region;this.lastMark=this.location;this.lastContent="";return e}static create(e){return e?new Ds(e):undefined}}is.BufferedReader=Ds;var Ms={};var $s={};var Rs=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty($s,"__esModule",{value:true});function Ps(e){return Rs(this,void 0,void 0,(function*(){}))}$s.close=Ps;function Ns(e){return Rs(this,void 0,void 0,(function*(){}))}$s.fsync=Ns;function Hs(e,t,o){return Rs(this,void 0,void 0,(function*(){return 0}))}$s.open=Hs;function Fs(e,t,o,s){return Rs(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}$s.write=Fs;function Us(e,t){return{isDirectory:()=>false}}$s.lstatSync=Us;function Ys(e){return[]}$s.readdirSync=Ys;function Ws(e,t){return""}$s.readFileSync=Ws;var Bs={};Object.defineProperty(Bs,"__esModule",{value:true});const Vs="/";Bs.sep=Vs;var Gs={};var Ks=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Gs,"__esModule",{value:true});const Zs=Ro;const qs=ns;const Js=ws;class Xs extends Js.Reader{constructor(e,t){super();this.content=e;this.resource=t;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 Zs.Location(this.resource,this.line,this.column)}get region(){return new Zs.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Ks(this,void 0,void 0,(function*(){const e=!(yield this.isEmpty);if(e)this.count=this.content.length;return e}))}read(){let e;if(this.count<this.content.length)e=this.content.charAt(this.count);else if(this.count==this.content.length)e=undefined;this.count++;if(e){switch(e){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=e}return e}mark(){const e=this.region;this.lastPosition=this.location;this.lastContent="";return e}static create(e,t){return e!=undefined?new Xs(e,t||qs.Locator.empty):undefined}}Gs.StringReader=Xs;Object.defineProperty(Ms,"__esModule",{value:true});const Qs=$s;const ea=Bs;const ta=ns;const oa=ws;const sa=Gs;class aa extends oa.Reader{constructor(e){super();this.backend=e}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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:ta.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(e){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=sa.StringReader.create(Qs.readFileSync((e.isRelative?"":ea.sep)+e.path.join(ea.sep),"utf-8"),e)}catch(t){console.log(`Failed to open file: ${e.toString()}`)}return t?new aa(t):undefined}}Ms.FileReader=aa;oa.Reader.addOpener((e=>aa.open(e)),10);var ia={};var na=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(ia,"__esModule",{value:true});const la=$s;const ra=Bs;const ca=ns;const da=Ro;const ha=ws;const ba=Ms;class ma extends ha.Reader{constructor(e){super();this.files=e;this.tabSizeValue=2;this.lastLocation=new da.Location(ca.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(e){this.tabSizeValue=e;if(this.current)this.current.tabSize=e}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 da.Region(this.resource)}close(){return na(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let e;if(!this.current&&this.files.length>0){this.current=ba.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){e=this.current.read();if(e==undefined||e=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return e}mark(){return this.current?this.current.mark():new da.Region(this.resource)}static getFiles(e,t,o=[]){let s=[];const a=la.readdirSync(e);a.forEach((a=>{const i=e+ra.sep+a;if(o.indexOf(i)==-1){if(la.lstatSync(i).isDirectory())s=s.concat(ma.getFiles(i,t,o));else if(a.length>t.length&&a.lastIndexOf(t,a.length-t.length)===a.length-t.length)s.push(i)}}));return s}static open(e){let t;try{if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file")&&e.isFolder||e.name.match("*"))t=ma.getFiles((e.isRelative?"":ra.sep)+e.folder.path.join(ra.sep),e.extension)}catch(e){}return t?new ma(t.map((e=>new ca.Locator(["file"],undefined,e.split(ra.sep))))):undefined}}ia.FolderReader=ma;ha.Reader.addOpener((e=>ma.open(e)),0);var ya={};var ua={};var fa={};var pa={};Object.defineProperty(pa,"__esModule",{value:true});function*ga(e){let t;while((t=e())!=undefined)yield t}function ka(e){return e.next instanceof Function}function*va(e,t){let o;while(!(o=e.next()).done)yield o.value;if(ka(t))while(!(o=t.next()).done)yield o.value;else yield t}class xa{constructor(e){this.iterator=e instanceof Function?ga(e):e}get length(){let e=0;while(!this.next().done)e++;return e}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const e=this.next();return e.done?undefined:e.value}next(e){return this.nextValue=this.iterator.next(e)}append(e){return new xa(va(this,e))}map(e){return new xa((()=>{const t=this.fetch();return t!=undefined?e(t):undefined}))}reduce(e,t){const o=this.fetch();return o?this.reduce(e,e(t,o)):t}apply(e){const t=this.fetch();if(t){e(t);this.apply(e)}}filter(e){return new xa((()=>{let t;do{t=this.fetch()}while(t!=undefined&&!e(t));return t}))}toArray(){const e=this.fetch();let t;if(!e)t=[];else{t=this.toArray();t.unshift(e)}return t}static from(e){return new xa(e)}}pa.Enumerator=xa;xa.empty=xa.from((()=>undefined));var wa={};Object.defineProperty(wa,"__esModule",{value:true});const Sa=pa;function Ca(e){return e==null?false:typeof e[Symbol.iterator]==="function"}class za{constructor(e){this.get=e}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new Sa.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(e){return new za((()=>this.get().append(e)))}map(e){return new za((()=>this.get().map(e)))}reduce(e,t){return this.get().reduce(e,t)}apply(e){this.get().apply(e)}filter(e){return new za((()=>this.get().filter(e)))}toArray(){return this.getEnumerator().toArray()}static from(e){return Ca(e)?new za((()=>new Sa.Enumerator(e[Symbol.iterator]()))):new za((()=>{const t=e();return t instanceof Sa.Enumerator?t:new Sa.Enumerator(t)}))}}wa.Enumerable=za;za.empty=za.from([]);var ja={};Object.defineProperty(ja,"__esModule",{value:true});const _a=pa;class Ta extends _a.Enumerator{constructor(e){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=e;this.position=0}}ja.ArrayEnumerator=Ta;var Ia={};Object.defineProperty(Ia,"__esModule",{value:true});const Oa=pa;class La extends Oa.Enumerator{constructor(e){super((()=>{const e=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return e}));this.backend=e;this.buffer=[]}peek(e){if(!e)e=0;let t;while(e>this.buffer.length-1&&(t=this.backend.fetch()))this.buffer.push(t);return e>this.buffer.length-1?undefined:this.buffer[e]}}Ia.BufferedEnumerator=La;var Aa={};Object.defineProperty(Aa,"__esModule",{value:true});class Ea{static padLeft(e,t,o){return Ea.pad(e,t,o,true)}static padRight(e,t,o){return Ea.pad(e,t,o,false)}static pad(e,t,o,s){let a="";const i=o-e.length;for(let e=0;e<i;e++)a+=t;return s?a+e:e+a}}Aa.String=Ea;Object.defineProperty(fa,"__esModule",{value:true});var Da=pa;fa.Enumerator=Da.Enumerator;var Ma=wa;fa.Enumerable=Ma.Enumerable;var $a=ja;fa.ArrayEnumerator=$a.ArrayEnumerator;var Ra=Ia;fa.BufferedEnumerator=Ra.BufferedEnumerator;var Pa=Aa;fa.String=Pa.String;var Na={};Object.defineProperty(Na,"__esModule",{value:true});const Ha=Cs;class Fa extends Ha.Device{}Na.OutDevice=Fa;var Ua=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(ua,"__esModule",{value:true});const Ya=ns;const Wa=fa;const Ba=Na;class Va extends Ba.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(e){return Ua(this,void 0,void 0,(function*(){return e instanceof Wa.Enumerator?this.writeImplementation(e):e instanceof Array?this.writeImplementation(new Wa.ArrayEnumerator(e)):this.writeImplementation(new Wa.ArrayEnumerator([e]))}))}writeLine(e){return Ua(this,void 0,void 0,(function*(){return e instanceof Wa.Enumerator?this.writeImplementation(e.append(this.newLineSymbol)):e instanceof Array?this.writeImplementation(new Wa.ArrayEnumerator([...e,this.newLineSymbol])):e?this.writeImplementation(new Wa.ArrayEnumerator([e,this.newLineSymbol])):this.writeImplementation(new Wa.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(e,t){if(!t)t=0;Va.openers.push({open:e,priority:t});Va.openers=Va.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){return Ua(this,void 0,void 0,(function*(){let t;if(typeof e=="string"){const o=Ya.Locator.parse(e);t=o?yield Va.open(o):undefined}else{let o=0;do{t=yield Va.openers[o++].open(e)}while(!t&&o<Va.openers.length)}return t}))}}ua.Writer=Va;Va.openers=[];Object.defineProperty(ya,"__esModule",{value:true});const Ga=ua;class Ka extends Ga.Writer{constructor(e){super();this.backend=e;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(e){const t=[];let o;let s=e.fetch();if(s)do{o=s;s=e.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);t.push(this.backend.write(o))}while(s);return Promise.all(t).then((e=>e.reduce(((e,t)=>e&&t),true)))}}ya.Indenter=Ka;var Za={};Object.defineProperty(Za,"__esModule",{value:true});const qa=ws;const Ja=is;class Xa extends qa.Reader{constructor(e,t){super();this.prefix=t;this.done=false;this.backend=e instanceof Ja.BufferedReader?e:Ja.BufferedReader.create(e)}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e;if(!this.done){e=this.backend.read();this.done=e=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new Xa(e,t):e}}Za.PrefixReader=Xa;var Qa={};var ei=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Qa,"__esModule",{value:true});const ti=$s;const oi=Bs;const si=ua;class ai extends si.Writer{constructor(e,t){super();this.resource=e;this.descriptor=t;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return ei(this,void 0,void 0,(function*(){let e=true;try{yield ti.fsync(this.descriptor)}catch(t){e=false}return e}))}close(){return ei(this,void 0,void 0,(function*(){let e=this.opened;if(e){try{yield ti.close(this.descriptor)}catch(t){e=false}this.descriptor=0}return e}))}writeImplementation(e){return ei(this,void 0,void 0,(function*(){let t=true;const o=Buffer.from(e.reduce(((e,t)=>e+t),""));try{const e=yield ti.write(this.descriptor,o,0,"utf8");t=e.bytesWritten==o.length}catch(e){t=false}return t&&(!this.autoFlush||(yield this.flush()))}))}static open(e){return ei(this,void 0,void 0,(function*(){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=yield ti.open((e.isRelative?"":oi.sep)+e.path.join(oi.sep),"w")}catch(e){t=undefined}return t?new ai(e,t):undefined}))}}Qa.FileWriter=ai;si.Writer.addOpener(ai.open);var ii={};Object.defineProperty(ii,"__esModule",{value:true});const ni=ws;const li=is;class ri extends ni.Reader{constructor(e,t){super();this.endMark=t;this.done=false;this.backend=e instanceof li.BufferedReader?e:li.BufferedReader.create(e);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=!this.done;if(e)this.done=true;return Promise.resolve(e)}read(){let e;if(!this.done){e=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new ri(e,t):e}}ii.TillReader=ri;var ci={};Object.defineProperty(ci,"__esModule",{value:true});const di=ws;const hi=is;class bi extends di.Reader{constructor(e,t){super();this.endMark=t;this.done=-1;this.backend=e instanceof hi.BufferedReader?e:hi.BufferedReader.create(e);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.length}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=this.done>0;if(e)this.done=0;return Promise.resolve(e)}read(){let e;if(this.done!=0){e=this.backend.read();let t;if(this.done>0)this.done--;else if(t=this.backend.peekIs(this.endMark))this.done=t.length}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new bi(e,t):e}}ci.UntilReader=bi;Object.defineProperty(as,"__esModule",{value:true});var mi=is;as.BufferedReader=mi.BufferedReader;var yi=Cs;as.Device=yi.Device;var ui=Ms;as.FileReader=ui.FileReader;var fi=ia;as.FolderReader=fi.FolderReader;var pi=ya;as.Indenter=pi.Indenter;var gi=Ss;as.InDevice=gi.InDevice;var ki=Na;as.OutDevice=ki.OutDevice;var vi=Za;as.PrefixReader=vi.PrefixReader;var xi=ws;as.Reader=xi.Reader;var wi=Gs;as.StringReader=wi.StringReader;var Si=Qa;as.FileWriter=Si.FileWriter;var Ci=ii;as.TillReader=Ci.TillReader;var zi=ci;as.UntilReader=zi.UntilReader;var ji=ua;as.Writer=ji.Writer;Object.defineProperty($o,"__esModule",{value:true});const _i=Ro;var Ti=$o.Error=_i;const Ii=as;var Oi=$o.IO=Ii;const Li=ns;$o.Uri=Li;const Ai=fa;var Ei=$o.Utilities=Ai;class Di extends Oi.BufferedReader{constructor(e,t){super(typeof e=="string"?Oi.StringReader.create(e):e);this.errorHandler=t}raise(e,t,o="lexical",s){if(!(e instanceof Ti.Message)){if(!t)t=Ti.Level.Critical;if(!s)s=this.region;e=new Ti.Message(e,t,o,s)}if(this.errorHandler)this.errorHandler.raise(e)}requirePrefix(e){return new Di(new Oi.PrefixReader(this,e),this.errorHandler)}till(e){return new Di(Oi.TillReader.create(this,e),this.errorHandler)}until(e){return new Di(Oi.UntilReader.create(this,e),this.errorHandler)}peekIsSymbol(e){return this.peekIs(e??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function Mi(e,t,o){const s=new Di(e,t);return new Ei.Enumerator((()=>{let e;let t=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(t=s.peekIsSymbol(o))e={value:s.read(t)||"",region:s.mark()};else{let t="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))t+=s.read();if(t)e={value:t,region:s.mark()}}}return e}))}class $i{tokenize(e){return Mi(e,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((e=>({value:e.value}))).toArray()}}class Ri extends $i{constructor(e){super();this.class="array";this.array=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return Ri.completor.flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])}isType(e){return global.Array.isArray(e)}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Ri}}Ri.completor=[];var Pi;(function(e){function t(e){return typeof e=="object"&&typeof e.start=="number"&&typeof e.end=="number"}e.is=t})(Pi||(Pi={}));var Ni;(function(e){function t(e){return e.map((e=>typeof e.cursor=="number"?e.value.slice(0,e.cursor)+"_"+e.value.slice(e.cursor,e.value.length):e.value+"_"))}e.stringify=t;function o(e,t,s){return Array.isArray(t)?t.map((t=>o(e,t,s))):{value:e+t.value+(s??""),cursor:typeof t?.cursor=="number"?t?.cursor+e.length:Pi.is(t.cursor)?{start:t.cursor.start+e.length,end:t.cursor.end+e.length}:t.value.length+e.length,suggestion:t.suggestion}}e.prepend=o})(Ni||(Ni={}));class Hi extends $i{constructor(){super();this.class="boolean"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;const a=o?Hi.literals.filter((e=>e.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Ni.prepend(":",Hi.literals.filter((e=>e.value.startsWith(s[1]?.value??"")))):[];return[...a??[],...(o?[]:Hi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e=="boolean"}static add(...e){this.completor.push(...e)}}Hi.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Hi.completor=[];var Fi;(function(e){function t(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e.length<=3&&e[0].value==":"&&o.value.startsWith(e[1]?.value??"")&&(e[2]?.value??"(")=="("?Ni.prepend(":",[o]):e.length<=4&&e.slice(0,4).reduce(((e,t)=>e+t.value),"")==":"+o.value?Ni.prepend(":"+o.value.substring(0,o.value.length-1),t(),")"):e.length==5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[4].value==":"+o.value?Ni.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):e.length>5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[e.length-1].value==":"+o.value?Ni.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):[]}e.functions=t;function o(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1?Ni.prepend(":",[o]):Ni.prepend(":",t(e.slice(1)))}e.expressions=o;function s(e,t,o){return e.length>=1&&e[0].value==o.value?Ni.prepend(o.value,t(e.slice(1))):e.length==0||e.length==1&&o.value.startsWith(e[0].value)||e[0].value==o.value.replace(/ /g,"")?[o]:[]}e.operators=s})(Fi||(Fi={}));class Ui extends $i{constructor(e){super();this.input=e;this.class="number";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return[...s.length>0&&s[0].value==":"&&t?Ni.prepend(":",t.complete(s.slice(1),undefined,this)):t&&s.length>=0&&o?Ni.prepend(" ",t?.complete(s,undefined,undefined)):[],...(o?Ui.completorArgument:Ui.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return isNaN(+e)?false:true}static add(...e){this.completor.push(...e)}static addArgument(...e){this.completorArgument.push(...e)}static is(e){return e instanceof Ui||!global.Number.isNaN(e)}}Ui.completor=[];Ui.completorArgument=[];class Yi extends $i{constructor(e){super();this.properties=e;this.class="object";this.completions=Object.keys(this.properties).map((e=>({value:e,suggestion:{value:e}})))}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;const i=this.filterByType(o);if(!t){const e=s.length>0?this.match(s[0],i):undefined;if(e)a=s.length>=1?Ni.prepend(e.value,this.properties[e.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))a=Ni.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))a=Ni.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let e;a=s.length==0?[...this.addDot(i,o),...o?.class=="number"?[]:Yi.wildcard]:s.length==1&&(e=Yi.wildcard.find((e=>e.value==s[0].value)))?Ni.prepend(e.value,this.completions,o?".":""):s.length>=1&&(e=Yi.wildcard.find((e=>e.value==s[0].value)))?Ni.prepend(e.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],i),o)}}else a=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Ni.prepend(".",this.addDot(i,o)):this.properties[s[1].value]?Ni.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),t,o)):Ni.prepend(".",this.addDot(this.partial(s[1],i),o));return[...a.reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[]),...Yi.completor.flatMap((e=>e(s,this,t)))]}filterByType(e){return e?this.completions.filter((t=>this.properties[t.value].class==e.class||(this.properties[t.value].class=="object"?this.properties[t.value].filterByType(e).length>0:false))):this.completions}addDot(e,t){return!e?[]:t?e.map((e=>this.properties[e.value].class=="object"?{value:e.value+".",suggestion:{value:e.suggestion?.value+"."}}:e)):e}partial(e,t){const o=t.filter((t=>t.value.startsWith(e.value)));return o&&o.length>0?o:undefined}match(e,t){const o=t.filter((t=>t.value==e.value));return o&&o.length>0?o[0]:undefined}isType(e){return false}static add(...e){this.completor.push(...e)}}Yi.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Yi.completor=[];class Wi extends $i{constructor(e){super();this.class="string";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;if(o)a=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else a=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[Ni.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...a??[],...(o?[]:Wi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e.value=="string"}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Wi}}Wi.completor=[];class Bi extends $i{constructor(e){super();this.type=e;this.class="union"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return this.type?this.type?.flatMap((e=>e?.complete(s,t,o)??[])):[]}isType(e){return e instanceof Bi}static is(e){return e instanceof Bi}}var Vi;(function(e){function t(e,t){const o=e.complete(t);return o.filter((e=>!t.includes(e.value)&&e.suggestion?.value)).map((e=>({full:e.value,cursor:e?.cursor??e.value.length,addon:e?.suggestion?.value,description:e?.suggestion?.description})))}e.complete=t;function o(e){let t;switch(typeof e){case"object":t=global.Array.isArray(e)?new Ri(e.map((e=>o(e)))):new Yi(global.Object.entries(e).reduce(((e,t)=>({...e,[t[0]]:o(t[1])})),{}));break;case"string":t=new Wi(e);break;default:t=new Ui(e);break}return t}e.convert=o;e.Array=Ri;e.Boolean=Hi;e.Completion=Ni;e.Object=Yi;e.String=Wi;e.Number=Ui;e.Union=Bi;e.Completor=Fi})(Vi||(Vi={}));class Gi extends So{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(e){return typeof e=="string"&&e.endsWith(this.needle)}toString(){return`*${this.needle}`}}function Ki(e,t){return Fi.expressions(e,(e=>!e||e[0].value=="*"&&t.value&&t.value.endsWith(e[1]?.value??"")?[Vi.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Vi.String.add(Ki);class Zi extends So{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Every"}is(e){return Array.isArray(e)&&e.every((e=>this.criteria.is(e)))}toString(){return`every(${this.criteria.toString()})`}}function qi(e,t){const o=e=>t.array.some(Vi.String.is)&&e?t.array.filter(Vi.String.is).map((t=>t.complete([{value:":"},...e]))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Vi.String.is)?t.array.filter(Vi.String.is).map((e=>({value:e?.value??""}))):t.array.some(Vi.Number.is)&&e?t.array.filter(Vi.Number.is).map((t=>t.complete(e))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Vi.Number.is)?t.array.filter(Vi.Number.is).map((e=>({value:(e?.value??"").toString()}))):[];return Fi.functions(e,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Vi.Array.add(qi);class Ji extends So{constructor(e,t,o){super();this.identifier=e;this.argument=t;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(e){return this.definition?.is(e)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class Xi{stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}class Qi extends Xi{constructor(e,t){super();this.name=t;this.precedence=Qi.precedence;this.class="Value";if(typeof e=="string")this.value=isNaN(+e.replace(",","."))?e:+e.replace(",",".");else this.value=e}toString(){return this.name?`${this.name?.toString()}.`+this.value.toString():this.value.toString()}evaluate(e){return e?this.get(e):+this.value}get(e){return typeof this.value=="string"?+e[this.value]:this.name&&typeof this.value=="object"?this.value.get(e[this.name]):+this.value}static create(e,t){return new Qi(e,t)}}Qi.precedence=19;class en extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(e,t){return(isNaN(+e)?e:+e)>(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function tn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">",suggestion:{value:">"}})}Vi.Number.add(tn);Vi.String.add(tn);class on extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(e,t){return(isNaN(+e)?e:+e)>=(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function sn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">=",suggestion:{value:">="}})}Vi.Number.add(sn);Vi.String.add(sn);class an extends So{constructor(e){super();this.property=e;this.precedence=85;this.class="Has"}is(e,t){return typeof e=="object"&&e?Object.entries(e).some((e=>{t=typeof t=="string"?t:this.property;return e[0]==t?true:typeof e[1]=="object"&&e[1]?this.is(e[1],t.includes(".")&&t.split(".")[0]==e[0]?t.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function nn(e,t,o){return o&&t?.class=="object"?Fi.functions(e,(e=>t.completions.filter((t=>t.value.startsWith(e?e[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Vi.Object.add(nn);class ln extends So{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(e){return typeof e=="string"&&e.includes(this.needle)}toString(){return`*${this.needle}*`}}function rn(e,t){const o=new ln(e);return t?o.is(t):o}function cn(e,t){return Fi.expressions(e,(e=>!e||e.length==3&&t.value?.includes(e[1].value)&&t.value!=e[1].value||e.length==2&&e[0].value+e[1].value=="**"?[Vi.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:e.length==1&&e[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Vi.String.add(cn);class dn extends So{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Some"}is(e,t){return Array.isArray(e)&&e.some((e=>this.criteria.is(e,t)))}toString(){return`some(${this.criteria.toString()})`}}function hn(e,t){const o=new dn(To(e));return t?o.is(t):o}function bn(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1&&e[0].value==":"?Vi.Completion.prepend(":",t.array.filter(Vi.String.is).filter((e=>e.value&&e.value!="string")).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):e.length==2&&e[0].value==":"?Vi.Completion.prepend(":",t.array.filter(Vi.String.is).filter((t=>t.value&&t.value!="string"&&t.value.startsWith(e[1].value))).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):[]}Vi.Array.add(bn);class mn extends So{constructor(e){super();this.value=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(e,t){return Array.isArray(e)&&Do(this.value)?hn(this.value,e):(typeof e=="boolean"?e.toString():isNaN(+e)?e:+e)==(typeof this.value=="object"?this.value.evaluate(t):this.value)}toString(){return this.value.toString()}}zo((e=>typeof e=="bigint"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"?new mn(e):undefined));class yn extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(e,t){return(isNaN(+e)?e:+e)<(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function un(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<",suggestion:{value:"<"}})}Vi.Number.add(un);Vi.String.add(un);class fn extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(e,t){return(isNaN(+e)?e:+e)<=(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function pn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<=",suggestion:{value:"<="}})}Vi.Number.add(pn);Vi.String.add(pn);function gn(e,t){return Fi.expressions(e,(e=>e&&e?.length==1&&e[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Vi.String.add(gn);class kn extends So{constructor(e){super();this.criteria=e;this.precedence=kn.precedence;this.class="Not"}is(e){return!this.criteria.is(e)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}kn.precedence=90;function vn(e,t){const o=new kn(To(e));return t?o.is(t):o}function xn(e,t,o){return t&&t.class!="object"&&o?Fi.expressions(e,(e=>e[0].value!="!"?[]:Vi.Completion.prepend("!",t.complete(e.slice(1),o,t))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Vi.String.add(xn);Vi.Number.add(xn);Vi.Boolean.add(xn);Vi.Object.add(xn);class wn extends So{constructor(e){super();this.precedence=wn.precedence;this.class="Or";this.criteria=e.reduce(((e,t)=>t instanceof wn?[...e,...t.criteria]:[...e,t]),[])}is(e){return this.criteria.some((t=>t.is(e)))}toString(){return this.criteria.map((e=>e.stringify(this.precedence))).join(" | ")}}wn.precedence=30;function Sn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Vi.Number.addArgument(Sn);class Cn extends Ei.BufferedEnumerator{constructor(e,t){super(Array.isArray(e)?new Ei.ArrayEnumerator(e):e);this.errorHandler=t}clone(e="(",t=")"){let o=0;return new Cn(new Ei.Enumerator((()=>{let s;if(this.peekIs(e))o++;else if(this.peekIs(t))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...e){return e.every(((e,t)=>{const o=this.peek(t);return o&&o.value&&Cn.is(e,o.value)}))}fetchIf(...e){const t=[];if(this.peekIs(...e))e.forEach((e=>t.push(this.fetch())));return e.length==1?t.length==1?t[0]:undefined:e.length==t.length?t:undefined}mark(){return Ei.Enumerable.from(Ei.Enumerable.empty)}raise(e,t=Ti.Level.Critical,o="grammatical",s){if(typeof e=="string"){if(!s&&this.last)s=this.last.region;e=new Ti.Message(e,t,o,s)}this.errorHandler.raise(e)}static is(e,t){return Array.isArray(e)?e.some((e=>Cn.is(e,t))):typeof e!="string"?e.test(t):e.startsWith("!")&&e!="!"?!Cn.is(e.substring(1),t):e=="any"?Cn.symbol.every((e=>e!=t)):e=="symbol"?Cn.symbol.some((e=>e==t)):e=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(t):e==t}}Cn.wildcard=["*","?"];Cn.separator=["(",")","."];Cn.operator=["!","|"];Cn.comparator=["<","<=",">",">=",":"];Cn.binaryOperator=[" * "," + "," - "];Cn.symbol=[...Cn.wildcard,...Cn.separator,...Cn.operator,...Cn.comparator];function zn(e,t){if(typeof e=="string"){t=t||new Ti.ConsoleHandler;const o=Mi(e,t).toArray();e=new Cn(o,t)}t=t instanceof So?t:undefined;const o=[];while(e.peek()){if(e.fetchIf("|"))o[o.length-1]=new wn([o[o.length-1],jn(0,e)]);else o.push(jn(0,e))}return o.length==1?o[0]:new Lo(o)}function jn(e,t){let o;const s=typeof e=="number"?t=>e<t:t=>e.precedence>t;const a=typeof e=="number"?undefined:e;for(const e of _n)if(s(e[1]||Number.MAX_SAFE_INTEGER)){const s=e[0](t,a);if(s){o=jn(s,t);break}}return o||a||new Lo([])}const _n=[];function Tn(e,t){_n.push([e,t])}function In(e,t){if(typeof e=="string"){t=t||new Ti.ConsoleHandler;const o=Mi(e,t).toArray();e=new Cn(o,t)}t=t instanceof Xi?t:undefined;let o;let s=false;let a=false;while(!o!=s&&!a&&e.peek()){let t=1;s=false;a=false;while(!s&&!a&&e.peek(t)){s=Cn.binaryOperator.some((o=>e.peek(t)?.value==o));a=Cn.comparator.some((o=>e.peek(t)?.value==o));t++}o=On(o??Number.MAX_SAFE_INTEGER,e)}if(!o)e.raise("Missing Expression");return o??new Qi(NaN)}function On(e,t){let o;const s=typeof e=="number"?undefined:e;for(const s of Ln){const a=s[0](t,e);if(a){o=a;break}}return o||s}const Ln=[];function An(e,t){Ln.push([e,t])}Tn((e=>{const t=e.fetchIf(":","every","(")&&new Zi(zn(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Tn((e=>{const t=e.fetchIf(":","some","(")&&new dn(zn(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Tn(En(zn));An(En(In));function En(e){return t=>{const o=t.fetchIf("(")&&e(t.clone());if(o&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return o}}Tn((e=>e.fetchIf(">")&&new en(In(e))));Tn((e=>e.fetchIf(">=")&&new on(In(e))));Tn((e=>e.fetchIf("<")&&new yn(In(e))));Tn((e=>e.fetchIf("<=")&&new fn(In(e))));Tn((e=>e.fetchIf("!")&&new kn(jn(kn.precedence,e))));Tn((e=>{const t=e.fetchIf("has","(","any",")")||e.fetchIf(":","has","(","any",")");return t&&new an(t.length==4?t[2].value:t[3].value)}));class Dn extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="Within"}is(e){return this.value.includes(e)}toString(){return`within(${this.value.join(", ")})`}}function Mn(e,t){const o=new Dn(e);return t?o.is(t):o}function $n(e,t,o){return o&&t?.class?Fi.functions(e,(e=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Vi.String.add($n);Vi.Number.add($n);Tn((e=>{const t=e.fetchIf(":","within","(");let o;if(t&&e.peek()){o=[e.fetch()?.value??""];while(e.fetchIf(","))o.push(e.fetchIf("any")?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o?new Dn(o):undefined}));class Rn extends So{constructor(e){super();this.criteria=e;this.precedence=85;this.class="Contains"}is(e,t){return Array.isArray(e)&&this.criteria.every((t=>e.some((e=>t==e))))}toString(){return`contains(${this.criteria.join(", ")})`}}function Pn(e,t){const o=new Rn(e);return t?o.is(t):o}function Nn(e,t,o){return Fi.functions(e,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Vi.Array.add(Nn);Tn((e=>{const t=e.fetchIf(":","contains","(");const o=[];if(t&&e.peek()){do{o.push(e.fetchIf("any")?.value??"")}while(e.fetchIf(","));if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o.length>0?new Rn(o):undefined}));Tn((e=>{const t=e.peek(3)?.value;const o=[")",",","("].find((e=>e==t))||e.peek(2)?.value==")"?e.fetchIf("identifier","("):undefined;let s;if(o&&e.peek()){s=[e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(e.fetchIf(","))s.push(e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return o&&s?new Ji(o[0].value,s):undefined}));class Hn extends So{constructor(e,t){super();this.name=e;this.criteria=t;this.precedence=Hn.precedence;this.class="Property";this.symbol="."}is(e,t){return!this.criteria?e==t?.[this.name]:typeof e=="object"?this.criteria.is(e[this.name],t??e):this.criteria.is(e,t?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Hn.precedence=80;function Fn(e,t,o){const s=(Array.isArray(e)?e:[e]).reduceRight(((e,t)=>new Hn(t,e)),To(t));return o?s.is(o):s}zo((e=>typeof e=="object"&&!(e instanceof So)&&!Array.isArray(e)?Ao(...Object.getOwnPropertyNames(e).map((t=>Fn(t,e[t])))):undefined));Tn((e=>{const t=[];let o;while(o=e.fetchIf("identifier","."))t.push(o[0].value);if(e.peekIs("identifier",Cn.comparator)&&(o=e.fetchIf("identifier")))t.push(o.value);return t.length>0?t.reduceRight(((e,t)=>new Hn(t,e)),e.peekIs("identifier")&&(o=e.fetchIf("identifier"))?new Hn(o.value):jn(Hn.precedence,e)):undefined}));Tn((e=>{const t=e.fetchIf(":","*","any","*")||e.fetchIf("*","any","*");return t&&new ln(t.length==4?t[2].value:t[1].value)}));class Un extends So{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(e){return typeof e=="string"&&e.startsWith(this.needle)}toString(){return`${this.needle}*`}}function Yn(e,t){return Fi.expressions(e,(e=>!e||e.length==1&&e[0].value=="*"||e.length==2&&e[1].value=="*"&&t.value&&t.value.startsWith(e[0]?.value??"")?[Vi.Completion.prepend("",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Vi.String.add(Yn);Tn((e=>{const t=e.fetchIf(":","any","*")||e.fetchIf("any","*");return t&&new Un(t?.length==3?t[1].value:t[0].value)}));Tn((e=>{const t=e.fetchIf(":","*","any")||e.fetchIf("*","any");return t&&new Gi(t?.length==3?t[2].value:t[1].value)}));class Wn extends Xi{toString(){const e=this.symbol;return this.left.stringify(Wn.getPrecedence(e))+` ${e} `+this.right.stringify(Wn.getPrecedence(e))}constructor(e,t,o,s){super();this.precedence=t;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=e.replace(/ /g,"")}evaluate(e){let t;switch(this.getSymbol()){case"+":t=this.left.evaluate(e)+this.right.evaluate(e);break;case"-":t=this.left.evaluate(e)-this.right.evaluate(e);break;case"*":t=this.left.evaluate(e)*this.right.evaluate(e);break;default:t=NaN;break}return t}getSymbol(){return this.symbol}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}static getPrecedence(e){let t;e=e?.replace(/ /g,"");switch(e){case"+":t=14;break;case"-":t=15;break;case"*":t=16;break;default:t=undefined;break}return t}static create(e,t,o){let s;const a=new Wn("+",14,t,o);const i=Wn.getPrecedence(e);if(i)s=new Wn(e,i,t,o);return s||a}}function Bn(e,t,o){return[" + "," - "," * "].map((e=>({value:e,suggestion:{value:e}}))).map((s=>Vi.Completor.operators(e,(e=>e?o.complete(e,undefined,t):[]),s))).reduce(((e,t)=>e.concat(t)),[])}Vi.Number.addArgument(Bn);An(((e,t)=>{let o;const s=e.peekIs(Cn.binaryOperator)&&e.fetch().value;let a;if(s&&typeof t=="object"){let i;let n;let l=0;a=Wn.getPrecedence(s);while(!n&&e.peek(l)){n=e.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Wn.getPrecedence(e.peek(l)?.value);l++}if(n&&a<n){i=On(a,e);if(!i){e.raise("Missing right hand side of "+s)}}else i=On(NaN,e);if(n&&a==n||n==Number.MAX_SAFE_INTEGER){o=On(new Wn(s,a,t,i),e)}else o=new Wn(s,a,t,i)}return o}));An(((e,t)=>{const o=[];let s;while(s=e.fetchIf("identifier","."))o.push(s[0].value);let a;if(o.length==0){s=e.fetchIf("any",".","any")||e.fetchIf("any",",","any")||e.fetchIf("any");a=s&&(Array.isArray(s)?new Qi(+s.map((e=>e.value.replace(",","."))).join("")):new Qi(s.value))}else{s=e.fetchIf("identifier");const t=new Qi(s?s.value:0);a=o.length>0?o.reduceRight(((e,t)=>new Qi(isNaN(+e)?e:+e,t)),t):undefined}if(a&&typeof t=="number"&&!isNaN(t)&&t!=Number.MAX_SAFE_INTEGER)a=On(a,e);return a}));Tn((e=>{let t;if(e.fetchIf(":")){let o=false;let s=false;let a=1;while(!o&&!s&&e.peek(a)){o=Cn.binaryOperator.some((t=>e.peek(a)?.value==t));s=Cn.comparator.some((t=>e.peek(a)?.value==t));a++}if(o)t=In(e)}const o=e.fetchIf("any");return t?new mn(t):o&&new mn(o.value)}));Tn((e=>{e.raise(`Ignoring unknown token "${e.fetch()}"`);return undefined}));function Vn(e,t,o={input:[],identifier:[]}){return Gn[t?.class]?.(e,t,o)??t}const Gn={};function Kn(e,t){Gn[e]=t}Kn("And",((e,t,o)=>new Lo(t.rules.map((t=>Vn(e,t,o))))));var Zn;(function(e){function t(e,t){let o=undefined;let s;const a=typeof e=="string"?e:e.toString();if(t&&t.input&&t.identifier&&t?.input?.length>0&&t?.identifier?.length>0&&t.identifier.includes(a)){s=t.identifier.indexOf(a);o=isNaN(+t.input[s])?t.input[s]:+t.input[s]}return o}e.argument=t})(Zn||(Zn={}));Kn("EndsWith",((e,t,o)=>{const s=Zn.argument(t.needle,o);return s?new Gi(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("Every",((e,t,o)=>new Zi(Vn(e,t.criteria,o))));Kn("FunctionCall",((e,t,o)=>{const s=e[t.identifier];const a=s?zn(s.definition):undefined;const i=a?Vn(e,a,{input:o?.input?.concat(t.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Ji(t.identifier,t.argument,i)}));Kn("GreaterThan",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new en(s):t}));Kn("GreaterThanOrEqual",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new on(s):t}));Kn("Has",((e,t,o)=>{const s=Zn.argument(t.property,o);return s?new an(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("Includes",((e,t,o)=>{const s=Zn.argument(t.needle,o);return s?new ln(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("LesserThan",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new yn(s):t}));Kn("LesserThanOrEqual",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new fn(s):t}));Kn("Not",((e,t,o)=>new kn(Vn(e,t.criteria,o))));Kn("Or",((e,t,o)=>new wn(t.criteria.map((t=>Vn(e,t,o))))));Kn("Property",((e,t,o)=>new Hn(t.name,t.criteria&&Vn(e,t.criteria,o))));Kn("Some",((e,t,o)=>new dn(Vn(e,t.criteria,o))));Kn("StartsWith",((e,t,o)=>{const s=Zn.argument(t.needle,o);return s?new Un(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("Is",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new mn(s):t}));class qn extends So{constructor(e){super();this.criteria=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(e){return this.criteria.length==e.length&&this.criteria.every(((t,o)=>t.is(e[o])))}toString(){return`[${this.criteria.map((e=>e.toString())).join(", ")}]`}}zo((e=>Array.isArray(e)?new qn(e.map(To)):undefined));function Jn(e,t){const o=To(e);return t?o.is(t):o}function Xn(e,t){const o=To(e);return o.filter(t)}const Qn=d({emit:h()});var el;(function(e){let t;(function(e){e.type=d({property:b().optional(),properties:m(b(),b()).optional()})})(t=e.Element||(e.Element={}));e.type=t.type.extend({smoothlyFilterUpdate:Qn,smoothlyFilterManipulate:Qn})})(el||(el={}));const tl='.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 ol=tl;const sl=class{constructor(t){e(this,t);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Ao();this.expanded=false}updateHandler(e){e.stopPropagation();if(el.Element.type.is(e.target))this.filters.add(e.detail)}manipulateHandler(e){e.stopPropagation();this.updating=true;this.criteria=e.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((e=>e(this.criteria)));this.updating=false}filterFieldHandler(e){e.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=Ao(e.detail));this.filters.forEach((e=>e(this.criteria)))}}clear(){var e;(e=this.field)===null||e===void 0?void 0:e.clear();this.smoothlyFilter.emit(this.criteria=Ao());this.filters.forEach((e=>e(this.criteria)))}render(){return t(s,{key:"8d508a972373e320e8c176529e4e96c44e98ef02"},t("slot",{key:"8c6c5cfe4a9f15a933b923b2238fae2325e1e9f8",name:"bar"}),t("smoothly-filter-field",{key:"23b25507f9bd5b7ca557491b6b27a99d3aa28942",criteria:this.criteria,ref:e=>this.field=e}),this.criteria.toString()!=""&&t("smoothly-icon",{key:"dd857c516c6fa74d93d58152aac2791d9e83c650",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),t("div",{key:"47fd4b90b77237cc99131f6e6ee76d066ebc4bff",class:this.expanded?"container arrow-top":"hidden"},t("slot",{key:"3900c4604b1dd8684c7f5f0060dc70d49d9d2f9f",name:"detail"})),t("smoothly-icon",{key:"e516c6c71b87ca93b155cbf778a7cef79b590e2d",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),t("div",{key:"301873500cf475507be2b3a7cbe5bbc07e69f38b",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};sl.style=ol;const al=".sc-smoothly-filter-field-h{flex-grow:5}";const il=al;const nl=class{constructor(t){e(this,t);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.criteria=undefined}async clear(){var e;await((e=this.input)===null||e===void 0?void 0:e.clear())}filterFieldEmit(){var e,t;this.smoothlyFilterField.emit(zn((t=(e=this.input)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""))}render(){return t(s,{key:"2633f0911b393af632de050a1dcc1415564eff38",onKeyDown:e=>e.key=="Enter"&&this.filterFieldEmit()},t("smoothly-input",{key:"de303c1e68d0b27578ff1005f794c268c747b085",name:"filter",ref:e=>this.input=e,value:this.criteria.toString(),onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyBlur:e=>{e.stopPropagation();this.filterFieldEmit()},onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation()}},"Filter"))}};nl.style=il;const ll=".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 rl=ll;const cl=class{constructor(t){e(this,t);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(e){var t;if(e instanceof Lo&&e.rules.length>0)for(const o of e.rules){const e=this.isCriteria(o,this.property);if(e){this.needle=(t=e.needle)!==null&&t!==void 0?t:"";break}}else this.needle=""}isCriteria(e,t){const[o,...s]=t.split(".");return e instanceof Hn&&e.name==o&&(e.criteria instanceof ln&&e.criteria||e.criteria instanceof Hn&&this.isCriteria(e.criteria,s.join(".")))||undefined}inputHandler(e){e.stopPropagation();const t=e.detail[this.property];const o=e=>{let o=e;const s=t?this.getCriteria(t):undefined;if(o instanceof Lo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s?e!=-1&&o.rules.splice(e,1):e==-1?o.rules.push(s):o.rules[e]=s;o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(e){return this.property.split(".").reduceRight(((e,t)=>Fn(t,e)),rn(e))}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Hn&&e.name==o&&(s.length==0||!!e.criteria&&this.findInstanceOf(e.criteria,s.join(".")))}render(){return t("smoothly-input",{key:"bf48d8851eee96f60aac0a53887ed69c74215a9e",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>this.inputHandler(e)},this.label,t("slot",{key:"a9cf8cfc974ae9008e682bcb8ce1328abf4681d5"}))}};cl.style=rl;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 hl=dl;const bl=class{constructor(t){e(this,t);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((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}))}async componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(e){var t,o;(o=await((t=this.selectElement)===null||t===void 0?void 0:t.getItems()))===null||o===void 0?void 0:o.forEach((e=>this.items.set(e.value,{state:this.property.split(".").reduceRight(((e,t)=>({[t]:e})),e.value),item:e})))}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks)}}update(e){this.updating=true;if(e instanceof Lo&&e.rules.length>0)for(const t of this.items.values()){const o=e.rules.some((e=>this.isCriteria(e,this.property,t.state)&&(this.type=="array"?this.findInstanceOf(e,this.property):e.is(t.state))));t.item.selected=o}else this.items.forEach((e=>e.item.selected=false));this.updating=false}isCriteria(e,t,o){const[s,...a]=t.split(".");const i=e instanceof Hn&&e.name==s?this.isCriteria(e.criteria,a.join("."),o[s]):this.multiple?e instanceof Dn&&e.value.some((e=>e==o))||this.type=="array"&&e instanceof Rn&&e.criteria.some((e=>e==o)):e instanceof mn&&e.value==o;return i}selectHandler(e){e.stopPropagation();if(!this.updating){const t=e.detail[this.property];const o=e=>{let o=e;const s=this.getCriteria(t);if(!(o instanceof So))o=s?Ao(o,s):o;else if(o instanceof Lo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s&&e>=0?o.rules.splice(e,1):!s?undefined:e==-1?o.rules.push(s):o.rules[e]=s;o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Hn&&e.name==o&&(e.criteria instanceof Dn||e.criteria instanceof mn||e.criteria instanceof Rn||e.criteria instanceof Hn&&this.findInstanceOf(e.criteria,s.join(".")))}getCriteria(e){let t;if(this.multiple&&b().array({criteria:"minLength",value:1}).is(e))t=this.type=="array"?Pn(e):Mn(e);else if(typeof e=="string")t=Jn(e);else t=undefined;return t&&this.property.split(".").reduceRight(((e,t)=>Fn(t,e)),t)}render(){return t("smoothly-input-select",{key:"8c8521687fa9e4f676a2b5ec178e2ec8cecaeda4",ref:e=>this.selectElement=e,name:this.property,looks:this.looks,multiple:this.multiple,menuHeight:this.menuHeight,onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyItemSelect:e=>e.stopPropagation(),onSmoothlyInput:e=>this.selectHandler(e)},this.label&&t("span",{key:"cdaaaeec31f18cc52729a570a41c3140cf23c8fc",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),t("slot",{key:"a4e37edbc53abe52fef8530fbe18d3bfbecf4e6c",name:"items"}))}get element(){return a(this)}};bl.style=hl;const ml=".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 yl=ml;const ul=class{constructor(t){e(this,t);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(e){if(e instanceof Lo&&e.rules.length>0){this.active=Object.entries(this.properties).every((([t,o])=>e.rules.some((e=>{const s=!this.not?e:e instanceof kn?e.criteria:undefined;return o==""?!(s instanceof Hn&&s.name==t):this.isCriteria(s,t,o)}))))}else this.active=false}isCriteria(e,t,o){const[s,...a]=t.split(".");return e instanceof Hn&&e.name==s&&(e.criteria instanceof mn&&e.criteria.value==o||this.isCriteria(e.criteria,a.join("."),o))}activeHandler(e){const t=t=>{let o=t;e&&(this.active=!this.active);if(o instanceof Lo){for(const[e,t]of Object.entries(this.properties)){const s=!this.active||this.active&&t==""?undefined:this.not?vn(this.createCriteria(e,t)):this.createCriteria(e,t);const a=o.rules.findIndex((t=>this.findInstanceOf(t,e)));!s&&a>=0?o.rules.splice(a,1):!s?undefined:a==-1?o.rules.push(s):o.rules[a]=s}o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(t.bind(this))}createCriteria(e,t){const[o,...s]=e.split(".");return Fn(o,s.length==0?Jn(t):this.createCriteria(s.join("."),t))}findInstanceOf(e,t){const o=!this.not?e:e instanceof kn?e.criteria:false;const[s,...a]=t.split(".");return o instanceof Hn&&o.name==s&&(a.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,a.join(".")))}render(){return t("smoothly-icon",{key:"0d4679c2a62356f5fa7b537073553a2a04d022c7",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};ul.style=yl;var fl;(function(e){function t(e){return typeof e=="string"&&(e=="GET"||e=="POST"||e=="DELETE"||e=="HEAD"||e=="PATCH"||e=="PUT"||e=="OPTIONS"||e=="TRACE"||e=="CONNECT")}e.is=t;function o(e){e=e?.toUpperCase();return t(e)?e:undefined}e.parse=o})(fl||(fl={}));const pl={};function gl(e,...t){t.forEach((t=>pl[t]=e))}function kl(e){const t=e.headers.get("Content-Type");const o=t&&t.split(";");const s=pl[o?.[0]??"plain/text"];return s?s(e):e.text()}const vl={};function xl(e,...t){t.forEach((t=>vl[t]=e))}function wl(e,t){const o=vl[t?.split(";")[0]??""];return o?o(e,t):e}function Sl(e){return e.toLowerCase().replace(/-[a-z]/g,(e=>e.substring(1).toUpperCase()))}function Cl(e){const t=e.replace(/[A-Z]/g,(e=>"-"+e));return t[0].toUpperCase()+t.substring(1)}const zl=[["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 jl;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&zl.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=zl.find((([t,o,s])=>t==e));return[o?o[1]:Cl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?[...e]:Object.entries(e)).map((([e,t])=>{const o=zl.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[Sl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.entries=="function"}})(jl||(jl={}));var _l;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["method","url","parameter","search","remote","header","body"].some((t=>t==e))))&&fl.is(e.method)&&e.url instanceof URL&&typeof e.parameter=="object"&&Object.entries(e.parameter).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&typeof e.search=="object"&&Object.entries(e.search).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&(e.remote==undefined||typeof e.remote=="string")&&(e.header==undefined||jl.is(e.header))}e.is=t;async function o(e){const o=t(e)?e:a(e);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:e,...t})=>t)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:jl.to(s),body:["GET","HEAD"].some((e=>e==o.method))?undefined:await wl(await o.body,o.header.contentType)}}e.to=o;function s(e){const t=new URL(e.url);return{method:fl.parse(e.method)??"GET",url:t,header:jl.from(e.headers),parameter:{},search:Object.fromEntries(t.searchParams.entries()),body:kl(e),..."cf"in e&&{cloudflare:e.cf}}}e.from=s;function a(e){let t;if(typeof e=="string")t=a({url:e});else{const o=typeof e.url=="string"?new URL(e.url):e.url;t={method:fl.parse(e.method)??"GET",url:o,parameter:e.parameter??{},search:{...e.search,...Object.fromEntries(o.searchParams.entries())},remote:e.remote,header:e.header??{},body:e.body}}return t}e.create=a;(function(e){e.is=jl.is;e.from=jl.from;e.to=jl.to})(e.Header||(e.Header={}))})(_l||(_l={}));const Tl=typeof Response!="undefined"?Response:globalThis.Response;var Il=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Ol=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Ll,Al,El,Dl,Ml,$l,Rl,Pl,Nl;class Hl{get state(){return Il(this,Dl,"f")?"closed":"opened"}set onMessage(e){if(Il(this,Al,"f").length&&e){Il(this,Al,"f").forEach(e);Ol(this,Al,[],"f")}Ol(this,$l,e,"f")}set onClose(e){if(this.state=="closed"&&e)e();Ol(this,Rl,e,"f")}set onOpen(e){if(this.state=="opened"&&e)e();Ol(this,Nl,e,"f")}constructor(e,t){Ll.add(this);Al.set(this,[]);El.set(this,[]);Dl.set(this,false);Ml.set(this,void 0);$l.set(this,void 0);Rl.set(this,void 0);Nl.set(this,void 0);Ol(this,Ml,e,"f");if(t)Ol(this,El,undefined,"f");Il(this,Ml,"f").addEventListener("open",(()=>{if(Il(this,Nl,"f"))Il(this,Nl,"f").call(this);Il(this,Ll,"m",Pl).bind(this)}));Il(this,Ml,"f").addEventListener("message",(async e=>{const t=this.processReceived(e.data);Il(this,Ll,"m",Pl).call(this);if(Il(this,$l,"f"))Il(this,$l,"f").call(this,t);else Il(this,Al,"f")?.push(t)}));Il(this,Ml,"f").addEventListener("close",(()=>{if(Il(this,Rl,"f"))Il(this,Rl,"f").call(this);Ol(this,Dl,true,"f")}))}send(e){if(Il(this,El,"f"))Il(this,El,"f").push(this.processSend(e));else Il(this,Ml,"f").send(this.processSend(e))}}Al=new WeakMap,El=new WeakMap,Dl=new WeakMap,Ml=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Nl=new WeakMap,Ll=new WeakSet,Pl=function e(){Il(this,El,"f")?.forEach((e=>Il(this,Ml,"f").send(e)));Ol(this,El,undefined,"f")};class Fl extends Hl{processReceived(e){return e?.arrayBuffer?e.arrayBuffer():typeof e=="string"?(new TextEncoder).encode(e).buffer:e}processSend(e){return e}}class Ul extends Hl{processReceived(e){return JSON.parse(e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e)}processSend(e){return JSON.stringify(e)}}class Yl extends Hl{processReceived(e){return e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e}processSend(e){return e}}var Wl=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Bl=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Vl,Gl,Kl;class Zl{get json(){if(!Wl(this,Vl,"f"))Bl(this,Vl,new Ul(this.backend,this.isOpen),"f");return Wl(this,Vl,"f")}get string(){if(!Wl(this,Gl,"f"))Bl(this,Gl,new Yl(this.backend,this.isOpen),"f");return Wl(this,Gl,"f")}get arrayBuffer(){if(!Wl(this,Kl,"f"))Bl(this,Kl,new Fl(this.backend,this.isOpen),"f");return Wl(this,Kl,"f")}constructor(e,t){this.backend=e;this.isOpen=t;Vl.set(this,void 0);Gl.set(this,void 0);Kl.set(this,void 0)}createResponse(e={}){return{status:101,socket:this,header:e}}close(e,t){this.backend.close(e,t)}}Vl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap;var ql;(function(e){e.Factory=Zl})(ql||(ql={}));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 Xl;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&Jl.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=Jl.find((([t,...o])=>t==e));return[o?o[1]:Cl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?n(e):Object.entries(e)).map((([e,t])=>{const o=Jl.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[Sl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.forEach=="function"}function n(e){const t=[];e.forEach(((e,o)=>t.push([o,e])));return t}})(Xl||(Xl={}));var Ql;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||Xl.is(e.header))&&(e.socket==undefined||typeof e.socket.close=="function"&&typeof e.socket.json?.send=="function"&&typeof e.socket.string?.send=="function"&&typeof e.socket.arrayBuffer?.send=="function")&&(e.status!=undefined||e.header!=undefined||e.body!=undefined)}e.is=t})(Ql||(Ql={}));var er;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||Xl.is(e.header))&&(e.socket==undefined||e.socket instanceof WebSocket)}e.is=t;async function o(e){return new Tl(await wl(await e.body,e.header.contentType),{status:e.status,headers:new Headers(Xl.to(!e.header.contentType?.startsWith("multipart/formdata")?e.header:(({contentType:e,...t})=>t)(e.header))),...e.socket&&{webSocket:{...e.socket.createResponse().socket}?.backend}})}e.to=o;function s(e){return{status:e.status,header:Xl.from(e.headers),body:e.status==101?undefined:kl(e),...e.webSocket&&{socket:new ql.Factory(e.webSocket)}}}e.from=s;function a(e,t){const o=Ql.is(e)?{status:200,header:{},body:undefined,...e.socket&&{socket:e.socket},...e}:typeof e?.createResponse=="function"&&(t==undefined||Xl.is(t))?e.createResponse(t):{status:typeof e=="object"&&typeof e.status=="number"&&e.status||200,header:typeof e=="object"?{...e.header,...(e.status==301||e.status==302)&&e.location?{location:e.location}:{}}:{},body:!(typeof e=="object"&&!Array.isArray(e))||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof FormData?e:(({header:e,...t})=>t)(e),...e.webSocket&&{socket:new ql.Factory(e.webSocket)}||e.socket&&{socket:e.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof t=="string"?t:t?.contentType?t.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?i(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}e.create=a;function i(e){const t=new Uint8Array(ArrayBuffer.isView(e)?e.buffer:e).slice(0,4);return[37,80,68,70].every(((e,o)=>e==t[o]))}e.Header=Xl;e.Like=Ql})(er||(er={}));const tr=or(globalThis.fetch);tr.create=or;function or(e){return async t=>{const o=_l.create(t);return er.from(await e(o.url.toString(),await _l.to(o)))}}var sr;(function(e){function t(e){const t=new globalThis.FormData;t.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(e,"",t)))],{type:"application/json; charset=utf-8"}));return t}e.to=t;function o(e,t,a){return Object.entries(e).reduce(((e,[i,n])=>{n instanceof Blob?a.append(t?`${t}.${i}`:i,n):typeof n=="object"&&n?Array.isArray(n)?e[i]=s(n,t?`${t}.${i}`:i,a):e[i]=o(n,t?`${t}.${i}`:i,a):e[i]=n;return e}),{})}function s(e,t,a){return e.reduce(((e,i)=>{typeof i=="object"&&i?Array.isArray(i)?e.push(s(i,t,a)):e.push(o(i,t,a)):e.push(i);return e}),[])}async function a(e){const t={};for(const[o,s]of e.entries())await i(t,o.split("."),s);return t}e.from=a;async function i(e,[t,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?t=="*"?n(e,JSON.parse(await s.text())):typeof e[t]=="object"&&e[t]?n(e[t],JSON.parse(await s.text())):e[t]=JSON.parse(await s.text()):e[t]=s;else i(typeof e[t]=="object"&&e[t]?e[t]:e[t]={},o,s)}function n(e,...t){if(t.length){const[o,...s]=t;Object.entries(o).forEach((([t,s])=>l(s)?n(l(e[t])?e[t]:e[t]={},s):e[t]=o[t]));n(e,...s)}}function l(e){return e&&typeof e=="object"&&!Array.isArray(e)}e.isObject=l})(sr||(sr={}));function ar(e){const t=[];const o=(e,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":t.push(`${e}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))o(e?e+`[${t}]`:t,s[t]);break}};o("",e);return t.join("&")}function ir(e){const t=e=>typeof e=="object"&&Object.keys(e).sort().every(((e,t)=>`${e}`==`${t}`))?Object.entries(e).sort().map((e=>typeof e[1]=="object"?t(e[1]):e[1])):typeof e=="object"?Object.fromEntries(Object.entries(e).map((e=>[e[0],t(e[1])]))):e;const o=(e,t,s)=>{e[t[0]]=t.length>1?o(e[t[0]]??{},t.slice(1),s):s;return e};const s=e.split("&").map((e=>e.split("=",2))).map((([e,t])=>[decodeURIComponent(e).split("[").map((e=>e.replace("]",""))),decodeURIComponent(t.replace(/\+/g," "))]));return s.reduce(((e,[s,a])=>t(o(e,s,a))),{})}gl((async e=>await e.text()),"text/plain","text/html");gl((async e=>await e.json()),"application/json");gl((async e=>await e.arrayBuffer()),"application/pdf");gl((async e=>sr.from(await e.formData())),"multipart/form-data");gl((async e=>ir(await e.text())),"application/x-www-form-urlencoded");xl((async e=>typeof e=="string"?e:e.toString()),"text/plain","text/html");xl((async e=>JSON.stringify(e)),"application/json");xl((async e=>e),"application/pdf");xl((async e=>ar(e)),"application/x-www-form-urlencoded");xl((async e=>e instanceof globalThis.FormData?e:sr.to(e)),"multipart/form-data");var nr;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.clear=="function"}e.is=t})(nr||(nr={}));var lr;(function(e){let t;(function(e){e.type=d({edit:h(),readonly:y(),listen:h(),reset:h(),setInitialValue:h()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=d({emit:h()});e.type=t.type.extend({changed:y(),value:A().optional(),smoothlyFormDisable:o});e.is=e.type.is})(lr||(lr={}));var rr;(function(e){e.types=["plain","grid","border","line","transparent"];e.type=b(e.types);e.is=e.type.is})(rr||(rr={}));var cr;(function(e){let t;(function(e){e.type=d({register:h(),unregister:h(),getValue:h(),color:c.type.optional(),name:b(),invalid:y().optional(),looks:rr.type,defined:y().optional(),binary:h().optional()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=d({emit:h()});e.type=t.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyInputForm:o.optional(),parent:lr.type.optional()});e.is=e.type.is;function s(e){if(e.parent instanceof br){e.parent.removeInput(e.name)}}e.formRemove=s;function a(e){e.smoothlyInputLoad.emit((t=>e.parent=t))}e.formAdd=a})(cr||(cr={}));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 hr=dr;const br=class{constructor(t){e(this,t);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((e=>this.readonly=e))}async removeInput(e){if(this.element.isConnected){this.value=u.remove(this.value,e);this.inputs.delete(e);this.smoothlyFormInput.emit(u.convertArrays(this.value))}}async listen(e,t){var o;var s;((o=(s=this.listeners)[e])!==null&&o!==void 0?o:s[e]=[]).push(t);t(this)}async watchValue(){var e,t,o;this.changed=[...this.inputs.values()].some((e=>lr.type.is(e)?e.changed:true));if(this.validator){const o=(t=(e=this.validator)===null||e===void 0?void 0:e.flaw(this.value).flaws)===null||t===void 0?void 0:t.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{});for(const[e,t]of this.inputs.entries()){this.validate(o,e,t)}}(o=this.listeners.changed)===null||o===void 0?void 0:o.forEach((e=>e(this)))}validate(e,t,o){var s,a;if(t.includes(".")){const[i,...n]=t.split(".");const l=(a=(s=e===null||e===void 0?void 0:e[i])===null||s===void 0?void 0:s.flaws)!==null&&a!==void 0?a:[];this.validate(l.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{}),n.join("."),o)}else{const s=e===null||e===void 0?void 0:e[t];o&&(o.invalid=!!s)}}watchReadonly(){var e;(e=this.listeners.changed)===null||e===void 0?void 0:e.forEach((e=>e(this)))}smoothlyInputLooksHandler(e){e.stopPropagation();e.detail(this.looks,this.color)}async smoothlyInputHandler(e){this.value=u.merge(this.value,e.detail);this.smoothlyFormInput.emit(u.convertArrays(this.value))}windowSubmitHandler(e){e.target==this.element&&e.detail.result(false)}submitHandler(e){this.action&&e.stopPropagation()}async smoothlyInputLoadHandler(e){var t,o;e.stopPropagation();e.detail(this);if(cr.Element.is(e.target)){if(await((o=(t=e.target).binary)===null||o===void 0?void 0:o.call(t)))this.contentType="form-data";const s=await e.target.getValue();this.value=u.merge(this.value,{[e.target.name]:s});this.smoothlyFormInput.emit(u.convertArrays(this.value));this.inputs.set(e.target.name,e.target)}}async smoothlyFormDisableHandler(e){e.stopPropagation();e.detail(this.readonly)}async submit(e){this.processing=new Promise((t=>{this.smoothlyFormSubmit.emit({value:u.convertArrays(this.value),result:t,type:e==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(O.execute("Submitting form",(async()=>{const s=e?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const a=await tr(_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 i=!a||(a===null||a===void 0?void 0:a.status)<200||a.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];t(i[0]);return[...i]})))}}));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 e=>nr.is(e)&&e.clear())));this.smoothlyFormClear.emit()}async edit(e){await Promise.all([...this.inputs.values()].map((async t=>lr.Element.type.is(t)&&t.edit(e))));this.readonly=!e;this.smoothlyFormEdit.emit(e)}async reset(){await Promise.all([...this.inputs.values()].map((e=>lr.Element.type.is(e)&&e.reset())));this.changed=[...this.inputs.values()].some((e=>lr.type.is(e)?e.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((e=>lr.Element.type.is(e)&&e.setInitialValue())))}render(){return t(s,{key:"4bcff20afa0c1467d5e404f1f43df8121d3af299"},t("smoothly-spinner",{key:"eabacd57d478a69cef2380d874368fcb70045414",overlay:true,hidden:!this.processing}),t("form",{key:"7928cf5c376f3a5b37bebd3b4fe2d37e5c84af19",onSubmit:!this.prevent?undefined:e=>e.preventDefault(),name:this.name},t("fieldset",{key:"d265a35e7a9b148cbc25529d8fec13d3bc8b99b7"},t("slot",{key:"f7d13fe2420dd95b89f1797c575655030bd24efe"})),t("div",{key:"610e884eba8398fefa567ce9c20fa7c82b1c4f3a"},t("slot",{key:"8619569518577e4d7208a089b8035788de8c5a98",name:"clear"}),t("slot",{key:"d799c17f6c8c101cd058452ec0c5ac0fa4920f08",name:"edit"}),t("slot",{key:"1d630d00faef80319699f4c34b782dfb3e9952ba",name:"reset"}),t("slot",{key:"f55189740776bc7529a7750bd87524e778d3848d",name:"delete"}),t("slot",{key:"a05495198a8f9a509d8a13edf13626f45c779ac6",name:"submit"}))))}get element(){return a(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};br.style=hr;const mr=".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 yr=mr;const ur=class{constructor(t){e(this,t)}render(){return t(s,{key:"d1a1ede38040f5b5e6bd5e838b5a550ce262ed1b"},t("div",{key:"3cf3e63c28b5429fe4758e5f78209db968728f3c"},t("smoothly-form-demo-all",{key:"20f3cc618aa4d43f4e2b8f45f8d5086eb1b64974"}),t("smoothly-form-demo-pet",{key:"ed75d9093ad32d3c96dc351b237f572653d61bd0"}),t("smoothly-form-demo-card",{key:"d330a9da5f85438404481c9dd27773bb52e84f19"}),t("smoothly-form-demo-login",{key:"6fab86879750d7a9a9a7b1015f0ee6fdc48efe8d"}),t("smoothly-form-demo-prices",{key:"3f55668d9e139241facdf4f0ca53a4c354eeb4d8"}),t("smoothly-form-demo-typed",{key:"083dfe2ee9ce90ae3456575214f0b5cda0977191"}),t("smoothly-form-demo-transparent",{key:"0bd752cae80162cb289ad7de49dc811fd16a11ea"}),t("smoothly-form-demo-date",{key:"b2b53a2fcd431d1a02cbf5460715bb826aa990e2"}),t("smoothly-form-demo-date-range",{key:"6eafe3c351e4046f663e5ebae243c2af667b1cd7"}),t("smoothly-form-demo-controlled",{key:"ef5b1c51634cde1c6d218cac3eed1997ebd28e3a"})))}};ur.style=yr;const fr=class{constructor(t){e(this,t)}render(){return t(s,{key:"0f21d33f0e276513e166b7d8c4d28cb0fe7091a1"},t("h2",{key:"4a2468e208c16e4167f1178e330cc3a728320655"},"All inputs"),t("smoothly-form",{key:"0822ae30e4c7f3cd554a78487e885c57d8c9ff95",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:e=>{Object.entries(e.detail.value).forEach((([e,t])=>console.log(e,t)))}},t("smoothly-input",{key:"1c9e5c3e5f1c716f67b2c5ec2fb651572744b333",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"90733dfb428a9f970243bba603d3d197604a9455",showLabel:false,name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"55bf51e2e1cec08c3290f9b17a4315458edf5d3e",size:"icon",slot:"end"})),t("smoothly-input",{key:"1b47ddc2f7e13edd32fd2df6e170bc121f51dc2d",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"1a6d49a72b07eb3f3d75be7ee2fcf313ab45e14f",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"00d26bda7e79761dda3fed03b7740c379da4b32e",clearable:true,name:"radioFirstInput"},t("label",{key:"e0c10ccf7862d02495f2a21fa6a5b3e6e5a81366",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"7fc58ab2d7d56c5b56a5d85dc55948b6cb80daef",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"f759c7030781b224327d6d3137dc7037d47572c8",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"7e7b2315ada97801325de0092ee7cab101bc15b7",value:"third"},"Label 3")),t("smoothly-input-color",{key:"b8e88392cbabec7fbfedcfb911e93bea40519890",name:"color"},"Color"),t("smoothly-input-select",{key:"86a90a29af509f435db9da5d77a0b90e1f79a598",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"2e124336d215afd82376662bcc36e32c9f43308a",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"e0c36476de42fa44637661e4a9409b55d384c660",value:"1"},"January"),t("smoothly-item",{key:"96b6696ca6ede81eeec72b77439d40822daff299",value:"2"},"February"),t("smoothly-item",{key:"659caf5ba8d4b51989b50a3206117b97a1e598f0",value:"3"},"March"),t("smoothly-item",{key:"573738299642bb2fc635695f36da963c8dd51529",value:"4"},"April"),t("smoothly-item",{key:"8b742ac119480699df135c0a185502f140a9d313",value:"5"},"May"),t("smoothly-item",{key:"79fb2a26a13dec2e83255c2c46ac6148cb61527b",value:"6"},"June"),t("smoothly-item",{key:"fe4b4a0dfa8a528fc15dcb66d5f82576bf44843e",value:"7"},"July"),t("smoothly-item",{key:"492b19d88d76e555270b1ca2e08228b815ec732d",value:"8"},"August"),t("smoothly-item",{key:"1c0fb21d9a40cfa9f199473c0db7bfa68e2f0ce7",value:"9"},"September"),t("smoothly-item",{key:"c868e100c1e9e1aac4bd9ad361157e2adccc63d0",value:"10"},"October"),t("smoothly-item",{key:"cbc309fae9cef27950776c56f3d4a71afbcdc1fb",value:"11"},"November"),t("smoothly-item",{key:"fdba2e89192bc16d5aaf80504b86c519fb227b03",value:"12"},"December")),t("smoothly-input-select",{key:"a9897fd31987b376259a08b01917a4f9ef0752f3",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"639d58a3b335a031d1574d5d8929a6b05e68634f",value:"folder",selected:true},t("smoothly-icon",{key:"98d6aec9c4db1a9700b089bfdcbaf81540a09263",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"4f6d162120f779e881b21a75c54cb8cf747c67c5",value:"camera"},t("smoothly-icon",{key:"eadbd3179e5aabe9c8fdd2d029e5c7df06b5ac6d",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"aeebf927e1effc92ec1bbc9fc72230daa9b612c2",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"e8bd53788ece3fda1352417d227cad8ffd5865b6",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-range",{key:"1e937d34e6882d02922f9c8f325f25b41524908e",step:1,name:"range3",value:20,label:"Range"}),t("smoothly-input",{key:"fef6e5123d81af109a6405ab1f0489ce9c626cd1",name:"pets.0.name"},"First Pet's Name"),t("smoothly-input-range",{key:"56a6e3916e259d2c58fd2d80fc6cccf19442e38d",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),t("smoothly-input",{key:"5d9a6b0b92c6b3fbb992f17c102879729b6a0cd1",name:"pets.1.name"},"Second Pet's Name"),t("smoothly-input-range",{key:"ec65719d0497353d8b434a1854bf9e064ee9089a",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),t("smoothly-input",{key:"af10efc3fcea51c8521942656b1cdee952c1bb5e",name:"pets.2.name"},"Third Pet's Name"),t("smoothly-input-range",{key:"862de755b1e343578226a1308e5e78cb8f7c4a85",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),t("smoothly-input-file",{key:"3d9f140826605a5ebafe05a2784722af204cad75",name:"profile",placeholder:"Click or drag your profile picture here..."},t("span",{key:"4e6feb9e29c018ac8dc1510c0b4224f19470e856",slot:"label"},"Profile"),t("smoothly-icon",{key:"1020a98e15c33c0b2de470af477de457a2f28741",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),t("smoothly-input",{key:"b39173b9b8ccabd790ab8ec26b6ccdaa05397d4a",type:"duration",name:"duration",value:{}},"Duration"),t("smoothly-input-clear",{key:"a6727a03d7855b9741e0f2a3fa82f6e220f8f46d",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),t("smoothly-input-edit",{key:"f9591a4c18cccc97633c83033df084378a8d6826",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"22d67028a219c030fc49981ddeea1f6c6c8ece2e",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"bbed800551c5701c3df9f8405d8630b497cf5efd",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"63c88955ec02dd4a034a55b5dcc09a0824f118e0",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const pr=class{constructor(t){e(this,t)}render(){return t(s,{key:"27bb1a0cce6b941674329084ee89a89ffd834cad"},t("h2",{key:"517da49391df49740f1fa2ec2724b706df8ff253"},"Card"),t("smoothly-form",{key:"50c65dcf24441dd4b0ef889eae29a631bf2d08f5",looks:"grid",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail))},t("smoothly-input",{key:"30040918cb4bfcb6aff2aaf2387e15fc920b637d",type:"card-number",name:"card"},"Card #"),t("smoothly-input-submit",{key:"925ae95728616ae1ecb4130da437380820ffbfe7",size:"icon",slot:"submit",color:"success",fill:"solid"}),t("smoothly-input",{key:"c94bc00a99483172d37171df0d76cbe4b1a306d4",type:"card-expires",name:"expires"},"Expires"),t("smoothly-input",{key:"4e1d172d4f24463480b4260782e0da5e03c79648",type:"card-csc",name:"csc"},"CVV/CVC"),t("smoothly-input",{key:"38f2c00914b9fdb451490c2a1a39f3fd0dcac810",type:"text",name:"name.first"},"First Name"),t("smoothly-input",{key:"5d478d5c6a341a3db81eef8096ebce73afe96d2f",type:"text",name:"name.last"},"Last Name")))}};const gr=class{constructor(t){e(this,t);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=S.now()}nameChanged(e,t){console.log(`updated name from '${t}' to '${e}'`)}async submitHandler(e){e.stopPropagation();console.log("Received event. Processing...",e.detail);if(!(typeof e.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof e.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!j.is(e.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((e=>window.setTimeout(e,1e3)));this.name=e.detail.value.name;this.date=e.detail.value.date;this.currency=e.detail.value.currency;console.log("Finished processing successfully. Resolving true.");e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"04d995a76c5f9c4549fcd74cb9f394bb2af90e2a"},t("h2",{key:"55e6f33bb11d352b3af7230accd23e27ae2c0024"},"Controlled"),t("smoothly-form",{key:"0ef3168da2f1c9621b0308b24119c0364881c0c6",readonly:true,looks:"grid",onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input",{key:"8badcb37b4a6452d5a201bd8094ba158108bf7aa",type:"text",name:"name",value:this.name},"Name"),t("smoothly-input-select",{key:"1efe7c4951dca1aa64401334424b43f02e647398",name:"currency"},t("span",{key:"2b36f82e17c99e916c8e8945577d23ab51bd2c45",slot:"label"},"Currency"),this.currencies.map((e=>t("smoothly-item",{selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"f990f004092a0695318e0f5f4cd2d74bb3c3e00a"},"Dummy"),t("smoothly-input-month",{key:"ddff7d9b07962bbcbe7df05f8d8eccfa61b98771",name:"date",value:this.date,next:true,previous:true},t("span",{key:"0d3753a5d6df09ce0e6985cb93395b630d438cc1",slot:"year-label"},"Year"),t("span",{key:"b65124754a2fe96dbdafa3d7424ba45b824d4527",slot:"month-label"},"Month")),t("smoothly-input-edit",{key:"7209bd3e3a05e6b1c07e41cd093234e44f74e1c3",slot:"edit",size:"icon",color:"primary",fill:"default"}),t("smoothly-input-reset",{key:"cf7211c8a08fee082a295e75ec31f146cd0052a1",slot:"reset",size:"icon",color:"warning",fill:"default"}),t("smoothly-input-submit",{key:"8cbfd5c9f1d020035701235eab374d8c14e2aaab",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const kr=".sc-smoothly-form-demo-date-h{display:block}";const vr=kr;const xr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=d({date:f("isoly.Date",S.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(O.failed(`Type is incomplete.`))}else{this.notice.emit(O.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"f630251d93105a022fddd00df614c31e67e8c7b5"},t("h2",{key:"58288b3ece987d7ce4ec06cd59c3bcd46dc19a72"},"Date input"),t("smoothly-form",{key:"82d07ac321b52972a8eee2d5e0e8dcb6ecf619e3",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date",{key:"80ceded85c7985664236c315978f05654b1cd882",name:"date"},"Date"),t("smoothly-input-submit",{key:"ec11a355dcf06a70b4356ea57522362a80a68d85",slot:"submit"},t("smoothly-icon",{key:"553b78fe04fbbb938d500856a1fdea0fc084c86e",name:"checkmark-outline"}))))}};xr.style=vr;const wr=".sc-smoothly-form-demo-date-range-h{display:block}";const Sr=wr;const Cr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=d({range:f("isoly.DateRange",_.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(O.failed(`Type is incomplete.`))}else{this.notice.emit(O.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"48c35dad0061babccde136943e35ae31a1a2bb03"},t("h2",{key:"3c22dada7556902e648381cca190f7769dc35313"},"Date-range input"),t("smoothly-form",{key:"0b023b3f51c2b03eb8f3a3c352b568cddcd4f7da",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date-range",{key:"906f8f3abc29524353e8416d87ac2f3ed588b798",name:"range"},"Range"),t("smoothly-input-submit",{key:"cf9f0712c8179b9729ed8139d04766ef70f58242",slot:"submit"},t("smoothly-icon",{key:"1754fc104edbb8a19e683ffee519567296fddfd8",name:"checkmark-outline"}))))}};Cr.style=Sr;const zr=class{constructor(t){e(this,t)}render(){return t(s,{key:"4b0e611d58d138b6b10a3abac45fee93aa86a317"},t("h2",{key:"69ba68609f48d993303b35b1ded910dfc6fe77f6"},"Login"),t("smoothly-form",{key:"5dbe7e1e2176484b750b4b8b333b9e840e135136",looks:"border"},t("smoothly-input",{key:"f87daf7b2a9d8c442f28626209cd84e4f9ac3e37",type:"text",name:"username"},"Username"),t("smoothly-input",{key:"8fe4c4a8bd612018c0dc1170b60f2bb40e9696f5",type:"password",name:"password"},"Password"),t("smoothly-input-reset",{key:"c48dcd36130b3b8aa4f442e2ac450afe7f30a810",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"c4f617a7542706566a461675ae2d6828b6a532d9",slot:"submit"})))}};const jr='.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=jr;const Tr=class{constructor(t){e(this,t);this.hasOwner=false;this.owner={};this.value=undefined}render(){var e,o;return t(s,{key:"3c53b7ed2d4c3716346637d021d47503fd43a14a"},t("h2",{key:"ee64a8c839e53d186fc3f5a9e5526ce7f4146098"},"Pet"),t("h3",{key:"64fba77b59e28b7c43dfa4d3a7d6c6d67e31896c"},"Value"),t("smoothly-form",{key:"f4b9585a5f2f9dc69b8e29aba90eefee061b3059",looks:"border",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail)),onSmoothlyFormInput:e=>this.value=Object.assign({},e.detail)},t("smoothly-input",{key:"4e51fb1ed76a65e4290a0886fc520887d0e895ce",type:"text",name:"name.first"},"Name"),t("smoothly-input",{key:"7efe762b7a9374a5e999383a883c2256bfc0ac35",type:"integer",name:"age"},"Age (Years)"),t("smoothly-input-checkbox",{key:"ffcec51e398c836e6cff2ce5dfda39482cc3cfa7",name:"hasOwner",onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{this.hasOwner=e.detail.hasOwner;e.stopPropagation()}},"Has Owner"),this.hasOwner&&t(i,{key:"0aa46abc16f4c78b43031396758719a0ded37b14"},t("smoothly-input",{key:"334e20752a37f0335350151cb0a75e893ee1afae",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:e.detail["owner.firstName"]})},"Owner First Name"),t("smoothly-input",{key:"8026b5c10ae2523f730a861edec471db21190e14",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:e.detail["owner.lastName"]})},"Owner Last Name"),t("smoothly-input-file",{key:"fbf744db0cecd2852d45d20374c3d809d2ba66d7",name:"owner.picture"},t("span",{key:"283c48ba1b67474b7c857d0e5fb1c9c6148cea6f",slot:"label"},"Owner picture")),t("smoothly-input-date",{key:"63e16605bad9e35e1c6c60e2db2748d1db328c4d",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:e.detail["owner.birthday"]})},"Owner birthday"),t("smoothly-input-date-range",{key:"70da494c5ed18ff14fca67a3a28d1c4cb33967e9",name:"owner.ownedRange",start:(e=this.owner.ownedRange)===null||e===void 0?void 0:e.start,end:(o=this.owner.ownedRange)===null||o===void 0?void 0:o.end,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:e.detail["owner.ownedRange"]})},"Owner ownedRange"),t("smoothly-input-range",{key:"6b83cae51495445730e8df1cfdee739984d22901",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{height:e.detail["owner.height"]})},"Owner's Height"),t("smoothly-input-select",{key:"37b12e61593accb16cf090da36cbadd5352fe69f",name:"owner.favoriteHat"},t("span",{key:"522e857a7afb2329b422b407703cbee51612d675",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o,selected:this.owner.favoriteHat==e},e)))),t("smoothly-input-color",{key:"babff66ef827128dc76008d19917eaba6d5b8bd5",name:"owner.favoriteColor",value:this.owner.favoriteColor?p.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:e.detail["owner.favoriteColor"]})},"Owner's Favorite Color"),t("smoothly-input-radio",{key:"51f58bf37b41d9f8eca8700dfd26b4083d2f4087",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:e.detail["owner.favoritePizza"]})},t("span",{key:"c77c02447327750693eb73b6414dbce9bb0d9855",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"6918e8eee355a1e951289cb2b08ae1ae44b4d50d",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:e.detail["owner.hasPet"]})},"Has Pet")),t("smoothly-summary",{key:"86339dace672dec3831ad33a89a8205d65a44067"},t("span",{key:"1f46ab814504129410b0e0b5a324504eb9c7a3bd",slot:"summary"},"Summary"),t("div",{key:"a2e1f716a3bed994318f944dd84addf09fa68e38",slot:"content"},t("smoothly-input",{key:"703e71027659f823a979687d95a43c08104fd138",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),t("smoothly-input-file",{key:"7241934c607ef4775e4e5b5bdd8f16c00e7cb5ba",name:"summary.picture"},t("span",{key:"3e54f9ffc78d32b3f6ae6922f1ffcd93c49d58b2",slot:"label"},"Summary picture")),t("smoothly-input-date",{key:"53f53274ba847482ac4a44894f052c95f02b19d7",name:"summary.birthday"},"Summary birthday"),t("smoothly-input-date-range",{key:"c0463d1f8b712e7d9bc067348702c5d8114758b3",name:"summary.ownedRange"},"Summary ownedRange"),t("smoothly-input-range",{key:"8a0835af7cac1a961c89563984b7f4299086785e",name:"summary.height"},"Height"),t("smoothly-input-select",{key:"888df31b68297ba73368f93b598f8897871fac7d",name:"summary.favoriteHat"},t("span",{key:"54f47458eeec94270e433e76b486f51b8bda553c",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-month",{key:"aa1b528332dc4e384714e8434eb8eaccb1238af1",name:"summary.month"},"Summary Month"),t("smoothly-input-color",{key:"03e528e7e497481bdb8741529cf2f35ce3c063ed",name:"summary.color"},"Summary Color"),t("smoothly-input-radio",{key:"e394ffc5c8d91b7e9a7a5a85db6d77aba7480445",name:"summary.favoritePizza"},t("span",{key:"f40af9c8a324eae7e098baf45a7fc62a51db44a9",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"3a724ec08f9db20e8c8a6adc975908804273aff8",name:"summary.hasPet"},"Has Pet"))),t("smoothly-tabs",{key:"7393b61a3852772efcb92b287310ba4f1d825a89"},t("smoothly-tab",{key:"36527d22fdcb6c3fed70c817f84b40457daf6e3b",label:"Dog"},t("smoothly-input",{key:"112b46f947bec3350bd71d70983dd6cb2bd5f023",type:"text",name:"dog.breed"},"Breed"),t("smoothly-input-file",{key:"70cb42494c87433b376381dadf6d76c0d2e173dd",name:"dog.picture"},t("span",{key:"5081c67a2c38b56ef2c63038363b66f6a9399848",slot:"label"},"Dog picture")),t("smoothly-input-date",{key:"b2a7afc24117ff0f748461de59be5b53b4c11f8e",name:"dog.birthday"},"Dog birthday"),t("smoothly-input-date-range",{key:"8ea4837d9c59dccea4a4c03ab5d3d64e9e61f6bc",name:"dog.dateRange"},"Dog date range"),t("smoothly-input-select",{key:"d1df59726ccdf95cc296eb7dfefe7f242644012b",name:"dog.favoriteHat"},t("span",{key:"daf751759c26ed6f814bd9a08fc3dcd1e87bc727",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-color",{key:"1139d9780da74962df9e2cad90c5215a4cbbc719",name:"dog.favoriteColor"},"Dog's Favorite Color"),t("smoothly-input-radio",{key:"f420307f2437e68f198dda8e7d883e8e48825385",name:"dog.favoritePizza"},t("span",{key:"0bbfda786c21f78d3c11802ff91eaf407c61bbfe",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"b4ed76b8df431ac2690d1e9fc788f1224bccd1da",name:"dog.hasPet"},"Has Pet")),t("smoothly-tab",{key:"7676494d9d81eabef36fc63d84a009792ab896bb",label:"Cat",open:true},t("smoothly-input",{key:"1aae371a8c2744e30d1883b28edb28fd3865a847",name:"cat.favoriteFood"},"Favorite Food"))),t("smoothly-input-submit",{key:"594e2fc70306fcf0c2adc90ba9ef7712a64fcff9",size:"icon",slot:"submit",color:"success",fill:"solid"})),t("smoothly-display",{key:"c3ba7a735d158a39102d98ac5cf113c74c2596cd",type:"json",value:this.value}))}};Tr.style=_r;const Ir=class{constructor(t){e(this,t)}render(){return t(s,{key:"c38c5381d2318cce67e32a9a776d68772c601ee8"},t("h2",{key:"c1314867af69f2237b64683bd7221ede1438cbac"},"Prices"),t("smoothly-form",{key:"69192fbd1de099c4a0989d1ca8a6fa2d115f47e3",looks:"line"},t("smoothly-input",{key:"6939a3f45e811472ff89bf40e58653bb9f44208e",type:"price",name:"no"},"No currency"),t("smoothly-input",{key:"100c148021dbad1f1abf46d6e87cf1e2a9e12f43",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),t("smoothly-input",{key:"c35b955e1c1582913248d919cb64d170947423e2",type:"price",name:"usDollar",currency:"USD"},"USD"),t("smoothly-input",{key:"ae21229ce2c2f7e1e4ff4e3892cf4afa6efdadb5",type:"price",name:"pounds",currency:"GBP"},"GBP"),t("smoothly-input",{key:"c21a6d4e2d388a28c4b14da1a0c98cd8a6ab9920",type:"price",name:"peso",currency:"UYW"},"UYW"),t("smoothly-input",{key:"208232229cf7c6e292fcbe179a00bab9399aaa2d",type:"price",name:"iceland",currency:"ISK"},"ISK"),t("smoothly-input",{key:"446f7eb15e73b5a3e10a9760cc6041d0c922a0f3",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),t("smoothly-input-reset",{key:"b267b8686d2bae8f33f003789eab99d37f6c04ba",slot:"reset",fill:"default",type:"form",color:"warning"}),t("smoothly-input-submit",{key:"9468f459a23ae781d660134ee16b7ba2c758153c",slot:"submit"})))}};const Or=class{constructor(t){e(this,t)}render(){return t(s,{key:"75f6427077012bf2ab455b5ce1ee551f4ada6152"},t("h2",{key:"fa603e4a15cf63c027b88c24c8ff31b2f7692fab"},"Transparent"),t("smoothly-form",{key:"e91c69cc412d1ceaf5d3b160585125f0008a559b",looks:"transparent",onSmoothlyFormSubmit:e=>console.log(e.detail.value)},t("smoothly-input-file",{key:"627abbdcd742e2d32db644d09ffe548db35ef6af",name:"file"},t("span",{key:"c33dea3dac428f2e0a2af92c7595f8e493ff403d",slot:"label"},"File"),t("smoothly-icon",{key:"6ea09d804e3b1ad46c73ae1d1a1dc71ebb34cdc9",slot:"button",name:"folder-open-outline",size:"small"})),t("smoothly-input",{key:"0a22f7f505e1ec9ecc3d6aec656a3944e6d24e3a",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),t("smoothly-input-date",{key:"ecf89e51ee2c9d1c1c749f9072eec14dfa31971a"},"Date"),t("smoothly-input-date-range",{key:"7e80495bd6d8f6b5677c9b32bd9a7c67d045fc88"},"Date Range"),t("smoothly-input-select",{key:"82030484abfbe81c584b477e605901919edb8e8b",name:"transport"},t("smoothly-item",{key:"6fa3bd409901bb2526eb236e32efdb8b3b8209f4",value:"plane"},t("smoothly-icon",{key:"31be61e295c8a3640700cef252689b8c76c2ce2f",name:"airplane-outline"})),t("smoothly-item",{key:"48973972d5309f33bae2cbabbdd5040aef4820bb",value:"car"},t("smoothly-icon",{key:"648078e77ec0d36f889fe51ac994f865ab58dc30",name:"car-outline"})),t("smoothly-item",{key:"469417f682e779831ef0b003873d4a6f5307d1e4",value:"bus",selected:true},t("smoothly-icon",{key:"34cb5e2fd9e85de8baa46258c8cbb1025291bbbe",name:"bus-outline"}))),t("smoothly-input-submit",{key:"b48e0bfc449f53eb489e9c736a77c9942174bacb",icon:"checkbox-outline"})))}};var Lr;(function(e){e.type=d({name:d({first:b(),middle:b().optional(),last:b()}),age:g((e=>18<=e&&e<=120)),country:f("CountryCode",T.is),birthday:f("Date",S.is)})})(Lr||(Lr={}));const Ar="";const Er=Ar;const Dr=class{constructor(t){e(this,t)}render(){return t(s,{key:"b46a4c5b96614398be82f63e161f11e713d671ac"},t("h2",{key:"76688ea6e7bdddf57e60ddceeac54b459297082c"},"Typed Contact"),t("smoothly-form",{key:"f106191bf794c6e7ca352e1ccf3391bd5d0c4c2c",validator:Lr.type},t("smoothly-input",{key:"79c34bb9332b9b96482a03cbc49e1b53cdf21f74",name:"name.first"},"First Name"),t("smoothly-input",{key:"f4c9a1939e18253e9febd36a065ccfe84527dbff",name:"name.middle"},"Middle Name (optional)"),t("smoothly-input",{key:"57bb7482d53e956fd0fa94b3838e7dea38ab6453",name:"name.last"},"Last Name"),t("smoothly-input",{key:"2a91d9a949dd98ec632e09b9e8f7e5fa597a4e85",name:"age",type:"integer"},"Age (18-120)"),t("smoothly-input-select",{key:"3ae0b13a37c317600f0f314b337286921e214d8b",name:"country"},t("span",{key:"4ea1c8a2432e4d9af68934bfcbe635208e959da1",slot:"label"},"Country"),T.types.map((e=>t("smoothly-item",{value:e},L(e))))),t("smoothly-input-date",{key:"1b0326b16e1954d453e0117004b0ddd0222001ae",name:"birthday"},"Date of birth"),t("smoothly-input-reset",{key:"914fab1b08af093f2a5bf89227c3b6995a75f1e2",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"6042757f6fc6b44e4190525f81b0dbbc68a7b935",slot:"submit",size:"icon",color:"success"})))}};Dr.style=Er;const Mr=".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 $r=Mr;const Rr=class{constructor(t){e(this,t);this.trigger=o(this,"trigger",7);this.message2=o(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const e=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return e&&e.contentWindow||undefined}get defaultOrigin(){const e=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return e?e[0]:"*"}componentDidLoad(){var e;if(this.contentWindow)k.listen((e=this.origin)!==null&&e!==void 0?e:this.defaultOrigin,((e,t)=>{if(e==this.name)if(r.is(t))this.trigger.emit(t);else this.message2.emit({destination:e,content:t})}),window)}async send(e,t){var o,s;if(typeof e=="string")k.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+e,t,this.contentWindow);else if(k.is(e)&&this.contentWindow)k.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+e.destination,content:e.destination},this.contentWindow)}render(){return[]}get element(){return a(this)}};Rr.style=$r;const Pr="[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center}[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{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Nr=Pr;const Hr=class{constructor(t){e(this,t);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";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 e=this.latestPromise=v.load(this.name);let t=await e;if(e==this.latestPromise){t=t===null||t===void 0?void 0:t.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)t=t===null||t===void 0?void 0:t.replace(/<title>.*<\/title>/,"");else if(t===null||t===void 0?void 0:t.includes("<title>"))t=t.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else t=t===null||t===void 0?void 0:t.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(t)}}else this.updateDocument()}updateDocument(e){this.document=e!==null&&e!==void 0?e:`<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 e;return t(s,{key:"2ca960872991b5522629128b7a1f91fc52eb9924",innerHTML:this.document,style:{["--rotation"]:`${(e=this.rotate)!==null&&e!==void 0?e:0}deg`}})}static get watchers(){return{name:["nameChanged"]}}};Hr.style=Nr;const Fr=".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 Ur=Fr;const Yr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return t(s,{key:"a48ba348de697e8a536a0236719efa65b252159d"},t("h2",{key:"317dd038d538789cbaa5532d9c16257ef5a64814"},"Filter and Variants"),t("smoothly-form",{key:"8960c5768d0735eb1c86d068d5759d2a0aa04129",onSmoothlyFormInput:e=>this.display=e.detail},t("smoothly-input",{key:"84d023b804b64814cba87e651f363521d2e7615e",name:"filter"},"Filter"),t("smoothly-input-select",{key:"41c33c71d7987b03d39c57f574b567add5e16271",name:"variant"},t("span",{key:"72d59198e6d547da8f062e43364167107d3086e7",slot:"label"},"Variant"),t("smoothly-item",{key:"61bebffd79c5dccab8ac9b90c4b8ff987ff45d1d",value:"outline"},"outline"),t("smoothly-item",{key:"756a78875009eaa973e0b96bc339ef7a4dc663ca",value:"sharp"},"sharp"),t("smoothly-input-clear",{key:"ec9abf0352ae7d30b405330e6f828c013351b93e",slot:"end"}))),t("h2",{key:"a4170a7aaf8fa66dfc28065c937b0e051996decf"},"Props"),t("smoothly-form",{key:"306eda4fad769698d78601d51141ee303dd99918",onSmoothlyFormInput:e=>this.props=e.detail},t("smoothly-input-select",{key:"1fad7a0c9b10b567c108b45dfc1bdce337c5adc0",name:"color"},t("span",{key:"419dca6615f6046eb5f0f8407bac7bddb8d621b4",slot:"label"},"Color"),c.types.map((e=>t("smoothly-item",{value:e,color:e},e))),t("smoothly-input-clear",{key:"6d84cd25c0056a9bb56995ca57bf45fbcd7ca728",slot:"end"})),t("smoothly-input-select",{key:"e47724be5b6c0a6c6949b01893c02b2061c61d39",name:"flip"},t("span",{key:"071f941f348aa1515833b9cdb5c137779d2c1edc",slot:"label"},"Flip"),t("smoothly-item",{key:"2c08bb5fb826bc163982812dcbfbf92bdbd6eac8",value:"x"},"x"),t("smoothly-item",{key:"4458204ffc2337494168175e3678506c6b0b1df3",value:"y"},"y"),t("smoothly-input-clear",{key:"4d561ebe12520ff6d153e565c1635afded75c9e5",slot:"end"})),t("smoothly-input-select",{key:"fc71d8f6fb9f12f04271f13a7007e59dd19c1fc2",name:"size"},t("span",{key:"668399e2602e6eeeb881c45cba082f1b8227a13b",slot:"label"},"Size"),t("smoothly-item",{key:"5b56b01cc36e3056ca69a8e19e3d0829540a84c5",value:"tiny"},"tiny"),t("smoothly-item",{key:"8506c6d7c3adc1008122756fffbb075a997a47a7",value:"small"},"small"),t("smoothly-item",{key:"5139f8aafc5d47bce7023200825f5eadc30c2440",value:"medium"},"medium"),t("smoothly-item",{key:"f7a64ad46b598e3fab88c37687ac29b0e4545278",value:"large"},"large"),t("smoothly-input-clear",{key:"16d946bf5e8440f49bb8f9ed911a1a56e6c0f70c",slot:"end"})),t("smoothly-input-range",{key:"36ffc94ee758970a62a811a26d6cdaa8206ca45c",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",t("smoothly-input-clear",{key:"98c83ffad9dc19e7668de9fc3758894b42d197b3",slot:"end"}))),t("h1",{key:"8b11b39a4a81f8b0820b7b16c199af27864ab94d"},"Icons"),t("div",{key:"a31ee3aa619190ab97d7e8509e25be1aaa8ed44c",class:"icons"},[...v.Name.values.filter((e=>!this.display.filter||e.includes(this.display.filter))).map((e=>this.display.variant?`${e}-${this.display.variant}`:e)),...v.Logo.values.filter((e=>!this.display.filter||e.includes(this.display.filter)))].map((e=>t("smoothly-icon",{name:e,toolTip:e,"data-name":e,color:this.props.color,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(e);this.notice.emit(O.succeeded(`Copied "${e}"`))}})))))}};Yr.style=Ur;var Wr;(function(e){function t(e,o){if(e===o)return true;if(typeof e=="object"&&typeof o=="object"){const s=Object.keys(e);if(s.length==Object.keys(o).length&&s.every((s=>t(e[s],o[s]))))return true}return false}e.equal=t;function o(e,o){return!t(e,o)}e.notEqual=o})(Wr||(Wr={}));var Br;(function(e){function t(e,t,a){const i=/([^.-@\s]+)/gi;return a=="backward"?o(e,t,i):s(e,t,i)}e.getWordBreakIndex=t;function o(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function s(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}})(Br||(Br={}));class Vr{constructor(e,t){this.formatter=e;this.type=t;this.keydownHandlers={ArrowLeft:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t),ArrowRight:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t)};this.eventHandlers={beforeinput:{insertText:(e,t)=>this.insert(e,t),insertFromPaste:(e,t)=>this.insert(e,t),insertFromDrop:(e,t)=>this.insert(e,t),deleteContentBackward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start-1,t.selection.end);this.erase(t);return t},deleteContentForward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start,t.selection.end+1);this.erase(t);return t},deleteWordBackward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"backward")}return s},deleteWordForward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"forward")}return s},deleteByCut:(e,t)=>{this.erase(t);return t}},input:{insertReplacementText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),insertCompositionText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),deleteWordBackward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,deleteWordForward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,undefined:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value})}}}static create(e,t){let o;switch(e){case"price":o=wt("price",t);break;default:o=wt(e,t);break}return new Vr(o||wt("text"),e)}onKeyDown(e,t){var o,s,a,i;let n=t;const l=this.keydownHandlers[e.key];if(l){const r=e.target;t.selection.start=(o=r.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=r.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=r.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const c=l(e,this.unformatState(t),t);const d=this.partialFormatState(c);if(e.defaultPrevented){r.selectionStart=d.selection.start;r.selectionEnd=d.selection.end;r.selectionDirection=(i=d.selection.direction)!==null&&i!==void 0?i:null}n=d}return n}moveCursor(e,t){e.preventDefault();let o=ft.getCursor(t.selection);let s=ft.getStalker(t.selection);o=Math.min(Math.max(o+(e.key=="ArrowLeft"?-1:1),0),t.value.length);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);return t}onFocus(e,t){const o=this.partialFormatState(this.unformatState(t));const s=e.target;s.value=o.value;return o}onBlur(e,t){const o=this.createFormattedState(t);const s=e.target;s.value=o.value;return o}onInputEvent(e,t){var o,s,a,i,n,l,r;const c=e.target;t.selection.start=(o=c.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=c.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=c.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const d=e.type=="beforeinput"||e.type=="input"?(l=(n=(i=this.eventHandlers[e.type])[e.inputType])===null||n===void 0?void 0:n.call(i,e,this.unformatState(t),t))!==null&&l!==void 0?l:t:t;const h=this.partialFormatState(d);if(e.defaultPrevented){c.value=h.value;c.selectionStart=h.selection.start;c.selectionEnd=h.selection.end;c.selectionDirection=(r=h.selection.direction)!==null&&r!==void 0?r:null}return h}insert(e,t){e.preventDefault();if(typeof e.data=="string")for(const o of e.data)this.formatter.allowed(o,t)&&this.replace(t,o);return t}deleteWord(e,t){const o=ft.getCursor(e.selection);const s=Br.getWordBreakIndex(e.value,o,t);const a=this.unformatState(Object.assign(Object.assign({},e),{selection:{start:Math.min(o,s),end:Math.max(o,s),direction:"none"}}));const i=a.value.substring(0,a.selection.start)+a.value.substring(a.selection.end);a.value=i;a.selection.end=a.selection.start;return a}select(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}erase(e){this.replace(e,"")}replace(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}unformatState(e){return pt.copy(this.formatter.unformat(gt.copy(e)))}partialFormatState(e){return this.formatter.partialFormat(gt.copy(e))}createFormattedState(e){return this.formatter.format(gt.copy(this.formatter.unformat(gt.copy(e))))}toString(e){return this.formatter.toString(e)}initialState(e){const t=this.toString(e)||"";const o=t.length;const s=this.createFormattedState({value:t,selection:{start:o,end:o,direction:"none"}});return s}setValue(e,t,o){const s=Object.assign(Object.assign({},t),{value:this.createFormattedState({value:this.formatter.toString(o),selection:t.selection}).value});e.value=s.value;return s}getValue(e){return this.formatter.fromString(this.unformatState(e).value)}}const Gr='.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>div.sc-smoothly-input{position:relative;width:100%;height:100%}.sc-smoothly-input-h>div.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>div.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>div.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>div.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>div.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>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}[invalid].sc-smoothly-input-h>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:block;z-index:2;cursor:pointer}.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.sc-smoothly-input-s>[slot=end] button{padding:0}.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 Kr=Gr;const Zr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",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.invalid=false;this.changed=false;this.errorMessage=undefined;this.initialValue=undefined;this.state=undefined}async getValue(){return this.stateHandler.getValue(this.state)}async listen(e,t){this.listener[e]=t;t(this)}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async clear(){!this.uneditable&&(this.value=undefined)}async edit(e){!this.uneditable&&(this.readonly=!e)}async reset(){!this.uneditable&&(this.value=this.initialValue)}async setInitialValue(){this.changed=false;this.initialValue=this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}async smoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name==this.name)){e.stopPropagation();e.detail(this)}}typeChange(){switch(this.type){case"price":this.stateHandler=Vr.create("price",{currency:this.currency,toInteger:this.toInteger});break;default:this.stateHandler=Vr.create(this.type,D());break}this.state=this.stateHandler.initialState(this.value)}stateChange(){this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}valueChange(e){const t=this.stateHandler.getValue(this.state);if(Wr.notEqual(t,e)&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,e);this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}}readonlyChange(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentWillLoad(){var e,t;this.typeChange();this.initialValue=this.value;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){if(this.inputElement)this.inputElement.value=this.state.value}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}onEvent(e){this.state=this.stateHandler.onInputEvent(e,this.state)}render(){var e,o,a,i,n,l,r,c,d,h;return t(s,{key:"c0c6e0d705065464c9a8641fb90a7eb3db1fd385",class:{"has-value":((e=this.state)===null||e===void 0?void 0:e.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var e;return(e=this.inputElement)===null||e===void 0?void 0:e.focus()}},t("slot",{key:"38825442b4f5c7853c4c41295d2b6b467100b822",name:"start"}),t("div",{key:"68fce946c08fc319c6d86d792f47991c25d40877"},t("div",{key:"34309b2e7afdc17cdc33030b9fcff946e0363243",class:"ghost"},t("div",{key:"44a442387af514de45508fac3f857990e8ec5be6",class:"value"},(a=this.state)===null||a===void 0?void 0:a.value),t("div",{key:"45564be02e80bd749ed8506e5534c3cda41814ff",class:"remainder"},(i=this.state)===null||i===void 0?void 0:i.remainder)),t("input",{key:"f9c34a90ec804635155e95f6e5b8977d2a0fd74a",ref:e=>this.inputElement=e,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:((d=this.state)===null||d===void 0?void 0:d.pattern)&&((h=this.state)===null||h===void 0?void 0:h.pattern.source),onKeyDown:e=>{this.state=this.stateHandler.onKeyDown(e,this.state);if(e.key=="Enter")this.smoothlyBlur.emit()},onFocus:e=>this.state=this.stateHandler.onFocus(e,this.state),onBlur:e=>{const t=this.stateHandler.getValue(this.state);this.state=this.stateHandler.onBlur(e,this.state);this.smoothlyBlur.emit();this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});if(Wr.notEqual(t,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}),t("label",{key:"fe6e3f12d440020fdc731b2bc493b4de329b8ff5",class:"label float-on-focus",htmlFor:this.name},t("slot",{key:"b4afeb0ea0973a4f96c2d15384e8f8ccbe0e3a47"})),t("smoothly-icon",{key:"e8da321b86bcb43292716c2e958ae356e14269a7",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage})),t("slot",{key:"5c116f354c3d3737cc382c43bcdbcff37d08db7a",name:"end"}))}get element(){return a(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};Zr.style=Kr;const qr='.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 Jr=qr;const Xr=class{constructor(t){e(this,t);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 e,t;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}async elementCheck(){var e,t;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}click(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return t(s,{key:"3c1316c6be3090b1cc8e666c5d108fde4370300c",onMouseDown:e=>this.mouseDownPosition={x:e.clientX,y:e.clientY},onMouseUp:e=>{var t;return((t=this.mouseDownPosition)===null||t===void 0?void 0:t.x)==e.clientX&&this.mouseDownPosition.y==e.clientY&&this.click()}},t("input",{key:"47109b72871ad21e58bd0683fc3d3a4fbf66c83c",type:"checkbox",checked:this.checked}),this.checked&&t("smoothly-icon",{key:"aec34d4073515bb073fe54cd658637a7b2ed7aac",name:"checkmark-outline",size:"tiny"}),t("label",{key:"c6e0d71cf2193f49b6f4a9e08ae11592bcace9ef"},t("slot",{key:"787d55c4d6baac335285870d00d6336d6ddde724"})))}get element(){return a(this)}static get watchers(){return{checked:["elementCheck"]}}};Xr.style=Jr;const Qr='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-clear-h{--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(--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;--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(--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 ec=Qr;const tc=class{constructor(t){e(this,t);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((e=>{if(nr.is(e)){this.parent=e;if(lr.Element.is(e)){e.listen("changed",(async e=>{if(cr.is(e)){this.display=!e.readonly&&(typeof e.defined=="boolean"?e.defined:Boolean(e.value))}if(e instanceof br){this.disabled=e.readonly||Object.values(e.value).filter((e=>e)).length<1;this.display=!e.readonly}}))}}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.clear()}render(){var e;return t(s,{key:"0c7859c8c7560f7608910d94e854976e15159fa3",title:this.tooltip},t("smoothly-button",{key:"ce8acccf37e58c5e680a6d74b6e7b5a6cd9eed4a",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"f776dfc22004fe630e5963fb0b3be02623159687"}),t("smoothly-icon",{key:"173c4c57101a67b4a028e08a86542548cb935499",name:"close",size:"tiny"})))}};tc.style=ec;const oc='.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;padding-right:.5em}.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}[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 sc=oc;const ac=class{constructor(t){e(this,t);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=c.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.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(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){var e,t;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}handleSwitchMode(e){e.stopPropagation();this.sliderMode=e.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=c.Hex.toRGB(this.value))}else{this.value&&(this.hsl=c.RGB.toHSL(c.Hex.toRGB(this.value)))}}hexInputHandler(e){if(e!==this.value){if(e&&c.Hex.type.is(e)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=c.Hex.toRGB(e)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=c.RGB.toHSL(c.Hex.toRGB(e))}}else if(!e||!c.Hex.type.is(e)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=e}}sliderInputHandler(e){var t;e.stopPropagation();const o=Object.keys(e.detail)[0];let s=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(e.detail[o]===undefined)){for(const a of Object.keys(s))if(a===o)s=Object.assign(Object.assign({},s),{[a]:a==="s"||a==="l"?+((t=e.detail[o])!==null&&t!==void 0?t:0)*100:e.detail[o]});else if(s[a]===undefined)s=Object.assign(Object.assign({},s),{[a]:0});if(this.sliderMode==="rgb"){this.rgb=Object.assign({},s);this.hsl=c.RGB.toHSL(this.rgb);this.hexInputHandler(c.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},s);this.rgb=c.HSL.toRGB(this.hsl);this.hexInputHandler(c.RGB.toHex(c.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var e,o,a,i,n,l;return t(s,{key:"51a16fcfe1910a90d2700e8d0cc4dffb55117f0a",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((e=this.rgb.r)!==null&&e!==void 0?e:0)}`,"--rgb-g":`${Math.round((o=this.rgb.g)!==null&&o!==void 0?o:0)}`,"--rgb-b":`${Math.round((a=this.rgb.b)!==null&&a!==void 0?a:0)}`,"--hsl-h":`${Math.round((i=this.hsl.h)!==null&&i!==void 0?i: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`}},t("smoothly-input",{key:"c1562bc77088d0385845434d8d1b008fd6302fc4",value:this.value,name:this.name,looks:undefined,color:this.color,type:"hex-color",showLabel:this.showLabel,readonly:this.readonly,onSmoothlyInput:e=>(e===null||e===void 0?void 0:e.stopPropagation(),this.hexInputHandler(e.detail[this.name]))},t("slot",{key:"86121a306bcb0036a14ece88dc79b715305f6363"})),t("div",{key:"017725837b67c695fbf8aa34b9f0fb73c2cf30bd",class:"color-sample"}),t("smoothly-icon",{key:"8ecb0d806407e75b95b766b51a91be4198cd407e",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),this.open&&!this.readonly&&t("div",{key:"2bb350f021941d7196b9c5a3f0654af0efebfa53",class:"rgb-sliders"},t("smoothly-toggle-switch",{key:"96b9582749ffa84c28a7579689e51a5f2965f78d",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:e=>this.handleSwitchMode(e),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:e,min:0,max:255,color:undefined,type:"text",value:o,step:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()}))),Object.entries(this.hsl).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:e,min:0,max:e==="h"?359:1,color:undefined,type:e==="s"||e==="l"?"percent":"text",value:(e==="s"||e==="l")&&o?o/100:o,step:e==="s"||e==="l"?.01:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()})))))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};ac.style=sc;const ic=class{constructor(t){e(this,t)}render(){return t(s,{key:"a268b3a8769165e116c77eb1f8f8e049afc83595"},t("h2",{key:"c11a162fdd641b19cb4427dae013994e29e1da6f"},"Color"),t("smoothly-input-color",{key:"fc3844f0c02372dc9a7432dae694ba4f986e9a5e",name:"color"},"Choose color"))}};ic.style="style.css";const nc='.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;margin-right:.2em}@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 lc=nc;const rc=class{constructor(t){e(this,t);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.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true}componentWillLoad(){var e,t;this.setInitialValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async listen(e,t){this.listener[e]=t;t(this)}async clear(){this.value=undefined}onStart(e){var t,o;this.smoothlyValueChange.emit(e);this.smoothlyInput.emit({[this.name]:e});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}smoothlyInputHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.changed=false}dateSetHandler(e){this.open=false;e.stopPropagation()}render(){return t(s,{key:"5b9654434c2fba857bf3ef7bbf847af2515eb984"},t("smoothly-input",{key:"80e721c34de7fe959f47680d50806adfa75e3b01",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,invalid:this.invalid,type:"date",value:this.value,showLabel:this.showLabel,onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation();this.value=e.detail[this.name]}},t("slot",{key:"d9e47ad7fed79355051a9d00a4c1175b5166b3c9"})),t("span",{key:"76afdd4bfc5ad1c4be6ec1550e0eef35b9a6da77",class:"icons"},t("slot",{key:"66ff5380e4d8b3681b80ebe51afd35846788e722",name:"end"})),this.open&&!this.readonly&&t("nav",{key:"3e3d8a0e07a83d33d4495d49aaf4d014dd1d22ed"},t("smoothly-calendar",{key:"746927467a60b22fae380f62980bd6b1d3aa3a32",doubleInput:false,value:this.value,onSmoothlyValueChange:e=>{this.value=e.detail;e.stopPropagation()},max:this.max,min:this.min},t("div",{key:"81c87991d320895ca9204945cf7ddee642b64c2e",slot:"year-label"},t("slot",{key:"13f321ef61b4cf16e19a51852f28c0fa6091279b",name:"year-label"})),t("div",{key:"3a82f53e0fbfc6952110bbcefc82116d1d3764a9",slot:"month-label"},t("slot",{key:"5448271cb9b19de99aef07a029facf8aeed59a46",name:"month-label"})))))}get element(){return a(this)}static get watchers(){return{value:["onStart"]}}};rc.style=lc;const cc='.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;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;margin-right:0.4em}';const dc=cc;const hc=class{constructor(t){e(this,t);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 e,t;this.setInitialValue();this.updateValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}inputHandler(e){const t="dateRangeInput"in e&&typeof e.dateRangeInput=="string"&&e.dateRangeInput.split(" - ");if(t&&t.length==2&&S.is(t[0])&&S.is(t[1])){this.start=t[0];this.end=t[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var e,t;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.start&&this.end?{start:this.start,end:this.end}:undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}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 e=navigator.language;return t(s,{key:"83a4df5b6d8eb60c62c71e606bb939289d259346",tabindex:0},t("section",{key:"63aed666649aa276437e8c362e1b9ebc8cb07463",onClick:()=>!this.readonly&&(this.open=!this.open)},t("smoothly-input",{key:"2bdc7f72a4708def9a274e0dc0cae28b2a415859",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${St(this.start,"date",e)} — ${St(this.end,"date",e)}`:undefined,invalid:this.invalid,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:e=>{e.stopPropagation();this.inputHandler(e.detail)}},t("slot",{key:"1a21ce7402507b8e2740308a8f216a45317e7254"}))),t("span",{key:"68ee8c56303fd1b9531a5e34358f2d6f953fa450",class:"icons"},t("slot",{key:"301bfe40349ae98d14d23a059c51f15eecfc7dae",name:"end"})),this.open&&t("nav",{key:"a3c163d13c2ba8dc8b61d977c983f62e552d9e37"},t("smoothly-calendar",{key:"8569ba2af69fa58481699060eabbaee32e32cb56",doubleInput:true,onSmoothlyValueChange:e=>e.stopPropagation(),onSmoothlyStartChange:e=>{e.stopPropagation();this.start=e.detail},onSmoothlyEndChange:e=>{e.stopPropagation();this.end=e.detail},onSmoothlyDateSet:e=>e.stopPropagation(),onSmoothlyDateRangeSet:e=>{e.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:e.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return a(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};hc.style=dc;const bc=".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 mc=bc;const yc=class{constructor(t){e(this,t);this.duration={hours:8};this.alphanumeric="!@##"}render(){return t(s,{key:"60dd1e6b3944fc22f37e5b2f5d44e7fcf2833a84"},t("smoothly-input-demo-standard",{key:"2de6bb4b669536a5f7a15e4a600af1b2e1a9af0c"}),t("div",{key:"b78fe28ebc5c9d4d9dabcb4f6f5c80dd78f77d5c",class:"inputs"},t("h2",{key:"3446b75ffe04fc341d3dcc072a4f9e06db26785c"},"Calendar"),t("smoothly-input-date",{key:"fcf59b2cc974165f4f695c02b52b704d3d74d6f3",name:"some-date"},"Calendar"),t("h2",{key:"a156ab1d3aca8be94908453872a2134c831d88c0"},"Date Range"),t("smoothly-input-date-range",{key:"271a5188c679eb550c5c05ca2e1595ef136e684e",name:"testing",start:S.now(),end:S.nextMonth(S.now()),min:"2021-10-01",max:"2025-01-31"}),t("smoothly-input-date-range",{key:"1e52949912d2a75db26c7540c3a9706e06e557e2",name:"testing",start:S.now(),end:S.nextMonth(S.now()),min:"2021-10-10",max:"2024-12-30"},t("smoothly-input-reset",{key:"5c127ccb828b1040525b18bd663bf750c8ff6eb5",slot:"end",size:"icon"})),t("smoothly-input-date-range",{key:"935ba4fe04cf86a707b56bc1fb12cd6b86a1fe18",looks:"grid",start:S.now(),end:S.nextMonth(S.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem","--padding":"0 0.75em","--input-width":"12ch"}},t("smoothly-input-clear",{key:"3c293347358cb6c439d46a7b8538899e1a77992f",slot:"end",size:"icon"})),t("h2",{key:"ed7c2c30b8060ac6e021dcc07a7839d7cdded20b"},"Date"),t("smoothly-input-date",{key:"a793def080aebfaef852e887470e21bf55148215"},"Date"),t("smoothly-input-date",{key:"0c4401d2a28786499bb3eff800322a04d010257d",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),t("smoothly-input-date",{key:"b9eda80eec7369c9c4604774f244edfb38cfbf30",value:"2021-10-28"},"Date",t("smoothly-input-reset",{key:"a94977968c6249be32060d9e0b7f40ef017e38d4",slot:"end",size:"icon"})),t("smoothly-input-date",{key:"a1af27dc2ff52582cc0ce406d546c71348835456",value:"2021-10-28"},"Date",t("smoothly-input-clear",{key:"d4e1ef84c8be48a88f9862be0c89a9931c2bc042",slot:"end",size:"icon"})),t("h2",{key:"36930f18237fa1db19293f3c2ebdb99925a82fda"},"Select"),t("div",{key:"c5e885b52da1a9e5039408ba9610230b0b28baae",class:"select-div"},t("smoothly-input-select",{key:"1f15e7a4854e82363ce88ff900340e74584c14b8",name:"select-dessert",looks:"border"},t("label",{key:"d54885a3eac40d13e94728e56a811e6538ff7069",slot:"label"},"Select with clear button"),t("smoothly-item",{key:"9b20457b0c78867875c95435e24d4749c3123990",value:"1"},"Ice cream"),t("smoothly-item",{key:"01dea695573f6792c102661cf22f344a797001ff",value:"2"},"Sponge cake"),t("smoothly-item",{key:"3543d2c4b4851c522451bac5a3acd293bfb21fa6",value:"3"},"Cookie"),t("smoothly-item",{key:"f62c295d7148d3fa2b86806c2e17934410650064",value:"4"},"Croissant"),t("smoothly-item",{key:"a124a8d1d0ce21e4c3cc55560517ffa9202d9a9c",value:"5"},"Chocolate fondue"),t("smoothly-input-clear",{key:"de389d553a40b4c3a6d17bbbdbf28e55aa4b8d7d",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"41fbb70990c191aebc260fefd9df0797d69e0738",multiple:true,name:"select-dessert-multiple",looks:"border"},t("label",{key:"434522359659f3ed97b703b36af261764e6f9ab4",slot:"label"},"Select multiple with reset button"),t("smoothly-item",{key:"384de05f22ef4c3dc91b44ade6746e2ee7683565",value:"ice cream"},"Ice cream"),t("smoothly-item",{key:"606d9343d3de36fbca2519ba083acfe7063a51c8",value:"sponge cake"},"Sponge cake"),t("smoothly-item",{key:"796ac9d456606cae955bc5eb4d7c413ee67e3ba1",selected:true,value:"cookie"},"Cookie"),t("smoothly-item",{key:"51d77cd08f175867b22da38d01df8310e8d16e4c",value:"croissant"},"Croissant"),t("smoothly-item",{key:"2c6a518b714b79f58557b505bb042805045932cb",selected:true,value:"chocolate fondue"},"Chocolate fondue"),t("smoothly-input-reset",{key:"feb637cab56c2f5024188c34d7508358a787c4c8",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"57cd5ae780288c69d148795508f7fcdd40f2a099",name:"spirit-animals",looks:"border",mutable:true},t("label",{key:"24951468fe43b42a5e410184cc2d122ceb1559ad",slot:"label"},"Select or add new options"),t("smoothly-item",{key:"d1330ba6f34bbd76ef5aba2bde55c135373a2b7b",value:"manatee"},"Manatee"),t("smoothly-item",{key:"61082a363a53fb71be3f9e8e6ab4e2be2693803c",selected:true,value:"cthulu"},"Cthulu")),t("smoothly-input-select",{key:"837d3330f39f40c2666d6faa497671d5899b8f37",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"abd9760dc7f60c174618ab718a2ca2793a7c6bd7",value:"folder",selected:true},t("smoothly-icon",{key:"723699de937708f91e2520e8af0b2575754869b9",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"898afabc6f86383162426d971ee625bad2c10981",value:"camera"},t("smoothly-icon",{key:"5d22ea6043cfd3298f897e472ec579cdc3171190",size:"small",name:"camera-outline"}))),t("smoothly-input-select",{key:"7dfeb8b080ea8c743f5d8e501af1d2182607fd0a",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"c372c32bd7b05a7aa86f1b330f4c4f9e2c2eeeb2",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((e,t)=>String.fromCharCode(t+65))).map((e=>t("smoothly-item",{value:e,selected:e=="H"},e)))),t("smoothly-input-select",{key:"731b35d2679e1db0870edd820ad3fc9174b14f3f",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"d1e226e33b7bdc0f6a6ce00625517e9b21e98450",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"0eb3ac2264bafe9ea791df4c94edb717abfd7e64",value:"1"},"January"),t("smoothly-item",{key:"bca380ef3fe45f223ebf4c6ceb7994d1b62a9f37",value:"2"},"February"),t("smoothly-item",{key:"10e9070d018b16181cea27c3264eb186dbaf16c4",value:"3"},"March"),t("smoothly-item",{key:"8e3a660ddc03a84450894fff337dc93ca98fc742",value:"4"},"April"),t("smoothly-item",{key:"12fb1830e38b4e5affa4ce5c5efca25bfc26165d",value:"5"},"May"),t("smoothly-item",{key:"e552e9e41a8330d35b9493169b496fd992674f68",value:"6"},"June"),t("smoothly-item",{key:"465df1432d881c069c06686d74c652f95b45da91",value:"7"},"July"),t("smoothly-item",{key:"eb74e7a7866108277481cd7273394ef59977ef4d",value:"8"},"August"),t("smoothly-item",{key:"3c35bda627bfee70fb5a95d90103d2b9e1b8ab72",value:"9"},"September"),t("smoothly-item",{key:"1fb9c7d501dec688d42b53e377f71576347f7733",value:"10"},"October"),t("smoothly-item",{key:"c8ace09645bb7d542028a2d415ba72ac34bd02a6",value:"11"},"November"),t("smoothly-item",{key:"5ac9490a548256e06a04fba18f446c628af7feae",value:"12"},"December"))),t("h2",{key:"a902f2f2e561c9181866bec6472e343f822335d7"},"Duration"),t("smoothly-input",{key:"3c6555170bd250bf76e8f844bb75a5431d40c6bf",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("smoothly-input",{key:"3abdf0a08b170f1af9554225fe2ba296a12ae207",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("h2",{key:"44481da56a1752f3789bc1ddd3a5eaee0902dd15"},"Invalid text with warning icon and tooltip"),t("smoothly-input",{key:"53b69674b38f94660845d011e84c3c53a05fc1ff",name:"alphanumeric",invalid:!/^[a-zA-Z0-9]+$/.test(this.alphanumeric),errorMessage:"Only alphanumeric allowed",value:this.alphanumeric,onSmoothlyInput:e=>this.alphanumeric=e.detail.alphanumeric},"Alphanumeric"),t("h2",{key:"a619414a34208a0afd08e220280584395af14d04"},"Identifiers"),t("smoothly-input",{key:"7c4f1735d3f246c4595acb2151ba97d1b5085f7d",type:"identifier-code"},"Code"),t("smoothly-input",{key:"18b6cb899e36881803b0660d6ff6482a525abfa1",type:"identifier-attribute"},"Attribute"),t("smoothly-input",{key:"d92b08e4d1acb8f4a9448f59c4ee340661f35d9d",type:"identifier-snake"},"Snake"),t("smoothly-input",{key:"69534f2759a4624b9fa21f46a79aa07a998ad619",type:"identifier-pascal"},"Pascal"),t("smoothly-input",{key:"56f54de4ada5be8f1215fad3d593e53484de5cf6",type:"identifier-camel"},"Camel"),t("h2",{key:"cb87bd4e9001ac1f87eb02eb48a4bf61951091df"},"Input Alternatives"),t("smoothly-input",{key:"49662ae4757c48fa73cb473468697db1686d07e4",type:"text",name:"name.last",onSmoothlyChange:e=>console.log("smoothly change event")},t("smoothly-icon",{key:"acc32078fdd3c67d9df44e4ef2b8a7713b92b42a",name:"checkmark-circle",slot:"start"}),"First Name"),t("smoothly-input",{key:"5bf97a305cb569577aec8229c9e70946476befd4",type:"text",name:"name.first",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"c1a8ba7f61eca2518bc7224d0d12ba74b03d8d86",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"99fb40ad2de47201a8809b8ff5d11835fb856257",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"7fdc80355a8730f7fbe465ca8cffe477627a2172",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"4d9978b66309191c5e33189729628fe6926dfdb2",placeholder:"test"}),t("smoothly-input-submit",{key:"d0a4198c16058d665b0a60aabe99c36c9887200b",slot:"submit",fill:"solid",onSubmit:e=>alert(e),color:"success"}),t("h4",{key:"4cb4b540a5fb2e7ee30b21168d93bb90937c1d7f"},"Smoothly checkboxes"),t("div",{key:"d04417a92dee1b64b70d46308092166ed94e0cbc",class:"checkbox-group"},t("smoothly-input-checkbox",{key:"2700d72b061a638fff12a1c52bc71f67ba99409f",disabled:true,name:"first-checkbox"},t("smoothly-icon",{key:"d1c8cd25b0910b6d8794650b46b17879c8c873b2",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),t("smoothly-input-checkbox",{key:"ef02d4523300ba4ba7f5d320dea9a461b7e13eb0",name:"second-checkbox",checked:true},t("smoothly-icon",{key:"7a207fdd7e2ca3c829617462717af46a9608391d",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",t("smoothly-input-clear",{key:"2a19f2556c6b7f0e187fc5c2070b180b61ce8927",size:"icon",slot:"end"})),t("smoothly-input-checkbox",{key:"5cad9ef159cdd824cc15b6ba943fd74d5102f24e",name:"third-checkbox"},"3rd")),t("h4",{key:"fea91481f1359ffe15ea0b4cf49a75061a67bb56"},"Smoothly Radio Buttons"),t("smoothly-input-radio",{key:"e9eb48bbb8286ab0ce791f87740bb0fb69ca8e77",clearable:true,name:"radioFirstInput"},t("smoothly-icon",{key:"a04f6835582bdf21312cf6995fef5606c0bae73d",name:"checkmark-circle",slot:"start"}),t("label",{key:"26f1a2c404d9b33c138e64d48ffd818f90222db1",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"6a29b48312cd6311cf9b92cd6669759ee642846c",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"755c043ba745e47a080441dee9496691bd041df3",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"3b8257d3a560437a4119687380bc97f4c7af408b",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"6414847d73410ec624bed67e78562e970f873a01",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"f0bd1ff94acae5d44afca5e87d6cc76041e85aee",name:"radioSecondInput"},t("label",{key:"75be309882a3add9e3084c71ab2db00411ca2981",slot:"label"},"Not clearable"),t("smoothly-input-radio-item",{key:"4837fc0c1ea4caa1d0559a723310672a38286632",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"e5d06e60d6bcfb3494aaf076004efdea959b0740",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"3e448a60a3db6d23e79221c1bc3d615817f36343",value:"third"},"Label 3"),t("smoothly-input-radio-item",{key:"83d57275d80e87543521e6c5be86c956dd08572d",value:"fourth"},"Label 4"),t("smoothly-input-radio-item",{key:"e6e2c87a559e1302abc6cea965ada07fd396fc9b",value:"fifth"},"Label 5"),t("smoothly-input-radio-item",{key:"ec2b352a115ba042ee756886dbdbea63a988aad4",value:"sixth"},"Label 6")),t("smoothly-input-range-demo",{key:"597c4d2527d3b4e12aae32c09aec9a648f4744f1"}),t("smoothly-input-color-demo",{key:"f5060d8b548ecf03993b03f03e1263e22bf27cc5"}),t("smoothly-input-price-demo",{key:"dfcaadcb371d4d34cc5f03759e098b6fb80fb1c8"}),t("smoothly-back-to-top",{key:"540599189cf998d00211d99a94074dcb93e23332"})))}};yc.style=mc;const uc='.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 fc=uc;const pc=class{constructor(t){e(this,t);this.duration={hours:8};this.options={showLabel:true}}connectedCallback(){this.updateInputHeightText()}componentDidRender(){this.updateInputHeightText()}updateInputHeightText(){const e=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));this.element.querySelectorAll(".height").forEach((t=>{const o=t.clientHeight;t.innerHTML=`<b>${o/e}rem</b> (${o}pixels)`}))}render(){const e=this.options.placeholder?"placeholder":undefined;return t(s,{key:"4e10f0d5eb28d0510f7cb21e96186431be670d89",class:{vertical:!!this.options.vertical}},t("div",{key:"9b2b4b702969c7d015f5c1dbfe3aa4e74fd8c540",class:"description"},t("h2",{key:"a2c21fe6391d84db87497e6a4ff4e2b70c4d5f80"},"Input Standard"),t("p",{key:"9bfda6f0a0dd936202f114d4637ee12bf08edbe3"},"Height of input should be ",t("code",{key:"ab833f468eefb8c0ae2f4062670cc77ba9b4a2fa"},"3rem")," including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."),t("smoothly-form",{key:"e99dbf780a7782a81fcb72edaa2d7f5457da8beb",looks:"grid",onSmoothlyFormInput:e=>this.options=e.detail},t("smoothly-input-select",{key:"9f1e9f65aaaaa38af2fb65b85a8fb83454c332d9",name:"looks"},t("span",{key:"3b84ca0fb05114ae3795f523615f41ba5dca0bdc",slot:"label"},"Looks"),rr.types.map((e=>t("smoothly-item",{value:e},e)))),t("smoothly-input-checkbox",{key:"77e00ac8693dbccc4f57b14185a52efbcb5fd41c",name:"readonly"},"Readonly"),t("smoothly-input-select",{key:"87f8b71bd390aa5fd9cebaa736cea67895c29536",name:"color"},t("span",{key:"d451f9ed64066336c60239eacd7cbf153fd4e1d7",slot:"label"},"Color"),c.types.map((e=>t("smoothly-item",{value:e},t("span",{color:e},e)))),t("smoothly-input-clear",{key:"ff5c0ce5115ddd31522a91b3bb95f539ba1684e5",slot:"end"})),t("smoothly-input-checkbox",{key:"732ddc3aef6cb9c26fb5524ce2227e488c05254f",name:"vertical"},"Vertical Layout"),t("smoothly-input-checkbox",{key:"1c958a47f2e6d866c82dfc767ea46706eec75dfb",name:"showLabel",checked:this.options.showLabel},"Show Label"),t("smoothly-input-checkbox",{key:"a710c74606aca3e9a19f39c492e50737f1ed24df",name:"placeholder",checked:this.options.placeholder},"Placeholder"),t("smoothly-input-range",{key:"ba771530eadb363d3097c0d96138a7bf44ff1673",label:"Border Radius (rem)",name:"borderRadius",value:this.options.borderRadius,min:0,max:2,step:.25}))),t("div",{key:"7ae3270b14d538ba0694bab2de7d85f0aab431af",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},t("div",{key:"f49c38040b5dda13e4e805fdcaeea1ff0a459dbb",class:"width"},"100%"),t("div",{key:"6f7cb40aefe9bc700e4596b2632d99da07226307",class:"left-padding"},"0.5rem - left padding"),t("smoothly-input",{key:"5bb2e783bbcc3a58d6c5acdb1f8bbc041da04191",name:"text",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"23d8e1f1c3bdef9fee261977c859fe02ce553727"},"Text"),t("smoothly-input-clear",{key:"5fcbc008484fd538c0b38c022e21c2517392a1fa",slot:"end"})),t("div",{key:"85718f38cfc3fac720618543d7b0cd730eb36ad3",class:"height"}),t("smoothly-input-select",{key:"3df2a457315696c953f23aba6340b137195adb39",name:"month",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color},this.options.showLabel&&t("label",{key:"77290d485806c27b165b3342b4c80350cbb8ee25",slot:"label"},"Select"),t("smoothly-item",{key:"99b7fbad3137c7e4c9b92475e7d309b62648f22a",value:"1"},"January"),t("smoothly-item",{key:"f23acba69d6de3dfa9412fcc97bf1f8f6e014d67",value:"2"},"February"),t("smoothly-item",{key:"e4ffe245efc2c63dddeb6850feb3c9f9d38c4fb6",value:"3"},"March"),t("smoothly-item",{key:"86122909ed7a82abea77bb9350d81f1e882e811e",value:"4"},"April"),t("smoothly-item",{key:"cb2e877d9571f816ac1dbb0128bde317af0fe7ec",value:"5"},"May"),t("smoothly-item",{key:"eda0c6dc42fb25f4eeba5310c631bc2104002030",value:"6"},"June"),t("smoothly-item",{key:"df65330b2f39efe3d8a030bf71b11f6a9342a754",value:"7"},"July"),t("smoothly-item",{key:"8944af056b0d2e3946cd6d7c1cdf6a05df6e2536",value:"8"},"August"),t("smoothly-item",{key:"68220d8d44f857cdd462c2d58ac764c5da3465b5",value:"9"},"September"),t("smoothly-item",{key:"b6e2589030646c4760e9bacb172db8e07f066bfe",value:"10"},"October"),t("smoothly-item",{key:"4a446940c5b9ca7190787a1eaba51803c28a0095",value:"11"},"November"),t("smoothly-item",{key:"2ec0f1cb158d31292401c6254d72652c605d3cc7",value:"12"},"December"),t("smoothly-input-clear",{key:"029afac367bf9c37f6f11669740f2863fbd7ce78",slot:"end"})),t("div",{key:"c99fc11ba5be8def7181bd8bc9273f20cbb4923c",class:"height"}),t("smoothly-input-checkbox",{key:"26ce8e4d1dcb6cd8a7c5f2a86d92f355a302aab9",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),t("div",{key:"c5ed1d671f23491904635358619f30832ec2cc81",class:"height"}),t("smoothly-input-radio",{key:"bea498eee5d98b1aaf03116f4e981169268cb23b",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("label",{key:"b1d858188959a28954181e78a6d36787c3c04afe",slot:"label"},"Radio"),t("smoothly-input-radio-item",{key:"b8ddd523e395f5c0e25636d0c024ff1431a6ce77",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"202e97eae6401dd1d725d2656f2d8cebded460e0",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"3ed079468ba539e332675f401f7578b23d255df2",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"ba656e92b96b300b9fd0561b6ea76224fb819fc4",slot:"end"})),t("div",{key:"b5e5398836dc34b9daee143354b3a91a83bd62de",class:"height"}),t("smoothly-input-file",{key:"6126408cd7770f339c1661d86d3b619973d01061",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"336658082d7f580dbc9ef000e47a2a4f3738f427",slot:"label"},"File"),t("smoothly-input-clear",{key:"bb53bb75963346d980c01c7814108d0eec21a33c",slot:"end"})),t("div",{key:"49d8c35ea7317cd6ddf70eabf54494cbee4e6ed5",class:"height"}),t("smoothly-input-range",{key:"5d2b708c5837134c164a2b10f8c4a62088855c6c",label:this.options.showLabel?"Range":undefined,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},t("smoothly-input-clear",{key:"fbd4a69fa25bac1fe0579ae2677d7a0900eb45b5",slot:"end"})),t("div",{key:"f17fbd46698f04d3c53e0357d837e8a2f58f5d3c",class:"height"}),t("smoothly-input-color",{key:"94dabbeeeee831131b5b30dd6c6fac94ec639789",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"56f67d59608fb2fa7bb38602eadf5d5498a56ac7"},"Color"),t("smoothly-input-clear",{key:"3a9e50a5847b8c1fad4bc751c0fa1e491d117d31",slot:"end"})),t("div",{key:"249584c44dde3e87b6b033b04f3a58457eea507a",class:"height"}),t("smoothly-input-date",{key:"a0ccd5fb348cffafeb6841f95c13d608c78e3f57",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"b6cbe5209daf9bca4d8e7b78edbfbf4d81e60509"},"Date"),t("smoothly-input-clear",{key:"2480daa13efe13045889211a9c768224e3dd658d",slot:"end"})),t("div",{key:"235419c95e2a9ad6b9c20e08698cb724a58279e6",class:"height"}),t("smoothly-input-date-range",{key:"426650cd055a27d94a08e985b81abd49ea2ef649",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"3c57b0f1489d483420db5d80926e3651044dafc2"},"Date Range"),t("smoothly-input-clear",{key:"a8348f4a932bf7abb7c448364287a7053d873edc",slot:"end"})),t("div",{key:"53b0aad98c34e95de4e71c5390981b1f8ef3ce32",class:"height"}),t("div",{key:"487394cb94a04c1515c365f916759b55edadedb3",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return a(this)}};pc.style=fc;const gc='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-edit-h{--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(--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;--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(--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 kc=gc;const vc=class{constructor(t){e(this,t);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((e=>{if(lr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{this.display=e.readonly}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.edit(true)}render(){var e;return t(s,{key:"3893bd50803a0e1b68650272a4c6e33852523dac",title:this.toolTip},t("smoothly-button",{key:"0d239160f6d1182482c5197919c95e8318df5a34",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"5b2d5a89c7a1189cb303f530838ef62d6d9eeae5"}),t("smoothly-icon",{key:"56b6e50451c2d46f4914a0ae4af67daae5567a0a",class:"default",name:"create-outline",size:"tiny"})))}};vc.style=kc;const xc='.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:0.5rem;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.mask.sc-smoothly-input-file{position:absolute;inset:0;color:rgb(var(--smoothly-hover-contrast));background-color:rgb(var(--smoothly-input-hover-background))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.mask.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.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:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0;height:100%;box-sizing:border-box}.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 wc=xc;const Sc=class{constructor(t){e(this,t);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.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(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}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(e){var t,o,s;e.stopPropagation();if((o=(t=this.input)===null||t===void 0?void 0:t.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(e){var t;e.preventDefault();e.stopPropagation();this.dragging=false;if((t=e.dataTransfer)===null||t===void 0?void 0:t.files.length)this.value=e.dataTransfer.files[0]}clickHandler(e){var t;if(!this.readonly&&!e.composedPath().find((e=>e==this.input))){(t=this.input)===null||t===void 0?void 0:t.click()}}dragOverHandler(e){e.preventDefault();e.stopPropagation()}dragEnterHandler(e){e.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(e){e.stopPropagation();this.dragging=false}render(){var e,o,a;return t(s,{key:"f4564952fa6b429188708dfde4a46071642791be",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:0,onClick:e=>this.clickHandler(e),onDragOver:e=>this.dragOverHandler(e),onDragEnter:e=>this.dragEnterHandler(e)},t("label",{key:"425032f8554b49bb2b8a290ba0892aaf640de1c8"},t("slot",{key:"4c5a07a177e7a40ae3e01ede1de501dda9ac86e0",name:"label"})),t("div",{key:"4b027176237fe67991f11ce09c44b2df76ec773b",class:"input"},t("smoothly-button",{key:"778160114bc894d9364e073f32b5c5db69dc0516",color:this.color,fill:"clear",size:"flexible"},t("slot",{key:"afbf717c676c69c3d1bf1e831667132fc8960906",name:"button"})),t("span",{key:"fd666a147562d529ea177ad77593d880d72c69d6"},(o=(e=this.value)===null||e===void 0?void 0:e.name)!==null&&o!==void 0?o:this.placeholder),t("div",{key:"985c5f24f14c3e045590ac9ec389a1bd404f5816",class:"mask",onDrop:e=>this.dropHandler(e),onDragLeave:e=>this.dragLeaveHandler(e)}),t("input",{key:"83b727df684650e2a7110126b1fa8e2d627d076c",ref:e=>this.input=e,type:"file",capture:this.camera=="back"?"environment":"user",accept:(a=this.accept)!==null&&a!==void 0?a:!this.camera?undefined:"image/jpeg",files:this.files,onInput:e=>this.inputHandler(e)})),t("slot",{key:"e60f4d80d448ff44f78f6ab021548bfcf20418fe"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Sc.style=wc;const Cc=".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 zc=Cc;const jc=class{constructor(t){e(this,t);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=S.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((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(e){var t;if(!this.readonly){const o=S.parse((t=this.value)!==null&&t!==void 0?t:S.now());o.setMonth(o.getMonth()+e);this.value=S.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var e,t;const o=S.previousMonth((e=this.value)!==null&&e!==void 0?e:S.now()).substring(0,7);const s=(t=this.min)===null||t===void 0?void 0:t.substring(0,7);this.allowPreviousMonth=!s||o>=s}setAllowNextMonth(){var e,t;const o=S.nextMonth((e=this.value)!==null&&e!==void 0?e:S.now()).substring(0,7);const s=(t=this.max)===null||t===void 0?void 0:t.substring(0,7);this.allowNextMonth=!s||o<=s}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){var e,t;(e=this.year)===null||e===void 0?void 0:e.clear();(t=this.month)===null||t===void 0?void 0:t.clear()}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){var e,t;(e=this.year)===null||e===void 0?void 0:e.reset();(t=this.month)===null||t===void 0?void 0:t.reset()}async setInitialValue(){var e,t;(e=this.year)===null||e===void 0?void 0:e.setInitialValue();(t=this.month)===null||t===void 0?void 0:t.setInitialValue()}inputHandler(e){if(e.target!=this.element){e.stopPropagation();const t=e.detail[`${this.name}-year`];const o=e.detail[`${this.name}-month`];if(o&&S.is(o))this.value=S.firstOfMonth(o);else if(t&&S.is(t))this.value=S.firstOfMonth(t)}}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}render(){var e,o;return t(s,{key:"f7c8f232a03bd253c40e3fa8a104eefbb7012bca"},t("smoothly-icon",{key:"294541bc09b9cfa9b6888f148c411cb1d708a74d",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),t("smoothly-input-select",{key:"075bc03f65732b7584a713c914c3ccb6b54173fc",ref:e=>this.year=e,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"bfc9ea3524bfa7fdc89f1a37e161492dae03fca5",slot:"label"},t("slot",{key:"9838d285f25fd339cf998551e0695b117277caaa",name:"year-label"})),it((e=this.value)!==null&&e!==void 0?e:S.now(),this.min,this.max).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-input-select",{key:"9399e9f140c3dbd07672779394353234e201cc7b",ref:e=>this.month=e,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:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"8f480c75256521f111621dbe48bd183c2195ee9a",slot:"label"},t("slot",{key:"0d520a10c3569475b007e52299aabf6ea1472e9c",name:"month-label"})),at((o=this.value)!==null&&o!==void 0?o:S.now()).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-icon",{key:"db2c4f5c1398bfb09e1c867d374f81093d3e2ff7",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 a(this)}static get watchers(){return{value:["valueChanged","setAllowPreviousMonth","setAllowNextMonth"],min:["setAllowPreviousMonth"],max:["setAllowNextMonth"]}}};jc.style=zc;const _c=".sc-smoothly-input-price-demo-h{display:block}";const Tc=_c;const Ic=class{constructor(t){e(this,t);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return t(s,{key:"eae20a79b5023c969b79ba18175e454b044331bf"},t("h2",{key:"006d4cdb680ca8cbfd50e4d1307b0ebac63d82e2"},"State demo on smoothly-input"),t("p",{key:"35088c1dd66f02134f2f4b1d31d24e293e25816e"},"This demo/test the internal state of the smoothly-input component."),t("p",{key:"ee73e3e2fcffc660369268772b46892d0f66a942"},"The currency of the price should update when switching between the currencies."),t("smoothly-input-radio",{key:"3950d4691f86e340596e9d2560dd53a36e676cd1",name:"currency",onSmoothlyInput:e=>this.currency=j.is(e.detail.currency)?e.detail.currency:undefined},this.currencies.map((e=>t("smoothly-input-radio-item",{key:e,selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"e5fd131508b7d6726982bd11d46cbc0007e0846f",type:"price",currency:this.currency},"price"))}};Ic.style=Tc;const Oc='.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:0 var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0}.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}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end] button{padding:0}[readonly].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}';const Lc=Oc;const Ac=class{constructor(t){e(this,t);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 e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));this.initialValue=this.active}handleRegister(e){e.stopPropagation();e.detail(this.name)}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}smoothlyRadioInputHandler(e){var t,o,s;e.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((t=this.active)===null||t===void 0?void 0:t.value)===e.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.value)!==e.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=e.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(e,t){this.listener[e]=t;t(this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){var e;if(this.clearable){(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=undefined;this.value=undefined}}async edit(e){this.readonly=!e}async reset(){var e,t,o;(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=this.initialValue;this.value=(t=this.initialValue)===null||t===void 0?void 0:t.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var e,t,o;this.valueReceivedOnLoad&&(this.changed=((e=this.initialValue)===null||e===void 0?void 0:e.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}render(){return t(s,{key:"7acf872aa853271bc3e0bb8e17ef4aae02645a06",class:"floating-label"},t("slot",{key:"147f9011fa62e4f571d8bcc3080acacaf4976bfb",name:"start"}),t("div",{key:"bb10827ce5574b1922ec7e7e7b4f7ac6d4cd25e4"},t("slot",{key:"90b73e3f57aa13243b98badd8c4e4c79c60bf2ea",name:"label"}),t("div",{key:"7bd6ecbc3e3ec3000926705f69d95b6976683c64",class:"options"},t("slot",{key:"168ede957a777d861520b6736e2488863948534c"}))),t("slot",{key:"72555322e23a289b462ee0d1fdd5dba154e14489",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Ac.style=Lc;const Ec=".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 Dc=Ec;const Mc=class{constructor(t){e(this,t);this.smoothlySelect=o(this,"smoothlySelect",7);this.smoothlyRadioButtonRegister=o(this,"smoothlyRadioButtonRegister",7);this.value=undefined;this.selected=false;this.looks=undefined;this.name=undefined}componentWillLoad(){this.smoothlyRadioButtonRegister.emit((e=>this.name=e));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:e=>this.selected=e})}render(){return t(s,{key:"59774a1bdcf5ca1edc05b9d85c6f3ae697faddf3",onClick:()=>this.inputHandler()},t("input",{key:"bcfd93d12645c0274d7d2fcd5b71c2d342edb30e",name:this.name,type:"radio",checked:this.selected}),t("smoothly-icon",{key:"2ec88c60554f1d133cb0ddcfb7d4e3c40ffbd4ae",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),t("label",{key:"8955cec7ff50907bf245b30cf06ab733238a894c"},t("slot",{key:"4372df8cf4f1a6922a911e33e67187ba9d977091"})))}get element(){return a(this)}};Mc.style=Dc;const $c='.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));padding-right:.5em;box-sizing:border-box}.sc-smoothly-input-range-h>div.sc-smoothly-input-range{position:relative;display:flex;justify-content:center;align-items:center;width:100%}.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 Rc=$c;const Pc=class{constructor(t){e(this,t);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.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(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.value&&(this.initialValue=this.value);this.valueChanged()}smoothlyInputLoadHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this)}}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var e,t,o,s;const a=!this.step?undefined:(t=(e=this.step.toString().split(".")[1])===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0;this.value=Number.isNaN(this.value)||this.value==undefined?undefined:+this.value.toFixed(a);this.changed=this.initialValue!==this.value;(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this);this.smoothlyInput.emit({[this.name]:this.value})}inputHandler(e){var t;e.stopPropagation();const o=!e?this.value:e.target&&"value"in e.target?Number(e.target.value):undefined;if(o==undefined)this.value=undefined;else if(o<this.min)this.value=this.min;else if(o>this.max)this.value=this.max;else this.value=o;this.input&&(this.input.value=this.type=="text"?(t=this.value)===null||t===void 0?void 0:t.toString():this.value)}render(){var e,o,a;return t(s,{key:"8fb68210ebaf98f5da58cfdd6e515cf604d83395",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},t("slot",{key:"e3079cb69fc730453a7a98acf25433f89a815f2b",name:"start"}),t("div",{key:"079abafd6c931376a7f1f34849fde620b5f0108d"},t("label",{key:"c2f747411d5fbb355d48907a5ecbaec4cef6c1b5",htmlFor:this.name},this.label),t("smoothly-input",{key:"010dbb5438d4f8ad3df91e8ab98ecd924b65dcd1",ref:e=>this.input=e,looks:undefined,color:this.color,showLabel:this.outputSide==="left"&&!!this.label,type:this.type,onSmoothlyInputLoad:e=>(e.stopPropagation(),this.inputHandler(e)),onSmoothlyBlur:e=>this.inputHandler(e),onSmoothlyInput:e=>e.stopPropagation(),value:this.type=="percent"?this.value:(e=this.value)===null||e===void 0?void 0:e.toString(),placeholder:this.outputSide==="right"?"-":undefined,readonly:this.readonly},this.label),t("smoothly-display",{key:"d4943e82147cf352a69bdc0546438c737fc39040",label:(this.type=="percent"?this.min*100:this.min).toString()}),t("input",{key:"02eb994933e5124475b1ddf17bbf3a1ad02f79a8",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:e=>this.inputHandler(e),value:(a=this.value)!==null&&a!==void 0?a:this.min}),t("smoothly-display",{key:"43f8daf61048150a4503777df2a0e646d54ace76",label:(this.type=="percent"?this.max*100:this.max).toString()})),t("slot",{key:"8a0e4c96747d3c3d4a3678dfe8375ec6d0a4f9cb",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Pc.style=Rc;const Nc=class{constructor(t){e(this,t)}render(){return t(s,{key:"e6c972c319124ccc57918d00ac2939ffcf801086"},t("h2",{key:"2eee90cf795cb664ae58f8acc9c3ce7507d24d43"},"Range"),t("h3",{key:"514e771706c0ef2966314210c521b77aae6303cd"},"Phone Number"),t("smoothly-input-range",{key:"ca56ef4990eaf1b2e7fdf538ff97e99e8dc95dbc",min:7e8,max:799999999,step:1,label:"Phone Number"}),t("h3",{key:"b2311c9a02a18f87e6007751e74d0f734c3065cb"},"Stars out of ten"),t("smoothly-input-range",{key:"5943346ccc617732018765e3bee90983249af7ee",max:10,step:1,label:"Stars"}),t("h3",{key:"568036b413fb001fa391e4d17301c7de6cae0ae4"},"Percent"),t("smoothly-input-range",{key:"8fb10ce5d6797d3902a5ef6daea24693aed6c8f0",type:"percent",max:1,step:.01,label:"Percent"}),t("h3",{key:"a559ab1a231c754648ab7b41f98e22a2be92822c"},"With icon at start and clear button"),t("smoothly-input-range",{key:"7f9e20c399d74ead7e045e9bf667960caf79d5b5",step:1,name:"range2",label:"Select"},t("smoothly-icon",{key:"4160644ddaccebae7e635c685f77af1f8f67fbef",name:"checkmark-circle",slot:"start"}),t("smoothly-input-clear",{key:"39d01ea1fafbeaceb339154e8d356b7fb02c5e5a",size:"icon",slot:"end"})))}};const Hc='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--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(--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;--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(--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 Fc=Hc;const Uc=class{constructor(t){e(this,t);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((e=>{if(lr.Element.type.is(e)){this.parent=e;this.readonlyAtLoad=e.readonly;e.listen("changed",(async e=>{if(cr.is(e)){this.display=e.readonly?false:e.changed}if(e instanceof br){this.display=!e.readonly;this.disabled=!this.readonlyAtLoad&&!e.changed}}))}}))}clickHandler(e){var t,o;e.stopPropagation();(t=this.parent)===null||t===void 0?void 0:t.reset();this.parent instanceof br&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var e;return t(s,{key:"84d146336bbff590ee3975dae9a2680d70d8edb7",title:this.tooltip},t("smoothly-button",{key:"0286108fc4e8b36381d1ae238b771121153a3eaa",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined,onClick:e=>this.clickHandler(e)},t("slot",{key:"c188073bf34013cc79126f1dac5fd19c1bc44884"}),t("smoothly-icon",{key:"ca46c711d2d41a0f4ad835c608c5011d1f5a8e03",flip:"x",name:"refresh-outline",size:"tiny"})))}};Uc.style=Fc;var Yc;(function(e){let t;(function(e){e.type=d({value:A(),deselectable:y(),selected:y().optional(),filter:h()});e.is=e.type.is})(t=e.Element||(e.Element={}));e.type=t.type.extend({});e.is=e.type.is})(Yc||(Yc={}));const Wc='.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:0 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;margin-right:.2em}.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%)}smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.invalid.sc-smoothly-input-select{display:block}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-input-reset{padding-right:.2em}.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{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item:not([selectable]){display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:var(--smoothly-color-contrast)}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:not([selectable])>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}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.sc-smoothly-input-select{display:block}';const Bc=Wc;const Vc=class{constructor(t){e(this,t);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.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 e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var e,t,o,s,a;this.itemHeight===undefined&&(this.itemHeight=(e=this.items.find((e=>e.clientHeight>0)))===null||e===void 0?void 0:e.clientHeight);if(this.menuHeight&&this.itemHeight){(t=this.element)===null||t===void 0?void 0:t.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`)}(a=this.element)===null||a===void 0?void 0:a.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(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((e=>e.value)):undefined}async getItems(){return this.items}async listen(e,t){this.listener[e]=t;t(this)}async reset(){this.selected.forEach((e=>e.selected=e.hidden=false));this.initialValue.forEach((e=>e.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var e;if(this.clearable){this.selected.forEach((e=>e.selected=e.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(e=this.placeholder)!==null&&e!==void 0?e:""}}}async edit(e){this.readonly=!e}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}async onSelectedChange(){var e,t;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}onRequiredChange(){this.items.forEach((e=>e.deselectable=!this.required))}async onFilterChange(e){e=e.toLowerCase();await Promise.all(this.items.map((t=>t.filter(e))))}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async smoothlyInputLoadHandler(e){if(e.target&&("name"in e.target&&e.target.name!==this.name||e.composedPath().some((e=>e==this.iconsDiv))&&!e.composedPath().some((e=>e==this.toggle)))){e.stopPropagation()}else if(Yc.Element.is(e.target)){e.stopPropagation();e.target.deselectable=!this.required;this.items.push(e.target)}e.detail(this)}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(e){e.stopPropagation();if(this.multiple){this.selected=e.detail.selected?[...this.selected,e.detail]:this.selected.filter((e=>e.selected))}else if(e.detail.selected||!this.items.some((e=>e.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!e.detail.selected?this.selected.filter((e=>e.selected)):[e.detail];!this.showSelected&&e.detail.selected&&(e.detail.hidden=true)}this.displaySelected()}onClosed(e,t){this.lastOpen=t;if(!e){const e=this.items.find((e=>e.marked));if(e){e.marked=false}}}handleShowOptions(e){const t=(e===null||e===void 0?void 0:e.composedPath().some((e=>e==this.iconsDiv)))&&!e.composedPath().some((e=>e==this.toggle));const o=e===null||e===void 0?void 0:e.composedPath().find((e=>"tagName"in e&&e.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!t&&(this.open=!this.open);this.filter=""}areValuesEqual(e,t){return e.length===t.length&&t.every((t=>e.includes(t)))}displaySelected(){const e="<div>"+this.selected.map((e=>e.innerHTML)).join("</div><div>")+"</div>";this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?e:this.placeholder?this.placeholder:"")}onKeyDown(e){if(!this.searchDisabled){e.stopPropagation();const t=this.items.some((e=>e.getAttribute("hidden")===null));if(e.key!="Tab"&&!e.ctrlKey&&!e.metaKey)e.preventDefault();if(this.open){switch(e.key){case"ArrowUp":t&&this.move(-1);break;case"ArrowDown":t&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((e=>e.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(e.key.length==1)this.filter+=e.key;break}}else{switch(e.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(e.key.length==1)this.filter+=e.key;break}}}}scrollToSelected(){const e=this.items.find((e=>e.selected));if(e){this.items.map((e=>e.marked=false));e.marked=true;this.scrollTo(e,"instant")}}move(e){let t=this.items.findIndex((e=>e.marked));if(t==-1)t=0;else{this.items[t].marked=false;t=(t+e+this.items.length)%this.items.length}if(this.items.some((e=>!e.hidden)))while(this.items[t].hidden){t=(t+e+this.items.length)%this.items.length}this.items[t].marked=true;this.scrollTo(this.items[t],"smooth")}scrollTo(e,t){var o,s,a;(o=this.optionsDiv)===null||o===void 0?void 0:o.scrollTo({top:e.offsetTop+e.offsetHeight/2-((a=(s=this.optionsDiv)===null||s===void 0?void 0:s.clientHeight)!==null&&a!==void 0?a:0)/2,behavior:t})}addItem(){this.addedItems=this.addedItems.concat(t("smoothly-item",{value:this.filter,selected:true},this.filter))}render(){return t(s,{key:"126ca504b10b3bad5e6d8082ddcd4b60a116c06b",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open,invalid:!!this.invalid},onClick:e=>this.handleShowOptions(e)},t("div",{key:"167e4b9bbdb4cf2fa4db457123dd8152acfe67d7",class:"select-display",ref:e=>this.displaySelectedElement=e},this.placeholder),t("div",{key:"da71cda616c691e2b77887cca24abf1c82d6328e",class:"icons",ref:e=>this.iconsDiv=e},t("slot",{key:"4f6042a5a7b3d2b9fa0736f2d9ff04cc80e78e36",name:"end"}),this.looks=="border"&&!this.readonly&&t("smoothly-icon",{key:"058577c183a1b446cd9e65d82bc7538f258e0627",ref:e=>this.toggle=e,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"}),t("smoothly-icon",{key:"3f09d834fb8b14a7c1aeda057e51adcdbedf7c7f",class:"invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small"})),t("slot",{key:"93d7ac3a839964bb5e429d2f66d39cfb6c66ae0e",name:"label"}),t("div",{key:"c6b2321ca5d632d07dcb7bc0cdfd9e4345a6e110",class:{hidden:!this.open,options:true},ref:e=>this.optionsDiv=e},this.filter.length>0&&t("smoothly-item",{key:"2b3614e99b646fffc6e8d6893d8d99da278646a2",selectable:false},t("smoothly-icon",{key:"a1509e12963c7bd91de3dccd5a7b411c2b94e1d4",name:"search-outline",size:"small"}),this.filter,t("smoothly-icon",{key:"4b82441f8dac4fef8e1d573307ac09000c14804a",name:"backspace-outline",size:"small",onClick:e=>{e.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&t("smoothly-icon",{key:"d28a88ee36f0d03cd83ef5ec6096cdb2e4a77524",name:"add",size:"small",onClick:e=>{e.stopPropagation();this.addItem()}})),t("slot",{key:"4d1636482bb3d7d3f144bc3c49746e2b613eb9b3"}),this.addedItems))}get element(){return a(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};Vc.style=Bc;var Gc;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.submit=="function"}e.is=t})(Gc||(Gc={}));const Kc='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--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(--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;--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(--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 Zc=Kc;const qc=class{constructor(t){e(this,t);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((e=>{if(Gc.is(e)&&lr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{var t;this.display=!e.readonly;this.disabled=!this.delete&&(e.readonly||"validator"in e&&e.validator instanceof n&&!((t=e.validator)===null||t===void 0?void 0:t.is(e.value))||!e.changed)}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit(this.delete)}render(){var e,o;return t(s,{key:"61455e946113cc21449e9e8641c6bbfef8e30e72",title:this.toolTip},this.delete==true?t("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(e=this.color)!==null&&e!==void 0?e:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},t("slot",null),t("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):t("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()},t("slot",null),this.icon&&t("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}};qc.style=Zc;const Jc="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-input-selected-background));color:rgb(var(--smoothly-input-selected-foreground));border-left:.3em solid rgb(var(--smoothly-input-selected-border))}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}[marked].sc-smoothly-item-h,.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-input-hover-background));color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-item-h[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:hover.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}";const Xc=Jc;const Qc=class{constructor(t){e(this,t);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.selectable=true;this.deselectable=true}clickHandler(){if(this.selectable&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&this.selectable)this.smoothlyItemSelect.emit(this.element)}async filter(e){var t;const o=typeof this.value==="string"?this.value:JSON.stringify((t=this.value)!==null&&t!==void 0?t:"");this.element.hidden=e&&this.selectable?!(o.includes(e)||this.element.innerText.toLowerCase().includes(e)):false}render(){return t(s,{key:"0e5344e701592d19a28bd7d2da143047fea7e40a",tabIndex:-1},t("slot",{key:"fd980b0d8c26d6f771a7a17e0217791f6a7f487a"}))}get element(){return a(this)}static get watchers(){return{selected:["selectedWatcher"]}}};Qc.style=Xc;const ed=".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 td=ed;const od=class{constructor(t){e(this,t);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var e;return t(s,{key:"4a90b9d9674560c2a9a59945cb1f0eaf0ce09f9b",title:this.description,style:{"--hue":(e=this.hue)===null||e===void 0?void 0:e.toString()}},t("slot",{key:"ed8b2c1be55b3bd18c7af8f13a7638554046d8c5"}))}};od.style=td;const sd=".sc-smoothly-lazy-h{display:block}";const ad=sd;const id=class{constructor(t){e(this,t);this.show=false;this.content=undefined}loadMoreHandler(e){e.stopPropagation();this.show=true}render(){return t(s,{key:"88c9532ef42caab22c88a769a13068d7828f62e8"},t("slot",{key:"473962c13eb1cedd201dc015b12543f146937871",name:"before"}),t("smoothly-load-more",{key:"6c9e8bbc62fac0be9eeec2475f63f6f68417006a",onSmoothlyLoadMore:e=>this.loadMoreHandler(e)}),this.show&&(typeof this.content=="function"?t(this.content,null):this.content),t("slot",{key:"9239f995d5eea81d62ec1a80167f16dcb28435a1"}))}};id.style=ad;const nd=class{constructor(t){e(this,t);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 e;this.observer=new IntersectionObserver(((e,t)=>this.observationHandler(t,e)));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=l.findParent(this.element);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var e;(e=this.scrollableParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(e,t){var o,s;this.inView=((s=(o=t.find((e=>e.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&&(e.unobserve(this.element),e.disconnect())}}render(){return t(s,{key:"e2d3a2ec72790c092e380414de0e652e5e95f2e6"})}get element(){return a(this)}};const ld=".sc-smoothly-next-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const rd=ld;const cd=class{constructor(t){e(this,t)}render(){return t(s,{key:"ad66c04678c57615cd654afef65052166bf95d02"},t("smoothly-next-demo-group",{key:"18584b307d1170601bbfae068ea73aaa51495d91"}),t("smoothly-next-demo-colspan",{key:"46dd448391adb9c6a62877b9b08db6f638bb4ea7"}),t("smoothly-next-demo-simple",{key:"e576c9455c1915d5773981a5c655960e643443b7"}),t("smoothly-next-demo-nested",{key:"d9f197a314998a3bee70eb410d4c47945e48756c"}),t("smoothly-next-table-demo-filtered",{key:"e1a613c0f6ec69bf6a92159afa3f347cf9411e1e"}))}};cd.style=rd;const dd=".sc-smoothly-next-demo-colspan-h{display:block}.sc-smoothly-next-demo-colspan-h smoothly-display.sc-smoothly-next-demo-colspan{display:inline}";const hd=dd;const bd=class{constructor(t){e(this,t)}render(){return t(s,{key:"b2c6c645d065e30ee02b8e9f5feedb2b295ea3e4"},t("smoothly-next-table",{key:"2a3f3f2405975ecbc1368d1fcad7cabc83e1bbf4",columns:3},t("smoothly-next-table-head",{key:"e77caee7b9768d0dea19249ec0a91c20cafcb607"},t("smoothly-next-table-row",{key:"087a5fad61abc4ce24ca78c4acf1b8176c6b70df"},t("smoothly-next-table-cell",{key:"4c49a5950fde1ccad81a94383ff16755ad5fa2e5"},"Date"),t("smoothly-next-table-cell",{key:"8614f0587a7f50c996f3e4034b792e0e148ba867"},"Skip"),t("smoothly-next-table-cell",{key:"386a1cf212c3caffcdb92a06f2d6b8424e48ab44"},"Total"))),t("smoothly-next-table-body",{key:"a8e0cf028b6fc60707a553792064a0bd551d857f"},t("smoothly-next-table-row",{key:"6451e716f3ddd3ac0ad38ab8a8a5c9b75bdbf930"},t("smoothly-next-table-cell",{key:"df0ca19e83c66e3381ba3de68b3980b40d00bcf9",span:2},t("smoothly-display",{key:"196eea216c4da3b8638682d89238bc1f732dab4c",type:"date",value:"2024-01-01"})),t("smoothly-next-table-cell",{key:"21e9c4582309ddda5927f16725c52ce26e3a6664"},t("smoothly-display",{key:"2be15893edbe6c922d9b8d800129f8932817c73e",type:"price",value:120,currency:"EUR"}))),t("smoothly-next-table-row",{key:"b8c48318275f6cf0394d182441c5580554bd36ef"},t("smoothly-next-table-expandable-cell",{key:"91529f5300fd180587451c7329fd308de700dca3",span:2},t("smoothly-display",{key:"ae2ac526610e0a9a768057643becde1f5ab89510",type:"date",value:"2024-01-02"}),t("smoothly-lazy",{key:"573e52c30a1394e1ebfad7cdc8bdbf8a8ad90c09",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),t("smoothly-next-table-expandable-cell",{key:"5de337ecacbfd99a15061adedf6d54c634462962"},t("smoothly-display",{key:"5cb3e3fed252228a9b9d1c1d711bab91faf83f86",type:"price",value:220,currency:"EUR"}),t("smoothly-lazy",{key:"b89a787ec90aca2d56e694fdc8c820cddb0b7dda",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),t("smoothly-next-table-row",{key:"9743fe9940fee19131f342271fb77b47da615a63"},t("smoothly-next-table-cell",{key:"908d245801e83374a6e20f6aebf21d87199f84fe"},t("smoothly-display",{key:"7f3169841c862511050e427e6f525fae099f2f59",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"dbd77917ba5226340a77099a9afe5e80aa9b7ad5"},"Not Skipped"),t("smoothly-next-table-cell",{key:"c015691be21133633630da7f9aa0224204402c24"},t("smoothly-display",{key:"960708bfa8ef9ac968f9f23120b2f89315cb7cdf",type:"price",value:320,currency:"EUR"}))))))}};bd.style=hd;const md=".sc-smoothly-next-demo-group-h{display:block}.sc-smoothly-next-demo-group-h smoothly-display.sc-smoothly-next-demo-group{display:inline}.sc-smoothly-next-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-next-demo-group{grid-column:span 2}.sc-smoothly-next-demo-group-h>smoothly-display.sc-smoothly-next-demo-group{display:inherit;font-size:2em}.sc-smoothly-next-demo-group-h>*.sc-smoothly-next-demo-group{margin-bottom:2rem}.sc-smoothly-next-demo-group-h fake-group-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-row-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-expandable-row-wrapper.sc-smoothly-next-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-next-demo-group-h fake-cell-wrapper.sc-smoothly-next-demo-group{grid-column:span 1;display:block}.sc-smoothly-next-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-next-demo-group{display:contents}";const yd=md;const ud=class{constructor(t){e(this,t)}render(){return t(s,{key:"ff874f15d29e99083ebcc499cf47f13080b1d981"},t("smoothly-display",{key:"1e032e73f451aebbf079015970fd4c9179b4f34c",type:"text",value:"Group"}),t("smoothly-next-table",{key:"e4cbaaa391ac3a5d6c3c1e241f5abfe5a860c1e2",color:"primary",columns:2},t("smoothly-next-table-head",{key:"28f06391849ce85568cd0d0bbacafcf399734cf0"},t("smoothly-next-table-row",{key:"e022b2233c8ee921951e788dcdf82f07d15ef331"},t("smoothly-next-table-cell",{key:"6c9cf6fb3eff80c996614d30682430cf6c43c5d6"},"Date"),t("smoothly-next-table-cell",{key:"69dd24aa41d2eb9be070ec15d0df5a5d70023518"},"Total"))),t("smoothly-next-table-body",{key:"39573e34a031bba392edcf2259ed1e1fa99d6e0a"},t("smoothly-next-table-row-group",{key:"eb8c3c6d5f012a6d9fa18dc3a7ed02ad6f42b07f",align:true},t("smoothly-display",{key:"097d576c78e4aad18b45b88140561a63849ae696",slot:"start",type:"date",value:"2024-01-01"}),t("smoothly-display",{key:"cbb3f0d18e230353d46585b69575975b6b28cbca",slot:"end",type:"price",currency:"EUR",value:510}),t("smoothly-next-table-expandable-row",{key:"f0ed517d0295c3c435b745296bda12a52ec19469"},t("smoothly-next-table-cell",{key:"aad9d185615fac89d0c7ae22a8622931714da9e5"},t("smoothly-display",{key:"229bdb21a8e632b3cabc75b52dc10a5ac552843c",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"65e35f8e0cef441c38538ea7260144516b073d59"},t("smoothly-display",{key:"ae43957ee27fa296763cf963715a8b332255e241",type:"price",currency:"EUR",value:250})),t("smoothly-lazy",{key:"9b04e07d24fe3a2c0582d593c128e82300fbd5ae",slot:"detail",content:t(i,null,"Details of 2024-01-01T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"0421109113e533e527b9afbb9ff96d53e782c2e7"},t("smoothly-next-table-cell",{key:"339dc0089c2a94144a5ec9d32129d532ee968e83"},t("smoothly-display",{key:"fefc20db6ad710098e9a1b024b14e169b8d80c39",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"3405e27f2e9fe09f6ee766603f55154ce5c97b8e"},t("smoothly-display",{key:"9e9b529c7783890e535cc12e5fc81add5bb6dcbf",type:"price",currency:"EUR",value:260})),t("smoothly-lazy",{key:"d6a1c29f866b4bc2c7f30f93694302ffa2928a6b",slot:"detail",content:t(i,null,"Details of 2024-01-01T13:37:00.000Z")}))),t("smoothly-next-table-row",{key:"56b81f00b219e8e686895abb596815465d79bc56"},t("smoothly-next-table-cell",{key:"bde142726605fbf1d848a714ed4eeb28311d46b1"},t("smoothly-display",{key:"7bdccf4633c9e7ce9ddc4ece54a1756b134191b0",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"461389cef6c33040a1fb4c16ec206f16f391c315"},t("smoothly-display",{key:"1a327b00a226d514fe3d22db0ca6fc05cb8544a4",type:"price",currency:"EUR",value:130}))),t("smoothly-next-table-row-group",{key:"12d395fd3c1ac1dcd846d7f1f922f399c89b3a5d"},t("smoothly-display",{key:"e79903aae83137a74d7a0d651a489554bc109916",slot:"start",type:"date",value:"2024-01-03"}),t("smoothly-display",{key:"6577ecd6301fc9c8ba3931fe3c3375f52425a190",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"9b11f897beeafd11d209739e4e2af95d43e9024c"},t("smoothly-next-table-cell",{key:"5bb31970610ce0562eabdd76c8bd6003eadcb703"},t("smoothly-display",{key:"d00fc7e0d7367da1795552a38edf6a35e7d67c04",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"ef8fd452e7f83e05fbbecf95b0638337fdbbf85d"},t("smoothly-display",{key:"6524bc3d69f3c00eff36f5ddcdaaa677c1809a9a",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"32d1f68b390bc19d85a32dc3300b50b0a6eacdb6",slot:"detail",content:t(i,null,"Details of 2024-01-03T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"dacca1bc298a62451e7b1de3ea2688282b649a2a"},t("smoothly-next-table-cell",{key:"97da26f60d83a2a2d948cc2ba02ba9090528f1a3"},t("smoothly-display",{key:"19d81d7f3f751f25ea752ee8842f8e0a8e246584",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"43c793b92e4ba613287b577219d8575a0f24410d"},t("smoothly-display",{key:"b120bb00528952bfe843fc463c74ee650ca0eeeb",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"86fc64d503d0df6aef46dc3b7882d41b17b85129",slot:"detail",content:t(i,null,"Details of 2024-01-03T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"40b0dc0deb96c3dbba541558e3588efe87044c0d"},t("smoothly-display",{key:"493bb51e2dd587f43065aa17c5038d0eaf557ff7",slot:"start",type:"date",value:"2024-01-04"}),t("smoothly-next-table-expandable-row",{key:"102684745337826b747da01ff6834f8351e5fdd1"},t("smoothly-next-table-cell",{key:"c803e418a66f0e70a31b5713e3db5430b656cce5"},t("smoothly-display",{key:"a3c42172f2b70bdeac5f11e3c03c9a45a35371a3",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"b78d45a62d5afe38b9e74b79f37bf043b76535f6"},t("smoothly-display",{key:"f2de03d1b47cc9827c607bc9a1cccd7d090d109d",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"987e7dc9105e445300201263849685ea8e2bef2b",slot:"detail",content:t(i,null,"Details of 2024-01-04T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"7e82232e17c85dc9a84fcedfc1da556b160a67b8"},t("smoothly-next-table-cell",{key:"b2daffddab2af02684efa06d4e583b832de01702"},t("smoothly-display",{key:"487a1f53600026e1291b7ce1ba8d4565c4c5a184",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"2f251ec1c497f631609fe8a9dc7c5242516953f6"},t("smoothly-display",{key:"705cb8032956df5cd3fe86387f22ed1f499541e3",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"96bbbbcbee7c044d380d44c1272aef94b7d26d7c",slot:"detail",content:t(i,null,"Details of 2024-01-04T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"581936167e7153290cd4a004b0de4097b3dcd37d"},t("smoothly-display",{key:"4c64eadf6eaadc46cf6cbe685485aa29cdd79ab3",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"f21368272112b5e10bdca67f3ac00e20c920991f"},t("smoothly-next-table-cell",{key:"905ca0c7756b91ffac9c2f64b690fd4f9386d5a2"},t("smoothly-display",{key:"ff8d18b78048e4fbdd2db5daa1d0d5fc638d2b40",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"ca7e8ab39d27d5cd0f4328db1ea53ed146b096e5"},t("smoothly-display",{key:"a71b3233c84ca7bb4b841ef92e5c415920aa8e04",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"8c0d91382720e022075ffcac32123d3218fca091",slot:"detail",content:t(i,null,"Details of 2024-01-05T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"7783eda7dd805ee4a1e6b812ee16dc5de5d4c728"},t("smoothly-next-table-cell",{key:"ae8618d1213ca9b2936f8e13b3099a51cc47c445"},t("smoothly-display",{key:"a2a8cc83750ba4e9754cec70e904fb034ad79d82",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"bf7a5c89a9f6709b10b4b44b6e3de4b83595d1f1"},t("smoothly-display",{key:"4437f5797f262190bce122235ffa79c7a754b930",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"b0ad97494ec9e92698f5dbc87286a886513ee435",slot:"detail",content:t(i,null,"Details of 2024-01-05T13:37:00.000Z")}))),t("fake-group-wrapper",{key:"9cf6d748292dd9fd3a9fea44fcacca3225b3e33a"},t("smoothly-next-table-row-group",{key:"1bce798d3fa74f46b4f72c443bc7b8796ca3a16a"},t("smoothly-display",{key:"1e5724ffb93301b0fb15d619b257784fa7496489",slot:"start",type:"date",value:"2024-01-06"}),t("smoothly-display",{key:"19b8246354fbfc7bfd006cd8798bb93199bafb89",slot:"end",type:"price",currency:"EUR",value:720}),t("fake-row-wrapper",{key:"cb2d49d7a02550f6ff3a774a8cf71339fa12e004"},t("smoothly-next-table-row",{key:"bd7a8c8077c19c4c4055cd0ca9e562aa06e9890a"},t("fake-cell-wrapper",{key:"b1366c9b42cc987c3f3539987b9732151d70557f"},t("smoothly-next-table-cell",{key:"81382dceb58c5ef27c34e58fce6d7c6e4c3d2042"},t("smoothly-display",{key:"f21e24a484ffc07be14132e180433f9a259da092",type:"date",value:"2024-01-02"}))),t("fake-expandable-cell-wrapper",{key:"1738c66939b561a6cded42cb96dc850229a49767"},t("smoothly-next-table-expandable-cell",{key:"3dd59423999f91677399fd5c8484b4a6b847f4a2"},t("smoothly-display",{key:"002e9352edc79c8bd24c32d86613bcd171ff3c56",type:"price",currency:"EUR",value:130}),t("smoothly-lazy",{key:"8176912a8409266607a8e9be866d973fdf09d8b6",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),t("fake-expandable-row-wrapper",{key:"fbb9345e40dec6db5710cffea7bdcb08891a483c"},t("smoothly-next-table-expandable-row",{key:"627a45cd5376678868725bf3c06367e7ae43a5b9"},t("fake-cell-wrapper",{key:"eb046a275d6595b51403a850f798cc22916aa4be",class:"span-2"},t("smoothly-next-table-cell",{key:"077a02cb1ae0717b44ce1556a49a811179e651fc",span:2},t("smoothly-display",{key:"782b8989a45e1812fea6956991cba54bc15db671",type:"date",value:"2024-01-07"}))),t("smoothly-lazy",{key:"2d2bebabe359322df1d97a916ab96eac0f935427",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),t("smoothly-next-table-row-group",{key:"4ff04f4105fb8ae4cbeb04f383a430700248ebae"},t("smoothly-display",{key:"7d3205eda3cf4c8db2dd895661dd02b6e9d7daa2",slot:"start",type:"date",value:"2024-01-08"}),t("smoothly-display",{key:"09b25d7d4d940827459bc613e56f99074d97e2cd",slot:"end",type:"price",currency:"EUR",value:720})))))}};ud.style=yd;const fd=[{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 pd=".sc-smoothly-next-demo-nested-h{display:block}.sc-smoothly-next-demo-nested-h>smoothly-display.sc-smoothly-next-demo-nested{font-size:2em}.sc-smoothly-next-demo-nested-h>*.sc-smoothly-next-demo-nested{margin-bottom:2rem}";const gd=pd;const kd=class{constructor(t){e(this,t)}render(){return t(s,{key:"eb174539571c6594f1a67904a3bd6cc46a4775c2"},t("smoothly-display",{key:"c38e889a98aa98d0d31759e4e6199cd8f4227da9",type:"text",value:"Nested"}),t("smoothly-next-table",{key:"e6bfb25f6b697f8f2329691542386280cc4fa6ed",color:"primary",columns:8},t("smoothly-next-table-head",{key:"55d1813a936ce8f7e8741f06df2d2c580f7f7e10"},t("smoothly-next-table-row",{key:"949ebfda030b30f79f53e6384e08f7ba8df1f87b"},t("smoothly-next-table-cell",{key:"233a25c79fa3292d9feadf879ddea26a96c075fe"},"Id"),t("smoothly-next-table-cell",{key:"30c05dd3615677857fe5c91b16f82c4416b37008"},"Registered"),t("smoothly-next-table-cell",{key:"85dbf75ac19a80e5d0f9af9d24eb4986c92f356b"},"Name"),t("smoothly-next-table-cell",{key:"eac465afe7e5136923d1d791ac9b2c199c265a70"},"Age"),t("smoothly-next-table-cell",{key:"094c2f78e1815c87df70ddaddb519b7970a761b3"},"Balance"),t("smoothly-next-table-cell",{key:"60aad2b05e37abef37479480743e91d86ce91f06"},"EyeColor"),t("smoothly-next-table-cell",{key:"f27711521ccd55da231c9154764b896d52d8cb67"},"Gender"),t("smoothly-next-table-cell",{key:"7ec4903f2c08eeb484e749fe70e6aa243b65a6c1"},"Company"))),t("smoothly-next-table-body",{key:"a487a951bc77a11077076b0ac4b91f8ba2bd184f"},fd.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-demo-nested-inner",{color:"secondary",data:e.friends,slot:"detail"}),t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.registered),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance),t("smoothly-next-table-cell",null,e.eyeColor),t("smoothly-next-table-cell",null,e.gender),t("smoothly-next-table-cell",null,e.company))))),t("smoothly-next-table-foot",{key:"54805bd7e8c97fbd649e7a901f9b2e36ba4e8871"},t("smoothly-next-table-row",{key:"65cf41367d296dd55a41587eef61d7ebbf7b2e9d"},t("smoothly-next-table-cell",{key:"f736158bf4d9329d7b49380e21ad83a61667b986"},"Footer Cell"),t("smoothly-next-table-cell",{key:"cbb0d98254a73a1443cbaab8a1edfaea37f7d33b"},"Footer Cell")))))}};kd.style=gd;const vd=".sc-smoothly-next-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const xd=vd;const wd=class{constructor(t){e(this,t);this.data=undefined}render(){var e;return t(s,{key:"0248b5a72a254ce62d43d99ec2202530dd28e789"},t("smoothly-next-table",{key:"4ce545a2433622bd8ac4694b30ebd51ec5c41c64",columns:4},t("smoothly-next-table-head",{key:"a08d6b7548fbe825faebe9426642b2518936db6c"},t("smoothly-next-table-row",{key:"5ea67a034a36d0bb651c8c46a47fe79c8970c5ba"},t("smoothly-next-table-cell",{key:"53bae7bcd2cd0b6bd0963ddf4d945e5f56ffea1c"},"Id"),t("smoothly-next-table-cell",{key:"e7a32cf03cfa817f5392681c18f957281e8037b0"},"Name"),t("smoothly-next-table-cell",{key:"07dea67c94413dc8ac254b8bb11f3ee929a96ccd"},"Age"),t("smoothly-next-table-cell",{key:"f865dd009768fa6e5cffa253feacb4f90761abd0"},"Balance"))),t("smoothly-next-table-body",{key:"e241d00a285d0ee99bb2de8b8bf0e308b46ec9f4"},(e=this.data)===null||e===void 0?void 0:e.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance)))))))}};wd.style=xd;const Sd=".sc-smoothly-next-demo-simple-h{display:block}.sc-smoothly-next-demo-simple-h>smoothly-display.sc-smoothly-next-demo-simple{font-size:2em}.sc-smoothly-next-demo-simple-h>*.sc-smoothly-next-demo-simple{margin-bottom:2rem}";const Cd=Sd;const zd=class{constructor(t){e(this,t)}render(){return t(s,{key:"c5fdef18f94b85c2efe83032d466da6ba567015d"},t("smoothly-display",{key:"0200a4b2cd5710bd1ce995d77550a013bb7ab45b",type:"text",value:"Simple"}),t("smoothly-next-table",{key:"64f5c4c3b1b6dcb48446ec591d4f8ec208b17d33",color:"primary",columns:2},t("smoothly-next-table-head",{key:"0be8b756189e93a18b40e63dd90a5cec7c32b1a9"},t("smoothly-next-table-row",{key:"a727b2b2c8159e26969528becbe4181b9982cd13"},t("smoothly-next-table-cell",{key:"47917f9ed28a51e02a646db47af64b7d589ab486"},"Breed"),t("smoothly-next-table-cell",{key:"17006d80320f9da44010966eb8c6bb0ce96526db"},"Coat"))),t("smoothly-next-table-body",{key:"2e4220d573b24c2e975ba664a05b82631be35dbc"},jd.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country:",t("br",null),e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern))))),t("smoothly-next-table-expandable-row",{key:"c3a86869b462749f01db9d85365d2bfaab54bba7"},t("div",{key:"8acde0cbbef36a6118b4d5ce205ea796d584f65c",slot:"detail"},"Content",t("br",{key:"f7872803b10b635a48bd670753d03cf9d7c2e678"}),"of",t("br",{key:"d552bc308f4fde201b6642e644646d952470c6c1"}),"the",t("br",{key:"3e043df2b75084a2880beb5b3c7d083369ff8276"}),"expandable",t("br",{key:"c63c87fcd100a5c4b5d8a72b1c48cbd8196212cb"}),"row"),t("smoothly-next-table-cell",{key:"48e6d5a20e99edce537f666e256c293dc61a02d9"},"Cell1 in expandable row"),t("smoothly-next-table-cell",{key:"b69385320f21344c591e2a863bfe91c14c11143d"},"Cell2 in expandable row")),t("smoothly-next-table-row",{key:"27af852e8125aea2c6a08816ac9fd18105a0e2e9"},t("smoothly-next-table-cell",{key:"8e40941f52eb0e15f41b29480d52efba177f58f4"},"Cell5"),t("smoothly-next-table-expandable-cell",{key:"54e32eb1c9966561c63702b57bcaebb0fd75799a"},"Expandable Cell",t("div",{key:"a048887e5fcf457323fcf6909f839b803b389065",slot:"detail"},"Content of the expandable cell"))),t("smoothly-next-table-row",{key:"1d5a5178fb8d6cdaff961ef519f3d8133a4aa4d6"},t("smoothly-next-table-expandable-cell",{key:"440b23610fdbac87b86de2ae21f9b0121dd98212"},"Expandable Cell 1",t("div",{key:"c6eeec4e8a16906309ca7343612db2c3f00528db",slot:"detail"},"Content of the expandable cell 1")),t("smoothly-next-table-expandable-cell",{key:"b4ff5754ff2ef4facbead45353bb5a4588b9d9b6"},"Expandable Cell 2",t("div",{key:"a9aa1bd586e9fee98015e609551967b692f4568b",slot:"detail"},"Content of the expandable cell 2")))),t("smoothly-next-table-foot",{key:"5023f571df9999cb5da23ee3051c3270403ffc7f"},t("smoothly-next-table-row",{key:"b738ccd3663c1183d2ad84eacf36824112db4013"},t("smoothly-next-table-cell",{key:"0abf338b0191ceaaed6db51fd2280d7d0d2874f6"},"Footer Cell"),t("smoothly-next-table-cell",{key:"241615bc1f5aca330df47feaa8c5e583c42b5b63"},"Footer Cell")))))}};const jd=[{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"}];zd.style=Cd;const _d=".sc-smoothly-next-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 Td=_d;const Id=class{constructor(t){e(this,t);this.columns=1}smoothlyNextTableExpandableCellChange(e){e.stopPropagation()}render(){return t(s,{key:"8f2969cfd0b8108a8e976dc592ff1e992c727cdb",style:{"--columns":this.columns.toString()}},t("slot",{key:"93076a994b040551cd588de2acd21b73c407b4cc"}))}};Id.style=Td;const Od=".sc-smoothly-next-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 Ld=Od;const Ad=class{constructor(t){e(this,t)}render(){return t(s,{key:"f8381f510d7a93e337d2510ff605474c8c675717"},t("slot",{key:"22d334dbce9a5fe7cbe75172c641cc04070cbba3"}))}};Ad.style=Ld;const Ed=".sc-smoothly-next-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 Dd=Ed;const Md=class{constructor(t){e(this,t);this.span=1}render(){var e;return t(s,{key:"a5f090501ab9f97c7acd9bde4d6efbd8ecda0acd",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("slot",{key:"b3f340298309141052b400cf10b5a11d139fdbac"}))}};Md.style=Dd;var $d=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Rd=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Pd;class Nd{get selected(){var e;return Rd(this,Pd,(e=$d(this,Pd,"f"))!==null&&e!==void 0?e:Object.values(this.data),"f")}constructor(e,t={}){this.key=e;this.data=t;Pd.set(this,void 0)}handle(e){var t;return new Nd(this.key,"check-all"in e?(t=e["check-all"])!==null&&t!==void 0?t:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),e)).filter((([e,t])=>t!=undefined))))}render(e){var o,s,a;return Array.isArray(e)?t("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(e.map((e=>[e[this.key],e]))),intermediate:this.selected.length>0&&this.selected.length<e.length,checked:this.selected.length==e.length?true:this.selected.length==0&&false}):t("smoothly-checkbox",{name:(o=e[this.key])===null||o===void 0?void 0:o.toString(),value:e,checked:!!this.data[(a=(s=e[this.key])===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""]})}static create(e){return new Nd(e)}}Pd=new WeakMap;const Hd='.sc-smoothly-next-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-next-table-demo-filtered-h>smoothly-display.sc-smoothly-next-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-next-table-demo-filtered-h>smoothly-filter.sc-smoothly-next-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-next-table-demo-filtered-h>*.sc-smoothly-next-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(2),.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-head.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(4){justify-content:end}';const Fd=Hd;const Ud=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Nd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await tr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=Yd[e.country])!==null&&t!==void 0?t:[]}),names:(o=Yd[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&Xn(this.criteria,this.cats);return t(s,{key:"21b8aef8fbffa0d341c6a0cb96391955daadadc8"},t("smoothly-display",{key:"81aac4b8b0df022cb02fa4a4233ae81b6e703e42",type:"text",value:"Filtered"}),t("smoothly-filter",{key:"32b8a029114b5c69ca61ba7ae91333c03682b378"},t("smoothly-filter-toggle",{key:"426ddab99effdfca5d3f0f4266df73ad17bff7c6",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"5c3897576c80babf14a21b174764e05815d7b409",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"072ed99302f41e1df1f7534198edab6d56c79a19",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"4e9c69749157a8ce2ef4ff600c258b3df31fe03b",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"7c1d4ef27af368bb3abbccbc8ab554c0e39e032e",menuHeight:"5items",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"2d59cb9a656bdeed01641b7fc452c2c72ec39b9c",slot:"detail"},t("smoothly-form",{key:"321506b0a0b656978d64f3c79301ec8e1528a346",looks:"border"},t("smoothly-filter-select",{key:"b4d38daa73244679a7c0eaa70e58e886d04a261f",menuHeight:"5items",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"2a7002b911e71c2fcd00d22e36bea8caee847ce6",menuHeight:"5items",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"eec92284f9c3a34837ea8cc24c92acf1826c02d7",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Yd).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"8aedcd9954ed6e2c398d7e4f4bb44534262d2a28",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"f42f086333adc01ab5ff116bc547bdae14a7c8ba",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-next-table",{columns:4},t("smoothly-next-table-head",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-cell",null,"Breed"),t("smoothly-next-table-cell",null,"Coat"),t("smoothly-next-table-cell",null,"Price"))),e.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-next-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-next-table-foot",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",{span:3},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`}))))))}};const Yd={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Ud.style=Fd;const Wd='.sc-smoothly-next-table-expandable-cell-h{display:contents}.sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell::before{rotate:45deg}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.sc-smoothly-next-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-next-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-next-table-expandable-cell{display:none}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-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-next-table-expandable-cell-h>div.detail.sc-smoothly-next-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 Bd=Wd;const Vd=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableCellChange=o(this,"smoothlyNextTableExpandableCellChange",7);this.smoothlyNextTableExpandableCellRegister=o(this,"smoothlyNextTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyNextTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open}openChange(){this.smoothlyNextTableExpandableCellChange.emit(this.open)}render(){var e;return t(s,{key:"f9ee788b23bb196c0c0ffc7e5b404149f61ea2ed",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("div",{key:"66fedc2f8717220cbfa428ddd75a7b39c5db8ddf",onClick:()=>this.clickHandler(),class:"content"},t("slot",{key:"5bf3b5a31ed276f086eeb8379ec1b9377de26e44"})),t("div",{key:"e11517c4d3b41b340bc37169f1659ff6b935ac17",class:"detail"},t("slot",{key:"417bff514de4a9a0e10c245edb8e7fcbffa4526f",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};Vd.style=Bd;const Gd='.sc-smoothly-next-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-next-table-expandable-row-h.sc-smoothly-next-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-next-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-next-table-expandable-row-h>div.sc-smoothly-next-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-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-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-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-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-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-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-next-table-expandable-row-h>div.sc-smoothly-next-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 Kd=Gd;const Zd=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableRowChange=o(this,"smoothlyNextTableExpandableRowChange",7);this.open=false}clickHandler(e){this.div&&e.composedPath().includes(this.div)||(this.open=!this.open)}openChange(){this.smoothlyNextTableExpandableRowChange.emit(this.open)}render(){return t(s,{key:"4b2d988483dd093197a75171ea3c3a24864246bf",onClick:e=>this.clickHandler(e)},t("slot",{key:"d59c66077cb1a67083c8a23e9cbb1ac9625a4df1"}),t("div",{key:"0dde37337531483d160c6fa081a5754f31c0799d",ref:e=>this.div=e},t("slot",{key:"0914d7e1e3472082335eaafe04629c4490bf6854",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};Zd.style=Kd;const qd=".sc-smoothly-next-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 Jd=qd;const Xd=class{constructor(t){e(this,t)}render(){return t(s,{key:"002f8fdf9a86bbe73432339582adfb6ff75537dd"},t("slot",{key:"f54fcaa0a1da2d1d910ac56a2b3c3de609f2c099"}))}};Xd.style=Jd;const Qd=".sc-smoothly-next-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-next-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";const eh=Qd;const th=class{constructor(t){e(this,t);this.onScroll=e=>{if(e.target instanceof HTMLElement){this.scrollParent=e.target;const t=this.scrollParent.getBoundingClientRect();const o=this.element.getBoundingClientRect();this.scrolled=t.top==o.top}};this.scrolled=undefined}connectedCallback(){var e;this.scrollParent=l.findParent(this.element);(e=this.scrollParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var e;(e=this.scrollParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.onScroll)}render(){return t(s,{key:"ec034d5b8c824a2c3f87038ecb8bd0f39323ecf2",class:{scrolled:!!this.scrolled}},t("slot",{key:"dd85786f6c1182900ff51f2b7a45ce916ff679b2"}))}get element(){return a(this)}};th.style=eh;const oh=".sc-smoothly-next-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-next-table-row-h:has(smoothly-next-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-next-table-row-h:has(smoothly-next-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const sh=oh;const ah=class{constructor(t){e(this,t);this.expandableCells=new Set}smoothlyNextTableExpandableCellRegisterHandler(e){e.stopPropagation();this.expandableCells.add(e.target)}smoothlyNextTableExpandableCellChangeHandler(e){if(e.detail)for(const t of this.expandableCells)e.target!=t&&t.close()}render(){return t(s,{key:"be95802ce9024180037183f675f6622b25f3cd6b"},t("slot",{key:"638c381090279b4872349665c1a76fa31bd8550d"}))}};ah.style=sh;const ih=".sc-smoothly-next-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group{display:contents}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group>*.sc-smoothly-next-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-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-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-next-table-row-group-h:not([open])>div.sc-smoothly-next-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-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-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover>div.sc-smoothly-next-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const nh=ih;const lh=class{constructor(t){e(this,t);this.align=false;this.open=false}clickHandler(){this.open=!this.open}render(){return t(s,{key:"7b8bf0d650b30c77e465110322618cd4b7ccfaac"},t("div",{key:"f1ff52b8f2263c2402cda3ee65b1e714cd7bef53",onClick:()=>this.clickHandler()},t("div",{key:"68a7c8121d742a6926076f44c0940db08301be3e"},t("slot",{key:"49fa99c6dd54cd9aae0bbda92ae42ebc99ba4bfd",name:"start"})),t("div",{key:"8360e32514ab46ee90cfa620a60a7887ec430386"},t("slot",{key:"7f14fad4b7a86240bac27278002b64816d9346a9",name:"end"}))),t("div",{key:"723a1b607e356bd6df4531f4ed51a7606a42c11c"},t("slot",{key:"fead0c12aace8f70dec6736ae93b1b0e53d8c929"})))}};lh.style=nh;const rh=".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 ch=rh;const dh=class{constructor(t){e(this,t);this.remove=o(this,"remove",7);this.listener=e=>{if(e.state=="closed")this.remove.emit(e);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=undefined;this.tick={}}get properties(){let e;switch(this.notice.state){case"delayed":case"warning":e=["warning","warning-outline"];break;case"success":e=["success","checkmark-circle"];break;case"executing":e=["light","hourglass-outline"];break;case"failed":e=["danger","alert-circle"];break;default:e=["light",undefined];break}return e}onTrigger(e){if(e.detail.name=="close"){e.stopPropagation();this.notice.close()}}onUpdatedNotice(e,t){if(t)t.unlisten(this.listener);e.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return t(s,{key:"6ec1f235832f27c3df309d1f18a996965abdd217",color:this.properties[0],fill:"solid"},this.closable&&t("smoothly-trigger",{key:"96b6f943b5633fbd9356cd33e3f3e22058fc6b4c",fill:"clear",name:"close"},t("smoothly-icon",{key:"1fadc126c00027bcb3a43dc09ccffbd7401f3249",name:"close-circle-outline"})),t("span",{key:"bd7eacc66df09ea5cc6d45af66afc900b5d18374",class:this.icon?"icon":"clean"},this.icon&&t("smoothly-icon",{key:"a99b20d20a99b1e81f2960bd7340b3cf1de51f3b",name:this.properties[1]}),t("p",{key:"fa0bf5fcabbe133b119143132320eb98f3a11595"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};dh.style=ch;const hh=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";const bh=hh;const mh=class{constructor(t){e(this,t);this.icon=false;this.notices=[]}onNotice(e){this.notices=[...this.notices,e.detail]}onRemove(e){this.notices=[...this.notices.filter((t=>t!=e.detail))]}render(){return[t("slot",{key:"38d88ec7c986388109298bc3118da187cdeb5db1"}),t("aside",{key:"7776494597ca209816a77eaac8e5fad9e98da4b4"},this.notices.map((e=>t("smoothly-notification",{notice:e,icon:this.icon}))))]}};mh.style=bh;const yh="[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 uh=yh;const fh=class{constructor(t){e(this,t);this.size="large";this.overlay=undefined}render(){const e=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return t(s,{key:"d30d4bf3f7e2c8ea7ba2ad651edf278e1795eac0",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},t("svg",{key:"0d98c276244bbeac542017c224b148d20acebaa6",class:"spinner",viewBox:`0 0 ${60+e} ${60+e}`,xmlns:"http://www.w3.org/2000/svg"},t("circle",{key:"d5ac6fcbabbe4a1034b940ef73f63ee14884b505",class:"path",fill:"none","stroke-width":e,"stroke-linecap":"round",cx:`${30+e/2}`,cy:`${30+e/2}`,r:"30"})))}};fh.style=uh;const ph='[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-submit-h{--border-radius:2rem}[type=link].sc-smoothly-submit-h{display:inline}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h>a.sc-smoothly-submit,.sc-smoothly-submit-h>button.sc-smoothly-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-submit-h>a.sc-smoothly-submit:empty,.sc-smoothly-submit-h>button.sc-smoothly-submit:empty{border-width:0}.sc-smoothly-submit-h>button.sc-smoothly-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--border-radius);align-items:center}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-submit{padding:0.8em;min-width:8em}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-submit{padding:0.6em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;--border-radius:0}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-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-submit-h:not([fill=clear])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h>button.sc-smoothly-submit:focus-visible,[fill=outline].sc-smoothly-submit-h:active>button.sc-smoothly-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:hover::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:focus-within::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--border-radius)}.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:focus-visible,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-submit-h>button.sc-smoothly-submit,.sc-smoothly-submit-h.sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h .sc-smoothly-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-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}';const gh=ph;const kh=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="success";this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.prevent=true}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(Gc.is(e)){this.parent=e}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit()}render(){return t(We,{key:"501c8c100fab3dff9e26108160d61cd699baafea",disabled:this.disabled,type:this.type},t("slot",{key:"1d7f97fb097e91732268f28f72b9ea8c12a4eb9c"}))}};kh.style=gh;const vh=".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 xh=vh;const wh=class{constructor(t){e(this,t);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.inputs={};this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}async toggleHandler(e){if(e.target instanceof HTMLDetailsElement){this.open=e.target.open;this.smoothlySummaryOpen.emit(this.open);this.open?await Promise.all(Object.values(this.inputs).map((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}}onInputLoad(e){if(cr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t("details",{key:"0ceae00723a65e8e5b87a0fe30c0ba376b37fd8a",onToggle:e=>this.toggleHandler(e),open:this.open},t("summary",{key:"57e3893bf5a17c001930b9d4d198e3072cd3bc32"},t("smoothly-icon",{key:"3f1a52200e79f482de81f16f5f7061a287d16bd9",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),t("slot",{key:"aeacad0c79702eba90f26020a58fc6144aef2c79",name:"summary"})),t("slot",{key:"2e571d4a377a4dc36b74cc0a92c7383dd870f876",name:"content"}))}};wh.style=xh;const Sh=".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 Ch=Sh;const zh=class{constructor(t){e(this,t);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((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}onClick(e){e.stopPropagation();this.open=true}connectedCallback(){this.smoothlyTabLoad.emit()}async componentDidLoad(){await this.openHandler()}onInputLoad(e){if(cr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t(s,{key:"e12af24406795e8b226ad6ae561d202f65a1e153"},t("div",{key:"5b33ade0ecda93b3960b2b6e32dbe007804fb658"},t("label",{key:"5a03adf7e78844f3aeba63ff78a21fccaec65ff9"},this.label)),t("div",{key:"25fb82e9b2756dfa210ff4e07d923bdd0cc3e1ac",hidden:!this.open},t("slot",{key:"7636dff75a43fe0ae13da034742001cf874804c8"})))}static get watchers(){return{open:["openHandler"]}}};zh.style=Ch;const jh=".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";const _h=jh;const Th=class{constructor(t){e(this,t);this.smoothlyNestedTable=o(this,"smoothlyNestedTable",7);this.smoothlySpotlightChange=o(this,"smoothlySpotlightChange",7);this.smoothlyTableLoad=o(this,"smoothlyTableLoad",7);this.expandable=new WeakMap;this.expanded=new Set;this.root=true;this.color=undefined;this.align="middle";this.open=false}componentWillLoad(){this.smoothlyNestedTable.emit((()=>this.root=false));this.smoothlyTableLoad.emit((e=>this.owner=e))}handleExpandableLoaded(e){e.stopPropagation();e.target&&this.expandable.set(e.target,e.detail)}handleExpandableState(e){e.stopPropagation();e.target&&(e.detail?this.expanded.add(e.target):this.expanded.delete(e.target));this.smoothlySpotlightChange.emit({allowSpotlight:!this.expanded.size,owner:this.owner})}handleSpotlightState(e){var t;this.open=!!this.expanded.size;e.target!=this.element&&(e.stopPropagation(),e.detail.owner&&((t=this.expandable.get(e.detail.owner))===null||t===void 0?void 0:t.allowSpotlight(e.detail.allowSpotlight)))}handleNestedTable(e){e.target!=this.element&&(e.stopPropagation(),e.detail())}handleEvents(e){e.stopPropagation()}render(){return[t("slot",{key:"355060c54b3d596b81699ba8d3634fbb81de3de1"})]}get element(){return a(this)}};Th.style=_h;const Ih=".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem .5rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div>.sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";const Oh=Ih;const Lh=class{constructor(t){e(this,t)}render(){return t(s,{key:"18794d18c837ba87e876bc622d88f99dd7f76218"},t("div",{key:"9699441c8fdf2d57ded3758e5eeb5cbe7f05e5f7"},t("div",{key:"6db443ed129b1168a2957ec7977cc929d8e2a855"},t("slot",{key:"2c1b039d09bba48e76b94ef45f38d2a659db347f"})),t("smoothly-icon",{key:"2b433159b9f4a140f6a550fb64d2df9768211af3",name:"caret-forward-outline",size:"tiny"})))}};Lh.style=Oh;const Ah=".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:2rem;margin-right:2rem}.content.sc-smoothly-table-demo{display:contents}smoothly-lazy.sc-smoothly-table-demo{width:80%}";const Eh=Ah;const Dh=class{constructor(t){e(this,t)}render(){return t(s,{key:"1e81888eaa70617dc00aceea0d521b6cdc64ccfc"},t("h4",{key:"cf811a7ae12720e33f58263069bcb586b64c9899"},"Demo table 1: Filtered & Checked Table")," ",t("smoothly-lazy",{key:"8d5b7796bd599d6a715f052a9c51c734028cfbc8",content:t("smoothly-table-demo-filtered",null)}),t("h4",{key:"ae1c1ae7f4e182b1b4951481b75f581528ca9431"},"Demo table 2")," ",t("smoothly-table-testing",{key:"9cb781610aff9a2e101c074419b3441cb222d1b6"})," ",t("h4",{key:"1f7b199a3c812e9669510e387c7c580cc2ee0ef2"},"Demo table 3"),t("smoothly-table",{key:"619b90e36f7d36aa1510d180418dd31587c89de5"},t("smoothly-table-row",{key:"d20f4d27e0dc7cff71043508f2a696f14aaf446e"},t("smoothly-table-header",{key:"6c83cbfee2f7dd8a9f35c54d9b429d49a6f28095"},"Header A"),t("smoothly-table-header",{key:"ba411ae9b8ba9672c68188b20eec7879c9d61487"},"Header B"),t("smoothly-table-header",{key:"544e5b604e47f6ee5a3af70d1d05b15a26accccc"},"Header C"),t("smoothly-table-header",{key:"d07440f84256d50b05bea93545836c8df3342059"},"Header D")),t("smoothly-table-row",{key:"f29fbd4781d3df5a436e5613ba23ea625a44e335"},t("smoothly-table-expandable-cell",{key:"65885643a6fbd3be4a9dde0fce47eccdd60735ff"},"normal row (exp.cell)",t("div",{key:"95fe20c0245b0ae2e16dafeae2323e74ffb301aa",slot:"detail"},"expandable cell 1 content")),t("smoothly-table-expandable-cell",{key:"8a732eca75a30504e08beb5fb2d26bce47e71121"},"expandable cell",t("div",{key:"6c81cc0bae9e6efc960ae83558ef7501beb8c6d6",slot:"detail"},"expandable cell 2 content")),t("smoothly-table-expandable-cell",{key:"0bf827efd764a4e1e844d707a79ca284d056a892"},"expandable cell",t("div",{key:"b857f2e434b69b4bcd62eb6440d0f27697aa9e92",slot:"detail"},"expandable cell 3 content")),t("smoothly-table-expandable-cell",{key:"621f67b7ab564385fb451c2d8a15ae9c22ee6119"},"expandable cell",t("div",{key:"c47a13ea04e469e9aa9a24c94059a46a4251e258",slot:"detail"},"expandable cell 4 content"))),t("smoothly-table-row",{key:"2446942bf8e81d2a97de8ef58d3c2cef4bec6f2c"},t("smoothly-table-cell",{key:"b501284265c4e99706bc275e155d661a9dc6baf5"},'normal row (nor.cell)"'),t("smoothly-table-cell",{key:"f0650f4a99ae42d410f620747fa1404ec5df4a50"},"normal cell"),t("smoothly-table-expandable-cell",{key:"5737103453809dc92490573254d1475b20546ebf"},"expandable cell",t("div",{key:"27564d6c8413037cad183c9975c9b28afda0e897",slot:"detail"},"expandable cell details.")),t("smoothly-table-expandable-cell",{key:"916bf43ed085b57ad030635cdff9eff8b80985a1"},"expandable cell",t("div",{key:"221d619c3f089af2ad81cf7add468558dcef18ea",slot:"detail"},"expandable cell details."))),t("smoothly-table-expandable-row",{key:"92d2596e4c862700a25e027dc3c9625500b10478"},t("smoothly-table-cell",{key:"62e1cfd13663bdc82d47778aea9b95f4f22c57e5"},"expandable row (nor.cell)"),t("smoothly-table-cell",{key:"1030293776092fdaa24ad3e9b529ee4f45eec8ca"},"Normal cell"),t("smoothly-table-cell",{key:"7e8db7f0b350b74e84d1df6ccfb200b4a04d66b5"},"normal cell"),t("smoothly-table-cell",{key:"c5e4df506620b88a9b333a4a92b87a0d46cb1472"},"Normal cell"),t("div",{key:"f6201f1ce3644876491f3b6a9420e49c710ac113",slot:"detail"},"expandable row content"))),t("h4",{key:"68910519f59a42a9268dbec93208bc0f030d9804"},"Demo table 4"),t("smoothly-table",{key:"819f177232294f211c0869ac9319ebb4601ad809"},t("smoothly-table-row",{key:"ac5d6fe75392bee6b5725aa5eabcddb4e1b62ead"},t("smoothly-table-header",{key:"7a8f45f9d911dfec7406e6805c55ba04169569a6"},"Header A"),t("smoothly-table-expandable-cell",{key:"f0cf50801446d37261c01d6ddcf7bb56a0d96812"},"Header expansion",t("div",{key:"be363d51d567a25f8d1979ddabe86a290df5f45a",slot:"detail"},"Expansion content"))),t("smoothly-table-expandable-row",{key:"f9c051f11a46bf9b9dccf60ee75e7a3e31cca6bd"},t("smoothly-table-cell",{key:"9ac076907ea1d49c884ba4c4d7df0d50f00095ae"},"A Content"),t("smoothly-table-cell",{key:"77ea6442409fb0165c3d697363cbb4c54bb22707"},"Expansion cell"),t("div",{key:"d351e4b0138840dafff86aa6d511521d8e5992a2",slot:"detail"},t("smoothly-tab-switch",{key:"29fbd13a00942110f49f907fa7924ca9fa9688bd"},t("smoothly-tab",{key:"b9d8d6749e2c16c1a62a5079fcb84a99d48598c9",label:"innertable 1",open:true},t("smoothly-table",{key:"7e79c190252792a2fe41499e96c51ca73c3f451c"},t("smoothly-table-row",{key:"763108617589dbaf09137b11b8e956da3f3cfb8d"},t("smoothly-table-header",{key:"dd43ad5e8875f3fd11fd976f93db1ad2334613b6"},"Header B")),t("smoothly-table-expandable-row",{key:"450237e8339795da1a416527794bfe72433ead09"},"B Content"))),t("smoothly-tab",{key:"abf14271c6d8c6b641e2eb9335f9f49f32be93e7",label:"innertable 2"},t("smoothly-table",{key:"5e59f6f7f3d4027cb6ebed7b1f14eafc3c153f29"},t("smoothly-table-row",{key:"23eeeeb7a9e61f3ef8e209a581f28dc1a12f2fbb"},t("smoothly-table-header",{key:"bb6e69d8dcadc79d8ef50510d3ee968c13418481"},"Header C")),t("smoothly-table-expandable-row",{key:"fffa4bcac8af9190eb301de669393028cb9922af"},t("smoothly-table-cell",{key:"b2578a41acb2ff4714df24c9a9f909be67d20987"},"C Content"))))))),t("smoothly-table-row",{key:"93120f64ed8b8bb7f6f9bf2f4cf93bea99656823"},t("smoothly-table-cell",{key:"27c785497174ca3a4041f75df596d2e5fc5c47b3"},"A Content"),t("smoothly-table-expandable-cell",{key:"ae9a378292c57acf6e63f26e9d6b3b9afca4b6a9"},"Expandable cell",t("div",{key:"ab08e00832be0ce6af77375dd494ef395c027ce4",slot:"detail"},"Expansion content")))),t("h4",{key:"c714a263f163ff7cb3d4de166df0116daa81e2cc"},"Demo table 5"),t("smoothly-table",{key:"3f02085045c29d19876f0e8cf23bed4250894fe3"},t("smoothly-table-row",{key:"fa35f7bd0b49d48a3da436a008108862db387131"},t("smoothly-table-header",{key:"406ae426edfab82362a2b699464760c3d6ac6fb0"},"A"),t("smoothly-table-header",{key:"5b99554fb6ae94a6e0b95cffe492d1febaca28aa"},"B")),t("smoothly-table-expandable-row",{key:"dfedc25c9da8a6bbd75ae324b5a578aa9bd35b69"},t("smoothly-table-cell",{key:"f459d12839147af8aa204ee2ea75bbbcac17ae5a"},"nested expandable row"),t("smoothly-table-cell",{key:"d0a136bb38f8aa979a48b247f260a9760f5843a9"},"b row"),t("div",{key:"d00338f17800d0a521840a22e39bd972daae03bd",slot:"detail"},t("smoothly-table",{key:"89e0547b0cad65f7ad2b167ea4d8c706c51afcb2"},t("smoothly-table-row",{key:"20ced4c3688f3b8c75ba1d78a061779cd44a59b7"},t("smoothly-table-header",{key:"0a1ee11eced03c8b8ccd1d877404fad78d510467"},"C"),t("smoothly-table-header",{key:"da2335b9f970ad68c84709e57f2a708b484c739f"},"D")),t("smoothly-table-expandable-row",{key:"7e7a19166ffd03bb859a54c2821b010d436faeb6"},t("smoothly-table-cell",{key:"ea4b0f0ea191075ef54c18fabbe2ad8ed1047791"},"c"),t("smoothly-table-cell",{key:"dbf092a1d1bb5d43c5cbe196becb81b89db625d7"},"d"),t("div",{key:"549de7498f0c93408119fea944a859e51fbf3ae7",slot:"detail"},t("smoothly-table",{key:"2305a88610c4f553e11b7144c9030fa10a71fa7f"},t("smoothly-table-row",{key:"df3ec78778e81cce512b1dffce3e92d4b6b92c52"},t("smoothly-table-header",{key:"96774b735a82a5bed80e5ba0f7ccf4c5f1b4174a"},"E"),t("smoothly-table-header",{key:"04307e344fd8f11bdf0c88b5fba4649bed4ba580"},"F")),t("smoothly-table-expandable-row",{key:"4a4337b1531c0eaf7945169897d219ca11527295"},t("smoothly-table-cell",{key:"80c1691696bc31b95e8b599cee9db92e337b4382"},"e row"),t("smoothly-table-cell",{key:"c5b8f116527691db954891d4635c935f9756188a"},"f row"),t("div",{key:"b8eac3a676f89874a2608d044998d04860e67d28",slot:"detail"},"nested expandable row expansion e f")))))))),t("smoothly-table-expandable-row",{key:"d11dda6cd527a9a5cf6e89b1128247c3948d4e9f"},t("smoothly-table-cell",{key:"935fe60f4b9d1fb24d8f52c7c6afeb4cf457bd7a"},t("span",{key:"514651f49aee6f4e49b8a0af61fe205ec9f3abd8"},"one"),t("span",{key:"aa6c772b53eb2fd36270720d5f66a73d9fb67311"},"two"),t("span",{key:"1be29fff33fe9d831828a648ed20dedc861dd81f"},"three")),t("smoothly-table-cell",{key:"003c06afcbf0ff320a9de32b60581b83ae85acc9"},"five",t("smoothly-icon",{key:"0c8c44a1edd9a1242032d4974664201501940f85",name:"paper-plane-sharp",size:"small"})),t("div",{key:"8f47c6a4654d81c50021f4386d50356e54afff38",slot:"detail"},"four")),t("smoothly-table-row",{key:"e2c6b130ebd48168742baaef5cf5c8e2680d8ea5"},t("smoothly-table-expandable-cell",{key:"e9f073767d0839aacc7893969e2542af214f1b9c"},t("span",{key:"054869c5592ec90551c5669ccac9dd4ee39024d8"},"nested expandable cells"),t("div",{key:"65116daf9dff2e598b529ea65c86b233629c2eba",slot:"detail"},t("smoothly-table",{key:"6513b3a540584f9b0356083edfc9eabbf6ef5aa9"},t("smoothly-table-row",{key:"b3aa59da63cb1fefc5eaf37208583c3ab6551fcb"},t("smoothly-table-header",{key:"2120416ce1708d86c63367ea607f6e05ee0aaca0"},"E"),t("smoothly-table-header",{key:"9d1328b7bcbb592dbf59f86fba11117e8c5ae52b"},"F")),t("smoothly-table-row",{key:"9a3808b7c792ab0426e21a8d3440b231decc0cc5"},t("smoothly-table-expandable-cell",{key:"e673440ce2a02601d226cfd7b11e6983edecc6fe"},"e cell",t("div",{key:"540ed415d6c4c29479d7b0e4d6a7e208f79e37dd",slot:"detail"},t("smoothly-table",{key:"07554fe7d38c781de85bc6776dde4834dcad8e0d"},t("smoothly-table-row",{key:"fe3b65f0716372568906e39284fb588c947baf4c"},t("smoothly-table-header",{key:"09fd1a27b7cc01817246e067bc83de4fab6dfae7"},"G"),t("smoothly-table-header",{key:"c49c4798ef89199ac05a1c0df95c75a3985ab473"},"H")),t("smoothly-table-row",{key:"d9ccb888b9a212c2918a7c2029e70cf218f865b5"},t("smoothly-table-expandable-cell",{key:"56f5199ce8eea13310c114c96accc437284e0da6"},"g cell",t("div",{key:"60594357229ffb745a8c2b2194bdb2c153759ce2",slot:"detail"},"nested expandable cell expansion g")),t("smoothly-table-expandable-cell",{key:"f77afab9dfdcf09597f626fd9993adfba80038a5"},"h cell",t("div",{key:"bbf4147c3a2f54a21a79d0ebc00934855e8abf68",slot:"detail"},"nested expandable cell expansion h")))))),t("smoothly-table-expandable-cell",{key:"48d7231f8728d0ba9087a3af64eee1a7864e9ee0"},"f cell",t("div",{key:"15334c6f8fd87223c7550856bf94d255e3151f5f",slot:"detail"},"nested expandable cell expansion f")))))),t("smoothly-table-expandable-cell",{key:"e2e1727ba211c15e03486350c54e6e322266d19d"},"b cell",t("div",{key:"dda0f2ded71dbc0cf51ac1db7c0dcca4a3bb1195",slot:"detail"},t("smoothly-table",{key:"9e0cd99b329f5379d7b24cd541f79724f211a3d8"},t("smoothly-table-row",{key:"e6af29a4a7b6f072faebea3e2b5f99a6fe09789d"},t("smoothly-table-header",{key:"97ac4940e023b1f3ddcba367e8a16be0e10dfb17"},"C"),t("smoothly-table-header",{key:"e4fc8ad4dd3b5e89c59fc9eff0f9a74716ab747a"},"D")),t("smoothly-table-row",{key:"9a2aab23aecfc63e9d07979ac6429836f49dc113"},t("smoothly-table-expandable-cell",{key:"83c6beb6154dec2c40f10a945656d38ac1e251f6"},"c cell",t("div",{key:"29d5a68d901afa9ef21694836279834c2e58aa40",slot:"detail"},"nested expandable cell expansion c")),t("smoothly-table-expandable-cell",{key:"bdf3c4db6caeb8744380e37150ffea699fef3048"},"d cell",t("div",{key:"1f4ca8c1ee381a1f69b30c4731dc0a4ca6437e37",slot:"detail"},"nested expandable cell expansion d")))))))),t("h4",{key:"a8b606873bea8fd29fd5a598fdeaf54465fd8477"},"Demo table 6"),t("smoothly-table",{key:"49ad1eb61a4b55a5e9697ab572657f1a376293f5"},t("smoothly-table-row",{key:"69ab467625ca61745698fce9051dca55ac1933a2"},t("smoothly-table-header",{key:"ba503032861e865a78436ac0147474c768ea9e33"},"display"),t("smoothly-table-header",{key:"4898d03f29a427e13e43f07c484d6bc3419eebdd"},"contents")),t("smoothly-table-expandable-row",{key:"fc732ebc99a553573a87fc3526a0040d2110cc24"},t("div",{key:"18e0a560239968a34af0102198012191fa1a7e7f",class:"content"},t("smoothly-table-cell",{key:"2bf87d2d2ddf3df8bd0b751d8f5ce3caf14bcbbd"},"A"),t("smoothly-table-cell",{key:"1c7f4b19ef37a0c1ad63cd8d02b17d8d71b74289"},"B")),t("div",{key:"bbcbd5a769a3b39527cbc6748b36c673814a53f5",slot:"detail"},"expansion"))),t("h4",{key:"5d7ee48e767200bc936931b27a14e029e4d52986"},"Demo table 7")," ",t("span",{key:"d036fb86f3e4620d39063992d93f755142f49f2f"},"nested 1 then normal"),t("smoothly-table",{key:"7707fa02cd1e9b3077b83559d3f5cf5a41edd454"},t("smoothly-table-row",{key:"8dd04f01721a1a04c894c8e5c82f5ba1cb907b1b"},t("smoothly-table-header",{key:"4bffdae687565c10c024ecb9dd4791f0a836126f"},"A"),t("smoothly-table-header",{key:"4590482dab09d539f67588d55545e914cf6b9c77"},"B")),t("smoothly-table-expandable-row",{key:"31dbffa696c52d1c55354b75095ed92392740db7"},t("smoothly-table-cell",{key:"92d369a1c4a62dbacfe7a980c6340f6d0df243be"},"a"),t("smoothly-table-cell",{key:"c57f1e063ccef84669ccae9a081c639ba08583d0"},"b"),t("div",{key:"abd39e1a8a218adee4af5f8302fa5a657236211d",slot:"detail"},t("smoothly-table",{key:"bfd377d30ed610d5c1f3f511dad6515e68d3bb54"},t("smoothly-table-row",{key:"f3b2f184dc5cee1d7765713e35da478c0794375f"},t("smoothly-table-header",{key:"a390623c55a401607b8c591fe2ef98317df93764"},"C"),t("smoothly-table-header",{key:"65b3f864c08dfdf4b0220e146b324947f6cfae1e"},"D")),t("smoothly-table-row",{key:"bab95dd9483805247b79c578b819c861bebfaa8d"},t("smoothly-table-cell",{key:"fe2a9ca2737837153910376dce32c7a402c6c8fd"},"c"),t("smoothly-table-cell",{key:"c6c656bc7d6308df1df80ba8be1ec485ae61e37e"},"d")),t("smoothly-table-row",{key:"aa278cf867067a35676398f225d74a9111affb36"},t("smoothly-table-cell",{key:"f564282a07c7e5dbc21bd36472622b327ee18608"},"ccc"),t("smoothly-table-cell",{key:"db4ece905e48909a68afe367ae4f20af1292945b"},"ddd")),t("smoothly-table-expandable-row",{key:"102ed1c7f25cf45abf7a4238efdf7828da385397"},t("smoothly-table-cell",{key:"fad55baf3fd69b952a62057d7faa17e5bd5ec00b"},"cccc"),t("smoothly-table-cell",{key:"09865389901e69b54438b121386e9dc324db32d3"},"dddd"),t("div",{key:"502aed0c2ddee456e0c25c7d8293e4729e8957c5",slot:"detail"},"CONTENT")),t("smoothly-table-row",{key:"d7bef8b956a4ecf1947239069c9eee77c72227d5"},t("smoothly-table-cell",{key:"a3a06dab0231a921e63ec07337600518a8cf9c38"},"ccccc"),t("smoothly-table-cell",{key:"a8575b5800edc197459caacafcd13e559769a1eb"},"ddd")),t("smoothly-table-expandable-row",{key:"633dc208b1c8e9895c05aeddd3644a626dee5e71"},t("smoothly-table-cell",{key:"7c7b5577284dee9eb6af96121fc6de8db907ad07"},"cccc"),t("smoothly-table-cell",{key:"014dd61d02fcaed5ea2743507e68a6653f1b54eb"},"dddd"),t("div",{key:"4c9fbede205d1188439f2aef528add694cef54d9",slot:"detail"},"CONTENT")))))),t("h4",{key:"b132164e9d72c99cbcd433ab0ec6e7b0b60b3e25"},"Demo table 8")," ",t("span",{key:"dc561b563acdf8d333923bf10b69ff143778c951"},"not nested"),t("smoothly-table",{key:"74ee9c97b800c3a3f7e6825b2c3681d9d85afe69"},t("smoothly-table-row",{key:"4b18d54e58521e0367b04816cd10398066394018"},t("smoothly-table-header",{key:"98b143fdfc5a4662999563fda34233249d9267a7"},"C"),t("smoothly-table-header",{key:"18400fcc92660c94ab1c64e20af6f97a4f3c8a05"},"D")),t("smoothly-table-row",{key:"e34cb184da9fb804b766217677971b830f2f1885"},t("smoothly-table-cell",{key:"b6d92d09994628bb9231ac5400185297dc1ff3b5"},"c"),t("smoothly-table-cell",{key:"34983d7167c8a45b46eec6b32ef0e36b5cd05cf0"},"d")),t("smoothly-table-row",{key:"3bfd306e3988785bfd3037e29de0ea00fc00f346"},t("smoothly-table-cell",{key:"fdec6965a2a560cf6509027a421f22f48f463d81"},"cc"),t("smoothly-table-cell",{key:"b09356192288dc68afe592f1669d09e2e9c68a0f"},"dd")),t("smoothly-table-row",{key:"ea1bb1160e13bb813e4075c8a106c5f8e49d7c99"},t("smoothly-table-cell",{key:"8e2605ba8f015b09cfb2f856ba8a42c5427f22be"},"ccc"),t("smoothly-table-cell",{key:"a3117a4dee7abf312b4ff8e0c941e306885167d8"},"ddd"))),t("h4",{key:"0c3d01993facb1d5b4e832562bddb9578e86ebc2"},"Demo table 9"),t("smoothly-table",{key:"c9a0e744704422b13ee6dfdcfc9c395598292e6f"},t("smoothly-table-row",{key:"60a2fceafba34733346810a3387ac405721e08fd"},t("smoothly-table-header",{key:"701de971e583df65bb611beb9c7ce27cd6b0a47a"},"First name"),t("smoothly-table-header",{key:"17d13bf167959c8e30451f39bfccebe1b431ccb8"},"Last name"),t("smoothly-table-header",{key:"bf5c4eb33709c3e7d95e8f0fa98fe5aa47841d51",style:{width:"1px"}},t("smoothly-icon",{key:"53e48b50924b099beb6a8e7a070e2980d310047d",name:"alert-outline"}))),t("smoothly-table-expandable-row",{key:"5223dc40dd46aa5838086c9609858799657a291f"},t("smoothly-table-cell",{key:"7c159f9dd96d8f65d9b2a2c159ebcad077d4ba47"},"Jessie"),t("smoothly-table-cell",{key:"5a940814eab03442b4e20cbc620ee50afe83d214"},"Doe"),t("smoothly-table-cell",{key:"8e7f5ca5be97c9c8c2631b0312031d59922abb3c"}),t("div",{key:"47e38131aa67c605efe8ad05803f96fe07639ea0",slot:"detail"},t("p",{key:"9b05cf8f394777d75f5a6fcc8c9d5d288568b8c4"},"This is Jessie")))),t("h4",{key:"a736a57fd4c75b2fc00f1fed4125d2cc925db5c1"},"Demo table 9 - Lazy expansion rows"),t("smoothly-table",{key:"cd8b06b8e3b42899b7945ffe8f5bf298a1faf913"},t("smoothly-table-row",{key:"0458d828dda4829b25887bf7660c9fc5daffdc7d"},t("smoothly-table-header",{key:"2c254693f0b569e408e9f22ec115592dcd79dacd"},"Company")),t("smoothly-table-expandable-row",{key:"37fc26f33bff30be526ca3780fdf668f3c8c65cc"},t("smoothly-table-cell",{key:"7f113a77a7bfecc61a3d263346a73c94f78fc60b"},"Proquse"),t("smoothly-lazy",{key:"6fada0440bd567c7a93107a2558b88fe022a8137",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})})),t("smoothly-table-expandable-row",{key:"00798683c7b8fa194f0c073e51d84fde85c58284"},t("smoothly-table-cell",{key:"4555f5454e1c5825bacf233b8e256d326ea73229"},"Pax2Pay"),t("smoothly-lazy",{key:"49feed1977bf280d37a2001445e6034e23363c66",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})}))),t("h4",{key:"6275ea3894718b21b373638eab5eb37be4ba0a41"},"Demo table 10 - Lazy expansion cells"),t("smoothly-table",{key:"e42273100ca07053ac14e16e839b081e11a97a47"},t("smoothly-table-row",{key:"64b6c0601ca90569f7f9a876f2f9f242b46b9aa2"},t("smoothly-table-header",{key:"380b83357c4867232dbce95307cc7b0e3ee2de7d"},"Company")),t("smoothly-table-row",{key:"56685669ebc4730c0dd890b3de5be051ca15f1fd"},t("smoothly-table-expandable-cell",{key:"214757a42d4f8ce0fe37c221cadb779829b371a5"},"Proquse",t("smoothly-lazy",{key:"bb80c7a05470e41057342673a6b547bdff817dcc",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})}))),t("smoothly-table-row",{key:"be9de15d8056192c37679bc397884e0fad19de2b"},t("smoothly-table-expandable-cell",{key:"37af6119e9357506e719601e0f02ba8026ebda6f"},"Pax2Pay",t("smoothly-lazy",{key:"3c03393a59f61c77e5a54af377d3e38d0fcc85a1",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})})))),t("h4",{key:"a43e894a6af8b0beb4467fb7e626b8c1ffcb987c"},"Demo table 11 - expandable cells"),t("smoothly-table",{key:"e63bb694959e962e5f7044f1e7ebae8d83836630"},t("smoothly-table-row",{key:"f75ccc5a9bace58bd093cb3172e868cc9c4100ae"},t("smoothly-table-header",{key:"9c389bc08a2cdb00cf9a834175b88ec14d2c7dee"},"Name"),t("smoothly-table-header",{key:"585c069ee58522f4205bdfb2e51fdf44799a1d4b"},"Age"),t("smoothly-table-header",{key:"d47197237f7119d2bd4a89d67157691250e84761"},"Location")),t("smoothly-table-row",{key:"4596285b471e280396bb5cd593d40017ffc6de29"},t("smoothly-table-expandable-cell",{key:"3b6abf5cee5aad618b65a3fb0dc6eb06d09d23ff"},"Jessie",t("div",{key:"e505c3f2004f5c116c621e59bdbfcfe6beca283a",slot:"detail"},"Doe")),t("smoothly-table-expandable-cell",{key:"958c8719cccb717f3453ad1042b8dca554b2eb7e"},(new Date).getFullYear()-2e3,t("div",{key:"c9f7adc43fdfae17a3ceaad66683b566daa1b4c4",slot:"detail"},"2000-01-01")),t("smoothly-table-expandable-cell",{key:"4cd1b333b9ec91af3d8e0f3453a1c44ca8ff5519"},"UK",t("div",{key:"d6966945a0ccde89223503e40b32fbc7482a3217",slot:"detail"},"London")))))}};Dh.style=Eh;const Mh=".sc-smoothly-table-demo-filtered-h{display:block;width:80%}smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2){text-align:right}td.sc-smoothly-table-demo-filtered{padding-left:1.5em}";const $h=Mh;const Rh=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Nd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await tr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=Ph[e.country])!==null&&t!==void 0?t:[]}),names:(o=Ph[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&Xn(this.criteria,this.cats);return t(s,{key:"74d8a3b771e113d5ca2b89f9ce6daeaacd51ae40"},t("smoothly-filter",{key:"7dfebb10b3aa9727c5676cd73423ce404530b94f"},t("smoothly-filter-toggle",{key:"2a80d59713845db048dd3f2b49bf5320da0f4020",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"5099ce34d39e89d4a2aaa97a45e6c8df8d581138",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"a3224462cfec87135d5394d2337f1f606a1c9631",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"032df107748c093d14aa4209a09d57e79f8b24a8",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"cdb268d230fc3593cd37349c5d3e119e3a69008f",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"ee3325e8c5a57a90e3b5dc3ef2cc311d80b085ce",slot:"detail"},t("smoothly-form",{key:"2ce7fce28ce4cd7791b7f2164b9f8b9f2d3b62f4",looks:"border"},t("smoothly-filter-select",{key:"6b9a30ac80d0ae5b16a446a69264b6a964e2e0aa",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"56d84756ae3edff2c3121a43893cc5172e7996bb",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"4b8c42aedee0c60ddaa177ae9e7122621063c743",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Ph).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"ac17a9ab17d55e8f1a5a1143a4cc3fe7547c2d6f",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"fa2f2ae6cbe1926d389edc86c77d1c90a3119533",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-table",null,t("smoothly-table-row",null,t("smoothly-table-header",null,this.selector.render(e)),t("smoothly-table-header",null,"Breed"),t("smoothly-table-header",null,"Coat"),t("smoothly-table-header",null,"Price")),e.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,this.selector.render(e)),t("smoothly-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-table-footer",null,t("td",{colSpan:5},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`})))))}};const Ph={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Rh.style=$h;const Nh='.sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0.5rem 0.3rem 0.2rem;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;padding-right:0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg) translateX(3px)}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{display:grid;grid-template-columns:auto 1fr;align-items:center}.sc-smoothly-table-expandable-cell-h:not([open])>tr.sc-smoothly-table-expandable-cell>td.sc-smoothly-table-expandable-cell{display:none}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}smoothly-table-row>tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::before{content:"";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::after{content:"";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}';const Hh=Nh;const Fh=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpansionLoad=o(this,"smoothlyExpansionLoad",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}openChanged(e){if(this.expansionElement)if(e)this.beginOpen=true;else this.element.append(this.expansionElement);this.smoothlyExpandableChange.emit(this.open)}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpansionLoad.emit();this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}componentDidRender(){if(this.beginOpen){this.beginOpen=false;this.smoothlyExpansionOpen.emit(this.expansionElement)}}onClick(){this.open=!this.open}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"c1cc9c453f14bdbea27288cb630149bed4eedc10"},t("div",{key:"8bff096be0f15b0529d51601d107875a50587a26"},t("smoothly-icon",{key:"a50afa90d33988bbd43425175f628c2732f9f208",name:"caret-forward-outline"}),t("slot",{key:"54a354b62524a00094c29bc46d2e18cd449d204f"})),t("tr",{key:"cd464fb9f1e5bbd547faecacfc624bf11a17e80a",class:{spotlight:this.spotlight},ref:e=>this.expansionElement=e},t("td",{key:"09ebc1b71d570b78e9d38f5ac572eca15d737f9b",colSpan:999},t("slot",{key:"8e156248148b0625480ac212163d51ceef8a29e1",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["openChanged","handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Fh.style=Hh;const Uh='.sc-smoothly-table-expandable-row-h{display:contents}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h:not([open])>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}.sc-smoothly-table-expandable-row-h>tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::before{content:"";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}';const Yh=Uh;const Wh=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"68f734852bf19b3f0859a2d2bf1b695ad807de7d"},t("div",{key:"1fe5bbcc7249106a3c719d83c4d0023654812e3f",onClick:()=>this.open=!this.open},t("slot",{key:"f579e90c39134fe4ff0ef95a30b4a5c2fc20c13f"})),t("tr",{key:"07c64f1cba0b59d0d17c1509dec1ec951dee637e",class:{spotlight:this.spotlight}},t("td",{key:"67d991e9fb53eae60a3b1b71aa40cfb72dfb39d5",colSpan:999},t("slot",{key:"a10e429dd2b99ace26ac9ed67f4860889ab3bb4a",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Wh.style=Yh;const Bh=".sc-smoothly-table-footer-h{display:table-footer-group;position:sticky;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\t\tinset 0 1px 0 rgb(var(--smoothly-color-shade));line-height:2.5rem;font-weight:bold}";const Vh=Bh;const Gh=class{constructor(t){e(this,t)}render(){return t("slot",{key:"e9bbaf0fb7f645dba139a78a5233ab5188438165"})}};Gh.style=Vh;const Kh=".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding:0 .5rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";const Zh=Kh;const qh=class{constructor(t){e(this,t);this.name=undefined}render(){return t(s,{key:"309ad66fa298fbe62b1925f29626f56fea9ca29c"},t("slot",{key:"e57b9b6e864950961ead1064796d6067aec6b995"}))}};qh.style=Zh;const Jh=".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}.sc-smoothly-table-row-h>div.sc-smoothly-table-row{display:contents}";const Xh=Jh;const Qh=class{constructor(t){e(this,t);this.expansions=[];this.open=false}onExpansionLoad(e){this.expansions.push(e.target)}onExpansionChange(){this.open=this.expansions.some((e=>e.open))}onExpansionOpen(e){var t;this.expansions.forEach((t=>{if(t!=e.target)t.open=false}));if(e.detail)(t=this.element)===null||t===void 0?void 0:t.after(e.detail)}render(){return t("div",{key:"999ef425b1c6bbbf716658b0641d68e61e68752d",ref:e=>this.element=e},t("slot",{key:"e60687a313d183a62b918225abcb30416e55acd8"}))}};Qh.style=Xh;const eb=[{type:"cat",name:"Lazie",age:3},{type:"dog",name:"Jessie",age:8},{type:"cat",name:"Snooz",age:5},{type:"bird",name:"Squeak",age:1},{type:"bird",name:"Quirk",age:2}];const tb=".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}td.sc-smoothly-table-testing>div.footer.sc-smoothly-table-testing{display:flex;padding-left:1.5em;flex-direction:row;gap:1em}";const ob=tb;const sb=class{constructor(t){e(this,t);this.counter=0}render(){return t(s,{key:"e415a54d0679bdadf321a1b610b8a29998b36105"},t("smoothly-table",{key:"976eb7e5682d8fdb22f73ce1e4b7d119a106487d",color:"dark"},t("smoothly-table-row",{key:"179a1e72e5ed3f042345da24b6e1a903900b72a8"},t("smoothly-table-header",{key:"5a88e049f57b38d6185b4b7298438555bc14596c"},"Type"),t("smoothly-table-header",{key:"49be12dad2477ba195db63844064f3f00f7cbf85"},"Name"),t("smoothly-table-header",{key:"67f896c78fa8909fb9f2df30dfdb05d8525fe1ac"},"Age")),eb.map((e=>t("smoothly-table-expandable-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-cell",null,e.name),t("smoothly-table-cell",null,e.age),t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!"))))),eb.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-expandable-cell",null,e.name,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.name},"Name"),t("smoothly-submit",{slot:"submit"},"Submit!"))),t("smoothly-table-expandable-cell",null,e.age,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!")))))),t("smoothly-table-footer",{key:"86996e2c769ebf0c8f9dc45531ebdb6702683169"},t("td",{key:"ba0671a9359fe871d17e4aa996ef95948a2aa94e",colSpan:2},t("div",{key:"136bd8a0df0c3d205f267c827d50eda0cf87356b",class:"footer"},"Currently viewing content from:",t("smoothly-display",{key:"16e4d70da4dc1800c311cd36c146305463da32f2",type:"date",value:"2023-10-12"}))),t("smoothly-table-header",{key:"d251a3788a9ed808b7775070ad77e875fe76c067"},"Total age: "+eb.reduce(((e,t)=>e+t.age),0)))))}};sb.style=ob;const ab=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}";const ib=ab;const nb=class{constructor(t){e(this,t);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs=[];this.selectedElement=undefined}onInputLoad(e){if(e.target instanceof HTMLElement&&!this.tabs.includes(e.target)){this.tabs=[...this.tabs,e.target]}}openChanged(e){if(e.target!=this.element){e.stopPropagation();this.selectedElement=e.target;this.smoothlyTabOpen.emit(e.detail)}}onSelectedChange(e,t){if(t)t.open=false}render(){return t(s,{key:"76a866d156ea794fc03087957ad32db5cf020321",style:{"--tabs":`${this.tabs.length}`}},t("slot",{key:"5de5cc3949962492f8262585d495b148783aded8"}))}get element(){return a(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};nb.style=ib;const lb=".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%}";const rb=lb;const cb=class{constructor(t){e(this,t)}render(){return t("smoothly-tabs",{key:"a299b436bb4e22db2e782aaa99387e1fcc7135cb"},t("smoothly-tab",{key:"3d0d10ba0dc347c611de3827273c4e1389648488",label:"test1",open:true},"Hello world!"),t("smoothly-tab",{key:"3b9cdbcec7159443d6ccd3d1b10fa9c7ba8cfb6d",label:"test2"},"this is a test message!"),t("smoothly-tab",{key:"759ca730abf0e0f870f1856b3cd2de4578c2f19f",label:"test3"},"this is a test message again!"))}};cb.style=rb;const db=".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 hb=db;const bb=class{constructor(t){e(this,t);this.color=undefined}render(){return t(s,{key:"848121aba4246db4379e532e7fbbac982d2343f1"},this.color,["tint","color","shade"].map((e=>t("smoothly-theme-color-variant",{title:`${this.color} ${e}`,color:this.color,variant:e}))))}};bb.style=hb;const mb=".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 yb=mb;const ub=class{constructor(t){e(this,t);this.color=undefined;this.variant="color"}render(){return"Aa"}};ub.style=yb;const fb=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const pb=fb;const gb=class{constructor(t){e(this,t)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((e=>t("smoothly-theme-color",{color:e})))}};gb.style=pb;const kb=".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 vb=kb;const xb=class{constructor(t){e(this,t)}render(){return t(s,{key:"865ce77bdd45afebc2774a27eff805c25356ab36"},t("h2",{key:"06ee90bd42d389e9a778856afd80b5dfc30e0321"},"Theme"),t("smoothly-theme-picker",{key:"26363a1dddd0ebd83c2d699161122367b70f354c"},t("smoothly-item",{key:"27ee146716b8087ae25fb16d79398f4987a38f50",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),t("smoothly-item",{key:"dd1a03ccc5babe39f122fb934deeffa410a9f988",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),t("smoothly-item",{key:"dd09137b95dd1f6d362f63004f6e08406e715b7d",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),t("smoothly-item",{key:"e00ce17a19b2e317bd48ae3756704b3108ec5d78",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),t("smoothly-item",{key:"dfeedfd252269713c8c57d1944691f83f43f0383",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),t("smoothly-item",{key:"72f624557fcac90b0914ff923d0bd8d25201e2a7",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),t("smoothly-item",{key:"d51e73562da1aa075753602a563bdc1b839d66ed",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),t("smoothly-item",{key:"ace56c663cad091d890be11a4ac98bb3d15615ba",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),t("smoothly-item",{key:"eee4bf76c231024eb3e73e5fadb5a3bd6ff9a953",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),t("span",{key:"a9502b7c878a7ac000a94e36c0fc98e051c244b2"},t("smoothly-theme-colors",{key:"ef952e7c9569b1d0afe771e93d948293e26341df"}),t("smoothly-theme-guide",{key:"79675de688385da425545169846b0025a9c40812"})),t("smoothly-button",{key:"93173a279843b4186c678b11800aaa4d678a6fc6",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"3f9e7cf9743a3858d89983e443380f3ab21d9396",type:"link",link:"/redirect"},"To /redirect"),t("smoothly-button",{key:"0052e0765dddef35e6500a72fd4489608236c88a",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),t("smoothly-button",{key:"cb476d018d10a8a59b895c50576f41c3ffcc5bd6",type:"link",link:"redirect/nested"},"To redirect nested"))}};xb.style=vb;const wb="";const Sb=wb;const Cb=class{constructor(t){e(this,t)}render(){return[t("smoothly-display",{key:"707ff83cef8b445e4dc7289dbabf6be194b7fec6"},"Tint is used as background to highlight, for example hovering an item in the select menu."),t("br",{key:"65fe1eb58612a7f9ea62b34b47605bcc2afc0162"}),t("smoothly-display",{key:"12bc6cce06f04ea8296467bd6337a7d572de6c4e"},"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."),t("br",{key:"3b1fe4b475a48890679280e5fe7002ac48f5f03a"}),t("smoothly-display",{key:"134dc7394b8a9c4e2491fa0f50e050e1238a6218"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),t("br",{key:"583b15592a6c75a192964eaa6994e9c29d8beb84"}),t("smoothly-display",{key:"a50de9e71218ca9bfe945fcc4b47f2d2d9186e4e"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),t("br",{key:"d580b54882d4062f2ca9b692052896c64e82f699"})]}};Cb.style=Sb;const zb="";const jb=zb;const _b=class{constructor(t){e(this,t);this.element="smoothly-css"}render(){return t(s,{key:"183b2052a1cde44f7ac25a9e9ad15ac61b9e338d"},t("smoothly-input-select",{key:"a0b4a7be58ebd0f934940e235a37beaba3cf6c46",name:"theme",looks:"border",onSmoothlyInput:e=>{const t=document.querySelector(`#${this.element}`);if(t instanceof HTMLLinkElement&&typeof e.detail.theme=="string")t.href=e.detail.theme}},t("label",{key:"5df75384e9b9c07f0f7d860c61f060e7d3c87fc3",slot:"label"},"Select theme"),t("slot",{key:"c30444d8e8afebd522954b79e98baed622182327"})))}};_b.style=jb;const Tb=".sc-smoothly-toggle-h{display:inline-block;border:none}.sc-smoothly-toggle-h>button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const Ib=Tb;const Ob=class{constructor(t){e(this,t);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(e){this.selected=!this.selected}render(){return t("button",{key:"b430e16450b3f35da226707fe6023072b56bbedf"},t("slot",{key:"7e821a21d754c1d4721c650a4d9e3854cd1c052c",name:"icon-slot"}),t("slot",{key:"51394d6d6c76ccf573846014ceaf099deefecfe8"},this.name))}};Ob.style=Ib;const Lb=".sc-smoothly-toggle-switch-h{display:block;width:3.6em;height:1.8em}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-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;position:absolute;left:0;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));font-size:1.2em;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{width:2.4em;height:1.2em}[size=small].sc-smoothly-toggle-switch-h{width:3.05em;height:1.5em}[size=large].sc-smoothly-toggle-switch-h{width:5.2em;height:2.5em}[size=tiny].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:.8em}[size=small].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1em}[size=large].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1.75em}";const Ab=Lb;const Eb=class{constructor(t){e(this,t);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 t(s,{key:"092fc236b5cb41718825e5f72076f92843c7e337"},t("button",{key:"f607ed3cc25099d8b191876456df7c8d54360f3c",disabled:this.disabled,onClick:()=>this.handleClick()},t("smoothly-icon",{key:"a34cdcacbed9ae97c79cd902c09840c5237cd576",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};Eb.style=Ab;const Db=".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 Mb=Db;const $b=class{constructor(t){e(this,t)}render(){return t(s,{key:"b5a8dad0e8976256f3b4627764d9bc7f3242d514"},t("h4",{key:"a0fb1105285b4ebd999f5bd7fc9a67c4dabbffe7"},"Toggle switches"),t("div",{key:"e1f383c9bb9538ae08c67572e51cf0ade1985c90"},t("p",{key:"068e32fa464cf8a469dadc57bbd17540ee4857ab"},"Checkmark"),t("span",{key:"212f89b6c1d905a7711790f30f7039c126083146"},t("p",{key:"ef887b9684ee3732b954bb7d67920d1c561f186c"},"Tiny"),t("smoothly-toggle-switch",{key:"2d02e137002d7d77f35762fb1057f77fbd8b9c7b",disabled:false,size:"tiny"})),t("span",{key:"a317a1fa13ec0643e8314c8e0309d5ec9ef92a6b"},t("p",{key:"4fba9e2c490d6a441b2fd87e502371af64c2fec7"},"Small"),t("smoothly-toggle-switch",{key:"1cf9d08b7fd357d1a1a2cbb07dc19af3329b638d",disabled:false,size:"small"})),t("span",{key:"86122733c5b1a4b0fa9d62534f4e23fb97a6b1cb"},t("p",{key:"83a898afe95f77d87df30a45b49460a288a752bf"},"Standard"),t("smoothly-toggle-switch",{key:"e748f4c1a33cb3ec4ec5f0cb3d06222772291783",disabled:false})),t("span",{key:"0dd0d6c6e6df19f798c0082eec67bc3b99abfd30"},t("p",{key:"ef85903cbe51b0936ce50c23329cd13d366da08e"},"Large"),t("smoothly-toggle-switch",{key:"e6e4dc938e3d808ecee53f476f774fa124eff34b",disabled:false,size:"large"})),t("p",{key:"08f2e4c397aeb0ca02b8a230946c7f63ee97545f"},"Colors checkmark"),t("span",{key:"efbe3544bc9c51863e0787ffedfd507e60ed40aa"},t("p",{key:"ace9e8d3011faea0bbfc3bc24aebe57ac4d22b66"},"Danger"),t("smoothly-toggle-switch",{key:"276519f385e87e2fd8667c0828d907320c699f04",color:"danger",disabled:false,size:"small"})),t("span",{key:"d63aeeaf10d9eaa72bb903f9d46eae9248baa6a9"},t("p",{key:"4b50aaba711d21ee300d665518044167c4544e16"},"Primary color"),t("smoothly-toggle-switch",{key:"252117c2670a1d711ae0a4038815daafc4f6eac1",color:"primary",disabled:false,size:"small"})),t("span",{key:"d753489108dee9ff3919dc4888b7b184efc12359"},t("p",{key:"300e5007173732e8d1f635e209215c197a39e743"},"Secondary color"),t("smoothly-toggle-switch",{key:"a37e57c300608347e41a9ebcf74cf942cd13b700",color:"secondary",disabled:false,size:"small"})),t("p",{key:"ff9f091be0d5673bc67a2b8c147a3ebdeb7a0de0"}),t("p",{key:"c9449dc13ba993f888914ae0b2b30c64abe4362f"},"Colors no checkmark"),t("span",{key:"5dd59ef4b8a96c73b7ba63af6fb480e30d754f85"},t("p",{key:"cf69d46fd1d23594577df9c8061ca4f08f16d6e8"},"Danger"),t("smoothly-toggle-switch",{key:"ffd295756cfd7e5793615809c96ca8e540197707",checkmark:false,color:"danger",disabled:false,size:"small"})),t("span",{key:"aea5eb0c1a904765942448b80f3cc73964dbe0f4"},t("p",{key:"1ed89ea2201fbcc9ab1254b14df60a55b4396334"},"Primary color"),t("smoothly-toggle-switch",{key:"d3ef838368ec6cc5ad08f854acc591d97a6b5540",checkmark:false,color:"primary",disabled:false,size:"small"})),t("span",{key:"f9167625da0b84b939d775757ec707431153a09c"},t("p",{key:"5c1cf2729734ac8e397b3e1500b6abc9d5862bfd"},"Secondary color"),t("smoothly-toggle-switch",{key:"06c2af18c81fe2f23daa9f783e3a7cdb363ed3f5",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};$b.style=Mb;const Rb=".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 Pb=Rb;const Nb=class{constructor(t){e(this,t);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(e){this.trigger.emit({name:this.name,value:this.value});e.stopPropagation();e.preventDefault()}render(){let e;switch(this.type){case"link":e=this.disabled?t("slot",null):t("a",{onClick:e=>this.onClick(e)},t("slot",null));break;case"button":e=t("button",{key:"be00b28fdd08ca1faf3074fd0b431d0841a68848",disabled:this.disabled,name:this.name},t("slot",{key:"f14949be4c37391c0f3658938c99e5a4e7b52a23"}));break}return e}};Nb.style=Pb;export{R as smoothly_app,P as smoothly_app_demo,Re as smoothly_app_room,He as smoothly_back_to_top,Ye as smoothly_burger,Ze as smoothly_button,Xe as smoothly_button_confirm,tt as smoothly_button_demo,rt as smoothly_calendar,ht as smoothly_dialog,bt as smoothly_dialog_demo,ao as smoothly_display,io as smoothly_display_demo,lo as smoothly_display_demo_json,mo as smoothly_display_json,fo as smoothly_display_json_object,ko as smoothly_display_json_primitive,wo as smoothly_display_json_record_key,sl as smoothly_filter,nl as smoothly_filter_field,cl as smoothly_filter_input,bl as smoothly_filter_select,ul as smoothly_filter_toggle,br as smoothly_form,ur as smoothly_form_demo,fr as smoothly_form_demo_all,pr as smoothly_form_demo_card,gr as smoothly_form_demo_controlled,xr as smoothly_form_demo_date,Cr as smoothly_form_demo_date_range,zr as smoothly_form_demo_login,Tr as smoothly_form_demo_pet,Ir as smoothly_form_demo_prices,Or as smoothly_form_demo_transparent,Dr as smoothly_form_demo_typed,Rr as smoothly_frame,Hr as smoothly_icon,Yr as smoothly_icon_demo,Zr as smoothly_input,Xr as smoothly_input_checkbox,tc as smoothly_input_clear,ac as smoothly_input_color,ic as smoothly_input_color_demo,rc as smoothly_input_date,hc as smoothly_input_date_range,yc as smoothly_input_demo,pc as smoothly_input_demo_standard,vc as smoothly_input_edit,Sc as smoothly_input_file,jc as smoothly_input_month,Ic as smoothly_input_price_demo,Ac as smoothly_input_radio,Mc as smoothly_input_radio_item,Pc as smoothly_input_range,Nc as smoothly_input_range_demo,Uc as smoothly_input_reset,Vc as smoothly_input_select,qc as smoothly_input_submit,Qc as smoothly_item,od as smoothly_label,id as smoothly_lazy,nd as smoothly_load_more,cd as smoothly_next_demo,bd as smoothly_next_demo_colspan,ud as smoothly_next_demo_group,kd as smoothly_next_demo_nested,wd as smoothly_next_demo_nested_inner,zd as smoothly_next_demo_simple,Id as smoothly_next_table,Ad as smoothly_next_table_body,Md as smoothly_next_table_cell,Ud as smoothly_next_table_demo_filtered,Vd as smoothly_next_table_expandable_cell,Zd as smoothly_next_table_expandable_row,Xd as smoothly_next_table_foot,th as smoothly_next_table_head,ah as smoothly_next_table_row,lh as smoothly_next_table_row_group,dh as smoothly_notification,mh as smoothly_notifier,fh as smoothly_spinner,kh as smoothly_submit,wh as smoothly_summary,zh as smoothly_tab,Th as smoothly_table,Lh as smoothly_table_cell,Dh as smoothly_table_demo,Rh as smoothly_table_demo_filtered,Fh as smoothly_table_expandable_cell,Wh as smoothly_table_expandable_row,Gh as smoothly_table_footer,qh as smoothly_table_header,Qh as smoothly_table_row,sb as smoothly_table_testing,nb as smoothly_tabs,cb as smoothly_tabs_demo,bb as smoothly_theme_color,ub as smoothly_theme_color_variant,gb as smoothly_theme_colors,xb as smoothly_theme_demo,Cb as smoothly_theme_guide,_b as smoothly_theme_picker,Ob as smoothly_toggle,Eb as smoothly_toggle_switch,$b as smoothly_toggle_switch_demo,Nb as smoothly_trigger};
2
- //# sourceMappingURL=p-2229dd94.entry.js.map
1
+ import{r as e,h as t,c as o,H as s,g as a,F as i}from"./p-ad674a4e.js";import{b as n,a as l,T as r,C as c,o as d,i as h,s as b,r as m,c as y,D as u,f,R as p,n as g,M as k,I as v}from"./p-99846f9b.js";import{L as x,a as w,D as S,b as C,T as z,C as j,c as _,A as T}from"./p-05e38ae2.js";import{r as I,N as O}from"./p-c3f85494.js";import{f as L}from"./p-cf245e8a.js";function A(e){return new E(e??"any")}class E extends n{constructor(){super(...arguments);this.class="any";this.is=e=>e!=undefined}}function D(){const e=navigator.language;return x.is(e)?e:w.is(e)?x.toLocale(e):undefined}const M='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>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>smoothly-notifier>header>nav:not(.menu-open){display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const $=M;const R=class{constructor(t){e(this,t);this.rooms={};this.label="App";this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var e;if(!this.selected&&!window.location.search)(e=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((e=>!(e===null||e===void 0?void 0:e.element.disabled))))===null||e===void 0?void 0:e.element.setSelected(true)}async selectRoom(e){var t;(t=this.rooms[e])===null||t===void 0?void 0:t.element.setSelected(true)}async selectedChanged(){var e;Object.values(this.rooms).forEach((e=>{var t;return(e===null||e===void 0?void 0:e.element.path)!=((t=this.selected)===null||t===void 0?void 0:t.element.path)&&(e===null||e===void 0?void 0:e.element.setSelected(false))}));const t=await((e=this.selected)===null||e===void 0?void 0:e.element.getContent());if(this.mainElement&&t){this.mainElement.innerHTML="";this.mainElement.appendChild(t)}}burgerVisibilityHandler(e){this.burgerVisibility=e.detail}burgerStatusHandler(e){e.stopPropagation();this.menuOpen=e.detail}async locationChangeHandler(e){var t;(t=this.rooms[e.state.smoothlyPath])===null||t===void 0?void 0:t.element.setSelected(true,{history:true})}roomSelectedHandler(e){this.selected={element:e.target};if(this.burgerVisibility)this.menuOpen=false;if(!e.detail.history){const e=this.selected.element.path.toString();const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;window.history.pushState({smoothlyPath:e},"",t.href)}}roomLoadedHandler(e){const t=this.rooms[e.target.path.toString()]={element:e.target};if(t.element.selected){this.selected=t;window.history.replaceState({smoothlyPath:t.element.path},"",window.location.href)}}clickHandler(e){if(this.burgerVisibility)if(e.composedPath().some((e=>e==this.burgerElement||e==this.navElement)));else this.menuOpen=false}render(){return t("smoothly-notifier",{key:"97d74b5f676da85edbe4e758b5d774dece0e1684"},t("header",{key:"4f90451a95fd9456045c1bdc70e50d09a588521e",color:this.color},t("h1",{key:"69384c314419a1df953a8c5b4d74d53a9114d093"},t("a",{key:"3d0b0a8b224b0defabdbc8fb06e532ec5ce5bc1b",href:""},this.label)),t("slot",{key:"b3779a282b489fec4093c2b434e7cdb10ea5c3f8",name:"header"}),t("nav",{key:"76eacb845b036d3d89a0103ac7ad7676812b43df",ref:e=>this.navElement=e,class:{"menu-open":this.menuOpen}},t("ul",{key:"10a985248e9c88d06efcfa81823350fcad52d790"},t("div",{key:"3b81b1bdf3ceb2625d9f2e7b85cb04d41f12a318",class:"nav-start-container"},t("slot",{key:"6f844fb944680656a336a54def2e7aaeb7b632e9",name:"nav-start"})),t("slot",{key:"d74d563727c922ea2066fc8a37105ffc2a168708"}," "),t("div",{key:"cccf3d1dc30904fe99e874ee3c50507d4e50aedc",class:"nav-end-container"},t("slot",{key:"9cbd9cf2917b53ffb6820ea717c1fb1fc71478dd",name:"nav-end"})))),t("smoothly-burger",{key:"9083b5c832c4a936c54114adfef2fcfa2a8e81d4",ref:e=>this.burgerElement=e,open:this.menuOpen,onSmoothlyNavStatus:e=>this.burgerStatusHandler(e),onSmoothlyVisibleStatus:e=>this.burgerVisibilityHandler(e)})),t("main",{key:"c49aa4597a080ff715127517a5151f0eab91fac5",ref:e=>this.mainElement=e}))}static get watchers(){return{selected:["selectedChanged"]}}};R.style=$;const P=class{constructor(t){e(this,t);this.baseUrl=undefined}render(){return t("smoothly-app",{key:"aa798117a543b094b87cd4f794e41c2c62eedcf5",color:"dark",label:"Smoothly Demo",home:"/root",ref:e=>this.app=e},t("smoothly-trigger",{key:"8576545a5f1408fe488c80ca5a0856650d3d5b49",slot:"nav-start",type:"link",name:"logout"},t("smoothly-icon",{key:"193f43f5a6d919ba06eec2a08149ed2374aee06f",toolTip:"Log out",name:"log-out",size:"medium"})),t("smoothly-app-room",{key:"e8844d73ceb204d13bfc279e946a0bac80dc4d68",path:"/root",label:"root"},t("smoothly-theme-demo",{key:"6cb3d1813bf4d9fe930ef3ed82215aac2af0d628"})),t("smoothly-app-room",{key:"cbf46329c16c64a199535b1553e7a8c672529fbc",path:"/links",label:"Links"},t("smoothly-input",{key:"4a9793a5fcca2a9addc6090c9c0cd671b1ebbd24",type:"text"},"Default"),t("div",{key:"14eeb3c49e15d784862c4f6e9d59c8a3d8da7963",style:{padding:"1em",maxWidth:"12em"}},t("smoothly-button",{key:"31b4d3395c2591401eb6dab6da14d6caac0411fe",fill:"solid",color:"danger",link:"https://google.com"},"open"),t("smoothly-button",{key:"bfad0b8b15643d8d31c85ee11a9c0e84db2ab6c9",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),t("smoothly-button",{key:"bebe8268049b005938a50db82b40c0ee87612743",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"e29cddc1f4bfd034dde47491361278c6ce87ba7d",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"d8cc0600b0632998ba1b869ad084edab91fad2e5",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),t("smoothly-app-room",{key:"ac76d59a6a1abf64390f2abf922d5f5a6dee1669",path:"/form",label:"Form"},t("smoothly-form-demo",{key:"0bdc1d11f5b8f934dda4ff392458b08d4a70be3f"})),t("smoothly-app-room",{key:"4563223ad6f765c0939cc30cd45dc30cd5d69032",path:"/input",label:"Input"},t("smoothly-input-demo",{key:"375c06afd265f6307fc66e93c9835dc49ce3e6d6"})),t("smoothly-app-room",{key:"42e0a3a236f724591145301dd9df043f679af9ee",path:"/button",label:"Button"},t("smoothly-button-demo",{key:"5901292f12d2d24973a2cf5387508a431803b2e8"})),t("smoothly-app-room",{key:"d4a8784af2165b95cfc42aff5ca3be1e5c958e87",path:"/dialog",label:"Dialog"},t("smoothly-dialog-demo",{key:"35c854b7844271e48d3f0e6533f9306c8464baf0"})),t("smoothly-app-room",{key:"e2ad58e1f1265d3a5027cd3f224083e40d5973f7",path:"/display",label:"Display",icon:"eye-outline"},t("smoothly-display-demo",{key:"2bfc57d7150503495f8b12d2ed3d9ec7d5d89a88"})),t("smoothly-app-room",{key:"8d586a62c12cf26864db2f247ad12681f590a77d",path:"/table",label:"Table"},t("smoothly-table-demo",{key:"38415d9b5ce66403af5628b3348410592e67fa23"})),t("smoothly-app-room",{key:"751c2b58dcbc1863dcc5529d88dd4fdd903e757a",path:"/next",label:"Next"},t("smoothly-next-demo",{key:"4e59f67d38365c613cea03506f3084ea692ee586"})),t("smoothly-app-room",{key:"ae695b723b25a16a108fa9e0c2b3b09533e50286",path:"/tabs",label:"Tabs",slot:"nav-end"},t("smoothly-tabs-demo",{key:"c283c99faa9ac420440b044c3aeebe8a01ec43e4"})),t("smoothly-app-room",{key:"267db613a187c690e77b432dd39bcff73234ac38",path:"/icon",label:"Icon",content:t("smoothly-icon-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"8bfbb99b17ad01a4fd09b8806a822546cdf720a3",path:"/redirect",label:"Redirect",slot:"nav-end"},t("smoothly-button",{key:"d4b35584d2c1287d720ebc459100761b276de121",type:"link",link:"/input"},"To input"),t("smoothly-button",{key:"8f207c300488db536215a3c61edb66519a22cc4d",type:"link",link:"../button"},"To button"),t("smoothly-button",{key:"c71e440088db8957a47434ab649fe7fe7c6c0f8e",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),t("smoothly-button",{key:"e6257c6f6da592e923ba67f73d587b35d2435d09",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"d55eb65cf2286b9fef264f8531f68b499af73199",type:"link",link:"nested"},"To redirect nested, relative path")),t("smoothly-app-room",{key:"3ba5cd1cfc05a1b00ec42ea9ddfebbe8abf74d02",path:"/hidden"},t("p",{key:"0033b0c86f9199c4623da10af5ad62ae3c89eb82"},"hello world!")),t("smoothly-app-room",{key:"5f43fc7540b1d3a123b278eed2b6be274a661fd5",path:"/redirect/nested"},"this is a nested room"))}};var N=class{constructor(e,t,o,s,a,i){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=e;this.name=t;this.prefix=o;this.value=s;this.suffix=a;this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var H=/[$_\p{ID_Start}]/u;var F=/[$_\u200C\u200D\p{ID_Continue}]/u;var U=".*";function Y(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function W(e,t=false){const o=[];let s=0;while(s<e.length){const a=e[s];const i=function(a){if(!t)throw new TypeError(a);o.push({type:"INVALID_CHAR",index:s,value:e[s++]})};if(a==="*"){o.push({type:"ASTERISK",index:s,value:e[s++]});continue}if(a==="+"||a==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:e[s++]});continue}if(a==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:e[s++]});continue}if(a==="{"){o.push({type:"OPEN",index:s,value:e[s++]});continue}if(a==="}"){o.push({type:"CLOSE",index:s,value:e[s++]});continue}if(a===":"){let t="";let a=s+1;while(a<e.length){const o=e.substr(a,1);if(a===s+1&&H.test(o)||a!==s+1&&F.test(o)){t+=e[a++];continue}break}if(!t){i(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:t});s=a;continue}if(a==="("){let t=1;let a="";let n=s+1;let l=false;if(e[n]==="?"){i(`Pattern cannot start with "?" at ${n}`);continue}while(n<e.length){if(!Y(e[n],false)){i(`Invalid character '${e[n]}' at ${n}.`);l=true;break}if(e[n]==="\\"){a+=e[n++]+e[n++];continue}if(e[n]===")"){t--;if(t===0){n++;break}}else if(e[n]==="("){t++;if(e[n+1]!=="?"){i(`Capturing groups are not allowed at ${n}`);l=true;break}}a+=e[n++]}if(l){continue}if(t){i(`Unbalanced pattern at ${s}`);continue}if(!a){i(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:a});s=n;continue}o.push({type:"CHAR",index:s,value:e[s++]})}o.push({type:"END",index:s,value:""});return o}function B(e,t={}){const o=W(e);t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");const s=`[^${V(t.delimiter)}]+?`;const a=[];let i=0;let n=0;let l=new Set;const r=e=>{if(n<o.length&&o[n].type===e)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const d=e=>{const t=r(e);if(t!==void 0)return t;const{type:s,index:a}=o[n];throw new TypeError(`Unexpected ${s} at ${a}, expected ${e}`)};const h=()=>{let e="";let t;while(t=r("CHAR")??r("ESCAPED_CHAR")){e+=t}return e};const b=e=>e;const m=t.encodePart||b;let y="";const u=e=>{y+=e};const f=()=>{if(!y.length){return}a.push(new N(3,"","",m(y),"",3));y=""};const p=(e,t,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!t&&!o&&c===3){u(e);return}f();if(!t&&!o){if(!e){return}a.push(new N(3,"","",m(e),"",c));return}let d;if(!o){d=s}else if(o==="*"){d=U}else{d=o}let h=2;if(d===s){h=1;d=""}else if(d===U){h=0;d=""}let b;if(t){b=t}else if(o){b=i++}if(l.has(b)){throw new TypeError(`Duplicate name '${b}'.`)}l.add(b);a.push(new N(h,b,m(e),d,m(n),c))};while(n<o.length){const e=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let a=e??"";if(t.prefixes.indexOf(a)===-1){u(a);a=""}f();let i=c();p(a,o,s,"",i);continue}const a=e??r("ESCAPED_CHAR");if(a){u(a);continue}const i=r("OPEN");if(i){const e=h();const t=r("NAME");let o=r("REGEX");if(!t&&!o){o=r("ASTERISK")}const s=h();d("CLOSE");const a=c();p(e,t,o,s,a);continue}f();d("END")}return a}function V(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function G(e){return e&&e.ignoreCase?"ui":"u"}function K(e,t,o){return q(B(e,o),t,o)}function Z(e){switch(e){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function q(e,t,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 a of e){if(a.type===3){if(a.modifier===3){s+=V(a.value)}else{s+=`(?:${V(a.value)})${Z(a.modifier)}`}continue}if(t)t.push(a.name);const e=`[^${V(o.delimiter)}]+?`;let i=a.value;if(a.type===1)i=e;else if(a.type===0)i=U;if(!a.prefix.length&&!a.suffix.length){if(a.modifier===3||a.modifier===1){s+=`(${i})${Z(a.modifier)}`}else{s+=`((?:${i})${Z(a.modifier)})`}continue}if(a.modifier===3||a.modifier===1){s+=`(?:${V(a.prefix)}(${i})${V(a.suffix)})`;s+=Z(a.modifier);continue}s+=`(?:${V(a.prefix)}`;s+=`((?:${i})(?:`;s+=V(a.suffix);s+=V(a.prefix);s+=`(?:${i}))*)${V(a.suffix)})`;if(a.modifier===0){s+="?"}}const a=`[${V(o.endsWith)}]|$`;const i=`[${V(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${i}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${a})`}return new RegExp(s,G(o))}if(!o.strict){s+=`(?:${i}(?=${a}))?`}let n=false;if(e.length){const t=e[e.length-1];if(t.type===3&&t.modifier===3){n=o.delimiter.indexOf(t)>-1}}if(!n){s+=`(?=${i}|${a})`}return new RegExp(s,G(o))}var J={delimiter:"",prefixes:"",sensitive:true,strict:true};var X={delimiter:".",prefixes:"",sensitive:true,strict:true};var Q={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function ee(e,t){if(!e.length){return false}if(e[0]==="/"){return true}if(!t){return false}if(e.length<2){return false}if((e[0]=="\\"||e[0]=="{")&&e[1]=="/"){return true}return false}function te(e,t){if(e.startsWith(t)){return e.substring(t.length,e.length)}return e}function oe(e,t){if(e.endsWith(t)){return e.substr(0,e.length-t.length)}return e}function se(e){if(!e||e.length<2){return false}if(e[0]==="["){return true}if((e[0]==="\\"||e[0]==="{")&&e[1]==="["){return true}return false}var ae=["ftp","file","http","https","ws","wss"];function ie(e){if(!e){return true}for(const t of ae){if(e.test(t)){return true}}return false}function ne(e,t){e=te(e,"#");if(t||e===""){return e}const o=new URL("https://example.com");o.hash=e;return o.hash?o.hash.substring(1,o.hash.length):""}function le(e,t){e=te(e,"?");if(t||e===""){return e}const o=new URL("https://example.com");o.search=e;return o.search?o.search.substring(1,o.search.length):""}function re(e,t){if(t||e===""){return e}if(se(e)){return ke(e)}else{return ge(e)}}function ce(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.password=e;return o.password}function de(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.username=e;return o.username}function he(e,t,o){if(o||e===""){return e}if(t&&!ae.includes(t)){const o=new URL(`${t}:${e}`);return o.pathname}const s=e[0]=="/";e=new URL(!s?"/-"+e:e,"https://example.com").pathname;if(!s){e=e.substring(2,e.length)}return e}function be(e,t,o){if(ye(t)===e){e=""}if(o||e===""){return e}return ve(e)}function me(e,t){e=oe(e,":");if(t||e===""){return e}return ue(e)}function ye(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ue(e){if(e===""){return e}if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function fe(e){if(e===""){return e}const t=new URL("https://example.com");t.username=e;return t.username}function pe(e){if(e===""){return e}const t=new URL("https://example.com");t.password=e;return t.password}function ge(e){if(e===""){return e}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e)){throw new TypeError(`Invalid hostname '${e}'`)}const t=new URL("https://example.com");t.hostname=e;return t.hostname}function ke(e){if(e===""){return e}if(/[^0-9a-fA-F[\]:]/g.test(e)){throw new TypeError(`Invalid IPv6 hostname '${e}'`)}return e.toLowerCase()}function ve(e){if(e===""){return e}if(/^[0-9]*$/.test(e)&&parseInt(e)<=65535){return e}throw new TypeError(`Invalid port '${e}'.`)}function xe(e){if(e===""){return e}const t=new URL("https://example.com");t.pathname=e[0]!=="/"?"/-"+e:e;if(e[0]!=="/"){return t.pathname.substring(2,t.pathname.length)}return t.pathname}function we(e){if(e===""){return e}const t=new URL(`data:${e}`);return t.pathname}function Se(e){if(e===""){return e}const t=new URL("https://example.com");t.search=e;return t.search.substring(1,t.search.length)}function Ce(e){if(e===""){return e}const t=new URL("https://example.com");t.hash=e;return t.hash.substring(1,t.hash.length)}var ze=class{constructor(e){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=e}get result(){return this.internalResult}parse(){this.tokenList=W(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 e=7;let t=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){e=2;t=3}else if(this.shouldTreatAsStandardURL){e=2}this.changeState(e,t)}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(e,t){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(e,t)}changeStateWithoutSettingComponent(e,t){this.state=e;this.componentStart=this.tokenIndex+t;this.tokenIndex+=t;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(e){this.rewind();this.state=e}safeToken(e){if(e<0){e=this.tokenList.length-e}if(e<this.tokenList.length){return this.tokenList[e]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(e,t){const o=this.safeToken(e);return o.value===t&&(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 e=this.safeToken(this.tokenIndex-1);return e.type!=="NAME"&&e.type!=="REGEX"&&e.type!=="CLOSE"&&e.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 e=this.tokenList[this.tokenIndex];const t=this.safeToken(this.componentStart).index;return this.input.substring(t,e.index)}computeShouldTreatAsStandardURL(){const e={};Object.assign(e,J);e.encodePart=ue;const t=K(this.makeComponentString(),void 0,e);this.shouldTreatAsStandardURL=ie(t)}};var je=["protocol","username","password","hostname","port","pathname","search","hash"];var _e="*";function Te(e,t){if(typeof e!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(e,t);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 Ie(e,t){if(!t){return e}return Le(e)}function Oe(e,t,o){let s;if(typeof t.baseURL==="string"){try{s=new URL(t.baseURL);e.protocol=Ie(s.protocol.substring(0,s.protocol.length-1),o);e.username=Ie(s.username,o);e.password=Ie(s.password,o);e.hostname=Ie(s.hostname,o);e.port=Ie(s.port,o);e.pathname=Ie(s.pathname,o);e.search=Ie(s.search.substring(1,s.search.length),o);e.hash=Ie(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${t.baseURL}'.`)}}if(typeof t.protocol==="string"){e.protocol=me(t.protocol,o)}if(typeof t.username==="string"){e.username=de(t.username,o)}if(typeof t.password==="string"){e.password=ce(t.password,o)}if(typeof t.hostname==="string"){e.hostname=re(t.hostname,o)}if(typeof t.port==="string"){e.port=be(t.port,e.protocol,o)}if(typeof t.pathname==="string"){e.pathname=t.pathname;if(s&&!ee(e.pathname,o)){const t=s.pathname.lastIndexOf("/");if(t>=0){e.pathname=Ie(s.pathname.substring(0,t+1),o)+e.pathname}}e.pathname=he(e.pathname,e.protocol,o)}if(typeof t.search==="string"){e.search=le(t.search,o)}if(typeof t.hash==="string"){e.hash=ne(t.hash,o)}return e}function Le(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Ae(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Ee(e,t){t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");t.sensitive??(t.sensitive=false);t.strict??(t.strict=false);t.end??(t.end=true);t.start??(t.start=true);t.endsWith="";const o=".*";const s=`[^${Ae(t.delimiter)}]+?`;const a=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let n=0;n<e.length;++n){const l=e[n];if(l.type===3){if(l.modifier===3){i+=Le(l.value);continue}i+=`{${Le(l.value)}}${Z(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!t.prefixes.includes(l.prefix));const d=n>0?e[n-1]:null;const h=n<e.length-1?e[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&h&&!h.prefix.length&&!h.suffix.length){if(h.type===3){const e=h.value.length>0?h.value[0]:"";c=a.test(e)}else{c=!h.hasCustomName()}}if(!c&&!l.prefix.length&&d&&d.type===3){const e=d.value[d.value.length-1];c=t.prefixes.includes(e)}if(c){i+="{"}i+=Le(l.prefix);if(r){i+=`:${l.name}`}if(l.type===2){i+=`(${l.value})`}else if(l.type===1){if(!r){i+=`(${s})`}}else if(l.type===0){if(!r&&(!d||d.type===3||d.modifier!==3||c||l.prefix!=="")){i+="*"}else{i+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(a.test(l.suffix[0])){i+="\\"}}i+=Le(l.suffix);if(c){i+="}"}if(l.modifier!==3){i+=Z(l.modifier)}}return i}var De=class{constructor(e={},t,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof t==="string"){s=t}else{o=t}if(typeof e==="string"){const t=new ze(e);t.parse();e=t.result;if(s===void 0&&typeof e.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}e.baseURL=s}else{if(!e||typeof e!=="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 a={ignoreCase:o.ignoreCase===true};const i={pathname:_e,protocol:_e,username:_e,password:_e,hostname:_e,port:_e,search:_e,hash:_e};this.pattern=Oe(i,e,true);if(ye(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of je){if(!(n in this.pattern))continue;const e={};const t=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(e,J);e.encodePart=ue;break;case"username":Object.assign(e,J);e.encodePart=fe;break;case"password":Object.assign(e,J);e.encodePart=pe;break;case"hostname":Object.assign(e,X);if(se(t)){e.encodePart=ke}else{e.encodePart=ge}break;case"port":Object.assign(e,J);e.encodePart=ve;break;case"pathname":if(ie(this.regexp.protocol)){Object.assign(e,Q,a);e.encodePart=xe}else{Object.assign(e,J,a);e.encodePart=we}break;case"search":Object.assign(e,J,a);e.encodePart=Se;break;case"hash":Object.assign(e,J,a);e.encodePart=Ce;break}try{this.parts[n]=B(t,e);this.regexp[n]=q(this.parts[n],this.names[n],e);this.component_pattern[n]=Ee(this.parts[n],e)}catch(e){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return false}try{if(typeof e==="object"){o=Oe(o,e,false)}else{o=Oe(o,Te(e,t),false)}}catch(e){return false}let s;for(s of je){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return}try{if(typeof e==="object"){o=Oe(o,e,false)}else{o=Oe(o,Te(e,t),false)}}catch(e){return null}let s={};if(t){s.inputs=[e,t]}else{s.inputs=[e]}let a;for(a of je){let e=this.regexp[a].exec(o[a]);if(!e){return null}let t={};for(let[o,s]of this.names[a].entries()){if(typeof s==="string"||typeof s==="number"){let a=e[o+1];t[s]=a}}s[a]={input:o[a]??"",groups:t}}return s}static compareComponent(e,t,o){const s=(e,t)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(e[o]<t[o])return-1;else if(e[o]===t[o])continue;else return 1}return 0};const a=new N(3,"","","","",3);const i=new N(0,"","","","",3);const n=(e,t)=>{let o=0;for(;o<Math.min(e.length,t.length);++o){let a=s(e[o],t[o]);if(a)return a}if(e.length===t.length){return 0}return s(e[o]??a,t[o]??a)};if(!t.component_pattern[e]&&!o.component_pattern[e]){return 0}if(t.component_pattern[e]&&!o.component_pattern[e]){return n(t.parts[e],[i])}if(!t.component_pattern[e]&&o.component_pattern[e]){return n([i],o.parts[e])}return n(t.parts[e],o.parts[e])}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=De}const Me='.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 $e=Me;const Re=class{constructor(t){e(this,t);this.smoothlyRoomSelected=o(this,"smoothlyRoomSelected",7);this.smoothlyRoomLoaded=o(this,"smoothlyRoomLoaded",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.smoothlyRoomLoaded.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(e,t){this.selected=e;if(e)this.smoothlyRoomSelected.emit({history:!!(t===null||t===void 0?void 0:t.history)})}clickHandler(e){if(!e.metaKey&&!e.ctrlKey&&e.which!=2&&e.button!=1){e.preventDefault();this.setSelected(true)}}render(){return t(s,{key:"c8a335193ee0aa36091178413f9c66aeedb8c055"},t("li",{key:"14789089daba4c466cfae4f85d4cc00f713d2f7d"},t("a",{key:"5fa57305ed064e5c797b19bbdb21bb80798e5bd7",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:e=>this.clickHandler(e)},this.icon&&t("smoothly-icon",{key:"8e460965cfcf0be0dbc4ec3b0a5f2fac870c8847",name:this.icon}),this.label&&t("span",{key:"df177b3036464c00da7b305b59425e2421809adc",class:"label"},this.label))),t("div",{key:"8efc7494ce11d1260c32aba361d72a5a51cac010",ref:e=>this.contentElement=e},this.content&&t("smoothly-lazy",{key:"2bd422f0c20d4e56746dce0d120c578171a70a57",content:this.content}),t("slot",{key:"d45b27b47bd8bdb85fed17fc196d53eb33234bd8"})))}};Re.style=$e;const Pe=".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 Ne=Pe;const He=class{constructor(t){e(this,t);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){var e;this.scrollableParent=l.findParent(this.element);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",(()=>{var e,t;this.visible=((t=(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTop)!==null&&t!==void 0?t:0)>20}))}render(){const e={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return t(s,{key:"d58ae307b6f213cac17096127f4f02f89261134e",style:e,onClick:()=>{var e;return(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTo({top:0,left:0,behavior:"smooth"})}},t("smoothly-icon",{key:"ced3df0d986862792b4233ab646aa39acfbf5276",name:"caret-up-outline"}))}get element(){return a(this)}};He.style=Ne;const Fe="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Ue=Fe;const Ye=class{constructor(t){e(this,t);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(e){if(this.visible)this.open=!this.open}resizeHandler(){const e=window.matchMedia(this.mediaQuery).matches;if(e!=this.history){if(e){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=e}render(){return t(s,{key:"6e32b13474959bdbd15eb7be2339e1e14f109d33"},t("span",{key:"93fc4c98a838d5a37f5df7ac675e201b9c017cfd",class:"burger"},t("smoothly-icon",{key:"6c11e78a8e1ba2180ec15117a5affa8bcd52f4bd",name:"menu"})))}get element(){return a(this)}static get watchers(){return{open:["openChanged"]}}};Ye.style=Ue;const We=({disabled:e,type:o,link:s},a)=>e&&(s||o=="link")?t("slot",null):o=="link"?t("a",{href:s,onClick:!s||!Ve(s)?undefined:e=>(e.preventDefault(),I(Be(s)))},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):o=="download"?t("a",{href:s,target:"_blank",download:true},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):t("button",{disabled:e},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"}));function Be(e){let t;if(e.startsWith(window.location.origin))t=new URL(e).pathname;else if(e.match(/^\//))t=new URL(e,window.location.origin).pathname;else t=new URL(`${window.location.pathname.replace(/\/+$/,"")}/${e}`,window.location.origin).pathname;return t}function Ve(e){return new URL(e,window.location.origin).origin==window.location.origin}const Ge='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--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(--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;--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(--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 Ke=Ge;const Ze=class{constructor(t){e(this,t);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.link=undefined}render(){return t(We,{key:"510dea725bd1a1d8e014d4d3f7657e14eaf4dda0",disabled:this.disabled,type:this.type,link:this.link},t("slot",{key:"67e8771b5cea6002ec4d5a50da271a16008b6326"}))}};Ze.style=Ke;const qe=".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 Je=qe;const Xe=class{constructor(t){e(this,t);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(e){if(this.clickTimeStamp&&e.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=e.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return t(s,{key:"f6fef52919cece13e8cefc87e6876375057a0f07",warning:this.clickTimeStamp},t("smoothly-button",{key:"15ba285763f7e51d255144bf7b4a74c4e12ecc22",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("smoothly-icon",{key:"ab590fe61a83cede946727532183e7fa3f3420bf",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),t("smoothly-button",{key:"7e2f4b3056cea2eacba62a7e0ebaaa967ab98f4d",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("slot",{key:"516023c4ad2d3080f49284d5f6ae9b299954c977"})))}};Xe.style=Je;const Qe="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 et=Qe;const tt=class{constructor(t){e(this,t)}render(){return[t("h2",{key:"3c8025ac2be655262bcd2b450a7bf231a4fb4895"},"Buttons"),t("section",{key:"7135bb7d07661d9c7feef8b28bd17f0cc2c290c2"},t("h4",{key:"a15d2adbce40601099357e61ceb47627f491e820"},"Confirm button (two clicks)"),t("div",{key:"ae1862a69fa8a949b3eb4338fcd42db23f33e0ea"},t("smoothly-button-confirm",{key:"c2408dce7880cb2c97feb9abf74cfe23293d9e8a",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),t("smoothly-button-confirm",{key:"b933c3bfcc21591ea587c022be60b5dfa83d29dd",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},t("smoothly-icon",{key:"bb53ab8ab65c37b896d4d8889187fbaf1453b6aa",name:"checkmark-outline",size:"tiny"})),t("smoothly-button-confirm",{key:"29e5f6c63362ec0f2d67212ec119fb1527cf0715",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},t("smoothly-icon",{key:"5503b6db201faf2fc6756efb8eb7eed61f4e99b3",name:"trash-outline",size:"tiny",fill:"outline"}))),t("h4",{key:"ff82842ee1489a963ff6e609496210f1551c96d2"},"Toggle button"),t("smoothly-toggle",{key:"6222a1678c626c55914eac351c85d72a7f34baf9"},t("smoothly-icon",{key:"8bac18e6a2e093b6b3351e213f80f8659cf2bfad",name:"card",fill:"solid",slot:"icon-slot"})),t("smoothly-toggle",{key:"1f6fb978ecb57512a2edb0e827f3f755b9fed7b3"},t("smoothly-icon",{key:"92e78f07a80098c87db14a753ee185bbb4787965",name:"briefcase",slot:"icon-slot"})),t("smoothly-toggle",{key:"9dd282964fd8c821f9eaa4835a94ee46792160fd"},t("smoothly-icon",{key:"27fde3eb695917bb2aa80166deb3f79763672615",name:"airplane",slot:"icon-slot"})),t("smoothly-toggle-switch-demo",{key:"8142bb42ee3d41d537aaf9881499d8c14ae636ab"}),t("h4",{key:"8bf7ce023276823e238dc778ea7de087227b3c55"},"Links with icons"),t("smoothly-button",{key:"5dc5c52e56653c38b24653f8a09492b657a52812",type:"link"},t("smoothly-icon",{key:"bd37a7612e50a5b46a463cb33fcb3d3db4984fdc",name:"checkmark-circle",slot:"start"}),"type link"),t("smoothly-button",{key:"8c88fe90275d89b4d9266292ee5dfe2c89189453",type:"button",color:"warning",fill:"default"},t("smoothly-icon",{key:"7d0f38f8def892c6a70f94cfae60c97379f97a19",name:"call",slot:"start"}),t("a",{key:"c9a545939c8c69a936d7234f667a38304475ce29",href:"https://google.com"},"link")),t("smoothly-button",{key:"19ad20237f00b0fc3be118342479c542172aac85",link:"https://google.com",type:"link"},t("smoothly-icon",{key:"9417f3deb9468f0ec67b5e6f2e691d75237dfd8b",name:"arrow-forward",slot:"end"}),"link + type link"),t("h4",{key:"431e11211e7388a31e74c05c872f1225da3a8f2d"},"Size and Color test"),t("smoothly-button",{key:"e06b07125a4809a2fbfba8b663e7df05f2cafe2a",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),t("smoothly-button",{key:"4e6e0cd9552783605c85c0179ceb9867073d52f2",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),t("smoothly-button",{key:"86e387b350d60cf3bf568aab93a4f87351556b03",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),t("smoothly-button",{key:"81ae2d506757e6d6aefa22389b27cf52115b0cd6",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),t("smoothly-button",{key:"8e54050a99f8373f550dc225ec562415d6a28341",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),t("smoothly-button",{key:"73fff1e9835ea73331f883f877b330ffc92366e2",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),t("smoothly-button",{key:"38c004df8478e18cfaadeafb000d566e618cd4ce",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),t("smoothly-button",{key:"423bc99ba52358b5fab7d023926c13d3d4147f79",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),t("smoothly-button",{key:"66f6cfaa814db14e2eb4dc58ff61d3f3e5df6407",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),t("h4",{key:"e8ab771bcfd1cb19d506768c70bd1489c3a63612"},"Expand examples"),t("smoothly-button",{key:"c33ba658c35a6d638885657a10b8355c1a39cad8",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),t("smoothly-button",{key:"893978e950151a1f3bd34fa4e4d67be88a703f94",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),t("h4",{key:"7ca51c36f0f7795529b768ff164fe897a545a503"},"Fill examples"),t("div",{key:"352da5da95852f703b34102dacd5056e96d49d2f"},t("smoothly-button",{key:"11060ec131da8694e760f9659ed298ff064bd02c",shape:"rounded",color:"primary",fill:"solid"},t("smoothly-icon",{key:"c1720e101a57dd3d3c6142ff00d7b6d3050b93ce",name:"checkmark-circle",slot:"start"}),"Fill Solid"),t("smoothly-button",{key:"a04d9f0204302610c9394e95bf954764fe8eaf8c",shape:"rounded",color:"secondary",fill:"outline"},t("smoothly-icon",{key:"d6dc32cc36c6f801abf35271167d2bca787faea3",name:"checkmark-circle",slot:"start"}),"Fill Outline"),t("smoothly-button",{key:"ffd1db87eaeb7e12f983146449be5d79e7de2b53",shape:"rounded",color:"tertiary",fill:"clear"},t("smoothly-icon",{key:"15086ae92c84b20973d964c699b219cca193fd6d",name:"checkmark-circle",slot:"start"}),"Fill Clear"),t("smoothly-button",{key:"461519344c8a5024d6b0dce79171375645abbdf8",size:"icon",shape:"rounded",color:"success",fill:"solid"},t("smoothly-icon",{key:"1068fe90e108438f28c66f8f4c6b2a6f203120df",name:"basketball"}))),t("h4",{key:"8e09f401d9ec18825e5b248cac01bddbf10ad95b"},'Buttons with Icon in "start"'),t("div",{key:"d17091668a8b535291fe14b7fb5fa64bcee3d77d"},t("smoothly-button",{key:"7fbcf5e63dfa6370f6ea8db63fe23eaafdf92d56",shape:"rounded",fill:"solid",color:"warning"},t("smoothly-icon",{key:"43da748cdca6199f9b0d677ec26a6ed14349522e",name:"checkmark-circle",slot:"start"}),"Check"),t("smoothly-button",{key:"dc64fcac7f381493149bd161dc78fa0b75d1e01f",shape:"rounded",fill:"solid",color:"secondary"},t("smoothly-icon",{key:"b64e9f855ee14612b83a4d6d320247056825e85a",name:"basketball",slot:"start"}),"Check"),t("smoothly-button",{key:"f714f8a9a143d68077a10e9bcc3008aebe34b931",shape:"rounded",fill:"solid",color:"success"},t("smoothly-icon",{key:"b39275e626a28eceb0d6c34b1781f175cf012b2d",name:"call",slot:"start"}),"Check"),t("smoothly-button",{key:"3c744c78969e58dbff1efadd767c59353a261a3b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"64aa5126a00bd7e0c157defe25e0c0a636f6a524",name:"call"})),t("smoothly-button",{key:"a5fff4c066a80e3e1b592b76facee2bb4bba2083",size:"flexible",fill:"solid",color:"success"},t("smoothly-icon",{key:"a3d95e518c35e3f4e508d303dad7d1b40c55319a",name:"airplane"}))),t("h4",{key:"308a6bfd84cfc8466d3df9900b39577edd0d58de"},'Buttons with Icon in "end"'),t("smoothly-button",{key:"d2a76de598220adf8083e951bc2694d81643c833",fill:"solid",color:"light"},"Go Forward",t("smoothly-icon",{key:"878b5626becbb010ac6b8556251fe51b0360cf22",name:"arrow-forward",slot:"end"})),t("h4",{key:"94f535345d7687b50d2d07cc3d61b24ca18ed4a0"},"Test for icon button"),t("div",{key:"9a3da368b7c537da7f95d60d75509940d462329e"},t("smoothly-button",{key:"065d688ae55163481d40f96e12c8e917360fc05b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"758c53a3eae336fbf8d3d7270236e4105ed532d4",name:"call"})),t("smoothly-button",{key:"32b14031344f9c74984ae1d8da0715b0b2b76be0",size:"icon",shape:"rounded",color:"warning",fill:"solid"},t("smoothly-icon",{key:"8e1988d9199e234f1b206d81fc69457c0461edf0",name:"search-outline"})),t("smoothly-button",{key:"16d4c1196b3b9f39777649f5047e5024624367a3",size:"icon",shape:"rounded",color:"secondary"},t("smoothly-icon",{key:"f217f1893799b98be1aee4d07f91766e791d5a6b",name:"checkmark-circle"}))),t("h4",{key:"07490863a687effc3cce1e96b730cb73441470e5"},"Link examples"),t("div",{key:"8d551baa54233f19b6829cbe6bd83498c2a8cc33"},t("smoothly-button",{key:"6eee7e1bc81598a59034ea1677795e0552b62327",type:"link"},"type link"),t("smoothly-button",{key:"c9121104f5847dc29da2bf88f09d8c7bab43ffbc",type:"button",fill:"clear"},t("a",{key:"b8cc19e6bd19dd64138d909e3a7e2a966c1ba8dd",href:"https://google.com"},"link")),t("smoothly-button",{key:"d47a8cb6b0f0102411f7badf1829d8d1c7ffd66c",link:"https://google.com",type:"link"},"link + type link")),t("h4",{key:"5468594fd4858fe83b593dac3e1da0a0982182bf"},"Disabled buttons"),t("div",{key:"cd4000d7596bc837b5735e72ac50a047f985244b"},t("smoothly-button",{key:"cd0fae2e3e985640c3cc8a89e34ef7c5c84c55d6",disabled:true,fill:"solid",color:"secondary"},"Disabled"),t("smoothly-button",{key:"72ed13dfb8bc8262daab63047dfb455f1fb602f7",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),t("smoothly-back-to-top",{key:"2ec8649e3e567d6875b2c6a07125bdebd844786a"})]}};tt.style=et;function ot(e){const t=new Date(e);t.setDate(1);let o=-((t.getDay()+6)%7)+1;const s=[];for(let t=0;t<6;t++){const a=[];for(let t=0;t<7;t++){const t=new Date(e);t.setUTCDate(o++);a.push(S.create(t))}if(t<5||S.firstOfMonth(a[0])==S.firstOfMonth(e))s.push(a)}return s}function st(){const e=new globalThis.Date;e.setDate(e.getDate()-e.getDay()+1);const t=[];for(let o=0;o<7;o++){t.push(e.toLocaleString(undefined,{weekday:"short"}));e.setDate(e.getDate()+1)}return t}function at(e){const t=new globalThis.Date(e);const o=[];for(let s=0;s<12;s++){t.setMonth(s,28);const a=S.create(t);o.push({date:a,name:t.toLocaleString(undefined,{month:"long"}),selected:a.substr(0,7)==e.substr(0,7)})}return o}function it(e,t,o){const s=new globalThis.Date(e);const a=t?S.getYear(t):(new Date).getFullYear()-50;const i=o?S.getYear(o):(new Date).getFullYear()+50;const n=[];for(let t=a;t<=i;t++){s.setFullYear(t);const o=S.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==e})}return n}const nt='.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-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-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 lt=nt;const rt=class{constructor(t){e(this,t);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(e){this.smoothlyStartChange.emit(e)}onEnd(e){this.smoothlyEndChange.emit(e)}onClick(e){this.smoothlyValueChange.emit(this.value=e);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=e;else{if(this.start&&e>this.start)this.end=e;else this.start=e}}!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(e){if(this.doubleInput&&this.clickCounter%2==1){if(e<this.frozenDate){this.start=e;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=e}}}withinLimit(e){return(!this.min||e>=this.min)&&(!this.max||e<=this.max)}render(){var e,o,s;return t(i,{key:"01266a8f05c6f56bef69d4a461a92da65eb74175"},t("smoothly-input-month",{key:"3a848417dc83bc7ad2a4b4014abb3d0e18b306ff",name:"month",value:(e=this.month)!==null&&e!==void 0?e:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:e=>{e.stopPropagation();"month"in e.detail&&typeof e.detail.month=="string"&&(this.month=e.detail.month)}},t("div",{key:"2a07d690ad6f4b3ac5e659d9529e0809ad166ae4",slot:"year-label"},t("slot",{key:"969b558389bae096e008ab054f984054f384d36f",name:"year-label"})),t("div",{key:"d83fb0f82ab0ee7dd97e2b9dde36cdde2fde2091",slot:"month-label"},t("slot",{key:"aba0c170d3f5eadd461a0cdb12f8825edf429e74",name:"month-label"}))),t("table",{key:"437adf99b1dffa736954ab87eaa7b8639d139c91"},t("thead",{key:"d2ac8275277c4dc17946a1e8da12a170165889c3"},t("tr",{key:"a58f3d8ac02c850bb25973d8eaf3891cb8a79788"},st().map((e=>t("th",null,e))))),ot((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:S.now()).map((e=>t("tr",null,e.map((e=>{var o,s,a,i;return t("td",{tabindex:1,onMouseOver:()=>this.withinLimit(e)?this.onHover(e):undefined,onClick:this.withinLimit(e)?()=>this.onClick(e):undefined,class:{selected:e==this.value||this.doubleInput&&(e==this.start||e==this.end),today:e==S.now(),currentMonth:S.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:S.now())==S.firstOfMonth(e),dateRange:this.doubleInput&&e>((a=this.start)!==null&&a!==void 0?a:"")&&e<((i=this.end)!==null&&i!==void 0?i:""),disable:!this.withinLimit(e)}},e.substring(8,10))})))))))}get element(){return a(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};rt.style=lt;const ct=".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 dt=ct;const ht=class{constructor(t){e(this,t);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(e){if(r.is(e.detail)&&e.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return t("section",{key:"895d01d3dc41982402c51de51028bd6f775fc83a"},t("div",{key:"a10dddff73f3afde845bed759770b71c9fe87d17",class:"header"},this.closable&&t("smoothly-trigger",{key:"42957dd2cfa11eb08041897a84073d93e87d7f11",fill:"clear",name:"close"},t("smoothly-icon",{key:"245fed623b099c0c7d8aff0c2a098c5730329a3d",name:"close-circle",fill:"solid",color:this.color})),this.header?t("h1",null,this.header):t("slot",{name:"header"})),t("div",{key:"0ad2e35ade6a11497a69b5e6c63be9f05de79c78",class:"content"},t("slot",{key:"0af86e9eda2be05845a2653a1e97c60848911e03"})))}render(){return t(s,this.hostData(),this.__stencil_render())}};ht.style=dt;const bt=class{constructor(t){e(this,t)}render(){return t("smoothly-dialog",{key:"d7b88047c49add95c1816b1552bc9c30276ba08b",color:"default",closable:true},t("smoothly-frame",{key:"56aedefead747913a72d795c0149342ddc45c5bb",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}}))}};function mt(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}function yt(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function ut(e,t,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?yt(e,t,s):mt(e,t,s)}var ft;(function(e){function t(e){return e.direction=="backward"?e.start:e.end}e.getCursor=t;function o(e){return e.direction!="backward"?e.start:e.end}e.getStalker=o})(ft||(ft={}));var pt;(function(e){function t(e){return{value:e.value,selection:{start:e.selection.start,end:e.selection.end,direction:e.selection.direction},remainder:e.remainder}}e.copy=t})(pt||(pt={}));class gt{constructor(e){this.value=e.value;this.selection={start:e.selection?.start,end:e.selection?.end,direction:e.selection?.direction}}get(e,t=1){return this.value.substring(e,e+t)}is(e,...t){const o=this.get(e);return t.some((e=>o==e))}isDigit(e){const t=this.get(e);return t>="0"&&t<="9"}match(e){return this.value.match(e)}replace(e,t,o){let s;if(typeof e=="string"&&typeof t=="string"){let o;s=this;while((o=s.value.indexOf(e))>-1)s=s.replace(o,o+e.length,t)}else if(typeof e=="number"&&typeof t=="number"){const a={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";a.value=this.value.slice(0,e)+o+this.value.slice(t,this.value.length);if(this.selection.start>=t)a.selection.start=this.selection.start+o.length-t+e;else if(this.selection.start>e&&this.selection.start<t)a.selection.start=Math.min(this.selection.start,e+o.length);if(this.selection.end>=t)a.selection.end=this.selection.end+o.length-t+e;else if(this.selection.end>e&&this.selection.end<t)a.selection.end=Math.min(this.selection.end,e+o.length);s=new gt(a)}return s||this}insert(e,t){return this.replace(e,e,t)}append(e){return this.insert(this.value.length,e)}prepend(e){return this.insert(0,e)}suffix(e){return new gt({value:this.value+e,selection:this.selection})}delete(e,t){let o;if(!this.value)o=this;else if(typeof e=="string"){let t;o=this;while(e&&(t=o.value.indexOf(e))>-1)o=o.delete(t,t+e.length)}else o=this.replace(e,t||e+1,"");return o}truncate(e){return this.value.length>=e?this.delete(e,this.value.length):this}pad(e,t,o){let s=this;while(e>s.value.length+t.length)s=s.insert(o,t);if(e>s.value.length)s=s.insert(o,t.substring(0,e-s.value.length));return s}padEnd(e,t){return this.pad(e,t,this.value.length)}padStart(e,t){return this.pad(e,t,0)}toLower(){return this.map((e=>e.toLowerCase()))}toUpper(){return this.map((e=>e.toUpperCase()))}map(e){let t=this;let o=0;for(let s=0;s<this.value.length;s++){const a=e(this.get(s),s);t=t.replace(o,o+1,a);o+=a.length}return t}static copy(e){return new gt({...e})}static create(){return new gt({value:"",selection:{start:0,end:0}})}static modify(e){return new gt(typeof e=="string"?{value:e,selection:{start:e.length,end:e.length}}:e)}}var kt;(function(e){function t(e,t,o){let c=pt.copy(e.unformat(gt.copy(t)));if(t.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(t.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)&&t?.type!="password")c=s(e,t,o);else if(["Delete","Backspace"].includes(o.key)&&t?.type!="password")c=a(e,t,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))i(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);e.allowed(o.key,c)&&r(c,o.key)}}return e.format(gt.copy(c))}e.apply=t;function o(e,t,o){const s=pt.copy(e.unformat(gt.copy(t)));r(s,o);return e.format(gt.copy(s))}e.paste=o;function s(e,t,o){let s=ft.getCursor(t.selection);let a=ft.getStalker(t.selection);s=ut(t.value,s,o.key=="ArrowLeft"?"backward":"forward");a=o.shiftKey?a:s;return pt.copy(e.unformat(gt.copy({...t,selection:{start:Math.min(a,s),end:Math.max(a,s),direction:a<s?"forward":a>s?"backward":"none"}})))}function a(e,t,o){const s=ft.getCursor(t.selection);const a=ut(t.value,s,o.key=="Backspace"?"backward":"forward");const i=pt.copy(e.unformat(gt.copy({...t,selection:{start:Math.min(s,a),end:Math.max(s,a),direction:"none"}})));i.value=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.selection.end=i.selection.start;return i}function i(e,t){let o=ft.getCursor(e.selection);let s=ft.getStalker(e.selection);o=t.key=="Home"?0:t.key=="End"?e.value.length:e.selection.start==e.selection.end||t.shiftKey?Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length):t.key=="ArrowLeft"?e.selection.start:e.selection.end;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)}function n(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}function l(e){r(e,"")}function r(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}})(kt||(kt={}));const vt={};function xt(e,t){vt[e]=t}function wt(e,...t){const o=vt[e];return o&&o(t)}function St(e,t,...o){const s=wt(t,...o);return s?s.format(gt.modify(s.toString(typeof e=="string"?Ct(e,t,o):e))).value:""}function Ct(e,t,...o){const s=wt(t,o);return s?s.fromString(s.unformat(gt.modify(e)).value):undefined}class zt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"text",inputmode:"numeric",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(e){return e}allowed(e,t){return t.value.length<3&&e>="0"&&e<="9"}}xt("card-csc",(()=>new zt));class jt{constructor(){this.partialFormat=this.format}toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString().padStart(2,"0")+e[1].toString().padStart(2,"0"):""}fromString(e){return typeof e=="string"&&e.length==4?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(2))]:undefined}format(e){let t=e;if(e.value.length>0&&!e.is(0,"0","1"))t=t.prepend("0");if(t.value.length>1)t=t.insert(2," / ");return{...t,type:"text",inputmode:"numeric",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(e){return e.delete(" / ")}allowed(e,t){return t.value.length<4&&e>="0"&&e<="9"}}xt("card-expires",(()=>new jt));class _t{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){const t=Tt(e.value);const o=e.map(((e,o)=>(o+1<t.length[0]&&t.spaceIndexes.includes(o)?" ":"")+e));return{...o,type:"text",inputmode:"numeric",autocomplete:"cc-number",length:t.length.slice(1),pattern:t.verification,classes:["issuer-"+t.icon]}}unformat(e){return e.delete(" ")}allowed(e,t){const o=Tt(t.value);return e>="0"&&e<="9"&&t.value.length<o.length[0]}}xt("card-number",(()=>new _t));function Tt(e){let t={...It,spaceIndexes:e.length==14?[4,10]:It.spaceIndexes};for(const o in Ot)if(Object.prototype.hasOwnProperty.call(Ot,o)&&Ot[o].identification.test(e)){t={...It,name:o,...Ot[o]};break}return t}const It={name:"unknown",verification:/^\d{19}$/,spaceIndexes:[4,8,12],identification:/^\d/,length:[16,16,19],icon:"generic"};const Ot={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 Lt;(function(e){function t(e){let t;switch(e){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":t="dd/mm/YYYY";break;case"en-US":t="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":t="dd.mm.YYYY";break;case"hi-IN":case"en-IN":t="dd-mm-YYYY";break;default:t="YYYY-mm-dd";break}return t}e.fromLocale=t;function o(e){let t;switch(e){case"dd/mm/YYYY":t="en-GB";break;case"mm/dd/YYYY":t="en-US";break;case"dd.mm.YYYY":t="de-DE";break;default:t="sv-SE";break}return t}e.toLocale=o;function s(e){return typeof e=="string"&&(e=="YYYY-mm-dd"||e=="dd/mm/YYYY"||e=="dd.mm.YYYY"||e=="mm/dd/YYYY")}e.is=s})(Lt||(Lt={}));class At{constructor(e){this.separator=e}partialFormat(e){const t=this.format(e);return{...t,remainder:this.formatString.slice(t.value.length)}}unformat(e){return e.delete(this.separator)}validMonth(e,t,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(t),0).getDate()>=Number.parseInt(e)}}const Et={};function Dt(e,t){Et[e]=t}xt("date",(e=>{const t=e&&e.length>0?e[0]:undefined;const o=Lt.is(t)?t:Lt.fromLocale(t);const s=Et[o]??Et["YYYY-mm-dd"];return s()}));class Mt extends At{constructor(e){super(e);this.formatString=`DD${this.separator}MM${this.separator}YYYY`}toString(e){return S.is(e)&&e.length==10?[e.substring(8,10),e.substring(5,7),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e?.length==8?`${e.substring(4,8)}-${e.substring(2,4)}-${e.substring(0,2)}`:undefined;return S.is(t)?t:undefined}format(e){let t=e.delete(this.separator);if(t.get(0,1)>"3")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>"1")t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,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(e,t){return t.selection.start==1&&t.value[0]=="3"?e>="0"&&e<="1":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==2?e>="0"&&e<="9"&&(e=="0"||e=="1"||this.validMonth(t.value.substring(0,2),e)):t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value[2]+e):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value.substring(2,4),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9"}}Dt("dd.mm.YYYY",(()=>new Mt(".")));Dt("dd/mm/YYYY",(()=>new Mt("/")));Dt("dd-mm-YYYY",(()=>new Mt("-")));class $t extends At{constructor(e){super(e);this.formatString=`MM${this.separator}DD${this.separator}YYYY`}toString(e){return S.is(e)&&e.length==10?[e.substring(5,7),e.substring(8,10),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e.length==8?`${e.substring(4,8)}-${e.substring(0,2)}-${e.substring(2,4)}`:undefined;return S.is(t)?t:undefined}format(e){let t=e.delete(this.separator);if(t.get(0,1)>"1")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>(t.get(0,2)=="02"?"2":"3"))t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,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(e,t){const o=t.selection.start==1&&t.value[0]=="1"?e>="0"&&e<="2":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value[2]+e,t.value.substring(0,2)):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(2,4),t.value.substring(0,2),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9";return o}}Dt("mm/dd/YYYY",(()=>new $t("/")));class Rt extends At{constructor(e){super(e);this.formatString=`YYYY${this.separator}MM${this.separator}DD`}toString(e){return typeof e!="string"?"":e}fromString(e){const t=e?.length==8?`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`:undefined;return S.is(t)?t:undefined}daysInMonth(e){const t=`${e.substring(0,4)}-${e.substring(4,6)}-01`;return S.is(t)?+S.lastOfMonth(`${e.substring(0,4)}-${e.substring(4,6)}-01`).substring(8,10):31}format(e){let t=e.delete(this.separator);if(t.value.length>3){t=t.insert(4,this.separator);if(t.get(5,1)>"1")t=t.insert(5,"0");if(t.value.length>6){t=t.insert(7,this.separator);if(t.get(8,1)>this.daysInMonth(e.value).toString().substring(0,1))t=t.insert(8,"0")}}return{...t,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(e,t){const o=this.daysInMonth(t.value);return t.selection.start==5&&t.value[4]=="0"?e>="1"&&e<="9":t.selection.start==5&&t.value[4]=="1"?e>="0"&&e<="2":t.selection.start==7&&t.value[6]=="0"?e>="1"&&e<="9":t.selection.start==7&&(t.value[6]=="2"&&o<30||t.value[6]=="3")?e>="0"&&e<=o.toString().substring(1):t.selection.start<8&&e>="0"&&e<="9"}}Dt("YYYY-mm-dd",(()=>new Rt("-")));class Pt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){let t=e.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(t?.match(/-\d$/))t=t.substring(0,t.length-1)+"0"+t.substring(t.length-1,t.length);t=!t.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:t+o.substring(t.length,o.length);return C.is(t)?t:undefined}format(e){let t=Nt(e);if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))t=t.insert(10," ");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))t=t.replace(11,12,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))t=t.insert(11,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))t=t.insert(11,"23:5");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))t=t.replace(10,13,"00:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))t=t.insert(12,"3:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))t=t.insert(12,"3:5").append(":");if(t.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]$/))t=t.insert(13,":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))t=t.insert(14,"5");if(t.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$/))t=t.insert(16,":");if(t.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]$/))t=t.insert(17,"5");return{...t,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(e){return e}allowed(e,t){return t.value.length<19&&(e>="0"&&e<="9"||e=="-"||e==":"||e=="."||e==" ")}}xt("date-time",(()=>new Pt));function Nt(e,t){let o=e;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Ht(o.value,t))o=o.replace(0,10,Ht("31"+o.value.substring(2,10),t)?"31"+o.value.substring(2,10):Ht("30"+o.value.substring(2,10),t)?"30"+o.value.substring(2,10):Ht("29"+o.value.substring(2,10),t)?"29"+o.value.substring(2,10):Ht("28"+o.value.substring(2,10),t)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!Ht(o.value,t))o=o.replace(0,10,Ht(o.value.substring(0,3)+"31"+o.value.substring(5,10),t)?o.value.substring(0,3)+"31"+o.value.substring(5,10):Ht(o.value.substring(0,3)+"30"+o.value.substring(5,10),t)?o.value.substring(0,3)+"30"+o.value.substring(5,10):Ht(o.value.substring(0,3)+"29"+o.value.substring(5,10),t)?o.value.substring(0,3)+"29"+o.value.substring(5,10):Ht(o.value.substring(0,3)+"28"+o.value.substring(5,10),t)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(e.value.length==10){if(!Ht(o.value)){o=o.replace(0,10,Ht(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":Ht(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":Ht(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":Ht(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return e}}return o}function Ht(e,t){let o;let s;let a;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(3,5));a=parseInt(e.substring(0,2));return o&&s&&a?a>0&&Ft(o,s)>=a:false;case"mm/dd/YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(0,2));a=parseInt(e.substring(3,5));return o&&s&&a?a>0&&Ft(o,s)>=a:false;default:o=parseInt(e.substring(0,4));s=parseInt(e.substring(5,7));a=parseInt(e.substring(8,10));return o&&s&&a?a>0&&Ft(o,s)>=a:false}}function Ft(e,t){let o;switch(t){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 Ut{constructor(){this.partialFormat=this.format}toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString()+" / "+e[1].toString():typeof e=="number"?e.toString():""}fromString(e){return typeof e=="string"&&e.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(e.length-2))]:typeof e=="string"&&e.match(/\d{1,2}/)?Number.parseInt(e):undefined}format(e){let t=e;if(e.match(/^\d\/$/))t=e.replace(1,2," / ");else if(e.match(/^\d{1,2}\s$/))t=e.replace(e.value.length-1,e.value.length," / ");else if(e.match(/^[\D.]+\/[\D.]+$/))t=e.delete(0,e.value.length);else if(e.match(/^[\D.]+\/[\D.]+\d$/))t=e.delete(0,e.value.length-1);else if(e.match(/^[\D.]+\/[\D.]+\d\d$/))t=e.delete(0,e.value.length-2);else if(e.match(/^[\D.]+\//))t=e.delete(0,e.value.search("/")+1);else if(e.match(/^\d\d\/$/))t=e.replace(2,3," / ");else if(e.match(/^\d\d\s+\/$/))t=e.delete(2,e.value.length);else if(e.match(/^\d\s+\/$/))t=e.delete(1,e.value.length);else if(e.match(/^\d\d\s\s+\/\s*$/))t=e.replace(2,e.value.length," / ");else if(e.match(/^\d\s\s+(\/\s*)?$/))t=e.replace(1,e.value.length," / ");else if(e.match(/^\d\s\/\s\d\d.+$/))t=e.delete(6,e.value.length);else if(e.value.length>1&&e.value.indexOf("/")<1)t=e.insert(2," / ");else if(e.value.length>1&&e.value.split("/").length>2)t=e.delete(e.value.lastIndexOf("/"));else if(e.value.length==1&&!e.isDigit(0))t=e.delete(0);return{...t,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(e){return e}allowed(e,t){return t.value.length<7&&(e>="0"&&e<="9"||e=="/"||e==" ")}}xt("divisor",(()=>new Ut));class Yt{constructor(){this.separator=":";this.patterns={allowed:/^-?\d*(?::{0,1}[0-5]{0,1}[0-9]{0,1}|[.,]{0,1}[0-9]{0,2})$/,extract:/^(-?)(\d*)([:,.]{0,1})([0-9]{0,2})$/,zeros:/^(-?)(0+)(?:[1-9]|0[,.:]?)/};this.partialFormat=this.format}toString(e){let t;if(!z.is(e))t="";else{const o=z.normalize(e);if(!o.minutes&&!o.hours)t="";else if(this.separator!=":")t=(+z.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)t=o.hours.toString(10);else if(!o.hours&&o.minutes)t=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else t=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return t}fromString(e){let t;const o=e.match(this.patterns.extract);if(!o)t=undefined;else{const[e,s,a,i,n]=o;this.separator=i;if(i==":"){const e={hours:parseInt(a),minutes:parseInt(n)};const o=s?-1:1;t=z.normalize({hours:!Number.isFinite(e.hours)?0:e.hours*o,minutes:!Number.isFinite(e.minutes)?0:e.minutes*o})}else{const o=parseFloat(e.replace(",","."));t=z.normalize({hours:!Number.isFinite(o)?0:o})}}return t}format(e){let t=e;const[,o,s,a]=e.match(this.patterns.extract)??[];if(!s&&a)t=t.insert(o?1:0,"0");const i=t.match(this.patterns.zeros);if(i){const[,e,o]=i;if(o){const s=e?1:0;t=t.delete(s,o.length+s)}}return{...t,type:"tel",pattern:this.patterns.allowed}}unformat(e){const[,,,t]=e.match(this.patterns.extract)??[];if(t)this.separator=t;return e}allowed(e,t){const o=t.value.slice(0,t.selection.start)+e+t.value.slice(t.selection.end);return!!o.match(this.patterns.allowed)}}xt("duration",(()=>new Yt));class Wt{constructor(e){this.settings=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}xt("email",(e=>new Wt(e||{})));class Bt{constructor(e,t){this.settings=e;this.mode=t;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}split(e){let t;let o="";return e.map(((e,s)=>{const a=s!==0&&e===e.toUpperCase()&&isNaN(+e)&&o!==" "&&this.isSymbolAllowed(e)&&t?" "+e:(e==="_"||e==="-")&&o!==" "?" ":e===" "&&o===" "||!this.isSymbolAllowed(e)||!t&&!this.isSymbolLetter(e)&&this.mode!=="code"?"":e;!t&&(t=this.isSymbolLetter(e));this.isSymbolAllowed(e)&&(o=e);return a})).toLower().delete("-").delete("_")}isSymbolLetter(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isSymbolAllowed(e){return this.isSymbolLetter(e)||e>="0"&&e<="9"||e===" "}format(e){const t=this.split(e);let o;switch(this.mode){case"code":o=t.delete(" ");break;case"pascal":case"camel":let s;o=t.map(((e,t)=>{const o=t===0&&this.mode==="pascal"||s?e.toUpperCase():e.toLowerCase();s=e==" ";return o})).delete(" ");break;case"snake":case"attribute":o=t.replace(" ",this.mode==="snake"?"_":"-");break;default:o=e}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(e){return e}allowed(e,t){return this.isSymbolLetter(e)||e>="0"&&e<="9"&&(this.mode=="code"||t.value.length>0)||e=="_"&&this.mode=="snake"&&t.value.length>0||e=="-"&&this.mode=="attribute"&&t.value.length>0}}xt("identifier-code",(e=>new Bt(e||{},"code")));xt("identifier-pascal",(e=>new Bt(e||{},"pascal")));xt("identifier-snake",(e=>new Bt(e||{},"snake")));xt("identifier-camel",(e=>new Bt(e||{},"camel")));xt("identifier-attribute",(e=>new Bt(e||{},"attribute")));class Vt{constructor(e){this.country=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){let t=e;const o=(new Date).getFullYear().toString();if(e.value.length>1&&e.get(0,2)!="19"&&e.get(0,2)!="20")t=t.prepend(e.get(0,2)>o.substring(2,4)?"19":"20");if(t.value.length>=8)t=t.insert(8,"-");return{...t.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(e){return e.delete("-")}allowed(e,t){return t.value.length<13&&e>="0"&&e<="9"}}xt("identity-number",(e=>new Vt(e&&e.length>0?e[0]:undefined)));class Gt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="number"?e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseInt(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t:undefined}format(e){return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}unformat(e){return e}allowed(e,t){return e>="0"&&e<="9"}}xt("integer",(()=>new Gt));class Kt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"password",autocomplete:"current-password"}}unformat(e){return e}allowed(e,t){return true}}xt("password",(()=>new Kt));class Zt{constructor(){this.partialFormat=this.format}toString(e){let t="";if(typeof e=="number"){const o=e.toString().split(".")[1]?.length??2;t=(e*100).toFixed(!o||o<=1?0:o-2)}return t}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t/100:undefined}format(e){return{...e.value?e.suffix(" %"):e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(e){return e.delete(" %")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")}}xt("percent",(()=>new Zt));const qt=[{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 Jt{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){let t=e;if(t.value.startsWith("+")){for(const e of qt)if(t.value.startsWith(e.countryCode))for(let o of e.areaCodes){o=o.substring(1);if(t.value.startsWith(e.countryCode+o)&&!t.value.includes("-"))t=t.insert(e.countryCode.length,"-").insert(e.countryCode.length+1+o.length,"-")}}else{const e=qt[0];for(const o of e.areaCodes)if(t.value.startsWith(o)&&!t.value.includes("-")){t=t.insert(o.length,"-");t=t.delete(0);t=t.insert(0,"-").insert(0,e.countryCode)}}if(t.value.includes("-")){const e=t.value.indexOf("-",t.value.indexOf("-")+1)+1;const o=t.value.substring(e,t.value.length+1).length;switch(o){case 4:t=t.insert(e+2," ");break;case 5:t=t.insert(e+3," ");break;case 6:t=t.insert(e+2," ");t=t.insert(e+5," ");break;case 7:t=t.insert(e+3," ");t=t.insert(e+6," ");break;case 8:case 9:t=t.insert(e+3," ");t=t.insert(e+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;t=t.insert(s+e," ")}}}}return{...t,type:"tel",autocomplete:"tel"}}unformat(e){return e.delete(" ").delete("-")}allowed(e,t){return e>="0"&&e<="9"||t.selection.start==0&&e=="+"&&!t.value.includes("+")}}xt("phone",(()=>new Jt));class Xt{constructor(e){this.country=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){const t=!e.value.includes(" ")&&e.value.length>=4?e.insert(3," "):e;return{...t.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(e){return e.delete(" ")}allowed(e,t){return t.value.length<=5&&e>="0"&&e<="9"}}xt("postal-code",(e=>new Xt(e&&e.length>0?e[0]:undefined)));class Qt{constructor(e){this.currency=e&&typeof e=="object"?e.currency:e;this.toInteger=e&&typeof e=="object"?e.toInteger:undefined}toString(e){return typeof e=="number"?isNaN(e)?"":e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return t!=undefined&&!isNaN(t)?t:undefined}partialFormat(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):gt.copy(e);const o=this.currency&&j.decimalDigits(this.currency);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"onlyLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);return{...t,remainder:this.format(e).value.slice(t.value.length),type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d*)?$")}}format(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):gt.copy(e);const o=this.currency&&j.decimalDigits(this.currency);if(!this.toInteger)t=this.forceDecimalZero(t,o);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"fillAndLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);t=this.appendCurrency(t);return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}forceDecimalZero(e,t){if(!e.value.includes(".")&&t&&(Math.abs(Number.parseFloat(e.value))>=0||e.value=="0"))e=e.suffix(".0");return e}addLeadingIntegerZero(e){const t=e.value&&e.value.includes(".")?e.value.indexOf("."):undefined;if(t==0)e=e.prepend("0");return e}fillDecimalsIfPresent(e,t,o){const s=e.value.indexOf(".");if(s!=-1){const a=s+1+(t??2)-e.value.length;e=a<0?e.truncate(e.value.length+a):o=="fillAndLimit"?e.suffix("0".repeat(a)):e}return e}truncateIntegerZeros(e){const t=e.match(/^[0\s]{2,}/);if(t)e=e.replace(0,t[0].length,"0");return e}addThousandSeparators(e){let t=e.value.includes(".")?e.value.indexOf("."):e.value.length;const o=t<=0?0:Math.ceil(t/3)-1;for(let s=0;s<o;s++){const a=t-(o-s)*3;e=e.insert(a," ");t++}return e}appendCurrency(e){return this.currency&&(e.value.length>1||e.value.length==1&&e.value.charAt(0)!=".")?e.suffix(" "+this.currency):e}unformat(e){return this.currency?e.delete(" ").delete(""+this.currency):e.delete(" ")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")&&(!this.currency||j.decimalDigits(this.currency)!=0)}}xt("price",(e=>new Qt(e&&e.length>0?e[0]:undefined)));class eo{constructor(e){this.settings=e;this.partialFormat=this.format}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}format(e){return{...e,type:"text",...this.settings}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}xt("text",(e=>new eo(e||{})));class to{constructor(){this.partialFormat=this.format}toString(e){return typeof e=="string"?"#"+e:""}fromString(e){return e?"#"+e:undefined}format(e){const t=e.delete("#");return{...t.value?t.prepend("#"):t,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(e){return e.delete("#")}allowed(e,t){return(e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F")&&t.value.length<6}}xt("hex-color",(()=>new to));const oo=".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 so=oo;const ao=class{constructor(t){e(this,t);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 e,o;let s;const a=this.type;switch(a){case"json":s=t("smoothly-display-json",{key:"72260098deaaf8e86824a3c3afb18a8f84e0c017",value:this.value,collapseDepth:this.collapseDepth});break;default:s=St(this.value,a);break;case"email":s=t("a",{key:"2f6c92ae6a5fd6669a55ebf574d4153a8dfba56b",href:"mailto:"+this.value},St(this.value,a));break;case"phone":s=t("a",{key:"2d85accc66c0d4ddfb0054b1a479bad1d03aef24",href:"tel:"+this.value},St(this.value,a,this.country));break;case"postal-code":s=St(this.value,a,this.country);break;case"price":s=St(this.value,a,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(e=wt(this.type,D()))===null||e===void 0?void 0:e.toString(this.value);break;case"duration":s=St(this.value,a)||"0";break;case"date-time":s=this.format?C.localize(this.value,this.format,D()):(o=wt(this.type,D()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[t("div",null,this.label),s]:s}};ao.style=so;const io=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[t("main",{key:"e7e31ea92b4ed1b752e1b36b1834d0f625f67cfd"},t("fieldset",{key:"581f468dda8f2bd82de2c000e4447d5321e9eed6"},t("h2",{key:"87966e476a302a692668bed7e3b3d19115882eb8"},"Smoothly display"),t("dl",{key:"cbcb2f6235ce01e0afeef271c80834c4ae5f3224"},t("dt",{key:"25181e180acc711c3cb77f33b80b73a0610c4486"},"Duration"),t("dd",{key:"83448124de87c9c3feb35c77275ff3fcded5aefa"},t("div",{key:"94230b9ab2b633e70e616cef8637c7ec14e42faf"},t("div",{key:"0eba921df28ca3c86529070be5635a6c65c7d40c"},t("smoothly-display",{key:"d68d7ffda5f4cb3f3be5749050ca40e1b8392d89",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),t("div",{key:"1493a1fcdb128fdcf2ed3cd8531aeb78fb1c1a98"},t("smoothly-display",{key:"5f66a9b3fbbddf42ddedad9d1662337d3f72f7df",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),t("div",{key:"3378de69efaba3bbb6df4552485af2e994070367"},t("smoothly-display",{key:"cdecb32bb23d5c87e913e58ab107fd235c96910e",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),t("div",{key:"db05908dbbf3bab906a3f6df6f88e416fa3422bf"},t("smoothly-display",{key:"a8f32adb32961b3e24436b5c5e8c8a21b65b9901",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),t("div",{key:"a20f84ade97c32a35c6490f8b15f757ec07ed3cc"},t("smoothly-display",{key:"8a3140e45105d3f276fe9fea7ef441ae0d8bd059",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),t("div",{key:"ec59e01cf6a1a57ff8152e1bb2f0ed523b1cec8f"},t("smoothly-display",{key:"dab86834e425d6086d247fcea8bdf2ccf64b96b1",style:{display:"inline"},type:"duration",value:{}})," h"),t("div",{key:"b040a252eb914cfed6e0136c0dfec52f6a92aea3"},t("smoothly-display",{key:"0ddbdae519c07a8d2907bff91b37aec1e08d1002",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),t("dt",{key:"092f01d470ea3a94defbd1a9bf89b03dcba5dd29"},"text"),t("dd",{key:"3819b8f1e424767e1d7e90b8de69990ea2914c69"},t("smoothly-display",{key:"4c902c18d635e3b0f2b3043c2ec5b500b9d07e66",type:"text",value:"text"})),t("dt",{key:"bd037b5ae1014379296aa0d1571b3d65a1e5ed2b"},"postal code"),t("dd",{key:"b35456ca38465589d719261c9daea0ca7806dc81"},t("smoothly-display",{key:"231f37d8cae724a1665ba3af41c483bc88d25bda",type:"postal-code",value:"752 31"})),t("dt",{key:"fde2305262f5ba77f3af9e0fae87c94d2d5dbf20"},"password"),t("dd",{key:"8c2ba8207b52bf849ffa5ac2d36af0a5738d5fd4"},t("smoothly-display",{key:"ee45bffb640e0ccf31d9b634633b0c2cb0285351",type:"password",value:"password"})),t("dt",{key:"d6c8e5c0dba5484cf8dfa114c57dfc36ee424ccb"},"email"),t("dd",{key:"d9b38d1f881646490db89ea50479ee5a82f3985d"},t("smoothly-display",{key:"0f92895923de8cd7c46870fc00374331c588e9a7",type:"email",value:"test@example.com"})),t("dt",{key:"1d044f4869f6aaa9fae4ea4b027bd3028d0026dc"},"price"),t("dd",{key:"a73a15154b8f1b835d8f7d26a7db6ac6fa57e5d7"},t("smoothly-display",{key:"f0f8ad0e46a2f84b6a6171d0ca3008c85da25ad8",type:"price",value:"13.37",currency:"SEK"})),t("dt",{key:"285d7294b63ca9bbf90ff0b7b9b07cd4427770e7"},"price without decimals"),t("dd",{key:"b8af56cc967f7c9e135bbb4a1b42b6e798856004"},t("smoothly-display",{key:"95ba14d11f83ed74037435a8eb59e0aee897ea17",type:"price",value:200,currency:"SEK",toInteger:true})),t("dt",{key:"a2460b0e68a5b7a4debdd765ea767b093a7b4bed"},"price with decimals if they are set, otherwise no decimal"),t("dd",{key:"c8e71e703498e330caffaa2422d400e1d39c3d3f"},t("smoothly-display",{key:"24e22a7d5d01b7082dfd2f9d6f1e1d33fb3aab92",type:"price",value:200.2,currency:"SEK",toInteger:true})),t("dt",{key:"e13f9079f4f938619ecc495456a00bb55839c285"},"price with decimals"),t("dd",{key:"72f7bcc6cc483e00caffcf5e480d298dc7433bc0"},t("smoothly-display",{key:"93efabea58c28b1bc6571acd1d76e474fada9f3e",type:"price",value:200.2,currency:"SEK"})),t("dt",{key:"f47315d9d331b0e44fa1083f70d66b2c52d2c5de"},"percent"),t("dd",{key:"caf1fad0df1ec581e4d10eeb931dca7debe193c7"},t("smoothly-display",{key:"1ac7b0ba18d696e80d932321af360df4dcb40eb8",type:"percent",value:"42"})),t("dt",{key:"57d24776382b532da3be0f5d735f109e7ebc38a6"},"phone"),t("dd",{key:"5d5f4fa27daf47c9c194b13bcaf3b643af3767bc"},t("smoothly-display",{key:"677a57d0535ffc5ba365b96a39be42ee79d10978",type:"phone",value:"0101881108"})),t("dt",{key:"6a18b773e36a3e9a9f6932288d7fc3e92d1cdab8"},"card number"),t("dd",{key:"2c577b2f57bce9f0c37ba2d191ff1093b8d06580"},t("smoothly-display",{key:"ad8e47881cdca3282cc0539ee829304478a145ac",type:"card-number",value:"4111111111111111"})),t("dt",{key:"e7d737ad090cee4f39ab91a600b4d49824d0fa06"},"card expires"),t("dd",{key:"2d532483f5a6347fe1bc381d91e0f21eee3963b8"},t("smoothly-display",{key:"c17999c3906e8ed19ae504796cdb9d8b8a03e04d",type:"card-expires",value:"7/22"})),t("dt",{key:"7db78e190ad8e66ba995ebe940759e0c4d6352e9"},"card csc"),t("dd",{key:"b9fbda14abbf23a1d276bfc98908ce8fde75b4c3"},t("smoothly-display",{key:"d010f0989dcd0511074d705ce4a159f7b5e710c0",type:"card-csc",value:"987"})),t("dt",{key:"b70f323a7ca5701cc8c5cae0b4cb8866001c3c93"},"date"),t("dd",{key:"3d03ff32f1082b228f3496d7350d1723b442cea9"},t("smoothly-display",{key:"5260595387fa3c2b1cf057a4d2287be3d590ba3a",type:"date",value:"2022-07-07"})),t("dt",{key:"ddd622b6a27b9df4f8aff1bc81859acf2607a446"},"date time"),t("dd",{key:"3580d27a731265f31a461b711e259d51f5f04c78"},t("smoothly-display",{key:"87269902b733eeee0d3176940ac585a05d7960be",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),t("dd",{key:"a622179096f208403250b108ae5ed6921fb1ede5"},t("smoothly-display",{key:"b069bc49fb68420f78f98a8afebe53ba594276d8",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"})),t("dd",{key:"35ebf02ee974dbfad74e11807d466a44d7dab651"},t("smoothly-display",{key:"e583e366e9cb87e8bf5bf6746ac1ed1982c19260",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"97a46b2e8748325431b1d3afd0476e3680781073"},t("smoothly-display",{key:"23bc78ca6a281cfb8b7d6604b7cfc8167c993f9b",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"aa5b12abeade5d25410bbadd79c24b2b8513c7b6"},t("smoothly-display",{key:"02d95bd64d06434862a5b173444664772085e60b",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"4768e4cc6d7331de78be1df17d2cb18730c8702f"},t("smoothly-display",{key:"e8ca4320e1f7f508b1117f55e2dab8c3f4cbf86c",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"04ecdbb2bd48b5cab09b237e526fe756beec527a"},t("smoothly-display",{key:"d115a6ddfba6bc4b7d5043a35ac135867d4197a4",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"})),t("dt",{key:"58cbda2d543ea346b2978251302dab8658bac60e"},"Display JSON"),t("dd",{key:"de862323b443aef9c4cb0d010aeae3a500e21811"},t("smoothly-display-demo-json",{key:"f37649a3f492ff36e0e47a89cfca41be88128e14"})))),t("h2",{key:"cd3c21b3baae669f14febc93e698d30cab5897b3"},"With labels"),t("dd",{key:"ae206d6ab12ff7229346a91b4b25b5b6d0841e8a"},t("smoothly-display",{key:"005821b1b1fc672b878e62cb2df51f77744ae629",label:"Today",type:"date",value:S.now()}),t("smoothly-display",{key:"5cd373c8e511ed140fc60f6cafbb435abcbf7da4",label:"Total amount",type:"price",currency:"SEK",value:6789}),t("smoothly-display",{key:"dfa7d3e1c59edd780b0097d8b2fa1b69a100a076",label:"Total amount",type:"price",currency:"GBP",value:678.9}),t("smoothly-display",{key:"59a2dabebe70950c5eb040fb330c45aa65da342e",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),t("fieldset",{key:"2170a3fa7a27b29fb7492b184358dd821c271050"},t("h2",{key:"1f8b40d2ec4209b128b26120825bce734e69b564"},"Test of different kinds of notifier"),t("button",{key:"70b9b22b9f6db72b67ec932d8b6eb55e57cc7911",onClick:()=>this.noticeWarning(O.warn("This is a test warning notice."))},"warning"),t("button",{key:"a844297ef5b7e62e84ade4f9bfe80fe94c65b048",onClick:()=>this.noticeWarning(O.succeeded("This is a test success notice."))},"success"),t("button",{key:"d11839578ed84c2cbe7fc1569e9e744a543f0174",onClick:()=>this.noticeWarning(O.failed("This is a test danger notice."))},"danger"),t("button",{key:"e7fa70e00831f203985c3a10bd9cdd5be2f994e9",onClick:()=>this.noticeWarning(O.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),t("button",{key:"ee5d0372d0c46394badfbd93e6f6649df7221ecb",onClick:()=>this.noticeWarning(O.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),t("fieldset",{key:"e5a63d08c9fa051ba0c8365712e1b6ba291864f2"},t("h2",{key:"5e3fc7cf6a2b995269369e7b235db0b271c49e87"},"Smoothly spinner"),t("div",{key:"a5ab353d1f2481be7e825c51c060793ff5286e2d",style:{width:"fit-content"}},"Large",t("smoothly-spinner",{key:"bd5d65f076d7fc61999cf3abf560b9071f60cb15",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),t("div",{key:"c69aedc3a3b8ad9b06152ce43f4382cf2ddef623",style:{width:"fit-content"}},"Medium",t("smoothly-spinner",{key:"6d1049cbf6ff23acb61f5d54cb9de3f4aeff029d",size:"medium"})),t("div",{key:"0846e58331aa79405c9191ddb2b7faa750ef33ae",style:{width:"fit-content"}},"Small",t("smoothly-spinner",{key:"08bba479fcd8be6fde340377c0a659a7d3b1a121",size:"small"})),t("div",{key:"7cef575d8cb061c70749cb0c3cde03635f2028e0"},"Icon sized spinner on button",c.types.map((e=>t("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&t("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&t("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),t("h3",{key:"07a35ccb69f841cb40122333bdfe1abc1efe18c4"},"Spinner with overlay"),t("div",{key:"5fbcb320946d8fec08458149ebdb47ccc9aa630c",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",t("smoothly-spinner",{key:"fd9acb9a5bb12ec0041a08f9a7a4257ded496bc8",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),t("div",{key:"858037c3dc104bef8b7b16eb418b4d1fa67170f6",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",t("smoothly-spinner",{key:"93ba7062b31cf94f0b10d7a00025db080b6092ce",overlay:true,color:"secondary",size:"medium"})),t("div",{key:"507bdbd9303934e19ae2737e9f779c1af9b9f51b",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",t("smoothly-spinner",{key:"29eab4404c1486e0e639b1b35664b663ed514dae",overlay:true,size:"small"}))),t("fieldset",{key:"13c77980b44a49e370dc2c53ff2abf005b02e26e"},t("h2",{key:"28bc4f36494dd133d49ead798fa35e7201c2c9bb"},"Smoothly summary"),t("smoothly-summary",{key:"cfcb5e6e539e465d501e8513dbe2c97bff51b182"},t("p",{key:"66a83893a90fb3c07ec48d81d0fc792e78ef2c88",slot:"summary"},"Some title"),t("p",{key:"9e9e8969fb180badabca40f5cfbe886b1a06dd9c",slot:"content"},"Some content")),t("smoothly-summary",{key:"75d56b87cdbb57f4ae2efded1fd55bd7030b737a",size:"large"},t("p",{key:"5a4ea8bbd79ace35331a60313a5726ba81e0ed4a",slot:"summary"},"Some title"),t("p",{key:"3e079e8f5e627e9248d2c6c297b2e7320d9edb56",slot:"content"},"Some content")),t("smoothly-summary",{key:"397ef2e4ef50dafc4c6f9b11ee4127fd9c6c4690",color:"danger",fill:"clear"},t("div",{key:"2dbb6179676804c2fedfdbd981574586361ee4bf",slot:"summary",style:{display:"flex",gap:"0.3rem"}},t("span",{key:"fbe1a347f5fef147cf93a29a460852c38c79ebd5"},"Person"),t("smoothly-icon",{key:"5d3b9bff5d1d788ac6c74de9ab08aaaba8672e9a",name:"person",color:"light",fill:"clear",size:"tiny"})),t("p",{key:"71d4fbebf7eda2d158f583e5217eb723e0a86131",slot:"content"},"Some person information.")),t("smoothly-summary",{key:"a8b48edc40de316c09cef79d8aa8ece3b7afd011",color:"danger",fill:"clear",open:true},t("p",{key:"25407c2aa319fa0d9da0ed18867e74238dacf50c",slot:"summary"},"Some other title"),t("p",{key:"ba29da74382114c1c157c1073380cbd76fcff742",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.")),t("h2",{key:"39f96c186d601ba2d00c2615b10dfe77f6cf46a4"},"Label"),no.map((e=>t("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),t("smoothly-label",{key:"9af567fc9f112cfc4694827752bd65a231892f8c",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const no=[{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 lo=class{constructor(t){e(this,t)}render(){return t(s,{key:"e2ff443448cb73a0bea3d0b8e9605267d05a4b7a"},[0,1,3,undefined].map((e=>[t("div",null,"collapseDepth=",e!==null&&e!==void 0?e:"undefined"),t("div",null,t("smoothly-display",{type:"json",value:ro,collapseDepth:e}))])))}};const ro={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const co=({value:e,collapseDepth:o})=>d().is(e)||Array.isArray(e)?t("smoothly-display-json-object",{value:e,collapseDepth:o}):t("smoothly-display-json-primitive",{value:e});const ho=".sc-smoothly-display-json-h{font-family:monospace}";const bo=ho;const mo=class{constructor(t){e(this,t);this.value=undefined;this.collapseDepth=undefined}render(){return t(co,{key:"5901dea5e79a06c0de84963d10a9b7b44e76dd55",value:this.value,collapseDepth:this.collapseDepth})}};mo.style=bo;const yo='.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 rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{display: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}.open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.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:" ▼ "}';const uo=yo;const fo=class{constructor(t){e(this,t);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 e=typeof this.collapseDepth=="number"?Math.max(this.collapseDepth-1,0):undefined;return t(s,{key:"d4b518cb0ed73061381c263aa1ce70b036c5a169",class:{empty:this.empty,open:this.open}},t("span",{key:"d3d5aa239a41aba16db7eb1aa2bf1cb3db67c30c",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),t("span",{key:"fa1efeaabbd3501a6351f82b966f0c326e613f84",class:"content"},Array.isArray(this.value)?this.value.map((o=>t("div",{class:"indent"},t(co,{value:o,collapseDepth:e}),t("span",{class:"comma"},",")))):Object.entries(this.value).map((([o,s])=>t("div",{class:"indent"},t("smoothly-display-json-record-key",{value:o}),":"," ",t(co,{value:s,collapseDepth:e}),t("span",{class:"comma"},","))))),t("span",{key:"44380da90e2071bc30146c06ee19d89ab97e734b"},this.closeBracket))}};fo.style=uo;const po=".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 go=po;const ko=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"60c85f55a13c6af67d6d68e8f5ca14a50f188d78",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};ko.style=go;const vo=".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=vo;const wo=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"312d806be76eb6dfad9bf4190c4816b9f7c763d4"},'"',this.value,'"')}};wo.style=xo;class So{filter(e){return e.filter((e=>this.is(e)))}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}const Co=[e=>e instanceof So?e:undefined];function zo(e){Co.push(e)}let jo;function _o(e){jo=e}function To(e){let t;for(const o of Co){t=o(e);if(t)break}return t||jo}class Io extends So{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(e){return true}toString(){return""}}_o(new Io);class Oo extends So{constructor(e){super();this.criteria=e;this.precedence=50;this.class="Any"}is(e){return e&&typeof e=="object"&&Object.getOwnPropertyNames(e).some((t=>this.criteria.is(e[t])||this.is(e[t])))}toString(){return this.criteria.stringify(this.precedence)}}class Lo extends So{constructor(e){super();this.precedence=40;this.class="And";this.rules=e.reduce(((e,t)=>t instanceof Lo?[...e,...t.rules]:[...e,t]),[])}is(e){return this.rules.every((t=>t.is(e)))}toString(){return this.rules.map((e=>e.stringify(this.precedence))).join(" ")}generalize(){return new Lo(this.rules.map((e=>e.class=="Property"?e:new Oo(e))))}}function Ao(...e){return new Lo(e.map(To))}var Eo;(function(e){e.is=Do})(Eo||(Eo={}));function Do(e,t=false){return typeof e=="number"||typeof e=="string"||e instanceof So||t&&typeof e=="object"&&e&&Object.values(e).every((e=>Array.isArray(e)?e.every((e=>Do(e,true))):Do(e,true)))}var Mo=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var $o={};var Ro={};var Po={};var No={};var Ho={};(function(e){Object.defineProperty(e,"__esModule",{value:true});(function(e){e[e["Logging"]=0]="Logging";e[e["Debug"]=1]="Debug";e[e["Warning"]=2]="Warning";e[e["Recoverable"]=3]="Recoverable";e[e["Critical"]=4]="Critical"})(e.Level||(e.Level={}))})(Ho);Object.defineProperty(No,"__esModule",{value:true});const Fo=Ho;class Uo{constructor(e,t=Fo.Level.Recoverable,o="unknown",s){this.description=e;this.level=t;this.type=o;this.region=s}toString(){return Fo.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}No.Message=Uo;Object.defineProperty(Po,"__esModule",{value:true});const Yo=No;class Wo{raise(e,t,o,s){if(!(e instanceof Yo.Message))e=new Yo.Message(e,t,o,s);console.error(e.toString())}}Po.ConsoleHandler=Wo;var Bo={};var Vo={};Object.defineProperty(Vo,"__esModule",{value:true});class Go{constructor(e,t){this.line=e;this.column=t}toString(){return"Ln "+this.line+", Col "+this.column}}Vo.Position=Go;Object.defineProperty(Bo,"__esModule",{value:true});const Ko=Vo;class Zo extends Ko.Position{constructor(e,t,o){super(t,o);this.resource=e}toString(){return this.resource.toString()+" @ "+super.toString()}}Bo.Location=Zo;var qo={};Object.defineProperty(qo,"__esModule",{value:true});class Jo{constructor(e,t,o,s){this.resource=e;this.start=t;this.end=o;this.content=s}merge(e){return e?new Jo(this.resource,this.start,e.end,this.content?this.content:""+e.content?e.content:""):this}toString(){let e=this.resource.toString();if(this.start&&this.end)e+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)e+=this.content;return e}}qo.Region=Jo;Object.defineProperty(Ro,"__esModule",{value:true});var Xo=Po;Ro.ConsoleHandler=Xo.ConsoleHandler;var Qo=Ho;Ro.Level=Qo.Level;var es=Bo;Ro.Location=es.Location;var ts=No;Ro.Message=ts.Message;var os=Vo;Ro.Position=os.Position;var ss=qo;Ro.Region=ss.Region;var as={};var is={};var ns={};var ls={};var rs={};Object.defineProperty(rs,"__esModule",{value:true});class cs{constructor(e,t){this.name=e;this.password=t}get isEmpty(){return!this.name&&!this.password}toString(){let e="";if(this.name)e=this.name;if(this.password)e+=":"+this.password;return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new cs(o[0],o[1])}else t=new cs;return t}}rs.User=cs;var ds={};Object.defineProperty(ds,"__esModule",{value:true});class hs{constructor(e=[],t){this.host=e;this.port=t}get isEmpty(){return this.host.length==0&&!this.port}toString(){let e=this.host.join(".");if(this.port)e+=":"+this.port.toString();return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new hs(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else t=new hs;return t}}ds.Endpoint=hs;Object.defineProperty(ls,"__esModule",{value:true});const bs=rs;const ms=ds;class ys{constructor(e=new bs.User,t=new ms.Endpoint){this.user=e;this.endpoint=t}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let e="";if(!this.user.isEmpty)e=this.user.toString()+"@";if(!this.endpoint.isEmpty)e=e+this.endpoint.toString();return e}static parse(e){let t;if(e){const o=e.split("@",2);t=new ys(bs.User.parse(o.length==2?o.pop():undefined),ms.Endpoint.parse(o.pop()))}return t}}ls.Authority=ys;var us={};Object.defineProperty(us,"__esModule",{value:true});const fs=ls;class ps{constructor(e=[],t=new fs.Authority,o=[],s={},a){this.scheme=e;this.authority=t;this.path=o;this.query=s;this.fragment=a}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 ps(this.scheme,this.authority,this.path.filter(((e,t)=>t<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const e=this.name.split(".");return e.length>1?e[e.length-1]:""}createArray(e,t){const o=[];while(t-- >0)o.push(e);return o}normalize(){let e=0;const t=this.path.reverse().filter(((t,o)=>{let s=false;if((t==""||t==".")&&o<this.path.length-1)s=false;else if(t=="..")e++;else if(e>0)e--;else s=true;return s})).concat(this.createArray("..",e)).reverse();return new ps(this.scheme,this.authority,t,this.query,this.fragment)}resolve(e){return!e?this:new ps(this.scheme.length>0?this.scheme:e.scheme,!this.authority.isEmpty?this.authority:e.authority,this.isRelative?e.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(e){return new ps(this.scheme,this.authority,e instanceof Array?[...this.path,...e]:[...this.path,e],this.query,this.fragment)}toString(){let e="";if(this.scheme.length>0)e+=this.scheme.join("+")+":";if(!this.authority.isEmpty)e+="//"+this.authority.toString();else if(this.scheme.length>0)e+="//";if(this.path){let t=this.path.join("/");if(t[0]!="."||e.length>0)t="/"+t;e+=t}if(Object.keys(this.query).length>0)e+="?"+this.query.toString();if(this.fragment)e+="#"+this.fragment;return e}static parse(e){let t;switch(e){case"":case null:case undefined:break;default:let o=true;let s=[];let a=e.split("://",2);if(a.length>1){s=(a.shift()||"").split("+");e=a.shift()}else if(e.slice(0,2)=="//")e=e.slice(2);else o=false;let i;let n;if(e&&(i=e.lastIndexOf("#"))>-1){n=e.slice(i+1);e=e.slice(0,i)}let l={};if(e&&(i=e.lastIndexOf("?"))>-1){l=new Object;e.slice(i+1).split(";").forEach((e=>{a=e.split("=");const t=a.shift();const o=a.shift();if(t&&o)l[t]=o}));e=e.slice(0,i)}let r;let c=[];if(e){a=e.split("/");if(a.length>0){switch(a[0]){case".":case"..":break;case"":a.shift();break;default:if(o)r=fs.Authority.parse(a.shift());else a.unshift(".");break}c=a}}t=new ps(s,r,c,l,n);break}return t}}us.Locator=ps;ps.empty=new ps(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(ns,"__esModule",{value:true});var gs=ls;ns.Authority=gs.Authority;var ks=ds;ns.Endpoint=ks.Endpoint;var vs=us;ns.Locator=vs.Locator;var xs=rs;ns.User=xs.User;var ws={};var Ss={};var Cs={};Object.defineProperty(Cs,"__esModule",{value:true});class zs{}Cs.Device=zs;Object.defineProperty(Ss,"__esModule",{value:true});const js=Cs;class _s extends js.Device{}Ss.InDevice=_s;Object.defineProperty(ws,"__esModule",{value:true});const Ts=Ss;class Is extends Ts.InDevice{static addOpener(e,t){if(!t)t=0;Is.openers.push({open:e,priority:t});Is.openers=Is.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){let t;let o=0;do{t=Is.openers[o++].open(e)}while(!t&&o<Is.openers.length);return t}}ws.Reader=Is;Is.openers=[];Object.defineProperty(is,"__esModule",{value:true});const Os=ns;const Ls=Ro;const As=ws;var Es=ws;is.Reader=Es.Reader;class Ds extends As.Reader{constructor(e){super();this.backend=e;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=this.location;return e?e.resource:Os.Locator.empty}get location(){return this.locationValue}get region(){return new Ls.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(e){if(!e)e=1;let t;while(e>this.buffer.length&&(t=this.backend.read()))this.buffer.push({data:t,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,e>this.buffer.length?this.buffer.length:e).map((e=>e.data)).join("")}read(e){if(!e)e=1;const t=this.peek(e);if(t&&t.length>0){this.locationValue=this.buffer[t.length-1].location;this.buffer.splice(0,t.length);this.lastContent+=t}return t}peekIs(e,t){let o;if(e)if(typeof e=="string"){const s=e;while(t&&t-- >0)e+=s;o=this.peek(e.length)==e?e:undefined}else if(e.length>0&&!(o=this.peekIs(e[0]))&&e.length)o=this.peekIs(e.slice(1));return o}readIf(e){let t;if(e)if(typeof e=="string")t=this.peek(e.length)==e&&this.read(e.length)||undefined;else if(e.length>0&&!(t=this.readIf(e[0]))&&e.length)t=this.readIf(e.slice(1));return t}readAll(){let e="";while(this.peek())e+=this.read();return e!=""?e:undefined}mark(){const e=this.region;this.lastMark=this.location;this.lastContent="";return e}static create(e){return e?new Ds(e):undefined}}is.BufferedReader=Ds;var Ms={};var $s={};var Rs=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty($s,"__esModule",{value:true});function Ps(e){return Rs(this,void 0,void 0,(function*(){}))}$s.close=Ps;function Ns(e){return Rs(this,void 0,void 0,(function*(){}))}$s.fsync=Ns;function Hs(e,t,o){return Rs(this,void 0,void 0,(function*(){return 0}))}$s.open=Hs;function Fs(e,t,o,s){return Rs(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}$s.write=Fs;function Us(e,t){return{isDirectory:()=>false}}$s.lstatSync=Us;function Ys(e){return[]}$s.readdirSync=Ys;function Ws(e,t){return""}$s.readFileSync=Ws;var Bs={};Object.defineProperty(Bs,"__esModule",{value:true});const Vs="/";Bs.sep=Vs;var Gs={};var Ks=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Gs,"__esModule",{value:true});const Zs=Ro;const qs=ns;const Js=ws;class Xs extends Js.Reader{constructor(e,t){super();this.content=e;this.resource=t;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 Zs.Location(this.resource,this.line,this.column)}get region(){return new Zs.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Ks(this,void 0,void 0,(function*(){const e=!(yield this.isEmpty);if(e)this.count=this.content.length;return e}))}read(){let e;if(this.count<this.content.length)e=this.content.charAt(this.count);else if(this.count==this.content.length)e=undefined;this.count++;if(e){switch(e){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=e}return e}mark(){const e=this.region;this.lastPosition=this.location;this.lastContent="";return e}static create(e,t){return e!=undefined?new Xs(e,t||qs.Locator.empty):undefined}}Gs.StringReader=Xs;Object.defineProperty(Ms,"__esModule",{value:true});const Qs=$s;const ea=Bs;const ta=ns;const oa=ws;const sa=Gs;class aa extends oa.Reader{constructor(e){super();this.backend=e}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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:ta.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(e){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=sa.StringReader.create(Qs.readFileSync((e.isRelative?"":ea.sep)+e.path.join(ea.sep),"utf-8"),e)}catch(t){console.log(`Failed to open file: ${e.toString()}`)}return t?new aa(t):undefined}}Ms.FileReader=aa;oa.Reader.addOpener((e=>aa.open(e)),10);var ia={};var na=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(ia,"__esModule",{value:true});const la=$s;const ra=Bs;const ca=ns;const da=Ro;const ha=ws;const ba=Ms;class ma extends ha.Reader{constructor(e){super();this.files=e;this.tabSizeValue=2;this.lastLocation=new da.Location(ca.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(e){this.tabSizeValue=e;if(this.current)this.current.tabSize=e}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 da.Region(this.resource)}close(){return na(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let e;if(!this.current&&this.files.length>0){this.current=ba.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){e=this.current.read();if(e==undefined||e=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return e}mark(){return this.current?this.current.mark():new da.Region(this.resource)}static getFiles(e,t,o=[]){let s=[];const a=la.readdirSync(e);a.forEach((a=>{const i=e+ra.sep+a;if(o.indexOf(i)==-1){if(la.lstatSync(i).isDirectory())s=s.concat(ma.getFiles(i,t,o));else if(a.length>t.length&&a.lastIndexOf(t,a.length-t.length)===a.length-t.length)s.push(i)}}));return s}static open(e){let t;try{if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file")&&e.isFolder||e.name.match("*"))t=ma.getFiles((e.isRelative?"":ra.sep)+e.folder.path.join(ra.sep),e.extension)}catch(e){}return t?new ma(t.map((e=>new ca.Locator(["file"],undefined,e.split(ra.sep))))):undefined}}ia.FolderReader=ma;ha.Reader.addOpener((e=>ma.open(e)),0);var ya={};var ua={};var fa={};var pa={};Object.defineProperty(pa,"__esModule",{value:true});function*ga(e){let t;while((t=e())!=undefined)yield t}function ka(e){return e.next instanceof Function}function*va(e,t){let o;while(!(o=e.next()).done)yield o.value;if(ka(t))while(!(o=t.next()).done)yield o.value;else yield t}class xa{constructor(e){this.iterator=e instanceof Function?ga(e):e}get length(){let e=0;while(!this.next().done)e++;return e}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const e=this.next();return e.done?undefined:e.value}next(e){return this.nextValue=this.iterator.next(e)}append(e){return new xa(va(this,e))}map(e){return new xa((()=>{const t=this.fetch();return t!=undefined?e(t):undefined}))}reduce(e,t){const o=this.fetch();return o?this.reduce(e,e(t,o)):t}apply(e){const t=this.fetch();if(t){e(t);this.apply(e)}}filter(e){return new xa((()=>{let t;do{t=this.fetch()}while(t!=undefined&&!e(t));return t}))}toArray(){const e=this.fetch();let t;if(!e)t=[];else{t=this.toArray();t.unshift(e)}return t}static from(e){return new xa(e)}}pa.Enumerator=xa;xa.empty=xa.from((()=>undefined));var wa={};Object.defineProperty(wa,"__esModule",{value:true});const Sa=pa;function Ca(e){return e==null?false:typeof e[Symbol.iterator]==="function"}class za{constructor(e){this.get=e}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new Sa.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(e){return new za((()=>this.get().append(e)))}map(e){return new za((()=>this.get().map(e)))}reduce(e,t){return this.get().reduce(e,t)}apply(e){this.get().apply(e)}filter(e){return new za((()=>this.get().filter(e)))}toArray(){return this.getEnumerator().toArray()}static from(e){return Ca(e)?new za((()=>new Sa.Enumerator(e[Symbol.iterator]()))):new za((()=>{const t=e();return t instanceof Sa.Enumerator?t:new Sa.Enumerator(t)}))}}wa.Enumerable=za;za.empty=za.from([]);var ja={};Object.defineProperty(ja,"__esModule",{value:true});const _a=pa;class Ta extends _a.Enumerator{constructor(e){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=e;this.position=0}}ja.ArrayEnumerator=Ta;var Ia={};Object.defineProperty(Ia,"__esModule",{value:true});const Oa=pa;class La extends Oa.Enumerator{constructor(e){super((()=>{const e=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return e}));this.backend=e;this.buffer=[]}peek(e){if(!e)e=0;let t;while(e>this.buffer.length-1&&(t=this.backend.fetch()))this.buffer.push(t);return e>this.buffer.length-1?undefined:this.buffer[e]}}Ia.BufferedEnumerator=La;var Aa={};Object.defineProperty(Aa,"__esModule",{value:true});class Ea{static padLeft(e,t,o){return Ea.pad(e,t,o,true)}static padRight(e,t,o){return Ea.pad(e,t,o,false)}static pad(e,t,o,s){let a="";const i=o-e.length;for(let e=0;e<i;e++)a+=t;return s?a+e:e+a}}Aa.String=Ea;Object.defineProperty(fa,"__esModule",{value:true});var Da=pa;fa.Enumerator=Da.Enumerator;var Ma=wa;fa.Enumerable=Ma.Enumerable;var $a=ja;fa.ArrayEnumerator=$a.ArrayEnumerator;var Ra=Ia;fa.BufferedEnumerator=Ra.BufferedEnumerator;var Pa=Aa;fa.String=Pa.String;var Na={};Object.defineProperty(Na,"__esModule",{value:true});const Ha=Cs;class Fa extends Ha.Device{}Na.OutDevice=Fa;var Ua=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(ua,"__esModule",{value:true});const Ya=ns;const Wa=fa;const Ba=Na;class Va extends Ba.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(e){return Ua(this,void 0,void 0,(function*(){return e instanceof Wa.Enumerator?this.writeImplementation(e):e instanceof Array?this.writeImplementation(new Wa.ArrayEnumerator(e)):this.writeImplementation(new Wa.ArrayEnumerator([e]))}))}writeLine(e){return Ua(this,void 0,void 0,(function*(){return e instanceof Wa.Enumerator?this.writeImplementation(e.append(this.newLineSymbol)):e instanceof Array?this.writeImplementation(new Wa.ArrayEnumerator([...e,this.newLineSymbol])):e?this.writeImplementation(new Wa.ArrayEnumerator([e,this.newLineSymbol])):this.writeImplementation(new Wa.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(e,t){if(!t)t=0;Va.openers.push({open:e,priority:t});Va.openers=Va.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){return Ua(this,void 0,void 0,(function*(){let t;if(typeof e=="string"){const o=Ya.Locator.parse(e);t=o?yield Va.open(o):undefined}else{let o=0;do{t=yield Va.openers[o++].open(e)}while(!t&&o<Va.openers.length)}return t}))}}ua.Writer=Va;Va.openers=[];Object.defineProperty(ya,"__esModule",{value:true});const Ga=ua;class Ka extends Ga.Writer{constructor(e){super();this.backend=e;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(e){const t=[];let o;let s=e.fetch();if(s)do{o=s;s=e.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);t.push(this.backend.write(o))}while(s);return Promise.all(t).then((e=>e.reduce(((e,t)=>e&&t),true)))}}ya.Indenter=Ka;var Za={};Object.defineProperty(Za,"__esModule",{value:true});const qa=ws;const Ja=is;class Xa extends qa.Reader{constructor(e,t){super();this.prefix=t;this.done=false;this.backend=e instanceof Ja.BufferedReader?e:Ja.BufferedReader.create(e)}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e;if(!this.done){e=this.backend.read();this.done=e=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new Xa(e,t):e}}Za.PrefixReader=Xa;var Qa={};var ei=Mo&&Mo.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Qa,"__esModule",{value:true});const ti=$s;const oi=Bs;const si=ua;class ai extends si.Writer{constructor(e,t){super();this.resource=e;this.descriptor=t;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return ei(this,void 0,void 0,(function*(){let e=true;try{yield ti.fsync(this.descriptor)}catch(t){e=false}return e}))}close(){return ei(this,void 0,void 0,(function*(){let e=this.opened;if(e){try{yield ti.close(this.descriptor)}catch(t){e=false}this.descriptor=0}return e}))}writeImplementation(e){return ei(this,void 0,void 0,(function*(){let t=true;const o=Buffer.from(e.reduce(((e,t)=>e+t),""));try{const e=yield ti.write(this.descriptor,o,0,"utf8");t=e.bytesWritten==o.length}catch(e){t=false}return t&&(!this.autoFlush||(yield this.flush()))}))}static open(e){return ei(this,void 0,void 0,(function*(){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=yield ti.open((e.isRelative?"":oi.sep)+e.path.join(oi.sep),"w")}catch(e){t=undefined}return t?new ai(e,t):undefined}))}}Qa.FileWriter=ai;si.Writer.addOpener(ai.open);var ii={};Object.defineProperty(ii,"__esModule",{value:true});const ni=ws;const li=is;class ri extends ni.Reader{constructor(e,t){super();this.endMark=t;this.done=false;this.backend=e instanceof li.BufferedReader?e:li.BufferedReader.create(e);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=!this.done;if(e)this.done=true;return Promise.resolve(e)}read(){let e;if(!this.done){e=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new ri(e,t):e}}ii.TillReader=ri;var ci={};Object.defineProperty(ci,"__esModule",{value:true});const di=ws;const hi=is;class bi extends di.Reader{constructor(e,t){super();this.endMark=t;this.done=-1;this.backend=e instanceof hi.BufferedReader?e:hi.BufferedReader.create(e);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.length}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}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 e=this.done>0;if(e)this.done=0;return Promise.resolve(e)}read(){let e;if(this.done!=0){e=this.backend.read();let t;if(this.done>0)this.done--;else if(t=this.backend.peekIs(this.endMark))this.done=t.length}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new bi(e,t):e}}ci.UntilReader=bi;Object.defineProperty(as,"__esModule",{value:true});var mi=is;as.BufferedReader=mi.BufferedReader;var yi=Cs;as.Device=yi.Device;var ui=Ms;as.FileReader=ui.FileReader;var fi=ia;as.FolderReader=fi.FolderReader;var pi=ya;as.Indenter=pi.Indenter;var gi=Ss;as.InDevice=gi.InDevice;var ki=Na;as.OutDevice=ki.OutDevice;var vi=Za;as.PrefixReader=vi.PrefixReader;var xi=ws;as.Reader=xi.Reader;var wi=Gs;as.StringReader=wi.StringReader;var Si=Qa;as.FileWriter=Si.FileWriter;var Ci=ii;as.TillReader=Ci.TillReader;var zi=ci;as.UntilReader=zi.UntilReader;var ji=ua;as.Writer=ji.Writer;Object.defineProperty($o,"__esModule",{value:true});const _i=Ro;var Ti=$o.Error=_i;const Ii=as;var Oi=$o.IO=Ii;const Li=ns;$o.Uri=Li;const Ai=fa;var Ei=$o.Utilities=Ai;class Di extends Oi.BufferedReader{constructor(e,t){super(typeof e=="string"?Oi.StringReader.create(e):e);this.errorHandler=t}raise(e,t,o="lexical",s){if(!(e instanceof Ti.Message)){if(!t)t=Ti.Level.Critical;if(!s)s=this.region;e=new Ti.Message(e,t,o,s)}if(this.errorHandler)this.errorHandler.raise(e)}requirePrefix(e){return new Di(new Oi.PrefixReader(this,e),this.errorHandler)}till(e){return new Di(Oi.TillReader.create(this,e),this.errorHandler)}until(e){return new Di(Oi.UntilReader.create(this,e),this.errorHandler)}peekIsSymbol(e){return this.peekIs(e??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function Mi(e,t,o){const s=new Di(e,t);return new Ei.Enumerator((()=>{let e;let t=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(t=s.peekIsSymbol(o))e={value:s.read(t)||"",region:s.mark()};else{let t="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))t+=s.read();if(t)e={value:t,region:s.mark()}}}return e}))}class $i{tokenize(e){return Mi(e,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((e=>({value:e.value}))).toArray()}}class Ri extends $i{constructor(e){super();this.class="array";this.array=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return Ri.completor.flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])}isType(e){return global.Array.isArray(e)}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Ri}}Ri.completor=[];var Pi;(function(e){function t(e){return typeof e=="object"&&typeof e.start=="number"&&typeof e.end=="number"}e.is=t})(Pi||(Pi={}));var Ni;(function(e){function t(e){return e.map((e=>typeof e.cursor=="number"?e.value.slice(0,e.cursor)+"_"+e.value.slice(e.cursor,e.value.length):e.value+"_"))}e.stringify=t;function o(e,t,s){return Array.isArray(t)?t.map((t=>o(e,t,s))):{value:e+t.value+(s??""),cursor:typeof t?.cursor=="number"?t?.cursor+e.length:Pi.is(t.cursor)?{start:t.cursor.start+e.length,end:t.cursor.end+e.length}:t.value.length+e.length,suggestion:t.suggestion}}e.prepend=o})(Ni||(Ni={}));class Hi extends $i{constructor(){super();this.class="boolean"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;const a=o?Hi.literals.filter((e=>e.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Ni.prepend(":",Hi.literals.filter((e=>e.value.startsWith(s[1]?.value??"")))):[];return[...a??[],...(o?[]:Hi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e=="boolean"}static add(...e){this.completor.push(...e)}}Hi.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Hi.completor=[];var Fi;(function(e){function t(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e.length<=3&&e[0].value==":"&&o.value.startsWith(e[1]?.value??"")&&(e[2]?.value??"(")=="("?Ni.prepend(":",[o]):e.length<=4&&e.slice(0,4).reduce(((e,t)=>e+t.value),"")==":"+o.value?Ni.prepend(":"+o.value.substring(0,o.value.length-1),t(),")"):e.length==5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[4].value==":"+o.value?Ni.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):e.length>5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[e.length-1].value==":"+o.value?Ni.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):[]}e.functions=t;function o(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1?Ni.prepend(":",[o]):Ni.prepend(":",t(e.slice(1)))}e.expressions=o;function s(e,t,o){return e.length>=1&&e[0].value==o.value?Ni.prepend(o.value,t(e.slice(1))):e.length==0||e.length==1&&o.value.startsWith(e[0].value)||e[0].value==o.value.replace(/ /g,"")?[o]:[]}e.operators=s})(Fi||(Fi={}));class Ui extends $i{constructor(e){super();this.input=e;this.class="number";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return[...s.length>0&&s[0].value==":"&&t?Ni.prepend(":",t.complete(s.slice(1),undefined,this)):t&&s.length>=0&&o?Ni.prepend(" ",t?.complete(s,undefined,undefined)):[],...(o?Ui.completorArgument:Ui.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return isNaN(+e)?false:true}static add(...e){this.completor.push(...e)}static addArgument(...e){this.completorArgument.push(...e)}static is(e){return e instanceof Ui||!global.Number.isNaN(e)}}Ui.completor=[];Ui.completorArgument=[];class Yi extends $i{constructor(e){super();this.properties=e;this.class="object";this.completions=Object.keys(this.properties).map((e=>({value:e,suggestion:{value:e}})))}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;const i=this.filterByType(o);if(!t){const e=s.length>0?this.match(s[0],i):undefined;if(e)a=s.length>=1?Ni.prepend(e.value,this.properties[e.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))a=Ni.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))a=Ni.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let e;a=s.length==0?[...this.addDot(i,o),...o?.class=="number"?[]:Yi.wildcard]:s.length==1&&(e=Yi.wildcard.find((e=>e.value==s[0].value)))?Ni.prepend(e.value,this.completions,o?".":""):s.length>=1&&(e=Yi.wildcard.find((e=>e.value==s[0].value)))?Ni.prepend(e.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],i),o)}}else a=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Ni.prepend(".",this.addDot(i,o)):this.properties[s[1].value]?Ni.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),t,o)):Ni.prepend(".",this.addDot(this.partial(s[1],i),o));return[...a.reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[]),...Yi.completor.flatMap((e=>e(s,this,t)))]}filterByType(e){return e?this.completions.filter((t=>this.properties[t.value].class==e.class||(this.properties[t.value].class=="object"?this.properties[t.value].filterByType(e).length>0:false))):this.completions}addDot(e,t){return!e?[]:t?e.map((e=>this.properties[e.value].class=="object"?{value:e.value+".",suggestion:{value:e.suggestion?.value+"."}}:e)):e}partial(e,t){const o=t.filter((t=>t.value.startsWith(e.value)));return o&&o.length>0?o:undefined}match(e,t){const o=t.filter((t=>t.value==e.value));return o&&o.length>0?o[0]:undefined}isType(e){return false}static add(...e){this.completor.push(...e)}}Yi.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Yi.completor=[];class Wi extends $i{constructor(e){super();this.class="string";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;if(o)a=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else a=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[Ni.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...a??[],...(o?[]:Wi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e.value=="string"}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Wi}}Wi.completor=[];class Bi extends $i{constructor(e){super();this.type=e;this.class="union"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return this.type?this.type?.flatMap((e=>e?.complete(s,t,o)??[])):[]}isType(e){return e instanceof Bi}static is(e){return e instanceof Bi}}var Vi;(function(e){function t(e,t){const o=e.complete(t);return o.filter((e=>!t.includes(e.value)&&e.suggestion?.value)).map((e=>({full:e.value,cursor:e?.cursor??e.value.length,addon:e?.suggestion?.value,description:e?.suggestion?.description})))}e.complete=t;function o(e){let t;switch(typeof e){case"object":t=global.Array.isArray(e)?new Ri(e.map((e=>o(e)))):new Yi(global.Object.entries(e).reduce(((e,t)=>({...e,[t[0]]:o(t[1])})),{}));break;case"string":t=new Wi(e);break;default:t=new Ui(e);break}return t}e.convert=o;e.Array=Ri;e.Boolean=Hi;e.Completion=Ni;e.Object=Yi;e.String=Wi;e.Number=Ui;e.Union=Bi;e.Completor=Fi})(Vi||(Vi={}));class Gi extends So{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(e){return typeof e=="string"&&e.endsWith(this.needle)}toString(){return`*${this.needle}`}}function Ki(e,t){return Fi.expressions(e,(e=>!e||e[0].value=="*"&&t.value&&t.value.endsWith(e[1]?.value??"")?[Vi.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Vi.String.add(Ki);class Zi extends So{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Every"}is(e){return Array.isArray(e)&&e.every((e=>this.criteria.is(e)))}toString(){return`every(${this.criteria.toString()})`}}function qi(e,t){const o=e=>t.array.some(Vi.String.is)&&e?t.array.filter(Vi.String.is).map((t=>t.complete([{value:":"},...e]))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Vi.String.is)?t.array.filter(Vi.String.is).map((e=>({value:e?.value??""}))):t.array.some(Vi.Number.is)&&e?t.array.filter(Vi.Number.is).map((t=>t.complete(e))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Vi.Number.is)?t.array.filter(Vi.Number.is).map((e=>({value:(e?.value??"").toString()}))):[];return Fi.functions(e,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Vi.Array.add(qi);class Ji extends So{constructor(e,t,o){super();this.identifier=e;this.argument=t;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(e){return this.definition?.is(e)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class Xi{stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}class Qi extends Xi{constructor(e,t){super();this.name=t;this.precedence=Qi.precedence;this.class="Value";if(typeof e=="string")this.value=isNaN(+e.replace(",","."))?e:+e.replace(",",".");else this.value=e}toString(){return this.name?`${this.name?.toString()}.`+this.value.toString():this.value.toString()}evaluate(e){return e?this.get(e):+this.value}get(e){return typeof this.value=="string"?+e[this.value]:this.name&&typeof this.value=="object"?this.value.get(e[this.name]):+this.value}static create(e,t){return new Qi(e,t)}}Qi.precedence=19;class en extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(e,t){return(isNaN(+e)?e:+e)>(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function tn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">",suggestion:{value:">"}})}Vi.Number.add(tn);Vi.String.add(tn);class on extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(e,t){return(isNaN(+e)?e:+e)>=(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function sn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">=",suggestion:{value:">="}})}Vi.Number.add(sn);Vi.String.add(sn);class an extends So{constructor(e){super();this.property=e;this.precedence=85;this.class="Has"}is(e,t){return typeof e=="object"&&e?Object.entries(e).some((e=>{t=typeof t=="string"?t:this.property;return e[0]==t?true:typeof e[1]=="object"&&e[1]?this.is(e[1],t.includes(".")&&t.split(".")[0]==e[0]?t.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function nn(e,t,o){return o&&t?.class=="object"?Fi.functions(e,(e=>t.completions.filter((t=>t.value.startsWith(e?e[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Vi.Object.add(nn);class ln extends So{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(e){return typeof e=="string"&&e.includes(this.needle)}toString(){return`*${this.needle}*`}}function rn(e,t){const o=new ln(e);return t?o.is(t):o}function cn(e,t){return Fi.expressions(e,(e=>!e||e.length==3&&t.value?.includes(e[1].value)&&t.value!=e[1].value||e.length==2&&e[0].value+e[1].value=="**"?[Vi.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:e.length==1&&e[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Vi.String.add(cn);class dn extends So{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Some"}is(e,t){return Array.isArray(e)&&e.some((e=>this.criteria.is(e,t)))}toString(){return`some(${this.criteria.toString()})`}}function hn(e,t){const o=new dn(To(e));return t?o.is(t):o}function bn(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1&&e[0].value==":"?Vi.Completion.prepend(":",t.array.filter(Vi.String.is).filter((e=>e.value&&e.value!="string")).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):e.length==2&&e[0].value==":"?Vi.Completion.prepend(":",t.array.filter(Vi.String.is).filter((t=>t.value&&t.value!="string"&&t.value.startsWith(e[1].value))).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):[]}Vi.Array.add(bn);class mn extends So{constructor(e){super();this.value=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(e,t){return Array.isArray(e)&&Do(this.value)?hn(this.value,e):(typeof e=="boolean"?e.toString():isNaN(+e)?e:+e)==(typeof this.value=="object"?this.value.evaluate(t):this.value)}toString(){return this.value.toString()}}zo((e=>typeof e=="bigint"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"?new mn(e):undefined));class yn extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(e,t){return(isNaN(+e)?e:+e)<(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function un(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<",suggestion:{value:"<"}})}Vi.Number.add(un);Vi.String.add(un);class fn extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(e,t){return(isNaN(+e)?e:+e)<=(this.value instanceof Qi&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function pn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<=",suggestion:{value:"<="}})}Vi.Number.add(pn);Vi.String.add(pn);function gn(e,t){return Fi.expressions(e,(e=>e&&e?.length==1&&e[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Vi.String.add(gn);class kn extends So{constructor(e){super();this.criteria=e;this.precedence=kn.precedence;this.class="Not"}is(e){return!this.criteria.is(e)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}kn.precedence=90;function vn(e,t){const o=new kn(To(e));return t?o.is(t):o}function xn(e,t,o){return t&&t.class!="object"&&o?Fi.expressions(e,(e=>e[0].value!="!"?[]:Vi.Completion.prepend("!",t.complete(e.slice(1),o,t))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Vi.String.add(xn);Vi.Number.add(xn);Vi.Boolean.add(xn);Vi.Object.add(xn);class wn extends So{constructor(e){super();this.precedence=wn.precedence;this.class="Or";this.criteria=e.reduce(((e,t)=>t instanceof wn?[...e,...t.criteria]:[...e,t]),[])}is(e){return this.criteria.some((t=>t.is(e)))}toString(){return this.criteria.map((e=>e.stringify(this.precedence))).join(" | ")}}wn.precedence=30;function Sn(e,t,o){return Vi.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Vi.Number.addArgument(Sn);class Cn extends Ei.BufferedEnumerator{constructor(e,t){super(Array.isArray(e)?new Ei.ArrayEnumerator(e):e);this.errorHandler=t}clone(e="(",t=")"){let o=0;return new Cn(new Ei.Enumerator((()=>{let s;if(this.peekIs(e))o++;else if(this.peekIs(t))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...e){return e.every(((e,t)=>{const o=this.peek(t);return o&&o.value&&Cn.is(e,o.value)}))}fetchIf(...e){const t=[];if(this.peekIs(...e))e.forEach((e=>t.push(this.fetch())));return e.length==1?t.length==1?t[0]:undefined:e.length==t.length?t:undefined}mark(){return Ei.Enumerable.from(Ei.Enumerable.empty)}raise(e,t=Ti.Level.Critical,o="grammatical",s){if(typeof e=="string"){if(!s&&this.last)s=this.last.region;e=new Ti.Message(e,t,o,s)}this.errorHandler.raise(e)}static is(e,t){return Array.isArray(e)?e.some((e=>Cn.is(e,t))):typeof e!="string"?e.test(t):e.startsWith("!")&&e!="!"?!Cn.is(e.substring(1),t):e=="any"?Cn.symbol.every((e=>e!=t)):e=="symbol"?Cn.symbol.some((e=>e==t)):e=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(t):e==t}}Cn.wildcard=["*","?"];Cn.separator=["(",")","."];Cn.operator=["!","|"];Cn.comparator=["<","<=",">",">=",":"];Cn.binaryOperator=[" * "," + "," - "];Cn.symbol=[...Cn.wildcard,...Cn.separator,...Cn.operator,...Cn.comparator];function zn(e,t){if(typeof e=="string"){t=t||new Ti.ConsoleHandler;const o=Mi(e,t).toArray();e=new Cn(o,t)}t=t instanceof So?t:undefined;const o=[];while(e.peek()){if(e.fetchIf("|"))o[o.length-1]=new wn([o[o.length-1],jn(0,e)]);else o.push(jn(0,e))}return o.length==1?o[0]:new Lo(o)}function jn(e,t){let o;const s=typeof e=="number"?t=>e<t:t=>e.precedence>t;const a=typeof e=="number"?undefined:e;for(const e of _n)if(s(e[1]||Number.MAX_SAFE_INTEGER)){const s=e[0](t,a);if(s){o=jn(s,t);break}}return o||a||new Lo([])}const _n=[];function Tn(e,t){_n.push([e,t])}function In(e,t){if(typeof e=="string"){t=t||new Ti.ConsoleHandler;const o=Mi(e,t).toArray();e=new Cn(o,t)}t=t instanceof Xi?t:undefined;let o;let s=false;let a=false;while(!o!=s&&!a&&e.peek()){let t=1;s=false;a=false;while(!s&&!a&&e.peek(t)){s=Cn.binaryOperator.some((o=>e.peek(t)?.value==o));a=Cn.comparator.some((o=>e.peek(t)?.value==o));t++}o=On(o??Number.MAX_SAFE_INTEGER,e)}if(!o)e.raise("Missing Expression");return o??new Qi(NaN)}function On(e,t){let o;const s=typeof e=="number"?undefined:e;for(const s of Ln){const a=s[0](t,e);if(a){o=a;break}}return o||s}const Ln=[];function An(e,t){Ln.push([e,t])}Tn((e=>{const t=e.fetchIf(":","every","(")&&new Zi(zn(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Tn((e=>{const t=e.fetchIf(":","some","(")&&new dn(zn(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Tn(En(zn));An(En(In));function En(e){return t=>{const o=t.fetchIf("(")&&e(t.clone());if(o&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return o}}Tn((e=>e.fetchIf(">")&&new en(In(e))));Tn((e=>e.fetchIf(">=")&&new on(In(e))));Tn((e=>e.fetchIf("<")&&new yn(In(e))));Tn((e=>e.fetchIf("<=")&&new fn(In(e))));Tn((e=>e.fetchIf("!")&&new kn(jn(kn.precedence,e))));Tn((e=>{const t=e.fetchIf("has","(","any",")")||e.fetchIf(":","has","(","any",")");return t&&new an(t.length==4?t[2].value:t[3].value)}));class Dn extends So{constructor(e){super();this.value=e;this.precedence=85;this.class="Within"}is(e){return this.value.includes(e)}toString(){return`within(${this.value.join(", ")})`}}function Mn(e,t){const o=new Dn(e);return t?o.is(t):o}function $n(e,t,o){return o&&t?.class?Fi.functions(e,(e=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Vi.String.add($n);Vi.Number.add($n);Tn((e=>{const t=e.fetchIf(":","within","(");let o;if(t&&e.peek()){o=[e.fetch()?.value??""];while(e.fetchIf(","))o.push(e.fetchIf("any")?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o?new Dn(o):undefined}));class Rn extends So{constructor(e){super();this.criteria=e;this.precedence=85;this.class="Contains"}is(e,t){return Array.isArray(e)&&this.criteria.every((t=>e.some((e=>t==e))))}toString(){return`contains(${this.criteria.join(", ")})`}}function Pn(e,t){const o=new Rn(e);return t?o.is(t):o}function Nn(e,t,o){return Fi.functions(e,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Vi.Array.add(Nn);Tn((e=>{const t=e.fetchIf(":","contains","(");const o=[];if(t&&e.peek()){do{o.push(e.fetchIf("any")?.value??"")}while(e.fetchIf(","));if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o.length>0?new Rn(o):undefined}));Tn((e=>{const t=e.peek(3)?.value;const o=[")",",","("].find((e=>e==t))||e.peek(2)?.value==")"?e.fetchIf("identifier","("):undefined;let s;if(o&&e.peek()){s=[e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(e.fetchIf(","))s.push(e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return o&&s?new Ji(o[0].value,s):undefined}));class Hn extends So{constructor(e,t){super();this.name=e;this.criteria=t;this.precedence=Hn.precedence;this.class="Property";this.symbol="."}is(e,t){return!this.criteria?e==t?.[this.name]:typeof e=="object"?this.criteria.is(e[this.name],t??e):this.criteria.is(e,t?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Hn.precedence=80;function Fn(e,t,o){const s=(Array.isArray(e)?e:[e]).reduceRight(((e,t)=>new Hn(t,e)),To(t));return o?s.is(o):s}zo((e=>typeof e=="object"&&!(e instanceof So)&&!Array.isArray(e)?Ao(...Object.getOwnPropertyNames(e).map((t=>Fn(t,e[t])))):undefined));Tn((e=>{const t=[];let o;while(o=e.fetchIf("identifier","."))t.push(o[0].value);if(e.peekIs("identifier",Cn.comparator)&&(o=e.fetchIf("identifier")))t.push(o.value);return t.length>0?t.reduceRight(((e,t)=>new Hn(t,e)),e.peekIs("identifier")&&(o=e.fetchIf("identifier"))?new Hn(o.value):jn(Hn.precedence,e)):undefined}));Tn((e=>{const t=e.fetchIf(":","*","any","*")||e.fetchIf("*","any","*");return t&&new ln(t.length==4?t[2].value:t[1].value)}));class Un extends So{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(e){return typeof e=="string"&&e.startsWith(this.needle)}toString(){return`${this.needle}*`}}function Yn(e,t){return Fi.expressions(e,(e=>!e||e.length==1&&e[0].value=="*"||e.length==2&&e[1].value=="*"&&t.value&&t.value.startsWith(e[0]?.value??"")?[Vi.Completion.prepend("",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Vi.String.add(Yn);Tn((e=>{const t=e.fetchIf(":","any","*")||e.fetchIf("any","*");return t&&new Un(t?.length==3?t[1].value:t[0].value)}));Tn((e=>{const t=e.fetchIf(":","*","any")||e.fetchIf("*","any");return t&&new Gi(t?.length==3?t[2].value:t[1].value)}));class Wn extends Xi{toString(){const e=this.symbol;return this.left.stringify(Wn.getPrecedence(e))+` ${e} `+this.right.stringify(Wn.getPrecedence(e))}constructor(e,t,o,s){super();this.precedence=t;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=e.replace(/ /g,"")}evaluate(e){let t;switch(this.getSymbol()){case"+":t=this.left.evaluate(e)+this.right.evaluate(e);break;case"-":t=this.left.evaluate(e)-this.right.evaluate(e);break;case"*":t=this.left.evaluate(e)*this.right.evaluate(e);break;default:t=NaN;break}return t}getSymbol(){return this.symbol}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}static getPrecedence(e){let t;e=e?.replace(/ /g,"");switch(e){case"+":t=14;break;case"-":t=15;break;case"*":t=16;break;default:t=undefined;break}return t}static create(e,t,o){let s;const a=new Wn("+",14,t,o);const i=Wn.getPrecedence(e);if(i)s=new Wn(e,i,t,o);return s||a}}function Bn(e,t,o){return[" + "," - "," * "].map((e=>({value:e,suggestion:{value:e}}))).map((s=>Vi.Completor.operators(e,(e=>e?o.complete(e,undefined,t):[]),s))).reduce(((e,t)=>e.concat(t)),[])}Vi.Number.addArgument(Bn);An(((e,t)=>{let o;const s=e.peekIs(Cn.binaryOperator)&&e.fetch().value;let a;if(s&&typeof t=="object"){let i;let n;let l=0;a=Wn.getPrecedence(s);while(!n&&e.peek(l)){n=e.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Wn.getPrecedence(e.peek(l)?.value);l++}if(n&&a<n){i=On(a,e);if(!i){e.raise("Missing right hand side of "+s)}}else i=On(NaN,e);if(n&&a==n||n==Number.MAX_SAFE_INTEGER){o=On(new Wn(s,a,t,i),e)}else o=new Wn(s,a,t,i)}return o}));An(((e,t)=>{const o=[];let s;while(s=e.fetchIf("identifier","."))o.push(s[0].value);let a;if(o.length==0){s=e.fetchIf("any",".","any")||e.fetchIf("any",",","any")||e.fetchIf("any");a=s&&(Array.isArray(s)?new Qi(+s.map((e=>e.value.replace(",","."))).join("")):new Qi(s.value))}else{s=e.fetchIf("identifier");const t=new Qi(s?s.value:0);a=o.length>0?o.reduceRight(((e,t)=>new Qi(isNaN(+e)?e:+e,t)),t):undefined}if(a&&typeof t=="number"&&!isNaN(t)&&t!=Number.MAX_SAFE_INTEGER)a=On(a,e);return a}));Tn((e=>{let t;if(e.fetchIf(":")){let o=false;let s=false;let a=1;while(!o&&!s&&e.peek(a)){o=Cn.binaryOperator.some((t=>e.peek(a)?.value==t));s=Cn.comparator.some((t=>e.peek(a)?.value==t));a++}if(o)t=In(e)}const o=e.fetchIf("any");return t?new mn(t):o&&new mn(o.value)}));Tn((e=>{e.raise(`Ignoring unknown token "${e.fetch()}"`);return undefined}));function Vn(e,t,o={input:[],identifier:[]}){return Gn[t?.class]?.(e,t,o)??t}const Gn={};function Kn(e,t){Gn[e]=t}Kn("And",((e,t,o)=>new Lo(t.rules.map((t=>Vn(e,t,o))))));var Zn;(function(e){function t(e,t){let o=undefined;let s;const a=typeof e=="string"?e:e.toString();if(t&&t.input&&t.identifier&&t?.input?.length>0&&t?.identifier?.length>0&&t.identifier.includes(a)){s=t.identifier.indexOf(a);o=isNaN(+t.input[s])?t.input[s]:+t.input[s]}return o}e.argument=t})(Zn||(Zn={}));Kn("EndsWith",((e,t,o)=>{const s=Zn.argument(t.needle,o);return s?new Gi(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("Every",((e,t,o)=>new Zi(Vn(e,t.criteria,o))));Kn("FunctionCall",((e,t,o)=>{const s=e[t.identifier];const a=s?zn(s.definition):undefined;const i=a?Vn(e,a,{input:o?.input?.concat(t.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Ji(t.identifier,t.argument,i)}));Kn("GreaterThan",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new en(s):t}));Kn("GreaterThanOrEqual",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new on(s):t}));Kn("Has",((e,t,o)=>{const s=Zn.argument(t.property,o);return s?new an(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("Includes",((e,t,o)=>{const s=Zn.argument(t.needle,o);return s?new ln(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("LesserThan",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new yn(s):t}));Kn("LesserThanOrEqual",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new fn(s):t}));Kn("Not",((e,t,o)=>new kn(Vn(e,t.criteria,o))));Kn("Or",((e,t,o)=>new wn(t.criteria.map((t=>Vn(e,t,o))))));Kn("Property",((e,t,o)=>new Hn(t.name,t.criteria&&Vn(e,t.criteria,o))));Kn("Some",((e,t,o)=>new dn(Vn(e,t.criteria,o))));Kn("StartsWith",((e,t,o)=>{const s=Zn.argument(t.needle,o);return s?new Un(typeof s=="object"?s.value.toString():s.toString()):t}));Kn("Is",((e,t,o)=>{const s=Zn.argument(t.value,o);return s?new mn(s):t}));class qn extends So{constructor(e){super();this.criteria=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(e){return this.criteria.length==e.length&&this.criteria.every(((t,o)=>t.is(e[o])))}toString(){return`[${this.criteria.map((e=>e.toString())).join(", ")}]`}}zo((e=>Array.isArray(e)?new qn(e.map(To)):undefined));function Jn(e,t){const o=To(e);return t?o.is(t):o}function Xn(e,t){const o=To(e);return o.filter(t)}const Qn=d({emit:h()});var el;(function(e){let t;(function(e){e.type=d({property:b().optional(),properties:m(b(),b()).optional()})})(t=e.Element||(e.Element={}));e.type=t.type.extend({smoothlyFilterUpdate:Qn,smoothlyFilterManipulate:Qn})})(el||(el={}));const tl='.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 ol=tl;const sl=class{constructor(t){e(this,t);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Ao();this.expanded=false}updateHandler(e){e.stopPropagation();if(el.Element.type.is(e.target))this.filters.add(e.detail)}manipulateHandler(e){e.stopPropagation();this.updating=true;this.criteria=e.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((e=>e(this.criteria)));this.updating=false}filterFieldHandler(e){e.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=Ao(e.detail));this.filters.forEach((e=>e(this.criteria)))}}clear(){var e;(e=this.field)===null||e===void 0?void 0:e.clear();this.smoothlyFilter.emit(this.criteria=Ao());this.filters.forEach((e=>e(this.criteria)))}render(){return t(s,{key:"8d508a972373e320e8c176529e4e96c44e98ef02"},t("slot",{key:"8c6c5cfe4a9f15a933b923b2238fae2325e1e9f8",name:"bar"}),t("smoothly-filter-field",{key:"23b25507f9bd5b7ca557491b6b27a99d3aa28942",criteria:this.criteria,ref:e=>this.field=e}),this.criteria.toString()!=""&&t("smoothly-icon",{key:"dd857c516c6fa74d93d58152aac2791d9e83c650",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),t("div",{key:"47fd4b90b77237cc99131f6e6ee76d066ebc4bff",class:this.expanded?"container arrow-top":"hidden"},t("slot",{key:"3900c4604b1dd8684c7f5f0060dc70d49d9d2f9f",name:"detail"})),t("smoothly-icon",{key:"e516c6c71b87ca93b155cbf778a7cef79b590e2d",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),t("div",{key:"301873500cf475507be2b3a7cbe5bbc07e69f38b",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};sl.style=ol;const al=".sc-smoothly-filter-field-h{flex-grow:5}";const il=al;const nl=class{constructor(t){e(this,t);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.criteria=undefined}async clear(){var e;await((e=this.input)===null||e===void 0?void 0:e.clear())}filterFieldEmit(){var e,t;this.smoothlyFilterField.emit(zn((t=(e=this.input)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""))}render(){return t(s,{key:"2633f0911b393af632de050a1dcc1415564eff38",onKeyDown:e=>e.key=="Enter"&&this.filterFieldEmit()},t("smoothly-input",{key:"de303c1e68d0b27578ff1005f794c268c747b085",name:"filter",ref:e=>this.input=e,value:this.criteria.toString(),onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyBlur:e=>{e.stopPropagation();this.filterFieldEmit()},onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation()}},"Filter"))}};nl.style=il;const ll=".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 rl=ll;const cl=class{constructor(t){e(this,t);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(e){var t;if(e instanceof Lo&&e.rules.length>0)for(const o of e.rules){const e=this.isCriteria(o,this.property);if(e){this.needle=(t=e.needle)!==null&&t!==void 0?t:"";break}}else this.needle=""}isCriteria(e,t){const[o,...s]=t.split(".");return e instanceof Hn&&e.name==o&&(e.criteria instanceof ln&&e.criteria||e.criteria instanceof Hn&&this.isCriteria(e.criteria,s.join(".")))||undefined}inputHandler(e){e.stopPropagation();const t=e.detail[this.property];const o=e=>{let o=e;const s=t?this.getCriteria(t):undefined;if(o instanceof Lo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s?e!=-1&&o.rules.splice(e,1):e==-1?o.rules.push(s):o.rules[e]=s;o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(e){return this.property.split(".").reduceRight(((e,t)=>Fn(t,e)),rn(e))}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Hn&&e.name==o&&(s.length==0||!!e.criteria&&this.findInstanceOf(e.criteria,s.join(".")))}render(){return t("smoothly-input",{key:"bf48d8851eee96f60aac0a53887ed69c74215a9e",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>this.inputHandler(e)},this.label,t("slot",{key:"a9cf8cfc974ae9008e682bcb8ce1328abf4681d5"}))}};cl.style=rl;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 hl=dl;const bl=class{constructor(t){e(this,t);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((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}))}async componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(e){var t,o;(o=await((t=this.selectElement)===null||t===void 0?void 0:t.getItems()))===null||o===void 0?void 0:o.forEach((e=>this.items.set(e.value,{state:this.property.split(".").reduceRight(((e,t)=>({[t]:e})),e.value),item:e})))}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks)}}update(e){this.updating=true;if(e instanceof Lo&&e.rules.length>0)for(const t of this.items.values()){const o=e.rules.some((e=>this.isCriteria(e,this.property,t.state)&&(this.type=="array"?this.findInstanceOf(e,this.property):e.is(t.state))));t.item.selected=o}else this.items.forEach((e=>e.item.selected=false));this.updating=false}isCriteria(e,t,o){const[s,...a]=t.split(".");const i=e instanceof Hn&&e.name==s?this.isCriteria(e.criteria,a.join("."),o[s]):this.multiple?e instanceof Dn&&e.value.some((e=>e==o))||this.type=="array"&&e instanceof Rn&&e.criteria.some((e=>e==o)):e instanceof mn&&e.value==o;return i}selectHandler(e){e.stopPropagation();if(!this.updating){const t=e.detail[this.property];const o=e=>{let o=e;const s=this.getCriteria(t);if(!(o instanceof So))o=s?Ao(o,s):o;else if(o instanceof Lo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s&&e>=0?o.rules.splice(e,1):!s?undefined:e==-1?o.rules.push(s):o.rules[e]=s;o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Hn&&e.name==o&&(e.criteria instanceof Dn||e.criteria instanceof mn||e.criteria instanceof Rn||e.criteria instanceof Hn&&this.findInstanceOf(e.criteria,s.join(".")))}getCriteria(e){let t;if(this.multiple&&b().array({criteria:"minLength",value:1}).is(e))t=this.type=="array"?Pn(e):Mn(e);else if(typeof e=="string")t=Jn(e);else t=undefined;return t&&this.property.split(".").reduceRight(((e,t)=>Fn(t,e)),t)}render(){return t("smoothly-input-select",{key:"8c8521687fa9e4f676a2b5ec178e2ec8cecaeda4",ref:e=>this.selectElement=e,name:this.property,looks:this.looks,multiple:this.multiple,menuHeight:this.menuHeight,onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyItemSelect:e=>e.stopPropagation(),onSmoothlyInput:e=>this.selectHandler(e)},this.label&&t("span",{key:"cdaaaeec31f18cc52729a570a41c3140cf23c8fc",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),t("slot",{key:"a4e37edbc53abe52fef8530fbe18d3bfbecf4e6c",name:"items"}))}get element(){return a(this)}};bl.style=hl;const ml=".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 yl=ml;const ul=class{constructor(t){e(this,t);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(e){if(e instanceof Lo&&e.rules.length>0){this.active=Object.entries(this.properties).every((([t,o])=>e.rules.some((e=>{const s=!this.not?e:e instanceof kn?e.criteria:undefined;return o==""?!(s instanceof Hn&&s.name==t):this.isCriteria(s,t,o)}))))}else this.active=false}isCriteria(e,t,o){const[s,...a]=t.split(".");return e instanceof Hn&&e.name==s&&(e.criteria instanceof mn&&e.criteria.value==o||this.isCriteria(e.criteria,a.join("."),o))}activeHandler(e){const t=t=>{let o=t;e&&(this.active=!this.active);if(o instanceof Lo){for(const[e,t]of Object.entries(this.properties)){const s=!this.active||this.active&&t==""?undefined:this.not?vn(this.createCriteria(e,t)):this.createCriteria(e,t);const a=o.rules.findIndex((t=>this.findInstanceOf(t,e)));!s&&a>=0?o.rules.splice(a,1):!s?undefined:a==-1?o.rules.push(s):o.rules[a]=s}o=Ao(...o.rules)}return o};this.smoothlyFilterManipulate.emit(t.bind(this))}createCriteria(e,t){const[o,...s]=e.split(".");return Fn(o,s.length==0?Jn(t):this.createCriteria(s.join("."),t))}findInstanceOf(e,t){const o=!this.not?e:e instanceof kn?e.criteria:false;const[s,...a]=t.split(".");return o instanceof Hn&&o.name==s&&(a.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,a.join(".")))}render(){return t("smoothly-icon",{key:"0d4679c2a62356f5fa7b537073553a2a04d022c7",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};ul.style=yl;var fl;(function(e){function t(e){return typeof e=="string"&&(e=="GET"||e=="POST"||e=="DELETE"||e=="HEAD"||e=="PATCH"||e=="PUT"||e=="OPTIONS"||e=="TRACE"||e=="CONNECT")}e.is=t;function o(e){e=e?.toUpperCase();return t(e)?e:undefined}e.parse=o})(fl||(fl={}));const pl={};function gl(e,...t){t.forEach((t=>pl[t]=e))}function kl(e){const t=e.headers.get("Content-Type");const o=t&&t.split(";");const s=pl[o?.[0]??"plain/text"];return s?s(e):e.text()}const vl={};function xl(e,...t){t.forEach((t=>vl[t]=e))}function wl(e,t){const o=vl[t?.split(";")[0]??""];return o?o(e,t):e}function Sl(e){return e.toLowerCase().replace(/-[a-z]/g,(e=>e.substring(1).toUpperCase()))}function Cl(e){const t=e.replace(/[A-Z]/g,(e=>"-"+e));return t[0].toUpperCase()+t.substring(1)}const zl=[["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 jl;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&zl.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=zl.find((([t,o,s])=>t==e));return[o?o[1]:Cl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?[...e]:Object.entries(e)).map((([e,t])=>{const o=zl.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[Sl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.entries=="function"}})(jl||(jl={}));var _l;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["method","url","parameter","search","remote","header","body"].some((t=>t==e))))&&fl.is(e.method)&&e.url instanceof URL&&typeof e.parameter=="object"&&Object.entries(e.parameter).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&typeof e.search=="object"&&Object.entries(e.search).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&(e.remote==undefined||typeof e.remote=="string")&&(e.header==undefined||jl.is(e.header))}e.is=t;async function o(e){const o=t(e)?e:a(e);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:e,...t})=>t)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:jl.to(s),body:["GET","HEAD"].some((e=>e==o.method))?undefined:await wl(await o.body,o.header.contentType)}}e.to=o;function s(e){const t=new URL(e.url);return{method:fl.parse(e.method)??"GET",url:t,header:jl.from(e.headers),parameter:{},search:Object.fromEntries(t.searchParams.entries()),body:kl(e),..."cf"in e&&{cloudflare:e.cf}}}e.from=s;function a(e){let t;if(typeof e=="string")t=a({url:e});else{const o=typeof e.url=="string"?new URL(e.url):e.url;t={method:fl.parse(e.method)??"GET",url:o,parameter:e.parameter??{},search:{...e.search,...Object.fromEntries(o.searchParams.entries())},remote:e.remote,header:e.header??{},body:e.body}}return t}e.create=a;(function(e){e.is=jl.is;e.from=jl.from;e.to=jl.to})(e.Header||(e.Header={}))})(_l||(_l={}));const Tl=typeof Response!="undefined"?Response:globalThis.Response;var Il=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Ol=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Ll,Al,El,Dl,Ml,$l,Rl,Pl,Nl;class Hl{get state(){return Il(this,Dl,"f")?"closed":"opened"}set onMessage(e){if(Il(this,Al,"f").length&&e){Il(this,Al,"f").forEach(e);Ol(this,Al,[],"f")}Ol(this,$l,e,"f")}set onClose(e){if(this.state=="closed"&&e)e();Ol(this,Rl,e,"f")}set onOpen(e){if(this.state=="opened"&&e)e();Ol(this,Nl,e,"f")}constructor(e,t){Ll.add(this);Al.set(this,[]);El.set(this,[]);Dl.set(this,false);Ml.set(this,void 0);$l.set(this,void 0);Rl.set(this,void 0);Nl.set(this,void 0);Ol(this,Ml,e,"f");if(t)Ol(this,El,undefined,"f");Il(this,Ml,"f").addEventListener("open",(()=>{if(Il(this,Nl,"f"))Il(this,Nl,"f").call(this);Il(this,Ll,"m",Pl).bind(this)}));Il(this,Ml,"f").addEventListener("message",(async e=>{const t=this.processReceived(e.data);Il(this,Ll,"m",Pl).call(this);if(Il(this,$l,"f"))Il(this,$l,"f").call(this,t);else Il(this,Al,"f")?.push(t)}));Il(this,Ml,"f").addEventListener("close",(()=>{if(Il(this,Rl,"f"))Il(this,Rl,"f").call(this);Ol(this,Dl,true,"f")}))}send(e){if(Il(this,El,"f"))Il(this,El,"f").push(this.processSend(e));else Il(this,Ml,"f").send(this.processSend(e))}}Al=new WeakMap,El=new WeakMap,Dl=new WeakMap,Ml=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Nl=new WeakMap,Ll=new WeakSet,Pl=function e(){Il(this,El,"f")?.forEach((e=>Il(this,Ml,"f").send(e)));Ol(this,El,undefined,"f")};class Fl extends Hl{processReceived(e){return e?.arrayBuffer?e.arrayBuffer():typeof e=="string"?(new TextEncoder).encode(e).buffer:e}processSend(e){return e}}class Ul extends Hl{processReceived(e){return JSON.parse(e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e)}processSend(e){return JSON.stringify(e)}}class Yl extends Hl{processReceived(e){return e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e}processSend(e){return e}}var Wl=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Bl=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Vl,Gl,Kl;class Zl{get json(){if(!Wl(this,Vl,"f"))Bl(this,Vl,new Ul(this.backend,this.isOpen),"f");return Wl(this,Vl,"f")}get string(){if(!Wl(this,Gl,"f"))Bl(this,Gl,new Yl(this.backend,this.isOpen),"f");return Wl(this,Gl,"f")}get arrayBuffer(){if(!Wl(this,Kl,"f"))Bl(this,Kl,new Fl(this.backend,this.isOpen),"f");return Wl(this,Kl,"f")}constructor(e,t){this.backend=e;this.isOpen=t;Vl.set(this,void 0);Gl.set(this,void 0);Kl.set(this,void 0)}createResponse(e={}){return{status:101,socket:this,header:e}}close(e,t){this.backend.close(e,t)}}Vl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap;var ql;(function(e){e.Factory=Zl})(ql||(ql={}));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 Xl;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&Jl.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=Jl.find((([t,...o])=>t==e));return[o?o[1]:Cl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?n(e):Object.entries(e)).map((([e,t])=>{const o=Jl.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[Sl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.forEach=="function"}function n(e){const t=[];e.forEach(((e,o)=>t.push([o,e])));return t}})(Xl||(Xl={}));var Ql;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||Xl.is(e.header))&&(e.socket==undefined||typeof e.socket.close=="function"&&typeof e.socket.json?.send=="function"&&typeof e.socket.string?.send=="function"&&typeof e.socket.arrayBuffer?.send=="function")&&(e.status!=undefined||e.header!=undefined||e.body!=undefined)}e.is=t})(Ql||(Ql={}));var er;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||Xl.is(e.header))&&(e.socket==undefined||e.socket instanceof WebSocket)}e.is=t;async function o(e){return new Tl(await wl(await e.body,e.header.contentType),{status:e.status,headers:new Headers(Xl.to(!e.header.contentType?.startsWith("multipart/formdata")?e.header:(({contentType:e,...t})=>t)(e.header))),...e.socket&&{webSocket:{...e.socket.createResponse().socket}?.backend}})}e.to=o;function s(e){return{status:e.status,header:Xl.from(e.headers),body:e.status==101?undefined:kl(e),...e.webSocket&&{socket:new ql.Factory(e.webSocket)}}}e.from=s;function a(e,t){const o=Ql.is(e)?{status:200,header:{},body:undefined,...e.socket&&{socket:e.socket},...e}:typeof e?.createResponse=="function"&&(t==undefined||Xl.is(t))?e.createResponse(t):{status:typeof e=="object"&&typeof e.status=="number"&&e.status||200,header:typeof e=="object"?{...e.header,...(e.status==301||e.status==302)&&e.location?{location:e.location}:{}}:{},body:!(typeof e=="object"&&!Array.isArray(e))||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof FormData?e:(({header:e,...t})=>t)(e),...e.webSocket&&{socket:new ql.Factory(e.webSocket)}||e.socket&&{socket:e.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof t=="string"?t:t?.contentType?t.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?i(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}e.create=a;function i(e){const t=new Uint8Array(ArrayBuffer.isView(e)?e.buffer:e).slice(0,4);return[37,80,68,70].every(((e,o)=>e==t[o]))}e.Header=Xl;e.Like=Ql})(er||(er={}));const tr=or(globalThis.fetch);tr.create=or;function or(e){return async t=>{const o=_l.create(t);return er.from(await e(o.url.toString(),await _l.to(o)))}}var sr;(function(e){function t(e){const t=new globalThis.FormData;t.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(e,"",t)))],{type:"application/json; charset=utf-8"}));return t}e.to=t;function o(e,t,a){return Object.entries(e).reduce(((e,[i,n])=>{n instanceof Blob?a.append(t?`${t}.${i}`:i,n):typeof n=="object"&&n?Array.isArray(n)?e[i]=s(n,t?`${t}.${i}`:i,a):e[i]=o(n,t?`${t}.${i}`:i,a):e[i]=n;return e}),{})}function s(e,t,a){return e.reduce(((e,i)=>{typeof i=="object"&&i?Array.isArray(i)?e.push(s(i,t,a)):e.push(o(i,t,a)):e.push(i);return e}),[])}async function a(e){const t={};for(const[o,s]of e.entries())await i(t,o.split("."),s);return t}e.from=a;async function i(e,[t,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?t=="*"?n(e,JSON.parse(await s.text())):typeof e[t]=="object"&&e[t]?n(e[t],JSON.parse(await s.text())):e[t]=JSON.parse(await s.text()):e[t]=s;else i(typeof e[t]=="object"&&e[t]?e[t]:e[t]={},o,s)}function n(e,...t){if(t.length){const[o,...s]=t;Object.entries(o).forEach((([t,s])=>l(s)?n(l(e[t])?e[t]:e[t]={},s):e[t]=o[t]));n(e,...s)}}function l(e){return e&&typeof e=="object"&&!Array.isArray(e)}e.isObject=l})(sr||(sr={}));function ar(e){const t=[];const o=(e,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":t.push(`${e}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))o(e?e+`[${t}]`:t,s[t]);break}};o("",e);return t.join("&")}function ir(e){const t=e=>typeof e=="object"&&Object.keys(e).sort().every(((e,t)=>`${e}`==`${t}`))?Object.entries(e).sort().map((e=>typeof e[1]=="object"?t(e[1]):e[1])):typeof e=="object"?Object.fromEntries(Object.entries(e).map((e=>[e[0],t(e[1])]))):e;const o=(e,t,s)=>{e[t[0]]=t.length>1?o(e[t[0]]??{},t.slice(1),s):s;return e};const s=e.split("&").map((e=>e.split("=",2))).map((([e,t])=>[decodeURIComponent(e).split("[").map((e=>e.replace("]",""))),decodeURIComponent(t.replace(/\+/g," "))]));return s.reduce(((e,[s,a])=>t(o(e,s,a))),{})}gl((async e=>await e.text()),"text/plain","text/html");gl((async e=>await e.json()),"application/json");gl((async e=>await e.arrayBuffer()),"application/pdf");gl((async e=>sr.from(await e.formData())),"multipart/form-data");gl((async e=>ir(await e.text())),"application/x-www-form-urlencoded");xl((async e=>typeof e=="string"?e:e.toString()),"text/plain","text/html");xl((async e=>JSON.stringify(e)),"application/json");xl((async e=>e),"application/pdf");xl((async e=>ar(e)),"application/x-www-form-urlencoded");xl((async e=>e instanceof globalThis.FormData?e:sr.to(e)),"multipart/form-data");var nr;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.clear=="function"}e.is=t})(nr||(nr={}));var lr;(function(e){let t;(function(e){e.type=d({edit:h(),readonly:y(),listen:h(),reset:h(),setInitialValue:h()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=d({emit:h()});e.type=t.type.extend({changed:y(),value:A().optional(),smoothlyFormDisable:o});e.is=e.type.is})(lr||(lr={}));var rr;(function(e){e.types=["plain","grid","border","line","transparent"];e.type=b(e.types);e.is=e.type.is})(rr||(rr={}));var cr;(function(e){let t;(function(e){e.type=d({register:h(),unregister:h(),getValue:h(),color:c.type.optional(),name:b(),invalid:y().optional(),looks:rr.type,defined:y().optional(),binary:h().optional()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=d({emit:h()});e.type=t.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyInputForm:o.optional(),parent:lr.type.optional()});e.is=e.type.is;function s(e){if(e.parent instanceof br){e.parent.removeInput(e.name)}}e.formRemove=s;function a(e){e.smoothlyInputLoad.emit((t=>e.parent=t))}e.formAdd=a})(cr||(cr={}));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 hr=dr;const br=class{constructor(t){e(this,t);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((e=>this.readonly=e))}async removeInput(e){if(this.element.isConnected){this.value=u.remove(this.value,e);this.inputs.delete(e);this.smoothlyFormInput.emit(u.convertArrays(this.value))}}async listen(e,t){var o;var s;((o=(s=this.listeners)[e])!==null&&o!==void 0?o:s[e]=[]).push(t);t(this)}async watchValue(){var e,t,o;this.changed=[...this.inputs.values()].some((e=>lr.type.is(e)?e.changed:true));if(this.validator){const o=(t=(e=this.validator)===null||e===void 0?void 0:e.flaw(this.value).flaws)===null||t===void 0?void 0:t.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{});for(const[e,t]of this.inputs.entries()){this.validate(o,e,t)}}(o=this.listeners.changed)===null||o===void 0?void 0:o.forEach((e=>e(this)))}validate(e,t,o){var s,a;if(t.includes(".")){const[i,...n]=t.split(".");const l=(a=(s=e===null||e===void 0?void 0:e[i])===null||s===void 0?void 0:s.flaws)!==null&&a!==void 0?a:[];this.validate(l.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{}),n.join("."),o)}else{const s=e===null||e===void 0?void 0:e[t];o&&(o.invalid=!!s)}}watchReadonly(){var e;(e=this.listeners.changed)===null||e===void 0?void 0:e.forEach((e=>e(this)))}smoothlyInputLooksHandler(e){e.stopPropagation();e.detail(this.looks,this.color)}async smoothlyInputHandler(e){this.value=u.merge(this.value,e.detail);this.smoothlyFormInput.emit(u.convertArrays(this.value))}windowSubmitHandler(e){e.target==this.element&&e.detail.result(false)}submitHandler(e){this.action&&e.stopPropagation()}async smoothlyInputLoadHandler(e){var t,o;e.stopPropagation();e.detail(this);if(cr.Element.is(e.target)){if(await((o=(t=e.target).binary)===null||o===void 0?void 0:o.call(t)))this.contentType="form-data";const s=await e.target.getValue();this.value=u.merge(this.value,{[e.target.name]:s});this.smoothlyFormInput.emit(u.convertArrays(this.value));this.inputs.set(e.target.name,e.target)}}async smoothlyFormDisableHandler(e){e.stopPropagation();e.detail(this.readonly)}async submit(e){this.processing=new Promise((t=>{this.smoothlyFormSubmit.emit({value:u.convertArrays(this.value),result:t,type:e==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(O.execute("Submitting form",(async()=>{const s=e?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const a=await tr(_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 i=!a||(a===null||a===void 0?void 0:a.status)<200||a.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];t(i[0]);return[...i]})))}}));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 e=>nr.is(e)&&e.clear())));this.smoothlyFormClear.emit()}async edit(e){await Promise.all([...this.inputs.values()].map((async t=>lr.Element.type.is(t)&&t.edit(e))));this.readonly=!e;this.smoothlyFormEdit.emit(e)}async reset(){await Promise.all([...this.inputs.values()].map((e=>lr.Element.type.is(e)&&e.reset())));this.changed=[...this.inputs.values()].some((e=>lr.type.is(e)?e.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((e=>lr.Element.type.is(e)&&e.setInitialValue())))}render(){return t(s,{key:"4bcff20afa0c1467d5e404f1f43df8121d3af299"},t("smoothly-spinner",{key:"eabacd57d478a69cef2380d874368fcb70045414",overlay:true,hidden:!this.processing}),t("form",{key:"7928cf5c376f3a5b37bebd3b4fe2d37e5c84af19",onSubmit:!this.prevent?undefined:e=>e.preventDefault(),name:this.name},t("fieldset",{key:"d265a35e7a9b148cbc25529d8fec13d3bc8b99b7"},t("slot",{key:"f7d13fe2420dd95b89f1797c575655030bd24efe"})),t("div",{key:"610e884eba8398fefa567ce9c20fa7c82b1c4f3a"},t("slot",{key:"8619569518577e4d7208a089b8035788de8c5a98",name:"clear"}),t("slot",{key:"d799c17f6c8c101cd058452ec0c5ac0fa4920f08",name:"edit"}),t("slot",{key:"1d630d00faef80319699f4c34b782dfb3e9952ba",name:"reset"}),t("slot",{key:"f55189740776bc7529a7750bd87524e778d3848d",name:"delete"}),t("slot",{key:"a05495198a8f9a509d8a13edf13626f45c779ac6",name:"submit"}))))}get element(){return a(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};br.style=hr;const mr=".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 yr=mr;const ur=class{constructor(t){e(this,t)}render(){return t(s,{key:"d1a1ede38040f5b5e6bd5e838b5a550ce262ed1b"},t("div",{key:"3cf3e63c28b5429fe4758e5f78209db968728f3c"},t("smoothly-form-demo-all",{key:"20f3cc618aa4d43f4e2b8f45f8d5086eb1b64974"}),t("smoothly-form-demo-pet",{key:"ed75d9093ad32d3c96dc351b237f572653d61bd0"}),t("smoothly-form-demo-card",{key:"d330a9da5f85438404481c9dd27773bb52e84f19"}),t("smoothly-form-demo-login",{key:"6fab86879750d7a9a9a7b1015f0ee6fdc48efe8d"}),t("smoothly-form-demo-prices",{key:"3f55668d9e139241facdf4f0ca53a4c354eeb4d8"}),t("smoothly-form-demo-typed",{key:"083dfe2ee9ce90ae3456575214f0b5cda0977191"}),t("smoothly-form-demo-transparent",{key:"0bd752cae80162cb289ad7de49dc811fd16a11ea"}),t("smoothly-form-demo-date",{key:"b2b53a2fcd431d1a02cbf5460715bb826aa990e2"}),t("smoothly-form-demo-date-range",{key:"6eafe3c351e4046f663e5ebae243c2af667b1cd7"}),t("smoothly-form-demo-controlled",{key:"ef5b1c51634cde1c6d218cac3eed1997ebd28e3a"})))}};ur.style=yr;const fr=class{constructor(t){e(this,t)}render(){return t(s,{key:"0f21d33f0e276513e166b7d8c4d28cb0fe7091a1"},t("h2",{key:"4a2468e208c16e4167f1178e330cc3a728320655"},"All inputs"),t("smoothly-form",{key:"0822ae30e4c7f3cd554a78487e885c57d8c9ff95",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:e=>{Object.entries(e.detail.value).forEach((([e,t])=>console.log(e,t)))}},t("smoothly-input",{key:"1c9e5c3e5f1c716f67b2c5ec2fb651572744b333",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"90733dfb428a9f970243bba603d3d197604a9455",showLabel:false,name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"55bf51e2e1cec08c3290f9b17a4315458edf5d3e",size:"icon",slot:"end"})),t("smoothly-input",{key:"1b47ddc2f7e13edd32fd2df6e170bc121f51dc2d",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"1a6d49a72b07eb3f3d75be7ee2fcf313ab45e14f",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"00d26bda7e79761dda3fed03b7740c379da4b32e",clearable:true,name:"radioFirstInput"},t("label",{key:"e0c10ccf7862d02495f2a21fa6a5b3e6e5a81366",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"7fc58ab2d7d56c5b56a5d85dc55948b6cb80daef",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"f759c7030781b224327d6d3137dc7037d47572c8",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"7e7b2315ada97801325de0092ee7cab101bc15b7",value:"third"},"Label 3")),t("smoothly-input-color",{key:"b8e88392cbabec7fbfedcfb911e93bea40519890",name:"color"},"Color"),t("smoothly-input-select",{key:"86a90a29af509f435db9da5d77a0b90e1f79a598",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"2e124336d215afd82376662bcc36e32c9f43308a",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"e0c36476de42fa44637661e4a9409b55d384c660",value:"1"},"January"),t("smoothly-item",{key:"96b6696ca6ede81eeec72b77439d40822daff299",value:"2"},"February"),t("smoothly-item",{key:"659caf5ba8d4b51989b50a3206117b97a1e598f0",value:"3"},"March"),t("smoothly-item",{key:"573738299642bb2fc635695f36da963c8dd51529",value:"4"},"April"),t("smoothly-item",{key:"8b742ac119480699df135c0a185502f140a9d313",value:"5"},"May"),t("smoothly-item",{key:"79fb2a26a13dec2e83255c2c46ac6148cb61527b",value:"6"},"June"),t("smoothly-item",{key:"fe4b4a0dfa8a528fc15dcb66d5f82576bf44843e",value:"7"},"July"),t("smoothly-item",{key:"492b19d88d76e555270b1ca2e08228b815ec732d",value:"8"},"August"),t("smoothly-item",{key:"1c0fb21d9a40cfa9f199473c0db7bfa68e2f0ce7",value:"9"},"September"),t("smoothly-item",{key:"c868e100c1e9e1aac4bd9ad361157e2adccc63d0",value:"10"},"October"),t("smoothly-item",{key:"cbc309fae9cef27950776c56f3d4a71afbcdc1fb",value:"11"},"November"),t("smoothly-item",{key:"fdba2e89192bc16d5aaf80504b86c519fb227b03",value:"12"},"December")),t("smoothly-input-select",{key:"a9897fd31987b376259a08b01917a4f9ef0752f3",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"639d58a3b335a031d1574d5d8929a6b05e68634f",value:"folder",selected:true},t("smoothly-icon",{key:"98d6aec9c4db1a9700b089bfdcbaf81540a09263",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"4f6d162120f779e881b21a75c54cb8cf747c67c5",value:"camera"},t("smoothly-icon",{key:"eadbd3179e5aabe9c8fdd2d029e5c7df06b5ac6d",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"aeebf927e1effc92ec1bbc9fc72230daa9b612c2",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"e8bd53788ece3fda1352417d227cad8ffd5865b6",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-range",{key:"1e937d34e6882d02922f9c8f325f25b41524908e",step:1,name:"range3",value:20,label:"Range"}),t("smoothly-input",{key:"fef6e5123d81af109a6405ab1f0489ce9c626cd1",name:"pets.0.name"},"First Pet's Name"),t("smoothly-input-range",{key:"56a6e3916e259d2c58fd2d80fc6cccf19442e38d",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),t("smoothly-input",{key:"5d9a6b0b92c6b3fbb992f17c102879729b6a0cd1",name:"pets.1.name"},"Second Pet's Name"),t("smoothly-input-range",{key:"ec65719d0497353d8b434a1854bf9e064ee9089a",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),t("smoothly-input",{key:"af10efc3fcea51c8521942656b1cdee952c1bb5e",name:"pets.2.name"},"Third Pet's Name"),t("smoothly-input-range",{key:"862de755b1e343578226a1308e5e78cb8f7c4a85",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),t("smoothly-input-file",{key:"3d9f140826605a5ebafe05a2784722af204cad75",name:"profile",placeholder:"Click or drag your profile picture here..."},t("span",{key:"4e6feb9e29c018ac8dc1510c0b4224f19470e856",slot:"label"},"Profile"),t("smoothly-icon",{key:"1020a98e15c33c0b2de470af477de457a2f28741",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),t("smoothly-input",{key:"b39173b9b8ccabd790ab8ec26b6ccdaa05397d4a",type:"duration",name:"duration",value:{}},"Duration"),t("smoothly-input-clear",{key:"a6727a03d7855b9741e0f2a3fa82f6e220f8f46d",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),t("smoothly-input-edit",{key:"f9591a4c18cccc97633c83033df084378a8d6826",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"22d67028a219c030fc49981ddeea1f6c6c8ece2e",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"bbed800551c5701c3df9f8405d8630b497cf5efd",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"63c88955ec02dd4a034a55b5dcc09a0824f118e0",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const pr=class{constructor(t){e(this,t)}render(){return t(s,{key:"27bb1a0cce6b941674329084ee89a89ffd834cad"},t("h2",{key:"517da49391df49740f1fa2ec2724b706df8ff253"},"Card"),t("smoothly-form",{key:"50c65dcf24441dd4b0ef889eae29a631bf2d08f5",looks:"grid",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail))},t("smoothly-input",{key:"30040918cb4bfcb6aff2aaf2387e15fc920b637d",type:"card-number",name:"card"},"Card #"),t("smoothly-input-submit",{key:"925ae95728616ae1ecb4130da437380820ffbfe7",size:"icon",slot:"submit",color:"success",fill:"solid"}),t("smoothly-input",{key:"c94bc00a99483172d37171df0d76cbe4b1a306d4",type:"card-expires",name:"expires"},"Expires"),t("smoothly-input",{key:"4e1d172d4f24463480b4260782e0da5e03c79648",type:"card-csc",name:"csc"},"CVV/CVC"),t("smoothly-input",{key:"38f2c00914b9fdb451490c2a1a39f3fd0dcac810",type:"text",name:"name.first"},"First Name"),t("smoothly-input",{key:"5d478d5c6a341a3db81eef8096ebce73afe96d2f",type:"text",name:"name.last"},"Last Name")))}};const gr=class{constructor(t){e(this,t);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=S.now()}nameChanged(e,t){console.log(`updated name from '${t}' to '${e}'`)}async submitHandler(e){e.stopPropagation();console.log("Received event. Processing...",e.detail);if(!(typeof e.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof e.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!j.is(e.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((e=>window.setTimeout(e,1e3)));this.name=e.detail.value.name;this.date=e.detail.value.date;this.currency=e.detail.value.currency;console.log("Finished processing successfully. Resolving true.");e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"04d995a76c5f9c4549fcd74cb9f394bb2af90e2a"},t("h2",{key:"55e6f33bb11d352b3af7230accd23e27ae2c0024"},"Controlled"),t("smoothly-form",{key:"0ef3168da2f1c9621b0308b24119c0364881c0c6",readonly:true,looks:"grid",onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input",{key:"8badcb37b4a6452d5a201bd8094ba158108bf7aa",type:"text",name:"name",value:this.name},"Name"),t("smoothly-input-select",{key:"1efe7c4951dca1aa64401334424b43f02e647398",name:"currency"},t("span",{key:"2b36f82e17c99e916c8e8945577d23ab51bd2c45",slot:"label"},"Currency"),this.currencies.map((e=>t("smoothly-item",{selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"f990f004092a0695318e0f5f4cd2d74bb3c3e00a"},"Dummy"),t("smoothly-input-month",{key:"ddff7d9b07962bbcbe7df05f8d8eccfa61b98771",name:"date",value:this.date,next:true,previous:true},t("span",{key:"0d3753a5d6df09ce0e6985cb93395b630d438cc1",slot:"year-label"},"Year"),t("span",{key:"b65124754a2fe96dbdafa3d7424ba45b824d4527",slot:"month-label"},"Month")),t("smoothly-input-edit",{key:"7209bd3e3a05e6b1c07e41cd093234e44f74e1c3",slot:"edit",size:"icon",color:"primary",fill:"default"}),t("smoothly-input-reset",{key:"cf7211c8a08fee082a295e75ec31f146cd0052a1",slot:"reset",size:"icon",color:"warning",fill:"default"}),t("smoothly-input-submit",{key:"8cbfd5c9f1d020035701235eab374d8c14e2aaab",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const kr=".sc-smoothly-form-demo-date-h{display:block}";const vr=kr;const xr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=d({date:f("isoly.Date",S.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(O.failed(`Type is incomplete.`))}else{this.notice.emit(O.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"f630251d93105a022fddd00df614c31e67e8c7b5"},t("h2",{key:"58288b3ece987d7ce4ec06cd59c3bcd46dc19a72"},"Date input"),t("smoothly-form",{key:"82d07ac321b52972a8eee2d5e0e8dcb6ecf619e3",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date",{key:"80ceded85c7985664236c315978f05654b1cd882",name:"date"},"Date"),t("smoothly-input-submit",{key:"ec11a355dcf06a70b4356ea57522362a80a68d85",slot:"submit"},t("smoothly-icon",{key:"553b78fe04fbbb938d500856a1fdea0fc084c86e",name:"checkmark-outline"}))))}};xr.style=vr;const wr=".sc-smoothly-form-demo-date-range-h{display:block}";const Sr=wr;const Cr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=d({range:f("isoly.DateRange",_.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(O.failed(`Type is incomplete.`))}else{this.notice.emit(O.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"48c35dad0061babccde136943e35ae31a1a2bb03"},t("h2",{key:"3c22dada7556902e648381cca190f7769dc35313"},"Date-range input"),t("smoothly-form",{key:"0b023b3f51c2b03eb8f3a3c352b568cddcd4f7da",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date-range",{key:"906f8f3abc29524353e8416d87ac2f3ed588b798",name:"range"},"Range"),t("smoothly-input-submit",{key:"cf9f0712c8179b9729ed8139d04766ef70f58242",slot:"submit"},t("smoothly-icon",{key:"1754fc104edbb8a19e683ffee519567296fddfd8",name:"checkmark-outline"}))))}};Cr.style=Sr;const zr=class{constructor(t){e(this,t)}render(){return t(s,{key:"4b0e611d58d138b6b10a3abac45fee93aa86a317"},t("h2",{key:"69ba68609f48d993303b35b1ded910dfc6fe77f6"},"Login"),t("smoothly-form",{key:"5dbe7e1e2176484b750b4b8b333b9e840e135136",looks:"border"},t("smoothly-input",{key:"f87daf7b2a9d8c442f28626209cd84e4f9ac3e37",type:"text",name:"username"},"Username"),t("smoothly-input",{key:"8fe4c4a8bd612018c0dc1170b60f2bb40e9696f5",type:"password",name:"password"},"Password"),t("smoothly-input-reset",{key:"c48dcd36130b3b8aa4f442e2ac450afe7f30a810",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"c4f617a7542706566a461675ae2d6828b6a532d9",slot:"submit"})))}};const jr='.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=jr;const Tr=class{constructor(t){e(this,t);this.hasOwner=false;this.owner={};this.value=undefined}render(){var e,o;return t(s,{key:"3c53b7ed2d4c3716346637d021d47503fd43a14a"},t("h2",{key:"ee64a8c839e53d186fc3f5a9e5526ce7f4146098"},"Pet"),t("h3",{key:"64fba77b59e28b7c43dfa4d3a7d6c6d67e31896c"},"Value"),t("smoothly-form",{key:"f4b9585a5f2f9dc69b8e29aba90eefee061b3059",looks:"border",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail)),onSmoothlyFormInput:e=>this.value=Object.assign({},e.detail)},t("smoothly-input",{key:"4e51fb1ed76a65e4290a0886fc520887d0e895ce",type:"text",name:"name.first"},"Name"),t("smoothly-input",{key:"7efe762b7a9374a5e999383a883c2256bfc0ac35",type:"integer",name:"age"},"Age (Years)"),t("smoothly-input-checkbox",{key:"ffcec51e398c836e6cff2ce5dfda39482cc3cfa7",name:"hasOwner",onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{this.hasOwner=e.detail.hasOwner;e.stopPropagation()}},"Has Owner"),this.hasOwner&&t(i,{key:"0aa46abc16f4c78b43031396758719a0ded37b14"},t("smoothly-input",{key:"334e20752a37f0335350151cb0a75e893ee1afae",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:e.detail["owner.firstName"]})},"Owner First Name"),t("smoothly-input",{key:"8026b5c10ae2523f730a861edec471db21190e14",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:e.detail["owner.lastName"]})},"Owner Last Name"),t("smoothly-input-file",{key:"fbf744db0cecd2852d45d20374c3d809d2ba66d7",name:"owner.picture"},t("span",{key:"283c48ba1b67474b7c857d0e5fb1c9c6148cea6f",slot:"label"},"Owner picture")),t("smoothly-input-date",{key:"63e16605bad9e35e1c6c60e2db2748d1db328c4d",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:e.detail["owner.birthday"]})},"Owner birthday"),t("smoothly-input-date-range",{key:"70da494c5ed18ff14fca67a3a28d1c4cb33967e9",name:"owner.ownedRange",start:(e=this.owner.ownedRange)===null||e===void 0?void 0:e.start,end:(o=this.owner.ownedRange)===null||o===void 0?void 0:o.end,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:e.detail["owner.ownedRange"]})},"Owner ownedRange"),t("smoothly-input-range",{key:"6b83cae51495445730e8df1cfdee739984d22901",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{height:e.detail["owner.height"]})},"Owner's Height"),t("smoothly-input-select",{key:"37b12e61593accb16cf090da36cbadd5352fe69f",name:"owner.favoriteHat"},t("span",{key:"522e857a7afb2329b422b407703cbee51612d675",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o,selected:this.owner.favoriteHat==e},e)))),t("smoothly-input-color",{key:"babff66ef827128dc76008d19917eaba6d5b8bd5",name:"owner.favoriteColor",value:this.owner.favoriteColor?p.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:e.detail["owner.favoriteColor"]})},"Owner's Favorite Color"),t("smoothly-input-radio",{key:"51f58bf37b41d9f8eca8700dfd26b4083d2f4087",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:e.detail["owner.favoritePizza"]})},t("span",{key:"c77c02447327750693eb73b6414dbce9bb0d9855",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"6918e8eee355a1e951289cb2b08ae1ae44b4d50d",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:e.detail["owner.hasPet"]})},"Has Pet")),t("smoothly-summary",{key:"86339dace672dec3831ad33a89a8205d65a44067"},t("span",{key:"1f46ab814504129410b0e0b5a324504eb9c7a3bd",slot:"summary"},"Summary"),t("div",{key:"a2e1f716a3bed994318f944dd84addf09fa68e38",slot:"content"},t("smoothly-input",{key:"703e71027659f823a979687d95a43c08104fd138",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),t("smoothly-input-file",{key:"7241934c607ef4775e4e5b5bdd8f16c00e7cb5ba",name:"summary.picture"},t("span",{key:"3e54f9ffc78d32b3f6ae6922f1ffcd93c49d58b2",slot:"label"},"Summary picture")),t("smoothly-input-date",{key:"53f53274ba847482ac4a44894f052c95f02b19d7",name:"summary.birthday"},"Summary birthday"),t("smoothly-input-date-range",{key:"c0463d1f8b712e7d9bc067348702c5d8114758b3",name:"summary.ownedRange"},"Summary ownedRange"),t("smoothly-input-range",{key:"8a0835af7cac1a961c89563984b7f4299086785e",name:"summary.height"},"Height"),t("smoothly-input-select",{key:"888df31b68297ba73368f93b598f8897871fac7d",name:"summary.favoriteHat"},t("span",{key:"54f47458eeec94270e433e76b486f51b8bda553c",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-month",{key:"aa1b528332dc4e384714e8434eb8eaccb1238af1",name:"summary.month"},"Summary Month"),t("smoothly-input-color",{key:"03e528e7e497481bdb8741529cf2f35ce3c063ed",name:"summary.color"},"Summary Color"),t("smoothly-input-radio",{key:"e394ffc5c8d91b7e9a7a5a85db6d77aba7480445",name:"summary.favoritePizza"},t("span",{key:"f40af9c8a324eae7e098baf45a7fc62a51db44a9",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"3a724ec08f9db20e8c8a6adc975908804273aff8",name:"summary.hasPet"},"Has Pet"))),t("smoothly-tabs",{key:"7393b61a3852772efcb92b287310ba4f1d825a89"},t("smoothly-tab",{key:"36527d22fdcb6c3fed70c817f84b40457daf6e3b",label:"Dog"},t("smoothly-input",{key:"112b46f947bec3350bd71d70983dd6cb2bd5f023",type:"text",name:"dog.breed"},"Breed"),t("smoothly-input-file",{key:"70cb42494c87433b376381dadf6d76c0d2e173dd",name:"dog.picture"},t("span",{key:"5081c67a2c38b56ef2c63038363b66f6a9399848",slot:"label"},"Dog picture")),t("smoothly-input-date",{key:"b2a7afc24117ff0f748461de59be5b53b4c11f8e",name:"dog.birthday"},"Dog birthday"),t("smoothly-input-date-range",{key:"8ea4837d9c59dccea4a4c03ab5d3d64e9e61f6bc",name:"dog.dateRange"},"Dog date range"),t("smoothly-input-select",{key:"d1df59726ccdf95cc296eb7dfefe7f242644012b",name:"dog.favoriteHat"},t("span",{key:"daf751759c26ed6f814bd9a08fc3dcd1e87bc727",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-color",{key:"1139d9780da74962df9e2cad90c5215a4cbbc719",name:"dog.favoriteColor"},"Dog's Favorite Color"),t("smoothly-input-radio",{key:"f420307f2437e68f198dda8e7d883e8e48825385",name:"dog.favoritePizza"},t("span",{key:"0bbfda786c21f78d3c11802ff91eaf407c61bbfe",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"b4ed76b8df431ac2690d1e9fc788f1224bccd1da",name:"dog.hasPet"},"Has Pet")),t("smoothly-tab",{key:"7676494d9d81eabef36fc63d84a009792ab896bb",label:"Cat",open:true},t("smoothly-input",{key:"1aae371a8c2744e30d1883b28edb28fd3865a847",name:"cat.favoriteFood"},"Favorite Food"))),t("smoothly-input-submit",{key:"594e2fc70306fcf0c2adc90ba9ef7712a64fcff9",size:"icon",slot:"submit",color:"success",fill:"solid"})),t("smoothly-display",{key:"c3ba7a735d158a39102d98ac5cf113c74c2596cd",type:"json",value:this.value}))}};Tr.style=_r;const Ir=class{constructor(t){e(this,t)}render(){return t(s,{key:"c38c5381d2318cce67e32a9a776d68772c601ee8"},t("h2",{key:"c1314867af69f2237b64683bd7221ede1438cbac"},"Prices"),t("smoothly-form",{key:"69192fbd1de099c4a0989d1ca8a6fa2d115f47e3",looks:"line"},t("smoothly-input",{key:"6939a3f45e811472ff89bf40e58653bb9f44208e",type:"price",name:"no"},"No currency"),t("smoothly-input",{key:"100c148021dbad1f1abf46d6e87cf1e2a9e12f43",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),t("smoothly-input",{key:"c35b955e1c1582913248d919cb64d170947423e2",type:"price",name:"usDollar",currency:"USD"},"USD"),t("smoothly-input",{key:"ae21229ce2c2f7e1e4ff4e3892cf4afa6efdadb5",type:"price",name:"pounds",currency:"GBP"},"GBP"),t("smoothly-input",{key:"c21a6d4e2d388a28c4b14da1a0c98cd8a6ab9920",type:"price",name:"peso",currency:"UYW"},"UYW"),t("smoothly-input",{key:"208232229cf7c6e292fcbe179a00bab9399aaa2d",type:"price",name:"iceland",currency:"ISK"},"ISK"),t("smoothly-input",{key:"446f7eb15e73b5a3e10a9760cc6041d0c922a0f3",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),t("smoothly-input-reset",{key:"b267b8686d2bae8f33f003789eab99d37f6c04ba",slot:"reset",fill:"default",type:"form",color:"warning"}),t("smoothly-input-submit",{key:"9468f459a23ae781d660134ee16b7ba2c758153c",slot:"submit"})))}};const Or=class{constructor(t){e(this,t)}render(){return t(s,{key:"75f6427077012bf2ab455b5ce1ee551f4ada6152"},t("h2",{key:"fa603e4a15cf63c027b88c24c8ff31b2f7692fab"},"Transparent"),t("smoothly-form",{key:"e91c69cc412d1ceaf5d3b160585125f0008a559b",looks:"transparent",onSmoothlyFormSubmit:e=>console.log(e.detail.value)},t("smoothly-input-file",{key:"627abbdcd742e2d32db644d09ffe548db35ef6af",name:"file"},t("span",{key:"c33dea3dac428f2e0a2af92c7595f8e493ff403d",slot:"label"},"File"),t("smoothly-icon",{key:"6ea09d804e3b1ad46c73ae1d1a1dc71ebb34cdc9",slot:"button",name:"folder-open-outline",size:"small"})),t("smoothly-input",{key:"0a22f7f505e1ec9ecc3d6aec656a3944e6d24e3a",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),t("smoothly-input-date",{key:"ecf89e51ee2c9d1c1c749f9072eec14dfa31971a"},"Date"),t("smoothly-input-date-range",{key:"7e80495bd6d8f6b5677c9b32bd9a7c67d045fc88"},"Date Range"),t("smoothly-input-select",{key:"82030484abfbe81c584b477e605901919edb8e8b",name:"transport"},t("smoothly-item",{key:"6fa3bd409901bb2526eb236e32efdb8b3b8209f4",value:"plane"},t("smoothly-icon",{key:"31be61e295c8a3640700cef252689b8c76c2ce2f",name:"airplane-outline"})),t("smoothly-item",{key:"48973972d5309f33bae2cbabbdd5040aef4820bb",value:"car"},t("smoothly-icon",{key:"648078e77ec0d36f889fe51ac994f865ab58dc30",name:"car-outline"})),t("smoothly-item",{key:"469417f682e779831ef0b003873d4a6f5307d1e4",value:"bus",selected:true},t("smoothly-icon",{key:"34cb5e2fd9e85de8baa46258c8cbb1025291bbbe",name:"bus-outline"}))),t("smoothly-input-submit",{key:"b48e0bfc449f53eb489e9c736a77c9942174bacb",icon:"checkbox-outline"})))}};var Lr;(function(e){e.type=d({name:d({first:b(),middle:b().optional(),last:b()}),age:g((e=>18<=e&&e<=120)),country:f("CountryCode",T.is),birthday:f("Date",S.is)})})(Lr||(Lr={}));const Ar="";const Er=Ar;const Dr=class{constructor(t){e(this,t)}render(){return t(s,{key:"b46a4c5b96614398be82f63e161f11e713d671ac"},t("h2",{key:"76688ea6e7bdddf57e60ddceeac54b459297082c"},"Typed Contact"),t("smoothly-form",{key:"f106191bf794c6e7ca352e1ccf3391bd5d0c4c2c",validator:Lr.type},t("smoothly-input",{key:"79c34bb9332b9b96482a03cbc49e1b53cdf21f74",name:"name.first"},"First Name"),t("smoothly-input",{key:"f4c9a1939e18253e9febd36a065ccfe84527dbff",name:"name.middle"},"Middle Name (optional)"),t("smoothly-input",{key:"57bb7482d53e956fd0fa94b3838e7dea38ab6453",name:"name.last"},"Last Name"),t("smoothly-input",{key:"2a91d9a949dd98ec632e09b9e8f7e5fa597a4e85",name:"age",type:"integer"},"Age (18-120)"),t("smoothly-input-select",{key:"3ae0b13a37c317600f0f314b337286921e214d8b",name:"country"},t("span",{key:"4ea1c8a2432e4d9af68934bfcbe635208e959da1",slot:"label"},"Country"),T.types.map((e=>t("smoothly-item",{value:e},L(e))))),t("smoothly-input-date",{key:"1b0326b16e1954d453e0117004b0ddd0222001ae",name:"birthday"},"Date of birth"),t("smoothly-input-reset",{key:"914fab1b08af093f2a5bf89227c3b6995a75f1e2",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"6042757f6fc6b44e4190525f81b0dbbc68a7b935",slot:"submit",size:"icon",color:"success"})))}};Dr.style=Er;const Mr=".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 $r=Mr;const Rr=class{constructor(t){e(this,t);this.trigger=o(this,"trigger",7);this.message2=o(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const e=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return e&&e.contentWindow||undefined}get defaultOrigin(){const e=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return e?e[0]:"*"}componentDidLoad(){var e;if(this.contentWindow)k.listen((e=this.origin)!==null&&e!==void 0?e:this.defaultOrigin,((e,t)=>{if(e==this.name)if(r.is(t))this.trigger.emit(t);else this.message2.emit({destination:e,content:t})}),window)}async send(e,t){var o,s;if(typeof e=="string")k.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+e,t,this.contentWindow);else if(k.is(e)&&this.contentWindow)k.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+e.destination,content:e.destination},this.contentWindow)}render(){return[]}get element(){return a(this)}};Rr.style=$r;const Pr="[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center}[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{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Nr=Pr;const Hr=class{constructor(t){e(this,t);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";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 e=this.latestPromise=v.load(this.name);let t=await e;if(e==this.latestPromise){t=t===null||t===void 0?void 0:t.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)t=t===null||t===void 0?void 0:t.replace(/<title>.*<\/title>/,"");else if(t===null||t===void 0?void 0:t.includes("<title>"))t=t.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else t=t===null||t===void 0?void 0:t.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(t)}}else this.updateDocument()}updateDocument(e){this.document=e!==null&&e!==void 0?e:`<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 e;return t(s,{key:"2ca960872991b5522629128b7a1f91fc52eb9924",innerHTML:this.document,style:{["--rotation"]:`${(e=this.rotate)!==null&&e!==void 0?e:0}deg`}})}static get watchers(){return{name:["nameChanged"]}}};Hr.style=Nr;const Fr=".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 Ur=Fr;const Yr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return t(s,{key:"a48ba348de697e8a536a0236719efa65b252159d"},t("h2",{key:"317dd038d538789cbaa5532d9c16257ef5a64814"},"Filter and Variants"),t("smoothly-form",{key:"8960c5768d0735eb1c86d068d5759d2a0aa04129",onSmoothlyFormInput:e=>this.display=e.detail},t("smoothly-input",{key:"84d023b804b64814cba87e651f363521d2e7615e",name:"filter"},"Filter"),t("smoothly-input-select",{key:"41c33c71d7987b03d39c57f574b567add5e16271",name:"variant"},t("span",{key:"72d59198e6d547da8f062e43364167107d3086e7",slot:"label"},"Variant"),t("smoothly-item",{key:"61bebffd79c5dccab8ac9b90c4b8ff987ff45d1d",value:"outline"},"outline"),t("smoothly-item",{key:"756a78875009eaa973e0b96bc339ef7a4dc663ca",value:"sharp"},"sharp"),t("smoothly-input-clear",{key:"ec9abf0352ae7d30b405330e6f828c013351b93e",slot:"end"}))),t("h2",{key:"a4170a7aaf8fa66dfc28065c937b0e051996decf"},"Props"),t("smoothly-form",{key:"306eda4fad769698d78601d51141ee303dd99918",onSmoothlyFormInput:e=>this.props=e.detail},t("smoothly-input-select",{key:"1fad7a0c9b10b567c108b45dfc1bdce337c5adc0",name:"color"},t("span",{key:"419dca6615f6046eb5f0f8407bac7bddb8d621b4",slot:"label"},"Color"),c.types.map((e=>t("smoothly-item",{value:e,color:e},e))),t("smoothly-input-clear",{key:"6d84cd25c0056a9bb56995ca57bf45fbcd7ca728",slot:"end"})),t("smoothly-input-select",{key:"e47724be5b6c0a6c6949b01893c02b2061c61d39",name:"flip"},t("span",{key:"071f941f348aa1515833b9cdb5c137779d2c1edc",slot:"label"},"Flip"),t("smoothly-item",{key:"2c08bb5fb826bc163982812dcbfbf92bdbd6eac8",value:"x"},"x"),t("smoothly-item",{key:"4458204ffc2337494168175e3678506c6b0b1df3",value:"y"},"y"),t("smoothly-input-clear",{key:"4d561ebe12520ff6d153e565c1635afded75c9e5",slot:"end"})),t("smoothly-input-select",{key:"fc71d8f6fb9f12f04271f13a7007e59dd19c1fc2",name:"size"},t("span",{key:"668399e2602e6eeeb881c45cba082f1b8227a13b",slot:"label"},"Size"),t("smoothly-item",{key:"5b56b01cc36e3056ca69a8e19e3d0829540a84c5",value:"tiny"},"tiny"),t("smoothly-item",{key:"8506c6d7c3adc1008122756fffbb075a997a47a7",value:"small"},"small"),t("smoothly-item",{key:"5139f8aafc5d47bce7023200825f5eadc30c2440",value:"medium"},"medium"),t("smoothly-item",{key:"f7a64ad46b598e3fab88c37687ac29b0e4545278",value:"large"},"large"),t("smoothly-input-clear",{key:"16d946bf5e8440f49bb8f9ed911a1a56e6c0f70c",slot:"end"})),t("smoothly-input-range",{key:"36ffc94ee758970a62a811a26d6cdaa8206ca45c",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",t("smoothly-input-clear",{key:"98c83ffad9dc19e7668de9fc3758894b42d197b3",slot:"end"}))),t("h1",{key:"8b11b39a4a81f8b0820b7b16c199af27864ab94d"},"Icons"),t("div",{key:"a31ee3aa619190ab97d7e8509e25be1aaa8ed44c",class:"icons"},[...v.Name.values.filter((e=>!this.display.filter||e.includes(this.display.filter))).map((e=>this.display.variant?`${e}-${this.display.variant}`:e)),...v.Logo.values.filter((e=>!this.display.filter||e.includes(this.display.filter)))].map((e=>t("smoothly-icon",{name:e,toolTip:e,"data-name":e,color:this.props.color,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(e);this.notice.emit(O.succeeded(`Copied "${e}"`))}})))))}};Yr.style=Ur;var Wr;(function(e){function t(e,o){if(e===o)return true;if(typeof e=="object"&&typeof o=="object"){const s=Object.keys(e);if(s.length==Object.keys(o).length&&s.every((s=>t(e[s],o[s]))))return true}return false}e.equal=t;function o(e,o){return!t(e,o)}e.notEqual=o})(Wr||(Wr={}));var Br;(function(e){function t(e,t,a){const i=/([^.-@\s]+)/gi;return a=="backward"?o(e,t,i):s(e,t,i)}e.getWordBreakIndex=t;function o(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function s(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}})(Br||(Br={}));class Vr{constructor(e,t){this.formatter=e;this.type=t;this.keydownHandlers={ArrowLeft:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t),ArrowRight:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t)};this.eventHandlers={beforeinput:{insertText:(e,t)=>this.insert(e,t),insertFromPaste:(e,t)=>this.insert(e,t),insertFromDrop:(e,t)=>this.insert(e,t),deleteContentBackward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start-1,t.selection.end);this.erase(t);return t},deleteContentForward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start,t.selection.end+1);this.erase(t);return t},deleteWordBackward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"backward")}return s},deleteWordForward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"forward")}return s},deleteByCut:(e,t)=>{this.erase(t);return t}},input:{insertReplacementText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),insertCompositionText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),deleteWordBackward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,deleteWordForward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,undefined:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value})}}}static create(e,t){let o;switch(e){case"price":o=wt("price",t);break;default:o=wt(e,t);break}return new Vr(o||wt("text"),e)}onKeyDown(e,t){var o,s,a,i;let n=t;const l=this.keydownHandlers[e.key];if(l){const r=e.target;t.selection.start=(o=r.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=r.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=r.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const c=l(e,this.unformatState(t),t);const d=this.partialFormatState(c);if(e.defaultPrevented){r.selectionStart=d.selection.start;r.selectionEnd=d.selection.end;r.selectionDirection=(i=d.selection.direction)!==null&&i!==void 0?i:null}n=d}return n}moveCursor(e,t){e.preventDefault();let o=ft.getCursor(t.selection);let s=ft.getStalker(t.selection);o=Math.min(Math.max(o+(e.key=="ArrowLeft"?-1:1),0),t.value.length);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);return t}onFocus(e,t){const o=this.partialFormatState(this.unformatState(t));const s=e.target;s.value=o.value;return o}onBlur(e,t){const o=this.createFormattedState(t);const s=e.target;s.value=o.value;return o}onInputEvent(e,t){var o,s,a,i,n,l,r;const c=e.target;t.selection.start=(o=c.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=c.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=c.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const d=e.type=="beforeinput"||e.type=="input"?(l=(n=(i=this.eventHandlers[e.type])[e.inputType])===null||n===void 0?void 0:n.call(i,e,this.unformatState(t),t))!==null&&l!==void 0?l:t:t;const h=this.partialFormatState(d);if(e.defaultPrevented){c.value=h.value;c.selectionStart=h.selection.start;c.selectionEnd=h.selection.end;c.selectionDirection=(r=h.selection.direction)!==null&&r!==void 0?r:null}return h}insert(e,t){e.preventDefault();if(typeof e.data=="string")for(const o of e.data)this.formatter.allowed(o,t)&&this.replace(t,o);return t}deleteWord(e,t){const o=ft.getCursor(e.selection);const s=Br.getWordBreakIndex(e.value,o,t);const a=this.unformatState(Object.assign(Object.assign({},e),{selection:{start:Math.min(o,s),end:Math.max(o,s),direction:"none"}}));const i=a.value.substring(0,a.selection.start)+a.value.substring(a.selection.end);a.value=i;a.selection.end=a.selection.start;return a}select(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}erase(e){this.replace(e,"")}replace(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}unformatState(e){return pt.copy(this.formatter.unformat(gt.copy(e)))}partialFormatState(e){return this.formatter.partialFormat(gt.copy(e))}createFormattedState(e){return this.formatter.format(gt.copy(this.formatter.unformat(gt.copy(e))))}toString(e){return this.formatter.toString(e)}initialState(e){const t=this.toString(e)||"";const o=t.length;const s=this.createFormattedState({value:t,selection:{start:o,end:o,direction:"none"}});return s}setValue(e,t,o){const s=Object.assign(Object.assign({},t),{value:this.createFormattedState({value:this.formatter.toString(o),selection:t.selection}).value});e.value=s.value;return s}getValue(e){return this.formatter.fromString(this.unformatState(e).value)}}const Gr='.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>div.sc-smoothly-input{position:relative;width:100%;height:100%}.sc-smoothly-input-h>div.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>div.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>div.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>div.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>div.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>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}[invalid].sc-smoothly-input-h>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:block;z-index:2;cursor:pointer}.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.sc-smoothly-input-s>[slot=end] button{padding:0}.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 Kr=Gr;const Zr=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",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.invalid=false;this.changed=false;this.errorMessage=undefined;this.initialValue=undefined;this.state=undefined}async getValue(){return this.stateHandler.getValue(this.state)}async listen(e,t){this.listener[e]=t;t(this)}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async clear(){!this.uneditable&&(this.value=undefined)}async edit(e){!this.uneditable&&(this.readonly=!e)}async reset(){!this.uneditable&&(this.value=this.initialValue)}async setInitialValue(){this.changed=false;this.initialValue=this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}async smoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name==this.name)){e.stopPropagation();e.detail(this)}}typeChange(){switch(this.type){case"price":this.stateHandler=Vr.create("price",{currency:this.currency,toInteger:this.toInteger});break;default:this.stateHandler=Vr.create(this.type,D());break}this.state=this.stateHandler.initialState(this.value)}stateChange(){this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}valueChange(e){const t=this.stateHandler.getValue(this.state);if(Wr.notEqual(t,e)&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,e);this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}}readonlyChange(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentWillLoad(){var e,t;this.typeChange();this.initialValue=this.value;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){if(this.inputElement)this.inputElement.value=this.state.value}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}onEvent(e){this.state=this.stateHandler.onInputEvent(e,this.state)}render(){var e,o,a,i,n,l,r,c,d,h;return t(s,{key:"c0c6e0d705065464c9a8641fb90a7eb3db1fd385",class:{"has-value":((e=this.state)===null||e===void 0?void 0:e.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var e;return(e=this.inputElement)===null||e===void 0?void 0:e.focus()}},t("slot",{key:"38825442b4f5c7853c4c41295d2b6b467100b822",name:"start"}),t("div",{key:"68fce946c08fc319c6d86d792f47991c25d40877"},t("div",{key:"34309b2e7afdc17cdc33030b9fcff946e0363243",class:"ghost"},t("div",{key:"44a442387af514de45508fac3f857990e8ec5be6",class:"value"},(a=this.state)===null||a===void 0?void 0:a.value),t("div",{key:"45564be02e80bd749ed8506e5534c3cda41814ff",class:"remainder"},(i=this.state)===null||i===void 0?void 0:i.remainder)),t("input",{key:"39a4f425e7b1b2be463a4e3b8ca9b1e298cb595a",ref:e=>this.inputElement=e,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:((d=this.state)===null||d===void 0?void 0:d.pattern)&&((h=this.state)===null||h===void 0?void 0:h.pattern.source),onKeyDown:e=>{this.state=this.stateHandler.onKeyDown(e,this.state);if(e.key=="Enter")this.smoothlyBlur.emit()},onFocus:e=>!this.readonly&&(this.state=this.stateHandler.onFocus(e,this.state)),onBlur:e=>{if(!this.readonly){const t=this.stateHandler.getValue(this.state);this.state=this.stateHandler.onBlur(e,this.state);this.smoothlyBlur.emit();this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});if(Wr.notEqual(t,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}}),t("label",{key:"0866c91d37625c3f302079e1197568837df73eba",class:"label float-on-focus",htmlFor:this.name},t("slot",{key:"a35198bb124977075f6f215b58b0529ceab6eb8f"})),t("smoothly-icon",{key:"eaed09aac882d68b2a0edacb875235c77652fe17",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage})),t("slot",{key:"5ddb19945b1cf2130565eb431da972c79e87e00f",name:"end"}))}get element(){return a(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};Zr.style=Kr;const qr='.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 Jr=qr;const Xr=class{constructor(t){e(this,t);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 e,t;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}async elementCheck(){var e,t;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}click(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return t(s,{key:"3c1316c6be3090b1cc8e666c5d108fde4370300c",onMouseDown:e=>this.mouseDownPosition={x:e.clientX,y:e.clientY},onMouseUp:e=>{var t;return((t=this.mouseDownPosition)===null||t===void 0?void 0:t.x)==e.clientX&&this.mouseDownPosition.y==e.clientY&&this.click()}},t("input",{key:"47109b72871ad21e58bd0683fc3d3a4fbf66c83c",type:"checkbox",checked:this.checked}),this.checked&&t("smoothly-icon",{key:"aec34d4073515bb073fe54cd658637a7b2ed7aac",name:"checkmark-outline",size:"tiny"}),t("label",{key:"c6e0d71cf2193f49b6f4a9e08ae11592bcace9ef"},t("slot",{key:"787d55c4d6baac335285870d00d6336d6ddde724"})))}get element(){return a(this)}static get watchers(){return{checked:["elementCheck"]}}};Xr.style=Jr;const Qr='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-clear-h{--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(--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;--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(--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 ec=Qr;const tc=class{constructor(t){e(this,t);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((e=>{if(nr.is(e)){this.parent=e;if(lr.Element.is(e)){e.listen("changed",(async e=>{if(cr.is(e)){this.display=!e.readonly&&(typeof e.defined=="boolean"?e.defined:Boolean(e.value))}if(e instanceof br){this.disabled=e.readonly||Object.values(e.value).filter((e=>e)).length<1;this.display=!e.readonly}}))}}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.clear()}render(){var e;return t(s,{key:"0c7859c8c7560f7608910d94e854976e15159fa3",title:this.tooltip},t("smoothly-button",{key:"ce8acccf37e58c5e680a6d74b6e7b5a6cd9eed4a",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"f776dfc22004fe630e5963fb0b3be02623159687"}),t("smoothly-icon",{key:"173c4c57101a67b4a028e08a86542548cb935499",name:"close",size:"tiny"})))}};tc.style=ec;const oc='.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;padding-right:.5em}.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}[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 sc=oc;const ac=class{constructor(t){e(this,t);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=c.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.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(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){var e,t;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}handleSwitchMode(e){e.stopPropagation();this.sliderMode=e.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=c.Hex.toRGB(this.value))}else{this.value&&(this.hsl=c.RGB.toHSL(c.Hex.toRGB(this.value)))}}hexInputHandler(e){if(e!==this.value){if(e&&c.Hex.type.is(e)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=c.Hex.toRGB(e)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=c.RGB.toHSL(c.Hex.toRGB(e))}}else if(!e||!c.Hex.type.is(e)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=e}}sliderInputHandler(e){var t;e.stopPropagation();const o=Object.keys(e.detail)[0];let s=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(e.detail[o]===undefined)){for(const a of Object.keys(s))if(a===o)s=Object.assign(Object.assign({},s),{[a]:a==="s"||a==="l"?+((t=e.detail[o])!==null&&t!==void 0?t:0)*100:e.detail[o]});else if(s[a]===undefined)s=Object.assign(Object.assign({},s),{[a]:0});if(this.sliderMode==="rgb"){this.rgb=Object.assign({},s);this.hsl=c.RGB.toHSL(this.rgb);this.hexInputHandler(c.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},s);this.rgb=c.HSL.toRGB(this.hsl);this.hexInputHandler(c.RGB.toHex(c.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var e,o,a,i,n,l;return t(s,{key:"51a16fcfe1910a90d2700e8d0cc4dffb55117f0a",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((e=this.rgb.r)!==null&&e!==void 0?e:0)}`,"--rgb-g":`${Math.round((o=this.rgb.g)!==null&&o!==void 0?o:0)}`,"--rgb-b":`${Math.round((a=this.rgb.b)!==null&&a!==void 0?a:0)}`,"--hsl-h":`${Math.round((i=this.hsl.h)!==null&&i!==void 0?i: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`}},t("smoothly-input",{key:"c1562bc77088d0385845434d8d1b008fd6302fc4",value:this.value,name:this.name,looks:undefined,color:this.color,type:"hex-color",showLabel:this.showLabel,readonly:this.readonly,onSmoothlyInput:e=>(e===null||e===void 0?void 0:e.stopPropagation(),this.hexInputHandler(e.detail[this.name]))},t("slot",{key:"86121a306bcb0036a14ece88dc79b715305f6363"})),t("div",{key:"017725837b67c695fbf8aa34b9f0fb73c2cf30bd",class:"color-sample"}),t("smoothly-icon",{key:"8ecb0d806407e75b95b766b51a91be4198cd407e",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),this.open&&!this.readonly&&t("div",{key:"2bb350f021941d7196b9c5a3f0654af0efebfa53",class:"rgb-sliders"},t("smoothly-toggle-switch",{key:"96b9582749ffa84c28a7579689e51a5f2965f78d",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:e=>this.handleSwitchMode(e),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:e,min:0,max:255,color:undefined,type:"text",value:o,step:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()}))),Object.entries(this.hsl).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:e,min:0,max:e==="h"?359:1,color:undefined,type:e==="s"||e==="l"?"percent":"text",value:(e==="s"||e==="l")&&o?o/100:o,step:e==="s"||e==="l"?.01:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()})))))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};ac.style=sc;const ic=class{constructor(t){e(this,t)}render(){return t(s,{key:"a268b3a8769165e116c77eb1f8f8e049afc83595"},t("h2",{key:"c11a162fdd641b19cb4427dae013994e29e1da6f"},"Color"),t("smoothly-input-color",{key:"fc3844f0c02372dc9a7432dae694ba4f986e9a5e",name:"color"},"Choose color"))}};ic.style="style.css";const nc='.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;margin-right:.2em}@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 lc=nc;const rc=class{constructor(t){e(this,t);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.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true}componentWillLoad(){var e,t;this.setInitialValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async listen(e,t){this.listener[e]=t;t(this)}async clear(){this.value=undefined}onStart(e){var t,o;this.smoothlyValueChange.emit(e);this.smoothlyInput.emit({[this.name]:e});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}smoothlyInputHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.changed=false}dateSetHandler(e){this.open=false;e.stopPropagation()}render(){return t(s,{key:"5b9654434c2fba857bf3ef7bbf847af2515eb984"},t("smoothly-input",{key:"80e721c34de7fe959f47680d50806adfa75e3b01",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,invalid:this.invalid,type:"date",value:this.value,showLabel:this.showLabel,onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation();this.value=e.detail[this.name]}},t("slot",{key:"d9e47ad7fed79355051a9d00a4c1175b5166b3c9"})),t("span",{key:"76afdd4bfc5ad1c4be6ec1550e0eef35b9a6da77",class:"icons"},t("slot",{key:"66ff5380e4d8b3681b80ebe51afd35846788e722",name:"end"})),this.open&&!this.readonly&&t("nav",{key:"3e3d8a0e07a83d33d4495d49aaf4d014dd1d22ed"},t("smoothly-calendar",{key:"746927467a60b22fae380f62980bd6b1d3aa3a32",doubleInput:false,value:this.value,onSmoothlyValueChange:e=>{this.value=e.detail;e.stopPropagation()},max:this.max,min:this.min},t("div",{key:"81c87991d320895ca9204945cf7ddee642b64c2e",slot:"year-label"},t("slot",{key:"13f321ef61b4cf16e19a51852f28c0fa6091279b",name:"year-label"})),t("div",{key:"3a82f53e0fbfc6952110bbcefc82116d1d3764a9",slot:"month-label"},t("slot",{key:"5448271cb9b19de99aef07a029facf8aeed59a46",name:"month-label"})))))}get element(){return a(this)}static get watchers(){return{value:["onStart"]}}};rc.style=lc;const cc='.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;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;margin-right:0.4em}';const dc=cc;const hc=class{constructor(t){e(this,t);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 e,t;this.setInitialValue();this.updateValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}inputHandler(e){const t="dateRangeInput"in e&&typeof e.dateRangeInput=="string"&&e.dateRangeInput.split(" - ");if(t&&t.length==2&&S.is(t[0])&&S.is(t[1])){this.start=t[0];this.end=t[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var e,t;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.start&&this.end?{start:this.start,end:this.end}:undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}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 e=navigator.language;return t(s,{key:"83a4df5b6d8eb60c62c71e606bb939289d259346",tabindex:0},t("section",{key:"63aed666649aa276437e8c362e1b9ebc8cb07463",onClick:()=>!this.readonly&&(this.open=!this.open)},t("smoothly-input",{key:"2bdc7f72a4708def9a274e0dc0cae28b2a415859",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${St(this.start,"date",e)} — ${St(this.end,"date",e)}`:undefined,invalid:this.invalid,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:e=>{e.stopPropagation();this.inputHandler(e.detail)}},t("slot",{key:"1a21ce7402507b8e2740308a8f216a45317e7254"}))),t("span",{key:"68ee8c56303fd1b9531a5e34358f2d6f953fa450",class:"icons"},t("slot",{key:"301bfe40349ae98d14d23a059c51f15eecfc7dae",name:"end"})),this.open&&t("nav",{key:"a3c163d13c2ba8dc8b61d977c983f62e552d9e37"},t("smoothly-calendar",{key:"8569ba2af69fa58481699060eabbaee32e32cb56",doubleInput:true,onSmoothlyValueChange:e=>e.stopPropagation(),onSmoothlyStartChange:e=>{e.stopPropagation();this.start=e.detail},onSmoothlyEndChange:e=>{e.stopPropagation();this.end=e.detail},onSmoothlyDateSet:e=>e.stopPropagation(),onSmoothlyDateRangeSet:e=>{e.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:e.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return a(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};hc.style=dc;const bc=".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 mc=bc;const yc=class{constructor(t){e(this,t);this.duration={hours:8};this.alphanumeric="!@##"}render(){return t(s,{key:"60dd1e6b3944fc22f37e5b2f5d44e7fcf2833a84"},t("smoothly-input-demo-standard",{key:"2de6bb4b669536a5f7a15e4a600af1b2e1a9af0c"}),t("div",{key:"b78fe28ebc5c9d4d9dabcb4f6f5c80dd78f77d5c",class:"inputs"},t("h2",{key:"3446b75ffe04fc341d3dcc072a4f9e06db26785c"},"Calendar"),t("smoothly-input-date",{key:"fcf59b2cc974165f4f695c02b52b704d3d74d6f3",name:"some-date"},"Calendar"),t("h2",{key:"a156ab1d3aca8be94908453872a2134c831d88c0"},"Date Range"),t("smoothly-input-date-range",{key:"271a5188c679eb550c5c05ca2e1595ef136e684e",name:"testing",start:S.now(),end:S.nextMonth(S.now()),min:"2021-10-01",max:"2025-01-31"}),t("smoothly-input-date-range",{key:"1e52949912d2a75db26c7540c3a9706e06e557e2",name:"testing",start:S.now(),end:S.nextMonth(S.now()),min:"2021-10-10",max:"2024-12-30"},t("smoothly-input-reset",{key:"5c127ccb828b1040525b18bd663bf750c8ff6eb5",slot:"end",size:"icon"})),t("smoothly-input-date-range",{key:"935ba4fe04cf86a707b56bc1fb12cd6b86a1fe18",looks:"grid",start:S.now(),end:S.nextMonth(S.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem","--padding":"0 0.75em","--input-width":"12ch"}},t("smoothly-input-clear",{key:"3c293347358cb6c439d46a7b8538899e1a77992f",slot:"end",size:"icon"})),t("h2",{key:"ed7c2c30b8060ac6e021dcc07a7839d7cdded20b"},"Date"),t("smoothly-input-date",{key:"a793def080aebfaef852e887470e21bf55148215"},"Date"),t("smoothly-input-date",{key:"0c4401d2a28786499bb3eff800322a04d010257d",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),t("smoothly-input-date",{key:"b9eda80eec7369c9c4604774f244edfb38cfbf30",value:"2021-10-28"},"Date",t("smoothly-input-reset",{key:"a94977968c6249be32060d9e0b7f40ef017e38d4",slot:"end",size:"icon"})),t("smoothly-input-date",{key:"a1af27dc2ff52582cc0ce406d546c71348835456",value:"2021-10-28"},"Date",t("smoothly-input-clear",{key:"d4e1ef84c8be48a88f9862be0c89a9931c2bc042",slot:"end",size:"icon"})),t("h2",{key:"36930f18237fa1db19293f3c2ebdb99925a82fda"},"Select"),t("div",{key:"c5e885b52da1a9e5039408ba9610230b0b28baae",class:"select-div"},t("smoothly-input-select",{key:"1f15e7a4854e82363ce88ff900340e74584c14b8",name:"select-dessert",looks:"border"},t("label",{key:"d54885a3eac40d13e94728e56a811e6538ff7069",slot:"label"},"Select with clear button"),t("smoothly-item",{key:"9b20457b0c78867875c95435e24d4749c3123990",value:"1"},"Ice cream"),t("smoothly-item",{key:"01dea695573f6792c102661cf22f344a797001ff",value:"2"},"Sponge cake"),t("smoothly-item",{key:"3543d2c4b4851c522451bac5a3acd293bfb21fa6",value:"3"},"Cookie"),t("smoothly-item",{key:"f62c295d7148d3fa2b86806c2e17934410650064",value:"4"},"Croissant"),t("smoothly-item",{key:"a124a8d1d0ce21e4c3cc55560517ffa9202d9a9c",value:"5"},"Chocolate fondue"),t("smoothly-input-clear",{key:"de389d553a40b4c3a6d17bbbdbf28e55aa4b8d7d",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"41fbb70990c191aebc260fefd9df0797d69e0738",multiple:true,name:"select-dessert-multiple",looks:"border"},t("label",{key:"434522359659f3ed97b703b36af261764e6f9ab4",slot:"label"},"Select multiple with reset button"),t("smoothly-item",{key:"384de05f22ef4c3dc91b44ade6746e2ee7683565",value:"ice cream"},"Ice cream"),t("smoothly-item",{key:"606d9343d3de36fbca2519ba083acfe7063a51c8",value:"sponge cake"},"Sponge cake"),t("smoothly-item",{key:"796ac9d456606cae955bc5eb4d7c413ee67e3ba1",selected:true,value:"cookie"},"Cookie"),t("smoothly-item",{key:"51d77cd08f175867b22da38d01df8310e8d16e4c",value:"croissant"},"Croissant"),t("smoothly-item",{key:"2c6a518b714b79f58557b505bb042805045932cb",selected:true,value:"chocolate fondue"},"Chocolate fondue"),t("smoothly-input-reset",{key:"feb637cab56c2f5024188c34d7508358a787c4c8",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"57cd5ae780288c69d148795508f7fcdd40f2a099",name:"spirit-animals",looks:"border",mutable:true},t("label",{key:"24951468fe43b42a5e410184cc2d122ceb1559ad",slot:"label"},"Select or add new options"),t("smoothly-item",{key:"d1330ba6f34bbd76ef5aba2bde55c135373a2b7b",value:"manatee"},"Manatee"),t("smoothly-item",{key:"61082a363a53fb71be3f9e8e6ab4e2be2693803c",selected:true,value:"cthulu"},"Cthulu")),t("smoothly-input-select",{key:"837d3330f39f40c2666d6faa497671d5899b8f37",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"abd9760dc7f60c174618ab718a2ca2793a7c6bd7",value:"folder",selected:true},t("smoothly-icon",{key:"723699de937708f91e2520e8af0b2575754869b9",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"898afabc6f86383162426d971ee625bad2c10981",value:"camera"},t("smoothly-icon",{key:"5d22ea6043cfd3298f897e472ec579cdc3171190",size:"small",name:"camera-outline"}))),t("smoothly-input-select",{key:"7dfeb8b080ea8c743f5d8e501af1d2182607fd0a",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"c372c32bd7b05a7aa86f1b330f4c4f9e2c2eeeb2",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((e,t)=>String.fromCharCode(t+65))).map((e=>t("smoothly-item",{value:e,selected:e=="H"},e)))),t("smoothly-input-select",{key:"731b35d2679e1db0870edd820ad3fc9174b14f3f",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"d1e226e33b7bdc0f6a6ce00625517e9b21e98450",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"0eb3ac2264bafe9ea791df4c94edb717abfd7e64",value:"1"},"January"),t("smoothly-item",{key:"bca380ef3fe45f223ebf4c6ceb7994d1b62a9f37",value:"2"},"February"),t("smoothly-item",{key:"10e9070d018b16181cea27c3264eb186dbaf16c4",value:"3"},"March"),t("smoothly-item",{key:"8e3a660ddc03a84450894fff337dc93ca98fc742",value:"4"},"April"),t("smoothly-item",{key:"12fb1830e38b4e5affa4ce5c5efca25bfc26165d",value:"5"},"May"),t("smoothly-item",{key:"e552e9e41a8330d35b9493169b496fd992674f68",value:"6"},"June"),t("smoothly-item",{key:"465df1432d881c069c06686d74c652f95b45da91",value:"7"},"July"),t("smoothly-item",{key:"eb74e7a7866108277481cd7273394ef59977ef4d",value:"8"},"August"),t("smoothly-item",{key:"3c35bda627bfee70fb5a95d90103d2b9e1b8ab72",value:"9"},"September"),t("smoothly-item",{key:"1fb9c7d501dec688d42b53e377f71576347f7733",value:"10"},"October"),t("smoothly-item",{key:"c8ace09645bb7d542028a2d415ba72ac34bd02a6",value:"11"},"November"),t("smoothly-item",{key:"5ac9490a548256e06a04fba18f446c628af7feae",value:"12"},"December"))),t("h2",{key:"a902f2f2e561c9181866bec6472e343f822335d7"},"Duration"),t("smoothly-input",{key:"3c6555170bd250bf76e8f844bb75a5431d40c6bf",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("smoothly-input",{key:"3abdf0a08b170f1af9554225fe2ba296a12ae207",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("h2",{key:"44481da56a1752f3789bc1ddd3a5eaee0902dd15"},"Invalid text with warning icon and tooltip"),t("smoothly-input",{key:"53b69674b38f94660845d011e84c3c53a05fc1ff",name:"alphanumeric",invalid:!/^[a-zA-Z0-9]+$/.test(this.alphanumeric),errorMessage:"Only alphanumeric allowed",value:this.alphanumeric,onSmoothlyInput:e=>this.alphanumeric=e.detail.alphanumeric},"Alphanumeric"),t("h2",{key:"a619414a34208a0afd08e220280584395af14d04"},"Identifiers"),t("smoothly-input",{key:"7c4f1735d3f246c4595acb2151ba97d1b5085f7d",type:"identifier-code"},"Code"),t("smoothly-input",{key:"18b6cb899e36881803b0660d6ff6482a525abfa1",type:"identifier-attribute"},"Attribute"),t("smoothly-input",{key:"d92b08e4d1acb8f4a9448f59c4ee340661f35d9d",type:"identifier-snake"},"Snake"),t("smoothly-input",{key:"69534f2759a4624b9fa21f46a79aa07a998ad619",type:"identifier-pascal"},"Pascal"),t("smoothly-input",{key:"56f54de4ada5be8f1215fad3d593e53484de5cf6",type:"identifier-camel"},"Camel"),t("h2",{key:"cb87bd4e9001ac1f87eb02eb48a4bf61951091df"},"Input Alternatives"),t("smoothly-input",{key:"49662ae4757c48fa73cb473468697db1686d07e4",type:"text",name:"name.last",onSmoothlyChange:e=>console.log("smoothly change event")},t("smoothly-icon",{key:"acc32078fdd3c67d9df44e4ef2b8a7713b92b42a",name:"checkmark-circle",slot:"start"}),"First Name"),t("smoothly-input",{key:"5bf97a305cb569577aec8229c9e70946476befd4",type:"text",name:"name.first",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"c1a8ba7f61eca2518bc7224d0d12ba74b03d8d86",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"99fb40ad2de47201a8809b8ff5d11835fb856257",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"7fdc80355a8730f7fbe465ca8cffe477627a2172",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"4d9978b66309191c5e33189729628fe6926dfdb2",placeholder:"test"}),t("smoothly-input-submit",{key:"d0a4198c16058d665b0a60aabe99c36c9887200b",slot:"submit",fill:"solid",onSubmit:e=>alert(e),color:"success"}),t("h4",{key:"4cb4b540a5fb2e7ee30b21168d93bb90937c1d7f"},"Smoothly checkboxes"),t("div",{key:"d04417a92dee1b64b70d46308092166ed94e0cbc",class:"checkbox-group"},t("smoothly-input-checkbox",{key:"2700d72b061a638fff12a1c52bc71f67ba99409f",disabled:true,name:"first-checkbox"},t("smoothly-icon",{key:"d1c8cd25b0910b6d8794650b46b17879c8c873b2",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),t("smoothly-input-checkbox",{key:"ef02d4523300ba4ba7f5d320dea9a461b7e13eb0",name:"second-checkbox",checked:true},t("smoothly-icon",{key:"7a207fdd7e2ca3c829617462717af46a9608391d",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",t("smoothly-input-clear",{key:"2a19f2556c6b7f0e187fc5c2070b180b61ce8927",size:"icon",slot:"end"})),t("smoothly-input-checkbox",{key:"5cad9ef159cdd824cc15b6ba943fd74d5102f24e",name:"third-checkbox"},"3rd")),t("h4",{key:"fea91481f1359ffe15ea0b4cf49a75061a67bb56"},"Smoothly Radio Buttons"),t("smoothly-input-radio",{key:"e9eb48bbb8286ab0ce791f87740bb0fb69ca8e77",clearable:true,name:"radioFirstInput"},t("smoothly-icon",{key:"a04f6835582bdf21312cf6995fef5606c0bae73d",name:"checkmark-circle",slot:"start"}),t("label",{key:"26f1a2c404d9b33c138e64d48ffd818f90222db1",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"6a29b48312cd6311cf9b92cd6669759ee642846c",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"755c043ba745e47a080441dee9496691bd041df3",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"3b8257d3a560437a4119687380bc97f4c7af408b",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"6414847d73410ec624bed67e78562e970f873a01",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"f0bd1ff94acae5d44afca5e87d6cc76041e85aee",name:"radioSecondInput"},t("label",{key:"75be309882a3add9e3084c71ab2db00411ca2981",slot:"label"},"Not clearable"),t("smoothly-input-radio-item",{key:"4837fc0c1ea4caa1d0559a723310672a38286632",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"e5d06e60d6bcfb3494aaf076004efdea959b0740",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"3e448a60a3db6d23e79221c1bc3d615817f36343",value:"third"},"Label 3"),t("smoothly-input-radio-item",{key:"83d57275d80e87543521e6c5be86c956dd08572d",value:"fourth"},"Label 4"),t("smoothly-input-radio-item",{key:"e6e2c87a559e1302abc6cea965ada07fd396fc9b",value:"fifth"},"Label 5"),t("smoothly-input-radio-item",{key:"ec2b352a115ba042ee756886dbdbea63a988aad4",value:"sixth"},"Label 6")),t("smoothly-input-range-demo",{key:"597c4d2527d3b4e12aae32c09aec9a648f4744f1"}),t("smoothly-input-color-demo",{key:"f5060d8b548ecf03993b03f03e1263e22bf27cc5"}),t("smoothly-input-price-demo",{key:"dfcaadcb371d4d34cc5f03759e098b6fb80fb1c8"}),t("smoothly-back-to-top",{key:"540599189cf998d00211d99a94074dcb93e23332"})))}};yc.style=mc;const uc='.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 fc=uc;const pc=class{constructor(t){e(this,t);this.duration={hours:8};this.options={showLabel:true}}connectedCallback(){this.updateInputHeightText()}componentDidRender(){this.updateInputHeightText()}updateInputHeightText(){const e=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));this.element.querySelectorAll(".height").forEach((t=>{const o=t.clientHeight;t.innerHTML=`<b>${o/e}rem</b> (${o}pixels)`}))}render(){const e=this.options.placeholder?"placeholder":undefined;return t(s,{key:"4e10f0d5eb28d0510f7cb21e96186431be670d89",class:{vertical:!!this.options.vertical}},t("div",{key:"9b2b4b702969c7d015f5c1dbfe3aa4e74fd8c540",class:"description"},t("h2",{key:"a2c21fe6391d84db87497e6a4ff4e2b70c4d5f80"},"Input Standard"),t("p",{key:"9bfda6f0a0dd936202f114d4637ee12bf08edbe3"},"Height of input should be ",t("code",{key:"ab833f468eefb8c0ae2f4062670cc77ba9b4a2fa"},"3rem")," including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."),t("smoothly-form",{key:"e99dbf780a7782a81fcb72edaa2d7f5457da8beb",looks:"grid",onSmoothlyFormInput:e=>this.options=e.detail},t("smoothly-input-select",{key:"9f1e9f65aaaaa38af2fb65b85a8fb83454c332d9",name:"looks"},t("span",{key:"3b84ca0fb05114ae3795f523615f41ba5dca0bdc",slot:"label"},"Looks"),rr.types.map((e=>t("smoothly-item",{value:e},e)))),t("smoothly-input-checkbox",{key:"77e00ac8693dbccc4f57b14185a52efbcb5fd41c",name:"readonly"},"Readonly"),t("smoothly-input-select",{key:"87f8b71bd390aa5fd9cebaa736cea67895c29536",name:"color"},t("span",{key:"d451f9ed64066336c60239eacd7cbf153fd4e1d7",slot:"label"},"Color"),c.types.map((e=>t("smoothly-item",{value:e},t("span",{color:e},e)))),t("smoothly-input-clear",{key:"ff5c0ce5115ddd31522a91b3bb95f539ba1684e5",slot:"end"})),t("smoothly-input-checkbox",{key:"732ddc3aef6cb9c26fb5524ce2227e488c05254f",name:"vertical"},"Vertical Layout"),t("smoothly-input-checkbox",{key:"1c958a47f2e6d866c82dfc767ea46706eec75dfb",name:"showLabel",checked:this.options.showLabel},"Show Label"),t("smoothly-input-checkbox",{key:"a710c74606aca3e9a19f39c492e50737f1ed24df",name:"placeholder",checked:this.options.placeholder},"Placeholder"),t("smoothly-input-range",{key:"ba771530eadb363d3097c0d96138a7bf44ff1673",label:"Border Radius (rem)",name:"borderRadius",value:this.options.borderRadius,min:0,max:2,step:.25}))),t("div",{key:"7ae3270b14d538ba0694bab2de7d85f0aab431af",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},t("div",{key:"f49c38040b5dda13e4e805fdcaeea1ff0a459dbb",class:"width"},"100%"),t("div",{key:"6f7cb40aefe9bc700e4596b2632d99da07226307",class:"left-padding"},"0.5rem - left padding"),t("smoothly-input",{key:"5bb2e783bbcc3a58d6c5acdb1f8bbc041da04191",name:"text",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"23d8e1f1c3bdef9fee261977c859fe02ce553727"},"Text"),t("smoothly-input-clear",{key:"5fcbc008484fd538c0b38c022e21c2517392a1fa",slot:"end"})),t("div",{key:"85718f38cfc3fac720618543d7b0cd730eb36ad3",class:"height"}),t("smoothly-input-select",{key:"3df2a457315696c953f23aba6340b137195adb39",name:"month",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color},this.options.showLabel&&t("label",{key:"77290d485806c27b165b3342b4c80350cbb8ee25",slot:"label"},"Select"),t("smoothly-item",{key:"99b7fbad3137c7e4c9b92475e7d309b62648f22a",value:"1"},"January"),t("smoothly-item",{key:"f23acba69d6de3dfa9412fcc97bf1f8f6e014d67",value:"2"},"February"),t("smoothly-item",{key:"e4ffe245efc2c63dddeb6850feb3c9f9d38c4fb6",value:"3"},"March"),t("smoothly-item",{key:"86122909ed7a82abea77bb9350d81f1e882e811e",value:"4"},"April"),t("smoothly-item",{key:"cb2e877d9571f816ac1dbb0128bde317af0fe7ec",value:"5"},"May"),t("smoothly-item",{key:"eda0c6dc42fb25f4eeba5310c631bc2104002030",value:"6"},"June"),t("smoothly-item",{key:"df65330b2f39efe3d8a030bf71b11f6a9342a754",value:"7"},"July"),t("smoothly-item",{key:"8944af056b0d2e3946cd6d7c1cdf6a05df6e2536",value:"8"},"August"),t("smoothly-item",{key:"68220d8d44f857cdd462c2d58ac764c5da3465b5",value:"9"},"September"),t("smoothly-item",{key:"b6e2589030646c4760e9bacb172db8e07f066bfe",value:"10"},"October"),t("smoothly-item",{key:"4a446940c5b9ca7190787a1eaba51803c28a0095",value:"11"},"November"),t("smoothly-item",{key:"2ec0f1cb158d31292401c6254d72652c605d3cc7",value:"12"},"December"),t("smoothly-input-clear",{key:"029afac367bf9c37f6f11669740f2863fbd7ce78",slot:"end"})),t("div",{key:"c99fc11ba5be8def7181bd8bc9273f20cbb4923c",class:"height"}),t("smoothly-input-checkbox",{key:"26ce8e4d1dcb6cd8a7c5f2a86d92f355a302aab9",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),t("div",{key:"c5ed1d671f23491904635358619f30832ec2cc81",class:"height"}),t("smoothly-input-radio",{key:"bea498eee5d98b1aaf03116f4e981169268cb23b",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("label",{key:"b1d858188959a28954181e78a6d36787c3c04afe",slot:"label"},"Radio"),t("smoothly-input-radio-item",{key:"b8ddd523e395f5c0e25636d0c024ff1431a6ce77",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"202e97eae6401dd1d725d2656f2d8cebded460e0",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"3ed079468ba539e332675f401f7578b23d255df2",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"ba656e92b96b300b9fd0561b6ea76224fb819fc4",slot:"end"})),t("div",{key:"b5e5398836dc34b9daee143354b3a91a83bd62de",class:"height"}),t("smoothly-input-file",{key:"6126408cd7770f339c1661d86d3b619973d01061",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"336658082d7f580dbc9ef000e47a2a4f3738f427",slot:"label"},"File"),t("smoothly-input-clear",{key:"bb53bb75963346d980c01c7814108d0eec21a33c",slot:"end"})),t("div",{key:"49d8c35ea7317cd6ddf70eabf54494cbee4e6ed5",class:"height"}),t("smoothly-input-range",{key:"5d2b708c5837134c164a2b10f8c4a62088855c6c",label:this.options.showLabel?"Range":undefined,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},t("smoothly-input-clear",{key:"fbd4a69fa25bac1fe0579ae2677d7a0900eb45b5",slot:"end"})),t("div",{key:"f17fbd46698f04d3c53e0357d837e8a2f58f5d3c",class:"height"}),t("smoothly-input-color",{key:"94dabbeeeee831131b5b30dd6c6fac94ec639789",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"56f67d59608fb2fa7bb38602eadf5d5498a56ac7"},"Color"),t("smoothly-input-clear",{key:"3a9e50a5847b8c1fad4bc751c0fa1e491d117d31",slot:"end"})),t("div",{key:"249584c44dde3e87b6b033b04f3a58457eea507a",class:"height"}),t("smoothly-input-date",{key:"a0ccd5fb348cffafeb6841f95c13d608c78e3f57",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"b6cbe5209daf9bca4d8e7b78edbfbf4d81e60509"},"Date"),t("smoothly-input-clear",{key:"2480daa13efe13045889211a9c768224e3dd658d",slot:"end"})),t("div",{key:"235419c95e2a9ad6b9c20e08698cb724a58279e6",class:"height"}),t("smoothly-input-date-range",{key:"426650cd055a27d94a08e985b81abd49ea2ef649",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"3c57b0f1489d483420db5d80926e3651044dafc2"},"Date Range"),t("smoothly-input-clear",{key:"a8348f4a932bf7abb7c448364287a7053d873edc",slot:"end"})),t("div",{key:"53b0aad98c34e95de4e71c5390981b1f8ef3ce32",class:"height"}),t("div",{key:"487394cb94a04c1515c365f916759b55edadedb3",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return a(this)}};pc.style=fc;const gc='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-edit-h{--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(--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;--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(--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 kc=gc;const vc=class{constructor(t){e(this,t);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((e=>{if(lr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{this.display=e.readonly}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.edit(true)}render(){var e;return t(s,{key:"3893bd50803a0e1b68650272a4c6e33852523dac",title:this.toolTip},t("smoothly-button",{key:"0d239160f6d1182482c5197919c95e8318df5a34",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"5b2d5a89c7a1189cb303f530838ef62d6d9eeae5"}),t("smoothly-icon",{key:"56b6e50451c2d46f4914a0ae4af67daae5567a0a",class:"default",name:"create-outline",size:"tiny"})))}};vc.style=kc;const xc='.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:0.5rem;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.mask.sc-smoothly-input-file{position:absolute;inset:0;color:rgb(var(--smoothly-hover-contrast));background-color:rgb(var(--smoothly-input-hover-background))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.mask.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.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:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0;height:100%;box-sizing:border-box}.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 wc=xc;const Sc=class{constructor(t){e(this,t);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.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(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}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(e){var t,o,s;e.stopPropagation();if((o=(t=this.input)===null||t===void 0?void 0:t.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(e){var t;e.preventDefault();e.stopPropagation();this.dragging=false;if((t=e.dataTransfer)===null||t===void 0?void 0:t.files.length)this.value=e.dataTransfer.files[0]}clickHandler(e){var t;if(!this.readonly&&!e.composedPath().find((e=>e==this.input))){(t=this.input)===null||t===void 0?void 0:t.click()}}dragOverHandler(e){e.preventDefault();e.stopPropagation()}dragEnterHandler(e){e.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(e){e.stopPropagation();this.dragging=false}render(){var e,o,a;return t(s,{key:"f4564952fa6b429188708dfde4a46071642791be",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:0,onClick:e=>this.clickHandler(e),onDragOver:e=>this.dragOverHandler(e),onDragEnter:e=>this.dragEnterHandler(e)},t("label",{key:"425032f8554b49bb2b8a290ba0892aaf640de1c8"},t("slot",{key:"4c5a07a177e7a40ae3e01ede1de501dda9ac86e0",name:"label"})),t("div",{key:"4b027176237fe67991f11ce09c44b2df76ec773b",class:"input"},t("smoothly-button",{key:"778160114bc894d9364e073f32b5c5db69dc0516",color:this.color,fill:"clear",size:"flexible"},t("slot",{key:"afbf717c676c69c3d1bf1e831667132fc8960906",name:"button"})),t("span",{key:"fd666a147562d529ea177ad77593d880d72c69d6"},(o=(e=this.value)===null||e===void 0?void 0:e.name)!==null&&o!==void 0?o:this.placeholder),t("div",{key:"985c5f24f14c3e045590ac9ec389a1bd404f5816",class:"mask",onDrop:e=>this.dropHandler(e),onDragLeave:e=>this.dragLeaveHandler(e)}),t("input",{key:"83b727df684650e2a7110126b1fa8e2d627d076c",ref:e=>this.input=e,type:"file",capture:this.camera=="back"?"environment":"user",accept:(a=this.accept)!==null&&a!==void 0?a:!this.camera?undefined:"image/jpeg",files:this.files,onInput:e=>this.inputHandler(e)})),t("slot",{key:"e60f4d80d448ff44f78f6ab021548bfcf20418fe"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Sc.style=wc;const Cc=".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 zc=Cc;const jc=class{constructor(t){e(this,t);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=S.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((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(e){var t;if(!this.readonly){const o=S.parse((t=this.value)!==null&&t!==void 0?t:S.now());o.setMonth(o.getMonth()+e);this.value=S.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var e,t;const o=S.previousMonth((e=this.value)!==null&&e!==void 0?e:S.now()).substring(0,7);const s=(t=this.min)===null||t===void 0?void 0:t.substring(0,7);this.allowPreviousMonth=!s||o>=s}setAllowNextMonth(){var e,t;const o=S.nextMonth((e=this.value)!==null&&e!==void 0?e:S.now()).substring(0,7);const s=(t=this.max)===null||t===void 0?void 0:t.substring(0,7);this.allowNextMonth=!s||o<=s}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){var e,t;(e=this.year)===null||e===void 0?void 0:e.clear();(t=this.month)===null||t===void 0?void 0:t.clear()}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){var e,t;(e=this.year)===null||e===void 0?void 0:e.reset();(t=this.month)===null||t===void 0?void 0:t.reset()}async setInitialValue(){var e,t;(e=this.year)===null||e===void 0?void 0:e.setInitialValue();(t=this.month)===null||t===void 0?void 0:t.setInitialValue()}inputHandler(e){if(e.target!=this.element){e.stopPropagation();const t=e.detail[`${this.name}-year`];const o=e.detail[`${this.name}-month`];if(o&&S.is(o))this.value=S.firstOfMonth(o);else if(t&&S.is(t))this.value=S.firstOfMonth(t)}}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}render(){var e,o;return t(s,{key:"f7c8f232a03bd253c40e3fa8a104eefbb7012bca"},t("smoothly-icon",{key:"294541bc09b9cfa9b6888f148c411cb1d708a74d",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),t("smoothly-input-select",{key:"075bc03f65732b7584a713c914c3ccb6b54173fc",ref:e=>this.year=e,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"bfc9ea3524bfa7fdc89f1a37e161492dae03fca5",slot:"label"},t("slot",{key:"9838d285f25fd339cf998551e0695b117277caaa",name:"year-label"})),it((e=this.value)!==null&&e!==void 0?e:S.now(),this.min,this.max).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-input-select",{key:"9399e9f140c3dbd07672779394353234e201cc7b",ref:e=>this.month=e,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:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"8f480c75256521f111621dbe48bd183c2195ee9a",slot:"label"},t("slot",{key:"0d520a10c3569475b007e52299aabf6ea1472e9c",name:"month-label"})),at((o=this.value)!==null&&o!==void 0?o:S.now()).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-icon",{key:"db2c4f5c1398bfb09e1c867d374f81093d3e2ff7",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 a(this)}static get watchers(){return{value:["valueChanged","setAllowPreviousMonth","setAllowNextMonth"],min:["setAllowPreviousMonth"],max:["setAllowNextMonth"]}}};jc.style=zc;const _c=".sc-smoothly-input-price-demo-h{display:block}";const Tc=_c;const Ic=class{constructor(t){e(this,t);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return t(s,{key:"eae20a79b5023c969b79ba18175e454b044331bf"},t("h2",{key:"006d4cdb680ca8cbfd50e4d1307b0ebac63d82e2"},"State demo on smoothly-input"),t("p",{key:"35088c1dd66f02134f2f4b1d31d24e293e25816e"},"This demo/test the internal state of the smoothly-input component."),t("p",{key:"ee73e3e2fcffc660369268772b46892d0f66a942"},"The currency of the price should update when switching between the currencies."),t("smoothly-input-radio",{key:"3950d4691f86e340596e9d2560dd53a36e676cd1",name:"currency",onSmoothlyInput:e=>this.currency=j.is(e.detail.currency)?e.detail.currency:undefined},this.currencies.map((e=>t("smoothly-input-radio-item",{key:e,selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"e5fd131508b7d6726982bd11d46cbc0007e0846f",type:"price",currency:this.currency},"price"))}};Ic.style=Tc;const Oc='.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:0 var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0}.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}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end] button{padding:0}[readonly].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}';const Lc=Oc;const Ac=class{constructor(t){e(this,t);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 e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));this.initialValue=this.active}handleRegister(e){e.stopPropagation();e.detail(this.name)}SmoothlyInputLoadHandler(e){if(!(e.target&&"name"in e.target&&e.target.name===this.name)){e.stopPropagation();e.detail(this)}}smoothlyRadioInputHandler(e){var t,o,s;e.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((t=this.active)===null||t===void 0?void 0:t.value)===e.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.value)!==e.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=e.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(e,t){this.listener[e]=t;t(this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){var e;if(this.clearable){(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=undefined;this.value=undefined}}async edit(e){this.readonly=!e}async reset(){var e,t,o;(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=this.initialValue;this.value=(t=this.initialValue)===null||t===void 0?void 0:t.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var e,t,o;this.valueReceivedOnLoad&&(this.changed=((e=this.initialValue)===null||e===void 0?void 0:e.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}render(){return t(s,{key:"7acf872aa853271bc3e0bb8e17ef4aae02645a06",class:"floating-label"},t("slot",{key:"147f9011fa62e4f571d8bcc3080acacaf4976bfb",name:"start"}),t("div",{key:"bb10827ce5574b1922ec7e7e7b4f7ac6d4cd25e4"},t("slot",{key:"90b73e3f57aa13243b98badd8c4e4c79c60bf2ea",name:"label"}),t("div",{key:"7bd6ecbc3e3ec3000926705f69d95b6976683c64",class:"options"},t("slot",{key:"168ede957a777d861520b6736e2488863948534c"}))),t("slot",{key:"72555322e23a289b462ee0d1fdd5dba154e14489",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Ac.style=Lc;const Ec=".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 Dc=Ec;const Mc=class{constructor(t){e(this,t);this.smoothlySelect=o(this,"smoothlySelect",7);this.smoothlyRadioButtonRegister=o(this,"smoothlyRadioButtonRegister",7);this.value=undefined;this.selected=false;this.looks=undefined;this.name=undefined}componentWillLoad(){this.smoothlyRadioButtonRegister.emit((e=>this.name=e));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:e=>this.selected=e})}render(){return t(s,{key:"59774a1bdcf5ca1edc05b9d85c6f3ae697faddf3",onClick:()=>this.inputHandler()},t("input",{key:"bcfd93d12645c0274d7d2fcd5b71c2d342edb30e",name:this.name,type:"radio",checked:this.selected}),t("smoothly-icon",{key:"2ec88c60554f1d133cb0ddcfb7d4e3c40ffbd4ae",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),t("label",{key:"8955cec7ff50907bf245b30cf06ab733238a894c"},t("slot",{key:"4372df8cf4f1a6922a911e33e67187ba9d977091"})))}get element(){return a(this)}};Mc.style=Dc;const $c='.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));padding-right:.5em;box-sizing:border-box}.sc-smoothly-input-range-h>div.sc-smoothly-input-range{position:relative;display:flex;justify-content:center;align-items:center;width:100%}.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 Rc=$c;const Pc=class{constructor(t){e(this,t);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.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(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.value&&(this.initialValue=this.value);this.valueChanged()}smoothlyInputLoadHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this)}}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var e,t,o,s;const a=!this.step?undefined:(t=(e=this.step.toString().split(".")[1])===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0;this.value=Number.isNaN(this.value)||this.value==undefined?undefined:+this.value.toFixed(a);this.changed=this.initialValue!==this.value;(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this);this.smoothlyInput.emit({[this.name]:this.value})}inputHandler(e){var t;e.stopPropagation();const o=!e?this.value:e.target&&"value"in e.target?Number(e.target.value):undefined;if(o==undefined)this.value=undefined;else if(o<this.min)this.value=this.min;else if(o>this.max)this.value=this.max;else this.value=o;this.input&&(this.input.value=this.type=="text"?(t=this.value)===null||t===void 0?void 0:t.toString():this.value)}render(){var e,o,a;return t(s,{key:"8fb68210ebaf98f5da58cfdd6e515cf604d83395",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},t("slot",{key:"e3079cb69fc730453a7a98acf25433f89a815f2b",name:"start"}),t("div",{key:"079abafd6c931376a7f1f34849fde620b5f0108d"},t("label",{key:"c2f747411d5fbb355d48907a5ecbaec4cef6c1b5",htmlFor:this.name},this.label),t("smoothly-input",{key:"010dbb5438d4f8ad3df91e8ab98ecd924b65dcd1",ref:e=>this.input=e,looks:undefined,color:this.color,showLabel:this.outputSide==="left"&&!!this.label,type:this.type,onSmoothlyInputLoad:e=>(e.stopPropagation(),this.inputHandler(e)),onSmoothlyBlur:e=>this.inputHandler(e),onSmoothlyInput:e=>e.stopPropagation(),value:this.type=="percent"?this.value:(e=this.value)===null||e===void 0?void 0:e.toString(),placeholder:this.outputSide==="right"?"-":undefined,readonly:this.readonly},this.label),t("smoothly-display",{key:"d4943e82147cf352a69bdc0546438c737fc39040",label:(this.type=="percent"?this.min*100:this.min).toString()}),t("input",{key:"02eb994933e5124475b1ddf17bbf3a1ad02f79a8",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:e=>this.inputHandler(e),value:(a=this.value)!==null&&a!==void 0?a:this.min}),t("smoothly-display",{key:"43f8daf61048150a4503777df2a0e646d54ace76",label:(this.type=="percent"?this.max*100:this.max).toString()})),t("slot",{key:"8a0e4c96747d3c3d4a3678dfe8375ec6d0a4f9cb",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Pc.style=Rc;const Nc=class{constructor(t){e(this,t)}render(){return t(s,{key:"e6c972c319124ccc57918d00ac2939ffcf801086"},t("h2",{key:"2eee90cf795cb664ae58f8acc9c3ce7507d24d43"},"Range"),t("h3",{key:"514e771706c0ef2966314210c521b77aae6303cd"},"Phone Number"),t("smoothly-input-range",{key:"ca56ef4990eaf1b2e7fdf538ff97e99e8dc95dbc",min:7e8,max:799999999,step:1,label:"Phone Number"}),t("h3",{key:"b2311c9a02a18f87e6007751e74d0f734c3065cb"},"Stars out of ten"),t("smoothly-input-range",{key:"5943346ccc617732018765e3bee90983249af7ee",max:10,step:1,label:"Stars"}),t("h3",{key:"568036b413fb001fa391e4d17301c7de6cae0ae4"},"Percent"),t("smoothly-input-range",{key:"8fb10ce5d6797d3902a5ef6daea24693aed6c8f0",type:"percent",max:1,step:.01,label:"Percent"}),t("h3",{key:"a559ab1a231c754648ab7b41f98e22a2be92822c"},"With icon at start and clear button"),t("smoothly-input-range",{key:"7f9e20c399d74ead7e045e9bf667960caf79d5b5",step:1,name:"range2",label:"Select"},t("smoothly-icon",{key:"4160644ddaccebae7e635c685f77af1f8f67fbef",name:"checkmark-circle",slot:"start"}),t("smoothly-input-clear",{key:"39d01ea1fafbeaceb339154e8d356b7fb02c5e5a",size:"icon",slot:"end"})))}};const Hc='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--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(--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;--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(--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 Fc=Hc;const Uc=class{constructor(t){e(this,t);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((e=>{if(lr.Element.type.is(e)){this.parent=e;this.readonlyAtLoad=e.readonly;e.listen("changed",(async e=>{if(cr.is(e)){this.display=e.readonly?false:e.changed}if(e instanceof br){this.display=!e.readonly;this.disabled=!this.readonlyAtLoad&&!e.changed}}))}}))}clickHandler(e){var t,o;e.stopPropagation();(t=this.parent)===null||t===void 0?void 0:t.reset();this.parent instanceof br&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var e;return t(s,{key:"84d146336bbff590ee3975dae9a2680d70d8edb7",title:this.tooltip},t("smoothly-button",{key:"0286108fc4e8b36381d1ae238b771121153a3eaa",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined,onClick:e=>this.clickHandler(e)},t("slot",{key:"c188073bf34013cc79126f1dac5fd19c1bc44884"}),t("smoothly-icon",{key:"ca46c711d2d41a0f4ad835c608c5011d1f5a8e03",flip:"x",name:"refresh-outline",size:"tiny"})))}};Uc.style=Fc;var Yc;(function(e){let t;(function(e){e.type=d({value:A(),deselectable:y(),selected:y().optional(),filter:h()});e.is=e.type.is})(t=e.Element||(e.Element={}));e.type=t.type.extend({});e.is=e.type.is})(Yc||(Yc={}));const Wc='.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:0 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;margin-right:.2em}.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%)}smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.invalid.sc-smoothly-input-select{display:block}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-input-reset{padding-right:.2em}.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{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item:not([selectable]){display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:var(--smoothly-color-contrast)}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>smoothly-item.sc-smoothly-input-select:not([selectable])>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}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.sc-smoothly-input-select{display:block}';const Bc=Wc;const Vc=class{constructor(t){e(this,t);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.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 e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var e,t,o,s,a;this.itemHeight===undefined&&(this.itemHeight=(e=this.items.find((e=>e.clientHeight>0)))===null||e===void 0?void 0:e.clientHeight);if(this.menuHeight&&this.itemHeight){(t=this.element)===null||t===void 0?void 0:t.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`)}(a=this.element)===null||a===void 0?void 0:a.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(){cr.formAdd(this)}async unregister(){cr.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((e=>e.value)):undefined}async getItems(){return this.items}async listen(e,t){this.listener[e]=t;t(this)}async reset(){this.selected.forEach((e=>e.selected=e.hidden=false));this.initialValue.forEach((e=>e.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var e;if(this.clearable){this.selected.forEach((e=>e.selected=e.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(e=this.placeholder)!==null&&e!==void 0?e:""}}}async edit(e){this.readonly=!e}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}async onSelectedChange(){var e,t;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}onRequiredChange(){this.items.forEach((e=>e.deselectable=!this.required))}async onFilterChange(e){e=e.toLowerCase();await Promise.all(this.items.map((t=>t.filter(e))))}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async smoothlyInputLoadHandler(e){if(e.target&&("name"in e.target&&e.target.name!==this.name||e.composedPath().some((e=>e==this.iconsDiv))&&!e.composedPath().some((e=>e==this.toggle)))){e.stopPropagation()}else if(Yc.Element.is(e.target)){e.stopPropagation();e.target.deselectable=!this.required;this.items.push(e.target)}e.detail(this)}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(e){e.stopPropagation();if(this.multiple){this.selected=e.detail.selected?[...this.selected,e.detail]:this.selected.filter((e=>e.selected))}else if(e.detail.selected||!this.items.some((e=>e.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!e.detail.selected?this.selected.filter((e=>e.selected)):[e.detail];!this.showSelected&&e.detail.selected&&(e.detail.hidden=true)}this.displaySelected()}onClosed(e,t){this.lastOpen=t;if(!e){const e=this.items.find((e=>e.marked));if(e){e.marked=false}}}handleShowOptions(e){const t=(e===null||e===void 0?void 0:e.composedPath().some((e=>e==this.iconsDiv)))&&!e.composedPath().some((e=>e==this.toggle));const o=e===null||e===void 0?void 0:e.composedPath().find((e=>"tagName"in e&&e.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!t&&(this.open=!this.open);this.filter=""}areValuesEqual(e,t){return e.length===t.length&&t.every((t=>e.includes(t)))}displaySelected(){const e="<div>"+this.selected.map((e=>e.innerHTML)).join("</div><div>")+"</div>";this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?e:this.placeholder?this.placeholder:"")}onKeyDown(e){if(!this.searchDisabled){e.stopPropagation();const t=this.items.some((e=>e.getAttribute("hidden")===null));if(e.key!="Tab"&&!e.ctrlKey&&!e.metaKey)e.preventDefault();if(this.open){switch(e.key){case"ArrowUp":t&&this.move(-1);break;case"ArrowDown":t&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((e=>e.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(e.key.length==1)this.filter+=e.key;break}}else{switch(e.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(e.key.length==1)this.filter+=e.key;break}}}}scrollToSelected(){const e=this.items.find((e=>e.selected));if(e){this.items.map((e=>e.marked=false));e.marked=true;this.scrollTo(e,"instant")}}move(e){let t=this.items.findIndex((e=>e.marked));if(t==-1)t=0;else{this.items[t].marked=false;t=(t+e+this.items.length)%this.items.length}if(this.items.some((e=>!e.hidden)))while(this.items[t].hidden){t=(t+e+this.items.length)%this.items.length}this.items[t].marked=true;this.scrollTo(this.items[t],"smooth")}scrollTo(e,t){var o,s,a;(o=this.optionsDiv)===null||o===void 0?void 0:o.scrollTo({top:e.offsetTop+e.offsetHeight/2-((a=(s=this.optionsDiv)===null||s===void 0?void 0:s.clientHeight)!==null&&a!==void 0?a:0)/2,behavior:t})}addItem(){this.addedItems=this.addedItems.concat(t("smoothly-item",{value:this.filter,selected:true},this.filter))}render(){return t(s,{key:"126ca504b10b3bad5e6d8082ddcd4b60a116c06b",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open,invalid:!!this.invalid},onClick:e=>this.handleShowOptions(e)},t("div",{key:"167e4b9bbdb4cf2fa4db457123dd8152acfe67d7",class:"select-display",ref:e=>this.displaySelectedElement=e},this.placeholder),t("div",{key:"da71cda616c691e2b77887cca24abf1c82d6328e",class:"icons",ref:e=>this.iconsDiv=e},t("slot",{key:"4f6042a5a7b3d2b9fa0736f2d9ff04cc80e78e36",name:"end"}),this.looks=="border"&&!this.readonly&&t("smoothly-icon",{key:"058577c183a1b446cd9e65d82bc7538f258e0627",ref:e=>this.toggle=e,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"}),t("smoothly-icon",{key:"3f09d834fb8b14a7c1aeda057e51adcdbedf7c7f",class:"invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small"})),t("slot",{key:"93d7ac3a839964bb5e429d2f66d39cfb6c66ae0e",name:"label"}),t("div",{key:"c6b2321ca5d632d07dcb7bc0cdfd9e4345a6e110",class:{hidden:!this.open,options:true},ref:e=>this.optionsDiv=e},this.filter.length>0&&t("smoothly-item",{key:"2b3614e99b646fffc6e8d6893d8d99da278646a2",selectable:false},t("smoothly-icon",{key:"a1509e12963c7bd91de3dccd5a7b411c2b94e1d4",name:"search-outline",size:"small"}),this.filter,t("smoothly-icon",{key:"4b82441f8dac4fef8e1d573307ac09000c14804a",name:"backspace-outline",size:"small",onClick:e=>{e.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&t("smoothly-icon",{key:"d28a88ee36f0d03cd83ef5ec6096cdb2e4a77524",name:"add",size:"small",onClick:e=>{e.stopPropagation();this.addItem()}})),t("slot",{key:"4d1636482bb3d7d3f144bc3c49746e2b613eb9b3"}),this.addedItems))}get element(){return a(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};Vc.style=Bc;var Gc;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.submit=="function"}e.is=t})(Gc||(Gc={}));const Kc='[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{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--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(--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;--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(--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 Zc=Kc;const qc=class{constructor(t){e(this,t);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((e=>{if(Gc.is(e)&&lr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{var t;this.display=!e.readonly;this.disabled=!this.delete&&(e.readonly||"validator"in e&&e.validator instanceof n&&!((t=e.validator)===null||t===void 0?void 0:t.is(e.value))||!e.changed)}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit(this.delete)}render(){var e,o;return t(s,{key:"61455e946113cc21449e9e8641c6bbfef8e30e72",title:this.toolTip},this.delete==true?t("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(e=this.color)!==null&&e!==void 0?e:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},t("slot",null),t("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):t("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()},t("slot",null),this.icon&&t("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}};qc.style=Zc;const Jc="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-input-selected-background));color:rgb(var(--smoothly-input-selected-foreground));border-left:.3em solid rgb(var(--smoothly-input-selected-border))}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}[marked].sc-smoothly-item-h,.sc-smoothly-item-h:hover{background-color:rgb(var(--smoothly-input-hover-background));color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-item-h[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:hover.sc-smoothly-item-s>*{color:rgb(var(--smoothly-input-hover-foreground));fill:rgb(var(--smoothly-input-hover-foreground));stroke:rgb(var(--smoothly-input-hover-foreground))}";const Xc=Jc;const Qc=class{constructor(t){e(this,t);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.selectable=true;this.deselectable=true}clickHandler(){if(this.selectable&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&this.selectable)this.smoothlyItemSelect.emit(this.element)}async filter(e){var t;const o=typeof this.value==="string"?this.value:JSON.stringify((t=this.value)!==null&&t!==void 0?t:"");this.element.hidden=e&&this.selectable?!(o.includes(e)||this.element.innerText.toLowerCase().includes(e)):false}render(){return t(s,{key:"0e5344e701592d19a28bd7d2da143047fea7e40a",tabIndex:-1},t("slot",{key:"fd980b0d8c26d6f771a7a17e0217791f6a7f487a"}))}get element(){return a(this)}static get watchers(){return{selected:["selectedWatcher"]}}};Qc.style=Xc;const ed=".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 td=ed;const od=class{constructor(t){e(this,t);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var e;return t(s,{key:"4a90b9d9674560c2a9a59945cb1f0eaf0ce09f9b",title:this.description,style:{"--hue":(e=this.hue)===null||e===void 0?void 0:e.toString()}},t("slot",{key:"ed8b2c1be55b3bd18c7af8f13a7638554046d8c5"}))}};od.style=td;const sd=".sc-smoothly-lazy-h{display:block}";const ad=sd;const id=class{constructor(t){e(this,t);this.show=false;this.content=undefined}loadMoreHandler(e){e.stopPropagation();this.show=true}render(){return t(s,{key:"88c9532ef42caab22c88a769a13068d7828f62e8"},t("slot",{key:"473962c13eb1cedd201dc015b12543f146937871",name:"before"}),t("smoothly-load-more",{key:"6c9e8bbc62fac0be9eeec2475f63f6f68417006a",onSmoothlyLoadMore:e=>this.loadMoreHandler(e)}),this.show&&(typeof this.content=="function"?t(this.content,null):this.content),t("slot",{key:"9239f995d5eea81d62ec1a80167f16dcb28435a1"}))}};id.style=ad;const nd=class{constructor(t){e(this,t);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 e;this.observer=new IntersectionObserver(((e,t)=>this.observationHandler(t,e)));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=l.findParent(this.element);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var e;(e=this.scrollableParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(e,t){var o,s;this.inView=((s=(o=t.find((e=>e.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&&(e.unobserve(this.element),e.disconnect())}}render(){return t(s,{key:"e2d3a2ec72790c092e380414de0e652e5e95f2e6"})}get element(){return a(this)}};const ld=".sc-smoothly-next-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const rd=ld;const cd=class{constructor(t){e(this,t)}render(){return t(s,{key:"ad66c04678c57615cd654afef65052166bf95d02"},t("smoothly-next-demo-group",{key:"18584b307d1170601bbfae068ea73aaa51495d91"}),t("smoothly-next-demo-colspan",{key:"46dd448391adb9c6a62877b9b08db6f638bb4ea7"}),t("smoothly-next-demo-simple",{key:"e576c9455c1915d5773981a5c655960e643443b7"}),t("smoothly-next-demo-nested",{key:"d9f197a314998a3bee70eb410d4c47945e48756c"}),t("smoothly-next-table-demo-filtered",{key:"e1a613c0f6ec69bf6a92159afa3f347cf9411e1e"}))}};cd.style=rd;const dd=".sc-smoothly-next-demo-colspan-h{display:block}.sc-smoothly-next-demo-colspan-h smoothly-display.sc-smoothly-next-demo-colspan{display:inline}";const hd=dd;const bd=class{constructor(t){e(this,t)}render(){return t(s,{key:"b2c6c645d065e30ee02b8e9f5feedb2b295ea3e4"},t("smoothly-next-table",{key:"2a3f3f2405975ecbc1368d1fcad7cabc83e1bbf4",columns:3},t("smoothly-next-table-head",{key:"e77caee7b9768d0dea19249ec0a91c20cafcb607"},t("smoothly-next-table-row",{key:"087a5fad61abc4ce24ca78c4acf1b8176c6b70df"},t("smoothly-next-table-cell",{key:"4c49a5950fde1ccad81a94383ff16755ad5fa2e5"},"Date"),t("smoothly-next-table-cell",{key:"8614f0587a7f50c996f3e4034b792e0e148ba867"},"Skip"),t("smoothly-next-table-cell",{key:"386a1cf212c3caffcdb92a06f2d6b8424e48ab44"},"Total"))),t("smoothly-next-table-body",{key:"a8e0cf028b6fc60707a553792064a0bd551d857f"},t("smoothly-next-table-row",{key:"6451e716f3ddd3ac0ad38ab8a8a5c9b75bdbf930"},t("smoothly-next-table-cell",{key:"df0ca19e83c66e3381ba3de68b3980b40d00bcf9",span:2},t("smoothly-display",{key:"196eea216c4da3b8638682d89238bc1f732dab4c",type:"date",value:"2024-01-01"})),t("smoothly-next-table-cell",{key:"21e9c4582309ddda5927f16725c52ce26e3a6664"},t("smoothly-display",{key:"2be15893edbe6c922d9b8d800129f8932817c73e",type:"price",value:120,currency:"EUR"}))),t("smoothly-next-table-row",{key:"b8c48318275f6cf0394d182441c5580554bd36ef"},t("smoothly-next-table-expandable-cell",{key:"91529f5300fd180587451c7329fd308de700dca3",span:2},t("smoothly-display",{key:"ae2ac526610e0a9a768057643becde1f5ab89510",type:"date",value:"2024-01-02"}),t("smoothly-lazy",{key:"573e52c30a1394e1ebfad7cdc8bdbf8a8ad90c09",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),t("smoothly-next-table-expandable-cell",{key:"5de337ecacbfd99a15061adedf6d54c634462962"},t("smoothly-display",{key:"5cb3e3fed252228a9b9d1c1d711bab91faf83f86",type:"price",value:220,currency:"EUR"}),t("smoothly-lazy",{key:"b89a787ec90aca2d56e694fdc8c820cddb0b7dda",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),t("smoothly-next-table-row",{key:"9743fe9940fee19131f342271fb77b47da615a63"},t("smoothly-next-table-cell",{key:"908d245801e83374a6e20f6aebf21d87199f84fe"},t("smoothly-display",{key:"7f3169841c862511050e427e6f525fae099f2f59",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"dbd77917ba5226340a77099a9afe5e80aa9b7ad5"},"Not Skipped"),t("smoothly-next-table-cell",{key:"c015691be21133633630da7f9aa0224204402c24"},t("smoothly-display",{key:"960708bfa8ef9ac968f9f23120b2f89315cb7cdf",type:"price",value:320,currency:"EUR"}))))))}};bd.style=hd;const md=".sc-smoothly-next-demo-group-h{display:block}.sc-smoothly-next-demo-group-h smoothly-display.sc-smoothly-next-demo-group{display:inline}.sc-smoothly-next-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-next-demo-group{grid-column:span 2}.sc-smoothly-next-demo-group-h>smoothly-display.sc-smoothly-next-demo-group{display:inherit;font-size:2em}.sc-smoothly-next-demo-group-h>*.sc-smoothly-next-demo-group{margin-bottom:2rem}.sc-smoothly-next-demo-group-h fake-group-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-row-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-expandable-row-wrapper.sc-smoothly-next-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-next-demo-group-h fake-cell-wrapper.sc-smoothly-next-demo-group{grid-column:span 1;display:block}.sc-smoothly-next-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-next-demo-group{display:contents}";const yd=md;const ud=class{constructor(t){e(this,t)}render(){return t(s,{key:"ff874f15d29e99083ebcc499cf47f13080b1d981"},t("smoothly-display",{key:"1e032e73f451aebbf079015970fd4c9179b4f34c",type:"text",value:"Group"}),t("smoothly-next-table",{key:"e4cbaaa391ac3a5d6c3c1e241f5abfe5a860c1e2",color:"primary",columns:2},t("smoothly-next-table-head",{key:"28f06391849ce85568cd0d0bbacafcf399734cf0"},t("smoothly-next-table-row",{key:"e022b2233c8ee921951e788dcdf82f07d15ef331"},t("smoothly-next-table-cell",{key:"6c9cf6fb3eff80c996614d30682430cf6c43c5d6"},"Date"),t("smoothly-next-table-cell",{key:"69dd24aa41d2eb9be070ec15d0df5a5d70023518"},"Total"))),t("smoothly-next-table-body",{key:"39573e34a031bba392edcf2259ed1e1fa99d6e0a"},t("smoothly-next-table-row-group",{key:"eb8c3c6d5f012a6d9fa18dc3a7ed02ad6f42b07f",align:true},t("smoothly-display",{key:"097d576c78e4aad18b45b88140561a63849ae696",slot:"start",type:"date",value:"2024-01-01"}),t("smoothly-display",{key:"cbb3f0d18e230353d46585b69575975b6b28cbca",slot:"end",type:"price",currency:"EUR",value:510}),t("smoothly-next-table-expandable-row",{key:"f0ed517d0295c3c435b745296bda12a52ec19469"},t("smoothly-next-table-cell",{key:"aad9d185615fac89d0c7ae22a8622931714da9e5"},t("smoothly-display",{key:"229bdb21a8e632b3cabc75b52dc10a5ac552843c",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"65e35f8e0cef441c38538ea7260144516b073d59"},t("smoothly-display",{key:"ae43957ee27fa296763cf963715a8b332255e241",type:"price",currency:"EUR",value:250})),t("smoothly-lazy",{key:"9b04e07d24fe3a2c0582d593c128e82300fbd5ae",slot:"detail",content:t(i,null,"Details of 2024-01-01T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"0421109113e533e527b9afbb9ff96d53e782c2e7"},t("smoothly-next-table-cell",{key:"339dc0089c2a94144a5ec9d32129d532ee968e83"},t("smoothly-display",{key:"fefc20db6ad710098e9a1b024b14e169b8d80c39",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"3405e27f2e9fe09f6ee766603f55154ce5c97b8e"},t("smoothly-display",{key:"9e9b529c7783890e535cc12e5fc81add5bb6dcbf",type:"price",currency:"EUR",value:260})),t("smoothly-lazy",{key:"d6a1c29f866b4bc2c7f30f93694302ffa2928a6b",slot:"detail",content:t(i,null,"Details of 2024-01-01T13:37:00.000Z")}))),t("smoothly-next-table-row",{key:"56b81f00b219e8e686895abb596815465d79bc56"},t("smoothly-next-table-cell",{key:"bde142726605fbf1d848a714ed4eeb28311d46b1"},t("smoothly-display",{key:"7bdccf4633c9e7ce9ddc4ece54a1756b134191b0",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"461389cef6c33040a1fb4c16ec206f16f391c315"},t("smoothly-display",{key:"1a327b00a226d514fe3d22db0ca6fc05cb8544a4",type:"price",currency:"EUR",value:130}))),t("smoothly-next-table-row-group",{key:"12d395fd3c1ac1dcd846d7f1f922f399c89b3a5d"},t("smoothly-display",{key:"e79903aae83137a74d7a0d651a489554bc109916",slot:"start",type:"date",value:"2024-01-03"}),t("smoothly-display",{key:"6577ecd6301fc9c8ba3931fe3c3375f52425a190",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"9b11f897beeafd11d209739e4e2af95d43e9024c"},t("smoothly-next-table-cell",{key:"5bb31970610ce0562eabdd76c8bd6003eadcb703"},t("smoothly-display",{key:"d00fc7e0d7367da1795552a38edf6a35e7d67c04",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"ef8fd452e7f83e05fbbecf95b0638337fdbbf85d"},t("smoothly-display",{key:"6524bc3d69f3c00eff36f5ddcdaaa677c1809a9a",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"32d1f68b390bc19d85a32dc3300b50b0a6eacdb6",slot:"detail",content:t(i,null,"Details of 2024-01-03T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"dacca1bc298a62451e7b1de3ea2688282b649a2a"},t("smoothly-next-table-cell",{key:"97da26f60d83a2a2d948cc2ba02ba9090528f1a3"},t("smoothly-display",{key:"19d81d7f3f751f25ea752ee8842f8e0a8e246584",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"43c793b92e4ba613287b577219d8575a0f24410d"},t("smoothly-display",{key:"b120bb00528952bfe843fc463c74ee650ca0eeeb",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"86fc64d503d0df6aef46dc3b7882d41b17b85129",slot:"detail",content:t(i,null,"Details of 2024-01-03T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"40b0dc0deb96c3dbba541558e3588efe87044c0d"},t("smoothly-display",{key:"493bb51e2dd587f43065aa17c5038d0eaf557ff7",slot:"start",type:"date",value:"2024-01-04"}),t("smoothly-next-table-expandable-row",{key:"102684745337826b747da01ff6834f8351e5fdd1"},t("smoothly-next-table-cell",{key:"c803e418a66f0e70a31b5713e3db5430b656cce5"},t("smoothly-display",{key:"a3c42172f2b70bdeac5f11e3c03c9a45a35371a3",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"b78d45a62d5afe38b9e74b79f37bf043b76535f6"},t("smoothly-display",{key:"f2de03d1b47cc9827c607bc9a1cccd7d090d109d",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"987e7dc9105e445300201263849685ea8e2bef2b",slot:"detail",content:t(i,null,"Details of 2024-01-04T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"7e82232e17c85dc9a84fcedfc1da556b160a67b8"},t("smoothly-next-table-cell",{key:"b2daffddab2af02684efa06d4e583b832de01702"},t("smoothly-display",{key:"487a1f53600026e1291b7ce1ba8d4565c4c5a184",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"2f251ec1c497f631609fe8a9dc7c5242516953f6"},t("smoothly-display",{key:"705cb8032956df5cd3fe86387f22ed1f499541e3",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"96bbbbcbee7c044d380d44c1272aef94b7d26d7c",slot:"detail",content:t(i,null,"Details of 2024-01-04T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"581936167e7153290cd4a004b0de4097b3dcd37d"},t("smoothly-display",{key:"4c64eadf6eaadc46cf6cbe685485aa29cdd79ab3",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"f21368272112b5e10bdca67f3ac00e20c920991f"},t("smoothly-next-table-cell",{key:"905ca0c7756b91ffac9c2f64b690fd4f9386d5a2"},t("smoothly-display",{key:"ff8d18b78048e4fbdd2db5daa1d0d5fc638d2b40",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"ca7e8ab39d27d5cd0f4328db1ea53ed146b096e5"},t("smoothly-display",{key:"a71b3233c84ca7bb4b841ef92e5c415920aa8e04",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"8c0d91382720e022075ffcac32123d3218fca091",slot:"detail",content:t(i,null,"Details of 2024-01-05T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"7783eda7dd805ee4a1e6b812ee16dc5de5d4c728"},t("smoothly-next-table-cell",{key:"ae8618d1213ca9b2936f8e13b3099a51cc47c445"},t("smoothly-display",{key:"a2a8cc83750ba4e9754cec70e904fb034ad79d82",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"bf7a5c89a9f6709b10b4b44b6e3de4b83595d1f1"},t("smoothly-display",{key:"4437f5797f262190bce122235ffa79c7a754b930",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"b0ad97494ec9e92698f5dbc87286a886513ee435",slot:"detail",content:t(i,null,"Details of 2024-01-05T13:37:00.000Z")}))),t("fake-group-wrapper",{key:"9cf6d748292dd9fd3a9fea44fcacca3225b3e33a"},t("smoothly-next-table-row-group",{key:"1bce798d3fa74f46b4f72c443bc7b8796ca3a16a"},t("smoothly-display",{key:"1e5724ffb93301b0fb15d619b257784fa7496489",slot:"start",type:"date",value:"2024-01-06"}),t("smoothly-display",{key:"19b8246354fbfc7bfd006cd8798bb93199bafb89",slot:"end",type:"price",currency:"EUR",value:720}),t("fake-row-wrapper",{key:"cb2d49d7a02550f6ff3a774a8cf71339fa12e004"},t("smoothly-next-table-row",{key:"bd7a8c8077c19c4c4055cd0ca9e562aa06e9890a"},t("fake-cell-wrapper",{key:"b1366c9b42cc987c3f3539987b9732151d70557f"},t("smoothly-next-table-cell",{key:"81382dceb58c5ef27c34e58fce6d7c6e4c3d2042"},t("smoothly-display",{key:"f21e24a484ffc07be14132e180433f9a259da092",type:"date",value:"2024-01-02"}))),t("fake-expandable-cell-wrapper",{key:"1738c66939b561a6cded42cb96dc850229a49767"},t("smoothly-next-table-expandable-cell",{key:"3dd59423999f91677399fd5c8484b4a6b847f4a2"},t("smoothly-display",{key:"002e9352edc79c8bd24c32d86613bcd171ff3c56",type:"price",currency:"EUR",value:130}),t("smoothly-lazy",{key:"8176912a8409266607a8e9be866d973fdf09d8b6",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),t("fake-expandable-row-wrapper",{key:"fbb9345e40dec6db5710cffea7bdcb08891a483c"},t("smoothly-next-table-expandable-row",{key:"627a45cd5376678868725bf3c06367e7ae43a5b9"},t("fake-cell-wrapper",{key:"eb046a275d6595b51403a850f798cc22916aa4be",class:"span-2"},t("smoothly-next-table-cell",{key:"077a02cb1ae0717b44ce1556a49a811179e651fc",span:2},t("smoothly-display",{key:"782b8989a45e1812fea6956991cba54bc15db671",type:"date",value:"2024-01-07"}))),t("smoothly-lazy",{key:"2d2bebabe359322df1d97a916ab96eac0f935427",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),t("smoothly-next-table-row-group",{key:"4ff04f4105fb8ae4cbeb04f383a430700248ebae"},t("smoothly-display",{key:"7d3205eda3cf4c8db2dd895661dd02b6e9d7daa2",slot:"start",type:"date",value:"2024-01-08"}),t("smoothly-display",{key:"09b25d7d4d940827459bc613e56f99074d97e2cd",slot:"end",type:"price",currency:"EUR",value:720})))))}};ud.style=yd;const fd=[{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 pd=".sc-smoothly-next-demo-nested-h{display:block}.sc-smoothly-next-demo-nested-h>smoothly-display.sc-smoothly-next-demo-nested{font-size:2em}.sc-smoothly-next-demo-nested-h>*.sc-smoothly-next-demo-nested{margin-bottom:2rem}";const gd=pd;const kd=class{constructor(t){e(this,t)}render(){return t(s,{key:"eb174539571c6594f1a67904a3bd6cc46a4775c2"},t("smoothly-display",{key:"c38e889a98aa98d0d31759e4e6199cd8f4227da9",type:"text",value:"Nested"}),t("smoothly-next-table",{key:"e6bfb25f6b697f8f2329691542386280cc4fa6ed",color:"primary",columns:8},t("smoothly-next-table-head",{key:"55d1813a936ce8f7e8741f06df2d2c580f7f7e10"},t("smoothly-next-table-row",{key:"949ebfda030b30f79f53e6384e08f7ba8df1f87b"},t("smoothly-next-table-cell",{key:"233a25c79fa3292d9feadf879ddea26a96c075fe"},"Id"),t("smoothly-next-table-cell",{key:"30c05dd3615677857fe5c91b16f82c4416b37008"},"Registered"),t("smoothly-next-table-cell",{key:"85dbf75ac19a80e5d0f9af9d24eb4986c92f356b"},"Name"),t("smoothly-next-table-cell",{key:"eac465afe7e5136923d1d791ac9b2c199c265a70"},"Age"),t("smoothly-next-table-cell",{key:"094c2f78e1815c87df70ddaddb519b7970a761b3"},"Balance"),t("smoothly-next-table-cell",{key:"60aad2b05e37abef37479480743e91d86ce91f06"},"EyeColor"),t("smoothly-next-table-cell",{key:"f27711521ccd55da231c9154764b896d52d8cb67"},"Gender"),t("smoothly-next-table-cell",{key:"7ec4903f2c08eeb484e749fe70e6aa243b65a6c1"},"Company"))),t("smoothly-next-table-body",{key:"a487a951bc77a11077076b0ac4b91f8ba2bd184f"},fd.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-demo-nested-inner",{color:"secondary",data:e.friends,slot:"detail"}),t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.registered),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance),t("smoothly-next-table-cell",null,e.eyeColor),t("smoothly-next-table-cell",null,e.gender),t("smoothly-next-table-cell",null,e.company))))),t("smoothly-next-table-foot",{key:"54805bd7e8c97fbd649e7a901f9b2e36ba4e8871"},t("smoothly-next-table-row",{key:"65cf41367d296dd55a41587eef61d7ebbf7b2e9d"},t("smoothly-next-table-cell",{key:"f736158bf4d9329d7b49380e21ad83a61667b986"},"Footer Cell"),t("smoothly-next-table-cell",{key:"cbb0d98254a73a1443cbaab8a1edfaea37f7d33b"},"Footer Cell")))))}};kd.style=gd;const vd=".sc-smoothly-next-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const xd=vd;const wd=class{constructor(t){e(this,t);this.data=undefined}render(){var e;return t(s,{key:"0248b5a72a254ce62d43d99ec2202530dd28e789"},t("smoothly-next-table",{key:"4ce545a2433622bd8ac4694b30ebd51ec5c41c64",columns:4},t("smoothly-next-table-head",{key:"a08d6b7548fbe825faebe9426642b2518936db6c"},t("smoothly-next-table-row",{key:"5ea67a034a36d0bb651c8c46a47fe79c8970c5ba"},t("smoothly-next-table-cell",{key:"53bae7bcd2cd0b6bd0963ddf4d945e5f56ffea1c"},"Id"),t("smoothly-next-table-cell",{key:"e7a32cf03cfa817f5392681c18f957281e8037b0"},"Name"),t("smoothly-next-table-cell",{key:"07dea67c94413dc8ac254b8bb11f3ee929a96ccd"},"Age"),t("smoothly-next-table-cell",{key:"f865dd009768fa6e5cffa253feacb4f90761abd0"},"Balance"))),t("smoothly-next-table-body",{key:"e241d00a285d0ee99bb2de8b8bf0e308b46ec9f4"},(e=this.data)===null||e===void 0?void 0:e.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance)))))))}};wd.style=xd;const Sd=".sc-smoothly-next-demo-simple-h{display:block}.sc-smoothly-next-demo-simple-h>smoothly-display.sc-smoothly-next-demo-simple{font-size:2em}.sc-smoothly-next-demo-simple-h>*.sc-smoothly-next-demo-simple{margin-bottom:2rem}";const Cd=Sd;const zd=class{constructor(t){e(this,t)}render(){return t(s,{key:"c5fdef18f94b85c2efe83032d466da6ba567015d"},t("smoothly-display",{key:"0200a4b2cd5710bd1ce995d77550a013bb7ab45b",type:"text",value:"Simple"}),t("smoothly-next-table",{key:"64f5c4c3b1b6dcb48446ec591d4f8ec208b17d33",color:"primary",columns:2},t("smoothly-next-table-head",{key:"0be8b756189e93a18b40e63dd90a5cec7c32b1a9"},t("smoothly-next-table-row",{key:"a727b2b2c8159e26969528becbe4181b9982cd13"},t("smoothly-next-table-cell",{key:"47917f9ed28a51e02a646db47af64b7d589ab486"},"Breed"),t("smoothly-next-table-cell",{key:"17006d80320f9da44010966eb8c6bb0ce96526db"},"Coat"))),t("smoothly-next-table-body",{key:"2e4220d573b24c2e975ba664a05b82631be35dbc"},jd.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country:",t("br",null),e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern))))),t("smoothly-next-table-expandable-row",{key:"c3a86869b462749f01db9d85365d2bfaab54bba7"},t("div",{key:"8acde0cbbef36a6118b4d5ce205ea796d584f65c",slot:"detail"},"Content",t("br",{key:"f7872803b10b635a48bd670753d03cf9d7c2e678"}),"of",t("br",{key:"d552bc308f4fde201b6642e644646d952470c6c1"}),"the",t("br",{key:"3e043df2b75084a2880beb5b3c7d083369ff8276"}),"expandable",t("br",{key:"c63c87fcd100a5c4b5d8a72b1c48cbd8196212cb"}),"row"),t("smoothly-next-table-cell",{key:"48e6d5a20e99edce537f666e256c293dc61a02d9"},"Cell1 in expandable row"),t("smoothly-next-table-cell",{key:"b69385320f21344c591e2a863bfe91c14c11143d"},"Cell2 in expandable row")),t("smoothly-next-table-row",{key:"27af852e8125aea2c6a08816ac9fd18105a0e2e9"},t("smoothly-next-table-cell",{key:"8e40941f52eb0e15f41b29480d52efba177f58f4"},"Cell5"),t("smoothly-next-table-expandable-cell",{key:"54e32eb1c9966561c63702b57bcaebb0fd75799a"},"Expandable Cell",t("div",{key:"a048887e5fcf457323fcf6909f839b803b389065",slot:"detail"},"Content of the expandable cell"))),t("smoothly-next-table-row",{key:"1d5a5178fb8d6cdaff961ef519f3d8133a4aa4d6"},t("smoothly-next-table-expandable-cell",{key:"440b23610fdbac87b86de2ae21f9b0121dd98212"},"Expandable Cell 1",t("div",{key:"c6eeec4e8a16906309ca7343612db2c3f00528db",slot:"detail"},"Content of the expandable cell 1")),t("smoothly-next-table-expandable-cell",{key:"b4ff5754ff2ef4facbead45353bb5a4588b9d9b6"},"Expandable Cell 2",t("div",{key:"a9aa1bd586e9fee98015e609551967b692f4568b",slot:"detail"},"Content of the expandable cell 2")))),t("smoothly-next-table-foot",{key:"5023f571df9999cb5da23ee3051c3270403ffc7f"},t("smoothly-next-table-row",{key:"b738ccd3663c1183d2ad84eacf36824112db4013"},t("smoothly-next-table-cell",{key:"0abf338b0191ceaaed6db51fd2280d7d0d2874f6"},"Footer Cell"),t("smoothly-next-table-cell",{key:"241615bc1f5aca330df47feaa8c5e583c42b5b63"},"Footer Cell")))))}};const jd=[{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"}];zd.style=Cd;const _d=".sc-smoothly-next-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 Td=_d;const Id=class{constructor(t){e(this,t);this.columns=1}smoothlyNextTableExpandableCellChange(e){e.stopPropagation()}render(){return t(s,{key:"8f2969cfd0b8108a8e976dc592ff1e992c727cdb",style:{"--columns":this.columns.toString()}},t("slot",{key:"93076a994b040551cd588de2acd21b73c407b4cc"}))}};Id.style=Td;const Od=".sc-smoothly-next-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 Ld=Od;const Ad=class{constructor(t){e(this,t)}render(){return t(s,{key:"f8381f510d7a93e337d2510ff605474c8c675717"},t("slot",{key:"22d334dbce9a5fe7cbe75172c641cc04070cbba3"}))}};Ad.style=Ld;const Ed=".sc-smoothly-next-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 Dd=Ed;const Md=class{constructor(t){e(this,t);this.span=1}render(){var e;return t(s,{key:"a5f090501ab9f97c7acd9bde4d6efbd8ecda0acd",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("slot",{key:"b3f340298309141052b400cf10b5a11d139fdbac"}))}};Md.style=Dd;var $d=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Rd=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Pd;class Nd{get selected(){var e;return Rd(this,Pd,(e=$d(this,Pd,"f"))!==null&&e!==void 0?e:Object.values(this.data),"f")}constructor(e,t={}){this.key=e;this.data=t;Pd.set(this,void 0)}handle(e){var t;return new Nd(this.key,"check-all"in e?(t=e["check-all"])!==null&&t!==void 0?t:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),e)).filter((([e,t])=>t!=undefined))))}render(e){var o,s,a;return Array.isArray(e)?t("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(e.map((e=>[e[this.key],e]))),intermediate:this.selected.length>0&&this.selected.length<e.length,checked:this.selected.length==e.length?true:this.selected.length==0&&false}):t("smoothly-checkbox",{name:(o=e[this.key])===null||o===void 0?void 0:o.toString(),value:e,checked:!!this.data[(a=(s=e[this.key])===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""]})}static create(e){return new Nd(e)}}Pd=new WeakMap;const Hd='.sc-smoothly-next-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-next-table-demo-filtered-h>smoothly-display.sc-smoothly-next-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-next-table-demo-filtered-h>smoothly-filter.sc-smoothly-next-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-next-table-demo-filtered-h>*.sc-smoothly-next-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(2),.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-head.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(4){justify-content:end}';const Fd=Hd;const Ud=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Nd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await tr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=Yd[e.country])!==null&&t!==void 0?t:[]}),names:(o=Yd[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&Xn(this.criteria,this.cats);return t(s,{key:"21b8aef8fbffa0d341c6a0cb96391955daadadc8"},t("smoothly-display",{key:"81aac4b8b0df022cb02fa4a4233ae81b6e703e42",type:"text",value:"Filtered"}),t("smoothly-filter",{key:"32b8a029114b5c69ca61ba7ae91333c03682b378"},t("smoothly-filter-toggle",{key:"426ddab99effdfca5d3f0f4266df73ad17bff7c6",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"5c3897576c80babf14a21b174764e05815d7b409",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"072ed99302f41e1df1f7534198edab6d56c79a19",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"4e9c69749157a8ce2ef4ff600c258b3df31fe03b",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"7c1d4ef27af368bb3abbccbc8ab554c0e39e032e",menuHeight:"5items",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"2d59cb9a656bdeed01641b7fc452c2c72ec39b9c",slot:"detail"},t("smoothly-form",{key:"321506b0a0b656978d64f3c79301ec8e1528a346",looks:"border"},t("smoothly-filter-select",{key:"b4d38daa73244679a7c0eaa70e58e886d04a261f",menuHeight:"5items",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"2a7002b911e71c2fcd00d22e36bea8caee847ce6",menuHeight:"5items",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"eec92284f9c3a34837ea8cc24c92acf1826c02d7",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Yd).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"8aedcd9954ed6e2c398d7e4f4bb44534262d2a28",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"f42f086333adc01ab5ff116bc547bdae14a7c8ba",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-next-table",{columns:4},t("smoothly-next-table-head",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-cell",null,"Breed"),t("smoothly-next-table-cell",null,"Coat"),t("smoothly-next-table-cell",null,"Price"))),e.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-next-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-next-table-foot",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",{span:3},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`}))))))}};const Yd={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Ud.style=Fd;const Wd='.sc-smoothly-next-table-expandable-cell-h{display:contents}.sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell::before{rotate:45deg}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-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-next-table-expandable-cell-h>div.sc-smoothly-next-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-next-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-next-table-expandable-cell{display:none}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-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-next-table-expandable-cell-h>div.detail.sc-smoothly-next-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 Bd=Wd;const Vd=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableCellChange=o(this,"smoothlyNextTableExpandableCellChange",7);this.smoothlyNextTableExpandableCellRegister=o(this,"smoothlyNextTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyNextTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open}openChange(){this.smoothlyNextTableExpandableCellChange.emit(this.open)}render(){var e;return t(s,{key:"f9ee788b23bb196c0c0ffc7e5b404149f61ea2ed",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("div",{key:"66fedc2f8717220cbfa428ddd75a7b39c5db8ddf",onClick:()=>this.clickHandler(),class:"content"},t("slot",{key:"5bf3b5a31ed276f086eeb8379ec1b9377de26e44"})),t("div",{key:"e11517c4d3b41b340bc37169f1659ff6b935ac17",class:"detail"},t("slot",{key:"417bff514de4a9a0e10c245edb8e7fcbffa4526f",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};Vd.style=Bd;const Gd='.sc-smoothly-next-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-next-table-expandable-row-h.sc-smoothly-next-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-next-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-next-table-expandable-row-h>div.sc-smoothly-next-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-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-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-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-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-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-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-next-table-expandable-row-h>div.sc-smoothly-next-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 Kd=Gd;const Zd=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableRowChange=o(this,"smoothlyNextTableExpandableRowChange",7);this.open=false}clickHandler(e){this.div&&e.composedPath().includes(this.div)||(this.open=!this.open)}openChange(){this.smoothlyNextTableExpandableRowChange.emit(this.open)}render(){return t(s,{key:"4b2d988483dd093197a75171ea3c3a24864246bf",onClick:e=>this.clickHandler(e)},t("slot",{key:"d59c66077cb1a67083c8a23e9cbb1ac9625a4df1"}),t("div",{key:"0dde37337531483d160c6fa081a5754f31c0799d",ref:e=>this.div=e},t("slot",{key:"0914d7e1e3472082335eaafe04629c4490bf6854",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};Zd.style=Kd;const qd=".sc-smoothly-next-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 Jd=qd;const Xd=class{constructor(t){e(this,t)}render(){return t(s,{key:"002f8fdf9a86bbe73432339582adfb6ff75537dd"},t("slot",{key:"f54fcaa0a1da2d1d910ac56a2b3c3de609f2c099"}))}};Xd.style=Jd;const Qd=".sc-smoothly-next-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-next-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";const eh=Qd;const th=class{constructor(t){e(this,t);this.onScroll=e=>{if(e.target instanceof HTMLElement){this.scrollParent=e.target;const t=this.scrollParent.getBoundingClientRect();const o=this.element.getBoundingClientRect();this.scrolled=t.top==o.top}};this.scrolled=undefined}connectedCallback(){var e;this.scrollParent=l.findParent(this.element);(e=this.scrollParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var e;(e=this.scrollParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.onScroll)}render(){return t(s,{key:"ec034d5b8c824a2c3f87038ecb8bd0f39323ecf2",class:{scrolled:!!this.scrolled}},t("slot",{key:"dd85786f6c1182900ff51f2b7a45ce916ff679b2"}))}get element(){return a(this)}};th.style=eh;const oh=".sc-smoothly-next-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-next-table-row-h:has(smoothly-next-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-next-table-row-h:has(smoothly-next-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const sh=oh;const ah=class{constructor(t){e(this,t);this.expandableCells=new Set}smoothlyNextTableExpandableCellRegisterHandler(e){e.stopPropagation();this.expandableCells.add(e.target)}smoothlyNextTableExpandableCellChangeHandler(e){if(e.detail)for(const t of this.expandableCells)e.target!=t&&t.close()}render(){return t(s,{key:"be95802ce9024180037183f675f6622b25f3cd6b"},t("slot",{key:"638c381090279b4872349665c1a76fa31bd8550d"}))}};ah.style=sh;const ih=".sc-smoothly-next-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group{display:contents}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group>*.sc-smoothly-next-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-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-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-next-table-row-group-h:not([open])>div.sc-smoothly-next-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-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-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover>div.sc-smoothly-next-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const nh=ih;const lh=class{constructor(t){e(this,t);this.align=false;this.open=false}clickHandler(){this.open=!this.open}render(){return t(s,{key:"7b8bf0d650b30c77e465110322618cd4b7ccfaac"},t("div",{key:"f1ff52b8f2263c2402cda3ee65b1e714cd7bef53",onClick:()=>this.clickHandler()},t("div",{key:"68a7c8121d742a6926076f44c0940db08301be3e"},t("slot",{key:"49fa99c6dd54cd9aae0bbda92ae42ebc99ba4bfd",name:"start"})),t("div",{key:"8360e32514ab46ee90cfa620a60a7887ec430386"},t("slot",{key:"7f14fad4b7a86240bac27278002b64816d9346a9",name:"end"}))),t("div",{key:"723a1b607e356bd6df4531f4ed51a7606a42c11c"},t("slot",{key:"fead0c12aace8f70dec6736ae93b1b0e53d8c929"})))}};lh.style=nh;const rh=".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 ch=rh;const dh=class{constructor(t){e(this,t);this.remove=o(this,"remove",7);this.listener=e=>{if(e.state=="closed")this.remove.emit(e);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=undefined;this.tick={}}get properties(){let e;switch(this.notice.state){case"delayed":case"warning":e=["warning","warning-outline"];break;case"success":e=["success","checkmark-circle"];break;case"executing":e=["light","hourglass-outline"];break;case"failed":e=["danger","alert-circle"];break;default:e=["light",undefined];break}return e}onTrigger(e){if(e.detail.name=="close"){e.stopPropagation();this.notice.close()}}onUpdatedNotice(e,t){if(t)t.unlisten(this.listener);e.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return t(s,{key:"6ec1f235832f27c3df309d1f18a996965abdd217",color:this.properties[0],fill:"solid"},this.closable&&t("smoothly-trigger",{key:"96b6f943b5633fbd9356cd33e3f3e22058fc6b4c",fill:"clear",name:"close"},t("smoothly-icon",{key:"1fadc126c00027bcb3a43dc09ccffbd7401f3249",name:"close-circle-outline"})),t("span",{key:"bd7eacc66df09ea5cc6d45af66afc900b5d18374",class:this.icon?"icon":"clean"},this.icon&&t("smoothly-icon",{key:"a99b20d20a99b1e81f2960bd7340b3cf1de51f3b",name:this.properties[1]}),t("p",{key:"fa0bf5fcabbe133b119143132320eb98f3a11595"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};dh.style=ch;const hh=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";const bh=hh;const mh=class{constructor(t){e(this,t);this.icon=false;this.notices=[]}onNotice(e){this.notices=[...this.notices,e.detail]}onRemove(e){this.notices=[...this.notices.filter((t=>t!=e.detail))]}render(){return[t("slot",{key:"38d88ec7c986388109298bc3118da187cdeb5db1"}),t("aside",{key:"7776494597ca209816a77eaac8e5fad9e98da4b4"},this.notices.map((e=>t("smoothly-notification",{notice:e,icon:this.icon}))))]}};mh.style=bh;const yh="[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 uh=yh;const fh=class{constructor(t){e(this,t);this.size="large";this.overlay=undefined}render(){const e=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return t(s,{key:"d30d4bf3f7e2c8ea7ba2ad651edf278e1795eac0",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},t("svg",{key:"0d98c276244bbeac542017c224b148d20acebaa6",class:"spinner",viewBox:`0 0 ${60+e} ${60+e}`,xmlns:"http://www.w3.org/2000/svg"},t("circle",{key:"d5ac6fcbabbe4a1034b940ef73f63ee14884b505",class:"path",fill:"none","stroke-width":e,"stroke-linecap":"round",cx:`${30+e/2}`,cy:`${30+e/2}`,r:"30"})))}};fh.style=uh;const ph='[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{--border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-submit-h{--border-radius:2rem}[type=link].sc-smoothly-submit-h{display:inline}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h>a.sc-smoothly-submit,.sc-smoothly-submit-h>button.sc-smoothly-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-submit-h>a.sc-smoothly-submit:empty,.sc-smoothly-submit-h>button.sc-smoothly-submit:empty{border-width:0}.sc-smoothly-submit-h>button.sc-smoothly-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--border-radius);align-items:center}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-submit{padding:0.8em;min-width:8em}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-submit{padding:0.6em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;--border-radius:0}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-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-submit-h:not([fill=clear])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h>button.sc-smoothly-submit:focus-visible,[fill=outline].sc-smoothly-submit-h:active>button.sc-smoothly-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:hover::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:focus-within::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--border-radius)}.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:focus-visible,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-submit-h>button.sc-smoothly-submit,.sc-smoothly-submit-h.sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h .sc-smoothly-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-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}';const gh=ph;const kh=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="success";this.expand=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.size=undefined;this.shape=undefined;this.prevent=true}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(Gc.is(e)){this.parent=e}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit()}render(){return t(We,{key:"501c8c100fab3dff9e26108160d61cd699baafea",disabled:this.disabled,type:this.type},t("slot",{key:"1d7f97fb097e91732268f28f72b9ea8c12a4eb9c"}))}};kh.style=gh;const vh=".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 xh=vh;const wh=class{constructor(t){e(this,t);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.inputs={};this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}async toggleHandler(e){if(e.target instanceof HTMLDetailsElement){this.open=e.target.open;this.smoothlySummaryOpen.emit(this.open);this.open?await Promise.all(Object.values(this.inputs).map((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}}onInputLoad(e){if(cr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t("details",{key:"0ceae00723a65e8e5b87a0fe30c0ba376b37fd8a",onToggle:e=>this.toggleHandler(e),open:this.open},t("summary",{key:"57e3893bf5a17c001930b9d4d198e3072cd3bc32"},t("smoothly-icon",{key:"3f1a52200e79f482de81f16f5f7061a287d16bd9",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),t("slot",{key:"aeacad0c79702eba90f26020a58fc6144aef2c79",name:"summary"})),t("slot",{key:"2e571d4a377a4dc36b74cc0a92c7383dd870f876",name:"content"}))}};wh.style=xh;const Sh=".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 Ch=Sh;const zh=class{constructor(t){e(this,t);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((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}onClick(e){e.stopPropagation();this.open=true}connectedCallback(){this.smoothlyTabLoad.emit()}async componentDidLoad(){await this.openHandler()}onInputLoad(e){if(cr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t(s,{key:"e12af24406795e8b226ad6ae561d202f65a1e153"},t("div",{key:"5b33ade0ecda93b3960b2b6e32dbe007804fb658"},t("label",{key:"5a03adf7e78844f3aeba63ff78a21fccaec65ff9"},this.label)),t("div",{key:"25fb82e9b2756dfa210ff4e07d923bdd0cc3e1ac",hidden:!this.open},t("slot",{key:"7636dff75a43fe0ae13da034742001cf874804c8"})))}static get watchers(){return{open:["openHandler"]}}};zh.style=Ch;const jh=".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";const _h=jh;const Th=class{constructor(t){e(this,t);this.smoothlyNestedTable=o(this,"smoothlyNestedTable",7);this.smoothlySpotlightChange=o(this,"smoothlySpotlightChange",7);this.smoothlyTableLoad=o(this,"smoothlyTableLoad",7);this.expandable=new WeakMap;this.expanded=new Set;this.root=true;this.color=undefined;this.align="middle";this.open=false}componentWillLoad(){this.smoothlyNestedTable.emit((()=>this.root=false));this.smoothlyTableLoad.emit((e=>this.owner=e))}handleExpandableLoaded(e){e.stopPropagation();e.target&&this.expandable.set(e.target,e.detail)}handleExpandableState(e){e.stopPropagation();e.target&&(e.detail?this.expanded.add(e.target):this.expanded.delete(e.target));this.smoothlySpotlightChange.emit({allowSpotlight:!this.expanded.size,owner:this.owner})}handleSpotlightState(e){var t;this.open=!!this.expanded.size;e.target!=this.element&&(e.stopPropagation(),e.detail.owner&&((t=this.expandable.get(e.detail.owner))===null||t===void 0?void 0:t.allowSpotlight(e.detail.allowSpotlight)))}handleNestedTable(e){e.target!=this.element&&(e.stopPropagation(),e.detail())}handleEvents(e){e.stopPropagation()}render(){return[t("slot",{key:"355060c54b3d596b81699ba8d3634fbb81de3de1"})]}get element(){return a(this)}};Th.style=_h;const Ih=".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem .5rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div>.sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";const Oh=Ih;const Lh=class{constructor(t){e(this,t)}render(){return t(s,{key:"18794d18c837ba87e876bc622d88f99dd7f76218"},t("div",{key:"9699441c8fdf2d57ded3758e5eeb5cbe7f05e5f7"},t("div",{key:"6db443ed129b1168a2957ec7977cc929d8e2a855"},t("slot",{key:"2c1b039d09bba48e76b94ef45f38d2a659db347f"})),t("smoothly-icon",{key:"2b433159b9f4a140f6a550fb64d2df9768211af3",name:"caret-forward-outline",size:"tiny"})))}};Lh.style=Oh;const Ah=".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:2rem;margin-right:2rem}.content.sc-smoothly-table-demo{display:contents}smoothly-lazy.sc-smoothly-table-demo{width:80%}";const Eh=Ah;const Dh=class{constructor(t){e(this,t)}render(){return t(s,{key:"1e81888eaa70617dc00aceea0d521b6cdc64ccfc"},t("h4",{key:"cf811a7ae12720e33f58263069bcb586b64c9899"},"Demo table 1: Filtered & Checked Table")," ",t("smoothly-lazy",{key:"8d5b7796bd599d6a715f052a9c51c734028cfbc8",content:t("smoothly-table-demo-filtered",null)}),t("h4",{key:"ae1c1ae7f4e182b1b4951481b75f581528ca9431"},"Demo table 2")," ",t("smoothly-table-testing",{key:"9cb781610aff9a2e101c074419b3441cb222d1b6"})," ",t("h4",{key:"1f7b199a3c812e9669510e387c7c580cc2ee0ef2"},"Demo table 3"),t("smoothly-table",{key:"619b90e36f7d36aa1510d180418dd31587c89de5"},t("smoothly-table-row",{key:"d20f4d27e0dc7cff71043508f2a696f14aaf446e"},t("smoothly-table-header",{key:"6c83cbfee2f7dd8a9f35c54d9b429d49a6f28095"},"Header A"),t("smoothly-table-header",{key:"ba411ae9b8ba9672c68188b20eec7879c9d61487"},"Header B"),t("smoothly-table-header",{key:"544e5b604e47f6ee5a3af70d1d05b15a26accccc"},"Header C"),t("smoothly-table-header",{key:"d07440f84256d50b05bea93545836c8df3342059"},"Header D")),t("smoothly-table-row",{key:"f29fbd4781d3df5a436e5613ba23ea625a44e335"},t("smoothly-table-expandable-cell",{key:"65885643a6fbd3be4a9dde0fce47eccdd60735ff"},"normal row (exp.cell)",t("div",{key:"95fe20c0245b0ae2e16dafeae2323e74ffb301aa",slot:"detail"},"expandable cell 1 content")),t("smoothly-table-expandable-cell",{key:"8a732eca75a30504e08beb5fb2d26bce47e71121"},"expandable cell",t("div",{key:"6c81cc0bae9e6efc960ae83558ef7501beb8c6d6",slot:"detail"},"expandable cell 2 content")),t("smoothly-table-expandable-cell",{key:"0bf827efd764a4e1e844d707a79ca284d056a892"},"expandable cell",t("div",{key:"b857f2e434b69b4bcd62eb6440d0f27697aa9e92",slot:"detail"},"expandable cell 3 content")),t("smoothly-table-expandable-cell",{key:"621f67b7ab564385fb451c2d8a15ae9c22ee6119"},"expandable cell",t("div",{key:"c47a13ea04e469e9aa9a24c94059a46a4251e258",slot:"detail"},"expandable cell 4 content"))),t("smoothly-table-row",{key:"2446942bf8e81d2a97de8ef58d3c2cef4bec6f2c"},t("smoothly-table-cell",{key:"b501284265c4e99706bc275e155d661a9dc6baf5"},'normal row (nor.cell)"'),t("smoothly-table-cell",{key:"f0650f4a99ae42d410f620747fa1404ec5df4a50"},"normal cell"),t("smoothly-table-expandable-cell",{key:"5737103453809dc92490573254d1475b20546ebf"},"expandable cell",t("div",{key:"27564d6c8413037cad183c9975c9b28afda0e897",slot:"detail"},"expandable cell details.")),t("smoothly-table-expandable-cell",{key:"916bf43ed085b57ad030635cdff9eff8b80985a1"},"expandable cell",t("div",{key:"221d619c3f089af2ad81cf7add468558dcef18ea",slot:"detail"},"expandable cell details."))),t("smoothly-table-expandable-row",{key:"92d2596e4c862700a25e027dc3c9625500b10478"},t("smoothly-table-cell",{key:"62e1cfd13663bdc82d47778aea9b95f4f22c57e5"},"expandable row (nor.cell)"),t("smoothly-table-cell",{key:"1030293776092fdaa24ad3e9b529ee4f45eec8ca"},"Normal cell"),t("smoothly-table-cell",{key:"7e8db7f0b350b74e84d1df6ccfb200b4a04d66b5"},"normal cell"),t("smoothly-table-cell",{key:"c5e4df506620b88a9b333a4a92b87a0d46cb1472"},"Normal cell"),t("div",{key:"f6201f1ce3644876491f3b6a9420e49c710ac113",slot:"detail"},"expandable row content"))),t("h4",{key:"68910519f59a42a9268dbec93208bc0f030d9804"},"Demo table 4"),t("smoothly-table",{key:"819f177232294f211c0869ac9319ebb4601ad809"},t("smoothly-table-row",{key:"ac5d6fe75392bee6b5725aa5eabcddb4e1b62ead"},t("smoothly-table-header",{key:"7a8f45f9d911dfec7406e6805c55ba04169569a6"},"Header A"),t("smoothly-table-expandable-cell",{key:"f0cf50801446d37261c01d6ddcf7bb56a0d96812"},"Header expansion",t("div",{key:"be363d51d567a25f8d1979ddabe86a290df5f45a",slot:"detail"},"Expansion content"))),t("smoothly-table-expandable-row",{key:"f9c051f11a46bf9b9dccf60ee75e7a3e31cca6bd"},t("smoothly-table-cell",{key:"9ac076907ea1d49c884ba4c4d7df0d50f00095ae"},"A Content"),t("smoothly-table-cell",{key:"77ea6442409fb0165c3d697363cbb4c54bb22707"},"Expansion cell"),t("div",{key:"d351e4b0138840dafff86aa6d511521d8e5992a2",slot:"detail"},t("smoothly-tab-switch",{key:"29fbd13a00942110f49f907fa7924ca9fa9688bd"},t("smoothly-tab",{key:"b9d8d6749e2c16c1a62a5079fcb84a99d48598c9",label:"innertable 1",open:true},t("smoothly-table",{key:"7e79c190252792a2fe41499e96c51ca73c3f451c"},t("smoothly-table-row",{key:"763108617589dbaf09137b11b8e956da3f3cfb8d"},t("smoothly-table-header",{key:"dd43ad5e8875f3fd11fd976f93db1ad2334613b6"},"Header B")),t("smoothly-table-expandable-row",{key:"450237e8339795da1a416527794bfe72433ead09"},"B Content"))),t("smoothly-tab",{key:"abf14271c6d8c6b641e2eb9335f9f49f32be93e7",label:"innertable 2"},t("smoothly-table",{key:"5e59f6f7f3d4027cb6ebed7b1f14eafc3c153f29"},t("smoothly-table-row",{key:"23eeeeb7a9e61f3ef8e209a581f28dc1a12f2fbb"},t("smoothly-table-header",{key:"bb6e69d8dcadc79d8ef50510d3ee968c13418481"},"Header C")),t("smoothly-table-expandable-row",{key:"fffa4bcac8af9190eb301de669393028cb9922af"},t("smoothly-table-cell",{key:"b2578a41acb2ff4714df24c9a9f909be67d20987"},"C Content"))))))),t("smoothly-table-row",{key:"93120f64ed8b8bb7f6f9bf2f4cf93bea99656823"},t("smoothly-table-cell",{key:"27c785497174ca3a4041f75df596d2e5fc5c47b3"},"A Content"),t("smoothly-table-expandable-cell",{key:"ae9a378292c57acf6e63f26e9d6b3b9afca4b6a9"},"Expandable cell",t("div",{key:"ab08e00832be0ce6af77375dd494ef395c027ce4",slot:"detail"},"Expansion content")))),t("h4",{key:"c714a263f163ff7cb3d4de166df0116daa81e2cc"},"Demo table 5"),t("smoothly-table",{key:"3f02085045c29d19876f0e8cf23bed4250894fe3"},t("smoothly-table-row",{key:"fa35f7bd0b49d48a3da436a008108862db387131"},t("smoothly-table-header",{key:"406ae426edfab82362a2b699464760c3d6ac6fb0"},"A"),t("smoothly-table-header",{key:"5b99554fb6ae94a6e0b95cffe492d1febaca28aa"},"B")),t("smoothly-table-expandable-row",{key:"dfedc25c9da8a6bbd75ae324b5a578aa9bd35b69"},t("smoothly-table-cell",{key:"f459d12839147af8aa204ee2ea75bbbcac17ae5a"},"nested expandable row"),t("smoothly-table-cell",{key:"d0a136bb38f8aa979a48b247f260a9760f5843a9"},"b row"),t("div",{key:"d00338f17800d0a521840a22e39bd972daae03bd",slot:"detail"},t("smoothly-table",{key:"89e0547b0cad65f7ad2b167ea4d8c706c51afcb2"},t("smoothly-table-row",{key:"20ced4c3688f3b8c75ba1d78a061779cd44a59b7"},t("smoothly-table-header",{key:"0a1ee11eced03c8b8ccd1d877404fad78d510467"},"C"),t("smoothly-table-header",{key:"da2335b9f970ad68c84709e57f2a708b484c739f"},"D")),t("smoothly-table-expandable-row",{key:"7e7a19166ffd03bb859a54c2821b010d436faeb6"},t("smoothly-table-cell",{key:"ea4b0f0ea191075ef54c18fabbe2ad8ed1047791"},"c"),t("smoothly-table-cell",{key:"dbf092a1d1bb5d43c5cbe196becb81b89db625d7"},"d"),t("div",{key:"549de7498f0c93408119fea944a859e51fbf3ae7",slot:"detail"},t("smoothly-table",{key:"2305a88610c4f553e11b7144c9030fa10a71fa7f"},t("smoothly-table-row",{key:"df3ec78778e81cce512b1dffce3e92d4b6b92c52"},t("smoothly-table-header",{key:"96774b735a82a5bed80e5ba0f7ccf4c5f1b4174a"},"E"),t("smoothly-table-header",{key:"04307e344fd8f11bdf0c88b5fba4649bed4ba580"},"F")),t("smoothly-table-expandable-row",{key:"4a4337b1531c0eaf7945169897d219ca11527295"},t("smoothly-table-cell",{key:"80c1691696bc31b95e8b599cee9db92e337b4382"},"e row"),t("smoothly-table-cell",{key:"c5b8f116527691db954891d4635c935f9756188a"},"f row"),t("div",{key:"b8eac3a676f89874a2608d044998d04860e67d28",slot:"detail"},"nested expandable row expansion e f")))))))),t("smoothly-table-expandable-row",{key:"d11dda6cd527a9a5cf6e89b1128247c3948d4e9f"},t("smoothly-table-cell",{key:"935fe60f4b9d1fb24d8f52c7c6afeb4cf457bd7a"},t("span",{key:"514651f49aee6f4e49b8a0af61fe205ec9f3abd8"},"one"),t("span",{key:"aa6c772b53eb2fd36270720d5f66a73d9fb67311"},"two"),t("span",{key:"1be29fff33fe9d831828a648ed20dedc861dd81f"},"three")),t("smoothly-table-cell",{key:"003c06afcbf0ff320a9de32b60581b83ae85acc9"},"five",t("smoothly-icon",{key:"0c8c44a1edd9a1242032d4974664201501940f85",name:"paper-plane-sharp",size:"small"})),t("div",{key:"8f47c6a4654d81c50021f4386d50356e54afff38",slot:"detail"},"four")),t("smoothly-table-row",{key:"e2c6b130ebd48168742baaef5cf5c8e2680d8ea5"},t("smoothly-table-expandable-cell",{key:"e9f073767d0839aacc7893969e2542af214f1b9c"},t("span",{key:"054869c5592ec90551c5669ccac9dd4ee39024d8"},"nested expandable cells"),t("div",{key:"65116daf9dff2e598b529ea65c86b233629c2eba",slot:"detail"},t("smoothly-table",{key:"6513b3a540584f9b0356083edfc9eabbf6ef5aa9"},t("smoothly-table-row",{key:"b3aa59da63cb1fefc5eaf37208583c3ab6551fcb"},t("smoothly-table-header",{key:"2120416ce1708d86c63367ea607f6e05ee0aaca0"},"E"),t("smoothly-table-header",{key:"9d1328b7bcbb592dbf59f86fba11117e8c5ae52b"},"F")),t("smoothly-table-row",{key:"9a3808b7c792ab0426e21a8d3440b231decc0cc5"},t("smoothly-table-expandable-cell",{key:"e673440ce2a02601d226cfd7b11e6983edecc6fe"},"e cell",t("div",{key:"540ed415d6c4c29479d7b0e4d6a7e208f79e37dd",slot:"detail"},t("smoothly-table",{key:"07554fe7d38c781de85bc6776dde4834dcad8e0d"},t("smoothly-table-row",{key:"fe3b65f0716372568906e39284fb588c947baf4c"},t("smoothly-table-header",{key:"09fd1a27b7cc01817246e067bc83de4fab6dfae7"},"G"),t("smoothly-table-header",{key:"c49c4798ef89199ac05a1c0df95c75a3985ab473"},"H")),t("smoothly-table-row",{key:"d9ccb888b9a212c2918a7c2029e70cf218f865b5"},t("smoothly-table-expandable-cell",{key:"56f5199ce8eea13310c114c96accc437284e0da6"},"g cell",t("div",{key:"60594357229ffb745a8c2b2194bdb2c153759ce2",slot:"detail"},"nested expandable cell expansion g")),t("smoothly-table-expandable-cell",{key:"f77afab9dfdcf09597f626fd9993adfba80038a5"},"h cell",t("div",{key:"bbf4147c3a2f54a21a79d0ebc00934855e8abf68",slot:"detail"},"nested expandable cell expansion h")))))),t("smoothly-table-expandable-cell",{key:"48d7231f8728d0ba9087a3af64eee1a7864e9ee0"},"f cell",t("div",{key:"15334c6f8fd87223c7550856bf94d255e3151f5f",slot:"detail"},"nested expandable cell expansion f")))))),t("smoothly-table-expandable-cell",{key:"e2e1727ba211c15e03486350c54e6e322266d19d"},"b cell",t("div",{key:"dda0f2ded71dbc0cf51ac1db7c0dcca4a3bb1195",slot:"detail"},t("smoothly-table",{key:"9e0cd99b329f5379d7b24cd541f79724f211a3d8"},t("smoothly-table-row",{key:"e6af29a4a7b6f072faebea3e2b5f99a6fe09789d"},t("smoothly-table-header",{key:"97ac4940e023b1f3ddcba367e8a16be0e10dfb17"},"C"),t("smoothly-table-header",{key:"e4fc8ad4dd3b5e89c59fc9eff0f9a74716ab747a"},"D")),t("smoothly-table-row",{key:"9a2aab23aecfc63e9d07979ac6429836f49dc113"},t("smoothly-table-expandable-cell",{key:"83c6beb6154dec2c40f10a945656d38ac1e251f6"},"c cell",t("div",{key:"29d5a68d901afa9ef21694836279834c2e58aa40",slot:"detail"},"nested expandable cell expansion c")),t("smoothly-table-expandable-cell",{key:"bdf3c4db6caeb8744380e37150ffea699fef3048"},"d cell",t("div",{key:"1f4ca8c1ee381a1f69b30c4731dc0a4ca6437e37",slot:"detail"},"nested expandable cell expansion d")))))))),t("h4",{key:"a8b606873bea8fd29fd5a598fdeaf54465fd8477"},"Demo table 6"),t("smoothly-table",{key:"49ad1eb61a4b55a5e9697ab572657f1a376293f5"},t("smoothly-table-row",{key:"69ab467625ca61745698fce9051dca55ac1933a2"},t("smoothly-table-header",{key:"ba503032861e865a78436ac0147474c768ea9e33"},"display"),t("smoothly-table-header",{key:"4898d03f29a427e13e43f07c484d6bc3419eebdd"},"contents")),t("smoothly-table-expandable-row",{key:"fc732ebc99a553573a87fc3526a0040d2110cc24"},t("div",{key:"18e0a560239968a34af0102198012191fa1a7e7f",class:"content"},t("smoothly-table-cell",{key:"2bf87d2d2ddf3df8bd0b751d8f5ce3caf14bcbbd"},"A"),t("smoothly-table-cell",{key:"1c7f4b19ef37a0c1ad63cd8d02b17d8d71b74289"},"B")),t("div",{key:"bbcbd5a769a3b39527cbc6748b36c673814a53f5",slot:"detail"},"expansion"))),t("h4",{key:"5d7ee48e767200bc936931b27a14e029e4d52986"},"Demo table 7")," ",t("span",{key:"d036fb86f3e4620d39063992d93f755142f49f2f"},"nested 1 then normal"),t("smoothly-table",{key:"7707fa02cd1e9b3077b83559d3f5cf5a41edd454"},t("smoothly-table-row",{key:"8dd04f01721a1a04c894c8e5c82f5ba1cb907b1b"},t("smoothly-table-header",{key:"4bffdae687565c10c024ecb9dd4791f0a836126f"},"A"),t("smoothly-table-header",{key:"4590482dab09d539f67588d55545e914cf6b9c77"},"B")),t("smoothly-table-expandable-row",{key:"31dbffa696c52d1c55354b75095ed92392740db7"},t("smoothly-table-cell",{key:"92d369a1c4a62dbacfe7a980c6340f6d0df243be"},"a"),t("smoothly-table-cell",{key:"c57f1e063ccef84669ccae9a081c639ba08583d0"},"b"),t("div",{key:"abd39e1a8a218adee4af5f8302fa5a657236211d",slot:"detail"},t("smoothly-table",{key:"bfd377d30ed610d5c1f3f511dad6515e68d3bb54"},t("smoothly-table-row",{key:"f3b2f184dc5cee1d7765713e35da478c0794375f"},t("smoothly-table-header",{key:"a390623c55a401607b8c591fe2ef98317df93764"},"C"),t("smoothly-table-header",{key:"65b3f864c08dfdf4b0220e146b324947f6cfae1e"},"D")),t("smoothly-table-row",{key:"bab95dd9483805247b79c578b819c861bebfaa8d"},t("smoothly-table-cell",{key:"fe2a9ca2737837153910376dce32c7a402c6c8fd"},"c"),t("smoothly-table-cell",{key:"c6c656bc7d6308df1df80ba8be1ec485ae61e37e"},"d")),t("smoothly-table-row",{key:"aa278cf867067a35676398f225d74a9111affb36"},t("smoothly-table-cell",{key:"f564282a07c7e5dbc21bd36472622b327ee18608"},"ccc"),t("smoothly-table-cell",{key:"db4ece905e48909a68afe367ae4f20af1292945b"},"ddd")),t("smoothly-table-expandable-row",{key:"102ed1c7f25cf45abf7a4238efdf7828da385397"},t("smoothly-table-cell",{key:"fad55baf3fd69b952a62057d7faa17e5bd5ec00b"},"cccc"),t("smoothly-table-cell",{key:"09865389901e69b54438b121386e9dc324db32d3"},"dddd"),t("div",{key:"502aed0c2ddee456e0c25c7d8293e4729e8957c5",slot:"detail"},"CONTENT")),t("smoothly-table-row",{key:"d7bef8b956a4ecf1947239069c9eee77c72227d5"},t("smoothly-table-cell",{key:"a3a06dab0231a921e63ec07337600518a8cf9c38"},"ccccc"),t("smoothly-table-cell",{key:"a8575b5800edc197459caacafcd13e559769a1eb"},"ddd")),t("smoothly-table-expandable-row",{key:"633dc208b1c8e9895c05aeddd3644a626dee5e71"},t("smoothly-table-cell",{key:"7c7b5577284dee9eb6af96121fc6de8db907ad07"},"cccc"),t("smoothly-table-cell",{key:"014dd61d02fcaed5ea2743507e68a6653f1b54eb"},"dddd"),t("div",{key:"4c9fbede205d1188439f2aef528add694cef54d9",slot:"detail"},"CONTENT")))))),t("h4",{key:"b132164e9d72c99cbcd433ab0ec6e7b0b60b3e25"},"Demo table 8")," ",t("span",{key:"dc561b563acdf8d333923bf10b69ff143778c951"},"not nested"),t("smoothly-table",{key:"74ee9c97b800c3a3f7e6825b2c3681d9d85afe69"},t("smoothly-table-row",{key:"4b18d54e58521e0367b04816cd10398066394018"},t("smoothly-table-header",{key:"98b143fdfc5a4662999563fda34233249d9267a7"},"C"),t("smoothly-table-header",{key:"18400fcc92660c94ab1c64e20af6f97a4f3c8a05"},"D")),t("smoothly-table-row",{key:"e34cb184da9fb804b766217677971b830f2f1885"},t("smoothly-table-cell",{key:"b6d92d09994628bb9231ac5400185297dc1ff3b5"},"c"),t("smoothly-table-cell",{key:"34983d7167c8a45b46eec6b32ef0e36b5cd05cf0"},"d")),t("smoothly-table-row",{key:"3bfd306e3988785bfd3037e29de0ea00fc00f346"},t("smoothly-table-cell",{key:"fdec6965a2a560cf6509027a421f22f48f463d81"},"cc"),t("smoothly-table-cell",{key:"b09356192288dc68afe592f1669d09e2e9c68a0f"},"dd")),t("smoothly-table-row",{key:"ea1bb1160e13bb813e4075c8a106c5f8e49d7c99"},t("smoothly-table-cell",{key:"8e2605ba8f015b09cfb2f856ba8a42c5427f22be"},"ccc"),t("smoothly-table-cell",{key:"a3117a4dee7abf312b4ff8e0c941e306885167d8"},"ddd"))),t("h4",{key:"0c3d01993facb1d5b4e832562bddb9578e86ebc2"},"Demo table 9"),t("smoothly-table",{key:"c9a0e744704422b13ee6dfdcfc9c395598292e6f"},t("smoothly-table-row",{key:"60a2fceafba34733346810a3387ac405721e08fd"},t("smoothly-table-header",{key:"701de971e583df65bb611beb9c7ce27cd6b0a47a"},"First name"),t("smoothly-table-header",{key:"17d13bf167959c8e30451f39bfccebe1b431ccb8"},"Last name"),t("smoothly-table-header",{key:"bf5c4eb33709c3e7d95e8f0fa98fe5aa47841d51",style:{width:"1px"}},t("smoothly-icon",{key:"53e48b50924b099beb6a8e7a070e2980d310047d",name:"alert-outline"}))),t("smoothly-table-expandable-row",{key:"5223dc40dd46aa5838086c9609858799657a291f"},t("smoothly-table-cell",{key:"7c159f9dd96d8f65d9b2a2c159ebcad077d4ba47"},"Jessie"),t("smoothly-table-cell",{key:"5a940814eab03442b4e20cbc620ee50afe83d214"},"Doe"),t("smoothly-table-cell",{key:"8e7f5ca5be97c9c8c2631b0312031d59922abb3c"}),t("div",{key:"47e38131aa67c605efe8ad05803f96fe07639ea0",slot:"detail"},t("p",{key:"9b05cf8f394777d75f5a6fcc8c9d5d288568b8c4"},"This is Jessie")))),t("h4",{key:"a736a57fd4c75b2fc00f1fed4125d2cc925db5c1"},"Demo table 9 - Lazy expansion rows"),t("smoothly-table",{key:"cd8b06b8e3b42899b7945ffe8f5bf298a1faf913"},t("smoothly-table-row",{key:"0458d828dda4829b25887bf7660c9fc5daffdc7d"},t("smoothly-table-header",{key:"2c254693f0b569e408e9f22ec115592dcd79dacd"},"Company")),t("smoothly-table-expandable-row",{key:"37fc26f33bff30be526ca3780fdf668f3c8c65cc"},t("smoothly-table-cell",{key:"7f113a77a7bfecc61a3d263346a73c94f78fc60b"},"Proquse"),t("smoothly-lazy",{key:"6fada0440bd567c7a93107a2558b88fe022a8137",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})})),t("smoothly-table-expandable-row",{key:"00798683c7b8fa194f0c073e51d84fde85c58284"},t("smoothly-table-cell",{key:"4555f5454e1c5825bacf233b8e256d326ea73229"},"Pax2Pay"),t("smoothly-lazy",{key:"49feed1977bf280d37a2001445e6034e23363c66",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})}))),t("h4",{key:"6275ea3894718b21b373638eab5eb37be4ba0a41"},"Demo table 10 - Lazy expansion cells"),t("smoothly-table",{key:"e42273100ca07053ac14e16e839b081e11a97a47"},t("smoothly-table-row",{key:"64b6c0601ca90569f7f9a876f2f9f242b46b9aa2"},t("smoothly-table-header",{key:"380b83357c4867232dbce95307cc7b0e3ee2de7d"},"Company")),t("smoothly-table-row",{key:"56685669ebc4730c0dd890b3de5be051ca15f1fd"},t("smoothly-table-expandable-cell",{key:"214757a42d4f8ce0fe37c221cadb779829b371a5"},"Proquse",t("smoothly-lazy",{key:"bb80c7a05470e41057342673a6b547bdff817dcc",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})}))),t("smoothly-table-row",{key:"be9de15d8056192c37679bc397884e0fad19de2b"},t("smoothly-table-expandable-cell",{key:"37af6119e9357506e719601e0f02ba8026ebda6f"},"Pax2Pay",t("smoothly-lazy",{key:"3c03393a59f61c77e5a54af377d3e38d0fcc85a1",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})})))),t("h4",{key:"a43e894a6af8b0beb4467fb7e626b8c1ffcb987c"},"Demo table 11 - expandable cells"),t("smoothly-table",{key:"e63bb694959e962e5f7044f1e7ebae8d83836630"},t("smoothly-table-row",{key:"f75ccc5a9bace58bd093cb3172e868cc9c4100ae"},t("smoothly-table-header",{key:"9c389bc08a2cdb00cf9a834175b88ec14d2c7dee"},"Name"),t("smoothly-table-header",{key:"585c069ee58522f4205bdfb2e51fdf44799a1d4b"},"Age"),t("smoothly-table-header",{key:"d47197237f7119d2bd4a89d67157691250e84761"},"Location")),t("smoothly-table-row",{key:"4596285b471e280396bb5cd593d40017ffc6de29"},t("smoothly-table-expandable-cell",{key:"3b6abf5cee5aad618b65a3fb0dc6eb06d09d23ff"},"Jessie",t("div",{key:"e505c3f2004f5c116c621e59bdbfcfe6beca283a",slot:"detail"},"Doe")),t("smoothly-table-expandable-cell",{key:"958c8719cccb717f3453ad1042b8dca554b2eb7e"},(new Date).getFullYear()-2e3,t("div",{key:"c9f7adc43fdfae17a3ceaad66683b566daa1b4c4",slot:"detail"},"2000-01-01")),t("smoothly-table-expandable-cell",{key:"4cd1b333b9ec91af3d8e0f3453a1c44ca8ff5519"},"UK",t("div",{key:"d6966945a0ccde89223503e40b32fbc7482a3217",slot:"detail"},"London")))))}};Dh.style=Eh;const Mh=".sc-smoothly-table-demo-filtered-h{display:block;width:80%}smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2){text-align:right}td.sc-smoothly-table-demo-filtered{padding-left:1.5em}";const $h=Mh;const Rh=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Nd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await tr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=Ph[e.country])!==null&&t!==void 0?t:[]}),names:(o=Ph[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&Xn(this.criteria,this.cats);return t(s,{key:"74d8a3b771e113d5ca2b89f9ce6daeaacd51ae40"},t("smoothly-filter",{key:"7dfebb10b3aa9727c5676cd73423ce404530b94f"},t("smoothly-filter-toggle",{key:"2a80d59713845db048dd3f2b49bf5320da0f4020",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"5099ce34d39e89d4a2aaa97a45e6c8df8d581138",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"a3224462cfec87135d5394d2337f1f606a1c9631",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"032df107748c093d14aa4209a09d57e79f8b24a8",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"cdb268d230fc3593cd37349c5d3e119e3a69008f",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"ee3325e8c5a57a90e3b5dc3ef2cc311d80b085ce",slot:"detail"},t("smoothly-form",{key:"2ce7fce28ce4cd7791b7f2164b9f8b9f2d3b62f4",looks:"border"},t("smoothly-filter-select",{key:"6b9a30ac80d0ae5b16a446a69264b6a964e2e0aa",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"56d84756ae3edff2c3121a43893cc5172e7996bb",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"4b8c42aedee0c60ddaa177ae9e7122621063c743",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Ph).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"ac17a9ab17d55e8f1a5a1143a4cc3fe7547c2d6f",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"fa2f2ae6cbe1926d389edc86c77d1c90a3119533",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-table",null,t("smoothly-table-row",null,t("smoothly-table-header",null,this.selector.render(e)),t("smoothly-table-header",null,"Breed"),t("smoothly-table-header",null,"Coat"),t("smoothly-table-header",null,"Price")),e.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,this.selector.render(e)),t("smoothly-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-table-footer",null,t("td",{colSpan:5},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`})))))}};const Ph={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Rh.style=$h;const Nh='.sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0.5rem 0.3rem 0.2rem;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;padding-right:0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg) translateX(3px)}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{display:grid;grid-template-columns:auto 1fr;align-items:center}.sc-smoothly-table-expandable-cell-h:not([open])>tr.sc-smoothly-table-expandable-cell>td.sc-smoothly-table-expandable-cell{display:none}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}smoothly-table-row>tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::before{content:"";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::after{content:"";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}';const Hh=Nh;const Fh=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpansionLoad=o(this,"smoothlyExpansionLoad",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}openChanged(e){if(this.expansionElement)if(e)this.beginOpen=true;else this.element.append(this.expansionElement);this.smoothlyExpandableChange.emit(this.open)}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpansionLoad.emit();this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}componentDidRender(){if(this.beginOpen){this.beginOpen=false;this.smoothlyExpansionOpen.emit(this.expansionElement)}}onClick(){this.open=!this.open}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"c1cc9c453f14bdbea27288cb630149bed4eedc10"},t("div",{key:"8bff096be0f15b0529d51601d107875a50587a26"},t("smoothly-icon",{key:"a50afa90d33988bbd43425175f628c2732f9f208",name:"caret-forward-outline"}),t("slot",{key:"54a354b62524a00094c29bc46d2e18cd449d204f"})),t("tr",{key:"cd464fb9f1e5bbd547faecacfc624bf11a17e80a",class:{spotlight:this.spotlight},ref:e=>this.expansionElement=e},t("td",{key:"09ebc1b71d570b78e9d38f5ac572eca15d737f9b",colSpan:999},t("slot",{key:"8e156248148b0625480ac212163d51ceef8a29e1",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["openChanged","handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Fh.style=Hh;const Uh='.sc-smoothly-table-expandable-row-h{display:contents}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h:not([open])>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}.sc-smoothly-table-expandable-row-h>tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::before{content:"";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}';const Yh=Uh;const Wh=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"68f734852bf19b3f0859a2d2bf1b695ad807de7d"},t("div",{key:"1fe5bbcc7249106a3c719d83c4d0023654812e3f",onClick:()=>this.open=!this.open},t("slot",{key:"f579e90c39134fe4ff0ef95a30b4a5c2fc20c13f"})),t("tr",{key:"07c64f1cba0b59d0d17c1509dec1ec951dee637e",class:{spotlight:this.spotlight}},t("td",{key:"67d991e9fb53eae60a3b1b71aa40cfb72dfb39d5",colSpan:999},t("slot",{key:"a10e429dd2b99ace26ac9ed67f4860889ab3bb4a",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};Wh.style=Yh;const Bh=".sc-smoothly-table-footer-h{display:table-footer-group;position:sticky;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\t\tinset 0 1px 0 rgb(var(--smoothly-color-shade));line-height:2.5rem;font-weight:bold}";const Vh=Bh;const Gh=class{constructor(t){e(this,t)}render(){return t("slot",{key:"e9bbaf0fb7f645dba139a78a5233ab5188438165"})}};Gh.style=Vh;const Kh=".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding:0 .5rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";const Zh=Kh;const qh=class{constructor(t){e(this,t);this.name=undefined}render(){return t(s,{key:"309ad66fa298fbe62b1925f29626f56fea9ca29c"},t("slot",{key:"e57b9b6e864950961ead1064796d6067aec6b995"}))}};qh.style=Zh;const Jh=".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}.sc-smoothly-table-row-h>div.sc-smoothly-table-row{display:contents}";const Xh=Jh;const Qh=class{constructor(t){e(this,t);this.expansions=[];this.open=false}onExpansionLoad(e){this.expansions.push(e.target)}onExpansionChange(){this.open=this.expansions.some((e=>e.open))}onExpansionOpen(e){var t;this.expansions.forEach((t=>{if(t!=e.target)t.open=false}));if(e.detail)(t=this.element)===null||t===void 0?void 0:t.after(e.detail)}render(){return t("div",{key:"999ef425b1c6bbbf716658b0641d68e61e68752d",ref:e=>this.element=e},t("slot",{key:"e60687a313d183a62b918225abcb30416e55acd8"}))}};Qh.style=Xh;const eb=[{type:"cat",name:"Lazie",age:3},{type:"dog",name:"Jessie",age:8},{type:"cat",name:"Snooz",age:5},{type:"bird",name:"Squeak",age:1},{type:"bird",name:"Quirk",age:2}];const tb=".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}td.sc-smoothly-table-testing>div.footer.sc-smoothly-table-testing{display:flex;padding-left:1.5em;flex-direction:row;gap:1em}";const ob=tb;const sb=class{constructor(t){e(this,t);this.counter=0}render(){return t(s,{key:"e415a54d0679bdadf321a1b610b8a29998b36105"},t("smoothly-table",{key:"976eb7e5682d8fdb22f73ce1e4b7d119a106487d",color:"dark"},t("smoothly-table-row",{key:"179a1e72e5ed3f042345da24b6e1a903900b72a8"},t("smoothly-table-header",{key:"5a88e049f57b38d6185b4b7298438555bc14596c"},"Type"),t("smoothly-table-header",{key:"49be12dad2477ba195db63844064f3f00f7cbf85"},"Name"),t("smoothly-table-header",{key:"67f896c78fa8909fb9f2df30dfdb05d8525fe1ac"},"Age")),eb.map((e=>t("smoothly-table-expandable-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-cell",null,e.name),t("smoothly-table-cell",null,e.age),t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!"))))),eb.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-expandable-cell",null,e.name,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.name},"Name"),t("smoothly-submit",{slot:"submit"},"Submit!"))),t("smoothly-table-expandable-cell",null,e.age,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!")))))),t("smoothly-table-footer",{key:"86996e2c769ebf0c8f9dc45531ebdb6702683169"},t("td",{key:"ba0671a9359fe871d17e4aa996ef95948a2aa94e",colSpan:2},t("div",{key:"136bd8a0df0c3d205f267c827d50eda0cf87356b",class:"footer"},"Currently viewing content from:",t("smoothly-display",{key:"16e4d70da4dc1800c311cd36c146305463da32f2",type:"date",value:"2023-10-12"}))),t("smoothly-table-header",{key:"d251a3788a9ed808b7775070ad77e875fe76c067"},"Total age: "+eb.reduce(((e,t)=>e+t.age),0)))))}};sb.style=ob;const ab=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}";const ib=ab;const nb=class{constructor(t){e(this,t);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs=[];this.selectedElement=undefined}onInputLoad(e){if(e.target instanceof HTMLElement&&!this.tabs.includes(e.target)){this.tabs=[...this.tabs,e.target]}}openChanged(e){if(e.target!=this.element){e.stopPropagation();this.selectedElement=e.target;this.smoothlyTabOpen.emit(e.detail)}}onSelectedChange(e,t){if(t)t.open=false}render(){return t(s,{key:"76a866d156ea794fc03087957ad32db5cf020321",style:{"--tabs":`${this.tabs.length}`}},t("slot",{key:"5de5cc3949962492f8262585d495b148783aded8"}))}get element(){return a(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};nb.style=ib;const lb=".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%}";const rb=lb;const cb=class{constructor(t){e(this,t)}render(){return t("smoothly-tabs",{key:"a299b436bb4e22db2e782aaa99387e1fcc7135cb"},t("smoothly-tab",{key:"3d0d10ba0dc347c611de3827273c4e1389648488",label:"test1",open:true},"Hello world!"),t("smoothly-tab",{key:"3b9cdbcec7159443d6ccd3d1b10fa9c7ba8cfb6d",label:"test2"},"this is a test message!"),t("smoothly-tab",{key:"759ca730abf0e0f870f1856b3cd2de4578c2f19f",label:"test3"},"this is a test message again!"))}};cb.style=rb;const db=".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 hb=db;const bb=class{constructor(t){e(this,t);this.color=undefined}render(){return t(s,{key:"848121aba4246db4379e532e7fbbac982d2343f1"},this.color,["tint","color","shade"].map((e=>t("smoothly-theme-color-variant",{title:`${this.color} ${e}`,color:this.color,variant:e}))))}};bb.style=hb;const mb=".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 yb=mb;const ub=class{constructor(t){e(this,t);this.color=undefined;this.variant="color"}render(){return"Aa"}};ub.style=yb;const fb=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const pb=fb;const gb=class{constructor(t){e(this,t)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((e=>t("smoothly-theme-color",{color:e})))}};gb.style=pb;const kb=".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 vb=kb;const xb=class{constructor(t){e(this,t)}render(){return t(s,{key:"865ce77bdd45afebc2774a27eff805c25356ab36"},t("h2",{key:"06ee90bd42d389e9a778856afd80b5dfc30e0321"},"Theme"),t("smoothly-theme-picker",{key:"26363a1dddd0ebd83c2d699161122367b70f354c"},t("smoothly-item",{key:"27ee146716b8087ae25fb16d79398f4987a38f50",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),t("smoothly-item",{key:"dd1a03ccc5babe39f122fb934deeffa410a9f988",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),t("smoothly-item",{key:"dd09137b95dd1f6d362f63004f6e08406e715b7d",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),t("smoothly-item",{key:"e00ce17a19b2e317bd48ae3756704b3108ec5d78",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),t("smoothly-item",{key:"dfeedfd252269713c8c57d1944691f83f43f0383",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),t("smoothly-item",{key:"72f624557fcac90b0914ff923d0bd8d25201e2a7",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),t("smoothly-item",{key:"d51e73562da1aa075753602a563bdc1b839d66ed",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),t("smoothly-item",{key:"ace56c663cad091d890be11a4ac98bb3d15615ba",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),t("smoothly-item",{key:"eee4bf76c231024eb3e73e5fadb5a3bd6ff9a953",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),t("span",{key:"a9502b7c878a7ac000a94e36c0fc98e051c244b2"},t("smoothly-theme-colors",{key:"ef952e7c9569b1d0afe771e93d948293e26341df"}),t("smoothly-theme-guide",{key:"79675de688385da425545169846b0025a9c40812"})),t("smoothly-button",{key:"93173a279843b4186c678b11800aaa4d678a6fc6",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"3f9e7cf9743a3858d89983e443380f3ab21d9396",type:"link",link:"/redirect"},"To /redirect"),t("smoothly-button",{key:"0052e0765dddef35e6500a72fd4489608236c88a",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),t("smoothly-button",{key:"cb476d018d10a8a59b895c50576f41c3ffcc5bd6",type:"link",link:"redirect/nested"},"To redirect nested"))}};xb.style=vb;const wb="";const Sb=wb;const Cb=class{constructor(t){e(this,t)}render(){return[t("smoothly-display",{key:"707ff83cef8b445e4dc7289dbabf6be194b7fec6"},"Tint is used as background to highlight, for example hovering an item in the select menu."),t("br",{key:"65fe1eb58612a7f9ea62b34b47605bcc2afc0162"}),t("smoothly-display",{key:"12bc6cce06f04ea8296467bd6337a7d572de6c4e"},"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."),t("br",{key:"3b1fe4b475a48890679280e5fe7002ac48f5f03a"}),t("smoothly-display",{key:"134dc7394b8a9c4e2491fa0f50e050e1238a6218"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),t("br",{key:"583b15592a6c75a192964eaa6994e9c29d8beb84"}),t("smoothly-display",{key:"a50de9e71218ca9bfe945fcc4b47f2d2d9186e4e"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),t("br",{key:"d580b54882d4062f2ca9b692052896c64e82f699"})]}};Cb.style=Sb;const zb="";const jb=zb;const _b=class{constructor(t){e(this,t);this.element="smoothly-css"}render(){return t(s,{key:"183b2052a1cde44f7ac25a9e9ad15ac61b9e338d"},t("smoothly-input-select",{key:"a0b4a7be58ebd0f934940e235a37beaba3cf6c46",name:"theme",looks:"border",onSmoothlyInput:e=>{const t=document.querySelector(`#${this.element}`);if(t instanceof HTMLLinkElement&&typeof e.detail.theme=="string")t.href=e.detail.theme}},t("label",{key:"5df75384e9b9c07f0f7d860c61f060e7d3c87fc3",slot:"label"},"Select theme"),t("slot",{key:"c30444d8e8afebd522954b79e98baed622182327"})))}};_b.style=jb;const Tb=".sc-smoothly-toggle-h{display:inline-block;border:none}.sc-smoothly-toggle-h>button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const Ib=Tb;const Ob=class{constructor(t){e(this,t);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(e){this.selected=!this.selected}render(){return t("button",{key:"b430e16450b3f35da226707fe6023072b56bbedf"},t("slot",{key:"7e821a21d754c1d4721c650a4d9e3854cd1c052c",name:"icon-slot"}),t("slot",{key:"51394d6d6c76ccf573846014ceaf099deefecfe8"},this.name))}};Ob.style=Ib;const Lb=".sc-smoothly-toggle-switch-h{display:block;width:3.6em;height:1.8em}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-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;position:absolute;left:0;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));font-size:1.2em;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{width:2.4em;height:1.2em}[size=small].sc-smoothly-toggle-switch-h{width:3.05em;height:1.5em}[size=large].sc-smoothly-toggle-switch-h{width:5.2em;height:2.5em}[size=tiny].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:.8em}[size=small].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1em}[size=large].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1.75em}";const Ab=Lb;const Eb=class{constructor(t){e(this,t);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 t(s,{key:"092fc236b5cb41718825e5f72076f92843c7e337"},t("button",{key:"f607ed3cc25099d8b191876456df7c8d54360f3c",disabled:this.disabled,onClick:()=>this.handleClick()},t("smoothly-icon",{key:"a34cdcacbed9ae97c79cd902c09840c5237cd576",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};Eb.style=Ab;const Db=".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 Mb=Db;const $b=class{constructor(t){e(this,t)}render(){return t(s,{key:"b5a8dad0e8976256f3b4627764d9bc7f3242d514"},t("h4",{key:"a0fb1105285b4ebd999f5bd7fc9a67c4dabbffe7"},"Toggle switches"),t("div",{key:"e1f383c9bb9538ae08c67572e51cf0ade1985c90"},t("p",{key:"068e32fa464cf8a469dadc57bbd17540ee4857ab"},"Checkmark"),t("span",{key:"212f89b6c1d905a7711790f30f7039c126083146"},t("p",{key:"ef887b9684ee3732b954bb7d67920d1c561f186c"},"Tiny"),t("smoothly-toggle-switch",{key:"2d02e137002d7d77f35762fb1057f77fbd8b9c7b",disabled:false,size:"tiny"})),t("span",{key:"a317a1fa13ec0643e8314c8e0309d5ec9ef92a6b"},t("p",{key:"4fba9e2c490d6a441b2fd87e502371af64c2fec7"},"Small"),t("smoothly-toggle-switch",{key:"1cf9d08b7fd357d1a1a2cbb07dc19af3329b638d",disabled:false,size:"small"})),t("span",{key:"86122733c5b1a4b0fa9d62534f4e23fb97a6b1cb"},t("p",{key:"83a898afe95f77d87df30a45b49460a288a752bf"},"Standard"),t("smoothly-toggle-switch",{key:"e748f4c1a33cb3ec4ec5f0cb3d06222772291783",disabled:false})),t("span",{key:"0dd0d6c6e6df19f798c0082eec67bc3b99abfd30"},t("p",{key:"ef85903cbe51b0936ce50c23329cd13d366da08e"},"Large"),t("smoothly-toggle-switch",{key:"e6e4dc938e3d808ecee53f476f774fa124eff34b",disabled:false,size:"large"})),t("p",{key:"08f2e4c397aeb0ca02b8a230946c7f63ee97545f"},"Colors checkmark"),t("span",{key:"efbe3544bc9c51863e0787ffedfd507e60ed40aa"},t("p",{key:"ace9e8d3011faea0bbfc3bc24aebe57ac4d22b66"},"Danger"),t("smoothly-toggle-switch",{key:"276519f385e87e2fd8667c0828d907320c699f04",color:"danger",disabled:false,size:"small"})),t("span",{key:"d63aeeaf10d9eaa72bb903f9d46eae9248baa6a9"},t("p",{key:"4b50aaba711d21ee300d665518044167c4544e16"},"Primary color"),t("smoothly-toggle-switch",{key:"252117c2670a1d711ae0a4038815daafc4f6eac1",color:"primary",disabled:false,size:"small"})),t("span",{key:"d753489108dee9ff3919dc4888b7b184efc12359"},t("p",{key:"300e5007173732e8d1f635e209215c197a39e743"},"Secondary color"),t("smoothly-toggle-switch",{key:"a37e57c300608347e41a9ebcf74cf942cd13b700",color:"secondary",disabled:false,size:"small"})),t("p",{key:"ff9f091be0d5673bc67a2b8c147a3ebdeb7a0de0"}),t("p",{key:"c9449dc13ba993f888914ae0b2b30c64abe4362f"},"Colors no checkmark"),t("span",{key:"5dd59ef4b8a96c73b7ba63af6fb480e30d754f85"},t("p",{key:"cf69d46fd1d23594577df9c8061ca4f08f16d6e8"},"Danger"),t("smoothly-toggle-switch",{key:"ffd295756cfd7e5793615809c96ca8e540197707",checkmark:false,color:"danger",disabled:false,size:"small"})),t("span",{key:"aea5eb0c1a904765942448b80f3cc73964dbe0f4"},t("p",{key:"1ed89ea2201fbcc9ab1254b14df60a55b4396334"},"Primary color"),t("smoothly-toggle-switch",{key:"d3ef838368ec6cc5ad08f854acc591d97a6b5540",checkmark:false,color:"primary",disabled:false,size:"small"})),t("span",{key:"f9167625da0b84b939d775757ec707431153a09c"},t("p",{key:"5c1cf2729734ac8e397b3e1500b6abc9d5862bfd"},"Secondary color"),t("smoothly-toggle-switch",{key:"06c2af18c81fe2f23daa9f783e3a7cdb363ed3f5",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};$b.style=Mb;const Rb=".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 Pb=Rb;const Nb=class{constructor(t){e(this,t);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(e){this.trigger.emit({name:this.name,value:this.value});e.stopPropagation();e.preventDefault()}render(){let e;switch(this.type){case"link":e=this.disabled?t("slot",null):t("a",{onClick:e=>this.onClick(e)},t("slot",null));break;case"button":e=t("button",{key:"be00b28fdd08ca1faf3074fd0b431d0841a68848",disabled:this.disabled,name:this.name},t("slot",{key:"f14949be4c37391c0f3658938c99e5a4e7b52a23"}));break}return e}};Nb.style=Pb;export{R as smoothly_app,P as smoothly_app_demo,Re as smoothly_app_room,He as smoothly_back_to_top,Ye as smoothly_burger,Ze as smoothly_button,Xe as smoothly_button_confirm,tt as smoothly_button_demo,rt as smoothly_calendar,ht as smoothly_dialog,bt as smoothly_dialog_demo,ao as smoothly_display,io as smoothly_display_demo,lo as smoothly_display_demo_json,mo as smoothly_display_json,fo as smoothly_display_json_object,ko as smoothly_display_json_primitive,wo as smoothly_display_json_record_key,sl as smoothly_filter,nl as smoothly_filter_field,cl as smoothly_filter_input,bl as smoothly_filter_select,ul as smoothly_filter_toggle,br as smoothly_form,ur as smoothly_form_demo,fr as smoothly_form_demo_all,pr as smoothly_form_demo_card,gr as smoothly_form_demo_controlled,xr as smoothly_form_demo_date,Cr as smoothly_form_demo_date_range,zr as smoothly_form_demo_login,Tr as smoothly_form_demo_pet,Ir as smoothly_form_demo_prices,Or as smoothly_form_demo_transparent,Dr as smoothly_form_demo_typed,Rr as smoothly_frame,Hr as smoothly_icon,Yr as smoothly_icon_demo,Zr as smoothly_input,Xr as smoothly_input_checkbox,tc as smoothly_input_clear,ac as smoothly_input_color,ic as smoothly_input_color_demo,rc as smoothly_input_date,hc as smoothly_input_date_range,yc as smoothly_input_demo,pc as smoothly_input_demo_standard,vc as smoothly_input_edit,Sc as smoothly_input_file,jc as smoothly_input_month,Ic as smoothly_input_price_demo,Ac as smoothly_input_radio,Mc as smoothly_input_radio_item,Pc as smoothly_input_range,Nc as smoothly_input_range_demo,Uc as smoothly_input_reset,Vc as smoothly_input_select,qc as smoothly_input_submit,Qc as smoothly_item,od as smoothly_label,id as smoothly_lazy,nd as smoothly_load_more,cd as smoothly_next_demo,bd as smoothly_next_demo_colspan,ud as smoothly_next_demo_group,kd as smoothly_next_demo_nested,wd as smoothly_next_demo_nested_inner,zd as smoothly_next_demo_simple,Id as smoothly_next_table,Ad as smoothly_next_table_body,Md as smoothly_next_table_cell,Ud as smoothly_next_table_demo_filtered,Vd as smoothly_next_table_expandable_cell,Zd as smoothly_next_table_expandable_row,Xd as smoothly_next_table_foot,th as smoothly_next_table_head,ah as smoothly_next_table_row,lh as smoothly_next_table_row_group,dh as smoothly_notification,mh as smoothly_notifier,fh as smoothly_spinner,kh as smoothly_submit,wh as smoothly_summary,zh as smoothly_tab,Th as smoothly_table,Lh as smoothly_table_cell,Dh as smoothly_table_demo,Rh as smoothly_table_demo_filtered,Fh as smoothly_table_expandable_cell,Wh as smoothly_table_expandable_row,Gh as smoothly_table_footer,qh as smoothly_table_header,Qh as smoothly_table_row,sb as smoothly_table_testing,nb as smoothly_tabs,cb as smoothly_tabs_demo,bb as smoothly_theme_color,ub as smoothly_theme_color_variant,gb as smoothly_theme_colors,xb as smoothly_theme_demo,Cb as smoothly_theme_guide,_b as smoothly_theme_picker,Ob as smoothly_toggle,Eb as smoothly_toggle_switch,$b as smoothly_toggle_switch_demo,Nb as smoothly_trigger};
2
+ //# sourceMappingURL=p-dbd30071.entry.js.map