@teiler/svelte 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @teiler/svelte
2
2
 
3
+ ## 0.0.22
4
+
5
+ ### Patch Changes
6
+
7
+ - Add tests
8
+
9
+ - Updated dependencies []:
10
+ - @teiler/core@0.0.22
11
+
3
12
  ## 0.0.21
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -1 +1,142 @@
1
- # svelte
1
+ # Teiler 🪡 (ˈteɪlər - tailor)
2
+
3
+ ![Discord](https://img.shields.io/discord/1125416414069661698?logo=discord&link=https%3A%2F%2Fdiscord.gg%2FJ6Sv9sQ64t)
4
+
5
+ **Teiler** is an open source library that simplifies the creation of stylish components for various frameworks.
6
+
7
+ Currently in the **alpha phase**, the library is actively being developed and improved. It currently provides support solely for Svelte CSR (Client-Side Rendering).
8
+
9
+ Join our community on our [Discord Server](https://discord.gg/J6Sv9sQ64t) to stay informed about the latest developments, exchange ideas, and connect with fellow developers. We are continuously working on expanding our support to include more frameworks, allowing developers to effortlessly create components across various environments.
10
+
11
+ ### Example
12
+
13
+ ```typescript
14
+ import { component } from '@teiler/svelte'
15
+
16
+ const Button = component.button<{
17
+ _primary: boolean
18
+ }>`
19
+ display: inline-block;
20
+ border-radius: 4px;
21
+ font-size: 0.8rem;
22
+ line-height: 1.5rem;
23
+ background: transparent;
24
+ box-shadow: 0 0 0 3px #CBCBCB inset;
25
+
26
+ ${({ _primary }) =>
27
+ _primary && `
28
+ color: #fff;
29
+ box-shadow: none;
30
+ background: #CBCBCB;
31
+ `
32
+ }
33
+ `
34
+ ```
35
+
36
+ ## Keyframes
37
+
38
+ ```typescript
39
+ import { component, keyframes } from '@teiler/svelte'
40
+
41
+ const bouncing = keyframes`
42
+ from, 20%, 53%, 80%, to {
43
+ transform: translate3d(0,0,0);
44
+ }
45
+
46
+ 40%, 43% {
47
+ transform: translate3d(0, -40px, 0);
48
+ }
49
+
50
+ 70% {
51
+ transform: translate3d(0, -15px, 0);
52
+ }
53
+
54
+ 90% {
55
+ transform: translate3d(0,-4px,0);
56
+ }
57
+ `
58
+
59
+ const Button = component.button<{}>`
60
+ animation: ${bouncing} 1s ease infinite;
61
+ display: inline-block;
62
+ border-radius: 4px;
63
+ font-size: 0.8rem;
64
+ line-height: 1.5rem;
65
+ background: transparent;
66
+ box-shadow: 0 0 0 3px #CBCBCB inset;
67
+ `
68
+ ```
69
+
70
+ ## Theme
71
+
72
+ Example how to use themes.
73
+
74
+ ```typescript
75
+ // Main component inside application (`App.svelte`)
76
+ <script context="module" lang="ts">
77
+ export type CustomTheme = {
78
+ fontColor: string,
79
+ }
80
+ </script>
81
+ <script lang="ts">
82
+ import { ThemeProvider } from '@teiler/svelte'
83
+ import { Component } from './theme'
84
+
85
+ export let theme: CustomTheme = {
86
+ fontColor: 'red',
87
+ }
88
+ </script>
89
+
90
+ <ThemeProvider {theme}>
91
+ <Component>Some test text</Component>
92
+ </ThemeProvider>
93
+
94
+ // Component with theme usage
95
+ import { component } from '@teiler/svelte'
96
+
97
+ const Component = component.div`
98
+ color: ${({ theme }) => theme.fontColor};
99
+ `
100
+
101
+ export { Component }
102
+ ```
103
+
104
+ To add typing for Typescript applications you need to add `extend` inside declaration file (`d.ts`)
105
+ ```typescript
106
+ import type { CustomTheme } from "./App.svelte";
107
+
108
+ declare module '@teiler/core' {
109
+ export interface DefaultTheme extends CustomTheme {}
110
+ }
111
+ ```
112
+
113
+ ## Sew a Pattern
114
+
115
+ This tool simplifies the creation of consistent and reusable visual styles for components across various web frameworks. It provides a pattern-based approach, where patterns serve as blueprints for defining the visual style of components.
116
+
117
+ ### Example
118
+
119
+ ```typescript
120
+ // Pattern file in ui kit library
121
+ import { pattern } from '@teiler/core'
122
+
123
+ const ButtonPattern = pattern.button`
124
+ display: inline-block;
125
+ border-radius: 4px;
126
+ font-size: 0.8rem;
127
+ line-height: 1.5rem;
128
+ background: transparent;
129
+ box-shadow: 0 0 0 3px #CBCBCB inset;
130
+ `
131
+
132
+ export default ButtonPattern
133
+
134
+ // Usage of Pattern
135
+ import { ButtonPattern } from 'some-uikit-library'
136
+ import { sew } from '@teiler/core'
137
+ import { createComponent } from '@teiler/svelte'
138
+
139
+ const Button = sew(ButtonPattern, createComponent)
140
+
141
+ export default Button
142
+ ```
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("svelte/internal");require("svelte/internal/disclose-version");var t=require("svelte"),n=require("svelte/store"),s=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function l(e){let t,n=e.length,s=n,l=0;for(;n>=4;)t=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16)^t,n-=4,++l;switch(n){case 3:s^=(255&e.charCodeAt(l+2))<<16;case 2:s^=(255&e.charCodeAt(l+1))<<8;case 1:s^=255&e.charCodeAt(l),s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16)}return s^=s>>>13,s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16),s^=s>>>15,(s>>>0).toString(36)}const i=e=>(t,...n)=>{if("__pattern__"in t)return(e,...n)=>{const s=[Array.from(e),n],i=[...t.styles,s],c=i.reduce(((e,[t])=>e+t.join("")),"");return{styles:i,id:"t"+l(c),tag:t.tag,__pattern__:!0}};{const s=t,i=[[Array.from(s),n]],c=i.reduce(((e,[t])=>e+t.join("")),"");return{styles:i,id:"t"+l(c),tag:e,__pattern__:!0}}},c=i("div");s.forEach((e=>{c[e]=i(e)})),c.global=i(null);var r="-ms-",a="-moz-",u="-webkit-",o="comm",b="rule",f="decl",h="@import",d="@keyframes",p="@layer",g=Math.abs,m=String.fromCharCode,y=Object.assign;function $(e){return e.trim()}function _(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,n){return e.replace(t,n)}function k(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function x(e,t,n){return e.slice(t,n)}function j(e){return e.length}function C(e){return e.length}function A(e,t){return t.push(e),e}function D(e,t){return e.filter((function(e){return!_(e,t)}))}var E=1,R=1,q=0,O=0,S=0,z="";function T(e,t,n,s,l,i,c,r){return{value:e,root:t,parent:n,type:s,props:l,children:i,line:E,column:R,length:c,return:"",siblings:r}}function N(e,t){return y(T("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function M(e){for(;e.root;)e=N(e.root,{children:[e]});A(e,e.siblings)}function P(){return S=O<q?w(z,O++):0,R++,10===S&&(R=1,E++),S}function G(){return w(z,O)}function H(){return O}function I(e,t){return x(z,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return $(I(O-1,J(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(S=G())&&S<33;)P();return L(e)>2||L(S)>3?"":" "}function F(e,t){for(;--t&&P()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return I(e,H()+(t<6&&32==G()&&32==P()))}function J(e){for(;P();)switch(S){case e:return O;case 34:case 39:34!==e&&39!==e&&J(S);break;case 40:41===e&&J(e);break;case 92:P()}return O}function K(e,t){for(;P()&&e+S!==57&&(e+S!==84||47!==G()););return"/*"+I(t,O-1)+"*"+m(47===e?e:P())}function Q(e){for(;!L(G());)P();return I(e,O)}function U(e){return function(e){return z="",e}(V("",null,null,null,[""],(E=R=1,q=j(z=e),O=0,e=[]),0,[0],e))}function V(e,t,n,s,l,i,c,r,a){for(var u=0,o=0,b=c,f=0,h=0,d=0,p=1,y=1,$=1,_=0,x="",C=l,D=i,q=s,T=x;y;)switch(d=_,_=P()){case 40:if(108!=d&&58==w(T,b-1)){-1!=k(T+=v(Y(_),"&","&\f"),"&\f",g(u?r[u-1]:0))&&($=-1);break}case 34:case 39:case 91:T+=Y(_);break;case 9:case 10:case 13:case 32:T+=B(d);break;case 92:T+=F(H()-1,7);continue;case 47:switch(G()){case 42:case 47:A(X(K(P(),H()),t,n,a),a);break;default:T+="/"}break;case 123*p:r[u++]=j(T)*$;case 125*p:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+o:-1==$&&(T=v(T,/\f/g,"")),h>0&&j(T)-b&&A(h>32?Z(T+";",s,n,b-1,a):Z(v(T," ","")+";",s,n,b-2,a),a);break;case 59:T+=";";default:if(A(q=W(T,t,n,u,o,l,r,x,C=[],D=[],b,i),i),123===_)if(0===o)V(T,t,q,q,C,i,b,r,D);else switch(99===f&&110===w(T,3)?100:f){case 100:case 108:case 109:case 115:V(e,q,q,s&&A(W(e,q,q,0,0,l,r,x,l,C=[],b,D),D),l,D,b,r,s?C:D);break;default:V(T,q,q,q,[""],D,0,r,D)}}u=o=h=0,p=$=1,x=T="",b=c;break;case 58:b=1+j(T),h=d;default:if(p<1)if(123==_)--p;else if(125==_&&0==p++&&125==(S=O>0?w(z,--O):0,R--,10===S&&(R=1,E--),S))continue;switch(T+=m(_),_*p){case 38:$=o>0?1:(T+="\f",-1);break;case 44:r[u++]=(j(T)-1)*$,$=1;break;case 64:45===G()&&(T+=Y(P())),f=G(),o=b=j(x=T+=Q(H())),_++;break;case 45:45===d&&2==j(T)&&(p=0)}}return i}function W(e,t,n,s,l,i,c,r,a,u,o,f){for(var h=l-1,d=0===l?i:[""],p=C(d),m=0,y=0,_=0;m<s;++m)for(var k=0,w=x(e,h+1,h=g(y=c[m])),j=e;k<p;++k)(j=$(y>0?d[k]+" "+w:v(w,/&\f/g,d[k])))&&(a[_++]=j);return T(e,t,n,0===l?b:r,a,u,o,f)}function X(e,t,n,s){return T(e,t,n,o,m(S),x(e,2,-2),0,s)}function Z(e,t,n,s,l){return T(e,t,n,f,x(e,0,s),x(e,s+1,-1),s,l)}function ee(e,t,n){switch(l=t,45^w(s=e,0)?(((l<<2^w(s,0))<<2^w(s,1))<<2^w(s,2))<<2^w(s,3):0){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 4789:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+a+e+r+e+e;case 5936:switch(w(e,t+11)){case 114:return u+e+r+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+r+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+r+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return u+e+r+e+e;case 6165:return u+e+r+"flex-"+e+e;case 5187:return u+e+v(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+r+"flex-$1$2")+e;case 5443:return u+e+r+"flex-item-"+v(e,/flex-|-self/g,"")+(_(e,/flex-|baseline/)?"":r+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return u+e+r+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return u+e+r+v(e,"shrink","negative")+e;case 5292:return u+e+r+v(e,"basis","preferred-size")+e;case 6060:return u+"box-"+v(e,"-grow","")+u+e+r+v(e,"grow","positive")+e;case 4554:return u+v(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4200:if(!_(e,/flex-|baseline/))return r+"grid-column-align"+x(e,t)+e;break;case 2592:case 3360:return r+v(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,_(e.props,/grid-\w+-end/)}))?~k(e+(n=n[t].value),"span",0)?e:r+v(e,"-start","")+e+r+"grid-row-span:"+(~k(n,"span",0)?_(n,/\d+/):+_(n,/\d+/)-+_(e,/\d+/))+";":r+v(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return _(e.props,/grid-\w+-start/)}))?e:r+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(j(e)-1-t>6)switch(w(e,t+1)){case 109:if(45!==w(e,t+4))break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+a+(108==w(e,t+3)?"$3":"$2-$3"))+e;case 115:return~k(e,"stretch",0)?ee(v(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,s,l,i,c,a){return r+n+":"+s+a+(l?r+n+"-span:"+(i?c:+c-+s)+a:"")+e}));case 4949:if(121===w(e,t+6))return v(e,":",":"+u)+e;break;case 6444:switch(w(e,45===w(e,14)?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===w(e,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+r+"$2box$3")+e;case 100:return v(e,":",":"+r)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}var s,l;return e}function te(e,t){for(var n="",s=0;s<e.length;s++)n+=t(e[s],s,e,t)||"";return n}function ne(e,t,n,s){switch(e.type){case p:if(e.children.length)break;case h:case f:return e.return=e.return||e.value;case o:return"";case d:return e.return=e.value+"{"+te(e.children,s)+"}";case b:if(!j(e.value=e.props.join(",")))return""}return j(n=te(e.children,s))?e.return=e.value+"{"+n+"}":""}function se(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case f:return void(e.return=ee(e.value,e.length,n));case d:return te([N(e,{value:v(e.value,"@","@"+u)})],s);case b:if(e.length)return(n=e.props).map((function(t){switch(_(t,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":M(N(e,{props:[v(t,/:(read-\w+)/,":"+a+"$1")]})),M(N(e,{props:[t]})),y(e,{props:D(n,s)});break;case"::placeholder":M(N(e,{props:[v(t,/:(plac\w+)/,":"+u+"input-$1")]})),M(N(e,{props:[v(t,/:(plac\w+)/,":"+a+"$1")]})),M(N(e,{props:[v(t,/:(plac\w+)/,r+"input-$1")]})),M(N(e,{props:[t]})),y(e,{props:D(n,s)})}return""})).join("")}}const le=e=>null==e||!1===e||""===e;function ie(e,t){return e.reduce(((e,[n,s])=>{const l=n.reduce(((n,l,i)=>{n=[...n,l];const c=s.at(i);if(c){let s=null;if("function"==typeof c)if("styleDefinition"in c){const t=c.styleDefinition;e.definitions=[...e.definitions,t],s="."+t.id}else{const n=c(t);if("object"==typeof n&&"__css__"in n){const{css:l,definitions:i}=ie(n.styles,t);e.definitions=[...e.definitions,...i],s=l}else"string"==typeof n&&n.includes("[object Object]")&&console.error("[teiler]","If you trying to use nested component/pattern selector inside function use function `css`, sample: \n${({ someProperty }) => css`${NastedComponent} {...}`}"),s=n}else if("object"==typeof c&&"__pattern__"in c)s="."+c.id;else if("object"==typeof c){const t=c;e.definitions=[...e.definitions,t],s=t.id}else s=c;!1===le(s)&&(n=[...n,s])}return n}),[]).join("");return e.css=e.css+l,e}),{css:"",definitions:[]})}function ce(e){const t=[];var n,s,l;return te(U(e),(s=[ne,se,(n=e=>{t.push(e)},function(e){e.root||(e=e.return)&&n(e)})],l=C(s),function(e,t,n,i){for(var c="",r=0;r<l;r++)c+=s[r](e,t,n,i)||"";return c})),t.join(" ")}const re=(e,t)=>({type:"component",id:"t"+l(t.reduce(((e,[t])=>e+t.join("")),"")),styles:t,tag:e});function ae(e,t,n){const{styles:s,type:i}=t,{css:c,definitions:r}=ie(s,n),a=l(c);if(r.forEach((t=>ae(e,t,n))),"component"===i){const t=ce(`.teiler-${a} { ${c} }`);return e.insert(a,t),`teiler-${a}`}if("keyframes"===i){const{id:n}=t,s=ce(`@keyframes ${n} { ${c} }`);e.insert(a,s)}else{const t=ce(`${c}`);e.insert(a,t)}return null}const ue=function(e){const t={...e},n="undefined"==typeof document?function(){const e={};return{insertRule:function(t,n){return e[t]=n,Object.keys(e).length},deleteRule:function(t){delete e[t]},getRule:function(t){return e[t]||null},getAllRules:function(){return Object.values(e).join(" ")}}}():function(e){const t=function(e){const t=document.head,n=e||t,s=document.createElement("style");return s.setAttribute("data-teiler",""),n.appendChild(s),s}(e),n=new Map;return{insertRule:function(e,s){const l=document.createTextNode(s);return!1===n.has(e)&&(n.set(e,l),t.appendChild(l)),n.size},deleteRule:function(e){t.removeChild(n.get(e)),n.delete(e)},getRule:function(e){return n.get(e)?.textContent||null},getAllRules:function(){return Array.from(n.values()).reduce(((e,t)=>e+" "+t.textContent),"")}}}(t.container);return{insert:(e,t)=>n.insertRule(e,t),dump:()=>n.getAllRules()}}({}),oe="STYLE_SHEET";function be(t){let n;const s=t[2].default,l=e.create_slot(s,t,t[1],null);return{c(){l&&l.c()},m(e,t){l&&l.m(e,t),n=!0},p(t,[i]){l&&l.p&&(!n||2&i)&&e.update_slot_base(l,s,t,t[1],n?e.get_slot_changes(s,t[1],i,null):e.get_all_dirty_from_scope(t[1]),null)},i(t){n||(e.transition_in(l,t),n=!0)},o(t){e.transition_out(l,t),n=!1},d(e){l&&l.d(e)}}}const fe="THEME";function he(e,s,l){let{$$slots:i={},$$scope:c}=s,{theme:r}=s;const a=n.writable(r);return t.setContext(fe,a),e.$$set=e=>{"theme"in e&&l(0,r=e.theme),"$$scope"in e&&l(1,c=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&a.set(r)},[r,c,i]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,he,be,e.safe_not_equal,{theme:0})}}function pe(t){let n,s,l,i;const c=t[8].default,r=e.create_slot(c,t,t[7],null);let a=[{class:t[1]},t[2]],u={};for(let t=0;t<a.length;t+=1)u=e.assign(u,a[t]);return{c(){n=e.element(t[0].tag),r&&r.c(),e.set_dynamic_element_data(t[0].tag)(n,u)},m(c,a){e.insert(c,n,a),r&&r.m(n,null),s=!0,l||(i=[e.listen(n,"copy",t[9]),e.listen(n,"cut",t[10]),e.listen(n,"paste",t[11]),e.listen(n,"compositionend",t[12]),e.listen(n,"compositionstart",t[13]),e.listen(n,"compositionupdate",t[14]),e.listen(n,"focus",t[15]),e.listen(n,"focusin",t[16]),e.listen(n,"focusout",t[17]),e.listen(n,"blur",t[18]),e.listen(n,"change",t[19]),e.listen(n,"beforeinput",t[20]),e.listen(n,"input",t[21]),e.listen(n,"reset",t[22]),e.listen(n,"submit",t[23]),e.listen(n,"invalid",t[24]),e.listen(n,"formdata",t[25]),e.listen(n,"load",t[26]),e.listen(n,"error",t[27]),e.listen(n,"beforetoggle",t[28]),e.listen(n,"toggle",t[29]),e.listen(n,"keydown",t[30]),e.listen(n,"keypress",t[31]),e.listen(n,"keyup",t[32]),e.listen(n,"abort",t[33]),e.listen(n,"canplay",t[34]),e.listen(n,"canplaythrough",t[35]),e.listen(n,"cuechange",t[36]),e.listen(n,"durationchange",t[37]),e.listen(n,"emptied",t[38]),e.listen(n,"encrypted",t[39]),e.listen(n,"ended",t[40]),e.listen(n,"loadeddata",t[41]),e.listen(n,"loadedmetadata",t[42]),e.listen(n,"loadstart",t[43]),e.listen(n,"pause",t[44]),e.listen(n,"play",t[45]),e.listen(n,"playing",t[46]),e.listen(n,"progress",t[47]),e.listen(n,"ratechange",t[48]),e.listen(n,"seeked",t[49]),e.listen(n,"seeking",t[50]),e.listen(n,"stalled",t[51]),e.listen(n,"suspend",t[52]),e.listen(n,"timeupdate",t[53]),e.listen(n,"volumechange",t[54]),e.listen(n,"waiting",t[55]),e.listen(n,"auxclick",t[56]),e.listen(n,"click",t[57]),e.listen(n,"contextmenu",t[58]),e.listen(n,"dblclick",t[59]),e.listen(n,"drag",t[60]),e.listen(n,"dragend",t[61]),e.listen(n,"dragenter",t[62]),e.listen(n,"dragexit",t[63]),e.listen(n,"dragleave",t[64]),e.listen(n,"dragover",t[65]),e.listen(n,"dragstart",t[66]),e.listen(n,"drop",t[67]),e.listen(n,"mousedown",t[68]),e.listen(n,"mouseenter",t[69]),e.listen(n,"mouseleave",t[70]),e.listen(n,"mousemove",t[71]),e.listen(n,"mouseout",t[72]),e.listen(n,"mouseover",t[73]),e.listen(n,"mouseup",t[74]),e.listen(n,"select",t[75]),e.listen(n,"selectionchange",t[76]),e.listen(n,"selectstart",t[77]),e.listen(n,"touchcancel",t[78]),e.listen(n,"touchend",t[79]),e.listen(n,"touchmove",t[80]),e.listen(n,"touchstart",t[81]),e.listen(n,"gotpointercapture",t[82]),e.listen(n,"pointercancel",t[83]),e.listen(n,"pointerdown",t[84]),e.listen(n,"pointerenter",t[85]),e.listen(n,"pointerleave",t[86]),e.listen(n,"pointermove",t[87]),e.listen(n,"pointerout",t[88]),e.listen(n,"pointerover",t[89]),e.listen(n,"pointerup",t[90]),e.listen(n,"lostpointercapture",t[91]),e.listen(n,"gamepadconnected",t[92]),e.listen(n,"gamepaddisconnected",t[93]),e.listen(n,"scroll",t[94]),e.listen(n,"scrollend",t[95]),e.listen(n,"resize",t[96]),e.listen(n,"wheel",t[97]),e.listen(n,"animationstart",t[98]),e.listen(n,"animationend",t[99]),e.listen(n,"animationiteration",t[100]),e.listen(n,"transitionstart",t[101]),e.listen(n,"transitionrun",t[102]),e.listen(n,"transitionend",t[103]),e.listen(n,"transitioncancel",t[104]),e.listen(n,"outrostart",t[105]),e.listen(n,"outroend",t[106]),e.listen(n,"introstart",t[107]),e.listen(n,"introend",t[108]),e.listen(n,"message",t[109]),e.listen(n,"messageerror",t[110]),e.listen(n,"visibilitychange",t[111]),e.listen(n,"cancel",t[112]),e.listen(n,"close",t[113]),e.listen(n,"fullscreenchange",t[114]),e.listen(n,"fullscreenerror",t[115])],l=!0)},p(t,l){r&&r.p&&(!s||128&l[0])&&e.update_slot_base(r,c,t,t[7],s?e.get_slot_changes(c,t[7],l,null):e.get_all_dirty_from_scope(t[7]),null),e.set_dynamic_element_data(t[0].tag)(n,u=e.get_spread_update(a,[(!s||2&l[0])&&{class:t[1]},4&l[0]&&t[2]]))},i(t){s||(e.transition_in(r,t),s=!0)},o(t){e.transition_out(r,t),s=!1},d(t){t&&e.detach(n),r&&r.d(t),l=!1,e.run_all(i)}}}function ge(t){let n,s,l=t[0].tag,i=t[0].tag&&pe(t);return{c(){i&&i.c(),n=e.empty()},m(t,l){i&&i.m(t,l),e.insert(t,n,l),s=!0},p(t,s){t[0].tag?l?e.safe_not_equal(l,t[0].tag)?(i.d(1),i=pe(t),l=t[0].tag,i.c(),i.m(n.parentNode,n)):i.p(t,s):(i=pe(t),l=t[0].tag,i.c(),i.m(n.parentNode,n)):l&&(i.d(1),i=null,l=t[0].tag)},i(t){s||(e.transition_in(i,t),s=!0)},o(t){e.transition_out(i,t),s=!1},d(t){t&&e.detach(n),i&&i.d(t)}}}function me(n,s,l){let i,c,r,a;const u=["styleDefinition"];let o,b=e.compute_rest_props(s,u),{$$slots:f={},$$scope:h}=s,{styleDefinition:d}=s;const p=t.getContext(oe)||ue,g=t.getContext(fe);return e.component_subscribe(n,g,(e=>l(6,o=e))),n.$$set=t=>{s=e.assign(e.assign({},s),e.exclude_internal_props(t)),l(117,b=e.compute_rest_props(s,u)),"styleDefinition"in t&&l(0,d=t.styleDefinition),"$$scope"in t&&l(7,h=t.$$scope)},n.$$.update=()=>{l(4,i=ae(p,d,{...b,theme:o})),l(5,c=Object.entries(b).filter((([e,t])=>"_"!==e[0]&&"class"!==e))),32&n.$$.dirty[0]&&l(2,r=Object.fromEntries(c)),l(1,a=b.class?`${i} ${d.id} ${b.class}`:`${i} ${d.id}`)},[d,a,r,g,i,c,o,h,f,function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)}]}class ye extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,ge,e.safe_not_equal,{styleDefinition:0},null,[-1,-1,-1,-1])}}const $e=e=>{var t;return(t=class extends ye{constructor(t){super({...t,props:{...t.props,styleDefinition:e}})}}).styleDefinition=e,t},_e=(e,t)=>(n,...s)=>function(e,t,n,s,...l){if(Array.isArray(s)){const i=s,c=[Array.from(i),l],r=t(e,[c]);return n(r)}{const e=s;return(s,...l)=>{const i=[Array.from(s),l],c=t(e.styleDefinition.tag,[...e.styleDefinition.styles,i]);return n(c)}}}(e,t,$e,n,...s),ve=_e("div",re);s.forEach((e=>{ve[e]=_e(e,re)}));const ke=ve,we=_e(null,((e,t)=>({type:"global",id:"t"+l(t.reduce(((e,[t])=>e+t.join("")),"")),styles:t,tag:e})));exports.ThemeProvider=de,exports.component=ke,exports.createComponent=$e,exports.global=we,exports.keyframes=function(e,...t){const n=[Array.from(e),t];return{type:"keyframes",id:"teiler-"+l(e.join("")),styles:[n],tag:null}};
1
+ "use strict";var e=require("svelte/internal");require("svelte/internal/disclose-version");var t=require("svelte"),n=require("svelte/store"),s=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function l(e){let t,n=e.length,s=n,l=0;for(;n>=4;)t=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16)^t,n-=4,++l;switch(n){case 3:s^=(255&e.charCodeAt(l+2))<<16;case 2:s^=(255&e.charCodeAt(l+1))<<8;case 1:s^=255&e.charCodeAt(l),s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16)}return s^=s>>>13,s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16),s^=s>>>15,(s>>>0).toString(36)}const i=e=>(t,...n)=>{if("__pattern__"in t)return(e,...n)=>{const s=[Array.from(e),n],i=[...t.styles,s],c=i.reduce(((e,[t])=>e+t.join("")),"");return{styles:i,id:"t"+l(c),tag:t.tag,__pattern__:!0}};{const s=t,i=[[Array.from(s),n]],c=i.reduce(((e,[t])=>e+t.join("")),"");return{styles:i,id:"t"+l(c),tag:e,__pattern__:!0}}},c=i("div");s.forEach((e=>{c[e]=i(e)})),c.global=i(null);var r="-ms-",a="-moz-",u="-webkit-",o="comm",b="rule",f="decl",h="@import",d="@keyframes",p="@layer",g=Math.abs,m=String.fromCharCode,y=Object.assign;function $(e){return e.trim()}function _(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,n){return e.replace(t,n)}function k(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function x(e,t,n){return e.slice(t,n)}function j(e){return e.length}function C(e){return e.length}function A(e,t){return t.push(e),e}function D(e,t){return e.filter((function(e){return!_(e,t)}))}var E=1,R=1,q=0,O=0,S=0,z="";function T(e,t,n,s,l,i,c,r){return{value:e,root:t,parent:n,type:s,props:l,children:i,line:E,column:R,length:c,return:"",siblings:r}}function N(e,t){return y(T("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function M(e){for(;e.root;)e=N(e.root,{children:[e]});A(e,e.siblings)}function P(){return S=O<q?w(z,O++):0,R++,10===S&&(R=1,E++),S}function G(){return w(z,O)}function H(){return O}function I(e,t){return x(z,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return $(I(O-1,J(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(S=G())&&S<33;)P();return L(e)>2||L(S)>3?"":" "}function F(e,t){for(;--t&&P()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return I(e,H()+(t<6&&32==G()&&32==P()))}function J(e){for(;P();)switch(S){case e:return O;case 34:case 39:34!==e&&39!==e&&J(S);break;case 40:41===e&&J(e);break;case 92:P()}return O}function K(e,t){for(;P()&&e+S!==57&&(e+S!==84||47!==G()););return"/*"+I(t,O-1)+"*"+m(47===e?e:P())}function Q(e){for(;!L(G());)P();return I(e,O)}function U(e){return function(e){return z="",e}(V("",null,null,null,[""],(E=R=1,q=j(z=e),O=0,e=[]),0,[0],e))}function V(e,t,n,s,l,i,c,r,a){for(var u=0,o=0,b=c,f=0,h=0,d=0,p=1,y=1,$=1,_=0,x="",C=l,D=i,q=s,T=x;y;)switch(d=_,_=P()){case 40:if(108!=d&&58==w(T,b-1)){-1!=k(T+=v(Y(_),"&","&\f"),"&\f",g(u?r[u-1]:0))&&($=-1);break}case 34:case 39:case 91:T+=Y(_);break;case 9:case 10:case 13:case 32:T+=B(d);break;case 92:T+=F(H()-1,7);continue;case 47:switch(G()){case 42:case 47:A(X(K(P(),H()),t,n,a),a);break;default:T+="/"}break;case 123*p:r[u++]=j(T)*$;case 125*p:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+o:-1==$&&(T=v(T,/\f/g,"")),h>0&&j(T)-b&&A(h>32?Z(T+";",s,n,b-1,a):Z(v(T," ","")+";",s,n,b-2,a),a);break;case 59:T+=";";default:if(A(q=W(T,t,n,u,o,l,r,x,C=[],D=[],b,i),i),123===_)if(0===o)V(T,t,q,q,C,i,b,r,D);else switch(99===f&&110===w(T,3)?100:f){case 100:case 108:case 109:case 115:V(e,q,q,s&&A(W(e,q,q,0,0,l,r,x,l,C=[],b,D),D),l,D,b,r,s?C:D);break;default:V(T,q,q,q,[""],D,0,r,D)}}u=o=h=0,p=$=1,x=T="",b=c;break;case 58:b=1+j(T),h=d;default:if(p<1)if(123==_)--p;else if(125==_&&0==p++&&125==(S=O>0?w(z,--O):0,R--,10===S&&(R=1,E--),S))continue;switch(T+=m(_),_*p){case 38:$=o>0?1:(T+="\f",-1);break;case 44:r[u++]=(j(T)-1)*$,$=1;break;case 64:45===G()&&(T+=Y(P())),f=G(),o=b=j(x=T+=Q(H())),_++;break;case 45:45===d&&2==j(T)&&(p=0)}}return i}function W(e,t,n,s,l,i,c,r,a,u,o,f){for(var h=l-1,d=0===l?i:[""],p=C(d),m=0,y=0,_=0;m<s;++m)for(var k=0,w=x(e,h+1,h=g(y=c[m])),j=e;k<p;++k)(j=$(y>0?d[k]+" "+w:v(w,/&\f/g,d[k])))&&(a[_++]=j);return T(e,t,n,0===l?b:r,a,u,o,f)}function X(e,t,n,s){return T(e,t,n,o,m(S),x(e,2,-2),0,s)}function Z(e,t,n,s,l){return T(e,t,n,f,x(e,0,s),x(e,s+1,-1),s,l)}function ee(e,t,n){switch(l=t,45^w(s=e,0)?(((l<<2^w(s,0))<<2^w(s,1))<<2^w(s,2))<<2^w(s,3):0){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 4789:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+a+e+r+e+e;case 5936:switch(w(e,t+11)){case 114:return u+e+r+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+r+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+r+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return u+e+r+e+e;case 6165:return u+e+r+"flex-"+e+e;case 5187:return u+e+v(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+r+"flex-$1$2")+e;case 5443:return u+e+r+"flex-item-"+v(e,/flex-|-self/g,"")+(_(e,/flex-|baseline/)?"":r+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return u+e+r+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return u+e+r+v(e,"shrink","negative")+e;case 5292:return u+e+r+v(e,"basis","preferred-size")+e;case 6060:return u+"box-"+v(e,"-grow","")+u+e+r+v(e,"grow","positive")+e;case 4554:return u+v(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4200:if(!_(e,/flex-|baseline/))return r+"grid-column-align"+x(e,t)+e;break;case 2592:case 3360:return r+v(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,_(e.props,/grid-\w+-end/)}))?~k(e+(n=n[t].value),"span",0)?e:r+v(e,"-start","")+e+r+"grid-row-span:"+(~k(n,"span",0)?_(n,/\d+/):+_(n,/\d+/)-+_(e,/\d+/))+";":r+v(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return _(e.props,/grid-\w+-start/)}))?e:r+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(j(e)-1-t>6)switch(w(e,t+1)){case 109:if(45!==w(e,t+4))break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+a+(108==w(e,t+3)?"$3":"$2-$3"))+e;case 115:return~k(e,"stretch",0)?ee(v(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,s,l,i,c,a){return r+n+":"+s+a+(l?r+n+"-span:"+(i?c:+c-+s)+a:"")+e}));case 4949:if(121===w(e,t+6))return v(e,":",":"+u)+e;break;case 6444:switch(w(e,45===w(e,14)?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===w(e,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+r+"$2box$3")+e;case 100:return v(e,":",":"+r)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}var s,l;return e}function te(e,t){for(var n="",s=0;s<e.length;s++)n+=t(e[s],s,e,t)||"";return n}function ne(e,t,n,s){switch(e.type){case p:if(e.children.length)break;case h:case f:return e.return=e.return||e.value;case o:return"";case d:return e.return=e.value+"{"+te(e.children,s)+"}";case b:if(!j(e.value=e.props.join(",")))return""}return j(n=te(e.children,s))?e.return=e.value+"{"+n+"}":""}function se(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case f:return void(e.return=ee(e.value,e.length,n));case d:return te([N(e,{value:v(e.value,"@","@"+u)})],s);case b:if(e.length)return(n=e.props).map((function(t){switch(_(t,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":M(N(e,{props:[v(t,/:(read-\w+)/,":"+a+"$1")]})),M(N(e,{props:[t]})),y(e,{props:D(n,s)});break;case"::placeholder":M(N(e,{props:[v(t,/:(plac\w+)/,":"+u+"input-$1")]})),M(N(e,{props:[v(t,/:(plac\w+)/,":"+a+"$1")]})),M(N(e,{props:[v(t,/:(plac\w+)/,r+"input-$1")]})),M(N(e,{props:[t]})),y(e,{props:D(n,s)})}return""})).join("")}}const le=e=>null==e||!1===e||""===e;function ie(e,t){return e.reduce(((e,[n,s])=>{const l=n.reduce(((n,l,i)=>{n=[...n,l];const c=s.at(i);if(c){let s=null;if("object"!=typeof c&&"function"!=typeof c||!("styleDefinition"in c))if("function"==typeof c){const n=c(t);if("object"==typeof n&&"__css__"in n){const{css:l,definitions:i}=ie(n.styles,t);e.definitions=[...e.definitions,...i],s=l}else"string"==typeof n&&n.includes("[object Object]")&&console.error("[teiler]","If you trying to use nested component/pattern selector inside function use function `css`, sample: \n${({ someProperty }) => css`${NastedComponent} {...}`}"),s=n}else if("object"==typeof c&&"__pattern__"in c)s="."+c.id;else if("object"==typeof c){const t=c;e.definitions=[...e.definitions,t],s=t.id}else s=c;else{const t=c.styleDefinition;e.definitions=[...e.definitions,t],s="."+t.id}!1===le(s)&&(n=[...n,s])}return n}),[]).join("");return e.css=e.css+l,e}),{css:"",definitions:[]})}function ce(e){const t=[];var n,s,l;return te(U(e),(s=[ne,se,(n=e=>{t.push(e)},function(e){e.root||(e=e.return)&&n(e)})],l=C(s),function(e,t,n,i){for(var c="",r=0;r<l;r++)c+=s[r](e,t,n,i)||"";return c})),t.join(" ")}const re=(e,t)=>({type:"component",id:"t"+l(t.reduce(((e,[t])=>e+t.join("")),"")),styles:t,tag:e});function ae(e,t,n){const{styles:s,type:i}=t,{css:c,definitions:r}=ie(s,n),a=l(c);if(r.forEach((t=>ae(e,t,n))),"component"===i){const t=ce(`.teiler-${a} { ${c} }`);return e.insert(a,t),`teiler-${a}`}if("keyframes"===i){const{id:n}=t,s=ce(`@keyframes ${n} { ${c} }`);e.insert(a,s)}else{const t=ce(`${c}`);e.insert(a,t)}return null}const ue=function(e){const t={...e},n="undefined"==typeof document?function(){const e={};return{insertRule:function(t,n){return e[t]=n,Object.keys(e).length},deleteRule:function(t){delete e[t]},getRule:function(t){return e[t]||null},getAllRules:function(){return Object.values(e).join(" ")}}}():function(e){const t=function(e){const t=document.head,n=e||t,s=document.createElement("style");return s.setAttribute("data-teiler",""),n.appendChild(s),s}(e),n=new Map;return{insertRule:function(e,s){const l=document.createTextNode(s);return!1===n.has(e)&&(n.set(e,l),t.appendChild(l)),n.size},deleteRule:function(e){t.removeChild(n.get(e)),n.delete(e)},getRule:function(e){return n.get(e)?.textContent||null},getAllRules:function(){return Array.from(n.values()).reduce(((e,t)=>e+" "+t.textContent),"")}}}(t.container);return{insert:(e,t)=>n.insertRule(e,t),dump:()=>n.getAllRules()}}({}),oe="STYLE_SHEET";function be(t){let n;const s=t[2].default,l=e.create_slot(s,t,t[1],null);return{c(){l&&l.c()},m(e,t){l&&l.m(e,t),n=!0},p(t,[i]){l&&l.p&&(!n||2&i)&&e.update_slot_base(l,s,t,t[1],n?e.get_slot_changes(s,t[1],i,null):e.get_all_dirty_from_scope(t[1]),null)},i(t){n||(e.transition_in(l,t),n=!0)},o(t){e.transition_out(l,t),n=!1},d(e){l&&l.d(e)}}}const fe="THEME";function he(e,s,l){let{$$slots:i={},$$scope:c}=s,{theme:r}=s;const a=n.writable(r);return t.setContext(fe,a),e.$$set=e=>{"theme"in e&&l(0,r=e.theme),"$$scope"in e&&l(1,c=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&a.set(r)},[r,c,i]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,he,be,e.safe_not_equal,{theme:0})}}function pe(t){let n,s,l,i;const c=t[8].default,r=e.create_slot(c,t,t[7],null);let a=[{class:t[1]},t[2]],u={};for(let t=0;t<a.length;t+=1)u=e.assign(u,a[t]);return{c(){n=e.element(t[0].tag),r&&r.c(),e.set_dynamic_element_data(t[0].tag)(n,u)},m(c,a){e.insert(c,n,a),r&&r.m(n,null),s=!0,l||(i=[e.listen(n,"copy",t[9]),e.listen(n,"cut",t[10]),e.listen(n,"paste",t[11]),e.listen(n,"compositionend",t[12]),e.listen(n,"compositionstart",t[13]),e.listen(n,"compositionupdate",t[14]),e.listen(n,"focus",t[15]),e.listen(n,"focusin",t[16]),e.listen(n,"focusout",t[17]),e.listen(n,"blur",t[18]),e.listen(n,"change",t[19]),e.listen(n,"beforeinput",t[20]),e.listen(n,"input",t[21]),e.listen(n,"reset",t[22]),e.listen(n,"submit",t[23]),e.listen(n,"invalid",t[24]),e.listen(n,"formdata",t[25]),e.listen(n,"load",t[26]),e.listen(n,"error",t[27]),e.listen(n,"beforetoggle",t[28]),e.listen(n,"toggle",t[29]),e.listen(n,"keydown",t[30]),e.listen(n,"keypress",t[31]),e.listen(n,"keyup",t[32]),e.listen(n,"abort",t[33]),e.listen(n,"canplay",t[34]),e.listen(n,"canplaythrough",t[35]),e.listen(n,"cuechange",t[36]),e.listen(n,"durationchange",t[37]),e.listen(n,"emptied",t[38]),e.listen(n,"encrypted",t[39]),e.listen(n,"ended",t[40]),e.listen(n,"loadeddata",t[41]),e.listen(n,"loadedmetadata",t[42]),e.listen(n,"loadstart",t[43]),e.listen(n,"pause",t[44]),e.listen(n,"play",t[45]),e.listen(n,"playing",t[46]),e.listen(n,"progress",t[47]),e.listen(n,"ratechange",t[48]),e.listen(n,"seeked",t[49]),e.listen(n,"seeking",t[50]),e.listen(n,"stalled",t[51]),e.listen(n,"suspend",t[52]),e.listen(n,"timeupdate",t[53]),e.listen(n,"volumechange",t[54]),e.listen(n,"waiting",t[55]),e.listen(n,"auxclick",t[56]),e.listen(n,"click",t[57]),e.listen(n,"contextmenu",t[58]),e.listen(n,"dblclick",t[59]),e.listen(n,"drag",t[60]),e.listen(n,"dragend",t[61]),e.listen(n,"dragenter",t[62]),e.listen(n,"dragexit",t[63]),e.listen(n,"dragleave",t[64]),e.listen(n,"dragover",t[65]),e.listen(n,"dragstart",t[66]),e.listen(n,"drop",t[67]),e.listen(n,"mousedown",t[68]),e.listen(n,"mouseenter",t[69]),e.listen(n,"mouseleave",t[70]),e.listen(n,"mousemove",t[71]),e.listen(n,"mouseout",t[72]),e.listen(n,"mouseover",t[73]),e.listen(n,"mouseup",t[74]),e.listen(n,"select",t[75]),e.listen(n,"selectionchange",t[76]),e.listen(n,"selectstart",t[77]),e.listen(n,"touchcancel",t[78]),e.listen(n,"touchend",t[79]),e.listen(n,"touchmove",t[80]),e.listen(n,"touchstart",t[81]),e.listen(n,"gotpointercapture",t[82]),e.listen(n,"pointercancel",t[83]),e.listen(n,"pointerdown",t[84]),e.listen(n,"pointerenter",t[85]),e.listen(n,"pointerleave",t[86]),e.listen(n,"pointermove",t[87]),e.listen(n,"pointerout",t[88]),e.listen(n,"pointerover",t[89]),e.listen(n,"pointerup",t[90]),e.listen(n,"lostpointercapture",t[91]),e.listen(n,"gamepadconnected",t[92]),e.listen(n,"gamepaddisconnected",t[93]),e.listen(n,"scroll",t[94]),e.listen(n,"scrollend",t[95]),e.listen(n,"resize",t[96]),e.listen(n,"wheel",t[97]),e.listen(n,"animationstart",t[98]),e.listen(n,"animationend",t[99]),e.listen(n,"animationiteration",t[100]),e.listen(n,"transitionstart",t[101]),e.listen(n,"transitionrun",t[102]),e.listen(n,"transitionend",t[103]),e.listen(n,"transitioncancel",t[104]),e.listen(n,"outrostart",t[105]),e.listen(n,"outroend",t[106]),e.listen(n,"introstart",t[107]),e.listen(n,"introend",t[108]),e.listen(n,"message",t[109]),e.listen(n,"messageerror",t[110]),e.listen(n,"visibilitychange",t[111]),e.listen(n,"cancel",t[112]),e.listen(n,"close",t[113]),e.listen(n,"fullscreenchange",t[114]),e.listen(n,"fullscreenerror",t[115])],l=!0)},p(t,l){r&&r.p&&(!s||128&l[0])&&e.update_slot_base(r,c,t,t[7],s?e.get_slot_changes(c,t[7],l,null):e.get_all_dirty_from_scope(t[7]),null),e.set_dynamic_element_data(t[0].tag)(n,u=e.get_spread_update(a,[(!s||2&l[0])&&{class:t[1]},4&l[0]&&t[2]]))},i(t){s||(e.transition_in(r,t),s=!0)},o(t){e.transition_out(r,t),s=!1},d(t){t&&e.detach(n),r&&r.d(t),l=!1,e.run_all(i)}}}function ge(t){let n,s,l=t[0].tag,i=t[0].tag&&pe(t);return{c(){i&&i.c(),n=e.empty()},m(t,l){i&&i.m(t,l),e.insert(t,n,l),s=!0},p(t,s){t[0].tag?l?e.safe_not_equal(l,t[0].tag)?(i.d(1),i=pe(t),l=t[0].tag,i.c(),i.m(n.parentNode,n)):i.p(t,s):(i=pe(t),l=t[0].tag,i.c(),i.m(n.parentNode,n)):l&&(i.d(1),i=null,l=t[0].tag)},i(t){s||(e.transition_in(i,t),s=!0)},o(t){e.transition_out(i,t),s=!1},d(t){t&&e.detach(n),i&&i.d(t)}}}function me(n,s,l){let i,c,r,a;const u=["styleDefinition"];let o,b=e.compute_rest_props(s,u),{$$slots:f={},$$scope:h}=s,{styleDefinition:d}=s;const p=t.getContext(oe)||ue,g=t.getContext(fe);return e.component_subscribe(n,g,(e=>l(6,o=e))),n.$$set=t=>{s=e.assign(e.assign({},s),e.exclude_internal_props(t)),l(117,b=e.compute_rest_props(s,u)),"styleDefinition"in t&&l(0,d=t.styleDefinition),"$$scope"in t&&l(7,h=t.$$scope)},n.$$.update=()=>{l(4,i=ae(p,d,{...b,theme:o})),l(5,c=Object.entries(b).filter((([e,t])=>"_"!==e[0]&&"class"!==e))),32&n.$$.dirty[0]&&l(2,r=Object.fromEntries(c)),l(1,a=b.class?`${i} ${d.id} ${b.class}`:`${i} ${d.id}`)},[d,a,r,g,i,c,o,h,f,function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)}]}class ye extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,ge,e.safe_not_equal,{styleDefinition:0},null,[-1,-1,-1,-1])}}const $e=e=>{var t;return(t=class extends ye{constructor(t){super({...t,props:{...t.props,styleDefinition:e}})}}).styleDefinition=e,t},_e=(e,t)=>(n,...s)=>function(e,t,n,s,...l){if(Array.isArray(s)){const i=s,c=[Array.from(i),l],r=t(e,[c]);return n(r)}{const e=s;return(s,...l)=>{const i=[Array.from(s),l],c=t(e.styleDefinition.tag,[...e.styleDefinition.styles,i]);return n(c)}}}(e,t,$e,n,...s),ve=_e("div",re);s.forEach((e=>{ve[e]=_e(e,re)}));const ke=ve,we=_e(null,((e,t)=>({type:"global",id:"t"+l(t.reduce(((e,[t])=>e+t.join("")),"")),styles:t,tag:e})));exports.ThemeProvider=de,exports.component=ke,exports.createComponent=$e,exports.global=we,exports.keyframes=function(e,...t){const n=[Array.from(e),t];return{type:"keyframes",id:"teiler-"+l(e.join("")),styles:[n],tag:null}};
2
2
  //# sourceMappingURL=teiler-svelte.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"teiler-svelte.cjs.js","sources":["../../core/dist/teiler-core.esm.js","../src/sheet.ts","../src/ThemeProvider.svelte","../src/Styled.svelte","../src/component.ts"],"sourcesContent":["var e=new Set([\"a\",\"abbr\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"base\",\"bdi\",\"bdo\",\"big\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"cite\",\"code\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"keygen\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"menu\",\"menuitem\",\"meta\",\"meter\",\"nav\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"section\",\"select\",\"small\",\"source\",\"span\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"tr\",\"track\",\"u\",\"ul\",\"use\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"marker\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"tspan\"]);function t(e){const t=function(e){const t=document.head,n=e||t,r=document.createElement(\"style\");return r.setAttribute(\"data-teiler\",\"\"),n.appendChild(r),r}(e),n=new Map;return{insertRule:function(e,r){const s=document.createTextNode(r);return!1===n.has(e)&&(n.set(e,s),t.appendChild(s)),n.size},deleteRule:function(e){t.removeChild(n.get(e)),n.delete(e)},getRule:function(e){return n.get(e)?.textContent||null},getAllRules:function(){return Array.from(n.values()).reduce(((e,t)=>e+\" \"+t.textContent),\"\")}}}function n(e){const n={...e},r=\"undefined\"==typeof document?function(){const e={};return{insertRule:function(t,n){return e[t]=n,Object.keys(e).length},deleteRule:function(t){delete e[t]},getRule:function(t){return e[t]||null},getAllRules:function(){return Object.values(e).join(\" \")}}}():t(n.container);return{insert:(e,t)=>r.insertRule(e,t),dump:()=>r.getAllRules()}}function r(e){let t,n=e.length,r=n,s=0;for(;n>=4;)t=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^t,n-=4,++s;switch(n){case 3:r^=(255&e.charCodeAt(s+2))<<16;case 2:r^=(255&e.charCodeAt(s+1))<<8;case 1:r^=255&e.charCodeAt(s),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,(r>>>0).toString(36)}const s=e=>(t,...n)=>{if(\"__pattern__\"in t)return(e,...n)=>{const s=[Array.from(e),n],c=[...t.styles,s],a=c.reduce(((e,[t])=>e+t.join(\"\")),\"\");return{styles:c,id:\"t\"+r(a),tag:t.tag,__pattern__:!0}};{const s=t,c=[[Array.from(s),n]],a=c.reduce(((e,[t])=>e+t.join(\"\")),\"\");return{styles:c,id:\"t\"+r(a),tag:e,__pattern__:!0}}},c=s(\"div\");e.forEach((e=>{c[e]=s(e)})),c.global=s(null);const a=c;function i(e,t){return t({type:null===e.tag?\"global\":\"component\",id:e.id,styles:e.styles,tag:e.tag})}var o=\"-ms-\",u=\"-moz-\",l=\"-webkit-\",f=\"comm\",d=\"rule\",p=\"decl\",g=\"@import\",b=\"@keyframes\",h=\"@layer\",m=Math.abs,y=String.fromCharCode,$=Object.assign;function k(e){return e.trim()}function v(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,n){return e.replace(t,n)}function x(e,t,n){return e.indexOf(t,n)}function _(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function A(e){return e.length}function C(e){return e.length}function R(e,t){return t.push(e),e}function O(e,t){return e.filter((function(e){return!v(e,t)}))}var z=1,D=1,E=0,S=0,q=0,G=\"\";function M(e,t,n,r,s,c,a,i){return{value:e,root:t,parent:n,type:r,props:s,children:c,line:z,column:D,length:a,return:\"\",siblings:i}}function N(e,t){return $(M(\"\",null,null,\"\",null,null,0,e.siblings),e,{length:-e.length},t)}function P(e){for(;e.root;)e=N(e.root,{children:[e]});R(e,e.siblings)}function I(){return q=S>0?_(G,--S):0,D--,10===q&&(D=1,z--),q}function T(){return q=S<E?_(G,S++):0,D++,10===q&&(D=1,z++),q}function B(){return _(G,S)}function F(){return S}function H(e,t){return j(G,e,t)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K(e){return k(H(S-1,U(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(q=B())&&q<33;)T();return J(e)>2||J(q)>3?\"\":\" \"}function Q(e,t){for(;--t&&T()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return H(e,F()+(t<6&&32==B()&&32==T()))}function U(e){for(;T();)switch(q){case e:return S;case 34:case 39:34!==e&&39!==e&&U(q);break;case 40:41===e&&U(e);break;case 92:T()}return S}function V(e,t){for(;T()&&e+q!==57&&(e+q!==84||47!==B()););return\"/*\"+H(t,S-1)+\"*\"+y(47===e?e:T())}function W(e){for(;!J(B());)T();return H(e,S)}function X(e){return function(e){return G=\"\",e}(Y(\"\",null,null,null,[\"\"],e=function(e){return z=D=1,E=A(G=e),S=0,[]}(e),0,[0],e))}function Y(e,t,n,r,s,c,a,i,o){for(var u=0,l=0,f=a,d=0,p=0,g=0,b=1,h=1,$=1,k=0,v=\"\",j=s,C=c,O=r,z=v;h;)switch(g=k,k=T()){case 40:if(108!=g&&58==_(z,f-1)){-1!=x(z+=w(K(k),\"&\",\"&\\f\"),\"&\\f\",m(u?i[u-1]:0))&&($=-1);break}case 34:case 39:case 91:z+=K(k);break;case 9:case 10:case 13:case 32:z+=L(g);break;case 92:z+=Q(F()-1,7);continue;case 47:switch(B()){case 42:case 47:R(ee(V(T(),F()),t,n,o),o);break;default:z+=\"/\"}break;case 123*b:i[u++]=A(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:h=0;case 59+l:-1==$&&(z=w(z,/\\f/g,\"\")),p>0&&A(z)-f&&R(p>32?te(z+\";\",r,n,f-1,o):te(w(z,\" \",\"\")+\";\",r,n,f-2,o),o);break;case 59:z+=\";\";default:if(R(O=Z(z,t,n,u,l,s,i,v,j=[],C=[],f,c),c),123===k)if(0===l)Y(z,t,O,O,j,c,f,i,C);else switch(99===d&&110===_(z,3)?100:d){case 100:case 108:case 109:case 115:Y(e,O,O,r&&R(Z(e,O,O,0,0,s,i,v,s,j=[],f,C),C),s,C,f,i,r?j:C);break;default:Y(z,O,O,O,[\"\"],C,0,i,C)}}u=l=p=0,b=$=1,v=z=\"\",f=a;break;case 58:f=1+A(z),p=g;default:if(b<1)if(123==k)--b;else if(125==k&&0==b++&&125==I())continue;switch(z+=y(k),k*b){case 38:$=l>0?1:(z+=\"\\f\",-1);break;case 44:i[u++]=(A(z)-1)*$,$=1;break;case 64:45===B()&&(z+=K(T())),d=B(),l=f=A(v=z+=W(F())),k++;break;case 45:45===g&&2==A(z)&&(b=0)}}return c}function Z(e,t,n,r,s,c,a,i,o,u,l,f){for(var p=s-1,g=0===s?c:[\"\"],b=C(g),h=0,y=0,$=0;h<r;++h)for(var v=0,x=j(e,p+1,p=m(y=a[h])),_=e;v<b;++v)(_=k(y>0?g[v]+\" \"+x:w(x,/&\\f/g,g[v])))&&(o[$++]=_);return M(e,t,n,0===s?d:i,o,u,l,f)}function ee(e,t,n,r){return M(e,t,n,f,y(q),j(e,2,-2),0,r)}function te(e,t,n,r,s){return M(e,t,n,p,j(e,0,r),j(e,r+1,-1),r,s)}function ne(e,t,n){switch(function(e,t){return 45^_(e,0)?(((t<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}(e,t)){case 5103:return l+\"print-\"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return l+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+u+e+o+e+e;case 5936:switch(_(e,t+11)){case 114:return l+e+o+w(e,/[svh]\\w+-[tblr]{2}/,\"tb\")+e;case 108:return l+e+o+w(e,/[svh]\\w+-[tblr]{2}/,\"tb-rl\")+e;case 45:return l+e+o+w(e,/[svh]\\w+-[tblr]{2}/,\"lr\")+e}case 6828:case 4268:case 2903:return l+e+o+e+e;case 6165:return l+e+o+\"flex-\"+e+e;case 5187:return l+e+w(e,/(\\w+).+(:[^]+)/,l+\"box-$1$2\"+o+\"flex-$1$2\")+e;case 5443:return l+e+o+\"flex-item-\"+w(e,/flex-|-self/g,\"\")+(v(e,/flex-|baseline/)?\"\":o+\"grid-row-\"+w(e,/flex-|-self/g,\"\"))+e;case 4675:return l+e+o+\"flex-line-pack\"+w(e,/align-content|flex-|-self/g,\"\")+e;case 5548:return l+e+o+w(e,\"shrink\",\"negative\")+e;case 5292:return l+e+o+w(e,\"basis\",\"preferred-size\")+e;case 6060:return l+\"box-\"+w(e,\"-grow\",\"\")+l+e+o+w(e,\"grow\",\"positive\")+e;case 4554:return l+w(e,/([^-])(transform)/g,\"$1\"+l+\"$2\")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,l+\"$1\"),/(image-set)/,l+\"$1\"),e,\"\")+e;case 5495:case 3959:return w(e,/(image-set\\([^]*)/,l+\"$1$`$1\");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,l+\"box-pack:$3\"+o+\"flex-pack:$3\"),/s.+-b[^;]+/,\"justify\")+l+e+e;case 4200:if(!v(e,/flex-|baseline/))return o+\"grid-column-align\"+j(e,t)+e;break;case 2592:case 3360:return o+w(e,\"template-\",\"\")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,v(e.props,/grid-\\w+-end/)}))?~x(e+(n=n[t].value),\"span\",0)?e:o+w(e,\"-start\",\"\")+e+o+\"grid-row-span:\"+(~x(n,\"span\",0)?v(n,/\\d+/):+v(n,/\\d+/)-+v(e,/\\d+/))+\";\":o+w(e,\"-start\",\"\")+e;case 4896:case 4128:return n&&n.some((function(e){return v(e.props,/grid-\\w+-start/)}))?e:o+w(w(e,\"-end\",\"-span\"),\"span \",\"\")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,l+\"$1$2\")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(e)-1-t>6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,\"$1\"+l+\"$2-$3$1\"+u+(108==_(e,t+3)?\"$3\":\"$2-$3\"))+e;case 115:return~x(e,\"stretch\",0)?ne(w(e,\"stretch\",\"fill-available\"),t,n)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\\d+)(\\s*\\/\\s*(span)?\\s*(\\d+))?(.*)/,(function(t,n,r,s,c,a,i){return o+n+\":\"+r+i+(s?o+n+\"-span:\"+(c?a:+a-+r)+i:\"\")+e}));case 4949:if(121===_(e,t+6))return w(e,\":\",\":\"+l)+e;break;case 6444:switch(_(e,45===_(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\\s!]+)(;|(\\s+)?!.+)?/,\"$1\"+l+(45===_(e,14)?\"inline-\":\"\")+\"box$3$1\"+l+\"$2$3$1\"+o+\"$2box$3\")+e;case 100:return w(e,\":\",\":\"+o)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,\"scroll-\",\"scroll-snap-\")+e}return e}function re(e,t){for(var n=\"\",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||\"\";return n}function se(e,t,n,r){switch(e.type){case h:if(e.children.length)break;case g:case p:return e.return=e.return||e.value;case f:return\"\";case b:return e.return=e.value+\"{\"+re(e.children,r)+\"}\";case d:if(!A(e.value=e.props.join(\",\")))return\"\"}return A(n=re(e.children,r))?e.return=e.value+\"{\"+n+\"}\":\"\"}function ce(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case p:return void(e.return=ne(e.value,e.length,n));case b:return re([N(e,{value:w(e.value,\"@\",\"@\"+l)})],r);case d:if(e.length)return function(e,t){return e.map(t).join(\"\")}(n=e.props,(function(t){switch(v(t,r=/(::plac\\w+|:read-\\w+)/)){case\":read-only\":case\":read-write\":P(N(e,{props:[w(t,/:(read-\\w+)/,\":\"+u+\"$1\")]})),P(N(e,{props:[t]})),$(e,{props:O(n,r)});break;case\"::placeholder\":P(N(e,{props:[w(t,/:(plac\\w+)/,\":\"+l+\"input-$1\")]})),P(N(e,{props:[w(t,/:(plac\\w+)/,\":\"+u+\"$1\")]})),P(N(e,{props:[w(t,/:(plac\\w+)/,o+\"input-$1\")]})),P(N(e,{props:[t]})),$(e,{props:O(n,r)})}return\"\"}))}}const ae=e=>null==e||!1===e||\"\"===e;function ie(e,t){return e.reduce(((e,[n,r])=>{const s=n.reduce(((n,s,c)=>{n=[...n,s];const a=r.at(c);if(a){let r=null;if(\"function\"==typeof a)if(\"styleDefinition\"in a){const t=a.styleDefinition;e.definitions=[...e.definitions,t],r=\".\"+t.id}else{const n=a(t);if(\"object\"==typeof n&&\"__css__\"in n){const{css:s,definitions:c}=ie(n.styles,t);e.definitions=[...e.definitions,...c],r=s}else\"string\"==typeof n&&n.includes(\"[object Object]\")&&console.error(\"[teiler]\",\"If you trying to use nested component/pattern selector inside function use function `css`, sample: \\n${({ someProperty }) => css`${NastedComponent} {...}`}\"),r=n}else if(\"object\"==typeof a&&\"__pattern__\"in a){r=\".\"+a.id}else if(\"object\"==typeof a){const t=a;e.definitions=[...e.definitions,t],r=t.id}else r=a;!1===ae(r)&&(n=[...n,r])}return n}),[]).join(\"\");return e.css=e.css+s,e}),{css:\"\",definitions:[]})}function oe(e){const t=[];var n;return re(X(e),function(e){var t=C(e);return function(n,r,s,c){for(var a=\"\",i=0;i<t;i++)a+=e[i](n,r,s,c)||\"\";return a}}([se,ce,(n=e=>{t.push(e)},function(e){e.root||(e=e.return)&&n(e)})])),t.join(\" \")}function ue(e,t,n,r,...s){if(Array.isArray(r)){const c=r,a=[Array.from(c),s],i=t(e,[a]);return n(i)}{const e=r;return(r,...s)=>{const c=[Array.from(r),s],a=t(e.styleDefinition.tag,[...e.styleDefinition.styles,c]);return n(a)}}}const le=(e,t)=>({type:\"component\",id:\"t\"+r(t.reduce(((e,[t])=>e+t.join(\"\")),\"\")),styles:t,tag:e}),fe=(e,t)=>({type:\"global\",id:\"t\"+r(t.reduce(((e,[t])=>e+t.join(\"\")),\"\")),styles:t,tag:e});function de(e,...t){const n=[Array.from(e),t];return{type:\"keyframes\",id:\"teiler-\"+r(e.join(\"\")),styles:[n],tag:null}}function pe(e,...t){const n=[[Array.from(e),t]],s=n.reduce(((e,[t])=>e+t.join(\"\")),\"\");return{styles:n,id:\"t\"+r(s),__css__:!0}}function ge(e,t,n){const{styles:s,type:c}=t,{css:a,definitions:i}=ie(s,n),o=r(a);if(i.forEach((t=>ge(e,t,n))),\"component\"===c){const t=oe(`.teiler-${o} { ${a} }`);return e.insert(o,t),`teiler-${o}`}if(\"keyframes\"===c){const{id:n}=t,r=oe(`@keyframes ${n} { ${a} }`);e.insert(o,r)}else{const t=oe(`${a}`);e.insert(o,t)}return null}export{le as component,n as createStyleSheet,pe as css,fe as global,ge as insert,de as keyframes,a as pattern,i as sew,ue as styled,e as tags};\n//# sourceMappingURL=teiler-core.esm.js.map\n","import { type Sheet, createStyleSheet } from '@teiler/core'\nimport { getContext } from 'svelte'\n\nexport const styleSheet = createStyleSheet({})\n\nexport const StyleSheet = 'STYLE_SHEET'\n\nexport function getStyleSheet(): Sheet {\n return getContext(StyleSheet) || styleSheet\n}\n","<script context=\"module\">\n export const context = 'THEME'\n</script>\n\n<script lang=\"ts\">\n import type { DefaultTheme } from '@teiler/core'\n import { setContext } from 'svelte'\n import { writable, type Writable } from 'svelte/store'\n\n export let theme: DefaultTheme\n\n const themeStore = writable<DefaultTheme>(theme)\n\n setContext<Writable<DefaultTheme>>(context, themeStore)\n\n $: themeStore.set(theme)\n</script>\n\n<slot />\n","<script lang=\"ts\">\n import type { DefaultTheme, HTMLElements, Sheet, StyleDefinition } from '@teiler/core'\n import type { Writable } from 'svelte/store'\n\n import { insert } from '@teiler/core'\n import { getStyleSheet } from './sheet'\n import { getContext } from 'svelte'\n import { context } from './ThemeProvider.svelte'\n\n export let styleDefinition: StyleDefinition<HTMLElements, unknown>\n\n const sheet: Sheet = getStyleSheet()\n\n const theme: Writable<DefaultTheme> = getContext(context)\n\n $: styleClassName = insert(sheet, styleDefinition, { ...$$restProps, theme: $theme })\n\n $: filtredPropsEntries = Object.entries($$restProps).filter(([key, _value]) => key[0] !== '_' && key !== 'class')\n $: filtredProps = Object.fromEntries(filtredPropsEntries)\n\n $: className = $$restProps.class ? `${styleClassName} ${styleDefinition.id} ${$$restProps.class}` : `${styleClassName} ${styleDefinition.id}`\n</script>\n\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<svelte:element\n this={styleDefinition.tag}\n class={className}\n {...filtredProps}\n on:copy\n on:cut\n on:paste\n on:compositionend\n on:compositionstart\n on:compositionupdate\n on:focus\n on:focusin\n on:focusout\n on:blur\n on:change\n on:beforeinput\n on:input\n on:reset\n on:submit\n on:invalid\n on:formdata\n on:load\n on:error\n on:beforetoggle\n on:toggle\n on:keydown\n on:keypress\n on:keyup\n on:abort\n on:canplay\n on:canplaythrough\n on:cuechange\n on:durationchange\n on:emptied\n on:encrypted\n on:ended\n on:loadeddata\n on:loadedmetadata\n on:loadstart\n on:pause\n on:play\n on:playing\n on:progress\n on:ratechange\n on:seeked\n on:seeking\n on:stalled\n on:suspend\n on:timeupdate\n on:volumechange\n on:waiting\n on:auxclick\n on:click\n on:contextmenu\n on:dblclick\n on:drag\n on:dragend\n on:dragenter\n on:dragexit\n on:dragleave\n on:dragover\n on:dragstart\n on:drop\n on:mousedown\n on:mouseenter\n on:mouseleave\n on:mousemove\n on:mouseout\n on:mouseover\n on:mouseup\n on:select\n on:selectionchange\n on:selectstart\n on:touchcancel\n on:touchend\n on:touchmove\n on:touchstart\n on:gotpointercapture\n on:pointercancel\n on:pointerdown\n on:pointerenter\n on:pointerleave\n on:pointermove\n on:pointerout\n on:pointerover\n on:pointerup\n on:lostpointercapture\n on:gamepadconnected\n on:gamepaddisconnected\n on:scroll\n on:scrollend\n on:resize\n on:wheel\n on:animationstart\n on:animationend\n on:animationiteration\n on:transitionstart\n on:transitionrun\n on:transitionend\n on:transitioncancel\n on:outrostart\n on:outroend\n on:introstart\n on:introend\n on:message\n on:messageerror\n on:visibilitychange\n on:cancel\n on:close\n on:fullscreenchange\n on:fullscreenerror><slot /></svelte:element\n>\n","import type { Compiler, HTMLElements, Properties, StyleDefinition, TeilerComponent } from '@teiler/core'\nimport type { ComponentType, SvelteComponent } from 'svelte'\n\nimport { component, global, keyframes, styled, tags } from '@teiler/core'\nimport Styled from './Styled.svelte'\n\ntype SvelteTeilerComponent<Target extends HTMLElements, Props> = TeilerComponent<Target, Props> & ComponentType<SvelteComponent>\n\nconst createComponent = <Target extends HTMLElements, Props>(styleDefinition: StyleDefinition<Target, Props>): SvelteTeilerComponent<Target, Props> => {\n return class extends Styled {\n static styleDefinition = styleDefinition\n\n constructor(options) {\n super({\n ...options,\n props: {\n ...options.props,\n styleDefinition,\n },\n })\n }\n }\n}\n\ntype InferProps<Component, Props> = Component extends SvelteTeilerComponent<HTMLElements, infer P> ? P & Props : Props\ntype InferComponent<Component, Props> = Component extends SvelteTeilerComponent<infer E, infer P> ? SvelteTeilerComponent<E, Props & P> : SvelteTeilerComponent<HTMLElements, Props>\n\ntype Component<Target extends HTMLElements> = {\n <Props extends object = {}>(string: TemplateStringsArray, ...properties: Properties<Props>[]): SvelteTeilerComponent<Target, Props>\n <Component>(binded: Component): <Props extends object = {}>(string: TemplateStringsArray, ...properties: Properties<InferProps<Component, Props>>[]) => InferComponent<Component, Props>\n}\n\ntype Global = {\n <Props extends object = {}>(string: TemplateStringsArray, ...properties: Properties<Props>[]): SvelteTeilerComponent<HTMLElements, Props>\n}\n\ntype ComponentWithTags = Component<'div'> & { [K in HTMLElements]: Component<K> }\n\nconst construct = (tag: HTMLElements, compiler: Compiler) => {\n return <Props extends object = {}>(stringOrBinded: TeilerComponent<HTMLElements, Props> | TemplateStringsArray, ...properties: Properties<Props>[]) => {\n return styled<Props, SvelteTeilerComponent<HTMLElements, Props>>(tag, compiler, createComponent, stringOrBinded, ...properties)\n }\n}\n\nconst baseComponent = construct('div', component)\n\ntags.forEach((tag) => {\n baseComponent[tag] = construct(tag, component)\n})\n\nconst svelteComponent = baseComponent as ComponentWithTags\n\nconst svelteGlobal = construct(null, global) as Global\n\nexport { svelteComponent as component, svelteGlobal as global, keyframes, createComponent }\n"],"names":["e","Set","r","t","n","length","s","charCodeAt","toString","Array","from","c","styles","a","reduce","join","id","tag","__pattern__","forEach","global","o","u","l","f","d","p","g","b","h","m","Math","abs","y","String","fromCharCode","$","Object","assign","k","trim","v","exec","w","replace","x","indexOf","_","j","slice","A","C","R","push","O","filter","z","D","E","S","q","G","M","i","value","root","parent","type","props","children","line","column","return","siblings","N","P","T","B","F","H","J","K","U","L","Q","V","W","X","Y","ee","te","Z","ne","some","re","se","ce","map","ae","ie","at","styleDefinition","definitions","css","includes","console","error","oe","le","ge","insert","styleSheet","document","insertRule","keys","deleteRule","getRule","getAllRules","values","head","createElement","setAttribute","appendChild","Map","createTextNode","has","set","size","removeChild","get","delete","textContent","container","dump","createStyleSheet","StyleSheet","context","svelte_element_levels","class","ctx","svelte_element","element","set_dynamic_element_data","svelte_element_data","insert_1","target","anchor","get_spread_update","previous_tag","create_dynamic_element","safe_not_equal","getContext","createComponent","_a","Styled","constructor","options","super","construct","compiler","stringOrBinded","properties","isArray","styled","baseComponent","component","tags","sv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K,CAACgE,KAAK,SAASnD,GAAG,IAAId,EAAEC,EAAEW,QAAQ,CAACd,GAAGG,KAAKH,EAAEG,EAAEY,KAAK,KAAK,KAAKH,OAAOT,EAAEc,IAAIjB,mHAAI,SAAYA,KAAKG,GAAG,MAAMC,EAAE,CAACK,MAAMC,KAAKV,GAAGG,GAAG,MAAM,CAACgE,KAAK,YAAYnD,GAAG,UAAUd,EAAEF,EAAEe,KAAK,KAAKH,OAAO,CAACR,GAAGa,IAAI,KAAK"}
1
+ {"version":3,"file":"teiler-svelte.cjs.js","sources":["../../core/dist/teiler-core.esm.js","../src/sheet.ts","../src/ThemeProvider.svelte","../src/Styled.svelte","../src/component.ts"],"sourcesContent":["var e=new Set([\"a\",\"abbr\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"base\",\"bdi\",\"bdo\",\"big\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"cite\",\"code\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"keygen\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"menu\",\"menuitem\",\"meta\",\"meter\",\"nav\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"section\",\"select\",\"small\",\"source\",\"span\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"tr\",\"track\",\"u\",\"ul\",\"use\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"marker\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"tspan\"]);function t(e){const t=function(e){const t=document.head,n=e||t,r=document.createElement(\"style\");return r.setAttribute(\"data-teiler\",\"\"),n.appendChild(r),r}(e),n=new Map;return{insertRule:function(e,r){const s=document.createTextNode(r);return!1===n.has(e)&&(n.set(e,s),t.appendChild(s)),n.size},deleteRule:function(e){t.removeChild(n.get(e)),n.delete(e)},getRule:function(e){return n.get(e)?.textContent||null},getAllRules:function(){return Array.from(n.values()).reduce(((e,t)=>e+\" \"+t.textContent),\"\")}}}function n(e){const n={...e},r=\"undefined\"==typeof document?function(){const e={};return{insertRule:function(t,n){return e[t]=n,Object.keys(e).length},deleteRule:function(t){delete e[t]},getRule:function(t){return e[t]||null},getAllRules:function(){return Object.values(e).join(\" \")}}}():t(n.container);return{insert:(e,t)=>r.insertRule(e,t),dump:()=>r.getAllRules()}}function r(e){let t,n=e.length,r=n,s=0;for(;n>=4;)t=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^t,n-=4,++s;switch(n){case 3:r^=(255&e.charCodeAt(s+2))<<16;case 2:r^=(255&e.charCodeAt(s+1))<<8;case 1:r^=255&e.charCodeAt(s),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,(r>>>0).toString(36)}const s=e=>(t,...n)=>{if(\"__pattern__\"in t)return(e,...n)=>{const s=[Array.from(e),n],c=[...t.styles,s],a=c.reduce(((e,[t])=>e+t.join(\"\")),\"\");return{styles:c,id:\"t\"+r(a),tag:t.tag,__pattern__:!0}};{const s=t,c=[[Array.from(s),n]],a=c.reduce(((e,[t])=>e+t.join(\"\")),\"\");return{styles:c,id:\"t\"+r(a),tag:e,__pattern__:!0}}},c=s(\"div\");e.forEach((e=>{c[e]=s(e)})),c.global=s(null);const a=c;function i(e,t){return t({type:null===e.tag?\"global\":\"component\",id:e.id,styles:e.styles,tag:e.tag})}var o=\"-ms-\",u=\"-moz-\",l=\"-webkit-\",f=\"comm\",d=\"rule\",p=\"decl\",g=\"@import\",b=\"@keyframes\",h=\"@layer\",m=Math.abs,y=String.fromCharCode,$=Object.assign;function k(e){return e.trim()}function v(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,n){return e.replace(t,n)}function x(e,t,n){return e.indexOf(t,n)}function _(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function A(e){return e.length}function C(e){return e.length}function R(e,t){return t.push(e),e}function O(e,t){return e.filter((function(e){return!v(e,t)}))}var z=1,D=1,E=0,S=0,q=0,G=\"\";function M(e,t,n,r,s,c,a,i){return{value:e,root:t,parent:n,type:r,props:s,children:c,line:z,column:D,length:a,return:\"\",siblings:i}}function N(e,t){return $(M(\"\",null,null,\"\",null,null,0,e.siblings),e,{length:-e.length},t)}function P(e){for(;e.root;)e=N(e.root,{children:[e]});R(e,e.siblings)}function I(){return q=S>0?_(G,--S):0,D--,10===q&&(D=1,z--),q}function T(){return q=S<E?_(G,S++):0,D++,10===q&&(D=1,z++),q}function B(){return _(G,S)}function F(){return S}function H(e,t){return j(G,e,t)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K(e){return k(H(S-1,U(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(q=B())&&q<33;)T();return J(e)>2||J(q)>3?\"\":\" \"}function Q(e,t){for(;--t&&T()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return H(e,F()+(t<6&&32==B()&&32==T()))}function U(e){for(;T();)switch(q){case e:return S;case 34:case 39:34!==e&&39!==e&&U(q);break;case 40:41===e&&U(e);break;case 92:T()}return S}function V(e,t){for(;T()&&e+q!==57&&(e+q!==84||47!==B()););return\"/*\"+H(t,S-1)+\"*\"+y(47===e?e:T())}function W(e){for(;!J(B());)T();return H(e,S)}function X(e){return function(e){return G=\"\",e}(Y(\"\",null,null,null,[\"\"],e=function(e){return z=D=1,E=A(G=e),S=0,[]}(e),0,[0],e))}function Y(e,t,n,r,s,c,a,i,o){for(var u=0,l=0,f=a,d=0,p=0,g=0,b=1,h=1,$=1,k=0,v=\"\",j=s,C=c,O=r,z=v;h;)switch(g=k,k=T()){case 40:if(108!=g&&58==_(z,f-1)){-1!=x(z+=w(K(k),\"&\",\"&\\f\"),\"&\\f\",m(u?i[u-1]:0))&&($=-1);break}case 34:case 39:case 91:z+=K(k);break;case 9:case 10:case 13:case 32:z+=L(g);break;case 92:z+=Q(F()-1,7);continue;case 47:switch(B()){case 42:case 47:R(ee(V(T(),F()),t,n,o),o);break;default:z+=\"/\"}break;case 123*b:i[u++]=A(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:h=0;case 59+l:-1==$&&(z=w(z,/\\f/g,\"\")),p>0&&A(z)-f&&R(p>32?te(z+\";\",r,n,f-1,o):te(w(z,\" \",\"\")+\";\",r,n,f-2,o),o);break;case 59:z+=\";\";default:if(R(O=Z(z,t,n,u,l,s,i,v,j=[],C=[],f,c),c),123===k)if(0===l)Y(z,t,O,O,j,c,f,i,C);else switch(99===d&&110===_(z,3)?100:d){case 100:case 108:case 109:case 115:Y(e,O,O,r&&R(Z(e,O,O,0,0,s,i,v,s,j=[],f,C),C),s,C,f,i,r?j:C);break;default:Y(z,O,O,O,[\"\"],C,0,i,C)}}u=l=p=0,b=$=1,v=z=\"\",f=a;break;case 58:f=1+A(z),p=g;default:if(b<1)if(123==k)--b;else if(125==k&&0==b++&&125==I())continue;switch(z+=y(k),k*b){case 38:$=l>0?1:(z+=\"\\f\",-1);break;case 44:i[u++]=(A(z)-1)*$,$=1;break;case 64:45===B()&&(z+=K(T())),d=B(),l=f=A(v=z+=W(F())),k++;break;case 45:45===g&&2==A(z)&&(b=0)}}return c}function Z(e,t,n,r,s,c,a,i,o,u,l,f){for(var p=s-1,g=0===s?c:[\"\"],b=C(g),h=0,y=0,$=0;h<r;++h)for(var v=0,x=j(e,p+1,p=m(y=a[h])),_=e;v<b;++v)(_=k(y>0?g[v]+\" \"+x:w(x,/&\\f/g,g[v])))&&(o[$++]=_);return M(e,t,n,0===s?d:i,o,u,l,f)}function ee(e,t,n,r){return M(e,t,n,f,y(q),j(e,2,-2),0,r)}function te(e,t,n,r,s){return M(e,t,n,p,j(e,0,r),j(e,r+1,-1),r,s)}function ne(e,t,n){switch(function(e,t){return 45^_(e,0)?(((t<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}(e,t)){case 5103:return l+\"print-\"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return l+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+u+e+o+e+e;case 5936:switch(_(e,t+11)){case 114:return l+e+o+w(e,/[svh]\\w+-[tblr]{2}/,\"tb\")+e;case 108:return l+e+o+w(e,/[svh]\\w+-[tblr]{2}/,\"tb-rl\")+e;case 45:return l+e+o+w(e,/[svh]\\w+-[tblr]{2}/,\"lr\")+e}case 6828:case 4268:case 2903:return l+e+o+e+e;case 6165:return l+e+o+\"flex-\"+e+e;case 5187:return l+e+w(e,/(\\w+).+(:[^]+)/,l+\"box-$1$2\"+o+\"flex-$1$2\")+e;case 5443:return l+e+o+\"flex-item-\"+w(e,/flex-|-self/g,\"\")+(v(e,/flex-|baseline/)?\"\":o+\"grid-row-\"+w(e,/flex-|-self/g,\"\"))+e;case 4675:return l+e+o+\"flex-line-pack\"+w(e,/align-content|flex-|-self/g,\"\")+e;case 5548:return l+e+o+w(e,\"shrink\",\"negative\")+e;case 5292:return l+e+o+w(e,\"basis\",\"preferred-size\")+e;case 6060:return l+\"box-\"+w(e,\"-grow\",\"\")+l+e+o+w(e,\"grow\",\"positive\")+e;case 4554:return l+w(e,/([^-])(transform)/g,\"$1\"+l+\"$2\")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,l+\"$1\"),/(image-set)/,l+\"$1\"),e,\"\")+e;case 5495:case 3959:return w(e,/(image-set\\([^]*)/,l+\"$1$`$1\");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,l+\"box-pack:$3\"+o+\"flex-pack:$3\"),/s.+-b[^;]+/,\"justify\")+l+e+e;case 4200:if(!v(e,/flex-|baseline/))return o+\"grid-column-align\"+j(e,t)+e;break;case 2592:case 3360:return o+w(e,\"template-\",\"\")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,v(e.props,/grid-\\w+-end/)}))?~x(e+(n=n[t].value),\"span\",0)?e:o+w(e,\"-start\",\"\")+e+o+\"grid-row-span:\"+(~x(n,\"span\",0)?v(n,/\\d+/):+v(n,/\\d+/)-+v(e,/\\d+/))+\";\":o+w(e,\"-start\",\"\")+e;case 4896:case 4128:return n&&n.some((function(e){return v(e.props,/grid-\\w+-start/)}))?e:o+w(w(e,\"-end\",\"-span\"),\"span \",\"\")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,l+\"$1$2\")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(e)-1-t>6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,\"$1\"+l+\"$2-$3$1\"+u+(108==_(e,t+3)?\"$3\":\"$2-$3\"))+e;case 115:return~x(e,\"stretch\",0)?ne(w(e,\"stretch\",\"fill-available\"),t,n)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\\d+)(\\s*\\/\\s*(span)?\\s*(\\d+))?(.*)/,(function(t,n,r,s,c,a,i){return o+n+\":\"+r+i+(s?o+n+\"-span:\"+(c?a:+a-+r)+i:\"\")+e}));case 4949:if(121===_(e,t+6))return w(e,\":\",\":\"+l)+e;break;case 6444:switch(_(e,45===_(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\\s!]+)(;|(\\s+)?!.+)?/,\"$1\"+l+(45===_(e,14)?\"inline-\":\"\")+\"box$3$1\"+l+\"$2$3$1\"+o+\"$2box$3\")+e;case 100:return w(e,\":\",\":\"+o)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,\"scroll-\",\"scroll-snap-\")+e}return e}function re(e,t){for(var n=\"\",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||\"\";return n}function se(e,t,n,r){switch(e.type){case h:if(e.children.length)break;case g:case p:return e.return=e.return||e.value;case f:return\"\";case b:return e.return=e.value+\"{\"+re(e.children,r)+\"}\";case d:if(!A(e.value=e.props.join(\",\")))return\"\"}return A(n=re(e.children,r))?e.return=e.value+\"{\"+n+\"}\":\"\"}function ce(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case p:return void(e.return=ne(e.value,e.length,n));case b:return re([N(e,{value:w(e.value,\"@\",\"@\"+l)})],r);case d:if(e.length)return function(e,t){return e.map(t).join(\"\")}(n=e.props,(function(t){switch(v(t,r=/(::plac\\w+|:read-\\w+)/)){case\":read-only\":case\":read-write\":P(N(e,{props:[w(t,/:(read-\\w+)/,\":\"+u+\"$1\")]})),P(N(e,{props:[t]})),$(e,{props:O(n,r)});break;case\"::placeholder\":P(N(e,{props:[w(t,/:(plac\\w+)/,\":\"+l+\"input-$1\")]})),P(N(e,{props:[w(t,/:(plac\\w+)/,\":\"+u+\"$1\")]})),P(N(e,{props:[w(t,/:(plac\\w+)/,o+\"input-$1\")]})),P(N(e,{props:[t]})),$(e,{props:O(n,r)})}return\"\"}))}}const ae=e=>null==e||!1===e||\"\"===e;function ie(e,t){return e.reduce(((e,[n,r])=>{const s=n.reduce(((n,s,c)=>{n=[...n,s];const a=r.at(c);if(a){let r=null;if(\"object\"!=typeof a&&\"function\"!=typeof a||!(\"styleDefinition\"in a))if(\"function\"==typeof a){const n=a(t);if(\"object\"==typeof n&&\"__css__\"in n){const{css:s,definitions:c}=ie(n.styles,t);e.definitions=[...e.definitions,...c],r=s}else\"string\"==typeof n&&n.includes(\"[object Object]\")&&console.error(\"[teiler]\",\"If you trying to use nested component/pattern selector inside function use function `css`, sample: \\n${({ someProperty }) => css`${NastedComponent} {...}`}\"),r=n}else if(\"object\"==typeof a&&\"__pattern__\"in a){r=\".\"+a.id}else if(\"object\"==typeof a){const t=a;e.definitions=[...e.definitions,t],r=t.id}else r=a;else{const t=a.styleDefinition;e.definitions=[...e.definitions,t],r=\".\"+t.id}!1===ae(r)&&(n=[...n,r])}return n}),[]).join(\"\");return e.css=e.css+s,e}),{css:\"\",definitions:[]})}function oe(e){const t=[];var n;return re(X(e),function(e){var t=C(e);return function(n,r,s,c){for(var a=\"\",i=0;i<t;i++)a+=e[i](n,r,s,c)||\"\";return a}}([se,ce,(n=e=>{t.push(e)},function(e){e.root||(e=e.return)&&n(e)})])),t.join(\" \")}function ue(e,t,n,r,...s){if(Array.isArray(r)){const c=r,a=[Array.from(c),s],i=t(e,[a]);return n(i)}{const e=r;return(r,...s)=>{const c=[Array.from(r),s],a=t(e.styleDefinition.tag,[...e.styleDefinition.styles,c]);return n(a)}}}const le=(e,t)=>({type:\"component\",id:\"t\"+r(t.reduce(((e,[t])=>e+t.join(\"\")),\"\")),styles:t,tag:e}),fe=(e,t)=>({type:\"global\",id:\"t\"+r(t.reduce(((e,[t])=>e+t.join(\"\")),\"\")),styles:t,tag:e});function de(e,...t){const n=[Array.from(e),t];return{type:\"keyframes\",id:\"teiler-\"+r(e.join(\"\")),styles:[n],tag:null}}function pe(e,...t){const n=[[Array.from(e),t]],s=n.reduce(((e,[t])=>e+t.join(\"\")),\"\");return{styles:n,id:\"t\"+r(s),__css__:!0}}function ge(e,t,n){const{styles:s,type:c}=t,{css:a,definitions:i}=ie(s,n),o=r(a);if(i.forEach((t=>ge(e,t,n))),\"component\"===c){const t=oe(`.teiler-${o} { ${a} }`);return e.insert(o,t),`teiler-${o}`}if(\"keyframes\"===c){const{id:n}=t,r=oe(`@keyframes ${n} { ${a} }`);e.insert(o,r)}else{const t=oe(`${a}`);e.insert(o,t)}return null}export{le as component,n as createStyleSheet,pe as css,fe as global,ge as insert,de as keyframes,a as pattern,i as sew,ue as styled,e as tags};\n//# sourceMappingURL=teiler-core.esm.js.map\n","import { type Sheet, createStyleSheet } from '@teiler/core'\nimport { getContext } from 'svelte'\n\nexport const styleSheet = createStyleSheet({})\n\nexport const StyleSheet = 'STYLE_SHEET'\n\nexport function getStyleSheet(): Sheet {\n return getContext(StyleSheet) || styleSheet\n}\n","<script context=\"module\">\n export const context = 'THEME'\n</script>\n\n<script lang=\"ts\">\n import type { DefaultTheme } from '@teiler/core'\n import { setContext } from 'svelte'\n import { writable, type Writable } from 'svelte/store'\n\n export let theme: DefaultTheme\n\n const themeStore = writable<DefaultTheme>(theme)\n\n setContext<Writable<DefaultTheme>>(context, themeStore)\n\n $: themeStore.set(theme)\n</script>\n\n<slot />\n","<script lang=\"ts\">\n import type { DefaultTheme, HTMLElements, Sheet, StyleDefinition } from '@teiler/core'\n import type { Writable } from 'svelte/store'\n\n import { insert } from '@teiler/core'\n import { getStyleSheet } from './sheet'\n import { getContext } from 'svelte'\n import { context } from './ThemeProvider.svelte'\n\n export let styleDefinition: StyleDefinition<HTMLElements, unknown>\n\n const sheet: Sheet = getStyleSheet()\n\n const theme: Writable<DefaultTheme> = getContext(context)\n\n $: styleClassName = insert(sheet, styleDefinition, { ...$$restProps, theme: $theme })\n\n $: filtredPropsEntries = Object.entries($$restProps).filter(([key, _value]) => key[0] !== '_' && key !== 'class')\n $: filtredProps = Object.fromEntries(filtredPropsEntries)\n\n $: className = $$restProps.class ? `${styleClassName} ${styleDefinition.id} ${$$restProps.class}` : `${styleClassName} ${styleDefinition.id}`\n</script>\n\n<!-- svelte-ignore a11y-no-static-element-interactions -->\n<svelte:element\n this={styleDefinition.tag}\n class={className}\n {...filtredProps}\n on:copy\n on:cut\n on:paste\n on:compositionend\n on:compositionstart\n on:compositionupdate\n on:focus\n on:focusin\n on:focusout\n on:blur\n on:change\n on:beforeinput\n on:input\n on:reset\n on:submit\n on:invalid\n on:formdata\n on:load\n on:error\n on:beforetoggle\n on:toggle\n on:keydown\n on:keypress\n on:keyup\n on:abort\n on:canplay\n on:canplaythrough\n on:cuechange\n on:durationchange\n on:emptied\n on:encrypted\n on:ended\n on:loadeddata\n on:loadedmetadata\n on:loadstart\n on:pause\n on:play\n on:playing\n on:progress\n on:ratechange\n on:seeked\n on:seeking\n on:stalled\n on:suspend\n on:timeupdate\n on:volumechange\n on:waiting\n on:auxclick\n on:click\n on:contextmenu\n on:dblclick\n on:drag\n on:dragend\n on:dragenter\n on:dragexit\n on:dragleave\n on:dragover\n on:dragstart\n on:drop\n on:mousedown\n on:mouseenter\n on:mouseleave\n on:mousemove\n on:mouseout\n on:mouseover\n on:mouseup\n on:select\n on:selectionchange\n on:selectstart\n on:touchcancel\n on:touchend\n on:touchmove\n on:touchstart\n on:gotpointercapture\n on:pointercancel\n on:pointerdown\n on:pointerenter\n on:pointerleave\n on:pointermove\n on:pointerout\n on:pointerover\n on:pointerup\n on:lostpointercapture\n on:gamepadconnected\n on:gamepaddisconnected\n on:scroll\n on:scrollend\n on:resize\n on:wheel\n on:animationstart\n on:animationend\n on:animationiteration\n on:transitionstart\n on:transitionrun\n on:transitionend\n on:transitioncancel\n on:outrostart\n on:outroend\n on:introstart\n on:introend\n on:message\n on:messageerror\n on:visibilitychange\n on:cancel\n on:close\n on:fullscreenchange\n on:fullscreenerror><slot /></svelte:element\n>\n","import type { Compiler, HTMLElements, Properties, StyleDefinition, TeilerComponent } from '@teiler/core'\nimport type { ComponentType, SvelteComponent } from 'svelte'\n\nimport { component, global, keyframes, styled, tags } from '@teiler/core'\nimport Styled from './Styled.svelte'\n\ntype SvelteTeilerComponent<Target extends HTMLElements, Props> = TeilerComponent<Target, Props> & ComponentType<SvelteComponent>\n\nconst createComponent = <Target extends HTMLElements, Props>(styleDefinition: StyleDefinition<Target, Props>): SvelteTeilerComponent<Target, Props> => {\n return class extends Styled {\n static styleDefinition = styleDefinition\n\n constructor(options) {\n super({\n ...options,\n props: {\n ...options.props,\n styleDefinition,\n },\n })\n }\n }\n}\n\ntype InferProps<Component, Props> = Component extends SvelteTeilerComponent<HTMLElements, infer P> ? P & Props : Props\ntype InferComponent<Component, Props> = Component extends SvelteTeilerComponent<infer E, infer P> ? SvelteTeilerComponent<E, Props & P> : SvelteTeilerComponent<HTMLElements, Props>\n\ntype Component<Target extends HTMLElements> = {\n <Props extends object = {}>(string: TemplateStringsArray, ...properties: Properties<Props>[]): SvelteTeilerComponent<Target, Props>\n <Component>(binded: Component): <Props extends object = {}>(string: TemplateStringsArray, ...properties: Properties<InferProps<Component, Props>>[]) => InferComponent<Component, Props>\n}\n\ntype Global = {\n <Props extends object = {}>(string: TemplateStringsArray, ...properties: Properties<Props>[]): SvelteTeilerComponent<HTMLElements, Props>\n}\n\ntype ComponentWithTags = Component<'div'> & { [K in HTMLElements]: Component<K> }\n\nconst construct = (tag: HTMLElements, compiler: Compiler) => {\n return <Props extends object = {}>(stringOrBinded: TeilerComponent<HTMLElements, Props> | TemplateStringsArray, ...properties: Properties<Props>[]) => {\n return styled<Props, SvelteTeilerComponent<HTMLElements, Props>>(tag, compiler, createComponent, stringOrBinded, ...properties)\n }\n}\n\nconst baseComponent = construct('div', component)\n\ntags.forEach((tag) => {\n baseComponent[tag] = construct(tag, component)\n})\n\nconst svelteComponent = baseComponent as ComponentWithTags\n\nconst svelteGlobal = construct(null, global) as Global\n\nexport { svelteComponent as component, svelteGlobal as global, keyframes, createComponent }\n"],"names":["e","Set","r","t","n","length","s","charCodeAt","toString","Array","from","c","styles","a","reduce","join","id","tag","__pattern__","forEach","global","o","u","l","f","d","p","g","b","h","m","Math","abs","y","String","fromCharCode","$","Object","assign","k","trim","v","exec","w","replace","x","indexOf","_","j","slice","A","C","R","push","O","filter","z","D","E","S","q","G","M","i","value","root","parent","type","props","children","line","column","return","siblings","N","P","T","B","F","H","J","K","U","L","Q","V","W","X","Y","ee","te","Z","ne","some","re","se","ce","map","ae","ie","at","css","definitions","includes","console","error","styleDefinition","oe","le","ge","insert","styleSheet","document","insertRule","keys","deleteRule","getRule","getAllRules","values","head","createElement","setAttribute","appendChild","Map","createTextNode","has","set","size","removeChild","get","delete","textContent","container","dump","createStyleSheet","StyleSheet","context","svelte_element_levels","class","ctx","svelte_element","element","set_dynamic_element_data","svelte_element_data","insert_1","target","anchor","get_spread_update","previous_tag","create_dynamic_element","safe_not_equal","getContext","createComponent","_a","Styled","constructor","options","super","construct","compiler","stringOrBinded","properties","isArray","styled","baseComponent","component","tags","svelteComponent","svelteGlobal"],"mappings":"4IAAIA,EAAE,IAAIC,IAAI,CAAC,IAAI,OAAO,UAAU,OAAO,UAAU,QAAQ,QAAQ,IAAI,OAAO,MAAM,MAAM,MAAM,aAAa,OAAO,KAAK,SAAS,SAAS,UAAU,OAAO,OAAO,MAAM,WAAW,OAAO,WAAW,KAAK,MAAM,UAAU,MAAM,SAAS,MAAM,KAAK,KAAK,KAAK,QAAQ,WAAW,aAAa,SAAS,SAAS,OAAO,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,SAAS,SAAS,KAAK,OAAO,IAAI,SAAS,MAAM,QAAQ,MAAM,MAAM,SAAS,QAAQ,SAAS,KAAK,OAAO,OAAO,MAAM,OAAO,OAAO,WAAW,OAAO,QAAQ,MAAM,WA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AO,IACFwF,EAAQxF,MACXsC,oBAGN,IAVOA,gBAAkBA,EADpB+C,CAAA,EA6BHK,GAAY,CAAC7I,EAAmB8I,IAC7B,CAA4BC,KAAgFC,IJvCw3W,SAAYjK,EAAEG,EAAEC,EAAEF,KAAKI,GAAM,GAAAG,MAAMyJ,QAAQhK,GAAG,CAAC,MAAMS,EAAET,EAAEW,EAAE,CAACJ,MAAMC,KAAKC,GAAGL,GAAGyD,EAAE5D,EAAEH,EAAE,CAACa,IAAI,OAAOT,EAAE2D,EAAE,CAAC,CAAC,MAAM/D,EAAEE,EAAQ,MAAA,CAACA,KAAKI,KAAK,MAAMK,EAAE,CAACF,MAAMC,KAAKR,GAAGI,GAAGO,EAAEV,EAAEH,EAAE0G,gBAAgBzF,IAAI,IAAIjB,EAAE0G,gBAAgB9F,OAAOD,IAAI,OAAOP,EAAES,EAAC,CAAE,CAAC,CIwCpsXsJ,CAA0DlJ,EAAK8I,EAAUP,GAAiBQ,KAAmBC,GAIlHG,GAAgBN,GAAU,MAAOO,IAEvCC,EAAKnJ,SAASF,IACZmJ,GAAcnJ,GAAO6I,GAAU7I,EAAKoJ,GAAS,IAG/C,MAAME,GAAkBH,GAElBI,GAAeV,GAAU,MJpDuxX,CAAC9J,EAAEG,KAAK,CAACgE,KAAK,SAASnD,GAAG,IAAId,EAAEC,EAAEW,QAAQ,CAACd,GAAGG,KAAKH,EAAEG,EAAEY,KAAK,KAAK,KAAKH,OAAOT,EAAEc,IAAIjB,mHAAI,SAAYA,KAAKG,GAAG,MAAMC,EAAE,CAACK,MAAMC,KAAKV,GAAGG,GAAG,MAAM,CAACgE,KAAK,YAAYnD,GAAG,UAAUd,EAAEF,EAAEe,KAAK,KAAKH,OAAO,CAACR,GAAGa,IAAI,KAAK"}
@@ -1,9 +1,9 @@
1
- import { HTMLElements, StyleDefinition, TeilerComponent, Properties, DefaultTheme } from '@teiler/core';
1
+ import { StyleDefinition, HTMLElements, TeilerComponent, Properties, DefaultTheme } from '@teiler/core';
2
2
  export { keyframes } from '@teiler/core';
3
3
  import { ComponentType, SvelteComponent } from 'svelte';
4
4
 
5
5
  type SvelteTeilerComponent<Target extends HTMLElements, Props> = TeilerComponent<Target, Props> & ComponentType<SvelteComponent>;
6
- declare const createComponent: <Target extends HTMLElements, Props>(styleDefinition: StyleDefinition<Target, Props>) => SvelteTeilerComponent<Target, Props>;
6
+ declare const createComponent: <Target extends "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "use" | "var" | "video" | "wbr" | "circle" | "clipPath" | "defs" | "ellipse" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "text" | "tspan", Props>(styleDefinition: StyleDefinition<Target, Props>) => SvelteTeilerComponent<Target, Props>;
7
7
  type InferProps<Component, Props> = Component extends SvelteTeilerComponent<HTMLElements, infer P> ? P & Props : Props;
8
8
  type InferComponent<Component, Props> = Component extends SvelteTeilerComponent<infer E, infer P> ? SvelteTeilerComponent<E, Props & P> : SvelteTeilerComponent<HTMLElements, Props>;
9
9
  type Component<Target extends HTMLElements> = {