New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nextcss/nextcss

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextcss/nextcss - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

2

dist/browser.js

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

!function(){"use strict";const e=/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,o=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,n=n=>{const c=n?.match(e)||n?.match(t)||n?.match(o);return c?.slice(1).map(((e,t)=>{const o=parseInt(e.padStart(2,e),16);return 3===t?Math.round(o/255*100):o}))},c=e=>((e,t,o)=>Math.min(Math.max(t,e),o))(Math.round(e),0,255),r=(e,t=0)=>{const o=n(e),r=t/100;return o?.forEach(((e,t,o)=>{t>=3||(o[t]=c(r<0?e+(255-e)*Math.abs(r):e-e*r))})),(e=>{if(Array.isArray(e)&&[3,4].includes(e.length))return"#"+e.map(((e,t)=>(3===t?Math.round(e/100*255):e).toString(16).padStart(2,"0"))).join("")})(o)},a=[-90,-85,-74,-62,-50,-40,-30,-20,-10,0,10,20,30,40,50,60,70,80,85],l=e=>{const t={black:"#000000",white:"#ffffff"};return Object.keys(e).forEach((o=>{const n=(e=>a.reduce(((t,o,n)=>{const c=r(e,o);return t[50*n+50]=c,t}),{}))(e[o]);Object.keys(n).forEach((e=>{const c="".concat(o,"-").concat(e);t[c]=n[e]}))})),t},i={material:l({red:"#f44336",pink:"#e91e63",purple:"#9c27b0","deep-purple":"#673ab7",indigo:"#3f51b5",blue:"#2196f3","light-blue":"#03a9f4",cyan:"#00bcd4",teal:"#009688",green:"#4caf50","light-green":"#8bc34a",lime:"#cddc39",yellow:"#ffeb3b",amber:"#ffc107",orange:"#ff9800","deep-orange":"#ff5722",brown:"#795548",grey:"#9e9e9e","dark-grey":"#575757","blue-grey":"#607d8b"}),tailwind:l({slate:"#64748b",grey:"#6b7280",zinc:"#71717a",neutral:"#737373",stone:"#78716c",red:"#ef4444",orange:"#f97316",amber:"#f59e0b",yellow:"#eab308",lime:"#84cc16",green:"#22c55e",emerald:"#10b981",teal:"#14b8a6",cyan:"#06b6d4",sky:"#0ea5e9",blue:"#3b82f6",indigo:"#6366f1",violet:"#8b5cf6",purple:"#a855f7",fuchsia:"#d946ef",pink:"#ec4899",rose:"#f43f5e"})},s={merged:!1,debug:!1,verbose:!1,content:[],css:[],watch:!1,useStyleNode:!1,skipResetStyles:!1,skipRemUnits:!1,palette:"material",breakpoints:{sm:390,md:768,lg:1024,xl:1400},conatiners:{xs:480,sm:640,md:768,lg:1024,xl:1280}},d={...s},u=()=>({...d}),p=e=>{if(!d.merged&&"object"==typeof e){for(let t in e)t in s&&(d[t]=e[t]);const t=d.palette,o=d.debug;"object"==typeof(null==e?void 0:e.colors)&&(o&&console.log("Merge color palette...",{palette:t,colors:e.colors}),((e,t)=>{const o=l(t);Object.keys(o).forEach((t=>{i[e][t]=o[t]}))})(t,e.colors)),d.merged=!0,o&&console.log("Config merged",d)}return d},f=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare,m=e=>Math.round(parseFloat(e)/16*1e4)/1e4+"rem",h=(e,t)=>("-"===e?e+t:t)||"",b=e=>{const t=null==e?void 0:e.toString(),o=/^-?\d+\/\d+$/.test(e);return!(!e||o)&&("-"===t[0]&&(isNaN(t)||0===Math.abs(t)))},g=e=>e.replace(/\s+/gm," ").replace(/\s*({|}|:|;|>)\s*/gm,"$1").replace(/\(\s(.*?)\s\)/gm,"($1)").replace(";}","}").replace(/([:\s])(-?0[\w]+)/gm,"$10").trim(),y=e=>({w:"width",h:"height",p:"padding",m:"margin",b:"border",r:"border-radius",fg:"color",bg:"background-color"}[e]||""),x=e=>({t:"-top",r:"-right",b:"-bottom",l:"-left"}[e]||""),v="SAVE",w="CLEAN",$=[],k=[],N=[],S={reverseBreakpoint:!1},E=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;e instanceof RegExp&&"function"==typeof t&&(o&&"object"==typeof o)?$.push({pattern:e,fn:t,options:{...S,...o}}):console.error("Declared register is not correct!",{pattern:e,fn:t,options:o})};let j=(e,t)=>{let{pattern:o,fn:n,options:c}=e;const r=t.match(o);return!!r&&n(r)};const M=()=>{const e=k.sort(((e,t)=>e.proc-t.proc||f(e.className,t.className))).filter((e=>e.count)).map((e=>e.style));return(e=>{const t=[],o=[];e.forEach(((n,c)=>{/:hover\{/.test(n)&&(t.push(n),delete e[c]),/:active\{/.test(n)&&(o.push(n),delete e[c])})),t.concat(o).forEach((t=>e.push(t)))})(e),(e=>{let t={},o=[];e.forEach(((o,n)=>{const c=o.match(/(@media.*?){(.*?})}/);if(c){var r;const[,o,a]=c;(r=t)[o]||(r[o]=[]),t[o].push(a),delete e[n]}})),Object.entries(t).forEach((e=>{let[t,n]=e;return o.push("".concat(t,"{").concat(n.join(""),"}"))})),o.sort(f).forEach((t=>e.push(t))),t=o=[]})(e),e.filter((e=>e)).join("")},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{palette:o}=u(),c=i[o][e]||"";if(t&&7===c.length){const[e,o,r]=n(c);return"rgba(".concat(e," ").concat(o," ").concat(r," / ").concat(t,"%)")}return c};E(/^hidden$/,(e=>{let[t]=e;return".".concat(t," { display: none }")})),E(/^(block|flex|inline|inline-block|inline-flex|table|inline-table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row-group|table-row|flow-root|grid|inline-grid|contents|list-item)$/,(e=>{let[t,o]=e;return".".concat(t," { display: ").concat(o," }")})),E(/^(static|relative|absolute|fixed|sticky)$/,(e=>{let[t,o]=e;return".".concat(t," { position: ").concat(o," }")})),E(/^(box)-(border|content)$/,(e=>{let[t,o,n]=e;return".".concat(t," { box-sizing: ").concat(n,"-").concat(o," }")})),E(/^(float|clear)-(left|right|both|none)$/,(e=>{let[t,o,n]=e;if("float"!==o||"both"!==n)return".".concat(t," { ").concat(o,": ").concat(n," }")})),E(/^container(-auto)?-(\w+)$/,(e=>{let[t,o,n]=e;const c=(r=n,null===(a=u().conatiners)||void 0===a?void 0:a[r]);var r,a;if(!c)return;const l=o?"margin-left: auto; margin-right: auto":"";return".".concat(t," { width: 100%; max-width: ").concat(c,"px; ").concat(l," }")})),E(/^(-)?(top|right|bottom|left)-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=isNaN(c)?c:a+"px",i=r?"calc( ".concat(a,"*100% )"):l;return".".concat(t.replace(/\//,"\\/")," { ").concat(n,": ").concat(i," }")})),E(/^(-)?inset-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c]=e;const r=h(o,n);if(b(r))return;const a=isNaN(n)?n:r+"px",l=c?"calc( ".concat(r,"*100% )"):a;return".".concat(t.replace(/\//,"\\/")," { top: ").concat(l,"; right: ").concat(l,"; bottom: ").concat(l,"; left: ").concat(l,"}")})),E(/^(-)?inset-([xy])-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=isNaN(c)?c:a+"px",i=r?"calc( ".concat(a,"*100% )"):l,s="x"===n?"left":"top",d="x"===n?"right":"bottom";return".".concat(t.replace(/\//,"\\/")," { ").concat(s,": ").concat(i,"; ").concat(d,": ").concat(i," }")})),E(/^(-)?z-(auto|\d+)$/,(e=>{let[t,o,n]=e;const c=h(o,n);if(!b(c))return".".concat(t," { z-index: ").concat(c," }")})),E(/^(ratio|aspect)-(auto|square|video|\d+\/\d+)$/,(e=>{let[t,o,n]=e;const c={auto:"auto",square:"1/1",video:"16/9"}[n]||n;return".".concat(t.replace(/\//,"\\/")," { aspect-ratio: ").concat(c," }")})),E(/^(fit|object)-(contain|cover|fill|scale-down|none)$/,(e=>{let[t,o,n]=e;return".".concat(t," { object-fit: ").concat(n," }")})),E(/^object-(center|top|right|bottom|left)$/,(e=>{let[t,o]=e;return".".concat(t," { object-position: ").concat(o," }")})),E(/^(of|overflow)(-[xy])?-(auto|hidden|scroll|visible)$/,(e=>{let[t,o,n,c]=e;const r=n||"";return".".concat(t," { overflow").concat(r,": ").concat(c," }")})),E(/^(of|overflow)(-[xy])?-(overlay)$/,(e=>{let[t,o,n,c]=e;const r=n||"";return".".concat(t," { overflow").concat(r,": auto; overflow").concat(r,": ").concat(c," }")})),E(/^(os|overscroll)(-[xy])?-(auto|contain|none)$/,(e=>{let[t,o,n,c]=e;const r=n||"";return".".concat(t," { overscroll-behavior").concat(r,": ").concat(c," }")})),E(/^(p[trbl]?|r)-(\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c]=e;const r=isNaN(n)?n:n+"px",a=c?"calc( ".concat(n,"*100% )"):r,l=y(o[0]),i=x(o[1]);return".".concat(t.replace(/\//,"\\/")," { ").concat(l).concat(i,": ").concat(a," }")})),E(/^(-)?(m[trbl]?)-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=y(n[0]),i=x(n[1]),s=isNaN(c)?c:a+"px",d=r?"calc( ".concat(a,"*100% )"):s;return".".concat(t.replace(/\//,"\\/")," { ").concat(l).concat(i,": ").concat(d," }")})),E(/^(-)?([pm][xy])-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=y(n[0]),i=isNaN(c)?c:a+"px",s=r?"calc( ".concat(a,"*100% )"):i,d="y"===n[1]?"top":"left",u="y"===n[1]?"bottom":"right";return"auto"!==c||"margin"===l?".".concat(t.replace(/\//,"\\/")," { ").concat(l,"-").concat(d,": ").concat(s,"; ").concat(l,"-").concat(u,": ").concat(s," }"):void 0})),E(/^(-)?(s|space-)([xy])-(\d+)(-reverse)?$/,(e=>{let[t,o,n,c,r,a]=e;if(b(o+r))return;const l=o?-r:r,i="x"===c?a?"right":"left":a?"bottom":"top";return".".concat(t," > :not(:first-child) { margin-").concat(i,": ").concat(l,"px }")})),E(/^flex-gap-(\d+)$/,(e=>{let[t,o]=e;const n=o/2;return".".concat(t," { margin: -").concat(n,"px } .").concat(t," > * { padding: ").concat(n,"px }")})),E(/^(min-|max-)?([wh])-(auto|full|screen|min|max|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a={auto:"max-"===o?"none":"auto",full:"100%",screen:"h"===n?"100vh":"100vw",min:"min-content",max:"max-content"},l=o||"",i=isNaN(c)?a[c]||c:c+"px",s=r?"calc( ".concat(c,"*100% )"):i,d=y(n);return".".concat(t.replace(/\//,"\\/")," { ").concat(l+d,": ").concat(s," }")})),E(/^font-(sans|serif|mono)$/,(e=>{let[t,o]=e;const n={sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}[o]||"";return".".concat(t," { font-family: ").concat(n," }")})),E(/^fs-(\d+)$/,(e=>{let[t,o]=e;return".".concat(t," { font-size: ").concat(o,"px }")})),E(/^fw-([1-9]00|bold|bolder|ligher|normal)$/,(e=>{let[t,o]=e;return".".concat(t," { font-weight: ").concat(o," }")})),E(/^lh-([\d.]+)$/,(e=>{let[t,o]=e;return".".concat(t.replace(/\./,"\\.")," { line-height: ").concat(o," }")})),E(/^text-(left|center|right|justify)$/,(e=>{let[t,o]=e;return".".concat(t," { text-align: ").concat(o," }")})),E(/^(uppercase|lowercase|capitalize|no-transform)$/,(e=>{let[t,o]=e;const n="no-transform"===o?"none":o;return".".concat(t," { text-transform: ").concat(n," }")})),E(/^(underline|overline|line-through|no-decoration)$/,(e=>{let[t,o]=e;const n="no-decoration"===o?"none":o;return".".concat(t," { text-decoration: ").concat(n," }")})),E(/^text-trim(-all)?$/,(e=>{let[t,o]=e;const n=o?"":">";return".".concat(t,", .").concat(t," ").concat(n," * { min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden }")})),E(/^pointer-(none|auto|all)$/,(e=>{let[t,o]=e;return".".concat(t," { pointer-events: ").concat(o," }")})),E(/^cursor-(pointer|default|auto)$/,(e=>{let[t,o]=e;return".".concat(t," { cursor: ").concat(o," }")})),E(/^show$/,(e=>{let[t]=e;return".".concat(t," { display: none !important }")}),{reverseBreakpoint:!0}),E(/^hide$/,(e=>{let[t]=e;return".".concat(t," { display: none !important }")})),E(/^fit$/,(e=>{let[t]=e;return".".concat(t," { width: 100%; height: 100% }")})),E(/^fit-([wh])$/,(e=>{let[t,o]=e;const n=y(o);return".".concat(t," { ").concat(n,": 100% }")})),E(/^(b[trbl]?)-(\d+)$/,(e=>{let[t,o,n]=e;const c=y(o[0]),r=x(o[1]);return".".concat(t," { ").concat(c).concat(r,"-width: ").concat(n,"px; ").concat(c).concat(r,"-style: solid }")})),E(/^(b[trbl]?)-(solid|dashed|dotted|double|groove|inset|none|outset|ridge)$/,(e=>{let[t,o,n]=e;const c=y(o[0]),r=x(o[1]);return".".concat(t," { ").concat(c).concat(r,"-style: ").concat(n," }")})),E(/^b-(collapse|separate)$/,(e=>{let[t,o]=e;return".".concat(t," { border-collapse: ").concat(o," }")})),E(/^flex-(wrap|wrap-reverse|nowrap)$/,(e=>{let[t,o]=e;return".".concat(t," { flex-wrap: ").concat(o," }")})),E(/^flex-(row|row-reverse|col|col-reverse)$/,(e=>{let[t,o]=e;return".".concat(t," { flex-direction: ").concat(o.replace("col","column")," }")})),E(/^flex-(auto|[01])$/,(e=>{let[t,o]=e;const n="auto"===o?"1 1 auto":"0"===o?"0 0 auto":"1 1 0%";return".".concat(t," { flex: ").concat(n," }")})),E(/^flex-(grow|shrink)-([01])$/,(e=>{let[t,o,n]=e;return".".concat(t," { flex-").concat(o,": ").concat(n," }")})),E(/^justify-((center)|(start|end)|(around|between|evenly))$/,(e=>{let[t,,o,n,c]=e;const r=c?"space-"+c:n?"flex-"+n:o;return".".concat(t," { justify-content: ").concat(r," }")})),E(/^align-((center|baseline|stretch)|(start|end))$/,(e=>{let[t,,o,n]=e;const c=n?"flex-"+n:o;return".".concat(t," { align-items: ").concat(c," }")})),E(/^align-self-((center|baseline|stretch)|(start|end))$/,(e=>{let[t,,o,n]=e;const c=n?"flex-"+n:o;return".".concat(t," { align-self: ").concat(c," }")})),E(/^(-)?order-(\d+)$/,(e=>{let[t,o,n]=e;if(b(o+n))return;const c=o?-n:n;return".".concat(t," { order: ").concat(c," }")})),E(/^shadow-(\d+)$/,(e=>{let[t,o]=e;const n=(e,t,o,n,c)=>"".concat(e,"px ").concat(t,"px ").concat(o,"px ").concat(n,"px ").concat(c),c=e=>Math.round(o*e),r=n(0,c(.35),c(3.5),c(.25),"rgba(0, 0, 0, 0.08)"),a=n(0,c(1),c(1.4),c(-.5),"rgba(0, 0, 0, 0.09)"),l=n(0,c(.5),c(.6),c(-.3),"rgba(0, 0, 0, 0.14)"),i="0"===o?"none":"".concat(r,", ").concat(a,", ").concat(l);if(!(o>24))return".".concat(t," { box-shadow: ").concat(i," }")})),E(/^([fb]g)-(black|white|([\w-]+\d+))(\/(\d+))?$/,(e=>{let[t,o,n,,,c]=e;const r=y(o),a=C(n,c);if(r&&a)return".".concat(t.replace(/\//,"\\/")," { ").concat(r,": ").concat(a," }")})),E(/^b-(black|white|([\w-]+\d+))(\/(\d+))?$/,(e=>{let[t,o,,,n]=e;const c=C(o,n);if(c)return".".concat(t.replace(/\//,"\\/")," { border-color: ").concat(c," }")}));const L=e=>z(e,v),A=e=>z(e,w),z=(e,t)=>{if(!e||!t)return;"object"==typeof e&&(e="baseVal"in e?e.baseVal:"");let o=!1;e.split(" ").forEach((e=>{if(!e||N.includes(e))return;const n=k.find((t=>t.className===e));if(n)t===v&&n.count++,t===w&&n.count--,n.count<0&&(n.count=1,o=!0);else if(t===v){const{style:t,proc:o}=(e=>{let t="",o=null;return $.forEach(((n,c)=>{const r=j(n,e);if(r)return t=g(r),void(o=c)})),{style:t,proc:o}})(e);t?k.push({className:e,style:t,proc:o,count:1}):N.push(e)}})),o&&console.warn("Observation anomaly detected. Some nodes were unmounted more than they were mounted.")},R=["hover","active","focus","focus-within"],O=[...R,"every","odd","even","first","last","dark"];var T;"function"==typeof(T=(e,t)=>{let{pattern:o,fn:n,options:{reverseBreakpoint:c}}=e;const r=t.split(":"),a=r.pop().match(o);if(!a)return!1;const l=Object.keys(u().breakpoints);let i=c?"max-width":"min-width",s=!1,d=!1,p="",f="";if(r.forEach((e=>{if(!O.includes(e)&&!l.includes(e))return A(t),d=!0,!1;var o,n;s||(o=e,s=(null===(n=u().breakpoints)||void 0===n?void 0:n[o])||!1),R.includes(e)&&(f+=":"+e)})),d)return!1;if(p=n(a,r),!p)return!1;if(r.length){const e=r.join("\\:");p=p.replace(/(.*?)\s*(\{.*?\})/gms,".".concat(e,"\\:$1$2")).replace(/:\s*\./gms,":")}if(r.forEach((e=>{"every"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > * $2")),"odd"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :nth-child(odd) $2")),"even"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :nth-child(even) $2")),"first"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :first-child $2")),"last"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :last-child $2"))})),r.includes("dark")&&(p=".dark ".concat(p)),f&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1".concat(f,"$2"))),r.includes("hover")){const e=p.replace(/:hover\{/g,":active{");p="@media (hover: hover) and (pointer: fine) { ".concat(p," }")+e}return s&&(c&&s--,p="@media screen and (".concat(i,": ").concat(s,"px) { ").concat(p," }")),p})&&(j=T);const U=["head","meta","title","link","script","noscript","style","br","path","g"],B=e=>U.includes(e.nodeName.toLowerCase())||1!==e.nodeType,F=e=>I(e,v),H=e=>I(e,w),I=(e,t)=>{if(B(e)||!t)return;const o=t===w?A:L;if("svg"===e.nodeName)o(e.className);else{o(q(e))}},q=e=>{const t=e.outerHTML.matchAll(/class=["'`](.*?)["'`]/gm),o=[];return Array.from(t).forEach((e=>o.push(e[1]))),o.join(" ")};const D=document.createDocumentFragment(),V=document.createDocumentFragment(),P=document.querySelector("head"),G=document.createElement("style"),Y=document.createElement("style"),J=document.createElement("link"),K=document.createElement("link"),Q=e=>!!e.isConnected&&P.removeChild(e),W=e=>e?"data:text/css;base64,"+btoa(e):"";J.rel=K.rel="stylesheet";const X=()=>{const{useStyleNode:e,skipRemUnits:t,debug:o}=u();let n=M()||"",c=!1;if(t||(n=n.replace(/(\d*\.?\d+)px/g,((e,t)=>m(t)))),e)G.innerHTML!==n&&(G.innerHTML=n,c=!0);else{const e=W(n);J.href!==e&&(J.href=e,c=!0)}if(c){(()=>{const{useStyleNode:e,skipResetStyles:t,skipRemUnits:o,debug:n}=u();let c;if(t?(Q(K),Q(Y)):c||(c=g(":root{line-height:1.4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;}*,:before,:after{box-sizing:border-box;outline:none;-webkit-user-drag:none;touch-action:pan-x pan-y;}body{margin:0;max-width:100vw;overscroll-behavior:none;}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;}h1,h2,h3,h4,h5,h6,p{margin:0;font:inherit;}small{font-size:85%;}a{color:inherit;text-decoration:none;}button{font:inherit;line-height:1;cursor:pointer;background-color:inherit;border:0;color:inherit;padding:0;}img,svg{display:block;max-width:100%;height:auto;border:none;}input,textarea,select{font:inherit;font-size:16px;border:0;border-radius:0;background-clip:padding-box;color:inherit;background-color:transparent;}textarea{resize:none;}::placeholder{font-size:14px;}label{display:block;}fieldset{border:1px solid;}ul,ol{margin:0;padding:0;list-style-type:none;}hr{height:0;border:0;border-bottom-width:1px;border-style:solid;color:inherit;}table{border-spacing:0;border-collapse:collapse;}th{font-weight:inherit;}iframe{border:0;}menu{margin:0;padding:0;}form,figure,pre,blockquote,dl,dd{margin:0;}address{font:inherit;}"),o&&(c=c.replace(/(\d*\.?\d+)px/g,((e,t)=>m(t))))),e){if(Q(D),t||Y.isConnected||(Y.innerHTML!==c&&(Y.innerHTML=c),V.appendChild(Y),n&&console.log("Append StyleNode (reset)")),G.isConnected||(V.appendChild(G),n&&console.log("Append StyleNode (main)")),!V.isConnected){const e=P.querySelector("style");e?P.insertBefore(V,e):P.appendChild(D)}}else{if(Q(V),!t&&!K.isConnected){const e=W(c);(K.href=e)&&(K.href=e),D.appendChild(K),n&&console.log("Append LinkNode (reset)")}if(J.isConnected||(D.appendChild(J),n&&console.log("Append LinkNode (main)")),!D.isConnected){const e=P.querySelector("link[rel=stylesheet]")||P.querySelector("style");e?P.insertBefore(D,e):P.appendChild(D)}}})();const{duration:e}=performance.measure("mutation","mutation-start","mutation-end");o&&Z(e)}},Z=e=>{const t=k.filter((e=>e.count>0)).length,o=Math.round(10*e)/10;console.log("Processed (main)",t,"rules in",o,"ms")},_=e=>new Promise(((t,o)=>{try{t(e())}catch(e){o(e)}})),ee=(e,t)=>Promise.all([...e].map((async e=>{await _((()=>t(e)))}))),te=e=>{performance.mark("mutation-start"),p(window.nextcssConfig),ee(e,(async e=>{if(!B(e.target)){var t,o;if("childList"===e.type)null!==(t=e.addedNodes)&&void 0!==t&&t.length&&await ee(e.addedNodes,F).then((()=>X())).catch((e=>console.error(e))),null!==(o=e.removedNodes)&&void 0!==o&&o.length&&await ee(e.removedNodes,H).catch((e=>console.error(e)));"attributes"===e.type&&"class"===e.attributeName&&e.target.className!==e.oldValue&&await _((()=>(A(e.oldValue),L(e.target.className),!0))).then((()=>"HTML"!==e.target.nodeName&&X())).catch((e=>console.error(e)))}})),performance.mark("mutation-end")},oe=()=>{const e=new MutationObserver(te),t=document.body;te([{type:"childList",addedNodes:[t],target:t}]),e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"],attributeOldValue:!0,characterData:!1})};document&&document.body?oe():(()=>{const e=new MutationObserver((t=>{t.forEach((t=>{var o;null===(o=t.addedNodes)||void 0===o||o.forEach((t=>{"BODY"===t.nodeName&&(oe(),e.disconnect())}))}))}));e.observe(document.documentElement,{childList:!0,characterData:!1})})()}();
!function(){"use strict";const e=/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,o=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,n=n=>{const c=n?.match(e)||n?.match(t)||n?.match(o);return c?.slice(1).map(((e,t)=>{const o=parseInt(e.padStart(2,e),16);return 3===t?Math.round(o/255*100):o}))},c=e=>((e,t,o)=>Math.min(Math.max(t,e),o))(Math.round(e),0,255),r=(e,t=0)=>{const o=n(e),r=t/100;return o?.forEach(((e,t,o)=>{t>=3||(o[t]=c(r<0?e+(255-e)*Math.abs(r):e-e*r))})),(e=>{if(Array.isArray(e)&&[3,4].includes(e.length))return"#"+e.map(((e,t)=>(3===t?Math.round(e/100*255):e).toString(16).padStart(2,"0"))).join("")})(o)},a=[-90,-85,-74,-62,-50,-40,-30,-20,-10,0,10,20,30,40,50,60,70,80,85],l=e=>{const t={black:"#000000",white:"#ffffff"};return Object.keys(e).forEach((o=>{const n=(e=>a.reduce(((t,o,n)=>{const c=r(e,o);return t[50*n+50]=c,t}),{}))(e[o]);Object.keys(n).forEach((e=>{const c="".concat(o,"-").concat(e);t[c]=n[e]}))})),t},i={material:l({red:"#f44336",pink:"#e91e63",purple:"#9c27b0","deep-purple":"#673ab7",indigo:"#3f51b5",blue:"#2196f3","light-blue":"#03a9f4",cyan:"#00bcd4",teal:"#009688",green:"#4caf50","light-green":"#8bc34a",lime:"#cddc39",yellow:"#ffeb3b",amber:"#ffc107",orange:"#ff9800","deep-orange":"#ff5722",brown:"#795548",grey:"#9e9e9e","dark-grey":"#575757","blue-grey":"#607d8b"}),tailwind:l({slate:"#64748b",grey:"#6b7280",zinc:"#71717a",neutral:"#737373",stone:"#78716c",red:"#ef4444",orange:"#f97316",amber:"#f59e0b",yellow:"#eab308",lime:"#84cc16",green:"#22c55e",emerald:"#10b981",teal:"#14b8a6",cyan:"#06b6d4",sky:"#0ea5e9",blue:"#3b82f6",indigo:"#6366f1",violet:"#8b5cf6",purple:"#a855f7",fuchsia:"#d946ef",pink:"#ec4899",rose:"#f43f5e"})},s={merged:!1,debug:!1,verbose:!1,content:[],css:[],watch:!1,useStyleNode:!1,skipResetStyles:!1,skipRemUnits:!1,palette:"material",breakpoints:{sm:390,md:768,lg:1024,xl:1400},conatiners:{xs:480,sm:640,md:768,lg:1024,xl:1280}},d={...s},u=()=>({...d}),p=e=>{if(!d.merged&&"object"==typeof e){for(let t in e)t in s&&(d[t]=e[t]);const t=d.palette,o=d.debug;"object"==typeof(null==e?void 0:e.colors)&&(o&&console.log("Merge color palette...",{palette:t,colors:e.colors}),((e,t)=>{const o=l(t);Object.keys(o).forEach((t=>{i[e][t]=o[t]}))})(t,e.colors)),d.merged=!0,o&&console.log("Config merged",d)}return d},f=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare,m=e=>Math.round(parseFloat(e)/16*1e4)/1e4+"rem",h=(e,t)=>("-"===e?e+t:t)||"",b=e=>{const t=null==e?void 0:e.toString(),o=/^-?\d+\/\d+$/.test(e);return!(!e||o)&&("-"===t[0]&&(isNaN(t)||0===Math.abs(t)))},g=e=>e.replace(/\s+/gm," ").replace(/\s*({|}|:|;|>)\s*/gm,"$1").replace(/\(\s(.*?)\s\)/gm,"($1)").replace(";}","}").replace(/([:\s])(-?0[\w]+)/gm,"$10").trim(),y=e=>({w:"width",h:"height",p:"padding",m:"margin",b:"border",r:"border-radius",fg:"color",bg:"background-color"}[e]||""),x=e=>({t:"-top",r:"-right",b:"-bottom",l:"-left"}[e]||""),v="SAVE",w="CLEAN",$=[],k=[],N=[],S={reverseBreakpoint:!1},E=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;e instanceof RegExp&&"function"==typeof t&&(o&&"object"==typeof o)?$.push({pattern:e,fn:t,options:{...S,...o}}):console.error("Declared register is not correct!",{pattern:e,fn:t,options:o})};let j=(e,t)=>{let{pattern:o,fn:n,options:c}=e;const r=t.match(o);return!!r&&n(r)};const M=()=>{const e=k.sort(((e,t)=>e.proc-t.proc||f(e.className,t.className))).filter((e=>e.count)).map((e=>e.style&&e.style.split("|"))).flat();return(e=>{const t=[],o=[];e.forEach(((n,c)=>{/:hover\{/.test(n)&&(t.push(n),delete e[c]),/:active\{/.test(n)&&(o.push(n),delete e[c])})),t.concat(o).forEach((t=>e.push(t)))})(e),(e=>{let t={},o=[];e.forEach(((o,n)=>{const c=o.match(/(@media.*?){(.*?})}/);if(c){var r;const[,o,a]=c;(r=t)[o]||(r[o]=[]),t[o].push(a),delete e[n]}})),Object.entries(t).forEach((e=>{let[t,n]=e;return o.push("".concat(t,"{").concat(n.join(""),"}"))})),o.sort(f).forEach((t=>e.push(t))),t=o=[]})(e),e.filter((e=>e)).join("")},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{palette:o}=u(),c=i[o][e]||"";if(t&&7===c.length){const[e,o,r]=n(c);return"rgba(".concat(e," ").concat(o," ").concat(r," / ").concat(t,"%)")}return c};E(/^hidden$/,(e=>{let[t]=e;return".".concat(t," { display: none }")})),E(/^(block|flex|inline|inline-block|inline-flex|table|inline-table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row-group|table-row|flow-root|grid|inline-grid|contents|list-item)$/,(e=>{let[t,o]=e;return".".concat(t," { display: ").concat(o," }")})),E(/^(static|relative|absolute|fixed|sticky)$/,(e=>{let[t,o]=e;return".".concat(t," { position: ").concat(o," }")})),E(/^(box)-(border|content)$/,(e=>{let[t,o,n]=e;return".".concat(t," { box-sizing: ").concat(n,"-").concat(o," }")})),E(/^(float|clear)-(left|right|both|none)$/,(e=>{let[t,o,n]=e;if("float"!==o||"both"!==n)return".".concat(t," { ").concat(o,": ").concat(n," }")})),E(/^container(-auto)?-(\w+)$/,(e=>{let[t,o,n]=e;const c=(r=n,null===(a=u().conatiners)||void 0===a?void 0:a[r]);var r,a;if(!c)return;const l=o?"margin-left: auto; margin-right: auto":"";return".".concat(t," { width: 100%; max-width: ").concat(c,"px; ").concat(l," }")})),E(/^(-)?(top|right|bottom|left)-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=isNaN(c)?c:a+"px",i=r?"calc( ".concat(a,"*100% )"):l;return".".concat(t.replace(/\//,"\\/")," { ").concat(n,": ").concat(i," }")})),E(/^(-)?inset-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c]=e;const r=h(o,n);if(b(r))return;const a=isNaN(n)?n:r+"px",l=c?"calc( ".concat(r,"*100% )"):a;return".".concat(t.replace(/\//,"\\/")," { top: ").concat(l,"; right: ").concat(l,"; bottom: ").concat(l,"; left: ").concat(l,"}")})),E(/^(-)?inset-([xy])-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=isNaN(c)?c:a+"px",i=r?"calc( ".concat(a,"*100% )"):l,s="x"===n?"left":"top",d="x"===n?"right":"bottom";return".".concat(t.replace(/\//,"\\/")," { ").concat(s,": ").concat(i,"; ").concat(d,": ").concat(i," }")})),E(/^(-)?z-(auto|\d+)$/,(e=>{let[t,o,n]=e;const c=h(o,n);if(!b(c))return".".concat(t," { z-index: ").concat(c," }")})),E(/^(ratio|aspect)-(auto|square|video|\d+\/\d+)$/,(e=>{let[t,o,n]=e;const c={auto:"auto",square:"1/1",video:"16/9"}[n]||n;return".".concat(t.replace(/\//,"\\/")," { aspect-ratio: ").concat(c," }")})),E(/^(fit|object)-(contain|cover|fill|scale-down|none)$/,(e=>{let[t,o,n]=e;return".".concat(t," { object-fit: ").concat(n," }")})),E(/^object-(center|top|right|bottom|left)$/,(e=>{let[t,o]=e;return".".concat(t," { object-position: ").concat(o," }")})),E(/^(of|overflow)(-[xy])?-(auto|hidden|scroll|visible)$/,(e=>{let[t,o,n,c]=e;const r=n||"";return".".concat(t," { overflow").concat(r,": ").concat(c," }")})),E(/^(of|overflow)(-[xy])?-(overlay)$/,(e=>{let[t,o,n,c]=e;const r=n||"";return".".concat(t," { overflow").concat(r,": auto; overflow").concat(r,": ").concat(c," }")})),E(/^(os|overscroll)(-[xy])?-(auto|contain|none)$/,(e=>{let[t,o,n,c]=e;const r=n||"";return".".concat(t," { overscroll-behavior").concat(r,": ").concat(c," }")})),E(/^(p[trbl]?|r)-(\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c]=e;const r=isNaN(n)?n:n+"px",a=c?"calc( ".concat(n,"*100% )"):r,l=y(o[0]),i=x(o[1]);return".".concat(t.replace(/\//,"\\/")," { ").concat(l).concat(i,": ").concat(a," }")})),E(/^(-)?(m[trbl]?)-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=y(n[0]),i=x(n[1]),s=isNaN(c)?c:a+"px",d=r?"calc( ".concat(a,"*100% )"):s;return".".concat(t.replace(/\//,"\\/")," { ").concat(l).concat(i,": ").concat(d," }")})),E(/^(-)?([pm][xy])-(auto|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a=h(o,c);if(b(a))return;const l=y(n[0]),i=isNaN(c)?c:a+"px",s=r?"calc( ".concat(a,"*100% )"):i,d="y"===n[1]?"top":"left",u="y"===n[1]?"bottom":"right";return"auto"!==c||"margin"===l?".".concat(t.replace(/\//,"\\/")," { ").concat(l,"-").concat(d,": ").concat(s,"; ").concat(l,"-").concat(u,": ").concat(s," }"):void 0})),E(/^(-)?(s|space-)([xy])-(\d+)(-reverse)?$/,(e=>{let[t,o,n,c,r,a]=e;if(b(o+r))return;const l=o?-r:r,i="x"===c?a?"right":"left":a?"bottom":"top";return".".concat(t," > :not(:first-child) { margin-").concat(i,": ").concat(l,"px }")})),E(/^flex-gap-(\d+)$/,(e=>{let[t,o]=e;const n=o/2;return".".concat(t," { margin: -").concat(n,"px } .").concat(t," > * { padding: ").concat(n,"px }")})),E(/^(min-|max-)?([wh])-(auto|full|screen|min|max|\d+|(\d+\/\d+))$/,(e=>{let[t,o,n,c,r]=e;const a={auto:"max-"===o?"none":"auto",full:"100%",screen:"h"===n?"100vh":"100vw",min:"min-content",max:"max-content"},l=o||"",i=isNaN(c)?a[c]||c:c+"px",s=r?"calc( ".concat(c,"*100% )"):i,d=y(n);return".".concat(t.replace(/\//,"\\/")," { ").concat(l+d,": ").concat(s," }")})),E(/^font-(sans|serif|mono)$/,(e=>{let[t,o]=e;const n={sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}[o]||"";return".".concat(t," { font-family: ").concat(n," }")})),E(/^fs-(\d+)$/,(e=>{let[t,o]=e;return".".concat(t," { font-size: ").concat(o,"px }")})),E(/^fw-([1-9]00|bold|bolder|ligher|normal)$/,(e=>{let[t,o]=e;return".".concat(t," { font-weight: ").concat(o," }")})),E(/^lh-([\d.]+)$/,(e=>{let[t,o]=e;return".".concat(t.replace(/\./,"\\.")," { line-height: ").concat(o," }")})),E(/^text-(left|center|right|justify)$/,(e=>{let[t,o]=e;return".".concat(t," { text-align: ").concat(o," }")})),E(/^(uppercase|lowercase|capitalize|no-transform)$/,(e=>{let[t,o]=e;const n="no-transform"===o?"none":o;return".".concat(t," { text-transform: ").concat(n," }")})),E(/^(underline|overline|line-through|no-decoration)$/,(e=>{let[t,o]=e;const n="no-decoration"===o?"none":o;return".".concat(t," { text-decoration: ").concat(n," }")})),E(/^text-trim(-all)?$/,(e=>{let[t,o]=e;const n=o?"":">";return".".concat(t,", .").concat(t," ").concat(n," * { min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden }")})),E(/^pointer-(none|auto|all)$/,(e=>{let[t,o]=e;return".".concat(t," { pointer-events: ").concat(o," }")})),E(/^cursor-(pointer|default|auto)$/,(e=>{let[t,o]=e;return".".concat(t," { cursor: ").concat(o," }")})),E(/^show$/,(e=>{let[t]=e;return".".concat(t," { display: none !important }")}),{reverseBreakpoint:!0}),E(/^hide$/,(e=>{let[t]=e;return".".concat(t," { display: none !important }")})),E(/^fit$/,(e=>{let[t]=e;return".".concat(t," { width: 100%; height: 100% }")})),E(/^fit-([wh])$/,(e=>{let[t,o]=e;const n=y(o);return".".concat(t," { ").concat(n,": 100% }")})),E(/^(b[trbl]?)-(\d+)$/,(e=>{let[t,o,n]=e;const c=y(o[0]),r=x(o[1]);return".".concat(t," { ").concat(c).concat(r,"-width: ").concat(n,"px; ").concat(c).concat(r,"-style: solid }")})),E(/^(b[trbl]?)-(solid|dashed|dotted|double|groove|inset|none|outset|ridge)$/,(e=>{let[t,o,n]=e;const c=y(o[0]),r=x(o[1]);return".".concat(t," { ").concat(c).concat(r,"-style: ").concat(n," }")})),E(/^b-(collapse|separate)$/,(e=>{let[t,o]=e;return".".concat(t," { border-collapse: ").concat(o," }")})),E(/^flex-(wrap|wrap-reverse|nowrap)$/,(e=>{let[t,o]=e;return".".concat(t," { flex-wrap: ").concat(o," }")})),E(/^flex-(row|row-reverse|col|col-reverse)$/,(e=>{let[t,o]=e;return".".concat(t," { flex-direction: ").concat(o.replace("col","column")," }")})),E(/^flex-(auto|[01])$/,(e=>{let[t,o]=e;const n="auto"===o?"1 1 auto":"0"===o?"0 0 auto":"1 1 0%";return".".concat(t," { flex: ").concat(n," }")})),E(/^flex-(grow|shrink)-([01])$/,(e=>{let[t,o,n]=e;return".".concat(t," { flex-").concat(o,": ").concat(n," }")})),E(/^justify-((center)|(start|end)|(around|between|evenly))$/,(e=>{let[t,,o,n,c]=e;const r=c?"space-"+c:n?"flex-"+n:o;return".".concat(t," { justify-content: ").concat(r," }")})),E(/^align-((center|baseline|stretch)|(start|end))$/,(e=>{let[t,,o,n]=e;const c=n?"flex-"+n:o;return".".concat(t," { align-items: ").concat(c," }")})),E(/^align-self-((center|baseline|stretch)|(start|end))$/,(e=>{let[t,,o,n]=e;const c=n?"flex-"+n:o;return".".concat(t," { align-self: ").concat(c," }")})),E(/^(-)?order-(\d+)$/,(e=>{let[t,o,n]=e;if(b(o+n))return;const c=o?-n:n;return".".concat(t," { order: ").concat(c," }")})),E(/^shadow-(\d+)$/,(e=>{let[t,o]=e;const n=(e,t,o,n,c)=>"".concat(e,"px ").concat(t,"px ").concat(o,"px ").concat(n,"px ").concat(c),c=e=>Math.round(o*e),r=n(0,c(.35),c(3.5),c(.25),"rgba(0, 0, 0, 0.08)"),a=n(0,c(1),c(1.4),c(-.5),"rgba(0, 0, 0, 0.09)"),l=n(0,c(.5),c(.6),c(-.3),"rgba(0, 0, 0, 0.14)"),i="0"===o?"none":"".concat(r,", ").concat(a,", ").concat(l);if(!(o>24))return".".concat(t," { box-shadow: ").concat(i," }")})),E(/^([fb]g)-(black|white|([\w-]+\d+))(\/(\d+))?$/,(e=>{let[t,o,n,,,c]=e;const r=y(o),a=C(n,c);if(r&&a)return".".concat(t.replace(/\//,"\\/")," { ").concat(r,": ").concat(a," }")})),E(/^b-(black|white|([\w-]+\d+))(\/(\d+))?$/,(e=>{let[t,o,,,n]=e;const c=C(o,n);if(c)return".".concat(t.replace(/\//,"\\/")," { border-color: ").concat(c," }")}));const L=e=>z(e,v),A=e=>z(e,w),z=(e,t)=>{if(!e||!t)return;"object"==typeof e&&(e="baseVal"in e?e.baseVal:"");let o=!1;e.split(" ").forEach((e=>{if(!e||N.includes(e))return;const n=k.find((t=>t.className===e));if(n)t===v&&n.count++,t===w&&n.count--,n.count<0&&(n.count=1,o=!0);else if(t===v){const{style:t,proc:o}=(e=>{let t="",o=null;return $.forEach(((n,c)=>{const r=j(n,e);if(r)return t=g(r),void(o=c)})),{style:t,proc:o}})(e);t?k.push({className:e,style:t,proc:o,count:1}):N.push(e)}})),o&&console.warn("Observation anomaly detected. Some nodes were unmounted more than they were mounted.")},R=["hover","active","focus","focus-within"],O=[...R,"every","odd","even","first","last","dark"];var T;"function"==typeof(T=(e,t)=>{let{pattern:o,fn:n,options:{reverseBreakpoint:c}}=e;const r=t.split(":"),a=r.pop().match(o);if(!a)return!1;const l=Object.keys(u().breakpoints);let i=c?"max-width":"min-width",s=!1,d=!1,p="",f="";if(r.forEach((e=>{if(!O.includes(e)&&!l.includes(e))return A(t),d=!0,!1;var o,n;s||(o=e,s=(null===(n=u().breakpoints)||void 0===n?void 0:n[o])||!1),R.includes(e)&&(f+=":"+e)})),d)return!1;if(p=n(a,r),!p)return!1;if(r.length){const e=r.join("\\:");p=p.replace(/(.*?)\s*(\{.*?\})/gms,".".concat(e,"\\:$1$2")).replace(/:\s*\./gms,":")}if(r.forEach((e=>{"every"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > * $2")),"odd"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :nth-child(odd) $2")),"even"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :nth-child(even) $2")),"first"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :first-child $2")),"last"===e&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1 > :last-child $2"))})),r.includes("dark")&&(p=".dark ".concat(p)),f&&(p=p.replace(/(.*?)\s*(\{.*?\})/gms,"$1".concat(f,"$2"))),r.includes("hover")){const e=p.replace(/:hover\{/g,":active{");p="@media (hover: hover) and (pointer: fine) { ".concat(p," }|")+e}return s&&(c&&s--,p="@media screen and (".concat(i,": ").concat(s,"px) { ").concat(p," }")),p})&&(j=T);const U=["head","meta","title","link","script","noscript","style","br","path","g"],B=e=>U.includes(e.nodeName.toLowerCase())||1!==e.nodeType,F=e=>I(e,v),H=e=>I(e,w),I=(e,t)=>{if(B(e)||!t)return;const o=t===w?A:L;if("svg"===e.nodeName)o(e.className);else{o(q(e))}},q=e=>{const t=e.outerHTML.matchAll(/class=["'`](.*?)["'`]/gm),o=[];return Array.from(t).forEach((e=>o.push(e[1]))),o.join(" ")};const D=document.createDocumentFragment(),V=document.createDocumentFragment(),P=document.querySelector("head"),G=document.createElement("style"),Y=document.createElement("style"),J=document.createElement("link"),K=document.createElement("link"),Q=e=>!!e.isConnected&&P.removeChild(e),W=e=>e?"data:text/css;base64,"+btoa(e):"";J.rel=K.rel="stylesheet";const X=()=>{const{useStyleNode:e,skipRemUnits:t,debug:o}=u();let n=M()||"",c=!1;if(t||(n=n.replace(/(\d*\.?\d+)px/g,((e,t)=>m(t)))),e)G.innerHTML!==n&&(G.innerHTML=n,c=!0);else{const e=W(n);J.href!==e&&(J.href=e,c=!0)}if(c){(()=>{const{useStyleNode:e,skipResetStyles:t,skipRemUnits:o,debug:n}=u();let c;if(t?(Q(K),Q(Y)):c||(c=g(":root{line-height:1.4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;}*,:before,:after{box-sizing:border-box;outline:none;-webkit-user-drag:none;touch-action:pan-x pan-y;}body{margin:0;max-width:100vw;overscroll-behavior:none;}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;}h1,h2,h3,h4,h5,h6,p{margin:0;font:inherit;}small{font-size:85%;}a{color:inherit;text-decoration:none;}button{font:inherit;line-height:1;cursor:pointer;background-color:inherit;border:0;color:inherit;padding:0;}img,svg{display:block;max-width:100%;height:auto;border:none;}input,textarea,select{font:inherit;font-size:16px;border:0;border-radius:0;background-clip:padding-box;color:inherit;background-color:transparent;}textarea{resize:none;}::placeholder{font-size:14px;}label{display:block;}fieldset{border:1px solid;}ul,ol{margin:0;padding:0;list-style-type:none;}hr{height:0;border:0;border-bottom-width:1px;border-style:solid;color:inherit;}table{border-spacing:0;border-collapse:collapse;}th{font-weight:inherit;}iframe{border:0;}menu{margin:0;padding:0;}form,figure,pre,blockquote,dl,dd{margin:0;}address{font:inherit;}"),o&&(c=c.replace(/(\d*\.?\d+)px/g,((e,t)=>m(t))))),e){if(Q(D),t||Y.isConnected||(Y.innerHTML!==c&&(Y.innerHTML=c),V.appendChild(Y),n&&console.log("Append StyleNode (reset)")),G.isConnected||(V.appendChild(G),n&&console.log("Append StyleNode (main)")),!V.isConnected){const e=P.querySelector("style");e?P.insertBefore(V,e):P.appendChild(V)}}else{if(Q(V),!t&&!K.isConnected){const e=W(c);(K.href=e)&&(K.href=e),D.appendChild(K),n&&console.log("Append LinkNode (reset)")}if(J.isConnected||(D.appendChild(J),n&&console.log("Append LinkNode (main)")),!D.isConnected){const e=P.querySelector("link[rel=stylesheet]")||P.querySelector("style");e?P.insertBefore(D,e):P.appendChild(D)}}})();const{duration:e}=performance.measure("mutation","mutation-start","mutation-end");o&&Z(e)}},Z=e=>{const t=k.filter((e=>e.count>0)).length,o=Math.round(10*e)/10;console.log("Processed (main)",t,"rules in",o,"ms")},_=e=>new Promise(((t,o)=>{try{t(e())}catch(e){o(e)}})),ee=(e,t)=>Promise.all([...e].map((async e=>{await _((()=>t(e)))}))),te=e=>{performance.mark("mutation-start"),p(window.nextcssConfig),ee(e,(async e=>{if(!B(e.target)){var t,o;if("childList"===e.type)null!==(t=e.addedNodes)&&void 0!==t&&t.length&&await ee(e.addedNodes,F).then((()=>X())).catch((e=>console.error(e))),null!==(o=e.removedNodes)&&void 0!==o&&o.length&&await ee(e.removedNodes,H).catch((e=>console.error(e)));"attributes"===e.type&&"class"===e.attributeName&&e.target.className!==e.oldValue&&await _((()=>(A(e.oldValue),L(e.target.className),!0))).then((()=>"HTML"!==e.target.nodeName&&X())).catch((e=>console.error(e)))}})),performance.mark("mutation-end")},oe=()=>{const e=new MutationObserver(te),t=document.body;te([{type:"childList",addedNodes:[t],target:t}]),e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"],attributeOldValue:!0,characterData:!1})};document&&document.body?oe():(()=>{const e=new MutationObserver((t=>{t.forEach((t=>{var o;null===(o=t.addedNodes)||void 0===o||o.forEach((t=>{"BODY"===t.nodeName&&(oe(),e.disconnect())}))}))}));e.observe(document.documentElement,{childList:!0,characterData:!1})})()}();
{
"name": "@nextcss/nextcss",
"version": "0.4.5",
"version": "0.4.6",
"description": "Testing",

@@ -5,0 +5,0 @@ "license": "MIT",

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

Sorry, the diff of this file is not supported yet

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc