MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / createContext

Function createContext

hyperagent-ext/media/scripts/tailwind.min.js:32–32  ·  view source on GitHub ↗
(a,o)

Source from the content-addressed store, hash-verified

30`))if(n=n.trim(),!i.has(n))if(i.add(n),Xr.get(e).has(n))for(let s of Xr.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);Xr.get(e).set(n,a)}}function XS(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 no(r){return e=>{let t={base:null,components:null,utilities:null,variants:null};if(e.walkAtRules(d=>{d.name==="tailwind"&&Object.keys(t).includes(d.params)&&(t[d.params]=d)}),Object.values(t).every(d=>d===null))return e;let i=new Set([Ve]),n=new Set;mt.DEBUG&&console.time("Reading changed files");for(let{content:d,extension:y}of r.changedContent){let k=QS(r.tailwindConfig,y),w=YS(r,y);JS(k(d),w,i,n)}mt.DEBUG&&console.timeEnd("Reading changed files");let s=r.classCache.size;mt.DEBUG&&console.time("Generate rules"),mn(i,r),mt.DEBUG&&console.timeEnd("Generate rules"),mt.DEBUG&&console.time("Build stylesheet"),(r.stylesheetCache===null||r.classCache.size!==s)&&(r.stylesheetCache=XS([...r.ruleCache],r)),mt.DEBUG&&console.timeEnd("Build stylesheet");let{defaults:a,base:o,components:u,utilities:c,variants:f}=r.stylesheetCache;t.base&&(t.base.before(ht([...o,...a],t.base.source,{layer:"base"})),t.base.remove()),t.components&&(t.components.before(ht([...u],t.components.source,{layer:"components"})),t.components.remove()),t.utilities&&(t.utilities.before(ht([...c],t.utilities.source,{layer:"utilities"})),t.utilities.remove());let p=Array.from(f).filter(d=>{let y=d.raws.tailwind?.parentLayer;return y==="components"?t.components!==null:y==="utilities"?t.utilities!==null:!0});t.variants?(t.variants.before(ht(p,t.variants.source,{layer:"variants"})),t.variants.remove()):p.length>0&&e.append(ht(p,e.source,{layer:"variants"}));let h=p.some(d=>d.raws.tailwind?.parentLayer==="utilities");t.utilities&&c.size===0&&!h&&N.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"]),mt.DEBUG&&(console.log("Potential classes: ",i.size),console.log("Active contexts: ",fn.size)),r.changedContent=[],e.walkAtRules("layer",d=>{Object.keys(t).includes(d.params)&&d.remove()})}}var Vd,mt,Ud,Wd,Xr,Gd=A(()=>{l();Vd=J(Nn());rt();gn();Ae();Fd();jd();mt=Te,Ud={DEFAULT:zd},Wd={DEFAULT:r=>r,svelte:r=>r.replace(/(?:^|\s)class:/g," ")};Xr=new WeakMap});function Sn(r){let e=new Map;j.root({nodes:[r.clone()]}).walkRules(s=>{(0,so.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 ao(r){return KS.astSync(r)}function Hd(r,e){let t=new Set;for(let i of r)t.add(i.split(e).pop());return Array.from(t)}function Yd(r,e){let t=r.tailwindConfig.prefix;return typeof t=="function"?t(e):t+e}function*Qd(r){for(yield r;r.parent;)yield r.parent,r=r.parent}function ZS(r,e={}){let t=r.nodes;r.nodes=[];let i=r.clone(e);return r.nodes=t,i}function e2(r){for(let e of Qd(r))if(r!==e){if(e.type==="root")break;r=ZS(e,{nodes:[r]})}return r}function t2(r,e){let t=new Map;return r.walkRules(i=>{for(let a of Qd(i))if(a.raws.tailwind?.layer!==void 0)return;let n=e2(i),s=e.offsets.create("user");for(let a of Sn(i)){let o=t.get(a)||[];t.set(a,o),o.push([{layer:"user",sort:s,important:!1},n])}}),t}function r2(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(dn(t,e));if(i.length===0){e.notClassCache.add(t);continue}e.applyClassCache.set(t,i)}return e.applyClassCache}function i2(r){let e=null;return{get:t=>(e=e||r(),e.get(t)),has:t=>(e=e||r(),e.has(t))}}function n2(r){return{get:e=>r.flatMap(t=>t.get(e)||[]),has:e=>r.some(t=>t.has(e))}}function Jd(r){let e=r.split(/[\s\t\n]+/g);return e[e.length-1]==="!important"?[e.slice(0,-1),!0]:[e,!1]}function Xd(r,e,t){let i=new Set,n=[];if(r.walkAtRules("apply",u=>{let[c]=Jd(u.params);for(let f of c)i.add(f);n.push(u)}),n.length===0)return;let s=n2([t,r2(i,e)]);function a(u,c,f){let p=ao(u),h=ao(c),y=ao(`.${ve(f)}`).nodes[0].nodes[0];return p.each(k=>{let w=new Set;h.each(b=>{let x=!1;b=b.clone(),b.walkClasses(S=>{S.value===y.value&&(x||(S.replaceWith(...k.nodes.map(_=>_.clone())),w.add(b),x=!0))})});for(let b of w){let x=[[]];for(let S of b.nodes)S.type==="combinator"?(x.push(S),x.push([])):x[x.length-1].push(S);b.nodes=[];for(let S of x)Array.isArray(S)&&S.sort((_,D)=>_.type==="tag"&&D.type==="class"?-1:_.type==="class"&&D.type==="tag"?1:_.type==="class"&&D.type==="pseudo"&&D.value.startsWith("::")?-1:_.type==="pseudo"&&_.value.startsWith("::")&&D.type==="class"?1:0),b.nodes=b.nodes.concat(S)}k.replaceWith(...w)}),p.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,p]=Jd(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(d=>`${h}:${d}`).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([Yd(e,"group"),Yd(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 d=s.get(h);c.push([h,p,d])}}for(let[u,[c,f]]of o){let p=[];for(let[d,y,k]of c){let w=[d,...Hd([d],e.tailwindConfig.separator)];for(let[b,x]of k){let S=Sn(u),_=Sn(x);if(_=_.groups.filter(q=>q.some(F=>w.includes(F))).flat(),_=_.concat(Hd(_,e.tailwindConfig.separator)),S.some(q=>_.includes(q)))throw x.error(`You cannot \`@apply\` the \`${d}\` utility here because it creates a circular dependency.`);let M=j.root({nodes:[x.clone()]});M.walk(q=>{q.source=f}),(x.type!=="atrule"||x.type==="atrule"&&x.name!=="keyframes")&&M.walkRules(q=>{if(!Sn(q).some(se=>se===d)){q.remove();return}let F=typeof e.tailwindConfig.important=="string"?e.tailwindConfig.important:null,ce=u.raws.tailwind!==void 0&&F&&u.selector.indexOf(F)===0?u.selector.slice(F.length):u.selector;q.selector=a(ce,q.selector,d),F&&ce!==u.selector&&(q.selector=`${F} ${q.selector}`),q.walkDecls(se=>{se.important=b.important||y})}),!!M.nodes[0]&&p.push([b.sort,M.nodes[0]])}}let h=e.offsets.sort(p).map(d=>d[1]);u.after(h)}for(let u of n)u.parent.nodes.length>1?u.remove():u.parent.remove();Xd(r,e,t)}function oo(r){return e=>{let t=i2(()=>t2(e,r));Xd(e,r,t)}}var so,KS,Kd=A(()=>{l();Ze();so=J(De());gn();qt();KS=(0,so.default)()});var Zd=v((LP,Cn)=>{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,p,h,d,y=n.length;for(d=0;d<y;d++)if(f=n[d],s&&(f=f[s]),!!f&&(r.caseSensitive?p=f:p=f.toLowerCase(),h=t(i,p,u),(u===null||h<u)&&(u=h,s&&r.returnWinningObject?c=n[d]: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 Cn!="undefined"&&Cn.exports?Cn.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,p,h,d;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(p=e,h=1,c>s&&(h=c-s),d=o+1,d>s+c&&(d=s+c),f=1;f<=a;f++)f<h||f>d?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]<p&&(p=u[c][f]);if(p>s)return s+1}return u[o][a]}})()});var th=v((BP,eh)=>{l();var lo="(".charCodeAt(0),uo=")".charCodeAt(0),_n="'".charCodeAt(0),fo='"'.charCodeAt(0),co="\\".charCodeAt(0),Nt="/".charCodeAt(0),po=",".charCodeAt(0),ho=":".charCodeAt(0),An="*".charCodeAt(0),s2="u".charCodeAt(0),a2="U".charCodeAt(0),o2="+".charCodeAt(0),l2=/^[a-f0-9?-]+$/i;eh.exports=function(r){for(var e=[],t=r,i,n,s,a,o,u,c,f,p=0,h=t.charCodeAt(p),d=t.length,y=[{nodes:e}],k=0,w,b="",x="",S="";p<d;)if(h<=32){i=p;do i+=1,h=t.charCodeAt(i);while(h<=32);a=t.slice(p,i),s=e[e.length-1],h===uo&&k?S=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):h===po||h===ho||h===Nt&&t.charCodeAt(i+1)!==An&&(!w||w&&w.type==="function"&&w.value!=="calc")?x=a:e.push({type:"space",sourceIndex:p,sourceEndIndex:i,value:a}),p=i}else if(h===_n||h===fo){i=p,n=h===_n?"'":'"',a={type:"string",sourceIndex:p,quote:n};do if(o=!1,i=t.indexOf(n,i+1),~i)for(u=i;t.charCodeAt(u-1)===co;)u-=1,o=!o;else t+=n,i=t.length-1,a.unclosed=!0;while(o);a.value=t.slice(p+1,i),a.sourceEndIndex=a.unclosed?i:i+1,e.push(a),p=i+1,h=t.charCodeAt(p)}else if(h===Nt&&t.charCodeAt(p+1)===An)i=t.indexOf("*/",p),a={type:"comment",sourceIndex:p,sourceEndIndex:i+2},i===-1&&(a.unclosed=!0,i=t.length,a.sourceEndIndex=i),a.value=t.slice(p+2,i),e.push(a),p=i+2,h=t.charCodeAt(p);else if((h===Nt||h===An)&&w&&w.type==="function"&&w.value==="calc")a=t[p],e.push({type:"word",sourceIndex:p-x.length,sourceEndIndex:p+a.length,value:a}),p+=1,h=t.charCodeAt(p);else if(h===Nt||h===po||h===ho)a=t[p],e.push({type:"div",sourceIndex:p-x.length,sourceEndIndex:p+a.length,value:a,before:x,after:""}),x="",p+=1,h=t.charCodeAt(p);else if(lo===h){i=p;do i+=1,h=t.charCodeAt(i);while(h<=32);if(f=p,a={type:"function",sourceIndex:p-b.length,value:b,before:t.slice(f+1,i)},p=i,b==="url"&&h!==_n&&h!==fo){i-=1;do if(o=!1,i=t.indexOf(")",i+1),~i)for(u=i;t.charCodeAt(u-1)===co;)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?(p!==c+1?a.nodes=[{type:"word",sourceIndex:p,sourceEndIndex:c+1,value:t.slice(p,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=[]),p=i+1,a.sourceEndIndex=a.unclosed?i:p,h=t.charCodeAt(p),e.push(a)}else k+=1,a.after="",a.sourceEndIndex=p+1,e.push(a),y.push(a),e=a.nodes=[],w=a;b=""}else if(uo===h&&k)p+=1,h=t.charCodeAt(p),w.after=S,w.sourceEndIndex+=S.length,S="",k-=1,y[y.length-1].sourceEndIndex=p,y.pop(),w=y[k],e=w.nodes;else{i=p;do h===co&&(i+=1),i+=1,h=t.charCodeAt(i);while(i<d&&!(h<=32||h===_n||h===fo||h===po||h===ho||h===Nt||h===lo||h===An&&w&&w.type==="function"&&w.value==="calc"||h===Nt&&w.type==="function"&&w.value==="calc"||h===uo&&k));a=t.slice(p,i),lo===h?b=a:(s2===a.charCodeAt(0)||a2===a.charCodeAt(0))&&o2===a.charCodeAt(1)&&l2.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:p,sourceEndIndex:i,value:a}):e.push({type:"word",sourceIndex:p,sourceEndIndex:i,value:a}),p=i}for(p=y.length-1;p;p-=1)y[p].unclosed=!0,y[p].sourceEndIndex=t.length;return y[0].nodes}});var ih=v(($P,rh)=>{l();rh.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 oh=v((zP,ah)=>{l();function nh(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=sh(r.nodes,e),t!=="function"?n:i+"("+(r.before||"")+n+(r.after||"")+(r.unclosed?"":")")):i}function sh(r,e){var t,i;if(Array.isArray(r)){for(t="",i=r.length-1;~i;i-=1)t=nh(r[i],e)+t;return t}return nh(r,e)}ah.exports=sh});var uh=v((jP,lh)=>{l();var On="-".charCodeAt(0),En="+".charCodeAt(0),mo=".".charCodeAt(0),u2="e".charCodeAt(0),f2="E".charCodeAt(0);function c2(r){var e=r.charCodeAt(0),t;if(e===En||e===On){if(t=r.charCodeAt(1),t>=48&&t<=57)return!0;var i=r.charCodeAt(2);return t===mo&&i>=48&&i<=57}return e===mo?(t=r.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}lh.exports=function(r){var e=0,t=r.length,i,n,s;if(t===0||!c2(r))return!1;for(i=r.charCodeAt(e),(i===En||i===On)&&e++;e<t&&(i=r.charCodeAt(e),!(i<48||i>57));)e+=1;if(i=r.charCodeAt(e),n=r.charCodeAt(e+1),i===mo&&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===u2||i===f2)&&(n>=48&&n<=57||(n===En||n===On)&&s>=48&&s<=57))for(e+=n===En||n===On?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 Kr=v((VP,ph)=>{l();var p2=th(),fh=ih(),ch=oh();function nt(r){return this instanceof nt?(this.nodes=p2(r),this):new nt(r)}nt.prototype.toString=function(){return Array.isArray(this.nodes)?ch(this.nodes):""};nt.prototype.walk=function(r,e){return fh(this.nodes,r,e),this};nt.unit=uh();nt.walk=fh;nt.stringify=ch;ph.exports=nt});function yo(r){return typeof r=="object"&&r!==null}function d2(r,e){let t=He(e);do if(t.pop(),(0,Zr.default)(r,t)!==void 0)break;while(t.length);return t.length?t:void 0}function Lt(r){return typeof r=="string"?r:r.reduce((e,t,i)=>t.includes(".")?`${e}[${t}]`:i===0?t:`${e}.${t}`,"")}function hh(r){return r.map(e=>`'${e}'`).join(", ")}function mh(r){return hh(Object.keys(r))}function wo(r,e,t,i={}){let n=Array.isArray(e)?Lt(e):e.replace(/^['"]+|['"]+$/g,""),s=Array.isArray(e)?e:He(n),a=(0,Zr.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,Zr.default)(r.theme,c);if(yo(f)){let p=Object.keys(f).filter(d=>wo(r,[...c,d]).isValid),h=(0,dh.default)(s[s.length-1],p);h?u+=` Did you mean '${Lt([...c,h])}'?`:p.length>0&&(u+=` '${Lt(c)}' has the following valid keys: ${hh(p)}`)}else{let p=d2(r.theme,n);if(p){let h=(0,Zr.default)(r.theme,p);yo(h)?u+=` '${Lt(p)}' has the following keys: ${mh(h)}`:u+=` '${Lt(p)}' is not an object.`}else u+=` Your theme has the following top-level keys: ${mh(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(yo(a)){let c=Object.keys(a).filter(f=>wo(r,[...s,f]).isValid);c.length&&(u+=` Did you mean something like '${Lt([...s,c[0]])}'?`)}return{isValid:!1,error:u}}let[o]=s;return{isValid:!0,value:je(o)(a,i)}}function h2(r,e,t){e=e.map(n=>gh(r,n,t));let i=[""];for(let n of e)n.type==="div"&&n.value===","?i.push(""):i[i.length-1]+=go.default.stringify(n);return i}function gh(r,e,t){if(e.type==="function"&&t[e.value]!==void 0){let i=h2(r,e.nodes,t);e.type="word",e.value=t[e.value](r,...i)}return e}function m2(r,e,t){return(0,go.default)(e).walk(i=>{gh(r,i,t)}).toString()}function*y2(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 w2(r,e,t){let i=Array.from(y2(e)).map(([n,s])=>Object.assign(wo(r,n,t,{opacityValue:s}),{resolvedPath:n,alpha:s}));return i.find(n=>n.isValid)??i[0]}function yh(r){let e=r.tailwindConfig,t={theme:(i,n,...s)=>{let{isValid:a,value:o,error:u,alpha:c}=w2(e,n,s.length?s:void 0);if(!a){let h=i.parent,d=h?.raws.tailwind?.candidate;if(h&&d!==void 0){r.markInvalidUtilityNode(h),h.remove(),N.warn("invalid-theme-key-in-class",[`The utility \`${d}\` contains an invalid theme value and was not generated.`]);return}throw i.error(u)}let f=kt(o),p=f!==void 0&&typeof f=="function";return(c!==void 0||p)&&(c===void 0&&(c=1),o=qe(f,c,f)),o},screen:(i,n)=>{n=n.replace(/^['"]+/g,"").replace(/['"]+$/g,"");let a=tt(e.theme.screens).find(({name:o})=>o===n);if(!a)throw i.error(`The '${n}' screen does not exist in your theme.`);return et(a)}};return i=>{i.walk(n=>{let s=g2[n.type];s!==void 0&&(n[s]=m2(n,n[s],t))})}}var Zr,dh,go,g2,wh=A(()=>{l();Zr=J(va()),dh=J(Zd());Ur();go=J(Kr());ln();sn();li();Cr();Pr();Ae();g2={atrule:"params",decl:"value"}});function bh({tailwindConfig:{theme:r}}){return function(e){e.walkAtRules("screen",t=>{let i=t.params,s=tt(r.screens).find(({name:a})=>a===i);if(!s)throw t.error(`No \`${i}\` screen found.`);t.name="media",t.params=et(s)})}}var vh=A(()=>{l();ln();sn()});function b2(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=xh[n.type]?xh[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(Tn.default.universal())),[s,...e.reverse()].join("").trim()}function x2(r){return bo.has(r)||bo.set(r,v2.transformSync(r)),bo.get(r)}function vo({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()}),K(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 x2(o.selector)){let c=u.includes(":-")||u.includes("::-")?u:"__DEFAULT__",f=s.get(c)??new Set;s.set(c,f),f.add(u)}if(K(r,"optimizeUniversalDefaults")){if(s.size===0){n.remove();continue}for(let[,o]of s){let u=j.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=j.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 Tn,xh,v2,bo,kh=A(()=>{l();Ze();Tn=J(De());$e();xh={id(r){return Tn.default.attribute({attribute:"id",operator:"=",value:r.value,quoteMark:'"'})}};v2=(0,Tn.default)(r=>r.map(e=>{let t=e.split(i=>i.type==="combinator"&&i.value===" ").pop();return b2(t)})),bo=new Map});function xo(){function r(e){let t=null;e.each(i=>{if(!k2.has(i.type)){t=null;return}if(t===null){t=i;return}let n=Sh[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 Sh,k2,Ch=A(()=>{l();Sh={atrule:["name","params"],rule:["selector"]},k2=new Set(Object.keys(Sh))});function ko(){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=C2(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 C2(r){let e=/^-?\d*.?\d+([\w%]+)?$/g.exec(r);return e?e[1]??S2:null}var S2,_h=A(()=>{l();S2=Symbol("unitless-number")});function _2(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 Pn(){return r=>{_2(r)}}var Ah=A(()=>{l()});function Oh(r){return(e,t)=>{let i=!1;e.walkAtRules("tailwind",n=>{if(i)return!1;if(n.parent&&n.parent.type!=="root")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 Eh=A(()=>{l()});function Dn(r){return function(e,t){let{tailwindDirectives:i,applyDirectives:n}=ro(e);Oh()(e,t),Pn()(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 Ja(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.");Ef(s.tailwindConfig),no(s)(e,t),Pn()(e,t),oo(s)(e,t),yh(s)(e,t),bh(s)(e,t),vo(s)(e,t),xo(s)(e,t),ko(s)(e,t)}}var Th=A(()=>{l();Md();Gd();Kd();wh();vh();kh();Ch();_h();Ah();Eh();wn();$e()});function Ph(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(ie.isAbsolute(a))throw n.error("The `@config` directive cannot be used with an absolute path.");if(t=ie.resolve(ie.dirname(i),a),!ae.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 Dh=A(()=>{l();Ge();lt()});var qh=v((E3,So)=>{l();Rd();Th();rt();Dh();So.exports=function(e){return{postcssPlugin:"tailwindcss",plugins:[Te.DEBUG&&function(t){return console.log(`
33`),console.time("JIT TOTAL"),t},function(t,i){e=Ph(t,i)??e;let n=to(e);if(t.type==="document"){let s=t.nodes.filter(a=>a.type==="root");for(let a of s)a.type==="root"&&Dn(n)(a,i);return}Dn(n)(t,i)},Te.DEBUG&&function(t){return console.timeEnd("JIT TOTAL"),console.log(`
34`),t}].filter(Boolean)}};So.exports.postcss=!0});var Co=v((T3,Ih)=>{l();Ih.exports=()=>["and_chr 92","and_uc 12.12","chrome 92","chrome 91","edge 91","firefox 89","ios_saf 14.5-14.7","ios_saf 14.0-14.4","safari 14.1","samsung 14.0"]});var qn={};Ce(qn,{agents:()=>A2,feature:()=>O2});function O2(){return{status:"cr",title:"CSS Feature Queries",stats:{ie:{"6":"n","7":"n","8":"n","9":"n","10":"n","11":"n","5.5":"n"},edge:{"12":"y","13":"y","14":"y","15":"y","16":"y","17":"y","18":"y","79":"y","80":"y","81":"y","83":"y","84":"y","85":"y","86":"y","87":"y","88":"y","89":"y","90":"y","91":"y","92":"y"},firefox:{"2":"n","3":"n","4":"n","5":"n","6":"n","7":"n","8":"n","9":"n","10":"n","11":"n","12":"n","13":"n","14":"n","15":"n","16":"n","17":"n","18":"n","19":"n","20":"n","21":"n","22":"y","23":"y","24":"y","25":"y","26":"y","27":"y","28":"y","29":"y","30":"y","31":"y","32":"y","33":"y","34":"y","35":"y","36":"y","37":"y","38":"y","39":"y","40":"y","41":"y","42":"y","43":"y","44":"y","45":"y","46":"y","47":"y","48":"y","49":"y","50":"y","51":"y","52":"y","53":"y","54":"y","55":"y","56":"y","57":"y","58":"y","59":"y","60":"y","61":"y","62":"y","63":"y","64":"y","65":"y","66":"y","67":"y","68":"y","69":"y","70":"y","71":"y","72":"y","73":"y","74":"y","75":"y","76":"y","77":"y","78":"y","79":"y","80":"y","81":"y","82":"y","83":"y","84":"y","85":"y","86":"y","87":"y","88":"y","89":"y","90":"y","91":"y","92":"y","93":"y","3.5":"n","3.6":"n"},chrome:{"4":"n","5":"n","6":"n","7":"n","8":"n","9":"n","10":"n","11":"n","12":"n","13":"n","14":"n","15":"n","16":"n","17":"n","18":"n","19":"n","20":"n","21":"n","22":"n","23":"n","24":"n","25":"n","26":"n","27":"n","28":"y","29":"y","30":"y","31":"y","32":"y","33":"y","34":"y","35":"y","36":"y","37":"y","38":"y","39":"y","40":"y","41":"y","42":"y","43":"y","44":"y","45":"y","46":"y","47":"y","48":"y","49":"y","50":"y","51":"y","52":"y","53":"y","54":"y","55":"y","56":"y","57":"y","58":"y","59":"y","60":"y","61":"y","62":"y","63":"y","64":"y","65":"y","66":"y","67":"y","68":"y","69":"y","70":"y","71":"y","72":"y","73":"y","74":"y","75":"y","76":"y","77":"y","78":"y","79":"y","80":"y","81":"y","83":"y","84":"y","85":"y","86":"y","87":"y","88":"y","89":"y","90":"y","91":"y","92":"y","93":"y","94":"y","95":"y"},safari:{"4":"n","5":"n","6":"n","7":"n","8":"n","9":"y","10":"y","11":"y","12":"y","13":"y","14":"y","15":"y","9.1":"y","10.1":"y","11.1":"y","12.1":"y","13.1":"y","14.1":"y",TP:"y","3.1":"n","3.2":"n","5.1":"n","6.1":"n","7.1":"n"},opera:{"9":"n","11":"n","12":"n","15":"y","16":"y","17":"y","18":"y","19":"y","20":"y","21":"y","22":"y","23":"y","24":"y","25":"y","26":"y","27":"y","28":"y","29":"y","30":"y","31":"y","32":"y","33":"y","34":"y","35":"y","36":"y","37":"y","38":"y","39":"y","40":"y","41":"y","42":"y","43":"y","44":"y","45":"y","46":"y","47":"y","48":"y","49":"y","50":"y","51":"y","52":"y","53":"y","54":"y","55":"y","56":"y","57":"y","58":"y","60":"y","62":"y","63":"y","64":"y","65":"y","66":"y","67":"y","68":"y","69":"y","70":"y","71":"y","72":"y","73":"y","74":"y","75":"y","76":"y","77":"y","78":"y","12.1":"y","9.5-9.6":"n","10.0-10.1":"n","10.5":"n","10.6":"n","11.1":"n","11.5":"n","11.6":"n"},ios_saf:{"8":"n","9.0-9.2":"y","9.3":"y","10.0-10.2":"y","10.3":"y","11.0-11.2":"y","11.3-11.4":"y","12.0-12.1":"y","12.2-12.4":"y","13.0-13.1":"y","13.2":"y","13.3":"y","13.4-13.7":"y","14.0-14.4":"y","14.5-14.7":"y","3.2":"n","4.0-4.1":"n","4.2-4.3":"n","5.0-5.1":"n","6.0-6.1":"n","7.0-7.1":"n","8.1-8.4":"n"},op_mini:{all:"y"},android:{"3":"n","4":"n","92":"y","4.4":"y","4.4.3-4.4.4":"y","2.1":"n","2.2":"n","2.3":"n","4.1":"n","4.2-4.3":"n"},bb:{"7":"n","10":"n"},op_mob:{"10":"n","11":"n","12":"n","64":"y","11.1":"n","11.5":"n","12.1":"n"},and_chr:{"92":"y"},and_ff:{"90":"y"},ie_mob:{"10":"n","11":"n"},and_uc:{"12.12":"y"},samsung:{"4":"y","5.0-5.4":"y","6.2-6.4":"y","7.2-7.4":"y","8.2":"y","9.2":"y","10.1":"y","11.1-11.2":"y","12.0":"y","13.0":"y","14.0":"y"},and_qq:{"10.4":"y"},baidu:{"7.12":"y"},kaios:{"2.5":"y"}}}}var A2,In=A(()=>{l();A2={ie:{prefix:"ms"},edge:{prefix:"webkit",prefix_exceptions:{"12":"ms","13":"ms","14":"ms","15":"ms","16":"ms","17":"ms","18":"ms"}},firefox:{prefix:"moz"},chrome:{prefix:"webkit"},safari:{prefix:"webkit"},opera:{prefix:"webkit",prefix_exceptions:{"9":"o","11":"o","12":"o","9.5-9.6":"o","10.0-10.1":"o","10.5":"o","10.6":"o","11.1":"o","11.5":"o","11.6":"o","12.1":"o"}},ios_saf:{prefix:"webkit"},op_mini:{prefix:"o"},android:{prefix:"webkit"},bb:{prefix:"webkit"},op_mob:{prefix:"o",prefix_exceptions:{"64":"webkit"}},and_chr:{prefix:"webkit"},and_ff:{prefix:"moz"},ie_mob:{prefix:"ms"},and_uc:{prefix:"webkit",prefix_exceptions:{"12.12":"webkit"}},samsung:{prefix:"webkit"},and_qq:{prefix:"webkit"},baidu:{prefix:"webkit"},kaios:{prefix:"moz"}}});var Rh=v(()=>{l()});var ne=v((q3,st)=>{l();var{list:_o}=me();st.exports.error=function(r){let e=new Error(r);throw e.autoprefixer=!0,e};st.exports.uniq=function(r){return[...new Set(r)]};st.exports.removeNote=function(r){return r.includes(" ")?r.split(" ")[0]:r};st.exports.escapeRegexp=function(r){return r.replace(/[$()*+-.?[\\\]^{|}]/g,"\\$&")};st.exports.regexp=function(r,e=!0){return e&&(r=this.escapeRegexp(r)),new RegExp(`(^|[\\s,(])(${r}($|[\\s(,]))`,"gi")};st.exports.editList=function(r,e){let t=_o.comma(r),i=e(t,[]);if(t===i)return r;let n=r.match(/,\s*/);return n=n?n[0]:", ",i.join(n)};st.exports.splitSelector=function(r){return _o.comma(r).map(e=>_o.space(e).map(t=>t.split(/(?=\.|#)/g)))}});var at=v((I3,Nh)=>{l();var E2=Co(),Mh=(In(),qn).agents,T2=ne(),Fh=class{static prefixes(){if(this.prefixesCache)return this.prefixesCache;this.prefixesCache=[];for(let e in Mh)this.prefixesCache.push(`-${Mh[e].prefix}-`);return this.prefixesCache=T2.uniq(this.prefixesCache).sort((e,t)=>t.length-e.length),this.prefixesCache}static withPrefix(e){return this.prefixesRegexp||(this.prefixesRegexp=new RegExp(this.prefixes().join("|"))),this.prefixesRegexp.test(e)}constructor(e,t,i,n){this.data=e,this.options=i||{},this.browserslistOpts=n||{},this.selected=this.parse(t)}parse(e){let t={};for(let i in this.browserslistOpts)t[i]=this.browserslistOpts[i];return t.path=this.options.from,E2(e,t)}prefix(e){let[t,i]=e.split(" "),n=this.data[t],s=n.prefix_exceptions&&n.prefix_exceptions[i];return s||(s=n.prefix),`-${s}-`}isSelected(e){return this.selected.includes(e)}};Nh.exports=Fh});var ei=v((R3,Lh)=>{l();Lh.exports={prefix(r){let e=r.match(/^(-\w+-)/);return e?e[0]:""},unprefixed(r){return r.replace(/^-\w+-/,"")}}});var Bt=v((M3,$h)=>{l();var P2=at(),Bh=ei(),D2=ne();function Ao(r,e){let t=new r.constructor;for(let i of Object.keys(r||{})){let n=r[i];i==="parent"&&typeof n=="object"?e&&(t[i]=e):i==="source"||i===null?t[i]=n:Array.isArray(n)?t[i]=n.map(s=>Ao(s,t)):i!=="_autoprefixerPrefix"&&i!=="_autoprefixerValues"&&i!=="proxyCache"&&(typeof n=="object"&&n!==null&&(n=Ao(n,t)),t[i]=n)}return t}var Rn=class{static hack(e){return this.hacks||(this.hacks={}),e.names.map(t=>(this.hacks[t]=e,this.hacks[t]))}static load(e,t,i){let n=this.hacks&&this.hacks[e];return n?new n(e,t,i):new this(e,t,i)}static clone(e,t){let i=Ao(e);for(let n in t)i[n]=t[n];return i}constructor(e,t,i){this.prefixes=t,this.name=e,this.all=i}parentPrefix(e){let t;return typeof e._autoprefixerPrefix!="undefined"?t=e._autoprefixerPrefix:e.type==="decl"&&e.prop[0]==="-"?t=Bh.prefix(e.prop):e.type==="root"?t=!1:e.type==="rule"&&e.selector.includes(":-")&&/:(-\w+-)/.test(e.selector)?t=e.selector.match(/:(-\w+-)/)[1]:e.type==="atrule"&&e.name[0]==="-"?t=Bh.prefix(e.name):t=this.parentPrefix(e.parent),P2.prefixes().includes(t)||(t=!1),e._autoprefixerPrefix=t,e._autoprefixerPrefix}process(e,t){if(!this.check(e))return;let i=this.parentPrefix(e),n=this.prefixes.filter(a=>!i||i===D2.removeNote(a)),s=[];for(let a of n)this.add(e,a,s.concat([a]),t)&&s.push(a);return s}clone(e,t){return Rn.clone(e,t)}};$h.exports=Rn});var I=v((F3,Vh)=>{l();var q2=Bt(),I2=at(),zh=ne(),jh=class extends q2{check(){return!0}prefixed(e,t){return t+e}normalize(e){return e}otherPrefixes(e,t){for(let i of I2.prefixes())if(i!==t&&e.includes(i))return!0;return!1}set(e,t){return e.prop=this.prefixed(e.prop,t),e}needCascade(e){return e._autoprefixerCascade||(e._autoprefixerCascade=this.all.options.cascade!==!1&&e.raw("before").includes(`
35`)),e._autoprefixerCascade}maxPrefixed(e,t){if(t._autoprefixerMax)return t._autoprefixerMax;let i=0;for(let n of e)n=zh.removeNote(n),n.length>i&&(i=n.length);return t._autoprefixerMax=i,t._autoprefixerMax}calcBefore(e,t,i=""){let s=this.maxPrefixed(e,t)-zh.removeNote(i).length,a=t.raw("before");return s>0&&(a+=Array(s).fill(" ").join("")),a}restoreBefore(e){let t=e.raw("before").split(`

Callers

nothing calls this directly

Calls 1

JaFunction · 0.85

Tested by

no test coverage detected