sveltfy
Version:
A material design framework/component library for Svelte, with full support for light and dark themes and customisability.
1 lines • 484 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Sveltfy={})}(this,(function(t){"use strict";const e={color:"currentColor",class:"",opacity:.1,centered:!1,spreadingDuration:".4s",spreadingDelay:"0s",spreadingTimingFunction:"linear",clearingDuration:"1s",clearingDelay:"0s",clearingTimingFunction:"ease-in-out"};function n(t,n={}){t.stopImmediatePropagation();const r={...e,...n},o=!!t.touches&&!!t.touches[0],i=o?t.touches[0].currentTarget:t.currentTarget,a=document.createElement("div"),l=a.style;a.className="material-ripple "+r.class,l.position="absolute",l.color="inherit",l.borderRadius="50%",l.pointerEvents="none",l.width="100px",l.height="100px",l.marginTop="-50px",l.marginLeft="-50px",i.appendChild(a),l.opacity=r.opacity,l.transition=`transform ${r.spreadingDuration} ${r.spreadingTimingFunction} ${r.spreadingDelay},opacity ${r.clearingDuration} ${r.clearingTimingFunction} ${r.clearingDelay}`,l.transform="scale(0) translate(0,0)",l.background=r.color;const p=i.getBoundingClientRect();if(r.centered)l.top=p.height/2+"px",l.left=p.width/2+"px";else{const e=o?t.touches[0].clientY:t.clientY,n=o?t.touches[0].clientX:t.clientX;l.top=e-p.top+"px",l.left=n-p.left+"px"}return l.transform=`scale(${.02*Math.max(p.width,p.height)}) translate(0,0)`,a}var r=(t,e={})=>{let r,o=e,i=!1,a=!1;const l=t=>{r=n(t,o)},p=()=>function(t){t&&(t.addEventListener("transitionend",(e=>{"opacity"===e.propertyName&&t.remove()})),t.style.opacity=0)}(r),d=t=>{a||13!==t.keyCode&&32!==t.keyCode||(r=n(t,{...o,centered:!0}),a=!0)},m=()=>{a=!1,p()};function c(){t.classList.add("s-ripple-container"),t.addEventListener("pointerdown",l),t.addEventListener("pointerup",p),t.addEventListener("pointerleave",p),t.addEventListener("keydown",d),t.addEventListener("keyup",m),i=!1}function s(){t.classList.remove("s-ripple-container"),t.removeEventListener("pointerdown",l),t.removeEventListener("pointerup",p),t.removeEventListener("pointerleave",p),t.removeEventListener("keydown",d),t.removeEventListener("keyup",m),i=!0}return o&&c(),{update(t){o=t,o&&i?c():o||i||s()},destroy:s}},o=(t,e={})=>{const n={include:[],...e};function r({target:e}){t.contains(e)&&!n.include.some((t=>e.isSameNode(t)))||t.dispatchEvent(new CustomEvent("clickOutside"))}return document.addEventListener("click",r,{passive:!0,capture:!0}),{destroy(){document.removeEventListener("click",r)}}},i=(t,e)=>{const n={once:!1,...e},r=new IntersectionObserver((e=>{const o=e[0];o.isIntersecting&&(t.dispatchEvent(new CustomEvent("intersect",{detail:o})),n.once&&r.unobserve(t))}),n);return r.observe(t),{destroy(){r.unobserve(t)}}},a=function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){var t=void 0,e=void 0,n=void 0,r=void 0,o=void 0,i=void 0,p=void 0,d=void 0,m=void 0,c=void 0,s=void 0,g=void 0;function x(){return window.scrollY||window.pageYOffset}function f(t){return t.getBoundingClientRect().top+e}function b(n){m||(m=n),s=o(c=n-m,e,p,d),window.scrollTo(0,s),c<d?window.requestAnimationFrame(b):function(){window.scrollTo(0,e+p),t&&i&&(t.setAttribute("tabindex","-1"),t.focus());"function"==typeof g&&g();m=!1}()}return function(m){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(d=c.duration||1e3,r=c.offset||0,g=c.callback,o=c.easing||a,i=c.a11y||!1,e=x(),void 0===m?"undefined":l(m)){case"number":t=void 0,i=!1,n=e+m;break;case"object":n=f(t=m);break;case"string":t=document.querySelector(m),n=f(t)}switch(p=n-e+r,l(c.duration)){case"number":d=c.duration;break;case"function":d=c.duration(p)}window.requestAnimationFrame(b)}}();function d(){}const m=t=>t;function c(t,e){for(const n in e)t[n]=e[n];return t}function s(t){return t()}function g(){return Object.create(null)}function x(t){t.forEach(s)}function f(t){return"function"==typeof t}function b(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function u(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return d;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function h(t,e,n,r){if(t){const o=y(t,e,n,r);return t[0](o)}}function y(t,e,n,r){return t[1]&&r?c(n.ctx.slice(),t[1](r(e))):n.ctx}function w(t,e,n,r,o,i,a){const l=function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(e,r,o,i);if(l){const o=y(e,n,r,a);t.p(o,l)}}function v(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function k(t,e){const n={};e=new Set(e);for(const r in t)e.has(r)||"$"===r[0]||(n[r]=t[r]);return n}function $(t){return t&&f(t.destroy)?t.destroy:d}const _="undefined"!=typeof window;let z=_?()=>window.performance.now():()=>Date.now(),C=_?t=>requestAnimationFrame(t):d;const S=new Set;function E(t){S.forEach((e=>{e.c(t)||(S.delete(e),e.f())})),0!==S.size&&C(E)}function I(t){let e;return 0===S.size&&C(E),{promise:new Promise((n=>{S.add(e={c:t,f:n})})),abort(){S.delete(e)}}}function j(t,e){t.appendChild(e)}function L(t,e,n){t.insertBefore(e,n||null)}function O(t){t.parentNode.removeChild(t)}function U(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function R(t){return document.createElement(t)}function A(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function B(t){return document.createTextNode(t)}function N(){return B(" ")}function P(){return B("")}function T(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function D(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function M(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set?t[r]=e[r]:D(t,r,e[r])}function H(t,e){for(const n in e)D(t,n,e[n])}function V(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Y(t,e){t.value=null==e?"":e}function F(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}let X;function q(){if(void 0===X){X=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){X=!0}}return X}function W(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=R("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=q();let o;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=T(window,"message",(t=>{t.source===n.contentWindow&&e()}))):(n.src="about:blank",n.onload=()=>{o=T(n.contentWindow,"resize",e)}),j(t,n),()=>{(r||o&&n.contentWindow)&&o(),O(n)}}function G(t,e,n){t.classList[n?"add":"remove"](e)}function Z(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}const J=new Set;let K,Q=0;function tt(t,e,n,r,o,i,a,l=0){const p=16.666/r;let d="{\n";for(let t=0;t<=1;t+=p){const r=e+(n-e)*i(t);d+=100*t+`%{${a(r,1-r)}}\n`}const m=d+`100% {${a(n,1-n)}}\n}`,c=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(m)}_${l}`,s=t.ownerDocument;J.add(s);const g=s.__svelte_stylesheet||(s.__svelte_stylesheet=s.head.appendChild(R("style")).sheet),x=s.__svelte_rules||(s.__svelte_rules={});x[c]||(x[c]=!0,g.insertRule(`@keyframes ${c} ${m}`,g.cssRules.length));const f=t.style.animation||"";return t.style.animation=`${f?f+", ":""}${c} ${r}ms linear ${o}ms 1 both`,Q+=1,c}function et(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),Q-=o,Q||C((()=>{Q||(J.forEach((t=>{const e=t.__svelte_stylesheet;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.__svelte_rules={}})),J.clear())})))}function nt(t){K=t}function rt(){if(!K)throw new Error("Function called outside component initialization");return K}function ot(t){rt().$$.on_mount.push(t)}function it(){const t=rt();return(e,n)=>{const r=t.$$.callbacks[e];if(r){const o=Z(e,n);r.slice().forEach((e=>{e.call(t,o)}))}}}function at(t,e){rt().$$.context.set(t,e)}function lt(t){return rt().$$.context.get(t)}function pt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t(e)))}const dt=[],mt=[],ct=[],st=[],gt=Promise.resolve();let xt=!1;function ft(t){ct.push(t)}function bt(t){st.push(t)}let ut=!1;const ht=new Set;function yt(){if(!ut){ut=!0;do{for(let t=0;t<dt.length;t+=1){const e=dt[t];nt(e),wt(e.$$)}for(nt(null),dt.length=0;mt.length;)mt.pop()();for(let t=0;t<ct.length;t+=1){const e=ct[t];ht.has(e)||(ht.add(e),e())}ct.length=0}while(dt.length);for(;st.length;)st.pop()();xt=!1,ut=!1,ht.clear()}}function wt(t){if(null!==t.fragment){t.update(),x(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ft)}}let vt;function kt(){return vt||(vt=Promise.resolve(),vt.then((()=>{vt=null}))),vt}function $t(t,e,n){t.dispatchEvent(Z(`${e?"intro":"outro"}${n}`))}const _t=new Set;let zt;function Ct(){zt={r:0,c:[],p:zt}}function St(){zt.r||x(zt.c),zt=zt.p}function Et(t,e){t&&t.i&&(_t.delete(t),t.i(e))}function It(t,e,n,r){if(t&&t.o){if(_t.has(t))return;_t.add(t),zt.c.push((()=>{_t.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}const jt={duration:0};function Lt(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function p(){r&&et(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=m,tick:s=d,css:g}=i||jt;g&&(r=tt(t,0,1,n,e,c,g,l++)),s(0,1);const x=z()+e,f=x+n;o&&o.abort(),a=!0,ft((()=>$t(t,!0,"start"))),o=I((e=>{if(a){if(e>=f)return s(1,0),$t(t,!0,"end"),p(),a=!1;if(e>=x){const t=c((e-x)/n);s(t,1-t)}}return a}))}let s=!1;return{start(){s||(et(t),f(i)?(i=i(),kt().then(c)):c())},invalidate(){s=!1},end(){a&&(p(),a=!1)}}}function Ot(t,e,n){let r,o=e(t,n),i=!0;const a=zt;function l(){const{delay:e=0,duration:n=300,easing:l=m,tick:p=d,css:c}=o||jt;c&&(r=tt(t,1,0,n,e,l,c));const s=z()+e,g=s+n;ft((()=>$t(t,!1,"start"))),I((e=>{if(i){if(e>=g)return p(0,1),$t(t,!1,"end"),--a.r||x(a.c),!1;if(e>=s){const t=l((e-s)/n);p(1-t,t)}}return i}))}return a.r+=1,f(o)?kt().then((()=>{o=o(),l()})):l(),{end(e){e&&o.tick&&o.tick(1,0),i&&(r&&et(t,r),i=!1)}}}function Ut(t,e,n,r){let o=e(t,n),i=r?0:1,a=null,l=null,p=null;function c(){p&&et(t,p)}function s(t,e){const n=t.b-i;return e*=Math.abs(n),{a:i,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function g(e){const{delay:n=0,duration:r=300,easing:g=m,tick:f=d,css:b}=o||jt,u={start:z()+n,b:e};e||(u.group=zt,zt.r+=1),a||l?l=u:(b&&(c(),p=tt(t,i,e,r,n,g,b)),e&&f(0,1),a=s(u,r),ft((()=>$t(t,e,"start"))),I((e=>{if(l&&e>l.start&&(a=s(l,r),l=null,$t(t,a.b,"start"),b&&(c(),p=tt(t,i,a.b,a.duration,0,g,o.css))),a)if(e>=a.end)f(i=a.b,1-i),$t(t,a.b,"end"),l||(a.b?c():--a.group.r||x(a.group.c)),a=null;else if(e>=a.start){const t=e-a.start;i=a.a+a.d*g(t/a.duration),f(i,1-i)}return!(!a&&!l)})))}return{run(t){f(o)?kt().then((()=>{o=o(),g(t)})):g(t)},end(){c(),a=l=null}}}const Rt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function At(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],l=e[i];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)o[t]||(n[t]=l[t],o[t]=1);t[i]=l}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function Bt(t){return"object"==typeof t&&null!==t?t:{}}function Nt(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function Pt(t){t&&t.c()}function Tt(t,e,n){const{fragment:r,on_mount:o,on_destroy:i,after_update:a}=t.$$;r&&r.m(e,n),ft((()=>{const e=o.map(s).filter(f);i?i.push(...e):x(e),t.$$.on_mount=[]})),a.forEach(ft)}function Dt(t,e){const n=t.$$;null!==n.fragment&&(x(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Mt(t,e){-1===t.$$.dirty[0]&&(dt.push(t),xt||(xt=!0,gt.then(yt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ht(t,e,n,r,o,i,a=[-1]){const l=K;nt(t);const p=t.$$={fragment:null,ctx:null,props:i,update:d,not_equal:o,bound:g(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:[]),callbacks:g(),dirty:a,skip_bound:!1};let m=!1;if(p.ctx=n?n(t,e.props||{},((e,n,...r)=>{const i=r.length?r[0]:n;return p.ctx&&o(p.ctx[e],p.ctx[e]=i)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](i),m&&Mt(t,e)),n})):[],p.update(),m=!0,x(p.before_update),p.fragment=!!r&&r(p.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);p.fragment&&p.fragment.l(t),t.forEach(O)}else p.fragment&&p.fragment.c();e.intro&&Et(t.$$.fragment),Tt(t,e.target,e.anchor),yt()}nt(l)}class Vt{$destroy(){Dt(this,1),this.$destroy=d}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Yt(t){let e,n,r;const o=t[2].default,i=h(o,t,t[1],null);return{c(){e=R("div"),i&&i.c(),D(e,"class",n="s-app theme--"+t[0])},m(t,n){L(t,e,n),i&&i.m(e,null),r=!0},p(t,[a]){i&&i.p&&2&a&&w(i,o,t,t[1],a,null,null),(!r||1&a&&n!==(n="s-app theme--"+t[0]))&&D(e,"class",n)},i(t){r||(Et(i,t),r=!0)},o(t){It(i,t),r=!1},d(t){t&&O(e),i&&i.d(t)}}}function Ft(t,e,n){let{$$slots:r={},$$scope:o}=e,{theme:i="light"}=e;return t.$$set=t=>{"theme"in t&&n(0,i=t.theme),"$$scope"in t&&n(1,o=t.$$scope)},[i,o,r]}function Xt(t){let e,n,r;const o=t[2].default,i=h(o,t,t[1],null);return{c(){e=R("div"),i&&i.c(),D(e,"class",n="s-app theme--"+t[0])},m(t,n){L(t,e,n),i&&i.m(e,null),r=!0},p(t,[a]){i&&i.p&&2&a&&w(i,o,t,t[1],a,null,null),(!r||1&a&&n!==(n="s-app theme--"+t[0]))&&D(e,"class",n)},i(t){r||(Et(i,t),r=!0)},o(t){It(i,t),r=!1},d(t){t&&O(e),i&&i.d(t)}}}function qt(t,e,n){let{$$slots:r={},$$scope:o}=e,{theme:i="light"}=e;return t.$$set=t=>{"theme"in t&&n(0,i=t.theme),"$$scope"in t&&n(1,o=t.$$scope)},[i,o,r]}function Wt(t){return"number"==typeof t?t+"px":t}var Gt=(t,e)=>{let n=e;return Object.entries(n).forEach((([e,n])=>{n&&t.style.setProperty("--s-"+e,Wt(n))})),{update(e){Object.entries(e).forEach((([e,r])=>{r&&(t.style.setProperty("--s-"+e,Wt(r)),delete n[e])})),Object.keys(n).forEach((e=>t.style.removeProperty("--s-"+e))),n=e}}};function Zt(t){let e,n,r,o=t[10]&&Jt(t);return{c(){e=A("svg"),n=A("path"),o&&o.c(),D(n,"d",t[9]),D(e,"xmlns","http://www.w3.org/2000/svg"),D(e,"width",t[0]),D(e,"height",t[1]),D(e,"viewBox",r="0 0 "+t[4]+" "+t[5])},m(t,r){L(t,e,r),j(e,n),o&&o.m(n,null)},p(t,i){t[10]?o?o.p(t,i):(o=Jt(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),512&i&&D(n,"d",t[9]),1&i&&D(e,"width",t[0]),2&i&&D(e,"height",t[1]),48&i&&r!==(r="0 0 "+t[4]+" "+t[5])&&D(e,"viewBox",r)},d(t){t&&O(e),o&&o.d()}}}function Jt(t){let e,n;return{c(){e=A("title"),n=B(t[10])},m(t,r){L(t,e,r),j(e,n)},p(t,e){1024&e&&V(n,t[10])},d(t){t&&O(e)}}}function Kt(t){let e,n,r,o,i,a,l,p=t[9]&&Zt(t);const d=t[13].default,m=h(d,t,t[12],null);return{c(){e=R("i"),p&&p.c(),n=N(),m&&m.c(),D(e,"aria-hidden","true"),D(e,"class",r="s-icon "+t[2]),D(e,"aria-label",t[10]),D(e,"aria-disabled",t[8]),D(e,"style",t[11]),G(e,"spin",t[7]),G(e,"disabled",t[8])},m(r,d){L(r,e,d),p&&p.m(e,null),j(e,n),m&&m.m(e,null),i=!0,a||(l=$(o=Gt.call(null,e,{"icon-size":t[3],"icon-rotate":t[6]+"deg"})),a=!0)},p(t,[a]){t[9]?p?p.p(t,a):(p=Zt(t),p.c(),p.m(e,n)):p&&(p.d(1),p=null),m&&m.p&&4096&a&&w(m,d,t,t[12],a,null,null),(!i||4&a&&r!==(r="s-icon "+t[2]))&&D(e,"class",r),(!i||1024&a)&&D(e,"aria-label",t[10]),(!i||256&a)&&D(e,"aria-disabled",t[8]),(!i||2048&a)&&D(e,"style",t[11]),o&&f(o.update)&&72&a&&o.update.call(null,{"icon-size":t[3],"icon-rotate":t[6]+"deg"}),132&a&&G(e,"spin",t[7]),260&a&&G(e,"disabled",t[8])},i(t){i||(Et(m,t),i=!0)},o(t){It(m,t),i=!1},d(t){t&&O(e),p&&p.d(),m&&m.d(t),a=!1,l()}}}function Qt(t,e,n){let{$$slots:r={},$$scope:o}=e,{class:i=""}=e,{size:a="24px"}=e,{width:l=a}=e,{height:p=a}=e,{viewWidth:d="24"}=e,{viewHeight:m="24"}=e,{rotate:c=0}=e,{spin:s=!1}=e,{disabled:g=!1}=e,{path:x=null}=e,{label:f=null}=e,{style:b=null}=e;return t.$$set=t=>{"class"in t&&n(2,i=t.class),"size"in t&&n(3,a=t.size),"width"in t&&n(0,l=t.width),"height"in t&&n(1,p=t.height),"viewWidth"in t&&n(4,d=t.viewWidth),"viewHeight"in t&&n(5,m=t.viewHeight),"rotate"in t&&n(6,c=t.rotate),"spin"in t&&n(7,s=t.spin),"disabled"in t&&n(8,g=t.disabled),"path"in t&&n(9,x=t.path),"label"in t&&n(10,f=t.label),"style"in t&&n(11,b=t.style),"$$scope"in t&&n(12,o=t.$$scope)},t.$$.update=()=>{8&t.$$.dirty&&(n(0,l=a),n(1,p=a))},[l,p,i,a,d,m,c,s,g,x,f,b,o,r]}class te extends Vt{constructor(t){var e;super(),document.getElementById("svelte-1n7twol-style")||((e=R("style")).id="svelte-1n7twol-style",e.textContent='.s-icon{color:var(--theme-icons-active);font-size:var(--s-icon-size);transform:rotate(var(--s-icon-rotate));line-height:1;letter-spacing:normal;text-transform:none;display:inline-flex;font-feature-settings:"liga";justify-content:center;position:relative;align-items:center;text-indent:0;vertical-align:middle;cursor:inherit;user-select:none;direction:ltr;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1), visibility 0s}.s-icon.disabled{color:var(--theme-icons-inactive)}.s-icon.spin{animation:infinite s-icon-spin linear 1s}.s-icon>svg{fill:currentColor}@keyframes s-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}',j(document.head,e)),Ht(this,t,Qt,Kt,b,{class:2,size:3,width:0,height:1,viewWidth:4,viewHeight:5,rotate:6,spin:7,disabled:8,path:9,label:10,style:11})}}const ee=t=>t.split(" ").filter((t=>!!t));var ne=(t,e)=>{let n=e;return t.classList.add(...ee((t=>t.filter((t=>!!t)))(n).join(" "))),{update(e){const r=e;r.forEach(((e,r)=>{e?t.classList.add(...ee(e)):n[r]&&t.classList.remove(...ee(n[r]))})),n=r}}};function re(t){let e,n,o,i,a,l,p,d;const m=t[19].default,s=h(m,t,t[18],null);let g=[{class:o="s-btn size-"+t[5]+" "+t[1]},{type:t[14]},{style:t[16]},{disabled:t[11]},{"aria-disabled":t[11]},t[17]],b={};for(let t=0;t<g.length;t+=1)b=c(b,g[t]);return{c(){e=R("button"),n=R("span"),s&&s.c(),D(n,"class","s-btn__content"),M(e,b),G(e,"s-btn--fab",t[2]),G(e,"icon",t[3]),G(e,"block",t[4]),G(e,"tile",t[6]),G(e,"text",t[7]||t[3]),G(e,"depressed",t[8]||t[7]||t[11]||t[9]||t[3]),G(e,"outlined",t[9]),G(e,"rounded",t[10]),G(e,"disabled",t[11])},m(o,m){L(o,e,m),j(e,n),s&&s.m(n,null),t[21](e),l=!0,p||(d=[$(i=ne.call(null,e,[t[12]&&t[13]])),$(a=r.call(null,e,t[15])),T(e,"click",t[20])],p=!0)},p(t,[n]){s&&s.p&&262144&n&&w(s,m,t,t[18],n,null,null),M(e,b=At(g,[(!l||34&n&&o!==(o="s-btn size-"+t[5]+" "+t[1]))&&{class:o},(!l||16384&n)&&{type:t[14]},(!l||65536&n)&&{style:t[16]},(!l||2048&n)&&{disabled:t[11]},(!l||2048&n)&&{"aria-disabled":t[11]},131072&n&&t[17]])),i&&f(i.update)&&12288&n&&i.update.call(null,[t[12]&&t[13]]),a&&f(a.update)&&32768&n&&a.update.call(null,t[15]),G(e,"s-btn--fab",t[2]),G(e,"icon",t[3]),G(e,"block",t[4]),G(e,"tile",t[6]),G(e,"text",t[7]||t[3]),G(e,"depressed",t[8]||t[7]||t[11]||t[9]||t[3]),G(e,"outlined",t[9]),G(e,"rounded",t[10]),G(e,"disabled",t[11])},i(t){l||(Et(s,t),l=!0)},o(t){It(s,t),l=!1},d(n){n&&O(e),s&&s.d(n),t[21](null),p=!1,x(d)}}}function oe(t,e,n){const r=["class","fab","icon","block","size","tile","text","depressed","outlined","rounded","disabled","active","activeClass","type","ripple","style","button"];let o=k(e,r),{$$slots:i={},$$scope:a}=e,{class:l=""}=e,{fab:p=!1}=e,{icon:d=!1}=e,{block:m=!1}=e,{size:s="default"}=e,{tile:g=!1}=e,{text:x=!1}=e,{depressed:f=!1}=e,{outlined:b=!1}=e,{rounded:u=!1}=e,{disabled:h=null}=e,{active:y=!1}=e,{activeClass:w="active"}=e,{type:$="button"}=e,{ripple:_={}}=e,{style:z=null}=e,{button:C=null}=e;return t.$$set=t=>{e=c(c({},e),v(t)),n(17,o=k(e,r)),"class"in t&&n(1,l=t.class),"fab"in t&&n(2,p=t.fab),"icon"in t&&n(3,d=t.icon),"block"in t&&n(4,m=t.block),"size"in t&&n(5,s=t.size),"tile"in t&&n(6,g=t.tile),"text"in t&&n(7,x=t.text),"depressed"in t&&n(8,f=t.depressed),"outlined"in t&&n(9,b=t.outlined),"rounded"in t&&n(10,u=t.rounded),"disabled"in t&&n(11,h=t.disabled),"active"in t&&n(12,y=t.active),"activeClass"in t&&n(13,w=t.activeClass),"type"in t&&n(14,$=t.type),"ripple"in t&&n(15,_=t.ripple),"style"in t&&n(16,z=t.style),"button"in t&&n(0,C=t.button),"$$scope"in t&&n(18,a=t.$$scope)},[C,l,p,d,m,s,g,x,f,b,u,h,y,w,$,_,z,o,a,i,function(e){pt(t,e)},function(t){mt[t?"unshift":"push"]((()=>{C=t,n(0,C)}))}]}class ie extends Vt{constructor(t){var e;super(),document.getElementById("svelte-qnwijx-style")||((e=R("style")).id="svelte-qnwijx-style",e.textContent='.s-btn{align-items:center;border-radius:4px;display:inline-flex;flex:0 0 auto;overflow:hidden;position:relative;outline:0;justify-content:center;user-select:none;vertical-align:middle;white-space:nowrap;text-decoration:none;transition-duration:0.28s;transition-property:box-shadow, transform, opacity;background-color:var(--theme-app-bar);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}.s-btn a,.s-btn .s-icon{color:inherit}.s-btn .s-btn__content{display:flex;align-items:center;flex:1 0 auto;color:inherit;justify-content:inherit;line-height:normal;position:relative;font-size:inherit;font-weight:500;letter-spacing:0.0892857143em;text-transform:uppercase}.s-btn::before{border-radius:inherit;bottom:0;color:inherit;content:"";left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.2s cubic-bezier(0.4, 0, 0.6, 1);background-color:currentColor}.s-btn.size-x-small{font-size:0.625rem}.s-btn.size-small{font-size:0.75rem}.s-btn.size-default{font-size:0.875rem}.s-btn.size-large{font-size:0.875rem}.s-btn.size-x-large{font-size:1rem}.s-btn:not(.disabled):hover::before{opacity:0.08}.s-btn:not(.disabled).active::before{opacity:0.18}.s-btn:not(.disabled).focus-visible::before{opacity:0.24}.s-btn:not(.outlined).primary-color,.s-btn:not(.outlined).secondary-color,.s-btn:not(.outlined).success-color,.s-btn:not(.outlined).error-color,.s-btn:not(.outlined).warning-color,.s-btn:not(.outlined).info-color{color:#ffffff}.s-btn:not(.icon):not(.s-btn--fab).size-x-small{height:20px;min-width:36px;padding:0 8.8888888889px}.s-btn:not(.icon):not(.s-btn--fab).size-small{height:28px;min-width:50px;padding:0 12.4444444444px}.s-btn:not(.icon):not(.s-btn--fab).size-default{height:36px;min-width:64px;padding:0 16px}.s-btn:not(.icon):not(.s-btn--fab).size-large{height:44px;min-width:78px;padding:0 19.5555555556px}.s-btn:not(.icon):not(.s-btn--fab).size-x-large{height:52px;min-width:92px;padding:0 23.1111111111px}.s-btn:not(.disabled):not(.depressed){will-change:box-shadow}.s-btn.block{display:flex;flex:1 0 auto;min-width:100% !important;max-width:auto}.s-btn.tile{border-radius:0}.s-btn.text{background-color:transparent}.s-btn.depressed{box-shadow:none}.s-btn.outlined{border:1px solid currentColor;background-color:transparent !important}.s-btn.rounded{border-radius:9999px}.s-btn.disabled{pointer-events:none;color:var(--theme-buttons-disabled)}.s-btn.disabled:not(.flat):not(.text):not(.outlined){background-color:var(--theme-buttons-disabled)}.s-btn.icon.size-x-small{height:20px;width:20px}.s-btn.icon.size-small{height:28px;width:28px}.s-btn.icon.size-default{height:36px;width:36px}.s-btn.icon.size-large{height:44px;width:44px}.s-btn.icon.size-x-large{height:52px;width:52px}.s-btn.icon,.s-btn.s-btn--fab{border-radius:50%;min-width:0;min-height:0;padding:0}.s-btn.icon.size-x-small .s-icon,.s-btn.s-btn--fab.size-x-small .s-icon{font-size:18px}.s-btn.icon.size-small .s-icon,.s-btn.s-btn--fab.size-small .s-icon{font-size:24px}.s-btn.icon.size-default .s-icon,.s-btn.s-btn--fab.size-default .s-icon{font-size:24px}.s-btn.icon.size-large .s-icon,.s-btn.s-btn--fab.size-large .s-icon{font-size:28px}.s-btn.icon.size-x-large .s-icon,.s-btn.s-btn--fab.size-x-large .s-icon{font-size:32px}.s-btn.s-btn--fab.size-x-small{height:32px;width:32px}.s-btn.s-btn--fab.size-small{height:40px;width:40px}.s-btn.s-btn--fab.size-default{height:56px;width:56px}.s-btn.s-btn--fab.size-large{height:64px;width:64px}.s-btn.s-btn--fab.size-x-large{height:72px;width:72px}',j(document.head,e)),Ht(this,t,oe,re,b,{class:1,fab:2,icon:3,block:4,size:5,tile:6,text:7,depressed:8,outlined:9,rounded:10,disabled:11,active:12,activeClass:13,type:14,ripple:15,style:16,button:0})}}const ae=[];function le(t,e=d){let n;const r=[];function o(e){if(b(t,e)&&(t=e,n)){const e=!ae.length;for(let e=0;e<r.length;e+=1){const n=r[e];n[1](),ae.push(n,t)}if(e){for(let t=0;t<ae.length;t+=2)ae[t][0](ae[t+1]);ae.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=d){const l=[i,a];return r.push(l),1===r.length&&(n=e(o)||d),i(t),()=>{const t=r.indexOf(l);-1!==t&&r.splice(t,1),0===r.length&&(n(),n=null)}}}}function pe(t){let e,n,r;const o=t[9].default,i=h(o,t,t[8],null);return{c(){e=R("div"),i&&i.c(),D(e,"class",n="s-item-group "+t[0]),D(e,"role",t[1]),D(e,"style",t[2])},m(t,n){L(t,e,n),i&&i.m(e,null),r=!0},p(t,[a]){i&&i.p&&256&a&&w(i,o,t,t[8],a,null,null),(!r||1&a&&n!==(n="s-item-group "+t[0]))&&D(e,"class",n),(!r||2&a)&&D(e,"role",t[1]),(!r||4&a)&&D(e,"style",t[2])},i(t){r||(Et(i,t),r=!0)},o(t){It(i,t),r=!1},d(t){t&&O(e),i&&i.d(t)}}}const de={};function me(t,e,n){let{$$slots:r={},$$scope:o}=e,{class:i=""}=e,{activeClass:a=""}=e,{value:l=[]}=e,{multiple:p=!1}=e,{mandatory:d=!1}=e,{max:m=1/0}=e,{role:c=null}=e,{style:s=null}=e;const g=it(),x=le(l);let f=-1;return at(de,{select:t=>{p?l.includes(t)?(!d||l.length>1)&&(l.splice(l.indexOf(t),1),n(3,l)):l.length<m&&n(3,l=[...l,t]):l===t?d||n(3,l=null):n(3,l=t)},register:t=>{const e=x.subscribe((e=>{t(p?e:[e])}));var n;n=e,rt().$$.on_destroy.push(n)},index:()=>(f+=1,f),activeClass:a}),t.$$set=t=>{"class"in t&&n(0,i=t.class),"activeClass"in t&&n(4,a=t.activeClass),"value"in t&&n(3,l=t.value),"multiple"in t&&n(5,p=t.multiple),"mandatory"in t&&n(6,d=t.mandatory),"max"in t&&n(7,m=t.max),"role"in t&&n(1,c=t.role),"style"in t&&n(2,s=t.style),"$$scope"in t&&n(8,o=t.$$scope)},t.$$.update=()=>{8&t.$$.dirty&&x.set(l),8&t.$$.dirty&&g("change",l)},[i,c,s,l,a,p,d,m,o,r]}class ce extends Vt{constructor(t){var e;super(),document.getElementById("svelte-bhgnu-style")||((e=R("style")).id="svelte-bhgnu-style",e.textContent=".s-item-group{flex:0 1 auto;position:relative;max-width:100%;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}",j(document.head,e)),Ht(this,t,me,pe,b,{class:0,activeClass:4,value:3,multiple:5,mandatory:6,max:7,role:1,style:2})}}function se(t){let e,n,r;const o=t[11].default,i=h(o,t,t[14],null);return{c(){e=R("div"),i&&i.c(),D(e,"class",n="s-btn-group "+t[1]),D(e,"style",t[10]),G(e,"elevated",t[2]),G(e,"borderless",t[3]),G(e,"tile",t[4]),G(e,"rounded",t[5])},m(t,n){L(t,e,n),i&&i.m(e,null),r=!0},p(t,a){i&&i.p&&16384&a&&w(i,o,t,t[14],a,null,null),(!r||2&a&&n!==(n="s-btn-group "+t[1]))&&D(e,"class",n),(!r||1024&a)&&D(e,"style",t[10]),6&a&&G(e,"elevated",t[2]),10&a&&G(e,"borderless",t[3]),18&a&&G(e,"tile",t[4]),34&a&&G(e,"rounded",t[5])},i(t){r||(Et(i,t),r=!0)},o(t){It(i,t),r=!1},d(t){t&&O(e),i&&i.d(t)}}}function ge(t){let e,n,r;function o(e){t[12].call(null,e)}let i={activeClass:t[6],multiple:t[8],mandatory:t[7],max:t[9],$$slots:{default:[se]},$$scope:{ctx:t}};return void 0!==t[0]&&(i.value=t[0]),e=new ce({props:i}),mt.push((()=>Nt(e,"value",o))),e.$on("change",t[13]),{c(){Pt(e.$$.fragment)},m(t,n){Tt(e,t,n),r=!0},p(t,[r]){const o={};64&r&&(o.activeClass=t[6]),256&r&&(o.multiple=t[8]),128&r&&(o.mandatory=t[7]),512&r&&(o.max=t[9]),17470&r&&(o.$$scope={dirty:r,ctx:t}),!n&&1&r&&(n=!0,o.value=t[0],bt((()=>n=!1))),e.$set(o)},i(t){r||(Et(e.$$.fragment,t),r=!0)},o(t){It(e.$$.fragment,t),r=!1},d(t){Dt(e,t)}}}function xe(t,e,n){let{$$slots:r={},$$scope:o}=e,{class:i=""}=e,{elevated:a=!1}=e,{borderless:l=!1}=e,{tile:p=!1}=e,{rounded:d=!1}=e,{activeClass:m="active"}=e,{value:c=[]}=e,{mandatory:s=!1}=e,{multiple:g=!1}=e,{max:x=1/0}=e,{style:f=null}=e;return t.$$set=t=>{"class"in t&&n(1,i=t.class),"elevated"in t&&n(2,a=t.elevated),"borderless"in t&&n(3,l=t.borderless),"tile"in t&&n(4,p=t.tile),"rounded"in t&&n(5,d=t.rounded),"activeClass"in t&&n(6,m=t.activeClass),"value"in t&&n(0,c=t.value),"mandatory"in t&&n(7,s=t.mandatory),"multiple"in t&&n(8,g=t.multiple),"max"in t&&n(9,x=t.max),"style"in t&&n(10,f=t.style),"$$scope"in t&&n(14,o=t.$$scope)},[c,i,a,l,p,d,m,s,g,x,f,r,function(t){c=t,n(0,c)},function(e){pt(t,e)},o]}function fe(t){let e;const n=t[6].default,r=h(n,t,t[8],null);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,e){r&&r.p&&256&e&&w(r,n,t,t[8],e,null,null)},i(t){e||(Et(r,t),e=!0)},o(t){It(r,t),e=!1},d(t){r&&r.d(t)}}}function be(t){let e,n;return e=new ie({props:{class:"s-btn-group-item "+t[0],activeClass:t[1],active:t[3],disabled:t[2],$$slots:{default:[fe]},$$scope:{ctx:t}}}),e.$on("click",t[4]),e.$on("click",t[7]),{c(){Pt(e.$$.fragment)},m(t,r){Tt(e,t,r),n=!0},p(t,[n]){const r={};1&n&&(r.class="s-btn-group-item "+t[0]),2&n&&(r.activeClass=t[1]),8&n&&(r.active=t[3]),4&n&&(r.disabled=t[2]),256&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Et(e.$$.fragment,t),n=!0)},o(t){It(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function ue(t,e,n){let{$$slots:r={},$$scope:o}=e;const i=lt(de);let a,{class:l=""}=e,{value:p=i.index()}=e,{activeClass:d=i.activeClass}=e,{disabled:m=null}=e;return i.register((t=>{n(3,a=t.includes(p))})),t.$$set=t=>{"class"in t&&n(0,l=t.class),"value"in t&&n(5,p=t.value),"activeClass"in t&&n(1,d=t.activeClass),"disabled"in t&&n(2,m=t.disabled),"$$scope"in t&&n(8,o=t.$$scope)},[l,d,m,a,function(){m||i.select(p)},p,r,function(e){pt(t,e)},o]}function he(t,e){if(/^(#|rgb|hsl|currentColor)/.test(e))return t.style.color=e,!1;if(e.startsWith("--"))return t.style.color=`var(${e})`,!1;const n=function(t){return t.split(" ").map((t=>/^(lighten|darken|accent)-/.test(t)?"text-"+t:t+"-text"))}(e);return t.classList.add(...n),n}var ye=(t,e)=>{let n;return"string"==typeof e&&(n=he(t,e)),{update(e){n?t.classList.remove(...n):t.style.color=null,"string"==typeof e&&(n=he(t,e))}}};const we=t=>({}),ve=t=>({}),ke=t=>({}),$e=t=>({}),_e=t=>({}),ze=t=>({});function Ce(t){let e,n,r,o,i,a,l,p,d,m,c,s;const g=t[9]["prepend-outer"],x=h(g,t,t[8],ze),b=t[9].default,u=h(b,t,t[8],null),y=t[9].messages,v=h(y,t,t[8],$e),k=t[9]["append-outer"],_=h(k,t,t[8],ve);return{c(){e=R("div"),x&&x.c(),n=N(),r=R("div"),o=R("div"),u&&u.c(),i=N(),a=R("div"),v&&v.c(),l=N(),_&&_.c(),D(o,"class","s-input__slot"),D(a,"class","s-input__details"),D(r,"class","s-input__control"),D(e,"class",p="s-input "+t[0]),D(e,"style",t[7]),G(e,"dense",t[2]),G(e,"error",t[5]),G(e,"success",t[6]),G(e,"readonly",t[3]),G(e,"disabled",t[4])},m(p,g){L(p,e,g),x&&x.m(e,null),j(e,n),j(e,r),j(r,o),u&&u.m(o,null),j(r,i),j(r,a),v&&v.m(a,null),j(e,l),_&&_.m(e,null),m=!0,c||(s=$(d=ye.call(null,e,t[6]?"success":t[5]?"error":t[1])),c=!0)},p(t,[n]){x&&x.p&&256&n&&w(x,g,t,t[8],n,_e,ze),u&&u.p&&256&n&&w(u,b,t,t[8],n,null,null),v&&v.p&&256&n&&w(v,y,t,t[8],n,ke,$e),_&&_.p&&256&n&&w(_,k,t,t[8],n,we,ve),(!m||1&n&&p!==(p="s-input "+t[0]))&&D(e,"class",p),(!m||128&n)&&D(e,"style",t[7]),d&&f(d.update)&&98&n&&d.update.call(null,t[6]?"success":t[5]?"error":t[1]),5&n&&G(e,"dense",t[2]),33&n&&G(e,"error",t[5]),65&n&&G(e,"success",t[6]),9&n&&G(e,"readonly",t[3]),17&n&&G(e,"disabled",t[4])},i(t){m||(Et(x,t),Et(u,t),Et(v,t),Et(_,t),m=!0)},o(t){It(x,t),It(u,t),It(v,t),It(_,t),m=!1},d(t){t&&O(e),x&&x.d(t),u&&u.d(t),v&&v.d(t),_&&_.d(t),c=!1,s()}}}function Se(t,e,n){let{$$slots:r={},$$scope:o}=e,{class:i=""}=e,{color:a=null}=e,{dense:l=!1}=e,{readonly:p=!1}=e,{disabled:d=!1}=e,{error:m=!1}=e,{success:c=!1}=e,{style:s=null}=e;return t.$$set=t=>{"class"in t&&n(0,i=t.class),"color"in t&&n(1,a=t.color),"dense"in t&&n(2,l=t.dense),"readonly"in t&&n(3,p=t.readonly),"disabled"in t&&n(4,d=t.disabled),"error"in t&&n(5,m=t.error),"success"in t&&n(6,c=t.success),"style"in t&&n(7,s=t.style),"$$scope"in t&&n(8,o=t.$$scope)},[i,a,l,p,d,m,c,s,o,r]}class Ee extends Vt{constructor(t){var e;super(),document.getElementById("svelte-rjki8-style")||((e=R("style")).id="svelte-rjki8-style",e.textContent='.s-text-field__input{display:flex;flex-grow:1}.s-text-field__input label{position:absolute;max-width:90%;overflow:hidden;text-overflow:ellipsis;top:6px;pointer-events:none;transform-origin:top left}.s-text-field__input label.active{max-width:133%;transform:translateY(-18px) scale(0.75)}.s-text-field__input input{caret-color:inherit;flex:1 1 auto;line-height:20px;padding:8px 0 8px;max-width:100%;min-width:0;width:100%}.s-text-field__wrapper{width:100%;color:inherit;caret-color:currentColor;display:flex;align-items:center}.s-text-field__wrapper::before,.s-text-field__wrapper::after{border-radius:inherit;width:inherit;bottom:-1px;content:"";left:0;position:absolute;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);pointer-events:none}.s-text-field__wrapper::before{border-color:var(--theme-text-fields-border);border-style:solid;border-width:thin 0 0 0}.s-text-field__wrapper::after{background-color:currentColor;border-color:currentColor;border-style:solid;border-width:thin 0 thin 0;transform:scaleX(0)}.s-text-field__wrapper:hover::before{border-color:var(--theme-text-primary)}.s-text-field__wrapper:focus-within::after{transform:scale(1)}.s-text-field__wrapper:focus-within label{color:inherit}.s-text-field__wrapper>[slot=prepend]{margin-right:8px}.s-text-field__wrapper>[slot=append]{margin-right:8px}.s-text-field__wrapper.outlined::before{top:0;border-width:thin}.s-text-field__wrapper.outlined:focus-within::before{border-color:currentColor;border-width:2px}.s-text-field__wrapper.outlined label{top:18px}.s-text-field__wrapper.outlined label.active{padding:0 4px;background-color:var(--theme-surface);transform:translateY(-24px) scale(0.75)}.s-text-field__wrapper.outlined,.s-text-field__wrapper.solo,.s-text-field__wrapper.filled{padding:0 1px 0 12px}.s-text-field__wrapper.filled,.s-text-field__wrapper.outlined{min-height:56px}.s-text-field__wrapper.filled{border-radius:4px 4px 0 0;background-color:var(--theme-text-fields-filled)}.s-text-field__wrapper.filled:hover{background-color:var(--theme-text-fields-filled-hover)}.s-text-field__wrapper.filled input,.s-text-field__wrapper.filled textarea{padding-top:22px}.s-text-field__wrapper.filled label{top:20px}.s-text-field__wrapper.filled label.active{transform:translateY(-10px) scale(0.75)}.s-text-field__wrapper.outlined::after,.s-text-field__wrapper.solo::after,.s-text-field__wrapper.rounded::after{display:none}.s-text-field__wrapper.outlined,.s-text-field__wrapper.solo{border-radius:4px}.s-text-field__wrapper.solo{min-height:48px;box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}.s-text-field__wrapper.solo::before{display:none}.s-text-field__wrapper.rounded{border-radius:28px}.s-text-field__wrapper.rounded.filled::before{border:none}.s-text-field__wrapper.rounded.outlined{padding:0 24px}.s-text-field__wrapper.flat{box-shadow:0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(0, 0, 0, 0.12) !important}.s-text-field.error .s-text-field__wrapper::before,.s-text-field.success .s-text-field__wrapper::before{border-color:currentColor !important}.s-text-field.dense input{padding:4px 0 2px}.s-text-field.dense .s-text-field__wrapper.outlined,.s-text-field.dense .s-text-field__wrapper.filled{min-height:40px}.s-text-field.dense .s-text-field__wrapper.outlined label{top:10px}.s-text-field.dense .s-text-field__wrapper.outlined label.active{transform:translateY(-16px) scale(0.75)}.s-text-field.dense .s-text-field__wrapper.solo{min-height:40px}.s-text-field.dense .s-text-field__wrapper.filled input,.s-text-field.dense .s-text-field__wrapper.filled textarea{margin-top:11px}.s-text-field.dense .s-text-field__wrapper.filled label{top:12px}.s-text-field.dense .s-text-field__wrapper.filled label.active{transform:translateY(-8px) scale(0.75)}.s-textarea textarea{align-self:stretch;flex:1 1 auto;line-height:1.75rem;max-width:100%;min-height:32px;outline:none;padding:0;width:100%;margin-top:4px}.s-textarea .s-text-field__wrapper>[slot=prepend],.s-textarea .s-text-field__wrapper>[slot=append]{align-self:flex-start;margin-top:2px}.s-textarea .s-text-field__wrapper.filled [slot=prepend],.s-textarea .s-text-field__wrapper.filled [slot=append]{margin-top:28px}.s-textarea .s-text-field__wrapper.outlined [slot=prepend],.s-textarea .s-text-field__wrapper.outlined [slot=append]{margin-top:20px}.s-textarea .s-text-field__wrapper.outlined textarea{margin-top:18px}.s-textarea .s-text-field__wrapper.solo [slot=prepend],.s-textarea .s-text-field__wrapper.solo [slot=append]{margin-top:8px}.s-textarea .s-text-field__wrapper.solo textarea{margin-top:8px}.s-textarea .s-text-field__wrapper.autogrow textarea{overflow:hidden}.s-textarea .s-text-field__wrapper.no-resize textarea{resize:none}.s-input__slot{border-radius:inherit;align-items:center;color:inherit;display:flex;margin-bottom:8px;position:relative;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:100%;height:inherit}.s-input__control{display:flex;flex-direction:column;width:100%}.s-input__details{color:var(--theme-text-secondary);display:flex;flex:1 0 auto;max-width:100%;font-size:12px;overflow:hidden}.s-input__details>[slot=messages]{display:flex;flex-direction:row;justify-content:space-between;flex-grow:1}.s-input{display:flex;align-items:center;flex-direction:row;flex:1 1 auto;font-size:16px;letter-spacing:normal;max-width:100%;text-align:left}.s-input input{max-height:32px}.s-input input,.s-input textarea{color:var(--theme-text-primary)}.s-input input:invalid,.s-input textarea:invalid{box-shadow:none}.s-input input:focus,.s-input input:active,.s-input textarea:focus,.s-input textarea:active{outline:none}.s-input input::placeholder,.s-input textarea::placeholder{color:var(--theme-text-disabled)}.s-input>[slot=prepend-outer],.s-input>[slot=append-outer]{align-self:flex-start;display:inline-flex;margin-bottom:4px;margin-top:4px;line-height:1}.s-input>[slot=prepend-outer]{margin-right:9px}.s-input>[slot=append-outer]{margin-left:9px}.s-input .s-icon{user-select:none;align-items:center;display:inline-flex;height:24px;flex:1 0 auto;justify-content:center;min-width:24px;width:24px}.s-input label{height:20px;line-height:20px;color:var(--theme-text-secondary);white-space:nowrap;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.s-input:focus-within .s-icon{color:inherit}.s-input.disabled{pointer-events:none;color:var(--theme-text-disabled)}.s-input.disabled input,.s-input.disabled textarea{color:var(--theme-text-disabled)}.s-input.disabled .s-icon{color:var(--theme-icons-inactive)}.s-input.disabled label{color:var(--theme-text-disabled)}.s-input.dense .s-input__slot{margin-bottom:4px}',j(document.head,e)),Ht(this,t,Se,Ce,b,{class:0,color:1,dense:2,readonly:3,disabled:4,error:5,success:6,style:7})}}let Ie=36,je="";for(;Ie--;)je+=Ie.toString(36);var Le=t=>{let e="",n=t||11;for(;n--;)e+=je[36*Math.random()|0];return e},Oe="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z";const Ue=t=>({}),Re=t=>({slot:"append-outer"});function Ae(t,e,n){const r=t.slice();return r[44]=e[n],r}function Be(t,e,n){const r=t.slice();return r[44]=e[n],r}const Ne=t=>({}),Pe=t=>({}),Te=t=>({}),De=t=>({}),Me=t=>({}),He=t=>({}),Ve=t=>({}),Ye=t=>({}),Fe=t=>({}),Xe=t=>({slot:"prepend-outer"});function qe(t){let e;const n=t[33]["prepend-outer"],r=h(n,t,t[43],Xe);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,e){r&&r.p&&4096&e[1]&&w(r,n,t,t[43],e,Fe,Xe)},i(t){e||(Et(r,t),e=!0)},o(t){It(r,t),e=!1},d(t){r&&r.d(t)}}}function We(t){let e,n,r,o;const i=t[33]["clear-icon"],a=h(i,t,t[43],De),l=a||function(t){let e,n;return e=new te({props:{path:Oe}}),{c(){Pt(e.$$.fragment)},m(t,r){Tt(e,t,r),n=!0},p:d,i(t){n||(Et(e.$$.fragment,t),n=!0)},o(t){It(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}();return{c(){e=R("div"),l&&l.c(),F(e,"cursor","pointer")},m(i,a){L(i,e,a),l&&l.m(e,null),n=!0,r||(o=T(e,"click",t[26]),r=!0)},p(t,e){a&&a.p&&4096&e[1]&&w(a,i,t,t[43],e,Te,De)},i(t){n||(Et(l,t),n=!0)},o(t){It(l,t),n=!1},d(t){t&&O(e),l&&l.d(t),r=!1,o()}}}function Ge(t){let e,n,r=t[44]+"";return{c(){e=R("span"),n=B(r)},m(t,r){L(t,e,r),j(e,n)},p(t,e){131072&e[0]&&r!==(r=t[44]+"")&&V(n,r)},d(t){t&&O(e)}}}function Ze(t){let e,n,r=t[44]+"";return{c(){e=R("span"),n=B(r)},m(t,r){L(t,e,r),j(e,n)},p(t,e){4456448&e[0]&&r!==(r=t[44]+"")&&V(n,r)},d(t){t&&O(e)}}}function Je(t){let e,n,r,o,i=t[0].length+"";return{c(){e=R("span"),n=B(i),r=B(" / "),o=B(t[16])},m(t,i){L(t,e,i),j(e,n),j(e,r),j(e,o)},p(t,e){1&e[0]&&i!==(i=t[0].length+"")&&V(n,i),65536&e[0]&&V(o,t[16])},d(t){t&&O(e)}}}function Ke(t){let e,n,r,o,i,a,l,p=t[17],d=[];for(let e=0;e<p.length;e+=1)d[e]=Ge(Be(t,p,e));let m=t[22].slice(0,t[18]),c=[];for(let e=0;e<m.length;e+=1)c[e]=Ze(Ae(t,m,e));let s=t[16]&&Je(t);return{c(){e=R("div"),n=R("div"),r=R("span"),o=B(t[15]),i=N();for(let t=0;t<d.length;t+=1)d[t].c();a=N();for(let t=0;t<c.length;t+=1)c[t].c();l=N(),s&&s.c(),D(e,"slot","messages")},m(t,p){L(t,e,p),j(e,n),j(n,r),j(r,o),j(n,i);for(let t=0;t<d.length;t+=1)d[t].m(n,null);j(n,a);for(let t=0;t<c.length;t+=1)c[t].m(n,null);j(e,l),s&&s.m(e,null)},p(t,r){if(32768&r[0]&&V(o,t[15]),131072&r[0]){let e;for(p=t[17],e=0;e<p.length;e+=1){const o=Be(t,p,e);d[e]?d[e].p(o,r):(d[e]=Ge(o),d[e].c(),d[e].m(n,a))}for(;e<d.length;e+=1)d[e].d(1);d.length=p.length}if(4456448&r[0]){let e;for(m=t[22].slice(0,t[18]),e=0;e<m.length;e+=1){const o=Ae(t,m,e);c[e]?c[e].p(o,r):(c[e]=Ze(o),c[e].c(),c[e].m(n,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=m.length}t[16]?s?s.p(t,r):(s=Je(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(t){t&&O(e),U(d,t),U(c,t),s&&s.d()}}}function Qe(t){let e;const n=t[33]["append-outer"],r=h(n,t,t[43],Re);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,e){r&&r.p&&4096&e[1]&&w(r,n,t,t[43],e,Ue,Re)},i(t){e||(Et(r,t),e=!0)},o(t){It(r,t),e=!1},d(t){r&&r.d(t)}}}function tn(t){let e,n,r,o,i,a,l,p,d,m,s,g,f,b,u;const y=t[33].prepend,v=h(y,t,t[43],Ye),k=t[33].default,$=h(k,t,t[43],null),_=t[33].content,z=h(_,t,t[43],He);let C=[{type:"text"},{placeholder:t[14]},{id:t[20]},{readOnly:t[12]},{disabled:t[13]},t[28]],S={};for(let t=0;t<C.length;t+=1)S=c(S,C[t]);let E=t[11]&&""!==t[0]&&We(t);const I=t[33].append,U=h(I,t,t[43],Pe);return{c(){e=N(),n=R("div"),v&&v.c(),r=N(),o=R("div"),i=R("label"),$&&$.c(),a=N(),z&&z.c(),l=N(),p=R("input"),d=N(),E&&E.c(),m=N(),U&&U.c(),s=N(),g=N(),D(i,"for",t[20]),G(i,"active",t[23]),M(p,S),D(o,"class","s-text-field__input"),D(n,"class","s-text-field__wrapper"),G(n,"filled",t[5]),G(n,"solo",t[6]),G(n,"outlined",t[7]),G(n,"flat",t[8]),G(n,"rounded",t[10])},m(c,x){L(c,e,x),L(c,n,x),v&&v.m(n,null),j(n,r),j(n,o),j(o,i),$&&$.m(i,null),j(o,a),z&&z.m(o,null),j(o,l),j(o,p),t[41](p),Y(p,t[0]),j(n,d),E&&E.m(n,null),j(n,m),U&&U.m(n,null),L(c,s,x),L(c,g,x),f=!0,b||(u=[T(p,"input",t[42]),T(p,"focus",t[24]),T(p,"blur",t[25]),T(p,"input",t[27]),T(p,"focus",t[34]),T(p,"blur",t[35]),T(p,"input",t[36]),T(p,"change",t[37]),T(p,"keypress",t[38]),T(p,"keydown",t[39]),T(p,"keyup",t[40])],b=!0)},p(t,e){v&&v.p&&4096&e[1]&&w(v,y,t,t[43],e,Ve,Ye),$&&$.p&&4096&e[1]&&w($,k,t,t[43],e,null,null),(!f||1048576&e[0])&&D(i,"for",t[20]),8388608&e[0]&&G(i,"active",t[23]),z&&z.p&&4096&e[1]&&w(z,_,t,t[43],e,Me,He),M(p,S=At(C,[{type:"text"},(!f||16384&e[0])&&{placeholder:t[14]},(!f||1048576&e[0])&&{id:t[20]},(!f||4096&e[0])&&{readOnly:t[12]},(!f||8192&e[0])&&{disabled:t[13]},268435456&e[0]&&t[28]])),1&e[0]&&p.value!==t[0]&&Y(p,t[0]),t[11]&&""!==t[0]?E?(E.p(t,e),2049&e[0]&&Et(E,1)):(E=We(t),E.c(),Et(E,1),E.m(n,m)):E&&(Ct(),It(E,1,1,(()=>{E=null})),St()),U&&U.p&&4096&e[1]&&w(U,I,t,t[43],e,Ne,Pe),32&e[0]&&G(n,"filled",t[5]),64&e[0]&&G(n,"solo",t[6]),128&e[0]&&G(n,"outlined",t[7]),256&e[0]&&G(n,"flat",t[8]),1024&e[0]&&G(n,"rounded",t[10])},i(t){f||(Et(v,t),Et($,t),Et(z,t),Et(E),Et(U,t),f=!0)},o(t){It(v,t),It($,t),It(z,t),It(E),It(U,t),f=!1},d(r){r&&O(e),r&&O(n),v&&v.d(r),$&&$.d(r),z&&z.d(r),t[41](null),E&&E.d(),U&&U.d(r),r&&O(s),r&&O(g),b=!1,x(u)}}}function en(t){let e,n;return e=new Ee({props:{class:"s-text-field "+t[3],color:t[4],dense:t[9],readonly:t[12],disabled:t[13],error:t[1],success:t[19],style:t[21],$$slots:{default:[tn],"append-outer":[Qe],messages:[Ke],"prepend-outer":[qe]},$$scope:{ctx:t}}}),{c(){Pt(e.$$.fragment)},m(t,r){Tt(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.class="s-text-field "+t[3]),16&n[0]&&(r.color=t[4]),512&n[0]&&(r.dense=t[9]),4096&n[0]&&(r.readonly=t[12]),8192&n[0]&&(r.disabled=t[13]),2&n[0]&&(r.error=t[1]),524288&n[0]&&(r.success=t[19]),2097152&n[0]&&(r.style=t[21]),282590693&n[0]|4096&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Et(e.$$.fragment,t),n=!0)},o(t){It(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}function nn(t,e,n){let r;const o=["class","value","color","filled","solo","outlined","flat","dense","rounded","clearable","readonly","disabled","placeholder","hint","counter","messages","rules","errorCount","validateOnBlur","error","success","id","style","inputElement","validate"];let i=k(e,o),{$$slots:a={},$$scope:l}=e,{class:p=""}=e,{value:d=""}=e,{color:m="primary"}=e,{filled:s=!1}=e,{solo:g=!1}=e,{outlined:x=!1}=e,{flat:f=!1}=e,{dense:b=!1}=e,{rounded:u=!1}=e,{clearable:h=!1}=e,{readonly:y=!1}=e,{disabled:w=!1}=e,{placeholder:$=null}=e,{hint:_=""}=e,{counter:z=!1}=e,{messages:C=[]}=e,{rules:S=[]}=e,{errorCount:E=1}=e,{validateOnBlur:I=!1}=e,{error:j=!1}=e,{success:L=!1}=e,{id:O="s-input-"+Le(5)}=e,{style:U=null}=e,{inputElement:R=null}=e,A=!1,B=[];function N(){return n(22,B=S.map((t=>t(d))).filter((t=>"string"==typeof t))),B.length?n(1,j=!0):n(1,j=!1),j}return t.$$set=t=>{e=c(c({},e),v(t)),n(28,i=k(e,o)),"class"in t&&n(3,p=t.class),"value"in t&&n(0,d=t.value),"color"in t&&n(4,m=t.color),"filled"in t&&n(5,s=t.filled),"solo"in t&&n(6,g=t.solo),"outlined"in t&&n(7,x=t.outlined),"flat"in t&&n(8,f=t.flat),"dense"in t&&n(9,b=t.dense),"rounded"in t&&n(10,u=t.rounded),"clearable"in t&&n(11,h=t.clearable),"readonly"in t&&n(12,y=t.readonly),"disabled"in t&&n(13,w=t.disabled),"placeholder"in t&&n(14,$=t.placeholder),"hint"in t&&n(15,_=t.hint),"counter"in t&&n(16,z=t.counter),"messages"in t&&n(17,C=t.messages),"rules"in t&&n(29,S=t.rules),"errorCount"in t&&n(18,E=t.errorCount),"validateOnBlur"in t&&n(30,I=t.validateOnBlur),"error"in t&&n(1,j=t.error),"success"in t&&n(19,L=t.success),"id"in t&&n(20,O=t.id),"style"in t&&n(21,U=t.style),"inputElement"in t&&n(2,R=t.inputElement),"$$scope"in t&&n(43,l=t.$$scope)},t.$$.update=()=>{16385&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(23,r=!!$||d||A)},[d,j,R,p,m,s,g,x,f,b,u,h,y,w,$,_,z,C,E,L,O,U,B,r,function(){n(32,A=!0)},function(){n(32,A=!1),I&&N()},function(){n(0,d="")},function(){I||N()},i,S,I,N,A,a,function(e){pt(t,e)},function(e){pt(t,e)},function(e){pt(t,e)},function(e){pt(t,e)},function(e){pt(t,e)},function(e){pt(t,e)},function(e){pt(t,e)},function(t){mt[t?"unshift":"push"]((()=>{R=t,n(2,R)}))},function(){d=this.value,n(0,d)},l]}class rn extends Vt{constructor(t){super(),Ht(this,t,nn,en,b,{class:3,value:0,color:4,filled:5,solo:6,outlined:7,flat:8,dense:9,rounded:10,clearable:11,readonly:12,disabled:13,placeholder:14,hint:15,counter:16,messages:17,rules:29,errorCount:18,validateOnBlur:30,error:1,success:19,id:20,style:21,inputElement:2,validate:31},[-1,-1])}get validate(){return this.$$.ctx[31]}}const on=t=>({}),an=t=>({slot:"append-outer"});function ln(t,e,n){const r=t.slice();return r[43]=e[n],r}function pn(t,e,n){const r=t.slice();return r[43]=e[n],r}const dn=t=>({}),mn=t=>({}),cn=t=>({}),sn=t=>({}),gn=t=>({}),xn=t=>({}),fn=t=>({}),bn=t=>({slot:"prepend-outer"});function un(t){let e;const n=t[34]["prepend-outer"],r=h(n,t,t[41],bn);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,e){r&&r.p&&1024&e[1]&&w(r,n,t,t[41],e,fn,bn)},i(t){e||(Et(r,t),e=!0)},o(t){It(r,t),e=!1},d(t){r&&r.d(t)}}}function hn(t){let e,n,r,o;const i=t[34]["clear-icon"],a=h(i,t,t[41],sn),l=a||function(t){let e,n;return e=new te({props:{path:Oe}}),{c(){Pt(e.$$.fragment)},m(t,r){Tt(e,t,r),n=!0},p:d,i(t){n||(Et(e.$$.fragment,t),n=!0)},o(t){It(e.$$.fragment,t),n=!1},d(t){Dt(e,t)}}}();return{c(){e=R("div"),l&&l.c(),F(e,"cursor","pointer")},m(i,a){L(i,e,a),l&&l.m(e,null),n=!0,r||(o=T(e,"click",t[27]),r=!0)},p(t,e){a&&a.p&&1024&e[1]&&w(a,i,t,t[41],e,cn,sn)},i(t){n||(Et(l,t),n=!0)},o(t){It(l,t),n=!1},d(t){t&&O(e),l&&l.d(t),r=!1,o()}}}function yn(t){let e,n,r=t[43]+"";return{c(){e=R("span"),n=B(r)},m(t,r){L(t,e,r),j(e,n)},p(t,e){524288&e[0]&&r!==(r=t[43]+"")&&V(n,r)},d(t){t&&O(e)}}}function wn(t){let e,n,r=t[43]+"";return{c(){e=R("span"),n=B(r)},m(t,r){L(t,e,r),j(e,n)},p(t,e){8650752&e[0]&&r!==(r=t[43]+"")&&V(n,r)},d(t){t&&O(e)}}}function vn(t){let e,n,r,o,i=t[0].length+"";return{c(){e=R("span"),n=B(i),r=B(" / "),o=B(t[17])},m(t,i){L(t,e,i),j(e,n),j(e,r),j(e,o)},p(t,e){1&e[0]&&i!==(i=t[0].length+"")&&V(n,i),131072&e[0]&&V(o,t[17])},d(t){t&&O(e)}}}function kn(t){let e,n,r,o,i,a,l,p=t[19],d=[];for(let e=0;e<p.length;e+=1)d[e]=yn(pn(t,p,e));let m=t[23].slice(0,t[18]),c=[];for(let e=0;e<m.length;e+=1)c[e]=wn(ln(t,m,e));let s=t[17]&&vn(t);return{c(){e=R("div"),n=R("div"),r=R("span"),o=B(t[16]),i=N();for(let t=0;t<d.length;t+=1)d[t].c();a=N();for(let t=0;t<c.length;t+=1)c[t].c();l=N(),s&&s.c(),D(e,"slot","messages")},m(t,p){L(t,e,p),j(e,n),j(n,r),j(r,o),j(n,i);for(let t=0;t<d.length;t+=1)d[t].m(n,null);j(n,a);for(let t=0;t<c.length;t+=1)c[t].m(n,null);j(e,l),s&&s.m(e,null)},p(t,r){if(65536&r[0]&&V(o,t[16]),524288&r[0]){let e;for(p=t[19],e=0;e<p.length;e+=1){const o=pn(t,p,e);d[e]?d[e].p(o,r):(d[e]=yn(o),d[e].c(),d[e].m(n,a))}for(;e<d.length;e+=1)d[e].d(1);d.length=p.length}if(8650752&r[0]){let e;for(m=t[23].slice(0,t[18]),e=0;e<m.length;e+=1){const o=ln(t,m,e);c[e]?c[e].p(o,r):(c[e]=wn(o),c[e].c(),c[e].m(n,nu