import{e as Z,i as j}from"./chunk-Z427YWOQ.js";var H=Z(L=>{j();(function(){var z;(function(){"use strict";var P=[,,(function(o){function r(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}r.prototype.clone_empty=function(){var t=new r(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},r.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},r.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},r.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return this.__items.length===0},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf(`
`);e!==-1?this.__character_count=t.length-e:this.__character_count+=t.length},r.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function _(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}_.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},_.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)};function i(t,e){this.__indent_cache=new _(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&(e[e.length-1]===`
`&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(`
`);return t!==`
`&&(n=n.replace(/[\n]/g,t)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,e){for(var n=this.__lines.length-2;n>=0;){var s=this.__lines[n];if(s.is_empty())break;if(s.item(0).indexOf(t)!==0&&s.item(-1)!==e){this.__lines.splice(n+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},o.exports.Output=i}),,,,(function(o){function r(t,e){this.raw_options=_(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char==="	"),this.indent_with_tabs&&(this.indent_char="	",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}r.prototype._get_array=function(t,e){var n=this.raw_options[t],s=e||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(s=n.concat()):typeof n=="string"&&(s=n.split(/[^a-zA-Z0-9_\/\-]+/)),s},r.prototype._get_boolean=function(t,e){var n=this.raw_options[t],s=n===void 0?!!e:!!n;return s},r.prototype._get_characters=function(t,e){var n=this.raw_options[t],s=e||"";return typeof n=="string"&&(s=n.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/,"	")),s},r.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var s=parseInt(n,10);return isNaN(s)&&(s=e),s},r.prototype._get_selection=function(t,e,n){var s=this._get_selection_list(t,e,n);if(s.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
`+e+`
You passed in: '`+this.raw_options[t]+"'");return s[0]},r.prototype._get_selection_list=function(t,e,n){if(!e||e.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var s=this._get_array(t,n);if(!this._is_valid_selection(s,e))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
`+e+`
You passed in: '`+this.raw_options[t]+"'");return s},r.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some(function(n){return e.indexOf(n)===-1})};function _(t,e){var n={};t=i(t);var s;for(s in t)s!==e&&(n[s]=t[s]);if(e&&t[e])for(s in t[e])n[s]=t[e][s];return n}function i(t){var e={},n;for(n in t){var s=n.replace(/-/g,"_");e[s]=t[n]}return e}o.exports.Options=r,o.exports.normalizeOpts=i,o.exports.mergeOpts=_}),,(function(o){var r=RegExp.prototype.hasOwnProperty("sticky");function _(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position<this.__input_length},_.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},_.prototype.peek=function(i){var t=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(t=this.__input.charAt(i)),t},_.prototype.__match=function(i,t){i.lastIndex=t;var e=i.exec(this.__input);return e&&!(r&&i.sticky)&&e.index!==t&&(e=null),e},_.prototype.test=function(i,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(i,t):!1},_.prototype.testChar=function(i,t){var e=this.peek(t);return i.lastIndex=0,e!==null&&i.test(e)},_.prototype.match=function(i){var t=this.__match(i,this.__position);return t?this.__position+=t[0].length:t=null,t},_.prototype.read=function(i,t,e){var n="",s;return i&&(s=this.match(i),s&&(n+=s[0])),t&&(s||!i)&&(n+=this.readUntil(t,e)),n},_.prototype.readUntil=function(i,t){var e="",n=this.__position;i.lastIndex=this.__position;var s=i.exec(this.__input);return s?(n=s.index,t&&(n+=s[0].length)):n=this.__input_length,e=this.__input.substring(this.__position,n),this.__position=n,e},_.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},_.prototype.get_regexp=function(i,t){var e=null,n="g";return t&&r&&(n="y"),typeof i=="string"&&i!==""?e=new RegExp(i,n):i&&(e=new RegExp(i.source,n)),e},_.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},_.prototype.peekUntilAfter=function(i){var t=this.__position,e=this.readUntilAfter(i);return this.__position=t,e},_.prototype.lookBack=function(i){var t=this.__position-1;return t>=i.length&&this.__input.substring(t-i.length,t).toLowerCase()===i},o.exports.InputScanner=_}),,,,,(function(o){function r(_,i){_=typeof _=="string"?_:_.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(_+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(_+/\sbeautify\signore:end\s/.source+i,"g")}r.prototype.get_directives=function(_){if(!_.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(_);t;)i[t[1]]=t[2],t=this.__directive_pattern.exec(_);return i},r.prototype.readIgnored=function(_){return _.readUntilAfter(this.__directives_end_ignore_pattern)},o.exports.Directives=r}),,(function(o,r,_){var i=_(16).Beautifier,t=_(17).Options;function e(n,s){var l=new i(n,s);return l.beautify()}o.exports=e,o.exports.defaultOptions=function(){return new t}}),(function(o,r,_){var i=_(17).Options,t=_(2).Output,e=_(8).InputScanner,n=_(13).Directives,s=new n(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,T=/\r\n|[\r\n]/g,b=/\s/,$=/(?:\s|\n)+/g,D=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,M=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(h,p){this._source_text=h||"",this._options=new i(p),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}f.prototype.eatString=function(h){var p="";for(this._ch=this._input.next();this._ch;){if(p+=this._ch,this._ch==="\\")p+=this._input.next();else if(h.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return p},f.prototype.eatWhitespace=function(h){for(var p=b.test(this._input.peek()),u=0;b.test(this._input.peek());)this._ch=this._input.next(),h&&this._ch===`
`&&(u===0||u<this._options.max_preserve_newlines)&&(u++,this._output.add_new_line(!0));return p},f.prototype.foundNestedPseudoClass=function(){for(var h=0,p=1,u=this._input.peek(p);u;){if(u==="{")return!0;if(u==="(")h+=1;else if(u===")"){if(h===0)return!1;h-=1}else if(u===";"||u==="}")return!1;p++,u=this._input.peek(p)}return!1},f.prototype.print_string=function(h){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(h)},f.prototype.preserveSingleSpace=function(h){h&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var h=this._source_text,p=this._options.eol;p==="auto"&&(p=`
`,h&&l.test(h||"")&&(p=h.match(l)[0])),h=h.replace(T,`
`);var u=h.match(/^[\t ]*/)[0];this._output=new t(this._options,u),this._input=new e(h),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var c=0,w=!1,a=!1,k=!1,y=!1,x=!1,W=this._ch,S=!1,B,g,d;B=this._input.read($),g=B!=="",d=W,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),W=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var N=this._input.read(D),R=s.get_directives(N);R&&R.ignore==="start"&&(N+=s.readIgnored(this._input)),this.print_string(N),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(M)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(g),this.print_string(this._ch);var O=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);O.match(/[ :]$/)&&(O=this.eatString(": ").replace(/\s+$/,""),this.print_string(O),this._output.space_before_token=!0),c===0&&O.indexOf(":")!==-1&&(a=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(g),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var v=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);v.match(/[ :]$/)&&(v=this.eatString(": ").replace(/\s+$/,""),this.print_string(v),this._output.space_before_token=!0),c===0&&v.indexOf(":")!==-1?(a=!0,this.indent()):v in this.NESTED_AT_RULE?(this._nestedLevel+=1,v in this.CONDITIONAL_GROUP_RULE&&(k=!0)):c===0&&!a&&(y=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(g),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")a&&(a=!1,this.outdent()),y=!1,k?(k=!1,w=this._indentLevel>=this._nestedLevel):w=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&w&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(d==="("?this._output.space_before_token=!1:d!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),d==="{"&&this._output.trim(!0),a&&(this.outdent(),a=!1),this.print_string(this._ch),w=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var E=0;E<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;E++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[E])){S=!0;break}(w||k)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!y&&c===0?(this.print_string(":"),a||(a=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Y=d==='"'||d==="'";this.preserveSingleSpace(Y||g),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")S=!1,c===0?(a&&(this.outdent(),a=!1),y=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),c++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),c&&(c--,this.outdent()));else{var U=!1;this._input.lookBack("with")&&(U=!0),this.preserveSingleSpace(g||U),this.print_string(this._ch),a&&d==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),x=!0):(this.eatWhitespace(),c++,this.indent())}else if(this._ch===")")c&&(c--,this.outdent()),x&&this._input.peek()===";"&&this._options.selector_separator_newline&&(x=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!a||x)&&c===0&&!y?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!a&&c===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&b.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(g),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),b.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var G=d==='"'||d==="'";this.preserveSingleSpace(G||g),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&S&&this._output.add_new_line()}var V=this._output.get_code(p);return V},o.exports.Beautifier=f}),(function(o,r,_){var i=_(6).Options;function t(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l<s.length;l++)s[l]!=="expand"?this.brace_style="collapse":this.brace_style=s[l]}t.prototype=new i,o.exports.Options=t})],I={};function A(o){var r=I[o];if(r!==void 0)return r.exports;var _=I[o]={exports:{}};return P[o](_,_.exports,A),_.exports}var C=A(15);z=C})();var m=z;typeof define=="function"&&define.amd?define([],function(){return{css_beautify:m}}):typeof L<"u"?L.css_beautify=m:typeof window<"u"?window.css_beautify=m:typeof global<"u"&&(global.css_beautify=m)})()});export{H as a};
