@alignui/cli 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acorn-EYV4PDMH.js +16 -0
- package/dist/acorn-EYV4PDMH.js.map +1 -0
- package/dist/angular-TC473YFC.js +3 -0
- package/dist/angular-TC473YFC.js.map +1 -0
- package/dist/babel-LEKTDS7L.js +16 -0
- package/dist/babel-LEKTDS7L.js.map +1 -0
- package/dist/estree-PSOZDKNG.js +37 -0
- package/dist/estree-PSOZDKNG.js.map +1 -0
- package/dist/flow-SLL5ZRPZ.js +20 -0
- package/dist/flow-SLL5ZRPZ.js.map +1 -0
- package/dist/glimmer-N45MS77V.js +30 -0
- package/dist/glimmer-N45MS77V.js.map +1 -0
- package/dist/{graphql-T4H7YJOH.js → graphql-QTATSPDP.js} +13 -13
- package/dist/graphql-QTATSPDP.js.map +1 -0
- package/dist/html-KSAWNJSD.js +24 -0
- package/dist/html-KSAWNJSD.js.map +1 -0
- package/dist/index.js +115 -103
- package/dist/index.js.map +1 -1
- package/dist/markdown-NMF2LIIF.js +64 -0
- package/dist/markdown-NMF2LIIF.js.map +1 -0
- package/dist/meriyah-GGIQ265B.js +5 -0
- package/dist/meriyah-GGIQ265B.js.map +1 -0
- package/dist/postcss-LEYOLHZE.js +55 -0
- package/dist/postcss-LEYOLHZE.js.map +1 -0
- package/dist/typescript-UFTL2RQ6.js +21 -0
- package/dist/typescript-UFTL2RQ6.js.map +1 -0
- package/dist/yaml-FHI3PI2W.js +161 -0
- package/dist/yaml-FHI3PI2W.js.map +1 -0
- package/package.json +1 -1
- package/dist/acorn-6WD555LV.js +0 -16
- package/dist/acorn-6WD555LV.js.map +0 -1
- package/dist/angular-FB6XRNTO.js +0 -2
- package/dist/angular-FB6XRNTO.js.map +0 -1
- package/dist/babel-TBSVEBBW.js +0 -16
- package/dist/babel-TBSVEBBW.js.map +0 -1
- package/dist/estree-5SEZL7TU.js +0 -37
- package/dist/estree-5SEZL7TU.js.map +0 -1
- package/dist/flow-NFXK7JF7.js +0 -20
- package/dist/flow-NFXK7JF7.js.map +0 -1
- package/dist/glimmer-G2NSKFGE.js +0 -31
- package/dist/glimmer-G2NSKFGE.js.map +0 -1
- package/dist/graphql-T4H7YJOH.js.map +0 -1
- package/dist/html-XLFMJAO7.js +0 -24
- package/dist/html-XLFMJAO7.js.map +0 -1
- package/dist/markdown-NVP463HS.js +0 -63
- package/dist/markdown-NVP463HS.js.map +0 -1
- package/dist/meriyah-EU4YCQJJ.js +0 -5
- package/dist/meriyah-EU4YCQJJ.js.map +0 -1
- package/dist/postcss-FTEKMW3I.js +0 -53
- package/dist/postcss-FTEKMW3I.js.map +0 -1
- package/dist/typescript-2E2VSDEC.js +0 -21
- package/dist/typescript-2E2VSDEC.js.map +0 -1
- package/dist/yaml-QCH4GKYQ.js +0 -162
- package/dist/yaml-QCH4GKYQ.js.map +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import"./chunk-4C666HHU.js";var es=Object.create,xt=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyNames,ss=Object.getPrototypeOf,ns=Object.prototype.hasOwnProperty,A=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),Xt=(e,s)=>{for(var n in s)xt(e,n,{get:s[n],enumerable:!0})},os=(e,s,n,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of rs(s))!ns.call(e,c)&&c!==n&&xt(e,c,{get:()=>s[c],enumerable:!(o=ts(s,c))||o.enumerable});return e},xe=(e,s,n)=>(n=e!=null?es(ss(e)):{},os(s||!e||!e.__esModule?xt(n,"default",{value:e,enumerable:!0}):n,e)),is=A((e,s)=>{var n=String,o=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};s.exports=o(),s.exports.createColors=o}),Yt=A(()=>{}),kt=A((e,s)=>{"use strict";var n=is(),o=Yt(),c=class er extends Error{constructor(h,p,m,u,r,t){super(h),this.name="CssSyntaxError",this.reason=h,r&&(this.file=r),u&&(this.source=u),t&&(this.plugin=t),typeof p<"u"&&typeof m<"u"&&(typeof p=="number"?(this.line=p,this.column=m):(this.line=p.line,this.column=p.column,this.endLine=m.line,this.endColumn=m.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,er)}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(h){if(!this.source)return"";let p=this.source;h==null&&(h=n.isColorSupported);let m=l=>l,u=l=>l,r=l=>l;if(h){let{bold:l,gray:w,red:y}=n.createColors(!0);u=v=>l(y(v)),m=v=>w(v),o&&(r=v=>o(v))}let t=p.split(/\r?\n/),f=Math.max(this.line-3,0),a=Math.min(this.line+2,t.length),d=String(a).length;return t.slice(f,a).map((l,w)=>{let y=f+1+w,v=" "+(" "+y).slice(-d)+" | ";if(y===this.line){if(l.length>160){let x=20,b=Math.max(0,this.column-x),T=Math.max(this.column+x,this.endColumn+x),O=l.slice(b,T),k=m(v.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return u(">")+m(v)+r(O)+`
|
|
2
|
+
`+k+u("^")}let g=m(v.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+m(v)+r(l)+`
|
|
3
|
+
`+g+u("^")}return" "+m(v)+r(l)}).join(`
|
|
4
|
+
`)}toString(){let h=this.showSourceCode();return h&&(h=`
|
|
5
|
+
|
|
6
|
+
`+h+`
|
|
7
|
+
`),this.name+": "+this.message+h}};s.exports=c,c.default=c}),Ot=A((e,s)=>{"use strict";var n={after:`
|
|
8
|
+
`,beforeClose:`
|
|
9
|
+
`,beforeComment:`
|
|
10
|
+
`,beforeDecl:`
|
|
11
|
+
`,beforeOpen:" ",beforeRule:`
|
|
12
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function o(i){return i[0].toUpperCase()+i.slice(1)}var c=class{constructor(i){this.builder=i}atrule(i,h){let p="@"+i.name,m=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?p+=i.raws.afterName:m&&(p+=" "),i.nodes)this.block(i,p+m);else{let u=(i.raws.between||"")+(h?";":"");this.builder(p+m+u,i)}}beforeAfter(i,h){let p;i.type==="decl"?p=this.raw(i,null,"beforeDecl"):i.type==="comment"?p=this.raw(i,null,"beforeComment"):h==="before"?p=this.raw(i,null,"beforeRule"):p=this.raw(i,null,"beforeClose");let m=i.parent,u=0;for(;m&&m.type!=="root";)u+=1,m=m.parent;if(p.includes(`
|
|
13
|
+
`)){let r=this.raw(i,null,"indent");if(r.length)for(let t=0;t<u;t++)p+=r}return p}block(i,h){let p=this.raw(i,"between","beforeOpen");this.builder(h+p+"{",i,"start");let m;i.nodes&&i.nodes.length?(this.body(i),m=this.raw(i,"after")):m=this.raw(i,"after","emptyBody"),m&&this.builder(m),this.builder("}",i,"end")}body(i){let h=i.nodes.length-1;for(;h>0&&i.nodes[h].type==="comment";)h-=1;let p=this.raw(i,"semicolon");for(let m=0;m<i.nodes.length;m++){let u=i.nodes[m],r=this.raw(u,"before");r&&this.builder(r),this.stringify(u,h!==m||p)}}comment(i){let h=this.raw(i,"left","commentLeft"),p=this.raw(i,"right","commentRight");this.builder("/*"+h+i.text+p+"*/",i)}decl(i,h){let p=this.raw(i,"between","colon"),m=i.prop+p+this.rawValue(i,"value");i.important&&(m+=i.raws.important||" !important"),h&&(m+=";"),this.builder(m,i)}document(i){this.body(i)}raw(i,h,p){let m;if(p||(p=h),h&&(m=i.raws[h],typeof m<"u"))return m;let u=i.parent;if(p==="before"&&(!u||u.type==="root"&&u.first===i||u&&u.type==="document"))return"";if(!u)return n[p];let r=i.root();if(r.rawCache||(r.rawCache={}),typeof r.rawCache[p]<"u")return r.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(i,p);{let t="raw"+o(p);this[t]?m=this[t](r,i):r.walk(f=>{if(m=f.raws[h],typeof m<"u")return!1})}return typeof m>"u"&&(m=n[p]),r.rawCache[p]=m,m}rawBeforeClose(i){let h;return i.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return h=p.raws.after,h.includes(`
|
|
14
|
+
`)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawBeforeComment(i,h){let p;return i.walkComments(m=>{if(typeof m.raws.before<"u")return p=m.raws.before,p.includes(`
|
|
15
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(h,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(i,h){let p;return i.walkDecls(m=>{if(typeof m.raws.before<"u")return p=m.raws.before,p.includes(`
|
|
16
|
+
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(h,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(i){let h;return i.walk(p=>{if(p.type!=="decl"&&(h=p.raws.between,typeof h<"u"))return!1}),h}rawBeforeRule(i){let h;return i.walk(p=>{if(p.nodes&&(p.parent!==i||i.first!==p)&&typeof p.raws.before<"u")return h=p.raws.before,h.includes(`
|
|
17
|
+
`)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawColon(i){let h;return i.walkDecls(p=>{if(typeof p.raws.between<"u")return h=p.raws.between.replace(/[^\s:]/g,""),!1}),h}rawEmptyBody(i){let h;return i.walk(p=>{if(p.nodes&&p.nodes.length===0&&(h=p.raws.after,typeof h<"u"))return!1}),h}rawIndent(i){if(i.raws.indent)return i.raws.indent;let h;return i.walk(p=>{let m=p.parent;if(m&&m!==i&&m.parent&&m.parent===i&&typeof p.raws.before<"u"){let u=p.raws.before.split(`
|
|
18
|
+
`);return h=u[u.length-1],h=h.replace(/\S/g,""),!1}}),h}rawSemicolon(i){let h;return i.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(h=p.raws.semicolon,typeof h<"u"))return!1}),h}rawValue(i,h){let p=i[h],m=i.raws[h];return m&&m.value===p?m.raw:p}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,h){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,h)}};s.exports=c,c.default=c}),et=A((e,s)=>{"use strict";var n=Ot();function o(c,i){new n(i).stringify(c)}s.exports=o,o.default=o}),Tt=A((e,s)=>{"use strict";s.exports.isClean=Symbol("isClean"),s.exports.my=Symbol("my")}),tt=A((e,s)=>{"use strict";var n=kt(),o=Ot(),c=et(),{isClean:i,my:h}=Tt();function p(r,t){let f=new r.constructor;for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a)||a==="proxyCache")continue;let d=r[a],l=typeof d;a==="parent"&&l==="object"?t&&(f[a]=t):a==="source"?f[a]=d:Array.isArray(d)?f[a]=d.map(w=>p(w,f)):(l==="object"&&d!==null&&(d=p(d)),f[a]=d)}return f}function m(r,t){if(t&&typeof t.offset<"u")return t.offset;let f=1,a=1,d=0;for(let l=0;l<r.length;l++){if(a===t.line&&f===t.column){d=l;break}r[l]===`
|
|
19
|
+
`?(f=1,a+=1):f+=1}return d}var u=class{get proxyOf(){return this}constructor(r={}){this.raws={},this[i]=!1,this[h]=!0;for(let t in r)if(t==="nodes"){this.nodes=[];for(let f of r[t])typeof f.clone=="function"?this.append(f.clone()):this.append(f)}else this[t]=r[t]}addToError(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){let t=this.source;r.stack=r.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return r}after(r){return this.parent.insertAfter(this,r),this}assign(r={}){for(let t in r)this[t]=r[t];return this}before(r){return this.parent.insertBefore(this,r),this}cleanRaws(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between}clone(r={}){let t=p(this);for(let f in r)t[f]=r[f];return t}cloneAfter(r={}){let t=this.clone(r);return this.parent.insertAfter(this,t),t}cloneBefore(r={}){let t=this.clone(r);return this.parent.insertBefore(this,t),t}error(r,t={}){if(this.source){let{end:f,start:a}=this.rangeBy(t);return this.source.input.error(r,{column:a.column,line:a.line},{column:f.column,line:f.line},t)}return new n(r)}getProxyProcessor(){return{get(r,t){return t==="proxyOf"?r:t==="root"?()=>r.root().toProxy():r[t]},set(r,t,f){return r[t]===f||(r[t]=f,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&r.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let r=this;for(;r=r.parent;)r[i]=!1}}next(){if(!this.parent)return;let r=this.parent.index(this);return this.parent.nodes[r+1]}positionBy(r={}){let t=this.source.start;if(r.index)t=this.positionInside(r.index);else if(r.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,a=f.slice(m(f,this.source.start),m(f,this.source.end)).indexOf(r.word);a!==-1&&(t=this.positionInside(a))}return t}positionInside(r){let t=this.source.start.column,f=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,d=m(a,this.source.start),l=d+r;for(let w=d;w<l;w++)a[w]===`
|
|
20
|
+
`?(t=1,f+=1):t+=1;return{column:t,line:f,offset:l}}prev(){if(!this.parent)return;let r=this.parent.index(this);return this.parent.nodes[r-1]}rangeBy(r={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:m(t,this.source.start)},a=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:m(t,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(r.word){let d=t.slice(m(t,this.source.start),m(t,this.source.end)).indexOf(r.word);d!==-1&&(f=this.positionInside(d),a=this.positionInside(d+r.word.length))}else r.start?f={column:r.start.column,line:r.start.line,offset:m(t,r.start)}:r.index&&(f=this.positionInside(r.index)),r.end?a={column:r.end.column,line:r.end.line,offset:m(t,r.end)}:typeof r.endIndex=="number"?a=this.positionInside(r.endIndex):r.index&&(a=this.positionInside(r.index+1));return(a.line<f.line||a.line===f.line&&a.column<=f.column)&&(a={column:f.column+1,line:f.line,offset:f.offset+1}),{end:a,start:f}}raw(r,t){return new o().raw(this,r,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...r){if(this.parent){let t=this,f=!1;for(let a of r)a===this?f=!0:f?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a);f||this.remove()}return this}root(){let r=this;for(;r.parent&&r.parent.type!=="document";)r=r.parent;return r}toJSON(r,t){let f={},a=t==null;t=t||new Map;let d=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let w=this[l];if(Array.isArray(w))f[l]=w.map(y=>typeof y=="object"&&y.toJSON?y.toJSON(null,t):y);else if(typeof w=="object"&&w.toJSON)f[l]=w.toJSON(null,t);else if(l==="source"){if(w==null)continue;let y=t.get(w.input);y==null&&(y=d,t.set(w.input,d),d++),f[l]={end:w.end,inputId:y,start:w.start}}else f[l]=w}return a&&(f.inputs=[...t.keys()].map(l=>l.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(r=c){r.stringify&&(r=r.stringify);let t="";return r(this,f=>{t+=f}),t}warn(r,t,f={}){let a={node:this};for(let d in f)a[d]=f[d];return r.warn(t,a)}};s.exports=u,u.default=u}),Ne=A((e,s)=>{"use strict";var n=tt(),o=class extends n{constructor(c){super(c),this.type="comment"}};s.exports=o,o.default=o}),rt=A((e,s)=>{"use strict";var n=tt(),o=class extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(c){c&&typeof c.value<"u"&&typeof c.value!="string"&&(c={...c,value:String(c.value)}),super(c),this.type="decl"}};s.exports=o,o.default=o}),he=A((e,s)=>{"use strict";var n=Ne(),o=rt(),c=tt(),{isClean:i,my:h}=Tt(),p,m,u,r;function t(d){return d.map(l=>(l.nodes&&(l.nodes=t(l.nodes)),delete l.source,l))}function f(d){if(d[i]=!1,d.proxyOf.nodes)for(let l of d.proxyOf.nodes)f(l)}var a=class tr 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(...l){for(let w of l){let y=this.normalize(w,this.last);for(let v of y)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let w of this.nodes)w.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let w=this.getIterator(),y,v;for(;this.indexes[w]<this.proxyOf.nodes.length&&(y=this.indexes[w],v=l(this.proxyOf.nodes[y],y),v!==!1);)this.indexes[w]+=1;return delete this.indexes[w],v}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,w){return w==="proxyOf"?l:l[w]?w==="each"||typeof w=="string"&&w.startsWith("walk")?(...y)=>l[w](...y.map(v=>typeof v=="function"?(g,x)=>v(g.toProxy(),x):v)):w==="every"||w==="some"?y=>l[w]((v,...g)=>y(v.toProxy(),...g)):w==="root"?()=>l.root().toProxy():w==="nodes"?l.nodes.map(y=>y.toProxy()):w==="first"||w==="last"?l[w].toProxy():l[w]:l[w]},set(l,w,y){return l[w]===y||(l[w]=y,(w==="name"||w==="params"||w==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,w){let y=this.index(l),v=this.normalize(w,this.proxyOf.nodes[y]).reverse();y=this.index(l);for(let x of v)this.proxyOf.nodes.splice(y+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],y<g&&(this.indexes[x]=g+v.length);return this.markDirty(),this}insertBefore(l,w){let y=this.index(l),v=y===0?"prepend":!1,g=this.normalize(w,this.proxyOf.nodes[y],v).reverse();y=this.index(l);for(let b of g)this.proxyOf.nodes.splice(y,0,b);let x;for(let b in this.indexes)x=this.indexes[b],y<=x&&(this.indexes[b]=x+g.length);return this.markDirty(),this}normalize(l,w){if(typeof l=="string")l=t(m(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let y of l)y.parent&&y.parent.removeChild(y,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let y of l)y.parent&&y.parent.removeChild(y,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new o(l)]}else if(l.selector||l.selectors)l=[new r(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new n(l)];else throw new Error("Unknown node type in node creation");return l.map(y=>(y[h]||tr.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[i]&&f(y),y.raws||(y.raws={}),typeof y.raws.before>"u"&&w&&typeof w.raws.before<"u"&&(y.raws.before=w.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...l){l=l.reverse();for(let w of l){let y=this.normalize(w,this.first,"prepend").reverse();for(let v of y)this.proxyOf.nodes.unshift(v);for(let v in this.indexes)this.indexes[v]=this.indexes[v]+y.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let w;for(let y in this.indexes)w=this.indexes[y],w>=l&&(this.indexes[y]=w-1);return this.markDirty(),this}replaceValues(l,w,y){return y||(y=w,w={}),this.walkDecls(v=>{w.props&&!w.props.includes(v.prop)||w.fast&&!v.value.includes(w.fast)||(v.value=v.value.replace(l,y))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((w,y)=>{let v;try{v=l(w,y)}catch(g){throw w.addToError(g)}return v!==!1&&w.walk&&(v=w.walk(l)),v})}walkAtRules(l,w){return w?l instanceof RegExp?this.walk((y,v)=>{if(y.type==="atrule"&&l.test(y.name))return w(y,v)}):this.walk((y,v)=>{if(y.type==="atrule"&&y.name===l)return w(y,v)}):(w=l,this.walk((y,v)=>{if(y.type==="atrule")return w(y,v)}))}walkComments(l){return this.walk((w,y)=>{if(w.type==="comment")return l(w,y)})}walkDecls(l,w){return w?l instanceof RegExp?this.walk((y,v)=>{if(y.type==="decl"&&l.test(y.prop))return w(y,v)}):this.walk((y,v)=>{if(y.type==="decl"&&y.prop===l)return w(y,v)}):(w=l,this.walk((y,v)=>{if(y.type==="decl")return w(y,v)}))}walkRules(l,w){return w?l instanceof RegExp?this.walk((y,v)=>{if(y.type==="rule"&&l.test(y.selector))return w(y,v)}):this.walk((y,v)=>{if(y.type==="rule"&&y.selector===l)return w(y,v)}):(w=l,this.walk((y,v)=>{if(y.type==="rule")return w(y,v)}))}};a.registerParse=d=>{m=d},a.registerRule=d=>{r=d},a.registerAtRule=d=>{p=d},a.registerRoot=d=>{u=d},s.exports=a,a.default=a,a.rebuild=d=>{d.type==="atrule"?Object.setPrototypeOf(d,p.prototype):d.type==="rule"?Object.setPrototypeOf(d,r.prototype):d.type==="decl"?Object.setPrototypeOf(d,o.prototype):d.type==="comment"?Object.setPrototypeOf(d,n.prototype):d.type==="root"&&Object.setPrototypeOf(d,u.prototype),d[h]=!0,d.nodes&&d.nodes.forEach(l=>{a.rebuild(l)})}}),as=A((e,s)=>{var n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",o=(i,h=21)=>(p=h)=>{let m="",u=p|0;for(;u--;)m+=i[Math.random()*i.length|0];return m},c=(i=21)=>{let h="",p=i|0;for(;p--;)h+=n[Math.random()*64|0];return h};s.exports={nanoid:c,customAlphabet:o}}),us=A(()=>{}),rr=A((e,s)=>{s.exports=class{}}),Le=A((e,s)=>{"use strict";var{nanoid:n}=as(),{isAbsolute:o,resolve:c}={},{SourceMapConsumer:i,SourceMapGenerator:h}=us(),{fileURLToPath:p,pathToFileURL:m}={},u=kt(),r=rr(),t=Yt(),f=Symbol("lineToIndexCache"),a=!!(i&&h),d=!!(c&&o);function l(y){if(y[f])return y[f];let v=y.css.split(`
|
|
21
|
+
`),g=new Array(v.length),x=0;for(let b=0,T=v.length;b<T;b++)g[b]=x,x+=v[b].length+1;return y[f]=g,g}var w=class{get from(){return this.file||this.id}constructor(y,v={}){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,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!d||/^\w+:\/\//.test(v.from)||o(v.from)?this.file=v.from:this.file=c(v.from)),d&&a){let g=new r(this.css,v);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(y,v,g,x={}){let b,T,O,k,S;if(v&&typeof v=="object"){let I=v,R=g;if(typeof I.offset=="number"){k=I.offset;let M=this.fromOffset(k);v=M.line,g=M.col}else v=I.line,g=I.column,k=this.fromLineAndColumn(v,g);if(typeof R.offset=="number"){O=R.offset;let M=this.fromOffset(O);T=M.line,b=M.col}else T=R.line,b=R.column,O=this.fromLineAndColumn(R.line,R.column)}else if(g)k=this.fromLineAndColumn(v,g);else{k=v;let I=this.fromOffset(k);v=I.line,g=I.col}let E=this.origin(v,g,T,b);return E?S=new u(y,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,x.plugin):S=new u(y,T===void 0?v:{column:g,line:v},T===void 0?g:{column:b,line:T},this.css,this.file,x.plugin),S.input={column:g,endColumn:b,endLine:T,endOffset:O,line:v,offset:k,source:this.css},this.file&&(m&&(S.input.url=m(this.file).toString()),S.input.file=this.file),S}fromLineAndColumn(y,v){return l(this)[y-1]+v-1}fromOffset(y){let v=l(this),g=v[v.length-1],x=0;if(y>=g)x=v.length-1;else{let b=v.length-2,T;for(;x<b;)if(T=x+(b-x>>1),y<v[T])b=T-1;else if(y>=v[T+1])x=T+1;else{x=T;break}}return{col:y-v[x]+1,line:x+1}}mapResolve(y){return/^\w+:\/\//.test(y)?y:c(this.map.consumer().sourceRoot||this.map.root||".",y)}origin(y,v,g,x){if(!this.map)return!1;let b=this.map.consumer(),T=b.originalPositionFor({column:v,line:y});if(!T.source)return!1;let O;typeof g=="number"&&(O=b.originalPositionFor({column:x,line:g}));let k;o(T.source)?k=m(T.source):k=new URL(T.source,this.map.consumer().sourceRoot||m(this.map.mapFile));let S={column:T.column,endColumn:O&&O.column,endLine:O&&O.line,line:T.line,url:k.toString()};if(k.protocol==="file:")if(p)S.file=p(k);else throw new Error("file: protocol is not available in this PostCSS build");let E=b.sourceContentFor(T.source);return E&&(S.source=E),S}toJSON(){let y={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(y[v]=this[v]);return this.map&&(y.map={...this.map},y.map.consumerCache&&(y.map.consumerCache=void 0)),y}};s.exports=w,w.default=w,t&&t.registerInput&&t.registerInput(w)}),Ct=A((e,s)=>{"use strict";var n=he(),o=class extends n{constructor(c){super(c),this.type="atrule"}append(...c){return this.proxyOf.nodes||(this.nodes=[]),super.append(...c)}prepend(...c){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...c)}};s.exports=o,o.default=o,n.registerAtRule(o)}),We=A((e,s)=>{"use strict";var n=he(),o,c,i=class extends n{constructor(h){super(h),this.type="root",this.nodes||(this.nodes=[])}normalize(h,p,m){let u=super.normalize(h);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let r of u)r.raws.before=p.raws.before}return u}removeChild(h,p){let m=this.index(h);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(h)}toResult(h={}){return new o(new c,this,h).stringify()}};i.registerLazyResult=h=>{o=h},i.registerProcessor=h=>{c=h},s.exports=i,i.default=i,n.registerRoot(i)}),sr=A((e,s)=>{"use strict";var n={comma(o){return n.split(o,[","],!0)},space(o){let c=[" ",`
|
|
22
|
+
`," "];return n.split(o,c)},split(o,c,i){let h=[],p="",m=!1,u=0,r=!1,t="",f=!1;for(let a of o)f?f=!1:a==="\\"?f=!0:r?a===t&&(r=!1):a==='"'||a==="'"?(r=!0,t=a):a==="("?u+=1:a===")"?u>0&&(u-=1):u===0&&c.includes(a)&&(m=!0),m?(p!==""&&h.push(p.trim()),p="",m=!1):p+=a;return(i||p!=="")&&h.push(p.trim()),h}};s.exports=n,n.default=n}),St=A((e,s)=>{"use strict";var n=he(),o=sr(),c=class extends n{get selectors(){return o.comma(this.selector)}set selectors(i){let h=this.selector?this.selector.match(/,\s*/):null,p=h?h[0]:","+this.raw("between","beforeOpen");this.selector=i.join(p)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}};s.exports=c,c.default=c,n.registerRule(c)}),_t=A((e,s)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,o=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,c=/.[\r\n"'(/\\]/,i=/[\da-f]/i;s.exports=function(h,p={}){let m=h.css.valueOf(),u=p.ignoreErrors,r,t,f,a,d,l,w,y,v,g,x=m.length,b=0,T=[],O=[];function k(){return b}function S(M){throw h.error("Unclosed "+M,b)}function E(){return O.length===0&&b>=x}function I(M){if(O.length)return O.pop();if(b>=x)return;let N=M?M.ignoreUnclosed:!1;switch(r=m.charCodeAt(b),r){case 10:case 32:case 9:case 13:case 12:{a=b;do a+=1,r=m.charCodeAt(a);while(r===32||r===10||r===9||r===13||r===12);l=["space",m.slice(b,a)],b=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let $=String.fromCharCode(r);l=[$,$,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){a=b;do{if(w=!1,a=m.indexOf(")",a+1),a===-1)if(u||N){a=b;break}else S("bracket");for(y=a;m.charCodeAt(y-1)===92;)y-=1,w=!w}while(w);l=["brackets",m.slice(b,a+1),b,a],b=a}else a=m.indexOf(")",b+1),t=m.slice(b,a+1),a===-1||c.test(t)?l=["(","(",b]:(l=["brackets",t,b,a],b=a);break}case 39:case 34:{d=r===39?"'":'"',a=b;do{if(w=!1,a=m.indexOf(d,a+1),a===-1)if(u||N){a=b+1;break}else S("string");for(y=a;m.charCodeAt(y-1)===92;)y-=1,w=!w}while(w);l=["string",m.slice(b,a+1),b,a],b=a;break}case 64:{n.lastIndex=b+1,n.test(m),n.lastIndex===0?a=m.length-1:a=n.lastIndex-2,l=["at-word",m.slice(b,a+1),b,a],b=a;break}case 92:{for(a=b,f=!0;m.charCodeAt(a+1)===92;)a+=1,f=!f;if(r=m.charCodeAt(a+1),f&&r!==47&&r!==32&&r!==10&&r!==9&&r!==13&&r!==12&&(a+=1,i.test(m.charAt(a)))){for(;i.test(m.charAt(a+1));)a+=1;m.charCodeAt(a+1)===32&&(a+=1)}l=["word",m.slice(b,a+1),b,a],b=a;break}default:{r===47&&m.charCodeAt(b+1)===42?(a=m.indexOf("*/",b+2)+1,a===0&&(u||N?a=m.length:S("comment")),l=["comment",m.slice(b,a+1),b,a],b=a):(o.lastIndex=b+1,o.test(m),o.lastIndex===0?a=m.length-1:a=o.lastIndex-2,l=["word",m.slice(b,a+1),b,a],T.push(l),b=a);break}}return b++,l}function R(M){O.push(M)}return{back:R,endOfFile:E,nextToken:I,position:k}}}),Et=A((e,s)=>{"use strict";var n=Ct(),o=Ne(),c=rt(),i=We(),h=St(),p=_t(),m={empty:!0,space:!0};function u(t){for(let f=t.length-1;f>=0;f--){let a=t[f],d=a[3]||a[2];if(d)return d}}var r=class{constructor(t){this.input=t,this.root=new i,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 n;f.name=t[1].slice(1),f.name===""&&this.unnamedAtrule(f,t),this.init(f,t[2]);let a,d,l,w=!1,y=!1,v=[],g=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),a=t[0],a==="("||a==="["?g.push(a==="("?")":"]"):a==="{"&&g.length>0?g.push("}"):a===g[g.length-1]&&g.pop(),g.length===0)if(a===";"){f.source.end=this.getPosition(t[2]),f.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){y=!0;break}else if(a==="}"){if(v.length>0){for(l=v.length-1,d=v[l];d&&d[0]==="space";)d=v[--l];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()){w=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(f.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(f,"params",v),w&&(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=""),y&&(f.nodes=[],this.current=f)}checkMissedSemicolon(t){let f=this.colon(t);if(f===!1)return;let a=0,d;for(let l=f-1;l>=0&&(d=t[l],!(d[0]!=="space"&&(a+=1,a===2)));l--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(t){let f=0,a,d,l;for(let[w,y]of t.entries()){if(d=y,l=d[0],l==="("&&(f+=1),l===")"&&(f-=1),f===0&&l===":")if(!a)this.doubleColon(d);else{if(a[0]==="word"&&a[1]==="progid")continue;return w}a=d}return!1}comment(t){let f=new o;this.init(f,t[2]),f.source.end=this.getPosition(t[3]||t[2]),f.source.end.offset++;let a=t[1].slice(2,-2);if(/^\s*$/.test(a))f.text="",f.raws.left=a,f.raws.right="";else{let d=a.match(/^(\s*)([^]*\S)(\s*)$/);f.text=d[2],f.raws.left=d[1],f.raws.right=d[3]}}createTokenizer(){this.tokenizer=p(this.input)}decl(t,f){let a=new c;this.init(a,t[0][2]);let d=t[t.length-1];for(d[0]===";"&&(this.semicolon=!0,t.pop()),a.source.end=this.getPosition(d[3]||d[2]||u(t)),a.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),a.raws.before+=t.shift()[1];for(a.source.start=this.getPosition(t[0][2]),a.prop="";t.length;){let v=t[0][0];if(v===":"||v==="space"||v==="comment")break;a.prop+=t.shift()[1]}a.raws.between="";let l;for(;t.length;)if(l=t.shift(),l[0]===":"){a.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),a.raws.between+=l[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let w=[],y;for(;t.length&&(y=t[0][0],!(y!=="space"&&y!=="comment"));)w.push(t.shift());this.precheckMissedSemicolon(t);for(let v=t.length-1;v>=0;v--){if(l=t[v],l[1].toLowerCase()==="!important"){a.important=!0;let g=this.stringFrom(t,v);g=this.spacesFromEnd(t)+g,g!==" !important"&&(a.raws.important=g);break}else if(l[1].toLowerCase()==="important"){let g=t.slice(0),x="";for(let b=v;b>0;b--){let T=g[b][0];if(x.trim().startsWith("!")&&T!=="space")break;x=g.pop()[1]+x}x.trim().startsWith("!")&&(a.important=!0,a.raws.important=x,t=g)}if(l[0]!=="space"&&l[0]!=="comment")break}t.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(a.raws.between+=w.map(v=>v[1]).join(""),w=[]),this.raw(a,"value",w.concat(t),f),a.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 h;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="",f.source.end=this.getPosition(t[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}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,a=null,d=!1,l=null,w=[],y=t[1].startsWith("--"),v=[],g=t;for(;g;){if(a=g[0],v.push(g),a==="("||a==="[")l||(l=g),w.push(a==="("?")":"]");else if(y&&d&&a==="{")l||(l=g),w.push("}");else if(w.length===0)if(a===";")if(d){this.decl(v,y);return}else break;else if(a==="{"){this.rule(v);return}else if(a==="}"){this.tokenizer.back(v.pop()),f=!0;break}else a===":"&&(d=!0);else a===w[w.length-1]&&(w.pop(),w.length===0&&(l=null));g=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),w.length>0&&this.unclosedBracket(l),f&&d){if(!y)for(;v.length&&(g=v[v.length-1][0],!(g!=="space"&&g!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,y)}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,a,d){let l,w,y=a.length,v="",g=!0,x,b;for(let T=0;T<y;T+=1)l=a[T],w=l[0],w==="space"&&T===y-1&&!d?g=!1:w==="comment"?(b=a[T-1]?a[T-1][0]:"empty",x=a[T+1]?a[T+1][0]:"empty",!m[b]&&!m[x]?v.slice(-1)===","?g=!1:v+=l[1]:g=!1):v+=l[1];if(!g){let T=a.reduce((O,k)=>O+k[1],"");t.raws[f]={raw:T,value:v}}t[f]=v}rule(t){t.pop();let f=new h;this.init(f,t[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(f,"selector",t),this.current=f}spacesAndCommentsFromEnd(t){let f,a="";for(;t.length&&(f=t[t.length-1][0],!(f!=="space"&&f!=="comment"));)a=t.pop()[1]+a;return a}spacesAndCommentsFromStart(t){let f,a="";for(;t.length&&(f=t[0][0],!(f!=="space"&&f!=="comment"));)a+=t.shift()[1];return a}spacesFromEnd(t){let f,a="";for(;t.length&&(f=t[t.length-1][0],f==="space");)a=t.pop()[1]+a;return a}stringFrom(t,f){let a="";for(let d=f;d<t.length;d++)a+=t[d][1];return t.splice(f,t.length-f),a}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 "+t[0][1],{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}),st=A((e,s)=>{"use strict";var n=he(),o=Le(),c=Et();function i(h,p){let m=new o(h,p),u=new c(m);try{u.parse()}catch(r){throw r}return u.root}s.exports=i,i.default=i,n.registerParse(i)}),ls=A((e,s)=>{var n=_t(),o=Le();s.exports={isInlineComment(c){if(c[0]==="word"&&c[1].slice(0,2)==="//"){let i=c,h=[],p,m;for(;c;){if(/\r?\n/.test(c[1])){if(/['"].*\r?\n/.test(c[1])){h.push(c[1].substring(0,c[1].indexOf(`
|
|
23
|
+
`))),m=c[1].substring(c[1].indexOf(`
|
|
24
|
+
`));let r=this.input.css.valueOf().substring(this.tokenizer.position());m+=r,p=c[3]+r.length-m.length}else this.tokenizer.back(c);break}h.push(c[1]),p=c[2],c=this.tokenizer.nextToken({ignoreUnclosed:!0})}let u=["comment",h.join(""),i[2],p];return this.inlineComment(u),m&&(this.input=new o(m),this.tokenizer=n(this.input)),!0}else if(c[1]==="/"){let i=this.tokenizer.nextToken({ignoreUnclosed:!0});if(i[0]==="comment"&&/^\/\*/.test(i[1]))return i[0]="word",i[1]=i[1].slice(1),c[1]="//",this.tokenizer.back(i),s.exports.isInlineComment.bind(this)(c)}return!1}}}),cs=A((e,s)=>{s.exports={interpolation(n){let o=[n,this.tokenizer.nextToken()],c=["word","}"];if(o[0][1].length>1||o[1][0]!=="{")return this.tokenizer.back(o[1]),!1;for(n=this.tokenizer.nextToken();n&&c.includes(n[0]);)o.push(n),n=this.tokenizer.nextToken();let i=o.map(u=>u[1]),[h]=o,p=o.pop(),m=["word",i.join(""),h[2],p[2]];return this.tokenizer.back(n),this.tokenizer.back(m),!0}}}),ps=A((e,s)=>{var n=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,o=/\.[0-9]/,c=i=>{let[,h]=i,[p]=h;return(p==="."||p==="#")&&n.test(h)===!1&&o.test(h)===!1};s.exports={isMixinToken:c}}),hs=A((e,s)=>{var n=_t(),o=/^url\((.+)\)/;s.exports=c=>{let{name:i,params:h=""}=c;if(i==="import"&&h.length){c.import=!0;let p=n({css:h});for(c.filename=h.replace(o,"$1");!p.endOfFile();){let[m,u]=p.nextToken();if(m==="word"&&u==="url")return;if(m==="brackets"){c.options=u,c.filename=h.replace(u,"").trim();break}}}}}),fs=A((e,s)=>{var n=/:$/,o=/^:(\s+)?/;s.exports=c=>{let{name:i,params:h=""}=c;if(c.name.slice(-1)===":"){if(n.test(i)){let[p]=i.match(n);c.name=i.replace(p,""),c.raws.afterName=p+(c.raws.afterName||""),c.variable=!0,c.value=c.params}if(o.test(h)){let[p]=h.match(o);c.value=h.replace(p,""),c.raws.afterName=(c.raws.afterName||"")+p,c.variable=!0}}}}),ds=A((e,s)=>{var n=Ne(),o=Et(),{isInlineComment:c}=ls(),{interpolation:i}=cs(),{isMixinToken:h}=ps(),p=hs(),m=fs(),u=/(!\s*important)$/i;s.exports=class extends o{constructor(...r){super(...r),this.lastNode=null}atrule(r){i.bind(this)(r)||(super.atrule(r),p(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(l=>l[0]==="("),f=r.reverse().find(l=>l[0]===")"),a=r.reverse().indexOf(f),d=r.splice(t,a).map(l=>l[1]).join("");for(let l of r.reverse())this.tokenizer.back(l);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 n,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 a=f.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=a}}mixin(r){let[t]=r,f=t[1].slice(0,1),a=r.findIndex(v=>v[0]==="brackets"),d=r.findIndex(v=>v[0]==="("),l="";if((a<0||a>3)&&d>0){let v=r.reduce((I,R,M)=>R[0]===")"?M:I),g=r.slice(d,v+d).map(I=>I[1]).join(""),[x]=r.slice(d),b=[x[2],x[3]],[T]=r.slice(v,v+1),O=[T[2],T[3]],k=["brackets",g].concat(b,O),S=r.slice(0,d),E=r.slice(v+1);r=S,r.push(k),r=r.concat(E)}let w=[];for(let v of r)if((v[1]==="!"||w.length)&&w.push(v),v[1]==="important")break;if(w.length){let[v]=w,g=r.indexOf(v),x=w[w.length-1],b=[v[2],v[3]],T=[x[4],x[5]],O=["word",w.map(k=>k[1]).join("")].concat(b,T);r.splice(g,w.length,O)}let y=r.findIndex(v=>u.test(v[1]));y>0&&([,l]=r[y],r.splice(y,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,l&&(this.lastNode.important=!0,this.lastNode.raws.important=l)}other(r){c.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),i.bind(this)(f))){let a=this.tokenizer.nextToken();r=r.slice(0,r.length-2).concat([a]);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(h(t)){this.mixin(r);return}super.unknownWord(r)}}}),ms=A((e,s)=>{var n=Ot();s.exports=class extends n{atrule(o,c){if(!o.mixin&&!o.variable&&!o.function){super.atrule(o,c);return}let i=`${o.function?"":o.raws.identifier||"@"}${o.name}`,h=o.params?this.rawValue(o,"params"):"",p=o.raws.important||"";if(o.variable&&(h=o.value),typeof o.raws.afterName<"u"?i+=o.raws.afterName:h&&(i+=" "),o.nodes)this.block(o,i+h+p);else{let m=(o.raws.between||"")+p+(c?";":"");this.builder(i+h+m,o)}}comment(o){if(o.inline){let c=this.raw(o,"left","commentLeft"),i=this.raw(o,"right","commentRight");this.builder(`//${c}${o.text}${i}`,o)}else super.comment(o)}}}),vs=A((e,s)=>{var n=Le(),o=ds(),c=ms();s.exports={parse(i,h){let p=new n(i,h),m=new o(p);return m.parse(),m.root.walk(u=>{let r=p.css.lastIndexOf(u.source.input.css);if(r===0)return;if(r+u.source.input.css.length!==p.css.length)throw new Error("Invalid state detected in postcss-less");let t=r+u.source.start.offset,f=p.fromOffset(r+u.source.start.offset);if(u.source.start={offset:t,line:f.line,column:f.col},u.source.end){let a=r+u.source.end.offset,d=p.fromOffset(r+u.source.end.offset);u.source.end={offset:a,line:d.line,column:d.col}}}),m.root},stringify(i,h){new c(h).stringify(i)},nodeToString(i){let h="";return s.exports.stringify(i,p=>{h+=p}),h}}}),At=A((e,s)=>{"use strict";var n=he(),o,c,i=class extends n{constructor(h){super({type:"document",...h}),this.nodes||(this.nodes=[])}toResult(h={}){return new o(new c,this,h).stringify()}};i.registerLazyResult=h=>{o=h},i.registerProcessor=h=>{c=h},s.exports=i,i.default=i}),ys=A((e,s)=>{"use strict";var n=Ct(),o=Ne(),c=rt(),i=Le(),h=rr(),p=We(),m=St();function u(r,t){if(Array.isArray(r))return r.map(d=>u(d));let{inputs:f,...a}=r;if(f){t=[];for(let d of f){let l={...d,__proto__:i.prototype};l.map&&(l.map={...l.map,__proto__:h.prototype}),t.push(l)}}if(a.nodes&&(a.nodes=r.nodes.map(d=>u(d,t))),a.source){let{inputId:d,...l}=a.source;a.source=l,d!=null&&(a.source.input=t[d])}if(a.type==="root")return new p(a);if(a.type==="decl")return new c(a);if(a.type==="rule")return new m(a);if(a.type==="comment")return new o(a);if(a.type==="atrule")return new n(a);throw new Error("Unknown node type: "+r.type)}s.exports=u,u.default=u}),nr=A((e,s)=>{s.exports=class{generate(){}}}),or=A((e,s)=>{"use strict";var n=class{constructor(o,c={}){if(this.type="warning",this.text=o,c.node&&c.node.source){let i=c.node.rangeBy(c);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in c)this[i]=c[i]}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=n,n.default=n}),jt=A((e,s)=>{"use strict";var n=or(),o=class{get content(){return this.css}constructor(c,i,h){this.processor=c,this.messages=[],this.root=i,this.opts=h,this.css="",this.map=void 0}toString(){return this.css}warn(c,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let h=new n(c,i);return this.messages.push(h),h}warnings(){return this.messages.filter(c=>c.type==="warning")}};s.exports=o,o.default=o}),ir=A((e,s)=>{"use strict";var n={};s.exports=function(o){n[o]||(n[o]=!0,typeof console<"u"&&console.warn&&console.warn(o))}}),ar=A((e,s)=>{"use strict";var n=he(),o=At(),c=nr(),i=st(),h=jt(),p=We(),m=et(),{isClean:u,my:r}=Tt(),t=ir(),f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},a={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},l=0;function w(T){return typeof T=="object"&&typeof T.then=="function"}function y(T){let O=!1,k=f[T.type];return T.type==="decl"?O=T.prop.toLowerCase():T.type==="atrule"&&(O=T.name.toLowerCase()),O&&T.append?[k,k+"-"+O,l,k+"Exit",k+"Exit-"+O]:O?[k,k+"-"+O,k+"Exit",k+"Exit-"+O]:T.append?[k,l,k+"Exit"]:[k,k+"Exit"]}function v(T){let O;return T.type==="document"?O=["Document",l,"DocumentExit"]:T.type==="root"?O=["Root",l,"RootExit"]:O=y(T),{eventIndex:0,events:O,iterator:0,node:T,visitorIndex:0,visitors:[]}}function g(T){return T[u]=!1,T.nodes&&T.nodes.forEach(O=>g(O)),T}var x={},b=class ur{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(O,k,S){this.stringified=!1,this.processed=!1;let E;if(typeof k=="object"&&k!==null&&(k.type==="root"||k.type==="document"))E=g(k);else if(k instanceof ur||k instanceof h)E=g(k.root),k.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=k.map);else{let I=i;S.syntax&&(I=S.syntax.parse),S.parser&&(I=S.parser),I.parse&&(I=I.parse);try{E=I(k,S)}catch(R){this.processed=!0,this.error=R}E&&!E[r]&&n.rebuild(E)}this.result=new h(O,E,S),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(O){return this.async().catch(O)}finally(O){return this.async().then(O,O)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(O,k){let S=this.result.lastPlugin;try{k&&k.addToError(O),this.error=O,O.name==="CssSyntaxError"&&!O.plugin?(O.plugin=S.postcssPlugin,O.setMessage()):S.postcssVersion}catch(E){console&&console.error&&console.error(E)}return O}prepareVisitors(){this.listeners={};let O=(k,S,E)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([k,E])};for(let k of this.plugins)if(typeof k=="object")for(let S in k){if(!a[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${k.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[S])if(typeof k[S]=="object")for(let E in k[S])E==="*"?O(k,S,k[S][E]):O(k,S+"-"+E.toLowerCase(),k[S][E]);else typeof k[S]=="function"&&O(k,S,k[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let O=0;O<this.plugins.length;O++){let k=this.plugins[O],S=this.runOnRoot(k);if(w(S))try{await S}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[u];){O[u]=!0;let k=[v(O)];for(;k.length>0;){let S=this.visitTick(k);if(w(S))try{await S}catch(E){let I=k[k.length-1].node;throw this.handleError(E,I)}}}if(this.listeners.OnceExit)for(let[k,S]of this.listeners.OnceExit){this.result.lastPlugin=k;try{if(O.type==="document"){let E=O.nodes.map(I=>S(I,this.helpers));await Promise.all(E)}else await S(O,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(O){this.result.lastPlugin=O;try{if(typeof O=="object"&&O.Once){if(this.result.root.type==="document"){let k=this.result.root.nodes.map(S=>O.Once(S,this.helpers));return w(k[0])?Promise.all(k):k}return O.Once(this.result.root,this.helpers)}else if(typeof O=="function")return O(this.result.root,this.result)}catch(k){throw this.handleError(k)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let O=this.result.opts,k=m;O.syntax&&(k=O.syntax.stringify),O.stringifier&&(k=O.stringifier),k.stringify&&(k=k.stringify);let S=new c(k,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 O of this.plugins){let k=this.runOnRoot(O);if(w(k))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let O=this.result.root;for(;!O[u];)O[u]=!0,this.walkSync(O);if(this.listeners.OnceExit)if(O.type==="document")for(let k of O.nodes)this.visitSync(this.listeners.OnceExit,k);else this.visitSync(this.listeners.OnceExit,O)}return this.result}then(O,k){return this.async().then(O,k)}toString(){return this.css}visitSync(O,k){for(let[S,E]of O){this.result.lastPlugin=S;let I;try{I=E(k,this.helpers)}catch(R){throw this.handleError(R,k.proxyOf)}if(k.type!=="root"&&k.type!=="document"&&!k.parent)return!0;if(w(I))throw this.getAsyncError()}}visitTick(O){let k=O[O.length-1],{node:S,visitors:E}=k;if(S.type!=="root"&&S.type!=="document"&&!S.parent){O.pop();return}if(E.length>0&&k.visitorIndex<E.length){let[R,M]=E[k.visitorIndex];k.visitorIndex+=1,k.visitorIndex===E.length&&(k.visitors=[],k.visitorIndex=0),this.result.lastPlugin=R;try{return M(S.toProxy(),this.helpers)}catch(N){throw this.handleError(N,S)}}if(k.iterator!==0){let R=k.iterator,M;for(;M=S.nodes[S.indexes[R]];)if(S.indexes[R]+=1,!M[u]){M[u]=!0,O.push(v(M));return}k.iterator=0,delete S.indexes[R]}let I=k.events;for(;k.eventIndex<I.length;){let R=I[k.eventIndex];if(k.eventIndex+=1,R===l){S.nodes&&S.nodes.length&&(S[u]=!0,k.iterator=S.getIterator());return}else if(this.listeners[R]){k.visitors=this.listeners[R];return}}O.pop()}walkSync(O){O[u]=!0;let k=y(O);for(let S of k)if(S===l)O.nodes&&O.each(E=>{E[u]||this.walkSync(E)});else{let E=this.listeners[S];if(E&&this.visitSync(E,O.toProxy()))return}}warnings(){return this.sync().warnings()}};b.registerPostcss=T=>{x=T},s.exports=b,b.default=b,p.registerLazyResult(b),o.registerLazyResult(b)}),gs=A((e,s)=>{"use strict";var n=nr(),o=st(),c=jt(),i=et(),h=ir(),p=class{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,u=o;try{m=u(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"}constructor(m,u,r){u=u.toString(),this.stringified=!1,this._processor=m,this._css=u,this._opts=r,this._map=void 0;let t,f=i;this.result=new c(this._processor,t,this._opts),this.result.css=u;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let d=new n(f,t,this._opts,u);if(d.isMap()){let[l,w]=d.generate();l&&(this.result.css=l),w&&(this.result.map=w)}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,u){return this.async().then(m,u)}toString(){return this._css}warnings(){return[]}};s.exports=p,p.default=p}),ws=A((e,s)=>{"use strict";var n=At(),o=ar(),c=gs(),i=We(),h=class{constructor(p=[]){this.version="8.5.6",this.plugins=this.normalize(p)}normalize(p){let m=[];for(let u of p)if(u.postcss===!0?u=u():u.postcss&&(u=u.postcss),typeof u=="object"&&Array.isArray(u.plugins))m=m.concat(u.plugins);else if(typeof u=="object"&&u.postcssPlugin)m.push(u);else if(typeof u=="function")m.push(u);else if(!(typeof u=="object"&&(u.parse||u.stringify)))throw new Error(u+" is not a PostCSS plugin");return m}process(p,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new c(this,p,m):new o(this,p,m)}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}};s.exports=h,h.default=h,i.registerProcessor(h),n.registerProcessor(h)}),It=A((e,s)=>{"use strict";var n=Ct(),o=Ne(),c=he(),i=kt(),h=rt(),p=At(),m=ys(),u=Le(),r=ar(),t=sr(),f=tt(),a=st(),d=ws(),l=jt(),w=We(),y=St(),v=et(),g=or();function x(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new d(b)}x.plugin=function(b,T){let O=!1;function k(...E){console&&console.warn&&!O&&(O=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let I=T(...E);return I.postcssPlugin=b,I.postcssVersion=new d().version,I}let S;return Object.defineProperty(k,"postcss",{get(){return S||(S=k()),S}}),k.process=function(E,I,R){return x([k(R)]).process(E,I)},k},x.stringify=v,x.parse=a,x.fromJSON=m,x.list=t,x.comment=b=>new o(b),x.atRule=b=>new n(b),x.decl=b=>new h(b),x.rule=b=>new y(b),x.root=b=>new w(b),x.document=b=>new p(b),x.CssSyntaxError=i,x.Declaration=h,x.Container=c,x.Processor=d,x.Document=p,x.Comment=o,x.Warning=g,x.AtRule=n,x.Result=l,x.Input=u,x.Rule=y,x.Root=w,x.Node=f,r.registerPostcss(x),s.exports=x,x.default=x}),bs=A((e,s)=>{var{Container:n}=It(),o=class extends n{constructor(c){super(c),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};s.exports=o}),xs=A((e,s)=>{"use strict";var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,o=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,c=/.[\r\n"'(/\\]/,i=/[\da-f]/i,h=/[\n\f\r]/g;s.exports=function(p,m={}){let u=p.css.valueOf(),r=m.ignoreErrors,t,f,a,d,l,w,y,v,g,x=u.length,b=0,T=[],O=[],k;function S(){return b}function E($){throw p.error("Unclosed "+$,b)}function I(){return O.length===0&&b>=x}function R(){let $=1,P=!1,z=!1;for(;$>0;)f+=1,u.length<=f&&E("interpolation"),t=u.charCodeAt(f),v=u.charCodeAt(f+1),P?!z&&t===P?(P=!1,z=!1):t===92?z=!z:z&&(z=!1):t===39||t===34?P=t:t===125?$-=1:t===35&&v===123&&($+=1)}function M($){if(O.length)return O.pop();if(b>=x)return;let P=$?$.ignoreUnclosed:!1;switch(t=u.charCodeAt(b),t){case 10:case 32:case 9:case 13:case 12:{f=b;do f+=1,t=u.charCodeAt(f);while(t===32||t===10||t===9||t===13||t===12);g=["space",u.slice(b,f)],b=f-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let z=String.fromCharCode(t);g=[z,z,b];break}case 44:{g=["word",",",b,b+1];break}case 40:{if(y=T.length?T.pop()[1]:"",v=u.charCodeAt(b+1),y==="url"&&v!==39&&v!==34){for(k=1,w=!1,f=b+1;f<=u.length-1;){if(v=u.charCodeAt(f),v===92)w=!w;else if(v===40)k+=1;else if(v===41&&(k-=1,k===0))break;f+=1}d=u.slice(b,f+1),g=["brackets",d,b,f],b=f}else f=u.indexOf(")",b+1),d=u.slice(b,f+1),f===-1||c.test(d)?g=["(","(",b]:(g=["brackets",d,b,f],b=f);break}case 39:case 34:{for(a=t,f=b,w=!1;f<x&&(f++,f===x&&E("string"),t=u.charCodeAt(f),v=u.charCodeAt(f+1),!(!w&&t===a));)t===92?w=!w:w?w=!1:t===35&&v===123&&R();g=["string",u.slice(b,f+1),b,f],b=f;break}case 64:{n.lastIndex=b+1,n.test(u),n.lastIndex===0?f=u.length-1:f=n.lastIndex-2,g=["at-word",u.slice(b,f+1),b,f],b=f;break}case 92:{for(f=b,l=!0;u.charCodeAt(f+1)===92;)f+=1,l=!l;if(t=u.charCodeAt(f+1),l&&t!==47&&t!==32&&t!==10&&t!==9&&t!==13&&t!==12&&(f+=1,i.test(u.charAt(f)))){for(;i.test(u.charAt(f+1));)f+=1;u.charCodeAt(f+1)===32&&(f+=1)}g=["word",u.slice(b,f+1),b,f],b=f;break}default:v=u.charCodeAt(b+1),t===35&&v===123?(f=b,R(),d=u.slice(b,f+1),g=["word",d,b,f],b=f):t===47&&v===42?(f=u.indexOf("*/",b+2)+1,f===0&&(r||P?f=u.length:E("comment")),g=["comment",u.slice(b,f+1),b,f],b=f):t===47&&v===47?(h.lastIndex=b+1,h.test(u),h.lastIndex===0?f=u.length-1:f=h.lastIndex-2,d=u.slice(b,f+1),g=["comment",d,b,f,"inline"],b=f):(o.lastIndex=b+1,o.test(u),o.lastIndex===0?f=u.length-1:f=o.lastIndex-2,g=["word",u.slice(b,f+1),b,f],T.push(g),b=f);break}return b++,g}function N($){O.push($)}return{back:N,endOfFile:I,nextToken:M,position:S}}}),ks=A((e,s)=>{var{Comment:n}=It(),o=Et(),c=bs(),i=xs(),h=class extends o{atrule(p){let m=p[1],u=p;for(;!this.tokenizer.endOfFile();){let r=this.tokenizer.nextToken();if(r[0]==="word"&&r[2]===u[3]+1)m+=r[1],u=r;else{this.tokenizer.back(r);break}}super.atrule(["at-word",m,p[2],u[3]])}comment(p){if(p[4]==="inline"){let m=new n;this.init(m,p[2]),m.raws.inline=!0;let u=this.input.fromOffset(p[3]);m.source.end={column:u.col,line:u.line,offset:p[3]+1};let r=p[1].slice(2);if(/^\s*$/.test(r))m.text="",m.raws.left=r,m.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/),f=t[2].replace(/(\*\/|\/\*)/g,"*//*");m.text=f,m.raws.left=t[1],m.raws.right=t[3],m.raws.text=t[2]}}else super.comment(p)}createTokenizer(){this.tokenizer=i(this.input)}raw(p,m,u,r){if(super.raw(p,m,u,r),p.raws[m]){let t=p.raws[m].raw;p.raws[m].raw=u.reduce((f,a)=>{if(a[0]==="comment"&&a[4]==="inline"){let d=a[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return f+"/*"+d+"*/"}else return f+a[1]},""),t!==p.raws[m].raw&&(p.raws[m].scss=t)}}rule(p){let m=!1,u=0,r="";for(let t of p)if(m)t[0]!=="comment"&&t[0]!=="{"&&(r+=t[1]);else{if(t[0]==="space"&&t[1].includes(`
|
|
26
|
+
`))break;t[0]==="("?u+=1:t[0]===")"?u-=1:u===0&&t[0]===":"&&(m=!0)}if(!m||r.trim()===""||/^[#:A-Za-z-]/.test(r))super.rule(p);else{p.pop();let t=new c;this.init(t,p[0][2]);let f;for(let d=p.length-1;d>=0;d--)if(p[d][0]!=="space"){f=p[d];break}if(f[3]){let d=this.input.fromOffset(f[3]);t.source.end={column:d.col,line:d.line,offset:f[3]+1}}else{let d=this.input.fromOffset(f[2]);t.source.end={column:d.col,line:d.line,offset:f[2]+1}}for(;p[0][0]!=="word";)t.raws.before+=p.shift()[1];if(p[0][2]){let d=this.input.fromOffset(p[0][2]);t.source.start={column:d.col,line:d.line,offset:p[0][2]}}for(t.prop="";p.length;){let d=p[0][0];if(d===":"||d==="space"||d==="comment")break;t.prop+=p.shift()[1]}t.raws.between="";let a;for(;p.length;)if(a=p.shift(),a[0]===":"){t.raws.between+=a[1];break}else t.raws.between+=a[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(p),this.precheckMissedSemicolon(p);for(let d=p.length-1;d>0;d--){if(a=p[d],a[1]==="!important"){t.important=!0;let l=this.stringFrom(p,d);l=this.spacesFromEnd(p)+l,l!==" !important"&&(t.raws.important=l);break}else if(a[1]==="important"){let l=p.slice(0),w="";for(let y=d;y>0;y--){let v=l[y][0];if(w.trim().indexOf("!")===0&&v!=="space")break;w=l.pop()[1]+w}w.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=w,p=l)}if(a[0]!=="space"&&a[0]!=="comment")break}this.raw(t,"value",p),t.value.includes(":")&&this.checkMissedSemicolon(p),this.current=t}}};s.exports=h}),Os=A((e,s)=>{var{Input:n}=It(),o=ks();s.exports=function(c,i){let h=new n(c,i),p=new o(h);return p.parse(),p.root}}),lr=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function s(n){this.after=n.after,this.before=n.before,this.type=n.type,this.value=n.value,this.sourceIndex=n.sourceIndex}e.default=s}),cr=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=lr(),n=o(s);function o(i){return i&&i.__esModule?i:{default:i}}function c(i){var h=this;this.constructor(i),this.nodes=i.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(p){p.parent=h})}c.prototype=Object.create(n.default.prototype),c.constructor=n.default,c.prototype.walk=function(i,h){for(var p=typeof i=="string"||i instanceof RegExp,m=p?h:i,u=typeof i=="string"?new RegExp(i):i,r=0;r<this.nodes.length;r++){var t=this.nodes[r],f=p?u.test(t.type):!0;if(f&&m&&m(t,r,this.nodes)===!1||t.nodes&&t.walk(i,h)===!1)return!1}return!0},c.prototype.each=function(){for(var i=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],h=0;h<this.nodes.length;h++){var p=this.nodes[h];if(i(p,h,this.nodes)===!1)return!1}return!0},e.default=c}),Ts=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=h,e.parseMediaQuery=p,e.parseMediaList=m;var s=lr(),n=i(s),o=cr(),c=i(o);function i(u){return u&&u.__esModule?u:{default:u}}function h(u){var r=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[{mode:"normal",character:null}],f=[],a=0,d="",l=null,w=null,y=r,v=u;u[0]==="("&&u[u.length-1]===")"&&(v=u.substring(1,u.length-1),y++);for(var g=0;g<v.length;g++){var x=v[g];if((x==="'"||x==='"')&&(t[a].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:x}),a++):t[a].mode==="string"&&t[a].character===x&&v[g-1]!=="\\"&&(t.pop(),a--)),x==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),a++):x==="}"&&(t.pop(),a--),t[a].mode==="normal"&&x===":"){var b=v.substring(g+1);w={type:"value",before:/^(\s*)/.exec(b)[1],after:/(\s*)$/.exec(b)[1],value:b.trim()},w.sourceIndex=w.before.length+g+1+y,l={type:"colon",sourceIndex:g+y,after:w.before,value:":"};break}d+=x}return d={type:"media-feature",before:/^(\s*)/.exec(d)[1],after:/(\s*)$/.exec(d)[1],value:d.trim()},d.sourceIndex=d.before.length+y,f.push(d),l!==null&&(l.before=d.after,f.push(l)),w!==null&&f.push(w),f}function p(u){var r=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],f=0,a=!1,d=void 0;function l(){return{before:"",after:"",value:""}}d=l();for(var w=0;w<u.length;w++){var y=u[w];a?(d.value+=y,(y==="{"||y==="(")&&f++,(y===")"||y==="}")&&f--):y.search(/\s/)!==-1?d.before+=y:(y==="("&&(d.type="media-feature-expression",f++),d.value=y,d.sourceIndex=r+w,a=!0),a&&f===0&&(y===")"||w===u.length-1||u[w+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(d.value)!==-1&&(d.type="keyword"),d.type==="media-feature-expression"&&(d.nodes=h(d.value,d.sourceIndex)),t.push(Array.isArray(d.nodes)?new c.default(d):new n.default(d)),d=l(),a=!1)}for(var v=0;v<t.length;v++)if(d=t[v],v>0&&(t[v-1].after=d.before),d.type===void 0){if(v>0){if(t[v-1].type==="media-feature-expression"){d.type="keyword";continue}if(t[v-1].value==="not"||t[v-1].value==="only"){d.type="media-type";continue}if(t[v-1].value==="and"){d.type="media-feature-expression";continue}t[v-1].type==="media-type"&&(t[v+1]?d.type=t[v+1].type==="media-feature-expression"?"keyword":"media-feature-expression":d.type="media-feature-expression")}if(v===0){if(!t[v+1]){d.type="media-type";continue}if(t[v+1]&&(t[v+1].type==="media-feature-expression"||t[v+1].type==="keyword")){d.type="media-type";continue}if(t[v+2]){if(t[v+2].type==="media-feature-expression"){d.type="media-type",t[v+1].type="keyword";continue}if(t[v+2].type==="keyword"){d.type="keyword",t[v+1].type="media-type";continue}}if(t[v+3]&&t[v+3].type==="media-feature-expression"){d.type="keyword",t[v+1].type="media-type",t[v+2].type="keyword";continue}}}return t}function m(u){var r=[],t=0,f=0,a=/^(\s*)url\s*\(/.exec(u);if(a!==null){for(var d=a[0].length,l=1;l>0;){var w=u[d];w==="("&&l++,w===")"&&l--,d++}r.unshift(new n.default({type:"url",value:u.substring(0,d).trim(),sourceIndex:a[1].length,before:a[1],after:/^(\s*)/.exec(u.substring(d))[1]})),t=d}for(var y=t;y<u.length;y++){var v=u[y];if(v==="("&&f++,v===")"&&f--,f===0&&v===","){var g=u.substring(t,y),x=/^(\s*)/.exec(g)[1];r.push(new c.default({type:"media-query",value:g.trim(),sourceIndex:t+x.length,nodes:p(g,t),before:x,after:/(\s*)$/.exec(g)[1]})),t=y+1}}var b=u.substring(t),T=/^(\s*)/.exec(b)[1];return r.push(new c.default({type:"media-query",value:b.trim(),sourceIndex:t+T.length,nodes:p(b,t),before:T,after:/(\s*)$/.exec(b)[1]})),r}}),Cs=A(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var s=cr(),n=c(s),o=Ts();function c(h){return h&&h.__esModule?h:{default:h}}function i(h){return new n.default({nodes:(0,o.parseMediaList)(h),type:"media-query-list",value:h.trim()})}}),pr=A((e,s)=>{s.exports=function(n,o){if(o=typeof o=="number"?o:1/0,!o)return Array.isArray(n)?n.map(function(i){return i}):n;return c(n,1);function c(i,h){return i.reduce(function(p,m){return Array.isArray(m)&&h<o?p.concat(c(m,h+1)):p.concat(m)},[])}}}),hr=A((e,s)=>{s.exports=function(n,o){for(var c=-1,i=[];(c=n.indexOf(o,c+1))!==-1;)i.push(c);return i}}),fr=A((e,s)=>{"use strict";function n(i,h){for(var p=1,m=i.length,u=i[0],r=i[0],t=1;t<m;++t)if(r=u,u=i[t],h(u,r)){if(t===p){p++;continue}i[p++]=u}return i.length=p,i}function o(i){for(var h=1,p=i.length,m=i[0],u=i[0],r=1;r<p;++r,u=m)if(u=m,m=i[r],m!==u){if(r===h){h++;continue}i[h++]=m}return i.length=h,i}function c(i,h,p){return i.length===0?i:h?(p||i.sort(h),n(i,h)):(p||i.sort(),o(i))}s.exports=c}),ke=A((e,s)=>{"use strict";e.__esModule=!0;var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function o(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}var c=function h(p,m){if((typeof p>"u"?"undefined":n(p))!=="object")return p;var u=new p.constructor;for(var r in p)if(p.hasOwnProperty(r)){var t=p[r],f=typeof t>"u"?"undefined":n(t);r==="parent"&&f==="object"?m&&(u[r]=m):t instanceof Array?u[r]=t.map(function(a){return h(a,u)}):u[r]=h(t,u)}return u},i=(function(){function h(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o(this,h);for(var m in p)this[m]=p[m];var u=p.spaces;u=u===void 0?{}:u;var r=u.before,t=r===void 0?"":r,f=u.after,a=f===void 0?"":f;this.spaces={before:t,after:a}}return h.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},h.prototype.replaceWith=function(){if(this.parent){for(var p in arguments)this.parent.insertBefore(this,arguments[p]);this.remove()}return this},h.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},h.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},h.prototype.clone=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=c(this);for(var u in p)m[u]=p[u];return m},h.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},h})();e.default=i,s.exports=e.default}),J=A(e=>{"use strict";e.__esModule=!0;var s=e.TAG="tag",n=e.STRING="string",o=e.SELECTOR="selector",c=e.ROOT="root",i=e.PSEUDO="pseudo",h=e.NESTING="nesting",p=e.ID="id",m=e.COMMENT="comment",u=e.COMBINATOR="combinator",r=e.CLASS="class",t=e.ATTRIBUTE="attribute",f=e.UNIVERSAL="universal"}),Pt=A((e,s)=>{"use strict";e.__esModule=!0;var n=(function(){function a(d,l){for(var w=0;w<l.length;w++){var y=l[w];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(d,y.key,y)}}return function(d,l,w){return l&&a(d.prototype,l),w&&a(d,w),d}})(),o=ke(),c=m(o),i=J(),h=p(i);function p(a){if(a&&a.__esModule)return a;var d={};if(a!=null)for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(d[l]=a[l]);return d.default=a,d}function m(a){return a&&a.__esModule?a:{default:a}}function u(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function r(a,d){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:a}function t(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}var f=(function(a){t(d,a);function d(l){u(this,d);var w=r(this,a.call(this,l));return w.nodes||(w.nodes=[]),w}return d.prototype.append=function(l){return l.parent=this,this.nodes.push(l),this},d.prototype.prepend=function(l){return l.parent=this,this.nodes.unshift(l),this},d.prototype.at=function(l){return this.nodes[l]},d.prototype.index=function(l){return typeof l=="number"?l:this.nodes.indexOf(l)},d.prototype.removeChild=function(l){l=this.index(l),this.at(l).parent=void 0,this.nodes.splice(l,1);var w=void 0;for(var y in this.indexes)w=this.indexes[y],w>=l&&(this.indexes[y]=w-1);return this},d.prototype.removeAll=function(){for(var y=this.nodes,l=Array.isArray(y),w=0,y=l?y:y[Symbol.iterator]();;){var v;if(l){if(w>=y.length)break;v=y[w++]}else{if(w=y.next(),w.done)break;v=w.value}var g=v;g.parent=void 0}return this.nodes=[],this},d.prototype.empty=function(){return this.removeAll()},d.prototype.insertAfter=function(l,w){var y=this.index(l);this.nodes.splice(y+1,0,w);var v=void 0;for(var g in this.indexes)v=this.indexes[g],y<=v&&(this.indexes[g]=v+this.nodes.length);return this},d.prototype.insertBefore=function(l,w){var y=this.index(l);this.nodes.splice(y,0,w);var v=void 0;for(var g in this.indexes)v=this.indexes[g],y<=v&&(this.indexes[g]=v+this.nodes.length);return this},d.prototype.each=function(l){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var w=this.lastEach;if(this.indexes[w]=0,!!this.length){for(var y=void 0,v=void 0;this.indexes[w]<this.length&&(y=this.indexes[w],v=l(this.at(y),y),v!==!1);)this.indexes[w]+=1;if(delete this.indexes[w],v===!1)return!1}},d.prototype.walk=function(l){return this.each(function(w,y){var v=l(w,y);if(v!==!1&&w.length&&(v=w.walk(l)),v===!1)return!1})},d.prototype.walkAttributes=function(l){var w=this;return this.walk(function(y){if(y.type===h.ATTRIBUTE)return l.call(w,y)})},d.prototype.walkClasses=function(l){var w=this;return this.walk(function(y){if(y.type===h.CLASS)return l.call(w,y)})},d.prototype.walkCombinators=function(l){var w=this;return this.walk(function(y){if(y.type===h.COMBINATOR)return l.call(w,y)})},d.prototype.walkComments=function(l){var w=this;return this.walk(function(y){if(y.type===h.COMMENT)return l.call(w,y)})},d.prototype.walkIds=function(l){var w=this;return this.walk(function(y){if(y.type===h.ID)return l.call(w,y)})},d.prototype.walkNesting=function(l){var w=this;return this.walk(function(y){if(y.type===h.NESTING)return l.call(w,y)})},d.prototype.walkPseudos=function(l){var w=this;return this.walk(function(y){if(y.type===h.PSEUDO)return l.call(w,y)})},d.prototype.walkTags=function(l){var w=this;return this.walk(function(y){if(y.type===h.TAG)return l.call(w,y)})},d.prototype.walkUniversals=function(l){var w=this;return this.walk(function(y){if(y.type===h.UNIVERSAL)return l.call(w,y)})},d.prototype.split=function(l){var w=this,y=[];return this.reduce(function(v,g,x){var b=l.call(w,g);return y.push(g),b?(v.push(y),y=[]):x===w.length-1&&v.push(y),v},[])},d.prototype.map=function(l){return this.nodes.map(l)},d.prototype.reduce=function(l,w){return this.nodes.reduce(l,w)},d.prototype.every=function(l){return this.nodes.every(l)},d.prototype.some=function(l){return this.nodes.some(l)},d.prototype.filter=function(l){return this.nodes.filter(l)},d.prototype.sort=function(l){return this.nodes.sort(l)},d.prototype.toString=function(){return this.map(String).join("")},n(d,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),d})(c.default);e.default=f,s.exports=e.default}),Ss=A((e,s)=>{"use strict";e.__esModule=!0;var n=Pt(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.ROOT,a}return t.prototype.toString=function(){var f=this.reduce(function(a,d){var l=String(d);return l?a+l+",":""},"").slice(0,-1);return this.trailingComma?f+",":f},t})(o.default);e.default=u,s.exports=e.default}),_s=A((e,s)=>{"use strict";e.__esModule=!0;var n=Pt(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.SELECTOR,a}return t})(o.default);e.default=u,s.exports=e.default}),ze=A((e,s)=>{"use strict";e.__esModule=!0;var n=(function(){function r(t,f){for(var a=0;a<f.length;a++){var d=f[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,d.key,d)}}return function(t,f,a){return f&&r(t.prototype,f),a&&r(t,a),t}})(),o=ke(),c=i(o);function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(){return h(this,t),p(this,r.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},n(t,[{key:"ns",get:function(){var f=this.namespace;return f?(typeof f=="string"?f:"")+"|":""}}]),t})(c.default);e.default=u,s.exports=e.default}),Es=A((e,s)=>{"use strict";e.__esModule=!0;var n=ze(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.CLASS,a}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},t})(o.default);e.default=u,s.exports=e.default}),As=A((e,s)=>{"use strict";e.__esModule=!0;var n=ke(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.COMMENT,a}return t})(o.default);e.default=u,s.exports=e.default}),js=A((e,s)=>{"use strict";e.__esModule=!0;var n=ze(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.ID,a}return t.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},t})(o.default);e.default=u,s.exports=e.default}),Is=A((e,s)=>{"use strict";e.__esModule=!0;var n=ze(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.TAG,a}return t})(o.default);e.default=u,s.exports=e.default}),Ps=A((e,s)=>{"use strict";e.__esModule=!0;var n=ke(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.STRING,a}return t})(o.default);e.default=u,s.exports=e.default}),Ms=A((e,s)=>{"use strict";e.__esModule=!0;var n=Pt(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.PSEUDO,a}return t.prototype.toString=function(){var f=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),f,this.spaces.after].join("")},t})(o.default);e.default=u,s.exports=e.default}),$s=A((e,s)=>{"use strict";e.__esModule=!0;var n=ze(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.ATTRIBUTE,a.raws={},a}return t.prototype.toString=function(){var f=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&f.push(this.operator),this.value&&f.push(this.value),this.raws.insensitive?f.push(this.raws.insensitive):this.insensitive&&f.push(" i"),f.push("]"),f.concat(this.spaces.after).join("")},t})(o.default);e.default=u,s.exports=e.default}),Rs=A((e,s)=>{"use strict";e.__esModule=!0;var n=ze(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.UNIVERSAL,a.value="*",a}return t})(o.default);e.default=u,s.exports=e.default}),Ns=A((e,s)=>{"use strict";e.__esModule=!0;var n=ke(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.COMBINATOR,a}return t})(o.default);e.default=u,s.exports=e.default}),Ls=A((e,s)=>{"use strict";e.__esModule=!0;var n=ke(),o=i(n),c=J();function i(r){return r&&r.__esModule?r:{default:r}}function h(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function p(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function m(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var u=(function(r){m(t,r);function t(f){h(this,t);var a=p(this,r.call(this,f));return a.type=c.NESTING,a.value="&",a}return t})(o.default);e.default=u,s.exports=e.default}),Ws=A((e,s)=>{"use strict";e.__esModule=!0,e.default=n;function n(o){return o.sort(function(c,i){return c-i})}s.exports=e.default}),zs=A((e,s)=>{"use strict";e.__esModule=!0,e.default=I;var n=39,o=34,c=92,i=47,h=10,p=32,m=12,u=9,r=13,t=43,f=62,a=126,d=124,l=44,w=40,y=41,v=91,g=93,x=59,b=42,T=58,O=38,k=64,S=/[ \n\t\r\{\(\)'"\\;/]/g,E=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function I(R){for(var M=[],N=R.css.valueOf(),$=void 0,P=void 0,z=void 0,se=void 0,te=void 0,re=void 0,fe=void 0,de=void 0,me=void 0,q=void 0,Te=void 0,pt=N.length,j=-1,C=1,_=0,L=function(W,B){if(R.safe)N+=B,P=N.length-1;else throw R.error("Unclosed "+W,C,_-j,_)};_<pt;){switch($=N.charCodeAt(_),$===h&&(j=_,C+=1),$){case h:case p:case u:case r:case m:P=_;do P+=1,$=N.charCodeAt(P),$===h&&(j=P,C+=1);while($===p||$===h||$===u||$===r||$===m);M.push(["space",N.slice(_,P),C,_-j,_]),_=P-1;break;case t:case f:case a:case d:P=_;do P+=1,$=N.charCodeAt(P);while($===t||$===f||$===a||$===d);M.push(["combinator",N.slice(_,P),C,_-j,_]),_=P-1;break;case b:M.push(["*","*",C,_-j,_]);break;case O:M.push(["&","&",C,_-j,_]);break;case l:M.push([",",",",C,_-j,_]);break;case v:M.push(["[","[",C,_-j,_]);break;case g:M.push(["]","]",C,_-j,_]);break;case T:M.push([":",":",C,_-j,_]);break;case x:M.push([";",";",C,_-j,_]);break;case w:M.push(["(","(",C,_-j,_]);break;case y:M.push([")",")",C,_-j,_]);break;case n:case o:z=$===n?"'":'"',P=_;do for(q=!1,P=N.indexOf(z,P+1),P===-1&&L("quote",z),Te=P;N.charCodeAt(Te-1)===c;)Te-=1,q=!q;while(q);M.push(["string",N.slice(_,P+1),C,_-j,C,P-j,_]),_=P;break;case k:S.lastIndex=_+1,S.test(N),S.lastIndex===0?P=N.length-1:P=S.lastIndex-2,M.push(["at-word",N.slice(_,P+1),C,_-j,C,P-j,_]),_=P;break;case c:for(P=_,fe=!0;N.charCodeAt(P+1)===c;)P+=1,fe=!fe;$=N.charCodeAt(P+1),fe&&$!==i&&$!==p&&$!==h&&$!==u&&$!==r&&$!==m&&(P+=1),M.push(["word",N.slice(_,P+1),C,_-j,C,P-j,_]),_=P;break;default:$===i&&N.charCodeAt(_+1)===b?(P=N.indexOf("*/",_+2)+1,P===0&&L("comment","*/"),re=N.slice(_,P+1),se=re.split(`
|
|
27
|
+
`),te=se.length-1,te>0?(de=C+te,me=P-se[te].length):(de=C,me=j),M.push(["comment",re,C,_-j,de,P-me,_]),j=me,C=de,_=P):(E.lastIndex=_+1,E.test(N),E.lastIndex===0?P=N.length-1:P=E.lastIndex-2,M.push(["word",N.slice(_,P+1),C,_-j,C,P-j,_]),_=P);break}_++}return M}s.exports=e.default}),qs=A((e,s)=>{"use strict";e.__esModule=!0;var n=(function(){function j(C,_){for(var L=0;L<_.length;L++){var W=_[L];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(C,W.key,W)}}return function(C,_,L){return _&&j(C.prototype,_),L&&j(C,L),C}})(),o=pr(),c=q(o),i=hr(),h=q(i),p=fr(),m=q(p),u=Ss(),r=q(u),t=_s(),f=q(t),a=Es(),d=q(a),l=As(),w=q(l),y=js(),v=q(y),g=Is(),x=q(g),b=Ps(),T=q(b),O=Ms(),k=q(O),S=$s(),E=q(S),I=Rs(),R=q(I),M=Ns(),N=q(M),$=Ls(),P=q($),z=Ws(),se=q(z),te=zs(),re=q(te),fe=J(),de=me(fe);function me(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var _ in j)Object.prototype.hasOwnProperty.call(j,_)&&(C[_]=j[_]);return C.default=j,C}function q(j){return j&&j.__esModule?j:{default:j}}function Te(j,C){if(!(j instanceof C))throw new TypeError("Cannot call a class as a function")}var pt=(function(){function j(C){Te(this,j),this.input=C,this.lossy=C.options.lossless===!1,this.position=0,this.root=new r.default;var _=new f.default;return this.root.append(_),this.current=_,this.lossy?this.tokens=(0,re.default)({safe:C.safe,css:C.css.trim()}):this.tokens=(0,re.default)(C),this.loop()}return j.prototype.attribute=function(){var C="",_=void 0,L=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)C+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~C.indexOf("]")&&this.error("Expected a closing square bracket.");var W=C.split(/((?:[*~^$|]?=))([^]*)/),B=W[0].split(/(\|)/g),X={operator:W[1],value:W[2],source:{start:{line:L[2],column:L[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:L[4]};if(B.length>1?(B[0]===""&&(B[0]=!0),X.attribute=this.parseValue(B[2]),X.namespace=this.parseNamespace(B[0])):X.attribute=this.parseValue(W[0]),_=new E.default(X),W[2]){var ne=W[2].split(/(\s+i\s*?)$/),oe=ne[0].trim();_.value=this.lossy?oe:ne[0],ne[1]&&(_.insensitive=!0,this.lossy||(_.raws.insensitive=ne[1])),_.quoted=oe[0]==="'"||oe[0]==='"',_.raws.unquoted=_.quoted?oe.slice(1,-1):oe}this.newNode(_),this.position++},j.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var C=new N.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(C.spaces.before=this.parseSpace(this.currToken[1]),C.source.start.line=this.nextToken[2],C.source.start.column=this.nextToken[3],C.source.end.column=this.nextToken[3],C.source.end.line=this.nextToken[2],C.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?C.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?C.value=this.currToken[1]:this.currToken[0]==="space"&&(C.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(C)},j.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var C=new f.default;this.current.parent.append(C),this.current=C,this.position++},j.prototype.comment=function(){var C=new w.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(C),this.position++},j.prototype.error=function(C){throw new this.input.error(C)},j.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},j.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},j.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},j.prototype.namespace=function(){var C=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(C);if(this.nextToken[0]==="*")return this.position++,this.universal(C)},j.prototype.nesting=function(){this.newNode(new P.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},j.prototype.parentheses=function(){var C=this.current.last;if(C&&C.type===de.PSEUDO){var _=new f.default,L=this.current;C.append(_),this.current=_;var W=1;for(this.position++;this.position<this.tokens.length&&W;)this.currToken[0]==="("&&W++,this.currToken[0]===")"&&W--,W?this.parse():(_.parent.source.end.line=this.currToken[2],_.parent.source.end.column=this.currToken[3],this.position++);W&&this.error("Expected closing parenthesis."),this.current=L}else{var B=1;for(this.position++,C.value+="(";this.position<this.tokens.length&&B;)this.currToken[0]==="("&&B++,this.currToken[0]===")"&&B--,C.value+=this.parseParenthesisToken(this.currToken),this.position++;B&&this.error("Expected closing parenthesis.")}},j.prototype.pseudo=function(){for(var C=this,_="",L=this.currToken;this.currToken&&this.currToken[0]===":";)_+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var W=void 0;this.splitWord(!1,function(B,X){_+=B,W=new k.default({value:_,source:{start:{line:L[2],column:L[3]},end:{line:C.currToken[4],column:C.currToken[5]}},sourceIndex:L[4]}),C.newNode(W),X>1&&C.nextToken&&C.nextToken[0]==="("&&C.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},j.prototype.space=function(){var C=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(C[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(C[1]),this.position++):this.combinator()},j.prototype.string=function(){var C=this.currToken;this.newNode(new T.default({value:this.currToken[1],source:{start:{line:C[2],column:C[3]},end:{line:C[4],column:C[5]}},sourceIndex:C[6]})),this.position++},j.prototype.universal=function(C){var _=this.nextToken;if(_&&_[1]==="|")return this.position++,this.namespace();this.newNode(new R.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),C),this.position++},j.prototype.splitWord=function(C,_){for(var L=this,W=this.nextToken,B=this.currToken[1];W&&W[0]==="word";){this.position++;var X=this.currToken[1];if(B+=X,X.lastIndexOf("\\")===X.length-1){var ne=this.nextToken;ne&&ne[0]==="space"&&(B+=this.parseSpace(ne[1]," "),this.position++)}W=this.nextToken}var oe=(0,h.default)(B,"."),Be=(0,h.default)(B,"#"),Ut=(0,h.default)(B,"#{");Ut.length&&(Be=Be.filter(function(ie){return!~Ut.indexOf(ie)}));var ve=(0,se.default)((0,m.default)((0,c.default)([[0],oe,Be])));ve.forEach(function(ie,Ce){var Fe=ve[Ce+1]||B.length,De=B.slice(ie,Fe);if(Ce===0&&_)return _.call(L,De,ve.length);var Ue=void 0;~oe.indexOf(ie)?Ue=new d.default({value:De.slice(1),source:{start:{line:L.currToken[2],column:L.currToken[3]+ie},end:{line:L.currToken[4],column:L.currToken[3]+(Fe-1)}},sourceIndex:L.currToken[6]+ve[Ce]}):~Be.indexOf(ie)?Ue=new v.default({value:De.slice(1),source:{start:{line:L.currToken[2],column:L.currToken[3]+ie},end:{line:L.currToken[4],column:L.currToken[3]+(Fe-1)}},sourceIndex:L.currToken[6]+ve[Ce]}):Ue=new x.default({value:De,source:{start:{line:L.currToken[2],column:L.currToken[3]+ie},end:{line:L.currToken[4],column:L.currToken[3]+(Fe-1)}},sourceIndex:L.currToken[6]+ve[Ce]}),L.newNode(Ue,C)}),this.position++},j.prototype.word=function(C){var _=this.nextToken;return _&&_[1]==="|"?(this.position++,this.namespace()):this.splitWord(C)},j.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},j.prototype.parse=function(C){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":C&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},j.prototype.parseNamespace=function(C){if(this.lossy&&typeof C=="string"){var _=C.trim();return _.length?_:!0}return C},j.prototype.parseSpace=function(C,_){return this.lossy?_||"":C},j.prototype.parseValue=function(C){return this.lossy&&C&&typeof C=="string"?C.trim():C},j.prototype.parseParenthesisToken=function(C){return this.lossy?C[0]==="space"?this.parseSpace(C[1]," "):this.parseValue(C[1]):C[1]},j.prototype.newNode=function(C,_){return _&&(C.namespace=this.parseNamespace(_)),this.spaces&&(C.spaces.before=this.spaces,this.spaces=""),this.current.append(C)},n(j,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),j})();e.default=pt,s.exports=e.default}),Bs=A((e,s)=>{"use strict";e.__esModule=!0;var n=(function(){function m(u,r){for(var t=0;t<r.length;t++){var f=r[t];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,r,t){return r&&m(u.prototype,r),t&&m(u,t),u}})(),o=qs(),c=i(o);function i(m){return m&&m.__esModule?m:{default:m}}function h(m,u){if(!(m instanceof u))throw new TypeError("Cannot call a class as a function")}var p=(function(){function m(u){return h(this,m),this.func=u||function(){},this}return m.prototype.process=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=new c.default({css:u,error:function(f){throw new Error(f)},options:r});return this.res=t,this.func(t),this},n(m,[{key:"result",get:function(){return String(this.res)}}]),m})();e.default=p,s.exports=e.default}),ee=A((e,s)=>{"use strict";var n=function(o,c){let i=new o.constructor;for(let h in o){if(!o.hasOwnProperty(h))continue;let p=o[h],m=typeof p;h==="parent"&&m==="object"?c&&(i[h]=c):h==="source"?i[h]=p:p instanceof Array?i[h]=p.map(u=>n(u,i)):h!=="before"&&h!=="after"&&h!=="between"&&h!=="semicolon"&&(m==="object"&&p!==null&&(p=n(p)),i[h]=p)}return i};s.exports=class{constructor(o){o=o||{},this.raws={before:"",after:""};for(let c in o)this[c]=o[c]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(o){o=o||{};let c=n(this);for(let i in o)c[i]=o[i];return c}cloneBefore(o){o=o||{};let c=this.clone(o);return this.parent.insertBefore(this,c),c}cloneAfter(o){o=o||{};let c=this.clone(o);return this.parent.insertAfter(this,c),c}replaceWith(){let o=Array.prototype.slice.call(arguments);if(this.parent){for(let c of o)this.parent.insertBefore(this,c);this.remove()}return this}moveTo(o){return this.cleanRaws(this.root()===o.root()),this.remove(),o.append(this),this}moveBefore(o){return this.cleanRaws(this.root()===o.root()),this.remove(),o.parent.insertBefore(o,this),this}moveAfter(o){return this.cleanRaws(this.root()===o.root()),this.remove(),o.parent.insertAfter(o,this),this}next(){let o=this.parent.index(this);return this.parent.nodes[o+1]}prev(){let o=this.parent.index(this);return this.parent.nodes[o-1]}toJSON(){let o={};for(let c in this){if(!this.hasOwnProperty(c)||c==="parent")continue;let i=this[c];i instanceof Array?o[c]=i.map(h=>typeof h=="object"&&h.toJSON?h.toJSON():h):typeof i=="object"&&i.toJSON?o[c]=i.toJSON():o[c]=i}return o}root(){let o=this;for(;o.parent;)o=o.parent;return o}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}positionInside(o){let c=this.toString(),i=this.source.start.column,h=this.source.start.line;for(let p=0;p<o;p++)c[p]===`
|
|
28
|
+
`?(i=1,h+=1):i+=1;return{line:h,column:i}}positionBy(o){let c=this.source.start;if(Object(o).index)c=this.positionInside(o.index);else if(Object(o).word){let i=this.toString().indexOf(o.word);i!==-1&&(c=this.positionInside(i))}return c}}}),Q=A((e,s)=>{"use strict";var n=ee(),o=class extends n{constructor(c){super(c),this.nodes||(this.nodes=[])}push(c){return c.parent=this,this.nodes.push(c),this}each(c){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach,h,p;if(this.indexes[i]=0,!!this.nodes){for(;this.indexes[i]<this.nodes.length&&(h=this.indexes[i],p=c(this.nodes[h],h),p!==!1);)this.indexes[i]+=1;return delete this.indexes[i],p}}walk(c){return this.each((i,h)=>{let p=c(i,h);return p!==!1&&i.walk&&(p=i.walk(c)),p})}walkType(c,i){if(!c||!i)throw new Error("Parameters {type} and {callback} are required.");let h=typeof c=="function";return this.walk((p,m)=>{if(h&&p instanceof c||!h&&p.type===c)return i.call(this,p,m)})}append(c){return c.parent=this,this.nodes.push(c),this}prepend(c){return c.parent=this,this.nodes.unshift(c),this}cleanRaws(c){if(super.cleanRaws(c),this.nodes)for(let i of this.nodes)i.cleanRaws(c)}insertAfter(c,i){let h=this.index(c),p;this.nodes.splice(h+1,0,i);for(let m in this.indexes)p=this.indexes[m],h<=p&&(this.indexes[m]=p+this.nodes.length);return this}insertBefore(c,i){let h=this.index(c),p;this.nodes.splice(h,0,i);for(let m in this.indexes)p=this.indexes[m],h<=p&&(this.indexes[m]=p+this.nodes.length);return this}removeChild(c){c=this.index(c),this.nodes[c].parent=void 0,this.nodes.splice(c,1);let i;for(let h in this.indexes)i=this.indexes[h],i>=c&&(this.indexes[h]=i-1);return this}removeAll(){for(let c of this.nodes)c.parent=void 0;return this.nodes=[],this}every(c){return this.nodes.every(c)}some(c){return this.nodes.some(c)}index(c){return typeof c=="number"?c:this.nodes.indexOf(c)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let c=this.nodes.map(String).join("");return this.value&&(c=this.value+c),this.raws.before&&(c=this.raws.before+c),this.raws.after&&(c+=this.raws.after),c}};o.registerWalker=c=>{let i="walk"+c.name;i.lastIndexOf("s")!==i.length-1&&(i+="s"),!o.prototype[i]&&(o.prototype[i]=function(h){return this.walkType(c,h)})},s.exports=o}),Fs=A((e,s)=>{"use strict";var n=Q();s.exports=class extends n{constructor(o){super(o),this.type="root"}}}),Ds=A((e,s)=>{"use strict";var n=Q();s.exports=class extends n{constructor(o){super(o),this.type="value",this.unbalanced=0}}}),Us=A((e,s)=>{"use strict";var n=Q(),o=class extends n{constructor(c){super(c),this.type="atword"}toString(){let c=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};n.registerWalker(o),s.exports=o}),Vs=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="colon"}};n.registerWalker(c),s.exports=c}),Gs=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="comma"}};n.registerWalker(c),s.exports=c}),Js=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="comment",this.inline=Object(i).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};n.registerWalker(c),s.exports=c}),Hs=A((e,s)=>{"use strict";var n=Q(),o=class extends n{constructor(c){super(c),this.type="func",this.unbalanced=-1}};n.registerWalker(o),s.exports=o}),Qs=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="number",this.unit=Object(i).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};n.registerWalker(c),s.exports=c}),Ks=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="operator"}};n.registerWalker(c),s.exports=c}),Zs=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="paren",this.parenType=""}};n.registerWalker(c),s.exports=c}),Xs=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="string"}toString(){let i=this.quoted?this.raws.quote:"";return[this.raws.before,i,this.value+"",i,this.raws.after].join("")}};n.registerWalker(c),s.exports=c}),Ys=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="word"}};n.registerWalker(c),s.exports=c}),en=A((e,s)=>{"use strict";var n=Q(),o=ee(),c=class extends o{constructor(i){super(i),this.type="unicode-range"}};n.registerWalker(c),s.exports=c}),tn=A((e,s)=>{"use strict";var n=class extends Error{constructor(o){super(o),this.name=this.constructor.name,this.message=o||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(o).stack}};s.exports=n}),rn=A((e,s)=>{"use strict";var n=/[ \n\t\r\{\(\)'"\\;,/]/g,o=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,c=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,i=/^[a-z0-9]/i,h=/^[a-f0-9?\-]/i,p=tn();s.exports=function(m,u){u=u||{};let r=[],t=m.valueOf(),f=t.length,a=-1,d=1,l=0,w=0,y=null,v,g,x,b,T,O,k,S,E,I,R,M;function N(P){let z=`Unclosed ${P} at line: ${d}, column: ${l-a}, token: ${l}`;throw new p(z)}function $(){let P=`Syntax error at line: ${d}, column: ${l-a}, token: ${l}`;throw new p(P)}for(;l<f;){switch(v=t.charCodeAt(l),v===10&&(a=l,d+=1),v){case 10:case 32:case 9:case 13:case 12:g=l;do g+=1,v=t.charCodeAt(g),v===10&&(a=g,d+=1);while(v===32||v===10||v===9||v===13||v===12);r.push(["space",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1;break;case 58:g=l+1,r.push(["colon",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1;break;case 44:g=l+1,r.push(["comma",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1;break;case 123:r.push(["{","{",d,l-a,d,g-a,l]);break;case 125:r.push(["}","}",d,l-a,d,g-a,l]);break;case 40:w++,y=!y&&w===1&&r.length>0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",d,l-a,d,g-a,l]);break;case 41:w--,y=y&&w>0,r.push([")",")",d,l-a,d,g-a,l]);break;case 39:case 34:x=v===39?"'":'"',g=l;do for(I=!1,g=t.indexOf(x,g+1),g===-1&&N("quote",x),R=g;t.charCodeAt(R-1)===92;)R-=1,I=!I;while(I);r.push(["string",t.slice(l,g+1),d,l-a,d,g-a,l]),l=g;break;case 64:n.lastIndex=l+1,n.test(t),n.lastIndex===0?g=t.length-1:g=n.lastIndex-2,r.push(["atword",t.slice(l,g+1),d,l-a,d,g-a,l]),l=g;break;case 92:g=l,v=t.charCodeAt(g+1),k&&v!==47&&v!==32&&v!==10&&v!==9&&v!==13&&v!==12&&(g+=1),r.push(["word",t.slice(l,g+1),d,l-a,d,g-a,l]),l=g;break;case 43:case 45:case 42:g=l+1,M=t.slice(l+1,g+1);let P=t.slice(l-1,l);if(v===45&&M.charCodeAt(0)===45){g++,r.push(["word",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1;break}r.push(["operator",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1;break;default:if(v===47&&(t.charCodeAt(l+1)===42||u.loose&&!y&&t.charCodeAt(l+1)===47)){if(t.charCodeAt(l+1)===42)g=t.indexOf("*/",l+2)+1,g===0&&N("comment","*/");else{let z=t.indexOf(`
|
|
29
|
+
`,l+2);g=z!==-1?z-1:f}O=t.slice(l,g+1),b=O.split(`
|
|
30
|
+
`),T=b.length-1,T>0?(S=d+T,E=g-b[T].length):(S=d,E=a),r.push(["comment",O,d,l-a,S,g-E,l]),a=E,d=S,l=g}else if(v===35&&!i.test(t.slice(l+1,l+2)))g=l+1,r.push(["#",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1;else if((v===117||v===85)&&t.charCodeAt(l+1)===43){g=l+2;do g+=1,v=t.charCodeAt(g);while(g<f&&h.test(t.slice(g,g+1)));r.push(["unicoderange",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1}else if(v===47)g=l+1,r.push(["operator",t.slice(l,g),d,l-a,d,g-a,l]),l=g-1;else{let z=o;if(v>=48&&v<=57&&(z=c),z.lastIndex=l+1,z.test(t),z.lastIndex===0?g=t.length-1:g=z.lastIndex-2,z===c||v===46){let se=t.charCodeAt(g),te=t.charCodeAt(g+1),re=t.charCodeAt(g+2);(se===101||se===69)&&(te===45||te===43)&&re>=48&&re<=57&&(c.lastIndex=g+2,c.test(t),c.lastIndex===0?g=t.length-1:g=c.lastIndex-2)}r.push(["word",t.slice(l,g+1),d,l-a,d,g-a,l]),l=g}break}l++}return r}}),sn=A((e,s)=>{"use strict";var n=class extends Error{constructor(o){super(o),this.name=this.constructor.name,this.message=o||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(o).stack}};s.exports=n}),nn=A((e,s)=>{"use strict";var n=Fs(),o=Ds(),c=Us(),i=Vs(),h=Gs(),p=Js(),m=Hs(),u=Qs(),r=Ks(),t=Zs(),f=Xs(),a=Ys(),d=en(),l=rn(),w=pr(),y=hr(),v=fr(),g=sn();function x(b){return b.sort((T,O)=>T-O)}s.exports=class{constructor(b,T){let O={loose:!1};this.cache=[],this.input=b,this.options=Object.assign({},O,T),this.position=0,this.unbalanced=0,this.root=new n;let k=new o;this.root.append(k),this.current=k,this.tokens=l(b,this.options)}parse(){return this.loop()}colon(){let b=this.currToken;this.newNode(new i({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comma(){let b=this.currToken;this.newNode(new h({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comment(){let b=!1,T=this.currToken[1].replace(/\/\*|\*\//g,""),O;this.options.loose&&T.startsWith("//")&&(T=T.substring(2),b=!0),O=new p({value:T,inline:b,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(O),this.position++}error(b,T){throw new g(b+` at line: ${T[2]}, column ${T[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let b=this.currToken[1],T;if(b==="+"||b==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return T=new r({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(T)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let b=1,T=this.position+1,O=this.currToken,k;for(;T<this.tokens.length&&b;){let S=this.tokens[T];S[0]==="("&&b++,S[0]===")"&&b--,T++}if(b&&this.error("Expected closing parenthesis",O),k=this.current.last,k&&k.type==="func"&&k.unbalanced<0&&(k.unbalanced=0,this.current=k),this.current.unbalanced++,this.newNode(new t({value:O[1],source:{start:{line:O[2],column:O[3]},end:{line:O[4],column:O[5]}},sourceIndex:O[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let S=this.nextToken,E=this.currToken[1],I={line:this.currToken[2],column:this.currToken[3]};for(;S&&S[0]!==")"&&this.current.unbalanced;)this.position++,E+=this.currToken[1],S=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new a({value:E,source:{start:I,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let b=this.currToken;this.newNode(new t({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",b),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let b=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=b[1],this.position++):(this.spaces=b[1],this.position++)}unicodeRange(){let b=this.currToken;this.newNode(new d({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}splitWord(){let b=this.nextToken,T=this.currToken[1],O=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,k=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,S,E;if(!k.test(T))for(;b&&b[0]==="word";){this.position++;let I=this.currToken[1];T+=I,b=this.nextToken}S=y(T,"@"),E=x(v(w([[0],S]))),E.forEach((I,R)=>{let M=E[R+1]||T.length,N=T.slice(I,M),$;if(~S.indexOf(I))$=new c({value:N.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+E[R]});else if(O.test(this.currToken[1])){let P=N.replace(O,"");$=new u({value:N.replace(P,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+E[R],unit:P})}else $=new(b&&b[0]==="("?m:a)({value:N,source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+(M-1)}},sourceIndex:this.currToken[6]+E[R]}),$.type==="word"?($.isHex=/^#(.+)/.test(N),$.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(N)):this.cache.push(this.current);this.newNode($)}),this.position++}string(){let b=this.currToken,T=this.currToken[1],O=/^(\"|\')/,k=O.test(T),S="",E;k&&(S=T.match(O)[0],T=T.slice(1,T.length-1)),E=new f({value:T,source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6],quoted:k}),E.raws.quote=S,this.newNode(E),this.position++}word(){return this.splitWord()}newNode(b){return this.spaces&&(b.raws.before+=this.spaces,this.spaces=""),this.current.append(b)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),dr={};Xt(dr,{languages:()=>fi,options:()=>vi,parsers:()=>Gr,printers:()=>Ki});var on=(e,s,n,o)=>{if(!(e&&s==null))return s.replaceAll?s.replaceAll(n,o):n.global?s.replace(n,o):s.split(n).join(o)},D=on,mr="string",vr="array",yr="cursor",nt="indent",Mt="align",gr="trim",ot="group",it="fill",at="if-break",wr="indent-if-break",$t="line-suffix",br="line-suffix-boundary",Oe="line",xr="label",Rt="break-parent",kr=new Set([yr,nt,Mt,gr,ot,it,at,wr,$t,br,Oe,xr,Rt]),an=(e,s,n)=>{if(!(e&&s==null))return Array.isArray(s)||typeof s=="string"?s[n<0?s.length+n:n]:s.at(n)},be=an;function un(e){if(typeof e=="string")return mr;if(Array.isArray(e))return vr;if(!e)return;let{type:s}=e;if(kr.has(s))return s}var Pe=un,ln=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function cn(e){let s=e===null?"null":typeof e;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
|
|
31
|
+
Expected it to be 'string' or 'object'.`;if(Pe(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let o=ln([...kr].map(c=>`'${c}'`));return`Unexpected doc.type '${e.type}'.
|
|
32
|
+
Expected it to be ${o}.`}var pn=class extends Error{name="InvalidDocError";constructor(e){super(cn(e)),this.doc=e}},hn=pn;function fn(e,s){if(typeof e=="string")return s(e);let n=new Map;return o(e);function o(i){if(n.has(i))return n.get(i);let h=c(i);return n.set(i,h),h}function c(i){switch(Pe(i)){case vr:return s(i.map(o));case it:return s({...i,parts:i.parts.map(o)});case at:return s({...i,breakContents:o(i.breakContents),flatContents:o(i.flatContents)});case ot:{let{expandedStates:h,contents:p}=i;return h?(h=h.map(o),p=h[0]):p=o(p),s({...i,contents:p,expandedStates:h})}case Mt:case nt:case wr:case xr:case $t:return s({...i,contents:o(i.contents)});case mr:case yr:case gr:case br:case Oe:case Rt:return s(i);default:throw new hn(i)}}}function dn(e){return e.type===Oe&&!e.hard?e.soft?"":" ":e.type===at?e.flatContents:e}function mn(e){return fn(e,dn)}var Nt=()=>{},pe=Nt,Lt=Nt,vn=Nt;function H(e){return pe(e),{type:nt,contents:e}}function Or(e,s){return pe(s),{type:Mt,contents:s,n:e}}function Z(e,s={}){return pe(e),Lt(s.expandedStates,!0),{type:ot,id:s.id,contents:e,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function yn(e){return Or({type:"root"},e)}function Re(e){return Or(-1,e)}function Qe(e){return vn(e),{type:it,parts:e}}function Tr(e,s="",n={}){return pe(e),s!==""&&pe(s),{type:at,breakContents:e,flatContents:s,groupId:n.groupId}}function gn(e){return pe(e),{type:$t,contents:e}}var Wt={type:Rt},wn={type:Oe,hard:!0},U={type:Oe},K={type:Oe,soft:!0},F=[wn,Wt];function ue(e,s){pe(e),Lt(s);let n=[];for(let o=0;o<s.length;o++)o!==0&&n.push(e),n.push(s[o]);return n}function bn(e){return Array.isArray(e)&&e.length>0}var ut=bn,Cr=new Proxy(()=>{},{get:()=>Cr}),xn=Cr,Ve="'",Vt='"';function kn(e,s){let n=s===!0||s===Ve?Ve:Vt,o=n===Ve?Vt:Ve,c=0,i=0;for(let h of e)h===n?c++:h===o&&i++;return c>i?o:n}var On=kn;function Tn(e,s,n){let o=s==='"'?"'":'"',c=D(!1,e,/\\(.)|(["'])/gsu,(i,h,p)=>h===o?h:p===s?"\\"+p:p||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(h)?h:"\\"+h));return s+c+s}var Cn=Tn;function Sn(e,s){xn.ok(/^(?<quote>["']).*\k<quote>$/su.test(e));let n=e.slice(1,-1),o=s.parser==="json"||s.parser==="jsonc"||s.parser==="json5"&&s.quoteProps==="preserve"&&!s.singleQuote?'"':s.__isInHtmlAttribute?"'":On(n,s.singleQuote);return e.charAt(0)===o?e:Cn(n,o,!1)}var Sr=Sn,_n=class extends Error{name="UnexpectedNodeError";constructor(e,s,n="type"){super(`Unexpected ${s} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},En=_n;function An(e){return e?.type==="front-matter"}var Ye=An,jn=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function _r(e,s,n){if(Ye(e)&&e.language==="yaml"&&delete s.value,e.type==="css-comment"&&n.type==="css-root"&&n.nodes.length>0&&((n.nodes[0]===e||Ye(n.nodes[0])&&n.nodes[1]===e)&&(delete s.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||n.type==="css-root"&&be(!1,n.nodes,-1)===e))return null;if(e.type==="value-root"&&delete s.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete s.value,e.type==="css-rule"&&delete s.params,(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&e.value&&(s.value=In(e.value)),e.type==="selector-combinator"&&(s.value=D(!1,s.value,/\s+/gu," ")),e.type==="media-feature"&&(s.value=D(!1,s.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(s.value=s.value.toLowerCase()),e.type==="css-decl"&&(s.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(s.name=e.name.toLowerCase()),e.type==="value-number"&&(s.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(s.value=D(!1,s.value,/;$/gu,"")),e.type==="selector-attribute"&&(s.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(s.namespace=e.namespace.trim()||!0),e.value&&(s.value=D(!1,s.value.trim(),/^["']|["']$/gu,""),delete s.quoted)),(e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(s.value=D(!1,s.value,/([\d+.e-]+)([a-z]*)/giu,(o,c,i)=>{let h=Number(c);return Number.isNaN(h)?o:h+i.toLowerCase()})),e.type==="selector-tag"){let o=s.value.toLowerCase();["from","to"].includes(o)&&(s.value=o)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete s.value,e.type==="selector-unknown"&&delete s.value,e.type==="value-comma_group"){let o=e.groups.findIndex(c=>c.type==="value-number"&&c.unit==="...");o!==-1&&(s.groups[o].unit="",s.groups.splice(o+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(o=>o.type==="value-atword"&&o.value.endsWith("[")||o.type==="value-word"&&o.value.startsWith("]")))return{type:"value-atword",value:e.groups.map(o=>o.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}_r.ignoredProperties=jn;function In(e){return D(!1,D(!1,e,"'",'"'),/\\([^\da-f])/giu,"$1")}var Pn=_r;async function Mn(e,s){if(e.language==="yaml"){let n=e.value.trim(),o=n?await s(n,{parser:"yaml"}):"";return yn([e.startDelimiter,e.explicitLanguage,F,o,o?F:"",e.endDelimiter])}}var $n=Mn;function Er(e){let{node:s}=e;if(s.type==="front-matter")return async n=>{let o=await $n(s,n);return o?[o,F]:void 0}}Er.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Rn=Er,Se=null;function Me(e){if(Se!==null&&typeof Se.property){let s=Se;return Se=Me.prototype=null,s}return Se=Me.prototype=e??Object.create(null),new Me}var Nn=10;for(let e=0;e<=Nn;e++)Me();function Ln(e){return Me(e)}function Wn(e,s="type"){Ln(e);function n(o){let c=o[s],i=e[c];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${c}'.`),{node:o});return i}return n}var zn=Wn,qn={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},Bn=qn,Fn=zn(Bn),Dn=Fn;function Un(e,s){let n=0;for(let o=0;o<e.line-1;++o)n=s.indexOf(`
|
|
33
|
+
`,n)+1;return n+e.column}var Ar=Un;function lt(e){return(s,n,o)=>{let c=!!(o!=null&&o.backwards);if(n===!1)return!1;let{length:i}=s,h=n;for(;h>=0&&h<i;){let p=s.charAt(h);if(e instanceof RegExp){if(!e.test(p))return h}else if(!e.includes(p))return h;c?h--:h++}return h===-1||h===i?h:!1}}var Zi=lt(/\s/u),jr=lt(" "),Vn=lt(",; "),Ir=lt(/[^\n\r]/u);function Pr(e,s){let{value:n}=e;return n==="-"||n==="--"||n.charAt(0)!=="-"?s:s-(n.charAt(1)==="-"?2:1)}function Mr(e,s){var n,o,c;if(typeof((o=(n=e.source)==null?void 0:n.start)==null?void 0:o.offset)=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?Pr(e,e.sourceIndex):e.sourceIndex;if((c=e.source)!=null&&c.start)return Ar(e.source.start,s);throw Object.assign(new Error("Can not locate node."),{node:e})}function zt(e,s){var n,o;if(e.type==="css-comment"&&e.inline)return Ir(s,e.source.startOffset);if(typeof((o=(n=e.source)==null?void 0:n.end)==null?void 0:o.offset)=="number")return e.source.end.offset;if(e.source){if(e.source.end){let c=Ar(e.source.end,s);return e.type==="value-word"?Pr(e,c):c}if(ut(e.nodes))return zt(be(!1,e.nodes,-1),s)}return null}function $r(e,s){e.source&&(e.source.startOffset=Mr(e,s),e.source.endOffset=zt(e,s));for(let n in e){let o=e[n];n==="source"||!o||typeof o!="object"||(o.type==="value-root"||o.type==="value-unknown"?Rr(o,Gn(e),o.text||o.value):$r(o,s))}}function Rr(e,s,n){e.source&&(e.source.startOffset=Mr(e,n)+s,e.source.endOffset=zt(e,n)+s);for(let o in e){let c=e[o];o==="source"||!c||typeof c!="object"||Rr(c,s,n)}}function Gn(e){var s;let n=e.source.startOffset;return typeof e.prop=="string"&&(n+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(n+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),e.type!=="css-atrule"&&typeof((s=e.raws)==null?void 0:s.between)=="string"&&(n+=e.raws.between.length),n}function Jn(e){let s="initial",n="initial",o,c=!1,i=[];for(let h=0;h<e.length;h++){let p=e[h];switch(s){case"initial":if(p==="'"){s="single-quotes";continue}if(p==='"'){s="double-quotes";continue}if((p==="u"||p==="U")&&e.slice(h,h+4).toLowerCase()==="url("){s="url",h+=3;continue}if(p==="*"&&e[h-1]==="/"){s="comment-block";continue}if(p==="/"&&e[h-1]==="/"){s="comment-inline",o=h-1;continue}continue;case"single-quotes":if(p==="'"&&e[h-1]!=="\\"&&(s=n,n="initial"),p===`
|
|
34
|
+
`||p==="\r")return e;continue;case"double-quotes":if(p==='"'&&e[h-1]!=="\\"&&(s=n,n="initial"),p===`
|
|
35
|
+
`||p==="\r")return e;continue;case"url":if(p===")"&&(s="initial"),p===`
|
|
36
|
+
`||p==="\r")return e;if(p==="'"){s="single-quotes",n="url";continue}if(p==='"'){s="double-quotes",n="url";continue}continue;case"comment-block":p==="/"&&e[h-1]==="*"&&(s="initial");continue;case"comment-inline":(p==='"'||p==="'"||p==="*")&&(c=!0),(p===`
|
|
37
|
+
`||p==="\r")&&(c&&i.push([o,h]),s="initial",c=!1);continue}}for(let[h,p]of i)e=e.slice(0,h)+D(!1,e.slice(h,p),/["'*]/gu," ")+e.slice(p);return e}function V(e){var s;return(s=e.source)==null?void 0:s.startOffset}function G(e){var s;return(s=e.source)==null?void 0:s.endOffset}var Hn=/\*\/$/,Qn=/^\/\*\*?/,Nr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Kn=/(^|\s+)\/\/([^\n\r]*)/g,Gt=/^(\r?\n)+/,Zn=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Jt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Xn=/(\r?\n|^) *\* ?/g,Lr=[];function Yn(e){let s=e.match(Nr);return s?s[0].trimStart():""}function eo(e){let s=e.match(Nr),n=s?.[0];return n==null?e:e.slice(n.length)}function to(e){let s=`
|
|
38
|
+
`;e=D(!1,e.replace(Qn,"").replace(Hn,""),Xn,"$1");let n="";for(;n!==e;)n=e,e=D(!1,e,Zn,`${s}$1 $2${s}`);e=e.replace(Gt,"").trimEnd();let o=Object.create(null),c=D(!1,e,Jt,"").replace(Gt,"").trimEnd(),i;for(;i=Jt.exec(e);){let h=D(!1,i[2],Kn,"");if(typeof o[i[1]]=="string"||Array.isArray(o[i[1]])){let p=o[i[1]];o[i[1]]=[...Lr,...Array.isArray(p)?p:[p],h]}else o[i[1]]=h}return{comments:c,pragmas:o}}function ro({comments:e="",pragmas:s={}}){let n=`
|
|
39
|
+
`,o="/**",c=" *",i=" */",h=Object.keys(s),p=h.flatMap(u=>Ht(u,s[u])).map(u=>`${c} ${u}${n}`).join("");if(!e){if(h.length===0)return"";if(h.length===1&&!Array.isArray(s[h[0]])){let u=s[h[0]];return`${o} ${Ht(h[0],u)[0]}${i}`}}let m=e.split(n).map(u=>`${c} ${u}`).join(n)+n;return o+n+(e?m:"")+(e&&h.length>0?c+n:"")+p+i}function Ht(e,s){return[...Lr,...Array.isArray(s)?s:[s]].map(n=>`@${e} ${n}`.trim())}var so=["noformat","noprettier"],no=["format","prettier"],oo="format";function io(e){if(!e.startsWith("#!"))return"";let s=e.indexOf(`
|
|
40
|
+
`);return s===-1?e:e.slice(0,s)}var ao=io;function qt(e){let s=ao(e);s&&(e=e.slice(s.length+1));let n=Yn(e),{pragmas:o,comments:c}=to(n);return{shebang:s,text:e,pragmas:o,comments:c}}function uo(e){let{pragmas:s}=qt(e);return no.some(n=>Object.prototype.hasOwnProperty.call(s,n))}function lo(e){let{pragmas:s}=qt(e);return so.some(n=>Object.prototype.hasOwnProperty.call(s,n))}function co(e){let{shebang:s,text:n,pragmas:o,comments:c}=qt(e),i=eo(n),h=ro({pragmas:{[oo]:"",...o},comments:c.trimStart()});return(s?`${s}
|
|
41
|
+
`:"")+h+(i.startsWith(`
|
|
42
|
+
`)?`
|
|
43
|
+
`:`
|
|
44
|
+
|
|
45
|
+
`)+i}var _e=3;function po(e){let s=e.slice(0,_e);if(s!=="---"&&s!=="+++")return;let n=e.indexOf(`
|
|
46
|
+
`,_e);if(n===-1)return;let o=e.slice(_e,n).trim(),c=e.indexOf(`
|
|
47
|
+
${s}`,n),i=o;if(i||(i=s==="+++"?"toml":"yaml"),c===-1&&s==="---"&&i==="yaml"&&(c=e.indexOf(`
|
|
48
|
+
...`,n)),c===-1)return;let h=c+1+_e,p=e.charAt(h+1);if(!/\s?/u.test(p))return;let m=e.slice(0,h);return{type:"front-matter",language:i,explicitLanguage:o,value:e.slice(n+1,c),startDelimiter:s,endDelimiter:m.slice(-_e),raw:m}}function ho(e){let s=po(e);if(!s)return{content:e};let{raw:n}=s;return{frontMatter:s,content:D(!1,n,/[^\n]/gu," ")+e.slice(n.length)}}var ct=ho;function fo(e){return uo(ct(e).content)}function mo(e){return lo(ct(e).content)}function vo(e){let{frontMatter:s,content:n}=ct(e);return(s?s.raw+`
|
|
49
|
+
|
|
50
|
+
`:"")+co(n)}var yo=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function go(e){var s,n;return(n=(s=e.findAncestor(o=>o.type==="css-decl"))==null?void 0:s.prop)==null?void 0:n.toLowerCase()}var wo=new Set(["initial","inherit","unset","revert"]);function bo(e){return wo.has(e.toLowerCase())}function xo(e,s){var n;let o=e.findAncestor(c=>c.type==="css-atrule");return((n=o?.name)==null?void 0:n.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(s.toLowerCase())}function Ee(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ke(e,s){var n;let o=e.findAncestor(c=>c.type==="value-func");return((n=o?.value)==null?void 0:n.toLowerCase())===s}function ko(e){var s;let n=e.findAncestor(c=>c.type==="css-rule"),o=(s=n?.raws)==null?void 0:s.selector;return o&&(o.startsWith(":import")||o.startsWith(":export"))}function $e(e,s){let n=Array.isArray(s)?s:[s],o=e.findAncestor(c=>c.type==="css-atrule");return o&&n.includes(o.name.toLowerCase())}function Oo(e){var s;let{node:n}=e;return n.groups[0].value==="url"&&n.groups.length===2&&((s=e.findAncestor(o=>o.type==="css-atrule"))==null?void 0:s.name)==="import"}function To(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function Co(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function So(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function _o(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function Eo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function Ao(e){return e.type==="value-word"&&e.value==="in"}function yt(e){return e.type==="value-operator"&&e.value==="*"}function Ze(e){return e.type==="value-operator"&&e.value==="/"}function ae(e){return e.type==="value-operator"&&e.value==="+"}function we(e){return e.type==="value-operator"&&e.value==="-"}function jo(e){return e.type==="value-operator"&&e.value==="%"}function ht(e){return yt(e)||Ze(e)||ae(e)||we(e)||jo(e)}function Io(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function Po(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function gt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Qt(e){var s;return((s=e.raws)==null?void 0:s.params)&&/^\(\s*\)$/u.test(e.raws.params)}function ft(e){return e.name.startsWith("prettier-placeholder")}function Mo(e){return e.prop.startsWith("@prettier-placeholder")}function $o(e,s){return e.value==="$$"&&e.type==="value-func"&&s?.type==="value-word"&&!s.raws.before}function Ro(e){var s,n;return((s=e.value)==null?void 0:s.type)==="value-root"&&((n=e.value.group)==null?void 0:n.type)==="value-value"&&e.prop.toLowerCase()==="composes"}function No(e){var s,n,o;return((o=(n=(s=e.value)==null?void 0:s.group)==null?void 0:n.group)==null?void 0:o.type)==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ye(e){var s;return((s=e.raws)==null?void 0:s.before)===""}function Bt(e){var s,n;return e.type==="value-comma_group"&&((n=(s=e.groups)==null?void 0:s[1])==null?void 0:n.type)==="value-colon"}function dt(e){var s;return e.type==="value-paren_group"&&((s=e.groups)==null?void 0:s[0])&&Bt(e.groups[0])}function Wr(e,s){var n;if(s.parser!=="scss")return!1;let{node:o}=e;if(o.groups.length===0)return!1;let c=e.grandparent;if(!dt(o)&&!(c&&dt(c)))return!1;let i=e.findAncestor(h=>h.type==="css-decl");return!!((n=i?.prop)!=null&&n.startsWith("$")||dt(c)||c.type==="value-func")}function Ae(e){return e.type==="value-comment"&&e.inline}function mt(e){return e.type==="value-word"&&e.value==="#"}function Kt(e){return e.type==="value-word"&&e.value==="{"}function vt(e){return e.type==="value-word"&&e.value==="}"}function Ge(e){return["value-word","value-atword"].includes(e.type)}function Xe(e){return e?.type==="value-colon"}function Lo(e,s){if(!Bt(s))return!1;let{groups:n}=s,o=n.indexOf(e);return o===-1?!1:Xe(n[o+1])}function Wo(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function zo(e){return e.type!=="value-func"?!1:yo.has(e.value.toLowerCase())}function je(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function Je(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function qo(e,s){var n,o;if(((n=e.open)==null?void 0:n.value)!=="("||((o=e.close)==null?void 0:o.value)!==")"||e.groups.some(c=>c.type!=="value-comma_group"))return!1;if(s.type==="value-comma_group"){let c=s.groups.indexOf(e)-1,i=s.groups[c];if(i?.type==="value-word"&&i.value==="with")return!0}return!1}function He(e){var s,n;return e.type==="value-paren_group"&&((s=e.open)==null?void 0:s.value)==="("&&((n=e.close)==null?void 0:n.value)===")"}function Bo(e,s,n){var o;let{node:c}=e,i=e.parent,h=e.grandparent,p=go(e),m=p&&i.type==="value-value"&&(p==="grid"||p.startsWith("grid-template")),u=e.findAncestor(y=>y.type==="css-atrule"),r=u&>(u,s),t=c.groups.some(y=>Ae(y)),f=e.map(n,"groups"),a=[""],d=Ke(e,"url"),l=!1,w=!1;for(let y=0;y<c.groups.length;++y){let v=c.groups[y-1],g=c.groups[y],x=c.groups[y+1],b=c.groups[y+2];if(Ae(g)&&!x){a.push([a.pop(),gn([" ",f[y]])]);continue}if(a.push([a.pop(),f[y]]),d){(x&&ae(x)||ae(g))&&a.push([a.pop()," "]);continue}if(Xe(x)&&g.type==="value-word"&&a.length>2&&c.groups.slice(0,y).every(I=>I.type==="value-comment")&&!Ae(v)&&(a[a.length-2]=Re(be(!1,a,-2))),$e(e,"forward")&&g.type==="value-word"&&g.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&x.type==="value-operator"&&x.value==="*"||$e(e,"utility")&&g.type==="value-word"&&x&&x.type==="value-operator"&&x.value==="*"||!x||g.type==="value-word"&&Je(x)&&G(g)===V(x))continue;if(g.type==="value-string"&&g.quoted){let I=g.value.lastIndexOf("#{"),R=g.value.lastIndexOf("}");I!==-1&&R!==-1?l=I>R:I!==-1?l=!0:R!==-1&&(l=!1)}if(l||Xe(g)||Xe(x)||g.type==="value-atword"&&(g.value===""||g.value.endsWith("["))||x.type==="value-word"&&x.value.startsWith("]")||g.value==="~"||g.type!=="value-string"&&g.value&&g.value.includes("\\")&&x&&x.type!=="value-comment"||v!=null&&v.value&&v.value.indexOf("\\")===v.value.length-1&&g.type==="value-operator"&&g.value==="/"||g.value==="\\"||$o(g,x)||mt(g)||Kt(g)||vt(x)||Kt(x)&&ye(x)||vt(g)&&ye(x)||g.value==="--"&&mt(x))continue;let T=ht(g),O=ht(x);if((T&&mt(x)||O&&vt(g))&&ye(x)||!v&&Ze(g)||Ke(e,"calc")&&(ae(g)||ae(x)||we(g)||we(x))&&ye(x))continue;let k=(ae(g)||we(g))&&y===0&&(x.type==="value-number"||x.isHex)&&h&&zo(h)&&!ye(x),S=b?.type==="value-func"||b&&Ge(b)||g.type==="value-func"||Ge(g),E=x.type==="value-func"||Ge(x)||v?.type==="value-func"||v&&Ge(v);if(s.parser==="scss"&&T&&g.value==="-"&&x.type==="value-func"&&G(g)!==V(x)){a.push([a.pop()," "]);continue}if(!(!(yt(x)||yt(g))&&!Ke(e,"calc")&&!k&&(Ze(x)&&!S||Ze(g)&&!E||ae(x)&&!S||ae(g)&&!E||we(x)||we(g))&&(ye(x)||T&&(!v||v&&ht(v))))&&!((s.parser==="scss"||s.parser==="less")&&T&&g.value==="-"&&He(x)&&G(g)===V(x.open)&&x.open.value==="(")){if(Ae(g)){if(i.type==="value-paren_group"){a.push(Re(F),"");continue}a.push(F,"");continue}if(r&&(Io(x)||Po(x)||Eo(x)||Ao(g)||_o(g))){a.push([a.pop()," "]);continue}if(u&&u.name.toLowerCase()==="namespace"){a.push([a.pop()," "]);continue}if(m){g.source&&x.source&&g.source.start.line!==x.source.start.line?(a.push(F,""),w=!0):a.push([a.pop()," "]);continue}if(O){a.push([a.pop()," "]);continue}if(x?.value!=="..."&&!(Je(g)&&Je(x)&&G(g)===V(x))){if(Je(g)&&He(x)&&G(g)===V(x.open)){a.push(K,"");continue}if(g.value==="with"&&He(x)){a=[[Qe(a)," "]];continue}(o=g.value)!=null&&o.endsWith("#")&&x.value==="{"&&He(x.group)||Ae(x)&&!b||a.push(U,"")}}}return t&&a.push([a.pop(),Wt]),w&&a.unshift("",F),r?Z(H(a)):Oo(e)?Z(Qe(a)):Z(H(Qe(a)))}var Fo=Bo;function Do(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Uo=Do,wt=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function zr(e){let s=e.toLowerCase();return wt.has(s)?wt.get(s):e}var qr=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Vo=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,Go=/[a-z]+/giu,Jo=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,Ho=new RegExp(qr.source+`|(${Jo.source})?(${Vo.source})(${Go.source})?`,"giu");function Y(e,s){return D(!1,e,qr,n=>Sr(n,s))}function Qo(e,s){let n=s.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function ge(e){return D(!1,e,Ho,(s,n,o,c,i)=>!o&&c&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||wt.has(i))?Br(c)+(i?zr(i):""):s)}function Br(e){return Uo(e).replace(/\.0(?=$|e)/u,"")}function Ko(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function Zo(e,s,n){let o=!!(n!=null&&n.backwards);if(s===!1)return!1;let c=e.charAt(s);if(o){if(e.charAt(s-1)==="\r"&&c===`
|
|
51
|
+
`)return s-2;if(c===`
|
|
52
|
+
`||c==="\r"||c==="\u2028"||c==="\u2029")return s-1}else{if(c==="\r"&&e.charAt(s+1)===`
|
|
53
|
+
`)return s+2;if(c===`
|
|
54
|
+
`||c==="\r"||c==="\u2028"||c==="\u2029")return s+1}return s}var Fr=Zo;function Xo(e,s,n={}){let o=jr(e,n.backwards?s-1:s,n),c=Fr(e,o,n);return o!==c}var Dr=Xo;function Yo(e,s){if(s===!1)return!1;if(e.charAt(s)==="/"&&e.charAt(s+1)==="*"){for(let n=s+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return s}var ei=Yo;function ti(e,s){return s===!1?!1:e.charAt(s)==="/"&&e.charAt(s+1)==="/"?Ir(e,s):s}var ri=ti;function si(e,s){let n=null,o=s;for(;o!==n;)n=o,o=Vn(e,o),o=ei(e,o),o=jr(e,o);return o=ri(e,o),o=Fr(e,o),o!==!1&&Dr(e,o)}var Ur=si;function ni({node:e,parent:s},n){return!!(e.source&&n.originalText.slice(V(e),V(s.close)).trimEnd().endsWith(","))}function oi(e,s){return Co(e.grandparent)&&ni(e,s)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(n=>n.type==="value-comment"))&&Ko(s)&&e.callParent(()=>Wr(e,s))?Tr(","):""}function ii(e,s,n){let{node:o,parent:c}=e,i=e.map(({node:a})=>typeof a=="string"?a:n(),"groups");if(c&&To(c)&&(o.groups.length===1||o.groups.length>0&&o.groups[0].type==="value-comma_group"&&o.groups[0].groups.length>0&&o.groups[0].groups[0].type==="value-word"&&o.groups[0].groups[0].value.startsWith("data:")))return[o.open?n("open"):"",ue(",",i),o.close?n("close"):""];if(!o.open){let a=Vr(e);Lt(i);let d=ui(ue(",",i),2),l=ue(a?F:U,d);return H(a?[F,l]:Z([ai(e)?K:"",Qe(l)]))}let h=e.map(({node:a,isLast:d,index:l})=>{var w;let y=i[l];Bt(a)&&a.type==="value-comma_group"&&a.groups&&a.groups[0].type!=="value-paren_group"&&((w=a.groups[2])==null?void 0:w.type)==="value-paren_group"&&Pe(y)===ot&&Pe(y.contents)===nt&&Pe(y.contents.contents)===it&&(y=Z(Re(y)));let v=[y,d?oi(e,s):","];if(!d&&a.type==="value-comma_group"&&ut(a.groups)){let g=be(!1,a.groups,-1);!g.source&&g.close&&(g=g.close),g.source&&Ur(s.originalText,G(g))&&v.push(F)}return v},"groups"),p=Lo(o,c),m=qo(o,c),u=Wr(e,s),r=m||u&&!p,t=m||p,f=Z([o.open?n("open"):"",H([K,ue(U,h)]),K,o.close?n("close"):""],{shouldBreak:r});return t?Re(f):f}function Vr(e){return e.match(s=>s.type==="value-paren_group"&&!s.open&&s.groups.some(n=>n.type==="value-comma_group"),(s,n)=>n==="group"&&s.type==="value-value",(s,n)=>n==="group"&&s.type==="value-root",(s,n)=>n==="value"&&(s.type==="css-decl"&&!s.prop.startsWith("--")||s.type==="css-atrule"&&s.variable))}function ai(e){return e.match(s=>s.type==="value-paren_group"&&!s.open,(s,n)=>n==="group"&&s.type==="value-value",(s,n)=>n==="group"&&s.type==="value-root",(s,n)=>n==="value"&&s.type==="css-decl")}function ui(e,s){let n=[];for(let o=0;o<e.length;o+=s)n.push(e.slice(o,o+s));return n}function li(e,s,n){let o=[];return e.each(()=>{let{node:c,previous:i}=e;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?o.push(s.originalText.slice(V(c),G(c))):o.push(n()),e.isLast)return;let{next:h}=e;h.type==="css-comment"&&!Dr(s.originalText,V(h),{backwards:!0})&&!Ye(c)||h.type==="css-atrule"&&h.name==="else"&&c.type!=="css-comment"?o.push(" "):(o.push(s.__isHTMLStyleAttribute?U:F),Ur(s.originalText,G(c))&&!Ye(c)&&o.push(F))},"nodes"),o}var Ie=li;function ci(e,s,n){var o,c,i,h,p,m;let{node:u}=e;switch(u.type){case"front-matter":return[u.raw,F];case"css-root":{let r=Ie(e,s,n),t=u.raws.after.trim();return t.startsWith(";")&&(t=t.slice(1).trim()),[u.frontMatter?[n("frontMatter"),F]:"",r,t?` ${t}`:"",u.nodes.length>0?F:""]}case"css-comment":{let r=u.inline||u.raws.inline,t=s.originalText.slice(V(u),G(u));return r?t.trimEnd():t}case"css-rule":return[n("selector"),u.important?" !important":"",u.nodes?[((o=u.selector)==null?void 0:o.type)==="selector-unknown"&&je(u.selector.value)?U:u.selector?" ":"","{",u.nodes.length>0?H([F,Ie(e,s,n)]):"",F,"}",So(u)?";":""]:";"];case"css-decl":{let r=e.parent,{between:t}=u.raws,f=t.trim(),a=f===":",d=typeof u.value=="string"&&/^ *$/u.test(u.value),l=typeof u.value=="string"?u.value:n("value");return l=Ro(u)?mn(l):l,!a&&je(f)&&!((i=(c=u.value)==null?void 0:c.group)!=null&&i.group&&e.call(()=>Vr(e),"value","group","group"))&&(l=H([F,Re(l)])),[D(!1,u.raws.before,/[\s;]/gu,""),r.type==="css-atrule"&&r.variable||ko(e)?u.prop:Ee(u.prop),f.startsWith("//")?" ":"",f,u.extend||d?"":" ",s.parser==="less"&&u.extend&&u.selector?["extend(",n("selector"),")"]:"",l,u.raws.important?u.raws.important.replace(/\s*!\s*important/iu," !important"):u.important?" !important":"",u.raws.scssDefault?u.raws.scssDefault.replace(/\s*!default/iu," !default"):u.scssDefault?" !default":"",u.raws.scssGlobal?u.raws.scssGlobal.replace(/\s*!global/iu," !global"):u.scssGlobal?" !global":"",u.nodes?[" {",H([K,Ie(e,s,n)]),K,"}"]:Mo(u)&&!r.raws.semicolon&&s.originalText[G(u)-1]!==";"?"":s.__isHTMLStyleAttribute&&e.isLast?Tr(";"):";"]}case"css-atrule":{let r=e.parent,t=ft(u)&&!r.raws.semicolon&&s.originalText[G(u)-1]!==";";if(s.parser==="less"){if(u.mixin)return[n("selector"),u.important?" !important":"",t?"":";"];if(u.function)return[u.name,typeof u.params=="string"?u.params:n("params"),t?"":";"];if(u.variable)return["@",u.name,": ",u.value?n("value"):"",u.raws.between.trim()?u.raws.between.trim()+" ":"",u.nodes?["{",H([u.nodes.length>0?K:"",Ie(e,s,n)]),K,"}"]:"",t?"":";"]}let f=u.name==="import"&&((h=u.params)==null?void 0:h.type)==="value-unknown"&&u.params.value.endsWith(";");return["@",Qt(u)||u.name.endsWith(":")||ft(u)?u.name:Ee(u.name),u.params?[Qt(u)?"":ft(u)?u.raws.afterName===""?"":u.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(u.raws.afterName)?[F,F]:/^\s*\n/u.test(u.raws.afterName)?F:" ":" ",typeof u.params=="string"?u.params:n("params")]:"",u.selector?H([" ",n("selector")]):"",u.value?Z([" ",n("value"),gt(u,s)?No(u)?" ":U:""]):u.name==="else"?" ":"",u.nodes?[gt(u,s)?"":u.selector&&!u.selector.nodes&&typeof u.selector.value=="string"&&je(u.selector.value)||!u.selector&&typeof u.params=="string"&&je(u.params)?U:" ","{",H([u.nodes.length>0?K:"",Ie(e,s,n)]),K,"}"]:t||f?"":";"]}case"media-query-list":{let r=[];return e.each(({node:t})=>{t.type==="media-query"&&t.value===""||r.push(n())},"nodes"),Z(H(ue(U,r)))}case"media-query":return[ue(" ",e.map(n,"nodes")),e.isLast?"":","];case"media-type":return ge(Y(u.value,s));case"media-feature-expression":return u.nodes?["(",...e.map(n,"nodes"),")"]:u.value;case"media-feature":return Ee(Y(D(!1,u.value,/ +/gu," "),s));case"media-colon":return[u.value," "];case"media-value":return ge(Y(u.value,s));case"media-keyword":return Y(u.value,s);case"media-url":return Y(D(!1,D(!1,u.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),s);case"media-unknown":return u.value;case"selector-root":return Z([$e(e,"custom-selector")?[e.findAncestor(r=>r.type==="css-atrule").customSelector,U]:"",ue([",",$e(e,["extend","custom-selector","nest"])?U:F],e.map(n,"nodes"))]);case"selector-selector":{let r=u.nodes.length>2;return Z((r?H:t=>t)(e.map(n,"nodes")))}case"selector-comment":return u.value;case"selector-string":return Y(u.value,s);case"selector-tag":return[u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",((p=e.previous)==null?void 0:p.type)==="selector-nesting"?u.value:ge(xo(e,u.value)?u.value.toLowerCase():u.value)];case"selector-id":return["#",u.value];case"selector-class":return[".",ge(Y(u.value,s))];case"selector-attribute":return["[",u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",u.attribute.trim(),u.operator??"",u.value?Qo(Y(u.value.trim(),s),s):"",u.insensitive?" i":"","]"];case"selector-combinator":{if(u.value==="+"||u.value===">"||u.value==="~"||u.value===">>>"){let f=e.parent;return[f.type==="selector-selector"&&f.nodes[0]===u?"":U,u.value,e.isLast?"":" "]}let r=u.value.trim().startsWith("(")?U:"",t=ge(Y(u.value.trim(),s))||U;return[r,t]}case"selector-universal":return[u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",u.value];case"selector-pseudo":return[Ee(u.value),ut(u.nodes)?Z(["(",H([K,ue([",",U],e.map(n,"nodes"))]),K,")"]):""];case"selector-nesting":return u.value;case"selector-unknown":{let r=e.findAncestor(a=>a.type==="css-rule");if(r!=null&&r.isSCSSNesterProperty)return ge(Y(Ee(u.value),s));let t=e.parent;if((m=t.raws)!=null&&m.selector){let a=V(t),d=a+t.raws.selector.length;return s.originalText.slice(a,d).trim()}let f=e.grandparent;if(t.type==="value-paren_group"&&f?.type==="value-func"&&f.value==="selector"){let a=G(t.open)+1,d=V(t.close),l=s.originalText.slice(a,d).trim();return je(l)?[Wt,l]:l}return u.value}case"value-value":case"value-root":return n("group");case"value-comment":return s.originalText.slice(V(u),G(u));case"value-comma_group":return Fo(e,s,n);case"value-paren_group":return ii(e,s,n);case"value-func":return[u.value,$e(e,"supports")&&Wo(u)?" ":"",n("group")];case"value-paren":return u.value;case"value-number":return[Br(u.value),zr(u.unit)];case"value-operator":return u.value;case"value-word":return u.isColor&&u.isHex||bo(u.value)?u.value.toLowerCase():u.value;case"value-colon":{let{previous:r}=e;return Z([u.value,typeof r?.value=="string"&&r.value.endsWith("\\")||Ke(e,"url")?"":U])}case"value-string":return Sr(u.raws.quote+u.value+u.raws.quote,s);case"value-atword":return["@",u.value];case"value-unicode-range":return u.value;case"value-unknown":return u.value;case"value-comma":default:throw new En(u,"PostCSS")}}var pi={print:ci,embed:Rn,insertPragma:vo,massageAstNode:Pn,getVisitorKeys:Dn},hi=pi,fi=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],di={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},mi={singleQuote:di.singleQuote},vi=mi,Gr={};Xt(Gr,{css:()=>Ji,less:()=>Hi,scss:()=>Qi});var yi=xe(st(),1),gi=xe(vs(),1),wi=xe(Os(),1);function bi(e,s){let n=new SyntaxError(e+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(n,s)}var xi=bi,ki=xe(Cs(),1);function qe(e,s,n){if(e&&typeof e=="object"){delete e.parent;for(let o in e)qe(e[o],s,n),o==="type"&&typeof e[o]=="string"&&!e[o].startsWith(s)&&(!n||!n.test(e[o]))&&(e[o]=s+e[o])}return e}function Jr(e){if(e&&typeof e=="object"){delete e.parent;for(let s in e)Jr(e[s]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var Oi=ki.default.default;function Ti(e){let s;try{s=Oi(e)}catch{return{type:"selector-unknown",value:e}}return qe(Jr(s),"media-")}var Ci=Ti,Si=xe(Bs(),1);function _i(e){if(/\/\/|\/\*/u.test(e))return{type:"selector-unknown",value:e.trim()};let s;try{new Si.default(n=>{s=n}).process(e)}catch{return{type:"selector-unknown",value:e}}return qe(s,"selector-")}var ce=_i,Ei=xe(nn(),1),Ai=e=>{for(;e.parent;)e=e.parent;return e},Hr=Ai;function ji(e){return Hr(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Ii=ji;function Pi(e){if(ut(e)){for(let s=e.length-1;s>0;s--)if(e[s].type==="word"&&e[s].value==="{"&&e[s-1].type==="word"&&e[s-1].value.endsWith("#"))return!0}return!1}var Mi=Pi;function $i(e){return e.some(s=>s.type==="string"||s.type==="func"&&!s.value.endsWith("\\"))}var Ri=$i;function Ni(e,s){return!!(s.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var Li=Ni,Zt=e=>e.type==="paren"&&e.value===")";function Wi(e,s){var n;let{nodes:o}=e,c={open:null,close:null,groups:[],type:"paren_group"},i=[c],h=c,p={groups:[],type:"comma_group"},m=[p];for(let u=0;u<o.length;++u){let r=o[u];if(s.parser==="scss"&&r.type==="number"&&r.unit===".."&&r.value.endsWith(".")&&(r.value=r.value.slice(0,-1),r.unit="..."),r.type==="func"&&r.value==="selector"&&(r.group.groups=[ce(Hr(e).text.slice(r.group.open.sourceIndex+1,r.group.close.sourceIndex))]),r.type==="func"&&r.value==="url"){let t=((n=r.group)==null?void 0:n.groups)??[],f=[];for(let a=0;a<t.length;a++){let d=t[a];d.type==="comma_group"?f=[...f,...d.groups]:f.push(d)}(Mi(f)||!Ri(f)&&!Li(f[0],s))&&(r.group.groups=[Ii(r)])}if(r.type==="paren"&&r.value==="(")c={open:r,close:null,groups:[],type:"paren_group"},i.push(c),p={groups:[],type:"comma_group"},m.push(p);else if(Zt(r)){if(p.groups.length>0&&c.groups.push(p),c.close=r,m.length===1)throw new Error("Unbalanced parenthesis");m.pop(),p=be(!1,m,-1),p.groups.push(c),i.pop(),c=be(!1,i,-1)}else if(r.type==="comma"){if(u===o.length-3&&o[u+1].type==="comment"&&Zt(o[u+2]))continue;c.groups.push(p),p={groups:[],type:"comma_group"},m[m.length-1]=p}else p.groups.push(r)}return p.groups.length>0&&c.groups.push(p),h}function bt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?bt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(bt)}:e}function Qr(e,s){if(e&&typeof e=="object")for(let n in e)n!=="parent"&&(Qr(e[n],s),n==="nodes"&&(e.group=bt(Wi(e,s)),delete e[n]));return e}function zi(e,s){if(s.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let n=null;try{n=new Ei.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}n.text=e;let o=Qr(n,s);return qe(o,"value-",/^selector-/u)}var le=zi,qi=new Set(["import","use","forward"]);function Bi(e){return qi.has(e)}var Fi=Bi;function Di(e,s){return s.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Ui=Di,Vi=/(\s*)(!default).*$/u,Gi=/(\s*)(!global).*$/u;function Kr(e,s){var n,o;if(e&&typeof e=="object"){delete e.parent;for(let p in e)Kr(e[p],s);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let p;if(e.value.trimEnd().endsWith("}")){let m=s.originalText.slice(0,e.source.start.offset),u="a".repeat(e.prop.length)+s.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),r=D(!1,m,/[^\n]/gu," ")+u,t;s.parser==="scss"?t=Yr:s.parser==="less"?t=Xr:t=Zr;let f;try{f=t(r,{...s})}catch{}((n=f?.nodes)==null?void 0:n.length)===1&&f.nodes[0].type==="css-rule"&&(p=f.nodes[0].nodes)}return p?e.value={type:"css-rule",nodes:p}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let c="";typeof e.selector=="string"&&(c=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(c+=e.raws.between),e.raws.selector=c);let i="";typeof e.value=="string"&&(i=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=i.trim());let h="";if(typeof e.params=="string"&&(h=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(h=e.raws.afterName+h),e.raws.between&&e.raws.between.trim().length>0&&(h=h+e.raws.between),h=h.trim(),e.raws.params=h),c.trim().length>0)return c.startsWith("@")&&c.endsWith(":")?e:e.mixin?(e.selector=le(c,s),e):(Ui(e,s)&&(e.isSCSSNesterProperty=!0),e.selector=ce(c),e);if(i.trim().length>0){let p=i.match(Vi);p&&(i=i.slice(0,p.index),e.scssDefault=!0,p[0].trim()!=="!default"&&(e.raws.scssDefault=p[0]));let m=i.match(Gi);if(m&&(i=i.slice(0,m.index),e.scssGlobal=!0,m[0].trim()!=="!global"&&(e.raws.scssGlobal=m[0])),i.startsWith("progid:"))return{type:"value-unknown",value:i};e.value=le(i,s)}if(s.parser==="less"&&e.type==="css-decl"&&i.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=ce(i.slice(7,-1)))),e.type==="css-atrule"){if(s.parser==="less"){if(e.mixin){let p=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=ce(p),delete e.params,e}if(e.function)return e}if(s.parser==="css"&&e.name==="custom-selector"){let p=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=p,e.selector=ce(e.params.slice(p.length).trim()),delete e.params,e}if(s.parser==="less"){if(e.name.includes(":")&&!e.params){e.variable=!0;let p=e.name.split(":");e.name=p[0],e.value=le(p.slice(1).join(":"),s)}if(!["page","nest","keyframes"].includes(e.name)&&((o=e.params)==null?void 0:o[0])===":"){e.variable=!0;let p=e.params.slice(1);p&&(e.value=le(p,s)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&h.length>0){let{name:p}=e,m=e.name.toLowerCase();return p==="warn"||p==="error"?(e.params={type:"media-unknown",value:h},e):p==="extend"||p==="nest"?(e.selector=ce(h),delete e.params,e):p==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(h)?e.params=le(h,s):(e.selector=ce(h),delete e.params),e):Fi(m)?(e.import=!0,delete e.filename,e.params=le(h,s),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(p)?(h=h.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),h=h.replace(/^(?!if)(\S+)(\s+)\(/u,"$1($2"),e.value=le(h,s),delete e.params,e):["media","custom-media"].includes(m)?h.includes("#{")?{type:"media-unknown",value:h}:(e.params=Ci(h),e):(e.params=h,e)}}return e}function Ft(e,s,n){let o=ct(s),{frontMatter:c}=o;s=o.content;let i;try{i=e(s,{map:!1})}catch(h){let{name:p,reason:m,line:u,column:r}=h;throw typeof u!="number"?h:xi(`${p}: ${m}`,{loc:{start:{line:u,column:r}},cause:h})}return n.originalText=s,i=Kr(qe(i,"css-"),n),$r(i,s),c&&(c.source={startOffset:0,endOffset:c.raw.length},i.frontMatter=c),i}function Zr(e,s={}){return Ft(yi.default.default,e,s)}function Xr(e,s={}){return Ft(n=>gi.default.parse(Jn(n)),e,s)}function Yr(e,s={}){return Ft(wi.default,e,s)}var Dt={astFormat:"postcss",hasPragma:fo,hasIgnorePragma:mo,locStart:V,locEnd:G},Ji={...Dt,parse:Zr},Hi={...Dt,parse:Xr},Qi={...Dt,parse:Yr},Ki={postcss:hi},Xi=dr;export{Xi as default,fi as languages,vi as options,Gr as parsers,Ki as printers};
|
|
55
|
+
//# sourceMappingURL=postcss-LEYOLHZE.js.map
|