tabby-highlight
Version:
Tabby terminal keyword highlight plugin, support text, regexp, javascript
2 lines • 790 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@angular/common"),require("@angular/core"),require("@angular/forms"),require("@ng-bootstrap/ng-bootstrap"),require("tabby-core"),require("tabby-settings"),require("tabby-terminal"),require("ngx-toastr"),require("fs"),require("tabby-electron"),require("@angular/cdk/drag-drop"));else if("function"==typeof define&&define.amd)define(["@angular/common","@angular/core","@angular/forms","@ng-bootstrap/ng-bootstrap","tabby-core","tabby-settings","tabby-terminal","ngx-toastr","fs","tabby-electron","@angular/cdk/drag-drop"],e);else{var i="object"==typeof exports?e(require("@angular/common"),require("@angular/core"),require("@angular/forms"),require("@ng-bootstrap/ng-bootstrap"),require("tabby-core"),require("tabby-settings"),require("tabby-terminal"),require("ngx-toastr"),require("fs"),require("tabby-electron"),require("@angular/cdk/drag-drop")):e(t["@angular/common"],t["@angular/core"],t["@angular/forms"],t["@ng-bootstrap/ng-bootstrap"],t["tabby-core"],t["tabby-settings"],t["tabby-terminal"],t["ngx-toastr"],t.fs,t["tabby-electron"],t["@angular/cdk/drag-drop"]);for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(global,(t,e,i,n,r,s,o,a,l,h,c)=>(()=>{var u={3:(t,e)=>{var i;!function(){var n;!function(){"use strict";var t=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function i(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function n(t,n){this.__indent_cache=new i(t,n),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},i.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),(i+=t*this.__indent_size)+e},i.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+this.__cache[e]},i.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},i.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},n.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},n.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},n.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},n.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},n.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},n.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,i){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==i){this.__lines.splice(n+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=n},,,,function(t){function e(t,e){this.raw_options=i(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function i(t,e){var i,r={};for(i in t=n(t))i!==e&&(r[i]=t[i]);if(e&&t[e])for(i in t[e])r[i]=t[e][i];return r}function n(t){var e,i={};for(e in t)i[e.replace(/-/g,"_")]=t[e];return i}e.prototype._get_array=function(t,e){var i=this.raw_options[t],n=e||[];return"object"==typeof i?null!==i&&"function"==typeof i.concat&&(n=i.concat()):"string"==typeof i&&(n=i.split(/[^a-zA-Z0-9_\/\-]+/)),n},e.prototype._get_boolean=function(t,e){var i=this.raw_options[t];return void 0===i?!!e:!!i},e.prototype._get_characters=function(t,e){var i=this.raw_options[t],n=e||"";return"string"==typeof i&&(n=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),n},e.prototype._get_number=function(t,e){var i=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(i,10);return isNaN(n)&&(n=e),n},e.prototype._get_selection=function(t,e,i){var n=this._get_selection_list(t,e,i);if(1!==n.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,i){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(i=i||[e[0]],!this._is_valid_selection(i,e))throw new Error("Invalid Default Value!");var n=this._get_array(t,i);if(!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some(function(t){return-1===e.indexOf(t)})},t.exports.Options=e,t.exports.normalizeOpts=n,t.exports.mergeOpts=i},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position<this.__input_length},i.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},i.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},i.prototype.__match=function(t,i){t.lastIndex=i;var n=t.exec(this.__input);return!n||e&&t.sticky||n.index!==i&&(n=null),n},i.prototype.test=function(t,e){return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&!!this.__match(t,e)},i.prototype.testChar=function(t,e){var i=this.peek(e);return t.lastIndex=0,null!==i&&t.test(i)},i.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},i.prototype.read=function(t,e,i){var n,r="";return t&&(n=this.match(t))&&(r+=n[0]),!e||!n&&t||(r+=this.readUntil(e,i)),r},i.prototype.readUntil=function(t,e){var i,n=this.__position;t.lastIndex=this.__position;var r=t.exec(this.__input);return r?(n=r.index,e&&(n+=r[0].length)):n=this.__input_length,i=this.__input.substring(this.__position,n),this.__position=n,i},i.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},i.prototype.get_regexp=function(t,i){var n=null,r="g";return i&&e&&(r="y"),"string"==typeof t&&""!==t?n=new RegExp(t,r):t&&(n=new RegExp(t.source,r)),n},i.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},i.prototype.peekUntilAfter=function(t){var e=this.__position,i=this.readUntilAfter(t);return this.__position=e,i},i.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},,,,,function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(t);i;)e[i[1]]=i[2],i=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,i){var n=i(16).Beautifier,r=i(17).Options;t.exports=function(t,e){return new n(t,e).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,i){var n=i(17).Options,r=i(2).Output,s=i(8).InputScanner,o=new(0,i(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=/\s/,c=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(t,e){this._source_text=t||"",this._options=new n(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}f.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},f.prototype.eatWhitespace=function(t){for(var e=h.test(this._input.peek()),i=0;h.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===i||i<this._options.max_preserve_newlines)&&(i++,this._output.add_new_line(!0));return e},f.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,i=this._input.peek(e);i;){if("{"===i)return!0;if("("===i)t+=1;else if(")"===i){if(0===t)return!1;t-=1}else if(";"===i||"}"===i)return!1;e++,i=this._input.peek(e)}return!1},f.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},f.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&a.test(t||"")&&(e=t.match(a)[0]));var i=(t=t.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,i),this._input=new s(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var n,f,d=0,g=!1,_=!1,m=!1,O=!1,v=!1,y=this._ch,b=!1;n=""!==this._input.read(c),f=y,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),y=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(u),x=o.get_directives(w);x&&"start"===x.ignore&&(w+=o.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(n),this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s+$/,""),this.print_string(k),this._output.space_before_token=!0),0===d&&-1!==k.indexOf(":")&&(_=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(n),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===d&&-1!==S.indexOf(":")?(_=!0,this.indent()):S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(m=!0)):0!==d||_||(O=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)_&&(_=!1,this.outdent()),O=!1,m?(m=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),_&&(this.outdent(),_=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var Q=0;Q<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Q++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Q])){b=!0;break}!g&&!m||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||O||0!==d?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),_||(_=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var P='"'===f||"'"===f;this.preserveSingleSpace(P||n),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)b=!1,0===d?(_&&(this.outdent(),_=!1),O=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),d++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),d&&(d--,this.outdent()));else{var $=!1;this._input.lookBack("with")&&($=!0),this.preserveSingleSpace(n||$),this.print_string(this._ch),_&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),v=!0):(this.eatWhitespace(),d++,this.indent())}else if(")"===this._ch)d&&(d--,this.outdent()),v&&";"===this._input.peek()&&this._options.selector_separator_newline&&(v=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||_&&!v||0!==d||O?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||_||0!==d)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(n),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),h.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var C='"'===f||"'"===f;this.preserveSingleSpace(C||n),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&b&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&h.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},t.exports.Beautifier=f},function(t,e,i){var n=i(6).Options;function r(t){n.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<i.length;r++)"expand"!==i[r]?this.brace_style="collapse":this.brace_style=i[r]}r.prototype=new n,t.exports.Options=r}],e={},i=function i(n){var r=e[n];if(void 0!==r)return r.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,i),s.exports}(15);n=i}();var r=n;void 0===(i=function(){return{css_beautify:r}}.apply(e,[]))||(t.exports=i)}()},156:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},182:t=>{"use strict";t.exports=i},195:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},349:t=>{"use strict";t.exports=o},358:e=>{"use strict";e.exports=t},362:t=>{t.exports='<div class="modal-body"> <label translate>{{ prompt }}</label> </div> <div class="modal-footer"> <button class="btn btn-primary" (click)="ok()" translate>OK</button> <button class="btn btn-danger ms-2" (click)="cancel()" translate>Cancel</button> </div> '},418:(t,e,i)=>{"use strict";var n,r;n=[i(617),i(3),i(675)],void 0===(r=function(t,e,i){return function(t,e,i){var n=function(e,i){return t.js_beautify(e,i)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=i.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=i.html_beautify,n}(t,e,i)}.apply(e,n))||(t.exports=r)},507:(t,e,i)=>{const n=i(659);function r(t,e){return function(i){return e(t(i))}}function s(t,e){const i=[e[t].parent,t];let s=n[e[t].parent][t],o=e[t].parent;for(;e[o].parent;)i.unshift(e[o].parent),s=r(n[e[o].parent][o],s),o=e[o].parent;return s.conversion=i,s}t.exports=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(n);for(let i=e.length,n=0;n<i;n++)t[e[n]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;){const t=i.pop(),r=Object.keys(n[t]);for(let n=r.length,s=0;s<n;s++){const n=r[s],o=e[n];-1===o.distance&&(o.distance=e[t].distance+1,o.parent=t,i.unshift(n))}}return e}(t),i={},r=Object.keys(e);for(let t=r.length,n=0;n<t;n++){const t=r[n];null!==e[t].parent&&(i[t]=s(t,e))}return i}},520:(t,e,i)=>{const n=i(854),r=i(734),s=["keyword","gray","hex"],o={};for(const t of Object.keys(r))o[[...r[t].labels].sort().join("")]=t;const a={};function l(t,e){if(!(this instanceof l))return new l(t,e);if(e&&e in s&&(e=null),e&&!(e in r))throw new Error("Unknown model: "+e);let i,h;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof l)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=n.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,h=r[this.model].channels,this.color=e.value.slice(0,h),this.valpha="number"==typeof e.value[h]?e.value[h]:1}else if(t.length>0){this.model=e||"rgb",h=r[this.model].channels;const i=Array.prototype.slice.call(t,0,h);this.color=p(i,h),this.valpha="number"==typeof t[h]?t[h]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const n=e.sort().join("");if(!(n in o))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=o[n];const{labels:s}=r[this.model],a=[];for(i=0;i<s.length;i++)a.push(t[s[i]]);this.color=p(a)}if(a[this.model])for(h=r[this.model].channels,i=0;i<h;i++){const t=a[this.model][i];t&&(this.color[i]=t(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in n.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const i=1===e.valpha?e.color:[...e.color,this.valpha];return n.to[e.model](i)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),i=1===e.valpha?e.color:[...e.color,this.valpha];return n.to.rgb.percent(i)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=r[this.model],{labels:i}=r[this.model];for(let n=0;n<e;n++)t[i[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new l([...this.color.map(h(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new l([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:c("rgb",0,u(255)),green:c("rgb",1,u(255)),blue:c("rgb",2,u(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:c("hsl",1,u(100)),lightness:c("hsl",2,u(100)),saturationv:c("hsv",1,u(100)),value:c("hsv",2,u(100)),chroma:c("hcg",1,u(100)),gray:c("hcg",2,u(100)),white:c("hwb",1,u(100)),wblack:c("hwb",2,u(100)),cyan:c("cmyk",0,u(100)),magenta:c("cmyk",1,u(100)),yellow:c("cmyk",2,u(100)),black:c("cmyk",3,u(100)),x:c("xyz",0,u(95.047)),y:c("xyz",1,u(100)),z:c("xyz",2,u(108.833)),l:c("lab",0,u(100)),a:c("lab",1),b:c("lab",2),keyword(t){return void 0!==t?new l(t):r[this.model].keyword(this.color)},hex(t){return void 0!==t?new l(t):n.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new l(t);const e=this.rgb().round().color;let i=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===i.length&&(i="0"+i),n.to.hex(e)+i},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[i,n]of t.entries()){const t=n/255;e[i]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return l.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const i=t.rgb(),n=this.rgb(),r=void 0===e?.5:e,s=2*r-1,o=i.alpha()-n.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,h=1-a;return l.rgb(a*i.red()+h*n.red(),a*i.green()+h*n.green(),a*i.blue()+h*n.blue(),i.alpha()*r+n.alpha()*(1-r))}};for(const t of Object.keys(r)){if(s.includes(t))continue;const{channels:e}=r[t];l.prototype[t]=function(...e){return this.model===t?new l(this):e.length>0?new l(e,t):new l([...(i=r[this.model][t].raw(this.color),Array.isArray(i)?i:[i]),this.valpha],t);var i},l[t]=function(...i){let n=i[0];return"number"==typeof n&&(n=p(i,e)),new l(n,t)}}function h(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function c(t,e,i){t=Array.isArray(t)?t:[t];for(const n of t)(a[n]||(a[n]=[]))[e]=i;return t=t[0],function(n){let r;return void 0!==n?(i&&(n=i(n)),r=this[t](),r.color[e]=n,r):(r=this[t]().color[e],i&&(r=i(r)),r)}}function u(t){return function(e){return Math.max(0,Math.min(t,e))}}function p(t,e){for(let i=0;i<e;i++)"number"!=typeof t[i]&&(t[i]=0);return t}t.exports=l},523:t=>{"use strict";t.exports=a},543:function(t,e,i){var n;t=i.nmd(t),function(){var r,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,h=128,c=1/0,u=9007199254740991,p=NaN,f=4294967295,d=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",_="[object Array]",m="[object Boolean]",O="[object Date]",v="[object Error]",y="[object Function]",b="[object GeneratorFunction]",w="[object Map]",x="[object Number]",k="[object Object]",S="[object Promise]",Q="[object RegExp]",P="[object Set]",$="[object String]",C="[object Symbol]",T="[object WeakMap]",R="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",E="[object Float64Array]",Z="[object Int8Array]",X="[object Int16Array]",D="[object Int32Array]",j="[object Uint8Array]",q="[object Uint8ClampedArray]",L="[object Uint16Array]",I="[object Uint32Array]",N=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,W=RegExp(Y.source),G=RegExp(B.source),U=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,it=RegExp(et.source),nt=/^\s+/,rt=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,_t=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,Ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,yt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Qt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$t="["+bt+"]",Ct="["+Pt+"]",Tt="["+wt+"]",Rt="\\d+",Mt="["+xt+"]",At="["+kt+"]",Et="[^"+bt+Pt+Rt+xt+kt+St+"]",Zt="\\ud83c[\\udffb-\\udfff]",Xt="[^"+bt+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",qt="["+St+"]",Lt="\\u200d",It="(?:"+At+"|"+Et+")",Nt="(?:"+qt+"|"+Et+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yt="(?:"+Tt+"|"+Zt+")?",Bt="["+Qt+"]?",Wt=Bt+Yt+"(?:"+Lt+"(?:"+[Xt,Dt,jt].join("|")+")"+Bt+Yt+")*",Gt="(?:"+[Mt,Dt,jt].join("|")+")"+Wt,Ut="(?:"+[Xt+Tt+"?",Tt,Dt,jt,$t].join("|")+")",Ht=RegExp("['’]","g"),Ft=RegExp(Tt,"g"),Kt=RegExp(Zt+"(?="+Zt+")|"+Ut+Wt,"g"),Jt=RegExp([qt+"?"+At+"+"+Vt+"(?="+[Ct,qt,"$"].join("|")+")",Nt+"+"+zt+"(?="+[Ct,qt+It,"$"].join("|")+")",qt+"?"+It+"+"+Vt,qt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt,Gt].join("|"),"g"),te=RegExp("["+Lt+bt+wt+Qt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,re={};re[A]=re[E]=re[Z]=re[X]=re[D]=re[j]=re[q]=re[L]=re[I]=!0,re[g]=re[_]=re[R]=re[m]=re[M]=re[O]=re[v]=re[y]=re[w]=re[x]=re[k]=re[Q]=re[P]=re[$]=re[T]=!1;var se={};se[g]=se[_]=se[R]=se[M]=se[m]=se[O]=se[A]=se[E]=se[Z]=se[X]=se[D]=se[w]=se[x]=se[k]=se[Q]=se[P]=se[$]=se[C]=se[j]=se[q]=se[L]=se[I]=!0,se[v]=se[y]=se[T]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,le=parseInt,he="object"==typeof global&&global&&global.Object===Object&&global,ce="object"==typeof self&&self&&self.Object===Object&&self,ue=he||ce||Function("return this")(),pe=e&&!e.nodeType&&e,fe=pe&&t&&!t.nodeType&&t,de=fe&&fe.exports===pe,ge=de&&he.process,_e=function(){try{return fe&&fe.require&&fe.require("util").types||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),me=_e&&_e.isArrayBuffer,Oe=_e&&_e.isDate,ve=_e&&_e.isMap,ye=_e&&_e.isRegExp,be=_e&&_e.isSet,we=_e&&_e.isTypedArray;function xe(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function ke(t,e,i,n){for(var r=-1,s=null==t?0:t.length;++r<s;){var o=t[r];e(n,o,i(o),t)}return n}function Se(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t}function Qe(t,e){for(var i=null==t?0:t.length;i--&&!1!==e(t[i],i,t););return t}function Pe(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(!e(t[i],i,t))return!1;return!0}function $e(t,e){for(var i=-1,n=null==t?0:t.length,r=0,s=[];++i<n;){var o=t[i];e(o,i,t)&&(s[r++]=o)}return s}function Ce(t,e){return!(null==t||!t.length)&&qe(t,e,0)>-1}function Te(t,e,i){for(var n=-1,r=null==t?0:t.length;++n<r;)if(i(e,t[n]))return!0;return!1}function Re(t,e){for(var i=-1,n=null==t?0:t.length,r=Array(n);++i<n;)r[i]=e(t[i],i,t);return r}function Me(t,e){for(var i=-1,n=e.length,r=t.length;++i<n;)t[r+i]=e[i];return t}function Ae(t,e,i,n){var r=-1,s=null==t?0:t.length;for(n&&s&&(i=t[++r]);++r<s;)i=e(i,t[r],r,t);return i}function Ee(t,e,i,n){var r=null==t?0:t.length;for(n&&r&&(i=t[--r]);r--;)i=e(i,t[r],r,t);return i}function Ze(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1}var Xe=Ve("length");function De(t,e,i){var n;return i(t,function(t,i,r){if(e(t,i,r))return n=i,!1}),n}function je(t,e,i,n){for(var r=t.length,s=i+(n?1:-1);n?s--:++s<r;)if(e(t[s],s,t))return s;return-1}function qe(t,e,i){return e==e?function(t,e,i){for(var n=i-1,r=t.length;++n<r;)if(t[n]===e)return n;return-1}(t,e,i):je(t,Ie,i)}function Le(t,e,i,n){for(var r=i-1,s=t.length;++r<s;)if(n(t[r],e))return r;return-1}function Ie(t){return t!=t}function Ne(t,e){var i=null==t?0:t.length;return i?Be(t,e)/i:p}function Ve(t){return function(e){return null==e?r:e[t]}}function ze(t){return function(e){return null==t?r:t[e]}}function Ye(t,e,i,n,r){return r(t,function(t,r,s){i=n?(n=!1,t):e(i,t,r,s)}),i}function Be(t,e){for(var i,n=-1,s=t.length;++n<s;){var o=e(t[n]);o!==r&&(i=i===r?o:i+o)}return i}function We(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}function Ge(t){return t?t.slice(0,ui(t)+1).replace(nt,""):t}function Ue(t){return function(e){return t(e)}}function He(t,e){return Re(e,function(e){return t[e]})}function Fe(t,e){return t.has(e)}function Ke(t,e){for(var i=-1,n=t.length;++i<n&&qe(e,t[i],0)>-1;);return i}function Je(t,e){for(var i=t.length;i--&&qe(e,t[i],0)>-1;);return i}var ti=ze({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ei=ze({"&":"&","<":"<",">":">",'"':""","'":"'"});function ii(t){return"\\"+oe[t]}function ni(t){return te.test(t)}function ri(t){var e=-1,i=Array(t.size);return t.forEach(function(t,n){i[++e]=[n,t]}),i}function si(t,e){return function(i){return t(e(i))}}function oi(t,e){for(var i=-1,n=t.length,r=0,s=[];++i<n;){var o=t[i];o!==e&&o!==a||(t[i]=a,s[r++]=i)}return s}function ai(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}function li(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=[t,t]}),i}function hi(t){return ni(t)?function(t){for(var e=Kt.lastIndex=0;Kt.test(t);)++e;return e}(t):Xe(t)}function ci(t){return ni(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.split("")}(t)}function ui(t){for(var e=t.length;e--&&rt.test(t.charAt(e)););return e}var pi=ze({"&":"&","<":"<",">":">",""":'"',"'":"'"}),fi=function t(e){var i,n=(e=null==e?ue:fi.defaults(ue.Object(),e,fi.pick(ue,ie))).Array,rt=e.Date,bt=e.Error,wt=e.Function,xt=e.Math,kt=e.Object,St=e.RegExp,Qt=e.String,Pt=e.TypeError,$t=n.prototype,Ct=wt.prototype,Tt=kt.prototype,Rt=e["__core-js_shared__"],Mt=Ct.toString,At=Tt.hasOwnProperty,Et=0,Zt=(i=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",Xt=Tt.toString,Dt=Mt.call(kt),jt=ue._,qt=St("^"+Mt.call(At).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=de?e.Buffer:r,It=e.Symbol,Nt=e.Uint8Array,Vt=Lt?Lt.allocUnsafe:r,zt=si(kt.getPrototypeOf,kt),Yt=kt.create,Bt=Tt.propertyIsEnumerable,Wt=$t.splice,Gt=It?It.isConcatSpreadable:r,Ut=It?It.iterator:r,Kt=It?It.toStringTag:r,te=function(){try{var t=ls(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ue.clearTimeout&&e.clearTimeout,he=rt&&rt.now!==ue.Date.now&&rt.now,ce=e.setTimeout!==ue.setTimeout&&e.setTimeout,pe=xt.ceil,fe=xt.floor,ge=kt.getOwnPropertySymbols,_e=Lt?Lt.isBuffer:r,Xe=e.isFinite,ze=$t.join,di=si(kt.keys,kt),gi=xt.max,_i=xt.min,mi=rt.now,Oi=e.parseInt,vi=xt.random,yi=$t.reverse,bi=ls(e,"DataView"),wi=ls(e,"Map"),xi=ls(e,"Promise"),ki=ls(e,"Set"),Si=ls(e,"WeakMap"),Qi=ls(kt,"create"),Pi=Si&&new Si,$i={},Ci=Xs(bi),Ti=Xs(wi),Ri=Xs(xi),Mi=Xs(ki),Ai=Xs(Si),Ei=It?It.prototype:r,Zi=Ei?Ei.valueOf:r,Xi=Ei?Ei.toString:r;function Di(t){if(ta(t)&&!Vo(t)&&!(t instanceof Ii)){if(t instanceof Li)return t;if(At.call(t,"__wrapped__"))return Ds(t)}return new Li(t)}var ji=function(){function t(){}return function(e){if(!Jo(e))return{};if(Yt)return Yt(e);t.prototype=e;var i=new t;return t.prototype=r,i}}();function qi(){}function Li(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Ii(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Ni(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Vi(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function zi(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Yi(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new zi;++e<i;)this.add(t[e])}function Bi(t){var e=this.__data__=new Vi(t);this.size=e.size}function Wi(t,e){var i=Vo(t),n=!i&&No(t),r=!i&&!n&&Wo(t),s=!i&&!n&&!r&&la(t),o=i||n||r||s,a=o?We(t.length,Qt):[],l=a.length;for(var h in t)!e&&!At.call(t,h)||o&&("length"==h||r&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||gs(h,l))||a.push(h);return a}function Gi(t){var e=t.length;return e?t[Yn(0,e-1)]:r}function Ui(t,e){return Rs(Qr(t),sn(e,0,t.length))}function Hi(t){return Rs(Qr(t))}function Fi(t,e,i){(i!==r&&!qo(t[e],i)||i===r&&!(e in t))&&nn(t,e,i)}function Ki(t,e,i){var n=t[e];At.call(t,e)&&qo(n,i)&&(i!==r||e in t)||nn(t,e,i)}function Ji(t,e){for(var i=t.length;i--;)if(qo(t[i][0],e))return i;return-1}function tn(t,e,i,n){return cn(t,function(t,r,s){e(n,t,i(t),s)}),n}function en(t,e){return t&&Pr(e,Ta(e),t)}function nn(t,e,i){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function rn(t,e){for(var i=-1,s=e.length,o=n(s),a=null==t;++i<s;)o[i]=a?r:Sa(t,e[i]);return o}function sn(t,e,i){return t==t&&(i!==r&&(t=t<=i?t:i),e!==r&&(t=t>=e?t:e)),t}function on(t,e,i,n,s,o){var a,l=1&e,h=2&e,c=4&e;if(i&&(a=s?i(t,n,s,o):i(t)),a!==r)return a;if(!Jo(t))return t;var u=Vo(t);if(u){if(a=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&At.call(t,"index")&&(i.index=t.index,i.input=t.input),i}(t),!l)return Qr(t,a)}else{var p=us(t),f=p==y||p==b;if(Wo(t))return yr(t,l);if(p==k||p==g||f&&!s){if(a=h||f?{}:fs(t),!l)return h?function(t,e){return Pr(t,cs(t),e)}(t,function(t,e){return t&&Pr(e,Ra(e),t)}(a,t)):function(t,e){return Pr(t,hs(t),e)}(t,en(a,t))}else{if(!se[p])return s?t:{};a=function(t,e,i){var n,r=t.constructor;switch(e){case R:return br(t);case m:case O:return new r(+t);case M:return function(t,e){var i=e?br(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,i);case A:case E:case Z:case X:case D:case j:case q:case L:case I:return wr(t,i);case w:return new r;case x:case $:return new r(t);case Q:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new r;case C:return n=t,Zi?kt(Zi.call(n)):{}}}(t,p,l)}}o||(o=new Bi);var d=o.get(t);if(d)return d;o.set(t,a),sa(t)?t.forEach(function(n){a.add(on(n,e,i,n,t,o))}):ea(t)&&t.forEach(function(n,r){a.set(r,on(n,e,i,r,t,o))});var _=u?r:(c?h?es:ts:h?Ra:Ta)(t);return Se(_||t,function(n,r){_&&(n=t[r=n]),Ki(a,r,on(n,e,i,r,t,o))}),a}function an(t,e,i){var n=i.length;if(null==t)return!n;for(t=kt(t);n--;){var s=i[n],o=e[s],a=t[s];if(a===r&&!(s in t)||!o(a))return!1}return!0}function ln(t,e,i){if("function"!=typeof t)throw new Pt(s);return Ps(function(){t.apply(r,i)},e)}function hn(t,e,i,n){var r=-1,s=Ce,o=!0,a=t.length,l=[],h=e.length;if(!a)return l;i&&(e=Re(e,Ue(i))),n?(s=Te,o=!1):e.length>=200&&(s=Fe,o=!1,e=new Yi(e));t:for(;++r<a;){var c=t[r],u=null==i?c:i(c);if(c=n||0!==c?c:0,o&&u==u){for(var p=h;p--;)if(e[p]===u)continue t;l.push(c)}else s(e,u,n)||l.push(c)}return l}Di.templateSettings={escape:U,evaluate:H,interpolate:F,variable:"",imports:{_:Di}},Di.prototype=qi.prototype,Di.prototype.constructor=Di,Li.prototype=ji(qi.prototype),Li.prototype.constructor=Li,Ii.prototype=ji(qi.prototype),Ii.prototype.constructor=Ii,Ni.prototype.clear=function(){this.__data__=Qi?Qi(null):{},this.size=0},Ni.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ni.prototype.get=function(t){var e=this.__data__;if(Qi){var i=e[t];return i===o?r:i}return At.call(e,t)?e[t]:r},Ni.prototype.has=function(t){var e=this.__data__;return Qi?e[t]!==r:At.call(e,t)},Ni.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Qi&&e===r?o:e,this},Vi.prototype.clear=function(){this.__data__=[],this.size=0},Vi.prototype.delete=function(t){var e=this.__data__,i=Ji(e,t);return!(i<0||(i==e.length-1?e.pop():Wt.call(e,i,1),--this.size,0))},Vi.prototype.get=function(t){var e=this.__data__,i=Ji(e,t);return i<0?r:e[i][1]},Vi.prototype.has=function(t){return Ji(this.__data__,t)>-1},Vi.prototype.set=function(t,e){var i=this.__data__,n=Ji(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this},zi.prototype.clear=function(){this.size=0,this.__data__={hash:new Ni,map:new(wi||Vi),string:new Ni}},zi.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},zi.prototype.get=function(t){return os(this,t).get(t)},zi.prototype.has=function(t){return os(this,t).has(t)},zi.prototype.set=function(t,e){var i=os(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this},Yi.prototype.add=Yi.prototype.push=function(t){return this.__data__.set(t,o),this},Yi.prototype.has=function(t){return this.__data__.has(t)},Bi.prototype.clear=function(){this.__data__=new Vi,this.size=0},Bi.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Bi.prototype.get=function(t){return this.__data__.get(t)},Bi.prototype.has=function(t){return this.__data__.has(t)},Bi.prototype.set=function(t,e){var i=this.__data__;if(i instanceof Vi){var n=i.__data__;if(!wi||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new zi(n)}return i.set(t,e),this.size=i.size,this};var cn=Tr(On),un=Tr(vn,!0);function pn(t,e){var i=!0;return cn(t,fu