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

@twind/core

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twind/core - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3-next-20221209074120

6

CHANGELOG.md
# @twind/core
## 1.0.3-next-20221209074120
### Patch Changes
- Fixes "warn" message doesn't respect `event.preventDefault()` (#403) ([#412](https://github.com/tw-in-js/twind/pull/412)) 🙏🏽 [@wzulfikar](https://github.com/wzulfikar)!
## 1.0.2

@@ -4,0 +10,0 @@

2

core.browser.dev.js

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

let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,n=","){return e.map(t).join(n)}let r="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function o(e,t="@media "){return t+l(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function l(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function f(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(a(e),15)<<18}let p=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function h({n:e,i:n,v:r=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:n,v:r})),s=[...l(s)],r)){let a=i.theme("screens",c);for(let h of l(a&&o(a)||i.v(c))){var d;s.push(h),u|=a?67108864|f(h):"dark"==c?1073741824:"@"==h[0]?f(h):(d=h,1<<~(/:([a-z-]+)/.test(d)&&~p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:u,r:s,i:n}}let d=new Map;function g(e){if(e.d){let t=[],n=y(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?y(e,e=>y(n,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):m(e,t)}return m(t,e)})):e,"&"),t=>m(t,e.n?"."+r(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function y(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function m(e,t){return e.replace(/&/g,t)}let v=new Intl.Collator("en",{numeric:!0});function b(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=$(e[i],t)?n=i+1:r=i}return r}function $(e,t){let n=e.p&c.o;return n==(t.p&c.o)&&(n==c.b||n==c.o)?0:e.p-t.p||e.o-t.o||v.compare(w(e.n),w(t.n))||v.compare(x(e.n),x(t.n))}function w(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function x(e){return(e||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function A(e,t){return Math.round(parseInt(e,16)*t)}function k(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[A(e.substr(1,o),l),A(e.substr(1+o,o),l),A(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function j(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function O(e,t,n,r,u=[]){return function e(t,{n:n,p:r,r:u=[],i:s},p){let h=[],d="",y=0,m=0;for(let v in t||{}){var b,w;let x=t[v];if("@"==v[0]){if(!x)continue;if("a"==v[1]){h.push(...M(n,r,N(""+x),p,r,u,s,!0));continue}if("l"==v[1]){for(let A of l(x))h.push(...e(A,{n:n,p:(b=c[v[7]],r&~c.o|b),r:u,i:s},p));continue}if("i"==v[1]){h.push(...l(x).map(e=>({p:-1,o:0,r:[],d:v+" "+e})));continue}if("k"==v[1]){h.push({p:c.d,o:0,r:[v],d:e(x,{p:c.d},p).map(g).join("")});continue}if("f"==v[1]){h.push(...l(x).map(t=>({p:c.d,o:0,r:[v],d:e(t,{p:c.d},p).map(g).join("")})));continue}}if("object"!=typeof x||Array.isArray(x))"label"==v&&x?n=x+i(JSON.stringify([r,s,t])):(x||0===x)&&(v=v.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m+=1,y=Math.max(y,"-"==(w=v)[0]?0:a(w)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(w)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+l(x).map(e=>p.s(v,S(""+e,p.theme)+(s?" !important":""))).join(";"));else if("@"==v[0]||v.includes("&")){let k=r;"@"==v[0]&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=p.theme("screens",t);return n?(k|=67108864,o(n,"")):e}),k|=f(v)),h.push(...e(x,{n:n,p:k,r:[...u,v],i:s},p))}else h.push(...e(x,{p:r,r:[...u,v]},p))}return h.unshift({n:n,p:r,o:Math.max(0,15-m)+1.5*Math.min(y||15,15),r:u,d:d}),h.sort($)}(e,h(t,n,r,u),n)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?k(l):""+l})}function E(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n={...i,n:i.n&&t}):r.push({...i,n:i.n&&t});return r}function C(e,n,r=c.u,i,o){let u=[];for(let s of e)for(let a of function(e,n,r,i,o){var u;e={...e,i:e.i||o};let s=function(e,t){let n=d.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,n);return s?"string"==typeof s?({r:i,p:r}=h(e,n,r,i),E(C(N(s),n,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return{o:0,...e,r:[...l(i),...l(e.r)],p:(t=r,n=null!=(u=e.p)?u:r,t&~c.o|n)}}):O(s,e,n,r,i):[{c:t(e),p:0,o:0,r:[]}]}(s,n,r,i,o))u.splice(b(u,a),0,a);return u}function M(e,t,n,r,i,o,l,u){return E((u?n.flatMap(e=>C([e],r,i,o,l)):C(n,r,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:e.p&~c.o|t,o:0}:e),e)}function T(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=h(e,i,t);return n&&M(o,t,n,i,l,u,s,r)},d.set(e,i),e}function V(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(D),i:i},{a:{value:[...e]},l:{value:n}})))}}function D(e,t,n){return n.indexOf(e)==t}let L=new Map;function N(e){let t=L.get(e);if(!t){let r=[],o=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&V(r,o,[l,a+n])),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=o.shift();r.length=h,V([...r,"#"],o,[l,a]);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);V([...r,T(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],o,[l,a])}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),L.set(e,t=o[0])}return t}function F(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function R(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F(e,t,e=>U(e).trim()):t.filter(Boolean).reduce((e,t)=>e+U(t),e?U(e):"")}function U(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=R(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let I=_("@"),P=_("~");function _(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,r,i){return n(N(t+e+"("+R(r,i)+")"))}}function z(e,t){return Array.isArray(e)?J(F(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?J(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function J(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=q.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function W(e,...t){var n,r;let o=z(e,t),l=((null==(n=o.find(e=>e.label))?void 0:n.label)||"css")+i(JSON.stringify(o));return r=(e,t)=>E(o.flatMap(n=>O(n,e,t,c.o)),l),d.set(l,r),l}let B=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return G(t,e,n)}});function G(e,t,n){return{toString:()=>W({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+n}})}}function Y(e,t,n){return[e,Z(t,n)]}function Z(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):H(n,1)}):t=>e||{[t[1]]:H(t,2)}}function H(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function K(e,t,n,r){return[e,Q(t,n,r)]}function Q(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return eu((t,n)=>{var i;let o=ei(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:er(t.$$,o,n);if(null!=l)return t._=H(t,0,l),r(t,n,o)},(t,n)=>{let r=ei(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&k(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&k(o,{opacityValue:"1"})}]:[]})}function X(e,t={},n){return[e,ee(t,n)]}function ee(e={},t){return eu((n,r)=>{let{section:i=ei(n[0]).replace("-","")+"Color"}=e,[o,l]=et(n.$$);if(!o)return;let u=r.theme(i,o)||er(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&er(l,c,r),h=t||(({_:e})=>{let t=en(a,e);return f?{[f]:t}:t});n._={value:k(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>k(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:k(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>k(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=ei(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:k(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:k(t,{opacityValue:n})})).concat([{modifier:"[",color:k(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:k(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:k(u,{opacityValue:t})})).concat([{modifier:"[",color:k(u,{opacityValue:"1"})}])}]:[]})}function et(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function en(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function er(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=eo(S(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ei(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function eo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>eo(t)+n+eo(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let el=Symbol("@twind/autocomplete");function eu(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,el,{value:t,configurable:!0});let[n,r,i]=l(e);return[n,Object.defineProperty(Z(r,i),el,{value:t,configurable:!0})]}return e}function es(e){return e[el]}function ec(e,...t){return n(N(R(e,t))," ")}function ea({presets:e=[],...t}){let n={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:l(t.variants),rules:l(t.rules),ignorelist:l(t.ignorelist),hash:t.hash,stringify:t.stringify||ef};for(let r of l([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&l(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=n.hash,stringify:h=n.stringify}="function"==typeof r?r(n):r;n={preflight:!1!==n.preflight&&!1!==i&&[...n.preflight,...l(i)],darkMode:o,darkColor:u,theme:{...n.theme,...s,extend:{...n.theme.extend,...null==s?void 0:s.extend}},variants:[...n.variants,...l(c)],rules:[...n.rules,...l(a)],ignorelist:[...n.ignorelist,...l(f)],hash:p,stringify:h}}return n}function ef(e,t){return e+":"+t}function ep(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function eh(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ed(e){var t;return ey(e[0],"function"==typeof(t=e[1])?t:()=>t)}function eg(e){var t,n;return Array.isArray(e)?ey(e[0],Z(e[1],e[2])):ey(e,Z(t,n))}function ey(e,t){return em(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function em(e,t){let n=l(e).map(ev);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function ev(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function eb(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function e$(e,t){let n=ea(e),o=function({theme:e,darkMode:t,darkColor:n,variants:o,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=em(f,(e,t)=>t.test(e)),m=new Set;o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,i):c?i:u;return{theme:function({extend:e={},...t}){let n={},r={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return i;function i(r,l,u,s){if(r){var c;if({1:r,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(r)||[,r],/[.[]/.test(r)){let a=[];r.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),r=a.shift(),u=l,l=a.join("-")}let f=n[r]||Object.assign(Object.assign(n[r]={},o(t,r)),o(e,r));if(null==l)return f;let p=null!=(c=f[l||"DEFAULT"])?c:u;return s?k(p,{opacityValue:S(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function o(e,t){let n=e[t];return("function"==typeof n&&(n=n(r)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:r,h:v,s(e,t){return a(eb(e,v),eb(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,eh(e,o,h,ed,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&eh(e,s,g,eg,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ep(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),s=new Map,a=[],f=new Set;function p(e){let n=e.n&&o.h(e.n),r=g(n?{...e,n:n}:e);if(r&&!f.has(r)){f.add(r);let i=b(a,e);t.insert(r,i,e),a.splice(i,0,e)}return n}return t.resume(e=>s.set(e,e),(e,n)=>{t.insert(e,a.length,n),a.push(n),f.add(e)}),Object.defineProperties(function(e){if(!s.size)for(let t of l(n.preflight))"function"==typeof t&&(t=t(o)),t&&("string"==typeof t?M("",c.b,N(t),o,c.b,[],!1,!0):O(t,{},o,c.b)).forEach(p);e=""+e;let r=s.get(e);if(!r){let i=new Set;for(let u of C(N(e),o))i.add(u.c).add(p(u));r=[...i].filter(Boolean).join(" "),s.set(e,r).set(r,r)}return r},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:o.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(s),i=[...a];return()=>{e(),f=n,s=r,a=i}},clear(){t.clear(),f=new Set,s=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function ew(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function ex(e=eV,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&ew(r,n=e(r))&&t.setAttribute("class",n)}}function eA(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ek(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:eA(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||ep(r.message,"TWIND_INVALID_CSS",e)}},resume:s}}function ej(e){let t=e&&"string"!=typeof e?e:eA(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:s}}function eO(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:s}}function eS(e,t){let n=e?ej():ek();return t||(n.resume=eC),n}function eE(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function eC(e,t){let n=eE(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eM(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return s}function eT(){if(!e)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eV=new Proxy(s,{apply:(t,n,r)=>(eT(),e(r[0])),get(t,n){eT();let r=e[n];return"function"==typeof r?function(){return eT(),r.apply(e,arguments)}:r}});function eD(t={},n=eS,r){return null==e||e.destroy(),e=ex(e$(t,"function"==typeof n?n():n),r)}let eL=function(e,...t){("function"==typeof this?this:eV)(W({"@layer base":z(e,t)}))};function eN(e,t=!1){var n;let r=ea(e);return eD({...r,hash:null!=(n=r.hash)?n:t},()=>eS(!t))}let eF=function e(t){return new Proxy(function(e,...n){return eR(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eR(t,r,e,n)}})}();function eR(e,t,n,o){return{toString(){let l=z(n,o),u=r(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eV)(W({[`@keyframes ${u}`]:z(n,o)})),u}}}function eU(e,t={}){let{tw:n=eV,minify:r=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eI(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)}function eI(e,t=eV){let n=t.snapshot(),r={html:eP(e,t),css:eE(t.target)};return n(),r}function eP(e,t=eV){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):s).replace(/(&#38;|&amp;|&#x26;)/g,"&"));ew(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let e_=(e,t)=>"function"==typeof e?ez(t,e):ez(e);function ez(e={},t){let{label:n="style",base:o,props:l={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([n,null==t?void 0:t.className,o,l,a,s])),p=h("",o||"",c.c);function h(e,r,i){return T(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&N(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=c[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+r(p)}))}let eq=function(e,...t){return("function"==typeof this?this:eV)(R(e,t))};export{B as animation,I as apply,er as arbitrary,l as asArray,eM as auto,j as autoDarkColor,ee as colorFromTheme,eP as consume,W as css,ek as cssom,ec as cx,ea as defineConfig,ej as dom,r as escape,eI as extract,Z as fromMatch,Q as fromTheme,es as getAutocompleteProvider,eS as getSheet,i as hash,u as identity,eL as injectGlobal,eU as inline,eN as install,eF as keyframes,Y as match,X as matchColor,K as matchTheme,o as mql,s as noop,eo as normalize,ex as observe,N as parse,et as parseValue,eD as setup,P as shortcut,eE as stringify,e_ as style,en as toCSS,k as toColorValue,eV as tw,e$ as twind,eq as tx,eO as virtual,eu as withAutocomplete};//# sourceMappingURL=core.browser.dev.js.map
let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,n=","){return e.map(t).join(n)}let r="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function o(e,t="@media "){return t+l(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function l(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function f(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(a(e),15)<<18}let p=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function h({n:e,i:n,v:r=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:n,v:r})),s=[...l(s)],r)){let a=i.theme("screens",c);for(let h of l(a&&o(a)||i.v(c))){var d;s.push(h),u|=a?67108864|f(h):"dark"==c?1073741824:"@"==h[0]?f(h):(d=h,1<<~(/:([a-z-]+)/.test(d)&&~p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:u,r:s,i:n}}let d=new Map;function g(e){if(e.d){let t=[],n=y(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?y(e,e=>y(n,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):m(e,t)}return m(t,e)})):e,"&"),t=>m(t,e.n?"."+r(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function y(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function m(e,t){return e.replace(/&/g,t)}let b=new Intl.Collator("en",{numeric:!0});function v(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=$(e[i],t)?n=i+1:r=i}return r}function $(e,t){let n=e.p&c.o;return n==(t.p&c.o)&&(n==c.b||n==c.o)?0:e.p-t.p||e.o-t.o||b.compare(w(e.n),w(t.n))||b.compare(x(e.n),x(t.n))}function w(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function x(e){return(e||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function A(e,t){return Math.round(parseInt(e,16)*t)}function k(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[A(e.substr(1,o),l),A(e.substr(1+o,o),l),A(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function j(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function O(e,t,n,r,u=[]){return function e(t,{n:n,p:r,r:u=[],i:s},p){let h=[],d="",y=0,m=0;for(let b in t||{}){var v,w;let x=t[b];if("@"==b[0]){if(!x)continue;if("a"==b[1]){h.push(...M(n,r,N(""+x),p,r,u,s,!0));continue}if("l"==b[1]){for(let A of l(x))h.push(...e(A,{n:n,p:(v=c[b[7]],r&~c.o|v),r:u,i:s},p));continue}if("i"==b[1]){h.push(...l(x).map(e=>({p:-1,o:0,r:[],d:b+" "+e})));continue}if("k"==b[1]){h.push({p:c.d,o:0,r:[b],d:e(x,{p:c.d},p).map(g).join("")});continue}if("f"==b[1]){h.push(...l(x).map(t=>({p:c.d,o:0,r:[b],d:e(t,{p:c.d},p).map(g).join("")})));continue}}if("object"!=typeof x||Array.isArray(x))"label"==b&&x?n=x+i(JSON.stringify([r,s,t])):(x||0===x)&&(b=b.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m+=1,y=Math.max(y,"-"==(w=b)[0]?0:a(w)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(w)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+l(x).map(e=>p.s(b,S(""+e,p.theme)+(s?" !important":""))).join(";"));else if("@"==b[0]||b.includes("&")){let k=r;"@"==b[0]&&(b=b.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=p.theme("screens",t);return n?(k|=67108864,o(n,"")):e}),k|=f(b)),h.push(...e(x,{n:n,p:k,r:[...u,b],i:s},p))}else h.push(...e(x,{p:r,r:[...u,b]},p))}return h.unshift({n:n,p:r,o:Math.max(0,15-m)+1.5*Math.min(y||15,15),r:u,d:d}),h.sort($)}(e,h(t,n,r,u),n)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?k(l):""+l})}function E(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n={...i,n:i.n&&t}):r.push({...i,n:i.n&&t});return r}function C(e,n,r=c.u,i,o){let u=[];for(let s of e)for(let a of function(e,n,r,i,o){var u;e={...e,i:e.i||o};let s=function(e,t){let n=d.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,n);return s?"string"==typeof s?({r:i,p:r}=h(e,n,r,i),E(C(N(s),n,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return{o:0,...e,r:[...l(i),...l(e.r)],p:(t=r,n=null!=(u=e.p)?u:r,t&~c.o|n)}}):O(s,e,n,r,i):[{c:t(e),p:0,o:0,r:[]}]}(s,n,r,i,o))u.splice(v(u,a),0,a);return u}function M(e,t,n,r,i,o,l,u){return E((u?n.flatMap(e=>C([e],r,i,o,l)):C(n,r,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:e.p&~c.o|t,o:0}:e),e)}function T(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=h(e,i,t);return n&&M(o,t,n,i,l,u,s,r)},d.set(e,i),e}function V(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(D),i:i},{a:{value:[...e]},l:{value:n}})))}}function D(e,t,n){return n.indexOf(e)==t}let L=new Map;function N(e){let t=L.get(e);if(!t){let r=[],o=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&V(r,o,[l,a+n])),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=o.shift();r.length=h,V([...r,"#"],o,[l,a]);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);V([...r,T(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],o,[l,a])}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),L.set(e,t=o[0])}return t}function F(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function R(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F(e,t,e=>U(e).trim()):t.filter(Boolean).reduce((e,t)=>e+U(t),e?U(e):"")}function U(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=R(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let I=_("@"),P=_("~");function _(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,r,i){return n(N(t+e+"("+R(r,i)+")"))}}function z(e,t){return Array.isArray(e)?J(F(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?J(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function J(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=q.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function W(e,...t){var n,r;let o=z(e,t),l=((null==(n=o.find(e=>e.label))?void 0:n.label)||"css")+i(JSON.stringify(o));return r=(e,t)=>E(o.flatMap(n=>O(n,e,t,c.o)),l),d.set(l,r),l}let B=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return G(t,e,n)}});function G(e,t,n){return{toString:()=>W({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+n}})}}function Y(e,t,n){return[e,Z(t,n)]}function Z(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):H(n,1)}):t=>e||{[t[1]]:H(t,2)}}function H(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function K(e,t,n,r){return[e,Q(t,n,r)]}function Q(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return eu((t,n)=>{var i;let o=ei(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:er(t.$$,o,n);if(null!=l)return t._=H(t,0,l),r(t,n,o)},(t,n)=>{let r=ei(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&k(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&k(o,{opacityValue:"1"})}]:[]})}function X(e,t={},n){return[e,ee(t,n)]}function ee(e={},t){return eu((n,r)=>{let{section:i=ei(n[0]).replace("-","")+"Color"}=e,[o,l]=et(n.$$);if(!o)return;let u=r.theme(i,o)||er(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&er(l,c,r),h=t||(({_:e})=>{let t=en(a,e);return f?{[f]:t}:t});n._={value:k(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>k(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:k(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>k(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=ei(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:k(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:k(t,{opacityValue:n})})).concat([{modifier:"[",color:k(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:k(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:k(u,{opacityValue:t})})).concat([{modifier:"[",color:k(u,{opacityValue:"1"})}])}]:[]})}function et(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function en(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function er(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=eo(S(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ei(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function eo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>eo(t)+n+eo(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let el=Symbol("@twind/autocomplete");function eu(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,el,{value:t,configurable:!0});let[n,r,i]=l(e);return[n,Object.defineProperty(Z(r,i),el,{value:t,configurable:!0})]}return e}function es(e){return e[el]}function ec(e,...t){return n(N(R(e,t))," ")}function ea({presets:e=[],...t}){let n={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:l(t.variants),rules:l(t.rules),ignorelist:l(t.ignorelist),hash:t.hash,stringify:t.stringify||ef};for(let r of l([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&l(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=n.hash,stringify:h=n.stringify}="function"==typeof r?r(n):r;n={preflight:!1!==n.preflight&&!1!==i&&[...n.preflight,...l(i)],darkMode:o,darkColor:u,theme:{...n.theme,...s,extend:{...n.theme.extend,...null==s?void 0:s.extend}},variants:[...n.variants,...l(c)],rules:[...n.rules,...l(a)],ignorelist:[...n.ignorelist,...l(f)],hash:p,stringify:h}}return n}function ef(e,t){return e+":"+t}function ep(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n},cancelable:!0});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function eh(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ed(e){var t;return ey(e[0],"function"==typeof(t=e[1])?t:()=>t)}function eg(e){var t,n;return Array.isArray(e)?ey(e[0],Z(e[1],e[2])):ey(e,Z(t,n))}function ey(e,t){return em(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function em(e,t){let n=l(e).map(eb);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function eb(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ev(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function e$(e,t){let n=ea(e),o=function({theme:e,darkMode:t,darkColor:n,variants:o,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=em(f,(e,t)=>t.test(e)),m=new Set;o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let b="function"==typeof c?e=>c(e,i):c?i:u;return{theme:function({extend:e={},...t}){let n={},r={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return i;function i(r,l,u,s){if(r){var c;if({1:r,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(r)||[,r],/[.[]/.test(r)){let a=[];r.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),r=a.shift(),u=l,l=a.join("-")}let f=n[r]||Object.assign(Object.assign(n[r]={},o(t,r)),o(e,r));if(null==l)return f;let p=null!=(c=f[l||"DEFAULT"])?c:u;return s?k(p,{opacityValue:S(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function o(e,t){let n=e[t];return("function"==typeof n&&(n=n(r)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:r,h:b,s(e,t){return a(ev(e,b),ev(t,b),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,eh(e,o,h,ed,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&eh(e,s,g,eg,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ep(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),s=new Map,a=[],f=new Set;function p(e){let n=e.n&&o.h(e.n),r=g(n?{...e,n:n}:e);if(r&&!f.has(r)){f.add(r);let i=v(a,e);t.insert(r,i,e),a.splice(i,0,e)}return n}return t.resume(e=>s.set(e,e),(e,n)=>{t.insert(e,a.length,n),a.push(n),f.add(e)}),Object.defineProperties(function(e){if(!s.size)for(let t of l(n.preflight))"function"==typeof t&&(t=t(o)),t&&("string"==typeof t?M("",c.b,N(t),o,c.b,[],!1,!0):O(t,{},o,c.b)).forEach(p);e=""+e;let r=s.get(e);if(!r){let i=new Set;for(let u of C(N(e),o))i.add(u.c).add(p(u));r=[...i].filter(Boolean).join(" "),s.set(e,r).set(r,r)}return r},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:o.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(s),i=[...a];return()=>{e(),f=n,s=r,a=i}},clear(){t.clear(),f=new Set,s=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function ew(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function ex(e=eV,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&ew(r,n=e(r))&&t.setAttribute("class",n)}}function eA(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ek(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:eA(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||ep(r.message,"TWIND_INVALID_CSS",e)}},resume:s}}function ej(e){let t=e&&"string"!=typeof e?e:eA(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:s}}function eO(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:s}}function eS(e,t){let n=e?ej():ek();return t||(n.resume=eC),n}function eE(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function eC(e,t){let n=eE(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eM(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return s}function eT(){if(!e)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eV=new Proxy(s,{apply:(t,n,r)=>(eT(),e(r[0])),get(t,n){eT();let r=e[n];return"function"==typeof r?function(){return eT(),r.apply(e,arguments)}:r}});function eD(t={},n=eS,r){return null==e||e.destroy(),e=ex(e$(t,"function"==typeof n?n():n),r)}let eL=function(e,...t){("function"==typeof this?this:eV)(W({"@layer base":z(e,t)}))};function eN(e,t=!1){var n;let r=ea(e);return eD({...r,hash:null!=(n=r.hash)?n:t},()=>eS(!t))}let eF=function e(t){return new Proxy(function(e,...n){return eR(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eR(t,r,e,n)}})}();function eR(e,t,n,o){return{toString(){let l=z(n,o),u=r(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eV)(W({[`@keyframes ${u}`]:z(n,o)})),u}}}function eU(e,t={}){let{tw:n=eV,minify:r=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eI(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)}function eI(e,t=eV){let n=t.snapshot(),r={html:eP(e,t),css:eE(t.target)};return n(),r}function eP(e,t=eV){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):s).replace(/(&#38;|&amp;|&#x26;)/g,"&"));ew(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let e_=(e,t)=>"function"==typeof e?ez(t,e):ez(e);function ez(e={},t){let{label:n="style",base:o,props:l={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([n,null==t?void 0:t.className,o,l,a,s])),p=h("",o||"",c.c);function h(e,r,i){return T(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&N(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=c[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+r(p)}))}let eq=function(e,...t){return("function"==typeof this?this:eV)(R(e,t))};export{B as animation,I as apply,er as arbitrary,l as asArray,eM as auto,j as autoDarkColor,ee as colorFromTheme,eP as consume,W as css,ek as cssom,ec as cx,ea as defineConfig,ej as dom,r as escape,eI as extract,Z as fromMatch,Q as fromTheme,es as getAutocompleteProvider,eS as getSheet,i as hash,u as identity,eL as injectGlobal,eU as inline,eN as install,eF as keyframes,Y as match,X as matchColor,K as matchTheme,o as mql,s as noop,eo as normalize,ex as observe,N as parse,et as parseValue,eD as setup,P as shortcut,eE as stringify,e_ as style,en as toCSS,k as toColorValue,eV as tw,e$ as twind,eq as tx,eO as virtual,eu as withAutocomplete};//# sourceMappingURL=core.browser.dev.js.map

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

var twind=function(e){"use strict";let t;function n(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,t=","){return e.map(n).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function c(){}let a={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(f(e),15)<<18}let h=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function d({n:e,i:t,v:r=[]},i,o,s){for(let c of(e&&(e=n({n:e,i:t,v:r})),s=[...u(s)],r)){let a=i.theme("screens",c);for(let f of u(a&&l(a)||i.v(c))){var d;s.push(f),o|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let g=new Map;function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],n=b(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?b(e,e=>b(n,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=A(e[i],t)?n=i+1:r=i}return r}function A(e,t){let n=e.p&a.o;return n==(t.p&a.o)&&(n==a.b||n==a.o)?0:e.p-t.p||e.o-t.o||w.compare(k(e.n),k(t.n))||w.compare(O(e.n),O(t.n))}function k(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function O(e){return(e||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function j(e,t){return Math.round(parseInt(e,16)*t)}function S(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[j(e.substr(1,o),l),j(e.substr(1+o,o),l),j(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function E(e,t,n,r,i=[]){return function e(t,{n:n,p:r,r:i=[],i:s},c){let h=[],d="",g=0,y=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...V(n,r,R(""+w),c,r,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:n,p:(b=a[m[7]],r&~a.o|b),r:i,i:s},c));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:a.d,o:0,r:[m],d:e(w,{p:a.d},c).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:a.d,o:0,r:[m],d:e(t,{p:a.d},c).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?n=w+o(JSON.stringify([r,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,g=Math.max(g,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>c.s(m,C(""+e,c.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let k=r;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=c.theme("screens",t);return n?(k|=67108864,l(n,"")):e}),k|=p(m)),h.push(...e(w,{n:n,p:k,r:[...i,m],i:s},c))}else h.push(...e(w,{p:r,r:[...i,m]},c))}return h.unshift({n:n,p:r,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,n,r,i),n)}function C(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?S(l):""+l})}function M(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n=m({},i,{n:i.n&&t})):r.push(m({},i,{n:i.n&&t}));return r}function T(e,t,r=a.u,i,o){let l=[];for(let s of e)for(let c of function(e,t,r,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let n=g.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:r}=d(e,t,r,i),M(T(R(s),t,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=r,n=null!=(l=e.p)?l:r,t&~a.o|n)})}):E(s,e,t,r,i):[{c:n(e),p:0,o:0,r:[]}]}(s,t,r,i,o))l.splice(x(l,c),0,c);return l}function V(e,t,n,r,i,o,l,u){return M((u?n.flatMap(e=>T([e],r,i,o,l)):T(n,r,i,o,l)).map(e=>e.p&a.o&&(e.n||t==a.b)?m({},e,{p:e.p&~a.o|t,o:0}):e),e)}function D(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return n&&V(o,t,n,i,l,u,s,r)},g.set(e,i),e}function L(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(N),i:i},{a:{value:[...e]},l:{value:n}})))}}function N(e,t,n){return n.indexOf(e)==t}let F=new Map;function R(e){let t=F.get(e);if(!t){let n=[],i=[[]],l=0,u=0,s=null,c=0,f=(t,r=0)=>{l!=c&&(n.push(e.slice(l,c+r)),t&&L(n,i,[l,c+r])),l=c+1};for(;c<e.length;c++){let p=e[c];if(u)"\\"!=e[c-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[c-1]&&s.test(e.slice(c))&&(s=null,l=c+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[c-1]&&("*"==e[c+1]||"/"==e[c+1]))s="*"==e[c+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[c+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let g=i.shift();n.length=h,L([...n,"#"],i,[l,c]);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);L([...n,D(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+r(g)+")",a.a,g,/@$/.test(d))],i,[l,c])}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[c+1]&&i.unshift([])}f(!0),F.set(e,t=i[0])}return t}function U(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function P(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?U(e,t,e=>I(e).trim()):t.filter(Boolean).reduce((e,t)=>e+I(t),e?I(e):"")}function I(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=P(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let _=q("@"),z=q("~");function q(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,n,i){return r(R(t+e+"("+P(n,i)+")"))}}function J(e,t){return Array.isArray(e)?B(U(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?B(e):[e]}let W=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function B(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=W.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function G(e,...t){var n,r;let i=J(e,t),l=((null==(n=i.find(e=>e.label))?void 0:n.label)||"css")+o(JSON.stringify(i));return r=(e,t)=>M(i.flatMap(n=>E(n,e,t,a.o)),l),g.set(l,r),l}let Y=new Proxy(function(e,t){return Z("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return Z(t,e,n)}});function Z(e,t,n){return{toString:()=>G({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+n})})}}function H(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):K(n,1)}):t=>e||{[t[1]]:K(t,2)}}function K(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function Q(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return el((t,n)=>{var i;let o=er(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:en(t.$$,o,n);if(null!=l)return t._=K(t,0,l),r(t,n,o)},(t,n)=>{let r=er(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&S(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&S(o,{opacityValue:"1"})}]:[]})}function X(e={},t){return el((n,r)=>{let{section:i=er(n[0]).replace("-","")+"Color"}=e,[o,l]=ee(n.$$);if(!o)return;let u=r.theme(i,o)||en(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&en(l,c,r),h=t||(({_:e})=>{let t=et(a,e);return f?{[f]:t}:t});n._={value:S(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>S(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:S(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>S(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=er(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:S(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:S(t,{opacityValue:n})})).concat([{modifier:"[",color:S(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:S(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:S(u,{opacityValue:t})})).concat([{modifier:"[",color:S(u,{opacityValue:"1"})}])}]:[]})}function ee(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function et(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function en(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=ei(C(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function er(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function ei(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>ei(t)+n+ei(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let eo=Symbol("@twind/autocomplete");function el(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,eo,{value:t,configurable:!0});let[n,r,i]=u(e);return[n,Object.defineProperty(H(r,i),eo,{value:t,configurable:!0})]}return e}function eu(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function es(e){var{presets:t=[]}=e,n=eu(e,["presets"]);let r={preflight:!1!==n.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(n.variants),rules:u(n.rules),ignorelist:u(n.ignorelist),hash:n.hash,stringify:n.stringify||ec};for(let i of u([...t,{darkMode:n.darkMode,darkColor:n.darkColor,preflight:!1!==n.preflight&&u(n.preflight),theme:n.theme,hash:n.hash,stringify:n.stringify}])){let{preflight:o,darkMode:l=r.darkMode,darkColor:s=r.darkColor,theme:c,variants:a,rules:f,ignorelist:p,hash:h=r.hash,stringify:d=r.stringify}="function"==typeof i?i(r):i;r={preflight:!1!==r.preflight&&!1!==o&&[...r.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},r.theme,c,{extend:m({},r.theme.extend,null==c?void 0:c.extend)}),variants:[...r.variants,...u(a)],rules:[...r.rules,...u(f)],ignorelist:[...r.ignorelist,...u(p)],hash:h,stringify:d}}return r}function ec(e,t){return e+":"+t}function ea(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function ef(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ep(e){var t;return ed(e[0],"function"==typeof(t=e[1])?t:()=>t)}function eh(e){var t,n;return Array.isArray(e)?ed(e[0],H(e[1],e[2])):ed(e,H(t,n))}function ed(e,t){return eg(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function eg(e,t){let n=u(e).map(ey);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function ey(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function em(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function ev(e,t){let n=es(e),r=function({theme:e,darkMode:t,darkColor:n,variants:r,rules:l,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=eg(f,(e,t)=>t.test(e)),m=new Set;r.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,o):c?o:s;return{theme:function(e){var{extend:t={}}=e,n=eu(e,["extend"]);let r={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return o;function o(e,i,u,s){if(e){var c;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let a=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),e=a.shift(),u=i,i=a.join("-")}let f=r[e]||Object.assign(Object.assign(r[e]={},l(n,e)),l(t,e));if(null==i)return f;let p=null!=(c=f[i||"DEFAULT"])?c:u;return s?S(p,{opacityValue:C(s,o)}):p}let h={};for(let d of[...Object.keys(n),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let n=e[t];return("function"==typeof n&&(n=n(i)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:i,h:v,s(e,t){return a(em(e,v),em(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,ef(e,r,h,ep,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&ef(e,l,g,eh,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ea(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),l=new Map,c=[],f=new Set;function p(e){let n=e.n&&r.h(e.n),i=v(n?m({},e,{n:n}):e);if(i&&!f.has(i)){f.add(i);let o=x(c,e);t.insert(i,o,e),c.splice(o,0,e)}return n}return t.resume(e=>l.set(e,e),(e,n)=>{t.insert(e,c.length,n),c.push(n),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?V("",a.b,R(t),r,a.b,[],!1,!0):E(t,{},r,a.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of T(R(e),r))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(l),i=[...c];return()=>{e(),f=n,l=r,c=i}},clear(){t.clear(),f=new Set,l=new Map,c=[]},destroy(){this.clear(),t.destroy()}}))}function eb(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function e$(e=eE,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&eb(r,n=e(r))&&t.setAttribute("class",n)}}function ew(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ex(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ew(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||ea(r.message,"TWIND_INVALID_CSS",e)}},resume:c}}function eA(e){let t=e&&"string"!=typeof e?e:ew(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:c}}function ek(e,t){let n=e?eA():ex();return t||(n.resume=ej),n}function eO(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function ej(e,t){let n=eO(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eS(){if(!t)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eE=new Proxy(c,{apply:(e,n,r)=>(eS(),t(r[0])),get(e,n){eS();let r=t[n];return"function"==typeof r?function(){return eS(),r.apply(t,arguments)}:r}});function eC(e={},n=ek,r){return null==t||t.destroy(),t=e$(ev(e,"function"==typeof n?n():n),r)}let eM=function e(t){return new Proxy(function(e,...n){return eT(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eT(t,r,e,n)}})}();function eT(e,t,n,r){return{toString(){let l=J(n,r),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:eE)(G({[`@keyframes ${u}`]:J(n,r)})),u}}}function eV(e,t=eE){let n=t.snapshot(),r={html:eD(e,t),css:eO(t.target)};return n(),r}function eD(e,t=eE){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):s).replace(/(&#38;|&amp;|&#x26;)/g,"&"));eb(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eL=(e,t)=>"function"==typeof e?eN(t,e):eN(e);function eN(e={},t){let{label:n="style",base:r,props:l={},defaults:u,when:s=[]}=e,c=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([n,null==t?void 0:t.className,r,l,c,s])),p=h("",r||"",a.c);function h(e,r,i){return D(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&R(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},c,e),o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let a=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=a[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=a[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:c,selector:"."+i(p)}))}return e.animation=Y,e.apply=_,e.arbitrary=en,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return c},e.autoDarkColor=function(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=X,e.consume=eD,e.css=G,e.cssom=ex,e.cx=function(e,...t){return r(R(P(e,t))," ")},e.defineConfig=es,e.dom=eA,e.escape=i,e.extract=eV,e.fromMatch=H,e.fromTheme=Q,e.getAutocompleteProvider=function(e){return e[eo]},e.getSheet=ek,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:eE)(G({"@layer base":J(e,t)}))},e.inline=function(e,t={}){let{tw:n=eE,minify:r=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eV(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)},e.install=function(e,t=!1){var n;let r=es(e);return eC(m({},r,{hash:null!=(n=r.hash)?n:t}),()=>ek(!t))},e.keyframes=eM,e.match=function(e,t,n){return[e,H(t,n)]},e.matchColor=function(e,t={},n){return[e,X(t,n)]},e.matchTheme=function(e,t,n,r){return[e,Q(t,n,r)]},e.mql=l,e.noop=c,e.normalize=ei,e.observe=e$,e.parse=R,e.parseValue=ee,e.setup=eC,e.shortcut=z,e.stringify=eO,e.style=eL,e.toCSS=et,e.toColorValue=S,e.tw=eE,e.twind=ev,e.tx=function(e,...t){return("function"==typeof this?this:eE)(P(e,t))},e.virtual=function(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:c}},e.withAutocomplete=el,e}({});//# sourceMappingURL=core.global.dev.js.map
var twind=function(e){"use strict";let t;function n(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,t=","){return e.map(n).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function c(){}let a={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(f(e),15)<<18}let h=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function d({n:e,i:t,v:r=[]},i,o,s){for(let c of(e&&(e=n({n:e,i:t,v:r})),s=[...u(s)],r)){let a=i.theme("screens",c);for(let f of u(a&&l(a)||i.v(c))){var d;s.push(f),o|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let g=new Map;function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],n=b(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?b(e,e=>b(n,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=A(e[i],t)?n=i+1:r=i}return r}function A(e,t){let n=e.p&a.o;return n==(t.p&a.o)&&(n==a.b||n==a.o)?0:e.p-t.p||e.o-t.o||w.compare(k(e.n),k(t.n))||w.compare(O(e.n),O(t.n))}function k(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function O(e){return(e||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function j(e,t){return Math.round(parseInt(e,16)*t)}function S(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[j(e.substr(1,o),l),j(e.substr(1+o,o),l),j(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function E(e,t,n,r,i=[]){return function e(t,{n:n,p:r,r:i=[],i:s},c){let h=[],d="",g=0,y=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...V(n,r,R(""+w),c,r,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:n,p:(b=a[m[7]],r&~a.o|b),r:i,i:s},c));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:a.d,o:0,r:[m],d:e(w,{p:a.d},c).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:a.d,o:0,r:[m],d:e(t,{p:a.d},c).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?n=w+o(JSON.stringify([r,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,g=Math.max(g,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>c.s(m,C(""+e,c.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let k=r;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=c.theme("screens",t);return n?(k|=67108864,l(n,"")):e}),k|=p(m)),h.push(...e(w,{n:n,p:k,r:[...i,m],i:s},c))}else h.push(...e(w,{p:r,r:[...i,m]},c))}return h.unshift({n:n,p:r,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,n,r,i),n)}function C(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?S(l):""+l})}function M(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n=m({},i,{n:i.n&&t})):r.push(m({},i,{n:i.n&&t}));return r}function T(e,t,r=a.u,i,o){let l=[];for(let s of e)for(let c of function(e,t,r,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let n=g.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:r}=d(e,t,r,i),M(T(R(s),t,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=r,n=null!=(l=e.p)?l:r,t&~a.o|n)})}):E(s,e,t,r,i):[{c:n(e),p:0,o:0,r:[]}]}(s,t,r,i,o))l.splice(x(l,c),0,c);return l}function V(e,t,n,r,i,o,l,u){return M((u?n.flatMap(e=>T([e],r,i,o,l)):T(n,r,i,o,l)).map(e=>e.p&a.o&&(e.n||t==a.b)?m({},e,{p:e.p&~a.o|t,o:0}):e),e)}function D(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return n&&V(o,t,n,i,l,u,s,r)},g.set(e,i),e}function L(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(N),i:i},{a:{value:[...e]},l:{value:n}})))}}function N(e,t,n){return n.indexOf(e)==t}let F=new Map;function R(e){let t=F.get(e);if(!t){let n=[],i=[[]],l=0,u=0,s=null,c=0,f=(t,r=0)=>{l!=c&&(n.push(e.slice(l,c+r)),t&&L(n,i,[l,c+r])),l=c+1};for(;c<e.length;c++){let p=e[c];if(u)"\\"!=e[c-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[c-1]&&s.test(e.slice(c))&&(s=null,l=c+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[c-1]&&("*"==e[c+1]||"/"==e[c+1]))s="*"==e[c+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[c+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let g=i.shift();n.length=h,L([...n,"#"],i,[l,c]);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);L([...n,D(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+r(g)+")",a.a,g,/@$/.test(d))],i,[l,c])}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[c+1]&&i.unshift([])}f(!0),F.set(e,t=i[0])}return t}function U(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function P(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?U(e,t,e=>I(e).trim()):t.filter(Boolean).reduce((e,t)=>e+I(t),e?I(e):"")}function I(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=P(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let _=q("@"),z=q("~");function q(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,n,i){return r(R(t+e+"("+P(n,i)+")"))}}function J(e,t){return Array.isArray(e)?B(U(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?B(e):[e]}let W=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function B(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=W.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function G(e,...t){var n,r;let i=J(e,t),l=((null==(n=i.find(e=>e.label))?void 0:n.label)||"css")+o(JSON.stringify(i));return r=(e,t)=>M(i.flatMap(n=>E(n,e,t,a.o)),l),g.set(l,r),l}let Y=new Proxy(function(e,t){return Z("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return Z(t,e,n)}});function Z(e,t,n){return{toString:()=>G({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+n})})}}function H(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):K(n,1)}):t=>e||{[t[1]]:K(t,2)}}function K(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function Q(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return el((t,n)=>{var i;let o=er(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:en(t.$$,o,n);if(null!=l)return t._=K(t,0,l),r(t,n,o)},(t,n)=>{let r=er(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&S(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&S(o,{opacityValue:"1"})}]:[]})}function X(e={},t){return el((n,r)=>{let{section:i=er(n[0]).replace("-","")+"Color"}=e,[o,l]=ee(n.$$);if(!o)return;let u=r.theme(i,o)||en(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&en(l,c,r),h=t||(({_:e})=>{let t=et(a,e);return f?{[f]:t}:t});n._={value:S(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>S(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:S(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>S(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=er(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:S(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:S(t,{opacityValue:n})})).concat([{modifier:"[",color:S(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:S(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:S(u,{opacityValue:t})})).concat([{modifier:"[",color:S(u,{opacityValue:"1"})}])}]:[]})}function ee(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function et(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function en(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=ei(C(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function er(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function ei(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>ei(t)+n+ei(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let eo=Symbol("@twind/autocomplete");function el(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,eo,{value:t,configurable:!0});let[n,r,i]=u(e);return[n,Object.defineProperty(H(r,i),eo,{value:t,configurable:!0})]}return e}function eu(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function es(e){var{presets:t=[]}=e,n=eu(e,["presets"]);let r={preflight:!1!==n.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(n.variants),rules:u(n.rules),ignorelist:u(n.ignorelist),hash:n.hash,stringify:n.stringify||ec};for(let i of u([...t,{darkMode:n.darkMode,darkColor:n.darkColor,preflight:!1!==n.preflight&&u(n.preflight),theme:n.theme,hash:n.hash,stringify:n.stringify}])){let{preflight:o,darkMode:l=r.darkMode,darkColor:s=r.darkColor,theme:c,variants:a,rules:f,ignorelist:p,hash:h=r.hash,stringify:d=r.stringify}="function"==typeof i?i(r):i;r={preflight:!1!==r.preflight&&!1!==o&&[...r.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},r.theme,c,{extend:m({},r.theme.extend,null==c?void 0:c.extend)}),variants:[...r.variants,...u(a)],rules:[...r.rules,...u(f)],ignorelist:[...r.ignorelist,...u(p)],hash:h,stringify:d}}return r}function ec(e,t){return e+":"+t}function ea(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n},cancelable:!0});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function ef(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ep(e){var t;return ed(e[0],"function"==typeof(t=e[1])?t:()=>t)}function eh(e){var t,n;return Array.isArray(e)?ed(e[0],H(e[1],e[2])):ed(e,H(t,n))}function ed(e,t){return eg(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function eg(e,t){let n=u(e).map(ey);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function ey(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function em(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function ev(e,t){let n=es(e),r=function({theme:e,darkMode:t,darkColor:n,variants:r,rules:l,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=eg(f,(e,t)=>t.test(e)),m=new Set;r.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,o):c?o:s;return{theme:function(e){var{extend:t={}}=e,n=eu(e,["extend"]);let r={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return o;function o(e,i,u,s){if(e){var c;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let a=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),e=a.shift(),u=i,i=a.join("-")}let f=r[e]||Object.assign(Object.assign(r[e]={},l(n,e)),l(t,e));if(null==i)return f;let p=null!=(c=f[i||"DEFAULT"])?c:u;return s?S(p,{opacityValue:C(s,o)}):p}let h={};for(let d of[...Object.keys(n),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let n=e[t];return("function"==typeof n&&(n=n(i)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:i,h:v,s(e,t){return a(em(e,v),em(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,ef(e,r,h,ep,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&ef(e,l,g,eh,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ea(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),l=new Map,c=[],f=new Set;function p(e){let n=e.n&&r.h(e.n),i=v(n?m({},e,{n:n}):e);if(i&&!f.has(i)){f.add(i);let o=x(c,e);t.insert(i,o,e),c.splice(o,0,e)}return n}return t.resume(e=>l.set(e,e),(e,n)=>{t.insert(e,c.length,n),c.push(n),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?V("",a.b,R(t),r,a.b,[],!1,!0):E(t,{},r,a.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of T(R(e),r))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(l),i=[...c];return()=>{e(),f=n,l=r,c=i}},clear(){t.clear(),f=new Set,l=new Map,c=[]},destroy(){this.clear(),t.destroy()}}))}function eb(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function e$(e=eE,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&eb(r,n=e(r))&&t.setAttribute("class",n)}}function ew(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ex(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ew(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||ea(r.message,"TWIND_INVALID_CSS",e)}},resume:c}}function eA(e){let t=e&&"string"!=typeof e?e:ew(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:c}}function ek(e,t){let n=e?eA():ex();return t||(n.resume=ej),n}function eO(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function ej(e,t){let n=eO(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eS(){if(!t)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eE=new Proxy(c,{apply:(e,n,r)=>(eS(),t(r[0])),get(e,n){eS();let r=t[n];return"function"==typeof r?function(){return eS(),r.apply(t,arguments)}:r}});function eC(e={},n=ek,r){return null==t||t.destroy(),t=e$(ev(e,"function"==typeof n?n():n),r)}let eM=function e(t){return new Proxy(function(e,...n){return eT(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eT(t,r,e,n)}})}();function eT(e,t,n,r){return{toString(){let l=J(n,r),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:eE)(G({[`@keyframes ${u}`]:J(n,r)})),u}}}function eV(e,t=eE){let n=t.snapshot(),r={html:eD(e,t),css:eO(t.target)};return n(),r}function eD(e,t=eE){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):s).replace(/(&#38;|&amp;|&#x26;)/g,"&"));eb(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eL=(e,t)=>"function"==typeof e?eN(t,e):eN(e);function eN(e={},t){let{label:n="style",base:r,props:l={},defaults:u,when:s=[]}=e,c=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([n,null==t?void 0:t.className,r,l,c,s])),p=h("",r||"",a.c);function h(e,r,i){return D(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&R(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},c,e),o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let a=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=a[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=a[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:c,selector:"."+i(p)}))}return e.animation=Y,e.apply=_,e.arbitrary=en,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return c},e.autoDarkColor=function(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=X,e.consume=eD,e.css=G,e.cssom=ex,e.cx=function(e,...t){return r(R(P(e,t))," ")},e.defineConfig=es,e.dom=eA,e.escape=i,e.extract=eV,e.fromMatch=H,e.fromTheme=Q,e.getAutocompleteProvider=function(e){return e[eo]},e.getSheet=ek,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:eE)(G({"@layer base":J(e,t)}))},e.inline=function(e,t={}){let{tw:n=eE,minify:r=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eV(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)},e.install=function(e,t=!1){var n;let r=es(e);return eC(m({},r,{hash:null!=(n=r.hash)?n:t}),()=>ek(!t))},e.keyframes=eM,e.match=function(e,t,n){return[e,H(t,n)]},e.matchColor=function(e,t={},n){return[e,X(t,n)]},e.matchTheme=function(e,t,n,r){return[e,Q(t,n,r)]},e.mql=l,e.noop=c,e.normalize=ei,e.observe=e$,e.parse=R,e.parseValue=ee,e.setup=eC,e.shortcut=z,e.stringify=eO,e.style=eL,e.toCSS=et,e.toColorValue=S,e.tw=eE,e.twind=ev,e.tx=function(e,...t){return("function"==typeof this?this:eE)(P(e,t))},e.virtual=function(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:c}},e.withAutocomplete=el,e}({});//# sourceMappingURL=core.global.dev.js.map
{
"name": "@twind/core",
"version": "1.0.2",
"version": "1.0.3-next-20221209074120",
"description": "The core engine without any presets.",

@@ -5,0 +5,0 @@ "type": "module",

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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