Comparing version 1.4.0 to 1.4.1
@@ -6,2 +6,8 @@ # Change Log | ||
## [1.4.1](https://github.com/kenoxa/beamwind/compare/beamwind@1.4.0...beamwind@1.4.1) (2020-11-26) | ||
### Bug Fixes | ||
- use 'bw' instead of cx in preparation for intellisense ([9fdb322](https://github.com/kenoxa/beamwind/commit/9fdb3226262609d5d732c1fa2f72d0796c6a8250)) | ||
# [1.4.0](https://github.com/kenoxa/beamwind/compare/beamwind@1.3.1...beamwind@1.4.0) (2020-11-26) | ||
@@ -8,0 +14,0 @@ |
@@ -1327,3 +1327,3 @@ // src/is.ts | ||
return { | ||
cx: (...tokens) => process(asTokens(tokens), context3), | ||
bw: (...tokens) => process(asTokens(tokens), context3), | ||
setup: context3.c | ||
@@ -1335,3 +1335,3 @@ }; | ||
var instance2 = createInstance(); | ||
var {cx} = instance2; | ||
var {bw} = instance2; | ||
var {setup} = instance2; | ||
@@ -1341,2 +1341,3 @@ export { | ||
autoprefix, | ||
bw, | ||
compose, | ||
@@ -1347,3 +1348,2 @@ convertTo, | ||
cssomInjector, | ||
cx, | ||
cyrb32, | ||
@@ -1350,0 +1350,0 @@ defaultToKey, |
@@ -1327,3 +1327,3 @@ // src/is.ts | ||
return { | ||
cx: (...tokens) => process(asTokens(tokens), context3), | ||
bw: (...tokens) => process(asTokens(tokens), context3), | ||
setup: context3.c | ||
@@ -1335,3 +1335,3 @@ }; | ||
var instance2 = createInstance(); | ||
var {cx} = instance2; | ||
var {bw} = instance2; | ||
var {setup} = instance2; | ||
@@ -1341,2 +1341,3 @@ export { | ||
autoprefix, | ||
bw, | ||
compose, | ||
@@ -1347,3 +1348,2 @@ convertTo, | ||
cssomInjector, | ||
cx, | ||
cyrb32, | ||
@@ -1350,0 +1350,0 @@ defaultToKey, |
@@ -32,2 +32,3 @@ var __create = Object.create; | ||
autoprefix: () => autoprefix, | ||
bw: () => bw, | ||
compose: () => compose, | ||
@@ -38,3 +39,2 @@ convertTo: () => convertTo, | ||
cssomInjector: () => cssomInjector, | ||
cx: () => cx, | ||
cyrb32: () => cyrb32, | ||
@@ -1382,3 +1382,3 @@ defaultToKey: () => defaultToKey, | ||
return { | ||
cx: (...tokens) => process(asTokens(tokens), context3), | ||
bw: (...tokens) => process(asTokens(tokens), context3), | ||
setup: context3.c | ||
@@ -1390,3 +1390,3 @@ }; | ||
var instance2 = createInstance(); | ||
var {cx} = instance2; | ||
var {bw} = instance2; | ||
var {setup} = instance2; |
{ | ||
"name": "beamwind", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "compiles tailwind like shorthand syntax into css at runtime", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "448bd7eb8aaa07686254ffb2765cea9b99853ec4", | ||
"gitHead": "a3b5db6d6187bf35b398949e3d87ba6ebdb479fb", | ||
"exports": { | ||
@@ -30,0 +30,0 @@ ".": { |
@@ -40,10 +40,10 @@ # beamwind | ||
import preflight from 'https://unpkg.com/@beamwind/preflight' | ||
import { cx, setup } from 'https://unpkg.com/beamwind' | ||
import { bw, setup } from 'https://unpkg.com/beamwind' | ||
setup(preflight) | ||
<div class={cx`flex space`}> | ||
<div class={cx`w-1/3`}><!-- ... --></div> | ||
<div class={cx`w-1/3`}><!-- ... --></div> | ||
<div class={cx`w-1/3`}><!-- ... --></div> | ||
<div class={bw`flex space`}> | ||
<div class={bw`w-1/3`}><!-- ... --></div> | ||
<div class={bw`w-1/3`}><!-- ... --></div> | ||
<div class={bw`w-1/3`}><!-- ... --></div> | ||
</div> | ||
@@ -85,3 +85,3 @@ ``` | ||
```js | ||
import { cx } from 'beamwind' | ||
import { bw } from 'beamwind' | ||
``` | ||
@@ -91,7 +91,7 @@ | ||
To use the library, first import the module then invoke the `cx` export using tagged template syntax: | ||
To use the library, first import the module then invoke the `bw` export using tagged template syntax: | ||
```js | ||
import { cx } from 'https://unpkg.com/beamwind' | ||
document.body.className = cx`h-full bg-purple-500 rotate-3 scale-95` | ||
import { bw } from 'https://unpkg.com/beamwind' | ||
document.body.className = bw`h-full bg-purple-500 rotate-3 scale-95` | ||
``` | ||
@@ -119,6 +119,6 @@ | ||
To customize the theme, use the `setup` export. This will change the theme used by the `cx` export. | ||
To customize the theme, use the `setup` export. This will change the theme used by the `bw` export. | ||
```js | ||
import { cx, setup } from 'beamwind' | ||
import { bw, setup } from 'beamwind' | ||
@@ -133,3 +133,3 @@ setup({ | ||
cx`bg-red-500` // will result in a hotpink background-color | ||
bw`bg-red-500` // will result in a hotpink background-color | ||
``` | ||
@@ -158,3 +158,3 @@ | ||
It is possible to invoke beamwind in a multitude of different ways. The `cx` function can take **_any_** number of arguments, each of which can be an Object, Array, Boolean, Number, String or [inline plugins](#inline-plugins). This feature is based on [clsx](https://www.npmjs.com/package/cslx). | ||
It is possible to invoke beamwind in a multitude of different ways. The `bw` function can take **_any_** number of arguments, each of which can be an Object, Array, Boolean, Number, String or [inline plugins](#inline-plugins). This feature is based on [clsx](https://www.npmjs.com/package/cslx). | ||
@@ -168,36 +168,36 @@ > **Important**: _Any_ falsey values are discarded! | ||
// Tag Template Literal (falsey interpolations will be omitted) | ||
cx`bg-primary rounded` | ||
bw`bg-primary rounded` | ||
//=> 'bg-primary rounded' | ||
cx`bg-primary ${false && 'rounded'}` | ||
bw`bg-primary ${false && 'rounded'}` | ||
//=> 'bg-primary' | ||
cx`bg-primary ${[false && 'rounded', 'block']}` | ||
bw`bg-primary ${[false && 'rounded', 'block']}` | ||
//=> 'bg-primary block' | ||
cx`bg-primary ${{ rounded: false, 'text-underline': isTrue() }}` | ||
bw`bg-primary ${{ rounded: false, 'text-underline': isTrue() }}` | ||
//=> 'bg-primary text-underline' | ||
// Strings (variadic) | ||
cx('bg-primary', true && 'rounded', 'text-underline') | ||
bw('bg-primary', true && 'rounded', 'text-underline') | ||
//=> 'bg-primary rounded text-underline' | ||
// Objects (keys with falsey values will be omitted) | ||
cx({ 'bg-primary': true, rounded: false, 'text-underline': isTrue() }) | ||
bw({ 'bg-primary': true, rounded: false, 'text-underline': isTrue() }) | ||
//=> 'bg-primary text-underline' | ||
// Objects (variadic) | ||
cx({ 'bg-primary': true }, { rounded: false }, null, { 'text-underline': true }) | ||
bw({ 'bg-primary': true }, { rounded: false }, null, { 'text-underline': true }) | ||
//=> 'bg-primary text-underline' | ||
// Arrays (falsey items will be omitted) | ||
cx(['bg-primary', 0, false, 'rounded']) | ||
bw(['bg-primary', 0, false, 'rounded']) | ||
//=> 'bg-primary rounded' | ||
// Arrays (variadic) | ||
cx(['bg-primary'], ['', 0, false, 'rounded'], [['text-underline', [['text-lg'], 'block']]]) | ||
bw(['bg-primary'], ['', 0, false, 'rounded'], [['text-underline', [['text-lg'], 'block']]]) | ||
//=> 'bg-primary rounded text-underline text-lg block' | ||
// Kitchen sink (with nesting) | ||
cx( | ||
bw( | ||
'bg-primary', | ||
@@ -217,3 +217,3 @@ [1 && 'rounded', { underline: false, 'color-secondary': null }, ['text-lg', ['shadow-lg']]], | ||
```js | ||
cx` | ||
bw` | ||
sm:hover:( | ||
@@ -231,3 +231,3 @@ bg-black | ||
```js | ||
cx` | ||
bw` | ||
sm:( | ||
@@ -245,3 +245,3 @@ bg-black | ||
```js | ||
cx({ | ||
bw({ | ||
sm: { | ||
@@ -263,3 +263,3 @@ 'bg-black': true, | ||
```js | ||
cx`text(center underline bold primary)`) | ||
bw`text(center underline bold primary)`) | ||
// text-center text-underline text-bold text-primary | ||
@@ -271,3 +271,3 @@ ``` | ||
```js | ||
cx`ring(& promote offset(sm on-promote))`) | ||
bw`ring(& promote offset(sm on-promote))`) | ||
// ring ring-promote ring-offset-sm ring-offset-on-promote | ||
@@ -289,7 +289,7 @@ ``` | ||
cx`font-bold ${card} color-primary` | ||
bw`font-bold ${card} color-primary` | ||
// Note: Same works for arrays and objects | ||
// You can use variants | ||
cx`sm:${card} color-primary` | ||
bw`sm:${card} color-primary` | ||
// Same works for arrays and objects | ||
@@ -313,6 +313,6 @@ ``` | ||
cx(btn()) | ||
bw(btn()) | ||
// => inline-block font-bold py-2 px-4 rounded | ||
cx([btn(), btn('primary')]) | ||
bw([btn(), btn('primary')]) | ||
// => inline-block font-bold py-2 px-4 rounded bg-primary text-primary-contrast hover:bg-primary-hover active:bg-primary-active | ||
@@ -649,3 +649,3 @@ ``` | ||
Static components that are only a collection of utilities can be defined as strings. The following example allows to use `card` as a token (`cx('card')`) which will be expanded to `max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden md:max-w-2xl`: | ||
Static components that are only a collection of utilities can be defined as strings. The following example allows to use `card` as a token (`bw('card')`) which will be expanded to `max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden md:max-w-2xl`: | ||
@@ -680,3 +680,3 @@ ```js | ||
Some dynamic components depend on additional logic and like to use the familiar `cx` API. For these case beamwind provides the [apply](https://github.com/kenoxa/beamwind/blob/main/packages/beamwind/docs/modules/_helpers_.md#apply) helper, which has the same API signature as `cx`. | ||
Some dynamic components depend on additional logic and like to use the familiar `bw` API. For these case beamwind provides the [apply](https://github.com/kenoxa/beamwind/blob/main/packages/beamwind/docs/modules/_helpers_.md#apply) helper, which has the same API signature as `bw`. | ||
@@ -792,3 +792,3 @@ ```js | ||
```js | ||
import { cx, setup, virtualInjector } from 'beamwind' | ||
import { bw, setup, virtualInjector } from 'beamwind' | ||
@@ -810,3 +810,3 @@ const injector = virtualInjector() | ||
export const { cx } = createInstance({ | ||
export const { bw } = createInstance({ | ||
injector: cssomInjector({ | ||
@@ -831,7 +831,7 @@ // Make sure this node exists or create it on the fly if necessary | ||
const injector = virtualInjector() | ||
const cx = createInstance({ injector }) | ||
const bw = createInstance({ injector }) | ||
const html = htm.bind(h) | ||
const style = { | ||
main: cx`clearfix`, | ||
main: bw`clearfix`, | ||
} | ||
@@ -838,0 +838,0 @@ |
@@ -1,2 +0,2 @@ | ||
var beamwind=(()=>{var Se=Object.defineProperty,bn=e=>Se(e,"__esModule",{value:!0}),yn=(e,n)=>{bn(e);for(var t in n)Se(e,t,{get:n[t],enumerable:!0})},Mn={};yn(Mn,{apply:()=>Me,autoprefix:()=>Q,compose:()=>C,convertTo:()=>g,corners:()=>ne,createInstance:()=>se,cssomInjector:()=>q,cx:()=>fn,cyrb32:()=>ee,defaultToKey:()=>d,divideBy:()=>H,edges:()=>V,expandEdges:()=>K,fail:()=>D,join:()=>i,noOpInjector:()=>J,noprefix:()=>Ke,optional:()=>h,setup:()=>un,tail:()=>a,virtualInjector:()=>Ne,warn:()=>re});var le=(e,n)=>typeof e===n,w=e=>le(e,"string"),M=e=>e!=null&&le(e,"object"),P=Array.isArray,F=e=>le(e,"function"),Fe=e=>/^-?\d+(?:\.\d+)?$/.test(e),je=(e,n)=>Number(e.toFixed(n)),i=(e,n="-")=>e.join(n),j=(e,n)=>i(e.filter(Boolean),n),a=e=>e.slice(1),ce=(e,n)=>(n?`Invalid token ${n}: `:"")+e,D=(e,n)=>{throw new Error(ce(e,n))},ge=()=>{if(typeof Map=="function")return new Map;let e=Object.create(null);return{has(n){return n in e},get(n){return e[n]},set(n,t){e[n]=t}}},Tn=(e,n)=>{let t=[e[0]];for(let r=0;r<n.length;)w(n[r])?t[t.length-1]+=n[r]+e[++r]:(n[r]&&t.push(n[r]),t.push(e[++r]));return t},Y=e=>P(e[0])&&P(e[0].raw)?Tn(e[0],a(e)):e,Ee=(e,n)=>{let t=e.length;if(t===0)return 0;for(let r=0;r<t;){let s=t+r>>1;e[s]<=n?r=s+1:t=s}return t},k=(e,n)=>{if(!(e&&n))return e||n;let t=Object.create(null);return Object.keys(e).forEach(r=>{t[r]=e[r]}),Object.keys(n).forEach(r=>{t[r]=n[r]}),t},ze,wn={sticky:"@supports ((position: -webkit-sticky) or (position:sticky))","motion-reduce":"@media (prefers-reduced-motion:reduce)","motion-safe":"@media (prefers-reduced-motion:no-preference)"},U=e=>e.slice(0,6)==="group-",Ie=(e,n)=>(ze=n.screens[e])?`@media (min-width: ${ze})`:wn[e]||U(e)&&e||`:${e}`,Ae=typeof CSS!="undefined"&&CSS.escape||(e=>e.replace(/[!"#$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&")),kn=e=>e[0]===":",X=e=>e[0]==="@",Z=(e,n)=>{let t=i(n,":");return(t&&t+":")+e},$n=(e,n,t,r)=>n.reduce((s,f)=>(U(f)?`.${Ae(r("group"))}:${f.slice(6)} `:"")+s+(kn(f)?f:""),"."+Ae(e))+t,He=(e,n,t,r,s)=>n.reduceRight((f,p)=>X(p)?`${p}{${f}}`:f,`${$n(e,n,r,s)}{${t}}`),Oe=typeof window!="undefined",We="__beamwind",Cn=()=>{let e=document.getElementById(We);return e||(e=document.createElement("style"),e.id=We,document.head.appendChild(e))},Ne=({target:e=[]}={})=>({target:e,insert:(n,t)=>e.splice(t,0,n)}),q=({nonce:e,target:n=Cn().sheet}={})=>(e&&(n.ownerNode.nonce=e),{target:n,insert:n.insertRule.bind(n)}),J=()=>({target:null,insert:()=>{}}),Pn={screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px","2xl":"1536px"},colors:{current:"currentColor",transparent:"transparent",none:"transparent",surface:"#fff","on-surface":"#111",primary:"#0d3880","on-primary":"#e8ecf4",secondary:"#e60278","on-secondary":"#000",caution:"#ffc600","on-caution":"#1A202C",critical:"#d0011b","on-critical":"#f4e4e6",info:"#1e468c","on-info":"#e8ecf2",neutral:"#596581","on-neutral":"#eaebed",positive:"#138a08","on-positive":"#000",promote:"#9556b7","on-promote":"#f7f5f9"},spacing:{none:"0",0:"0",px:"1px",auto:"auto",full:"100%",base:".625rem",xs:".25rem",sm:".5rem",md:".875rem",lg:"1rem",xl:"1.25rem","2xl":"1.5rem","3xl":"2rem","4xl":"4rem","5xl":"5rem","6xl":"6rem"},sizes:{none:"0",0:"0",px:"1px",auto:"auto",full:"100%",min:"min-content",max:"max-content",prose:"65ch",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif',mono:'ui-monospace,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSize:{base:["1rem",{lineHeight:"1.5rem"}],xs:[".75rem",{lineHeight:"1rem"}],sm:[".875rem",{lineHeight:"1.25rem"}],md:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:".025em",wider:".05em",widest:".1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderWidth:{DEFAULT:"1px"},borderColor:{DEFAULT:"currentColor"},placeholderColor:{DEFAULT:"#9ca3af"},ringWidth:{DEFAULT:"3px"},ringOffsetWidth:{DEFAULT:"2px"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},order:{first:"-9999",last:"9999",none:"0"},strokeWidth:{px:"1px",xs:"1px",sm:"2px",md:"4px",lg:"8px",xl:"16px","2xl":"32px"},borderRadius:{DEFAULT:".25rem",none:"0",xs:".125rem",sm:".25rem",md:".375rem",lg:".5rem",xl:".75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},boxShadow:{DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)",none:"0 0 transparent",xs:"0 0 0 1px rgba(0,0,0,0.05)",sm:"0 1px 2px 0 rgba(0,0,0,0.05)",md:"0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06)",lg:"0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05)",xl:"0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",outline:"0 0 0 3px rgba(66,153,225,0.5)",focus:"0 0 0 3px rgba(66,153,225,0.5)"},transitionProperty:{DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",shadow:"box-shadow"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},durations:{DEFAULT:"150ms"},animation:{none:"none",spin:["1s linear infinite"],ping:["1s cubic-bezier(0,0,0.2,1) infinite"],pulse:["2s cubic-bezier(0.4,0,0.6,1) infinite"],bounce:["1s infinite"]},keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none","animation-timing-function":"cubic-bezier(0,0,0.2,1)"}}}},de=(e,n=Pn)=>{let t=k(n,{});return e=F(e)?e(n):e,e&&Object.keys(e).forEach(r=>{t[r]=k(n[r],e[r])}),Object.keys(t.screens).forEach(r=>{t.sizes[`screen-${r}`]=t.screens[r]}),t.borderColor=k(t.colors,t.borderColor),t.borderWidth=k(t.spacing,t.borderWidth),t.divideColor=k(t.borderColor,t.divideColor),t.divideWidth=k(t.borderWidth,t.divideWidth),t.placeholderColor=k(t.colors,t.placeholderColor),t.ringWidth=k(t.spacing,t.ringWidth),t.ringOffsetWidth=k(t.spacing,t.ringOffsetWidth),t},vn=/^(br|hy|us|wr|text-si|scroll-snap-t)/,Dn=/^(ap|us|tab-|border-e|margin-e|margin-s|padding-e|padding-s|border-sta)/,Rn=/^(ap|br|hy|us|wr|mas|colu|clip-|box-de|font-k|text-e|font-fe|shape-i|text-or|text-si|border-e|margin-e|margin-s|padding-e|padding-s|border-sta|background-cl|scroll-snap-t|text-decoration-)/,Sn=/^(pos|background-cl)/,me={},Ue=function(e){return me[e]?me[e]:me[e]=1*vn.test(e)|2*Dn.test(e)|4*Rn.test(e)},Le=function(e,n){return Sn.test(e)?n.replace(/(sticky|text)/,"-webkit-$1, $1"):n},Q=(e,n)=>{let t=`${e}:${Le(e,n)}`,r=t,s=Ue(e);return s&1&&(r+=`;-ms-${t}`),s&2&&(r+=`;-moz-${t}`),s&4&&(r+=`;-webkit-${t}`),r},Ke=(e,n)=>`${e}:${n}`,Fn=Math.imul||((e,n)=>{n|=0;let t=(e&4194303)*n;return e&4290772992&&(t+=(e&4290772992)*n|0),t|0}),ee=e=>{let n=9;for(let t=e.length;t--;)n=Fn(n^e.charCodeAt(t),1597334677);return"_"+((n^n>>>9)>>>0).toString(36)},L,fe,jn=e=>(fe=/\(\s*min-width:\s*(\d+(?:.\d+)?)(p)?/.exec(e))?+fe[1]/(fe[2]?16:1)/10:0,ue=e=>{L=0;for(let n=e.length;n--;)~"-:,".indexOf(e[n])&&++L;return L},Ve=["rst","st","d","en","nk","sited","pty","ecked","oup-h","oup-f","cus-w","ver","cus","cus-v","tive","sable"],En=e=>~(L=Ve.indexOf(e.slice(3,8)))?L:Ve.length,zn=(e,n)=>e|(X(n)?0:1<<En(U(n)?":"+n:n)),In=/^(?:(border-(?:[tlbr].{2,4}-)?(?:w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,An=e=>{let n=e[0]==="-"?e.slice(e.indexOf("-",1)+1):e,t=In.exec(n);return ue(n)+(t?+!!t[1]||-!!t[2]:0)+1},Hn=e=>e[0]==="-"?0:An(e),Be=e=>Math.max(0,15-e),On=(e,n)=>Be(ue(n)),Wn=e=>Be(Object.keys(e).filter(n=>e[n]).length),_e=(e,n)=>Object.keys(e).reduce((t,r)=>e[r]?Math.max(t,n(r,e[r])):t,0),Ge=(e,n)=>{let t=jn(e[0]||"");return((t&31)<<21|(ue(i((t?a(e):e).filter(X),";"))&15)<<17|e.reduce(zn,0)&131071)*(1<<12)+((Wn(n)&15)<<8|(_e(n,Hn)&15)<<4|_e(n,On)&15)},pe,Me=(...e)=>n=>n(Y(e)),Ye=(e,n)=>n?e+n:e,xe=(e,n,t,r)=>Ye(String(je(Number(e)/Number(n)*(r||1),7)),t),g=(e,n)=>t=>{if(n&&t==="screen")return`100v${n}`;if(Fe(t))return e==="rem"?xe(t,4,"rem"):Ye(t,e);if(e==="rem"&&(pe=/^(\d+)\/(\d+)$/.exec(t)))return xe(pe[1],pe[2],"%",100)},H=e=>n=>xe(n,e),d=e=>e,h=()=>"",Xe=e=>(n,t,r,s)=>{if(n){let f=t&&e(t);if(f&&f.length>0)return f.reduce((p,b)=>(p[j([r,b,s])]=n,p),{})}},Nn={t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]},ne=Xe(e=>Nn[e]),Un={x:"lr",y:"tb"},Ze={t:"top",r:"right",b:"bottom",l:"left"},K=e=>{let n=(Un[e]||e||"").split("").sort().reduce((t,r)=>{if(t&&Ze[r])return t.push(Ze[r]),t},[]);if(n&&n.length>0)return n},V=Xe(K),C=(e,...n)=>t=>n.reduce((r,s)=>r||s(t),e(t)),o,O=(e,n)=>parseInt(e,16)*(n||1),Ln=(e,n)=>e[0]==="#"?"rgba("+(e.length===4?`${O(e[1],17)},${O(e[2],17)},${O(e[3],17)}`:`${O(e.slice(1,3))},${O(e.slice(3,5))},${O(e.slice(5,7))}`)+`,${n})`:e,qe={x:"left",y:"top"},Kn={w:"width",h:"height"},E=e=>({[e[0]]:e[1]}),R=e=>({display:i(e)}),B=e=>({position:e[0]}),te=e=>({"text-transform":e[0]}),Je=(e,n)=>{switch(e[1]){case"solid":case"dashed":case"dotted":case"double":case"none":return{"border-style":e[1]};case"collapse":case"separate":return{"border-collapse":e[1]}}return(o=n(`${e[0]}Width`,e[1],C(g("px"),h)))?{border:i([o,"solid",n(`${e[0]}Color`,i(e.slice(2)),d)]," ")}:{"border-color":n(`${e[0]}Color`,i(a(e)),d)}},Qe=(e,n)=>(o=Kn[e[1]])&&{[`${e[0]}-${o}`]:n("sizes",i(e.slice(2)),g("rem",e[1]))},en=e=>(n,t)=>n[0][1]?V(t("spacing",n[1],g("rem")),n[0][1],e):{[e]:t("spacing",n[1],g("rem"))},z=en("padding"),I=en("margin"),he=e=>n=>{switch(n[1]){case"start":case"end":return{[e]:`flex-${n[1]}`};case"between":case"around":return{[e]:`space-${n[1]}`}}return{[e]:n[1]}},nn={shadow:(e,n,{tag:t})=>(o=n("boxShadow",e[1],h))&&{[`--${t("shadow")}`]:o,"box-shadow":[o,`var(--${t("ring-offset-shadow")},0 0 transparent),var(--${t("ring-shadow")},0 0 transparent),var(--${t("shadow")})`]},ring(e,n,{tag:t}){switch(e[1]){case"inset":return{[`--${t("ring-inset")}`]:"inset"};case"opacity":return{[`--${t("ring-opacity")}`]:n("opacity",e[2],H(100))};case"offset":return(o=n("ringWidth",e[2],C(g("px"),h)))?{[`--${t("ring-offset-width")}`]:o}:{[`--${t("ring-offset-color")}`]:n("colors",i(e.slice(2)),d)}}return(o=n("ringWidth",e[1],C(g("px"),h)))?{[`--${t("ring-offset-shadow")}`]:`var(--${t("ring-inset")},/*!*/ /*!*/) 0 0 0 var(--${t("ring-offset-width")},0px) var(--${t("ring-offset-color")},#fff)`,[`--${t("ring-shadow")}`]:`var(--${t("ring-inset")},/*!*/ /*!*/) 0 0 0 calc(${o} + var(--${t("ring-offset-width")},0px)) var(--${t("ring-color")},rgba(59,130,246,0.5))`,"box-shadow":`var(--${t("ring-offset-shadow")}),var(--${t("ring-shadow")}),var(--${t("shadow")},0 0 transparent)`}:{[`--${t("ring-opacity")}`]:"1",[`--${t("ring-color")}`]:Ln(n("colors",i(a(e)),d),`var(--${t("ring-opacity")})`)}},duration:(e,n)=>({"transition-duration":n("durations",e[1],g("ms"))}),delay:(e,n)=>({"transition-delay":n("durations",e[1],g("ms"))}),origin:e=>({"transform-origin":i(a(e)," ")}),cursor:e=>({cursor:i(a(e))}),select:e=>({"user-select":e[1]}),transform:(e,n,{tag:t})=>({transform:`translateX(var(--${t("transform-translate-x")},0)) translateY(var(--${t("transform-translate-y")},0)) rotate(var(--${t("transform-rotate")},0)) skewX(var(--${t("transform-skew-x")},0)) skewY(var(--${t("transform-skew-y")},0)) scaleX(var(--${t("transform-scale-x")},1)) scaleY(var(--${t("transform-scale-y")},1))`}),rotate:(e,n,{tag:t})=>(o=n("angle",e[1],g("deg")),{[`--${t("transform-rotate")}`]:o,transform:`rotate(${o})`}),scale(e,n,{tag:t}){return o=n("scale",e[2]||e[1],H(100)),{[`--${t("transform-scale-x")}`]:e[1]!=="y"&&o,[`--${t("transform-scale-y")}`]:e[1]!=="x"&&o,transform:`scale${e[2]?e[1].toUpperCase():""}(${o})`}},translate(e,n,{tag:t}){return o=n("spacing",e[2],g("rem")),{[`--${t("transform-translate-x")}`]:e[1]!=="y"&&o,[`--${t("transform-translate-y")}`]:e[1]!=="x"&&o,transform:`translate${e[1].toUpperCase()}(${o})`}},skew(e,n,{tag:t}){return o=n("angle",e[2],g("deg")),{[`--${t("transform-skew-x")}`]:e[1]!=="y"&&o,[`--${t("transform-skew-y")}`]:e[1]!=="x"&&o,transform:`skew${e[1].toUpperCase()}(${o})`}},"bg-gradient":(e,n,{tag:t})=>({"background-image":`linear-gradient(${e[1]==="to"&&(o=K(e[2]))?"to "+i(o," "):n("angle",i(a(e)," ")||"180",C(g("deg"),d))},var(--${t("gradient-stops")},var(--${t("gradient-from")},transparent),var(--${t("gradient-to")},transparent)))`}),from:(e,n,{tag:t})=>({[`--${t("gradient-from")}`]:n("colors",i(a(e)),d)}),via:(e,n,{tag:t})=>({[`--${t("gradient-stops")}`]:`var(--${t("gradient-from")},transparent),${n("colors",i(a(e)),d)},var(--${t("gradient-to")},transparent)`}),to:(e,n,{tag:t})=>({[`--${t("gradient-to")}`]:n("colors",i(a(e)),d)}),"pointer-events":e=>({"pointer-events":e[1]}),tracking:(e,n)=>({"letter-spacing":n("letterSpacing",e[1])}),leading:(e,n)=>({"line-height":n("lineHeight",e[1],g("rem"))}),align:e=>({"vertical-align":i(a(e))}),whitespace:e=>({"white-space":i(a(e))}),z:(e,n)=>({"z-index":n("zIndex",e[1],d)}),gap:(e,n)=>({gap:n("spacing",e[1],g("rem"))}),"stroke-current":{stroke:"currentColor"},stroke:(e,n)=>({"stroke-width":n("strokeWidth",e[1],d)}),fill:(e,n)=>({fill:n("colors",i(a(e)),d)}),outline:(e,n)=>({outline:`2px ${e[1]==="none"?"solid":"dotted"} ${n("colors",i(a(e)),d)}`,"outline-offset":"2px"}),appearance:e=>({appearance:i(a(e))}),opacity:(e,n)=>({opacity:n("opacity",e[1],H(100))}),ease:(e,n)=>({"transition-timing-function":n("transitionTimingFunction",i(a(e)),d)}),break(e){switch(e[1]){case"normal":return{"word-break":e[1],"overflow-wrap":e[1]};case"words":return{"overflow-wrap":"break-word"};case"all":return{"word-break":"break-all"}}},"no-underline":{"text-decoration":"none"},"line-through":{"text-decoration":"line-through"},w:(e,n)=>({width:n("sizes",e[1],C(g("rem","w"),d))}),h:(e,n)=>({height:n("sizes",e[1],C(g("rem","h"),d))}),text(e,n){switch(e[1]){case"left":case"center":case"right":case"justify":return{"text-align":e[1]};default:{let t=n("fontSize",e[1],h);return t?w(t)?{"font-size":t}:{"font-size":t[0],"line-height":w(t[1])?t[1]:t[1].lineHeight,"letter-spacing":t[1].letterSpacing}:{color:n("colors",i(a(e)),d)}}}},bg(e,n){switch(e[1]){case"fixed":case"local":case"scroll":return{"background-attachment":e[1]};case"bottom":case"center":case"left":case"right":case"top":return{"background-position":i(a(e)," ")};case"no":return e[2]==="repeat"&&{"background-repeat":i(a(e))};case"repeat":switch(e[2]){case"x":case"y":return{"background-repeat":i(a(e))}}return{"background-repeat":e[2]||e[1]};case"auto":case"cover":case"contain":return{"background-size":e[1]}}return{"background-color":n("colors",i(a(e)),d),color:n("colors",i(e[1]==="on"?e.slice(2):["on"].concat(a(e))),h)}},rounded:(e,n)=>ne(n("borderRadius",e[2],g("px")),e[1],"border","radius")||{"border-radius":n("borderRadius",e[1],g("px"))},"transition-none":{"transition-property":"none"},transition:(e,n)=>({transition:i([e[1]?n("transitionProperty",e[1],d):"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",n("durations",void 0,g("ms")),n("transitionTimingFunction")]," ")}),flex(e,n){switch(e[1]){case"row":case"col":return{"flex-direction":e[1]==="col"?j(["column",e[2]]):i(a(e))};case"nowrap":case"wrap":return{"flex-wrap":i(a(e))};case"grow":case"shrink":return{[`flex-${e[1]}`]:e[2]||"1"}}return(o=n("flex",e[1],h))?{flex:o}:R(e)},grid(e){switch(e[1]){case"cols":case"rows":return{[`grid-template-${e[1]==="cols"?"columns":e[1]}`]:e[2]==="none"?e[2]:`repeat(${e[2]}, minmax(0, 1fr))`};case"flow":return{[`grid-auto-${e[1]}`]:e[2]==="col"?j(["column",e[3]]," "):i(e.slice(2)," ")}}return R(e)},"not-italic":{"font-style":"normal"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"},hidden:R(["none"]),inline:R,block:R,table(e){switch(e[1]){case"auto":case"fixed":return{"table-layout":e[1]}}return R(e)},flow:R,d:e=>R(a(e)),static:B,fixed:B,absolute:B,relative:B,sticky:B,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},italic:{"font-style":"italic"},underline:{"text-decoration":"underline"},uppercase:te,lowercase:te,capitalize:te,"normal-case":te(["none"]),truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},resize(e){switch(e[1]){case"x":return{resize:"vertical"};case"y":return{resize:"horizontal"}}return{resize:e[1]||"both"}},clearfix:["::after",{content:'""',display:"table",clear:"both"}],object(e){switch(e[1]){case"contain":case"cover":case"fill":case"none":return{"object-fit":e[1]};case"scale":return{"object-fit":i(a(e))}}return{"object-position":i(a(e)," ")}},inset(e){switch(e[1]){case"0":case"auto":return{top:e[1],right:e[1],bottom:e[1],left:e[1]};case"y":return{top:e[2],bottom:e[2]};case"x":return{left:e[2],right:e[2]}}},items(e){switch(e[1]){case"start":case"end":return{"align-items":`flex-${e[1]}`}}return{"align-items":e[1]}},content:he("align-content"),justify:he("justify-content"),self:he("align-self"),order:(e,n)=>({order:n("order",e[1],d)}),col(e){switch(e[1]){case"auto":return{"grid-column":e[1]};case"span":return{"grid-column":e[2]==="full"?"1 / -1":`span ${e[2]} / span ${e[2]}`};case"start":case"end":return{[`grid-column-${e[1]}`]:e[2]}}},row(e){switch(e[1]){case"auto":return{"grid-row":e[1]};case"span":return{"grid-row":e[2]==="full"?"1 / -1":`span ${e[2]} / span ${e[2]}`};case"start":case"end":return{[`grid-row-${e[1]}`]:e[2]}}},subpixel:e=>e[1]==="antialiased"&&{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"},list(e){switch(e[1]){case"inside":case"outside":return{"list-style-position":e[1]}}return{"list-style-type":e[1]}},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},box:e=>({"box-sizing":`${e[1]}-box`}),float:E,clear:E,top:E,right:E,bottom:E,left:E,overflow(e){switch(e[1]){case"ellipsis":case"clip":return{"text-overflow":e[1]}}return e[2]?{[`overflow-${e[1]}`]:e[2]}:E(e)},p:z,py:z,px:z,pt:z,pr:z,pb:z,pl:z,m:I,my:I,mx:I,mt:I,mr:I,mb:I,ml:I,font:(e,n)=>(o=n("fontFamily",e[1],h))?{"font-family":o}:(o=n("fontWeight",e[1],d))&&{"font-weight":o},space:(e,n)=>[">:not([hidden])~:not([hidden])",(o=qe[e[1]])?{[`margin-${o}`]:n("spacing",e[2]||"base",g("rem"))}:(o=n("spacing",e[1]||"base",g("rem")))&&{"margin-left":o,"margin-top":o}],border:(e,n)=>(o=n("borderWidth",e[2],C(g("px"),h)),V(i([o||n("borderWidth","DEFAULT",h),"solid",n("borderColor",i(e.slice(o?3:2)),d)]," "),e[1],"border")||Je(e,n)),divide:(e,n)=>{let t=qe[e[1]];return o=t&&n("divideWidth",e[2]||"\0",C(g("px"),h)),[">:not([hidden])~:not([hidden])",t?{[`border-${t}`]:i([o||n("divideWidth","DEFAULT"),"solid",n("divideColor",i(e.slice(o?3:2)),d)]," ")}:Je(e,n)]},placeholder:(e,n)=>["::placeholder",{color:n("placeholderColor",i(a(e)),d)}],min:Qe,max:Qe,animate:(e,n,{keyframes:t})=>{let r=n("animation",o=i(a(e)),h);return r&&{animation:w(r)?r:`${t(r[1]||o)} ${r[0]}`}}},re=(e,n)=>console.warn(ce(e,n)),tn=e=>{let n=de(),t=nn,r,s,f=[],p=Q,b=ee,ae=re,N=ge(),$e=ge(),G=[],Ce=l=>(P(l)?l:[l]).forEach(({theme:c,plugins:u,init:x,injector:$,nonce:T=s,prefix:v=p,hash:S=b,warn:hn=ae}={})=>{$&&G.length>0&&D("Changing the injector after first use is not supported"),n=de(c,n),t=k(t,u),x&&f.push(x),r=$||r,s=T,p=v,b=S,ae=hn}),pn=(l,c)=>P(c)?i(c.filter(Boolean).map(u=>p(l,u)),";"):p(l,c),Pe=l=>Object.keys(l).reduce((c,u)=>l[u]?(c&&c+";")+pn(u,l[u]):c,""),xn=l=>Ie(l,n),ve=l=>b?b(l):l,De=(l,c)=>{r||(r=Oe?q({nonce:s}):J());let u=Ee(G,c);try{r.insert(l,u),G.splice(u,0,c)}catch(x){console.warn(x)}},Re=(l,c,u,x,$)=>{$e.has(c)||(!G.length&&f.length&&f.forEach(T=>T(v=>De(v,0),n)),De(u,Ge(x,$)),$e.set(c,!0)),N.set(l,c)};return Ce(e),{t:l=>n[l],p:l=>t[l],a:ve,g:(l,c)=>N.get(Z(l,c)),s:(l,c,u)=>N.set(Z(l,c),u),i(l,c,u,x=""){let $=Z(l,c),T=N.get($);if(!T){let v=c.map(xn),S=Pe(u);T=b?b(i([i(c,"\0"),x,S],"\0")):$,Re($,T,He(T,v,S,x,ve),v,u)}return T},k(l,c){let u="\0"+l,x=N.get(u);if(!x){let $=Object.keys(c).reduce((v,S)=>`${v}${S}{${Pe(c[S])}}`,"");x=b?b($):l;let T=`@keyframes ${x}{${$}}`;Re(u,x,T,[T],{})}return x},c:Ce,w(l,c){ae(c,l)}}},be,y,A=[],W=[],ie=[],ye=(e,n,t)=>{n||(n="DEFAULT");let r=y.t(e),s=r&&r[n];return!s&&F(t)&&(s=t(n)),w(s)?s&&be+s:s||D(`No theme value found for "${e}.${n}"`)},rn=(e,n)=>y.k(e,n||ye("keyframes",e)),Vn=(e,n,t)=>{let r=W.length;oe(),w(t)?Te(t):t(on),_(),y.s(e,n,i(W.slice(r)," "))},sn=(e,n,t)=>{if(F(t)||w(t))return!Vn(e,n,t);let r;if(P(t)&&(r=t[0],t=t[1]),M(t))return W.push(y.i(e,n,t,r))},Bn=(e,n)=>{let t=e==="group"&&y.a(e)||y.g(e,n);if(t!=null)return t&&W.push(t);let r=e;be="",r[0]==="-"&&(be="-",r=a(r));let s=r.split("-"),f;for(let p=s.length;p;p--){let b=i(s.slice(0,p));if(f=y.p(b),f){s=s.slice(p),s.unshift(b);break}}sn(e,n,F(f)?f(s,ye,{keyframes:rn,tag:y.a}):f)||y.w(e,`No translation for "${e}" found`)},we=e=>{e.length=0},an=e=>n=>(n&&e(n),""),oe=()=>{A.push("")},_=e=>{let n;for(;n=A.pop(););e&&n!=null&&A.push(n)},ln=an(e=>{A.push(e)}),cn=an(e=>{let n=j(ie),t=e==="&"?n:(n&&n+"-")+e;t&&Bn(t,A.filter(Boolean))}),Te=(e,n)=>{let t,r="";for(let s=0;s<e.length;)switch(t=e[s++]){case":":r=ln(r);break;case"(":ie.push(r),r="",oe();break;case")":case" ":case" ":case` | ||
`:case"\r":r?(r=cn(r),_(t!==")")):t===")"&&_(),t===")"&&ie.pop();break;default:r+=t}n?ln(r):cn(r)},ke=e=>{e&&(oe(),on(e),_())},_n=(e,n)=>{if(n){oe();let t=w(n)||P(n)||M(n);Te(e,t),t&&ke(n),_()}},gn=new WeakMap,Gn=0,on=e=>{if(w(e))Te(e);else if(P(e))e.forEach(ke);else if(F(e)){let n=gn.get(e);n||(n=`__${e.name}_${(++Gn).toString(36)}`,gn.set(e,n)),sn(n,A.filter(Boolean),e(ye,{keyframes:rn,tag:y.a}))}else M(e)&&Object.keys(e).forEach(n=>{_n(n,e[n])})},dn=(e,n)=>{if(y)return D("There is already an active context");y=n,we(W),we(A),we(ie);try{e.forEach(ke)}finally{y=void 0}return i(W," ")},se=e=>{let n=tn(e);return{cx:(...t)=>dn(Y(t),n),setup:n.c}};var mn=se(),{cx:fn}=mn,{setup:un}=mn;return Mn;})(); | ||
var beamwind=(()=>{var Se=Object.defineProperty,bn=e=>Se(e,"__esModule",{value:!0}),yn=(e,n)=>{bn(e);for(var t in n)Se(e,t,{get:n[t],enumerable:!0})},Mn={};yn(Mn,{apply:()=>Me,autoprefix:()=>Q,bw:()=>fn,compose:()=>C,convertTo:()=>g,corners:()=>ne,createInstance:()=>se,cssomInjector:()=>q,cyrb32:()=>ee,defaultToKey:()=>d,divideBy:()=>H,edges:()=>V,expandEdges:()=>K,fail:()=>D,join:()=>i,noOpInjector:()=>J,noprefix:()=>Ke,optional:()=>h,setup:()=>un,tail:()=>a,virtualInjector:()=>Ne,warn:()=>re});var le=(e,n)=>typeof e===n,w=e=>le(e,"string"),M=e=>e!=null&&le(e,"object"),P=Array.isArray,F=e=>le(e,"function"),Fe=e=>/^-?\d+(?:\.\d+)?$/.test(e),je=(e,n)=>Number(e.toFixed(n)),i=(e,n="-")=>e.join(n),j=(e,n)=>i(e.filter(Boolean),n),a=e=>e.slice(1),ce=(e,n)=>(n?`Invalid token ${n}: `:"")+e,D=(e,n)=>{throw new Error(ce(e,n))},ge=()=>{if(typeof Map=="function")return new Map;let e=Object.create(null);return{has(n){return n in e},get(n){return e[n]},set(n,t){e[n]=t}}},Tn=(e,n)=>{let t=[e[0]];for(let r=0;r<n.length;)w(n[r])?t[t.length-1]+=n[r]+e[++r]:(n[r]&&t.push(n[r]),t.push(e[++r]));return t},Y=e=>P(e[0])&&P(e[0].raw)?Tn(e[0],a(e)):e,Ee=(e,n)=>{let t=e.length;if(t===0)return 0;for(let r=0;r<t;){let s=t+r>>1;e[s]<=n?r=s+1:t=s}return t},k=(e,n)=>{if(!(e&&n))return e||n;let t=Object.create(null);return Object.keys(e).forEach(r=>{t[r]=e[r]}),Object.keys(n).forEach(r=>{t[r]=n[r]}),t},ze,wn={sticky:"@supports ((position: -webkit-sticky) or (position:sticky))","motion-reduce":"@media (prefers-reduced-motion:reduce)","motion-safe":"@media (prefers-reduced-motion:no-preference)"},U=e=>e.slice(0,6)==="group-",Ie=(e,n)=>(ze=n.screens[e])?`@media (min-width: ${ze})`:wn[e]||U(e)&&e||`:${e}`,Ae=typeof CSS!="undefined"&&CSS.escape||(e=>e.replace(/[!"#$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&")),kn=e=>e[0]===":",X=e=>e[0]==="@",Z=(e,n)=>{let t=i(n,":");return(t&&t+":")+e},$n=(e,n,t,r)=>n.reduce((s,f)=>(U(f)?`.${Ae(r("group"))}:${f.slice(6)} `:"")+s+(kn(f)?f:""),"."+Ae(e))+t,He=(e,n,t,r,s)=>n.reduceRight((f,p)=>X(p)?`${p}{${f}}`:f,`${$n(e,n,r,s)}{${t}}`),Oe=typeof window!="undefined",We="__beamwind",Cn=()=>{let e=document.getElementById(We);return e||(e=document.createElement("style"),e.id=We,document.head.appendChild(e))},Ne=({target:e=[]}={})=>({target:e,insert:(n,t)=>e.splice(t,0,n)}),q=({nonce:e,target:n=Cn().sheet}={})=>(e&&(n.ownerNode.nonce=e),{target:n,insert:n.insertRule.bind(n)}),J=()=>({target:null,insert:()=>{}}),Pn={screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px","2xl":"1536px"},colors:{current:"currentColor",transparent:"transparent",none:"transparent",surface:"#fff","on-surface":"#111",primary:"#0d3880","on-primary":"#e8ecf4",secondary:"#e60278","on-secondary":"#000",caution:"#ffc600","on-caution":"#1A202C",critical:"#d0011b","on-critical":"#f4e4e6",info:"#1e468c","on-info":"#e8ecf2",neutral:"#596581","on-neutral":"#eaebed",positive:"#138a08","on-positive":"#000",promote:"#9556b7","on-promote":"#f7f5f9"},spacing:{none:"0",0:"0",px:"1px",auto:"auto",full:"100%",base:".625rem",xs:".25rem",sm:".5rem",md:".875rem",lg:"1rem",xl:"1.25rem","2xl":"1.5rem","3xl":"2rem","4xl":"4rem","5xl":"5rem","6xl":"6rem"},sizes:{none:"0",0:"0",px:"1px",auto:"auto",full:"100%",min:"min-content",max:"max-content",prose:"65ch",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif',mono:'ui-monospace,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSize:{base:["1rem",{lineHeight:"1.5rem"}],xs:[".75rem",{lineHeight:"1rem"}],sm:[".875rem",{lineHeight:"1.25rem"}],md:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:".025em",wider:".05em",widest:".1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},borderWidth:{DEFAULT:"1px"},borderColor:{DEFAULT:"currentColor"},placeholderColor:{DEFAULT:"#9ca3af"},ringWidth:{DEFAULT:"3px"},ringOffsetWidth:{DEFAULT:"2px"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},order:{first:"-9999",last:"9999",none:"0"},strokeWidth:{px:"1px",xs:"1px",sm:"2px",md:"4px",lg:"8px",xl:"16px","2xl":"32px"},borderRadius:{DEFAULT:".25rem",none:"0",xs:".125rem",sm:".25rem",md:".375rem",lg:".5rem",xl:".75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},boxShadow:{DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)",none:"0 0 transparent",xs:"0 0 0 1px rgba(0,0,0,0.05)",sm:"0 1px 2px 0 rgba(0,0,0,0.05)",md:"0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06)",lg:"0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05)",xl:"0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",outline:"0 0 0 3px rgba(66,153,225,0.5)",focus:"0 0 0 3px rgba(66,153,225,0.5)"},transitionProperty:{DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",shadow:"box-shadow"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},durations:{DEFAULT:"150ms"},animation:{none:"none",spin:["1s linear infinite"],ping:["1s cubic-bezier(0,0,0.2,1) infinite"],pulse:["2s cubic-bezier(0.4,0,0.6,1) infinite"],bounce:["1s infinite"]},keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none","animation-timing-function":"cubic-bezier(0,0,0.2,1)"}}}},de=(e,n=Pn)=>{let t=k(n,{});return e=F(e)?e(n):e,e&&Object.keys(e).forEach(r=>{t[r]=k(n[r],e[r])}),Object.keys(t.screens).forEach(r=>{t.sizes[`screen-${r}`]=t.screens[r]}),t.borderColor=k(t.colors,t.borderColor),t.borderWidth=k(t.spacing,t.borderWidth),t.divideColor=k(t.borderColor,t.divideColor),t.divideWidth=k(t.borderWidth,t.divideWidth),t.placeholderColor=k(t.colors,t.placeholderColor),t.ringWidth=k(t.spacing,t.ringWidth),t.ringOffsetWidth=k(t.spacing,t.ringOffsetWidth),t},vn=/^(br|hy|us|wr|text-si|scroll-snap-t)/,Dn=/^(ap|us|tab-|border-e|margin-e|margin-s|padding-e|padding-s|border-sta)/,Rn=/^(ap|br|hy|us|wr|mas|colu|clip-|box-de|font-k|text-e|font-fe|shape-i|text-or|text-si|border-e|margin-e|margin-s|padding-e|padding-s|border-sta|background-cl|scroll-snap-t|text-decoration-)/,Sn=/^(pos|background-cl)/,me={},Ue=function(e){return me[e]?me[e]:me[e]=1*vn.test(e)|2*Dn.test(e)|4*Rn.test(e)},Le=function(e,n){return Sn.test(e)?n.replace(/(sticky|text)/,"-webkit-$1, $1"):n},Q=(e,n)=>{let t=`${e}:${Le(e,n)}`,r=t,s=Ue(e);return s&1&&(r+=`;-ms-${t}`),s&2&&(r+=`;-moz-${t}`),s&4&&(r+=`;-webkit-${t}`),r},Ke=(e,n)=>`${e}:${n}`,Fn=Math.imul||((e,n)=>{n|=0;let t=(e&4194303)*n;return e&4290772992&&(t+=(e&4290772992)*n|0),t|0}),ee=e=>{let n=9;for(let t=e.length;t--;)n=Fn(n^e.charCodeAt(t),1597334677);return"_"+((n^n>>>9)>>>0).toString(36)},L,fe,jn=e=>(fe=/\(\s*min-width:\s*(\d+(?:.\d+)?)(p)?/.exec(e))?+fe[1]/(fe[2]?16:1)/10:0,ue=e=>{L=0;for(let n=e.length;n--;)~"-:,".indexOf(e[n])&&++L;return L},Ve=["rst","st","d","en","nk","sited","pty","ecked","oup-h","oup-f","cus-w","ver","cus","cus-v","tive","sable"],En=e=>~(L=Ve.indexOf(e.slice(3,8)))?L:Ve.length,zn=(e,n)=>e|(X(n)?0:1<<En(U(n)?":"+n:n)),In=/^(?:(border-(?:[tlbr].{2,4}-)?(?:w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,An=e=>{let n=e[0]==="-"?e.slice(e.indexOf("-",1)+1):e,t=In.exec(n);return ue(n)+(t?+!!t[1]||-!!t[2]:0)+1},Hn=e=>e[0]==="-"?0:An(e),Be=e=>Math.max(0,15-e),On=(e,n)=>Be(ue(n)),Wn=e=>Be(Object.keys(e).filter(n=>e[n]).length),_e=(e,n)=>Object.keys(e).reduce((t,r)=>e[r]?Math.max(t,n(r,e[r])):t,0),Ge=(e,n)=>{let t=jn(e[0]||"");return((t&31)<<21|(ue(i((t?a(e):e).filter(X),";"))&15)<<17|e.reduce(zn,0)&131071)*(1<<12)+((Wn(n)&15)<<8|(_e(n,Hn)&15)<<4|_e(n,On)&15)},pe,Me=(...e)=>n=>n(Y(e)),Ye=(e,n)=>n?e+n:e,xe=(e,n,t,r)=>Ye(String(je(Number(e)/Number(n)*(r||1),7)),t),g=(e,n)=>t=>{if(n&&t==="screen")return`100v${n}`;if(Fe(t))return e==="rem"?xe(t,4,"rem"):Ye(t,e);if(e==="rem"&&(pe=/^(\d+)\/(\d+)$/.exec(t)))return xe(pe[1],pe[2],"%",100)},H=e=>n=>xe(n,e),d=e=>e,h=()=>"",Xe=e=>(n,t,r,s)=>{if(n){let f=t&&e(t);if(f&&f.length>0)return f.reduce((p,b)=>(p[j([r,b,s])]=n,p),{})}},Nn={t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]},ne=Xe(e=>Nn[e]),Un={x:"lr",y:"tb"},Ze={t:"top",r:"right",b:"bottom",l:"left"},K=e=>{let n=(Un[e]||e||"").split("").sort().reduce((t,r)=>{if(t&&Ze[r])return t.push(Ze[r]),t},[]);if(n&&n.length>0)return n},V=Xe(K),C=(e,...n)=>t=>n.reduce((r,s)=>r||s(t),e(t)),o,O=(e,n)=>parseInt(e,16)*(n||1),Ln=(e,n)=>e[0]==="#"?"rgba("+(e.length===4?`${O(e[1],17)},${O(e[2],17)},${O(e[3],17)}`:`${O(e.slice(1,3))},${O(e.slice(3,5))},${O(e.slice(5,7))}`)+`,${n})`:e,qe={x:"left",y:"top"},Kn={w:"width",h:"height"},E=e=>({[e[0]]:e[1]}),R=e=>({display:i(e)}),B=e=>({position:e[0]}),te=e=>({"text-transform":e[0]}),Je=(e,n)=>{switch(e[1]){case"solid":case"dashed":case"dotted":case"double":case"none":return{"border-style":e[1]};case"collapse":case"separate":return{"border-collapse":e[1]}}return(o=n(`${e[0]}Width`,e[1],C(g("px"),h)))?{border:i([o,"solid",n(`${e[0]}Color`,i(e.slice(2)),d)]," ")}:{"border-color":n(`${e[0]}Color`,i(a(e)),d)}},Qe=(e,n)=>(o=Kn[e[1]])&&{[`${e[0]}-${o}`]:n("sizes",i(e.slice(2)),g("rem",e[1]))},en=e=>(n,t)=>n[0][1]?V(t("spacing",n[1],g("rem")),n[0][1],e):{[e]:t("spacing",n[1],g("rem"))},z=en("padding"),I=en("margin"),he=e=>n=>{switch(n[1]){case"start":case"end":return{[e]:`flex-${n[1]}`};case"between":case"around":return{[e]:`space-${n[1]}`}}return{[e]:n[1]}},nn={shadow:(e,n,{tag:t})=>(o=n("boxShadow",e[1],h))&&{[`--${t("shadow")}`]:o,"box-shadow":[o,`var(--${t("ring-offset-shadow")},0 0 transparent),var(--${t("ring-shadow")},0 0 transparent),var(--${t("shadow")})`]},ring(e,n,{tag:t}){switch(e[1]){case"inset":return{[`--${t("ring-inset")}`]:"inset"};case"opacity":return{[`--${t("ring-opacity")}`]:n("opacity",e[2],H(100))};case"offset":return(o=n("ringWidth",e[2],C(g("px"),h)))?{[`--${t("ring-offset-width")}`]:o}:{[`--${t("ring-offset-color")}`]:n("colors",i(e.slice(2)),d)}}return(o=n("ringWidth",e[1],C(g("px"),h)))?{[`--${t("ring-offset-shadow")}`]:`var(--${t("ring-inset")},/*!*/ /*!*/) 0 0 0 var(--${t("ring-offset-width")},0px) var(--${t("ring-offset-color")},#fff)`,[`--${t("ring-shadow")}`]:`var(--${t("ring-inset")},/*!*/ /*!*/) 0 0 0 calc(${o} + var(--${t("ring-offset-width")},0px)) var(--${t("ring-color")},rgba(59,130,246,0.5))`,"box-shadow":`var(--${t("ring-offset-shadow")}),var(--${t("ring-shadow")}),var(--${t("shadow")},0 0 transparent)`}:{[`--${t("ring-opacity")}`]:"1",[`--${t("ring-color")}`]:Ln(n("colors",i(a(e)),d),`var(--${t("ring-opacity")})`)}},duration:(e,n)=>({"transition-duration":n("durations",e[1],g("ms"))}),delay:(e,n)=>({"transition-delay":n("durations",e[1],g("ms"))}),origin:e=>({"transform-origin":i(a(e)," ")}),cursor:e=>({cursor:i(a(e))}),select:e=>({"user-select":e[1]}),transform:(e,n,{tag:t})=>({transform:`translateX(var(--${t("transform-translate-x")},0)) translateY(var(--${t("transform-translate-y")},0)) rotate(var(--${t("transform-rotate")},0)) skewX(var(--${t("transform-skew-x")},0)) skewY(var(--${t("transform-skew-y")},0)) scaleX(var(--${t("transform-scale-x")},1)) scaleY(var(--${t("transform-scale-y")},1))`}),rotate:(e,n,{tag:t})=>(o=n("angle",e[1],g("deg")),{[`--${t("transform-rotate")}`]:o,transform:`rotate(${o})`}),scale(e,n,{tag:t}){return o=n("scale",e[2]||e[1],H(100)),{[`--${t("transform-scale-x")}`]:e[1]!=="y"&&o,[`--${t("transform-scale-y")}`]:e[1]!=="x"&&o,transform:`scale${e[2]?e[1].toUpperCase():""}(${o})`}},translate(e,n,{tag:t}){return o=n("spacing",e[2],g("rem")),{[`--${t("transform-translate-x")}`]:e[1]!=="y"&&o,[`--${t("transform-translate-y")}`]:e[1]!=="x"&&o,transform:`translate${e[1].toUpperCase()}(${o})`}},skew(e,n,{tag:t}){return o=n("angle",e[2],g("deg")),{[`--${t("transform-skew-x")}`]:e[1]!=="y"&&o,[`--${t("transform-skew-y")}`]:e[1]!=="x"&&o,transform:`skew${e[1].toUpperCase()}(${o})`}},"bg-gradient":(e,n,{tag:t})=>({"background-image":`linear-gradient(${e[1]==="to"&&(o=K(e[2]))?"to "+i(o," "):n("angle",i(a(e)," ")||"180",C(g("deg"),d))},var(--${t("gradient-stops")},var(--${t("gradient-from")},transparent),var(--${t("gradient-to")},transparent)))`}),from:(e,n,{tag:t})=>({[`--${t("gradient-from")}`]:n("colors",i(a(e)),d)}),via:(e,n,{tag:t})=>({[`--${t("gradient-stops")}`]:`var(--${t("gradient-from")},transparent),${n("colors",i(a(e)),d)},var(--${t("gradient-to")},transparent)`}),to:(e,n,{tag:t})=>({[`--${t("gradient-to")}`]:n("colors",i(a(e)),d)}),"pointer-events":e=>({"pointer-events":e[1]}),tracking:(e,n)=>({"letter-spacing":n("letterSpacing",e[1])}),leading:(e,n)=>({"line-height":n("lineHeight",e[1],g("rem"))}),align:e=>({"vertical-align":i(a(e))}),whitespace:e=>({"white-space":i(a(e))}),z:(e,n)=>({"z-index":n("zIndex",e[1],d)}),gap:(e,n)=>({gap:n("spacing",e[1],g("rem"))}),"stroke-current":{stroke:"currentColor"},stroke:(e,n)=>({"stroke-width":n("strokeWidth",e[1],d)}),fill:(e,n)=>({fill:n("colors",i(a(e)),d)}),outline:(e,n)=>({outline:`2px ${e[1]==="none"?"solid":"dotted"} ${n("colors",i(a(e)),d)}`,"outline-offset":"2px"}),appearance:e=>({appearance:i(a(e))}),opacity:(e,n)=>({opacity:n("opacity",e[1],H(100))}),ease:(e,n)=>({"transition-timing-function":n("transitionTimingFunction",i(a(e)),d)}),break(e){switch(e[1]){case"normal":return{"word-break":e[1],"overflow-wrap":e[1]};case"words":return{"overflow-wrap":"break-word"};case"all":return{"word-break":"break-all"}}},"no-underline":{"text-decoration":"none"},"line-through":{"text-decoration":"line-through"},w:(e,n)=>({width:n("sizes",e[1],C(g("rem","w"),d))}),h:(e,n)=>({height:n("sizes",e[1],C(g("rem","h"),d))}),text(e,n){switch(e[1]){case"left":case"center":case"right":case"justify":return{"text-align":e[1]};default:{let t=n("fontSize",e[1],h);return t?w(t)?{"font-size":t}:{"font-size":t[0],"line-height":w(t[1])?t[1]:t[1].lineHeight,"letter-spacing":t[1].letterSpacing}:{color:n("colors",i(a(e)),d)}}}},bg(e,n){switch(e[1]){case"fixed":case"local":case"scroll":return{"background-attachment":e[1]};case"bottom":case"center":case"left":case"right":case"top":return{"background-position":i(a(e)," ")};case"no":return e[2]==="repeat"&&{"background-repeat":i(a(e))};case"repeat":switch(e[2]){case"x":case"y":return{"background-repeat":i(a(e))}}return{"background-repeat":e[2]||e[1]};case"auto":case"cover":case"contain":return{"background-size":e[1]}}return{"background-color":n("colors",i(a(e)),d),color:n("colors",i(e[1]==="on"?e.slice(2):["on"].concat(a(e))),h)}},rounded:(e,n)=>ne(n("borderRadius",e[2],g("px")),e[1],"border","radius")||{"border-radius":n("borderRadius",e[1],g("px"))},"transition-none":{"transition-property":"none"},transition:(e,n)=>({transition:i([e[1]?n("transitionProperty",e[1],d):"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",n("durations",void 0,g("ms")),n("transitionTimingFunction")]," ")}),flex(e,n){switch(e[1]){case"row":case"col":return{"flex-direction":e[1]==="col"?j(["column",e[2]]):i(a(e))};case"nowrap":case"wrap":return{"flex-wrap":i(a(e))};case"grow":case"shrink":return{[`flex-${e[1]}`]:e[2]||"1"}}return(o=n("flex",e[1],h))?{flex:o}:R(e)},grid(e){switch(e[1]){case"cols":case"rows":return{[`grid-template-${e[1]==="cols"?"columns":e[1]}`]:e[2]==="none"?e[2]:`repeat(${e[2]}, minmax(0, 1fr))`};case"flow":return{[`grid-auto-${e[1]}`]:e[2]==="col"?j(["column",e[3]]," "):i(e.slice(2)," ")}}return R(e)},"not-italic":{"font-style":"normal"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"},hidden:R(["none"]),inline:R,block:R,table(e){switch(e[1]){case"auto":case"fixed":return{"table-layout":e[1]}}return R(e)},flow:R,d:e=>R(a(e)),static:B,fixed:B,absolute:B,relative:B,sticky:B,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},italic:{"font-style":"italic"},underline:{"text-decoration":"underline"},uppercase:te,lowercase:te,capitalize:te,"normal-case":te(["none"]),truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},resize(e){switch(e[1]){case"x":return{resize:"vertical"};case"y":return{resize:"horizontal"}}return{resize:e[1]||"both"}},clearfix:["::after",{content:'""',display:"table",clear:"both"}],object(e){switch(e[1]){case"contain":case"cover":case"fill":case"none":return{"object-fit":e[1]};case"scale":return{"object-fit":i(a(e))}}return{"object-position":i(a(e)," ")}},inset(e){switch(e[1]){case"0":case"auto":return{top:e[1],right:e[1],bottom:e[1],left:e[1]};case"y":return{top:e[2],bottom:e[2]};case"x":return{left:e[2],right:e[2]}}},items(e){switch(e[1]){case"start":case"end":return{"align-items":`flex-${e[1]}`}}return{"align-items":e[1]}},content:he("align-content"),justify:he("justify-content"),self:he("align-self"),order:(e,n)=>({order:n("order",e[1],d)}),col(e){switch(e[1]){case"auto":return{"grid-column":e[1]};case"span":return{"grid-column":e[2]==="full"?"1 / -1":`span ${e[2]} / span ${e[2]}`};case"start":case"end":return{[`grid-column-${e[1]}`]:e[2]}}},row(e){switch(e[1]){case"auto":return{"grid-row":e[1]};case"span":return{"grid-row":e[2]==="full"?"1 / -1":`span ${e[2]} / span ${e[2]}`};case"start":case"end":return{[`grid-row-${e[1]}`]:e[2]}}},subpixel:e=>e[1]==="antialiased"&&{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"},list(e){switch(e[1]){case"inside":case"outside":return{"list-style-position":e[1]}}return{"list-style-type":e[1]}},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},box:e=>({"box-sizing":`${e[1]}-box`}),float:E,clear:E,top:E,right:E,bottom:E,left:E,overflow(e){switch(e[1]){case"ellipsis":case"clip":return{"text-overflow":e[1]}}return e[2]?{[`overflow-${e[1]}`]:e[2]}:E(e)},p:z,py:z,px:z,pt:z,pr:z,pb:z,pl:z,m:I,my:I,mx:I,mt:I,mr:I,mb:I,ml:I,font:(e,n)=>(o=n("fontFamily",e[1],h))?{"font-family":o}:(o=n("fontWeight",e[1],d))&&{"font-weight":o},space:(e,n)=>[">:not([hidden])~:not([hidden])",(o=qe[e[1]])?{[`margin-${o}`]:n("spacing",e[2]||"base",g("rem"))}:(o=n("spacing",e[1]||"base",g("rem")))&&{"margin-left":o,"margin-top":o}],border:(e,n)=>(o=n("borderWidth",e[2],C(g("px"),h)),V(i([o||n("borderWidth","DEFAULT",h),"solid",n("borderColor",i(e.slice(o?3:2)),d)]," "),e[1],"border")||Je(e,n)),divide:(e,n)=>{let t=qe[e[1]];return o=t&&n("divideWidth",e[2]||"\0",C(g("px"),h)),[">:not([hidden])~:not([hidden])",t?{[`border-${t}`]:i([o||n("divideWidth","DEFAULT"),"solid",n("divideColor",i(e.slice(o?3:2)),d)]," ")}:Je(e,n)]},placeholder:(e,n)=>["::placeholder",{color:n("placeholderColor",i(a(e)),d)}],min:Qe,max:Qe,animate:(e,n,{keyframes:t})=>{let r=n("animation",o=i(a(e)),h);return r&&{animation:w(r)?r:`${t(r[1]||o)} ${r[0]}`}}},re=(e,n)=>console.warn(ce(e,n)),tn=e=>{let n=de(),t=nn,r,s,f=[],p=Q,b=ee,ae=re,N=ge(),$e=ge(),G=[],Ce=l=>(P(l)?l:[l]).forEach(({theme:c,plugins:u,init:x,injector:$,nonce:T=s,prefix:v=p,hash:S=b,warn:hn=ae}={})=>{$&&G.length>0&&D("Changing the injector after first use is not supported"),n=de(c,n),t=k(t,u),x&&f.push(x),r=$||r,s=T,p=v,b=S,ae=hn}),pn=(l,c)=>P(c)?i(c.filter(Boolean).map(u=>p(l,u)),";"):p(l,c),Pe=l=>Object.keys(l).reduce((c,u)=>l[u]?(c&&c+";")+pn(u,l[u]):c,""),xn=l=>Ie(l,n),ve=l=>b?b(l):l,De=(l,c)=>{r||(r=Oe?q({nonce:s}):J());let u=Ee(G,c);try{r.insert(l,u),G.splice(u,0,c)}catch(x){console.warn(x)}},Re=(l,c,u,x,$)=>{$e.has(c)||(!G.length&&f.length&&f.forEach(T=>T(v=>De(v,0),n)),De(u,Ge(x,$)),$e.set(c,!0)),N.set(l,c)};return Ce(e),{t:l=>n[l],p:l=>t[l],a:ve,g:(l,c)=>N.get(Z(l,c)),s:(l,c,u)=>N.set(Z(l,c),u),i(l,c,u,x=""){let $=Z(l,c),T=N.get($);if(!T){let v=c.map(xn),S=Pe(u);T=b?b(i([i(c,"\0"),x,S],"\0")):$,Re($,T,He(T,v,S,x,ve),v,u)}return T},k(l,c){let u="\0"+l,x=N.get(u);if(!x){let $=Object.keys(c).reduce((v,S)=>`${v}${S}{${Pe(c[S])}}`,"");x=b?b($):l;let T=`@keyframes ${x}{${$}}`;Re(u,x,T,[T],{})}return x},c:Ce,w(l,c){ae(c,l)}}},be,y,A=[],W=[],ie=[],ye=(e,n,t)=>{n||(n="DEFAULT");let r=y.t(e),s=r&&r[n];return!s&&F(t)&&(s=t(n)),w(s)?s&&be+s:s||D(`No theme value found for "${e}.${n}"`)},rn=(e,n)=>y.k(e,n||ye("keyframes",e)),Vn=(e,n,t)=>{let r=W.length;oe(),w(t)?Te(t):t(on),_(),y.s(e,n,i(W.slice(r)," "))},sn=(e,n,t)=>{if(F(t)||w(t))return!Vn(e,n,t);let r;if(P(t)&&(r=t[0],t=t[1]),M(t))return W.push(y.i(e,n,t,r))},Bn=(e,n)=>{let t=e==="group"&&y.a(e)||y.g(e,n);if(t!=null)return t&&W.push(t);let r=e;be="",r[0]==="-"&&(be="-",r=a(r));let s=r.split("-"),f;for(let p=s.length;p;p--){let b=i(s.slice(0,p));if(f=y.p(b),f){s=s.slice(p),s.unshift(b);break}}sn(e,n,F(f)?f(s,ye,{keyframes:rn,tag:y.a}):f)||y.w(e,`No translation for "${e}" found`)},we=e=>{e.length=0},an=e=>n=>(n&&e(n),""),oe=()=>{A.push("")},_=e=>{let n;for(;n=A.pop(););e&&n!=null&&A.push(n)},ln=an(e=>{A.push(e)}),cn=an(e=>{let n=j(ie),t=e==="&"?n:(n&&n+"-")+e;t&&Bn(t,A.filter(Boolean))}),Te=(e,n)=>{let t,r="";for(let s=0;s<e.length;)switch(t=e[s++]){case":":r=ln(r);break;case"(":ie.push(r),r="",oe();break;case")":case" ":case" ":case` | ||
`:case"\r":r?(r=cn(r),_(t!==")")):t===")"&&_(),t===")"&&ie.pop();break;default:r+=t}n?ln(r):cn(r)},ke=e=>{e&&(oe(),on(e),_())},_n=(e,n)=>{if(n){oe();let t=w(n)||P(n)||M(n);Te(e,t),t&&ke(n),_()}},gn=new WeakMap,Gn=0,on=e=>{if(w(e))Te(e);else if(P(e))e.forEach(ke);else if(F(e)){let n=gn.get(e);n||(n=`__${e.name}_${(++Gn).toString(36)}`,gn.set(e,n)),sn(n,A.filter(Boolean),e(ye,{keyframes:rn,tag:y.a}))}else M(e)&&Object.keys(e).forEach(n=>{_n(n,e[n])})},dn=(e,n)=>{if(y)return D("There is already an active context");y=n,we(W),we(A),we(ie);try{e.forEach(ke)}finally{y=void 0}return i(W," ")},se=e=>{let n=tn(e);return{bw:(...t)=>dn(Y(t),n),setup:n.c}};var mn=se(),{bw:fn}=mn,{setup:un}=mn;return Mn;})(); |
@@ -300,3 +300,3 @@ declare type DeepPartial<T> = T extends Function ? T : T extends object ? { | ||
interface Instance { | ||
cx: ClassNameCreator; | ||
bw: ClassNameCreator; | ||
setup: (options?: ConfigurationOptions | ConfigurationOptions[]) => void; | ||
@@ -341,6 +341,6 @@ } | ||
declare const cx: ClassNameCreator; | ||
declare const bw: ClassNameCreator; | ||
declare const setup: (options?: ConfigurationOptions | ConfigurationOptions[] | undefined) => void; | ||
export { ClassNameCreator, ConfigurationOptions, Declarations, DeepPartial, Falsy, Hasher, InjectKeyframes, Injector, InjectorConfig, InlinePlugin, Instance, OnInit, OnInitCallback, PartialTheme, Plugin, PluginApply, PluginContext, PluginResult, PluginTokenResult, Prefixer, Theme, ThemeAngle, ThemeAnimation, ThemeAnimationDefintion, ThemeBorderRadius, ThemeBoxShadow, ThemeColors, ThemeColorsWithDefault, ThemeConfiguration, ThemeDurations, ThemeFlex, ThemeFontFamily, ThemeFontSize, ThemeFontWeight, ThemeKeyframes, ThemeLetterSpacing, ThemeLineHeight, ThemeOpacity, ThemeOrder, ThemeScale, ThemeScreens, ThemeSizes, ThemeSpacing, ThemeStrokeWidth, ThemeTransitionProperty, ThemeTransitionTimingFunction, ThemeValueResolver, ThemeWidth, ThemeZIndex, Token, TokenGrouping, TokenParser, UnknownKeyHandler, WarnHandler, apply, autoprefix, compose, convertTo, corners, createInstance, cssomInjector, cx, cyrb32, defaultToKey, divideBy, edges, expandEdges, fail, join, noOpInjector, noprefix, optional, setup, tail, virtualInjector, consoleWarn as warn }; | ||
export { ClassNameCreator, ConfigurationOptions, Declarations, DeepPartial, Falsy, Hasher, InjectKeyframes, Injector, InjectorConfig, InlinePlugin, Instance, OnInit, OnInitCallback, PartialTheme, Plugin, PluginApply, PluginContext, PluginResult, PluginTokenResult, Prefixer, Theme, ThemeAngle, ThemeAnimation, ThemeAnimationDefintion, ThemeBorderRadius, ThemeBoxShadow, ThemeColors, ThemeColorsWithDefault, ThemeConfiguration, ThemeDurations, ThemeFlex, ThemeFontFamily, ThemeFontSize, ThemeFontWeight, ThemeKeyframes, ThemeLetterSpacing, ThemeLineHeight, ThemeOpacity, ThemeOrder, ThemeScale, ThemeScreens, ThemeSizes, ThemeSpacing, ThemeStrokeWidth, ThemeTransitionProperty, ThemeTransitionTimingFunction, ThemeValueResolver, ThemeWidth, ThemeZIndex, Token, TokenGrouping, TokenParser, UnknownKeyHandler, WarnHandler, apply, autoprefix, bw, compose, convertTo, corners, createInstance, cssomInjector, cyrb32, defaultToKey, divideBy, edges, expandEdges, fail, join, noOpInjector, noprefix, optional, setup, tail, virtualInjector, consoleWarn as warn }; | ||
//# sourceMappingURL=beamwind.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
580992