-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
39 lines (38 loc) · 171 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var hl=Object.defineProperty,pl=Object.defineProperties;var dl=Object.getOwnPropertyDescriptors;var Ft=Object.getOwnPropertySymbols;var Jn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable;var Hn=(i,e,r)=>e in i?hl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,F=(i,e)=>{for(var r in e||(e={}))Jn.call(e,r)&&Hn(i,r,e[r]);if(Ft)for(var r of Ft(e))Kn.call(e,r)&&Hn(i,r,e[r]);return i},H=(i,e)=>pl(i,dl(e));var Nr=(i,e)=>{var r={};for(var t in i)Jn.call(i,t)&&e.indexOf(t)<0&&(r[t]=i[t]);if(i!=null&&Ft)for(var t of Ft(i))e.indexOf(t)<0&&Kn.call(i,t)&&(r[t]=i[t]);return r};var y=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var Zn=y(Fr=>{var Ee=require("path"),me=process.platform==="win32",ye=require("fs"),vl=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function gl(){var i;if(vl){var e=new Error;i=r}else i=t;return i;function r(n){n&&(e.message=n.message,n=e,t(n))}function t(n){if(n){if(process.throwDeprecation)throw n;if(!process.noDeprecation){var s="fs: missing callback "+(n.stack||n.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function ml(i){return typeof i=="function"?i:gl()}var Sg=Ee.normalize;me?fe=/(.*?)(?:[\/\\]+|$)/g:fe=/(.*?)(?:[\/]+|$)/g;var fe;me?He=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:He=/^[\/]*/;var He;Fr.realpathSync=function(e,r){if(e=Ee.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var t=e,n={},s={},o,a,u,l;c();function c(){var v=He.exec(e);o=v[0].length,a=v[0],u=v[0],l="",me&&!s[u]&&(ye.lstatSync(u),s[u]=!0)}for(;o<e.length;){fe.lastIndex=o;var p=fe.exec(e);if(l=a,a+=p[0],u=l+p[1],o=fe.lastIndex,!(s[u]||r&&r[u]===u)){var f;if(r&&Object.prototype.hasOwnProperty.call(r,u))f=r[u];else{var h=ye.lstatSync(u);if(!h.isSymbolicLink()){s[u]=!0,r&&(r[u]=u);continue}var d=null;if(!me){var _=h.dev.toString(32)+":"+h.ino.toString(32);n.hasOwnProperty(_)&&(d=n[_])}d===null&&(ye.statSync(u),d=ye.readlinkSync(u)),f=Ee.resolve(l,d),r&&(r[u]=f),me||(n[_]=d)}e=Ee.resolve(f,e.slice(o)),c()}}return r&&(r[t]=e),e};Fr.realpath=function(e,r,t){if(typeof t!="function"&&(t=ml(r),r=null),e=Ee.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(t.bind(null,null,r[e]));var n=e,s={},o={},a,u,l,c;p();function p(){var v=He.exec(e);a=v[0].length,u=v[0],l=v[0],c="",me&&!o[l]?ye.lstat(l,function(g){if(g)return t(g);o[l]=!0,f()}):process.nextTick(f)}function f(){if(a>=e.length)return r&&(r[n]=e),t(null,e);fe.lastIndex=a;var v=fe.exec(e);return c=u,u+=v[0],l=c+v[1],a=fe.lastIndex,o[l]||r&&r[l]===l?process.nextTick(f):r&&Object.prototype.hasOwnProperty.call(r,l)?_(r[l]):ye.lstat(l,h)}function h(v,g){if(v)return t(v);if(!g.isSymbolicLink())return o[l]=!0,r&&(r[l]=l),process.nextTick(f);if(!me){var E=g.dev.toString(32)+":"+g.ino.toString(32);if(s.hasOwnProperty(E))return d(null,s[E],l)}ye.stat(l,function(A){if(A)return t(A);ye.readlink(l,function(x,k){me||(s[E]=k),d(x,k)})})}function d(v,g,E){if(v)return t(v);var A=Ee.resolve(c,g);r&&(r[E]=A),_(A)}function _(v){e=Ee.resolve(v,e.slice(a)),p()}}});var Br=y((Og,rs)=>{rs.exports=we;we.realpath=we;we.sync=Gr;we.realpathSync=Gr;we.monkeypatch=wl;we.unmonkeypatch=_l;var qe=require("fs"),Ur=qe.realpath,jr=qe.realpathSync,yl=process.version,Xn=/^v[0-5]\./.test(yl),es=Zn();function ts(i){return i&&i.syscall==="realpath"&&(i.code==="ELOOP"||i.code==="ENOMEM"||i.code==="ENAMETOOLONG")}function we(i,e,r){if(Xn)return Ur(i,e,r);typeof e=="function"&&(r=e,e=null),Ur(i,e,function(t,n){ts(t)?es.realpath(i,e,r):r(t,n)})}function Gr(i,e){if(Xn)return jr(i,e);try{return jr(i,e)}catch(r){if(ts(r))return es.realpathSync(i,e);throw r}}function wl(){qe.realpath=we,qe.realpathSync=Gr}function _l(){qe.realpath=Ur,qe.realpathSync=jr}});var ns=y((Eg,is)=>{is.exports=function(i,e){for(var r=[],t=0;t<i.length;t++){var n=e(i[t],t);Sl(n)?r.push.apply(r,n):r.push(n)}return r};var Sl=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}});var ls=y((xg,us)=>{"use strict";us.exports=ss;function ss(i,e,r){i instanceof RegExp&&(i=os(i,r)),e instanceof RegExp&&(e=os(e,r));var t=as(i,e,r);return t&&{start:t[0],end:t[1],pre:r.slice(0,t[0]),body:r.slice(t[0]+i.length,t[1]),post:r.slice(t[1]+e.length)}}function os(i,e){var r=e.match(i);return r?r[0]:null}ss.range=as;function as(i,e,r){var t,n,s,o,a,u=r.indexOf(i),l=r.indexOf(e,u+1),c=u;if(u>=0&&l>0){if(i===e)return[u,l];for(t=[],s=r.length;c>=0&&!a;)c==u?(t.push(c),u=r.indexOf(i,c+1)):t.length==1?a=[t.pop(),l]:(n=t.pop(),n<s&&(s=n,o=l),l=r.indexOf(e,c+1)),c=u<l&&u>=0?u:l;t.length&&(a=[s,o])}return a}});var ms=y((Ag,gs)=>{var bl=ns(),cs=ls();gs.exports=xl;var fs="\0SLASH"+Math.random()+"\0",hs="\0OPEN"+Math.random()+"\0",Wr="\0CLOSE"+Math.random()+"\0",ps="\0COMMA"+Math.random()+"\0",ds="\0PERIOD"+Math.random()+"\0";function Vr(i){return parseInt(i,10)==i?parseInt(i,10):i.charCodeAt(0)}function Ol(i){return i.split("\\\\").join(fs).split("\\{").join(hs).split("\\}").join(Wr).split("\\,").join(ps).split("\\.").join(ds)}function El(i){return i.split(fs).join("\\").split(hs).join("{").split(Wr).join("}").split(ps).join(",").split(ds).join(".")}function vs(i){if(!i)return[""];var e=[],r=cs("{","}",i);if(!r)return i.split(",");var t=r.pre,n=r.body,s=r.post,o=t.split(",");o[o.length-1]+="{"+n+"}";var a=vs(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function xl(i){return i?(i.substr(0,2)==="{}"&&(i="\\{\\}"+i.substr(2)),Me(Ol(i),!0).map(El)):[]}function Al(i){return"{"+i+"}"}function kl(i){return/^-?0\d/.test(i)}function Cl(i,e){return i<=e}function Tl(i,e){return i>=e}function Me(i,e){var r=[],t=cs("{","}",i);if(!t||/\$$/.test(t.pre))return[i];var n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(t.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(t.body),o=n||s,a=t.body.indexOf(",")>=0;if(!o&&!a)return t.post.match(/,.*\}/)?(i=t.pre+"{"+t.body+Wr+t.post,Me(i)):[i];var u;if(o)u=t.body.split(/\.\./);else if(u=vs(t.body),u.length===1&&(u=Me(u[0],!1).map(Al),u.length===1)){var c=t.post.length?Me(t.post,!1):[""];return c.map(function(Ke){return t.pre+u[0]+Ke})}var l=t.pre,c=t.post.length?Me(t.post,!1):[""],p;if(o){var f=Vr(u[0]),h=Vr(u[1]),d=Math.max(u[0].length,u[1].length),_=u.length==3?Math.abs(Vr(u[2])):1,v=Cl,g=h<f;g&&(_*=-1,v=Tl);var E=u.some(kl);p=[];for(var A=f;v(A,h);A+=_){var x;if(s)x=String.fromCharCode(A),x==="\\"&&(x="");else if(x=String(A),E){var k=d-x.length;if(k>0){var G=new Array(k+1).join("0");A<0?x="-"+G+x.slice(1):x=G+x}}p.push(x)}}else p=bl(u,function(ce){return Me(ce,!1)});for(var $=0;$<p.length;$++)for(var U=0;U<c.length;U++){var Y=l+p[$]+c[U];(!e||o||Y)&&r.push(Y)}return r}});var jt=y((kg,Os)=>{Os.exports=ee;ee.Minimatch=W;var Ze={sep:"/"};try{Ze=require("path")}catch{}var Qr=ee.GLOBSTAR=W.GLOBSTAR={},Pl=ms(),ys={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},zr="[^/]",$r=zr+"*?",Ll="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Il="(?:(?!(?:\\/|^)\\.).)*?",ws=ql("().*{}+?[]^$\\!");function ql(i){return i.split("").reduce(function(e,r){return e[r]=!0,e},{})}var _s=/\/+/;ee.filter=Ml;function Ml(i,e){return e=e||{},function(r,t,n){return ee(r,i,e)}}function Ss(i,e){i=i||{},e=e||{};var r={};return Object.keys(e).forEach(function(t){r[t]=e[t]}),Object.keys(i).forEach(function(t){r[t]=i[t]}),r}ee.defaults=function(i){if(!i||!Object.keys(i).length)return ee;var e=ee,r=function(n,s,o){return e.minimatch(n,s,Ss(i,o))};return r.Minimatch=function(n,s){return new e.Minimatch(n,Ss(i,s))},r};W.defaults=function(i){return!i||!Object.keys(i).length?W:ee.defaults(i).Minimatch};function ee(i,e,r){if(typeof e!="string")throw new TypeError("glob pattern string required");return r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?i==="":new W(e,r).match(i)}function W(i,e){if(!(this instanceof W))return new W(i,e);if(typeof i!="string")throw new TypeError("glob pattern string required");e||(e={}),i=i.trim(),Ze.sep!=="/"&&(i=i.split(Ze.sep).join("/")),this.options=e,this.set=[],this.pattern=i,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}W.prototype.debug=function(){};W.prototype.make=Rl;function Rl(){if(!this._made){var i=this.pattern,e=this.options;if(!e.nocomment&&i.charAt(0)==="#"){this.comment=!0;return}if(!i){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map(function(t){return t.split(_s)}),this.debug(this.pattern,r),r=r.map(function(t,n,s){return t.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(t){return t.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}}W.prototype.parseNegate=Dl;function Dl(){var i=this.pattern,e=!1,r=this.options,t=0;if(!r.nonegate){for(var n=0,s=i.length;n<s&&i.charAt(n)==="!";n++)e=!e,t++;t&&(this.pattern=i.substr(t)),this.negate=e}}ee.braceExpand=function(i,e){return bs(i,e)};W.prototype.braceExpand=bs;function bs(i,e){if(e||(this instanceof W?e=this.options:e={}),i=typeof i=="undefined"?this.pattern:i,typeof i=="undefined")throw new TypeError("undefined pattern");return e.nobrace||!i.match(/\{.*\}/)?[i]:Pl(i)}W.prototype.parse=Nl;var Ut={};function Nl(i,e){if(i.length>1024*64)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&i==="**")return Qr;if(i==="")return"";var t="",n=!!r.nocase,s=!1,o=[],a=[],u,l=!1,c=-1,p=-1,f=i.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",h=this;function d(){if(u){switch(u){case"*":t+=$r,n=!0;break;case"?":t+=zr,n=!0;break;default:t+="\\"+u;break}h.debug("clearStateChar %j %j",u,t),u=!1}}for(var _=0,v=i.length,g;_<v&&(g=i.charAt(_));_++){if(this.debug("%s %s %s %j",i,_,t,g),s&&ws[g]){t+="\\"+g,s=!1;continue}switch(g){case"/":return!1;case"\\":d(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",i,_,t,g),l){this.debug(" in class"),g==="!"&&_===p+1&&(g="^"),t+=g;continue}h.debug("call clearStateChar %j",u),d(),u=g,r.noext&&d();continue;case"(":if(l){t+="(";continue}if(!u){t+="\\(";continue}o.push({type:u,start:_-1,reStart:t.length,open:ys[u].open,close:ys[u].close}),t+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,t),u=!1;continue;case")":if(l||!o.length){t+="\\)";continue}d(),n=!0;var E=o.pop();t+=E.close,E.type==="!"&&a.push(E),E.reEnd=t.length;continue;case"|":if(l||!o.length||s){t+="\\|",s=!1;continue}d(),t+="|";continue;case"[":if(d(),l){t+="\\"+g;continue}l=!0,p=_,c=t.length,t+=g;continue;case"]":if(_===p+1||!l){t+="\\"+g,s=!1;continue}if(l){var A=i.substring(p+1,_);try{RegExp("["+A+"]")}catch{var x=this.parse(A,Ut);t=t.substr(0,c)+"\\["+x[0]+"\\]",n=n||x[1],l=!1;continue}}n=!0,l=!1,t+=g;continue;default:d(),s?s=!1:ws[g]&&!(g==="^"&&l)&&(t+="\\"),t+=g}}for(l&&(A=i.substr(p+1),x=this.parse(A,Ut),t=t.substr(0,c)+"\\["+x[0],n=n||x[1]),E=o.pop();E;E=o.pop()){var k=t.slice(E.reStart+E.open.length);this.debug("setting tail",t,E),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,function($n,Yn,Dr){return Dr||(Dr="\\"),Yn+Yn+Dr+"|"}),this.debug(`tail=%j
%s`,k,k,E,t);var G=E.type==="*"?$r:E.type==="?"?zr:"\\"+E.type;n=!0,t=t.slice(0,E.reStart)+G+"\\("+k}d(),s&&(t+="\\\\");var $=!1;switch(t.charAt(0)){case".":case"[":case"(":$=!0}for(var U=a.length-1;U>-1;U--){var Y=a[U],ce=t.slice(0,Y.reStart),Ke=t.slice(Y.reStart,Y.reEnd-8),Nt=t.slice(Y.reEnd-8,Y.reEnd),Oe=t.slice(Y.reEnd);Nt+=Oe;var qr=ce.split("(").length-1,Mr=Oe;for(_=0;_<qr;_++)Mr=Mr.replace(/\)[+*?]?/,"");Oe=Mr;var zn="";Oe===""&&e!==Ut&&(zn="$");var cl=ce+Ke+Oe+zn+Nt;t=cl}if(t!==""&&n&&(t="(?=.)"+t),$&&(t=f+t),e===Ut)return[t,n];if(!n)return jl(i);var fl=r.nocase?"i":"";try{var Rr=new RegExp("^"+t+"$",fl)}catch{return new RegExp("$.")}return Rr._glob=i,Rr._src=t,Rr}ee.makeRe=function(i,e){return new W(i,e||{}).makeRe()};W.prototype.makeRe=Fl;function Fl(){if(this.regexp||this.regexp===!1)return this.regexp;var i=this.set;if(!i.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?$r:e.dot?Ll:Il,t=e.nocase?"i":"",n=i.map(function(s){return s.map(function(o){return o===Qr?r:typeof o=="string"?Gl(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,t)}catch{this.regexp=!1}return this.regexp}ee.match=function(i,e,r){r=r||{};var t=new W(e,r);return i=i.filter(function(n){return t.match(n)}),t.options.nonull&&!i.length&&i.push(e),i};W.prototype.match=Ul;function Ul(i,e){if(this.debug("match",i,this.pattern),this.comment)return!1;if(this.empty)return i==="";if(i==="/"&&e)return!0;var r=this.options;Ze.sep!=="/"&&(i=i.split(Ze.sep).join("/")),i=i.split(_s),this.debug(this.pattern,"split",i);var t=this.set;this.debug(this.pattern,"set",t);var n,s;for(s=i.length-1;s>=0&&(n=i[s],!n);s--);for(s=0;s<t.length;s++){var o=t[s],a=i;r.matchBase&&o.length===1&&(a=[n]);var u=this.matchOne(a,o,e);if(u)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}W.prototype.matchOne=function(i,e,r){var t=this.options;this.debug("matchOne",{this:this,file:i,pattern:e}),this.debug("matchOne",i.length,e.length);for(var n=0,s=0,o=i.length,a=e.length;n<o&&s<a;n++,s++){this.debug("matchOne loop");var u=e[s],l=i[n];if(this.debug(e,u,l),u===!1)return!1;if(u===Qr){this.debug("GLOBSTAR",[e,u,l]);var c=n,p=s+1;if(p===a){for(this.debug("** at the end");n<o;n++)if(i[n]==="."||i[n]===".."||!t.dot&&i[n].charAt(0)===".")return!1;return!0}for(;c<o;){var f=i[c];if(this.debug(`
globstar while`,i,c,e,p,f),this.matchOne(i.slice(c),e.slice(p),r))return this.debug("globstar found match!",c,o,f),!0;if(f==="."||f===".."||!t.dot&&f.charAt(0)==="."){this.debug("dot detected!",i,c,e,p);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(r&&(this.debug(`
>>> no match, partial?`,i,c,e,p),c===o))}var h;if(typeof u=="string"?(t.nocase?h=l.toLowerCase()===u.toLowerCase():h=l===u,this.debug("string match",u,l,h)):(h=l.match(u),this.debug("pattern match",u,l,h)),!h)return!1}if(n===o&&s===a)return!0;if(n===o)return r;if(s===a){var d=n===o-1&&i[n]==="";return d}throw new Error("wtf?")};function jl(i){return i.replace(/\\(.)/g,"$1")}function Gl(i){return i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Es=y((Cg,Yr)=>{typeof Object.create=="function"?Yr.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Yr.exports=function(e,r){if(r){e.super_=r;var t=function(){};t.prototype=r.prototype,e.prototype=new t,e.prototype.constructor=e}}});var xs=y((Tg,Kr)=>{try{if(Jr=require("util"),typeof Jr.inherits!="function")throw"";Kr.exports=Jr.inherits}catch{Kr.exports=Es()}var Jr});var Bt=y((Pg,Gt)=>{"use strict";function As(i){return i.charAt(0)==="/"}function ks(i){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(i),t=r[1]||"",n=Boolean(t&&t.charAt(1)!==":");return Boolean(r[2]||n)}Gt.exports=process.platform==="win32"?ks:As;Gt.exports.posix=As;Gt.exports.win32=ks});var Zr=y(_e=>{_e.setopts=$l;_e.ownProp=Cs;_e.makeAbs=Xe;_e.finish=Yl;_e.mark=Jl;_e.isIgnored=Ps;_e.childrenIgnored=Kl;function Cs(i,e){return Object.prototype.hasOwnProperty.call(i,e)}var Bl=require("fs"),Re=require("path"),Wl=jt(),Ts=Bt(),Hr=Wl.Minimatch;function Vl(i,e){return i.localeCompare(e,"en")}function Ql(i,e){i.ignore=e.ignore||[],Array.isArray(i.ignore)||(i.ignore=[i.ignore]),i.ignore.length&&(i.ignore=i.ignore.map(zl))}function zl(i){var e=null;if(i.slice(-3)==="/**"){var r=i.replace(/(\/\*\*)+$/,"");e=new Hr(r,{dot:!0})}return{matcher:new Hr(i,{dot:!0}),gmatcher:e}}function $l(i,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}i.silent=!!r.silent,i.pattern=e,i.strict=r.strict!==!1,i.realpath=!!r.realpath,i.realpathCache=r.realpathCache||Object.create(null),i.follow=!!r.follow,i.dot=!!r.dot,i.mark=!!r.mark,i.nodir=!!r.nodir,i.nodir&&(i.mark=!0),i.sync=!!r.sync,i.nounique=!!r.nounique,i.nonull=!!r.nonull,i.nosort=!!r.nosort,i.nocase=!!r.nocase,i.stat=!!r.stat,i.noprocess=!!r.noprocess,i.absolute=!!r.absolute,i.fs=r.fs||Bl,i.maxLength=r.maxLength||1/0,i.cache=r.cache||Object.create(null),i.statCache=r.statCache||Object.create(null),i.symlinks=r.symlinks||Object.create(null),Ql(i,r),i.changedCwd=!1;var t=process.cwd();Cs(r,"cwd")?(i.cwd=Re.resolve(r.cwd),i.changedCwd=i.cwd!==t):i.cwd=t,i.root=r.root||Re.resolve(i.cwd,"/"),i.root=Re.resolve(i.root),process.platform==="win32"&&(i.root=i.root.replace(/\\/g,"/")),i.cwdAbs=Ts(i.cwd)?i.cwd:Xe(i,i.cwd),process.platform==="win32"&&(i.cwdAbs=i.cwdAbs.replace(/\\/g,"/")),i.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,i.minimatch=new Hr(e,r),i.options=i.minimatch.options}function Yl(i){for(var e=i.nounique,r=e?[]:Object.create(null),t=0,n=i.matches.length;t<n;t++){var s=i.matches[t];if(!s||Object.keys(s).length===0){if(i.nonull){var o=i.minimatch.globSet[t];e?r.push(o):r[o]=!0}}else{var a=Object.keys(s);e?r.push.apply(r,a):a.forEach(function(u){r[u]=!0})}}if(e||(r=Object.keys(r)),i.nosort||(r=r.sort(Vl)),i.mark){for(var t=0;t<r.length;t++)r[t]=i._mark(r[t]);i.nodir&&(r=r.filter(function(u){var l=!/\/$/.test(u),c=i.cache[u]||i.cache[Xe(i,u)];return l&&c&&(l=c!=="DIR"&&!Array.isArray(c)),l}))}i.ignore.length&&(r=r.filter(function(u){return!Ps(i,u)})),i.found=r}function Jl(i,e){var r=Xe(i,e),t=i.cache[r],n=e;if(t){var s=t==="DIR"||Array.isArray(t),o=e.slice(-1)==="/";if(s&&!o?n+="/":!s&&o&&(n=n.slice(0,-1)),n!==e){var a=Xe(i,n);i.statCache[a]=i.statCache[r],i.cache[a]=i.cache[r]}}return n}function Xe(i,e){var r=e;return e.charAt(0)==="/"?r=Re.join(i.root,e):Ts(e)||e===""?r=e:i.changedCwd?r=Re.resolve(i.cwd,e):r=Re.resolve(e),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function Ps(i,e){return i.ignore.length?i.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function Kl(i,e){return i.ignore.length?i.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var Rs=y((Rg,Ms)=>{Ms.exports=qs;qs.GlobSync=B;var Hl=Br(),Ls=jt(),Ig=Ls.Minimatch,qg=ti().Glob,Mg=require("util"),Xr=require("path"),Is=require("assert"),Wt=Bt(),xe=Zr(),Zl=xe.setopts,ei=xe.ownProp,Xl=xe.childrenIgnored,ec=xe.isIgnored;function qs(i,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);return new B(i,e).found}function B(i,e){if(!i)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof B))return new B(i,e);if(Zl(this,i,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var t=0;t<r;t++)this._process(this.minimatch.set[t],t,!1);this._finish()}B.prototype._finish=function(){if(Is(this instanceof B),this.realpath){var i=this;this.matches.forEach(function(e,r){var t=i.matches[r]=Object.create(null);for(var n in e)try{n=i._makeAbs(n);var s=Hl.realpathSync(n,i.realpathCache);t[s]=!0}catch(o){if(o.syscall==="stat")t[i._makeAbs(n)]=!0;else throw o}})}xe.finish(this)};B.prototype._process=function(i,e,r){Is(this instanceof B);for(var t=0;typeof i[t]=="string";)t++;var n;switch(t){case i.length:this._processSimple(i.join("/"),e);return;case 0:n=null;break;default:n=i.slice(0,t).join("/");break}var s=i.slice(t),o;n===null?o=".":((Wt(n)||Wt(i.join("/")))&&(!n||!Wt(n))&&(n="/"+n),o=n);var a=this._makeAbs(o);if(!Xl(this,o)){var u=s[0]===Ls.GLOBSTAR;u?this._processGlobStar(n,o,a,s,e,r):this._processReaddir(n,o,a,s,e,r)}};B.prototype._processReaddir=function(i,e,r,t,n,s){var o=this._readdir(r,s);if(!!o){for(var a=t[0],u=!!this.minimatch.negate,l=a._glob,c=this.dot||l.charAt(0)===".",p=[],f=0;f<o.length;f++){var h=o[f];if(h.charAt(0)!=="."||c){var d;u&&!i?d=!h.match(a):d=h.match(a),d&&p.push(h)}}var _=p.length;if(_!==0){if(t.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var f=0;f<_;f++){var h=p[f];i&&(i.slice(-1)!=="/"?h=i+"/"+h:h=i+h),h.charAt(0)==="/"&&!this.nomount&&(h=Xr.join(this.root,h)),this._emitMatch(n,h)}return}t.shift();for(var f=0;f<_;f++){var h=p[f],v;i?v=[i,h]:v=[h],this._process(v.concat(t),n,s)}}}};B.prototype._emitMatch=function(i,e){if(!ec(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[i][e]){if(this.nodir){var t=this.cache[r];if(t==="DIR"||Array.isArray(t))return}this.matches[i][e]=!0,this.stat&&this._stat(e)}}};B.prototype._readdirInGlobStar=function(i){if(this.follow)return this._readdir(i,!1);var e,r,t;try{r=this.fs.lstatSync(i)}catch(s){if(s.code==="ENOENT")return null}var n=r&&r.isSymbolicLink();return this.symlinks[i]=n,!n&&r&&!r.isDirectory()?this.cache[i]="FILE":e=this._readdir(i,!1),e};B.prototype._readdir=function(i,e){var r;if(e&&!ei(this.symlinks,i))return this._readdirInGlobStar(i);if(ei(this.cache,i)){var t=this.cache[i];if(!t||t==="FILE")return null;if(Array.isArray(t))return t}try{return this._readdirEntries(i,this.fs.readdirSync(i))}catch(n){return this._readdirError(i,n),null}};B.prototype._readdirEntries=function(i,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var t=e[r];i==="/"?t=i+t:t=i+"/"+t,this.cache[t]=!0}return this.cache[i]=e,e};B.prototype._readdirError=function(i,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(i);if(this.cache[r]="FILE",r===this.cwdAbs){var t=new Error(e.code+" invalid cwd "+this.cwd);throw t.path=this.cwd,t.code=e.code,t}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(i)]=!1;break;default:if(this.cache[this._makeAbs(i)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};B.prototype._processGlobStar=function(i,e,r,t,n,s){var o=this._readdir(r,s);if(!!o){var a=t.slice(1),u=i?[i]:[],l=u.concat(a);this._process(l,n,!1);var c=o.length,p=this.symlinks[r];if(!(p&&s))for(var f=0;f<c;f++){var h=o[f];if(!(h.charAt(0)==="."&&!this.dot)){var d=u.concat(o[f],a);this._process(d,n,!0);var _=u.concat(o[f],t);this._process(_,n,!0)}}}};B.prototype._processSimple=function(i,e){var r=this._stat(i);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(i&&Wt(i)&&!this.nomount){var t=/[\/\\]$/.test(i);i.charAt(0)==="/"?i=Xr.join(this.root,i):(i=Xr.resolve(this.root,i),t&&(i+="/"))}process.platform==="win32"&&(i=i.replace(/\\/g,"/")),this._emitMatch(e,i)}};B.prototype._stat=function(i){var e=this._makeAbs(i),r=i.slice(-1)==="/";if(i.length>this.maxLength)return!1;if(!this.stat&&ei(this.cache,e)){var o=this.cache[e];if(Array.isArray(o)&&(o="DIR"),!r||o==="DIR")return o;if(r&&o==="FILE")return!1}var t,n=this.statCache[e];if(!n){var s;try{s=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(s&&s.isSymbolicLink())try{n=this.fs.statSync(e)}catch{n=s}else n=s}this.statCache[e]=n;var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||o,r&&o==="FILE"?!1:o};B.prototype._mark=function(i){return xe.mark(this,i)};B.prototype._makeAbs=function(i){return xe.makeAbs(this,i)}});var ri=y((Dg,Ns)=>{Ns.exports=Ds;function Ds(i,e){if(i&&e)return Ds(i)(e);if(typeof i!="function")throw new TypeError("need wrapper function");return Object.keys(i).forEach(function(t){r[t]=i[t]}),r;function r(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var s=i.apply(this,t),o=t[t.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var ni=y((Ng,ii)=>{var Fs=ri();ii.exports=Fs(Vt);ii.exports.strict=Fs(Us);Vt.proto=Vt(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Vt(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Us(this)},configurable:!0})});function Vt(i){var e=function(){return e.called?e.value:(e.called=!0,e.value=i.apply(this,arguments))};return e.called=!1,e}function Us(i){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=i.apply(this,arguments)},r=i.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Gs=y((Fg,js)=>{var tc=ri(),et=Object.create(null),rc=ni();js.exports=tc(ic);function ic(i,e){return et[i]?(et[i].push(e),null):(et[i]=[e],nc(i))}function nc(i){return rc(function e(){var r=et[i],t=r.length,n=sc(arguments);try{for(var s=0;s<t;s++)r[s].apply(null,n)}finally{r.length>t?(r.splice(0,t),process.nextTick(function(){e.apply(null,n)})):delete et[i]}})}function sc(i){for(var e=i.length,r=[],t=0;t<e;t++)r[t]=i[t];return r}});var ti=y((Gg,Ws)=>{Ws.exports=ke;var oc=Br(),Bs=jt(),Ug=Bs.Minimatch,ac=xs(),uc=require("events").EventEmitter,si=require("path"),oi=require("assert"),tt=Bt(),ai=Rs(),Ae=Zr(),lc=Ae.setopts,ui=Ae.ownProp,li=Gs(),jg=require("util"),cc=Ae.childrenIgnored,fc=Ae.isIgnored,hc=ni();function ke(i,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return ai(i,e)}return new T(i,e,r)}ke.sync=ai;var pc=ke.GlobSync=ai.GlobSync;ke.glob=ke;function dc(i,e){if(e===null||typeof e!="object")return i;for(var r=Object.keys(e),t=r.length;t--;)i[r[t]]=e[r[t]];return i}ke.hasMagic=function(i,e){var r=dc({},e);r.noprocess=!0;var t=new T(i,r),n=t.minimatch.set;if(!i)return!1;if(n.length>1)return!0;for(var s=0;s<n[0].length;s++)if(typeof n[0][s]!="string")return!0;return!1};ke.Glob=T;ac(T,uc);function T(i,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new pc(i,e)}if(!(this instanceof T))return new T(i,e,r);lc(this,i,e),this._didRealPath=!1;var t=this.minimatch.set.length;this.matches=new Array(t),typeof r=="function"&&(r=hc(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var n=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(t===0)return a();for(var s=!0,o=0;o<t;o++)this._process(this.minimatch.set[o],o,!1,a);s=!1;function a(){--n._processing,n._processing<=0&&(s?process.nextTick(function(){n._finish()}):n._finish())}}T.prototype._finish=function(){if(oi(this instanceof T),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Ae.finish(this),this.emit("end",this.found)}};T.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var i=this.matches.length;if(i===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,t);function t(){--i==0&&e._finish()}};T.prototype._realpathSet=function(i,e){var r=this.matches[i];if(!r)return e();var t=Object.keys(r),n=this,s=t.length;if(s===0)return e();var o=this.matches[i]=Object.create(null);t.forEach(function(a,u){a=n._makeAbs(a),oc.realpath(a,n.realpathCache,function(l,c){l?l.syscall==="stat"?o[a]=!0:n.emit("error",l):o[c]=!0,--s==0&&(n.matches[i]=o,e())})})};T.prototype._mark=function(i){return Ae.mark(this,i)};T.prototype._makeAbs=function(i){return Ae.makeAbs(this,i)};T.prototype.abort=function(){this.aborted=!0,this.emit("abort")};T.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};T.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var i=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<i.length;e++){var r=i[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var t=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<t.length;e++){var n=t[e];this._processing--,this._process(n[0],n[1],n[2],n[3])}}}};T.prototype._process=function(i,e,r,t){if(oi(this instanceof T),oi(typeof t=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([i,e,r,t]);return}for(var n=0;typeof i[n]=="string";)n++;var s;switch(n){case i.length:this._processSimple(i.join("/"),e,t);return;case 0:s=null;break;default:s=i.slice(0,n).join("/");break}var o=i.slice(n),a;s===null?a=".":((tt(s)||tt(i.join("/")))&&(!s||!tt(s))&&(s="/"+s),a=s);var u=this._makeAbs(a);if(cc(this,a))return t();var l=o[0]===Bs.GLOBSTAR;l?this._processGlobStar(s,a,u,o,e,r,t):this._processReaddir(s,a,u,o,e,r,t)}};T.prototype._processReaddir=function(i,e,r,t,n,s,o){var a=this;this._readdir(r,s,function(u,l){return a._processReaddir2(i,e,r,t,n,s,l,o)})};T.prototype._processReaddir2=function(i,e,r,t,n,s,o,a){if(!o)return a();for(var u=t[0],l=!!this.minimatch.negate,c=u._glob,p=this.dot||c.charAt(0)===".",f=[],h=0;h<o.length;h++){var d=o[h];if(d.charAt(0)!=="."||p){var _;l&&!i?_=!d.match(u):_=d.match(u),_&&f.push(d)}}var v=f.length;if(v===0)return a();if(t.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var h=0;h<v;h++){var d=f[h];i&&(i!=="/"?d=i+"/"+d:d=i+d),d.charAt(0)==="/"&&!this.nomount&&(d=si.join(this.root,d)),this._emitMatch(n,d)}return a()}t.shift();for(var h=0;h<v;h++){var d=f[h],g;i&&(i!=="/"?d=i+"/"+d:d=i+d),this._process([d].concat(t),n,s,a)}a()};T.prototype._emitMatch=function(i,e){if(!this.aborted&&!fc(this,e)){if(this.paused){this._emitQueue.push([i,e]);return}var r=tt(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[i][e]){if(this.nodir){var t=this.cache[r];if(t==="DIR"||Array.isArray(t))return}this.matches[i][e]=!0;var n=this.statCache[r];n&&this.emit("stat",e,n),this.emit("match",e)}}};T.prototype._readdirInGlobStar=function(i,e){if(this.aborted)return;if(this.follow)return this._readdir(i,!1,e);var r="lstat\0"+i,t=this,n=li(r,s);n&&t.fs.lstat(i,n);function s(o,a){if(o&&o.code==="ENOENT")return e();var u=a&&a.isSymbolicLink();t.symlinks[i]=u,!u&&a&&!a.isDirectory()?(t.cache[i]="FILE",e()):t._readdir(i,!1,e)}};T.prototype._readdir=function(i,e,r){if(!this.aborted&&(r=li("readdir\0"+i+"\0"+e,r),!!r)){if(e&&!ui(this.symlinks,i))return this._readdirInGlobStar(i,r);if(ui(this.cache,i)){var t=this.cache[i];if(!t||t==="FILE")return r();if(Array.isArray(t))return r(null,t)}var n=this;n.fs.readdir(i,vc(this,i,r))}};function vc(i,e,r){return function(t,n){t?i._readdirError(e,t,r):i._readdirEntries(e,n,r)}}T.prototype._readdirEntries=function(i,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var t=0;t<e.length;t++){var n=e[t];i==="/"?n=i+n:n=i+"/"+n,this.cache[n]=!0}return this.cache[i]=e,r(null,e)}};T.prototype._readdirError=function(i,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var t=this._makeAbs(i);if(this.cache[t]="FILE",t===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd,n.code=e.code,this.emit("error",n),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(i)]=!1;break;default:this.cache[this._makeAbs(i)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};T.prototype._processGlobStar=function(i,e,r,t,n,s,o){var a=this;this._readdir(r,s,function(u,l){a._processGlobStar2(i,e,r,t,n,s,l,o)})};T.prototype._processGlobStar2=function(i,e,r,t,n,s,o,a){if(!o)return a();var u=t.slice(1),l=i?[i]:[],c=l.concat(u);this._process(c,n,!1,a);var p=this.symlinks[r],f=o.length;if(p&&s)return a();for(var h=0;h<f;h++){var d=o[h];if(!(d.charAt(0)==="."&&!this.dot)){var _=l.concat(o[h],u);this._process(_,n,!0,a);var v=l.concat(o[h],t);this._process(v,n,!0,a)}}a()};T.prototype._processSimple=function(i,e,r){var t=this;this._stat(i,function(n,s){t._processSimple2(i,e,n,s,r)})};T.prototype._processSimple2=function(i,e,r,t,n){if(this.matches[e]||(this.matches[e]=Object.create(null)),!t)return n();if(i&&tt(i)&&!this.nomount){var s=/[\/\\]$/.test(i);i.charAt(0)==="/"?i=si.join(this.root,i):(i=si.resolve(this.root,i),s&&(i+="/"))}process.platform==="win32"&&(i=i.replace(/\\/g,"/")),this._emitMatch(e,i),n()};T.prototype._stat=function(i,e){var r=this._makeAbs(i),t=i.slice(-1)==="/";if(i.length>this.maxLength)return e();if(!this.stat&&ui(this.cache,r)){var n=this.cache[r];if(Array.isArray(n)&&(n="DIR"),!t||n==="DIR")return e(null,n);if(t&&n==="FILE")return e()}var s,o=this.statCache[r];if(o!==void 0){if(o===!1)return e(null,o);var a=o.isDirectory()?"DIR":"FILE";return t&&a==="FILE"?e():e(null,a,o)}var u=this,l=li("stat\0"+r,c);l&&u.fs.lstat(r,l);function c(p,f){if(f&&f.isSymbolicLink())return u.fs.stat(r,function(h,d){h?u._stat2(i,r,null,f,e):u._stat2(i,r,h,d,e)});u._stat2(i,r,p,f,e)}};T.prototype._stat2=function(i,e,r,t,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[e]=!1,n();var s=i.slice(-1)==="/";if(this.statCache[e]=t,e.slice(-1)==="/"&&t&&!t.isDirectory())return n(null,!1,t);var o=!0;return t&&(o=t.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||o,s&&o==="FILE"?n():n(null,o,t)}});var fi=y((Bg,ci)=>{var gc=require("tty"),mc=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||gc.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),R=(i,e,r=i)=>t=>{let n=""+t,s=n.indexOf(e,i.length);return~s?i+Vs(n,e,r,s)+e:i+n+e},Vs=(i,e,r,t)=>{let n=i.substring(0,t)+r,s=i.substring(t+e.length),o=s.indexOf(e);return~o?n+Vs(s,e,r,o):n+s},Qs=(i=mc)=>({isColorSupported:i,reset:i?e=>`[0m${e}[0m`:String,bold:i?R("[1m","[22m","[22m[1m"):String,dim:i?R("[2m","[22m","[22m[2m"):String,italic:i?R("[3m","[23m"):String,underline:i?R("[4m","[24m"):String,inverse:i?R("[7m","[27m"):String,hidden:i?R("[8m","[28m"):String,strikethrough:i?R("[9m","[29m"):String,black:i?R("[30m","[39m"):String,red:i?R("[31m","[39m"):String,green:i?R("[32m","[39m"):String,yellow:i?R("[33m","[39m"):String,blue:i?R("[34m","[39m"):String,magenta:i?R("[35m","[39m"):String,cyan:i?R("[36m","[39m"):String,white:i?R("[37m","[39m"):String,gray:i?R("[90m","[39m"):String,bgBlack:i?R("[40m","[49m"):String,bgRed:i?R("[41m","[49m"):String,bgGreen:i?R("[42m","[49m"):String,bgYellow:i?R("[43m","[49m"):String,bgBlue:i?R("[44m","[49m"):String,bgMagenta:i?R("[45m","[49m"):String,bgCyan:i?R("[46m","[49m"):String,bgWhite:i?R("[47m","[49m"):String});ci.exports=Qs();ci.exports.createColors=Qs});var pi=y((Wg,Js)=>{"use strict";var hi="'".charCodeAt(0),zs='"'.charCodeAt(0),Qt="\\".charCodeAt(0),$s="/".charCodeAt(0),zt=`
`.charCodeAt(0),rt=" ".charCodeAt(0),$t="\f".charCodeAt(0),Yt=" ".charCodeAt(0),Jt="\r".charCodeAt(0),yc="[".charCodeAt(0),wc="]".charCodeAt(0),_c="(".charCodeAt(0),Sc=")".charCodeAt(0),bc="{".charCodeAt(0),Oc="}".charCodeAt(0),Ec=";".charCodeAt(0),xc="*".charCodeAt(0),Ac=":".charCodeAt(0),kc="@".charCodeAt(0),Kt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ht=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Cc=/.[\n"'(/\\]/,Ys=/[\da-f]/i;Js.exports=function(e,r={}){let t=e.css.valueOf(),n=r.ignoreErrors,s,o,a,u,l,c,p,f,h,d,_=t.length,v=0,g=[],E=[];function A(){return v}function x(U){throw e.error("Unclosed "+U,v)}function k(){return E.length===0&&v>=_}function G(U){if(E.length)return E.pop();if(v>=_)return;let Y=U?U.ignoreUnclosed:!1;switch(s=t.charCodeAt(v),s){case zt:case rt:case Yt:case Jt:case $t:{o=v;do o+=1,s=t.charCodeAt(o);while(s===rt||s===zt||s===Yt||s===Jt||s===$t);d=["space",t.slice(v,o)],v=o-1;break}case yc:case wc:case bc:case Oc:case Ac:case Ec:case Sc:{let ce=String.fromCharCode(s);d=[ce,ce,v];break}case _c:{if(f=g.length?g.pop()[1]:"",h=t.charCodeAt(v+1),f==="url"&&h!==hi&&h!==zs&&h!==rt&&h!==zt&&h!==Yt&&h!==$t&&h!==Jt){o=v;do{if(c=!1,o=t.indexOf(")",o+1),o===-1)if(n||Y){o=v;break}else x("bracket");for(p=o;t.charCodeAt(p-1)===Qt;)p-=1,c=!c}while(c);d=["brackets",t.slice(v,o+1),v,o],v=o}else o=t.indexOf(")",v+1),u=t.slice(v,o+1),o===-1||Cc.test(u)?d=["(","(",v]:(d=["brackets",u,v,o],v=o);break}case hi:case zs:{a=s===hi?"'":'"',o=v;do{if(c=!1,o=t.indexOf(a,o+1),o===-1)if(n||Y){o=v+1;break}else x("string");for(p=o;t.charCodeAt(p-1)===Qt;)p-=1,c=!c}while(c);d=["string",t.slice(v,o+1),v,o],v=o;break}case kc:{Kt.lastIndex=v+1,Kt.test(t),Kt.lastIndex===0?o=t.length-1:o=Kt.lastIndex-2,d=["at-word",t.slice(v,o+1),v,o],v=o;break}case Qt:{for(o=v,l=!0;t.charCodeAt(o+1)===Qt;)o+=1,l=!l;if(s=t.charCodeAt(o+1),l&&s!==$s&&s!==rt&&s!==zt&&s!==Yt&&s!==Jt&&s!==$t&&(o+=1,Ys.test(t.charAt(o)))){for(;Ys.test(t.charAt(o+1));)o+=1;t.charCodeAt(o+1)===rt&&(o+=1)}d=["word",t.slice(v,o+1),v,o],v=o;break}default:{s===$s&&t.charCodeAt(v+1)===xc?(o=t.indexOf("*/",v+2)+1,o===0&&(n||Y?o=t.length:x("comment")),d=["comment",t.slice(v,o+1),v,o],v=o):(Ht.lastIndex=v+1,Ht.test(t),Ht.lastIndex===0?o=t.length-1:o=Ht.lastIndex-2,d=["word",t.slice(v,o+1),v,o],g.push(d),v=o);break}}return v++,d}function $(U){E.push(U)}return{back:$,nextToken:G,endOfFile:k,position:A}}});var di=y((Vg,Zs)=>{"use strict";var J=fi(),Tc=pi(),Ks;function Pc(i){Ks=i}var Lc={brackets:J.cyan,"at-word":J.cyan,comment:J.gray,string:J.green,class:J.yellow,hash:J.magenta,call:J.cyan,"(":J.cyan,")":J.cyan,"{":J.yellow,"}":J.yellow,"[":J.yellow,"]":J.yellow,":":J.yellow,";":J.yellow};function Ic([i,e],r){if(i==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!r.endOfFile()){let t=r.nextToken();if(r.back(t),t[0]==="brackets"||t[0]==="(")return"call"}return i}function Hs(i){let e=Tc(new Ks(i),{ignoreErrors:!0}),r="";for(;!e.endOfFile();){let t=e.nextToken(),n=Lc[Ic(t,e)];n?r+=t[1].split(/\r?\n/).map(s=>n(s)).join(`
`):r+=t[1]}return r}Hs.registerInput=Pc;Zs.exports=Hs});var Zt=y((Qg,to)=>{"use strict";var Xs=fi(),eo=di(),De=class extends Error{constructor(e,r,t,n,s,o){super(e);this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),typeof r!="undefined"&&typeof t!="undefined"&&(this.line=r,this.column=t),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,De)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Xs.isColorSupported),eo&&e&&(r=eo(r));let t=r.split(/\r?\n/),n=Math.max(this.line-3,0),s=Math.min(this.line+2,t.length),o=String(s).length,a,u;if(e){let{bold:l,red:c,gray:p}=Xs.createColors(!0);a=f=>l(c(f)),u=f=>p(f)}else a=u=l=>l;return t.slice(n,s).map((l,c)=>{let p=n+1+c,f=" "+(" "+p).slice(-o)+" | ";if(p===this.line){let h=u(f.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(f)+l+`
`+h+a("^")}return" "+u(f)+l}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}};to.exports=De;De.default=De});var Xt=y((zg,vi)=>{"use strict";vi.exports.isClean=Symbol("isClean");vi.exports.my=Symbol("my")});var gi=y(($g,no)=>{"use strict";var ro={colon:": ",indent:" ",beforeDecl:`
`,beforeRule:`
`,beforeOpen:" ",beforeClose:`
`,beforeComment:`
`,after:`
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function qc(i){return i[0].toUpperCase()+i.slice(1)}var io=class{constructor(e){this.builder=e}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let r=this.raw(e,"left","commentLeft"),t=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+t+"*/",e)}decl(e,r){let t=this.raw(e,"between","colon"),n=e.prop+t+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),r&&(n+=";"),this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,r){let t="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?t+=e.raws.afterName:n&&(t+=" "),e.nodes)this.block(e,t+n);else{let s=(e.raws.between||"")+(r?";":"");this.builder(t+n+s,e)}}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let t=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,r!==n||t)}}block(e,r){let t=this.raw(e,"between","beforeOpen");this.builder(r+t+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,r,t){let n;if(t||(t=r),r&&(n=e.raws[r],typeof n!="undefined"))return n;let s=e.parent;if(t==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return ro[t];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[t]!="undefined")return o.rawCache[t];if(t==="before"||t==="after")return this.beforeAfter(e,t);{let a="raw"+qc(t);this[a]?n=this[a](o,e):o.walk(u=>{if(n=u.raws[r],typeof n!="undefined")return!1})}return typeof n=="undefined"&&(n=ro[t]),o.rawCache[t]=n,n}rawSemicolon(e){let r;return e.walk(t=>{if(t.nodes&&t.nodes.length&&t.last.type==="decl"&&(r=t.raws.semicolon,typeof r!="undefined"))return!1}),r}rawEmptyBody(e){let r;return e.walk(t=>{if(t.nodes&&t.nodes.length===0&&(r=t.raws.after,typeof r!="undefined"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(t=>{let n=t.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof t.raws.before!="undefined"){let s=t.raws.before.split(`
`);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawBeforeComment(e,r){let t;return e.walkComments(n=>{if(typeof n.raws.before!="undefined")return t=n.raws.before,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),typeof t=="undefined"?t=this.raw(r,null,"beforeDecl"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeDecl(e,r){let t;return e.walkDecls(n=>{if(typeof n.raws.before!="undefined")return t=n.raws.before,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),typeof t=="undefined"?t=this.raw(r,null,"beforeRule"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeRule(e){let r;return e.walk(t=>{if(t.nodes&&(t.parent!==e||e.first!==t)&&typeof t.raws.before!="undefined")return r=t.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeClose(e){let r;return e.walk(t=>{if(t.nodes&&t.nodes.length>0&&typeof t.raws.after!="undefined")return r=t.raws.after,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let r;return e.walk(t=>{if(t.type!=="decl"&&(r=t.raws.between,typeof r!="undefined"))return!1}),r}rawColon(e){let r;return e.walkDecls(t=>{if(typeof t.raws.between!="undefined")return r=t.raws.between.replace(/[^\s:]/g,""),!1}),r}beforeAfter(e,r){let t;e.type==="decl"?t=this.raw(e,null,"beforeDecl"):e.type==="comment"?t=this.raw(e,null,"beforeComment"):r==="before"?t=this.raw(e,null,"beforeRule"):t=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(t.includes(`
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)t+=o}return t}rawValue(e,r){let t=e[r],n=e.raws[r];return n&&n.value===t?n.raw:t}};no.exports=io});var er=y((Yg,so)=>{"use strict";var Mc=gi();function mi(i,e){new Mc(e).stringify(i)}so.exports=mi;mi.default=mi});var it=y((Jg,oo)=>{"use strict";var{isClean:tr,my:Rc}=Xt(),Dc=Zt(),Nc=gi(),Fc=er();function yi(i,e){let r=new i.constructor;for(let t in i){if(!Object.prototype.hasOwnProperty.call(i,t)||t==="proxyCache")continue;let n=i[t],s=typeof n;t==="parent"&&s==="object"?e&&(r[t]=e):t==="source"?r[t]=n:Array.isArray(n)?r[t]=n.map(o=>yi(o,r)):(s==="object"&&n!==null&&(n=yi(n)),r[t]=n)}return r}var rr=class{constructor(e={}){this.raws={},this[tr]=!1,this[Rc]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let t of e[r])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[r]=e[r]}error(e,r={}){if(this.source){let t=this.positionBy(r);return this.source.input.error(e,t.line,t.column,r)}return new Dc(e)}warn(e,r,t){let n={node:this};for(let s in t)n[s]=t[s];return e.warn(r,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Fc){e.stringify&&(e=e.stringify);let r="";return e(this,t=>{r+=t}),r}assign(e={}){for(let r in e)this[r]=e[r];return this}clone(e={}){let r=yi(this);for(let t in e)r[t]=e[t];return r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}replaceWith(...e){if(this.parent){let r=this,t=!1;for(let n of e)n===this?t=!0:t?(this.parent.insertAfter(r,n),r=n):this.parent.insertBefore(r,n);t||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,r){return new Nc().raw(this,e,r)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,r){let t={},n=r==null;r=r||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))t[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof a=="object"&&a.toJSON)t[o]=a.toJSON(null,r);else if(o==="source"){let u=r.get(a.input);u==null&&(u=s,r.set(a.input,s),s++),t[o]={inputId:u,start:a.start,end:a.end}}else t[o]=a}return n&&(t.inputs=[...r.keys()].map(o=>o.toJSON())),t}positionInside(e){let r=this.toString(),t=this.source.start.column,n=this.source.start.line;for(let s=0;s<e;s++)r[s]===`
`?(t=1,n+=1):t+=1;return{line:n,column:t}}positionBy(e){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let t=this.toString().indexOf(e.word);t!==-1&&(r=this.positionInside(t))}return r}getProxyProcessor(){return{set(e,r,t){return e[r]===t||(e[r]=t,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0},get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}markDirty(){if(this[tr]){this[tr]=!1;let e=this;for(;e=e.parent;)e[tr]=!1}}get proxyOf(){return this}};oo.exports=rr;rr.default=rr});var nt=y((Kg,ao)=>{"use strict";var Uc=it(),ir=class extends Uc{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=H(F({},e),{value:String(e.value)}));super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};ao.exports=ir;ir.default=ir});var lo=y(wi=>{var uo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");wi.encode=function(i){if(0<=i&&i<uo.length)return uo[i];throw new TypeError("Must be between 0 and 63: "+i)};wi.decode=function(i){var e=65,r=90,t=97,n=122,s=48,o=57,a=43,u=47,l=26,c=52;return e<=i&&i<=r?i-e:t<=i&&i<=n?i-t+l:s<=i&&i<=o?i-s+c:i==a?62:i==u?63:-1}});var bi=y(Si=>{var co=lo(),_i=5,fo=1<<_i,ho=fo-1,po=fo;function jc(i){return i<0?(-i<<1)+1:(i<<1)+0}function Gc(i){var e=(i&1)==1,r=i>>1;return e?-r:r}Si.encode=function(e){var r="",t,n=jc(e);do t=n&ho,n>>>=_i,n>0&&(t|=po),r+=co.encode(t);while(n>0);return r};Si.decode=function(e,r,t){var n=e.length,s=0,o=0,a,u;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(u=co.decode(e.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(u&po),u&=ho,s=s+(u<<o),o+=_i}while(a);t.value=Gc(s),t.rest=r}});var Fe=y(V=>{function Bc(i,e,r){if(e in i)return i[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}V.getArg=Bc;var vo=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Wc=/^data:.+\,.+$/;function st(i){var e=i.match(vo);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}V.urlParse=st;function Ne(i){var e="";return i.scheme&&(e+=i.scheme+":"),e+="//",i.auth&&(e+=i.auth+"@"),i.host&&(e+=i.host),i.port&&(e+=":"+i.port),i.path&&(e+=i.path),e}V.urlGenerate=Ne;var Vc=32;function Qc(i){var e=[];return function(r){for(var t=0;t<e.length;t++)if(e[t].input===r){var n=e[0];return e[0]=e[t],e[t]=n,e[0].result}var s=i(r);return e.unshift({input:r,result:s}),e.length>Vc&&e.pop(),s}}var Oi=Qc(function(e){var r=e,t=st(e);if(t){if(!t.path)return e;r=t.path}for(var n=V.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var u,l=0,a=s.length-1;a>=0;a--)u=s[a],u==="."?s.splice(a,1):u===".."?l++:l>0&&(u===""?(s.splice(a+1,l),l=0):(s.splice(a,2),l--));return r=s.join("/"),r===""&&(r=n?"/":"."),t?(t.path=r,Ne(t)):r});V.normalize=Oi;function go(i,e){i===""&&(i="."),e===""&&(e=".");var r=st(e),t=st(i);if(t&&(i=t.path||"/"),r&&!r.scheme)return t&&(r.scheme=t.scheme),Ne(r);if(r||e.match(Wc))return e;if(t&&!t.host&&!t.path)return t.host=e,Ne(t);var n=e.charAt(0)==="/"?e:Oi(i.replace(/\/+$/,"")+"/"+e);return t?(t.path=n,Ne(t)):n}V.join=go;V.isAbsolute=function(i){return i.charAt(0)==="/"||vo.test(i)};function zc(i,e){i===""&&(i="."),i=i.replace(/\/$/,"");for(var r=0;e.indexOf(i+"/")!==0;){var t=i.lastIndexOf("/");if(t<0||(i=i.slice(0,t),i.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(i.length+1)}V.relative=zc;var mo=function(){var i=Object.create(null);return!("__proto__"in i)}();function yo(i){return i}function $c(i){return wo(i)?"$"+i:i}V.toSetString=mo?yo:$c;function Yc(i){return wo(i)?i.slice(1):i}V.fromSetString=mo?yo:Yc;function wo(i){if(!i)return!1;var e=i.length;if(e<9||i.charCodeAt(e-1)!==95||i.charCodeAt(e-2)!==95||i.charCodeAt(e-3)!==111||i.charCodeAt(e-4)!==116||i.charCodeAt(e-5)!==111||i.charCodeAt(e-6)!==114||i.charCodeAt(e-7)!==112||i.charCodeAt(e-8)!==95||i.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(i.charCodeAt(r)!==36)return!1;return!0}function Jc(i,e,r){var t=he(i.source,e.source);return t!==0||(t=i.originalLine-e.originalLine,t!==0)||(t=i.originalColumn-e.originalColumn,t!==0||r)||(t=i.generatedColumn-e.generatedColumn,t!==0)||(t=i.generatedLine-e.generatedLine,t!==0)?t:he(i.name,e.name)}V.compareByOriginalPositions=Jc;function Kc(i,e,r){var t;return t=i.originalLine-e.originalLine,t!==0||(t=i.originalColumn-e.originalColumn,t!==0||r)||(t=i.generatedColumn-e.generatedColumn,t!==0)||(t=i.generatedLine-e.generatedLine,t!==0)?t:he(i.name,e.name)}V.compareByOriginalPositionsNoSource=Kc;function Hc(i,e,r){var t=i.generatedLine-e.generatedLine;return t!==0||(t=i.generatedColumn-e.generatedColumn,t!==0||r)||(t=he(i.source,e.source),t!==0)||(t=i.originalLine-e.originalLine,t!==0)||(t=i.originalColumn-e.originalColumn,t!==0)?t:he(i.name,e.name)}V.compareByGeneratedPositionsDeflated=Hc;function Zc(i,e,r){var t=i.generatedColumn-e.generatedColumn;return t!==0||r||(t=he(i.source,e.source),t!==0)||(t=i.originalLine-e.originalLine,t!==0)||(t=i.originalColumn-e.originalColumn,t!==0)?t:he(i.name,e.name)}V.compareByGeneratedPositionsDeflatedNoLine=Zc;function he(i,e){return i===e?0:i===null?1:e===null?-1:i>e?1:-1}function Xc(i,e){var r=i.generatedLine-e.generatedLine;return r!==0||(r=i.generatedColumn-e.generatedColumn,r!==0)||(r=he(i.source,e.source),r!==0)||(r=i.originalLine-e.originalLine,r!==0)||(r=i.originalColumn-e.originalColumn,r!==0)?r:he(i.name,e.name)}V.compareByGeneratedPositionsInflated=Xc;function ef(i){return JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}V.parseSourceMapInput=ef;function tf(i,e,r){if(e=e||"",i&&(i[i.length-1]!=="/"&&e[0]!=="/"&&(i+="/"),e=i+e),r){var t=st(r);if(!t)throw new Error("sourceMapURL could not be parsed");if(t.path){var n=t.path.lastIndexOf("/");n>=0&&(t.path=t.path.substring(0,n+1))}e=go(Ne(t),e)}return Oi(e)}V.computeSourceURL=tf});var Ai=y(_o=>{var Ei=Fe(),xi=Object.prototype.hasOwnProperty,Ce=typeof Map!="undefined";function pe(){this._array=[],this._set=Ce?new Map:Object.create(null)}pe.fromArray=function(e,r){for(var t=new pe,n=0,s=e.length;n<s;n++)t.add(e[n],r);return t};pe.prototype.size=function(){return Ce?this._set.size:Object.getOwnPropertyNames(this._set).length};pe.prototype.add=function(e,r){var t=Ce?e:Ei.toSetString(e),n=Ce?this.has(e):xi.call(this._set,t),s=this._array.length;(!n||r)&&this._array.push(e),n||(Ce?this._set.set(e,s):this._set[t]=s)};pe.prototype.has=function(e){if(Ce)return this._set.has(e);var r=Ei.toSetString(e);return xi.call(this._set,r)};pe.prototype.indexOf=function(e){if(Ce){var r=this._set.get(e);if(r>=0)return r}else{var t=Ei.toSetString(e);if(xi.call(this._set,t))return this._set[t]}throw new Error('"'+e+'" is not in the set.')};pe.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};pe.prototype.toArray=function(){return this._array.slice()};_o.ArraySet=pe});var Oo=y(bo=>{var So=Fe();function rf(i,e){var r=i.generatedLine,t=e.generatedLine,n=i.generatedColumn,s=e.generatedColumn;return t>r||t==r&&s>=n||So.compareByGeneratedPositionsInflated(i,e)<=0}function nr(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}nr.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};nr.prototype.add=function(e){rf(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};nr.prototype.toArray=function(){return this._sorted||(this._array.sort(So.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};bo.MappingList=nr});var ki=y(Eo=>{var ot=bi(),j=Fe(),sr=Ai().ArraySet,nf=Oo().MappingList;function te(i){i||(i={}),this._file=j.getArg(i,"file",null),this._sourceRoot=j.getArg(i,"sourceRoot",null),this._skipValidation=j.getArg(i,"skipValidation",!1),this._sources=new sr,this._names=new sr,this._mappings=new nf,this._sourcesContents=null}te.prototype._version=3;te.fromSourceMap=function(e){var r=e.sourceRoot,t=new te({file:e.file,sourceRoot:r});return e.eachMapping(function(n){var s={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(s.source=n.source,r!=null&&(s.source=j.relative(r,s.source)),s.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(s.name=n.name)),t.addMapping(s)}),e.sources.forEach(function(n){var s=n;r!==null&&(s=j.relative(r,n)),t._sources.has(s)||t._sources.add(s);var o=e.sourceContentFor(n);o!=null&&t.setSourceContent(n,o)}),t};te.prototype.addMapping=function(e){var r=j.getArg(e,"generated"),t=j.getArg(e,"original",null),n=j.getArg(e,"source",null),s=j.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,t,n,s),n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:t!=null&&t.line,originalColumn:t!=null&&t.column,source:n,name:s})};te.prototype.setSourceContent=function(e,r){var t=e;this._sourceRoot!=null&&(t=j.relative(this._sourceRoot,t)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[j.toSetString(t)]=r):this._sourcesContents&&(delete this._sourcesContents[j.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};te.prototype.applySourceMap=function(e,r,t){var n=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=e.file}var s=this._sourceRoot;s!=null&&(n=j.relative(s,n));var o=new sr,a=new sr;this._mappings.unsortedForEach(function(u){if(u.source===n&&u.originalLine!=null){var l=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,t!=null&&(u.source=j.join(t,u.source)),s!=null&&(u.source=j.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var c=u.source;c!=null&&!o.has(c)&&o.add(c);var p=u.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,e.sources.forEach(function(u){var l=e.sourceContentFor(u);l!=null&&(t!=null&&(u=j.join(t,u)),s!=null&&(u=j.relative(s,u)),this.setSourceContent(u,l))},this)};te.prototype._validateMapping=function(e,r,t,n){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!t&&!n)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&t)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:r,name:n}))}};te.prototype._serializeMappings=function(){for(var e=0,r=1,t=0,n=0,s=0,o=0,a="",u,l,c,p,f=this._mappings.toArray(),h=0,d=f.length;h<d;h++){if(l=f[h],u="",l.generatedLine!==r)for(e=0;l.generatedLine!==r;)u+=";",r++;else if(h>0){if(!j.compareByGeneratedPositionsInflated(l,f[h-1]))continue;u+=","}u+=ot.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=ot.encode(p-o),o=p,u+=ot.encode(l.originalLine-1-n),n=l.originalLine-1,u+=ot.encode(l.originalColumn-t),t=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),u+=ot.encode(c-s),s=c)),a+=u}return a};te.prototype._generateSourcesContent=function(e,r){return e.map(function(t){if(!this._sourcesContents)return null;r!=null&&(t=j.relative(r,t));var n=j.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};te.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};te.prototype.toString=function(){return JSON.stringify(this.toJSON())};Eo.SourceMapGenerator=te});var xo=y(Te=>{Te.GREATEST_LOWER_BOUND=1;Te.LEAST_UPPER_BOUND=2;function Ci(i,e,r,t,n,s){var o=Math.floor((e-i)/2)+i,a=n(r,t[o],!0);return a===0?o:a>0?e-o>1?Ci(o,e,r,t,n,s):s==Te.LEAST_UPPER_BOUND?e<t.length?e:-1:o:o-i>1?Ci(i,o,r,t,n,s):s==Te.LEAST_UPPER_BOUND?o:i<0?-1:i}Te.search=function(e,r,t,n){if(r.length===0)return-1;var s=Ci(-1,r.length,e,r,t,n||Te.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&t(r[s],r[s-1],!0)===0;)--s;return s}});var Co=y(ko=>{function sf(i){function e(n,s,o){var a=n[s];n[s]=n[o],n[o]=a}function r(n,s){return Math.round(n+Math.random()*(s-n))}function t(n,s,o,a){if(o<a){var u=r(o,a),l=o-1;e(n,u,a);for(var c=n[a],p=o;p<a;p++)s(n[p],c,!1)<=0&&(l+=1,e(n,l,p));e(n,l+1,p);var f=l+1;t(n,s,o,f-1),t(n,s,f+1,a)}}return t}function of(i){let e=sf.toString();return new Function(`return ${e}`)()(i)}var Ao=new WeakMap;ko.quickSort=function(i,e,r=0){let t=Ao.get(e);t===void 0&&(t=of(e),Ao.set(e,t)),t(i,e,r,i.length-1)}});var Lo=y(or=>{var O=Fe(),Ti=xo(),Ue=Ai().ArraySet,af=bi(),at=Co().quickSort;function M(i,e){var r=i;return typeof i=="string"&&(r=O.parseSourceMapInput(i)),r.sections!=null?new se(r,e):new Q(r,e)}M.fromSourceMap=function(i,e){return Q.fromSourceMap(i,e)};M.prototype._version=3;M.prototype.__generatedMappings=null;Object.defineProperty(M.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});M.prototype.__originalMappings=null;Object.defineProperty(M.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});M.prototype._charIsMappingSeparator=function(e,r){var t=e.charAt(r);return t===";"||t===","};M.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};M.GENERATED_ORDER=1;M.ORIGINAL_ORDER=2;M.GREATEST_LOWER_BOUND=1;M.LEAST_UPPER_BOUND=2;M.prototype.eachMapping=function(e,r,t){var n=r||null,s=t||M.GENERATED_ORDER,o;switch(s){case M.GENERATED_ORDER:o=this._generatedMappings;break;case M.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=O.computeSourceURL(a,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(e,n)};M.prototype.allGeneratedPositionsFor=function(e){var r=O.getArg(e,"line"),t={source:O.getArg(e,"source"),originalLine:r,originalColumn:O.getArg(e,"column",0)};if(t.source=this._findSourceIndex(t.source),t.source<0)return[];var n=[],s=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,Ti.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)n.push({line:O.getArg(o,"generatedLine",null),column:O.getArg(o,"generatedColumn",null),lastColumn:O.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var u=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==u;)n.push({line:O.getArg(o,"generatedLine",null),column:O.getArg(o,"generatedColumn",null),lastColumn:O.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return n};or.SourceMapConsumer=M;function Q(i,e){var r=i;typeof i=="string"&&(r=O.parseSourceMapInput(i));var t=O.getArg(r,"version"),n=O.getArg(r,"sources"),s=O.getArg(r,"names",[]),o=O.getArg(r,"sourceRoot",null),a=O.getArg(r,"sourcesContent",null),u=O.getArg(r,"mappings"),l=O.getArg(r,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);o&&(o=O.normalize(o)),n=n.map(String).map(O.normalize).map(function(c){return o&&O.isAbsolute(o)&&O.isAbsolute(c)?O.relative(o,c):c}),this._names=Ue.fromArray(s.map(String),!0),this._sources=Ue.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(c){return O.computeSourceURL(o,c,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=u,this._sourceMapURL=e,this.file=l}Q.prototype=Object.create(M.prototype);Q.prototype.consumer=M;Q.prototype._findSourceIndex=function(i){var e=i;if(this.sourceRoot!=null&&(e=O.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==i)return r;return-1};Q.fromSourceMap=function(e,r){var t=Object.create(Q.prototype),n=t._names=Ue.fromArray(e._names.toArray(),!0),s=t._sources=Ue.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t._sourceMapURL=r,t._absoluteSources=t._sources.toArray().map(function(h){return O.computeSourceURL(t.sourceRoot,h,r)});for(var o=e._mappings.toArray().slice(),a=t.__generatedMappings=[],u=t.__originalMappings=[],l=0,c=o.length;l<c;l++){var p=o[l],f=new To;f.generatedLine=p.generatedLine,f.generatedColumn=p.generatedColumn,p.source&&(f.source=s.indexOf(p.source),f.originalLine=p.originalLine,f.originalColumn=p.originalColumn,p.name&&(f.name=n.indexOf(p.name)),u.push(f)),a.push(f)}return at(t.__originalMappings,O.compareByOriginalPositions),t};Q.prototype._version=3;Object.defineProperty(Q.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function To(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Pi=O.compareByGeneratedPositionsDeflatedNoLine;function Po(i,e){let r=i.length,t=i.length-e;if(!(t<=1))if(t==2){let n=i[e],s=i[e+1];Pi(n,s)>0&&(i[e]=s,i[e+1]=n)}else if(t<20)for(let n=e;n<r;n++)for(let s=n;s>e;s--){let o=i[s-1],a=i[s];if(Pi(o,a)<=0)break;i[s-1]=a,i[s]=o}else at(i,Pi,e)}Q.prototype._parseMappings=function(e,r){var t=1,n=0,s=0,o=0,a=0,u=0,l=e.length,c=0,p={},f={},h=[],d=[],_,v,g,E,A;let x=0;for(;c<l;)if(e.charAt(c)===";")t++,c++,n=0,Po(d,x),x=d.length;else if(e.charAt(c)===",")c++;else{for(_=new To,_.generatedLine=t,E=c;E<l&&!this._charIsMappingSeparator(e,E);E++);for(v=e.slice(c,E),g=[];c<E;)af.decode(e,c,f),A=f.value,c=f.rest,g.push(A);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");if(_.generatedColumn=n+g[0],n=_.generatedColumn,g.length>1&&(_.source=a+g[1],a+=g[1],_.originalLine=s+g[2],s=_.originalLine,_.originalLine+=1,_.originalColumn=o+g[3],o=_.originalColumn,g.length>4&&(_.name=u+g[4],u+=g[4])),d.push(_),typeof _.originalLine=="number"){let G=_.source;for(;h.length<=G;)h.push(null);h[G]===null&&(h[G]=[]),h[G].push(_)}}Po(d,x),this.__generatedMappings=d;for(var k=0;k<h.length;k++)h[k]!=null&&at(h[k],O.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h)};Q.prototype._findMapping=function(e,r,t,n,s,o){if(e[t]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[t]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return Ti.search(e,r,s,o)};Q.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var t=this._generatedMappings[e+1];if(r.generatedLine===t.generatedLine){r.lastGeneratedColumn=t.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};Q.prototype.originalPositionFor=function(e){var r={generatedLine:O.getArg(e,"line"),generatedColumn:O.getArg(e,"column")},t=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",O.compareByGeneratedPositionsDeflated,O.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(t>=0){var n=this._generatedMappings[t];if(n.generatedLine===r.generatedLine){var s=O.getArg(n,"source",null);s!==null&&(s=this._sources.at(s),s=O.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=O.getArg(n,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:O.getArg(n,"originalLine",null),column:O.getArg(n,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};Q.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};Q.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];var n=e;this.sourceRoot!=null&&(n=O.relative(this.sourceRoot,n));var s;if(this.sourceRoot!=null&&(s=O.urlParse(this.sourceRoot))){var o=n.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(r)return null;throw new Error('"'+n+'" is not in the SourceMap.')};Q.prototype.generatedPositionFor=function(e){var r=O.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var t={source:r,originalLine:O.getArg(e,"line"),originalColumn:O.getArg(e,"column")},n=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",O.compareByOriginalPositions,O.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===t.source)return{line:O.getArg(s,"generatedLine",null),column:O.getArg(s,"generatedColumn",null),lastColumn:O.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};or.BasicSourceMapConsumer=Q;function se(i,e){var r=i;typeof i=="string"&&(r=O.parseSourceMapInput(i));var t=O.getArg(r,"version"),n=O.getArg(r,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new Ue,this._names=new Ue;var s={line:-1,column:0};this._sections=n.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=O.getArg(o,"offset"),u=O.getArg(a,"line"),l=O.getArg(a,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new M(O.getArg(o,"map"),e)}})}se.prototype=Object.create(M.prototype);se.prototype.constructor=M;se.prototype._version=3;Object.defineProperty(se.prototype,"sources",{get:function(){for(var i=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)i.push(this._sections[e].consumer.sources[r]);return i}});se.prototype.originalPositionFor=function(e){var r={generatedLine:O.getArg(e,"line"),generatedColumn:O.getArg(e,"column")},t=Ti.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),n=this._sections[t];return n?n.consumer.originalPositionFor({line:r.generatedLine-(n.generatedOffset.generatedLine-1),column:r.generatedColumn-(n.generatedOffset.generatedLine===r.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};se.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};se.prototype.sourceContentFor=function(e,r){for(var t=0;t<this._sections.length;t++){var n=this._sections[t],s=n.consumer.sourceContentFor(e,!0);if(s)return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};se.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var t=this._sections[r];if(t.consumer._findSourceIndex(O.getArg(e,"source"))!==-1){var n=t.consumer.generatedPositionFor(e);if(n){var s={line:n.line+(t.generatedOffset.generatedLine-1),column:n.column+(t.generatedOffset.generatedLine===n.line?t.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};se.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var t=0;t<this._sections.length;t++)for(var n=this._sections[t],s=n.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],u=n.consumer._sources.at(a.source);u=O.computeSourceURL(n.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;a.name&&(l=n.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var c={source:u,generatedLine:a.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(n.generatedOffset.generatedLine===a.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}at(this.__generatedMappings,O.compareByGeneratedPositionsDeflated),at(this.__originalMappings,O.compareByOriginalPositions)};or.IndexedSourceMapConsumer=se});var qo=y(Io=>{var uf=ki().SourceMapGenerator,ar=Fe(),lf=/(\r?\n)/,cf=10,je="$$$isSourceNode$$$";function Z(i,e,r,t,n){this.children=[],this.sourceContents={},this.line=i==null?null:i,this.column=e==null?null:e,this.source=r==null?null:r,this.name=n==null?null:n,this[je]=!0,t!=null&&this.add(t)}Z.fromStringWithSourceMap=function(e,r,t){var n=new Z,s=e.split(lf),o=0,a=function(){var f=d(),h=d()||"";return f+h;function d(){return o<s.length?s[o++]:void 0}},u=1,l=0,c=null;return r.eachMapping(function(f){if(c!==null)if(u<f.generatedLine)p(c,a()),u++,l=0;else{var h=s[o]||"",d=h.substr(0,f.generatedColumn-l);s[o]=h.substr(f.generatedColumn-l),l=f.generatedColumn,p(c,d),c=f;return}for(;u<f.generatedLine;)n.add(a()),u++;if(l<f.generatedColumn){var h=s[o]||"";n.add(h.substr(0,f.generatedColumn)),s[o]=h.substr(f.generatedColumn),l=f.generatedColumn}c=f},this),o<s.length&&(c&&p(c,a()),n.add(s.splice(o).join(""))),r.sources.forEach(function(f){var h=r.sourceContentFor(f);h!=null&&(t!=null&&(f=ar.join(t,f)),n.setSourceContent(f,h))}),n;function p(f,h){if(f===null||f.source===void 0)n.add(h);else{var d=t?ar.join(t,f.source):f.source;n.add(new Z(f.originalLine,f.originalColumn,d,h,f.name))}}};Z.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[je]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Z.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[je]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Z.prototype.walk=function(e){for(var r,t=0,n=this.children.length;t<n;t++)r=this.children[t],r[je]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Z.prototype.join=function(e){var r,t,n=this.children.length;if(n>0){for(r=[],t=0;t<n-1;t++)r.push(this.children[t]),r.push(e);r.push(this.children[t]),this.children=r}return this};Z.prototype.replaceRight=function(e,r){var t=this.children[this.children.length-1];return t[je]?t.replaceRight(e,r):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,r):this.children.push("".replace(e,r)),this};Z.prototype.setSourceContent=function(e,r){this.sourceContents[ar.toSetString(e)]=r};Z.prototype.walkSourceContents=function(e){for(var r=0,t=this.children.length;r<t;r++)this.children[r][je]&&this.children[r].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),r=0,t=n.length;r<t;r++)e(ar.fromSetString(n[r]),this.sourceContents[n[r]])};Z.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};Z.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},t=new uf(e),n=!1,s=null,o=null,a=null,u=null;return this.walk(function(l,c){r.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((s!==c.source||o!==c.line||a!==c.column||u!==c.name)&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name}),s=c.source,o=c.line,a=c.column,u=c.name,n=!0):n&&(t.addMapping({generated:{line:r.line,column:r.column}}),s=null,n=!1);for(var p=0,f=l.length;p<f;p++)l.charCodeAt(p)===cf?(r.line++,r.column=0,p+1===f?(s=null,n=!1):n&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})):r.column++}),this.walkSourceContents(function(l,c){t.setSourceContent(l,c)}),{code:r.code,map:t}};Io.SourceNode=Z});var lr=y(ur=>{ur.SourceMapGenerator=ki().SourceMapGenerator;ur.SourceMapConsumer=Lo().SourceMapConsumer;ur.SourceNode=qo().SourceNode});var Bo=y((um,Go)=>{"use strict";var{SourceMapConsumer:Mo,SourceMapGenerator:Ro}=lr(),{dirname:cr,resolve:Do,relative:No,sep:Fo}=require("path"),{pathToFileURL:Uo}=require("url"),ff=Boolean(Mo&&Ro),hf=Boolean(cr&&Do&&No&&Fo),jo=class{constructor(e,r,t){this.stringify=e,this.mapOpts=t.map||{},this.root=r,this.opts=t}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}previous(){return this.previousMaps||(this.previousMaps=[],this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}})),this.previousMaps}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation===!1)return;let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}setSourcesContent(){let e={};this.root.walk(r=>{if(r.source){let t=r.source.input.from;t&&!e[t]&&(e[t]=!0,this.map.setSourceContent(this.toUrl(this.path(t)),r.source.input.css))}})}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),t=e.root||cr(e.file),n;this.mapOpts.sourcesContent===!1?(n=new Mo(e.text),n.sourcesContent&&(n.sourcesContent=n.sourcesContent.map(()=>null))):n=e.consumer(),this.map.applySourceMap(n,r,this.toUrl(this.path(t)))}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(e.indexOf("<")===0||/^\w+:\/\//.test(e)||this.mapOpts.absolute)return e;let r=this.opts.to?cr(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(r=cr(Do(r,this.mapOpts.annotation))),e=No(r,e),e}toUrl(e){return Fo==="\\"&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(Uo)return Uo(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}else return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new Ro({file:this.outputFile()});let e=1,r=1,t="<no source>",n={source:"",generated:{line:0,column:0},original:{line:0,column:0}},s,o;this.stringify(this.root,(a,u,l)=>{if(this.css+=a,u&&l!=="end"&&(n.generated.line=e,n.generated.column=r-1,u.source&&u.source.start?(n.source=this.sourcePath(u),n.original.line=u.source.start.line,n.original.column=u.source.start.column-1,this.map.addMapping(n)):(n.source=t,n.original.line=1,n.original.column=0,this.map.addMapping(n))),s=a.match(/\n/g),s?(e+=s.length,o=a.lastIndexOf(`
`),r=a.length-o):r+=a.length,u&&l!=="start"){let c=u.parent||{raws:{}};(u.type!=="decl"||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(n.source=this.sourcePath(u),n.original.line=u.source.end.line,n.original.column=u.source.end.column-1,n.generated.line=e,n.generated.column=r-2,this.map.addMapping(n)):(n.source=t,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=r-1,this.map.addMapping(n)))}})}generate(){if(this.clearAnnotation(),hf&&ff&&this.isMap())return this.generateMap();let e="";return this.stringify(this.root,r=>{e+=r}),[e]}};Go.exports=jo});var ut=y((lm,Wo)=>{"use strict";var pf=it(),fr=class extends pf{constructor(e){super(e);this.type="comment"}};Wo.exports=fr;fr.default=fr});var Se=y((cm,Ho)=>{"use strict";var{isClean:Vo,my:Qo}=Xt(),zo=nt(),$o=ut(),df=it(),Yo,Li,Ii;function Jo(i){return i.map(e=>(e.nodes&&(e.nodes=Jo(e.nodes)),delete e.source,e))}function Ko(i){if(i[Vo]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Ko(e)}var oe=class extends df{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),t,n;for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),n!==!1);)this.indexes[r]+=1;return delete this.indexes[r],n}walk(e){return this.each((r,t)=>{let n;try{n=e(r,t)}catch(s){throw r.addToError(s)}return n!==!1&&r.walk&&(n=r.walk(e)),n})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((t,n)=>{if(t.type==="decl"&&e.test(t.prop))return r(t,n)}):this.walk((t,n)=>{if(t.type==="decl"&&t.prop===e)return r(t,n)}):(r=e,this.walk((t,n)=>{if(t.type==="decl")return r(t,n)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((t,n)=>{if(t.type==="rule"&&e.test(t.selector))return r(t,n)}):this.walk((t,n)=>{if(t.type==="rule"&&t.selector===e)return r(t,n)}):(r=e,this.walk((t,n)=>{if(t.type==="rule")return r(t,n)}))}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((t,n)=>{if(t.type==="atrule"&&e.test(t.name))return r(t,n)}):this.walk((t,n)=>{if(t.type==="atrule"&&t.name===e)return r(t,n)}):(r=e,this.walk((t,n)=>{if(t.type==="atrule")return r(t,n)}))}walkComments(e){return this.walk((r,t)=>{if(r.type==="comment")return e(r,t)})}append(...e){for(let r of e){let t=this.normalize(r,this.last);for(let n of t)this.proxyOf.nodes.push(n)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let r of e){let t=this.normalize(r,this.first,"prepend").reverse();for(let n of t)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+t.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}insertBefore(e,r){e=this.index(e);let t=e===0?"prepend":!1,n=this.normalize(r,this.proxyOf.nodes[e],t).reverse();for(let o of n)this.proxyOf.nodes.splice(e,0,o);let s;for(let o in this.indexes)s=this.indexes[o],e<=s&&(this.indexes[o]=s+n.length);return this.markDirty(),this}insertAfter(e,r){e=this.index(e);let t=this.normalize(r,this.proxyOf.nodes[e]).reverse();for(let s of t)this.proxyOf.nodes.splice(e+1,0,s);let n;for(let s in this.indexes)n=this.indexes[s],e<n&&(this.indexes[s]=n+t.length);return this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let t in this.indexes)r=this.indexes[t],r>=e&&(this.indexes[t]=r-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,r,t){return t||(t=r,r={}),this.walkDecls(n=>{r.props&&!r.props.includes(n.prop)||r.fast&&!n.value.includes(r.fast)||(n.value=n.value.replace(e,t))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,r){if(typeof e=="string")e=Jo(Yo(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new zo(e)]}else if(e.selector)e=[new Li(e)];else if(e.name)e=[new Ii(e)];else if(e.text)e=[new $o(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Qo]||oe.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Vo]&&Ko(n),typeof n.raws.before=="undefined"&&r&&typeof r.raws.before!="undefined"&&(n.raws.before=r.raws.before.replace(/\S/g,"")),n.parent=this,n))}getProxyProcessor(){return{set(e,r,t){return e[r]===t||(e[r]=t,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0},get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...t)=>e[r](...t.map(n=>typeof n=="function"?(s,o)=>n(s.toProxy(),o):n)):r==="every"||r==="some"?t=>e[r]((n,...s)=>t(n.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(t=>t.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}};oe.registerParse=i=>{Yo=i};oe.registerRule=i=>{Li=i};oe.registerAtRule=i=>{Ii=i};Ho.exports=oe;oe.default=oe;oe.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Ii.prototype):i.type==="rule"?Object.setPrototypeOf(i,Li.prototype):i.type==="decl"?Object.setPrototypeOf(i,zo.prototype):i.type==="comment"&&Object.setPrototypeOf(i,$o.prototype),i[Qo]=!0,i.nodes&&i.nodes.forEach(e=>{oe.rebuild(e)})}});var hr=y((fm,ea)=>{"use strict";var vf=Se(),Zo,Xo,Ge=class extends vf{constructor(e){super(F({type:"document"},e));this.nodes||(this.nodes=[])}toResult(e={}){return new Zo(new Xo,this,e).stringify()}};Ge.registerLazyResult=i=>{Zo=i};Ge.registerProcessor=i=>{Xo=i};ea.exports=Ge;Ge.default=Ge});var ia=y((hm,ra)=>{"use strict";var ta={};ra.exports=function(e){ta[e]||(ta[e]=!0,typeof console!="undefined"&&console.warn&&console.warn(e))}});var qi=y((pm,na)=>{"use strict";var pr=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let t=r.node.positionBy(r);this.line=t.line,this.column=t.column}for(let t in r)this[t]=r[t]}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}};na.exports=pr;pr.default=pr});var Mi=y((dm,sa)=>{"use strict";var gf=qi(),dr=class{constructor(e,r,t){this.processor=e,this.messages=[],this.root=r,this.opts=t,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 t=new gf(e,r);return this.messages.push(t),t}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};sa.exports=dr;dr.default=dr});var vr=y((vm,aa)=>{"use strict";var oa=Se(),lt=class extends oa{constructor(e){super(e);this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};aa.exports=lt;lt.default=lt;oa.registerAtRule(lt)});var We=y((gm,ca)=>{"use strict";var mf=Se(),ua,la,Be=class extends mf{constructor(e){super(e);this.type="root",this.nodes||(this.nodes=[])}removeChild(e,r){let t=this.index(e);return!r&&t===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[t].raws.before),super.removeChild(e)}normalize(e,r,t){let n=super.normalize(e);if(r){if(t==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of n)s.raws.before=r.raws.before}return n}toResult(e={}){return new ua(new la,this,e).stringify()}};Be.registerLazyResult=i=>{ua=i};Be.registerProcessor=i=>{la=i};ca.exports=Be;Be.default=Be});var Ri=y((mm,fa)=>{"use strict";var ct={split(i,e,r){let t=[],n="",s=!1,o=0,a=!1,u=!1;for(let l of i)u?u=!1:l==="\\"?u=!0:a?l===a&&(a=!1):l==='"'||l==="'"?a=l:l==="("?o+=1:l===")"?o>0&&(o-=1):o===0&&e.includes(l)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=l;return(r||n!=="")&&t.push(n.trim()),t},space(i){let e=[" ",`
`," "];return ct.split(i,e)},comma(i){return ct.split(i,[","],!0)}};fa.exports=ct;ct.default=ct});var gr=y((ym,pa)=>{"use strict";var ha=Se(),yf=Ri(),ft=class extends ha{constructor(e){super(e);this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yf.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,t=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(t)}};pa.exports=ft;ft.default=ft;ha.registerRule(ft)});var ma=y((wm,ga)=>{"use strict";var wf=nt(),_f=pi(),Sf=ut(),bf=vr(),Of=We(),da=gr(),va=class{constructor(e){this.input=e,this.root=new Of,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=_f(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let r=new Sf;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]);let t=e[1].slice(2,-2);if(/^\s*$/.test(t))r.text="",r.raws.left=t,r.raws.right="";else{let n=t.match(/^(\s*)([^]*\S)(\s*)$/);r.text=n[2],r.raws.left=n[1],r.raws.right=n[3]}}emptyRule(e){let r=new da;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}other(e){let r=!1,t=null,n=!1,s=null,o=[],a=e[1].startsWith("--"),u=[],l=e;for(;l;){if(t=l[0],u.push(l),t==="("||t==="[")s||(s=l),o.push(t==="("?")":"]");else if(a&&n&&t==="{")s||(s=l),o.push("}");else if(o.length===0)if(t===";")if(n){this.decl(u,a);return}else break;else if(t==="{"){this.rule(u);return}else if(t==="}"){this.tokenizer.back(u.pop()),r=!0;break}else t===":"&&(n=!0);else t===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(s),r&&n){for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,a)}else this.unknownWord(u)}rule(e){e.pop();let r=new da;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}decl(e,r){let t=new wf;this.init(t,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),t.source.end=this.getPosition(n[3]||n[2]);e[0][0]!=="word";)e.length===1&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start=this.getPosition(e[0][2]),t.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;t.prop+=e.shift()[1]}t.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){t.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),t.raws.between+=s[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let o=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(s=e[u],s[1].toLowerCase()==="!important"){t.important=!0;let l=this.stringFrom(e,u);l=this.spacesFromEnd(e)+l,l!==" !important"&&(t.raws.important=l);break}else if(s[1].toLowerCase()==="important"){let l=e.slice(0),c="";for(let p=u;p>0;p--){let f=l[p][0];if(c.trim().indexOf("!")===0&&f!=="space")break;c=l.pop()[1]+c}c.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=c,e=l)}if(s[0]!=="space"&&s[0]!=="comment")break}let a=e.some(u=>u[0]!=="space"&&u[0]!=="comment");this.raw(t,"value",e),a?t.raws.between+=o:t.value=o+t.value,t.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}atrule(e){let r=new bf;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let t,n,s,o=!1,a=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),t=e[0],t==="("||t==="["?l.push(t==="("?")":"]"):t==="{"&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),l.length===0)if(t===";"){r.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(t==="{"){a=!0;break}else if(t==="}"){if(u.length>0){for(s=u.length-1,n=u[s];n&&n[0]==="space";)n=u[--s];n&&(r.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),o&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let r=this.input.fromOffset(e);return{offset:e,line:r.line,column:r.col}}init(e,r){this.current.push(e),e.source={start:this.getPosition(r),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,r,t){let n,s,o=t.length,a="",u=!0,l,c,p=/^([#.|])?(\w)+/i;for(let f=0;f<o;f+=1){if(n=t[f],s=n[0],s==="comment"&&e.type==="rule"){c=t[f-1],l=t[f+1],c[0]!=="space"&&l[0]!=="space"&&p.test(c[1])&&p.test(l[1])?a+=n[1]:u=!1;continue}s==="comment"||s==="space"&&f===o-1?u=!1:a+=n[1]}if(!u){let f=t.reduce((h,d)=>h+d[1],"");e.raws[r]={value:a,raw:f}}e[r]=a}spacesAndCommentsFromEnd(e){let r,t="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)t=e.pop()[1]+t;return t}spacesAndCommentsFromStart(e){let r,t="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)t+=e.shift()[1];return t}spacesFromEnd(e){let r,t="";for(;e.length&&(r=e[e.length-1][0],r==="space");)t=e.pop()[1]+t;return t}stringFrom(e,r){let t="";for(let n=r;n<e.length;n++)t+=e[n][1];return e.splice(r,e.length-r),t}colon(e){let r=0,t,n,s;for(let[o,a]of e.entries()){if(t=a,n=t[0],n==="("&&(r+=1),n===")"&&(r-=1),r===0&&n===":")if(!s)this.doubleColon(t);else{if(s[0]==="word"&&s[1]==="progid")continue;return o}s=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",e[2])}unknownWord(e){throw this.input.error("Unknown word",e[0][2])}unexpectedClose(e){throw this.input.error("Unexpected }",e[2])}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",e[2])}unnamedAtrule(e,r){throw this.input.error("At-rule without name",r[2])}precheckMissedSemicolon(){}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let t=0,n;for(let s=r-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(t+=1,t===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}};ga.exports=va});var wa=y((_m,ya)=>{var Ef="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",xf=(i,e)=>()=>{let r="",t=e;for(;t--;)r+=i[Math.random()*i.length|0];return r},Af=(i=21)=>{let e="",r=i;for(;r--;)e+=Ef[Math.random()*64|0];return e};ya.exports={nanoid:Af,customAlphabet:xf}});var Ni=y((Sm,ba)=>{"use strict";var{SourceMapConsumer:_a,SourceMapGenerator:Sa}=lr(),{existsSync:kf,readFileSync:Cf}=require("fs"),{dirname:Di,join:Tf}=require("path");function Pf(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var mr=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let t=r.map?r.map.prev:void 0,n=this.loadMap(r.from,t);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Di(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new _a(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,r){return e?e.substr(0,r.length)===r:!1}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!r)return;let t=e.lastIndexOf(r.pop()),n=e.indexOf("*/",t);t>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(t,n)))}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,t=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(n.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||t.test(e))return Pf(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}loadFile(e){if(this.root=Di(e),kf(e))return this.mapFile=e,Cf(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let t=r(e);if(t){let n=this.loadFile(t);if(!n)throw new Error("Unable to load previous source map: "+t.toString());return n}}else{if(r instanceof _a)return Sa.fromSourceMap(r).toString();if(r instanceof Sa)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=Tf(Di(e),t)),this.loadFile(t)}}}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}};ba.exports=mr;mr.default=mr});var wr=y((bm,Aa)=>{"use strict";var{SourceMapConsumer:Lf,SourceMapGenerator:If}=lr(),{fileURLToPath:Oa,pathToFileURL:yr}=require("url"),{resolve:Fi,isAbsolute:Ui}=require("path"),{nanoid:qf}=wa(),ji=di(),Ea=Zt(),Mf=Ni(),Gi=Symbol("fromOffsetCache"),Rf=Boolean(Lf&&If),xa=Boolean(Fi&&Ui),ht=class{constructor(e,r={}){if(e===null||typeof e=="undefined"||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&&(!xa||/^\w+:\/\//.test(r.from)||Ui(r.from)?this.file=r.from:this.file=Fi(r.from)),xa&&Rf){let t=new Mf(this.css,r);if(t.text){this.map=t;let n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+qf(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let r,t;if(this[Gi])t=this[Gi];else{let s=this.css.split(`
`);t=new Array(s.length);let o=0;for(let a=0,u=s.length;a<u;a++)t[a]=o,o+=s[a].length+1;this[Gi]=t}r=t[t.length-1];let n=0;if(e>=r)n=t.length-1;else{let s=t.length-2,o;for(;n<s;)if(o=n+(s-n>>1),e<t[o])s=o-1;else if(e>=t[o+1])n=o+1;else{n=o;break}}return{line:n+1,col:e-t[n]+1}}error(e,r,t,n={}){let s;if(!t){let a=this.fromOffset(r);r=a.line,t=a.col}let o=this.origin(r,t);return o?s=new Ea(e,o.line,o.column,o.source,o.file,n.plugin):s=new Ea(e,r,t,this.css,this.file,n.plugin),s.input={line:r,column:t,source:this.css},this.file&&(yr&&(s.input.url=yr(this.file).toString()),s.input.file=this.file),s}origin(e,r){if(!this.map)return!1;let t=this.map.consumer(),n=t.originalPositionFor({line:e,column:r});if(!n.source)return!1;let s;Ui(n.source)?s=yr(n.source):s=new URL(n.source,this.map.consumer().sourceRoot||yr(this.map.mapFile));let o={url:s.toString(),line:n.line,column:n.column};if(s.protocol==="file:")if(Oa)o.file=Oa(s);else throw new Error("file: protocol is not available in this PostCSS build");let a=t.sourceContentFor(n.source);return a&&(o.source=a),o}mapResolve(e){return/^\w+:\/\//.test(e)?e:Fi(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=F({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Aa.exports=ht;ht.default=ht;ji&&ji.registerInput&&ji.registerInput(ht)});var Bi=y((Om,ka)=>{"use strict";var Df=Se(),Nf=ma(),Ff=wr();function _r(i,e){let r=new Ff(i,e),t=new Nf(r);try{t.parse()}catch(n){throw process.env.NODE_ENV!=="production"&&n.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?n.message+=`
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?n.message+=`
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(n.message+=`
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),n}return t.root}ka.exports=_r;_r.default=_r;Df.registerParse(_r)});var Qi=y((Em,La)=>{"use strict";var{isClean:ue,my:Uf}=Xt(),jf=Bo(),Gf=er(),Bf=Se(),Wf=hr(),Vf=ia(),Ca=Mi(),Qf=Bi(),zf=We(),$f={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Yf={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},Jf={postcssPlugin:!0,prepare:!0,Once:!0},Ve=0;function pt(i){return typeof i=="object"&&typeof i.then=="function"}function Ta(i){let e=!1,r=$f[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[r,r+"-"+e,Ve,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:i.append?[r,Ve,r+"Exit"]:[r,r+"Exit"]}function Pa(i){let e;return i.type==="document"?e=["Document",Ve,"DocumentExit"]:i.type==="root"?e=["Root",Ve,"RootExit"]:e=Ta(i),{node:i,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Wi(i){return i[ue]=!1,i.nodes&&i.nodes.forEach(e=>Wi(e)),i}var Vi={},de=class{constructor(e,r,t){this.stringified=!1,this.processed=!1;let n;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))n=Wi(r);else if(r instanceof de||r instanceof Ca)n=Wi(r.root),r.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=r.map);else{let s=Qf;t.syntax&&(s=t.syntax.parse),t.parser&&(s=t.parser),s.parse&&(s=s.parse);try{n=s(r,t)}catch(o){this.processed=!0,this.error=o}n&&!n[Uf]&&Bf.rebuild(n)}this.result=new Ca(e,n,t),this.helpers=H(F({},Vi),{result:this.result,postcss:Vi}),this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?F(F({},s),s.prepare(this.result)):s)}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 process.env.NODE_ENV!=="production"&&("from"in this.opts||Vf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),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(pt(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];)e[ue]=!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=Gf;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let n=new jf(r,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[ue]=!0;let r=Ta(e);for(let t of r)if(t===Ve)e.nodes&&e.each(n=>{n[ue]||this.walkSync(n)});else{let n=this.listeners[t];if(n&&this.visitSync(n,e.toProxy()))return}}visitSync(e,r){for(let[t,n]of e){this.result.lastPlugin=t;let s;try{s=n(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(pt(s))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(t=>e.Once(t,this.helpers));return pt(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 t=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=t.postcssPlugin,e.setMessage();else if(t.postcssVersion&&process.env.NODE_ENV!=="production"){let n=t.postcssPlugin,s=t.postcssVersion,o=this.result.processor.version,a=s.split("."),u=o.split(".");(a[0]!==u[0]||parseInt(a[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+s+". Perhaps this is the source of the error below.")}}catch(n){console&&console.error&&console.error(n)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],t=this.runOnRoot(r);if(pt(t))try{await t}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];){e[ue]=!0;let r=[Pa(e)];for(;r.length>0;){let t=this.visitTick(r);if(pt(t))try{await t}catch(n){let s=r[r.length-1].node;throw this.handleError(n,s)}}}if(this.listeners.OnceExit)for(let[r,t]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let n=e.nodes.map(s=>t(s,this.helpers));await Promise.all(n)}else await t(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(r,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([r,n])};for(let r of this.plugins)if(typeof r=="object")for(let t in r){if(!Yf[t]&&/^[A-Z]/.test(t))throw new Error(`Unknown event ${t} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Jf[t])if(typeof r[t]=="object")for(let n in r[t])n==="*"?e(r,t,r[t][n]):e(r,t+"-"+n.toLowerCase(),r[t][n]);else typeof r[t]=="function"&&e(r,t,r[t])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let r=e[e.length-1],{node:t,visitors:n}=r;if(t.type!=="root"&&t.type!=="document"&&!t.parent){e.pop();return}if(n.length>0&&r.visitorIndex<n.length){let[o,a]=n[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===n.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(t.toProxy(),this.helpers)}catch(u){throw this.handleError(u,t)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=t.nodes[t.indexes[o]];)if(t.indexes[o]+=1,!a[ue]){a[ue]=!0,e.push(Pa(a));return}r.iterator=0,delete t.indexes[o]}let s=r.events;for(;r.eventIndex<s.length;){let o=s[r.eventIndex];if(r.eventIndex+=1,o===Ve){t.nodes&&t.nodes.length&&(t[ue]=!0,r.iterator=t.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}};de.registerPostcss=i=>{Vi=i};La.exports=de;de.default=de;zf.registerLazyResult(de);Wf.registerLazyResult(de)});var qa=y((xm,Ia)=>{"use strict";var Kf=Qi(),Hf=hr(),Zf=We(),Qe=class{constructor(e=[]){this.version="8.3.11",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=="undefined"&&typeof r.stringifier=="undefined"&&typeof r.syntax=="undefined"&&!r.hideNothingWarning&&process.env.NODE_ENV!=="production"&&typeof console!="undefined"&&console.warn&&console.warn("You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js."),new Kf(this,e,r)}normalize(e){let r=[];for(let t of e)if(t.postcss===!0?t=t():t.postcss&&(t=t.postcss),typeof t=="object"&&Array.isArray(t.plugins))r=r.concat(t.plugins);else if(typeof t=="object"&&t.postcssPlugin)r.push(t);else if(typeof t=="function")r.push(t);else if(typeof t=="object"&&(t.parse||t.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(t+" is not a PostCSS plugin");return r}};Ia.exports=Qe;Qe.default=Qe;Zf.registerProcessor(Qe);Hf.registerProcessor(Qe)});var Ra=y((Am,Ma)=>{"use strict";var Xf=nt(),eh=Ni(),th=ut(),rh=vr(),ih=wr(),nh=We(),sh=gr();function dt(i,e){if(Array.isArray(i))return i.map(o=>dt(o));let n=i,{inputs:r}=n,t=Nr(n,["inputs"]);if(r){e=[];for(let o of r){let a=H(F({},o),{__proto__:ih.prototype});a.map&&(a.map=H(F({},a.map),{__proto__:eh.prototype})),e.push(a)}}if(t.nodes&&(t.nodes=i.nodes.map(o=>dt(o,e))),t.source){let s=t.source,{inputId:o}=s,a=Nr(s,["inputId"]);t.source=a,o!=null&&(t.source.input=e[o])}if(t.type==="root")return new nh(t);if(t.type==="decl")return new Xf(t);if(t.type==="rule")return new sh(t);if(t.type==="comment")return new th(t);if(t.type==="atrule")return new rh(t);throw new Error("Unknown node type: "+i.type)}Ma.exports=dt;dt.default=dt});var Va=y((km,Wa)=>{"use strict";var oh=Zt(),Da=nt(),ah=Qi(),uh=Se(),Na=qa(),lh=er(),ch=Ra(),Fa=hr(),fh=qi(),Ua=ut(),ja=vr(),hh=Mi(),ph=wr(),dh=Bi(),vh=Ri(),Ga=gr(),Ba=We(),gh=it();function P(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Na(i)}P.plugin=function(e,r){console&&console.warn&&(console.warn(e+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
https://www.w3ctech.com/topic/2226`));function t(...s){let o=r(...s);return o.postcssPlugin=e,o.postcssVersion=new Na().version,o}let n;return Object.defineProperty(t,"postcss",{get(){return n||(n=t()),n}}),t.process=function(s,o,a){return P([t(a)]).process(s,o)},t};P.stringify=lh;P.parse=dh;P.fromJSON=ch;P.list=vh;P.comment=i=>new Ua(i);P.atRule=i=>new ja(i);P.decl=i=>new Da(i);P.rule=i=>new Ga(i);P.root=i=>new Ba(i);P.document=i=>new Fa(i);P.CssSyntaxError=oh;P.Declaration=Da;P.Container=uh;P.Document=Fa;P.Comment=Ua;P.Warning=fh;P.AtRule=ja;P.Result=hh;P.Input=ph;P.Rule=Ga;P.Root=Ba;P.Node=gh;ah.registerPostcss(P);Wa.exports=P;P.default=P});var zi=y((Sr,Qa)=>{"use strict";Sr.__esModule=!0;Sr.default=wh;function mh(i){for(var e=i.toLowerCase(),r="",t=!1,n=0;n<6&&e[n]!==void 0;n++){var s=e.charCodeAt(n),o=s>=97&&s<=102||s>=48&&s<=57;if(t=s===32,!o)break;r+=e[n]}if(r.length!==0){var a=parseInt(r,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",r.length+(t?1:0)]:[String.fromCodePoint(a),r.length+(t?1:0)]}}var yh=/\\/;function wh(i){var e=yh.test(i);if(!e)return i;for(var r="",t=0;t<i.length;t++){if(i[t]==="\\"){var n=mh(i.slice(t+1,t+7));if(n!==void 0){r+=n[0],t+=n[1];continue}if(i[t+1]==="\\"){r+="\\",t++;continue}i.length===t+1&&(r+=i[t]);continue}r+=i[t]}return r}Qa.exports=Sr.default});var $a=y((br,za)=>{"use strict";br.__esModule=!0;br.default=_h;function _h(i){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t<e;t++)r[t-1]=arguments[t];for(;r.length>0;){var n=r.shift();if(!i[n])return;i=i[n]}return i}za.exports=br.default});var Ja=y((Or,Ya)=>{"use strict";Or.__esModule=!0;Or.default=Sh;function Sh(i){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t<e;t++)r[t-1]=arguments[t];for(;r.length>0;){var n=r.shift();i[n]||(i[n]={}),i=i[n]}}Ya.exports=Or.default});var Ha=y((Er,Ka)=>{"use strict";Er.__esModule=!0;Er.default=bh;function bh(i){for(var e="",r=i.indexOf("/*"),t=0;r>=0;){e=e+i.slice(t,r);var n=i.indexOf("*/",r+2);if(n<0)return e;t=n+2,r=i.indexOf("/*",t)}return e=e+i.slice(t),e}Ka.exports=Er.default});var vt=y(le=>{"use strict";le.__esModule=!0;le.stripComments=le.ensureObject=le.getProp=le.unesc=void 0;var Oh=xr(zi());le.unesc=Oh.default;var Eh=xr($a());le.getProp=Eh.default;var xh=xr(Ja());le.ensureObject=xh.default;var Ah=xr(Ha());le.stripComments=Ah.default;function xr(i){return i&&i.__esModule?i:{default:i}}});var ve=y((gt,eu)=>{"use strict";gt.__esModule=!0;gt.default=void 0;var Za=vt();function Xa(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function kh(i,e,r){return e&&Xa(i.prototype,e),r&&Xa(i,r),i}var Ch=function i(e,r){if(typeof e!="object"||e===null)return e;var t=new e.constructor;for(var n in e)if(!!e.hasOwnProperty(n)){var s=e[n],o=typeof s;n==="parent"&&o==="object"?r&&(t[n]=r):s instanceof Array?t[n]=s.map(function(a){return i(a,t)}):t[n]=i(s,t)}return t},Th=function(){function i(r){r===void 0&&(r={}),Object.assign(this,r),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var e=i.prototype;return e.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.replaceWith=function(){if(this.parent){for(var t in arguments)this.parent.insertBefore(this,arguments[t]);this.remove()}return this},e.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.clone=function(t){t===void 0&&(t={});var n=Ch(this);for(var s in t)n[s]=t[s];return n},e.appendToPropertyAndEscape=function(t,n,s){this.raws||(this.raws={});var o=this[t],a=this.raws[t];this[t]=o+n,a||s!==n?this.raws[t]=(a||o)+s:delete this.raws[t]},e.setPropertyAndEscape=function(t,n,s){this.raws||(this.raws={}),this[t]=n,this.raws[t]=s},e.setPropertyWithoutEscape=function(t,n){this[t]=n,this.raws&&delete this.raws[t]},e.isAtPosition=function(t,n){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>t||this.source.end.line<t||this.source.start.line===t&&this.source.start.column>n||this.source.end.line===t&&this.source.end.column<n)},e.stringifyProperty=function(t){return this.raws&&this.raws[t]||this[t]},e.valueToString=function(){return String(this.stringifyProperty("value"))},e.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},kh(i,[{key:"rawSpaceBefore",get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.before;return t===void 0&&(t=this.spaces&&this.spaces.before),t||""},set:function(t){(0,Za.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=t}},{key:"rawSpaceAfter",get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.after;return t===void 0&&(t=this.spaces.after),t||""},set:function(t){(0,Za.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=t}}]),i}();gt.default=Th;eu.exports=gt.default});var z=y(I=>{"use strict";I.__esModule=!0;I.UNIVERSAL=I.ATTRIBUTE=I.CLASS=I.COMBINATOR=I.COMMENT=I.ID=I.NESTING=I.PSEUDO=I.ROOT=I.SELECTOR=I.STRING=I.TAG=void 0;var Ph="tag";I.TAG=Ph;var Lh="string";I.STRING=Lh;var Ih="selector";I.SELECTOR=Ih;var qh="root";I.ROOT=qh;var Mh="pseudo";I.PSEUDO=Mh;var Rh="nesting";I.NESTING=Rh;var Dh="id";I.ID=Dh;var Nh="comment";I.COMMENT=Nh;var Fh="combinator";I.COMBINATOR=Fh;var Uh="class";I.CLASS=Uh;var jh="attribute";I.ATTRIBUTE=jh;var Gh="universal";I.UNIVERSAL=Gh});var Ar=y((mt,nu)=>{"use strict";mt.__esModule=!0;mt.default=void 0;var Bh=Vh(ve()),ge=Wh(z());function tu(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return tu=function(){return i},i}function Wh(i){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var e=tu();if(e&&e.has(i))return e.get(i);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=t?Object.getOwnPropertyDescriptor(i,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=i[n]}return r.default=i,e&&e.set(i,r),r}function Vh(i){return i&&i.__esModule?i:{default:i}}function Qh(i,e){var r;if(typeof Symbol=="undefined"||i[Symbol.iterator]==null){if(Array.isArray(i)||(r=zh(i))||e&&i&&typeof i.length=="number"){r&&(i=r);var t=0;return function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=i[Symbol.iterator](),r.next.bind(r)}function zh(i,e){if(!!i){if(typeof i=="string")return ru(i,e);var r=Object.prototype.toString.call(i).slice(8,-1);if(r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set")return Array.from(i);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ru(i,e)}}function ru(i,e){(e==null||e>i.length)&&(e=i.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=i[r];return t}function iu(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function $h(i,e,r){return e&&iu(i.prototype,e),r&&iu(i,r),i}function Yh(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,$i(i,e)}function $i(i,e){return $i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},$i(i,e)}var Jh=function(i){Yh(e,i);function e(t){var n;return n=i.call(this,t)||this,n.nodes||(n.nodes=[]),n}var r=e.prototype;return r.append=function(n){return n.parent=this,this.nodes.push(n),this},r.prepend=function(n){return n.parent=this,this.nodes.unshift(n),this},r.at=function(n){return this.nodes[n]},r.index=function(n){return typeof n=="number"?n:this.nodes.indexOf(n)},r.removeChild=function(n){n=this.index(n),this.at(n).parent=void 0,this.nodes.splice(n,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=n&&(this.indexes[o]=s-1);return this},r.removeAll=function(){for(var n=Qh(this.nodes),s;!(s=n()).done;){var o=s.value;o.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(n,s){s.parent=this;var o=this.index(n);this.nodes.splice(o+1,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],o<=a&&(this.indexes[u]=a+1);return this},r.insertBefore=function(n,s){s.parent=this;var o=this.index(n);this.nodes.splice(o,0,s),s.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=o&&(this.indexes[u]=a+1);return this},r._findChildAtPosition=function(n,s){var o=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(n,s);if(u)return o=u,!1}else if(a.isAtPosition(n,s))return o=a,!1}),o},r.atPosition=function(n,s){if(this.isAtPosition(n,s))return this._findChildAtPosition(n,s)||this},r._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},r.each=function(n){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var o,a;this.indexes[s]<this.length&&(o=this.indexes[s],a=n(this.at(o),o),a!==!1);)this.indexes[s]+=1;if(delete this.indexes[s],a===!1)return!1}},r.walk=function(n){return this.each(function(s,o){var a=n(s,o);if(a!==!1&&s.length&&(a=s.walk(n)),a===!1)return!1})},r.walkAttributes=function(n){var s=this;return this.walk(function(o){if(o.type===ge.ATTRIBUTE)return n.call(s,o)})},r.walkClasses=function(n){var s=this;return this.walk(function(o){if(o.type===ge.CLASS)return n.call(s,o)})},r.walkCombinators=function(n){var s=this;return this.walk(function(o){if(o.type===ge.COMBINATOR)return n.call(s,o)})},r.walkComments=function(n){var s=this;return this.walk(function(o){if(o.type===ge.COMMENT)return n.call(s,o)})},r.walkIds=function(n){var s=this;return this.walk(function(o){if(o.type===ge.ID)return n.call(s,o)})},r.walkNesting=function(n){var s=this;return this.walk(function(o){if(o.type===ge.NESTING)return n.call(s,o)})},r.walkPseudos=function(n){var s=this;return this.walk(function(o){if(o.type===ge.PSEUDO)return n.call(s,o)})},r.walkTags=function(n){var s=this;return this.walk(function(o){if(o.type===ge.TAG)return n.call(s,o)})},r.walkUniversals=function(n){var s=this;return this.walk(function(o){if(o.type===ge.UNIVERSAL)return n.call(s,o)})},r.split=function(n){var s=this,o=[];return this.reduce(function(a,u,l){var c=n.call(s,u);return o.push(u),c?(a.push(o),o=[]):l===s.length-1&&a.push(o),a},[])},r.map=function(n){return this.nodes.map(n)},r.reduce=function(n,s){return this.nodes.reduce(n,s)},r.every=function(n){return this.nodes.every(n)},r.some=function(n){return this.nodes.some(n)},r.filter=function(n){return this.nodes.filter(n)},r.sort=function(n){return this.nodes.sort(n)},r.toString=function(){return this.map(String).join("")},$h(e,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),e}(Bh.default);mt.default=Jh;nu.exports=mt.default});var Ji=y((yt,ou)=>{"use strict";yt.__esModule=!0;yt.default=void 0;var Kh=Zh(Ar()),Hh=z();function Zh(i){return i&&i.__esModule?i:{default:i}}function su(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Xh(i,e,r){return e&&su(i.prototype,e),r&&su(i,r),i}function ep(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Yi(i,e)}function Yi(i,e){return Yi=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},Yi(i,e)}var tp=function(i){ep(e,i);function e(t){var n;return n=i.call(this,t)||this,n.type=Hh.ROOT,n}var r=e.prototype;return r.toString=function(){var n=this.reduce(function(s,o){return s.push(String(o)),s},[]).join(",");return this.trailingComma?n+",":n},r.error=function(n,s){return this._error?this._error(n,s):new Error(n)},Xh(e,[{key:"errorGenerator",set:function(n){this._error=n}}]),e}(Kh.default);yt.default=tp;ou.exports=yt.default});var Hi=y((wt,au)=>{"use strict";wt.__esModule=!0;wt.default=void 0;var rp=np(Ar()),ip=z();function np(i){return i&&i.__esModule?i:{default:i}}function sp(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Ki(i,e)}function Ki(i,e){return Ki=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},Ki(i,e)}var op=function(i){sp(e,i);function e(r){var t;return t=i.call(this,r)||this,t.type=ip.SELECTOR,t}return e}(rp.default);wt.default=op;au.exports=wt.default});var kr=y((Pm,uu)=>{"use strict";var ap={},up=ap.hasOwnProperty,lp=function(e,r){if(!e)return r;var t={};for(var n in r)t[n]=up.call(e,n)?e[n]:r[n];return t},cp=/[ -,\.\/:-@\[-\^`\{-~]/,fp=/[ -,\.\/:-@\[\]\^`\{-~]/,hp=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Zi=function i(e,r){r=lp(r,i.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var t=r.quotes=="double"?'"':"'",n=r.isIdentifier,s=e.charAt(0),o="",a=0,u=e.length;a<u;){var l=e.charAt(a++),c=l.charCodeAt(),p=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&a<u){var f=e.charCodeAt(a++);(f&64512)==56320?c=((c&1023)<<10)+(f&1023)+65536:a--}p="\\"+c.toString(16).toUpperCase()+" "}else r.escapeEverything?cp.test(l)?p="\\"+l:p="\\"+c.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?p="\\"+c.toString(16).toUpperCase()+" ":l=="\\"||!n&&(l=='"'&&t==l||l=="'"&&t==l)||n&&fp.test(l)?p="\\"+l:p=l;o+=p}return n&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(s)&&(o="\\3"+s+" "+o.slice(1))),o=o.replace(hp,function(h,d,_){return d&&d.length%2?h:(d||"")+_}),!n&&r.wrap?t+o+t:o};Zi.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Zi.version="3.0.0";uu.exports=Zi});var en=y((_t,fu)=>{"use strict";_t.__esModule=!0;_t.default=void 0;var pp=lu(kr()),dp=vt(),vp=lu(ve()),gp=z();function lu(i){return i&&i.__esModule?i:{default:i}}function cu(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function mp(i,e,r){return e&&cu(i.prototype,e),r&&cu(i,r),i}function yp(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Xi(i,e)}function Xi(i,e){return Xi=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},Xi(i,e)}var wp=function(i){yp(e,i);function e(t){var n;return n=i.call(this,t)||this,n.type=gp.CLASS,n._constructed=!0,n}var r=e.prototype;return r.valueToString=function(){return"."+i.prototype.valueToString.call(this)},mp(e,[{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var s=(0,pp.default)(n,{isIdentifier:!0});s!==n?((0,dp.ensureObject)(this,"raws"),this.raws.value=s):this.raws&&delete this.raws.value}this._value=n}}]),e}(vp.default);_t.default=wp;fu.exports=_t.default});var rn=y((St,hu)=>{"use strict";St.__esModule=!0;St.default=void 0;var _p=bp(ve()),Sp=z();function bp(i){return i&&i.__esModule?i:{default:i}}function Op(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,tn(i,e)}function tn(i,e){return tn=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},tn(i,e)}var Ep=function(i){Op(e,i);function e(r){var t;return t=i.call(this,r)||this,t.type=Sp.COMMENT,t}return e}(_p.default);St.default=Ep;hu.exports=St.default});var sn=y((bt,pu)=>{"use strict";bt.__esModule=!0;bt.default=void 0;var xp=kp(ve()),Ap=z();function kp(i){return i&&i.__esModule?i:{default:i}}function Cp(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,nn(i,e)}function nn(i,e){return nn=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},nn(i,e)}var Tp=function(i){Cp(e,i);function e(t){var n;return n=i.call(this,t)||this,n.type=Ap.ID,n}var r=e.prototype;return r.valueToString=function(){return"#"+i.prototype.valueToString.call(this)},e}(xp.default);bt.default=Tp;pu.exports=bt.default});var Cr=y((Ot,gu)=>{"use strict";Ot.__esModule=!0;Ot.default=void 0;var Pp=du(kr()),Lp=vt(),Ip=du(ve());function du(i){return i&&i.__esModule?i:{default:i}}function vu(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function qp(i,e,r){return e&&vu(i.prototype,e),r&&vu(i,r),i}function Mp(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,on(i,e)}function on(i,e){return on=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},on(i,e)}var Rp=function(i){Mp(e,i);function e(){return i.apply(this,arguments)||this}var r=e.prototype;return r.qualifiedName=function(n){return this.namespace?this.namespaceString+"|"+n:n},r.valueToString=function(){return this.qualifiedName(i.prototype.valueToString.call(this))},qp(e,[{key:"namespace",get:function(){return this._namespace},set:function(n){if(n===!0||n==="*"||n==="&"){this._namespace=n,this.raws&&delete this.raws.namespace;return}var s=(0,Pp.default)(n,{isIdentifier:!0});this._namespace=n,s!==n?((0,Lp.ensureObject)(this,"raws"),this.raws.namespace=s):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(n){this.namespace=n}},{key:"namespaceString",get:function(){if(this.namespace){var n=this.stringifyProperty("namespace");return n===!0?"":n}else return""}}]),e}(Ip.default);Ot.default=Rp;gu.exports=Ot.default});var un=y((Et,mu)=>{"use strict";Et.__esModule=!0;Et.default=void 0;var Dp=Fp(Cr()),Np=z();function Fp(i){return i&&i.__esModule?i:{default:i}}function Up(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,an(i,e)}function an(i,e){return an=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},an(i,e)}var jp=function(i){Up(e,i);function e(r){var t;return t=i.call(this,r)||this,t.type=Np.TAG,t}return e}(Dp.default);Et.default=jp;mu.exports=Et.default});var cn=y((xt,yu)=>{"use strict";xt.__esModule=!0;xt.default=void 0;var Gp=Wp(ve()),Bp=z();function Wp(i){return i&&i.__esModule?i:{default:i}}function Vp(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,ln(i,e)}function ln(i,e){return ln=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},ln(i,e)}var Qp=function(i){Vp(e,i);function e(r){var t;return t=i.call(this,r)||this,t.type=Bp.STRING,t}return e}(Gp.default);xt.default=Qp;yu.exports=xt.default});var hn=y((At,wu)=>{"use strict";At.__esModule=!0;At.default=void 0;var zp=Yp(Ar()),$p=z();function Yp(i){return i&&i.__esModule?i:{default:i}}function Jp(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,fn(i,e)}function fn(i,e){return fn=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},fn(i,e)}var Kp=function(i){Jp(e,i);function e(t){var n;return n=i.call(this,t)||this,n.type=$p.PSEUDO,n}var r=e.prototype;return r.toString=function(){var n=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),n,this.rawSpaceAfter].join("")},e}(zp.default);At.default=Kp;wu.exports=At.default});var Su=y((Lm,_u)=>{_u.exports=require("util").deprecate});var yn=y(Tt=>{"use strict";Tt.__esModule=!0;Tt.unescapeValue=gn;Tt.default=void 0;var kt=dn(kr()),Hp=dn(zi()),Zp=dn(Cr()),Xp=z(),pn;function dn(i){return i&&i.__esModule?i:{default:i}}function bu(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function ed(i,e,r){return e&&bu(i.prototype,e),r&&bu(i,r),i}function td(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,vn(i,e)}function vn(i,e){return vn=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},vn(i,e)}var Ct=Su(),rd=/^('|")([^]*)\1$/,id=Ct(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),nd=Ct(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),sd=Ct(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function gn(i){var e=!1,r=null,t=i,n=t.match(rd);return n&&(r=n[1],t=n[2]),t=(0,Hp.default)(t),t!==i&&(e=!0),{deprecatedUsage:e,unescaped:t,quoteMark:r}}function od(i){if(i.quoteMark!==void 0||i.value===void 0)return i;sd();var e=gn(i.value),r=e.quoteMark,t=e.unescaped;return i.raws||(i.raws={}),i.raws.value===void 0&&(i.raws.value=i.value),i.value=t,i.quoteMark=r,i}var Tr=function(i){td(e,i);function e(t){var n;return t===void 0&&(t={}),n=i.call(this,od(t))||this,n.type=Xp.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,"unquoted",{get:Ct(function(){return n.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Ct(function(){return n.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),n._constructed=!0,n}var r=e.prototype;return r.getQuotedValue=function(n){n===void 0&&(n={});var s=this._determineQuoteMark(n),o=mn[s],a=(0,kt.default)(this._value,o);return a},r._determineQuoteMark=function(n){return n.smart?this.smartQuoteMark(n):this.preferredQuoteMark(n)},r.setValue=function(n,s){s===void 0&&(s={}),this._value=n,this._quoteMark=this._determineQuoteMark(s),this._syncRawValue()},r.smartQuoteMark=function(n){var s=this.value,o=s.replace(/[^']/g,"").length,a=s.replace(/[^"]/g,"").length;if(o+a===0){var u=(0,kt.default)(s,{isIdentifier:!0});if(u===s)return e.NO_QUOTE;var l=this.preferredQuoteMark(n);if(l===e.NO_QUOTE){var c=this.quoteMark||n.quoteMark||e.DOUBLE_QUOTE,p=mn[c],f=(0,kt.default)(s,p);if(f.length<u.length)return c}return l}else return a===o?this.preferredQuoteMark(n):a<o?e.DOUBLE_QUOTE:e.SINGLE_QUOTE},r.preferredQuoteMark=function(n){var s=n.preferCurrentQuoteMark?this.quoteMark:n.quoteMark;return s===void 0&&(s=n.preferCurrentQuoteMark?n.quoteMark:this.quoteMark),s===void 0&&(s=e.DOUBLE_QUOTE),s},r._syncRawValue=function(){var n=(0,kt.default)(this._value,mn[this.quoteMark]);n===this._value?this.raws&&delete this.raws.value:this.raws.value=n},r._handleEscapes=function(n,s){if(this._constructed){var o=(0,kt.default)(s,{isIdentifier:!0});o!==s?this.raws[n]=o:delete this.raws[n]}},r._spacesFor=function(n){var s={before:"",after:""},o=this.spaces[n]||{},a=this.raws.spaces&&this.raws.spaces[n]||{};return Object.assign(s,o,a)},r._stringFor=function(n,s,o){s===void 0&&(s=n),o===void 0&&(o=Ou);var a=this._spacesFor(s);return o(this.stringifyProperty(n),a)},r.offsetOf=function(n){var s=1,o=this._spacesFor("attribute");if(s+=o.before.length,n==="namespace"||n==="ns")return this.namespace?s:-1;if(n==="attributeNS"||(s+=this.namespaceString.length,this.namespace&&(s+=1),n==="attribute"))return s;s+=this.stringifyProperty("attribute").length,s+=o.after.length;var a=this._spacesFor("operator");s+=a.before.length;var u=this.stringifyProperty("operator");if(n==="operator")return u?s:-1;s+=u.length,s+=a.after.length;var l=this._spacesFor("value");s+=l.before.length;var c=this.stringifyProperty("value");if(n==="value")return c?s:-1;s+=c.length,s+=l.after.length;var p=this._spacesFor("insensitive");return s+=p.before.length,n==="insensitive"&&this.insensitive?s:-1},r.toString=function(){var n=this,s=[this.rawSpaceBefore,"["];return s.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(s.push(this._stringFor("operator")),s.push(this._stringFor("value")),s.push(this._stringFor("insensitiveFlag","insensitive",function(o,a){return o.length>0&&!n.quoted&&a.before.length===0&&!(n.spaces.value&&n.spaces.value.after)&&(a.before=" "),Ou(o,a)}))),s.push("]"),s.push(this.rawSpaceAfter),s.join("")},ed(e,[{key:"quoted",get:function(){var n=this.quoteMark;return n==="'"||n==='"'},set:function(n){nd()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(n){if(!this._constructed){this._quoteMark=n;return}this._quoteMark!==n&&(this._quoteMark=n,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(n){if(this._constructed){var s=gn(n),o=s.deprecatedUsage,a=s.unescaped,u=s.quoteMark;if(o&&id(),a===this._value&&u===this._quoteMark)return;this._value=a,this._quoteMark=u,this._syncRawValue()}else this._value=n}},{key:"attribute",get:function(){return this._attribute},set:function(n){this._handleEscapes("attribute",n),this._attribute=n}}]),e}(Zp.default);Tt.default=Tr;Tr.NO_QUOTE=null;Tr.SINGLE_QUOTE="'";Tr.DOUBLE_QUOTE='"';var mn=(pn={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},pn[null]={isIdentifier:!0},pn);function Ou(i,e){return""+e.before+i+e.after}});var _n=y((Pt,Eu)=>{"use strict";Pt.__esModule=!0;Pt.default=void 0;var ad=ld(Cr()),ud=z();function ld(i){return i&&i.__esModule?i:{default:i}}function cd(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,wn(i,e)}function wn(i,e){return wn=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},wn(i,e)}var fd=function(i){cd(e,i);function e(r){var t;return t=i.call(this,r)||this,t.type=ud.UNIVERSAL,t.value="*",t}return e}(ad.default);Pt.default=fd;Eu.exports=Pt.default});var bn=y((Lt,xu)=>{"use strict";Lt.__esModule=!0;Lt.default=void 0;var hd=dd(ve()),pd=z();function dd(i){return i&&i.__esModule?i:{default:i}}function vd(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Sn(i,e)}function Sn(i,e){return Sn=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},Sn(i,e)}var gd=function(i){vd(e,i);function e(r){var t;return t=i.call(this,r)||this,t.type=pd.COMBINATOR,t}return e}(hd.default);Lt.default=gd;xu.exports=Lt.default});var En=y((It,Au)=>{"use strict";It.__esModule=!0;It.default=void 0;var md=wd(ve()),yd=z();function wd(i){return i&&i.__esModule?i:{default:i}}function _d(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,On(i,e)}function On(i,e){return On=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},On(i,e)}var Sd=function(i){_d(e,i);function e(r){var t;return t=i.call(this,r)||this,t.type=yd.NESTING,t.value="&",t}return e}(md.default);It.default=Sd;Au.exports=It.default});var Cu=y((Pr,ku)=>{"use strict";Pr.__esModule=!0;Pr.default=bd;function bd(i){return i.sort(function(e,r){return e-r})}ku.exports=Pr.default});var xn=y(b=>{"use strict";b.__esModule=!0;b.combinator=b.word=b.comment=b.str=b.tab=b.newline=b.feed=b.cr=b.backslash=b.bang=b.slash=b.doubleQuote=b.singleQuote=b.space=b.greaterThan=b.pipe=b.equals=b.plus=b.caret=b.tilde=b.dollar=b.closeSquare=b.openSquare=b.closeParenthesis=b.openParenthesis=b.semicolon=b.colon=b.comma=b.at=b.asterisk=b.ampersand=void 0;var Od=38;b.ampersand=Od;var Ed=42;b.asterisk=Ed;var xd=64;b.at=xd;var Ad=44;b.comma=Ad;var kd=58;b.colon=kd;var Cd=59;b.semicolon=Cd;var Td=40;b.openParenthesis=Td;var Pd=41;b.closeParenthesis=Pd;var Ld=91;b.openSquare=Ld;var Id=93;b.closeSquare=Id;var qd=36;b.dollar=qd;var Md=126;b.tilde=Md;var Rd=94;b.caret=Rd;var Dd=43;b.plus=Dd;var Nd=61;b.equals=Nd;var Fd=124;b.pipe=Fd;var Ud=62;b.greaterThan=Ud;var jd=32;b.space=jd;var Tu=39;b.singleQuote=Tu;var Gd=34;b.doubleQuote=Gd;var Bd=47;b.slash=Bd;var Wd=33;b.bang=Wd;var Vd=92;b.backslash=Vd;var Qd=13;b.cr=Qd;var zd=12;b.feed=zd;var $d=10;b.newline=$d;var Yd=9;b.tab=Yd;var Jd=Tu;b.str=Jd;var Kd=-1;b.comment=Kd;var Hd=-2;b.word=Hd;var Zd=-3;b.combinator=Zd});var Iu=y(qt=>{"use strict";qt.__esModule=!0;qt.default=sv;qt.FIELDS=void 0;var w=Xd(xn()),ze,L;function Pu(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return Pu=function(){return i},i}function Xd(i){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var e=Pu();if(e&&e.has(i))return e.get(i);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=t?Object.getOwnPropertyDescriptor(i,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=i[n]}return r.default=i,e&&e.set(i,r),r}var ev=(ze={},ze[w.tab]=!0,ze[w.newline]=!0,ze[w.cr]=!0,ze[w.feed]=!0,ze),tv=(L={},L[w.space]=!0,L[w.tab]=!0,L[w.newline]=!0,L[w.cr]=!0,L[w.feed]=!0,L[w.ampersand]=!0,L[w.asterisk]=!0,L[w.bang]=!0,L[w.comma]=!0,L[w.colon]=!0,L[w.semicolon]=!0,L[w.openParenthesis]=!0,L[w.closeParenthesis]=!0,L[w.openSquare]=!0,L[w.closeSquare]=!0,L[w.singleQuote]=!0,L[w.doubleQuote]=!0,L[w.plus]=!0,L[w.pipe]=!0,L[w.tilde]=!0,L[w.greaterThan]=!0,L[w.equals]=!0,L[w.dollar]=!0,L[w.caret]=!0,L[w.slash]=!0,L),An={},Lu="0123456789abcdefABCDEF";for(Lr=0;Lr<Lu.length;Lr++)An[Lu.charCodeAt(Lr)]=!0;var Lr;function rv(i,e){var r=e,t;do{if(t=i.charCodeAt(r),tv[t])return r-1;t===w.backslash?r=iv(i,r)+1:r++}while(r<i.length);return r-1}function iv(i,e){var r=e,t=i.charCodeAt(r+1);if(!ev[t])if(An[t]){var n=0;do r++,n++,t=i.charCodeAt(r+1);while(An[t]&&n<6);n<6&&t===w.space&&r++}else r++;return r}var nv={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};qt.FIELDS=nv;function sv(i){var e=[],r=i.css.valueOf(),t=r,n=t.length,s=-1,o=1,a=0,u=0,l,c,p,f,h,d,_,v,g,E,A,x,k;function G($,U){if(i.safe)r+=U,g=r.length-1;else throw i.error("Unclosed "+$,o,a-s,a)}for(;a<n;){switch(l=r.charCodeAt(a),l===w.newline&&(s=a,o+=1),l){case w.space:case w.tab:case w.newline:case w.cr:case w.feed:g=a;do g+=1,l=r.charCodeAt(g),l===w.newline&&(s=g,o+=1);while(l===w.space||l===w.newline||l===w.tab||l===w.cr||l===w.feed);k=w.space,f=o,p=g-s-1,u=g;break;case w.plus:case w.greaterThan:case w.tilde:case w.pipe:g=a;do g+=1,l=r.charCodeAt(g);while(l===w.plus||l===w.greaterThan||l===w.tilde||l===w.pipe);k=w.combinator,f=o,p=a-s,u=g;break;case w.asterisk:case w.ampersand:case w.bang:case w.comma:case w.equals:case w.dollar:case w.caret:case w.openSquare:case w.closeSquare:case w.colon:case w.semicolon:case w.openParenthesis:case w.closeParenthesis:g=a,k=l,f=o,p=a-s,u=g+1;break;case w.singleQuote:case w.doubleQuote:x=l===w.singleQuote?"'":'"',g=a;do for(h=!1,g=r.indexOf(x,g+1),g===-1&&G("quote",x),d=g;r.charCodeAt(d-1)===w.backslash;)d-=1,h=!h;while(h);k=w.str,f=o,p=a-s,u=g+1;break;default:l===w.slash&&r.charCodeAt(a+1)===w.asterisk?(g=r.indexOf("*/",a+2)+1,g===0&&G("comment","*/"),c=r.slice(a,g+1),v=c.split(`
`),_=v.length-1,_>0?(E=o+_,A=g-v[_].length):(E=o,A=s),k=w.comment,o=E,f=E,p=g-A):l===w.slash?(g=a,k=l,f=o,p=a-s,u=g+1):(g=rv(r,a),k=w.word,f=o,p=g-s),u=g+1;break}e.push([k,o,a-s,f,p,a,u]),A&&(s=A,A=null),a=u}return e}});var ju=y((Mt,Uu)=>{"use strict";Mt.__esModule=!0;Mt.default=void 0;var ov=re(Ji()),kn=re(Hi()),av=re(en()),qu=re(rn()),uv=re(sn()),lv=re(un()),Cn=re(cn()),cv=re(hn()),Mu=Ir(yn()),fv=re(_n()),Tn=re(bn()),hv=re(En()),pv=re(Cu()),m=Ir(Iu()),S=Ir(xn()),dv=Ir(z()),D=vt(),Pe,Pn;function Ru(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return Ru=function(){return i},i}function Ir(i){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var e=Ru();if(e&&e.has(i))return e.get(i);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=t?Object.getOwnPropertyDescriptor(i,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=i[n]}return r.default=i,e&&e.set(i,r),r}function re(i){return i&&i.__esModule?i:{default:i}}function Du(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function vv(i,e,r){return e&&Du(i.prototype,e),r&&Du(i,r),i}var Ln=(Pe={},Pe[S.space]=!0,Pe[S.cr]=!0,Pe[S.feed]=!0,Pe[S.newline]=!0,Pe[S.tab]=!0,Pe),gv=Object.assign({},Ln,(Pn={},Pn[S.comment]=!0,Pn));function Nu(i){return{line:i[m.FIELDS.START_LINE],column:i[m.FIELDS.START_COL]}}function Fu(i){return{line:i[m.FIELDS.END_LINE],column:i[m.FIELDS.END_COL]}}function Le(i,e,r,t){return{start:{line:i,column:e},end:{line:r,column:t}}}function $e(i){return Le(i[m.FIELDS.START_LINE],i[m.FIELDS.START_COL],i[m.FIELDS.END_LINE],i[m.FIELDS.END_COL])}function In(i,e){if(!!i)return Le(i[m.FIELDS.START_LINE],i[m.FIELDS.START_COL],e[m.FIELDS.END_LINE],e[m.FIELDS.END_COL])}function Ye(i,e){var r=i[e];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,D.ensureObject)(i,"raws"),i[e]=(0,D.unesc)(r),i.raws[e]===void 0&&(i.raws[e]=r)),i}function qn(i,e){for(var r=-1,t=[];(r=i.indexOf(e,r+1))!==-1;)t.push(r);return t}function mv(){var i=Array.prototype.concat.apply([],arguments);return i.filter(function(e,r){return r===i.indexOf(e)})}var yv=function(){function i(r,t){t===void 0&&(t={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,m.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=In(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new ov.default({source:n}),this.root.errorGenerator=this._errorGenerator();var s=new kn.default({source:{start:{line:1,column:1}}});this.root.append(s),this.current=s,this.loop()}var e=i.prototype;return e._errorGenerator=function(){var t=this;return function(n,s){return typeof t.rule=="string"?new Error(n):t.rule.error(n,s)}},e.attribute=function(){var t=[],n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[m.FIELDS.TYPE]!==S.closeSquare;)t.push(this.currToken),this.position++;if(this.currToken[m.FIELDS.TYPE]!==S.closeSquare)return this.expected("closing square bracket",this.currToken[m.FIELDS.START_POS]);var s=t.length,o={source:Le(n[1],n[2],this.currToken[3],this.currToken[4]),sourceIndex:n[m.FIELDS.START_POS]};if(s===1&&!~[S.word].indexOf(t[0][m.FIELDS.TYPE]))return this.expected("attribute",t[0][m.FIELDS.START_POS]);for(var a=0,u="",l="",c=null,p=!1;a<s;){var f=t[a],h=this.content(f),d=t[a+1];switch(f[m.FIELDS.TYPE]){case S.space:if(p=!0,this.options.lossy)break;if(c){(0,D.ensureObject)(o,"spaces",c);var _=o.spaces[c].after||"";o.spaces[c].after=_+h;var v=(0,D.getProp)(o,"raws","spaces",c,"after")||null;v&&(o.raws.spaces[c].after=v+h)}else u=u+h,l=l+h;break;case S.asterisk:if(d[m.FIELDS.TYPE]===S.equals)o.operator=h,c="operator";else if((!o.namespace||c==="namespace"&&!p)&&d){u&&((0,D.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,D.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=u,l=""),o.namespace=(o.namespace||"")+h;var g=(0,D.getProp)(o,"raws","namespace")||null;g&&(o.raws.namespace+=h),c="namespace"}p=!1;break;case S.dollar:if(c==="value"){var E=(0,D.getProp)(o,"raws","value");o.value+="$",E&&(o.raws.value=E+"$");break}case S.caret:d[m.FIELDS.TYPE]===S.equals&&(o.operator=h,c="operator"),p=!1;break;case S.combinator:if(h==="~"&&d[m.FIELDS.TYPE]===S.equals&&(o.operator=h,c="operator"),h!=="|"){p=!1;break}d[m.FIELDS.TYPE]===S.equals?(o.operator=h,c="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),p=!1;break;case S.word:if(d&&this.content(d)==="|"&&t[a+2]&&t[a+2][m.FIELDS.TYPE]!==S.equals&&!o.operator&&!o.namespace)o.namespace=h,c="namespace";else if(!o.attribute||c==="attribute"&&!p){u&&((0,D.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,D.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=l,l=""),o.attribute=(o.attribute||"")+h;var A=(0,D.getProp)(o,"raws","attribute")||null;A&&(o.raws.attribute+=h),c="attribute"}else if(!o.value&&o.value!==""||c==="value"&&!p){var x=(0,D.unesc)(h),k=(0,D.getProp)(o,"raws","value")||"",G=o.value||"";o.value=G+x,o.quoteMark=null,(x!==h||k)&&((0,D.ensureObject)(o,"raws"),o.raws.value=(k||G)+h),c="value"}else{var $=h==="i"||h==="I";(o.value||o.value==="")&&(o.quoteMark||p)?(o.insensitive=$,(!$||h==="I")&&((0,D.ensureObject)(o,"raws"),o.raws.insensitiveFlag=h),c="insensitive",u&&((0,D.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=u,u=""),l&&((0,D.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=l,l="")):(o.value||o.value==="")&&(c="value",o.value+=h,o.raws.value&&(o.raws.value+=h))}p=!1;break;case S.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:f[m.FIELDS.START_POS]});var U=(0,Mu.unescapeValue)(h),Y=U.unescaped,ce=U.quoteMark;o.value=Y,o.quoteMark=ce,c="value",(0,D.ensureObject)(o,"raws"),o.raws.value=h,p=!1;break;case S.equals:if(!o.attribute)return this.expected("attribute",f[m.FIELDS.START_POS],h);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:f[m.FIELDS.START_POS]});o.operator=o.operator?o.operator+h:h,c="operator",p=!1;break;case S.comment:if(c)if(p||d&&d[m.FIELDS.TYPE]===S.space||c==="insensitive"){var Ke=(0,D.getProp)(o,"spaces",c,"after")||"",Nt=(0,D.getProp)(o,"raws","spaces",c,"after")||Ke;(0,D.ensureObject)(o,"raws","spaces",c),o.raws.spaces[c].after=Nt+h}else{var Oe=o[c]||"",qr=(0,D.getProp)(o,"raws",c)||Oe;(0,D.ensureObject)(o,"raws"),o.raws[c]=qr+h}else l=l+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:f[m.FIELDS.START_POS]})}a++}Ye(o,"attribute"),Ye(o,"namespace"),this.newNode(new Mu.default(o)),this.position++},e.parseWhitespaceEquivalentTokens=function(t){t<0&&(t=this.tokens.length);var n=this.position,s=[],o="",a=void 0;do if(Ln[this.currToken[m.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[m.FIELDS.TYPE]===S.comment){var u={};o&&(u.before=o,o=""),a=new qu.default({value:this.content(),source:$e(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS],spaces:u}),s.push(a)}while(++this.position<t);if(o){if(a)a.spaces.after=o;else if(!this.options.lossy){var l=this.tokens[n],c=this.tokens[this.position-1];s.push(new Cn.default({value:"",source:Le(l[m.FIELDS.START_LINE],l[m.FIELDS.START_COL],c[m.FIELDS.END_LINE],c[m.FIELDS.END_COL]),sourceIndex:l[m.FIELDS.START_POS],spaces:{before:o,after:""}}))}}return s},e.convertWhitespaceNodesToSpace=function(t,n){var s=this;n===void 0&&(n=!1);var o="",a="";t.forEach(function(l){var c=s.lossySpace(l.spaces.before,n),p=s.lossySpace(l.rawSpaceBefore,n);o+=c+s.lossySpace(l.spaces.after,n&&c.length===0),a+=c+l.value+s.lossySpace(l.rawSpaceAfter,n&&p.length===0)}),a===o&&(a=void 0);var u={space:o,rawSpace:a};return u},e.isNamedCombinator=function(t){return t===void 0&&(t=this.position),this.tokens[t+0]&&this.tokens[t+0][m.FIELDS.TYPE]===S.slash&&this.tokens[t+1]&&this.tokens[t+1][m.FIELDS.TYPE]===S.word&&this.tokens[t+2]&&this.tokens[t+2][m.FIELDS.TYPE]===S.slash},e.namedCombinator=function(){if(this.isNamedCombinator()){var t=this.content(this.tokens[this.position+1]),n=(0,D.unesc)(t).toLowerCase(),s={};n!==t&&(s.value="/"+t+"/");var o=new Tn.default({value:"/"+n+"/",source:Le(this.currToken[m.FIELDS.START_LINE],this.currToken[m.FIELDS.START_COL],this.tokens[this.position+2][m.FIELDS.END_LINE],this.tokens[this.position+2][m.FIELDS.END_COL]),sourceIndex:this.currToken[m.FIELDS.START_POS],raws:s});return this.position=this.position+3,o}else this.unexpected()},e.combinator=function(){var t=this;if(this.content()==="|")return this.namespace();var n=this.locateNextMeaningfulToken(this.position);if(n<0||this.tokens[n][m.FIELDS.TYPE]===S.comma){var s=this.parseWhitespaceEquivalentTokens(n);if(s.length>0){var o=this.current.last;if(o){var a=this.convertWhitespaceNodesToSpace(s),u=a.space,l=a.rawSpace;l!==void 0&&(o.rawSpaceAfter+=l),o.spaces.after+=u}else s.forEach(function(k){return t.newNode(k)})}return}var c=this.currToken,p=void 0;n>this.position&&(p=this.parseWhitespaceEquivalentTokens(n));var f;if(this.isNamedCombinator()?f=this.namedCombinator():this.currToken[m.FIELDS.TYPE]===S.combinator?(f=new Tn.default({value:this.content(),source:$e(this.currToken),sourceIndex:this.currToken[m.FIELDS.START_POS]}),this.position++):Ln[this.currToken[m.FIELDS.TYPE]]||p||this.unexpected(),f){if(p){var h=this.convertWhitespaceNodesToSpace(p),d=h.space,_=h.rawSpace;f.spaces.before=d,f.rawSpaceBefore=_}}else{var v=this.convertWhitespaceNodesToSpace(p,!0),g=v.space,E=v.rawSpace;E||(E=g);var A={},x={spaces:{}};g.endsWith(" ")&&E.endsWith(" ")?(A.before=g.slice(0,g.length-1),x.spaces.before=E.slice(0,E.length-1)):g.startsWith(" ")&&E.startsWith(" ")?(A.after=g.slice(1),x.spaces.after=E.slice(1)):x.value=E,f=new Tn.default({value:" ",source:In(c,this.tokens[this.position-1]),sourceIndex:c[m.FIELDS.START_POS],spaces:A,raws:x})}return this.currToken&&this.currToken[m.FIELDS.TYPE]===S.space&&(f.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(f)},e.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var t=new kn.default({source:{start:Nu(this.tokens[this.position+1])}});this.current.parent.append(t),this.current=t,this.position++},e.comment=function(){var t=this.currToken;this.newNode(new qu.default({value:this.content(),source:$e(t),sourceIndex:t[m.FIELDS.START_POS]})),this.position++},e.error=function(t,n){throw this.root.error(t,n)},e.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[m.FIELDS.START_POS]})},e.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[m.FIELDS.START_POS])},e.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[m.FIELDS.START_POS])},e.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[m.FIELDS.START_POS])},e.namespace=function(){var t=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[m.FIELDS.TYPE]===S.word)return this.position++,this.word(t);if(this.nextToken[m.FIELDS.TYPE]===S.asterisk)return this.position++,this.universal(t)},e.nesting=function(){if(this.nextToken){var t=this.content(this.nextToken);if(t==="|"){this.position++;return}}var n=this.currToken;this.newNode(new hv.default({value:this.content(),source:$e(n),sourceIndex:n[m.FIELDS.START_POS]})),this.position++},e.parentheses=function(){var t=this.current.last,n=1;if(this.position++,t&&t.type===dv.PSEUDO){var s=new kn.default({source:{start:Nu(this.tokens[this.position-1])}}),o=this.current;for(t.append(s),this.current=s;this.position<this.tokens.length&&n;)this.currToken[m.FIELDS.TYPE]===S.openParenthesis&&n++,this.currToken[m.FIELDS.TYPE]===S.closeParenthesis&&n--,n?this.parse():(this.current.source.end=Fu(this.currToken),this.current.parent.source.end=Fu(this.currToken),this.position++);this.current=o}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&n;)this.currToken[m.FIELDS.TYPE]===S.openParenthesis&&n++,this.currToken[m.FIELDS.TYPE]===S.closeParenthesis&&n--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;t?t.appendToPropertyAndEscape("value",u,u):this.newNode(new Cn.default({value:u,source:Le(a[m.FIELDS.START_LINE],a[m.FIELDS.START_COL],l[m.FIELDS.END_LINE],l[m.FIELDS.END_COL]),sourceIndex:a[m.FIELDS.START_POS]}))}if(n)return this.expected("closing parenthesis",this.currToken[m.FIELDS.START_POS])},e.pseudo=function(){for(var t=this,n="",s=this.currToken;this.currToken&&this.currToken[m.FIELDS.TYPE]===S.colon;)n+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[m.FIELDS.TYPE]===S.word)this.splitWord(!1,function(o,a){n+=o,t.newNode(new cv.default({value:n,source:In(s,t.currToken),sourceIndex:s[m.FIELDS.START_POS]})),a>1&&t.nextToken&&t.nextToken[m.FIELDS.TYPE]===S.openParenthesis&&t.error("Misplaced parenthesis.",{index:t.nextToken[m.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[m.FIELDS.START_POS])},e.space=function(){var t=this.content();this.position===0||this.prevToken[m.FIELDS.TYPE]===S.comma||this.prevToken[m.FIELDS.TYPE]===S.openParenthesis||this.current.nodes.every(function(n){return n.type==="comment"})?(this.spaces=this.optionalSpace(t),this.position++):this.position===this.tokens.length-1||this.nextToken[m.FIELDS.TYPE]===S.comma||this.nextToken[m.FIELDS.TYPE]===S.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(t),this.position++):this.combinator()},e.string=function(){var t=this.currToken;this.newNode(new Cn.default({value:this.content(),source:$e(t),sourceIndex:t[m.FIELDS.START_POS]})),this.position++},e.universal=function(t){var n=this.nextToken;if(n&&this.content(n)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new fv.default({value:this.content(),source:$e(s),sourceIndex:s[m.FIELDS.START_POS]}),t),this.position++},e.splitWord=function(t,n){for(var s=this,o=this.nextToken,a=this.content();o&&~[S.dollar,S.caret,S.equals,S.word].indexOf(o[m.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[m.FIELDS.TYPE]===S.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}o=this.nextToken}var c=qn(a,".").filter(function(d){return a[d-1]!=="\\"}),p=qn(a,"#").filter(function(d){return a[d-1]!=="\\"}),f=qn(a,"#{");f.length&&(p=p.filter(function(d){return!~f.indexOf(d)}));var h=(0,pv.default)(mv([0].concat(c,p)));h.forEach(function(d,_){var v=h[_+1]||a.length,g=a.slice(d,v);if(_===0&&n)return n.call(s,g,h.length);var E,A=s.currToken,x=A[m.FIELDS.START_POS]+h[_],k=Le(A[1],A[2]+d,A[3],A[2]+(v-1));if(~c.indexOf(d)){var G={value:g.slice(1),source:k,sourceIndex:x};E=new av.default(Ye(G,"value"))}else if(~p.indexOf(d)){var $={value:g.slice(1),source:k,sourceIndex:x};E=new uv.default(Ye($,"value"))}else{var U={value:g,source:k,sourceIndex:x};Ye(U,"value"),E=new lv.default(U)}s.newNode(E,t),t=null}),this.position++},e.word=function(t){var n=this.nextToken;return n&&this.content(n)==="|"?(this.position++,this.namespace()):this.splitWord(t)},e.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},e.parse=function(t){switch(this.currToken[m.FIELDS.TYPE]){case S.space:this.space();break;case S.comment:this.comment();break;case S.openParenthesis:this.parentheses();break;case S.closeParenthesis:t&&this.missingParenthesis();break;case S.openSquare:this.attribute();break;case S.dollar:case S.caret:case S.equals:case S.word:this.word();break;case S.colon:this.pseudo();break;case S.comma:this.comma();break;case S.asterisk:this.universal();break;case S.ampersand:this.nesting();break;case S.slash:case S.combinator:this.combinator();break;case S.str:this.string();break;case S.closeSquare:this.missingSquareBracket();case S.semicolon:this.missingBackslash();default:this.unexpected()}},e.expected=function(t,n,s){if(Array.isArray(t)){var o=t.pop();t=t.join(", ")+" or "+o}var a=/^[aeiou]/.test(t[0])?"an":"a";return s?this.error("Expected "+a+" "+t+', found "'+s+'" instead.',{index:n}):this.error("Expected "+a+" "+t+".",{index:n})},e.requiredSpace=function(t){return this.options.lossy?" ":t},e.optionalSpace=function(t){return this.options.lossy?"":t},e.lossySpace=function(t,n){return this.options.lossy?n?" ":"":t},e.parseParenthesisToken=function(t){var n=this.content(t);return t[m.FIELDS.TYPE]===S.space?this.requiredSpace(n):n},e.newNode=function(t,n){return n&&(/^ +$/.test(n)&&(this.options.lossy||(this.spaces=(this.spaces||"")+n),n=!0),t.namespace=n,Ye(t,"namespace")),this.spaces&&(t.spaces.before=this.spaces,this.spaces=""),this.current.append(t)},e.content=function(t){return t===void 0&&(t=this.currToken),this.css.slice(t[m.FIELDS.START_POS],t[m.FIELDS.END_POS])},e.locateNextMeaningfulToken=function(t){t===void 0&&(t=this.position+1);for(var n=t;n<this.tokens.length;)if(gv[this.tokens[n][m.FIELDS.TYPE]]){n++;continue}else return n;return-1},vv(i,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),i}();Mt.default=yv;Uu.exports=Mt.default});var Bu=y((Rt,Gu)=>{"use strict";Rt.__esModule=!0;Rt.default=void 0;var wv=_v(ju());function _v(i){return i&&i.__esModule?i:{default:i}}var Sv=function(){function i(r,t){this.func=r||function(){},this.funcRes=null,this.options=t}var e=i.prototype;return e._shouldUpdateSelector=function(t,n){n===void 0&&(n={});var s=Object.assign({},this.options,n);return s.updateSelector===!1?!1:typeof t!="string"},e._isLossy=function(t){t===void 0&&(t={});var n=Object.assign({},this.options,t);return n.lossless===!1},e._root=function(t,n){n===void 0&&(n={});var s=new wv.default(t,this._parseOptions(n));return s.root},e._parseOptions=function(t){return{lossy:this._isLossy(t)}},e._run=function(t,n){var s=this;return n===void 0&&(n={}),new Promise(function(o,a){try{var u=s._root(t,n);Promise.resolve(s.func(u)).then(function(l){var c=void 0;return s._shouldUpdateSelector(t,n)&&(c=u.toString(),t.selector=c),{transform:l,root:u,string:c}}).then(o,a)}catch(l){a(l);return}})},e._runSync=function(t,n){n===void 0&&(n={});var s=this._root(t,n),o=this.func(s);if(o&&typeof o.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return n.updateSelector&&typeof t!="string"&&(a=s.toString(),t.selector=a),{transform:o,root:s,string:a}},e.ast=function(t,n){return this._run(t,n).then(function(s){return s.root})},e.astSync=function(t,n){return this._runSync(t,n).root},e.transform=function(t,n){return this._run(t,n).then(function(s){return s.transform})},e.transformSync=function(t,n){return this._runSync(t,n).transform},e.process=function(t,n){return this._run(t,n).then(function(s){return s.string||s.root.toString()})},e.processSync=function(t,n){var s=this._runSync(t,n);return s.string||s.root.toString()},i}();Rt.default=Sv;Gu.exports=Rt.default});var Wu=y(q=>{"use strict";q.__esModule=!0;q.universal=q.tag=q.string=q.selector=q.root=q.pseudo=q.nesting=q.id=q.comment=q.combinator=q.className=q.attribute=void 0;var bv=ie(yn()),Ov=ie(en()),Ev=ie(bn()),xv=ie(rn()),Av=ie(sn()),kv=ie(En()),Cv=ie(hn()),Tv=ie(Ji()),Pv=ie(Hi()),Lv=ie(cn()),Iv=ie(un()),qv=ie(_n());function ie(i){return i&&i.__esModule?i:{default:i}}var Mv=function(e){return new bv.default(e)};q.attribute=Mv;var Rv=function(e){return new Ov.default(e)};q.className=Rv;var Dv=function(e){return new Ev.default(e)};q.combinator=Dv;var Nv=function(e){return new xv.default(e)};q.comment=Nv;var Fv=function(e){return new Av.default(e)};q.id=Fv;var Uv=function(e){return new kv.default(e)};q.nesting=Uv;var jv=function(e){return new Cv.default(e)};q.pseudo=jv;var Gv=function(e){return new Tv.default(e)};q.root=Gv;var Bv=function(e){return new Pv.default(e)};q.selector=Bv;var Wv=function(e){return new Lv.default(e)};q.string=Wv;var Vv=function(e){return new Iv.default(e)};q.tag=Vv;var Qv=function(e){return new qv.default(e)};q.universal=Qv});var $u=y(C=>{"use strict";C.__esModule=!0;C.isNode=Mn;C.isPseudoElement=zu;C.isPseudoClass=rg;C.isContainer=ig;C.isNamespace=ng;C.isUniversal=C.isTag=C.isString=C.isSelector=C.isRoot=C.isPseudo=C.isNesting=C.isIdentifier=C.isComment=C.isCombinator=C.isClassName=C.isAttribute=void 0;var N=z(),K,zv=(K={},K[N.ATTRIBUTE]=!0,K[N.CLASS]=!0,K[N.COMBINATOR]=!0,K[N.COMMENT]=!0,K[N.ID]=!0,K[N.NESTING]=!0,K[N.PSEUDO]=!0,K[N.ROOT]=!0,K[N.SELECTOR]=!0,K[N.STRING]=!0,K[N.TAG]=!0,K[N.UNIVERSAL]=!0,K);function Mn(i){return typeof i=="object"&&zv[i.type]}function ne(i,e){return Mn(e)&&e.type===i}var Vu=ne.bind(null,N.ATTRIBUTE);C.isAttribute=Vu;var $v=ne.bind(null,N.CLASS);C.isClassName=$v;var Yv=ne.bind(null,N.COMBINATOR);C.isCombinator=Yv;var Jv=ne.bind(null,N.COMMENT);C.isComment=Jv;var Kv=ne.bind(null,N.ID);C.isIdentifier=Kv;var Hv=ne.bind(null,N.NESTING);C.isNesting=Hv;var Rn=ne.bind(null,N.PSEUDO);C.isPseudo=Rn;var Zv=ne.bind(null,N.ROOT);C.isRoot=Zv;var Xv=ne.bind(null,N.SELECTOR);C.isSelector=Xv;var eg=ne.bind(null,N.STRING);C.isString=eg;var Qu=ne.bind(null,N.TAG);C.isTag=Qu;var tg=ne.bind(null,N.UNIVERSAL);C.isUniversal=tg;function zu(i){return Rn(i)&&i.value&&(i.value.startsWith("::")||i.value.toLowerCase()===":before"||i.value.toLowerCase()===":after")}function rg(i){return Rn(i)&&!zu(i)}function ig(i){return!!(Mn(i)&&i.walk)}function ng(i){return Vu(i)||Qu(i)}});var Yu=y(ae=>{"use strict";ae.__esModule=!0;var Dn=z();Object.keys(Dn).forEach(function(i){i==="default"||i==="__esModule"||i in ae&&ae[i]===Dn[i]||(ae[i]=Dn[i])});var Nn=Wu();Object.keys(Nn).forEach(function(i){i==="default"||i==="__esModule"||i in ae&&ae[i]===Nn[i]||(ae[i]=Nn[i])});var Fn=$u();Object.keys(Fn).forEach(function(i){i==="default"||i==="__esModule"||i in ae&&ae[i]===Fn[i]||(ae[i]=Fn[i])})});var Hu=y((Dt,Ku)=>{"use strict";Dt.__esModule=!0;Dt.default=void 0;var sg=ug(Bu()),og=ag(Yu());function Ju(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return Ju=function(){return i},i}function ag(i){if(i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var e=Ju();if(e&&e.has(i))return e.get(i);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=t?Object.getOwnPropertyDescriptor(i,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=i[n]}return r.default=i,e&&e.set(i,r),r}function ug(i){return i&&i.__esModule?i:{default:i}}var Un=function(e){return new sg.default(e)};Object.assign(Un,og);delete Un.__esModule;var lg=Un;Dt.default=lg;Ku.exports=Dt.default});var ll=y(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});var jn=require("fs"),cg=ti(),fg=require("path"),hg=Va(),pg=Hu(),Zu=require("util");function Gn(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}function dg(i){if(i&&i.__esModule)return i;var e=Object.create(null);return i&&Object.keys(i).forEach(function(r){if(r!=="default"){var t=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:function(){return i[r]}})}}),e.default=i,Object.freeze(e)}var Xu=Gn(cg),vg=Gn(fg),gg=Gn(pg);function X(i,e){e&&e.forEach(i.add,i)}var Ie=class{constructor(e){this.undetermined=new Set,this.attrNames=new Set,this.attrValues=new Set,this.classes=new Set,this.ids=new Set,this.tags=new Set,this.merge(e)}merge(e){return Array.isArray(e)?X(this.undetermined,e):e instanceof Ie?(X(this.undetermined,e.undetermined),X(this.attrNames,e.attrNames),X(this.attrValues,e.attrValues),X(this.classes,e.classes),X(this.ids,e.ids),X(this.tags,e.tags)):(X(this.undetermined,e.undetermined),e.attributes&&(X(this.attrNames,e.attributes.names),X(this.attrValues,e.attributes.values)),X(this.classes,e.classes),X(this.ids,e.ids),X(this.tags,e.tags)),this}hasAttrName(e){return this.attrNames.has(e)||this.undetermined.has(e)}someAttrValue(e){for(let r of this.attrValues)if(e(r))return!0;for(let r of this.undetermined)if(e(r))return!0;return!1}hasAttrPrefix(e){return this.someAttrValue(r=>r.startsWith(e))}hasAttrSuffix(e){return this.someAttrValue(r=>r.endsWith(e))}hasAttrSubstr(e){return e.trim().split(" ").every(r=>this.someAttrValue(t=>t.includes(r)))}hasAttrValue(e){return this.attrValues.has(e)||this.undetermined.has(e)}hasClass(e){return this.classes.has(e)||this.undetermined.has(e)}hasId(e){return this.ids.has(e)||this.undetermined.has(e)}hasTag(e){return this.tags.has(e)||this.undetermined.has(e)}},el=["*","::-webkit-scrollbar","::selection",":root","::before","::after"],Je={css:[],content:[],defaultExtractor:i=>i.match(/[A-Za-z0-9_-]+/g)||[],extractors:[],fontFace:!1,keyframes:!1,rejected:!1,stdin:!1,stdout:!1,variables:!1,safelist:{standard:[],deep:[],greedy:[],variables:[],keyframes:[]},blocklist:[],skippedContentGlobs:[],dynamicAttributes:[]},tl=class{constructor(e){this.nodes=[],this.isUsed=!1,this.value=e}},rl=class{constructor(){this.nodes=new Map,this.usedVariables=new Set,this.safelist=[]}addVariable(e){let{prop:r}=e;if(!this.nodes.has(r)){let t=new tl(e);this.nodes.set(r,t)}}addVariableUsage(e,r){let{prop:t}=e,n=this.nodes.get(t);for(let s of r){let o=s[1];if(this.nodes.has(o)){let a=this.nodes.get(o);n==null||n.nodes.push(a)}}}addVariableUsageInProperties(e){for(let r of e){let t=r[1];this.usedVariables.add(t)}}setAsUsed(e){let r=[this.nodes.get(e)];for(;r.length!==0;){let t=r.pop();t&&!t.isUsed&&(t.isUsed=!0,r.push(...t.nodes))}}removeUnused(){for(let e of this.usedVariables)this.setAsUsed(e);for(let[e,r]of this.nodes)r.isUsed||this.isVariablesSafelisted(e)||r.value.remove()}isVariablesSafelisted(e){return this.safelist.some(r=>typeof r=="string"?r===e:r.test(e))}},Bn={access:Zu.promisify(jn.access),readFile:Zu.promisify(jn.readFile)};function Wn(i=[]){return Array.isArray(i)?H(F({},Je.safelist),{standard:i}):F(F({},Je.safelist),i)}async function il(i="purgecss.config.js"){let e;try{let r=vg.default.join(process.cwd(),i);e=await Promise.resolve().then(function(){return dg(require(r))})}catch(r){throw new Error("Error loading the config file "+r.message)}return H(F(F({},Je),e),{safelist:Wn(e.safelist)})}async function nl(i,e){return new Ie(await e(i))}function Vn(i,e){switch(e){case"next":return i.text.includes("purgecss ignore");case"start":return i.text.includes("purgecss start ignore");case"end":return i.text.includes("purgecss end ignore")}}function sl(...i){let e=new Ie([]);return i.forEach(e.merge,e),e}function ol(i){return i.replace(/(^["'])|(["']$)/g,"")}function mg(i,e){if(!e.hasAttrName(i.attribute))return!1;if(i.value===void 0)return!0;switch(i.operator){case"$=":return e.hasAttrSuffix(i.value);case"~=":case"*=":return e.hasAttrSubstr(i.value);case"=":return e.hasAttrValue(i.value);case"|=":case"^=":return e.hasAttrPrefix(i.value);default:return!0}}function yg(i,e){return e.hasId(i.value)}function wg(i,e){return e.hasTag(i.value)}function al(i){return(i==null?void 0:i.type)==="atrule"}function ul(i){return(i==null?void 0:i.type)==="rule"}var Qn=class{constructor(){this.ignore=!1,this.atRules={fontFace:[],keyframes:[]},this.usedAnimations=new Set,this.usedFontFaces=new Set,this.selectorsRemoved=new Set,this.variablesStructure=new rl,this.options=Je}collectDeclarationsData(e){let{prop:r,value:t}=e;if(this.options.variables){let n=function(s,o){let a=[];return s.replace(o,function(){let u=arguments,l=Array.prototype.slice.call(u,0,-2);return l.input=u[u.length-1],l.index=u[u.length-2],a.push(l),s}),a}(t,/var\((.+?)[,)]/g);r.startsWith("--")?(this.variablesStructure.addVariable(e),n.length>0&&this.variablesStructure.addVariableUsage(e,n)):n.length>0&&this.variablesStructure.addVariableUsageInProperties(n)}if(!this.options.keyframes||r!=="animation"&&r!=="animation-name"){if(this.options.fontFace&&r==="font-family")for(let n of t.split(",")){let s=ol(n.trim());this.usedFontFaces.add(s)}}else for(let n of t.split(/[\s,]+/))this.usedAnimations.add(n)}getFileExtractor(e,r){let t=r.find(n=>n.extensions.find(s=>e.endsWith(s)));return t===void 0?this.options.defaultExtractor:t.extractor}async extractSelectorsFromFiles(e,r){let t=new Ie([]);for(let n of e){let s=[];try{await Bn.access(n,jn.constants.F_OK),s.push(n)}catch{s=Xu.default.sync(n,{nodir:!0,ignore:this.options.skippedContentGlobs})}for(let o of s){let a=await Bn.readFile(o,"utf-8"),u=this.getFileExtractor(o,r),l=await nl(a,u);t.merge(l)}}return t}async extractSelectorsFromString(e,r){let t=new Ie([]);for(let{raw:n,extension:s}of e){let o=this.getFileExtractor("."+s,r),a=await nl(n,o);t.merge(a)}return t}evaluateAtRule(e){if(this.options.keyframes&&e.name.endsWith("keyframes"))this.atRules.keyframes.push(e);else if(this.options.fontFace&&e.name==="font-face"&&e.nodes)for(let r of e.nodes)r.type==="decl"&&r.prop==="font-family"&&this.atRules.fontFace.push({name:ol(r.value),node:e})}async evaluateRule(e,r){if(this.ignore)return;let t=e.prev();if(function(o){return(o==null?void 0:o.type)==="comment"}(t)&&Vn(t,"next"))return void t.remove();if(e.parent&&al(e.parent)&&e.parent.name==="keyframes"||!ul(e)||function(o){let a=!1;return o.walkComments(u=>{u&&u.type==="comment"&&u.text.includes("purgecss ignore current")&&(a=!0,u.remove())}),a}(e))return;let n=!0;if(e.selector=gg.default(o=>{o.walk(a=>{a.type==="selector"&&(n=this.shouldKeepSelector(a,r),n||(this.options.rejected&&this.selectorsRemoved.add(a.toString()),a.remove()))})}).processSync(e.selector),n&&e.nodes!==void 0)for(let o of e.nodes)o.type==="decl"&&this.collectDeclarationsData(o);let s=e.parent;e.selector||e.remove(),function(o){return!!(ul(o)&&!o.selector||(o==null?void 0:o.nodes)&&!o.nodes.length||al(o)&&(!o.nodes&&!o.params||!o.params&&o.nodes&&!o.nodes.length))}(s)&&(s==null||s.remove())}async getPurgedCSS(e,r){let t=[],n=[];for(let s of e)typeof s=="string"?n.push(...Xu.default.sync(s,{nodir:!0,ignore:this.options.skippedContentGlobs})):n.push(s);for(let s of n){let o=typeof s=="string"?this.options.stdin?s:await Bn.readFile(s,"utf-8"):s.raw,a=hg.parse(o);this.walkThroughCSS(a,r),this.options.fontFace&&this.removeUnusedFontFaces(),this.options.keyframes&&this.removeUnusedKeyframes(),this.options.variables&&this.removeUnusedCSSVariables();let u={css:a.toString(),file:typeof s=="string"?s:void 0};typeof s=="string"&&(u.file=s),this.options.rejected&&(u.rejected=Array.from(this.selectorsRemoved),this.selectorsRemoved.clear()),t.push(u)}return t}isKeyframesSafelisted(e){return this.options.safelist.keyframes.some(r=>typeof r=="string"?r===e:r.test(e))}isSelectorBlocklisted(e){return this.options.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}isSelectorSafelisted(e){let r=this.options.safelist.standard.some(t=>typeof t=="string"?t===e:t.test(e));return el.includes(e)||r}isSelectorSafelistedDeep(e){return this.options.safelist.deep.some(r=>r.test(e))}isSelectorSafelistedGreedy(e){return this.options.safelist.greedy.some(r=>r.test(e))}async purge(e){this.options=typeof e!="object"?await il(e):H(F(F({},Je),e),{safelist:Wn(e.safelist)});let{content:r,css:t,extractors:n,safelist:s}=this.options;this.options.variables&&(this.variablesStructure.safelist=s.variables||[]);let o=r.filter(c=>typeof c=="string"),a=r.filter(c=>typeof c=="object"),u=await this.extractSelectorsFromFiles(o,n),l=await this.extractSelectorsFromString(a,n);return this.getPurgedCSS(t,sl(u,l))}removeUnusedCSSVariables(){this.variablesStructure.removeUnused()}removeUnusedFontFaces(){for(let{name:e,node:r}of this.atRules.fontFace)this.usedFontFaces.has(e)||r.remove()}removeUnusedKeyframes(){for(let e of this.atRules.keyframes)this.usedAnimations.has(e.params)||this.isKeyframesSafelisted(e.params)||e.remove()}getSelectorValue(e){return e.type==="attribute"&&e.attribute||e.value}shouldKeepSelector(e,r){if(function(s){return s.parent&&s.parent.type==="pseudo"&&s.parent.value.startsWith(":")||!1}(e)||this.options.safelist.greedy.length>0&&e.nodes.map(this.getSelectorValue).some(s=>s&&this.isSelectorSafelistedGreedy(s)))return!0;let t=!1;for(let s of e.nodes){let o=this.getSelectorValue(s);if(o&&this.isSelectorSafelistedDeep(o))return!0;if(o&&(el.includes(o)||this.isSelectorSafelisted(o)))t=!0;else{if(o&&this.isSelectorBlocklisted(o))return!1;switch(s.type){case"attribute":t=!![...this.options.dynamicAttributes,"value","checked","selected","open"].includes(s.attribute)||mg(s,r);break;case"class":n=s,t=r.hasClass(n.value);break;case"id":t=yg(s,r);break;case"tag":t=wg(s,r);break;default:continue}if(!t)return!1}}var n;return t}walkThroughCSS(e,r){e.walk(t=>t.type==="rule"?this.evaluateRule(t,r):t.type==="atrule"?this.evaluateAtRule(t):void(t.type==="comment"&&(Vn(t,"start")?(this.ignore=!0,t.remove()):Vn(t,"end")&&(this.ignore=!1,t.remove()))))}};be.PurgeCSS=Qn,be.default=Qn,be.defaultOptions=Je,be.mergeExtractorSelectors=sl,be.setOptions=il,be.standardizeSafelist=Wn});module.exports=function(e){return{name:"purgecss",setup(r){if(!r.initialOptions.metafile)throw new Error("You should set metafile true to use this plugin.");let{PurgeCSS:t}=ll(),n=require("path"),s=require("fs");r.onEnd(async o=>{let a=Object.keys(o.metafile.outputs),u=h=>d=>d.endsWith(h),l=a.filter(u(".js")),c=a.filter(u(".css")),p=e||{},f=await new t().purge(H(F({},p),{content:l,css:c}));for(let h=0;h<f.length;h++){let{file:d,css:_}=f[h];await s.promises.writeFile(d,_)}})}}};
/*! https://mths.be/cssesc v3.0.0 by @mathias */