@stylable/core
Version:
CSS for Components
24 lines (23 loc) • 346 kB
JavaScript
var fv=Object.create;var Zi=Object.defineProperty;var pv=Object.getOwnPropertyDescriptor;var dv=Object.getOwnPropertyNames;var mv=Object.getPrototypeOf,hv=Object.prototype.hasOwnProperty;var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),be=(e,t)=>{for(var r in t)Zi(e,r,{get:t[r],enumerable:!0})},yv=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of dv(t))!hv.call(e,n)&&n!==r&&Zi(e,n,{get:()=>t[n],enumerable:!(s=pv(t,n))||s.enumerable});return e};var D=(e,t,r)=>(r=e!=null?fv(mv(e)):{},yv(t||!e||!e.__esModule?Zi(r,"default",{value:e,enumerable:!0}):r,e));var rf=S((CP,ea)=>{var Z=String,tf=function(){return{isColorSupported:!1,reset:Z,bold:Z,dim:Z,italic:Z,underline:Z,inverse:Z,hidden:Z,strikethrough:Z,black:Z,red:Z,green:Z,yellow:Z,blue:Z,magenta:Z,cyan:Z,white:Z,gray:Z,bgBlack:Z,bgRed:Z,bgGreen:Z,bgYellow:Z,bgBlue:Z,bgMagenta:Z,bgCyan:Z,bgWhite:Z}};ea.exports=tf();ea.exports.createColors=tf});var ta=S(()=>{});var qn=S((xP,of)=>{"use strict";var sf=rf(),nf=ta(),vs=class e extends Error{constructor(t,r,s,n,o,i){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),n&&(this.source=n),i&&(this.plugin=i),typeof r<"u"&&typeof s<"u"&&(typeof r=="number"?(this.line=r,this.column=s):(this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;t==null&&(t=sf.isColorSupported),nf&&t&&(r=nf(r));let s=r.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),i=String(o).length,a,l;if(t){let{bold:u,gray:c,red:f}=sf.createColors(!0);a=p=>u(f(p)),l=p=>c(p)}else a=l=u=>u;return s.slice(n,o).map((u,c)=>{let f=n+1+c,p=" "+(" "+f).slice(-i)+" | ";if(f===this.line){let d=l(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(p)+u+`
`+d+a("^")}return" "+l(p)+u}).join(`
`)}toString(){let t=this.showSourceCode();return t&&(t=`
`+t+`
`),this.name+": "+this.message+t}};of.exports=vs;vs.default=vs});var $n=S((wP,ra)=>{"use strict";ra.exports.isClean=Symbol("isClean");ra.exports.my=Symbol("my")});var sa=S((RP,lf)=>{"use strict";var af={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function gv(e){return e[0].toUpperCase()+e.slice(1)}var bs=class{constructor(t){this.builder=t}atrule(t,r){let s="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:n&&(s+=" "),t.nodes)this.block(t,s+n);else{let o=(t.raws.between||"")+(r?";":"");this.builder(s+n+o,t)}}beforeAfter(t,r){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):r==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let n=t.parent,o=0;for(;n&&n.type!=="root";)o+=1,n=n.parent;if(s.includes(`
`)){let i=this.raw(t,null,"indent");if(i.length)for(let a=0;a<o;a++)s+=i}return s}block(t,r){let s=this.raw(t,"between","beforeOpen");this.builder(r+s+"{",t,"start");let n;t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(n),this.builder("}",t,"end")}body(t){let r=t.nodes.length-1;for(;r>0&&t.nodes[r].type==="comment";)r-=1;let s=this.raw(t,"semicolon");for(let n=0;n<t.nodes.length;n++){let o=t.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,r!==n||s)}}comment(t){let r=this.raw(t,"left","commentLeft"),s=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+s+"*/",t)}decl(t,r){let s=this.raw(t,"between","colon"),n=t.prop+s+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),r&&(n+=";"),this.builder(n,t)}document(t){this.body(t)}raw(t,r,s){let n;if(s||(s=r),r&&(n=t.raws[r],typeof n<"u"))return n;let o=t.parent;if(s==="before"&&(!o||o.type==="root"&&o.first===t||o&&o.type==="document"))return"";if(!o)return af[s];let i=t.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[s]<"u")return i.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let a="raw"+gv(s);this[a]?n=this[a](i,t):i.walk(l=>{if(n=l.raws[r],typeof n<"u")return!1})}return typeof n>"u"&&(n=af[s]),i.rawCache[s]=n,n}rawBeforeClose(t){let r;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return r=s.raws.after,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(t,r){let s;return t.walkComments(n=>{if(typeof n.raws.before<"u")return s=n.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,r){let s;return t.walkDecls(n=>{if(typeof n.raws.before<"u")return s=n.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let r;return t.walk(s=>{if(s.type!=="decl"&&(r=s.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(t){let r;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(t){let r;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(t){let r;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r<"u"))return!1}),r}rawIndent(t){if(t.raws.indent)return t.raws.indent;let r;return t.walk(s=>{let n=s.parent;if(n&&n!==t&&n.parent&&n.parent===t&&typeof s.raws.before<"u"){let o=s.raws.before.split(`
`);return r=o[o.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(t){let r;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(t,r){let s=t[r],n=t.raws[r];return n&&n.value===s?n.raw:s}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)}};lf.exports=bs;bs.default=bs});var _s=S((NP,uf)=>{"use strict";var Sv=sa();function na(e,t){new Sv(t).stringify(e)}uf.exports=na;na.default=na});var Cs=S((IP,cf)=>{"use strict";var{isClean:jn,my:vv}=$n(),bv=qn(),_v=sa(),Av=_s();function oa(e,t){let r=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||s==="proxyCache")continue;let n=e[s],o=typeof n;s==="parent"&&o==="object"?t&&(r[s]=t):s==="source"?r[s]=n:Array.isArray(n)?r[s]=n.map(i=>oa(i,r)):(o==="object"&&n!==null&&(n=oa(n)),r[s]=n)}return r}var As=class{constructor(t={}){this.raws={},this[jn]=!1,this[vv]=!0;for(let r in t)if(r==="nodes"){this.nodes=[];for(let s of t[r])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}else this[r]=t[r]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let r in t)this[r]=t[r];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let r=oa(this);for(let s in t)r[s]=t[s];return r}cloneAfter(t={}){let r=this.clone(t);return this.parent.insertAfter(this,r),r}cloneBefore(t={}){let r=this.clone(t);return this.parent.insertBefore(this,r),r}error(t,r={}){if(this.source){let{end:s,start:n}=this.rangeBy(r);return this.source.input.error(t,{column:n.column,line:n.line},{column:s.column,line:s.line},r)}return new bv(t)}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:r==="root"?()=>t.root().toProxy():t[r]},set(t,r,s){return t[r]===s||(t[r]=s,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&t.markDirty()),!0}}}markDirty(){if(this[jn]){this[jn]=!1;let t=this;for(;t=t.parent;)t[jn]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,r){let s=this.source.start;if(t.index)s=this.positionInside(t.index,r);else if(t.word){r=this.toString();let n=r.indexOf(t.word);n!==-1&&(s=this.positionInside(n,r))}return s}positionInside(t,r){let s=r||this.toString(),n=this.source.start.column,o=this.source.start.line;for(let i=0;i<t;i++)s[i]===`
`?(n=1,o+=1):n+=1;return{column:n,line:o}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){let n=this.toString(),o=n.indexOf(t.word);o!==-1&&(r=this.positionInside(o,n),s=this.positionInside(o+t.word.length,n))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?s={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?s=this.positionInside(t.endIndex):t.index&&(s=this.positionInside(t.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}}raw(t,r){return new _v().raw(this,t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let r=this,s=!1;for(let n of t)n===this?s=!0:s?(this.parent.insertAfter(r,n),r=n):this.parent.insertBefore(r,n);s||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,r){let s={},n=r==null;r=r||new Map;let o=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let a=this[i];if(Array.isArray(a))s[i]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,r):l);else if(typeof a=="object"&&a.toJSON)s[i]=a.toJSON(null,r);else if(i==="source"){let l=r.get(a.input);l==null&&(l=o,r.set(a.input,o),o++),s[i]={end:a.end,inputId:l,start:a.start}}else s[i]=a}return n&&(s.inputs=[...r.keys()].map(i=>i.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=Av){t.stringify&&(t=t.stringify);let r="";return t(this,s=>{r+=s}),r}warn(t,r,s){let n={node:this};for(let o in s)n[o]=s[o];return t.warn(r,n)}get proxyOf(){return this}};cf.exports=As;As.default=As});var Ts=S((OP,ff)=>{"use strict";var Cv=Cs(),Es=class extends Cv{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};ff.exports=Es;Es.default=Es});var Bn=S(()=>{});var qe=S((kP,mf)=>{var xs={cwd:function(){return"/"},env:{}};function pf(e){let t=typeof e;return t==="object"&&e===null?"null":t}function oe(e,t){if(typeof e!="string")throw new TypeError(`[ERR_INVALID_ARG_TYPE]: The "${t}" argument must be of type string. Received ${pf(e)}`)}function M(e){return e===47||e===92}function ia(e){return e===47}function Dt(e){return e>=65&&e<=90||e>=97&&e<=122}function Wn(e,t,r,s){let n="",o=0,i=-1,a=0,l=0;for(let u=0;u<=e.length;++u){if(u<e.length)l=e.charCodeAt(u);else{if(s(l))break;l=47}if(s(l)){if(!(i===u-1||a===1))if(a===2){if(n.length<2||o!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){let c=n.lastIndexOf(r);c===-1?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf(r)),i=u,a=0;continue}else if(n.length!==0){n="",o=0,i=u,a=0;continue}}t&&(n+=n.length>0?`${r}..`:"..",o=2)}else n.length>0?n+=`${r}${e.slice(i+1,u)}`:n=e.slice(i+1,u),o=u-i-1;i=u,a=0}else l===46&&a!==-1?++a:a=-1}return n}function df(e,t){if(t===null||typeof t!="object")throw new TypeError(`[ERR_INVALID_ARG_TYPE]: The "pathObject" argument must be of type object. Received ${pf(t)}`);let r=t.dir||t.root,s=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${s}`:`${r}${e}${s}`:s}var nt={resolve(...e){let t="",r="",s=!1;for(let n=e.length-1;n>=-1;n--){let o;if(n>=0){if(o=e[n],oe(o,"path"),o.length===0)continue}else t.length===0?o=xs.cwd():(o=xs.env[`=${t}`]||xs.cwd(),(o===void 0||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===92)&&(o=`${t}\\`));let i=o.length,a=0,l="",u=!1,c=o.charCodeAt(0);if(i===1)M(c)&&(a=1,u=!0);else if(M(c))if(u=!0,M(o.charCodeAt(1))){let f=2,p=f;for(;f<i&&!M(o.charCodeAt(f));)f++;if(f<i&&f!==p){let d=o.slice(p,f);for(p=f;f<i&&M(o.charCodeAt(f));)f++;if(f<i&&f!==p){for(p=f;f<i&&!M(o.charCodeAt(f));)f++;(f===i||f!==p)&&(l=`\\\\${d}\\${o.slice(p,f)}`,a=f)}}}else a=1;else Dt(c)&&o.charCodeAt(1)===58&&(l=o.slice(0,2),a=2,i>2&&M(o.charCodeAt(2))&&(u=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(s){if(t.length>0)break}else if(r=`${o.slice(a)}\\${r}`,s=u,u&&t.length>0)break}return r=Wn(r,!s,"\\",M),s?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){oe(e,"path");let t=e.length;if(t===0)return".";let r=0,s,n=!1,o=e.charCodeAt(0);if(t===1)return ia(o)?"\\":e;if(M(o))if(n=!0,M(e.charCodeAt(1))){let a=2,l=a;for(;a<t&&!M(e.charCodeAt(a));)a++;if(a<t&&a!==l){let u=e.slice(l,a);for(l=a;a<t&&M(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!M(e.charCodeAt(a));)a++;if(a===t)return`\\\\${u}\\${e.slice(l)}\\`;a!==l&&(s=`\\\\${u}\\${e.slice(l,a)}`,r=a)}}}else r=1;else Dt(o)&&e.charCodeAt(1)===58&&(s=e.slice(0,2),r=2,t>2&&M(e.charCodeAt(2))&&(n=!0,r=3));let i=r<t?Wn(e.slice(r),!n,"\\",M):"";return i.length===0&&!n&&(i="."),i.length>0&&M(e.charCodeAt(t-1))&&(i+="\\"),s===void 0?n?`\\${i}`:i:n?`${s}\\${i}`:`${s}${i}`},isAbsolute(e){oe(e,"path");let t=e.length;if(t===0)return!1;let r=e.charCodeAt(0);return M(r)||t>2&&Dt(r)&&e.charCodeAt(1)===58&&M(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,r;for(let o=0;o<e.length;++o){let i=e[o];oe(i,"path"),i.length>0&&(t===void 0?t=r=i:t+=`\\${i}`)}if(t===void 0)return".";let s=!0,n=0;if(M(r.charCodeAt(0))){++n;let o=r.length;o>1&&M(r.charCodeAt(1))&&(++n,o>2&&(M(r.charCodeAt(2))?++n:s=!1))}if(s){for(;n<t.length&&M(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return nt.normalize(t)},relative(e,t){if(oe(e,"from"),oe(t,"to"),e===t)return"";let r=nt.resolve(e),s=nt.resolve(t);if(r===s||(e=r.toLowerCase(),t=s.toLowerCase(),e===t))return"";let n=0;for(;n<e.length&&e.charCodeAt(n)===92;)n++;let o=e.length;for(;o-1>n&&e.charCodeAt(o-1)===92;)o--;let i=o-n,a=0;for(;a<t.length&&t.charCodeAt(a)===92;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===92;)l--;let u=l-a,c=i<u?i:u,f=-1,p=0;for(;p<c;p++){let m=e.charCodeAt(n+p);if(m!==t.charCodeAt(a+p))break;m===92&&(f=p)}if(p!==c){if(f===-1)return s}else{if(u>c){if(t.charCodeAt(a+p)===92)return s.slice(a+p+1);if(p===2)return s.slice(a+p)}i>c&&(e.charCodeAt(n+p)===92?f=p:p===2&&(f=3)),f===-1&&(f=0)}let d="";for(p=n+f+1;p<=o;++p)(p===o||e.charCodeAt(p)===92)&&(d+=d.length===0?"..":"\\..");return a+=f,d.length>0?`${d}${s.slice(a,l)}`:(s.charCodeAt(a)===92&&++a,s.slice(a,l))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";let t=nt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let r=t.charCodeAt(2);if(r!==63&&r!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Dt(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`;return e},dirname(e){oe(e,"path");let t=e.length;if(t===0)return".";let r=-1,s=0,n=e.charCodeAt(0);if(t===1)return M(n)?e:".";if(M(n)){if(r=s=1,M(e.charCodeAt(1))){let a=2,l=a;for(;a<t&&!M(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&M(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!M(e.charCodeAt(a));)a++;if(a===t)return e;a!==l&&(r=s=a+1)}}}}else Dt(n)&&e.charCodeAt(1)===58&&(r=t>2&&M(e.charCodeAt(2))?3:2,s=r);let o=-1,i=!0;for(let a=t-1;a>=s;--a)if(M(e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;if(o===-1){if(r===-1)return".";o=r}return e.slice(0,o)},basename(e,t){t!==void 0&&oe(t,"ext"),oe(e,"path");let r=0,s=-1,n=!0;if(e.length>=2&&Dt(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(r=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,i=-1;for(let a=e.length-1;a>=r;--a){let l=e.charCodeAt(a);if(M(l)){if(!n){r=a+1;break}}else i===-1&&(n=!1,i=a+1),o>=0&&(l===t.charCodeAt(o)?--o===-1&&(s=a):(o=-1,s=i))}return r===s?s=i:s===-1&&(s=e.length),e.slice(r,s)}for(let o=e.length-1;o>=r;--o)if(M(e.charCodeAt(o))){if(!n){r=o+1;break}}else s===-1&&(n=!1,s=o+1);return s===-1?"":e.slice(r,s)},extname(e){oe(e,"path");let t=0,r=-1,s=0,n=-1,o=!0,i=0;e.length>=2&&e.charCodeAt(1)===58&&Dt(e.charCodeAt(0))&&(t=s=2);for(let a=e.length-1;a>=t;--a){let l=e.charCodeAt(a);if(M(l)){if(!o){s=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===46?r===-1?r=a:i!==1&&(i=1):r!==-1&&(i=-1)}return r===-1||n===-1||i===0||i===1&&r===n-1&&r===s+1?"":e.slice(r,n)},format:df.bind(null,"\\"),parse(e){oe(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.length,s=0,n=e.charCodeAt(0);if(r===1)return M(n)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(M(n)){if(s=1,M(e.charCodeAt(1))){let f=2,p=f;for(;f<r&&!M(e.charCodeAt(f));)f++;if(f<r&&f!==p){for(p=f;f<r&&M(e.charCodeAt(f));)f++;if(f<r&&f!==p){for(p=f;f<r&&!M(e.charCodeAt(f));)f++;f===r?s=f:f!==p&&(s=f+1)}}}}else if(Dt(n)&&e.charCodeAt(1)===58){if(r<=2)return t.root=t.dir=e,t;if(s=2,M(e.charCodeAt(2))){if(r===3)return t.root=t.dir=e,t;s=3}}s>0&&(t.root=e.slice(0,s));let o=-1,i=s,a=-1,l=!0,u=e.length-1,c=0;for(;u>=s;--u){if(n=e.charCodeAt(u),M(n)){if(!l){i=u+1;break}continue}a===-1&&(l=!1,a=u+1),n===46?o===-1?o=u:c!==1&&(c=1):o!==-1&&(c=-1)}return a!==-1&&(o===-1||c===0||c===1&&o===a-1&&o===i+1?t.base=t.name=e.slice(i,a):(t.name=e.slice(i,o),t.base=e.slice(i,a),t.ext=e.slice(o,a))),i>0&&i!==s?t.dir=e.slice(0,i-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},ft={resolve(...e){let t="",r=!1;for(let s=e.length-1;s>=-1&&!r;s--){let n=s>=0?e[s]:xs.cwd();oe(n,"path"),n.length!==0&&(t=`${n}/${t}`,r=n.charCodeAt(0)===47)}return t=Wn(t,!r,"/",ia),r?`/${t}`:t.length>0?t:"."},normalize(e){if(oe(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=Wn(e,!t,"/",ia),e.length===0?t?"/":r?"./":".":(r&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return oe(e,"path"),e.length>0&&e.charCodeAt(0)===47},join(...e){if(e.length===0)return".";let t;for(let r=0;r<e.length;++r){let s=e[r];oe(s,"path"),s.length>0&&(t===void 0?t=s:t+=`/${s}`)}return t===void 0?".":ft.normalize(t)},relative(e,t){if(oe(e,"from"),oe(t,"to"),e===t||(e=ft.resolve(e),t=ft.resolve(t),e===t))return"";let r=1,s=e.length,n=s-r,o=1,i=t.length-o,a=n<i?n:i,l=-1,u=0;for(;u<a;u++){let f=e.charCodeAt(r+u);if(f!==t.charCodeAt(o+u))break;f===47&&(l=u)}if(u===a)if(i>a){if(t.charCodeAt(o+u)===47)return t.slice(o+u+1);if(u===0)return t.slice(o+u)}else n>a&&(e.charCodeAt(r+u)===47?l=u:u===0&&(l=0));let c="";for(u=r+l+1;u<=s;++u)(u===s||e.charCodeAt(u)===47)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(o+l)}`},toNamespacedPath(e){return e},dirname(e){if(oe(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===47,r=-1,s=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===47){if(!s){r=n;break}}else s=!1;return r===-1?t?"/":".":t&&r===1?"//":e.slice(0,r)},basename(e,t){t!==void 0&&oe(t,"ext"),oe(e,"path");let r=0,s=-1,n=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,i=-1;for(let a=e.length-1;a>=0;--a){let l=e.charCodeAt(a);if(l===47){if(!n){r=a+1;break}}else i===-1&&(n=!1,i=a+1),o>=0&&(l===t.charCodeAt(o)?--o===-1&&(s=a):(o=-1,s=i))}return r===s?s=i:s===-1&&(s=e.length),e.slice(r,s)}for(let o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!n){r=o+1;break}}else s===-1&&(n=!1,s=o+1);return s===-1?"":e.slice(r,s)},extname(e){oe(e,"path");let t=-1,r=0,s=-1,n=!0,o=0;for(let i=e.length-1;i>=0;--i){let a=e.charCodeAt(i);if(a===47){if(!n){r=i+1;break}continue}s===-1&&(n=!1,s=i+1),a===46?t===-1?t=i:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||s===-1||o===0||o===1&&t===s-1&&t===r+1?"":e.slice(t,s)},format:df.bind(null,"/"),parse(e){oe(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.charCodeAt(0)===47,s;r?(t.root="/",s=1):s=0;let n=-1,o=0,i=-1,a=!0,l=e.length-1,u=0;for(;l>=s;--l){let c=e.charCodeAt(l);if(c===47){if(!a){o=l+1;break}continue}i===-1&&(a=!1,i=l+1),c===46?n===-1?n=l:u!==1&&(u=1):n!==-1&&(u=-1)}if(i!==-1){let c=o===0&&r?1:o;n===-1||u===0||u===1&&n===i-1&&n===o+1?t.base=t.name=e.slice(c,i):(t.name=e.slice(c,n),t.base=e.slice(c,i),t.ext=e.slice(n,i))}return o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ft.win32=nt.win32=nt;ft.posix=nt.posix=ft;nt._makeLong=nt.toNamespacedPath;ft._makeLong=ft.toNamespacedPath;mf.exports=xs.platform==="win32"?nt:ft});var aa=S(()=>{});var yf=S((FP,hf)=>{var Ev="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tv=(e,t=21)=>(r=t)=>{let s="",n=r;for(;n--;)s+=e[Math.random()*e.length|0];return s},xv=(e=21)=>{let t="",r=e;for(;r--;)t+=Ev[Math.random()*64|0];return t};hf.exports={nanoid:xv,customAlphabet:Tv}});var gf=S(()=>{});var ua=S((qP,bf)=>{"use strict";var{SourceMapConsumer:Sf,SourceMapGenerator:vf}=Bn(),{existsSync:wv,readFileSync:Rv}=gf(),{dirname:la,join:Nv}=qe();function Iv(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ws=class{constructor(t,r){if(r.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let s=r.map?r.map.prev:void 0,n=this.loadMap(r.from,s);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=la(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Sf(this.text)),this.consumerCache}decodeInline(t){let r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(n.test(t)||o.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||s.test(t))return Iv(t.substr(RegExp.lastMatch.length));let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!r)return;let s=t.lastIndexOf(r.pop()),n=t.indexOf("*/",s);s>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(s,n)))}loadFile(t){if(this.root=la(t),wv(t))return this.mapFile=t,Rv(t,"utf-8").toString().trim()}loadMap(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let s=r(t);if(s){let n=this.loadFile(s);if(!n)throw new Error("Unable to load previous source map: "+s.toString());return n}}else{if(r instanceof Sf)return vf.fromSourceMap(r).toString();if(r instanceof vf)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 s=this.annotation;return t&&(s=Nv(la(t),s)),this.loadFile(s)}}}startWith(t,r){return t?t.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};bf.exports=ws;ws.default=ws});var Rs=S(($P,Ef)=>{"use strict";var{SourceMapConsumer:Ov,SourceMapGenerator:Pv}=Bn(),{fileURLToPath:_f,pathToFileURL:zn}=aa(),{isAbsolute:pa,resolve:da}=qe(),{nanoid:Dv}=yf(),ca=ta(),Af=qn(),kv=ua(),fa=Symbol("fromOffsetCache"),Mv=!!(Ov&&Pv),Cf=!!(da&&pa),Tr=class{constructor(t,r={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!Cf||/^\w+:\/\//.test(r.from)||pa(r.from)?this.file=r.from:this.file=da(r.from)),Cf&&Mv){let s=new kv(this.css,r);if(s.text){this.map=s;let n=s.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Dv(6)+">"),this.map&&(this.map.file=this.from)}error(t,r,s,n={}){let o,i,a;if(r&&typeof r=="object"){let u=r,c=s;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);r=f.line,s=f.col}else r=u.line,s=u.column;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);i=f.line,a=f.col}else i=c.line,a=c.column}else if(!s){let u=this.fromOffset(r);r=u.line,s=u.col}let l=this.origin(r,s,i,a);return l?o=new Af(t,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):o=new Af(t,i===void 0?r:{column:s,line:r},i===void 0?s:{column:a,line:i},this.css,this.file,n.plugin),o.input={column:s,endColumn:a,endLine:i,line:r,source:this.css},this.file&&(zn&&(o.input.url=zn(this.file).toString()),o.input.file=this.file),o}fromOffset(t){let r,s;if(this[fa])s=this[fa];else{let o=this.css.split(`
`);s=new Array(o.length);let i=0;for(let a=0,l=o.length;a<l;a++)s[a]=i,i+=o[a].length+1;this[fa]=s}r=s[s.length-1];let n=0;if(t>=r)n=s.length-1;else{let o=s.length-2,i;for(;n<o;)if(i=n+(o-n>>1),t<s[i])o=i-1;else if(t>=s[i+1])n=i+1;else{n=i;break}}return{col:t-s[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:da(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,r,s,n){if(!this.map)return!1;let o=this.map.consumer(),i=o.originalPositionFor({column:r,line:t});if(!i.source)return!1;let a;typeof s=="number"&&(a=o.originalPositionFor({column:n,line:s}));let l;pa(i.source)?l=zn(i.source):l=new URL(i.source,this.map.consumer().sourceRoot||zn(this.map.mapFile));let u={column:i.column,endColumn:a&&a.column,endLine:a&&a.line,line:i.line,url:l.toString()};if(l.protocol==="file:")if(_f)u.file=_f(l);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(i.source);return c&&(u.source=c),u}toJSON(){let t={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(t[r]=this[r]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};Ef.exports=Tr;Tr.default=Tr;ca&&ca.registerInput&&ca.registerInput(Tr)});var ha=S((jP,If)=>{"use strict";var{SourceMapConsumer:xf,SourceMapGenerator:Gn}=Bn(),{dirname:Hn,relative:wf,resolve:Rf,sep:Nf}=qe(),{pathToFileURL:Tf}=aa(),Lv=Rs(),Fv=!!(xf&&Gn),Vv=!!(Hn&&Rf&&wf&&Nf),ma=class{constructor(t,r,s,n){this.stringify=t,this.mapOpts=s.map||{},this.root=r,this.opts=s,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),s=t.root||Hn(t.file),n;this.mapOpts.sourcesContent===!1?(n=new xf(t.text),n.sourcesContent&&(n.sourcesContent=null)):n=t.consumer(),this.map.applySourceMap(n,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Vv&&Fv&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,r=>{t+=r}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Gn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Gn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Gn({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,r=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,i;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(n.generated.line=t,n.generated.column=r-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),o=a.match(/\n/g),o?(t+=o.length,i=a.lastIndexOf(`
`),r=a.length-i):r+=a.length,l&&u!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=t,n.generated.column=r-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=t,n.generated.column=r-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let r=this.memoizedPaths.get(t);if(r)return r;let s=this.opts.to?Hn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=Hn(Rf(s,this.mapOpts.annotation)));let n=wf(s,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let r=t.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let t=new Lv(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(r=>{if(r.source){let s=r.source.input.from;if(s&&!t[s]){t[s]=!0;let n=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(n,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let r=this.memoizedFileURLs.get(t);if(r)return r;if(Tf){let s=Tf(t).toString();return this.memoizedFileURLs.set(t,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let r=this.memoizedURLs.get(t);if(r)return r;Nf==="\\"&&(t=t.replace(/\\/g,"/"));let s=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,s),s}};If.exports=ma});var xr=S((BP,Of)=>{"use strict";var Uv=Cs(),Ns=class extends Uv{constructor(t){super(t),this.type="comment"}};Of.exports=Ns;Ns.default=Ns});var kt=S((WP,qf)=>{"use strict";var{isClean:Pf,my:Df}=$n(),kf=Ts(),Mf=xr(),qv=Cs(),Lf,ya,ga,Ff;function Vf(e){return e.map(t=>(t.nodes&&(t.nodes=Vf(t.nodes)),delete t.source,t))}function Uf(e){if(e[Pf]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Uf(t)}var Je=class e extends qv{append(...t){for(let r of t){let s=this.normalize(r,this.last);for(let n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let r of this.nodes)r.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),s,n;for(;this.indexes[r]<this.proxyOf.nodes.length&&(s=this.indexes[r],n=t(this.proxyOf.nodes[s],s),n!==!1);)this.indexes[r]+=1;return delete this.indexes[r],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:t[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...s)=>t[r](...s.map(n=>typeof n=="function"?(o,i)=>n(o.toProxy(),i):n)):r==="every"||r==="some"?s=>t[r]((n,...o)=>s(n.toProxy(),...o)):r==="root"?()=>t.root().toProxy():r==="nodes"?t.nodes.map(s=>s.toProxy()):r==="first"||r==="last"?t[r].toProxy():t[r]:t[r]},set(t,r,s){return t[r]===s||(t[r]=s,(r==="name"||r==="params"||r==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,r){let s=this.index(t),n=this.normalize(r,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(let i of n)this.proxyOf.nodes.splice(s+1,0,i);let o;for(let i in this.indexes)o=this.indexes[i],s<o&&(this.indexes[i]=o+n.length);return this.markDirty(),this}insertBefore(t,r){let s=this.index(t),n=s===0?"prepend":!1,o=this.normalize(r,this.proxyOf.nodes[s],n).reverse();s=this.index(t);for(let a of o)this.proxyOf.nodes.splice(s,0,a);let i;for(let a in this.indexes)i=this.indexes[a],s<=i&&(this.indexes[a]=i+o.length);return this.markDirty(),this}normalize(t,r){if(typeof t=="string")t=Vf(Lf(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new kf(t)]}else if(t.selector)t=[new ya(t)];else if(t.name)t=[new ga(t)];else if(t.text)t=[new Mf(t)];else throw new Error("Unknown node type in node creation");return t.map(n=>(n[Df]||e.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Pf]&&Uf(n),typeof n.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(n.raws.before=r.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...t){t=t.reverse();for(let r of t){let s=this.normalize(r,this.first,"prepend").reverse();for(let n of s)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let s in this.indexes)r=this.indexes[s],r>=t&&(this.indexes[s]=r-1);return this.markDirty(),this}replaceValues(t,r,s){return s||(s=r,r={}),this.walkDecls(n=>{r.props&&!r.props.includes(n.prop)||r.fast&&!n.value.includes(r.fast)||(n.value=n.value.replace(t,s))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((r,s)=>{let n;try{n=t(r,s)}catch(o){throw r.addToError(o)}return n!==!1&&r.walk&&(n=r.walk(t)),n})}walkAtRules(t,r){return r?t instanceof RegExp?this.walk((s,n)=>{if(s.type==="atrule"&&t.test(s.name))return r(s,n)}):this.walk((s,n)=>{if(s.type==="atrule"&&s.name===t)return r(s,n)}):(r=t,this.walk((s,n)=>{if(s.type==="atrule")return r(s,n)}))}walkComments(t){return this.walk((r,s)=>{if(r.type==="comment")return t(r,s)})}walkDecls(t,r){return r?t instanceof RegExp?this.walk((s,n)=>{if(s.type==="decl"&&t.test(s.prop))return r(s,n)}):this.walk((s,n)=>{if(s.type==="decl"&&s.prop===t)return r(s,n)}):(r=t,this.walk((s,n)=>{if(s.type==="decl")return r(s,n)}))}walkRules(t,r){return r?t instanceof RegExp?this.walk((s,n)=>{if(s.type==="rule"&&t.test(s.selector))return r(s,n)}):this.walk((s,n)=>{if(s.type==="rule"&&s.selector===t)return r(s,n)}):(r=t,this.walk((s,n)=>{if(s.type==="rule")return r(s,n)}))}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]}};Je.registerParse=e=>{Lf=e};Je.registerRule=e=>{ya=e};Je.registerAtRule=e=>{ga=e};Je.registerRoot=e=>{Ff=e};qf.exports=Je;Je.default=Je;Je.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,ga.prototype):e.type==="rule"?Object.setPrototypeOf(e,ya.prototype):e.type==="decl"?Object.setPrototypeOf(e,kf.prototype):e.type==="comment"?Object.setPrototypeOf(e,Mf.prototype):e.type==="root"&&Object.setPrototypeOf(e,Ff.prototype),e[Df]=!0,e.nodes&&e.nodes.forEach(t=>{Je.rebuild(t)})}});var Qn=S((zP,Bf)=>{"use strict";var $v=kt(),$f,jf,Xt=class extends $v{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new $f(new jf,this,t).stringify()}};Xt.registerLazyResult=e=>{$f=e};Xt.registerProcessor=e=>{jf=e};Bf.exports=Xt;Xt.default=Xt});var Sa=S((GP,zf)=>{"use strict";var Wf={};zf.exports=function(t){Wf[t]||(Wf[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var va=S((HP,Gf)=>{"use strict";var Is=class{constructor(t,r={}){if(this.type="warning",this.text=t,r.node&&r.node.source){let s=r.node.rangeBy(r);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in r)this[s]=r[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Gf.exports=Is;Is.default=Is});var Kn=S((QP,Hf)=>{"use strict";var jv=va(),Os=class{constructor(t,r,s){this.processor=t,this.messages=[],this.root=r,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let s=new jv(t,r);return this.messages.push(s),s}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};Hf.exports=Os;Os.default=Os});var ba=S((KP,Kf)=>{"use strict";var Yn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Jn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Bv=/.[\r\n"'(/\\]/,Qf=/[\da-f]/i;Kf.exports=function(t,r={}){let s=t.css.valueOf(),n=r.ignoreErrors,o,i,a,l,u,c,f,p,d,m,g=s.length,h=0,b=[],E=[];function v(){return h}function I(B){throw t.error("Unclosed "+B,h)}function _(){return E.length===0&&h>=g}function O(B){if(E.length)return E.pop();if(h>=g)return;let st=B?B.ignoreUnclosed:!1;switch(o=s.charCodeAt(h),o){case 10:case 32:case 9:case 13:case 12:{i=h;do i+=1,o=s.charCodeAt(i);while(o===32||o===10||o===9||o===13||o===12);m=["space",s.slice(h,i)],h=i-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Kt=String.fromCharCode(o);m=[Kt,Kt,h];break}case 40:{if(p=b.length?b.pop()[1]:"",d=s.charCodeAt(h+1),p==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){i=h;do{if(c=!1,i=s.indexOf(")",i+1),i===-1)if(n||st){i=h;break}else I("bracket");for(f=i;s.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["brackets",s.slice(h,i+1),h,i],h=i}else i=s.indexOf(")",h+1),l=s.slice(h,i+1),i===-1||Bv.test(l)?m=["(","(",h]:(m=["brackets",l,h,i],h=i);break}case 39:case 34:{a=o===39?"'":'"',i=h;do{if(c=!1,i=s.indexOf(a,i+1),i===-1)if(n||st){i=h+1;break}else I("string");for(f=i;s.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["string",s.slice(h,i+1),h,i],h=i;break}case 64:{Yn.lastIndex=h+1,Yn.test(s),Yn.lastIndex===0?i=s.length-1:i=Yn.lastIndex-2,m=["at-word",s.slice(h,i+1),h,i],h=i;break}case 92:{for(i=h,u=!0;s.charCodeAt(i+1)===92;)i+=1,u=!u;if(o=s.charCodeAt(i+1),u&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(i+=1,Qf.test(s.charAt(i)))){for(;Qf.test(s.charAt(i+1));)i+=1;s.charCodeAt(i+1)===32&&(i+=1)}m=["word",s.slice(h,i+1),h,i],h=i;break}default:{o===47&&s.charCodeAt(h+1)===42?(i=s.indexOf("*/",h+2)+1,i===0&&(n||st?i=s.length:I("comment")),m=["comment",s.slice(h,i+1),h,i],h=i):(Jn.lastIndex=h+1,Jn.test(s),Jn.lastIndex===0?i=s.length-1:i=Jn.lastIndex-2,m=["word",s.slice(h,i+1),h,i],b.push(m),h=i);break}}return h++,m}function G(B){E.push(B)}return{back:G,endOfFile:_,nextToken:O,position:v}}});var Xn=S((YP,Jf)=>{"use strict";var Yf=kt(),wr=class extends Yf{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};Jf.exports=wr;wr.default=wr;Yf.registerAtRule(wr)});var Rr=S((JP,tp)=>{"use strict";var Xf=kt(),Zf,ep,Mt=class extends Xf{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,r,s){let n=super.normalize(t);if(r){if(s==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let o of n)o.raws.before=r.raws.before}return n}removeChild(t,r){let s=this.index(t);return!r&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(t)}toResult(t={}){return new Zf(new ep,this,t).stringify()}};Mt.registerLazyResult=e=>{Zf=e};Mt.registerProcessor=e=>{ep=e};tp.exports=Mt;Mt.default=Mt;Xf.registerRoot(Mt)});var _a=S((XP,rp)=>{"use strict";var Ps={comma(e){return Ps.split(e,[","],!0)},space(e){let t=[" ",`
`," "];return Ps.split(e,t)},split(e,t,r){let s=[],n="",o=!1,i=0,a=!1,l="",u=!1;for(let c of e)u?u=!1:c==="\\"?u=!0:a?c===l&&(a=!1):c==='"'||c==="'"?(a=!0,l=c):c==="("?i+=1:c===")"?i>0&&(i-=1):i===0&&t.includes(c)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=c;return(r||n!=="")&&s.push(n.trim()),s}};rp.exports=Ps;Ps.default=Ps});var Zn=S((ZP,np)=>{"use strict";var sp=kt(),Wv=_a(),Nr=class extends sp{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Wv.comma(this.selector)}set selectors(t){let r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}};np.exports=Nr;Nr.default=Nr;sp.registerRule(Nr)});var Ca=S((eD,ap)=>{"use strict";var zv=Ts(),Gv=ba(),Hv=xr(),Qv=Xn(),Kv=Rr(),op=Zn(),ip={empty:!0,space:!0};function Yv(e){for(let t=e.length-1;t>=0;t--){let r=e[t],s=r[3]||r[2];if(s)return s}}var Aa=class{constructor(t){this.input=t,this.root=new Kv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let r=new Qv;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);let s,n,o,i=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),s=t[0],s==="("||s==="["?u.push(s==="("?")":"]"):s==="{"&&u.length>0?u.push("}"):s===u[u.length-1]&&u.pop(),u.length===0)if(s===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){a=!0;break}else if(s==="}"){if(l.length>0){for(o=l.length-1,n=l[o];n&&n[0]==="space";)n=l[--o];n&&(r.source.end=this.getPosition(n[3]||n[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),i&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}checkMissedSemicolon(t){let r=this.colon(t);if(r===!1)return;let s=0,n;for(let o=r-1;o>=0&&(n=t[o],!(n[0]!=="space"&&(s+=1,s===2)));o--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(t){let r=0,s,n,o;for(let[i,a]of t.entries()){if(s=a,n=s[0],n==="("&&(r+=1),n===")"&&(r-=1),r===0&&n===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return i}o=s}return!1}comment(t){let r=new Hv;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;let s=t[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{let n=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=n[2],r.raws.left=n[1],r.raws.right=n[3]}}createTokenizer(){this.tokenizer=Gv(this.input)}decl(t,r){let s=new zv;this.init(s,t[0][2]);let n=t[t.length-1];for(n[0]===";"&&(this.semicolon=!0,t.pop()),s.source.end=this.getPosition(n[3]||n[2]||Yv(t)),s.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),s.raws.before+=t.shift()[1];for(s.source.start=this.getPosition(t[0][2]),s.prop="";t.length;){let u=t[0][0];if(u===":"||u==="space"||u==="comment")break;s.prop+=t.shift()[1]}s.raws.between="";let o;for(;t.length;)if(o=t.shift(),o[0]===":"){s.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),s.raws.between+=o[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let i=[],a;for(;t.length&&(a=t[0][0],!(a!=="space"&&a!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let u=t.length-1;u>=0;u--){if(o=t[u],o[1].toLowerCase()==="!important"){s.important=!0;let c=this.stringFrom(t,u);c=this.spacesFromEnd(t)+c,c!==" !important"&&(s.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=t.slice(0),f="";for(let p=u;p>0;p--){let d=c[p][0];if(f.trim().indexOf("!")===0&&d!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=f,t=c)}if(o[0]!=="space"&&o[0]!=="comment")break}t.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(s.raws.between+=i.map(u=>u[1]).join(""),i=[]),this.raw(s,"value",i.concat(t),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let r=new op;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[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(t){let r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}}init(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let r=!1,s=null,n=!1,o=null,i=[],a=t[1].startsWith("--"),l=[],u=t;for(;u;){if(s=u[0],l.push(u),s==="("||s==="[")o||(o=u),i.push(s==="("?")":"]");else if(a&&n&&s==="{")o||(o=u),i.push("}");else if(i.length===0)if(s===";")if(n){this.decl(l,a);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(n=!0);else s===i[i.length-1]&&(i.pop(),i.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),i.length>0&&this.unclosedBracket(o),r&&n){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,r,s,n){let o,i,a=s.length,l="",u=!0,c,f;for(let p=0;p<a;p+=1)o=s[p],i=o[0],i==="space"&&p===a-1&&!n?u=!1:i==="comment"?(f=s[p-1]?s[p-1][0]:"empty",c=s[p+1]?s[p+1][0]:"empty",!ip[f]&&!ip[c]?l.slice(-1)===","?u=!1:l+=o[1]:u=!1):l+=o[1];if(!u){let p=s.reduce((d,m)=>d+m[1],"");t.raws[r]={raw:p,value:l}}t[r]=l}rule(t){t.pop();let r=new op;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r}spacesAndCommentsFromEnd(t){let r,s="";for(;t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)s=t.pop()[1]+s;return s}spacesAndCommentsFromStart(t){let r,s="";for(;t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)s+=t.shift()[1];return s}spacesFromEnd(t){let r,s="";for(;t.length&&(r=t[t.length-1][0],r==="space");)s=t.pop()[1]+s;return s}stringFrom(t,r){let s="";for(let n=r;n<t.length;n++)s+=t[n][1];return t.splice(r,t.length-r),s}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})