@csstools/csstools-cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
# Changes to CSSTools CLI
|
|
2
2
|
|
|
3
|
-
### 1.
|
|
3
|
+
### 1.2.0 (February 16, 2022)
|
|
4
|
+
|
|
5
|
+
- Added `@csstools/color-function`.
|
|
6
|
+
- Added `@csstools/ic-unit`.
|
|
7
|
+
- Added `@csstools/oklab-function`.
|
|
8
|
+
- Fixing minor formatting.
|
|
9
|
+
- Added support for new options for:
|
|
10
|
+
- `postcss-double-position-gradients`
|
|
11
|
+
- `postcss-lab-function`
|
|
12
|
+
- Updated `postcss` to `8.4.6` (patch)
|
|
13
|
+
- Updated `css-blank-pseudo` to `3.0.3` (patch)
|
|
14
|
+
- Updated `css-has-pseudo` to `3.0.4` (patch)
|
|
15
|
+
- Updated `postcss-color-functional-notation` to `4.2.2` (patch)
|
|
16
|
+
- Updated `postcss-color-hex-alpha` to `8.0.3` (patch)
|
|
17
|
+
- Updated `postcss-dir-pseudo-class` to `6.0.4` (patch)
|
|
18
|
+
- Updated `postcss-double-position-gradients` to `3.1.0` (minor)
|
|
19
|
+
- Updated `postcss-env-function` to `4.0.5` (patch)
|
|
20
|
+
- Updated `postcss-focus-visible` to `6.0.4` (patch)
|
|
21
|
+
- Updated `postcss-focus-within` to `5.0.4` (patch)
|
|
22
|
+
- Updated `postcss-gap-properties` to `3.0.3` (patch)
|
|
23
|
+
- Updated `postcss-image-set-function` to `4.0.6` (patch)
|
|
24
|
+
- Updated `postcss-lab-function` to `4.1.1` (patch)
|
|
25
|
+
- Updated `postcss-logical` to `5.0.4` (patch)
|
|
26
|
+
- Updated `postcss-overflow-shorthand` to `3.0.3` (patch)
|
|
27
|
+
- Updated `postcss-place` to `7.0.4` (patch)
|
|
28
|
+
- Updated `postcss-preset-env` to `7.4.0` (minor)
|
|
29
|
+
- Updated `postcss-pseudo-class-any-link` to `7.1.1` (patch)
|
|
30
|
+
|
|
31
|
+
### 1.1.0 (January 31, 2022)
|
|
4
32
|
|
|
5
33
|
- Emit warnings from plugins
|
|
6
34
|
- Added `@csstools/postcss-font-format-keywords`
|
package/README.md
CHANGED
|
@@ -34,6 +34,7 @@ Available Plugins:
|
|
|
34
34
|
css-blank-pseudo
|
|
35
35
|
css-has-pseudo
|
|
36
36
|
css-prefers-color-scheme
|
|
37
|
+
postcss-color-function
|
|
37
38
|
postcss-color-functional-notation
|
|
38
39
|
postcss-color-hex-alpha
|
|
39
40
|
postcss-color-rebeccapurple
|
|
@@ -43,12 +44,17 @@ Available Plugins:
|
|
|
43
44
|
postcss-env-function
|
|
44
45
|
postcss-focus-visible
|
|
45
46
|
postcss-focus-within
|
|
47
|
+
postcss-font-format-keywords
|
|
46
48
|
postcss-gap-properties
|
|
49
|
+
postcss-hwb-function
|
|
50
|
+
postcss-ic-unit
|
|
47
51
|
postcss-image-set-function
|
|
48
|
-
postcss-lab-function
|
|
49
52
|
postcss-is-pseudo-class
|
|
53
|
+
postcss-lab-function
|
|
50
54
|
postcss-logical
|
|
51
55
|
postcss-nesting
|
|
56
|
+
postcss-normalize-display-values
|
|
57
|
+
postcss-oklab-function
|
|
52
58
|
postcss-overflow-shorthand
|
|
53
59
|
postcss-place
|
|
54
60
|
postcss-pseudo-class-any-link
|
|
@@ -186,7 +192,6 @@ Output :
|
|
|
186
192
|
resize: vertical;
|
|
187
193
|
transition: color 200ms;
|
|
188
194
|
}
|
|
189
|
-
|
|
190
195
|
```
|
|
191
196
|
|
|
192
197
|
|
package/dist/cli.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
"use strict";var e=require("css-blank-pseudo"),t=require("tty"),s=require("path"),r=require("url"),n=require("fs"),o=require("css-has-pseudo"),i=require("css-prefers-color-scheme"),a=require("postcss-color-functional-notation"),l=require("postcss-color-hex-alpha"),u=require("postcss-color-rebeccapurple"),c=require("postcss-custom-properties"),p=require("postcss-dir-pseudo-class"),h=require("postcss-double-position-gradients"),f=require("postcss-env-function"),d=require("postcss-focus-visible"),m=require("postcss-focus-within"),g=require("@csstools/postcss-font-format-keywords"),w=require("postcss-gap-properties"),y=require("@csstools/postcss-hwb-function"),v=require("postcss-image-set-function"),b=require("@csstools/postcss-is-pseudo-class"),S=require("postcss-lab-function"),C=require("postcss-logical"),x=require("postcss-nesting"),O=require("@csstools/postcss-normalize-display-values"),_=require("postcss-overflow-shorthand"),k=require("postcss-place"),A=require("autoprefixer"),P=require("cssdb"),M=require("postcss-attribute-case-insensitive"),E=require("postcss-custom-media"),L=require("postcss-custom-selectors"),R=require("postcss-font-variant"),$=require("postcss-initial"),j=require("postcss-media-minmax"),I=require("postcss-page-break"),N=require("postcss-pseudo-class-any-link"),F=require("postcss-replace-overflow-wrap"),B=require("postcss-selector-not"),U=require("postcss-value-parser"),D=require("browserslist");function T(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var q,G=T(e),z=T(t),W=T(s),V=T(r),J=T(n),Y=T(o),H=T(i),Q=T(a),K=T(l),Z=T(u),X=T(c),ee=T(p),te=T(h),se=T(f),re=T(d),ne=T(m),oe=T(g),ie=T(w),ae=T(y),le=T(v),ue=T(b),ce=T(S),pe=T(C),he=T(x),fe=T(O),de=T(_),me=T(k),ge=T(A),we=T(P),ye=T(M),ve=T(E),be=T(L),Se=T(R),Ce=T($),xe=T(j),Oe=T(I),_e=T(N),ke=T(F),Ae=T(B),Pe=T(U),Me=T(D);!function(e){e.InvalidArguments="INVALID_ARGUMENTS"}(q||(q={}));var Ee={exports:{}};let Le=z.default,Re=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||"win32"===process.platform||Le.isatty(1)&&"dumb"!==process.env.TERM||"CI"in process.env),$e=(e,t,s=e)=>r=>{let n=""+r,o=n.indexOf(t,e.length);return~o?e+je(n,t,s,o)+t:e+n+t},je=(e,t,s,r)=>{let n=e.substring(0,r)+s,o=e.substring(r+t.length),i=o.indexOf(t);return~i?n+je(o,t,s,i):n+o},Ie=(e=Re)=>({isColorSupported:e,reset:e?e=>`[0m${e}[0m`:String,bold:e?$e("[1m","[22m","[22m[1m"):String,dim:e?$e("[2m","[22m","[22m[2m"):String,italic:e?$e("[3m","[23m"):String,underline:e?$e("[4m","[24m"):String,inverse:e?$e("[7m","[27m"):String,hidden:e?$e("[8m","[28m"):String,strikethrough:e?$e("[9m","[29m"):String,black:e?$e("[30m","[39m"):String,red:e?$e("[31m","[39m"):String,green:e?$e("[32m","[39m"):String,yellow:e?$e("[33m","[39m"):String,blue:e?$e("[34m","[39m"):String,magenta:e?$e("[35m","[39m"):String,cyan:e?$e("[36m","[39m"):String,white:e?$e("[37m","[39m"):String,gray:e?$e("[90m","[39m"):String,bgBlack:e?$e("[40m","[49m"):String,bgRed:e?$e("[41m","[49m"):String,bgGreen:e?$e("[42m","[49m"):String,bgYellow:e?$e("[43m","[49m"):String,bgBlue:e?$e("[44m","[49m"):String,bgMagenta:e?$e("[45m","[49m"):String,bgCyan:e?$e("[46m","[49m"):String,bgWhite:e?$e("[47m","[49m"):String});Ee.exports=Ie(),Ee.exports.createColors=Ie;const Ne="'".charCodeAt(0),Fe='"'.charCodeAt(0),Be="\\".charCodeAt(0),Ue="/".charCodeAt(0),De="\n".charCodeAt(0),Te=" ".charCodeAt(0),qe="\f".charCodeAt(0),Ge="\t".charCodeAt(0),ze="\r".charCodeAt(0),We="[".charCodeAt(0),Ve="]".charCodeAt(0),Je="(".charCodeAt(0),Ye=")".charCodeAt(0),He="{".charCodeAt(0),Qe="}".charCodeAt(0),Ke=";".charCodeAt(0),Ze="*".charCodeAt(0),Xe=":".charCodeAt(0),et="@".charCodeAt(0),tt=/[\t\n\f\r "#'()/;[\\\]{}]/g,st=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rt=/.[\n"'(/\\]/,nt=/[\da-f]/i;var ot=function(e,t={}){let s,r,n,o,i,a,l,u,c,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,m=0,g=[],w=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){w.push(e)},nextToken:function(e){if(w.length)return w.pop();if(m>=d)return;let t=!!e&&e.ignoreUnclosed;switch(s=h.charCodeAt(m),s){case De:case Te:case Ge:case ze:case qe:r=m;do{r+=1,s=h.charCodeAt(r)}while(s===Te||s===De||s===Ge||s===ze||s===qe);p=["space",h.slice(m,r)],m=r-1;break;case We:case Ve:case He:case Qe:case Xe:case Ke:case Ye:{let e=String.fromCharCode(s);p=[e,e,m];break}case Je:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(m+1),"url"===u&&c!==Ne&&c!==Fe&&c!==Te&&c!==De&&c!==Ge&&c!==qe&&c!==ze){r=m;do{if(a=!1,r=h.indexOf(")",r+1),-1===r){if(f||t){r=m;break}y("bracket")}for(l=r;h.charCodeAt(l-1)===Be;)l-=1,a=!a}while(a);p=["brackets",h.slice(m,r+1),m,r],m=r}else r=h.indexOf(")",m+1),o=h.slice(m,r+1),-1===r||rt.test(o)?p=["(","(",m]:(p=["brackets",o,m,r],m=r);break;case Ne:case Fe:n=s===Ne?"'":'"',r=m;do{if(a=!1,r=h.indexOf(n,r+1),-1===r){if(f||t){r=m+1;break}y("string")}for(l=r;h.charCodeAt(l-1)===Be;)l-=1,a=!a}while(a);p=["string",h.slice(m,r+1),m,r],m=r;break;case et:tt.lastIndex=m+1,tt.test(h),r=0===tt.lastIndex?h.length-1:tt.lastIndex-2,p=["at-word",h.slice(m,r+1),m,r],m=r;break;case Be:for(r=m,i=!0;h.charCodeAt(r+1)===Be;)r+=1,i=!i;if(s=h.charCodeAt(r+1),i&&s!==Ue&&s!==Te&&s!==De&&s!==Ge&&s!==ze&&s!==qe&&(r+=1,nt.test(h.charAt(r)))){for(;nt.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Te&&(r+=1)}p=["word",h.slice(m,r+1),m,r],m=r;break;default:s===Ue&&h.charCodeAt(m+1)===Ze?(r=h.indexOf("*/",m+2)+1,0===r&&(f||t?r=h.length:y("comment")),p=["comment",h.slice(m,r+1),m,r],m=r):(st.lastIndex=m+1,st.test(h),r=0===st.lastIndex?h.length-1:st.lastIndex-2,p=["word",h.slice(m,r+1),m,r],g.push(p),m=r)}return m++,p},endOfFile:function(){return 0===w.length&&m>=d},position:function(){return m}}};let it,at=Ee.exports,lt=ot;const ut={brackets:at.cyan,"at-word":at.cyan,comment:at.gray,string:at.green,class:at.yellow,hash:at.magenta,call:at.cyan,"(":at.cyan,")":at.cyan,"{":at.yellow,"}":at.yellow,"[":at.yellow,"]":at.yellow,":":at.yellow,";":at.yellow};function ct([e,t],s){if("word"===e){if("."===t[0])return"class";if("#"===t[0])return"hash"}if(!s.endOfFile()){let e=s.nextToken();if(s.back(e),"brackets"===e[0]||"("===e[0])return"call"}return e}function pt(e){let t=lt(new it(e),{ignoreErrors:!0}),s="";for(;!t.endOfFile();){let e=t.nextToken(),r=ut[ct(e,t)];s+=r?e[1].split(/\r?\n/).map((e=>r(e))).join("\n"):e[1]}return s}pt.registerInput=function(e){it=e};var ht=pt;let ft=Ee.exports,dt=ht;class mt extends Error{constructor(e,t,s,r,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),r&&(this.source=r),o&&(this.plugin=o),void 0!==t&&void 0!==s&&("number"==typeof t?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,mt)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=ft.isColorSupported),dt&&e&&(t=dt(t));let s,r,n=t.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),a=String(i).length;if(e){let{bold:e,red:t,gray:n}=ft.createColors(!0);s=s=>e(t(s)),r=e=>n(e)}else s=r=e=>e;return n.slice(o,i).map(((e,t)=>{let n=o+1+t,i=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let t=r(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+r(i)+e+"\n "+t+s("^")}return" "+r(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}var gt=mt;mt.default=mt;var wt={};wt.isClean=Symbol("isClean"),wt.my=Symbol("my");const yt={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class vt{constructor(e){this.builder=e}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)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),r=e.prop+s+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let s="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?s+=e.raws.afterName:r&&(s+=" "),e.nodes)this.block(e,s+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(s+r+n,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let s=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==r||s)}}block(e,t){let s,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}raw(e,t,s){let r;if(s||(s=t),t&&(r=e.raws[t],void 0!==r))return r;let n=e.parent;if("before"===s){if(!n||"root"===n.type&&n.first===e)return"";if(n&&"document"===n.type)return""}if(!n)return yt[s];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[s])return o.rawCache[s];if("before"===s||"after"===s)return this.beforeAfter(e,s);{let n="raw"+((i=s)[0].toUpperCase()+i.slice(1));this[n]?r=this[n](o,e):o.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var i;return void 0===r&&(r=yt[s]),o.rawCache[s]=r,r}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==s.raws.before){let e=s.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let s;return e.walkComments((e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls((e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeRule(e){let t;return e.walk((s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&void 0!==s.raws.before)return t=s.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let s;s="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&"root"!==r.type;)n+=1,r=r.parent;if(s.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)s+=t}return s}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}}var bt=vt;vt.default=vt;let St=bt;function Ct(e,t){new St(t).stringify(e)}var xt=Ct;Ct.default=Ct;let{isClean:Ot,my:_t}=wt,kt=gt,At=bt,Pt=xt;function Mt(e,t){let s=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let n=e[r],o=typeof n;"parent"===r&&"object"===o?t&&(s[r]=t):"source"===r?s[r]=n:Array.isArray(n)?s[r]=n.map((e=>Mt(e,s))):("object"===o&&null!==n&&(n=Mt(n)),s[r]=n)}return s}class Et{constructor(e={}){this.raws={},this[Ot]=!1,this[_t]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let s of e[t])"function"==typeof s.clone?this.append(s.clone()):this.append(s)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:s,end:r}=this.rangeBy(t);return this.source.input.error(e,{line:s.line,column:s.column},{line:r.line,column:r.column},t)}return new kt(e)}warn(e,t,s){let r={node:this};for(let e in s)r[e]=s[e];return e.warn(t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Pt){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=Mt(this);for(let s in e)t[s]=e[s];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new At).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let s={},r=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))s[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)s[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=n,t.set(r.input,n),n++),s[e]={inputId:o,start:r.start,end:r.end}}else s[e]=r}return r&&(s.inputs=[...t.keys()].map((e=>e.toJSON()))),s}positionInside(e){let t=this.toString(),s=this.source.start.column,r=this.source.start.line;for(let n=0;n<e;n++)"\n"===t[n]?(s=1,r+=1):s+=1;return{line:r,column:s}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let s=this.toString().indexOf(e.word);-1!==s&&(t=this.positionInside(s))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},s=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r),s=this.positionInside(r+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?s={line:e.end.line,column:e.end.column}:e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={line:t.line,column:t.column+1}),{start:t,end:s}}getProxyProcessor(){return{set:(e,t,s)=>(e[t]===s||(e[t]=s,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}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}markDirty(){if(this[Ot]){this[Ot]=!1;let e=this;for(;e=e.parent;)e[Ot]=!1}}get proxyOf(){return this}}var Lt=Et;Et.default=Et;let Rt=Lt;class $t extends Rt{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var jt=$t;$t.default=$t;var It={},Nt={},Ft={},Bt={},Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Bt.encode=function(e){if(0<=e&&e<Ut.length)return Ut[e];throw new TypeError("Must be between 0 and 63: "+e)},Bt.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Dt=Bt;Ft.encode=function(e){var t,s="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),s+=Dt.encode(t)}while(r>0);return s},Ft.decode=function(e,t,s){var r,n,o,i,a=e.length,l=0,u=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(n=Dt.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&n),l+=(n&=31)<<u,u+=5}while(r);s.value=(i=(o=l)>>1,1==(1&o)?-i:i),s.rest=t};var Tt={};!function(e){e.getArg=function(e,t,s){if(t in e)return e[t];if(3===arguments.length)return s;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,s=/^data:.+\,.+$/;function r(e){var s=e.match(t);return s?{scheme:s[1],auth:s[2],host:s[3],port:s[4],path:s[5]}:null}function n(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=r,e.urlGenerate=n;var o=function(e){var t=[];return function(s){for(var r=0;r<t.length;r++)if(t[r].input===s){var n=t[0];return t[0]=t[r],t[r]=n,t[0].result}var o=e(s);return t.unshift({input:s,result:o}),t.length>32&&t.pop(),o}}((function(t){var s=t,o=r(t);if(o){if(!o.path)return t;s=o.path}for(var i=e.isAbsolute(s),a=[],l=0,u=0;;){if(l=u,-1===(u=s.indexOf("/",l))){a.push(s.slice(l));break}for(a.push(s.slice(l,u));u<s.length&&"/"===s[u];)u++}var c,p=0;for(u=a.length-1;u>=0;u--)"."===(c=a[u])?a.splice(u,1):".."===c?p++:p>0&&(""===c?(a.splice(u+1,p),p=0):(a.splice(u,2),p--));return""===(s=a.join("/"))&&(s=i?"/":"."),o?(o.path=s,n(o)):s}));function i(e,t){""===e&&(e="."),""===t&&(t=".");var i=r(t),a=r(e);if(a&&(e=a.path||"/"),i&&!i.scheme)return a&&(i.scheme=a.scheme),n(i);if(i||t.match(s))return t;if(a&&!a.host&&!a.path)return a.host=t,n(a);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,n(a)):l}e.normalize=o,e.join=i,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var s=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++s}return Array(s+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var s=t-10;s>=0;s--)if(36!==e.charCodeAt(s))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=a?l:function(e){return u(e)?"$"+e:e},e.fromSetString=a?l:function(e){return u(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,s){var r=c(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||s||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:c(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,s){var r;return 0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||s||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:c(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,s){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||s||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,s){var r=e.generatedColumn-t.generatedColumn;return 0!==r||s||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var s=e.generatedLine-t.generatedLine;return 0!==s||0!==(s=e.generatedColumn-t.generatedColumn)||0!==(s=c(e.source,t.source))||0!==(s=e.originalLine-t.originalLine)||0!==(s=e.originalColumn-t.originalColumn)?s:c(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,s){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),s){var a=r(s);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var l=a.path.lastIndexOf("/");l>=0&&(a.path=a.path.substring(0,l+1))}t=i(n(a),t)}return o(t)}}(Tt);var qt={},Gt=Tt,zt=Object.prototype.hasOwnProperty,Wt="undefined"!=typeof Map;function Vt(){this._array=[],this._set=Wt?new Map:Object.create(null)}Vt.fromArray=function(e,t){for(var s=new Vt,r=0,n=e.length;r<n;r++)s.add(e[r],t);return s},Vt.prototype.size=function(){return Wt?this._set.size:Object.getOwnPropertyNames(this._set).length},Vt.prototype.add=function(e,t){var s=Wt?e:Gt.toSetString(e),r=Wt?this.has(e):zt.call(this._set,s),n=this._array.length;r&&!t||this._array.push(e),r||(Wt?this._set.set(e,n):this._set[s]=n)},Vt.prototype.has=function(e){if(Wt)return this._set.has(e);var t=Gt.toSetString(e);return zt.call(this._set,t)},Vt.prototype.indexOf=function(e){if(Wt){var t=this._set.get(e);if(t>=0)return t}else{var s=Gt.toSetString(e);if(zt.call(this._set,s))return this._set[s]}throw new Error('"'+e+'" is not in the set.')},Vt.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Vt.prototype.toArray=function(){return this._array.slice()},qt.ArraySet=Vt;var Jt={},Yt=Tt;function Ht(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ht.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Ht.prototype.add=function(e){var t,s,r,n,o,i;t=this._last,s=e,r=t.generatedLine,n=s.generatedLine,o=t.generatedColumn,i=s.generatedColumn,n>r||n==r&&i>=o||Yt.compareByGeneratedPositionsInflated(t,s)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Ht.prototype.toArray=function(){return this._sorted||(this._array.sort(Yt.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Jt.MappingList=Ht;var Qt=Ft,Kt=Tt,Zt=qt.ArraySet,Xt=Jt.MappingList;function es(e){e||(e={}),this._file=Kt.getArg(e,"file",null),this._sourceRoot=Kt.getArg(e,"sourceRoot",null),this._skipValidation=Kt.getArg(e,"skipValidation",!1),this._sources=new Zt,this._names=new Zt,this._mappings=new Xt,this._sourcesContents=null}es.prototype._version=3,es.fromSourceMap=function(e){var t=e.sourceRoot,s=new es({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=Kt.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),s.addMapping(r)})),e.sources.forEach((function(r){var n=r;null!==t&&(n=Kt.relative(t,r)),s._sources.has(n)||s._sources.add(n);var o=e.sourceContentFor(r);null!=o&&s.setSourceContent(r,o)})),s},es.prototype.addMapping=function(e){var t=Kt.getArg(e,"generated"),s=Kt.getArg(e,"original",null),r=Kt.getArg(e,"source",null),n=Kt.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,s,r,n),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=s&&s.line,originalColumn:null!=s&&s.column,source:r,name:n})},es.prototype.setSourceContent=function(e,t){var s=e;null!=this._sourceRoot&&(s=Kt.relative(this._sourceRoot,s)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Kt.toSetString(s)]=t):this._sourcesContents&&(delete this._sourcesContents[Kt.toSetString(s)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},es.prototype.applySourceMap=function(e,t,s){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var n=this._sourceRoot;null!=n&&(r=Kt.relative(n,r));var o=new Zt,i=new Zt;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=s&&(t.source=Kt.join(s,t.source)),null!=n&&(t.source=Kt.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||o.has(l)||o.add(l);var u=t.name;null==u||i.has(u)||i.add(u)}),this),this._sources=o,this._names=i,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=s&&(t=Kt.join(s,t)),null!=n&&(t=Kt.relative(n,t)),this.setSourceContent(t,r))}),this)},es.prototype._validateMapping=function(e,t,s,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||s||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&s))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:s,original:t,name:r}))},es.prototype._serializeMappings=function(){for(var e,t,s,r,n=0,o=1,i=0,a=0,l=0,u=0,c="",p=this._mappings.toArray(),h=0,f=p.length;h<f;h++){if(e="",(t=p[h]).generatedLine!==o)for(n=0;t.generatedLine!==o;)e+=";",o++;else if(h>0){if(!Kt.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=Qt.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=Qt.encode(r-u),u=r,e+=Qt.encode(t.originalLine-1-a),a=t.originalLine-1,e+=Qt.encode(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(s=this._names.indexOf(t.name),e+=Qt.encode(s-l),l=s)),c+=e}return c},es.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=Kt.relative(t,e));var s=Kt.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null}),this)},es.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},es.prototype.toString=function(){return JSON.stringify(this.toJSON())},Nt.SourceMapGenerator=es;var ts={},ss={};!function(e){function t(s,r,n,o,i,a){var l=Math.floor((r-s)/2)+s,u=i(n,o[l],!0);return 0===u?l:u>0?r-l>1?t(l,r,n,o,i,a):a==e.LEAST_UPPER_BOUND?r<o.length?r:-1:l:l-s>1?t(s,l,n,o,i,a):a==e.LEAST_UPPER_BOUND?l:s<0?-1:s}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(s,r,n,o){if(0===r.length)return-1;var i=t(-1,r.length,s,r,n,o||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===n(r[i],r[i-1],!0);)--i;return i}}(ss);var rs={};function ns(e){function t(e,t,s){var r=e[t];e[t]=e[s],e[s]=r}return function e(s,r,n,o){if(n<o){var i=n-1;t(s,(c=n,p=o,Math.round(c+Math.random()*(p-c))),o);for(var a=s[o],l=n;l<o;l++)r(s[l],a,!1)<=0&&t(s,i+=1,l);t(s,i+1,l);var u=i+1;e(s,r,n,u-1),e(s,r,u+1,o)}var c,p}}let os=new WeakMap;rs.quickSort=function(e,t,s=0){let r=os.get(t);void 0===r&&(r=function(e){let t=ns.toString();return new Function(`return ${t}`)()(e)}(t),os.set(t,r)),r(e,t,s,e.length-1)};var is=Tt,as=ss,ls=qt.ArraySet,us=Ft,cs=rs.quickSort;function ps(e,t){var s=e;return"string"==typeof e&&(s=is.parseSourceMapInput(e)),null!=s.sections?new gs(s,t):new hs(s,t)}function hs(e,t){var s=e;"string"==typeof e&&(s=is.parseSourceMapInput(e));var r=is.getArg(s,"version"),n=is.getArg(s,"sources"),o=is.getArg(s,"names",[]),i=is.getArg(s,"sourceRoot",null),a=is.getArg(s,"sourcesContent",null),l=is.getArg(s,"mappings"),u=is.getArg(s,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);i&&(i=is.normalize(i)),n=n.map(String).map(is.normalize).map((function(e){return i&&is.isAbsolute(i)&&is.isAbsolute(e)?is.relative(i,e):e})),this._names=ls.fromArray(o.map(String),!0),this._sources=ls.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map((function(e){return is.computeSourceURL(i,e,t)})),this.sourceRoot=i,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=t,this.file=u}function fs(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}ps.fromSourceMap=function(e,t){return hs.fromSourceMap(e,t)},ps.prototype._version=3,ps.prototype.__generatedMappings=null,Object.defineProperty(ps.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),ps.prototype.__originalMappings=null,Object.defineProperty(ps.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),ps.prototype._charIsMappingSeparator=function(e,t){var s=e.charAt(t);return";"===s||","===s},ps.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},ps.GENERATED_ORDER=1,ps.ORIGINAL_ORDER=2,ps.GREATEST_LOWER_BOUND=1,ps.LEAST_UPPER_BOUND=2,ps.prototype.eachMapping=function(e,t,s){var r,n=t||null;switch(s||ps.GENERATED_ORDER){case ps.GENERATED_ORDER:r=this._generatedMappings;break;case ps.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,i=e.bind(n),a=this._names,l=this._sources,u=this._sourceMapURL,c=0,p=r.length;c<p;c++){var h=r[c],f=null===h.source?null:l.at(h.source);i({source:f=is.computeSourceURL(o,f,u),generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:null===h.name?null:a.at(h.name)})}},ps.prototype.allGeneratedPositionsFor=function(e){var t=is.getArg(e,"line"),s={source:is.getArg(e,"source"),originalLine:t,originalColumn:is.getArg(e,"column",0)};if(s.source=this._findSourceIndex(s.source),s.source<0)return[];var r=[],n=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",is.compareByOriginalPositions,as.LEAST_UPPER_BOUND);if(n>=0){var o=this._originalMappings[n];if(void 0===e.column)for(var i=o.originalLine;o&&o.originalLine===i;)r.push({line:is.getArg(o,"generatedLine",null),column:is.getArg(o,"generatedColumn",null),lastColumn:is.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++n];else for(var a=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==a;)r.push({line:is.getArg(o,"generatedLine",null),column:is.getArg(o,"generatedColumn",null),lastColumn:is.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++n]}return r},ts.SourceMapConsumer=ps,hs.prototype=Object.create(ps.prototype),hs.prototype.consumer=ps,hs.prototype._findSourceIndex=function(e){var t,s=e;if(null!=this.sourceRoot&&(s=is.relative(this.sourceRoot,s)),this._sources.has(s))return this._sources.indexOf(s);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},hs.fromSourceMap=function(e,t){var s=Object.create(hs.prototype),r=s._names=ls.fromArray(e._names.toArray(),!0),n=s._sources=ls.fromArray(e._sources.toArray(),!0);s.sourceRoot=e._sourceRoot,s.sourcesContent=e._generateSourcesContent(s._sources.toArray(),s.sourceRoot),s.file=e._file,s._sourceMapURL=t,s._absoluteSources=s._sources.toArray().map((function(e){return is.computeSourceURL(s.sourceRoot,e,t)}));for(var o=e._mappings.toArray().slice(),i=s.__generatedMappings=[],a=s.__originalMappings=[],l=0,u=o.length;l<u;l++){var c=o[l],p=new fs;p.generatedLine=c.generatedLine,p.generatedColumn=c.generatedColumn,c.source&&(p.source=n.indexOf(c.source),p.originalLine=c.originalLine,p.originalColumn=c.originalColumn,c.name&&(p.name=r.indexOf(c.name)),a.push(p)),i.push(p)}return cs(s.__originalMappings,is.compareByOriginalPositions),s},hs.prototype._version=3,Object.defineProperty(hs.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const ds=is.compareByGeneratedPositionsDeflatedNoLine;function ms(e,t){let s=e.length,r=e.length-t;if(!(r<=1))if(2==r){let s=e[t],r=e[t+1];ds(s,r)>0&&(e[t]=r,e[t+1]=s)}else if(r<20)for(let r=t;r<s;r++)for(let s=r;s>t;s--){let t=e[s-1],r=e[s];if(ds(t,r)<=0)break;e[s-1]=r,e[s]=t}else cs(e,ds,t)}function gs(e,t){var s=e;"string"==typeof e&&(s=is.parseSourceMapInput(e));var r=is.getArg(s,"version"),n=is.getArg(s,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new ls,this._names=new ls;var o={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var s=is.getArg(e,"offset"),r=is.getArg(s,"line"),n=is.getArg(s,"column");if(r<o.line||r===o.line&&n<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=s,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new ps(is.getArg(e,"map"),t)}}))}hs.prototype._parseMappings=function(e,t){var s,r,n,o,i=1,a=0,l=0,u=0,c=0,p=0,h=e.length,f=0,d={},m=[],g=[];let w=0;for(;f<h;)if(";"===e.charAt(f))i++,f++,a=0,ms(g,w),w=g.length;else if(","===e.charAt(f))f++;else{for((s=new fs).generatedLine=i,n=f;n<h&&!this._charIsMappingSeparator(e,n);n++);for(e.slice(f,n),r=[];f<n;)us.decode(e,f,d),o=d.value,f=d.rest,r.push(o);if(2===r.length)throw new Error("Found a source, but no line and column");if(3===r.length)throw new Error("Found a source and line, but no column");if(s.generatedColumn=a+r[0],a=s.generatedColumn,r.length>1&&(s.source=c+r[1],c+=r[1],s.originalLine=l+r[2],l=s.originalLine,s.originalLine+=1,s.originalColumn=u+r[3],u=s.originalColumn,r.length>4&&(s.name=p+r[4],p+=r[4])),g.push(s),"number"==typeof s.originalLine){let e=s.source;for(;m.length<=e;)m.push(null);null===m[e]&&(m[e]=[]),m[e].push(s)}}ms(g,w),this.__generatedMappings=g;for(var y=0;y<m.length;y++)null!=m[y]&&cs(m[y],is.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...m)},hs.prototype._findMapping=function(e,t,s,r,n,o){if(e[s]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[s]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return as.search(e,t,n,o)},hs.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var s=this._generatedMappings[e+1];if(t.generatedLine===s.generatedLine){t.lastGeneratedColumn=s.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},hs.prototype.originalPositionFor=function(e){var t={generatedLine:is.getArg(e,"line"),generatedColumn:is.getArg(e,"column")},s=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",is.compareByGeneratedPositionsDeflated,is.getArg(e,"bias",ps.GREATEST_LOWER_BOUND));if(s>=0){var r=this._generatedMappings[s];if(r.generatedLine===t.generatedLine){var n=is.getArg(r,"source",null);null!==n&&(n=this._sources.at(n),n=is.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var o=is.getArg(r,"name",null);return null!==o&&(o=this._names.at(o)),{source:n,line:is.getArg(r,"originalLine",null),column:is.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},hs.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},hs.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var s=this._findSourceIndex(e);if(s>=0)return this.sourcesContent[s];var r,n=e;if(null!=this.sourceRoot&&(n=is.relative(this.sourceRoot,n)),null!=this.sourceRoot&&(r=is.urlParse(this.sourceRoot))){var o=n.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!r.path||"/"==r.path)&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(t)return null;throw new Error('"'+n+'" is not in the SourceMap.')},hs.prototype.generatedPositionFor=function(e){var t=is.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var s={source:t,originalLine:is.getArg(e,"line"),originalColumn:is.getArg(e,"column")},r=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",is.compareByOriginalPositions,is.getArg(e,"bias",ps.GREATEST_LOWER_BOUND));if(r>=0){var n=this._originalMappings[r];if(n.source===s.source)return{line:is.getArg(n,"generatedLine",null),column:is.getArg(n,"generatedColumn",null),lastColumn:is.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ts.BasicSourceMapConsumer=hs,gs.prototype=Object.create(ps.prototype),gs.prototype.constructor=ps,gs.prototype._version=3,Object.defineProperty(gs.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var s=0;s<this._sections[t].consumer.sources.length;s++)e.push(this._sections[t].consumer.sources[s]);return e}}),gs.prototype.originalPositionFor=function(e){var t={generatedLine:is.getArg(e,"line"),generatedColumn:is.getArg(e,"column")},s=as.search(t,this._sections,(function(e,t){var s=e.generatedLine-t.generatedOffset.generatedLine;return s||e.generatedColumn-t.generatedOffset.generatedColumn})),r=this._sections[s];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},gs.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},gs.prototype.sourceContentFor=function(e,t){for(var s=0;s<this._sections.length;s++){var r=this._sections[s].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},gs.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var s=this._sections[t];if(-1!==s.consumer._findSourceIndex(is.getArg(e,"source"))){var r=s.consumer.generatedPositionFor(e);if(r)return{line:r.line+(s.generatedOffset.generatedLine-1),column:r.column+(s.generatedOffset.generatedLine===r.line?s.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},gs.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var s=0;s<this._sections.length;s++)for(var r=this._sections[s],n=r.consumer._generatedMappings,o=0;o<n.length;o++){var i=n[o],a=r.consumer._sources.at(i.source);a=is.computeSourceURL(r.consumer.sourceRoot,a,this._sourceMapURL),this._sources.add(a),a=this._sources.indexOf(a);var l=null;i.name&&(l=r.consumer._names.at(i.name),this._names.add(l),l=this._names.indexOf(l));var u={source:a,generatedLine:i.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:i.generatedColumn+(r.generatedOffset.generatedLine===i.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:i.originalLine,originalColumn:i.originalColumn,name:l};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}cs(this.__generatedMappings,is.compareByGeneratedPositionsDeflated),cs(this.__originalMappings,is.compareByOriginalPositions)},ts.IndexedSourceMapConsumer=gs;var ws={},ys=Nt.SourceMapGenerator,vs=Tt,bs=/(\r?\n)/,Ss="$$$isSourceNode$$$";function Cs(e,t,s,r,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==s?null:s,this.name=null==n?null:n,this[Ss]=!0,null!=r&&this.add(r)}Cs.fromStringWithSourceMap=function(e,t,s){var r=new Cs,n=e.split(bs),o=0,i=function(){return e()+(e()||"");function e(){return o<n.length?n[o++]:void 0}},a=1,l=0,u=null;return t.eachMapping((function(e){if(null!==u){if(!(a<e.generatedLine)){var t=(s=n[o]||"").substr(0,e.generatedColumn-l);return n[o]=s.substr(e.generatedColumn-l),l=e.generatedColumn,c(u,t),void(u=e)}c(u,i()),a++,l=0}for(;a<e.generatedLine;)r.add(i()),a++;if(l<e.generatedColumn){var s=n[o]||"";r.add(s.substr(0,e.generatedColumn)),n[o]=s.substr(e.generatedColumn),l=e.generatedColumn}u=e}),this),o<n.length&&(u&&c(u,i()),r.add(n.splice(o).join(""))),t.sources.forEach((function(e){var n=t.sourceContentFor(e);null!=n&&(null!=s&&(e=vs.join(s,e)),r.setSourceContent(e,n))})),r;function c(e,t){if(null===e||void 0===e.source)r.add(t);else{var n=s?vs.join(s,e.source):e.source;r.add(new Cs(e.originalLine,e.originalColumn,n,t,e.name))}}},Cs.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[Ss]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},Cs.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[Ss]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},Cs.prototype.walk=function(e){for(var t,s=0,r=this.children.length;s<r;s++)(t=this.children[s])[Ss]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},Cs.prototype.join=function(e){var t,s,r=this.children.length;if(r>0){for(t=[],s=0;s<r-1;s++)t.push(this.children[s]),t.push(e);t.push(this.children[s]),this.children=t}return this},Cs.prototype.replaceRight=function(e,t){var s=this.children[this.children.length-1];return s[Ss]?s.replaceRight(e,t):"string"==typeof s?this.children[this.children.length-1]=s.replace(e,t):this.children.push("".replace(e,t)),this},Cs.prototype.setSourceContent=function(e,t){this.sourceContents[vs.toSetString(e)]=t},Cs.prototype.walkSourceContents=function(e){for(var t=0,s=this.children.length;t<s;t++)this.children[t][Ss]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,s=r.length;t<s;t++)e(vs.fromSetString(r[t]),this.sourceContents[r[t]])},Cs.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},Cs.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},s=new ys(e),r=!1,n=null,o=null,i=null,a=null;return this.walk((function(e,l){t.code+=e,null!==l.source&&null!==l.line&&null!==l.column?(n===l.source&&o===l.line&&i===l.column&&a===l.name||s.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name}),n=l.source,o=l.line,i=l.column,a=l.name,r=!0):r&&(s.addMapping({generated:{line:t.line,column:t.column}}),n=null,r=!1);for(var u=0,c=e.length;u<c;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===c?(n=null,r=!1):r&&s.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name})):t.column++})),this.walkSourceContents((function(e,t){s.setSourceContent(e,t)})),{code:t.code,map:s}},ws.SourceNode=Cs,It.SourceMapGenerator=Nt.SourceMapGenerator,It.SourceMapConsumer=ts.SourceMapConsumer,It.SourceNode=ws.SourceNode;var xs={nanoid:(e=21)=>{let t="",s=e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t)=>()=>{let s="",r=t;for(;r--;)s+=e[Math.random()*e.length|0];return s}};let{SourceMapConsumer:Os,SourceMapGenerator:_s}=It,{existsSync:ks,readFileSync:As}=J.default,{dirname:Ps,join:Ms}=W.default;class Es{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ps(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Os(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}loadFile(e){if(this.root=Ps(e),ks(e))return this.mapFile=e,As(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Os)return _s.fromSourceMap(t).toString();if(t instanceof _s)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let s=t(e);if(s){let e=this.loadFile(s);if(!e)throw new Error("Unable to load previous source map: "+s.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=Ms(Ps(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}var Ls=Es;Es.default=Es;let{SourceMapConsumer:Rs,SourceMapGenerator:$s}=It,{fileURLToPath:js,pathToFileURL:Is}=V.default,{resolve:Ns,isAbsolute:Fs}=W.default,{nanoid:Bs}=xs,Us=ht,Ds=gt,Ts=Ls,qs=Symbol("fromOffsetCache"),Gs=Boolean(Rs&&$s),zs=Boolean(Ns&&Fs);class Ws{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!zs||/^\w+:\/\//.test(t.from)||Fs(t.from)?this.file=t.from:this.file=Ns(t.from)),zs&&Gs){let e=new Ts(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+Bs(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,s;if(this[qs])s=this[qs];else{let e=this.css.split("\n");s=new Array(e.length);let t=0;for(let r=0,n=e.length;r<n;r++)s[r]=t,t+=e[r].length+1;this[qs]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let t,n=s.length-2;for(;r<n;)if(t=r+(n-r>>1),e<s[t])n=t-1;else{if(!(e>=s[t+1])){r=t;break}r=t+1}}return{line:r+1,col:e-s[r]+1}}error(e,t,s,r={}){let n,o,i;if(t&&"object"==typeof t){let e=t,r=s;if("number"==typeof t.offset){let r=this.fromOffset(e.offset);t=r.line,s=r.col}else t=e.line,s=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,i=e.col}else o=r.line,i=r.column}else if(!s){let e=this.fromOffset(t);t=e.line,s=e.col}let a=this.origin(t,s,o,i);return n=a?new Ds(e,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,r.plugin):new Ds(e,void 0===o?t:{line:t,column:s},void 0===o?s:{line:o,column:i},this.css,this.file,r.plugin),n.input={line:t,column:s,endLine:o,endColumn:i,source:this.css},this.file&&(Is&&(n.input.url=Is(this.file).toString()),n.input.file=this.file),n}origin(e,t,s,r){if(!this.map)return!1;let n,o,i=this.map.consumer(),a=i.originalPositionFor({line:e,column:t});if(!a.source)return!1;"number"==typeof s&&(n=i.originalPositionFor({line:s,column:r})),o=Fs(a.source)?Is(a.source):new URL(a.source,this.map.consumer().sourceRoot||Is(this.map.mapFile));let l={url:o.toString(),line:a.line,column:a.column,endLine:n&&n.line,endColumn:n&&n.column};if("file:"===o.protocol){if(!js)throw new Error("file: protocol is not available in this PostCSS build");l.file=js(o)}let u=i.sourceContentFor(a.source);return u&&(l.source=u),l}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ns(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}var Vs=Ws;Ws.default=Ws,Us&&Us.registerInput&&Us.registerInput(Ws);let{SourceMapConsumer:Js,SourceMapGenerator:Ys}=It,{dirname:Hs,resolve:Qs,relative:Ks,sep:Zs}=W.default,{pathToFileURL:Xs}=V.default,er=Vs,tr=Boolean(Js&&Ys),sr=Boolean(Hs&&Qs&&Ks&&Zs);var rr=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}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 er(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let s=t.source.input.from;s&&!e[s]&&(e[s]=!0,this.map.setSourceContent(this.toUrl(this.path(s)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,s=this.toUrl(this.path(e.file)),r=e.root||Hs(e.file);!1===this.mapOpts.sourcesContent?(t=new Js(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,s,this.toUrl(this.path(r)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ys.fromSourceMap(e)}else this.map=new Ys({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});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]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?Hs(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=Hs(Qs(t,this.mapOpts.annotation))),e=Ks(t,e)}toUrl(e){return"\\"===Zs&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(Xs)return Xs(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new Ys({file:this.outputFile()});let e,t,s=1,r=1,n="<no source>",o={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(o.generated.line=s,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=i.match(/\n/g),e?(s+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=s,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=s,o.generated.column=r-1,this.map.addMapping(o)))}}))}generate(){if(this.clearAnnotation(),sr&&tr&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}};let nr=Lt;class or extends nr{constructor(e){super(e),this.type="comment"}}var ir=or;or.default=or;let ar,lr,ur,{isClean:cr,my:pr}=wt,hr=jt,fr=ir,dr=Lt;function mr(e){return e.map((e=>(e.nodes&&(e.nodes=mr(e.nodes)),delete e.source,e)))}function gr(e){if(e[cr]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)gr(t)}class wr extends dr{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,s,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],s=e(this.proxyOf.nodes[t],t),!1!==s);)this.indexes[r]+=1;return delete this.indexes[r],s}walk(e){return this.each(((t,s)=>{let r;try{r=e(t,s)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("decl"===s.type&&e.test(s.prop))return t(s,r)})):this.walk(((s,r)=>{if("decl"===s.type&&s.prop===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("decl"===e.type)return t(e,s)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("rule"===s.type&&e.test(s.selector))return t(s,r)})):this.walk(((s,r)=>{if("rule"===s.type&&s.selector===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("rule"===e.type)return t(e,s)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("atrule"===s.type&&e.test(s.name))return t(s,r)})):this.walk(((s,r)=>{if("atrule"===s.type&&s.name===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("atrule"===e.type)return t(e,s)})))}walkComments(e){return this.walk(((t,s)=>{if("comment"===t.type)return e(t,s)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let s,r=0===(e=this.index(e))&&"prepend",n=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of n)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)s=this.indexes[t],e<=s&&(this.indexes[t]=s+n.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let s,r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)s=this.indexes[t],e<s&&(this.indexes[t]=s+r.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,s){return s||(s=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,s))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}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]}normalize(e,t){if("string"==typeof e)e=mr(ar(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hr(e)]}else if(e.selector)e=[new lr(e)];else if(e.name)e=[new ur(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new fr(e)]}let s=e.map((e=>(e[pr]||wr.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[cr]&&gr(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e)));return s}getProxyProcessor(){return{set:(e,t,s)=>(e[t]===s||(e[t]=s,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...s)=>e[t](...s.map((e=>"function"==typeof e?(t,s)=>e(t.toProxy(),s):e))):"every"===t||"some"===t?s=>e[t](((e,...t)=>s(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}wr.registerParse=e=>{ar=e},wr.registerRule=e=>{lr=e},wr.registerAtRule=e=>{ur=e};var yr=wr;wr.default=wr,wr.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,ur.prototype):"rule"===e.type?Object.setPrototypeOf(e,lr.prototype):"decl"===e.type?Object.setPrototypeOf(e,hr.prototype):"comment"===e.type&&Object.setPrototypeOf(e,fr.prototype),e[pr]=!0,e.nodes&&e.nodes.forEach((e=>{wr.rebuild(e)}))};let vr,br,Sr=yr;class Cr extends Sr{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new vr(new br,this,e).stringify()}}Cr.registerLazyResult=e=>{vr=e},Cr.registerProcessor=e=>{br=e};var xr=Cr;Cr.default=Cr;let Or={};var _r=function(e){Or[e]||(Or[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};class kr{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Ar=kr;kr.default=kr;let Pr=Ar;class Mr{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,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 s=new Pr(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}var Er=Mr;Mr.default=Mr;let Lr=yr;class Rr extends Lr{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 $r=Rr;Rr.default=Rr,Lr.registerAtRule(Rr);let jr,Ir,Nr=yr;class Fr extends Nr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let s=this.index(e);return!t&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}normalize(e,t,s){let r=super.normalize(e);if(t)if("prepend"===s)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new jr(new Ir,this,e).stringify()}}Fr.registerLazyResult=e=>{jr=e},Fr.registerProcessor=e=>{Ir=e};var Br=Fr;Fr.default=Fr;let Ur={split(e,t,s){let r=[],n="",o=!1,i=0,a=!1,l=!1;for(let s of e)l?l=!1:"\\"===s?l=!0:a?s===a&&(a=!1):'"'===s||"'"===s?a=s:"("===s?i+=1:")"===s?i>0&&(i-=1):0===i&&t.includes(s)&&(o=!0),o?(""!==n&&r.push(n.trim()),n="",o=!1):n+=s;return(s||""!==n)&&r.push(n.trim()),r},space:e=>Ur.split(e,[" ","\n","\t"]),comma:e=>Ur.split(e,[","],!0)};var Dr=Ur;Ur.default=Ur;let Tr=yr,qr=Dr;class Gr extends Tr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return qr.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}var zr=Gr;Gr.default=Gr,Tr.registerRule(Gr);let Wr=jt,Vr=ot,Jr=ir,Yr=$r,Hr=Br,Qr=zr;var Kr=class{constructor(e){this.input=e,this.root=new Hr,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Vr(this.input)}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)}this.endFile()}comment(e){let t=new Jr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new Qr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,s=null,r=!1,n=null,o=[],i=e[1].startsWith("--"),a=[],l=e;for(;l;){if(s=l[0],a.push(l),"("===s||"["===s)n||(n=l),o.push("("===s?")":"]");else if(i&&r&&"{"===s)n||(n=l),o.push("}");else if(0===o.length){if(";"===s){if(r)return void this.decl(a,i);break}if("{"===s)return void this.rule(a);if("}"===s){this.tokenizer.back(a.pop()),t=!0;break}":"===s&&(r=!0)}else s===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}rule(e){e.pop();let t=new Qr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let s=new Wr;this.init(s,e[0][2]);let r,n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(n[3]||n[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;s.prop+=e.shift()[1]}for(s.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){s.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),s.raws.between+=r[1]}"_"!==s.prop[0]&&"*"!==s.prop[0]||(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let o=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){s.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(s.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),n="";for(let e=t;e>0;e--){let t=r[e][0];if(0===n.trim().indexOf("!")&&"space"!==t)break;n=r.pop()[1]+n}0===n.trim().indexOf("!")&&(s.important=!0,s.raws.important=n,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}let i=e.some((e=>"space"!==e[0]&&"comment"!==e[0]));this.raw(s,"value",e),i?s.raws.between+=o:s.value=o+s.value,s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,s,r,n=new Yr;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,i=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){i=!0;break}if("}"===t){if(a.length>0){for(r=a.length-1,s=a[r];s&&"space"===s[0];)s=a[--r];s&&(n.source.end=this.getPosition(s[3]||s[2]))}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),o&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),i&&(n.nodes=[],this.current=n)}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=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}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,s){let r,n,o,i,a=s.length,l="",u=!0,c=/^([#.|])?(\w)+/i;for(let t=0;t<a;t+=1)r=s[t],n=r[0],"comment"!==n||"rule"!==e.type?"comment"===n||"space"===n&&t===a-1?u=!1:l+=r[1]:(i=s[t-1],o=s[t+1],"space"!==i[0]&&"space"!==o[0]&&c.test(i[1])&&c.test(o[1])?l+=r[1]:u=!1);if(!u){let r=s.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:l,raw:r}}e[t]=l}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}colon(e){let t,s,r,n=0;for(let[o,i]of e.entries()){if(t=i,s=t[0],"("===s&&(n+=1),")"===s&&(n-=1),0===n&&":"===s){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{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})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let n=t-1;n>=0&&(s=e[n],"space"===s[0]||(r+=1,2!==r));n--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}};let Zr=yr,Xr=Kr,en=Vs;function tn(e,t){let s=new en(e,t),r=new Xr(s);try{r.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return r.root}var sn=tn;tn.default=tn,Zr.registerParse(tn);let{isClean:rn,my:nn}=wt,on=rr,an=xt,ln=yr,un=xr,cn=_r,pn=Er,hn=sn,fn=Br;const dn={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},mn={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},gn={postcssPlugin:!0,prepare:!0,Once:!0};function wn(e){return"object"==typeof e&&"function"==typeof e.then}function yn(e){let t=!1,s=dn[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[s,s+"-"+t,0,s+"Exit",s+"Exit-"+t]:t?[s,s+"-"+t,s+"Exit",s+"Exit-"+t]:e.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function vn(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:yn(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function bn(e){return e[rn]=!1,e.nodes&&e.nodes.forEach((e=>bn(e))),e}let Sn={};class Cn{constructor(e,t,s){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof Cn||t instanceof pn)r=bn(t.root),t.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let e=hn;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{r=e(t,s)}catch(e){this.processed=!0,this.error=e}r&&!r[nn]&&ln.rebuild(r)}else r=bn(t);this.result=new pn(e,r,s),this.helpers={...Sn,result:this.result,postcss:Sn},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||cn("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)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}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){if(wn(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[rn];)e[rn]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=an;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new on(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}walkSync(e){e[rn]=!0;let t=yn(e);for(let s of t)if(0===s)e.nodes&&e.each((e=>{e[rn]||this.walkSync(e)}));else{let t=this.listeners[s];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[s,r]of e){let e;this.result.lastPlugin=s;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(wn(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return wn(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(s.postcssVersion&&"production"!==process.env.NODE_ENV){let e=s.postcssPlugin,t=s.postcssVersion,r=this.result.processor.version,n=t.split("."),o=r.split(".");(n[0]!==o[0]||parseInt(n[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=s.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(wn(s))try{await s}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[rn];){e[rn]=!0;let t=[vn(e)];for(;t.length>0;){let e=this.visitTick(t);if(wn(e))try{await e}catch(e){let s=t[t.length-1].node;throw this.handleError(e,s)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>s(e,this.helpers)));await Promise.all(t)}else await s(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,s)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,s])};for(let t of this.plugins)if("object"==typeof t)for(let s in t){if(!mn[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!gn[s])if("object"==typeof t[s])for(let r in t[s])e(t,"*"===r?s:s+"-"+r.toLowerCase(),t[s][r]);else"function"==typeof t[s]&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,n]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(s.toProxy(),this.helpers)}catch(e){throw this.handleError(e,s)}}if(0!==t.iterator){let r,n=t.iterator;for(;r=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!r[rn])return r[rn]=!0,void e.push(vn(r));t.iterator=0,delete s.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e)return void(s.nodes&&s.nodes.length&&(s[rn]=!0,t.iterator=s.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}Cn.registerPostcss=e=>{Sn=e};var xn=Cn;Cn.default=Cn,fn.registerLazyResult(Cn),un.registerLazyResult(Cn);let On=rr,_n=xt,kn=_r,An=sn;const Pn=Er;class Mn{constructor(e,t,s){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let n=_n;this.result=new Pn(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let i=new On(n,r,this._opts,t);if(i.isMap()){let[e,t]=i.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=An;try{e=t(this._css,this._opts)}catch(e){this.error=e}return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||kn("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)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var En=Mn;Mn.default=Mn;let Ln=En,Rn=xn,$n=xr,jn=Br;class In{constructor(e=[]){this.version="8.4.5",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new Ln(this,e,t):new Rn(this,e,t)}normalize(e){let t=[];for(let s of e)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)t.push(s);else if("function"==typeof s)t.push(s);else{if("object"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)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.")}return t}}var Nn=In;In.default=In,jn.registerProcessor(In),$n.registerProcessor(In);let Fn=jt,Bn=Ls,Un=ir,Dn=$r,Tn=Vs,qn=Br,Gn=zr;function zn(e,t){if(Array.isArray(e))return e.map((e=>zn(e)));let{inputs:s,...r}=e;if(s){t=[];for(let e of s){let s={...e,__proto__:Tn.prototype};s.map&&(s.map={...s.map,__proto__:Bn.prototype}),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>zn(e,t)))),r.source){let{inputId:e,...s}=r.source;r.source=s,null!=e&&(r.source.input=t[e])}if("root"===r.type)return new qn(r);if("decl"===r.type)return new Fn(r);if("rule"===r.type)return new Gn(r);if("comment"===r.type)return new Un(r);if("atrule"===r.type)return new Dn(r);throw new Error("Unknown node type: "+e.type)}var Wn=zn;zn.default=zn;let Vn=gt,Jn=jt,Yn=xn,Hn=yr,Qn=Nn,Kn=xt,Zn=Wn,Xn=xr,eo=Ar,to=ir,so=$r,ro=Er,no=Vs,oo=sn,io=Dr,ao=zr,lo=Br,uo=Lt;function co(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Qn(e)}co.plugin=function(e,t){function s(...s){let r=t(...s);return r.postcssPlugin=e,r.postcssVersion=(new Qn).version,r}let r;return console&&console.warn&&(console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return co([s(r)]).process(e,t)},s},co.stringify=Kn,co.parse=oo,co.fromJSON=Zn,co.list=io,co.comment=e=>new to(e),co.atRule=e=>new so(e),co.decl=e=>new Jn(e),co.rule=e=>new ao(e),co.root=e=>new lo(e),co.document=e=>new Xn(e),co.CssSyntaxError=Vn,co.Declaration=Jn,co.Container=Hn,co.Processor=Qn,co.Document=Xn,co.Comment=to,co.Warning=eo,co.AtRule=so,co.Result=ro,co.Input=no,co.Rule=ao,co.Root=lo,co.Node=uo,Yn.registerPostcss(co);var po=co;async function ho(){return new Promise((e=>{let t="",s=!1;if(setTimeout((()=>{s=!0,e("")}),1e4),process.stdin.isTTY){if(s)return;e(t)}else process.stdin.setEncoding("utf8"),process.stdin.on("readable",(()=>{let e;for(;e=process.stdin.read();)t+=e})),process.stdin.on("end",(()=>{s||e(t)}))}))}function fo(e,t,s,r=null){let n=[];if(r){const e=Math.max(...Object.keys(r).map((e=>e.length))),t=new Array(e).fill(" ").join("");t.length&&(n=["\nPlugin Options:",...Object.keys(r).map((e=>` ${(e+t).slice(0,t.length)} ${typeof r[e]}`))],n.push(`\n ${JSON.stringify(r,null,2).split("\n").join("\n ")}`))}const o=[`${t}\n`,` ${s}\n`,"Usage:",` ${e} [input.css] [OPTIONS] [-o|--output output.css]`,` ${e} <input.css>... [OPTIONS] --dir <output-directory>`,` ${e} <input.css>... [OPTIONS] --replace`,"\nOptions:"," -o, --output Output file"," -d, --dir Output directory"," -r, --replace Replace (overwrite) the input file"," -m, --map Create an external sourcemap"," --no-map Disable the default inline sourcemaps"," -p, --plugin-options Stringified JSON object with plugin options"];return n.length>0&&o.push(...n),()=>{console.warn(o.join("\n"))}}async function mo(e,t,s,r=!0){const o=function(e,t,s){const r=e.map((e=>e.trim())).filter((e=>!!e)),n={stdin:!1,stdout:!1,output:null,outputDir:null,inputs:[],inlineMap:!0,externalMap:!1,replace:!1,pluginOptions:{},debug:!1};let o=null,i=!1;for(let e=0;e<r.length;e++){const t=r[e];switch(t){case"-o":case"--output":n.output=r[e+1],e++,i=!0;break;case"-m":case"--map":n.externalMap=!0,n.inlineMap=!1,i=!0;break;case"--no-map":n.externalMap=!1,n.inlineMap=!1,i=!0;break;case"-r":case"--replace":n.replace=!0,i=!0;break;case"--debug":n.debug=!0,i=!0;break;case"-d":case"--dir":n.outputDir=r[e+1],e++,i=!0;break;case"-p":case"--plugin-options":o=r[e+1],e++,i=!0;break;default:if(0===t.indexOf("-"))return console.warn(`[error] unknown argument : ${t}\n`),s(),q.InvalidArguments;if(!i){n.inputs.push(t);break}return s(),q.InvalidArguments}}if(n.replace&&(n.output=null,n.outputDir=null),n.outputDir&&(n.output=null),n.inputs.length>1&&n.output)return console.warn('[error] omit "--output" when processing multiple inputs\n'),s(),q.InvalidArguments;0===n.inputs.length&&(n.stdin=!0),n.output||n.outputDir||n.replace||(n.stdout=!0),n.stdout&&(n.externalMap=!1);let a={};if(o)try{a=JSON.parse(o)}catch(e){return console.warn("[error] plugin options must be valid JSON\n"),s(),q.InvalidArguments}for(const e in a){const r=a[e];if(!t.includes(e))return console.warn(`[error] unknown plugin option: ${e}\n`),s(),q.InvalidArguments;n.pluginOptions[e]=r}return n}(process.argv.slice(r?2:3),t,s);o===q.InvalidArguments&&process.exit(1);const i=e(o.pluginOptions);o.stdin&&o.stdout?await async function(e,t,s){let r="";try{const n=await ho();n||(s(),process.exit(1));const o=await po([e]).process(n,{from:"stdin",to:"stdout",map:!!t.inlineMap&&{inline:!0}});o.warnings().forEach((e=>{console.warn(e.toString())})),r=o.css}catch(e){console.error(t.debug?e:e.message),process.exit(1)}process.stdout.write(r+(t.inlineMap?"\n":"")),process.exit(0)}(i,o,s):o.stdin?await async function(e,t,s){let r=t.output;!r&&t.outputDir&&(r=W.default.join(t.outputDir,"output.css"));try{const o=await ho();o||(s(),process.exit(1));const i=await po([e]).process(o,{from:"stdin",to:r,map:!(!t.inlineMap&&!t.externalMap)&&{inline:t.inlineMap}});i.warnings().forEach((e=>{console.warn(e.toString())})),t.externalMap&&i.map?await Promise.all([await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":"")),await n.promises.writeFile(`${r}.map`,i.map.toString())]):await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":""))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}console.log(`CSS was written to "${W.default.normalize(r)}"`),process.exit(0)}(i,o,s):o.stdout?await async function(e,t){let s=[];try{s=await Promise.all(t.inputs.map((async t=>{const s=await n.promises.readFile(t),r=await po([e]).process(s,{from:t,to:"stdout",map:!1});return r.warnings().forEach((e=>{console.warn(e.toString())})),r.css})))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}for(const e of s)process.stdout.write(e);process.exit(0)}(i,o):await async function(e,t){try{await Promise.all(t.inputs.map((async s=>{let r=t.output;t.outputDir&&(r=W.default.join(t.outputDir,W.default.basename(s))),t.replace&&(r=s);const o=await n.promises.readFile(s),i=await po([e]).process(o,{from:s,to:r,map:!(!t.inlineMap&&!t.externalMap)&&{inline:t.inlineMap}});i.warnings().forEach((e=>{console.warn(e.toString())})),t.externalMap&&i.map?await Promise.all([await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":"")),await n.promises.writeFile(`${r}.map`,i.map.toString())]):await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":"")),console.log(`CSS was written to "${W.default.normalize(r)}"`)})))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}process.exit(0)}(i,o)}co.default=co;var go={exports:{}},wo={exports:{}};const yo=new Set(["inherit","initial","revert","unset"]);wo.exports=({preserve:e=!1}={})=>({postcssPlugin:"postcss-opacity-percentage",Declaration:{opacity:t=>{t.value&&!t.value.startsWith("var(")&&t.value.endsWith("%")&&!yo.has(t.value)&&(t.cloneBefore({value:String(Number.parseFloat(t.value)/100)}),e||t.remove())}}}),wo.exports.postcss=!0;var vo={exports:{}};let bo=Pe.default;function So(e){let t=e.match(/([\d.-]+)(.*)/);if(t&&t[1]&&t[2]&&!isNaN(t[1]))return[parseFloat(t[1]),t[2]]}function Co(e,t,s){return e&&t&&s?`max(${e}, min(${t}, ${s}))`:e&&t?`max(${e}, ${t})`:e}function xo(e,t,s){s?e.cloneBefore({value:t}):e.value=t}vo.exports=e=>{let t=!!(e=e||{}).precalculate&&Boolean(e.precalculate),s=!!e.preserve&&Boolean(e.preserve);return{postcssPlugin:"postcss-clamp",Declaration(e){e&&e.value.includes("clamp")&&bo(e.value).walk((r=>{let n=r.nodes;if("function"!==r.type||"clamp"!==r.value||5!==n.length)return;let o=n[0],i=n[2],a=n[4],l=Co(bo.stringify(o),bo.stringify(i),bo.stringify(a));if(!t||"word"!==i.type||"word"!==a.type)return void xo(e,l,s);let u=So(i.value),c=So(a.value);if(void 0===u||void 0===c)return void xo(e,l,s);let[p,h]=u,[f,d]=c;if(h!==d)return void xo(e,l,s);let m=So(o.value);if(void 0===m){let t=`${p+f}${h}`;return void xo(e,Co(bo.stringify(o),t),s)}let[g,w]=m;if(w===h)xo(e,Co(`${g+p+f}${h}`),s);else{let t=`${p+f}${h}`;xo(e,Co(bo.stringify(o),t),s)}}))}}},vo.exports.postcss=!0;var Oo=ge.default,_o=we.default,ko=J.default,Ao=W.default,Po=ye.default,Mo=G.default,Eo=Q.default,Lo=K.default,Ro=Z.default,$o=ve.default,jo=X.default,Io=be.default,No=ee.default,Fo=te.default,Bo=se.default,Uo=re.default,Do=ne.default,To=Se.default,qo=ie.default,Go=Y.default,zo=le.default,Wo=Ce.default,Vo=ce.default,Jo=pe.default,Yo=xe.default,Ho=he.default,Qo=de.default,Ko=Oe.default,Zo=me.default,Xo=H.default,ei=_e.default,ti=ke.default,si=Ae.default,ri=ue.default,ni=ae.default,oi=wo.exports,ii=vo.exports,ai=oe.default,li=fe.default,ui=Me.default;function ci(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var pi=ci(Oo),hi=ci(_o),fi=ci(ko),di=ci(Ao),mi=ci(Po),gi=ci(Mo),wi=ci(Eo),yi=ci(Lo),vi=ci(Ro),bi=ci($o),Si=ci(jo),Ci=ci(Io),xi=ci(No),Oi=ci(Fo),_i=ci(Bo),ki=ci(Uo),Ai=ci(Do),Pi=ci(To),Mi=ci(qo),Ei=ci(Go),Li=ci(zo),Ri=ci(Wo),$i=ci(Vo),ji=ci(Jo),Ii=ci(Yo),Ni=ci(Ho),Fi=ci(Qo),Bi=ci(Ko),Ui=ci(Zo),Di=ci(Xo),Ti=ci(ei),qi=ci(ti),Gi=ci(si),zi=ci(ri),Wi=ci(ni),Vi=ci(oi),Ji=ci(ii),Yi=ci(ai),Hi=ci(li),Qi=ci(ui);function Ki(e,t){return`\n\t${e}: {\n${Object.keys(t).reduce(((e,s)=>(e.push(`\t\t'${sa(s)}': '${sa(t[s])}'`),e)),[]).join(",\n")}\n\t}`}function Zi(e,t){return`export const ${e} = {\n${Object.keys(t).reduce(((e,s)=>(e.push(`\t'${sa(s)}': '${sa(t[s])}'`),e)),[]).join(",\n")}\n};\n`}function Xi(e,t){return Promise.all([].concat(t).map((async t=>{if(t instanceof Function)await t({customMedia:ea(e.customMedia),customProperties:ea(e.customProperties),customSelectors:ea(e.customSelectors)});else{const s=t===Object(t)?t:{to:String(t)},r=s.toJSON||ea;if("customMedia"in s||"customProperties"in s||"customSelectors"in s)s.customMedia=r(e.customMedia),s.customProperties=r(e.customProperties),s.customSelectors=r(e.customSelectors);else if("custom-media"in s||"custom-properties"in s||"custom-selectors"in s)s["custom-media"]=r(e.customMedia),s["custom-properties"]=r(e.customProperties),s["custom-selectors"]=r(e.customSelectors);else{const t=String(s.to||""),n=(s.type||di.default.extname(s.to).slice(1)).toLowerCase(),o=r(e.customMedia),i=r(e.customProperties),a=r(e.customSelectors);"css"===n&&await async function(e,t,s,r){const n=function(e){return`:root {\n${Object.keys(e).reduce(((t,s)=>(t.push(`\t${s}: ${e[s]};`),t)),[]).join("\n")}\n}\n`}(s),o=function(e){return`${Object.keys(e).reduce(((t,s)=>(t.push(`@custom-media ${s} ${e[s]};`),t)),[]).join("\n")}\n`}(t),i=function(e){return`${Object.keys(e).reduce(((t,s)=>(t.push(`@custom-selector ${s} ${e[s]};`),t)),[]).join("\n")}\n`}(r),a=`${o}\n${i}\n${n}`;await ta(e,a)}(t,o,i,a),"js"===n&&await async function(e,t,s,r){const n=`module.exports = {${Ki("customMedia",t)},${Ki("customProperties",s)},${Ki("customSelectors",r)}\n};\n`;await ta(e,n)}(t,o,i,a),"json"===n&&await async function(e,t,s,r){const n=`${JSON.stringify({"custom-media":t,"custom-properties":s,"custom-selectors":r},null," ")}\n`;await ta(e,n)}(t,o,i,a),"mjs"===n&&await async function(e,t,s,r){const n=`${Zi("customMedia",t)}\n${Zi("customProperties",s)}\n${Zi("customSelectors",r)}`;await ta(e,n)}(t,o,i,a)}}})))}function ea(e){return Object.keys(e).reduce(((t,s)=>(t[s]=String(e[s]),t)),{})}function ta(e,t){return new Promise(((s,r)=>{fi.default.writeFile(e,t,(e=>{e?r(e):s()}))}))}function sa(e){return e.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function ra(){return{postcssPlugin:"postcss-system-ui-font",Declaration(e){na.test(e.prop)&&(e.value.includes(ia.join(", "))||(e.value=e.value.replace(aa,la)))}}}ra.postcss=!0;const na=/(?:^(?:-|\\002d){2})|(?:^font(?:-family)?$)/i,oa="[\\f\\n\\r\\x09\\x20]",ia=["system-ui","-apple-system","Segoe UI","Roboto","Ubuntu","Cantarell","Noto Sans","sans-serif"],aa=new RegExp(`(^|,|${oa}+)(?:system-ui${oa}*)(?:,${oa}*(?:${ia.join("|")})${oa}*)?(,|$)`,"i"),la=`$1${ia.join(", ")}$2`,ua={"css-blank-pseudo":"blank-pseudo-class","css-has-pseudo":"has-pseudo-class","css-prefers-color-scheme":"prefers-color-scheme-query","postcss-attribute-case-insensitive":"case-insensitive-attributes","postcss-clamp":"clamp","postcss-color-functional-notation":"color-functional-notation","postcss-color-hex-alpha":"hexadecimal-alpha-notation","postcss-color-rebeccapurple":"rebeccapurple-color","postcss-custom-media":"custom-media-queries","postcss-custom-properties":"custom-properties","postcss-custom-selectors":"custom-selectors","postcss-dir-pseudo-class":"dir-pseudo-class","postcss-double-position-gradients":"double-position-gradients","postcss-env-function":"environment-variables","postcss-focus-visible":"focus-visible-pseudo-class","postcss-focus-within":"focus-within-pseudo-class","postcss-font-format-keywords":"font-format-keywords","postcss-font-variant":"font-variant-property","postcss-gap-properties":"gap-properties","postcss-hwb-function":"hwb-function","postcss-image-set-function":"image-set-function","postcss-initial":"all-property","postcss-is-pseudo-class":"is-pseudo-class","postcss-lab-function":"lab-function","postcss-logical":"logical-properties-and-values","postcss-media-minmax":"media-query-ranges","postcss-nesting":"nesting-rules","postcss-normalize-display-values":"display-two-values","postcss-opacity-percentage":"opacity-percentage","postcss-overflow-shorthand":"overflow-property","postcss-page-break":"break-properties","postcss-place":"place-properties","postcss-pseudo-class-any-link":"any-link-pseudo-class","postcss-replace-overflow-wrap":"overflow-wrap-property","postcss-selector-not":"not-pseudo-class","postcss-system-ui-font-family":"system-ui-font-family"},ca=(()=>{const e={};for(const[t,s]of Object.entries(ua))e[s]=t;return e})(),pa=new Map([["all-property",Ri.default],["any-link-pseudo-class",Ti.default],["blank-pseudo-class",gi.default],["break-properties",Bi.default],["case-insensitive-attributes",mi.default],["clamp",Ji.default],["color-functional-notation",wi.default],["custom-media-queries",bi.default],["custom-properties",Si.default],["custom-selectors",Ci.default],["dir-pseudo-class",xi.default],["display-two-values",Hi.default],["double-position-gradients",Oi.default],["environment-variables",_i.default],["focus-visible-pseudo-class",ki.default],["focus-within-pseudo-class",Ai.default],["font-format-keywords",Yi.default],["font-variant-property",Pi.default],["gap-properties",Mi.default],["hwb-function",Wi.default],["has-pseudo-class",Ei.default],["hexadecimal-alpha-notation",yi.default],["image-set-function",Li.default],["is-pseudo-class",zi.default],["lab-function",$i.default],["logical-properties-and-values",ji.default],["media-query-ranges",Ii.default],["nesting-rules",Ni.default],["not-pseudo-class",Gi.default],["opacity-percentage",Vi.default],["overflow-property",Fi.default],["overflow-wrap-property",qi.default],["place-properties",Ui.default],["prefers-color-scheme-query",Di.default],["rebeccapurple-color",vi.default],["system-ui-font-family",ra]]);function ha(e,t){let s="unknown",r=1/0;for(let n=0;n<t.length;n++){const o=fa(e,t[n]);o<r&&(r=o,s=t[n])}return{mostSimilar:s,distance:r}}function fa(e,t){if(!e.length)return t.length;if(!t.length)return e.length;const s=[];for(let r=0;r<=t.length;r++){s[r]=[r];for(let n=1;n<=e.length;n++)s[r][n]=0===r?n:Math.min(s[r-1][n]+1,s[r][n-1]+1,s[r-1][n-1]+(e[n-1]===t[r-1]?0:1))}return s[t.length][e.length]}const da=[];function ma(e){da.push(e)}function ga(){da.length=0}const wa={"blank-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README-BROWSER.md","focus-visible-pseudo-class":"https://github.com/WICG/focus-visible","focus-within-pseudo-class":"https://github.com/jsxtools/focus-within/blob/master/README-BROWSER.md","has-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo/README-BROWSER.md","prefers-color-scheme-query":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme/README-BROWSER.md"},ya=["blank-pseudo-class","focus-visible-pseudo-class","focus-within-pseudo-class","has-pseudo-class","prefers-color-scheme-query"];function va(e,t){if(!e)return!1;if("string"==typeof e)return!0;if(Array.isArray(e)){for(let s=0;s<e.length;s++){if("string"==typeof e[s])return!0;if(e[s]&&t in Object(e[s]))return!0}return!1}return t in Object(e)}function ba(e,t,s){return Math.max(e,Math.min(t,s))}const Sa=Symbol("insertBefore"),Ca=Symbol("insertAfter"),xa=Symbol("insertOrder"),Oa=Symbol("plugin");function _a(e,t,s){if("insertBefore"!==s&&"insertAfter"!==s)return[];const r="insertBefore"===s?Sa:Ca,n=[];for(const s in t){if(!Object.hasOwnProperty.call(t,s))continue;if(!e.find((e=>e.id===s)))continue;let o=t[s];Array.isArray(o)||(o=[o]);for(let e=0;e<o.length;e++)n.push({id:s,[Oa]:o[e],[xa]:e,[r]:!0})}return n}var ka=["custom-media-queries","custom-properties","environment-variables","image-set-function","media-query-ranges","prefers-color-scheme-query","nesting-rules","custom-selectors","any-link-pseudo-class","case-insensitive-attributes","focus-visible-pseudo-class","focus-within-pseudo-class","not-pseudo-class","logical-properties-and-values","dir-pseudo-class","all-property","color-functional-notation","double-position-gradients","hexadecimal-alpha-notation","hwb-function","lab-function","rebeccapurple-color","blank-pseudo-class","break-properties","font-variant-property","is-pseudo-class","has-pseudo-class","gap-properties","overflow-property","overflow-wrap-property","place-properties","system-ui-font-family"];const Aa=["ie","edge","firefox","chrome","safari","opera","ios_saf","android","op_mob","and_chr","and_ff","and_uc","samsung","and_qq","baidu","kaios"];function Pa(e){if(!e)return[];if(!("browser_support"in e))return["> 0%"];const t=[];return Aa.forEach((s=>{const r=e.browser_support[s];"string"==typeof r&&/^[0-9|.]+$/.test(r)?t.push(`${s} < ${e.browser_support[s]}`):t.push(`${s} >= 1`)})),t}function Ma(e,t,s){const r=Object(t.features),n=!("enableClientSidePolyfills"in t)||t.enableClientSidePolyfills,o=Object(t.insertBefore),i=Object(t.insertAfter),a=t.browsers,l=ba(0,function(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t}(t.minimumVendorImplementations),3);ga(),l>0&&ma(`Using features with ${l} or more vendor implementations`);const u=function(e){let t=2;if(void 0===e.stage)return ma(`Using features from Stage ${t} (default)`),t;if(!1===e.stage)t=5;else{let s=parseInt(e.stage,10);Number.isNaN(s)&&(s=0),t=ba(0,s,5)}return ma(5===t?'Stage has been disabled, features will be handled via the "features" option.':`Using features from Stage ${t}`),t}(t);2===u&&s&&!1===s.preserve&&(e=JSON.parse(JSON.stringify(e))).forEach((e=>{("blank-pseudo-class"===e.id||"prefers-color-scheme-query"===e.id)&&(e.stage=1)}));const c=function(e,t,s){return e.concat(_a(e,t,"insertBefore"),_a(e,s,"insertAfter")).filter((e=>function(e){return!!e[Sa]||!!e[Ca]||!!pa.has(e.id)}(e))).sort(((e,t)=>function(e,t){return e.id===t.id?e[Sa]&&t[Sa]||e[Ca]&&t[Ca]?ba(-1,e[xa]-t[xa],1):e[Sa]||t[Ca]?-1:e[Ca]||t[Sa]?1:0:ba(-1,ka.indexOf(e.id)-ka.indexOf(t.id),1)}(e,t)))}(e,o,i).map((e=>function(e){const t=Pa(e);if(e[Sa]||e[Ca]){let s=e.id;return s=e.insertBefore?`before-${s}`:`after-${s}`,{browsers:t,vendors_implementations:e.vendors_implementations,plugin:e[Oa],id:s,stage:6}}return{browsers:t,vendors_implementations:e.vendors_implementations,plugin:pa.get(e.id),id:e.id,stage:e.stage}}(e))).filter((e=>0===l||!(!e[Sa]&&!e[Ca])||l<=e.vendors_implementations||(ma(` ${e.id} with ${e.vendors_implementations} vendor implementations has been disabled`),!1))).filter((e=>{const t=e.stage>=u,s=n||!ya.includes(e.id),o=!1===r[e.id],i=r[e.id]?r[e.id]:t&&s;return o?ma(` ${e.id} has been disabled by options`):t?s||ma(` ${e.id} has been disabled by "enableClientSidePolyfills: false".`):ma(i?` ${e.id} has been enabled by options`:` ${e.id} with stage ${e.stage} has been disabled`),i})).map((t=>function(e,t,s,r,n){let o,i;return o=function(e,t,s){const r=Qi.default(e,{ignoreUnknownVersions:!0});switch(t.id){case"is-pseudo-class":return{onComplexSelector:"warning"};case"nesting-rules":return function(e,t){const s=Pa(e);return!!t.some((e=>Qi.default(s,{ignoreUnknownVersions:!0}).some((t=>t===e))))}(s.find((e=>"is-pseudo-class"===e.id)),r)?(ma('Disabling :is on "nesting-rules" due to lack of browser support.'),{noIsPseudoSelector:!0}):{};case"any-link-pseudo-class":return r.find((e=>e.startsWith("ie ")||e.startsWith("edge ")))?(ma('Adding area[href] fallbacks for ":any-link" support in Edge and IE.'),{subFeatures:{areaHrefNeedsFixing:!0}}):{};default:return{}}}(t,r,e),!0===s[r.id]?n&&(o=Object.assign({},o,n)):o=n?Object.assign({},o,n,s[r.id]):Object.assign({},o,s[r.id]),i=r.plugin.postcss?r.plugin(o):r.plugin,{browsers:r.browsers,vendors_implementations:r.vendors_implementations,plugin:i,pluginOptions:o,id:r.id}}(e,a,r,t,s))),p=Qi.default(a,{ignoreUnknownVersions:!0});return c.filter((e=>{if(e.id in r)return r[e.id];if(function(e){if("importFrom"in Object(e.pluginOptions))switch(e.id){case"custom-media-queries":if(va(e.pluginOptions.importFrom,"customMedia"))return!0;break;case"custom-properties":if(va(e.pluginOptions.importFrom,"customProperties"))return!0;break;case"environment-variables":if(va(e.pluginOptions.importFrom,"environmentVariables"))return!0;break;case"custom-selectors":if(va(e.pluginOptions.importFrom,"customSelectors"))return!0}if("exportTo"in Object(e.pluginOptions))switch(e.id){case"custom-media-queries":if(va(e.pluginOptions.exportTo,"customMedia"))return!0;break;case"custom-properties":if(va(e.pluginOptions.exportTo,"customProperties"))return!0;break;case"environment-variables":if(va(e.pluginOptions.exportTo,"environmentVariables"))return!0;break;case"custom-selectors":if(va(e.pluginOptions.exportTo,"customSelectors"))return!0}return!1}(e))return!0;const t=Qi.default(e.browsers,{ignoreUnknownVersions:!0}),s=p.some((e=>t.some((t=>t===e))));return s||ma(`${e.id} disabled due to browser support`),s}))}const Ea=e=>{const t=Object(e),s=Object.keys(Object(t.features)),r=t.browsers,n=function(e){if("importFrom"in e||"exportTo"in e||"preserve"in e){const t={};return"importFrom"in e&&(t.importFrom=e.importFrom),"exportTo"in e&&(t.exportTo={customMedia:{},customProperties:{},customSelectors:{}}),"preserve"in e&&(t.preserve=e.preserve),t}return!1}(t),o=Ma(hi.default,t,n),i=o.map((e=>e.plugin));!1!==t.autoprefixer&&i.push(pi.default(Object.assign({overrideBrowserslist:r},t.autoprefixer))),function(e,t){if(t.debug){ma("Enabling the following feature(s):");const t=[];e.forEach((e=>{e.id.startsWith("before")||e.id.startsWith("after")?ma(` ${e.id} (injected via options)`):ma(` ${e.id}`),void 0!==wa[e.id]&&t.push(e.id)})),t.length&&(ma("These feature(s) need a browser library to work:"),t.forEach((e=>ma(` ${e}: ${wa[e]}`))))}}(o,t);const a=()=>({postcssPlugin:"postcss-preset-env",OnceExit:function(r,{result:o}){!function(e,t,s){const r=Object.keys(ca),n=Object.keys(ua);e.forEach((e=>{if(r.includes(e))return;const o=ha(e,r),i=ha(e,n);o.distance<i.distance?t.warn(s,`Unknown feature: "${e}" did you mean: "${o.mostSimilar}"`):t.warn(s,`Unknown feature: "${e}" did you mean: "${ua[i.mostSimilar]}"`)}))}(s,r,o),t.debug&&function(e){e&&da.forEach((t=>e.warn(t))),ga()}(o),ga(),t.exportTo&&Xi(n.exportTo,e.exportTo)}});return a.postcss=!0,{postcssPlugin:"postcss-preset-env",plugins:[...i,a()]}};Ea.postcss=!0,go.exports=Ea;var La=go.exports;!function(){var e;switch(null!=(e=process.argv[2])&&e){case"css-blank-pseudo":return void mo(G.default,["preserve","replaceWith"],fo("@csstools/cli css-blank-pseudo","PostCSS Blank Pseudo","Lets you style form elements when they are empty, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".css-blank"}),!1);case"css-has-pseudo":return void mo(Y.default,["preserve"],fo("@csstools/cli css-has-pseudo","PostCSS Has Pseudo","Transforms CSS with :has {}",{preserve:!0}),!1);case"css-prefers-color-scheme":return void mo(H.default,["preserve","mediaQuery"],fo("@csstools/cli css-prefers-color-scheme","Prefers Color Scheme","Lets you use light and dark color schemes in all browsers, following the [Media Queries] specification.",{preserve:!0,mediaQuery:"color|color-index"}),!1);case"postcss-color-functional-notation":return void mo(Q.default,["preserve"],fo("@csstools/cli postcss-color-functional-notation","PostCSS Color Functional Notation","Lets you use space and slash separated color notation in CSS, following the [CSS Color] specification.",{preserve:!0}),!1);case"postcss-color-hex-alpha":return void mo(K.default,["preserve"],fo("@csstools/cli postcss-color-hex-alpha","PostCSS Color Hex Alpha","Lets you use 4 & 8 character hex color notation in CSS, following the CSS Color Module specification.",{preserve:!0}),!1);case"postcss-color-rebeccapurple":return void mo(Z.default,["preserve"],fo("@csstools/cli postcss-color-rebeccapurple","PostCSS RebeccaPurple","Lets you use the rebeccapurple color keyword in CSS.",{preserve:!0}),!1);case"postcss-custom-properties":return void mo(X.default,["importFrom","exportTo","preserve"],fo("@csstools/cli postcss-custom-properties","PostCSS Custom Properties","Lets you use Custom Properties in CSS, following the CSS Custom Properties specification.",{importFrom:["import-variables.js"],exportTo:["export-variables.js"],preserve:!0}),!1);case"postcss-dir-pseudo-class":return void mo(ee.default,["dir","preserve","shadow"],fo("@csstools/cli postcss-dir-pseudo-class","PostCSS Dir Pseudo Class","Lets you style by directionality using the `:dir()` pseudo-class in CSS",{dir:"ltr",preserve:!0,shadow:!0}),!1);case"postcss-double-position-gradients":return void mo(te.default,["preserve"],fo("@csstools/cli postcss-double-position-gradients","PostCSS Double Position Gradients","Lets you use double-position gradients in CSS, following the [CSS Image Values and Replaced Content] specification",{dir:"ltr",preserve:!0,shadow:!0}),!1);case"postcss-env-function":return void mo(se.default,["importFrom"],fo("@csstools/cli postcss-env-function","PostCSS Environment Variables","Lets you use `env()` variables in CSS, following the [CSS Environment Variables] specification.",{importFrom:["import-variables.js"]}),!1);case"postcss-focus-visible":return void mo(re.default,["preserve","replaceWith"],fo("@csstools/cli postcss-focus-visible","PostCSS Focus Visible","Lets you use the `:focus-visible` pseudo-class in CSS, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".focus-visible"}),!1);case"postcss-focus-within":return void mo(ne.default,["preserve","replaceWith"],fo("@csstools/cli postcss-focus-within","PostCSS Focus Within","Lets you use the `:focus-within` pseudo-class in CSS, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".focus-within"}),!1);case"postcss-font-format-keywords":return void mo(oe.default,["preserve"],fo("@csstools/cli postcss-font-format-keywords","PostCSS Font Format Keyword","Lets you use unquoted format on @font-face CSS definitions.",{preserve:!0}),!1);case"postcss-gap-properties":return void mo(ie.default,["preserve"],fo("@csstools/cli postcss-gap-properties","PostCSS Gap Properties","Lets you use the gap, column-gap, and row-gap shorthand properties in CSS, following the CSS Grid Layout specification.",{preserve:!0}),!1);case"postcss-hwb-function":return void mo(ae.default,["preserve"],fo("@csstools/cli postcss-hwb-function","PostCSS HWB function","Convert hwb() to rgb()",{preserve:!0}),!1);case"postcss-image-set-function":return void mo(le.default,["oninvalid","preserve"],fo("@csstools/cli postcss-image-set-function","PostCSS Image Set Function","Lets you display resolution-dependent images using the image-set() function in CSS, following the CSS Images specification.",{preserve:!0,oninvalid:"ignore|warn|throw"}),!1);case"postcss-is-pseudo-class":return void mo(ue.default,["onComplexSelector","preserve","specificityMatchingName"],fo("@csstools/cli postcss-dir-pseudo-class","PostCSS Is Pseudo Class","Lets you use the :is pseudo class function, following the CSS Selector specification.",{onComplexSelector:"warning",preserve:!0,specificityMatchingName:"does-not-exist"}),!1);case"postcss-lab-function":return void mo(ce.default,["preserve"],fo("@csstools/cli postcss-lab-function","PostCSS Lab function","Convert lab() to rgb()",{preserve:!0}),!1);case"postcss-logical":return void mo(pe.default,["dir","preserve"],fo("@csstools/cli postcss-logical","PostCSS Logical","Lets you use logical, rather than physical, direction and dimension mappings in CSS, following the CSS Logical Properties and Values specification.",{dir:"ltr|rtl",preserve:!0}),!1);case"postcss-nesting":return void mo(he.default,["noIsPseudoSelector"],fo("@csstools/cli postcss-nesting","PostCSS Nesting","Lets you nest style rules inside each other, following the CSS Nesting specification.",{noIsPseudoSelector:!0}),!1);case"postcss-normalize-display-values":return void mo(fe.default,["preserve"],fo("@csstools/cli postcss-normalize-display-values","PostCSS Normalize Display Values","Lets you use two values display syntax for inner and outer display types.",{preserve:!0}),!1);case"postcss-overflow-shorthand":return void mo(de.default,["preserve"],fo("@csstools/cli postcss-overflow-shorthand","PostCSS Overflow Shorthand","Lets you use the `overflow` shorthand in CSS, following the CSS Overflow specification.",{preserve:!0}),!1);case"postcss-place":return void mo(me.default,["preserve"],fo("@csstools/cli postcss-place","PostCSS Place","Lets you use place-* properties as shorthands for align-* and justify-*, following the CSS Box Alignment specification.",{preserve:!0}),!1);case"postcss-preset-env":return void mo(La,["stage","features","browsers","autoprefixer","importFrom","exportTo"],fo("@csstools/cli postcss-preset-env","PostCSS Preset Env","Lets you convert modern CSS into something most browsers can understand, determining the polyfills you need based on your targeted browsers or runtime environments.",{stage:0,features:{"blank-pseudo-class":{preserve:!1},"color-functional-notation":{preserve:!0}},browsers:"last 2 versions",autoprefixer:{grid:!0},preserve:!1,importFrom:"path/to/file.css",exportTo:"path/to/file.css"}),!1);case"postcss-pseudo-class-any-link":return void mo(_e.default,["preserve"],fo("@csstools/cli postcss-pseudo-class-any-link","PostCSS Pseudo Class Any Link","Lets you :any-link pseudo-class in CSS, following the Selectors specification.",{preserve:!0}),!1);default:{const e=["CSSTools CLI\n"," Transform CSS with any plugin from https://github.com/csstools/postcss-plugins\n","Usage:"," @csstools/csstools-cli postcss-preset-env [input.css] [OPTIONS] [-o|--output output.css]"," @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --dir <output-directory>"," @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --replace","\nAvailable Plugins:"," css-blank-pseudo"," css-has-pseudo"," css-prefers-color-scheme"," postcss-color-functional-notation"," postcss-color-hex-alpha"," postcss-color-rebeccapurple"," postcss-custom-properties"," postcss-dir-pseudo-class"," postcss-double-position-gradients"," postcss-env-function"," postcss-focus-visible"," postcss-focus-within"," postcss-font-format-keywords"," postcss-gap-properties"," postcss-hwb-function"," postcss-image-set-function"," postcss-is-pseudo-class"," postcss-lab-function"," postcss-logical"," postcss-nesting"," postcss-normalize-display-values"," postcss-overflow-shorthand"," postcss-place"," postcss-pseudo-class-any-link","\nPlugin Help:"," @csstools/csstools-cli <plugin-name>"," @csstools/csstools-cli postcss-preset-env"];console.warn(e.join("\n"))}}}();
|
|
3
|
+
"use strict";var e=require("css-blank-pseudo"),t=require("tty"),s=require("path"),r=require("url"),n=require("fs"),o=require("css-has-pseudo"),i=require("css-prefers-color-scheme"),a=require("postcss-color-functional-notation"),l=require("postcss-color-hex-alpha"),u=require("postcss-color-rebeccapurple"),c=require("postcss-custom-properties"),p=require("postcss-dir-pseudo-class"),h=require("postcss-double-position-gradients"),f=require("postcss-env-function"),d=require("postcss-focus-visible"),m=require("postcss-focus-within"),g=require("@csstools/postcss-font-format-keywords"),y=require("postcss-gap-properties"),w=require("@csstools/postcss-hwb-function"),v=require("postcss-image-set-function"),b=require("@csstools/postcss-is-pseudo-class"),S=require("postcss-lab-function"),C=require("postcss-logical"),x=require("postcss-nesting"),O=require("@csstools/postcss-normalize-display-values"),_=require("postcss-overflow-shorthand"),k=require("postcss-place"),P=require("autoprefixer"),A=require("cssdb"),M=require("@csstools/postcss-progressive-custom-properties"),L=require("browserslist"),E=require("postcss-attribute-case-insensitive"),R=require("postcss-custom-media"),$=require("postcss-custom-selectors"),j=require("postcss-font-variant"),I=require("postcss-initial"),F=require("postcss-media-minmax"),N=require("postcss-page-break"),B=require("postcss-pseudo-class-any-link"),U=require("postcss-replace-overflow-wrap"),D=require("postcss-selector-not"),T=require("postcss-value-parser"),q=require("@csstools/postcss-color-function"),G=require("@csstools/postcss-oklab-function"),z=require("@csstools/postcss-ic-unit");function W(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var V,J=W(e),Y=W(t),H=W(s),Q=W(r),K=W(n),Z=W(o),X=W(i),ee=W(a),te=W(l),se=W(u),re=W(c),ne=W(p),oe=W(h),ie=W(f),ae=W(d),le=W(m),ue=W(g),ce=W(y),pe=W(w),he=W(v),fe=W(b),de=W(S),me=W(C),ge=W(x),ye=W(O),we=W(_),ve=W(k),be=W(P),Se=W(A),Ce=W(M),xe=W(L),Oe=W(E),_e=W(R),ke=W($),Pe=W(j),Ae=W(I),Me=W(F),Le=W(N),Ee=W(B),Re=W(U),$e=W(D),je=W(T),Ie=W(q),Fe=W(G),Ne=W(z);!function(e){e.InvalidArguments="INVALID_ARGUMENTS"}(V||(V={}));var Be={exports:{}};let Ue=Y.default,De=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||"win32"===process.platform||Ue.isatty(1)&&"dumb"!==process.env.TERM||"CI"in process.env),Te=(e,t,s=e)=>r=>{let n=""+r,o=n.indexOf(t,e.length);return~o?e+qe(n,t,s,o)+t:e+n+t},qe=(e,t,s,r)=>{let n=e.substring(0,r)+s,o=e.substring(r+t.length),i=o.indexOf(t);return~i?n+qe(o,t,s,i):n+o},Ge=(e=De)=>({isColorSupported:e,reset:e?e=>`[0m${e}[0m`:String,bold:e?Te("[1m","[22m","[22m[1m"):String,dim:e?Te("[2m","[22m","[22m[2m"):String,italic:e?Te("[3m","[23m"):String,underline:e?Te("[4m","[24m"):String,inverse:e?Te("[7m","[27m"):String,hidden:e?Te("[8m","[28m"):String,strikethrough:e?Te("[9m","[29m"):String,black:e?Te("[30m","[39m"):String,red:e?Te("[31m","[39m"):String,green:e?Te("[32m","[39m"):String,yellow:e?Te("[33m","[39m"):String,blue:e?Te("[34m","[39m"):String,magenta:e?Te("[35m","[39m"):String,cyan:e?Te("[36m","[39m"):String,white:e?Te("[37m","[39m"):String,gray:e?Te("[90m","[39m"):String,bgBlack:e?Te("[40m","[49m"):String,bgRed:e?Te("[41m","[49m"):String,bgGreen:e?Te("[42m","[49m"):String,bgYellow:e?Te("[43m","[49m"):String,bgBlue:e?Te("[44m","[49m"):String,bgMagenta:e?Te("[45m","[49m"):String,bgCyan:e?Te("[46m","[49m"):String,bgWhite:e?Te("[47m","[49m"):String});Be.exports=Ge(),Be.exports.createColors=Ge;const ze="'".charCodeAt(0),We='"'.charCodeAt(0),Ve="\\".charCodeAt(0),Je="/".charCodeAt(0),Ye="\n".charCodeAt(0),He=" ".charCodeAt(0),Qe="\f".charCodeAt(0),Ke="\t".charCodeAt(0),Ze="\r".charCodeAt(0),Xe="[".charCodeAt(0),et="]".charCodeAt(0),tt="(".charCodeAt(0),st=")".charCodeAt(0),rt="{".charCodeAt(0),nt="}".charCodeAt(0),ot=";".charCodeAt(0),it="*".charCodeAt(0),at=":".charCodeAt(0),lt="@".charCodeAt(0),ut=/[\t\n\f\r "#'()/;[\\\]{}]/g,ct=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,pt=/.[\n"'(/\\]/,ht=/[\da-f]/i;var ft=function(e,t={}){let s,r,n,o,i,a,l,u,c,p,h=e.css.valueOf(),f=t.ignoreErrors,d=h.length,m=0,g=[],y=[];function w(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},nextToken:function(e){if(y.length)return y.pop();if(m>=d)return;let t=!!e&&e.ignoreUnclosed;switch(s=h.charCodeAt(m),s){case Ye:case He:case Ke:case Ze:case Qe:r=m;do{r+=1,s=h.charCodeAt(r)}while(s===He||s===Ye||s===Ke||s===Ze||s===Qe);p=["space",h.slice(m,r)],m=r-1;break;case Xe:case et:case rt:case nt:case at:case ot:case st:{let e=String.fromCharCode(s);p=[e,e,m];break}case tt:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(m+1),"url"===u&&c!==ze&&c!==We&&c!==He&&c!==Ye&&c!==Ke&&c!==Qe&&c!==Ze){r=m;do{if(a=!1,r=h.indexOf(")",r+1),-1===r){if(f||t){r=m;break}w("bracket")}for(l=r;h.charCodeAt(l-1)===Ve;)l-=1,a=!a}while(a);p=["brackets",h.slice(m,r+1),m,r],m=r}else r=h.indexOf(")",m+1),o=h.slice(m,r+1),-1===r||pt.test(o)?p=["(","(",m]:(p=["brackets",o,m,r],m=r);break;case ze:case We:n=s===ze?"'":'"',r=m;do{if(a=!1,r=h.indexOf(n,r+1),-1===r){if(f||t){r=m+1;break}w("string")}for(l=r;h.charCodeAt(l-1)===Ve;)l-=1,a=!a}while(a);p=["string",h.slice(m,r+1),m,r],m=r;break;case lt:ut.lastIndex=m+1,ut.test(h),r=0===ut.lastIndex?h.length-1:ut.lastIndex-2,p=["at-word",h.slice(m,r+1),m,r],m=r;break;case Ve:for(r=m,i=!0;h.charCodeAt(r+1)===Ve;)r+=1,i=!i;if(s=h.charCodeAt(r+1),i&&s!==Je&&s!==He&&s!==Ye&&s!==Ke&&s!==Ze&&s!==Qe&&(r+=1,ht.test(h.charAt(r)))){for(;ht.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===He&&(r+=1)}p=["word",h.slice(m,r+1),m,r],m=r;break;default:s===Je&&h.charCodeAt(m+1)===it?(r=h.indexOf("*/",m+2)+1,0===r&&(f||t?r=h.length:w("comment")),p=["comment",h.slice(m,r+1),m,r],m=r):(ct.lastIndex=m+1,ct.test(h),r=0===ct.lastIndex?h.length-1:ct.lastIndex-2,p=["word",h.slice(m,r+1),m,r],g.push(p),m=r)}return m++,p},endOfFile:function(){return 0===y.length&&m>=d},position:function(){return m}}};let dt,mt=Be.exports,gt=ft;const yt={brackets:mt.cyan,"at-word":mt.cyan,comment:mt.gray,string:mt.green,class:mt.yellow,hash:mt.magenta,call:mt.cyan,"(":mt.cyan,")":mt.cyan,"{":mt.yellow,"}":mt.yellow,"[":mt.yellow,"]":mt.yellow,":":mt.yellow,";":mt.yellow};function wt([e,t],s){if("word"===e){if("."===t[0])return"class";if("#"===t[0])return"hash"}if(!s.endOfFile()){let e=s.nextToken();if(s.back(e),"brackets"===e[0]||"("===e[0])return"call"}return e}function vt(e){let t=gt(new dt(e),{ignoreErrors:!0}),s="";for(;!t.endOfFile();){let e=t.nextToken(),r=yt[wt(e,t)];s+=r?e[1].split(/\r?\n/).map((e=>r(e))).join("\n"):e[1]}return s}vt.registerInput=function(e){dt=e};var bt=vt;let St=Be.exports,Ct=bt;class xt extends Error{constructor(e,t,s,r,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),r&&(this.source=r),o&&(this.plugin=o),void 0!==t&&void 0!==s&&("number"==typeof t?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,xt)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=St.isColorSupported),Ct&&e&&(t=Ct(t));let s,r,n=t.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,n.length),a=String(i).length;if(e){let{bold:e,red:t,gray:n}=St.createColors(!0);s=s=>e(t(s)),r=e=>n(e)}else s=r=e=>e;return n.slice(o,i).map(((e,t)=>{let n=o+1+t,i=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let t=r(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+r(i)+e+"\n "+t+s("^")}return" "+r(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}var Ot=xt;xt.default=xt;var _t={};_t.isClean=Symbol("isClean"),_t.my=Symbol("my");const kt={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class Pt{constructor(e){this.builder=e}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)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),r=e.prop+s+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let s="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?s+=e.raws.afterName:r&&(s+=" "),e.nodes)this.block(e,s+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(s+r+n,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let s=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==r||s)}}block(e,t){let s,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}raw(e,t,s){let r;if(s||(s=t),t&&(r=e.raws[t],void 0!==r))return r;let n=e.parent;if("before"===s){if(!n||"root"===n.type&&n.first===e)return"";if(n&&"document"===n.type)return""}if(!n)return kt[s];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[s])return o.rawCache[s];if("before"===s||"after"===s)return this.beforeAfter(e,s);{let n="raw"+((i=s)[0].toUpperCase()+i.slice(1));this[n]?r=this[n](o,e):o.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var i;return void 0===r&&(r=kt[s]),o.rawCache[s]=r,r}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==s.raws.before){let e=s.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let s;return e.walkComments((e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls((e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1})),void 0===s?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeRule(e){let t;return e.walk((s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&void 0!==s.raws.before)return t=s.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let s;s="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&"root"!==r.type;)n+=1,r=r.parent;if(s.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)s+=t}return s}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}}var At=Pt;Pt.default=Pt;let Mt=At;function Lt(e,t){new Mt(t).stringify(e)}var Et=Lt;Lt.default=Lt;let{isClean:Rt,my:$t}=_t,jt=Ot,It=At,Ft=Et;function Nt(e,t){let s=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let n=e[r],o=typeof n;"parent"===r&&"object"===o?t&&(s[r]=t):"source"===r?s[r]=n:Array.isArray(n)?s[r]=n.map((e=>Nt(e,s))):("object"===o&&null!==n&&(n=Nt(n)),s[r]=n)}return s}class Bt{constructor(e={}){this.raws={},this[Rt]=!1,this[$t]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let s of e[t])"function"==typeof s.clone?this.append(s.clone()):this.append(s)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:s,end:r}=this.rangeBy(t);return this.source.input.error(e,{line:s.line,column:s.column},{line:r.line,column:r.column},t)}return new jt(e)}warn(e,t,s){let r={node:this};for(let e in s)r[e]=s[e];return e.warn(t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Ft){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=Nt(this);for(let s in e)t[s]=e[s];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new It).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let s={},r=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))s[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)s[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=n,t.set(r.input,n),n++),s[e]={inputId:o,start:r.start,end:r.end}}else s[e]=r}return r&&(s.inputs=[...t.keys()].map((e=>e.toJSON()))),s}positionInside(e){let t=this.toString(),s=this.source.start.column,r=this.source.start.line;for(let n=0;n<e;n++)"\n"===t[n]?(s=1,r+=1):s+=1;return{line:r,column:s}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let s=this.toString().indexOf(e.word);-1!==s&&(t=this.positionInside(s))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},s=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r),s=this.positionInside(r+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?s={line:e.end.line,column:e.end.column}:e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={line:t.line,column:t.column+1}),{start:t,end:s}}getProxyProcessor(){return{set:(e,t,s)=>(e[t]===s||(e[t]=s,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}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}markDirty(){if(this[Rt]){this[Rt]=!1;let e=this;for(;e=e.parent;)e[Rt]=!1}}get proxyOf(){return this}}var Ut=Bt;Bt.default=Bt;let Dt=Ut;class Tt extends Dt{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var qt=Tt;Tt.default=Tt;var Gt={},zt={},Wt={},Vt={},Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Vt.encode=function(e){if(0<=e&&e<Jt.length)return Jt[e];throw new TypeError("Must be between 0 and 63: "+e)},Vt.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Yt=Vt;Wt.encode=function(e){var t,s="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),s+=Yt.encode(t)}while(r>0);return s},Wt.decode=function(e,t,s){var r,n,o,i,a=e.length,l=0,u=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(n=Yt.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&n),l+=(n&=31)<<u,u+=5}while(r);s.value=(i=(o=l)>>1,1==(1&o)?-i:i),s.rest=t};var Ht={};!function(e){e.getArg=function(e,t,s){if(t in e)return e[t];if(3===arguments.length)return s;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,s=/^data:.+\,.+$/;function r(e){var s=e.match(t);return s?{scheme:s[1],auth:s[2],host:s[3],port:s[4],path:s[5]}:null}function n(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=r,e.urlGenerate=n;var o=function(e){var t=[];return function(s){for(var r=0;r<t.length;r++)if(t[r].input===s){var n=t[0];return t[0]=t[r],t[r]=n,t[0].result}var o=e(s);return t.unshift({input:s,result:o}),t.length>32&&t.pop(),o}}((function(t){var s=t,o=r(t);if(o){if(!o.path)return t;s=o.path}for(var i=e.isAbsolute(s),a=[],l=0,u=0;;){if(l=u,-1===(u=s.indexOf("/",l))){a.push(s.slice(l));break}for(a.push(s.slice(l,u));u<s.length&&"/"===s[u];)u++}var c,p=0;for(u=a.length-1;u>=0;u--)"."===(c=a[u])?a.splice(u,1):".."===c?p++:p>0&&(""===c?(a.splice(u+1,p),p=0):(a.splice(u,2),p--));return""===(s=a.join("/"))&&(s=i?"/":"."),o?(o.path=s,n(o)):s}));function i(e,t){""===e&&(e="."),""===t&&(t=".");var i=r(t),a=r(e);if(a&&(e=a.path||"/"),i&&!i.scheme)return a&&(i.scheme=a.scheme),n(i);if(i||t.match(s))return t;if(a&&!a.host&&!a.path)return a.host=t,n(a);var l="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,n(a)):l}e.normalize=o,e.join=i,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var s=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++s}return Array(s+1).join("../")+t.substr(e.length+1)};var a=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var s=t-10;s>=0;s--)if(36!==e.charCodeAt(s))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=a?l:function(e){return u(e)?"$"+e:e},e.fromSetString=a?l:function(e){return u(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,s){var r=c(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||s||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:c(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,s){var r;return 0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||s||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:c(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,s){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||s||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,s){var r=e.generatedColumn-t.generatedColumn;return 0!==r||s||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var s=e.generatedLine-t.generatedLine;return 0!==s||0!==(s=e.generatedColumn-t.generatedColumn)||0!==(s=c(e.source,t.source))||0!==(s=e.originalLine-t.originalLine)||0!==(s=e.originalColumn-t.originalColumn)?s:c(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,s){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),s){var a=r(s);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var l=a.path.lastIndexOf("/");l>=0&&(a.path=a.path.substring(0,l+1))}t=i(n(a),t)}return o(t)}}(Ht);var Qt={},Kt=Ht,Zt=Object.prototype.hasOwnProperty,Xt="undefined"!=typeof Map;function es(){this._array=[],this._set=Xt?new Map:Object.create(null)}es.fromArray=function(e,t){for(var s=new es,r=0,n=e.length;r<n;r++)s.add(e[r],t);return s},es.prototype.size=function(){return Xt?this._set.size:Object.getOwnPropertyNames(this._set).length},es.prototype.add=function(e,t){var s=Xt?e:Kt.toSetString(e),r=Xt?this.has(e):Zt.call(this._set,s),n=this._array.length;r&&!t||this._array.push(e),r||(Xt?this._set.set(e,n):this._set[s]=n)},es.prototype.has=function(e){if(Xt)return this._set.has(e);var t=Kt.toSetString(e);return Zt.call(this._set,t)},es.prototype.indexOf=function(e){if(Xt){var t=this._set.get(e);if(t>=0)return t}else{var s=Kt.toSetString(e);if(Zt.call(this._set,s))return this._set[s]}throw new Error('"'+e+'" is not in the set.')},es.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},es.prototype.toArray=function(){return this._array.slice()},Qt.ArraySet=es;var ts={},ss=Ht;function rs(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}rs.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},rs.prototype.add=function(e){var t,s,r,n,o,i;t=this._last,s=e,r=t.generatedLine,n=s.generatedLine,o=t.generatedColumn,i=s.generatedColumn,n>r||n==r&&i>=o||ss.compareByGeneratedPositionsInflated(t,s)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},rs.prototype.toArray=function(){return this._sorted||(this._array.sort(ss.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ts.MappingList=rs;var ns=Wt,os=Ht,is=Qt.ArraySet,as=ts.MappingList;function ls(e){e||(e={}),this._file=os.getArg(e,"file",null),this._sourceRoot=os.getArg(e,"sourceRoot",null),this._skipValidation=os.getArg(e,"skipValidation",!1),this._sources=new is,this._names=new is,this._mappings=new as,this._sourcesContents=null}ls.prototype._version=3,ls.fromSourceMap=function(e){var t=e.sourceRoot,s=new ls({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=os.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),s.addMapping(r)})),e.sources.forEach((function(r){var n=r;null!==t&&(n=os.relative(t,r)),s._sources.has(n)||s._sources.add(n);var o=e.sourceContentFor(r);null!=o&&s.setSourceContent(r,o)})),s},ls.prototype.addMapping=function(e){var t=os.getArg(e,"generated"),s=os.getArg(e,"original",null),r=os.getArg(e,"source",null),n=os.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,s,r,n),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=s&&s.line,originalColumn:null!=s&&s.column,source:r,name:n})},ls.prototype.setSourceContent=function(e,t){var s=e;null!=this._sourceRoot&&(s=os.relative(this._sourceRoot,s)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[os.toSetString(s)]=t):this._sourcesContents&&(delete this._sourcesContents[os.toSetString(s)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},ls.prototype.applySourceMap=function(e,t,s){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var n=this._sourceRoot;null!=n&&(r=os.relative(n,r));var o=new is,i=new is;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=s&&(t.source=os.join(s,t.source)),null!=n&&(t.source=os.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||o.has(l)||o.add(l);var u=t.name;null==u||i.has(u)||i.add(u)}),this),this._sources=o,this._names=i,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=s&&(t=os.join(s,t)),null!=n&&(t=os.relative(n,t)),this.setSourceContent(t,r))}),this)},ls.prototype._validateMapping=function(e,t,s,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||s||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&s))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:s,original:t,name:r}))},ls.prototype._serializeMappings=function(){for(var e,t,s,r,n=0,o=1,i=0,a=0,l=0,u=0,c="",p=this._mappings.toArray(),h=0,f=p.length;h<f;h++){if(e="",(t=p[h]).generatedLine!==o)for(n=0;t.generatedLine!==o;)e+=";",o++;else if(h>0){if(!os.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=ns.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=ns.encode(r-u),u=r,e+=ns.encode(t.originalLine-1-a),a=t.originalLine-1,e+=ns.encode(t.originalColumn-i),i=t.originalColumn,null!=t.name&&(s=this._names.indexOf(t.name),e+=ns.encode(s-l),l=s)),c+=e}return c},ls.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=os.relative(t,e));var s=os.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null}),this)},ls.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},ls.prototype.toString=function(){return JSON.stringify(this.toJSON())},zt.SourceMapGenerator=ls;var us={},cs={};!function(e){function t(s,r,n,o,i,a){var l=Math.floor((r-s)/2)+s,u=i(n,o[l],!0);return 0===u?l:u>0?r-l>1?t(l,r,n,o,i,a):a==e.LEAST_UPPER_BOUND?r<o.length?r:-1:l:l-s>1?t(s,l,n,o,i,a):a==e.LEAST_UPPER_BOUND?l:s<0?-1:s}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(s,r,n,o){if(0===r.length)return-1;var i=t(-1,r.length,s,r,n,o||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===n(r[i],r[i-1],!0);)--i;return i}}(cs);var ps={};function hs(e){function t(e,t,s){var r=e[t];e[t]=e[s],e[s]=r}return function e(s,r,n,o){if(n<o){var i=n-1;t(s,(c=n,p=o,Math.round(c+Math.random()*(p-c))),o);for(var a=s[o],l=n;l<o;l++)r(s[l],a,!1)<=0&&t(s,i+=1,l);t(s,i+1,l);var u=i+1;e(s,r,n,u-1),e(s,r,u+1,o)}var c,p}}let fs=new WeakMap;ps.quickSort=function(e,t,s=0){let r=fs.get(t);void 0===r&&(r=function(e){let t=hs.toString();return new Function(`return ${t}`)()(e)}(t),fs.set(t,r)),r(e,t,s,e.length-1)};var ds=Ht,ms=cs,gs=Qt.ArraySet,ys=Wt,ws=ps.quickSort;function vs(e,t){var s=e;return"string"==typeof e&&(s=ds.parseSourceMapInput(e)),null!=s.sections?new Os(s,t):new bs(s,t)}function bs(e,t){var s=e;"string"==typeof e&&(s=ds.parseSourceMapInput(e));var r=ds.getArg(s,"version"),n=ds.getArg(s,"sources"),o=ds.getArg(s,"names",[]),i=ds.getArg(s,"sourceRoot",null),a=ds.getArg(s,"sourcesContent",null),l=ds.getArg(s,"mappings"),u=ds.getArg(s,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);i&&(i=ds.normalize(i)),n=n.map(String).map(ds.normalize).map((function(e){return i&&ds.isAbsolute(i)&&ds.isAbsolute(e)?ds.relative(i,e):e})),this._names=gs.fromArray(o.map(String),!0),this._sources=gs.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map((function(e){return ds.computeSourceURL(i,e,t)})),this.sourceRoot=i,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=t,this.file=u}function Ss(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}vs.fromSourceMap=function(e,t){return bs.fromSourceMap(e,t)},vs.prototype._version=3,vs.prototype.__generatedMappings=null,Object.defineProperty(vs.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),vs.prototype.__originalMappings=null,Object.defineProperty(vs.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),vs.prototype._charIsMappingSeparator=function(e,t){var s=e.charAt(t);return";"===s||","===s},vs.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},vs.GENERATED_ORDER=1,vs.ORIGINAL_ORDER=2,vs.GREATEST_LOWER_BOUND=1,vs.LEAST_UPPER_BOUND=2,vs.prototype.eachMapping=function(e,t,s){var r,n=t||null;switch(s||vs.GENERATED_ORDER){case vs.GENERATED_ORDER:r=this._generatedMappings;break;case vs.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,i=e.bind(n),a=this._names,l=this._sources,u=this._sourceMapURL,c=0,p=r.length;c<p;c++){var h=r[c],f=null===h.source?null:l.at(h.source);i({source:f=ds.computeSourceURL(o,f,u),generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:null===h.name?null:a.at(h.name)})}},vs.prototype.allGeneratedPositionsFor=function(e){var t=ds.getArg(e,"line"),s={source:ds.getArg(e,"source"),originalLine:t,originalColumn:ds.getArg(e,"column",0)};if(s.source=this._findSourceIndex(s.source),s.source<0)return[];var r=[],n=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",ds.compareByOriginalPositions,ms.LEAST_UPPER_BOUND);if(n>=0){var o=this._originalMappings[n];if(void 0===e.column)for(var i=o.originalLine;o&&o.originalLine===i;)r.push({line:ds.getArg(o,"generatedLine",null),column:ds.getArg(o,"generatedColumn",null),lastColumn:ds.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++n];else for(var a=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==a;)r.push({line:ds.getArg(o,"generatedLine",null),column:ds.getArg(o,"generatedColumn",null),lastColumn:ds.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++n]}return r},us.SourceMapConsumer=vs,bs.prototype=Object.create(vs.prototype),bs.prototype.consumer=vs,bs.prototype._findSourceIndex=function(e){var t,s=e;if(null!=this.sourceRoot&&(s=ds.relative(this.sourceRoot,s)),this._sources.has(s))return this._sources.indexOf(s);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},bs.fromSourceMap=function(e,t){var s=Object.create(bs.prototype),r=s._names=gs.fromArray(e._names.toArray(),!0),n=s._sources=gs.fromArray(e._sources.toArray(),!0);s.sourceRoot=e._sourceRoot,s.sourcesContent=e._generateSourcesContent(s._sources.toArray(),s.sourceRoot),s.file=e._file,s._sourceMapURL=t,s._absoluteSources=s._sources.toArray().map((function(e){return ds.computeSourceURL(s.sourceRoot,e,t)}));for(var o=e._mappings.toArray().slice(),i=s.__generatedMappings=[],a=s.__originalMappings=[],l=0,u=o.length;l<u;l++){var c=o[l],p=new Ss;p.generatedLine=c.generatedLine,p.generatedColumn=c.generatedColumn,c.source&&(p.source=n.indexOf(c.source),p.originalLine=c.originalLine,p.originalColumn=c.originalColumn,c.name&&(p.name=r.indexOf(c.name)),a.push(p)),i.push(p)}return ws(s.__originalMappings,ds.compareByOriginalPositions),s},bs.prototype._version=3,Object.defineProperty(bs.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const Cs=ds.compareByGeneratedPositionsDeflatedNoLine;function xs(e,t){let s=e.length,r=e.length-t;if(!(r<=1))if(2==r){let s=e[t],r=e[t+1];Cs(s,r)>0&&(e[t]=r,e[t+1]=s)}else if(r<20)for(let r=t;r<s;r++)for(let s=r;s>t;s--){let t=e[s-1],r=e[s];if(Cs(t,r)<=0)break;e[s-1]=r,e[s]=t}else ws(e,Cs,t)}function Os(e,t){var s=e;"string"==typeof e&&(s=ds.parseSourceMapInput(e));var r=ds.getArg(s,"version"),n=ds.getArg(s,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new gs,this._names=new gs;var o={line:-1,column:0};this._sections=n.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var s=ds.getArg(e,"offset"),r=ds.getArg(s,"line"),n=ds.getArg(s,"column");if(r<o.line||r===o.line&&n<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=s,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new vs(ds.getArg(e,"map"),t)}}))}bs.prototype._parseMappings=function(e,t){var s,r,n,o,i=1,a=0,l=0,u=0,c=0,p=0,h=e.length,f=0,d={},m=[],g=[];let y=0;for(;f<h;)if(";"===e.charAt(f))i++,f++,a=0,xs(g,y),y=g.length;else if(","===e.charAt(f))f++;else{for((s=new Ss).generatedLine=i,n=f;n<h&&!this._charIsMappingSeparator(e,n);n++);for(e.slice(f,n),r=[];f<n;)ys.decode(e,f,d),o=d.value,f=d.rest,r.push(o);if(2===r.length)throw new Error("Found a source, but no line and column");if(3===r.length)throw new Error("Found a source and line, but no column");if(s.generatedColumn=a+r[0],a=s.generatedColumn,r.length>1&&(s.source=c+r[1],c+=r[1],s.originalLine=l+r[2],l=s.originalLine,s.originalLine+=1,s.originalColumn=u+r[3],u=s.originalColumn,r.length>4&&(s.name=p+r[4],p+=r[4])),g.push(s),"number"==typeof s.originalLine){let e=s.source;for(;m.length<=e;)m.push(null);null===m[e]&&(m[e]=[]),m[e].push(s)}}xs(g,y),this.__generatedMappings=g;for(var w=0;w<m.length;w++)null!=m[w]&&ws(m[w],ds.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...m)},bs.prototype._findMapping=function(e,t,s,r,n,o){if(e[s]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[s]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return ms.search(e,t,n,o)},bs.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var s=this._generatedMappings[e+1];if(t.generatedLine===s.generatedLine){t.lastGeneratedColumn=s.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},bs.prototype.originalPositionFor=function(e){var t={generatedLine:ds.getArg(e,"line"),generatedColumn:ds.getArg(e,"column")},s=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",ds.compareByGeneratedPositionsDeflated,ds.getArg(e,"bias",vs.GREATEST_LOWER_BOUND));if(s>=0){var r=this._generatedMappings[s];if(r.generatedLine===t.generatedLine){var n=ds.getArg(r,"source",null);null!==n&&(n=this._sources.at(n),n=ds.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var o=ds.getArg(r,"name",null);return null!==o&&(o=this._names.at(o)),{source:n,line:ds.getArg(r,"originalLine",null),column:ds.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},bs.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},bs.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var s=this._findSourceIndex(e);if(s>=0)return this.sourcesContent[s];var r,n=e;if(null!=this.sourceRoot&&(n=ds.relative(this.sourceRoot,n)),null!=this.sourceRoot&&(r=ds.urlParse(this.sourceRoot))){var o=n.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!r.path||"/"==r.path)&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(t)return null;throw new Error('"'+n+'" is not in the SourceMap.')},bs.prototype.generatedPositionFor=function(e){var t=ds.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var s={source:t,originalLine:ds.getArg(e,"line"),originalColumn:ds.getArg(e,"column")},r=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",ds.compareByOriginalPositions,ds.getArg(e,"bias",vs.GREATEST_LOWER_BOUND));if(r>=0){var n=this._originalMappings[r];if(n.source===s.source)return{line:ds.getArg(n,"generatedLine",null),column:ds.getArg(n,"generatedColumn",null),lastColumn:ds.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},us.BasicSourceMapConsumer=bs,Os.prototype=Object.create(vs.prototype),Os.prototype.constructor=vs,Os.prototype._version=3,Object.defineProperty(Os.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var s=0;s<this._sections[t].consumer.sources.length;s++)e.push(this._sections[t].consumer.sources[s]);return e}}),Os.prototype.originalPositionFor=function(e){var t={generatedLine:ds.getArg(e,"line"),generatedColumn:ds.getArg(e,"column")},s=ms.search(t,this._sections,(function(e,t){var s=e.generatedLine-t.generatedOffset.generatedLine;return s||e.generatedColumn-t.generatedOffset.generatedColumn})),r=this._sections[s];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Os.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},Os.prototype.sourceContentFor=function(e,t){for(var s=0;s<this._sections.length;s++){var r=this._sections[s].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Os.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var s=this._sections[t];if(-1!==s.consumer._findSourceIndex(ds.getArg(e,"source"))){var r=s.consumer.generatedPositionFor(e);if(r)return{line:r.line+(s.generatedOffset.generatedLine-1),column:r.column+(s.generatedOffset.generatedLine===r.line?s.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Os.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var s=0;s<this._sections.length;s++)for(var r=this._sections[s],n=r.consumer._generatedMappings,o=0;o<n.length;o++){var i=n[o],a=r.consumer._sources.at(i.source);a=ds.computeSourceURL(r.consumer.sourceRoot,a,this._sourceMapURL),this._sources.add(a),a=this._sources.indexOf(a);var l=null;i.name&&(l=r.consumer._names.at(i.name),this._names.add(l),l=this._names.indexOf(l));var u={source:a,generatedLine:i.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:i.generatedColumn+(r.generatedOffset.generatedLine===i.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:i.originalLine,originalColumn:i.originalColumn,name:l};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}ws(this.__generatedMappings,ds.compareByGeneratedPositionsDeflated),ws(this.__originalMappings,ds.compareByOriginalPositions)},us.IndexedSourceMapConsumer=Os;var _s={},ks=zt.SourceMapGenerator,Ps=Ht,As=/(\r?\n)/,Ms="$$$isSourceNode$$$";function Ls(e,t,s,r,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==s?null:s,this.name=null==n?null:n,this[Ms]=!0,null!=r&&this.add(r)}Ls.fromStringWithSourceMap=function(e,t,s){var r=new Ls,n=e.split(As),o=0,i=function(){return e()+(e()||"");function e(){return o<n.length?n[o++]:void 0}},a=1,l=0,u=null;return t.eachMapping((function(e){if(null!==u){if(!(a<e.generatedLine)){var t=(s=n[o]||"").substr(0,e.generatedColumn-l);return n[o]=s.substr(e.generatedColumn-l),l=e.generatedColumn,c(u,t),void(u=e)}c(u,i()),a++,l=0}for(;a<e.generatedLine;)r.add(i()),a++;if(l<e.generatedColumn){var s=n[o]||"";r.add(s.substr(0,e.generatedColumn)),n[o]=s.substr(e.generatedColumn),l=e.generatedColumn}u=e}),this),o<n.length&&(u&&c(u,i()),r.add(n.splice(o).join(""))),t.sources.forEach((function(e){var n=t.sourceContentFor(e);null!=n&&(null!=s&&(e=Ps.join(s,e)),r.setSourceContent(e,n))})),r;function c(e,t){if(null===e||void 0===e.source)r.add(t);else{var n=s?Ps.join(s,e.source):e.source;r.add(new Ls(e.originalLine,e.originalColumn,n,t,e.name))}}},Ls.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[Ms]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},Ls.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[Ms]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},Ls.prototype.walk=function(e){for(var t,s=0,r=this.children.length;s<r;s++)(t=this.children[s])[Ms]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},Ls.prototype.join=function(e){var t,s,r=this.children.length;if(r>0){for(t=[],s=0;s<r-1;s++)t.push(this.children[s]),t.push(e);t.push(this.children[s]),this.children=t}return this},Ls.prototype.replaceRight=function(e,t){var s=this.children[this.children.length-1];return s[Ms]?s.replaceRight(e,t):"string"==typeof s?this.children[this.children.length-1]=s.replace(e,t):this.children.push("".replace(e,t)),this},Ls.prototype.setSourceContent=function(e,t){this.sourceContents[Ps.toSetString(e)]=t},Ls.prototype.walkSourceContents=function(e){for(var t=0,s=this.children.length;t<s;t++)this.children[t][Ms]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,s=r.length;t<s;t++)e(Ps.fromSetString(r[t]),this.sourceContents[r[t]])},Ls.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},Ls.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},s=new ks(e),r=!1,n=null,o=null,i=null,a=null;return this.walk((function(e,l){t.code+=e,null!==l.source&&null!==l.line&&null!==l.column?(n===l.source&&o===l.line&&i===l.column&&a===l.name||s.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name}),n=l.source,o=l.line,i=l.column,a=l.name,r=!0):r&&(s.addMapping({generated:{line:t.line,column:t.column}}),n=null,r=!1);for(var u=0,c=e.length;u<c;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===c?(n=null,r=!1):r&&s.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name})):t.column++})),this.walkSourceContents((function(e,t){s.setSourceContent(e,t)})),{code:t.code,map:s}},_s.SourceNode=Ls,Gt.SourceMapGenerator=zt.SourceMapGenerator,Gt.SourceMapConsumer=us.SourceMapConsumer,Gt.SourceNode=_s.SourceNode;var Es={nanoid:(e=21)=>{let t="",s=e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t)=>()=>{let s="",r=t;for(;r--;)s+=e[Math.random()*e.length|0];return s}};let{SourceMapConsumer:Rs,SourceMapGenerator:$s}=Gt,{existsSync:js,readFileSync:Is}=K.default,{dirname:Fs,join:Ns}=H.default;class Bs{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Fs(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Rs(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}loadFile(e){if(this.root=Fs(e),js(e))return this.mapFile=e,Is(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Rs)return $s.fromSourceMap(t).toString();if(t instanceof $s)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let s=t(e);if(s){let e=this.loadFile(s);if(!e)throw new Error("Unable to load previous source map: "+s.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=Ns(Fs(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}var Us=Bs;Bs.default=Bs;let{SourceMapConsumer:Ds,SourceMapGenerator:Ts}=Gt,{fileURLToPath:qs,pathToFileURL:Gs}=Q.default,{resolve:zs,isAbsolute:Ws}=H.default,{nanoid:Vs}=Es,Js=bt,Ys=Ot,Hs=Us,Qs=Symbol("fromOffsetCache"),Ks=Boolean(Ds&&Ts),Zs=Boolean(zs&&Ws);class Xs{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Zs||/^\w+:\/\//.test(t.from)||Ws(t.from)?this.file=t.from:this.file=zs(t.from)),Zs&&Ks){let e=new Hs(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+Vs(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,s;if(this[Qs])s=this[Qs];else{let e=this.css.split("\n");s=new Array(e.length);let t=0;for(let r=0,n=e.length;r<n;r++)s[r]=t,t+=e[r].length+1;this[Qs]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let t,n=s.length-2;for(;r<n;)if(t=r+(n-r>>1),e<s[t])n=t-1;else{if(!(e>=s[t+1])){r=t;break}r=t+1}}return{line:r+1,col:e-s[r]+1}}error(e,t,s,r={}){let n,o,i;if(t&&"object"==typeof t){let e=t,r=s;if("number"==typeof t.offset){let r=this.fromOffset(e.offset);t=r.line,s=r.col}else t=e.line,s=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,i=e.col}else o=r.line,i=r.column}else if(!s){let e=this.fromOffset(t);t=e.line,s=e.col}let a=this.origin(t,s,o,i);return n=a?new Ys(e,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,r.plugin):new Ys(e,void 0===o?t:{line:t,column:s},void 0===o?s:{line:o,column:i},this.css,this.file,r.plugin),n.input={line:t,column:s,endLine:o,endColumn:i,source:this.css},this.file&&(Gs&&(n.input.url=Gs(this.file).toString()),n.input.file=this.file),n}origin(e,t,s,r){if(!this.map)return!1;let n,o,i=this.map.consumer(),a=i.originalPositionFor({line:e,column:t});if(!a.source)return!1;"number"==typeof s&&(n=i.originalPositionFor({line:s,column:r})),o=Ws(a.source)?Gs(a.source):new URL(a.source,this.map.consumer().sourceRoot||Gs(this.map.mapFile));let l={url:o.toString(),line:a.line,column:a.column,endLine:n&&n.line,endColumn:n&&n.column};if("file:"===o.protocol){if(!qs)throw new Error("file: protocol is not available in this PostCSS build");l.file=qs(o)}let u=i.sourceContentFor(a.source);return u&&(l.source=u),l}mapResolve(e){return/^\w+:\/\//.test(e)?e:zs(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}var er=Xs;Xs.default=Xs,Js&&Js.registerInput&&Js.registerInput(Xs);let{SourceMapConsumer:tr,SourceMapGenerator:sr}=Gt,{dirname:rr,resolve:nr,relative:or,sep:ir}=H.default,{pathToFileURL:ar}=Q.default,lr=er,ur=Boolean(tr&&sr),cr=Boolean(rr&&nr&&or&&ir);var pr=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}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 lr(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let s=t.source.input.from;s&&!e[s]&&(e[s]=!0,this.map.setSourceContent(this.toUrl(this.path(s)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,s=this.toUrl(this.path(e.file)),r=e.root||rr(e.file);!1===this.mapOpts.sourcesContent?(t=new tr(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,s,this.toUrl(this.path(r)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=sr.fromSourceMap(e)}else this.map=new sr({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});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]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?rr(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=rr(nr(t,this.mapOpts.annotation))),e=or(t,e)}toUrl(e){return"\\"===ir&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(ar)return ar(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new sr({file:this.outputFile()});let e,t,s=1,r=1,n="<no source>",o={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(o.generated.line=s,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=i.match(/\n/g),e?(s+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=s,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=s,o.generated.column=r-1,this.map.addMapping(o)))}}))}generate(){if(this.clearAnnotation(),cr&&ur&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}};let hr=Ut;class fr extends hr{constructor(e){super(e),this.type="comment"}}var dr=fr;fr.default=fr;let mr,gr,yr,{isClean:wr,my:vr}=_t,br=qt,Sr=dr,Cr=Ut;function xr(e){return e.map((e=>(e.nodes&&(e.nodes=xr(e.nodes)),delete e.source,e)))}function Or(e){if(e[wr]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Or(t)}class _r extends Cr{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,s,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],s=e(this.proxyOf.nodes[t],t),!1!==s);)this.indexes[r]+=1;return delete this.indexes[r],s}walk(e){return this.each(((t,s)=>{let r;try{r=e(t,s)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("decl"===s.type&&e.test(s.prop))return t(s,r)})):this.walk(((s,r)=>{if("decl"===s.type&&s.prop===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("decl"===e.type)return t(e,s)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("rule"===s.type&&e.test(s.selector))return t(s,r)})):this.walk(((s,r)=>{if("rule"===s.type&&s.selector===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("rule"===e.type)return t(e,s)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((s,r)=>{if("atrule"===s.type&&e.test(s.name))return t(s,r)})):this.walk(((s,r)=>{if("atrule"===s.type&&s.name===e)return t(s,r)})):(t=e,this.walk(((e,s)=>{if("atrule"===e.type)return t(e,s)})))}walkComments(e){return this.walk(((t,s)=>{if("comment"===t.type)return e(t,s)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let s,r=0===(e=this.index(e))&&"prepend",n=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of n)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)s=this.indexes[t],e<=s&&(this.indexes[t]=s+n.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let s,r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)s=this.indexes[t],e<s&&(this.indexes[t]=s+r.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,s){return s||(s=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,s))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}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]}normalize(e,t){if("string"==typeof e)e=xr(mr(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new br(e)]}else if(e.selector)e=[new gr(e)];else if(e.name)e=[new yr(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Sr(e)]}let s=e.map((e=>(e[vr]||_r.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[wr]&&Or(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e)));return s}getProxyProcessor(){return{set:(e,t,s)=>(e[t]===s||(e[t]=s,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...s)=>e[t](...s.map((e=>"function"==typeof e?(t,s)=>e(t.toProxy(),s):e))):"every"===t||"some"===t?s=>e[t](((e,...t)=>s(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}_r.registerParse=e=>{mr=e},_r.registerRule=e=>{gr=e},_r.registerAtRule=e=>{yr=e};var kr=_r;_r.default=_r,_r.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,yr.prototype):"rule"===e.type?Object.setPrototypeOf(e,gr.prototype):"decl"===e.type?Object.setPrototypeOf(e,br.prototype):"comment"===e.type&&Object.setPrototypeOf(e,Sr.prototype),e[vr]=!0,e.nodes&&e.nodes.forEach((e=>{_r.rebuild(e)}))};let Pr,Ar,Mr=kr;class Lr extends Mr{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Pr(new Ar,this,e).stringify()}}Lr.registerLazyResult=e=>{Pr=e},Lr.registerProcessor=e=>{Ar=e};var Er=Lr;Lr.default=Lr;let Rr={};var $r=function(e){Rr[e]||(Rr[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};class jr{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Ir=jr;jr.default=jr;let Fr=Ir;class Nr{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,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 s=new Fr(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}var Br=Nr;Nr.default=Nr;let Ur=kr;class Dr extends Ur{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 Tr=Dr;Dr.default=Dr,Ur.registerAtRule(Dr);let qr,Gr,zr=kr;class Wr extends zr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let s=this.index(e);return!t&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}normalize(e,t,s){let r=super.normalize(e);if(t)if("prepend"===s)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new qr(new Gr,this,e).stringify()}}Wr.registerLazyResult=e=>{qr=e},Wr.registerProcessor=e=>{Gr=e};var Vr=Wr;Wr.default=Wr;let Jr={split(e,t,s){let r=[],n="",o=!1,i=0,a=!1,l=!1;for(let s of e)l?l=!1:"\\"===s?l=!0:a?s===a&&(a=!1):'"'===s||"'"===s?a=s:"("===s?i+=1:")"===s?i>0&&(i-=1):0===i&&t.includes(s)&&(o=!0),o?(""!==n&&r.push(n.trim()),n="",o=!1):n+=s;return(s||""!==n)&&r.push(n.trim()),r},space:e=>Jr.split(e,[" ","\n","\t"]),comma:e=>Jr.split(e,[","],!0)};var Yr=Jr;Jr.default=Jr;let Hr=kr,Qr=Yr;class Kr extends Hr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Qr.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}var Zr=Kr;Kr.default=Kr,Hr.registerRule(Kr);let Xr=qt,en=ft,tn=dr,sn=Tr,rn=Vr,nn=Zr;var on=class{constructor(e){this.input=e,this.root=new rn,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=en(this.input)}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)}this.endFile()}comment(e){let t=new tn;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new nn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,s=null,r=!1,n=null,o=[],i=e[1].startsWith("--"),a=[],l=e;for(;l;){if(s=l[0],a.push(l),"("===s||"["===s)n||(n=l),o.push("("===s?")":"]");else if(i&&r&&"{"===s)n||(n=l),o.push("}");else if(0===o.length){if(";"===s){if(r)return void this.decl(a,i);break}if("{"===s)return void this.rule(a);if("}"===s){this.tokenizer.back(a.pop()),t=!0;break}":"===s&&(r=!0)}else s===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){if(!i)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}rule(e){e.pop();let t=new nn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let s=new Xr;this.init(s,e[0][2]);let r,n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(n[3]||n[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;s.prop+=e.shift()[1]}for(s.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){s.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),s.raws.between+=r[1]}"_"!==s.prop[0]&&"*"!==s.prop[0]||(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let o,i=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)i.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){s.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(s.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),n="";for(let e=t;e>0;e--){let t=r[e][0];if(0===n.trim().indexOf("!")&&"space"!==t)break;n=r.pop()[1]+n}0===n.trim().indexOf("!")&&(s.important=!0,s.raws.important=n,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}let a=e.some((e=>"space"!==e[0]&&"comment"!==e[0]));a&&(s.raws.between+=i.map((e=>e[1])).join(""),i=[]),this.raw(s,"value",i.concat(e),t),s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,s,r,n=new sn;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,i=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){i=!0;break}if("}"===t){if(a.length>0){for(r=a.length-1,s=a[r];s&&"space"===s[0];)s=a[--r];s&&(n.source.end=this.getPosition(s[3]||s[2]))}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),o&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),i&&(n.nodes=[],this.current=n)}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=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}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,s,r){let n,o,i,a,l=s.length,u="",c=!0;for(let e=0;e<l;e+=1)n=s[e],o=n[0],"space"!==o||e!==l-1||r?"comment"===o?(a=s[e-1],i=s[e+1],a&&i&&"space"!==a[0]&&"space"!==i[0]?u+=n[1]:c=!1):u+=n[1]:c=!1;if(!c){let r=s.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:r}}e[t]=u}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}colon(e){let t,s,r,n=0;for(let[o,i]of e.entries()){if(t=i,s=t[0],"("===s&&(n+=1),")"===s&&(n-=1),0===n&&":"===s){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{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})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let n=t-1;n>=0&&(s=e[n],"space"===s[0]||(r+=1,2!==r));n--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}};let an=kr,ln=on,un=er;function cn(e,t){let s=new un(e,t),r=new ln(s);try{r.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return r.root}var pn=cn;cn.default=cn,an.registerParse(cn);let{isClean:hn,my:fn}=_t,dn=pr,mn=Et,gn=kr,yn=Er,wn=$r,vn=Br,bn=pn,Sn=Vr;const Cn={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},xn={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},On={postcssPlugin:!0,prepare:!0,Once:!0};function _n(e){return"object"==typeof e&&"function"==typeof e.then}function kn(e){let t=!1,s=Cn[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[s,s+"-"+t,0,s+"Exit",s+"Exit-"+t]:t?[s,s+"-"+t,s+"Exit",s+"Exit-"+t]:e.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function Pn(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:kn(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function An(e){return e[hn]=!1,e.nodes&&e.nodes.forEach((e=>An(e))),e}let Mn={};class Ln{constructor(e,t,s){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof Ln||t instanceof vn)r=An(t.root),t.map&&(void 0===s.map&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let e=bn;s.syntax&&(e=s.syntax.parse),s.parser&&(e=s.parser),e.parse&&(e=e.parse);try{r=e(t,s)}catch(e){this.processed=!0,this.error=e}r&&!r[fn]&&gn.rebuild(r)}else r=An(t);this.result=new vn(e,r,s),this.helpers={...Mn,result:this.result,postcss:Mn},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||wn("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)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}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){if(_n(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[hn];)e[hn]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=mn;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new dn(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}walkSync(e){e[hn]=!0;let t=kn(e);for(let s of t)if(0===s)e.nodes&&e.each((e=>{e[hn]||this.walkSync(e)}));else{let t=this.listeners[s];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[s,r]of e){let e;this.result.lastPlugin=s;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(_n(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return _n(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(s.postcssVersion&&"production"!==process.env.NODE_ENV){let e=s.postcssPlugin,t=s.postcssVersion,r=this.result.processor.version,n=t.split("."),o=r.split(".");(n[0]!==o[0]||parseInt(n[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=s.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(_n(s))try{await s}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[hn];){e[hn]=!0;let t=[Pn(e)];for(;t.length>0;){let e=this.visitTick(t);if(_n(e))try{await e}catch(e){let s=t[t.length-1].node;throw this.handleError(e,s)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>s(e,this.helpers)));await Promise.all(t)}else await s(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,s)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,s])};for(let t of this.plugins)if("object"==typeof t)for(let s in t){if(!xn[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!On[s])if("object"==typeof t[s])for(let r in t[s])e(t,"*"===r?s:s+"-"+r.toLowerCase(),t[s][r]);else"function"==typeof t[s]&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,n]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(s.toProxy(),this.helpers)}catch(e){throw this.handleError(e,s)}}if(0!==t.iterator){let r,n=t.iterator;for(;r=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!r[hn])return r[hn]=!0,void e.push(Pn(r));t.iterator=0,delete s.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e)return void(s.nodes&&s.nodes.length&&(s[hn]=!0,t.iterator=s.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}Ln.registerPostcss=e=>{Mn=e};var En=Ln;Ln.default=Ln,Sn.registerLazyResult(Ln),yn.registerLazyResult(Ln);let Rn=pr,$n=Et,jn=$r,In=pn;const Fn=Br;class Nn{constructor(e,t,s){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let n=$n;this.result=new Fn(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let i=new Rn(n,r,this._opts,t);if(i.isMap()){let[e,t]=i.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=In;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||jn("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)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var Bn=Nn;Nn.default=Nn;let Un=Bn,Dn=En,Tn=Er,qn=Vr;class Gn{constructor(e=[]){this.version="8.4.6",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new Un(this,e,t):new Dn(this,e,t)}normalize(e){let t=[];for(let s of e)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)t.push(s);else if("function"==typeof s)t.push(s);else{if("object"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)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.")}return t}}var zn=Gn;Gn.default=Gn,qn.registerProcessor(Gn),Tn.registerProcessor(Gn);let Wn=qt,Vn=Us,Jn=dr,Yn=Tr,Hn=er,Qn=Vr,Kn=Zr;function Zn(e,t){if(Array.isArray(e))return e.map((e=>Zn(e)));let{inputs:s,...r}=e;if(s){t=[];for(let e of s){let s={...e,__proto__:Hn.prototype};s.map&&(s.map={...s.map,__proto__:Vn.prototype}),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>Zn(e,t)))),r.source){let{inputId:e,...s}=r.source;r.source=s,null!=e&&(r.source.input=t[e])}if("root"===r.type)return new Qn(r);if("decl"===r.type)return new Wn(r);if("rule"===r.type)return new Kn(r);if("comment"===r.type)return new Jn(r);if("atrule"===r.type)return new Yn(r);throw new Error("Unknown node type: "+e.type)}var Xn=Zn;Zn.default=Zn;let eo=Ot,to=qt,so=En,ro=kr,no=zn,oo=Et,io=Xn,ao=Er,lo=Ir,uo=dr,co=Tr,po=Br,ho=er,fo=pn,mo=Yr,go=Zr,yo=Vr,wo=Ut;function vo(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new no(e)}vo.plugin=function(e,t){function s(...s){let r=t(...s);return r.postcssPlugin=e,r.postcssVersion=(new no).version,r}let r;return console&&console.warn&&(console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(s,"postcss",{get:()=>(r||(r=s()),r)}),s.process=function(e,t,r){return vo([s(r)]).process(e,t)},s},vo.stringify=oo,vo.parse=fo,vo.fromJSON=io,vo.list=mo,vo.comment=e=>new uo(e),vo.atRule=e=>new co(e),vo.decl=e=>new to(e),vo.rule=e=>new go(e),vo.root=e=>new yo(e),vo.document=e=>new ao(e),vo.CssSyntaxError=eo,vo.Declaration=to,vo.Container=ro,vo.Processor=no,vo.Document=ao,vo.Comment=uo,vo.Warning=lo,vo.AtRule=co,vo.Result=po,vo.Input=ho,vo.Rule=go,vo.Root=yo,vo.Node=wo,so.registerPostcss(vo);var bo=vo;async function So(){return new Promise((e=>{let t="",s=!1;if(setTimeout((()=>{s=!0,e("")}),1e4),process.stdin.isTTY){if(s)return;e(t)}else process.stdin.setEncoding("utf8"),process.stdin.on("readable",(()=>{let e;for(;e=process.stdin.read();)t+=e})),process.stdin.on("end",(()=>{s||e(t)}))}))}function Co(e,t,s,r=null){let n=[];if(r){const e=Math.max(...Object.keys(r).map((e=>e.length))),t=new Array(e).fill(" ").join("");t.length&&(n=["\nPlugin Options:",...Object.keys(r).map((e=>` ${(e+t).slice(0,t.length)} ${typeof r[e]}`))],n.push(`\n ${JSON.stringify(r,null,2).split("\n").join("\n ")}`))}const o=[`${t}\n`,` ${s}\n`,"Usage:",` ${e} [input.css] [OPTIONS] [-o|--output output.css]`,` ${e} <input.css>... [OPTIONS] --dir <output-directory>`,` ${e} <input.css>... [OPTIONS] --replace`,"\nOptions:"," -o, --output Output file"," -d, --dir Output directory"," -r, --replace Replace (overwrite) the input file"," -m, --map Create an external sourcemap"," --no-map Disable the default inline sourcemaps"," -p, --plugin-options Stringified JSON object with plugin options"];return n.length>0&&o.push(...n),()=>{console.warn(o.join("\n"))}}async function xo(e,t,s,r=!0){const o=function(e,t,s){const r=e.map((e=>e.trim())).filter((e=>!!e)),n={stdin:!1,stdout:!1,output:null,outputDir:null,inputs:[],inlineMap:!0,externalMap:!1,replace:!1,pluginOptions:{},debug:!1};let o=null,i=!1;for(let e=0;e<r.length;e++){const t=r[e];switch(t){case"-o":case"--output":n.output=r[e+1],e++,i=!0;break;case"-m":case"--map":n.externalMap=!0,n.inlineMap=!1,i=!0;break;case"--no-map":n.externalMap=!1,n.inlineMap=!1,i=!0;break;case"-r":case"--replace":n.replace=!0,i=!0;break;case"--debug":n.debug=!0,i=!0;break;case"-d":case"--dir":n.outputDir=r[e+1],e++,i=!0;break;case"-p":case"--plugin-options":o=r[e+1],e++,i=!0;break;default:if(0===t.indexOf("-"))return console.warn(`[error] unknown argument : ${t}\n`),s(),V.InvalidArguments;if(!i){n.inputs.push(t);break}return s(),V.InvalidArguments}}if(n.replace&&(n.output=null,n.outputDir=null),n.outputDir&&(n.output=null),n.inputs.length>1&&n.output)return console.warn('[error] omit "--output" when processing multiple inputs\n'),s(),V.InvalidArguments;0===n.inputs.length&&(n.stdin=!0),n.output||n.outputDir||n.replace||(n.stdout=!0),n.stdout&&(n.externalMap=!1);let a={};if(o)try{a=JSON.parse(o)}catch(e){return console.warn("[error] plugin options must be valid JSON\n"),s(),V.InvalidArguments}for(const e in a){const r=a[e];if(!t.includes(e))return console.warn(`[error] unknown plugin option: ${e}\n`),s(),V.InvalidArguments;n.pluginOptions[e]=r}return n}(process.argv.slice(r?2:3),t,s);o===V.InvalidArguments&&process.exit(1);const i=e(o.pluginOptions);o.stdin&&o.stdout?await async function(e,t,s){let r="";try{const n=await So();n||(s(),process.exit(1));const o=await bo([e]).process(n,{from:"stdin",to:"stdout",map:!!t.inlineMap&&{inline:!0}});o.warnings().forEach((e=>{console.warn(e.toString())})),r=o.css}catch(e){console.error(t.debug?e:e.message),process.exit(1)}process.stdout.write(r+(t.inlineMap?"\n":"")),process.exit(0)}(i,o,s):o.stdin?await async function(e,t,s){let r=t.output;!r&&t.outputDir&&(r=H.default.join(t.outputDir,"output.css"));try{const o=await So();o||(s(),process.exit(1));const i=await bo([e]).process(o,{from:"stdin",to:r,map:!(!t.inlineMap&&!t.externalMap)&&{inline:t.inlineMap}});i.warnings().forEach((e=>{console.warn(e.toString())})),t.externalMap&&i.map?await Promise.all([await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":"")),await n.promises.writeFile(`${r}.map`,i.map.toString())]):await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":""))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}console.log(`CSS was written to "${H.default.normalize(r)}"`),process.exit(0)}(i,o,s):o.stdout?await async function(e,t){let s=[];try{s=await Promise.all(t.inputs.map((async t=>{const s=await n.promises.readFile(t),r=await bo([e]).process(s,{from:t,to:"stdout",map:!1});return r.warnings().forEach((e=>{console.warn(e.toString())})),r.css})))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}for(const e of s)process.stdout.write(e);process.exit(0)}(i,o):await async function(e,t){try{await Promise.all(t.inputs.map((async s=>{let r=t.output;t.outputDir&&(r=H.default.join(t.outputDir,H.default.basename(s))),t.replace&&(r=s);const o=await n.promises.readFile(s),i=await bo([e]).process(o,{from:s,to:r,map:!(!t.inlineMap&&!t.externalMap)&&{inline:t.inlineMap}});i.warnings().forEach((e=>{console.warn(e.toString())})),t.externalMap&&i.map?await Promise.all([await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":"")),await n.promises.writeFile(`${r}.map`,i.map.toString())]):await n.promises.writeFile(r,i.css+(t.inlineMap?"\n":"")),console.log(`CSS was written to "${H.default.normalize(r)}"`)})))}catch(e){console.error(t.debug?e:e.message),process.exit(1)}process.exit(0)}(i,o)}vo.default=vo;var Oo={exports:{}},_o={exports:{}};const ko=new Set(["inherit","initial","revert","unset"]);_o.exports=({preserve:e=!1}={})=>({postcssPlugin:"postcss-opacity-percentage",Declaration:{opacity:t=>{t.value&&!t.value.startsWith("var(")&&t.value.endsWith("%")&&!ko.has(t.value)&&(t.cloneBefore({value:String(Number.parseFloat(t.value)/100)}),e||t.remove())}}}),_o.exports.postcss=!0;var Po={exports:{}};let Ao=je.default;function Mo(e){let t=e.match(/([\d.-]+)(.*)/);if(t&&t[1]&&t[2]&&!isNaN(t[1]))return[parseFloat(t[1]),t[2]]}function Lo(e,t,s){return e&&t&&s?`max(${e}, min(${t}, ${s}))`:e&&t?`max(${e}, ${t})`:e}function Eo(e,t,s){s?e.cloneBefore({value:t}):e.value=t}Po.exports=e=>{let t=!!(e=e||{}).precalculate&&Boolean(e.precalculate),s=!!e.preserve&&Boolean(e.preserve);return{postcssPlugin:"postcss-clamp",Declaration(e){e&&e.value.includes("clamp")&&Ao(e.value).walk((r=>{let n=r.nodes;if("function"!==r.type||"clamp"!==r.value||5!==n.length)return;let o=n[0],i=n[2],a=n[4],l=Lo(Ao.stringify(o),Ao.stringify(i),Ao.stringify(a));if(!t||"word"!==i.type||"word"!==a.type)return void Eo(e,l,s);let u=Mo(i.value),c=Mo(a.value);if(void 0===u||void 0===c)return void Eo(e,l,s);let[p,h]=u,[f,d]=c;if(h!==d)return void Eo(e,l,s);let m=Mo(o.value);if(void 0===m){let t=`${p+f}${h}`;return void Eo(e,Lo(Ao.stringify(o),t),s)}let[g,y]=m;if(y===h)Eo(e,Lo(`${g+p+f}${h}`),s);else{let t=`${p+f}${h}`;Eo(e,Lo(Ao.stringify(o),t),s)}}))}}},Po.exports.postcss=!0;var Ro=be.default,$o=Se.default,jo=Ce.default,Io=K.default,Fo=H.default,No=xe.default,Bo=Oe.default,Uo=J.default,Do=ee.default,To=te.default,qo=se.default,Go=_e.default,zo=re.default,Wo=ke.default,Vo=ne.default,Jo=oe.default,Yo=ie.default,Ho=ae.default,Qo=le.default,Ko=Pe.default,Zo=ce.default,Xo=Z.default,ei=he.default,ti=Ae.default,si=de.default,ri=me.default,ni=Me.default,oi=ge.default,ii=we.default,ai=Le.default,li=ve.default,ui=X.default,ci=Ee.default,pi=Re.default,hi=$e.default,fi=fe.default,di=pe.default,mi=_o.exports,gi=Po.exports,yi=ue.default,wi=ye.default,vi=Ie.default,bi=Fe.default,Si=Ne.default;function Ci(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var xi=Ci(Ro),Oi=Ci($o),_i=Ci(jo),ki=Ci(Io),Pi=Ci(Fo),Ai=Ci(No),Mi=Ci(Bo),Li=Ci(Uo),Ei=Ci(Do),Ri=Ci(To),$i=Ci(qo),ji=Ci(Go),Ii=Ci(zo),Fi=Ci(Wo),Ni=Ci(Vo),Bi=Ci(Jo),Ui=Ci(Yo),Di=Ci(Ho),Ti=Ci(Qo),qi=Ci(Ko),Gi=Ci(Zo),zi=Ci(Xo),Wi=Ci(ei),Vi=Ci(ti),Ji=Ci(si),Yi=Ci(ri),Hi=Ci(ni),Qi=Ci(oi),Ki=Ci(ii),Zi=Ci(ai),Xi=Ci(li),ea=Ci(ui),ta=Ci(ci),sa=Ci(pi),ra=Ci(hi),na=Ci(fi),oa=Ci(di),ia=Ci(mi),aa=Ci(gi),la=Ci(yi),ua=Ci(wi),ca=Ci(vi),pa=Ci(bi),ha=Ci(Si);const fa={"blank-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README-BROWSER.md","focus-visible-pseudo-class":"https://github.com/WICG/focus-visible","focus-within-pseudo-class":"https://github.com/jsxtools/focus-within/blob/master/README-BROWSER.md","has-pseudo-class":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo/README-BROWSER.md","prefers-color-scheme-query":"https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme/README-BROWSER.md"},da=["blank-pseudo-class","focus-visible-pseudo-class","focus-within-pseudo-class","has-pseudo-class","prefers-color-scheme-query"];function ma(e,t){return`\n\t${e}: {\n${Object.keys(t).reduce(((e,s)=>(e.push(`\t\t'${ba(s)}': '${ba(t[s])}'`),e)),[]).join(",\n")}\n\t}`}function ga(e,t){return`export const ${e} = {\n${Object.keys(t).reduce(((e,s)=>(e.push(`\t'${ba(s)}': '${ba(t[s])}'`),e)),[]).join(",\n")}\n};\n`}function ya(e,t){return Promise.all([].concat(t).map((async t=>{if(t instanceof Function)await t({customMedia:wa(e.customMedia),customProperties:wa(e.customProperties),customSelectors:wa(e.customSelectors)});else{const s=t===Object(t)?t:{to:String(t)},r=s.toJSON||wa;if("customMedia"in s||"customProperties"in s||"customSelectors"in s)s.customMedia=r(e.customMedia),s.customProperties=r(e.customProperties),s.customSelectors=r(e.customSelectors);else if("custom-media"in s||"custom-properties"in s||"custom-selectors"in s)s["custom-media"]=r(e.customMedia),s["custom-properties"]=r(e.customProperties),s["custom-selectors"]=r(e.customSelectors);else{const t=String(s.to||""),n=(s.type||Pi.default.extname(s.to).slice(1)).toLowerCase(),o=r(e.customMedia),i=r(e.customProperties),a=r(e.customSelectors);"css"===n&&await async function(e,t,s,r){const n=function(e){return`:root {\n${Object.keys(e).reduce(((t,s)=>(t.push(`\t${s}: ${e[s]};`),t)),[]).join("\n")}\n}\n`}(s),o=function(e){return`${Object.keys(e).reduce(((t,s)=>(t.push(`@custom-media ${s} ${e[s]};`),t)),[]).join("\n")}\n`}(t),i=function(e){return`${Object.keys(e).reduce(((t,s)=>(t.push(`@custom-selector ${s} ${e[s]};`),t)),[]).join("\n")}\n`}(r),a=`${o}\n${i}\n${n}`;await va(e,a)}(t,o,i,a),"js"===n&&await async function(e,t,s,r){const n=`module.exports = {${ma("customMedia",t)},${ma("customProperties",s)},${ma("customSelectors",r)}\n};\n`;await va(e,n)}(t,o,i,a),"json"===n&&await async function(e,t,s,r){const n=`${JSON.stringify({"custom-media":t,"custom-properties":s,"custom-selectors":r},null," ")}\n`;await va(e,n)}(t,o,i,a),"mjs"===n&&await async function(e,t,s,r){const n=`${ga("customMedia",t)}\n${ga("customProperties",s)}\n${ga("customSelectors",r)}`;await va(e,n)}(t,o,i,a)}}})))}function wa(e){return Object.keys(e).reduce(((t,s)=>(t[s]=String(e[s]),t)),{})}function va(e,t){return new Promise(((s,r)=>{ki.default.writeFile(e,t,(e=>{e?r(e):s()}))}))}function ba(e){return e.replace(/\\([\s\S])|(')/g,"\\$1$2").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function Sa(e,t){if(!e)return!1;if("string"==typeof e)return!0;if(Array.isArray(e)){for(let s=0;s<e.length;s++){if("string"==typeof e[s])return!0;if(e[s]&&t in Object(e[s]))return!0}return!1}return t in Object(e)}function Ca(e,t,s){return Math.max(e,Math.min(t,s))}const xa=Symbol("insertBefore"),Oa=Symbol("insertAfter"),_a=Symbol("insertOrder"),ka=Symbol("plugin");function Pa(e,t,s){if("insertBefore"!==s&&"insertAfter"!==s)return[];const r="insertBefore"===s?xa:Oa,n=[];for(const s in t){if(!Object.hasOwnProperty.call(t,s))continue;if(!e.find((e=>e.id===s)))continue;let o=t[s];Array.isArray(o)||(o=[o]);for(let e=0;e<o.length;e++)n.push({id:s,[ka]:o[e],[_a]:e,[r]:!0})}return n}var Aa=["custom-media-queries","custom-properties","environment-variables","image-set-function","media-query-ranges","prefers-color-scheme-query","nesting-rules","custom-selectors","any-link-pseudo-class","case-insensitive-attributes","focus-visible-pseudo-class","focus-within-pseudo-class","not-pseudo-class","logical-properties-and-values","dir-pseudo-class","all-property","color-functional-notation","double-position-gradients","hexadecimal-alpha-notation","hwb-function","lab-function","rebeccapurple-color","blank-pseudo-class","break-properties","font-variant-property","is-pseudo-class","has-pseudo-class","gap-properties","overflow-property","overflow-wrap-property","place-properties","system-ui-font-family"];function Ma(){return{postcssPlugin:"postcss-system-ui-font",Declaration(e){La.test(e.prop)&&(e.value.includes(Ra.join(", "))||(e.value=e.value.replace($a,ja)))}}}Ma.postcss=!0;const La=/(?:^(?:-|\\002d){2})|(?:^font(?:-family)?$)/i,Ea="[\\f\\n\\r\\x09\\x20]",Ra=["system-ui","-apple-system","Segoe UI","Roboto","Ubuntu","Cantarell","Noto Sans","sans-serif"],$a=new RegExp(`(^|,|${Ea}+)(?:system-ui${Ea}*)(?:,${Ea}*(?:${Ra.join("|")})${Ea}*)?(,|$)`,"i"),ja=`$1${Ra.join(", ")}$2`,Ia=new Map([["all-property",Vi.default],["any-link-pseudo-class",ta.default],["blank-pseudo-class",Li.default],["break-properties",Zi.default],["case-insensitive-attributes",Mi.default],["clamp",aa.default],["color-function",ca.default],["color-functional-notation",Ei.default],["custom-media-queries",ji.default],["custom-properties",Ii.default],["custom-selectors",Fi.default],["dir-pseudo-class",Ni.default],["display-two-values",ua.default],["double-position-gradients",Bi.default],["environment-variables",Ui.default],["focus-visible-pseudo-class",Di.default],["focus-within-pseudo-class",Ti.default],["font-format-keywords",la.default],["font-variant-property",qi.default],["gap-properties",Gi.default],["hwb-function",oa.default],["has-pseudo-class",zi.default],["hexadecimal-alpha-notation",Ri.default],["ic-unit",ha.default],["image-set-function",Wi.default],["is-pseudo-class",na.default],["lab-function",Ji.default],["logical-properties-and-values",Yi.default],["media-query-ranges",Hi.default],["nesting-rules",Qi.default],["not-pseudo-class",ra.default],["oklab-function",pa.default],["opacity-percentage",ia.default],["overflow-property",Ki.default],["overflow-wrap-property",sa.default],["place-properties",Xi.default],["prefers-color-scheme-query",ea.default],["rebeccapurple-color",$i.default],["system-ui-font-family",Ma]]);const Fa=["ie","edge","firefox","chrome","safari","opera","ios_saf","android","op_mob","and_chr","and_ff","and_uc","samsung","and_qq","baidu","kaios"];function Na(e){if(!e)return[];if(!("browser_support"in e))return["> 0%"];const t=[];return Fa.forEach((s=>{const r=e.browser_support[s];"string"==typeof r&&/^[0-9|.]+$/.test(r)?t.push(`${s} < ${e.browser_support[s]}`):t.push(`${s} >= 1`)})),t}function Ba(e,t,s,r){const n=Object(t.features),o=!("enableClientSidePolyfills"in t)||t.enableClientSidePolyfills,i=Object(t.insertBefore),a=Object(t.insertAfter),l=t.browsers,u=Ca(0,function(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t}(t.minimumVendorImplementations),3);u>0&&r.log(`Using features with ${u} or more vendor implementations`);const c=function(e,t){let s=2;if(void 0===e.stage)return t.log(`Using features from Stage ${s} (default)`),s;if(!1===e.stage)s=5;else{let t=parseInt(e.stage,10);Number.isNaN(t)&&(t=0),s=Ca(0,t,5)}return 5===s?t.log('Stage has been disabled, features will be handled via the "features" option.'):t.log(`Using features from Stage ${s}`),s}(t,r);2===c&&s&&!1===s.preserve&&(e=JSON.parse(JSON.stringify(e))).forEach((e=>{("blank-pseudo-class"===e.id||"prefers-color-scheme-query"===e.id)&&(e.stage=1)}));const p=function(e,t,s){return e.concat(Pa(e,t,"insertBefore"),Pa(e,s,"insertAfter")).filter((e=>function(e){return!!e[xa]||!!e[Oa]||!!Ia.has(e.id)}(e))).sort(((e,t)=>function(e,t){return e.id===t.id?e[xa]&&t[xa]||e[Oa]&&t[Oa]?Ca(-1,e[_a]-t[_a],1):e[xa]||t[Oa]?-1:e[Oa]||t[xa]?1:0:Ca(-1,Aa.indexOf(e.id)-Aa.indexOf(t.id),1)}(e,t)))}(e,i,a).map((e=>function(e){const t=Na(e);if(e[xa]||e[Oa]){let s=e.id;return s=e.insertBefore?`before-${s}`:`after-${s}`,{browsers:t,vendors_implementations:e.vendors_implementations,plugin:e[ka],id:s,stage:6}}return{browsers:t,vendors_implementations:e.vendors_implementations,plugin:Ia.get(e.id),id:e.id,stage:e.stage}}(e))).filter((e=>0===u||!(!e[xa]&&!e[Oa])||u<=e.vendors_implementations||(r.log(` ${e.id} with ${e.vendors_implementations} vendor implementations has been disabled`),!1))).filter((e=>{const t=e.stage>=c,s=o||!da.includes(e.id),i=!1===n[e.id],a=n[e.id]?n[e.id]:t&&s;return i?r.log(` ${e.id} has been disabled by options`):t?s||r.log(` ${e.id} has been disabled by "enableClientSidePolyfills: false".`):a?r.log(` ${e.id} has been enabled by options`):r.log(` ${e.id} with stage ${e.stage} has been disabled`),a})).map((t=>function(e,t,s,r,n,o){let i,a;return i=function(e,t,s,r){const n=Ai.default(e,{ignoreUnknownVersions:!0});switch(t.id){case"is-pseudo-class":return{onComplexSelector:"warning"};case"nesting-rules":return function(e,t){const s=Na(e);return!!t.some((e=>Ai.default(s,{ignoreUnknownVersions:!0}).some((t=>t===e))))}(s.find((e=>"is-pseudo-class"===e.id)),n)?(r.log('Disabling :is on "nesting-rules" due to lack of browser support.'),{noIsPseudoSelector:!0}):{};case"any-link-pseudo-class":return n.find((e=>e.startsWith("ie ")||e.startsWith("edge ")))?(r.log('Adding area[href] fallbacks for ":any-link" support in Edge and IE.'),{subFeatures:{areaHrefNeedsFixing:!0}}):{};default:return{}}}(t,r,e,o),!0===s[r.id]?n&&(i=Object.assign({},i,n)):i=n?Object.assign({},i,n,s[r.id]):Object.assign({},i,s[r.id]),i.enableProgressiveCustomProperties=!1,a=r.plugin.postcss&&"function"==typeof r.plugin?r.plugin(i):r.plugin&&r.plugin.default&&"function"==typeof r.plugin.default&&r.plugin.default.postcss?r.plugin.default(i):r.plugin,{browsers:r.browsers,vendors_implementations:r.vendors_implementations,plugin:a,pluginOptions:i,id:r.id}}(e,l,n,t,s,r))),h=Ai.default(l,{ignoreUnknownVersions:!0});return p.filter((e=>{if(e.id in n)return n[e.id];if(function(e){if("importFrom"in Object(e.pluginOptions))switch(e.id){case"custom-media-queries":if(Sa(e.pluginOptions.importFrom,"customMedia"))return!0;break;case"custom-properties":if(Sa(e.pluginOptions.importFrom,"customProperties"))return!0;break;case"environment-variables":if(Sa(e.pluginOptions.importFrom,"environmentVariables"))return!0;break;case"custom-selectors":if(Sa(e.pluginOptions.importFrom,"customSelectors"))return!0}if("exportTo"in Object(e.pluginOptions))switch(e.id){case"custom-media-queries":if(Sa(e.pluginOptions.exportTo,"customMedia"))return!0;break;case"custom-properties":if(Sa(e.pluginOptions.exportTo,"customProperties"))return!0;break;case"environment-variables":if(Sa(e.pluginOptions.exportTo,"environmentVariables"))return!0;break;case"custom-selectors":if(Sa(e.pluginOptions.exportTo,"customSelectors"))return!0}return!1}(e))return!0;const t=Ai.default(e.browsers,{ignoreUnknownVersions:!0}),s=h.some((e=>t.some((t=>t===e))));return s||r.log(`${e.id} disabled due to browser support`),s}))}class Ua{constructor(){this.logs=[]}log(e){this.logs.push(e)}resetLogger(){this.logs.length=0}dumpLogs(e){e&&this.logs.forEach((t=>e.warn(t))),this.resetLogger()}}const Da={"css-blank-pseudo":"blank-pseudo-class","css-has-pseudo":"has-pseudo-class","css-prefers-color-scheme":"prefers-color-scheme-query","postcss-attribute-case-insensitive":"case-insensitive-attributes","postcss-clamp":"clamp","postcss-color-function":"color-function","postcss-color-functional-notation":"color-functional-notation","postcss-color-hex-alpha":"hexadecimal-alpha-notation","postcss-color-rebeccapurple":"rebeccapurple-color","postcss-custom-media":"custom-media-queries","postcss-custom-properties":"custom-properties","postcss-custom-selectors":"custom-selectors","postcss-dir-pseudo-class":"dir-pseudo-class","postcss-double-position-gradients":"double-position-gradients","postcss-env-function":"environment-variables","postcss-focus-visible":"focus-visible-pseudo-class","postcss-focus-within":"focus-within-pseudo-class","postcss-font-format-keywords":"font-format-keywords","postcss-font-variant":"font-variant-property","postcss-gap-properties":"gap-properties","postcss-hwb-function":"hwb-function","postcss-ic-unit":"ic-unit","postcss-image-set-function":"image-set-function","postcss-initial":"all-property","postcss-is-pseudo-class":"is-pseudo-class","postcss-lab-function":"lab-function","postcss-logical":"logical-properties-and-values","postcss-media-minmax":"media-query-ranges","postcss-nesting":"nesting-rules","postcss-normalize-display-values":"display-two-values","postcss-oklab-function":"oklab-function","postcss-opacity-percentage":"opacity-percentage","postcss-overflow-shorthand":"overflow-property","postcss-page-break":"break-properties","postcss-place":"place-properties","postcss-pseudo-class-any-link":"any-link-pseudo-class","postcss-replace-overflow-wrap":"overflow-wrap-property","postcss-selector-not":"not-pseudo-class","postcss-system-ui-font-family":"system-ui-font-family"},Ta=(()=>{const e={};for(const[t,s]of Object.entries(Da))e[s]=t;return e})();function qa(e,t){let s="unknown",r=1/0;for(let n=0;n<t.length;n++){const o=Ga(e,t[n]);o<r&&(r=o,s=t[n])}return{mostSimilar:s,distance:r}}function Ga(e,t){if(!e.length)return t.length;if(!t.length)return e.length;const s=[];for(let r=0;r<=t.length;r++){s[r]=[r];for(let n=1;n<=e.length;n++)s[r][n]=0===r?n:Math.min(s[r-1][n]+1,s[r][n-1]+1,s[r-1][n-1]+(e[n-1]===t[r-1]?0:1))}return s[t.length][e.length]}const za=e=>{const t=new Ua,s=Object(e),r=Object.keys(Object(s.features)),n=s.browsers,o=function(e){if("importFrom"in e||"exportTo"in e||"preserve"in e){const t={};return"importFrom"in e&&(t.importFrom=e.importFrom),"exportTo"in e&&(t.exportTo={customMedia:{},customProperties:{},customSelectors:{}}),"preserve"in e&&(t.preserve=e.preserve),t}return!1}(s),i=Ba(Oi.default,s,o,t),a=i.map((e=>e.plugin));!1!==s.autoprefixer&&a.push(xi.default(Object.assign({overrideBrowserslist:n},s.autoprefixer))),a.push(_i.default()),function(e,t,s){if(t.debug){s.log("Enabling the following feature(s):");const t=[];e.forEach((e=>{e.id.startsWith("before")||e.id.startsWith("after")?s.log(` ${e.id} (injected via options)`):s.log(` ${e.id}`),void 0!==fa[e.id]&&t.push(e.id)})),t.length&&(s.log("These feature(s) need a browser library to work:"),t.forEach((e=>s.log(` ${e}: ${fa[e]}`))))}}(i,s,t);const l=()=>({postcssPlugin:"postcss-preset-env",OnceExit:function(n,{result:i}){!function(e,t,s){const r=Object.keys(Ta),n=Object.keys(Da);e.forEach((e=>{if(r.includes(e))return;const o=qa(e,r),i=qa(e,n);o.distance<i.distance?t.warn(s,`Unknown feature: "${e}" did you mean: "${o.mostSimilar}"`):t.warn(s,`Unknown feature: "${e}" did you mean: "${Da[i.mostSimilar]}"`)}))}(r,n,i),s.debug&&t.dumpLogs(i),t.resetLogger(),s.exportTo&&ya(o.exportTo,e.exportTo)}});return l.postcss=!0,{postcssPlugin:"postcss-preset-env",plugins:[...a,l()]}};za.postcss=!0,Oo.exports=za;var Wa=Oo.exports;!function(){var e;switch(null!=(e=process.argv[2])&&e){case"css-blank-pseudo":return void xo(J.default,["preserve","replaceWith"],Co("@csstools/cli css-blank-pseudo","PostCSS Blank Pseudo","Lets you style form elements when they are empty, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".css-blank"}),!1);case"css-has-pseudo":return void xo(Z.default,["preserve"],Co("@csstools/cli css-has-pseudo","PostCSS Has Pseudo","Transforms CSS with :has {}",{preserve:!0}),!1);case"css-prefers-color-scheme":return void xo(X.default,["preserve","mediaQuery"],Co("@csstools/cli css-prefers-color-scheme","Prefers Color Scheme","Lets you use light and dark color schemes in all browsers, following the Media Queries specification.",{preserve:!0,mediaQuery:"color|color-index"}),!1);case"postcss-color-function":return void xo(ee.default,["preserve","enableProgressiveCustomProperties"],Co("@csstools/cli postcss-color-function","PostCSS Color Function","Lets you use the color() function in CSS.",{preserve:!0,enableProgressiveCustomProperties:!1}),!1);case"postcss-color-functional-notation":return void xo(ee.default,["preserve"],Co("@csstools/cli postcss-color-functional-notation","PostCSS Color Functional Notation","Lets you use space and slash separated color notation in CSS, following the CSS Color specification.",{preserve:!0}),!1);case"postcss-color-hex-alpha":return void xo(te.default,["preserve"],Co("@csstools/cli postcss-color-hex-alpha","PostCSS Color Hex Alpha","Lets you use 4 & 8 character hex color notation in CSS, following the CSS Color Module specification.",{preserve:!0}),!1);case"postcss-color-rebeccapurple":return void xo(se.default,["preserve"],Co("@csstools/cli postcss-color-rebeccapurple","PostCSS RebeccaPurple","Lets you use the rebeccapurple color keyword in CSS.",{preserve:!0}),!1);case"postcss-custom-properties":return void xo(re.default,["importFrom","exportTo","preserve"],Co("@csstools/cli postcss-custom-properties","PostCSS Custom Properties","Lets you use Custom Properties in CSS, following the CSS Custom Properties specification.",{importFrom:["import-variables.js"],exportTo:["export-variables.js"],preserve:!0}),!1);case"postcss-dir-pseudo-class":return void xo(ne.default,["dir","preserve","shadow"],Co("@csstools/cli postcss-dir-pseudo-class","PostCSS Dir Pseudo Class","Lets you style by directionality using the `:dir()` pseudo-class in CSS",{dir:"ltr",preserve:!0,shadow:!0}),!1);case"postcss-double-position-gradients":return void xo(oe.default,["preserve","enableProgressiveCustomProperties"],Co("@csstools/cli postcss-double-position-gradients","PostCSS Double Position Gradients","Lets you use double-position gradients in CSS, following the CSS Image Values and Replaced Content specification",{dir:"ltr",preserve:!0,shadow:!0,enableProgressiveCustomProperties:!1}),!1);case"postcss-env-function":return void xo(ie.default,["importFrom"],Co("@csstools/cli postcss-env-function","PostCSS Environment Variables","Lets you use `env()` variables in CSS, following the CSS Environment Variables specification.",{importFrom:["import-variables.js"]}),!1);case"postcss-focus-visible":return void xo(ae.default,["preserve","replaceWith"],Co("@csstools/cli postcss-focus-visible","PostCSS Focus Visible","Lets you use the `:focus-visible` pseudo-class in CSS, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".focus-visible"}),!1);case"postcss-focus-within":return void xo(le.default,["preserve","replaceWith"],Co("@csstools/cli postcss-focus-within","PostCSS Focus Within","Lets you use the `:focus-within` pseudo-class in CSS, following the Selectors Level 4 specification.",{preserve:!0,replaceWith:".focus-within"}),!1);case"postcss-font-format-keywords":return void xo(ue.default,["preserve"],Co("@csstools/cli postcss-font-format-keywords","PostCSS Font Format Keyword","Lets you use unquoted format on @font-face CSS definitions.",{preserve:!0}),!1);case"postcss-gap-properties":return void xo(ce.default,["preserve"],Co("@csstools/cli postcss-gap-properties","PostCSS Gap Properties","Lets you use the gap, column-gap, and row-gap shorthand properties in CSS, following the CSS Grid Layout specification.",{preserve:!0}),!1);case"postcss-hwb-function":return void xo(pe.default,["preserve"],Co("@csstools/cli postcss-hwb-function","PostCSS HWB function","Convert hwb() to rgb()",{preserve:!0}),!1);case"postcss-ic-unit":return void xo(ee.default,["preserve"],Co("@csstools/cli postcss-ic-unit","PostCSS IC Unit","Lets you use the ic length unit.",{preserve:!0}),!1);case"postcss-image-set-function":return void xo(he.default,["oninvalid","preserve"],Co("@csstools/cli postcss-image-set-function","PostCSS Image Set Function","Lets you display resolution-dependent images using the image-set() function in CSS, following the CSS Images specification.",{preserve:!0,oninvalid:"ignore|warn|throw"}),!1);case"postcss-is-pseudo-class":return void xo(fe.default,["onComplexSelector","preserve","specificityMatchingName"],Co("@csstools/cli postcss-is-pseudo-class","PostCSS Is Pseudo Class","Lets you use the :is pseudo class function, following the CSS Selector specification.",{onComplexSelector:"warning",preserve:!0,specificityMatchingName:"does-not-exist"}),!1);case"postcss-lab-function":return void xo(de.default,["preserve","enableProgressiveCustomProperties","subFeatures"],Co("@csstools/cli postcss-lab-function","PostCSS Lab function","Convert lab() to rgb()",{preserve:!0,enableProgressiveCustomProperties:!1,subFeatures:{displayP3:!1}}),!1);case"postcss-logical":return void xo(me.default,["dir","preserve"],Co("@csstools/cli postcss-logical","PostCSS Logical","Lets you use logical, rather than physical, direction and dimension mappings in CSS, following the CSS Logical Properties and Values specification.",{dir:"ltr|rtl",preserve:!0}),!1);case"postcss-nesting":return void xo(ge.default,["noIsPseudoSelector"],Co("@csstools/cli postcss-nesting","PostCSS Nesting","Lets you nest style rules inside each other, following the CSS Nesting specification.",{noIsPseudoSelector:!0}),!1);case"postcss-normalize-display-values":return void xo(ye.default,["preserve"],Co("@csstools/cli postcss-normalize-display-values","PostCSS Normalize Display Values","Lets you use two values display syntax for inner and outer display types.",{preserve:!0}),!1);case"postcss-oklab-function":return void xo(ee.default,["preserve","enableProgressiveCustomProperties","subFeatures"],Co("@csstools/cli postcss-oklab-function","PostCSS OKLab Function","Lets you use oklab() and oklch() color functions in CSS.",{preserve:!0,enableProgressiveCustomProperties:!1,subFeatures:{displayP3:!1}}),!1);case"postcss-overflow-shorthand":return void xo(we.default,["preserve"],Co("@csstools/cli postcss-overflow-shorthand","PostCSS Overflow Shorthand","Lets you use the `overflow` shorthand in CSS, following the CSS Overflow specification.",{preserve:!0}),!1);case"postcss-place":return void xo(ve.default,["preserve"],Co("@csstools/cli postcss-place","PostCSS Place","Lets you use place-* properties as shorthands for align-* and justify-*, following the CSS Box Alignment specification.",{preserve:!0}),!1);case"postcss-preset-env":return void xo(Wa,["stage","features","browsers","autoprefixer","importFrom","exportTo"],Co("@csstools/cli postcss-preset-env","PostCSS Preset Env","Lets you convert modern CSS into something most browsers can understand, determining the polyfills you need based on your targeted browsers or runtime environments.",{stage:0,features:{"blank-pseudo-class":{preserve:!1},"color-functional-notation":{preserve:!0}},browsers:"last 2 versions",autoprefixer:{grid:!0},preserve:!1,importFrom:"path/to/file.css",exportTo:"path/to/file.css"}),!1);case"postcss-pseudo-class-any-link":return void xo(Ee.default,["preserve"],Co("@csstools/cli postcss-pseudo-class-any-link","PostCSS Pseudo Class Any Link","Lets you :any-link pseudo-class in CSS, following the Selectors specification.",{preserve:!0}),!1);default:{const e=["CSSTools CLI\n"," Transform CSS with any plugin from https://github.com/csstools/postcss-plugins\n","Usage:"," @csstools/csstools-cli postcss-preset-env [input.css] [OPTIONS] [-o|--output output.css]"," @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --dir <output-directory>"," @csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --replace","\nAvailable Plugins:"," css-blank-pseudo"," css-has-pseudo"," css-prefers-color-scheme"," postcss-color-function"," postcss-color-functional-notation"," postcss-color-hex-alpha"," postcss-color-rebeccapurple"," postcss-custom-properties"," postcss-dir-pseudo-class"," postcss-double-position-gradients"," postcss-env-function"," postcss-focus-visible"," postcss-focus-within"," postcss-font-format-keywords"," postcss-gap-properties"," postcss-hwb-function"," postcss-ic-unit"," postcss-image-set-function"," postcss-is-pseudo-class"," postcss-lab-function"," postcss-logical"," postcss-nesting"," postcss-normalize-display-values"," postcss-oklab-function"," postcss-overflow-shorthand"," postcss-place"," postcss-pseudo-class-any-link","\nPlugin Help:"," @csstools/csstools-cli <plugin-name>"," @csstools/csstools-cli postcss-preset-env"];console.warn(e.join("\n"))}}}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function postcssColorFunction(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function postcssICUnit(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function postcssOKLabFunction(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csstools/csstools-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Transform CSS with any plugin from csstools/postcss-plugins",
|
|
5
5
|
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
|
|
6
6
|
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/cli/csstools-cli#readme",
|
|
@@ -33,30 +33,30 @@
|
|
|
33
33
|
"@csstools/postcss-hwb-function": "^1.0.0",
|
|
34
34
|
"@csstools/postcss-is-pseudo-class": "^2.0.0",
|
|
35
35
|
"@csstools/postcss-normalize-display-values": "^1.0.0",
|
|
36
|
-
"css-blank-pseudo": "^3.0.
|
|
37
|
-
"css-has-pseudo": "^3.0.
|
|
36
|
+
"css-blank-pseudo": "^3.0.3",
|
|
37
|
+
"css-has-pseudo": "^3.0.4",
|
|
38
38
|
"css-prefers-color-scheme": "^6.0.3",
|
|
39
|
-
"postcss-color-functional-notation": "^4.2.
|
|
40
|
-
"postcss-color-hex-alpha": "^8.0.
|
|
39
|
+
"postcss-color-functional-notation": "^4.2.2",
|
|
40
|
+
"postcss-color-hex-alpha": "^8.0.3",
|
|
41
41
|
"postcss-color-rebeccapurple": "^7.0.2",
|
|
42
42
|
"postcss-custom-properties": "^12.1.4",
|
|
43
|
-
"postcss-dir-pseudo-class": "^6.0.
|
|
44
|
-
"postcss-double-position-gradients": "^3.0
|
|
45
|
-
"postcss-env-function": "^4.0.
|
|
46
|
-
"postcss-focus-visible": "^6.0.
|
|
47
|
-
"postcss-focus-within": "^5.0.
|
|
48
|
-
"postcss-gap-properties": "^3.0.
|
|
49
|
-
"postcss-image-set-function": "^4.0.
|
|
50
|
-
"postcss-lab-function": "^4.
|
|
51
|
-
"postcss-logical": "^5.0.
|
|
43
|
+
"postcss-dir-pseudo-class": "^6.0.4",
|
|
44
|
+
"postcss-double-position-gradients": "^3.1.0",
|
|
45
|
+
"postcss-env-function": "^4.0.5",
|
|
46
|
+
"postcss-focus-visible": "^6.0.4",
|
|
47
|
+
"postcss-focus-within": "^5.0.4",
|
|
48
|
+
"postcss-gap-properties": "^3.0.3",
|
|
49
|
+
"postcss-image-set-function": "^4.0.6",
|
|
50
|
+
"postcss-lab-function": "^4.1.1",
|
|
51
|
+
"postcss-logical": "^5.0.4",
|
|
52
52
|
"postcss-nesting": "^10.1.2",
|
|
53
|
-
"postcss-overflow-shorthand": "^3.0.
|
|
54
|
-
"postcss-place": "^7.0.
|
|
55
|
-
"postcss-preset-env": "^7.
|
|
56
|
-
"postcss-pseudo-class-any-link": "^7.1.
|
|
53
|
+
"postcss-overflow-shorthand": "^3.0.3",
|
|
54
|
+
"postcss-place": "^7.0.4",
|
|
55
|
+
"postcss-preset-env": "^7.4.0",
|
|
56
|
+
"postcss-pseudo-class-any-link": "^7.1.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"postcss": "^8.4.
|
|
59
|
+
"postcss": "^8.4.6"
|
|
60
60
|
},
|
|
61
61
|
"repository": {
|
|
62
62
|
"type": "git",
|