import{i as L}from"./app-DTeOhhdM.js";var T={exports:{}},qe;function bt(){if(qe)return T.exports;qe=1;var m=String,v=function(){return{isColorSupported:!1,reset:m,bold:m,dim:m,italic:m,underline:m,inverse:m,hidden:m,strikethrough:m,black:m,red:m,green:m,yellow:m,blue:m,magenta:m,cyan:m,white:m,gray:m,bgBlack:m,bgRed:m,bgGreen:m,bgYellow:m,bgBlue:m,bgMagenta:m,bgCyan:m,bgWhite:m,blackBright:m,redBright:m,greenBright:m,yellowBright:m,blueBright:m,magentaBright:m,cyanBright:m,whiteBright:m,bgBlackBright:m,bgRedBright:m,bgGreenBright:m,bgYellowBright:m,bgBlueBright:m,bgMagentaBright:m,bgCyanBright:m,bgWhiteBright:m}};return T.exports=v(),T.exports.createColors=v,T.exports}var X,Ne;function Re(){if(Ne)return X;Ne=1;let m=bt(),v=L;class C extends Error{constructor(s,f,l,p,y,n){super(s),this.name="CssSyntaxError",this.reason=s,y&&(this.file=y),p&&(this.source=p),n&&(this.plugin=n),typeof f<"u"&&typeof l<"u"&&(typeof f=="number"?(this.line=f,this.column=l):(this.line=f.line,this.column=f.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,C)}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(s){if(!this.source)return"";let f=this.source;s==null&&(s=m.isColorSupported);let l=t=>t,p=t=>t,y=t=>t;if(s){let{bold:t,gray:o,red:a}=m.createColors(!0);p=u=>t(a(u)),l=u=>o(u),v&&(y=u=>v(u))}let n=f.split(/\r?\n/),e=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),r=String(i).length;return n.slice(e,i).map((t,o)=>{let a=e+1+o,u=" "+(" "+a).slice(-r)+" | ";if(a===this.line){if(t.length>160){let w=20,d=Math.max(0,this.column-w),c=Math.max(this.column+w,this.endColumn+w),h=t.slice(d,c),x=l(u.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return p(">")+l(u)+y(h)+`
 `+x+p("^")}let g=l(u.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+l(u)+y(t)+`
 `+g+p("^")}return" "+l(u)+y(t)}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return X=C,C.default=C,X}var Z,_e;function ut(){if(_e)return Z;_e=1;const m={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function v(b){return b[0].toUpperCase()+b.slice(1)}class C{constructor(s){this.builder=s}atrule(s,f){let l="@"+s.name,p=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?l+=s.raws.afterName:p&&(l+=" "),s.nodes)this.block(s,l+p);else{let y=(s.raws.between||"")+(f?";":"");this.builder(l+p+y,s)}}beforeAfter(s,f){let l;s.type==="decl"?l=this.raw(s,null,"beforeDecl"):s.type==="comment"?l=this.raw(s,null,"beforeComment"):f==="before"?l=this.raw(s,null,"beforeRule"):l=this.raw(s,null,"beforeClose");let p=s.parent,y=0;for(;p&&p.type!=="root";)y+=1,p=p.parent;if(l.includes(`
`)){let n=this.raw(s,null,"indent");if(n.length)for(let e=0;e<y;e++)l+=n}return l}block(s,f){let l=this.raw(s,"between","beforeOpen");this.builder(f+l+"{",s,"start");let p;s.nodes&&s.nodes.length?(this.body(s),p=this.raw(s,"after")):p=this.raw(s,"after","emptyBody"),p&&this.builder(p),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let l=this.raw(s,"semicolon");for(let p=0;p<s.nodes.length;p++){let y=s.nodes[p],n=this.raw(y,"before");n&&this.builder(n),this.stringify(y,f!==p||l)}}comment(s){let f=this.raw(s,"left","commentLeft"),l=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+l+"*/",s)}decl(s,f){let l=this.raw(s,"between","colon"),p=s.prop+l+this.rawValue(s,"value");s.important&&(p+=s.raws.important||" !important"),f&&(p+=";"),this.builder(p,s)}document(s){this.body(s)}raw(s,f,l){let p;if(l||(l=f),f&&(p=s.raws[f],typeof p<"u"))return p;let y=s.parent;if(l==="before"&&(!y||y.type==="root"&&y.first===s||y&&y.type==="document"))return"";if(!y)return m[l];let n=s.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[l]<"u")return n.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(s,l);{let e="raw"+v(l);this[e]?p=this[e](n,s):n.walk(i=>{if(p=i.raws[f],typeof p<"u")return!1})}return typeof p>"u"&&(p=m[l]),n.rawCache[l]=p,p}rawBeforeClose(s){let f;return s.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return f=l.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let l;return s.walkComments(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(f,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(s,f){let l;return s.walkDecls(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(f,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(s){let f;return s.walk(l=>{if(l.type!=="decl"&&(f=l.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(l=>{if(l.nodes&&(l.parent!==s||s.first!==l)&&typeof l.raws.before<"u")return f=l.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(l=>{if(typeof l.raws.between<"u")return f=l.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(l=>{if(l.nodes&&l.nodes.length===0&&(f=l.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(l=>{let p=l.parent;if(p&&p!==s&&p.parent&&p.parent===s&&typeof l.raws.before<"u"){let y=l.raws.before.split(`
`);return f=y[y.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(f=l.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let l=s[f],p=s.raws[f];return p&&p.value===l?p.raw:l}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Z=C,C.default=C,Z}var ee,ze;function j(){if(ze)return ee;ze=1;let m=ut();function v(C,b){new m(b).stringify(C)}return ee=v,v.default=v,ee}var W={},Fe;function Oe(){return Fe||(Fe=1,W.isClean=Symbol("isClean"),W.my=Symbol("my")),W}var te,De;function $(){if(De)return te;De=1;let m=Re(),v=ut(),C=j(),{isClean:b,my:s}=Oe();function f(y,n){let e=new y.constructor;for(let i in y){if(!Object.prototype.hasOwnProperty.call(y,i)||i==="proxyCache")continue;let r=y[i],t=typeof r;i==="parent"&&t==="object"?n&&(e[i]=n):i==="source"?e[i]=r:Array.isArray(r)?e[i]=r.map(o=>f(o,e)):(t==="object"&&r!==null&&(r=f(r)),e[i]=r)}return e}function l(y,n){if(n&&typeof n.offset<"u")return n.offset;let e=1,i=1,r=0;for(let t=0;t<y.length;t++){if(i===n.line&&e===n.column){r=t;break}y[t]===`
`?(e=1,i+=1):e+=1}return r}class p{get proxyOf(){return this}constructor(n={}){this.raws={},this[b]=!1,this[s]=!0;for(let e in n)if(e==="nodes"){this.nodes=[];for(let i of n[e])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[e]=n[e]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let e=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let e in n)this[e]=n[e];return this}before(n){return this.parent.insertBefore(this,n),this}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}clone(n={}){let e=f(this);for(let i in n)e[i]=n[i];return e}cloneAfter(n={}){let e=this.clone(n);return this.parent.insertAfter(this,e),e}cloneBefore(n={}){let e=this.clone(n);return this.parent.insertBefore(this,e),e}error(n,e={}){if(this.source){let{end:i,start:r}=this.rangeBy(e);return this.source.input.error(n,{column:r.column,line:r.line},{column:i.column,line:i.line},e)}return new m(n)}getProxyProcessor(){return{get(n,e){return e==="proxyOf"?n:e==="root"?()=>n.root().toProxy():n[e]},set(n,e,i){return n[e]===i||(n[e]=i,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&n.markDirty()),!0}}}markClean(){this[b]=!0}markDirty(){if(this[b]){this[b]=!1;let n=this;for(;n=n.parent;)n[b]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n={}){let e=this.source.start;if(n.index)e=this.positionInside(n.index);else if(n.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,t=i.slice(l(i,this.source.start),l(i,this.source.end)).indexOf(n.word);t!==-1&&(e=this.positionInside(t))}return e}positionInside(n){let e=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,t=l(r,this.source.start),o=t+n;for(let a=t;a<o;a++)r[a]===`
`?(e=1,i+=1):e+=1;return{column:e,line:i,offset:o}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:l(e,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(n.word){let o=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(n.word);o!==-1&&(i=this.positionInside(o),r=this.positionInside(o+n.word.length))}else n.start?i={column:n.start.column,line:n.start.line,offset:l(e,n.start)}:n.index&&(i=this.positionInside(n.index)),n.end?r={column:n.end.column,line:n.end.line,offset:l(e,n.end)}:typeof n.endIndex=="number"?r=this.positionInside(n.endIndex):n.index&&(r=this.positionInside(n.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line,offset:i.offset+1}),{end:r,start:i}}raw(n,e){return new v().raw(this,n,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let e=this,i=!1;for(let r of n)r===this?i=!0:i?(this.parent.insertAfter(e,r),e=r):this.parent.insertBefore(e,r);i||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,e){let i={},r=e==null;e=e||new Map;let t=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))i[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,e):u);else if(typeof a=="object"&&a.toJSON)i[o]=a.toJSON(null,e);else if(o==="source"){if(a==null)continue;let u=e.get(a.input);u==null&&(u=t,e.set(a.input,t),t++),i[o]={end:a.end,inputId:u,start:a.start}}else i[o]=a}return r&&(i.inputs=[...e.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=C){n.stringify&&(n=n.stringify);let e="";return n(this,i=>{e+=i}),e}warn(n,e,i={}){let r={node:this};for(let t in i)r[t]=i[t];return n.warn(e,r)}}return te=p,p.default=p,te}var re,Te;function G(){if(Te)return re;Te=1;let m=$();class v extends m{constructor(b){super(b),this.type="comment"}}return re=v,v.default=v,re}var ie,We;function J(){if(We)return ie;We=1;let m=$();class v extends m{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(b){b&&typeof b.value<"u"&&typeof b.value!="string"&&(b={...b,value:String(b.value)}),super(b),this.type="decl"}}return ie=v,v.default=v,ie}var se,je;function q(){if(je)return se;je=1;let m=G(),v=J(),C=$(),{isClean:b,my:s}=Oe(),f,l,p,y;function n(r){return r.map(t=>(t.nodes&&(t.nodes=n(t.nodes)),delete t.source,t))}function e(r){if(r[b]=!1,r.proxyOf.nodes)for(let t of r.proxyOf.nodes)e(t)}class i extends C{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]}append(...t){for(let o of t){let a=this.normalize(o,this.last);for(let u of a)this.proxyOf.nodes.push(u)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let o of this.nodes)o.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let o=this.getIterator(),a,u;for(;this.indexes[o]<this.proxyOf.nodes.length&&(a=this.indexes[o],u=t(this.proxyOf.nodes[a],a),u!==!1);)this.indexes[o]+=1;return delete this.indexes[o],u}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,o){return o==="proxyOf"?t:t[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?(...a)=>t[o](...a.map(u=>typeof u=="function"?(g,w)=>u(g.toProxy(),w):u)):o==="every"||o==="some"?a=>t[o]((u,...g)=>a(u.toProxy(),...g)):o==="root"?()=>t.root().toProxy():o==="nodes"?t.nodes.map(a=>a.toProxy()):o==="first"||o==="last"?t[o].toProxy():t[o]:t[o]},set(t,o,a){return t[o]===a||(t[o]=a,(o==="name"||o==="params"||o==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,o){let a=this.index(t),u=this.normalize(o,this.proxyOf.nodes[a]).reverse();a=this.index(t);for(let w of u)this.proxyOf.nodes.splice(a+1,0,w);let g;for(let w in this.indexes)g=this.indexes[w],a<g&&(this.indexes[w]=g+u.length);return this.markDirty(),this}insertBefore(t,o){let a=this.index(t),u=a===0?"prepend":!1,g=this.normalize(o,this.proxyOf.nodes[a],u).reverse();a=this.index(t);for(let d of g)this.proxyOf.nodes.splice(a,0,d);let w;for(let d in this.indexes)w=this.indexes[d],a<=w&&(this.indexes[d]=w+g.length);return this.markDirty(),this}normalize(t,o){if(typeof t=="string")t=n(l(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let u of t)u.parent&&u.parent.removeChild(u,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let u of t)u.parent&&u.parent.removeChild(u,"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 v(t)]}else if(t.selector||t.selectors)t=[new y(t)];else if(t.name)t=[new f(t)];else if(t.text)t=[new m(t)];else throw new Error("Unknown node type in node creation");return t.map(u=>(u[s]||i.rebuild(u),u=u.proxyOf,u.parent&&u.parent.removeChild(u),u[b]&&e(u),u.raws||(u.raws={}),typeof u.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(u.raws.before=o.raws.before.replace(/\S/g,"")),u.parent=this.proxyOf,u))}prepend(...t){t=t.reverse();for(let o of t){let a=this.normalize(o,this.first,"prepend").reverse();for(let u of a)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+a.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 o;for(let a in this.indexes)o=this.indexes[a],o>=t&&(this.indexes[a]=o-1);return this.markDirty(),this}replaceValues(t,o,a){return a||(a=o,o={}),this.walkDecls(u=>{o.props&&!o.props.includes(u.prop)||o.fast&&!u.value.includes(o.fast)||(u.value=u.value.replace(t,a))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((o,a)=>{let u;try{u=t(o,a)}catch(g){throw o.addToError(g)}return u!==!1&&o.walk&&(u=o.walk(t)),u})}walkAtRules(t,o){return o?t instanceof RegExp?this.walk((a,u)=>{if(a.type==="atrule"&&t.test(a.name))return o(a,u)}):this.walk((a,u)=>{if(a.type==="atrule"&&a.name===t)return o(a,u)}):(o=t,this.walk((a,u)=>{if(a.type==="atrule")return o(a,u)}))}walkComments(t){return this.walk((o,a)=>{if(o.type==="comment")return t(o,a)})}walkDecls(t,o){return o?t instanceof RegExp?this.walk((a,u)=>{if(a.type==="decl"&&t.test(a.prop))return o(a,u)}):this.walk((a,u)=>{if(a.type==="decl"&&a.prop===t)return o(a,u)}):(o=t,this.walk((a,u)=>{if(a.type==="decl")return o(a,u)}))}walkRules(t,o){return o?t instanceof RegExp?this.walk((a,u)=>{if(a.type==="rule"&&t.test(a.selector))return o(a,u)}):this.walk((a,u)=>{if(a.type==="rule"&&a.selector===t)return o(a,u)}):(o=t,this.walk((a,u)=>{if(a.type==="rule")return o(a,u)}))}}return i.registerParse=r=>{l=r},i.registerRule=r=>{y=r},i.registerAtRule=r=>{f=r},i.registerRoot=r=>{p=r},se=i,i.default=i,i.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,f.prototype):r.type==="rule"?Object.setPrototypeOf(r,y.prototype):r.type==="decl"?Object.setPrototypeOf(r,v.prototype):r.type==="comment"?Object.setPrototypeOf(r,m.prototype):r.type==="root"&&Object.setPrototypeOf(r,p.prototype),r[s]=!0,r.nodes&&r.nodes.forEach(t=>{i.rebuild(t)})},se}var ne,$e;function Ae(){if($e)return ne;$e=1;let m=q();class v extends m{constructor(b){super(b),this.type="atrule"}append(...b){return this.proxyOf.nodes||(this.nodes=[]),super.append(...b)}prepend(...b){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...b)}}return ne=v,v.default=v,m.registerAtRule(v),ne}var oe,Ge;function Ee(){if(Ge)return oe;Ge=1;let m=q(),v,C;class b extends m{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new v(new C,this,f).stringify()}}return b.registerLazyResult=s=>{v=s},b.registerProcessor=s=>{C=s},oe=b,b.default=b,oe}var le,Je;function xt(){if(Je)return le;Je=1;let m="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return le={nanoid:(b=21)=>{let s="",f=b|0;for(;f--;)s+=m[Math.random()*64|0];return s},customAlphabet:(b,s=21)=>(f=s)=>{let l="",p=f|0;for(;p--;)l+=b[Math.random()*b.length|0];return l}},le}var ae,Ve;function ft(){if(Ve)return ae;Ve=1;let{existsSync:m,readFileSync:v}=L,{dirname:C,join:b}=L,{SourceMapConsumer:s,SourceMapGenerator:f}=L;function l(y){return Buffer?Buffer.from(y,"base64").toString():window.atob(y)}class p{constructor(n,e){if(e.map===!1)return;this.loadAnnotation(n),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,r=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=C(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(n){let e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,t=/^data:application\/json,/,o=n.match(r)||n.match(t);if(o)return decodeURIComponent(n.substr(o[0].length));let a=n.match(e)||n.match(i);if(a)return l(n.substr(a[0].length));let u=n.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(n){return n.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(n){return typeof n!="object"?!1:typeof n.mappings=="string"||typeof n._mappings=="string"||Array.isArray(n.sections)}loadAnnotation(n){let e=n.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=n.lastIndexOf(e.pop()),r=n.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(n.substring(i,r)))}loadFile(n){if(this.root=C(n),m(n))return this.mapFile=n,v(n,"utf-8").toString().trim()}loadMap(n,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let i=e(n);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(e instanceof s)return f.fromSourceMap(e).toString();if(e instanceof f)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return n&&(i=b(C(n),i)),this.loadFile(i)}}}startWith(n,e){return n?n.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ae=p,p.default=p,ae}var ue,He;function V(){if(He)return ue;He=1;let{nanoid:m}=xt(),{isAbsolute:v,resolve:C}=L,{SourceMapConsumer:b,SourceMapGenerator:s}=L,{fileURLToPath:f,pathToFileURL:l}=L,p=Re(),y=ft(),n=L,e=Symbol("lineToIndexCache"),i=!!(b&&s),r=!!(C&&v);function t(a){if(a[e])return a[e];let u=a.css.split(`
`),g=new Array(u.length),w=0;for(let d=0,c=u.length;d<c;d++)g[d]=w,w+=u[d].length+1;return a[e]=g,g}class o{get from(){return this.file||this.id}constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!r||/^\w+:\/\//.test(g.from)||v(g.from)?this.file=g.from:this.file=C(g.from)),r&&i){let w=new y(this.css,g);if(w.text){this.map=w;let d=w.consumer().file;!this.file&&d&&(this.file=this.mapResolve(d))}}this.file||(this.id="<input css "+m(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,w,d={}){let c,h,x,S,E;if(g&&typeof g=="object"){let O=g,k=w;if(typeof O.offset=="number"){S=O.offset;let M=this.fromOffset(S);g=M.line,w=M.col}else g=O.line,w=O.column,S=this.fromLineAndColumn(g,w);if(typeof k.offset=="number"){x=k.offset;let M=this.fromOffset(x);h=M.line,c=M.col}else h=k.line,c=k.column,x=this.fromLineAndColumn(k.line,k.column)}else if(w)S=this.fromLineAndColumn(g,w);else{S=g;let O=this.fromOffset(S);g=O.line,w=O.col}let P=this.origin(g,w,h,c);return P?E=new p(u,P.endLine===void 0?P.line:{column:P.column,line:P.line},P.endLine===void 0?P.column:{column:P.endColumn,line:P.endLine},P.source,P.file,d.plugin):E=new p(u,h===void 0?g:{column:w,line:g},h===void 0?w:{column:c,line:h},this.css,this.file,d.plugin),E.input={column:w,endColumn:c,endLine:h,endOffset:x,line:g,offset:S,source:this.css},this.file&&(l&&(E.input.url=l(this.file).toString()),E.input.file=this.file),E}fromLineAndColumn(u,g){return t(this)[u-1]+g-1}fromOffset(u){let g=t(this),w=g[g.length-1],d=0;if(u>=w)d=g.length-1;else{let c=g.length-2,h;for(;d<c;)if(h=d+(c-d>>1),u<g[h])c=h-1;else if(u>=g[h+1])d=h+1;else{d=h;break}}return{col:u-g[d]+1,line:d+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:C(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,w,d){if(!this.map)return!1;let c=this.map.consumer(),h=c.originalPositionFor({column:g,line:u});if(!h.source)return!1;let x;typeof w=="number"&&(x=c.originalPositionFor({column:d,line:w}));let S;v(h.source)?S=l(h.source):S=new URL(h.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let E={column:h.column,endColumn:x&&x.column,endLine:x&&x.line,line:h.line,url:S.toString()};if(S.protocol==="file:")if(f)E.file=f(S);else throw new Error("file: protocol is not available in this PostCSS build");let P=c.sourceContentFor(h.source);return P&&(E.source=P),E}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}}return ue=o,o.default=o,n&&n.registerInput&&n.registerInput(o),ue}var fe,Qe;function z(){if(Qe)return fe;Qe=1;let m=q(),v,C;class b extends m{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,l,p){let y=super.normalize(f);if(l){if(p==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let n of y)n.raws.before=l.raws.before}return y}removeChild(f,l){let p=this.index(f);return!l&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(f)}toResult(f={}){return new v(new C,this,f).stringify()}}return b.registerLazyResult=s=>{v=s},b.registerProcessor=s=>{C=s},fe=b,b.default=b,m.registerRoot(b),fe}var he,Ye;function ht(){if(Ye)return he;Ye=1;let m={comma(v){return m.split(v,[","],!0)},space(v){let C=[" ",`
`,"	"];return m.split(v,C)},split(v,C,b){let s=[],f="",l=!1,p=0,y=!1,n="",e=!1;for(let i of v)e?e=!1:i==="\\"?e=!0:y?i===n&&(y=!1):i==='"'||i==="'"?(y=!0,n=i):i==="("?p+=1:i===")"?p>0&&(p-=1):p===0&&C.includes(i)&&(l=!0),l?(f!==""&&s.push(f.trim()),f="",l=!1):f+=i;return(b||f!=="")&&s.push(f.trim()),s}};return he=m,m.default=m,he}var ce,Ke;function Pe(){if(Ke)return ce;Ke=1;let m=q(),v=ht();class C extends m{get selectors(){return v.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,l=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(l)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return ce=C,C.default=C,m.registerRule(C),ce}var pe,Xe;function vt(){if(Xe)return pe;Xe=1;let m=Ae(),v=G(),C=J(),b=V(),s=ft(),f=z(),l=Pe();function p(y,n){if(Array.isArray(y))return y.map(r=>p(r));let{inputs:e,...i}=y;if(e){n=[];for(let r of e){let t={...r,__proto__:b.prototype};t.map&&(t.map={...t.map,__proto__:s.prototype}),n.push(t)}}if(i.nodes&&(i.nodes=y.nodes.map(r=>p(r,n))),i.source){let{inputId:r,...t}=i.source;i.source=t,r!=null&&(i.source.input=n[r])}if(i.type==="root")return new f(i);if(i.type==="decl")return new C(i);if(i.type==="rule")return new l(i);if(i.type==="comment")return new v(i);if(i.type==="atrule")return new m(i);throw new Error("Unknown node type: "+y.type)}return pe=p,p.default=p,pe}var de,Ze;function ct(){if(Ze)return de;Ze=1;let{dirname:m,relative:v,resolve:C,sep:b}=L,{SourceMapConsumer:s,SourceMapGenerator:f}=L,{pathToFileURL:l}=L,p=V(),y=!!(s&&f),n=!!(m&&C&&v&&b);class e{constructor(r,t,o,a){this.stringify=r,this.mapOpts=o.map||{},this.root=t,this.opts=o,this.css=a,this.originalCSS=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";let t=`
`;this.css.includes(`\r
`)&&(t=`\r
`),this.css+=t+"/*# sourceMappingURL="+r+" */"}applyPrevMaps(){for(let r of this.previous()){let t=this.toUrl(this.path(r.file)),o=r.root||m(r.file),a;this.mapOpts.sourcesContent===!1?(a=new s(r.text),a.sourcesContent&&(a.sourcesContent=null)):a=r.consumer(),this.map.applySourceMap(a,t,this.toUrl(this.path(o)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let r;for(let t=this.root.nodes.length-1;t>=0;t--)r=this.root.nodes[t],r.type==="comment"&&r.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),n&&y&&this.isMap())return this.generateMap();{let r="";return this.stringify(this.root,t=>{r+=t}),[r]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=f.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new f({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 f({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,t=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,g;this.stringify(this.root,(w,d,c)=>{if(this.css+=w,d&&c!=="end"&&(a.generated.line=r,a.generated.column=t-1,d.source&&d.source.start?(a.source=this.sourcePath(d),a.original.line=d.source.start.line,a.original.column=d.source.start.column-1,this.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,this.map.addMapping(a))),g=w.match(/\n/g),g?(r+=g.length,u=w.lastIndexOf(`
`),t=w.length-u):t+=w.length,d&&c!=="start"){let h=d.parent||{raws:{}};(!(d.type==="decl"||d.type==="atrule"&&!d.nodes)||d!==h.last||h.raws.semicolon)&&(d.source&&d.source.end?(a.source=this.sourcePath(d),a.original.line=d.source.end.line,a.original.column=d.source.end.column-1,a.generated.line=r,a.generated.column=t-2,this.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=t-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(r=>r.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(t=>t.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(r=>r.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;let t=this.memoizedPaths.get(r);if(t)return t;let o=this.opts.to?m(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=m(C(o,this.mapOpts.annotation)));let a=v(o,r);return this.memoizedPaths.set(r,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(r=>{if(r.source&&r.source.input.map){let t=r.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let r=new p(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps}setSourcesContent(){let r={};if(this.root)this.root.walk(t=>{if(t.source){let o=t.source.input.from;if(o&&!r[o]){r[o]=!0;let a=this.usesFileUrls?this.toFileUrl(o):this.toUrl(this.path(o));this.map.setSourceContent(a,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))}toBase64(r){return Buffer?Buffer.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))}toFileUrl(r){let t=this.memoizedFileURLs.get(r);if(t)return t;if(l){let o=l(r).toString();return this.memoizedFileURLs.set(r,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(r){let t=this.memoizedURLs.get(r);if(t)return t;b==="\\"&&(r=r.replace(/\\/g,"/"));let o=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,o),o}}return de=e,de}var me,et;function Ct(){if(et)return me;et=1;const m=39,v=34,C=92,b=47,s=10,f=32,l=12,p=9,y=13,n=91,e=93,i=40,r=41,t=123,o=125,a=59,u=42,g=58,w=64,d=/[\t\n\f\r "#'()/;[\\\]{}]/g,c=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,h=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return me=function(E,P={}){let O=E.css.valueOf(),k=P.ignoreErrors,M,H,F,R,Ie,I,U,N,B,Le,Ue=O.length,A=0,Q=[],D=[];function mt(){return A}function Y(_){throw E.error("Unclosed "+_,A)}function gt(){return D.length===0&&A>=Ue}function wt(_){if(D.length)return D.pop();if(A>=Ue)return;let K=_?_.ignoreUnclosed:!1;switch(M=O.charCodeAt(A),M){case s:case f:case p:case y:case l:{R=A;do R+=1,M=O.charCodeAt(R);while(M===f||M===s||M===p||M===y||M===l);I=["space",O.slice(A,R)],A=R-1;break}case n:case e:case t:case o:case g:case a:case r:{let Be=String.fromCharCode(M);I=[Be,Be,A];break}case i:{if(Le=Q.length?Q.pop()[1]:"",B=O.charCodeAt(A+1),Le==="url"&&B!==m&&B!==v&&B!==f&&B!==s&&B!==p&&B!==l&&B!==y){R=A;do{if(U=!1,R=O.indexOf(")",R+1),R===-1)if(k||K){R=A;break}else Y("bracket");for(N=R;O.charCodeAt(N-1)===C;)N-=1,U=!U}while(U);I=["brackets",O.slice(A,R+1),A,R],A=R}else R=O.indexOf(")",A+1),H=O.slice(A,R+1),R===-1||h.test(H)?I=["(","(",A]:(I=["brackets",H,A,R],A=R);break}case m:case v:{Ie=M===m?"'":'"',R=A;do{if(U=!1,R=O.indexOf(Ie,R+1),R===-1)if(k||K){R=A+1;break}else Y("string");for(N=R;O.charCodeAt(N-1)===C;)N-=1,U=!U}while(U);I=["string",O.slice(A,R+1),A,R],A=R;break}case w:{d.lastIndex=A+1,d.test(O),d.lastIndex===0?R=O.length-1:R=d.lastIndex-2,I=["at-word",O.slice(A,R+1),A,R],A=R;break}case C:{for(R=A,F=!0;O.charCodeAt(R+1)===C;)R+=1,F=!F;if(M=O.charCodeAt(R+1),F&&M!==b&&M!==f&&M!==s&&M!==p&&M!==y&&M!==l&&(R+=1,x.test(O.charAt(R)))){for(;x.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===f&&(R+=1)}I=["word",O.slice(A,R+1),A,R],A=R;break}default:{M===b&&O.charCodeAt(A+1)===u?(R=O.indexOf("*/",A+2)+1,R===0&&(k||K?R=O.length:Y("comment")),I=["comment",O.slice(A,R+1),A,R],A=R):(c.lastIndex=A+1,c.test(O),c.lastIndex===0?R=O.length-1:R=c.lastIndex-2,I=["word",O.slice(A,R+1),A,R],Q.push(I),A=R);break}}return A++,I}function yt(_){D.push(_)}return{back:yt,endOfFile:gt,nextToken:wt,position:mt}},me}var ge,tt;function St(){if(tt)return ge;tt=1;let m=Ae(),v=G(),C=J(),b=z(),s=Pe(),f=Ct();const l={empty:!0,space:!0};function p(n){for(let e=n.length-1;e>=0;e--){let i=n[e],r=i[3]||i[2];if(r)return r}}class y{constructor(e){this.input=e,this.root=new b,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new m;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let r,t,o,a=!1,u=!1,g=[],w=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?w.push(r==="("?")":"]"):r==="{"&&w.length>0?w.push("}"):r===w[w.length-1]&&w.pop(),w.length===0)if(r===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(g.length>0){for(o=g.length-1,t=g[o];t&&t[0]==="space";)t=g[--o];t&&(i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++)}this.end(e);break}else g.push(e);else g.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(i.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(i,"params",g),a&&(e=g[g.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),u&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let r=0,t;for(let o=i-1;o>=0&&(t=e[o],!(t[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",t[0]==="word"?t[3]+1:t[2])}colon(e){let i=0,r,t,o;for(let[a,u]of e.entries()){if(t=u,o=t[0],o==="("&&(i+=1),o===")"&&(i-=1),i===0&&o===":")if(!r)this.doubleColon(t);else{if(r[0]==="word"&&r[1]==="progid")continue;return a}r=t}return!1}comment(e){let i=new v;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))i.text="",i.raws.left=r,i.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/);i.text=t[2],i.raws.left=t[1],i.raws.right=t[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(e,i){let r=new C;this.init(r,e[0][2]);let t=e[e.length-1];for(t[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(t[3]||t[2]||p(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let w=e[0][0];if(w===":"||w==="space"||w==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let w=e.length-1;w>=0;w--){if(o=e[w],o[1].toLowerCase()==="!important"){r.important=!0;let d=this.stringFrom(e,w);d=this.spacesFromEnd(e)+d,d!==" !important"&&(r.raws.important=d);break}else if(o[1].toLowerCase()==="important"){let d=e.slice(0),c="";for(let h=w;h>0;h--){let x=d[h][0];if(c.trim().startsWith("!")&&x!=="space")break;c=d.pop()[1]+c}c.trim().startsWith("!")&&(r.important=!0,r.raws.important=c,e=d)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(r.raws.between+=a.map(w=>w[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),i),r.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new s;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}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.source.end.offset++,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,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(e[2]),i.source.end.offset+=i.raws.ownSemicolon.length)}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,r=null,t=!1,o=null,a=[],u=e[1].startsWith("--"),g=[],w=e;for(;w;){if(r=w[0],g.push(w),r==="("||r==="[")o||(o=w),a.push(r==="("?")":"]");else if(u&&t&&r==="{")o||(o=w),a.push("}");else if(a.length===0)if(r===";")if(t){this.decl(g,u);return}else break;else if(r==="{"){this.rule(g);return}else if(r==="}"){this.tokenizer.back(g.pop()),i=!0;break}else r===":"&&(t=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(o=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),a.length>0&&this.unclosedBracket(o),i&&t){if(!u)for(;g.length&&(w=g[g.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,u)}else this.unknownWord(g)}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()}precheckMissedSemicolon(){}raw(e,i,r,t){let o,a,u=r.length,g="",w=!0,d,c;for(let h=0;h<u;h+=1)o=r[h],a=o[0],a==="space"&&h===u-1&&!t?w=!1:a==="comment"?(c=r[h-1]?r[h-1][0]:"empty",d=r[h+1]?r[h+1][0]:"empty",!l[c]&&!l[d]?g.slice(-1)===","?w=!1:g+=o[1]:w=!1):g+=o[1];if(!w){let h=r.reduce((x,S)=>x+S[1],"");e.raws[i]={raw:h,value:g}}e[i]=g}rule(e){e.pop();let i=new s;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,r="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let i,r="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let i,r="";for(;e.length&&(i=e[e.length-1][0],i==="space");)r=e.pop()[1]+r;return r}stringFrom(e,i){let r="";for(let t=i;t<e.length;t++)r+=e[t][1];return e.splice(i,e.length-i),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}}return ge=y,ge}var we,rt;function Me(){if(rt)return we;rt=1;let m=q(),v=V(),C=St();function b(s,f){let l=new v(s,f),p=new C(l);try{p.parse()}catch(y){throw y}return p.root}return we=b,b.default=b,m.registerParse(b),we}var ye,it;function pt(){if(it)return ye;it=1;class m{constructor(C,b={}){if(this.type="warning",this.text=C,b.node&&b.node.source){let s=b.node.rangeBy(b);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in b)this[s]=b[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}}return ye=m,m.default=m,ye}var be,st;function ke(){if(st)return be;st=1;let m=pt();class v{get content(){return this.css}constructor(b,s,f){this.processor=b,this.messages=[],this.root=s,this.opts=f,this.css="",this.map=void 0}toString(){return this.css}warn(b,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new m(b,s);return this.messages.push(f),f}warnings(){return this.messages.filter(b=>b.type==="warning")}}return be=v,v.default=v,be}var xe,nt;function dt(){if(nt)return xe;nt=1;let m=q(),v=Ee(),C=ct(),b=Me(),s=ke(),f=z(),l=j(),{isClean:p,my:y}=Oe();const n={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function t(d){return typeof d=="object"&&typeof d.then=="function"}function o(d){let c=!1,h=n[d.type];return d.type==="decl"?c=d.prop.toLowerCase():d.type==="atrule"&&(c=d.name.toLowerCase()),c&&d.append?[h,h+"-"+c,r,h+"Exit",h+"Exit-"+c]:c?[h,h+"-"+c,h+"Exit",h+"Exit-"+c]:d.append?[h,r,h+"Exit"]:[h,h+"Exit"]}function a(d){let c;return d.type==="document"?c=["Document",r,"DocumentExit"]:d.type==="root"?c=["Root",r,"RootExit"]:c=o(d),{eventIndex:0,events:c,iterator:0,node:d,visitorIndex:0,visitors:[]}}function u(d){return d[p]=!1,d.nodes&&d.nodes.forEach(c=>u(c)),d}let g={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(c,h,x){this.stringified=!1,this.processed=!1;let S;if(typeof h=="object"&&h!==null&&(h.type==="root"||h.type==="document"))S=u(h);else if(h instanceof w||h instanceof s)S=u(h.root),h.map&&(typeof x.map>"u"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=h.map);else{let E=b;x.syntax&&(E=x.syntax.parse),x.parser&&(E=x.parser),E.parse&&(E=E.parse);try{S=E(h,x)}catch(P){this.processed=!0,this.error=P}S&&!S[y]&&m.rebuild(S)}this.result=new s(c,S,x),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(E=>typeof E=="object"&&E.prepare?{...E,...E.prepare(this.result)}:E)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(c,h){let x=this.result.lastPlugin;try{h&&h.addToError(c),this.error=c,c.name==="CssSyntaxError"&&!c.plugin?(c.plugin=x.postcssPlugin,c.setMessage()):x.postcssVersion}catch(S){console&&console.error&&console.error(S)}return c}prepareVisitors(){this.listeners={};let c=(h,x,S)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([h,S])};for(let h of this.plugins)if(typeof h=="object")for(let x in h){if(!e[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${h.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[x])if(typeof h[x]=="object")for(let S in h[x])S==="*"?c(h,x,h[x][S]):c(h,x+"-"+S.toLowerCase(),h[x][S]);else typeof h[x]=="function"&&c(h,x,h[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let c=0;c<this.plugins.length;c++){let h=this.plugins[c],x=this.runOnRoot(h);if(t(x))try{await x}catch(S){throw this.handleError(S)}}if(this.prepareVisitors(),this.hasListener){let c=this.result.root;for(;!c[p];){c[p]=!0;let h=[a(c)];for(;h.length>0;){let x=this.visitTick(h);if(t(x))try{await x}catch(S){let E=h[h.length-1].node;throw this.handleError(S,E)}}}if(this.listeners.OnceExit)for(let[h,x]of this.listeners.OnceExit){this.result.lastPlugin=h;try{if(c.type==="document"){let S=c.nodes.map(E=>x(E,this.helpers));await Promise.all(S)}else await x(c,this.helpers)}catch(S){throw this.handleError(S)}}}return this.processed=!0,this.stringify()}runOnRoot(c){this.result.lastPlugin=c;try{if(typeof c=="object"&&c.Once){if(this.result.root.type==="document"){let h=this.result.root.nodes.map(x=>c.Once(x,this.helpers));return t(h[0])?Promise.all(h):h}return c.Once(this.result.root,this.helpers)}else if(typeof c=="function")return c(this.result.root,this.result)}catch(h){throw this.handleError(h)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let c=this.result.opts,h=l;c.syntax&&(h=c.syntax.stringify),c.stringifier&&(h=c.stringifier),h.stringify&&(h=h.stringify);let S=new C(h,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let c of this.plugins){let h=this.runOnRoot(c);if(t(h))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let c=this.result.root;for(;!c[p];)c[p]=!0,this.walkSync(c);if(this.listeners.OnceExit)if(c.type==="document")for(let h of c.nodes)this.visitSync(this.listeners.OnceExit,h);else this.visitSync(this.listeners.OnceExit,c)}return this.result}then(c,h){return this.async().then(c,h)}toString(){return this.css}visitSync(c,h){for(let[x,S]of c){this.result.lastPlugin=x;let E;try{E=S(h,this.helpers)}catch(P){throw this.handleError(P,h.proxyOf)}if(h.type!=="root"&&h.type!=="document"&&!h.parent)return!0;if(t(E))throw this.getAsyncError()}}visitTick(c){let h=c[c.length-1],{node:x,visitors:S}=h;if(x.type!=="root"&&x.type!=="document"&&!x.parent){c.pop();return}if(S.length>0&&h.visitorIndex<S.length){let[P,O]=S[h.visitorIndex];h.visitorIndex+=1,h.visitorIndex===S.length&&(h.visitors=[],h.visitorIndex=0),this.result.lastPlugin=P;try{return O(x.toProxy(),this.helpers)}catch(k){throw this.handleError(k,x)}}if(h.iterator!==0){let P=h.iterator,O;for(;O=x.nodes[x.indexes[P]];)if(x.indexes[P]+=1,!O[p]){O[p]=!0,c.push(a(O));return}h.iterator=0,delete x.indexes[P]}let E=h.events;for(;h.eventIndex<E.length;){let P=E[h.eventIndex];if(h.eventIndex+=1,P===r){x.nodes&&x.nodes.length&&(x[p]=!0,h.iterator=x.getIterator());return}else if(this.listeners[P]){h.visitors=this.listeners[P];return}}c.pop()}walkSync(c){c[p]=!0;let h=o(c);for(let x of h)if(x===r)c.nodes&&c.each(S=>{S[p]||this.walkSync(S)});else{let S=this.listeners[x];if(S&&this.visitSync(S,c.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=d=>{g=d},xe=w,w.default=w,f.registerLazyResult(w),v.registerLazyResult(w),xe}var ve,ot;function Rt(){if(ot)return ve;ot=1;let m=ct(),v=Me();const C=ke();let b=j();class s{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=v;try{l=p(this._css,this._opts)}catch(y){this.error=y}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,p,y){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=y,this._map=void 0;let n,e=b;this.result=new C(this._processor,n,this._opts),this.result.css=p;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let r=new m(e,n,this._opts,p);if(r.isMap()){let[t,o]=r.generate();t&&(this.result.css=t),o&&(this.result.map=o)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}}return ve=s,s.default=s,ve}var Ce,lt;function Ot(){if(lt)return Ce;lt=1;let m=Ee(),v=dt(),C=Rt(),b=z();class s{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let p=[];for(let y of l)if(y.postcss===!0?y=y():y.postcss&&(y=y.postcss),typeof y=="object"&&Array.isArray(y.plugins))p=p.concat(y.plugins);else if(typeof y=="object"&&y.postcssPlugin)p.push(y);else if(typeof y=="function")p.push(y);else if(!(typeof y=="object"&&(y.parse||y.stringify)))throw new Error(y+" is not a PostCSS plugin");return p}process(l,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new C(this,l,p):new v(this,l,p)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return Ce=s,s.default=s,b.registerProcessor(s),m.registerProcessor(s),Ce}var Se,at;function Et(){if(at)return Se;at=1;var m={};let v=Ae(),C=G(),b=q(),s=Re(),f=J(),l=Ee(),p=vt(),y=V(),n=dt(),e=ht(),i=$(),r=Me(),t=Ot(),o=ke(),a=z(),u=Pe(),g=j(),w=pt();function d(...c){return c.length===1&&Array.isArray(c[0])&&(c=c[0]),new t(c)}return d.plugin=function(h,x){let S=!1;function E(...O){console&&console.warn&&!S&&(S=!0,console.warn(h+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),m.LANG&&m.LANG.startsWith("cn")&&console.warn(h+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let k=x(...O);return k.postcssPlugin=h,k.postcssVersion=new t().version,k}let P;return Object.defineProperty(E,"postcss",{get(){return P||(P=E()),P}}),E.process=function(O,k,M){return d([E(M)]).process(O,k)},E},d.stringify=g,d.parse=r,d.fromJSON=p,d.list=e,d.comment=c=>new C(c),d.atRule=c=>new v(c),d.decl=c=>new f(c),d.rule=c=>new u(c),d.root=c=>new a(c),d.document=c=>new l(c),d.CssSyntaxError=s,d.Declaration=f,d.Container=b,d.Processor=t,d.Document=l,d.Comment=C,d.Warning=w,d.AtRule=v,d.Result=o,d.Input=y,d.Rule=u,d.Root=a,d.Node=i,n.registerPostcss(d),Se=d,d.default=d,Se}export{bt as a,Et as r};
