Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@beamwind/core

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beamwind/core - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

10

CHANGELOG.md

@@ -6,2 +6,12 @@ # Change Log

# [2.1.0](https://github.com/kenoxa/beamwind/compare/@beamwind/core@2.0.2...@beamwind/core@2.1.0) (2020-12-02)
### Bug Fixes
- cssom injector nonce handling ([6ca6c4d](https://github.com/kenoxa/beamwind/commit/6ca6c4d6c5212a0a8bd734367f0768cd79541fb4))
### Features
- support background images from theme ([492ffe0](https://github.com/kenoxa/beamwind/commit/492ffe063197d4af1a6ea2daff89e8e43d0855ed))
## [2.0.2](https://github.com/kenoxa/beamwind/compare/@beamwind/core@2.0.1...@beamwind/core@2.0.2) (2020-12-01)

@@ -8,0 +18,0 @@

52

esnext/core.js

@@ -79,34 +79,28 @@ // src/is.ts

var STYLE_ELEMENT_ID = "__beamwind";
var getStyleElement = () => {
var getStyleElement = (nonce) => {
let element = document.getElementById(STYLE_ELEMENT_ID);
if (element)
return element;
element = document.createElement("style");
element.id = STYLE_ELEMENT_ID;
return document.head.appendChild(element);
if (!element) {
element = document.createElement("style");
element.id = STYLE_ELEMENT_ID;
nonce && (element.nonce = nonce);
document.head.appendChild(element);
}
return element;
};
var virtualInjector = ({target = []} = {}) => {
return {
target,
insert: (rule, index) => target.splice(index, 0, rule)
};
};
var virtualInjector = ({target = []} = {}) => ({
target,
insert: (rule, index) => target.splice(index, 0, rule)
});
var cssomInjector = ({
nonce,
target = getStyleElement().sheet
} = {}) => {
if (nonce)
target.ownerNode.nonce = nonce;
return {
target,
insert: target.insertRule.bind(target)
};
};
var noOpInjector = () => {
return {
target: null,
insert: () => {
}
};
};
target = getStyleElement(nonce).sheet
} = {}) => ({
target,
insert: target.insertRule.bind(target)
});
var noOpInjector = () => ({
target: null,
insert: () => {
}
});

@@ -738,3 +732,3 @@ // src/theme.ts

}
return merge(withOpacityFallback("background-color", "bg", theme5("backgroundColor", tail(parts)), tag), withOpacityFallback("color", "text", theme5("textColor", parts[1] === "on" ? tail(parts, 2) : ["on"].concat(tail(parts)), true), tag));
return (_ = theme5("backgroundImage", tail(parts), true)) ? {"background-image": _} : merge(withOpacityFallback("background-color", "bg", theme5("backgroundColor", tail(parts)), tag), withOpacityFallback("color", "text", theme5("textColor", parts[1] === "on" ? tail(parts, 2) : ["on"].concat(tail(parts)), true), tag));
},

@@ -741,0 +735,0 @@ rounded: (parts, theme5) => corners(theme5("borderRadius", tail(parts, 2), true), parts[1], "border", "radius") || {

@@ -81,34 +81,28 @@ var __assign = Object.assign;

var STYLE_ELEMENT_ID = "__beamwind";
var getStyleElement = () => {
var getStyleElement = (nonce) => {
let element = document.getElementById(STYLE_ELEMENT_ID);
if (element)
return element;
element = document.createElement("style");
element.id = STYLE_ELEMENT_ID;
return document.head.appendChild(element);
if (!element) {
element = document.createElement("style");
element.id = STYLE_ELEMENT_ID;
nonce && (element.nonce = nonce);
document.head.appendChild(element);
}
return element;
};
var virtualInjector = ({target = []} = {}) => {
return {
target,
insert: (rule, index) => target.splice(index, 0, rule)
};
};
var virtualInjector = ({target = []} = {}) => ({
target,
insert: (rule, index) => target.splice(index, 0, rule)
});
var cssomInjector = ({
nonce,
target = getStyleElement().sheet
} = {}) => {
if (nonce)
target.ownerNode.nonce = nonce;
return {
target,
insert: target.insertRule.bind(target)
};
};
var noOpInjector = () => {
return {
target: null,
insert: () => {
}
};
};
target = getStyleElement(nonce).sheet
} = {}) => ({
target,
insert: target.insertRule.bind(target)
});
var noOpInjector = () => ({
target: null,
insert: () => {
}
});

@@ -732,3 +726,3 @@ // src/theme.ts

}
return merge(withOpacityFallback("background-color", "bg", theme5("backgroundColor", tail(parts)), tag), withOpacityFallback("color", "text", theme5("textColor", parts[1] === "on" ? tail(parts, 2) : ["on"].concat(tail(parts)), true), tag));
return (_ = theme5("backgroundImage", tail(parts), true)) ? {"background-image": _} : merge(withOpacityFallback("background-color", "bg", theme5("backgroundColor", tail(parts)), tag), withOpacityFallback("color", "text", theme5("textColor", parts[1] === "on" ? tail(parts, 2) : ["on"].concat(tail(parts)), true), tag));
},

@@ -735,0 +729,0 @@ rounded: (parts, theme5) => corners(theme5("borderRadius", tail(parts, 2), true), parts[1], "border", "radius") || {

@@ -129,34 +129,28 @@ var __create = Object.create;

var STYLE_ELEMENT_ID = "__beamwind";
var getStyleElement = () => {
var getStyleElement = (nonce) => {
let element = document.getElementById(STYLE_ELEMENT_ID);
if (element)
return element;
element = document.createElement("style");
element.id = STYLE_ELEMENT_ID;
return document.head.appendChild(element);
if (!element) {
element = document.createElement("style");
element.id = STYLE_ELEMENT_ID;
nonce && (element.nonce = nonce);
document.head.appendChild(element);
}
return element;
};
var virtualInjector = ({target = []} = {}) => {
return {
target,
insert: (rule, index) => target.splice(index, 0, rule)
};
};
var virtualInjector = ({target = []} = {}) => ({
target,
insert: (rule, index) => target.splice(index, 0, rule)
});
var cssomInjector = ({
nonce,
target = getStyleElement().sheet
} = {}) => {
if (nonce)
target.ownerNode.nonce = nonce;
return {
target,
insert: target.insertRule.bind(target)
};
};
var noOpInjector = () => {
return {
target: null,
insert: () => {
}
};
};
target = getStyleElement(nonce).sheet
} = {}) => ({
target,
insert: target.insertRule.bind(target)
});
var noOpInjector = () => ({
target: null,
insert: () => {
}
});

@@ -788,3 +782,3 @@ // src/theme.ts

}
return merge(withOpacityFallback("background-color", "bg", theme5("backgroundColor", tail(parts)), tag), withOpacityFallback("color", "text", theme5("textColor", parts[1] === "on" ? tail(parts, 2) : ["on"].concat(tail(parts)), true), tag));
return (_ = theme5("backgroundImage", tail(parts), true)) ? {"background-image": _} : merge(withOpacityFallback("background-color", "bg", theme5("backgroundColor", tail(parts)), tag), withOpacityFallback("color", "text", theme5("textColor", parts[1] === "on" ? tail(parts, 2) : ["on"].concat(tail(parts)), true), tag));
},

@@ -791,0 +785,0 @@ rounded: (parts, theme5) => corners(theme5("borderRadius", tail(parts, 2), true), parts[1], "border", "radius") || {

{
"name": "@beamwind/core",
"version": "2.0.2",
"version": "2.1.0",
"description": "compiles tailwind like shorthand syntax into css at runtime",

@@ -27,3 +27,3 @@ "keywords": [

},
"gitHead": "b1d2f0cf1af2025d2984df82c0c2f56fbc27ae54",
"gitHead": "cf4a7d776f242b18061bdce145b6aee56be12fdb",
"exports": {

@@ -30,0 +30,0 @@ ".": {

@@ -1,2 +0,2 @@

var core=(()=>{var $e=Object.defineProperty,m=Object.assign,mn=e=>$e(e,"__esModule",{value:!0}),pn=(e,n)=>{mn(e);for(var t in n)$e(e,t,{get:n[t],enumerable:!0})},Un={};pn(Un,{apply:()=>Ue,autoprefix:()=>J,bw:()=>cn,corners:()=>Q,createInstance:()=>re,cssomInjector:()=>X,cyrb32:()=>q,edges:()=>S,expandEdges:()=>D,join:()=>s,mode:()=>ee,noOpInjector:()=>K,noprefix:()=>He,setup:()=>ln,strict:()=>qe,tail:()=>r,theme:()=>un,virtualInjector:()=>Ee,warn:()=>ne});var ie=(e,n)=>typeof e===n,y=e=>ie(e,"string"),_=e=>e!=null&&ie(e,"object"),v=Array.isArray,C=e=>ie(e,"function"),s=(e,n="-")=>e.join(n),M=(e,n)=>s(e.filter(Boolean),n),r=(e,n=1)=>e.slice(n),Te=e=>e,F=()=>{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}}},hn=(e,n)=>{let t=[e[0]];for(let o=0;o<n.length;)y(n[o])?t[t.length-1]+=n[o]+e[++o]:(n[o]&&t.push(n[o]),t.push(e[++o]));return t},B=e=>v(e[0])&&v(e[0].raw)?hn(e[0],r(e)):e,ve=(e,n)=>{let t=e.length;if(t===0)return 0;for(let o=0;o<t;){let l=t+o>>1;e[l]<=n?o=l+1:t=l}return t},R=(e,n)=>e&&n?m(m({},e),n):e||n||{},ke=typeof CSS!="undefined"&&CSS.escape||(e=>e.replace(/[!"#$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&")),Ce=e=>e.slice(0,7)===":group-",xn=e=>e[0]===":"&&!Ce(e),G=e=>e[0]==="@",Y=(e,n)=>{let t=s(n,"");return(t&&r(t)+":")+e},bn=(e,n,t,o)=>t(n.reduce((l,a)=>(Ce(a)?`.${ke(o("group"))}:${r(a,7)} `:"")+l+(xn(a)?a:""),"."+ke(e))),Re=(e,n,t,o,l)=>n.reduceRight((a,d)=>G(d)?`${d}{${a}}`:a,`${bn(e,n,o,l)}{${t}}`),Se=typeof window!="undefined",Pe="__beamwind",yn=()=>{let e=document.getElementById(Pe);return e||(e=document.createElement("style"),e.id=Pe,document.head.appendChild(e))},Ee=({target:e=[]}={})=>({target:e,insert:(n,t)=>e.splice(t,0,n)}),X=({nonce:e,target:n=yn().sheet}={})=>(e&&(n.ownerNode.nonce=e),{target:n,insert:n.insertRule.bind(n)}),K=()=>({target:null,insert:()=>{}}),je={breakpoints:e=>Object.keys(e).reduce((n,t)=>(n["screen-"+t]=e[t],n),{})},De=(e,n)=>{let t=F(),o=(a,d)=>{let f=a[d];return C(f)?f(l,je):f},l=(a,d,f)=>{let $=t.get(a);if($||($=R(o(e,a),o(n,a)),t.set(a,$)),d){let T=$[d];return C(T)&&(T=T(l,je)),T==null?f:T}return $};return l.extend=a=>(a=C(a)?a(l):a,De(R(e,a),a&&a.extend?Object.keys(a.extend).reduce((d,f)=>(d[f]=R(d[f],a.extend[f]),d),R({},n)):n)),l},Oe=De({screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor"},durations:{},spacing:{px:"1px",0:"0px"},animation:{none:"none"},backgroundColor:e=>e("colors"),backgroundImage:{none:"none"},backgroundOpacity:e=>e("opacity"),borderColor:e=>m(m({},e("colors")),{DEFAULT:"currentColor"}),borderOpacity:e=>e("opacity"),borderRadius:{none:"0px",DEFAULT:"0.25rem",full:"9999px"},borderWidth:{DEFAULT:"1px"},boxShadow:{none:"0 0 transparent"},divideColor:e=>e("borderColor"),divideOpacity:e=>e("borderOpacity"),divideWidth:e=>e("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:"ui-sans-serif,system-ui,sans-serif",serif:"ui-serif,serif",mono:"ui-monospace,monospace"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["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"},gap:e=>e("spacing"),gradientColorStops:e=>e("colors"),height:e=>m(m({auto:"auto"},e("spacing")),{full:"100%",screen:"100vh"}),inset:e=>m(m({auto:"auto"},e("spacing")),{full:"100%"}),keyframes:{},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:e=>m({auto:"auto"},e("spacing")),maxHeight:e=>m(m({},e("spacing")),{full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:n})=>m({none:"none",0:"0rem",full:"100%",min:"min-content",max:"max-content"},n(e("screens"))),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{0:"0",25:"0.25",50:"0.5",75:"0.75",100:"1"},order:{first:"-9999",last:"9999",none:"0"},outline:{none:["2px solid transparent","2px"]},padding:e=>e("spacing"),placeholderColor:e=>e("colors"),placeholderOpacity:e=>e("opacity"),ringColor:e=>m({DEFAULT:"#3b82f6"},e("colors")),ringOffsetColor:e=>e("colors"),ringOffsetWidth:{},ringOpacity:e=>m({DEFAULT:"0.5"},e("opacity")),ringWidth:{DEFAULT:"3px"},rotate:{},scale:{},skew:{},space:e=>e("spacing"),stroke:{current:"currentColor"},strokeWidth:{},textColor:e=>e("colors"),textOpacity:e=>e("opacity"),transitionDuration:e=>m({DEFAULT:"150ms"},e("durations")),transitionDelay:e=>e("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)"},translate:e=>m(m({},e("spacing")),{full:"100%"}),width:e=>m(m({auto:"auto"},e("spacing")),{full:"100%",screen:"100vw",min:"min-content",max:"max-content"}),zIndex:{auto:"auto"}},{}),wn=/^(br|hy|us|wr|text-si|scroll-snap-t)/,$n=/^(ap|us|tab-|border-e|margin-e|margin-s|padding-e|padding-s|border-sta)/,Tn=/^(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-)/,vn=/^(pos|background-cl)/,se={},Ie=function(e){return se[e]?se[e]:se[e]=1*wn.test(e)|2*$n.test(e)|4*Tn.test(e)},Ae=function(e,n){return vn.test(e)?n.replace(/(sticky|text)/,"-webkit-$1, $1"):n},J=(e,n)=>{let t=`${e}:${Ae(e,n)}`,o=t,l=Ie(e);return l&1&&(o+=`;-ms-${t}`),l&2&&(o+=`;-moz-${t}`),l&4&&(o+=`;-webkit-${t}`),o},He=(e,n)=>`${e}:${n}`,kn=Math.imul||((e,n)=>{n|=0;let t=(e&4194303)*n;return e&4290772992&&(t+=(e&4290772992)*n|0),t|0}),q=e=>{let n=9;for(let t=e.length;t--;)n=kn(n^e.charCodeAt(t),1597334677);return"_"+((n^n>>>9)>>>0).toString(36)},Ve,Cn={":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)"},ze=(e,n)=>(Ve=n("screens",r(e)))?`@media (min-width: ${Ve})`:Cn[e]||e,L,ae,Rn=e=>(ae=/\(\s*min-width:\s*(\d+(?:.\d+)?)(p)?/.exec(e))?+ae[1]/(ae[2]?15:1)/10:0,ce=e=>{L=0;for(let n=e.length;n--;)~"-:,".indexOf(e[n])&&++L;return L},Fe=["rst","st","d","en","nk","sited","pty","ecked","oup-h","oup-f","cus-w","ver","cus","cus-v","tive","sable"],Sn=e=>~(L=Fe.indexOf(e.slice(3,8)))?L:Fe.length,Pn=(e,n)=>e|(G(n)?0:1<<Sn(n)),En=/^(?:(border-(?:[tlbr].{2,4}-)?(?:w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,jn=e=>{let n=e[0]==="-"?r(e,e.indexOf("-",1)+1):e,t=En.exec(n);return ce(n)+(t?+!!t[1]||-!!t[2]:0)+1},Dn=e=>e[0]==="-"?0:jn(e),Le=e=>Math.max(0,15-e),On=(e,n)=>Le(ce(n)),In=e=>Le(Object.keys(e).filter(n=>e[n]).length),We=(e,n)=>Object.keys(e).reduce((t,o)=>e[o]?Math.max(t,n(o,e[o])):t,0),Ne=(e,n)=>{let t=Rn(e[0]||"");return((t&31)<<21|(ce(s((t?r(e):e).filter(G),";"))&15)<<17|e.reduce(Pn,0)&131071)*(1<<12)+((In(n)&15)<<8|(We(n,Dn)&15)<<4|We(n,On)&15)},Ue=(...e)=>n=>n(B(e)),_e=e=>(n,t,o,l)=>{if(n){let a=t&&e(t);if(a&&a.length>0)return a.reduce((d,f)=>(d[M([o,f,l])]=n,d),{})}},An={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"]},Q=_e(e=>An[e]),Hn={x:"lr",y:"tb"},Me={t:"top",r:"right",b:"bottom",l:"left"},D=e=>{let n=(Hn[e]||e||"").split("").sort().reduce((t,o)=>{if(t&&Me[o])return t.push(Me[o]),t},[]);if(n&&n.length>0)return n},S=_e(D),i,Vn=e=>e[0].toUpperCase()+r(e),le=(e,n)=>Math.round(parseInt(e,16)*n),Be=(e,n)=>{if(e&&e[0]==="#"){let t=(e.length-1)/3,o=[17,1,.062272][t-1];return`rgba(${le(e.substr(1,t),o)},${le(e.substr(1+t,t),o)},${le(e.substr(1+2*t,t),o)},var(--${n}))`}return e},W=(e,n,t,o)=>t?{[`--${o(n+"-opacity")}`]:"1",[e]:(i=Be(t,o(n+"-opacity")))&&i!==t?[t,i]:t}:void 0,N=e=>({[e[0]]:s(r(e))}),P=e=>({display:s(e)}),U=e=>({position:e[0]}),H=e=>({"text-transform":e[0]}),V=e=>({"text-decoration":s(e)}),Z=(e,n)=>({[e[0]]:n("inset",r(e))}),Ge=(e,n,t)=>{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]};case"opacity":return{[`--${t(e[0]+"-opacity")}`]:n("borderOpacity",r(e,2))}}return(i=n(`${e[0]}Width`,r(e),!0))?{"border-width":i}:W("border-color",e[0],n(`${e[0]}Color`,r(e)),t)},Ye=(e,n)=>(i={w:"width",h:"height"}[e[1]])&&{[`${e[0]}-${i}`]:n(`${e[0]}${Vn(i)}`,r(e,2))},Xe=e=>(n,t)=>n[0][1]?S(t(e,r(n)),n[0][1],e):{[e]:t(e,r(n))},O=Xe("padding"),I=Xe("margin"),Ke=e=>n=>{switch(n[1]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return n[2]&&{[`grid-${e}`]:n[2]==="full"?"1 / -1":`span ${n[2]} / span ${n[2]}`};case"start":case"end":return n.length===3&&{[`grid-${e}-${n[1]}`]:n[2]}}},ue=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]}},Je={shadow:(e,n,{tag:t})=>(i=n("boxShadow",r(e)))&&{[`--${t("shadow")}`]:i,"box-shadow":[i,`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("ringOpacity",r(e,2))};case"offset":return(i=n("ringOffsetWidth",r(e,2),!0))?{[`--${t("ring-offset-width")}`]:i}:{[`--${t("ring-offset-color")}`]:n("ringOffsetColor",r(e,2))}}return(i=n("ringWidth",r(e),!0))?{[`--${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(${i} + 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")}`]:Be(n("ringColor",r(e)),t("ring-opacity"))}},duration:(e,n)=>({"transition-duration":n("transitionDuration",r(e))}),delay:(e,n)=>({"transition-delay":n("transitionDelay",r(e))}),origin:e=>({"transform-origin":s(r(e)," ")}),cursor:N,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})=>(i=n("rotate",r(e)))&&{[`--${t("transform-rotate")}`]:i,transform:`rotate(${i})`},scale:(e,n,{tag:t})=>(i=n("scale",[e[2]||e[1]]))&&{[`--${t("transform-scale-x")}`]:e[1]!=="y"&&i,[`--${t("transform-scale-y")}`]:e[1]!=="x"&&i,transform:`scale${e[2]?e[1].toUpperCase():""}(${i})`},translate:(e,n,{tag:t})=>(i=n("translate",r(e,2)))&&{[`--${t("transform-translate-x")}`]:e[1]!=="y"&&i,[`--${t("transform-translate-y")}`]:e[1]!=="x"&&i,transform:`translate${e[1].toUpperCase()}(${i})`},skew:(e,n,{tag:t})=>(i=n("skew",r(e,2)))&&{[`--${t("transform-skew-x")}`]:e[1]!=="y"&&i,[`--${t("transform-skew-y")}`]:e[1]!=="x"&&i,transform:`skew${e[1].toUpperCase()}(${i})`},"bg-gradient":(e,n,{tag:t})=>(i=e[1]==="to"&&(i=D(e[2]))?"to "+s(i," "):n("rotate",r(e)))&&{"background-image":`linear-gradient(${i},var(--${t("gradient-stops")},var(--${t("gradient-from")},transparent),var(--${t("gradient-to")},transparent)))`},from:(e,n,{tag:t})=>(i=n("gradientColorStops",r(e)))&&{[`--${t("gradient-from")}`]:i},via:(e,n,{tag:t})=>(i=n("gradientColorStops",r(e)))&&{[`--${t("gradient-stops")}`]:`var(--${t("gradient-from")},transparent),${i},var(--${t("gradient-to")},transparent)`},to:(e,n,{tag:t})=>(i=n("gradientColorStops",r(e)))&&{[`--${t("gradient-to")}`]:i},"pointer-events-none":{"pointer-events":"none"},"pointer-events-auto":{"pointer-events":"auto"},tracking:(e,n)=>({"letter-spacing":n("letterSpacing",r(e))}),leading:(e,n)=>({"line-height":n("lineHeight",r(e))}),align:e=>({"vertical-align":s(r(e))}),whitespace:e=>({"white-space":s(r(e))}),z:(e,n)=>({"z-index":n("zIndex",r(e))}),gap:(e,n)=>({gap:n("gap",r(e))}),stroke:(e,n)=>(i=n("stroke",r(e),!0))?{stroke:i}:{"stroke-width":n("strokeWidth",r(e))},fill:(e,n)=>({fill:n("fill",r(e))}),outline:(e,n)=>(i=n("outline",r(e)))&&{outline:i[0],"outline-offset":i[1]},appearance:N,opacity:(e,n)=>({opacity:n("opacity",r(e))}),ease:(e,n)=>({"transition-timing-function":n("transitionTimingFunction",r(e))}),break(e){switch(e[1]){case"normal":return{"word-break":"normal","overflow-wrap":"normal"};case"words":return{"overflow-wrap":"break-word"};case"all":return{"word-break":"break-all"}}},w:(e,n)=>({width:n("width",r(e))}),h:(e,n)=>({height:n("height",r(e))}),underline:V,"no-underline":V(["none"]),"line-through":V,"text-underline":V(["underline"]),"text-no-underline":V(["none"]),"text-line-through":V(["line","through"]),uppercase:H,lowercase:H,capitalize:H,"normal-case":H(["none"]),"text-normal-case":H(["none"]),text(e,n,{tag:t}){switch(e[1]){case"left":case"center":case"right":case"justify":return{"text-align":e[1]};case"uppercase":case"lowercase":case"capitalize":return H(r(e));case"opacity":return{[`--${t("text-opacity")}`]:n("textOpacity",r(e,2))}}let o=n("fontSize",r(e),!0);return o?y(o)?{"font-size":o}:{"font-size":o[0],"line-height":y(o[1])?o[1]:o[1].lineHeight,"letter-spacing":o[1].letterSpacing}:W("color","text",n("textColor",r(e)),t)},bg(e,n,{tag:t}){switch(e[1]){case"fixed":case"local":case"scroll":return{"background-attachment":s(r(e),",")};case"bottom":case"center":case"left":case"right":case"top":return{"background-position":s(r(e)," ")};case"no":return e[2]==="repeat"&&{"background-repeat":s(r(e))};case"auto":case"cover":case"contain":return{"background-size":e[1]};case"repeat":switch(e[2]){case"x":case"y":return{"background-repeat":s(r(e))}}return{"background-repeat":e[2]||e[1]};case"opacity":return{[`--${t("bg-opacity")}`]:n("backgroundOpacity",r(e,2))}}return R(W("background-color","bg",n("backgroundColor",r(e)),t),W("color","text",n("textColor",e[1]==="on"?r(e,2):["on"].concat(r(e)),!0),t))},rounded:(e,n)=>Q(n("borderRadius",r(e,2),!0),e[1],"border","radius")||{"border-radius":n("borderRadius",r(e))},"transition-none":{"transition-property":"none"},transition:(e,n)=>({transition:M([n("transitionProperty",r(e)),n("transitionDuration",[]),n("transitionTimingFunction",[])]," ")}),flex(e,n){switch(e[1]){case"row":case"col":return{"flex-direction":s(e[1]==="col"?["column"].concat(r(e,2)):r(e,1))};case"nowrap":case"wrap":return{"flex-wrap":s(r(e))};case"grow":case"shrink":return{[`flex-${e[1]}`]:e[2]||"1"}}return(i=n("flex",r(e),!0))?{flex:i}:P(e)},grid(e){switch(e[1]){case"cols":case"rows":return e.length>2&&{[`grid-template-${e[1]==="cols"?"columns":e[1]}`]:e.length===3&&Number(e[2])?`repeat(${e[2]},minmax(0,1fr))`:s(r(e,2)," ")};case"flow":return e.length>2&&{"grid-auto-flow":s(e[2]==="col"?["column"].concat(r(e,3)):r(e,2)," ")}}return P(e)},auto(e){switch(e[1]){case"cols":case"rows":return(i=e.length===3?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[2]]||`minmax(0,${e[2]})`:e.length>3&&`minmax(${s(r(e,2),",")})`)&&{[`grid-auto-${e[1]==="cols"?"columns":"rows"}`]:i}}},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"},hidden:P(["none"]),inline:P,block:P,table(e){switch(e[1]){case"auto":case"fixed":return{"table-layout":e[1]}}return P(e)},flow:P,d:e=>P(r(e)),static:U,fixed:U,absolute:U,relative:U,sticky:U,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},resize:e=>e.length<=2&&{resize:{x:"vertical",y:"horizontal"}[e[1]]||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":s(r(e))}}return{"object-position":s(r(e)," ")}},top:Z,right:Z,bottom:Z,left:Z,inset:(e,n)=>(i=D(e[1]))?S(n("inset",r(e,2)),e[1]):(i=n("inset",r(e)))&&{top:i,right:i,bottom:i,left:i},items(e){switch(e[1]){case"start":case"end":return{"align-items":`flex-${e[1]}`}}return{"align-items":e[1]}},content:ue("align-content"),justify:ue("justify-content"),self:ue("align-self"),order:(e,n)=>({order:n("order",r(e))}),col:Ke("column"),row:Ke("row"),"subpixel-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":s(r(e))}},"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:N,clear:N,overflow(e){switch(e[1]){case"ellipsis":case"clip":return{"text-overflow":e[1]}}return e[2]?{[`overflow-${e[1]}`]:e[2]}:N(e)},p:O,py:O,px:O,pt:O,pr:O,pb:O,pl:O,m:I,my:I,mx:I,mt:I,mr:I,mb:I,ml:I,italic:{"font-style":"italic"},"not-italic":{"font-style":"normal"},"font-italic":{"font-style":"italic"},"font-not-italic":{"font-style":"normal"},font:(e,n)=>(i=n("fontFamily",r(e),!0))?{"font-family":i}:{"font-weight":n("fontWeight",r(e))},space:(e,n)=>(i={x:"l",y:"t"}[e[1]])&&[">:not([hidden])~:not([hidden])",S(n("space",r(e,2)),i,"margin")],border:(e,n,{tag:t})=>D(e[1])?S(n("borderWidth",r(e,2)),e[1],"border","width"):Ge(e,n,t),divide:(e,n,{tag:t})=>(i=(i={x:"l",y:"t"}[e[1]])?S(n("divideWidth",r(e,2)),i,"border","width"):Ge(e,n,t))&&[">:not([hidden])~:not([hidden])",i],placeholder:(e,n,{tag:t})=>(i=e[1]==="opacity"?{[`--${t("placeholder-opacity")}`]:n("placeholderOpacity",r(e,2))}:W("color","placeholder",n("placeholderColor",r(e)),t))&&["::placeholder",i],min:Ye,max:Ye,animate:(e,n,{keyframes:t})=>{let o=n("animation",i=r(e));return o&&{animation:y(o)?o:`${t(o[1]||s(i))} ${o[0]}`}}},ee=e=>({unknown(n,t,o){o||e(`No theme value found for ${n}[${JSON.stringify(s(t)||"DEFAULT")}]`)},warn(n,t){e((t?`[${t}] `:"")+n)}}),ne=ee(e=>console.warn(e)),qe=ee(e=>{throw new Error(e)}),Qe=e=>{let n=Oe,t=Je,o,l,a=[],d=J,f=q,$=ne,T=F(),pe=F(),oe=[],he=c=>(v(c)?c:[c]).forEach(({theme:u,plugins:g,init:p,injector:x,nonce:w=l,prefix:k=d,hash:j=f,mode:fn=$}={})=>{if(x&&oe.length>0)throw new Error("Changing the injector after first use is not supported");u&&(n=n.extend(u)),t=R(t,g),p&&a.push(p),o=x||o,l=w,d=k,f=j,$=fn}),dn=(c,u)=>v(u)?s(u.filter(Boolean).map(g=>d(c,g)),";"):d(c,u),xe=c=>Object.keys(c).reduce((u,g)=>c[g]?(u&&u+";")+dn(g,c[g]):u,""),gn=c=>ze(c,n),be=c=>f?f(c):c,ye=(c,u)=>{o||(o=Se?X({nonce:l}):K());let g=ve(oe,u);try{o.insert(c,g),oe.splice(g,0,u)}catch(p){/:-[mwo]/.test(c)||$.warn(p.message)}},we=(c,u,g,p,x)=>{pe.has(u)||(a.length&&(a.forEach(w=>w(k=>ye(k,0),n)),a.length=0),ye(g,Ne(p,x)),pe.set(u,!0)),T.set(c,u)};return he(e),{t:(c,u,g)=>{let p=v(u)?u:[u],x=n(c,s(p)||"DEFAULT");return x==null?$.unknown(c,p,g,n):x},p:c=>t[c],a:be,r:(c,u,g)=>n(c,u,g),g:(c,u)=>T.get(Y(c,u)),s:(c,u,g)=>T.set(Y(c,u),g),i(c,u,g,p=Te){let x=Y(c,u),w=T.get(x);if(!w){let k=u.map(gn),j=xe(g);w=f?f(s([s(k,"\0"),p(""),j],"\0")):x,we(x,w,Re(w,k,j,p,be),k,g)}return w},k(c,u){let g="\0"+c,p=T.get(g);if(!p){let x=Object.keys(u).reduce((k,j)=>`${k}${j}{${xe(u[j])}}`,"");p=f?f(x):c;let w=`@keyframes ${p}{${x}}`;we(g,p,w,[w],{})}return p},c:he,w(c,u){$.warn(u,c)}}},de,b,E=[],z=[],Ze=(e,n,t)=>{let o=b.t(e,n,t);return de&&o&&y(o)?`calc(${o} * -1)`:o},en=(e,n)=>b.k(e,n||b.t("keyframes",e)||{}),zn=(e,n,t)=>{let o=z.length;A(),y(t)?ge(t):t(nn),te(),b.s(e,n,s(r(z,o)," "))},tn=(e,n,t)=>{if(C(t)||y(t))return!zn(e,n,t);let o;if(v(t)&&(o=t[0],t=t[1]),_(t))return z.push(b.i(e,n,t,y(o)?l=>l+o:o))},Fn=(e,n)=>{let t=e==="group"&&b.a(e)||b.g(e,n);if(t!=null)return t&&z.push(t);let o=e;de="",o[0]==="-"&&(de="-",o=r(o));let l=o.split("-"),a;for(let d=l.length;d;d--){let f=s(l.slice(0,d));if(a=b.p(f),a){l=r(l,d),l.unshift(f);break}}tn(e,n,C(a)?a(l,Ze,{keyframes:en,tag:b.a}):a)||b.w(e,a?`Plugin "${l[0]}" had no result`:`No plugin for "${o}" found`)},rn=e=>{e.length=0},A=(e="")=>(E.push(e),""),te=e=>{let n=E.lastIndexOf("");~n&&E.splice(n+~~e,E.length-n+~~e)},Ln=e=>e&&e[0]!==":",on=e=>e[0]===":",sn=e=>{if(e){let n=s(E.filter(Ln)),t=e==="&"?n:(n&&n+"-")+e;t&&Fn(t,E.filter(on))}return""},ge=(e,n)=>{let t,o="";for(let l=0;l<e.length;)switch(t=e[l++]){case":":o&&(o=A(":"+o));break;case"(":o&&(o=A(o)),A();break;case")":case" ":case" ":case`
`:case"\r":o=sn(o),te(t!==")");break;default:o+=t}n?o&&A(":"+o):sn(o)},fe=e=>{e&&(A(),nn(e),te())},Wn=(e,n)=>{if(n){A();let t=y(n)||v(n)||_(n)||C(n);ge(e,t),t&&fe(n),te()}},Nn=0,nn=e=>{y(e)?ge(e):v(e)?e.forEach(fe):C(e)?tn(`__${e.name}_${(++Nn).toString(36)}`,E.filter(on),e(Ze,{keyframes:en,tag:b.a})):_(e)&&Object.keys(e).forEach(n=>{Wn(n,e[n])})},an=(e,n)=>{if(b)throw new Error("There is already an active context");b=n,rn(z),rn(E);try{e.forEach(fe)}finally{b=void 0}return s(z," ")},re=e=>{let n=Qe(e);return{bw:(...t)=>an(B(t),n),setup:n.c,theme:n.r}},me=re(),{bw:cn}=me,{setup:ln}=me,{theme:un}=me;return Un;})();
var core=(()=>{var $e=Object.defineProperty,m=Object.assign,mn=e=>$e(e,"__esModule",{value:!0}),pn=(e,n)=>{mn(e);for(var t in n)$e(e,t,{get:n[t],enumerable:!0})},_n={};pn(_n,{apply:()=>_e,autoprefix:()=>J,bw:()=>cn,corners:()=>Q,createInstance:()=>re,cssomInjector:()=>X,cyrb32:()=>q,edges:()=>S,expandEdges:()=>D,join:()=>s,mode:()=>ee,noOpInjector:()=>K,noprefix:()=>Ve,setup:()=>ln,strict:()=>qe,tail:()=>r,theme:()=>un,virtualInjector:()=>Ee,warn:()=>ne});var ie=(e,n)=>typeof e===n,y=e=>ie(e,"string"),N=e=>e!=null&&ie(e,"object"),v=Array.isArray,C=e=>ie(e,"function"),s=(e,n="-")=>e.join(n),B=(e,n)=>s(e.filter(Boolean),n),r=(e,n=1)=>e.slice(n),Te=e=>e,F=()=>{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}}},hn=(e,n)=>{let t=[e[0]];for(let o=0;o<n.length;)y(n[o])?t[t.length-1]+=n[o]+e[++o]:(n[o]&&t.push(n[o]),t.push(e[++o]));return t},M=e=>v(e[0])&&v(e[0].raw)?hn(e[0],r(e)):e,ve=(e,n)=>{let t=e.length;if(t===0)return 0;for(let o=0;o<t;){let l=t+o>>1;e[l]<=n?o=l+1:t=l}return t},R=(e,n)=>e&&n?m(m({},e),n):e||n||{},ke=typeof CSS!="undefined"&&CSS.escape||(e=>e.replace(/[!"#$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&")),Ce=e=>e.slice(0,7)===":group-",xn=e=>e[0]===":"&&!Ce(e),G=e=>e[0]==="@",Y=(e,n)=>{let t=s(n,"");return(t&&r(t)+":")+e},bn=(e,n,t,o)=>t(n.reduce((l,a)=>(Ce(a)?`.${ke(o("group"))}:${r(a,7)} `:"")+l+(xn(a)?a:""),"."+ke(e))),Re=(e,n,t,o,l)=>n.reduceRight((a,d)=>G(d)?`${d}{${a}}`:a,`${bn(e,n,o,l)}{${t}}`),Se=typeof window!="undefined",Pe="__beamwind",yn=e=>{let n=document.getElementById(Pe);return n||(n=document.createElement("style"),n.id=Pe,e&&(n.nonce=e),document.head.appendChild(n)),n},Ee=({target:e=[]}={})=>({target:e,insert:(n,t)=>e.splice(t,0,n)}),X=({nonce:e,target:n=yn(e).sheet}={})=>({target:n,insert:n.insertRule.bind(n)}),K=()=>({target:null,insert:()=>{}}),je={breakpoints:e=>Object.keys(e).reduce((n,t)=>(n["screen-"+t]=e[t],n),{})},De=(e,n)=>{let t=F(),o=(a,d)=>{let f=a[d];return C(f)?f(l,je):f},l=(a,d,f)=>{let $=t.get(a);if($||($=R(o(e,a),o(n,a)),t.set(a,$)),d){let T=$[d];return C(T)&&(T=T(l,je)),T==null?f:T}return $};return l.extend=a=>(a=C(a)?a(l):a,De(R(e,a),a&&a.extend?Object.keys(a.extend).reduce((d,f)=>(d[f]=R(d[f],a.extend[f]),d),R({},n)):n)),l},Oe=De({screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor"},durations:{},spacing:{px:"1px",0:"0px"},animation:{none:"none"},backgroundColor:e=>e("colors"),backgroundImage:{none:"none"},backgroundOpacity:e=>e("opacity"),borderColor:e=>m(m({},e("colors")),{DEFAULT:"currentColor"}),borderOpacity:e=>e("opacity"),borderRadius:{none:"0px",DEFAULT:"0.25rem",full:"9999px"},borderWidth:{DEFAULT:"1px"},boxShadow:{none:"0 0 transparent"},divideColor:e=>e("borderColor"),divideOpacity:e=>e("borderOpacity"),divideWidth:e=>e("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:"ui-sans-serif,system-ui,sans-serif",serif:"ui-serif,serif",mono:"ui-monospace,monospace"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["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"},gap:e=>e("spacing"),gradientColorStops:e=>e("colors"),height:e=>m(m({auto:"auto"},e("spacing")),{full:"100%",screen:"100vh"}),inset:e=>m(m({auto:"auto"},e("spacing")),{full:"100%"}),keyframes:{},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:e=>m({auto:"auto"},e("spacing")),maxHeight:e=>m(m({},e("spacing")),{full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:n})=>m({none:"none",0:"0rem",full:"100%",min:"min-content",max:"max-content"},n(e("screens"))),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{0:"0",25:"0.25",50:"0.5",75:"0.75",100:"1"},order:{first:"-9999",last:"9999",none:"0"},outline:{none:["2px solid transparent","2px"]},padding:e=>e("spacing"),placeholderColor:e=>e("colors"),placeholderOpacity:e=>e("opacity"),ringColor:e=>m({DEFAULT:"#3b82f6"},e("colors")),ringOffsetColor:e=>e("colors"),ringOffsetWidth:{},ringOpacity:e=>m({DEFAULT:"0.5"},e("opacity")),ringWidth:{DEFAULT:"3px"},rotate:{},scale:{},skew:{},space:e=>e("spacing"),stroke:{current:"currentColor"},strokeWidth:{},textColor:e=>e("colors"),textOpacity:e=>e("opacity"),transitionDuration:e=>m({DEFAULT:"150ms"},e("durations")),transitionDelay:e=>e("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)"},translate:e=>m(m({},e("spacing")),{full:"100%"}),width:e=>m(m({auto:"auto"},e("spacing")),{full:"100%",screen:"100vw",min:"min-content",max:"max-content"}),zIndex:{auto:"auto"}},{}),wn=/^(br|hy|us|wr|text-si|scroll-snap-t)/,$n=/^(ap|us|tab-|border-e|margin-e|margin-s|padding-e|padding-s|border-sta)/,Tn=/^(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-)/,vn=/^(pos|background-cl)/,se={},Ie=function(e){return se[e]?se[e]:se[e]=1*wn.test(e)|2*$n.test(e)|4*Tn.test(e)},Ae=function(e,n){return vn.test(e)?n.replace(/(sticky|text)/,"-webkit-$1, $1"):n},J=(e,n)=>{let t=`${e}:${Ae(e,n)}`,o=t,l=Ie(e);return l&1&&(o+=`;-ms-${t}`),l&2&&(o+=`;-moz-${t}`),l&4&&(o+=`;-webkit-${t}`),o},Ve=(e,n)=>`${e}:${n}`,kn=Math.imul||((e,n)=>{n|=0;let t=(e&4194303)*n;return e&4290772992&&(t+=(e&4290772992)*n|0),t|0}),q=e=>{let n=9;for(let t=e.length;t--;)n=kn(n^e.charCodeAt(t),1597334677);return"_"+((n^n>>>9)>>>0).toString(36)},He,Cn={":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)"},ze=(e,n)=>(He=n("screens",r(e)))?`@media (min-width: ${He})`:Cn[e]||e,W,ae,Rn=e=>(ae=/\(\s*min-width:\s*(\d+(?:.\d+)?)(p)?/.exec(e))?+ae[1]/(ae[2]?15:1)/10:0,ce=e=>{W=0;for(let n=e.length;n--;)~"-:,".indexOf(e[n])&&++W;return W},Fe=["rst","st","d","en","nk","sited","pty","ecked","oup-h","oup-f","cus-w","ver","cus","cus-v","tive","sable"],Sn=e=>~(W=Fe.indexOf(e.slice(3,8)))?W:Fe.length,Pn=(e,n)=>e|(G(n)?0:1<<Sn(n)),En=/^(?:(border-(?:[tlbr].{2,4}-)?(?:w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,jn=e=>{let n=e[0]==="-"?r(e,e.indexOf("-",1)+1):e,t=En.exec(n);return ce(n)+(t?+!!t[1]||-!!t[2]:0)+1},Dn=e=>e[0]==="-"?0:jn(e),We=e=>Math.max(0,15-e),On=(e,n)=>We(ce(n)),In=e=>We(Object.keys(e).filter(n=>e[n]).length),Le=(e,n)=>Object.keys(e).reduce((t,o)=>e[o]?Math.max(t,n(o,e[o])):t,0),Ue=(e,n)=>{let t=Rn(e[0]||"");return((t&31)<<21|(ce(s((t?r(e):e).filter(G),";"))&15)<<17|e.reduce(Pn,0)&131071)*(1<<12)+((In(n)&15)<<8|(Le(n,Dn)&15)<<4|Le(n,On)&15)},_e=(...e)=>n=>n(M(e)),Ne=e=>(n,t,o,l)=>{if(n){let a=t&&e(t);if(a&&a.length>0)return a.reduce((d,f)=>(d[B([o,f,l])]=n,d),{})}},An={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"]},Q=Ne(e=>An[e]),Vn={x:"lr",y:"tb"},Be={t:"top",r:"right",b:"bottom",l:"left"},D=e=>{let n=(Vn[e]||e||"").split("").sort().reduce((t,o)=>{if(t&&Be[o])return t.push(Be[o]),t},[]);if(n&&n.length>0)return n},S=Ne(D),i,Hn=e=>e[0].toUpperCase()+r(e),le=(e,n)=>Math.round(parseInt(e,16)*n),Me=(e,n)=>{if(e&&e[0]==="#"){let t=(e.length-1)/3,o=[17,1,.062272][t-1];return`rgba(${le(e.substr(1,t),o)},${le(e.substr(1+t,t),o)},${le(e.substr(1+2*t,t),o)},var(--${n}))`}return e},L=(e,n,t,o)=>t?{[`--${o(n+"-opacity")}`]:"1",[e]:(i=Me(t,o(n+"-opacity")))&&i!==t?[t,i]:t}:void 0,U=e=>({[e[0]]:s(r(e))}),P=e=>({display:s(e)}),_=e=>({position:e[0]}),V=e=>({"text-transform":e[0]}),H=e=>({"text-decoration":s(e)}),Z=(e,n)=>({[e[0]]:n("inset",r(e))}),Ge=(e,n,t)=>{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]};case"opacity":return{[`--${t(e[0]+"-opacity")}`]:n("borderOpacity",r(e,2))}}return(i=n(`${e[0]}Width`,r(e),!0))?{"border-width":i}:L("border-color",e[0],n(`${e[0]}Color`,r(e)),t)},Ye=(e,n)=>(i={w:"width",h:"height"}[e[1]])&&{[`${e[0]}-${i}`]:n(`${e[0]}${Hn(i)}`,r(e,2))},Xe=e=>(n,t)=>n[0][1]?S(t(e,r(n)),n[0][1],e):{[e]:t(e,r(n))},O=Xe("padding"),I=Xe("margin"),Ke=e=>n=>{switch(n[1]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return n[2]&&{[`grid-${e}`]:n[2]==="full"?"1 / -1":`span ${n[2]} / span ${n[2]}`};case"start":case"end":return n.length===3&&{[`grid-${e}-${n[1]}`]:n[2]}}},ue=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]}},Je={shadow:(e,n,{tag:t})=>(i=n("boxShadow",r(e)))&&{[`--${t("shadow")}`]:i,"box-shadow":[i,`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("ringOpacity",r(e,2))};case"offset":return(i=n("ringOffsetWidth",r(e,2),!0))?{[`--${t("ring-offset-width")}`]:i}:{[`--${t("ring-offset-color")}`]:n("ringOffsetColor",r(e,2))}}return(i=n("ringWidth",r(e),!0))?{[`--${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(${i} + 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")}`]:Me(n("ringColor",r(e)),t("ring-opacity"))}},duration:(e,n)=>({"transition-duration":n("transitionDuration",r(e))}),delay:(e,n)=>({"transition-delay":n("transitionDelay",r(e))}),origin:e=>({"transform-origin":s(r(e)," ")}),cursor:U,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})=>(i=n("rotate",r(e)))&&{[`--${t("transform-rotate")}`]:i,transform:`rotate(${i})`},scale:(e,n,{tag:t})=>(i=n("scale",[e[2]||e[1]]))&&{[`--${t("transform-scale-x")}`]:e[1]!=="y"&&i,[`--${t("transform-scale-y")}`]:e[1]!=="x"&&i,transform:`scale${e[2]?e[1].toUpperCase():""}(${i})`},translate:(e,n,{tag:t})=>(i=n("translate",r(e,2)))&&{[`--${t("transform-translate-x")}`]:e[1]!=="y"&&i,[`--${t("transform-translate-y")}`]:e[1]!=="x"&&i,transform:`translate${e[1].toUpperCase()}(${i})`},skew:(e,n,{tag:t})=>(i=n("skew",r(e,2)))&&{[`--${t("transform-skew-x")}`]:e[1]!=="y"&&i,[`--${t("transform-skew-y")}`]:e[1]!=="x"&&i,transform:`skew${e[1].toUpperCase()}(${i})`},"bg-gradient":(e,n,{tag:t})=>(i=e[1]==="to"&&(i=D(e[2]))?"to "+s(i," "):n("rotate",r(e)))&&{"background-image":`linear-gradient(${i},var(--${t("gradient-stops")},var(--${t("gradient-from")},transparent),var(--${t("gradient-to")},transparent)))`},from:(e,n,{tag:t})=>(i=n("gradientColorStops",r(e)))&&{[`--${t("gradient-from")}`]:i},via:(e,n,{tag:t})=>(i=n("gradientColorStops",r(e)))&&{[`--${t("gradient-stops")}`]:`var(--${t("gradient-from")},transparent),${i},var(--${t("gradient-to")},transparent)`},to:(e,n,{tag:t})=>(i=n("gradientColorStops",r(e)))&&{[`--${t("gradient-to")}`]:i},"pointer-events-none":{"pointer-events":"none"},"pointer-events-auto":{"pointer-events":"auto"},tracking:(e,n)=>({"letter-spacing":n("letterSpacing",r(e))}),leading:(e,n)=>({"line-height":n("lineHeight",r(e))}),align:e=>({"vertical-align":s(r(e))}),whitespace:e=>({"white-space":s(r(e))}),z:(e,n)=>({"z-index":n("zIndex",r(e))}),gap:(e,n)=>({gap:n("gap",r(e))}),stroke:(e,n)=>(i=n("stroke",r(e),!0))?{stroke:i}:{"stroke-width":n("strokeWidth",r(e))},fill:(e,n)=>({fill:n("fill",r(e))}),outline:(e,n)=>(i=n("outline",r(e)))&&{outline:i[0],"outline-offset":i[1]},appearance:U,opacity:(e,n)=>({opacity:n("opacity",r(e))}),ease:(e,n)=>({"transition-timing-function":n("transitionTimingFunction",r(e))}),break(e){switch(e[1]){case"normal":return{"word-break":"normal","overflow-wrap":"normal"};case"words":return{"overflow-wrap":"break-word"};case"all":return{"word-break":"break-all"}}},w:(e,n)=>({width:n("width",r(e))}),h:(e,n)=>({height:n("height",r(e))}),underline:H,"no-underline":H(["none"]),"line-through":H,"text-underline":H(["underline"]),"text-no-underline":H(["none"]),"text-line-through":H(["line","through"]),uppercase:V,lowercase:V,capitalize:V,"normal-case":V(["none"]),"text-normal-case":V(["none"]),text(e,n,{tag:t}){switch(e[1]){case"left":case"center":case"right":case"justify":return{"text-align":e[1]};case"uppercase":case"lowercase":case"capitalize":return V(r(e));case"opacity":return{[`--${t("text-opacity")}`]:n("textOpacity",r(e,2))}}let o=n("fontSize",r(e),!0);return o?y(o)?{"font-size":o}:{"font-size":o[0],"line-height":y(o[1])?o[1]:o[1].lineHeight,"letter-spacing":o[1].letterSpacing}:L("color","text",n("textColor",r(e)),t)},bg(e,n,{tag:t}){switch(e[1]){case"fixed":case"local":case"scroll":return{"background-attachment":s(r(e),",")};case"bottom":case"center":case"left":case"right":case"top":return{"background-position":s(r(e)," ")};case"no":return e[2]==="repeat"&&{"background-repeat":s(r(e))};case"auto":case"cover":case"contain":return{"background-size":e[1]};case"repeat":switch(e[2]){case"x":case"y":return{"background-repeat":s(r(e))}}return{"background-repeat":e[2]||e[1]};case"opacity":return{[`--${t("bg-opacity")}`]:n("backgroundOpacity",r(e,2))}}return(i=n("backgroundImage",r(e),!0))?{"background-image":i}:R(L("background-color","bg",n("backgroundColor",r(e)),t),L("color","text",n("textColor",e[1]==="on"?r(e,2):["on"].concat(r(e)),!0),t))},rounded:(e,n)=>Q(n("borderRadius",r(e,2),!0),e[1],"border","radius")||{"border-radius":n("borderRadius",r(e))},"transition-none":{"transition-property":"none"},transition:(e,n)=>({transition:B([n("transitionProperty",r(e)),n("transitionDuration",[]),n("transitionTimingFunction",[])]," ")}),flex(e,n){switch(e[1]){case"row":case"col":return{"flex-direction":s(e[1]==="col"?["column"].concat(r(e,2)):r(e,1))};case"nowrap":case"wrap":return{"flex-wrap":s(r(e))};case"grow":case"shrink":return{[`flex-${e[1]}`]:e[2]||"1"}}return(i=n("flex",r(e),!0))?{flex:i}:P(e)},grid(e){switch(e[1]){case"cols":case"rows":return e.length>2&&{[`grid-template-${e[1]==="cols"?"columns":e[1]}`]:e.length===3&&Number(e[2])?`repeat(${e[2]},minmax(0,1fr))`:s(r(e,2)," ")};case"flow":return e.length>2&&{"grid-auto-flow":s(e[2]==="col"?["column"].concat(r(e,3)):r(e,2)," ")}}return P(e)},auto(e){switch(e[1]){case"cols":case"rows":return(i=e.length===3?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[2]]||`minmax(0,${e[2]})`:e.length>3&&`minmax(${s(r(e,2),",")})`)&&{[`grid-auto-${e[1]==="cols"?"columns":"rows"}`]:i}}},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"},hidden:P(["none"]),inline:P,block:P,table(e){switch(e[1]){case"auto":case"fixed":return{"table-layout":e[1]}}return P(e)},flow:P,d:e=>P(r(e)),static:_,fixed:_,absolute:_,relative:_,sticky:_,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},truncate:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},resize:e=>e.length<=2&&{resize:{x:"vertical",y:"horizontal"}[e[1]]||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":s(r(e))}}return{"object-position":s(r(e)," ")}},top:Z,right:Z,bottom:Z,left:Z,inset:(e,n)=>(i=D(e[1]))?S(n("inset",r(e,2)),e[1]):(i=n("inset",r(e)))&&{top:i,right:i,bottom:i,left:i},items(e){switch(e[1]){case"start":case"end":return{"align-items":`flex-${e[1]}`}}return{"align-items":e[1]}},content:ue("align-content"),justify:ue("justify-content"),self:ue("align-self"),order:(e,n)=>({order:n("order",r(e))}),col:Ke("column"),row:Ke("row"),"subpixel-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":s(r(e))}},"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:U,clear:U,overflow(e){switch(e[1]){case"ellipsis":case"clip":return{"text-overflow":e[1]}}return e[2]?{[`overflow-${e[1]}`]:e[2]}:U(e)},p:O,py:O,px:O,pt:O,pr:O,pb:O,pl:O,m:I,my:I,mx:I,mt:I,mr:I,mb:I,ml:I,italic:{"font-style":"italic"},"not-italic":{"font-style":"normal"},"font-italic":{"font-style":"italic"},"font-not-italic":{"font-style":"normal"},font:(e,n)=>(i=n("fontFamily",r(e),!0))?{"font-family":i}:{"font-weight":n("fontWeight",r(e))},space:(e,n)=>(i={x:"l",y:"t"}[e[1]])&&[">:not([hidden])~:not([hidden])",S(n("space",r(e,2)),i,"margin")],border:(e,n,{tag:t})=>D(e[1])?S(n("borderWidth",r(e,2)),e[1],"border","width"):Ge(e,n,t),divide:(e,n,{tag:t})=>(i=(i={x:"l",y:"t"}[e[1]])?S(n("divideWidth",r(e,2)),i,"border","width"):Ge(e,n,t))&&[">:not([hidden])~:not([hidden])",i],placeholder:(e,n,{tag:t})=>(i=e[1]==="opacity"?{[`--${t("placeholder-opacity")}`]:n("placeholderOpacity",r(e,2))}:L("color","placeholder",n("placeholderColor",r(e)),t))&&["::placeholder",i],min:Ye,max:Ye,animate:(e,n,{keyframes:t})=>{let o=n("animation",i=r(e));return o&&{animation:y(o)?o:`${t(o[1]||s(i))} ${o[0]}`}}},ee=e=>({unknown(n,t,o){o||e(`No theme value found for ${n}[${JSON.stringify(s(t)||"DEFAULT")}]`)},warn(n,t){e((t?`[${t}] `:"")+n)}}),ne=ee(e=>console.warn(e)),qe=ee(e=>{throw new Error(e)}),Qe=e=>{let n=Oe,t=Je,o,l,a=[],d=J,f=q,$=ne,T=F(),pe=F(),oe=[],he=c=>(v(c)?c:[c]).forEach(({theme:u,plugins:g,init:p,injector:x,nonce:w=l,prefix:k=d,hash:j=f,mode:fn=$}={})=>{if(x&&oe.length>0)throw new Error("Changing the injector after first use is not supported");u&&(n=n.extend(u)),t=R(t,g),p&&a.push(p),o=x||o,l=w,d=k,f=j,$=fn}),dn=(c,u)=>v(u)?s(u.filter(Boolean).map(g=>d(c,g)),";"):d(c,u),xe=c=>Object.keys(c).reduce((u,g)=>c[g]?(u&&u+";")+dn(g,c[g]):u,""),gn=c=>ze(c,n),be=c=>f?f(c):c,ye=(c,u)=>{o||(o=Se?X({nonce:l}):K());let g=ve(oe,u);try{o.insert(c,g),oe.splice(g,0,u)}catch(p){/:-[mwo]/.test(c)||$.warn(p.message)}},we=(c,u,g,p,x)=>{pe.has(u)||(a.length&&(a.forEach(w=>w(k=>ye(k,0),n)),a.length=0),ye(g,Ue(p,x)),pe.set(u,!0)),T.set(c,u)};return he(e),{t:(c,u,g)=>{let p=v(u)?u:[u],x=n(c,s(p)||"DEFAULT");return x==null?$.unknown(c,p,g,n):x},p:c=>t[c],a:be,r:(c,u,g)=>n(c,u,g),g:(c,u)=>T.get(Y(c,u)),s:(c,u,g)=>T.set(Y(c,u),g),i(c,u,g,p=Te){let x=Y(c,u),w=T.get(x);if(!w){let k=u.map(gn),j=xe(g);w=f?f(s([s(k,"\0"),p(""),j],"\0")):x,we(x,w,Re(w,k,j,p,be),k,g)}return w},k(c,u){let g="\0"+c,p=T.get(g);if(!p){let x=Object.keys(u).reduce((k,j)=>`${k}${j}{${xe(u[j])}}`,"");p=f?f(x):c;let w=`@keyframes ${p}{${x}}`;we(g,p,w,[w],{})}return p},c:he,w(c,u){$.warn(u,c)}}},de,b,E=[],z=[],Ze=(e,n,t)=>{let o=b.t(e,n,t);return de&&o&&y(o)?`calc(${o} * -1)`:o},en=(e,n)=>b.k(e,n||b.t("keyframes",e)||{}),zn=(e,n,t)=>{let o=z.length;A(),y(t)?ge(t):t(nn),te(),b.s(e,n,s(r(z,o)," "))},tn=(e,n,t)=>{if(C(t)||y(t))return!zn(e,n,t);let o;if(v(t)&&(o=t[0],t=t[1]),N(t))return z.push(b.i(e,n,t,y(o)?l=>l+o:o))},Fn=(e,n)=>{let t=e==="group"&&b.a(e)||b.g(e,n);if(t!=null)return t&&z.push(t);let o=e;de="",o[0]==="-"&&(de="-",o=r(o));let l=o.split("-"),a;for(let d=l.length;d;d--){let f=s(l.slice(0,d));if(a=b.p(f),a){l=r(l,d),l.unshift(f);break}}tn(e,n,C(a)?a(l,Ze,{keyframes:en,tag:b.a}):a)||b.w(e,a?`Plugin "${l[0]}" had no result`:`No plugin for "${o}" found`)},rn=e=>{e.length=0},A=(e="")=>(E.push(e),""),te=e=>{let n=E.lastIndexOf("");~n&&E.splice(n+~~e,E.length-n+~~e)},Wn=e=>e&&e[0]!==":",on=e=>e[0]===":",sn=e=>{if(e){let n=s(E.filter(Wn)),t=e==="&"?n:(n&&n+"-")+e;t&&Fn(t,E.filter(on))}return""},ge=(e,n)=>{let t,o="";for(let l=0;l<e.length;)switch(t=e[l++]){case":":o&&(o=A(":"+o));break;case"(":o&&(o=A(o)),A();break;case")":case" ":case" ":case`
`:case"\r":o=sn(o),te(t!==")");break;default:o+=t}n?o&&A(":"+o):sn(o)},fe=e=>{e&&(A(),nn(e),te())},Ln=(e,n)=>{if(n){A();let t=y(n)||v(n)||N(n)||C(n);ge(e,t),t&&fe(n),te()}},Un=0,nn=e=>{y(e)?ge(e):v(e)?e.forEach(fe):C(e)?tn(`__${e.name}_${(++Un).toString(36)}`,E.filter(on),e(Ze,{keyframes:en,tag:b.a})):N(e)&&Object.keys(e).forEach(n=>{Ln(n,e[n])})},an=(e,n)=>{if(b)throw new Error("There is already an active context");b=n,rn(z),rn(E);try{e.forEach(fe)}finally{b=void 0}return s(z," ")},re=e=>{let n=Qe(e);return{bw:(...t)=>an(M(t),n),setup:n.c,theme:n.r}},me=re(),{bw:cn}=me,{setup:ln}=me,{theme:un}=me;return _n;})();

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc