3 lines
20 KiB
JavaScript
3 lines
20 KiB
JavaScript
/* esm.sh - esbuild bundle(@twind/core@1.1.3) denonext production */
|
|
var B;function ae(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function ue(e,t=","){return e.map(ae).join(t)}var Y=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function T(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Ce(e,t="@media "){return t+b(e).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function b(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function te(e){return e}function F(){}var S={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Ee(e){return e.match(/[-=:;]/g)?.length||0}function re(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(Ee(e),15)<<18}var Ue=["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 ce({n:e,i:t,v:r=[]},i,n,l){e&&(e=ae({n:e,i:t,v:r})),l=[...b(l)];for(let s of r){let f=i.theme("screens",s);for(let a of b(f&&Ce(f)||i.v(s))){var o;l.push(a),n|=f?67108864|re(a):s=="dark"?1073741824:a[0]=="@"?re(a):(o=a,1<<~(/:([a-z-]+)/.test(o)&&~Ue.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:n,r:l,i:t}}var pe=new Map;function ne(e){if(e.d){let t=[],r=H(e.r.reduce((i,n)=>n[0]=="@"?(t.push(n),i):n?H(i,l=>H(n,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let f=l.indexOf(s[1]);return~f?l.slice(0,f)+s[0]+l.slice(f+s[1].length):Q(l,o)}return Q(o,l)})):i,"&"),i=>Q(i,e.n?"."+Y(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((i,n)=>n+"{"+i+"}",e.d)}}function H(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>t(i)+n)}function Q(e,t){return e.replace(/&/g,t)}var $e=new Intl.Collator("en",{numeric:!0});function Me(e,t){for(var r=0,i=e.length;r<i;){let n=i+r>>1;0>=Ne(e[n],t)?r=n+1:i=n}return i}function Ne(e,t){let r=e.p&S.o;return r==(t.p&S.o)&&(r==S.b||r==S.o)?0:e.p-t.p||e.o-t.o||$e.compare(we(e.n),we(t.n))||$e.compare(Ae(e.n),Ae(t.n))}function we(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Ae(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function X(e,t){return Math.round(parseInt(e,16)*t)}function P(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:r="1",opacityVariable:i}=t,n=i?`var(${i})`:r;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",n);if(e[0]=="#"&&(e.length==4||e.length==7)){let l=(e.length-1)/3,o=[17,1,.062272][l-1];return`rgba(${[X(e.substr(1,l),o),X(e.substr(1+l,l),o),X(e.substr(1+2*l,l),o),n]})`}return n=="1"?e:n=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function ct(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,i=>100*(9-~~(parseInt(i,10)/100)||.5)))}function de(e,t,r,i,n=[]){return function l(o,{n:s,p:f,r:a=[],i:c},u){let p=[],g="",y=0,$=0;for(let h in o||{}){var A,R;let d=o[h];if(h[0]=="@"){if(!d)continue;if(h[1]=="a"){p.push(...ge(s,f,I(""+d),u,f,a,c,!0));continue}if(h[1]=="l"){for(let w of b(d))p.push(...l(w,{n:s,p:(A=S[h[7]],f&~S.o|A),r:h[7]=="d"?[]:a,i:c},u));continue}if(h[1]=="i"){p.push(...b(d).map(w=>({p:-1,o:0,r:[],d:h+" "+w})));continue}if(h[1]=="k"){p.push({p:S.d,o:0,r:[h],d:l(d,{p:S.d},u).map(ne).join("")});continue}if(h[1]=="f"){p.push(...b(d).map(w=>({p:S.d,o:0,r:[h],d:l(w,{p:S.d},u).map(ne).join("")})));continue}}if(typeof d!="object"||Array.isArray(d))h=="label"&&d?s=d+T(JSON.stringify([f,c,o])):(d||d===0)&&(h=h.replace(/[A-Z]/g,w=>"-"+w.toLowerCase()),$+=1,y=Math.max(y,(R=h)[0]=="-"?0:Ee(R)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(R)?+!!RegExp.$1||-!!RegExp.$2:0)+1),g+=(g?";":"")+b(d).map(w=>u.s(h,he(""+w,u.theme)+(c?" !important":""))).join(";"));else if(h[0]=="@"||h.includes("&")){let w=f;h[0]=="@"&&(h=h.replace(/\bscreen\(([^)]+)\)/g,(x,M)=>{let N=u.theme("screens",M);return N?(w|=67108864,Ce(N,"")):x}),w|=re(h)),p.push(...l(d,{n:s,p:w,r:[...a,h],i:c},u))}else p.push(...l(d,{p:f,r:[...a,h]},u))}return p.unshift({n:s,p:f,o:Math.max(0,15-$)+1.5*Math.min(y||15,15),r:a,d:g}),p.sort(Ne)}(e,ce(t,r,i,n),r)}function he(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,l,o="")=>{let s=t(n,o);return typeof s=="function"&&/color|fill|stroke/i.test(n)?P(s):""+b(s).filter(f=>Object(f)!==f)})}function ye(e,t){let r,i=[];for(let n of e)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&t}):i.push({...n,n:n.n&&t});return i}function W(e,t,r=S.u,i,n){let l=[];for(let o of e)for(let s of function(f,a,c,u,p){f={...f,i:f.i||p};let g=function(y,$){let A=pe.get(y.n);return A?A(y,$):$.r(y.n,y.v[0]=="dark")}(f,a);return g?typeof g=="string"?({r:u,p:c}=ce(f,a,c,u),ye(W(I(g),a,c,u,f.i),f.n)):Array.isArray(g)?g.map(y=>{var $,A;return{o:0,...y,r:[...b(u),...b(y.r)],p:($=c,A=y.p??c,$&~S.o|A)}}):de(g,f,a,c,u):[{c:ae(f),p:0,o:0,r:[]}]}(o,t,r,i,n))l.splice(Me(l,s),0,s);return l}function ge(e,t,r,i,n,l,o,s){return ye((s?r.flatMap(f=>W([f],i,n,l,o)):W(r,i,n,l,o)).map(f=>f.p&S.o&&(f.n||t==S.b)?{...f,p:f.p&~S.o|t,o:0}:f),e)}function _e(e,t,r,i){var n;return n=(l,o)=>{let{n:s,p:f,r:a,i:c}=ce(l,o,t);return r&&ge(s,t,r,o,f,a,c,i)},pe.set(e,n),e}function K(e,t,r){if(e[e.length-1]!="("){let i=[],n=!1,l=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),n=!n),s.endsWith(":")){i[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),l=!l),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(l&&(o="-"+o),t[0].push({n:o,v:i.filter(Be),i:n}))}}function Be(e,t,r){return r.indexOf(e)==t}var Se=new Map;function I(e){let t=Se.get(e);if(!t){let r=[],i=[[]],n=0,l=0,o=null,s=0,f=(a,c=0)=>{n!=s&&(r.push(e.slice(n,s+c)),a&&K(r,i)),n=s+1};for(;s<e.length;s++){let a=e[s];if(l)e[s-1]!="\\"&&(l+=+(a=="[")||-(a=="]"));else if(a=="[")l+=1;else if(o)e[s-1]!="\\"&&o.test(e.slice(s))&&(o=null,n=s+RegExp.lastMatch.length);else if(a=="/"&&e[s-1]!="\\"&&(e[s+1]=="*"||e[s+1]=="/"))o=e[s+1]=="*"?/^\*\//:/^[\r\n]/;else if(a=="(")f(),r.push(a);else if(a==":")e[s+1]!=":"&&f(!1,1);else if(/[\s,)]/.test(a)){f(!0);let c=r.lastIndexOf("(");if(a==")"){let u=r[c-1];if(/[~@]$/.test(u)){let p=i.shift();r.length=c,K([...r,"#"],i);let{v:g}=i[0].pop();for(let y of p)y.v.splice(+(y.v[0]=="dark")-+(g[0]=="dark"),g.length);K([...r,_e(u.length>1?u.slice(0,-1)+T(JSON.stringify([u,p])):u+"("+ue(p)+")",S.a,p,/@$/.test(u))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(a)&&e[s+1]=="("&&i.unshift([])}f(!0),Se.set(e,t=i[0])}return t}function Ve(e,t,r){return t.reduce((i,n,l)=>i+r(n)+e[l+1],e[0])}function Z(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ve(e,t,r=>ee(r).trim()):t.filter(Boolean).reduce((r,i)=>r+ee(i),e?ee(e):"")}function ee(e){let t,r="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Z(e[0],e.slice(1)))&&(r+=" "+t);else for(let i in e)e[i]&&(r+=" "+i);else e!=null&&typeof e!="boolean"&&(r+=" "+e);return r}var pt=ze("@"),dt=ze("~");function ze(e){return new Proxy(function(i,...n){return t("",i,n)},{get(r,i){return i in r?r[i]:function(l,...o){return t(i,l,o)}}});function t(r,i,n){return ue(I(r+e+"("+Z(i,n)+")"))}}function G(e,t){return Array.isArray(e)?ve(Ve(e,t,r=>r!=null&&typeof r!="boolean"?r:"")):typeof e=="string"?ve(e):[e]}var We=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function ve(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],i=[r[0]],n=[];for(;t=We.exec(e);)t[4]&&(r.shift(),n.shift()),t[3]?(n.unshift(t[3]),r.unshift({}),i.push(n.reduce((l,o)=>({[o]:l}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),i.push(n.reduce((l,o)=>({[o]:l}),r[0]))),r[0][t[1]]=t[2]);return i}function me(e,...t){var r;let i=G(e,t),n=(i.find(l=>l.label)?.label||"css")+T(JSON.stringify(i));return r=(l,o)=>ye(i.flatMap(s=>de(s,l,o,S.o)),n),pe.set(n,r),n}var ht=new Proxy(function(e,t){return Re("animation",e,t)},{get(e,t){return t in e?e[t]:function(i,n){return Re(t,i,n)}}});function Re(e,t,r){return{toString(){return me({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+r}})}}}function yt(e,t,r){return[e,ie(t,r)]}function ie(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(r,i)=>({[e]:t?t(r,i):le(r,1)}):r=>e||{[r[1]]:le(r,2)}}function le(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${r} * -1)`:r}function gt(e,t,r,i){return[e,Ge(t,r,i)]}function Ge(e,t,r){let i=typeof t=="string"?(n,l)=>({[t]:r?r(n,l):n._}):t||(({1:n,_:l},o,s)=>({[n||s]:l}));return(n,l)=>{let o=ke(e||n[1]),s=l.theme(o,n.$$)??oe(n.$$,o,l);if(s!=null)return n._=le(n,0,s),i(n,l,o)}}function mt(e,t={},r){return[e,Ye(t,r)]}function Ye(e={},t){return(r,i)=>{let{section:n=ke(r[0]).replace("-","")+"Color"}=e,[l,o]=Ze(r.$$);if(!l)return;let s=i.theme(n,l)||oe(l,n,i);if(!s||typeof s=="object")return;let{opacityVariable:f=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:a=n.replace("Color","Opacity"),property:c=n,selector:u}=e,p=i.theme(a,o||"DEFAULT")||o&&oe(o,a,i),g=t||(({_:$})=>{let A=He(c,$);return u?{[u]:A}:A});r._={value:P(s,{opacityVariable:f||void 0,opacityValue:p||void 0}),color:$=>P(s,$),opacityVariable:f||void 0,opacityValue:p||void 0};let y=g(r,i);if(!r.dark){let $=i.d(n,l,s);$&&$!==s&&(r._={value:P($,{opacityVariable:f||void 0,opacityValue:p||"1"}),color:A=>P($,A),opacityVariable:f||void 0,opacityValue:p||void 0},y={"&":y,[i.v("dark")]:g(r,i)})}return y}}function Ze(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function He(e,t){let r={};return typeof t=="string"?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function oe(e,t,r){if(e[0]=="["&&e.slice(-1)=="]"){if(e=se(he(e.slice(1,-1),r.theme)),!t)return e;if(!(/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 ke(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function se(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,r="",i,n="")=>se(r)+i+se(n)):e.replace(/(^|[^\\])_+/g,(t,r)=>r+" ".repeat(t.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Qe=Symbol();function bt(e,t){return e}function $t(e){return e[Qe]}function wt(e,...t){return ue(I(Z(e,t))," ")}function Te({presets:e=[],...t}){let r={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:b(t.variants),rules:b(t.rules),ignorelist:b(t.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of b([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&b(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:n,darkMode:l=r.darkMode,darkColor:o=r.darkColor,theme:s,variants:f,rules:a,ignorelist:c,hash:u=r.hash,stringify:p=r.stringify,finalize:g}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...b(n)],darkMode:l,darkColor:o,theme:{...r.theme,...s,extend:{...r.theme.extend,...s?.extend}},variants:[...r.variants,...b(f)],rules:[...r.rules,...b(a)],ignorelist:[...r.ignorelist,...b(c)],hash:u,stringify:p,finalize:[...r.finalize,...b(g)]}}return r}function xe(e,t,r,i,n,l){for(let o of t){let s=r.get(o);s||r.set(o,s=i(o));let f=s(e,n,l);if(f)return f}}function Xe(e){var t;return fe(e[0],typeof(t=e[1])=="function"?t:()=>t)}function Ke(e){var t,r;return Array.isArray(e)?fe(e[0],ie(e[1],e[2])):fe(e,ie(t,r))}function fe(e,t){return Ie(e,(r,i,n,l)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=l,t(o,n)})}function Ie(e,t){let r=b(e).map(et);return(i,n,l)=>{for(let o of r){let s=t(i,o,n,l);if(s)return s}}}function et(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function tt(e,t){let r=Te(e),i=function({theme:f,darkMode:a,darkColor:c=F,variants:u,rules:p,hash:g,stringify:y,ignorelist:$,finalize:A}){let R=new Map,h=new Map,d=new Map,w=new Map,x=Ie($,(m,j)=>j.test(m));u.push(["dark",Array.isArray(a)||a=="class"?`${b(a)[1]||".dark"} &`:typeof a=="string"&&a!="media"?a:"@media (prefers-color-scheme:dark)"]);let M=typeof g=="function"?m=>g(m,T):g?T:te;M!==te&&A.push(m=>({...m,n:m.n&&M(m.n),d:m.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(j,C)=>"--"+M(C).replace("#",""))}));let N={theme:function({extend:m={},...j}){let C={},qe={get colors(){return L("colors")},theme:L,negative(){return{}},breakpoints(v){let E={};for(let O in v)typeof v[O]=="string"&&(E["screen-"+O]=v[O]);return E}};return L;function L(v,E,O,q){if(v){if({1:v,2:q}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(v)||[,v],/[.[]/.test(v)){let V=[];v.replace(/\[([^\]]+)\]|([^.[]+)/g,(k,U,Je=U)=>V.push(Je)),v=V.shift(),O=E,E=V.join("-")}let _=C[v]||Object.assign(Object.assign(C[v]={},be(j,v)),be(m,v));if(E==null)return _;E||="DEFAULT";let z=_[E]??E.split("-").reduce((V,k)=>V?.[k],_)??O;return q?P(z,{opacityValue:he(q,L)}):z}let J={};for(let _ of[...Object.keys(j),...Object.keys(m)])J[_]=L(_);return J}function be(v,E){let O=v[E];return typeof O=="function"&&(O=O(qe)),O&&/color|fill|stroke/i.test(E)?function q(J,_=[]){let z={};for(let V in J){let k=J[V],U=[..._,V];z[U.join("-")]=k,V=="DEFAULT"&&(U=_,z[_.join("-")]=k),typeof k=="object"&&Object.assign(z,q(k,U))}return z}(O):O}}(f),e:Y,h:M,s(m,j){return y(m,j,N)},d(m,j,C){return c(m,j,N,C)},v(m){return R.has(m)||R.set(m,xe(m,u,h,Xe,N)||"&:"+m),R.get(m)},r(m,j){let C=JSON.stringify([m,j]);return d.has(C)||d.set(C,!x(m,N)&&xe(m,p,w,Ke,N,j)),d.get(C)},f(m){return A.reduce((j,C)=>C(j,N),m)}};return N}(r),n=new Map,l=[],o=new Set;t.resume(f=>n.set(f,f),(f,a)=>{t.insert(f,l.length,a),l.push(a),o.add(f)});function s(f){let a=i.f(f),c=ne(a);if(c&&!o.has(c)){o.add(c);let u=Me(l,f);t.insert(c,u,f),l.splice(u,0,f)}return a.n}return Object.defineProperties(function(a){if(!n.size)for(let u of b(r.preflight))typeof u=="function"&&(u=u(i)),u&&(typeof u=="string"?ge("",S.b,I(u),i,S.b,[],!1,!0):de(u,{},i,S.b)).forEach(s);a=""+a;let c=n.get(a);if(!c){let u=new Set;for(let p of W(I(a),i))u.add(p.c).add(s(p));c=[...u].filter(Boolean).join(" "),n.set(a,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:i.theme,config:r,snapshot(){let f=t.snapshot(),a=new Set(o),c=new Map(n),u=[...l];return()=>{f(),o=a,n=c,l=u}},clear(){t.clear(),o=new Set,n=new Map,l=[]},destroy(){this.clear(),t.destroy()}}))}function De(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function rt(e){let t=new MutationObserver(r);return{observe(n){t.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){t.disconnect()}};function r(n){for(let{type:l,target:o}of n)if(l[0]=="a")i(o);else for(let s of o.querySelectorAll("[class]"))i(s);t.takeRecords()}function i(n){let l,o=n.getAttribute?.("class");o&&De(o,l=e(o))&&n.setAttribute("class",l)}}function nt(e=D,t=typeof document<"u"&&document.documentElement){if(t){let r=rt(e);r.observe(t);let{destroy:i}=e;e.destroy=()=>{r.disconnect(),i.call(e)}}return e}function Pe(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function it(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Pe(e)).sheet;return{target:t,snapshot(){let r=Array.from(t.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=t.cssRules.length;r--;)t.deleteRule(r)},destroy(){t.ownerNode?.remove()},insert(r,i){try{t.insertRule(r,i)}catch{t.insertRule(":root{}",i)}},resume:F}}function lt(e){let t=e&&typeof e!="string"?e:Pe(e);return{target:t,snapshot(){let r=Array.from(t.childNodes,i=>i.textContent);return()=>{this.clear(),r.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(r,i){t.insertBefore(document.createTextNode(r),t.childNodes[i]||null)},resume:F}}function ot(e){let t=[];return{target:t,snapshot(){let r=[...t];return()=>{t.splice(0,t.length,...r)}},clear(){t.length=0},destroy(){this.clear()},insert(r,i,n){t.splice(i,0,e?`/*!${n.p.toString(36)},${(2*n.o).toString(36)}${n.n?","+n.n:""}*/${r}`:r)},resume:F}}function Fe(e,t){let r=typeof document>"u"?ot(!t):e?lt():it();return t||(r.resume=st),r}function Le(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):b(e)).join("")}function st(e,t){let r=Le(this.target),i=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(i.test(r)){var n;let l;if(i.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;n=i.exec(r),l&&t(r.slice(l.index+l[0].length,n?.index),{p:parseInt(l[1],36),o:parseInt(l[2],36)/2,n:l[3]}),l=n;);}}function At(e){if(typeof document<"u"&&document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(i=>{for(let{target:n}of i)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return F}var D=new Proxy(F,{apply(e,t,r){return B(r[0])},get(e,t){let r=B[t];return typeof r=="function"?function(){return r.apply(B,arguments)}:r}});function ft(e={},t=Fe,r){return B?.destroy(),B=nt(tt(e,typeof t=="function"?t():t),r)}var St=function(e,...t){(typeof this=="function"?this:D)(me({"@layer base":G(e,t)}))};function vt(e,t=!0){let r=Te(e);return ft({...r,hash:r.hash??t},()=>Fe(!t))}var Rt=function e(t){return new Proxy(function(i,...n){return je(t,"",i,n)},{get(r,i){return i==="bind"?e:i in r?r[i]:function(l,...o){return je(t,i,l,o)}}})}();function je(e,t,r,i){return{toString(){let n=G(r,i),l=Y(t+T(JSON.stringify([t,n])));return(typeof e=="function"?e:D)(me({[`@keyframes ${l}`]:G(r,i)})),l}}}function xt(e,t={}){let{tw:r=D,minify:i=te}=typeof t=="function"?{tw:t}:t,{html:n,css:l}=at(e,r);return n.replace("</head>",`<style data-twind>${i(l,n)}</style></head>`)}function at(e,t=D){let r=t.snapshot(),i={html:ut(e,t),css:Le(t.target)};return r(),i}function ut(e,t=D){let r="",i=0;return function(n,l){let o=1,s=0,f="",a="",c=u=>{o==5&&a=="class"&&l(s,u,f)===!1&&(n="")};for(let u=0;u<n.length;u++){let p=n[u];o==1?p=="<"&&(o=n.substr(u+1,3)=="!--"?4:3):o==4?p==">"&&n.slice(u-2,u)=="--"&&(o=1):f?p==f&&n[u-1]!="\\"&&(c(u),o=2,f=""):p=='"'||p=="'"?(f=p,s+=1):p==">"?(c(u),o=1):o&&(p=="="?(a=n.slice(s,u),o=5,s=u+1):p=="/"&&(o<5||n[u+1]==">")?(c(u),o=0):/\s/.test(p)&&(c(u),o=2,s=u+1))}}(e,(n,l,o)=>{var s;let f=e.slice(n,l),a=t(((s=o)=='"'?f.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):s=="'"?f.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):f).replace(/(&|&|&)/g,"&"));De(f,a)&&(o=o?"":'"',r+=e.slice(i,n)+o+a+o,i=l)}),r+e.slice(i,e.length)}var jt=(e,t)=>typeof e=="function"?Oe(t,e):Oe(e);function Oe(e={},t){let{label:r="style",base:i,props:n={},defaults:l,when:o=[]}=e,s={...t?.defaults,...l},f=T(JSON.stringify([r,t?.className,i,n,s,o])),a=c("",i||"",S.c);function c(u,p,g){return _e(((t?t.className.replace(/#.+$/,"~"):"")+r+u+f).replace(/[: ,()[\]]/,""),g,p&&I(p))}return Object.defineProperties(function(p){let g,y;Array.isArray(p)&&(g=!0,p=Object.fromEntries(new URLSearchParams(p[1]).entries()));let $={...s,...p},A=g?"":(t?t($)+" ":"")+a;for(let R in n){let h=n[R],d=$[R];if(d===Object(d)){let w="";y="";for(let x in d){let M=h[d[x]];M&&(w+="@"+x+"-"+d[x],y+=(y&&" ")+(x=="_"?M:x+":("+M+")"))}y&&(A+=" "+c("--"+R+"-"+w,y,402653184))}else(y=h[d])&&(A+=" "+c("--"+R+"-"+d,y,402653184))}return o.forEach((R,h)=>{let d="";for(let w in R[0]){let x=$[w];if(x!==Object(x)&&""+x==""+R[0][w])d+=(d&&"_")+w+"-"+x;else{d="";break}}d&&(y=R[1])&&(A+=" "+c("-"+h+"--"+d,y,536870912))}),A},Object.getOwnPropertyDescriptors({className:a,defaults:s,selector:"."+Y(a)}))}var Ot=function(e,...t){return(typeof this=="function"?this:D)(Z(e,t))};export{ht as animation,pt as apply,oe as arbitrary,b as asArray,At as auto,ct as autoDarkColor,Ye as colorFromTheme,ut as consume,me as css,it as cssom,wt as cx,Te as defineConfig,lt as dom,Y as escape,at as extract,ie as fromMatch,Ge as fromTheme,$t as getAutocompleteProvider,Fe as getSheet,T as hash,te as identity,St as injectGlobal,xt as inline,vt as install,Rt as keyframes,yt as match,mt as matchColor,gt as matchTheme,rt as mo,Ce as mql,F as noop,se as normalize,nt as observe,I as parse,Ze as parseValue,ft as setup,dt as shortcut,Le as stringify,jt as style,He as toCSS,P as toColorValue,D as tw,tt as twind,Ot as tx,ot as virtual,bt as withAutocomplete};
|
|
//# sourceMappingURL=core.bundle.mjs.map
|