prettier 3.0.0-alpha.5 → 3.0.0-alpha.7-for-vscode
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.
- package/LICENSE +17 -17
- package/bin/prettier.cjs +0 -0
- package/doc.d.ts +2 -10
- package/doc.js +55 -246
- package/doc.mjs +51 -246
- package/index.cjs +20567 -478
- package/index.d.ts +26 -8
- package/index.mjs +5920 -20834
- package/internal/cli.mjs +486 -478
- package/internal/internal.cjs +6430 -0
- package/internal/{third-party.mjs → internal.mjs} +19 -14
- package/package.json +40 -29
- package/plugins/acorn.d.ts +6 -0
- package/plugins/acorn.js +13 -0
- package/plugins/acorn.mjs +13 -0
- package/plugins/angular.d.ts +5 -8
- package/plugins/angular.js +2 -2
- package/plugins/angular.mjs +2 -2
- package/plugins/babel.d.ts +14 -13
- package/plugins/babel.js +11 -11
- package/plugins/babel.mjs +11 -11
- package/plugins/estree.d.ts +0 -0
- package/plugins/estree.js +35 -0
- package/plugins/estree.mjs +35 -0
- package/plugins/flow.d.ts +2 -5
- package/plugins/flow.js +20 -20
- package/plugins/flow.mjs +20 -20
- package/plugins/glimmer.d.ts +2 -5
- package/plugins/glimmer.js +22 -17
- package/plugins/glimmer.mjs +22 -17
- package/plugins/graphql.d.ts +2 -5
- package/plugins/graphql.js +16 -7
- package/plugins/graphql.mjs +16 -7
- package/plugins/html.d.ts +5 -8
- package/plugins/html.js +19 -17
- package/plugins/html.mjs +19 -17
- package/plugins/markdown.d.ts +4 -7
- package/plugins/markdown.js +54 -33
- package/plugins/markdown.mjs +54 -33
- package/plugins/meriyah.d.ts +2 -5
- package/plugins/meriyah.js +5 -5
- package/plugins/meriyah.mjs +5 -5
- package/plugins/postcss.d.ts +4 -7
- package/plugins/postcss.js +45 -32
- package/plugins/postcss.mjs +45 -32
- package/plugins/typescript.d.ts +2 -5
- package/plugins/typescript.js +24 -20
- package/plugins/typescript.mjs +24 -20
- package/plugins/yaml.d.ts +2 -5
- package/plugins/yaml.js +130 -117
- package/plugins/yaml.mjs +130 -117
- package/standalone.js +27 -90
- package/standalone.mjs +27 -90
- package/plugins/acorn-and-espree.d.ts +0 -10
- package/plugins/acorn-and-espree.js +0 -13
- package/plugins/acorn-and-espree.mjs +0 -13
package/plugins/postcss.mjs
CHANGED
|
@@ -1,39 +1,52 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
1
|
+
var yc=Object.create;var os=Object.defineProperty;var gc=Object.getOwnPropertyDescriptor;var wc=Object.getOwnPropertyNames;var vc=Object.getPrototypeOf,xc=Object.prototype.hasOwnProperty;var E=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Bn=(t,e)=>{for(var s in e)os(t,s,{get:e[s],enumerable:!0})},bc=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of wc(e))!xc.call(t,n)&&n!==s&&os(t,n,{get:()=>e[n],enumerable:!(r=gc(e,n))||r.enumerable});return t};var ce=(t,e,s)=>(s=t!=null?yc(vc(t)):{},bc(e||!t||!t.__esModule?os(s,"default",{value:t,enumerable:!0}):s,t));var _c,S,J=E(()=>{_c=(t,e,s,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(s,r):s.global?e.replace(s,r):e.split(s).join(r)},S=_c});function Cc(t){return Array.isArray(t)&&t.length>0}var se,Ve=E(()=>{se=Cc});var Rc,K,Ce=E(()=>{Rc=(t,e,s)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[s<0?e.length+s:s]:e.at(s)},K=Rc});var oi=y(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.extract=Vc;de.parse=Gc;de.parseWithComments=ii;de.print=Kc;de.strip=Yc;var Fc=/\*\/$/,$c=/^\/\*\*?/,si=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Uc=/(^|\s+)\/\/([^\r\n]*)/g,ei=/^(\r?\n)+/,Wc=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ti=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,zc=/(\r?\n|^) *\* ?/g,ni=[];function Vc(t){let e=t.match(si);return e?e[0].trimLeft():""}function Yc(t){let e=t.match(si);return e&&e[0]?t.substring(e[0].length):t}function Gc(t){return ii(t).pragmas}function ii(t){let e=`
|
|
2
|
+
`;t=t.replace($c,"").replace(Fc,"").replace(zc,"$1");let s="";for(;s!==t;)s=t,t=t.replace(Wc,`${e}$1 $2${e}`);t=t.replace(ei,"").trimRight();let r=Object.create(null),n=t.replace(ti,"").replace(ei,"").trimRight(),i;for(;i=ti.exec(t);){let o=i[2].replace(Uc,"");typeof r[i[1]]=="string"||Array.isArray(r[i[1]])?r[i[1]]=ni.concat(r[i[1]],o):r[i[1]]=o}return{comments:n,pragmas:r}}function Kc({comments:t="",pragmas:e={}}){let s=`
|
|
3
|
+
`,r="/**",n=" *",i=" */",o=Object.keys(e),a=o.map(c=>ri(c,e[c])).reduce((c,f)=>c.concat(f),[]).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${ri(o[0],c)[0]}${i}`}}let u=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?u:"")+(t&&o.length?n+s:"")+a+i}function ri(t,e){return ni.concat(e).map(s=>`@${t} ${s}`.trim())}});var ai=E(()=>{J()});function Hc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
|
4
|
+
`);return e===-1?t:t.slice(0,e)}var ui,li=E(()=>{ui=Hc});function ci(t){let e=ui(t);e&&(t=t.slice(e.length+1));let s=(0,ie.extract)(t),{pragmas:r,comments:n}=(0,ie.parseWithComments)(s);return{shebang:e,text:t,pragmas:r,comments:n}}function fi(t){let{pragmas:e}=ci(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function pi(t){let{shebang:e,text:s,pragmas:r,comments:n}=ci(t),i=(0,ie.strip)(s),o=(0,ie.print)({pragmas:{format:"",...r},comments:n.trimStart()});return(e?`${e}
|
|
5
|
+
`:"")+o+(i.startsWith(`
|
|
6
|
+
`)?`
|
|
7
|
+
`:`
|
|
8
|
+
|
|
9
|
+
`)+i}var ie,hi=E(()=>{ie=ce(oi(),1);ai();li()});function jc(t){let e=t.match(Qc);if(!e)return{content:t};let{startDelimiter:s,language:r,value:n="",endDelimiter:i}=e.groups,o=r.trim()||"yaml";if(s==="+++"&&(o="toml"),o!=="yaml"&&s!==i)return{content:t};let[a]=e;return{frontMatter:{type:"front-matter",lang:o,value:n,startDelimiter:s,endDelimiter:i,raw:a.replace(/\n$/,"")},content:S(!1,a,/[^\n]/g," ")+t.slice(a.length)}}var Qc,rt,cs=E(()=>{J();Qc=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");rt=jc});function di(t){return fi(rt(t).content)}function mi(t){let{frontMatter:e,content:s}=rt(t);return(e?e.raw+`
|
|
10
|
+
|
|
11
|
+
`:"")+pi(s)}var fs=E(()=>{hi();cs()});function Vt(t){return(e,s,r)=>{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&o<i;){let a=e.charAt(o);if(t instanceof RegExp){if(!t.test(a))return o}else if(!t.includes(a))return o;n?o--:o++}return o===-1||o===i?o:!1}}var Pv,Yt,$i,Gt,ct=E(()=>{Pv=Vt(/\s/),Yt=Vt(" "),$i=Vt(",; "),Gt=Vt(/[^\n\r]/)});function nf(t,e){let s=0;for(let r=0;r<t.line-1;++r)s=e.indexOf(`
|
|
12
|
+
`,s)+1;return s+t.column}var vs,Ui=E(()=>{vs=nf});function Wi(t,e){var s,r,n;if(typeof((r=(s=t.source)==null?void 0:s.start)==null?void 0:r.offset)=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.sourceIndex;if((n=t.source)!=null&&n.start)return vs(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function xs(t,e){var s,r;if(t.type==="css-comment"&&t.inline)return Gt(e,t.source.startOffset);if(typeof((r=(s=t.source)==null?void 0:s.end)==null?void 0:r.offset)=="number")return t.source.end.offset+1;if(t.source){if(t.source.end)return vs(t.source.end,e);if(se(t.nodes))return xs(K(!1,t.nodes,-1),e)}return null}function bs(t,e){t.source&&(t.source.startOffset=Wi(t,e),t.source.endOffset=xs(t,e));for(let s in t){let r=t[s];s==="source"||!r||typeof r!="object"||(r.type==="value-root"||r.type==="value-unknown"?zi(r,of(t),r.text||r.value):bs(r,e))}}function zi(t,e,s){t.source&&(t.source.startOffset=Wi(t,s)+e,t.source.endOffset=xs(t,s)+e);for(let r in t){let n=t[r];r==="source"||!n||typeof n!="object"||zi(n,e,s)}}function of(t){var s;let e=t.source.startOffset;return typeof t.prop=="string"&&(e+=t.prop.length),t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/)[0].length),t.type!=="css-atrule"&&typeof((s=t.raws)==null?void 0:s.between)=="string"&&(e+=t.raws.between.length),e}function Vi(t){let e="initial",s="initial",r,n=!1,i=[];for(let o=0;o<t.length;o++){let a=t[o];switch(e){case"initial":if(a==="'"){e="single-quotes";continue}if(a==='"'){e="double-quotes";continue}if((a==="u"||a==="U")&&t.slice(o,o+4).toLowerCase()==="url("){e="url",o+=3;continue}if(a==="*"&&t[o-1]==="/"){e="comment-block";continue}if(a==="/"&&t[o-1]==="/"){e="comment-inline",r=o-1;continue}continue;case"single-quotes":if(a==="'"&&t[o-1]!=="\\"&&(e=s,s="initial"),a===`
|
|
13
|
+
`||a==="\r")return t;continue;case"double-quotes":if(a==='"'&&t[o-1]!=="\\"&&(e=s,s="initial"),a===`
|
|
14
|
+
`||a==="\r")return t;continue;case"url":if(a===")"&&(e="initial"),a===`
|
|
15
|
+
`||a==="\r")return t;if(a==="'"){e="single-quotes",s="url";continue}if(a==='"'){e="double-quotes",s="url";continue}continue;case"comment-block":a==="/"&&t[o-1]==="*"&&(e="initial");continue;case"comment-inline":(a==='"'||a==="'"||a==="*")&&(n=!0),(a===`
|
|
16
|
+
`||a==="\r")&&(n&&i.push([r,o]),e="initial",n=!1);continue}}for(let[o,a]of i)t=t.slice(0,o)+S(!1,t.slice(o,a),/["'*]/g," ")+t.slice(a);return t}function R(t){var e;return(e=t.source)==null?void 0:e.startOffset}function I(t){var e;return(e=t.source)==null?void 0:e.endOffset}var Re=E(()=>{Ce();J();ct();Ve();Ui()});var jt=y((Kx,Es)=>{"use strict";Es.exports.isClean=Symbol("isClean");Es.exports.my=Symbol("my")});var io=y((Hx,Ss)=>{var T=String,no=function(){return{isColorSupported:!1,reset:T,bold:T,dim:T,italic:T,underline:T,inverse:T,hidden:T,strikethrough:T,black:T,red:T,green:T,yellow:T,blue:T,magenta:T,cyan:T,white:T,gray:T,bgBlack:T,bgRed:T,bgGreen:T,bgYellow:T,bgBlue:T,bgMagenta:T,bgCyan:T,bgWhite:T}};Ss.exports=no();Ss.exports.createColors=no});var Cs=y(()=>{});var Jt=y((Jx,uo)=>{"use strict";var oo=io(),ao=Cs(),we=class extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,we)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=oo.isColorSupported),ao&&e&&(s=ao(s));let r=s.split(/\r?\n/),n=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),o=String(i).length,a,u;if(e){let{bold:c,red:f,gray:p}=oo.createColors(!0);a=l=>c(f(l)),u=l=>p(l)}else a=u=c=>c;return r.slice(n,i).map((c,f)=>{let p=n+1+f,l=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let g=u(l.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(l)+c+`
|
|
17
|
+
`+g+a("^")}return" "+u(l)+c}).join(`
|
|
3
18
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
4
19
|
|
|
5
20
|
`+e+`
|
|
6
|
-
`),this.name+": "+this.message+e}};
|
|
21
|
+
`),this.name+": "+this.message+e}};uo.exports=we;we.default=we});var Xt=y((Xx,co)=>{"use strict";var lo={colon:": ",indent:" ",beforeDecl:`
|
|
7
22
|
`,beforeRule:`
|
|
8
23
|
`,beforeOpen:" ",beforeClose:`
|
|
9
24
|
`,beforeComment:`
|
|
10
25
|
`,after:`
|
|
11
|
-
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function
|
|
12
|
-
`);return
|
|
13
|
-
`)&&(
|
|
14
|
-
`)&&(
|
|
15
|
-
`)&&(
|
|
16
|
-
`)&&(
|
|
17
|
-
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<i;a++)
|
|
18
|
-
`?(
|
|
19
|
-
`.charCodeAt(0),
|
|
20
|
-
`," "];return
|
|
21
|
-
`);
|
|
22
|
-
`))),n=
|
|
23
|
-
`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,s=r[3]+o.length-n.length}else this.tokenizer.back(r);break}t.push(r[1]),s=r[2],r=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",t.join(""),e[2],s];return this.inlineComment(i),n&&(this.input=new pu(n),this.tokenizer=hu(this.input)),!0}else if(r[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),r[1]="//",this.tokenizer.back(e),sr.exports.isInlineComment.bind(this)(r)}return!1}}});var Ys=d((am,Js)=>{Js.exports={interpolation(r){let e=[r,this.tokenizer.nextToken()],t=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(r=this.tokenizer.nextToken();r&&t.includes(r[0]);)e.push(r),r=this.tokenizer.nextToken();let s=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",s.join(""),n[2],i[2]];return this.tokenizer.back(r),this.tokenizer.back(o),!0}}});var Xs=d((um,Ks)=>{var du=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,mu=/\.[0-9]/,wu=r=>{let[,e]=r,[t]=e;return(t==="."||t==="#")&&du.test(e)===!1&&mu.test(e)===!1};Ks.exports={isMixinToken:wu}});var en=d((lm,Zs)=>{var yu=We(),gu=/^url\((.+)\)/;Zs.exports=r=>{let{name:e,params:t=""}=r;if(e==="import"&&t.length){r.import=!0;let s=yu({css:t});for(r.filename=t.replace(gu,"$1");!s.endOfFile();){let[n,i]=s.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){r.options=i,r.filename=t.replace(i,"").trim();break}}}}});var nn=d((cm,sn)=>{var tn=/:$/,rn=/^:(\s+)?/;sn.exports=r=>{let{name:e,params:t=""}=r;if(r.name.slice(-1)===":"){if(tn.test(e)){let[s]=e.match(tn);r.name=e.replace(s,""),r.raws.afterName=s+(r.raws.afterName||""),r.variable=!0,r.value=r.params}if(rn.test(t)){let[s]=t.match(rn);r.value=t.replace(s,""),r.raws.afterName=(r.raws.afterName||"")+s,r.variable=!0}}}});var un=d((hm,an)=>{var xu=X(),vu=je(),{isInlineComment:bu}=Hs(),{interpolation:on}=Ys(),{isMixinToken:ku}=Xs(),_u=en(),Tu=nn(),Su=/(!\s*important)$/i;an.exports=class extends vu{constructor(...e){super(...e),this.lastNode=null}atrule(e){on.bind(this)(e)||(super.atrule(e),_u(this.lastNode),Tu(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let t=e.findIndex(a=>a[0]==="("),s=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(s),o=e.splice(t,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,t,s){super.init(e,t,s),this.lastNode=e}inlineComment(e){let t=new xu,s=e[1].slice(2);if(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.inline=!0,t.raws.begin="//",/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let n=s.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=n}}mixin(e){let[t]=e,s=t[1].slice(0,1),n=e.findIndex(l=>l[0]==="brackets"),i=e.findIndex(l=>l[0]==="("),o="";if((n<0||n>3)&&i>0){let l=e.reduce((q,S,P)=>S[0]===")"?P:q),h=e.slice(i,l+i).map(q=>q[1]).join(""),[c]=e.slice(i),y=[c[2],c[3]],[g]=e.slice(l,l+1),p=[g[2],g[3]],m=["brackets",h].concat(y,p),w=e.slice(0,i),b=e.slice(l+1);e=w,e.push(m),e=e.concat(b)}let a=[];for(let l of e)if((l[1]==="!"||a.length)&&a.push(l),l[1]==="important")break;if(a.length){let[l]=a,f=e.indexOf(l),h=a[a.length-1],c=[l[2],l[3]],y=[h[4],h[5]],p=["word",a.map(m=>m[1]).join("")].concat(c,y);e.splice(f,a.length,p)}let u=e.findIndex(l=>Su.test(l[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=s,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){bu.bind(this)(e)||super.other(e)}rule(e){let t=e[e.length-1],s=e[e.length-2];if(s[0]==="at-word"&&t[0]==="{"&&(this.tokenizer.back(t),on.bind(this)(s))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[t]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(ku(t)){this.mixin(e);return}super.unknownWord(e)}}});var cn=d((dm,ln)=>{var Ou=Pe();ln.exports=class extends Ou{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,t);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(t?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder(`//${t}${e.text}${s}`,e)}else super.comment(e)}}});var fn=d((mm,nr)=>{var Eu=se(),Au=un(),Cu=cn();nr.exports={parse(r,e){let t=new Eu(r,e),s=new Au(t);return s.parse(),s.root.walk(n=>{let i=t.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==t.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=t.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,l=t.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:l.line,column:l.col}}}),s.root},stringify(r,e){new Cu(e).stringify(r)},nodeToString(r){let e="";return nr.exports.stringify(r,t=>{e+=t}),e}}});var ir=d((wm,hn)=>{hn.exports=class{generate(){}}});var Qe=d((gm,mn)=>{"use strict";var qu=B(),pn,dn,Q=class extends qu{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new pn(new dn,this,e).stringify()}};Q.registerLazyResult=r=>{pn=r};Q.registerProcessor=r=>{dn=r};mn.exports=Q;Q.default=Q});var or=d((xm,yn)=>{"use strict";var wn={};yn.exports=function(e){wn[e]||(wn[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ar=d((vm,gn)=>{"use strict";var xe=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let s=t.node.rangeBy(t);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in t)this[s]=t[s]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};gn.exports=xe;xe.default=xe});var He=d((bm,xn)=>{"use strict";var Ru=ar(),ve=class{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let s=new Ru(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};xn.exports=ve;ve.default=ve});var cr=d((_m,_n)=>{"use strict";var{isClean:N,my:Pu}=qe(),Iu=ir(),Nu=ce(),Mu=B(),Lu=Qe(),km=or(),vn=He(),Du=ge(),$u=ee(),zu={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Bu={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Wu={postcssPlugin:!0,prepare:!0,Once:!0},ne=0;function be(r){return typeof r=="object"&&typeof r.then=="function"}function kn(r){let e=!1,t=zu[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,ne,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,ne,t+"Exit"]:[t,t+"Exit"]}function bn(r){let e;return r.type==="document"?e=["Document",ne,"DocumentExit"]:r.type==="root"?e=["Root",ne,"RootExit"]:e=kn(r),{node:r,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function ur(r){return r[N]=!1,r.nodes&&r.nodes.forEach(e=>ur(e)),r}var lr={},M=class{constructor(e,t,s){this.stringified=!1,this.processed=!1;let n;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=ur(t);else if(t instanceof M||t instanceof vn)n=ur(t.root),t.map&&(typeof s.map>"u"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let i=Du;s.syntax&&(i=s.syntax.parse),s.parser&&(i=s.parser),i.parse&&(i=i.parse);try{n=i(t,s)}catch(o){this.processed=!0,this.error=o}n&&!n[Pu]&&Mu.rebuild(n)}this.result=new vn(e,n,s),this.helpers={...lr,result:this.result,postcss:lr},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(be(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[N];)e[N]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Nu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new Iu(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[N]=!0;let t=kn(e);for(let s of t)if(s===ne)e.nodes&&e.each(n=>{n[N]||this.walkSync(n)});else{let n=this.listeners[s];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,t){for(let[s,n]of e){this.result.lastPlugin=s;let i;try{i=n(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(be(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(s=>e.Once(s,this.helpers));return be(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=s.postcssPlugin,e.setMessage()):s.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(be(s))try{await s}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[N];){e[N]=!0;let t=[bn(e)];for(;t.length>0;){let s=this.visitTick(t);if(be(s))try{await s}catch(n){let i=t[t.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map(i=>s(i,this.helpers));await Promise.all(n)}else await s(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(t,s,n)=>{this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push([t,n])};for(let t of this.plugins)if(typeof t=="object")for(let s in t){if(!Bu[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Wu[s])if(typeof t[s]=="object")for(let n in t[s])n==="*"?e(t,s,t[s][n]):e(t,s+"-"+n.toLowerCase(),t[s][n]);else typeof t[s]=="function"&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:s,visitors:n}=t;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[o,a]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(s.toProxy(),this.helpers)}catch(u){throw this.handleError(u,s)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=s.nodes[s.indexes[o]];)if(s.indexes[o]+=1,!a[N]){a[N]=!0,e.push(bn(a));return}t.iterator=0,delete s.indexes[o]}let i=t.events;for(;t.eventIndex<i.length;){let o=i[t.eventIndex];if(t.eventIndex+=1,o===ne){s.nodes&&s.nodes.length&&(s[N]=!0,t.iterator=s.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}};M.registerPostcss=r=>{lr=r};_n.exports=M;M.default=M;$u.registerLazyResult(M);Lu.registerLazyResult(M)});var Sn=d((Sm,Tn)=>{"use strict";var Uu=ir(),Fu=ce(),Tm=or(),ju=ge(),Vu=He(),ke=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let n,i=Fu;this.result=new Vu(this._processor,n,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Uu(i,n,this._opts,t);if(a.isMap()){let[u,l]=a.generate();u&&(this.result.css=u),l&&(this.result.map=l)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=ju;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Tn.exports=ke;ke.default=ke});var En=d((Om,On)=>{"use strict";var Gu=Sn(),Qu=cr(),Hu=Qe(),Ju=ee(),H=class{constructor(e=[]){this.version="8.4.21",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new Gu(this,e,t):new Qu(this,e,t)}normalize(e){let t=[];for(let s of e)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)t.push(s);else if(typeof s=="function")t.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin");return t}};On.exports=H;H.default=H;Ju.registerProcessor(H);Hu.registerProcessor(H)});var Cn=d((Em,An)=>{"use strict";var Yu=de(),Ku=Xt(),Xu=X(),Zu=Ue(),el=se(),tl=ee(),rl=Fe();function _e(r,e){if(Array.isArray(r))return r.map(n=>_e(n));let{inputs:t,...s}=r;if(t){e=[];for(let n of t){let i={...n,__proto__:el.prototype};i.map&&(i.map={...i.map,__proto__:Ku.prototype}),e.push(i)}}if(s.nodes&&(s.nodes=r.nodes.map(n=>_e(n,e))),s.source){let{inputId:n,...i}=s.source;s.source=i,n!=null&&(s.source.input=e[n])}if(s.type==="root")return new tl(s);if(s.type==="decl")return new Yu(s);if(s.type==="rule")return new rl(s);if(s.type==="comment")return new Xu(s);if(s.type==="atrule")return new Zu(s);throw new Error("Unknown node type: "+r.type)}An.exports=_e;_e.default=_e});var Je=d((Am,Ln)=>{"use strict";var sl=Re(),qn=de(),nl=cr(),il=B(),fr=En(),ol=ce(),al=Cn(),Rn=Qe(),ul=ar(),Pn=X(),In=Ue(),ll=He(),cl=se(),fl=ge(),hl=Yt(),Nn=Fe(),Mn=ee(),pl=he();function x(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new fr(r)}x.plugin=function(e,t){let s=!1;function n(...o){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
24
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=
|
|
25
|
-
`.charCodeAt(0),
|
|
26
|
-
`))break;i[0]==="("?
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`.charCodeAt(0),Ar=" ".charCodeAt(0),Cr="\f".charCodeAt(0),qr=" ".charCodeAt(0),Rr="\r".charCodeAt(0),Oc="@".charCodeAt(0),Ec="e".charCodeAt(0),Ac="E".charCodeAt(0),Hi="0".charCodeAt(0),Ji="9".charCodeAt(0),Cc="u".charCodeAt(0),qc="U".charCodeAt(0),gt=/[ \n\t\r\{\(\)'"\\;,/]/g,Rc=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,ae=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,Pc=/^[a-z0-9]/i,Ic=/^[a-f0-9?\-]/i,Yi=Vi();Ki.exports=function(e,t){t=t||{};let s=[],n=e.valueOf(),i=n.length,o=-1,a=1,u=0,l=0,f=null,h,c,y,g,p,m,w,b,q,S,P,F;function K(k){let _=`Unclosed ${k} at line: ${a}, column: ${u-o}, token: ${u}`;throw new Yi(_)}function L(){let k=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new Yi(k)}for(;u<i;){switch(h=n.charCodeAt(u),h===Oe&&(o=u,a+=1),h){case Oe:case Ar:case qr:case Rr:case Cr:c=u;do c+=1,h=n.charCodeAt(c),h===Oe&&(o=c,a+=1);while(h===Ar||h===Oe||h===qr||h===Rr||h===Cr);s.push(["space",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;case Tc:c=u+1,s.push(["colon",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;case _c:c=u+1,s.push(["comma",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;case yc:s.push(["{","{",a,u-o,a,c-o,u]);break;case gc:s.push(["}","}",a,u-o,a,c-o,u]);break;case xc:l++,f=!f&&l===1&&s.length>0&&s[s.length-1][0]==="word"&&s[s.length-1][1]==="url",s.push(["(","(",a,u-o,a,c-o,u]);break;case vc:l--,f=f&&l>0,s.push([")",")",a,u-o,a,c-o,u]);break;case Gi:case bc:y=h===Gi?"'":'"',c=u;do for(S=!1,c=n.indexOf(y,c+1),c===-1&&K("quote",y),P=c;n.charCodeAt(P-1)===Qi;)P-=1,S=!S;while(S);s.push(["string",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c;break;case Oc:gt.lastIndex=u+1,gt.test(n),gt.lastIndex===0?c=n.length-1:c=gt.lastIndex-2,s.push(["atword",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c;break;case Qi:c=u,h=n.charCodeAt(c+1),w&&h!==wt&&h!==Ar&&h!==Oe&&h!==qr&&h!==Rr&&h!==Cr&&(c+=1),s.push(["word",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c;break;case Er:case yt:case Or:c=u+1,F=n.slice(u+1,c+1);let k=n.slice(u-1,u);if(h===yt&&F.charCodeAt(0)===yt){c++,s.push(["word",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break}s.push(["operator",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;break;default:if(h===wt&&(n.charCodeAt(u+1)===Or||t.loose&&!f&&n.charCodeAt(u+1)===wt)){if(n.charCodeAt(u+1)===Or)c=n.indexOf("*/",u+2)+1,c===0&&K("comment","*/");else{let O=n.indexOf(`
|
|
31
|
-
`,u+2);c=O!==-1?O-1:i}m=n.slice(u,c+1),g=m.split(`
|
|
32
|
-
`),p=g.length-1,p>0?(b=a+p,q=c-g[p].length):(b=a,q=o),s.push(["comment",m,a,u-o,b,c-q,u]),o=q,a=b,u=c}else if(h===Sc&&!Pc.test(n.slice(u+1,u+2)))c=u+1,s.push(["#",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;else if((h===Cc||h===qc)&&n.charCodeAt(u+1)===Er){c=u+2;do c+=1,h=n.charCodeAt(c);while(c<i&&Ic.test(n.slice(c,c+1)));s.push(["unicoderange",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1}else if(h===wt)c=u+1,s.push(["operator",n.slice(u,c),a,u-o,a,c-o,u]),u=c-1;else{let _=Rc;if(h>=Hi&&h<=Ji&&(_=ae),_.lastIndex=u+1,_.test(n),_.lastIndex===0?c=n.length-1:c=_.lastIndex-2,_===ae||h===kc){let O=n.charCodeAt(c),es=n.charCodeAt(c+1),ts=n.charCodeAt(c+2);(O===Ec||O===Ac)&&(es===yt||es===Er)&&ts>=Hi&&ts<=Ji&&(ae.lastIndex=c+2,ae.test(n),ae.lastIndex===0?c=n.length-1:c=ae.lastIndex-2)}s.push(["word",n.slice(u,c+1),a,u-o,a,c-o,u]),u=c}break}u++}return s}});var Pr=d((Cw,Zi)=>{Zi.exports=function(e,t){if(t=typeof t=="number"?t:1/0,!t)return Array.isArray(e)?e.map(function(n){return n}):e;return s(e,1);function s(n,i){return n.reduce(function(o,a){return Array.isArray(a)&&i<t?o.concat(s(a,i+1)):o.concat(a)},[])}}});var Ir=d((qw,eo)=>{eo.exports=function(r,e){for(var t=-1,s=[];(t=r.indexOf(e,t+1))!==-1;)s.push(t);return s}});var Nr=d((Rw,to)=>{"use strict";function Nc(r,e){for(var t=1,s=r.length,n=r[0],i=r[0],o=1;o<s;++o)if(i=n,n=r[o],e(n,i)){if(o===t){t++;continue}r[t++]=n}return r.length=t,r}function Mc(r){for(var e=1,t=r.length,s=r[0],n=r[0],i=1;i<t;++i,n=s)if(n=s,s=r[i],s!==n){if(i===e){e++;continue}r[e++]=s}return r.length=e,r}function Lc(r,e,t){return r.length===0?r:e?(t||r.sort(e),Nc(r,e)):(t||r.sort(),Mc(r))}to.exports=Lc});var so=d((Pw,ro)=>{"use strict";var Mr=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};ro.exports=Mr});var ao=d((Nw,oo)=>{"use strict";var Dc=yi(),$c=xi(),zc=ki(),Bc=Ti(),Wc=Oi(),Uc=Ai(),Fc=Ri(),jc=Ii(),Vc=Mi(),no=Di(),Gc=zi(),io=Wi(),Qc=Fi(),Hc=Xi(),Jc=Pr(),Yc=Ir(),Kc=Nr(),Xc=so();function Zc(r){return r.sort((e,t)=>e-t)}oo.exports=class{constructor(e,t){let s={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},s,t),this.position=0,this.unbalanced=0,this.root=new Dc;let n=new $c;this.root.append(n),this.current=n,this.tokens=Hc(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new Bc({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new Wc({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,t=this.currToken[1].replace(/\/\*|\*\//g,""),s;this.options.loose&&t.startsWith("//")&&(t=t.substring(2),e=!0),s=new Uc({value:t,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(s),this.position++}error(e,t){throw new Xc(e+` at line: ${t[2]}, column ${t[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let e=this.currToken[1],t;if(e==="+"||e==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return t=new Vc({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(t)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,t=this.position+1,s=this.currToken,n;for(;t<this.tokens.length&&e;){let i=this.tokens[t];i[0]==="("&&e++,i[0]===")"&&e--,t++}if(e&&this.error("Expected closing parenthesis",s),n=this.current.last,n&&n.type==="func"&&n.unbalanced<0&&(n.unbalanced=0,this.current=n),this.current.unbalanced++,this.newNode(new no({value:s[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let i=this.nextToken,o=this.currToken[1],a={line:this.currToken[2],column:this.currToken[3]};for(;i&&i[0]!==")"&&this.current.unbalanced;)this.position++,o+=this.currToken[1],i=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new io({value:o,source:{start:a,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new no({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Qc({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,t=this.currToken[1],s=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(t))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];t+=a,e=this.nextToken}i=Yc(t,"@"),o=Zc(Kc(Jc([[0],i]))),o.forEach((a,u)=>{let l=o[u+1]||t.length,f=t.slice(a,l),h;if(~i.indexOf(a))h=new zc({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[u]});else if(s.test(this.currToken[1])){let c=f.replace(s,"");h=new jc({value:f.replace(c,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[u],unit:c})}else h=new(e&&e[0]==="("?Fc:io)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(l-1)}},sourceIndex:this.currToken[6]+o[u]}),h.type==="word"?(h.isHex=/^#(.+)/.test(f),h.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(h)}),this.position++}string(){let e=this.currToken,t=this.currToken[1],s=/^(\"|\')/,n=s.test(t),i="",o;n&&(i=t.match(s)[0],t=t.slice(1,t.length-1)),o=new Gc({value:t,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Y=d((xt,po)=>{"use strict";xt.__esModule=!0;var ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function sf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var nf=function r(e,t){if((typeof e>"u"?"undefined":ho(e))!=="object")return e;var s=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":ho(i);n==="parent"&&o==="object"?t&&(s[n]=t):i instanceof Array?s[n]=i.map(function(a){return r(a,s)}):s[n]=r(i,s)}return s},of=function(){function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sf(this,r);for(var t in e)this[t]=e[t];var s=e.spaces;s=s===void 0?{}:s;var n=s.before,i=n===void 0?"":n,o=s.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return r.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},r.prototype.replaceWith=function(){if(this.parent){for(var t in arguments)this.parent.insertBefore(this,arguments[t]);this.remove()}return this},r.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},r.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},r.prototype.clone=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=nf(this);for(var n in t)s[n]=t[n];return s},r.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},r}();xt.default=of;po.exports=xt.default});var E=d(C=>{"use strict";C.__esModule=!0;var Bw=C.TAG="tag",Ww=C.STRING="string",Uw=C.SELECTOR="selector",Fw=C.ROOT="root",jw=C.PSEUDO="pseudo",Vw=C.NESTING="nesting",Gw=C.ID="id",Qw=C.COMMENT="comment",Hw=C.COMBINATOR="combinator",Jw=C.CLASS="class",Yw=C.ATTRIBUTE="attribute",Kw=C.UNIVERSAL="universal"});var bt=d((vt,mo)=>{"use strict";vt.__esModule=!0;var af=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),uf=Y(),lf=hf(uf),cf=E(),D=ff(cf);function ff(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}function hf(r){return r&&r.__esModule?r:{default:r}}function pf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function df(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function mf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var wf=function(r){mf(e,r);function e(t){pf(this,e);var s=df(this,r.call(this,t));return s.nodes||(s.nodes=[]),s}return e.prototype.append=function(s){return s.parent=this,this.nodes.push(s),this},e.prototype.prepend=function(s){return s.parent=this,this.nodes.unshift(s),this},e.prototype.at=function(s){return this.nodes[s]},e.prototype.index=function(s){return typeof s=="number"?s:this.nodes.indexOf(s)},e.prototype.removeChild=function(s){s=this.index(s),this.at(s).parent=void 0,this.nodes.splice(s,1);var n=void 0;for(var i in this.indexes)n=this.indexes[i],n>=s&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,s=Array.isArray(i),n=0,i=s?i:i[Symbol.iterator]();;){var o;if(s){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(s,n){var i=this.index(s);this.nodes.splice(i+1,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(s,n){var i=this.index(s);this.nodes.splice(i,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(s){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]<this.length&&(i=this.indexes[n],o=s(this.at(i),i),o!==!1);)this.indexes[n]+=1;if(delete this.indexes[n],o===!1)return!1}},e.prototype.walk=function(s){return this.each(function(n,i){var o=s(n,i);if(o!==!1&&n.length&&(o=n.walk(s)),o===!1)return!1})},e.prototype.walkAttributes=function(s){var n=this;return this.walk(function(i){if(i.type===D.ATTRIBUTE)return s.call(n,i)})},e.prototype.walkClasses=function(s){var n=this;return this.walk(function(i){if(i.type===D.CLASS)return s.call(n,i)})},e.prototype.walkCombinators=function(s){var n=this;return this.walk(function(i){if(i.type===D.COMBINATOR)return s.call(n,i)})},e.prototype.walkComments=function(s){var n=this;return this.walk(function(i){if(i.type===D.COMMENT)return s.call(n,i)})},e.prototype.walkIds=function(s){var n=this;return this.walk(function(i){if(i.type===D.ID)return s.call(n,i)})},e.prototype.walkNesting=function(s){var n=this;return this.walk(function(i){if(i.type===D.NESTING)return s.call(n,i)})},e.prototype.walkPseudos=function(s){var n=this;return this.walk(function(i){if(i.type===D.PSEUDO)return s.call(n,i)})},e.prototype.walkTags=function(s){var n=this;return this.walk(function(i){if(i.type===D.TAG)return s.call(n,i)})},e.prototype.walkUniversals=function(s){var n=this;return this.walk(function(i){if(i.type===D.UNIVERSAL)return s.call(n,i)})},e.prototype.split=function(s){var n=this,i=[];return this.reduce(function(o,a,u){var l=s.call(n,a);return i.push(a),l?(o.push(i),i=[]):u===n.length-1&&o.push(i),o},[])},e.prototype.map=function(s){return this.nodes.map(s)},e.prototype.reduce=function(s,n){return this.nodes.reduce(s,n)},e.prototype.every=function(s){return this.nodes.every(s)},e.prototype.some=function(s){return this.nodes.some(s)},e.prototype.filter=function(s){return this.nodes.filter(s)},e.prototype.sort=function(s){return this.nodes.sort(s)},e.prototype.toString=function(){return this.map(String).join("")},af(e,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),e}(lf.default);vt.default=wf;mo.exports=vt.default});var yo=d((kt,wo)=>{"use strict";kt.__esModule=!0;var yf=bt(),gf=vf(yf),xf=E();function vf(r){return r&&r.__esModule?r:{default:r}}function bf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function kf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function _f(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Tf=function(r){_f(e,r);function e(t){bf(this,e);var s=kf(this,r.call(this,t));return s.type=xf.ROOT,s}return e.prototype.toString=function(){var s=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?s+",":s},e}(gf.default);kt.default=Tf;wo.exports=kt.default});var xo=d((_t,go)=>{"use strict";_t.__esModule=!0;var Sf=bt(),Of=Af(Sf),Ef=E();function Af(r){return r&&r.__esModule?r:{default:r}}function Cf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function qf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Rf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Pf=function(r){Rf(e,r);function e(t){Cf(this,e);var s=qf(this,r.call(this,t));return s.type=Ef.SELECTOR,s}return e}(Of.default);_t.default=Pf;go.exports=_t.default});var ue=d((Tt,vo)=>{"use strict";Tt.__esModule=!0;var If=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),Nf=Y(),Mf=Lf(Nf);function Lf(r){return r&&r.__esModule?r:{default:r}}function Df(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function $f(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function zf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Bf=function(r){zf(e,r);function e(){return Df(this,e),$f(this,r.apply(this,arguments))}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},If(e,[{key:"ns",get:function(){var s=this.namespace;return s?(typeof s=="string"?s:"")+"|":""}}]),e}(Mf.default);Tt.default=Bf;vo.exports=Tt.default});var ko=d((St,bo)=>{"use strict";St.__esModule=!0;var Wf=ue(),Uf=jf(Wf),Ff=E();function jf(r){return r&&r.__esModule?r:{default:r}}function Vf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Gf(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Qf(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Hf=function(r){Qf(e,r);function e(t){Vf(this,e);var s=Gf(this,r.call(this,t));return s.type=Ff.CLASS,s}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String("."+this.value),this.spaces.after].join("")},e}(Uf.default);St.default=Hf;bo.exports=St.default});var To=d((Ot,_o)=>{"use strict";Ot.__esModule=!0;var Jf=Y(),Yf=Xf(Jf),Kf=E();function Xf(r){return r&&r.__esModule?r:{default:r}}function Zf(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function eh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function th(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var rh=function(r){th(e,r);function e(t){Zf(this,e);var s=eh(this,r.call(this,t));return s.type=Kf.COMMENT,s}return e}(Yf.default);Ot.default=rh;_o.exports=Ot.default});var Oo=d((Et,So)=>{"use strict";Et.__esModule=!0;var sh=ue(),nh=oh(sh),ih=E();function oh(r){return r&&r.__esModule?r:{default:r}}function ah(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function uh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function lh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var ch=function(r){lh(e,r);function e(t){ah(this,e);var s=uh(this,r.call(this,t));return s.type=ih.ID,s}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String("#"+this.value),this.spaces.after].join("")},e}(nh.default);Et.default=ch;So.exports=Et.default});var Ao=d((At,Eo)=>{"use strict";At.__esModule=!0;var fh=ue(),hh=dh(fh),ph=E();function dh(r){return r&&r.__esModule?r:{default:r}}function mh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function wh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function yh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var gh=function(r){yh(e,r);function e(t){mh(this,e);var s=wh(this,r.call(this,t));return s.type=ph.TAG,s}return e}(hh.default);At.default=gh;Eo.exports=At.default});var qo=d((Ct,Co)=>{"use strict";Ct.__esModule=!0;var xh=Y(),vh=kh(xh),bh=E();function kh(r){return r&&r.__esModule?r:{default:r}}function _h(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Th(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Sh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Oh=function(r){Sh(e,r);function e(t){_h(this,e);var s=Th(this,r.call(this,t));return s.type=bh.STRING,s}return e}(vh.default);Ct.default=Oh;Co.exports=Ct.default});var Po=d((qt,Ro)=>{"use strict";qt.__esModule=!0;var Eh=bt(),Ah=qh(Eh),Ch=E();function qh(r){return r&&r.__esModule?r:{default:r}}function Rh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Ih(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Nh=function(r){Ih(e,r);function e(t){Rh(this,e);var s=Ph(this,r.call(this,t));return s.type=Ch.PSEUDO,s}return e.prototype.toString=function(){var s=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),s,this.spaces.after].join("")},e}(Ah.default);qt.default=Nh;Ro.exports=qt.default});var No=d((Rt,Io)=>{"use strict";Rt.__esModule=!0;var Mh=ue(),Lh=$h(Mh),Dh=E();function $h(r){return r&&r.__esModule?r:{default:r}}function zh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Bh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Wh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Uh=function(r){Wh(e,r);function e(t){zh(this,e);var s=Bh(this,r.call(this,t));return s.type=Dh.ATTRIBUTE,s.raws={},s}return e.prototype.toString=function(){var s=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&s.push(this.operator),this.value&&s.push(this.value),this.raws.insensitive?s.push(this.raws.insensitive):this.insensitive&&s.push(" i"),s.push("]"),s.concat(this.spaces.after).join("")},e}(Lh.default);Rt.default=Uh;Io.exports=Rt.default});var Lo=d((Pt,Mo)=>{"use strict";Pt.__esModule=!0;var Fh=ue(),jh=Gh(Fh),Vh=E();function Gh(r){return r&&r.__esModule?r:{default:r}}function Qh(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Hh(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Jh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var Yh=function(r){Jh(e,r);function e(t){Qh(this,e);var s=Hh(this,r.call(this,t));return s.type=Vh.UNIVERSAL,s.value="*",s}return e}(jh.default);Pt.default=Yh;Mo.exports=Pt.default});var $o=d((It,Do)=>{"use strict";It.__esModule=!0;var Kh=Y(),Xh=ep(Kh),Zh=E();function ep(r){return r&&r.__esModule?r:{default:r}}function tp(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function rp(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function sp(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var np=function(r){sp(e,r);function e(t){tp(this,e);var s=rp(this,r.call(this,t));return s.type=Zh.COMBINATOR,s}return e}(Xh.default);It.default=np;Do.exports=It.default});var Bo=d((Nt,zo)=>{"use strict";Nt.__esModule=!0;var ip=Y(),op=up(ip),ap=E();function up(r){return r&&r.__esModule?r:{default:r}}function lp(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function cp(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function fp(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var hp=function(r){fp(e,r);function e(t){lp(this,e);var s=cp(this,r.call(this,t));return s.type=ap.NESTING,s.value="&",s}return e}(op.default);Nt.default=hp;zo.exports=Nt.default});var Uo=d((Mt,Wo)=>{"use strict";Mt.__esModule=!0;Mt.default=pp;function pp(r){return r.sort(function(e,t){return e-t})}Wo.exports=Mt.default});var Ko=d(($t,Yo)=>{"use strict";$t.__esModule=!0;$t.default=Tp;var Fo=39,dp=34,Dr=92,jo=47,Ee=10,$r=32,zr=12,Br=9,Wr=13,Vo=43,Go=62,Qo=126,Ho=124,mp=44,wp=40,yp=41,gp=91,xp=93,vp=59,Jo=42,bp=58,kp=38,_p=64,Lt=/[ \n\t\r\{\(\)'"\\;/]/g,Dt=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function Tp(r){for(var e=[],t=r.css.valueOf(),s=void 0,n=void 0,i=void 0,o=void 0,a=void 0,u=void 0,l=void 0,f=void 0,h=void 0,c=void 0,y=void 0,g=t.length,p=-1,m=1,w=0,b=function(S,P){if(r.safe)t+=P,n=t.length-1;else throw r.error("Unclosed "+S,m,w-p,w)};w<g;){switch(s=t.charCodeAt(w),s===Ee&&(p=w,m+=1),s){case Ee:case $r:case Br:case Wr:case zr:n=w;do n+=1,s=t.charCodeAt(n),s===Ee&&(p=n,m+=1);while(s===$r||s===Ee||s===Br||s===Wr||s===zr);e.push(["space",t.slice(w,n),m,w-p,w]),w=n-1;break;case Vo:case Go:case Qo:case Ho:n=w;do n+=1,s=t.charCodeAt(n);while(s===Vo||s===Go||s===Qo||s===Ho);e.push(["combinator",t.slice(w,n),m,w-p,w]),w=n-1;break;case Jo:e.push(["*","*",m,w-p,w]);break;case kp:e.push(["&","&",m,w-p,w]);break;case mp:e.push([",",",",m,w-p,w]);break;case gp:e.push(["[","[",m,w-p,w]);break;case xp:e.push(["]","]",m,w-p,w]);break;case bp:e.push([":",":",m,w-p,w]);break;case vp:e.push([";",";",m,w-p,w]);break;case wp:e.push(["(","(",m,w-p,w]);break;case yp:e.push([")",")",m,w-p,w]);break;case Fo:case dp:i=s===Fo?"'":'"',n=w;do for(c=!1,n=t.indexOf(i,n+1),n===-1&&b("quote",i),y=n;t.charCodeAt(y-1)===Dr;)y-=1,c=!c;while(c);e.push(["string",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n;break;case _p:Lt.lastIndex=w+1,Lt.test(t),Lt.lastIndex===0?n=t.length-1:n=Lt.lastIndex-2,e.push(["at-word",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n;break;case Dr:for(n=w,l=!0;t.charCodeAt(n+1)===Dr;)n+=1,l=!l;s=t.charCodeAt(n+1),l&&s!==jo&&s!==$r&&s!==Ee&&s!==Br&&s!==Wr&&s!==zr&&(n+=1),e.push(["word",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n;break;default:s===jo&&t.charCodeAt(w+1)===Jo?(n=t.indexOf("*/",w+2)+1,n===0&&b("comment","*/"),u=t.slice(w,n+1),o=u.split(`
|
|
33
|
-
`),a=o.length-1,a>0?(f=m+a,h=n-o[a].length):(f=m,h=p),e.push(["comment",u,m,w-p,f,n-h,w]),p=h,m=f,w=n):(Dt.lastIndex=w+1,Dt.test(t),Dt.lastIndex===0?n=t.length-1:n=Dt.lastIndex-2,e.push(["word",t.slice(w,n+1),m,w-p,m,n-p,w]),w=n);break}w++}return e}Yo.exports=$t.default});var ea=d((zt,Zo)=>{"use strict";zt.__esModule=!0;var Sp=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),Op=Pr(),Ep=T(Op),Ap=Ir(),Ur=T(Ap),Cp=Nr(),qp=T(Cp),Rp=yo(),Pp=T(Rp),Ip=xo(),Fr=T(Ip),Np=ko(),Mp=T(Np),Lp=To(),Dp=T(Lp),$p=Oo(),zp=T($p),Bp=Ao(),Wp=T(Bp),Up=qo(),Fp=T(Up),jp=Po(),Vp=T(jp),Gp=No(),Qp=T(Gp),Hp=Lo(),Jp=T(Hp),Yp=$o(),Kp=T(Yp),Xp=Bo(),Zp=T(Xp),ed=Uo(),td=T(ed),rd=Ko(),Xo=T(rd),sd=E(),nd=id(sd);function id(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}function T(r){return r&&r.__esModule?r:{default:r}}function od(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var ad=function(){function r(e){od(this,r),this.input=e,this.lossy=e.options.lossless===!1,this.position=0,this.root=new Pp.default;var t=new Fr.default;return this.root.append(t),this.current=t,this.lossy?this.tokens=(0,Xo.default)({safe:e.safe,css:e.css.trim()}):this.tokens=(0,Xo.default)(e),this.loop()}return r.prototype.attribute=function(){var t="",s=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)t+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~t.indexOf("]")&&this.error("Expected a closing square bracket.");var i=t.split(/((?:[*~^$|]?=))([^]*)/),o=i[0].split(/(\|)/g),a={operator:i[1],value:i[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(o.length>1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),s=new Qp.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),l=u[0].trim();s.value=this.lossy?l:u[0],u[1]&&(s.insensitive=!0,this.lossy||(s.raws.insensitive=u[1])),s.quoted=l[0]==="'"||l[0]==='"',s.raws.unquoted=s.quoted?l.slice(1,-1):l}this.newNode(s),this.position++},r.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var t=new Kp.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(t.spaces.before=this.parseSpace(this.currToken[1]),t.source.start.line=this.nextToken[2],t.source.start.column=this.nextToken[3],t.source.end.column=this.nextToken[3],t.source.end.line=this.nextToken[2],t.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?t.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?t.value=this.currToken[1]:this.currToken[0]==="space"&&(t.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(t)},r.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var t=new Fr.default;this.current.parent.append(t),this.current=t,this.position++},r.prototype.comment=function(){var t=new Dp.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(t),this.position++},r.prototype.error=function(t){throw new this.input.error(t)},r.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},r.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},r.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},r.prototype.namespace=function(){var t=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(t);if(this.nextToken[0]==="*")return this.position++,this.universal(t)},r.prototype.nesting=function(){this.newNode(new Zp.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},r.prototype.parentheses=function(){var t=this.current.last;if(t&&t.type===nd.PSEUDO){var s=new Fr.default,n=this.current;t.append(s),this.current=s;var i=1;for(this.position++;this.position<this.tokens.length&&i;)this.currToken[0]==="("&&i++,this.currToken[0]===")"&&i--,i?this.parse():(s.parent.source.end.line=this.currToken[2],s.parent.source.end.column=this.currToken[3],this.position++);i&&this.error("Expected closing parenthesis."),this.current=n}else{var o=1;for(this.position++,t.value+="(";this.position<this.tokens.length&&o;)this.currToken[0]==="("&&o++,this.currToken[0]===")"&&o--,t.value+=this.parseParenthesisToken(this.currToken),this.position++;o&&this.error("Expected closing parenthesis.")}},r.prototype.pseudo=function(){for(var t=this,s="",n=this.currToken;this.currToken&&this.currToken[0]===":";)s+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var i=void 0;this.splitWord(!1,function(o,a){s+=o,i=new Vp.default({value:s,source:{start:{line:n[2],column:n[3]},end:{line:t.currToken[4],column:t.currToken[5]}},sourceIndex:n[4]}),t.newNode(i),a>1&&t.nextToken&&t.nextToken[0]==="("&&t.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},r.prototype.space=function(){var t=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(t[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(t[1]),this.position++):this.combinator()},r.prototype.string=function(){var t=this.currToken;this.newNode(new Fp.default({value:this.currToken[1],source:{start:{line:t[2],column:t[3]},end:{line:t[4],column:t[5]}},sourceIndex:t[6]})),this.position++},r.prototype.universal=function(t){var s=this.nextToken;if(s&&s[1]==="|")return this.position++,this.namespace();this.newNode(new Jp.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),t),this.position++},r.prototype.splitWord=function(t,s){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var l=(0,Ur.default)(o,"."),f=(0,Ur.default)(o,"#"),h=(0,Ur.default)(o,"#{");h.length&&(f=f.filter(function(y){return!~h.indexOf(y)}));var c=(0,td.default)((0,qp.default)((0,Ep.default)([[0],l,f])));c.forEach(function(y,g){var p=c[g+1]||o.length,m=o.slice(y,p);if(g===0&&s)return s.call(n,m,c.length);var w=void 0;~l.indexOf(y)?w=new Mp.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(p-1)}},sourceIndex:n.currToken[6]+c[g]}):~f.indexOf(y)?w=new zp.default({value:m.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(p-1)}},sourceIndex:n.currToken[6]+c[g]}):w=new Wp.default({value:m,source:{start:{line:n.currToken[2],column:n.currToken[3]+y},end:{line:n.currToken[4],column:n.currToken[3]+(p-1)}},sourceIndex:n.currToken[6]+c[g]}),n.newNode(w,t)}),this.position++},r.prototype.word=function(t){var s=this.nextToken;return s&&s[1]==="|"?(this.position++,this.namespace()):this.splitWord(t)},r.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},r.prototype.parse=function(t){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":t&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},r.prototype.parseNamespace=function(t){if(this.lossy&&typeof t=="string"){var s=t.trim();return s.length?s:!0}return t},r.prototype.parseSpace=function(t,s){return this.lossy?s||"":t},r.prototype.parseValue=function(t){return this.lossy&&t&&typeof t=="string"?t.trim():t},r.prototype.parseParenthesisToken=function(t){return this.lossy?t[0]==="space"?this.parseSpace(t[1]," "):this.parseValue(t[1]):t[1]},r.prototype.newNode=function(t,s){return s&&(t.namespace=this.parseNamespace(s)),this.spaces&&(t.spaces.before=this.spaces,this.spaces=""),this.current.append(t)},Sp(r,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),r}();zt.default=ad;Zo.exports=zt.default});var ra=d((Bt,ta)=>{"use strict";Bt.__esModule=!0;var ud=function(){function r(e,t){for(var s=0;s<t.length;s++){var n=t[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,s){return t&&r(e.prototype,t),s&&r(e,s),e}}(),ld=ea(),cd=fd(ld);function fd(r){return r&&r.__esModule?r:{default:r}}function hd(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var pd=function(){function r(e){return hd(this,r),this.func=e||function(){},this}return r.prototype.process=function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new cd.default({css:t,error:function(o){throw new Error(o)},options:s});return this.res=n,this.func(n),this},ud(r,[{key:"result",get:function(){return String(this.res)}}]),r}();Bt.default=pd;ta.exports=Bt.default});var Gr=d(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});function gd(r){this.after=r.after,this.before=r.before,this.type=r.type,this.value=r.value,this.sourceIndex=r.sourceIndex}Vr.default=gd});var Hr=d(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});var xd=Gr(),oa=vd(xd);function vd(r){return r&&r.__esModule?r:{default:r}}function Ae(r){var e=this;this.constructor(r),this.nodes=r.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(t){t.parent=e})}Ae.prototype=Object.create(oa.default.prototype);Ae.constructor=oa.default;Ae.prototype.walk=function(e,t){for(var s=typeof e=="string"||e instanceof RegExp,n=s?t:e,i=typeof e=="string"?new RegExp(e):e,o=0;o<this.nodes.length;o++){var a=this.nodes[o],u=s?i.test(a.type):!0;if(u&&n&&n(a,o,this.nodes)===!1||a.nodes&&a.walk(e,t)===!1)return!1}return!0};Ae.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],t=0;t<this.nodes.length;t++){var s=this.nodes[t];if(e(s,t,this.nodes)===!1)return!1}return!0};Qr.default=Ae});var ca=d(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.parseMediaFeature=la;Ce.parseMediaQuery=Yr;Ce.parseMediaList=_d;var bd=Gr(),aa=ua(bd),kd=Hr(),Jr=ua(kd);function ua(r){return r&&r.__esModule?r:{default:r}}function la(r){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],s=[],n=0,i="",o=null,a=null,u=e,l=r;r[0]==="("&&r[r.length-1]===")"&&(l=r.substring(1,r.length-1),u++);for(var f=0;f<l.length;f++){var h=l[f];if((h==="'"||h==='"')&&(t[n].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:h}),n++):t[n].mode==="string"&&t[n].character===h&&l[f-1]!=="\\"&&(t.pop(),n--)),h==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),n++):h==="}"&&(t.pop(),n--),t[n].mode==="normal"&&h===":"){var c=l.substring(f+1);a={type:"value",before:/^(\s*)/.exec(c)[1],after:/(\s*)$/.exec(c)[1],value:c.trim()},a.sourceIndex=a.before.length+f+1+u,o={type:"colon",sourceIndex:f+u,after:a.before,value:":"};break}i+=h}return i={type:"media-feature",before:/^(\s*)/.exec(i)[1],after:/(\s*)$/.exec(i)[1],value:i.trim()},i.sourceIndex=i.before.length+u,s.push(i),o!==null&&(o.before=i.after,s.push(o)),a!==null&&s.push(a),s}function Yr(r){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],s=0,n=!1,i=void 0;function o(){return{before:"",after:"",value:""}}i=o();for(var a=0;a<r.length;a++){var u=r[a];n?(i.value+=u,(u==="{"||u==="(")&&s++,(u===")"||u==="}")&&s--):u.search(/\s/)!==-1?i.before+=u:(u==="("&&(i.type="media-feature-expression",s++),i.value=u,i.sourceIndex=e+a,n=!0),n&&s===0&&(u===")"||a===r.length-1||r[a+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(i.value)!==-1&&(i.type="keyword"),i.type==="media-feature-expression"&&(i.nodes=la(i.value,i.sourceIndex)),t.push(Array.isArray(i.nodes)?new Jr.default(i):new aa.default(i)),i=o(),n=!1)}for(var l=0;l<t.length;l++)if(i=t[l],l>0&&(t[l-1].after=i.before),i.type===void 0){if(l>0){if(t[l-1].type==="media-feature-expression"){i.type="keyword";continue}if(t[l-1].value==="not"||t[l-1].value==="only"){i.type="media-type";continue}if(t[l-1].value==="and"){i.type="media-feature-expression";continue}t[l-1].type==="media-type"&&(t[l+1]?i.type=t[l+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(l===0){if(!t[l+1]){i.type="media-type";continue}if(t[l+1]&&(t[l+1].type==="media-feature-expression"||t[l+1].type==="keyword")){i.type="media-type";continue}if(t[l+2]){if(t[l+2].type==="media-feature-expression"){i.type="media-type",t[l+1].type="keyword";continue}if(t[l+2].type==="keyword"){i.type="keyword",t[l+1].type="media-type";continue}}if(t[l+3]&&t[l+3].type==="media-feature-expression"){i.type="keyword",t[l+1].type="media-type",t[l+2].type="keyword";continue}}}return t}function _d(r){var e=[],t=0,s=0,n=/^(\s*)url\s*\(/.exec(r);if(n!==null){for(var i=n[0].length,o=1;o>0;){var a=r[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new aa.default({type:"url",value:r.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(r.substring(i))[1]})),t=i}for(var u=t;u<r.length;u++){var l=r[u];if(l==="("&&s++,l===")"&&s--,s===0&&l===","){var f=r.substring(t,u),h=/^(\s*)/.exec(f)[1];e.push(new Jr.default({type:"media-query",value:f.trim(),sourceIndex:t+h.length,nodes:Yr(f,t),before:h,after:/(\s*)$/.exec(f)[1]})),t=u+1}}var c=r.substring(t),y=/^(\s*)/.exec(c)[1];return e.push(new Jr.default({type:"media-query",value:c.trim(),sourceIndex:t+y.length,nodes:Yr(c,t),before:y,after:/(\s*)$/.exec(c)[1]})),e}});var fa=d(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.default=Ad;var Td=Hr(),Sd=Ed(Td),Od=ca();function Ed(r){return r&&r.__esModule?r:{default:r}}function Ad(r){return new Sd.default({nodes:(0,Od.parseMediaList)(r),type:"media-query-list",value:r.trim()})}});var Ea=(r,e,t,s)=>{if(!(r&&e==null))return e.replaceAll?e.replaceAll(t,s):t.global?e.replace(t,s):e.split(t).join(s)},V=Ea;var da=j(ge(),1),ma=j(fn(),1),wa=j(Hn(),1);function Cl(r,e){let t=new SyntaxError(r+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(t,e)}var Jn=Cl;var ql=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Rl(r){let e=r.match(ql);if(!e)return{content:r};let{startDelimiter:t,language:s,value:n="",endDelimiter:i}=e.groups,o=s.trim()||"yaml";if(t==="+++"&&(o="toml"),o!=="yaml"&&t!==i)return{content:r};let[a]=e;return{frontMatter:{type:"front-matter",lang:o,value:n,startDelimiter:t,endDelimiter:i,raw:a.replace(/\n$/,"")},content:V(!1,a,/[^\n]/g," ")+r.slice(a.length)}}var rt=Rl;var ie=j(ri(),1);function Wl(r){if(!r.startsWith("#!"))return"";let e=r.indexOf(`
|
|
34
|
-
`)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
`||a==="\r")return r;continue;case"url":if(a===")"&&(e="initial"),a===`
|
|
38
|
-
`||a==="\r")return r;if(a==="'"){e="single-quotes",t="url";continue}if(a==='"'){e="double-quotes",t="url";continue}continue;case"comment-block":a==="/"&&r[o-1]==="*"&&(e="initial");continue;case"comment-inline":(a==='"'||a==="'"||a==="*")&&(n=!0),(a===`
|
|
39
|
-
`||a==="\r")&&(n&&i.push([s,o]),e="initial",n=!1);continue}}for(let[o,a]of i)r=r.slice(0,o)+V(!1,r.slice(o,a),/["'*]/g," ")+r.slice(a);return r}function ci(r){return r.source.startOffset}function fi(r){return r.source.endOffset}function Ql(r,e){return e.parser!=="scss"||!r.selector?!1:r.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var hi=Ql;var Hl=new Set(["import","use","forward"]);function Jl(r){return Hl.has(r)}var pi=Jl;var na=j(ao(),1);function ef(r){if(nt(r)){for(let e=r.length-1;e>0;e--)if(r[e].type==="word"&&r[e].value==="{"&&r[e-1].type==="word"&&r[e-1].value.endsWith("#"))return!0}return!1}var uo=ef;function tf(r){return r.some(e=>e.type==="string"||e.type==="func")}var lo=tf;function rf(r,e){return Boolean(e.parser==="scss"&&(r==null?void 0:r.type)==="word"&&r.value.startsWith("$"))}var co=rf;function Lr(r){var u,l,f,h,c,y;if(r.groups){let g=((u=r.open)==null?void 0:u.value)||"",p=r.groups.map(w=>Lr(w)).join(((l=r.groups[0])==null?void 0:l.type)==="comma_group"?",":""),m=((f=r.close)==null?void 0:f.value)||"";return g+p+m}let e=((h=r.raws)==null?void 0:h.before)||"",t=((c=r.raws)==null?void 0:c.quote)||"",s=r.type==="atword"?"@":"",n=r.value||"",i=r.unit||"",o=r.group?Lr(r.group):"",a=((y=r.raws)==null?void 0:y.after)||"";return e+t+s+n+t+i+o+a}var fo=Lr;var sa=j(ra(),1);function $(r,e,t){if(r&&typeof r=="object"){delete r.parent;for(let s in r)$(r[s],e,t),s==="type"&&typeof r[s]=="string"&&!r[s].startsWith(e)&&(!t||!t.test(r[s]))&&(r[s]=e+r[s])}return r}function jr(r){if(r&&typeof r=="object"){delete r.parent;for(let e in r)jr(r[e]);!Array.isArray(r)&&r.value&&!r.type&&(r.type="unknown")}return r}function dd(r){if(/\/\/|\/\*/.test(r))return{type:"selector-unknown",value:r.trim()};let e;try{new sa.default(t=>{e=t}).process(r)}catch{return{type:"selector-unknown",value:r}}return $(e,"selector-")}var z=dd;var md=r=>{for(;r.parent;)r=r.parent;return r};function wd(r,e){var u;let{nodes:t}=r,s={open:null,close:null,groups:[],type:"paren_group"},n=[s],i=s,o={groups:[],type:"comma_group"},a=[o];for(let l=0;l<t.length;++l){let f=t[l];if(e.parser==="scss"&&f.type==="number"&&f.unit===".."&&f.value.endsWith(".")&&(f.value=f.value.slice(0,-1),f.unit="..."),f.type==="func"&&f.value==="selector"&&(f.group.groups=[z(md(r).text.slice(f.group.open.sourceIndex+1,f.group.close.sourceIndex))]),f.type==="func"&&f.value==="url"){let h=((u=f.group)==null?void 0:u.groups)??[],c=[];for(let y=0;y<h.length;y++){let g=h[y];g.type==="comma_group"?c=[...c,...g.groups]:c.push(g)}if(uo(c)||!lo(c)&&!co(c[0],e)){let y=fo({groups:f.group.groups});f.group.groups=[y.trim()]}}if(f.type==="paren"&&f.value==="(")s={open:f,close:null,groups:[],type:"paren_group"},n.push(s),o={groups:[],type:"comma_group"},a.push(o);else if(f.type==="paren"&&f.value===")"){if(o.groups.length>0&&s.groups.push(o),s.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=Se(!1,a,-1),o.groups.push(s),n.pop(),s=Se(!1,n,-1)}else f.type==="comma"?(s.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&s.groups.push(o),i}function Wt(r){return r.type==="paren_group"&&!r.open&&!r.close&&r.groups.length===1||r.type==="comma_group"&&r.groups.length===1?Wt(r.groups[0]):r.type==="paren_group"||r.type==="comma_group"?{...r,groups:r.groups.map(Wt)}:r}function ia(r,e){if(r&&typeof r=="object"){for(let t in r)t!=="parent"&&(ia(r[t],e),t==="nodes"&&(r.group=Wt(wd(r,e)),delete r[t]));delete r.parent}return r}function yd(r,e){if(e.parser==="less"&&r.startsWith("~`"))return{type:"value-unknown",value:r};let t=null;try{t=new na.default(r,{loose:!0}).parse()}catch{return{type:"value-unknown",value:r}}t.text=r;let s=ia(t,e);return $(s,"value-",/^selector-/)}var U=yd;var ha=j(fa(),1);var Cd=ha.default.default;function qd(r){let e;try{e=Cd(r)}catch{return{type:"selector-unknown",value:r}}return $(jr(e),"media-")}var pa=qd;var Rd=/(\s*)(!default).*$/,Pd=/(\s*)(!global).*$/;function ya(r,e){var t,s;if(r&&typeof r=="object"){delete r.parent;for(let a in r)ya(r[a],e);if(!r.type)return r;if(r.raws??(r.raws={}),r.type==="css-decl"&&typeof r.prop=="string"&&r.prop.startsWith("--")&&typeof r.value=="string"&&r.value.startsWith("{")){let a;if(r.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,r.source.start.offset),l="a".repeat(r.prop.length)+e.originalText.slice(r.source.start.offset+r.prop.length,r.source.end.offset+1),f=V(!1,u,/[^\n]/g," ")+l,h;e.parser==="scss"?h=va:e.parser==="less"?h=xa:h=ga;let c;try{c=h(f,{...e})}catch{}((t=c==null?void 0:c.nodes)==null?void 0:t.length)===1&&c.nodes[0].type==="css-rule"&&(a=c.nodes[0].nodes)}return a?r.value={type:"css-rule",nodes:a}:r.value={type:"value-unknown",value:r.raws.value.raw},r}let n="";typeof r.selector=="string"&&(n=r.raws.selector?r.raws.selector.scss??r.raws.selector.raw:r.selector,r.raws.between&&r.raws.between.trim().length>0&&(n+=r.raws.between),r.raws.selector=n);let i="";typeof r.value=="string"&&(i=r.raws.value?r.raws.value.scss??r.raws.value.raw:r.value,i=i.trim(),r.raws.value=i);let o="";if(typeof r.params=="string"&&(o=r.raws.params?r.raws.params.scss??r.raws.params.raw:r.params,r.raws.afterName&&r.raws.afterName.trim().length>0&&(o=r.raws.afterName+o),r.raws.between&&r.raws.between.trim().length>0&&(o=o+r.raws.between),o=o.trim(),r.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?r:r.mixin?(r.selector=U(n,e),r):(hi(r,e)&&(r.isSCSSNesterProperty=!0),r.selector=z(n),r);if(i.length>0){let a=i.match(Rd);a&&(i=i.slice(0,a.index),r.scssDefault=!0,a[0].trim()!=="!default"&&(r.raws.scssDefault=a[0]));let u=i.match(Pd);if(u&&(i=i.slice(0,u.index),r.scssGlobal=!0,u[0].trim()!=="!global"&&(r.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};r.value=U(i,e)}if(e.parser==="less"&&r.type==="css-decl"&&i.startsWith("extend(")&&(r.extend||(r.extend=r.raws.between===":"),r.extend&&!r.selector&&(delete r.value,r.selector=z(i.slice(7,-1)))),r.type==="css-atrule"){if(e.parser==="less"){if(r.mixin){let a=r.raws.identifier+r.name+r.raws.afterName+r.raws.params;return r.selector=z(a),delete r.params,r}if(r.function)return r}if(e.parser==="css"&&r.name==="custom-selector"){let a=r.params.match(/:--\S+\s+/)[0].trim();return r.customSelector=a,r.selector=z(r.params.slice(a.length).trim()),delete r.params,r}if(e.parser==="less"){if(r.name.includes(":")&&!r.params){r.variable=!0;let a=r.name.split(":");r.name=a[0],r.value=U(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(r.name)&&((s=r.params)==null?void 0:s[0])===":"){r.variable=!0;let a=r.params.slice(1);a&&(r.value=U(a,e)),r.raws.afterName+=":"}if(r.variable)return delete r.params,r.value||delete r.value,r}}if(r.type==="css-atrule"&&o.length>0){let{name:a}=r,u=r.name.toLowerCase();return a==="warn"||a==="error"?(r.params={type:"media-unknown",value:o},r):a==="extend"||a==="nest"?(r.selector=z(o),delete r.params,r):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(o)?r.params=U(o,e):(r.selector=z(o),delete r.params),r):pi(u)?(r.import=!0,delete r.filename,r.params=U(o,e),r):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),r.value=U(o,e),delete r.params,r):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(r.params=pa(o),r):(r.params=o,r)}}return r}function Zr(r,e,t){let s=rt(e),{frontMatter:n}=s;e=s.content;let i;try{i=r(e,{map:!1})}catch(o){let{name:a,reason:u,line:l,column:f}=o;throw typeof l!="number"?o:Jn(`${a}: ${u}`,{loc:{start:{line:l,column:f}},cause:o})}return t.originalText=e,i=ya($(i,"css-"),t),_r(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function ga(r,e={}){return Zr(da.default.default,r,e)}function xa(r,e={}){return Zr(t=>ma.default.parse(li(t)),r,e)}function va(r,e={}){return Zr(wa.default,r,e)}var Xr={astFormat:"postcss",hasPragma:ii,locStart:ci,locEnd:fi},Id={parsers:{css:{...Xr,parse:ga},less:{...Xr,parse:xa},scss:{...Xr,parse:va}}},Ey=Id;export{Ey as default};
|
|
26
|
+
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function Tf(t){return t[0].toUpperCase()+t.slice(1)}var ft=class{constructor(e){this.builder=e}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+s+e.text+r+"*/",e)}decl(e,s){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),s&&(n+=";"),this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}body(e){let s=e.nodes.length-1;for(;s>0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,s!==n||r)}}block(e,s){let r=this.raw(e,"between","beforeOpen");this.builder(s+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,s,r){let n;if(r||(r=s),s&&(n=e.raws[s],typeof n<"u"))return n;let i=e.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return lo[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+Tf(r);this[a]?n=this[a](o,e):o.walk(u=>{if(n=u.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=lo[r]),o.rawCache[r]=n,n}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
|
|
27
|
+
`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
28
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
29
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(`
|
|
30
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(`
|
|
31
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(`
|
|
32
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<i;a++)r+=o}return r}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}};co.exports=ft;ft.default=ft});var pt=y((Zx,fo)=>{"use strict";var Ef=Xt();function Os(t,e){new Ef(e).stringify(t)}fo.exports=Os;Os.default=Os});var dt=y((eb,po)=>{"use strict";var{isClean:Zt,my:Sf}=jt(),Cf=Jt(),Of=Xt(),Af=pt();function As(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>As(o,s)):(i==="object"&&n!==null&&(n=As(n)),s[r]=n)}return s}var ht=class{constructor(e={}){this.raws={},this[Zt]=!1,this[Sf]=!0;for(let s in e)if(s==="nodes"){this.nodes=[];for(let r of e[s])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[s]=e[s]}error(e,s={}){if(this.source){let{start:r,end:n}=this.rangeBy(s);return this.source.input.error(e,{line:r.line,column:r.column},{line:n.line,column:n.column},s)}return new Cf(e)}warn(e,s,r){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Af){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}assign(e={}){for(let s in e)this[s]=e[s];return this}clone(e={}){let s=As(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e={}){let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e={}){let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(...e){if(this.parent){let s=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(s,n),s=n):this.parent.insertBefore(s,n);r||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,s){return new Of().raw(this,e,s)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,s){let r={},n=s==null;s=s||new Map;let i=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,s):u);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,s);else if(o==="source"){let u=s.get(a.input);u==null&&(u=i,s.set(a.input,i),i++),r[o]={inputId:u,start:a.start,end:a.end}}else r[o]=a}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)s[i]===`
|
|
33
|
+
`?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r=this.toString().indexOf(e.word);r!==-1&&(s=this.positionInside(r))}return s}rangeBy(e){let s={line:this.source.start.line,column:this.source.start.column},r=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:s.line,column:s.column+1};if(e.word){let n=this.toString().indexOf(e.word);n!==-1&&(s=this.positionInside(n),r=this.positionInside(n+e.word.length))}else e.start?s={line:e.start.line,column:e.start.column}:e.index&&(s=this.positionInside(e.index)),e.end?r={line:e.end.line,column:e.end.column}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={line:s.line,column:s.column+1}),{start:s,end:r}}getProxyProcessor(){return{set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0},get(e,s){return s==="proxyOf"?e:s==="root"?()=>e.root().toProxy():e[s]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let s=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return e}markDirty(){if(this[Zt]){this[Zt]=!1;let e=this;for(;e=e.parent;)e[Zt]=!1}}get proxyOf(){return this}};po.exports=ht;ht.default=ht});var yt=y((tb,ho)=>{"use strict";var Nf=dt(),mt=class extends Nf{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};ho.exports=mt;mt.default=mt});var qe=y((rb,mo)=>{"use strict";var Pf=dt(),gt=class extends Pf{constructor(e){super(e),this.type="comment"}};mo.exports=gt;gt.default=gt});var ae=y((sb,To)=>{"use strict";var{isClean:yo,my:go}=jt(),wo=yt(),vo=qe(),Rf=dt(),xo,Ns,Ps,bo;function ko(t){return t.map(e=>(e.nodes&&(e.nodes=ko(e.nodes)),delete e.source,e))}function _o(t){if(t[yo]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)_o(e)}var U=class extends Rf{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]<this.proxyOf.nodes.length&&(r=this.indexes[s],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}walk(e){return this.each((s,r)=>{let n;try{n=e(s,r)}catch(i){throw s.addToError(i)}return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkDecls(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return s(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="decl")return s(r,n)}))}walkRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return s(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="rule")return s(r,n)}))}walkAtRules(e,s){return s?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return s(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return s(r,n)}):(s=e,this.walk((r,n)=>{if(r.type==="atrule")return s(r,n)}))}walkComments(e){return this.walk((s,r)=>{if(s.type==="comment")return e(s,r)})}append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let s of e){let r=this.normalize(s,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertBefore(e,s){let r=this.index(e),n=r===0?"prepend":!1,i=this.normalize(s,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+i.length);return this.markDirty(),this}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r<i&&(this.indexes[o]=i+n.length);return this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,s,r){return r||(r=s,s={}),this.walkDecls(n=>{s.props&&!s.props.includes(n.prop)||s.fast&&!n.value.includes(s.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,s){if(typeof e=="string")e=ko(xo(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new wo(e)]}else if(e.selector)e=[new Ns(e)];else if(e.name)e=[new Ps(e)];else if(e.text)e=[new vo(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[go]||U.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[yo]&&_o(n),typeof n.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(n.raws.before=s.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}getProxyProcessor(){return{set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0},get(e,s){return s==="proxyOf"?e:e[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?(...r)=>e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}};U.registerParse=t=>{xo=t};U.registerRule=t=>{Ns=t};U.registerAtRule=t=>{Ps=t};U.registerRoot=t=>{bo=t};To.exports=U;U.default=U;U.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ps.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ns.prototype):t.type==="decl"?Object.setPrototypeOf(t,wo.prototype):t.type==="comment"?Object.setPrototypeOf(t,vo.prototype):t.type==="root"&&Object.setPrototypeOf(t,bo.prototype),t[go]=!0,t.nodes&&t.nodes.forEach(e=>{U.rebuild(e)})}});var ar=y((nb,Oo)=>{"use strict";var Rs="'".charCodeAt(0),Eo='"'.charCodeAt(0),er="\\".charCodeAt(0),So="/".charCodeAt(0),tr=`
|
|
34
|
+
`.charCodeAt(0),wt=" ".charCodeAt(0),rr="\f".charCodeAt(0),sr=" ".charCodeAt(0),nr="\r".charCodeAt(0),If="[".charCodeAt(0),qf="]".charCodeAt(0),Df="(".charCodeAt(0),Lf=")".charCodeAt(0),Mf="{".charCodeAt(0),Bf="}".charCodeAt(0),Ff=";".charCodeAt(0),$f="*".charCodeAt(0),Uf=":".charCodeAt(0),Wf="@".charCodeAt(0),ir=/[\t\n\f\r "#'()/;[\\\]{}]/g,or=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,zf=/.[\n"'(/\\]/,Co=/[\da-f]/i;Oo.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,g,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(z){throw e.error("Unclosed "+z,d)}function P(){return b.length===0&&d>=h}function W(z){if(b.length)return b.pop();if(d>=h)return;let C=z?z.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case tr:case wt:case sr:case nr:case rr:{o=d;do o+=1,i=r.charCodeAt(o);while(i===wt||i===tr||i===sr||i===nr||i===rr);x=["space",r.slice(d,o)],d=o-1;break}case If:case qf:case Mf:case Bf:case Uf:case Ff:case Lf:{let O=String.fromCharCode(i);x=[O,O,d];break}case Df:{if(l=m.length?m.pop()[1]:"",g=r.charCodeAt(d+1),l==="url"&&g!==Rs&&g!==Eo&&g!==wt&&g!==tr&&g!==sr&&g!==rr&&g!==nr){o=d;do{if(f=!1,o=r.indexOf(")",o+1),o===-1)if(n||C){o=d;break}else v("bracket");for(p=o;r.charCodeAt(p-1)===er;)p-=1,f=!f}while(f);x=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),u=r.slice(d,o+1),o===-1||zf.test(u)?x=["(","(",d]:(x=["brackets",u,d,o],d=o);break}case Rs:case Eo:{a=i===Rs?"'":'"',o=d;do{if(f=!1,o=r.indexOf(a,o+1),o===-1)if(n||C){o=d+1;break}else v("string");for(p=o;r.charCodeAt(p-1)===er;)p-=1,f=!f}while(f);x=["string",r.slice(d,o+1),d,o],d=o;break}case Wf:{ir.lastIndex=d+1,ir.test(r),ir.lastIndex===0?o=r.length-1:o=ir.lastIndex-2,x=["at-word",r.slice(d,o+1),d,o],d=o;break}case er:{for(o=d,c=!0;r.charCodeAt(o+1)===er;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==So&&i!==wt&&i!==tr&&i!==sr&&i!==nr&&i!==rr&&(o+=1,Co.test(r.charAt(o)))){for(;Co.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===wt&&(o+=1)}x=["word",r.slice(d,o+1),d,o],d=o;break}default:{i===So&&r.charCodeAt(d+1)===$f?(o=r.indexOf("*/",d+2)+1,o===0&&(n||C?o=r.length:v("comment")),x=["comment",r.slice(d,o+1),d,o],d=o):(or.lastIndex=d+1,or.test(r),or.lastIndex===0?o=r.length-1:o=or.lastIndex-2,x=["word",r.slice(d,o+1),d,o],m.push(x),d=o);break}}return d++,x}function j(z){b.push(z)}return{back:j,nextToken:W,endOfFile:P,position:w}}});var ur=y((ib,No)=>{"use strict";var Ao=ae(),De=class extends Ao{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};No.exports=De;De.default=De;Ao.registerAtRule(De)});var Le=y((ob,qo)=>{"use strict";var Po=ae(),Ro,Io,ue=class extends Po{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}toResult(e={}){return new Ro(new Io,this,e).stringify()}};ue.registerLazyResult=t=>{Ro=t};ue.registerProcessor=t=>{Io=t};qo.exports=ue;ue.default=ue;Po.registerRoot(ue)});var Is=y((ab,Do)=>{"use strict";var vt={split(t,e,s){let r=[],n="",i=!1,o=0,a=!1,u="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:a?f===u&&(a=!1):f==='"'||f==="'"?(a=!0,u=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r},space(t){let e=[" ",`
|
|
35
|
+
`," "];return vt.split(t,e)},comma(t){return vt.split(t,[","],!0)}};Do.exports=vt;vt.default=vt});var lr=y((ub,Mo)=>{"use strict";var Lo=ae(),Vf=Is(),Me=class extends Lo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Vf.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};Mo.exports=Me;Me.default=Me;Lo.registerRule(Me)});var cr=y((lb,$o)=>{"use strict";var Yf=yt(),Gf=ar(),Kf=qe(),Hf=ur(),Qf=Le(),Bo=lr(),Fo={empty:!0,space:!0};function jf(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var qs=class{constructor(e){this.input=e,this.root=new Qf,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Gf(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let s=new Kf;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}emptyRule(e){let s=new Bo;this.init(s,e[2]),s.selector="",s.raws.between="",this.current=s}other(e){let s=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),u=[],c=e;for(;c;){if(r=c[0],u.push(c),r==="("||r==="[")i||(i=c),o.push(r==="("?")":"]");else if(a&&n&&r==="{")i||(i=c),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(u,a);return}else break;else if(r==="{"){this.rule(u);return}else if(r==="}"){this.tokenizer.back(u.pop()),s=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(s=!0),o.length>0&&this.unclosedBracket(i),s&&n){if(!a)for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}rule(e){e.pop();let s=new Bo;this.init(s,e[0][2]),s.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(s,"selector",e),this.current=s}decl(e,s){let r=new Yf;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||jf(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(i=e[c],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,c);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let l=c;l>0;l--){let g=f[l][0];if(p.trim().indexOf("!")===0&&g!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),s),r.value.includes(":")&&!s&&this.checkMissedSemicolon(e)}atrule(e){let s=new Hf;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,a=!1,u=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(u.length>0){for(i=u.length-1,n=u[i];n&&n[0]==="space";)n=u[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(s.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(s,"params",u),o&&(e=u[u.length-1],s.source.end=this.getPosition(e[3]||e[2]),this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),a&&(s.nodes=[],this.current=s)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let s=this.current.nodes[this.current.nodes.length-1];s&&s.type==="rule"&&!s.raws.ownSemicolon&&(s.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let s=this.input.fromOffset(e);return{offset:e,line:s.line,column:s.col}}init(e,s){this.current.push(e),e.source={start:this.getPosition(s),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,s,r,n){let i,o,a=r.length,u="",c=!0,f,p;for(let l=0;l<a;l+=1)i=r[l],o=i[0],o==="space"&&l===a-1&&!n?c=!1:o==="comment"?(p=r[l-1]?r[l-1][0]:"empty",f=r[l+1]?r[l+1][0]:"empty",!Fo[p]&&!Fo[f]?u.slice(-1)===","?c=!1:u+=i[1]:c=!1):u+=i[1];if(!c){let l=r.reduce((g,x)=>g+x[1],"");e.raws[s]={value:u,raw:l}}e[s]=u}spacesAndCommentsFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],!(s!=="space"&&s!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let s,r="";for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let s,r="";for(;e.length&&(s=e[e.length-1][0],s==="space");)r=e.pop()[1]+r;return r}stringFrom(e,s){let r="";for(let n=s;n<e.length;n++)r+=e[n][1];return e.splice(s,e.length-s),r}colon(e){let s=0,r,n,i;for(let[o,a]of e.entries()){if(r=a,n=r[0],n==="("&&(s+=1),n===")"&&(s-=1),s===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,s){throw this.input.error("At-rule without name",{offset:s[2]},{offset:s[2]+s[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}};$o.exports=qs});var Uo=y(()=>{});var zo=y((pb,Wo)=>{var Jf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xf=(t,e=21)=>(s=e)=>{let r="",n=s;for(;n--;)r+=t[Math.random()*t.length|0];return r},Zf=(t=21)=>{let e="",s=t;for(;s--;)e+=Jf[Math.random()*64|0];return e};Wo.exports={nanoid:Zf,customAlphabet:Xf}});var Ds=y((hb,Vo)=>{Vo.exports=class{}});var Fe=y((mb,Ho)=>{"use strict";var{SourceMapConsumer:ep,SourceMapGenerator:tp}=Uo(),{fileURLToPath:Yo,pathToFileURL:fr}={},{resolve:Bs,isAbsolute:Fs}={},{nanoid:rp}=zo(),Ls=Cs(),Go=Jt(),sp=Ds(),Ms=Symbol("fromOffsetCache"),np=!!(ep&&tp),Ko=!!(Bs&&Fs),Be=class{constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,s.from&&(!Ko||/^\w+:\/\//.test(s.from)||Fs(s.from)?this.file=s.from:this.file=Bs(s.from)),Ko&&np){let r=new sp(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+rp(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let s,r;if(this[Ms])r=this[Ms];else{let i=this.css.split(`
|
|
36
|
+
`);r=new Array(i.length);let o=0;for(let a=0,u=i.length;a<u;a++)r[a]=o,o+=i[a].length+1;this[Ms]=r}s=r[r.length-1];let n=0;if(e>=s)n=r.length-1;else{let i=r.length-2,o;for(;n<i;)if(o=n+(i-n>>1),e<r[o])i=o-1;else if(e>=r[o+1])n=o+1;else{n=o;break}}return{line:n+1,col:e-r[n]+1}}error(e,s,r,n={}){let i,o,a;if(s&&typeof s=="object"){let c=s,f=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,r=p.col}else s=c.line,r=c.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);o=p.line,a=p.col}else o=f.line,a=f.column}else if(!r){let c=this.fromOffset(s);s=c.line,r=c.col}let u=this.origin(s,r,o,a);return u?i=new Go(e,u.endLine===void 0?u.line:{line:u.line,column:u.column},u.endLine===void 0?u.column:{line:u.endLine,column:u.endColumn},u.source,u.file,n.plugin):i=new Go(e,o===void 0?s:{line:s,column:r},o===void 0?r:{line:o,column:a},this.css,this.file,n.plugin),i.input={line:s,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(fr&&(i.input.url=fr(this.file).toString()),i.input.file=this.file),i}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({line:e,column:s});if(!o.source)return!1;let a;typeof r=="number"&&(a=i.originalPositionFor({line:r,column:n}));let u;Fs(o.source)?u=fr(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||fr(this.map.mapFile));let c={url:u.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(u.protocol==="file:")if(Yo)c.file=Yo(u);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Bs(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Ho.exports=Be;Be.default=Be;Ls&&Ls.registerInput&&Ls.registerInput(Be)});var xt=y((yb,Qo)=>{"use strict";var ip=ae(),op=cr(),ap=Fe();function pr(t,e){let s=new ap(t,e),r=new op(s);try{r.parse()}catch(n){throw n}return r.root}Qo.exports=pr;pr.default=pr;ip.registerParse(pr)});var jo=y((gb,$s)=>{var up=ar(),lp=Fe();$s.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,s=[],r,n;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){s.push(t[1].substring(0,t[1].indexOf(`
|
|
37
|
+
`))),n=t[1].substring(t[1].indexOf(`
|
|
38
|
+
`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new lp(n),this.tokenizer=up(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),$s.exports.isInlineComment.bind(this)(t)}return!1}}});var Xo=y((wb,Jo)=>{Jo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(a=>a[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var ea=y((vb,Zo)=>{var cp=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,fp=/\.[0-9]/,pp=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&cp.test(e)===!1&&fp.test(e)===!1};Zo.exports={isMixinToken:pp}});var ra=y((xb,ta)=>{var hp=ar(),dp=/^url\((.+)\)/;ta.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=hp({css:s});for(t.filename=s.replace(dp,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var oa=y((bb,ia)=>{var sa=/:$/,na=/^:(\s+)?/;ia.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(sa.test(e)){let[r]=e.match(sa);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(na.test(s)){let[r]=s.match(na);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var la=y((_b,ua)=>{var mp=qe(),yp=cr(),{isInlineComment:gp}=jo(),{interpolation:aa}=Xo(),{isMixinToken:wp}=ea(),vp=ra(),xp=oa(),bp=/(!\s*important)$/i;ua.exports=class extends yp{constructor(...e){super(...e),this.lastNode=null}atrule(e){aa.bind(this)(e)||(super.atrule(e),vp(this.lastNode),xp(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(a=>a[0]==="("),r=e.reverse().find(a=>a[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(a=>a[1]).join("");for(let a of e.reverse())this.tokenizer.back(a);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new mp,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,P)=>v[0]===")"?P:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),g=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(g,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let a=[];for(let c of e)if((c[1]==="!"||a.length)&&a.push(c),c[1]==="important")break;if(a.length){let[c]=a,f=e.indexOf(c),p=a[a.length-1],l=[c[2],c[3]],g=[p[4],p[5]],h=["word",a.map(d=>d[1]).join("")].concat(l,g);e.splice(f,a.length,h)}let u=e.findIndex(c=>bp.test(c[1]));u>0&&([,o]=e[u],e.splice(u,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){gp.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),aa.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(wp(s)){this.mixin(e);return}super.unknownWord(e)}}});var fa=y((Eb,ca)=>{var kp=Xt();ca.exports=class extends kp{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let a=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+a,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var pa=y((Sb,Us)=>{var _p=Fe(),Tp=la(),Ep=fa();Us.exports={parse(t,e){let s=new _p(t,e),r=new Tp(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndexOf(n.source.input.css);if(i===0)return;if(i+n.source.input.css.length!==s.css.length)throw new Error("Invalid state detected in postcss-less");let o=i+n.source.start.offset,a=s.fromOffset(i+n.source.start.offset);if(n.source.start={offset:o,line:a.line,column:a.col},n.source.end){let u=i+n.source.end.offset,c=s.fromOffset(i+n.source.end.offset);n.source.end={offset:u,line:c.line,column:c.col}}}),r.root},stringify(t,e){new Ep(e).stringify(t)},nodeToString(t){let e="";return Us.exports.stringify(t,s=>{e+=s}),e}}});var Ws=y((Cb,ha)=>{ha.exports=class{generate(){}}});var hr=y((Ab,ya)=>{"use strict";var Sp=ae(),da,ma,ve=class extends Sp{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new da(new ma,this,e).stringify()}};ve.registerLazyResult=t=>{da=t};ve.registerProcessor=t=>{ma=t};ya.exports=ve;ve.default=ve});var zs=y((Nb,wa)=>{"use strict";var ga={};wa.exports=function(e){ga[e]||(ga[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Vs=y((Pb,va)=>{"use strict";var bt=class{constructor(e,s={}){if(this.type="warning",this.text=e,s.node&&s.node.source){let r=s.node.rangeBy(s);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in s)this[r]=s[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};va.exports=bt;bt.default=bt});var dr=y((Rb,xa)=>{"use strict";var Cp=Vs(),kt=class{constructor(e,s,r){this.processor=e,this.messages=[],this.root=s,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new Cp(e,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};xa.exports=kt;kt.default=kt});var Ks=y((qb,Ta)=>{"use strict";var{isClean:H,my:Op}=jt(),Ap=Ws(),Np=pt(),Pp=ae(),Rp=hr(),Ib=zs(),ba=dr(),Ip=xt(),qp=Le(),Dp={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Lp={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Mp={postcssPlugin:!0,prepare:!0,Once:!0},$e=0;function _t(t){return typeof t=="object"&&typeof t.then=="function"}function _a(t){let e=!1,s=Dp[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,$e,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,$e,s+"Exit"]:[s,s+"Exit"]}function ka(t){let e;return t.type==="document"?e=["Document",$e,"DocumentExit"]:t.type==="root"?e=["Root",$e,"RootExit"]:e=_a(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Ys(t){return t[H]=!1,t.nodes&&t.nodes.forEach(e=>Ys(e)),t}var Gs={},Q=class{constructor(e,s,r){this.stringified=!1,this.processed=!1;let n;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))n=Ys(s);else if(s instanceof Q||s instanceof ba)n=Ys(s.root),s.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=s.map);else{let i=Ip;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{n=i(s,r)}catch(o){this.processed=!0,this.error=o}n&&!n[Op]&&Pp.rebuild(n)}this.result=new ba(e,n,r),this.helpers={...Gs,result:this.result,postcss:Gs},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let s=this.runOnRoot(e);if(_t(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];)e[H]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let s of e.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,s=Np;e.syntax&&(s=e.syntax.stringify),e.stringifier&&(s=e.stringifier),s.stringify&&(s=s.stringify);let n=new Ap(s,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[H]=!0;let s=_a(e);for(let r of s)if(r===$e)e.nodes&&e.each(n=>{n[H]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,s){for(let[r,n]of e){this.result.lastPlugin=r;let i;try{i=n(s,this.helpers)}catch(o){throw this.handleError(o,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(_t(i))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return _t(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,s){let r=this.result.lastPlugin;try{s&&s.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let s=this.plugins[e],r=this.runOnRoot(s);if(_t(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[H];){e[H]=!0;let s=[ka(e)];for(;s.length>0;){let r=this.visitTick(s);if(_t(r))try{await r}catch(n){let i=s[s.length-1].node;throw this.handleError(n,i)}}}if(this.listeners.OnceExit)for(let[s,r]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(e.type==="document"){let n=e.nodes.map(i=>r(i,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(s,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([s,n])};for(let s of this.plugins)if(typeof s=="object")for(let r in s){if(!Lp[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Mp[r])if(typeof s[r]=="object")for(let n in s[r])n==="*"?e(s,r,s[r][n]):e(s,r+"-"+n.toLowerCase(),s[r][n]);else typeof s[r]=="function"&&e(s,r,s[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let s=e[e.length-1],{node:r,visitors:n}=s;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&s.visitorIndex<n.length){let[o,a]=n[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===n.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(u){throw this.handleError(u,r)}}if(s.iterator!==0){let o=s.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[H]){a[H]=!0,e.push(ka(a));return}s.iterator=0,delete r.indexes[o]}let i=s.events;for(;s.eventIndex<i.length;){let o=i[s.eventIndex];if(s.eventIndex+=1,o===$e){r.nodes&&r.nodes.length&&(r[H]=!0,s.iterator=r.getIterator());return}else if(this.listeners[o]){s.visitors=this.listeners[o];return}}e.pop()}};Q.registerPostcss=t=>{Gs=t};Ta.exports=Q;Q.default=Q;qp.registerLazyResult(Q);Rp.registerLazyResult(Q)});var Sa=y((Lb,Ea)=>{"use strict";var Bp=Ws(),Fp=pt(),Db=zs(),$p=xt(),Up=dr(),Tt=class{constructor(e,s,r){s=s.toString(),this.stringified=!1,this._processor=e,this._css=s,this._opts=r,this._map=void 0;let n,i=Fp;this.result=new Up(this._processor,n,this._opts),this.result.css=s;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Bp(i,n,this._opts,s);if(a.isMap()){let[u,c]=a.generate();u&&(this.result.css=u),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,s=$p;try{e=s(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,s){return this.async().then(e,s)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};Ea.exports=Tt;Tt.default=Tt});var Oa=y((Mb,Ca)=>{"use strict";var Wp=Sa(),zp=Ks(),Vp=hr(),Yp=Le(),xe=class{constructor(e=[]){this.version="8.4.22",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,s={}){return this.plugins.length===0&&typeof s.parser>"u"&&typeof s.stringifier>"u"&&typeof s.syntax>"u"?new Wp(this,e,s):new zp(this,e,s)}normalize(e){let s=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))s=s.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)s.push(r);else if(typeof r=="function")s.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return s}};Ca.exports=xe;xe.default=xe;Yp.registerProcessor(xe);Vp.registerProcessor(xe)});var Na=y((Bb,Aa)=>{"use strict";var Gp=yt(),Kp=Ds(),Hp=qe(),Qp=ur(),jp=Fe(),Jp=Le(),Xp=lr();function Et(t,e){if(Array.isArray(t))return t.map(n=>Et(n));let{inputs:s,...r}=t;if(s){e=[];for(let n of s){let i={...n,__proto__:jp.prototype};i.map&&(i.map={...i.map,__proto__:Kp.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(n=>Et(n,e))),r.source){let{inputId:n,...i}=r.source;r.source=i,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Jp(r);if(r.type==="decl")return new Gp(r);if(r.type==="rule")return new Xp(r);if(r.type==="comment")return new Hp(r);if(r.type==="atrule")return new Qp(r);throw new Error("Unknown node type: "+t.type)}Aa.exports=Et;Et.default=Et});var mr=y((Fb,Ma)=>{"use strict";var Zp=Jt(),Pa=yt(),eh=Ks(),th=ae(),Hs=Oa(),rh=pt(),sh=Na(),Ra=hr(),nh=Vs(),Ia=qe(),qa=ur(),ih=dr(),oh=Fe(),ah=xt(),uh=Is(),Da=lr(),La=Le(),lh=dt();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Hs(t)}k.plugin=function(e,s){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
39
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let a=s(...o);return a.postcssPlugin=e,a.postcssVersion=new Hs().version,a}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,a,u){return k([n(u)]).process(o,a)},n};k.stringify=rh;k.parse=ah;k.fromJSON=sh;k.list=uh;k.comment=t=>new Ia(t);k.atRule=t=>new qa(t);k.decl=t=>new Pa(t);k.rule=t=>new Da(t);k.root=t=>new La(t);k.document=t=>new Ra(t);k.CssSyntaxError=Zp;k.Declaration=Pa;k.Container=th;k.Processor=Hs;k.Document=Ra;k.Comment=Ia;k.Warning=nh;k.AtRule=qa;k.Result=ih;k.Input=oh;k.Rule=Da;k.Root=La;k.Node=lh;eh.registerPostcss(k);Ma.exports=k;k.default=k});var Fa=y(($b,Ba)=>{var{Container:ch}=mr(),Qs=class extends ch{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};Ba.exports=Qs});var Ya=y((Ub,Va)=>{"use strict";var js="'".charCodeAt(0),Js='"'.charCodeAt(0),St="\\".charCodeAt(0),yr="/".charCodeAt(0),Xs=`
|
|
40
|
+
`.charCodeAt(0),gr=" ".charCodeAt(0),Zs="\f".charCodeAt(0),en=" ".charCodeAt(0),tn="\r".charCodeAt(0),fh="[".charCodeAt(0),ph="]".charCodeAt(0),$a="(".charCodeAt(0),Ua=")".charCodeAt(0),wr="{".charCodeAt(0),Wa="}".charCodeAt(0),hh=";".charCodeAt(0),dh="*".charCodeAt(0),mh=":".charCodeAt(0),yh="@".charCodeAt(0),gh=",".charCodeAt(0),rn="#".charCodeAt(0),vr=/[\t\n\f\r "#'()/;[\\\]{}]/g,xr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,wh=/.[\n"'(/\\]/,za=/[\da-f]/i,br=/[\n\f\r]/g;Va.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,a,u,c,f,p,l,g,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(C){throw e.error("Unclosed "+C,h)}function P(){return m.length===0&&h>=x}function W(){let C=1,O=!1,A=!1;for(;C>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),O?!A&&i===O?(O=!1,A=!1):i===St?A=!A:A&&(A=!1):i===js||i===Js?O=i:i===Wa?C-=1:i===rn&&l===wr&&(C+=1)}function j(C){if(m.length)return m.pop();if(h>=x)return;let O=C?C.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case Xs:case gr:case en:case tn:case Zs:{o=h;do o+=1,i=r.charCodeAt(o);while(i===gr||i===Xs||i===en||i===tn||i===Zs);g=["space",r.slice(h,o)],h=o-1;break}case fh:case ph:case wr:case Wa:case mh:case hh:case Ua:{let A=String.fromCharCode(i);g=[A,A,h];break}case gh:{g=["word",",",h,h+1];break}case $a:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==js&&l!==Js){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===St)f=!f;else if(l===$a)b+=1;else if(l===Ua&&(b-=1,b===0))break;o+=1}u=r.slice(h,o+1),g=["brackets",u,h,o],h=o}else o=r.indexOf(")",h+1),u=r.slice(h,o+1),o===-1||wh.test(u)?g=["(","(",h]:(g=["brackets",u,h,o],h=o);break}case js:case Js:{for(a=i,o=h,f=!1;o<x&&(o++,o===x&&v("string"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),!(!f&&i===a));)i===St?f=!f:f?f=!1:i===rn&&l===wr&&W();g=["string",r.slice(h,o+1),h,o],h=o;break}case yh:{vr.lastIndex=h+1,vr.test(r),vr.lastIndex===0?o=r.length-1:o=vr.lastIndex-2,g=["at-word",r.slice(h,o+1),h,o],h=o;break}case St:{for(o=h,c=!0;r.charCodeAt(o+1)===St;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==yr&&i!==gr&&i!==Xs&&i!==en&&i!==tn&&i!==Zs&&(o+=1,za.test(r.charAt(o)))){for(;za.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===gr&&(o+=1)}g=["word",r.slice(h,o+1),h,o],h=o;break}default:l=r.charCodeAt(h+1),i===rn&&l===wr?(o=h,W(),u=r.slice(h,o+1),g=["word",u,h,o],h=o):i===yr&&l===dh?(o=r.indexOf("*/",h+2)+1,o===0&&(n||O?o=r.length:v("comment")),g=["comment",r.slice(h,o+1),h,o],h=o):i===yr&&l===yr?(br.lastIndex=h+1,br.test(r),br.lastIndex===0?o=r.length-1:o=br.lastIndex-2,u=r.slice(h,o+1),g=["comment",u,h,o,"inline"],h=o):(xr.lastIndex=h+1,xr.test(r),xr.lastIndex===0?o=r.length-1:o=xr.lastIndex-2,g=["word",r.slice(h,o+1),h,o],d.push(g),h=o);break}return h++,g}function z(C){m.push(C)}return{back:z,nextToken:j,endOfFile:P,position:w}}});var Ka=y((Wb,Ga)=>{var{Comment:vh}=mr(),xh=cr(),bh=Fa(),kh=Ya(),sn=class extends xh{createTokenizer(){this.tokenizer=kh(this.input)}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(`
|
|
41
|
+
`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new bh;this.init(i,e[0][2]);let o;for(let u=e.length-1;u>=0;u--)if(e[u][0]!=="space"){o=e[u];break}if(o[3]){let u=this.input.fromOffset(o[3]);i.source.end={offset:o[3],line:u.line,column:u.col}}else{let u=this.input.fromOffset(o[2]);i.source.end={offset:o[2],line:u.line,column:u.col}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let u=this.input.fromOffset(e[0][2]);i.source.start={offset:e[0][2],line:u.line,column:u.col}}for(i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let u=e.length-1;u>0;u--){if(a=e[u],a[1]==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1]==="important"){let c=e.slice(0),f="";for(let p=u;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}comment(e){if(e[4]==="inline"){let s=new vh;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={offset:e[3],line:r.line,column:r.col};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let u=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+u+"*/"}else return o+a[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}};Ga.exports=sn});var Qa=y((zb,Ha)=>{var{Input:_h}=mr(),Th=Ka();Ha.exports=function(e,s){let r=new _h(e,s),n=new Th(r);return n.parse(),n.root}});function Eh(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var ja,Ja=E(()=>{ja=Eh});function Sh(t,e){return e.parser!=="scss"||!t.selector?!1:t.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":")}var Xa,Za=E(()=>{Xa=Sh});function Oh(t){return Ch.has(t)}var Ch,eu,tu=E(()=>{Ch=new Set(["import","use","forward"]);eu=Oh});var Y=y((Hb,ru)=>{"use strict";var nn=function(t,e){let s=new t.constructor;for(let r in t){if(!t.hasOwnProperty(r))continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:n instanceof Array?s[r]=n.map(o=>nn(o,s)):r!=="before"&&r!=="after"&&r!=="between"&&r!=="semicolon"&&(i==="object"&&n!==null&&(n=nn(n)),s[r]=n)}return s};ru.exports=class{constructor(e){e=e||{},this.raws={before:"",after:""};for(let s in e)this[s]=e[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(e){e=e||{};let s=nn(this);for(let r in e)s[r]=e[r];return s}cloneBefore(e){e=e||{};let s=this.clone(e);return this.parent.insertBefore(this,s),s}cloneAfter(e){e=e||{};let s=this.clone(e);return this.parent.insertAfter(this,s),s}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let s of e)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let r=this[s];r instanceof Array?e[s]=r.map(n=>typeof n=="object"&&n.toJSON?n.toJSON():n):typeof r=="object"&&r.toJSON?e[s]=r.toJSON():e[s]=r}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let s=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)s[i]===`
|
|
42
|
+
`?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let s=this.source.start;if(Object(e).index)s=this.positionInside(e.index);else if(Object(e).word){let r=this.toString().indexOf(e.word);r!==-1&&(s=this.positionInside(r))}return s}}});var F=y((Qb,su)=>{"use strict";var Ah=Y(),Ue=class extends Ah{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]<this.nodes.length&&(r=this.indexes[s],n=e(this.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}}walk(e){return this.each((s,r)=>{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Ue.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Ue.prototype[e]&&(Ue.prototype[e]=function(s){return this.walkType(t,s)})};su.exports=Ue});var iu=y((Jb,nu)=>{"use strict";var Nh=F();nu.exports=class extends Nh{constructor(e){super(e),this.type="root"}}});var au=y((Zb,ou)=>{"use strict";var Ph=F();ou.exports=class extends Ph{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var cu=y((ek,lu)=>{"use strict";var uu=F(),kr=class extends uu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};uu.registerWalker(kr);lu.exports=kr});var pu=y((tk,fu)=>{"use strict";var Rh=F(),Ih=Y(),_r=class extends Ih{constructor(e){super(e),this.type="colon"}};Rh.registerWalker(_r);fu.exports=_r});var du=y((rk,hu)=>{"use strict";var qh=F(),Dh=Y(),Tr=class extends Dh{constructor(e){super(e),this.type="comma"}};qh.registerWalker(Tr);hu.exports=Tr});var yu=y((sk,mu)=>{"use strict";var Lh=F(),Mh=Y(),Er=class extends Mh{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Lh.registerWalker(Er);mu.exports=Er});var vu=y((nk,wu)=>{"use strict";var gu=F(),Sr=class extends gu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};gu.registerWalker(Sr);wu.exports=Sr});var bu=y((ik,xu)=>{"use strict";var Bh=F(),Fh=Y(),Cr=class extends Fh{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Bh.registerWalker(Cr);xu.exports=Cr});var _u=y((ok,ku)=>{"use strict";var $h=F(),Uh=Y(),Or=class extends Uh{constructor(e){super(e),this.type="operator"}};$h.registerWalker(Or);ku.exports=Or});var Eu=y((ak,Tu)=>{"use strict";var Wh=F(),zh=Y(),Ar=class extends zh{constructor(e){super(e),this.type="paren",this.parenType=""}};Wh.registerWalker(Ar);Tu.exports=Ar});var Cu=y((uk,Su)=>{"use strict";var Vh=F(),Yh=Y(),Nr=class extends Yh{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Vh.registerWalker(Nr);Su.exports=Nr});var Au=y((lk,Ou)=>{"use strict";var Gh=F(),Kh=Y(),Pr=class extends Kh{constructor(e){super(e),this.type="word"}};Gh.registerWalker(Pr);Ou.exports=Pr});var Pu=y((ck,Nu)=>{"use strict";var Hh=F(),Qh=Y(),Rr=class extends Qh{constructor(e){super(e),this.type="unicode-range"}};Hh.registerWalker(Rr);Nu.exports=Rr});var Iu=y((fk,Ru)=>{"use strict";var on=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Ru.exports=on});var $u=y((pk,Fu)=>{"use strict";var jh="{".charCodeAt(0),Jh="}".charCodeAt(0),Xh="(".charCodeAt(0),Zh=")".charCodeAt(0),qu="'".charCodeAt(0),ed='"'.charCodeAt(0),Du="\\".charCodeAt(0),Ir="/".charCodeAt(0),td=".".charCodeAt(0),rd=",".charCodeAt(0),sd=":".charCodeAt(0),an="*".charCodeAt(0),qr="-".charCodeAt(0),un="+".charCodeAt(0),nd="#".charCodeAt(0),Ct=`
|
|
43
|
+
`.charCodeAt(0),ln=" ".charCodeAt(0),cn="\f".charCodeAt(0),fn=" ".charCodeAt(0),pn="\r".charCodeAt(0),id="@".charCodeAt(0),od="e".charCodeAt(0),ad="E".charCodeAt(0),Lu="0".charCodeAt(0),Mu="9".charCodeAt(0),ud="u".charCodeAt(0),ld="U".charCodeAt(0),Dr=/[ \n\t\r\{\(\)'"\\;,/]/g,cd=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,We=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,fd=/^[a-z0-9]/i,pd=/^[a-f0-9?\-]/i,Bu=Iu();Fu.exports=function(e,s){s=s||{};let r=[],n=e.valueOf(),i=n.length,o=-1,a=1,u=0,c=0,f=null,p,l,g,x,h,d,m,b,w,v,P,W;function j(C){let O=`Unclosed ${C} at line: ${a}, column: ${u-o}, token: ${u}`;throw new Bu(O)}function z(){let C=`Syntax error at line: ${a}, column: ${u-o}, token: ${u}`;throw new Bu(C)}for(;u<i;){switch(p=n.charCodeAt(u),p===Ct&&(o=u,a+=1),p){case Ct:case ln:case fn:case pn:case cn:l=u;do l+=1,p=n.charCodeAt(l),p===Ct&&(o=l,a+=1);while(p===ln||p===Ct||p===fn||p===pn||p===cn);r.push(["space",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;case sd:l=u+1,r.push(["colon",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;case rd:l=u+1,r.push(["comma",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;case jh:r.push(["{","{",a,u-o,a,l-o,u]);break;case Jh:r.push(["}","}",a,u-o,a,l-o,u]);break;case Xh:c++,f=!f&&c===1&&r.length>0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",a,u-o,a,l-o,u]);break;case Zh:c--,f=f&&c>0,r.push([")",")",a,u-o,a,l-o,u]);break;case qu:case ed:g=p===qu?"'":'"',l=u;do for(v=!1,l=n.indexOf(g,l+1),l===-1&&j("quote",g),P=l;n.charCodeAt(P-1)===Du;)P-=1,v=!v;while(v);r.push(["string",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case id:Dr.lastIndex=u+1,Dr.test(n),Dr.lastIndex===0?l=n.length-1:l=Dr.lastIndex-2,r.push(["atword",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case Du:l=u,p=n.charCodeAt(l+1),m&&p!==Ir&&p!==ln&&p!==Ct&&p!==fn&&p!==pn&&p!==cn&&(l+=1),r.push(["word",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l;break;case un:case qr:case an:l=u+1,W=n.slice(u+1,l+1);let C=n.slice(u-1,u);if(p===qr&&W.charCodeAt(0)===qr){l++,r.push(["word",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break}r.push(["operator",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;break;default:if(p===Ir&&(n.charCodeAt(u+1)===an||s.loose&&!f&&n.charCodeAt(u+1)===Ir)){if(n.charCodeAt(u+1)===an)l=n.indexOf("*/",u+2)+1,l===0&&j("comment","*/");else{let A=n.indexOf(`
|
|
44
|
+
`,u+2);l=A!==-1?A-1:i}d=n.slice(u,l+1),x=d.split(`
|
|
45
|
+
`),h=x.length-1,h>0?(b=a+h,w=l-x[h].length):(b=a,w=o),r.push(["comment",d,a,u-o,b,l-w,u]),o=w,a=b,u=l}else if(p===nd&&!fd.test(n.slice(u+1,u+2)))l=u+1,r.push(["#",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else if((p===ud||p===ld)&&n.charCodeAt(u+1)===un){l=u+2;do l+=1,p=n.charCodeAt(l);while(l<i&&pd.test(n.slice(l,l+1)));r.push(["unicoderange",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1}else if(p===Ir)l=u+1,r.push(["operator",n.slice(u,l),a,u-o,a,l-o,u]),u=l-1;else{let O=cd;if(p>=Lu&&p<=Mu&&(O=We),O.lastIndex=u+1,O.test(n),O.lastIndex===0?l=n.length-1:l=O.lastIndex-2,O===We||p===td){let A=n.charCodeAt(l),ke=n.charCodeAt(l+1),Mn=n.charCodeAt(l+2);(A===od||A===ad)&&(ke===qr||ke===un)&&Mn>=Lu&&Mn<=Mu&&(We.lastIndex=l+2,We.test(n),We.lastIndex===0?l=n.length-1:l=We.lastIndex-2)}r.push(["word",n.slice(u,l+1),a,u-o,a,l-o,u]),u=l}break}u++}return r}});var hn=y((hk,Uu)=>{Uu.exports=function(e,s){if(s=typeof s=="number"?s:1/0,!s)return Array.isArray(e)?e.map(function(n){return n}):e;return r(e,1);function r(n,i){return n.reduce(function(o,a){return Array.isArray(a)&&i<s?o.concat(r(a,i+1)):o.concat(a)},[])}}});var dn=y((dk,Wu)=>{Wu.exports=function(t,e){for(var s=-1,r=[];(s=t.indexOf(e,s+1))!==-1;)r.push(s);return r}});var mn=y((mk,zu)=>{"use strict";function hd(t,e){for(var s=1,r=t.length,n=t[0],i=t[0],o=1;o<r;++o)if(i=n,n=t[o],e(n,i)){if(o===s){s++;continue}t[s++]=n}return t.length=s,t}function dd(t){for(var e=1,s=t.length,r=t[0],n=t[0],i=1;i<s;++i,n=r)if(n=r,r=t[i],r!==n){if(i===e){e++;continue}t[e++]=r}return t.length=e,t}function md(t,e,s){return t.length===0?t:e?(s||t.sort(e),hd(t,e)):(s||t.sort(),dd(t))}zu.exports=md});var Yu=y((yk,Vu)=>{"use strict";var yn=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};Vu.exports=yn});var Qu=y((wk,Hu)=>{"use strict";var yd=iu(),gd=au(),wd=cu(),vd=pu(),xd=du(),bd=yu(),kd=vu(),_d=bu(),Td=_u(),Gu=Eu(),Ed=Cu(),Ku=Au(),Sd=Pu(),Cd=$u(),Od=hn(),Ad=dn(),Nd=mn(),Pd=Yu();function Rd(t){return t.sort((e,s)=>e-s)}Hu.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new yd;let n=new gd;this.root.append(n),this.current=n,this.tokens=Cd(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new vd({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new xd({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new bd({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new Pd(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let e=this.currToken[1],s;if(e==="+"||e==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new Td({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s<this.tokens.length&&e;){let i=this.tokens[s];i[0]==="("&&e++,i[0]===")"&&e--,s++}if(e&&this.error("Expected closing parenthesis",r),n=this.current.last,n&&n.type==="func"&&n.unbalanced<0&&(n.unbalanced=0,this.current=n),this.current.unbalanced++,this.newNode(new Gu({value:r[1],source:{start:{line:r[2],column:r[3]},end:{line:r[4],column:r[5]}},sourceIndex:r[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let i=this.nextToken,o=this.currToken[1],a={line:this.currToken[2],column:this.currToken[3]};for(;i&&i[0]!==")"&&this.current.unbalanced;)this.position++,o+=this.currToken[1],i=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new Ku({value:o,source:{start:a,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new Gu({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new Sd({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,s=this.currToken[1],r=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,n=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,i,o;if(!n.test(s))for(;e&&e[0]==="word";){this.position++;let a=this.currToken[1];s+=a,e=this.nextToken}i=Ad(s,"@"),o=Rd(Nd(Od([[0],i]))),o.forEach((a,u)=>{let c=o[u+1]||s.length,f=s.slice(a,c),p;if(~i.indexOf(a))p=new wd({value:f.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]});else if(r.test(this.currToken[1])){let l=f.replace(r,"");p=new _d({value:f.replace(l,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u],unit:l})}else p=new(e&&e[0]==="("?kd:Ku)({value:f,source:{start:{line:this.currToken[2],column:this.currToken[3]+a},end:{line:this.currToken[4],column:this.currToken[3]+(c-1)}},sourceIndex:this.currToken[6]+o[u]}),p.type==="word"?(p.isHex=/^#(.+)/.test(f),p.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(f)):this.cache.push(this.current);this.newNode(p)}),this.position++}string(){let e=this.currToken,s=this.currToken[1],r=/^(\"|\')/,n=r.test(s),i="",o;n&&(i=s.match(r)[0],s=s.slice(1,s.length-1)),o=new Ed({value:s,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:n}),o.raws.quote=i,this.newNode(o),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=""),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}});var Id,Lr,gn=E(()=>{Id=t=>{for(;t.parent;)t=t.parent;return t},Lr=Id});function qd(t){return Lr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var ju,Ju=E(()=>{gn();ju=qd});function Dd(t){if(se(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return!0}return!1}var Xu,Zu=E(()=>{Ve();Xu=Dd});function Ld(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var el,tl=E(()=>{el=Ld});function Md(t,e){return!!(e.parser==="scss"&&(t==null?void 0:t.type)==="word"&&t.value.startsWith("$"))}var rl,sl=E(()=>{rl=Md});var be=y((Mr,il)=>{"use strict";Mr.__esModule=!0;var nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Bd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Fd=function t(e,s){if((typeof e>"u"?"undefined":nl(e))!=="object")return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],o=typeof i>"u"?"undefined":nl(i);n==="parent"&&o==="object"?s&&(r[n]=s):i instanceof Array?r[n]=i.map(function(a){return t(a,r)}):r[n]=t(i,r)}return r},$d=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bd(this,t);for(var s in e)this[s]=e[s];var r=e.spaces;r=r===void 0?{}:r;var n=r.before,i=n===void 0?"":n,o=r.after,a=o===void 0?"":o;this.spaces={before:i,after:a}}return t.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.prototype.replaceWith=function(){if(this.parent){for(var s in arguments)this.parent.insertBefore(this,arguments[s]);this.remove()}return this},t.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.prototype.clone=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Fd(this);for(var n in s)r[n]=s[n];return r},t.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},t}();Mr.default=$d;il.exports=Mr.default});var M=y($=>{"use strict";$.__esModule=!0;var Sk=$.TAG="tag",Ck=$.STRING="string",Ok=$.SELECTOR="selector",Ak=$.ROOT="root",Nk=$.PSEUDO="pseudo",Pk=$.NESTING="nesting",Rk=$.ID="id",Ik=$.COMMENT="comment",qk=$.COMBINATOR="combinator",Dk=$.CLASS="class",Lk=$.ATTRIBUTE="attribute",Mk=$.UNIVERSAL="universal"});var Fr=y((Br,ol)=>{"use strict";Br.__esModule=!0;var Ud=function(){function t(e,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}}(),Wd=be(),zd=Gd(Wd),Vd=M(),ee=Yd(Vd);function Yd(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e.default=t,e}function Gd(t){return t&&t.__esModule?t:{default:t}}function Kd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Qd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var jd=function(t){Qd(e,t);function e(s){Kd(this,e);var r=Hd(this,t.call(this,s));return r.nodes||(r.nodes=[]),r}return e.prototype.append=function(r){return r.parent=this,this.nodes.push(r),this},e.prototype.prepend=function(r){return r.parent=this,this.nodes.unshift(r),this},e.prototype.at=function(r){return this.nodes[r]},e.prototype.index=function(r){return typeof r=="number"?r:this.nodes.indexOf(r)},e.prototype.removeChild=function(r){r=this.index(r),this.at(r).parent=void 0,this.nodes.splice(r,1);var n=void 0;for(var i in this.indexes)n=this.indexes[i],n>=r&&(this.indexes[i]=n-1);return this},e.prototype.removeAll=function(){for(var i=this.nodes,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var o;if(r){if(n>=i.length)break;o=i[n++]}else{if(n=i.next(),n.done)break;o=n.value}var a=o;a.parent=void 0}return this.nodes=[],this},e.prototype.empty=function(){return this.removeAll()},e.prototype.insertAfter=function(r,n){var i=this.index(r);this.nodes.splice(i+1,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.insertBefore=function(r,n){var i=this.index(r);this.nodes.splice(i,0,n);var o=void 0;for(var a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+this.nodes.length);return this},e.prototype.each=function(r){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!!this.length){for(var i=void 0,o=void 0;this.indexes[n]<this.length&&(i=this.indexes[n],o=r(this.at(i),i),o!==!1);)this.indexes[n]+=1;if(delete this.indexes[n],o===!1)return!1}},e.prototype.walk=function(r){return this.each(function(n,i){var o=r(n,i);if(o!==!1&&n.length&&(o=n.walk(r)),o===!1)return!1})},e.prototype.walkAttributes=function(r){var n=this;return this.walk(function(i){if(i.type===ee.ATTRIBUTE)return r.call(n,i)})},e.prototype.walkClasses=function(r){var n=this;return this.walk(function(i){if(i.type===ee.CLASS)return r.call(n,i)})},e.prototype.walkCombinators=function(r){var n=this;return this.walk(function(i){if(i.type===ee.COMBINATOR)return r.call(n,i)})},e.prototype.walkComments=function(r){var n=this;return this.walk(function(i){if(i.type===ee.COMMENT)return r.call(n,i)})},e.prototype.walkIds=function(r){var n=this;return this.walk(function(i){if(i.type===ee.ID)return r.call(n,i)})},e.prototype.walkNesting=function(r){var n=this;return this.walk(function(i){if(i.type===ee.NESTING)return r.call(n,i)})},e.prototype.walkPseudos=function(r){var n=this;return this.walk(function(i){if(i.type===ee.PSEUDO)return r.call(n,i)})},e.prototype.walkTags=function(r){var n=this;return this.walk(function(i){if(i.type===ee.TAG)return r.call(n,i)})},e.prototype.walkUniversals=function(r){var n=this;return this.walk(function(i){if(i.type===ee.UNIVERSAL)return r.call(n,i)})},e.prototype.split=function(r){var n=this,i=[];return this.reduce(function(o,a,u){var c=r.call(n,a);return i.push(a),c?(o.push(i),i=[]):u===n.length-1&&o.push(i),o},[])},e.prototype.map=function(r){return this.nodes.map(r)},e.prototype.reduce=function(r,n){return this.nodes.reduce(r,n)},e.prototype.every=function(r){return this.nodes.every(r)},e.prototype.some=function(r){return this.nodes.some(r)},e.prototype.filter=function(r){return this.nodes.filter(r)},e.prototype.sort=function(r){return this.nodes.sort(r)},e.prototype.toString=function(){return this.map(String).join("")},Ud(e,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),e}(zd.default);Br.default=jd;ol.exports=Br.default});var ul=y(($r,al)=>{"use strict";$r.__esModule=!0;var Jd=Fr(),Xd=em(Jd),Zd=M();function em(t){return t&&t.__esModule?t:{default:t}}function tm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function sm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var nm=function(t){sm(e,t);function e(s){tm(this,e);var r=rm(this,t.call(this,s));return r.type=Zd.ROOT,r}return e.prototype.toString=function(){var r=this.reduce(function(n,i){var o=String(i);return o?n+o+",":""},"").slice(0,-1);return this.trailingComma?r+",":r},e}(Xd.default);$r.default=nm;al.exports=$r.default});var cl=y((Ur,ll)=>{"use strict";Ur.__esModule=!0;var im=Fr(),om=um(im),am=M();function um(t){return t&&t.__esModule?t:{default:t}}function lm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function fm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var pm=function(t){fm(e,t);function e(s){lm(this,e);var r=cm(this,t.call(this,s));return r.type=am.SELECTOR,r}return e}(om.default);Ur.default=pm;ll.exports=Ur.default});var ze=y((Wr,fl)=>{"use strict";Wr.__esModule=!0;var hm=function(){function t(e,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}}(),dm=be(),mm=ym(dm);function ym(t){return t&&t.__esModule?t:{default:t}}function gm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function vm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var xm=function(t){vm(e,t);function e(){return gm(this,e),wm(this,t.apply(this,arguments))}return e.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},hm(e,[{key:"ns",get:function(){var r=this.namespace;return r?(typeof r=="string"?r:"")+"|":""}}]),e}(mm.default);Wr.default=xm;fl.exports=Wr.default});var hl=y((zr,pl)=>{"use strict";zr.__esModule=!0;var bm=ze(),km=Tm(bm),_m=M();function Tm(t){return t&&t.__esModule?t:{default:t}}function Em(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Cm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Om=function(t){Cm(e,t);function e(s){Em(this,e);var r=Sm(this,t.call(this,s));return r.type=_m.CLASS,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},e}(km.default);zr.default=Om;pl.exports=zr.default});var ml=y((Vr,dl)=>{"use strict";Vr.__esModule=!0;var Am=be(),Nm=Rm(Am),Pm=M();function Rm(t){return t&&t.__esModule?t:{default:t}}function Im(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Dm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Lm=function(t){Dm(e,t);function e(s){Im(this,e);var r=qm(this,t.call(this,s));return r.type=Pm.COMMENT,r}return e}(Nm.default);Vr.default=Lm;dl.exports=Vr.default});var gl=y((Yr,yl)=>{"use strict";Yr.__esModule=!0;var Mm=ze(),Bm=$m(Mm),Fm=M();function $m(t){return t&&t.__esModule?t:{default:t}}function Um(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Vm=function(t){zm(e,t);function e(s){Um(this,e);var r=Wm(this,t.call(this,s));return r.type=Fm.ID,r}return e.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},e}(Bm.default);Yr.default=Vm;yl.exports=Yr.default});var vl=y((Gr,wl)=>{"use strict";Gr.__esModule=!0;var Ym=ze(),Gm=Hm(Ym),Km=M();function Hm(t){return t&&t.__esModule?t:{default:t}}function Qm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jm(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Jm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Xm=function(t){Jm(e,t);function e(s){Qm(this,e);var r=jm(this,t.call(this,s));return r.type=Km.TAG,r}return e}(Gm.default);Gr.default=Xm;wl.exports=Gr.default});var bl=y((Kr,xl)=>{"use strict";Kr.__esModule=!0;var Zm=be(),ey=ry(Zm),ty=M();function ry(t){return t&&t.__esModule?t:{default:t}}function sy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ny(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function iy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var oy=function(t){iy(e,t);function e(s){sy(this,e);var r=ny(this,t.call(this,s));return r.type=ty.STRING,r}return e}(ey.default);Kr.default=oy;xl.exports=Kr.default});var _l=y((Hr,kl)=>{"use strict";Hr.__esModule=!0;var ay=Fr(),uy=cy(ay),ly=M();function cy(t){return t&&t.__esModule?t:{default:t}}function fy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function py(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function hy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var dy=function(t){hy(e,t);function e(s){fy(this,e);var r=py(this,t.call(this,s));return r.type=ly.PSEUDO,r}return e.prototype.toString=function(){var r=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),r,this.spaces.after].join("")},e}(uy.default);Hr.default=dy;kl.exports=Hr.default});var El=y((Qr,Tl)=>{"use strict";Qr.__esModule=!0;var my=ze(),yy=wy(my),gy=M();function wy(t){return t&&t.__esModule?t:{default:t}}function vy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function by(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ky=function(t){by(e,t);function e(s){vy(this,e);var r=xy(this,t.call(this,s));return r.type=gy.ATTRIBUTE,r.raws={},r}return e.prototype.toString=function(){var r=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&r.push(this.operator),this.value&&r.push(this.value),this.raws.insensitive?r.push(this.raws.insensitive):this.insensitive&&r.push(" i"),r.push("]"),r.concat(this.spaces.after).join("")},e}(yy.default);Qr.default=ky;Tl.exports=Qr.default});var Cl=y((jr,Sl)=>{"use strict";jr.__esModule=!0;var _y=ze(),Ty=Sy(_y),Ey=M();function Sy(t){return t&&t.__esModule?t:{default:t}}function Cy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ay(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ny=function(t){Ay(e,t);function e(s){Cy(this,e);var r=Oy(this,t.call(this,s));return r.type=Ey.UNIVERSAL,r.value="*",r}return e}(Ty.default);jr.default=Ny;Sl.exports=jr.default});var Al=y((Jr,Ol)=>{"use strict";Jr.__esModule=!0;var Py=be(),Ry=qy(Py),Iy=M();function qy(t){return t&&t.__esModule?t:{default:t}}function Dy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ly(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function My(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var By=function(t){My(e,t);function e(s){Dy(this,e);var r=Ly(this,t.call(this,s));return r.type=Iy.COMBINATOR,r}return e}(Ry.default);Jr.default=By;Ol.exports=Jr.default});var Pl=y((Xr,Nl)=>{"use strict";Xr.__esModule=!0;var Fy=be(),$y=Wy(Fy),Uy=M();function Wy(t){return t&&t.__esModule?t:{default:t}}function zy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vy(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Yy(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Gy=function(t){Yy(e,t);function e(s){zy(this,e);var r=Vy(this,t.call(this,s));return r.type=Uy.NESTING,r.value="&",r}return e}($y.default);Xr.default=Gy;Nl.exports=Xr.default});var Il=y((Zr,Rl)=>{"use strict";Zr.__esModule=!0;Zr.default=Ky;function Ky(t){return t.sort(function(e,s){return e-s})}Rl.exports=Zr.default});var Wl=y((rs,Ul)=>{"use strict";rs.__esModule=!0;rs.default=ng;var ql=39,Hy=34,wn=92,Dl=47,Ot=10,vn=32,xn=12,bn=9,kn=13,Ll=43,Ml=62,Bl=126,Fl=124,Qy=44,jy=40,Jy=41,Xy=91,Zy=93,eg=59,$l=42,tg=58,rg=38,sg=64,es=/[ \n\t\r\{\(\)'"\\;/]/g,ts=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function ng(t){for(var e=[],s=t.css.valueOf(),r=void 0,n=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,g=void 0,x=s.length,h=-1,d=1,m=0,b=function(v,P){if(t.safe)s+=P,n=s.length-1;else throw t.error("Unclosed "+v,d,m-h,m)};m<x;){switch(r=s.charCodeAt(m),r===Ot&&(h=m,d+=1),r){case Ot:case vn:case bn:case kn:case xn:n=m;do n+=1,r=s.charCodeAt(n),r===Ot&&(h=n,d+=1);while(r===vn||r===Ot||r===bn||r===kn||r===xn);e.push(["space",s.slice(m,n),d,m-h,m]),m=n-1;break;case Ll:case Ml:case Bl:case Fl:n=m;do n+=1,r=s.charCodeAt(n);while(r===Ll||r===Ml||r===Bl||r===Fl);e.push(["combinator",s.slice(m,n),d,m-h,m]),m=n-1;break;case $l:e.push(["*","*",d,m-h,m]);break;case rg:e.push(["&","&",d,m-h,m]);break;case Qy:e.push([",",",",d,m-h,m]);break;case Xy:e.push(["[","[",d,m-h,m]);break;case Zy:e.push(["]","]",d,m-h,m]);break;case tg:e.push([":",":",d,m-h,m]);break;case eg:e.push([";",";",d,m-h,m]);break;case jy:e.push(["(","(",d,m-h,m]);break;case Jy:e.push([")",")",d,m-h,m]);break;case ql:case Hy:i=r===ql?"'":'"',n=m;do for(l=!1,n=s.indexOf(i,n+1),n===-1&&b("quote",i),g=n;s.charCodeAt(g-1)===wn;)g-=1,l=!l;while(l);e.push(["string",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n;break;case sg:es.lastIndex=m+1,es.test(s),es.lastIndex===0?n=s.length-1:n=es.lastIndex-2,e.push(["at-word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n;break;case wn:for(n=m,c=!0;s.charCodeAt(n+1)===wn;)n+=1,c=!c;r=s.charCodeAt(n+1),c&&r!==Dl&&r!==vn&&r!==Ot&&r!==bn&&r!==kn&&r!==xn&&(n+=1),e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n;break;default:r===Dl&&s.charCodeAt(m+1)===$l?(n=s.indexOf("*/",m+2)+1,n===0&&b("comment","*/"),u=s.slice(m,n+1),o=u.split(`
|
|
46
|
+
`),a=o.length-1,a>0?(f=d+a,p=n-o[a].length):(f=d,p=h),e.push(["comment",u,d,m-h,f,n-p,m]),h=p,d=f,m=n):(ts.lastIndex=m+1,ts.test(s),ts.lastIndex===0?n=s.length-1:n=ts.lastIndex-2,e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n);break}m++}return e}Ul.exports=rs.default});var Yl=y((ss,Vl)=>{"use strict";ss.__esModule=!0;var ig=function(){function t(e,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}}(),og=hn(),ag=q(og),ug=dn(),_n=q(ug),lg=mn(),cg=q(lg),fg=ul(),pg=q(fg),hg=cl(),Tn=q(hg),dg=hl(),mg=q(dg),yg=ml(),gg=q(yg),wg=gl(),vg=q(wg),xg=vl(),bg=q(xg),kg=bl(),_g=q(kg),Tg=_l(),Eg=q(Tg),Sg=El(),Cg=q(Sg),Og=Cl(),Ag=q(Og),Ng=Al(),Pg=q(Ng),Rg=Pl(),Ig=q(Rg),qg=Il(),Dg=q(qg),Lg=Wl(),zl=q(Lg),Mg=M(),Bg=Fg(Mg);function Fg(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e.default=t,e}function q(t){return t&&t.__esModule?t:{default:t}}function $g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ug=function(){function t(e){$g(this,t),this.input=e,this.lossy=e.options.lossless===!1,this.position=0,this.root=new pg.default;var s=new Tn.default;return this.root.append(s),this.current=s,this.lossy?this.tokens=(0,zl.default)({safe:e.safe,css:e.css.trim()}):this.tokens=(0,zl.default)(e),this.loop()}return t.prototype.attribute=function(){var s="",r=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)s+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~s.indexOf("]")&&this.error("Expected a closing square bracket.");var i=s.split(/((?:[*~^$|]?=))([^]*)/),o=i[0].split(/(\|)/g),a={operator:i[1],value:i[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(o.length>1?(o[0]===""&&(o[0]=!0),a.attribute=this.parseValue(o[2]),a.namespace=this.parseNamespace(o[0])):a.attribute=this.parseValue(i[0]),r=new Cg.default(a),i[2]){var u=i[2].split(/(\s+i\s*?)$/),c=u[0].trim();r.value=this.lossy?c:u[0],u[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=u[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new Pg.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(s.spaces.before=this.parseSpace(this.currToken[1]),s.source.start.line=this.nextToken[2],s.source.start.column=this.nextToken[3],s.source.end.column=this.nextToken[3],s.source.end.line=this.nextToken[2],s.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?s.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?s.value=this.currToken[1]:this.currToken[0]==="space"&&(s.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(s)},t.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var s=new Tn.default;this.current.parent.append(s),this.current=s,this.position++},t.prototype.comment=function(){var s=new gg.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(s),this.position++},t.prototype.error=function(s){throw new this.input.error(s)},t.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},t.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},t.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},t.prototype.namespace=function(){var s=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(s);if(this.nextToken[0]==="*")return this.position++,this.universal(s)},t.prototype.nesting=function(){this.newNode(new Ig.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},t.prototype.parentheses=function(){var s=this.current.last;if(s&&s.type===Bg.PSEUDO){var r=new Tn.default,n=this.current;s.append(r),this.current=r;var i=1;for(this.position++;this.position<this.tokens.length&&i;)this.currToken[0]==="("&&i++,this.currToken[0]===")"&&i--,i?this.parse():(r.parent.source.end.line=this.currToken[2],r.parent.source.end.column=this.currToken[3],this.position++);i&&this.error("Expected closing parenthesis."),this.current=n}else{var o=1;for(this.position++,s.value+="(";this.position<this.tokens.length&&o;)this.currToken[0]==="("&&o++,this.currToken[0]===")"&&o--,s.value+=this.parseParenthesisToken(this.currToken),this.position++;o&&this.error("Expected closing parenthesis.")}},t.prototype.pseudo=function(){for(var s=this,r="",n=this.currToken;this.currToken&&this.currToken[0]===":";)r+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var i=void 0;this.splitWord(!1,function(o,a){r+=o,i=new Eg.default({value:r,source:{start:{line:n[2],column:n[3]},end:{line:s.currToken[4],column:s.currToken[5]}},sourceIndex:n[4]}),s.newNode(i),a>1&&s.nextToken&&s.nextToken[0]==="("&&s.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},t.prototype.space=function(){var s=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(s[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(s[1]),this.position++):this.combinator()},t.prototype.string=function(){var s=this.currToken;this.newNode(new _g.default({value:this.currToken[1],source:{start:{line:s[2],column:s[3]},end:{line:s[4],column:s[5]}},sourceIndex:s[6]})),this.position++},t.prototype.universal=function(s){var r=this.nextToken;if(r&&r[1]==="|")return this.position++,this.namespace();this.newNode(new Ag.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),s),this.position++},t.prototype.splitWord=function(s,r){for(var n=this,i=this.nextToken,o=this.currToken[1];i&&i[0]==="word";){this.position++;var a=this.currToken[1];if(o+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[0]==="space"&&(o+=this.parseSpace(u[1]," "),this.position++)}i=this.nextToken}var c=(0,_n.default)(o,"."),f=(0,_n.default)(o,"#"),p=(0,_n.default)(o,"#{");p.length&&(f=f.filter(function(g){return!~p.indexOf(g)}));var l=(0,Dg.default)((0,cg.default)((0,ag.default)([[0],c,f])));l.forEach(function(g,x){var h=l[x+1]||o.length,d=o.slice(g,h);if(x===0&&r)return r.call(n,d,l.length);var m=void 0;~c.indexOf(g)?m=new mg.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):~f.indexOf(g)?m=new vg.default({value:d.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}):m=new bg.default({value:d,source:{start:{line:n.currToken[2],column:n.currToken[3]+g},end:{line:n.currToken[4],column:n.currToken[3]+(h-1)}},sourceIndex:n.currToken[6]+l[x]}),n.newNode(m,s)}),this.position++},t.prototype.word=function(s){var r=this.nextToken;return r&&r[1]==="|"?(this.position++,this.namespace()):this.splitWord(s)},t.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},t.prototype.parse=function(s){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":s&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},t.prototype.parseNamespace=function(s){if(this.lossy&&typeof s=="string"){var r=s.trim();return r.length?r:!0}return s},t.prototype.parseSpace=function(s,r){return this.lossy?r||"":s},t.prototype.parseValue=function(s){return this.lossy&&s&&typeof s=="string"?s.trim():s},t.prototype.parseParenthesisToken=function(s){return this.lossy?s[0]==="space"?this.parseSpace(s[1]," "):this.parseValue(s[1]):s[1]},t.prototype.newNode=function(s,r){return r&&(s.namespace=this.parseNamespace(r)),this.spaces&&(s.spaces.before=this.spaces,this.spaces=""),this.current.append(s)},ig(t,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),t}();ss.default=Ug;Vl.exports=ss.default});var Kl=y((ns,Gl)=>{"use strict";ns.__esModule=!0;var Wg=function(){function t(e,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}}(),zg=Yl(),Vg=Yg(zg);function Yg(t){return t&&t.__esModule?t:{default:t}}function Gg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Kg=function(){function t(e){return Gg(this,t),this.func=e||function(){},this}return t.prototype.process=function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Vg.default({css:s,error:function(o){throw new Error(o)},options:r});return this.res=n,this.func(n),this},Wg(t,[{key:"result",get:function(){return String(this.res)}}]),t}();ns.default=Kg;Gl.exports=ns.default});function te(t,e,s){if(t&&typeof t=="object"){delete t.parent;for(let r in t)te(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r])}return t}function En(t){if(t&&typeof t=="object"){delete t.parent;for(let e in t)En(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown")}return t}var At=E(()=>{});function Hg(t){if(/\/\/|\/\*/.test(t))return{type:"selector-unknown",value:t.trim()};let e;try{new Hl.default(s=>{e=s}).process(t)}catch{return{type:"selector-unknown",value:t}}return te(e,"selector-")}var Hl,re,Sn=E(()=>{Hl=ce(Kl(),1);At();re=Hg});function Qg(t,e){var u;let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},a=[o];for(let c=0;c<s.length;++c){let f=s[c];if(e.parser==="scss"&&f.type==="number"&&f.unit===".."&&f.value.endsWith(".")&&(f.value=f.value.slice(0,-1),f.unit="..."),f.type==="func"&&f.value==="selector"&&(f.group.groups=[re(Lr(t).text.slice(f.group.open.sourceIndex+1,f.group.close.sourceIndex))]),f.type==="func"&&f.value==="url"){let p=((u=f.group)==null?void 0:u.groups)??[],l=[];for(let g=0;g<p.length;g++){let x=p[g];x.type==="comma_group"?l=[...l,...x.groups]:l.push(x)}(Xu(l)||!el(l)&&!rl(l[0],e))&&(f.group.groups=[ju(f)])}if(f.type==="paren"&&f.value==="(")r={open:f,close:null,groups:[],type:"paren_group"},n.push(r),o={groups:[],type:"comma_group"},a.push(o);else if(f.type==="paren"&&f.value===")"){if(o.groups.length>0&&r.groups.push(o),r.close=f,a.length===1)throw new Error("Unbalanced parenthesis");a.pop(),o=K(!1,a,-1),o.groups.push(r),n.pop(),r=K(!1,n,-1)}else f.type==="comma"?(r.groups.push(o),o={groups:[],type:"comma_group"},a[a.length-1]=o):o.groups.push(f)}return o.groups.length>0&&r.groups.push(o),i}function is(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?is(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(is)}:t}function jl(t,e){if(t&&typeof t=="object")for(let s in t)s!=="parent"&&(jl(t[s],e),s==="nodes"&&(t.group=is(Qg(t,e)),delete t[s]));return t}function jg(t,e){if(e.parser==="less"&&t.startsWith("~`"))return{type:"value-unknown",value:t};let s=null;try{s=new Ql.default(t,{loose:!0}).parse()}catch{return{type:"value-unknown",value:t}}s.text=t;let r=jl(s,e);return te(r,"value-",/^selector-/)}var Ql,le,Jl=E(()=>{Ce();Ql=ce(Qu(),1);Ju();gn();Zu();tl();sl();Sn();At();le=jg});var On=y(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});function Jg(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Cn.default=Jg});var Nn=y(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});var Xg=On(),Xl=Zg(Xg);function Zg(t){return t&&t.__esModule?t:{default:t}}function Nt(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}Nt.prototype=Object.create(Xl.default.prototype);Nt.constructor=Xl.default;Nt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o<this.nodes.length;o++){var a=this.nodes[o],u=r?i.test(a.type):!0;if(u&&n&&n(a,o,this.nodes)===!1||a.nodes&&a.walk(e,s)===!1)return!1}return!0};Nt.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],s=0;s<this.nodes.length;s++){var r=this.nodes[s];if(e(r,s,this.nodes)===!1)return!1}return!0};An.default=Nt});var rc=y(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.parseMediaFeature=tc;Pt.parseMediaQuery=Rn;Pt.parseMediaList=rw;var ew=On(),Zl=ec(ew),tw=Nn(),Pn=ec(tw);function ec(t){return t&&t.__esModule?t:{default:t}}function tc(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,a=null,u=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),u++);for(var f=0;f<c.length;f++){var p=c[f];if((p==="'"||p==='"')&&(s[n].isCalculationEnabled===!0?(s.push({mode:"string",isCalculationEnabled:!1,character:p}),n++):s[n].mode==="string"&&s[n].character===p&&c[f-1]!=="\\"&&(s.pop(),n--)),p==="{"?(s.push({mode:"interpolation",isCalculationEnabled:!0}),n++):p==="}"&&(s.pop(),n--),s[n].mode==="normal"&&p===":"){var l=c.substring(f+1);a={type:"value",before:/^(\s*)/.exec(l)[1],after:/(\s*)$/.exec(l)[1],value:l.trim()},a.sourceIndex=a.before.length+f+1+u,o={type:"colon",sourceIndex:f+u,after:a.before,value:":"};break}i+=p}return i={type:"media-feature",before:/^(\s*)/.exec(i)[1],after:/(\s*)$/.exec(i)[1],value:i.trim()},i.sourceIndex=i.before.length+u,r.push(i),o!==null&&(o.before=i.after,r.push(o)),a!==null&&r.push(a),r}function Rn(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[],r=0,n=!1,i=void 0;function o(){return{before:"",after:"",value:""}}i=o();for(var a=0;a<t.length;a++){var u=t[a];n?(i.value+=u,(u==="{"||u==="(")&&r++,(u===")"||u==="}")&&r--):u.search(/\s/)!==-1?i.before+=u:(u==="("&&(i.type="media-feature-expression",r++),i.value=u,i.sourceIndex=e+a,n=!0),n&&r===0&&(u===")"||a===t.length-1||t[a+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(i.value)!==-1&&(i.type="keyword"),i.type==="media-feature-expression"&&(i.nodes=tc(i.value,i.sourceIndex)),s.push(Array.isArray(i.nodes)?new Pn.default(i):new Zl.default(i)),i=o(),n=!1)}for(var c=0;c<s.length;c++)if(i=s[c],c>0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not"||s[c-1].value==="only"){i.type="media-type";continue}if(s[c-1].value==="and"){i.type="media-feature-expression";continue}s[c-1].type==="media-type"&&(s[c+1]?i.type=s[c+1].type==="media-feature-expression"?"keyword":"media-feature-expression":i.type="media-feature-expression")}if(c===0){if(!s[c+1]){i.type="media-type";continue}if(s[c+1]&&(s[c+1].type==="media-feature-expression"||s[c+1].type==="keyword")){i.type="media-type";continue}if(s[c+2]){if(s[c+2].type==="media-feature-expression"){i.type="media-type",s[c+1].type="keyword";continue}if(s[c+2].type==="keyword"){i.type="keyword",s[c+1].type="media-type";continue}}if(s[c+3]&&s[c+3].type==="media-feature-expression"){i.type="keyword",s[c+1].type="media-type",s[c+2].type="keyword";continue}}}return s}function rw(t){var e=[],s=0,r=0,n=/^(\s*)url\s*\(/.exec(t);if(n!==null){for(var i=n[0].length,o=1;o>0;){var a=t[i];a==="("&&o++,a===")"&&o--,i++}e.unshift(new Zl.default({type:"url",value:t.substring(0,i).trim(),sourceIndex:n[1].length,before:n[1],after:/^(\s*)/.exec(t.substring(i))[1]})),s=i}for(var u=s;u<t.length;u++){var c=t[u];if(c==="("&&r++,c===")"&&r--,r===0&&c===","){var f=t.substring(s,u),p=/^(\s*)/.exec(f)[1];e.push(new Pn.default({type:"media-query",value:f.trim(),sourceIndex:s+p.length,nodes:Rn(f,s),before:p,after:/(\s*)$/.exec(f)[1]})),s=u+1}}var l=t.substring(s),g=/^(\s*)/.exec(l)[1];return e.push(new Pn.default({type:"media-query",value:l.trim(),sourceIndex:s+g.length,nodes:Rn(l,s),before:g,after:/(\s*)$/.exec(l)[1]})),e}});var sc=y(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=aw;var sw=Nn(),nw=ow(sw),iw=rc();function ow(t){return t&&t.__esModule?t:{default:t}}function aw(t){return new nw.default({nodes:(0,iw.parseMediaList)(t),type:"media-query-list",value:t.trim()})}});function lw(t){let e;try{e=uw(t)}catch{return{type:"selector-unknown",value:t}}return te(En(e),"media-")}var nc,uw,ic,oc=E(()=>{nc=ce(sc(),1);At();uw=nc.default.default;ic=lw});var dc={};Bn(dc,{css:()=>pw,less:()=>hw,scss:()=>dw});function cc(t,e){var s,r;if(t&&typeof t=="object"){delete t.parent;for(let a in t)cc(t[a],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let a;if(t.value.trimEnd().endsWith("}")){let u=e.originalText.slice(0,t.source.start.offset),c="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset+1),f=S(!1,u,/[^\n]/g," ")+c,p;e.parser==="scss"?p=hc:e.parser==="less"?p=pc:p=fc;let l;try{l=p(f,{...e})}catch{}((s=l==null?void 0:l.nodes)==null?void 0:s.length)===1&&l.nodes[0].type==="css-rule"&&(a=l.nodes[0].nodes)}return a?t.value={type:"css-rule",nodes:a}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let n="";typeof t.selector=="string"&&(n=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(n+=t.raws.between),t.raws.selector=n);let i="";typeof t.value=="string"&&(i=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,i=i.trim(),t.raws.value=i);let o="";if(typeof t.params=="string"&&(o=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(o=t.raws.afterName+o),t.raws.between&&t.raws.between.trim().length>0&&(o=o+t.raws.between),o=o.trim(),t.raws.params=o),n.trim().length>0)return n.startsWith("@")&&n.endsWith(":")?t:t.mixin?(t.selector=le(n,e),t):(Xa(t,e)&&(t.isSCSSNesterProperty=!0),t.selector=re(n),t);if(i.length>0){let a=i.match(cw);a&&(i=i.slice(0,a.index),t.scssDefault=!0,a[0].trim()!=="!default"&&(t.raws.scssDefault=a[0]));let u=i.match(fw);if(u&&(i=i.slice(0,u.index),t.scssGlobal=!0,u[0].trim()!=="!global"&&(t.raws.scssGlobal=u[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};t.value=le(i,e)}if(e.parser==="less"&&t.type==="css-decl"&&i.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=re(i.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let a=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=re(a),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let a=t.params.match(/:--\S+\s+/)[0].trim();return t.customSelector=a,t.selector=re(t.params.slice(a.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")&&!t.params){t.variable=!0;let a=t.name.split(":");t.name=a[0],t.value=le(a.slice(1).join(":"),e)}if(!["page","nest","keyframes"].includes(t.name)&&((r=t.params)==null?void 0:r[0])===":"){t.variable=!0;let a=t.params.slice(1);a&&(t.value=le(a,e)),t.raws.afterName+=":"}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&o.length>0){let{name:a}=t,u=t.name.toLowerCase();return a==="warn"||a==="error"?(t.params={type:"media-unknown",value:o},t):a==="extend"||a==="nest"?(t.selector=re(o),delete t.params,t):a==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(o)?t.params=le(o,e):(t.selector=re(o),delete t.params),t):eu(u)?(t.import=!0,delete t.filename,t.params=le(o,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(a)?(o=o.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),o=o.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),t.value=le(o,e),delete t.params,t):["media","custom-media"].includes(u)?o.includes("#{")?{type:"media-unknown",value:o}:(t.params=ic(o),t):(t.params=o,t)}}return t}function qn(t,e,s){let r=rt(e),{frontMatter:n}=r;e=r.content;let i;try{i=t(e,{map:!1})}catch(o){let{name:a,reason:u,line:c,column:f}=o;throw typeof c!="number"?o:ja(`${a}: ${u}`,{loc:{start:{line:c,column:f}},cause:o})}return s.originalText=e,i=cc(te(i,"css-"),s),bs(i,e),n&&(n.source={startOffset:0,endOffset:n.raw.length},i.frontMatter=n),i}function fc(t,e={}){return qn(ac.default.default,t,e)}function pc(t,e={}){return qn(s=>uc.default.parse(Vi(s)),t,e)}function hc(t,e={}){return qn(lc.default,t,e)}var ac,uc,lc,cw,fw,Dn,pw,hw,dw,mc=E(()=>{J();ac=ce(xt(),1),uc=ce(pa(),1),lc=ce(Qa(),1);Ja();cs();fs();Re();Za();tu();Jl();Sn();oc();At();cw=/(\s*)(!default).*$/,fw=/(\s*)(!global).*$/;Dn={astFormat:"postcss",hasPragma:di,locStart:R,locEnd:I},pw={...Dn,parse:fc},hw={...Dn,parse:pc},dw={...Dn,parse:hc}});var Ln={};Bn(Ln,{languages:()=>to,options:()=>so,parsers:()=>yw,printers:()=>mw});function kc(t){let e=Object.create(null);for(let{importParsers:s,parserNames:r}of t)for(let n of r)e[n]=async()=>Object.assign(e,await s())[n];return e}var Fn=kc;J();var Rt="'",$n='"';function Tc(t,e){let s=e===!0||e===Rt?Rt:$n,r=s===Rt?$n:Rt,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var Un=Tc;J();function Ec(t,e,s){let r=e==='"'?"'":'"',i=S(!1,t,/\\(.)|(["'])/gs,(o,a,u)=>a===r?a:u===e?"\\"+u:u||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a)?a:"\\"+a));return e+i+e}var Wn=Ec;function Sc(t,e){let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":Un(s,e.singleQuote);return Wn(s,r,!(e.parser==="css"||e.parser==="less"||e.parser==="scss"||e.__embeddedInHtml))}var It=Sc;Ve();var Ye="string",Ge="array",Ke="cursor",_e="indent",Te="align",He="trim",Ee="group",ne="fill",fe="if-break",Qe="indent-if-break",je="line-suffix",Je="line-suffix-boundary",X="line",Xe="label",Se="break-parent",qt=new Set([Ke,_e,Te,He,Ee,ne,fe,Qe,je,Je,X,Xe,Se]);function Oc(t){if(typeof t=="string")return Ye;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(qt.has(e))return e}var Ze=Oc;var Ac=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Nc(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
|
|
47
|
+
Expected it to be 'string' or 'object'.`;if(Ze(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=Ac([...qt].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
|
48
|
+
Expected it to be ${r}.`}var as=class extends Error{name="InvalidDocError";constructor(e){super(Nc(e)),this.doc=e}},us=as;var zn=()=>{},pe=zn,Dt=zn;function D(t){return pe(t),{type:_e,contents:t}}function Vn(t,e){return pe(e),{type:Te,contents:e,n:t}}function L(t,e={}){return pe(t),Dt(e.expandedStates,!0),{type:Ee,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Yn(t){return Vn({type:"root"},t)}function he(t){return Vn(-1,t)}function et(t){return Dt(t),{type:ne,parts:t}}function Lt(t,e="",s={}){return pe(t),e!==""&&pe(e),{type:fe,breakContents:t,flatContents:e,groupId:s.groupId}}var tt={type:Se};var Pc={type:X,hard:!0};var N={type:X},B={type:X,soft:!0},_=[Pc,tt];function G(t,e){pe(t),Dt(e);let s=[];for(let r=0;r<e.length;r++)r!==0&&s.push(t),s.push(e[r]);return s}Ce();var Gn=t=>{if(Array.isArray(t))return t;if(t.type!==ne)throw new Error(`Expect doc to be 'array' or '${ne}'.`);return t.parts};function Ic(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(Ze(i)){case Ge:return e(i.map(r));case ne:return e({...i,parts:i.parts.map(r)});case fe:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Ee:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Te:case _e:case Qe:case Xe:case je:return e({...i,contents:r(i.contents)});case Ye:case Ke:case He:case Je:case X:case Se:return e(i);default:throw new us(i)}}}function qc(t){return t.type===X&&!t.hard?t.soft?"":" ":t.type===fe?t.flatContents:t}function Kn(t){return Ic(t,qc)}var ls=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Hn=ls;Ce();J();function Dc(t){return(t==null?void 0:t.type)==="front-matter"}var Oe=Dc;var Lc=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Qn(t,e,s){if(Oe(t)&&t.lang==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Oe(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/.test(t.text))||s.type==="css-root"&&K(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,t.type==="selector-combinator"&&(e.value=S(!1,e.value,/\s+/g," ")),t.type==="media-feature"&&(e.value=S(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=e.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=e.name.toLowerCase()),t.type==="value-number"&&(e.unit=e.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=S(!1,e.value,/;$/g,"")),(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&e.value&&(e.value=Mc(e.value)),t.type==="selector-attribute"&&(e.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(e.namespace=e.namespace.trim(),e.namespace.length===0&&(e.namespace=!0)),e.value&&(e.value=S(!1,e.value.trim(),/^["']|["']$/g,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&e.value&&(e.value=S(!1,e.value,/([\d+.Ee-]+)([A-Za-z]*)/g,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=t.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&r.value.endsWith("[")||r.type==="value-word"&&r.value.startsWith("]")))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}Qn.ignoredProperties=Lc;function Mc(t){return S(!1,S(!1,t,"'",'"'),/\\([^\dA-Fa-f])/g,"$1")}var jn=Qn;async function Bc(t,e){if(t.lang==="yaml"){let s=t.value.trim(),r=s?await e(s,{parser:"yaml"}):"";return Yn([t.startDelimiter,_,r,r?_:"",t.endDelimiter])}}var Jn=Bc;function Xn(t){let{node:e}=t;if(e.type==="front-matter")return async s=>{let r=await Jn(e,s);return r?[r,_]:void 0}}Xn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var Zn=Xn;fs();var st=null;function nt(t){if(st!==null&&typeof st.property){let e=st;return st=nt.prototype=null,e}return st=nt.prototype=t??Object.create(null),new nt}var Jc=10;for(let t=0;t<=Jc;t++)nt();function ps(t){return nt(t)}function Xc(t,e="type"){ps(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var yi=Xc;var Zc={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},gi=Zc;var ef=yi(gi),wi=ef;var tf=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function vi(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var rf=new Set(["initial","inherit","unset","revert"]);function xi(t){return rf.has(t.toLowerCase())}function bi(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function oe(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ae(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function ki(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function Ne(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function _i(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function Ti(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Ei(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Mt(t,e){var r;let s=(r=t.parent)==null?void 0:r.nodes;return s&&s.indexOf(e)===s.length-1}function Si(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/.test(e)||e.value&&/^@.+:.*$/.test(e.value):!1}function Ci(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function Oi(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function Ai(t){return t.type==="value-word"&&t.value==="in"}function Bt(t){return t.type==="value-operator"&&t.value==="*"}function it(t){return t.type==="value-operator"&&t.value==="/"}function Z(t){return t.type==="value-operator"&&t.value==="+"}function me(t){return t.type==="value-operator"&&t.value==="-"}function sf(t){return t.type==="value-operator"&&t.value==="%"}function Ft(t){return Bt(t)||it(t)||Z(t)||me(t)||sf(t)}function Ni(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function Pi(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function ot(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function ds(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/.test(t.raws.params)}function ms(t){return t.name.startsWith("prettier-placeholder")}function Ri(t){return t.prop.startsWith("@prettier-placeholder")}function Ii(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function qi(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function Di(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function ye(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function $t(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function hs(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&$t(t.groups[0])}function ys(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!hs(s)&&!(r&&hs(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||hs(r)||r.type==="value-func")}function gs(t){return t.type==="value-comment"&&t.inline}function Ut(t){return t.type==="value-word"&&t.value==="#"}function ws(t){return t.type==="value-word"&&t.value==="{"}function Wt(t){return t.type==="value-word"&&t.value==="}"}function at(t){return["value-word","value-atword"].includes(t.type)}function zt(t){return(t==null?void 0:t.type)==="value-colon"}function Li(t,e){if(!$t(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:zt(s[r+1])}function Mi(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function Bi(t){return t.type!=="value-func"?!1:tf.has(t.value.toLowerCase())}function Pe(t){return/\/\//.test(t.split(/[\n\r]/).pop())}function ut(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function Fi(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}function lt(t){var e,s;return t.type==="value-paren_group"&&((e=t.open)==null?void 0:e.value)==="("&&((s=t.close)==null?void 0:s.value)===")"}Re();J();function af(t){return t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Yi=af;var ks=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"]]);function Gi(t){let e=t.toLowerCase();return ks.has(e)?ks.get(e):t}var Ki=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,uf=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,lf=/[A-Za-z]+/g,cf=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,ff=new RegExp(Ki.source+`|(${cf.source})?(${uf.source})(${lf.source})?`,"g");function V(t,e){return S(!1,t,Ki,s=>It(s,e))}function Hi(t,e){let s=e.singleQuote?"'":'"';return t.includes('"')||t.includes("'")?t:s+t+s}function ge(t){return t.replace(ff,(e,s,r,n,i)=>!r&&n?_s(n)+oe(i||""):e)}function _s(t){return Yi(t).replace(/\.0(?=$|e)/,"")}function Qi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}Re();function pf(t,e,s){var d;let{node:r}=t,n=t.parent,i=t.grandparent,o=vi(t),a=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=t.findAncestor(m=>m.type==="css-atrule"),c=u&&ot(u,e),f=r.groups.some(m=>gs(m)),p=t.map(s,"groups"),l=[],g=Ae(t,"url"),x=!1,h=!1;for(let m=0;m<r.groups.length;++m){l.push(p[m]);let b=r.groups[m-1],w=r.groups[m],v=r.groups[m+1],P=r.groups[m+2];if(g){(v&&Z(v)||Z(w))&&l.push(" ");continue}if(Ne(t,"forward")&&w.type==="value-word"&&w.value&&b!==void 0&&b.type==="value-word"&&b.value==="as"&&v.type==="value-operator"&&v.value==="*"||!v||w.type==="value-word"&&w.value.endsWith("-")&&ut(v))continue;if(w.type==="value-string"&&w.quoted){let A=w.value.lastIndexOf("#{"),ke=w.value.lastIndexOf("}");A!==-1&&ke!==-1?x=A>ke:A!==-1?x=!0:ke!==-1&&(x=!1)}if(x||zt(w)||zt(v)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&v&&v.type!=="value-comment"||b!=null&&b.value&&b.value.indexOf("\\")===b.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||Ii(w,v)||Ut(w)||ws(w)||Wt(v)||ws(v)&&ye(v)||Wt(w)&&ye(v)||w.value==="--"&&Ut(v))continue;let W=Ft(w),j=Ft(v);if((W&&Ut(v)||j&&Wt(w))&&ye(v)||!b&&it(w)||Ae(t,"calc")&&(Z(w)||Z(v)||me(w)||me(v))&&ye(v))continue;let z=(Z(w)||me(w))&&m===0&&(v.type==="value-number"||v.isHex)&&i&&Bi(i)&&!ye(v),C=(P==null?void 0:P.type)==="value-func"||P&&at(P)||w.type==="value-func"||at(w),O=v.type==="value-func"||at(v)||(b==null?void 0:b.type)==="value-func"||b&&at(b);if(!(!(Bt(v)||Bt(w))&&!Ae(t,"calc")&&!z&&(it(v)&&!C||it(w)&&!O||Z(v)&&!C||Z(w)&&!O||me(v)||me(w))&&(ye(v)||W&&(!b||b&&Ft(b))))&&!((e.parser==="scss"||e.parser==="less")&&W&&w.value==="-"&<(v)&&I(w)===R(v.open)&&v.open.value==="(")){if(gs(w)){if(n.type==="value-paren_group"){l.push(he(_));continue}l.push(_);continue}if(c&&(Ni(v)||Pi(v)||Oi(v)||Ai(w)||Ci(w))){l.push(" ");continue}if(u&&u.name.toLowerCase()==="namespace"){l.push(" ");continue}if(a){w.source&&v.source&&w.source.start.line!==v.source.start.line?(l.push(_),h=!0):l.push(" ");continue}if(j){l.push(" ");continue}if((v==null?void 0:v.value)!=="..."&&!(ut(w)&&ut(v)&&I(w)===R(v))){if(ut(w)&<(v)&&I(w)===R(v.open)){l.push(B);continue}if(w.value==="with"&<(v)){l.push(" ");continue}(d=w.value)!=null&&d.endsWith("#")&&v.value==="{"&<(v.group)||l.push(N)}}}return f&&l.push(tt),h&&l.unshift(_),c?L(D(l)):_i(t)?L(et(l)):L(D(et(l)))}var ji=pf;Ce();function hf(t,e,s){let r=!!(s!=null&&s.backwards);if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===`
|
|
49
|
+
`)return e-2;if(n===`
|
|
50
|
+
`||n==="\r"||n==="\u2028"||n==="\u2029")return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
|
|
51
|
+
`)return e+2;if(n===`
|
|
52
|
+
`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Kt=hf;ct();function df(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;s<t.length;++s)if(t.charAt(s)==="*"&&t.charAt(s+1)==="/")return s+2}return e}var Ji=df;ct();function mf(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?Gt(t,e):e}var Xi=mf;ct();function yf(t,e,s={}){let r=Yt(t,s.backwards?e-1:e,s),n=Kt(t,r,s);return r!==n}var Ht=yf;function gf(t,e){let s=null,r=e;for(;r!==s;)s=r,r=$i(t,r),r=Ji(t,r),r=Yt(t,r);return r=Xi(t,r),r=Kt(t,r),r!==!1&&Ht(t,r)}var Qt=gf;Ve();Re();function wf({node:t,parent:e},s){return!!(t.source&&s.originalText.slice(R(t),R(e.close)).trimEnd().endsWith(","))}function vf(t,e){return Ei(t.grandparent)&&wf(t,e)?",":t.node.type!=="value-comment"&&Qi(e)&&t.callParent(()=>ys(t,e))?Lt(","):""}function Zi(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:g})=>typeof g=="string"?g:s(),"groups");if(n&&Ti(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",G(",",i),r.close?s("close"):""];if(!r.open){let g=Ts(t),x=G([",",g?_:N],i);return D(g?[_,x]:L(et(x)))}let o=t.map(({node:g,isLast:x,index:h})=>{var b;let d=i[h];if($t(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&((b=g.groups[2])==null?void 0:b.type)==="value-paren_group"){let w=Gn(d.contents.contents);w[1]=L(w[1]),d=L(he(d))}let m=[d,x?vf(t,e):","];if(!x&&g.type==="value-comma_group"&&se(g.groups)){let w=K(!1,g.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Qt(e.originalText,I(w))&&m.push(_)}return m},"groups"),a=Li(r,n),u=Fi(r,n),c=ys(t,e),f=u||c&&!a,p=u||a,l=L([r.open?s("open"):"",D([B,G(N,o)]),B,r.close?s("close"):""],{shouldBreak:f});return p?he(l):l}function Ts(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}Re();function xf(t,e,s){let r=[];return t.each(()=>{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(R(n),I(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Ht(e.originalText,R(o),{backwards:!0})&&!Oe(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?N:_),Qt(e.originalText,I(n))&&!Oe(n)&&r.push(_))},"nodes"),r}var Ie=xf;function bf(t,e,s){var n,i,o,a,u,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,_];case"css-root":{let f=Ie(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),_]:"",f,p?` ${p}`:"",r.nodes.length>0?_:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(R(r),I(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Pe(r.selector.value)?N:r.selector?" ":"","{",r.nodes.length>0?D([_,Ie(t,e,s)]):"",_,"}",Si(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),g=l===":",x=typeof r.value=="string"&&/^ *$/.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=qi(r)?Kn(h):h,!g&&Pe(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>Ts(t),"value","group","group"))&&(h=D([_,he(h)])),[S(!1,r.raws.before,/[\s;]/g,""),f.type==="css-atrule"&&f.variable||ki(t)?r.prop:oe(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",D([B,Ie(t,e,s)]),B,"}"]:Ri(r)&&!f.raws.semicolon&&e.originalText[I(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&Mt(t,r)?Lt(";"):";"]}case"css-atrule":{let f=t.parent,p=ms(r)&&!f.raws.semicolon&&e.originalText[I(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",D([r.nodes.length>0?B:"",Ie(t,e,s)]),B,"}"]:"",p?"":";"]}let l=r.name==="import"&&((a=r.params)==null?void 0:a.type)==="value-unknown"&&r.params.value.endsWith(";");return["@",ds(r)||r.name.endsWith(":")?r.name:oe(r.name),r.params?[ds(r)?"":ms(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[_,_]:/^\s*\n/.test(r.raws.afterName)?_:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?D([" ",s("selector")]):"",r.value?L([" ",s("value"),ot(r,e)?Di(r)?" ":N:""]):r.name==="else"?" ":"",r.nodes?[ot(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Pe(r.selector.value)||!r.selector&&typeof r.params=="string"&&Pe(r.params)?N:" ","{",D([r.nodes.length>0?B:"",Ie(t,e,s)]),B,"}"]:p||l?"":";"]}case"media-query-list":{let f=[];return t.each(({node:p})=>{p.type==="media-query"&&p.value===""||f.push(s())},"nodes"),L(D(G(N,f)))}case"media-query":return[G(" ",t.map(s,"nodes")),Mt(t,r)?"":","];case"media-type":return ge(V(r.value,e));case"media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case"media-feature":return oe(V(S(!1,r.value,/ +/g," "),e));case"media-colon":return[r.value," "];case"media-value":return ge(V(r.value,e));case"media-keyword":return V(r.value,e);case"media-url":return V(S(!1,S(!1,r.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),e);case"media-unknown":return r.value;case"selector-root":return L([Ne(t,"custom-selector")?[t.findAncestor(f=>f.type==="css-atrule").customSelector,N]:"",G([",",Ne(t,["extend","custom-selector","nest"])?N:_],t.map(s,"nodes"))]);case"selector-selector":return L(D(t.map(s,"nodes")));case"selector-comment":return r.value;case"selector-string":return V(r.value,e);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",((u=t.previous)==null?void 0:u.type)==="selector-nesting"?r.value:ge(bi(t,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",ge(V(r.value,e))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?Hi(V(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let l=t.parent;return[l.type==="selector-selector"&&l.nodes[0]===r?"":N,r.value,Mt(t,r)?"":" "]}let f=r.value.trim().startsWith("(")?N:"",p=ge(V(r.value.trim(),e))||N;return[f,p]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[oe(r.value),se(r.nodes)?L(["(",D([B,G([",",N],t.map(s,"nodes"))]),B,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{let f=t.findAncestor(g=>g.type==="css-rule");if(f!=null&&f.isSCSSNesterProperty)return ge(V(oe(r.value),e));let p=t.parent;if((c=p.raws)!=null&&c.selector){let g=R(p),x=g+p.raws.selector.length;return e.originalText.slice(g,x).trim()}let l=t.grandparent;if(p.type==="value-paren_group"&&(l==null?void 0:l.type)==="value-func"&&l.value==="selector"){let g=I(p.open)+1,x=R(p.close),h=e.originalText.slice(g,x).trim();return Pe(h)?[tt,h]:h}return r.value}case"value-value":case"value-root":return s("group");case"value-comment":return e.originalText.slice(R(r),I(r));case"value-comma_group":return ji(t,e,s);case"value-paren_group":return Zi(t,e,s);case"value-func":return[r.value,Ne(t,"supports")&&Mi(r)?" ":"",s("group")];case"value-paren":return r.value;case"value-number":return[_s(r.value),Gi(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||xi(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:f}=t;return[r.value,typeof(f==null?void 0:f.value)=="string"&&f.value.endsWith("\\")||Ae(t,"url")?"":N]}case"value-string":return It(r.raws.quote+r.value+r.raws.quote,e);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;case"value-comma":default:throw new Hn(r,"PostCSS")}}var kf={print:bf,embed:Zn,insertPragma:mi,massageAstNode:jn,getVisitorKeys:wi},eo=kf;var to=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}];var ro={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var _f={singleQuote:ro.singleQuote},so=_f;var mw={postcss:eo},yw=Fn([{importParsers:()=>Promise.resolve().then(()=>(mc(),dc)),parserNames:["css","less","scss"]}]);export{Ln as default,to as languages,so as options,yw as parsers,mw as printers};
|