/*! * froala_editor v3.0.0-rc.2 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2019 Froala Labs */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("froala-editor")):"function"==typeof define&&define.amd?define(["froala-editor"],t):t(e.FroalaEditor)}(this,function(be){"use strict";function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if((be=be&&be.hasOwnProperty("default")?be["default"]:be).PLUGINS.align=function(r){var i=r.$;return{apply:function(e){var t=r.selection.element();if(i(t).parents(".fr-img-caption").length)i(t).css("text-align",e);else{r.selection.save(),r.html.wrap(!0,!0,!0,!0),r.selection.restore();for(var a=r.selection.blocks(),n=0;n *").first().replaceWith(r.icon.create("align-"+a))}},refreshOnShow:function(e,t){var a=r.selection.blocks();if(a.length){var n=r.helpers.getAlignment(i(a[0]));t.find('a.fr-command[data-param1="'+n+'"]').addClass("fr-active").attr("aria-selected",!0)}},refreshForToolbar:function(e){var t=r.selection.blocks();if(t.length){var a=r.helpers.getAlignment(i(t[0]));"align"+(a=a.charAt(0).toUpperCase()+a.slice(1))===e.attr("data-cmd")&&e.addClass("fr-active")}}}},be.DefineIcon("align",{NAME:"align-left",SVG_KEY:"alignLeft"}),be.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),be.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),be.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"}),be.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"}),be.RegisterCommand("align",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var e='"},callback:function(e,t){this.align.apply(t)},refresh:function(e){this.align.refresh(e)},refreshOnShow:function(e,t){this.align.refreshOnShow(e,t)},plugin:"align"}),be.RegisterCommand("alignLeft",{type:"button",icon:"align-left",title:"Align Left",callback:function(){this.align.apply("left")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),be.RegisterCommand("alignRight",{type:"button",icon:"align-right",title:"Align Right",callback:function(){this.align.apply("right")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),be.RegisterCommand("alignCenter",{type:"button",icon:"align-center",title:"Align Center",callback:function(){this.align.apply("center")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),be.RegisterCommand("alignJustify",{type:"button",icon:"align-justify",title:"Align Justify",callback:function(){this.align.apply("justify")},refresh:function(e){this.align.refreshForToolbar(e)},plugin:"align"}),Object.assign(be.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),be.PLUGINS.charCounter=function(a){var n,t=a.$;function r(){return(a.el.textContent||"").replace(/\u200B/g,"").length}function e(e){if(a.opts.charCounterMax<0)return!0;if(r()").html(e).text().length+r()<=a.opts.charCounterMax?e:(a.events.trigger("charCounter.exceeded"),"")}function s(){if(a.opts.charCounterCount){var e=r()+(0a&&(a=e.line_indent_level)),{mode:t,parent:e,last_text:e?e.last_text:"",last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:a,line_indent_level:e?e.line_indent_level:a,start_line_index:s.get_line_number(),ternary_depth:0}}for(u={TK_START_EXPR:function(){O();var e=N.Expression;if("["===o.text){if("TK_WORD"===l||")"===f.last_text)return"TK_RESERVED"===l&&z(f.last_text,i.line_starters)&&(s.space_before_token=!0),L(e),R(),S(),void(h.space_in_paren&&(s.space_before_token=!0));e=N.ArrayLiteral,_(f.mode)&&("["!==f.last_text&&(","!==f.last_text||"]"!==c&&"}"!==c)||h.keep_array_indentation||T())}else"TK_RESERVED"===l&&"for"===f.last_text?e=N.ForInitializer:"TK_RESERVED"===l&&z(f.last_text,["if","while"])&&(e=N.Conditional);" "===f.last_text||"TK_START_BLOCK"===l?T():"TK_END_EXPR"===l||"TK_START_EXPR"===l||"TK_END_BLOCK"===l||"."===f.last_text?A(o.wanted_newline):"TK_RESERVED"===l&&"("===o.text||"TK_WORD"===l||"TK_OPERATOR"===l?"TK_RESERVED"===l&&("function"===f.last_word||"typeof"===f.last_word)||"*"===f.last_text&&"function"===c?h.space_after_anon_function&&(s.space_before_token=!0):"TK_RESERVED"!==l||!z(f.last_text,i.line_starters)&&"catch"!==f.last_text||h.space_before_conditional&&(s.space_before_token=!0):s.space_before_token=!0;"("===o.text&&"TK_RESERVED"===l&&"await"===f.last_word&&(s.space_before_token=!0);"("===o.text&&("TK_EQUALS"!==l&&"TK_OPERATOR"!==l||I()||A());L(e),R(),h.space_in_paren&&(s.space_before_token=!0);S()},TK_END_EXPR:function(){for(;f.mode===N.Statement;)y();f.multiline_frame&&A("]"===o.text&&_(f.mode)&&!h.keep_array_indentation);h.space_in_paren&&("TK_START_EXPR"!==l||h.space_in_empty_paren?s.space_before_token=!0:(s.trim(),s.space_before_token=!1));"]"===o.text&&h.keep_array_indentation?(R(),y()):(y(),R());s.remove_redundant_indentation(p),f.do_while&&p.mode===N.Conditional&&(p.mode=N.Expression,f.do_block=!1,f.do_while=!1)},TK_START_BLOCK:function(){var e=F(1),t=F(2);t&&(":"===t.text&&z(e.type,["TK_STRING","TK_WORD","TK_RESERVED"])||z(e.text,["get","set"])&&z(t.type,["TK_WORD","TK_RESERVED"]))?z(c,["class","interface"])?L(N.BlockStatement):L(N.ObjectLiteral):L(N.BlockStatement);var a=!e.comments_before.length&&"}"===e.text&&"function"===f.last_word&&"TK_END_EXPR"===l;"expand"===h.brace_style||"none"===h.brace_style&&o.wanted_newline?"TK_OPERATOR"!==l&&(a||"TK_EQUALS"===l||"TK_RESERVED"===l&&x(f.last_text)&&"else"!==f.last_text)?s.space_before_token=!0:T(!1,!0):"TK_OPERATOR"!==l&&"TK_START_EXPR"!==l?"TK_START_BLOCK"===l?T():s.space_before_token=!0:_(p.mode)&&","===f.last_text&&("}"===c?s.space_before_token=!0:T());R(),S()},TK_END_BLOCK:function(){for(;f.mode===N.Statement;)y();var e="TK_START_BLOCK"===l;"expand"===h.brace_style?e||T():e||(_(f.mode)&&h.keep_array_indentation?(h.keep_array_indentation=!1,T(),h.keep_array_indentation=!0):T());y(),R()},TK_WORD:k,TK_RESERVED:k,TK_SEMICOLON:function(){O()&&(s.space_before_token=!1);for(;f.mode===N.Statement&&!f.if_block&&!f.do_block;)y();R()},TK_STRING:function(){O()?s.space_before_token=!0:"TK_RESERVED"===l||"TK_WORD"===l?s.space_before_token=!0:"TK_COMMA"===l||"TK_START_EXPR"===l||"TK_EQUALS"===l||"TK_OPERATOR"===l?I()||A():T();R()},TK_EQUALS:function(){O();f.declaration_statement&&(f.declaration_assignment=!0);s.space_before_token=!0,R(),s.space_before_token=!0},TK_OPERATOR:function(){O();if("TK_RESERVED"===l&&x(f.last_text))return s.space_before_token=!0,void R();if("*"===o.text&&"TK_DOT"===l)return void R();if(":"===o.text&&f.in_case)return f.case_body=!0,S(),R(),T(),void(f.in_case=!1);if("::"===o.text)return void R();"TK_OPERATOR"===l&&A();var e=!0,t=!0;z(o.text,["--","++","!","~"])||z(o.text,["-","+"])&&(z(l,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||z(f.last_text,i.line_starters)||","===f.last_text)?(t=e=!1,!o.wanted_newline||"--"!==o.text&&"++"!==o.text||T(!1,!0)," "===f.last_text&&w(f.mode)&&(e=!0),"TK_RESERVED"===l?e=!0:"TK_END_EXPR"===l?e=!("]"===f.last_text&&("--"===o.text||"++"===o.text)):"TK_OPERATOR"===l&&(e=z(o.text,["--","-","++","+"])&&z(f.last_text,["--","-","++","+"]),z(o.text,["+","-"])&&z(f.last_text,["--","++"])&&(t=!0)),f.mode!==N.BlockStatement&&f.mode!==N.Statement||"{"!==f.last_text&&" "!==f.last_text||T()):":"===o.text?0===f.ternary_depth?e=!1:f.ternary_depth-=1:"?"===o.text?f.ternary_depth+=1:"*"===o.text&&"TK_RESERVED"===l&&"function"===f.last_text&&(t=e=!1);s.space_before_token=s.space_before_token||e,R(),s.space_before_token=t},TK_COMMA:function(){if(f.declaration_statement)return w(f.parent.mode)&&(f.declaration_assignment=!1),R(),void(f.declaration_assignment?T(f.declaration_assignment=!1,!0):(s.space_before_token=!0,h.comma_first&&A()));R(),f.mode===N.ObjectLiteral||f.mode===N.Statement&&f.parent.mode===N.ObjectLiteral?(f.mode===N.Statement&&y(),T()):(s.space_before_token=!0,h.comma_first&&A())},TK_BLOCK_COMMENT:function(){if(s.raw)return s.add_raw_token(o),void(o.directives&&"end"===o.directives.preserve&&(h.test_output_raw||(s.raw=!1)));if(o.directives)return T(!1,!0),R(),"start"===o.directives.preserve&&(s.raw=!0),void T(!1,!0);if(!V.newline.test(o.text)&&!o.wanted_newline)return s.space_before_token=!0,R(),void(s.space_before_token=!0);var e,t=function(e){var t;e=e.replace(/\x0d/g,"");var a=[];t=e.indexOf("\n");for(;-1!==t;)a.push(e.substring(0,t)),e=e.substring(t+1),t=e.indexOf("\n");e.length&&a.push(e);return a}(o.text),a=!1,n=!1,r=o.whitespace_before,i=r.length;T(!1,!0),1i?R(t[e].substring(i)):s.add_token(t[e]);T(!1,!0)},TK_COMMENT:function(){o.wanted_newline?T(!1,!0):s.trim(!0);s.space_before_token=!0,R(),T(!1,!0)},TK_DOT:function(){O();"TK_RESERVED"===l&&x(f.last_text)?s.space_before_token=!0:A(")"===f.last_text&&h.break_chained_methods);R()},TK_UNKNOWN:function(){R(),"\n"===o.text[o.text.length-1]&&T()},TK_EOF:function(){for(;f.mode===N.Statement;)y()}},h={},(e=e||{}).braces_on_own_line!==undefined&&(h.brace_style=e.braces_on_own_line?"expand":"collapse"),h.brace_style=e.brace_style?e.brace_style:h.brace_style?h.brace_style:"collapse","expand-strict"===h.brace_style&&(h.brace_style="expand"),h.indent_size=e.indent_size?parseInt(e.indent_size,10):4,h.indent_char=e.indent_char?e.indent_char:" ",h.eol=e.eol?e.eol:"\n",h.preserve_newlines=e.preserve_newlines===undefined||e.preserve_newlines,h.break_chained_methods=e.break_chained_methods!==undefined&&e.break_chained_methods,h.max_preserve_newlines=e.max_preserve_newlines===undefined?0:parseInt(e.max_preserve_newlines,10),h.space_in_paren=e.space_in_paren!==undefined&&e.space_in_paren,h.space_in_empty_paren=e.space_in_empty_paren!==undefined&&e.space_in_empty_paren,h.jslint_happy=e.jslint_happy!==undefined&&e.jslint_happy,h.space_after_anon_function=e.space_after_anon_function!==undefined&&e.space_after_anon_function,h.keep_array_indentation=e.keep_array_indentation!==undefined&&e.keep_array_indentation,h.space_before_conditional=e.space_before_conditional===undefined||e.space_before_conditional,h.unescape_strings=e.unescape_strings!==undefined&&e.unescape_strings,h.wrap_line_length=e.wrap_line_length===undefined?0:parseInt(e.wrap_line_length,10),h.e4x=e.e4x!==undefined&&e.e4x,h.end_with_newline=e.end_with_newline!==undefined&&e.end_with_newline,h.comma_first=e.comma_first!==undefined&&e.comma_first,h.test_output_raw=e.test_output_raw!==undefined&&e.test_output_raw,h.jslint_happy&&(h.space_after_anon_function=!0),e.indent_with_tabs&&(h.indent_char="\t",h.indent_size=1),h.eol=h.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),d="";0h.max_preserve_newlines&&(t=h.max_preserve_newlines),h.preserve_newlines&&1=h.wrap_line_length&&T(!1,!0)}}function T(e,t){if(!t&&" "!==f.last_text&&","!==f.last_text&&"="!==f.last_text&&"TK_OPERATOR"!==l)for(;f.mode===N.Statement&&!f.if_block&&!f.do_block;)y();s.add_new_line(e)&&(f.multiline_frame=!0)}function C(){s.just_added_newline()&&(h.keep_array_indentation&&_(f.mode)&&o.wanted_newline?(s.current_line.push(o.whitespace_before),s.space_before_token=!1):s.set_indent(f.indentation_level)&&(f.line_indent_level=f.indentation_level))}function R(e){s.raw?s.add_raw_token(o):(h.comma_first&&"TK_COMMA"===l&&s.just_added_newline()&&","===s.previous_line.last()&&(s.previous_line.pop(),C(),s.add_token(","),s.space_before_token=!0),e=e||o.text,C(),s.add_token(e))}function S(){f.indentation_level+=1}function L(e){f?(t.push(f),p=f):p=v(null,e),f=v(p,e)}function _(e){return e===N.ArrayLiteral}function w(e){return z(e,[N.Expression,N.ForInitializer,N.Conditional])}function y(){0=g.length?null:g[t]}function k(){("TK_RESERVED"===o.type&&f.mode!==N.ObjectLiteral&&z(o.text,["set","get"])&&(o.type="TK_WORD"),"TK_RESERVED"===o.type&&f.mode===N.ObjectLiteral)&&(":"===F(1).text&&(o.type="TK_WORD"));if(O()||!o.wanted_newline||w(f.mode)||"TK_OPERATOR"===l&&"--"!==f.last_text&&"++"!==f.last_text||"TK_EQUALS"===l||!h.preserve_newlines&&"TK_RESERVED"===l&&z(f.last_text,["const","let","const","set","get"])||T(),f.do_block&&!f.do_while){if("TK_RESERVED"===o.type&&"while"===o.text)return s.space_before_token=!0,R(),s.space_before_token=!0,void(f.do_while=!0);T(),f.do_block=!1}if(f.if_block)if(f.else_block||"TK_RESERVED"!==o.type||"else"!==o.text){for(;f.mode===N.Statement;)y();f.if_block=!1,f.else_block=!1}else f.else_block=!0;if("TK_RESERVED"===o.type&&("case"===o.text||"default"===o.text&&f.in_case_statement))return T(),(f.case_body||h.jslint_happy)&&(0f.parent.indentation_level)&&(f.indentation_level-=1),f.case_body=!1),R(),f.in_case=!0,void(f.in_case_statement=!0);if("TK_RESERVED"===o.type&&"function"===o.text&&((z(f.last_text,["}"," "])||s.just_added_newline()&&!z(f.last_text,["[","{",":","=",","]))&&(s.just_added_blankline()||o.comments_before.length||(T(),T(!0))),"TK_RESERVED"===l||"TK_WORD"===l?"TK_RESERVED"===l&&z(f.last_text,["get","set","new","return","export","async"])?s.space_before_token=!0:"TK_RESERVED"===l&&"default"===f.last_text&&"export"===c?s.space_before_token=!0:T():"TK_OPERATOR"===l||"="===f.last_text?s.space_before_token=!0:(f.multiline_frame||!w(f.mode)&&!_(f.mode))&&T()),"TK_COMMA"!==l&&"TK_START_EXPR"!==l&&"TK_EQUALS"!==l&&"TK_OPERATOR"!==l||I()||A(),"TK_RESERVED"===o.type&&z(o.text,["function","get","set"]))return R(),void(f.last_word=o.text);(a="NONE","TK_END_BLOCK"===l?"TK_RESERVED"===o.type&&z(o.text,["else","catch","finally"])?"expand"===h.brace_style||"end-expand"===h.brace_style||"none"===h.brace_style&&o.wanted_newline?a="NEWLINE":(a="SPACE",s.space_before_token=!0):a="NEWLINE":"TK_SEMICOLON"===l&&f.mode===N.BlockStatement?a="NEWLINE":"TK_SEMICOLON"===l&&w(f.mode)?a="SPACE":"TK_STRING"===l?a="NEWLINE":"TK_RESERVED"===l||"TK_WORD"===l||"*"===f.last_text&&"function"===c?a="SPACE":"TK_START_BLOCK"===l?a="NEWLINE":"TK_END_EXPR"===l&&(s.space_before_token=!0,a="NEWLINE"),"TK_RESERVED"===o.type&&z(o.text,i.line_starters)&&")"!==f.last_text&&(a="else"===f.last_text||"export"===f.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===o.type&&z(o.text,["else","catch","finally"]))?"TK_END_BLOCK"!==l||"expand"===h.brace_style||"end-expand"===h.brace_style||"none"===h.brace_style&&o.wanted_newline?T():(s.trim(!0),"}"!==s.current_line.last()&&T(),s.space_before_token=!0):"NEWLINE"===a?"TK_RESERVED"===l&&x(f.last_text)?s.space_before_token=!0:"TK_END_EXPR"!==l?"TK_START_EXPR"===l&&"TK_RESERVED"===o.type&&z(o.text,["const","let","const"])||":"===f.last_text||("TK_RESERVED"===o.type&&"if"===o.text&&"else"===f.last_text?s.space_before_token=!0:T()):"TK_RESERVED"===o.type&&z(o.text,i.line_starters)&&")"!==f.last_text&&T():f.multiline_frame&&_(f.mode)&&","===f.last_text&&"}"===c?T():"SPACE"===a&&(s.space_before_token=!0);R(),f.last_word=o.text,"TK_RESERVED"===o.type&&"do"===o.text&&(f.do_block=!0),"TK_RESERVED"===o.type&&"if"===o.text&&(f.if_block=!0)}l="TK_START_BLOCK",c="",(s=new D(d,m)).raw=h.test_output_raw,t=[],L(N.BlockStatement),this.beautify=function(){var e,t;for(i=new M(n,h,d),g=i.tokenize(),r=0;e=F();){for(var a=0;a=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(e),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(e){for(var t=0;t < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>".split(" ");this.line_starters="continue,try,throw,return,const,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var k,N,D,M,B,P,U=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"]),W=/([\s\S]*?)((?:\*\/)|$)/g,K=/([^\n\r\u2028\u2029]*)/g,H=/\/\* beautify( \w+[:]\w+)+ \*\//g,$=/ (\w+)[:](\w+)/g,G=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,Y=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;function s(){var e,t,a=[];if(k=0,N="",P<=B)return["","TK_EOF"];t=M.length?M[M.length-1]:new q("TK_START_BLOCK","{");var n=_.charAt(B);for(B+=1;z(n,y);){if(V.newline.test(n)?"\n"===n&&"\r"===_.charAt(B-2)||(k+=1,a=[]):a.push(n),P<=B)return["","TK_EOF"];n=_.charAt(B),B+=1}if(a.length&&(N=a.join("")),I.test(n)){var r=!0,i=!0,s=I;for("0"===n&&B/))&&("TK_RESERVED"===t.type&&z(t.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===t.type&&")"===t.text&&t.parent&&"TK_RESERVED"===t.parent.type&&z(t.parent.text,["if","while","for"])||z(t.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var f=n,p=!1,u=!1;if(e=n,"/"===f)for(var h=!1;B/g,m=_.slice(B-1),v=g.exec(m);if(v&&0===v.index){for(var E=v[2],b=0;v;){var A=!!v[1],T=v[2],C=!!v[v.length-1]||"![CDATA["===T.slice(0,8);if(T!==E||C||(A?--b:++b),b<=0)break;v=g.exec(m)}var R=v?v.index+v[0].length:m.length;return m=m.slice(0,R),B+=R-1,[m=m.replace(V.lineBreak,"\n"),"TK_STRING"]}}else for(;B=this.wrap_line_length?(this.print_newline(!1,e),this.print_indentation(e)):(this.line_char_count++,e.push(" "))},this.get_content=function(){for(var e="",t=[];"<"!=this.input.charAt(this.pos);){if(this.pos>=this.input.length)return t.length?t.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(t);else{if(E){var a=this.input.substr(this.pos,3);if("{{#"===a||"{{/"===a)break;if("{{!"===a)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"===this.input.substr(this.pos,2)&&"{{else}}"===this.get_tag(!0))break}e=this.input.charAt(this.pos),this.pos++,this.line_char_count++,t.push(e)}}return t.length?t.join(""):""},this.get_contents_to=function(e){if(this.pos===this.input.length)return["","TK_EOF"];var t="",a=new RegExp("","igm");a.lastIndex=this.pos;var n=a.exec(this.input),r=n?n.index:this.input.length;return this.pos=this.input.length)return e&&(this.pos=l,this.line_char_count=c),r.length?r.join(""):["","TK_EOF"];if(n=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(n,this.Utils.whitespace))s=!0;else{if("'"!==n&&'"'!==n||(n+=this.get_unformatted(n),s=!0),"="===n&&(s=!1),r.length&&"="!=r[r.length-1]&&">"!=n&&s){if(this.space_or_wrap(r),s=!1,!o&&"force"===b&&"/"!=n){this.print_newline(!0,r),this.print_indentation(r);for(var d=0;d"!=n);var p,u,h=r.join("");p=-1!=h.indexOf(" ")?h.indexOf(" "):"{"===h[0]?h.indexOf("}"):h.indexOf(">"),u="<"!==h[0]&&E?"#"===h[2]?3:2:1;var g=h.substring(u,p).toLowerCase();return"/"===h.charAt(h.length-2)||this.Utils.in_array(g,this.Utils.single_token)?e||(this.tag_type="SINGLE"):E&&"{"===h[0]&&"else"===g?e||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(g,v)?(i=this.get_unformatted("",h),r.push(i),this.pos,this.tag_type="SINGLE"):"script"===g&&(-1===h.search("type")||-1",n=!0):0===t.indexOf("",n=!0):0===t.indexOf("",n=!0):0===t.indexOf("\x3c!--")?(a="--\x3e",n=!0):0===t.indexOf("{{!")?(a="}}",n=!0):0===t.indexOf("",n=!0):0===t.indexOf("<%")&&(a="%>",n=!0)),r=this.input.charAt(this.pos),this.pos++;return t},this.get_unformatted=function(e,t){if(t&&-1!=t.toLowerCase().indexOf(e))return"";var a="",n="",r=0,i=!0;do{if(this.pos>=this.input.length)return n;if(a=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(a,this.Utils.whitespace)){if(!i){this.line_char_count--;continue}if("\n"===a||"\r"===a){n+="\n",this.line_char_count=0;continue}}n+=a,this.line_char_count++,i=!0,E&&"{"===a&&n.length&&"{"===n[n.length-2]&&(r=(n+=this.get_unformatted("}}")).length)}while(-1===n.toLowerCase().indexOf(e,r));return n},this.get_token=function(){var e;if("TK_TAG_SCRIPT"===this.last_token||"TK_TAG_STYLE"===this.last_token){var t=this.last_token.substr(7);return"string"!=typeof(e=this.get_contents_to(t))?e:[e,"TK_"+t]}return"CONTENT"===this.current_mode?"string"!=typeof(e=this.get_content())?e:[e,"TK_CONTENT"]:"TAG"===this.current_mode?"string"!=typeof(e=this.get_tag())?e:[e,"TK_TAG_"+this.tag_type]:void 0},this.get_full_indent=function(e){return(e=this.indent_level+e||0)<1?"":new Array(e+1).join(this.indent_string)},this.is_unformatted=function(e,t){if(!this.Utils.in_array(e,t))return!1;if("a"!=e.toLowerCase()||!this.Utils.in_array("a",t))return!0;var a=(this.get_tag(!0)||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!(a&&!this.Utils.in_array(a,t))},this.printer=function(e,t,a,n,r){this.input=e||"",this.output=[],this.indent_character=t,this.indent_string="",this.indent_size=a,this.brace_style=r,this.indent_level=0,this.wrap_line_length=n;for(var i=this.line_char_count=0;i'),l.$wp.append(c),c.attr("dir",l.opts.direction),l.$box.hasClass("fr-basic")||(g=f(''),l.$box.append(g),l.events.bindClick(l.$box,"a.html-switch",function(){l.events.trigger("commands.before",["html"]),b(!1),l.events.trigger("commands.after",["html"])}));var e=function(){return!p()};l.events.on("buttons.refresh",e),l.events.on("copy",e,!0),l.events.on("cut",e,!0),l.events.on("paste",e,!0),l.events.on("destroy",A,!0),l.events.on("html.set",function(){p()&&b(!0)}),l.events.on("codeView.update",h),l.events.on("codeView.toggle",function(){l.$box.hasClass("fr-code-view")&&b()}),l.events.on("form.submit",function(){p()&&(l.html.set(u()),l.events.trigger("contentChanged",[],!0))},!0)}(),!d&&l.opts.codeMirror?((d=l.opts.codeMirror.fromTextArea(c.get(0),l.opts.codeMirrorOptions)).on("blur",v),d.on("focus",E)):(l.events.$on(c,"keydown keyup change input",function(){l.opts.height?this.removeAttribute("rows"):(this.rows=1,0===this.value.length?this.style.height="auto":this.style.height=this.scrollHeight+"px")}),l.events.$on(c,"blur",v),l.events.$on(c,"focus",E))),l.undo.saveStep(),l.html.cleanEmptyTags(),l.html.cleanWhiteTags(!0),l.core.hasFocus()&&(l.core.isEmpty()||(l.selection.save(),l.$el.find('.fr-marker[data-type="true"]').first().replaceWith('F'),l.$el.find('.fr-marker[data-type="false"]').last().replaceWith('F')));var t=l.html.get(!1,!0);l.$el.find("span.fr-tmp").remove(),l.$box.toggleClass("fr-code-view",!0);var a,n,r=!1;if(l.core.hasFocus()&&(r=!0,l.events.disableBlur(),l.$el.blur()),t=(t=t.replace(/F<\/span>/,"FROALA-SM")).replace(/F<\/span>/,"FROALA-EM"),l.codeBeautifier&&(t=l.codeBeautifier.run(t,l.opts.codeBeautifierOptions)),d){a=t.indexOf("FROALA-SM"),(n=t.indexOf("FROALA-EM")) .fr-command, .fr-more-toolbar > .fr-command, .fr-btn-grp > .fr-btn-wrap > .fr-command, .fr-more-toolbar > .fr-btn-wrap > .fr-command").not(e).filter(function(){return l.opts.codeViewKeepActiveButtons.indexOf(f(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!0),e.addClass("fr-active").attr("aria-pressed",!0),!l.helpers.isMobile()&&l.opts.toolbarInline&&l.toolbar.hide()}function b(e){void 0===e&&(e=!p());var t,a,n=l.$tb.find('.fr-command[data-cmd="html"]');e?(l.popups.hideAll(),r(n)):(l.$box.toggleClass("fr-code-view",!1),t=n,a=u(),l.html.set(a),l.$el.blur(),l.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command, .fr-btn-grp > .fr-btn-wrap > .fr-command, .fr-more-toolbar > .fr-btn-wrap > .fr-command").not(t).removeClass("fr-disabled").attr("aria-disabled",!1),t.removeClass("fr-active").attr("aria-pressed",!1),l.selection.setAtStart(l.el),l.selection.restore(),l.placeholder.refresh(),l.undo.saveStep())}function A(){p()&&b(!1),d&&d.toTextArea(),c.val("").removeData().remove(),c=null,g&&(g.remove(),g=null)}return{_init:function(){if(l.events.on("focus",function(){var e;l.opts.toolbarContainer&&(e=l.$tb.find('.fr-command[data-cmd="html"]'),p()?(l.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").not(e).filter(function(){return l.opts.codeViewKeepActiveButtons.indexOf(f(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!1),e.addClass("fr-active").attr("aria-pressed",!1)):(l.$tb.find(".fr-btn-grp > .fr-command, .fr-more-toolbar > .fr-command").not(e).removeClass("fr-disabled").attr("aria-disabled",!1),e.removeClass("fr-active").attr("aria-pressed",!1)))}),!l.$wp)return!1},toggle:b,isActive:p,get:u}},be.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.codeView.toggle()},plugin:"codeView"}),be.DefineIcon("html",{NAME:"code",SVG_KEY:"codeView"}),Object.assign(be.POPUP_TEMPLATES,{"textColor.picker":"[_BUTTONS_][_TEXT_COLORS_][_CUSTOM_COLOR_]","backgroundColor.picker":"[_BUTTONS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),Object.assign(be.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsButtons:["colorsBack","|","-"]}),be.PLUGINS.colors=function(m){var v=m.$,s='
");function o(e){for(var t="text"===e?m.opts.colorsText:m.opts.colorsBackground,a='
'),n=0;n"),"REMOVE"!==t[n]?a+=' ').concat(m.language.translate("Color")).concat(t[n]," \n    "):a+='').concat(m.icon.create("remove"),' \n ').concat(m.language.translate("Clear Formatting")," ");return a+"
"}function l(e){var t,a=m.popups.get("".concat(e,"Color.picker")),n=v(m.selection.element());t="background"===e?"background-color":"color";var r=a.find(".fr-".concat(e,"-color .fr-select-color"));for(r.find(".fr-selected-color").remove(),r.removeClass("fr-active-item"),r.not('[data-param1="REMOVE"]').attr("aria-selected",!1);n.get(0)!==m.el;){if("transparent"!==n.css(t)&&"rgba(0, 0, 0, 0)"!==n.css(t)){var i=a.find(".fr-".concat(e,'-color .fr-select-color[data-param1="').concat(m.helpers.RGBToHex(n.css(t)),'"]'));i.append(''),i.addClass("fr-active-item").attr("aria-selected",!0);break}n=n.parent()}!function(e){var t=m.popups.get("".concat(e,"Color.picker")),a=t.find(".fr-".concat(e,"-color .fr-active-item")).attr("data-param1"),n=t.find(".fr-color-hex-layer input");a||(a="");n.length&&v(n.val(a).input).trigger("change")}(e)}function n(e){"REMOVE"!==e?m.format.applyStyle("background-color",m.helpers.HEXtoRGB(e)):m.format.removeStyle("background-color"),m.popups.hide("backgroundColor.picker")}function r(e){"REMOVE"!==e?m.format.applyStyle("color",m.helpers.HEXtoRGB(e)):m.format.removeStyle("color"),m.popups.hide("textColor.picker")}return{showColorsPopup:function(e){var t=m.$tb.find('.fr-command[data-cmd="'.concat(e,'"]')),a=m.popups.get("".concat(e,".picker"));if(a||(a=function(e){var t="";m.opts.toolbarInline&&0\n '.concat(m.button.buildList(m.opts.colorsButtons),"\n "));var a,n="";"textColor"===e?(m.opts.colorsHEXInput&&(n=s.replace(/\[ID\]/g,"fr-color-hex-layer-text-".concat(m.id)).replace(/\[COMMAND\]/g,"customTextColor")),a={buttons:t,text_colors:o("text"),custom_color:n}):(m.opts.colorsHEXInput&&(n=s.replace(/\[ID\]/g,"fr-color-hex-layer-background-".concat(m.id)).replace(/\[COMMAND\]/g,"customBackgroundColor")),a={buttons:t,background_colors:o("background"),custom_color:n});var h,g,r=m.popups.create("".concat(e,".picker"),a);return h=r,g="".concat(e,".picker"),m.events.on("popup.tab",function(e){var t=v(e.currentTarget);if(!m.popups.isVisible(g)||!t.is("span"))return!0;var a=e.which,n=!0;if(be.KEYCODE.TAB===a){var r=h.find(".fr-buttons");n=!m.accessibility.focusToolbar(r,!!e.shiftKey)}else if(be.KEYCODE.ARROW_UP===a||be.KEYCODE.ARROW_DOWN===a||be.KEYCODE.ARROW_LEFT===a||be.KEYCODE.ARROW_RIGHT===a){if(t.is("span.fr-select-color")){var i=t.parent().find("span.fr-select-color"),s=i.index(t),o=m.opts.colorsStep,l=Math.floor(i.length/o),c=s%o,d=Math.floor(s/o),f=d*o+c,p=l*o;be.KEYCODE.ARROW_UP===a?f=((f-o)%p+p)%p:be.KEYCODE.ARROW_DOWN===a?f=(f+o)%p:be.KEYCODE.ARROW_LEFT===a?f=((f-1)%p+p)%p:be.KEYCODE.ARROW_RIGHT===a&&(f=(f+1)%p);var u=v(i.get(f));m.events.disableBlur(),u.focus(),n=!1}}else be.KEYCODE.ENTER===a&&(m.button.exec(t),n=!1);return!1===n&&(e.preventDefault(),e.stopPropagation()),n},!0),r}(e)),!a.hasClass("fr-active"))if(m.popups.setContainer("".concat(e,".picker"),m.$tb),l("textColor"===e?"text":"background"),t.isVisible()){var n=m.button.getPosition(t),r=n.left,i=n.top;m.popups.show("".concat(e,".picker"),r,i,t.outerHeight())}else m.position.forSelection(a),m.popups.show("".concat(e,".picker"))},background:n,customColor:function(e){var t=m.popups.get("".concat(e,"Color.picker")).find(".fr-color-hex-layer input");if(t.length){var a=t.val();"background"===e?n(a):r(a)}},text:r,back:function(){m.popups.hide("textColor.picker"),m.popups.hide("backgroundColor.picker"),m.toolbar.showInline()}}},be.DefineIcon("textColor",{NAME:"tint",SVG_KEY:"textColor"}),be.RegisterCommand("textColor",{title:"Text Color",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("textColor.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("textColor.picker")):this.colors.showColorsPopup("textColor")}}),be.RegisterCommand("applytextColor",{undo:!0,callback:function(e,t){this.colors.text(t)}}),be.RegisterCommand("customTextColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("text")}}),be.DefineIcon("backgroundColor",{NAME:"paint-brush",SVG_KEY:"backgroundColor"}),be.RegisterCommand("backgroundColor",{title:"Background Color",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("backgroundColor.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("backgroundColor.picker")):this.colors.showColorsPopup("backgroundColor")}}),be.RegisterCommand("applybackgroundColor",{undo:!0,callback:function(e,t){this.colors.background(t)}}),be.RegisterCommand("customBackgroundColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor("background")}}),be.DefineIcon("colorsBack",{NAME:"arrow-left",SVG_KEY:"back"}),be.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),be.DefineIcon("remove",{NAME:"eraser",SVG_KEY:"remove"}),Object.assign(be.DEFAULTS,{dragInline:!0}),be.PLUGINS.draggable=function(c){var d,f=c.$;function e(e){return!(!e.originalEvent||!e.originalEvent.target||e.originalEvent.target.nodeType!==Node.TEXT_NODE)||(e.target&&"A"===e.target.tagName&&1===e.target.childNodes.length&&"IMG"===e.target.childNodes[0].tagName&&(e.target=e.target.childNodes[0]),f(e.target).hasClass("fr-draggable")?(c.undo.canDo()||c.undo.saveStep(),c.opts.dragInline?c.$el.attr("contenteditable",!0):c.$el.attr("contenteditable",!1),c.opts.toolbarInline&&c.toolbar.hide(),f(e.target).addClass("fr-dragging"),c.browser.msie||c.browser.edge||c.selection.clear(),void e.originalEvent.dataTransfer.setData("text","Froala")):(e.preventDefault(),!1))}function p(e){return!(e&&("HTML"===e.tagName||"BODY"===e.tagName||c.node.isElement(e)))}function u(e,t,a){if(c.opts.iframe){var n=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-top")),r=c.helpers.getPX(c.$wp.find(".fr-iframe").css("padding-left"));e+=c.$iframe.offset().top+n,t+=c.$iframe.offset().left+r}d.offset().top!==e&&d.css("top",e),d.offset().left!==t&&d.css("left",t),d.width()!==a&&d.css("width",a)}function t(e){e.originalEvent.dataTransfer.dropEffect="move",c.opts.dragInline?function(){for(var e=null,t=0;t
'),d.removeClass("fr-visible");else if(!1===c.markers.insertAtPoint(e.originalEvent))return!1;if(t.removeClass("fr-dragging"),!1===(t=c.events.chainTrigger("element.beforeDrop",t)))return!1;var r=t;if(t.parent().is("A")&&1===t.parent().get(0).childNodes.length&&(r=t.parent()),c.core.isEmpty())c.events.focus();else c.$el.find(".fr-marker").replaceWith(be.MARKERS),c.selection.restore();if(a===c||c.undo.canDo()||c.undo.saveStep(),c.core.isEmpty())c.$el.html(r);else{var i=c.markers.insert();0===r.find(i).length?f(i).replaceWith(r):0===t.find(i).length&&f(i).replaceWith(t),t.after(be.MARKERS),c.selection.restore()}return c.popups.hideAll(),c.selection.save(),c.$el.find(c.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(c.opts.htmlAllowedEmptyTags.join(",")).remove(),c.html.wrap(),c.html.fillEmptyBlocks(),c.selection.restore(),c.undo.saveStep(),c.opts.iframe&&c.size.syncIframe(),a!==c&&(a.popups.hideAll(),a.$el.find(a.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),a.html.wrap(),a.html.fillEmptyBlocks(),a.undo.saveStep(),a.events.trigger("element.dropped"),a.opts.iframe&&a.size.syncIframe()),c.events.trigger("element.dropped",[r]),!1}d&&d.removeClass("fr-visible"),c.undo.canDo()||c.undo.saveStep(),setTimeout(function(){c.undo.saveStep()},0)}function i(e){if(e&&"DIV"===e.tagName&&c.node.hasClass(e,"fr-drag-helper"))e.parentNode.removeChild(e);else if(e&&e.nodeType===Node.ELEMENT_NODE)for(var t=e.querySelectorAll("div.fr-drag-helper"),a=0;a
")},a.popups.create("text.edit",e),t())},update:function(){var e=a.popups.get("text.edit").find("input").val();0===e.length&&(e=a.opts.placeholderText),"INPUT"===a.el.tagName?a.$el.attr("placeholder",e):a.$el.text(e),a.events.trigger("contentChanged"),a.popups.hide("text.edit")}}},be.RegisterCommand("updateText",{focus:!1,undo:!1,callback:function(){this.editInPopup.update()}}),Object.assign(be.POPUP_TEMPLATES,{emoticons:"[_BUTTONS_][_CUSTOM_LAYER_]"}),Object.assign(be.DEFAULTS,{emoticonsSet:[{id:"people",name:"Smileys & People",code:"1f600",emoticons:[{code:"1f600",desc:"Grinning face"},{code:"1f601",desc:"Grinning Face with Smiling Eyes"},{code:"1f602",desc:"Face with Tears of Joy"},{code:"1f603",desc:"Smiling Face with Open Mouth"},{code:"1f604",desc:"Smiling Face with Open Mouth and Smiling Eyes"},{code:"1f605",desc:"Smiling Face with Open Mouth and Cold Sweat"},{code:"1f606",desc:"Smiling Face with Open Mouth and Tightly-Closed Eyes"},{code:"1f609",desc:"Winking Face"},{code:"1f60a",desc:"Smiling Face with Smiling Eyes"},{code:"1f608",desc:"Face Savouring Delicious Food"},{code:"1f60e",desc:"Smiling Face with Sunglasses"},{code:"1f60d",desc:"Smiling Face with Heart-Shaped Eyes"},{code:"1f618",desc:"Face Throwing a Kiss"},{code:"1f617",desc:"Kissing Face"},{code:"1f619",desc:"Kissing Face with Smiling Eyes"},{code:"1f61a",desc:"Kissing Face with Closed Eyes"},{code:"263a",desc:"White Smiling Face"},{code:"1f642",desc:"Slightly Smiling Face"},{code:"1f610",desc:"Neutral Face"},{code:"1f611",desc:"Expressionless Face"},{code:"1f636",desc:"Face Without Mouth"},{code:"1f60f",desc:"Smirking Face"},{code:"1f623",desc:"Persevering Face"},{code:"1f625",desc:"Disappointed but Relieved Face"},{code:"1f62e",desc:"Face with Open Mouth"},{code:"1f62f",desc:"Hushed Face"},{code:"1f62a",desc:"Sleepy Face"},{code:"1f62b",desc:"Tired Face"},{code:"1f634",desc:"Sleeping Face"},{code:"1f60c",desc:"Relieved Face"},{code:"1f61b",desc:"Face with Stuck-out Tongue"},{code:"1f61c",desc:"Face with Stuck-out Tongue and Winking Eye"},{code:"1f61d",desc:"Face with Stuck-out Tongue and Tightly-Closed Eyes"},{code:"1f612",desc:"Unamused Face"},{code:"1f613",desc:"Face with Cold Sweat"},{code:"1f613",desc:"Face with Cold Sweat"},{code:"1f614",desc:"Pensive Face"},{code:"1f615",desc:"Confused Face"},{code:"1f632",desc:"Astonished Face"},{code:"1f616",desc:"Confounded Face"},{code:"1f61e",desc:"Disappointed Face"},{code:"1f61f",desc:"Worried Face"},{code:"1f624",desc:"Face with Look of Triumph"},{code:"1f622",desc:"Crying Face"},{code:"1f62d",desc:"Loudly Crying Face"},{code:"1f626",desc:"Frowning Face with Open Mouth"},{code:"1f627",desc:"Anguished Face"},{code:"1f628",desc:"Fearful Face"},{code:"1f629",desc:"Weary Face"},{code:"1f62c",desc:"Grimacing Face"},{code:"1f630",desc:"Face with Open Mouth and Cold Sweat"},{code:"1f631",desc:"Face Screaming in Fear"},{code:"1f633",desc:"Flushed Face"},{code:"1f635",desc:"Dizzy Face"},{code:"1f621",desc:"Pouting Face"},{code:"1f620",desc:"Angry Face"},{code:"1f637",desc:"Face with Medical Mask"},{code:"1f607",desc:"Smiling Face with Halo"},{code:"1f608",desc:"Smiling Face with Horns"},{code:"1f47f",desc:"Imp"},{code:"1f479",desc:"Japanese Ogre"},{code:"1f47a",desc:"Japanese Goblin"},{code:"1f480",desc:"Skull"},{code:"1f47b",desc:"Ghost"},{code:"1f47d",desc:"Extraterrestrial Alien"},{code:"1f47e",desc:"Alien Monster"},{code:"1f4a9",desc:"Pile of Poo"},{code:"1f63a",desc:"Smiling Cat Face with Open Mouth"},{code:"1f638",desc:"Grinning Cat Face with Smiling Eyes"},{code:"1f639",desc:"Cat Face with Tears of Joy"},{code:"1f63b",desc:"Smiling Cat Face with Heart-Shaped Eyes"},{code:"1f63c",desc:"Cat Face with Wry Smile"},{code:"1f63d",desc:"Kissing Cat Face with Closed Eyes"},{code:"1f640",desc:"Weary Cat Face"},{code:"1f63f",desc:"Crying Cat Face"},{code:"1f63e",desc:"Pouting Cat Face"},{code:"1f648",desc:"See-No-Evil Monkey"},{code:"1f649",desc:"Hear-No-Evil Monkey"},{code:"1f64a",desc:"Speak-No-Evil Monkey"},{code:"1f476",desc:"Baby"},{code:"1f466",desc:"Boy"},{code:"1f467",desc:"Girl"},{code:"1f468",desc:"Man"},{code:"1f469",desc:"Woman"},{code:"1f474",desc:"Older Man"},{code:"1f475",desc:"Older Woman"},{code:"1f46e",desc:"Police Officer"},{code:"1f482",desc:" Guardsman"},{code:"1f477",desc:" Construction Worker"},{code:"1f478",desc:"Princess"},{code:"1f473",desc:"Man with Turban"},{code:"1f472",desc:"Man with Gua Pi Mao"},{code:"1f471",desc:"Person with Blond Hair"},{code:"1f470",desc:"Bride with Veil"},{code:"1f47c",desc:"Baby Angel"},{code:"1f385",desc:"Father Christmas"},{code:"1f64e",desc:"Person with Pouting Face"},{code:"1f645",desc:"Face with No Good Gesture"},{code:"1f646",desc:"Face with Ok Gesture"},{code:"1f481",desc:"Information Desk Person"},{code:"1f64b",desc:"Happy Person Raising One Hand"},{code:"1f647",desc:"Person Bowing Deeply"},{code:"1f486",desc:"Face Massage"},{code:"1f487",desc:"Haircut"},{code:"1f6b6",desc:"Pedestrian"},{code:"1f3c3",desc:"Runner"},{code:"1f483",desc:"Dancer"},{code:"1f46f",desc:"Woman with Bunny Ears"},{code:"1f6c0",desc:"Bath"},{code:"1f464",desc:"Bust in Silhouette"},{code:"1f465",desc:"Busts in Silhouette"},{code:"1f3c7",desc:"Horse Racing"},{code:"1f3c2",desc:" Snowboarder"},{code:"1f3c4",desc:" Surfer"},{code:"1f6a3",desc:" Rowboat"},{code:"1f3ca",desc:" Swimmer"},{code:"1f6b4",desc:" Bicyclist"},{code:"1f6b5",desc:"Mountain Bicyclist"},{code:"1f46b",desc:" Man and Woman Holding Hands"},{code:"1f46c",desc:"Two Men Holding Hands"},{code:"1f46d",desc:"Two Women Holding Hands"},{code:"1f48f",desc:"Kiss"},{code:"1f468-2764-1f48b-1f468",uCode:"\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68",desc:"Man Kiss Man"},{code:"1f469-2764-1f48b-1f469",uCode:"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc69",desc:"Woman Kiss Woman"},{code:"1f491",desc:"Couple with Heart"},{code:"1f468-2764-1f468",uCode:"\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68",desc:"Man Heart Man"},{code:"1f469-2764-1f469",uCode:"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc69",desc:"Woman Heart Woman"},{code:"1f46a",desc:"Family"},{code:"1f468",desc:"Man Woman Boy"},{code:"1f468-1f469-1f467",desc:"Man Woman Girl"},{code:"1f468-1f469-1f467-1f466",desc:"Man Woman Girl Boy"},{code:"1f468-1f469-1f466-1f466",desc:"Man Woman Boy Boy"},{code:"1f468-1f469-1f467-1f467",desc:"Man Woman Girl Girl"},{code:"1f468-1f468-1f466",desc:"Man Man Boy"},{code:"1f468-1f468-1f467",desc:"Man Man Girl"},{code:"1f468-1f468-1f467-1f466",desc:"Man Man Girl Boy"},{code:"1f468-1f468-1f466-1f466",desc:"Man Man Boy Boy"},{code:"1f469-1f469-1f466",desc:"Woman Woman Boy"},{code:"1f469-1f469-1f467",desc:"Woman Woman Girl"},{code:"1f469-1f469-1f467-1f466",desc:"Woman Woman Girl Boy"},{code:"1f469-1f469-1f467-1f467",desc:"Woman Woman Girl Girl"},{code:"1f4aa",desc:"Flexed Biceps"},{code:"1f448",desc:"White Left Pointing Backhand Index"},{code:"1f449",desc:"White Right Pointing Backhand Index"},{code:"1f446",desc:"White Up Pointing Backhand Index"},{code:"1f447",desc:"White Down Pointing Backhand Index"},{code:"270c",desc:"Victory Hand"},{code:"270b",desc:"Raised Hand"},{code:"1f44c",desc:"Ok Hand Sign"},{code:"1f44d",desc:"Thumbs Up Sign"},{code:"1f44e",desc:"Thumbs Down Sign"},{code:"270a",desc:"Raised Fist"},{code:"1f44a",desc:"Fisted Hand Sign"},{code:"1f44b",desc:"Waving Hand Sign"},{code:"1f44f",desc:"Clapping Hands Sign"},{code:"1f450",desc:"Open Hands Sign"},{code:"1f64c",desc:"Person Raising Both Hands in Celebration"},{code:"1f64f",desc:"Person with Folded Hands"},{code:"1f485",desc:"Nail Polish"},{code:"1f442",desc:"Ear"},{code:"1f443",desc:"Nose"},{code:"1f463",desc:"Footprints"},{code:"1f440",desc:"Eyes"},{code:"1f445",desc:"Tongue"},{code:"1f444",desc:"Mouth"},{code:"1f48b",desc:"Kiss Mark"},{code:"1f498",desc:"Heart with Arrow"},{code:"2764",desc:"Heavy Black Heart"},{code:"1f493",desc:"Heavy Black Heart"},{code:"1f494",desc:"Broken Heart"},{code:"1f495",desc:"Two Hearts"},{code:"1f496",desc:"Sparkling Hearts"},{code:"1f497",desc:"Growing Hearts"},{code:"1f499",desc:"Blue Heart"},{code:"1f49a",desc:"Green Heart"},{code:"1f49b",desc:"Yellow Heart"},{code:"1f49c",desc:"Purple Heart"},{code:"1f49d",desc:"Heart with Ribbon"},{code:"1f49e",desc:"Revolving Hearts"},{code:"1f49f",desc:"Heart Decoration"},{code:"1f48c",desc:"Love Letter"},{code:"1f4a4",desc:"Sleeping Symbol"},{code:"1f4a2",desc:"Anger Symbol"},{code:"1f4a3",desc:"Bomb"},{code:"1f4a5",desc:"Collision Symbol"},{code:"1f4a6",desc:"Splashing Sweat Symbol"},{code:"1f4a8",desc:"Dash Symbol"},{code:"1f4ab",desc:"Dizzy Symbol"},{code:"1f4ab",desc:"Dizzy Symbol"},{code:"1f4ac",desc:"Speech Balloon"},{code:"1f4ad",desc:"Thought Balloon"},{code:"1f453",desc:"Eyeglasses"},{code:"1f454",desc:"Necktie"},{code:"1f455",desc:"T-Shirt"},{code:"1f456",desc:"Jeans"},{code:"1f457",desc:"Dress"},{code:"1f458",desc:"Kimono"},{code:"1f459",desc:"Bikini"},{code:"1f45a",desc:"Womans Clothes"},{code:"1f45b",desc:"Purse"},{code:"1f45c",desc:"Handbag"},{code:"1f45d",desc:"Pouch"},{code:"1f392",desc:"School Satchel"},{code:"1f45e",desc:"Mans Shoe"},{code:"1f45f",desc:"Athletic Shoe"},{code:"1f460",desc:"High-Heeled Shoe"},{code:"1f461",desc:"Womans Sandal"},{code:"1f462",desc:"Womans Boots"},{code:"1f451",desc:"Crown"},{code:"1f452",desc:"Womans Hat"},{code:"1f462",desc:"Top Hat"},{code:"1f393",desc:"Graduation Cap"},{code:"1f484",desc:"Lipstick"},{code:"1f48d",desc:"Ring"},{code:"1f48e",desc:"Gem Stone"}]},{id:"nature",name:"Animals & Nature",code:"1F435",emoticons:[{code:"1F435",desc:"Monkey Face"},{code:"1F412",desc:"Monkey"},{code:"1F436",desc:"Dog Face"},{code:"1F415",desc:"Dog"},{code:"1F429",desc:"Poodle"},{code:"1F43A",desc:"Wolf Face"},{code:"1F431",desc:"Cat Face"},{code:"1F408",desc:"Cat"},{code:"1F42F",desc:"Tiger Face"},{code:"1F405",desc:"Tiger"},{code:"1F406",desc:"Leopard"},{code:"1F434",desc:"Horse Face"},{code:"1F40E",desc:"Horse"},{code:"1F42E",desc:"Cow Face"},{code:"1F402",desc:"Ox"},{code:"1F403",desc:"Water Buffalo"},{code:"1F404",desc:"Cow"},{code:"1F437",desc:"Pig Face"},{code:"1F416",desc:"Pig"},{code:"1F417",desc:"Boar"},{code:"1F43D",desc:"Pig Nose"},{code:"1F40F",desc:"Ram"},{code:"1F411",desc:"Sheep"},{code:"1F410",desc:"Goat"},{code:"1F42A",desc:"Dromedary Camel"},{code:"1F42B",desc:"Bactrian Camel"},{code:"1F418",desc:"Elephant"},{code:"1F42D",desc:"Mouse Face"},{code:"1F401",desc:"Mouse"},{code:"1F400",desc:"Rat"},{code:"1F439",desc:"Hamster Face"},{code:"1F430",desc:"Rabbit Face"},{code:"1F407",desc:"Rabbit"},{code:"1F43B",desc:"Bear Face"},{code:"1F428",desc:"Koala"},{code:"1F43C",desc:"Panda Face"},{code:"1F43E",desc:"Paw Prints"},{code:"1F414",desc:"Chicken"},{code:"1F413",desc:"Rooster"},{code:"1F423",desc:"Hatching Chick"},{code:"1F424",desc:"Baby Chick"},{code:"1F425",desc:"Front-Facing Baby Chick"},{code:"1F426",desc:"Bird"},{code:"1F427",desc:"Penguin"},{code:"1F438",desc:"Frog Face"},{code:"1F40A",desc:"Crocodile"},{code:"1F422",desc:"Turtle"},{code:"1F40D",desc:"Snake"},{code:"1F432",desc:"Dragon Face"},{code:"1F409",desc:"Dragon"},{code:"1F433",desc:"Spouting Whale"},{code:"1F40B",desc:"Whale"},{code:"1F42C",desc:"Dolphin"},{code:"1F41F",desc:"Fish"},{code:"1F420",desc:"Tropical Fish"},{code:"1F421",desc:"Blowfish"},{code:"1F419",desc:"Octopus"},{code:"1F41A",desc:"Spiral Shell"},{code:"1F40C",desc:"Snail"},{code:"1F41B",desc:"Bug"},{code:"1F41C",desc:"Ant"},{code:"1F41D",desc:"Honeybee"},{code:"1F41E",desc:"Lady Beetle"},{code:"1F490",desc:"Bouquet"},{code:"1F338",desc:"Cherry Blossom"},{code:"1F4AE",desc:"White Flower"},{code:"1F339",desc:"Rose"},{code:"1F33A",desc:"Hibiscus"},{code:"1F33B",desc:"Sunflower"},{code:"1F33C",desc:"Blossom"},{code:"1F337",desc:"Tulip"},{code:"1F331",desc:"Seedling"},{code:"1F332",desc:"Evergreen Tree"},{code:"1F333",desc:"Deciduous Tree"},{code:"1F334",desc:"Palm Tree"},{code:"1F335",desc:"Cactus"},{code:"1F33E",desc:"Ear of Rice"},{code:"1F33F",desc:"Herb"},{code:"2618",desc:"Four Leaf Clover"},{code:"1F341",desc:"Maple Leaf"},{code:"1F342",desc:"Fallen Leaf"},{code:"1F343",desc:"Leaf Fluttering in Wind"}]},{id:"foods",name:"Food & Drink",code:"1F347",emoticons:[{code:"1F347",desc:"Grapes"},{code:"1F348",desc:"Melon"},{code:"1F349",desc:"Watermelon"},{code:"1F34A",desc:"Tangerine"},{code:"1F34B",desc:"Lemon"},{code:"1F34C",desc:"Banana"},{code:"1F34D",desc:"Pineapple"},{code:"1F34E",desc:"Red Apple"},{code:"1F34F",desc:"Green Apple"},{code:"1F350",desc:"Pear"},{code:"1F351",desc:"Peach"},{code:"1F352",desc:"Cherries"},{code:"1F353",desc:"Strawberry"},{code:"1F345",desc:"Tomato"},{code:"1F346",desc:"Aubergine"},{code:"1F33D",desc:"Ear of Maize"},{code:"1F344",desc:"Mushroom"},{code:"1F330",desc:"Chestnut"},{code:"1F35E",desc:"Bread"},{code:"1F356",desc:"Meat on Bone"},{code:"1F357",desc:"Poultry Leg"},{code:"1F354",desc:"Hamburger"},{code:"1F35F",desc:"French Fries"},{code:"1F355",desc:"Slice of Pizza"},{code:"1F373",desc:"Cooking"},{code:"1F372",desc:"Pot of Food"},{code:"1F371",desc:"Bento Box"},{code:"1F358",desc:"Rice Cracker"},{code:"1F359",desc:"Rice Ball"},{code:"1F35A",desc:"Cooked Rice"},{code:"1F35B",desc:"Curry and Rice"},{code:"1F35C",desc:"Steaming Bowl"},{code:"1F35D",desc:"Spaghetti"},{code:"1F360",desc:"Roasted Sweet Potato"},{code:"1F362",desc:"Oden"},{code:"1F363",desc:"Sushi"},{code:"1F364",desc:"Fried Shrimp"},{code:"1F365",desc:"Fish Cake with Swirl Design"},{code:"1F361",desc:"Dango"},{code:"1F366",desc:"Soft Ice Cream"},{code:"1F367",desc:"Shaved Ice"},{code:"1F368",desc:"Ice Cream"},{code:"1F369",desc:"Doughnut"},{code:"1F36A",desc:"Cookie"},{code:"1F382",desc:"Birthday Cake"},{code:"1F370",desc:"Shortcake"},{code:"1F36B",desc:"Chocolate Bar"},{code:"1F36C",desc:"Candy"},{code:"1F36D",desc:"Lollipop"},{code:"1F36E",desc:"Custard"},{code:"1F36F",desc:"Honey Pot"},{code:"1F37C",desc:"Baby Bottle"},{code:"2615",desc:"Hot Beverage"},{code:"1F375",desc:"Teacup Without Handle"},{code:"1F376",desc:"Sake Bottle and Cup"},{code:"1F377",desc:"Wine Glass"},{code:"1F378",desc:"Cocktail Glass"},{code:"1F379",desc:"Tropical Drink"},{code:"1F37A",desc:"Beer Mug"},{code:"1F37B",desc:"Clinking Beer Mugs"},{code:"1F374",desc:"Fork and Knife"},{code:"1F52A",desc:"Hocho"}]},{id:"activity",name:"Activities",code:"1f383",emoticons:[{code:"1f383",desc:" Jack-O-Lantern"},{code:"1f384",desc:"Christmas Tree"},{code:"1f386",desc:" Fireworks"},{code:"1f387",desc:"Firework Sparkler"},{code:"2728",desc:" Sparkles"},{code:"1f388",desc:"Balloon"},{code:"1f389",desc:"Party Popper"},{code:"1f38a",desc:"Confetti Ball"},{code:"1f38b",desc:"Tanabata Tree"},{code:"1f38d",desc:"Pine Decoration"},{code:"1f38e",desc:"Japanese Dolls"},{code:"1f38f",desc:"Carp Streamer"},{code:"1f390",desc:"Wind Chime"},{code:"1f391",desc:"Moon Viewing Ceremony"},{code:"1f380",desc:"Ribbon"},{code:"1f381",desc:"Wrapped Present"},{code:"1f3ab",desc:"Ticket"},{code:"1f3c6",desc:"Trophy"},{code:"1f388",desc:"Soccer Ball"},{code:"26bd",desc:"Balloon"},{code:"26be",desc:"Baseball"},{code:"1f3c0",desc:"Basketball and Hoop"},{code:"1f3c8",desc:"American Football"},{code:"1f3c9",desc:"Rugby Football"},{code:"1f3be",desc:"Tennis Racquet and Ball"},{code:"1f3b1",desc:"Billiards"},{code:"1f3b3",desc:"Bowling"},{code:"1f3af",desc:"Direct Hit"},{code:"26f3",desc:"Flag in Hole"},{code:"1f3a3",desc:"Fishing Pole and Fish"},{code:"1f3bd",desc:"Running Shirt with Sash"},{code:"1f3bf",desc:"Ski and Ski Boot"},{code:"1f3ae",desc:"Video Game"},{code:"1f3b2",desc:"Game Die"},{code:"2660",desc:"Black Spade Suit"},{code:"2665",desc:"Black Heart SuiT"},{code:"2666",desc:"Black Diamond Suit"},{code:"2663",desc:"Black Club Suit"},{code:"1f0cf",desc:"Playing Card Black Joker"},{code:"1f004",desc:"Mahjong Tile Red Dragon"},{code:"1f3b4",desc:"Flower Playing Cards"}]},{id:"places",name:"Travel & Places",code:"1f30d",emoticons:[{code:"1f30d",desc:"Earth Globe Europe-Africa"},{code:"1f30e",desc:"Earth Globe Americas"},{code:"1f30f",desc:"Earth Globe Asia-Australia"},{code:"1f310",desc:"Globe with Meridians"},{code:"1f5fe",desc:"Silhouette of Japan"},{code:"1f30b",desc:"Volcano"},{code:"1f5fb",desc:"Mount Fuji"},{code:"1f3e0",desc:"House Building"},{code:"1f3e1",desc:"House with Garden"},{code:"1f3e2",desc:"Office Building"},{code:"1f3e3",desc:"Japanese Post Office"},{code:"1f3e4",desc:"European Post Office"},{code:"1f3e5",desc:"Hospital"},{code:"1f3e6",desc:"Bank"},{code:"1f3e8",desc:"Hotel"},{code:"1f3e9",desc:"Love Hotel"},{code:"1f3ea",desc:"Convenience Store"},{code:"1f3eb",desc:"School"},{code:"1f3ec",desc:"Department Store"},{code:"1f3ed",desc:"Factory"},{code:"1f3ef",desc:"Japanese Castle"},{code:"1f3f0",desc:"European Castle"},{code:"1f492",desc:"Wedding"},{code:"1f5fc",desc:"Tokyo Tower"},{code:"1f5fd",desc:"Statue of Liberty"},{code:"26ea",desc:"Church"},{code:"26f2",desc:"Fountain"},{code:"26fa",desc:"Tent"},{code:"1f301",desc:"Foggy"},{code:"1f303",desc:"Night with Stars"},{code:"1f304",desc:"Sunrise over Mountains"},{code:"1f305",desc:"Sunrise"},{code:"1f306",desc:"Cityscape at Dusk"},{code:"1f307",desc:"Sunset over Buildings"},{code:"1f309",desc:"Bridge at Night"},{code:"2668",desc:"Hot Springs"},{code:"1f30c",desc:"Milky Way"},{code:"1f3a0",desc:"Carousel Horse"},{code:"1f3a1",desc:"Ferris Wheel"},{code:"1f3a2",desc:"Roller Coaster"},{code:"1f488",desc:"Barber Pole"},{code:"1f3aa",desc:"Circus Tent"},{code:"1f3ad",desc:"Performing Arts"},{code:"1f3a8",desc:"Artist Palette"},{code:"1f3b0",desc:"Slot Machine"},{code:"1f682",desc:"Steam Locomotive"},{code:"1f683",desc:"Railway Car"},{code:"1f684",desc:"High-Speed Train"},{code:"1f685",desc:"High-Speed Train with Bullet Nose"},{code:"1f686",desc:"Train"},{code:"1f687",desc:"Metro"},{code:"1f688",desc:"Light Rail"},{code:"1f689",desc:"Station"},{code:"1f68a",desc:"Tram"},{code:"1f69d",desc:"Monorail"},{code:"1f69e",desc:"Mountain Railway"},{code:"1f68b",desc:"Tram Car"},{code:"1f68c",desc:"Bus"},{code:"1f68d",desc:"Oncoming Bus"},{code:"1f68e",desc:"Trolleybus"},{code:"1f690",desc:"Minibus"},{code:"1f691",desc:"Ambulance"},{code:"1f692",desc:"Fire Engine"},{code:"1f693",desc:"Police Car"},{code:"1f694",desc:"Oncoming Police Car"},{code:"1f695",desc:"Taxi"},{code:"1f695",desc:"Oncoming Taxi"},{code:"1f697",desc:"Automobile"},{code:"1f698",desc:"Oncoming Automobile"},{code:"1f699",desc:"Recreational Vehicle"},{code:"1f69a",desc:"Delivery Truck"},{code:"1f69b",desc:"Articulated Lorry"},{code:"1f69c",desc:"Tractor"},{code:"1f6b2",desc:"Bicycle"},{code:"1f68f",desc:"Bus Stop"},{code:"26fd",desc:"Fuel Pump"},{code:"1f6a8",desc:"Police Cars Revolving Light"},{code:"1f6a5",desc:"Horizontal Traffic Light"},{code:"1f6a6",desc:"Vertical Traffic Light"},{code:"1f6a7",desc:"Construction Sign"},{code:"2693",desc:"Anchor"},{code:"26f5",desc:"Sailboat"},{code:"1f6a4",desc:"Speedboat"},{code:"1f6a2",desc:"Ship"},{code:"2708",desc:"Airplane"},{code:"1f4ba",desc:"Seat"},{code:"1f681",desc:"Helicopter"},{code:"1f69f",desc:"Suspension Railway"},{code:"1f6a0",desc:"Mountain Cableway"},{code:"1f6a1",desc:"Aerial Tramway"},{code:"1f680",desc:"Rocket"},{code:"1f6aa",desc:"Door"},{code:"1f6bd",desc:"Toilet"},{code:"1f6bf",desc:"Shower"},{code:"1f6c1",desc:"Bathtub"},{code:"231b",desc:"Hourglass"},{code:"23f3",desc:"Hourglass with Flowing Sand"},{code:"231a",desc:"Watch"},{code:"23f0",desc:"Alarm Clock"},{code:"1f55b",desc:"Clock Face Twelve Oclock"},{code:"1f567",desc:"Clock Face Twelve-Thirty"},{code:"1f550",desc:"Clock Face One Oclock"},{code:"1f55c",desc:"Clock Face One-thirty"},{code:"1f551",desc:"Clock Face Two Oclock"},{code:"1f55d",desc:"Clock Face Two-thirty"},{code:"1f552",desc:"Clock Face Three Oclock"},{code:"1f55e",desc:"Clock Face Three-thirty"},{code:"1f553",desc:"Clock Face Four Oclock"},{code:"1f55f",desc:"Clock Face Four-thirty"},{code:"1f554",desc:"Clock Face Five Oclock"},{code:"1f560",desc:"Clock Face Five-thirty"},{code:"1f555",desc:"Clock Face Six Oclock"},{code:"1f561",desc:"Clock Face Six-thirty"},{code:"1f556",desc:"Clock Face Seven Oclock"},{code:"1f562",desc:"Clock Face Seven-thirty"},{code:"1f557",desc:"Clock Face Eight Oclock"},{code:"1f563",desc:"Clock Face Eight-thirty"},{code:"1f558",desc:"Clock Face Nine Oclock"},{code:"1f564",desc:"Clock Face Nine-thirty"},{code:"1f559",desc:"Clock Face Ten Oclock"},{code:"1f565",desc:"Clock Face Ten-thirty"},{code:"1f55a",desc:"Clock Face Eleven Oclock"},{code:"1f566",desc:"Clock Face Eleven-thirty"},{code:"1f311",desc:"New Moon Symbol"},{code:"1f312",desc:"Waxing Crescent Moon Symbol"},{code:"1f313",desc:"First Quarter Moon Symbol"},{code:"1f314",desc:"Waxing Gibbous Moon Symbol"},{code:"1f315",desc:"Full Moon Symbol"},{code:"1f316",desc:"Waning Gibbous Moon Symbol"},{code:"1f317",desc:"Last Quarter Moon Symbol"},{code:"1f318",desc:"Waning Crescent Moon Symbol"},{code:"1f319",desc:"Crescent Moon"},{code:"1f31a",desc:"New Moon with Face"},{code:"1f31b",desc:"First Quarter Moon with Face"},{code:"1f31c",desc:"Last Quarter Moon with Face"},{code:"2600",desc:"Black Sun with Rays"},{code:"1f31d",desc:"Full Moon with Face"},{code:"1f31e",desc:"Sun with Face"},{code:"2b50",desc:"White Medium Star"},{code:"1f31f",desc:"Glowing Star"},{code:"1f320",desc:"Shooting Star"},{code:"2601",desc:"Cloud"},{code:"26c5",desc:"Sun Behind Cloud"},{code:"1f300",desc:"Cyclone"},{code:"1f308",desc:"Rainbow"},{code:"1f302",desc:"Closed Umbrella"},{code:"2614",desc:"Umbrella with Rain Drops"},{code:"26a1",desc:"High Voltage Sign"},{code:"2744",desc:"Snowflake"},{code:"2603",desc:"Snowman Without Snow"},{code:"1f525",desc:"Fire"},{code:"1f4a7",desc:"Droplet"},{code:"1F30A",desc:"Water Wave"}]},{id:"objects",name:"Objects",code:"1F507",emoticons:[{code:"1F507",desc:"Speaker with Cancellation Stroke"},{code:"1F508",desc:"Speaker"},{code:"1F509",desc:"Speaker with One Sound Wave"},{code:"1F50A",desc:"Speaker with Three Sound Wave"},{code:"1F4E2",desc:"Public Address Loudspeaker"},{code:"1F4E3",desc:"Cheering Megaphone"},{code:"1F4EF",desc:"Postal Horn"},{code:"1F514",desc:"Bell"},{code:"1F515",desc:"Bell with Cancellation Stroke"},{code:"1F3BC",desc:"Musical Score"},{code:"1F3B5",desc:"Musical Note"},{code:"1F3B6",desc:"Multiple Musical Notes"},{code:"1F3A4",desc:"Microphone"},{code:"1F3A7",desc:"Headphone"},{code:"1F4FB",desc:"Radio"},{code:"1F3B7",desc:"Saxophone"},{code:"1F3B8",desc:"Guitar"},{code:"1F3B9",desc:"Musical Keyboard"},{code:"1F3BA",desc:"Trumpet"},{code:"1F3BB",desc:"Violin"},{code:"1F4F1",desc:"Mobile Phone"},{code:"1F4F2",desc:"Mobile Phone with Rightwards Arrow at Left"},{code:"260E",desc:"Black Telephone"},{code:"1F4DE",desc:"Telephone Receiver"},{code:"1F4DF",desc:"Pager"},{code:"1F4E0",desc:"Fax Machine"},{code:"1F50B",desc:"Battery"},{code:"1F50C",desc:"Electric Plug"},{code:"1F4BB",desc:"Personal Computer"},{code:"1F4BD",desc:"Minidisc"},{code:"1F4BE",desc:"Floppy Disk"},{code:"1F4BF",desc:"Optical Disk"},{code:"1F4C0",desc:"Dvd"},{code:"1F3A5",desc:"Movie Camera"},{code:"1F3AC",desc:"Clapper Board"},{code:"1F4FA",desc:"Television"},{code:"1F4F7",desc:"Camera"},{code:"1F4F9",desc:"Video Camera"},{code:"1F4FC",desc:"Videocassette"},{code:"1F50D",desc:"Left-Pointing Magnifying Glass"},{code:"1F50E",desc:"Right-Pointing Magnifying Glass"},{code:"1F52C",desc:"Microscope"},{code:"1F52D",desc:"Telelscope"},{code:"1F4E1",desc:"Satellite Antenna"},{code:"1F4A1",desc:"Electric Light Bulb"},{code:"1F526",desc:"Electric Torch"},{code:"1F3EE",desc:"Izakaya Lantern"},{code:"1F4D4",desc:"Notebook with Decorative Cover"},{code:"1F4D5",desc:"Closed Book"},{code:"1F4D6",desc:"Open Book"},{code:"1F4D7",desc:"Green Book"},{code:"1F4D8",desc:"Blue Book"},{code:"1F4D9",desc:"Orange Book"},{code:"1F4DA",desc:"Books"},{code:"1F4D3",desc:"Notebook"},{code:"1F4D2",desc:"Ledger"},{code:"1F4C3",desc:"Curl"},{code:"1F4DC",desc:"Scroll"},{code:"1F4C4",desc:"Page Facing Up"},{code:"1F4F0",desc:"Newspaper"},{code:"1F4D1",desc:"Bookmark Tabs"},{code:"1F516",desc:"Bookmark"},{code:"1F4B0",desc:"Money Bag"},{code:"1F4B4",desc:"Banknote with Yen Sign"},{code:"1F4B5",desc:"Banknote with Dollar Sign"},{code:"1F4B6",desc:"Banknote with Euro Sign"},{code:"1F4B7",desc:"Banknote with Pound Sign"},{code:"1F4B8",desc:"Money with Wings"},{code:"1F4B3",desc:"Credit Card"},{code:"1F4B9",desc:"Chart with Upwards Trend and Yen Sign"},{code:"1F4B1",desc:"Currency Exchange"},{code:"1F4B2",desc:"Heavy Dollar Sign"},{code:"2709",desc:"Envelope"},{code:"1F4E7",desc:"E-Mail Symbol"},{code:"1F4E8",desc:"Incoming Envelope"},{code:"1F4E9",desc:"Envelope with Downwards Arrow Above"},{code:"1F4E4",desc:"Outbox Tray"},{code:"1F4E5",desc:"Inbox Tray"},{code:"1F4E6",desc:"Package"},{code:"1F4BE",desc:"Closed Mailbox with Raised Flag"},{code:"1F4EA",desc:"Closed Mailbox with Lowered Flag"},{code:"1F4EC",desc:"Open Mailbox with Raised Flag"},{code:"1F4ED",desc:"Open Mailbox with Lowered Flag"},{code:"1F5F3",desc:"Postbox"},{code:"270F",desc:"Pencil"},{code:"2712",desc:"Black Nib"},{code:"1F4DD",desc:"Memo"},{code:"1F4BC",desc:"Briefcase"},{code:"1F4C1",desc:"File Folder"},{code:"1F4C2",desc:"Open File Folder"},{code:"1F4C5",desc:"Calender"},{code:"1F4C6",desc:"Tear-off Calender"},{code:"1F4C7",desc:"Card Index"},{code:"1F4C8",desc:"Chart with Upwards Trend"},{code:"1F4C9",desc:"Chart with Downwards Trend"},{code:"1F4CA",desc:"Bar Chart"},{code:"1F4CB",desc:"Clipboard"},{code:"1F4CC",desc:"Pushpin"},{code:"1F4CD",desc:"Round Pushpin"},{code:"1F4CE",desc:"Paperclip"},{code:"1F4CF",desc:"Straight Ruler"},{code:"1F4D0",desc:"Triangular Ruler"},{code:"2702",desc:"Black Scissors"},{code:"1F512",desc:"Lock"},{code:"1F513",desc:"Open Lock"},{code:"1F50F",desc:"Lock with Ink Pen"},{code:"1F510",desc:"Closed Lock with Key"},{code:"1F511",desc:"Key"},{code:"1F528",desc:"Hammer"},{code:"1F52B",desc:"Pistol"},{code:"1F527",desc:"Wrench"},{code:"1F529",desc:"Nut and Bolt"},{code:"1F517",desc:"Link Symbol"},{code:"1F489",desc:"Syringe"},{code:"1F48A",desc:"Pill"},{code:"1F6AC",desc:"Smoking Symbol"},{code:"1F5FF",desc:"Moyai"},{code:"1F52E",desc:"Crystal Ball"}]},{id:"symbols",name:"Symbols",code:"1F3E7",emoticons:[{code:"1F3E7",desc:"Automated Teller Machine"},{code:"1F6AE",desc:"Put Litter in Its Place Symbol"},{code:"1F6B0",desc:"Potable Water Symbol"},{code:"267F",desc:"Wheelchair Symbol"},{code:"1F6B9",desc:"Mens Symbol"},{code:"1F6BA",desc:"Womens Symbol"},{code:"1F6BB",desc:"Restroom"},{code:"1F6BC",desc:"Baby Symbol"},{code:"1F6BE",desc:"Water Closet"},{code:"1F6C2",desc:"Passport Control"},{code:"1F6C3",desc:"Customs"},{code:"1F6C4",desc:"Baggage Claim"},{code:"1F6C5",desc:"Left Luggage"},{code:"26A0",desc:"Warning Sign"},{code:"1F6B8",desc:"Children Crossing"},{code:"26D4",desc:"No Entry"},{code:"1F6AB",desc:"No Entry Sign"},{code:"1F6B3",desc:"No Bicycles"},{code:"1F6AD",desc:"No Smoking Symbol"},{code:"1F6AF",desc:"Do Not Litter Symbol"},{code:"1F6B1",desc:"Non-Potable Water Symbol"},{code:"1F6B7",desc:"No Pedestrians"},{code:"1F4F5",desc:"No Mobile Phones"},{code:"1F51E",desc:"No One Under Eighteen Symbol"},{code:"2B06",desc:"Upwards Black Arrow"},{code:"2197",desc:"North East Arrow"},{code:"27A1",desc:"Black Rightwards Arrow"},{code:"2198",desc:"South East Arrow"},{code:"2B07",desc:"Downwards Black Arrow"},{code:"2199",desc:"South West Arrow"},{code:"2B05",desc:"Leftwards Black Arrow"},{code:"2196",desc:"North West Arrow"},{code:"2195",desc:"Up Down Arrow"},{code:"2194",desc:"Left Right Arrow"},{code:"21A9",desc:"Leftwards Arrow with Hook"},{code:"21AA",desc:"Rightwards Arrow with Hook"},{code:"2934",desc:"Arrow Pointing Rightwards Then Curving Upwards"},{code:"2935",desc:"Arrow Pointing Rightwards Then Curving Downwards"},{code:"1F503",desc:"Clockwise Downwards and Upwards Open Circle Arrows"},{code:"1F504",desc:"Anticlockwise Downwards and Upwards Open Circle Arrows"},{code:"1F519",desc:"Back with Leftwards Arrow Above"},{code:"1F51A",desc:"End with Leftwards Arrow Above"},{code:"1F51B",desc:"On with Exclamation Mark with Left Right Arrow Above"},{code:"1F51C",desc:"Soon with Rightwards Arrow Above"},{code:"1F51D",desc:"Top with Upwards Arrow Above"},{code:"1F52F",desc:"Six Pointed Star with Middle Dot"},{code:"2648",desc:"Aries"},{code:"2649",desc:"Taurus"},{code:"264A",desc:"Gemini"},{code:"264B",desc:"Cancer"},{code:"264C",desc:"Leo"},{code:"264D",desc:"Virgo"},{code:"264E",desc:"Libra"},{code:"264F",desc:"Scorpius"},{code:"2650",desc:"Sagittarius"},{code:"2651",desc:"Capricorn"},{code:"2652",desc:"Aquarius"},{code:"2653",desc:"Pisces"},{code:"26CE",desc:"Ophiuchus"},{code:"1F500",desc:"Twisted Rightwards Arrows"},{code:"1F501",desc:"Clockwise Rightwards and Leftwards Open Circle Arrows"},{code:"1F502",desc:"Clockwise Rightwards and Leftwards Open Circle Arrows with Circled One Overlay"},{code:"25B6",desc:"Black Right-Pointing Triangle"},{code:"23E9",desc:"Black Right-Pointing Double Triangle"},{code:"25C0",desc:"Black Left-Pointing Triangle"},{code:"23EA",desc:"Black Left-Pointing Double Triangle"},{code:"1F53C",desc:"Up-Pointing Small Red Triangle"},{code:"23EB",desc:"Black Up-Pointing Double Triangle"},{code:"1F53D",desc:"Down-Pointing Small Red Triangle"},{code:"23EC",desc:"Black Down-Pointing Double Triangle"},{code:"1F3A6",desc:"Cinema"},{code:"1F505",desc:"Low Brightness Symbol"},{code:"1F506",desc:"High Brightness Symbol"},{code:"1F4F6",desc:"Antenna with Bars"},{code:"1F4F3",desc:"Vibration Mode"},{code:"1F4F4",desc:"Mobile Phone off"},{code:"267B",desc:"Black Universal Recycling Symbol"},{code:"1F531",desc:"Trident Emblem"},{code:"1F4DB",desc:"Name Badge"},{code:"1F530",desc:"Japanese Symbol for Beginner"},{code:"2B55",desc:"Heavy Large Circle"},{code:"2705",desc:"White Heavy Check Mark"},{code:"2611",desc:"Ballot Box with Check"},{code:"2714",desc:"Heavy Check Mark"},{code:"2716",desc:"Heavy Multiplication X"},{code:"274C",desc:"Cross Mark"},{code:"274E",desc:"Negative Squared Cross Mark"},{code:"2795",desc:"Heavy Plus Sign"},{code:"2796",desc:"Heavy Minus Sign"},{code:"2797",desc:"Heavy Division Sign"},{code:"27B0",desc:"Curly Loop"},{code:"27BF",desc:"Double Curly Loop"},{code:"303D",desc:"Part Alternation Mark"},{code:"2733",desc:"Eight Spoked Asterisk"},{code:"2734",desc:"Eight Pointed Black Star"},{code:"2747",desc:"Sparkle"},{code:"203C",desc:"Double Exclamation Mark"},{code:"2049",desc:"Exclamation Question Mark"},{code:"2753",desc:"Black Question Mark Ornament"},{code:"2754",desc:"White Question Mark Ornament"},{code:"2755",desc:"White Exclamation Mark Ornament"},{code:"2757",desc:"Heavy Exclamation Mark Symbol"},{code:"3030",desc:"Wavy Dash"},{code:"2122",desc:"Trade Mark Sign"},{code:"1F51F",desc:"Keycap Ten"},{code:"1F4AF",desc:"Hundred Points Symbol"},{code:"1F520",desc:"Input Symbol for Latin Capital Letters"},{code:"1F521",desc:"Input Symbol for Latin Small Letters"},{code:"1F522",desc:"Input Symbol for Numbers"},{code:"1F523",desc:"Input Symbol for Symbols"},{code:"1F524",desc:"Input Symbol for Latin Letters"},{code:"1F170",desc:"Negative Squared Latin Capital Letter a"},{code:"1F18E",desc:"Negative Squared Ab"},{code:"1F171",desc:"Negative Squared Latin Capital Letter B"},{code:"1F191",desc:"Squared Cl"},{code:"1F192",desc:"Squared Cool"},{code:"1F193",desc:"Squared Free"},{code:"2139",desc:"Information Source"},{code:"1F194",desc:"Squared Id"},{code:"24C2",desc:"Circled Latin Capital Letter M"},{code:"1F195",desc:"Squared New"},{code:"1F196",desc:"Squared Ng"},{code:"1F17E",desc:"Negative Squared Latin Capital Letter O"},{code:"1F197",desc:"Squared Ok"},{code:"1F17F",desc:"Negative Squared Latin Capital Letter P"},{code:"1F198",desc:"Squared Sos"},{code:"1F199",desc:"Squared Up with Exclamation Mark"},{code:"1F19A",desc:"Squared Vs"},{code:"1F201",desc:"Squared Katakana Koko"},{code:"1F202",desc:"Squared Katakana Sa"},{code:"1F237",desc:"Squared Cjk Unified Ideograph-6708"},{code:"1F236",desc:"Squared Cjk Unified Ideograph-6709"},{code:"1F22F",desc:"Squared Cjk Unified Ideograph-6307"},{code:"1F250",desc:"Circled Ideograph Advantage"},{code:"1F239",desc:"Squared Cjk Unified Ideograph-5272"},{code:"1F21A",desc:"Squared Cjk Unified Ideograph-7121"},{code:"1F232",desc:"Squared Cjk Unified Ideograph-7981"},{code:"1F251",desc:"Circled Ideograph Accept"},{code:"1F238",desc:"Squared Cjk Unified Ideograph-7533"},{code:"1F234",desc:"Squared Cjk Unified Ideograph-5408"},{code:"1F233",desc:"Squared Cjk Unified Ideograph-7a7a"},{code:"3297",desc:"Circled Ideograph Congratulation"},{code:"3299",desc:"Circled Ideograph Secret"},{code:"1F23A",desc:"Squared Cjk Unified Ideograph-55b6"},{code:"1F235",desc:"Squared Cjk Unified Ideograph-6e80"},{code:"25AA",desc:"Black Small Square"},{code:"25AB",desc:"White Small Square"},{code:"25FB",desc:"White Medium Square"},{code:"25FC",desc:"Black Medium Square"},{code:"25FD",desc:"White Medium Small Square"},{code:"25FE",desc:"Black Medium Small Square"},{code:"2B1B",desc:"Black Large Square"},{code:"2B1C",desc:"White Large Square"},{code:"1F536",desc:"Large Orange Diamond"},{code:"1F537",desc:"Large Blue Diamond"},{code:"1F538",desc:"Small Orange Diamond"},{code:"1F539",desc:"Small Blue Diamond"},{code:"1F53A",desc:"Up-Pointing Red Triangle"},{code:"1F53B",desc:"Down-Pointing Red Triangle"},{code:"1F4A0",desc:"Diamond Shape with a Dot Inside"},{code:"1F518",desc:"Radio Button"},{code:"1F532",desc:"Black Square Button"},{code:"1F533",desc:"White Square Button"},{code:"26AA",desc:"Medium White Circle"},{code:"26AB",desc:"Medium Black Circle"},{code:"1F534",desc:"Large Red Circle"},{code:"1F535",desc:"Large Blue Circle"}]},{id:"flags",name:"Flags",code:"1F3C1",emoticons:[{code:"1f3c1",desc:"Chequered Flag"},{code:"1f1e8-1f1f3",desc:"China Flag"},{code:"1f38c",desc:"Crossed Flags"},{code:"1f1e9-1f1ea",desc:"Germany Flag"},{code:"1f1ea-1f1f8",desc:"Spain Flag"},{code:"1f1e6-1f1e8",desc:"Ascension Island Flag"},{code:"1f1e6-1f1e9",desc:"Andorra Flag"},{code:"1f1e6-1f1ea",desc:"United Arab Emirates Flag"},{code:"1f1e6-1f1eb",desc:"Afghanistan Flag"},{code:"1f1e6-1f1ec",desc:"Antigua & Barbuda Flag"},{code:"1f1e6-1f1ee",desc:"Anguilla Flag"},{code:"1f1e6-1f1f1",desc:"Albania Flag"},{code:"1f1e6-1f1f2",desc:"Armenia Flag"},{code:"1f1e6-1f1f4",desc:"Angola Flag"},{code:"1f1e6-1f1f6",desc:"Antarctica Flag"},{code:"1f1e6-1f1f7",desc:"Argentina Flag"},{code:"1f1e6-1f1f8",desc:"American Samoa Flag"},{code:"1f1e6-1f1f9",desc:"Austria Flag"},{code:"1f1e6-1f1fa",desc:"Australia Flag"},{code:"1f1e6-1f1fc",desc:"Aruba Flag"},{code:"1f1e6-1f1fd",desc:"\xc5land Islands Flag"},{code:"1f1e6-1f1ff",desc:"Azerbaijan Flag"},{code:"1f1e7-1f1e7",desc:"Barbados Flag"},{code:"1f1e7-1f1e9",desc:"Bangladesh Flag"},{code:"1f1e7-1f1ea",desc:"Belgium Flag"},{code:"1f1e7-1f1eb",desc:"Burkina Faso Flag"},{code:"1f1e7-1f1ec",desc:"Bulgaria Flag"},{code:"1f1e7-1f1ed",desc:"Bahrain Flag"},{code:"1f1e7-1f1ee",desc:"Burundi Flag"},{code:"1f1e7-1f1ef",desc:"Benin Flag"},{code:"1f1e7-1f1f1",desc:"St. Barth\xe9lemy Flag"},{code:"1f1e7-1f1f2",desc:"Bermuda Flag"},{code:"1f1e7-1f1f4",desc:"Bolivia Flag"},{code:"1f1e7-1f1f6",desc:"Caribbean Netherlands Flag"},{code:"1f1e7-1f1f7",desc:"Brazil Flag"},{code:"1f1e7-1f1f8",desc:"Bahamas Flag"},{code:"1f1e7-1f1f9",desc:"Bhutan Flag"},{code:"1f1e7-1f1fb",desc:"Bouvet Island Flag"},{code:"1f1e7-1f1fc",desc:"Botswana Flag"},{code:"1f1e7-1f1fe",desc:"Belarus Flag"},{code:"1f1e7-1f1ff",desc:"Belize Flag"},{code:"1f1e8-1f1e6",desc:"Canada Flag"},{code:"1f1e8-1f1e8",desc:"Cocos (keeling) Islands Flag"},{code:"1f1e8-1f1e9",desc:"Congo - Kinshasa Flag"},{code:"1f1e8-1f1eb",desc:"Central African Republic Flag"},{code:"1f1e8-1f1ec",desc:"Congo - Brazzaville Flag"},{code:"1f1e8-1f1ed",desc:"Switzerland Flag"},{code:"1f1e8-1f1ee",desc:"C\xf4te D\u2019ivoire Flag"},{code:"1f1e8-1f1f0",desc:"Cook Islands Flag"},{code:"1f1e8-1f1f1",desc:"Chile Flag"},{code:"1f1e8-1f1f2",desc:"Cameroon Flag"},{code:"1f1e8-1f1f4",desc:"Colombia Flag"},{code:"1f1e8-1f1f7",desc:"Costa Rica Flag"},{code:"1f1e8-1f1fa",desc:"Cuba Flag"},{code:"1f1e8-1f1fb",desc:"Cape Verde Flag"},{code:"1f1e8-1f1fc",desc:"Cura\xe7ao Flag"},{code:"1f1e8-1f1fd",desc:"Christmas Island Flag"},{code:"1f1e8-1f1fe",desc:"Cyprus Flag"},{code:"1f1e8-1f1ff",desc:'Czechia Flag"'},{code:"1f1e9-1f1ec",desc:"Diego Garcia Flag"},{code:"1f1e9-1f1ef",desc:"Djibouti Flag"},{code:"1f1e9-1f1f0",desc:"Denmark Flag"},{code:"1f1e9-1f1f2",desc:"Dominica Flag"},{code:"1f1e9-1f1f4",desc:"Dominican Republic Flag"},{code:"1f1e9-1f1ff",desc:"Algeria Flag"},{code:"1f1ea-1f1e6",desc:"Ceuta & Melilla Flag"},{code:"1f1ea-1f1e8",desc:"Ecuador Flag"},{code:"1f1ea-1f1ea",desc:"Estonia Flag"},{code:"1f1ea-1f1ec",desc:"Egypt Flag"},{code:"1f1ea-1f1ed",desc:"Western Sahara Flag"},{code:"1f1ea-1f1f7",desc:"Eritrea Flag"},{code:"1f1ea-1f1f9",desc:"Ethiopia Flag"},{code:"1f1ea-1f1fa",desc:"European Union Flag"},{code:"1f1eb-1f1ee",desc:"Finland Flag"},{code:"1f1eb-1f1ef",desc:"Fiji Flag"},{code:"1f1eb-1f1f0",desc:"Falkland Islands Flag"},{code:"1f1eb-1f1f2",desc:"Micronesia Flag"},{code:"1f1eb-1f1f4",desc:"Faroe Islands Flag"},{code:"1f1ec-1f1e6",desc:"Gabon Flag"},{code:"1f1ec-1f1e9",desc:"Grenada Flag"},{code:"1f1ec-1f1ea",desc:"Georgia Flag"},{code:"1f1ec-1f1eb",desc:"French Guiana Flag"},{code:"1f1ec-1f1ec",desc:"Guernsey Flag"},{code:"1f1ec-1f1ed",desc:"Ghana Flag"},{code:"1f1ec-1f1ee",desc:"Gibraltar Flag"},{code:"1f1ec-1f1f1",desc:"Greenland Flag"},{code:"1f1ec-1f1f2",desc:"Gambia Flag"},{code:"1f1ec-1f1f3",desc:"Guinea Flag"},{code:"1f1ec-1f1f5",desc:"Guadeloupe Flag"},{code:"1f1ec-1f1f6",desc:"Equatorial Guinea Flag"},{code:"1f1ec-1f1f7",desc:"Greece Flag"},{code:"1f1ec-1f1f8",desc:"South Georgia & South Sandwich Islands Flag"},{code:"1f1ec-1f1f9",desc:"Guatemala Flag"},{code:"1f1ec-1f1fa",desc:"Guam Flag"},{code:"1f1ec-1f1fc",desc:"Guinea-Bissau Flag"},{code:"1f1ec-1f1fe",desc:"Guyana Flag"},{code:"1f1ed-1f1f0",desc:"Hong Kong Sar China Flag"},{code:"1f1ed-1f1f2",desc:"Heard & Mcdonald Islands Flag"},{code:"1f1ed-1f1f3",desc:"Honduras Flag"},{code:"1f1ed-1f1f7",desc:"Croatia Flag"},{code:"1f1ed-1f1f9",desc:"Haiti Flag"},{code:"1f1ed-1f1fa",desc:"Hungary Flag"},{code:"1f1ee-1f1e8",desc:"Canary Islands Flag"},{code:"1f1ee-1f1e9",desc:"Indonesia Flag"},{code:"1f1ee-1f1ea",desc:"Ireland Flag"},{code:"1f1ee-1f1f1",desc:"Israel Flag"},{code:"1f1ee-1f1f2",desc:"Isle of Man Flag"},{code:"1f1ee-1f1f3",desc:"India Flag"},{code:"1f1ee-1f1f4",desc:"British Indian Ocean Territory Flag"},{code:"1f1ee-1f1f6",desc:"Iraq Flag"},{code:"1f1ee-1f1f7",desc:"Iran Flag"},{code:"1f1ee-1f1f8",desc:"Iceland Flag"},{code:"1f1ef-1f1ea",desc:"Jersey Flag"},{code:"1f1ef-1f1f2",desc:"Jamaica Flag"},{code:"1f1ef-1f1f4",desc:"Jordan Flag"},{code:"1f1f0-1f1ea",desc:"Kenya Flag"},{code:"1f1f0-1f1ec",desc:"Kyrgyzstan Flag"},{code:"1f1f0-1f1ed",desc:"Cambodia Flag"},{code:"1f1f0-1f1ee",desc:"Kiribati Flag"},{code:"1f1f0-1f1f2",desc:"Comoros Flag"},{code:"1f1f0-1f1f3",desc:"St. Kitts & Nevis Flag"},{code:"1f1f0-1f1f5",desc:"North Korea Flag"},{code:"1f1f0-1f1fc",desc:"Kuwait Flag"},{code:"1f1f0-1f1fe",desc:"Cayman Islands Flag"},{code:"1f1f0-1f1ff",desc:"Kazakhstan Flag"},{code:"1f1f1-1f1e6",desc:"Laos Flag"},{code:"1f1f1-1f1e7",desc:"Lebanon Flag"},{code:"1f1f1-1f1e8",desc:"St. Lucia Flag"},{code:"1f1f1-1f1ee",desc:"Liechtenstein Flag"},{code:"1f1f1-1f1f0",desc:"Sri Lanka Flag"},{code:"1f1f1-1f1f7",desc:"Liberia Flag"},{code:"1f1f1-1f1f8",desc:"Lesotho Flag"},{code:"1f1f1-1f1f9",desc:"Lithuania Flag"},{code:"1f1f1-1f1fa",desc:"Luxembourg Flag"},{code:"1f1f1-1f1fb",desc:"Latvia Flag"},{code:"1f1f1-1f1fe",desc:"Libya Flag"},{code:"1f1f2-1f1e6",desc:"Morocco Flag"},{code:"1f1f2-1f1e8",desc:"Monaco Flag"},{code:"1f1f2-1f1e9",desc:"Moldova Flag"},{code:"1f1f2-1f1ea",desc:"Montenegro Flag"},{code:"1f1f2-1f1eb",desc:"St. Martin Flag"},{code:"1f1f2-1f1ec",desc:"Madagascar Flag"},{code:"1f1f2-1f1ed",desc:"Marshall Islands Flag"},{code:"1f1f2-1f1f0",desc:"Macedonia Flag"},{code:"1f1f2-1f1f1",desc:"Mali Flag"},{code:"1f1f2-1f1f2",desc:"Myanmar (burma) Flag"},{code:"1f1f2-1f1f3",desc:"Mongolia Flag"},{code:"1f1f2-1f1f4",desc:"Macau Sar China Flag"},{code:"1f1f2-1f1f5",desc:"Northern Mariana Islands Flag"},{code:"1f1f2-1f1f6",desc:"Martinique Flag"},{code:"1f1f2-1f1f7",desc:"Mauritania Flag"},{code:"1f1f2-1f1f8",desc:"Montserrat Flag"},{code:"1f1f2-1f1f9",desc:"Malta Flag"},{code:"1f1f2-1f1fa",desc:"Mauritius Flag"},{code:"1f1f2-1f1fb",desc:"Maldives Flag"},{code:"1f1f2-1f1fc",desc:"Malawi Flag"},{code:"1f1f2-1f1fd",desc:"Mexico Flag"},{code:"1f1f2-1f1fe",desc:"Malaysia Flag"},{code:"1f1f2-1f1ff",desc:"Mozambique Flag"},{code:"1f1f3-1f1e6",desc:"Namibia Flag"},{code:"1f1f3-1f1e8",desc:"New Caledonia Flag"},{code:"1f1f3-1f1ea",desc:"Niger Flag"},{code:"1f1f3-1f1eb",desc:"Norfolk Island Flag"},{code:"1f1f3-1f1ec",desc:"Nigeria Flag"},{code:"1f1f3-1f1ee",desc:"Nicaragua Flag"},{code:"1f1f3-1f1f1",desc:"Netherlands Flag"},{code:"1f1f3-1f1f4",desc:"Norway Flag"},{code:"1f1f3-1f1f5",desc:"Nepal Flag"},{code:"1f1f3-1f1f7",desc:"Nauru Flag"},{code:"1f1f3-1f1fa",desc:"Niue Flag"},{code:"1f1f3-1f1ff",desc:"New Zealand Flag"},{code:"1f1f4-1f1f2",desc:"Oman Flag"},{code:"1f1f8-1f1ff",desc:"Swaziland Flag"},{code:"1f1f5-1f1e6",desc:"Panama Flag"},{code:"1f1f5-1f1ea",desc:"Peru Flag"},{code:"1f1f5-1f1eb",desc:"French Polynesia Flag"},{code:"1f1f5-1f1ec",desc:"Papua New Guinea Flag"},{code:"1f1f5-1f1ed",desc:"Philippines Flag"},{code:"1f1f5-1f1f1",desc:"Pakistan Flag"},{code:"1f1f5-1f1f2",desc:"Poland Flag"},{code:"1f1f5-1f1f3",desc:"St. Pierre & Miquelon Flag"},{code:"1f1f5-1f1f9",desc:"Pitcairn Islands Flag"},{code:"1f1f5-1f1f7",desc:"Puerto Rico Flag"},{code:"1f1f5-1f1f8",desc:"Palestinian Territories Flag"},{code:"1f1f5-1f1f9",desc:"Portugal Flag"},{code:"1f1f5-1f1fc",desc:"Palau Flag"},{code:"1f1f5-1f1fe",desc:"Paraguay Flag"},{code:"1f1f6-1f1e6",desc:"Qatar Flag"},{code:"1f1f7-1f1ea",desc:"R\xe9union Flag"},{code:"1f1f7-1f1f4",desc:"Romania Flag"},{code:"1f1f7-1f1f8",desc:"Serbia Flag"},{code:"1f1f7-1f1fc",desc:"Rwanda Flag"},{code:"1f1f8-1f1e6",desc:"Saudi Arabia Flag"},{code:"1f1f8-1f1e7",desc:"Solomon Islands Flag"},{code:"1f1f8-1f1e8",desc:"Seychelles Flag"},{code:"1f1f8-1f1e9",desc:"Sudan Flag"},{code:"1f1f8-1f1ea",desc:"Sweden Flag"},{code:"1f1f8-1f1ec",desc:"Singapore Flag"},{code:"1f1f8-1f1ee",desc:"Slovenia Flag"},{code:"1f1f8-1f1ed",desc:"St. Helena Flag"},{code:"1f1f8-1f1ef",desc:"Svalbard & Jan Mayen Flag"},{code:"1f1f8-1f1f1",desc:"Sierra Leone Flag"},{code:"1f1f8-1f1f2",desc:"San Marino Flag"},{code:"1f1f8-1f1f3",desc:"Senegal Flag"},{code:"1f1f8-1f1f4",desc:"Somalia Flag"},{code:"1f1f8-1f1f7",desc:"Suriname Flag"},{code:"1f1f8-1f1f8",desc:"South Sudan Flag"},{code:"1f1f8-1f1f9",desc:"S\xe3o Tom\xe9 & Pr\xedncipe Flag"},{code:"1f1f8-1f1fb",desc:"El Salvador Flag"},{code:"1f1f8-1f1fd",desc:"Sint Maarten Flag"},{code:"1f1f8-1f1fe",desc:"Syria Flag"},{code:"1f1f9-1f1e6",desc:"Tristan Da Cunha Flag"},{code:"1f1f9-1f1e8",desc:"Turks & Caicos Islands Flag"},{code:"1f1f9-1f1eb",desc:"French Southern Territories Flag"},{code:"1f1f9-1f1ec",desc:"Togo Flag"},{code:"1f1f9-1f1ed",desc:"Thailand Flag"},{code:"1f1f9-1f1ef",desc:"Tajikistan Flag"},{code:"1f1f9-1f1f0",desc:"Tokelau Flag"},{code:"1f1f9-1f1f1",desc:"Timor-Leste Flag"},{code:"1f1f9-1f1f2",desc:"Turkmenistan Flag"},{code:"1f1f9-1f1f3",desc:"Tunisia Flag"},{code:"1f1f9-1f1f4",desc:"Tonga Flag"},{code:"1f1f9-1f1f7",desc:"Turkey Flag"},{code:"1f1f9-1f1f9",desc:"Trinidad & Tobago Flag"},{code:"1f1f9-1f1fb",desc:"Tuvalu Flag"},{code:"1f1f9-1f1fc",desc:"Taiwan Flag"},{code:"1f1f9-1f1ff",desc:"Tanzania Flag"},{code:"1f1fa-1f1e6",desc:"Ukraine City Flag"},{code:"1f1fa-1f1ec",desc:"Uganda Flag"},{code:"1f1fa-1f1f2",desc:"U.s. Outlying Islands Flag"},{code:"1f1fa-1f1fe",desc:"Uruguay Flag"},{code:"1f1fa-1f1ff",desc:"Uzbekistan Flag"},{code:"1f1fb-1f1e6",desc:"Vatican City Flag"},{code:"1f1fb-1f1e8",desc:"St. Vincent & Grenadines Flag"},{code:"1f1fb-1f1ea",desc:"Venezuela Flag"},{code:"1f1fb-1f1ec",desc:"British Virgin Islands Flag"},{code:"1f1fb-1f1ee",desc:"U.s. Virgin Islands Flag"},{code:"1f1fb-1f1f3",desc:"Vietnam Flag"},{code:"1f1e6-1f1f8",desc:"Samoa Flag"},{code:"1f1fb-1f1fa",desc:"Vanuatu Flag"},{code:"1f1fc-1f1eb",desc:'"Wallis & Futuna Flag'},{code:"1f1fd-1f1f0",desc:"Kosovo Flag"},{code:"1f1fe-1f1ea",desc:"Yemen Flag"},{code:"1f1fe-1f1f9",desc:"Mayotte Flag"},{code:"1f1ff-1f1e6",desc:"South Africa Flag"},{code:"1f1ff-1f1f2",desc:"Zambia Flag"},{code:"1f1ff-1f1fc",desc:"Zimbabwe Flag"},{code:"1f1eb-1f1f7",desc:"France Flag"},{code:"1f1ee-1f1f9",desc:"United Kingdom Flag"},{code:"1f1ee-1f1f9",desc:"Italy Flag"},{code:"1f1ef-1f1f5",desc:"Japan Flag"},{code:"1f1f0-1f1f7",desc:"South Korea Flag"},{code:"1f1f7-1f1fa",desc:"Russia Flag"},{code:"1F6A9",desc:"Triangular Flag on Post"},{code:"1f1fa-1f1f8",desc:"United States Flag"}]}],emoticonsButtons:["emoticonsBack","|"],emoticonsUseImage:!0}),be.PLUGINS.emoticons=function(m){var v=m.$,l=m.opts.emoticonsSet,c=l&&l[0],i="";function r(){if(!m.selection.isCollapsed())return!1;var e=m.selection.element(),t=m.selection.endElement();if(e&&m.node.hasClass(e,"fr-emoticon"))return e;if(t&&m.node.hasClass(t,"fr-emoticon"))return t;var a=m.selection.ranges(0),n=a.startContainer;if(n.nodeType==Node.ELEMENT_NODE&&0\n '.concat((i=a,s=n,o="",i.forEach(function(e){var t={image:e.code.toLowerCase()},a={elementClass:e.id===s.id?"fr-active fr-active-tab":"",emoticonsUnicodeClass:m.opts.emoticonsUseImage?"":"fr-tabs-unicode",title:m.language.translate(e.name),dataCmd:"setEmoticonCategory",dataParam1:e.id,image:m.opts.emoticonsUseImage?''):"&#x".concat(t.image,";")};o+='")}),o),"\n ")),"\n ").concat((e=c,'\n
\n '.concat((t=e,r="",t.emoticons.forEach(function(e){var t=e.code.split("-").reduce(function(e,t){return e?e+"‍&#x"+t.toLowerCase()+";":"&#x"+t.toLowerCase()+";"},""),a={image:e.code.toLowerCase(),compiledCode:e.uCode?e.uCode:t},n={dataParam1:e.code.toLowerCase(),dataParam2:a.compiledCode,title:m.language.translate(e.desc),image:m.opts.emoticonsUseImage?''):"".concat(a.compiledCode),desc:m.language.translate(e.desc)};r+='\n ').concat(n.image,'').concat(n.desc,"   ")}),r),"\n
\n ")),"\n ").concat(m.opts.emoticonsUseImage?'

Emoji free by Emoji One

':"")}return{_init:function(){var e=function(){for(var e=m.el.querySelectorAll(".fr-emoticon:not(.fr-deletable)"),t=0;t=be.KEYCODE.ARROW_LEFT&&e.which<=be.KEYCODE.ARROW_DOWN)){var n=r();m.node.hasClass(n,"fr-emoticon-img")&&(v(n).append(be.MARKERS),m.selection.restore())}})},insert:function(e,t){var a=r(),n=m.selection.ranges(0);a?(0===n.startOffset&&m.selection.element()===a?v(a).before(be.MARKERS+be.INVISIBLE_SPACE):0").concat(t?" ":e," ").concat(be.MARKERS),!0)):m.html.insert('").concat(t?" ":e," "),!0)},setEmoticonCategory:function(t){c=l.filter(function(e){return e.id===t})[0],m.popups.get("emoticons").html(i+s())},showEmoticonsPopup:function(){var e=m.popups.get("emoticons");if(e||(e=function(){m.opts.toolbarInline&&0'.concat(m.button.buildList(m.opts.emoticonsButtons),""));var g,e={buttons:i,custom_layer:s()},t=m.popups.create("emoticons",e);return g=t,m.events.on("popup.tab",function(e){var t=v(e.currentTarget);if(!m.popups.isVisible("emoticons")||!t.is("span, a"))return!0;var a,n,r,i=e.which;if(be.KEYCODE.TAB==i){if(t.is("span.fr-emoticon")&&e.shiftKey||t.is("a")&&!e.shiftKey){var s=g.find(".fr-buttons");a=!m.accessibility.focusToolbar(s,!!e.shiftKey)}if(!1!==a){var o=g.find("span.fr-emoticon:focus").first().concat(g.findVisible(" div.fr-tabs").first().concat(g.find("a")));t.is("span.fr-emoticon")&&(o=o.not("span.fr-emoticon:not(:focus)")),n=o.index(t),n=e.shiftKey?((n-1)%o.length+o.length)%o.length:(n+1)%o.length,r=o.get(n),m.events.disableBlur(),r.focus(),a=!1}}else if(be.KEYCODE.ARROW_UP==i||be.KEYCODE.ARROW_DOWN==i||be.KEYCODE.ARROW_LEFT==i||be.KEYCODE.ARROW_RIGHT==i){if(t.is("span.fr-emoticon")){var l=t.parent().find("span.fr-emoticon");n=l.index(t);var c=m.opts.emoticonsStep,d=Math.floor(l.length/c),f=n%c,p=Math.floor(n/c),u=p*c+f,h=d*c;be.KEYCODE.ARROW_UP==i?u=((u-c)%h+h)%h:be.KEYCODE.ARROW_DOWN==i?u=(u+c)%h:be.KEYCODE.ARROW_LEFT==i?u=((u-1)%h+h)%h:be.KEYCODE.ARROW_RIGHT==i&&(u=(u+1)%h),r=v(l.get(u)),m.events.disableBlur(),r.focus(),a=!1}}else be.KEYCODE.ENTER==i&&(t.is("a")?t[0].click():m.button.exec(t),a=!1);return!1===a&&(e.preventDefault(),e.stopPropagation()),a},!0),t}()),!e.hasClass("fr-active")){m.popups.refresh("emoticons"),m.popups.setContainer("emoticons",m.$tb);var t=m.$tb.find('.fr-command[data-cmd="emoticons"]'),a=m.button.getPosition(t),n=a.left,r=a.top;m.popups.show("emoticons",n,r,t.outerHeight())}},back:function(){m.popups.hide("emoticons"),m.toolbar.showInline()}}},be.DefineIcon("emoticons",{NAME:"smile-o",FA5NAME:"smile",SVG_KEY:"smile"}),be.RegisterCommand("emoticons",{title:"Emoticons",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("emoticons")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("emoticons")):this.emoticons.showEmoticonsPopup()},plugin:"emoticons"}),be.RegisterCommand("insertEmoticon",{callback:function(e,t,a){this.emoticons.insert(a,this.opts.emoticonsUseImage?"https://cdnjs.cloudflare.com/ajax/libs/emojione/2.0.1/assets/svg/".concat(t,".svg"):null),this.popups.hide("emoticons")}}),be.RegisterCommand("setEmoticonCategory",{undo:!1,focus:!1,callback:function(e,t){this.emoticons.setEmoticonCategory(t)}}),be.DefineIcon("emoticonsBack",{NAME:"arrow-left",SVG_KEY:"back"}),be.RegisterCommand("emoticonsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.emoticons.back()}}),Object.assign(be.DEFAULTS,{entities:""'¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿŒœŠšŸƒˆ˜ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϖ   ‌‍‎‏–—‘’‚“”„†‡•…‰′″‹›‾⁄€ℑ℘ℜ™ℵ←↑→↓↔↵⇐⇑⇒⇓⇔∀∂∃∅∇∈∉∋∏∑−∗√∝∞∠∧∨∩∪∫∴∼≅≈≠≡≤≥⊂⊃⊄⊆⊇⊕⊗⊥⋅⌈⌉⌊⌋⟨⟩◊♠♣♥♦"}),be.PLUGINS.entities=function(r){var i,s,o=r.$;function n(e){var t=e.textContent;if(t.match(i)){for(var a="",n=0;n span").css("width",t+"%")):n.find("div").addClass("fr-indeterminate")}}function v(e,t,a){c.edit.on(),c.events.focus(!0),c.selection.restore(),c.opts.fileUseSelectedText&&c.selection.text().length&&(t=c.selection.text()),c.html.insert(''+t+"");var n=c.$el.find("#fr-inserted-file");n.removeAttr("id"),c.popups.hide("file.insert"),c.undo.saveStep(),S(),c.events.trigger("file.inserted",[n,a])}function E(e){var t=this.status,a=this.response,n=this.responseXML,r=this.responseText;try{if(c.opts.fileUploadToS3)if(201===t){var i=function(e){try{var t=l(e).find("Location").text(),a=l(e).find("Key").text();return!1===c.events.trigger("file.uploadedToS3",[t,a,e],!0)?(c.edit.on(),!1):t}catch(n){return T(u,e),!1}}(n);i&&v(i,e,a||n)}else T(u,a||n);else if(200<=t&&t<300){var s=function(e){try{if(!1===c.events.trigger("file.uploaded",[e],!0))return c.edit.on(),!1;var t=JSON.parse(e);return t.link?t:(T(f,e),!1)}catch(a){return T(u,e),!1}}(r);s&&v(s.link,e,a||r)}else T(p,a||r)}catch(o){T(u,a||r)}}function b(){T(u,this.response||this.responseText||this.responseXML)}function A(e){if(e.lengthComputable){var t=e.loaded/e.total*100|0;r(c.language.translate("Uploading"),t)}}function T(e,t){c.edit.on(),function(e){m();var t=c.popups.get("file.insert").find(".fr-file-progress-bar-layer");t.addClass("fr-error");var a=t.find("h3");a.text(e),c.events.disableBlur(),a.focus()}(c.language.translate("Something went wrong. Please try again.")),c.events.trigger("file.error",[{code:e,message:a[e]},t])}function C(){c.edit.on(),i(!0)}function s(e){if(void 0!==e&&0c.opts.fileMaxSize)return T(h),!1;if(c.opts.fileAllowedTypes.indexOf("*")<0&&c.opts.fileAllowedTypes.indexOf(a.type.replace(/file\//g,""))<0)return T(g),!1;if(c.drag_support.formdata&&(t=c.drag_support.formdata?new FormData:null),t){var n;if(!1!==c.opts.fileUploadToS3)for(n in t.append("key",c.opts.fileUploadToS3.keyStart+(new Date).getTime()+"-"+(a.name||"untitled")),t.append("success_action_status","201"),t.append("X-Requested-With","xhr"),t.append("Content-Type",a.type),c.opts.fileUploadToS3.params)c.opts.fileUploadToS3.params.hasOwnProperty(n)&&t.append(n,c.opts.fileUploadToS3.params[n]);for(n in c.opts.fileUploadParams)c.opts.fileUploadParams.hasOwnProperty(n)&&t.append(n,c.opts.fileUploadParams[n]);t.append(c.opts.fileUploadParam,a);var r=c.opts.fileUploadURL;c.opts.fileUploadToS3&&(r=c.opts.fileUploadToS3.uploadURL?c.opts.fileUploadToS3.uploadURL:"https://"+c.opts.fileUploadToS3.region+".amazonaws.com/"+c.opts.fileUploadToS3.bucket);var i=c.core.getXHR(r,c.opts.fileUploadMethod);i.onload=function(){E.call(i,a.name)},i.onerror=b,i.upload.onprogress=A,i.onabort=C,m();var s=c.popups.get("file.insert");s&&(s.off("abortUpload"),s.on("abortUpload",function(){4!==i.readyState&&i.abort()})),i.send(t)}}var o,l}function o(){i()}function R(e){if(e)return c.popups.onHide("file.insert",o),!0;var t;c.opts.fileUpload||c.opts.fileInsertButtons.splice(c.opts.fileInsertButtons.indexOf("fileUpload"),1),t='
'+c.button.buildList(c.opts.fileInsertButtons)+"
";var a="";c.opts.fileUpload&&(a='
'+c.language.translate("Drop file")+"
("+c.language.translate("or click")+')
');var n,r={buttons:t,upload_layer:a,progress_bar:'

Uploading

'},i=c.popups.create("file.insert",r);return n=i,c.events.$on(n,"dragover dragenter",".fr-file-upload-layer",function(){return l(this).addClass("fr-drop"),!1},!0),c.events.$on(n,"dragleave dragend",".fr-file-upload-layer",function(){return l(this).removeClass("fr-drop"),!1},!0),c.events.$on(n,"drop",".fr-file-upload-layer",function(e){e.preventDefault(),e.stopPropagation(),l(this).removeClass("fr-drop");var t=e.originalEvent.dataTransfer;t&&t.files&&(n.data("instance")||c).file.upload(t.files)},!0),c.helpers.isIOS()&&c.events.$on(n,"touchstart",'.fr-file-upload-layer input[type="file"]',function(){l(this).trigger("click")}),c.events.$on(n,"change",'.fr-file-upload-layer input[type="file"]',function(){if(this.files){var e=n.data("instance")||c;e.events.disableBlur(),n.find("input:focus").blur(),e.events.enableBlur(),e.file.upload(this.files)}l(this).val("")},!0),i}function e(e){c.node.hasClass(e,"fr-file")}function t(e){var t=e.originalEvent.dataTransfer;if(t&&t.files&&t.files.length){var a=t.files[0];if(a&&"undefined"!=typeof a.type){if(a.type.indexOf("image")<0){if(!c.opts.fileUpload)return e.preventDefault(),e.stopPropagation(),!1;c.markers.remove(),c.markers.insertAtPoint(e.originalEvent),c.$el.find(".fr-marker").replaceWith(be.MARKERS),c.popups.hideAll();var n=c.popups.get("file.insert");return n||(n=R()),c.popups.setContainer("file.insert",c.$sc),c.popups.show("file.insert",e.originalEvent.pageX,e.originalEvent.pageY),m(),s(t.files),e.preventDefault(),e.stopPropagation(),!1}}else a.type.indexOf("image")<0&&(e.preventDefault(),e.stopPropagation())}}function S(){var e,t=Array.prototype.slice.call(c.el.querySelectorAll("a.fr-file")),a=[];for(e=0;e span").text(r.opts.fontFamily[a()]||t[0]||r.language.translate(r.opts.fontFamilyDefaultSelection))}}}},be.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(e){return e.opts.fontFamilySelection},defaultSelection:function(e){return e.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var e='"},title:"Font Family",callback:function(e,t){this.fontFamily.apply(t)},refresh:function(e){this.fontFamily.refresh(e)},refreshOnShow:function(e,t){this.fontFamily.refreshOnShow(e,t)},plugin:"fontFamily"}),be.DefineIcon("fontFamily",{NAME:"font",SVG_KEY:"fontFamily"}),Object.assign(be.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12",fontSizeUnit:"px"}),be.PLUGINS.fontSize=function(n){var r=n.$;return{apply:function(e){n.format.applyStyle("font-size",e)},refreshOnShow:function(e,t){var a=r(n.selection.element()).css("font-size");"pt"===n.opts.fontSizeUnit&&(a=Math.round(72*parseFloat(a,10)/96)+"pt"),t.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),t.find('.fr-command[data-param1="'+a+'"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(e){if(n.opts.fontSizeSelection){var t=n.helpers.getPX(r(n.selection.element()).css("font-size"));"pt"===n.opts.fontSizeUnit&&(t=Math.round(72*parseFloat(t,10)/96)+"pt"),e.find("> span").text(t)}}}},be.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='"},callback:function(e,t){this.fontSize.apply(t)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,t){this.fontSize.refreshOnShow(e,t)},plugin:"fontSize"}),be.DefineIcon("fontSize",{NAME:"text-height",SVG_KEY:"fontSize"}),Object.assign(be.POPUP_TEMPLATES,{"forms.edit":"[_BUTTONS_]","forms.update":"[_BUTTONS_][_TEXT_LAYER_]"}),Object.assign(be.DEFAULTS,{formEditButtons:["inputStyle","inputEdit"],formStyles:{"fr-rounded":"Rounded","fr-large":"Large"},formMultipleStyles:!0,formUpdateButtons:["inputBack","|"]}),be.PLUGINS.forms=function(i){var s,o=i.$;function e(e){e.preventDefault(),i.selection.clear(),o(this).data("mousedown",!0)}function t(e){o(this).data("mousedown")&&(e.stopPropagation(),o(this).removeData("mousedown"),c(s=this)),e.preventDefault()}function a(){i.$el.find("input, textarea, button").removeData("mousedown")}function n(){o(this).removeData("mousedown")}function l(){return s||null}function c(e){var t=i.popups.get("forms.edit");t||(t=function(){var e="";0'.concat(i.button.buildList(i.opts.formEditButtons),""));var t={buttons:e},a=i.popups.create("forms.edit",t);return i.$wp&&i.events.$on(i.$wp,"scroll.link-edit",function(){l()&&i.popups.isVisible("forms.edit")&&c(l())}),a}());var a=o(s=e);i.popups.refresh("forms.edit"),i.popups.setContainer("forms.edit",i.$sc);var n=a.offset().left+a.outerWidth()/2,r=a.offset().top+a.outerHeight();i.popups.show("forms.edit",n,r,a.outerHeight())}function r(){var e=i.popups.get("forms.update"),t=l();if(t){var a=o(t);a.is("button")?e.find('input[type="text"][name="text"]').val(a.text()):e.find('input[type="text"][name="text"]').val(a.attr("placeholder"))}e.find('input[type="text"][name="text"]').trigger("change")}function d(){s=null}function f(e){if(e)return i.popups.onRefresh("forms.update",r),i.popups.onHide("forms.update",d),!0;var t="";1<=i.opts.formUpdateButtons.length&&(t='
'.concat(i.button.buildList(i.opts.formUpdateButtons),"
"));var a=0,n={buttons:t,text_layer:'
\n
\n
")};return i.popups.create("forms.update",n)}return{_init:function(){i.events.$on(i.$el,i._mousedown,"input, textarea, button",e),i.events.$on(i.$el,i._mouseup,"input, textarea, button",t),i.events.$on(i.$el,"touchmove","input, textarea, button",n),i.events.$on(i.$el,i._mouseup,a),i.events.$on(i.$win,i._mouseup,a),f(!0),i.events.$on(i.$el,"submit","form",function(e){return e.preventDefault(),!1})},updateInput:function(){var e=i.popups.get("forms.update"),t=l();if(t){var a=o(t),n=e.find('input[type="text"][name="text"]').val()||"";n.length&&(a.is("button")?a.text(n):a.attr("placeholder",n)),i.popups.hide("forms.update"),c(t)}},getInput:l,applyStyle:function(e,t,a){void 0===t&&(t=i.opts.formStyles),void 0===a&&(a=i.opts.formMultipleStyles);var n=l();if(!n)return!1;if(!a){var r=Object.keys(t);r.splice(r.indexOf(e),1),o(n).removeClass(r.join(" "))}o(n).toggleClass(e)},showUpdatePopup:function(){var e=l();if(e){var t=o(e),a=i.popups.get("forms.update");a||(a=f()),i.popups.isVisible("forms.update")||i.popups.refresh("forms.update"),i.popups.setContainer("forms.update",i.$sc);var n=t.offset().left+t.outerWidth()/2,r=t.offset().top+t.outerHeight();i.popups.show("forms.update",n,r,t.outerHeight())}},showEditPopup:c,back:function(){i.events.disableBlur(),i.selection.restore(),i.events.enableBlur();var e=l();e&&i.$wp&&("BUTTON"===e.tagName&&i.selection.restore(),c(e))}}},be.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}}),be.DefineIcon("inputStyle",{NAME:"magic",SVG_KEY:"inlineStyle"}),be.RegisterCommand("inputStyle",{title:"Style",type:"dropdown",html:function(){var e='"},callback:function(e,t){var a=this.forms.getInput();a&&(this.forms.applyStyle(t),this.forms.showEditPopup(a))},refreshOnShow:function(e,t){var a=this.$,n=this.forms.getInput();if(n){var r=a(n);t.find(".fr-command").each(function(){var e=a(this).data("param1");a(this).toggleClass("fr-active",r.hasClass(e))})}}}),be.DefineIcon("inputEdit",{NAME:"edit"}),be.RegisterCommand("inputEdit",{title:"Edit Button",undo:!1,refreshAfterCallback:!1,callback:function(){this.forms.showUpdatePopup()}}),be.DefineIcon("inputBack",{NAME:"arrow-left",SVG_KEY:"back"}),be.RegisterCommand("inputBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.forms.back()}}),be.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}}),be.PLUGINS.fullscreen=function(a){var t,n,r,i,s=a.$;function o(){return a.$box.hasClass("fr-fullscreen")}function e(){if(a.helpers.isIOS()&&a.core.hasFocus())return a.$el.blur(),setTimeout(c,250),!1;t=a.helpers.scrollTop(),a.$box.toggleClass("fr-fullscreen"),s("body").first().toggleClass("fr-fullscreen"),a.helpers.isMobile()&&(a.$tb.data("parent",a.$tb.parent()),a.$box.prepend(a.$tb),a.$tb.data("sticky-dummy")&&a.$tb.after(a.$tb.data("sticky-dummy"))),n=a.opts.height,r=a.opts.heightMax,i=a.opts.zIndex,a.opts.height=a.o_win.innerHeight-(a.opts.toolbarInline?0:a.$tb.outerHeight()+(a.$second_tb?a.$second_tb.outerHeight():0)),a.opts.zIndex=2147483641,a.opts.heightMax=null,a.size.refresh(),a.opts.toolbarInline&&a.toolbar.showInline();for(var e=a.$box.parent();!e.first().is("body");)e.addClass("fr-fullscreen-wrapper"),e=e.parent();a.opts.toolbarContainer&&a.$box.prepend(a.$tb),a.events.trigger("charCounter.update"),a.events.trigger("codeView.update"),a.$win.trigger("scroll")}function l(){if(a.helpers.isIOS()&&a.core.hasFocus())return a.$el.blur(),setTimeout(c,250),!1;a.$box.toggleClass("fr-fullscreen"),s("body").first().toggleClass("fr-fullscreen"),a.$tb.data("parent")&&a.$tb.data("parent").prepend(a.$tb),a.$tb.data("sticky-dummy")&&a.$tb.after(a.$tb.data("sticky-dummy")),a.opts.height=n,a.opts.heightMax=r,a.opts.zIndex=i,a.size.refresh(),s(a.o_win).scrollTop(t),a.opts.toolbarInline&&a.toolbar.showInline(),a.events.trigger("charCounter.update"),a.opts.toolbarSticky&&a.opts.toolbarStickyOffset&&(a.opts.toolbarBottom?a.$tb.css("bottom",a.opts.toolbarStickyOffset).data("bottom",a.opts.toolbarStickyOffset):a.$tb.css("top",a.opts.toolbarStickyOffset).data("top",a.opts.toolbarStickyOffset));for(var e=a.$box.parent();!e.first().is("body");)e.removeClass("fr-fullscreen-wrapper"),e=e.parent();a.opts.toolbarContainer&&s(a.opts.toolbarContainer).append(a.$tb),s(a.o_win).trigger("scroll"),a.events.trigger("codeView.update")}function c(){o()?l():e(),d(a.$tb.find('.fr-command[data-cmd="fullscreen"]')),a.refresh.moreText(a.$tb.find('.fr-command[data-cmd="moreText"]')),a.refresh.moreParagraph(a.$tb.find('.fr-command[data-cmd="moreParagraph"]')),a.refresh.moreRich(a.$tb.find('.fr-command[data-cmd="moreRich"]')),a.refresh.moreMisc(a.$tb.find('.fr-command[data-cmd="moreMisc"]'))}function d(e){var t=o();e.toggleClass("fr-active",t).attr("aria-pressed",t),e.find("> *").not(".fr-sr-only").replaceWith(t?a.icon.create("fullscreenCompress"):a.icon.create("fullscreen"))}return{_init:function(){if(!a.$wp)return!1;a.events.$on(s(a.o_win),"resize",function(){o()&&(l(),e())}),a.events.on("toolbar.hide",function(){if(o()&&a.helpers.isMobile())return!1}),a.events.on("position.refresh",function(){if(a.helpers.isIOS())return!o()}),a.events.on("destroy",function(){o()&&l()},!0)},toggle:c,refresh:d,isActive:o}},be.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(e){this.fullscreen.refresh(e)},plugin:"fullscreen"}),be.DefineIcon("fullscreen",{NAME:"expand",SVG_KEY:"fullscreen"}),be.DefineIcon("fullscreenCompress",{NAME:"compress",SVG_KEY:"exitFullscreen"}),Object.assign(be.DEFAULTS,{helpSets:[{title:"Inline Editor",commands:[{val:"OSkeyE",desc:"Show the editor"}]},{title:"Common actions",commands:[{val:"OSkeyC",desc:"Copy"},{val:"OSkeyX",desc:"Cut"},{val:"OSkeyV",desc:"Paste"},{val:"OSkeyZ",desc:"Undo"},{val:"OSkeyShift+Z",desc:"Redo"},{val:"OSkeyK",desc:"Insert Link"},{val:"OSkeyP",desc:"Insert Image"}]},{title:"Basic Formatting",commands:[{val:"OSkeyA",desc:"Select All"},{val:"OSkeyB",desc:"Bold"},{val:"OSkeyI",desc:"Italic"},{val:"OSkeyU",desc:"Underline"},{val:"OSkeyS",desc:"Strikethrough"},{val:"OSkey]",desc:"Increase Indent"},{val:"OSkey[",desc:"Decrease Indent"}]},{title:"Quote",commands:[{val:"OSkey'",desc:"Increase quote level"},{val:"OSkeyShift+'",desc:"Decrease quote level"}]},{title:"Image / Video",commands:[{val:"OSkey+",desc:"Resize larger"},{val:"OSkey-",desc:"Resize smaller"}]},{title:"Table",commands:[{val:"Alt+Space",desc:"Select table cell"},{val:"Shift+Left/Right arrow",desc:"Extend selection one cell"},{val:"Shift+Up/Down arrow",desc:"Extend selection one row"}]},{title:"Navigation",commands:[{val:"OSkey/",desc:"Shortcuts"},{val:"Alt+F10",desc:"Focus popup / toolbar"},{val:"Esc",desc:"Return focus to previous position"}]}]}),be.PLUGINS.help=function(s){var n,r=s.$,i="help";return{_init:function(){},show:function(){if(!n){var e="

"+s.language.translate("Shortcuts")+"

",t=function(){for(var e='
',t=0;t";n+=""+s.language.translate(a.title)+"",n+="";for(var r=0;r",n+=""+s.language.translate(i.desc)+"",n+=""+i.val.replace("OSkey",s.helpers.isMac()?"⌘":"Ctrl+")+"",n+=""}e+=n+=""}return e+="
"}(),a=s.modals.create(i,e,t);n=a.$modal,s.events.$on(r(s.o_win),"resize",function(){s.modals.resize(i)})}s.modals.show(i),s.modals.resize(i)},hide:function(){s.modals.hide(i)}}},be.DefineIcon("help",{NAME:"question",SVG_KEY:"help"}),be.RegisterShortcut(be.KEYCODE.SLASH,"help",null,"/"),be.RegisterCommand("help",{title:"Help",icon:"help",undo:!1,focus:!1,modal:!0,callback:function(){this.help.show()},plugin:"help",showOnMobile:!1}),Object.assign(be.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Object.assign(be.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:null,imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif","webp"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded","fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5,imageAddNewLine:!1}),be.PLUGINS.image=function(f){var p,l,c,d,o,a,u=f.$,h="https://i.froala.com/upload",t=!1,n=1,g=2,m=3,v=4,E=5,b=6,r={};function A(){var e=f.popups.get("image.insert").find(".fr-image-by-url-layer input");e.val(""),p&&e.val(p.attr("src")),e.trigger("change")}function i(){var e=f.popups.get("image.edit");if(e||(e=I()),e){var t=ve();Ee()&&(t=t.find(".fr-img-wrap")),f.popups.setContainer("image.edit",f.$sc),f.popups.refresh("image.edit");var a=t.offset().left+t.outerWidth()/2,n=t.offset().top+t.outerHeight();p.hasClass("fr-uploading")?O():f.popups.show("image.edit",a,n,t.outerHeight(),!0)}}function T(){x()}function e(){for(var e,t,a="IMG"==f.el.tagName?[f.el]:f.el.querySelectorAll("img"),n=0;n"),k(p)),r=a,i=e.timeStamp}},!0),f.events.on("keyup",function(){n=1})}}(),!p)return!1;var e=f.$wp||f.$sc;e.append(l),l.data("instance",f);var t=e.scrollTop()-("static"!=e.css("position")?e.offset().top:0),a=e.scrollLeft()-("static"!=e.css("position")?e.offset().left:0);a-=f.helpers.getPX(e.css("border-left-width")),t-=f.helpers.getPX(e.css("border-top-width")),f.$el.is("img")&&f.$sc.is("body")&&(a=t=0);var n=ve();Ee()&&(n=n.find(".fr-img-wrap"));var r=0,i=0;f.opts.iframe&&(r=f.helpers.getPX(f.$wp.find(".fr-iframe").css("padding-top")),i=f.helpers.getPX(f.$wp.find(".fr-iframe").css("padding-left"))),l.css("top",(f.opts.iframe?n.offset().top+r:n.offset().top+t)-1).css("left",(f.opts.iframe?n.offset().left+i:n.offset().left+a)-1).css("width",n.get(0).getBoundingClientRect().width).css("height",n.get(0).getBoundingClientRect().height).addClass("fr-active")}function s(e){return'
'}function S(e){Ee()?p.parents(".fr-img-caption").css("width",e):p.css("width",e)}function L(e){if(!f.core.sameInstance(l))return!0;if(e.preventDefault(),e.stopPropagation(),f.$el.find("img.fr-error").left)return!1;f.undo.canDo()||f.undo.saveStep();var t=e.pageX||e.originalEvent.touches[0].pageX;if("mousedown"==e.type){var a=f.$oel.get(0).ownerDocument,n=a.defaultView||a.parentWindow,r=!1;try{r=n.location!=n.parent.location&&!(n.$&&n.$.FE)}catch(o){}r&&n.frameElement&&(t+=f.helpers.getPX(u(n.frameElement).offset().left)+n.frameElement.clientLeft)}(c=u(this)).data("start-x",t),c.data("start-width",p.width()),c.data("start-height",p.height());var i=p.width();if(f.opts.imageResizeWithPercent){var s=p.parentsUntil(f.$el,f.html.blockTagsQuery()).get(0)||f.el;i=(i/u(s).outerWidth()*100).toFixed(2)+"%"}S(i),d.show(),f.popups.hideAll(),de()}function _(e){if(!f.core.sameInstance(l))return!0;var t;if(c&&p){if(e.preventDefault(),f.$el.find("img.fr-error").left)return!1;var a=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null);if(!a)return!1;var n=a-c.data("start-x"),r=c.data("start-width");if((c.hasClass("fr-hnw")||c.hasClass("fr-hsw"))&&(n=0-n),f.opts.imageResizeWithPercent){var i=p.parentsUntil(f.$el,f.html.blockTagsQuery()).get(0)||f.el;r=((r+n)/u(i).outerWidth()*100).toFixed(2),f.opts.imageRoundPercent&&(r=Math.round(r)),S(r+"%"),(t=Ee()?(f.helpers.getPX(p.parents(".fr-img-caption").css("width"))/u(i).outerWidth()*100).toFixed(2):(f.helpers.getPX(p.css("width"))/u(i).outerWidth()*100).toFixed(2))===r||f.opts.imageRoundPercent||S(t+"%"),p.css("height","").removeAttr("height")}else r+n>=f.opts.imageMinWidth&&(S(r+n),t=Ee()?f.helpers.getPX(p.parents(".fr-img-caption").css("width")):f.helpers.getPX(p.css("width"))),t!==r+n&&S(t),((p.attr("style")||"").match(/(^height:)|(; *height:)/)||p.attr("height"))&&(p.css("height",c.data("start-height")*p.width()/c.data("start-width")),p.removeAttr("height"));R(),f.events.trigger("image.resize",[me()])}}function w(e){if(!f.core.sameInstance(l))return!0;if(c&&p){if(e&&e.stopPropagation(),f.$el.find("img.fr-error").left)return!1;c=null,d.hide(),R(),i(),f.undo.saveStep(),f.events.trigger("image.resizeEnd",[me()])}}function y(e,t,a){f.edit.on(),p&&p.addClass("fr-error"),function(e){O();var t=f.popups.get("image.insert").find(".fr-image-progress-bar-layer");t.addClass("fr-error");var a=t.find("h3");a.text(e),f.events.disableBlur(),a.focus()}(f.language.translate("Something went wrong. Please try again.")),!p&&a&&J(a),f.events.trigger("image.error",[{code:e,message:r[e]},t,a])}function I(e){if(e)return f.$wp&&f.events.$on(f.$wp,"scroll.image-edit",function(){p&&f.popups.isVisible("image.edit")&&(f.events.disableBlur(),i())}),!0;var t="";if(0 \n '.concat(f.button.buildList(f.opts.imageEditButtons),"\n ")};return f.popups.create("image.edit",a)}return!1}function O(e){var t=f.popups.get("image.insert");if(t||(t=G()),t.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),t.find(".fr-image-progress-bar-layer").addClass("fr-active"),t.find(".fr-buttons").hide(),p){var a=ve();f.popups.setContainer("image.insert",f.$sc);var n=a.offset().left,r=a.offset().top+a.height();f.popups.show("image.insert",n,r,a.outerHeight())}void 0===e&&F(f.language.translate("Uploading"),0)}function x(e){var t=f.popups.get("image.insert");if(t&&(t.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),t.find(".fr-image-progress-bar-layer").removeClass("fr-active"),t.find(".fr-buttons").show(),e||f.$el.find("img.fr-error").length)){if(f.events.focus(),f.$el.find("img.fr-error").length&&(f.$el.find("img.fr-error").remove(),f.undo.saveStep(),f.undo.run(),f.undo.dropRedo()),!f.$wp&&p){var a=p;oe(!0),f.selection.setAfter(a.get(0)),f.selection.restore()}f.popups.hide("image.insert")}}function F(e,t){var a=f.popups.get("image.insert");if(a){var n=a.find(".fr-image-progress-bar-layer");n.find("h3").text(e+(t?" "+t+"%":"")),n.removeClass("fr-error"),t?(n.find("div").removeClass("fr-indeterminate"),n.find("div > span").css("width",t+"%")):n.find("div").addClass("fr-indeterminate")}}function k(e){se.call(e.get(0))}function N(){var e=u(this);f.popups.hide("image.insert"),e.removeClass("fr-uploading"),e.next().is("br")&&e.next().remove(),k(e),f.events.trigger("image.loaded",[e])}function D(s,e,o,l,c){f.edit.off(),F(f.language.translate("Loading image")),e&&(s=f.helpers.sanitizeURL(s));var t=new Image;t.onload=function(){var e,t;if(l){f.undo.canDo()||l.hasClass("fr-uploading")||f.undo.saveStep();var a=l.data("fr-old-src");l.data("fr-image-pasted")&&(a=null),f.$wp?((e=l.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted")).off("load"),a&&l.attr("src",a),l.replaceWith(e)):e=l;for(var n=e.get(0).attributes,r=0;rf.opts.imageMaxSize)return y(E),!1;if(f.opts.imageAllowedTypes.indexOf(n.type.replace(/image\//g,""))<0)return y(b),!1;if(f.drag_support.formdata&&(a=f.drag_support.formdata?new FormData:null),a){var r;if(!1!==f.opts.imageUploadToS3)for(r in a.append("key",f.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(n.name||"untitled")),a.append("success_action_status","201"),a.append("X-Requested-With","xhr"),a.append("Content-Type",n.type),f.opts.imageUploadToS3.params)f.opts.imageUploadToS3.params.hasOwnProperty(r)&&a.append(r,f.opts.imageUploadToS3.params[r]);for(r in f.opts.imageUploadParams)f.opts.imageUploadParams.hasOwnProperty(r)&&a.append(r,f.opts.imageUploadParams[r]);a.append(f.opts.imageUploadParam,n,n.name);var i=f.opts.imageUploadURL;f.opts.imageUploadToS3&&(i=f.opts.imageUploadToS3.uploadURL?f.opts.imageUploadToS3.uploadURL:"https://"+f.opts.imageUploadToS3.region+".amazonaws.com/"+f.opts.imageUploadToS3.bucket),function(t,a,e,r){function i(){var e=u(this);e.off("load"),e.addClass("fr-uploading"),e.next().is("br")&&e.next().remove(),f.placeholder.refresh(),k(e),R(),O(),f.edit.off(),t.onload=function(){M.call(t,e)},t.onerror=B,t.upload.onprogress=P,t.onabort=W,u(e.off("abortUpload")).on("abortUpload",function(){4!=t.readyState&&(t.abort(),r?(r.attr("src",r.data("fr-old-src")),r.removeClass("fr-uploading")):e.remove(),oe(!0))}),t.send(a)}var s=new FileReader;s.onload=function(){var e=s.result;if(s.result.indexOf("svg+xml")<0){for(var t=atob(s.result.split(",")[1]),a=[],n=0;n'+r+"");var i=f.opts.imageInsertButtons.indexOf("imageUpload"),s=f.opts.imageInsertButtons.indexOf("imageByURL"),o="";0<=i&&(t=" fr-active",0<=s&&s'+f.language.translate("Drop image")+"
("+f.language.translate("or click")+')
');var l="";0<=s&&(t=" fr-active",0<=i&&i
");var c,d={buttons:n,upload_layer:o,by_url_layer:l,progress_bar:'

Uploading

'};return 1<=f.opts.imageInsertButtons.length&&(a=f.popups.create("image.insert",d)),f.$wp&&f.events.$on(f.$wp,"scroll",function(){p&&f.popups.isVisible("image.insert")&&he()}),c=a,f.events.$on(c,"dragover dragenter",".fr-image-upload-layer",function(){return u(this).addClass("fr-drop"),!1},!0),f.events.$on(c,"dragleave dragend",".fr-image-upload-layer",function(){return u(this).removeClass("fr-drop"),!1},!0),f.events.$on(c,"drop",".fr-image-upload-layer",function(e){e.preventDefault(),e.stopPropagation(),u(this).removeClass("fr-drop");var t=e.originalEvent.dataTransfer;if(t&&t.files){var a=c.data("instance")||f;a.events.disableBlur(),a.image.upload(t.files),a.events.enableBlur()}},!0),f.helpers.isIOS()&&f.events.$on(c,"touchstart",'.fr-image-upload-layer input[type="file"]',function(){u(this).trigger("click")},!0),f.events.$on(c,"change",'.fr-image-upload-layer input[type="file"]',function(){if(this.files){var e=c.data("instance")||f;e.events.disableBlur(),c.find("input:focus").blur(),e.events.enableBlur(),e.image.upload(this.files,p)}u(this).val("")},!0),a}function Y(){p&&f.popups.get("image.alt").find("input").val(p.attr("alt")||"").trigger("change")}function V(){var e=f.popups.get("image.alt");e||(e=z()),x(),f.popups.refresh("image.alt"),f.popups.setContainer("image.alt",f.$sc);var t=ve();Ee()&&(t=t.find(".fr-img-wrap"));var a=t.offset().left+t.outerWidth()/2,n=t.offset().top+t.outerHeight();f.popups.show("image.alt",a,n,t.outerHeight(),!0)}function z(e){if(e)return f.popups.onRefresh("image.alt",Y),!0;var t={buttons:'
'+f.button.buildList(f.opts.imageAltButtons)+"
",alt_layer:'
"},a=f.popups.create("image.alt",t);return f.$wp&&f.events.$on(f.$wp,"scroll.image-alt",function(){p&&f.popups.isVisible("image.alt")&&V()}),a}function j(){var e=f.popups.get("image.size");if(p)if(Ee()){var t=p.parent();t.get(0).style.width||(t=p.parent().parent()),e.find('input[name="width"]').val(t.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(t.get(0).style.height).trigger("change")}else e.find('input[name="width"]').val(p.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(p.get(0).style.height).trigger("change")}function q(){var e=f.popups.get("image.size");e||(e=X()),x(),f.popups.refresh("image.size"),f.popups.setContainer("image.size",f.$sc);var t=ve();Ee()&&(t=t.find(".fr-img-wrap"));var a=t.offset().left+t.outerWidth()/2,n=t.offset().top+t.outerHeight();f.popups.show("image.size",a,n,t.outerHeight(),!0)}function X(e){if(e)return f.popups.onRefresh("image.size",j),!0;var t={buttons:'
'+f.button.buildList(f.opts.imageSizeButtons)+"
",size_layer:'
"},a=f.popups.create("image.size",t);return f.$wp&&f.events.$on(f.$wp,"scroll.image-size",function(){p&&f.popups.isVisible("image.size")&&q()}),a}function Q(e,t,a,n){return e.pageX=t,L.call(this,e),e.pageX=e.pageX+a*Math.floor(Math.pow(1.1,n)),_.call(this,e),w.call(this,e),++n}function J(e){(e=e||ve())&&!1!==f.events.trigger("image.beforeRemove",[e])&&(f.popups.hideAll(),ge(),oe(!0),f.undo.canDo()||f.undo.saveStep(),e.get(0)==f.el?e.removeAttr("src"):(e.get(0).parentNode&&"A"==e.get(0).parentNode.tagName?(f.selection.setBefore(e.get(0).parentNode)||f.selection.setAfter(e.get(0).parentNode)||e.parent().after(be.MARKERS),u(e.get(0).parentNode).remove()):(f.selection.setBefore(e.get(0))||f.selection.setAfter(e.get(0))||e.after(be.MARKERS),e.remove()),f.html.fillEmptyBlocks(),f.selection.restore()),f.undo.saveStep())}function Z(e){var t=e.which;if(p&&(t==be.KEYCODE.BACKSPACE||t==be.KEYCODE.DELETE))return e.preventDefault(),e.stopPropagation(),J(),!1;if(p&&t==be.KEYCODE.ESC){var a=p;return oe(!0),f.selection.setAfter(a.get(0)),f.selection.restore(),e.preventDefault(),!1}if(p&&(t==be.KEYCODE.ARROW_LEFT||t==be.KEYCODE.ARROW_RIGHT)){var n=p.get(0);return oe(!0),t==be.KEYCODE.ARROW_LEFT?f.selection.setBefore(n):f.selection.setAfter(n),f.selection.restore(),e.preventDefault(),!1}return p&&t===be.KEYCODE.TAB?(e.preventDefault(),e.stopPropagation(),oe(!0),!1):p&&t!=be.KEYCODE.F10&&!f.keys.isBrowserAction(e)?(e.preventDefault(),e.stopPropagation(),!1):void 0}function ee(e){if(e&&"IMG"==e.tagName){if(f.node.hasClass(e,"fr-uploading")||f.node.hasClass(e,"fr-error")?e.parentNode.removeChild(e):f.node.hasClass(e,"fr-draggable")&&e.classList.remove("fr-draggable"),e.parentNode&&e.parentNode.parentNode&&f.node.hasClass(e.parentNode.parentNode,"fr-img-caption")){var t=e.parentNode.parentNode;t.removeAttribute("contenteditable"),t.removeAttribute("draggable"),t.classList.remove("fr-draggable");var a=e.nextSibling;a&&a.removeAttribute("contenteditable")}}else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var n=e.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),r=0;r");var n=f.$el.find('img[data-fr-image-pasted="true"]');n&&fe(n,f.opts.imageDefaultDisplay,f.opts.imageDefaultAlign),f.events.trigger("paste.after")}function re(e){if(e&&e.clipboardData&&e.clipboardData.items){var t=null;if(e.clipboardData.types&&-1!=e.clipboardData.types.indexOf("text/rtf")||e.clipboardData.getData("text/rtf"))t=e.clipboardData.items[0].getAsFile();else for(var a=0;a"):u(f.node.blockParent(e.get(0))).after("<"+f.html.defaultTag()+">
"))}),"IMG"==f.el.tagName&&f.$el.addClass("fr-view"),f.events.$on(f.$el,f.helpers.isMobile()&&!f.helpers.isWindowsPhone()?"touchend":"click","IMG"==f.el.tagName?null:'img:not([contenteditable="false"])',se),f.helpers.isMobile()&&(f.events.$on(f.$el,"touchstart","IMG"==f.el.tagName?null:'img:not([contenteditable="false"])',function(){a=!1}),f.events.$on(f.$el,"touchmove",function(){a=!0})),f.$wp?(f.events.on("window.keydown keydown",Z,!0),f.events.on("keyup",function(e){if(p&&e.which==be.KEYCODE.ENTER)return!1},!0),f.events.$on(f.$el,"keydown",function(){var e=f.selection.element();e.nodeType===Node.TEXT_NODE&&(e=e.parentNode),f.node.hasClass(e,"fr-inner")||(f.node.hasClass(e,"fr-img-caption")||(e=u(e).parents(".fr-img-caption").get(0)),f.node.hasClass(e,"fr-img-caption")&&(u(e).after(u.FE.INVISIBLE_SPACE+u.FE.MARKERS),f.selection.restore()))})):f.events.$on(f.$win,"keydown",Z),f.events.on("toolbar.esc",function(){if(p){if(f.$wp)f.events.disableBlur(),f.events.focus();else{var e=p;oe(!0),f.selection.setAfter(e.get(0)),f.selection.restore()}return!1}},!0),f.events.on("toolbar.focusEditor",function(){if(p)return!1},!0),f.events.on("window.cut window.copy",function(e){if(p&&f.popups.isVisible("image.edit")&&!f.popups.get("image.edit").find(":focus").length){var t=ve();Ee()?(t.before(be.START_MARKER),t.after(be.END_MARKER),f.selection.restore(),f.paste.saveCopiedText(t.get(0).outerHTML,t.text())):(ge(),f.paste.saveCopiedText(p.get(0).outerHTML,p.attr("alt"))),"copy"==e.type?setTimeout(function(){k(p)}):(oe(!0),f.undo.saveStep(),setTimeout(function(){f.undo.saveStep()},0))}},!0),f.browser.msie&&f.events.on("keydown",function(e){if(!f.selection.isCollapsed()||!p)return!0;var t=e.which;t==be.KEYCODE.C&&f.keys.ctrlKey(e)?f.events.trigger("window.copy"):t==be.KEYCODE.X&&f.keys.ctrlKey(e)&&f.events.trigger("window.cut")}),f.events.$on(u(f.o_win),"keydown",function(e){var t=e.which;if(p&&t==be.KEYCODE.BACKSPACE)return e.preventDefault(),!1}),f.events.$on(f.$win,"keydown",function(e){var t=e.which;p&&p.hasClass("fr-uploading")&&t==be.KEYCODE.ESC&&p.trigger("abortUpload")}),f.events.on("destroy",function(){p&&p.hasClass("fr-uploading")&&p.trigger("abortUpload")}),f.events.on("paste.before",re),f.events.on("paste.beforeCleanup",ie),f.events.on("paste.after",ae),f.events.on("html.set",e),f.events.on("html.inserted",e),e(),f.events.on("destroy",function(){o=[]}),f.events.on("html.processGet",ee),f.opts.imageOutputSize&&f.events.on("html.beforeGet",function(){n=f.el.querySelectorAll("img");for(var e=0;e *").first().replaceWith(f.icon.create("image-align-"+pe()))},refreshAlignOnShow:function(e,t){p&&t.find('.fr-command[data-param1="'+pe()+'"]').addClass("fr-active").attr("aria-selected",!0)},display:function(e){var t=ve();t.removeClass("fr-dii fr-dib"),!f.opts.htmlUntouched&&f.opts.useClasses?"inline"==e?t.addClass("fr-dii"):"block"==e&&t.addClass("fr-dib"):fe(t,e,pe()),ge(),R(),i(),f.selection.clear()},refreshDisplayOnShow:function(e,t){p&&t.find('.fr-command[data-param1="'+ue()+'"]').addClass("fr-active").attr("aria-selected",!0)},replace:he,back:function(){p?(f.events.disableBlur(),u(".fr-popup input:focus").blur(),k(p)):(f.events.disableBlur(),f.selection.restore(),f.events.enableBlur(),f.popups.hide("image.insert"),f.toolbar.showInline())},get:me,getEl:ve,insert:D,showProgressBar:O,remove:J,hideProgressBar:x,applyStyle:function(e,t,a){if(void 0===t&&(t=f.opts.imageStyles),void 0===a&&(a=f.opts.imageMultipleStyles),!p)return!1;var n=ve();if(!a){var r=Object.keys(t);r.splice(r.indexOf(e),1),n.removeClass(r.join(" "))}"object"==Ae(t[e])?(n.removeAttr("style"),n.css(t[e].style)):n.toggleClass(e),k(p)},showAltPopup:V,showSizePopup:q,setAlt:function(e){if(p){var t=f.popups.get("image.alt");p.attr("alt",e||t.find("input").val()||""),t.find("input:focus").blur(),k(p)}},setSize:function(e,t){if(p){var a=f.popups.get("image.size");e=e||a.find('input[name="width"]').val()||"",t=t||a.find('input[name="height"]').val()||"";var n=/^[\d]+((px)|%)*$/g;p.removeAttr("width").removeAttr("height"),e.match(n)?p.css("width",e):p.css("width",""),t.match(n)?p.css("height",t):p.css("height",""),Ee()&&(p.parents(".fr-img-caption").removeAttr("width").removeAttr("height"),e.match(n)?p.parents(".fr-img-caption").css("width",e):p.parents(".fr-img-caption").css("width",""),t.match(n)?p.parents(".fr-img-caption").css("height",t):p.parents(".fr-img-caption").css("height","")),a&&a.find("input:focus").blur(),k(p)}},toggleCaption:function(){var e;if(p&&!Ee()){var t,a;(e=p).parent().is("a")&&(e=p.parent()),e.attr("style")&&(a=-1<(t=e.attr("style").split(":")).indexOf("width")?t[t.indexOf("width")+1].replace(";",""):"");var n=f.opts.imageResizeWithPercent?(-1'),e.wrap(''),p.after('"+be.START_MARKER+f.language.translate("Image Caption")+be.END_MARKER+""),p.removeAttr("class").removeAttr("style").removeAttr("width"),p.parents(".fr-img-caption").css("width",n),oe(!0),f.selection.restore()}else e=ve(),p.insertAfter(e),p.attr("class",e.attr("class").replace("fr-img-caption","")).attr("style",e.attr("style")),e.remove(),k(p)},hasCaption:Ee,exitEdit:oe,edit:k}},be.DefineIcon("insertImage",{NAME:"image",SVG_KEY:"insertImage"}),be.RegisterShortcut(be.KEYCODE.P,"insertImage",null,"P"),be.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"}),be.DefineIcon("imageUpload",{NAME:"upload",SVG_KEY:"upload"}),be.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(e){this.image.refreshUploadButton(e)}}),be.DefineIcon("imageByURL",{NAME:"link",SVG_KEY:"insertLink"}),be.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(e){this.image.refreshByURLButton(e)}}),be.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(e){this.image.get()?e.text(this.language.translate("Replace")):e.text(this.language.translate("Insert"))}}),be.DefineIcon("imageDisplay",{NAME:"star",SVG_KEY:"imageDisplay"}),be.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.image.display(t)},refresh:function(e){this.opts.imageTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.image.refreshDisplayOnShow(e,t)}}),be.DefineIcon("image-align",{NAME:"align-left",SVG_KEY:"alignLeft"}),be.DefineIcon("image-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),be.DefineIcon("image-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),be.DefineIcon("image-align-center",{NAME:"align-justify",SVG_KEY:"alignCenter"}),be.DefineIcon("imageAlign",{NAME:"align-justify",SVG_KEY:"alignJustify"}),be.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var e='"},callback:function(e,t){this.image.align(t)},refresh:function(e){this.image.refreshAlign(e)},refreshOnShow:function(e,t){this.image.refreshAlignOnShow(e,t)}}),be.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),be.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),be.DefineIcon("imageRemove",{NAME:"trash",SVG_KEY:"remove"}),be.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),be.DefineIcon("imageBack",{NAME:"arrow-left",SVG_KEY:"back"}),be.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(e){this.$;this.image.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),be.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),be.DefineIcon("imageStyle",{NAME:"magic",SVG_KEY:"imageClass"}),be.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var e='"},callback:function(e,t){this.image.applyStyle(t)},refreshOnShow:function(e,t){var a=this.$,n=this.image.getEl();n&&t.find(".fr-command").each(function(){var e=a(this).data("param1"),t=n.hasClass(e);a(this).toggleClass("fr-active",t).attr("aria-selected",t)})}}),be.DefineIcon("imageAlt",{NAME:"info",SVG_KEY:"imageAltText"}),be.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternative Text",callback:function(){this.image.showAltPopup()}}),be.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),be.DefineIcon("imageSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}),be.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),be.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),be.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt",SVG_KEY:"imageCaption"}),be.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(e){this.image.get()&&e.toggleClass("fr-active",this.image.hasCaption())}}),Object.assign(be.DEFAULTS,{imageManagerLoadURL:"https://i.froala.com/load-files",imageManagerLoadMethod:"get",imageManagerLoadParams:{},imageManagerPreloader:null,imageManagerDeleteURL:"",imageManagerDeleteMethod:"post",imageManagerDeleteParams:{},imageManagerPageSize:12,imageManagerScrollOffset:20,imageManagerToggleTags:!0}),be.PLUGINS.imageManager=function(o){var l,c,n,r,i,d,s,f,p,u,h,g=o.$,m="image_manager",e=10,v=11,E=12,b=13,A=14,T=15,a=21,C=22,R={};function S(){var e=g(window).outerWidth();return e<768?2:e<1200?3:4}function L(){i.empty();for(var e=0;e')}function _(){if(pi.outerHeight()-n.outerHeight())){f++;for(var e=o.opts.imageManagerPageSize*(f-1);e'+e[t]+"");a.attr("data-tag",e.join())}else 0===d.find('a[title="'+r.tag.trim()+'"]').length&&d.append(''+r.tag.trim()+""),a.attr("data-tag",r.tag.trim());for(var n in r.name&&a.attr("alt",r.name),r)r.hasOwnProperty(n)&&"thumb"!==n&&"url"!==n&&"tag"!==n&&a.attr("data-"+n,r[n]);s.append(a).append(g(o.icon.create("imageManagerDelete")).addClass("fr-delete-img").attr("title",o.language.translate("Delete"))).append(g(o.icon.create("imageManagerInsert")).addClass("fr-insert-img").attr("title",o.language.translate("Insert"))),d.find(".fr-selected-tag").each(function(e,t){P(a,t.text)||s.hide()}),a.on("load",function(){s.removeClass("fr-empty"),s.height("auto"),p++,I(y(parseInt(a.parent().attr("class").match(/fr-image-(\d+)/)[1],10)+1)),O(!1),p%o.opts.imageManagerPageSize==0&&_()}),o.events.trigger("imageManager.imageLoaded",[a])},i.onerror=function(){p++,s.remove(),I(y(parseInt(s.attr("class").match(/fr-image-(\d+)/)[1],10)+1)),N(e,r),p%o.opts.imageManagerPageSize==0&&_()},i.src=r.thumb||r.url,w().append(s)}function w(){var n,r;return i.find(".fr-list-column").each(function(e,t){var a=g(t);0===e?(r=a.outerHeight(),n=a):a.outerHeight() a").each(function(){0===l.find('#fr-image-list [data-tag*="'+g(this).text()+'"]').length&&g(this).removeClass("fr-selected-tag").hide()}),M(),O(!0)},fail:function(e){N(a,e.response||e.responseText)}})):N(C))}function N(e,t){10<=e&&e<20?r.hide():20<=e&&e<30&&g(".fr-image-deleting").removeClass("fr-image-deleting"),o.events.trigger("imageManager.error",[{code:e,message:R[e]},t])}function D(){var e=c.find(".fr-modal-head-line").outerHeight(),t=d.outerHeight();c.toggleClass("fr-show-tags"),c.hasClass("fr-show-tags")?(c.css("height",e+t),n.css("marginTop",e+t),d.find("a").css("opacity",1)):(c.css("height",e),n.css("marginTop",e),d.find("a").css("opacity",0))}function M(){var e=d.find(".fr-selected-tag");0

').concat(o.language.translate("Manage Images"),'

\n
');e=o.opts.imageManagerPreloader?'':'",e+='
';var a=o.modals.create(m,t,e);l=a.$modal,c=a.$head,n=a.$body}l.data("current-image",o.image.get()),o.modals.show(m),r||(r=l.find("#fr-preloader"),i=l.find("#fr-image-list"),d=l.find("#fr-modal-tags"),h=S(),L(),c.css("height",c.find(".fr-modal-head-line").outerHeight()),o.events.$on(g(o.o_win),"resize",function(){O(!!s)}),o.events.bindClick(i,".fr-insert-img",F),o.events.bindClick(i,".fr-delete-img",k),o.helpers.isMobile()&&(o.events.bindClick(i,"div.fr-image-container",function(e){l.find(".fr-mobile-selected").removeClass("fr-mobile-selected"),g(e.currentTarget).addClass("fr-mobile-selected")}),l.on(o._mousedown,function(){l.find(".fr-mobile-selected").removeClass("fr-mobile-selected")})),l.on(o._mousedown+" "+o._mouseup,function(e){e.stopPropagation()}),l.on(o._mousedown,"*",function(){o.events.disableBlur()}),n.on("scroll",_),o.events.bindClick(l,"button#fr-modal-more-"+o.sid,D),o.events.bindClick(d,"a",B)),function(){r.show(),i.find(".fr-list-column").empty(),o.opts.imageManagerLoadURL?g(this).ajax({url:o.opts.imageManagerLoadURL,method:o.opts.imageManagerLoadMethod,data:o.opts.imageManagerLoadParams,dataType:"json",crossDomain:o.opts.requestWithCORS,withCredentials:o.opts.requestWithCredentials,headers:o.opts.requestHeaders,done:function(e,t,a){o.events.trigger("imageManager.imagesLoaded",[e]),function(e,t){try{i.find(".fr-list-column").empty(),u=p=f=0,s=e,_()}catch(a){N(b,t)}}(e,a.response),r.hide()},fail:function(e){N(v,e.response||e.responseText)}}):N(E)}()},hide:function(){o.modals.hide(m)}}},!be.PLUGINS.image)throw new Error("Image manager plugin requires image plugin.");be.DEFAULTS.imageInsertButtons.push("imageManager"),be.RegisterCommand("imageManager",{title:"Browse",undo:!1,focus:!1,modal:!0,callback:function(){this.imageManager.show()},plugin:"imageManager"}),be.DefineIcon("imageManager",{NAME:"folder",SVG_KEY:"imageManager"}),be.DefineIcon("imageManagerInsert",{NAME:"plus",SVG_KEY:"add"}),be.DefineIcon("imageManagerDelete",{NAME:"trash",SVG_KEY:"remove"}),Object.assign(be.DEFAULTS,{inlineClasses:{"fr-class-code":"Code","fr-class-highlighted":"Highlighted","fr-class-transparency":"Transparent"}}),be.PLUGINS.inlineClass=function(a){var n=a.$;return{apply:function(e){a.format.toggle("span",{"class":e})},refreshOnShow:function(e,t){t.find(".fr-command").each(function(){var e=n(this).data("param1"),t=a.format.is("span",{"class":e});n(this).toggleClass("fr-active",t).attr("aria-selected",t)})}}},be.RegisterCommand("inlineClass",{type:"dropdown",title:"Inline Class",html:function(){var e='"},callback:function(e,t){this.inlineClass.apply(t)},refreshOnShow:function(e,t){this.inlineClass.refreshOnShow(e,t)},plugin:"inlineClass"}),be.DefineIcon("inlineClass",{NAME:"tag",SVG_KEY:"inlineClass"}),Object.assign(be.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),be.PLUGINS.inlineStyle=function(r){return{apply:function(e){if(""!==r.selection.text())for(var t=e.split(";"),a=0;a'+be.INVISIBLE_SPACE+be.MARKERS+"")}}},be.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var e='"},title:"Inline Style",callback:function(e,t){this.inlineStyle.apply(t)},plugin:"inlineStyle"}),be.DefineIcon("inlineStyle",{NAME:"paint-brush",SVG_KEY:"inlineStyle"}),Object.assign(be.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),be.PLUGINS.lineBreaker=function(h){var g,t,r,m=h.$;function o(e,t){var a,n,r,i,s,o,l,c;if(null==e)s=(i=t.parent()).offset().top,a=(l=t.offset().top)-Math.min((l-s)/2,h.opts.lineBreakerOffset),r=i.outerWidth(),n=i.offset().left;else if(null==t)(o=(i=e.parent()).offset().top+i.outerHeight())<(c=e.offset().top+e.outerHeight())&&(o=(i=m(i).parent()).offset().top+i.outerHeight()),a=c+Math.min(Math.abs(o-c)/2,h.opts.lineBreakerOffset),r=i.outerWidth(),n=i.offset().left;else{i=e.parent();var d=e.offset().top+e.height(),f=t.offset().top;if(fh.$box.offset().left&&e"+be.MARKERS+"
"):n.before(be.MARKERS+"
"):r&&"TD"!=a.parent().get(0).tagName&&0===a.parents(r).length?a.after("<"+r+">"+be.MARKERS+"
"):a.after(be.MARKERS+"
"),t.selection.restore()}return{_init:function(){if(!h.$wp)return!1;h.shared.$line_breaker||(h.shared.$line_breaker=m(document.createElement("div")).attr("class","fr-line-breaker").html('')),g=h.shared.$line_breaker,h.events.on("shared.destroy",function(){g.html("").removeData().remove(),g=null},!0),h.events.on("destroy",function(){g.removeData("instance").removeClass("fr-visible"),m("body").first().append(g),clearTimeout(r)},!0),h.events.$on(g,"mousemove",function(e){e.stopPropagation()},!0),h.events.bindClick(g,"a",p),t=!1,h.events.$on(h.$win,"mousemove",e),h.events.$on(m(h.win),"scroll",n),h.events.on("popups.show.table.edit",n),h.events.on("commands.after",n),h.events.$on(m(h.win),"mousedown",d),h.events.$on(m(h.win),"mouseup",f)}}},Object.assign(be.DEFAULTS,{lineHeights:{Default:"",Single:"1",1.15:"1.15",1.5:"1.5",Double:"2"}}),be.PLUGINS.lineHeight=function(r){var i=r.$;return{_init:function(){},apply:function(e){r.selection.save(),r.html.wrap(!0,!0,!0,!0),r.selection.restore();var t=r.selection.blocks();r.selection.save();for(var a=0;a'+this.language.translate(a)+"");return e+=""},title:"Line Height",callback:function(e,t){this.lineHeight.apply(t)},refreshOnShow:function(e,t){this.lineHeight.refreshOnShow(e,t)},plugin:"lineHeight"}),be.DefineIcon("lineHeight",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"lineHeight"}),Object.assign(be.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),Object.assign(be.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),be.PLUGINS.link=function(f){var p=f.$;function u(){var e=f.image?f.image.get():null;if(!e&&f.$wp){var t=f.selection.ranges(0).commonAncestorContainer;try{t&&(t.contains&&t.contains(f.el)||!f.el.contains(t)||f.el==t)&&(t=null)}catch(r){t=null}if(t&&"A"===t.tagName)return t;var a=f.selection.element(),n=f.selection.endElement();"A"==a.tagName||f.node.isElement(a)||(a=p(a).parentsUntil(f.$el,"a").first().get(0)),"A"==n.tagName||f.node.isElement(n)||(n=p(n).parentsUntil(f.$el,"a").first().get(0));try{n&&(n.contains&&n.contains(f.el)||!f.el.contains(n)||f.el==n)&&(n=null)}catch(r){n=null}try{a&&(a.contains&&a.contains(f.el)||!f.el.contains(a)||f.el==a)&&(a=null)}catch(r){a=null}return n&&n==a&&"A"==n.tagName?(f.browser.msie||f.helpers.isMobile())&&(f.selection.info(a).atEnd||f.selection.info(a).atStart)?null:a:null}return"A"==f.el.tagName?f.el:e&&e.get(0).parentNode&&"A"==e.get(0).parentNode.tagName?e.get(0).parentNode:void 0}function h(){var e,t,a,n,r=f.image?f.image.get():null,i=[];if(r)"A"==r.get(0).parentNode.tagName&&i.push(r.get(0).parentNode);else if(f.win.getSelection){var s=f.win.getSelection();if(s.getRangeAt&&s.rangeCount){n=f.doc.createRange();for(var o=0;o'.concat(f.button.buildList(f.opts.linkEditButtons),"
"));var t={buttons:e},a=f.popups.create("link.edit",t);f.$wp&&f.events.$on(f.$wp,"scroll.link-edit",function(){u()&&f.popups.isVisible("link.edit")&&i(u())});return a}());var a=p(e);f.popups.isVisible("link.edit")||f.popups.refresh("link.edit"),f.popups.setContainer("link.edit",f.$sc);var n=a.offset().left+a.outerWidth()/2,r=a.offset().top+a.outerHeight();f.popups.show("link.edit",n,r,a.outerHeight(),!0)}function s(){f.popups.hide("link.edit")}function l(){var e=f.popups.get("link.insert"),t=u();if(t){var a,n,r=p(t),i=e.find('input.fr-link-attr[type="text"]'),s=e.find('input.fr-link-attr[type="checkbox"]');for(a=0;a'+f.button.buildList(f.opts.linkInsertButtons)+"");var a="",n=0;for(var r in a='"},o=f.popups.create("link.insert",s);return f.$wp&&f.events.$on(f.$wp,"scroll.link-insert",function(){(f.image?f.image.get():null)&&f.popups.isVisible("link.insert")&&m(),f.popups.isVisible("link.insert")&&d()}),o}function c(e,t,a){if(void 0===a&&(a={}),!1===f.events.trigger("link.beforeInsert",[e,t,a]))return!1;var n=f.image?f.image.get():null;n||"A"==f.el.tagName?"A"==f.el.tagName&&f.$el.focus():(f.selection.restore(),f.popups.hide("link.insert"));var r=e;f.opts.linkConvertEmailAddress&&f.helpers.isEmail(e)&&!/^mailto:.*/i.test(e)&&(e="mailto:"+e);if(""===f.opts.linkAutoPrefix||new RegExp("^("+be.LinkProtocols.join("|")+"):.","i").test(e)||/^data:image.*/i.test(e)||/^(https?:|ftps?:|file:|)\/\//i.test(e)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(e)||["/","{","[","#","(","."].indexOf((e||"")[0])<0&&(e=f.opts.linkAutoPrefix+f.helpers.sanitizeURL(e)),e=f.helpers.sanitizeURL(e),f.opts.linkAlwaysBlank&&(a.target="_blank"),f.opts.linkAlwaysNoFollow&&(a.rel="nofollow"),f.helpers.isEmail(r)&&(a.target=null,a.rel=null),"_blank"==a.target?(f.opts.linkNoOpener&&(a.rel?a.rel+=" noopener":a.rel="noopener"),f.opts.linkNoReferrer&&(a.rel?a.rel+=" noreferrer":a.rel="noreferrer")):null==a.target&&(a.rel?a.rel=a.rel.replace(/noopener/,"").replace(/noreferrer/,""):a.rel=null),t=t||"",e===f.opts.linkAutoPrefix)return f.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),f.events.trigger("link.bad",[r]),!1;var i,s=u();if(s){if((i=p(s)).attr("href",e),0'),f.image.hasCaption()&&n.parent().append(n.parents(".fr-img-caption").find(".fr-inner"))):(f.format.remove("a"),f.selection.isCollapsed()?(t=0===t.length?r:t,f.html.insert(''+be.START_MARKER+t.replace(/&/g,"&").replace(/",">")+be.END_MARKER+""),f.selection.restore()):0'+be.START_MARKER+t.replace(/&/g,"&")+be.END_MARKER+""),f.selection.restore()):(!function(){if(!f.selection.isCollapsed()){f.selection.save();for(var e=f.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();e.length;){var t=p(e.pop());t.removeClass("fr-unprocessed");var a=f.node.deepestParent(t.get(0));if(a){for(var n=t.get(0),r="",i="";n=n.parentNode,f.node.isBlock(n)||(r+=f.node.closeTagString(n),i=f.node.openTagString(n)+i),n!=a;);var s=f.node.openTagString(t.get(0))+t.html()+f.node.closeTagString(t.get(0));t.replaceWith('');var o=a.outerHTML;o=(o=o.replace(/<\/span>/g,r+s+i)).replace(i+r,""),a.outerHTML=o}e=f.$el.find(".fr-marker.fr-unprocessed").toArray()}f.html.cleanEmptyTags(),f.selection.restore()}}(),f.format.apply("a",{href:e})));for(var l=h(),c=0;c'+(t[a].displayText||t[a].text)+"";return e+=""},callback:function(e,t){this.link.usePredefined(t)},plugin:"link"}),be.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){this.link.get()?e.text(this.language.translate("Update")):e.text(this.language.translate("Insert"))},plugin:"link"}),be.DefineIcon("imageLink",{NAME:"link",SVG_KEY:"insertLink"}),be.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var t;this.link.get()?((t=e.prev()).hasClass("fr-separator")&&t.removeClass("fr-hidden"),e.addClass("fr-hidden")):((t=e.prev()).hasClass("fr-separator")&&t.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),be.DefineIcon("linkStyle",{NAME:"magic",SVG_KEY:"linkStyles"}),be.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e='"},callback:function(e,t){this.link.applyStyle(t)},refreshOnShow:function(e,t){var a=this.$,n=this.link.get();if(n){var r=a(n);t.find(".fr-command").each(function(){var e=a(this).data("param1"),t=r.hasClass(e);a(this).toggleClass("fr-active",t).attr("aria-selected",t)})}},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),Object.assign(be.DEFAULTS,{listAdvancedTypes:!0}),be.PLUGINS.lists=function(f){var p=f.$;function u(e){return''}function h(e){return''}function r(e,t){!function(e,t){for(var a=[],n=0;n"+s.html()+"")}}(e,t);var a,n=f.html.defaultTag(),r=null;e.length&&(a="rtl"==f.opts.direction||"rtl"==p(e[0]).css("direction")?"margin-right":"margin-left");for(var i=0;i':"<"+t+">",l="";for(s-=r;0",l+=l,s-=f.opts.indentMargin;n&&e[i].tagName.toLowerCase()==n?p(e[i]).replaceWith(o+""+p(e[i]).html()+""+l):p(e[i]).wrap(o+"
  • "+l)}f.clean.lists()}function i(e){var t,a;for(t=e.length-1;0<=t;t--)for(a=t-1;0<=a;a--)if(p(e[a]).find(e[t]).length||e[a]==e[t]){e.splice(t,1);break}var n=[];for(t=0;t"),r.append(u("LI")),r.prepend(h("LI"))}r.after(u(i.tagName)),"LI"==i.parentNode.tagName&&(i=i.parentNode.parentNode),n.indexOf(i)<0&&n.push(i)}for(t=0;t<\/span>/g,"")).replace(/<\/span>/g,"<$1>"),c.replaceWith(f.node.openTagString(c.get(0))+d+f.node.closeTagString(c.get(0)))}f.$el.find("li:empty").remove(),f.$el.find("ul:empty, ol:empty").remove(),f.clean.lists(),f.html.wrap()}function s(e){f.selection.save();for(var t=0;t ul, ol").last().get(0);if(n){var r=p(document.createElement("li"));p(n).prepend(r);for(var i=f.node.contents(e[t])[0];i&&!f.node.isList(i);){var s=i.nextSibling;r.append(i),i=s}p(a).append(p(n)),p(e[t]).remove()}else{var o=p(a).find("> ul, ol").last().get(0);if(o)p(o).append(p(e[t]));else{var l=p("<"+e[t].parentNode.tagName+">");p(a).append(l),l.append(p(e[t]))}}}}f.clean.lists(),f.selection.restore()}function o(e){f.selection.save(),i(e),f.selection.restore()}function e(e){if("indent"==e||"outdent"==e){for(var t=!1,a=f.selection.blocks(),n=[],r=0;r");e.prepend(n);for(var r=p.node.contents(e.get(0))[0];r&&["UL","OL"].indexOf(r.tagName)<0;){var i=r.nextSibling;n.append(r),r=i}}else e.html("<"+t+">"+e.html()+"")}return{apply:function(e){"N"==e&&(e=p.html.defaultTag()),p.selection.save(),p.html.wrap(!0,!0,!p.opts.paragraphFormat.BLOCKQUOTE,!0,!0),p.selection.restore();var t,a,n,r,i,s,o,l,c=p.selection.blocks();p.selection.save(),p.$el.find("pre").attr("skip",!0);for(var d=0;d").html(s.html()))):0<=["TD","TH"].indexOf(c[d].parentNode.tagName)?(n=f,r=e,i=p.html.defaultTag(),r||(r='div class="fr-temp-div"'+(p.node.isEmpty(n.get(0),!0)?' data-empty="true"':"")),r.toLowerCase()==i?(p.node.isEmpty(n.get(0),!0)||n.append("
    "),n.replaceWith(n.html())):n.replaceWith(u("<"+r+">").html(n.html()))):(t=f,(a=e)||(a='div class="fr-temp-div"'+(p.node.isEmpty(t.get(0),!0)?' data-empty="true"':"")),t.replaceWith(u("<"+a+" "+p.node.attributes(t.get(0))+">").html(t.html()).removeAttr("data-empty")))}p.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){u(this).prev().append("
    "+u(this).html()),u(this).remove()}),p.$el.find("pre").removeAttr("skip"),p.html.unwrap(),p.selection.restore()},refreshOnShow:function(e,t){var a=p.selection.blocks();if(a.length){var n=a[0],r="N",i=p.html.defaultTag();n.tagName.toLowerCase()!=i&&n!=p.el&&(r=n.tagName),t.find('.fr-command[data-param1="'+r+'"]').addClass("fr-active").attr("aria-selected",!0)}else t.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(e){if(p.opts.paragraphFormatSelection){var t=p.selection.blocks();if(t.length){var a=t[0],n="N",r=p.html.defaultTag();a.tagName.toLowerCase()!=r&&a!=p.el&&(n=a.tagName),0<=["LI","TD","TH"].indexOf(n)&&(n="N"),e.find(">span").text(p.language.translate(p.opts.paragraphFormat[n]))}else e.find(">span").text(p.language.translate(p.opts.paragraphFormat.N))}}}},be.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(e){return e.opts.paragraphFormatSelection},defaultSelection:function(e){return e.language.translate(e.opts.paragraphDefaultSelection)},displaySelectionWidth:80,html:function(){var e='"},title:"Paragraph Format",callback:function(e,t){this.paragraphFormat.apply(t)},refresh:function(e){this.paragraphFormat.refresh(e)},refreshOnShow:function(e,t){this.paragraphFormat.refreshOnShow(e,t)},plugin:"paragraphFormat"}),be.DefineIcon("paragraphFormat",{NAME:"paragraph",SVG_KEY:"paragraphFormat"}),Object.assign(be.DEFAULTS,{paragraphStyles:{"fr-text-gray":"Gray","fr-text-bordered":"Bordered","fr-text-spaced":"Spaced","fr-text-uppercase":"Uppercase"},paragraphMultipleStyles:!0}),be.PLUGINS.paragraphStyle=function(o){var l=o.$;return{_init:function(){},apply:function(e,t,a){void 0===t&&(t=o.opts.paragraphStyles),void 0===a&&(a=o.opts.paragraphMultipleStyles);var n="";a||((n=Object.keys(t)).splice(n.indexOf(e),1),n=n.join(" ")),o.selection.save(),o.html.wrap(!0,!0,!0,!0),o.selection.restore();var r=o.selection.blocks();o.selection.save();for(var i=l(r[0]).hasClass(e),s=0;s'+this.language.translate(t[a])+"");return e+=""},title:"Paragraph Style",callback:function(e,t){this.paragraphStyle.apply(t)},refreshOnShow:function(e,t){this.paragraphStyle.refreshOnShow(e,t)},plugin:"paragraphStyle"}),be.DefineIcon("paragraphStyle",{NAME:"magic",SVG_KEY:"paragraphStyle"}),Object.assign(be.DEFAULTS,{html2pdf:window.html2pdf}),be.PLUGINS.print=function(o){return{run:function(){!function(t){var a=o.$el.html(),n=null;o.shared.print_iframe?n=o.shared.print_iframe:((n=document.createElement("iframe")).name="fr-print",n.style.position="fixed",n.style.top="0",n.style.left="-9999px",n.style.height="100%",n.style.width="0",n.style.overflow="hidden",n.style["z-index"]="2147483647",n.style.tabIndex="-1",o.events.on("shared.destroy",function(){n.remove()}),o.shared.print_iframe=n);try{document.body.removeChild(n)}catch(s){}document.body.appendChild(n),n.addEventListener("load",function e(){t(),n.removeEventListener("load",e)});var r=n.contentWindow;r.document.open(),r.document.write(""+document.title+""),Array.prototype.forEach.call(document.querySelectorAll("style"),function(e){e=e.cloneNode(!0),r.document.write(e.outerHTML)});var i=document.querySelectorAll("link[rel=stylesheet]");Array.prototype.forEach.call(i,function(e){var t=document.createElement("link");t.rel=e.rel,t.href=e.href,t.media="print",t.type="text/css",t.media="all",r.document.write(t.outerHTML)}),r.document.write('
    '),r.document.write(a),r.document.write("
    "),r.document.close()}(function(){setTimeout(function(){o.events.disableBlur(),window.frames["fr-print"].focus(),window.frames["fr-print"].print(),o.$win.get(0).focus(),o.events.disableBlur(),o.events.focus()},0)})},toPDF:function(){o.opts.html2pdf&&(o.$el.css("text-align","left"),o.opts.html2pdf().set({margin:[10,20],html2canvas:{useCORS:!0}}).from(o.el).save(),setTimeout(function(){o.$el.css("text-align","")},100))}}},be.DefineIcon("print",{NAME:"print",SVG_KEY:"print"}),be.RegisterCommand("print",{title:"Print",undo:!1,focus:!1,plugin:"print",callback:function(){this.print.run()}}),be.DefineIcon("getPDF",{NAME:"file-pdf-o",FA5NAME:"file-pdf",SVG_KEY:"pdfExport"}),be.RegisterCommand("getPDF",{title:"Download PDF",type:"button",focus:!1,undo:!1,callback:function(){this.print.toPDF()}}),Object.assign(be.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"],quickInsertEnabled:!0}),be.QUICK_INSERT_BUTTONS={},be.DefineIcon("quickInsert",{SVG_KEY:"add",template:"svg"}),be.RegisterQuickInsertButton=function(e,t){be.QUICK_INSERT_BUTTONS[e]=Object.assign({undo:!0},t)},be.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var e=this,t=e.$;e.shared.$qi_image_input||(e.shared.$qi_image_input=t(document.createElement("input")).attr("accept","image/"+e.opts.imageAllowedTypes.join(", image/").toLowerCase()).attr("name","quickInsertImage"+this.id).attr("style","display: none;").attr("type","file"),t("body").first().append(e.shared.$qi_image_input),e.events.$on(e.shared.$qi_image_input,"change",function(){var e=t(this).data("inst");this.files&&(e.quickInsert.hide(),e.image.upload(this.files)),t(this).val("")},!0)),e.$qi_image_input=e.shared.$qi_image_input,e.helpers.isMobile()&&e.selection.save(),e.events.disableBlur(),e.$qi_image_input.data("inst",e)[0].click()}}),be.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of the video you want to insert."));e&&this.video.insertByURL(e)}}),be.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of any web content you want to insert."));e&&this.embedly.add(e)}}),be.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),be.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),be.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),be.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),be.PLUGINS.quickInsert=function(s){var o,l,c=s.$;function t(e){var t,a,n;(t=e.offset().top-s.$box.offset().top,a=(s.$iframe&&s.$iframe.offset().left||0)+e.offset().left'+s.icon.create("quickInsert")+""));o=s.shared.$quick_insert,s.tooltip.bind(s.$box,".fr-quick-insert > a.fr-floating-btn"),s.events.on("destroy",function(){c("body").first().append(o.removeClass("fr-on")).css("left",-9999).css("top",-9999),l&&(d(),c("body").first().append(l))},!0),s.events.on("shared.destroy",function(){o.html("").removeData().remove(),o=null,l&&(l.html("").removeData().remove(),l=null)},!0),s.events.on("commands.before",r),s.events.on("commands.after",function(){s.popups.areVisible()||n()}),s.events.bindClick(s.$box,".fr-quick-insert > a",i),s.events.bindClick(s.$box,".fr-qi-helper > a.fr-btn",function(e){var t=c(e.currentTarget).data("cmd");if(!1===s.events.trigger("quickInsert.commands.before",[t]))return!1;be.QUICK_INSERT_BUTTONS[t].callback.apply(s,[e.currentTarget]),be.QUICK_INSERT_BUTTONS[t].undo&&s.undo.saveStep(),s.events.trigger("quickInsert.commands.after",[t]),s.quickInsert.hide()}),s.events.$on(s.$wp,"scroll",f),s.events.$on(s.$tb,"transitionend",".fr-more-toolbar",f)}(),o.hasClass("fr-on")&&d(),s.$box.append(o),t(e),o.data("tag",e),o.addClass("fr-visible")}function n(){if(s.core.hasFocus()){var e=s.selection.element();if(s.opts.enter==be.ENTER_BR||s.node.isBlock(e)||(e=s.node.blockParent(e)),s.opts.enter==be.ENTER_BR&&!s.node.isBlock(e)){var t=s.node.deepestParent(e);t&&(e=t)}e&&(s.opts.enter!=be.ENTER_BR&&s.node.isEmpty(e)&&0<=s.opts.quickInsertTags.indexOf(e.tagName.toLowerCase())||s.opts.enter==be.ENTER_BR&&("BR"==e.tagName&&(!e.previousSibling||"BR"==e.previousSibling.tagName||s.node.isBlock(e.previousSibling))||s.node.isEmpty(e)&&(!e.previousSibling||"BR"==e.previousSibling.tagName||s.node.isBlock(e.previousSibling))&&(!e.nextSibling||"BR"==e.nextSibling.tagName||s.node.isBlock(e.nextSibling))))?o&&o.data("tag").is(c(e))&&o.hasClass("fr-on")?d():s.selection.isCollapsed()&&a(c(e)):r()}}function r(){o&&(o.hasClass("fr-on")&&d(),o.removeClass("fr-visible fr-on"),o.css("left",-9999).css("top",-9999))}function i(e){if(e&&e.preventDefault(),o.hasClass("fr-on")&&!o.hasClass("fr-hidden"))d();else{if(!s.shared.$qi_helper){for(var t=s.opts.quickInsertButtons,a='
    ',n=0,r=0;r'+s.icon.create(i.icon)+"")}a+="
    ",s.shared.$qi_helper=c(a),s.tooltip.bind(s.shared.$qi_helper,"a.fr-btn"),s.events.$on(s.shared.$qi_helper,"mousedown",function(e){e.preventDefault()},!0)}l=s.shared.$qi_helper,s.$box.append(l),setTimeout(function(){l.css("top",parseFloat(o.css("top"))),l.css("left",parseFloat(o.css("left"))+o.outerWidth()),l.find("a").addClass("fr-size-1"),o.addClass("fr-on")},10)}}function d(){var a=s.$box.find(".fr-qi-helper");a.length&&function(){for(var t=a.find("a"),e=0;e'+this.language.translate(t[a])+(n?''+n+"":"")+""}return e+=""},callback:function(e,t){this.quote.apply(t)},plugin:"quote"}),be.DefineIcon("quote",{NAME:"quote-left",SVG_KEY:"blockquote"}),Object.assign(be.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),be.PLUGINS.save=function(o){var l=o.$,e=null,c=null,t=!1,d=1,f=2,a={};function p(e,t){o.events.trigger("save.error",[{code:e,message:a[e]},t])}function n(e){void 0===e&&(e=o.html.get());var n=e,t=o.events.trigger("save.before",[e]);if(!1===t)return!1;if("string"==typeof t&&(e=t),o.opts.saveURL){var a={};for(var r in o.opts.saveParams)if(o.opts.saveParams.hasOwnProperty(r)){var i=o.opts.saveParams[r];a[r]="function"==typeof i?i.call(this):i}var s={};s[o.opts.saveParam]=e,l(this).ajax({method:o.opts.saveMethod,url:o.opts.saveURL,data:Object.assign(s,a),crossDomain:o.opts.requestWithCORS,withCredentials:o.opts.requestWithCredentials,headers:o.opts.requestHeaders,done:function(e,t,a){c=n,o.events.trigger("save.after",[e])},fail:function(e){p(f,e.response||e.responseText)}})}else p(d)}function r(){clearTimeout(e),e=setTimeout(function(){var e=o.html.get();(c!=e||t)&&(t=!1,n(c=e))},o.opts.saveInterval)}return a[d]="Missing saveURL option.",a[f]="Something went wrong during save.",{_init:function(){o.opts.saveInterval&&(c=o.html.get(),o.events.on("contentChanged",r),o.events.on("keydown destroy",function(){clearTimeout(e)}))},save:n,reset:function(){r(),t=!1},force:function(){t=!0}}},be.DefineIcon("save",{NAME:"floppy-o",FA5NAME:"save"}),be.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"}),Object.assign(be.DEFAULTS,{specialCharactersSets:[{title:"Latin","char":"¡",list:[{"char":"¡",desc:"INVERTED EXCLAMATION MARK"},{"char":"¢",desc:"CENT SIGN"},{"char":"£",desc:"POUND SIGN"},{"char":"¤",desc:"CURRENCY SIGN"},{"char":"¥",desc:"YEN SIGN"},{"char":"¦",desc:"BROKEN BAR"},{"char":"§",desc:"SECTION SIGN"},{"char":"¨",desc:"DIAERESIS"},{"char":"©",desc:"COPYRIGHT SIGN"},{"char":"™",desc:"TRADEMARK SIGN"},{"char":"ª",desc:"FEMININE ORDINAL INDICATOR"},{"char":"«",desc:"LEFT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"¬",desc:"NOT SIGN"},{"char":"®",desc:"REGISTERED SIGN"},{"char":"¯",desc:"MACRON"},{"char":"°",desc:"DEGREE SIGN"},{"char":"±",desc:"PLUS-MINUS SIGN"},{"char":"²",desc:"SUPERSCRIPT TWO"},{"char":"³",desc:"SUPERSCRIPT THREE"},{"char":"´",desc:"ACUTE ACCENT"},{"char":"µ",desc:"MICRO SIGN"},{"char":"¶",desc:"PILCROW SIGN"},{"char":"·",desc:"MIDDLE DOT"},{"char":"¸",desc:"CEDILLA"},{"char":"¹",desc:"SUPERSCRIPT ONE"},{"char":"º",desc:"MASCULINE ORDINAL INDICATOR"},{"char":"»",desc:"RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK"},{"char":"¼",desc:"VULGAR FRACTION ONE QUARTER"},{"char":"½",desc:"VULGAR FRACTION ONE HALF"},{"char":"¾",desc:"VULGAR FRACTION THREE QUARTERS"},{"char":"¿",desc:"INVERTED QUESTION MARK"},{"char":"À",desc:"LATIN CAPITAL LETTER A WITH GRAVE"},{"char":"Á",desc:"LATIN CAPITAL LETTER A WITH ACUTE"},{"char":"Â",desc:"LATIN CAPITAL LETTER A WITH CIRCUMFLEX"},{"char":"Ã",desc:"LATIN CAPITAL LETTER A WITH TILDE"},{"char":"Ä",desc:"LATIN CAPITAL LETTER A WITH DIAERESIS "},{"char":"Å",desc:"LATIN CAPITAL LETTER A WITH RING ABOVE"},{"char":"Æ",desc:"LATIN CAPITAL LETTER AE"},{"char":"Ç",desc:"LATIN CAPITAL LETTER C WITH CEDILLA"},{"char":"È",desc:"LATIN CAPITAL LETTER E WITH GRAVE"},{"char":"É",desc:"LATIN CAPITAL LETTER E WITH ACUTE"},{"char":"Ê",desc:"LATIN CAPITAL LETTER E WITH CIRCUMFLEX"},{"char":"Ë",desc:"LATIN CAPITAL LETTER E WITH DIAERESIS"},{"char":"Ì",desc:"LATIN CAPITAL LETTER I WITH GRAVE"},{"char":"Í",desc:"LATIN CAPITAL LETTER I WITH ACUTE"},{"char":"Î",desc:"LATIN CAPITAL LETTER I WITH CIRCUMFLEX"},{"char":"Ï",desc:"LATIN CAPITAL LETTER I WITH DIAERESIS"},{"char":"Ð",desc:"LATIN CAPITAL LETTER ETH"},{"char":"Ñ",desc:"LATIN CAPITAL LETTER N WITH TILDE"},{"char":"Ò",desc:"LATIN CAPITAL LETTER O WITH GRAVE"},{"char":"Ó",desc:"LATIN CAPITAL LETTER O WITH ACUTE"},{"char":"Ô",desc:"LATIN CAPITAL LETTER O WITH CIRCUMFLEX"},{"char":"Õ",desc:"LATIN CAPITAL LETTER O WITH TILDE"},{"char":"Ö",desc:"LATIN CAPITAL LETTER O WITH DIAERESIS"},{"char":"×",desc:"MULTIPLICATION SIGN"},{"char":"Ø",desc:"LATIN CAPITAL LETTER O WITH STROKE"},{"char":"Ù",desc:"LATIN CAPITAL LETTER U WITH GRAVE"},{"char":"Ú",desc:"LATIN CAPITAL LETTER U WITH ACUTE"},{"char":"Û",desc:"LATIN CAPITAL LETTER U WITH CIRCUMFLEX"},{"char":"Ü",desc:"LATIN CAPITAL LETTER U WITH DIAERESIS"},{"char":"Ý",desc:"LATIN CAPITAL LETTER Y WITH ACUTE"},{"char":"Þ",desc:"LATIN CAPITAL LETTER THORN"},{"char":"ß",desc:"LATIN SMALL LETTER SHARP S"},{"char":"à",desc:"LATIN SMALL LETTER A WITH GRAVE"},{"char":"á",desc:"LATIN SMALL LETTER A WITH ACUTE "},{"char":"â",desc:"LATIN SMALL LETTER A WITH CIRCUMFLEX"},{"char":"ã",desc:"LATIN SMALL LETTER A WITH TILDE"},{"char":"ä",desc:"LATIN SMALL LETTER A WITH DIAERESIS"},{"char":"å",desc:"LATIN SMALL LETTER A WITH RING ABOVE"},{"char":"æ",desc:"LATIN SMALL LETTER AE"},{"char":"ç",desc:"LATIN SMALL LETTER C WITH CEDILLA"},{"char":"è",desc:"LATIN SMALL LETTER E WITH GRAVE"},{"char":"é",desc:"LATIN SMALL LETTER E WITH ACUTE"},{"char":"ê",desc:"LATIN SMALL LETTER E WITH CIRCUMFLEX"},{"char":"ë",desc:"LATIN SMALL LETTER E WITH DIAERESIS"},{"char":"ì",desc:"LATIN SMALL LETTER I WITH GRAVE"},{"char":"í",desc:"LATIN SMALL LETTER I WITH ACUTE"},{"char":"î",desc:"LATIN SMALL LETTER I WITH CIRCUMFLEX"},{"char":"ï",desc:"LATIN SMALL LETTER I WITH DIAERESIS"},{"char":"ð",desc:"LATIN SMALL LETTER ETH"},{"char":"ñ",desc:"LATIN SMALL LETTER N WITH TILDE"},{"char":"ò",desc:"LATIN SMALL LETTER O WITH GRAVE"},{"char":"ó",desc:"LATIN SMALL LETTER O WITH ACUTE"},{"char":"ô",desc:"LATIN SMALL LETTER O WITH CIRCUMFLEX"},{"char":"õ",desc:"LATIN SMALL LETTER O WITH TILDE"},{"char":"ö",desc:"LATIN SMALL LETTER O WITH DIAERESIS"},{"char":"÷",desc:"DIVISION SIGN"},{"char":"ø",desc:"LATIN SMALL LETTER O WITH STROKE"},{"char":"ù",desc:"LATIN SMALL LETTER U WITH GRAVE"},{"char":"ú",desc:"LATIN SMALL LETTER U WITH ACUTE"},{"char":"û",desc:"LATIN SMALL LETTER U WITH CIRCUMFLEX"},{"char":"ü",desc:"LATIN SMALL LETTER U WITH DIAERESIS"},{"char":"ý",desc:"LATIN SMALL LETTER Y WITH ACUTE"},{"char":"þ",desc:"LATIN SMALL LETTER THORN"},{"char":"ÿ",desc:"LATIN SMALL LETTER Y WITH DIAERESIS"}]},{title:"Greek","char":"Α",list:[{"char":"Α",desc:"GREEK CAPITAL LETTER ALPHA"},{"char":"Β",desc:"GREEK CAPITAL LETTER BETA"},{"char":"Γ",desc:"GREEK CAPITAL LETTER GAMMA"},{"char":"Δ",desc:"GREEK CAPITAL LETTER DELTA"},{"char":"Ε",desc:"GREEK CAPITAL LETTER EPSILON"},{"char":"Ζ",desc:"GREEK CAPITAL LETTER ZETA"},{"char":"Η",desc:"GREEK CAPITAL LETTER ETA"},{"char":"Θ",desc:"GREEK CAPITAL LETTER THETA"},{"char":"Ι",desc:"GREEK CAPITAL LETTER IOTA"},{"char":"Κ",desc:"GREEK CAPITAL LETTER KAPPA"},{"char":"Λ",desc:"GREEK CAPITAL LETTER LAMBDA"},{"char":"Μ",desc:"GREEK CAPITAL LETTER MU"},{"char":"Ν",desc:"GREEK CAPITAL LETTER NU"},{"char":"Ξ",desc:"GREEK CAPITAL LETTER XI"},{"char":"Ο",desc:"GREEK CAPITAL LETTER OMICRON"},{"char":"Π",desc:"GREEK CAPITAL LETTER PI"},{"char":"Ρ",desc:"GREEK CAPITAL LETTER RHO"},{"char":"Σ",desc:"GREEK CAPITAL LETTER SIGMA"},{"char":"Τ",desc:"GREEK CAPITAL LETTER TAU"},{"char":"Υ",desc:"GREEK CAPITAL LETTER UPSILON"},{"char":"Φ",desc:"GREEK CAPITAL LETTER PHI"},{"char":"Χ",desc:"GREEK CAPITAL LETTER CHI"},{"char":"Ψ",desc:"GREEK CAPITAL LETTER PSI"},{"char":"Ω",desc:"GREEK CAPITAL LETTER OMEGA"},{"char":"α",desc:"GREEK SMALL LETTER ALPHA"},{"char":"β",desc:"GREEK SMALL LETTER BETA"},{"char":"γ",desc:"GREEK SMALL LETTER GAMMA"},{"char":"δ",desc:"GREEK SMALL LETTER DELTA"},{"char":"ε",desc:"GREEK SMALL LETTER EPSILON"},{"char":"ζ",desc:"GREEK SMALL LETTER ZETA"},{"char":"η",desc:"GREEK SMALL LETTER ETA"},{"char":"θ",desc:"GREEK SMALL LETTER THETA"},{"char":"ι",desc:"GREEK SMALL LETTER IOTA"},{"char":"κ",desc:"GREEK SMALL LETTER KAPPA"},{"char":"λ",desc:"GREEK SMALL LETTER LAMBDA"},{"char":"μ",desc:"GREEK SMALL LETTER MU"},{"char":"ν",desc:"GREEK SMALL LETTER NU"},{"char":"ξ",desc:"GREEK SMALL LETTER XI"},{"char":"ο",desc:"GREEK SMALL LETTER OMICRON"},{"char":"π",desc:"GREEK SMALL LETTER PI"},{"char":"ρ",desc:"GREEK SMALL LETTER RHO"},{"char":"ς",desc:"GREEK SMALL LETTER FINAL SIGMA"},{"char":"σ",desc:"GREEK SMALL LETTER SIGMA"},{"char":"τ",desc:"GREEK SMALL LETTER TAU"},{"char":"υ",desc:"GREEK SMALL LETTER UPSILON"},{"char":"φ",desc:"GREEK SMALL LETTER PHI"},{"char":"χ",desc:"GREEK SMALL LETTER CHI"},{"char":"ψ",desc:"GREEK SMALL LETTER PSI"},{"char":"ω",desc:"GREEK SMALL LETTER OMEGA"},{"char":"ϑ",desc:"GREEK THETA SYMBOL"},{"char":"ϒ",desc:"GREEK UPSILON WITH HOOK SYMBOL"},{"char":"ϕ",desc:"GREEK PHI SYMBOL"},{"char":"ϖ",desc:"GREEK PI SYMBOL"},{"char":"Ϝ",desc:"GREEK LETTER DIGAMMA"},{"char":"ϝ",desc:"GREEK SMALL LETTER DIGAMMA"},{"char":"ϰ",desc:"GREEK KAPPA SYMBOL"},{"char":"ϱ",desc:"GREEK RHO SYMBOL"},{"char":"ϵ",desc:"GREEK LUNATE EPSILON SYMBOL"},{"char":"϶",desc:"GREEK REVERSED LUNATE EPSILON SYMBOL"}]},{title:"Cyrillic","char":"Ѐ",list:[{"char":"Ѐ",desc:"CYRILLIC CAPITAL LETTER IE WITH GRAVE"},{"char":"Ё",desc:"CYRILLIC CAPITAL LETTER IO"},{"char":"Ђ",desc:"CYRILLIC CAPITAL LETTER DJE"},{"char":"Ѓ",desc:"CYRILLIC CAPITAL LETTER GJE"},{"char":"Є",desc:"CYRILLIC CAPITAL LETTER UKRAINIAN IE"},{"char":"Ѕ",desc:"CYRILLIC CAPITAL LETTER DZE"},{"char":"І",desc:"CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"Ї",desc:"CYRILLIC CAPITAL LETTER YI"},{"char":"Ј",desc:"CYRILLIC CAPITAL LETTER JE"},{"char":"Љ",desc:"CYRILLIC CAPITAL LETTER LJE"},{"char":"Њ",desc:"CYRILLIC CAPITAL LETTER NJE"},{"char":"Ћ",desc:"CYRILLIC CAPITAL LETTER TSHE"},{"char":"Ќ",desc:"CYRILLIC CAPITAL LETTER KJE"},{"char":"Ѝ",desc:"CYRILLIC CAPITAL LETTER I WITH GRAVE"},{"char":"Ў",desc:"CYRILLIC CAPITAL LETTER SHORT U"},{"char":"Џ",desc:"CYRILLIC CAPITAL LETTER DZHE"},{"char":"А",desc:"CYRILLIC CAPITAL LETTER A"},{"char":"Б",desc:"CYRILLIC CAPITAL LETTER BE"},{"char":"В",desc:"CYRILLIC CAPITAL LETTER VE"},{"char":"Г",desc:"CYRILLIC CAPITAL LETTER GHE"},{"char":"Д",desc:"CYRILLIC CAPITAL LETTER DE"},{"char":"Е",desc:"CYRILLIC CAPITAL LETTER IE"},{"char":"Ж",desc:"CYRILLIC CAPITAL LETTER ZHE"},{"char":"З",desc:"CYRILLIC CAPITAL LETTER ZE"},{"char":"И",desc:"CYRILLIC CAPITAL LETTER I"},{"char":"Й",desc:"CYRILLIC CAPITAL LETTER SHORT I"},{"char":"К",desc:"CYRILLIC CAPITAL LETTER KA"},{"char":"Л",desc:"CYRILLIC CAPITAL LETTER EL"},{"char":"М",desc:"CYRILLIC CAPITAL LETTER EM"},{"char":"Н",desc:"CYRILLIC CAPITAL LETTER EN"},{"char":"О",desc:"CYRILLIC CAPITAL LETTER O"},{"char":"П",desc:"CYRILLIC CAPITAL LETTER PE"},{"char":"Р",desc:"CYRILLIC CAPITAL LETTER ER"},{"char":"С",desc:"CYRILLIC CAPITAL LETTER ES"},{"char":"Т",desc:"CYRILLIC CAPITAL LETTER TE"},{"char":"У",desc:"CYRILLIC CAPITAL LETTER U"},{"char":"Ф",desc:"CYRILLIC CAPITAL LETTER EF"},{"char":"Х",desc:"CYRILLIC CAPITAL LETTER HA"},{"char":"Ц",desc:"CYRILLIC CAPITAL LETTER TSE"},{"char":"Ч",desc:"CYRILLIC CAPITAL LETTER CHE"},{"char":"Ш",desc:"CYRILLIC CAPITAL LETTER SHA"},{"char":"Щ",desc:"CYRILLIC CAPITAL LETTER SHCHA"},{"char":"Ъ",desc:"CYRILLIC CAPITAL LETTER HARD SIGN"},{"char":"Ы",desc:"CYRILLIC CAPITAL LETTER YERU"},{"char":"Ь",desc:"CYRILLIC CAPITAL LETTER SOFT SIGN"},{"char":"Э",desc:"CYRILLIC CAPITAL LETTER E"},{"char":"Ю",desc:"CYRILLIC CAPITAL LETTER YU"},{"char":"Я",desc:"CYRILLIC CAPITAL LETTER YA"},{"char":"а",desc:"CYRILLIC SMALL LETTER A"},{"char":"б",desc:"CYRILLIC SMALL LETTER BE"},{"char":"в",desc:"CYRILLIC SMALL LETTER VE"},{"char":"г",desc:"CYRILLIC SMALL LETTER GHE"},{"char":"д",desc:"CYRILLIC SMALL LETTER DE"},{"char":"е",desc:"CYRILLIC SMALL LETTER IE"},{"char":"ж",desc:"CYRILLIC SMALL LETTER ZHE"},{"char":"з",desc:"CYRILLIC SMALL LETTER ZE"},{"char":"и",desc:"CYRILLIC SMALL LETTER I"},{"char":"й",desc:"CYRILLIC SMALL LETTER SHORT I"},{"char":"к",desc:"CYRILLIC SMALL LETTER KA"},{"char":"л",desc:"CYRILLIC SMALL LETTER EL"},{"char":"м",desc:"CYRILLIC SMALL LETTER EM"},{"char":"н",desc:"CYRILLIC SMALL LETTER EN"},{"char":"о",desc:"CYRILLIC SMALL LETTER O"},{"char":"п",desc:"CYRILLIC SMALL LETTER PE"},{"char":"р",desc:"CYRILLIC SMALL LETTER ER"},{"char":"с",desc:"CYRILLIC SMALL LETTER ES"},{"char":"т",desc:"CYRILLIC SMALL LETTER TE"},{"char":"у",desc:"CYRILLIC SMALL LETTER U"},{"char":"ф",desc:"CYRILLIC SMALL LETTER EF"},{"char":"х",desc:"CYRILLIC SMALL LETTER HA"},{"char":"ц",desc:"CYRILLIC SMALL LETTER TSE"},{"char":"ч",desc:"CYRILLIC SMALL LETTER CHE"},{"char":"ш",desc:"CYRILLIC SMALL LETTER SHA"},{"char":"щ",desc:"CYRILLIC SMALL LETTER SHCHA"},{"char":"ъ",desc:"CYRILLIC SMALL LETTER HARD SIGN"},{"char":"ы",desc:"CYRILLIC SMALL LETTER YERU"},{"char":"ь",desc:"CYRILLIC SMALL LETTER SOFT SIGN"},{"char":"э",desc:"CYRILLIC SMALL LETTER E"},{"char":"ю",desc:"CYRILLIC SMALL LETTER YU"},{"char":"я",desc:"CYRILLIC SMALL LETTER YA"},{"char":"ѐ",desc:"CYRILLIC SMALL LETTER IE WITH GRAVE"},{"char":"ё",desc:"CYRILLIC SMALL LETTER IO"},{"char":"ђ",desc:"CYRILLIC SMALL LETTER DJE"},{"char":"ѓ",desc:"CYRILLIC SMALL LETTER GJE"},{"char":"є",desc:"CYRILLIC SMALL LETTER UKRAINIAN IE"},{"char":"ѕ",desc:"CYRILLIC SMALL LETTER DZE"},{"char":"і",desc:"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I"},{"char":"ї",desc:"CYRILLIC SMALL LETTER YI"},{"char":"ј",desc:"CYRILLIC SMALL LETTER JE"},{"char":"љ",desc:"CYRILLIC SMALL LETTER LJE"},{"char":"њ",desc:"CYRILLIC SMALL LETTER NJE"},{"char":"ћ",desc:"CYRILLIC SMALL LETTER TSHE"},{"char":"ќ",desc:"CYRILLIC SMALL LETTER KJE"},{"char":"ѝ",desc:"CYRILLIC SMALL LETTER I WITH GRAVE"},{"char":"ў",desc:"CYRILLIC SMALL LETTER SHORT U"},{"char":"џ",desc:"CYRILLIC SMALL LETTER DZHE"}]},{title:"Punctuation","char":"–",list:[{"char":"–",desc:"EN DASH"},{"char":"—",desc:"EM DASH"},{"char":"‘",desc:"LEFT SINGLE QUOTATION MARK"},{"char":"’",desc:"RIGHT SINGLE QUOTATION MARK"},{"char":"‚",desc:"SINGLE LOW-9 QUOTATION MARK"},{"char":"“",desc:"LEFT DOUBLE QUOTATION MARK"},{"char":"”",desc:"RIGHT DOUBLE QUOTATION MARK"},{"char":"„",desc:"DOUBLE LOW-9 QUOTATION MARK"},{"char":"†",desc:"DAGGER"},{"char":"‡",desc:"DOUBLE DAGGER"},{"char":"•",desc:"BULLET"},{"char":"…",desc:"HORIZONTAL ELLIPSIS"},{"char":"‰",desc:"PER MILLE SIGN"},{"char":"′",desc:"PRIME"},{"char":"″",desc:"DOUBLE PRIME"},{"char":"‹",desc:"SINGLE LEFT-POINTING ANGLE QUOTATION MARK"},{"char":"›",desc:"SINGLE RIGHT-POINTING ANGLE QUOTATION MARK"},{"char":"‾",desc:"OVERLINE"},{"char":"⁄",desc:"FRACTION SLASH"}]},{title:"Currency","char":"₠",list:[{"char":"₠",desc:"EURO-CURRENCY SIGN"},{"char":"₡",desc:"COLON SIGN"},{"char":"₢",desc:"CRUZEIRO SIGN"},{"char":"₣",desc:"FRENCH FRANC SIGN"},{"char":"₤",desc:"LIRA SIGN"},{"char":"₥",desc:"MILL SIGN"},{"char":"₦",desc:"NAIRA SIGN"},{"char":"₧",desc:"PESETA SIGN"},{"char":"₨",desc:"RUPEE SIGN"},{"char":"₩",desc:"WON SIGN"},{"char":"₪",desc:"NEW SHEQEL SIGN"},{"char":"₫",desc:"DONG SIGN"},{"char":"€",desc:"EURO SIGN"},{"char":"₭",desc:"KIP SIGN"},{"char":"₮",desc:"TUGRIK SIGN"},{"char":"₯",desc:"DRACHMA SIGN"},{"char":"₰",desc:"GERMAN PENNY SYMBOL"},{"char":"₱",desc:"PESO SIGN"},{"char":"₲",desc:"GUARANI SIGN"},{"char":"₳",desc:"AUSTRAL SIGN"},{"char":"₴",desc:"HRYVNIA SIGN"},{"char":"₵",desc:"CEDI SIGN"},{"char":"₶",desc:"LIVRE TOURNOIS SIGN"},{"char":"₷",desc:"SPESMILO SIGN"},{"char":"₸",desc:"TENGE SIGN"},{"char":"₹",desc:"INDIAN RUPEE SIGN"}]},{title:"Arrows","char":"←",list:[{"char":"←",desc:"LEFTWARDS ARROW"},{"char":"↑",desc:"UPWARDS ARROW"},{"char":"→",desc:"RIGHTWARDS ARROW"},{"char":"↓",desc:"DOWNWARDS ARROW"},{"char":"↔",desc:"LEFT RIGHT ARROW"},{"char":"↕",desc:"UP DOWN ARROW"},{"char":"↖",desc:"NORTH WEST ARROW"},{"char":"↗",desc:"NORTH EAST ARROW"},{"char":"↘",desc:"SOUTH EAST ARROW"},{"char":"↙",desc:"SOUTH WEST ARROW"},{"char":"↚",desc:"LEFTWARDS ARROW WITH STROKE"},{"char":"↛",desc:"RIGHTWARDS ARROW WITH STROKE"},{"char":"↜",desc:"LEFTWARDS WAVE ARROW"},{"char":"↝",desc:"RIGHTWARDS WAVE ARROW"},{"char":"↞",desc:"LEFTWARDS TWO HEADED ARROW"},{"char":"↟",desc:"UPWARDS TWO HEADED ARROW"},{"char":"↠",desc:"RIGHTWARDS TWO HEADED ARROW"},{"char":"↡",desc:"DOWNWARDS TWO HEADED ARROW"},{"char":"↢",desc:"LEFTWARDS ARROW WITH TAIL"},{"char":"↣",desc:"RIGHTWARDS ARROW WITH TAIL"},{"char":"↤",desc:"LEFTWARDS ARROW FROM BAR"},{"char":"↥",desc:"UPWARDS ARROW FROM BAR"},{"char":"↦",desc:"RIGHTWARDS ARROW FROM BAR"},{"char":"↧",desc:"DOWNWARDS ARROW FROM BAR"},{"char":"↨",desc:"UP DOWN ARROW WITH BASE"},{"char":"↩",desc:"LEFTWARDS ARROW WITH HOOK"},{"char":"↪",desc:"RIGHTWARDS ARROW WITH HOOK"},{"char":"↫",desc:"LEFTWARDS ARROW WITH LOOP"},{"char":"↬",desc:"RIGHTWARDS ARROW WITH LOOP"},{"char":"↭",desc:"LEFT RIGHT WAVE ARROW"},{"char":"↮",desc:"LEFT RIGHT ARROW WITH STROKE"},{"char":"↯",desc:"DOWNWARDS ZIGZAG ARROW"},{"char":"↰",desc:"UPWARDS ARROW WITH TIP LEFTWARDS"},{"char":"↱",desc:"UPWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"↲",desc:"DOWNWARDS ARROW WITH TIP LEFTWARDS"},{"char":"↳",desc:"DOWNWARDS ARROW WITH TIP RIGHTWARDS"},{"char":"↴",desc:"RIGHTWARDS ARROW WITH CORNER DOWNWARDS"},{"char":"↵",desc:"DOWNWARDS ARROW WITH CORNER LEFTWARDS"},{"char":"↶",desc:"ANTICLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"↷",desc:"CLOCKWISE TOP SEMICIRCLE ARROW"},{"char":"↸",desc:"NORTH WEST ARROW TO LONG BAR"},{"char":"↹",desc:"LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR"},{"char":"↺",desc:"ANTICLOCKWISE OPEN CIRCLE ARROW"},{"char":"↻",desc:"CLOCKWISE OPEN CIRCLE ARROW"},{"char":"↼",desc:"LEFTWARDS HARPOON WITH BARB UPWARDS"},{"char":"↽",desc:"LEFTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"↾",desc:"UPWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"↿",desc:"UPWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"⇀",desc:"RIGHTWARDS HARPOON WITH BARB UPWARDS"},{"char":"⇁",desc:"RIGHTWARDS HARPOON WITH BARB DOWNWARDS"},{"char":"⇂",desc:"DOWNWARDS HARPOON WITH BARB RIGHTWARDS"},{"char":"⇃",desc:"DOWNWARDS HARPOON WITH BARB LEFTWARDS"},{"char":"⇄",desc:"RIGHTWARDS ARROW OVER LEFTWARDS ARROW"},{"char":"⇅",desc:"UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW"},{"char":"⇆",desc:"LEFTWARDS ARROW OVER RIGHTWARDS ARROW"},{"char":"⇇",desc:"LEFTWARDS PAIRED ARROWS"},{"char":"⇈",desc:"UPWARDS PAIRED ARROWS"},{"char":"⇉",desc:"RIGHTWARDS PAIRED ARROWS"},{"char":"⇊",desc:"DOWNWARDS PAIRED ARROWS"},{"char":"⇋",desc:"LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON"},{"char":"⇌",desc:"RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON"},{"char":"⇍",desc:"LEFTWARDS DOUBLE ARROW WITH STROKE"},{"char":"⇎",desc:"LEFT RIGHT DOUBLE ARROW WITH STROKE"},{"char":"⇏",desc:"RIGHTWARDS DOUBLE ARROW WITH STROKE"},{"char":"⇐",desc:"LEFTWARDS DOUBLE ARROW"},{"char":"⇑",desc:"UPWARDS DOUBLE ARROW"},{"char":"⇒",desc:"RIGHTWARDS DOUBLE ARROW"},{"char":"⇓",desc:"DOWNWARDS DOUBLE ARROW"},{"char":"⇔",desc:"LEFT RIGHT DOUBLE ARROW"},{"char":"⇕",desc:"UP DOWN DOUBLE ARROW"},{"char":"⇖",desc:"NORTH WEST DOUBLE ARROW"},{"char":"⇗",desc:"NORTH EAST DOUBLE ARROW"},{"char":"⇘",desc:"SOUTH EAST DOUBLE ARROW"},{"char":"⇙",desc:"SOUTH WEST DOUBLE ARROW"},{"char":"⇚",desc:"LEFTWARDS TRIPLE ARROW"},{"char":"⇛",desc:"RIGHTWARDS TRIPLE ARROW"},{"char":"⇜",desc:"LEFTWARDS SQUIGGLE ARROW"},{"char":"⇝",desc:"RIGHTWARDS SQUIGGLE ARROW"},{"char":"⇞",desc:"UPWARDS ARROW WITH DOUBLE STROKE"},{"char":"⇟",desc:"DOWNWARDS ARROW WITH DOUBLE STROKE"},{"char":"⇠",desc:"LEFTWARDS DASHED ARROW"},{"char":"⇡",desc:"UPWARDS DASHED ARROW"},{"char":"⇢",desc:"RIGHTWARDS DASHED ARROW"},{"char":"⇣",desc:"DOWNWARDS DASHED ARROW"},{"char":"⇤",desc:"LEFTWARDS ARROW TO BAR"},{"char":"⇥",desc:"RIGHTWARDS ARROW TO BAR"},{"char":"⇦",desc:"LEFTWARDS WHITE ARROW"},{"char":"⇧",desc:"UPWARDS WHITE ARROW"},{"char":"⇨",desc:"RIGHTWARDS WHITE ARROW"},{"char":"⇩",desc:"DOWNWARDS WHITE ARROW"},{"char":"⇪",desc:"UPWARDS WHITE ARROW FROM BAR"},{"char":"⇫",desc:"UPWARDS WHITE ARROW ON PEDESTAL"},{"char":"⇬",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH HORIZONTAL BAR"},{"char":"⇭",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH VERTICAL BAR"},{"char":"⇮",desc:"UPWARDS WHITE DOUBLE ARROW"},{"char":"⇯",desc:"UPWARDS WHITE DOUBLE ARROW ON PEDESTAL"},{"char":"⇰",desc:"RIGHTWARDS WHITE ARROW FROM WALL"},{"char":"⇱",desc:"NORTH WEST ARROW TO CORNER"},{"char":"⇲",desc:"SOUTH EAST ARROW TO CORNER"},{"char":"⇳",desc:"UP DOWN WHITE ARROW"},{"char":"⇴",desc:"RIGHT ARROW WITH SMALL CIRCLE"},{"char":"⇵",desc:"DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW"},{"char":"⇶",desc:"THREE RIGHTWARDS ARROWS"},{"char":"⇷",desc:"LEFTWARDS ARROW WITH VERTICAL STROKE"},{"char":"⇸",desc:"RIGHTWARDS ARROW WITH VERTICAL STROKE"},{"char":"⇹",desc:"LEFT RIGHT ARROW WITH VERTICAL STROKE"},{"char":"⇺",desc:"LEFTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇻",desc:"RIGHTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇼",desc:"LEFT RIGHT ARROW WITH DOUBLE VERTICAL STROKE"},{"char":"⇽",desc:"LEFTWARDS OPEN-HEADED ARROW"},{"char":"⇾",desc:"RIGHTWARDS OPEN-HEADED ARROW"},{"char":"⇿",desc:"LEFT RIGHT OPEN-HEADED ARROW"}]},{title:"Math","char":"∀",list:[{"char":"∀",desc:"FOR ALL"},{"char":"∂",desc:"PARTIAL DIFFERENTIAL"},{"char":"∃",desc:"THERE EXISTS"},{"char":"∅",desc:"EMPTY SET"},{"char":"∇",desc:"NABLA"},{"char":"∈",desc:"ELEMENT OF"},{"char":"∉",desc:"NOT AN ELEMENT OF"},{"char":"∋",desc:"CONTAINS AS MEMBER"},{"char":"∏",desc:"N-ARY PRODUCT"},{"char":"∑",desc:"N-ARY SUMMATION"},{"char":"−",desc:"MINUS SIGN"},{"char":"∗",desc:"ASTERISK OPERATOR"},{"char":"√",desc:"SQUARE ROOT"},{"char":"∝",desc:"PROPORTIONAL TO"},{"char":"∞",desc:"INFINITY"},{"char":"∠",desc:"ANGLE"},{"char":"∧",desc:"LOGICAL AND"},{"char":"∨",desc:"LOGICAL OR"},{"char":"∩",desc:"INTERSECTION"},{"char":"∪",desc:"UNION"},{"char":"∫",desc:"INTEGRAL"},{"char":"∴",desc:"THEREFORE"},{"char":"∼",desc:"TILDE OPERATOR"},{"char":"≅",desc:"APPROXIMATELY EQUAL TO"},{"char":"≈",desc:"ALMOST EQUAL TO"},{"char":"≠",desc:"NOT EQUAL TO"},{"char":"≡",desc:"IDENTICAL TO"},{"char":"≤",desc:"LESS-THAN OR EQUAL TO"},{"char":"≥",desc:"GREATER-THAN OR EQUAL TO"},{"char":"⊂",desc:"SUBSET OF"},{"char":"⊃",desc:"SUPERSET OF"},{"char":"⊄",desc:"NOT A SUBSET OF"},{"char":"⊆",desc:"SUBSET OF OR EQUAL TO"},{"char":"⊇",desc:"SUPERSET OF OR EQUAL TO"},{"char":"⊕",desc:"CIRCLED PLUS"},{"char":"⊗",desc:"CIRCLED TIMES"},{"char":"⊥",desc:"UP TACK"}]},{title:"Misc","char":"♠",list:[{"char":"♠",desc:"BLACK SPADE SUIT"},{"char":"♣",desc:"BLACK CLUB SUIT"},{"char":"♥",desc:"BLACK HEART SUIT"},{"char":"♦",desc:"BLACK DIAMOND SUIT"},{"char":"♩",desc:"QUARTER NOTE"},{"char":"♪",desc:"EIGHTH NOTE"},{"char":"♫",desc:"BEAMED EIGHTH NOTES"},{"char":"♬",desc:"BEAMED SIXTEENTH NOTES"},{"char":"♭",desc:"MUSIC FLAT SIGN"},{"char":"♮",desc:"MUSIC NATURAL SIGN"},{"char":"☀",desc:"BLACK SUN WITH RAYS"},{"char":"☁",desc:"CLOUD"},{"char":"☂",desc:"UMBRELLA"},{"char":"☃",desc:"SNOWMAN"},{"char":"☕",desc:"HOT BEVERAGE"},{"char":"☘",desc:"SHAMROCK"},{"char":"☯",desc:"YIN YANG"},{"char":"✔",desc:"HEAVY CHECK MARK"},{"char":"✖",desc:"HEAVY MULTIPLICATION X"},{"char":"❄",desc:"SNOWFLAKE"},{"char":"❛",desc:"HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"❜",desc:"HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT"},{"char":"❝",desc:"HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT"},{"char":"❞",desc:"HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT"},{"char":"❤",desc:"HEAVY BLACK HEART"}]}],specialCharButtons:["specialCharBack","|"]}),Object.assign(be.POPUP_TEMPLATES,{specialCharacters:"[_BUTTONS_][_CUSTOM_LAYER_]"}),be.PLUGINS.specialCharacters=function(g){var m=g.$,i=g.opts.specialCharactersSets[0],s=g.opts.specialCharactersSets,o="";function l(){return'\n
    \n '.concat((e=s,n=i,r="",e.forEach(function(e){var t={elementClass:e.title===n.title?"fr-active fr-active-tab":"",title:e.title,dataParam1:e.title,desc:e["char"]};r+='")}),r),'\n
    \n
    \n ').concat((a="",i.list.forEach(function(e){var t={dataParam1:e["char"],title:e.desc,splCharValue:e["char"]};a+='').concat(t.splCharValue,"")}),a),"\n
    ");var a,e,n,r}return{setSpecialCharacterCategory:function(t){i=s.filter(function(e){return e.title===t})[0],g.popups.get("specialCharacters").html(o+l())},showSpecialCharsPopup:function(){var e=g.popups.get("specialCharacters");if(e||(e=function(){g.opts.toolbarInline&&0'.concat(g.button.buildList(g.opts.specialCharButtons),""));var h,e={buttons:o,custom_layer:l()},t=g.popups.create("specialCharacters",e);return h=t,g.events.on("popup.tab",function(e){var t=m(e.currentTarget);if(!g.popups.isVisible("specialCharacters")||!t.is("span, a"))return!0;var a,n,r,i=e.which;if(be.KEYCODE.TAB==i){if(t.is("span.fr-icon")&&e.shiftKey||t.is("a")&&!e.shiftKey){var s=h.find(".fr-buttons");a=!g.accessibility.focusToolbar(s,!!e.shiftKey)}if(!1!==a){var o=h.find("span.fr-icon:focus").first().concat(h.findVisible(" span.fr-icon").first().concat(h.find("a")));t.is("span.fr-icon")&&(o=o.not("span.fr-icon:not(:focus)")),n=o.index(t),n=e.shiftKey?((n-1)%o.length+o.length)%o.length:(n+1)%o.length,r=o.get(n),g.events.disableBlur(),r.focus(),a=!1}}else if(be.KEYCODE.ARROW_UP==i||be.KEYCODE.ARROW_DOWN==i||be.KEYCODE.ARROW_LEFT==i||be.KEYCODE.ARROW_RIGHT==i){if(t.is("span.fr-icon")){var l=t.parent().find("span.fr-icon");n=l.index(t);var c=Math.floor(l.length/11),d=n%11,f=Math.floor(n/11),p=11*f+d,u=11*c;be.KEYCODE.ARROW_UP==i?p=((p-11)%u+u)%u:be.KEYCODE.ARROW_DOWN==i?p=(p+11)%u:be.KEYCODE.ARROW_LEFT==i?p=((p-1)%u+u)%u:be.KEYCODE.ARROW_RIGHT==i&&(p=(p+1)%u),r=m(l.get(p)),g.events.disableBlur(),r.focus(),a=!1}}else be.KEYCODE.ENTER==i&&(t.is("a")?t[0].click():g.button.exec(t),a=!1);return!1===a&&(e.preventDefault(),e.stopPropagation()),a},!0),t}()),!e.hasClass("fr-active")){g.popups.refresh("specialCharacters"),g.popups.setContainer("specialCharacters",g.$tb);var t=g.$tb.find('.fr-command[data-cmd="specialCharacters"]'),a=g.button.getPosition(t),n=a.left,r=a.top;g.popups.show("specialCharacters",n,r,outerHeight)}},back:function(){g.popups.hide("specialCharacters"),g.toolbar.showInline()}}},be.DefineIcon("specialCharacters",{NAME:"dollar-sign",SVG_KEY:"symbols"}),be.RegisterCommand("specialCharacters",{title:"Special Characters",icon:"specialCharacters",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,plugin:"specialCharacters",showOnMobile:!0,callback:function(){this.popups.isVisible("specialCharacters")?(this.$el.find(".fr-marker")&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("specialCharacters")):this.specialCharacters.showSpecialCharsPopup()}}),be.RegisterCommand("insertSpecialCharacter",{callback:function(e,t){this.undo.saveStep(),this.html.insert(t),this.undo.saveStep(),this.popups.hide("specialCharacters")}}),be.RegisterCommand("setSpecialCharacterCategory",{undo:!1,focus:!1,callback:function(e,t){this.specialCharacters.setSpecialCharacterCategory(t)}}),be.DefineIcon("specialCharBack",{NAME:"arrow-left",SVG_KEY:"back"}),be.RegisterCommand("specialCharBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.specialCharacters.back()}}),Object.assign(be.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),Object.assign(be.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableDefaultWidth:"100%",tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,tableInsertHelperOffset:15}),be.PLUGINS.table=function(T){var C,c,r,i,n,s,R,S=T.$;function u(){var e=L();if(e){var t=T.popups.get("table.edit");if(t||(t=p()),t){T.popups.setContainer("table.edit",T.$sc);var a=x(e),n=a.left+(a.right-a.left)/2,r=a.bottom;T.popups.show("table.edit",n,r,a.bottom-a.top,!0),T.edit.isDisabled()&&(1");var t="";T.opts.colorsHEXInput&&(t='
    ");var a={buttons:e,colors:function(){for(var e='
    ',t=0;t"),"REMOVE"!=T.opts.tableColors[t]?e+=''+T.language.translate("Color")+" "+T.opts.tableColors[t]+"   ":e+=''+T.icon.create("tableColorRemove")+''+T.language.translate("Clear Formatting")+"";return e+="
    "}(),custom_color:t},n=T.popups.create("table.colors",a);return T.events.$on(T.$wp,"scroll.table-colors",function(){T.popups.isVisible("table.colors")&&d()}),h=n,T.events.on("popup.tab",function(e){var t=S(e.currentTarget);if(!T.popups.isVisible("table.colors")||!t.is("span"))return!0;var a=e.which,n=!0;if(be.KEYCODE.TAB==a){var r=h.find(".fr-buttons");n=!T.accessibility.focusToolbar(r,!!e.shiftKey)}else if(be.KEYCODE.ARROW_UP==a||be.KEYCODE.ARROW_DOWN==a||be.KEYCODE.ARROW_LEFT==a||be.KEYCODE.ARROW_RIGHT==a){var i=t.parent().find("span.fr-command"),s=i.index(t),o=T.opts.colorsStep,l=Math.floor(i.length/o),c=s%o,d=Math.floor(s/o),f=d*o+c,p=l*o;be.KEYCODE.ARROW_UP==a?f=((f-o)%p+p)%p:be.KEYCODE.ARROW_DOWN==a?f=(f+o)%p:be.KEYCODE.ARROW_LEFT==a?f=((f-1)%p+p)%p:be.KEYCODE.ARROW_RIGHT==a&&(f=(f+1)%p);var u=S(i.get(f));T.events.disableBlur(),u.focus(),n=!1}else be.KEYCODE.ENTER==a&&(T.button.exec(t),n=!1);return!1===n&&(e.preventDefault(),e.stopPropagation()),n},!0),n;var h}()),T.popups.setContainer("table.colors",T.$sc);var s=x(r),o=(s.left+s.right)/2,l=s.bottom;e=T.popups.get("table.colors"),t=T.$el.find(".fr-selected-cell").first(),a=T.helpers.RGBToHex(t.css("background-color")),n=e.find(".fr-table-colors-hex-layer input"),e.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),e.find('span[data-param1="'+a+'"]').addClass("fr-selected-color fr-active-item"),n.val(a).trigger("change"),T.popups.show("table.colors",o,l,s.bottom-s.top,!0)}}function o(){0===J().length&&T.toolbar.enable()}function l(e){if(e)return T.popups.onHide("table.insert",function(){T.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseover")}),!0;var t="";0'+T.button.buildList(T.opts.tableInsertButtons)+"");var a,n={buttons:t,rows_columns:function(){for(var e='
    1 × 1
    ',t=1;t<=T.opts.tableInsertMaxSize;t++){for(var a=1;a<=T.opts.tableInsertMaxSize;a++){var n="inline-block";2'+t+" × "+a+"   "}e+='
    '}return e+="
    "}()},r=T.popups.create("table.insert",n);return T.events.$on(r,"mouseover",".fr-table-size .fr-select-table-size .fr-table-cell",function(e){f(S(e.currentTarget))},!0),a=r,T.events.$on(a,"focus","[tabIndex]",function(e){var t=S(e.currentTarget);f(t)}),T.events.on("popup.tab",function(e){var t=S(e.currentTarget);if(!T.popups.isVisible("table.insert")||!t.is("span, a"))return!0;var a,n=e.which;if(be.KEYCODE.ARROW_UP==n||be.KEYCODE.ARROW_DOWN==n||be.KEYCODE.ARROW_LEFT==n||be.KEYCODE.ARROW_RIGHT==n){if(t.is("span.fr-table-cell")){var r=t.parent().find("span.fr-table-cell"),i=r.index(t),s=T.opts.tableInsertMaxSize,o=i%s,l=Math.floor(i/s);be.KEYCODE.ARROW_UP==n?l=Math.max(0,l-1):be.KEYCODE.ARROW_DOWN==n?l=Math.min(T.opts.tableInsertMaxSize-1,l+1):be.KEYCODE.ARROW_LEFT==n?o=Math.max(0,o-1):be.KEYCODE.ARROW_RIGHT==n&&(o=Math.min(T.opts.tableInsertMaxSize-1,o+1));var c=l*s+o,d=S(r.get(c));f(d),T.events.disableBlur(),d.focus(),a=!1}}else be.KEYCODE.ENTER==n&&(T.button.exec(t),a=!1);return!1===a&&(e.preventDefault(),e.stopPropagation()),a},!0),r}function f(e){var t=e.data("row");null!==t&&(t=parseInt(t));var a=e.data("col");null!==a&&(a=parseInt(a));var n=e.parent();n.siblings(".fr-table-size-info").html(t+" × "+a),n.find("> span").removeClass("hover fr-active-item");for(var r=1;r<=T.opts.tableInsertMaxSize;r++)for(var i=0;i<=T.opts.tableInsertMaxSize;i++){var s=n.find('> span[data-row="'+r+'"][data-col="'+i+'"]');r<=t&&i<=a?s.addClass("hover"):r<=t+1||r<=2&&!T.helpers.isMobile()?s.css("display","inline-block"):2'.concat(T.button.buildList(T.opts.tableEditButtons),"")},a=T.popups.create("table.edit",t);return T.events.$on(T.$wp,"scroll.table-edit",function(){T.popups.isVisible("table.edit")&&u()}),a}return!1}function h(){if(0
    '}o+="",r=0 table tbody"))):S(t.find("tr").not(t.find("> table tr")).get(n)),"below"==e?"TBODY"==r.attr("tagName")?r.prepend(o):r[0].parentNode&&r[0].insertAdjacentHTML("afterend",o):"above"==e&&(r.before(o),T.popups.isVisible("table.edit")&&u())}}function m(e,t,a){var n,r,i,s,o,l=0,c=L(a);if(e<(t=Math.min(t,c[0].length-1)))for(r=e;r<=t;r++)if(!(e table tr")).each(function(o,e){var t=S(e),l=0;t.find("> th, > td").each(function(e,t){for(var a=S(t),n=parseInt(a.attr("colspan"),10)||1,r=parseInt(a.attr("rowspan"),10)||1,i=o;i")),C=T.shared.$table_resizer,T.events.$on(C,"mousedown",function(e){return!T.core.sameInstance(C)||(0a-T.opts.tableResizerOffset?C.css("left",a-T.opts.tableResizerOffset-T.$wp.offset().left):n'),T.events.bindClick(T.shared.$ti_helper,"a",function(){var e=c.data("selected-cell"),t=c.data("position"),a=c.data("instance")||T;"before"==t?(T.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertColumn(t),e.removeClass("fr-selected-cell"),T.undo.saveStep()):"after"==t?(T.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertColumn(t),e.removeClass("fr-selected-cell"),T.undo.saveStep()):"above"==t?(T.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertRow(t),e.removeClass("fr-selected-cell"),T.undo.saveStep()):"below"==t&&(T.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertRow(t),e.removeClass("fr-selected-cell"),T.undo.saveStep()),W()}),T.events.on("shared.destroy",function(){T.shared.$ti_helper.html("").removeData().remove(),T.shared.$ti_helper=null},!0),T.events.$on(T.shared.$ti_helper,"mousemove",function(e){e.stopPropagation()},!0),T.events.$on(S(T.o_win),"scroll",function(){W()},!0),T.events.$on(T.$wp,"scroll",function(){W()},!0)),c=T.shared.$ti_helper,T.events.on("destroy",function(){c=null}),T.tooltip.bind(T.$box,".fr-insert-helper > a.fr-floating-btn")}function Q(){n=null,clearTimeout(s)}function J(){return T.el.querySelectorAll(".fr-selected-cell")}function Z(){var e=J();if(e.length){for(var t=e[0];t&&"TABLE"!=t.tagName&&t.parentNode!=T.el;)t=t.parentNode;return t&&"TABLE"==t.tagName?S(t):S([])}return S([])}return{_init:function(){if(!T.$wp)return!1;if(!T.helpers.isMobile()){R=r=i=!1,T.events.$on(T.$el,"mousedown",e),T.popups.onShow("image.edit",function(){y(),r=i=!1}),T.popups.onShow("link.edit",function(){y(),r=i=!1}),T.events.on("commands.mousedown",function(e){0"),a==t.length-1&&S(t[a]).prepend(be.MARKERS);return T.selection.restore(),T.undo.saveStep(),!(t=[])}if(1',i=100/t;for(a=0;a",n=0;n",0===a&&0===n&&(r+=be.MARKERS),r+="
    ";r+=""}r+="",T.html.insert(r),T.selection.restore();var s=T.$el.find(".fr-inserted-table");s.removeClass("fr-inserted-table"),T.events.trigger("table.inserted",[s.get(0)])},remove:h,insertRow:g,deleteRow:function(){var e=Z();if(0=i.min_i;t--){for(n=S(e.find("tr").not(e.find("> table tr")).get(t)),a=0;a table tr")).get(t+1)).prepend(l):S(r[t+1][c-1])[0].parentNode&&S(r[t+1][c-1])[0].insertAdjacentElement("afterend",l)}}var d=n.parent();n.remove(),0===d.find("tr").length&&d.remove(),r=L(e)}b(0,r.length-1,0,r[0].length-1,e),0 table tr")).each(function(e){for(var t,a=S(this),n=0,r=0;n-1 th, > td").get(r))){t=null;break}t==d[e][n]?(n+=parseInt(S(t).attr("colspan"),10)||1,r++):(n+=parseInt(S(d[e][n]).attr("colspan"),10)||1,"after"==l&&(t=0===r?-1:a.find("> th, > td").get(r-1)))}var i,s=S(t);if("after"==l&&c
    ':'
    ',-1==t?a.prepend(i):null==t?a.append(i):"before"==l?s.before(i):"after"==l&&s[0].parentNode&&s[0].insertAdjacentHTML("afterend",i)}),e.find("th, td").each(function(){(a=S(this)).data("old-width")&&(a.css("width",(a.data("old-width")*p/f).toFixed(4)+"%"),a.removeData("old-width"))}),T.popups.isVisible("table.edit")&&u()}},deleteColumn:function(){var e=Z();if(0i.max_j)&&(s+=n.outerWidth()/e.outerWidth()*100));for(s/=r.length,a=i.max_j;a>=i.min_j;a--)for(t=0;t th, > td").length&&(0===l.prev().length||0===l.next().length||l.prev().find("> th[rowspan], > td[rowspan]").length th, > td").length)&&l.remove()}b(0,r.length-1,0,r[0].length-1,e),0"!=(t=S(n[e])).html()&&""!==t.html()&&(o+="
    "+t.html()),t.remove();r.html(o),T.selection.setAtEnd(r.get(0)),T.selection.restore(),T.toolbar.enable(),v(a.min_i,a.max_i,s);var c=s.find("tr:empty");for(e=c.length-1;0<=e;e--)S(c[e]).remove();m(a.min_j,a.max_j,s),u()}},splitCellVertically:function(){if(1==J().length){var e=T.$el.find(".fr-selected-cell"),t=parseInt(e.attr("colspan"),10)||1,a=e.parent().outerWidth(),n=e.outerWidth(),r=e.clone().html("
    "),i=L(),s=_(e.get(0),i);if(1");if(1 table tr")).get(l)).prepend(s):S(r[l][c])[0].parentNode&&S(r[l][c])[0].insertAdjacentElement("afterend",s[0])}else{var d,f=S(document.createElement("tr")).append(s);for(d=0;d td").each(function(){var e=S(this);n+=parseInt(e.attr("colspan"),10)||1}),t=0;t
    ";a+="",e.prepend(a),u()}},removeHeader:function(){var e=Z(),t=e.find("thead");if(0'+this.language.translate(t[a])+"");return e+=""},callback:function(e,t){"above"==t||"below"==t?this.table.insertRow(t):this.table.deleteRow()}}),be.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90",SVG_KEY:"columns"}),be.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after","delete":"Delete column"},html:function(){var e='"},callback:function(e,t){"before"==t||"after"==t?this.table.insertColumn(t):this.table.deleteColumn()}}),be.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square",SVG_KEY:"cellOptions"}),be.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var e='"},callback:function(e,t){"merge"==t?this.table.mergeCells():"vertical-split"==t?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(e,t){1'+this.language.translate(t[a])+"");return e+=""},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(e,t){var a=this.$,n=this.$el.find(".fr-selected-cell").closest("table");n&&t.find(".fr-command").each(function(){var e=a(this).data("param1"),t=n.hasClass(e);a(this).toggleClass("fr-active",t).attr("aria-selected",t)})}}),be.DefineIcon("tableCellBackground",{NAME:"tint",SVG_KEY:"cellBackground"}),be.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),be.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(e,t){this.table.setBackground(t)}}),be.DefineIcon("tableBack",{NAME:"arrow-left",SVG_KEY:"back"}),be.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(e){0!==this.table.selectedCells().length||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),be.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"verticalAlignMiddle"}),be.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var e='"},callback:function(e,t){this.table.verticalAlign(t)},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),be.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left",SVG_KEY:"alignLeft"}),be.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),be.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),be.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"}),be.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"}),be.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var e='"},callback:function(e,t){this.table.horizontalAlign(t)},refresh:function(e){var t=this.table.selectedCells(),a=this.$;t.length&&e.find("> *").first().replaceWith(this.icon.create("align-"+this.helpers.getAlignment(a(t[0]))))},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell").first())+'"]').addClass("fr-active").attr("aria-selected",!0)}}),be.DefineIcon("tableCellStyle",{NAME:"magic",SVG_KEY:"cellStyle"}),be.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var e='"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(e,t){var a=this.$,n=this.$el.find(".fr-selected-cell").first();n&&t.find(".fr-command").each(function(){var e=a(this).data("param1"),t=n.hasClass(e);a(this).toggleClass("fr-active",t).attr("aria-selected",t)})}}),be.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),be.DefineIcon("tableColorRemove",{NAME:"eraser",SVG_KEY:"remove"}),be.URLRegEx="(^| |\\u00A0)("+be.LinkRegEx+"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$",be.PLUGINS.url=function(i){var s=i.$,o=null;function t(e,t,a){for(var n="";a.length&&"."==a[a.length-1];)n+=".",a=a.substring(0,a.length-1);var r=a;if(i.opts.linkConvertEmailAddress)i.helpers.isEmail(r)&&!/^mailto:.*/i.test(r)&&(r="mailto:"+r);else if(i.helpers.isEmail(r))return t+a;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(r)||(r="//"+r),(t||"")+"'+a.replace(/&/g,"&").replace(/&/g,"&").replace(//g,">")+""+n}function l(){return new RegExp(be.URLRegEx,"gi")}function c(e){return i.opts.linkAlwaysNoFollow&&(o="nofollow"),i.opts.linkAlwaysBlank&&(i.opts.linkNoOpener&&(o?o+=" noopener":o="noopener"),i.opts.linkNoReferrer&&(o?o+=" noreferrer":o="noreferrer")),e.replace(l(),t)}function d(e){var t=e.split(" ");return t[t.length-1]}function a(){var t=i.selection.ranges(0),a=t.startContainer;if(!a||a.nodeType!==Node.TEXT_NODE||t.startOffset!==(a.textContent||"").length)return!1;if(function e(t){return!!t&&("A"===t.tagName||!(!t.parentNode||t.parentNode==i.el)&&e(t.parentNode))}(a))return!1;if(l().test(d(a.textContent))){s(a).before(c(a.textContent));var n=s(a.parentNode).find("a[data-fr-linked]");n.removeAttr("data-fr-linked"),a.parentNode.removeChild(a),i.events.trigger("url.linked",[n.get(0)])}else if(a.textContent.split(" ").length<=2&&a.previousSibling&&"A"===a.previousSibling.tagName){var r=a.previousSibling.innerText+a.textContent;l().test(d(r))&&(s(a.previousSibling).replaceWith(c(r)),a.parentNode.removeChild(a))}}return{_init:function(){i.events.on("keypress",function(e){!i.selection.isCollapsed()||"."!=e.key&&")"!=e.key&&"("!=e.key||a()},!0),i.events.on("keydown",function(e){var t=e.which;!i.selection.isCollapsed()||t!=be.KEYCODE.ENTER&&t!=be.KEYCODE.SPACE||a()},!0),i.events.on("paste.beforeCleanup",function(e){if(i.helpers.isURL(e)){var t=null;return i.opts.linkAlwaysBlank&&(i.opts.linkNoOpener&&(t?t+=" noopener":t="noopener"),i.opts.linkNoReferrer&&(t?t+=" noreferrer":t="noreferrer")),"'+e+""}})}}},Object.assign(be.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Object.assign(be.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","videoDisplay","videoAlign","videoSize"],videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoResponsive:!1,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},videoUploadToS3:!1,videoUploadURL:null}),be.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\??v?=?([^#\&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/)?([0-9a-zA-Z_\-]+)(.+)?/g,url_text:"https://www.youtube.com/embed/$1?$2",html:'',provider:"youtube"},{test_regex:/^.*(?:vimeo.com)\/(?:channels(\/\w+\/)?|groups\/*\/videos\/\u200b\d+\/|video\/|)(\d+)(?:$|\/|\?)/,url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?(\/[a-zA-Z0-9_\-]+)?/i,url_text:"https://player.vimeo.com/video/$1",html:'',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,url_text:"https://www.dailymotion.com/embed/video/$1",html:'',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,url_text:"https://rutube.ru/play/embed/$1",html:'',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'',provider:"vidyard"}],be.VIDEO_EMBED_REGEX=/^\W*(((\s|\n)*<\/iframe>)|())\W*$/i,be.PLUGINS.video=function(p){var o,d,f,u,n,a,h=p.$,l="https://i.froala.com/upload",c=2,g=3,m=4,v=5,E=6,r={};function b(){var e=p.popups.get("video.insert");e.find(".fr-video-by-url-layer input").val("").trigger("change");var t=e.find(".fr-video-embed-layer textarea");t.val("").trigger("change"),(t=e.find(".fr-video-upload-layer input")).val("").trigger("change")}function i(){var e=p.popups.get("video.edit");if(e||(e=function(){var e="";if(0 \n '.concat(p.button.buildList(p.opts.videoEditButtons)," \n ")},a=p.popups.create("video.edit",t);return p.events.$on(p.$wp,"scroll.video-edit",function(){u&&p.popups.isVisible("video.edit")&&(p.events.disableBlur(),w(u))}),a}return!1}()),e){p.popups.setContainer("video.edit",p.$sc),p.popups.refresh("video.edit");var t=u.find("iframe, embed, video"),a=t.offset().left+t.outerWidth()/2,n=t.offset().top+t.outerHeight();p.popups.show("video.edit",a,n,t.outerHeight(),!0)}}function s(e){if(e)return p.popups.onRefresh("video.insert",b),p.popups.onHide("video.insert",q),!0;var t="";p.opts.videoUpload||-1===p.opts.videoInsertButtons.indexOf("videoUpload")||p.opts.videoInsertButtons.splice(p.opts.videoInsertButtons.indexOf("videoUpload"),1);var a=p.button.buildList(p.opts.videoInsertButtons);""!==a&&(t='
    '+a+"
    ");var n,r="",i=p.opts.videoInsertButtons.indexOf("videoUpload"),s=p.opts.videoInsertButtons.indexOf("videoByURL"),o=p.opts.videoInsertButtons.indexOf("videoEmbed");0<=s&&(n=" fr-active",(i
    ");var l="";0<=o&&(n=" fr-active",(i
    ");var c="";0<=i&&(n=" fr-active",(o'+p.language.translate("Drop video")+"
    ("+p.language.translate("or click")+')
    ');var d={buttons:t,by_url_layer:r,embed_layer:l,upload_layer:c,progress_bar:'

    Uploading

    '},f=p.popups.create("video.insert",d);return function(n){p.events.$on(n,"dragover dragenter",".fr-video-upload-layer",function(){return h(this).addClass("fr-drop"),!1},!0),p.events.$on(n,"dragleave dragend",".fr-video-upload-layer",function(){return h(this).removeClass("fr-drop"),!1},!0),p.events.$on(n,"drop",".fr-video-upload-layer",function(e){e.preventDefault(),e.stopPropagation(),h(this).removeClass("fr-drop");var t=e.originalEvent.dataTransfer;if(t&&t.files){var a=n.data("instance")||p;a.events.disableBlur(),a.video.upload(t.files),a.events.enableBlur()}},!0),p.helpers.isIOS()&&p.events.$on(n,"touchstart",'.fr-video-upload-layer input[type="file"]',function(){h(this).trigger("click")},!0);p.events.$on(n,"change",'.fr-video-upload-layer input[type="file"]',function(){if(this.files){var e=n.data("instance")||p;e.events.disableBlur(),n.find("input:focus").blur(),e.events.enableBlur(),e.video.upload(this.files)}h(this).val("")},!0)}(f),f}function A(e){p.events.focus(!0),p.selection.restore();var t=!1;u&&(j(),t=!0),p.html.insert(''+e+"",!1,p.opts.videoSplitHTML),p.popups.hide("video.insert");var a=p.$el.find(".fr-jiv");a.removeClass("fr-jiv"),a.toggleClass("fr-rv",p.opts.videoResponsive),X(a,p.opts.videoDefaultDisplay,p.opts.videoDefaultAlign),a.toggleClass("fr-draggable",p.opts.videoMove),p.events.trigger(t?"video.replaced":"video.inserted",[a])}function T(){var e=h(this);p.popups.hide("video.insert"),e.removeClass("fr-uploading"),e.parent().next().is("br")&&e.parent().next().remove(),w(e.parent()),p.events.trigger("video.loaded",[e.parent()])}function C(o,e,l,c,d){p.edit.off(),L("Loading video"),e&&(o=p.helpers.sanitizeURL(o));R("Loading video"),function(){var e,t;if(c){p.undo.canDo()||c.find("video").hasClass("fr-uploading")||p.undo.saveStep();var a=c.find("video").data("fr-old-src"),n=c.data("fr-replaced");c.data("fr-replaced",!1),p.$wp?((e=c.clone(!0)).find("video").removeData("fr-old-src").removeClass("fr-uploading"),e.find("video").off("canplay"),a&&c.find("video").attr("src",a),c.replaceWith(e)):e=c;for(var r=e.find("video").get(0).attributes,i=0;i"+p.language.translate("Your browser does not support HTML5 video.")+"");s.toggleClass("fr-draggable",p.opts.videoMove),p.edit.on(),p.events.focus(!0),p.selection.restore(),p.undo.saveStep(),p.opts.videoSplitHTML?p.markers.split():p.markers.insert(),p.html.wrap();var o=p.$el.find(".fr-marker");return p.node.isLastSibling(o)&&o.parent().hasClass("fr-deletable")&&o.insertAfter(o.parent()),o.replaceWith(s),p.selection.clear(),s.find("video").get(0).readyState>s.find("video").get(0).HAVE_FUTURE_DATA||p.helpers.isIOS()?a.call(s.find("video").get(0)):s.find("video").on("canplaythrough load",a),s}(o,l,T),B(),p.undo.saveStep(),p.events.trigger("video.inserted",[e,d])}()}function R(e){var t=p.popups.get("video.insert");if(t||(t=s()),t.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),t.find(".fr-video-progress-bar-layer").addClass("fr-active"),t.find(".fr-buttons").hide(),u){var a=u.find("video");p.popups.setContainer("video.insert",p.$sc);var n=a.offset().left,r=a.offset().top+a.height();p.popups.show("video.insert",n,r,a.outerHeight())}void 0===e&&L(p.language.translate("Uploading"),0)}function S(e){var t=p.popups.get("video.insert");if(t&&(t.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),t.find(".fr-video-progress-bar-layer").removeClass("fr-active"),t.find(".fr-buttons").show(),e||p.$el.find("video.fr-error").length)){if(p.events.focus(),p.$el.find("video.fr-error").length&&(p.$el.find("video.fr-error").parent().remove(),p.undo.saveStep(),p.undo.run(),p.undo.dropRedo()),!p.$wp&&u){var a=u;U(!0),p.selection.setAfter(a.find("video").get(0)),p.selection.restore()}p.popups.hide("video.insert")}}function L(e,t){var a=p.popups.get("video.insert");if(a){var n=a.find(".fr-video-progress-bar-layer");n.find("h3").text(e+(t?" "+t+"%":"")),n.removeClass("fr-error"),t?(n.find("div").removeClass("fr-indeterminate"),n.find("div > span").css("width",t+"%")):n.find("div").addClass("fr-indeterminate")}}function _(e){R();var t=p.popups.get("video.insert").find(".fr-video-progress-bar-layer");t.addClass("fr-error");var a=t.find("h3");a.text(e),p.events.disableBlur(),a.focus()}function w(e){t.call(e.get(0))}function y(e){L("Loading video");var t=this.status,a=this.response,n=this.responseXML,r=this.responseText;try{if(p.opts.videoUploadToS3)if(201==t){var i=function(e){try{var t=h(e).find("Location").text(),a=h(e).find("Key").text();return!1===p.events.trigger("video.uploadedToS3",[t,a,e],!0)?(p.edit.on(),!1):t}catch(n){return $(m,e),!1}}(n);i&&C(i,!1,[],e,a||n)}else $(m,a||n);else if(200<=t&&t<300){var s=function(e){try{if(!1===p.events.trigger("video.uploaded",[e],!0))return p.edit.on(),!1;var t=JSON.parse(e);return t.link?t:($(c,e),!1)}catch(a){return $(m,e),!1}}(r);s&&C(s.link,!1,s,e,a||r)}else $(g,a||r)}catch(o){$(m,a||r)}}function I(){$(m,this.response||this.responseText||this.responseXML)}function O(e){if(e.lengthComputable){var t=e.loaded/e.total*100|0;L(p.language.translate("Uploading"),t)}}function x(){p.edit.on(),S(!0)}function F(e){if(!p.core.sameInstance(f))return!0;e.preventDefault(),e.stopPropagation();var t=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),a=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!t||!a)return!1;if("mousedown"==e.type){var n=p.$oel.get(0).ownerDocument,r=n.defaultView||n.parentWindow,i=!1;try{i=r.location!=r.parent.location&&!(r.$&&r.$.FE)}catch(s){}i&&r.frameElement&&(t+=p.helpers.getPX(h(r.frameElement).offset().left)+r.frameElement.clientLeft,a=e.clientY+p.helpers.getPX(h(r.frameElement).offset().top)+r.frameElement.clientTop)}p.undo.canDo()||p.undo.saveStep(),(d=h(this)).data("start-x",t),d.data("start-y",a),o.show(),p.popups.hideAll(),W()}function k(e){if(!p.core.sameInstance(f))return!0;if(d){e.preventDefault();var t=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),a=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!t||!a)return!1;var n=d.data("start-x"),r=d.data("start-y");d.data("start-x",t),d.data("start-y",a);var i=t-n,s=a-r,o=u.find("iframe, embed, video"),l=o.width(),c=o.height();(d.hasClass("fr-hnw")||d.hasClass("fr-hsw"))&&(i=0-i),(d.hasClass("fr-hnw")||d.hasClass("fr-hne"))&&(s=0-s),o.css("width",l+i),o.css("height",c+s),o.removeAttr("width"),o.removeAttr("height"),P()}}function N(e){if(!p.core.sameInstance(f))return!0;d&&u&&(e&&e.stopPropagation(),d=null,o.hide(),P(),i(),p.undo.saveStep())}function D(e){return'
    '}function M(e,t,a,n){return e.pageX=t,e.pageY=t,F.call(this,e),e.pageX=e.pageX+a*Math.floor(Math.pow(1.1,n)),e.pageY=e.pageY+a*Math.floor(Math.pow(1.1,n)),k.call(this,e),N.call(this,e),++n}function B(){var e,t=Array.prototype.slice.call(p.el.querySelectorAll("video, .fr-video > *")),a=[];for(e=0;ep.opts.videoMaxSize)return $(v),!1;if(p.opts.videoAllowedTypes.indexOf(a.type.replace(/video\//g,""))<0)return $(E),!1;if(p.drag_support.formdata&&(t=p.drag_support.formdata?new FormData:null),t){var n;if(!1!==p.opts.videoUploadToS3)for(n in t.append("key",p.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(a.name||"untitled")),t.append("success_action_status","201"),t.append("X-Requested-With","xhr"),t.append("Content-Type",a.type),p.opts.videoUploadToS3.params)p.opts.videoUploadToS3.params.hasOwnProperty(n)&&t.append(n,p.opts.videoUploadToS3.params[n]);for(n in p.opts.videoUploadParams)p.opts.videoUploadParams.hasOwnProperty(n)&&t.append(n,p.opts.videoUploadParams[n]);t.append(p.opts.videoUploadParam,a);var r=p.opts.videoUploadURL;p.opts.videoUploadToS3&&(r=p.opts.videoUploadToS3.uploadURL?p.opts.videoUploadToS3.uploadURL:"https://"+p.opts.videoUploadToS3.region+".amazonaws.com/"+p.opts.videoUploadToS3.bucket);var i=p.core.getXHR(r,p.opts.videoUploadMethod);i.onload=function(){y.call(i,u)},i.onerror=I,i.upload.onprogress=O,i.onabort=x,R(),p.events.disableBlur(),p.edit.off(),p.events.enableBlur();var s=p.popups.get("video.insert");s&&h(s.off("abortUpload")).on("abortUpload",function(){4!=i.readyState&&i.abort()}),i.send(t)}}}function $(e,t){p.edit.on(),u&&u.find("video").addClass("fr-error"),_(p.language.translate("Something went wrong. Please try again.")),p.events.trigger("video.error",[{code:e,message:r[e]},t])}function G(){if(u){var e=p.popups.get("video.size"),t=u.find("iframe, embed, video");e.find('input[name="width"]').val(t.get(0).style.width||t.attr("width")).trigger("change"),e.find('input[name="height"]').val(t.get(0).style.height||t.attr("height")).trigger("change")}}function Y(e){if(e)return p.popups.onRefresh("video.size",G),!0;var t={buttons:'
    '+p.button.buildList(p.opts.videoSizeButtons)+"
    ",size_layer:'
    "},a=p.popups.create("video.size",t);return p.events.$on(p.$wp,"scroll",function(){u&&p.popups.isVisible("video.size")&&(p.events.disableBlur(),w(u))}),a}function V(e){if(void 0===e&&(e=u),e){if(e.hasClass("fr-fvl"))return"left";if(e.hasClass("fr-fvr"))return"right";if(e.hasClass("fr-dvb")||e.hasClass("fr-dvi"))return"center";if("block"==e.css("display")){if("left"==e.css("text-algin"))return"left";if("right"==e.css("text-align"))return"right"}else{if("left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function z(e){void 0===e&&(e=u);var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function j(){if(u&&!1!==p.events.trigger("video.beforeRemove",[u])){var e=u;p.popups.hideAll(),U(!0),p.selection.setBefore(e.get(0))||p.selection.setAfter(e.get(0)),e.remove(),p.selection.restore(),p.html.fillEmptyBlocks()}}function q(){S()}function X(e,t,a){!p.opts.htmlUntouched&&p.opts.useClasses?(e.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),e.addClass("fr-fv"+a[0]+" fr-dv"+t[0])):"inline"==t?(e.css({display:"inline-block"}),"center"==a?e.css({"float":"none"}):"left"==a?e.css({"float":"left"}):e.css({"float":"right"})):(e.css({display:"block",clear:"both"}),"left"==a?e.css({textAlign:"left"}):"right"==a?e.css({textAlign:"right"}):e.css({textAlign:"center"}))}function Q(){var e=p.$el.find("video").filter(function(){return 0===h(this).parents("span.fr-video").length});if(0!=e.length){e.wrap(h(document.createElement("span")).attr("class","fr-video").attr("contenteditable","false")),p.$el.find("embed, iframe").filter(function(){if(p.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),0*").first().replaceWith(p.icon.create("video-align-"+V()))},refreshAlignOnShow:function(e,t){u&&t.find('.fr-command[data-param1="'+V()+'"]').addClass("fr-active").attr("aria-selected",!0)},display:function(e){u.removeClass("fr-dvi fr-dvb"),!p.opts.htmlUntouched&&p.opts.useClasses?"inline"==e?u.addClass("fr-dvi"):"block"==e&&u.addClass("fr-dvb"):X(u,e,V()),J(),P(),i(),p.selection.clear()},refreshDisplayOnShow:function(e,t){u&&t.find('.fr-command[data-param1="'+z()+'"]').addClass("fr-active").attr("aria-selected",!0)},remove:j,hideProgressBar:S,showSizePopup:function(){var e=p.popups.get("video.size");e||(e=Y()),S(),p.popups.refresh("video.size"),p.popups.setContainer("video.size",p.$sc);var t=u.find("iframe, embed, video"),a=t.offset().left+t.outerWidth()/2,n=t.offset().top+t.height();p.popups.show("video.size",a,n,t.height(),!0)},replace:function(){var e=p.popups.get("video.insert");e||(e=s()),p.popups.isVisible("video.insert")||(S(),p.popups.refresh("video.insert"),p.popups.setContainer("video.insert",p.$sc));var t=u.offset().left+u.outerWidth()/2,a=u.offset().top+u.height();p.popups.show("video.insert",t,a,u.outerHeight(),!0)},back:function(){u?(p.events.disableBlur(),u[0].click()):(p.events.disableBlur(),p.selection.restore(),p.events.enableBlur(),p.popups.hide("video.insert"),p.toolbar.showInline())},setSize:function(e,t){if(u){var a=p.popups.get("video.size"),n=u.find("iframe, embed, video");n.css("width",e||a.find('input[name="width"]').val()),n.css("height",t||a.find('input[name="height"]').val()),n.get(0).style.width&&n.removeAttr("width"),n.get(0).style.height&&n.removeAttr("height"),a.find("input:focus").blur(),setTimeout(function(){u.trigger("click")},p.helpers.isAndroid()?50:0)}},get:function(){return u},showProgressBar:R}},be.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"}),be.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera",SVG_KEY:"insertVideo"}),be.DefineIcon("videoByURL",{NAME:"link",SVG_KEY:"insertLink"}),be.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(e){this.video.refreshByURLButton(e)}}),be.DefineIcon("videoEmbed",{NAME:"code",SVG_KEY:"codeView"}),be.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(e){this.video.refreshEmbedButton(e)}}),be.DefineIcon("videoUpload",{NAME:"upload",SVG_KEY:"upload"}),be.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(e){this.video.refreshUploadButton(e)}}),be.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()}}),be.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),be.DefineIcon("videoDisplay",{NAME:"star",SVG_KEY:"star"}),be.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.video.display(t)},refresh:function(e){this.opts.videoTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.video.refreshDisplayOnShow(e,t)}}),be.DefineIcon("video-align",{NAME:"align-left",SVG_KEY:"align Left"}),be.DefineIcon("video-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),be.DefineIcon("video-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),be.DefineIcon("video-align-center",{NAME:"align-justify",SVG_KEY:"alignJustify"}),be.DefineIcon("videoAlign",{NAME:"align-center",SVG_KEY:"alignCenter"}),be.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var e='"},callback:function(e,t){this.video.align(t)},refresh:function(e){this.video.refreshAlign(e)},refreshOnShow:function(e,t){this.video.refreshAlignOnShow(e,t)}}),be.DefineIcon("videoReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),be.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),be.DefineIcon("videoRemove",{NAME:"trash",SVG_KEY:"remove"}),be.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),be.DefineIcon("videoSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}),be.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),be.DefineIcon("videoBack",{NAME:"arrow-left",SVG_KEY:"back"}),be.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(e){this.video.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),be.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),be.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}}),Object.assign(be.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style","text-indent","border","border-.*","line-height"],wordPasteModal:!0,wordPasteKeepFormatting:!0}),be.PLUGINS.wordPaste=function(A){var s,n,d=A.$,o="word_paste",f={};function t(e){var t=A.opts.wordAllowedStyleProps;e||(A.opts.wordAllowedStyleProps=[]),0===n.indexOf("")&&(n=""+n+"
    "),n=function(e,t){0<=e.indexOf("]*(]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1"));!function(e){for(var t=e.split("v:shape"),a=1;a').remove()}}(e,t),!0});for(var i=r.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),s=i.length-1;0<=s;s--)i[s].previousElementSibling&&"LI"===i[s].previousElementSibling.tagName&&i[s].previousElementSibling.appendChild(i[s]);p(r,function(t){if(t.nodeType===Node.TEXT_NODE)return t.data=t.data.replace(/
    (\n|\r)/gi,"
    "),!1;if(t.nodeType===Node.ELEMENT_NODE){if(C(t)){var a=t.parentNode,n=t.previousSibling,r=function e(t,a,n){var r=/[0-9a-zA-Z]./gi;var i=!1;var s=!1;var o=!1;var l;var c=t.querySelector('span[style="mso-list:Ignore"]');var d;var f;c&&(i=i||r.test(c.textContent));var p=i?"ol":"ul";var u="<"+p+">";for(;t;){if(!C(t)){if(t.outerHTML&&0"+d+""):(f=e(t,a,h),u+=f.el.outerHTML,t=f.currentNode);var g=t&&t.nextElementSibling;g&&(l=g.previousElementSibling),t&&t.parentNode&&t.parentNode.removeChild(t),t=g}}u+="";var m=document.createElement("div");m.innerHTML=u;var v=m.firstElementChild;return{el:v,currentNode:t}}(t,o).el,i=null;return(i=n?n.nextSibling:a.firstChild)?a.insertBefore(r,i):a.appendChild(r),!1}return"FONT"===t.tagName&&o["."+t.getAttribute("class")]&&(t=b(t,"span")),g(t,o)}if(t.nodeType===Node.COMMENT_NODE){if(-1([\r\n\u00a0 ]*)<\/span>/g,function(e,t){for(var a="",n=0;n++/gi,"")}function b(e,t){for(var a=document.createElement(t),n=0;n");for(var s=a.firstElementChild,o=1===a.children.length;s;)"P"!==s.tagName||C(s)||o&&R(s),s=s.nextElementSibling;if(t){var l=a.getAttribute("class");if(l){var c=(l=S(l)).match(/xl[0-9]+/gi);if(c){var d="."+c[0];t[d]&&L(a,t[d])}}t.td&&L(a,t.td)}var f=a.getAttribute("style");f&&(f=S(f))&&";"!==f.slice(-1)&&(f+=";");var p=a.getAttribute("valign");if(!p&&f){var u=f.match(/vertical-align:.+?[; "]{1,1}/gi);u&&(p=u[u.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var h=null;if(f){var g=f.match(/text-align:.+?[; "]{1,1}/gi);g&&(h=g[g.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"===h&&(h=null)}var m=null;if(f){var v=f.match(/background:.+?[; "]{1,1}/gi);v&&(m=v[v.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var E=a.getAttribute("colspan"),b=a.getAttribute("rowspan");E&&a.setAttribute("colspan",E),b&&a.setAttribute("rowspan",b),p&&(a.style["vertical-align"]=p),h&&(a.style["text-align"]=h),m&&(a.style["background-color"]=m),i&&a.setAttribute("width",i),a=a.nextElementSibling}for(a=e.firstElementChild;a;)i=a.getAttribute("width"),r?a.removeAttribute("width"):a.setAttribute("width",100*parseInt(i,10)/n+"%"),a=a.nextElementSibling}(e,t),"A"!==a||e.attributes.getNamedItem("href")||e.attributes.getNamedItem("name")||!e.innerHTML||(e.outerHTML=e.innerHTML),"A"==a&&e.getAttribute("href")&&e.querySelector("img")){var v=e.querySelectorAll("span");for(i=0;i"),"TABLE"===a&&(e.style.width=e.style.width||"100%"),e.getAttribute("lang")&&e.removeAttribute("lang"),e.getAttribute("style")&&-1!==e.getAttribute("style").toLowerCase().indexOf("mso")){var E=S(e.getAttribute("style"));(E=E.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""))?e.setAttribute("style",E):e.removeAttribute("style")}return!0}return{_init:function(){A.events.on("paste.wordPaste",function(e){return n=e,A.opts.wordPasteModal?function(){if(!s){var e='

    '+A.language.translate("Word Paste Detected")+"

    ",t=(r='
    ',r+='

    '+A.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"

    ",r+='
    ",r+="
    "),a=A.modals.create(o,e,t),n=a.$body;s=a.$modal,a.$modal.addClass("fr-middle"),A.events.bindClick(n,"button.fr-remove-word",function(){var e=s.data("instance")||A;e.wordPaste.clean()}),A.events.bindClick(n,"button.fr-keep-word",function(){var e=s.data("instance")||A;e.wordPaste.clean(!0)}),A.events.$on(d(A.o_win),"resize",function(){A.modals.resize(o)})}var r;A.modals.show(o),A.modals.resize(o)}():t(A.opts.wordPasteKeepFormatting),!1})},clean:t}}});