@proofkit/cli 1.0.0 → 1.1.5
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/CHANGELOG.md +12 -0
- package/dist/index.js +16382 -275
- package/package.json +11 -12
- package/template/nextjs/.prettierrc +3 -0
- package/template/nextjs/components.json +21 -0
- package/template/nextjs/package.json +3 -3
- package/template/nextjs/postcss.config.cjs +1 -0
- package/template/nextjs/proofkit.json +6 -1
- package/template/nextjs/src/config/theme/globals.css +124 -0
- package/template/nextjs/src/utils/styles.ts +6 -0
- package/template/pages/nextjs/table-edit/actions.ts +3 -2
- package/template/pages/nextjs/table-infinite/actions.ts +5 -5
- package/template/pages/nextjs/table-infinite-edit/actions.ts +6 -6
- package/template/vite-wv/.prettierrc +3 -0
- package/template/vite-wv/components.json +21 -0
- package/template/vite-wv/postcss.config.cjs +1 -0
- package/template/vite-wv/proofkit.json +6 -1
- package/template/vite-wv/src/config/theme/globals.css +124 -0
- package/template/vite-wv/src/utils/styles.ts +6 -0
- package/dist/acorn-AKFTBDM6.js +0 -15
- package/dist/angular-BOQ6FHSU.js +0 -2
- package/dist/babel-ZTOORN7K.js +0 -15
- package/dist/chunk-4LISTI44.js +0 -1
- package/dist/estree-KOJPX4S6.js +0 -36
- package/dist/flow-RCI44GYZ.js +0 -19
- package/dist/glimmer-GV5EF5E4.js +0 -30
- package/dist/graphql-YXQNPQWM.js +0 -29
- package/dist/html-ZAJTRROK.js +0 -22
- package/dist/markdown-Q75DTQI7.js +0 -63
- package/dist/meriyah-32K7GBV5.js +0 -4
- package/dist/postcss-WWYO4PGL.js +0 -54
- package/dist/typescript-M6N7JDNQ.js +0 -20
- package/dist/yaml-LY7PNAYV.js +0 -161
- package/index.d.ts +0 -19
package/dist/postcss-WWYO4PGL.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import"./chunk-4LISTI44.js";var Xr=Object.create,wt=Object.defineProperty,Yr=Object.getOwnPropertyDescriptor,es=Object.getOwnPropertyNames,ts=Object.getPrototypeOf,rs=Object.prototype.hasOwnProperty,E=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),Kt=(e,s)=>{for(var n in s)wt(e,n,{get:s[n],enumerable:!0})},ss=(e,s,n,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of es(s))!rs.call(e,c)&&c!==n&&wt(e,c,{get:()=>s[c],enumerable:!(o=Yr(s,c))||o.enumerable});return e},ke=(e,s,n)=>(n=e!=null?Xr(ts(e)):{},ss(s||!e||!e.__esModule?wt(n,"default",{value:e,enumerable:!0}):n,e)),ns=E((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}),Xt=E(()=>{}),bt=E((e,s)=>{"use strict";var n=ns(),o=Xt(),c=class Yt 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,Yt)}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=a=>a,u=a=>a,r=a=>a;if(h){let{bold:a,gray:g,red:y}=n.createColors(!0);u=v=>a(y(v)),m=v=>g(v),o&&(r=v=>o(v))}let t=p.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,t.length),d=String(l).length;return t.slice(f,l).map((a,g)=>{let y=f+1+g,v=" "+(" "+y).slice(-d)+" | ";if(y===this.line){if(a.length>160){let x=20,b=Math.max(0,this.column-x),T=Math.max(this.column+x,this.endColumn+x),k=a.slice(b,T),O=m(v.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return u(">")+m(v)+r(k)+`
|
|
2
|
-
`+O+u("^")}let w=m(v.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+m(v)+r(a)+`
|
|
3
|
-
`+w+u("^")}return" "+m(v)+r(a)}).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}),xt=E((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=E((e,s)=>{"use strict";var n=xt();function o(c,i){new n(i).stringify(c)}s.exports=o,o.default=o}),kt=E((e,s)=>{"use strict";s.exports.isClean=Symbol("isClean"),s.exports.my=Symbol("my")}),tt=E((e,s)=>{"use strict";var n=bt(),o=xt(),c=et(),{isClean:i,my:h}=kt();function p(r,t){let f=new r.constructor;for(let l in r){if(!Object.prototype.hasOwnProperty.call(r,l)||l==="proxyCache")continue;let d=r[l],a=typeof d;l==="parent"&&a==="object"?t&&(f[l]=t):l==="source"?f[l]=d:Array.isArray(d)?f[l]=d.map(g=>p(g,f)):(a==="object"&&d!==null&&(d=p(d)),f[l]=d)}return f}function m(r,t){if(t&&typeof t.offset<"u")return t.offset;let f=1,l=1,d=0;for(let a=0;a<r.length;a++){if(l===t.line&&f===t.column){d=a;break}r[a]===`
|
|
19
|
-
`?(f=1,l+=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:l}=this.rangeBy(t);return this.source.input.error(r,{column:l.column,line:l.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,l=f.slice(m(f,this.source.start),m(f,this.source.end)).indexOf(r.word);l!==-1&&(t=this.positionInside(l))}return t}positionInside(r){let t=this.source.start.column,f=this.source.start.line,l="document"in this.source.input?this.source.input.document:this.source.input.css,d=m(l,this.source.start),a=d+r;for(let g=d;g<a;g++)l[g]===`
|
|
20
|
-
`?(t=1,f+=1):t+=1;return{column:t,line:f}}prev(){if(!this.parent)return;let r=this.parent.index(this);return this.parent.nodes[r-1]}rangeBy(r){let t={column:this.source.start.column,line:this.source.start.line},f=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(r.word){let l="document"in this.source.input?this.source.input.document:this.source.input.css,d=l.slice(m(l,this.source.start),m(l,this.source.end)).indexOf(r.word);d!==-1&&(t=this.positionInside(d),f=this.positionInside(d+r.word.length))}else r.start?t={column:r.start.column,line:r.start.line}:r.index&&(t=this.positionInside(r.index)),r.end?f={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?f=this.positionInside(r.endIndex):r.index&&(f=this.positionInside(r.index+1));return(f.line<t.line||f.line===t.line&&f.column<=t.column)&&(f={column:t.column+1,line:t.line}),{end:f,start:t}}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 l of r)l===this?f=!0:f?(this.parent.insertAfter(t,l),t=l):this.parent.insertBefore(t,l);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={},l=t==null;t=t||new Map;let d=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let g=this[a];if(Array.isArray(g))f[a]=g.map(y=>typeof y=="object"&&y.toJSON?y.toJSON(null,t):y);else if(typeof g=="object"&&g.toJSON)f[a]=g.toJSON(null,t);else if(a==="source"){let y=t.get(g.input);y==null&&(y=d,t.set(g.input,d),d++),f[a]={end:g.end,inputId:y,start:g.start}}else f[a]=g}return l&&(f.inputs=[...t.keys()].map(a=>a.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 l={node:this};for(let d in f)l[d]=f[d];return r.warn(t,l)}};s.exports=u,u.default=u}),Ne=E((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=E((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=E((e,s)=>{"use strict";var n=Ne(),o=rt(),c=tt(),{isClean:i,my:h}=kt(),p,m,u,r;function t(d){return d.map(a=>(a.nodes&&(a.nodes=t(a.nodes)),delete a.source,a))}function f(d){if(d[i]=!1,d.proxyOf.nodes)for(let a of d.proxyOf.nodes)f(a)}var l=class er 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(...a){for(let g of a){let y=this.normalize(g,this.last);for(let v of y)this.proxyOf.nodes.push(v)}return this.markDirty(),this}cleanRaws(a){if(super.cleanRaws(a),this.nodes)for(let g of this.nodes)g.cleanRaws(a)}each(a){if(!this.proxyOf.nodes)return;let g=this.getIterator(),y,v;for(;this.indexes[g]<this.proxyOf.nodes.length&&(y=this.indexes[g],v=a(this.proxyOf.nodes[y],y),v!==!1);)this.indexes[g]+=1;return delete this.indexes[g],v}every(a){return this.nodes.every(a)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let a=this.lastEach;return this.indexes[a]=0,a}getProxyProcessor(){return{get(a,g){return g==="proxyOf"?a:a[g]?g==="each"||typeof g=="string"&&g.startsWith("walk")?(...y)=>a[g](...y.map(v=>typeof v=="function"?(w,x)=>v(w.toProxy(),x):v)):g==="every"||g==="some"?y=>a[g]((v,...w)=>y(v.toProxy(),...w)):g==="root"?()=>a.root().toProxy():g==="nodes"?a.nodes.map(y=>y.toProxy()):g==="first"||g==="last"?a[g].toProxy():a[g]:a[g]},set(a,g,y){return a[g]===y||(a[g]=y,(g==="name"||g==="params"||g==="selector")&&a.markDirty()),!0}}}index(a){return typeof a=="number"?a:(a.proxyOf&&(a=a.proxyOf),this.proxyOf.nodes.indexOf(a))}insertAfter(a,g){let y=this.index(a),v=this.normalize(g,this.proxyOf.nodes[y]).reverse();y=this.index(a);for(let x of v)this.proxyOf.nodes.splice(y+1,0,x);let w;for(let x in this.indexes)w=this.indexes[x],y<w&&(this.indexes[x]=w+v.length);return this.markDirty(),this}insertBefore(a,g){let y=this.index(a),v=y===0?"prepend":!1,w=this.normalize(g,this.proxyOf.nodes[y],v).reverse();y=this.index(a);for(let b of w)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+w.length);return this.markDirty(),this}normalize(a,g){if(typeof a=="string")a=t(m(a).nodes);else if(typeof a>"u")a=[];else if(Array.isArray(a)){a=a.slice(0);for(let y of a)y.parent&&y.parent.removeChild(y,"ignore")}else if(a.type==="root"&&this.type!=="document"){a=a.nodes.slice(0);for(let y of a)y.parent&&y.parent.removeChild(y,"ignore")}else if(a.type)a=[a];else if(a.prop){if(typeof a.value>"u")throw new Error("Value field is missed in node creation");typeof a.value!="string"&&(a.value=String(a.value)),a=[new o(a)]}else if(a.selector||a.selectors)a=[new r(a)];else if(a.name)a=[new p(a)];else if(a.text)a=[new n(a)];else throw new Error("Unknown node type in node creation");return a.map(y=>(y[h]||er.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[i]&&f(y),y.raws||(y.raws={}),typeof y.raws.before>"u"&&g&&typeof g.raws.before<"u"&&(y.raws.before=g.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...a){a=a.reverse();for(let g of a){let y=this.normalize(g,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(a){return a.parent=this,this.proxyOf.nodes.push(a),this}removeAll(){for(let a of this.proxyOf.nodes)a.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(a){a=this.index(a),this.proxyOf.nodes[a].parent=void 0,this.proxyOf.nodes.splice(a,1);let g;for(let y in this.indexes)g=this.indexes[y],g>=a&&(this.indexes[y]=g-1);return this.markDirty(),this}replaceValues(a,g,y){return y||(y=g,g={}),this.walkDecls(v=>{g.props&&!g.props.includes(v.prop)||g.fast&&!v.value.includes(g.fast)||(v.value=v.value.replace(a,y))}),this.markDirty(),this}some(a){return this.nodes.some(a)}walk(a){return this.each((g,y)=>{let v;try{v=a(g,y)}catch(w){throw g.addToError(w)}return v!==!1&&g.walk&&(v=g.walk(a)),v})}walkAtRules(a,g){return g?a instanceof RegExp?this.walk((y,v)=>{if(y.type==="atrule"&&a.test(y.name))return g(y,v)}):this.walk((y,v)=>{if(y.type==="atrule"&&y.name===a)return g(y,v)}):(g=a,this.walk((y,v)=>{if(y.type==="atrule")return g(y,v)}))}walkComments(a){return this.walk((g,y)=>{if(g.type==="comment")return a(g,y)})}walkDecls(a,g){return g?a instanceof RegExp?this.walk((y,v)=>{if(y.type==="decl"&&a.test(y.prop))return g(y,v)}):this.walk((y,v)=>{if(y.type==="decl"&&y.prop===a)return g(y,v)}):(g=a,this.walk((y,v)=>{if(y.type==="decl")return g(y,v)}))}walkRules(a,g){return g?a instanceof RegExp?this.walk((y,v)=>{if(y.type==="rule"&&a.test(y.selector))return g(y,v)}):this.walk((y,v)=>{if(y.type==="rule"&&y.selector===a)return g(y,v)}):(g=a,this.walk((y,v)=>{if(y.type==="rule")return g(y,v)}))}};l.registerParse=d=>{m=d},l.registerRule=d=>{r=d},l.registerAtRule=d=>{p=d},l.registerRoot=d=>{u=d},s.exports=l,l.default=l,l.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(a=>{l.rebuild(a)})}}),os=E((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}}),is=E(()=>{}),tr=E((e,s)=>{s.exports=class{}}),Re=E((e,s)=>{"use strict";var{nanoid:n}=os(),{isAbsolute:o,resolve:c}={},{SourceMapConsumer:i,SourceMapGenerator:h}=is(),{fileURLToPath:p,pathToFileURL:m}={},u=bt(),r=tr(),t=Xt(),f=Symbol("fromOffsetCache"),l=!!(i&&h),d=!!(c&&o),a=class{get from(){return this.file||this.id}constructor(g,y={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,y.document&&(this.document=y.document.toString()),y.from&&(!d||/^\w+:\/\//.test(y.from)||o(y.from)?this.file=y.from:this.file=c(y.from)),d&&l){let v=new r(this.css,y);if(v.text){this.map=v;let w=v.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(g,y,v,w={}){let x,b,T;if(y&&typeof y=="object"){let O=y,S=v;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);y=A.line,v=A.col}else y=O.line,v=O.column;if(typeof S.offset=="number"){let A=this.fromOffset(S.offset);b=A.line,x=A.col}else b=S.line,x=S.column}else if(!v){let O=this.fromOffset(y);y=O.line,v=O.col}let k=this.origin(y,v,b,x);return k?T=new u(g,k.endLine===void 0?k.line:{column:k.column,line:k.line},k.endLine===void 0?k.column:{column:k.endColumn,line:k.endLine},k.source,k.file,w.plugin):T=new u(g,b===void 0?y:{column:v,line:y},b===void 0?v:{column:x,line:b},this.css,this.file,w.plugin),T.input={column:v,endColumn:x,endLine:b,line:y,source:this.css},this.file&&(m&&(T.input.url=m(this.file).toString()),T.input.file=this.file),T}fromOffset(g){let y,v;if(this[f])v=this[f];else{let x=this.css.split(`
|
|
21
|
-
`);v=new Array(x.length);let b=0;for(let T=0,k=x.length;T<k;T++)v[T]=b,b+=x[T].length+1;this[f]=v}y=v[v.length-1];let w=0;if(g>=y)w=v.length-1;else{let x=v.length-2,b;for(;w<x;)if(b=w+(x-w>>1),g<v[b])x=b-1;else if(g>=v[b+1])w=b+1;else{w=b;break}}return{col:g-v[w]+1,line:w+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:c(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,y,v,w){if(!this.map)return!1;let x=this.map.consumer(),b=x.originalPositionFor({column:y,line:g});if(!b.source)return!1;let T;typeof v=="number"&&(T=x.originalPositionFor({column:w,line:v}));let k;o(b.source)?k=m(b.source):k=new URL(b.source,this.map.consumer().sourceRoot||m(this.map.mapFile));let O={column:b.column,endColumn:T&&T.column,endLine:T&&T.line,line:b.line,url:k.toString()};if(k.protocol==="file:")if(p)O.file=p(k);else throw new Error("file: protocol is not available in this PostCSS build");let S=x.sourceContentFor(b.source);return S&&(O.source=S),O}toJSON(){let g={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(g[y]=this[y]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}};s.exports=a,a.default=a,t&&t.registerInput&&t.registerInput(a)}),Ot=E((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)}),Le=E((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)}),rr=E((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 l of o)f?f=!1:l==="\\"?f=!0:r?l===t&&(r=!1):l==='"'||l==="'"?(r=!0,t=l):l==="("?u+=1:l===")"?u>0&&(u-=1):u===0&&c.includes(l)&&(m=!0),m?(p!==""&&h.push(p.trim()),p="",m=!1):p+=l;return(i||p!=="")&&h.push(p.trim()),h}};s.exports=n,n.default=n}),Tt=E((e,s)=>{"use strict";var n=he(),o=rr(),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)}),Ct=E((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,l,d,a,g,y,v,w,x=m.length,b=0,T=[],k=[];function O(){return b}function S(M){throw h.error("Unclosed "+M,b)}function A(){return k.length===0&&b>=x}function I(M){if(k.length)return k.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:{l=b;do l+=1,r=m.charCodeAt(l);while(r===32||r===10||r===9||r===13||r===12);a=["space",m.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let $=String.fromCharCode(r);a=[$,$,b];break}case 40:{if(w=T.length?T.pop()[1]:"",v=m.charCodeAt(b+1),w==="url"&&v!==39&&v!==34&&v!==32&&v!==10&&v!==9&&v!==12&&v!==13){l=b;do{if(g=!1,l=m.indexOf(")",l+1),l===-1)if(u||N){l=b;break}else S("bracket");for(y=l;m.charCodeAt(y-1)===92;)y-=1,g=!g}while(g);a=["brackets",m.slice(b,l+1),b,l],b=l}else l=m.indexOf(")",b+1),t=m.slice(b,l+1),l===-1||c.test(t)?a=["(","(",b]:(a=["brackets",t,b,l],b=l);break}case 39:case 34:{d=r===39?"'":'"',l=b;do{if(g=!1,l=m.indexOf(d,l+1),l===-1)if(u||N){l=b+1;break}else S("string");for(y=l;m.charCodeAt(y-1)===92;)y-=1,g=!g}while(g);a=["string",m.slice(b,l+1),b,l],b=l;break}case 64:{n.lastIndex=b+1,n.test(m),n.lastIndex===0?l=m.length-1:l=n.lastIndex-2,a=["at-word",m.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,f=!0;m.charCodeAt(l+1)===92;)l+=1,f=!f;if(r=m.charCodeAt(l+1),f&&r!==47&&r!==32&&r!==10&&r!==9&&r!==13&&r!==12&&(l+=1,i.test(m.charAt(l)))){for(;i.test(m.charAt(l+1));)l+=1;m.charCodeAt(l+1)===32&&(l+=1)}a=["word",m.slice(b,l+1),b,l],b=l;break}default:{r===47&&m.charCodeAt(b+1)===42?(l=m.indexOf("*/",b+2)+1,l===0&&(u||N?l=m.length:S("comment")),a=["comment",m.slice(b,l+1),b,l],b=l):(o.lastIndex=b+1,o.test(m),o.lastIndex===0?l=m.length-1:l=o.lastIndex-2,a=["word",m.slice(b,l+1),b,l],T.push(a),b=l);break}}return b++,a}function R(M){k.push(M)}return{back:R,endOfFile:A,nextToken:I,position:O}}}),St=E((e,s)=>{"use strict";var n=Ot(),o=Ne(),c=rt(),i=Le(),h=Tt(),p=Ct(),m={empty:!0,space:!0};function u(t){for(let f=t.length-1;f>=0;f--){let l=t[f],d=l[3]||l[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 l,d,a,g=!1,y=!1,v=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),l=t[0],l==="("||l==="["?w.push(l==="("?")":"]"):l==="{"&&w.length>0?w.push("}"):l===w[w.length-1]&&w.pop(),w.length===0)if(l===";"){f.source.end=this.getPosition(t[2]),f.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){y=!0;break}else if(l==="}"){if(v.length>0){for(a=v.length-1,d=v[a];d&&d[0]==="space";)d=v[--a];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()){g=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(f.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(f,"params",v),g&&(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 l=0,d;for(let a=f-1;a>=0&&(d=t[a],!(d[0]!=="space"&&(l+=1,l===2)));a--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(t){let f=0,l,d,a;for(let[g,y]of t.entries()){if(d=y,a=d[0],a==="("&&(f+=1),a===")"&&(f-=1),f===0&&a===":")if(!l)this.doubleColon(d);else{if(l[0]==="word"&&l[1]==="progid")continue;return g}l=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 l=t[1].slice(2,-2);if(/^\s*$/.test(l))f.text="",f.raws.left=l,f.raws.right="";else{let d=l.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 l=new c;this.init(l,t[0][2]);let d=t[t.length-1];for(d[0]===";"&&(this.semicolon=!0,t.pop()),l.source.end=this.getPosition(d[3]||d[2]||u(t)),l.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),l.raws.before+=t.shift()[1];for(l.source.start=this.getPosition(t[0][2]),l.prop="";t.length;){let v=t[0][0];if(v===":"||v==="space"||v==="comment")break;l.prop+=t.shift()[1]}l.raws.between="";let a;for(;t.length;)if(a=t.shift(),a[0]===":"){l.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),l.raws.between+=a[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let g=[],y;for(;t.length&&(y=t[0][0],!(y!=="space"&&y!=="comment"));)g.push(t.shift());this.precheckMissedSemicolon(t);for(let v=t.length-1;v>=0;v--){if(a=t[v],a[1].toLowerCase()==="!important"){l.important=!0;let w=this.stringFrom(t,v);w=this.spacesFromEnd(t)+w,w!==" !important"&&(l.raws.important=w);break}else if(a[1].toLowerCase()==="important"){let w=t.slice(0),x="";for(let b=v;b>0;b--){let T=w[b][0];if(x.trim().startsWith("!")&&T!=="space")break;x=w.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,t=w)}if(a[0]!=="space"&&a[0]!=="comment")break}t.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(l.raws.between+=g.map(v=>v[1]).join(""),g=[]),this.raw(l,"value",g.concat(t),f),l.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,l=null,d=!1,a=null,g=[],y=t[1].startsWith("--"),v=[],w=t;for(;w;){if(l=w[0],v.push(w),l==="("||l==="[")a||(a=w),g.push(l==="("?")":"]");else if(y&&d&&l==="{")a||(a=w),g.push("}");else if(g.length===0)if(l===";")if(d){this.decl(v,y);return}else break;else if(l==="{"){this.rule(v);return}else if(l==="}"){this.tokenizer.back(v.pop()),f=!0;break}else l===":"&&(d=!0);else l===g[g.length-1]&&(g.pop(),g.length===0&&(a=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),g.length>0&&this.unclosedBracket(a),f&&d){if(!y)for(;v.length&&(w=v[v.length-1][0],!(w!=="space"&&w!=="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,l,d){let a,g,y=l.length,v="",w=!0,x,b;for(let T=0;T<y;T+=1)a=l[T],g=a[0],g==="space"&&T===y-1&&!d?w=!1:g==="comment"?(b=l[T-1]?l[T-1][0]:"empty",x=l[T+1]?l[T+1][0]:"empty",!m[b]&&!m[x]?v.slice(-1)===","?w=!1:v+=a[1]:w=!1):v+=a[1];if(!w){let T=l.reduce((k,O)=>k+O[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,l="";for(;t.length&&(f=t[t.length-1][0],!(f!=="space"&&f!=="comment"));)l=t.pop()[1]+l;return l}spacesAndCommentsFromStart(t){let f,l="";for(;t.length&&(f=t[0][0],!(f!=="space"&&f!=="comment"));)l+=t.shift()[1];return l}spacesFromEnd(t){let f,l="";for(;t.length&&(f=t[t.length-1][0],f==="space");)l=t.pop()[1]+l;return l}stringFrom(t,f){let l="";for(let d=f;d<t.length;d++)l+=t[d][1];return t.splice(f,t.length-f),l}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=E((e,s)=>{"use strict";var n=he(),o=Re(),c=St();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)}),as=E((e,s)=>{var n=Ct(),o=Re();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}}}),us=E((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}}}),ls=E((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}}),cs=E((e,s)=>{var n=Ct(),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}}}}}),ps=E((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}}}}),hs=E((e,s)=>{var n=Ne(),o=St(),{isInlineComment:c}=as(),{interpolation:i}=us(),{isMixinToken:h}=ls(),p=cs(),m=ps(),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(a=>a[0]==="("),f=r.reverse().find(a=>a[0]===")"),l=r.reverse().indexOf(f),d=r.splice(t,l).map(a=>a[1]).join("");for(let a of r.reverse())this.tokenizer.back(a);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 l=f.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=l}}mixin(r){let[t]=r,f=t[1].slice(0,1),l=r.findIndex(v=>v[0]==="brackets"),d=r.findIndex(v=>v[0]==="("),a="";if((l<0||l>3)&&d>0){let v=r.reduce((I,R,M)=>R[0]===")"?M:I),w=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),k=[T[2],T[3]],O=["brackets",w].concat(b,k),S=r.slice(0,d),A=r.slice(v+1);r=S,r.push(O),r=r.concat(A)}let g=[];for(let v of r)if((v[1]==="!"||g.length)&&g.push(v),v[1]==="important")break;if(g.length){let[v]=g,w=r.indexOf(v),x=g[g.length-1],b=[v[2],v[3]],T=[x[4],x[5]],k=["word",g.map(O=>O[1]).join("")].concat(b,T);r.splice(w,g.length,k)}let y=r.findIndex(v=>u.test(v[1]));y>0&&([,a]=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,a&&(this.lastNode.important=!0,this.lastNode.raws.important=a)}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 l=this.tokenizer.nextToken();r=r.slice(0,r.length-2).concat([l]);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)}}}),fs=E((e,s)=>{var n=xt();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)}}}),ds=E((e,s)=>{var n=Re(),o=hs(),c=fs();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 l=r+u.source.end.offset,d=p.fromOffset(r+u.source.end.offset);u.source.end={offset:l,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}}}),_t=E((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}),ms=E((e,s)=>{"use strict";var n=Ot(),o=Ne(),c=rt(),i=Re(),h=tr(),p=Le(),m=Tt();function u(r,t){if(Array.isArray(r))return r.map(d=>u(d));let{inputs:f,...l}=r;if(f){t=[];for(let d of f){let a={...d,__proto__:i.prototype};a.map&&(a.map={...a.map,__proto__:h.prototype}),t.push(a)}}if(l.nodes&&(l.nodes=r.nodes.map(d=>u(d,t))),l.source){let{inputId:d,...a}=l.source;l.source=a,d!=null&&(l.source.input=t[d])}if(l.type==="root")return new p(l);if(l.type==="decl")return new c(l);if(l.type==="rule")return new m(l);if(l.type==="comment")return new o(l);if(l.type==="atrule")return new n(l);throw new Error("Unknown node type: "+r.type)}s.exports=u,u.default=u}),sr=E((e,s)=>{s.exports=class{generate(){}}}),nr=E((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}),Et=E((e,s)=>{"use strict";var n=nr(),o=class{get content(){return this.css}constructor(c,i,h){this.processor=c,this.messages=[],this.root=i,this.opts=h,this.css=void 0,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}),or=E((e,s)=>{"use strict";var n={};s.exports=function(o){n[o]||(n[o]=!0,typeof console<"u"&&console.warn&&console.warn(o))}}),ir=E((e,s)=>{"use strict";var n=he(),o=_t(),c=sr(),i=st(),h=Et(),p=Le(),m=et(),{isClean:u,my:r}=kt(),t=or(),f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},l={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},a=0;function g(T){return typeof T=="object"&&typeof T.then=="function"}function y(T){let k=!1,O=f[T.type];return T.type==="decl"?k=T.prop.toLowerCase():T.type==="atrule"&&(k=T.name.toLowerCase()),k&&T.append?[O,O+"-"+k,a,O+"Exit",O+"Exit-"+k]:k?[O,O+"-"+k,O+"Exit",O+"Exit-"+k]:T.append?[O,a,O+"Exit"]:[O,O+"Exit"]}function v(T){let k;return T.type==="document"?k=["Document",a,"DocumentExit"]:T.type==="root"?k=["Root",a,"RootExit"]:k=y(T),{eventIndex:0,events:k,iterator:0,node:T,visitorIndex:0,visitors:[]}}function w(T){return T[u]=!1,T.nodes&&T.nodes.forEach(k=>w(k)),T}var x={},b=class ar{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(k,O,S){this.stringified=!1,this.processed=!1;let A;if(typeof O=="object"&&O!==null&&(O.type==="root"||O.type==="document"))A=w(O);else if(O instanceof ar||O instanceof h)A=w(O.root),O.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=O.map);else{let I=i;S.syntax&&(I=S.syntax.parse),S.parser&&(I=S.parser),I.parse&&(I=I.parse);try{A=I(O,S)}catch(R){this.processed=!0,this.error=R}A&&!A[r]&&n.rebuild(A)}this.result=new h(k,A,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(k){return this.async().catch(k)}finally(k){return this.async().then(k,k)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(k,O){let S=this.result.lastPlugin;try{O&&O.addToError(k),this.error=k,k.name==="CssSyntaxError"&&!k.plugin?(k.plugin=S.postcssPlugin,k.setMessage()):S.postcssVersion}catch(A){console&&console.error&&console.error(A)}return k}prepareVisitors(){this.listeners={};let k=(O,S,A)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([O,A])};for(let O of this.plugins)if(typeof O=="object")for(let S in O){if(!l[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${O.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[S])if(typeof O[S]=="object")for(let A in O[S])A==="*"?k(O,S,O[S][A]):k(O,S+"-"+A.toLowerCase(),O[S][A]);else typeof O[S]=="function"&&k(O,S,O[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let k=0;k<this.plugins.length;k++){let O=this.plugins[k],S=this.runOnRoot(O);if(g(S))try{await S}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[u];){k[u]=!0;let O=[v(k)];for(;O.length>0;){let S=this.visitTick(O);if(g(S))try{await S}catch(A){let I=O[O.length-1].node;throw this.handleError(A,I)}}}if(this.listeners.OnceExit)for(let[O,S]of this.listeners.OnceExit){this.result.lastPlugin=O;try{if(k.type==="document"){let A=k.nodes.map(I=>S(I,this.helpers));await Promise.all(A)}else await S(k,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(k){this.result.lastPlugin=k;try{if(typeof k=="object"&&k.Once){if(this.result.root.type==="document"){let O=this.result.root.nodes.map(S=>k.Once(S,this.helpers));return g(O[0])?Promise.all(O):O}return k.Once(this.result.root,this.helpers)}else if(typeof k=="function")return k(this.result.root,this.result)}catch(O){throw this.handleError(O)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let k=this.result.opts,O=m;k.syntax&&(O=k.syntax.stringify),k.stringifier&&(O=k.stringifier),O.stringify&&(O=O.stringify);let S=new c(O,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 k of this.plugins){let O=this.runOnRoot(k);if(g(O))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let k=this.result.root;for(;!k[u];)k[u]=!0,this.walkSync(k);if(this.listeners.OnceExit)if(k.type==="document")for(let O of k.nodes)this.visitSync(this.listeners.OnceExit,O);else this.visitSync(this.listeners.OnceExit,k)}return this.result}then(k,O){return this.async().then(k,O)}toString(){return this.css}visitSync(k,O){for(let[S,A]of k){this.result.lastPlugin=S;let I;try{I=A(O,this.helpers)}catch(R){throw this.handleError(R,O.proxyOf)}if(O.type!=="root"&&O.type!=="document"&&!O.parent)return!0;if(g(I))throw this.getAsyncError()}}visitTick(k){let O=k[k.length-1],{node:S,visitors:A}=O;if(S.type!=="root"&&S.type!=="document"&&!S.parent){k.pop();return}if(A.length>0&&O.visitorIndex<A.length){let[R,M]=A[O.visitorIndex];O.visitorIndex+=1,O.visitorIndex===A.length&&(O.visitors=[],O.visitorIndex=0),this.result.lastPlugin=R;try{return M(S.toProxy(),this.helpers)}catch(N){throw this.handleError(N,S)}}if(O.iterator!==0){let R=O.iterator,M;for(;M=S.nodes[S.indexes[R]];)if(S.indexes[R]+=1,!M[u]){M[u]=!0,k.push(v(M));return}O.iterator=0,delete S.indexes[R]}let I=O.events;for(;O.eventIndex<I.length;){let R=I[O.eventIndex];if(O.eventIndex+=1,R===a){S.nodes&&S.nodes.length&&(S[u]=!0,O.iterator=S.getIterator());return}else if(this.listeners[R]){O.visitors=this.listeners[R];return}}k.pop()}walkSync(k){k[u]=!0;let O=y(k);for(let S of O)if(S===a)k.nodes&&k.each(A=>{A[u]||this.walkSync(A)});else{let A=this.listeners[S];if(A&&this.visitSync(A,k.toProxy()))return}}warnings(){return this.sync().warnings()}};b.registerPostcss=T=>{x=T},s.exports=b,b.default=b,p.registerLazyResult(b),o.registerLazyResult(b)}),vs=E((e,s)=>{"use strict";var n=sr(),o=st(),c=Et(),i=et(),h=or(),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 l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let d=new n(f,t,this._opts,u);if(d.isMap()){let[a,g]=d.generate();a&&(this.result.css=a),g&&(this.result.map=g)}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}),ys=E((e,s)=>{"use strict";var n=_t(),o=ir(),c=vs(),i=Le(),h=class{constructor(p=[]){this.version="8.5.3",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)}),At=E((e,s)=>{"use strict";var n=Ot(),o=Ne(),c=he(),i=bt(),h=rt(),p=_t(),m=ms(),u=Re(),r=ir(),t=rr(),f=tt(),l=st(),d=ys(),a=Et(),g=Le(),y=Tt(),v=et(),w=nr();function x(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new d(b)}x.plugin=function(b,T){let k=!1;function O(...A){console&&console.warn&&!k&&(k=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let I=T(...A);return I.postcssPlugin=b,I.postcssVersion=new d().version,I}let S;return Object.defineProperty(O,"postcss",{get(){return S||(S=O()),S}}),O.process=function(A,I,R){return x([O(R)]).process(A,I)},O},x.stringify=v,x.parse=l,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 g(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=w,x.AtRule=n,x.Result=a,x.Input=u,x.Rule=y,x.Root=g,x.Node=f,r.registerPostcss(x),s.exports=x,x.default=x}),gs=E((e,s)=>{var{Container:n}=At(),o=class extends n{constructor(c){super(c),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};s.exports=o}),ws=E((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,l,d,a,g,y,v,w,x=u.length,b=0,T=[],k=[],O;function S(){return b}function A($){throw p.error("Unclosed "+$,b)}function I(){return k.length===0&&b>=x}function R(){let $=1,P=!1,B=!1;for(;$>0;)f+=1,u.length<=f&&A("interpolation"),t=u.charCodeAt(f),v=u.charCodeAt(f+1),P?!B&&t===P?(P=!1,B=!1):t===92?B=!B:B&&(B=!1):t===39||t===34?P=t:t===125?$-=1:t===35&&v===123&&($+=1)}function M($){if(k.length)return k.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);w=["space",u.slice(b,f)],b=f-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let B=String.fromCharCode(t);w=[B,B,b];break}case 44:{w=["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(O=1,g=!1,f=b+1;f<=u.length-1;){if(v=u.charCodeAt(f),v===92)g=!g;else if(v===40)O+=1;else if(v===41&&(O-=1,O===0))break;f+=1}d=u.slice(b,f+1),w=["brackets",d,b,f],b=f}else f=u.indexOf(")",b+1),d=u.slice(b,f+1),f===-1||c.test(d)?w=["(","(",b]:(w=["brackets",d,b,f],b=f);break}case 39:case 34:{for(l=t,f=b,g=!1;f<x&&(f++,f===x&&A("string"),t=u.charCodeAt(f),v=u.charCodeAt(f+1),!(!g&&t===l));)t===92?g=!g:g?g=!1:t===35&&v===123&&R();w=["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,w=["at-word",u.slice(b,f+1),b,f],b=f;break}case 92:{for(f=b,a=!0;u.charCodeAt(f+1)===92;)f+=1,a=!a;if(t=u.charCodeAt(f+1),a&&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)}w=["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),w=["word",d,b,f],b=f):t===47&&v===42?(f=u.indexOf("*/",b+2)+1,f===0&&(r||P?f=u.length:A("comment")),w=["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),w=["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,w=["word",u.slice(b,f+1),b,f],T.push(w),b=f);break}return b++,w}function N($){k.push($)}return{back:N,endOfFile:I,nextToken:M,position:S}}}),bs=E((e,s)=>{var{Comment:n}=At(),o=St(),c=gs(),i=ws(),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,l)=>{if(l[0]==="comment"&&l[4]==="inline"){let d=l[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return f+"/*"+d+"*/"}else return f+l[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 l;for(;p.length;)if(l=p.shift(),l[0]===":"){t.raws.between+=l[1];break}else t.raws.between+=l[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(l=p[d],l[1]==="!important"){t.important=!0;let a=this.stringFrom(p,d);a=this.spacesFromEnd(p)+a,a!==" !important"&&(t.raws.important=a);break}else if(l[1]==="important"){let a=p.slice(0),g="";for(let y=d;y>0;y--){let v=a[y][0];if(g.trim().indexOf("!")===0&&v!=="space")break;g=a.pop()[1]+g}g.trim().indexOf("!")===0&&(t.important=!0,t.raws.important=g,p=a)}if(l[0]!=="space"&&l[0]!=="comment")break}this.raw(t,"value",p),t.value.includes(":")&&this.checkMissedSemicolon(p),this.current=t}}};s.exports=h}),xs=E((e,s)=>{var{Input:n}=At(),o=bs();s.exports=function(c,i){let h=new n(c,i),p=new o(h);return p.parse(),p.root}}),ur=E(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}),lr=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=ur(),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}),ks=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=h,e.parseMediaQuery=p,e.parseMediaList=m;var s=ur(),n=i(s),o=lr(),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=[],l=0,d="",a=null,g=null,y=r,v=u;u[0]==="("&&u[u.length-1]===")"&&(v=u.substring(1,u.length-1),y++);for(var w=0;w<v.length;w++){var x=v[w];if((x==="'"||x==='"')&&(t[l].isCalculationEnabled===!0?(t.push({mode:"string",isCalculationEnabled:!1,character:x}),l++):t[l].mode==="string"&&t[l].character===x&&v[w-1]!=="\\"&&(t.pop(),l--)),x==="{"?(t.push({mode:"interpolation",isCalculationEnabled:!0}),l++):x==="}"&&(t.pop(),l--),t[l].mode==="normal"&&x===":"){var b=v.substring(w+1);g={type:"value",before:/^(\s*)/.exec(b)[1],after:/(\s*)$/.exec(b)[1],value:b.trim()},g.sourceIndex=g.before.length+w+1+y,a={type:"colon",sourceIndex:w+y,after:g.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),a!==null&&(a.before=d.after,f.push(a)),g!==null&&f.push(g),f}function p(u){var r=arguments.length<=1||arguments[1]===void 0?0:arguments[1],t=[],f=0,l=!1,d=void 0;function a(){return{before:"",after:"",value:""}}d=a();for(var g=0;g<u.length;g++){var y=u[g];l?(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+g,l=!0),l&&f===0&&(y===")"||g===u.length-1||u[g+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=a(),l=!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,l=/^(\s*)url\s*\(/.exec(u);if(l!==null){for(var d=l[0].length,a=1;a>0;){var g=u[d];g==="("&&a++,g===")"&&a--,d++}r.unshift(new n.default({type:"url",value:u.substring(0,d).trim(),sourceIndex:l[1].length,before:l[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 w=u.substring(t,y),x=/^(\s*)/.exec(w)[1];r.push(new c.default({type:"media-query",value:w.trim(),sourceIndex:t+x.length,nodes:p(w,t),before:x,after:/(\s*)$/.exec(w)[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}}),Os=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var s=lr(),n=c(s),o=ks();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()})}}),cr=E((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)},[])}}}),pr=E((e,s)=>{s.exports=function(n,o){for(var c=-1,i=[];(c=n.indexOf(o,c+1))!==-1;)i.push(c);return i}}),hr=E((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}),Oe=E((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(l){return h(l,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,l=f===void 0?"":f;this.spaces={before:t,after:l}}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}),V=E(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"}),jt=E((e,s)=>{"use strict";e.__esModule=!0;var n=function(){function l(d,a){for(var g=0;g<a.length;g++){var y=a[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(d,y.key,y)}}return function(d,a,g){return a&&l(d.prototype,a),g&&l(d,g),d}}(),o=Oe(),c=m(o),i=V(),h=p(i);function p(l){if(l&&l.__esModule)return l;var d={};if(l!=null)for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(d[a]=l[a]);return d.default=l,d}function m(l){return l&&l.__esModule?l:{default:l}}function u(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}function r(l,d){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:l}function t(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);l.prototype=Object.create(d&&d.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(l,d):l.__proto__=d)}var f=function(l){t(d,l);function d(a){u(this,d);var g=r(this,l.call(this,a));return g.nodes||(g.nodes=[]),g}return d.prototype.append=function(a){return a.parent=this,this.nodes.push(a),this},d.prototype.prepend=function(a){return a.parent=this,this.nodes.unshift(a),this},d.prototype.at=function(a){return this.nodes[a]},d.prototype.index=function(a){return typeof a=="number"?a:this.nodes.indexOf(a)},d.prototype.removeChild=function(a){a=this.index(a),this.at(a).parent=void 0,this.nodes.splice(a,1);var g=void 0;for(var y in this.indexes)g=this.indexes[y],g>=a&&(this.indexes[y]=g-1);return this},d.prototype.removeAll=function(){for(var y=this.nodes,a=Array.isArray(y),g=0,y=a?y:y[Symbol.iterator]();;){var v;if(a){if(g>=y.length)break;v=y[g++]}else{if(g=y.next(),g.done)break;v=g.value}var w=v;w.parent=void 0}return this.nodes=[],this},d.prototype.empty=function(){return this.removeAll()},d.prototype.insertAfter=function(a,g){var y=this.index(a);this.nodes.splice(y+1,0,g);var v=void 0;for(var w in this.indexes)v=this.indexes[w],y<=v&&(this.indexes[w]=v+this.nodes.length);return this},d.prototype.insertBefore=function(a,g){var y=this.index(a);this.nodes.splice(y,0,g);var v=void 0;for(var w in this.indexes)v=this.indexes[w],y<=v&&(this.indexes[w]=v+this.nodes.length);return this},d.prototype.each=function(a){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var g=this.lastEach;if(this.indexes[g]=0,!!this.length){for(var y=void 0,v=void 0;this.indexes[g]<this.length&&(y=this.indexes[g],v=a(this.at(y),y),v!==!1);)this.indexes[g]+=1;if(delete this.indexes[g],v===!1)return!1}},d.prototype.walk=function(a){return this.each(function(g,y){var v=a(g,y);if(v!==!1&&g.length&&(v=g.walk(a)),v===!1)return!1})},d.prototype.walkAttributes=function(a){var g=this;return this.walk(function(y){if(y.type===h.ATTRIBUTE)return a.call(g,y)})},d.prototype.walkClasses=function(a){var g=this;return this.walk(function(y){if(y.type===h.CLASS)return a.call(g,y)})},d.prototype.walkCombinators=function(a){var g=this;return this.walk(function(y){if(y.type===h.COMBINATOR)return a.call(g,y)})},d.prototype.walkComments=function(a){var g=this;return this.walk(function(y){if(y.type===h.COMMENT)return a.call(g,y)})},d.prototype.walkIds=function(a){var g=this;return this.walk(function(y){if(y.type===h.ID)return a.call(g,y)})},d.prototype.walkNesting=function(a){var g=this;return this.walk(function(y){if(y.type===h.NESTING)return a.call(g,y)})},d.prototype.walkPseudos=function(a){var g=this;return this.walk(function(y){if(y.type===h.PSEUDO)return a.call(g,y)})},d.prototype.walkTags=function(a){var g=this;return this.walk(function(y){if(y.type===h.TAG)return a.call(g,y)})},d.prototype.walkUniversals=function(a){var g=this;return this.walk(function(y){if(y.type===h.UNIVERSAL)return a.call(g,y)})},d.prototype.split=function(a){var g=this,y=[];return this.reduce(function(v,w,x){var b=a.call(g,w);return y.push(w),b?(v.push(y),y=[]):x===g.length-1&&v.push(y),v},[])},d.prototype.map=function(a){return this.nodes.map(a)},d.prototype.reduce=function(a,g){return this.nodes.reduce(a,g)},d.prototype.every=function(a){return this.nodes.every(a)},d.prototype.some=function(a){return this.nodes.some(a)},d.prototype.filter=function(a){return this.nodes.filter(a)},d.prototype.sort=function(a){return this.nodes.sort(a)},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}),Ts=E((e,s)=>{"use strict";e.__esModule=!0;var n=jt(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.ROOT,l}return t.prototype.toString=function(){var f=this.reduce(function(l,d){var a=String(d);return a?l+a+",":""},"").slice(0,-1);return this.trailingComma?f+",":f},t}(o.default);e.default=u,s.exports=e.default}),Cs=E((e,s)=>{"use strict";e.__esModule=!0;var n=jt(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.SELECTOR,l}return t}(o.default);e.default=u,s.exports=e.default}),We=E((e,s)=>{"use strict";e.__esModule=!0;var n=function(){function r(t,f){for(var l=0;l<f.length;l++){var d=f[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,d.key,d)}}return function(t,f,l){return f&&r(t.prototype,f),l&&r(t,l),t}}(),o=Oe(),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}),Ss=E((e,s)=>{"use strict";e.__esModule=!0;var n=We(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.CLASS,l}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}),_s=E((e,s)=>{"use strict";e.__esModule=!0;var n=Oe(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.COMMENT,l}return t}(o.default);e.default=u,s.exports=e.default}),Es=E((e,s)=>{"use strict";e.__esModule=!0;var n=We(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.ID,l}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=E((e,s)=>{"use strict";e.__esModule=!0;var n=We(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.TAG,l}return t}(o.default);e.default=u,s.exports=e.default}),js=E((e,s)=>{"use strict";e.__esModule=!0;var n=Oe(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.STRING,l}return t}(o.default);e.default=u,s.exports=e.default}),Is=E((e,s)=>{"use strict";e.__esModule=!0;var n=jt(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.PSEUDO,l}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}),Ps=E((e,s)=>{"use strict";e.__esModule=!0;var n=We(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.ATTRIBUTE,l.raws={},l}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}),$s=E((e,s)=>{"use strict";e.__esModule=!0;var n=We(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.UNIVERSAL,l.value="*",l}return t}(o.default);e.default=u,s.exports=e.default}),Ms=E((e,s)=>{"use strict";e.__esModule=!0;var n=Oe(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.COMBINATOR,l}return t}(o.default);e.default=u,s.exports=e.default}),Ns=E((e,s)=>{"use strict";e.__esModule=!0;var n=Oe(),o=i(n),c=V();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 l=p(this,r.call(this,f));return l.type=c.NESTING,l.value="&",l}return t}(o.default);e.default=u,s.exports=e.default}),Rs=E((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}),Ls=E((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,l=126,d=124,a=44,g=40,y=41,v=91,w=93,x=59,b=42,T=58,k=38,O=64,S=/[ \n\t\r\{\(\)'"\\;/]/g,A=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function I(R){for(var M=[],N=R.css.valueOf(),$=void 0,P=void 0,B=void 0,se=void 0,te=void 0,re=void 0,fe=void 0,de=void 0,me=void 0,z=void 0,Ce=void 0,ct=N.length,j=-1,C=1,_=0,L=function(W,q){if(R.safe)N+=q,P=N.length-1;else throw R.error("Unclosed "+W,C,_-j,_)};_<ct;){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 l:case d:P=_;do P+=1,$=N.charCodeAt(P);while($===t||$===f||$===l||$===d);M.push(["combinator",N.slice(_,P),C,_-j,_]),_=P-1;break;case b:M.push(["*","*",C,_-j,_]);break;case k:M.push(["&","&",C,_-j,_]);break;case a:M.push([",",",",C,_-j,_]);break;case v:M.push(["[","[",C,_-j,_]);break;case w:M.push(["]","]",C,_-j,_]);break;case T:M.push([":",":",C,_-j,_]);break;case x:M.push([";",";",C,_-j,_]);break;case g:M.push(["(","(",C,_-j,_]);break;case y:M.push([")",")",C,_-j,_]);break;case n:case o:B=$===n?"'":'"',P=_;do for(z=!1,P=N.indexOf(B,P+1),P===-1&&L("quote",B),Ce=P;N.charCodeAt(Ce-1)===c;)Ce-=1,z=!z;while(z);M.push(["string",N.slice(_,P+1),C,_-j,C,P-j,_]),_=P;break;case O: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):(A.lastIndex=_+1,A.test(N),A.lastIndex===0?P=N.length-1:P=A.lastIndex-2,M.push(["word",N.slice(_,P+1),C,_-j,C,P-j,_]),_=P);break}_++}return M}s.exports=e.default}),Ws=E((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=cr(),c=z(o),i=pr(),h=z(i),p=hr(),m=z(p),u=Ts(),r=z(u),t=Cs(),f=z(t),l=Ss(),d=z(l),a=_s(),g=z(a),y=Es(),v=z(y),w=As(),x=z(w),b=js(),T=z(b),k=Is(),O=z(k),S=Ps(),A=z(S),I=$s(),R=z(I),M=Ms(),N=z(M),$=Ns(),P=z($),B=Rs(),se=z(B),te=Ls(),re=z(te),fe=V(),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 z(j){return j&&j.__esModule?j:{default:j}}function Ce(j,C){if(!(j instanceof C))throw new TypeError("Cannot call a class as a function")}var ct=function(){function j(C){Ce(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(/((?:[*~^$|]?=))([^]*)/),q=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(q.length>1?(q[0]===""&&(q[0]=!0),X.attribute=this.parseValue(q[2]),X.namespace=this.parseNamespace(q[0])):X.attribute=this.parseValue(W[0]),_=new A.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 g.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 q=1;for(this.position++,C.value+="(";this.position<this.tokens.length&&q;)this.currToken[0]==="("&&q++,this.currToken[0]===")"&&q--,C.value+=this.parseParenthesisToken(this.currToken),this.position++;q&&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(q,X){_+=q,W=new O.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,q=this.currToken[1];W&&W[0]==="word";){this.position++;var X=this.currToken[1];if(q+=X,X.lastIndexOf("\\")===X.length-1){var ne=this.nextToken;ne&&ne[0]==="space"&&(q+=this.parseSpace(ne[1]," "),this.position++)}W=this.nextToken}var oe=(0,h.default)(q,"."),ze=(0,h.default)(q,"#"),Dt=(0,h.default)(q,"#{");Dt.length&&(ze=ze.filter(function(ie){return!~Dt.indexOf(ie)}));var ve=(0,se.default)((0,m.default)((0,c.default)([[0],oe,ze])));ve.forEach(function(ie,Se){var qe=ve[Se+1]||q.length,De=q.slice(ie,qe);if(Se===0&&_)return _.call(L,De,ve.length);var Fe=void 0;~oe.indexOf(ie)?Fe=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]+(qe-1)}},sourceIndex:L.currToken[6]+ve[Se]}):~ze.indexOf(ie)?Fe=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]+(qe-1)}},sourceIndex:L.currToken[6]+ve[Se]}):Fe=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]+(qe-1)}},sourceIndex:L.currToken[6]+ve[Se]}),L.newNode(Fe,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=ct,s.exports=e.default}),Bs=E((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=Ws(),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=E((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=E((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}),zs=E((e,s)=>{"use strict";var n=Q();s.exports=class extends n{constructor(o){super(o),this.type="root"}}}),qs=E((e,s)=>{"use strict";var n=Q();s.exports=class extends n{constructor(o){super(o),this.type="value",this.unbalanced=0}}}),Ds=E((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}),Fs=E((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}),Us=E((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}),Vs=E((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}),Gs=E((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}),Js=E((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}),Hs=E((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}),Qs=E((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}),Zs=E((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}),Ks=E((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}),Xs=E((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}),Ys=E((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}),en=E((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=Ys();s.exports=function(m,u){u=u||{};let r=[],t=m.valueOf(),f=t.length,l=-1,d=1,a=0,g=0,y=null,v,w,x,b,T,k,O,S,A,I,R,M;function N(P){let B=`Unclosed ${P} at line: ${d}, column: ${a-l}, token: ${a}`;throw new p(B)}function $(){let P=`Syntax error at line: ${d}, column: ${a-l}, token: ${a}`;throw new p(P)}for(;a<f;){switch(v=t.charCodeAt(a),v===10&&(l=a,d+=1),v){case 10:case 32:case 9:case 13:case 12:w=a;do w+=1,v=t.charCodeAt(w),v===10&&(l=w,d+=1);while(v===32||v===10||v===9||v===13||v===12);r.push(["space",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1;break;case 58:w=a+1,r.push(["colon",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1;break;case 44:w=a+1,r.push(["comma",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1;break;case 123:r.push(["{","{",d,a-l,d,w-l,a]);break;case 125:r.push(["}","}",d,a-l,d,w-l,a]);break;case 40:g++,y=!y&&g===1&&r.length>0&&r[r.length-1][0]==="word"&&r[r.length-1][1]==="url",r.push(["(","(",d,a-l,d,w-l,a]);break;case 41:g--,y=y&&g>0,r.push([")",")",d,a-l,d,w-l,a]);break;case 39:case 34:x=v===39?"'":'"',w=a;do for(I=!1,w=t.indexOf(x,w+1),w===-1&&N("quote",x),R=w;t.charCodeAt(R-1)===92;)R-=1,I=!I;while(I);r.push(["string",t.slice(a,w+1),d,a-l,d,w-l,a]),a=w;break;case 64:n.lastIndex=a+1,n.test(t),n.lastIndex===0?w=t.length-1:w=n.lastIndex-2,r.push(["atword",t.slice(a,w+1),d,a-l,d,w-l,a]),a=w;break;case 92:w=a,v=t.charCodeAt(w+1),O&&v!==47&&v!==32&&v!==10&&v!==9&&v!==13&&v!==12&&(w+=1),r.push(["word",t.slice(a,w+1),d,a-l,d,w-l,a]),a=w;break;case 43:case 45:case 42:w=a+1,M=t.slice(a+1,w+1);let P=t.slice(a-1,a);if(v===45&&M.charCodeAt(0)===45){w++,r.push(["word",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1;break}r.push(["operator",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1;break;default:if(v===47&&(t.charCodeAt(a+1)===42||u.loose&&!y&&t.charCodeAt(a+1)===47)){if(t.charCodeAt(a+1)===42)w=t.indexOf("*/",a+2)+1,w===0&&N("comment","*/");else{let B=t.indexOf(`
|
|
29
|
-
`,a+2);w=B!==-1?B-1:f}k=t.slice(a,w+1),b=k.split(`
|
|
30
|
-
`),T=b.length-1,T>0?(S=d+T,A=w-b[T].length):(S=d,A=l),r.push(["comment",k,d,a-l,S,w-A,a]),l=A,d=S,a=w}else if(v===35&&!i.test(t.slice(a+1,a+2)))w=a+1,r.push(["#",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1;else if((v===117||v===85)&&t.charCodeAt(a+1)===43){w=a+2;do w+=1,v=t.charCodeAt(w);while(w<f&&h.test(t.slice(w,w+1)));r.push(["unicoderange",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1}else if(v===47)w=a+1,r.push(["operator",t.slice(a,w),d,a-l,d,w-l,a]),a=w-1;else{let B=o;if(v>=48&&v<=57&&(B=c),B.lastIndex=a+1,B.test(t),B.lastIndex===0?w=t.length-1:w=B.lastIndex-2,B===c||v===46){let se=t.charCodeAt(w),te=t.charCodeAt(w+1),re=t.charCodeAt(w+2);(se===101||se===69)&&(te===45||te===43)&&re>=48&&re<=57&&(c.lastIndex=w+2,c.test(t),c.lastIndex===0?w=t.length-1:w=c.lastIndex-2)}r.push(["word",t.slice(a,w+1),d,a-l,d,w-l,a]),a=w}break}a++}return r}}),tn=E((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}),rn=E((e,s)=>{"use strict";var n=zs(),o=qs(),c=Ds(),i=Fs(),h=Us(),p=Vs(),m=Gs(),u=Js(),r=Hs(),t=Qs(),f=Zs(),l=Ks(),d=Xs(),a=en(),g=cr(),y=pr(),v=hr(),w=tn();function x(b){return b.sort((T,k)=>T-k)}s.exports=class{constructor(b,T){let k={loose:!1};this.cache=[],this.input=b,this.options=Object.assign({},k,T),this.position=0,this.unbalanced=0,this.root=new n;let O=new o;this.root.append(O),this.current=O,this.tokens=a(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,""),k;this.options.loose&&T.startsWith("//")&&(T=T.substring(2),b=!0),k=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(k),this.position++}error(b,T){throw new w(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,k=this.currToken,O;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",k),O=this.current.last,O&&O.type==="func"&&O.unbalanced<0&&(O.unbalanced=0,this.current=O),this.current.unbalanced++,this.newNode(new t({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[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,A=this.currToken[1],I={line:this.currToken[2],column:this.currToken[3]};for(;S&&S[0]!==")"&&this.current.unbalanced;)this.position++,A+=this.currToken[1],S=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new l({value:A,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],k=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,O=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,S,A;if(!O.test(T))for(;b&&b[0]==="word";){this.position++;let I=this.currToken[1];T+=I,b=this.nextToken}S=y(T,"@"),A=x(v(g([[0],S]))),A.forEach((I,R)=>{let M=A[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]+A[R]});else if(k.test(this.currToken[1])){let P=N.replace(k,"");$=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]+A[R],unit:P})}else $=new(b&&b[0]==="("?m:l)({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]+A[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],k=/^(\"|\')/,O=k.test(T),S="",A;O&&(S=T.match(k)[0],T=T.slice(1,T.length-1)),A=new f({value:T,source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6],quoted:O}),A.raws.quote=S,this.newNode(A),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]}}}),fr={};Kt(fr,{languages:()=>ai,options:()=>ci,parsers:()=>Ur,printers:()=>Ui});var sn=(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)},F=sn,dr="string",mr="array",vr="cursor",nt="indent",It="align",yr="trim",ot="group",it="fill",at="if-break",gr="indent-if-break",Pt="line-suffix",wr="line-suffix-boundary",Te="line",br="label",$t="break-parent",xr=new Set([vr,nt,It,yr,ot,it,at,gr,Pt,wr,Te,br,$t]),nn=(e,s,n)=>{if(!(e&&s==null))return Array.isArray(s)||typeof s=="string"?s[n<0?s.length+n:n]:s.at(n)},xe=nn;function on(e){if(typeof e=="string")return dr;if(Array.isArray(e))return mr;if(!e)return;let{type:s}=e;if(xr.has(s))return s}var Pe=on,an=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function un(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=an([...xr].map(c=>`'${c}'`));return`Unexpected doc.type '${e.type}'.
|
|
32
|
-
Expected it to be ${o}.`}var ln=class extends Error{name="InvalidDocError";constructor(e){super(un(e)),this.doc=e}},cn=ln;function pn(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 mr: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 It:case nt:case gr:case br:case Pt:return s({...i,contents:o(i.contents)});case dr:case vr:case yr:case wr:case Te:case $t:return s(i);default:throw new cn(i)}}}function hn(e){return e.type===Te&&!e.hard?e.soft?"":" ":e.type===at?e.flatContents:e}function fn(e){return pn(e,hn)}var Mt=()=>{},pe=Mt,Nt=Mt,dn=Mt;function G(e){return pe(e),{type:nt,contents:e}}function kr(e,s){return pe(s),{type:It,contents:s,n:e}}function K(e,s={}){return pe(e),Nt(s.expandedStates,!0),{type:ot,id:s.id,contents:e,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function mn(e){return kr({type:"root"},e)}function Me(e){return kr(-1,e)}function He(e){return dn(e),{type:it,parts:e}}function Or(e,s="",n={}){return pe(e),s!==""&&pe(s),{type:at,breakContents:e,flatContents:s,groupId:n.groupId}}function vn(e){return pe(e),{type:Pt,contents:e}}var Rt={type:$t},yn={type:Te,hard:!0},U={type:Te},Z={type:Te,soft:!0},D=[yn,Rt];function ue(e,s){pe(e),Nt(s);let n=[];for(let o=0;o<s.length;o++)o!==0&&n.push(e),n.push(s[o]);return n}function gn(e){return Array.isArray(e)&&e.length>0}var ut=gn,Tr=new Proxy(()=>{},{get:()=>Tr}),wn=Tr,Ue="'",Ft='"';function bn(e,s){let n=s===!0||s===Ue?Ue:Ft,o=n===Ue?Ft:Ue,c=0,i=0;for(let h of e)h===n?c++:h===o&&i++;return c>i?o:n}var xn=bn;function kn(e,s,n){let o=s==='"'?"'":'"',c=F(!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 On=kn;function Tn(e,s){wn.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?"'":xn(n,s.singleQuote);return e.charAt(0)===o?e:On(n,o,!1)}var Cr=Tn,Cn=class extends Error{name="UnexpectedNodeError";constructor(e,s,n="type"){super(`Unexpected ${s} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Sn=Cn;function _n(e){return e?.type==="front-matter"}var Ye=_n,En=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function Sr(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"&&xe(!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=An(e.value)),e.type==="selector-combinator"&&(s.value=F(!1,s.value,/\s+/gu," ")),e.type==="media-feature"&&(s.value=F(!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=F(!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=F(!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=F(!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"}}}Sr.ignoredProperties=En;function An(e){return F(!1,F(!1,e,"'",'"'),/\\([^\da-f])/giu,"$1")}var jn=Sr;async function In(e,s){if(e.language==="yaml"){let n=e.value.trim(),o=n?await s(n,{parser:"yaml"}):"";return mn([e.startDelimiter,e.explicitLanguage,D,o,o?D:"",e.endDelimiter])}}var Pn=In;function _r(e){let{node:s}=e;if(s.type==="front-matter")return async n=>{let o=await Pn(s,n);return o?[o,D]:void 0}}_r.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var $n=_r,_e=null;function $e(e){if(_e!==null&&typeof _e.property){let s=_e;return _e=$e.prototype=null,s}return _e=$e.prototype=e??Object.create(null),new $e}var Mn=10;for(let e=0;e<=Mn;e++)$e();function Nn(e){return $e(e)}function Rn(e,s="type"){Nn(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 Ln=Rn,Wn={"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=Wn,zn=Ln(Bn),qn=zn;function Dn(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 Er=Dn;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 Vi=lt(/\s/u),Ar=lt(" "),Fn=lt(",; "),jr=lt(/[^\n\r]/u);function Ir(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.sourceIndex;if((c=e.source)!=null&&c.start)return Er(e.source.start,s);throw Object.assign(new Error("Can not locate node."),{node:e})}function Lt(e,s){var n,o;if(e.type==="css-comment"&&e.inline)return jr(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)return Er(e.source.end,s);if(ut(e.nodes))return Lt(xe(!1,e.nodes,-1),s)}return null}function Pr(e,s){e.source&&(e.source.startOffset=Ir(e,s),e.source.endOffset=Lt(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"?$r(o,Un(e),o.text||o.value):Pr(o,s))}}function $r(e,s,n){e.source&&(e.source.startOffset=Ir(e,n)+s,e.source.endOffset=Lt(e,n)+s);for(let o in e){let c=e[o];o==="source"||!c||typeof c!="object"||$r(c,s,n)}}function Un(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 Vn(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)+F(!1,e.slice(h,p),/["'*]/gu," ")+e.slice(p);return e}function H(e){var s;return(s=e.source)==null?void 0:s.startOffset}function J(e){var s;return(s=e.source)==null?void 0:s.endOffset}var Gn=/\*\/$/,Jn=/^\/\*\*?/,Mr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Hn=/(^|\s+)\/\/([^\n\r]*)/g,Ut=/^(\r?\n)+/,Qn=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Vt=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Zn=/(\r?\n|^) *\* ?/g,Nr=[];function Kn(e){let s=e.match(Mr);return s?s[0].trimStart():""}function Xn(e){let s=e.match(Mr),n=s?.[0];return n==null?e:e.slice(n.length)}function Yn(e){let s=`
|
|
38
|
-
`;e=F(!1,e.replace(Jn,"").replace(Gn,""),Zn,"$1");let n="";for(;n!==e;)n=e,e=F(!1,e,Qn,`${s}$1 $2${s}`);e=e.replace(Ut,"").trimEnd();let o=Object.create(null),c=F(!1,e,Vt,"").replace(Ut,"").trimEnd(),i;for(;i=Vt.exec(e);){let h=F(!1,i[2],Hn,"");if(typeof o[i[1]]=="string"||Array.isArray(o[i[1]])){let p=o[i[1]];o[i[1]]=[...Nr,...Array.isArray(p)?p:[p],h]}else o[i[1]]=h}return{comments:c,pragmas:o}}function eo({comments:e="",pragmas:s={}}){let n=`
|
|
39
|
-
`,o="/**",c=" *",i=" */",h=Object.keys(s),p=h.flatMap(u=>Gt(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} ${Gt(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 Gt(e,s){return[...Nr,...Array.isArray(s)?s:[s]].map(n=>`@${e} ${n}`.trim())}function to(e){if(!e.startsWith("#!"))return"";let s=e.indexOf(`
|
|
40
|
-
`);return s===-1?e:e.slice(0,s)}var ro=to;function Rr(e){let s=ro(e);s&&(e=e.slice(s.length+1));let n=Kn(e),{pragmas:o,comments:c}=Yn(n);return{shebang:s,text:e,pragmas:o,comments:c}}function so(e){let{pragmas:s}=Rr(e);return Object.prototype.hasOwnProperty.call(s,"prettier")||Object.prototype.hasOwnProperty.call(s,"format")}function no(e){let{shebang:s,text:n,pragmas:o,comments:c}=Rr(e),i=Xn(n),h=eo({pragmas:{format:"",...o},comments:c.trimStart()});return(s?`${s}
|
|
41
|
-
`:"")+h+(i.startsWith(`
|
|
42
|
-
`)?`
|
|
43
|
-
`:`
|
|
44
|
-
|
|
45
|
-
`)+i}var Ee=3;function oo(e){let s=e.slice(0,Ee);if(s!=="---"&&s!=="+++")return;let n=e.indexOf(`
|
|
46
|
-
`,Ee);if(n===-1)return;let o=e.slice(Ee,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+Ee,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(-Ee),raw:m}}function io(e){let s=oo(e);if(!s)return{content:e};let{raw:n}=s;return{frontMatter:s,content:F(!1,n,/[^\n]/gu," ")+e.slice(n.length)}}var Wt=io;function ao(e){return so(Wt(e).content)}function uo(e){let{frontMatter:s,content:n}=Wt(e);return(s?s.raw+`
|
|
49
|
-
|
|
50
|
-
`:"")+no(n)}var lo=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 co(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 po=new Set(["initial","inherit","unset","revert"]);function ho(e){return po.has(e.toLowerCase())}function fo(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 we(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Qe(e,s){var n;let o=e.findAncestor(c=>c.type==="value-func");return((n=o?.value)==null?void 0:n.toLowerCase())===s}function mo(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 Ze(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 vo(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 yo(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function go(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function wo(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function bo(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function xo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function ko(e){return e.type==="value-word"&&e.value==="in"}function vt(e){return e.type==="value-operator"&&e.value==="*"}function Ke(e){return e.type==="value-operator"&&e.value==="/"}function ae(e){return e.type==="value-operator"&&e.value==="+"}function be(e){return e.type==="value-operator"&&e.value==="-"}function Oo(e){return e.type==="value-operator"&&e.value==="%"}function pt(e){return vt(e)||Ke(e)||ae(e)||be(e)||Oo(e)}function To(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function Co(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function yt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Jt(e){var s;return((s=e.raws)==null?void 0:s.params)&&/^\(\s*\)$/u.test(e.raws.params)}function ht(e){return e.name.startsWith("prettier-placeholder")}function So(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 Eo(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 Ao(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 ft(e){var s;return e.type==="value-paren_group"&&((s=e.groups)==null?void 0:s[0])&&Bt(e.groups[0])}function Lr(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(!ft(o)&&!(c&&ft(c)))return!1;let i=e.findAncestor(h=>h.type==="css-decl");return!!((n=i?.prop)!=null&&n.startsWith("$")||ft(c)||c.type==="value-func")}function Ae(e){return e.type==="value-comment"&&e.inline}function dt(e){return e.type==="value-word"&&e.value==="#"}function Ht(e){return e.type==="value-word"&&e.value==="{"}function mt(e){return e.type==="value-word"&&e.value==="}"}function Ve(e){return["value-word","value-atword"].includes(e.type)}function Xe(e){return e?.type==="value-colon"}function jo(e,s){if(!Bt(s))return!1;let{groups:n}=s,o=n.indexOf(e);return o===-1?!1:Xe(n[o+1])}function Io(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Po(e){return e.type!=="value-func"?!1:lo.has(e.value.toLowerCase())}function je(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function Ge(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function $o(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 Je(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 Mo(e,s,n){var o;let{node:c}=e,i=e.parent,h=e.grandparent,p=co(e),m=p&&i.type==="value-value"&&(p==="grid"||p.startsWith("grid-template")),u=e.findAncestor(y=>y.type==="css-atrule"),r=u&&yt(u,s),t=c.groups.some(y=>Ae(y)),f=e.map(n,"groups"),l=[""],d=Qe(e,"url"),a=!1,g=!1;for(let y=0;y<c.groups.length;++y){let v=c.groups[y-1],w=c.groups[y],x=c.groups[y+1],b=c.groups[y+2];if(Ae(w)&&!x){l.push([l.pop(),vn([" ",f[y]])]);continue}if(l.push([l.pop(),f[y]]),d){(x&&ae(x)||ae(w))&&l.push([l.pop()," "]);continue}if(Xe(x)&&w.type==="value-word"&&l.length>2&&c.groups.slice(0,y).every(I=>I.type==="value-comment")&&!Ae(v)&&(l[l.length-2]=Me(xe(!1,l,-2))),Ze(e,"forward")&&w.type==="value-word"&&w.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&x.type==="value-operator"&&x.value==="*"||!x||w.type==="value-word"&&w.value.endsWith("-")&&Ge(x))continue;if(w.type==="value-string"&&w.quoted){let I=w.value.lastIndexOf("#{"),R=w.value.lastIndexOf("}");I!==-1&&R!==-1?a=I>R:I!==-1?a=!0:R!==-1&&(a=!1)}if(a||Xe(w)||Xe(x)||w.type==="value-atword"&&(w.value===""||w.value.endsWith("["))||x.type==="value-word"&&x.value.startsWith("]")||w.value==="~"||w.type!=="value-string"&&w.value&&w.value.includes("\\")&&x&&x.type!=="value-comment"||v!=null&&v.value&&v.value.indexOf("\\")===v.value.length-1&&w.type==="value-operator"&&w.value==="/"||w.value==="\\"||_o(w,x)||dt(w)||Ht(w)||mt(x)||Ht(x)&&ye(x)||mt(w)&&ye(x)||w.value==="--"&&dt(x))continue;let T=pt(w),k=pt(x);if((T&&dt(x)||k&&mt(w))&&ye(x)||!v&&Ke(w)||Qe(e,"calc")&&(ae(w)||ae(x)||be(w)||be(x))&&ye(x))continue;let O=(ae(w)||be(w))&&y===0&&(x.type==="value-number"||x.isHex)&&h&&Po(h)&&!ye(x),S=b?.type==="value-func"||b&&Ve(b)||w.type==="value-func"||Ve(w),A=x.type==="value-func"||Ve(x)||v?.type==="value-func"||v&&Ve(v);if(s.parser==="scss"&&T&&w.value==="-"&&x.type==="value-func"&&J(w)!==H(x)){l.push([l.pop()," "]);continue}if(!(!(vt(x)||vt(w))&&!Qe(e,"calc")&&!O&&(Ke(x)&&!S||Ke(w)&&!A||ae(x)&&!S||ae(w)&&!A||be(x)||be(w))&&(ye(x)||T&&(!v||v&&pt(v))))&&!((s.parser==="scss"||s.parser==="less")&&T&&w.value==="-"&&Je(x)&&J(w)===H(x.open)&&x.open.value==="(")){if(Ae(w)){if(i.type==="value-paren_group"){l.push(Me(D),"");continue}l.push(D,"");continue}if(r&&(To(x)||Co(x)||xo(x)||ko(w)||bo(w))){l.push([l.pop()," "]);continue}if(u&&u.name.toLowerCase()==="namespace"){l.push([l.pop()," "]);continue}if(m){w.source&&x.source&&w.source.start.line!==x.source.start.line?(l.push(D,""),g=!0):l.push([l.pop()," "]);continue}if(k){l.push([l.pop()," "]);continue}if(x?.value!=="..."&&!(Ge(w)&&Ge(x)&&J(w)===H(x))){if(Ge(w)&&Je(x)&&J(w)===H(x.open)){l.push(Z,"");continue}if(w.value==="with"&&Je(x)){l=[[He(l)," "]];continue}(o=w.value)!=null&&o.endsWith("#")&&x.value==="{"&&Je(x.group)||Ae(x)&&!b||l.push(U,"")}}}return t&&l.push([l.pop(),Rt]),g&&l.unshift("",D),r?K(G(l)):vo(e)?K(He(l)):K(G(He(l)))}var No=Mo;function Ro(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 Lo=Ro,Qt=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 Wo(e){let s=e.toLowerCase();return Qt.has(s)?Qt.get(s):e}var Wr=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,Bo=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,zo=/[a-z]+/giu,qo=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,Do=new RegExp(Wr.source+`|(${qo.source})?(${Bo.source})(${zo.source})?`,"giu");function Y(e,s){return F(!1,e,Wr,n=>Cr(n,s))}function Fo(e,s){let n=s.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function ge(e){return F(!1,e,Do,(s,n,o,c,i)=>!o&&c?Br(c)+we(i||""):s)}function Br(e){return Lo(e).replace(/\.0(?=$|e)/u,"")}function Uo(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function Vo(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 zr=Vo;function Go(e,s,n={}){let o=Ar(e,n.backwards?s-1:s,n),c=zr(e,o,n);return o!==c}var qr=Go;function Jo(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 Ho=Jo;function Qo(e,s){return s===!1?!1:e.charAt(s)==="/"&&e.charAt(s+1)==="/"?jr(e,s):s}var Zo=Qo;function Ko(e,s){let n=null,o=s;for(;o!==n;)n=o,o=Fn(e,o),o=Ho(e,o),o=Ar(e,o);return o=Zo(e,o),o=zr(e,o),o!==!1&&qr(e,o)}var Dr=Ko;function Xo({node:e,parent:s},n){return!!(e.source&&n.originalText.slice(H(e),H(s.close)).trimEnd().endsWith(","))}function Yo(e,s){return go(e.grandparent)&&Xo(e,s)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(n=>n.type==="value-comment"))&&Uo(s)&&e.callParent(()=>Lr(e,s))?Or(","):""}function ei(e,s,n){let{node:o,parent:c}=e,i=e.map(({node:l})=>typeof l=="string"?l:n(),"groups");if(c&&yo(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 l=Fr(e);Nt(i);let d=ri(ue(",",i),2),a=ue(l?D:U,d);return G(l?[D,a]:K([ti(e)?Z:"",He(a)]))}let h=e.map(({node:l,isLast:d,index:a})=>{var g;let y=i[a];Bt(l)&&l.type==="value-comma_group"&&l.groups&&l.groups[0].type!=="value-paren_group"&&((g=l.groups[2])==null?void 0:g.type)==="value-paren_group"&&Pe(y)===ot&&Pe(y.contents)===nt&&Pe(y.contents.contents)===it&&(y=K(Me(y)));let v=[y,d?Yo(e,s):","];if(!d&&l.type==="value-comma_group"&&ut(l.groups)){let w=xe(!1,l.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Dr(s.originalText,J(w))&&v.push(D)}return v},"groups"),p=jo(o,c),m=$o(o,c),u=Lr(e,s),r=m||u&&!p,t=m||p,f=K([o.open?n("open"):"",G([Z,ue(U,h)]),Z,o.close?n("close"):""],{shouldBreak:r});return t?Me(f):f}function Fr(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 ti(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 ri(e,s){let n=[];for(let o=0;o<e.length;o+=s)n.push(e.slice(o,o+s));return n}function si(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(H(c),J(c))):o.push(n()),e.isLast)return;let{next:h}=e;h.type==="css-comment"&&!qr(s.originalText,H(h),{backwards:!0})&&!Ye(c)||h.type==="css-atrule"&&h.name==="else"&&c.type!=="css-comment"?o.push(" "):(o.push(s.__isHTMLStyleAttribute?U:D),Dr(s.originalText,J(c))&&!Ye(c)&&o.push(D))},"nodes"),o}var Ie=si;function ni(e,s,n){var o,c,i,h,p,m;let{node:u}=e;switch(u.type){case"front-matter":return[u.raw,D];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"),D]:"",r,t?` ${t}`:"",u.nodes.length>0?D:""]}case"css-comment":{let r=u.inline||u.raws.inline,t=s.originalText.slice(H(u),J(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?G([D,Ie(e,s,n)]):"",D,"}",wo(u)?";":""]:";"];case"css-decl":{let r=e.parent,{between:t}=u.raws,f=t.trim(),l=f===":",d=typeof u.value=="string"&&/^ *$/u.test(u.value),a=typeof u.value=="string"?u.value:n("value");return a=Eo(u)?fn(a):a,!l&&je(f)&&!((i=(c=u.value)==null?void 0:c.group)!=null&&i.group&&e.call(()=>Fr(e),"value","group","group"))&&(a=G([D,Me(a)])),[F(!1,u.raws.before,/[\s;]/gu,""),r.type==="css-atrule"&&r.variable||mo(e)?u.prop:we(u.prop),f.startsWith("//")?" ":"",f,u.extend||d?"":" ",s.parser==="less"&&u.extend&&u.selector?["extend(",n("selector"),")"]:"",a,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?[" {",G([Z,Ie(e,s,n)]),Z,"}"]:So(u)&&!r.raws.semicolon&&s.originalText[J(u)-1]!==";"?"":s.__isHTMLStyleAttribute&&e.isLast?Or(";"):";"]}case"css-atrule":{let r=e.parent,t=ht(u)&&!r.raws.semicolon&&s.originalText[J(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?["{",G([u.nodes.length>0?Z:"",Ie(e,s,n)]),Z,"}"]:"",t?"":";"]}let f=u.name==="import"&&((h=u.params)==null?void 0:h.type)==="value-unknown"&&u.params.value.endsWith(";");return["@",Jt(u)||u.name.endsWith(":")||ht(u)?u.name:we(u.name),u.params?[Jt(u)?"":ht(u)?u.raws.afterName===""?"":u.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(u.raws.afterName)?[D,D]:/^\s*\n/u.test(u.raws.afterName)?D:" ":" ",typeof u.params=="string"?u.params:n("params")]:"",u.selector?G([" ",n("selector")]):"",u.value?K([" ",n("value"),yt(u,s)?Ao(u)?" ":U:""]):u.name==="else"?" ":"",u.nodes?[yt(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:" ","{",G([u.nodes.length>0?Z:"",Ie(e,s,n)]),Z,"}"]:t||f?"":";"]}case"media-query-list":{let r=[];return e.each(({node:t})=>{t.type==="media-query"&&t.value===""||r.push(n())},"nodes"),K(G(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 we(Y(F(!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(F(!1,F(!1,u.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),s);case"media-unknown":return u.value;case"selector-root":return K([Ze(e,"custom-selector")?[e.findAncestor(r=>r.type==="css-atrule").customSelector,U]:"",ue([",",Ze(e,["extend","custom-selector","nest"])?U:D],e.map(n,"nodes"))]);case"selector-selector":{let r=u.nodes.length>1;return K((r?G: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(fo(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?Fo(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[we(u.value),ut(u.nodes)?K(["(",G([Z,ue([",",U],e.map(n,"nodes"))]),Z,")"]):""];case"selector-nesting":return u.value;case"selector-unknown":{let r=e.findAncestor(l=>l.type==="css-rule");if(r!=null&&r.isSCSSNesterProperty)return ge(Y(we(u.value),s));let t=e.parent;if((m=t.raws)!=null&&m.selector){let l=H(t),d=l+t.raws.selector.length;return s.originalText.slice(l,d).trim()}let f=e.grandparent;if(t.type==="value-paren_group"&&f?.type==="value-func"&&f.value==="selector"){let l=J(t.open)+1,d=H(t.close),a=s.originalText.slice(l,d).trim();return je(a)?[Rt,a]:a}return u.value}case"value-value":case"value-root":return n("group");case"value-comment":return s.originalText.slice(H(u),J(u));case"value-comma_group":return No(e,s,n);case"value-paren_group":return ei(e,s,n);case"value-func":return[u.value,Ze(e,"supports")&&Io(u)?" ":"",n("group")];case"value-paren":return u.value;case"value-number":return[Br(u.value),Wo(u.unit)];case"value-operator":return u.value;case"value-word":return u.isColor&&u.isHex||ho(u.value)?u.value.toLowerCase():u.value;case"value-colon":{let{previous:r}=e;return K([u.value,typeof r?.value=="string"&&r.value.endsWith("\\")||Qe(e,"url")?"":U])}case"value-string":return Cr(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 Sn(u,"PostCSS")}}var oi={print:ni,embed:$n,insertPragma:uo,massageAstNode:jn,getVisitorKeys:qn},ii=oi,ai=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],ui={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."}},li={singleQuote:ui.singleQuote},ci=li,Ur={};Kt(Ur,{css:()=>qi,less:()=>Di,scss:()=>Fi});var pi=ke(st(),1),hi=ke(ds(),1),fi=ke(xs(),1);function di(e,s){let n=new SyntaxError(e+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(n,s)}var mi=di,vi=ke(Os(),1);function Be(e,s,n){if(e&&typeof e=="object"){delete e.parent;for(let o in e)Be(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 Vr(e){if(e&&typeof e=="object"){delete e.parent;for(let s in e)Vr(e[s]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var yi=vi.default.default;function gi(e){let s;try{s=yi(e)}catch{return{type:"selector-unknown",value:e}}return Be(Vr(s),"media-")}var wi=gi,bi=ke(Bs(),1);function xi(e){if(/\/\/|\/\*/u.test(e))return{type:"selector-unknown",value:e.trim()};let s;try{new bi.default(n=>{s=n}).process(e)}catch{return{type:"selector-unknown",value:e}}return Be(s,"selector-")}var ce=xi,ki=ke(rn(),1),Oi=e=>{for(;e.parent;)e=e.parent;return e},Gr=Oi;function Ti(e){return Gr(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Ci=Ti;function Si(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 _i=Si;function Ei(e){return e.some(s=>s.type==="string"||s.type==="func"&&!s.value.endsWith("\\"))}var Ai=Ei;function ji(e,s){return!!(s.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var Ii=ji,Zt=e=>e.type==="paren"&&e.value===")";function Pi(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(Gr(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 l=0;l<t.length;l++){let d=t[l];d.type==="comma_group"?f=[...f,...d.groups]:f.push(d)}(_i(f)||!Ai(f)&&!Ii(f[0],s))&&(r.group.groups=[Ci(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=xe(!1,m,-1),p.groups.push(c),i.pop(),c=xe(!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 gt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?gt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(gt)}:e}function Jr(e,s){if(e&&typeof e=="object")for(let n in e)n!=="parent"&&(Jr(e[n],s),n==="nodes"&&(e.group=gt(Pi(e,s)),delete e[n]));return e}function $i(e,s){if(s.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let n=null;try{n=new ki.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}n.text=e;let o=Jr(n,s);return Be(o,"value-",/^selector-/u)}var le=$i,Mi=new Set(["import","use","forward"]);function Ni(e){return Mi.has(e)}var Ri=Ni;function Li(e,s){return s.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Wi=Li,Bi=/(\s*)(!default).*$/u,zi=/(\s*)(!global).*$/u;function Hr(e,s){var n,o;if(e&&typeof e=="object"){delete e.parent;for(let p in e)Hr(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=F(!1,m,/[^\n]/gu," ")+u,t;s.parser==="scss"?t=Kr:s.parser==="less"?t=Zr:t=Qr;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):(Wi(e,s)&&(e.isSCSSNesterProperty=!0),e.selector=ce(c),e);if(i.trim().length>0){let p=i.match(Bi);p&&(i=i.slice(0,p.index),e.scssDefault=!0,p[0].trim()!=="!default"&&(e.raws.scssDefault=p[0]));let m=i.match(zi);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):Ri(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=wi(h),e):(e.params=h,e)}}return e}function zt(e,s,n){let o=Wt(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:mi(`${p}: ${m}`,{loc:{start:{line:u,column:r}},cause:h})}return n.originalText=s,i=Hr(Be(i,"css-"),n),Pr(i,s),c&&(c.source={startOffset:0,endOffset:c.raw.length},i.frontMatter=c),i}function Qr(e,s={}){return zt(pi.default.default,e,s)}function Zr(e,s={}){return zt(n=>hi.default.parse(Vn(n)),e,s)}function Kr(e,s={}){return zt(fi.default,e,s)}var qt={astFormat:"postcss",hasPragma:ao,locStart:H,locEnd:J},qi={...qt,parse:Qr},Di={...qt,parse:Zr},Fi={...qt,parse:Kr},Ui={postcss:ii},Gi=fr;export{Gi as default,ai as languages,ci as options,Ur as parsers,Ui as printers};
|