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