@goodhood-web/nebenan-base 3.1.0 → 3.2.0-development.1

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/index.js CHANGED
@@ -877,17 +877,17 @@ Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An err
877
877
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
878
878
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let r=i.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof i.raws.before<"u"){let a=i.raws.before.split(`
879
879
  `);return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],r=e.raws[t];return r&&r.value===i?r.raw:i}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,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Gw=q0;q0.default=q0;let JJ=Gw;function Z0(n,e){new JJ(e).stringify(n)}var Cd=Z0;Z0.default=Z0;var Bu={};Bu.isClean=Symbol("isClean");Bu.my=Symbol("my");let QJ=d2,XJ=Gw,eQ=Cd,{isClean:xo,my:nQ}=Bu;function K0(n,e){let t=new n.constructor;for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i)||i==="proxyCache")continue;let r=n[i],a=typeof r;i==="parent"&&a==="object"?e&&(t[i]=e):i==="source"?t[i]=r:Array.isArray(r)?t[i]=r.map(o=>K0(o,t)):(a==="object"&&r!==null&&(r=K0(r)),t[i]=r)}return t}function So(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,i=1,r=0;for(let a=0;a<n.length;a++){if(i===e.line&&t===e.column){r=a;break}n[a]===`
880
- `?(t=1,i+=1):t+=1}return r}let Y0=class{constructor(e={}){this.raws={},this[xo]=!1,this[nQ]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];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 t=K0(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:i.column,line:i.line},t)}return new QJ(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[xo]=!0}markDirty(){if(this[xo]){this[xo]=!1;let e=this;for(;e=e.parent;)e[xo]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,a=i.slice(So(i,this.source.start),So(i,this.source.end)).indexOf(e.word);a!==-1&&(t=this.positionInside(a))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,a=So(r,this.source.start),o=a+e;for(let u=a;u<o;u++)r[u]===`
881
- `?(t=1,i+=1):t+=1;return{column:t,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,o=r.slice(So(r,this.source.start),So(r,this.source.end)).indexOf(e.word);o!==-1&&(t=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new XJ().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let r of e)r===this?i=!0:i?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},r=t==null;t=t||new Map;let a=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))i[o]=u.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof u=="object"&&u.toJSON)i[o]=u.toJSON(null,t);else if(o==="source"){let l=t.get(u.input);l==null&&(l=a,t.set(u.input,a),a++),i[o]={end:u.end,inputId:l,start:u.start}}else i[o]=u}return r&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=eQ){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let r={node:this};for(let a in i)r[a]=i[a];return e.warn(t,r)}get proxyOf(){return this}};var Ed=Y0;Y0.default=Y0;let tQ=Ed,J0=class extends tQ{constructor(e){super(e),this.type="comment"}};var Td=J0;J0.default=J0;let iQ=Ed,Q0=class extends iQ{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Md=Q0;Q0.default=Q0;let Ww=Td,Uw=Md,rQ=Ed,{isClean:qw,my:Zw}=Bu,c2,Kw,Yw,h2;function Jw(n){return n.map(e=>(e.nodes&&(e.nodes=Jw(e.nodes)),delete e.source,e))}function Qw(n){if(n[qw]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Qw(e)}let br=class Xw extends rQ{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}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,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(a,o)=>r(a.toProxy(),o):r)):t==="every"||t==="some"?i=>e[t]((r,...a)=>i(r.toProxy(),...a)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of r)this.proxyOf.nodes.splice(i+1,0,o);let a;for(let o in this.indexes)a=this.indexes[o],i<a&&(this.indexes[o]=a+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,a=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let u of a)this.proxyOf.nodes.splice(i,0,u);let o;for(let u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+a.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Jw(Kw(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Uw(e)]}else if(e.selector||e.selectors)e=[new h2(e)];else if(e.name)e=[new c2(e)];else if(e.text)e=[new Ww(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Zw]||Xw.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[qw]&&Qw(r),r.raws||(r.raws={}),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(a){throw t.addToError(a)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}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]}};br.registerParse=n=>{Kw=n};br.registerRule=n=>{h2=n};br.registerAtRule=n=>{c2=n};br.registerRoot=n=>{Yw=n};var qa=br;br.default=br;br.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,c2.prototype):n.type==="rule"?Object.setPrototypeOf(n,h2.prototype):n.type==="decl"?Object.setPrototypeOf(n,Uw.prototype):n.type==="comment"?Object.setPrototypeOf(n,Ww.prototype):n.type==="root"&&Object.setPrototypeOf(n,Yw.prototype),n[Zw]=!0,n.nodes&&n.nodes.forEach(e=>{br.rebuild(e)})};let ek=qa,nd=class extends ek{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)}};var g2=nd;nd.default=nd;ek.registerAtRule(nd);let aQ=qa,nk,tk,bu=class extends aQ{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new nk(new tk,this,e).stringify()}};bu.registerLazyResult=n=>{nk=n};bu.registerProcessor=n=>{tk=n};var m2=bu;bu.default=bu;let sQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",oQ=(n=21)=>{let e="",t=n|0;for(;t--;)e+=sQ[Math.random()*64|0];return e};var uQ={nanoid:oQ};let{existsSync:lQ,readFileSync:fQ}=Ci,{dirname:B1,join:dQ}=Ci,{SourceMapConsumer:Av,SourceMapGenerator:Pv}=Ci;function cQ(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let X0=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,r=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=B1(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Av(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,o=e.match(r)||e.match(a);if(o)return decodeURIComponent(e.substr(o[0].length));let u=e.match(t)||e.match(i);if(u)return cQ(e.substr(u[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),r=e.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,r)))}loadFile(e){if(this.root=B1(e),lQ(e))return this.mapFile=e,fQ(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(t instanceof Av)return Pv.fromSourceMap(t).toString();if(t instanceof Pv)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=dQ(B1(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var ik=X0;X0.default=X0;let{nanoid:hQ}=uQ,{isAbsolute:eh,resolve:nh}=Ci,{SourceMapConsumer:gQ,SourceMapGenerator:mQ}=Ci,{fileURLToPath:Lv,pathToFileURL:jl}=Ci,Rv=d2,pQ=ik,O1=Ci,I1=Symbol("fromOffsetCache"),vQ=!!(gQ&&mQ),zv=!!(nh&&eh),td=class{constructor(e,t={}){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]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!zv||/^\w+:\/\//.test(t.from)||eh(t.from)?this.file=t.from:this.file=nh(t.from)),zv&&vQ){let i=new pQ(this.css,t);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+hQ(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,r={}){let a,o,u;if(t&&typeof t=="object"){let d=t,c=i;if(typeof d.offset=="number"){let m=this.fromOffset(d.offset);t=m.line,i=m.col}else t=d.line,i=d.column;if(typeof c.offset=="number"){let m=this.fromOffset(c.offset);o=m.line,a=m.col}else o=c.line,a=c.column}else if(!i){let d=this.fromOffset(t);t=d.line,i=d.col}let l=this.origin(t,i,o,a);return l?u=new Rv(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):u=new Rv(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:a,line:o},this.css,this.file,r.plugin),u.input={column:i,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(jl&&(u.input.url=jl(this.file).toString()),u.input.file=this.file),u}fromOffset(e){let t,i;if(this[I1])i=this[I1];else{let a=this.css.split(`
882
- `);i=new Array(a.length);let o=0;for(let u=0,l=a.length;u<l;u++)i[u]=o,o+=a[u].length+1;this[I1]=i}t=i[i.length-1];let r=0;if(e>=t)r=i.length-1;else{let a=i.length-2,o;for(;r<a;)if(o=r+(a-r>>1),e<i[o])a=o-1;else if(e>=i[o+1])r=o+1;else{r=o;break}}return{col:e-i[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nh(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let u;typeof i=="number"&&(u=a.originalPositionFor({column:r,line:i}));let l;eh(o.source)?l=jl(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||jl(this.map.mapFile));let d={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Lv)d.file=Lv(l);else throw new Error("file: protocol is not available in this PostCSS build");let c=a.sourceContentFor(o.source);return c&&(d.source=c),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Fd=td;td.default=td;O1&&O1.registerInput&&O1.registerInput(td);let rk=qa,ak,sk,Ds=class extends rk{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let a of r)a.raws.before=t.raws.before}return r}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new ak(new sk,this,e).stringify()}};Ds.registerLazyResult=n=>{ak=n};Ds.registerProcessor=n=>{sk=n};var Ou=Ds;Ds.default=Ds;rk.registerRoot(Ds);let wu={comma(n){return wu.split(n,[","],!0)},space(n){let e=[" ",`
883
- `," "];return wu.split(n,e)},split(n,e,t){let i=[],r="",a=!1,o=0,u=!1,l="",d=!1;for(let c of n)d?d=!1:c==="\\"?d=!0:u?c===l&&(u=!1):c==='"'||c==="'"?(u=!0,l=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(a=!0),a?(r!==""&&i.push(r.trim()),r="",a=!1):r+=c;return(t||r!=="")&&i.push(r.trim()),i}};var ok=wu;wu.default=wu;let uk=qa,bQ=ok,id=class extends uk{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return bQ.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var p2=id;id.default=id;uk.registerRule(id);let wQ=g2,kQ=Td,_Q=Md,yQ=Fd,xQ=ik,SQ=Ou,CQ=p2;function ku(n,e){if(Array.isArray(n))return n.map(r=>ku(r));let{inputs:t,...i}=n;if(t){e=[];for(let r of t){let a={...r,__proto__:yQ.prototype};a.map&&(a.map={...a.map,__proto__:xQ.prototype}),e.push(a)}}if(i.nodes&&(i.nodes=n.nodes.map(r=>ku(r,e))),i.source){let{inputId:r,...a}=i.source;i.source=a,r!=null&&(i.source.input=e[r])}if(i.type==="root")return new SQ(i);if(i.type==="decl")return new _Q(i);if(i.type==="rule")return new CQ(i);if(i.type==="comment")return new kQ(i);if(i.type==="atrule")return new wQ(i);throw new Error("Unknown node type: "+n.type)}var EQ=ku;ku.default=ku;let{dirname:vf,relative:lk,resolve:fk,sep:dk}=Ci,{SourceMapConsumer:ck,SourceMapGenerator:bf}=Ci,{pathToFileURL:$v}=Ci,TQ=Fd,MQ=!!(ck&&bf),FQ=!!(vf&&fk&&lk&&dk),AQ=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
880
+ `?(t=1,i+=1):t+=1}return r}let Y0=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[xo]=!1,this[nQ]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];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 t=K0(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:i.column,line:i.line},t)}return new QJ(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[xo]=!0}markDirty(){if(this[xo]){this[xo]=!1;let e=this;for(;e=e.parent;)e[xo]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,a=i.slice(So(i,this.source.start),So(i,this.source.end)).indexOf(e.word);a!==-1&&(t=this.positionInside(a))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,a=So(r,this.source.start),o=a+e;for(let u=a;u<o;u++)r[u]===`
881
+ `?(t=1,i+=1):t+=1;return{column:t,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,o=r.slice(So(r,this.source.start),So(r,this.source.end)).indexOf(e.word);o!==-1&&(t=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new XJ().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let r of e)r===this?i=!0:i?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},r=t==null;t=t||new Map;let a=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))i[o]=u.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof u=="object"&&u.toJSON)i[o]=u.toJSON(null,t);else if(o==="source"){let l=t.get(u.input);l==null&&(l=a,t.set(u.input,a),a++),i[o]={end:u.end,inputId:l,start:u.start}}else i[o]=u}return r&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=eQ){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let r={node:this};for(let a in i)r[a]=i[a];return e.warn(t,r)}};var Ed=Y0;Y0.default=Y0;let tQ=Ed,J0=class extends tQ{constructor(e){super(e),this.type="comment"}};var Td=J0;J0.default=J0;let iQ=Ed,Q0=class extends iQ{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"}};var Md=Q0;Q0.default=Q0;let Ww=Td,Uw=Md,rQ=Ed,{isClean:qw,my:Zw}=Bu,c2,Kw,Yw,h2;function Jw(n){return n.map(e=>(e.nodes&&(e.nodes=Jw(e.nodes)),delete e.source,e))}function Qw(n){if(n[qw]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Qw(e)}let br=class Xw extends rQ{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 t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}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,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(a,o)=>r(a.toProxy(),o):r)):t==="every"||t==="some"?i=>e[t]((r,...a)=>i(r.toProxy(),...a)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of r)this.proxyOf.nodes.splice(i+1,0,o);let a;for(let o in this.indexes)a=this.indexes[o],i<a&&(this.indexes[o]=a+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,a=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let u of a)this.proxyOf.nodes.splice(i,0,u);let o;for(let u in this.indexes)o=this.indexes[u],i<=o&&(this.indexes[u]=o+a.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Jw(Kw(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Uw(e)]}else if(e.selector||e.selectors)e=[new h2(e)];else if(e.name)e=[new c2(e)];else if(e.text)e=[new Ww(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Zw]||Xw.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[qw]&&Qw(r),r.raws||(r.raws={}),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(a){throw t.addToError(a)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}};br.registerParse=n=>{Kw=n};br.registerRule=n=>{h2=n};br.registerAtRule=n=>{c2=n};br.registerRoot=n=>{Yw=n};var qa=br;br.default=br;br.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,c2.prototype):n.type==="rule"?Object.setPrototypeOf(n,h2.prototype):n.type==="decl"?Object.setPrototypeOf(n,Uw.prototype):n.type==="comment"?Object.setPrototypeOf(n,Ww.prototype):n.type==="root"&&Object.setPrototypeOf(n,Yw.prototype),n[Zw]=!0,n.nodes&&n.nodes.forEach(e=>{br.rebuild(e)})};let ek=qa,nd=class extends ek{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)}};var g2=nd;nd.default=nd;ek.registerAtRule(nd);let aQ=qa,nk,tk,bu=class extends aQ{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new nk(new tk,this,e).stringify()}};bu.registerLazyResult=n=>{nk=n};bu.registerProcessor=n=>{tk=n};var m2=bu;bu.default=bu;let sQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",oQ=(n=21)=>{let e="",t=n|0;for(;t--;)e+=sQ[Math.random()*64|0];return e};var uQ={nanoid:oQ};let{existsSync:lQ,readFileSync:fQ}=Ci,{dirname:B1,join:dQ}=Ci,{SourceMapConsumer:Av,SourceMapGenerator:Pv}=Ci;function cQ(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let X0=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,r=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=B1(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Av(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,o=e.match(r)||e.match(a);if(o)return decodeURIComponent(e.substr(o[0].length));let u=e.match(t)||e.match(i);if(u)return cQ(e.substr(u[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),r=e.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,r)))}loadFile(e){if(this.root=B1(e),lQ(e))return this.mapFile=e,fQ(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(t instanceof Av)return Pv.fromSourceMap(t).toString();if(t instanceof Pv)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=dQ(B1(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var ik=X0;X0.default=X0;let{nanoid:hQ}=uQ,{isAbsolute:eh,resolve:nh}=Ci,{SourceMapConsumer:gQ,SourceMapGenerator:mQ}=Ci,{fileURLToPath:Lv,pathToFileURL:jl}=Ci,Rv=d2,pQ=ik,O1=Ci,I1=Symbol("fromOffsetCache"),vQ=!!(gQ&&mQ),zv=!!(nh&&eh),td=class{get from(){return this.file||this.id}constructor(e,t={}){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]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!zv||/^\w+:\/\//.test(t.from)||eh(t.from)?this.file=t.from:this.file=nh(t.from)),zv&&vQ){let i=new pQ(this.css,t);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+hQ(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,r={}){let a,o,u;if(t&&typeof t=="object"){let d=t,c=i;if(typeof d.offset=="number"){let m=this.fromOffset(d.offset);t=m.line,i=m.col}else t=d.line,i=d.column;if(typeof c.offset=="number"){let m=this.fromOffset(c.offset);o=m.line,a=m.col}else o=c.line,a=c.column}else if(!i){let d=this.fromOffset(t);t=d.line,i=d.col}let l=this.origin(t,i,o,a);return l?u=new Rv(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):u=new Rv(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:a,line:o},this.css,this.file,r.plugin),u.input={column:i,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(jl&&(u.input.url=jl(this.file).toString()),u.input.file=this.file),u}fromOffset(e){let t,i;if(this[I1])i=this[I1];else{let a=this.css.split(`
882
+ `);i=new Array(a.length);let o=0;for(let u=0,l=a.length;u<l;u++)i[u]=o,o+=a[u].length+1;this[I1]=i}t=i[i.length-1];let r=0;if(e>=t)r=i.length-1;else{let a=i.length-2,o;for(;r<a;)if(o=r+(a-r>>1),e<i[o])a=o-1;else if(e>=i[o+1])r=o+1;else{r=o;break}}return{col:e-i[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nh(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let u;typeof i=="number"&&(u=a.originalPositionFor({column:r,line:i}));let l;eh(o.source)?l=jl(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||jl(this.map.mapFile));let d={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Lv)d.file=Lv(l);else throw new Error("file: protocol is not available in this PostCSS build");let c=a.sourceContentFor(o.source);return c&&(d.source=c),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Fd=td;td.default=td;O1&&O1.registerInput&&O1.registerInput(td);let rk=qa,ak,sk,Ds=class extends rk{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let a of r)a.raws.before=t.raws.before}return r}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new ak(new sk,this,e).stringify()}};Ds.registerLazyResult=n=>{ak=n};Ds.registerProcessor=n=>{sk=n};var Ou=Ds;Ds.default=Ds;rk.registerRoot(Ds);let wu={comma(n){return wu.split(n,[","],!0)},space(n){let e=[" ",`
883
+ `," "];return wu.split(n,e)},split(n,e,t){let i=[],r="",a=!1,o=0,u=!1,l="",d=!1;for(let c of n)d?d=!1:c==="\\"?d=!0:u?c===l&&(u=!1):c==='"'||c==="'"?(u=!0,l=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(a=!0),a?(r!==""&&i.push(r.trim()),r="",a=!1):r+=c;return(t||r!=="")&&i.push(r.trim()),i}};var ok=wu;wu.default=wu;let uk=qa,bQ=ok,id=class extends uk{get selectors(){return bQ.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var p2=id;id.default=id;uk.registerRule(id);let wQ=g2,kQ=Td,_Q=Md,yQ=Fd,xQ=ik,SQ=Ou,CQ=p2;function ku(n,e){if(Array.isArray(n))return n.map(r=>ku(r));let{inputs:t,...i}=n;if(t){e=[];for(let r of t){let a={...r,__proto__:yQ.prototype};a.map&&(a.map={...a.map,__proto__:xQ.prototype}),e.push(a)}}if(i.nodes&&(i.nodes=n.nodes.map(r=>ku(r,e))),i.source){let{inputId:r,...a}=i.source;i.source=a,r!=null&&(i.source.input=e[r])}if(i.type==="root")return new SQ(i);if(i.type==="decl")return new _Q(i);if(i.type==="rule")return new CQ(i);if(i.type==="comment")return new kQ(i);if(i.type==="atrule")return new wQ(i);throw new Error("Unknown node type: "+n.type)}var EQ=ku;ku.default=ku;let{dirname:vf,relative:lk,resolve:fk,sep:dk}=Ci,{SourceMapConsumer:ck,SourceMapGenerator:bf}=Ci,{pathToFileURL:$v}=Ci,TQ=Fd,MQ=!!(ck&&bf),FQ=!!(vf&&fk&&lk&&dk),AQ=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
884
884
  `;this.css.includes(`\r
885
885
  `)&&(t=`\r
886
886
  `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||vf(e.file),r;this.mapOpts.sourcesContent===!1?(r=new ck(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),FQ&&MQ&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=bf.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new bf({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new bf({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,o;this.stringify(this.root,(u,l,d)=>{if(this.css+=u,l&&d!=="end"&&(r.generated.line=e,r.generated.column=t-1,l.source&&l.source.start?(r.source=this.sourcePath(l),r.original.line=l.source.start.line,r.original.column=l.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=u.match(/\n/g),o?(e+=o.length,a=u.lastIndexOf(`
887
- `),t=u.length-a):t+=u.length,l&&d!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?vf(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=vf(fk(i,this.mapOpts.annotation)));let r=lk(i,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new TQ(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if($v){let i=$v(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;dk==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var hk=AQ;const D1=39,Bv=34,Hl=92,Ov=47,Vl=10,Co=32,Gl=12,Wl=9,Ul=13,PQ=91,LQ=93,RQ=40,zQ=41,$Q=123,BQ=125,OQ=59,IQ=42,DQ=58,NQ=64,ql=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jQ=/.[\r\n"'(/\\]/,Iv=/[\da-f]/i;var HQ=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,a,o,u,l,d,c,m,g,p,w,S=i.length,x=0,y=[],T=[];function F(){return x}function N(re){throw e.error("Unclosed "+re,x)}function L(){return T.length===0&&x>=S}function j(re){if(T.length)return T.pop();if(x>=S)return;let se=re?re.ignoreUnclosed:!1;switch(a=i.charCodeAt(x),a){case Vl:case Co:case Wl:case Ul:case Gl:{l=x;do l+=1,a=i.charCodeAt(l);while(a===Co||a===Vl||a===Wl||a===Ul||a===Gl);c=["space",i.slice(x,l)],x=l-1;break}case PQ:case LQ:case $Q:case BQ:case DQ:case OQ:case zQ:{let Y=String.fromCharCode(a);c=[Y,Y,x];break}case RQ:{if(w=y.length?y.pop()[1]:"",p=i.charCodeAt(x+1),w==="url"&&p!==D1&&p!==Bv&&p!==Co&&p!==Vl&&p!==Wl&&p!==Gl&&p!==Ul){l=x;do{if(m=!1,l=i.indexOf(")",l+1),l===-1)if(r||se){l=x;break}else N("bracket");for(g=l;i.charCodeAt(g-1)===Hl;)g-=1,m=!m}while(m);c=["brackets",i.slice(x,l+1),x,l],x=l}else l=i.indexOf(")",x+1),o=i.slice(x,l+1),l===-1||jQ.test(o)?c=["(","(",x]:(c=["brackets",o,x,l],x=l);break}case D1:case Bv:{d=a===D1?"'":'"',l=x;do{if(m=!1,l=i.indexOf(d,l+1),l===-1)if(r||se){l=x+1;break}else N("string");for(g=l;i.charCodeAt(g-1)===Hl;)g-=1,m=!m}while(m);c=["string",i.slice(x,l+1),x,l],x=l;break}case NQ:{ql.lastIndex=x+1,ql.test(i),ql.lastIndex===0?l=i.length-1:l=ql.lastIndex-2,c=["at-word",i.slice(x,l+1),x,l],x=l;break}case Hl:{for(l=x,u=!0;i.charCodeAt(l+1)===Hl;)l+=1,u=!u;if(a=i.charCodeAt(l+1),u&&a!==Ov&&a!==Co&&a!==Vl&&a!==Wl&&a!==Ul&&a!==Gl&&(l+=1,Iv.test(i.charAt(l)))){for(;Iv.test(i.charAt(l+1));)l+=1;i.charCodeAt(l+1)===Co&&(l+=1)}c=["word",i.slice(x,l+1),x,l],x=l;break}default:{a===Ov&&i.charCodeAt(x+1)===IQ?(l=i.indexOf("*/",x+2)+1,l===0&&(r||se?l=i.length:N("comment")),c=["comment",i.slice(x,l+1),x,l],x=l):(Zl.lastIndex=x+1,Zl.test(i),Zl.lastIndex===0?l=i.length-1:l=Zl.lastIndex-2,c=["word",i.slice(x,l+1),x,l],y.push(c),x=l);break}}return x++,c}function X(re){T.push(re)}return{back:X,endOfFile:L,nextToken:j,position:F}};let VQ=g2,GQ=Td,WQ=Md,UQ=Ou,Dv=p2,qQ=HQ;const Nv={empty:!0,space:!0};function ZQ(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let KQ=class{constructor(e){this.input=e,this.root=new UQ,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 t=new VQ;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,a,o=!1,u=!1,l=[],d=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){u=!0;break}else if(i==="}"){if(l.length>0){for(a=l.length-1,r=l[a];r&&r[0]==="space";)r=l[--a];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),u&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,r;for(let a=t-1;a>=0&&(r=e[a],!(r[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,a;for(let[o,u]of e.entries()){if(r=u,a=r[0],a==="("&&(t+=1),a===")"&&(t-=1),t===0&&a===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let t=new GQ;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=qQ(this.input)}decl(e,t){let i=new WQ;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||ZQ(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let d=e[0][0];if(d===":"||d==="space"||d==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let d=e.length-1;d>=0;d--){if(a=e[d],a[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,d);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1].toLowerCase()==="important"){let c=e.slice(0),m="";for(let g=d;g>0;g--){let p=c[g][0];if(m.trim().startsWith("!")&&p!=="space")break;m=c.pop()[1]+m}m.trim().startsWith("!")&&(i.important=!0,i.raws.important=m,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(d=>d[0]!=="space"&&d[0]!=="comment")&&(i.raws.between+=o.map(d=>d[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Dv;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,r=!1,a=null,o=[],u=e[1].startsWith("--"),l=[],d=e;for(;d;){if(i=d[0],l.push(d),i==="("||i==="[")a||(a=d),o.push(i==="("?")":"]");else if(u&&r&&i==="{")a||(a=d),o.push("}");else if(o.length===0)if(i===";")if(r){this.decl(l,u);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(r=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(a=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(a),t&&r){if(!u)for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,r){let a,o,u=i.length,l="",d=!0,c,m;for(let g=0;g<u;g+=1)a=i[g],o=a[0],o==="space"&&g===u-1&&!r?d=!1:o==="comment"?(m=i[g-1]?i[g-1][0]:"empty",c=i[g+1]?i[g+1][0]:"empty",!Nv[m]&&!Nv[c]?l.slice(-1)===","?d=!1:l+=a[1]:d=!1):l+=a[1];if(!d){let g=i.reduce((p,w)=>p+w[1],"");e.raws[t]={raw:g,value:l}}e[t]=l}rule(e){e.pop();let t=new Dv;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let r=t;r<e.length;r++)i+=e[r][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var YQ=KQ;let JQ=qa,QQ=Fd,XQ=YQ;function rd(n,e){let t=new QQ(n,e),i=new XQ(t);try{i.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?r.message+=`
887
+ `),t=u.length-a):t+=u.length,l&&d!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?vf(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=vf(fk(i,this.mapOpts.annotation)));let r=lk(i,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new TQ(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if($v){let i=$v(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;dk==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var hk=AQ;const D1=39,Bv=34,Hl=92,Ov=47,Vl=10,Co=32,Gl=12,Wl=9,Ul=13,PQ=91,LQ=93,RQ=40,zQ=41,$Q=123,BQ=125,OQ=59,IQ=42,DQ=58,NQ=64,ql=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jQ=/.[\r\n"'(/\\]/,Iv=/[\da-f]/i;var HQ=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,a,o,u,l,d,c,m,g,p,w,S=i.length,x=0,y=[],T=[];function F(){return x}function N(re){throw e.error("Unclosed "+re,x)}function L(){return T.length===0&&x>=S}function j(re){if(T.length)return T.pop();if(x>=S)return;let se=re?re.ignoreUnclosed:!1;switch(a=i.charCodeAt(x),a){case Vl:case Co:case Wl:case Ul:case Gl:{l=x;do l+=1,a=i.charCodeAt(l);while(a===Co||a===Vl||a===Wl||a===Ul||a===Gl);c=["space",i.slice(x,l)],x=l-1;break}case PQ:case LQ:case $Q:case BQ:case DQ:case OQ:case zQ:{let Y=String.fromCharCode(a);c=[Y,Y,x];break}case RQ:{if(w=y.length?y.pop()[1]:"",p=i.charCodeAt(x+1),w==="url"&&p!==D1&&p!==Bv&&p!==Co&&p!==Vl&&p!==Wl&&p!==Gl&&p!==Ul){l=x;do{if(m=!1,l=i.indexOf(")",l+1),l===-1)if(r||se){l=x;break}else N("bracket");for(g=l;i.charCodeAt(g-1)===Hl;)g-=1,m=!m}while(m);c=["brackets",i.slice(x,l+1),x,l],x=l}else l=i.indexOf(")",x+1),o=i.slice(x,l+1),l===-1||jQ.test(o)?c=["(","(",x]:(c=["brackets",o,x,l],x=l);break}case D1:case Bv:{d=a===D1?"'":'"',l=x;do{if(m=!1,l=i.indexOf(d,l+1),l===-1)if(r||se){l=x+1;break}else N("string");for(g=l;i.charCodeAt(g-1)===Hl;)g-=1,m=!m}while(m);c=["string",i.slice(x,l+1),x,l],x=l;break}case NQ:{ql.lastIndex=x+1,ql.test(i),ql.lastIndex===0?l=i.length-1:l=ql.lastIndex-2,c=["at-word",i.slice(x,l+1),x,l],x=l;break}case Hl:{for(l=x,u=!0;i.charCodeAt(l+1)===Hl;)l+=1,u=!u;if(a=i.charCodeAt(l+1),u&&a!==Ov&&a!==Co&&a!==Vl&&a!==Wl&&a!==Ul&&a!==Gl&&(l+=1,Iv.test(i.charAt(l)))){for(;Iv.test(i.charAt(l+1));)l+=1;i.charCodeAt(l+1)===Co&&(l+=1)}c=["word",i.slice(x,l+1),x,l],x=l;break}default:{a===Ov&&i.charCodeAt(x+1)===IQ?(l=i.indexOf("*/",x+2)+1,l===0&&(r||se?l=i.length:N("comment")),c=["comment",i.slice(x,l+1),x,l],x=l):(Zl.lastIndex=x+1,Zl.test(i),Zl.lastIndex===0?l=i.length-1:l=Zl.lastIndex-2,c=["word",i.slice(x,l+1),x,l],y.push(c),x=l);break}}return x++,c}function X(re){T.push(re)}return{back:X,endOfFile:L,nextToken:j,position:F}};let VQ=g2,GQ=Td,WQ=Md,UQ=Ou,Dv=p2,qQ=HQ;const Nv={empty:!0,space:!0};function ZQ(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let KQ=class{constructor(e){this.input=e,this.root=new UQ,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 t=new VQ;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,a,o=!1,u=!1,l=[],d=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){u=!0;break}else if(i==="}"){if(l.length>0){for(a=l.length-1,r=l[a];r&&r[0]==="space";)r=l[--a];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),u&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,r;for(let a=t-1;a>=0&&(r=e[a],!(r[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,a;for(let[o,u]of e.entries()){if(r=u,a=r[0],a==="("&&(t+=1),a===")"&&(t-=1),t===0&&a===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=r}return!1}comment(e){let t=new GQ;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=qQ(this.input)}decl(e,t){let i=new WQ;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||ZQ(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let d=e[0][0];if(d===":"||d==="space"||d==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let d=e.length-1;d>=0;d--){if(a=e[d],a[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,d);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(a[1].toLowerCase()==="important"){let c=e.slice(0),m="";for(let g=d;g>0;g--){let p=c[g][0];if(m.trim().startsWith("!")&&p!=="space")break;m=c.pop()[1]+m}m.trim().startsWith("!")&&(i.important=!0,i.raws.important=m,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(d=>d[0]!=="space"&&d[0]!=="comment")&&(i.raws.between+=o.map(d=>d[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Dv;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,r=!1,a=null,o=[],u=e[1].startsWith("--"),l=[],d=e;for(;d;){if(i=d[0],l.push(d),i==="("||i==="[")a||(a=d),o.push(i==="("?")":"]");else if(u&&r&&i==="{")a||(a=d),o.push("}");else if(o.length===0)if(i===";")if(r){this.decl(l,u);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(r=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(a=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(a),t&&r){if(!u)for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,r){let a,o,u=i.length,l="",d=!0,c,m;for(let g=0;g<u;g+=1)a=i[g],o=a[0],o==="space"&&g===u-1&&!r?d=!1:o==="comment"?(m=i[g-1]?i[g-1][0]:"empty",c=i[g+1]?i[g+1][0]:"empty",!Nv[m]&&!Nv[c]?l.slice(-1)===","?d=!1:l+=a[1]:d=!1):l+=a[1];if(!d){let g=i.reduce((p,w)=>p+w[1],"");e.raws[t]={raw:g,value:l}}e[t]=l}rule(e){e.pop();let t=new Dv;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let r=t;r<e.length;r++)i+=e[r][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var YQ=KQ;let JQ=qa,QQ=Fd,XQ=YQ;function rd(n,e){let t=new QQ(n,e),i=new XQ(t);try{i.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?r.message+=`
888
888
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?r.message+=`
889
889
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(r.message+=`
890
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),r}return i.root}var v2=rd;rd.default=rd;JQ.registerParse(rd);let th=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[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}};var gk=th;th.default=th;let eX=gk,ih=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new eX(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var b2=ih;ih.default=ih;let jv={};var mk=function(e){jv[e]||(jv[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let nX=qa,tX=m2,iX=hk,rX=v2,Hv=b2,aX=Ou,sX=Cd,{isClean:Li,my:oX}=Bu,uX=mk;const lX={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fX={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},dX={Once:!0,postcssPlugin:!0,prepare:!0},Ns=0;function Eo(n){return typeof n=="object"&&typeof n.then=="function"}function pk(n){let e=!1,t=lX[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Ns,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Ns,t+"Exit"]:[t,t+"Exit"]}function Vv(n){let e;return n.type==="document"?e=["Document",Ns,"DocumentExit"]:n.type==="root"?e=["Root",Ns,"RootExit"]:e=pk(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function rh(n){return n[Li]=!1,n.nodes&&n.nodes.forEach(e=>rh(e)),n}let ah={},js=class vk{constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=rh(t);else if(t instanceof vk||t instanceof Hv)r=rh(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let a=rX;i.syntax&&(a=i.syntax.parse),i.parser&&(a=i.parser),a.parse&&(a=a.parse);try{r=a(t,i)}catch(o){this.processed=!0,this.error=o}r&&!r[oX]&&nX.rebuild(r)}this.result=new Hv(e,r,i),this.helpers={...ah,postcss:ah,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let r=i.postcssPlugin,a=i.postcssVersion,o=this.result.processor.version,u=a.split("."),l=o.split(".");(u[0]!==l[0]||parseInt(u[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+r+" uses "+a+". Perhaps this is the source of the error below.")}}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!fX[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!dX[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(Eo(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Li];){e[Li]=!0;let t=[Vv(e)];for(;t.length>0;){let i=this.visitTick(t);if(Eo(i))try{await i}catch(r){let a=t[t.length-1].node;throw this.handleError(r,a)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(a=>i(a,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return Eo(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=sX;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new iX(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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 e of this.plugins){let t=this.runOnRoot(e);if(Eo(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Li];)e[Li]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||uX("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,r]of e){this.result.lastPlugin=i;let a;try{a=r(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Eo(a))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[o,u]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return u(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let o=t.iterator,u;for(;u=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!u[Li]){u[Li]=!0,e.push(Vv(u));return}t.iterator=0,delete i.indexes[o]}let a=t.events;for(;t.eventIndex<a.length;){let o=a[t.eventIndex];if(t.eventIndex+=1,o===Ns){i.nodes&&i.nodes.length&&(i[Li]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Li]=!0;let t=pk(e);for(let i of t)if(i===Ns)e.nodes&&e.each(r=>{r[Li]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};js.registerPostcss=n=>{ah=n};var bk=js;js.default=js;aX.registerLazyResult(js);tX.registerLazyResult(js);let cX=hk,hX=v2;const gX=b2;let mX=Cd,pX=mk,sh=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,a=mX;this.result=new gX(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new cX(a,r,this._opts,t);if(u.isMap()){let[l,d]=u.generate();l&&(this.result.css=l),d&&(this.result.map=d)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||pX("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=hX;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var vX=sh;sh.default=sh;let bX=m2,wX=bk,kX=vX,_X=Ou,_u=class{constructor(e=[]){this.version="8.5.1",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(typeof i=="object"&&(i.parse||i.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new kX(this,e,t):new wX(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var yX=_u;_u.default=_u;_X.registerProcessor(_u);bX.registerProcessor(_u);let wk=g2,kk=Td,xX=qa,SX=d2,_k=Md,yk=m2,CX=EQ,EX=Fd,TX=bk,MX=ok,FX=Ed,AX=v2,w2=yX,PX=b2,xk=Ou,Sk=p2,LX=Cd,RX=gk;function xn(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new w2(n)}xn.plugin=function(e,t){let i=!1;function r(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
890
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),r}return i.root}var v2=rd;rd.default=rd;JQ.registerParse(rd);let th=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[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}};var gk=th;th.default=th;let eX=gk,ih=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new eX(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};var b2=ih;ih.default=ih;let jv={};var mk=function(e){jv[e]||(jv[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let nX=qa,tX=m2,iX=hk,rX=v2,Hv=b2,aX=Ou,sX=Cd,{isClean:Li,my:oX}=Bu,uX=mk;const lX={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fX={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},dX={Once:!0,postcssPlugin:!0,prepare:!0},Ns=0;function Eo(n){return typeof n=="object"&&typeof n.then=="function"}function pk(n){let e=!1,t=lX[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Ns,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Ns,t+"Exit"]:[t,t+"Exit"]}function Vv(n){let e;return n.type==="document"?e=["Document",Ns,"DocumentExit"]:n.type==="root"?e=["Root",Ns,"RootExit"]:e=pk(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function rh(n){return n[Li]=!1,n.nodes&&n.nodes.forEach(e=>rh(e)),n}let ah={},js=class vk{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(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=rh(t);else if(t instanceof vk||t instanceof Hv)r=rh(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let a=rX;i.syntax&&(a=i.syntax.parse),i.parser&&(a=i.parser),a.parse&&(a=a.parse);try{r=a(t,i)}catch(o){this.processed=!0,this.error=o}r&&!r[oX]&&nX.rebuild(r)}this.result=new Hv(e,r,i),this.helpers={...ah,postcss:ah,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let r=i.postcssPlugin,a=i.postcssVersion,o=this.result.processor.version,u=a.split("."),l=o.split(".");(u[0]!==l[0]||parseInt(u[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+r+" uses "+a+". Perhaps this is the source of the error below.")}}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!fX[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!dX[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(Eo(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Li];){e[Li]=!0;let t=[Vv(e)];for(;t.length>0;){let i=this.visitTick(t);if(Eo(i))try{await i}catch(r){let a=t[t.length-1].node;throw this.handleError(r,a)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(a=>i(a,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return Eo(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=sX;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new iX(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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 e of this.plugins){let t=this.runOnRoot(e);if(Eo(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Li];)e[Li]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||uX("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,r]of e){this.result.lastPlugin=i;let a;try{a=r(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Eo(a))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[o,u]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return u(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let o=t.iterator,u;for(;u=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!u[Li]){u[Li]=!0,e.push(Vv(u));return}t.iterator=0,delete i.indexes[o]}let a=t.events;for(;t.eventIndex<a.length;){let o=a[t.eventIndex];if(t.eventIndex+=1,o===Ns){i.nodes&&i.nodes.length&&(i[Li]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Li]=!0;let t=pk(e);for(let i of t)if(i===Ns)e.nodes&&e.each(r=>{r[Li]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}};js.registerPostcss=n=>{ah=n};var bk=js;js.default=js;aX.registerLazyResult(js);tX.registerLazyResult(js);let cX=hk,hX=v2;const gX=b2;let mX=Cd,pX=mk,sh=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 e,t=hX;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,a=mX;this.result=new gX(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new cX(a,r,this._opts,t);if(u.isMap()){let[l,d]=u.generate();l&&(this.result.css=l),d&&(this.result.map=d)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||pX("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var vX=sh;sh.default=sh;let bX=m2,wX=bk,kX=vX,_X=Ou,_u=class{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(typeof i=="object"&&(i.parse||i.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new kX(this,e,t):new wX(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var yX=_u;_u.default=_u;_X.registerProcessor(_u);bX.registerProcessor(_u);let wk=g2,kk=Td,xX=qa,SX=d2,_k=Md,yk=m2,CX=EQ,EX=Fd,TX=bk,MX=ok,FX=Ed,AX=v2,w2=yX,PX=b2,xk=Ou,Sk=p2,LX=Cd,RX=gk;function xn(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new w2(n)}xn.plugin=function(e,t){let i=!1;function r(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
891
891
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
892
892
  https://www.w3ctech.com/topic/2226`));let u=t(...o);return u.postcssPlugin=e,u.postcssVersion=new w2().version,u}let a;return Object.defineProperty(r,"postcss",{get(){return a||(a=r()),a}}),r.process=function(o,u,l){return xn([r(l)]).process(o,u)},r};xn.stringify=LX;xn.parse=AX;xn.fromJSON=CX;xn.list=MX;xn.comment=n=>new kk(n);xn.atRule=n=>new wk(n);xn.decl=n=>new _k(n);xn.rule=n=>new Sk(n);xn.root=n=>new xk(n);xn.document=n=>new yk(n);xn.CssSyntaxError=SX;xn.Declaration=_k;xn.Container=xX;xn.Processor=w2;xn.Document=yk;xn.Comment=kk;xn.Warning=RX;xn.AtRule=wk;xn.Result=PX;xn.Input=EX;xn.Rule=Sk;xn.Root=xk;xn.Node=FX;TX.registerPostcss(xn);var zX=xn;xn.default=xn;const $X=gw,Gv=AJ,{isPlainObject:BX}=l2,Wv=WJ,OX=UJ,{parse:IX}=zX,DX=["img","audio","video","picture","svg","object","map","iframe","embed"],NX=["script","style"];function Oo(n,e){n&&Object.keys(n).forEach(function(t){e(n[t],t)})}function dr(n,e){return{}.hasOwnProperty.call(n,e)}function Uv(n,e){const t=[];return Oo(n,function(i){e(i)&&t.push(i)}),t}function jX(n){for(const e in n)if(dr(n,e))return!1;return!0}function HX(n){return n.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var VX=yu;const GX=/^[^\0\t\n\f\r /<=>]+$/;function yu(n,e,t){if(n==null)return"";typeof n=="number"&&(n=n.toString());let i="",r="";function a(O,W){const $=this;this.tag=O,this.attribs=W||{},this.tagPosition=i.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(x.length){const q=x[x.length-1];q.text+=$.text}},this.updateParentNodeMediaChildren=function(){x.length&&DX.includes(this.tag)&&x[x.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},yu.defaults,e),e.parser=Object.assign({},WX,e.parser);const o=function(O){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(O)>-1};NX.forEach(function(O){o(O)&&!e.allowVulnerableTags&&console.warn(`
893
893
 
package/index.mjs CHANGED
@@ -65571,6 +65571,9 @@ function Do(n, e) {
65571
65571
  return r;
65572
65572
  }
65573
65573
  let mh = class {
65574
+ get proxyOf() {
65575
+ return this;
65576
+ }
65574
65577
  constructor(e = {}) {
65575
65578
  this.raws = {}, this[Io] = !1, this[YQ] = !0;
65576
65579
  for (let t in e)
@@ -65772,9 +65775,6 @@ let mh = class {
65772
65775
  for (let a in i) r[a] = i[a];
65773
65776
  return e.warn(t, r);
65774
65777
  }
65775
- get proxyOf() {
65776
- return this;
65777
- }
65778
65778
  };
65779
65779
  var Wd = mh;
65780
65780
  mh.default = mh;
@@ -65786,12 +65786,12 @@ let JQ = Wd, ph = class extends JQ {
65786
65786
  var Gd = ph;
65787
65787
  ph.default = ph;
65788
65788
  let QQ = Wd, vh = class extends QQ {
65789
- constructor(e) {
65790
- e && typeof e.value < "u" && typeof e.value != "string" && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
65791
- }
65792
65789
  get variable() {
65793
65790
  return this.prop.startsWith("--") || this.prop[0] === "$";
65794
65791
  }
65792
+ constructor(e) {
65793
+ e && typeof e.value < "u" && typeof e.value != "string" && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
65794
+ }
65795
65795
  };
65796
65796
  var Ud = vh;
65797
65797
  vh.default = vh;
@@ -65805,6 +65805,14 @@ function Ck(n) {
65805
65805
  Ck(e);
65806
65806
  }
65807
65807
  let Tr = class Ek extends XQ {
65808
+ get first() {
65809
+ if (this.proxyOf.nodes)
65810
+ return this.proxyOf.nodes[0];
65811
+ }
65812
+ get last() {
65813
+ if (this.proxyOf.nodes)
65814
+ return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
65815
+ }
65808
65816
  append(...e) {
65809
65817
  for (let t of e) {
65810
65818
  let i = this.normalize(t, this.last);
@@ -65984,14 +65992,6 @@ let Tr = class Ek extends XQ {
65984
65992
  return t(i, r);
65985
65993
  }));
65986
65994
  }
65987
- get first() {
65988
- if (this.proxyOf.nodes)
65989
- return this.proxyOf.nodes[0];
65990
- }
65991
- get last() {
65992
- if (this.proxyOf.nodes)
65993
- return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
65994
- }
65995
65995
  };
65996
65996
  Tr.registerParse = (n) => {
65997
65997
  yk = n;
@@ -66134,6 +66134,9 @@ let bh = class {
66134
66134
  var Ak = bh;
66135
66135
  bh.default = bh;
66136
66136
  let { nanoid: uX } = iX, { isAbsolute: _h, resolve: kh } = Pi, { SourceMapConsumer: lX, SourceMapGenerator: fX } = Pi, { fileURLToPath: t6, pathToFileURL: of } = Pi, i6 = z2, dX = Ak, n0 = Pi, t0 = Symbol("fromOffsetCache"), cX = !!(lX && fX), r6 = !!(kh && _h), kd = class {
66137
+ get from() {
66138
+ return this.file || this.id;
66139
+ }
66137
66140
  constructor(e, t = {}) {
66138
66141
  if (e === null || typeof e > "u" || typeof e == "object" && !e.toString)
66139
66142
  throw new Error(`PostCSS received ${e} instead of CSS string`);
@@ -66251,9 +66254,6 @@ let { nanoid: uX } = iX, { isAbsolute: _h, resolve: kh } = Pi, { SourceMapConsum
66251
66254
  this[t] != null && (e[t] = this[t]);
66252
66255
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
66253
66256
  }
66254
- get from() {
66255
- return this.file || this.id;
66256
- }
66257
66257
  };
66258
66258
  var qd = kd;
66259
66259
  kd.default = kd;
@@ -66309,9 +66309,6 @@ let Ru = {
66309
66309
  var zk = Ru;
66310
66310
  Ru.default = Ru;
66311
66311
  let Rk = rs, hX = zk, wd = class extends Rk {
66312
- constructor(e) {
66313
- super(e), this.type = "rule", this.nodes || (this.nodes = []);
66314
- }
66315
66312
  get selectors() {
66316
66313
  return hX.comma(this.selector);
66317
66314
  }
@@ -66319,6 +66316,9 @@ let Rk = rs, hX = zk, wd = class extends Rk {
66319
66316
  let t = this.selector ? this.selector.match(/,\s*/) : null, i = t ? t[0] : "," + this.raw("between", "beforeOpen");
66320
66317
  this.selector = e.join(i);
66321
66318
  }
66319
+ constructor(e) {
66320
+ super(e), this.type = "rule", this.nodes || (this.nodes = []);
66321
+ }
66322
66322
  };
66323
66323
  var D2 = wd;
66324
66324
  wd.default = wd;
@@ -66775,7 +66775,7 @@ let WX = class {
66775
66775
  freeSemicolon(e) {
66776
66776
  if (this.spaces += e[1], this.current.nodes) {
66777
66777
  let t = this.current.nodes[this.current.nodes.length - 1];
66778
- t && t.type === "rule" && !t.raws.ownSemicolon && (t.raws.ownSemicolon = this.spaces, this.spaces = "");
66778
+ t && t.type === "rule" && !t.raws.ownSemicolon && (t.raws.ownSemicolon = this.spaces, this.spaces = "", t.source.end = this.getPosition(e[2]), t.source.end.offset += t.raws.ownSemicolon.length);
66779
66779
  }
66780
66780
  }
66781
66781
  // Helpers
@@ -66915,7 +66915,7 @@ let WX = class {
66915
66915
  }
66916
66916
  unknownWord(e) {
66917
66917
  throw this.input.error(
66918
- "Unknown word",
66918
+ "Unknown word " + e[0][1],
66919
66919
  { offset: e[0][2] },
66920
66920
  { offset: e[0][2] + e[0][1].length }
66921
66921
  );
@@ -66964,6 +66964,9 @@ let wh = class {
66964
66964
  var jk = wh;
66965
66965
  wh.default = wh;
66966
66966
  let KX = jk, yh = class {
66967
+ get content() {
66968
+ return this.css;
66969
+ }
66967
66970
  constructor(e, t, i) {
66968
66971
  this.processor = e, this.messages = [], this.root = t, this.opts = i, this.css = void 0, this.map = void 0;
66969
66972
  }
@@ -66978,9 +66981,6 @@ let KX = jk, yh = class {
66978
66981
  warnings() {
66979
66982
  return this.messages.filter((e) => e.type === "warning");
66980
66983
  }
66981
- get content() {
66982
- return this.css;
66983
- }
66984
66984
  };
66985
66985
  var j2 = yh;
66986
66986
  yh.default = yh;
@@ -67046,6 +67046,30 @@ function xh(n) {
67046
67046
  return n[Di] = !1, n.nodes && n.nodes.forEach((e) => xh(e)), n;
67047
67047
  }
67048
67048
  let Sh = {}, Xs = class Wk {
67049
+ get content() {
67050
+ return this.stringify().content;
67051
+ }
67052
+ get css() {
67053
+ return this.stringify().css;
67054
+ }
67055
+ get map() {
67056
+ return this.stringify().map;
67057
+ }
67058
+ get messages() {
67059
+ return this.sync().messages;
67060
+ }
67061
+ get opts() {
67062
+ return this.result.opts;
67063
+ }
67064
+ get processor() {
67065
+ return this.result.processor;
67066
+ }
67067
+ get root() {
67068
+ return this.sync().root;
67069
+ }
67070
+ get [Symbol.toStringTag]() {
67071
+ return "LazyResult";
67072
+ }
67049
67073
  constructor(e, t, i) {
67050
67074
  this.stringified = !1, this.processed = !1;
67051
67075
  let r;
@@ -67288,17 +67312,28 @@ let Sh = {}, Xs = class Wk {
67288
67312
  warnings() {
67289
67313
  return this.sync().warnings();
67290
67314
  }
67315
+ };
67316
+ Xs.registerPostcss = (n) => {
67317
+ Sh = n;
67318
+ };
67319
+ var Gk = Xs;
67320
+ Xs.default = Xs;
67321
+ eee.registerLazyResult(Xs);
67322
+ JX.registerLazyResult(Xs);
67323
+ let oee = Nk, uee = N2;
67324
+ const lee = j2;
67325
+ let fee = Vd, dee = Hk, Ch = class {
67291
67326
  get content() {
67292
- return this.stringify().content;
67327
+ return this.result.css;
67293
67328
  }
67294
67329
  get css() {
67295
- return this.stringify().css;
67330
+ return this.result.css;
67296
67331
  }
67297
67332
  get map() {
67298
- return this.stringify().map;
67333
+ return this.result.map;
67299
67334
  }
67300
67335
  get messages() {
67301
- return this.sync().messages;
67336
+ return [];
67302
67337
  }
67303
67338
  get opts() {
67304
67339
  return this.result.opts;
@@ -67307,22 +67342,21 @@ let Sh = {}, Xs = class Wk {
67307
67342
  return this.result.processor;
67308
67343
  }
67309
67344
  get root() {
67310
- return this.sync().root;
67345
+ if (this._root)
67346
+ return this._root;
67347
+ let e, t = uee;
67348
+ try {
67349
+ e = t(this._css, this._opts);
67350
+ } catch (i) {
67351
+ this.error = i;
67352
+ }
67353
+ if (this.error)
67354
+ throw this.error;
67355
+ return this._root = e, e;
67311
67356
  }
67312
67357
  get [Symbol.toStringTag]() {
67313
- return "LazyResult";
67358
+ return "NoWorkResult";
67314
67359
  }
67315
- };
67316
- Xs.registerPostcss = (n) => {
67317
- Sh = n;
67318
- };
67319
- var Gk = Xs;
67320
- Xs.default = Xs;
67321
- eee.registerLazyResult(Xs);
67322
- JX.registerLazyResult(Xs);
67323
- let oee = Nk, uee = N2;
67324
- const lee = j2;
67325
- let fee = Vd, dee = Hk, Ch = class {
67326
67360
  constructor(e, t, i) {
67327
67361
  t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = i, this._map = void 0;
67328
67362
  let r, a = fee;
@@ -67364,46 +67398,12 @@ let fee = Vd, dee = Hk, Ch = class {
67364
67398
  warnings() {
67365
67399
  return [];
67366
67400
  }
67367
- get content() {
67368
- return this.result.css;
67369
- }
67370
- get css() {
67371
- return this.result.css;
67372
- }
67373
- get map() {
67374
- return this.result.map;
67375
- }
67376
- get messages() {
67377
- return [];
67378
- }
67379
- get opts() {
67380
- return this.result.opts;
67381
- }
67382
- get processor() {
67383
- return this.result.processor;
67384
- }
67385
- get root() {
67386
- if (this._root)
67387
- return this._root;
67388
- let e, t = uee;
67389
- try {
67390
- e = t(this._css, this._opts);
67391
- } catch (i) {
67392
- this.error = i;
67393
- }
67394
- if (this.error)
67395
- throw this.error;
67396
- return this._root = e, e;
67397
- }
67398
- get [Symbol.toStringTag]() {
67399
- return "NoWorkResult";
67400
- }
67401
67401
  };
67402
67402
  var cee = Ch;
67403
67403
  Ch.default = Ch;
67404
67404
  let hee = I2, gee = Gk, mee = cee, pee = tl, Ou = class {
67405
67405
  constructor(e = []) {
67406
- this.version = "8.5.1", this.plugins = this.normalize(e);
67406
+ this.version = "8.5.3", this.plugins = this.normalize(e);
67407
67407
  }
67408
67408
  normalize(e) {
67409
67409
  let t = [];
@@ -1,5 +1,7 @@
1
1
  import { AdItem, ChunkItem, FeedItems, GridFeedMarketplaceItem, ResultType } from './GridFeed.types';
2
- export declare const splitIntoChunks: (items: ChunkItem[], ads?: AdItem[], chunkSize?: number) => ResultType;
2
+ export declare const splitIntoChunks: (items: ChunkItem[], // The main array of items (numbers or ads)
3
+ ads?: AdItem[], // The list of ads to be inserted into chunks
4
+ chunkSize?: number) => ResultType;
3
5
  export declare const formatCurrency: (cents: number | null) => string;
4
6
  export declare const getItems: (feeds: ChunkItem[], feedItems: FeedItems) => GridFeedMarketplaceItem[];
5
7
  export declare const getLang: <T>(lang: Record<string, T>, selectedLang?: string) => T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.1.0",
3
+ "version": "3.2.0-development.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",