@tailwindcss/language-server 0.14.17 → 0.14.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1773,7 +1773,7 @@ video {
|
|
1773
1773
|
${n.stack}`:""}`}else return typeof e=="string"?e:e.toString()}function _X(e,t,n=!0){return t?`${e}: ${LDe(t,n)}`:e}function Nk(e,t,n="Tailwind CSS"){console.error(_X(n,t))}function mX(e,t="Tailwind CSS",n){e.sendNotification("@/tailwindCSS/warn",{message:_X(t,n,!1)})}function II(e){this.name="SilentError",this.message=e,this.stack=new Error().stack}II.prototype=new Error;var Ra=Er(require("node:path")),Th=Er(require("node:fs")),Mb=Er(vI()),W0e=Er(qp());var jH=Er(require("node:module"));var YI={"@tailwindcss/aspect-ratio":{module:qk(),version:UX().version},"@tailwindcss/container-queries":{module:WX(),version:VX().version},"@tailwindcss/forms":{module:iN(),version:oZ().version},"@tailwindcss/line-clamp":{module:sN(),version:cZ().version},"@tailwindcss/typography":{module:p9(),version:sJ().version}};var V9={...YI,"tailwindcss/colors":wI(),"tailwindcss/defaultConfig":lJ(),"tailwindcss/defaultTheme":Jk(),"tailwindcss/resolveConfig":W9(),"tailwindcss/plugin":Lf()},D_=class{constructor(t,n=i=>i){this.cache={};this.deps=[];this._unhooked=!1;this._origRequire=jH.default.prototype.require;if(typeof jH.default._resolveFilename!="function")throw new Error(`Error: Expected Module._resolveFilename to be a function (was: ${typeof jH.default._resolveFilename}) - aborting!`);let i=this,o={};this._require=jH.default.prototype.require=function(r){if(i._unhooked)return i._origRequire.apply(this,arguments);let l;if(V9.hasOwnProperty(r))try{l=jH.default._resolveFilename(r,this)}catch{return V9[r].module||V9[r]}else l=jH.default._resolveFilename(r,this);if(i.cache.hasOwnProperty(l))return i.cache[l];let s=o[l];s||(o[l]=!0);let u=i._origRequire.apply(this,arguments);return l!==t||s?u:(delete o[l],i.cache.hasOwnProperty(l)||(i.cache[l]=u,i.cache[l]=n(u)),i.cache[l])}}unhook(){this._unhooked=!0,this._require===jH.default.prototype.require&&(jH.default.prototype.require=this._origRequire)}};var hQ=Er(pQ()),_Q=Er(fQ());function vn(e,t){return e.startsWith("0.0.0-insiders")?!0:(0,hQ.default)(e,t)}function UH(e,t){return e.startsWith("0.0.0-insiders")?!1:(0,_Q.default)(e,t)}var vu=Er(Ko());function Ul(e,t,n){t.split&&(t=t.split("."));for(var i=0,o=t.length,r=e,l,s;i<o&&(s=""+t[i++],!(s==="__proto__"||s==="constructor"||s==="prototype"));)r=r[s]=i===o?n:typeof(l=r[s])==typeof t?l:t[i]*0!==0||~(""+t[i]).indexOf(".")?{}:[]}var V0e=Er(kQ()),K0e=Er(NQ());var k2=Er(AS());var jY=Er(Ko());function k3e(e){return e.type==="atrule"}function N3e(e){if(e.length===0)return null;let t=k2.default.selector({value:""});for(let n=0;n<e.length;n++)t.append(e[n]);return String(t).trim()}function R3e(e){let t=[],{nodes:n}=(0,k2.default)().astSync(e);for(let i=0;i<n.length;i++){let o=n[i];if(o.type!=="selector")continue;let r=[];for(let l=0;l<o.nodes.length;l++){let s=o.nodes[l],u=[];if(s.type==="class"){let H=o.nodes[l+1];for(;H&&H.type==="pseudo";)u.push(H),l++,H=o.nodes[l+1];t.push({className:s.value.trim(),scope:N3e(r),__rule:l===o.nodes.length-1,__pseudo:u.map(String)})}r.push(s,...u)}}return t}async function $3e(e){let t={},n={},i;return e.walk(o=>{if(o.type==="comment"){let a=o.text.trim().match(/^__tw_intellisense_layer_([a-z]+)__$/);if(a===null)return;i=a[1],o.remove();return}if(o.type!=="rule")return;let r=o,l=R3e(r.selector),s={};r.walkDecls(a=>{s[a.prop]?s[a.prop]=[...Array.isArray(s[a.prop])?s[a.prop]:[s[a.prop]],a.value]:s[a.prop]=a.value});let u=r,H=[];for(;u.parent.type!=="root";)u=u.parent,k3e(u)&&H.push(`@${u.name} ${u.params}`);for(let a=0;a<l.length;a++){let c=H.concat([]),p=l[a].className.split(/__TWSEP__.*?__TWSEP__/),d=p.slice(0,p.length-1),h=[],m=(0,jY.default)(t,[...p,"__info"]);typeof m<"u"&&(Array.isArray(m)?h.push(m.length):(Ul(t,[...p,"__info"],[m]),h.push(1))),l[a].__rule&&(Ul(t,[...p,"__info",...h,"__rule"],!0),B3e(t,[...p,"__info",...h],s)),Ul(t,[...p,"__info",...h,"__source"],i),Ul(t,[...p,"__info",...h,"__pseudo"],l[a].__pseudo),Ul(t,[...p,"__info",...h,"__scope"],l[a].scope),Ul(t,[...p,"__info",...h,"__context"],c.concat([]).reverse()),c.push(...l[a].__pseudo.map(g=>`&${g}`));for(let g=0;g<d.length;g++)typeof n[d[g]]>"u"?n[d[g]]=c:n[d[g]]=M3e(n[d[g]],c)}}),{classNames:t,context:n}}function M3e(e,t){return e.filter(n=>t.indexOf(n)!==-1)}function B3e(e,t,n){let i=Object.keys(n);for(let o=0;o<i.length;o++)Ul(e,[...t,i[o]],n[i[o]])}var UY=$3e;function qY(e,t,n){typeof n.value=="object"&&(n.value=Qp(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function Qp(e){if(typeof e!="object")return e;var t=0,n,i,o,r=Object.prototype.toString.call(e);if(r==="[object Object]"?o=Object.create(e.__proto__||null):r==="[object Array]"?o=Array(e.length):r==="[object Set]"?(o=new Set,e.forEach(function(l){o.add(Qp(l))})):r==="[object Map]"?(o=new Map,e.forEach(function(l,s){o.set(Qp(s),Qp(l))})):r==="[object Date]"?o=new Date(+e):r==="[object RegExp]"?o=new RegExp(e.source,e.flags):r==="[object DataView]"?o=new e.constructor(Qp(e.buffer)):r==="[object ArrayBuffer]"?o=e.slice(0):r.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)qY(o,i[t],Object.getOwnPropertyDescriptor(e,i[t]));for(t=0,i=Object.getOwnPropertyNames(e);t<i.length;t++)Object.hasOwnProperty.call(o,n=i[t])&&o[n]===e[n]||qY(o,n,Object.getOwnPropertyDescriptor(e,n))}return o||e}function Ja(e){return Object.prototype.toString.call(e)==="[object Object]"}function yc(e){let t={};for(let n in e)n.substr(0,2)!=="__"&&(Ja(e[n])?t[n]=yc(e[n]):t[n]=e[n]);return t}var fie=Er(Ko()),hie=Er(VY());var _ie=Er(QY());var e0=Er(vS());var ed=class extends Error{sourceStart;sourceEnd;parserState;constructor(t,n,i,o){super(t),this.name="ParseError",this.sourceStart=n,this.sourceEnd=i,this.parserState=o}},Xu=class extends ed{token;constructor(t,n,i,o,r){super(t,n,i,o),this.token=r}},KH={UnexpectedNewLineInString:"Unexpected newline while consuming a string token.",UnexpectedEOFInString:"Unexpected EOF while consuming a string token.",UnexpectedEOFInComment:"Unexpected EOF while consuming a comment.",UnexpectedEOFInURL:"Unexpected EOF while consuming a url token.",UnexpectedEOFInEscapedCodePoint:"Unexpected EOF while consuming an escaped code point.",UnexpectedCharacterInURL:"Unexpected character while consuming a url token.",InvalidEscapeSequenceInURL:"Invalid escape sequence while consuming a url token.",InvalidEscapeSequenceAfterBackslash:'Invalid escape sequence after "\\"'},rTt=typeof globalThis<"u"&&"structuredClone"in globalThis;function ti(...e){let t="";for(let n=0;n<e.length;n++)t+=e[n][1];return t}var M_=13,Go=45,B_=10,O_=43,$_=65533;function z3e(e){return e.source.codePointAt(e.cursor)===60&&e.source.codePointAt(e.cursor+1)===33&&e.source.codePointAt(e.cursor+2)===Go&&e.source.codePointAt(e.cursor+3)===Go}function gc(e){return e>=48&&e<=57}function J3e(e){return e>=65&&e<=90}function Q3e(e){return e>=97&&e<=122}function Rf(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function Y3e(e){return Q3e(e)||J3e(e)}function F_(e){return Y3e(e)||eFe(e)||e===95}function G2(e){return F_(e)||gc(e)||e===Go}function eFe(e){return e===183||e===8204||e===8205||e===8255||e===8256||e===8204||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||e===0||!!j_(e)||e>=65536}function xS(e){return e===B_||e===M_||e===12}function $f(e){return e===32||e===B_||e===9||e===M_||e===12}function j_(e){return e>=55296&&e<=57343}function U_(e){return e.source.codePointAt(e.cursor)===92&&!xS(e.source.codePointAt(e.cursor+1)??-1)}function DS(e,t){return t.source.codePointAt(t.cursor)===Go?t.source.codePointAt(t.cursor+1)===Go||!!F_(t.source.codePointAt(t.cursor+1)??-1)||t.source.codePointAt(t.cursor+1)===92&&!xS(t.source.codePointAt(t.cursor+2)??-1):!!F_(t.source.codePointAt(t.cursor)??-1)||U_(t)}function pee(e){return e.source.codePointAt(e.cursor)===O_||e.source.codePointAt(e.cursor)===Go?!!gc(e.source.codePointAt(e.cursor+1)??-1)||e.source.codePointAt(e.cursor+1)===46&&gc(e.source.codePointAt(e.cursor+2)??-1):e.source.codePointAt(e.cursor)===46?gc(e.source.codePointAt(e.cursor+1)??-1):gc(e.source.codePointAt(e.cursor)??-1)}function tFe(e){return e.source.codePointAt(e.cursor)===47&&e.source.codePointAt(e.cursor+1)===42}function rFe(e){return e.source.codePointAt(e.cursor)===Go&&e.source.codePointAt(e.cursor+1)===Go&&e.source.codePointAt(e.cursor+2)===62}var Rt,Pn,PS;function dee(e){switch(e){case Rt.OpenParen:return Rt.CloseParen;case Rt.CloseParen:return Rt.OpenParen;case Rt.OpenCurly:return Rt.CloseCurly;case Rt.CloseCurly:return Rt.OpenCurly;case Rt.OpenSquare:return Rt.CloseSquare;case Rt.CloseSquare:return Rt.OpenSquare;default:return null}}function fee(e){switch(e[0]){case Rt.OpenParen:return[Rt.CloseParen,")",-1,-1,void 0];case Rt.CloseParen:return[Rt.OpenParen,"(",-1,-1,void 0];case Rt.OpenCurly:return[Rt.CloseCurly,"}",-1,-1,void 0];case Rt.CloseCurly:return[Rt.OpenCurly,"{",-1,-1,void 0];case Rt.OpenSquare:return[Rt.CloseSquare,"]",-1,-1,void 0];case Rt.CloseSquare:return[Rt.OpenSquare,"[",-1,-1,void 0];default:return null}}function nFe(e,t){for(t.advanceCodePoint(2);;){let n=t.readCodePoint();if(n===void 0){let i=[Rt.Comment,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Xu(KH.UnexpectedEOFInComment,t.representationStart,t.representationEnd,["4.3.2. Consume comments","Unexpected EOF"],i)),i}if(n===42&&t.source.codePointAt(t.cursor)!==void 0&&t.source.codePointAt(t.cursor)===47){t.advanceCodePoint();break}}return[Rt.Comment,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0]}function wS(e,t){let n=t.readCodePoint();if(n===void 0)return e.onParseError(new ed(KH.UnexpectedEOFInEscapedCodePoint,t.representationStart,t.representationEnd,["4.3.7. Consume an escaped code point","Unexpected EOF"])),$_;if(Rf(n)){let i=[n],o;for(;(o=t.source.codePointAt(t.cursor))!==void 0&&Rf(o)&&i.length<6;)i.push(o),t.advanceCodePoint();$f(t.source.codePointAt(t.cursor)??-1)&&(t.source.codePointAt(t.cursor)===M_&&t.source.codePointAt(t.cursor+1)===B_&&t.advanceCodePoint(),t.advanceCodePoint());let r=parseInt(String.fromCodePoint(...i),16);return r===0||j_(r)||r>1114111?$_:r}return n===0||j_(n)?$_:n}function kS(e,t){let n=[];for(;;){let i=t.source.codePointAt(t.cursor)??-1;if(i===0||j_(i))n.push($_),t.advanceCodePoint(+(i>65535)+1);else if(G2(i))n.push(i),t.advanceCodePoint(+(i>65535)+1);else{if(!U_(t))return n;t.advanceCodePoint(),n.push(wS(e,t))}}}function iFe(e,t){t.advanceCodePoint();let n=t.source.codePointAt(t.cursor);if(n!==void 0&&(G2(n)||U_(t))){let i=PS.Unrestricted;DS(0,t)&&(i=PS.ID);let o=kS(e,t);return[Rt.Hash,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...o),type:i}]}return[Rt.Delim,"#",t.representationStart,t.representationEnd,{value:"#"}]}function sFe(e,t){let n=Pn.Integer;for(t.source.codePointAt(t.cursor)!==O_&&t.source.codePointAt(t.cursor)!==Go||t.advanceCodePoint();gc(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();if(t.source.codePointAt(t.cursor)===46&&gc(t.source.codePointAt(t.cursor+1)??-1))for(t.advanceCodePoint(2),n=Pn.Number;gc(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();if(t.source.codePointAt(t.cursor)===101||t.source.codePointAt(t.cursor)===69){if(gc(t.source.codePointAt(t.cursor+1)??-1))t.advanceCodePoint(2);else{if(t.source.codePointAt(t.cursor+1)!==Go&&t.source.codePointAt(t.cursor+1)!==O_||!gc(t.source.codePointAt(t.cursor+2)??-1))return n;t.advanceCodePoint(3)}for(n=Pn.Number;gc(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint()}return n}function q2(e,t){let n;{let r=t.source.codePointAt(t.cursor);r===Go?n="-":r===O_&&(n="+")}let i=sFe(0,t),o=parseFloat(t.source.slice(t.representationStart,t.representationEnd+1));if(DS(0,t)){let r=kS(e,t);return[Rt.Dimension,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:o,signCharacter:n,type:i,unit:String.fromCodePoint(...r)}]}return t.source.codePointAt(t.cursor)===37?(t.advanceCodePoint(),[Rt.Percentage,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:o,signCharacter:n}]):[Rt.Number,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:o,signCharacter:n,type:i}]}function aFe(e){for(;$f(e.source.codePointAt(e.cursor)??-1);)e.advanceCodePoint();return[Rt.Whitespace,e.source.slice(e.representationStart,e.representationEnd+1),e.representationStart,e.representationEnd,void 0]}(function(e){e.Comment="comment",e.AtKeyword="at-keyword-token",e.BadString="bad-string-token",e.BadURL="bad-url-token",e.CDC="CDC-token",e.CDO="CDO-token",e.Colon="colon-token",e.Comma="comma-token",e.Delim="delim-token",e.Dimension="dimension-token",e.EOF="EOF-token",e.Function="function-token",e.Hash="hash-token",e.Ident="ident-token",e.Number="number-token",e.Percentage="percentage-token",e.Semicolon="semicolon-token",e.String="string-token",e.URL="url-token",e.Whitespace="whitespace-token",e.OpenParen="(-token",e.CloseParen=")-token",e.OpenSquare="[-token",e.CloseSquare="]-token",e.OpenCurly="{-token",e.CloseCurly="}-token",e.UnicodeRange="unicode-range-token"})(Rt||(Rt={})),function(e){e.Integer="integer",e.Number="number"}(Pn||(Pn={})),function(e){e.Unrestricted="unrestricted",e.ID="id"}(PS||(PS={}));var K2=class{cursor=0;source="";representationStart=0;representationEnd=-1;constructor(t){this.source=t}advanceCodePoint(t=1){this.cursor=this.cursor+t,this.representationEnd=this.cursor-1}readCodePoint(){let t=this.source.codePointAt(this.cursor);if(t!==void 0)return this.cursor=this.cursor+1,this.representationEnd=this.cursor-1,t}unreadCodePoint(t=1){this.cursor=this.cursor-t,this.representationEnd=this.cursor-1}resetRepresentation(){this.representationStart=this.cursor,this.representationEnd=-1}};function oFe(e,t){let n="",i=t.readCodePoint();for(;;){let o=t.readCodePoint();if(o===void 0){let r=[Rt.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n}];return e.onParseError(new Xu(KH.UnexpectedEOFInString,t.representationStart,t.representationEnd,["4.3.5. Consume a string token","Unexpected EOF"],r)),r}if(xS(o)){t.unreadCodePoint();let r=[Rt.BadString,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Xu(KH.UnexpectedNewLineInString,t.representationStart,t.source.codePointAt(t.cursor)===M_&&t.source.codePointAt(t.cursor+1)===B_?t.representationEnd+2:t.representationEnd+1,["4.3.5. Consume a string token","Unexpected newline"],r)),r}if(o===i)return[Rt.String,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n}];if(o!==92)o===0||j_(o)?n+=String.fromCodePoint($_):n+=String.fromCodePoint(o);else{if(t.source.codePointAt(t.cursor)===void 0)continue;if(xS(t.source.codePointAt(t.cursor)??-1)){t.source.codePointAt(t.cursor)===M_&&t.source.codePointAt(t.cursor+1)===B_&&t.advanceCodePoint(),t.advanceCodePoint();continue}n+=String.fromCodePoint(wS(e,t))}}}function lFe(e){return!(e.length!==3||e[0]!==117&&e[0]!==85||e[1]!==114&&e[1]!==82||e[2]!==108&&e[2]!==76)}function W2(e,t){for(;;){let n=t.source.codePointAt(t.cursor);if(n===void 0)return;if(n===41)return void t.advanceCodePoint();U_(t)?(t.advanceCodePoint(),wS(e,t)):t.advanceCodePoint()}}function cFe(e,t){for(;$f(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();let n="";for(;;){if(t.source.codePointAt(t.cursor)===void 0){let r=[Rt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n}];return e.onParseError(new Xu(KH.UnexpectedEOFInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Unexpected EOF"],r)),r}if(t.source.codePointAt(t.cursor)===41)return t.advanceCodePoint(),[Rt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n}];if($f(t.source.codePointAt(t.cursor)??-1)){for(t.advanceCodePoint();$f(t.source.codePointAt(t.cursor)??-1);)t.advanceCodePoint();if(t.source.codePointAt(t.cursor)===void 0){let r=[Rt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n}];return e.onParseError(new Xu(KH.UnexpectedEOFInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","Consume as much whitespace as possible","Unexpected EOF"],r)),r}return t.source.codePointAt(t.cursor)===41?(t.advanceCodePoint(),[Rt.URL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:n}]):(W2(e,t),[Rt.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0])}let o=t.source.codePointAt(t.cursor);if(o===34||o===39||o===40||(i=o??-1)===11||i===127||0<=i&&i<=8||14<=i&&i<=31){W2(e,t);let r=[Rt.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Xu(KH.UnexpectedCharacterInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token",`Unexpected U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('), U+0028 LEFT PARENTHESIS (() or non-printable code point`],r)),r}if(o===92){if(U_(t)){t.advanceCodePoint(),n+=String.fromCodePoint(wS(e,t));continue}W2(e,t);let r=[Rt.BadURL,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,void 0];return e.onParseError(new Xu(KH.InvalidEscapeSequenceInURL,t.representationStart,t.representationEnd,["4.3.6. Consume a url token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"],r)),r}t.source.codePointAt(t.cursor)===0||j_(t.source.codePointAt(t.cursor)??-1)?(n+=String.fromCodePoint($_),t.advanceCodePoint()):(n+=t.source[t.cursor],t.advanceCodePoint())}var i}function V2(e,t){let n=kS(e,t);if(t.source.codePointAt(t.cursor)!==40)return[Rt.Ident,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...n)}];if(lFe(n)){t.advanceCodePoint();let i=0;for(;;){let o=$f(t.source.codePointAt(t.cursor)??-1),r=$f(t.source.codePointAt(t.cursor+1)??-1);if(o&&r){i+=1,t.advanceCodePoint(1);continue}let l=o?t.source.codePointAt(t.cursor+1):t.source.codePointAt(t.cursor);if(l===34||l===39)return i>0&&t.unreadCodePoint(i),[Rt.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...n)}];break}return cFe(e,t)}return t.advanceCodePoint(),[Rt.Function,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{value:String.fromCodePoint(...n)}]}function uFe(e){return!(e.source.codePointAt(e.cursor)!==117&&e.source.codePointAt(e.cursor)!==85||e.source.codePointAt(e.cursor+1)!==O_||e.source.codePointAt(e.cursor+2)!==63&&!Rf(e.source.codePointAt(e.cursor+2)??-1))}function HFe(e,t){t.advanceCodePoint(2);let n=[],i=[],o;for(;(o=t.source.codePointAt(t.cursor))!==void 0&&n.length<6&&Rf(o);)n.push(o),t.advanceCodePoint();for(;(o=t.source.codePointAt(t.cursor))!==void 0&&n.length<6&&o===63;)i.length===0&&i.push(...n),n.push(48),i.push(70),t.advanceCodePoint();if(!i.length&&t.source.codePointAt(t.cursor)===Go&&Rf(t.source.codePointAt(t.cursor+1)??-1))for(t.advanceCodePoint();(o=t.source.codePointAt(t.cursor))!==void 0&&i.length<6&&Rf(o);)i.push(o),t.advanceCodePoint();if(!i.length){let s=parseInt(String.fromCodePoint(...n),16);return[Rt.UnicodeRange,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{startOfRange:s,endOfRange:s}]}let r=parseInt(String.fromCodePoint(...n),16),l=parseInt(String.fromCodePoint(...i),16);return[Rt.UnicodeRange,t.source.slice(t.representationStart,t.representationEnd+1),t.representationStart,t.representationEnd,{startOfRange:r,endOfRange:l}]}function X2(e,t){let n=U1(e,t),i=[];for(;!n.endOfFile();)i.push(n.nextToken());return i.push(n.nextToken()),i}function U1(e,t){let n=e.css.valueOf(),i=e.unicodeRangesAllowed??!1,o=new K2(n),r={onParseError:t?.onParseError??pFe};return{nextToken:function(){o.resetRepresentation();let s=o.source.codePointAt(o.cursor);if(s===void 0)return[Rt.EOF,"",-1,-1,void 0];if(s===47&&tFe(o))return nFe(r,o);if(i&&(s===117||s===85)&&uFe(o))return HFe(0,o);if(F_(s))return V2(r,o);if(gc(s))return q2(r,o);switch(s){case 44:return o.advanceCodePoint(),[Rt.Comma,",",o.representationStart,o.representationEnd,void 0];case 58:return o.advanceCodePoint(),[Rt.Colon,":",o.representationStart,o.representationEnd,void 0];case 59:return o.advanceCodePoint(),[Rt.Semicolon,";",o.representationStart,o.representationEnd,void 0];case 40:return o.advanceCodePoint(),[Rt.OpenParen,"(",o.representationStart,o.representationEnd,void 0];case 41:return o.advanceCodePoint(),[Rt.CloseParen,")",o.representationStart,o.representationEnd,void 0];case 91:return o.advanceCodePoint(),[Rt.OpenSquare,"[",o.representationStart,o.representationEnd,void 0];case 93:return o.advanceCodePoint(),[Rt.CloseSquare,"]",o.representationStart,o.representationEnd,void 0];case 123:return o.advanceCodePoint(),[Rt.OpenCurly,"{",o.representationStart,o.representationEnd,void 0];case 125:return o.advanceCodePoint(),[Rt.CloseCurly,"}",o.representationStart,o.representationEnd,void 0];case 39:case 34:return oFe(r,o);case 35:return iFe(r,o);case O_:case 46:return pee(o)?q2(r,o):(o.advanceCodePoint(),[Rt.Delim,o.source[o.representationStart],o.representationStart,o.representationEnd,{value:o.source[o.representationStart]}]);case B_:case M_:case 12:case 9:case 32:return aFe(o);case Go:return pee(o)?q2(r,o):rFe(o)?(o.advanceCodePoint(3),[Rt.CDC,"-->",o.representationStart,o.representationEnd,void 0]):DS(0,o)?V2(r,o):(o.advanceCodePoint(),[Rt.Delim,"-",o.representationStart,o.representationEnd,{value:"-"}]);case 60:return z3e(o)?(o.advanceCodePoint(4),[Rt.CDO,"<!--",o.representationStart,o.representationEnd,void 0]):(o.advanceCodePoint(),[Rt.Delim,"<",o.representationStart,o.representationEnd,{value:"<"}]);case 64:if(o.advanceCodePoint(),DS(0,o)){let u=kS(r,o);return[Rt.AtKeyword,o.source.slice(o.representationStart,o.representationEnd+1),o.representationStart,o.representationEnd,{value:String.fromCodePoint(...u)}]}return[Rt.Delim,"@",o.representationStart,o.representationEnd,{value:"@"}];case 92:{if(U_(o))return V2(r,o);o.advanceCodePoint();let u=[Rt.Delim,"\\",o.representationStart,o.representationEnd,{value:"\\"}];return r.onParseError(new Xu(KH.InvalidEscapeSequenceAfterBackslash,o.representationStart,o.representationEnd,["4.3.1. Consume a token","U+005C REVERSE SOLIDUS (\\)","The input stream does not start with a valid escape sequence"],u)),u}}return o.advanceCodePoint(),[Rt.Delim,o.source[o.representationStart],o.representationStart,o.representationEnd,{value:o.source[o.representationStart]}]},endOfFile:function(){return o.source.codePointAt(o.cursor)===void 0}}}function pFe(){}function Z2(e,t){let n=[];for(let s of t)n.push(s.codePointAt(0));let i=dFe(n);i[0]===101&&CS(i,0,i[0]);let o=String.fromCodePoint(...i),r=e[4].signCharacter==="+"?e[4].signCharacter:"",l=e[4].value.toString();e[1]=`${r}${l}${o}`,e[4].unit=t}function dFe(e){let t=0;e[0]===Go&&e[1]===Go?t=2:e[0]===Go&&e[1]?(t=2,F_(e[1])||(t+=CS(e,1,e[1]))):F_(e[0])?t=1:(t=1,t+=CS(e,0,e[0]));for(let n=t;n<e.length;n++)G2(e[n])||(n+=CS(e,n,e[n]));return e}function CS(e,t,n){let i=n.toString(16),o=[];for(let l of i)o.push(l.codePointAt(0));let r=e[t+1];return t===e.length-1||r&&Rf(r)?(e.splice(t,1,92,...o,32),1+o.length):(e.splice(t,1,92,...o),o.length)}var fFe=Object.values(Rt);function q1(e){return!!Array.isArray(e)&&!(e.length<4)&&!!fFe.includes(e[0])&&typeof e[1]=="string"&&typeof e[2]=="number"&&typeof e[3]=="number"}function io(e){if(!e)return!1;switch(e[0]){case Rt.Dimension:case Rt.Number:case Rt.Percentage:return!0;default:return!1}}function z2(e){if(!e)return!1;switch(e[0]){case Rt.Whitespace:case Rt.Comment:return!0;default:return!1}}function GH(e){return!!e&&e[0]===Rt.Comma}function J2(e){return!!e&&e[0]===Rt.Comment}function Q2(e){return!!e&&e[0]===Rt.Delim}function Ta(e){return!!e&&e[0]===Rt.Dimension}function su(e){return!!e&&e[0]===Rt.EOF}function hee(e){return!!e&&e[0]===Rt.Function}function q_(e){return!!e&&e[0]===Rt.Ident}function ms(e){return!!e&&e[0]===Rt.Number}function so(e){return!!e&&e[0]===Rt.Percentage}function NS(e){return!!e&&e[0]===Rt.Whitespace}function RS(e){return!!e&&e[0]===Rt.OpenParen}function _ee(e){return!!e&&e[0]===Rt.CloseParen}function mee(e){return!!e&&e[0]===Rt.OpenSquare}function Eee(e){return!!e&&e[0]===Rt.OpenCurly}var Ei;function yee(e){let t=e.slice();return(n,i,o)=>{let r=-1;for(let l=t.indexOf(i);l<t.length&&(r=n.indexOf(t[l]),r===-1||r<o);l++);return r===-1||r===o&&i===n[o]&&(r++,r>=n.length)?-1:(t=n.slice(),r)}}function MS(e,t){let n=t[0];if(RS(n)||Eee(n)||mee(n)){let i=_Fe(e,t);return{advance:i.advance,node:i.node}}if(hee(n)){let i=hFe(e,t);return{advance:i.advance,node:i.node}}if(NS(n)){let i=gee(e,t);return{advance:i.advance,node:i.node}}if(J2(n)){let i=mFe(e,t);return{advance:i.advance,node:i.node}}return{advance:1,node:new qn(n)}}(function(e){e.Function="function",e.SimpleBlock="simple-block",e.Whitespace="whitespace",e.Comment="comment",e.Token="token"})(Ei||(Ei={}));var $S=class{value=[];indexOf(t){return this.value.indexOf(t)}at(t){if(typeof t=="number")return t<0&&(t=this.value.length+t),this.value[t]}forEach(t,n){if(this.value.length===0)return;let i=yee(this.value),o=0;for(;o<this.value.length;){let r=this.value[o],l;if(n&&(l={...n}),t({node:r,parent:this,state:l},o)===!1)return!1;if(o=i(this.value,r,o),o===-1)break}}walk(t,n){this.value.length!==0&&this.forEach((i,o)=>t(i,o)!==!1&&(!("walk"in i.node)||!this.value.includes(i.node)||i.node.walk(t,i.state)!==!1)&&void 0,n)}},ll=class e extends $S{type=Ei.Function;name;endToken;constructor(t,n,i){super(),this.name=t,this.endToken=n,this.value=i}getName(){return this.name[4].value}normalize(){su(this.endToken)&&(this.endToken=[Rt.CloseParen,")",-1,-1,void 0])}tokens(){return su(this.endToken)?[this.name,...this.value.flatMap(t=>t.tokens())]:[this.name,...this.value.flatMap(t=>t.tokens()),this.endToken]}toString(){let t=this.value.map(n=>q1(n)?ti(n):n.toString()).join("");return ti(this.name)+t+ti(this.endToken)}toJSON(){return{type:this.type,name:this.getName(),tokens:this.tokens(),value:this.value.map(t=>t.toJSON())}}isFunctionNode(){return e.isFunctionNode(this)}static isFunctionNode(t){return!!t&&t instanceof e&&t.type===Ei.Function}};function hFe(e,t){let n=[],i=1;for(;;){let o=t[i];if(!o||su(o))return e.onParseError(new ed("Unexpected EOF while consuming a function.",t[0][2],t[t.length-1][3],["5.4.9. Consume a function","Unexpected EOF"])),{advance:t.length,node:new ll(t[0],o,n)};if(_ee(o))return{advance:i+1,node:new ll(t[0],o,n)};if(z2(o)){let l=bee(e,t.slice(i));i+=l.advance,n.push(...l.nodes);continue}let r=MS(e,t.slice(i));i+=r.advance,n.push(r.node)}}var W1=class e extends $S{type=Ei.SimpleBlock;startToken;endToken;constructor(t,n,i){super(),this.startToken=t,this.endToken=n,this.value=i}normalize(){if(su(this.endToken)){let t=fee(this.startToken);t&&(this.endToken=t)}}tokens(){return su(this.endToken)?[this.startToken,...this.value.flatMap(t=>t.tokens())]:[this.startToken,...this.value.flatMap(t=>t.tokens()),this.endToken]}toString(){let t=this.value.map(n=>q1(n)?ti(n):n.toString()).join("");return ti(this.startToken)+t+ti(this.endToken)}toJSON(){return{type:this.type,startToken:this.startToken,tokens:this.tokens(),value:this.value.map(t=>t.toJSON())}}isSimpleBlockNode(){return e.isSimpleBlockNode(this)}static isSimpleBlockNode(t){return!!t&&t instanceof e&&t.type===Ei.SimpleBlock}};function _Fe(e,t){let n=dee(t[0][0]);if(!n)throw new Error("Failed to parse, a mirror variant must exist for all block open tokens.");let i=[],o=1;for(;;){let r=t[o];if(!r||su(r))return e.onParseError(new ed("Unexpected EOF while consuming a simple block.",t[0][2],t[t.length-1][3],["5.4.8. Consume a simple block","Unexpected EOF"])),{advance:t.length,node:new W1(t[0],r,i)};if(r[0]===n)return{advance:o+1,node:new W1(t[0],r,i)};if(z2(r)){let s=bee(e,t.slice(o));o+=s.advance,i.push(...s.nodes);continue}let l=MS(e,t.slice(o));o+=l.advance,i.push(l.node)}}var ql=class e{type=Ei.Whitespace;value;constructor(t){this.value=t}tokens(){return this.value}toString(){return ti(...this.value)}toJSON(){return{type:this.type,tokens:this.tokens()}}isWhitespaceNode(){return e.isWhitespaceNode(this)}static isWhitespaceNode(t){return!!t&&t instanceof e&&t.type===Ei.Whitespace}};function gee(e,t){let n=0;for(;;){let i=t[n];if(!NS(i))return{advance:n,node:new ql(t.slice(0,n))};n++}}var V1=class e{type=Ei.Comment;value;constructor(t){this.value=t}tokens(){return[this.value]}toString(){return ti(this.value)}toJSON(){return{type:this.type,tokens:this.tokens()}}isCommentNode(){return e.isCommentNode(this)}static isCommentNode(t){return!!t&&t instanceof e&&t.type===Ei.Comment}};function mFe(e,t){return{advance:1,node:new V1(t[0])}}function bee(e,t){let n=[],i=0;for(;;)if(NS(t[i])){let o=gee(0,t.slice(i));i+=o.advance,n.push(o.node)}else{if(!J2(t[i]))return{advance:i,nodes:n};n.push(new V1(t[i])),i++}}var qn=class e{type=Ei.Token;value;constructor(t){this.value=t}tokens(){return[this.value]}toString(){return this.value[1]}toJSON(){return{type:this.type,tokens:this.tokens()}}isTokenNode(){return e.isTokenNode(this)}static isTokenNode(t){return!!t&&t instanceof e&&t.type===Ei.Token}};function Aee(e,t){let n={onParseError:t?.onParseError??(()=>{})},i=[...e];su(i[i.length-1])&&i.push([Rt.EOF,"",i[i.length-1][2],i[i.length-1][3],void 0]);let o=MS(n,i);if(su(i[Math.min(o.advance,i.length-1)]))return o.node;n.onParseError(new ed("Expected EOF after parsing a component value.",e[0][2],e[e.length-1][3],["5.3.9. Parse a component value","Expected EOF"]))}function Y2(e,t){let n={onParseError:t?.onParseError??(()=>{})},i=[...e];if(e.length===0)return[];su(i[i.length-1])&&i.push([Rt.EOF,"",i[i.length-1][2],i[i.length-1][3],void 0]);let o=[],r=[],l=0;for(;;){if(!i[l]||su(i[l]))return r.length&&o.push(r),o;if(GH(i[l])){o.push(r),r=[],l++;continue}let s=MS(n,e.slice(l));r.push(s.node),l+=s.advance}}function EFe(e,t,n){if(e.length===0)return;let i=yee(e),o=0;for(;o<e.length;){let r=e[o],l;if(n&&(l={...n}),t({node:r,parent:{value:e},state:l},o)===!1)return!1;if(o=i(e,r,o),o===-1)break}}function yFe(e,t,n){e.length!==0&&EFe(e,(i,o)=>t(i,o)!==!1&&(!("walk"in i.node)||!e.includes(i.node)||i.node.walk(t,i.state)!==!1)&&void 0,n)}function Iee(e,t){for(let n=0;n<e.length;n++)yFe(e[n],(i,o)=>{if(typeof o!="number")return;let r=t(i.node);r&&(Array.isArray(r)?i.parent.value.splice(o,1,...r):i.parent.value.splice(o,1,r))});return e}function XH(e){return W1.isSimpleBlockNode(e)}function Zu(e){return ll.isFunctionNode(e)}function K1(e){return ql.isWhitespaceNode(e)}function G1(e){return V1.isCommentNode(e)}function td(e){return K1(e)||G1(e)}function Bi(e){return qn.isTokenNode(e)}var ri;(function(e){e.CustomMedia="custom-media",e.GeneralEnclosed="general-enclosed",e.MediaAnd="media-and",e.MediaCondition="media-condition",e.MediaConditionListWithAnd="media-condition-list-and",e.MediaConditionListWithOr="media-condition-list-or",e.MediaFeature="media-feature",e.MediaFeatureBoolean="mf-boolean",e.MediaFeatureName="mf-name",e.MediaFeaturePlain="mf-plain",e.MediaFeatureRangeNameValue="mf-range-name-value",e.MediaFeatureRangeValueName="mf-range-value-name",e.MediaFeatureRangeValueNameValue="mf-range-value-name-value",e.MediaFeatureValue="mf-value",e.MediaInParens="media-in-parens",e.MediaNot="media-not",e.MediaOr="media-or",e.MediaQueryWithType="media-query-with-type",e.MediaQueryWithoutType="media-query-without-type",e.MediaQueryInvalid="media-query-invalid"})(ri||(ri={}));var gFe=/[A-Z]/g;function cu(e){return e.replace(gFe,t=>String.fromCharCode(t.charCodeAt(0)+32))}var au=class e{type=ri.MediaCondition;media;constructor(t){this.media=t}tokens(){return this.media.tokens()}toString(){return this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,media:this.media.toJSON()}}isMediaCondition(){return e.isMediaCondition(this)}static isMediaCondition(t){return!!t&&t instanceof e&&t.type===ri.MediaCondition}},ZH=class e{type=ri.MediaInParens;media;before;after;constructor(t,n=[],i=[]){this.media=t,this.before=n,this.after=i}tokens(){return[...this.before,...this.media.tokens(),...this.after]}toString(){return ti(...this.before)+this.media.toString()+ti(...this.after)}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&("walk"in this.media?this.media.walk(t):void 0)}toJSON(){return{type:this.type,media:this.media.toJSON(),before:this.before,after:this.after}}isMediaInParens(){return e.isMediaInParens(this)}static isMediaInParens(t){return!!t&&t instanceof e&&t.type===ri.MediaInParens}},J1=class e{type=ri.MediaQueryWithType;modifier;mediaType;and=void 0;media=void 0;constructor(t,n,i,o){this.modifier=t,this.mediaType=n,i&&o&&(this.and=i,this.media=o)}getModifier(){if(!this.modifier.length)return"";for(let t=0;t<this.modifier.length;t++){let n=this.modifier[t];if(n[0]===Rt.Ident)return n[4].value}return""}negateQuery(){let t=new e([...this.modifier],[...this.mediaType],this.and,this.media);if(t.modifier.length===0)return t.modifier=[[Rt.Ident,"not",-1,-1,{value:"not"}],[Rt.Whitespace," ",-1,-1,void 0]],t;for(let n=0;n<t.modifier.length;n++){let i=t.modifier[n];if(i[0]===Rt.Ident&&cu(i[4].value)==="not"){t.modifier.splice(n,1);break}if(i[0]===Rt.Ident&&cu(i[4].value)==="only"){i[1]="not",i[4].value="not";break}}return t}getMediaType(){if(!this.mediaType.length)return"";for(let t=0;t<this.mediaType.length;t++){let n=this.mediaType[t];if(n[0]===Rt.Ident)return n[4].value}return""}tokens(){return this.and&&this.media?[...this.modifier,...this.mediaType,...this.and,...this.media.tokens()]:[...this.modifier,...this.mediaType]}toString(){return this.and&&this.media?ti(...this.modifier)+ti(...this.mediaType)+ti(...this.and)+this.media.toString():ti(...this.modifier)+ti(...this.mediaType)}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){if(this.media)return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,string:this.toString(),modifier:this.modifier,mediaType:this.mediaType,and:this.and,media:this.media}}isMediaQueryWithType(){return e.isMediaQueryWithType(this)}static isMediaQueryWithType(t){return!!t&&t instanceof e&&t.type===ri.MediaQueryWithType}},eR=class e{type=ri.MediaQueryWithoutType;media;constructor(t){this.media=t}negateQuery(){let t=this.media;return t.media.type===ri.MediaNot?new e(new au(t.media.media)):(t.media.type===ri.MediaConditionListWithOr&&(t=new au(new ZH(t,[[Rt.Whitespace," ",0,0,void 0],[Rt.OpenParen,"(",0,0,void 0]],[[Rt.CloseParen,")",0,0,void 0]]))),new J1([[Rt.Ident,"not",0,0,{value:"not"}],[Rt.Whitespace," ",0,0,void 0]],[[Rt.Ident,"all",0,0,{value:"all"}],[Rt.Whitespace," ",0,0,void 0]],[[Rt.Ident,"and",0,0,{value:"and"}]],t))}tokens(){return this.media.tokens()}toString(){return this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,string:this.toString(),media:this.media}}isMediaQueryWithoutType(){return e.isMediaQueryWithoutType(this)}static isMediaQueryWithoutType(t){return!!t&&t instanceof e&&t.type===ri.MediaQueryWithoutType}},tR=class e{type=ri.MediaQueryInvalid;media;constructor(t){this.media=t}negateQuery(){return new e(this.media)}tokens(){return this.media.flatMap(t=>t.tokens())}toString(){return this.media.map(t=>t.toString()).join("")}walk(t){let n=!1;if(this.media.forEach((i,o)=>{n||(t({node:i,parent:this},o)!==!1?"walk"in i&&i.walk(t)===!1&&(n=!0):n=!0)}),n)return!1}toJSON(){return{type:this.type,string:this.toString(),media:this.media}}isMediaQueryInvalid(){return e.isMediaQueryInvalid(this)}static isMediaQueryInvalid(t){return!!t&&t instanceof e&&t.type===ri.MediaQueryInvalid}},BS=class e{type=ri.GeneralEnclosed;value;constructor(t){this.value=t}tokens(){return this.value.tokens()}toString(){return this.value.toString()}indexOf(t){return t===this.value?"value":-1}at(t){if(t==="value")return this.value}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return{type:this.type,tokens:this.tokens()}}isGeneralEnclosed(){return e.isGeneralEnclosed(this)}static isGeneralEnclosed(t){return!!t&&t instanceof e&&t.type===ri.GeneralEnclosed}},rR=class e{type=ri.MediaAnd;modifier;media;constructor(t,n){this.modifier=t,this.media=n}tokens(){return[...this.modifier,...this.media.tokens()]}toString(){return ti(...this.modifier)+this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){return t==="media"?this.media:null}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,modifier:this.modifier,media:this.media.toJSON()}}isMediaAnd(){return e.isMediaAnd(this)}static isMediaAnd(t){return!!t&&t instanceof e&&t.type===ri.MediaAnd}},nR=class e{type=ri.MediaConditionListWithAnd;leading;list;before;after;constructor(t,n,i=[],o=[]){this.leading=t,this.list=n,this.before=i,this.after=o}tokens(){return[...this.before,...this.leading.tokens(),...this.list.flatMap(t=>t.tokens()),...this.after]}toString(){return ti(...this.before)+this.leading.toString()+this.list.map(t=>t.toString()).join("")+ti(...this.after)}indexOf(t){return t===this.leading?"leading":t.type==="media-and"?this.list.indexOf(t):-1}at(t){return t==="leading"?this.leading:typeof t=="number"?(t<0&&(t=this.list.length+t),this.list[t]):void 0}walk(t){if(t({node:this.leading,parent:this},"leading")===!1||"walk"in this.leading&&this.leading.walk(t)===!1)return!1;let n=!1;return this.list.forEach((i,o)=>{n||(t({node:i,parent:this},o)!==!1?"walk"in i&&i.walk(t)===!1&&(n=!0):n=!0)}),!n&&void 0}toJSON(){return{type:this.type,leading:this.leading.toJSON(),list:this.list.map(t=>t.toJSON()),before:this.before,after:this.after}}isMediaConditionListWithAnd(){return e.isMediaConditionListWithAnd(this)}static isMediaConditionListWithAnd(t){return!!t&&t instanceof e&&t.type===ri.MediaConditionListWithAnd}},iR=class e{type=ri.MediaConditionListWithOr;leading;list;before;after;constructor(t,n,i=[],o=[]){this.leading=t,this.list=n,this.before=i,this.after=o}tokens(){return[...this.before,...this.leading.tokens(),...this.list.flatMap(t=>t.tokens()),...this.after]}toString(){return ti(...this.before)+this.leading.toString()+this.list.map(t=>t.toString()).join("")+ti(...this.after)}indexOf(t){return t===this.leading?"leading":t.type==="media-or"?this.list.indexOf(t):-1}at(t){return t==="leading"?this.leading:typeof t=="number"?(t<0&&(t=this.list.length+t),this.list[t]):void 0}walk(t){if(t({node:this.leading,parent:this},"leading")===!1||"walk"in this.leading&&this.leading.walk(t)===!1)return!1;let n=!1;return this.list.forEach((i,o)=>{n||(t({node:i,parent:this},o)!==!1?"walk"in i&&i.walk(t)===!1&&(n=!0):n=!0)}),!n&&void 0}toJSON(){return{type:this.type,leading:this.leading.toJSON(),list:this.list.map(t=>t.toJSON()),before:this.before,after:this.after}}isMediaConditionListWithOr(){return e.isMediaConditionListWithOr(this)}static isMediaConditionListWithOr(t){return!!t&&t instanceof e&&t.type===ri.MediaConditionListWithOr}};function Cee(e){return!!(e.type===Ei.Token&&e.value[0]===Rt.Number||e.type===Ei.Function&&bFe.has(cu(e.name[4].value)))}var bFe=new Set(["abs","acos","asin","atan","atan2","calc","clamp","cos","exp","hypot","log","max","min","mod","pow","rem","round","sign","sin","sqrt","tan"]);function AFe(e){return e.type===Ei.Token&&e.value[0]===Rt.Dimension}function Q1(e){return e.type===Ei.Token&&e.value[0]===Rt.Ident}function IFe(e){return e.type===Ei.Function&&cu(e.name[4].value)==="env"}var sR=class e{type=ri.MediaFeatureName;name;before;after;constructor(t,n=[],i=[]){this.name=t,this.before=n,this.after=i}getName(){return this.name.value[4].value}getNameToken(){return this.name.value}tokens(){return[...this.before,...this.name.tokens(),...this.after]}toString(){return ti(...this.before)+this.name.toString()+ti(...this.after)}indexOf(t){return t===this.name?"name":-1}at(t){if(t==="name")return this.name}toJSON(){return{type:this.type,name:this.getName(),tokens:this.tokens()}}isMediaFeatureName(){return e.isMediaFeatureName(this)}static isMediaFeatureName(t){return!!t&&t instanceof e&&t.type===ri.MediaFeatureName}};function Z1(e){let t=-1;for(let n=0;n<e.length;n++){let i=e[n];if(i.type!==Ei.Whitespace&&i.type!==Ei.Comment){if(!Q1(i)||t!==-1)return!1;t=n}}return t!==-1&&new sR(e[t],e.slice(0,t).flatMap(n=>n.tokens()),e.slice(t+1).flatMap(n=>n.tokens()))}var aR=class e{type=ri.MediaFeatureBoolean;name;constructor(t){this.name=t}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return this.name.tokens()}toString(){return this.name.toString()}indexOf(t){return t===this.name?"name":-1}at(t){if(t==="name")return this.name}toJSON(){return{type:this.type,name:this.name.toJSON(),tokens:this.tokens()}}isMediaFeatureBoolean(){return e.isMediaFeatureBoolean(this)}static isMediaFeatureBoolean(t){return!!t&&t instanceof e&&t.type===ri.MediaFeatureBoolean}};function SFe(e){let t=Z1(e);return t===!1?t:new aR(t)}var oR=class e{type=ri.MediaFeatureValue;value;before;after;constructor(t,n=[],i=[]){Array.isArray(t)&&t.length===1?this.value=t[0]:this.value=t,this.before=n,this.after=i}tokens(){return Array.isArray(this.value)?[...this.before,...this.value.flatMap(t=>t.tokens()),...this.after]:[...this.before,...this.value.tokens(),...this.after]}toString(){return Array.isArray(this.value)?ti(...this.before)+this.value.map(t=>t.toString()).join("")+ti(...this.after):ti(...this.before)+this.value.toString()+ti(...this.after)}indexOf(t){return t===this.value?"value":-1}at(t){if(t==="value")return this.value}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return Array.isArray(this.value)?{type:this.type,value:this.value.map(t=>t.toJSON()),tokens:this.tokens()}:{type:this.type,value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeatureValue(){return e.isMediaFeatureValue(this)}static isMediaFeatureValue(t){return!!t&&t instanceof e&&t.type===ri.MediaFeatureValue}};function X1(e){let t=-1,n=-1;for(let i=0;i<e.length;i++){let o=e[i];if(o.type!==Ei.Whitespace&&o.type!==Ei.Comment){if(t!==-1)return!1;if(Cee(o)){let r=LFe(e.slice(i));if(r!==-1){t=r[0]+i,n=r[1]+i,i+=r[1]-r[0];continue}t=i,n=i}else if(IFe(o))t=i,n=i;else if(AFe(o))t=i,n=i;else{if(!Q1(o))return!1;t=i,n=i}}}return t!==-1&&new oR(e.slice(t,n+1),e.slice(0,t).flatMap(i=>i.tokens()),e.slice(n+1).flatMap(i=>i.tokens()))}function LFe(e){let t=-1,n=-1,i=TFe(e);if(i===-1)return-1;t=i[0],n=i[1];for(let o=n+1;o<e.length;o++){let r=e[o];if(r.type!=="whitespace"&&r.type!=="comment")return-1}return[t,n]}function TFe(e){let t=-1,n=-1;for(let i=0;i<e.length;i++){let o=e[i];if(o.type!=="whitespace"&&o.type!=="comment"){if(o.type==="token"){let r=o.value;if(r[0]===Rt.Delim&&r[4].value==="/"){if(t===-1||n!==-1)return-1;n=i;continue}}if(!Cee(o))return-1;if(n!==-1)return[t,i];if(t!==-1)return-1;t=i}}return-1}var lR=class e{type=ri.MediaFeaturePlain;name;colon;value;constructor(t,n,i){this.name=t,this.colon=n,this.value=i}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.name.tokens(),this.colon,...this.value.tokens()]}toString(){return this.name.toString()+ti(this.colon)+this.value.toString()}indexOf(t){return t===this.name?"name":t===this.value?"value":-1}at(t){return t==="name"?this.name:t==="value"?this.value:void 0}walk(t){return t({node:this.value,parent:this},"value")!==!1&&this.value.walk(t)}toJSON(){return{type:this.type,name:this.name.toJSON(),value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeaturePlain(){return e.isMediaFeaturePlain(this)}static isMediaFeaturePlain(t){return!!t&&t instanceof e&&t.type===ri.MediaFeaturePlain}};function vFe(e){let t=[],n=[],i=null;for(let l=0;l<e.length;l++){let s=e[l];if(s.type===Ei.Token){let u=s.value;if(u[0]===Rt.Colon){t=e.slice(0,l),n=e.slice(l+1),i=u;break}}}if(!t.length||!n.length||!i)return!1;let o=Z1(t);if(o===!1)return!1;let r=X1(n);return r!==!1&&new lR(o,i,r)}var ou,lu,rd;function CFe(e){let t=-1;for(let n=0;n<e.length;n++){let i=e[n];if(i.type===Ei.Token){let o=i.value;if(o[0]===Rt.Delim){if(o[4].value===rd.EQ){if(t!==-1)return[t,n];t=n;continue}if(o[4].value===ou.LT){t=n;continue}if(o[4].value===lu.GT){t=n;continue}}}break}return t!==-1&&[t,t]}function V_(e){if(e.length===0||e.length>2||e[0][0]!==Rt.Delim)return!1;if(e.length===1)switch(e[0][4].value){case rd.EQ:return rd.EQ;case ou.LT:return ou.LT;case lu.GT:return lu.GT;default:return!1}if(e[1][0]!==Rt.Delim||e[1][4].value!==rd.EQ)return!1;switch(e[0][4].value){case ou.LT:return ou.LT_OR_EQ;case lu.GT:return lu.GT_OR_EQ;default:return!1}}(function(e){e.LT="<",e.LT_OR_EQ="<="})(ou||(ou={})),function(e){e.GT=">",e.GT_OR_EQ=">="}(lu||(lu={})),function(e){e.EQ="="}(rd||(rd={}));var cR=class e{type=ri.MediaFeatureRangeNameValue;name;operator;value;constructor(t,n,i){this.name=t,this.operator=n,this.value=i}operatorKind(){return V_(this.operator)}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.name.tokens(),...this.operator,...this.value.tokens()]}toString(){return this.name.toString()+ti(...this.operator)+this.value.toString()}indexOf(t){return t===this.name?"name":t===this.value?"value":-1}at(t){return t==="name"?this.name:t==="value"?this.value:void 0}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return{type:this.type,name:this.name.toJSON(),value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeatureRangeNameValue(){return e.isMediaFeatureRangeNameValue(this)}static isMediaFeatureRangeNameValue(t){return!!t&&t instanceof e&&t.type===ri.MediaFeatureRangeNameValue}},uR=class e{type=ri.MediaFeatureRangeValueName;name;operator;value;constructor(t,n,i){this.name=t,this.operator=n,this.value=i}operatorKind(){return V_(this.operator)}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.value.tokens(),...this.operator,...this.name.tokens()]}toString(){return this.value.toString()+ti(...this.operator)+this.name.toString()}indexOf(t){return t===this.name?"name":t===this.value?"value":-1}at(t){return t==="name"?this.name:t==="value"?this.value:void 0}walk(t){return t({node:this.value,parent:this},"value")!==!1&&("walk"in this.value?this.value.walk(t):void 0)}toJSON(){return{type:this.type,name:this.name.toJSON(),value:this.value.toJSON(),tokens:this.tokens()}}isMediaFeatureRangeValueName(){return e.isMediaFeatureRangeValueName(this)}static isMediaFeatureRangeValueName(t){return!!t&&t instanceof e&&t.type===ri.MediaFeatureRangeValueName}},HR=class e{type=ri.MediaFeatureRangeValueNameValue;name;valueOne;valueOneOperator;valueTwo;valueTwoOperator;constructor(t,n,i,o,r){this.name=t,this.valueOne=n,this.valueOneOperator=i,this.valueTwo=o,this.valueTwoOperator=r}valueOneOperatorKind(){return V_(this.valueOneOperator)}valueTwoOperatorKind(){return V_(this.valueTwoOperator)}getName(){return this.name.getName()}getNameToken(){return this.name.getNameToken()}tokens(){return[...this.valueOne.tokens(),...this.valueOneOperator,...this.name.tokens(),...this.valueTwoOperator,...this.valueTwo.tokens()]}toString(){return this.valueOne.toString()+ti(...this.valueOneOperator)+this.name.toString()+ti(...this.valueTwoOperator)+this.valueTwo.toString()}indexOf(t){return t===this.name?"name":t===this.valueOne?"valueOne":t===this.valueTwo?"valueTwo":-1}at(t){return t==="name"?this.name:t==="valueOne"?this.valueOne:t==="valueTwo"?this.valueTwo:void 0}walk(t){return t({node:this.valueOne,parent:this},"valueOne")!==!1&&(!("walk"in this.valueOne)||this.valueOne.walk(t)!==!1)&&t({node:this.valueTwo,parent:this},"valueTwo")!==!1&&(!("walk"in this.valueTwo)||this.valueTwo.walk(t)!==!1)&&void 0}toJSON(){return{type:this.type,name:this.name.toJSON(),valueOne:this.valueOne.toJSON(),valueTwo:this.valueTwo.toJSON(),tokens:this.tokens()}}isMediaFeatureRangeValueNameValue(){return e.isMediaFeatureRangeValueNameValue(this)}static isMediaFeatureRangeValueNameValue(t){return!!t&&t instanceof e&&t.type===ri.MediaFeatureRangeValueNameValue}};function xFe(e){let t=!1,n=!1;for(let c=0;c<e.length;c++){let p=e[c];if(p.type===Ei.Token&&p.value[0]===Rt.Delim){let d=CFe(e.slice(c));if(d!==!1){if(t!==!1){n=[d[0]+c,d[1]+c];break}t=[d[0]+c,d[1]+c],c+=d[1]}}}if(t===!1)return!1;let i=[e[t[0]].value];if(t[0]!==t[1]&&i.push(e[t[1]].value),n===!1){let c=e.slice(0,t[0]),p=e.slice(t[1]+1),d=Z1(c),h=Z1(p);if(!d&&!h)return!1;if(d&&!h||d&&See.has(cu(d.getName()))){let m=X1(p);return!!m&&new cR(d,i,m)}if(!d&&h||h&&See.has(cu(h.getName()))){let m=X1(c);return!!m&&new uR(h,i,m)}return!1}let o=[e[n[0]].value];n[0]!==n[1]&&o.push(e[n[1]].value);let r=e.slice(0,t[0]),l=e.slice(t[1]+1,n[0]),s=e.slice(n[1]+1),u=X1(r),H=Z1(l),a=X1(s);if(!u||!H||!a)return!1;{let c=V_(i);if(c===!1||c===rd.EQ)return!1;let p=V_(o);if(p===!1||p===rd.EQ||!(c!==ou.LT&&c!==ou.LT_OR_EQ||p!==lu.GT&&p!==lu.GT_OR_EQ)||!(c!==lu.GT&&c!==lu.GT_OR_EQ||p!==ou.LT&&p!==ou.LT_OR_EQ))return!1}return new HR(H,u,i,a,o)}var See=new Set(["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","dynamic-range","environment-blending","forced-colors","grid","height","horizontal-viewport-segments","hover","inverted-colors","monochrome","nav-controls","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-data","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","vertical-viewport-segments","video-color-gamut","video-dynamic-range","width"]),z1=class e{type=ri.MediaFeature;feature;before;after;constructor(t,n=[],i=[]){this.feature=t,this.before=n,this.after=i}getName(){return this.feature.getName()}getNameToken(){return this.feature.getNameToken()}tokens(){return[...this.before,...this.feature.tokens(),...this.after]}toString(){return ti(...this.before)+this.feature.toString()+ti(...this.after)}indexOf(t){return t===this.feature?"feature":-1}at(t){if(t==="feature")return this.feature}walk(t){return t({node:this.feature,parent:this},"feature")!==!1&&("walk"in this.feature?this.feature.walk(t):void 0)}toJSON(){return{type:this.type,feature:this.feature.toJSON(),before:this.before,after:this.after}}isMediaFeature(){return e.isMediaFeature(this)}static isMediaFeature(t){return!!t&&t instanceof e&&t.type===ri.MediaFeature}};function xee(e,t=[],n=[]){if(e.startToken[0]!==Rt.OpenParen)return!1;let i=SFe(e.value);if(i!==!1)return new z1(i,t,n);let o=vFe(e.value);if(o!==!1)return new z1(o,t,n);let r=xFe(e.value);return r!==!1&&new z1(r,t,n)}var pR=class e{type=ri.MediaNot;modifier;media;constructor(t,n){this.modifier=t,this.media=n}tokens(){return[...this.modifier,...this.media.tokens()]}toString(){return ti(...this.modifier)+this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,modifier:this.modifier,media:this.media.toJSON()}}isMediaNot(){return e.isMediaNot(this)}static isMediaNot(t){return!!t&&t instanceof e&&t.type===ri.MediaNot}},dR=class e{type=ri.MediaOr;modifier;media;constructor(t,n){this.modifier=t,this.media=n}tokens(){return[...this.modifier,...this.media.tokens()]}toString(){return ti(...this.modifier)+this.media.toString()}indexOf(t){return t===this.media?"media":-1}at(t){if(t==="media")return this.media}walk(t){return t({node:this.media,parent:this},"media")!==!1&&this.media.walk(t)}toJSON(){return{type:this.type,modifier:this.modifier,media:this.media.toJSON()}}isMediaOr(){return e.isMediaOr(this)}static isMediaOr(t){return!!t&&t instanceof e&&t.type===ri.MediaOr}},W_,Lee;function Tee(e){if(e[0]!==Rt.Ident)return!1;switch(cu(e[4].value)){case W_.Not:return W_.Not;case W_.Only:return W_.Only;default:return!1}}function DFe(e){{let t=fR(e);if(t!==!1)return new eR(t)}{let t=-1,n=-1,i=-1;for(let s=0;s<e.length;s++){let u=e[s];if(!K1(u)&&!G1(u)){if(Bi(u)){let H=u.value;if(t===-1&&H[0]===Rt.Ident&&Tee(H)){t=s;continue}if(n===-1&&H[0]===Rt.Ident&&!Tee(H)){n=s;continue}if(i===-1&&H[0]===Rt.Ident&&cu(H[4].value)==="and"){if(i=s,vee(e.slice(s+1))===!1)return!1;break}return!1}return!1}}let o=[],r=[];t!==-1?(o=e.slice(0,t+1).flatMap(s=>s.tokens()),n!==-1&&(r=e.slice(t+1,n+1).flatMap(s=>s.tokens()))):n!==-1&&(r=e.slice(0,n+1).flatMap(s=>s.tokens()));let l=vee(e.slice(Math.max(t,n,i)+1));return l===!1?new J1(o,[...r,...e.slice(n+1).flatMap(s=>s.tokens())]):new J1(o,r,e.slice(n+1,i+1).flatMap(s=>s.tokens()),l)}}function PFe(e){let t=!1,n=[],i=-1,o=-1;for(let r=0;r<e.length;r++){if(t){let s=wFe(e.slice(r));if(s!==!1){r+=s.advance,n.push(s.node),o=r;continue}}let l=e[r];if(l.type!==Ei.Whitespace&&l.type!==Ei.Comment){if(t||t!==!1||!XH(l)||(l.normalize(),t=Y1(l),t===!1))return!1;i=r}}return!(!t||!n.length)&&new iR(t,n,e.slice(0,i).flatMap(r=>r.tokens()),e.slice(o+1).flatMap(r=>r.tokens()))}function Dee(e){let t=!1,n=[],i=-1,o=-1;for(let r=0;r<e.length;r++){if(t){let s=kFe(e.slice(r));if(s!==!1){r+=s.advance,n.push(s.node),o=r;continue}}let l=e[r];if(l.type!==Ei.Whitespace&&l.type!==Ei.Comment){if(t||t!==!1||!XH(l)||(l.normalize(),t=Y1(l),t===!1))return!1;i=r}}return!(!t||!n.length)&&new nR(t,n,e.slice(0,i).flatMap(r=>r.tokens()),e.slice(o+1).flatMap(r=>r.tokens()))}function fR(e){let t=wee(e);if(t!==!1)return new au(t);let n=Dee(e);if(n!==!1)return new au(n);let i=PFe(e);if(i!==!1)return new au(i);let o=Pee(e);return o!==!1&&new au(o)}function vee(e){let t=wee(e);if(t!==!1)return new au(t);let n=Dee(e);if(n!==!1)return new au(n);let i=Pee(e);return i!==!1&&new au(i)}function Pee(e){let t=-1;for(let s=0;s<e.length;s++){let u=e[s];if(u.type!==Ei.Whitespace&&u.type!==Ei.Comment){if(!XH(u)||t!==-1)return!1;t=s}}if(t===-1)return!1;let n=e[t];if(n.startToken[0]!==Rt.OpenParen)return!1;n.normalize();let i=[...e.slice(0,t).flatMap(s=>s.tokens()),n.startToken],o=[n.endToken,...e.slice(t+1).flatMap(s=>s.tokens())],r=xee(n,i,o);if(r!==!1)return new ZH(r);let l=fR(n.value);return l!==!1?new ZH(l,i,o):new ZH(new BS(n),e.slice(0,t).flatMap(s=>s.tokens()),e.slice(t+1).flatMap(s=>s.tokens()))}function Y1(e){if(e.startToken[0]!==Rt.OpenParen)return!1;let t=xee(e,[e.startToken],[e.endToken]);if(t!==!1)return new ZH(t);let n=fR(e.value);return n!==!1?new ZH(n,[e.startToken],[e.endToken]):new ZH(new BS(e))}function wee(e){let t=!1,n=null;for(let i=0;i<e.length;i++){let o=e[i];if(o.type!==Ei.Whitespace&&o.type!==Ei.Comment){if(Q1(o)){if(cu(o.value[4].value)==="not"){if(t)return!1;t=!0;continue}return!1}if(!t||!XH(o))return!1;{o.normalize();let r=Y1(o);if(r===!1)return!1;n=new pR(e.slice(0,i).flatMap(l=>l.tokens()),r)}}}return n||!1}function wFe(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];if(i.type!==Ei.Whitespace&&i.type!==Ei.Comment){if(Q1(i)){if(cu(i.value[4].value)==="or"){if(t)return!1;t=!0;continue}return!1}if(t&&XH(i)){i.normalize();let o=Y1(i);return o!==!1&&{advance:n,node:new dR(e.slice(0,n).flatMap(r=>r.tokens()),o)}}return!1}}return!1}function kFe(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];if(i.type!==Ei.Whitespace&&i.type!==Ei.Comment){if(Q1(i)){if(cu(i.value[4].value)==="and"){if(t)return!1;t=!0;continue}return!1}if(t&&XH(i)){i.normalize();let o=Y1(i);return o!==!1&&{advance:n,node:new rR(e.slice(0,n).flatMap(r=>r.tokens()),o)}}return!1}}return!1}function NFe(e,t){let n=Y2(e,{onParseError:t?.onParseError});return n.map((i,o)=>{let r=DFe(i);return r==0&&t?.preserveInvalidMediaQueries===!0?new tR(n[o]):r}).filter(i=>!!i)}function kee(e,t){let n=U1({css:e},{onParseError:t?.onParseError}),i=[];for(;!n.endOfFile();)i.push(n.nextToken());return i.push(n.nextToken()),NFe(i,t)}(function(e){e.Not="not",e.Only="only"})(W_||(W_={}));(function(e){e.All="all",e.Print="print",e.Screen="screen",e.Tty="tty",e.Tv="tv",e.Projection="projection",e.Handheld="handheld",e.Braille="braille",e.Embossed="embossed",e.Aural="aural",e.Speech="speech"})(Lee||(Lee={}));function OS(e,t){if(!t[0])return e;t.sort((o,r)=>o.end-r.end||o.start-r.start);let n="",i=t[0];n+=e.slice(0,i.start),n+=i.replacement;for(let o=1;o<t.length;++o){let r=t[o];n+=e.slice(i.end,r.start),n+=r.replacement,i=r}return n+=e.slice(i.end),n}function K_(e,t){return OS(e,t.map(n=>({start:n.index,end:n.index,replacement:` /* ${n.value} */`})))}function zH(e,t,n=!0){return e.includes("rem")&&(0,e0.default)(e).walk(i=>{if(i.type!=="word")return!0;let o=e0.default.unit(i.value);if(!o||o.unit!=="rem")return!1;if(n){let l=` /* ${parseFloat(o.number)*t}px */`;return e=e.slice(0,i.sourceEndIndex)+l+e.slice(i.sourceEndIndex),!1}let r=`${parseFloat(o.number)*t}px`;return e=e.slice(0,i.sourceIndex)+r+e.slice(i.sourceEndIndex),!1}),e}function Nee(e){let t=16,n=[];try{kee(e).forEach(i=>{i.walk(({node:o})=>{Bi(o)&&o.type==="token"&&o.value[0]==="dimension-token"&&(o.value[4].type==="integer"||o.value[4].type==="number")&&(o.value[4].unit==="rem"||o.value[4].unit==="em")&&n.push({index:e.length-(e.length-o.value[3]-1),value:`${o.value[4].value*t}px`})})})}catch{}return n}function hR(e){return e.replace(/(?<=^\s*@media\s*).*?$/,t=>{let n=Nee(t);return K_(t,n)})}var Ree=Object.assign(({comments:e,rootFontSize:t})=>({postcssPlugin:"plugin",AtRule:{media(n){n.params.includes("em")&&e.push(...Nee(n.params).map(({index:i,value:o})=>({index:i+n.source.start.offset+`@media${n.raws.afterName}`.length,value:o})))}},Declaration(n){n.value.includes("rem")&&(0,e0.default)(n.value).walk(i=>{if(i.type!=="word")return!0;let o=e0.default.unit(i.value);return!o||o.unit!=="rem"||e.push({index:n.source.start.offset+`${n.prop}${n.raws.between}`.length+i.sourceEndIndex,value:`${parseFloat(o.number)*t}px`}),!1})}}),{postcss:!0});var pie=Er(vS());var RFe=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},FS=RFe;var $Fe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},$ee=$Fe;var MFe=e=>FS($ee[e.toLowerCase()],6),Mee=MFe;var BFe=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,OFe=e=>{let t;return(t=e.match(BFe))?FS(parseInt(t[1],16),t[1].length):void 0},Bee=OFe;var cl="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",TTt=`(?:${cl}|none)`,Mf=`${cl}%`,vTt=`(?:${cl}%|none)`,t0=`(?:${cl}%|${cl})`,FFe=`(?:${cl}%|${cl}|none)`,Oee=`(?:${cl}(deg|grad|rad|turn)|${cl})`,CTt=`(?:${cl}(deg|grad|rad|turn)|${cl}|none)`,nd="\\s*,\\s*";var xTt=new RegExp("^"+FFe+"$");var jFe=new RegExp(`^rgba?\\(\\s*${cl}${nd}${cl}${nd}${cl}\\s*(?:,\\s*${t0}\\s*)?\\)$`),UFe=new RegExp(`^rgba?\\(\\s*${Mf}${nd}${Mf}${nd}${Mf}\\s*(?:,\\s*${t0}\\s*)?\\)$`),qFe=e=>{let t={mode:"rgb"},n;if(n=e.match(jFe))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(UFe))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]!==void 0?t.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))),t},Fee=qFe;var WFe=(e,t)=>e===void 0?void 0:typeof e!="object"?r0(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,jS=WFe;var VFe=(e="rgb")=>t=>(t=jS(t,e))!==void 0?t.mode===e?t:uu[t.mode][e]?uu[t.mode][e](t):e==="rgb"?uu[t.mode].rgb(t):uu.rgb[e](uu[t.mode].rgb(t)):void 0,bc=VFe;var uu={},jee={},n0=[],_R={},KFe=e=>e,Yi=e=>(uu[e.mode]={...uu[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{uu[t]||(uu[t]={}),uu[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=KFe)}),jee[e.mode]=e,(e.parse||[]).forEach(t=>{GFe(t,e.mode)}),bc(e.mode)),US=e=>jee[e],GFe=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");_R[e]=t}else typeof e=="function"&&n0.indexOf(e)<0&&n0.push(e)};var mR=/[^\x00-\x7F]|[a-zA-Z_]/,XFe=/[^\x00-\x7F]|[-\w]/,br={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},$n=0;function qS(e){let t=e[$n],n=e[$n+1];return t==="-"||t==="+"?/\d/.test(n)||n==="."&&/\d/.test(e[$n+2]):t==="."?/\d/.test(n):/\d/.test(t)}function ER(e){if($n>=e.length)return!1;let t=e[$n];if(mR.test(t))return!0;if(t==="-"){if(e.length-$n<2)return!1;let n=e[$n+1];return!!(n==="-"||mR.test(n))}return!1}var ZFe={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function i0(e){let t="";if((e[$n]==="-"||e[$n]==="+")&&(t+=e[$n++]),t+=WS(e),e[$n]==="."&&/\d/.test(e[$n+1])&&(t+=e[$n++]+WS(e)),(e[$n]==="e"||e[$n]==="E")&&((e[$n+1]==="-"||e[$n+1]==="+")&&/\d/.test(e[$n+2])?t+=e[$n++]+e[$n++]+WS(e):/\d/.test(e[$n+1])&&(t+=e[$n++]+WS(e))),ER(e)){let n=VS(e);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:br.Hue,value:t*ZFe[n]}:void 0}return e[$n]==="%"?($n++,{type:br.Percentage,value:+t}):{type:br.Number,value:+t}}function WS(e){let t="";for(;/\d/.test(e[$n]);)t+=e[$n++];return t}function VS(e){let t="";for(;$n<e.length&&XFe.test(e[$n]);)t+=e[$n++];return t}function zFe(e){let t=VS(e);return e[$n]==="("?($n++,{type:br.Function,value:t}):t==="none"?{type:br.None,value:void 0}:{type:br.Ident,value:t}}function JFe(e=""){let t=e.trim(),n=[],i;for($n=0;$n<t.length;){if(i=t[$n++],i===`
|
1774
1774
|
`||i===" "||i===" "){for(;$n<t.length&&(t[$n]===`
|
1775
1775
|
`||t[$n]===" "||t[$n]===" ");)$n++;continue}if(i===",")return;if(i===")"){n.push({type:br.ParenClose});continue}if(i==="+"){if($n--,qS(t)){n.push(i0(t));continue}return}if(i==="-"){if($n--,qS(t)){n.push(i0(t));continue}if(ER(t)){n.push({type:br.Ident,value:VS(t)});continue}return}if(i==="."){if($n--,qS(t)){n.push(i0(t));continue}return}if(i==="/"){for(;$n<t.length&&(t[$n]===`
|
1776
|
-
`||t[$n]===" "||t[$n]===" ");)$n++;let o;if(qS(t)&&(o=i0(t),o.type!==br.Hue)){n.push({type:br.Alpha,value:o});continue}if(ER(t)&&VS(t)==="none"){n.push({type:br.Alpha,value:{type:br.None,value:void 0}});continue}return}if(/\d/.test(i)){$n--,n.push(i0(t));continue}if(mR.test(i)){$n--,n.push(zFe(t));continue}return}return n}function QFe(e){e._i=0;let t=e[e._i++];if(!t||t.type!==br.Function||t.value!=="color"||(t=e[e._i++],t.type!==br.Ident))return;let n=_R[t.value];if(!n)return;let i={mode:n},o=Uee(e,!1);if(!o)return;let r=US(n).channels;for(let l=0,s,u;l<r.length;l++)s=o[l],u=r[l],s.type!==br.None&&(i[u]=s.type===br.Number?s.value:s.value/100,u==="alpha"&&(i[u]=Math.max(0,Math.min(1,i[u]))));return i}function Uee(e,t){let n=[],i;for(;e._i<e.length;){if(i=e[e._i++],i.type===br.None||i.type===br.Number||i.type===br.Alpha||i.type===br.Percentage||t&&i.type===br.Hue){n.push(i);continue}if(i.type===br.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==br.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:br.None,value:void 0}),n.every(o=>o.type!==br.Alpha)?n:void 0}}function YFe(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==br.Function)return;let i=Uee(e,t);if(i)return i.unshift(n.value),i}var e8e=e=>{if(typeof e!="string")return;let t=JFe(e),n=t?YFe(t,!0):void 0,i,o=0,r=n0.length;for(;o<r;)if((i=n0[o++](e,n))!==void 0)return i;return t?QFe(t):void 0},r0=e8e;function t8e(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let n={mode:"rgb"},[,i,o,r,l]=t;if(!(i.type===br.Hue||o.type===br.Hue||r.type===br.Hue))return i.type!==br.None&&(n.r=i.type===br.Number?i.value/255:i.value/100),o.type!==br.None&&(n.g=o.type===br.Number?o.value/255:o.value/100),r.type!==br.None&&(n.b=r.type===br.Number?r.value/255:r.value/100),l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var qee=t8e;var r8e=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Wee=r8e;var Vee=(e,t,n)=>e+n*(t-e);var n8e=e=>{let t=[];for(let n=0;n<e.length-1;n++){let i=e[n],o=e[n+1];i===void 0&&o===void 0?t.push(void 0):i!==void 0&&o!==void 0?t.push([i,o]):t.push(i!==void 0?[i,i]:[o,o])}return t},Kee=e=>t=>{let n=n8e(t);return i=>{let o=i*n.length,r=i>=1?n.length-1:Math.max(Math.floor(o),0),l=n[r];return l===void 0?void 0:e(l[0],l[1],o-r)}};var Sr=Kee(Vee);var _i=e=>{let t=!1,n=e.map(i=>i!==void 0?(t=!0,i):1);return t?n:e};var i8e={mode:"rgb",channels:["r","g","b","alpha"],parse:[qee,Bee,Fee,Mee,Wee,"srgb"],serialize:"srgb",interpolate:{r:Sr,g:Sr,b:Sr,alpha:{use:Sr,fixup:_i}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ac=i8e;var yR=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),s8e=e=>{let t=yR(e.r),n=yR(e.g),i=yR(e.b),o={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*i};return e.alpha!==void 0&&(o.alpha=e.alpha),o},gR=s8e;var bR=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),a8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"a98",r:bR(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:bR(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:bR(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return i!==void 0&&(o.alpha=i),o},AR=a8e;var IR=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},o8e=({r:e,g:t,b:n,alpha:i})=>{let o={mode:"lrgb",r:IR(e),g:IR(t),b:IR(n)};return i!==void 0&&(o.alpha=i),o},Ic=o8e;var l8e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r={mode:"xyz65",x:.4123907992659593*t+.357584339383878*n+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*i};return o!==void 0&&(r.alpha=o),r},Al=l8e;var SR=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},c8e=({r:e,g:t,b:n,alpha:i},o="rgb")=>{let r={mode:o,r:SR(e),g:SR(t),b:SR(n)};return i!==void 0&&(r.alpha=i),r},Sc=c8e;var u8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Sc({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return i!==void 0&&(o.alpha=i),o},Il=u8e;var H8e={...Ac,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>AR(Al(e)),xyz65:AR},toMode:{rgb:e=>Il(gR(e)),xyz65:gR}},Gee=H8e;var p8e=e=>(e=e%360)<0?e+360:e,Ls=p8e;var d8e=(e,t)=>e.map((n,i,o)=>{if(n===void 0)return n;let r=Ls(n);return i===0||e[i-1]===void 0?r:t(r-Ls(o[i-1]))}).reduce((n,i)=>!n.length||i===void 0||n[n.length-1]===void 0?(n.push(i),n):(n.push(i+n[n.length-1]),n),[]),po=e=>d8e(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t));var Qa=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Xee=Math.PI/180,Zee=180/Math.PI;var zee=Qa[3]*Qa[4],Jee=Qa[1]*Qa[4],Qee=Qa[1]*Qa[2]-Qa[0]*Qa[3],f8e=({r:e,g:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(Qee*n+e*zee-t*Jee)/(Qee+zee-Jee),r=n-o,l=(Qa[4]*(t-o)-Qa[2]*r)/Qa[3],s={mode:"cubehelix",l:o,s:o===0||o===1?void 0:Math.sqrt(r*r+l*l)/(Qa[4]*o*(1-o))};return s.s&&(s.h=Math.atan2(l,r)*Zee-120),i!==void 0&&(s.alpha=i),s},Yee=f8e;var h8e=({h:e,s:t,l:n,alpha:i})=>{let o={mode:"rgb"};e=(e===void 0?0:e+120)*Xee,n===void 0&&(n=0);let r=t===void 0?0:t*n*(1-n),l=Math.cos(e),s=Math.sin(e);return o.r=n+r*(Qa[0]*l+Qa[1]*s),o.g=n+r*(Qa[2]*l+Qa[3]*s),o.b=n+r*(Qa[4]*l+Qa[5]*s),i!==void 0&&(o.alpha=i),o},ete=h8e;var id=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=Ls(e.h),i=Ls(t.h),o=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*o},tte=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=Ls(e.h),i=Ls(t.h);return Math.abs(i-n)>180?n-(i-360*Math.sign(i-n)):i-n},sd=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=Ls(e.h),i=Ls(t.h),o=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*o};var fo=e=>{let t=e.reduce((i,o)=>{if(o!==void 0){let r=o*Math.PI/180;i.sin+=Math.sin(r),i.cos+=Math.cos(r)}return i},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n};var _8e={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Yee},toMode:{rgb:ete},interpolate:{h:{use:Sr,fixup:po},s:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},rte=_8e;var m8e=({l:e,a:t,b:n,alpha:i},o="lch")=>{t===void 0&&(t=0),n===void 0&&(n=0);let r=Math.sqrt(t*t+n*n),l={mode:o,l:e,c:r};return r&&(l.h=Ls(Math.atan2(n,t)*180/Math.PI)),i!==void 0&&(l.alpha=i),l},Wl=m8e;var E8e=({l:e,c:t,h:n,alpha:i},o="lab")=>{n===void 0&&(n=0);let r={mode:o,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return i!==void 0&&(r.alpha=i),r},Vl=E8e;var KS=Math.pow(29,3)/Math.pow(3,3),GS=Math.pow(6,3)/Math.pow(29,3);var da={X:.9642956764295677,Y:1,Z:.8251046025104602},ad={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Uvt=Math.pow(29,3)/Math.pow(3,3),qvt=Math.pow(6,3)/Math.pow(29,3);var LR=e=>Math.pow(e,3)>GS?Math.pow(e,3):(116*e-16)/KS,y8e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(e+16)/116,r=t/500+o,l=o-n/200,s={mode:"xyz65",x:LR(r)*ad.X,y:LR(o)*ad.Y,z:LR(l)*ad.Z};return i!==void 0&&(s.alpha=i),s},XS=y8e;var g8e=e=>Il(XS(e)),od=g8e;var TR=e=>e>GS?Math.cbrt(e):(KS*e+16)/116,b8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=TR(e/ad.X),r=TR(t/ad.Y),l=TR(n/ad.Z),s={mode:"lab65",l:116*r-16,a:500*(o-r),b:200*(r-l)};return i!==void 0&&(s.alpha=i),s},ZS=b8e;var A8e=e=>{let t=ZS(Al(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ld=A8e;var Bf=.14444444444444443*Math.PI,G_=Math.cos(Bf),X_=Math.sin(Bf),zS=100/Math.log(139/100);var I8e=({l:e,c:t,h:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"lab65",l:(Math.exp(e*1/zS)-1)/.0039},r=(Math.exp(.0435*t*1*1)-1)/.075,l=r*Math.cos(n/180*Math.PI-Bf),s=r*Math.sin(n/180*Math.PI-Bf);return o.a=l*G_-s/.83*X_,o.b=l*X_+s/.83*G_,i!==void 0&&(o.alpha=i),o},a0=I8e;var S8e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=t*G_+n*X_,r=.83*(n*G_-t*X_),l=Math.sqrt(o*o+r*r),s={mode:"dlch",l:zS/1*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*1*1)};return s.c&&(s.h=Ls((Math.atan2(r,o)+Bf)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},o0=S8e;var nte=e=>a0(Wl(e,"dlch")),ite=e=>Vl(o0(e),"dlab"),L8e={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:nte,rgb:e=>od(nte(e))},fromMode:{lab65:ite,rgb:e=>ite(ld(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:Sr,a:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},ste=L8e;var T8e={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:a0,dlab:e=>Vl(e,"dlab"),rgb:e=>od(a0(e))},fromMode:{lab65:o0,dlab:e=>Wl(e,"dlch"),rgb:e=>o0(ld(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:Sr,c:Sr,h:{use:Sr,fixup:po},alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},ate=T8e;function CR({h:e,s:t,i:n,alpha:i}){e=Ls(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.abs(e/60%2-1),r;switch(Math.floor(e/60)){case 0:r={r:n*(1+t*(3/(2-o)-1)),g:n*(1+t*(3*(1-o)/(2-o)-1)),b:n*(1-t)};break;case 1:r={r:n*(1+t*(3*(1-o)/(2-o)-1)),g:n*(1+t*(3/(2-o)-1)),b:n*(1-t)};break;case 2:r={r:n*(1-t),g:n*(1+t*(3/(2-o)-1)),b:n*(1+t*(3*(1-o)/(2-o)-1))};break;case 3:r={r:n*(1-t),g:n*(1+t*(3*(1-o)/(2-o)-1)),b:n*(1+t*(3/(2-o)-1))};break;case 4:r={r:n*(1+t*(3*(1-o)/(2-o)-1)),g:n*(1-t),b:n*(1+t*(3/(2-o)-1))};break;case 5:r={r:n*(1+t*(3/(2-o)-1)),g:n*(1-t),b:n*(1+t*(3*(1-o)/(2-o)-1))};break;default:r={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return r.mode="rgb",i!==void 0&&(r.alpha=i),r}function xR({r:e,g:t,b:n,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.max(e,t,n),r=Math.min(e,t,n),l={mode:"hsi",s:e+t+n===0?0:1-3*r/(e+t+n),i:(e+t+n)/3};return o-r!==0&&(l.h=(o===e?(t-n)/(o-r)+(t<n)*6:o===t?(n-e)/(o-r)+2:(e-t)/(o-r)+4)*60),i!==void 0&&(l.alpha=i),l}var v8e={mode:"hsi",toMode:{rgb:CR},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:xR},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:Sr,fixup:po},s:Sr,i:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},ote=v8e;function DR({h:e,s:t,l:n,alpha:i}){e=Ls(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let o=n+t*(n<.5?n:1-n),r=o-(o-n)*2*Math.abs(e/60%2-1),l;switch(Math.floor(e/60)){case 0:l={r:o,g:r,b:2*n-o};break;case 1:l={r,g:o,b:2*n-o};break;case 2:l={r:2*n-o,g:o,b:r};break;case 3:l={r:2*n-o,g:r,b:o};break;case 4:l={r,g:2*n-o,b:o};break;case 5:l={r:o,g:2*n-o,b:r};break;default:l={r:2*n-o,g:2*n-o,b:2*n-o}}return l.mode="rgb",i!==void 0&&(l.alpha=i),l}function PR({r:e,g:t,b:n,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.max(e,t,n),r=Math.min(e,t,n),l={mode:"hsl",s:o===r?0:(o-r)/(1-Math.abs(o+r-1)),l:.5*(o+r)};return o-r!==0&&(l.h=(o===e?(t-n)/(o-r)+(t<n)*6:o===t?(n-e)/(o-r)+2:(e-t)/(o-r)+4)*60),i!==void 0&&(l.alpha=i),l}var C8e=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},lte=C8e;var x8e=new RegExp(`^hsla?\\(\\s*${Oee}${nd}${Mf}${nd}${Mf}\\s*(?:,\\s*${t0}\\s*)?\\)$`),D8e=e=>{let t=e.match(x8e);if(!t)return;let n={mode:"hsl"};return t[3]!==void 0?n.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(n.h=lte(t[1],t[2])),t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?n.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))),n},cte=D8e;function P8e(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let n={mode:"hsl"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Percentage)return;n.h=i.value}if(o.type!==br.None){if(o.type===br.Hue)return;n.s=o.value/100}if(r.type!==br.None){if(r.type===br.Hue)return;n.l=r.value/100}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var ute=P8e;var w8e={mode:"hsl",toMode:{rgb:DR},fromMode:{rgb:PR},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[ute,cte],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Sr,fixup:po},s:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},JS=w8e;function l0({h:e,s:t,v:n,alpha:i}){e=Ls(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.abs(e/60%2-1),r;switch(Math.floor(e/60)){case 0:r={r:n,g:n*(1-t*o),b:n*(1-t)};break;case 1:r={r:n*(1-t*o),g:n,b:n*(1-t)};break;case 2:r={r:n*(1-t),g:n,b:n*(1-t*o)};break;case 3:r={r:n*(1-t),g:n*(1-t*o),b:n};break;case 4:r={r:n*(1-t*o),g:n*(1-t),b:n};break;case 5:r={r:n,g:n*(1-t),b:n*(1-t*o)};break;default:r={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return r.mode="rgb",i!==void 0&&(r.alpha=i),r}function c0({r:e,g:t,b:n,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.max(e,t,n),r=Math.min(e,t,n),l={mode:"hsv",s:o===0?0:1-r/o,v:o};return o-r!==0&&(l.h=(o===e?(t-n)/(o-r)+(t<n)*6:o===t?(n-e)/(o-r)+2:(e-t)/(o-r)+4)*60),i!==void 0&&(l.alpha=i),l}var k8e={mode:"hsv",toMode:{rgb:l0},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:c0},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:Sr,fixup:po},s:Sr,v:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},QS=k8e;function wR({h:e,w:t,b:n,alpha:i}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let o=t+n;t/=o,n/=o}return l0({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:i})}function kR(e){let t=c0(e);if(t===void 0)return;let n=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,o={mode:"hwb",w:(1-n)*i,b:1-i};return t.h!==void 0&&(o.h=t.h),t.alpha!==void 0&&(o.alpha=t.alpha),o}function N8e(e,t){if(!t||t[0]!=="hwb")return;let n={mode:"hwb"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Percentage)return;n.h=i.value}if(o.type!==br.None){if(o.type===br.Hue)return;n.w=o.value/100}if(r.type!==br.None){if(r.type===br.Hue)return;n.b=r.value/100}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var Hte=N8e;var R8e={mode:"hwb",toMode:{rgb:wR},fromMode:{rgb:kR},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Hte],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Sr,fixup:po},w:Sr,b:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:tte},average:{h:fo}},pte=R8e;var Z_=.1593017578125,dte=78.84375,z_=.8359375,J_=18.8515625,Q_=18.6875;function YS(e){if(e<0)return 0;let t=Math.pow(e,1/dte);return 1e4*Math.pow(Math.max(0,t-z_)/(J_-Q_*t),1/Z_)}function eL(e){if(e<0)return 0;let t=Math.pow(e/1e4,Z_);return Math.pow((z_+J_*t)/(1+Q_*t),dte)}var NR=e=>Math.max(e/203,0),M8e=({i:e,t,p:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=YS(e+.008609037037932761*t+.11102962500302593*n),r=YS(e-.00860903703793275*t-.11102962500302599*n),l=YS(e+.5600313357106791*t-.32062717498731885*n),s={mode:"xyz65",x:NR(2.070152218389422*o-1.3263473389671556*r+.2066510476294051*l),y:NR(.3647385209748074*o+.680566024947227*r-.0453045459220346*l),z:NR(-.049747207535812*o-.0492609666966138*r+1.1880659249923042*l)};return i!==void 0&&(s.alpha=i),s},RR=M8e;var $R=(e=0)=>Math.max(e*203,0),B8e=({x:e,y:t,z:n,alpha:i})=>{let o=$R(e),r=$R(t),l=$R(n),s=eL(.3592832590121217*o+.6976051147779502*r-.0358915932320289*l),u=eL(-.1920808463704995*o+1.1004767970374323*r+.0753748658519118*l),H=eL(.0070797844607477*o+.0748396662186366*r+.8433265453898765*l),a=.5*s+.5*u,c=1.61376953125*s-3.323486328125*u+1.709716796875*H,p=4.378173828125*s-4.24560546875*u-.132568359375*H,d={mode:"itp",i:a,t:c,p};return i!==void 0&&(d.alpha=i),d},MR=B8e;var O8e={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:RR,rgb:e=>Il(RR(e))},fromMode:{xyz65:MR,rgb:e=>MR(Al(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:Sr,t:Sr,p:Sr,alpha:{use:Sr,fixup:_i}}},fte=O8e;var F8e=134.03437499999998,j8e=16295499532821565e-27,BR=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,Z_);return Math.pow((z_+J_*t)/(1+Q_*t),F8e)},OR=(e=0)=>Math.max(e*203,0),U8e=({x:e,y:t,z:n,alpha:i})=>{e=OR(e),t=OR(t),n=OR(n);let o=1.15*e-.15*n,r=.66*t+.34*e,l=BR(.41478972*o+.579999*r+.014648*n),s=BR(-.20151*o+1.120649*r+.0531008*n),u=BR(-.0166008*o+.2648*r+.6684799*n),H=(l+s)/2,a={mode:"jab",j:.44*H/(1-.56*H)-j8e,a:3.524*l-4.066708*s+.542708*u,b:.199076*l+1.096799*s-1.295875*u};return i!==void 0&&(a.alpha=i),a},tL=U8e;var q8e=134.03437499999998,hte=16295499532821565e-27,FR=e=>{if(e<0)return 0;let t=Math.pow(e,1/q8e);return 1e4*Math.pow((z_-t)/(Q_*t-J_),1/Z_)},jR=e=>e/203,W8e=({j:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(e+hte)/(.44+.56*(e+hte)),r=FR(o+.13860504*t+.058047316*n),l=FR(o-.13860504*t-.058047316*n),s=FR(o-.096019242*t-.8118919*n),u={mode:"xyz65",x:jR(1.661373024652174*r-.914523081304348*l+.23136208173913045*s),y:jR(-.3250758611844533*r+1.571847026732543*l-.21825383453227928*s),z:jR(-.090982811*r-.31272829*l+1.5227666*s)};return i!==void 0&&(u.alpha=i),u},rL=W8e;var V8e=e=>{let t=tL(Al(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},nL=V8e;var K8e=e=>Il(rL(e)),iL=K8e;var G8e={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:nL,xyz65:tL},toMode:{rgb:iL,xyz65:rL},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:Sr,a:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},_te=G8e;var X8e=({j:e,a:t,b:n,alpha:i})=>{t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.sqrt(t*t+n*n),r={mode:"jch",j:e,c:o};return o&&(r.h=Ls(Math.atan2(n,t)*180/Math.PI)),i!==void 0&&(r.alpha=i),r},UR=X8e;var Z8e=({j:e,c:t,h:n,alpha:i})=>{n===void 0&&(n=0);let o={mode:"jab",j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return i!==void 0&&(o.alpha=i),o},qR=Z8e;var z8e={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:qR,rgb:e=>iL(qR(e))},fromMode:{rgb:e=>UR(nL(e)),jab:UR},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:Sr,fixup:po},c:Sr,j:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},mte=z8e;var cd=Math.pow(29,3)/Math.pow(3,3),Y_=Math.pow(6,3)/Math.pow(29,3);var WR=e=>Math.pow(e,3)>Y_?Math.pow(e,3):(116*e-16)/cd,J8e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(e+16)/116,r=t/500+o,l=o-n/200,s={mode:"xyz50",x:WR(r)*da.X,y:WR(o)*da.Y,z:WR(l)*da.Z};return i!==void 0&&(s.alpha=i),s},em=J8e;var Q8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Sc({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return i!==void 0&&(o.alpha=i),o},zu=Q8e;var Y8e=e=>zu(em(e)),sL=Y8e;var e4e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r={mode:"xyz50",x:.436065742824811*t+.3851514688337912*n+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*i};return o!==void 0&&(r.alpha=o),r},Ju=e4e;var VR=e=>e>Y_?Math.cbrt(e):(cd*e+16)/116,t4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=VR(e/da.X),r=VR(t/da.Y),l=VR(n/da.Z),s={mode:"lab",l:116*r-16,a:500*(o-r),b:200*(r-l)};return i!==void 0&&(s.alpha=i),s},tm=t4e;var r4e=e=>{let t=tm(Ju(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},aL=r4e;function n4e(e,t){if(!t||t[0]!=="lab")return;let n={mode:"lab"},[,i,o,r,l]=t;if(!(i.type===br.Hue||o.type===br.Hue||r.type===br.Hue))return i.type!==br.None&&(n.l=Math.min(Math.max(0,i.value),100)),o.type!==br.None&&(n.a=o.type===br.Number?o.value:o.value*125/100),r.type!==br.None&&(n.b=r.type===br.Number?r.value:r.value*125/100),l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var Ete=n4e;var i4e={mode:"lab",toMode:{xyz50:em,rgb:sL},fromMode:{xyz50:tm,rgb:aL},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-100,100],b:[-100,100]},parse:[Ete],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:Sr,a:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},rm=i4e;var s4e={...rm,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:XS,rgb:od},fromMode:{xyz65:ZS,rgb:ld},ranges:{l:[0,100],a:[-86.182,98.234],b:[-107.86,94.477]}},yte=s4e;function a4e(e,t){if(!t||t[0]!=="lch")return;let n={mode:"lch"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Hue)return;n.l=Math.min(Math.max(0,i.value),100)}if(o.type!==br.None&&(n.c=Math.max(0,o.type===br.Number?o.value:o.value*150/100)),r.type!==br.None){if(r.type===br.Percentage)return;n.h=r.value}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var gte=a4e;var o4e={mode:"lch",toMode:{lab:Vl,rgb:e=>sL(Vl(e))},fromMode:{rgb:e=>Wl(aL(e)),lab:Wl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[gte],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Sr,fixup:po},c:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},nm=o4e;var l4e={...nm,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Vl(e,"lab65"),rgb:e=>od(Vl(e,"lab65"))},fromMode:{rgb:e=>Wl(ld(e),"lch65"),lab65:e=>Wl(e,"lch65")},ranges:{l:[0,100],c:[0,133.807],h:[0,360]}},bte=l4e;var c4e=({l:e,u:t,v:n,alpha:i})=>{t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.sqrt(t*t+n*n),r={mode:"lchuv",l:e,c:o};return o&&(r.h=Ls(Math.atan2(n,t)*180/Math.PI)),i!==void 0&&(r.alpha=i),r},KR=c4e;var u4e=({l:e,c:t,h:n,alpha:i})=>{n===void 0&&(n=0);let o={mode:"luv",l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return i!==void 0&&(o.alpha=i),o},GR=u4e;var Ate=(e,t,n)=>4*e/(e+15*t+3*n),Ite=(e,t,n)=>9*t/(e+15*t+3*n),H4e=Ate(da.X,da.Y,da.Z),p4e=Ite(da.X,da.Y,da.Z),d4e=e=>e<=Y_?cd*e:116*Math.cbrt(e)-16,f4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=d4e(t/da.Y),r=Ate(e,t,n),l=Ite(e,t,n);!isFinite(r)||!isFinite(l)?o=r=l=0:(r=13*o*(r-H4e),l=13*o*(l-p4e));let s={mode:"luv",l:o,u:r,v:l};return i!==void 0&&(s.alpha=i),s},u0=f4e;var h4e=(e,t,n)=>4*e/(e+15*t+3*n),_4e=(e,t,n)=>9*t/(e+15*t+3*n),m4e=h4e(da.X,da.Y,da.Z),E4e=_4e(da.X,da.Y,da.Z),y4e=({l:e,u:t,v:n,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let o=t/(13*e)+m4e,r=n/(13*e)+E4e,l=da.Y*(e<=8?e/cd:Math.pow((e+16)/116,3)),s=l*(9*o)/(4*r),u=l*(12-3*o-20*r)/(4*r),H={mode:"xyz50",x:s,y:l,z:u};return i!==void 0&&(H.alpha=i),H},H0=y4e;var g4e=e=>KR(u0(Ju(e))),b4e=e=>zu(H0(GR(e))),A4e={mode:"lchuv",toMode:{luv:GR,rgb:b4e},fromMode:{rgb:g4e,luv:KR},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:Sr,fixup:po},c:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},Ste=A4e;var I4e={...Ac,mode:"lrgb",toMode:{rgb:Sc},fromMode:{rgb:Ic},parse:["srgb-linear"],serialize:"srgb-linear"},Lte=I4e;var S4e={mode:"luv",toMode:{xyz50:H0,rgb:e=>zu(H0(e))},fromMode:{xyz50:u0,rgb:e=>u0(Ju(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:Sr,u:Sr,v:Sr,alpha:{use:Sr,fixup:_i}}},Tte=S4e;var L4e=({r:e,g:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.cbrt(.41222147079999993*e+.5363325363*t+.0514459929*n),r=Math.cbrt(.2119034981999999*e+.6806995450999999*t+.1073969566*n),l=Math.cbrt(.08830246189999998*e+.2817188376*t+.6299787005000002*n),s={mode:"oklab",l:.2104542553*o+.793617785*r-.0040720468*l,a:1.9779984951*o-2.428592205*r+.4505937099*l,b:.0259040371*o+.7827717662*r-.808675766*l};return i!==void 0&&(s.alpha=i),s},oL=L4e;var T4e=e=>{let t=oL(Ic(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ud=T4e;var v4e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.pow(e*.9999999984505198+.39633779217376786*t+.2158037580607588*n,3),r=Math.pow(e*1.0000000088817609-.10556134232365635*t-.06385417477170591*n,3),l=Math.pow(e*1.0000000546724108-.08948418209496575*t-1.2914855378640917*n,3),s={mode:"lrgb",r:4.076741661347994*o-3.307711590408193*r+.230969928729428*l,g:-1.2684380040921763*o+2.6097574006633715*r-.3413193963102197*l,b:-.004196086541837188*o-.7034186144594493*r+1.7076147009309444*l};return i!==void 0&&(s.alpha=i),s},Qu=v4e;var C4e=e=>Sc(Qu(e)),Hd=C4e;function p0(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function Of(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function x4e(e,t){let n,i,o,r,l,s,u,H;-1.88170328*e-.80936493*t>1?(n=1.19086277,i=1.76576728,o=.59662641,r=.75515197,l=.56771245,s=4.0767416621,u=-3.3077115913,H=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,i=-.45954404,o=.08285427,r=.1254107,l=.14503204,s=-1.2684380046,u=2.6097574011,H=-.3413193965):(n=1.35733652,i=-.00915799,o=-1.1513021,r=-.50559606,l=.00692167,s=-.0041960863,u=-.7034186147,H=1.707614701);let a=n+i*e+o*t+r*e*e+l*e*t,c=.3963377774*e+.2158037573*t,p=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let h=1+a*c,m=1+a*p,g=1+a*d,y=h*h*h,_=m*m*m,E=g*g*g,A=3*c*h*h,S=3*p*m*m,T=3*d*g*g,I=6*c*c*h,L=6*p*p*m,x=6*d*d*g,C=s*y+u*_+H*E,D=s*A+u*S+H*T,O=s*I+u*L+H*x;a=a-C*D/(D*D-.5*C*O)}return a}function XR(e,t){let n=x4e(e,t),i=Qu({l:1,a:n*e,b:n*t}),o=Math.cbrt(1/Math.max(i.r,i.g,i.b)),r=o*n;return[o,r]}function D4e(e,t,n,i,o,r=null){r||(r=XR(e,t));let l;if((n-o)*r[1]-(r[0]-o)*i<=0)l=r[1]*o/(i*r[0]+r[1]*(o-n));else{l=r[1]*(o-1)/(i*(r[0]-1)+r[1]*(o-n));{let s=n-o,u=i,H=.3963377774*e+.2158037573*t,a=-.1055613458*e-.0638541728*t,c=-.0894841775*e-1.291485548*t,p=s+u*H,d=s+u*a,h=s+u*c;{let m=o*(1-l)+l*n,g=l*i,y=m+g*H,_=m+g*a,E=m+g*c,A=y*y*y,S=_*_*_,T=E*E*E,I=3*p*y*y,L=3*d*_*_,x=3*h*E*E,C=6*p*p*y,D=6*d*d*_,O=6*h*h*E,j=4.0767416621*A-3.3077115913*S+.2309699292*T-1,k=4.0767416621*I-3.3077115913*L+.2309699292*x,$=4.0767416621*C-3.3077115913*D+.2309699292*O,U=k/(k*k-.5*j*$),F=-j*U,P=-1.2684380046*A+2.6097574011*S-.3413193965*T-1,W=-1.2684380046*I+2.6097574011*L-.3413193965*x,Z=-1.2684380046*C+2.6097574011*D-.3413193965*O,ee=W/(W*W-.5*P*Z),J=-P*ee,ne=-.0041960863*A-.7034186147*S+1.707614701*T-1,K=-.0041960863*I-.7034186147*L+1.707614701*x,q=-.0041960863*C-.7034186147*D+1.707614701*O,Q=K/(K*K-.5*ne*q),z=-ne*Q;F=U>=0?F:1e6,J=ee>=0?J:1e6,z=Q>=0?z:1e6,l+=Math.min(F,Math.min(J,z))}}}return l}function d0(e,t,n=null){n||(n=XR(e,t));let i=n[0],o=n[1];return[o/i,o/(1-i)]}function lL(e,t,n){let i=XR(t,n),o=D4e(t,n,e,1,e,i),r=d0(t,n,i),l=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),u=o/Math.min(e*r[0],(1-e)*r[1]),H=e*l,a=(1-e)*s,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(H*H*H*H)+1/(a*a*a*a))));return H=e*.4,a=(1-e)*.8,[Math.sqrt(1/(1/(H*H)+1/(a*a))),c,o]}function cL(e){let t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,o={mode:"okhsl",l:p0(t)};e.alpha!==void 0&&(o.alpha=e.alpha);let r=Math.sqrt(n*n+i*i);if(!r)return o.s=0,o;let[l,s,u]=lL(t,n/r,i/r),H;if(r<s){let a=0,c=.8*l,p=1-c/s;H=(r-a)/(c+p*(r-a))*.8}else{let a=s,c=.2*s*s*1.25*1.25/l,p=1-c/(u-s);H=.8+.2*((r-a)/(c+p*(r-a)))}return H&&(o.s=H,o.h=Ls(Math.atan2(i,n)*180/Math.PI)),o}function uL(e){let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,i=e.l!==void 0?e.l:0,o={mode:"oklab",l:Of(i)};if(e.alpha!==void 0&&(o.alpha=e.alpha),!n||i===1)return o.a=o.b=0,o;let r=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[s,u,H]=lL(o.l,r,l),a,c,p,d;n<.8?(a=1.25*n,c=0,p=.8*s,d=1-p/u):(a=5*(n-.8),c=u,p=.2*u*u*1.25*1.25/s,d=1-p/(H-u));let h=c+a*p/(1-d*a);return o.a=h*r,o.b=h*l,o}var P4e={...JS,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:cL,rgb:e=>cL(ud(e))},toMode:{oklab:uL,rgb:e=>Hd(uL(e))}},vte=P4e;function HL(e){let t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,o=Math.sqrt(n*n+i*i),r=o?n/o:1,l=o?i/o:1,[s,u]=d0(r,l),H=.5,a=1-H/s,c=u/(o+t*u),p=c*t,d=c*o,h=Of(p),m=d*h/p,g=Qu({l:h,a:r*m,b:l*m}),y=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t=t/y,o=o/y*p0(t)/t,t=p0(t);let _={mode:"okhsv",s:o?(H+u)*d/(u*H+u*a*d):0,v:t?t/p:0};return _.s&&(_.h=Ls(Math.atan2(i,n)*180/Math.PI)),e.alpha!==void 0&&(_.alpha=e.alpha),_}function pL(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let n=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,o=e.v!==void 0?e.v:0,r=Math.cos(n/180*Math.PI),l=Math.sin(n/180*Math.PI),[s,u]=d0(r,l),H=.5,a=1-H/s,c=1-i*H/(H+u-u*a*i),p=i*u*H/(H+u-u*a*i),d=Of(c),h=p*d/c,m=Qu({l:d,a:r*h,b:l*h}),g=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=Of(o*c),_=p*y/c;return t.l=y*g,t.a=_*r*g,t.b=_*l*g,t}var w4e={...QS,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:HL,rgb:e=>HL(ud(e))},toMode:{oklab:pL,rgb:e=>Hd(pL(e))}},Cte=w4e;function k4e(e,t){if(!t||t[0]!=="oklab")return;let n={mode:"oklab"},[,i,o,r,l]=t;if(!(i.type===br.Hue||o.type===br.Hue||r.type===br.Hue))return i.type!==br.None&&(n.l=Math.min(Math.max(0,i.type===br.Number?i.value:i.value/100),1)),o.type!==br.None&&(n.a=o.type===br.Number?o.value:o.value*.4/100),r.type!==br.None&&(n.b=r.type===br.Number?r.value:r.value*.4/100),l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var xte=k4e;var N4e={...rm,mode:"oklab",toMode:{lrgb:Qu,rgb:Hd},fromMode:{lrgb:oL,rgb:ud},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[xte],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},Dte=N4e;function R4e(e,t){if(!t||t[0]!=="oklch")return;let n={mode:"oklch"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Hue)return;n.l=Math.min(Math.max(0,i.type===br.Number?i.value:i.value/100),1)}if(o.type!==br.None&&(n.c=Math.max(0,o.type===br.Number?o.value:o.value*.4/100)),r.type!==br.None){if(r.type===br.Percentage)return;n.h=r.value}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var Pte=R4e;var $4e={...nm,mode:"oklch",toMode:{oklab:e=>Vl(e,"oklab"),rgb:e=>Hd(Vl(e,"oklab"))},fromMode:{rgb:e=>Wl(ud(e),"oklch"),oklab:e=>Wl(e,"oklch")},parse:[Pte],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},wte=$4e;var M4e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r={mode:"xyz65",x:.486570948648216*t+.265667693169093*n+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*i,z:0*t+.0451133818589026*n+1.043944368900976*i};return o!==void 0&&(r.alpha=o),r},ZR=M4e;var B4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Sc({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},"p3");return i!==void 0&&(o.alpha=i),o},zR=B4e;var O4e={...Ac,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>zR(Al(e)),xyz65:zR},toMode:{rgb:e=>Il(ZR(e)),xyz65:ZR}},kte=O4e;var JR=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},F4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"prophoto",r:JR(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:JR(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:JR(e*0+t*0+1.2119675456389452*n)};return i!==void 0&&(o.alpha=i),o},QR=F4e;var YR=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},j4e=e=>{let t=YR(e.r),n=YR(e.g),i=YR(e.b),o={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*i,z:0*t+0*n+.8251046025104602*i};return e.alpha!==void 0&&(o.alpha=e.alpha),o},e$=j4e;var U4e={...Ac,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:QR,rgb:e=>QR(Ju(e))},toMode:{xyz50:e$,rgb:e=>zu(e$(e))}},Nte=U4e;var Rte=1.09929682680944,q4e=.018053968510807,t$=e=>{let t=Math.abs(e);return t>q4e?(Math.sign(e)||1)*(Rte*Math.pow(t,.45)-(Rte-1)):4.5*e},W4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"rec2020",r:t$(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:t$(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:t$(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return i!==void 0&&(o.alpha=i),o},r$=W4e;var $te=1.09929682680944,V4e=.018053968510807,n$=(e=0)=>{let t=Math.abs(e);return t<V4e*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+$te-1)/$te,1/.45)},K4e=e=>{let t=n$(e.r),n=n$(e.g),i=n$(e.b),o={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*n+.059301716469862*i,z:0*t+.0280726930490874*n+1.0609850577107909*i};return e.alpha!==void 0&&(o.alpha=e.alpha),o},i$=K4e;var G4e={...Ac,mode:"rec2020",fromMode:{xyz65:r$,rgb:e=>r$(Al(e))},toMode:{xyz65:i$,rgb:e=>Il(i$(e))},parse:["rec2020"],serialize:"rec2020"},Mte=G4e;var JH=.0037930732552754493,dL=Math.cbrt(JH);var s$=e=>Math.cbrt(e)-dL,X4e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r=s$(.3*t+.622*n+.078*i+JH),l=s$(.23*t+.692*n+.078*i+JH),s=s$(.2434226892454782*t+.2047674442449682*n+.5518098665095535*i+JH),u={mode:"xyb",x:(r-l)/2,y:(r+l)/2,b:s-(r+l)/2};return o!==void 0&&(u.alpha=o),u},Bte=X4e;var a$=e=>Math.pow(e+dL,3),Z4e=({x:e,y:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=a$(e+t)-JH,r=a$(t-e)-JH,l=a$(n+t)-JH,s=Sc({r:11.031566904639861*o-9.866943908131562*r-.16462299650829934*l,g:-3.2541473810744237*o+4.418770377582723*r-.16462299650829934*l,b:-3.6588512867136815*o+2.7129230459360922*r+1.9459282407775895*l});return i!==void 0&&(s.alpha=i),s},Ote=Z4e;var z4e={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Ote},fromMode:{rgb:Bte},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:Sr,y:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},Fte=z4e;var J4e={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:zu,lab:tm},fromMode:{rgb:Ju,lab:em},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:Sr,y:Sr,z:Sr,alpha:{use:Sr,fixup:_i}}},jte=J4e;var Q4e=e=>{let{x:t,y:n,z:i,alpha:o}=e;t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0);let r={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*i};return o!==void 0&&(r.alpha=o),r},Ute=Q4e;var Y4e=e=>{let{x:t,y:n,z:i,alpha:o}=e;t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0);let r={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*i};return o!==void 0&&(r.alpha=o),r},qte=Y4e;var e7e={mode:"xyz65",toMode:{rgb:Il,xyz50:Ute},fromMode:{rgb:Al,xyz50:qte},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:Sr,y:Sr,z:Sr,alpha:{use:Sr,fixup:_i}}},Wte=e7e;var t7e=({r:e,g:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return i!==void 0&&(o.alpha=i),o},Vte=t7e;var r7e=({y:e,i:t,q:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"rgb",r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return i!==void 0&&(o.alpha=i),o},Kte=r7e;var n7e={mode:"yiq",toMode:{rgb:Kte},fromMode:{rgb:Vte},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:Sr,i:Sr,q:Sr,alpha:{use:Sr,fixup:_i}}},Gte=n7e;var i7e=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,s7e=(e=4)=>t=>typeof t=="number"?i7e(t,e):t,Xte=s7e;var f0=Xte(2),h0=e=>Math.max(0,Math.min(1,e||0)),Ff=e=>Math.round(h0(e)*255),o$=bc("rgb"),a7e=bc("hsl"),l$=e=>{if(e===void 0)return;let t=Ff(e.r),n=Ff(e.g),i=Ff(e.b);return"#"+(1<<24|t<<16|n<<8|i).toString(16).slice(1)},Zte=e=>{if(e===void 0)return;let t=Ff(e.alpha!==void 0?e.alpha:1);return l$(e)+(256|t).toString(16).slice(1)},zte=e=>{if(e===void 0)return;let t=Ff(e.r),n=Ff(e.g),i=Ff(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${n}, ${i})`:`rgba(${t}, ${n}, ${i}, ${f0(h0(e.alpha))})`},Jte=e=>{if(e===void 0)return;let t=f0(e.h||0),n=f0(h0(e.s)*100)+"%",i=f0(h0(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${n}, ${i})`:`hsla(${t}, ${n}, ${i}, ${f0(h0(e.alpha))})`};var c$=e=>l$(o$(e)),_0=e=>Zte(o$(e)),im=e=>zte(o$(e)),u$=e=>Jte(a7e(e));var Qte=bc("rgb"),o7e=e=>{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},l7e=e=>o7e(Qte(e)),Yte=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function ere(e){return Yte(Qte(e))}function H$(e="rgb"){let{gamut:t}=US(e);if(!t)return i=>!0;let n=bc(typeof t=="string"?t:e);return i=>Yte(n(i))}function p$(e){return e=jS(e),e===void 0||ere(e)?e:bc(e.mode)(l7e(e))}var WNt=Yi(Gee),VNt=Yi(rte),KNt=Yi(ste),GNt=Yi(ate),XNt=Yi(ote),ZNt=Yi(JS),zNt=Yi(QS),JNt=Yi(pte),QNt=Yi(fte),YNt=Yi(_te),e9t=Yi(mte),t9t=Yi(rm),r9t=Yi(yte),n9t=Yi(nm),i9t=Yi(bte),s9t=Yi(Ste),a9t=Yi(Lte),o9t=Yi(Tte),l9t=Yi(vte),c9t=Yi(Cte),u9t=Yi(Dte),H9t=Yi(wte),p9t=Yi(kte),d9t=Yi(Nte),f9t=Yi(Mte),h9t=Yi(Ac),_9t=Yi(Fte),m9t=Yi(jte),E9t=Yi(Wte),y9t=Yi(Gte);var iM=Er(Ko());function fL(e){let t=function(n,i,o){if(!(!n&&!i))return i?(t(n+i[0],i.slice(1),o),t(n,i.slice(1),o)):o.push(n),o};return t("",e,[])}var m0=Er(Ko());function Yu(e,t){let n=e.separator;t=t.replace(/^\./,"");let i=t.split(n);if(i.length===1)return(0,m0.default)(e.classNames.classNames,[t,"__info","__rule"])===!0||Array.isArray((0,m0.default)(e.classNames.classNames,[t,"__info"]))?[t]:null;let o=fL("123456789".substr(0,i.length-1)).map(l=>l.split("").map(s=>parseInt(s,10)));return[[t],...o.map(l=>{let s=[],u=0;return l.forEach(H=>{s.push(i.slice(u,H).join("-")),u=H}),s.push(i.slice(u).join("-")),s})].find(l=>!!((0,m0.default)(e.classNames.classNames,[...l,"__info","__rule"])===!0||Array.isArray((0,m0.default)(e.classNames.classNames,[...l,"__info"]))))}function pd(e,{replace:t,recursive:n=!0}){let i=new Set;for(let o=0;o<e.length;++o){if(!e.startsWith("var(",o))continue;let r=0,l=null;for(let s=o+4;o<e.length;++s)if(e[s]==="(")r++;else if(e[s]===")"&&r>0)r--;else if(e[s]==="\\")s++;else if(e[s]===","&&r===0&&l===null)l=s+1;else if(e[s]===")"&&r===0){let u,H;l===null?(u=e.slice(o+4,s),H=null):(u=e.slice(o+4,l-1),H=e.slice(l,s));let a=t({kind:"css-variable",name:u,fallback:H,range:{start:o,end:s}});if(a!==null&&(e=e.slice(0,o)+a+e.slice(s+1)),n){let c=`${o}:${a}`;i.has(c)||(i.add(c),o-=1)}break}}return e}function sm(e,t){for(let n=0;n<e.length;++n){if(!e.startsWith("calc(",n))continue;let i=0;for(let o=n+5;n<e.length;++o)if(e[o]==="(")i++;else if(e[o]===")"&&i>0)i--;else if(e[o]===")"&&i===0){let r=e.slice(n+5,o),l=t({kind:"calc-expression",value:r,range:{start:n,end:o}});l!==null&&(e=e.slice(0,n)+l+e.slice(o+1));break}}return e}function dd(e,t){let n=e.theme.prefix??null;return n&&t.startsWith(`--${n}`)&&(t=`--${t.slice(n.length+3)}`),e.resolveThemeValue?.(t,!0)??null}function rre(e,t){let n=new Set;return pd(t,{replace({name:i,fallback:o}){if(e.designSystem&&i.startsWith("--")){if(n.has(i))return null;let r=dd(e.designSystem,i);if(r!==null)return r.includes("var(")&&n.add(i),r}return o||(i==="--tw-text-shadow-alpha"||i==="--tw-drop-shadow-alpha"||i==="--tw-shadow-alpha"?"100%":null)}})}var c7e=/[A-Z]/g;function Ll(e){return e.replace(c7e,t=>String.fromCharCode(t.charCodeAt(0)+32))}var u7e={cm:"px",in:"px",mm:"px",pc:"px",pt:"px",px:"px",q:"px",deg:"deg",grad:"deg",rad:"deg",turn:"deg",ms:"s",s:"s",hz:"hz",khz:"hz"},H7e=new Map([["cm",e=>e],["mm",e=>10*e],["q",e=>40*e],["in",e=>e/2.54],["pc",e=>e/2.54*6],["pt",e=>e/2.54*72],["px",e=>e/2.54*96]]),mL=new Map([["deg",e=>e],["grad",e=>e/.9],["rad",e=>e/180*Math.PI],["turn",e=>e/360]]),E0=new Map([["deg",e=>.9*e],["grad",e=>e],["rad",e=>.9*e/180*Math.PI],["turn",e=>.9*e/360]]),p7e=new Map([["hz",e=>e],["khz",e=>e/1e3]]),d7e=new Map([["cm",e=>2.54*e],["mm",e=>25.4*e],["q",e=>25.4*e*4],["in",e=>e],["pc",e=>6*e],["pt",e=>72*e],["px",e=>96*e]]),f7e=new Map([["hz",e=>1e3*e],["khz",e=>e]]),h7e=new Map([["cm",e=>e/10],["mm",e=>e],["q",e=>4*e],["in",e=>e/25.4],["pc",e=>e/25.4*6],["pt",e=>e/25.4*72],["px",e=>e/25.4*96]]),_7e=new Map([["ms",e=>e],["s",e=>e/1e3]]),m7e=new Map([["cm",e=>e/6*2.54],["mm",e=>e/6*25.4],["q",e=>e/6*25.4*4],["in",e=>e/6],["pc",e=>e],["pt",e=>e/6*72],["px",e=>e/6*96]]),E7e=new Map([["cm",e=>e/72*2.54],["mm",e=>e/72*25.4],["q",e=>e/72*25.4*4],["in",e=>e/72],["pc",e=>e/72*6],["pt",e=>e],["px",e=>e/72*96]]),y7e=new Map([["cm",e=>e/96*2.54],["mm",e=>e/96*25.4],["q",e=>e/96*25.4*4],["in",e=>e/96],["pc",e=>e/96*6],["pt",e=>e/96*72],["px",e=>e]]),g7e=new Map([["cm",e=>e/4/10],["mm",e=>e/4],["q",e=>e],["in",e=>e/4/25.4],["pc",e=>e/4/25.4*6],["pt",e=>e/4/25.4*72],["px",e=>e/4/25.4*96]]),sre=new Map([["deg",e=>180*e/Math.PI],["grad",e=>180*e/Math.PI/.9],["rad",e=>e],["turn",e=>180*e/Math.PI/360]]),b7e=new Map([["ms",e=>1e3*e],["s",e=>e]]),y0=new Map([["deg",e=>360*e],["grad",e=>360*e/.9],["rad",e=>360*e/180*Math.PI],["turn",e=>e]]),are=new Map([["cm",H7e],["mm",h7e],["q",g7e],["in",d7e],["pc",m7e],["pt",E7e],["px",y7e],["ms",_7e],["s",b7e],["deg",mL],["grad",E0],["rad",sre],["turn",y0],["hz",p7e],["khz",f7e]]);function Gl(e,t){if(!Ta(e)||!Ta(t))return t;let n=Ll(e[4].unit),i=Ll(t[4].unit);if(n===i)return t;let o=are.get(i);if(!o)return t;let r=o.get(n);if(!r)return t;let l=r(t[4].value),s=[Rt.Dimension,"",t[2],t[3],{...t[4],signCharacter:l<0?"-":void 0,type:Number.isInteger(l)?Pn.Integer:Pn.Number,value:l}];return Z2(s,e[4].unit),s}function A7e(e){if(!Ta(e))return e;let t=Ll(e[4].unit),n=u7e[t];if(t===n)return e;let i=are.get(t);if(!i)return e;let o=i.get(n);if(!o)return e;let r=o(e[4].value),l=[Rt.Dimension,"",e[2],e[3],{...e[4],signCharacter:r<0?"-":void 0,type:Number.isInteger(r)?Pn.Integer:Pn.Number,value:r}];return Z2(l,n),l}function I7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value+n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number}])}if(so(t)&&so(n)){let i=t[4].value+n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&Ta(n)&&(n=Gl(t,n),Ll(t[4].unit)===Ll(n[4].unit))){let i=t[4].value+n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:t[4].unit}])}return-1}function S7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value/n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:Number.isInteger(i)?Pn.Integer:Pn.Number}])}if(so(t)&&ms(n)){let i=t[4].value/n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&ms(n)){let i=t[4].value/n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:Number.isInteger(i)?Pn.Integer:Pn.Number,unit:t[4].unit}])}return-1}function jf(e){return!!e&&typeof e=="object"&&"inputs"in e&&Array.isArray(e.inputs)&&"operation"in e}function Kl(e){if(e===-1)return-1;let t=[];for(let n=0;n<e.inputs.length;n++){let i=e.inputs[n];if(Bi(i)){t.push(i);continue}let o=Kl(i);if(o===-1)return-1;t.push(o)}return e.operation(t)}function L7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value*n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number}])}if(so(t)&&ms(n)){let i=t[4].value*n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(ms(t)&&so(n)){let i=t[4].value*n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&ms(n)){let i=t[4].value*n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:t[4].unit}])}if(ms(t)&&Ta(n)){let i=t[4].value*n[4].value;return new qn([Rt.Dimension,i.toString()+n[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:n[4].unit}])}return-1}function am(e,t){for(let n=0;n<e.length;n++){let i=e[n];if(!Bi(i))continue;let o=i.value;if(!q_(o))continue;let r=Ll(o[4].value);switch(r){case"e":e.splice(n,1,new qn([Rt.Number,Math.E.toString(),o[2],o[3],{value:Math.E,type:Pn.Number}]));break;case"pi":e.splice(n,1,new qn([Rt.Number,Math.PI.toString(),o[2],o[3],{value:Math.PI,type:Pn.Number}]));break;case"infinity":e.splice(n,1,new qn([Rt.Number,"infinity",o[2],o[3],{value:1/0,type:Pn.Number}]));break;case"-infinity":e.splice(n,1,new qn([Rt.Number,"-infinity",o[2],o[3],{value:-1/0,type:Pn.Number}]));break;case"nan":e.splice(n,1,new qn([Rt.Number,"NaN",o[2],o[3],{value:Number.NaN,type:Pn.Number}]));break;default:if(t.has(r)){let l=t.get(r);e.splice(n,1,new qn(l))}}}return e}function EL(e){if(e.length!==1)return-1;let t=e[0].value;return io(t)?e[0]:-1}function YH(e,t,n){return Ta(t)?g0(e,t[4].unit,n):so(t)?T7e(e,n):ms(t)?tH(e,n):-1}function g0(e,t,n){let i=e.tokens();return{inputs:[new qn([Rt.Dimension,n.toString()+t,i[0][2],i[i.length-1][3],{value:n,type:Number.isInteger(n)?Pn.Integer:Pn.Number,unit:t}])],operation:EL}}function T7e(e,t){let n=e.tokens();return{inputs:[new qn([Rt.Percentage,t.toString()+"%",n[0][2],n[n.length-1][3],{value:t}])],operation:EL}}function tH(e,t){let n=e.tokens();return{inputs:[new qn([Rt.Number,t.toString(),n[0][2],n[n.length-1][3],{value:t,type:Number.isInteger(t)?Pn.Integer:Pn.Number}])],operation:EL}}function v7e(e,t){let n=t.value;return ms(n)?g0(e,"rad",Math.acos(n[4].value)):-1}function C7e(e,t){let n=t.value;return ms(n)?g0(e,"rad",Math.asin(n[4].value)):-1}function x7e(e,t){let n=t.value;return ms(n)?g0(e,"rad",Math.atan(n[4].value)):-1}function yL(e){return Ta(e)||ms(e)}function f$(e){if(e.length===0)return!0;let t=e[0];if(!io(t))return!1;if(e.length===1)return!0;if(Ta(t)){let n=Ll(t[4].unit);for(let i=1;i<e.length;i++){let o=e[i];if(t[0]!==o[0]||n!==Ll(o[4].unit))return!1}return!0}for(let n=1;n<e.length;n++){let i=e[n];if(t[0]!==i[0])return!1}return!0}function QH(e,t){return!!io(e)&&(Ta(e)?e[0]===t[0]&&Ll(e[4].unit)===Ll(t[4].unit):e[0]===t[0])}function D7e(e,t,n){let i=t.value;if(!yL(i))return-1;let o=Gl(i,n.value);return QH(i,o)?g0(e,"rad",Math.atan2(i[4].value,o[4].value)):-1}function P7e(e,t,n){let i=t.value;return!io(i)||!n.rawPercentages&&so(i)?-1:YH(e,i,Math.abs(i[4].value))}function w7e(e,t,n,i,o){if(!Bi(t)||!Bi(n)||!Bi(i))return-1;let r=t.value;if(!io(r)||!o.rawPercentages&&so(r))return-1;let l=Gl(r,n.value);if(!QH(r,l))return-1;let s=Gl(r,i.value);return QH(r,s)?YH(e,r,Math.max(r[4].value,Math.min(l[4].value,s[4].value))):-1}function k7e(e,t){let n=t.value;if(!yL(n))return-1;let i=n[4].value;if(Ta(n))switch(n[4].unit.toLowerCase()){case"rad":break;case"deg":i=mL.get("rad")(n[4].value);break;case"grad":i=E0.get("rad")(n[4].value);break;case"turn":i=y0.get("rad")(n[4].value);break;default:return-1}return i=Math.cos(i),tH(e,i)}function N7e(e,t){let n=t.value;return ms(n)?tH(e,Math.exp(n[4].value)):-1}function R7e(e,t,n){if(!t.every(Bi))return-1;let i=t[0].value;if(!io(i)||!n.rawPercentages&&so(i))return-1;let o=t.map(s=>Gl(i,s.value));if(!f$(o))return-1;let r=o.map(s=>s[4].value),l=Math.hypot(...r);return YH(e,i,l)}function nre(e,t,n){if(!t.every(Bi))return-1;let i=t[0].value;if(!io(i)||!n.rawPercentages&&so(i))return-1;let o=t.map(s=>Gl(i,s.value));if(!f$(o))return-1;let r=o.map(s=>s[4].value),l=Math.max(...r);return YH(e,i,l)}function ire(e,t,n){if(!t.every(Bi))return-1;let i=t[0].value;if(!io(i)||!n.rawPercentages&&so(i))return-1;let o=t.map(s=>Gl(i,s.value));if(!f$(o))return-1;let r=o.map(s=>s[4].value),l=Math.min(...r);return YH(e,i,l)}function $7e(e,t,n){let i=t.value;if(!io(i))return-1;let o=Gl(i,n.value);if(!QH(i,o))return-1;let r;return r=o[4].value===0?Number.NaN:Number.isFinite(i[4].value)&&(Number.isFinite(o[4].value)||(o[4].value!==Number.POSITIVE_INFINITY||i[4].value!==Number.NEGATIVE_INFINITY&&!Object.is(0*i[4].value,-0))&&(o[4].value!==Number.NEGATIVE_INFINITY||i[4].value!==Number.POSITIVE_INFINITY&&!Object.is(0*i[4].value,0)))?Number.isFinite(o[4].value)?(i[4].value%o[4].value+o[4].value)%o[4].value:i[4].value:Number.NaN,YH(e,i,r)}function M7e(e,t,n){let i=t.value,o=n.value;return!ms(i)||!QH(i,o)?-1:tH(e,Math.pow(i[4].value,o[4].value))}function B7e(e,t,n){let i=t.value;if(!io(i))return-1;let o=Gl(i,n.value);if(!QH(i,o))return-1;let r;return r=o[4].value===0?Number.NaN:Number.isFinite(i[4].value)?Number.isFinite(o[4].value)?i[4].value%o[4].value:i[4].value:Number.NaN,YH(e,i,r)}function O7e(e,t,n,i,o){let r=n.value;if(!io(r)||!o.rawPercentages&&so(r))return-1;let l=Gl(r,i.value);if(!QH(r,l))return-1;let s;if(l[4].value===0)s=Number.NaN;else if(Number.isFinite(r[4].value)||Number.isFinite(l[4].value))if(!Number.isFinite(r[4].value)&&Number.isFinite(l[4].value))s=r[4].value;else if(Number.isFinite(r[4].value)&&!Number.isFinite(l[4].value))switch(t){case"down":s=r[4].value<0?-1/0:Object.is(-0,0*r[4].value)?-0:0;break;case"up":s=r[4].value>0?1/0:Object.is(0,0*r[4].value)?0:-0;break;default:s=Object.is(0,0*r[4].value)?0:-0}else if(Number.isFinite(l[4].value))switch(t){case"down":s=Math.floor(r[4].value/l[4].value)*l[4].value;break;case"up":s=Math.ceil(r[4].value/l[4].value)*l[4].value;break;case"to-zero":s=Math.trunc(r[4].value/l[4].value)*l[4].value;break;default:{let u=Math.floor(r[4].value/l[4].value)*l[4].value,H=Math.ceil(r[4].value/l[4].value)*l[4].value;if(u>H){let p=u;u=H,H=p}let a=Math.abs(r[4].value-u),c=Math.abs(r[4].value-H);s=a===c?H:a<c?u:H;break}}else s=r[4].value;else s=Number.NaN;return YH(e,r,s)}function F7e(e,t,n){let i=t.value;return!io(i)||!n.rawPercentages&&so(i)?-1:tH(e,Math.sign(i[4].value))}function j7e(e,t){let n=t.value;if(!yL(n))return-1;let i=n[4].value;if(Ta(n))switch(Ll(n[4].unit)){case"rad":break;case"deg":i=mL.get("rad")(n[4].value);break;case"grad":i=E0.get("rad")(n[4].value);break;case"turn":i=y0.get("rad")(n[4].value);break;default:return-1}return i=Math.sin(i),tH(e,i)}function U7e(e,t){let n=t.value;return ms(n)?tH(e,Math.sqrt(n[4].value)):-1}function q7e(e,t){let n=t.value;if(!yL(n))return-1;let i=n[4].value,o=0,r=n[4].value;if(Ta(n))switch(Ll(n[4].unit)){case"rad":o=sre.get("deg")(i);break;case"deg":o=i,r=mL.get("rad")(i);break;case"grad":o=E0.get("deg")(i),r=E0.get("rad")(i);break;case"turn":o=y0.get("deg")(i),r=y0.get("rad")(i);break;default:return-1}let l=o/90;return r=o%90==0&&l%2!=0?l>0?1/0:-1/0:Math.tan(r),tH(e,r)}function W7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value-n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number}])}if(so(t)&&so(n)){let i=t[4].value-n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&Ta(n)&&(n=Gl(t,n),Ll(t[4].unit)===Ll(n[4].unit))){let i=t[4].value-n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:t[4].unit}])}return-1}function V7e(e,t){if(t.length===1){let n=t[0];if(!n||!Bi(n))return-1;let i=n.value;return ms(i)?tH(e,Math.log(i[4].value)):-1}if(t.length===2){let n=t[0];if(!n||!Bi(n))return-1;let i=n.value;if(!ms(i))return-1;let o=t[1];if(!o||!Bi(o))return-1;let r=o.value;return ms(r)?tH(e,Math.log(i[4].value)/Math.log(r[4].value)):-1}return-1}var K7e=/^none$/i;function d$(e){if(Array.isArray(e)){let n=e.filter(i=>!(K1(i)&&G1(i)));return n.length===1&&d$(n[0])}if(!Bi(e))return!1;let t=e.value;return!!q_(t)&&K7e.test(t[4].value)}function G7e(e,t,n,i,o,r){let l=n.value;if(!io(l))return-1;let s=Gl(l,i.value);if(!QH(l,s))return-1;let u,H=null;if(o&&(H=Gl(l,o.value),!QH(l,H)))return-1;if(Number.isFinite(l[4].value))if(Number.isFinite(s[4].value))if(Number.isFinite(s[4].value-l[4].value))if(H&&!Number.isFinite(H[4].value))u=l[4].value;else{let a=X7e(Z7e([t,ti(l),ti(s),o?`by ${o.toString()}`:""].join(",")),r.randomSeed),c=l[4].value,p=s[4].value;if(c>p&&([c,p]=[p,c]),H&&(H[4].value<=0||Math.abs(c-p)/H[4].value>1e10)&&(H=null),H){let d=Math.abs(c-p),h=a();u=c+Math.floor(d/H[4].value*h)*H[4].value}else{let d=a();u=Number((d*(p-c)+c).toFixed(5))}}else u=Number.NaN;else u=Number.NaN;else u=Number.NaN;return YH(e,l,u)}function X7e(e=.34944106645296036,t=.19228640875738723,n=.8784393832007205,i=.04850964319275053){return()=>{let o=((e|=0)+(t|=0)|0)+(i|=0)|0;return i=i+1|0,e=t^t>>>9,t=(n|=0)+(n<<3)|0,n=(n=n<<21|n>>>11)+o|0,(o>>>0)/4294967296}}function Z7e(e){let t=0,n=0,i=0;t=~t;for(let o=0,r=e.length;o<r;o++)i=255&(t^e.charCodeAt(o)),n=+("0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substring(9*i,9*i+8)),t=t>>>8^n;return~t>>>0}var h$=new Map([["abs",function(t,n,i){return eH(t,n,i,P7e)}],["acos",function(t,n,i){return eH(t,n,i,v7e)}],["asin",function(t,n,i){return eH(t,n,i,C7e)}],["atan",function(t,n,i){return eH(t,n,i,x7e)}],["atan2",function(t,n,i){return hL(t,n,i,D7e)}],["calc",Sl],["clamp",function(t,n,i){let o=am([...t.value.filter(m=>!td(m))],n),r=[],l=[],s=[];{let m=r;for(let g=0;g<o.length;g++){let y=o[g];if(Bi(y)&&GH(y.value)){if(m===s)return-1;if(m===l){m=s;continue}if(m===r){m=l;continue}return-1}m.push(y)}}let u=d$(r),H=d$(s);if(u&&H)return Sl(Lc(l),n,i);let a=Kl(Sl(Lc(l),n,i));if(a===-1)return-1;if(u){let m=Kl(Sl(Lc(s),n,i));return m===-1?-1:ire((c=a,p=m,new ll([Rt.Function,"min(",-1,-1,{value:"min"}],[Rt.CloseParen,")",-1,-1,void 0],[c,new qn([Rt.Comma,",",-1,-1,void 0]),p])),[a,m],i)}if(H){let m=Kl(Sl(Lc(r),n,i));return m===-1?-1:nre(Q7e(m,a),[m,a],i)}var c,p;let d=Kl(Sl(Lc(r),n,i));if(d===-1)return-1;let h=Kl(Sl(Lc(s),n,i));return h===-1?-1:w7e(t,d,a,h,i)}],["cos",function(t,n,i){return eH(t,n,i,k7e)}],["exp",function(t,n,i){return eH(t,n,i,N7e)}],["hypot",function(t,n,i){return _L(t,t.value,n,i,R7e)}],["log",function(t,n,i){return _L(t,t.value,n,i,V7e)}],["max",function(t,n,i){return _L(t,t.value,n,i,nre)}],["min",function(t,n,i){return _L(t,t.value,n,i,ire)}],["mod",function(t,n,i){return hL(t,n,i,$7e)}],["pow",function(t,n,i){return hL(t,n,i,M7e)}],["random",function(t,n,i){let o=t.value.filter(p=>!td(p)),r="",l=[],s=[];for(let p=0;p<o.length;p++){let d=o[p];if(!r&&s.length===0&&Bi(d)&&q_(d.value)){let h=d.value[4].value.toLowerCase();if(h==="per-element"||h.startsWith("--")){r=h;let m=o[p+1];if(!Bi(m)||!GH(m.value))return-1;p++;continue}}if(Bi(d)&&GH(d.value)){let h=o[p+1];if(s.length>0&&Bi(h)&&q_(h.value)){let m=h.value[4].value.toLowerCase();if(m==="by"||m.startsWith("--")){l.push(...o.slice(p+2));break}}}s.push(d)}let u=lre(s,n,i);if(u===-1)return-1;let[H,a]=u,c=null;return l.length&&(c=ore(l,n,i),c===-1)?-1:G7e(t,r,H,a,c,i)}],["rem",function(t,n,i){return hL(t,n,i,B7e)}],["round",function(t,n,i){let o=am([...t.value.filter(c=>!td(c))],n),r="",l=!1,s=[],u=[];{let c=s;for(let p=0;p<o.length;p++){let d=o[p];if(!r&&s.length===0&&u.length===0&&Bi(d)&&q_(d.value)){let h=d.value[4].value.toLowerCase();if(J7e.has(h)){r=h;continue}}if(Bi(d)&&GH(d.value)){if(c===u)return-1;if(c===s&&r&&s.length===0)continue;if(c===s){l=!0,c=u;continue}return-1}c.push(d)}}let H=Kl(Sl(Lc(s),n,i));if(H===-1)return-1;l||u.length!==0||u.push(new qn([Rt.Number,"1",-1,-1,{value:1,type:Pn.Integer}]));let a=Kl(Sl(Lc(u),n,i));return a===-1?-1:(r||(r="nearest"),O7e(t,r,H,a,i))}],["sign",function(t,n,i){return eH(t,n,i,F7e)}],["sin",function(t,n,i){return eH(t,n,i,j7e)}],["sqrt",function(t,n,i){return eH(t,n,i,U7e)}],["tan",function(t,n,i){return eH(t,n,i,q7e)}]]);function Sl(e,t,n){let i=am([...e.value.filter(r=>!td(r))],t);if(i.length===1&&Bi(i[0]))return{inputs:[i[0]],operation:EL};let o=0;for(;o<i.length;){let r=i[o];if(XH(r)&&RS(r.startToken)){let l=Sl(r,t,n);if(l===-1)return-1;i.splice(o,1,l)}else if(Zu(r)){let l=h$.get(r.getName().toLowerCase());if(!l)return-1;let s=l(r,t,n);if(s===-1)return-1;i.splice(o,1,s)}else o++}if(o=0,i.length===1&&jf(i[0]))return i[0];for(;o<i.length;){let r=i[o];if(!r||!Bi(r)&&!jf(r)){o++;continue}let l=i[o+1];if(!l||!Bi(l)){o++;continue}let s=l.value;if(!Q2(s)||s[4].value!=="*"&&s[4].value!=="/"){o++;continue}let u=i[o+2];if(!u||!Bi(u)&&!jf(u))return-1;s[4].value!=="*"?s[4].value!=="/"?o++:i.splice(o,3,{inputs:[r,u],operation:S7e}):i.splice(o,3,{inputs:[r,u],operation:L7e})}if(o=0,i.length===1&&jf(i[0]))return i[0];for(;o<i.length;){let r=i[o];if(!r||!Bi(r)&&!jf(r)){o++;continue}let l=i[o+1];if(!l||!Bi(l)){o++;continue}let s=l.value;if(!Q2(s)||s[4].value!=="+"&&s[4].value!=="-"){o++;continue}let u=i[o+2];if(!u||!Bi(u)&&!jf(u))return-1;s[4].value!=="+"?s[4].value!=="-"?o++:i.splice(o,3,{inputs:[r,u],operation:W7e}):i.splice(o,3,{inputs:[r,u],operation:I7e})}return i.length===1&&jf(i[0])?i[0]:-1}function eH(e,t,n,i){let o=ore(e.value,t,n);return o===-1?-1:i(e,o,n)}function ore(e,t,n){let i=Kl(Sl(Lc(am([...e.filter(o=>!td(o))],t)),t,n));return i===-1?-1:i}function hL(e,t,n,i){let o=lre(e.value,t,n);if(o===-1)return-1;let[r,l]=o;return i(e,r,l,n)}function lre(e,t,n){let i=am([...e.filter(u=>!td(u))],t),o=[],r=[];{let u=o;for(let H=0;H<i.length;H++){let a=i[H];if(Bi(a)&&GH(a.value)){if(u===r)return-1;if(u===o){u=r;continue}return-1}u.push(a)}}let l=Kl(Sl(Lc(o),t,n));if(l===-1)return-1;let s=Kl(Sl(Lc(r),t,n));return s===-1?-1:[l,s]}function _L(e,t,n,i,o){let r=z7e(e.value,n,i);return r===-1?-1:o(e,r,i)}function z7e(e,t,n){let i=am([...e.filter(r=>!td(r))],t),o=[];{let r=[],l=[];for(let s=0;s<i.length;s++){let u=i[s];Bi(u)&&GH(u.value)?(r.push(l),l=[]):l.push(u)}r.push(l);for(let s=0;s<r.length;s++){if(r[s].length===0)return-1;let u=Kl(Sl(Lc(r[s]),t,n));if(u===-1)return-1;o.push(u)}}return o}var J7e=new Set(["nearest","up","down","to-zero"]);function Lc(e){return new ll([Rt.Function,"calc(",-1,-1,{value:"calc"}],[Rt.CloseParen,")",-1,-1,void 0],e)}function Q7e(e,t){return new ll([Rt.Function,"max(",-1,-1,{value:"max"}],[Rt.CloseParen,")",-1,-1,void 0],[e,new qn([Rt.Comma,",",-1,-1,void 0]),t])}function Y7e(e){if(e===-1)return-1;if(Zu(e))return e;let t=e.value;return io(t)&&Number.isNaN(t[4].value)?ms(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,"NaN",t[2],t[3],{value:"NaN"}])]):Ta(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,"NaN",t[2],t[3],{value:"NaN"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Dimension,"1"+t[4].unit,t[2],t[3],{value:1,type:Pn.Integer,unit:t[4].unit}])]):so(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,"NaN",t[2],t[3],{value:"NaN"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Percentage,"1%",t[2],t[3],{value:1}])]):-1:e}function eje(e){if(e===-1)return-1;if(Zu(e))return e;let t=e.value;if(!io(t)||Number.isFinite(t[4].value)||Number.isNaN(t[4].value))return e;let n="";return Number.NEGATIVE_INFINITY===t[4].value&&(n="-"),ms(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,n+"infinity",t[2],t[3],{value:n+"infinity"}])]):Ta(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,n+"infinity",t[2],t[3],{value:n+"infinity"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Dimension,"1"+t[4].unit,t[2],t[3],{value:1,type:Pn.Integer,unit:t[4].unit}])]):new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,n+"infinity",t[2],t[3],{value:n+"infinity"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Percentage,"1%",t[2],t[3],{value:1}])])}function tje(e){if(e===-1)return-1;if(Zu(e))return e;let t=e.value;return io(t)&&Object.is(-0,t[4].value)&&(t[1]==="-0"||(so(t)?t[1]="-0%":Ta(t)?t[1]="-0"+t[4].unit:t[1]="-0")),e}function rje(e,t=13){if(e===-1)return-1;if(t<=0||Zu(e))return e;let n=e.value;if(!io(n)||Number.isInteger(n[4].value))return e;let i=Number(n[4].value.toFixed(t)).toString();return ms(n)?n[1]=i:so(n)?n[1]=i+"%":Ta(n)&&(n[1]=i+n[4].unit),e}function nje(e){return e===-1?-1:(Zu(e)||Ta(e.value)&&(e.value=A7e(e.value)),e)}function ije(e,t){let n=e;return t?.toCanonicalUnits&&(n=nje(n)),n=rje(n,t?.precision),n=tje(n),t?.censorIntoStandardRepresentableValues||(n=Y7e(n),n=eje(n)),n}function sje(e){let t=new Map;if(!e)return t;for(let[n,i]of e)if(q1(i))t.set(n,i);else if(typeof i=="string"){let o=U1({css:i}),r=o.nextToken();if(o.nextToken(),!o.endOfFile()||!io(r))continue;t.set(n,r)}return t}function cre(e,t){let n=sje(t?.globals);return Iee(e,i=>{if(!Zu(i))return;let o=h$.get(i.getName().toLowerCase());if(!o)return;let r=ije(Kl(o(i,n,t??{})),t);return r!==-1?r:void 0})}var N9t=new Set(h$.keys());function om(e){let t=X2({css:`calc(${e})`}),n=Aee(t,{});if(!n)return null;let o=cre([[n]],{randomSeed:1,precision:4})[0][0];return Zu(o)&&o.name[1]==="calc("?null:ti(...o.tokens())}function ure(e,t,n){if(!t.designSystem)return e;let i=[],o=[];return e=sm(e,r=>{let l=pd(r.value,{replace({name:a}){if(!a.startsWith("--"))return null;let c=dd(t.designSystem,a);return c===null?null:(c=sm(c,p=>om(p.value)),c)}}),s=om(l);if(r.value===s||!s)return null;o.push(r.range);let u=zH(s,n.rootFontSize,!1);if(u!==s)return i.push({index:r.range.end+1,value:`${s} = ${u}`}),null;let H=gL(s);return H!==s?(i.push({index:r.range.end+1,value:`${s} = ${H}`}),null):(i.push({index:r.range.end+1,value:s}),null)}),e=pd(e,{recursive:!1,replace({name:r,range:l}){if(!r.startsWith("--"))return null;for(let a of o)if(a.start<=l.start&&a.end>=l.end)return null;let s=dd(t.designSystem,r);if(s===null)return null;let u=zH(s,n.rootFontSize,!1);if(u!==s)return i.push({index:l.end+1,value:`${s} = ${u}`}),null;let H=gL(s);return H!==s?(i.push({index:l.end+1,value:`${s} = ${H}`}),null):(s=sm(s,a=>{let c=om(a.value);return!c||c===a.value?null:`calc(${a.value}) \u2248 ${c}`}),i.push({index:l.end+1,value:s}),null)}}),K_(e,i)}function Hre(e,t){return t.designSystem&&(e=sm(e,n=>{let i=pd(n.value,{replace({name:o,fallback:r}){if(!o.startsWith("--"))return null;let l=dd(t.designSystem,o);return l===null?r:l}});return om(i)}),e=pd(e,{replace({name:n,fallback:i}){if(!n.startsWith("--"))return null;let o=dd(t.designSystem,n);return o===null?i:o}})),e}function lm(e){return(e>0n)-(e<0n)}function Tl(e,t,n=()=>!0){let i=e.modules.jit.generateRules.module(new Set(t),e.jitContext).sort(([l],[s])=>lm(l-s)),o=e.modules.postcss.module.root({nodes:i.map(([,l])=>l)});e.modules.jit.expandApplyAtRules.module(e.jitContext)(o),e.modules.jit.evaluateTailwindFunctions?.module?.(e.jitContext)(o);let r=[];return o.walkRules(l=>{n(l)&&r.push(l)}),{root:o,rules:r}}async function cm(e,t,n){let i=await e.editor.getConfiguration(n),o=t.clone();o.walkAtRules("defaults",u=>{u.remove()});let r=o.toString();r=ure(r,e,i.tailwindCSS),r=bL(r,i.tailwindCSS);let l=e.v4?2:4,s=e.v4?/^(?: )+/gm:/^(?: )+/gm;return r.replace(/([^;{}\s])(\n\s*})/g,(u,H,a)=>`${H};${a}`).replace(s,u=>" ".repeat(u.length/l*i.editor.tabSize))}async function _$(e,t,n){let i=await e.editor.getConfiguration(n),o=[];return t.walkDecls(({prop:r,value:l})=>{l=Hre(l,e).trim(),i.tailwindCSS.showPixelEquivalents&&(l=zH(l,i.tailwindCSS.rootFontSize)),o.push(`${r}: ${l};`)}),o.join(" ")}function aje(e,t,n,i){let o=r=>{r.walkClasses(l=>{l.value===n&&(l.value=i)})};return e.modules.postcssSelectorParser.module(o).processSync(t)}function oje(e){return e.type==="atrule"}function m$(e,t,n){let i=[aje(e,t.selector,n,"__placeholder__")],o=t;for(;o.parent&&o.parent.type!=="root";)o=o.parent,oje(o)&&i.unshift(`@${o.name} ${o.params}`);return i}var sM=Er(E$());var qs=Er(nM(),1),Zl=qs.default,z2t=qs.default.stringify,J2t=qs.default.fromJSON,Q2t=qs.default.plugin,Y2t=qs.default.parse,eRt=qs.default.list,tRt=qs.default.document,rRt=qs.default.comment,nRt=qs.default.atRule,lie=qs.default.rule,iRt=qs.default.decl,cie=qs.default.root,sRt=qs.default.CssSyntaxError,aRt=qs.default.Declaration,oRt=qs.default.Container,lRt=qs.default.Processor,cRt=qs.default.Document,uRt=qs.default.Comment,HRt=qs.default.Warning,pRt=qs.default.AtRule,dRt=qs.default.Result,fRt=qs.default.Input,hRt=qs.default.Rule,_Rt=qs.default.Root,mRt=qs.default.Node;var o6e=["accent-color","caret-color","color","column-rule-color","background-color","border-color","border-top-color","border-right-color","border-bottom-color","border-left-color","border-inline-color","border-inline-start-color","border-inline-end-color","border-block-color","border-block-start-color","border-block-end-color","fill","outline-color","stop-color","stroke","text-decoration-color"];function uie(e){if(typeof e!="string")return null;let t=e.toLowerCase();return t==="transparent"?"transparent":t==="currentcolor"?"currentColor":null}var l6e=new RegExp(`(?:^|\\s|\\(|,)(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgba?|hsla?|(?:ok)?(?:lab|lch))\\(\\s*(-?[\\d.]+(%|deg|rad|grad|turn)?(\\s*[,/]\\s*|\\s+)+){2,3}\\s*([\\d.]+%?|var\\([^)]+\\))?\\)|transparent|currentColor|${Object.keys(sM.default).join("|")})(?:$|\\s|\\)|,)`,"gi");function c6e(e,t){if(/(?:box|drop)-shadow/.test(t)&&!/--tw-drop-shadow/.test(t))return[];function n(o){let r=o[1].replace(/var\([^)]+\)/,"1");return uie(r)??oM(r)}t=rre(e,t),t=m6e(t),t=y6e(t);let i=t.matchAll(l6e);return Array.from(i,n).filter(Boolean)}function qL(e,t){let n=Object.keys(t).filter(c=>!(c==="content"&&(t[c]==='""'||t[c]==="''"||t[c]==="var(--tw-content)")||c==="mask-image"||c==="mask-composite"||c==="--tw-drop-shadow"));if(n.length===0)return null;let i=n.filter(c=>!c.startsWith("--")),o=i.length===0;if(!o&&i.some(c=>!o6e.includes(c)))return null;let l=(o?n:i).flatMap(c=>wp(t[c]).flatMap(p=>c6e(e,p))),s=PD(l.map(c=>typeof c=="string"?c:im({...c,alpha:void 0})));if(s.length!==1)return null;let u=uie(s[0]);if(u)return u;let H=l.filter(c=>typeof c!="string"),a=PD(H.map(c=>c.alpha??1));return a.length===1?H[0]:a.length===2&&a.includes(0)?H.find(c=>(c.alpha??1)!==0):null}function u6e(e,t){t=t.clone(),t.walkAtRules(o=>{o.name==="property"&&o.remove(),o.name==="supports"&&o.params==="(-moz-orient: inline)"&&o.remove()});let n={},i=Zl.rule({selector:".x",nodes:[]});return t.walkDecls(o=>{i.append(o.clone())}),t.walkDecls(o=>{n[o.prop]??=[],n[o.prop].push(o.value)}),qL(e,n)}var H6e=/^-/,p6e=/^-?((min-|max-)?[wh]|z|start|order|opacity|rounded|row|col|size|basis|end|duration|ease|font|top|left|bottom|right|inset|leading|cursor|(space|scale|skew|rotate)-[xyz]|gap(-[xy])?|(scroll-)?[pm][trblxyse]?)-/,d6e=/^-?mask-/;function f6e(e){return!!(H6e.test(e)||d6e.test(e)||p6e.test(e))}function vc(e,t){if(e.v4){if(f6e(t))return null;let o=e.designSystem.compile([t])[0];return u6e(e,o)}if(e.jit){if(e.classNames){let u=(0,iM.default)(e.classNames.classNames,[t,"__info"]);if(u&&u.__rule)return qL(e,yc(u))}let o;try{o=Tl(e,[t])}catch(u){return console.error(`Error generating rules for className: ${t}`),console.error(u),null}let{root:r,rules:l}=o;if(l.length===0)return null;let s={};return r.walkDecls(u=>{let H=s[u.prop];H?Array.isArray(H)?H.push(u.value):s[u.prop]=[H,u.value]:s[u.prop]=u.value}),qL(e,s)}let n=Yu(e,t);if(!n)return null;let i=(0,iM.default)(e.classNames.classNames,[...n,"__info"]);return i.__rule?qL(e,yc(i)):null}function Kf(e){if(typeof e!="string")return null;let t=e.trim();return t.toLowerCase()==="transparent"?"transparent":t.toLowerCase()==="currentcolor"?"currentColor":!/^\s*(?:rgba?|hsla?|(?:ok)?(?:lab|lch))\s*\([^)]+\)\s*$/.test(t)&&!/^\s*#[0-9a-f]+\s*$/i.test(t)&&!Object.keys(sM.default).includes(t)?null:oM(t)}var h6e=bc("rgb");function aM(e){let t=p$(h6e(e));return{red:t.r,green:t.g,blue:t.b,alpha:t.alpha??1}}function du(e){return e.alpha===void 0||e.alpha===1?c$(e):_0(e)}var _6e=/color-mix\(in [^,]+,\s*(.*?)\s*(\d+|\.\d+|\d+\.\d+)%,\s*transparent\)/g;function oM(e){try{return r0(e)??null}catch(t){return console.error("Error parsing color",e),console.error(t),null}}function m6e(e){return e.replace(_6e,(t,n,i)=>{if(n.startsWith("var("))return t;let o=oM(n);if(!o)return t;let r=Number(i)/100;return Number.isNaN(r)?t:im({...o,alpha:r})})}var E6e=/light-dark\(\s*(.*?)\s*,\s*.*?\s*\)/g;function y6e(e){return e.replace(E6e,(t,n)=>n)}var Hie=["rgb","rgba","hsl","hsla","lch","lab","oklch","oklab"];function gL(e){let t=Kf(e);return!t||typeof t=="string"||!H$("rgb")(t)?e:du(t)}var die=Object.assign(({comments:e})=>({postcssPlugin:"plugin",Declaration(t){Hie.some(n=>t.value.includes(n))&&(0,pie.default)(t.value).walk(n=>{if(n.type!=="function"||n.value==="var")return!0;if(!Hie.includes(n.value))return!1;let i=n.nodes.filter(l=>l.type==="word").map(l=>l.value);if(i.length<3)return!1;let o=`${n.value}(${i.join(" ")})`,r=gL(o);return r===o||e.push({index:t.source.start.offset+`${t.prop}${t.raws.between}`.length+n.sourceEndIndex,value:r}),!1})}}),{postcss:!0});function bL(e,t){let n=[],i=[];t.showPixelEquivalents&&i.push(Ree({comments:n,rootFontSize:t.rootFontSize})),i.push(die({comments:n}));try{Zl(i).process(e,{from:void 0}).css}catch{return e}return K_(e,n)}function WL(e){return Ja(e)?`${Object.keys(e).length} values`:typeof e=="function"?"\u0192":typeof e=="string"?e:(0,_ie.default)(e,{inlineCharacterLimit:1/0,singleQuotes:!1,transform:(t,n,i)=>typeof t[n]=="function"?"\u0192":i})}function j0(e,t,n){if(t.__rule!==!0&&!Array.isArray(t))return null;if(Array.isArray(t)){let H=t.map(a=>j0(e,a,n)).filter(Boolean);return H.length===0?null:H.join(`
|
1776
|
+
`||t[$n]===" "||t[$n]===" ");)$n++;let o;if(qS(t)&&(o=i0(t),o.type!==br.Hue)){n.push({type:br.Alpha,value:o});continue}if(ER(t)&&VS(t)==="none"){n.push({type:br.Alpha,value:{type:br.None,value:void 0}});continue}return}if(/\d/.test(i)){$n--,n.push(i0(t));continue}if(mR.test(i)){$n--,n.push(zFe(t));continue}return}return n}function QFe(e){e._i=0;let t=e[e._i++];if(!t||t.type!==br.Function||t.value!=="color"||(t=e[e._i++],t.type!==br.Ident))return;let n=_R[t.value];if(!n)return;let i={mode:n},o=Uee(e,!1);if(!o)return;let r=US(n).channels;for(let l=0,s,u;l<r.length;l++)s=o[l],u=r[l],s.type!==br.None&&(i[u]=s.type===br.Number?s.value:s.value/100,u==="alpha"&&(i[u]=Math.max(0,Math.min(1,i[u]))));return i}function Uee(e,t){let n=[],i;for(;e._i<e.length;){if(i=e[e._i++],i.type===br.None||i.type===br.Number||i.type===br.Alpha||i.type===br.Percentage||t&&i.type===br.Hue){n.push(i);continue}if(i.type===br.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==br.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:br.None,value:void 0}),n.every(o=>o.type!==br.Alpha)?n:void 0}}function YFe(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==br.Function)return;let i=Uee(e,t);if(i)return i.unshift(n.value),i}var e8e=e=>{if(typeof e!="string")return;let t=JFe(e),n=t?YFe(t,!0):void 0,i,o=0,r=n0.length;for(;o<r;)if((i=n0[o++](e,n))!==void 0)return i;return t?QFe(t):void 0},r0=e8e;function t8e(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let n={mode:"rgb"},[,i,o,r,l]=t;if(!(i.type===br.Hue||o.type===br.Hue||r.type===br.Hue))return i.type!==br.None&&(n.r=i.type===br.Number?i.value/255:i.value/100),o.type!==br.None&&(n.g=o.type===br.Number?o.value/255:o.value/100),r.type!==br.None&&(n.b=r.type===br.Number?r.value/255:r.value/100),l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var qee=t8e;var r8e=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Wee=r8e;var Vee=(e,t,n)=>e+n*(t-e);var n8e=e=>{let t=[];for(let n=0;n<e.length-1;n++){let i=e[n],o=e[n+1];i===void 0&&o===void 0?t.push(void 0):i!==void 0&&o!==void 0?t.push([i,o]):t.push(i!==void 0?[i,i]:[o,o])}return t},Kee=e=>t=>{let n=n8e(t);return i=>{let o=i*n.length,r=i>=1?n.length-1:Math.max(Math.floor(o),0),l=n[r];return l===void 0?void 0:e(l[0],l[1],o-r)}};var Sr=Kee(Vee);var _i=e=>{let t=!1,n=e.map(i=>i!==void 0?(t=!0,i):1);return t?n:e};var i8e={mode:"rgb",channels:["r","g","b","alpha"],parse:[qee,Bee,Fee,Mee,Wee,"srgb"],serialize:"srgb",interpolate:{r:Sr,g:Sr,b:Sr,alpha:{use:Sr,fixup:_i}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ac=i8e;var yR=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),s8e=e=>{let t=yR(e.r),n=yR(e.g),i=yR(e.b),o={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*i};return e.alpha!==void 0&&(o.alpha=e.alpha),o},gR=s8e;var bR=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),a8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"a98",r:bR(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:bR(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:bR(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return i!==void 0&&(o.alpha=i),o},AR=a8e;var IR=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},o8e=({r:e,g:t,b:n,alpha:i})=>{let o={mode:"lrgb",r:IR(e),g:IR(t),b:IR(n)};return i!==void 0&&(o.alpha=i),o},Ic=o8e;var l8e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r={mode:"xyz65",x:.4123907992659593*t+.357584339383878*n+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*i};return o!==void 0&&(r.alpha=o),r},Al=l8e;var SR=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},c8e=({r:e,g:t,b:n,alpha:i},o="rgb")=>{let r={mode:o,r:SR(e),g:SR(t),b:SR(n)};return i!==void 0&&(r.alpha=i),r},Sc=c8e;var u8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Sc({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return i!==void 0&&(o.alpha=i),o},Il=u8e;var H8e={...Ac,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>AR(Al(e)),xyz65:AR},toMode:{rgb:e=>Il(gR(e)),xyz65:gR}},Gee=H8e;var p8e=e=>(e=e%360)<0?e+360:e,Ls=p8e;var d8e=(e,t)=>e.map((n,i,o)=>{if(n===void 0)return n;let r=Ls(n);return i===0||e[i-1]===void 0?r:t(r-Ls(o[i-1]))}).reduce((n,i)=>!n.length||i===void 0||n[n.length-1]===void 0?(n.push(i),n):(n.push(i+n[n.length-1]),n),[]),po=e=>d8e(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t));var Qa=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Xee=Math.PI/180,Zee=180/Math.PI;var zee=Qa[3]*Qa[4],Jee=Qa[1]*Qa[4],Qee=Qa[1]*Qa[2]-Qa[0]*Qa[3],f8e=({r:e,g:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(Qee*n+e*zee-t*Jee)/(Qee+zee-Jee),r=n-o,l=(Qa[4]*(t-o)-Qa[2]*r)/Qa[3],s={mode:"cubehelix",l:o,s:o===0||o===1?void 0:Math.sqrt(r*r+l*l)/(Qa[4]*o*(1-o))};return s.s&&(s.h=Math.atan2(l,r)*Zee-120),i!==void 0&&(s.alpha=i),s},Yee=f8e;var h8e=({h:e,s:t,l:n,alpha:i})=>{let o={mode:"rgb"};e=(e===void 0?0:e+120)*Xee,n===void 0&&(n=0);let r=t===void 0?0:t*n*(1-n),l=Math.cos(e),s=Math.sin(e);return o.r=n+r*(Qa[0]*l+Qa[1]*s),o.g=n+r*(Qa[2]*l+Qa[3]*s),o.b=n+r*(Qa[4]*l+Qa[5]*s),i!==void 0&&(o.alpha=i),o},ete=h8e;var id=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=Ls(e.h),i=Ls(t.h),o=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*o},tte=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=Ls(e.h),i=Ls(t.h);return Math.abs(i-n)>180?n-(i-360*Math.sign(i-n)):i-n},sd=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=Ls(e.h),i=Ls(t.h),o=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*o};var fo=e=>{let t=e.reduce((i,o)=>{if(o!==void 0){let r=o*Math.PI/180;i.sin+=Math.sin(r),i.cos+=Math.cos(r)}return i},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n};var _8e={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Yee},toMode:{rgb:ete},interpolate:{h:{use:Sr,fixup:po},s:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},rte=_8e;var m8e=({l:e,a:t,b:n,alpha:i},o="lch")=>{t===void 0&&(t=0),n===void 0&&(n=0);let r=Math.sqrt(t*t+n*n),l={mode:o,l:e,c:r};return r&&(l.h=Ls(Math.atan2(n,t)*180/Math.PI)),i!==void 0&&(l.alpha=i),l},Wl=m8e;var E8e=({l:e,c:t,h:n,alpha:i},o="lab")=>{n===void 0&&(n=0);let r={mode:o,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return i!==void 0&&(r.alpha=i),r},Vl=E8e;var KS=Math.pow(29,3)/Math.pow(3,3),GS=Math.pow(6,3)/Math.pow(29,3);var da={X:.9642956764295677,Y:1,Z:.8251046025104602},ad={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Uvt=Math.pow(29,3)/Math.pow(3,3),qvt=Math.pow(6,3)/Math.pow(29,3);var LR=e=>Math.pow(e,3)>GS?Math.pow(e,3):(116*e-16)/KS,y8e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(e+16)/116,r=t/500+o,l=o-n/200,s={mode:"xyz65",x:LR(r)*ad.X,y:LR(o)*ad.Y,z:LR(l)*ad.Z};return i!==void 0&&(s.alpha=i),s},XS=y8e;var g8e=e=>Il(XS(e)),od=g8e;var TR=e=>e>GS?Math.cbrt(e):(KS*e+16)/116,b8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=TR(e/ad.X),r=TR(t/ad.Y),l=TR(n/ad.Z),s={mode:"lab65",l:116*r-16,a:500*(o-r),b:200*(r-l)};return i!==void 0&&(s.alpha=i),s},ZS=b8e;var A8e=e=>{let t=ZS(Al(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ld=A8e;var Bf=.14444444444444443*Math.PI,G_=Math.cos(Bf),X_=Math.sin(Bf),zS=100/Math.log(139/100);var I8e=({l:e,c:t,h:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"lab65",l:(Math.exp(e*1/zS)-1)/.0039},r=(Math.exp(.0435*t*1*1)-1)/.075,l=r*Math.cos(n/180*Math.PI-Bf),s=r*Math.sin(n/180*Math.PI-Bf);return o.a=l*G_-s/.83*X_,o.b=l*X_+s/.83*G_,i!==void 0&&(o.alpha=i),o},a0=I8e;var S8e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=t*G_+n*X_,r=.83*(n*G_-t*X_),l=Math.sqrt(o*o+r*r),s={mode:"dlch",l:zS/1*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*1*1)};return s.c&&(s.h=Ls((Math.atan2(r,o)+Bf)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},o0=S8e;var nte=e=>a0(Wl(e,"dlch")),ite=e=>Vl(o0(e),"dlab"),L8e={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:nte,rgb:e=>od(nte(e))},fromMode:{lab65:ite,rgb:e=>ite(ld(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:Sr,a:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},ste=L8e;var T8e={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:a0,dlab:e=>Vl(e,"dlab"),rgb:e=>od(a0(e))},fromMode:{lab65:o0,dlab:e=>Wl(e,"dlch"),rgb:e=>o0(ld(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:Sr,c:Sr,h:{use:Sr,fixup:po},alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},ate=T8e;function CR({h:e,s:t,i:n,alpha:i}){e=Ls(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.abs(e/60%2-1),r;switch(Math.floor(e/60)){case 0:r={r:n*(1+t*(3/(2-o)-1)),g:n*(1+t*(3*(1-o)/(2-o)-1)),b:n*(1-t)};break;case 1:r={r:n*(1+t*(3*(1-o)/(2-o)-1)),g:n*(1+t*(3/(2-o)-1)),b:n*(1-t)};break;case 2:r={r:n*(1-t),g:n*(1+t*(3/(2-o)-1)),b:n*(1+t*(3*(1-o)/(2-o)-1))};break;case 3:r={r:n*(1-t),g:n*(1+t*(3*(1-o)/(2-o)-1)),b:n*(1+t*(3/(2-o)-1))};break;case 4:r={r:n*(1+t*(3*(1-o)/(2-o)-1)),g:n*(1-t),b:n*(1+t*(3/(2-o)-1))};break;case 5:r={r:n*(1+t*(3/(2-o)-1)),g:n*(1-t),b:n*(1+t*(3*(1-o)/(2-o)-1))};break;default:r={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return r.mode="rgb",i!==void 0&&(r.alpha=i),r}function xR({r:e,g:t,b:n,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.max(e,t,n),r=Math.min(e,t,n),l={mode:"hsi",s:e+t+n===0?0:1-3*r/(e+t+n),i:(e+t+n)/3};return o-r!==0&&(l.h=(o===e?(t-n)/(o-r)+(t<n)*6:o===t?(n-e)/(o-r)+2:(e-t)/(o-r)+4)*60),i!==void 0&&(l.alpha=i),l}var v8e={mode:"hsi",toMode:{rgb:CR},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:xR},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:Sr,fixup:po},s:Sr,i:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},ote=v8e;function DR({h:e,s:t,l:n,alpha:i}){e=Ls(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let o=n+t*(n<.5?n:1-n),r=o-(o-n)*2*Math.abs(e/60%2-1),l;switch(Math.floor(e/60)){case 0:l={r:o,g:r,b:2*n-o};break;case 1:l={r,g:o,b:2*n-o};break;case 2:l={r:2*n-o,g:o,b:r};break;case 3:l={r:2*n-o,g:r,b:o};break;case 4:l={r,g:2*n-o,b:o};break;case 5:l={r:o,g:2*n-o,b:r};break;default:l={r:2*n-o,g:2*n-o,b:2*n-o}}return l.mode="rgb",i!==void 0&&(l.alpha=i),l}function PR({r:e,g:t,b:n,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.max(e,t,n),r=Math.min(e,t,n),l={mode:"hsl",s:o===r?0:(o-r)/(1-Math.abs(o+r-1)),l:.5*(o+r)};return o-r!==0&&(l.h=(o===e?(t-n)/(o-r)+(t<n)*6:o===t?(n-e)/(o-r)+2:(e-t)/(o-r)+4)*60),i!==void 0&&(l.alpha=i),l}var C8e=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},lte=C8e;var x8e=new RegExp(`^hsla?\\(\\s*${Oee}${nd}${Mf}${nd}${Mf}\\s*(?:,\\s*${t0}\\s*)?\\)$`),D8e=e=>{let t=e.match(x8e);if(!t)return;let n={mode:"hsl"};return t[3]!==void 0?n.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(n.h=lte(t[1],t[2])),t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?n.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))),n},cte=D8e;function P8e(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let n={mode:"hsl"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Percentage)return;n.h=i.value}if(o.type!==br.None){if(o.type===br.Hue)return;n.s=o.value/100}if(r.type!==br.None){if(r.type===br.Hue)return;n.l=r.value/100}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var ute=P8e;var w8e={mode:"hsl",toMode:{rgb:DR},fromMode:{rgb:PR},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[ute,cte],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Sr,fixup:po},s:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},JS=w8e;function l0({h:e,s:t,v:n,alpha:i}){e=Ls(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.abs(e/60%2-1),r;switch(Math.floor(e/60)){case 0:r={r:n,g:n*(1-t*o),b:n*(1-t)};break;case 1:r={r:n*(1-t*o),g:n,b:n*(1-t)};break;case 2:r={r:n*(1-t),g:n,b:n*(1-t*o)};break;case 3:r={r:n*(1-t),g:n*(1-t*o),b:n};break;case 4:r={r:n*(1-t*o),g:n*(1-t),b:n};break;case 5:r={r:n,g:n*(1-t),b:n*(1-t*o)};break;default:r={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return r.mode="rgb",i!==void 0&&(r.alpha=i),r}function c0({r:e,g:t,b:n,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.max(e,t,n),r=Math.min(e,t,n),l={mode:"hsv",s:o===0?0:1-r/o,v:o};return o-r!==0&&(l.h=(o===e?(t-n)/(o-r)+(t<n)*6:o===t?(n-e)/(o-r)+2:(e-t)/(o-r)+4)*60),i!==void 0&&(l.alpha=i),l}var k8e={mode:"hsv",toMode:{rgb:l0},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:c0},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:Sr,fixup:po},s:Sr,v:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:id},average:{h:fo}},QS=k8e;function wR({h:e,w:t,b:n,alpha:i}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let o=t+n;t/=o,n/=o}return l0({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:i})}function kR(e){let t=c0(e);if(t===void 0)return;let n=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,o={mode:"hwb",w:(1-n)*i,b:1-i};return t.h!==void 0&&(o.h=t.h),t.alpha!==void 0&&(o.alpha=t.alpha),o}function N8e(e,t){if(!t||t[0]!=="hwb")return;let n={mode:"hwb"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Percentage)return;n.h=i.value}if(o.type!==br.None){if(o.type===br.Hue)return;n.w=o.value/100}if(r.type!==br.None){if(r.type===br.Hue)return;n.b=r.value/100}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var Hte=N8e;var R8e={mode:"hwb",toMode:{rgb:wR},fromMode:{rgb:kR},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Hte],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Sr,fixup:po},w:Sr,b:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:tte},average:{h:fo}},pte=R8e;var Z_=.1593017578125,dte=78.84375,z_=.8359375,J_=18.8515625,Q_=18.6875;function YS(e){if(e<0)return 0;let t=Math.pow(e,1/dte);return 1e4*Math.pow(Math.max(0,t-z_)/(J_-Q_*t),1/Z_)}function eL(e){if(e<0)return 0;let t=Math.pow(e/1e4,Z_);return Math.pow((z_+J_*t)/(1+Q_*t),dte)}var NR=e=>Math.max(e/203,0),M8e=({i:e,t,p:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=YS(e+.008609037037932761*t+.11102962500302593*n),r=YS(e-.00860903703793275*t-.11102962500302599*n),l=YS(e+.5600313357106791*t-.32062717498731885*n),s={mode:"xyz65",x:NR(2.070152218389422*o-1.3263473389671556*r+.2066510476294051*l),y:NR(.3647385209748074*o+.680566024947227*r-.0453045459220346*l),z:NR(-.049747207535812*o-.0492609666966138*r+1.1880659249923042*l)};return i!==void 0&&(s.alpha=i),s},RR=M8e;var $R=(e=0)=>Math.max(e*203,0),B8e=({x:e,y:t,z:n,alpha:i})=>{let o=$R(e),r=$R(t),l=$R(n),s=eL(.3592832590121217*o+.6976051147779502*r-.0358915932320289*l),u=eL(-.1920808463704995*o+1.1004767970374323*r+.0753748658519118*l),H=eL(.0070797844607477*o+.0748396662186366*r+.8433265453898765*l),a=.5*s+.5*u,c=1.61376953125*s-3.323486328125*u+1.709716796875*H,p=4.378173828125*s-4.24560546875*u-.132568359375*H,d={mode:"itp",i:a,t:c,p};return i!==void 0&&(d.alpha=i),d},MR=B8e;var O8e={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:RR,rgb:e=>Il(RR(e))},fromMode:{xyz65:MR,rgb:e=>MR(Al(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:Sr,t:Sr,p:Sr,alpha:{use:Sr,fixup:_i}}},fte=O8e;var F8e=134.03437499999998,j8e=16295499532821565e-27,BR=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,Z_);return Math.pow((z_+J_*t)/(1+Q_*t),F8e)},OR=(e=0)=>Math.max(e*203,0),U8e=({x:e,y:t,z:n,alpha:i})=>{e=OR(e),t=OR(t),n=OR(n);let o=1.15*e-.15*n,r=.66*t+.34*e,l=BR(.41478972*o+.579999*r+.014648*n),s=BR(-.20151*o+1.120649*r+.0531008*n),u=BR(-.0166008*o+.2648*r+.6684799*n),H=(l+s)/2,a={mode:"jab",j:.44*H/(1-.56*H)-j8e,a:3.524*l-4.066708*s+.542708*u,b:.199076*l+1.096799*s-1.295875*u};return i!==void 0&&(a.alpha=i),a},tL=U8e;var q8e=134.03437499999998,hte=16295499532821565e-27,FR=e=>{if(e<0)return 0;let t=Math.pow(e,1/q8e);return 1e4*Math.pow((z_-t)/(Q_*t-J_),1/Z_)},jR=e=>e/203,W8e=({j:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(e+hte)/(.44+.56*(e+hte)),r=FR(o+.13860504*t+.058047316*n),l=FR(o-.13860504*t-.058047316*n),s=FR(o-.096019242*t-.8118919*n),u={mode:"xyz65",x:jR(1.661373024652174*r-.914523081304348*l+.23136208173913045*s),y:jR(-.3250758611844533*r+1.571847026732543*l-.21825383453227928*s),z:jR(-.090982811*r-.31272829*l+1.5227666*s)};return i!==void 0&&(u.alpha=i),u},rL=W8e;var V8e=e=>{let t=tL(Al(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},nL=V8e;var K8e=e=>Il(rL(e)),iL=K8e;var G8e={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:nL,xyz65:tL},toMode:{rgb:iL,xyz65:rL},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:Sr,a:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},_te=G8e;var X8e=({j:e,a:t,b:n,alpha:i})=>{t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.sqrt(t*t+n*n),r={mode:"jch",j:e,c:o};return o&&(r.h=Ls(Math.atan2(n,t)*180/Math.PI)),i!==void 0&&(r.alpha=i),r},UR=X8e;var Z8e=({j:e,c:t,h:n,alpha:i})=>{n===void 0&&(n=0);let o={mode:"jab",j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return i!==void 0&&(o.alpha=i),o},qR=Z8e;var z8e={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:qR,rgb:e=>iL(qR(e))},fromMode:{rgb:e=>UR(nL(e)),jab:UR},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:Sr,fixup:po},c:Sr,j:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},mte=z8e;var cd=Math.pow(29,3)/Math.pow(3,3),Y_=Math.pow(6,3)/Math.pow(29,3);var WR=e=>Math.pow(e,3)>Y_?Math.pow(e,3):(116*e-16)/cd,J8e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=(e+16)/116,r=t/500+o,l=o-n/200,s={mode:"xyz50",x:WR(r)*da.X,y:WR(o)*da.Y,z:WR(l)*da.Z};return i!==void 0&&(s.alpha=i),s},em=J8e;var Q8e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Sc({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return i!==void 0&&(o.alpha=i),o},zu=Q8e;var Y8e=e=>zu(em(e)),sL=Y8e;var e4e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r={mode:"xyz50",x:.436065742824811*t+.3851514688337912*n+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*i};return o!==void 0&&(r.alpha=o),r},Ju=e4e;var VR=e=>e>Y_?Math.cbrt(e):(cd*e+16)/116,t4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=VR(e/da.X),r=VR(t/da.Y),l=VR(n/da.Z),s={mode:"lab",l:116*r-16,a:500*(o-r),b:200*(r-l)};return i!==void 0&&(s.alpha=i),s},tm=t4e;var r4e=e=>{let t=tm(Ju(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},aL=r4e;function n4e(e,t){if(!t||t[0]!=="lab")return;let n={mode:"lab"},[,i,o,r,l]=t;if(!(i.type===br.Hue||o.type===br.Hue||r.type===br.Hue))return i.type!==br.None&&(n.l=Math.min(Math.max(0,i.value),100)),o.type!==br.None&&(n.a=o.type===br.Number?o.value:o.value*125/100),r.type!==br.None&&(n.b=r.type===br.Number?r.value:r.value*125/100),l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var Ete=n4e;var i4e={mode:"lab",toMode:{xyz50:em,rgb:sL},fromMode:{xyz50:tm,rgb:aL},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-100,100],b:[-100,100]},parse:[Ete],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:Sr,a:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},rm=i4e;var s4e={...rm,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:XS,rgb:od},fromMode:{xyz65:ZS,rgb:ld},ranges:{l:[0,100],a:[-86.182,98.234],b:[-107.86,94.477]}},yte=s4e;function a4e(e,t){if(!t||t[0]!=="lch")return;let n={mode:"lch"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Hue)return;n.l=Math.min(Math.max(0,i.value),100)}if(o.type!==br.None&&(n.c=Math.max(0,o.type===br.Number?o.value:o.value*150/100)),r.type!==br.None){if(r.type===br.Percentage)return;n.h=r.value}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var gte=a4e;var o4e={mode:"lch",toMode:{lab:Vl,rgb:e=>sL(Vl(e))},fromMode:{rgb:e=>Wl(aL(e)),lab:Wl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[gte],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Sr,fixup:po},c:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},nm=o4e;var l4e={...nm,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Vl(e,"lab65"),rgb:e=>od(Vl(e,"lab65"))},fromMode:{rgb:e=>Wl(ld(e),"lch65"),lab65:e=>Wl(e,"lch65")},ranges:{l:[0,100],c:[0,133.807],h:[0,360]}},bte=l4e;var c4e=({l:e,u:t,v:n,alpha:i})=>{t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.sqrt(t*t+n*n),r={mode:"lchuv",l:e,c:o};return o&&(r.h=Ls(Math.atan2(n,t)*180/Math.PI)),i!==void 0&&(r.alpha=i),r},KR=c4e;var u4e=({l:e,c:t,h:n,alpha:i})=>{n===void 0&&(n=0);let o={mode:"luv",l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return i!==void 0&&(o.alpha=i),o},GR=u4e;var Ate=(e,t,n)=>4*e/(e+15*t+3*n),Ite=(e,t,n)=>9*t/(e+15*t+3*n),H4e=Ate(da.X,da.Y,da.Z),p4e=Ite(da.X,da.Y,da.Z),d4e=e=>e<=Y_?cd*e:116*Math.cbrt(e)-16,f4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=d4e(t/da.Y),r=Ate(e,t,n),l=Ite(e,t,n);!isFinite(r)||!isFinite(l)?o=r=l=0:(r=13*o*(r-H4e),l=13*o*(l-p4e));let s={mode:"luv",l:o,u:r,v:l};return i!==void 0&&(s.alpha=i),s},u0=f4e;var h4e=(e,t,n)=>4*e/(e+15*t+3*n),_4e=(e,t,n)=>9*t/(e+15*t+3*n),m4e=h4e(da.X,da.Y,da.Z),E4e=_4e(da.X,da.Y,da.Z),y4e=({l:e,u:t,v:n,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let o=t/(13*e)+m4e,r=n/(13*e)+E4e,l=da.Y*(e<=8?e/cd:Math.pow((e+16)/116,3)),s=l*(9*o)/(4*r),u=l*(12-3*o-20*r)/(4*r),H={mode:"xyz50",x:s,y:l,z:u};return i!==void 0&&(H.alpha=i),H},H0=y4e;var g4e=e=>KR(u0(Ju(e))),b4e=e=>zu(H0(GR(e))),A4e={mode:"lchuv",toMode:{luv:GR,rgb:b4e},fromMode:{rgb:g4e,luv:KR},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:Sr,fixup:po},c:Sr,l:Sr,alpha:{use:Sr,fixup:_i}},difference:{h:sd},average:{h:fo}},Ste=A4e;var I4e={...Ac,mode:"lrgb",toMode:{rgb:Sc},fromMode:{rgb:Ic},parse:["srgb-linear"],serialize:"srgb-linear"},Lte=I4e;var S4e={mode:"luv",toMode:{xyz50:H0,rgb:e=>zu(H0(e))},fromMode:{xyz50:u0,rgb:e=>u0(Ju(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:Sr,u:Sr,v:Sr,alpha:{use:Sr,fixup:_i}}},Tte=S4e;var L4e=({r:e,g:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.cbrt(.41222147079999993*e+.5363325363*t+.0514459929*n),r=Math.cbrt(.2119034981999999*e+.6806995450999999*t+.1073969566*n),l=Math.cbrt(.08830246189999998*e+.2817188376*t+.6299787005000002*n),s={mode:"oklab",l:.2104542553*o+.793617785*r-.0040720468*l,a:1.9779984951*o-2.428592205*r+.4505937099*l,b:.0259040371*o+.7827717662*r-.808675766*l};return i!==void 0&&(s.alpha=i),s},oL=L4e;var T4e=e=>{let t=oL(Ic(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ud=T4e;var v4e=({l:e,a:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.pow(e*.9999999984505198+.39633779217376786*t+.2158037580607588*n,3),r=Math.pow(e*1.0000000088817609-.10556134232365635*t-.06385417477170591*n,3),l=Math.pow(e*1.0000000546724108-.08948418209496575*t-1.2914855378640917*n,3),s={mode:"lrgb",r:4.076741661347994*o-3.307711590408193*r+.230969928729428*l,g:-1.2684380040921763*o+2.6097574006633715*r-.3413193963102197*l,b:-.004196086541837188*o-.7034186144594493*r+1.7076147009309444*l};return i!==void 0&&(s.alpha=i),s},Qu=v4e;var C4e=e=>Sc(Qu(e)),Hd=C4e;function p0(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function Of(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function x4e(e,t){let n,i,o,r,l,s,u,H;-1.88170328*e-.80936493*t>1?(n=1.19086277,i=1.76576728,o=.59662641,r=.75515197,l=.56771245,s=4.0767416621,u=-3.3077115913,H=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,i=-.45954404,o=.08285427,r=.1254107,l=.14503204,s=-1.2684380046,u=2.6097574011,H=-.3413193965):(n=1.35733652,i=-.00915799,o=-1.1513021,r=-.50559606,l=.00692167,s=-.0041960863,u=-.7034186147,H=1.707614701);let a=n+i*e+o*t+r*e*e+l*e*t,c=.3963377774*e+.2158037573*t,p=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let h=1+a*c,m=1+a*p,g=1+a*d,y=h*h*h,_=m*m*m,E=g*g*g,A=3*c*h*h,S=3*p*m*m,T=3*d*g*g,I=6*c*c*h,L=6*p*p*m,x=6*d*d*g,C=s*y+u*_+H*E,D=s*A+u*S+H*T,O=s*I+u*L+H*x;a=a-C*D/(D*D-.5*C*O)}return a}function XR(e,t){let n=x4e(e,t),i=Qu({l:1,a:n*e,b:n*t}),o=Math.cbrt(1/Math.max(i.r,i.g,i.b)),r=o*n;return[o,r]}function D4e(e,t,n,i,o,r=null){r||(r=XR(e,t));let l;if((n-o)*r[1]-(r[0]-o)*i<=0)l=r[1]*o/(i*r[0]+r[1]*(o-n));else{l=r[1]*(o-1)/(i*(r[0]-1)+r[1]*(o-n));{let s=n-o,u=i,H=.3963377774*e+.2158037573*t,a=-.1055613458*e-.0638541728*t,c=-.0894841775*e-1.291485548*t,p=s+u*H,d=s+u*a,h=s+u*c;{let m=o*(1-l)+l*n,g=l*i,y=m+g*H,_=m+g*a,E=m+g*c,A=y*y*y,S=_*_*_,T=E*E*E,I=3*p*y*y,L=3*d*_*_,x=3*h*E*E,C=6*p*p*y,D=6*d*d*_,O=6*h*h*E,j=4.0767416621*A-3.3077115913*S+.2309699292*T-1,k=4.0767416621*I-3.3077115913*L+.2309699292*x,$=4.0767416621*C-3.3077115913*D+.2309699292*O,U=k/(k*k-.5*j*$),F=-j*U,P=-1.2684380046*A+2.6097574011*S-.3413193965*T-1,W=-1.2684380046*I+2.6097574011*L-.3413193965*x,Z=-1.2684380046*C+2.6097574011*D-.3413193965*O,ee=W/(W*W-.5*P*Z),J=-P*ee,ne=-.0041960863*A-.7034186147*S+1.707614701*T-1,K=-.0041960863*I-.7034186147*L+1.707614701*x,q=-.0041960863*C-.7034186147*D+1.707614701*O,Q=K/(K*K-.5*ne*q),z=-ne*Q;F=U>=0?F:1e6,J=ee>=0?J:1e6,z=Q>=0?z:1e6,l+=Math.min(F,Math.min(J,z))}}}return l}function d0(e,t,n=null){n||(n=XR(e,t));let i=n[0],o=n[1];return[o/i,o/(1-i)]}function lL(e,t,n){let i=XR(t,n),o=D4e(t,n,e,1,e,i),r=d0(t,n,i),l=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),u=o/Math.min(e*r[0],(1-e)*r[1]),H=e*l,a=(1-e)*s,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(H*H*H*H)+1/(a*a*a*a))));return H=e*.4,a=(1-e)*.8,[Math.sqrt(1/(1/(H*H)+1/(a*a))),c,o]}function cL(e){let t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,o={mode:"okhsl",l:p0(t)};e.alpha!==void 0&&(o.alpha=e.alpha);let r=Math.sqrt(n*n+i*i);if(!r)return o.s=0,o;let[l,s,u]=lL(t,n/r,i/r),H;if(r<s){let a=0,c=.8*l,p=1-c/s;H=(r-a)/(c+p*(r-a))*.8}else{let a=s,c=.2*s*s*1.25*1.25/l,p=1-c/(u-s);H=.8+.2*((r-a)/(c+p*(r-a)))}return H&&(o.s=H,o.h=Ls(Math.atan2(i,n)*180/Math.PI)),o}function uL(e){let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,i=e.l!==void 0?e.l:0,o={mode:"oklab",l:Of(i)};if(e.alpha!==void 0&&(o.alpha=e.alpha),!n||i===1)return o.a=o.b=0,o;let r=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[s,u,H]=lL(o.l,r,l),a,c,p,d;n<.8?(a=1.25*n,c=0,p=.8*s,d=1-p/u):(a=5*(n-.8),c=u,p=.2*u*u*1.25*1.25/s,d=1-p/(H-u));let h=c+a*p/(1-d*a);return o.a=h*r,o.b=h*l,o}var P4e={...JS,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:cL,rgb:e=>cL(ud(e))},toMode:{oklab:uL,rgb:e=>Hd(uL(e))}},vte=P4e;function HL(e){let t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,o=Math.sqrt(n*n+i*i),r=o?n/o:1,l=o?i/o:1,[s,u]=d0(r,l),H=.5,a=1-H/s,c=u/(o+t*u),p=c*t,d=c*o,h=Of(p),m=d*h/p,g=Qu({l:h,a:r*m,b:l*m}),y=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t=t/y,o=o/y*p0(t)/t,t=p0(t);let _={mode:"okhsv",s:o?(H+u)*d/(u*H+u*a*d):0,v:t?t/p:0};return _.s&&(_.h=Ls(Math.atan2(i,n)*180/Math.PI)),e.alpha!==void 0&&(_.alpha=e.alpha),_}function pL(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let n=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,o=e.v!==void 0?e.v:0,r=Math.cos(n/180*Math.PI),l=Math.sin(n/180*Math.PI),[s,u]=d0(r,l),H=.5,a=1-H/s,c=1-i*H/(H+u-u*a*i),p=i*u*H/(H+u-u*a*i),d=Of(c),h=p*d/c,m=Qu({l:d,a:r*h,b:l*h}),g=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=Of(o*c),_=p*y/c;return t.l=y*g,t.a=_*r*g,t.b=_*l*g,t}var w4e={...QS,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:HL,rgb:e=>HL(ud(e))},toMode:{oklab:pL,rgb:e=>Hd(pL(e))}},Cte=w4e;function k4e(e,t){if(!t||t[0]!=="oklab")return;let n={mode:"oklab"},[,i,o,r,l]=t;if(!(i.type===br.Hue||o.type===br.Hue||r.type===br.Hue))return i.type!==br.None&&(n.l=Math.min(Math.max(0,i.type===br.Number?i.value:i.value/100),1)),o.type!==br.None&&(n.a=o.type===br.Number?o.value:o.value*.4/100),r.type!==br.None&&(n.b=r.type===br.Number?r.value:r.value*.4/100),l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var xte=k4e;var N4e={...rm,mode:"oklab",toMode:{lrgb:Qu,rgb:Hd},fromMode:{lrgb:oL,rgb:ud},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[xte],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},Dte=N4e;function R4e(e,t){if(!t||t[0]!=="oklch")return;let n={mode:"oklch"},[,i,o,r,l]=t;if(i.type!==br.None){if(i.type===br.Hue)return;n.l=Math.min(Math.max(0,i.type===br.Number?i.value:i.value/100),1)}if(o.type!==br.None&&(n.c=Math.max(0,o.type===br.Number?o.value:o.value*.4/100)),r.type!==br.None){if(r.type===br.Percentage)return;n.h=r.value}return l.type!==br.None&&(n.alpha=Math.min(1,Math.max(0,l.type===br.Number?l.value:l.value/100))),n}var Pte=R4e;var $4e={...nm,mode:"oklch",toMode:{oklab:e=>Vl(e,"oklab"),rgb:e=>Hd(Vl(e,"oklab"))},fromMode:{rgb:e=>Wl(ud(e),"oklch"),oklab:e=>Wl(e,"oklch")},parse:[Pte],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},wte=$4e;var M4e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r={mode:"xyz65",x:.486570948648216*t+.265667693169093*n+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*i,z:0*t+.0451133818589026*n+1.043944368900976*i};return o!==void 0&&(r.alpha=o),r},ZR=M4e;var B4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=Sc({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},"p3");return i!==void 0&&(o.alpha=i),o},zR=B4e;var O4e={...Ac,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>zR(Al(e)),xyz65:zR},toMode:{rgb:e=>Il(ZR(e)),xyz65:ZR}},kte=O4e;var JR=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},F4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"prophoto",r:JR(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:JR(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:JR(e*0+t*0+1.2119675456389452*n)};return i!==void 0&&(o.alpha=i),o},QR=F4e;var YR=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},j4e=e=>{let t=YR(e.r),n=YR(e.g),i=YR(e.b),o={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*i,z:0*t+0*n+.8251046025104602*i};return e.alpha!==void 0&&(o.alpha=e.alpha),o},e$=j4e;var U4e={...Ac,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:QR,rgb:e=>QR(Ju(e))},toMode:{xyz50:e$,rgb:e=>zu(e$(e))}},Nte=U4e;var Rte=1.09929682680944,q4e=.018053968510807,t$=e=>{let t=Math.abs(e);return t>q4e?(Math.sign(e)||1)*(Rte*Math.pow(t,.45)-(Rte-1)):4.5*e},W4e=({x:e,y:t,z:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"rec2020",r:t$(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:t$(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:t$(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return i!==void 0&&(o.alpha=i),o},r$=W4e;var $te=1.09929682680944,V4e=.018053968510807,n$=(e=0)=>{let t=Math.abs(e);return t<V4e*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+$te-1)/$te,1/.45)},K4e=e=>{let t=n$(e.r),n=n$(e.g),i=n$(e.b),o={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*n+.059301716469862*i,z:0*t+.0280726930490874*n+1.0609850577107909*i};return e.alpha!==void 0&&(o.alpha=e.alpha),o},i$=K4e;var G4e={...Ac,mode:"rec2020",fromMode:{xyz65:r$,rgb:e=>r$(Al(e))},toMode:{xyz65:i$,rgb:e=>Il(i$(e))},parse:["rec2020"],serialize:"rec2020"},Mte=G4e;var JH=.0037930732552754493,dL=Math.cbrt(JH);var s$=e=>Math.cbrt(e)-dL,X4e=e=>{let{r:t,g:n,b:i,alpha:o}=Ic(e),r=s$(.3*t+.622*n+.078*i+JH),l=s$(.23*t+.692*n+.078*i+JH),s=s$(.2434226892454782*t+.2047674442449682*n+.5518098665095535*i+JH),u={mode:"xyb",x:(r-l)/2,y:(r+l)/2,b:s-(r+l)/2};return o!==void 0&&(u.alpha=o),u},Bte=X4e;var a$=e=>Math.pow(e+dL,3),Z4e=({x:e,y:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o=a$(e+t)-JH,r=a$(t-e)-JH,l=a$(n+t)-JH,s=Sc({r:11.031566904639861*o-9.866943908131562*r-.16462299650829934*l,g:-3.2541473810744237*o+4.418770377582723*r-.16462299650829934*l,b:-3.6588512867136815*o+2.7129230459360922*r+1.9459282407775895*l});return i!==void 0&&(s.alpha=i),s},Ote=Z4e;var z4e={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Ote},fromMode:{rgb:Bte},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:Sr,y:Sr,b:Sr,alpha:{use:Sr,fixup:_i}}},Fte=z4e;var J4e={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:zu,lab:tm},fromMode:{rgb:Ju,lab:em},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:Sr,y:Sr,z:Sr,alpha:{use:Sr,fixup:_i}}},jte=J4e;var Q4e=e=>{let{x:t,y:n,z:i,alpha:o}=e;t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0);let r={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*i};return o!==void 0&&(r.alpha=o),r},Ute=Q4e;var Y4e=e=>{let{x:t,y:n,z:i,alpha:o}=e;t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0);let r={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*i};return o!==void 0&&(r.alpha=o),r},qte=Y4e;var e7e={mode:"xyz65",toMode:{rgb:Il,xyz50:Ute},fromMode:{rgb:Al,xyz50:qte},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:Sr,y:Sr,z:Sr,alpha:{use:Sr,fixup:_i}}},Wte=e7e;var t7e=({r:e,g:t,b:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return i!==void 0&&(o.alpha=i),o},Vte=t7e;var r7e=({y:e,i:t,q:n,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"rgb",r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return i!==void 0&&(o.alpha=i),o},Kte=r7e;var n7e={mode:"yiq",toMode:{rgb:Kte},fromMode:{rgb:Vte},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:Sr,i:Sr,q:Sr,alpha:{use:Sr,fixup:_i}}},Gte=n7e;var i7e=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,s7e=(e=4)=>t=>typeof t=="number"?i7e(t,e):t,Xte=s7e;var f0=Xte(2),h0=e=>Math.max(0,Math.min(1,e||0)),Ff=e=>Math.round(h0(e)*255),o$=bc("rgb"),a7e=bc("hsl"),l$=e=>{if(e===void 0)return;let t=Ff(e.r),n=Ff(e.g),i=Ff(e.b);return"#"+(1<<24|t<<16|n<<8|i).toString(16).slice(1)},Zte=e=>{if(e===void 0)return;let t=Ff(e.alpha!==void 0?e.alpha:1);return l$(e)+(256|t).toString(16).slice(1)},zte=e=>{if(e===void 0)return;let t=Ff(e.r),n=Ff(e.g),i=Ff(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${n}, ${i})`:`rgba(${t}, ${n}, ${i}, ${f0(h0(e.alpha))})`},Jte=e=>{if(e===void 0)return;let t=f0(e.h||0),n=f0(h0(e.s)*100)+"%",i=f0(h0(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${n}, ${i})`:`hsla(${t}, ${n}, ${i}, ${f0(h0(e.alpha))})`};var c$=e=>l$(o$(e)),_0=e=>Zte(o$(e)),im=e=>zte(o$(e)),u$=e=>Jte(a7e(e));var Qte=bc("rgb"),o7e=e=>{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},l7e=e=>o7e(Qte(e)),Yte=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function ere(e){return Yte(Qte(e))}function H$(e="rgb"){let{gamut:t}=US(e);if(!t)return i=>!0;let n=bc(typeof t=="string"?t:e);return i=>Yte(n(i))}function p$(e){return e=jS(e),e===void 0||ere(e)?e:bc(e.mode)(l7e(e))}var WNt=Yi(Gee),VNt=Yi(rte),KNt=Yi(ste),GNt=Yi(ate),XNt=Yi(ote),ZNt=Yi(JS),zNt=Yi(QS),JNt=Yi(pte),QNt=Yi(fte),YNt=Yi(_te),e9t=Yi(mte),t9t=Yi(rm),r9t=Yi(yte),n9t=Yi(nm),i9t=Yi(bte),s9t=Yi(Ste),a9t=Yi(Lte),o9t=Yi(Tte),l9t=Yi(vte),c9t=Yi(Cte),u9t=Yi(Dte),H9t=Yi(wte),p9t=Yi(kte),d9t=Yi(Nte),f9t=Yi(Mte),h9t=Yi(Ac),_9t=Yi(Fte),m9t=Yi(jte),E9t=Yi(Wte),y9t=Yi(Gte);var iM=Er(Ko());function fL(e){let t=function(n,i,o){if(!(!n&&!i))return i?(t(n+i[0],i.slice(1),o),t(n,i.slice(1),o)):o.push(n),o};return t("",e,[])}var m0=Er(Ko());function Yu(e,t){let n=e.separator;t=t.replace(/^\./,"");let i=t.split(n);if(i.length===1)return(0,m0.default)(e.classNames.classNames,[t,"__info","__rule"])===!0||Array.isArray((0,m0.default)(e.classNames.classNames,[t,"__info"]))?[t]:null;let o=fL("123456789".substr(0,i.length-1)).map(l=>l.split("").map(s=>parseInt(s,10)));return[[t],...o.map(l=>{let s=[],u=0;return l.forEach(H=>{s.push(i.slice(u,H).join("-")),u=H}),s.push(i.slice(u).join("-")),s})].find(l=>!!((0,m0.default)(e.classNames.classNames,[...l,"__info","__rule"])===!0||Array.isArray((0,m0.default)(e.classNames.classNames,[...l,"__info"]))))}function pd(e,{replace:t,recursive:n=!0}){let i=new Set;for(let o=0;o<e.length;++o){if(!e.startsWith("var(",o))continue;let r=0,l=null;for(let s=o+4;o<e.length;++s)if(e[s]==="(")r++;else if(e[s]===")"&&r>0)r--;else if(e[s]==="\\")s++;else if(e[s]===","&&r===0&&l===null)l=s+1;else if(e[s]===")"&&r===0){let u,H;l===null?(u=e.slice(o+4,s),H=null):(u=e.slice(o+4,l-1),H=e.slice(l,s));let a=t({kind:"css-variable",name:u,fallback:H,range:{start:o,end:s}});if(a!==null&&(e=e.slice(0,o)+a+e.slice(s+1)),n){let c=`${o}:${a}`;i.has(c)||(i.add(c),o-=1)}break}}return e}function sm(e,t){for(let n=0;n<e.length;++n){if(!e.startsWith("calc(",n))continue;let i=0;for(let o=n+5;n<e.length;++o)if(e[o]==="(")i++;else if(e[o]===")"&&i>0)i--;else if(e[o]===")"&&i===0){let r=e.slice(n+5,o),l=t({kind:"calc-expression",value:r,range:{start:n,end:o}});l!==null&&(e=e.slice(0,n)+l+e.slice(o+1));break}}return e}function dd(e,t){let n=e.theme.prefix??null;return n&&t.startsWith(`--${n}`)&&(t=`--${t.slice(n.length+3)}`),e.resolveThemeValue?.(t,!0)??null}function rre(e,t){let n=new Set;return pd(t,{replace({name:i,fallback:o}){if(e.designSystem&&i.startsWith("--")){if(n.has(i))return null;let r=dd(e.designSystem,i);if(r!==null)return r.includes("var(")&&n.add(i),r}return o||(i==="--tw-text-shadow-alpha"||i==="--tw-drop-shadow-alpha"||i==="--tw-shadow-alpha"?"100%":null)}})}var c7e=/[A-Z]/g;function Ll(e){return e.replace(c7e,t=>String.fromCharCode(t.charCodeAt(0)+32))}var u7e={cm:"px",in:"px",mm:"px",pc:"px",pt:"px",px:"px",q:"px",deg:"deg",grad:"deg",rad:"deg",turn:"deg",ms:"s",s:"s",hz:"hz",khz:"hz"},H7e=new Map([["cm",e=>e],["mm",e=>10*e],["q",e=>40*e],["in",e=>e/2.54],["pc",e=>e/2.54*6],["pt",e=>e/2.54*72],["px",e=>e/2.54*96]]),mL=new Map([["deg",e=>e],["grad",e=>e/.9],["rad",e=>e/180*Math.PI],["turn",e=>e/360]]),E0=new Map([["deg",e=>.9*e],["grad",e=>e],["rad",e=>.9*e/180*Math.PI],["turn",e=>.9*e/360]]),p7e=new Map([["hz",e=>e],["khz",e=>e/1e3]]),d7e=new Map([["cm",e=>2.54*e],["mm",e=>25.4*e],["q",e=>25.4*e*4],["in",e=>e],["pc",e=>6*e],["pt",e=>72*e],["px",e=>96*e]]),f7e=new Map([["hz",e=>1e3*e],["khz",e=>e]]),h7e=new Map([["cm",e=>e/10],["mm",e=>e],["q",e=>4*e],["in",e=>e/25.4],["pc",e=>e/25.4*6],["pt",e=>e/25.4*72],["px",e=>e/25.4*96]]),_7e=new Map([["ms",e=>e],["s",e=>e/1e3]]),m7e=new Map([["cm",e=>e/6*2.54],["mm",e=>e/6*25.4],["q",e=>e/6*25.4*4],["in",e=>e/6],["pc",e=>e],["pt",e=>e/6*72],["px",e=>e/6*96]]),E7e=new Map([["cm",e=>e/72*2.54],["mm",e=>e/72*25.4],["q",e=>e/72*25.4*4],["in",e=>e/72],["pc",e=>e/72*6],["pt",e=>e],["px",e=>e/72*96]]),y7e=new Map([["cm",e=>e/96*2.54],["mm",e=>e/96*25.4],["q",e=>e/96*25.4*4],["in",e=>e/96],["pc",e=>e/96*6],["pt",e=>e/96*72],["px",e=>e]]),g7e=new Map([["cm",e=>e/4/10],["mm",e=>e/4],["q",e=>e],["in",e=>e/4/25.4],["pc",e=>e/4/25.4*6],["pt",e=>e/4/25.4*72],["px",e=>e/4/25.4*96]]),sre=new Map([["deg",e=>180*e/Math.PI],["grad",e=>180*e/Math.PI/.9],["rad",e=>e],["turn",e=>180*e/Math.PI/360]]),b7e=new Map([["ms",e=>1e3*e],["s",e=>e]]),y0=new Map([["deg",e=>360*e],["grad",e=>360*e/.9],["rad",e=>360*e/180*Math.PI],["turn",e=>e]]),are=new Map([["cm",H7e],["mm",h7e],["q",g7e],["in",d7e],["pc",m7e],["pt",E7e],["px",y7e],["ms",_7e],["s",b7e],["deg",mL],["grad",E0],["rad",sre],["turn",y0],["hz",p7e],["khz",f7e]]);function Gl(e,t){if(!Ta(e)||!Ta(t))return t;let n=Ll(e[4].unit),i=Ll(t[4].unit);if(n===i)return t;let o=are.get(i);if(!o)return t;let r=o.get(n);if(!r)return t;let l=r(t[4].value),s=[Rt.Dimension,"",t[2],t[3],{...t[4],signCharacter:l<0?"-":void 0,type:Number.isInteger(l)?Pn.Integer:Pn.Number,value:l}];return Z2(s,e[4].unit),s}function A7e(e){if(!Ta(e))return e;let t=Ll(e[4].unit),n=u7e[t];if(t===n)return e;let i=are.get(t);if(!i)return e;let o=i.get(n);if(!o)return e;let r=o(e[4].value),l=[Rt.Dimension,"",e[2],e[3],{...e[4],signCharacter:r<0?"-":void 0,type:Number.isInteger(r)?Pn.Integer:Pn.Number,value:r}];return Z2(l,n),l}function I7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value+n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number}])}if(so(t)&&so(n)){let i=t[4].value+n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&Ta(n)&&(n=Gl(t,n),Ll(t[4].unit)===Ll(n[4].unit))){let i=t[4].value+n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:t[4].unit}])}return-1}function S7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value/n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:Number.isInteger(i)?Pn.Integer:Pn.Number}])}if(so(t)&&ms(n)){let i=t[4].value/n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&ms(n)){let i=t[4].value/n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:Number.isInteger(i)?Pn.Integer:Pn.Number,unit:t[4].unit}])}return-1}function jf(e){return!!e&&typeof e=="object"&&"inputs"in e&&Array.isArray(e.inputs)&&"operation"in e}function Kl(e){if(e===-1)return-1;let t=[];for(let n=0;n<e.inputs.length;n++){let i=e.inputs[n];if(Bi(i)){t.push(i);continue}let o=Kl(i);if(o===-1)return-1;t.push(o)}return e.operation(t)}function L7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value*n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number}])}if(so(t)&&ms(n)){let i=t[4].value*n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(ms(t)&&so(n)){let i=t[4].value*n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&ms(n)){let i=t[4].value*n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:t[4].unit}])}if(ms(t)&&Ta(n)){let i=t[4].value*n[4].value;return new qn([Rt.Dimension,i.toString()+n[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:n[4].unit}])}return-1}function am(e,t){for(let n=0;n<e.length;n++){let i=e[n];if(!Bi(i))continue;let o=i.value;if(!q_(o))continue;let r=Ll(o[4].value);switch(r){case"e":e.splice(n,1,new qn([Rt.Number,Math.E.toString(),o[2],o[3],{value:Math.E,type:Pn.Number}]));break;case"pi":e.splice(n,1,new qn([Rt.Number,Math.PI.toString(),o[2],o[3],{value:Math.PI,type:Pn.Number}]));break;case"infinity":e.splice(n,1,new qn([Rt.Number,"infinity",o[2],o[3],{value:1/0,type:Pn.Number}]));break;case"-infinity":e.splice(n,1,new qn([Rt.Number,"-infinity",o[2],o[3],{value:-1/0,type:Pn.Number}]));break;case"nan":e.splice(n,1,new qn([Rt.Number,"NaN",o[2],o[3],{value:Number.NaN,type:Pn.Number}]));break;default:if(t.has(r)){let l=t.get(r);e.splice(n,1,new qn(l))}}}return e}function EL(e){if(e.length!==1)return-1;let t=e[0].value;return io(t)?e[0]:-1}function YH(e,t,n){return Ta(t)?g0(e,t[4].unit,n):so(t)?T7e(e,n):ms(t)?tH(e,n):-1}function g0(e,t,n){let i=e.tokens();return{inputs:[new qn([Rt.Dimension,n.toString()+t,i[0][2],i[i.length-1][3],{value:n,type:Number.isInteger(n)?Pn.Integer:Pn.Number,unit:t}])],operation:EL}}function T7e(e,t){let n=e.tokens();return{inputs:[new qn([Rt.Percentage,t.toString()+"%",n[0][2],n[n.length-1][3],{value:t}])],operation:EL}}function tH(e,t){let n=e.tokens();return{inputs:[new qn([Rt.Number,t.toString(),n[0][2],n[n.length-1][3],{value:t,type:Number.isInteger(t)?Pn.Integer:Pn.Number}])],operation:EL}}function v7e(e,t){let n=t.value;return ms(n)?g0(e,"rad",Math.acos(n[4].value)):-1}function C7e(e,t){let n=t.value;return ms(n)?g0(e,"rad",Math.asin(n[4].value)):-1}function x7e(e,t){let n=t.value;return ms(n)?g0(e,"rad",Math.atan(n[4].value)):-1}function yL(e){return Ta(e)||ms(e)}function f$(e){if(e.length===0)return!0;let t=e[0];if(!io(t))return!1;if(e.length===1)return!0;if(Ta(t)){let n=Ll(t[4].unit);for(let i=1;i<e.length;i++){let o=e[i];if(t[0]!==o[0]||n!==Ll(o[4].unit))return!1}return!0}for(let n=1;n<e.length;n++){let i=e[n];if(t[0]!==i[0])return!1}return!0}function QH(e,t){return!!io(e)&&(Ta(e)?e[0]===t[0]&&Ll(e[4].unit)===Ll(t[4].unit):e[0]===t[0])}function D7e(e,t,n){let i=t.value;if(!yL(i))return-1;let o=Gl(i,n.value);return QH(i,o)?g0(e,"rad",Math.atan2(i[4].value,o[4].value)):-1}function P7e(e,t,n){let i=t.value;return!io(i)||!n.rawPercentages&&so(i)?-1:YH(e,i,Math.abs(i[4].value))}function w7e(e,t,n,i,o){if(!Bi(t)||!Bi(n)||!Bi(i))return-1;let r=t.value;if(!io(r)||!o.rawPercentages&&so(r))return-1;let l=Gl(r,n.value);if(!QH(r,l))return-1;let s=Gl(r,i.value);return QH(r,s)?YH(e,r,Math.max(r[4].value,Math.min(l[4].value,s[4].value))):-1}function k7e(e,t){let n=t.value;if(!yL(n))return-1;let i=n[4].value;if(Ta(n))switch(n[4].unit.toLowerCase()){case"rad":break;case"deg":i=mL.get("rad")(n[4].value);break;case"grad":i=E0.get("rad")(n[4].value);break;case"turn":i=y0.get("rad")(n[4].value);break;default:return-1}return i=Math.cos(i),tH(e,i)}function N7e(e,t){let n=t.value;return ms(n)?tH(e,Math.exp(n[4].value)):-1}function R7e(e,t,n){if(!t.every(Bi))return-1;let i=t[0].value;if(!io(i)||!n.rawPercentages&&so(i))return-1;let o=t.map(s=>Gl(i,s.value));if(!f$(o))return-1;let r=o.map(s=>s[4].value),l=Math.hypot(...r);return YH(e,i,l)}function nre(e,t,n){if(!t.every(Bi))return-1;let i=t[0].value;if(!io(i)||!n.rawPercentages&&so(i))return-1;let o=t.map(s=>Gl(i,s.value));if(!f$(o))return-1;let r=o.map(s=>s[4].value),l=Math.max(...r);return YH(e,i,l)}function ire(e,t,n){if(!t.every(Bi))return-1;let i=t[0].value;if(!io(i)||!n.rawPercentages&&so(i))return-1;let o=t.map(s=>Gl(i,s.value));if(!f$(o))return-1;let r=o.map(s=>s[4].value),l=Math.min(...r);return YH(e,i,l)}function $7e(e,t,n){let i=t.value;if(!io(i))return-1;let o=Gl(i,n.value);if(!QH(i,o))return-1;let r;return r=o[4].value===0?Number.NaN:Number.isFinite(i[4].value)&&(Number.isFinite(o[4].value)||(o[4].value!==Number.POSITIVE_INFINITY||i[4].value!==Number.NEGATIVE_INFINITY&&!Object.is(0*i[4].value,-0))&&(o[4].value!==Number.NEGATIVE_INFINITY||i[4].value!==Number.POSITIVE_INFINITY&&!Object.is(0*i[4].value,0)))?Number.isFinite(o[4].value)?(i[4].value%o[4].value+o[4].value)%o[4].value:i[4].value:Number.NaN,YH(e,i,r)}function M7e(e,t,n){let i=t.value,o=n.value;return!ms(i)||!QH(i,o)?-1:tH(e,Math.pow(i[4].value,o[4].value))}function B7e(e,t,n){let i=t.value;if(!io(i))return-1;let o=Gl(i,n.value);if(!QH(i,o))return-1;let r;return r=o[4].value===0?Number.NaN:Number.isFinite(i[4].value)?Number.isFinite(o[4].value)?i[4].value%o[4].value:i[4].value:Number.NaN,YH(e,i,r)}function O7e(e,t,n,i,o){let r=n.value;if(!io(r)||!o.rawPercentages&&so(r))return-1;let l=Gl(r,i.value);if(!QH(r,l))return-1;let s;if(l[4].value===0)s=Number.NaN;else if(Number.isFinite(r[4].value)||Number.isFinite(l[4].value))if(!Number.isFinite(r[4].value)&&Number.isFinite(l[4].value))s=r[4].value;else if(Number.isFinite(r[4].value)&&!Number.isFinite(l[4].value))switch(t){case"down":s=r[4].value<0?-1/0:Object.is(-0,0*r[4].value)?-0:0;break;case"up":s=r[4].value>0?1/0:Object.is(0,0*r[4].value)?0:-0;break;default:s=Object.is(0,0*r[4].value)?0:-0}else if(Number.isFinite(l[4].value))switch(t){case"down":s=Math.floor(r[4].value/l[4].value)*l[4].value;break;case"up":s=Math.ceil(r[4].value/l[4].value)*l[4].value;break;case"to-zero":s=Math.trunc(r[4].value/l[4].value)*l[4].value;break;default:{let u=Math.floor(r[4].value/l[4].value)*l[4].value,H=Math.ceil(r[4].value/l[4].value)*l[4].value;if(u>H){let p=u;u=H,H=p}let a=Math.abs(r[4].value-u),c=Math.abs(r[4].value-H);s=a===c?H:a<c?u:H;break}}else s=r[4].value;else s=Number.NaN;return YH(e,r,s)}function F7e(e,t,n){let i=t.value;return!io(i)||!n.rawPercentages&&so(i)?-1:tH(e,Math.sign(i[4].value))}function j7e(e,t){let n=t.value;if(!yL(n))return-1;let i=n[4].value;if(Ta(n))switch(Ll(n[4].unit)){case"rad":break;case"deg":i=mL.get("rad")(n[4].value);break;case"grad":i=E0.get("rad")(n[4].value);break;case"turn":i=y0.get("rad")(n[4].value);break;default:return-1}return i=Math.sin(i),tH(e,i)}function U7e(e,t){let n=t.value;return ms(n)?tH(e,Math.sqrt(n[4].value)):-1}function q7e(e,t){let n=t.value;if(!yL(n))return-1;let i=n[4].value,o=0,r=n[4].value;if(Ta(n))switch(Ll(n[4].unit)){case"rad":o=sre.get("deg")(i);break;case"deg":o=i,r=mL.get("rad")(i);break;case"grad":o=E0.get("deg")(i),r=E0.get("rad")(i);break;case"turn":o=y0.get("deg")(i),r=y0.get("rad")(i);break;default:return-1}let l=o/90;return r=o%90==0&&l%2!=0?l>0?1/0:-1/0:Math.tan(r),tH(e,r)}function W7e(e){if(e.length!==2)return-1;let t=e[0].value,n=e[1].value;if(ms(t)&&ms(n)){let i=t[4].value-n[4].value;return new qn([Rt.Number,i.toString(),t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number}])}if(so(t)&&so(n)){let i=t[4].value-n[4].value;return new qn([Rt.Percentage,i.toString()+"%",t[2],n[3],{value:i}])}if(Ta(t)&&Ta(n)&&(n=Gl(t,n),Ll(t[4].unit)===Ll(n[4].unit))){let i=t[4].value-n[4].value;return new qn([Rt.Dimension,i.toString()+t[4].unit,t[2],n[3],{value:i,type:t[4].type===Pn.Integer&&n[4].type===Pn.Integer?Pn.Integer:Pn.Number,unit:t[4].unit}])}return-1}function V7e(e,t){if(t.length===1){let n=t[0];if(!n||!Bi(n))return-1;let i=n.value;return ms(i)?tH(e,Math.log(i[4].value)):-1}if(t.length===2){let n=t[0];if(!n||!Bi(n))return-1;let i=n.value;if(!ms(i))return-1;let o=t[1];if(!o||!Bi(o))return-1;let r=o.value;return ms(r)?tH(e,Math.log(i[4].value)/Math.log(r[4].value)):-1}return-1}var K7e=/^none$/i;function d$(e){if(Array.isArray(e)){let n=e.filter(i=>!(K1(i)&&G1(i)));return n.length===1&&d$(n[0])}if(!Bi(e))return!1;let t=e.value;return!!q_(t)&&K7e.test(t[4].value)}function G7e(e,t,n,i,o,r){let l=n.value;if(!io(l))return-1;let s=Gl(l,i.value);if(!QH(l,s))return-1;let u,H=null;if(o&&(H=Gl(l,o.value),!QH(l,H)))return-1;if(Number.isFinite(l[4].value))if(Number.isFinite(s[4].value))if(Number.isFinite(s[4].value-l[4].value))if(H&&!Number.isFinite(H[4].value))u=l[4].value;else{let a=X7e(Z7e([t,ti(l),ti(s),o?`by ${o.toString()}`:""].join(",")),r.randomSeed),c=l[4].value,p=s[4].value;if(c>p&&([c,p]=[p,c]),H&&(H[4].value<=0||Math.abs(c-p)/H[4].value>1e10)&&(H=null),H){let d=Math.abs(c-p),h=a();u=c+Math.floor(d/H[4].value*h)*H[4].value}else{let d=a();u=Number((d*(p-c)+c).toFixed(5))}}else u=Number.NaN;else u=Number.NaN;else u=Number.NaN;return YH(e,l,u)}function X7e(e=.34944106645296036,t=.19228640875738723,n=.8784393832007205,i=.04850964319275053){return()=>{let o=((e|=0)+(t|=0)|0)+(i|=0)|0;return i=i+1|0,e=t^t>>>9,t=(n|=0)+(n<<3)|0,n=(n=n<<21|n>>>11)+o|0,(o>>>0)/4294967296}}function Z7e(e){let t=0,n=0,i=0;t=~t;for(let o=0,r=e.length;o<r;o++)i=255&(t^e.charCodeAt(o)),n=+("0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substring(9*i,9*i+8)),t=t>>>8^n;return~t>>>0}var h$=new Map([["abs",function(t,n,i){return eH(t,n,i,P7e)}],["acos",function(t,n,i){return eH(t,n,i,v7e)}],["asin",function(t,n,i){return eH(t,n,i,C7e)}],["atan",function(t,n,i){return eH(t,n,i,x7e)}],["atan2",function(t,n,i){return hL(t,n,i,D7e)}],["calc",Sl],["clamp",function(t,n,i){let o=am([...t.value.filter(m=>!td(m))],n),r=[],l=[],s=[];{let m=r;for(let g=0;g<o.length;g++){let y=o[g];if(Bi(y)&&GH(y.value)){if(m===s)return-1;if(m===l){m=s;continue}if(m===r){m=l;continue}return-1}m.push(y)}}let u=d$(r),H=d$(s);if(u&&H)return Sl(Lc(l),n,i);let a=Kl(Sl(Lc(l),n,i));if(a===-1)return-1;if(u){let m=Kl(Sl(Lc(s),n,i));return m===-1?-1:ire((c=a,p=m,new ll([Rt.Function,"min(",-1,-1,{value:"min"}],[Rt.CloseParen,")",-1,-1,void 0],[c,new qn([Rt.Comma,",",-1,-1,void 0]),p])),[a,m],i)}if(H){let m=Kl(Sl(Lc(r),n,i));return m===-1?-1:nre(Q7e(m,a),[m,a],i)}var c,p;let d=Kl(Sl(Lc(r),n,i));if(d===-1)return-1;let h=Kl(Sl(Lc(s),n,i));return h===-1?-1:w7e(t,d,a,h,i)}],["cos",function(t,n,i){return eH(t,n,i,k7e)}],["exp",function(t,n,i){return eH(t,n,i,N7e)}],["hypot",function(t,n,i){return _L(t,t.value,n,i,R7e)}],["log",function(t,n,i){return _L(t,t.value,n,i,V7e)}],["max",function(t,n,i){return _L(t,t.value,n,i,nre)}],["min",function(t,n,i){return _L(t,t.value,n,i,ire)}],["mod",function(t,n,i){return hL(t,n,i,$7e)}],["pow",function(t,n,i){return hL(t,n,i,M7e)}],["random",function(t,n,i){let o=t.value.filter(p=>!td(p)),r="",l=[],s=[];for(let p=0;p<o.length;p++){let d=o[p];if(!r&&s.length===0&&Bi(d)&&q_(d.value)){let h=d.value[4].value.toLowerCase();if(h==="per-element"||h.startsWith("--")){r=h;let m=o[p+1];if(!Bi(m)||!GH(m.value))return-1;p++;continue}}if(Bi(d)&&GH(d.value)){let h=o[p+1];if(s.length>0&&Bi(h)&&q_(h.value)){let m=h.value[4].value.toLowerCase();if(m==="by"||m.startsWith("--")){l.push(...o.slice(p+2));break}}}s.push(d)}let u=lre(s,n,i);if(u===-1)return-1;let[H,a]=u,c=null;return l.length&&(c=ore(l,n,i),c===-1)?-1:G7e(t,r,H,a,c,i)}],["rem",function(t,n,i){return hL(t,n,i,B7e)}],["round",function(t,n,i){let o=am([...t.value.filter(c=>!td(c))],n),r="",l=!1,s=[],u=[];{let c=s;for(let p=0;p<o.length;p++){let d=o[p];if(!r&&s.length===0&&u.length===0&&Bi(d)&&q_(d.value)){let h=d.value[4].value.toLowerCase();if(J7e.has(h)){r=h;continue}}if(Bi(d)&&GH(d.value)){if(c===u)return-1;if(c===s&&r&&s.length===0)continue;if(c===s){l=!0,c=u;continue}return-1}c.push(d)}}let H=Kl(Sl(Lc(s),n,i));if(H===-1)return-1;l||u.length!==0||u.push(new qn([Rt.Number,"1",-1,-1,{value:1,type:Pn.Integer}]));let a=Kl(Sl(Lc(u),n,i));return a===-1?-1:(r||(r="nearest"),O7e(t,r,H,a,i))}],["sign",function(t,n,i){return eH(t,n,i,F7e)}],["sin",function(t,n,i){return eH(t,n,i,j7e)}],["sqrt",function(t,n,i){return eH(t,n,i,U7e)}],["tan",function(t,n,i){return eH(t,n,i,q7e)}]]);function Sl(e,t,n){let i=am([...e.value.filter(r=>!td(r))],t);if(i.length===1&&Bi(i[0]))return{inputs:[i[0]],operation:EL};let o=0;for(;o<i.length;){let r=i[o];if(XH(r)&&RS(r.startToken)){let l=Sl(r,t,n);if(l===-1)return-1;i.splice(o,1,l)}else if(Zu(r)){let l=h$.get(r.getName().toLowerCase());if(!l)return-1;let s=l(r,t,n);if(s===-1)return-1;i.splice(o,1,s)}else o++}if(o=0,i.length===1&&jf(i[0]))return i[0];for(;o<i.length;){let r=i[o];if(!r||!Bi(r)&&!jf(r)){o++;continue}let l=i[o+1];if(!l||!Bi(l)){o++;continue}let s=l.value;if(!Q2(s)||s[4].value!=="*"&&s[4].value!=="/"){o++;continue}let u=i[o+2];if(!u||!Bi(u)&&!jf(u))return-1;s[4].value!=="*"?s[4].value!=="/"?o++:i.splice(o,3,{inputs:[r,u],operation:S7e}):i.splice(o,3,{inputs:[r,u],operation:L7e})}if(o=0,i.length===1&&jf(i[0]))return i[0];for(;o<i.length;){let r=i[o];if(!r||!Bi(r)&&!jf(r)){o++;continue}let l=i[o+1];if(!l||!Bi(l)){o++;continue}let s=l.value;if(!Q2(s)||s[4].value!=="+"&&s[4].value!=="-"){o++;continue}let u=i[o+2];if(!u||!Bi(u)&&!jf(u))return-1;s[4].value!=="+"?s[4].value!=="-"?o++:i.splice(o,3,{inputs:[r,u],operation:W7e}):i.splice(o,3,{inputs:[r,u],operation:I7e})}return i.length===1&&jf(i[0])?i[0]:-1}function eH(e,t,n,i){let o=ore(e.value,t,n);return o===-1?-1:i(e,o,n)}function ore(e,t,n){let i=Kl(Sl(Lc(am([...e.filter(o=>!td(o))],t)),t,n));return i===-1?-1:i}function hL(e,t,n,i){let o=lre(e.value,t,n);if(o===-1)return-1;let[r,l]=o;return i(e,r,l,n)}function lre(e,t,n){let i=am([...e.filter(u=>!td(u))],t),o=[],r=[];{let u=o;for(let H=0;H<i.length;H++){let a=i[H];if(Bi(a)&&GH(a.value)){if(u===r)return-1;if(u===o){u=r;continue}return-1}u.push(a)}}let l=Kl(Sl(Lc(o),t,n));if(l===-1)return-1;let s=Kl(Sl(Lc(r),t,n));return s===-1?-1:[l,s]}function _L(e,t,n,i,o){let r=z7e(e.value,n,i);return r===-1?-1:o(e,r,i)}function z7e(e,t,n){let i=am([...e.filter(r=>!td(r))],t),o=[];{let r=[],l=[];for(let s=0;s<i.length;s++){let u=i[s];Bi(u)&&GH(u.value)?(r.push(l),l=[]):l.push(u)}r.push(l);for(let s=0;s<r.length;s++){if(r[s].length===0)return-1;let u=Kl(Sl(Lc(r[s]),t,n));if(u===-1)return-1;o.push(u)}}return o}var J7e=new Set(["nearest","up","down","to-zero"]);function Lc(e){return new ll([Rt.Function,"calc(",-1,-1,{value:"calc"}],[Rt.CloseParen,")",-1,-1,void 0],e)}function Q7e(e,t){return new ll([Rt.Function,"max(",-1,-1,{value:"max"}],[Rt.CloseParen,")",-1,-1,void 0],[e,new qn([Rt.Comma,",",-1,-1,void 0]),t])}function Y7e(e){if(e===-1)return-1;if(Zu(e))return e;let t=e.value;return io(t)&&Number.isNaN(t[4].value)?ms(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,"NaN",t[2],t[3],{value:"NaN"}])]):Ta(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,"NaN",t[2],t[3],{value:"NaN"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Dimension,"1"+t[4].unit,t[2],t[3],{value:1,type:Pn.Integer,unit:t[4].unit}])]):so(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,"NaN",t[2],t[3],{value:"NaN"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Percentage,"1%",t[2],t[3],{value:1}])]):-1:e}function eje(e){if(e===-1)return-1;if(Zu(e))return e;let t=e.value;if(!io(t)||Number.isFinite(t[4].value)||Number.isNaN(t[4].value))return e;let n="";return Number.NEGATIVE_INFINITY===t[4].value&&(n="-"),ms(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,n+"infinity",t[2],t[3],{value:n+"infinity"}])]):Ta(t)?new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,n+"infinity",t[2],t[3],{value:n+"infinity"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Dimension,"1"+t[4].unit,t[2],t[3],{value:1,type:Pn.Integer,unit:t[4].unit}])]):new ll([Rt.Function,"calc(",t[2],t[3],{value:"calc"}],[Rt.CloseParen,")",t[2],t[3],void 0],[new qn([Rt.Ident,n+"infinity",t[2],t[3],{value:n+"infinity"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Delim,"*",t[2],t[3],{value:"*"}]),new ql([[Rt.Whitespace," ",t[2],t[3],void 0]]),new qn([Rt.Percentage,"1%",t[2],t[3],{value:1}])])}function tje(e){if(e===-1)return-1;if(Zu(e))return e;let t=e.value;return io(t)&&Object.is(-0,t[4].value)&&(t[1]==="-0"||(so(t)?t[1]="-0%":Ta(t)?t[1]="-0"+t[4].unit:t[1]="-0")),e}function rje(e,t=13){if(e===-1)return-1;if(t<=0||Zu(e))return e;let n=e.value;if(!io(n)||Number.isInteger(n[4].value))return e;let i=Number(n[4].value.toFixed(t)).toString();return ms(n)?n[1]=i:so(n)?n[1]=i+"%":Ta(n)&&(n[1]=i+n[4].unit),e}function nje(e){return e===-1?-1:(Zu(e)||Ta(e.value)&&(e.value=A7e(e.value)),e)}function ije(e,t){let n=e;return t?.toCanonicalUnits&&(n=nje(n)),n=rje(n,t?.precision),n=tje(n),t?.censorIntoStandardRepresentableValues||(n=Y7e(n),n=eje(n)),n}function sje(e){let t=new Map;if(!e)return t;for(let[n,i]of e)if(q1(i))t.set(n,i);else if(typeof i=="string"){let o=U1({css:i}),r=o.nextToken();if(o.nextToken(),!o.endOfFile()||!io(r))continue;t.set(n,r)}return t}function cre(e,t){let n=sje(t?.globals);return Iee(e,i=>{if(!Zu(i))return;let o=h$.get(i.getName().toLowerCase());if(!o)return;let r=ije(Kl(o(i,n,t??{})),t);return r!==-1?r:void 0})}var N9t=new Set(h$.keys());function om(e){let t=X2({css:`calc(${e})`}),n=Aee(t,{});if(!n)return null;let o=cre([[n]],{randomSeed:1,precision:4})[0][0];return Zu(o)&&o.name[1]==="calc("?null:ti(...o.tokens())}function ure(e,t,n){if(!t.designSystem)return e;let i=[],o=[];return e=sm(e,r=>{let l=pd(r.value,{replace({name:a}){if(!a.startsWith("--"))return null;let c=dd(t.designSystem,a);return c===null?null:(c=sm(c,p=>om(p.value)),c)}}),s=om(l);if(r.value===s||!s)return null;o.push(r.range);let u=zH(s,n.rootFontSize,!1);if(u!==s)return i.push({index:r.range.end+1,value:`${s} = ${u}`}),null;let H=gL(s);return H!==s?(i.push({index:r.range.end+1,value:`${s} = ${H}`}),null):(i.push({index:r.range.end+1,value:s}),null)}),e=pd(e,{recursive:!1,replace({name:r,range:l}){if(!r.startsWith("--"))return null;for(let a of o)if(a.start<=l.start&&a.end>=l.end)return null;let s=dd(t.designSystem,r);if(s===null)return null;let u=zH(s,n.rootFontSize,!1);if(u!==s)return i.push({index:l.end+1,value:`${s} = ${u}`}),null;let H=gL(s);return H!==s?(i.push({index:l.end+1,value:`${s} = ${H}`}),null):(s=sm(s,a=>{let c=om(a.value);return!c||c===a.value?null:`calc(${a.value}) \u2248 ${c}`}),i.push({index:l.end+1,value:s}),null)}}),K_(e,i)}function Hre(e,t){return t.designSystem&&(e=sm(e,n=>{let i=pd(n.value,{replace({name:o,fallback:r}){if(!o.startsWith("--"))return null;let l=dd(t.designSystem,o);return l===null?r:l}});return om(i)}),e=pd(e,{replace({name:n,fallback:i}){if(!n.startsWith("--"))return null;let o=dd(t.designSystem,n);return o===null?i:o}})),e}function lm(e){return(e>0n)-(e<0n)}function Tl(e,t,n=()=>!0){let i=e.modules.jit.generateRules.module(new Set(t),e.jitContext).sort(([l],[s])=>lm(l-s)),o=e.modules.postcss.module.root({nodes:i.map(([,l])=>l)});e.modules.jit.expandApplyAtRules.module(e.jitContext)(o),e.modules.jit.evaluateTailwindFunctions?.module?.(e.jitContext)(o);let r=[];return o.walkRules(l=>{n(l)&&r.push(l)}),{root:o,rules:r}}async function cm(e,t,n){let i=await e.editor.getConfiguration(n),o=t.clone();o.walkAtRules("defaults",u=>{u.remove()});let r=o.toString();r=ure(r,e,i.tailwindCSS),r=bL(r,i.tailwindCSS);let l=e.v4?2:4,s=e.v4?/^(?: )+/gm:/^(?: )+/gm;return r.replace(/([^;{}\s])(\n\s*})/g,(u,H,a)=>`${H};${a}`).replace(s,u=>" ".repeat(u.length/l*i.editor.tabSize))}async function _$(e,t,n){let i=await e.editor.getConfiguration(n),o=[];return t.walkDecls(({prop:r,value:l})=>{l=Hre(l,e).trim(),i.tailwindCSS.showPixelEquivalents&&(l=zH(l,i.tailwindCSS.rootFontSize)),o.push(`${r}: ${l};`)}),o.join(" ")}function aje(e,t,n,i){let o=r=>{r.walkClasses(l=>{l.value===n&&(l.value=i)})};return e.modules.postcssSelectorParser.module(o).processSync(t)}function oje(e){return e.type==="atrule"}function m$(e,t,n){let i=[aje(e,t.selector,n,"__placeholder__")],o=t;for(;o.parent&&o.parent.type!=="root";)o=o.parent,oje(o)&&i.unshift(`@${o.name} ${o.params}`);return i}var sM=Er(E$());var qs=Er(nM(),1),Zl=qs.default,z2t=qs.default.stringify,J2t=qs.default.fromJSON,Q2t=qs.default.plugin,Y2t=qs.default.parse,eRt=qs.default.list,tRt=qs.default.document,rRt=qs.default.comment,nRt=qs.default.atRule,lie=qs.default.rule,iRt=qs.default.decl,cie=qs.default.root,sRt=qs.default.CssSyntaxError,aRt=qs.default.Declaration,oRt=qs.default.Container,lRt=qs.default.Processor,cRt=qs.default.Document,uRt=qs.default.Comment,HRt=qs.default.Warning,pRt=qs.default.AtRule,dRt=qs.default.Result,fRt=qs.default.Input,hRt=qs.default.Rule,_Rt=qs.default.Root,mRt=qs.default.Node;var o6e=["accent-color","caret-color","color","column-rule-color","background-color","border-color","border-top-color","border-right-color","border-bottom-color","border-left-color","border-inline-color","border-inline-start-color","border-inline-end-color","border-block-color","border-block-start-color","border-block-end-color","fill","outline-color","stop-color","stroke","text-decoration-color"];function uie(e){if(typeof e!="string")return null;let t=e.toLowerCase();return t==="transparent"?"transparent":t==="currentcolor"?"currentColor":null}var l6e=new RegExp(`(?:^|\\s|\\(|,)(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgba?|hsla?|(?:ok)?(?:lab|lch))\\(\\s*(-?[\\d.]+(%|deg|rad|grad|turn)?(\\s*[,/]\\s*|\\s+)+){2,3}\\s*([\\d.]+%?|var\\([^)]+\\))?\\)|transparent|currentColor|${Object.keys(sM.default).join("|")})(?:$|\\s|\\)|,)`,"gi");function c6e(e,t){if(/(?:box|drop)-shadow/.test(t)&&!/--tw-drop-shadow/.test(t))return[];function n(o){let r=o[1].replace(/var\([^)]+\)/,"1");return uie(r)??oM(r)}t=rre(e,t),t=m6e(t),t=y6e(t);let i=t.matchAll(l6e);return Array.from(i,n).filter(Boolean)}function qL(e,t){let n=Object.keys(t).filter(c=>{if(c==="content"){let p=t[c];if(Array.isArray(p)&&p.length===1&&(p=p[0]),p==='""'||p==="''"||p==="var(--tw-content)")return!1}return!(c==="mask-image"||c==="mask-composite"||c==="--tw-drop-shadow")});if(n.length===0)return null;let i=n.filter(c=>!c.startsWith("--")),o=i.length===0;if(!o&&i.some(c=>!o6e.includes(c)))return null;let l=(o?n:i).flatMap(c=>wp(t[c]).flatMap(p=>c6e(e,p))),s=PD(l.map(c=>typeof c=="string"?c:im({...c,alpha:void 0})));if(s.length!==1)return null;let u=uie(s[0]);if(u)return u;let H=l.filter(c=>typeof c!="string"),a=PD(H.map(c=>c.alpha??1));return a.length===1?H[0]:a.length===2&&a.includes(0)?H.find(c=>(c.alpha??1)!==0):null}function u6e(e,t){t=t.clone(),t.walkAtRules(o=>{o.name==="property"&&o.remove(),o.name==="supports"&&o.params==="(-moz-orient: inline)"&&o.remove()});let n={},i=Zl.rule({selector:".x",nodes:[]});return t.walkDecls(o=>{i.append(o.clone())}),t.walkDecls(o=>{n[o.prop]??=[],n[o.prop].push(o.value)}),qL(e,n)}var H6e=/^-/,p6e=/^-?((min-|max-)?[wh]|z|start|order|opacity|rounded|row|col|size|basis|end|duration|ease|font|top|left|bottom|right|inset|leading|cursor|(space|scale|skew|rotate)-[xyz]|gap(-[xy])?|(scroll-)?[pm][trblxyse]?)-/,d6e=/^-?mask-/;function f6e(e){return!!(H6e.test(e)||d6e.test(e)||p6e.test(e))}function vc(e,t){if(e.v4){if(f6e(t))return null;let o=e.designSystem.compile([t])[0];return u6e(e,o)}if(e.jit){if(e.classNames){let u=(0,iM.default)(e.classNames.classNames,[t,"__info"]);if(u&&u.__rule)return qL(e,yc(u))}let o;try{o=Tl(e,[t])}catch(u){return console.error(`Error generating rules for className: ${t}`),console.error(u),null}let{root:r,rules:l}=o;if(l.length===0)return null;let s={};return r.walkDecls(u=>{let H=s[u.prop];H?Array.isArray(H)?H.push(u.value):s[u.prop]=[H,u.value]:s[u.prop]=u.value}),qL(e,s)}let n=Yu(e,t);if(!n)return null;let i=(0,iM.default)(e.classNames.classNames,[...n,"__info"]);return i.__rule?qL(e,yc(i)):null}function Kf(e){if(typeof e!="string")return null;let t=e.trim();return t.toLowerCase()==="transparent"?"transparent":t.toLowerCase()==="currentcolor"?"currentColor":!/^\s*(?:rgba?|hsla?|(?:ok)?(?:lab|lch))\s*\([^)]+\)\s*$/.test(t)&&!/^\s*#[0-9a-f]+\s*$/i.test(t)&&!Object.keys(sM.default).includes(t)?null:oM(t)}var h6e=bc("rgb");function aM(e){let t=p$(h6e(e));return{red:t.r,green:t.g,blue:t.b,alpha:t.alpha??1}}function du(e){return e.alpha===void 0||e.alpha===1?c$(e):_0(e)}var _6e=/color-mix\(in [^,]+,\s*(.*?)\s*(\d+|\.\d+|\d+\.\d+)%,\s*transparent\)/g;function oM(e){try{return r0(e)??null}catch(t){return console.error("Error parsing color",e),console.error(t),null}}function m6e(e){return e.replace(_6e,(t,n,i)=>{if(n.startsWith("var("))return t;let o=oM(n);if(!o)return t;let r=Number(i)/100;return Number.isNaN(r)?t:im({...o,alpha:r})})}var E6e=/light-dark\(\s*(.*?)\s*,\s*.*?\s*\)/g;function y6e(e){return e.replace(E6e,(t,n)=>n)}var Hie=["rgb","rgba","hsl","hsla","lch","lab","oklch","oklab"];function gL(e){let t=Kf(e);return!t||typeof t=="string"||!H$("rgb")(t)?e:du(t)}var die=Object.assign(({comments:e})=>({postcssPlugin:"plugin",Declaration(t){Hie.some(n=>t.value.includes(n))&&(0,pie.default)(t.value).walk(n=>{if(n.type!=="function"||n.value==="var")return!0;if(!Hie.includes(n.value))return!1;let i=n.nodes.filter(l=>l.type==="word").map(l=>l.value);if(i.length<3)return!1;let o=`${n.value}(${i.join(" ")})`,r=gL(o);return r===o||e.push({index:t.source.start.offset+`${t.prop}${t.raws.between}`.length+n.sourceEndIndex,value:r}),!1})}}),{postcss:!0});function bL(e,t){let n=[],i=[];t.showPixelEquivalents&&i.push(Ree({comments:n,rootFontSize:t.rootFontSize})),i.push(die({comments:n}));try{Zl(i).process(e,{from:void 0}).css}catch{return e}return K_(e,n)}function WL(e){return Ja(e)?`${Object.keys(e).length} values`:typeof e=="function"?"\u0192":typeof e=="string"?e:(0,_ie.default)(e,{inlineCharacterLimit:1/0,singleQuotes:!1,transform:(t,n,i)=>typeof t[n]=="function"?"\u0192":i})}function j0(e,t,n){if(t.__rule!==!0&&!Array.isArray(t))return null;if(Array.isArray(t)){let H=t.map(a=>j0(e,a,n)).filter(Boolean);return H.length===0?null:H.join(`
|
1777
1777
|
|
1778
1778
|
`)}let i="",o=" ".repeat(n.editor.tabSize),r=(0,fie.default)(t,"__context",[]),l=Object.keys(yc(t));if(l.length===0)return null;for(let H=0;H<r.length;H++)i+=`${o.repeat(H)}${r[H]} {
|
1779
1779
|
`;let s=o.repeat(r.length),u=l.reduce((H,a,c)=>{let p=wp(t[a]).map(d=>`${s+o}${a}: ${d};`).join(`
|
@@ -3580,7 +3580,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
|
|
3580
3580
|
@tailwind ${K};`).join(`
|
3581
3581
|
`),{from:void 0})}catch(K){throw K}finally{Z?.unhook()}E.dependencies=LT(E.configPath),u((E.dependencies??[]).flatMap(K=>Jx(K,t.folder))),E.configId=j0e(E.configPath,E.dependencies),E.plugins=await NEt(P),ee&&(E.classNames=await UY(ee.root)),E.variants=q0e(E);let J=(0,vu.default)(E.config,"theme.screens",(0,vu.default)(E.config,"screens",{}));E.screens=Uu(J)?Object.keys(J):[],E.enabled=!0,s(),r(),(i.initializationOptions?.testMode??!1)&&n.sendNotification("@/tailwindCSS/projectReloaded")}for(let O of t.config.entries){d.add(O.path);for(let j of O.deps)d.add(j.path)}return{projectConfig:t,enabled(){return h},enable(){h=!0},dependencies:()=>d,async reload(){if(!E.v4)return;console.log("---- RELOADING DESIGN SYSTEM ----"),console.log(`---- ${E.configPath} ----`);let O=await Td(E.configPath),j,k=process.hrtime.bigint();try{j=await pj(A,E.modules.tailwindcss.module,E.configPath,O,E.v4Fallback??!1)}catch(Z){throw console.error(Z),Z}let $=Object.create(E,{designSystem:{value:j}}),U=j.getClassList().map(Z=>[Z[0],{...Z[1],color:vc($,Z[0])}]);E.designSystem=j,E.classList=U,E.variants=q0e(E),E.blocklist=Array.from(j.invalidCandidates??[]);let F=j.dependencies();for(let Z of F)d.add(Z);u(Array.from(F));let P=process.hrtime.bigint()-k;console.log(`---- RELOADED IN ${(Number(P)/1e6).toFixed(2)}ms ----`),(i.initializationOptions?.testMode??!1)&&n.sendNotification("@/tailwindCSS/projectReloaded")},state:E,documentSelector(){return y},tryInit:L,async dispose(){E={enabled:!1,features:[]};for(let O of g)(await O).dispose()},async onUpdateSettings(O){E.enabled&&s(),r(),n.sendNotification("@/tailwindCSS/clearColors")},onFileEvents:T,async onHover(O){return If(async()=>{if(!E.enabled)return null;let j=o.getDocument(O.textDocument.uri);return!j||!(await E.editor.getConfiguration(j.uri)).tailwindCSS.hovers||await np(E,j)?null:Pse(E,j,O.position)},null)},async onCodeLens(O){return If(async()=>{if(!E.enabled)return null;let j=o.getDocument(O.textDocument.uri);return!j||!(await E.editor.getConfiguration(j.uri)).tailwindCSS.codeLens||await np(E,j)?null:Rse(E,j)},null)},async onCompletion(O){return If(async()=>{if(!E.enabled)return null;let j=o.getDocument(O.textDocument.uri);return!j||!(await E.editor.getConfiguration(j.uri)).tailwindCSS.suggestions||await np(E,j)?null:Gse(E,j,O.position,O.context)},null)},onCompletionResolve(O){return If(()=>E.enabled?Xse(E,O):null,null)},async onCodeAction(O){return If(async()=>{if(!E.enabled)return null;let j=o.getDocument(O.textDocument.uri);return!j||!(await E.editor.getConfiguration(j.uri)).tailwindCSS.codeActions?null:Iae(E,O,j)},null)},onDocumentLinks(O){if(!E.enabled)return null;let j=o.getDocument(O.textDocument.uri);if(!j)return null;let k=hj.URI.parse(j.uri).fsPath,$=Ra.dirname(k);async function U(F){return F=await A.substituteId(F,$)??F,hj.URI.file(Ra.resolve($,F)).toString()}return Tae(E,j,U)},provideDiagnostics:(0,G0e.debounce)(O=>{E.enabled&&LM(E,O)},i.initializationOptions?.testMode?0:500),provideDiagnosticsForce:O=>{E.enabled&&LM(E,O)},async onDocumentColor(O){return If(async()=>{if(!E.enabled)return[];let j=o.getDocument(O.textDocument.uri);return j?await np(E,j)?null:Lae(E,j):[]},null)},async onColorPresentation(O){let j=o.getDocument(O.textDocument.uri);if(!j)return[];let k=j.getText(O.range),$=k.match(new RegExp(`-\\[(${F0e.join("|")}|(?:(?:#|rgba?\\(|hsla?\\())[^\\]]+)\\]$`,"i"));if($===null)return[];let U=$[1],F=F0e.includes(U),P={mode:"rgb",r:O.color.red,g:O.color.green,b:O.color.blue,alpha:O.color.alpha},W=_0(P);if(!F&&(U.length===4||U.length===5)){let[,...ee]=W.match(/^#([a-f\d])\1([a-f\d])\2([a-f\d])\3(?:([a-f\d])\4)?$/i)??[];ee.length&&(W=`#${ee.filter(Boolean).join("")}`)}W.length===5?W=W.replace(/f$/,""):W.length===9&&(W=W.replace(/ff$/,""));let Z=k.substr(0,$.index);return[W,im(P).replace(/ /g,""),u$(P).replace(/ /g,"").replace(/\d+\.\d+(%?)/g,(ee,J)=>`${Math.round(parseFloat(ee))}${J}`)].map(ee=>({label:`${Z}-[${ee}]`}))},sortClassLists(O){return E.jit?O.map(j=>{let k="",$=j.split(/(\s+)/),U=$.filter((W,Z)=>Z%2===0),F=$.filter((W,Z)=>Z%2!==0);U[U.length-1]===""&&U.pop();let P;E.v4?P=E.designSystem.getClassOrder(U):E.jitContext.getClassOrder?P=E.jitContext.getClassOrder(U):P=PEt(E,U),U=P.sort(([,W],[,Z])=>W===Z?0:W===null?-1:Z===null?1:lm(W-Z)).map(([W])=>W);for(let W=0;W<U.length;W++)k+=`${U[W]}${F[W]??""}`;return k}):O}}}function U0e(e,t){let n=e.config.prefix;return typeof n=="function"?n(t):n+t}function PEt(e,t){let n=new Set([U0e(e,"group"),U0e(e,"peer")]),i=[];for(let o of t){let r=e.modules.jit.generateRules.module(new Set([o]),e.jitContext).sort(([l],[s])=>lm(s-l))[0]?.[0]??null;r===null&&n.has(o)&&(r=e.jitContext.layerOrder.components),i.push([o,r])}return i}function wEt(e,t,n={}){let i=t.config,o=t.modules.postcss.module,r=t.browserslist,l=r&&r.includes("ie 11")?"ie11":"relaxed",s=typeof e=="function"?e:e.handler;try{s({addUtilities:()=>{},addComponents:()=>{},addBase:()=>{},matchUtilities:()=>{},addVariant:()=>{},e:u=>u,prefix:u=>u,theme:(u,H)=>(0,vu.default)(i,`theme.${u}`,H),variants:()=>[],config:(u,H)=>(0,vu.default)(i,u,H),corePlugins:u=>Array.isArray(i.corePlugins)?i.corePlugins.includes(u):(0,vu.default)(i,`corePlugins.${u}`,!0),target:u=>{if(typeof i.target=="string")return i.target==="browserslist"?l:i.target;let[H,a]=(0,vu.default)(i,"target"),c=(0,vu.default)(a,u,H);return c==="browserslist"?l:c},postcss:o,...n})}catch{}}function kEt(e){return e.type==="atrule"}function q0e(e){if(e.v4){let r=Array.from(e.designSystem.getVariants()),l=e.designSystem.theme.prefix??"";return l.length>0&&r.unshift({name:l,values:[],isArbitrary:!1,hasDash:!0,selectors:()=>["&"]}),r}if(e.jitContext?.getVariants)return e.jitContext.getVariants();if(e.jit){let r=[];return Array.from(e.jitContext.variantMap).forEach(([l,s])=>{r.push({name:l,values:[],isArbitrary:!1,hasDash:!0,selectors:()=>{function u(g){let y=e.modules.postcssSelectorParser.module.className();return y.value=g,(0,vu.default)(y,"raws.value",y.value)}let H=(Array.isArray(s[0])?s:[s]).map(([g,y])=>y),a="__variant_placeholder__",c=e.modules.postcss.module.root({nodes:[e.modules.postcss.module.rule({selector:`.${u(a)}`,nodes:[]})]}),p=e.modules.postcssSelectorParser.module(g=>g.first.filter(({type:y})=>y==="class").pop().value);function d(g){return p.transformSync(g)}function h(g){return c.each(y=>{y.type==="rule"&&(y.selectors=y.selectors.map(_=>g({get className(){return d(_)},selector:_})))}),c}let m=[];for(let g of H){let y,_=c.clone(),E=uX(()=>g({container:_,separator:e.separator,modifySelectors:h,format:A=>{y=A.replace(/:merge\(([^)]+)\)/g,"$1")},wrap:A=>{kEt(A)&&(y=`@${A.name} ${A.params}`)}}));if(y||(y=E),y){m.push(y);continue}_.walkDecls(A=>{A.remove()}),y=_.toString().replace(`.${u(`${l}:${a}`)}`,"&").replace(/(?<!\\)[{}]/g,"").replace(/\s*\n\s*/g," ").trim(),y.includes(a)||m.push(y)}return m}})}),r}let t=e.config,n=e.modules.tailwindcss.version,i=["responsive","hover"];return vn(n,"0.3.0")&&i.push("focus","group-hover"),vn(n,"0.5.0")&&i.push("active"),vn(n,"0.7.0")&&i.push("focus-within"),vn(n,"1.0.0-beta.1")&&i.push("default"),vn(n,"1.1.0")&&i.push("first","last","odd","even","disabled","visited"),vn(n,"1.3.0")&&i.push("group-focus"),vn(n,"1.5.0")&&i.push("focus-visible","checked"),vn(n,"1.6.0")&&i.push("motion-safe","motion-reduce"),vn(n,"2.0.0-alpha.1")&&i.push("dark"),(Array.isArray(t.plugins)?t.plugins:[]).forEach(r=>{wEt(r,e,{addVariant:l=>{i.push(l)}})}),i.map(r=>({name:r,values:[],isArbitrary:!1,hasDash:!0,selectors:()=>[]}))}async function NEt(e){let t=e.plugins;return Array.isArray(t)?Promise.all(t.map(async n=>{let i=n.config;Uu(i)||(i={});let o={theme:Uu(i.theme)?Object.keys(i.theme):[],variants:Uu(i.variants)?Object.keys(i.variants):[]},r=n.handler||n,l=typeof r.name=="string"&&r.name!=="handler"&&r.name!==""?r.name:null;try{r()}catch(s){let u=K0e.default.parse(s);if(u.length===0)return{name:l};let H=u[0].fileName,a=Ra.dirname(H);if(!V0e.default.sync({cwd:a}))return{name:l};let p;try{p=require(p)}catch{return{name:l}}if(p.name&&Ra.resolve(a,p.main||"index.js")===H)return{name:p.name,homepage:p.homepage,contributes:o}}return{name:l}})):[]}var nge=Er(tge());function rge(){return{editor:{tabSize:2},tailwindCSS:{inspectPort:null,emmetCompletions:!1,classAttributes:["class","className","ngClass","class:list"],classFunctions:[],codeActions:!0,codeLens:!0,hovers:!0,suggestions:!0,validate:!0,colorDecorators:!0,rootFontSize:16,lint:{cssConflict:"warning",invalidApply:"error",invalidScreen:"error",invalidVariant:"error",invalidConfigPath:"error",invalidTailwindDirective:"error",invalidSourceDirective:"error",recommendedVariantOrder:"warning",usedBlocklistedClass:"warning"},showPixelEquivalents:!0,includeLanguages:{},files:{exclude:["**/.git/**","**/.hg/**","**/.svn/**","**/node_modules/**","**/.yarn/**","**/.venv/**","**/venv/**","**/.next/**","**/.parcel-cache/**","**/.svelte-kit/**","**/.turbo/**","**/__pycache__/**"]},experimental:{classRegex:[],configFile:null}}}}function ige(e){let t=new Map;async function n(o){let r=t.get(o);return r||(r=await i(o),t.set(o,r)),r}async function i(o){let[r,l]=await Promise.all([e.workspace.getConfiguration({section:"editor",scopeUri:o}),e.workspace.getConfiguration({section:"tailwindCSS",scopeUri:o})]);return r=Uu(r)?r:{},l=Uu(l)?l:{},(0,nge.default)(rge(),{editor:r,tailwindCSS:l},{arrayMerge:(s,u,H)=>u})}return{get:n,clear(){t.clear()}}}var s1t=Er(require("node:fs")),lbe=Er(require("node:path")),RE=Er(EP());var sge=Er(vI()),Yx=Er(require("node:path"));var _j=new Map;async function age(e){let t=_j.get(e);if(t!==void 0)return t;let n=await XEt(Yx.normalize(e));if(!n)return _j.set(e,null),null;let r=(await import(NH(n).href)).default;return r.setup(),_j.set(e,r),r}async function XEt(e){let t=[".pnp.js",".pnp.cjs"];for(let n of t){let i=Yx.join(e,n);if(await sge.default.exists(i))return i}return null}var wh=Er(require("node:path")),abe=Er(jge());var Ph=Er(require("node:path"),1),Vge=Er(require("node:fs"),1);var tl=Er(require("node:path"),1),Wge=require("node:fs"),Byt=new RegExp("\\"+tl.default.posix.sep,"g"),Oyt=new RegExp("\\"+tl.default.sep,"g"),Nj=new Map,wE="**/*",lD=[".ts",".tsx",".mts",".cts"],Fyt=[".js",".jsx",".mjs",".cjs"],$j=lD.concat(Fyt),jyt=`\\.(?:${lD.map(e=>e.substring(1)).join("|")})`,Uyt=`\\.(?:${$j.map(e=>e.substring(1)).join("|")})`,cD=tl.default.posix.sep===tl.default.sep;function Wb(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}async function Mj(e,t){if(tl.default.extname(e)!==".json")return;let n=tl.default.resolve(e);return t&&(t.hasParseResult(n)||t.hasParseResult(e))?n:Wge.promises.stat(n).then(i=>{if(i.isFile()||i.isFIFO())return n;throw new Error(`${e} exists but is not a regular file.`)})}var Bj=cD?e=>e.includes("/node_modules/"):e=>e.match(/[/\\]node_modules[/\\]/),Rj=cD?e=>e:e=>e.replace(Byt,tl.default.sep),Dh=cD?e=>e:e=>e.replace(Oyt,tl.default.posix.sep),kE=cD?(e,t)=>e?tl.default.resolve(e,t):tl.default.resolve(t):(e,t)=>Dh(e?tl.default.resolve(Rj(e),Rj(t)):tl.default.resolve(Rj(t)));function Oj(e,t){let n=tl.default.dirname(e.tsconfigFile);return e.tsconfig.references.map(i=>{let o=i.path.endsWith(".json")?i.path:tl.default.join(i.path,t?.configName??"tsconfig.json");return kE(n,o)})}function Fj(e,t){let i=t.tsconfig.compilerOptions?.allowJs?$j:lD;if(t.referenced&&i.some(o=>e.endsWith(o))&&!Uge(e,t)){let o=t.referenced.find(r=>Uge(e,r));if(o)return o}return t}function Uge(e,t){let n=Dh(tl.default.dirname(t.tsconfigFile)),i=(t.tsconfig.files||[]).map(s=>kE(n,s)),o=kE(null,e);if(i.includes(e))return!0;let r=t.tsconfig.compilerOptions?.allowJs;return qge(o,n,t.tsconfig.include||(t.tsconfig.files?[]:[wE]),r)?!qge(o,n,t.tsconfig.exclude||[],r):!1}function qge(e,t,n,i){let o=i?$j:lD;return n.some(r=>{let l=r.length,s=!1,u=!1,H=!1,a=-1;for(let h=r.length-1;h>-1;h--){let m=r[h];if(s||(m==="*"||m==="?")&&(l=h,s=!0),H||(m==="."?u=!0:m==="/"&&(a=h,H=!0)),s&&H)break}if(!u&&(!s||l<a)&&(r+=`${r.endsWith("/")?"":"/"}${wE}`,l=r.length-1,s=!0),l<r.length-1&&!e.endsWith(r.slice(l+1))||r.endsWith("*")&&!o.some(h=>e.endsWith(h)))return!1;if(r===wE)return e.startsWith(`${t}/`);let c=kE(t,r),p=-1;for(let h=0;h<c.length;h++)if(c[h]==="*"||c[h]==="?"){p=h,s=!0;break}if(p>1&&!e.startsWith(c.slice(0,p-1)))return!1;if(s){if(p+wE.length===c.length-(r.length-1-l)&&c.slice(p,p+wE.length)===wE)return!0}else return e===c;if(Nj.has(c))return Nj.get(c).test(e);let d=qyt(c,i);return Nj.set(c,d),d.test(e)})}function qyt(e,t){let n="^";for(let i=0;i<e.length;i++){let o=e[i];if(o==="?"){n+="[^\\/]";continue}if(o==="*"){if(e[i+1]==="*"&&e[i+2]==="/"){i+=2,n+="(?:[^\\/]*\\/)*";continue}n+="[^\\/]*";continue}"/.+^${}()|[]\\".includes(o)&&(n+="\\"),n+=o}return e.endsWith("*")&&(n+=t?Uyt:jyt),n+="$",new RegExp(n)}function jj(e,t){return JSON.parse(JSON.stringify(e).replaceAll(/"\${configDir}/g,`"${Dh(t)}`))}async function Uj(e,t){let n=Ph.default.dirname(Ph.default.resolve(e));if(t?.ignoreNodeModules&&Bj(n))return null;let i=t?.cache,o=t?.configName??"tsconfig.json";if(i?.hasConfigPath(n,o))return i.getConfigPath(n,o);let{promise:r,resolve:l,reject:s}=Wb();return t?.root&&!Ph.default.isAbsolute(t.root)&&(t.root=Ph.default.resolve(t.root)),Kge(n,{promise:r,resolve:l,reject:s},t),r}function Kge(e,{resolve:t,reject:n,promise:i},o){let{cache:r,root:l,configName:s}=o??{};if(r)if(r.hasConfigPath(e,s)){let H;try{H=r.getConfigPath(e,s)}catch(a){n(a);return}H?.then?H.then(t).catch(n):t(H)}else r.setConfigPath(e,i,s);let u=Ph.default.join(e,o?.configName??"tsconfig.json");Vge.default.stat(u,(H,a)=>{if(a&&(a.isFile()||a.isFIFO()))t(u);else if(H?.code!=="ENOENT")n(H);else{let c;l===e||(c=Ph.default.dirname(e))===e?t(null):Kge(c,{promise:i,resolve:t,reject:n},o)}})}var qj=Er(require("node:path"),1),Xge=require("node:fs"),Gge=qj.default.sep;async function Wj(e,t){let n={files:[],calls:0,skip:t?.skip,err:!1,configNames:t?.configNames??["tsconfig.json"]};return new Promise((i,o)=>{Zge(qj.default.resolve(e),n,(r,l)=>r?o(r):i(l))})}function Zge(e,t,n){t.err||(t.calls++,(0,Xge.readdir)(e,{withFileTypes:!0},(i,o=[])=>{if(!t.err)if(i&&!(i.code==="ENOENT"||i.code==="EACCES"||i.code==="EPERM"))t.err=!0,n(i);else{for(let r of o)r.isDirectory()&&!t.skip?.(r.name)?Zge(`${e}${Gge}${r.name}`,t,n):r.isFile()&&t.configNames.includes(r.name)&&t.files.push(`${e}${Gge}${r.name}`);--t.calls===0&&(t.err||n(null,t.files))}}))}function Kj(e){let t=Wyt(Vyt(Kyt(e)));return t.trim()===""?"{}":t}function Wyt(e){let t=!1,n=0,i="",o=null;for(let r=0;r<e.length;r++){let l=e[r];if(l==='"'&&(Jge(e,r)||(t=!t)),t){o=null;continue}if(l===","){o=r;continue}o&&(l==="}"||l==="]"?(i+=e.slice(n,o)+" ",n=o+1,o=null):l.match(/\s/)||(o=null))}return i+e.substring(n)}function Jge(e,t){let n=t-1,i=0;for(;e[n]==="\\";)n-=1,i+=1;return!!(i%2)}function uD(e,t,n){return e.slice(t,n).replace(/\S/g," ")}var Vj=Symbol("singleComment"),zge=Symbol("multiComment");function Vyt(e){let t=!1,n=!1,i=0,o="";for(let r=0;r<e.length;r++){let l=e[r],s=e[r+1];!n&&l==='"'&&(Jge(e,r)||(t=!t)),!t&&(!n&&l+s==="//"?(o+=e.slice(i,r),i=r,n=Vj,r++):n===Vj&&l+s===`\r
|
3582
3582
|
`?(r++,n=!1,o+=uD(e,i,r),i=r):n===Vj&&l===`
|
3583
|
-
`?(n=!1,o+=uD(e,i,r),i=r):!n&&l+s==="/*"?(o+=e.slice(i,r),i=r,n=zge,r++):n===zge&&l+s==="*/"&&(r++,n=!1,o+=uD(e,i,r+1),i=r+1))}return o+(n?uD(e.slice(i)):e.slice(i))}function Kyt(e){return e.charCodeAt(0)===65279?e.slice(1):e}var Wc=Er(require("node:path"),1),tbe=require("node:fs"),rbe=require("module");var Gyt={tsconfigFile:null,tsconfig:{}};async function Xj(e,t){let n=t?.cache;if(n?.hasParseResult(e))return Qge(e,n,t);let{resolve:i,reject:o,promise:r}=Wb();n?.setParseResult(e,r,!0);try{let l=await Mj(e,n)||await Uj(e,t);if(!l)return i(Gyt),r;let s;e!==l&&n?.hasParseResult(l)?s=await Qge(l,n,t):(s=await Zj(l,n,e===l),await Promise.all([zj(s,n),nbe(s,t)])),s.tsconfig=jj(s.tsconfig,Wc.default.dirname(l)),i(Fj(e,s))}catch(l){o(l)}return r}async function Qge(e,t,n){let i=await t.getParseResult(e);if(i.tsconfig.extends&&!i.extended||i.tsconfig.references&&!i.referenced){let o=Promise.all([zj(i,t),nbe(i,n)]).then(()=>i);return t.setParseResult(e,o,!0),o}return i}async function Zj(e,t,n){if(!n&&t?.hasParseResult(e)&&!t.getParseResult(e)._isRootFile_)return t.getParseResult(e);let i=tbe.promises.readFile(e,"utf-8").then(Kj).then(o=>{let r=JSON.parse(o);return Qyt(r,e),{tsconfigFile:e,tsconfig:Xyt(r,Wc.default.dirname(e))}}).catch(o=>{throw new NE(`parsing ${e} failed: ${o}`,"PARSE_FILE",e,o)});return!n&&(!t?.hasParseResult(e)||!t.getParseResult(e)._isRootFile_)&&t?.setParseResult(e,i),i}function Xyt(e,t){let n=e.compilerOptions?.baseUrl;return n&&!n.startsWith("${")&&!Wc.default.isAbsolute(n)&&(e.compilerOptions.baseUrl=kE(t,n)),e}async function nbe(e,t){if(!e.tsconfig.references)return;let n=Oj(e,t),i=await Promise.all(n.map(o=>Zj(o,t?.cache)));await Promise.all(i.map(o=>zj(o,t?.cache))),i.forEach(o=>{o.solution=e}),e.referenced=i}async function zj(e,t){if(!e.tsconfig.extends)return;let n=[{tsconfigFile:e.tsconfigFile,tsconfig:JSON.parse(JSON.stringify(e.tsconfig))}],i=0,o=[],r=0;for(;i<n.length;){let l=n[i];if(o.push(l.tsconfigFile),l.tsconfig.extends){r+=1;let s;Array.isArray(l.tsconfig.extends)?s=l.tsconfig.extends.reverse().map(H=>Yge(H,l.tsconfigFile)):s=[Yge(l.tsconfig.extends,l.tsconfigFile)];let u=s.find(H=>o.includes(H));if(u){let H=o.concat([u]).join(" -> ");throw new NE(`Circular dependency in "extends": ${H}`,"EXTENDS_CIRCULAR",e.tsconfigFile)}n.splice(i+1,0,...await Promise.all(s.map(H=>Zj(H,t))))}else o.splice(-r),r=0;i=i+1}e.extended=n;for(let l of e.extended.slice(1))zyt(e,l)}function Yge(e,t){e===".."&&(e="../tsconfig.json");let n=(0,rbe.createRequire)(t),i;try{return n.resolve(e)}catch(o){i=o}if(e[0]!=="."&&!Wc.default.isAbsolute(e))try{return n.resolve(`${e}/tsconfig.json`)}catch(o){i=o}throw new NE(`failed to resolve "extends":"${e}" in ${t}`,"EXTENDS_RESOLVE",t,i)}var Zyt=["compilerOptions","files","include","exclude","watchOptions","compileOnSave","typeAcquisition","buildOptions"];function zyt(e,t){let n=e.tsconfig,i=t.tsconfig,o=Dh(Wc.default.relative(Wc.default.dirname(e.tsconfigFile),Wc.default.dirname(t.tsconfigFile)));for(let r of Object.keys(i).filter(l=>Zyt.includes(l)))if(r==="compilerOptions"){n.compilerOptions||(n.compilerOptions={});for(let l of Object.keys(i.compilerOptions))Object.prototype.hasOwnProperty.call(n.compilerOptions,l)||(n.compilerOptions[l]=Gj(l,i.compilerOptions[l],o))}else if(n[r]===void 0)if(r==="watchOptions"){n.watchOptions={};for(let l of Object.keys(i.watchOptions))n.watchOptions[l]=Gj(l,i.watchOptions[l],o)}else n[r]=Gj(r,i[r],o)}var Jyt=["files","include","exclude","baseUrl","rootDir","rootDirs","typeRoots","outDir","outFile","declarationDir","excludeDirectories","excludeFiles"];function Gj(e,t,n){return Jyt.includes(e)?Array.isArray(t)?t.map(i=>ebe(i,n)):ebe(t,n):t}function ebe(e,t){return Wc.default.isAbsolute(e)||e.startsWith("${configDir}")?e:Wc.default.posix.normalize(Wc.default.posix.join(t,e))}var NE=class e extends Error{code;cause;tsconfigFile;constructor(t,n,i,o){super(t),Object.setPrototypeOf(this,e.prototype),this.name=e.name,this.code=n,this.cause=o,this.tsconfigFile=i}};function Qyt(e,t){e1t(t)&&(e.compilerOptions={...Yyt,...e.compilerOptions})}var Yyt={allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0};function e1t(e){return Wc.default.basename(e)==="jsconfig.json"}var Vb=class{clear(){this.#t.clear(),this.#e.clear()}hasConfigPath(t,n="tsconfig.json"){return this.#t.has(`${t}/${n}`)}getConfigPath(t,n="tsconfig.json"){let i=`${t}/${n}`,o=this.#t.get(i);if(o==null||o.length||o.then)return o;throw o}hasParseResult(t){return this.#e.has(t)}getParseResult(t){let n=this.#e.get(t);if(n.then||n.tsconfig)return n;throw n}setParseResult(t,n,i=!1){Object.defineProperty(n,"_isRootFile_",{value:i,writable:!1,enumerable:!1,configurable:!1}),this.#e.set(t,n),n.then(o=>{this.#e.get(t)===n&&this.#e.set(t,o)}).catch(o=>{this.#e.get(t)===n&&this.#e.set(t,o)})}setConfigPath(t,n,i="tsconfig.json"){let o=`${t}/${i}`;this.#t.set(o,n),n.then(r=>{this.#t.get(o)===n&&this.#t.set(o,r)}).catch(r=>{this.#t.get(o)===n&&this.#t.set(o,r)})}#t=new Map;#e=new Map};var HD=class extends Map{constructor(n){super();this.factory=n}get(n){let i=super.get(n);return i===void 0&&(i=this.factory(n,this),this.set(n,i)),i}};async function obe(e){let{configs:t,errors:n}=await ibe(e),i=await sbe(t);async function o(u,H){for(let a of Jj(H))for(let{match:c}of i.get(a))try{return await c(u)}catch{return null}return null}async function r(u,H){for(let a of Jj(H))for(let{match:c}of i.get(a))try{return await c(u,{mustExist:!1})}catch{return null}return null}async function l(u){for(let H of Jj(u))for(let{paths:a}of i.get(H))if(Object.keys(a).length)return a;return{}}async function s(){let{configs:u,errors:H}=await ibe(e);if(i=await sbe(u),H.length)throw new AggregateError(H)}return{resolveId:o,substituteId:r,paths:l,refresh:s,errors:n}}async function ibe(e){let t=await Wj(e,{configNames:["tsconfig.json","jsconfig.json"],skip(r){return r==="node_modules"||r===".git"}}),n={root:e,cache:new Vb},i=new Set,o=[];for(let r of t)try{let l=await Xj(r,n);i.add(l)}catch(l){o.push(l)}for(let r of i)if(r.referenced){for(let l of r.referenced)i.add(l);i.delete(r),i.add(r),r.referenced=void 0}for(let r of o)console.error(r);return{configs:i,errors:o}}async function sbe(e){let t=new HD(()=>[]),n=(i,o)=>o(void 0,!0);for(let i of e){let H=function(a,{mustExist:c=!0}={}){u??=abe.createMatchPathAsync(s,r.paths??{},void 0,l!==void 0);let p=c===!1?a.endsWith("/"):!1;return p&&(a+="__placeholder__"),new Promise((d,h)=>{u(a,void 0,c===!1?n:void 0,void 0,(m,g)=>m?h(m):(p&&(g=g.replace(/__placeholder__$/,"")),d(g)))})},o=ss(Ss(wh.dirname(i.tsconfigFile))),r=i.tsconfig.compilerOptions??{},l=i1t(i),s=wh.resolve(o,l||""),u;t.get(o).push({match:H,paths:r.paths??{}})}return t}function*Jj(e){let t=ss(Ss(e)),n;for(;t!==n;)yield t,n=t,t=wh.dirname(t);return null}function i1t(e){let t=e.tsconfig.compilerOptions?.baseUrl;if(t)return t;for(let n of e.extended??[])if((n.tsconfig.compilerOptions??{})?.paths)return wh.dirname(n.tsconfigFile);return wh.dirname(e.tsconfigFile)}async function Qj(e){let t=null;typeof e.pnp=="object"?t=e.pnp:e.pnp&&(t=await age(e.root));let n=e.fileSystem?e.fileSystem:new RE.CachedInputFileSystem(s1t,4e3),i=null;if(typeof e.tsconfig=="object")i=e.tsconfig;else if(e.tsconfig)try{i=await obe(e.root)}catch(m){console.error("Failed to load tsconfig",m)}let o=RE.ResolverFactory.createResolver({fileSystem:n,extensions:[".mjs",".js",".node",".mts",".ts"],mainFields:["module"],conditionNames:["node","import"],pnpApi:t}),r=RE.ResolverFactory.createResolver({fileSystem:n,extensions:[".cjs",".js",".json",".node",".cts",".ts"],mainFields:["main"],conditionNames:["node","require"],pnpApi:t}),l=RE.ResolverFactory.createResolver({fileSystem:n,extensions:[".css"],mainFields:["style"],conditionNames:["style"],pnpApi:t,preferRelative:!0});async function s(m,g,y){if(lbe.sep==="\\"){if(g.startsWith("\\\\")||g.startsWith("//"))return g;y.startsWith("//")&&(y=`\\\\${y.slice(2)}`)}if(i){let E=await i.resolveId(g,y);E&&(g=E)}g=wk(g),y=wk(y);let _=await new Promise((E,A)=>{m.resolve({},y,g,{},(S,T)=>{S?A(S):E(T)})});return _?(_=_.replace(/\0(.)/g,"$1"),_):!1}async function u(m,g){try{return await s(o,m,g)||m}catch{return await s(r,m,g)||m}}async function H(m,g){return await s(r,m,g)||m}async function a(m,g){return await s(l,m,g)||m}async function c(m,g){return await i?.substituteId(m,g)??m}async function p(m){return i?await i.paths(m):{}}async function d(){await i?.refresh()}async function h(){return!!t}return{resolveJsId:u,resolveCjsId:H,resolveCssId:a,substituteId:c,refresh:d,hasPnP:h,aliases:p,child(m){return Qj({...e,...m,pnp:m.pnp??t,tsconfig:m.tsconfig??i,fileSystem:m.fileSystem??n})}}}var iAe=['"',"'","`"," ",".","(","[","]","!","/","-"];async function sAe(e){let t=await Td(e);if(!t)return null;let n=t.match(/@config\s*(?<config>'[^']+'|"[^"]+")/);return n?ss((0,OE.default)(Vc.resolve(Vc.dirname(e),n.groups.config.slice(1,-1)))):null}var LD=class{constructor(t){this.connection=t;this.lspHandlersAdded=!1;this.disposables=[];this.watchPatterns=()=>{};this.watched=[];this.documentService=new AI(this.connection),this.projects=new Map,this.projectCounter=0,this.settingsCache=ige(t)}async init(){this.initPromise||(this.initPromise=this._init()),await this.initPromise}getWorkspaceFolders(){return this.initializeParams.workspaceFolders?.length?this.initializeParams.workspaceFolders.map(t=>({uri:Cp.URI.parse(t.uri).fsPath,name:t.name})):this.initializeParams.rootUri?[{uri:Cp.URI.parse(this.initializeParams.rootUri).fsPath,name:"Root"}]:this.initializeParams.rootPath?[{uri:Cp.URI.file(this.initializeParams.rootPath).fsPath,name:"Root"}]:[]}async _init(){Ry();let t=this.getWorkspaceFolders().map(i=>(0,OE.default)(i.uri));if(t.length===0){console.error("No workspace folders found, not initializing.");return}let n=await Promise.allSettled(t.map(i=>this._initFolder(Cp.URI.file(i))));for(let[i,o]of n.entries())o.status==="rejected"&&console.error("Failed to initialize workspace folder",t[i],o.reason);await this.listenForEvents()}async _initFolder(t){let n=t.fsPath;try{await aAe.access(n,PU.constants.F_OK|PU.constants.R_OK)}catch(S){console.error(`Unable to access the workspace folder [${n}]. This may happen if the directory does not exist or the current user does not have the necessary permissions to access it.`),console.error(S);return}let i=this.initializeParams.initializationOptions?.userLanguages??{};Object.keys(i).length>0&&console.warn("Language mappings are currently set via initialization options (`userLanguages`). This is deprecated and will be removed in a future release. Please use the `tailwindCSS.includeLanguages` setting instead.");let o=[],r=await this.settingsCache.get(),l=r.tailwindCSS.files.exclude,s=await this.settingsCache.get(t.toString()),u={...i,...s.tailwindCSS.includeLanguages??{}},H=new Map,a=new Map,c=this.initializeParams.initializationOptions?.workspaceFile?Vc.dirname(this.initializeParams.initializationOptions.workspaceFile):n;function p(S){function T(x){return ss((0,OE.default)(Vc.resolve(c,x)))}let I=S.experimental.configFile,L={};if(typeof I=="string"){let x=T(I),C=[T(Vc.resolve(n,"**"))];L[x]=C}else if(Uu(I))for(let[x,C]of Object.entries(I)){if(typeof x!="string")return null;x=T(x);let D;if(typeof C=="string")D=[T(C)];else if(Array.isArray(C))D=C.map(T);else return null;L[x]=D}else if(I)return null;return Object.entries(L)}let d=p(r.tailwindCSS);if(d===null){console.error("Invalid `experimental.configFile` configuration, not initializing.");return}let h=await Qj({root:n,pnp:!0,tsconfig:!0}),m=new Vx(n,r,h);d.length>0?(console.log("Loading Tailwind CSS projects from the workspace settings."),o=await m.loadAllFromWorkspace(d)):(console.log("Searching for Tailwind CSS projects in the workspace's folders."),o=await m.search());for(let S of o)if(a.set(S.config.path,S.tailwind.version),S.config.source==="css")for(let T of S.config.entries)T.type==="css"&&H.set(T.path,S.config.path);let g=o.map(S=>({folder:S.folder,config:S.config.path,selectors:S.documentSelector,user:S.isUserConfigured,tailwind:S.tailwind}));console.log(`[Global] Creating projects: ${JSON.stringify(g)}`);let y=async S=>{let T=!1,I=!1,L=(0,SH.default)(`**/${m_}`,{dot:!0}),x=(0,SH.default)(`**/${Wp}`,{dot:!0}),C=(0,SH.default)(`**/${__}`,{dot:!0}),D=(0,SH.default)(`**/${mI}`,{dot:!0});e:for(let O of S){let j=(0,OE.default)(O.file);j=ss(j);for(let P of l)if((0,SH.default)(P,{dot:!0})(j))continue e;if(L(j))for(let[,P]of this.projects){let W=ag().version;try{let Z=require(await h.resolveCjsId("tailwindcss/package.json",Vc.dirname(P.projectConfig.configPath))).version;typeof Z=="string"&&(W=Z)}catch{}if(a.get(P.projectConfig.configPath)!==W){T=!0;break e}}if(D(j)){T=!0;break e}for(let[,P]of this.projects)if(P.state.v4&&!(O.type===Gi.FileChangeType.Deleted&&Sf(j,[P.projectConfig.configPath]))&&Sf(j,P.dependencies())){I=!0;break e}if(x(`**/${Wp}`)&&O.type!==Gi.FileChangeType.Deleted){let P=await sAe(j)||await sAe(O.file);if(H.has(j)&&H.get(j)!==P){T=!0;break}else if(!H.has(j)&&P){T=!0;break}else{if(this.projects.size>0)continue;let W=await Td(O.file);if(!W)continue;let Z=ZT(W);if(!Z.root||!Z.versions.includes("4"))continue;T=!0;break}}if(C(j)&&O.type===Gi.FileChangeType.Created){T=!0;break}for(let[,P]of this.projects)if(O.type===Gi.FileChangeType.Deleted&&Sf(j,[P.projectConfig.configPath])){T=!0;break e}}if(T){this.restart();return}if(I){try{await this.softRestart()}catch{this.restart()}return}for(let[,O]of this.projects)O.onFileEvents(S)};if(this.initializeParams.capabilities.workspace?.didChangeWatchedFiles?.dynamicRegistration){this.disposables.push(this.connection.onDidChangeWatchedFiles(async({changes:T})=>{let I=T.map(({uri:L,type:x})=>({file:Cp.URI.parse(L).fsPath,type:x})).filter((L,x,C)=>C.findIndex(D=>D.file===L.file&&D.type===L.type)===x);await y(I)}));let S=await this.connection.client.register(Gi.DidChangeWatchedFilesNotification.type,{watchers:[{globPattern:`**/${__}`},{globPattern:`**/${m_}`},{globPattern:`**/${Wp}`},{globPattern:`**/${mI}`}]});this.disposables.push(S),this.watchPatterns=T=>{let I=this.filterNewWatchPatterns(T);I.length&&(console.log(`[Global] Adding watch patterns: ${I.join(", ")}`),this.connection.client.register(Gi.DidChangeWatchedFilesNotification.type,{watchers:I.map(L=>({globPattern:L}))}).then(L=>{this.disposables.push(L)}))}}else if(TD.getBinding()){console.log("[Global] Your LSP client does not support watching files on behalf of the server"),console.log("[Global] Using bundled file watcher: @parcel/watcher");let S={create:Gi.FileChangeType.Created,update:Gi.FileChangeType.Changed,delete:Gi.FileChangeType.Deleted},T=await TD.subscribe(n,(I,L)=>{y(L.map(x=>({file:x.path,type:S[x.type]})))},{ignore:l.map(I=>Vc.resolve(n,I.replace(/^[*/]+/,"").replace(/[*/]+$/,"")))});this.disposables.push({dispose(){T.unsubscribe()}})}else{console.log("[Global] Your LSP client does not support watching files on behalf of the server"),console.log("[Global] Using bundled file watcher: chokidar");let S=nAe().watch,T=S([`**/${__}`,`**/${m_}`,`**/${Wp}`,`**/${mI}`],{cwd:n,ignorePermissionErrors:!0,ignoreInitial:!0,ignored:l,awaitWriteFinish:{stabilityThreshold:100,pollInterval:20}});await new Promise(I=>{T.on("ready",()=>I())}),T.on("add",I=>y([{file:Vc.resolve(n,I),type:Gi.FileChangeType.Created}])).on("change",I=>y([{file:Vc.resolve(n,I),type:Gi.FileChangeType.Changed}])).on("unlink",I=>y([{file:Vc.resolve(n,I),type:Gi.FileChangeType.Deleted}])),this.disposables.push({dispose(){T.close()}}),this.watchPatterns=I=>{let L=this.filterNewWatchPatterns(I);L.length&&(console.log(`[Global] Adding watch patterns: ${L.join(", ")}`),T.add(L))}}console.log("[Global] Preparing projects..."),await Promise.all(o.map(S=>this.addProject(S,this.initializeParams,this.watchPatterns,a.get(S.configPath),u,h,t))),console.log("[Global] Initializing projects..."),await this.updateCommonCapabilities();let _=[],E=0;for(let S of this.documentService.getAllDocuments()){let T=this.getProject(S);T&&!T.enabled()&&(T.enable(),await T.tryInit(),E++),_.push(S.uri)}console.log(`[Global] Initialized ${E} projects`),this.disposables.push(this.connection.onDidChangeConfiguration(async({settings:S})=>{let T=r.tailwindCSS.files.exclude;if(this.settingsCache.clear(),r=await this.settingsCache.get(),!Bl(T,r.tailwindCSS.files.exclude)){this.restart();return}for(let[,I]of this.projects)I.onUpdateSettings(S)})),(this.initializeParams.initializationOptions?.testMode??!1)&&(console.log("[Global][Test] Sending document notifications..."),await Promise.all(_.map(S=>this.connection.sendNotification("@/tailwindCSS/documentReady",{uri:S}))))}async listenForEvents(){let t=this.initializeParams.initializationOptions?.testMode??!1;this.disposables.push(this.connection.onShutdown(()=>{this.dispose()})),this.disposables.push(this.documentService.onDidChangeContent(n=>{this.getProject(n.document)?.provideDiagnostics(n.document)})),this.disposables.push(this.documentService.onDidOpen(async n=>{let i=this.getProject(n.document);i&&(i.enabled()||(i.enable(),await i.tryInit()),t&&await this.connection.sendNotification("@/tailwindCSS/documentReady",{uri:n.document.uri}))})),this.initializeParams.capabilities.workspace.workspaceFolders&&this.disposables.push(this.connection.workspace.onDidChangeWorkspaceFolders(async n=>{let i=n.added.map(o=>({uri:Cp.URI.parse(o.uri).fsPath,name:o.name})).map(o=>(0,OE.default)(o.uri));await Promise.allSettled(i.map(o=>this._initFolder(Cp.URI.file(o))))})),t&&await this.connection.sendNotification("@/tailwindCSS/serverReady")}filterNewWatchPatterns(t){return t=Array.from(new Set(t)),t=t.filter(n=>!this.watched.includes(n)),this.watched.push(...t),t}async addProject(t,n,i,o,r,l,s){let u=String(this.projectCounter++),H=await J0e(u,t,this.connection,n,this.documentService,()=>this.updateProjectCapabilities(),()=>{for(let a of this.documentService.getAllDocuments()){let c=this.getProject(a);if(c&&!c.enabled()){c.enable(),c.tryInit();break}}},()=>this.refreshDiagnostics(),a=>i(a),o,this.settingsCache.get,r,l);this.projects.set(u,H),this.supportsTailwindProjectDetails&&this.connection.sendNotification("@/tailwindCSS/projectDetails",{uri:s.toString(),config:t.configPath,tailwind:t.tailwind})}get supportsTailwindProjectDetails(){return this.initializeParams.capabilities.experimental?.tailwind?.projectDetails??!1}refreshDiagnostics(){for(let t of this.documentService.getAllDocuments()){let n=this.getProject(t);n?n.provideDiagnosticsForce(t):this.connection.sendDiagnostics({uri:t.uri,diagnostics:[]})}}setupLSPHandlers(){this.lspHandlersAdded||(this.lspHandlersAdded=!0,this.connection.onHover(this.onHover.bind(this)),this.connection.onCompletion(this.onCompletion.bind(this)),this.connection.onCompletionResolve(this.onCompletionResolve.bind(this)),this.connection.onDocumentColor(this.onDocumentColor.bind(this)),this.connection.onColorPresentation(this.onColorPresentation.bind(this)),this.connection.onCodeAction(this.onCodeAction.bind(this)),this.connection.onCodeLens(this.onCodeLens.bind(this)),this.connection.onDocumentLinks(this.onDocumentLinks.bind(this)),this.connection.onRequest(this.onRequest.bind(this)))}onRequest(t,n){if(t==="@/tailwindCSS/sortSelection"){let i=this.getProject({uri:n.uri});if(!i)return{error:"no-project"};try{return{classLists:i.sortClassLists(n.classLists)}}catch{return{error:"unknown"}}}if(t==="@/tailwindCSS/getProject"){let i=this.getProject({uri:n.uri});return!i||!i.enabled()||!i.state?.enabled?null:{version:i.state.version}}}async updateCommonCapabilities(){let t=Gi.BulkRegistration.create(),n=this.initializeParams.capabilities;n.textDocument?.hover?.dynamicRegistration&&t.add(Gi.HoverRequest.type,{documentSelector:null}),n.textDocument?.colorProvider?.dynamicRegistration&&t.add(Gi.DocumentColorRequest.type,{documentSelector:null}),n.textDocument?.codeAction?.dynamicRegistration&&t.add(Gi.CodeActionRequest.type,{documentSelector:null}),n.textDocument?.codeLens?.dynamicRegistration&&t.add(Gi.CodeLensRequest.type,{documentSelector:null}),n.textDocument?.documentLink?.dynamicRegistration&&t.add(Gi.DocumentLinkRequest.type,{documentSelector:null}),n.workspace?.didChangeConfiguration?.dynamicRegistration&&t.add(Gi.DidChangeConfigurationNotification.type,void 0),this.commonRegistrations=await this.connection.client.register(t)}updateProjectCapabilities(){this.updateTriggerCharacters()}async updateTriggerCharacters(){if(!this.initializeParams.capabilities.textDocument?.completion?.dynamicRegistration)return;let n=new Set(iAe);for(let i of this.projects.values()){let o=i.state.separator;typeof o=="string"&&(o=o.slice(-1),o&&n.add(o))}Bl(Array.from(n),Array.from(this.lastTriggerCharacters??[]))||(this.lastTriggerCharacters=n,this.completionRegistration?.dispose(),this.completionRegistration=await this.connection.client.register(Gi.CompletionRequest.type,{documentSelector:null,resolveProvider:!0,triggerCharacters:Array.from(n)}))}getProject(t){let n,i,o=1/0,r=Cp.URI.parse(t.uri),l=r.fsPath,s=r.path;l=ss(l);for(let H of this.projects.values()){if(!H.projectConfig.configPath){n=n??H;continue}let a=H.documentSelector().concat().sort((c,p)=>c.pattern.startsWith("!")&&!p.pattern.startsWith("!")?-1:!c.pattern.startsWith("!")&&p.pattern.startsWith("!")?1:0);for(let c of a){let p=c.pattern.replace(/[\[\]{}()]/g,d=>`\\${d}`);if(p.startsWith("!")&&((0,SH.default)(p.slice(1),{dot:!0})(l)||(0,SH.default)(p.slice(1),{dot:!0})(s)))break;if((0,SH.default)(p,{dot:!0})(l)&&c.priority<o){i=H,o=c.priority;continue}if((0,SH.default)(p,{dot:!0})(s)&&c.priority<o){i=H,o=c.priority;continue}}}let u=i??n;return u||console.debug("[GLOBAL] No matching project for document",{fsPath:l,normalPath:s}),u}async onDocumentColor(t){return await this.init(),this.getProject(t.textDocument)?.onDocumentColor(t)??[]}async onColorPresentation(t){return await this.init(),this.getProject(t.textDocument)?.onColorPresentation(t)??[]}async onHover(t){return await this.init(),this.getProject(t.textDocument)?.onHover(t)??null}async onCompletion(t){return await this.init(),this.getProject(t.textDocument)?.onCompletion(t)??null}async onCompletionResolve(t){return await this.init(),this.projects.get(t.data?._projectKey)?.onCompletionResolve(t)??null}async onCodeAction(t){return await this.init(),this.getProject(t.textDocument)?.onCodeAction(t)??null}async onCodeLens(t){return await this.init(),this.getProject(t.textDocument)?.onCodeLens(t)??null}async onDocumentLinks(t){return await this.init(),this.getProject(t.textDocument)?.onDocumentLinks(t)??null}setup(){this.connection.onInitialize(async t=>(this.initializeParams=t,this.setupLSPHandlers(),{capabilities:this.computeServerCapabilities(t.capabilities)})),this.connection.onInitialized(()=>this.init())}computeServerCapabilities(t){let n={textDocumentSync:Gi.TextDocumentSyncKind.Full,workspace:{workspaceFolders:{changeNotifications:!0}}};return t.textDocument?.hover?.dynamicRegistration||(n.hoverProvider=!0),t.textDocument?.colorProvider?.dynamicRegistration||(n.colorProvider=!0),t.textDocument?.codeAction?.dynamicRegistration||(n.codeActionProvider=!0),t.textDocument?.codeLens?.dynamicRegistration||(n.codeLensProvider={resolveProvider:!1}),t.textDocument?.completion?.dynamicRegistration||(n.completionProvider={resolveProvider:!0,triggerCharacters:[...iAe,":"]}),t.textDocument?.documentLink?.dynamicRegistration||(n.documentLinkProvider={}),n}listen(){this.connection.listen()}dispose(){this.connection.sendNotification("@/tailwindCSS/projectsDestroyed");for(let[,t]of this.projects)t.dispose();this.projects=new Map,this.refreshDiagnostics(),this.commonRegistrations?.dispose(),this.commonRegistrations=void 0,this.completionRegistration?.dispose(),this.completionRegistration=void 0,this.disposables.forEach(t=>t.dispose()),this.disposables.length=0,this.watched.length=0}async restart(){let t=this.initializeParams.initializationOptions?.testMode??!1;console.log(`----------
|
3583
|
+
`?(n=!1,o+=uD(e,i,r),i=r):!n&&l+s==="/*"?(o+=e.slice(i,r),i=r,n=zge,r++):n===zge&&l+s==="*/"&&(r++,n=!1,o+=uD(e,i,r+1),i=r+1))}return o+(n?uD(e.slice(i)):e.slice(i))}function Kyt(e){return e.charCodeAt(0)===65279?e.slice(1):e}var Wc=Er(require("node:path"),1),tbe=require("node:fs"),rbe=require("module");var Gyt={tsconfigFile:null,tsconfig:{}};async function Xj(e,t){let n=t?.cache;if(n?.hasParseResult(e))return Qge(e,n,t);let{resolve:i,reject:o,promise:r}=Wb();n?.setParseResult(e,r,!0);try{let l=await Mj(e,n)||await Uj(e,t);if(!l)return i(Gyt),r;let s;e!==l&&n?.hasParseResult(l)?s=await Qge(l,n,t):(s=await Zj(l,n,e===l),await Promise.all([zj(s,n),nbe(s,t)])),s.tsconfig=jj(s.tsconfig,Wc.default.dirname(l)),i(Fj(e,s))}catch(l){o(l)}return r}async function Qge(e,t,n){let i=await t.getParseResult(e);if(i.tsconfig.extends&&!i.extended||i.tsconfig.references&&!i.referenced){let o=Promise.all([zj(i,t),nbe(i,n)]).then(()=>i);return t.setParseResult(e,o,!0),o}return i}async function Zj(e,t,n){if(!n&&t?.hasParseResult(e)&&!t.getParseResult(e)._isRootFile_)return t.getParseResult(e);let i=tbe.promises.readFile(e,"utf-8").then(Kj).then(o=>{let r=JSON.parse(o);return Qyt(r,e),{tsconfigFile:e,tsconfig:Xyt(r,Wc.default.dirname(e))}}).catch(o=>{throw new NE(`parsing ${e} failed: ${o}`,"PARSE_FILE",e,o)});return!n&&(!t?.hasParseResult(e)||!t.getParseResult(e)._isRootFile_)&&t?.setParseResult(e,i),i}function Xyt(e,t){let n=e.compilerOptions?.baseUrl;return n&&!n.startsWith("${")&&!Wc.default.isAbsolute(n)&&(e.compilerOptions.baseUrl=kE(t,n)),e}async function nbe(e,t){if(!e.tsconfig.references)return;let n=Oj(e,t),i=await Promise.all(n.map(o=>Zj(o,t?.cache)));await Promise.all(i.map(o=>zj(o,t?.cache))),i.forEach(o=>{o.solution=e}),e.referenced=i}async function zj(e,t){if(!e.tsconfig.extends)return;let n=[{tsconfigFile:e.tsconfigFile,tsconfig:JSON.parse(JSON.stringify(e.tsconfig))}],i=0,o=[],r=0;for(;i<n.length;){let l=n[i];if(o.push(l.tsconfigFile),l.tsconfig.extends){r+=1;let s;Array.isArray(l.tsconfig.extends)?s=l.tsconfig.extends.reverse().map(H=>Yge(H,l.tsconfigFile)):s=[Yge(l.tsconfig.extends,l.tsconfigFile)];let u=s.find(H=>o.includes(H));if(u){let H=o.concat([u]).join(" -> ");throw new NE(`Circular dependency in "extends": ${H}`,"EXTENDS_CIRCULAR",e.tsconfigFile)}n.splice(i+1,0,...await Promise.all(s.map(H=>Zj(H,t))))}else o.splice(-r),r=0;i=i+1}e.extended=n;for(let l of e.extended.slice(1))zyt(e,l)}function Yge(e,t){e===".."&&(e="../tsconfig.json");let n=(0,rbe.createRequire)(t),i;try{return n.resolve(e)}catch(o){i=o}if(e[0]!=="."&&!Wc.default.isAbsolute(e))try{return n.resolve(`${e}/tsconfig.json`)}catch(o){i=o}throw new NE(`failed to resolve "extends":"${e}" in ${t}`,"EXTENDS_RESOLVE",t,i)}var Zyt=["compilerOptions","files","include","exclude","watchOptions","compileOnSave","typeAcquisition","buildOptions"];function zyt(e,t){let n=e.tsconfig,i=t.tsconfig,o=Dh(Wc.default.relative(Wc.default.dirname(e.tsconfigFile),Wc.default.dirname(t.tsconfigFile)));for(let r of Object.keys(i).filter(l=>Zyt.includes(l)))if(r==="compilerOptions"){n.compilerOptions||(n.compilerOptions={});for(let l of Object.keys(i.compilerOptions))Object.prototype.hasOwnProperty.call(n.compilerOptions,l)||(n.compilerOptions[l]=Gj(l,i.compilerOptions[l],o))}else if(n[r]===void 0)if(r==="watchOptions"){n.watchOptions={};for(let l of Object.keys(i.watchOptions))n.watchOptions[l]=Gj(l,i.watchOptions[l],o)}else n[r]=Gj(r,i[r],o)}var Jyt=["files","include","exclude","baseUrl","rootDir","rootDirs","typeRoots","outDir","outFile","declarationDir","excludeDirectories","excludeFiles"];function Gj(e,t,n){return Jyt.includes(e)?Array.isArray(t)?t.map(i=>ebe(i,n)):ebe(t,n):t}function ebe(e,t){return Wc.default.isAbsolute(e)||e.startsWith("${configDir}")?e:Wc.default.posix.normalize(Wc.default.posix.join(t,e))}var NE=class e extends Error{code;cause;tsconfigFile;constructor(t,n,i,o){super(t),Object.setPrototypeOf(this,e.prototype),this.name=e.name,this.code=n,this.cause=o,this.tsconfigFile=i}};function Qyt(e,t){e1t(t)&&(e.compilerOptions={...Yyt,...e.compilerOptions})}var Yyt={allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0};function e1t(e){return Wc.default.basename(e)==="jsconfig.json"}var Vb=class{clear(){this.#t.clear(),this.#e.clear()}hasConfigPath(t,n="tsconfig.json"){return this.#t.has(`${t}/${n}`)}getConfigPath(t,n="tsconfig.json"){let i=`${t}/${n}`,o=this.#t.get(i);if(o==null||o.length||o.then)return o;throw o}hasParseResult(t){return this.#e.has(t)}getParseResult(t){let n=this.#e.get(t);if(n.then||n.tsconfig)return n;throw n}setParseResult(t,n,i=!1){Object.defineProperty(n,"_isRootFile_",{value:i,writable:!1,enumerable:!1,configurable:!1}),this.#e.set(t,n),n.then(o=>{this.#e.get(t)===n&&this.#e.set(t,o)}).catch(o=>{this.#e.get(t)===n&&this.#e.set(t,o)})}setConfigPath(t,n,i="tsconfig.json"){let o=`${t}/${i}`;this.#t.set(o,n),n.then(r=>{this.#t.get(o)===n&&this.#t.set(o,r)}).catch(r=>{this.#t.get(o)===n&&this.#t.set(o,r)})}#t=new Map;#e=new Map};var HD=class extends Map{constructor(n){super();this.factory=n}get(n){let i=super.get(n);return i===void 0&&(i=this.factory(n,this),this.set(n,i)),i}};async function obe(e){let{configs:t,errors:n}=await ibe(e),i=await sbe(t);async function o(u,H){for(let a of Jj(H))for(let{match:c}of i.get(a))try{return await c(u)}catch{return null}return null}async function r(u,H){for(let a of Jj(H))for(let{match:c}of i.get(a))try{return await c(u,{mustExist:!1})}catch{return null}return null}async function l(u){for(let H of Jj(u))for(let{paths:a}of i.get(H))if(Object.keys(a).length)return a;return{}}async function s(){let{configs:u,errors:H}=await ibe(e);if(i=await sbe(u),H.length)throw new AggregateError(H)}return{resolveId:o,substituteId:r,paths:l,refresh:s,errors:n}}async function ibe(e){let t=await Wj(e,{configNames:["tsconfig.json","jsconfig.json"],skip(r){return r==="node_modules"||r===".git"}}),n={root:e,cache:new Vb},i=new Set,o=[];for(let r of t)try{let l=await Xj(r,n);i.add(l)}catch(l){o.push(l)}for(let r of i)if(r.referenced){for(let l of r.referenced)i.add(l);i.delete(r),i.add(r),r.referenced=void 0}for(let r of o)console.error(r);return{configs:i,errors:o}}async function sbe(e){let t=new HD(()=>[]),n=(i,o)=>o(void 0,!0);for(let i of e){let H=function(a,{mustExist:c=!0}={}){u??=abe.createMatchPathAsync(s,r.paths??{},void 0,l!==void 0);let p=c===!1?a.endsWith("/"):!1;return p&&(a+="__placeholder__"),new Promise((d,h)=>{u(a,void 0,c===!1?n:void 0,void 0,(m,g)=>m?h(m):(p&&(g=g.replace(/__placeholder__$/,"")),d(g)))})},o=ss(Ss(wh.dirname(i.tsconfigFile))),r=i.tsconfig.compilerOptions??{},l=i1t(i),s=wh.resolve(o,l||""),u;t.get(o).push({match:H,paths:r.paths??{}})}return t}function*Jj(e){let t=ss(Ss(e)),n;for(;t!==n;)yield t,n=t,t=wh.dirname(t);return null}function i1t(e){let t=e.tsconfig.compilerOptions?.baseUrl;if(t)return t;for(let n of e.extended??[])if((n.tsconfig.compilerOptions??{})?.paths)return wh.dirname(n.tsconfigFile);return wh.dirname(e.tsconfigFile)}async function Qj(e){let t=null;typeof e.pnp=="object"?t=e.pnp:e.pnp&&(t=await age(e.root));let n=e.fileSystem?e.fileSystem:new RE.CachedInputFileSystem(s1t,4e3),i=null;if(typeof e.tsconfig=="object")i=e.tsconfig;else if(e.tsconfig)try{i=await obe(e.root)}catch(m){console.error("Failed to load tsconfig",m)}let o=RE.ResolverFactory.createResolver({fileSystem:n,extensions:[".mjs",".js",".node",".mts",".ts"],mainFields:["module"],conditionNames:["node","import"],pnpApi:t}),r=RE.ResolverFactory.createResolver({fileSystem:n,extensions:[".cjs",".js",".json",".node",".cts",".ts"],mainFields:["main"],conditionNames:["node","require"],pnpApi:t}),l=RE.ResolverFactory.createResolver({fileSystem:n,extensions:[".css"],mainFields:["style"],conditionNames:["style"],pnpApi:t,preferRelative:!0});async function s(m,g,y){if(lbe.sep==="\\"){if(g.startsWith("\\\\")||g.startsWith("//"))return g;y.startsWith("//")&&(y=`\\\\${y.slice(2)}`)}if(i){let E=await i.resolveId(g,y);E&&(g=E)}g=wk(g),y=wk(y);let _=await new Promise((E,A)=>{m.resolve({},y,g,{},(S,T)=>{S?A(S):E(T)})});return _?(_=_.replace(/\0(.)/g,"$1"),_):!1}async function u(m,g){try{return await s(o,m,g)||m}catch{return await s(r,m,g)||m}}async function H(m,g){return await s(r,m,g)||m}async function a(m,g){return await s(l,m,g)||m}async function c(m,g){return await i?.substituteId(m,g)??m}async function p(m){return i?await i.paths(m):{}}async function d(){await i?.refresh()}async function h(){return!!t}return{resolveJsId:u,resolveCjsId:H,resolveCssId:a,substituteId:c,refresh:d,hasPnP:h,aliases:p,child(m){return Qj({...e,...m,pnp:m.pnp??t,tsconfig:m.tsconfig??i,fileSystem:m.fileSystem??n})}}}var iAe=['"',"'","`"," ",".","(","[","]","!","/","-"];async function sAe(e){let t=await Td(e);if(!t)return null;let n=t.match(/@config\s*(?<config>'[^']+'|"[^"]+")/);return n?ss((0,OE.default)(Vc.resolve(Vc.dirname(e),n.groups.config.slice(1,-1)))):null}var LD=class{constructor(t){this.connection=t;this.lspHandlersAdded=!1;this.disposables=[];this.watchPatterns=()=>{};this.watched=[];this.documentService=new AI(this.connection),this.projects=new Map,this.projectCounter=0,this.settingsCache=ige(t)}async init(){this.initPromise||(this.initPromise=this._init()),await this.initPromise}getWorkspaceFolders(){return this.initializeParams.workspaceFolders?.length?this.initializeParams.workspaceFolders.map(t=>({uri:Cp.URI.parse(t.uri).fsPath,name:t.name})):this.initializeParams.rootUri?[{uri:Cp.URI.parse(this.initializeParams.rootUri).fsPath,name:"Root"}]:this.initializeParams.rootPath?[{uri:Cp.URI.file(this.initializeParams.rootPath).fsPath,name:"Root"}]:[]}async _init(){Ry();let t=this.getWorkspaceFolders().map(i=>(0,OE.default)(i.uri));if(t.length===0){console.error("No workspace folders found, not initializing.");return}let n=await Promise.allSettled(t.map(i=>this._initFolder(Cp.URI.file(i))));for(let[i,o]of n.entries())o.status==="rejected"&&console.error("Failed to initialize workspace folder",t[i],o.reason);n.some(i=>i.status==="fulfilled")&&await this.updateCommonCapabilities(),await this.listenForEvents()}async _initFolder(t){let n=t.fsPath;try{await aAe.access(n,PU.constants.F_OK|PU.constants.R_OK)}catch(S){console.error(`Unable to access the workspace folder [${n}]. This may happen if the directory does not exist or the current user does not have the necessary permissions to access it.`),console.error(S);return}let i=this.initializeParams.initializationOptions?.userLanguages??{};Object.keys(i).length>0&&console.warn("Language mappings are currently set via initialization options (`userLanguages`). This is deprecated and will be removed in a future release. Please use the `tailwindCSS.includeLanguages` setting instead.");let o=[],r=await this.settingsCache.get(),l=r.tailwindCSS.files.exclude,s=await this.settingsCache.get(t.toString()),u={...i,...s.tailwindCSS.includeLanguages??{}},H=new Map,a=new Map,c=this.initializeParams.initializationOptions?.workspaceFile?Vc.dirname(this.initializeParams.initializationOptions.workspaceFile):n;function p(S){function T(x){return ss((0,OE.default)(Vc.resolve(c,x)))}let I=S.experimental.configFile,L={};if(typeof I=="string"){let x=T(I),C=[T(Vc.resolve(n,"**"))];L[x]=C}else if(Uu(I))for(let[x,C]of Object.entries(I)){if(typeof x!="string")return null;x=T(x);let D;if(typeof C=="string")D=[T(C)];else if(Array.isArray(C))D=C.map(T);else return null;L[x]=D}else if(I)return null;return Object.entries(L)}let d=p(r.tailwindCSS);if(d===null){console.error("Invalid `experimental.configFile` configuration, not initializing.");return}let h=await Qj({root:n,pnp:!0,tsconfig:!0}),m=new Vx(n,r,h);d.length>0?(console.log("Loading Tailwind CSS projects from the workspace settings."),o=await m.loadAllFromWorkspace(d)):(console.log("Searching for Tailwind CSS projects in the workspace's folders."),o=await m.search());for(let S of o)if(a.set(S.config.path,S.tailwind.version),S.config.source==="css")for(let T of S.config.entries)T.type==="css"&&H.set(T.path,S.config.path);let g=o.map(S=>({folder:S.folder,config:S.config.path,selectors:S.documentSelector,user:S.isUserConfigured,tailwind:S.tailwind}));console.log(`[Global] Creating projects: ${JSON.stringify(g)}`);let y=async S=>{let T=!1,I=!1,L=(0,SH.default)(`**/${m_}`,{dot:!0}),x=(0,SH.default)(`**/${Wp}`,{dot:!0}),C=(0,SH.default)(`**/${__}`,{dot:!0}),D=(0,SH.default)(`**/${mI}`,{dot:!0});e:for(let O of S){let j=(0,OE.default)(O.file);j=ss(j);for(let P of l)if((0,SH.default)(P,{dot:!0})(j))continue e;if(L(j))for(let[,P]of this.projects){let W=ag().version;try{let Z=require(await h.resolveCjsId("tailwindcss/package.json",Vc.dirname(P.projectConfig.configPath))).version;typeof Z=="string"&&(W=Z)}catch{}if(a.get(P.projectConfig.configPath)!==W){T=!0;break e}}if(D(j)){T=!0;break e}for(let[,P]of this.projects)if(P.state.v4&&!(O.type===Gi.FileChangeType.Deleted&&Sf(j,[P.projectConfig.configPath]))&&Sf(j,P.dependencies())){I=!0;break e}if(x(`**/${Wp}`)&&O.type!==Gi.FileChangeType.Deleted){let P=await sAe(j)||await sAe(O.file);if(H.has(j)&&H.get(j)!==P){T=!0;break}else if(!H.has(j)&&P){T=!0;break}else{if(this.projects.size>0)continue;let W=await Td(O.file);if(!W)continue;let Z=ZT(W);if(!Z.root||!Z.versions.includes("4"))continue;T=!0;break}}if(C(j)&&O.type===Gi.FileChangeType.Created){T=!0;break}for(let[,P]of this.projects)if(O.type===Gi.FileChangeType.Deleted&&Sf(j,[P.projectConfig.configPath])){T=!0;break e}}if(T){this.restart();return}if(I){try{await this.softRestart()}catch{this.restart()}return}for(let[,O]of this.projects)O.onFileEvents(S)};if(this.initializeParams.capabilities.workspace?.didChangeWatchedFiles?.dynamicRegistration){this.disposables.push(this.connection.onDidChangeWatchedFiles(async({changes:T})=>{let I=T.map(({uri:L,type:x})=>({file:Cp.URI.parse(L).fsPath,type:x})).filter((L,x,C)=>C.findIndex(D=>D.file===L.file&&D.type===L.type)===x);await y(I)}));let S=await this.connection.client.register(Gi.DidChangeWatchedFilesNotification.type,{watchers:[{globPattern:`**/${__}`},{globPattern:`**/${m_}`},{globPattern:`**/${Wp}`},{globPattern:`**/${mI}`}]});this.disposables.push(S),this.watchPatterns=T=>{let I=this.filterNewWatchPatterns(T);I.length&&(console.log(`[Global] Adding watch patterns: ${I.join(", ")}`),this.connection.client.register(Gi.DidChangeWatchedFilesNotification.type,{watchers:I.map(L=>({globPattern:L}))}).then(L=>{this.disposables.push(L)}))}}else if(TD.getBinding()){console.log("[Global] Your LSP client does not support watching files on behalf of the server"),console.log("[Global] Using bundled file watcher: @parcel/watcher");let S={create:Gi.FileChangeType.Created,update:Gi.FileChangeType.Changed,delete:Gi.FileChangeType.Deleted},T=await TD.subscribe(n,(I,L)=>{y(L.map(x=>({file:x.path,type:S[x.type]})))},{ignore:l.map(I=>Vc.resolve(n,I.replace(/^[*/]+/,"").replace(/[*/]+$/,"")))});this.disposables.push({dispose(){T.unsubscribe()}})}else{console.log("[Global] Your LSP client does not support watching files on behalf of the server"),console.log("[Global] Using bundled file watcher: chokidar");let S=nAe().watch,T=S([`**/${__}`,`**/${m_}`,`**/${Wp}`,`**/${mI}`],{cwd:n,ignorePermissionErrors:!0,ignoreInitial:!0,ignored:l,awaitWriteFinish:{stabilityThreshold:100,pollInterval:20}});await new Promise(I=>{T.on("ready",()=>I())}),T.on("add",I=>y([{file:Vc.resolve(n,I),type:Gi.FileChangeType.Created}])).on("change",I=>y([{file:Vc.resolve(n,I),type:Gi.FileChangeType.Changed}])).on("unlink",I=>y([{file:Vc.resolve(n,I),type:Gi.FileChangeType.Deleted}])),this.disposables.push({dispose(){T.close()}}),this.watchPatterns=I=>{let L=this.filterNewWatchPatterns(I);L.length&&(console.log(`[Global] Adding watch patterns: ${L.join(", ")}`),T.add(L))}}console.log("[Global] Preparing projects..."),await Promise.all(o.map(S=>this.addProject(S,this.initializeParams,this.watchPatterns,a.get(S.configPath),u,h,t))),console.log("[Global] Initializing projects...");let _=[],E=0;for(let S of this.documentService.getAllDocuments()){let T=this.getProject(S);T&&!T.enabled()&&(T.enable(),await T.tryInit(),E++),_.push(S.uri)}console.log(`[Global] Initialized ${E} projects`),this.disposables.push(this.connection.onDidChangeConfiguration(async({settings:S})=>{let T=r.tailwindCSS.files.exclude;if(this.settingsCache.clear(),r=await this.settingsCache.get(),!Bl(T,r.tailwindCSS.files.exclude)){this.restart();return}for(let[,I]of this.projects)I.onUpdateSettings(S)})),(this.initializeParams.initializationOptions?.testMode??!1)&&(console.log("[Global][Test] Sending document notifications..."),await Promise.all(_.map(S=>this.connection.sendNotification("@/tailwindCSS/documentReady",{uri:S}))))}async listenForEvents(){let t=this.initializeParams.initializationOptions?.testMode??!1;this.disposables.push(this.connection.onShutdown(()=>{this.dispose()})),this.disposables.push(this.documentService.onDidChangeContent(n=>{this.getProject(n.document)?.provideDiagnostics(n.document)})),this.disposables.push(this.documentService.onDidOpen(async n=>{let i=this.getProject(n.document);i&&(i.enabled()||(i.enable(),await i.tryInit()),t&&await this.connection.sendNotification("@/tailwindCSS/documentReady",{uri:n.document.uri}))})),this.initializeParams.capabilities.workspace.workspaceFolders&&this.disposables.push(this.connection.workspace.onDidChangeWorkspaceFolders(async n=>{let i=n.added.map(o=>({uri:Cp.URI.parse(o.uri).fsPath,name:o.name})).map(o=>(0,OE.default)(o.uri));await Promise.allSettled(i.map(o=>this._initFolder(Cp.URI.file(o))))})),t&&await this.connection.sendNotification("@/tailwindCSS/serverReady")}filterNewWatchPatterns(t){return t=Array.from(new Set(t)),t=t.filter(n=>!this.watched.includes(n)),this.watched.push(...t),t}async addProject(t,n,i,o,r,l,s){let u=String(this.projectCounter++),H=await J0e(u,t,this.connection,n,this.documentService,()=>this.updateProjectCapabilities(),()=>{for(let a of this.documentService.getAllDocuments()){let c=this.getProject(a);if(c&&!c.enabled()){c.enable(),c.tryInit();break}}},()=>this.refreshDiagnostics(),a=>i(a),o,this.settingsCache.get,r,l);this.projects.set(u,H),this.supportsTailwindProjectDetails&&this.connection.sendNotification("@/tailwindCSS/projectDetails",{uri:s.toString(),config:t.configPath,tailwind:t.tailwind})}get supportsTailwindProjectDetails(){return this.initializeParams.capabilities.experimental?.tailwind?.projectDetails??!1}refreshDiagnostics(){for(let t of this.documentService.getAllDocuments()){let n=this.getProject(t);n?n.provideDiagnosticsForce(t):this.connection.sendDiagnostics({uri:t.uri,diagnostics:[]})}}setupLSPHandlers(){this.lspHandlersAdded||(this.lspHandlersAdded=!0,this.connection.onHover(this.onHover.bind(this)),this.connection.onCompletion(this.onCompletion.bind(this)),this.connection.onCompletionResolve(this.onCompletionResolve.bind(this)),this.connection.onDocumentColor(this.onDocumentColor.bind(this)),this.connection.onColorPresentation(this.onColorPresentation.bind(this)),this.connection.onCodeAction(this.onCodeAction.bind(this)),this.connection.onCodeLens(this.onCodeLens.bind(this)),this.connection.onDocumentLinks(this.onDocumentLinks.bind(this)),this.connection.onRequest(this.onRequest.bind(this)))}onRequest(t,n){if(t==="@/tailwindCSS/sortSelection"){let i=this.getProject({uri:n.uri});if(!i)return{error:"no-project"};try{return{classLists:i.sortClassLists(n.classLists)}}catch{return{error:"unknown"}}}if(t==="@/tailwindCSS/getProject"){let i=this.getProject({uri:n.uri});return!i||!i.enabled()||!i.state?.enabled?null:{version:i.state.version}}}async updateCommonCapabilities(){let t=Gi.BulkRegistration.create(),n=this.initializeParams.capabilities;n.textDocument?.hover?.dynamicRegistration&&t.add(Gi.HoverRequest.type,{documentSelector:null}),n.textDocument?.colorProvider?.dynamicRegistration&&t.add(Gi.DocumentColorRequest.type,{documentSelector:null}),n.textDocument?.codeAction?.dynamicRegistration&&t.add(Gi.CodeActionRequest.type,{documentSelector:null}),n.textDocument?.codeLens?.dynamicRegistration&&t.add(Gi.CodeLensRequest.type,{documentSelector:null}),n.textDocument?.documentLink?.dynamicRegistration&&t.add(Gi.DocumentLinkRequest.type,{documentSelector:null}),n.workspace?.didChangeConfiguration?.dynamicRegistration&&t.add(Gi.DidChangeConfigurationNotification.type,void 0),this.commonRegistrations?.dispose(),this.commonRegistrations=await this.connection.client.register(t)}updateProjectCapabilities(){this.updateTriggerCharacters()}async updateTriggerCharacters(){if(!this.initializeParams.capabilities.textDocument?.completion?.dynamicRegistration)return;let n=new Set(iAe);for(let o of this.projects.values()){let r=o.state.separator;typeof r=="string"&&(r=r.slice(-1),r&&n.add(r))}if(this.completionRegistration&&Bl(Array.from(n),Array.from(this.lastTriggerCharacters??[])))return;this.lastTriggerCharacters=n;let i=this.completionRegistration;this.completionRegistration=this.connection.client.register(Gi.CompletionRequest.type,{documentSelector:null,resolveProvider:!0,triggerCharacters:Array.from(n)}),await i?.then(o=>o.dispose()),await this.completionRegistration}getProject(t){let n,i,o=1/0,r=Cp.URI.parse(t.uri),l=r.fsPath,s=r.path;l=ss(l);for(let H of this.projects.values()){if(!H.projectConfig.configPath){n=n??H;continue}let a=H.documentSelector().concat().sort((c,p)=>c.pattern.startsWith("!")&&!p.pattern.startsWith("!")?-1:!c.pattern.startsWith("!")&&p.pattern.startsWith("!")?1:0);for(let c of a){let p=c.pattern.replace(/[\[\]{}()]/g,d=>`\\${d}`);if(p.startsWith("!")&&((0,SH.default)(p.slice(1),{dot:!0})(l)||(0,SH.default)(p.slice(1),{dot:!0})(s)))break;if((0,SH.default)(p,{dot:!0})(l)&&c.priority<o){i=H,o=c.priority;continue}if((0,SH.default)(p,{dot:!0})(s)&&c.priority<o){i=H,o=c.priority;continue}}}let u=i??n;return u||console.debug("[GLOBAL] No matching project for document",{fsPath:l,normalPath:s}),u}async onDocumentColor(t){return await this.init(),this.getProject(t.textDocument)?.onDocumentColor(t)??[]}async onColorPresentation(t){return await this.init(),this.getProject(t.textDocument)?.onColorPresentation(t)??[]}async onHover(t){return await this.init(),this.getProject(t.textDocument)?.onHover(t)??null}async onCompletion(t){return await this.init(),this.getProject(t.textDocument)?.onCompletion(t)??null}async onCompletionResolve(t){return await this.init(),this.projects.get(t.data?._projectKey)?.onCompletionResolve(t)??null}async onCodeAction(t){return await this.init(),this.getProject(t.textDocument)?.onCodeAction(t)??null}async onCodeLens(t){return await this.init(),this.getProject(t.textDocument)?.onCodeLens(t)??null}async onDocumentLinks(t){return await this.init(),this.getProject(t.textDocument)?.onDocumentLinks(t)??null}setup(){this.connection.onInitialize(async t=>(this.initializeParams=t,this.setupLSPHandlers(),{capabilities:this.computeServerCapabilities(t.capabilities)})),this.connection.onInitialized(()=>this.init())}computeServerCapabilities(t){let n={textDocumentSync:Gi.TextDocumentSyncKind.Full,workspace:{workspaceFolders:{changeNotifications:!0}}};return t.textDocument?.hover?.dynamicRegistration||(n.hoverProvider=!0),t.textDocument?.colorProvider?.dynamicRegistration||(n.colorProvider=!0),t.textDocument?.codeAction?.dynamicRegistration||(n.codeActionProvider=!0),t.textDocument?.codeLens?.dynamicRegistration||(n.codeLensProvider={resolveProvider:!1}),t.textDocument?.completion?.dynamicRegistration||(n.completionProvider={resolveProvider:!0,triggerCharacters:[...iAe,":"]}),t.textDocument?.documentLink?.dynamicRegistration||(n.documentLinkProvider={}),n}listen(){this.connection.listen()}dispose(){this.connection.sendNotification("@/tailwindCSS/projectsDestroyed");for(let[,t]of this.projects)t.dispose();this.projects=new Map,this.refreshDiagnostics(),this.commonRegistrations?.dispose(),this.commonRegistrations=void 0,this.lastTriggerCharacters.clear(),this.completionRegistration?.then(t=>t.dispose()),this.completionRegistration=void 0,this.disposables.forEach(t=>t.dispose()),this.disposables.length=0,this.watched.length=0}async restart(){let t=this.initializeParams.initializationOptions?.testMode??!1;console.log(`----------
|
3584
3584
|
RESTARTING
|
3585
3585
|
----------`),this.dispose(),this.initPromise=void 0,await this.init(),t&&this.connection.sendNotification("@/tailwindCSS/serverRestarted")}async softRestart(){for(let[,t]of this.projects)if(t.state.v4)try{await t.reload()}catch{}}};var oAe=require("node:util");function tA(e){return e.map(t=>(0,oAe.format)(t)).join(" ")}function lAe(e,t){e.debug=(...n)=>t.console.info(tA(n)),e.error=(...n)=>t.console.error(tA(n)),e.warn=(...n)=>t.console.warn(tA(n)),e.info=(...n)=>t.console.info(tA(n)),e.log=(...n)=>t.console.log(tA(n))}global.__preflight=KK;new Function("require","__dirname",`
|
3586
3586
|
let oldReadFileSync = require('fs').readFileSync
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tailwindcss/language-server",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.18",
|
4
4
|
"description": "Tailwind CSS Language Server",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -93,7 +93,7 @@
|
|
93
93
|
"vscode-languageserver-protocol": "^3.17.5",
|
94
94
|
"vscode-languageserver-textdocument": "1.0.12",
|
95
95
|
"vscode-uri": "3.0.2",
|
96
|
-
"@tailwindcss/language-service": "0.14.
|
96
|
+
"@tailwindcss/language-service": "0.14.18"
|
97
97
|
},
|
98
98
|
"engines": {
|
99
99
|
"node": ">=18.0.0"
|