MCPcopy
hub / github.com/mudler/LocalAI / DS

Function DS

core/http/static/assets/tailwindcss.js:29–29  ·  view source on GitHub ↗
(r,{context:e,candidate:t,original:i})

Source from the content-addressed store, hash-verified

27`)).join(`
28
29`);k.push(` Use \`${r.replace("[",`[${P}:`)}\` for \`${F.trim()}\``);break}M.warn([`The class \`${r}\` is ambiguous and matches multiple utilities.`,...k,`If this is content and not a class, replace it with \`${r.replace("[","&lsqb;").replace("]","&rsqb;")}\` to silence this warning.`]);continue}}u=u.map(m=>m.filter(y=>rh(y[1])))}u=u.flat(),u=Array.from(PS(u,n)),u=vS(u,e),a&&(u=kS(u,n));for(let m of s)u=SS(m,u,e);for(let m of u)m[1].raws.tailwind={...m[1].raws.tailwind,candidate:r},m=DS(m,{context:e,candidate:r,original:t}),m!==null&&(yield m)}}function DS(r,{context:e,candidate:t,original:i}){if(!r[0].collectedFormats)return r;let n=!0,s;try{s=Vt(r[0].collectedFormats,{context:e,candidate:t})}catch{return null}let a=z.root({nodes:[r[1].clone()]});return a.walkRules(o=>{if(!Pn(o))try{o.selector=On(o.selector,s,{candidate:i,context:e})}catch{return n=!1,!1}}),n?(r[1]=a.nodes[0],r):null}function Pn(r){return r.parent&&r.parent.type==="atrule"&&r.parent.name==="keyframes"}function IS(r){if(r===!0)return e=>{Pn(e)||e.walkDecls(t=>{t.parent.type==="rule"&&!Pn(t.parent)&&(t.important=!0)})};if(typeof r=="string")return e=>{Pn(e)||(e.selectors=e.selectors.map(t=>En(t,r)))}}function Dn(r,e){let t=[],i=IS(e.tailwindConfig.important);for(let n of r){if(e.notClassCache.has(n))continue;if(e.candidateRuleCache.has(n)){t=t.concat(Array.from(e.candidateRuleCache.get(n)));continue}let s=Array.from(Tn(n,e));if(s.length===0){e.notClassCache.add(n);continue}e.classCache.set(n,s);let a=e.candidateRuleCache.get(n)??new Set;e.candidateRuleCache.set(n,a);for(let o of s){let[{sort:u,options:c},f]=o;if(c.respectImportant&&i){let h=z.root({nodes:[f.clone()]});h.walkRules(i),f=h.nodes[0]}let d=[u,f];a.add(d),e.ruleCache.add(d),t.push(d)}}return t}function yo(r){return r.startsWith("[")&&r.endsWith("]")}var _n,wS,CS,In=S(()=>{l();st();_n=H(Qe());no();Et();wn();br();_e();Ie();po();ao();yr();Rn();lo();_t();qe();ho();wS=(0,_n.default)(r=>r.first.filter(({type:e})=>e==="class").pop().value);CS=/^[a-z_-]/});var nh,sh=S(()=>{l();nh={}});function qS(r){try{return nh.createHash("md5").update(r,"utf-8").digest("binary")}catch(e){return""}}function ah(r,e){let t=e.toString();if(!t.includes("@tailwind"))return!1;let i=ms.get(r),n=qS(t),s=i!==n;return ms.set(r,n),s}var oh=S(()=>{l();sh();Ie()});function Fn(r){return(r>0n)-(r<0n)}var lh=S(()=>{l()});function uh(r,e){let t=0n,i=0n;for(let[n,s]of e)r&n&&(t=t|n,i=i|s);return r&~t|i}var fh=S(()=>{l()});function ch(r){let e=null;for(let t of r)e=e??t,e=e>t?e:t;return e}function RS(r,e){let t=r.length,i=e.length,n=t<i?t:i;for(let s=0;s<n;s++){let a=r.charCodeAt(s)-e.charCodeAt(s);if(a!==0)return a}return t-i}var bo,ph=S(()=>{l();lh();fh();bo=class{constructor(){this.offsets={defaults:0n,base:0n,components:0n,utilities:0n,variants:0n,user:0n},this.layerPositions={defaults:0n,base:1n,components:2n,utilities:3n,user:4n,variants:5n},this.reservedVariantBits=0n,this.variantOffsets=new Map}create(e){return{layer:e,parentLayer:e,arbitrary:0n,variants:0n,parallelIndex:0n,index:this.offsets[e]++,options:[]}}arbitraryProperty(){return{...this.create("utilities"),arbitrary:1n}}forVariant(e,t=0){let i=this.variantOffsets.get(e);if(i===void 0)throw new Error(`Cannot find offset for unknown variant ${e}`);return{...this.create("variants"),variants:i<<BigInt(t)}}applyVariantOffset(e,t,i){return i.variant=t.variants,{...e,layer:"variants",parentLayer:e.layer==="variants"?e.parentLayer:e.layer,variants:e.variants|t.variants,options:i.sort?[].concat(i,e.options):e.options,parallelIndex:ch([e.parallelIndex,t.parallelIndex])}}applyParallelOffset(e,t){return{...e,parallelIndex:BigInt(t)}}recordVariants(e,t){for(let i of e)this.recordVariant(i,t(i))}recordVariant(e,t=1){return this.variantOffsets.set(e,1n<<this.reservedVariantBits),this.reservedVariantBits+=BigInt(t),{...this.create("variants"),variants:this.variantOffsets.get(e)}}compare(e,t){if(e.layer!==t.layer)return this.layerPositions[e.layer]-this.layerPositions[t.layer];if(e.parentLayer!==t.parentLayer)return this.layerPositions[e.parentLayer]-this.layerPositions[t.parentLayer];for(let i of e.options)for(let n of t.options){if(i.id!==n.id||!i.sort||!n.sort)continue;let s=ch([i.variant,n.variant])??0n,a=~(s|s-1n),o=e.variants&a,u=t.variants&a;if(o!==u)continue;let c=i.sort({value:i.value,modifier:i.modifier},{value:n.value,modifier:n.modifier});if(c!==0)return c}return e.variants!==t.variants?e.variants-t.variants:e.parallelIndex!==t.parallelIndex?e.parallelIndex-t.parallelIndex:e.arbitrary!==t.arbitrary?e.arbitrary-t.arbitrary:e.index-t.index}recalculateVariantOffsets(){let e=Array.from(this.variantOffsets.entries()).filter(([n])=>n.startsWith("[")).sort(([n],[s])=>RS(n,s)),t=e.map(([,n])=>n).sort((n,s)=>Fn(n-s));return e.map(([,n],s)=>[n,t[s]]).filter(([n,s])=>n!==s)}remapArbitraryVariantOffsets(e){let t=this.recalculateVariantOffsets();return t.length===0?e:e.map(i=>{let[n,s]=i;return n={...n,variants:uh(n.variants,t)},[n,s]})}sort(e){return e=this.remapArbitraryVariantOffsets(e),e.sort(([t],[i])=>Fn(this.compare(t,i)))}}});function ko(r,e){let t=r.tailwindConfig.prefix;return typeof t=="function"?t(e):t+e}function hh({type:r="any",...e}){let t=[].concat(r);return{...e,types:t.map(i=>Array.isArray(i)?{type:i[0],...i[1]}:{type:i,preferOnConflict:!1})}}function FS(r){let e=[],t="",i=0;for(let n=0;n<r.length;n++){let s=r[n];if(s==="\\")t+="\\"+r[++n];else if(s==="{")++i,e.push(t.trim()),t="";else if(s==="}"){if(--i<0)throw new Error("Your { and } are unbalanced.");e.push(t.trim()),t=""}else t+=s}return t.length>0&&e.push(t.trim()),e=e.filter(n=>n!==""),e}function BS(r,e,{before:t=[]}={}){if(t=[].concat(t),t.length<=0){r.push(e);return}let i=r.length-1;for(let n of t){let s=r.indexOf(n);s!==-1&&(i=Math.min(i,s))}r.splice(i,0,e)}function mh(r){return Array.isArray(r)?r.flatMap(e=>!Array.isArray(e)&&!se(e)?e:Nt(e)):mh([r])}function gh(r,e){return(0,wo.default)(i=>{let n=[];return e&&e(i),i.walkClasses(s=>{n.push(s.value)}),n}).transformSync(r)}function MS(r,e={containsNonOnDemandable:!1},t=0){let i=[];if(r.type==="rule"){let n=function(s){s.walkPseudos(a=>{a.value===":not"&&a.remove()})};for(let s of r.selectors){let a=gh(s,n);a.length===0&&(e.containsNonOnDemandable=!0);for(let o of a)i.push(o)}}else r.type==="atrule"&&r.walkRules(n=>{for(let s of n.selectors.flatMap(a=>gh(a)))i.push(s)});return t===0?[e.containsNonOnDemandable||i.length===0,i]:i}function Bn(r){return mh(r).flatMap(e=>{let t=new Map,[i,n]=MS(e);return i&&n.unshift(We),n.map(s=>(t.has(e)||t.set(e,e),[s,t.get(e)]))})}function qn(r){return r.startsWith("@")||r.includes("&")}function ri(r){r=r.replace(/\n+/g,"").replace(/\s{1,}/g," ").trim();let e=FS(r).map(t=>{if(!t.startsWith("@"))return({format:s})=>s(t);let[,i,n]=/@(.*?)( .+|[({].*)/g.exec(t);return({wrap:s})=>s(z.atRule({name:i,params:n.trim()}))}).reverse();return t=>{for(let i of e)i(t)}}function LS(r,e,{variantList:t,variantMap:i,offsets:n,classList:s}){function a(h,m){return h?(0,dh.default)(r,h,m):r}function o(h){return zt(r.prefix,h)}function u(h,m){return h===We?We:m.respectPrefix?e.tailwindConfig.prefix+h:h}function c(h,m,y={}){let v=et(h),b=a(["theme",...v],m);return Xe(v[0])(b,y)}let f=0,d={postcss:z,prefix:o,e:he,config:a,theme:c,corePlugins:h=>Array.isArray(r.corePlugins)?r.corePlugins.includes(h):a(["corePlugins",h],!0),variants:()=>[],addBase(h){for(let[m,y]of Bn(h)){let v=u(m,{}),b=n.create("base");e.candidateRuleMap.has(v)||e.candidateRuleMap.set(v,[]),e.candidateRuleMap.get(v).push([{sort:b,layer:"base"},y])}},addDefaults(h,m){let y={[`@defaults ${h}`]:m};for(let[v,b]of Bn(y)){let w=u(v,{});e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push([{sort:n.create("defaults"),layer:"defaults"},b])}},addComponents(h,m){m=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!1},Array.isArray(m)?{}:m);for(let[v,b]of Bn(h)){let w=u(v,m);s.add(w),e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push([{sort:n.create("components"),layer:"components",options:m},b])}},addUtilities(h,m){m=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!0},Array.isArray(m)?{}:m);for(let[v,b]of Bn(h)){let w=u(v,m);s.add(w),e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push([{sort:n.create("utilities"),layer:"utilities",options:m},b])}},matchUtilities:function(h,m){m=hh({...{respectPrefix:!0,respectImportant:!0,modifiers:!1},...m});let v=n.create("utilities");for(let b in h){let C=function(P,{isOnlyPlugin:F}){let[B,I,K]=Os(m.types,P,m,r);if(B===void 0)return[];if(!m.types.some(({type:fe})=>fe===I))if(F)M.warn([`Unnecessary typehint \`${I}\` in \`${b}-${P}\`.`,`You can safely update it to \`${b}-${P.replace(I+":","")}\`.`]);else return[];if(!Ut(B))return[];let we={get modifier(){return m.modifiers||M.warn(`modifier-used-without-options-for-${b}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),K}},X=J(r,"generalizedModifiers");return[].concat(X?k(B,we):k(B)).filter(Boolean).map(fe=>({[xn(b,P)]:fe}))},w=u(b,m),k=h[b];s.add([w,m]);let A=[{sort:v,layer:"utilities",options:m},C];e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push(A)}},matchComponents:function(h,m){m=hh({...{respectPrefix:!0,respectImportant:!1,modifiers:!1},...m});let v=n.create("components");for(let b in h){let C=function(P,{isOnlyPlugin:F}){let[B,I,K]=Os(m.types,P,m,r);if(B===void 0)return[];if(!m.types.some(({type:fe})=>fe===I))if(F)M.warn([`Unnecessary typehint \`${I}\` in \`${b}-${P}\`.`,`You can safely update it to \`${b}-${P.replace(I+":","")}\`.`]);else return[];if(!Ut(B))return[];let we={get modifier(){return m.modifiers||M.warn(`modifier-used-without-options-for-${b}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),K}},X=J(r,"generalizedModifiers");return[].concat(X?k(B,we):k(B)).filter(Boolean).map(fe=>({[xn(b,P)]:fe}))},w=u(b,m),k=h[b];s.add([w,m]);let A=[{sort:v,layer:"components",options:m},C];e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push(A)}},addVariant(h,m,y={}){m=[].concat(m).map(v=>{if(typeof v!="string")return(b={})=>{let{args:w,modifySelectors:k,container:C,separator:A,wrap:P,format:F}=b,B=v(Object.assign({modifySelectors:k,container:C,separator:A},y.type===xo.MatchVariant&&{args:w,wrap:P,format:F}));if(typeof B=="string"&&!qn(B))throw new Error(`Your custom variant \`${h}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return Array.isArray(B)?B.filter(I=>typeof I=="string").map(I=>ri(I)):B&&typeof B=="string"&&ri(B)(b)};if(!qn(v))throw new Error(`Your custom variant \`${h}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return ri(v)}),BS(t,h,y),i.set(h,m),e.variantOptions.set(h,y)},matchVariant(h,m,y){let v=y?.id??++f,b=h==="@",w=J(r,"generalizedModifiers");for(let[C,A]of Object.entries(y?.values??{}))C!=="DEFAULT"&&d.addVariant(b?`${h}${C}`:`${h}-${C}`,({args:P,container:F})=>m(A,w?{modifier:P?.modifier,container:F}:{container:F}),{...y,value:A,id:v,type:xo.MatchVariant,variantInfo:vo.Base});let k="DEFAULT"in(y?.values??{});d.addVariant(h,({args:C,container:A})=>C?.value===pr&&!k?null:m(C?.value===pr?y.values.DEFAULT:C?.value??(typeof C=="string"?C:""),w?{modifier:C?.modifier,container:A}:{container:A}),{...y,id:v,type:xo.MatchVariant,variantInfo:vo.Dynamic})}};return d}function Mn(r){return So.has(r)||So.set(r,new Map),So.get(r)}function yh(r,e){let t=!1,i=new Map;for(let n of r){if(!n)continue;let s=Is.parse(n),a=s.hash?s.href.replace(s.hash,""):s.href;a=s.search?a.replace(s.search,""):a;let o=re.statSync(decodeURIComponent(a),{throwIfNoEntry:!1})?.mtimeMs;!o||((!e.has(n)||o>e.get(n))&&(t=!0),i.set(n,o))}return[t,i]}function bh(r){r.walkAtRules(e=>{["responsive","variants"].includes(e.name)&&(bh(e),e.before(e.nodes),e.remove())})}function $S(r){let e=[];return r.each(t=>{t.type==="atrule"&&["responsive","variants"].includes(t.name)&&(t.name="layer",t.params="utilities")}),r.walkAtRules("layer",t=>{if(bh(t),t.params==="base"){for(let i of t.nodes)e.push(function({addBase:n}){n(i,{respectPrefix:!1})});t.remove()}else if(t.params==="components"){for(let i of t.nodes)e.push(function({addComponents:n}){n(i,{respectPrefix:!1,preserveSource:!0})});t.remove()}else if(t.params==="utilities"){for(let i of t.nodes)e.push(function({addUtilities:n}){n(i,{respectPrefix:!1,preserveSource:!0})});t.remove()}}),e}function NS(r,e){let t=Object.entries({...me,...Yd}).map(([o,u])=>r.tailwindConfig.corePlugins.includes(o)?u:null).filter(Boolean),i=r.tailwindConfig.plugins.map(o=>(o.__isOptionsFunction&&(o=o()),typeof o=="function"?o:o.handler)),n=$S(e),s=[me.pseudoElementVariants,me.pseudoClassVariants,me.ariaVariants,me.dataVariants],a=[me.supportsVariants,me.directionVariants,me.reducedMotionVariants,me.prefersContrastVariants,me.darkVariants,me.printVariant,me.screenVariants,me.orientationVariants];return[...t,...s,...i,...a,...n]}function zS(r,e){let t=[],i=new Map;e.variantMap=i;let n=new bo;e.offsets=n;let s=new Set,a=LS(e.tailwindConfig,e,{variantList:t,variantMap:i,offsets:n,classList:s});for(let f of r)if(Array.isArray(f))for(let d of f)d(a);else f?.(a);n.recordVariants(t,f=>i.get(f).length);for(let[f,d]of i.entries())e.variantMap.set(f,d.map((h,m)=>[n.forVariant(f,m),h]));let o=(e.tailwindConfig.safelist??[]).filter(Boolean);if(o.length>0){let f=[];for(let d of o){if(typeof d=="string"){e.changedContent.push({content:d,extension:"html"});continue}if(d instanceof RegExp){M.warn("root-regex",["Regular expressions in `safelist` work differently in Tailwind CSS v3.0.","Update your `safelist` configuration to eliminate this warning.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"]);continue}f.push(d)}if(f.length>0){let d=new Map,h=e.tailwindConfig.prefix.length,m=f.some(y=>y.pattern.source.includes("!"));for(let y of s){let v=Array.isArray(y)?(()=>{let[b,w]=y,C=Object.keys(w?.values??{}).map(A=>ti(b,A));return w?.supportsNegativeValues&&(C=[...C,...C.map(A=>"-"+A)],C=[...C,...C.map(A=>A.slice(0,h)+"-"+A.slice(h))]),w.types.some(({type:A})=>A==="color")&&(C=[...C,...C.flatMap(A=>Object.keys(e.tailwindConfig.theme.opacity).map(P=>`${A}/${P}`))]),m&&w?.respectImportant&&(C=[...C,...C.map(A=>"!"+A)]),C})():[y];for(let b of v)for(let{pattern:w,variants:k=[]}of f)if(w.lastIndex=0,d.has(w)||d.set(w,0),!!w.test(b)){d.set(w,d.get(w)+1),e.changedContent.push({content:b,extension:"html"});for(let C of k)e.changedContent.push({content:C+e.tailwindConfig.separator+b,extension:"html"})}}for(let[y,v]of d.entries())v===0&&M.warn([`The safelist pattern \`${y}\` doesn't match any Tailwind CSS classes.`,"Fix this pattern or remove it from your `safelist` configuration.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"])}}let u=[].concat(e.tailwindConfig.darkMode??"media")[1]??"dark",c=[ko(e,u),ko(e,"group"),ko(e,"peer")];e.getClassOrder=function(d){let h=[...d].sort((b,w)=>b===w?0:b<w?-1:1),m=new Map(h.map(b=>[b,null])),y=Dn(new Set(h),e);y=e.offsets.sort(y);let v=BigInt(c.length);for(let[,b]of y)m.set(b.raws.tailwind.candidate,v++);return d.map(b=>{let w=m.get(b)??null,k=c.indexOf(b);return w===null&&k!==-1&&(w=BigInt(k)),[b,w]})},e.getClassList=function(d={}){let h=[];for(let m of s)if(Array.isArray(m)){let[y,v]=m,b=[],w=Object.keys(v?.modifiers??{});v?.types?.some(({type:A})=>A==="color")&&w.push(...Object.keys(e.tailwindConfig.theme.opacity??{}));let k={modifiers:w},C=d.includeMetadata&&w.length>0;for(let[A,P]of Object.entries(v?.values??{})){if(P==null)continue;let F=ti(y,A);if(h.push(C?[F,k]:F),v?.supportsNegativeValues&&Ze(P)){let B=ti(y,`-${A}`);b.push(C?[B,k]:B)}}h.push(...b)}else h.push(m);return h},e.getVariants=function(){let d=[];for(let[h,m]of e.variantOptions.entries())m.variantInfo!==vo.Base&&d.push({name:h,isArbitrary:m.type===Symbol.for("MATCH_VARIANT"),values:Object.keys(m.values??{}),hasDash:h!=="@",selectors({modifier:y,value:v}={}){let b="__TAILWIND_PLACEHOLDER__",w=z.rule({selector:`.${b}`}),k=z.root({nodes:[w.clone()]}),C=k.toString(),A=(e.variantMap.get(h)??[]).flatMap(([X,Z])=>Z),P=[];for(let X of A){let Z=[],fe={args:{modifier:y,value:m.values?.[v]??v},separator:e.tailwindConfig.separator,modifySelectors(Ee){return k.each(us=>{us.type==="rule"&&(us.selectors=us.selectors.map(Ou=>Ee({get className(){return mo(Ou)},selector:Ou})))}),k},format(Ee){Z.push(Ee)},wrap(Ee){Z.push(`@${Ee.name} ${Ee.params} { & }`)},container:k},At=X(fe);if(Z.length>0&&P.push(Z),Array.isArray(At))for(let Ee of At)Z=[],Ee(fe),P.push(Z)}let F=[],B=k.toString();C!==B&&(k.walkRules(X=>{let Z=X.selector,fe=(0,wo.default)(At=>{At.walkClasses(Ee=>{Ee.value=`${h}${e.tailwindConfig.separator}${Ee.value}`})}).processSync(Z);F.push(Z.replace(fe,"&").replace(b,"&"))}),k.walkAtRules(X=>{F.push(`@${X.name} (${X.params}) { & }`)}));let I=!(v in(m.values??{}));P=P.map(X=>X.map(Z=>({format:Z,isArbitraryVariant:I}))),F=F.map(X=>({format:X,isArbitraryVariant:I}));let K={candidate:b,context:e},we=P.map(X=>On(`.${b}`,Vt(X,K),K).replace(`.${b}`,"&").replace("{ & }","").trim());return F.length>0&&we.push(Vt(F,K).toString().replace(`.${b}`,"&")),we}});return d}}function wh(r,e){!r.classCache.has(e)||(r.notClassCache.add(e),r.classCache.delete(e),r.applyClassCache.delete(e),r.candidateRuleMap.delete(e),r.candidateRuleCache.delete(e),r.stylesheetCache=null)}function jS(r,e){let t=e.raws.tailwind.candidate;if(!!t){for(let i of r.ruleCache)i[1].raws.tailwind.candidate===t&&r.ruleCache.delete(i);wh(r,t)}}function Co(r,e=[],t=z.root()){let i={disposables:[],ruleCache:new Set,candidateRuleCache:new Map,classCache:new Map,applyClassCache:new Map,notClassCache:new Set(r.blocklist??[]),postCssNodeCache:new Map,candidateRuleMap:new Map,tailwindConfig:r,changedContent:e,variantMap:new Map,stylesheetCache:null,variantOptions:new Map,markInvalidUtilityCandidate:s=>wh(i,s),markInvalidUtilityNode:s=>jS(i,s)},n=NS(i,t);return zS(n,i),i}function xh(r,e,t,i,n,s){let a=e.opts.from,o=i!==null;ie.DEBUG&&console.log("Source path:",a);let u;if(o&&Wt.has(a))u=Wt.get(a);else if(ii.has(n)){let h=ii.get(n);lt.get(h).add(a),Wt.set(a,h),u=h}let c=ah(a,r);if(u){let[h,m]=yh([...s],Mn(u));if(!h&&!c)return[u,!1,m]}if(Wt.has(a)){let h=Wt.get(a);if(lt.has(h)&&(lt.get(h).delete(a),lt.get(h).size===0)){lt.delete(h);for(let[m,y]of ii)y===h&&ii.delete(m);for(let m of h.disposables.splice(0))m(h)}}ie.DEBUG&&console.log("Setting up new context...");let f=Co(t,[],r);Object.assign(f,{userConfigPath:i});let[,d]=yh([...s],Mn(f));return ii.set(n,f),Wt.set(a,f),lt.has(f)||lt.set(f,new Set),lt.get(f).add(a),[f,!0,d]}var dh,wo,xo,vo,So,Wt,ii,lt,Rn=S(()=>{l();Ve();qs();st();dh=H(ta()),wo=H(Qe());Zr();no();wn();Et();jt();ao();br();Qd();Ie();Ie();xi();_e();wi();lo();In();oh();ph();qe();po();xo={AddVariant:Symbol.for("ADD_VARIANT"),MatchVariant:Symbol.for("MATCH_VARIANT")},vo={Base:1<<0,Dynamic:1<<1};So=new WeakMap;Wt=Wu,ii=Gu,lt=ki});function Ao(r){return r.ignore?[]:r.glob?p.env.ROLLUP_WATCH==="true"?[{type:"dependency",file:r.base}]:[{type:"dir-dependency",dir:r.base,glob:r.glob}]:[{type:"dependency",file:r.base}]}var vh=S(()=>{l()});function Oo(r){return r.content.files.length===0&&M.warn("content-problems",["The `content` option in your Tailwind CSS configuration is missing or empty.","Configure your content sources or your generated CSS will be missing styles.","https://tailwindcss.com/docs/content-configuration"]),r}var kh=S(()=>{l();_e()});var Sh,Ch=S(()=>{l();Sh=()=>!1});var Ln,Ah=S(()=>{l();Ln={sync:r=>[].concat(r),generateTasks:r=>[{dynamic:!1,base:".",negative:[],positive:[].concat(r),patterns:[].concat(r)}],escapePath:r=>r}});var Eo,Oh=S(()=>{l();Eo=r=>r});var Eh,_h=S(()=>{l();Eh=()=>""});function Th(r){let e=r,t=Eh(r);return t!=="."&&(e=r.substr(t.length),e.charAt(0)==="/"&&(e=e.substr(1))),e.substr(0,2)==="./"&&(e=e.substr(2)),e.charAt(0)==="/"&&(e=e.substr(1)),{base:t,glob:e}}var Ph=S(()=>{l();_h()});function Dh(r,e){let t=e.content.files;t=t.filter(o=>typeof o=="string"),t=t.map(Eo);let i=Ln.generateTasks(t),n=[],s=[];for(let o of i)n.push(...o.positive.map(u=>Ih(u,!1))),s.push(...o.negative.map(u=>Ih(u,!0)));let a=[...n,...s];return a=VS(r,a),a=a.flatMap(WS),a=a.map(US),a}function Ih(r,e){let t={original:r,base:r,ignore:e,pattern:r,glob:null};return Sh(r)&&Object.assign(t,Th(r)),t}function US(r){let e=Eo(r.base);return e=Ln.escapePath(e),r.pattern=r.glob?`${e}/${r.glob}`:e,r.pattern=r.ignore?`!${r.pattern}`:r.pattern,r}function VS(r,e){let t=[];return r.userConfigPath&&r.tailwindConfig.content.relative&&(t=[te.dirname(r.userConfigPath)]),e.map(i=>(i.base=te.resolve(...t,i.base),i))}function WS(r){let e=[r];try{let t=re.realpathSync(r.base);t!==r.base&&e.push({...r,base:t})}catch{}return e}function qh(r,e,t){let i=r.tailwindConfig.content.files.filter(a=>typeof a.raw=="string").map(({raw:a,extension:o="html"})=>({content:a,extension:o})),[n,s]=GS(e,t);for(let a of n){let o=te.extname(a).slice(1);i.push({file:a,extension:o})}return[i,s]}function GS(r,e){let t=r.map(a=>a.pattern),i=new Map,n=new Set;ie.DEBUG&&console.time("Finding changed files");let s=Ln.sync(t,{absolute:!0});for(let a of s){let o=e.get(a)||-1/0,u=re.statSync(a).mtimeMs;u>o&&(n.add(a),i.set(a,u))}return ie.DEBUG&&console.timeEnd("Finding changed files"),[n,i]}var Rh=S(()=>{l();Ve();wt();Ch();Ah();Oh();Ph();Ie()});function Fh(){}var Bh=S(()=>{l()});function XS(r,e){for(let t of e){let i=`${r}${t}`;if(re.existsSync(i)&&re.statSync(i).isFile())return i}for(let t of e){let i=`${r}/index${t}`;if(re.existsSync(i))return i}return null}function*Mh(r,e,t,i=te.extname(r)){let n=XS(te.resolve(e,r),HS.includes(i)?YS:QS);if(n===null||t.has(n))return;t.add(n),yield n,e=te.dirname(n),i=te.extname(n);let s=re.readFileSync(n,"utf-8");for(let a of[...s.matchAll(/import[\s\S]*?['"](.{3,}?)['"]/gi),...s.matchAll(/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi),...s.matchAll(/require\(['"`](.+)['"`]\)/gi)])!a[1].startsWith(".")||(yield*Mh(a[1],e,t,i))}function _o(r){return r===null?new Set:new Set(Mh(r,te.dirname(r),new Set))}var HS,YS,QS,Lh=S(()=>{l();Ve();wt();HS=[".js",".cjs",".mjs"],YS=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],QS=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"]});function JS(r,e){if(To.has(r))return To.get(r);let t=Dh(r,e);return To.set(r,t).get(r)}function KS(r){let e=Ds(r);if(e!==null){let[i,n,s,a]=Nh.get(e)||[],o=_o(e),u=!1,c=new Map;for(let h of o){let m=re.statSync(h).mtimeMs;c.set(h,m),(!a||!a.has(h)||m>a.get(h))&&(u=!0)}if(!u)return[i,e,n,s];for(let h of o)delete _u.cache[h];let f=Oo(Pi(Fh(e))),d=bi(f);return Nh.set(e,[f,d,o,c]),[f,e,d,o]}let t=Pi(r.config===void 0?r:r.config);return t=Oo(t),[t,null,bi(t),[]]}function Po(r){return({tailwindDirectives:e,registerDependency:t})=>(i,n)=>{let[s,a,o,u]=KS(r),c=new Set(u);if(e.size>0){c.add(n.opts.from);for(let y of n.messages)y.type==="dependency"&&c.add(y.file)}let[f,,d]=xh(i,n,s,a,o,c),h=Mn(f),m=JS(f,s);if(e.size>0){for(let b of m)for(let w of Ao(b))t(w);let[y,v]=qh(f,m,h);for(let b of y)f.changedContent.push(b);for(let[b,w]of v.entries())d.set(b,w)}for(let y of u)t({type:"dependency",file:y});for(let[y,v]of d.entries())h.set(y,v);return f}}var $h,Nh,To,zh=S(()=>{l();Ve();$h=H(fs());Fu();Rf();Mf();Rn();vh();kh();Rh();Bh();Lh();Nh=new $h.default({maxSize:100}),To=new WeakMap});function Do(r){let e=new Set,t=new Set,i=new Set;if(r.walkAtRules(n=>{n.name==="apply"&&i.add(n),n.name==="import"&&(n.params==='"tailwindcss/base"'||n.params==="'tailwindcss/base'"?(n.name="tailwind",n.params="base"):n.params==='"tailwindcss/components"'||n.params==="'tailwindcss/components'"?(n.name="tailwind",n.params="components"):n.params==='"tailwindcss/utilities"'||n.params==="'tailwindcss/utilities'"?(n.name="tailwind",n.params="utilities"):(n.params==='"tailwindcss/screens"'||n.params==="'tailwindcss/screens'"||n.params==='"tailwindcss/variants"'||n.params==="'tailwindcss/variants'")&&(n.name="tailwind",n.params="variants")),n.name==="tailwind"&&(n.params==="screens"&&(n.params="variants"),e.add(n.params)),["layer","responsive","variants"].includes(n.name)&&(["responsive","variants"].includes(n.name)&&M.warn(`${n.name}-at-rule-deprecated`,[`The \`@${n.name}\` directive has been deprecated in Tailwind CSS v3.0.`,"Use `@layer utilities` or `@layer components` instead.","https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer"]),t.add(n))}),!e.has("base")||!e.has("components")||!e.has("utilities")){for(let n of t)if(n.name==="layer"&&["base","components","utilities"].includes(n.params)){if(!e.has(n.params))throw n.error(`\`@layer ${n.params}\` is used but no matching \`@tailwind ${n.params}\` directive is present.`)}else if(n.name==="responsive"){if(!e.has("utilities"))throw n.error("`@responsive` is used but `@tailwind utilities` is missing.")}else if(n.name==="variants"&&!e.has("utilities"))throw n.error("`@variants` is used but `@tailwind utilities` is missing.")}return{tailwindDirectives:e,applyDirectives:i}}var jh=S(()=>{l();_e()});function St(r,e=void 0,t=void 0){return r.map(i=>{let n=i.clone(),s=i.raws.tailwind?.preserveSource!==!0||!n.source;return e!==void 0&&s&&(n.source=e,"walk"in n&&n.walk(a=>{a.source=e})),t!==void 0&&(n.raws.tailwind={...n.raws.tailwind,...t}),n})}var Uh=S(()=>{l()});function $n(r){return r=Array.isArray(r)?r:[r],r=r.map(e=>e instanceof RegExp?e.source:e),r.join("")}function Ce(r){return new RegExp($n(r),"g")}function Gt(r){return`(?:${r.map($n).join("|")})`}function Io(r){return`(?:${$n(r)})?`}function Wh(r){return`(?:${$n(r)})*`}function Gh(r){return r&&ZS.test(r)?r.replace(Vh,"\\$&"):r||""}var Vh,ZS,Hh=S(()=>{l();Vh=/[\\^$.*+?()[\]{}|]/g,ZS=RegExp(Vh.source)});function Yh(r){let e=Array.from(e3(r));return t=>{let i=[];for(let n of e)i=[...i,...t.match(n)??[]];return i.filter(n=>n!==void 0).map(i3)}}function*e3(r){let e=r.tailwindConfig.separator,t=J(r.tailwindConfig,"variantGrouping"),i=r.tailwindConfig.prefix!==""?Io(Ce([/-?/,Gh(r.tailwindConfig.prefix)])):"",n=Gt([/\[[^\s:'"`]+:[^\s\[\]]+\]/,/\[[^\s:'"`]+:[^\s]+?\[[^\s]+?\][^\s]+?\]/,Ce([/-?(?:\w+)/,Io(Gt([Ce([/-(?:\w+-)*\[[^\s:]+\]/,/(?![{([]])/,/(?:\/[^\s'"`\\><$]*)?/]),Ce([/-(?:\w+-)*\[[^\s]+\]/,/(?![{([]])/,/(?:\/[^\s'"`\\$]*)?/]),/[-\/][^\s'"`\\$={><]*/]))])]),s=[Gt([Ce([/@\[[^\s"'`]+\](\/[^\s"'`]+)?/,e]),Ce([/([^\s"'`\[\\]+-)?\[[^\s"'`]+\]/,e]),Ce([/[^\s"'`\[\\]+/,e])]),Gt([Ce([/([^\s"'`\[\\]+-)?\[[^\s`]+\]/,e]),Ce([/[^\s`\[\\]+/,e])])];for(let a of s)yield Ce(["((?=((",a,")+))\\2)?",/!?/,i,t?Gt([Ce([/\(/,n,Wh([/,/,n]),/\)/]),n]):n]);yield/[^<>"'`\s.(){}[\]#=%$]*[^<>"'`\s.(){}[\]#=%:$]/g}function i3(r){if(!r.includes("-["))return r;let e=0,t=[],i=r.matchAll(t3);i=Array.from(i).flatMap(n=>{let[,...s]=n;return s.map((a,o)=>Object.assign([],n,{index:n.index+o,0:a}))});for(let n of i){let s=n[0],a=t[t.length-1];if(s===a?t.pop():(s==="'"||s==='"'||s==="`")&&t.push(s),!a){if(s==="["){e++;continue}else if(s==="]"){e--;continue}if(e<0)return r.substring(0,n.index-1);if(e===0&&!r3.test(s))return r.substring(0,n.index)}}return r}var t3,r3,Qh=S(()=>{l();qe();Hh();t3=/([\[\]'"`])([^\[\]'"`])?/g,r3=/[^"'`\s<>\]]+/});var Xh={};ce(Xh,{parseCandidateStringsFromFiles:()=>n3});function n3(){return[]}var Jh=S(()=>{l()});function s3(r,e){let t=r.tailwindConfig.content.extract;return t[e]||t.DEFAULT||Zh[e]||Zh.DEFAULT(r)}function a3(r,e){let t=r.content.transform;return t[e]||t.DEFAULT||em[e]||em.DEFAULT}function o3(r,e,t,i){ni.has(e)||ni.set(e,new Kh.default({maxSize:25e3}));for(let n of r.split(`
30`))if(n=n.trim(),!i.has(n))if(i.add(n),ni.get(e).has(n))for(let s of ni.get(e).get(n))t.add(s);else{let s=e(n).filter(o=>o!=="!*"),a=new Set(s);for(let o of a)t.add(o);ni.get(e).set(n,a)}}function l3(r,e){let t=e.offsets.sort(r),i={base:new Set,defaults:new Set,components:new Set,utilities:new Set,variants:new Set};for(let[n,s]of t)i[n.layer].add(s);return i}function qo(r){return e=>{let t={base:null,components:null,utilities:null,variants:null};if(e.walkAtRules(y=>{y.name==="tailwind"&&Object.keys(t).includes(y.params)&&(t[y.params]=y)}),Object.values(t).every(y=>y===null))return e;let i=new Set([...r.candidates??[],We]),n=new Set;if(De.DEBUG&&console.time("Reading changed files"),De.OXIDE)for(let y of(Jh(),Xh).parseCandidateStringsFromFiles(r.changedContent))i.add(y);else for(let{file:y,content:v,extension:b}of r.changedContent){let w=a3(r.tailwindConfig,b),k=s3(r,b);v=y?re.readFileSync(y,"utf8"):v,o3(w(v),k,i,n)}De.DEBUG&&console.timeEnd("Reading changed files");let s=r.classCache.size;De.DEBUG&&console.time("Generate rules"),De.DEBUG&&console.time("Sorting candidates");let a=De.OXIDE?i:new Set([...i].sort((y,v)=>y===v?0:y<v?-1:1));De.DEBUG&&console.timeEnd("Sorting candidates"),Dn(a,r),De.DEBUG&&console.timeEnd("Generate rules"),De.DEBUG&&console.time("Build stylesheet"),(r.stylesheetCache===null||r.classCache.size!==s)&&(r.stylesheetCache=l3([...r.ruleCache],r)),De.DEBUG&&console.timeEnd("Build stylesheet");let{defaults:o,base:u,components:c,utilities:f,variants:d}=r.stylesheetCache;t.base&&(t.base.before(St([...u,...o],t.base.source,{layer:"base"})),t.base.remove()),t.components&&(t.components.before(St([...c],t.components.source,{layer:"components"})),t.components.remove()),t.utilities&&(t.utilities.before(St([...f],t.utilities.source,{layer:"utilities"})),t.utilities.remove());let h=Array.from(d).filter(y=>{let v=y.raws.tailwind?.parentLayer;return v==="components"?t.components!==null:v==="utilities"?t.utilities!==null:!0});t.variants?(t.variants.before(St(h,t.variants.source,{layer:"variants"})),t.variants.remove()):h.length>0&&e.append(St(h,e.source,{layer:"variants"}));let m=h.some(y=>y.raws.tailwind?.parentLayer==="utilities");t.utilities&&f.size===0&&!m&&M.warn("content-problems",["No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.","https://tailwindcss.com/docs/content-configuration"]),De.DEBUG&&(console.log("Potential classes: ",i.size),console.log("Active contexts: ",ki.size)),r.changedContent=[],e.walkAtRules("layer",y=>{Object.keys(t).includes(y.params)&&y.remove()})}}var Kh,De,Zh,em,ni,tm=S(()=>{l();Ve();Kh=H(fs());Ie();In();_e();Uh();Qh();De=ie,Zh={DEFAULT:Yh},em={DEFAULT:r=>r,svelte:r=>r.replace(/(?:^|\s)class:/g," ")};ni=new WeakMap});function Nn(r){let e=new Map;z.root({nodes:[r.clone()]}).walkRules(s=>{(0,Ro.default)(a=>{a.walkClasses(o=>{let u=o.parent.toString(),c=e.get(u);c||e.set(u,c=new Set),c.add(o.value)})}).processSync(s.selector)});let i=Array.from(e.values(),s=>Array.from(s)),n=i.flat();return Object.assign(n,{groups:i})}function Fo(r){return u3.astSync(r)}function rm(r,e){let t=new Set;for(let i of r)t.add(i.split(e).pop());return Array.from(t)}function im(r,e){let t=r.tailwindConfig.prefix;return typeof t=="function"?t(e):t+e}function*nm(r){for(yield r;r.parent;)yield r.parent,r=r.parent}function f3(r,e={}){let t=r.nodes;r.nodes=[];let i=r.clone(e);return r.nodes=t,i}function c3(r){for(let e of nm(r))if(r!==e){if(e.type==="root")break;r=f3(e,{nodes:[r]})}return r}function p3(r,e){let t=new Map;return r.walkRules(i=>{for(let a of nm(i))if(a.raws.tailwind?.layer!==void 0)return;let n=c3(i),s=e.offsets.create("user");for(let a of Nn(i)){let o=t.get(a)||[];t.set(a,o),o.push([{layer:"user",sort:s,important:!1},n])}}),t}function d3(r,e){for(let t of r){if(e.notClassCache.has(t)||e.applyClassCache.has(t))continue;if(e.classCache.has(t)){e.applyClassCache.set(t,e.classCache.get(t).map(([n,s])=>[n,s.clone()]));continue}let i=Array.from(Tn(t,e));if(i.length===0){e.notClassCache.add(t);continue}e.applyClassCache.set(t,i)}return e.applyClassCache}function h3(r){let e=null;return{get:t=>(e=e||r(),e.get(t)),has:t=>(e=e||r(),e.has(t))}}function m3(r){return{get:e=>r.flatMap(t=>t.get(e)||[]),has:e=>r.some(t=>t.has(e))}}function sm(r){let e=r.split(/[\s\t\n]+/g);return e[e.length-1]==="!important"?[e.slice(0,-1),!0]:[e,!1]}function am(r,e,t){let i=new Set,n=[];if(r.walkAtRules("apply",u=>{let[c]=sm(u.params);for(let f of c)i.add(f);n.push(u)}),n.length===0)return;let s=m3([t,d3(i,e)]);function a(u,c,f){let d=Fo(u),h=Fo(c),y=Fo(`.${he(f)}`).nodes[0].nodes[0];return d.each(v=>{let b=new Set;h.each(w=>{let k=!1;w=w.clone(),w.walkClasses(C=>{C.value===y.value&&(k||(C.replaceWith(...v.nodes.map(A=>A.clone())),b.add(w),k=!0))})});for(let w of b){let k=[[]];for(let C of w.nodes)C.type==="combinator"?(k.push(C),k.push([])):k[k.length-1].push(C);w.nodes=[];for(let C of k)Array.isArray(C)&&C.sort((A,P)=>A.type==="tag"&&P.type==="class"?-1:A.type==="class"&&P.type==="tag"?1:A.type==="class"&&P.type==="pseudo"&&P.value.startsWith("::")?-1:A.type==="pseudo"&&A.value.startsWith("::")&&P.type==="class"?1:0),w.nodes=w.nodes.concat(C)}v.replaceWith(...b)}),d.toString()}let o=new Map;for(let u of n){let[c]=o.get(u.parent)||[[],u.source];o.set(u.parent,[c,u.source]);let[f,d]=sm(u.params);if(u.parent.type==="atrule"){if(u.parent.name==="screen"){let h=u.parent.params;throw u.error(`@apply is not supported within nested at-rules like @screen. We suggest you write this as @apply ${f.map(m=>`${h}:${m}`).join(" ")} instead.`)}throw u.error(`@apply is not supported within nested at-rules like @${u.parent.name}. You can fix this by un-nesting @${u.parent.name}.`)}for(let h of f){if([im(e,"group"),im(e,"peer")].includes(h))throw u.error(`@apply should not be used with the '${h}' utility`);if(!s.has(h))throw u.error(`The \`${h}\` class does not exist. If \`${h}\` is a custom class, make sure it is defined within a \`@layer\` directive.`);let m=s.get(h);c.push([h,d,m])}}for(let[u,[c,f]]of o){let d=[];for(let[m,y,v]of c){let b=[m,...rm([m],e.tailwindConfig.separator)];for(let[w,k]of v){let C=Nn(u),A=Nn(k);if(A=A.groups.filter(I=>I.some(K=>b.includes(K))).flat(),A=A.concat(rm(A,e.tailwindConfig.separator)),C.some(I=>A.includes(I)))throw k.error(`You cannot \`@apply\` the \`${m}\` utility here because it creates a circular dependency.`);let F=z.root({nodes:[k.clone()]});F.walk(I=>{I.source=f}),(k.type!=="atrule"||k.type==="atrule"&&k.name!=="keyframes")&&F.walkRules(I=>{if(!Nn(I).some(Z=>Z===m)){I.remove();return}let K=typeof e.tailwindConfig.important=="string"?e.tailwindConfig.important:null,X=u.raws.tailwind!==void 0&&K&&u.selector.indexOf(K)===0?u.selector.slice(K.length):u.selector;I.selector=a(X,I.selector,m),K&&X!==u.selector&&(I.selector=En(I.selector,K)),I.walkDecls(Z=>{Z.important=w.important||y})}),!!F.nodes[0]&&d.push([w.sort,F.nodes[0]])}}let h=e.offsets.sort(d).map(m=>m[1]);u.after(h)}for(let u of n)u.parent.nodes.length>1?u.remove():u.parent.remove();am(r,e,t)}function Bo(r){return e=>{let t=h3(()=>p3(e,r));am(e,r,t)}}var Ro,u3,om=S(()=>{l();st();Ro=H(Qe());In();jt();ho();u3=(0,Ro.default)()});var lm=x((UD,zn)=>{l();(function(){"use strict";function r(i,n,s){if(!i)return null;r.caseSensitive||(i=i.toLowerCase());var a=r.threshold===null?null:r.threshold*i.length,o=r.thresholdAbsolute,u;a!==null&&o!==null?u=Math.min(a,o):a!==null?u=a:o!==null?u=o:u=null;var c,f,d,h,m,y=n.length;for(m=0;m<y;m++)if(f=n[m],s&&(f=f[s]),!!f&&(r.caseSensitive?d=f:d=f.toLowerCase(),h=t(i,d,u),(u===null||h<u)&&(u=h,s&&r.returnWinningObject?c=n[m]:c=f,r.returnFirstMatch)))return c;return c||r.nullResultValue}r.threshold=.4,r.thresholdAbsolute=20,r.caseSensitive=!1,r.nullResultValue=null,r.returnWinningObject=null,r.returnFirstMatch=!1,typeof zn!="undefined"&&zn.exports?zn.exports=r:window.didYouMean=r;var e=Math.pow(2,32)-1;function t(i,n,s){s=s||s===0?s:e;var a=i.length,o=n.length;if(a===0)return Math.min(s+1,o);if(o===0)return Math.min(s+1,a);if(Math.abs(a-o)>s)return s+1;var u=[],c,f,d,h,m;for(c=0;c<=o;c++)u[c]=[c];for(f=0;f<=a;f++)u[0][f]=f;for(c=1;c<=o;c++){for(d=e,h=1,c>s&&(h=c-s),m=o+1,m>s+c&&(m=s+c),f=1;f<=a;f++)f<h||f>m?u[c][f]=s+1:n.charAt(c-1)===i.charAt(f-1)?u[c][f]=u[c-1][f-1]:u[c][f]=Math.min(u[c-1][f-1]+1,Math.min(u[c][f-1]+1,u[c-1][f]+1)),u[c][f]<d&&(d=u[c][f]);if(d>s)return s+1}return u[o][a]}})()});var fm=x((VD,um)=>{l();var Mo="(".charCodeAt(0),Lo=")".charCodeAt(0),jn="'".charCodeAt(0),$o='"'.charCodeAt(0),No="\\".charCodeAt(0),Ht="/".charCodeAt(0),zo=",".charCodeAt(0),jo=":".charCodeAt(0),Un="*".charCodeAt(0),g3="u".charCodeAt(0),y3="U".charCodeAt(0),b3="+".charCodeAt(0),w3=/^[a-f0-9?-]+$/i;um.exports=function(r){for(var e=[],t=r,i,n,s,a,o,u,c,f,d=0,h=t.charCodeAt(d),m=t.length,y=[{nodes:e}],v=0,b,w="",k="",C="";d<m;)if(h<=32){i=d;do i+=1,h=t.charCodeAt(i);while(h<=32);a=t.slice(d,i),s=e[e.length-1],h===Lo&&v?C=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):h===zo||h===jo||h===Ht&&t.charCodeAt(i+1)!==Un&&(!b||b&&b.type==="function"&&b.value!=="calc")?k=a:e.push({type:"space",sourceIndex:d,sourceEndIndex:i,value:a}),d=i}else if(h===jn||h===$o){i=d,n=h===jn?"'":'"',a={type:"string",sourceIndex:d,quote:n};do if(o=!1,i=t.indexOf(n,i+1),~i)for(u=i;t.charCodeAt(u-1)===No;)u-=1,o=!o;else t+=n,i=t.length-1,a.unclosed=!0;while(o);a.value=t.slice(d+1,i),a.sourceEndIndex=a.unclosed?i:i+1,e.push(a),d=i+1,h=t.charCodeAt(d)}else if(h===Ht&&t.charCodeAt(d+1)===Un)i=t.indexOf("*/",d),a={type:"comment",sourceIndex:d,sourceEndIndex:i+2},i===-1&&(a.unclosed=!0,i=t.length,a.sourceEndIndex=i),a.value=t.slice(d+2,i),e.push(a),d=i+2,h=t.charCodeAt(d);else if((h===Ht||h===Un)&&b&&b.type==="function"&&b.value==="calc")a=t[d],e.push({type:"word",sourceIndex:d-k.length,sourceEndIndex:d+a.length,value:a}),d+=1,h=t.charCodeAt(d);else if(h===Ht||h===zo||h===jo)a=t[d],e.push({type:"div",sourceIndex:d-k.length,sourceEndIndex:d+a.length,value:a,before:k,after:""}),k="",d+=1,h=t.charCodeAt(d);else if(Mo===h){i=d;do i+=1,h=t.charCodeAt(i);while(h<=32);if(f=d,a={type:"function",sourceIndex:d-w.length,value:w,before:t.slice(f+1,i)},d=i,w==="url"&&h!==jn&&h!==$o){i-=1;do if(o=!1,i=t.indexOf(")",i+1),~i)for(u=i;t.charCodeAt(u-1)===No;)u-=1,o=!o;else t+=")",i=t.length-1,a.unclosed=!0;while(o);c=i;do c-=1,h=t.charCodeAt(c);while(h<=32);f<c?(d!==c+1?a.nodes=[{type:"word",sourceIndex:d,sourceEndIndex:c+1,value:t.slice(d,c+1)}]:a.nodes=[],a.unclosed&&c+1!==i?(a.after="",a.nodes.push({type:"space",sourceIndex:c+1,sourceEndIndex:i,value:t.slice(c+1,i)})):(a.after=t.slice(c+1,i),a.sourceEndIndex=i)):(a.after="",a.nodes=[]),d=i+1,a.sourceEndIndex=a.unclosed?i:d,h=t.charCodeAt(d),e.push(a)}else v+=1,a.after="",a.sourceEndIndex=d+1,e.push(a),y.push(a),e=a.nodes=[],b=a;w=""}else if(Lo===h&&v)d+=1,h=t.charCodeAt(d),b.after=C,b.sourceEndIndex+=C.length,C="",v-=1,y[y.length-1].sourceEndIndex=d,y.pop(),b=y[v],e=b.nodes;else{i=d;do h===No&&(i+=1),i+=1,h=t.charCodeAt(i);while(i<m&&!(h<=32||h===jn||h===$o||h===zo||h===jo||h===Ht||h===Mo||h===Un&&b&&b.type==="function"&&b.value==="calc"||h===Ht&&b.type==="function"&&b.value==="calc"||h===Lo&&v));a=t.slice(d,i),Mo===h?w=a:(g3===a.charCodeAt(0)||y3===a.charCodeAt(0))&&b3===a.charCodeAt(1)&&w3.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:d,sourceEndIndex:i,value:a}):e.push({type:"word",sourceIndex:d,sourceEndIndex:i,value:a}),d=i}for(d=y.length-1;d;d-=1)y[d].unclosed=!0,y[d].sourceEndIndex=t.length;return y[0].nodes}});var pm=x((WD,cm)=>{l();cm.exports=function r(e,t,i){var n,s,a,o;for(n=0,s=e.length;n<s;n+=1)a=e[n],i||(o=t(a,n,e)),o!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&r(a.nodes,t,i),i&&t(a,n,e)}});var gm=x((GD,mm)=>{l();function dm(r,e){var t=r.type,i=r.value,n,s;return e&&(s=e(r))!==void 0?s:t==="word"||t==="space"?i:t==="string"?(n=r.quote||"",n+i+(r.unclosed?"":n)):t==="comment"?"/*"+i+(r.unclosed?"":"*/"):t==="div"?(r.before||"")+i+(r.after||""):Array.isArray(r.nodes)?(n=hm(r.nodes,e),t!=="function"?n:i+"("+(r.before||"")+n+(r.after||"")+(r.unclosed?"":")")):i}function hm(r,e){var t,i;if(Array.isArray(r)){for(t="",i=r.length-1;~i;i-=1)t=dm(r[i],e)+t;return t}return dm(r,e)}mm.exports=hm});var bm=x((HD,ym)=>{l();var Vn="-".charCodeAt(0),Wn="+".charCodeAt(0),Uo=".".charCodeAt(0),x3="e".charCodeAt(0),v3="E".charCodeAt(0);function k3(r){var e=r.charCodeAt(0),t;if(e===Wn||e===Vn){if(t=r.charCodeAt(1),t>=48&&t<=57)return!0;var i=r.charCodeAt(2);return t===Uo&&i>=48&&i<=57}return e===Uo?(t=r.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}ym.exports=function(r){var e=0,t=r.length,i,n,s;if(t===0||!k3(r))return!1;for(i=r.charCodeAt(e),(i===Wn||i===Vn)&&e++;e<t&&(i=r.charCodeAt(e),!(i<48||i>57));)e+=1;if(i=r.charCodeAt(e),n=r.charCodeAt(e+1),i===Uo&&n>=48&&n<=57)for(e+=2;e<t&&(i=r.charCodeAt(e),!(i<48||i>57));)e+=1;if(i=r.charCodeAt(e),n=r.charCodeAt(e+1),s=r.charCodeAt(e+2),(i===x3||i===v3)&&(n>=48&&n<=57||(n===Wn||n===Vn)&&s>=48&&s<=57))for(e+=n===Wn||n===Vn?3:2;e<t&&(i=r.charCodeAt(e),!(i<48||i>57));)e+=1;return{number:r.slice(0,e),unit:r.slice(e)}}});var si=x((YD,vm)=>{l();var S3=fm(),wm=pm(),xm=gm();function ut(r){return this instanceof ut?(this.nodes=S3(r),this):new ut(r)}ut.prototype.toString=function(){return Array.isArray(this.nodes)?xm(this.nodes):""};ut.prototype.walk=function(r,e){return wm(this.nodes,r,e),this};ut.unit=bm();ut.walk=wm;ut.stringify=xm;vm.exports=ut});function Wo(r){return typeof r=="object"&&r!==null}function C3(r,e){let t=et(e);do if(t.pop(),(0,ai.default)(r,t)!==void 0)break;while(t.length);return t.length?t:void 0}function Yt(r){return typeof r=="string"?r:r.reduce((e,t,i)=>t.includes(".")?`${e}[${t}]`:i===0?t:`${e}.${t}`,"")}function Sm(r){return r.map(e=>`'${e}'`).join(", ")}function Cm(r){return Sm(Object.keys(r))}function Go(r,e,t,i={}){let n=Array.isArray(e)?Yt(e):e.replace(/^['"]+|['"]+$/g,""),s=Array.isArray(e)?e:et(n),a=(0,ai.default)(r.theme,s,t);if(a===void 0){let u=`'${n}' does not exist in your theme config.`,c=s.slice(0,-1),f=(0,ai.default)(r.theme,c);if(Wo(f)){let d=Object.keys(f).filter(m=>Go(r,[...c,m]).isValid),h=(0,km.default)(s[s.length-1],d);h?u+=` Did you mean '${Yt([...c,h])}'?`:d.length>0&&(u+=` '${Yt(c)}' has the following valid keys: ${Sm(d)}`)}else{let d=C3(r.theme,n);if(d){let h=(0,ai.default)(r.theme,d);Wo(h)?u+=` '${Yt(d)}' has the following keys: ${Cm(h)}`:u+=` '${Yt(d)}' is not an object.`}else u+=` Your theme has the following top-level keys: ${Cm(r.theme)}`}return{isValid:!1,error:u}}if(!(typeof a=="string"||typeof a=="number"||typeof a=="function"||a instanceof String||a instanceof Number||Array.isArray(a))){let u=`'${n}' was found but does not resolve to a string.`;if(Wo(a)){let c=Object.keys(a).filter(f=>Go(r,[...s,f]).isValid);c.length&&(u+=` Did you mean something like '${Yt([...s,c[0]])}'?`)}return{isValid:!1,error:u}}let[o]=s;return{isValid:!0,value:Xe(o)(a,i)}}function A3(r,e,t){e=e.map(n=>Am(r,n,t));let i=[""];for(let n of e)n.type==="div"&&n.value===","?i.push(""):i[i.length-1]+=Vo.default.stringify(n);return i}function Am(r,e,t){if(e.type==="function"&&t[e.value]!==void 0){let i=A3(r,e.nodes,t);e.type="word",e.value=t[e.value](r,...i)}return e}function O3(r,e,t){return(0,Vo.default)(e).walk(i=>{Am(r,i,t)}).toString()}function*_3(r){r=r.replace(/^['"]+|['"]+$/g,"");let e=r.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]+))$/),t;yield[r,void 0],e&&(r=e[1],t=e[2],yield[r,t])}function T3(r,e,t){let i=Array.from(_3(e)).map(([n,s])=>Object.assign(Go(r,n,t,{opacityValue:s}),{resolvedPath:n,alpha:s}));return i.find(n=>n.isValid)??i[0]}function Om(r){let e=r.tailwindConfig,t={theme:(i,n,...s)=>{let{isValid:a,value:o,error:u,alpha:c}=T3(e,n,s.length?s:void 0);if(!a){let h=i.parent,m=h?.raws.tailwind?.candidate;if(h&&m!==void 0){r.markInvalidUtilityNode(h),h.remove(),M.warn("invalid-theme-key-in-class",[`The utility \`${m}\` contains an invalid theme value and was not generated.`]);return}throw i.error(u)}let f=Tt(o),d=f!==void 0&&typeof f=="function";return(c!==void 0||d)&&(c===void 0&&(c=1),o=Re(f,c,f)),o},screen:(i,n)=>{n=n.replace(/^['"]+/g,"").replace(/['"]+$/g,"");let a=ot(e.theme.screens).find(({name:o})=>o===n);if(!a)throw i.error(`The '${n}' screen does not exist in your theme.`);return at(a)}};return i=>{i.walk(n=>{let s=E3[n.type];s!==void 0&&(n[s]=O3(n,n[s],t))})}}var ai,km,Vo,E3,Em=S(()=>{l();ai=H(ta()),km=H(lm());Zr();Vo=H(si());Cn();vn();xi();hr();br();_e();E3={atrule:"params",decl:"value"}});function _m({tailwindConfig:{theme:r}}){return function(e){e.walkAtRules("screen",t=>{let i=t.params,s=ot(r.screens).find(({name:a})=>a===i);if(!s)throw t.error(`No \`${i}\` screen found.`);t.name="media",t.params=at(s)})}}var Tm=S(()=>{l();Cn();vn()});function P3(r){let e=r.filter(o=>o.type!=="pseudo"||o.nodes.length>0?!0:o.value.startsWith("::")||[":before",":after",":first-line",":first-letter"].includes(o.value)).reverse(),t=new Set(["tag","class","id","attribute"]),i=e.findIndex(o=>t.has(o.type));if(i===-1)return e.reverse().join("").trim();let n=e[i],s=Pm[n.type]?Pm[n.type](n):n;e=e.slice(0,i);let a=e.findIndex(o=>o.type==="combinator"&&o.value===">");return a!==-1&&(e.splice(0,a),e.unshift(Gn.default.universal())),[s,...e.reverse()].join("").trim()}function I3(r){return Ho.has(r)||Ho.set(r,D3.transformSync(r)),Ho.get(r)}function Yo({tailwindConfig:r}){return e=>{let t=new Map,i=new Set;if(e.walkAtRules("defaults",n=>{if(n.nodes&&n.nodes.length>0){i.add(n);return}let s=n.params;t.has(s)||t.set(s,new Set),t.get(s).add(n.parent),n.remove()}),J(r,"optimizeUniversalDefaults"))for(let n of i){let s=new Map,a=t.get(n.params)??[];for(let o of a)for(let u of I3(o.selector)){let c=u.includes(":-")||u.includes("::-")?u:"__DEFAULT__",f=s.get(c)??new Set;s.set(c,f),f.add(u)}if(J(r,"optimizeUniversalDefaults")){if(s.size===0){n.remove();continue}for(let[,o]of s){let u=z.rule({source:n.source});u.selectors=[...o],u.append(n.nodes.map(c=>c.clone())),n.before(u)}}n.remove()}else if(i.size){let n=z.rule({selectors:["*","::before","::after"]});for(let a of i)n.append(a.nodes),n.parent||a.before(n),n.source||(n.source=a.source),a.remove();let s=n.clone({selectors:["::backdrop"]});n.after(s)}}}var Gn,Pm,D3,Ho,Dm=S(()=>{l();st();Gn=H(Qe());qe();Pm={id(r){return Gn.default.attribute({attribute:"id",operator:"=",value:r.value,quoteMark:'"'})}};D3=(0,Gn.default)(r=>r.map(e=>{let t=e.split(i=>i.type==="combinator"&&i.value===" ").pop();return P3(t)})),Ho=new Map});function Qo(){function r(e){let t=null;e.each(i=>{if(!q3.has(i.type)){t=null;return}if(t===null){t=i;return}let n=Im[i.type];i.type==="atrule"&&i.name==="font-face"?t=i:n.every(s=>(i[s]??"").replace(/\s+/g," ")===(t[s]??"").replace(/\s+/g," "))?(i.nodes&&t.append(i.nodes),i.remove()):t=i}),e.each(i=>{i.type==="atrule"&&r(i)})}return e=>{r(e)}}var Im,q3,qm=S(()=>{l();Im={atrule:["name","params"],rule:["selector"]},q3=new Set(Object.keys(Im))});function Xo(){return r=>{r.walkRules(e=>{let t=new Map,i=new Set([]),n=new Map;e.walkDecls(s=>{if(s.parent===e){if(t.has(s.prop)){if(t.get(s.prop).value===s.value){i.add(t.get(s.prop)),t.set(s.prop,s);return}n.has(s.prop)||n.set(s.prop,new Set),n.get(s.prop).add(t.get(s.prop)),n.get(s.prop).add(s)}t.set(s.prop,s)}});for(let s of i)s.remove();for(let s of n.values()){let a=new Map;for(let o of s){let u=F3(o.value);u!==null&&(a.has(u)||a.set(u,new Set),a.get(u).add(o))}for(let o of a.values()){let u=Array.from(o).slice(0,-1);for(let c of u)c.remove()}}})}}function F3(r){let e=/^-?\d*.?\d+([\w%]+)?$/g.exec(r);return e?e[1]??R3:null}var R3,Rm=S(()=>{l();R3=Symbol("unitless-number")});function B3(r){if(!r.walkAtRules)return;let e=new Set;if(r.walkAtRules("apply",t=>{e.add(t.parent)}),e.size!==0)for(let t of e){let i=[],n=[];for(let s of t.nodes)s.type==="atrule"&&s.name==="apply"?(n.length>0&&(i.push(n),n=[]),i.push([s])):n.push(s);if(n.length>0&&i.push(n),i.length!==1){for(let s of[...i].reverse()){let a=t.clone({nodes:[]});a.append(s),t.after(a)}t.remove()}}}function Hn(){return r=>{B3(r)}}var Fm=S(()=>{l()});function M3(r){return r.type==="root"}function L3(r){return r.type==="atrule"&&r.name==="layer"}function Bm(r){return(e,t)=>{let i=!1;e.walkAtRules("tailwind",n=>{if(i)return!1;if(n.parent&&!(M3(n.parent)||L3(n.parent)))return i=!0,n.warn(t,["Nested @tailwind rules were detected, but are not supported.","Consider using a prefix to scope Tailwind's classes: https://tailwindcss.com/docs/configuration#prefix","Alternatively, use the important selector strategy: https://tailwindcss.com/docs/configuration#selector-strategy"].join(`
31`)),!1}),e.walkRules(n=>{if(i)return!1;n.walkRules(s=>(i=!0,s.warn(t,["Nested CSS was detected, but CSS nesting has not been configured correctly.","Please enable a CSS nesting plugin *before* Tailwind in your configuration.","See how here: https://tailwindcss.com/docs/using-with-preprocessors#nesting"].join(`
32`)),!1))})}}var Mm=S(()=>{l()});function Yn(r){return function(e,t){let{tailwindDirectives:i,applyDirectives:n}=Do(e);Bm()(e,t),Hn()(e,t);let s=r({tailwindDirectives:i,applyDirectives:n,registerDependency(a){t.messages.push({plugin:"tailwindcss",parent:t.opts.from,...a})},createContext(a,o){return Co(a,o,e)}})(e,t);if(s.tailwindConfig.separator==="-")throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");Qu(s.tailwindConfig),qo(s)(e,t),Hn()(e,t),Bo(s)(e,t),Om(s)(e,t),_m(s)(e,t),Yo(s)(e,t),Qo(s)(e,t),Xo(s)(e,t)}}var Lm=S(()=>{l();jh();tm();om();Em();Tm();Dm();qm();Rm();Fm();Mm();Rn();qe()});function $m(r,e){let t=null,i=null;return r.walkAtRules("config",n=>{if(i=n.source?.input.file??e.opts.from??null,i===null)throw n.error("The `@config` directive cannot be used without setting `from` in your PostCSS config.");if(t)throw n.error("Only one `@config` directive is allowed per file.");let s=n.params.match(/(['"])(.*?)\1/);if(!s)throw n.error("A path is required when using the `@config` directive.");let a=s[2];if(te.isAbsolute(a))throw n.error("The `@config` directive cannot be used with an absolute path.");if(t=te.resolve(te.dirname(i),a),!re.existsSync(t))throw n.error(`The config file at "${a}" does not exist. Make sure the path is correct and the file exists.`);n.remove()}),t||null}var Nm=S(()=>{l();Ve();wt()});var zm={};ce(zm,{transform:()=>$3});function $3({code:r}){return{code:{toString(){return r}}}}var jm=S(()=>{l()});var Qn=x((T9,Um)=>{l();Um.exports=()=>["and_chr 114","and_uc 15.5","chrome 114","chrome 113","chrome 109","edge 114","firefox 114","ios_saf 16.5","ios_saf 16.4","ios_saf 16.3","ios_saf 16.1","opera 99","safari 16.5","samsung 21"]});var Vm=x((R9,Jo)=>{l();zh();Lm();Ie();Nm();Jo.exports=function(e){return{postcssPlugin:"tailwindcss",plugins:[ie.DEBUG&&function(t){return console.log(`

Callers 1

TnFunction · 0.85

Calls 6

walkRulesMethod · 0.80
VtFunction · 0.70
PnFunction · 0.70
OnFunction · 0.70
rootMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected