(window.webpackJsonp=window.webpackJsonp||[]).push([[217,5,7],{"+ua5":function(Be,Le,Y){},"55Ip":function(Be,Le,Y){"use strict";Y.d(Le,"a",function(){return t});var ae=Y("Ty5D"),M=Y("dI71"),S=Y("cDcd"),N=Y.n(S),w=Y("YS25"),R=Y("17x9"),D=Y.n(R),L=Y("wx14"),x=Y("zLVn"),T=Y("9R94"),m=function(u){Object(M.a)(d,u);function d(){for(var _,f=arguments.length,b=new Array(f),A=0;AH&&(H=I.line_indent_level));var Z={mode:U,parent:I,last_token:I?I.last_token:new o(t.START_BLOCK,""),last_word:I?I.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:H,alignment:0,line_indent_level:I?I.line_indent_level:H,start_line_index:this._output.get_line_number(),ternary_depth:0};return Z},P.prototype._reset=function(I){var U=I.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,U),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(c.BlockStatement);var H=new s(I,this._options);return this._tokens=H.tokenize(),I},P.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,U=this._reset(this._source_text),H=this._options.eol;this._options.eol==="auto"&&(H=` `,U&&a.lineBreak.test(U||"")&&(H=U.match(a.lineBreak)[0]));for(var Z=this._tokens.next();Z;)this.handle_token(Z),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Z,Z=this._tokens.next();return I=this._output.get_code(H),I},P.prototype.handle_token=function(I,U){I.type===t.START_EXPR?this.handle_start_expr(I):I.type===t.END_EXPR?this.handle_end_expr(I):I.type===t.START_BLOCK?this.handle_start_block(I):I.type===t.END_BLOCK?this.handle_end_block(I):I.type===t.WORD?this.handle_word(I):I.type===t.RESERVED?this.handle_word(I):I.type===t.SEMICOLON?this.handle_semicolon(I):I.type===t.STRING?this.handle_string(I):I.type===t.EQUALS?this.handle_equals(I):I.type===t.OPERATOR?this.handle_operator(I):I.type===t.COMMA?this.handle_comma(I):I.type===t.BLOCK_COMMENT?this.handle_block_comment(I,U):I.type===t.COMMENT?this.handle_comment(I,U):I.type===t.DOT?this.handle_dot(I):I.type===t.EOF?this.handle_eof(I):I.type===t.UNKNOWN?this.handle_unknown(I,U):this.handle_unknown(I,U)},P.prototype.handle_whitespace_and_comments=function(I,U){var H=I.newlines,Z=this._options.keep_array_indentation&&b(this._flags.mode);if(I.comments_before)for(var $=I.comments_before.next();$;)this.handle_whitespace_and_comments($,U),this.handle_token($,U),$=I.comments_before.next();if(Z)for(var ee=0;ee0,U);else if(this._options.max_preserve_newlines&&H>this._options.max_preserve_newlines&&(H=this._options.max_preserve_newlines),this._options.preserve_newlines&&H>1){this.print_newline(!1,U);for(var te=1;te0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},P.prototype.set_mode=function(I){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,I),this._flags=this.create_flags(this._previous_flags,I),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},P.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===c.Statement&&_(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},P.prototype.start_of_object_property=function(){return this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||y(this._flags.last_token,["get","set"]))},P.prototype.start_of_statement=function(I){var U=!1;return U=U||y(this._flags.last_token,["var","let","const"])&&I.type===t.WORD,U=U||h(this._flags.last_token,"do"),U=U||!(this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement)&&y(this._flags.last_token,k)&&!I.newlines,U=U||h(this._flags.last_token,"else")&&!(h(I,"if")&&!I.comments_before),U=U||this._flags.last_token.type===t.END_EXPR&&(this._previous_flags.mode===c.ForInitializer||this._previous_flags.mode===c.Conditional),U=U||this._flags.last_token.type===t.WORD&&this._flags.mode===c.BlockStatement&&!this._flags.in_case&&!(I.text==="--"||I.text==="++")&&this._last_last_text!=="function"&&I.type!==t.WORD&&I.type!==t.RESERVED,U=U||this._flags.mode===c.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||y(this._flags.last_token,["get","set"])),U?(this.set_mode(c.Statement),this.indent(),this.handle_whitespace_and_comments(I,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I,y(I,["do","for","if","while"])),!0):!1},P.prototype.handle_start_expr=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I);var U=c.Expression;if(I.text==="["){if(this._flags.last_token.type===t.WORD||this._flags.last_token.text===")"){y(this._flags.last_token,i)&&(this._output.space_before_token=!0),this.print_token(I),this.set_mode(U),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}U=c.ArrayLiteral,b(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),r(this._flags.last_token.type,[t.START_EXPR,t.END_EXPR,t.WORD,t.OPERATOR,t.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===t.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,U=c.ForInitializer):r(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,U=c.Conditional):r(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&I.whitespace_before===""?this._output.space_before_token=!1:(r(this._flags.last_token.text,i)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I);else if(this._flags.last_token.type===t.WORD){this._output.space_before_token=!1;var H=this._tokens.peek(-3);if(this._options.space_after_named_function&&H){var Z=this._tokens.peek(-4);y(H,["async","function"])||H.text==="*"&&y(Z,["async","function"])?this._output.space_before_token=!0:this._flags.mode===c.ObjectLiteral?(H.text==="{"||H.text===","||H.text==="*"&&(Z.text==="{"||Z.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(I);(this._flags.last_token.type===t.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(r(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&r(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===t.START_BLOCK?this.print_newline():(this._flags.last_token.type===t.END_EXPR||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===t.COMMA)&&this.allow_wrap_or_preserved_newline(I,I.newlines),this.print_token(I),this.set_mode(U),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},P.prototype.handle_end_expr=function(I){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(I),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(I,I.text==="]"&&b(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===t.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(I),this.restore_mode(),_(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===c.Conditional&&(this._previous_flags.mode=c.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},P.prototype.handle_start_block=function(I){this.handle_whitespace_and_comments(I);var U=this._tokens.peek(),H=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===t.END_EXPR?(this.set_mode(c.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(c.BlockStatement):H&&(r(H.text,[":",","])&&r(U.type,[t.STRING,t.WORD,t.RESERVED])||r(U.text,["get","set","..."])&&r(H.type,[t.WORD,t.RESERVED]))?r(this._last_last_text,["class","interface"])&&!r(H.text,[":",","])?this.set_mode(c.BlockStatement):this.set_mode(c.ObjectLiteral):this._flags.last_token.type===t.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(c.BlockStatement):r(this._flags.last_token.type,[t.EQUALS,t.START_EXPR,t.COMMA,t.OPERATOR])||y(this._flags.last_token,["return","throw","import","default"])?this.set_mode(c.ObjectLiteral):this.set_mode(c.BlockStatement),this._flags.last_token&&(y(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var Z=!U.comments_before&&U.text==="}",$=Z&&this._flags.last_word==="function"&&this._flags.last_token.type===t.END_EXPR;if(this._options.brace_preserve_inline){var ee=0,te=null;this._flags.inline_frame=!0;do if(ee+=1,te=this._tokens.peek(ee-1),te.newlines){this._flags.inline_frame=!1;break}while(te.type!==t.EOF&&!(te.type===t.END_BLOCK&&te.opened===I))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==t.OPERATOR&&($||this._flags.last_token.type===t.EQUALS||y(this._flags.last_token,v)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(this._previous_flags.mode)&&(this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.COMMA)&&((this._flags.last_token.type===t.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(I),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==t.OPERATOR&&this._flags.last_token.type!==t.START_EXPR&&(this._flags.last_token.type===t.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(I),this.indent(),!Z&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},P.prototype.handle_end_block=function(I){for(this.handle_whitespace_and_comments(I);this._flags.mode===c.Statement;)this.restore_mode();var U=this._flags.last_token.type===t.START_BLOCK;this._flags.inline_frame&&!U?this._output.space_before_token=!0:this._options.brace_style==="expand"?U||this.print_newline():U||(b(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(I)},P.prototype.handle_word=function(I){if(I.type===t.RESERVED){if(r(I.text,["set","get"])&&this._flags.mode!==c.ObjectLiteral)I.type=t.WORD;else if(I.text==="import"&&r(this._tokens.peek().text,["(","."]))I.type=t.WORD;else if(r(I.text,["as","from"])&&!this._flags.import_block)I.type=t.WORD;else if(this._flags.mode===c.ObjectLiteral){var U=this._tokens.peek();U.text===":"&&(I.type=t.WORD)}}if(this.start_of_statement(I)?y(this._flags.last_token,["var","let","const"])&&I.type===t.WORD&&(this._flags.declaration_statement=!0):I.newlines&&!A(this._flags.mode)&&(this._flags.last_token.type!==t.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==t.EQUALS&&(this._options.preserve_newlines||!y(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(I),this.print_newline()):this.handle_whitespace_and_comments(I),this._flags.do_block&&!this._flags.do_while)if(h(I,"while")){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&h(I,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===c.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&y(I,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(I),this._flags.in_case=!0;return}if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I)),h(I,"function")){(r(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(r(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===t.OPERATOR))&&(!this._output.just_added_blankline()&&!I.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD?y(this._flags.last_token,["get","set","new","export"])||y(this._flags.last_token,k)?this._output.space_before_token=!0:h(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===t.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(A(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(I),this._flags.last_word=I.text;return}var H="NONE";if(this._flags.last_token.type===t.END_BLOCK?this._previous_flags.inline_frame?H="SPACE":y(I,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines?H="NEWLINE":(H="SPACE",this._output.space_before_token=!0):H="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&this._flags.mode===c.BlockStatement?H="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&A(this._flags.mode)?H="SPACE":this._flags.last_token.type===t.STRING?H="NEWLINE":this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.last_token.text==="*"&&(r(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&r(this._last_last_text,["{",","]))?H="SPACE":this._flags.last_token.type===t.START_BLOCK?this._flags.inline_frame?H="SPACE":H="NEWLINE":this._flags.last_token.type===t.END_EXPR&&(this._output.space_before_token=!0,H="NEWLINE"),y(I,i)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?H="SPACE":H="NEWLINE"),y(I,["else","catch","finally"]))if((!(this._flags.last_token.type===t.END_BLOCK&&this._previous_flags.mode===c.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&I.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Z=this._output.current_line;Z.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else H==="NEWLINE"?y(this._flags.last_token,v)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&y(I,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==t.END_EXPR?(this._flags.last_token.type!==t.START_EXPR||!y(I,["var","let","const"]))&&this._flags.last_token.text!==":"&&(h(I,"if")&&h(I.previous,"else")?this._output.space_before_token=!0:this.print_newline()):y(I,i)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():H==="SPACE"&&(this._output.space_before_token=!0);I.previous&&(I.previous.type===t.WORD||I.previous.type===t.RESERVED)&&(this._output.space_before_token=!0),this.print_token(I),this._flags.last_word=I.text,I.type===t.RESERVED&&(I.text==="do"?this._flags.do_block=!0:I.text==="if"?this._flags.if_block=!0:I.text==="import"?this._flags.import_block=!0:this._flags.import_block&&h(I,"from")&&(this._flags.import_block=!1))},P.prototype.handle_semicolon=function(I){this.start_of_statement(I)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(I);for(var U=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&h(U,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(I)},P.prototype.handle_string=function(I){I.text.startsWith("`")&&I.newlines===0&&I.whitespace_before===""&&(I.previous.text===")"||this._flags.last_token.type===t.WORD)||(this.start_of_statement(I)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(I),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR||this._flags.last_token.type===t.EQUALS||this._flags.last_token.type===t.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(I):I.text.startsWith("`")&&this._flags.last_token.type===t.END_EXPR&&(I.previous.text==="]"||I.previous.text===")")&&I.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(I)},P.prototype.handle_equals=function(I){this.start_of_statement(I)||this.handle_whitespace_and_comments(I),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0},P.prototype.handle_comma=function(I){this.handle_whitespace_and_comments(I,!0),this.print_token(I),this._output.space_before_token=!0,this._flags.declaration_statement?(A(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)):this._flags.mode===c.ObjectLiteral||this._flags.mode===c.Statement&&this._flags.parent.mode===c.ObjectLiteral?(this._flags.mode===c.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(I)},P.prototype.handle_operator=function(I){var U=I.text==="*"&&(y(this._flags.last_token,["function","yield"])||r(this._flags.last_token.type,[t.START_BLOCK,t.COMMA,t.END_BLOCK,t.SEMICOLON])),H=r(I.text,["-","+"])&&(r(this._flags.last_token.type,[t.START_BLOCK,t.START_EXPR,t.EQUALS,t.OPERATOR])||r(this._flags.last_token.text,i)||this._flags.last_token.text===",");if(!this.start_of_statement(I)){var Z=!U;this.handle_whitespace_and_comments(I,Z)}if(I.text==="*"&&this._flags.last_token.type===t.DOT){this.print_token(I);return}if(I.text==="::"){this.print_token(I);return}if(this._flags.last_token.type===t.OPERATOR&&r(this._options.operator_position,d)&&this.allow_wrap_or_preserved_newline(I),I.text===":"&&this._flags.in_case){this.print_token(I),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==t.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var $=!0,ee=!0,te=!1;if(I.text===":"?this._flags.ternary_depth===0?$=!1:(this._flags.ternary_depth-=1,te=!0):I.text==="?"&&(this._flags.ternary_depth+=1),!H&&!U&&this._options.preserve_newlines&&r(I.text,e)){var K=I.text===":",W=K&&te,X=K&&!te;switch(this._options.operator_position){case u.before_newline:this._output.space_before_token=!X,this.print_token(I),(!K||W)&&this.allow_wrap_or_preserved_newline(I),this._output.space_before_token=!0;return;case u.after_newline:this._output.space_before_token=!0,!K||W?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(I):this._output.space_before_token=!1,this.print_token(I),this._output.space_before_token=!0;return;case u.preserve_newline:X||this.allow_wrap_or_preserved_newline(I),$=!(this._output.just_added_newline()||X),this._output.space_before_token=$,this.print_token(I),this._output.space_before_token=!0;return}}if(U){this.allow_wrap_or_preserved_newline(I),$=!1;var j=this._tokens.peek();ee=j&&r(j.type,[t.WORD,t.RESERVED])}else if(I.text==="...")this.allow_wrap_or_preserved_newline(I),$=this._flags.last_token.type===t.START_BLOCK,ee=!1;else if(r(I.text,["--","++","!","~"])||H){if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR)&&this.allow_wrap_or_preserved_newline(I),$=!1,ee=!1,I.newlines&&(I.text==="--"||I.text==="++"||I.text==="~")){var z=y(this._flags.last_token,v)&&I.newlines;z&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(z,!0)}this._flags.last_token.text===";"&&A(this._flags.mode)&&($=!0),this._flags.last_token.type===t.RESERVED?$=!0:this._flags.last_token.type===t.END_EXPR?$=!(this._flags.last_token.text==="]"&&(I.text==="--"||I.text==="++")):this._flags.last_token.type===t.OPERATOR&&($=r(I.text,["--","-","++","+"])&&r(this._flags.last_token.text,["--","-","++","+"]),r(I.text,["+","-"])&&r(this._flags.last_token.text,["--","++"])&&(ee=!0)),(this._flags.mode===c.BlockStatement&&!this._flags.inline_frame||this._flags.mode===c.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||$,this.print_token(I),this._output.space_before_token=ee},P.prototype.handle_block_comment=function(I,U){if(this._output.raw){this._output.add_raw_token(I),I.directives&&I.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(I.directives){this.print_newline(!1,U),this.print_token(I),I.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(I.text)&&!I.newlines){this._output.space_before_token=!0,this.print_token(I),this._output.space_before_token=!0;return}else this.print_block_commment(I,U)},P.prototype.print_block_commment=function(I,U){var H=f(I.text),Z,$=!1,ee=!1,te=I.whitespace_before,K=te.length;if(this.print_newline(!1,U),this.print_token_line_indentation(I),this._output.add_token(H[0]),this.print_newline(!1,U),H.length>1){for(H=H.slice(1),$=O(H,"*"),ee=C(H,te),$&&(this._flags.alignment=1),Z=0;Z=0;a--)if(this.__items[a].match(o))return!0;return!1},T.prototype.set_indent=function(o,a){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},T.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)},T.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},T.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},T.prototype.is_empty=function(){return this.__items.length===0},T.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},T.prototype.push=function(o){this.__items.push(o);var a=o.lastIndexOf(` `);a!==-1?this.__character_count=o.length-a:this.__character_count+=o.length},T.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},T.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},T.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},T.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},T.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function m(o,a){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),a=a||"",o.indent_level>0&&(a=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}m.prototype.get_indent_size=function(o,a){var n=this.__base_string_length;return a=a||0,o<0&&(n=0),n+=o*this.__indent_size,n+=a,n},m.prototype.get_indent_string=function(o,a){var n=this.__base_string;return a=a||0,o<0&&(o=0,n=""),a+=o*this.__indent_size,this.__ensure_cache(a),n+=this.__cache[a],n},m.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},m.prototype.__add_column=function(){var o=this.__cache.length,a=0,n="";this.__indent_size&&o>=this.__indent_size&&(a=Math.floor(o/this.__indent_size),o-=a*this.__indent_size,n=new Array(a+1).join(this.__indent_string)),o&&(n+=new Array(o+1).join(" ")),this.__cache.push(n)};function p(o,a){this.__indent_cache=new m(o,a),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new T(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(o,a){return this.__indent_cache.get_indent_string(o,a)},p.prototype.get_indent_size=function(o,a){return this.__indent_cache.get_indent_size(o,a)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(o){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===` `&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(` `);return o!==` `&&(n=n.replace(/[\n]/g,o)),n},p.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},p.prototype.set_indent=function(o,a){return o=o||0,a=a||0,this.next_line.set_indent(o,a),this.__lines.length>1?(this.current_line.set_indent(o,a),!0):(this.current_line.set_indent(),!1)},p.prototype.add_raw_token=function(o){for(var a=0;a1&&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},p.prototype.just_added_newline=function(){return this.current_line.is_empty()},p.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},p.prototype.ensure_empty_line_above=function(o,a){for(var n=this.__lines.length-2;n>=0;){var s=this.__lines[n];if(s.is_empty())break;if(s.item(0).indexOf(o)!==0&&s.item(-1)!==a){this.__lines.splice(n+1,0,new T(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},x.exports.Output=p},function(x){function T(m,p,o,a){this.type=m,this.text=p,this.comments_before=null,this.newlines=o||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}x.exports.Token=T},function(x,T){var m="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",n="(?:\\\\u[0-9a-fA-F]{4}|["+m+o+"])",s="(?:\\\\u[0-9a-fA-F]{4}|["+p+o+a+"])*";T.identifier=new RegExp(n+s,"g"),T.identifierStart=new RegExp(n),T.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+p+o+a+"])+");var i=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;T.newline=/[\n\r\u2028\u2029]/,T.lineBreak=new RegExp(`\r |`+T.newline.source),T.allLineBreaks=new RegExp(T.lineBreak.source,"g")},function(x,T,m){var p=m(6).Options,o=["before-newline","after-newline","preserve-newline"];function a(n){p.call(this,n,"js");var s=this.raw_options.brace_style||null;s==="expand-strict"?this.raw_options.brace_style="expand":s==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var e=0;e>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),l=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";l=l.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),l="\\?\\.(?!\\d) "+l,l=l.replace(/ /g,"|");var u=new RegExp(l),d="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),c=d.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),_=new RegExp("^(?:"+c.join("|")+")$"),f,b=function(O,C){o.call(this,O,C),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var P=new i(this._input),k=new e(this._input).read_options(this._options);this.__patterns={template:k,identifier:k.starting_with(s.identifier).matching(s.identifierMatch),number:P.matching(g),punct:P.matching(u),comment:P.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:P.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:P.matching(//),include:P.starting_with(/#include/).until_after(s.lineBreak),shebang:P.starting_with(/#!/).until_after(s.lineBreak),xml:P.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:k.until(/['\\\n\r\u2028\u2029]/),double_quote:k.until(/["\\\n\r\u2028\u2029]/),template_text:k.until(/[`\\$]/),template_expression:k.until(/[`}\\]/)}};b.prototype=new o,b.prototype._is_comment=function(O){return O.type===r.COMMENT||O.type===r.BLOCK_COMMENT||O.type===r.UNKNOWN},b.prototype._is_opening=function(O){return O.type===r.START_BLOCK||O.type===r.START_EXPR},b.prototype._is_closing=function(O,C){return(O.type===r.END_BLOCK||O.type===r.END_EXPR)&&C&&(O.text==="]"&&C.text==="["||O.text===")"&&C.text==="("||O.text==="}"&&C.text==="{")},b.prototype._reset=function(){f=!1},b.prototype._get_next_token=function(O,C){var P=null;this._readWhitespace();var k=this._input.peek();return k===null?this._create_token(r.EOF,""):(P=P||this._read_non_javascript(k),P=P||this._read_string(k),P=P||this._read_word(O),P=P||this._read_singles(k),P=P||this._read_comment(k),P=P||this._read_regexp(k,O),P=P||this._read_xml(k,O),P=P||this._read_punctuation(),P=P||this._create_token(r.UNKNOWN,this._input.next()),P)},b.prototype._read_word=function(O){var C;if(C=this.__patterns.identifier.read(),C!=="")return C=C.replace(s.allLineBreaks,` `),!(O.type===r.DOT||O.type===r.RESERVED&&(O.text==="set"||O.text==="get"))&&_.test(C)?(C==="in"||C==="of")&&(O.type===r.WORD||O.type===r.STRING)?this._create_token(r.OPERATOR,C):this._create_token(r.RESERVED,C):this._create_token(r.WORD,C);if(C=this.__patterns.number.read(),C!=="")return this._create_token(r.WORD,C)},b.prototype._read_singles=function(O){var C=null;return O==="("||O==="["?C=this._create_token(r.START_EXPR,O):O===")"||O==="]"?C=this._create_token(r.END_EXPR,O):O==="{"?C=this._create_token(r.START_BLOCK,O):O==="}"?C=this._create_token(r.END_BLOCK,O):O===";"?C=this._create_token(r.SEMICOLON,O):O==="."&&y.test(this._input.peek(1))?C=this._create_token(r.DOT,O):O===","&&(C=this._create_token(r.COMMA,O)),C&&this._input.next(),C},b.prototype._read_punctuation=function(){var O=this.__patterns.punct.read();if(O!=="")return O==="="?this._create_token(r.EQUALS,O):O==="?."?this._create_token(r.DOT,O):this._create_token(r.OPERATOR,O)},b.prototype._read_non_javascript=function(O){var C="";if(O==="#"){if(this._is_first_token()&&(C=this.__patterns.shebang.read(),C))return this._create_token(r.UNKNOWN,C.trim()+` `);if(C=this.__patterns.include.read(),C)return this._create_token(r.UNKNOWN,C.trim()+` `);O=this._input.next();var P="#";if(this._input.hasNext()&&this._input.testChar(h)){do O=this._input.next(),P+=O;while(this._input.hasNext()&&O!=="#"&&O!=="=");return O==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(P+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(P+="{}",this._input.next(),this._input.next())),this._create_token(r.WORD,P)}this._input.back()}else if(O==="<"&&this._is_first_token()){if(C=this.__patterns.html_comment_start.read(),C){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)C+=this._input.next();return f=!0,this._create_token(r.COMMENT,C)}}else if(f&&O==="-"&&(C=this.__patterns.html_comment_end.read(),C))return f=!1,this._create_token(r.COMMENT,C);return null},b.prototype._read_comment=function(O){var C=null;if(O==="/"){var P="";if(this._input.peek(1)==="*"){P=this.__patterns.block_comment.read();var k=E.get_directives(P);k&&k.ignore==="start"&&(P+=E.readIgnored(this._input)),P=P.replace(s.allLineBreaks,` `),C=this._create_token(r.BLOCK_COMMENT,P),C.directives=k}else this._input.peek(1)==="/"&&(P=this.__patterns.comment.read(),C=this._create_token(r.COMMENT,P))}return C},b.prototype._read_string=function(O){if(O==="`"||O==="'"||O==='"'){var C=this._input.next();return this.has_char_escapes=!1,O==="`"?C+=this._read_string_recursive("`",!0,"${"):C+=this._read_string_recursive(O),this.has_char_escapes&&this._options.unescape_strings&&(C=A(C)),this._input.peek()===O&&(C+=this._input.next()),C=C.replace(s.allLineBreaks,` `),this._create_token(r.STRING,C)}return null},b.prototype._allow_regexp_or_xml=function(O){return O.type===r.RESERVED&&t(O.text,["return","case","throw","else","do","typeof","yield"])||O.type===r.END_EXPR&&O.text===")"&&O.opened.previous.type===r.RESERVED&&t(O.opened.previous.text,["if","while","for"])||t(O.type,[r.COMMENT,r.START_EXPR,r.START_BLOCK,r.START,r.END_BLOCK,r.OPERATOR,r.EQUALS,r.EOF,r.SEMICOLON,r.COMMA])},b.prototype._read_regexp=function(O,C){if(O==="/"&&this._allow_regexp_or_xml(C)){for(var P=this._input.next(),k=!1,I=!1;this._input.hasNext()&&(k||I||this._input.peek()!==O)&&!this._input.testChar(s.newline);)P+=this._input.peek(),k?k=!1:(k=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!1)),this._input.next();return this._input.peek()===O&&(P+=this._input.next(),P+=this._input.read(s.identifier)),this._create_token(r.STRING,P)}return null},b.prototype._read_xml=function(O,C){if(this._options.e4x&&O==="<"&&this._allow_regexp_or_xml(C)){var P="",k=this.__patterns.xml.read_match();if(k){for(var I=k[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),U=I.indexOf("{")===0,H=0;k;){var Z=!!k[1],$=k[2],ee=!!k[k.length-1]||$.slice(0,8)==="![CDATA[";if(!ee&&($===I||U&&$.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Z?--H:++H),P+=k[0],H<=0)break;k=this.__patterns.xml.read_match()}return k||(P+=this._input.match(/[\s\S]*/g)[0]),P=P.replace(s.allLineBreaks,` `),this._create_token(r.STRING,P)}}return null};function A(O){for(var C="",P=0,k=new p(O),I=null;k.hasNext();)if(I=k.match(/([\s]|[^\\]|\\\\)+/g),I&&(C+=I[0]),k.peek()==="\\"){if(k.next(),k.peek()==="x")I=k.match(/x([0-9A-Fa-f]{2})/g);else if(k.peek()==="u")I=k.match(/u([0-9A-Fa-f]{4})/g);else{C+="\\",k.hasNext()&&(C+=k.next());continue}if(!I)return O;if(P=parseInt(I[1],16),P>126&&P<=255&&I[0].indexOf("x")===0)return O;if(P>=0&&P<32){C+="\\"+I[0];continue}else P===34||P===39||P===92?C+="\\"+String.fromCharCode(P):C+=String.fromCharCode(P)}return C}b.prototype._read_string_recursive=function(O,C,P){var k,I;O==="'"?I=this.__patterns.single_quote:O==='"'?I=this.__patterns.double_quote:O==="`"?I=this.__patterns.template_text:O==="}"&&(I=this.__patterns.template_expression);for(var U=I.read(),H="";this._input.hasNext();){if(H=this._input.next(),H===O||!C&&s.newline.test(H)){this._input.back();break}else H==="\\"&&this._input.hasNext()?(k=this._input.peek(),k==="x"||k==="u"?this.has_char_escapes=!0:k==="\r"&&this._input.peek(1)===` `&&this._input.next(),H+=this._input.next()):P&&(P==="${"&&H==="$"&&this._input.peek()==="{"&&(H+=this._input.next()),P===H&&(O==="`"?H+=this._read_string_recursive("}",C,"`"):H+=this._read_string_recursive("`",C,"${"),this._input.hasNext()&&(H+=this._input.next())));H+=I.read(),U+=H}return U},x.exports.Tokenizer=b,x.exports.TOKEN=r,x.exports.positionable_operators=v.slice(),x.exports.line_starters=d.slice()},function(x){var T=RegExp.prototype.hasOwnProperty("sticky");function m(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}m.prototype.restart=function(){this.__position=0},m.prototype.back=function(){this.__position>0&&(this.__position-=1)},m.prototype.hasNext=function(){return this.__position=0&&p=0&&o=p.length&&this.__input.substring(o-p.length,o).toLowerCase()===p},x.exports.InputScanner=m},function(x,T,m){var p=m(8).InputScanner,o=m(3).Token,a=m(10).TokenStream,n=m(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},i=function(e,t){this._input=new p(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};i.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var e,t=new o(s.START,""),r=null,E=[],g=new a;t.type!==s.EOF;){for(e=this._get_next_token(t,r);this._is_comment(e);)g.add(e),e=this._get_next_token(t,r);g.isEmpty()||(e.comments_before=g,g=new a),e.parent=r,this._is_opening(e)?(E.push(r),r=e):r&&this._is_closing(e,r)&&(e.opened=r,r.closed=e,r=E.pop(),e.parent=r),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},i.prototype._is_first_token=function(){return this.__tokens.isEmpty()},i.prototype._reset=function(){},i.prototype._get_next_token=function(e,t){this._readWhitespace();var r=this._input.read(/.+/g);return r?this._create_token(s.RAW,r):this._create_token(s.EOF,"")},i.prototype._is_comment=function(e){return!1},i.prototype._is_opening=function(e){return!1},i.prototype._is_closing=function(e,t){return!1},i.prototype._create_token=function(e,t){var r=new o(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return r},i.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},x.exports.Tokenizer=i,x.exports.TOKEN=s},function(x){function T(m){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=m}T.prototype.restart=function(){this.__position=0},T.prototype.isEmpty=function(){return this.__tokens_length===0},T.prototype.hasNext=function(){return this.__position=0&&m/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new p,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(n){var s=this._create();return s._disabled[n]=!0,s._update(),s},a.prototype.read_options=function(n){var s=this._create();for(var i in o)s._disabled[i]=n.templating.indexOf(i)===-1;return s._update(),s},a.prototype.exclude=function(n){var s=this._create();return s._excluded[n]=!0,s._update(),s},a.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var s=this._read_template();s;)this._match_pattern?s+=this._input.read(this._match_pattern):s+=this._input.readUntil(this.__template_pattern),n+=s,s=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},a.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},a.prototype._read_template=function(){var n="",s=this._input.peek();if(s==="<"){var i=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&i==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&i==="%"&&(n=n||this.__patterns.erb.read())}else s==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},x.exports.TemplatablePattern=a}],R={};function D(x){var T=R[x];if(T!==void 0)return T.exports;var m=R[x]={exports:{}};return w[x](m,m.exports,D),m.exports}var L=D(0);S=L})();var N=S;!(ae=[],M=function(){return{js_beautify:N}}.apply(Le,ae),M!==void 0&&(Be.exports=M))})()},"815F":function(Be,Le,Y){"use strict";Y.d(Le,"e",function(){return D}),Y.d(Le,"c",function(){return x}),Y.d(Le,"d",function(){return T}),Y.d(Le,"a",function(){return p}),Y.d(Le,"f",function(){return o}),Y.d(Le,"b",function(){return a});var ae=Y("KQm4"),M=Y("VTBJ"),S=Y("Ff2n"),N=Y("Zm9Q"),w=Y("Kwbf"),R=Y("OZM5");function D(n,s){return n!=null?n:s}function L(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(r){var E=r.key,g=r.children;Object(w.a)(E!=null,"Tree node must have a certain key: [".concat(t).concat(E,"]"));var h=String(E);Object(w.a)(!s.has(h)||E===null||E===void 0,"Same 'key' exist in the Tree: ".concat(h)),s.set(h,!0),i(g,"".concat(t).concat(h," > "))})}i(n)}function x(n){function s(i){var e=Object(N.a)(i);return e.map(function(t){if(!Object(R.i)(t))return Object(w.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var r=t.key,E=t.props,g=E.children,h=Object(S.a)(E,["children"]),y=Object(M.a)({key:r},h),v=s(g);return v.length&&(y.children=v),y}).filter(function(t){return t})}return s(n)}function T(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(s===!0?[]:s),e=[];function t(r){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return r.map(function(g,h){var y=Object(R.h)(E?E.pos:"0",h),v=D(g.key,y),l=Object(M.a)(Object(M.a)({},g),{},{parent:E,pos:y,children:null,data:g,isStart:[].concat(Object(ae.a)(E?E.isStart:[]),[h===0]),isEnd:[].concat(Object(ae.a)(E?E.isEnd:[]),[h===r.length-1])});return e.push(l),s===!0||i.has(v)?l.children=t(g.children||[],l):l.children=[],l})}return t(n),e}function m(n,s,i){var e;i?typeof i=="string"?e=function(E){return E[i]}:typeof i=="function"&&(e=function(E){return i(E)}):e=function(E,g){return D(E.key,g)};function t(r,E,g){var h=r?r.children:n,y=r?Object(R.h)(g.pos,E):"0";if(r){var v=e(r,y),l={node:r,index:E,pos:y,key:v,parentPos:g.node?g.pos:null,level:g.level+1};s(l)}h&&h.forEach(function(u,d){t(u,d,{node:r,pos:y,level:g?g.level+1:-1})})}t(null)}function p(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=s.initWrapper,e=s.processEntity,t=s.onProcessFinished,r=arguments.length>2?arguments[2]:void 0,E={},g={},h={posEntities:E,keyEntities:g};return i&&(h=i(h)||h),m(n,function(y){var v=y.node,l=y.index,u=y.pos,d=y.key,c=y.parentPos,_=y.level,f={node:v,index:l,key:d,pos:u,level:_},b=D(d,u);E[u]=f,g[b]=f,f.parent=E[c],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),e&&e(f,h)},r),t&&t(h),h}function o(n,s){var i=s.expandedKeys,e=s.selectedKeys,t=s.loadedKeys,r=s.loadingKeys,E=s.checkedKeys,g=s.halfCheckedKeys,h=s.dragOverNodeKey,y=s.dropPosition,v=s.keyEntities,l=v[n],u={eventKey:n,expanded:i.indexOf(n)!==-1,selected:e.indexOf(n)!==-1,loaded:t.indexOf(n)!==-1,loading:r.indexOf(n)!==-1,checked:E.indexOf(n)!==-1,halfChecked:g.indexOf(n)!==-1,pos:String(l?l.pos:""),dragOver:h===n&&y===0,dragOverGapTop:h===n&&y===-1,dragOverGapBottom:h===n&&y===1};return u}function a(n){var s=n.data,i=n.expanded,e=n.selected,t=n.checked,r=n.loaded,E=n.loading,g=n.halfChecked,h=n.dragOver,y=n.dragOverGapTop,v=n.dragOverGapBottom,l=n.pos,u=n.active,d=Object(M.a)(Object(M.a)({},s),{},{expanded:i,selected:e,checked:t,loaded:r,loading:E,halfChecked:g,dragOver:h,dragOverGapTop:y,dragOverGapBottom:v,pos:l,active:u});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(w.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),d}},"8Jsi":function(Be,Le,Y){"use strict";Y.d(Le,"d",function(){return c}),Y.d(Le,"a",function(){return _e}),Y.d(Le,"b",function(){return we}),Y.d(Le,"c",function(){return Ee});var ae=Y("1OyB"),M=Y("vuIU"),S=Y("Ji7U"),N=Y("LK+K"),w=Y("KQm4"),R=Y("U8pU"),D=Y("ODXe"),L=Y("VTBJ"),x=Y("cDcd"),T=Y("qNPg"),m=Y("2Qr1"),p=Y("815F"),o=Y("NvD2"),a=Y("wPlo"),n=Y("6cGi"),s=Y("Kwbf"),i=Y("4IlW"),e=Y("YrtM"),t=Y("fAei"),r=x.createContext(null);function E(ne,oe){if(!ne)return!0;var ue=ne.data,me=ue.disabled,ye=ue.disableCheckbox;switch(oe){case"select":return me;case"checkbox":return me||ye}return!1}function g(ne,oe){var ue=x.useCallback(function(ye){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",de=arguments.length>2?arguments[2]:void 0,Oe=ne.get(ye);return!de&&E(Oe,ve)?null:Oe},[ne]),me=x.useCallback(function(ye){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",de=arguments.length>2?arguments[2]:void 0,Oe=oe.get(ye);return!de&&E(Oe,ve)?null:Oe},[oe]);return[ue,me]}function h(ne){return x.useMemo(function(){var oe=new Map,ue=new Map;return ne.forEach(function(me){oe.set(me.key,me),ue.set(me.data.value,me)}),[oe,ue]},[ne])}var y={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(oe,ue){var me=oe.prefixCls,ye=oe.height,ve=oe.itemHeight,de=oe.virtual,Oe=oe.options,Ae=oe.flattenOptions,re=oe.multiple,Se=oe.searchValue,q=oe.onSelect,Q=oe.onToggleOpen,J=oe.open,F=oe.notFoundContent,B=oe.onMouseEnter,G=x.useContext(r),V=G.checkable,se=G.checkedKeys,he=G.halfCheckedKeys,Te=G.treeExpandedKeys,De=G.treeDefaultExpandAll,Pe=G.treeDefaultExpandedKeys,Ce=G.onTreeExpand,We=G.treeIcon,He=G.showTreeIcon,Me=G.switcherIcon,qe=G.treeLine,Ve=G.treeNodeFilterProp,tt=G.loadData,Je=G.treeLoadedKeys,Ke=G.treeMotion,nt=G.onTreeLoad,rt=x.useRef(),Ne=Object(e.a)(function(){return Oe},[J,Oe],function(lt,at){return at[0]&<[1]!==at[1]}),ke=h(Ae),Fe=Object(D.a)(ke,2),Ge=Fe[0],Ze=Fe[1],ot=g(Ge,Ze),mt=Object(D.a)(ot,2),it=mt[0],ze=mt[1],Ue=x.useMemo(function(){return se.map(function(lt){var at=ze(lt);return at?at.key:null})},[se]),Qe=x.useMemo(function(){return V?{checked:Ue,halfChecked:he}:null},[Ue,he,V]);x.useEffect(function(){if(J&&!re&&Ue.length){var lt;(lt=rt.current)===null||lt===void 0||lt.scrollTo({key:Ue[0]})}},[J]);var $e=String(Se).toLowerCase(),Ye=function(at){return $e?String(at[Ve]).toLowerCase().includes($e):!1},Xe=x.useState(Pe),et=Object(D.a)(Xe,2),ht=et[0],Tt=et[1],bt=x.useState(null),Lt=Object(D.a)(bt,2),xt=Lt[0],kt=Lt[1],wt=x.useMemo(function(){return Te?Object(w.a)(Te):Se?xt:ht},[ht,xt,$e,Te]);x.useEffect(function(){Se&&kt(Ae.map(function(lt){return lt.key}))},[Se]);var Ut=function(at){Tt(at),kt(at),Ce&&Ce(at)},Dt=function(at){at.preventDefault()},St=function(at,ut){var je=ut.node.key,dt=it(je,V?"checkbox":"select");dt!==null&&q(dt.data.value,{selected:!se.includes(dt.data.value)}),re||Q(!1)},Ct=x.useState(null),Pt=Object(D.a)(Ct,2),At=Pt[0],Ft=Pt[1],It=it(At);if(x.useImperativeHandle(ue,function(){return{onKeyDown:function(at){var ut,je=at.which;switch(je){case i.a.UP:case i.a.DOWN:case i.a.LEFT:case i.a.RIGHT:(ut=rt.current)===null||ut===void 0||ut.onKeyDown(at);break;case i.a.ENTER:{It!==null&&St(null,{node:{key:At},selected:!se.includes(It.data.value)});break}case i.a.ESC:Q(!1)}},onKeyUp:function(){}}}),Ne.length===0)return x.createElement("div",{role:"listbox",className:"".concat(me,"-empty"),onMouseDown:Dt},F);var Nt={};return Je&&(Nt.loadedKeys=Je),wt&&(Nt.expandedKeys=wt),x.createElement("div",{onMouseDown:Dt,onMouseEnter:B},It&&J&&x.createElement("span",{style:y,"aria-live":"assertive"},It.data.value),x.createElement(t.b,Object.assign({ref:rt,focusable:!1,prefixCls:"".concat(me,"-tree"),treeData:Ne,height:ye,itemHeight:ve,virtual:de,multiple:re,icon:We,showIcon:He,switcherIcon:Me,showLine:qe,loadData:Se?null:tt,motion:Ke,checkable:V,checkStrictly:!0,checkedKeys:Qe,selectedKeys:V?[]:Ue,defaultExpandAll:De},Nt,{onActiveChange:Ft,onSelect:St,onCheck:St,onExpand:Ut,onLoad:nt,filterTreeNode:Ye})))},l=x.forwardRef(v);l.displayName="OptionList";var u=l,d=function(){return null},c=d,_=Y("Ff2n"),f=Y("Zm9Q");function b(ne){return Object(f.a)(ne).map(function(oe){if(!x.isValidElement(oe)||!oe.type)return null;var ue=oe.key,me=oe.props,ye=me.children,ve=me.value,de=Object(_.a)(me,["children","value"]),Oe=Object(L.a)({key:ue,value:ve},de),Ae=b(ye);return Ae.length&&(Oe.children=Ae),Oe}).filter(function(oe){return oe})}function A(ne){if(!ne)return ne;var oe=Object(L.a)({},ne);return"props"in oe||Object.defineProperty(oe,"props",{get:function(){return Object(s.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),oe}}),oe}function O(ne,oe,ue,me,ye){var ve=null,de=null;function Oe(){function Ae(re){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return re.map(function(Q,J){var F="".concat(Se,"-").concat(J),B=ue.includes(Q.value),G=Ae(Q.children||[],F,B),V=x.createElement(c,Object.assign({},Q),G.map(function(he){return he.node}));if(oe===Q.value&&(ve=V),B){var se={pos:F,node:V,children:G};return q||de.push(se),se}return null}).filter(function(Q){return Q})}de||(de=[],Ae(me),de.sort(function(re,Se){var q=re.node.props.value,Q=Se.node.props.value,J=ue.indexOf(q),F=ue.indexOf(Q);return J-F}))}Object.defineProperty(ne,"triggerNode",{get:function(){return Object(s.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Oe(),ve}}),Object.defineProperty(ne,"allCheckedNodes",{get:function(){return Object(s.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Oe(),ye?de:de.map(function(re){var Se=re.node;return Se})}})}function C(ne){return Array.isArray(ne)?ne:ne!==void 0?[ne]:[]}function P(ne,oe){var ue=new Map;return oe.forEach(function(me){var ye=me.data;ue.set(ye.value,ye)}),ne.map(function(me){return A(ue.get(me))})}function k(ne,oe){var ue=P([ne],oe)[0];return ue?ue.disabled:!1}function I(ne){return ne.disabled||ne.disableCheckbox||ne.checkable===!1}function U(ne){for(var oe=ne.parent,ue=0,me=oe;me;)me=me.parent,ue+=1;return ue}function H(ne){function oe(me){return(me||[]).map(function(ye){var ve=ye.value,de=ye.key,Oe=ye.children,Ae=Object(L.a)(Object(L.a)({},ye),{},{key:"key"in ye?de:ve});return Oe&&(Ae.children=oe(Oe)),Ae})}var ue=Object(p.d)(oe(ne),!0);return ue.map(function(me){return{key:me.data.key,data:me.data,level:U(me)}})}function Z(ne){return function(oe,ue){var me=ue[ne];return String(me).toLowerCase().includes(String(oe).toLowerCase())}}function $(ne,oe,ue){var me=ue.optionFilterProp,ye=ue.filterOption;if(ye===!1)return oe;var ve;typeof ye=="function"?ve=ye:ve=Z(me);function de(Oe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Oe.map(function(re){var Se=re.children,q=Ae||ve(ne,A(re)),Q=de(Se||[],q);return q||Q.length?Object(L.a)(Object(L.a)({},re),{},{children:Q}):null}).filter(function(re){return re})}return de(oe)}function ee(ne,oe,ue,me){var ye=new Map;return C(oe).forEach(function(ve){ve&&Object(R.a)(ve)==="object"&&"value"in ve&&ye.set(ve.value,ve)}),ne.map(function(ve){var de={value:ve},Oe=ue(ve,"select",!0),Ae=Oe?me(Oe.data):ve;if(ye.has(ve)){var re=ye.get(ve);de.label="label"in re?re.label:Ae,"halfChecked"in re&&(de.halfChecked=re.halfChecked)}else de.label=Ae;return de})}function te(ne,oe){var ue=new Set(ne);return ue.add(oe),Array.from(ue)}function K(ne,oe){var ue=new Set(ne);return ue.delete(oe),Array.from(ue)}function W(ne){var oe=ne.searchPlaceholder,ue=ne.treeCheckStrictly,me=ne.treeCheckable,ye=ne.labelInValue,ve=ne.value,de=ne.multiple;Object(s.a)(!oe,"`searchPlaceholder` has been removed."),ue&&ye===!1&&Object(s.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ye||ue)&&Object(s.a)(C(ve).every(function(Oe){return Oe&&Object(R.a)(Oe)==="object"&&"value"in Oe}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),ue||de||me?Object(s.a)(!ve||Array.isArray(ve),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(s.a)(!Array.isArray(ve),"`value` should not be array when `TreeSelect` is single mode.")}var X=W,j=10;function z(ne,oe){var ue=oe.id,me=oe.pId,ye=oe.rootPId,ve={},de=[],Oe=ne.map(function(Ae){var re=Object(L.a)({},Ae),Se=re[ue];return ve[Se]=re,re.key=re.key||Se,re});return Oe.forEach(function(Ae){var re=Ae[me],Se=ve[re];Se&&(Se.children=Se.children||[],Se.children.push(Ae)),(re===ye||!Se&&ye===null)&&de.push(Ae)}),de}function ie(ne,oe){var ue=0,me=new Set;function ye(ve){return(ve||[]).map(function(de){var Oe=de.key,Ae=de.value,re=de.children,Se=Object(_.a)(de,["key","value","children"]),q="value"in de?Ae:Oe,Q=Object(L.a)(Object(L.a)({},Se),{},{key:Oe!=null?Oe:q,value:q,title:oe(de)});return"children"in de&&(Q.children=ye(re)),Q})}return ye(ne)}function pe(ne,oe,ue){var me=ue.getLabelProp,ye=ue.simpleMode,ve=x.useRef({});return ne?(ve.current.formatTreeData=ve.current.treeData===ne?ve.current.formatTreeData:ie(ye?z(ne,Object(L.a)({id:"id",pId:"pId",rootPId:null},ye!==!0?ye:{})):ne,me),ve.current.treeData=ne):ve.current.formatTreeData=ve.current.children===oe?ve.current.formatTreeData:ie(b(oe),me),ve.current.formatTreeData}var _e="SHOW_ALL",Ee="SHOW_PARENT",we="SHOW_CHILD";function fe(ne,oe,ue){var me=new Set(ne);return oe===we?ne.filter(function(ye){var ve=ue[ye];return!(ve&&ve.children&&ve.children.every(function(de){var Oe=de.node;return I(Oe)||me.has(Oe.key)}))}):oe===Ee?ne.filter(function(ye){var ve=ue[ye],de=ve?ve.parent:null;return!(de&&!I(de.node)&&me.has(de.node.key))}):ne}function le(ne,oe){var ue=oe.value,me=oe.getEntityByValue,ye=oe.getEntityByKey,ve=oe.treeConduction,de=oe.showCheckedStrategy,Oe=oe.conductKeyEntities,Ae=oe.getLabelProp;return x.useMemo(function(){var re=ne;if(ve){var Se=fe(ne.map(function(q){var Q=me(q);return Q?Q.key:q}),de,Oe);re=Se.map(function(q){var Q=ye(q);return Q?Q.data.value:q})}return ee(re,ue,me,Ae)},[ne,ue,ve,de,me])}var ce=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],ge=Object(T.a)({prefixCls:"rc-tree-select",components:{optionList:u},convertChildrenToData:function(){return null},flattenOptions:H,getLabeledValue:m.e,filterOptions:$,isValueDisabled:k,findValueOption:P,omitDOMProps:function(oe){var ue=Object(L.a)({},oe);return ce.forEach(function(me){delete ue[me]}),ue}});ge.displayName="Select";var Re=x.forwardRef(function(ne,oe){var ue=ne.multiple,me=ne.treeCheckable,ye=ne.treeCheckStrictly,ve=ne.showCheckedStrategy,de=ve===void 0?"SHOW_CHILD":ve,Oe=ne.labelInValue,Ae=ne.loadData,re=ne.treeLoadedKeys,Se=ne.treeNodeFilterProp,q=Se===void 0?"value":Se,Q=ne.treeNodeLabelProp,J=ne.treeDataSimpleMode,F=ne.treeData,B=ne.treeExpandedKeys,G=ne.treeDefaultExpandedKeys,V=ne.treeDefaultExpandAll,se=ne.children,he=ne.treeIcon,Te=ne.showTreeIcon,De=ne.switcherIcon,Pe=ne.treeLine,Ce=ne.treeMotion,We=ne.filterTreeNode,He=ne.dropdownPopupAlign,Me=ne.onChange,qe=ne.onTreeExpand,Ve=ne.onTreeLoad,tt=ne.onDropdownVisibleChange,Je=ne.onSelect,Ke=ne.onDeselect,nt=me||ye,rt=ue||nt,Ne=me&&!ye,ke=ye||Oe,Fe=x.useRef(null);x.useImperativeHandle(oe,function(){return{focus:Fe.current.focus,blur:Fe.current.blur}});var Ge=function(je){return F&&je.label||je.title},Ze=function(je){return Q?je[Q]:Ge(je)},ot=pe(F,se,{getLabelProp:Ge,simpleMode:J}),mt=Object(x.useMemo)(function(){return H(ot)},[ot]),it=h(mt),ze=Object(D.a)(it,2),Ue=ze[0],Qe=ze[1],$e=g(Ue,Qe),Ye=Object(D.a)($e,2),Xe=Ye[0],et=Ye[1],ht=Object(x.useMemo)(function(){return Ne?Object(p.a)(ot):{keyEntities:null}},[ot,me,ye]),Tt=ht.keyEntities,bt=Object(n.a)(ne.defaultValue,{value:ne.value}),Lt=Object(D.a)(bt,2),xt=Lt[0],kt=Lt[1],wt=function(je){var dt=[],gt=[];return je.forEach(function(ct){et(ct)?gt.push(ct):dt.push(ct)}),{missingRawValues:dt,existRawValues:gt}},Ut=Object(x.useMemo)(function(){var ut=[],je=[];if(C(xt).forEach(function(st){if(st&&Object(R.a)(st)==="object"&&"value"in st)if(st.halfChecked&&ye){var _t=et(st.value);ut.push(_t?_t.key:st.value)}else je.push(st.value);else je.push(st)}),Ne){var dt=wt(je),gt=dt.missingRawValues,ct=dt.existRawValues,vt=ct.map(function(st){return et(st).key}),Et=Object(o.a)(vt,!0,Tt),Ot=Et.checkedKeys,Rt=Et.halfCheckedKeys;return[[].concat(Object(w.a)(gt),Object(w.a)(Ot.map(function(st){return Xe(st).data.value}))),Rt]}return[je,ut]},[xt,rt,ke,me,ye]),Dt=Object(D.a)(Ut,2),St=Dt[0],Ct=Dt[1],Pt=le(St,{treeConduction:Ne,value:xt,showCheckedStrategy:de,conductKeyEntities:Tt,getEntityByValue:et,getEntityByKey:Xe,getLabelProp:Ze}),At=function(je,dt,gt){if(kt(rt?je:je[0]),Me){var ct=je;if(Ne&&de!=="SHOW_ALL"){var vt=je.map(function(pt){var yt=et(pt);return yt?yt.key:pt}),Et=fe(vt,de,Tt);ct=Et.map(function(pt){var yt=Xe(pt);return yt?yt.data.value:pt})}var Ot=dt||{triggerValue:void 0,selected:void 0},Rt=Ot.triggerValue,st=Ot.selected,_t=ke?ee(ct,xt,et,Ze):ct;if(ye){var Mt=Ct.map(function(pt){var yt=Xe(pt);return yt?yt.data.value:pt}).filter(function(pt){return!ct.includes(pt)});_t=[].concat(Object(w.a)(_t),Object(w.a)(ee(Mt,xt,et,Ze)))}var ft={preValue:Pt,triggerValue:Rt},Bt=!0;(ye||gt==="selection"&&!st)&&(Bt=!1),O(ft,Rt,je,ot,Bt),nt?ft.checked=st:ft.selected=st,Me(rt?_t:_t[0],ke?null:ct.map(function(pt){var yt=et(pt);return yt?Ze(yt.data):null}),ft)}},Ft=function(je,dt,gt){var ct=je;if(!rt)At([je],{selected:!0,triggerValue:je},gt);else{var vt=te(St,je);if(Ne){var Et=wt(vt),Ot=Et.missingRawValues,Rt=Et.existRawValues,st=Rt.map(function(ft){return et(ft).key}),_t=Object(o.a)(st,!0,Tt),Mt=_t.checkedKeys;vt=[].concat(Object(w.a)(Ot),Object(w.a)(Mt.map(function(ft){return Xe(ft).data.value})))}At(vt,{selected:!0,triggerValue:je},gt)}Je&&Je(ct,dt)},It=function(je,dt,gt){var ct=je,vt=K(St,je);if(Ne){var Et=wt(vt),Ot=Et.missingRawValues,Rt=Et.existRawValues,st=Rt.map(function(ft){return et(ft).key}),_t=Object(o.a)(st,{checked:!1,halfCheckedKeys:Ct},Tt),Mt=_t.checkedKeys;vt=[].concat(Object(w.a)(Ot),Object(w.a)(Mt.map(function(ft){return Xe(ft).data.value})))}At(vt,{selected:!1,triggerValue:je},gt),Ke&&Ke(ct,dt)},Nt=function(){At([],null,"clear")},lt=x.useCallback(function(ut){if(tt){var je={};Object.defineProperty(je,"documentClickClose",{get:function(){return Object(s.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),tt(ut,je)}},[tt]),at={optionLabelProp:null,optionFilterProp:q,dropdownAlign:He,internalProps:{mark:a.a,onClear:Nt,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ft,onRawDeselect:It}};return"filterTreeNode"in ne&&(at.filterOption=We),x.createElement(r.Provider,{value:{checkable:nt,loadData:Ae,treeLoadedKeys:re,onTreeLoad:Ve,checkedKeys:St,halfCheckedKeys:Ct,treeDefaultExpandAll:V,treeExpandedKeys:B,treeDefaultExpandedKeys:G,onTreeExpand:qe,treeIcon:he,treeMotion:Ce,showTreeIcon:Te,switcherIcon:De,treeLine:Pe,treeNodeFilterProp:q}},x.createElement(ge,Object.assign({ref:Fe,mode:rt?"multiple":null},ne,at,{value:Pt,labelInValue:!0,options:ot,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:lt})))}),xe=function(ne){Object(S.a)(ue,ne);var oe=Object(N.a)(ue);function ue(){var me;return Object(ae.a)(this,ue),me=oe.apply(this,arguments),me.selectRef=x.createRef(),me.focus=function(){me.selectRef.current.focus()},me.blur=function(){me.selectRef.current.blur()},me}return Object(M.a)(ue,[{key:"render",value:function(){return x.createElement(Re,Object.assign({ref:this.selectRef},this.props))}}]),ue}(x.Component);xe.TreeNode=c,xe.SHOW_ALL=_e,xe.SHOW_PARENT=Ee,xe.SHOW_CHILD=we;var be=xe,Ie=Le.e=be},"8hTe":function(Be,Le,Y){Be.exports={button:"button___1wy9m"}},"9Bee":function(Be,Le,Y){"use strict";var ae=Y("DYRE"),M=Y("zeV3"),S=Y("+L6B"),N=Y("2/Rp"),w=Y("k1fw"),R=Y("tJVT"),D=Y("cDcd"),L=Y.n(D),x=Y("vg9a"),T=Y("DlQD"),m=Y.n(T),p=Y("rUJ1");function o(K,W){var X=K.match(/^(\s+)(?:```)/);if(X===null)return W;var j=X[1];return W.split(` `).map(function(z){var ie=z.match(/^\s+/);if(ie===null)return z;var pe=Object(R.a)(ie,1),_e=pe[0];return _e.length>=j.length?z.slice(j.length):z}).join(` `)}var a=[],n=["