prettier 3.0.0-alpha.2 → 3.0.0-alpha.3

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.
@@ -37,7 +37,7 @@
37
37
  `," "],rg=["{","}","|","\\","^","`"].concat(tg),jn=["'"].concat(rg),Ua=["%","/","?",";","#"].concat(jn),Ba=["/","?","#"],ng=255,$a=/^[+a-z0-9A-Z_-]{0,63}$/,ig=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sg={javascript:!0,"javascript:":!0},Un={javascript:!0,"javascript:":!0},Te={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};j.prototype.parse=function(t,e,r){return Fa(this,t,e,r)};j.prototype.format=function(){return Bn(this)};j.prototype.resolve=function(t){return this.resolveObject(Ke(t,!1,!0)).format()};j.prototype.resolveObject=function(t){if(H(t)){var e=new j;e.parse(t,!1,!0),t=e}for(var r=new j,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),u=0;u<s.length;u++){var a=s[u];a!=="protocol"&&(r[a]=t[a])}return Te[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}var l;if(t.protocol&&t.protocol!==r.protocol){if(!Te[t.protocol]){for(var h=Object.keys(t),p=0;p<h.length;p++){var f=h[p];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!Un[t.protocol]){for(l=(t.pathname||"").split("/");l.length&&!(t.host=l.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),l[0]!==""&&l.unshift(""),l.length<2&&l.unshift(""),r.pathname=l.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var g=r.pathname||"",x=r.search||"";r.path=g+x}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",w=t.host||t.pathname&&t.pathname.charAt(0)==="/",y=w||m||r.host&&t.pathname,E=y,b=r.pathname&&r.pathname.split("/")||[],A=r.protocol&&!Te[r.protocol];l=t.pathname&&t.pathname.split("/")||[],A&&(r.hostname="",r.port=null,r.host&&(b[0]===""?b[0]=r.host:b.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(l[0]===""?l[0]=t.host:l.unshift(t.host)),t.host=null),y=y&&(l[0]===""||b[0]===""));var S;if(w)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,b=l;else if(l.length)b||(b=[]),b.pop(),b=b.concat(l),r.search=t.search,r.query=t.query;else if(!qt(t.search))return A&&(r.hostname=r.host=b.shift(),S=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1,S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())),r.search=t.search,r.query=t.query,(!$(r.pathname)||!$(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=b.slice(-1)[0],L=(r.host||t.host||b.length>1)&&(C==="."||C==="..")||C==="",q=0,O=b.length;O>=0;O--)C=b[O],C==="."?b.splice(O,1):C===".."?(b.splice(O,1),q++):q&&(b.splice(O,1),q--);if(!y&&!E)for(;q--;q)b.unshift("..");y&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),L&&b.join("/").substr(-1)!=="/"&&b.push("");var T=b[0]===""||b[0]&&b[0].charAt(0)==="/";return A&&(r.hostname=r.host=T?"":b.length?b.shift():"",S=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1,S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())),y=y||r.host&&b.length,y&&!T&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),(!$(r.pathname)||!$(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};j.prototype.parseHost=function(){return Ha(this)}});var Ka=v((O0,wr)=>{c();var ae=(Qa(),lt(Ja));if(ae&&ae.default){wr.exports=ae.default;for(let t in ae)wr.exports[t]=ae[t]}else ae&&(wr.exports=ae)});var su={};ut(su,{basename:()=>nu,default:()=>ag,delimiter:()=>tu,dirname:()=>ru,extname:()=>iu,isAbsolute:()=>Wn,join:()=>Za,normalize:()=>Fn,relative:()=>Xa,resolve:()=>vr,sep:()=>eu});function Ya(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];i==="."?t.splice(n,1):i===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function vr(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;t=n+"/"+t,e=n.charAt(0)==="/"}return t=Ya(Vn(t.split("/"),function(i){return!!i}),!e).join("/"),(e?"/":"")+t||"."}function Fn(t){var e=Wn(t),r=ug(t,-1)==="/";return t=Ya(Vn(t.split("/"),function(n){return!!n}),!e).join("/"),!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function Wn(t){return t.charAt(0)==="/"}function Za(){var t=Array.prototype.slice.call(arguments,0);return Fn(Vn(t,function(e,r){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function Xa(t,e){t=vr(t).substr(1),e=vr(e).substr(1);function r(l){for(var h=0;h<l.length&&l[h]==="";h++);for(var p=l.length-1;p>=0&&l[p]==="";p--);return h>p?[]:l.slice(h,p-h+1)}for(var n=r(t.split("/")),i=r(e.split("/")),o=Math.min(n.length,i.length),s=o,u=0;u<o;u++)if(n[u]!==i[u]){s=u;break}for(var a=[],u=s;u<n.length;u++)a.push("..");return a=a.concat(i.slice(s)),a.join("/")}function ru(t){var e=$n(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}function nu(t,e){var r=$n(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}function iu(t){return $n(t)[3]}function Vn(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var og,$n,eu,tu,ag,ug,ou=Q(()=>{c();og=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,$n=function(t){return og.exec(t).slice(1)};eu="/",tu=":";ag={extname:iu,basename:nu,dirname:ru,sep:eu,delimiter:tu,relative:Xa,join:Za,isAbsolute:Wn,normalize:Fn,resolve:vr};ug="ab".substr(-1)==="b"?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}});var au=v((_0,xr)=>{c();var ue=(ou(),lt(su));if(ue&&ue.default){xr.exports=ue.default;for(let t in ue)xr.exports[t]=ue[t]}else ue&&(xr.exports=ue)});var lu=v((A0,uu)=>{c();var lg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cg=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},fg=(t=21)=>{let e="",r=t;for(;r--;)e+=lg[Math.random()*64|0];return e};uu.exports={nanoid:fg,customAlphabet:cg}});var Gn=v((q0,cu)=>{c();cu.exports=class{}});var Ee=v((I0,du)=>{"use strict";c();var{SourceMapConsumer:hg,SourceMapGenerator:pg}=qa(),{fileURLToPath:fu,pathToFileURL:br}=Ka(),{resolve:Qn,isAbsolute:Kn}=au(),{nanoid:dg}=lu(),Hn=_n(),hu=ir(),mg=Gn(),Jn=Symbol("fromOffsetCache"),gg=Boolean(hg&&pg),pu=Boolean(Qn&&Kn),_e=class{constructor(e,r={}){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,r.from&&(!pu||/^\w+:\/\//.test(r.from)||Kn(r.from)?this.file=r.from:this.file=Qn(r.from)),pu&&gg){let n=new mg(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+dg(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let r,n;if(this[Jn])n=this[Jn];else{let o=this.css.split(`
38
38
  `);n=new Array(o.length);let s=0;for(let u=0,a=o.length;u<a;u++)n[u]=s,s+=o[u].length+1;this[Jn]=n}r=n[n.length-1];let i=0;if(e>=r)i=n.length-1;else{let o=n.length-2,s;for(;i<o;)if(s=i+(o-i>>1),e<n[s])o=s-1;else if(e>=n[s+1])i=s+1;else{i=s;break}}return{line:i+1,col:e-n[i]+1}}error(e,r,n,i={}){let o,s,u;if(r&&typeof r=="object"){let l=r,h=n;if(typeof r.offset=="number"){let p=this.fromOffset(l.offset);r=p.line,n=p.col}else r=l.line,n=l.column;if(typeof h.offset=="number"){let p=this.fromOffset(h.offset);s=p.line,u=p.col}else s=h.line,u=h.column}else if(!n){let l=this.fromOffset(r);r=l.line,n=l.col}let a=this.origin(r,n,s,u);return a?o=new hu(e,a.endLine===void 0?a.line:{line:a.line,column:a.column},a.endLine===void 0?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,i.plugin):o=new hu(e,s===void 0?r:{line:r,column:n},s===void 0?n:{line:s,column:u},this.css,this.file,i.plugin),o.input={line:r,column:n,endLine:s,endColumn:u,source:this.css},this.file&&(br&&(o.input.url=br(this.file).toString()),o.input.file=this.file),o}origin(e,r,n,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({line:e,column:r});if(!s.source)return!1;let u;typeof n=="number"&&(u=o.originalPositionFor({line:n,column:i}));let a;Kn(s.source)?a=br(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||br(this.map.mapFile));let l={url:a.toString(),line:s.line,column:s.column,endLine:u&&u.line,endColumn:u&&u.column};if(a.protocol==="file:")if(fu)l.file=fu(a);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(s.source);return h&&(l.source=h),l}mapResolve(e){return/^\w+:\/\//.test(e)?e:Qn(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};du.exports=_e;_e.default=_e;Hn&&Hn.registerInput&&Hn.registerInput(_e)});var Ye=v((M0,mu)=>{"use strict";c();var yg=Z(),wg=yr(),vg=Ee();function kr(t,e){let r=new vg(t,e),n=new wg(r);try{n.parse()}catch(i){throw i}return n.root}mu.exports=kr;kr.default=kr;yg.registerParse(kr)});var gu=v((L0,Yn)=>{c();var xg=dr(),bg=Ee();Yn.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,r=[],n,i;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){r.push(t[1].substring(0,t[1].indexOf(`
39
39
  `))),i=t[1].substring(t[1].indexOf(`
40
- `));let s=this.input.css.valueOf().substring(this.tokenizer.position());i+=s,n=t[3]+s.length-i.length}else this.tokenizer.back(t);break}r.push(t[1]),n=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let o=["comment",r.join(""),e[2],n];return this.inlineComment(o),i&&(this.input=new bg(i),this.tokenizer=xg(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),Yn.exports.isInlineComment.bind(this)(t)}return!1}}});var wu=v((j0,yu)=>{c();yu.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],r=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&r.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let n=e.map(u=>u[1]),[i]=e,o=e.pop(),s=["word",n.join(""),i[2],o[2]];return this.tokenizer.back(t),this.tokenizer.back(s),!0}}});var xu=v((B0,vu)=>{c();var kg=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Og=/\.[0-9]/,Sg=t=>{let[,e]=t,[r]=e;return(r==="."||r==="#")&&kg.test(e)===!1&&Og.test(e)===!1};vu.exports={isMixinToken:Sg}});var ku=v((F0,bu)=>{c();var Tg=dr(),_g=/^url\((.+)\)/;bu.exports=t=>{let{name:e,params:r=""}=t;if(e==="import"&&r.length){t.import=!0;let n=Tg({css:r});for(t.filename=r.replace(_g,"$1");!n.endOfFile();){let[i,o]=n.nextToken();if(i==="word"&&o==="url")return;if(i==="brackets"){t.options=o,t.filename=r.replace(o,"").trim();break}}}}});var _u=v((V0,Tu)=>{c();var Ou=/:$/,Su=/^:(\s+)?/;Tu.exports=t=>{let{name:e,params:r=""}=t;if(t.name.slice(-1)===":"){if(Ou.test(e)){let[n]=e.match(Ou);t.name=e.replace(n,""),t.raws.afterName=n+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(Su.test(r)){let[n]=r.match(Su);t.value=r.replace(n,""),t.raws.afterName=(t.raws.afterName||"")+n,t.variable=!0}}}});var Cu=v((J0,Au)=>{c();var Eg=xe(),Ag=yr(),{isInlineComment:Cg}=gu(),{interpolation:Eu}=wu(),{isMixinToken:qg}=xu(),Rg=ku(),Pg=_u(),Ig=/(!\s*important)$/i;Au.exports=class extends Ag{constructor(...e){super(...e),this.lastNode=null}atrule(e){Eu.bind(this)(e)||(super.atrule(e),Rg(this.lastNode),Pg(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 r=e.findIndex(u=>u[0]==="("),n=e.reverse().find(u=>u[0]===")"),i=e.reverse().indexOf(n),s=e.splice(r,i).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=s}init(e,r,n){super.init(e,r,n),this.lastNode=e}inlineComment(e){let r=new Eg,n=e[1].slice(2);if(this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.inline=!0,r.raws.begin="//",/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,r.raws.left,r.text,r.raws.right]=i}}mixin(e){let[r]=e,n=r[1].slice(0,1),i=e.findIndex(l=>l[0]==="brackets"),o=e.findIndex(l=>l[0]==="("),s="";if((i<0||i>3)&&o>0){let l=e.reduce((b,A,S)=>A[0]===")"?S:b),p=e.slice(o,l+o).map(b=>b[1]).join(""),[f]=e.slice(o),g=[f[2],f[3]],[x]=e.slice(l,l+1),m=[x[2],x[3]],w=["brackets",p].concat(g,m),y=e.slice(0,o),E=e.slice(l+1);e=y,e.push(w),e=e.concat(E)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,h=e.indexOf(l),p=u[u.length-1],f=[l[2],l[3]],g=[p[4],p[5]],x=u.map(w=>w[1]).join(""),m=["word",x].concat(f,g);e.splice(h,u.length,m)}let a=e.findIndex(l=>Ig.test(l[1]));a>0&&([,s]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,s&&(this.lastNode.important=!0,this.lastNode.raws.important=s)}other(e){Cg.bind(this)(e)||super.other(e)}rule(e){let r=e[e.length-1],n=e[e.length-2];if(n[0]==="at-word"&&r[0]==="{"&&(this.tokenizer.back(r),Eu.bind(this)(n))){let o=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([o]);for(let s of e.reverse())this.tokenizer.back(s);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[r]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(qg(r)){this.mixin(e);return}super.unknownWord(e)}}});var Ru=v((Y0,qu)=>{c();var Ng=sr();qu.exports=class extends Ng{atrule(e,r){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,r);return}let i=`${e.function?"":e.raws.identifier||"@"}${e.name}`,o=e.params?this.rawValue(e,"params"):"",s=e.raws.important||"";if(e.variable&&(o=e.value),typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o+s);else{let u=(e.raws.between||"")+s+(r?";":"");this.builder(i+o+u,e)}}comment(e){if(e.inline){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(`//${r}${e.text}${n}`,e)}else super.comment(e)}}});var Pu=v((X0,Zn)=>{c();var Mg=Ee(),Dg=Cu(),Lg=Ru();Zn.exports={parse(t,e){let r=new Mg(t,e),n=new Dg(r);return n.parse(),n.root.walk(i=>{let o=r.css.lastIndexOf(i.source.input.css);if(o===0)return;if(o+i.source.input.css.length!==r.css.length)throw new Error("Invalid state detected in postcss-less");let s=o+i.source.start.offset,u=r.fromOffset(o+i.source.start.offset);if(i.source.start={offset:s,line:u.line,column:u.col},i.source.end){let a=o+i.source.end.offset,l=r.fromOffset(o+i.source.end.offset);i.source.end={offset:a,line:l.line,column:l.col}}}),n.root},stringify(t,e){new Lg(e).stringify(t)},nodeToString(t){let e="";return Zn.exports.stringify(t,r=>{e+=r}),e}}});var Xn=v((tb,Iu)=>{c();Iu.exports=class{generate(){}}});var Or=v((ib,Du)=>{"use strict";c();var zg=Z(),Nu,Mu,le=class extends zg{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Nu(new Mu,this,e).stringify()}};le.registerLazyResult=t=>{Nu=t};le.registerProcessor=t=>{Mu=t};Du.exports=le;le.default=le});var ei=v((ob,zu)=>{"use strict";c();var Lu={};zu.exports=function(e){Lu[e]||(Lu[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ti=v((ub,ju)=>{"use strict";c();var Ze=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}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}};ju.exports=Ze;Ze.default=Ze});var Sr=v((cb,Uu)=>{"use strict";c();var jg=ti(),Xe=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new jg(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Uu.exports=Xe;Xe.default=Xe});var ii=v((pb,Wu)=>{"use strict";c();var{isClean:W,my:Ug}=nr(),Bg=Xn(),$g=Ue(),Fg=Z(),Wg=Or(),hb=ei(),Bu=Sr(),Vg=Ye(),Gg=ke(),Hg={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Jg={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},Qg={postcssPlugin:!0,prepare:!0,Once:!0},Ae=0;function et(t){return typeof t=="object"&&typeof t.then=="function"}function Fu(t){let e=!1,r=Hg[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ae,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ae,r+"Exit"]:[r,r+"Exit"]}function $u(t){let e;return t.type==="document"?e=["Document",Ae,"DocumentExit"]:t.type==="root"?e=["Root",Ae,"RootExit"]:e=Fu(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function ri(t){return t[W]=!1,t.nodes&&t.nodes.forEach(e=>ri(e)),t}var ni={},V=class{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=ri(r);else if(r instanceof V||r instanceof Bu)i=ri(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let o=Vg;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[Ug]&&Fg.rebuild(i)}this.result=new Bu(e,i,n),this.helpers={...ni,result:this.result,postcss:ni},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}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,r){return this.async().then(e,r)}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 r=this.runOnRoot(e);if(et(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);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,r=$g;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new Bg(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}walkSync(e){e[W]=!0;let r=Fu(e);for(let n of r)if(n===Ae)e.nodes&&e.each(i=>{i[W]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(et(o))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return et(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(et(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let r=[$u(e)];for(;r.length>0;){let n=this.visitTick(r);if(et(n))try{await n}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Jg[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Qg[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[s,u]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=s;try{return u(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(r.iterator!==0){let s=r.iterator,u;for(;u=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!u[W]){u[W]=!0,e.push($u(u));return}r.iterator=0,delete n.indexes[s]}let o=r.events;for(;r.eventIndex<o.length;){let s=o[r.eventIndex];if(r.eventIndex+=1,s===Ae){n.nodes&&n.nodes.length&&(n[W]=!0,r.iterator=n.getIterator());return}else if(this.listeners[s]){r.visitors=this.listeners[s];return}}e.pop()}};V.registerPostcss=t=>{ni=t};Wu.exports=V;V.default=V;Gg.registerLazyResult(V);Wg.registerLazyResult(V)});var Gu=v((gb,Vu)=>{"use strict";c();var Kg=Xn(),Yg=Ue(),mb=ei(),Zg=Ye(),Xg=Sr(),tt=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,o=Yg;this.result=new Xg(this._processor,i,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let u=new Kg(o,i,this._opts,r);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),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,r=Zg;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,r){return this.async().then(e,r)}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}};Vu.exports=tt;tt.default=tt});var Ju=v((wb,Hu)=>{"use strict";c();var ey=Gu(),ty=ii(),ry=Or(),ny=ke(),ce=class{constructor(e=[]){this.version="8.4.17",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,r={}){return this.plugins.length===0&&typeof r.parser>"u"&&typeof r.stringifier>"u"&&typeof r.syntax>"u"?new ey(this,e,r):new ty(this,e,r)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}};Hu.exports=ce;ce.default=ce;ny.registerProcessor(ce);ry.registerProcessor(ce)});var Ku=v((xb,Qu)=>{"use strict";c();var iy=We(),sy=Gn(),oy=xe(),ay=mr(),uy=Ee(),ly=ke(),cy=gr();function rt(t,e){if(Array.isArray(t))return t.map(i=>rt(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let o={...i,__proto__:uy.prototype};o.map&&(o.map={...o.map,__proto__:sy.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>rt(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new ly(n);if(n.type==="decl")return new iy(n);if(n.type==="rule")return new cy(n);if(n.type==="comment")return new oy(n);if(n.type==="atrule")return new ay(n);throw new Error("Unknown node type: "+t.type)}Qu.exports=rt;rt.default=rt});var Tr=v((kb,nl)=>{"use strict";c();var fy=ir(),Yu=We(),hy=ii(),py=Z(),si=Ju(),dy=Ue(),my=Ku(),Zu=Or(),gy=ti(),Xu=xe(),el=mr(),yy=Sr(),wy=Ee(),vy=Ye(),xy=Pn(),tl=gr(),rl=ke(),by=$e();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new si(t)}k.plugin=function(e,r){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
40
+ `));let s=this.input.css.valueOf().substring(this.tokenizer.position());i+=s,n=t[3]+s.length-i.length}else this.tokenizer.back(t);break}r.push(t[1]),n=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let o=["comment",r.join(""),e[2],n];return this.inlineComment(o),i&&(this.input=new bg(i),this.tokenizer=xg(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),Yn.exports.isInlineComment.bind(this)(t)}return!1}}});var wu=v((j0,yu)=>{c();yu.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],r=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&r.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let n=e.map(u=>u[1]),[i]=e,o=e.pop(),s=["word",n.join(""),i[2],o[2]];return this.tokenizer.back(t),this.tokenizer.back(s),!0}}});var xu=v((B0,vu)=>{c();var kg=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Og=/\.[0-9]/,Sg=t=>{let[,e]=t,[r]=e;return(r==="."||r==="#")&&kg.test(e)===!1&&Og.test(e)===!1};vu.exports={isMixinToken:Sg}});var ku=v((F0,bu)=>{c();var Tg=dr(),_g=/^url\((.+)\)/;bu.exports=t=>{let{name:e,params:r=""}=t;if(e==="import"&&r.length){t.import=!0;let n=Tg({css:r});for(t.filename=r.replace(_g,"$1");!n.endOfFile();){let[i,o]=n.nextToken();if(i==="word"&&o==="url")return;if(i==="brackets"){t.options=o,t.filename=r.replace(o,"").trim();break}}}}});var _u=v((V0,Tu)=>{c();var Ou=/:$/,Su=/^:(\s+)?/;Tu.exports=t=>{let{name:e,params:r=""}=t;if(t.name.slice(-1)===":"){if(Ou.test(e)){let[n]=e.match(Ou);t.name=e.replace(n,""),t.raws.afterName=n+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(Su.test(r)){let[n]=r.match(Su);t.value=r.replace(n,""),t.raws.afterName=(t.raws.afterName||"")+n,t.variable=!0}}}});var Cu=v((J0,Au)=>{c();var Eg=xe(),Ag=yr(),{isInlineComment:Cg}=gu(),{interpolation:Eu}=wu(),{isMixinToken:qg}=xu(),Rg=ku(),Pg=_u(),Ig=/(!\s*important)$/i;Au.exports=class extends Ag{constructor(...e){super(...e),this.lastNode=null}atrule(e){Eu.bind(this)(e)||(super.atrule(e),Rg(this.lastNode),Pg(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 r=e.findIndex(u=>u[0]==="("),n=e.reverse().find(u=>u[0]===")"),i=e.reverse().indexOf(n),s=e.splice(r,i).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=s}init(e,r,n){super.init(e,r,n),this.lastNode=e}inlineComment(e){let r=new Eg,n=e[1].slice(2);if(this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.inline=!0,r.raws.begin="//",/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,r.raws.left,r.text,r.raws.right]=i}}mixin(e){let[r]=e,n=r[1].slice(0,1),i=e.findIndex(l=>l[0]==="brackets"),o=e.findIndex(l=>l[0]==="("),s="";if((i<0||i>3)&&o>0){let l=e.reduce((b,A,S)=>A[0]===")"?S:b),p=e.slice(o,l+o).map(b=>b[1]).join(""),[f]=e.slice(o),g=[f[2],f[3]],[x]=e.slice(l,l+1),m=[x[2],x[3]],w=["brackets",p].concat(g,m),y=e.slice(0,o),E=e.slice(l+1);e=y,e.push(w),e=e.concat(E)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,h=e.indexOf(l),p=u[u.length-1],f=[l[2],l[3]],g=[p[4],p[5]],x=u.map(w=>w[1]).join(""),m=["word",x].concat(f,g);e.splice(h,u.length,m)}let a=e.findIndex(l=>Ig.test(l[1]));a>0&&([,s]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,s&&(this.lastNode.important=!0,this.lastNode.raws.important=s)}other(e){Cg.bind(this)(e)||super.other(e)}rule(e){let r=e[e.length-1],n=e[e.length-2];if(n[0]==="at-word"&&r[0]==="{"&&(this.tokenizer.back(r),Eu.bind(this)(n))){let o=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([o]);for(let s of e.reverse())this.tokenizer.back(s);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[r]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(qg(r)){this.mixin(e);return}super.unknownWord(e)}}});var Ru=v((Y0,qu)=>{c();var Ng=sr();qu.exports=class extends Ng{atrule(e,r){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,r);return}let i=`${e.function?"":e.raws.identifier||"@"}${e.name}`,o=e.params?this.rawValue(e,"params"):"",s=e.raws.important||"";if(e.variable&&(o=e.value),typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o+s);else{let u=(e.raws.between||"")+s+(r?";":"");this.builder(i+o+u,e)}}comment(e){if(e.inline){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(`//${r}${e.text}${n}`,e)}else super.comment(e)}}});var Pu=v((X0,Zn)=>{c();var Mg=Ee(),Dg=Cu(),Lg=Ru();Zn.exports={parse(t,e){let r=new Mg(t,e),n=new Dg(r);return n.parse(),n.root.walk(i=>{let o=r.css.lastIndexOf(i.source.input.css);if(o===0)return;if(o+i.source.input.css.length!==r.css.length)throw new Error("Invalid state detected in postcss-less");let s=o+i.source.start.offset,u=r.fromOffset(o+i.source.start.offset);if(i.source.start={offset:s,line:u.line,column:u.col},i.source.end){let a=o+i.source.end.offset,l=r.fromOffset(o+i.source.end.offset);i.source.end={offset:a,line:l.line,column:l.col}}}),n.root},stringify(t,e){new Lg(e).stringify(t)},nodeToString(t){let e="";return Zn.exports.stringify(t,r=>{e+=r}),e}}});var Xn=v((tb,Iu)=>{c();Iu.exports=class{generate(){}}});var Or=v((ib,Du)=>{"use strict";c();var zg=Z(),Nu,Mu,le=class extends zg{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Nu(new Mu,this,e).stringify()}};le.registerLazyResult=t=>{Nu=t};le.registerProcessor=t=>{Mu=t};Du.exports=le;le.default=le});var ei=v((ob,zu)=>{"use strict";c();var Lu={};zu.exports=function(e){Lu[e]||(Lu[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ti=v((ub,ju)=>{"use strict";c();var Ze=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}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}};ju.exports=Ze;Ze.default=Ze});var Sr=v((cb,Uu)=>{"use strict";c();var jg=ti(),Xe=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new jg(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Uu.exports=Xe;Xe.default=Xe});var ii=v((pb,Wu)=>{"use strict";c();var{isClean:W,my:Ug}=nr(),Bg=Xn(),$g=Ue(),Fg=Z(),Wg=Or(),hb=ei(),Bu=Sr(),Vg=Ye(),Gg=ke(),Hg={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Jg={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},Qg={postcssPlugin:!0,prepare:!0,Once:!0},Ae=0;function et(t){return typeof t=="object"&&typeof t.then=="function"}function Fu(t){let e=!1,r=Hg[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ae,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ae,r+"Exit"]:[r,r+"Exit"]}function $u(t){let e;return t.type==="document"?e=["Document",Ae,"DocumentExit"]:t.type==="root"?e=["Root",Ae,"RootExit"]:e=Fu(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function ri(t){return t[W]=!1,t.nodes&&t.nodes.forEach(e=>ri(e)),t}var ni={},V=class{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=ri(r);else if(r instanceof V||r instanceof Bu)i=ri(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let o=Vg;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[Ug]&&Fg.rebuild(i)}this.result=new Bu(e,i,n),this.helpers={...ni,result:this.result,postcss:ni},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}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,r){return this.async().then(e,r)}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 r=this.runOnRoot(e);if(et(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);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,r=$g;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new Bg(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}walkSync(e){e[W]=!0;let r=Fu(e);for(let n of r)if(n===Ae)e.nodes&&e.each(i=>{i[W]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(et(o))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return et(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(et(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let r=[$u(e)];for(;r.length>0;){let n=this.visitTick(r);if(et(n))try{await n}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Jg[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Qg[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[s,u]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=s;try{return u(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(r.iterator!==0){let s=r.iterator,u;for(;u=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!u[W]){u[W]=!0,e.push($u(u));return}r.iterator=0,delete n.indexes[s]}let o=r.events;for(;r.eventIndex<o.length;){let s=o[r.eventIndex];if(r.eventIndex+=1,s===Ae){n.nodes&&n.nodes.length&&(n[W]=!0,r.iterator=n.getIterator());return}else if(this.listeners[s]){r.visitors=this.listeners[s];return}}e.pop()}};V.registerPostcss=t=>{ni=t};Wu.exports=V;V.default=V;Gg.registerLazyResult(V);Wg.registerLazyResult(V)});var Gu=v((gb,Vu)=>{"use strict";c();var Kg=Xn(),Yg=Ue(),mb=ei(),Zg=Ye(),Xg=Sr(),tt=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,o=Yg;this.result=new Xg(this._processor,i,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let u=new Kg(o,i,this._opts,r);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),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,r=Zg;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,r){return this.async().then(e,r)}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}};Vu.exports=tt;tt.default=tt});var Ju=v((wb,Hu)=>{"use strict";c();var ey=Gu(),ty=ii(),ry=Or(),ny=ke(),ce=class{constructor(e=[]){this.version="8.4.18",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,r={}){return this.plugins.length===0&&typeof r.parser>"u"&&typeof r.stringifier>"u"&&typeof r.syntax>"u"?new ey(this,e,r):new ty(this,e,r)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}};Hu.exports=ce;ce.default=ce;ny.registerProcessor(ce);ry.registerProcessor(ce)});var Ku=v((xb,Qu)=>{"use strict";c();var iy=We(),sy=Gn(),oy=xe(),ay=mr(),uy=Ee(),ly=ke(),cy=gr();function rt(t,e){if(Array.isArray(t))return t.map(i=>rt(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let o={...i,__proto__:uy.prototype};o.map&&(o.map={...o.map,__proto__:sy.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>rt(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new ly(n);if(n.type==="decl")return new iy(n);if(n.type==="rule")return new cy(n);if(n.type==="comment")return new oy(n);if(n.type==="atrule")return new ay(n);throw new Error("Unknown node type: "+t.type)}Qu.exports=rt;rt.default=rt});var Tr=v((kb,nl)=>{"use strict";c();var fy=ir(),Yu=We(),hy=ii(),py=Z(),si=Ju(),dy=Ue(),my=Ku(),Zu=Or(),gy=ti(),Xu=xe(),el=mr(),yy=Sr(),wy=Ee(),vy=Ye(),xy=Pn(),tl=gr(),rl=ke(),by=$e();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new si(t)}k.plugin=function(e,r){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
41
41
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),d.env.LANG&&d.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
42
42
  https://www.w3ctech.com/topic/2226`));let u=r(...s);return u.postcssPlugin=e,u.postcssVersion=new si().version,u}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(s,u,a){return k([i(a)]).process(s,u)},i};k.stringify=dy;k.parse=vy;k.fromJSON=my;k.list=xy;k.comment=t=>new Xu(t);k.atRule=t=>new el(t);k.decl=t=>new Yu(t);k.rule=t=>new tl(t);k.root=t=>new rl(t);k.document=t=>new Zu(t);k.CssSyntaxError=fy;k.Declaration=Yu;k.Container=py;k.Processor=si;k.Document=Zu;k.Comment=Xu;k.Warning=gy;k.AtRule=el;k.Result=yy;k.Input=wy;k.Rule=tl;k.Root=rl;k.Node=by;hy.registerPostcss(k);nl.exports=k;k.default=k});var sl=v((Sb,il)=>{c();var{Container:ky}=Tr(),oi=class extends ky{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};il.exports=oi});var fl=v((_b,cl)=>{"use strict";c();var ai="'".charCodeAt(0),ui='"'.charCodeAt(0),nt="\\".charCodeAt(0),_r="/".charCodeAt(0),li=`
43
43
  `.charCodeAt(0),Er=" ".charCodeAt(0),ci="\f".charCodeAt(0),fi=" ".charCodeAt(0),hi="\r".charCodeAt(0),Oy="[".charCodeAt(0),Sy="]".charCodeAt(0),ol="(".charCodeAt(0),al=")".charCodeAt(0),Ar="{".charCodeAt(0),ul="}".charCodeAt(0),Ty=";".charCodeAt(0),_y="*".charCodeAt(0),Ey=":".charCodeAt(0),Ay="@".charCodeAt(0),Cy=",".charCodeAt(0),pi="#".charCodeAt(0),Cr=/[\t\n\f\r "#'()/;[\\\]{}]/g,qr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qy=/.[\n"'(/\\]/,ll=/[\da-f]/i,Rr=/[\n\f\r]/g;cl.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,o,s,u,a,l,h,p,f,g,x=n.length,m=0,w=[],y=[],E;function b(){return m}function A(O){throw e.error("Unclosed "+O,m)}function S(){return y.length===0&&m>=x}function C(){let O=1,T=!1,R=!1;for(;O>0;)s+=1,n.length<=s&&A("interpolation"),o=n.charCodeAt(s),f=n.charCodeAt(s+1),T?!R&&o===T?(T=!1,R=!1):o===nt?R=!R:R&&(R=!1):o===ai||o===ui?T=o:o===ul?O-=1:o===pi&&f===Ar&&(O+=1)}function L(O){if(y.length)return y.pop();if(m>=x)return;let T=O?O.ignoreUnclosed:!1;switch(o=n.charCodeAt(m),o){case li:case Er:case fi:case hi:case ci:{s=m;do s+=1,o=n.charCodeAt(s);while(o===Er||o===li||o===fi||o===hi||o===ci);g=["space",n.slice(m,s)],m=s-1;break}case Oy:case Sy:case Ar:case ul:case Ey:case Ty:case al:{let R=String.fromCharCode(o);g=[R,R,m];break}case Cy:{g=["word",",",m,m+1];break}case ol:{if(p=w.length?w.pop()[1]:"",f=n.charCodeAt(m+1),p==="url"&&f!==ai&&f!==ui){for(E=1,h=!1,s=m+1;s<=n.length-1;){if(f=n.charCodeAt(s),f===nt)h=!h;else if(f===ol)E+=1;else if(f===al&&(E-=1,E===0))break;s+=1}a=n.slice(m,s+1),g=["brackets",a,m,s],m=s}else s=n.indexOf(")",m+1),a=n.slice(m,s+1),s===-1||qy.test(a)?g=["(","(",m]:(g=["brackets",a,m,s],m=s);break}case ai:case ui:{for(u=o,s=m,h=!1;s<x&&(s++,s===x&&A("string"),o=n.charCodeAt(s),f=n.charCodeAt(s+1),!(!h&&o===u));)o===nt?h=!h:h?h=!1:o===pi&&f===Ar&&C();g=["string",n.slice(m,s+1),m,s],m=s;break}case Ay:{Cr.lastIndex=m+1,Cr.test(n),Cr.lastIndex===0?s=n.length-1:s=Cr.lastIndex-2,g=["at-word",n.slice(m,s+1),m,s],m=s;break}case nt:{for(s=m,l=!0;n.charCodeAt(s+1)===nt;)s+=1,l=!l;if(o=n.charCodeAt(s+1),l&&o!==_r&&o!==Er&&o!==li&&o!==fi&&o!==hi&&o!==ci&&(s+=1,ll.test(n.charAt(s)))){for(;ll.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===Er&&(s+=1)}g=["word",n.slice(m,s+1),m,s],m=s;break}default:f=n.charCodeAt(m+1),o===pi&&f===Ar?(s=m,C(),a=n.slice(m,s+1),g=["word",a,m,s],m=s):o===_r&&f===_y?(s=n.indexOf("*/",m+2)+1,s===0&&(i||T?s=n.length:A("comment")),g=["comment",n.slice(m,s+1),m,s],m=s):o===_r&&f===_r?(Rr.lastIndex=m+1,Rr.test(n),Rr.lastIndex===0?s=n.length-1:s=Rr.lastIndex-2,a=n.slice(m,s+1),g=["comment",a,m,s,"inline"],m=s):(qr.lastIndex=m+1,qr.test(n),qr.lastIndex===0?s=n.length-1:s=qr.lastIndex-2,g=["word",n.slice(m,s+1),m,s],w.push(g),m=s);break}return m++,g}function q(O){y.push(O)}return{back:q,nextToken:L,endOfFile:S,position:b}}});var pl=v((Ab,hl)=>{c();var{Comment:Ry}=Tr(),Py=yr(),Iy=sl(),Ny=fl(),di=class extends Py{createTokenizer(){this.tokenizer=Ny(this.input)}rule(e){let r=!1,n=0,i="";for(let o of e)if(r)o[0]!=="comment"&&o[0]!=="{"&&(i+=o[1]);else{if(o[0]==="space"&&o[1].includes(`
@@ -37,7 +37,7 @@ var Ol=Object.create;var at=Object.defineProperty;var Sl=Object.getOwnPropertyDe
37
37
  `," "],rg=["{","}","|","\\","^","`"].concat(tg),jn=["'"].concat(rg),Ua=["%","/","?",";","#"].concat(jn),Ba=["/","?","#"],ng=255,$a=/^[+a-z0-9A-Z_-]{0,63}$/,ig=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sg={javascript:!0,"javascript:":!0},Un={javascript:!0,"javascript:":!0},Te={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};j.prototype.parse=function(t,e,r){return Fa(this,t,e,r)};j.prototype.format=function(){return Bn(this)};j.prototype.resolve=function(t){return this.resolveObject(Ke(t,!1,!0)).format()};j.prototype.resolveObject=function(t){if(H(t)){var e=new j;e.parse(t,!1,!0),t=e}for(var r=new j,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),u=0;u<s.length;u++){var a=s[u];a!=="protocol"&&(r[a]=t[a])}return Te[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}var l;if(t.protocol&&t.protocol!==r.protocol){if(!Te[t.protocol]){for(var h=Object.keys(t),p=0;p<h.length;p++){var f=h[p];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!Un[t.protocol]){for(l=(t.pathname||"").split("/");l.length&&!(t.host=l.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),l[0]!==""&&l.unshift(""),l.length<2&&l.unshift(""),r.pathname=l.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var g=r.pathname||"",x=r.search||"";r.path=g+x}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",w=t.host||t.pathname&&t.pathname.charAt(0)==="/",y=w||m||r.host&&t.pathname,E=y,b=r.pathname&&r.pathname.split("/")||[],A=r.protocol&&!Te[r.protocol];l=t.pathname&&t.pathname.split("/")||[],A&&(r.hostname="",r.port=null,r.host&&(b[0]===""?b[0]=r.host:b.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(l[0]===""?l[0]=t.host:l.unshift(t.host)),t.host=null),y=y&&(l[0]===""||b[0]===""));var S;if(w)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,b=l;else if(l.length)b||(b=[]),b.pop(),b=b.concat(l),r.search=t.search,r.query=t.query;else if(!At(t.search))return A&&(r.hostname=r.host=b.shift(),S=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1,S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())),r.search=t.search,r.query=t.query,(!$(r.pathname)||!$(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=b.slice(-1)[0],L=(r.host||t.host||b.length>1)&&(C==="."||C==="..")||C==="",q=0,O=b.length;O>=0;O--)C=b[O],C==="."?b.splice(O,1):C===".."?(b.splice(O,1),q++):q&&(b.splice(O,1),q--);if(!y&&!E)for(;q--;q)b.unshift("..");y&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),L&&b.join("/").substr(-1)!=="/"&&b.push("");var T=b[0]===""||b[0]&&b[0].charAt(0)==="/";return A&&(r.hostname=r.host=T?"":b.length?b.shift():"",S=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1,S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())),y=y||r.host&&b.length,y&&!T&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),(!$(r.pathname)||!$(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};j.prototype.parseHost=function(){return Ha(this)}});var Ka=v((b0,gr)=>{c();var ae=(Qa(),Nr(Ja));if(ae&&ae.default){gr.exports=ae.default;for(let t in ae)gr.exports[t]=ae[t]}else ae&&(gr.exports=ae)});var su={};Ir(su,{basename:()=>nu,default:()=>ag,delimiter:()=>tu,dirname:()=>ru,extname:()=>iu,isAbsolute:()=>Wn,join:()=>Za,normalize:()=>Fn,relative:()=>Xa,resolve:()=>yr,sep:()=>eu});function Ya(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];i==="."?t.splice(n,1):i===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function yr(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;t=n+"/"+t,e=n.charAt(0)==="/"}return t=Ya(Vn(t.split("/"),function(i){return!!i}),!e).join("/"),(e?"/":"")+t||"."}function Fn(t){var e=Wn(t),r=ug(t,-1)==="/";return t=Ya(Vn(t.split("/"),function(n){return!!n}),!e).join("/"),!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function Wn(t){return t.charAt(0)==="/"}function Za(){var t=Array.prototype.slice.call(arguments,0);return Fn(Vn(t,function(e,r){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function Xa(t,e){t=yr(t).substr(1),e=yr(e).substr(1);function r(l){for(var h=0;h<l.length&&l[h]==="";h++);for(var p=l.length-1;p>=0&&l[p]==="";p--);return h>p?[]:l.slice(h,p-h+1)}for(var n=r(t.split("/")),i=r(e.split("/")),o=Math.min(n.length,i.length),s=o,u=0;u<o;u++)if(n[u]!==i[u]){s=u;break}for(var a=[],u=s;u<n.length;u++)a.push("..");return a=a.concat(i.slice(s)),a.join("/")}function ru(t){var e=$n(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}function nu(t,e){var r=$n(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}function iu(t){return $n(t)[3]}function Vn(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var og,$n,eu,tu,ag,ug,ou=Q(()=>{c();og=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,$n=function(t){return og.exec(t).slice(1)};eu="/",tu=":";ag={extname:iu,basename:nu,dirname:ru,sep:eu,delimiter:tu,relative:Xa,join:Za,isAbsolute:Wn,normalize:Fn,resolve:yr};ug="ab".substr(-1)==="b"?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}});var au=v((S0,wr)=>{c();var ue=(ou(),Nr(su));if(ue&&ue.default){wr.exports=ue.default;for(let t in ue)wr.exports[t]=ue[t]}else ue&&(wr.exports=ue)});var lu=v((_0,uu)=>{c();var lg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cg=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},fg=(t=21)=>{let e="",r=t;for(;r--;)e+=lg[Math.random()*64|0];return e};uu.exports={nanoid:fg,customAlphabet:cg}});var Gn=v((A0,cu)=>{c();cu.exports=class{}});var Ee=v((R0,du)=>{"use strict";c();var{SourceMapConsumer:hg,SourceMapGenerator:pg}=qa(),{fileURLToPath:fu,pathToFileURL:vr}=Ka(),{resolve:Qn,isAbsolute:Kn}=au(),{nanoid:dg}=lu(),Hn=_n(),hu=rr(),mg=Gn(),Jn=Symbol("fromOffsetCache"),gg=Boolean(hg&&pg),pu=Boolean(Qn&&Kn),_e=class{constructor(e,r={}){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,r.from&&(!pu||/^\w+:\/\//.test(r.from)||Kn(r.from)?this.file=r.from:this.file=Qn(r.from)),pu&&gg){let n=new mg(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+dg(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let r,n;if(this[Jn])n=this[Jn];else{let o=this.css.split(`
38
38
  `);n=new Array(o.length);let s=0;for(let u=0,a=o.length;u<a;u++)n[u]=s,s+=o[u].length+1;this[Jn]=n}r=n[n.length-1];let i=0;if(e>=r)i=n.length-1;else{let o=n.length-2,s;for(;i<o;)if(s=i+(o-i>>1),e<n[s])o=s-1;else if(e>=n[s+1])i=s+1;else{i=s;break}}return{line:i+1,col:e-n[i]+1}}error(e,r,n,i={}){let o,s,u;if(r&&typeof r=="object"){let l=r,h=n;if(typeof r.offset=="number"){let p=this.fromOffset(l.offset);r=p.line,n=p.col}else r=l.line,n=l.column;if(typeof h.offset=="number"){let p=this.fromOffset(h.offset);s=p.line,u=p.col}else s=h.line,u=h.column}else if(!n){let l=this.fromOffset(r);r=l.line,n=l.col}let a=this.origin(r,n,s,u);return a?o=new hu(e,a.endLine===void 0?a.line:{line:a.line,column:a.column},a.endLine===void 0?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,i.plugin):o=new hu(e,s===void 0?r:{line:r,column:n},s===void 0?n:{line:s,column:u},this.css,this.file,i.plugin),o.input={line:r,column:n,endLine:s,endColumn:u,source:this.css},this.file&&(vr&&(o.input.url=vr(this.file).toString()),o.input.file=this.file),o}origin(e,r,n,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({line:e,column:r});if(!s.source)return!1;let u;typeof n=="number"&&(u=o.originalPositionFor({line:n,column:i}));let a;Kn(s.source)?a=vr(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||vr(this.map.mapFile));let l={url:a.toString(),line:s.line,column:s.column,endLine:u&&u.line,endColumn:u&&u.column};if(a.protocol==="file:")if(fu)l.file=fu(a);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(s.source);return h&&(l.source=h),l}mapResolve(e){return/^\w+:\/\//.test(e)?e:Qn(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};du.exports=_e;_e.default=_e;Hn&&Hn.registerInput&&Hn.registerInput(_e)});var Ye=v((I0,mu)=>{"use strict";c();var yg=Z(),wg=mr(),vg=Ee();function xr(t,e){let r=new vg(t,e),n=new wg(r);try{n.parse()}catch(i){throw i}return n.root}mu.exports=xr;xr.default=xr;yg.registerParse(xr)});var gu=v((M0,Yn)=>{c();var xg=hr(),bg=Ee();Yn.exports={isInlineComment(t){if(t[0]==="word"&&t[1].slice(0,2)==="//"){let e=t,r=[],n,i;for(;t;){if(/\r?\n/.test(t[1])){if(/['"].*\r?\n/.test(t[1])){r.push(t[1].substring(0,t[1].indexOf(`
39
39
  `))),i=t[1].substring(t[1].indexOf(`
40
- `));let s=this.input.css.valueOf().substring(this.tokenizer.position());i+=s,n=t[3]+s.length-i.length}else this.tokenizer.back(t);break}r.push(t[1]),n=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let o=["comment",r.join(""),e[2],n];return this.inlineComment(o),i&&(this.input=new bg(i),this.tokenizer=xg(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),Yn.exports.isInlineComment.bind(this)(t)}return!1}}});var wu=v((L0,yu)=>{c();yu.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],r=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&r.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let n=e.map(u=>u[1]),[i]=e,o=e.pop(),s=["word",n.join(""),i[2],o[2]];return this.tokenizer.back(t),this.tokenizer.back(s),!0}}});var xu=v((j0,vu)=>{c();var kg=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Og=/\.[0-9]/,Sg=t=>{let[,e]=t,[r]=e;return(r==="."||r==="#")&&kg.test(e)===!1&&Og.test(e)===!1};vu.exports={isMixinToken:Sg}});var ku=v((B0,bu)=>{c();var Tg=hr(),_g=/^url\((.+)\)/;bu.exports=t=>{let{name:e,params:r=""}=t;if(e==="import"&&r.length){t.import=!0;let n=Tg({css:r});for(t.filename=r.replace(_g,"$1");!n.endOfFile();){let[i,o]=n.nextToken();if(i==="word"&&o==="url")return;if(i==="brackets"){t.options=o,t.filename=r.replace(o,"").trim();break}}}}});var _u=v((F0,Tu)=>{c();var Ou=/:$/,Su=/^:(\s+)?/;Tu.exports=t=>{let{name:e,params:r=""}=t;if(t.name.slice(-1)===":"){if(Ou.test(e)){let[n]=e.match(Ou);t.name=e.replace(n,""),t.raws.afterName=n+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(Su.test(r)){let[n]=r.match(Su);t.value=r.replace(n,""),t.raws.afterName=(t.raws.afterName||"")+n,t.variable=!0}}}});var Cu=v((G0,Au)=>{c();var Eg=xe(),Ag=mr(),{isInlineComment:Cg}=gu(),{interpolation:Eu}=wu(),{isMixinToken:qg}=xu(),Rg=ku(),Pg=_u(),Ig=/(!\s*important)$/i;Au.exports=class extends Ag{constructor(...e){super(...e),this.lastNode=null}atrule(e){Eu.bind(this)(e)||(super.atrule(e),Rg(this.lastNode),Pg(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 r=e.findIndex(u=>u[0]==="("),n=e.reverse().find(u=>u[0]===")"),i=e.reverse().indexOf(n),s=e.splice(r,i).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=s}init(e,r,n){super.init(e,r,n),this.lastNode=e}inlineComment(e){let r=new Eg,n=e[1].slice(2);if(this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.inline=!0,r.raws.begin="//",/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,r.raws.left,r.text,r.raws.right]=i}}mixin(e){let[r]=e,n=r[1].slice(0,1),i=e.findIndex(l=>l[0]==="brackets"),o=e.findIndex(l=>l[0]==="("),s="";if((i<0||i>3)&&o>0){let l=e.reduce((b,A,S)=>A[0]===")"?S:b),p=e.slice(o,l+o).map(b=>b[1]).join(""),[f]=e.slice(o),g=[f[2],f[3]],[x]=e.slice(l,l+1),m=[x[2],x[3]],w=["brackets",p].concat(g,m),y=e.slice(0,o),E=e.slice(l+1);e=y,e.push(w),e=e.concat(E)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,h=e.indexOf(l),p=u[u.length-1],f=[l[2],l[3]],g=[p[4],p[5]],x=u.map(w=>w[1]).join(""),m=["word",x].concat(f,g);e.splice(h,u.length,m)}let a=e.findIndex(l=>Ig.test(l[1]));a>0&&([,s]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,s&&(this.lastNode.important=!0,this.lastNode.raws.important=s)}other(e){Cg.bind(this)(e)||super.other(e)}rule(e){let r=e[e.length-1],n=e[e.length-2];if(n[0]==="at-word"&&r[0]==="{"&&(this.tokenizer.back(r),Eu.bind(this)(n))){let o=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([o]);for(let s of e.reverse())this.tokenizer.back(s);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[r]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(qg(r)){this.mixin(e);return}super.unknownWord(e)}}});var Ru=v((Q0,qu)=>{c();var Ng=nr();qu.exports=class extends Ng{atrule(e,r){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,r);return}let i=`${e.function?"":e.raws.identifier||"@"}${e.name}`,o=e.params?this.rawValue(e,"params"):"",s=e.raws.important||"";if(e.variable&&(o=e.value),typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o+s);else{let u=(e.raws.between||"")+s+(r?";":"");this.builder(i+o+u,e)}}comment(e){if(e.inline){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(`//${r}${e.text}${n}`,e)}else super.comment(e)}}});var Pu=v((Y0,Zn)=>{c();var Mg=Ee(),Dg=Cu(),Lg=Ru();Zn.exports={parse(t,e){let r=new Mg(t,e),n=new Dg(r);return n.parse(),n.root.walk(i=>{let o=r.css.lastIndexOf(i.source.input.css);if(o===0)return;if(o+i.source.input.css.length!==r.css.length)throw new Error("Invalid state detected in postcss-less");let s=o+i.source.start.offset,u=r.fromOffset(o+i.source.start.offset);if(i.source.start={offset:s,line:u.line,column:u.col},i.source.end){let a=o+i.source.end.offset,l=r.fromOffset(o+i.source.end.offset);i.source.end={offset:a,line:l.line,column:l.col}}}),n.root},stringify(t,e){new Lg(e).stringify(t)},nodeToString(t){let e="";return Zn.exports.stringify(t,r=>{e+=r}),e}}});var Xn=v((X0,Iu)=>{c();Iu.exports=class{generate(){}}});var br=v((rb,Du)=>{"use strict";c();var zg=Z(),Nu,Mu,le=class extends zg{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Nu(new Mu,this,e).stringify()}};le.registerLazyResult=t=>{Nu=t};le.registerProcessor=t=>{Mu=t};Du.exports=le;le.default=le});var ei=v((ib,zu)=>{"use strict";c();var Lu={};zu.exports=function(e){Lu[e]||(Lu[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ti=v((ob,ju)=>{"use strict";c();var Ze=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}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}};ju.exports=Ze;Ze.default=Ze});var kr=v((ub,Uu)=>{"use strict";c();var jg=ti(),Xe=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new jg(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Uu.exports=Xe;Xe.default=Xe});var ii=v((fb,Wu)=>{"use strict";c();var{isClean:W,my:Ug}=tr(),Bg=Xn(),$g=Ue(),Fg=Z(),Wg=br(),cb=ei(),Bu=kr(),Vg=Ye(),Gg=ke(),Hg={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Jg={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},Qg={postcssPlugin:!0,prepare:!0,Once:!0},Ae=0;function et(t){return typeof t=="object"&&typeof t.then=="function"}function Fu(t){let e=!1,r=Hg[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ae,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ae,r+"Exit"]:[r,r+"Exit"]}function $u(t){let e;return t.type==="document"?e=["Document",Ae,"DocumentExit"]:t.type==="root"?e=["Root",Ae,"RootExit"]:e=Fu(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function ri(t){return t[W]=!1,t.nodes&&t.nodes.forEach(e=>ri(e)),t}var ni={},V=class{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=ri(r);else if(r instanceof V||r instanceof Bu)i=ri(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let o=Vg;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[Ug]&&Fg.rebuild(i)}this.result=new Bu(e,i,n),this.helpers={...ni,result:this.result,postcss:ni},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}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,r){return this.async().then(e,r)}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 r=this.runOnRoot(e);if(et(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);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,r=$g;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new Bg(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}walkSync(e){e[W]=!0;let r=Fu(e);for(let n of r)if(n===Ae)e.nodes&&e.each(i=>{i[W]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(et(o))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return et(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(et(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let r=[$u(e)];for(;r.length>0;){let n=this.visitTick(r);if(et(n))try{await n}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Jg[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Qg[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[s,u]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=s;try{return u(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(r.iterator!==0){let s=r.iterator,u;for(;u=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!u[W]){u[W]=!0,e.push($u(u));return}r.iterator=0,delete n.indexes[s]}let o=r.events;for(;r.eventIndex<o.length;){let s=o[r.eventIndex];if(r.eventIndex+=1,s===Ae){n.nodes&&n.nodes.length&&(n[W]=!0,r.iterator=n.getIterator());return}else if(this.listeners[s]){r.visitors=this.listeners[s];return}}e.pop()}};V.registerPostcss=t=>{ni=t};Wu.exports=V;V.default=V;Gg.registerLazyResult(V);Wg.registerLazyResult(V)});var Gu=v((db,Vu)=>{"use strict";c();var Kg=Xn(),Yg=Ue(),pb=ei(),Zg=Ye(),Xg=kr(),tt=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,o=Yg;this.result=new Xg(this._processor,i,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let u=new Kg(o,i,this._opts,r);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),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,r=Zg;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,r){return this.async().then(e,r)}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}};Vu.exports=tt;tt.default=tt});var Ju=v((gb,Hu)=>{"use strict";c();var ey=Gu(),ty=ii(),ry=br(),ny=ke(),ce=class{constructor(e=[]){this.version="8.4.17",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,r={}){return this.plugins.length===0&&typeof r.parser>"u"&&typeof r.stringifier>"u"&&typeof r.syntax>"u"?new ey(this,e,r):new ty(this,e,r)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}};Hu.exports=ce;ce.default=ce;ny.registerProcessor(ce);ry.registerProcessor(ce)});var Ku=v((wb,Qu)=>{"use strict";c();var iy=We(),sy=Gn(),oy=xe(),ay=pr(),uy=Ee(),ly=ke(),cy=dr();function rt(t,e){if(Array.isArray(t))return t.map(i=>rt(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let o={...i,__proto__:uy.prototype};o.map&&(o.map={...o.map,__proto__:sy.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>rt(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new ly(n);if(n.type==="decl")return new iy(n);if(n.type==="rule")return new cy(n);if(n.type==="comment")return new oy(n);if(n.type==="atrule")return new ay(n);throw new Error("Unknown node type: "+t.type)}Qu.exports=rt;rt.default=rt});var Or=v((xb,nl)=>{"use strict";c();var fy=rr(),Yu=We(),hy=ii(),py=Z(),si=Ju(),dy=Ue(),my=Ku(),Zu=br(),gy=ti(),Xu=xe(),el=pr(),yy=kr(),wy=Ee(),vy=Ye(),xy=Pn(),tl=dr(),rl=ke(),by=$e();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new si(t)}k.plugin=function(e,r){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
40
+ `));let s=this.input.css.valueOf().substring(this.tokenizer.position());i+=s,n=t[3]+s.length-i.length}else this.tokenizer.back(t);break}r.push(t[1]),n=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let o=["comment",r.join(""),e[2],n];return this.inlineComment(o),i&&(this.input=new bg(i),this.tokenizer=xg(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),Yn.exports.isInlineComment.bind(this)(t)}return!1}}});var wu=v((L0,yu)=>{c();yu.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],r=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&r.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let n=e.map(u=>u[1]),[i]=e,o=e.pop(),s=["word",n.join(""),i[2],o[2]];return this.tokenizer.back(t),this.tokenizer.back(s),!0}}});var xu=v((j0,vu)=>{c();var kg=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Og=/\.[0-9]/,Sg=t=>{let[,e]=t,[r]=e;return(r==="."||r==="#")&&kg.test(e)===!1&&Og.test(e)===!1};vu.exports={isMixinToken:Sg}});var ku=v((B0,bu)=>{c();var Tg=hr(),_g=/^url\((.+)\)/;bu.exports=t=>{let{name:e,params:r=""}=t;if(e==="import"&&r.length){t.import=!0;let n=Tg({css:r});for(t.filename=r.replace(_g,"$1");!n.endOfFile();){let[i,o]=n.nextToken();if(i==="word"&&o==="url")return;if(i==="brackets"){t.options=o,t.filename=r.replace(o,"").trim();break}}}}});var _u=v((F0,Tu)=>{c();var Ou=/:$/,Su=/^:(\s+)?/;Tu.exports=t=>{let{name:e,params:r=""}=t;if(t.name.slice(-1)===":"){if(Ou.test(e)){let[n]=e.match(Ou);t.name=e.replace(n,""),t.raws.afterName=n+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(Su.test(r)){let[n]=r.match(Su);t.value=r.replace(n,""),t.raws.afterName=(t.raws.afterName||"")+n,t.variable=!0}}}});var Cu=v((G0,Au)=>{c();var Eg=xe(),Ag=mr(),{isInlineComment:Cg}=gu(),{interpolation:Eu}=wu(),{isMixinToken:qg}=xu(),Rg=ku(),Pg=_u(),Ig=/(!\s*important)$/i;Au.exports=class extends Ag{constructor(...e){super(...e),this.lastNode=null}atrule(e){Eu.bind(this)(e)||(super.atrule(e),Rg(this.lastNode),Pg(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 r=e.findIndex(u=>u[0]==="("),n=e.reverse().find(u=>u[0]===")"),i=e.reverse().indexOf(n),s=e.splice(r,i).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=s}init(e,r,n){super.init(e,r,n),this.lastNode=e}inlineComment(e){let r=new Eg,n=e[1].slice(2);if(this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.inline=!0,r.raws.begin="//",/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*[^\s])(\s*)$/);[,r.raws.left,r.text,r.raws.right]=i}}mixin(e){let[r]=e,n=r[1].slice(0,1),i=e.findIndex(l=>l[0]==="brackets"),o=e.findIndex(l=>l[0]==="("),s="";if((i<0||i>3)&&o>0){let l=e.reduce((b,A,S)=>A[0]===")"?S:b),p=e.slice(o,l+o).map(b=>b[1]).join(""),[f]=e.slice(o),g=[f[2],f[3]],[x]=e.slice(l,l+1),m=[x[2],x[3]],w=["brackets",p].concat(g,m),y=e.slice(0,o),E=e.slice(l+1);e=y,e.push(w),e=e.concat(E)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,h=e.indexOf(l),p=u[u.length-1],f=[l[2],l[3]],g=[p[4],p[5]],x=u.map(w=>w[1]).join(""),m=["word",x].concat(f,g);e.splice(h,u.length,m)}let a=e.findIndex(l=>Ig.test(l[1]));a>0&&([,s]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,s&&(this.lastNode.important=!0,this.lastNode.raws.important=s)}other(e){Cg.bind(this)(e)||super.other(e)}rule(e){let r=e[e.length-1],n=e[e.length-2];if(n[0]==="at-word"&&r[0]==="{"&&(this.tokenizer.back(r),Eu.bind(this)(n))){let o=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([o]);for(let s of e.reverse())this.tokenizer.back(s);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[r]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(qg(r)){this.mixin(e);return}super.unknownWord(e)}}});var Ru=v((Q0,qu)=>{c();var Ng=nr();qu.exports=class extends Ng{atrule(e,r){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,r);return}let i=`${e.function?"":e.raws.identifier||"@"}${e.name}`,o=e.params?this.rawValue(e,"params"):"",s=e.raws.important||"";if(e.variable&&(o=e.value),typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o+s);else{let u=(e.raws.between||"")+s+(r?";":"");this.builder(i+o+u,e)}}comment(e){if(e.inline){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(`//${r}${e.text}${n}`,e)}else super.comment(e)}}});var Pu=v((Y0,Zn)=>{c();var Mg=Ee(),Dg=Cu(),Lg=Ru();Zn.exports={parse(t,e){let r=new Mg(t,e),n=new Dg(r);return n.parse(),n.root.walk(i=>{let o=r.css.lastIndexOf(i.source.input.css);if(o===0)return;if(o+i.source.input.css.length!==r.css.length)throw new Error("Invalid state detected in postcss-less");let s=o+i.source.start.offset,u=r.fromOffset(o+i.source.start.offset);if(i.source.start={offset:s,line:u.line,column:u.col},i.source.end){let a=o+i.source.end.offset,l=r.fromOffset(o+i.source.end.offset);i.source.end={offset:a,line:l.line,column:l.col}}}),n.root},stringify(t,e){new Lg(e).stringify(t)},nodeToString(t){let e="";return Zn.exports.stringify(t,r=>{e+=r}),e}}});var Xn=v((X0,Iu)=>{c();Iu.exports=class{generate(){}}});var br=v((rb,Du)=>{"use strict";c();var zg=Z(),Nu,Mu,le=class extends zg{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Nu(new Mu,this,e).stringify()}};le.registerLazyResult=t=>{Nu=t};le.registerProcessor=t=>{Mu=t};Du.exports=le;le.default=le});var ei=v((ib,zu)=>{"use strict";c();var Lu={};zu.exports=function(e){Lu[e]||(Lu[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ti=v((ob,ju)=>{"use strict";c();var Ze=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}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}};ju.exports=Ze;Ze.default=Ze});var kr=v((ub,Uu)=>{"use strict";c();var jg=ti(),Xe=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new jg(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Uu.exports=Xe;Xe.default=Xe});var ii=v((fb,Wu)=>{"use strict";c();var{isClean:W,my:Ug}=tr(),Bg=Xn(),$g=Ue(),Fg=Z(),Wg=br(),cb=ei(),Bu=kr(),Vg=Ye(),Gg=ke(),Hg={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Jg={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},Qg={postcssPlugin:!0,prepare:!0,Once:!0},Ae=0;function et(t){return typeof t=="object"&&typeof t.then=="function"}function Fu(t){let e=!1,r=Hg[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ae,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ae,r+"Exit"]:[r,r+"Exit"]}function $u(t){let e;return t.type==="document"?e=["Document",Ae,"DocumentExit"]:t.type==="root"?e=["Root",Ae,"RootExit"]:e=Fu(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function ri(t){return t[W]=!1,t.nodes&&t.nodes.forEach(e=>ri(e)),t}var ni={},V=class{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=ri(r);else if(r instanceof V||r instanceof Bu)i=ri(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let o=Vg;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[Ug]&&Fg.rebuild(i)}this.result=new Bu(e,i,n),this.helpers={...ni,result:this.result,postcss:ni},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}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,r){return this.async().then(e,r)}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 r=this.runOnRoot(e);if(et(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);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,r=$g;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new Bg(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}walkSync(e){e[W]=!0;let r=Fu(e);for(let n of r)if(n===Ae)e.nodes&&e.each(i=>{i[W]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(et(o))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return et(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(et(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let r=[$u(e)];for(;r.length>0;){let n=this.visitTick(r);if(et(n))try{await n}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Jg[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Qg[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[s,u]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=s;try{return u(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(r.iterator!==0){let s=r.iterator,u;for(;u=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!u[W]){u[W]=!0,e.push($u(u));return}r.iterator=0,delete n.indexes[s]}let o=r.events;for(;r.eventIndex<o.length;){let s=o[r.eventIndex];if(r.eventIndex+=1,s===Ae){n.nodes&&n.nodes.length&&(n[W]=!0,r.iterator=n.getIterator());return}else if(this.listeners[s]){r.visitors=this.listeners[s];return}}e.pop()}};V.registerPostcss=t=>{ni=t};Wu.exports=V;V.default=V;Gg.registerLazyResult(V);Wg.registerLazyResult(V)});var Gu=v((db,Vu)=>{"use strict";c();var Kg=Xn(),Yg=Ue(),pb=ei(),Zg=Ye(),Xg=kr(),tt=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,o=Yg;this.result=new Xg(this._processor,i,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let u=new Kg(o,i,this._opts,r);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),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,r=Zg;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,r){return this.async().then(e,r)}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}};Vu.exports=tt;tt.default=tt});var Ju=v((gb,Hu)=>{"use strict";c();var ey=Gu(),ty=ii(),ry=br(),ny=ke(),ce=class{constructor(e=[]){this.version="8.4.18",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,r={}){return this.plugins.length===0&&typeof r.parser>"u"&&typeof r.stringifier>"u"&&typeof r.syntax>"u"?new ey(this,e,r):new ty(this,e,r)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}};Hu.exports=ce;ce.default=ce;ny.registerProcessor(ce);ry.registerProcessor(ce)});var Ku=v((wb,Qu)=>{"use strict";c();var iy=We(),sy=Gn(),oy=xe(),ay=pr(),uy=Ee(),ly=ke(),cy=dr();function rt(t,e){if(Array.isArray(t))return t.map(i=>rt(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let o={...i,__proto__:uy.prototype};o.map&&(o.map={...o.map,__proto__:sy.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>rt(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new ly(n);if(n.type==="decl")return new iy(n);if(n.type==="rule")return new cy(n);if(n.type==="comment")return new oy(n);if(n.type==="atrule")return new ay(n);throw new Error("Unknown node type: "+t.type)}Qu.exports=rt;rt.default=rt});var Or=v((xb,nl)=>{"use strict";c();var fy=rr(),Yu=We(),hy=ii(),py=Z(),si=Ju(),dy=Ue(),my=Ku(),Zu=br(),gy=ti(),Xu=xe(),el=pr(),yy=kr(),wy=Ee(),vy=Ye(),xy=Pn(),tl=dr(),rl=ke(),by=$e();function k(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new si(t)}k.plugin=function(e,r){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
41
41
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),d.env.LANG&&d.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
42
42
  https://www.w3ctech.com/topic/2226`));let u=r(...s);return u.postcssPlugin=e,u.postcssVersion=new si().version,u}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(s,u,a){return k([i(a)]).process(s,u)},i};k.stringify=dy;k.parse=vy;k.fromJSON=my;k.list=xy;k.comment=t=>new Xu(t);k.atRule=t=>new el(t);k.decl=t=>new Yu(t);k.rule=t=>new tl(t);k.root=t=>new rl(t);k.document=t=>new Zu(t);k.CssSyntaxError=fy;k.Declaration=Yu;k.Container=py;k.Processor=si;k.Document=Zu;k.Comment=Xu;k.Warning=gy;k.AtRule=el;k.Result=yy;k.Input=wy;k.Rule=tl;k.Root=rl;k.Node=by;hy.registerPostcss(k);nl.exports=k;k.default=k});var sl=v((kb,il)=>{c();var{Container:ky}=Or(),oi=class extends ky{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};il.exports=oi});var fl=v((Sb,cl)=>{"use strict";c();var ai="'".charCodeAt(0),ui='"'.charCodeAt(0),nt="\\".charCodeAt(0),Sr="/".charCodeAt(0),li=`
43
43
  `.charCodeAt(0),Tr=" ".charCodeAt(0),ci="\f".charCodeAt(0),fi=" ".charCodeAt(0),hi="\r".charCodeAt(0),Oy="[".charCodeAt(0),Sy="]".charCodeAt(0),ol="(".charCodeAt(0),al=")".charCodeAt(0),_r="{".charCodeAt(0),ul="}".charCodeAt(0),Ty=";".charCodeAt(0),_y="*".charCodeAt(0),Ey=":".charCodeAt(0),Ay="@".charCodeAt(0),Cy=",".charCodeAt(0),pi="#".charCodeAt(0),Er=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ar=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qy=/.[\n"'(/\\]/,ll=/[\da-f]/i,Cr=/[\n\f\r]/g;cl.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,o,s,u,a,l,h,p,f,g,x=n.length,m=0,w=[],y=[],E;function b(){return m}function A(O){throw e.error("Unclosed "+O,m)}function S(){return y.length===0&&m>=x}function C(){let O=1,T=!1,R=!1;for(;O>0;)s+=1,n.length<=s&&A("interpolation"),o=n.charCodeAt(s),f=n.charCodeAt(s+1),T?!R&&o===T?(T=!1,R=!1):o===nt?R=!R:R&&(R=!1):o===ai||o===ui?T=o:o===ul?O-=1:o===pi&&f===_r&&(O+=1)}function L(O){if(y.length)return y.pop();if(m>=x)return;let T=O?O.ignoreUnclosed:!1;switch(o=n.charCodeAt(m),o){case li:case Tr:case fi:case hi:case ci:{s=m;do s+=1,o=n.charCodeAt(s);while(o===Tr||o===li||o===fi||o===hi||o===ci);g=["space",n.slice(m,s)],m=s-1;break}case Oy:case Sy:case _r:case ul:case Ey:case Ty:case al:{let R=String.fromCharCode(o);g=[R,R,m];break}case Cy:{g=["word",",",m,m+1];break}case ol:{if(p=w.length?w.pop()[1]:"",f=n.charCodeAt(m+1),p==="url"&&f!==ai&&f!==ui){for(E=1,h=!1,s=m+1;s<=n.length-1;){if(f=n.charCodeAt(s),f===nt)h=!h;else if(f===ol)E+=1;else if(f===al&&(E-=1,E===0))break;s+=1}a=n.slice(m,s+1),g=["brackets",a,m,s],m=s}else s=n.indexOf(")",m+1),a=n.slice(m,s+1),s===-1||qy.test(a)?g=["(","(",m]:(g=["brackets",a,m,s],m=s);break}case ai:case ui:{for(u=o,s=m,h=!1;s<x&&(s++,s===x&&A("string"),o=n.charCodeAt(s),f=n.charCodeAt(s+1),!(!h&&o===u));)o===nt?h=!h:h?h=!1:o===pi&&f===_r&&C();g=["string",n.slice(m,s+1),m,s],m=s;break}case Ay:{Er.lastIndex=m+1,Er.test(n),Er.lastIndex===0?s=n.length-1:s=Er.lastIndex-2,g=["at-word",n.slice(m,s+1),m,s],m=s;break}case nt:{for(s=m,l=!0;n.charCodeAt(s+1)===nt;)s+=1,l=!l;if(o=n.charCodeAt(s+1),l&&o!==Sr&&o!==Tr&&o!==li&&o!==fi&&o!==hi&&o!==ci&&(s+=1,ll.test(n.charAt(s)))){for(;ll.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===Tr&&(s+=1)}g=["word",n.slice(m,s+1),m,s],m=s;break}default:f=n.charCodeAt(m+1),o===pi&&f===_r?(s=m,C(),a=n.slice(m,s+1),g=["word",a,m,s],m=s):o===Sr&&f===_y?(s=n.indexOf("*/",m+2)+1,s===0&&(i||T?s=n.length:A("comment")),g=["comment",n.slice(m,s+1),m,s],m=s):o===Sr&&f===Sr?(Cr.lastIndex=m+1,Cr.test(n),Cr.lastIndex===0?s=n.length-1:s=Cr.lastIndex-2,a=n.slice(m,s+1),g=["comment",a,m,s,"inline"],m=s):(Ar.lastIndex=m+1,Ar.test(n),Ar.lastIndex===0?s=n.length-1:s=Ar.lastIndex-2,g=["word",n.slice(m,s+1),m,s],w.push(g),m=s);break}return m++,g}function q(O){y.push(O)}return{back:q,nextToken:L,endOfFile:S,position:b}}});var pl=v((_b,hl)=>{c();var{Comment:Ry}=Or(),Py=mr(),Iy=sl(),Ny=fl(),di=class extends Py{createTokenizer(){this.tokenizer=Ny(this.input)}rule(e){let r=!1,n=0,i="";for(let o of e)if(r)o[0]!=="comment"&&o[0]!=="{"&&(i+=o[1]);else{if(o[0]==="space"&&o[1].includes(`