61 lines
151 KiB
JavaScript
61 lines
151 KiB
JavaScript
|
|
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var bl=Object.create;var bt=Object.defineProperty;var El=Object.getOwnPropertyDescriptor;var Sl=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Tl=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sn=(t,e)=>{for(var s in e)bt(t,s,{get:e[s],enumerable:!0})},nn=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sl(e))!Tl.call(t,n)&&n!==s&&bt(t,n,{get:()=>e[n],enumerable:!(r=El(e,n))||r.enumerable});return t};var Te=(t,e,s)=>(s=t!=null?bl(kl(t)):{},nn(e||!t||!t.__esModule?bt(s,"default",{value:t,enumerable:!0}):s,t)),Al=t=>nn(bt({},"__esModule",{value:!0}),t);var Ci=w((lx,os)=>{var x=String,Oi=function(){return{isColorSupported:!1,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};os.exports=Oi();os.exports.createColors=Oi});var as=w(()=>{});var jt=w((px,Ri)=>{"use strict";var Ni=Ci(),Pi=as(),st=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}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(e){if(!this.source)return"";let s=this.source;e==null&&(e=Ni.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:h,red:c}=Ni.createColors(!0);n=g=>f(c(g)),r=g=>h(g),Pi&&(i=g=>Pi(g))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;return o.slice(u,a).map((f,h)=>{let c=u+1+h,g=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(f.length>160){let d=20,p=Math.max(0,this.column-d),m=Math.max(this.column+d,this.endColumn+d),y=f.slice(p,m),v=r(g.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,d-1)).replace(/[^\t]/g," ");return n(">")+r(g)+i(y)+`
|
||
|
|
`+v+n("^")}let b=r(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(g)+i(f)+`
|
||
|
|
`+b+n("^")}return" "+r(g)+i(f)}).join(`
|
||
|
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
||
|
|
|
||
|
|
`+e+`
|
||
|
|
`),this.name+": "+this.message+e}};Ri.exports=st;st.default=st});var Ht=w((hx,qi)=>{"use strict";var Ii={after:`
|
||
|
|
`,beforeClose:`
|
||
|
|
`,beforeComment:`
|
||
|
|
`,beforeDecl:`
|
||
|
|
`,beforeOpen:" ",beforeRule:`
|
||
|
|
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Rc(t){return t[0].toUpperCase()+t.slice(1)}var nt=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(`
|
||
|
|
`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u<i;u++)r+=o}return r}block(e,s){let r=this.raw(e,"between","beforeOpen");this.builder(s+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let s=e.nodes.length-1;for(;s>0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,s!==n||r)}}comment(e){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+s+e.text+r+"*/",e)}decl(e,s){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),s&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,s,r){let n;if(r||(r=s),s&&(n=e.raws[s],typeof n<"u"))return n;let i=e.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return Ii[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let u="raw"+Rc(r);this[u]?n=this[u](o,e):o.walk(a=>{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Ii[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(`
|
||
|
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
||
|
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
||
|
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(`
|
||
|
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
|
||
|
|
`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};qi.exports=nt;nt.default=nt});var it=w((dx,Li)=>{"use strict";var Ic=Ht();function us(t,e){new Ic(e).stringify(t)}Li.exports=us;us.default=us});var Kt=w((mx,ls)=>{"use strict";ls.exports.isClean=Symbol("isClean");ls.exports.my=Symbol("my")});var ut=w((yx,Di)=>{"use strict";var qc=jt(),Lc=Ht(),Dc=it(),{isClean:ot,my:Mc}=Kt();function cs(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>cs(o,s)):(i==="object"&&n!==null&&(n=cs(n)),s[r]=n)}return s}function ee(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;i<t.length;i++){if(r===e.line&&s===e.column){n=i;break}t[i]===`
|
||
|
|
`?(s=1,r+=1):s+=1}return n}var at=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ot]=!1,this[Mc]=!0;for(let s in e)if(s==="nodes"){this.nodes=[];for(let r of e[s])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[s]=e[s]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let s=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let s in e)this[s]=e[s];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let s=cs(this);for(let r in e)s[r]=e[r];return s}cloneAfter(e={}){let s=this.clone(e);return this.parent.insertAfter(this,s),s}cloneBefore(e={}){let s=this.clone(e);return this.parent.insertBefore(this,s),s}error(e,s={}){if(this.source){let{end:r,start:n}=this.rangeBy(s);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},s)}return new qc(e)}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:s==="root"?()=>e.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[ot]=!0}markDirty(){if(this[ot]){this[ot]=!1;let e=this;for(;e=e.parent;)e[ot]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(ee(r,this.source.start),ee(r,this.source.end)).indexOf(e.word);i!==-1&&(s=this.positionInside(i))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=ee(n,this.source.start),o=i+e;for(let u=i;u<o;u++)n[u]===`
|
||
|
|
`?(s=1,r+=1):s+=1;return{column:s,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:ee(s,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:ee(s,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=s.slice(ee(s,this.source.start),ee(s,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),n=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:ee(s,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:ee(s,e.end)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,s){return new Lc().raw(this,e,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let s=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(s,n),s=n):this.parent.insertBefore(s,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,s){let r={},n=s==null;s=s||new Map;let i=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let u=this[o];if(Array.isArray(u))r[o]=u.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){if(u==null)continue;let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Dc){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r={}){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}};Di.exports=at;at.default=at});var Me=w((gx,Mi)=>{"use strict";var Bc=ut(),lt=class extends Bc{constructor(e){super(e),this.type="comment"}};Mi.exports=lt;lt.default=lt});var ft=w((wx,Bi)=>{"use strict";var Uc=ut(),ct=class extends Uc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Bi.exports=ct;ct.default=ct});var fe=w((vx,ji)=>{"use strict";var Ui=Me(),Fi=ft(),Fc=ut(),{isClean:$i,my:Wi}=Kt(),fs,Gi,Yi,ps;function Vi(t){return t.map(e=>(e.nodes&&(e.nodes=Vi(e.nodes)),delete e.source,e))}function zi(t){if(t[$i]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)zi(e)}var z=class t extends Fc{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(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]<this.proxyOf.nodes.length&&(r=this.indexes[s],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:e[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?(...r)=>e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.
|
||
|
|
`),s=new Array(e.length),r=0;for(let n=0,i=e.length;n<i;n++)s[n]=r,r+=e[n].length+1;return t[ms]=s,s}var Be=class{get from(){return this.file||this.id}constructor(e,s={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.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,s.document&&(this.document=s.document.toString()),s.from&&(!eo||/^\w+:\/\//.test(s.from)||ys(s.from)?this.file=s.from:this.file=gs(s.from)),eo&&Hc){let r=new jc(this.css,s);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Yc(6)+">"),this.map&&(this.map.file=this.from)}error(e,s,r,n={}){let i,o,u,a,l;if(s&&typeof s=="object"){let h=s,c=r;if(typeof h.offset=="number"){a=h.offset;let g=this.fromOffset(a);s=g.line,r=g.col}else s=h.line,r=h.column,a=this.fromLineAndColumn(s,r);if(typeof c.offset=="number"){u=c.offset;let g=this.fromOffset(u);o=g.line,i=g.col}else o=c.line,i=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(r)a=this.fromLineAndColumn(s,r);else{a=s;let h=this.fromOffset(a);s=h.line,r=h.col}let f=this.origin(s,r,o,i);return f?l=new Zi(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):l=new Zi(e,o===void 0?s:{column:r,line:s},o===void 0?r:{column:i,line:o},this.css,this.file,n.plugin),l.input={column:r,endColumn:i,endLine:o,endOffset:u,line:s,offset:a,source:this.css},this.file&&(Qt&&(l.input.url=Qt(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,s){return to(this)[e-1]+s-1}fromOffset(e){let s=to(this),r=s[s.length-1],n=0;if(e>=r)n=s.length-1;else{let i=s.length-2,o;for(;n<i;)if(o=n+(i-n>>1),e<s[o])i=o-1;else if(e>=s[o+1])n=o+1;else{n=o;break}}return{col:e-s[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:gs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;ys(o.source)?a=Qt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Qt(this.map.mapFile));let l={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ji)l.file=Ji(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(l.source=f),l}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};ro.exports=Be;Be.default=Be;ds&&ds.registerInput&&ds.registerInput(Be)});var Xt=w((Tx,no)=>{"use strict";var so=fe(),Fe=class extends so{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};no.exports=Fe;Fe.default=Fe;so.registerAtRule(Fe)});var $e=w((Ax,uo)=>{"use strict";var io=fe(),oo,ao,pe=class extends io{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new oo(new ao,this,e).stringify()}};pe.registerLazyResult=t=>{oo=t};pe.registerProcessor=t=>{ao=t};uo.exports=pe;pe.default=pe;io.registerRoot(pe)});var ws=w((Ox,lo)=>{"use strict";var pt={comma(t){return pt.split(t,[","],!0)},space(t){let e=[" ",`
|
||
|
|
`," "];return pt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",l=!1;for(let f of t)l?l=!1:f==="\\"?l=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};lo.exports=pt;pt.default=pt});var Jt=w((Cx,fo)=>{"use strict";var co=fe(),Kc=ws(),We=class extends co{get selectors(){return Kc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};fo.exports=We;We.default=We;co.registerRule(We)});var tr=w((Nx,ho)=>{"use strict";var Zt=/[\t\n\f\r "#'()/;[\\\]{}]/g,er=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qc=/.[\r\n"'(/\\]/,po=/[\da-f]/i;ho.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,l,f,h,c,g,b,d=r.length,p=0,m=[],y=[];function v(){return p}function O(W){throw e.error("Unclosed "+W,p)}function q(){return y.length===0&&p>=d}function H(W){if(y.length)return y.pop();if(p>=d)return;let A=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(p),i){case 10:case 32:case 9:case 13:case 12:{a=p;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(p,a)],p=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let k=String.fromCharCode(i);f=[k,k,p];break}case 40:{if(b=m.length?m.pop()[1]:"",g=r.charCodeAt(p+1),b==="url"&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){a=p;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(n||A){a=p;break}else O("bracket");for(c=a;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);f=["brackets",r.slice(p,a+1),p,a],p=a}else a=r.indexOf(")",p+1),o=r.slice(p,a+1),a===-1||Qc.test(o)?f=["(","(",p]:(f=["brackets",o,p,a],p=a);break}case 39:case 34:{l=i===39?"'":'"',a=p;do{if(h=!1,a=r.indexOf(l,a+1),a===-1)if(n||A){a=p+1;break}else O("string");for(c=a;r.charCodeAt(c-1)===92;)c-=1,h=!h}while(h);f=["string",r.slice(p,a+1),p,a],p=a;break}case 64:{Zt.lastIndex=p+1,Zt.test(r),Zt.lastIndex===0?a=r.length-1:a=Zt.lastIndex-2,f=["at-word",r.slice(p,a+1),p,a],p=a;break}case 92:{for(a=p,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,po.test(r.charAt(a)))){for(;po.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(p,a+1),p,a],p=a;break}default:{i===47&&r.charCodeAt(p+1)===42?(a=r.indexOf("*/",p+2)+1,a===0&&(n||A?a=r.length:O("comment")),f=["comment",r.slice(p,a+1),p,a],p=a):(er.lastIndex=p+1,er.test(r),er.lastIndex===0?a=r.length-1:a=er.lastIndex-2,f=["word",r.slice(p,a+1),p,a],m.push(f),p=a);break}}return p++,f}function ne(W){y.push(W)}return{back:ne,endOfFile:q,nextToken:H,position:v}}});var rr=w((Px,go)=>{"use strict";var Xc=Xt(),Jc=Me(),Zc=ft(),ef=$e(),mo=Jt(),tf=tr(),yo={empty:!0,space:!0};function rf(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var vs=class{constructor(e){this.input=e,this.root=new ef,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new Xc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,thi
|
||
|
|
`))),n=t[1].substring(t[1].indexOf(`
|
||
|
|
`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new uf(n),this.tokenizer=af(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),xs.exports.isInlineComment.bind(this)(t)}return!1}}});var _o=w((qx,xo)=>{xo.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var Eo=w((Lx,bo)=>{var lf=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,cf=/\.[0-9]/,ff=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&lf.test(e)===!1&&cf.test(e)===!1};bo.exports={isMixinToken:ff}});var ko=w((Dx,So)=>{var pf=tr(),hf=/^url\((.+)\)/;So.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=pf({css:s});for(t.filename=s.replace(hf,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var Co=w((Mx,Oo)=>{var To=/:$/,Ao=/^:(\s+)?/;Oo.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(To.test(e)){let[r]=e.match(To);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(Ao.test(s)){let[r]=s.match(Ao);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Ro=w((Ux,Po)=>{var df=Me(),mf=rr(),{isInlineComment:yf}=vo(),{interpolation:No}=_o(),{isMixinToken:gf}=Eo(),wf=ko(),vf=Co(),xf=/(!\s*important)$/i;Po.exports=class extends mf{constructor(...e){super(...e),this.lastNode=null}atrule(e){No.bind(this)(e)||(super.atrule(e),wf(this.lastNode),vf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new df,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(l=>l[0]==="brackets"),i=e.findIndex(l=>l[0]==="("),o="";if((n<0||n>3)&&i>0){let l=e.reduce((v,O,q)=>O[0]===")"?q:v),h=e.slice(i,l+i).map(v=>v[1]).join(""),[c]=e.slice(i),g=[c[2],c[3]],[b]=e.slice(l,l+1),d=[b[2],b[3]],p=["brackets",h].concat(g,d),m=e.slice(0,i),y=e.slice(l+1);e=m,e.push(p),e=e.concat(y)}let u=[];for(let l of e)if((l[1]==="!"||u.length)&&u.push(l),l[1]==="important")break;if(u.length){let[l]=u,f=e.indexOf(l),h=u[u.length-1],c=[l[2],l[3]],g=[h[4],h[5]],d=["word",u.map(p=>p[1]).join("")].concat(c,g);e.splice(f,u.length,d)}let a=e.findIndex(l=>xf.test(l[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let l of e.reverse())this.tokenizer.back(l);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){yf.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),No.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode
|
||
|
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Os().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return S([n(a)]).process(o,u)},n};S.stringify=ap;S.parse=ip;S.fromJSON=ep;S.list=sp;S.comment=t=>new ta(t);S.atRule=t=>new ea(t);S.decl=t=>new ra(t);S.rule=t=>new ia(t);S.root=t=>new na(t);S.document=t=>new sa(t);S.CssSyntaxError=Zf;S.Declaration=ra;S.Container=Jf;S.Processor=Os;S.Document=sa;S.Comment=ta;S.Warning=up;S.AtRule=ea;S.Result=op;S.Input=tp;S.Rule=ia;S.Root=na;S.Node=np;rp.registerPostcss(S);oa.exports=S;S.default=S});var ua=w((r_,aa)=>{var{Container:lp}=or(),Cs=class extends lp{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};aa.exports=Cs});var fa=w((s_,ca)=>{"use strict";var ar=/[\t\n\f\r "#'()/;[\\\]{}]/g,ur=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cp=/.[\r\n"'(/\\]/,la=/[\da-f]/i,lr=/[\n\f\r]/g;ca.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,l,f,h,c,g,b=r.length,d=0,p=[],m=[],y;function v(){return d}function O(A){throw e.error("Unclosed "+A,d)}function q(){return m.length===0&&d>=b}function H(){let A=1,k=!1,N=!1;for(;A>0;)o+=1,r.length<=o&&O("interpolation"),i=r.charCodeAt(o),c=r.charCodeAt(o+1),k?!N&&i===k?(k=!1,N=!1):i===92?N=!N:N&&(N=!1):i===39||i===34?k=i:i===125?A-=1:i===35&&c===123&&(A+=1)}function ne(A){if(m.length)return m.pop();if(d>=b)return;let k=A?A.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{o=d;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);g=["space",r.slice(d,o)],d=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let N=String.fromCharCode(i);g=[N,N,d];break}case 44:{g=["word",",",d,d+1];break}case 40:{if(h=p.length?p.pop()[1]:"",c=r.charCodeAt(d+1),h==="url"&&c!==39&&c!==34){for(y=1,f=!1,o=d+1;o<=r.length-1;){if(c=r.charCodeAt(o),c===92)f=!f;else if(c===40)y+=1;else if(c===41&&(y-=1,y===0))break;o+=1}a=r.slice(d,o+1),g=["brackets",a,d,o],d=o}else o=r.indexOf(")",d+1),a=r.slice(d,o+1),o===-1||cp.test(a)?g=["(","(",d]:(g=["brackets",a,d,o],d=o);break}case 39:case 34:{for(u=i,o=d,f=!1;o<b&&(o++,o===b&&O("string"),i=r.charCodeAt(o),c=r.charCodeAt(o+1),!(!f&&i===u));)i===92?f=!f:f?f=!1:i===35&&c===123&&H();g=["string",r.slice(d,o+1),d,o],d=o;break}case 64:{ar.lastIndex=d+1,ar.test(r),ar.lastIndex===0?o=r.length-1:o=ar.lastIndex-2,g=["at-word",r.slice(d,o+1),d,o],d=o;break}case 92:{for(o=d,l=!0;r.charCodeAt(o+1)===92;)o+=1,l=!l;if(i=r.charCodeAt(o+1),l&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(o+=1,la.test(r.charAt(o)))){for(;la.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===32&&(o+=1)}g=["word",r.slice(d,o+1),d,o],d=o;break}default:c=r.charCodeAt(d+1),i===35&&c===123?(o=d,H(),a=r.slice(d,o+1),g=["word",a,d,o],d=o):i===47&&c===42?(o=r.indexOf("*/",d+2)+1,o===0&&(n||k?o=r.length:O("comment")),g=["comment",r.slice(d,o+1),d,o],d=o):i===47&&c===47?(lr.lastIndex=d+1,lr.test(r),lr.lastIndex===0?o=r.length-1:o=lr.lastIndex-2,a=r.slice(d,o+1),g=["comment",a,d,o,"inline"],d=o):(ur.lastIndex=d+1,ur.test(r),ur.lastIndex===0?o=r.length-1:o=ur.lastIndex-2,g=["word",r.slice(d,o+1),d,o],p.push(g),d=o);break}return d++,g}function W(A){m.push(A)}return{back:W,endOfFile:q,nextToken:ne,position:v}}});var ha=w((n_,pa)=>{var{Comment:fp}=or(),pp=rr(),hp=ua(),dp=fa(),Ns=class extends pp{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new fp;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tok
|
||
|
|
`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new hp;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let l=this.stringFrom(e,a);l=this.spacesFromEnd(e)+l,l!==" !important"&&(i.raws.important=l);break}else if(u[1]==="important"){let l=e.slice(0),f="";for(let h=a;h>0;h--){let c=l[h][0];if(f.trim().indexOf("!")===0&&c!=="space")break;f=l.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=l)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};pa.exports=Ns});var ma=w((i_,da)=>{var{Input:mp}=or(),yp=ha();da.exports=function(e,s){let r=new mp(e,s),n=new yp(r);return n.parse(),n.root}});var Rs=w(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});function vp(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Ps.default=vp});var qs=w(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var xp=Rs(),ga=_p(xp);function _p(t){return t&&t.__esModule?t:{default:t}}function vt(t){var e=this;this.constructor(t),this.nodes=t.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(s){s.parent=e})}vt.prototype=Object.create(ga.default.prototype);vt.constructor=ga.default;vt.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o<this.nodes.length;o++){var u=this.nodes[o],a=r?i.test(u.type):!0;if(a&&n&&n(u,o,this.nodes)===!1||u.nodes&&u.walk(e,s)===!1)return!1}return!0};vt.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],s=0;s<this.nodes.length;s++){var r=this.nodes[s];if(e(r,s,this.nodes)===!1)return!1}return!0};Is.default=vt});var _a=w(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.parseMediaFeature=xa;xt.parseMediaQuery=Ds;xt.parseMediaList=Sp;var bp=Rs(),wa=va(bp),Ep=qs(),Ls=va(Ep);function va(t){return t&&t.__esModule?t:{default:t}}function xa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,l=t;t[0]==="("&&t[t.length-1]===")"&&(l=t.substring(1,t.length-1),a++);for(var f=0;f<l.length;f++){var h=l[f];if((h==="'"||h==='"')&&(s[n].isCalculationEnabled===!0?(s.push({mode:"string",isCalculationEnabled:!1,character:h}),n++):s[n].mode==="string"&&s[n].character===h&&l[f-1]!=="\\"&&(s.pop(),n--)),h==="{"?(s.push({mode:"interpolation",isCalculationEnabled:!0}),n++):h==="}"&&(s.pop(),n--),s[n].mode==="normal"&&h===":"){var c=l.substring(f+1);u={type:"value",before:/^(\s*)/.exec(c)[1],after:/(\s*)$/.exec(c)[1],value:c.trim()},u.sourceIndex=u.before.length+f+1+a,o={type:"colon",sourceIndex:f+a,after:u.before,value:":"};break}i+=h}return i={type:"media-feature",before:/^(\s*)/.exec(i)[1],after:/(\s*)$/.exec(i)[1],value:i.trim()},i.sourceIndex=i.before.length+a,r.push
|
||
|
|
`),u=o.length-1,u>0?(f=p+u,h=n-o[u].length):(f=p,h=d),e.push(["comment",a,p,m-d,f,n-h,m]),d=h,p=f,m=n):(Or.lastIndex=m+1,Or.test(s),Or.lastIndex===0?n=s.length-1:n=Or.lastIndex-2,e.push(["word",s.slice(m,n+1),p,m-d,p,n-d,m]),m=n);break}m++}return e}fu.exports=Cr.default});var mu=w((Nr,du)=>{"use strict";Nr.__esModule=!0;var rm=(function(){function t(e,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}})(),sm=Us(),nm=I(sm),im=Fs(),js=I(im),om=$s(),am=I(om),um=Ra(),lm=I(um),cm=qa(),Hs=I(cm),fm=Ma(),pm=I(fm),hm=Ua(),dm=I(hm),mm=$a(),ym=I(mm),gm=Ga(),wm=I(gm),vm=Va(),xm=I(vm),_m=ja(),bm=I(_m),Em=Ka(),Sm=I(Em),km=Xa(),Tm=I(km),Am=Za(),Om=I(Am),Cm=tu(),Nm=I(Cm),Pm=su(),Rm=I(Pm),Im=pu(),hu=I(Im),qm=B(),Lm=Dm(qm);function Dm(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e.default=t,e}function I(t){return t&&t.__esModule?t:{default:t}}function Mm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Bm=(function(){function t(e){Mm(this,t),this.input=e,this.lossy=e.options.lossless===!1,this.position=0,this.root=new lm.default;var s=new Hs.default;return this.root.append(s),this.current=s,this.lossy?this.tokens=(0,hu.default)({safe:e.safe,css:e.css.trim()}):this.tokens=(0,hu.default)(e),this.loop()}return t.prototype.attribute=function(){var s="",r=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)s+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~s.indexOf("]")&&this.error("Expected a closing square bracket.");var i=s.split(/((?:[*~^$|]?=))([^]*)/),o=i[0].split(/(\|)/g),u={operator:i[1],value:i[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(o.length>1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new Sm.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),l=a[0].trim();r.value=this.lossy?l:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=l[0]==="'"||l[0]==='"',r.raws.unquoted=r.quoted?l.slice(1,-1):l}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new Om.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"?(s.spaces.before=this.parseSpace(this.currToken[1]),s.source.start.line=this.nextToken[2],s.source.start.column=this.nextToken[3],s.source.end.column=this.nextToken[3],s.source.end.line=this.nextToken[2],s.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?s.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?s.value=this.currToken[1]:this.currToken[0]==="space"&&(s.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(s)},t.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var s=new Hs.default;this.current.parent.append(s),this.current=s,this.position++},t.prototype.comment=function(){var s=new dm.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(s),this.position++},t.prototype.error=function(s){throw new this.input.error(s)},t.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},t.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},t.prototype.miss
|
||
|
|
`?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let s=this.source.start;if(Object(e).index)s=this.positionInside(e.index);else if(Object(e).word){let r=this.toString().indexOf(e.word);r!==-1&&(s=this.positionInside(r))}return s}}});var F=w((M_,xu)=>{"use strict";var zm=j(),Ve=class extends zm{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]<this.nodes.length&&(r=this.indexes[s],n=e(this.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}}walk(e){return this.each((s,r)=>{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Ve.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Ve.prototype[e]&&(Ve.prototype[e]=function(s){return this.walkType(t,s)})};xu.exports=Ve});var bu=w((U_,_u)=>{"use strict";var jm=F();_u.exports=class extends jm{constructor(e){super(e),this.type="root"}}});var Su=w(($_,Eu)=>{"use strict";var Hm=F();Eu.exports=class extends Hm{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var Au=w((W_,Tu)=>{"use strict";var ku=F(),Rr=class extends ku{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};ku.registerWalker(Rr);Tu.exports=Rr});var Cu=w((G_,Ou)=>{"use strict";var Km=F(),Qm=j(),Ir=class extends Qm{constructor(e){super(e),this.type="colon"}};Km.registerWalker(Ir);Ou.exports=Ir});var Pu=w((Y_,Nu)=>{"use strict";var Xm=F(),Jm=j(),qr=class extends Jm{constructor(e){super(e),this.type="comma"}};Xm.registerWalker(qr);Nu.exports=qr});var Iu=w((V_,Ru)=>{"use strict";var Zm=F(),ey=j(),Lr=class extends ey{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Zm.registerWalker(Lr);Ru.exports=Lr});var Du=w((z_,Lu)=>{"use strict";var qu=F(),Dr=class extends qu{constructor(e){super(e),this.type="func",this.unbalanced=-1}};qu.registerWalker(Dr);Lu.exports=Dr});var Bu=w((j_,Mu)=>{"use strict";var ty=F(),ry=j(),Mr=class extends ry{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};ty.registerWalker(Mr);Mu.exports=Mr});var Fu=w((H_,Uu)=>{"use strict";var sy=F(),ny=j(),Br=class extends ny{constructor(e){super(e),this.type="operator"}};sy.registerWalker(Br);Uu.exports=Br
|
||
|
|
`,a+2);c=N!==-1?N-1:i}p=n.slice(a,c+1),b=p.split(`
|
||
|
|
`),d=b.length-1,d>0?(y=u+d,v=c-b[d].length):(y=u,v=o),r.push(["comment",p,u,a-o,y,c-v,a]),o=v,u=y,a=c}else if(h===35&&!dy.test(n.slice(a+1,a+2)))c=a+1,r.push(["#",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;else if((h===117||h===85)&&n.charCodeAt(a+1)===43){c=a+2;do c+=1,h=n.charCodeAt(c);while(c<i&&my.test(n.slice(c,c+1)));r.push(["unicoderange",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1}else if(h===47)c=a+1,r.push(["operator",n.slice(a,c),u,a-o,u,c-o,a]),a=c-1;else{let k=hy;if(h>=48&&h<=57&&(k=ze),k.lastIndex=a+1,k.test(n),k.lastIndex===0?c=n.length-1:c=k.lastIndex-2,k===ze||h===46){let N=n.charCodeAt(c),tn=n.charCodeAt(c+1),rn=n.charCodeAt(c+2);(N===101||N===69)&&(tn===45||tn===43)&&rn>=48&&rn<=57&&(ze.lastIndex=c+2,ze.test(n),ze.lastIndex===0?c=n.length-1:c=ze.lastIndex-2)}r.push(["word",n.slice(a,c+1),u,a-o,u,c-o,a]),a=c}break}a++}return r}});var tl=w((tb,el)=>{"use strict";var Xs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};el.exports=Xs});var il=w((sb,nl)=>{"use strict";var yy=bu(),gy=Su(),wy=Au(),vy=Cu(),xy=Pu(),_y=Iu(),by=Du(),Ey=Bu(),Sy=Fu(),rl=Wu(),ky=Yu(),sl=zu(),Ty=Hu(),Ay=Zu(),Oy=Us(),Cy=Fs(),Ny=$s(),Py=tl();function Ry(t){return t.sort((e,s)=>e-s)}nl.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new yy;let n=new gy;this.root.append(n),this.current=n,this.tokens=Ay(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new vy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new xy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new _y({value:s,inline:e,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(r),this.position++}error(e,s){throw new Py(e+` at line: ${s[2]}, column ${s[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 e=this.currToken[1],s;if(e==="+"||e==="-"){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 s=new Sy({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(s)}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 e=1,s=this.posit
|
||
|
|
Expected it to be 'string' or 'object'.`;if(ue(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=ql([...Ct].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
|
||
|
|
Expected it to be ${r}.`}var zr=class extends Error{name="InvalidDocError";constructor(e){super(Ll(e)),this.doc=e}},on=zr;function Dl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(ue(i)){case He:return e(i.map(r));case ae:return e({...i,parts:i.parts.map(r)});case me:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case oe:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case Ae:case ie:case Tt:case Ot:case Oe:return e({...i,contents:r(i.contents)});case je:case St:case kt:case At:case X:case Ce:return e(i);default:throw new on(i)}}}function Ml(t){return t.type===X&&!t.hard?t.soft?"":" ":t.type===me?t.flatContents:t}function an(t){return Dl(t,Ml)}var $=K,ye=K,un=K,ln=K;function L(t){return $(t),{type:ie,contents:t}}function Bl(t,e){return ln(t),$(e),{type:Ae,contents:e,n:t}}function le(t){return Bl(-1,t)}var Ne={type:Ce};function Pe(t){return un(t),{type:ae,parts:t}}function D(t,e={}){return $(t),ye(e.expandedStates,!0),{type:oe,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Nt(t,e="",s={}){return $(t),e!==""&&$(e),{type:me,breakContents:t,flatContents:e,groupId:s.groupId}}function Y(t,e){$(t),ye(e);let s=[];for(let r=0;r<e.length;r++)r!==0&&s.push(t),s.push(e[r]);return s}var C={type:X},M={type:X,soft:!0},Ul={type:X,hard:!0},T=[Ul,Ne];function cn(t){return $(t),{type:Oe,contents:t}}function $l(t){return Array.isArray(t)&&t.length>0}var ce=$l;var fn=Object.freeze({character:"'",codePoint:39}),pn=Object.freeze({character:'"',codePoint:34}),Wl=Object.freeze({preferred:fn,alternate:pn}),Gl=Object.freeze({preferred:pn,alternate:fn});function Yl(t,e){let{preferred:s,alternate:r}=e===!0||e==="'"?Wl:Gl,{length:n}=t,i=0,o=0;for(let u=0;u<n;u++){let a=t.charCodeAt(u);a===s.codePoint?i++:a===r.codePoint&&o++}return(i>o?r:s).character}var hn=Yl;var Vl=/\\(["'\\])|(["'])/gu;function zl(t,e){let s=e==='"'?"'":'"',r=E(0,t,Vl,(n,i,o)=>i?i===s?s:n:o===e?"\\"+o:o);return e+r+e}var dn=zl;function jl(t,e){K(/^(?<quote>["']).*\k<quote>$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":hn(s,e.singleQuote);return t.charAt(0)===r?t:dn(s,r)}var Pt=jl;var jr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},mn=jr;var Rt=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Hl(t){return!!t?.[Rt]}var Re=Hl;var Ke=3;function Kl(t){let e=t.slice(0,Ke);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(`
|
||
|
|
`,Ke);if(s===-1)return;let r=t.slice(Ke,s).trim(),n=t.indexOf(`
|
||
|
|
${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(`
|
||
|
|
...`,s)),n===-1)return;let o=n+1+Ke,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o),l;return{language:i,explicitLanguage:r||null,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-Ke),raw:a,start:{line:1,column:0,index:0},end:{index:a.length,get line(){return l??(l=a.split(`
|
||
|
|
`)),l.length},get column(){return l??(l=a.split(`
|
||
|
|
`)),G(0,l,-1).length}},[Rt]:!0}}function Ql(t){let e=Kl(t);return e?{frontMatter:e,get content(){let{raw:s}=e;return E(0,s,/[^\n]/gu," ")+t.slice(s.length)}}:{content:t}}var ge=Ql;var Xl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function yn(t,e,s){if(t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Re(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&G(0,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=Jl(t.value)),t.type==="selector-combinator"&&(e.value=E(0,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=E(0,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=E(0,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value)){let{value:r}=e;/\s[a-zA-Z]$/u.test(r)&&(e.__prettier_attribute_selector_flag=G(0,r,-1),r=r.slice(0,-1)),r=r.trim(),r=r.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u,"$<value>"),e.value=r,delete e.quoted}if((t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=E(0,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(t.type==="value-comma_group"&&t.groups.some(r=>r.type==="value-atword"&&(r.value.endsWith("[")||r.value.endsWith("]"))||r.type==="value-word"&&(r.value.startsWith("]")||r.value.startsWith("["))))return{type:"value-atword",value:t.groups.map(r=>r.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}yn.ignoredProperties=Xl;function Jl(t){return E(0,E(0,t,"'",'"'),/\\([^\da-f])/giu,"$1")}var gn=yn;function wn(){}wn.getVisitorKeys=t=>t.type==="css-root"?["frontMatter"]:[];var vn=wn;var Qe=null;function Xe(t){if(Qe!==null&&typeof Qe.property){let e=Qe;return Qe=Xe.prototype=null,e}return Qe=Xe.prototype=t??Object.create(null),new Xe}var Zl=10;for(let t=0;t<=Zl;t++)Xe();function Hr(t){return Xe(t)}function ec(t,e="type"){Hr(t);function s(r){let n=r[e],i=t[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return s}var xn=ec;var _=[[],["nodes"],["group"]],_n={"css-root":["frontMatter","nodes"],"css-comment":_[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":_[1],"media-query":_[1],"media-type":_[0],"media-feature-expression":_[1],"media-feature":_[0],"media-colon":_[0],"media-value":_[0],"media-keyword":_[0],"media-url":_[0],"media-unknown":_[0],"selector-roo
|
||
|
|
`,s)+1;return s+t.column}var Kr=rc;function It(t){return(e,s,r)=>{let n=!!r?.backwards;if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&o<i;){let u=e.charAt(o);if(t instanceof RegExp){if(!t.test(u))return o}else if(!t.includes(u))return o;n?o--:o++}return o===-1||o===i?o:!1}}var Uw=It(/\s/u),qt=It(" "),En=It(",; "),Lt=It(/[^\n\r]/u);function Sn(t,e){let{value:s}=t;return s==="-"||s==="--"||s.charAt(0)!=="-"?e:e-(s.charAt(1)==="-"?2:1)}function kn(t,e){if(typeof t.source?.start?.offset=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.type==="value-word"?Sn(t,t.sourceIndex):t.sourceIndex;if(t.source?.start)return Kr(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function Qr(t,e){if(t.type==="css-comment"&&t.inline)return Lt(e,t.source.startOffset);if(typeof t.source?.end?.offset=="number")return t.source.end.offset;if(t.source){if(t.source.end){let s=Kr(t.source.end,e);return t.type==="value-word"?Sn(t,s):s}if(ce(t.nodes))return Qr(G(0,t.nodes,-1),e)}return null}function Xr(t,e){t.source&&(t.source.startOffset=kn(t,e),t.source.endOffset=Qr(t,e));for(let s in t){let r=t[s];s==="source"||!r||typeof r!="object"||(r.type==="value-root"||r.type==="value-unknown"?Tn(r,sc(t),r.text||r.value):Xr(r,e))}}function Tn(t,e,s){t.source&&(t.source.startOffset=kn(t,s)+e,t.source.endOffset=Qr(t,s)+e);for(let r in t){let n=t[r];r==="source"||!n||typeof n!="object"||Tn(n,e,s)}}function sc(t){let e=t.source.startOffset;return typeof t.prop=="string"&&(e+=t.prop.length),t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/u)[0].length),t.type!=="css-atrule"&&typeof t.raws?.between=="string"&&(e+=t.raws.between.length),e}function An(t){let e="initial",s="initial",r,n=!1,i=[];for(let o=0;o<t.length;o++){let u=t[o];switch(e){case"initial":if(u==="'"){e="single-quotes";continue}if(u==='"'){e="double-quotes";continue}if((u==="u"||u==="U")&&t.slice(o,o+4).toLowerCase()==="url("){e="url",o+=3;continue}if(u==="*"&&t[o-1]==="/"){e="comment-block";continue}if(u==="/"&&t[o-1]==="/"){e="comment-inline",r=o-1;continue}continue;case"single-quotes":if(u==="'"&&t[o-1]!=="\\"&&(e=s,s="initial"),u===`
|
||
|
|
`||u==="\r")return t;continue;case"double-quotes":if(u==='"'&&t[o-1]!=="\\"&&(e=s,s="initial"),u===`
|
||
|
|
`||u==="\r")return t;continue;case"url":if(u===")"&&(e="initial"),u===`
|
||
|
|
`||u==="\r")return t;if(u==="'"){e="single-quotes",s="url";continue}if(u==='"'){e="double-quotes",s="url";continue}continue;case"comment-block":u==="/"&&t[o-1]==="*"&&(e="initial");continue;case"comment-inline":(u==='"'||u==="'"||u==="*")&&(n=!0),(u===`
|
||
|
|
`||u==="\r")&&(n&&i.push([r,o]),e="initial",n=!1);continue}}for(let[o,u]of i)t=t.slice(0,o)+E(0,t.slice(o,u),/["'*]/gu," ")+t.slice(u);return t}var P=t=>t.source?.startOffset,R=t=>t.source?.endOffset;var nc=/\*\/$/,ic=/^\/\*\*?/,Pn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,oc=/(^|\s+)\/\/([^\n\r]*)/g,On=/^(\r?\n)+/,ac=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Cn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,uc=/(\r?\n|^) *\* ?/g,Rn=[];function In(t){let e=t.match(Pn);return e?e[0].trimStart():""}function qn(t){let s=t.match(Pn)?.[0];return s==null?t:t.slice(s.length)}function Ln(t){t=E(0,t.replace(ic,"").replace(nc,""),uc,"$1");let s="";for(;s!==t;)s=t,t=E(0,t,ac,`
|
||
|
|
$1 $2
|
||
|
|
`);t=t.replace(On,"").trimEnd();let r=Object.create(null),n=E(0,t,Cn,"").replace(On,"").trimEnd(),i;for(;i=Cn.exec(t);){let o=E(0,i[2],oc,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...Rn,...Array.isArray(u)?u:[u],o]}else r[i[1]]=o}return{comments:n,pragmas:r}}function Dn({comments:t="",pragmas:e={}}){let o=Object.keys(e),u=o.flatMap(l=>Nn(l,e[l])).map(l=>` * ${l}
|
||
|
|
`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let l=e[o[0]];return`/** ${Nn(o[0],l)[0]} */`}}let a=t.split(`
|
||
|
|
`).map(l=>` * ${l}`).join(`
|
||
|
|
`)+`
|
||
|
|
`;return`/**
|
||
|
|
`+(t?a:"")+(t&&o.length>0?` *
|
||
|
|
`:"")+u+" */"}function Nn(t,e){return[...Rn,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}var Mn=["noformat","noprettier"],Bn=["format","prettier"],Un="format";function lc(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
|
||
|
|
`);return e===-1?t:t.slice(0,e)}var Fn=lc;function Jr(t){let e=Fn(t);e&&(t=t.slice(e.length+1));let s=In(t),{pragmas:r,comments:n}=Ln(s);return{shebang:e,text:t,pragmas:r,comments:n}}function $n(t){let{pragmas:e}=Jr(t);return Bn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Wn(t){let{pragmas:e}=Jr(t);return Mn.some(s=>Object.prototype.hasOwnProperty.call(e,s))}function Gn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Jr(t),i=qn(s),o=Dn({pragmas:{[Un]:"",...r},comments:n.trimStart()});return(e?`${e}
|
||
|
|
`:"")+o+(i.startsWith(`
|
||
|
|
`)?`
|
||
|
|
`:`
|
||
|
|
|
||
|
|
`)+i}var Yn=t=>$n(ge(t).content),Vn=t=>Wn(ge(t).content),zn=t=>{let{frontMatter:e,content:s}=ge(t);return(e?e.raw+`
|
||
|
|
|
||
|
|
`:"")+Gn(s)};var cc=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 jn(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var fc=new Set(["initial","inherit","unset","revert"]);function Hn(t){return fc.has(t.toLowerCase())}function Kn(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function Ie(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function qe(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function Qn(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return!1;let s=e.raws?.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))})}function we(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Xn(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(s=>s.type==="css-atrule")?.name==="import"}function Jn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function ei(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function ti(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function ri(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function si(t){return t.type==="value-word"&&t.value==="in"}function Dt(t){return t.type==="value-operator"&&t.value==="*"}function ve(t){return t?.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function xe(t){return t.type==="value-operator"&&t.value==="-"}function pc(t){return t.type==="value-operator"&&t.value==="%"}function Mt(t){return Dt(t)||ve(t)||J(t)||xe(t)||pc(t)}function ni(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function ii(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Je(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function es(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function Bt(t){return t.name.startsWith("prettier-placeholder")}function oi(t){return t.prop.startsWith("@prettier-placeholder")}function ai(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function ui(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function li(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function Z(t){return t?.raws?.before===""}function Ut(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function Zr(t){return t.type==="value-paren_group"&&t.groups?.[0]&&Ut(t.groups[0])}function ts(t,e){if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;return!Zr(s)&&!(r&&Zr(r))?!1:!!(t.findAncestor(i=>i.type==="css-decl")?.prop?.startsWith("$")||Zr(r)||r.type==="value-func")}function Ze(t){return t.type==="value-comment"&&t.inline}function Ft(t){return t.type==="value-word"&&t.value==="#"}function rs(t){return t.type==="value-word"&&t.value==="{"}function $t(t){return t.type==="value-word"&&t.value==="}"}function et(t){return["value-word","value-atword"].includes(t.type)}function Wt(t){return t?.type==="value-colon"}function ci(t,e){if(!Ut(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:Wt(s[r+1])}function fi(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function pi(t){return t.type!=="value-func"?!1:cc.has(t.value.toLowerCase())}function Le(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function tt(t){re
|
||
|
|
`||t==="\r"||t==="\u2028"||t==="\u2029";function vc(t,e,s){let r=!!s?.backwards;if(e===!1)return!1;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===`
|
||
|
|
`)return e-2;if(xi(n))return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
|
||
|
|
`)return e+2;if(xi(n))return e+1}return e}var Yt=vc;function xc(t,e,s={}){let r=qt(t,s.backwards?e-1:e,s),n=Yt(t,r,s);return r!==n}var Vt=xc;function _c(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;s<t.length;++s)if(t.charAt(s)==="*"&&t.charAt(s+1)==="/")return s+2}return e}var _i=_c;function bc(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?Lt(t,e):e}var bi=bc;function Ec(t,e){let s=null,r=e;for(;r!==s;)s=r,r=En(t,r),r=_i(t,r),r=qt(t,r);return r=bi(t,r),r=Yt(t,r),r!==!1&&Vt(t,r)}var zt=Ec;function Sc({node:t,parent:e},s){return!!(t.source&&s.originalText.slice(P(t),P(e.close)).trimEnd().endsWith(","))}function kc(t,e){return Zn(t.grandparent)&&Sc(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(s=>s.type==="value-comment"))&&vi(e)&&t.callParent(()=>ts(t,e))?Nt(","):""}function Ei(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:g})=>typeof g=="string"?g:s(),"groups");if(n&&Jn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let g=is(t);ye(i);let b=Ac(Y(",",i),2),d=Y(g?T:C,b);return L(g?[T,d]:D([Tc(t)?M:"",Pe(d)]))}let o=t.map(({node:g,isLast:b,index:d})=>{let p=i[d];Ut(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&g.groups[2]?.type==="value-paren_group"&&ue(p)===oe&&ue(p.contents)===ie&&ue(p.contents.contents)===ae&&(p=D(le(p)));let m=[p,b?kc(t,e):","];if(!b&&g.type==="value-comma_group"&&ce(g.groups)){let y=G(0,g.groups,-1);!y.source&&y.close&&(y=y.close),y.source&&zt(e.originalText,R(y))&&m.push(T)}return m},"groups"),u=ci(r,n),a=hi(r,n),l=ts(t,e),f=a||l&&!u,h=a||u,c=D([r.open?s("open"):"",L([M,Y(C,o)]),M,r.close?s("close"):""],{shouldBreak:f});return h?le(c):c}function is(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Tc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function Ac(t,e){let s=[];for(let r=0;r<t.length;r+=e)s.push(t.slice(r,r+e));return s}function Oc(t,e,s){let r=[];return t.each(()=>{let{node:n,previous:i}=t;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Vt(e.originalText,P(o),{backwards:!0})&&!Re(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?C:T),zt(e.originalText,R(n))&&!Re(n)&&r.push(T))},"nodes"),r}var De=Oc;function Cc(t,e,s){let{node:r}=t;switch(r.type){case"css-root":{let n=De(t,e,s),i=r.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[r.frontMatter?[s("frontMatter"),T,r.nodes.length>0?T:""]:"",n,i?` ${i}`:"",r.nodes.length>0?T:""]}case"css-comment":{let n=r.inline||r.raws.inline,i=e.originalText.slice(P(r),R(r));return n?i.trimEnd():i}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Le(r.selector.value)?C:r.selector?" ":"","{",r.nodes.length>0?L([T,De(t,e,s)]):"",T,"}",ei(r)?";":""]:";"];case"css-decl":{let n=t.parent,{between:i}=r.raws,o=i.trim(),u=o===":",a=typeof r.value=="string"&&/^ *$/u.test(r.value),l=typeof r.value=="string"?r.value:s("value");return l=ui(r)?an(l):l,!u&&Le(o)&&!t.call(()=>is(t),"value","group","group")&&(l=L([T,le(l)])),[E(0,r.raws.before,/[\s;]/gu,""),n.type==="css-atrule"&&n.variable||Qn(t)?r.prop:Ie(r.prop),o.startsWith("//")?" ":"",o,r.extend||a?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",l,r.raws.important?r.raws.important.
|