UNPKG

@proofgeist/kit

Version:

Create web application with the ProofKit stack

25 lines (24 loc) 149 kB
import"./chunk-FEIY7W7S.js";var Hr=Object.create,vt=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Kr=Object.getPrototypeOf,Xr=Object.prototype.hasOwnProperty,E=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),Gt=(e,s)=>{for(var o in s)vt(e,o,{get:s[o],enumerable:!0})},Yr=(e,s,o,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let l of Qr(s))!Xr.call(e,l)&&l!==o&&vt(e,l,{get:()=>s[l],enumerable:!(i=Jr(s,l))||i.enumerable});return e},pe=(e,s,o)=>(o=e!=null?Hr(Kr(e)):{},Yr(s||!e||!e.__esModule?vt(o,"default",{value:e,enumerable:!0}):o,e)),Zr=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extract=r,e.parse=f,e.parseWithComments=h,e.print=d,e.strip=t;var s=/\*\/$/,o=/^\/\*\*?/,i=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,l=/(^|\s+)\/\/([^\r\n]*)/g,a=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,u=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g,n=[];function r(y){let g=y.match(i);return g?g[0].trimLeft():""}function t(y){let g=y.match(i);return g&&g[0]?y.substring(g[0].length):y}function f(y){return h(y).pragmas}function h(y){let g=` `;y=y.replace(o,"").replace(s,"").replace(m,"$1");let v="";for(;v!==y;)v=y,y=y.replace(c,`${g}$1 $2${g}`);y=y.replace(a,"").trimRight();let w=Object.create(null),x=y.replace(u,"").replace(a,"").trimRight(),b;for(;b=u.exec(y);){let T=b[2].replace(l,"");typeof w[b[1]]=="string"||Array.isArray(w[b[1]])?w[b[1]]=n.concat(w[b[1]],T):w[b[1]]=T}return{comments:x,pragmas:w}}function d({comments:y="",pragmas:g={}}){let v=` `,w="/**",x=" *",b=" */",T=Object.keys(g),k=T.flatMap(C=>p(C,g[C])).map(C=>`${x} ${C}${v}`).join("");if(!y){if(T.length===0)return"";if(T.length===1&&!Array.isArray(g[T[0]])){let C=g[T[0]];return`${w} ${p(T[0],C)[0]}${b}`}}let O=y.split(v).map(C=>`${x} ${C}`).join(v)+v;return w+v+(y?O:"")+(y&&T.length?x+v:"")+k+b}function p(y,g){return n.concat(g).map(v=>`@${y} ${v}`.trim())}}),yt=E((e,s)=>{"use strict";s.exports.isClean=Symbol("isClean"),s.exports.my=Symbol("my")}),es=E((e,s)=>{var o=String,i=function(){return{isColorSupported:!1,reset:o,bold:o,dim:o,italic:o,underline:o,inverse:o,hidden:o,strikethrough:o,black:o,red:o,green:o,yellow:o,blue:o,magenta:o,cyan:o,white:o,gray:o,bgBlack:o,bgRed:o,bgGreen:o,bgYellow:o,bgBlue:o,bgMagenta:o,bgCyan:o,bgWhite:o}};s.exports=i(),s.exports.createColors=i}),Ht=E(()=>{}),gt=E((e,s)=>{"use strict";var o=es(),i=Ht(),l=class Jt extends Error{constructor(c,u,m,n,r,t){super(c),this.name="CssSyntaxError",this.reason=c,r&&(this.file=r),n&&(this.source=n),t&&(this.plugin=t),typeof u<"u"&&typeof m<"u"&&(typeof u=="number"?(this.line=u,this.column=m):(this.line=u.line,this.column=u.column,this.endLine=m.line,this.endColumn=m.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Jt)}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(c){if(!this.source)return"";let u=this.source;c==null&&(c=o.isColorSupported),i&&c&&(u=i(u));let m=u.split(/\r?\n/),n=Math.max(this.line-3,0),r=Math.min(this.line+2,m.length),t=String(r).length,f,h;if(c){let{bold:d,gray:p,red:y}=o.createColors(!0);f=g=>d(y(g)),h=g=>p(g)}else f=h=d=>d;return m.slice(n,r).map((d,p)=>{let y=n+1+p,g=" "+(" "+y).slice(-t)+" | ";if(y===this.line){let v=h(g.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+h(g)+d+` `+v+f("^")}return" "+h(g)+d}).join(` `)}toString(){let c=this.showSourceCode();return c&&(c=` `+c+` `),this.name+": "+this.message+c}};s.exports=l,l.default=l}),wt=E((e,s)=>{"use strict";var o={after:` `,beforeClose:` `,beforeComment:` `,beforeDecl:` `,beforeOpen:" ",beforeRule:` `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(a){return a[0].toUpperCase()+a.slice(1)}var l=class{constructor(a){this.builder=a}atrule(a,c){let u="@"+a.name,m=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?u+=a.raws.afterName:m&&(u+=" "),a.nodes)this.block(a,u+m);else{let n=(a.raws.between||"")+(c?";":"");this.builder(u+m+n,a)}}beforeAfter(a,c){let u;a.type==="decl"?u=this.raw(a,null,"beforeDecl"):a.type==="comment"?u=this.raw(a,null,"beforeComment"):c==="before"?u=this.raw(a,null,"beforeRule"):u=this.raw(a,null,"beforeClose");let m=a.parent,n=0;for(;m&&m.type!=="root";)n+=1,m=m.parent;if(u.includes(` `)){let r=this.raw(a,null,"indent");if(r.length)for(let t=0;t<n;t++)u+=r}return u}block(a,c){let u=this.raw(a,"between","beforeOpen");this.builder(c+u+"{",a,"start");let m;a.nodes&&a.nodes.length?(this.body(a),m=this.raw(a,"after")):m=this.raw(a,"after","emptyBody"),m&&this.builder(m),this.builder("}",a,"end")}body(a){let c=a.nodes.length-1;for(;c>0&&a.nodes[c].type==="comment";)c-=1;let u=this.raw(a,"semicolon");for(let m=0;m<a.nodes.length;m++){let n=a.nodes[m],r=this.raw(n,"before");r&&this.builder(r),this.stringify(n,c!==m||u)}}comment(a){let c=this.raw(a,"left","commentLeft"),u=this.raw(a,"right","commentRight");this.builder("/*"+c+a.text+u+"*/",a)}decl(a,c){let u=this.raw(a,"between","colon"),m=a.prop+u+this.rawValue(a,"value");a.important&&(m+=a.raws.important||" !important"),c&&(m+=";"),this.builder(m,a)}document(a){this.body(a)}raw(a,c,u){let m;if(u||(u=c),c&&(m=a.raws[c],typeof m<"u"))return m;let n=a.parent;if(u==="before"&&(!n||n.type==="root"&&n.first===a||n&&n.type==="document"))return"";if(!n)return o[u];let r=a.root();if(r.rawCache||(r.rawCache={}),typeof r.rawCache[u]<"u")return r.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(a,u);{let t="raw"+i(u);this[t]?m=this[t](r,a):r.walk(f=>{if(m=f.raws[c],typeof m<"u")return!1})}return typeof m>"u"&&(m=o[u]),r.rawCache[u]=m,m}rawBeforeClose(a){let c;return a.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return c=u.raws.after,c.includes(` `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(a,c){let u;return a.walkComments(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(` `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(c,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(a,c){let u;return a.walkDecls(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(` `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(c,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(a){let c;return a.walk(u=>{if(u.type!=="decl"&&(c=u.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(a){let c;return a.walk(u=>{if(u.nodes&&(u.parent!==a||a.first!==u)&&typeof u.raws.before<"u")return c=u.raws.before,c.includes(` `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(a){let c;return a.walkDecls(u=>{if(typeof u.raws.between<"u")return c=u.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(a){let c;return a.walk(u=>{if(u.nodes&&u.nodes.length===0&&(c=u.raws.after,typeof c<"u"))return!1}),c}rawIndent(a){if(a.raws.indent)return a.raws.indent;let c;return a.walk(u=>{let m=u.parent;if(m&&m!==a&&m.parent&&m.parent===a&&typeof u.raws.before<"u"){let n=u.raws.before.split(` `);return c=n[n.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(a){let c;return a.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(c=u.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(a,c){let u=a[c],m=a.raws[c];return m&&m.value===u?m.raw:u}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,c){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,c)}};s.exports=l,l.default=l}),Xe=E((e,s)=>{"use strict";var o=wt();function i(l,a){new o(a).stringify(l)}s.exports=i,i.default=i}),Ye=E((e,s)=>{"use strict";var{isClean:o,my:i}=yt(),l=gt(),a=wt(),c=Xe();function u(n,r){let t=new n.constructor;for(let f in n){if(!Object.prototype.hasOwnProperty.call(n,f)||f==="proxyCache")continue;let h=n[f],d=typeof h;f==="parent"&&d==="object"?r&&(t[f]=r):f==="source"?t[f]=h:Array.isArray(h)?t[f]=h.map(p=>u(p,t)):(d==="object"&&h!==null&&(h=u(h)),t[f]=h)}return t}var m=class{constructor(n={}){this.raws={},this[o]=!1,this[i]=!0;for(let r in n)if(r==="nodes"){this.nodes=[];for(let t of n[r])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[r]=n[r]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let r=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let r in n)this[r]=n[r];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 r=u(this);for(let t in n)r[t]=n[t];return r}cloneAfter(n={}){let r=this.clone(n);return this.parent.insertAfter(this,r),r}cloneBefore(n={}){let r=this.clone(n);return this.parent.insertBefore(this,r),r}error(n,r={}){if(this.source){let{end:t,start:f}=this.rangeBy(r);return this.source.input.error(n,{column:f.column,line:f.line},{column:t.column,line:t.line},r)}return new l(n)}getProxyProcessor(){return{get(n,r){return r==="proxyOf"?n:r==="root"?()=>n.root().toProxy():n[r]},set(n,r,t){return n[r]===t||(n[r]=t,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&n.markDirty()),!0}}}markDirty(){if(this[o]){this[o]=!1;let n=this;for(;n=n.parent;)n[o]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n,r){let t=this.source.start;if(n.index)t=this.positionInside(n.index,r);else if(n.word){r=this.toString();let f=r.indexOf(n.word);f!==-1&&(t=this.positionInside(f,r))}return t}positionInside(n,r){let t=r||this.toString(),f=this.source.start.column,h=this.source.start.line;for(let d=0;d<n;d++)t[d]===` `?(f=1,h+=1):f+=1;return{column:f,line:h}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n){let r={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(n.word){let f=this.toString(),h=f.indexOf(n.word);h!==-1&&(r=this.positionInside(h,f),t=this.positionInside(h+n.word.length,f))}else n.start?r={column:n.start.column,line:n.start.line}:n.index&&(r=this.positionInside(n.index)),n.end?t={column:n.end.column,line:n.end.line}:typeof n.endIndex=="number"?t=this.positionInside(n.endIndex):n.index&&(t=this.positionInside(n.index+1));return(t.line<r.line||t.line===r.line&&t.column<=r.column)&&(t={column:r.column+1,line:r.line}),{end:t,start:r}}raw(n,r){return new a().raw(this,n,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let r=this,t=!1;for(let f of n)f===this?t=!0:t?(this.parent.insertAfter(r,f),r=f):this.parent.insertBefore(r,f);t||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,r){let t={},f=r==null;r=r||new Map;let h=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let p=this[d];if(Array.isArray(p))t[d]=p.map(y=>typeof y=="object"&&y.toJSON?y.toJSON(null,r):y);else if(typeof p=="object"&&p.toJSON)t[d]=p.toJSON(null,r);else if(d==="source"){let y=r.get(p.input);y==null&&(y=h,r.set(p.input,h),h++),t[d]={end:p.end,inputId:y,start:p.start}}else t[d]=p}return f&&(t.inputs=[...r.keys()].map(d=>d.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=c){n.stringify&&(n=n.stringify);let r="";return n(this,t=>{r+=t}),r}warn(n,r,t){let f={node:this};for(let h in t)f[h]=t[h];return n.warn(r,f)}get proxyOf(){return this}};s.exports=m,m.default=m}),Ze=E((e,s)=>{"use strict";var o=Ye(),i=class extends o{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};s.exports=i,i.default=i}),Pe=E((e,s)=>{"use strict";var o=Ye(),i=class extends o{constructor(l){super(l),this.type="comment"}};s.exports=i,i.default=i}),he=E((e,s)=>{"use strict";var{isClean:o,my:i}=yt(),l=Ze(),a=Pe(),c=Ye(),u,m,n,r;function t(d){return d.map(p=>(p.nodes&&(p.nodes=t(p.nodes)),delete p.source,p))}function f(d){if(d[o]=!1,d.proxyOf.nodes)for(let p of d.proxyOf.nodes)f(p)}var h=class Qt extends c{append(...p){for(let y of p){let g=this.normalize(y,this.last);for(let v of g)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let y of this.nodes)y.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let y=this.getIterator(),g,v;for(;this.indexes[y]<this.proxyOf.nodes.length&&(g=this.indexes[y],v=p(this.proxyOf.nodes[g],g),v!==!1);)this.indexes[y]+=1;return delete this.indexes[y],v}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,y){return y==="proxyOf"?p:p[y]?y==="each"||typeof y=="string"&&y.startsWith("walk")?(...g)=>p[y](...g.map(v=>typeof v=="function"?(w,x)=>v(w.toProxy(),x):v)):y==="every"||y==="some"?g=>p[y]((v,...w)=>g(v.toProxy(),...w)):y==="root"?()=>p.root().toProxy():y==="nodes"?p.nodes.map(g=>g.toProxy()):y==="first"||y==="last"?p[y].toProxy():p[y]:p[y]},set(p,y,g){return p[y]===g||(p[y]=g,(y==="name"||y==="params"||y==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,y){let g=this.index(p),v=this.normalize(y,this.proxyOf.nodes[g]).reverse();g=this.index(p);for(let x of v)this.proxyOf.nodes.splice(g+1,0,x);let w;for(let x in this.indexes)w=this.indexes[x],g<w&&(this.indexes[x]=w+v.length);return this.markDirty(),this}insertBefore(p,y){let g=this.index(p),v=g===0?"prepend":!1,w=this.normalize(y,this.proxyOf.nodes[g],v).reverse();g=this.index(p);for(let b of w)this.proxyOf.nodes.splice(g,0,b);let x;for(let b in this.indexes)x=this.indexes[b],g<=x&&(this.indexes[b]=x+w.length);return this.markDirty(),this}normalize(p,y){if(typeof p=="string")p=t(u(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let g of p)g.parent&&g.parent.removeChild(g,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let g of p)g.parent&&g.parent.removeChild(g,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new l(p)]}else if(p.selector)p=[new m(p)];else if(p.name)p=[new n(p)];else if(p.text)p=[new a(p)];else throw new Error("Unknown node type in node creation");return p.map(g=>(g[i]||Qt.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&f(g),typeof g.raws.before>"u"&&y&&typeof y.raws.before<"u"&&(g.raws.before=y.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...p){p=p.reverse();for(let y of p){let g=this.normalize(y,this.first,"prepend").reverse();for(let v of g)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+g.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let y;for(let g in this.indexes)y=this.indexes[g],y>=p&&(this.indexes[g]=y-1);return this.markDirty(),this}replaceValues(p,y,g){return g||(g=y,y={}),this.walkDecls(v=>{y.props&&!y.props.includes(v.prop)||y.fast&&!v.value.includes(y.fast)||(v.value=v.value.replace(p,g))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((y,g)=>{let v;try{v=p(y,g)}catch(w){throw y.addToError(w)}return v!==!1&&y.walk&&(v=y.walk(p)),v})}walkAtRules(p,y){return y?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="atrule"&&p.test(g.name))return y(g,v)}):this.walk((g,v)=>{if(g.type==="atrule"&&g.name===p)return y(g,v)}):(y=p,this.walk((g,v)=>{if(g.type==="atrule")return y(g,v)}))}walkComments(p){return this.walk((y,g)=>{if(y.type==="comment")return p(y,g)})}walkDecls(p,y){return y?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="decl"&&p.test(g.prop))return y(g,v)}):this.walk((g,v)=>{if(g.type==="decl"&&g.prop===p)return y(g,v)}):(y=p,this.walk((g,v)=>{if(g.type==="decl")return y(g,v)}))}walkRules(p,y){return y?p instanceof RegExp?this.walk((g,v)=>{if(g.type==="rule"&&p.test(g.selector))return y(g,v)}):this.walk((g,v)=>{if(g.type==="rule"&&g.selector===p)return y(g,v)}):(y=p,this.walk((g,v)=>{if(g.type==="rule")return y(g,v)}))}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]}};h.registerParse=d=>{u=d},h.registerRule=d=>{m=d},h.registerAtRule=d=>{n=d},h.registerRoot=d=>{r=d},s.exports=h,h.default=h,h.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,n.prototype):d.type==="rule"?Object.setPrototypeOf(d,m.prototype):d.type==="decl"?Object.setPrototypeOf(d,l.prototype):d.type==="comment"?Object.setPrototypeOf(d,a.prototype):d.type==="root"&&Object.setPrototypeOf(d,r.prototype),d[i]=!0,d.nodes&&d.nodes.forEach(p=>{h.rebuild(p)})}}),bt=E((e,s)=>{"use strict";var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,i=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,a=/[\da-f]/i;s.exports=function(c,u={}){let m=c.css.valueOf(),n=u.ignoreErrors,r,t,f,h,d,p,y,g,v,w,x=m.length,b=0,T=[],k=[];function O(){return b}function C(M){throw c.error("Unclosed "+M,b)}function A(){return k.length===0&&b>=x}function P(M){if(k.length)return k.pop();if(b>=x)return;let R=M?M.ignoreUnclosed:!1;switch(r=m.charCodeAt(b),r){case 10:case 32:case 9:case 13:case 12:{t=b;do t+=1,r=m.charCodeAt(t);while(r===32||r===10||r===9||r===13||r===12);w=["space",m.slice(b,t)],b=t-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let $=String.fromCharCode(r);w=[$,$,b];break}case 40:{if(g=T.length?T.pop()[1]:"",v=m.charCodeAt(b+1),g==="url"&&v!==39&&v!==34&&v!==32&&v!==10&&v!==9&&v!==12&&v!==13){t=b;do{if(p=!1,t=m.indexOf(")",t+1),t===-1)if(n||R){t=b;break}else C("bracket");for(y=t;m.charCodeAt(y-1)===92;)y-=1,p=!p}while(p);w=["brackets",m.slice(b,t+1),b,t],b=t}else t=m.indexOf(")",b+1),h=m.slice(b,t+1),t===-1||l.test(h)?w=["(","(",b]:(w=["brackets",h,b,t],b=t);break}case 39:case 34:{f=r===39?"'":'"',t=b;do{if(p=!1,t=m.indexOf(f,t+1),t===-1)if(n||R){t=b+1;break}else C("string");for(y=t;m.charCodeAt(y-1)===92;)y-=1,p=!p}while(p);w=["string",m.slice(b,t+1),b,t],b=t;break}case 64:{o.lastIndex=b+1,o.test(m),o.lastIndex===0?t=m.length-1:t=o.lastIndex-2,w=["at-word",m.slice(b,t+1),b,t],b=t;break}case 92:{for(t=b,d=!0;m.charCodeAt(t+1)===92;)t+=1,d=!d;if(r=m.charCodeAt(t+1),d&&r!==47&&r!==32&&r!==10&&r!==9&&r!==13&&r!==12&&(t+=1,a.test(m.charAt(t)))){for(;a.test(m.charAt(t+1));)t+=1;m.charCodeAt(t+1)===32&&(t+=1)}w=["word",m.slice(b,t+1),b,t],b=t;break}default:{r===47&&m.charCodeAt(b+1)===42?(t=m.indexOf("*/",b+2)+1,t===0&&(n||R?t=m.length:C("comment")),w=["comment",m.slice(b,t+1),b,t],b=t):(i.lastIndex=b+1,i.test(m),i.lastIndex===0?t=m.length-1:t=i.lastIndex-2,w=["word",m.slice(b,t+1),b,t],T.push(w),b=t);break}}return b++,w}function N(M){k.push(M)}return{back:N,endOfFile:A,nextToken:P,position:O}}}),xt=E((e,s)=>{"use strict";var o=he(),i=class extends o{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}};s.exports=i,i.default=i,o.registerAtRule(i)}),$e=E((e,s)=>{"use strict";var o=he(),i,l,a=class extends o{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,u,m){let n=super.normalize(c);if(u){if(m==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let r of n)r.raws.before=u.raws.before}return n}removeChild(c,u){let m=this.index(c);return!u&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new l,this,c).stringify()}};a.registerLazyResult=c=>{i=c},a.registerProcessor=c=>{l=c},s.exports=a,a.default=a,o.registerRoot(a)}),Kt=E((e,s)=>{"use strict";var o={comma(i){return o.split(i,[","],!0)},space(i){let l=[" ",` `," "];return o.split(i,l)},split(i,l,a){let c=[],u="",m=!1,n=0,r=!1,t="",f=!1;for(let h of i)f?f=!1:h==="\\"?f=!0:r?h===t&&(r=!1):h==='"'||h==="'"?(r=!0,t=h):h==="("?n+=1:h===")"?n>0&&(n-=1):n===0&&l.includes(h)&&(m=!0),m?(u!==""&&c.push(u.trim()),u="",m=!1):u+=h;return(a||u!=="")&&c.push(u.trim()),c}};s.exports=o,o.default=o}),kt=E((e,s)=>{"use strict";var o=he(),i=Kt(),l=class extends o{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(a){let c=this.selector?this.selector.match(/,\s*/):null,u=c?c[0]:","+this.raw("between","beforeOpen");this.selector=a.join(u)}};s.exports=l,l.default=l,o.registerRule(l)}),Ot=E((e,s)=>{"use strict";var o=Ze(),i=bt(),l=Pe(),a=xt(),c=$e(),u=kt(),m={empty:!0,space:!0};function n(t){for(let f=t.length-1;f>=0;f--){let h=t[f],d=h[3]||h[2];if(d)return d}}var r=class{constructor(t){this.input=t,this.root=new c,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 f=new a;f.name=t[1].slice(1),f.name===""&&this.unnamedAtrule(f,t),this.init(f,t[2]);let h,d,p,y=!1,g=!1,v=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),h=t[0],h==="("||h==="["?w.push(h==="("?")":"]"):h==="{"&&w.length>0?w.push("}"):h===w[w.length-1]&&w.pop(),w.length===0)if(h===";"){f.source.end=this.getPosition(t[2]),f.source.end.offset++,this.semicolon=!0;break}else if(h==="{"){g=!0;break}else if(h==="}"){if(v.length>0){for(p=v.length-1,d=v[p];d&&d[0]==="space";)d=v[--p];d&&(f.source.end=this.getPosition(d[3]||d[2]),f.source.end.offset++)}this.end(t);break}else v.push(t);else v.push(t);if(this.tokenizer.endOfFile()){y=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(f.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(f,"params",v),y&&(t=v[v.length-1],f.source.end=this.getPosition(t[3]||t[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(t){let f=this.colon(t);if(f===!1)return;let h=0,d;for(let p=f-1;p>=0&&(d=t[p],!(d[0]!=="space"&&(h+=1,h===2)));p--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(t){let f=0,h,d,p;for(let[y,g]of t.entries()){if(h=g,d=h[0],d==="("&&(f+=1),d===")"&&(f-=1),f===0&&d===":")if(!p)this.doubleColon(h);else{if(p[0]==="word"&&p[1]==="progid")continue;return y}p=h}return!1}comment(t){let f=new l;this.init(f,t[2]),f.source.end=this.getPosition(t[3]||t[2]),f.source.end.offset++;let h=t[1].slice(2,-2);if(/^\s*$/.test(h))f.text="",f.raws.left=h,f.raws.right="";else{let d=h.match(/^(\s*)([^]*\S)(\s*)$/);f.text=d[2],f.raws.left=d[1],f.raws.right=d[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,f){let h=new o;this.init(h,t[0][2]);let d=t[t.length-1];for(d[0]===";"&&(this.semicolon=!0,t.pop()),h.source.end=this.getPosition(d[3]||d[2]||n(t)),h.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),h.raws.before+=t.shift()[1];for(h.source.start=this.getPosition(t[0][2]),h.prop="";t.length;){let v=t[0][0];if(v===":"||v==="space"||v==="comment")break;h.prop+=t.shift()[1]}h.raws.between="";let p;for(;t.length;)if(p=t.shift(),p[0]===":"){h.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),h.raws.between+=p[1];(h.prop[0]==="_"||h.prop[0]==="*")&&(h.raws.before+=h.prop[0],h.prop=h.prop.slice(1));let y=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)y.push(t.shift());this.precheckMissedSemicolon(t);for(let v=t.length-1;v>=0;v--){if(p=t[v],p[1].toLowerCase()==="!important"){h.important=!0;let w=this.stringFrom(t,v);w=this.spacesFromEnd(t)+w,w!==" !important"&&(h.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=t.slice(0),x="";for(let b=v;b>0;b--){let T=w[b][0];if(x.trim().indexOf("!")===0&&T!=="space")break;x=w.pop()[1]+x}x.trim().indexOf("!")===0&&(h.important=!0,h.raws.important=x,t=w)}if(p[0]!=="space"&&p[0]!=="comment")break}t.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(h.raws.between+=y.map(v=>v[1]).join(""),y=[]),this.raw(h,"value",y.concat(t),f),h.value.includes(":")&&!f&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let f=new u;this.init(f,t[2]),f.selector="",f.raws.between="",this.current=f}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 f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let f=this.input.fromOffset(t);return{column:f.col,line:f.line,offset:t}}init(t,f){this.current.push(t),t.source={input:this.input,start:this.getPosition(f)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let f=!1,h=null,d=!1,p=null,y=[],g=t[1].startsWith("--"),v=[],w=t;for(;w;){if(h=w[0],v.push(w),h==="("||h==="[")p||(p=w),y.push(h==="("?")":"]");else if(g&&d&&h==="{")p||(p=w),y.push("}");else if(y.length===0)if(h===";")if(d){this.decl(v,g);return}else break;else if(h==="{"){this.rule(v);return}else if(h==="}"){this.tokenizer.back(v.pop()),f=!0;break}else h===":"&&(d=!0);else h===y[y.length-1]&&(y.pop(),y.length===0&&(p=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),y.length>0&&this.unclosedBracket(p),f&&d){if(!g)for(;v.length&&(w=v[v.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}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,f,h,d){let p,y,g=h.length,v="",w=!0,x,b;for(let T=0;T<g;T+=1)p=h[T],y=p[0],y==="space"&&T===g-1&&!d?w=!1:y==="comment"?(b=h[T-1]?h[T-1][0]:"empty",x=h[T+1]?h[T+1][0]:"empty",!m[b]&&!m[x]?v.slice(-1)===","?w=!1:v+=p[1]:w=!1):v+=p[1];if(!w){let T=h.reduce((k,O)=>k+O[1],"");t.raws[f]={raw:T,value:v}}t[f]=v}rule(t){t.pop();let f=new u;this.init(f,t[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(f,"selector",t),this.current=f}spacesAndCommentsFromEnd(t){let f,h="";for(;t.length&&(f=t[t.length-1][0],!(f!=="space"&&f!=="comment"));)h=t.pop()[1]+h;return h}spacesAndCommentsFromStart(t){let f,h="";for(;t.length&&(f=t[0][0],!(f!=="space"&&f!=="comment"));)h+=t.shift()[1];return h}spacesFromEnd(t){let f,h="";for(;t.length&&(f=t[t.length-1][0],f==="space");)h=t.pop()[1]+h;return h}stringFrom(t,f){let h="";for(let d=f;d<t.length;d++)h+=t[d][1];return t.splice(f,t.length-f),h}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})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}};s.exports=r}),ts=E(()=>{}),rs=E((e,s)=>{var o="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",i=(a,c=21)=>(u=c)=>{let m="",n=u;for(;n--;)m+=a[Math.random()*a.length|0];return m},l=(a=21)=>{let c="",u=a;for(;u--;)c+=o[Math.random()*64|0];return c};s.exports={nanoid:l,customAlphabet:i}}),Xt=E((e,s)=>{s.exports=class{}}),Me=E((e,s)=>{"use strict";var{SourceMapConsumer:o,SourceMapGenerator:i}=ts(),{fileURLToPath:l,pathToFileURL:a}={},{isAbsolute:c,resolve:u}={},{nanoid:m}=rs(),n=Ht(),r=gt(),t=Xt(),f=Symbol("fromOffsetCache"),h=!!(o&&i),d=!!(u&&c),p=class{constructor(y,g={}){if(y===null||typeof y>"u"||typeof y=="object"&&!y.toString)throw new Error(`PostCSS received ${y} instead of CSS string`);if(this.css=y.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!d||/^\w+:\/\//.test(g.from)||c(g.from)?this.file=g.from:this.file=u(g.from)),d&&h){let v=new t(this.css,g);if(v.text){this.map=v;let w=v.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+m(6)+">"),this.map&&(this.map.file=this.from)}error(y,g,v,w={}){let x,b,T;if(g&&typeof g=="object"){let O=g,C=v;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);g=A.line,v=A.col}else g=O.line,v=O.column;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);b=A.line,T=A.col}else b=C.line,T=C.column}else if(!v){let O=this.fromOffset(g);g=O.line,v=O.col}let k=this.origin(g,v,b,T);return k?x=new r(y,k.endLine===void 0?k.line:{column:k.column,line:k.line},k.endLine===void 0?k.column:{column:k.endColumn,line:k.endLine},k.source,k.file,w.plugin):x=new r(y,b===void 0?g:{column:v,line:g},b===void 0?v:{column:T,line:b},this.css,this.file,w.plugin),x.input={column:v,endColumn:T,endLine:b,line:g,source:this.css},this.file&&(a&&(x.input.url=a(this.file).toString()),x.input.file=this.file),x}fromOffset(y){let g,v;if(this[f])v=this[f];else{let x=this.css.split(` `);v=new Array(x.length);let b=0;for(let T=0,k=x.length;T<k;T++)v[T]=b,b+=x[T].length+1;this[f]=v}g=v[v.length-1];let w=0;if(y>=g)w=v.length-1;else{let x=v.length-2,b;for(;w<x;)if(b=w+(x-w>>1),y<v[b])x=b-1;else if(y>=v[b+1])w=b+1;else{w=b;break}}return{col:y-v[w]+1,line:w+1}}mapResolve(y){return/^\w+:\/\//.test(y)?y:u(this.map.consumer().sourceRoot||this.map.root||".",y)}origin(y,g,v,w){if(!this.map)return!1;let x=this.map.consumer(),b=x.originalPositionFor({column:g,line:y});if(!b.source)return!1;let T;typeof v=="number"&&(T=x.originalPositionFor({column:w,line:v}));let k;c(b.source)?k=a(b.source):k=new URL(b.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let O={column:b.column,endColumn:T&&T.column,endLine:T&&T.line,line:b.line,url:k.toString()};if(k.protocol==="file:")if(l)O.file=l(k);else throw new Error("file: protocol is not available in this PostCSS build");let C=x.sourceContentFor(b.source);return C&&(O.source=C),O}toJSON(){let y={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(y[g]=this[g]);return this.map&&(y.map={...this.map},y.map.consumerCache&&(y.map.consumerCache=void 0)),y}get from(){return this.file||this.id}};s.exports=p,p.default=p,n&&n.registerInput&&n.registerInput(p)}),et=E((e,s)=>{"use strict";var o=he(),i=Ot(),l=Me();function a(c,u){let m=new l(c,u),n=new i(m);try{n.parse()}catch(r){throw r}return n.root}s.exports=a,a.default=a,o.registerParse(a)}),ss=E((e,s)=>{var o=bt(),i=Me();s.exports={isInlineComment(l){if(l[0]==="word"&&l[1].slice(0,2)==="//"){let a=l,c=[],u,m;for(;l;){if(/\r?\n/.test(l[1])){if(/['"].*\r?\n/.test(l[1])){c.push(l[1].substring(0,l[1].indexOf(` `))),m=l[1].substring(l[1].indexOf(` `));let r=this.input.css.valueOf().substring(this.tokenizer.position());m+=r,u=l[3]+r.length-m.length}else this.tokenizer.back(l);break}c.push(l[1]),u=l[2],l=this.tokenizer.nextToken({ignoreUnclosed:!0})}let n=["comment",c.join(""),a[2],u];return this.inlineComment(n),m&&(this.input=new i(m),this.tokenizer=o(this.input)),!0}else if(l[1]==="/"){let a=this.tokenizer.nextToken({ignoreUnclosed:!0});if(a[0]==="comment"&&/^\/\*/.test(a[1]))return a[0]="word",a[1]=a[1].slice(1),l[1]="//",this.tokenizer.back(a),s.exports.isInlineComment.bind(this)(l)}return!1}}}),ns=E((e,s)=>{s.exports={interpolation(o){let i=[o,this.tokenizer.nextToken()],l=["word","}"];if(i[0][1].length>1||i[1][0]!=="{")return this.tokenizer.back(i[1]),!1;for(o=this.tokenizer.nextToken();o&&l.includes(o[0]);)i.push(o),o=this.tokenizer.nextToken();let a=i.map(n=>n[1]),[c]=i,u=i.pop(),m=["word",a.join(""),c[2],u[2]];return this.tokenizer.back(o),this.tokenizer.back(m),!0}}}),os=E((e,s)=>{var o=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,i=/\.[0-9]/,l=a=>{let[,c]=a,[u]=c;return(u==="."||u==="#")&&o.test(c)===!1&&i.test(c)===!1};s.exports={isMixinToken:l}}),is=E((e,s)=>{var o=bt(),i=/^url\((.+)\)/;s.exports=l=>{let{name:a,params:c=""}=l;if(a==="import"&&c.length){l.import=!0;let u=o({css:c});for(l.filename=c.replace(i,"$1");!u.endOfFile();){let[m,n]=u.nextToken();if(m==="word"&&n==="url")return;if(m==="brackets"){l.options=n,l.filename=c.replace(n,"").trim();break}}}}}),as=E((e,s)=>{var o=/:$/,i=/^:(\s+)?/;s.exports=l=>{let{name:a,params:c=""}=l;if(l.name.slice(-1)===":"){if(o.test(a)){let[u]=a.match(o);l.name=a.replace(u,""),l.raws.afterName=u+(l.raws.afterName||""),l.variable=!0,l.value=l.params}if(i.test(c)){let[u]=c.match(i);l.value=c.replace(u,""),l.raws.afterName=(l.raws.afterName||"")+u,l.variable=!0}}}}),us=E((e,s)=>{var o=Pe(),i=Ot(),{isInlineComment:l}=ss(),{interpolation:a}=ns(),{isMixinToken:c}=os(),u=is(),m=as(),n=/(!\s*important)$/i;s.exports=class extends i{constructor(...r){super(...r),this.lastNode=null}atrule(r){a.bind(this)(r)||(super.atrule(r),u(this.lastNode),m(this.lastNode))}decl(...r){super.decl(...r),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(r){r[0][1]=` ${r[0][1]}`;let t=r.findIndex(p=>p[0]==="("),f=r.reverse().find(p=>p[0]===")"),h=r.reverse().indexOf(f),d=r.splice(t,h).map(p=>p[1]).join("");for(let p of r.reverse())this.tokenizer.back(p);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=d}init(r,t,f){super.init(r,t,f),this.lastNode=r}inlineComment(r){let t=new o,f=r[1].slice(2);if(this.init(t,r[2]),t.source.end=this.getPosition(r[3]||r[2]),t.inline=!0,t.raws.begin="//",/^\s*$/.test(f))t.text="",t.raws.left=f,t.raws.right="";else{let h=f.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=h}}mixin(r){let[t]=r,f=t[1].slice(0,1),h=r.findIndex(v=>v[0]==="brackets"),d=r.findIndex(v=>v[0]==="("),p="";if((h<0||h>3)&&d>0){let v=r.reduce((P,N,M)=>N[0]===")"?M:P),w=r.slice(d,v+d).map(P=>P[1]).join(""),[x]=r.slice(d),b=[x[2],x[3]],[T]=r.slice(v,v+1),k=[T[2],T[3]],O=["brackets",w].concat(b,k),C=r.slice(0,d),A=r.slice(v+1);r=C,r.push(O),r=r.concat(A)}let y=[];for(let v of r)if((v[1]==="!"||y.length)&&y.push(v),v[1]==="important")break;if(y.length){let[v]=y,w=r.indexOf(v),x=y[y.length-1],b=[v[2],v[3]],T=[x[4],x[5]],k=["word",y.map(O=>O[1]).join("")].concat(b,T);r.splice(w,y.length,k)}let g=r.findIndex(v=>n.test(v[1]));g>0&&([,p]=r[g],r.splice(g,1));for(let v of r.reverse())this.tokenizer.back(v);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=f,p&&(this.lastNode.important=!0,this.lastNode.raws.important=p)}other(r){l.bind(this)(r)||super.other(r)}rule(r){let t=r[r.length-1],f=r[r.length-2];if(f[0]==="at-word"&&t[0]==="{"&&(this.tokenizer.back(t),a.bind(this)(f))){let h=this.tokenizer.nextToken();r=r.slice(0,r.length-2).concat([h]);for(let d of r.reverse())this.tokenizer.back(d);return}super.rule(r),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(r){let[t]=r;if(r[0][1]==="each"&&r[1][0]==="("){this.each(r);return}if(c(t)){this.mixin(r);return}super.unknownWord(r)}}}),ls=E((e,s)=>{var o=wt();s.exports=class extends o{atrule(i,l){if(!i.mixin&&!i.variable&&!i.function){super.atrule(i,l);return}let a=`${i.function?"":i.raws.identifier||"@"}${i.name}`,c=i.params?this.rawValue(i,"params"):"",u=i.raws.important||"";if(i.variable&&(c=i.value),typeof i.raws.afterName<"u"?a+=i.raws.afterName:c&&(a+=" "),i.nodes)this.block(i,a+c+u);else{let m=(i.raws.between||"")+u+(l?";":"");this.builder(a+c+m,i)}}comment(i){if(i.inline){let l=this.raw(i,"left","commentLeft"),a=this.raw(i,"right","commentRight");this.builder(`//${l}${i.text}${a}`,i)}else super.comment(i)}}}),cs=E((e,s)=>{var o=Me(),i=us(),l=ls();s.exports={parse(a,c){let u=new o(a,c),m=new i(u);return m.parse(),m.root.walk(n=>{let r=u.css.lastIndexOf(n.source.input.css);if(r===0)return;if(r+n.source.input.css.length!==u.css.length)throw new Error("Invalid state detected in postcss-less");let t=r+n.source.start.offset,f=u.fromOffset(r+n.source.start.offset);if(n.source.start={offset:t,line:f.line,column:f.col},n.source.end){let h=r+n.source.end.offset,d=u.fromOffset(r+n.source.end.offset);n.source.end={offset:h,line:d.line,column:d.col}}}),m.root},stringify(a,c){new l(c).stringify(a)},nodeToString(a){let c="";return s.exports.stringify(a,u=>{c+=u}),c}}}),Yt=E((e,s)=>{s.exports=class{generate(){}}}),Tt=E((e,s)=>{"use strict";var o=he(),i,l,a=class extends o{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new l,this,c).stringify()}};a.registerLazyResult=c=>{i=c},a.registerProcessor=c=>{l=c},s.exports=a,a.default=a}),Zt=E((e,s)=>{"use strict";var o={};s.exports=function(i){o[i]||(o[i]=!0,typeof console<"u"&&console.warn&&console.warn(i))}}),er=E((e,s)=>{"use strict";var o=class{constructor(i,l={}){if(this.type="warning",this.text=i,l.node&&l.node.source){let a=l.node.rangeBy(l);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in l)this[a]=l[a]}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}};s.exports=o,o.default=o}),Ct=E((e,s)=>{"use strict";var o=er(),i=class{constructor(l,a,c){this.processor=l,this.messages=[],this.root=a,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let c=new o(l,a);return this.messages.push(c),c}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}};s.exports=i,i.default=i}),tr=E((e,s)=>{"use strict";var{isClean:o,my:i}=yt(),l=Yt(),a=Xe(),c=he(),u=Tt(),m=Zt(),n=Ct(),r=et(),t=$e(),f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},d={Once:!0,postcssPlugin:!0,prepare:!0},p=0;function y(T){return typeof T=="object"&&typeof T.then=="function"}function g(T){let k=!1,O=f[T.type];return T.type==="decl"?k=T.prop.toLowerCase():T.type==="atrule"&&(k=T.name.toLowerCase()),k&&T.append?[O,O+"-"+k,p,O+"Exit",O+"Exit-"+k]:k?[O,O+"-"+k,O+"Exit",O+"Exit-"+k]:T.append?[O,p,O+"Exit"]:[O,O+"Exit"]}function v(T){let k;return T.type==="document"?k=["Document",p,"DocumentExit"]:T.type==="root"?k=["Root",p,"RootExit"]:k=g(T),{eventIndex:0,events:k,iterator:0,node:T,visitorIndex:0,visitors:[]}}function w(T){return T[o]=!1,T.nodes&&T.nodes.forEach(k=>w(k)),T}var x={},b=class rr{constructor(k,O,C){this.stringified=!1,this.processed=!1;let A;if(typeof O=="object"&&O!==null&&(O.type==="root"||O.type==="document"))A=w(O);else if(O instanceof rr||O instanceof n)A=w(O.root),O.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=O.map);else{let P=r;C.syntax&&(P=C.syntax.parse),C.parser&&(P=C.parser),P.parse&&(P=P.parse);try{A=P(O,C)}catch(N){this.processed=!0,this.error=N}A&&!A[i]&&c.rebuild(A)}this.result=new n(k,A,C),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(k){return this.async().catch(k)}finally(k){return this.async().then(k,k)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(k,O){let C=this.result.lastPlugin;try{O&&O.addToError(k),this.error=k,k.name==="CssSyntaxError"&&!k.plugin?(k.plugin=C.postcssPlugin,k.setMessage()):C.postcssVersion}catch(A){console&&console.error&&console.error(A)}return k}prepareVisitors(){this.listeners={};let k=(O,C,A)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([O,A])};for(let O of this.plugins)if(typeof O=="object")for(let C in O){if(!h[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${O.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[C])if(typeof O[C]=="object")for(let A in O[C])A==="*"?k(O,C,O[C][A]):k(O,C+"-"+A.toLowerCase(),O[C][A]);else typeof O[C]=="function"&&k(O,C,O[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let k=0;k<this.plugins.length;k++){let O=this.plugins[k],C=this.runOnRoot(O);if(y(C))try{await C}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[o];){k[o]=!0;let O=[v(k)];for(;O.length>0;){let C=this.visitTick(O);if(y(C))try{await C}catch(A){let P=O[O.length-1].node;throw this.handleError(A,P)}}}if(this.listeners.OnceExit)for(let[O,C]of this.listeners.OnceExit){this.result.lastPlugin=O;try{if(k.type==="document"){let A=k.nodes.map(P=>C(P,this.helpers));await Promise.all(A)}else await C(k,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(k){this.result.lastPlugin=k;try{if(typeof k=="object"&&k.Once){if(this.result.root.type==="document"){let O=this.result.root.nodes.map(C=>k.Once(C,this.helpers));return y(O[0])?Promise.all(O):O}return k.Once(this.result.root,this.helpers)}else if(typeof k=="function")return k(this.result.root,this.result)}catch(O){throw this.handleError(O)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let k=this.result.opts,O=a;k.syntax&&(O=k.syntax.stringify),k.stringifier&&(O=k.stringifier),O.stringify&&(O=O.stringify);let C=new l(O,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 k of this.plugins){let O=this.runOnRoot(k);if(y(O))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[o];)k[o]=!0,this.walkSync(k);if(this.listeners.OnceExit)if(k.type==="document")for(let O of k.nodes)this.visitSync(this.listeners.OnceExit,O);else this.visitSync(this.listeners.OnceExit,k)}return this.result}then(k,O){return this.async().then(k,O)}toString(){return this.css}visitSync(k,O){for(let[C,A]of k){this.result.lastPlugin=C;let P;try{P=A(O,this.helpers)}catch(N){throw this.handleError(N,O.proxyOf)}if(O.type!=="root"&&O.type!=="document"&&!O.parent)return!0;if(y(P))throw this.getAsyncError()}}visitTick(k){let O=k[k.length-1],{node:C,visitors:A}=O;if(C.type!=="root"&&C.type!=="document"&&!C.parent){k.pop();return}if(A.length>0&&O.visitorIndex<A.length){let[N,M]=A[O.visitorIndex];O.visitorIndex+=1,O.visitorIndex===A.length&&(O.visitors=[],O.visitorIndex=0),this.result.lastPlugin=N;try{return M(C.toProxy(),this.helpers)}catch(R){throw this.handleError(R,C)}}if(O.iterator!==0){let N=O.iterator,M;for(;M=C.nodes[C.indexes[N]];)if(C.indexes[N]+=1,!M[o]){M[o]=!0,k.push(v(M));return}O.iterator=0,delete C.indexes[N]}let P=O.events;for(;O.eventIndex<P.length;){let N=P[O.eventIndex];if(O.eventIndex+=1,N===p){C.nodes&&C.nodes.length&&(C[o]=!0,O.iterator=C.getIterator());return}else if(this.listeners[N]){O.visitors=this.listeners[N];return}}k.pop()}walkSync(k){k[o]=!0;let O=g(k);for(let C of O)if(C===p)k.nodes&&k.each(A=>{A[o]||this.walkSync(A)});else{let A=this.listeners[C];if(A&&this.visitSync(A,k.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};b.registerPostcss=T=>{x=T},s.exports=b,b.default=b,t.registerLazyResult(b),u.registerLazyResult(b)}),ps=E((e,s)=>{"use strict";var o=Yt(),i=Xe(),l=Zt(),a=et(),c=Ct(),u=class{constructor(m,n,r){n=n.toString(),this.stringified=!1,this._processor=m,this._css=n,this._opts=r,this._map=void 0;let t,f=i;this.result=new c(this._processor,t,this._opts),this.result.css=n;let h=this;Object.defineProperty(this.result,"root",{get(){return h.root}});let d=new o(f,t,this._opts,n);if(d.isMap()){let[p,y]=d.generate();p&&(this.result.css=p),y&&(this.result.map=y)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(m){return this.async().catch(m)}finally(m){return this.async().then(m,m)}sync(){if(this.error)throw this.error;return this.result}then(m,n){return this.async().then(m,n)}toString(){return this._css}warnings(){return[]}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 m,n=a;try{m=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=m,m}get[Symbol.toStringTag](){return"NoWorkResult"}};s.exports=u,u.default=u}),hs=E((e,s)=>{"use strict";var o=ps(),i=tr(),l=Tt(),a=$e(),c=class{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let m=[];for(let n of u)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))m=m.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)m.push(n);else if(typeof n=="function")m.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return m}process(u,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new o(this,u,m):new i(this,u,m)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}};s.exports=c,c.default=c,a.registerProcessor(c),l.registerProcessor(c)}),fs=E((e,s)=>{"use strict";var o=Ze(),i=Xt(),l=Pe(),a=xt(),c=Me(),u=$e(),m=kt();function n(r,t){if(Array.isArray(r))return r.map(d=>n(d));let{inputs:f,...h}=r;if(f){t=[];for(let d of f){let p={...d,__proto__:c.prototype};p.map&&(p.map={...p.map,__proto__:i.prototype}),t.push(p)}}if(h.nodes&&(h.nodes=r.nodes.map(d=>n(d,t))),h.source){let{inputId:d,...p}=h.source;h.source=p,d!=null&&(h.source.input=t[d])}if(h.type==="root")return new u(h);if(h.type==="decl")return new o(h);if(h.type==="rule")return new m(h);if(h.type==="comment")return new l(h);if(h.type==="atrule")return new a(h);throw new Error("Unknown node type: "+r.type)}s.exports=n,n.default=n}),St=E((e,s)=>{"use strict";var o=gt(),i=Ze(),l=tr(),a=he(),c=hs(),u=Xe(),m=fs(),n=Tt(),r=er(),t=Pe(),f=xt(),h=Ct(),d=Me(),p=et(),y=Kt(),g=kt(),v=$e(),w=Ye();function x(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new c(b)}x.plugin=function(b,T){let k=!1;function O(...A){console&&console.warn&&!k&&(k=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let P=T(...A);return P.postcssPlugin=b,P.postcssVersion=new c().version,P}let C;return Object.defineProperty(O,"postcss",{get(){return C||(C=O()),C}}),O.process=function(A,P,N){return x([O(N)]).process(A,P)},O},x.stringify=u,x.parse=p,x.fromJSON=m,x.list=y,x.comment=b=>new t(b),x.atRule=b=>new f(b),x.decl=b=>new i(b),x.rule=b=>new g(b),x.root=b=>new v(b),x.document=b=>new n(b),x.CssSyntaxError=o,x.Declaration=i,x.Container=a,x.Processor=c,x.Document=n,x.Comment=t,x.Warning=r,x.AtRule=f,x.Result=h,x.Input=d,x.Rule=g,x.Root=v,x.Node=w,l.registerPostcss(x),s.exports=x,x.default=x}),ds=E((e,s)=>{var{Container:o}=St(),i=class extends o{constructor(l){super(l),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};s.exports=i}),ms=E((e,s)=>{"use strict";var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,i=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,l=/.[\r\n"'(/\\]/,a=/[\da-f]/i,c=/[\n\f\r]/g;s.exports=function(u,m={}){let n=u.css.valueOf(),r=m.ignoreErrors,t,f,h,d,p,y,g,v,w,x=n.length,b=0,T=[],k=[],O;function C(){return b}function A($){throw u.error("Unclosed "+$,b)}function P(){return k.length===0&&b>=x}function N(){let $=1,I=!1,z=!1;for(;$>0;)f+=1,n.length<=f&&A("interpolation"),t=n.charCodeAt(f),v=n.charCodeAt(f+1),I?!z&&t===I?(I=!1,z=!1):t===92?z=!z:z&&(z=!1