(window.webpackJsonp=window.webpackJsonp||[]).push([[217,5,7],{"+ua5":function(et,We,J){},"55Ip":function(et,We,J){"use strict";J.d(We,"a",function(){return t});var de=J("Ty5D"),H=J("dI71"),C=J("q1tI"),j=J.n(C),L=J("YS25"),A=J("17x9"),B=J.n(A),M=J("wx14"),w=J("zLVn"),S=J("9R94"),m=function(l){Object(H.a)(h,l);function h(){for(var b,p=arguments.length,x=new Array(p),R=0;RV&&(V=P.line_indent_level));var re={mode:K,parent:P,last_token:P?P.last_token:new s(t.START_BLOCK,""),last_word:P?P.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:V,alignment:0,line_indent_level:P?P.line_indent_level:V,start_line_index:this._output.get_line_number(),ternary_depth:0};return re},U.prototype._reset=function(P){var K=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new g(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(d.BlockStatement);var V=new o(P,this._options);return this._tokens=V.tokenize(),P},U.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,K=this._reset(this._source_text),V=this._options.eol;this._options.eol==="auto"&&(V=` `,K&&a.lineBreak.test(K||"")&&(V=K.match(a.lineBreak)[0]));for(var re=this._tokens.next();re;)this.handle_token(re),this._last_last_text=this._flags.last_token.text,this._flags.last_token=re,re=this._tokens.next();return P=this._output.get_code(V),P},U.prototype.handle_token=function(P,K){P.type===t.START_EXPR?this.handle_start_expr(P):P.type===t.END_EXPR?this.handle_end_expr(P):P.type===t.START_BLOCK?this.handle_start_block(P):P.type===t.END_BLOCK?this.handle_end_block(P):P.type===t.WORD?this.handle_word(P):P.type===t.RESERVED?this.handle_word(P):P.type===t.SEMICOLON?this.handle_semicolon(P):P.type===t.STRING?this.handle_string(P):P.type===t.EQUALS?this.handle_equals(P):P.type===t.OPERATOR?this.handle_operator(P):P.type===t.COMMA?this.handle_comma(P):P.type===t.BLOCK_COMMENT?this.handle_block_comment(P,K):P.type===t.COMMENT?this.handle_comment(P,K):P.type===t.DOT?this.handle_dot(P):P.type===t.EOF?this.handle_eof(P):P.type===t.UNKNOWN?this.handle_unknown(P,K):this.handle_unknown(P,K)},U.prototype.handle_whitespace_and_comments=function(P,K){var V=P.newlines,re=this._options.keep_array_indentation&&x(this._flags.mode);if(P.comments_before)for(var ee=P.comments_before.next();ee;)this.handle_whitespace_and_comments(ee,K),this.handle_token(ee,K),ee=P.comments_before.next();if(re)for(var le=0;le0,K);else if(this._options.max_preserve_newlines&&V>this._options.max_preserve_newlines&&(V=this._options.max_preserve_newlines),this._options.preserve_newlines&&V>1){this.print_newline(!1,K);for(var oe=1;oe0&&(!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))},U.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},U.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===d.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},U.prototype.start_of_object_property=function(){return this._flags.parent.mode===d.ObjectLiteral&&this._flags.mode===d.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"]))},U.prototype.start_of_statement=function(P){var K=!1;return K=K||E(this._flags.last_token,["var","let","const"])&&P.type===t.WORD,K=K||f(this._flags.last_token,"do"),K=K||!(this._flags.parent.mode===d.ObjectLiteral&&this._flags.mode===d.Statement)&&E(this._flags.last_token,W)&&!P.newlines,K=K||f(this._flags.last_token,"else")&&!(f(P,"if")&&!P.comments_before),K=K||this._flags.last_token.type===t.END_EXPR&&(this._previous_flags.mode===d.ForInitializer||this._previous_flags.mode===d.Conditional),K=K||this._flags.last_token.type===t.WORD&&this._flags.mode===d.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==t.WORD&&P.type!==t.RESERVED,K=K||this._flags.mode===d.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"])),K?(this.set_mode(d.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,E(P,["do","for","if","while"])),!0):!1},U.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var K=d.Expression;if(P.text==="["){if(this._flags.last_token.type===t.WORD||this._flags.last_token.text===")"){E(this._flags.last_token,n)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(K),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}K=d.ArrayLiteral,x(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,K=d.ForInitializer):r(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,K=d.Conditional):r(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(r(this._flags.last_token.text,n)||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(P);else if(this._flags.last_token.type===t.WORD){this._output.space_before_token=!1;var V=this._tokens.peek(-3);if(this._options.space_after_named_function&&V){var re=this._tokens.peek(-4);E(V,["async","function"])||V.text==="*"&&E(re,["async","function"])?this._output.space_before_token=!0:this._flags.mode===d.ObjectLiteral?(V.text==="{"||V.text===","||V.text==="*"&&(re.text==="{"||re.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(P);(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===d.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(P,P.newlines),this.print_token(P),this.set_mode(K),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},U.prototype.handle_end_expr=function(P){for(;this._flags.mode===d.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&x(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(P),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===d.Conditional&&(this._previous_flags.mode=d.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},U.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var K=this._tokens.peek(),V=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===t.END_EXPR?(this.set_mode(d.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(d.BlockStatement):V&&(r(V.text,[":",","])&&r(K.type,[t.STRING,t.WORD,t.RESERVED])||r(K.text,["get","set","..."])&&r(V.type,[t.WORD,t.RESERVED]))?r(this._last_last_text,["class","interface"])&&!r(V.text,[":",","])?this.set_mode(d.BlockStatement):this.set_mode(d.ObjectLiteral):this._flags.last_token.type===t.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(d.BlockStatement):r(this._flags.last_token.type,[t.EQUALS,t.START_EXPR,t.COMMA,t.OPERATOR])||E(this._flags.last_token,["return","throw","import","default"])?this.set_mode(d.ObjectLiteral):this.set_mode(d.BlockStatement),this._flags.last_token&&(E(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var re=!K.comments_before&&K.text==="}",ee=re&&this._flags.last_word==="function"&&this._flags.last_token.type===t.END_EXPR;if(this._options.brace_preserve_inline){var le=0,oe=null;this._flags.inline_frame=!0;do if(le+=1,oe=this._tokens.peek(le-1),oe.newlines){this._flags.inline_frame=!1;break}while(oe.type!==t.EOF&&!(oe.type===t.END_BLOCK&&oe.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==t.OPERATOR&&(ee||this._flags.last_token.type===t.EQUALS||E(this._flags.last_token,y)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(x(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(P),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(P),this.indent(),!re&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},U.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===d.Statement;)this.restore_mode();var K=this._flags.last_token.type===t.START_BLOCK;this._flags.inline_frame&&!K?this._output.space_before_token=!0:this._options.brace_style==="expand"?K||this.print_newline():K||(x(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(P)},U.prototype.handle_word=function(P){if(P.type===t.RESERVED){if(r(P.text,["set","get"])&&this._flags.mode!==d.ObjectLiteral)P.type=t.WORD;else if(P.text==="import"&&r(this._tokens.peek().text,["(","."]))P.type=t.WORD;else if(r(P.text,["as","from"])&&!this._flags.import_block)P.type=t.WORD;else if(this._flags.mode===d.ObjectLiteral){var K=this._tokens.peek();K.text===":"&&(P.type=t.WORD)}}if(this.start_of_statement(P)?E(this._flags.last_token,["var","let","const"])&&P.type===t.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!R(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||!E(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(f(P,"while")){this._output.space_before_token=!0,this.print_token(P),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&&f(P,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===d.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&E(P,["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(P),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(P)),f(P,"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()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===t.RESERVED||this._flags.last_token.type===t.WORD?E(this._flags.last_token,["get","set","new","export"])||E(this._flags.last_token,W)?this._output.space_before_token=!0:f(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&&(R(this._flags.mode)||x(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var V="NONE";if(this._flags.last_token.type===t.END_BLOCK?this._previous_flags.inline_frame?V="SPACE":E(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?V="NEWLINE":(V="SPACE",this._output.space_before_token=!0):V="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&this._flags.mode===d.BlockStatement?V="NEWLINE":this._flags.last_token.type===t.SEMICOLON&&R(this._flags.mode)?V="SPACE":this._flags.last_token.type===t.STRING?V="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===d.ObjectLiteral&&r(this._last_last_text,["{",","]))?V="SPACE":this._flags.last_token.type===t.START_BLOCK?this._flags.inline_frame?V="SPACE":V="NEWLINE":this._flags.last_token.type===t.END_EXPR&&(this._output.space_before_token=!0,V="NEWLINE"),E(P,n)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?V="SPACE":V="NEWLINE"),E(P,["else","catch","finally"]))if((!(this._flags.last_token.type===t.END_BLOCK&&this._previous_flags.mode===d.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var re=this._output.current_line;re.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else V==="NEWLINE"?E(this._flags.last_token,y)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&E(P,["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||!E(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(f(P,"if")&&f(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):E(P,n)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():V==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===t.WORD||P.previous.type===t.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===t.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&f(P,"from")&&(this._flags.import_block=!1))},U.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var K=this._tokens.peek();this._flags.mode===d.Statement&&!(this._flags.if_block&&f(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},U.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===t.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),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(P):P.text.startsWith("`")&&this._flags.last_token.type===t.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},U.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},U.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(R(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(P)):this._flags.mode===d.ObjectLiteral||this._flags.mode===d.Statement&&this._flags.parent.mode===d.ObjectLiteral?(this._flags.mode===d.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)},U.prototype.handle_operator=function(P){var K=P.text==="*"&&(E(this._flags.last_token,["function","yield"])||r(this._flags.last_token.type,[t.START_BLOCK,t.COMMA,t.END_BLOCK,t.SEMICOLON])),V=r(P.text,["-","+"])&&(r(this._flags.last_token.type,[t.START_BLOCK,t.START_EXPR,t.EQUALS,t.OPERATOR])||r(this._flags.last_token.text,n)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var re=!K;this.handle_whitespace_and_comments(P,re)}if(P.text==="*"&&this._flags.last_token.type===t.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(this._flags.last_token.type===t.OPERATOR&&r(this._options.operator_position,h)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),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 ee=!0,le=!0,oe=!1;if(P.text===":"?this._flags.ternary_depth===0?ee=!1:(this._flags.ternary_depth-=1,oe=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!V&&!K&&this._options.preserve_newlines&&r(P.text,e)){var $=P.text===":",Z=$&&oe,ne=$&&!oe;switch(this._options.operator_position){case l.before_newline:this._output.space_before_token=!ne,this.print_token(P),(!$||Z)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case l.after_newline:this._output.space_before_token=!0,!$||Z?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case l.preserve_newline:ne||this.allow_wrap_or_preserved_newline(P),ee=!(this._output.just_added_newline()||ne),this._output.space_before_token=ee,this.print_token(P),this._output.space_before_token=!0;return}}if(K){this.allow_wrap_or_preserved_newline(P),ee=!1;var X=this._tokens.peek();le=X&&r(X.type,[t.WORD,t.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),ee=this._flags.last_token.type===t.START_BLOCK,le=!1;else if(r(P.text,["--","++","!","~"])||V){if((this._flags.last_token.type===t.COMMA||this._flags.last_token.type===t.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),ee=!1,le=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var z=E(this._flags.last_token,y)&&P.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===";"&&R(this._flags.mode)&&(ee=!0),this._flags.last_token.type===t.RESERVED?ee=!0:this._flags.last_token.type===t.END_EXPR?ee=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===t.OPERATOR&&(ee=r(P.text,["--","-","++","+"])&&r(this._flags.last_token.text,["--","-","++","+"]),r(P.text,["+","-"])&&r(this._flags.last_token.text,["--","++"])&&(le=!0)),(this._flags.mode===d.BlockStatement&&!this._flags.inline_frame||this._flags.mode===d.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ee,this.print_token(P),this._output.space_before_token=le},U.prototype.handle_block_comment=function(P,K){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,K),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,K)},U.prototype.print_block_commment=function(P,K){var V=p(P.text),re,ee=!1,le=!1,oe=P.whitespace_before,$=oe.length;if(this.print_newline(!1,K),this.print_token_line_indentation(P),this._output.add_token(V[0]),this.print_newline(!1,K),V.length>1){for(V=V.slice(1),ee=O(V,"*"),le=N(V,oe),ee&&(this._flags.alignment=1),re=0;re=0;a--)if(this.__items[a].match(s))return!0;return!1},S.prototype.set_indent=function(s,a){this.is_empty()&&(this.__indent_count=s||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},S.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)},S.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},S.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var s=this.__parent.current_line;return s.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),s.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),s.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,s.__items[0]===" "&&(s.__items.splice(0,1),s.__character_count-=1),!0}return!1},S.prototype.is_empty=function(){return this.__items.length===0},S.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},S.prototype.push=function(s){this.__items.push(s);var a=s.lastIndexOf(` `);a!==-1?this.__character_count=s.length-a:this.__character_count+=s.length},S.prototype.pop=function(){var s=null;return this.is_empty()||(s=this.__items.pop(),this.__character_count-=s.length),s},S.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},S.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},S.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},S.prototype.toString=function(){var s="";return this.is_empty()?this.__parent.indent_empty_lines&&(s=this.__parent.get_indent_string(this.__indent_count)):(s=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),s+=this.__items.join("")),s};function m(s,a){this.__cache=[""],this.__indent_size=s.indent_size,this.__indent_string=s.indent_char,s.indent_with_tabs||(this.__indent_string=new Array(s.indent_size+1).join(s.indent_char)),a=a||"",s.indent_level>0&&(a=new Array(s.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}m.prototype.get_indent_size=function(s,a){var i=this.__base_string_length;return a=a||0,s<0&&(i=0),i+=s*this.__indent_size,i+=a,i},m.prototype.get_indent_string=function(s,a){var i=this.__base_string;return a=a||0,s<0&&(s=0,i=""),a+=s*this.__indent_size,this.__ensure_cache(a),i+=this.__cache[a],i},m.prototype.__ensure_cache=function(s){for(;s>=this.__cache.length;)this.__add_column()},m.prototype.__add_column=function(){var s=this.__cache.length,a=0,i="";this.__indent_size&&s>=this.__indent_size&&(a=Math.floor(s/this.__indent_size),s-=a*this.__indent_size,i=new Array(a+1).join(this.__indent_string)),s&&(i+=new Array(s+1).join(" ")),this.__cache.push(i)};function g(s,a){this.__indent_cache=new m(s,a),this.raw=!1,this._end_with_newline=s.end_with_newline,this.indent_size=s.indent_size,this.wrap_line_length=s.wrap_line_length,this.indent_empty_lines=s.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new S(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}g.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},g.prototype.get_line_number=function(){return this.__lines.length},g.prototype.get_indent_string=function(s,a){return this.__indent_cache.get_indent_string(s,a)},g.prototype.get_indent_size=function(s,a){return this.__indent_cache.get_indent_size(s,a)},g.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},g.prototype.add_new_line=function(s){return this.is_empty()||!s&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},g.prototype.get_code=function(s){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 i=this.__lines.join(` `);return s!==` `&&(i=i.replace(/[\n]/g,s)),i},g.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},g.prototype.set_indent=function(s,a){return s=s||0,a=a||0,this.next_line.set_indent(s,a),this.__lines.length>1?(this.current_line.set_indent(s,a),!0):(this.current_line.set_indent(),!1)},g.prototype.add_raw_token=function(s){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},g.prototype.just_added_newline=function(){return this.current_line.is_empty()},g.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},g.prototype.ensure_empty_line_above=function(s,a){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(o.item(0).indexOf(s)!==0&&o.item(-1)!==a){this.__lines.splice(i+1,0,new S(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},w.exports.Output=g},function(w){function S(m,g,s,a){this.type=m,this.text=g,this.comments_before=null,this.newlines=s||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}w.exports.Token=S},function(w,S){var m="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",g="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\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",i="(?:\\\\u[0-9a-fA-F]{4}|["+m+s+"])",o="(?:\\\\u[0-9a-fA-F]{4}|["+g+s+a+"])*";S.identifier=new RegExp(i+o,"g"),S.identifierStart=new RegExp(i),S.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+g+s+a+"])+");var n=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;S.newline=/[\n\r\u2028\u2029]/,S.lineBreak=new RegExp(`\r |`+S.newline.source),S.allLineBreaks=new RegExp(S.lineBreak.source,"g")},function(w,S,m){var g=m(6).Options,s=["before-newline","after-newline","preserve-newline"];function a(i){g.call(this,i,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="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 n=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(" "),u=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";u=u.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),u="\\?\\.(?!\\d) "+u,u=u.replace(/ /g,"|");var l=new RegExp(u),h="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),d=h.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+d.join("|")+")$"),p,x=function(O,N){s.call(this,O,N),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var U=new n(this._input),W=new e(this._input).read_options(this._options);this.__patterns={template:W,identifier:W.starting_with(o.identifier).matching(o.identifierMatch),number:U.matching(v),punct:U.matching(l),comment:U.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:U.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:U.matching(//),include:U.starting_with(/#include/).until_after(o.lineBreak),shebang:U.starting_with(/#!/).until_after(o.lineBreak),xml:U.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:W.until(/['\\\n\r\u2028\u2029]/),double_quote:W.until(/["\\\n\r\u2028\u2029]/),template_text:W.until(/[`\\$]/),template_expression:W.until(/[`}\\]/)}};x.prototype=new s,x.prototype._is_comment=function(O){return O.type===r.COMMENT||O.type===r.BLOCK_COMMENT||O.type===r.UNKNOWN},x.prototype._is_opening=function(O){return O.type===r.START_BLOCK||O.type===r.START_EXPR},x.prototype._is_closing=function(O,N){return(O.type===r.END_BLOCK||O.type===r.END_EXPR)&&N&&(O.text==="]"&&N.text==="["||O.text===")"&&N.text==="("||O.text==="}"&&N.text==="{")},x.prototype._reset=function(){p=!1},x.prototype._get_next_token=function(O,N){var U=null;this._readWhitespace();var W=this._input.peek();return W===null?this._create_token(r.EOF,""):(U=U||this._read_non_javascript(W),U=U||this._read_string(W),U=U||this._read_word(O),U=U||this._read_singles(W),U=U||this._read_comment(W),U=U||this._read_regexp(W,O),U=U||this._read_xml(W,O),U=U||this._read_punctuation(),U=U||this._create_token(r.UNKNOWN,this._input.next()),U)},x.prototype._read_word=function(O){var N;if(N=this.__patterns.identifier.read(),N!=="")return N=N.replace(o.allLineBreaks,` `),!(O.type===r.DOT||O.type===r.RESERVED&&(O.text==="set"||O.text==="get"))&&b.test(N)?(N==="in"||N==="of")&&(O.type===r.WORD||O.type===r.STRING)?this._create_token(r.OPERATOR,N):this._create_token(r.RESERVED,N):this._create_token(r.WORD,N);if(N=this.__patterns.number.read(),N!=="")return this._create_token(r.WORD,N)},x.prototype._read_singles=function(O){var N=null;return O==="("||O==="["?N=this._create_token(r.START_EXPR,O):O===")"||O==="]"?N=this._create_token(r.END_EXPR,O):O==="{"?N=this._create_token(r.START_BLOCK,O):O==="}"?N=this._create_token(r.END_BLOCK,O):O===";"?N=this._create_token(r.SEMICOLON,O):O==="."&&E.test(this._input.peek(1))?N=this._create_token(r.DOT,O):O===","&&(N=this._create_token(r.COMMA,O)),N&&this._input.next(),N},x.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)},x.prototype._read_non_javascript=function(O){var N="";if(O==="#"){if(this._is_first_token()&&(N=this.__patterns.shebang.read(),N))return this._create_token(r.UNKNOWN,N.trim()+` `);if(N=this.__patterns.include.read(),N)return this._create_token(r.UNKNOWN,N.trim()+` `);O=this._input.next();var U="#";if(this._input.hasNext()&&this._input.testChar(f)){do O=this._input.next(),U+=O;while(this._input.hasNext()&&O!=="#"&&O!=="=");return O==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(U+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(U+="{}",this._input.next(),this._input.next())),this._create_token(r.WORD,U)}this._input.back()}else if(O==="<"&&this._is_first_token()){if(N=this.__patterns.html_comment_start.read(),N){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)N+=this._input.next();return p=!0,this._create_token(r.COMMENT,N)}}else if(p&&O==="-"&&(N=this.__patterns.html_comment_end.read(),N))return p=!1,this._create_token(r.COMMENT,N);return null},x.prototype._read_comment=function(O){var N=null;if(O==="/"){var U="";if(this._input.peek(1)==="*"){U=this.__patterns.block_comment.read();var W=T.get_directives(U);W&&W.ignore==="start"&&(U+=T.readIgnored(this._input)),U=U.replace(o.allLineBreaks,` `),N=this._create_token(r.BLOCK_COMMENT,U),N.directives=W}else this._input.peek(1)==="/"&&(U=this.__patterns.comment.read(),N=this._create_token(r.COMMENT,U))}return N},x.prototype._read_string=function(O){if(O==="`"||O==="'"||O==='"'){var N=this._input.next();return this.has_char_escapes=!1,O==="`"?N+=this._read_string_recursive("`",!0,"${"):N+=this._read_string_recursive(O),this.has_char_escapes&&this._options.unescape_strings&&(N=R(N)),this._input.peek()===O&&(N+=this._input.next()),N=N.replace(o.allLineBreaks,` `),this._create_token(r.STRING,N)}return null},x.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])},x.prototype._read_regexp=function(O,N){if(O==="/"&&this._allow_regexp_or_xml(N)){for(var U=this._input.next(),W=!1,P=!1;this._input.hasNext()&&(W||P||this._input.peek()!==O)&&!this._input.testChar(o.newline);)U+=this._input.peek(),W?W=!1:(W=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===O&&(U+=this._input.next(),U+=this._input.read(o.identifier)),this._create_token(r.STRING,U)}return null},x.prototype._read_xml=function(O,N){if(this._options.e4x&&O==="<"&&this._allow_regexp_or_xml(N)){var U="",W=this.__patterns.xml.read_match();if(W){for(var P=W[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=P.indexOf("{")===0,V=0;W;){var re=!!W[1],ee=W[2],le=!!W[W.length-1]||ee.slice(0,8)==="![CDATA[";if(!le&&(ee===P||K&&ee.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(re?--V:++V),U+=W[0],V<=0)break;W=this.__patterns.xml.read_match()}return W||(U+=this._input.match(/[\s\S]*/g)[0]),U=U.replace(o.allLineBreaks,` `),this._create_token(r.STRING,U)}}return null};function R(O){for(var N="",U=0,W=new g(O),P=null;W.hasNext();)if(P=W.match(/([\s]|[^\\]|\\\\)+/g),P&&(N+=P[0]),W.peek()==="\\"){if(W.next(),W.peek()==="x")P=W.match(/x([0-9A-Fa-f]{2})/g);else if(W.peek()==="u")P=W.match(/u([0-9A-Fa-f]{4})/g);else{N+="\\",W.hasNext()&&(N+=W.next());continue}if(!P)return O;if(U=parseInt(P[1],16),U>126&&U<=255&&P[0].indexOf("x")===0)return O;if(U>=0&&U<32){N+="\\"+P[0];continue}else U===34||U===39||U===92?N+="\\"+String.fromCharCode(U):N+=String.fromCharCode(U)}return N}x.prototype._read_string_recursive=function(O,N,U){var W,P;O==="'"?P=this.__patterns.single_quote:O==='"'?P=this.__patterns.double_quote:O==="`"?P=this.__patterns.template_text:O==="}"&&(P=this.__patterns.template_expression);for(var K=P.read(),V="";this._input.hasNext();){if(V=this._input.next(),V===O||!N&&o.newline.test(V)){this._input.back();break}else V==="\\"&&this._input.hasNext()?(W=this._input.peek(),W==="x"||W==="u"?this.has_char_escapes=!0:W==="\r"&&this._input.peek(1)===` `&&this._input.next(),V+=this._input.next()):U&&(U==="${"&&V==="$"&&this._input.peek()==="{"&&(V+=this._input.next()),U===V&&(O==="`"?V+=this._read_string_recursive("}",N,"`"):V+=this._read_string_recursive("`",N,"${"),this._input.hasNext()&&(V+=this._input.next())));V+=P.read(),K+=V}return K},w.exports.Tokenizer=x,w.exports.TOKEN=r,w.exports.positionable_operators=y.slice(),w.exports.line_starters=h.slice()},function(w){var S=RegExp.prototype.hasOwnProperty("sticky");function m(g){this.__input=g||"",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&&g=0&&s=g.length&&this.__input.substring(s-g.length,s).toLowerCase()===g},w.exports.InputScanner=m},function(w,S,m){var g=m(8).InputScanner,s=m(3).Token,a=m(10).TokenStream,i=m(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},n=function(e,t){this._input=new g(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};n.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var e,t=new s(o.START,""),r=null,T=[],v=new a;t.type!==o.EOF;){for(e=this._get_next_token(t,r);this._is_comment(e);)v.add(e),e=this._get_next_token(t,r);v.isEmpty()||(e.comments_before=v,v=new a),e.parent=r,this._is_opening(e)?(T.push(r),r=e):r&&this._is_closing(e,r)&&(e.opened=r,r.closed=e,r=T.pop(),e.parent=r),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(e,t){this._readWhitespace();var r=this._input.read(/.+/g);return r?this._create_token(o.RAW,r):this._create_token(o.EOF,"")},n.prototype._is_comment=function(e){return!1},n.prototype._is_opening=function(e){return!1},n.prototype._is_closing=function(e,t){return!1},n.prototype._create_token=function(e,t){var r=new s(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return r},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},w.exports.Tokenizer=n,w.exports.TOKEN=o},function(w){function S(m){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=m}S.prototype.restart=function(){this.__position=0},S.prototype.isEmpty=function(){return this.__tokens_length===0},S.prototype.hasNext=function(){return this.__position=0&&m/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new g,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(i){var o=this._create();return o._disabled[i]=!0,o._update(),o},a.prototype.read_options=function(i){var o=this._create();for(var n in s)o._disabled[n]=i.templating.indexOf(n)===-1;return o._update(),o},a.prototype.exclude=function(i){var o=this._create();return o._excluded[i]=!0,o._update(),o},a.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),i+=o,o=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},a.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},a.prototype._read_template=function(){var i="",o=this._input.peek();if(o==="<"){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&n==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&n==="%"&&(i=i||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},w.exports.TemplatablePattern=a}],A={};function B(w){var S=A[w];if(S!==void 0)return S.exports;var m=A[w]={exports:{}};return L[w](m,m.exports,B),m.exports}var M=B(0);C=M})();var j=C;!(de=[],H=function(){return{js_beautify:j}}.apply(We,de),H!==void 0&&(et.exports=H))})()},"815F":function(et,We,J){"use strict";J.d(We,"e",function(){return B}),J.d(We,"c",function(){return w}),J.d(We,"d",function(){return S}),J.d(We,"a",function(){return g}),J.d(We,"f",function(){return s}),J.d(We,"b",function(){return a});var de=J("KQm4"),H=J("VTBJ"),C=J("Ff2n"),j=J("Zm9Q"),L=J("Kwbf"),A=J("OZM5");function B(i,o){return i!=null?i:o}function M(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(e||[]).forEach(function(r){var T=r.key,v=r.children;Object(L.a)(T!=null,"Tree node must have a certain key: [".concat(t).concat(T,"]"));var f=String(T);Object(L.a)(!o.has(f)||T===null||T===void 0,"Same 'key' exist in the Tree: ".concat(f)),o.set(f,!0),n(v,"".concat(t).concat(f," > "))})}n(i)}function w(i){function o(n){var e=Object(j.a)(n);return e.map(function(t){if(!Object(A.i)(t))return Object(L.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var r=t.key,T=t.props,v=T.children,f=Object(C.a)(T,["children"]),E=Object(H.a)({key:r},f),y=o(v);return y.length&&(E.children=y),E}).filter(function(t){return t})}return o(i)}function S(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=new Set(o===!0?[]:o),e=[];function t(r){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return r.map(function(v,f){var E=Object(A.h)(T?T.pos:"0",f),y=B(v.key,E),u=Object(H.a)(Object(H.a)({},v),{},{parent:T,pos:E,children:null,data:v,isStart:[].concat(Object(de.a)(T?T.isStart:[]),[f===0]),isEnd:[].concat(Object(de.a)(T?T.isEnd:[]),[f===r.length-1])});return e.push(u),o===!0||n.has(y)?u.children=t(v.children||[],u):u.children=[],u})}return t(i),e}function m(i,o,n){var e;n?typeof n=="string"?e=function(T){return T[n]}:typeof n=="function"&&(e=function(T){return n(T)}):e=function(T,v){return B(T.key,v)};function t(r,T,v){var f=r?r.children:i,E=r?Object(A.h)(v.pos,T):"0";if(r){var y=e(r,E),u={node:r,index:T,pos:E,key:y,parentPos:v.node?v.pos:null,level:v.level+1};o(u)}f&&f.forEach(function(l,h){t(l,h,{node:r,pos:E,level:v?v.level+1:-1})})}t(null)}function g(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o.initWrapper,e=o.processEntity,t=o.onProcessFinished,r=arguments.length>2?arguments[2]:void 0,T={},v={},f={posEntities:T,keyEntities:v};return n&&(f=n(f)||f),m(i,function(E){var y=E.node,u=E.index,l=E.pos,h=E.key,d=E.parentPos,b=E.level,p={node:y,index:u,key:h,pos:l,level:b},x=B(h,l);T[l]=p,v[x]=p,p.parent=T[d],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),e&&e(p,f)},r),t&&t(f),f}function s(i,o){var n=o.expandedKeys,e=o.selectedKeys,t=o.loadedKeys,r=o.loadingKeys,T=o.checkedKeys,v=o.halfCheckedKeys,f=o.dragOverNodeKey,E=o.dropPosition,y=o.keyEntities,u=y[i],l={eventKey:i,expanded:n.indexOf(i)!==-1,selected:e.indexOf(i)!==-1,loaded:t.indexOf(i)!==-1,loading:r.indexOf(i)!==-1,checked:T.indexOf(i)!==-1,halfChecked:v.indexOf(i)!==-1,pos:String(u?u.pos:""),dragOver:f===i&&E===0,dragOverGapTop:f===i&&E===-1,dragOverGapBottom:f===i&&E===1};return l}function a(i){var o=i.data,n=i.expanded,e=i.selected,t=i.checked,r=i.loaded,T=i.loading,v=i.halfChecked,f=i.dragOver,E=i.dragOverGapTop,y=i.dragOverGapBottom,u=i.pos,l=i.active,h=Object(H.a)(Object(H.a)({},o),{},{expanded:n,selected:e,checked:t,loaded:r,loading:T,halfChecked:v,dragOver:f,dragOverGapTop:E,dragOverGapBottom:y,pos:u,active:l});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(L.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),h}},"8Jsi":function(et,We,J){"use strict";J.d(We,"d",function(){return d}),J.d(We,"a",function(){return Oe}),J.d(We,"b",function(){return Pe}),J.d(We,"c",function(){return Ae});var de=J("1OyB"),H=J("vuIU"),C=J("Ji7U"),j=J("LK+K"),L=J("KQm4"),A=J("U8pU"),B=J("ODXe"),M=J("VTBJ"),w=J("q1tI"),S=J("qNPg"),m=J("2Qr1"),g=J("815F"),s=J("NvD2"),a=J("wPlo"),i=J("6cGi"),o=J("Kwbf"),n=J("4IlW"),e=J("YrtM"),t=J("fAei"),r=w.createContext(null);function T(ue,pe){if(!ue)return!0;var ye=ue.data,Te=ye.disabled,we=ye.disableCheckbox;switch(pe){case"select":return Te;case"checkbox":return Te||we}return!1}function v(ue,pe){var ye=w.useCallback(function(we){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ve=arguments.length>2?arguments[2]:void 0,Ne=ue.get(we);return!ve&&T(Ne,xe)?null:Ne},[ue]),Te=w.useCallback(function(we){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ve=arguments.length>2?arguments[2]:void 0,Ne=pe.get(we);return!ve&&T(Ne,xe)?null:Ne},[pe]);return[ye,Te]}function f(ue){return w.useMemo(function(){var pe=new Map,ye=new Map;return ue.forEach(function(Te){pe.set(Te.key,Te),ye.set(Te.data.value,Te)}),[pe,ye]},[ue])}var E={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},y=function(pe,ye){var Te=pe.prefixCls,we=pe.height,xe=pe.itemHeight,ve=pe.virtual,Ne=pe.options,Ue=pe.flattenOptions,he=pe.multiple,Le=pe.searchValue,se=pe.onSelect,te=pe.onToggleOpen,ae=pe.open,G=pe.notFoundContent,Y=pe.onMouseEnter,Q=w.useContext(r),q=Q.checkable,ce=Q.checkedKeys,_e=Q.halfCheckedKeys,ke=Q.treeExpandedKeys,Ke=Q.treeDefaultExpandAll,Xe=Q.treeDefaultExpandedKeys,ze=Q.onTreeExpand,qe=Q.treeIcon,it=Q.showTreeIcon,Ye=Q.switcherIcon,mt=Q.treeLine,at=Q.treeNodeFilterProp,yt=Q.loadData,dt=Q.treeLoadedKeys,tt=Q.treeMotion,_t=Q.onTreeLoad,Et=w.useRef(),Be=Object(e.a)(function(){return Ne},[ae,Ne],function(He,Ce){return Ce[0]&&He[1]!==Ce[1]}),$e=f(Ue),Qe=Object(B.a)($e,2),Je=Qe[0],ft=Qe[1],Tt=v(Je,ft),Rt=Object(B.a)(Tt,2),ot=Rt[0],rt=Rt[1],Ze=w.useMemo(function(){return ce.map(function(He){var Ce=rt(He);return Ce?Ce.key:null})},[ce]),ut=w.useMemo(function(){return q?{checked:Ze,halfChecked:_e}:null},[Ze,_e,q]);w.useEffect(function(){if(ae&&!he&&Ze.length){var He;(He=Et.current)===null||He===void 0||He.scrollTo({key:Ze[0]})}},[ae]);var ct=String(Le).toLowerCase(),st=function(Ce){return ct?String(Ce[at]).toLowerCase().includes(ct):!1},lt=w.useState(Xe),gt=Object(B.a)(lt,2),It=gt[0],Ft=gt[1],Mt=w.useState(null),Wt=Object(B.a)(Mt,2),jt=Wt[0],Vt=Wt[1],Kt=w.useMemo(function(){return ke?Object(L.a)(ke):Le?jt:It},[It,jt,ct,ke]);w.useEffect(function(){Le&&Vt(Ue.map(function(He){return He.key}))},[Le]);var k=function(Ce){Ft(Ce),Vt(Ce),ze&&ze(Ce)},c=function(Ce){Ce.preventDefault()},_=function(Ce,Ve){var Ge=Ve.node.key,nt=ot(Ge,q?"checkbox":"select");nt!==null&&se(nt.data.value,{selected:!ce.includes(nt.data.value)}),he||te(!1)},I=w.useState(null),F=Object(B.a)(I,2),D=F[0],ie=F[1],Re=ot(D);if(w.useImperativeHandle(ye,function(){return{onKeyDown:function(Ce){var Ve,Ge=Ce.which;switch(Ge){case n.a.UP:case n.a.DOWN:case n.a.LEFT:case n.a.RIGHT:(Ve=Et.current)===null||Ve===void 0||Ve.onKeyDown(Ce);break;case n.a.ENTER:{Re!==null&&_(null,{node:{key:D},selected:!ce.includes(Re.data.value)});break}case n.a.ESC:te(!1)}},onKeyUp:function(){}}}),Be.length===0)return w.createElement("div",{role:"listbox",className:"".concat(Te,"-empty"),onMouseDown:c},G);var je={};return dt&&(je.loadedKeys=dt),Kt&&(je.expandedKeys=Kt),w.createElement("div",{onMouseDown:c,onMouseEnter:Y},Re&&ae&&w.createElement("span",{style:E,"aria-live":"assertive"},Re.data.value),w.createElement(t.b,Object.assign({ref:Et,focusable:!1,prefixCls:"".concat(Te,"-tree"),treeData:Be,height:we,itemHeight:xe,virtual:ve,multiple:he,icon:qe,showIcon:it,switcherIcon:Ye,showLine:mt,loadData:Le?null:yt,motion:tt,checkable:q,checkStrictly:!0,checkedKeys:ut,selectedKeys:q?[]:Ze,defaultExpandAll:Ke},je,{onActiveChange:ie,onSelect:_,onCheck:_,onExpand:k,onLoad:_t,filterTreeNode:st})))},u=w.forwardRef(y);u.displayName="OptionList";var l=u,h=function(){return null},d=h,b=J("Ff2n"),p=J("Zm9Q");function x(ue){return Object(p.a)(ue).map(function(pe){if(!w.isValidElement(pe)||!pe.type)return null;var ye=pe.key,Te=pe.props,we=Te.children,xe=Te.value,ve=Object(b.a)(Te,["children","value"]),Ne=Object(M.a)({key:ye,value:xe},ve),Ue=x(we);return Ue.length&&(Ne.children=Ue),Ne}).filter(function(pe){return pe})}function R(ue){if(!ue)return ue;var pe=Object(M.a)({},ue);return"props"in pe||Object.defineProperty(pe,"props",{get:function(){return Object(o.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),pe}}),pe}function O(ue,pe,ye,Te,we){var xe=null,ve=null;function Ne(){function Ue(he){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return he.map(function(te,ae){var G="".concat(Le,"-").concat(ae),Y=ye.includes(te.value),Q=Ue(te.children||[],G,Y),q=w.createElement(d,Object.assign({},te),Q.map(function(_e){return _e.node}));if(pe===te.value&&(xe=q),Y){var ce={pos:G,node:q,children:Q};return se||ve.push(ce),ce}return null}).filter(function(te){return te})}ve||(ve=[],Ue(Te),ve.sort(function(he,Le){var se=he.node.props.value,te=Le.node.props.value,ae=ye.indexOf(se),G=ye.indexOf(te);return ae-G}))}Object.defineProperty(ue,"triggerNode",{get:function(){return Object(o.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ne(),xe}}),Object.defineProperty(ue,"allCheckedNodes",{get:function(){return Object(o.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ne(),we?ve:ve.map(function(he){var Le=he.node;return Le})}})}function N(ue){return Array.isArray(ue)?ue:ue!==void 0?[ue]:[]}function U(ue,pe){var ye=new Map;return pe.forEach(function(Te){var we=Te.data;ye.set(we.value,we)}),ue.map(function(Te){return R(ye.get(Te))})}function W(ue,pe){var ye=U([ue],pe)[0];return ye?ye.disabled:!1}function P(ue){return ue.disabled||ue.disableCheckbox||ue.checkable===!1}function K(ue){for(var pe=ue.parent,ye=0,Te=pe;Te;)Te=Te.parent,ye+=1;return ye}function V(ue){function pe(Te){return(Te||[]).map(function(we){var xe=we.value,ve=we.key,Ne=we.children,Ue=Object(M.a)(Object(M.a)({},we),{},{key:"key"in we?ve:xe});return Ne&&(Ue.children=pe(Ne)),Ue})}var ye=Object(g.d)(pe(ue),!0);return ye.map(function(Te){return{key:Te.data.key,data:Te.data,level:K(Te)}})}function re(ue){return function(pe,ye){var Te=ye[ue];return String(Te).toLowerCase().includes(String(pe).toLowerCase())}}function ee(ue,pe,ye){var Te=ye.optionFilterProp,we=ye.filterOption;if(we===!1)return pe;var xe;typeof we=="function"?xe=we:xe=re(Te);function ve(Ne){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ne.map(function(he){var Le=he.children,se=Ue||xe(ue,R(he)),te=ve(Le||[],se);return se||te.length?Object(M.a)(Object(M.a)({},he),{},{children:te}):null}).filter(function(he){return he})}return ve(pe)}function le(ue,pe,ye,Te){var we=new Map;return N(pe).forEach(function(xe){xe&&Object(A.a)(xe)==="object"&&"value"in xe&&we.set(xe.value,xe)}),ue.map(function(xe){var ve={value:xe},Ne=ye(xe,"select",!0),Ue=Ne?Te(Ne.data):xe;if(we.has(xe)){var he=we.get(xe);ve.label="label"in he?he.label:Ue,"halfChecked"in he&&(ve.halfChecked=he.halfChecked)}else ve.label=Ue;return ve})}function oe(ue,pe){var ye=new Set(ue);return ye.add(pe),Array.from(ye)}function $(ue,pe){var ye=new Set(ue);return ye.delete(pe),Array.from(ye)}function Z(ue){var pe=ue.searchPlaceholder,ye=ue.treeCheckStrictly,Te=ue.treeCheckable,we=ue.labelInValue,xe=ue.value,ve=ue.multiple;Object(o.a)(!pe,"`searchPlaceholder` has been removed."),ye&&we===!1&&Object(o.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(we||ye)&&Object(o.a)(N(xe).every(function(Ne){return Ne&&Object(A.a)(Ne)==="object"&&"value"in Ne}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),ye||ve||Te?Object(o.a)(!xe||Array.isArray(xe),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(o.a)(!Array.isArray(xe),"`value` should not be array when `TreeSelect` is single mode.")}var ne=Z,X=10;function z(ue,pe){var ye=pe.id,Te=pe.pId,we=pe.rootPId,xe={},ve=[],Ne=ue.map(function(Ue){var he=Object(M.a)({},Ue),Le=he[ye];return xe[Le]=he,he.key=he.key||Le,he});return Ne.forEach(function(Ue){var he=Ue[Te],Le=xe[he];Le&&(Le.children=Le.children||[],Le.children.push(Ue)),(he===we||!Le&&we===null)&&ve.push(Ue)}),ve}function fe(ue,pe){var ye=0,Te=new Set;function we(xe){return(xe||[]).map(function(ve){var Ne=ve.key,Ue=ve.value,he=ve.children,Le=Object(b.a)(ve,["key","value","children"]),se="value"in ve?Ue:Ne,te=Object(M.a)(Object(M.a)({},Le),{},{key:Ne!=null?Ne:se,value:se,title:pe(ve)});return"children"in ve&&(te.children=we(he)),te})}return we(ue)}function Se(ue,pe,ye){var Te=ye.getLabelProp,we=ye.simpleMode,xe=w.useRef({});return ue?(xe.current.formatTreeData=xe.current.treeData===ue?xe.current.formatTreeData:fe(we?z(ue,Object(M.a)({id:"id",pId:"pId",rootPId:null},we!==!0?we:{})):ue,Te),xe.current.treeData=ue):xe.current.formatTreeData=xe.current.children===pe?xe.current.formatTreeData:fe(x(pe),Te),xe.current.formatTreeData}var Oe="SHOW_ALL",Ae="SHOW_PARENT",Pe="SHOW_CHILD";function me(ue,pe,ye){var Te=new Set(ue);return pe===Pe?ue.filter(function(we){var xe=ye[we];return!(xe&&xe.children&&xe.children.every(function(ve){var Ne=ve.node;return P(Ne)||Te.has(Ne.key)}))}):pe===Ae?ue.filter(function(we){var xe=ye[we],ve=xe?xe.parent:null;return!(ve&&!P(ve.node)&&Te.has(ve.node.key))}):ue}function ge(ue,pe){var ye=pe.value,Te=pe.getEntityByValue,we=pe.getEntityByKey,xe=pe.treeConduction,ve=pe.showCheckedStrategy,Ne=pe.conductKeyEntities,Ue=pe.getLabelProp;return w.useMemo(function(){var he=ue;if(xe){var Le=me(ue.map(function(se){var te=Te(se);return te?te.key:se}),ve,Ne);he=Le.map(function(se){var te=we(se);return te?te.data.value:se})}return le(he,ye,Te,Ue)},[ue,ye,xe,ve,Te])}var be=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ee=Object(S.a)({prefixCls:"rc-tree-select",components:{optionList:l},convertChildrenToData:function(){return null},flattenOptions:V,getLabeledValue:m.e,filterOptions:ee,isValueDisabled:W,findValueOption:U,omitDOMProps:function(pe){var ye=Object(M.a)({},pe);return be.forEach(function(Te){delete ye[Te]}),ye}});Ee.displayName="Select";var Ie=w.forwardRef(function(ue,pe){var ye=ue.multiple,Te=ue.treeCheckable,we=ue.treeCheckStrictly,xe=ue.showCheckedStrategy,ve=xe===void 0?"SHOW_CHILD":xe,Ne=ue.labelInValue,Ue=ue.loadData,he=ue.treeLoadedKeys,Le=ue.treeNodeFilterProp,se=Le===void 0?"value":Le,te=ue.treeNodeLabelProp,ae=ue.treeDataSimpleMode,G=ue.treeData,Y=ue.treeExpandedKeys,Q=ue.treeDefaultExpandedKeys,q=ue.treeDefaultExpandAll,ce=ue.children,_e=ue.treeIcon,ke=ue.showTreeIcon,Ke=ue.switcherIcon,Xe=ue.treeLine,ze=ue.treeMotion,qe=ue.filterTreeNode,it=ue.dropdownPopupAlign,Ye=ue.onChange,mt=ue.onTreeExpand,at=ue.onTreeLoad,yt=ue.onDropdownVisibleChange,dt=ue.onSelect,tt=ue.onDeselect,_t=Te||we,Et=ye||_t,Be=Te&&!we,$e=we||Ne,Qe=w.useRef(null);w.useImperativeHandle(pe,function(){return{focus:Qe.current.focus,blur:Qe.current.blur}});var Je=function(Ge){return G&&Ge.label||Ge.title},ft=function(Ge){return te?Ge[te]:Je(Ge)},Tt=Se(G,ce,{getLabelProp:Je,simpleMode:ae}),Rt=Object(w.useMemo)(function(){return V(Tt)},[Tt]),ot=f(Rt),rt=Object(B.a)(ot,2),Ze=rt[0],ut=rt[1],ct=v(Ze,ut),st=Object(B.a)(ct,2),lt=st[0],gt=st[1],It=Object(w.useMemo)(function(){return Be?Object(g.a)(Tt):{keyEntities:null}},[Tt,Te,we]),Ft=It.keyEntities,Mt=Object(i.a)(ue.defaultValue,{value:ue.value}),Wt=Object(B.a)(Mt,2),jt=Wt[0],Vt=Wt[1],Kt=function(Ge){var nt=[],St=[];return Ge.forEach(function(xt){gt(xt)?St.push(xt):nt.push(xt)}),{missingRawValues:nt,existRawValues:St}},k=Object(w.useMemo)(function(){var Ve=[],Ge=[];if(N(jt).forEach(function(vt){if(vt&&Object(A.a)(vt)==="object"&&"value"in vt)if(vt.halfChecked&&we){var Ot=gt(vt.value);Ve.push(Ot?Ot.key:vt.value)}else Ge.push(vt.value);else Ge.push(vt)}),Be){var nt=Kt(Ge),St=nt.missingRawValues,xt=nt.existRawValues,bt=xt.map(function(vt){return gt(vt).key}),Ct=Object(s.a)(bt,!0,Ft),Ht=Ct.checkedKeys,Nt=Ct.halfCheckedKeys;return[[].concat(Object(L.a)(St),Object(L.a)(Ht.map(function(vt){return lt(vt).data.value}))),Nt]}return[Ge,Ve]},[jt,Et,$e,Te,we]),c=Object(B.a)(k,2),_=c[0],I=c[1],F=ge(_,{treeConduction:Be,value:jt,showCheckedStrategy:ve,conductKeyEntities:Ft,getEntityByValue:gt,getEntityByKey:lt,getLabelProp:ft}),D=function(Ge,nt,St){if(Vt(Et?Ge:Ge[0]),Ye){var xt=Ge;if(Be&&ve!=="SHOW_ALL"){var bt=Ge.map(function(At){var Pt=gt(At);return Pt?Pt.key:At}),Ct=me(bt,ve,Ft);xt=Ct.map(function(At){var Pt=lt(At);return Pt?Pt.data.value:At})}var Ht=nt||{triggerValue:void 0,selected:void 0},Nt=Ht.triggerValue,vt=Ht.selected,Ot=$e?le(xt,jt,gt,ft):xt;if(we){var Gt=I.map(function(At){var Pt=lt(At);return Pt?Pt.data.value:At}).filter(function(At){return!xt.includes(At)});Ot=[].concat(Object(L.a)(Ot),Object(L.a)(le(Gt,jt,gt,ft)))}var Lt={preValue:F,triggerValue:Nt},Yt=!0;(we||St==="selection"&&!vt)&&(Yt=!1),O(Lt,Nt,Ge,Tt,Yt),_t?Lt.checked=vt:Lt.selected=vt,Ye(Et?Ot:Ot[0],$e?null:xt.map(function(At){var Pt=gt(At);return Pt?ft(Pt.data):null}),Lt)}},ie=function(Ge,nt,St){var xt=Ge;if(!Et)D([Ge],{selected:!0,triggerValue:Ge},St);else{var bt=oe(_,Ge);if(Be){var Ct=Kt(bt),Ht=Ct.missingRawValues,Nt=Ct.existRawValues,vt=Nt.map(function(Lt){return gt(Lt).key}),Ot=Object(s.a)(vt,!0,Ft),Gt=Ot.checkedKeys;bt=[].concat(Object(L.a)(Ht),Object(L.a)(Gt.map(function(Lt){return lt(Lt).data.value})))}D(bt,{selected:!0,triggerValue:Ge},St)}dt&&dt(xt,nt)},Re=function(Ge,nt,St){var xt=Ge,bt=$(_,Ge);if(Be){var Ct=Kt(bt),Ht=Ct.missingRawValues,Nt=Ct.existRawValues,vt=Nt.map(function(Lt){return gt(Lt).key}),Ot=Object(s.a)(vt,{checked:!1,halfCheckedKeys:I},Ft),Gt=Ot.checkedKeys;bt=[].concat(Object(L.a)(Ht),Object(L.a)(Gt.map(function(Lt){return lt(Lt).data.value})))}D(bt,{selected:!1,triggerValue:Ge},St),tt&&tt(xt,nt)},je=function(){D([],null,"clear")},He=w.useCallback(function(Ve){if(yt){var Ge={};Object.defineProperty(Ge,"documentClickClose",{get:function(){return Object(o.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),yt(Ve,Ge)}},[yt]),Ce={optionLabelProp:null,optionFilterProp:se,dropdownAlign:it,internalProps:{mark:a.a,onClear:je,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:ie,onRawDeselect:Re}};return"filterTreeNode"in ue&&(Ce.filterOption=qe),w.createElement(r.Provider,{value:{checkable:_t,loadData:Ue,treeLoadedKeys:he,onTreeLoad:at,checkedKeys:_,halfCheckedKeys:I,treeDefaultExpandAll:q,treeExpandedKeys:Y,treeDefaultExpandedKeys:Q,onTreeExpand:mt,treeIcon:_e,treeMotion:ze,showTreeIcon:ke,switcherIcon:Ke,treeLine:Xe,treeNodeFilterProp:se}},w.createElement(Ee,Object.assign({ref:Qe,mode:Et?"multiple":null},ue,Ce,{value:F,labelInValue:!0,options:Tt,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:He})))}),Me=function(ue){Object(C.a)(ye,ue);var pe=Object(j.a)(ye);function ye(){var Te;return Object(de.a)(this,ye),Te=pe.apply(this,arguments),Te.selectRef=w.createRef(),Te.focus=function(){Te.selectRef.current.focus()},Te.blur=function(){Te.selectRef.current.blur()},Te}return Object(H.a)(ye,[{key:"render",value:function(){return w.createElement(Ie,Object.assign({ref:this.selectRef},this.props))}}]),ye}(w.Component);Me.TreeNode=d,Me.SHOW_ALL=Oe,Me.SHOW_PARENT=Ae,Me.SHOW_CHILD=Pe;var De=Me,Fe=We.e=De},"8hTe":function(et,We,J){et.exports={button:"button___1wy9m"}},"9Bee":function(et,We,J){"use strict";var de=J("DYRE"),H=J("zeV3"),C=J("+L6B"),j=J("2/Rp"),L=J("k1fw"),A=J("9og8"),B=J("tJVT"),M=J("WmNS"),w=J.n(M),S=J("q1tI"),m=J.n(S),g=J("vg9a"),s=J("DlQD"),a=J.n(s),i=J("rUJ1");function o(k,c){var _=k.match(/^(\s+)(?:```)/);if(_===null)return c;var I=_[1];return c.split(` `).map(function(F){var D=F.match(/^\s+/);if(D===null)return F;var ie=Object(B.a)(D,1),Re=ie[0];return Re.length>=I.length?F.slice(I.length):F}).join(` `)}var n=[],e=["