(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=[""],s=new m.a.Renderer,i=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){a.length=0,n=[""]}var t={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function r(K,W,X,j){if(W>=K.length||K[W].level<=X)return W;var z=K[W];j.push("- "+z.text+""),W++;var ie=[];return W=r(K,W,z.level,ie),ie.length>0&&(j.push("
"),ie.forEach(function(pe){j.push(pe)}),j.push("
")),j.push(" "),W=r(K,W,X,j),W}function E(){return r(a,0,0,n),n.push("
"),n.join("")}var g={heading:function(W){var X=i.exec(W);if(X)return{type:"heading",raw:X[0],depth:X[1].length,text:X[2]}},fences:function(W){var X=this.rules.block.fences.exec(W);if(X){var j=X[0],z=o(j,X[3]||""),ie=X[2]?X[2].trim():X[2];if(["latex","katex","math"].indexOf(ie)>=0){var pe=v(),_e=z;z=pe,l[pe]={type:"block",expression:_e}}return{type:"code",raw:j,lang:ie,text:z}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,y=0,v=function(){return"__special_katext_id_".concat(y++,"__")},l={};function u(){return l}function d(){y=0,l={}}function c(K){return K=K.replace(h,function(W,X){var j=v();return l[j]={type:"inline",expression:X},j}),K}var _=s.listitem;s.listitem=function(K){return _(c(K))};var f=s.paragraph;s.paragraph=function(K){return f(c(K))};var b=s.tablecell;s.tablecell=function(K,W){return b(c(K),W)},s.code=function(K,W,X){var j=(W||"").match(/\S*/)[0];return j?["latex","katex","math"].indexOf(j)>=0?"".concat(K,"
"):'
').concat(X?K:Object(p.escape)(K,!0),`
`):''+(X?K:Object(p.escape)(K,!0))+"
"},s.heading=function(K,W,X){var j=this.options.headerPrefix+X.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return a.push({anchor:j,level:W,text:K}),"'+K+""},m.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),m.a.use({tokenizer:g,renderer:s});var A=m.a,O=Y("SJMd"),C=Y("ulZh"),P=Y.n(C),k=Y("m3rI"),I=Y("Oy/b"),U=Y("p5ED"),H=Y("8hTe"),Z=Y.n(H),$=/]*>/g;function ee(K){var W=document.createElement("div");return W.innerHTML=K,W.childNodes.length===0?"":W.childNodes[0].nodeValue}var te=Le.a=function(K){var W=K.value,X=W===void 0?"":W,j=K.edit,z=j===void 0?!1:j,ie=K.className,pe=K.showTextOnly,_e=K.showLines,Ee=K.replaces,we=K.zoomImg,fe=K.hasMask,le=K.style,ce=le===void 0?{}:le,ge=K.stylesPrev,Re=ge===void 0?{}:ge,xe=String(X),be=Object(D.useRef)(),Ie=Object(D.useRef)(),ne=Object(D.useState)(""),oe=Object(R.a)(ne,2),ue=oe[0],me=oe[1],ye=Object(D.useState)("office"),ve=Object(R.a)(ye,2),de=ve[0],Oe=ve[1],Ae=Object(D.useMemo)(function(){try{var J=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,F=/\"\/api\/attachments\/|\"\/attachments\/download\//g,B=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;xe=xe.replace(J,"("+k.a.API_SERVER+"/api/attachments/").replace(F,'"'+k.a.API_SERVER+"/api/attachments/").replace(B,'"'+k.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(he){}var G=A(xe),V=u();if(xe.match(/\[TOC\]/)&&(G=G.replace("[TOC]
",E()),e()),G=G.replace(/(__special_katext_id_\d+__)/g,function(he,Te){var De=V[Te],Pe=De.type,Ce=De.expression;return Object(I.renderToString)(ee(Ce)||"",{displayMode:Pe==="block",throwOnError:!1,output:"html"})}),G=G.replace(/▁/g,"\u2581\u2581\u2581"),d(),pe){var se=document.createElement("div");return se.innerHTML=G,se.innerText}return setTimeout(function(){return q()},500),G},[xe]),re=Object(D.useRef)();t.WebkitLineClamp=_e,_e&&(ce=Object(w.a)(Object(w.a)({},ce),t));function Se(J){var F=J.target;if(F.tagName.toUpperCase()==="IMG"){if(we){var B=F.getAttribute("src");me(B),Oe("image")}}else if(F.tagName.toUpperCase()==="A"){var G=F.getAttribute("href");if(G.indexOf("office")>-1)J.preventDefault(),me(G),Oe("office");else if(G.indexOf("application/pdf")>-1)J.preventDefault(),me(G),Oe("pdf");else if(G.indexOf("text/html")>-1)J.preventDefault(),me(G),Oe("html");else if(G.startsWith("#")){J.preventDefault();var V=document.getElementById(G.replace("#",""));V&&V.scrollIntoView(!0)}}}var q=function(){var F,B=(F=re.current)===null||F===void 0?void 0:F.querySelectorAll("video");B==null||B.forEach(function(G){if(G.oncontextmenu=function(){return!1},G.src.indexOf(".m3u8")>-1&&!G.canPlayType("application/vnd.apple.mpegurl")){if(P.a.isSupported()){var V=new P.a;V.loadSource(G.src),V.attachMedia(G)}}})};Object(D.useEffect)(function(){if(re.current&&Ae&&(Ae.match($)&&window.PR.prettyPrint()),re.current)return re.current.addEventListener("click",Se),function(){re.current.removeEventListener("click",Se),d(),e()}},[Ae,re.current,Se]);var Q=function(F){if(!z)return;F.target.nodeName==="IMG"?(be.current.style.display="flex",be.current.style.width=F.target.clientWidth+"px",be.current.style.height=F.target.clientHeight+"px",be.current.style.top=F.target.offsetTop+"px",be.current.style.left=F.target.offsetLeft+"px",Ie.current.src=F.target.getAttribute("src")):be.current.style.display="none"};return L.a.createElement("div",{style:{position:"relative"}},L.a.createElement("div",{ref:re,style:Object(w.a)({},ce),className:"".concat(ie||""," markdown-body ").concat(Z.a.mdBody),onMouseOver:Q,dangerouslySetInnerHTML:{__html:Ae}}),L.a.createElement("div",{ref:be,className:Z.a.button},L.a.createElement(M.a,null,L.a.createElement(N.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),L.a.createElement(N.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),L.a.createElement("img",{ref:Ie,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),L.a.createElement(U.a,{close:!0,data:ue,type:ue!=null&&ue.length?de:"",style:Object(w.a)({},Re),onClose:function(){return me("")}}))}},BU3w:function(Be,Le,Y){"use strict";Y.d(Le,"a",function(){return R});var ae=Y("MNnm"),M="rc-util-key";function S(D){if(D.attachTo)return D.attachTo;var L=document.querySelector("head");return L||document.body}function N(D){var L,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ae.a)())return null;var T=document.createElement("style");if((L=x.csp)===null||L===void 0?void 0:L.nonce){var m;T.nonce=(m=x.csp)===null||m===void 0?void 0:m.nonce}T.innerHTML=D;var p=S(x),o=p.firstChild;return x.prepend&&p.prepend?p.prepend(T):x.prepend&&o?p.insertBefore(T,o):p.appendChild(T),T}var w=new Map;function R(D,L){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=S(x);if(!w.has(T)){var m=N("",x),p=m.parentNode;w.set(T,p),p.removeChild(m)}var o=Array.from(w.get(T).children).find(function(e){return e.tagName==="STYLE"&&e[M]===L});if(o){var a,n;if(((a=x.csp)===null||a===void 0?void 0:a.nonce)&&o.nonce!==((n=x.csp)===null||n===void 0?void 0:n.nonce)){var s;o.nonce=(s=x.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==D&&(o.innerHTML=D),o}var i=N(D,x);return i[M]=L,i}},DlQD:function(Be,Le,Y){(function(ae,M){Be.exports=M()})(this,function(){"use strict";function ae(q,Q){for(var J=0;Jq.length)&&(Q=q.length);for(var J=0,F=new Array(Q);J=q.length?{done:!0}:{done:!1,value:q[F++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return J=q[Symbol.iterator](),J.next.bind(J)}function R(q,Q){return Q={exports:{}},q(Q,Q.exports),Q.exports}var D=R(function(q){function Q(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function J(F){q.exports.defaults=F}q.exports={defaults:Q(),getDefaults:Q,changeDefaults:J}}),L=D.defaults,x=D.getDefaults,T=D.changeDefaults,m=/[&<>"']/,p=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},s=function(Q){return n[Q]};function i(q,Q){if(Q){if(m.test(q))return q.replace(p,s)}else if(o.test(q))return q.replace(a,s);return q}var e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function t(q){return q.replace(e,function(Q,J){return J=J.toLowerCase(),J==="colon"?":":J.charAt(0)==="#"?J.charAt(1)==="x"?String.fromCharCode(parseInt(J.substring(2),16)):String.fromCharCode(+J.substring(1)):""})}var r=/(^|[^\[])\^/g;function E(q,Q){q=q.source||q,Q=Q||"";var J={replace:function(B,G){return G=G.source||G,G=G.replace(r,"$1"),q=q.replace(B,G),J},getRegex:function(){return new RegExp(q,Q)}};return J}var g=/[^\w:]/g,h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(q,Q,J){if(q){var F;try{F=decodeURIComponent(t(J)).replace(g,"").toLowerCase()}catch(B){return null}if(F.indexOf("javascript:")===0||F.indexOf("vbscript:")===0||F.indexOf("data:")===0)return null}Q&&!h.test(J)&&(J=c(Q,J));try{J=encodeURI(J).replace(/%25/g,"%")}catch(B){return null}return J}var v={},l=/^[^:]+:\/*[^/]*$/,u=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(q,Q){v[" "+q]||(l.test(q)?v[" "+q]=q+"/":v[" "+q]=A(q,"/",!0)),q=v[" "+q];var J=q.indexOf(":")===-1;return Q.substring(0,2)==="//"?J?Q:q.replace(u,"$1")+Q:Q.charAt(0)==="/"?J?Q:q.replace(d,"$1")+Q:q+Q}var _={exec:function(){}};function f(q){for(var Q=1,J,F;Q=0&&se[Te]==="\\";)he=!he;return he?"|":" |"}),F=J.split(/ \|/),B=0;if(F.length>Q)F.splice(Q);else for(;F.length=F.length?B.slice(F.length):B}).join(`
`)}var te=function(){function q(J){this.options=J||k}var Q=q.prototype;return Q.space=function(F){var B=this.rules.block.newline.exec(F);if(B)return B[0].length>1?{type:"space",raw:B[0]}:{raw:`
`}},Q.code=function(F,B){var G=this.rules.block.code.exec(F);if(G){var V=B[B.length-1];if(V&&V.type==="paragraph")return{raw:G[0],text:G[0].trimRight()};var se=G[0].replace(/^ {4}/gm,"");return{type:"code",raw:G[0],codeBlockStyle:"indented",text:this.options.pedantic?se:I(se,`
`)}}},Q.fences=function(F){var B=this.rules.block.fences.exec(F);if(B){var G=B[0],V=ee(G,B[3]||"");return{type:"code",raw:G,lang:B[2]?B[2].trim():B[2],text:V}}},Q.heading=function(F){var B=this.rules.block.heading.exec(F);if(B)return{type:"heading",raw:B[0],depth:B[1].length,text:B[2]}},Q.nptable=function(F){var B=this.rules.block.nptable.exec(F);if(B){var G={type:"table",header:U(B[1].replace(/^ *| *\| *$/g,"")),align:B[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:B[3]?B[3].replace(/\n$/,"").split(`
`):[],raw:B[0]};if(G.header.length===G.align.length){var V=G.align.length,se;for(se=0;se ?/gm,"");return{type:"blockquote",raw:B[0],text:G}}},Q.list=function(F){var B=this.rules.block.list.exec(F);if(B){for(var G=B[0],V=B[2],se=V.length>1,he=V[V.length-1]===")",Te={type:"list",raw:G,ordered:se,start:se?+V.slice(0,-1):"",loose:!1,items:[]},De=B[0].match(this.rules.block.item),Pe=!1,Ce,We,He,Me,qe,Ve,tt,Je=De.length,Ke=0;Ke1||this.options.smartLists&&He!==V)&&(Me=De.slice(Ke+1).join(`
`),Te.raw=Te.raw.substring(0,Te.raw.length-Me.length),Ke=Je-1)),qe=Pe||/\n\n(?!\s*$)/.test(Ce),Ke!==Je-1&&(Pe=Ce.charAt(Ce.length-1)===`
`,qe||(qe=Pe)),qe&&(Te.loose=!0),Ve=/^\[[ xX]\] /.test(Ce),tt=void 0,Ve&&(tt=Ce[1]!==" ",Ce=Ce.replace(/^\[[ xX]\] +/,"")),Te.items.push({type:"list_item",raw:G,task:Ve,checked:tt,loose:qe,text:Ce});return Te}},Q.html=function(F){var B=this.rules.block.html.exec(F);if(B)return{type:this.options.sanitize?"paragraph":"html",raw:B[0],pre:!this.options.sanitizer&&(B[1]==="pre"||B[1]==="script"||B[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(B[0]):H(B[0]):B[0]}},Q.def=function(F){var B=this.rules.block.def.exec(F);if(B){B[3]&&(B[3]=B[3].substring(1,B[3].length-1));var G=B[1].toLowerCase().replace(/\s+/g," ");return{tag:G,raw:B[0],href:B[2],title:B[3]}}},Q.table=function(F){var B=this.rules.block.table.exec(F);if(B){var G={type:"table",header:U(B[1].replace(/^ *| *\| *$/g,"")),align:B[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:B[3]?B[3].replace(/\n$/,"").split(`
`):[]};if(G.header.length===G.align.length){G.raw=B[0];var V=G.align.length,se;for(se=0;se/i.test(V[0])&&(B=!1),!G&&/^<(pre|code|kbd|script)(\s|>)/i.test(V[0])?G=!0:G&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(V[0])&&(G=!1),{type:this.options.sanitize?"text":"html",raw:V[0],inLink:B,inRawBlock:G,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(V[0]):H(V[0]):V[0]}},Q.link=function(F){var B=this.rules.inline.link.exec(F);if(B){var G=Z(B[2],"()");if(G>-1){var V=B[0].indexOf("!")===0?5:4,se=V+B[1].length+G;B[2]=B[2].substring(0,G),B[0]=B[0].substring(0,se).trim(),B[3]=""}var he=B[2],Te="";if(this.options.pedantic){var De=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(he);De?(he=De[1],Te=De[3]):Te=""}else Te=B[3]?B[3].slice(1,-1):"";he=he.trim().replace(/^<([\s\S]*)>$/,"$1");var Pe=$(B,{href:he&&he.replace(this.rules.inline._escapes,"$1"),title:Te&&Te.replace(this.rules.inline._escapes,"$1")},B[0]);return Pe}},Q.reflink=function(F,B){var G;if((G=this.rules.inline.reflink.exec(F))||(G=this.rules.inline.nolink.exec(F))){var V=(G[2]||G[1]).replace(/\s+/g," ");if(V=B[V.toLowerCase()],!V||!V.href){var se=G[0].charAt(0);return{type:"text",raw:se,text:se}}var he=$(G,V,G[0]);return he}},Q.strong=function(F,B,G){G===void 0&&(G="");var V=this.rules.inline.strong.start.exec(F);if(V&&(!V[1]||V[1]&&(G===""||this.rules.inline.punctuation.exec(G)))){B=B.slice(-1*F.length);var se=V[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;se.lastIndex=0;for(var he;(V=se.exec(B))!=null;)if(he=this.rules.inline.strong.middle.exec(B.slice(0,V.index+3)),he)return{type:"strong",raw:F.slice(0,he[0].length),text:F.slice(2,he[0].length-2)}}},Q.em=function(F,B,G){G===void 0&&(G="");var V=this.rules.inline.em.start.exec(F);if(V&&(!V[1]||V[1]&&(G===""||this.rules.inline.punctuation.exec(G)))){B=B.slice(-1*F.length);var se=V[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;se.lastIndex=0;for(var he;(V=se.exec(B))!=null;)if(he=this.rules.inline.em.middle.exec(B.slice(0,V.index+2)),he)return{type:"em",raw:F.slice(0,he[0].length),text:F.slice(1,he[0].length-1)}}},Q.codespan=function(F){var B=this.rules.inline.code.exec(F);if(B){var G=B[2].replace(/\n/g," "),V=/[^ ]/.test(G),se=G.startsWith(" ")&&G.endsWith(" ");return V&&se&&(G=G.substring(1,G.length-1)),G=H(G,!0),{type:"codespan",raw:B[0],text:G}}},Q.br=function(F){var B=this.rules.inline.br.exec(F);if(B)return{type:"br",raw:B[0]}},Q.del=function(F){var B=this.rules.inline.del.exec(F);if(B)return{type:"del",raw:B[0],text:B[1]}},Q.autolink=function(F,B){var G=this.rules.inline.autolink.exec(F);if(G){var V,se;return G[2]==="@"?(V=H(this.options.mangle?B(G[1]):G[1]),se="mailto:"+V):(V=H(G[1]),se=V),{type:"link",raw:G[0],text:V,href:se,tokens:[{type:"text",raw:V,text:V}]}}},Q.url=function(F,B){var G;if(G=this.rules.inline.url.exec(F)){var V,se;if(G[2]==="@")V=H(this.options.mangle?B(G[0]):G[0]),se="mailto:"+V;else{var he;do he=G[0],G[0]=this.rules.inline._backpedal.exec(G[0])[0];while(he!==G[0]);V=H(G[0]),G[1]==="www."?se="http://"+V:se=V}return{type:"link",raw:G[0],text:V,href:se,tokens:[{type:"text",raw:V,text:V}]}}},Q.inlineText=function(F,B,G){var V=this.rules.inline.text.exec(F);if(V){var se;return B?se=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(V[0]):H(V[0]):V[0]:se=H(this.options.smartypants?G(V[0]):V[0]),{type:"text",raw:V[0],text:se}}},q}(),K=P.noopTest,W=P.edit,X=P.merge,j={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:K,table:K,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};j._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,j._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,j.def=W(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}[.)])/,j.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,j.item=W(j.item,"gm").replace(/bull/g,j.bullet).getRegex(),j.list=W(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=//,j.html=W(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=W(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.blockquote=W(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal=X({},j),j.gfm=X({},j.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),j.gfm.nptable=W(j.gfm.nptable).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.gfm.table=W(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.pedantic=X({},j.normal,{html:W(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:K,paragraph:W(j.normal._paragraph).replace("hr",j.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var z={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:K,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:K,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",z.punctuation=W(z.punctuation).replace(/punctuation/g,z._punctuation).getRegex(),z._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",z._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",z.em.start=W(z.em.start).replace(/punctuation/g,z._punctuation).getRegex(),z.em.middle=W(z.em.middle).replace(/punctuation/g,z._punctuation).replace(/overlapSkip/g,z._overlapSkip).getRegex(),z.em.endAst=W(z.em.endAst,"g").replace(/punctuation/g,z._punctuation).getRegex(),z.em.endUnd=W(z.em.endUnd,"g").replace(/punctuation/g,z._punctuation).getRegex(),z.strong.start=W(z.strong.start).replace(/punctuation/g,z._punctuation).getRegex(),z.strong.middle=W(z.strong.middle).replace(/punctuation/g,z._punctuation).replace(/blockSkip/g,z._blockSkip).getRegex(),z.strong.endAst=W(z.strong.endAst,"g").replace(/punctuation/g,z._punctuation).getRegex(),z.strong.endUnd=W(z.strong.endUnd,"g").replace(/punctuation/g,z._punctuation).getRegex(),z.blockSkip=W(z._blockSkip,"g").getRegex(),z.overlapSkip=W(z._overlapSkip,"g").getRegex(),z._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,z._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,z._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,z.autolink=W(z.autolink).replace("scheme",z._scheme).replace("email",z._email).getRegex(),z._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,z.tag=W(z.tag).replace("comment",j._comment).replace("attribute",z._attribute).getRegex(),z._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,z._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,z._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,z.link=W(z.link).replace("label",z._label).replace("href",z._href).replace("title",z._title).getRegex(),z.reflink=W(z.reflink).replace("label",z._label).getRegex(),z.reflinkSearch=W(z.reflinkSearch,"g").replace("reflink",z.reflink).replace("nolink",z.nolink).getRegex(),z.normal=X({},z),z.pedantic=X({},z.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:W(/^!?\[(label)\]\((.*?)\)/).replace("label",z._label).getRegex(),reflink:W(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",z._label).getRegex()}),z.gfm=X({},z.normal,{escape:W(z.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(F="x"+F.toString(16)),Q+=""+F+";";return Q}var le=function(){function q(J){this.tokens=[],this.tokens.links=Object.create(null),this.options=J||pe,this.options.tokenizer=this.options.tokenizer||new te,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var F={block:_e.normal,inline:Ee.normal};this.options.pedantic?(F.block=_e.pedantic,F.inline=Ee.pedantic):this.options.gfm&&(F.block=_e.gfm,this.options.breaks?F.inline=Ee.breaks:F.inline=Ee.gfm),this.tokenizer.rules=F}q.lex=function(F,B){var G=new q(B);return G.lex(F)};var Q=q.prototype;return Q.lex=function(F){return F=F.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(F,this.tokens,!0),this.inline(this.tokens),this.tokens},Q.blockTokens=function(F,B,G){B===void 0&&(B=[]),G===void 0&&(G=!0),F=F.replace(/^ +$/gm,"");for(var V,se,he,Te;F;){if(V=this.tokenizer.space(F)){F=F.substring(V.raw.length),V.type&&B.push(V);continue}if(V=this.tokenizer.code(F,B)){F=F.substring(V.raw.length),V.type?B.push(V):(Te=B[B.length-1],Te.raw+=`
`+V.raw,Te.text+=`
`+V.text);continue}if(V=this.tokenizer.fences(F)){F=F.substring(V.raw.length),B.push(V);continue}if(V=this.tokenizer.heading(F)){F=F.substring(V.raw.length),B.push(V);continue}if(V=this.tokenizer.nptable(F)){F=F.substring(V.raw.length),B.push(V);continue}if(V=this.tokenizer.hr(F)){F=F.substring(V.raw.length),B.push(V);continue}if(V=this.tokenizer.blockquote(F)){F=F.substring(V.raw.length),V.tokens=this.blockTokens(V.text,[],G),B.push(V);continue}if(V=this.tokenizer.list(F)){for(F=F.substring(V.raw.length),he=V.items.length,se=0;se0)for(;(De=this.tokenizer.rules.inline.reflinkSearch.exec(Te))!=null;)Pe.includes(De[0].slice(De[0].lastIndexOf("[")+1,-1))&&(Te=Te.slice(0,De.index)+"["+"a".repeat(De[0].length-2)+"]"+Te.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(De=this.tokenizer.rules.inline.blockSkip.exec(Te))!=null;)Te=Te.slice(0,De.index)+"["+"a".repeat(De[0].length-2)+"]"+Te.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;F;){if(he=this.tokenizer.escape(F)){F=F.substring(he.raw.length),B.push(he);continue}if(he=this.tokenizer.tag(F,G,V)){F=F.substring(he.raw.length),G=he.inLink,V=he.inRawBlock,B.push(he);continue}if(he=this.tokenizer.link(F)){F=F.substring(he.raw.length),he.type==="link"&&(he.tokens=this.inlineTokens(he.text,[],!0,V)),B.push(he);continue}if(he=this.tokenizer.reflink(F,this.tokens.links)){F=F.substring(he.raw.length),he.type==="link"&&(he.tokens=this.inlineTokens(he.text,[],!0,V)),B.push(he);continue}if(he=this.tokenizer.strong(F,Te,se)){F=F.substring(he.raw.length),he.tokens=this.inlineTokens(he.text,[],G,V),B.push(he);continue}if(he=this.tokenizer.em(F,Te,se)){F=F.substring(he.raw.length),he.tokens=this.inlineTokens(he.text,[],G,V),B.push(he);continue}if(he=this.tokenizer.codespan(F)){F=F.substring(he.raw.length),B.push(he);continue}if(he=this.tokenizer.br(F)){F=F.substring(he.raw.length),B.push(he);continue}if(he=this.tokenizer.del(F)){F=F.substring(he.raw.length),he.tokens=this.inlineTokens(he.text,[],G,V),B.push(he);continue}if(he=this.tokenizer.autolink(F,fe)){F=F.substring(he.raw.length),B.push(he);continue}if(!G&&(he=this.tokenizer.url(F,fe))){F=F.substring(he.raw.length),B.push(he);continue}if(he=this.tokenizer.inlineText(F,V,we)){F=F.substring(he.raw.length),se=he.raw.slice(-1),B.push(he);continue}if(F){var Ce="Infinite loop on byte: "+F.charCodeAt(0);if(this.options.silent){console.error(Ce);break}else throw new Error(Ce)}}return B},M(q,null,[{key:"rules",get:function(){return{block:_e,inline:Ee}}}]),q}(),ce=D.defaults,ge=P.cleanUrl,Re=P.escape,xe=function(){function q(J){this.options=J||ce}var Q=q.prototype;return Q.code=function(F,B,G){var V=(B||"").match(/\S*/)[0];if(this.options.highlight){var se=this.options.highlight(F,V);se!=null&&se!==F&&(G=!0,F=se)}return V?''+(G?F:Re(F,!0))+`
`:""+(G?F:Re(F,!0))+`
`},Q.blockquote=function(F){return`
`+F+`
`},Q.html=function(F){return F},Q.heading=function(F,B,G,V){return this.options.headerIds?"
`:""+F+"
`},Q.hr=function(){return this.options.xhtml?`
`:`
`},Q.list=function(F,B,G){var V=B?"ol":"ul",se=B&&G!==1?' start="'+G+'"':"";return"<"+V+se+`>
`+F+""+V+`>
`},Q.listitem=function(F){return""+F+`
`},Q.checkbox=function(F){return" "},Q.paragraph=function(F){return""+F+`
`},Q.table=function(F,B){return B&&(B=""+B+""),`
`},Q.tablerow=function(F){return`
`+F+`
`},Q.tablecell=function(F,B){var G=B.header?"th":"td",V=B.align?"<"+G+' align="'+B.align+'">':"<"+G+">";return V+F+""+G+`>
`},Q.strong=function(F){return""+F+""},Q.em=function(F){return""+F+""},Q.codespan=function(F){return""+F+""},Q.br=function(){return this.options.xhtml?"
":"
"},Q.del=function(F){return""+F+""},Q.link=function(F,B,G){if(F=ge(this.options.sanitize,this.options.baseUrl,F),F===null)return G;var V='"+G+"",V},Q.image=function(F,B,G){if(F=ge(this.options.sanitize,this.options.baseUrl,F),F===null)return G;var V='
":">",V},Q.text=function(F){return F},q}(),be=function(){function q(){}var Q=q.prototype;return Q.strong=function(F){return F},Q.em=function(F){return F},Q.codespan=function(F){return F},Q.del=function(F){return F},Q.html=function(F){return F},Q.text=function(F){return F},Q.link=function(F,B,G){return""+G},Q.image=function(F,B,G){return""+G},Q.br=function(){return""},q}(),Ie=function(){function q(){this.seen={}}var Q=q.prototype;return Q.slug=function(F){var B=F.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(B)){var G=B;do this.seen[G]++,B=G+"-"+this.seen[G];while(this.seen.hasOwnProperty(B))}return this.seen[B]=0,B},q}(),ne=D.defaults,oe=P.unescape,ue=function(){function q(J){this.options=J||ne,this.options.renderer=this.options.renderer||new xe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new be,this.slugger=new Ie}q.parse=function(F,B){var G=new q(B);return G.parse(F)};var Q=q.prototype;return Q.parse=function(F,B){B===void 0&&(B=!0);var G="",V,se,he,Te,De,Pe,Ce,We,He,Me,qe,Ve,tt,Je,Ke,nt,rt,Ne,ke=F.length;for(V=0;V0&&Ke.tokens[0].type==="text"?(Ke.tokens[0].text=Ne+" "+Ke.tokens[0].text,Ke.tokens[0].tokens&&Ke.tokens[0].tokens.length>0&&Ke.tokens[0].tokens[0].type==="text"&&(Ke.tokens[0].tokens[0].text=Ne+" "+Ke.tokens[0].tokens[0].text)):Ke.tokens.unshift({type:"text",text:Ne}):Je+=Ne),Je+=this.parse(Ke.tokens,tt),He+=this.renderer.listitem(Je,rt,nt);G+=this.renderer.list(He,qe,Ve);continue}case"html":{G+=this.renderer.html(Me.text);continue}case"paragraph":{G+=this.renderer.paragraph(this.parseInline(Me.tokens));continue}case"text":{for(He=Me.tokens?this.parseInline(Me.tokens):Me.text;V+1An error occurred:
"+ve(he.message+"",!0)+"
";throw he}}re.options=re.setOptions=function(q){return me(re.defaults,q),Oe(re.defaults),re},re.getDefaults=de,re.defaults=Ae,re.use=function(q){var Q=me({},q);if(q.renderer&&function(){var F=re.defaults.renderer||new xe,B=function(se){var he=F[se];F[se]=function(){for(var Te=arguments.length,De=new Array(Te),Pe=0;Pe3:Ue.key!=4}))},Ze=function it(ze){return ze.map(function(Ue){var Qe=Ue.title.indexOf(F),$e=Ue.title.substr(0,Qe),Ye=Ue.title.substr(Qe+F.length),Xe=e.a.createElement("span",null,$e,e.a.createElement("span",{className:"c-blue"},F),Ye,Object(g.o)()&&e.a.createElement(l.a,{placement:"right",title:F,content:function(){return Ge(Ue)},trigger:"hover"},e.a.createElement("span",{className:"iconfont icon-sandian ".concat(z.a.actions)})));if(F!==""){var et;if(Qe===-1&&!((et=Ue.children)!==null&&et!==void 0&&et.length))return null}return Ue.children&&Ue.file_type===1?Object(x.a)(Object(x.a)({},Ue),{},{title:Xe,key:Ue.key,children:it(Ue.children)}):Object(x.a)(Object(x.a)({},Ue),{},{title:Xe,key:Ue.key,isLeaf:!0})}).filter(function(Ue){return!!Ue})},ot=function it(ze,Ue){for(var Qe,$e=0;$e-1}))!==null&&Ye!==void 0&&Ye.length?$e.id:null}return null});B(Ue),Je(!0),console.log("expandedKeys:",Qe),Pe(Qe)};return console.log("loop(treeData):",Ze(rt)),e.a.createElement("div",{className:z.a.tree},e.a.createElement(ie,{style:{marginBottom:8},placeholder:"\u8F93\u5165\u5173\u952E\u5B57\u68C0\u7D22",onChange:mt}),e.a.createElement(pe,{multiple:!0,defaultExpandAll:!0,onSelect:ke,onExpand:Fe,expandedKeys:De,selectedKeys:He,autoExpandParent:tt,treeData:Ze(rt)}),e.a.createElement(ee,null),e.a.createElement(W,null))},Ee=Object(r.a)(function(le){var ce=le.user,ge=le.loading,Re=le.globalSetting,xe=le.restful;return{user:ce,globalSetting:Re,restful:xe,loading:ge.models.index}})(_e),we=function(ce){var ge,Re,xe=ce.user,be=ce.globalSetting,Ie=ce.loading,ne=ce.dispatch,oe=ce.restful,ue=Object(a.a)(ce,["user","globalSetting","loading","dispatch","restful"]),me=Object(i.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]}),ye=Object(o.a)(me,2),ve=ye[0],de=ye[1],Oe=Object(i.useState)(!0),Ae=Object(o.a)(Oe,2),re=Ae[0],Se=Ae[1],q=p.a.useForm(),Q=Object(o.a)(q,1),J=Q[0],F=ue.match.params,B=function(){var se=Object(T.a)(s.a.mark(function he(){return s.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:ne({type:"restful/getRestful"}),F.id&&ne({type:"restful/getRestfulDetail",payload:Object(x.a)({},F)});case 2:case"end":return De.stop()}},he)}));return function(){return se.apply(this,arguments)}}();Object(i.useEffect)(function(){Se(!0),B()},[F.id]);var G=function(){ne({type:"restful/setActionTabs",payload:{key:"\u65B0\u5EFA\u540C\u7EA7\u76EE\u5F55"}})},V=function(){var he;if((he=oe.restful)!==null&&he!==void 0&&he.data){var Te,De,Pe=0;return(Te=oe.restful)===null||Te===void 0||((De=Te.data)===null||De===void 0)||De.map(function(Ce){var We;Ce==null||((We=Ce.children)===null||We===void 0)||We.map(function(He){He.id==ue.match.params.id&&(Pe=Ce.id)}),!Ce.children&&!Pe&&(Pe=Ce.id)}),Pe}return 0};return e.a.createElement("section",null,e.a.createElement("aside",{className:"edu-container mt20"},e.a.createElement(L.a,null,e.a.createElement(L.a.Item,null,e.a.createElement(t.a,{to:"/"},"\u9996\u9875")),e.a.createElement(L.a.Item,null,e.a.createElement(t.a,{to:"/ch/rest"},"API\u6587\u6863"))),e.a.createElement("div",{className:"mt20"},e.a.createElement(N.a,{gutter:[20,20]},e.a.createElement(R.a,{flex:"300px"},e.a.createElement(Ee,ue)),e.a.createElement(R.a,{flex:"1"},e.a.createElement("div",{className:y.a.info},e.a.createElement("h1",{style:{fontSize:28,paddingBottom:15,borderBottom:"1px solid #eaeaea",textAlign:"center"}},(ge=oe.restfulDetail)===null||ge===void 0?void 0:ge.name),e.a.createElement(E.a,{value:(Re=oe.restfulDetail)===null||Re===void 0?void 0:Re.description}))))),Object(g.o)()&&e.a.createElement("div",{className:y.a.bar},e.a.createElement(N.a,null,!!V()&&e.a.createElement(R.a,null,e.a.createElement(M.a,{title:"\u7F16\u8F91\u6587\u4EF6"},e.a.createElement(t.a,{to:"/ch/rest/edit/".concat(V(),"/").concat(ue.match.params.id),className:"icon-zhongmingming current"}))),e.a.createElement(R.a,null,e.a.createElement(M.a,{title:"\u6DFB\u52A0\u6587\u4EF6"},e.a.createElement(t.a,{to:"/ch/rest/edit/".concat(V(),"/0"),className:"icon-tianjiatimu current"}))),e.a.createElement(R.a,null,e.a.createElement(M.a,{title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},e.a.createElement("span",{className:"icon-wenjianjia1 current",onClick:G})))))))},fe=Le.default=Object(r.a)(function(le){var ce=le.user,ge=le.loading,Re=le.globalSetting,xe=le.restful;return{user:ce,globalSetting:Re,restful:xe,loading:ge.models.index}})(we)},NvD2:function(Be,Le,Y){"use strict";Y.d(Le,"a",function(){return R});var ae=Y("Kwbf");function M(D,L){var x=new Set;return D.forEach(function(T){L.has(T)||x.add(T)}),x}function S(D){var L=D||{},x=L.disabled,T=L.disableCheckbox,m=L.checkable;return!!(x||T)||m===!1}function N(D,L,x,T){for(var m=new Set(D),p=new Set,o=0;o<=x;o+=1){var a=L.get(o)||new Set;a.forEach(function(e){var t=e.key,r=e.node,E=e.children,g=E===void 0?[]:E;m.has(t)&&!T(r)&&g.filter(function(h){return!T(h.node)}).forEach(function(h){m.add(h.key)})})}for(var n=new Set,s=x;s>=0;s-=1){var i=L.get(s)||new Set;i.forEach(function(e){var t=e.parent,r=e.node;if(T(r)||!e.parent||n.has(e.parent.key))return;if(T(e.parent.node)){n.add(t.key);return}var E=!0,g=!1;(t.children||[]).filter(function(h){return!T(h.node)}).forEach(function(h){var y=h.key,v=m.has(y);E&&!v&&(E=!1),!g&&(v||p.has(y))&&(g=!0)}),E&&m.add(t.key),g&&p.add(t.key),n.add(t.key)})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(M(p,m))}}function w(D,L,x,T,m){for(var p=new Set(D),o=new Set(L),a=0;a<=T;a+=1){var n=x.get(a)||new Set;n.forEach(function(t){var r=t.key,E=t.node,g=t.children,h=g===void 0?[]:g;!p.has(r)&&!o.has(r)&&!m(E)&&h.filter(function(y){return!m(y.node)}).forEach(function(y){p.delete(y.key)})})}o=new Set;for(var s=new Set,i=T;i>=0;i-=1){var e=x.get(i)||new Set;e.forEach(function(t){var r=t.parent,E=t.node;if(m(E)||!t.parent||s.has(t.parent.key))return;if(m(t.parent.node)){s.add(r.key);return}var g=!0,h=!1;(r.children||[]).filter(function(y){return!m(y.node)}).forEach(function(y){var v=y.key,l=p.has(v);g&&!l&&(g=!1),!h&&(l||o.has(v))&&(h=!0)}),g||p.delete(r.key),h&&o.add(r.key),s.add(r.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(M(o,p))}}function R(D,L,x,T){var m=[],p;T?p=T:p=S;var o=new Set(D.filter(function(i){var e=!!x[i];return e||m.push(i),e})),a=new Map,n=0;Object.keys(x).forEach(function(i){var e=x[i],t=e.level,r=a.get(t);r||(r=new Set,a.set(t,r)),r.add(e),n=Math.max(n,t)}),Object(ae.a)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var s;return L===!0?s=N(o,a,n,p):s=w(o,L.halfCheckedKeys,a,n,p),s}},OZM5:function(Be,Le,Y){"use strict";Y.d(Le,"b",function(){return T}),Y.d(Le,"a",function(){return m}),Y.d(Le,"k",function(){return p}),Y.d(Le,"h",function(){return o}),Y.d(Le,"i",function(){return a}),Y.d(Le,"g",function(){return n}),Y.d(Le,"c",function(){return s}),Y.d(Le,"d",function(){return i}),Y.d(Le,"j",function(){return r}),Y.d(Le,"e",function(){return E}),Y.d(Le,"f",function(){return g});var ae=Y("KQm4"),M=Y("U8pU"),S=Y("Ff2n"),N=Y("cDcd"),w=Y.n(N),R=Y("Kwbf"),D=Y("WaYH"),L=.25,x=2;function T(h,y){var v=h.slice(),l=v.indexOf(y);return l>=0&&v.splice(l,1),v}function m(h,y){var v=h.slice();return v.indexOf(y)===-1&&v.push(y),v}function p(h){return h.split("-")}function o(h,y){return"".concat(h,"-").concat(y)}function a(h){return h&&h.type&&h.type.isTreeNode}function n(h,y){var v=[h],l=y[h];function u(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(c){var _=c.key,f=c.children;v.push(_),u(f)})}return u(l.children),v}function s(h,y){var v=h.clientY,l=y.selectHandle.getBoundingClientRect(),u=l.top,d=l.bottom,c=l.height,_=Math.max(c*L,x);return v<=u+_?-1:v>=d-_?1:0}function i(h,y){if(!h)return;var v=y.multiple;return v?h.slice():h.length?[h[0]]:h}var e=function(y){return y};function t(h,y){if(!h)return[];var v=y||{},l=v.processProps,u=l===void 0?e:l,d=Array.isArray(h)?h:[h];return d.map(function(c){var _=c.children,f=Object(S.a)(c,["children"]),b=t(_,y);return w.a.createElement(D.a,Object.assign({},u(f)),b)})}function r(h){if(!h)return null;var y;if(Array.isArray(h))y={checkedKeys:h,halfCheckedKeys:void 0};else if(Object(M.a)(h)==="object")y={checkedKeys:h.checked||void 0,halfCheckedKeys:h.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return y}function E(h,y){var v=new Set;function l(u){if(v.has(u))return;var d=y[u];if(!d)return;v.add(u);var c=d.parent,_=d.node;if(_.disabled)return;c&&l(c.key)}return(h||[]).forEach(function(u){l(u)}),Object(ae.a)(v)}function g(h){var y={};return Object.keys(h).forEach(function(v){(v.startsWith("data-")||v.startsWith("aria-"))&&(y[v]=h[v])}),y}},P48q:function(Be,Le,Y){Be.exports={flex_box_center:"flex_box_center___BHtvi",flex_space_between:"flex_space_between___1noDr",flex_box_vertical_center:"flex_box_vertical_center___2UDAc",flex_box_center_end:"flex_box_center_end___2j8--",flex_box_column:"flex_box_column___3X60k",tree:"tree___2kCYs",actions:"actions___10Q_6"}},SJMd:function(Be,Le){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var Y,ae,M,S=!1,N,w;window.PR_SHOULD_USE_CONTINUATION=!0;var R,D;(function(){var L=window,x=["break,continue,do,else,for,if,return,while"],T=[x,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],m=[T,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],p=[m,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],o=[m,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[m,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],n="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",s=[m,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],i="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",e=[x,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],t=[x,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],r=[x,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],E=[p,a,o,s,i,e,t,r],g=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,h="str",y="kwd",v="com",l="typ",u="lit",d="pun",c="pln",_="tag",f="dec",b="src",A="atn",O="atv",C="nocode",P="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(fe){for(var le=0,ce=!1,ge=!1,Re=0,xe=fe.length;Re122||(F<65||J>90||Oe.push([Math.max(65,J)|32,Math.min(F,90)|32]),F<97||J>122||Oe.push([Math.max(97,J)&~32,Math.min(F,122)&~32]))}}Oe.sort(function(se,he){return se[0]-he[0]||he[1]-se[1]});for(var B=[],G=[],Se=0;SeV[0]&&(V[1]+1>V[0]&&re.push("-"),re.push(oe(V[1])))}return re.push("]"),re.join("")}function me(ve){for(var de=ve.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Oe=de.length,Ae=[],re=0,Se=0;re=2&&J==="["?de[re]=ue(q):J!=="\\"&&(de[re]=q.replace(/[a-zA-Z]/g,function(G){var V=G.charCodeAt(0);return"["+String.fromCharCode(V&~32,V|32)+"]"}))}return de.join("")}for(var ye=[],Re=0,xe=fe.length;Re=0;)ce[ye.charAt(ve)]=me;var de=me[1],Oe=""+de;ne.hasOwnProperty(Oe)||(Ie.push(de),ne[Oe]=null)}Ie.push(/[\0-\uffff]/),ge=k(Ie)})();var Re=le.length,xe=function(be){for(var Ie=be.sourceCode,ne=be.basePos,oe=be.sourceNode,ue=[ne,c],me=0,ye=Ie.match(ge)||[],ve={},de=0,Oe=ye.length;de=5&&re.substring(0,5)==="lang-",q&&!(Se&&typeof Se[1]=="string")&&(q=!1,re=b),q||(ve[Ae]=re)}var F=me;if(me+=Ae.length,!q)ue.push(ne+F,re);else{var B=Se[1],G=Ae.indexOf(B),V=G+B.length;Se[2]&&(V=Ae.length-Se[2].length,G=V-B.length);var se=re.substring(5);U(oe,ne+F,Ae.substring(0,G),xe,ue),U(oe,ne+F+G,B,z(se,B),ue),U(oe,ne+F+V,Ae.substring(V),xe,ue)}}be.decorations=ue};return xe}function ee(fe){var le=[],ce=[];fe.tripleQuotedStrings?le.push([h,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):fe.multiLineStrings?le.push([h,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):le.push([h,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),fe.verbatimStrings&&ce.push([h,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ge=fe.hashComments;ge&&(fe.cStyleComments?(ge>1?le.push([v,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):le.push([v,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ce.push([h,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):le.push([v,/^#[^\r\n]*/,null,"#"])),fe.cStyleComments&&(ce.push([v,/^\/\/[^\r\n]*/,null]),ce.push([v,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Re=fe.regexLiterals;if(Re){var xe=Re>1?"":`
\r`,be=xe?".":"[\\S\\s]",Ie="/(?=[^/*"+xe+"])(?:[^/\\x5B\\x5C"+xe+"]|\\x5C"+be+"|\\x5B(?:[^\\x5C\\x5D"+xe+"]|\\x5C"+be+")*(?:\\x5D|$))+/";ce.push(["lang-regex",RegExp("^"+P+"("+Ie+")")])}var ne=fe.types;ne&&ce.push([l,ne]);var oe=(""+fe.keywords).replace(/^ | $/g,"");oe.length&&ce.push([y,new RegExp("^(?:"+oe.replace(/[\s,]+/g,"|")+")\\b"),null]),le.push([c,/^\s+/,null,` \r
\xA0`]);var ue="^.[^\\s\\w.$@'\"`/\\\\]*";return fe.regexLiterals&&(ue+="(?!s*/)"),ce.push([u,/^@[a-z_$][a-z_$@0-9]*/i,null],[l,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[u,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[d,new RegExp(ue),null]),$(le,ce)}var te=ee({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function K(fe,le,ce){for(var ge=/(?:^|\s)nocode(?:\s|$)/,Re=/\r\n?|\n/,xe=fe.ownerDocument,be=xe.createElement("li");fe.firstChild;)be.appendChild(fe.firstChild);var Ie=[be];function ne(de){var Oe=de.nodeType;if(Oe==1&&!ge.test(de.className))if(de.nodeName==="br")oe(de),de.parentNode&&de.parentNode.removeChild(de);else for(var Ae=de.firstChild;Ae;Ae=Ae.nextSibling)ne(Ae);else if((Oe==3||Oe==4)&&ce){var re=de.nodeValue,Se=re.match(Re);if(Se){var q=re.substring(0,Se.index);de.nodeValue=q;var Q=re.substring(Se.index+Se[0].length);if(Q){var J=de.parentNode;J.insertBefore(xe.createTextNode(Q),de.nextSibling)}oe(de),q||de.parentNode.removeChild(de)}}}function oe(de){for(;!de.nextSibling;)if(de=de.parentNode,!de)return;function Oe(Se,q){var Q=q?Se.cloneNode(!1):Se,J=Se.parentNode;if(J){var F=Oe(J,1),B=Se.nextSibling;F.appendChild(Q);for(var G=B;G;G=B)B=G.nextSibling,F.appendChild(G)}return Q}for(var Ae=Oe(de.nextSibling,0),re;(re=Ae.parentNode)&&re.nodeType===1;)Ae=re;Ie.push(Ae)}for(var ue=0;ue=J&&(ne+=2),xe>=F&&(me+=2)}}finally{re&&(re.style.display=Se)}}var X={};function j(fe,le){for(var ce=le.length;--ce>=0;){var ge=le[ce];X.hasOwnProperty(ge)?L.console&&console.warn("cannot override language handler %s",ge):X[ge]=fe}}function z(fe,le){return fe&&X.hasOwnProperty(fe)||(fe=/^\s*]*(?:>|$)/],[v,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[d,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^