Upgraded to Redactor II 1.2.7
authorAlexander Ebert <ebert@woltlab.com>
Wed, 5 Oct 2016 11:37:08 +0000 (13:37 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 5 Oct 2016 11:37:08 +0000 (13:37 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/redactor.js
wcfsetup/install/files/js/3rdParty/redactor2/redactor.min.js

index 678cf62bac43bc084056629216714e207d9e34fb..d3cc66a052f069cabca17590083c7f926207e227 100644 (file)
@@ -1,11 +1,11 @@
 /*
        Redactor II
-       Version 1.2.6
-       Updated: September 3, 2015
+       Version 1.2.7
+       Updated: October 4, 2016
 
        http://imperavi.com/redactor/
 
-       Copyright (c) 2009-2016, Imperavi LLC.
+       Copyright (c) 2009-2016, Imperavi Oy.
        License: http://imperavi.com/redactor/license/
 
        Usage: $('#content').redactor();
 
        // Options
        $.Redactor = Redactor;
-       $.Redactor.VERSION = '1.2.6';
+       $.Redactor.VERSION = '1.2.7';
        $.Redactor.modules = ['air', 'autosave', 'block', 'buffer', 'build', 'button', 'caret', 'clean', 'code', 'core', 'detect', 'dropdown',
                                                  'events', 'file', 'focus', 'image', 'indent', 'inline', 'insert', 'keydown', 'keyup',
                                                  'lang', 'line', 'link', 'linkify', 'list', 'marker', 'modal', 'observe', 'offset', 'paragraphize', 'paste', 'placeholder',
                                        {
                                                var currentTag = blocks[i].tagName.toLowerCase();
 
-                                               if ($.inArray(currentTag, this.block.tags) !== -1)
+                                               if ($.inArray(currentTag, this.block.tags) !== -1 && currentTag !== 'figure')
                                                {
                                                        var block = this.utils.replaceToTag(blocks[i], tag);
 
                         html = html.replace(/<b\sid="internal-source-marker(.*?)">([\w\W]*?)<\/b>/gi, "$2");
                                        html = html.replace(/<b(.*?)id="docs-internal-guid(.*?)">([\w\W]*?)<\/b>/gi, "$3");
 
+                        // google docs styles
+                        html = html.replace(/<span[^>]*(font-style: italic; font-weight: bold|font-weight: bold; font-style: italic)[^>]*>([\w\W]*?)<\/span>/gi, '<b><i>$2</i></b>');
+                        html = html.replace(/<span[^>]*(font-style: italic; font-weight: 700|font-weight: 700; font-style: italic)[^>]*>([\w\W]*?)<\/span>/gi, '<b><i>$2</i></b>');
+                        html = html.replace(/<span[^>]*font-style: italic[^>]*>([\w\W]*?)<\/span>/gi, '<i>$1</i>');
+                        html = html.replace(/<span[^>]*font-weight: bold[^>]*>([\w\W]*?)<\/span>/gi, '<b>$1</b>');
+                        html = html.replace(/<span[^>]*font-weight: 700[^>]*>([\w\W]*?)<\/span>/gi, '<b>$1</b>');
+
                                                var msword = this.clean.isHtmlMsWord(html);
                                                if (msword)
                                                {
                                        html = html.replace(/\n/g, " ");
                                        html = html.replace(/<br\s?\/?>|<\/p>|<\/div>|<\/li>|<\/td>/gi, '\n\n');
 
+                                       // lists
+                                       var $div = $("<div/>").html(html);
+
+                                       var lastList = false;
+                                       var lastLevel = 1;
+                                       var listsIds = [];
+
+                                       $div.find("p[style]").each(function()
+                                       {
+                                               var matches = $(this).attr('style').match(/mso\-list\:l([0-9]+)\slevel([0-9]+)/);
+
+                                               if (matches)
+                                               {
+                                                       var currentList = parseInt(matches[1]);
+                                                       var currentLevel = parseInt(matches[2]);
+                                                       var listType = $(this).html().match(/^[\w]+\./) ? "ol" : "ul";
+
+                                                       var $li = $("<li/>").html($(this).html());
+
+                                                       $li.html($li.html().replace(/^([\w\.]+)</, '<'));
+                                                       $li.find("span:first").remove();
+
+                                                       if (currentLevel == 1 && $.inArray(currentList, listsIds) == -1)
+                                                       {
+                                                               var $list = $("<" + listType + "/>").attr({"data-level": currentLevel, "data-list": currentList}).html($li);
+                                                               $(this).replaceWith($list);
+
+                                                               lastList = currentList;
+                                                               listsIds.push(currentList);
+                                                       }
+                                                       else
+                                                       {
+                                                               if (currentLevel > lastLevel)
+                                                               {
+                                                                       var $prevList = $div.find('[data-level="' + lastLevel + '"][data-list="' + lastList + '"]');
+                                                                       var $lastList = $prevList;
+
+                                                                       for(var i = lastLevel; i < currentLevel; i++)
+                                                                       {
+                                                                               $list = $("<" + listType + "/>");
+                                                                               $list.appendTo($lastList.find("li").last());
+
+                                                                               $lastList = $list;
+                                                                       }
+
+                                                                       $lastList.attr({"data-level": currentLevel, "data-list": currentList}).html($li);
+
+                                                               }
+                                                               else
+                                                               {
+                                                                       var $prevList = $div.find('[data-level="' + currentLevel + '"][data-list="' + currentList + '"]').last();
+
+                                                                       $prevList.append($li);
+                                                               }
+
+                                                               lastLevel = currentLevel;
+                                                               lastList = currentList;
+
+                                                               $(this).remove();
+                                                       }
+                                               }
+                                       });
+
+                                       $div.find('[data-level][data-list]').removeAttr('data-level data-list');
+                                       html = $div.html();
+
                                        return html;
                                },
                                replaceNbspToSpaces: function(html)
                                },
                                convertTags: function(html, data)
                                {
-
                     var $div = $('<div>').html(html);
 
                     // remove iframe
                                        this.observe.load();
                                        this.events.startDetectChanges();
                                },
-                               set: function(html)
+                               set: function(html, options)
                                {
                                        html = $.trim(html);
 
+
+                    options = options || {};
+
+                    // start
+                    if (options.start)
+                    {
+                        this.start = options.start;
+                    }
+
                                        // clean
                                        if (this.opts.type === 'textarea')
                                        {
                                                        }
                                                        else
                                                        {
-                                                               html = $(html).append(this.marker.get());
+                                                       var $last = $(html).children().last();
+                                                               $last.append(this.marker.get());
 
                                                                if (breaked.type === 'start')
                                                                {
                                                return true;
                                        }
 
-                                       if (this.utils.isEmpty(this.code.get()) && this.opts.tabAsSpaces === false)
+                                       var isList = (this.keydown.block && this.keydown.block.tagName === 'LI')
+                                       if (this.utils.isEmpty(this.code.get()) || (!isList && !this.keydown.pre && this.opts.tabAsSpaces === false))
                                        {
                                                return true;
                                        }
                                        e.preventDefault();
                                        this.buffer.set();
 
-                    var isListStart = (this.keydown.block && this.keydown.block.tagName === 'LI' && this.utils.isStartOfElement(this.keydown.block));
+                    var isListStart = (isList && this.utils.isStartOfElement(this.keydown.block));
                                        var node;
+
                                        if (this.keydown.pre && !e.shiftKey)
                                        {
                                                node = (this.opts.preSpaces) ? document.createTextNode(Array(this.opts.preSpaces + 1).join('\u00a0')) : document.createTextNode('\t');
                                        var re5 = new RegExp('^tel:(.*?)', 'i');
 
                                        // add protocol
-                                       if (url.search(re1) === -1 && url.search(re2) !== -1)
+                                       if (url.search(re1) === -1 && url.search(re2) !== -1 && url.search(re3) === -1)
                                        {
                                                url = 'http://' + url;
                                        }
                                },
                                createPasteBox: function(pre)
                                {
-                                       var css = { position: 'fixed', width: 0, top: 0, left: '-9999px' };
+                                       var css = { position: 'fixed', width: '1px', top: 0, left: '-9999px' };
 
                                        this.$pasteBox = (pre) ? $('<textarea>').css(css) : $('<div>').attr('contenteditable', 'true').css(css);
                                        this.paste.appendPasteBox();
index 00c0eddef0ca017aec00586553a6dade969007e9..35d0a6b44056c2b38ff205210032d79f6c63d081 100644 (file)
@@ -1 +1,5 @@
-eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!j(t){"gM gN";j e(t,i){v 1q e.4v.2o(t,i)}aV.4v.7h||(aV.4v.7h=j(t){q e=f;v j(){v e.5l(t)}});q i=0;t.fn.C=j(i){q o=[],r=6z.4v.aW.49(aX,1);v"8D"==O i?f.1h(j(){q e,s=t.22(f,"C");if("-1"!==i.2G(/\\./)?(e=i.3E("."),"12"!=O s[e[0]]&&(e=s[e[0]][e[1]])):e=s[i],"12"!=O s&&t.5Q(e)){q n=e.5l(s,r);1A 0!==n&&n!==s&&o.2q(n)}23 t.5R(\'gO gP gQ "\'+i+\'" 1X 3t\')}):f.1h(j(){t.22(f,"C",{}),t.22(f,"C",e(f,i))}),0===o.L?f:1===o.L?o[0]:o},t.3t=e,t.3t.gR="1.2.6",t.3t.8E=["1H","2v","V","1T","1M","R","1y","1I","26","E","1F","Q","1G","2i","1Y","1k","2w","1m","1t","Y","2g","1l","4a","1b","2p","3L","1n","N","1K","2W","2n","3u","1B","2j","F","3F","3l","15","1a","5S","K","aY"],t.3t.6A={},t.3t.y={3m:!1,1l:"en",8F:"gS",1Y:!1,aZ:!1,b0:!1,5T:!1,6B:!1,8G:!1,8H:!1,8I:!1,5m:!1,4b:{},1B:!1,2p:!0,5U:!0,8J:!1,8K:!0,8L:!0,8M:["1w","h1","h2","h3","h4","h5","h6","7i","gT","gU","gV","4O","b1","3G","2H","2Q","li","2h","p","3v","3S"],6C:["br","5V","b2","26","3T","1N","b3","b4","8N","8O","b5","q","b6","b7","b","u","em","i"],8P:!1,5n:4,7j:!1,b8:!0,2v:!1,8Q:!1,7k:!1,3w:1D,7l:"2i",b9:!1,ba:!1,bb:!0,bc:!0,7m:!0,bd:!0,8R:!0,4w:1D,bf:"2i",bg:!1,bh:!1,7n:!0,3x:!1,bi:!1,bj:!0,bk:!1,6D:30,8S:!1,8T:"8U-gW",15:!0,bl:!0,3y:14,5o:0,7o:!1,1H:!1,8V:!1,8W:["p","2h","1w","h1","h2","h3","h4","h5","h6"],8X:!1,3M:["2b","3U","3V","4c","3N","1k","2i","1b"],8Y:[],7p:[],3n:!0,bm:!0,8Z:{b:"5V",i:"em",6E:"3T"},3F:{"3e+4P+m, 4Q+4P+m":{1L:"1m.92"},"3e+b, 4Q+b":{1L:"1m.2b",4R:["3U"]},"3e+i, 4Q+i":{1L:"1m.2b",4R:["3V"]},"3e+h, 4Q+h":{1L:"1m.2b",4R:["bn"]},"3e+l, 4Q+l":{1L:"1m.2b",4R:["bo"]},"3e+k, 4Q+k":{1L:"1b.1W"},"3e+4P+7":{1L:"3L.3H",4R:["5W"]},"3e+4P+8":{1L:"3L.3H",4R:["6F"]}},bp:!1,bq:["4c","3V","3U"],bs:{b:"3U",5V:"3U",i:"3V",em:"3V",3T:"4c",6E:"4c"},4S:{en:{2b:"gX",1k:"gY",2i:"gZ",1b:"h0",3U:"h7",3V:"h8",4c:"h9",5X:"ha","3U-4T":"B","3V-4T":"I","4c-4T":"S","5X-4T":"U",3N:"hb","1b-1t":"bt 1b","1b-2r":"bu 1b","1b-in-1q-3I":"hc 1b in 1q 3I",4d:"hd",4U:"he",3o:"hf",1t:"bt",2C:"hg","4V":"hh",1p:"hi",2r:"bu",1u:"hj",bv:"hk 1p",93:"hl",26:"hm",bw:"5Y 1",bx:"5Y 2",by:"5Y 3",bz:"5Y 4",bA:"5Y 5",bB:"5Y 6",5Z:"hn",94:"94",6F:"ho bC",5W:"hp bC",60:"hq",2w:"hs",6G:"ht","1a-1Z":"hu 2i hv hw ",5p:"hx",bD:"hy",bE:"hz","bF-bG-1Z":"hA 1p J"}},1f:"2x",1m:!1,1T:[],62:[],63:["a","1N","5V","6E","b","u","em","i","26","3T","b2","b3","b4","8N","8O","b5","q","b6","b7"],7q:["1w","2H","2Q","li","p","h1","h2","h3","h4","h5","h6","dl","dt","dd","1v","3G","2h","hB","3S","3v","bH","2k","95","bI","bJ","bK","4W"],2n:!0,9a:["7i","1v","1w","5q","2H","2Q","h1","h2","h3","h4","h5","h6","dl","2h","3S","bH","2k","95","bI","bJ","bK","2X","2L","3n","4W","bL","2R","2x","R","hC","hD","bM","hE","hr","hF","hG","hH","hI","3v","hJ","hK","hL","p"],3p:"<p>&#7r;</p>",9b:"&#7r;",bN:["1k/bO","1k/hM","1k/bP"],4e:5r.4e.2S(),1K:{6H:[]},3z:{6I:/4X?:\\/\\/(?:[0-9A-Z-]+\\.)?(?:hN\\.be\\/|bQ\\.7s\\S*[^\\w\\-\\s])([\\w\\-]{11})(?=[^\\w\\-]|$)(?![?=&+%\\w.\\-]*(?:[\'"][^<>]*>|<\\/a>))[?=&+%\\w.-]*/gi,6J:/4X?:\\/\\/(64\\.)?bR.7s\\/(\\d+)($|\\/)/,7t:/((4X?|64)[^\\s]+\\.)(hO?g|bO|bP)(\\?[^\\s-]+)?/gi,1x:/(4X?:\\/\\/(?:64\\.|(?!64))[^\\s\\.]+\\.[^\\s]{2,}|64\\.[^\\s]+\\.[^\\s]{2,})/gi}},e.fn=t.3t.4v={29:{4x:8,4f:46,bS:38,bT:40,4g:13,7u:32,6K:27,9c:9,bU:17,bV:91,bW:16,bX:18,hP:39,hQ:37,bY:91},2o:j(e,o){v f.$1o=t(e),f.1z=i++,f.bZ(o),f.c0(),f.y.b0&&!f.$1o.2s("C-1E-3f-2r")?f.c1(o):(f.$1o.2s("C-1E-3f-2r")&&f.$1o.2l("C-1E-3f-2r"),f.c2=1q 1U("^("+f.y.7q.3A("|").7v()+")$","i"),f.c3=1q 1U("^("+f.y.63.3A("|").7v()+")$","i"),f.y.7m=1D===f.y.3w?!1:f.y.7m,f.y.7n=1D===f.y.4w?!1:f.y.7n,f.8W={},f.1l.3a(),t.4Y(f.y.3F,f.y.bp),f.$J=f.$1o,f.c4(),f.E.1r("1V"),f.E.1r("c5"),f.1V=!0,1A f.1M.1V())},c4:j(){f.1M.4Z()||f.y.1m?f.y.1f="1m":f.1M.3O("7w")?f.y.1f="1v":f.1M.3O("67")&&(f.y.1f="1w")},c1:j(e){f.$1o.1s("1E.C-1E-3f-2r",t.T(j(){f.68(e)},f)),f.$1o.1S("C-1E-3f-2r")},68:j(e){t.4Y(e.4b,{c5:j(){f.1t.2M(f.1n.M(),!1)},68:j(){f.F.2m(),f.7x=f.26.M(),t(f.y.7y).1J(".C-1E-3f-2r"),t(f.y.7y).1W().1s("1E.C-1E-3f-2r",t.T(j(i){i.1P(),f.E.4y(),f.1G.69=!1,f.$1o.1e(f.7x),f.E.1r("4U",f.7x),f.1G.69=!0,f.7x="",t(f.y.7y).1Q(),t(f.y.7z).1Q(),f.$1o.1s("1E.C-1E-3f-2r",t.T(j(){f.68(e)},f)),f.$1o.1S("C-1E-3f-2r")},f)),t(f.y.7z).1J(".C-1E-3f-2r"),t(f.y.7z).1W().1s("1E.C-1E-3f-2r",t.T(j(i){i.1P(),f.E.4y(),f.E.1r("2C",f.26.M()),t(f.y.7y).1Q(),t(f.y.7z).1Q(),f.$1o.1s("1E.C-1E-3f-2r",t.T(j(){f.68(e)},f)),f.$1o.1S("C-1E-3f-2r")},f))}}),f.$1o.C(e),f.$1o.1J(".C-1E-3f-2r")},bZ:j(e){q i={};"12"!=O t.3t.6A.9d?f.$1o.2s(t.3t.6A.9d)&&(i=t.3t.6A):i=t.3t.6A,f.y=t.4Y({},t.4Y(!0,{},t.3t.y),t.4Y(!0,{},i),f.$1o.22(),e)},9e:j(t){v c6.hR(t).5s(j(e){v"j"==O t[e]})},c0:j(){1X(q e=t.3t.8E.L,i=0;e>i;i++)f.c7(t.3t.8E[i])},c7:j(t){if("12"!=O f[t]){f[t]=f[t]();1X(q e=f.9e(f[t]),i=e.L,o=0;i>o;o++)f[t][e[o]]=f[t][e[o]].7h(f)}},1H:j(){v{4h:!1,6a:j(){f.y.1H&&f.F.M().9f()},hS:j(){f.y.1H&&f.F.M().c8()},1M:j(){f.1F.4i()||(f.R.9g(),f.R.9h(),0!==f.y.3M.L&&(f.$1H=f.1H.7A(),f.y.8V!==!1&&f.$1H.28("2z",f.y.8V),f.1H.1i(),f.R.$15=f.$1H,f.R.9i(),f.R.3a(f.$1H),f.E.J().1s("c9.C",f,t.T(j(t){""!==f.F.1p()&&f.1H.1W(t)},f))))},1i:j(){f.$1H.9j("2N")},7A:j(){v t("<2H>").1S("C-1H").1g({id:"C-1H-"+f.1z,5t:"15"}).1Q()},1W:j(e){f.1n.1j(),f.F.2C(),f.F.2m(!1),t(".C-1H").1Q();q i=0,o=f.$1H.6L();t(2e).2z()<e.9k+o&&(i=7B),f.$1H.28({2O:e.9k-i+"3W",2I:e.ca+10+t(14).3X()+"3W"}).1W(),f.1H.4h=!0,f.1H.cb()},cb:j(){t(14).1s("3J.C-1H."+f.1z,t.T(j(e){q i=t(e.1O).2a(".C-Q").L;if(0===t(e.1O).2a(f.$1H).L&&0===i){q o=f.1H.1Q(e);o!==!1&&f.1n.1j()}},f)).1s("Y.C-1H."+f.1z,t.T(j(e){q i=e.5u;if((f.K.3Y(e.1O)||t(e.1O).2s("C-in"))&&0===t(e.1O).2a("#C-N").L){if(i===f.29.6K)f.F.M().9f(),f.1n.1j();23 if(i===f.29.4x||i===f.29.4f){q o=f.F.M(),r=f.F.2Y(o);r.50(),f.1n.1j()}23 i===f.29.4g&&(f.F.M().c8(),f.1n.1j());f.1H.4h?f.1H.1Q(e):(f.F.M().9f(),f.1n.1j())}},f))},1Q:j(e){q i=e.5v||e.51||e.4z&&e.9l;v i?!1:(f.R.6M(),f.$1H.6N(52),f.1H.4h=!1,1A t(14).1J("3J.C-1H."+f.1z))}}},2v:j(){v{4h:!1,1e:!1,2o:j(){f.y.2v&&(f.2v.4h=!0,f.2v.2T=f.y.8Q?f.y.8Q:f.$2x.1g("2T"))},is:j(){v f.2v.4h},3Z:j(){if(f.y.2v&&(f.2v.5w=f.26.M(),f.2v.1e!==f.2v.5w)){q e={};e.2T=f.2v.2T,e[f.2v.2T]=f.2v.5w,e=f.2v.6O(e);q i=t.hT({1x:f.y.2v,1f:"hU",22:e});i.hV(f.2v.cc)}},6O:j(e){v f.y.7k===!1||"2X"!=O f.y.7k?e:(t.1h(f.y.7k,t.T(j(i,o){1D!==o&&0===o.6b().3P("#")&&(o=t(o).2D()),e[i]=o},f)),e)},cc:j(e){q i;6c{i=t.cd(e)}6d(o){i=e}q r="12"==O i.5R?"2v":"hW";f.E.1r(r,f.2v.2T,i),f.2v.1e=f.2v.5w},9m:j(){f.2v.4h=!1,ce(f.7C)}}},V:j(){v{2b:j(e,i,o,r){v e="93"===e?"2h":e,f.V.7D=["p","2h","1w","h1","h2","h3","h4","h5","h6","1v","3v"],-1!==t.3g(e,f.V.7D)?("p"===e&&"12"==O i&&(i="1C"),f.1B.1Q(),f.1T.2c(),f.K.3B()?f.V.7E(e,i,o,r):f.V.7F(e,i,o,r)):1A 0},7E:j(e,i,o,r){f.F.2C();q s=f.F.V(),n=s.1c.2S();if(-1===t.3g(n,f.V.7D))v 1A f.F.2m();n===e&&(e="p");q a=f.K.3h(s,e);if("2X"==O i){r=o;1X(q l in i)a=f.V.4A(a,l,i[l],r)}23 a=f.V.4A(a,i,o,r);v"1w"===e&&1===a.L&&t(a).1e(t.2t(t(a).1e())),f.F.2m(),f.V.9n(a),a},7F:j(e,i,o,r){f.F.2C();q s=[],n=f.F.53();n[0]&&t(n[0]).2s("C-in")&&(n=t(n[0]).1d(f.y.7q.3A(", ")));1X(q a=n.L,l=0;a>l;l++){q c=n[l].1c.2S();if(-1!==t.3g(c,f.V.7D)){q d=f.K.3h(n[l],e);if("2X"==O i){r=o;1X(q h in i)d=f.V.4A(d,h,i[h],r)}23 d=f.V.4A(d,i,o,r);s.2q(d),f.V.9n(d)}}if(f.F.2m(),"1w"===e&&0!==s.L){q u=s[0];t.1h(s,j(e,i){0!==e&&(t(u).1i("\\n"+t.2t(i.1e())),t(i).1j())}),s=[],s.2q(u)}v s},9n:j(e){e=e[0]||e;q i=f.y.63,o=["67","cf","cg","ch","ci","cj","ck"];if(-1!==t.3g(e.1c,o)){if("67"!==e.1c){q r=i.3P("a");i.cl(r,1)}t(e).1d(i.3A(",")).5x(".C-F-1n").2E().7G()}},4A:j(t,e,i,o){if("12"==O e)v t;q r="12"==O o?"G":o;v t="1C"===e?f.V[r+"cm"](i,t):"1j"===r?f.V[r+"6e"](e,t):"cn"===r?f.V[r+"6e"](e,t):f.V[r+"6e"](e,i,t)},4j:j(t){v"12"==O t?f.F.53():t},co:j(e,i){v t(f.V.4j(i)).2f("1C").1S(e)[0]},6P:j(e,i){v t(f.V.4j(i)).6P(e)[0]},1S:j(e,i){v t(f.V.4j(i)).1S(e)[0]},2l:j(e,i){v t(f.V.4j(i)).2l(e)[0]},cp:j(e){v t(f.V.4j(e)).2f("1C")[0]},cq:j(e,i,o){v o=f.V.2f(e,o),t(o).1g(e,i)[0]},cr:j(e,i,o){o=f.V.4j(o);q r=f,s=[];v t.1h(o,j(o,n){q a=t(n);a.1g(e)?s.2q(r.V.2f(e,n)):s.2q(r.V.7H(e,i,n))}),s},7H:j(e,i,o){v t(f.V.4j(o)).1g(e,i)[0]},2f:j(e,i){v t(f.V.4j(i)).2f(e)[0]},cs:j(e){e=f.V.4j(e);q i=[];v t.1h(e,j(e,o){"12"==O o.3Q&&i.2q(o);1X(q r=t(o),s=o.3Q.L,n=0;s>n;n++)r.2f(o.3Q[n].2T);i.2q(r[0])}),i}}},1T:j(){v{2c:j(t){"12"==O t&&f.1T.7I(),"12"==O t||"7J"===t?f.1T.ct():f.1T.cu()},ct:j(){f.F.2C();q t=f.y.1T[f.y.1T.L-1],e=f.E.J().1e();t!==e&&f.y.1T.2q(e),f.F.2m()},cu:j(){f.F.2C(),f.y.62.2q(f.E.J().1e()),f.F.2m()},cv:j(){f.E.J().1e(f.y.1T.cw())},cx:j(){f.E.J().1e(f.y.62.cw())},54:j(){f.y.1T.2q(f.E.J().1e())},7J:j(){0!==f.y.1T.L&&(f.1T.2c("9o"),f.1T.cv(),f.F.2m())},9o:j(){0!==f.y.62.L&&(f.1T.2c("7J"),f.1T.cx(),f.F.2m())},7I:j(){f.y.62=[]}}},1M:j(){v{1V:j(){if("1m"===f.y.1f)f.y.1f="1m";23 if("1v"===f.y.1f){q e=t.2t(f.$J.1e());""===e&&f.$J.1e(f.y.3p)}23"2x"===f.y.1f&&f.1M.cy();f.1M.cz(),f.1M.cA(),f.1M.cB(),f.1M.cC(),f.1M.cD()},cE:j(){f.$1R=t(\'<1v 1C="C-1R" 5t="hX" />\')},cz:j(){f.E.J().1S("C-in")},cA:j(){q t="2x"===f.y.1f?"C-1z-"+f.1z:f.$1o.1g("id");f.E.J().1g("id","12"==O t?"C-1z-"+f.1z:t)},cF:j(){q t=f.$1o.1g("2T");v"12"==O t?"hY-"+f.1z:t},cG:j(){f.$J=t("<1v />"),f.$2x=f.$1o,f.$1o.1g("2T",f.1M.cF()),f.$1R.hZ(f.$1o).1i(f.$J).1i(f.$1o),f.$J.1S("C-J"),f.$1o.1Q(),f.$1R.6f(\'<1N 1C="C-7K-1Z" id="C-7K-\'+f.1z+\'" 3b-9p="i0">\'+f.1l.M("bF-bG-1Z")+"</1N>"),f.$J.1g({"3b-i1":"C-7K-"+f.1z,5t:"i2"})},cy:j(){f.1M.cE(),f.1M.cG(),f.26.1V(f.E.2x().2D()),f.E.2x().2D(f.1I.7L(f.$J.1e()))},3O:j(t){v f.$1o[0].1c===t},4Z:j(){v!f.1M.3O("i3")&&!f.1M.3O("7w")&&!f.1M.3O("67")},cB:j(){f.E.J().1g({9q:!0})},cC:j(){"1m"===f.y.1f&&(f.y.5U=!1),"1m"!==f.y.1f&&"1w"!==f.y.1f||(f.y.cH=!1,f.y.15=!1,f.y.1H=!1,f.y.2p=!1),f.y.5T&&f.E.J().1S("C-5T"),"2x"===f.y.1f&&(f.E.1R().1g("cI",f.y.8F),f.E.J().1g("cI",f.y.8F),f.y.6B&&f.E.J().1g("6B",f.y.6B),f.y.8G?f.E.J().28("cJ-4B",f.y.8G):f.E.J().28("cJ-4B","i4"),f.y.8H&&f.E.J().28("7M-4B",f.y.8H),f.y.8I&&f.E.J().28({"7M-2z":f.y.8I,6Q:"cK"}))},cD:j(){f.1M.cL(),f.1G.2o(),f.1M.cM(),(f.y.15||f.y.1H)&&(f.6R=f.R.2o()),f.y.1H?f.1H.1M():f.y.15&&f.15.1M(),f.1F.4i()&&f.y.cH&&f.y.1H&&(f.y.15=!0,f.15.1M()),(f.y.1H||f.y.15)&&(f.E.J().1s("c9.C-1K."+f.1z+" 2g.C-1K."+f.1z+" 1Y.C-1K."+f.1z+" 4k.C-1K."+f.1z,t.T(f.1K.15,f)),f.E.1o().1s("55.1r.C",t.T(j(){f.R.6M()},f))),f.N.cN(),f.1M.5m(),f.2v.2o(),f.26.1e=f.26.9r(f.E.J().1e()),f.E.1r("2o"),f.E.1r("68"),f.3l.1K(),f.1V=!1},cM:j(){f.y.2p&&f.2p.2b(),f.1B.2o(),f.y.1Y?2U(f.1Y.1V,52):f.y.aZ&&2U(f.1Y.2Z,52)},cL:j(){6c{14.4l("i5",!1,!1),14.4l("i6",!1,!1),14.4l("i7",!1,!1)}6d(t){}},5m:j(){f.y.5m&&t.1h(f.y.5m,t.T(j(i,o){q r="12"!=O 9s&&"12"!=O 9s[o]?9s:e.fn;if(t.5Q(r[o])){f[o]=r[o]();1X(q s=f.9e(f[o]),n=s.L,a=0;n>a;a++)f[o][s[a]]=f[o][s[a]].7h(f);if("12"!=O f[o].4S){q l={};"12"!=O f[o].4S[f.y.1l]?l=f[o].4S[f.y.1l]:"12"==O f[o].4S[f.y.1l]&&"12"!=O f[o].4S.en&&(l=f[o].4S.en);q c=f;t.1h(l,j(t,e){"12"==O c.y.6S[t]&&(c.y.6S[t]=e)})}t.5Q(f[o].2o)&&f[o].2o()}},f))}}},R:j(){v{15:j(){v"12"!=O f.R.$15&&f.R.$15?f.R.$15:f.$15},2o:j(){v{2b:{1u:f.1l.M("2b"),Q:{p:{1u:f.1l.M("bv"),1L:"V.2b"},2h:{1u:f.1l.M("93"),1L:"V.2b"},1w:{1u:f.1l.M("26"),1L:"V.2b"},h1:{1u:f.1l.M("bw"),1L:"V.2b"},h2:{1u:f.1l.M("bx"),1L:"V.2b"},h3:{1u:f.1l.M("by"),1L:"V.2b"},h4:{1u:f.1l.M("bz"),1L:"V.2b"},h5:{1u:f.1l.M("bA"),1L:"V.2b"},h6:{1u:f.1l.M("bB"),1L:"V.2b"}}},3U:{1u:f.1l.M("3U-4T"),1Z:f.1l.M("3U"),1L:"1m.2b"},3V:{1u:f.1l.M("3V-4T"),1Z:f.1l.M("3V"),1L:"1m.2b"},4c:{1u:f.1l.M("4c-4T"),1Z:f.1l.M("4c"),1L:"1m.2b"},5X:{1u:f.1l.M("5X-4T"),1Z:f.1l.M("5X"),1L:"1m.2b"},3N:{1u:f.1l.M("3N"),Q:{6F:{1u:"&cO; "+f.1l.M("6F"),1L:"3L.3H"},5W:{1u:"1. "+f.1l.M("5W"),1L:"3L.3H"},60:{1u:"< "+f.1l.M("60"),1L:"2w.6g",1K:{1o:"li",6h:{1g:{"1C":"C-Q-1b-7N","3b-4C":!0}}}},2w:{1u:"> "+f.1l.M("2w"),1L:"2w.6T",1K:{1o:"li",6h:{1g:{"1C":"C-Q-1b-7N","3b-4C":!0}}}}}},2H:{1u:"&cO; "+f.1l.M("bD"),1L:"3L.3H"},2Q:{1u:"1. "+f.1l.M("bE"),1L:"3L.3H"},60:{1u:f.1l.M("60"),1L:"2w.6g"},2w:{1u:f.1l.M("2w"),1L:"2w.6T"},1k:{1u:f.1l.M("1k"),1L:"1k.1W"},2i:{1u:f.1l.M("2i"),1L:"2i.1W"},1b:{1u:f.1l.M("1b"),Q:{1b:{1u:f.1l.M("1b-1t"),1L:"1b.1W",1K:{1o:"a","in":{1u:f.1l.M("1b-2r")},6h:{1u:f.1l.M("1b-1t")}}},4d:{1u:f.1l.M("4d"),1L:"1b.4d",1K:{1o:"a",6h:{1g:{"1C":"C-Q-1b-7N","3b-4C":!0}}}}}},6G:{1u:f.1l.M("6G"),1L:"4a.1t"}}},9i:j(){t.1h(f.6R.2b.Q,t.T(j(e,i){-1===t.3g(e,f.y.8W)&&4V f.6R.2b.Q[e]},f))},9g:j(){0!==f.y.8Y.L&&f.R.9t(f.y.8Y)},9h:j(){f.1F.4i()&&0!==f.y.7p.L&&f.R.9t(f.y.7p)},9t:j(e){t.1h(e,t.T(j(t,e){q i=f.y.3M.3P(e);-1!==i&&f.y.3M.cl(i,1)},f))},3a:j(e){f.R.3M=[],t.1h(f.y.3M,t.T(j(i,o){!f.6R[o]||"2i"===o&&!f.2i.is()||"1k"===o&&!f.1k.is()||e.1i(t("<li>").1i(f.R.1M(o,f.6R[o])))},f))},1M:j(e,i){if(f.y.15!==!1){q o=t(\'<a 2y="i8:1A(1D);" 1C="41-R 41-\'+e+\'" 1u="\'+i.1u+\'" 3K="\'+e+\'" />\').1e(i.1u);if(o.1g({5t:"R","3b-1Z":i.1u,6B:"-1"}),"12"!=O i.1Z&&(o.1g("3b-1Z",i.1Z),o.1g("1u",i.1Z)),(i.1L||i.56||i.Q)&&f.R.cP(o,e,i),i.Q){o.1S("C-15-1b-Q").1g("3b-cQ",!0);q r=t(\'<2H 1C="C-Q C-Q-\'+f.1z+" C-Q-1R-"+e+\'" 2L="7O: 9u;">\');o.22("Q",r),f.Q.1M(e,r,i.Q)}v f.R.3M.2q(o),o}},i9:j(){v f.R.15().1d("a.41-R")},ia:j(){v f.R.3M},cP:j(e,i,o){e.1s("3J",t.T(j(t){if(t.1P(),e.2s("C-R-4C"))v!1;q r="1L",s=o.1L;v o.56?(r="56",s=o.56):o.Q&&(r="Q",s=!1),f.R.3H(t,i,r,s),!1},f))},3H:j(t,e,i,o,r){!f.1F.4D()&&f.1F.31()||(f.K.cR(),t.ib=!1),"56"===i?f.1m.2b(o):"Q"===i?f.Q.1W(t,e):f.R.cS(t,o,e,r),"Q"!==i&&f.Q.6i(!1),f.y.1H&&"Q"!==i&&f.1H.1Q(t),!f.1F.4D()&&f.1F.31()||f.K.cT()},cS:j(e,i,o,r){q s;if(r="12"==O r?o:r,t.5Q(i))i.49(f,o);23 if("-1"!==i.2G(/\\./)){if(s=i.3E("."),"12"==O f[s[0]])v;"2X"==O r?f[s[0]][s[1]].5l(f,r):f[s[0]][s[1]].49(f,r)}23"2X"==O r?f[i].5l(f,r):f[i].49(f,r);f.1K.3M(e,o)},cU:j(){v f.R.3M},M:j(t){v f.y.15!==!1?f.R.15().1d("a.41-"+t):1A 0},2c:j(t,e){if(f.y.15!==!1){q i=f.R.15().1d("a.41-"+t);v i.1e(e).1g("3b-1Z",e),i}},54:j(e,i){if(f.R.6U(e)!==!0)v t();q o=f.R.1M(e,{1u:i});v f.R.15().1i(t("<li>").1i(o)),o},ic:j(e,i){if(f.R.6U(e)!==!0)v t();q o=f.R.1M(e,{1u:i});v f.R.15().6f(t("<li>").1i(o)),o},ig:j(e,i,o){if(f.R.6U(i)!==!0)v t();q r=f.R.1M(i,{1u:o}),s=f.R.M(e);v 0!==s.L?s.2u().2d(t("<li>").1i(r)):f.R.15().1i(t("<li>").1i(r)),r},ih:j(e,i,o){if(f.R.6U(i)!==!0)v t();q r=f.R.1M(i,{1u:o}),s=f.R.M(e);v 0!==s.L?s.2u().42(t("<li>").1i(r)):f.R.15().1i(t("<li>").1i(r)),r},6U:j(t){q e=f.y.7p.3P(t);v!(f.y.15===!1||-1!==e&&f.1F.4i())},ii:j(t,e){t.1e(e)},9v:j(e,i){if("12"!=O e&&f.y.15!==!1){q o="Q"===i?"Q":"1L",r=e.1g("3K");e.1s("3J",t.T(j(t){v e.2s("C-R-4C")?!1:1A f.R.3H(t,r,o,i)},f))}},9w:j(e,i){if(f.y.15!==!1){e.1S("C-15-1b-Q").1g("3b-cQ",!0);q o=e.1g("3K");f.R.9v(e,"Q");q r=t(\'<1v 1C="C-Q C-Q-\'+f.1z+" C-Q-1R-"+o+\'" 2L="7O: 9u;">\');v e.22("Q",r),i&&f.Q.1M(o,r,i),r}},9x:j(t){f.R.M(t).1S("C-6V")},ij:j(t){f.R.M(t).2l("C-6V")},6M:j(t){q e=f.R.15().1d("a.41-R");"12"!=O t&&(e=e.5x(".41-"+t)),e.2l("C-6V")},9m:j(t){f.R.M(t).1S("C-R-4C")},57:j(t){f.R.M(t).2l("C-R-4C")},ik:j(t){q e=f.R.15().1d("a.41-R");"12"!=O t&&(e=e.5x(".41-"+t)),e.1S("C-R-4C")},il:j(){f.R.15().1d("a.41-R").2l("C-R-4C")},1j:j(t){f.R.M(t).1j()}}},1y:j(){v{2c:j(t,e,i){f.E.J().1Y(),i="12"==O i?0:1,t=t[0]||t,e=e[0]||e;q o=f.F.M(),r=f.F.2Y(o);6c{r.58(t,0),r.7P(e,i)}6d(s){}f.F.3c(o,r)},6W:j(t){v f.1F.43()&&"12"!=O f.1V&&f.E.J().1Y(),t[0]||t},1V:j(e){q i,o;if(e=f.1y.6W(e)){if("5y"===e.1c)v f.1y.42(e);q r=f.K.6X(e.1c);if(""===e.2J||r){i=2e.3R(),o=14.5a();q s=14.4m("​");o.58(e,0),o.3q(s),o.5z(s),o.3C(!0),i.44(),i.4n(o),r||f.E.J().1s("Y.C-1j-9y",j(){t(s).1j(),t(f).1J("Y.C-1j-9y")})}23 i=2e.3R(),i.44(),o=14.5a(),o.6j(e),o.3C(!0),i.4n(o)}},2Z:j(e){q i,o;if(e=f.1y.6W(e)){if("5y"!==e.1c&&""===e.2J)v f.1y.1V(e);if("5y"===e.1c){q r=14.3i("1N");v r.9z="C-cV-9B",r.2J="&#7r;",t(e).2d(r),i=2e.3R(),i.44(),o=14.5a(),o.cW(r),o.im(r),i.4n(o),1A t(r).2A(j(){v t(f).2E()})}if(e.6k&&1===e.6k.4E)v f.1y.2d(e.6k);i=2e.3R(),i.44(),o=14.5a(),o.6j(e),o.3C(!1),i.4n(o)}},2d:j(e){q i,o;if(e=f.1y.6W(e)){if("5y"===e.1c)v f.1y.2Z(e);if(f.K.5A(e.1c)){q r=f.1y.2B(e);v 1A("12"==O r?f.1y.2Z(e):("cX"===r.1c?r=t(r).1d("4O, 3G").4o()[0]:"5B"!==r.1c&&"5b"!==r.1c||(r=t(r).1d("li").4o()[0]),f.1y.1V(r)))}q s=14.4m("​");i=2e.3R(),i.44(),o=14.5a(),o.5z(e),o.3q(s),o.5z(s),o.3C(!0),i.4n(o)}},42:j(e){q i,o;if(e=f.1y.6W(e)){if(f.K.5A(e.1c)){q r=f.1y.3D(e);v 1A("12"==O r?f.1y.1V(e):("cX"===r.1c?r=t(r).1d("4O, 3G").3r()[0]:"5B"!==r.1c&&"5b"!==r.1c||(r=t(r).1d("li").3r()[0]),f.1y.2Z(r)))}i=2e.3R(),i.44(),o=14.5a(),o.cW(e),o.3C(!0),i.4n(o)}},2B:j(e){q i=t(e).2B();v i.2s("C-3n-4F, C-F-1n")?i.2B()[0]:i[0]},3D:j(e){q i=t(e).3D();v i.2s("C-3n-4F, C-F-1n")?i.3D()[0]:i[0]},2W:j(t){v f.2W.M(t)}}},1I:j(){v{9C:j(e){e=f.1I.cY(e),e=f.1I.cZ(e),f.y.3n&&(e=e.G(/<3n(.*?[^>]?)>([\\w\\W]*?)<\\/3n>/gi,\'<1w 1C="C-3n-4F" $1>$2</1w>\')),e=e.G(/\\$/g,"&#36;"),e=e.G(/&6Y;/g,"&"),e=e.G(/<a 2y="(.*?[^>]?)®(.*?[^>]?)">/gi,\'<a 2y="$1&io$2">\'),e=e.G(/<1N(.*?[^>]?)id="F-1n-1"(.*?[^>]?)>​<\\/1N>/gi,"[[[d0]]]"),e=e.G(/<1N(.*?[^>]?)id="F-1n-2"(.*?[^>]?)>​<\\/1N>/gi,"[[[d1]]]");q i=f,o=t("<1v/>").1e(t.9D(e,14,!0)),r=f.y.8Z;if(r){q s=c6.ip(f.y.8Z);o.1d(s.3A(",")).1h(j(t,e){i.K.3h(e,r[e.1c.2S()])})}e=o.1e();q n=["iq","1e","d2","1b","2N","4Q","ir"];v f.y.3n||n.2q("3n"),e=f.1I.d3(e,n),f.y.bm&&(e=e.G(/<!--[\\s\\S]*?-->/gi,"")),e=f.2n.3a(e),e=e.G("[[[d0]]]",\'<1N id="F-1n-1" 1C="C-F-1n">​</1N>\'),e=e.G("[[[d1]]]",\'<1N id="F-1n-2" 1C="C-F-1n">​</1N>\'),-1!==e.2G(/^(||\\s||<br\\s?\\/?>||&4G;)$/i)?f.y.3p:e},9E:j(t){v f.1I.7L(t)},7L:j(e){if(e=e.G(/\\4p/g,""),e=e.G(/&#7r;/gi,""),-1!==e.2G(/^<p>(||\\s||<br\\s?\\/?>||&4G;)<\\/p>$/i))v"";q i=t("<1v/>").1e(t.9D(e,14,!0));i.1d(\'*[2L=""]\').2f("2L"),i.1d(\'*[1C=""]\').2f("1C"),i.1d(\'*[3K=""]\').2f("3K"),i.1d(".C-cV-9B").1h(j(){t(f).2E().7G()}),i.1d("1N").1h(j(){0===f.3Q.L&&t(f).2E().7G()}),i.1d(".C-F-1n, #C-1t-1n").1j(),e=i.1e(),f.y.3n&&(e=e.G(/<1w 1C="C-3n-4F"(.*?[^>]?)>([\\w\\W]*?)<\\/1w>/gi,"<3n$1>$2</3n>")),e=f.1I.d4(e),e=e.G(1q 1U("<br\\\\s?/?></h","gi"),"</h"),e=e.G(1q 1U("<br\\\\s?/?></li>","gi"),"</li>"),e=e.G(1q 1U("</li><br\\\\s?/?>","gi"),"</li>"),e=e.G(/<1w>/gi,"<1w>\\n"),f.y.8P&&(e=e.G(/<1w>/gi,\'<1w 1C="\'+f.y.8P+\'">\')),f.y.bk&&(e=e.G(/<a(.*?)3K="d5"(.*?[^>])>/gi,"<a$1$2>"),e=e.G(/<a(.*?[^>])>/gi,\'<a$1 3K="d5">\'));q o={"™":"&it;","©":"&iu;","…":"&iv;","—":"&iw;","‐":"&ix;"};v t.1h(o,j(t,i){e=e.G(1q 1U(t,"g"),i)}),e=e.G(/&6Y;/g,"&"),e=e.G(/<p><\\/p>/gi,"")},9F:j(e,i,o){if(o!==!0){e=e.G(/<b\\d6="d7-5w-1n(.*?)">([\\w\\W]*?)<\\/b>/gi,"$2"),e=e.G(/<b(.*?)id="iy-d7-iz(.*?)">([\\w\\W]*?)<\\/b>/gi,"$3");q r=f.1I.d8(e);r&&(e=f.1I.d9(e))}v e=t.2t(e),i.1w?f.y.5n&&(e=e.G(/\\t/g,1q 6z(f.y.5n+1).3A(" "))):(e=f.1I.da(e),e=f.1I.db(e)),o!==!0&&(e=f.1I.dc(e),e=f.1I.de(e),i.7Q===!1&&(e=e.G(/&/g,"&6Y;"),e=f.1I.df(e,i),e=f.1I.9G(e),e=f.1I.dg(e,i))),i.1p&&(e=f.1I.dh(e),e=f.1I.9G(e)),i.3N&&(e=e.G("\\n","<br>")),i.7Q&&(e=f.1I.di(e)),i.2n&&(e=f.2n.3a(e)),e},9H:j(t,e){q i=f.F.53(),o={1p:!1,7Q:!1,2n:!0,4a:f.1I.dj(t),53:f.1I.9I(t),1w:!1,3N:!1,V:!0,1m:!0,5C:!0,5c:!0};v 1===i.L&&f.K.4q(["h1","h2","h3","h4","h5","h6","a","3S"])?(o.1p=!0,o.2n=!1,o.1m=!1,o.5c=!1,o.5C=!1,o.4a=!0):"1m"===f.y.1f||f.y.5U===!1?(o.2n=!1,o.V=!1,o.4a=!0):1===i.L&&f.K.4q(["li"])?(o.3N=!0,o.V=!1,o.2n=!1,o.5c=!1):1===i.L&&f.K.4q(["4O","3G","2h"])?(o.V=!1,o.2n=!1):("1w"===f.y.1f||1===i.L&&f.K.4q("1w"))&&(o.1m=!1,o.V=!1,o.7Q=!0,o.1w=!0,o.2n=!1,o.5c=!1,o.5C=!1),o.4a===!0&&(o.2n=!1),e===!0&&(o.1p=!1),o},9I:j(t){q e=t.2F(1q 1U("</("+f.y.7q.3A("|").7v()+")>","gi")),i=t.2F(1q 1U("<hr(.*?[^>])>","gi"));v 1D!==e||1D!==i},dj:j(t){if(f.1I.9I(t))v!1;q e=t.2F(/<br\\s?\\/?>/gi),i=t.2F(/\\n/gi);v!e&&!i},d8:j(t){v t.2F(/1C="?iA|2L="[^"]*\\dk-|2L=\'[^\'\']*\\dk-|w:iB/i)},de:j(t){1X(q e=f.y.63,i=e.L,o=0;i>o;o++)t=t.G(1q 1U("<"+e[o]+"[^>]*>(s\\n|  )?</"+e[o]+">","gi"),"");v t},dc:j(t){v t=t.G(/<\\/1N>/gi,""),t=t.G(/<1N[^>]*>/gi,"")},d9:j(t){v t=t.G(/<!--[\\s\\S]*?-->/g,""),t=t.G(/<o:p>[\\s\\S]*?<\\/o:p>/gi,""),t=t.G(/\\n/g," "),t=t.G(/<br\\s?\\/?>|<\\/p>|<\\/1v>|<\\/li>|<\\/3G>/gi,"\\n\\n")},dh:j(t){v t.G("&4G;"," ")},da:j(t){v t.G(/<br\\s?\\/?>/gi,"\\n")},iC:j(t){v t.G(/\\n/g,"<br />")},df:j(e,i){q o=t("<1v>").1e(e);o.1d("4W").1j();q r=o.1d("a");if(r.2f("2L"),f.y.8S!==!1&&r.1g("1O",f.y.8S),e=o.1e(),i.5C&&f.y.8L&&(e=e.G(/<a(.*?)2y="(.*?)"(.*?)>(.*?)<\\/a>/gi,\'###a$dm="$2"$3###$4###/a###\')),i.5c&&f.y.8K&&(e=e.G(/<2K(.*?)2V="(.*?)"(.*?[^>])>/gi,\'###2K$iD="$2"$3###\')),f.y.8J)v e;q s,n=i.3N?["2H","2Q","li"]:f.y.8M;s=i.V||i.3N?i.1m?n.dn(f.y.6C):n:i.1m?f.y.6C:[];1X(q a=s.L,l=0;a>l;l++)e=e.G(1q 1U("</"+s[l]+">","gi"),"###/"+s[l]+"###"),e="3G"===s[l]||"4O"===s[l]?e.G(1q 1U("<"+s[l]+\'(.*?[^>])((iE|iF)="(.*?[^>])")?(.*?[^>])>\',"gi"),"###"+s[l]+" $2###"):e.G(1q 1U("<"+s[l]+"[^>]*>","gi"),"###"+s[l]+"###");v e},dg:j(t,e){if(e.5C&&f.y.8L&&(t=t.G(/###a(.*?)2y="(.*?)"(.*?)###(.*?)###\\/a###/gi,\'<a$dm="$2"$3>$4</a>\')),e.5c&&f.y.8K&&(t=t.G(/###2K(.*?)2V="(.*?)"###/gi,\'<2K 2V="$2">\')),f.y.8J)v t;q i,o=e.3N?["2H","2Q","li"]:f.y.8M;i=e.V||e.3N?e.1m?o.dn(f.y.6C):o:e.1m?f.y.6C:[];1X(q r=i.L,s=0;r>s;s++)t=t.G(1q 1U("###/"+i[s]+"###","gi"),"</"+i[s]+">"),t=t.G(1q 1U("###"+i[s]+"###","gi"),"<"+i[s]+">");1X(q s=0;r>s;s++)"3G"!==i[s]&&"4O"!==i[s]||(t=t.G(1q 1U("###"+i[s]+"s?(.*?[^#])###","gi"),"<"+i[s]+"$1>"));v t},9J:j(e){e="12"==O e?t(f.F.V()).2a("1w",f.E.J()[0]):e,t(e).1d("br").2A(j(){v 14.4m("\\n")}),t(e).1d("p").2A(j(){v t(f).2E()})},db:j(e){q i=t("<1v />").1i(e);v i.1d("1w").2A(j(){q e=t(f).1e();v e=e.G(/<br\\s?\\/?>|<\\/p>|<\\/1v>|<\\/li>|<\\/3G>/gi,"\\n"),e=e.G(/(<([^>]+)>)/gi,""),t("<1w />").1i(e)}),e=i.1e(),i.1j(),e},9G:j(e){e=e.G(/<!--[\\s\\S]*?-->/gi,""),e=e.G(/<2L[\\s\\S]*?2L>/gi,""),e=e.G(/<\\/p>|<\\/1v>|<\\/li>|<\\/3G>/gi,"\\n"),e=e.G(/<\\/H[1-6]>/gi,"\\n\\n");q i=14.3i("1v");v i.2J=e,e=i.do||i.dp,t.2t(e)},cY:j(t){v t=f.1I.dq(t),t=f.1I.dr(t),t=f.1I.ds(t)},dq:j(e){q i=e.2F(/<1w(.*?)>([\\w\\W]*?)<\\/1w>/gi);v 1D===i?e:(t.1h(i,t.T(j(t,i){q o=i.2F(/<1w(.*?)>([\\w\\W]*?)<\\/1w>/i);o[2]=o[2].G(/<br\\s?\\/?>/g,"\\n"),o[2]=o[2].G(/&4G;/g," "),f.y.5n&&(o[2]=o[2].G(/\\t/g,1q 6z(f.y.5n+1).3A(" "))),o[2]=f.1I.7R(o[2]),o[2]=o[2].G(/\\$/g,"&#36;"),e=e.G(i,"<1w"+o[1]+">"+o[2]+"</1w>")},f)),e)},dr:j(e){q i=e.2F(/<26(.*?)>([\\w\\W]*?)<\\/26>/gi);v 1D===i?e:(t.1h(i,t.T(j(t,i){q o=i.2F(/<26(.*?)>([\\w\\W]*?)<\\/26>/i);o[2]=o[2].G(/&4G;/g," "),o[2]=f.1I.7R(o[2]),o[2]=o[2].G(/\\$/g,"&#36;"),e=e.G(i,"<26"+o[1]+">"+o[2]+"</26>")},f)),e)},ds:j(t){v t=t.G(/&lt;1N id=&6l;F-1n-([0-9])&6l; 1C=&6l;C-F-1n&6l;&gt;​&lt;\\/1N&gt;/g,\'<1N id="F-1n-$1" 1C="C-F-1n">​</1N>\')},cZ:j(t){v t.G(/<5q(.*?)>([\\w\\W]*?)<\\/5q>/gi,\'<2k$1 3K="C-5q-4F">$2</2k>\')},d4:j(t){v t.G(/<2k(.*?) 3K="C-5q-4F"(.*?)>([\\w\\W]*?)<\\/2k>/gi,"<5q$1$2>$3</5q>")},di:j(t){v t=t.G(/”/g,\'"\'),t=t.G(/“/g,\'"\'),t=t.G(/‘/g,"\'"),t=t.G(/’/g,"\'"),t=f.1I.7R(t)},7R:j(t){v t=6m(t).G(/&6Y;/g,"&").G(/&lt;/g,"<").G(/&gt;/g,">").G(/&6l;/g,\'"\'),t=t.G(/&/g,"&6Y;").G(/</g,"&lt;").G(/>/g,"&gt;").G(/"/g,"&6l;")},d3:j(t,e){if("12"==O e)v t.G(/(<([^>]+)>)/gi,"");q i=/<\\/?([a-z][a-9K-9]*)\\b[^>]*>/gi;v t.G(i,j(t,i){v-1===e.3P(i.2S())?t:""})},9L:j(t){v t.G(/<1N(.*?[^>]?)1C="C-F-1n"(.*?[^>]?)>([\\w\\W]*?)<\\/1N>/gi,"")},iG:j(e){v e=t.2t(e),e=e.G(/\\n/g,""),e=e.G(/[\\t]*/g,""),e=e.G(/\\n\\s*\\n/g,"\\n"),e=e.G(/^[\\s\\n]*/g," "),e=e.G(/[\\s\\n]*$/g," "),e=e.G(/>\\s{2,}</g,"> <"),e=e.G(/\\n\\n/g,"\\n"),e=e.G(/\\4p/g,"")},du:j(e){v e=t.2t(e),e=e.G(/\\n/g,""),e=e.G(/[\\t]*/g,""),e=e.G(/\\n\\s*\\n/g,"\\n"),e=e.G(/^[\\s\\n]*/g,""),e=e.G(/[\\s\\n]*$/g,""),e=e.G(/>\\s{2,}</g,"><"),e=e.G(/\\n\\n/g,"\\n"),e=e.G(/\\4p/g,"")},dv:j(){q t=f.F.V();f.K.9M()&&t&&t.7S()}}},26:j(){v{69:!0,1e:!1,1V:j(e){e=t.2t(e),e=e.G(/^(<1N id="F-1n-1" 1C="C-F-1n">​<\\/1N>)/,""),"2x"===f.y.1f?e=f.1I.9C(e):"1v"===f.y.1f&&""===e&&(e=f.y.3p),f.1G.7T(),f.E.J().1e(e),f.1K.3a(),f.1G.7U()},2c:j(e){e=t.2t(e),"2x"===f.y.1f?e=f.1I.9C(e):"1v"===f.y.1f&&""===e&&(e=f.y.3p),f.E.J().1e(e),"2x"===f.y.1f&&f.26.4H(),f.1B.57()},M:j(){if("2x"===f.y.1f)v f.E.2x().2D();q t=f.E.J().1e();v t=f.1I.9E(t)},4H:j(){if(f.26.69){q e=f.E.J().1e(),i=f.26.9r(e);if(!f.26.dw(i))v f.26.1e=i,"2x"!==f.y.1f?(f.E.1r("4H",e),1A f.E.1r("9N",e)):1A("2x"===f.y.1f&&2U(t.T(j(){f.26.dx(e)},f),10))}},dx:j(t){t=f.E.1r("iH",t),t=f.1I.7L(t),f.E.2x().2D(t),f.E.1r("4H",t),f.1V===!1&&f.E.1r("9N",t),f.1V=!1},dw:j(t){q e=f.26.1e!==!1?f.26.1e:!1;v e!==!1&&e===t},9r:j(t){v t=t.G(/\\4p/g,""),f.1I.9L(t)}}},E:j(){v{id:j(){v f.$J.1g("id")},1o:j(){v f.$1o},J:j(){v"12"==O f.$J?t():f.$J},2x:j(){v f.$2x},1R:j(){v"2x"===f.y.1f?f.$1R:f.$1o},15:j(){v f.$15?f.$15:!1},1H:j(){v f.$1H?f.$1H:!1},2X:j(){v t.4Y({},f)},5T:j(){f.E.J().6P("C-5T")},6Z:j(t){f.E.dy=t},6n:j(){v f.E.dy},1r:j(e,i,o){q r="C",s=!1,n=t.iI(f.E.1o()[0],"1G");if("12"!=O n&&"12"!=O n[e])1X(q a=n[e].L,l=0;a>l;l++){q c=n[e][l].9d;if(c==="1r."+r){q d=n[e][l].70,h="12"==O o?[i]:[i,o];s="12"==O h?d.49(f,i):d.49(f,i,h)}}if(s)v s;if("12"==O f.y.4b[e])v"12"==O o?i:o;q u=f.y.4b[e];v t.5Q(u)?"12"==O o?u.49(f,i):u.49(f,i,o):"12"==O o?i:o},4y:j(){f.y.dz=!0,f.E.1r("4y"),f.1B.4y(),f.2j.4y(),t("#C-7K-"+f.1z).1j(),f.E.J().2l("C-in C-5T C-J-2K-2r"),f.E.J().1J("Y.C-1j-9y"),f.E.J().1J(".C-1K."+f.1z),f.$1o.1J(".C").iJ("C"),f.E.J().1J(".C"),t(14).1J(".C-Q"),t(14).1J(".C-1H."+f.1z),t(14).1J("3J.C-55."+f.1z),t(14).1J("3J.C."+f.1z),t(14).1J("4k.C."+f.1z+" 1E.C."+f.1z),t(2e).1J(".C-15."+f.1z),t(2e).1J("dA.C."+f.1z),t("2N").1J("5D.C."+f.1z),t(f.y.3y).1J("5D.C."+f.1z);q e=f;f.y.5m!==!1&&t.1h(f.y.5m,j(i,o){t(2e).1J(".C-7V-"+o),t(14).1J(".C-7V-"+o),t("2N").1J(".C-7V-"+o),e.E.J().1J(".C-7V-"+o)}),f.$1o.1J("1E.C-1E-3f-2r"),f.$1o.2l("C-1E-3f-2r"),f.E.J().2l("C-J"),f.E.J().2f("9q");q i=f.26.M();f.y.15&&f.$15&&f.$15.1d("a").1h(j(){q e=t(f);e.22("Q")&&(e.22("Q").1j(),e.22("Q",{}))}),"2x"===f.y.1f&&(f.$1R.2d(f.$1o),f.$1R.1j(),f.$1o.2D(i).1W()),f.y.1H&&f.$1H.1j(),f.y.15&&f.$15&&f.$15.1j(),f.$3s&&f.$3s.1j(),f.$5E&&f.$5E.1j(),t(".C-1b-4I").1j(),ce(f.7C)}}},1F:j(){v{9O:j(){v/7W/.4J(f.y.4e)},43:j(){v f.y.4e.3P("iK")>-1},4D:j(t){if(14.iL||/iM/.4J(5r.4e))v"iN";q e;v e=1U("iO"+(iP(t)?"":"\\\\s"+t),"i").4J(5r.4e),e||(e=!!5r.4e.2F(/iQ.*iR[ :]*11\\./)),e},4i:j(){v/(dB|dC|dD|dE)/.4J(5r.4e)},31:j(){v!/(dB|dC|dF|dD|dE)/.4J(5r.4e)},dG:j(){v/dF/.4J(5r.4e)}}},Q:j(){v{2P:!1,R:!1,4K:!1,3d:[],iS:j(){v f.Q.2P},1M:j(e,i,o){o=f.Q.dH(e,o),t.1h(o,t.T(j(t,o){q r=f.Q.dI(t,o);f.1K.9w(r,t,o),i.1g("3K",e).1i(r)},f))},dH:j(e,i){v"2b"!==e||f.y.8X===!1?i:(t.1h(f.y.8X,t.T(j(t,e){q o=f.K.5A(e.71[0])?"V":"1m";i[t]={1L:"V"===o?"V.2b":"1m.2b",71:e.71,1u:e.1u}},f)),i)},dI:j(e,i){q o=t("<li />");if("12"!=O i.dJ&&o.1S(i.dJ),-1!==e.2G(/^dK/i))v o.1S("C-Q-dK"),o;q r=t(\'<a 2y="#" 1C="C-Q-\'+e+\'" 5t="R" />\'),s=t("<1N />").1e(i.1u);v r.1i(s),r.1s("3J",t.T(j(t){t.1P(),f.Q.dL(t,e,i)},f)),o.1i(r),o},dL:j(e,i,o){if(!t(e.1O).2s("C-Q-1b-7N")){q r=f.Q.dM(o);" 12"!=O o.71?f.R.3H(e,i,r.1f,r.1r,o.71):f.R.3H(e,i,r.1f,r.1r)}},dM:j(t){q e={};v e.1f="1L",e.1r=t.1L,t.56?(e.1f="56",e.1r=t.56):t.Q&&(e.1f="Q",e.1r=t.Q),e},1W:j(e,i){v f.1F.31()&&f.E.J().1Y(),f.Q.6i(!1,i),f.Q.4K=i,f.Q.R=f.R.M(f.Q.4K),f.Q.R.2s("6o")?1A f.Q.1Q():(f.Q.2P=f.Q.R.22("Q").9j(14.2N),f.E.1r("iT",{Q:f.Q.2P,4K:f.Q.4K,R:f.Q.R}),f.R.9x(f.Q.4K),f.Q.R.1S("6o"),f.Q.dN(),f.R.15().2s("15-4L-1R")&&f.1F.31()?f.Q.dO():f.Q.dP(),f.1F.31()&&!f.1F.43()&&(f.Q.2P.1s("9P.C-Q",t.T(f.K.9Q,f)),f.Q.2P.1s("3J.C-Q",t.T(f.K.72,f))),1A e.7X())},dO:j(){q e=f.Q.R.3d().2I+f.Q.R.7Y()+f.y.5o,i="4L";f.y.3y!==14&&(e=f.Q.R.7Y()+f.$15.2W().2I+f.y.5o,i="5F"),f.Q.2P.28({3d:i,2O:f.Q.3d.2O+"3W",2I:e+"3W"}).1W(),f.Q.2P.4r("9R",{4s:.2},t.T(j(){f.Q.9S(),f.Q.5G()},f))},dP:j(){f.Q.2P.28({3d:"5F",2O:f.Q.3d.2O+"3W",2I:f.Q.R.7Y()+f.Q.3d.2I+"3W"}).1W(),f.Q.2P.4r(f.y.3m?"9R":"1W",{4s:.2},t.T(j(){f.Q.9S(),f.Q.5G()},f))},5G:j(){t(14).1s("3J.C-Q",t.T(f.Q.6i,f)),f.E.J().1s("4k.C-Q",t.T(f.Q.6i,f)),t(14).1s("2g.C-Q",t.T(f.Q.74,f))},9S:j(){f.E.1r("iU",{Q:f.Q.2P,4K:f.Q.4K,R:f.Q.R})},dN:j(){f.Q.3d=f.Q.R.2W();q e=f.Q.2P.2z();f.Q.3d.2O+e>t(14).2z()&&(f.Q.3d.2O=9T.7M(0,f.Q.3d.2O-e+9U(f.Q.R.6L())))},74:j(t){t.5u===f.29.6K&&(f.Q.6i(t),f.E.J().1Y())},6i:j(e,i){if(f.1F.31()&&f.K.72(),e===!1||0===t(e.1O).2a(".C-Q").L){q o="12"==O i?f.R.15().1d("a.6o"):f.R.15().1d("a.6o").5x(".41-"+i),r="12"==O i?t(".C-Q-"+f.1z):t(".C-Q-"+f.1z).5x(".C-Q-1R-"+i);0!==r.L&&(t(14).1J(".C-Q"),f.E.J().1J(".C-Q"),t.1h(r,t.T(j(e,i){q o=t(i);f.E.1r("dQ",o),o.1Q(),o.1J("9P dR").1J(".C-Q")},f)),o.2l("C-6V 6o"))}},1Q:j(){f.Q.2P!==!1&&(f.1F.31()&&f.K.72(),f.Q.2P.4r(f.y.3m?"9V":"1Q",{4s:.2},t.T(j(){t(14).1J(".C-Q"),f.E.J().1J(".C-Q"),f.Q.dS()},f)))},dS:j(){f.E.1r("dQ",f.Q.2P),f.Q.R.2l("C-6V 6o"),f.Q.2P.1J("9P dR").1J(".C-Q"),f.Q.R=!1,f.Q.4K=!1,f.Q.2P=!1}}},1G:j(){v{9W:!1,7Z:!0,5H:!1,80:!1,7T:j(){f.1G.80=!0},7U:j(){q t=f;2U(j(){t.1G.80=!1},1)},5I:j(e){e.1P(),e.7X(),"5J"===e.1O.1c&&t(e.1O).1S("C-1k-5I")},81:j(t){f.E.J().1d("2K").2l("C-1k-5I")},4M:j(t){v t=t.75||t,f.E.J().1d("2K").2l("C-1k-5I"),"1m"===f.y.1f||"1w"===f.y.1f?(t.1P(),!1):1A 0!==2e.4t&&t.82?0===t.82.83.L?f.1G.84(t):(f.1G.dT(t),1A f.E.1r("4M",t)):!0},1E:j(t){q e=f.E.6n(),i="1E"===e||"85"===e?!1:"1E";f.E.6Z(i),f.K.6p(),f.E.1r("1E",t)},1Y:j(t){if(!f.6q&&(f.1G.9X("1Y")&&f.E.1r("1Y",t),f.1G.9W=!0,f.1G.7Z=!1,f.F.21()===!1)){q e=f.F.M(),i=f.F.2Y(e);i.58(f.E.J()[0],0),i.7P(f.E.J()[0],0),f.F.3c(e,i)}},55:j(e){f.1V||f.6q||0===t(e.1O).2a("#"+f.E.id()+", .C-15, .C-Q, #C-N-1R").L&&(!f.1G.7Z&&f.1G.9X("55")&&f.E.1r("55",e),f.1G.9W=!1,f.1G.7Z=!0)},dU:j(){q e=-1;f.1G.86=!1,t(2e).1s("dA.C."+f.1z,t.T(j(){f.1G.86=!0,-1!==e&&9Y(e),e=2U(t.T(j(){f.1G.86=!1},f),9Z)},f))},2o:j(){f.E.J().1s("5I.C iV.C",t.T(f.1G.5I,f)),f.E.J().1s("81.C",t.T(f.1G.81,f)),f.E.J().1s("4M.C",t.T(f.1G.4M,f)),f.E.J().1s("1E.C",t.T(f.1G.1E,f)),f.E.J().1s("3u.C",t.T(f.3u.2o,f)),f.E.J().1s("Y.C",t.T(f.Y.2o,f)),f.E.J().1s("2g.C",t.T(f.2g.2o,f)),f.E.J().1s("1Y.C",t.T(f.1G.1Y,f)),t(14).1s("3J.C-55."+f.1z,t.T(f.1G.55,f)),f.1G.dU(),f.1G.dV(),f.1G.dW()},dV:j(){q e=f;f.1G.dX=1q iW(j(i){i.iX(t.T(e.1G.dY,e))})},dY:j(t){q e=!1;(("2x"===f.y.1f||"1v"===f.y.1f)&&!f.1F.43()&&t.1O===f.E.J()[0]||"1C"===t.iY&&t.1O===f.E.J()[0])&&(e=!0),e||(f.1K.3a(),f.1G.dZ())},dW:j(){f.1G.dX.1K(f.E.J()[0],{3Q:!0,iZ:!0,j0:!0,j1:!0,j2:!0})},dZ:j(){f.1G.80||(f.26.4H(),f.2v.is()&&(9Y(f.7C),f.7C=2U(t.T(f.2v.3Z,f),j3)))},dT:j(t){if(t.1P(),t.7X(),(f.y.7m||f.y.7n)&&(1D!==f.y.3w||1D!==f.y.4w)){"5J"===t.1O.1c&&(f.1G.5H=t.1O);q e=t.82.83;f.1a.e0(e[0],t)}},84:j(t){f.E.1r("4M",t)},9X:j(e){v"12"!=O f.y.4b[e]&&t.5Q(f.y.4b[e])},j4:j(){f.1G.7T()},j5:j(){f.1G.7U()}}},2i:j(){v{is:j(){v!(!f.y.4w||!f.y.4w&&!f.y.3x)},1W:j(){f.N.3a("2i",f.1l.M("2i"),e1),f.1a.2o("#C-N-2i-1a",f.y.4w,f.2i.1t),t("#C-5Z").2D(f.F.M().6b()),f.N.1W()},1t:j(e,i,o){if("12"!=O e.5R)v f.N.3o(),1A f.E.1r("j6",e);f.2i.e2(o,i),f.1T.2c(),f.1H.6a();q r=f.2i.1p(e),s=t("<a />").1g("2y",e.1x).1p(r),n="12"==O e.id?"":e.id,a="12"==O e.3x?"2i":"3x";s.1g("22-"+a,n),s=t(f.1t.2M(s)),f.1y.2d(s),f.3l.54({1f:a,2M:s[0],1x:s[0].2y,id:n}),1D!==i&&f.E.1r("4w",s,e)},e2:j(t,e){e?(f.1n.1j(),f.1t.87(t,f.1n.M()),f.F.2m()):f.N.3o()},1p:j(e){q i=t("#C-5Z").2D();v"12"==O i||""===i?e.2T:i}}},1Y:j(){v{1V:j(){if(f.E.J().1Y(),"1m"!==f.y.1f){q t=f.1Y.4o();t!==!1&&f.1y.1V(t)}},2Z:j(){f.E.J().1Y();q t=f.y.1m?f.E.J():f.1Y.3r();if(0!==t.L){q e=f.1Y.6k(t);if(f.1F.9O()||e===!1){q i=f.F.M(),o=f.F.2Y(i);1D!==o?(o.6j(t[0]),o.3C(!1),f.F.3c(i,o)):f.1y.2Z(t)}23 f.1y.2Z(e)}},4o:j(){q t=f.E.J().5K().4o();v 0!==t.L||0!==t[0].L&&"5y"!==t[0].1c&&"e3"!==t[0].1c&&3!==t[0].4E?"5B"===t[0].1c||"5b"===t[0].1c?t.1d("li").4o():t:!1},3r:j(){v f.E.J().5K().3r()},6k:j(t){q e=t[0].6k;v 1D!==e&&f.K.6X(e.1c)?e:!1},is:j(){v f.E.J()[0]===14.e4}}},1k:j(){v{is:j(){v!(!f.y.3w||!f.y.3w&&!f.y.3x)},1W:j(){f.N.3a("1k",f.1l.M("1k"),e1),f.1a.2o("#C-N-1k-3j",f.y.3w,f.1k.1t),f.N.1W()},1t:j(e,i,o){q r;if("12"!=O e.5R)v f.N.3o(),f.1G.5H=!1,1A f.E.1r("j7",e,o);if(f.1G.5H!==!1)v r=t(f.1G.5H),f.E.1r("e5",r[0].2V,r),r.1g("2V",e.1x),f.1G.5H=!1,1A f.E.1r("3w",r,e);f.1B.1Q();q s=t("<3v>");r=t("<2K>"),r.1g("2V",e.1x);q n="12"==O e.id?"":e.id,a="12"==O e.3x?"1k":"3x";r.1g("22-"+a,n),s.1i(r);q l=f.K.3O(f.F.21(),"1w");if(i){f.1H.6a(),f.1n.1j();q c=f.1t.87(o,f.1n.M()),d=t(c).2B();f.F.2m(),f.1T.2c(),"12"!=O d&&0!==d.L&&"5J"===d[0].1c?(f.E.1r("e5",d[0].2V,d),d.2a("3v, p",f.E.J()[0]).2A(s),f.1y.2d(s)):(l?t(l).2d(s):f.1t.2M(s),f.1y.2d(s))}23 f.N.3o(),f.1T.2c(),f.1H.6a(),l?t(l).2d(s):f.1t.2M(s),f.1y.2d(s);f.1G.5H=!1,f.3l.54({1f:a,2M:r[0],1x:r[0].2V,id:n}),1D!==i&&f.E.1r("3w",r,e)},e6:j(e){e.1s("j8",j(t){t.1P()}),e.1J("1E.C 4k.C").1s("1E.C 4k.C",t.T(j(i){2U(t.T(j(){f.1k.e7(e)},f),7B)},f))},e7:j(e){if(!f.1G.86){f.1K.1k=e;q i=e.2a("a",f.$J[0]);if(f.N.3a("1k-2r",f.1l.M("2r"),j9),f.1k.e8=f.N.e9().1p(f.1l.M("4V")),f.1k.ea=f.N.88().1p(f.1l.M("2C")),f.1k.e8.1s("1E",t.T(f.1k.1j,f)),f.1k.ea.1s("1E",t.T(f.1k.3c,f)),f.y.bc===!1)t("#C-1k-5p").2D("").1Q().3D().1Q();23{q o=0===i.L?e.2B():i.2B();0!==o.L&&"89"===o[0].1c&&t("#C-1k-5p").2D(o.1p()).1W()}t("#C-1k-eb").1e(t(\'<2K 2V="\'+e.1g("2V")+\'" 2L="7M-2z: 52%;">\')),t("#C-1k-1u").2D(e.1g("8a"));q r=t("#C-1k-1b");r.1g("2y",e.1g("2V")),0!==i.L&&(r.2D(i.1g("2y")),"6r"===i.1g("1O")&&t("#C-1k-1b-6s").8b("8c",!0)),t(".C-1b-4I").1j(),f.N.1W(),f.1F.31()&&t("#C-1k-1u").1Y()}},3c:j(){q e=f.1K.1k,i=e.2a("a",f.E.J()[0]),o=t("#C-1k-1u").2D().G(/(<([^>]+)>)/gi,"");e.1g("8a",o).1g("1u",o);q r=t.2t(t("#C-1k-1b").2D()).G(/(<([^>]+)>)/gi,"");if(""!==r){q s="((ec--)?[a-9K-9]+(-[a-9K-9]+)*\\\\.)+[a-z]{2,}",n=1q 1U("^(76|8d|4X)://"+s,"i"),a=1q 1U("^"+s,"i");-1===r.2G(n)&&0===r.2G(a)&&f.y.ed&&(r=f.y.ed+"://"+r);q l=!!t("#C-1k-1b-6s").8b("8c");if(0===i.L){q c=t(\'<a 2y="\'+r+\'" id="C-2K-8e">\'+f.K.77(e)+"</a>");l&&c.1g("1O","6r"),e=e.2A(c),i=f.E.J().1d("#C-2K-8e"),i.2f("id")}23 i.1g("2y",r),l?i.1g("1O","6r"):i.2f("1O")}23 0!==i.L&&i.2A(f.K.77(e));f.1k.ee(e,i),f.N.3o(),f.1T.2c()},ee:j(e,i){q o=t("#C-1k-5p").2D(),r=0!==i.L?i:e,s=r.2B();0!==s.L&&"89"===s[0].1c||(s=!1),""!==o?s===!1?(s=t("<3S />").1p(o),r.2d(s)):s.1p(o):s!==!1&&s.1j()},1j:j(e,i,o){i="12"==O i?t(f.1K.1k):i,"ef"!=O e&&f.1T.2c(),f.1G.7T();q r=i.2a("a",f.E.J()[0]),s=i.2a("3v",f.E.J()[0]),n=i.2u();0!==t("#C-1k-1R").L&&(n=t("#C-1k-1R").2u());q a;0!==s.L?(a=s.2B(),s.1j()):0!==r.L?(n=r.2u(),r.1j()):i.1j(),t("#C-1k-1R").1j(),e!==!1&&(0!==s.L&&0!==a.L?f.1y.1V(a):0!==n.L&&f.1y.1V(n)),"ef"!=O e&&f.N.3o(),f.K.8f(),f.1K.1k=!1,f.1G.7U(),f.1B.57(),f.26.4H()}}},2w:j(){v{6T:j(){if(f.3L.M()){q e=t(f.F.21()).2a("li"),i=e.2a("2H, 2Q"),o=e.2a("li"),r=o.3D();if(0!==r.L&&"5d"===r[0].1c)if(f.1T.2c(),f.K.3B()){q s=i[0].1c,n=t("<"+s+" />");f.F.2C(),n.1i(e),r.1i(n),f.F.2m()}23 14.4l("2w"),f.F.2C(),f.2w.a0(),f.2w.7S(),f.F.2m()}},6g:j(){if(f.3L.M()){q e=t(f.F.21()).2a("li");e.2a("2H, 2Q");f.1T.2c(),14.4l("60");q i=t(f.F.21()).2a("li",f.E.J()[0]);if(f.K.3B()&&f.2w.eg(i),0===i.L){14.4l("eh",!1,"p"),i=t(f.F.21());q o=i.2B();0!==o.L&&"5y"===o[0].1c&&o.1j()}f.F.2C(),f.2w.a0(),f.2w.7S(),f.F.2m()}},eg:j(t){q e=t.3D();if(0!==e.L&&"5d"!==e[0].1c){f.F.2C();q i=t.6t("li",f.E.J()[0]);i.2d(t),f.F.2m()}},7S:j(){f.E.J().1d("li").1h(t.T(j(e,i){q o=t(i);o.1d(f.y.63.3A(",")).1h(j(){t(f).2f("2L")});q r=o.2u();if(0!==r.L&&"5d"===r[0].1c)v 1A r.2d(o);q s=o.2B();0===s.L||"5B"!==s[0].1c&&"5b"!==s[0].1c||o.1i(s)},f))},a0:j(e){q i=f.E.J().1d("2H, 2Q"),o=f.E.J().1d("li");o.1h(t.T(j(t,e){f.2w.8g(e)},f)),i.1h(t.T(j(t,e){f.2w.8g(e)},f)),o.1h(t.T(j(t,e){f.2w.8g(e)},f))},8g:j(e){q i=e.2J.G(/[\\t\\s\\n]/g,"");i=i.G(/<1N><\\/1N>/g,""),""===i&&t(e).1j()}}},1m:j(){v{2b:j(t,e,i,o){if(t=t.2S(),!f.K.4q(["67"])){1X(q r=["b","3U","i","3V","5X","ei","4c","bn","bo"],s=["5V","5V","em","em","u","3T","3T","8N","8O"],n=0;n<r.L;n++)t===r[n]&&(t=s[n]);f.1B.1Q(),f.1T.2c(),f.K.3B()?f.1m.7E(t,e,i,o):f.1m.7F(t,e,i,o)}},7F:j(e,i,o,r){q s=f,n=f.1m.5e(),a=f.F.21();a&&n.2q(a),f.F.2C(),"3T"!==e&&f.E.J().1d("3T").1h(j(t,e){s.K.3h(e,"ej")}),"u"!==e&&f.E.J().1d("u").1h(j(t,e){s.K.3h(e,"1m")}),t.1h(n,j(){if(1===f.4E){q t=f.1c.2S();if(t===e){q i=s.K.3h(f,"6E");i.1S("C-a1")}}}),f.F.2m(),14.4l("ei");q l=!0,c=f.F.2u();c!==!1&&"ja"===c.1c||(l=!1),f.F.2C(),"u"!==e&&f.E.J().1d("u").2A(j(){v t(f).2E()}),f.E.J().1d("6E").1h(j(){q t=s.K.3h(f,e);l&&s.1m.4A(t,i,o,r)}),f.E.J().1d(".C-a1").1h(j(){q i=f.1c.2S();i===e&&l!==!1||t(f).2A(j(){v t(f).2E()}),t(f).2l("C-a1")}),"3T"!==e&&f.E.J().1d("ej").1h(j(t,e){s.K.3h(e,"3T")}),"u"!==e&&f.E.J().1d("1m").1h(j(t,e){s.K.3h(e,"u")}),f.F.2m()},5e:j(){q e=[],i=f.1m.6u();t.1h(i,t.T(j(t,i){f.K.4Z(i)&&e.2q(i)},f));q o=f.F.1m();v o===!1&&0===e.L?[]:o!==!1&&0===e.L?[o]:e},6u:j(){q t=14.3R();if(!t.78||t.3B||!t.5f(0).79)v[];q e=t.5f(0);if(3===e.79.4E){1X(q i=[],o=e.79;o.47&&1===o.47.jb.L;)i.2q(o.47),o=o.47;v i}v[].5s.49(e.79.jc("*"),j(e){v"j"==O t.ek?t.ek(e,!0):!0})},7E:j(e,i,o,r){q s=f.F.1m();if(s){q n=s.1c.2S();if(n===e)if(f.K.3k(s.2J))f.1y.2d(s),t(s).1j();23{q a=f.1m.eo(s,n);f.1y.2d(a)}23 0===t(s).2a(e).L?f.1m.a2(e,i,o,r):f.1y.1V(s)}23 f.1m.a2(e,i,o,r)},eo:j(e,i){q o=14.3i("1N");o.id="C-1m-ep",o=f.1t.2M(o);q r=f.K.4N(e),s=f.K.77(e),n=r?"":"<"+i+">";s=s.G(/<1N\\d6="C-1m-ep">​<\\/1N>/i,"</"+i+">"+n);q a=t(s);v t(e).2A(a),""!==n&&f.K.a3(e,a.3r()),a.4o()},a2:j(t,e,i,o){q r=14.3i(t);r=f.1m.4A(r,e,i,o),f.1t.2M(r),f.1y.1V(r)},4A:j(t,e,i,o){if("12"==O e)v t;q r="12"==O o?"3H":o;v t="1C"===e?f.1m[r+"cm"](i,t):"1j"===r?f.1m[r+"6e"](e,t):"cn"===r?f.1m[r+"6e"](t):f.1m[r+"6e"](e,i,t)},48:j(t){v"12"==O t?f.F.5e():t},3c:j(e,i,o,r){q s=f.F.5e(),n=[],a=f;v t.1h(s,j(s,l){if(t.7a(e)){if(-1===t.3g(l.1c.2S(),e))v}23 if("*"!==e&&l.1c.2S()!==e)v;n.2q(a.1m.4A(l,i,o,r))}),n},co:j(e,i){v t(f.1m.48(i)).2f("1C").1S(e)[0]},6P:j(e,i){v t(f.1m.48(i)).6P(e)[0]},1S:j(e,i){v t(f.1m.48(i)).1S(e)[0]},2l:j(e,i){v t(f.1m.48(i)).2l(e)[0]},cp:j(e){v t(f.1m.48(e)).2f("1C")[0]},cq:j(e,i,o){v e=f.1m.2f(i,f.1m.48(e)),t(e).1g(i,o)[0]},cr:j(e,i,o){o=f.1m.48(o);q r=f,s=[];v t.1h(o,j(o,n){q a=t(n);a.1g(e)?s.2q(r.1m.2f(e,n)):s.2q(r.1m.7H(e,i,n))}),s},7H:j(e,i,o){v t(f.1m.48(o)).1g(e,i)[0]},2f:j(e,i){v t(f.1m.48(i)).2f(e)[0]},cs:j(e){e=f.1m.48(e);q i=[];v t.1h(e,j(e,o){"12"==O o.3Q&&i.2q(o);1X(q r=t(o),s=o.3Q.L,n=0;s>n;n++)r.2f(o.3Q[n].2T);i.2q(r[0])}),i},92:j(){14.4l("92")}}},1t:j(){v{2c:j(t){f.1B.1Q(),f.26.2c(t),f.1Y.2Z(),f.1B.57()},1e:j(e,i){f.1B.1Q(),f.E.J().1Y();q o=f.F.V(),r=f.F.1m();"12"==O i&&(i=f.1I.9H(e,!0),e=f.1I.9F(e,i,!0)),e=t.9D(e);q s=f.F.M(),n=f.F.2Y(s);if(n.50(),f.F.3c(s,n),i.3N){q a=t(e);if(0!==a.L&&("5B"===a[0].1c||"5b"===a[0].1c))v 1A f.1t.er(o,a)}if(i.53&&o)if(f.K.5L())f.E.J().1e(e),f.1Y.2Z();23{q l=f.K.5M();l===!1?f.1t.a4(e):(e=t(e).1i(f.1n.M()),"1V"===l.1f?l.$V.42(e):l.$V.2d(e),f.F.2m(),f.E.J().1d("p").1h(j(){""===t.2t(f.2J)&&t(f).1j()}))}23{if(r){q c=t("<1v/>").1e(e);c.1d(r.1c.2S()).1h(j(){t(f).2E().7G()}),e=c.1e()}if(f.K.5L()){q d=t(f.y.3p);f.E.J().1e("").1i(d),d.1e(e),f.1y.2Z(d)}23 f.1t.a4(e)}f.K.6p(),f.2p.2b(),i.1w&&f.1I.9J()},1p:j(e){e=e.6b(),e=t.2t(e);q i=14.3i("1v");if(i.2J=e,e=i.do||i.dp,"12"!=O e){f.1B.1Q(),f.E.J().1Y();q o=f.F.53();if(e=e.G(/\\n/g," "),f.K.5L()){q r=t(f.y.3p);f.E.J().1e("").1i(r),r.1e(e),f.1y.2Z(r)}23{q s=f.F.M(),n=14.4m(e);if(s.5f&&s.78){q a=s.5f(0);a.50(),a.3q(n),a.5z(n),a.3C(!0),f.F.3c(s,a)}o.L>1&&(t(n).a5("<p>"),f.1y.2d(n))}f.K.6p(),f.2p.2b(),f.1I.dv()}},8h:j(t){f.1B.1Q(),f.E.J().1Y();q e=f.F.M(),i=f.F.2Y(e);i.50();q o=14.3i("1v");o.2J=t;1X(q r,s,n=14.jd();r=o.es;)s=n.a6(r);i.3q(n),s&&(i=i.8i(),i.5z(s),i.3C(!0),e.44(),e.4n(i))},2M:j(e,i){f.1B.1Q(),"12"!=O f.1V&&f.E.J().1Y(),e=e[0]||e;q o=f.F.V(),r=f.K.5A(e.1c);if(f.K.5L())r?f.E.J().1e(e):f.E.J().1e(t("<p>").1e(e)),f.26.4H();23 if(r&&o){q s=f.K.5M();s===!1?f.1t.a7(e,i):("1V"===s.1f?s.$V.42(e):s.$V.2d(e),f.E.J().1d("p:je").1j())}23 f.1t.a7(e,i);v f.K.6p(),f.1y.2Z(e),e},er:j(e,i){q o,r=t(e),s=f.K.3k(e.2J);if(s||f.K.4N(e))o=r,i.1d("li").1h(j(){o.2d(f),o=t(f)}),s&&r.1j();23 if(f.K.5g(e))i.1d("li").1h(j(){r.42(f),o=t(f)});23{q n=f.F.a8(e);r.2d(t("<li>").1i(n)),r.1i(i),o=i}f.1n.1j(),o&&f.1y.2Z(o),f.2p.2b()},a4:j(e){q i=14.3i("1N");i.id="C-1t-1n",i=f.1t.2M(i),t(i).42(e),f.F.2m(),f.1y.2d(i),t(i).1j()},a7:j(t,e){q i=f.F.M(),o=f.F.2Y(i);e!==!1&&o.50(),o.3q(t),o.3C(!1),f.F.3c(i,o)},87:j(e,i){if(f.1B.1Q(),i=i[0]||i,f.K.3k())v i=f.K.8j(i)?i:t("<p />").1i(i),f.E.J().1e(i),i;q o,r=e.9k,s=e.ca;if(14.et){q n=14.et(r,s),a=14.3R();o=a.5f(0),o.58(n.jf,n.2W),o.3C(!0),o.3q(i)}23 if(14.eu)o=14.eu(r,s),o.3q(i);23 if("12"!=O 14.2N.ev){o=14.2N.ev(),o.ew(r,s);q l=o.jg();l.ew(r,s),o.jh("ji",l),o.bL()}v i},jj:j(t,e){f.1t.87(t,e)},1n:j(){f.1n.1t()}}},Y:j(){v{2o:j(e){if(!f.6q){q i=e.5u,o=i>=37&&40>=i;f.Y.3e=e.5v||e.51,f.Y.2u=f.F.2u(),f.Y.21=f.F.21(),f.Y.V=f.F.V(),f.Y.1w=f.K.3O(f.Y.21,"1w"),f.Y.2h=f.K.3O(f.Y.21,"2h"),f.Y.3S=f.K.3O(f.Y.21,"3S"),f.Y.3v=f.K.3O(f.Y.21,"3v");q r=f.E.1r("Y",e);if(r===!1)v e.1P(),!1;if(f.3F.2o(e,i),f.Y.ex(o,i),f.Y.ey(e,i),f.K.5L()&&(i===f.29.4g||i===f.29.4x||i===f.29.4f))v e.1P(),1A f.26.2c(f.y.3p);if(f.Y.ez(o),f.Y.eA(e,i),!f.y.5U&&i===f.29.4g){e.1P();q s=f.F.M(),n=f.F.2Y(s);v 1A(n.6a||n.50())}if(f.y.5U&&i===f.29.bT&&f.Y.eB(),f.y.5U&&i===f.29.bS&&f.Y.eC(),("2x"===f.y.1f||"1v"===f.y.1f)&&f.Y.21&&3===f.Y.21.4E&&t(f.Y.2u).2s("C-in")&&f.Y.eD(),i===f.29.7u&&(e.5v||e.4z))v e.1P(),f.Y.eE();if(i===f.29.4g&&(e.5v||e.4z))v e.1P(),f.Y.eF(e);if(i===f.29.4g&&!e.4z&&!e.5v&&!e.51)v f.Y.eG(e);if(i===f.29.9c||e.51&&a9===i||e.51&&aa===i)v f.Y.eH(e,i);if(i!==f.29.4x&&i!==f.29.4f||f.Y.eI(),i===f.29.4f){q a=t(f.Y.V).2B();if(f.K.4N(f.Y.V)&&0!==a.L&&"6v"===a[0].1c)v a.1j(),!1;q l=f.Y.V&&"5d"===f.Y.V.1c?f.Y.V:!1;if(l){q c=t(f.Y.V).6t("2H, 2Q").3r(),d=c.2B();if(f.K.3Y(c)&&f.K.4N(c)&&0!==d.L&&("5B"===d[0].1c||"5b"===d[0].1c))v e.1P(),c.1i(d.2E()),d.1j(),!1}if(f.K.4N(f.Y.V)&&0!==a.L&&"67"===a[0].1c)v t(f.Y.V).1i(a.1p()),a.1j(),!1}if(i===f.29.4f&&0!==t("#C-1k-1R").L&&f.1k.1j(),i===f.29.4x){if(f.1F.43()&&f.4a.eJ(e),f.3L.eK(f.Y.V))v 1A e.1P();q h=f.F.V();if(h&&"5d"===h.1c&&f.K.3B()&&f.K.5g())v f.2w.6g(),1A e.1P();f.Y.eL(),f.Y.eM(e)}i!==f.29.4x&&i!==f.29.4f||f.Y.eN(e)}},eE:j(){v f.1T.2c(),f.1t.8h("&4G;"),!1},eF:j(t){v f.1T.2c(),f.Y.1w?f.Y.ab(t):f.1t.8h("<br>")},eI:j(){f.K.8k()},eN:j(e){2U(t.T(j(){f.26.69=!1,f.Y.eO(),f.E.J().1d("*[2L]").5x("2K, #C-1k-1R, #C-1k-jk").2f("2L"),f.Y.eP(e),f.26.69=!0},f),1)},eG:j(e){q i=f.E.1r("jl",e);if(i===!1)v e.1P(),!1;if(f.Y.2h&&f.Y.eQ(e)===!0)v!1;if(f.Y.1w)v f.Y.ab(e);if(f.Y.2h||f.Y.3S)v f.Y.ac(e);if(f.Y.3v)2U(t.T(j(){f.Y.ad("6v")},f),1);23 if(f.Y.V){if(2U(t.T(j(){f.Y.ad("7w")},f),1),"5d"===f.Y.V.1c){q o=f.F.21(),r=t(o).2a("li",f.$J[0]),s=r.6t("2H,2Q",f.$J[0]).3r();if(0!==r.L&&f.K.3k(r.1e())&&0===s.2B().L&&f.K.3k(s.1d("li").3r().1e())){s.1d("li").3r().1j();q n=t(f.y.3p);v s.2d(n),f.1y.1V(n),!1}}}23 if(!f.Y.V)v f.Y.eR(e);v f.1F.43()&&f.K.4Z(f.Y.2u)?1A f.Y.ac(e):1A 2U(t.T(j(){q e=f.F.1m();if(e&&f.K.3k(e.2J)){q i=f.F.V();t(e).1j();q o=14.5a();o.58(i,0);q r=14.4m("​");o.3q(r),o.5z(r),o.3C(!0);q s=2e.3R();s.44(),s.4n(o)}},f),1)},ex:j(t,e){t||"1E"!==f.E.6n()&&"85"!==f.E.6n()||(f.E.6Z(!1),f.Y.eS(e)&&f.1T.2c())},eS:j(e){q i=f.29,o=[i.4x,i.4f,i.4g,i.6K,i.9c,i.bU,i.bV,i.bX,i.bW];v-1===t.3g(e,o)},ez:j(t){v t?"1E"===f.E.6n()||"85"===f.E.6n()?1A f.E.6Z(!1):1A f.E.6Z("85"):1A 0},ey:j(t,e){v f.Y.3e&&90===e&&!t.4z&&!t.9l&&f.y.1T.L?(t.1P(),1A f.1T.7J()):f.Y.3e&&90===e&&t.4z&&!t.9l&&0!==f.y.62.L?(t.1P(),1A f.1T.9o()):1A(f.Y.3e||e!==f.29.7u&&e!==f.29.4x&&e!==f.29.4f&&(e!==f.29.4g||t.5v||t.4z)||f.1T.2c())},eQ:j(e){if(f.K.4N(f.Y.2h)){q i=f.1I.du(t(f.Y.2h).1e());if(-1!==i.2G(/(<br\\s?\\/?>){3}$/i)){e.1P();q o=t(f.Y.2h).5K().3r().3D();o.3D().5s("br").1j(),o.5s("br").1j(),t(f.Y.2h).5K().3r().5s("br").1j(),t(f.Y.2h).5K().3r().5s("1N").1j();q r=t(f.y.3p);v t(f.Y.2h).2d(r),f.1y.1V(r),!0}}},eB:j(){1X(q t=[f.Y.2h,f.Y.1w,f.Y.3S],e=0;e<t.L;e++)if(t[e])v f.Y.eT(t[e]),!1},eC:j(){1X(q t=[f.Y.2h,f.Y.1w,f.Y.3S],e=0;e<t.L;e++)if(t[e])v f.Y.eU(t[e]),!1},eT:j(e){if(f.K.4N(e)){q i=f.E.J().2E().3r(),o="89"===e.1c?t(f.Y.V).2u().2B():t(f.Y.V).2B();if(0===o.L){if(0===i.L&&i[0]!==e)v 1A f.1y.1V(i);q r=t(f.y.3p);"89"===e.1c?t(e).2u().2d(r):t(e).2d(r),f.1y.1V(r)}}},eU:j(e){if(f.K.5g()&&!(f.E.J().2E().L>1&&f.E.J().2E().4o()[0]!==e)){q i=t(f.y.3p);t(e).42(i),f.1y.1V(i)}},eH:j(t,e){if(!f.y.b8)v!0;if(f.K.3k(f.26.M())&&f.y.7j===!1)v!0;t.1P(),f.1T.2c();q i,o=f.Y.V&&"5d"===f.Y.V.1c&&f.K.5g(f.Y.V);v f.Y.1w&&!t.4z?(i=f.y.5n?14.4m(6z(f.y.5n+1).3A(" ")):14.4m("        "),f.1t.2M(i)):f.y.7j===!1||o?t.51&&aa===e?f.2w.6g():t.51&&a9===e?f.2w.6T():t.4z?f.2w.6g():f.2w.6T():(i=14.4m(6z(f.y.7j+1).3A(" ")),f.1t.2M(i)),!1},eA:j(t,e){f.Y.3e&&65===e?f.K.eV():e===f.29.bY||f.Y.3e||f.K.6p()},ab:j(t){t.1P();q e=14.4m("\\n"),i=f.F.M(),o=f.F.2Y(i);v o.50(),o.3q(e),f.1y.2d(e),!1},eR:j(t){t.1P();q e=14.3i("p");e.2J=f.y.9b;q i=f.F.M(),o=f.F.2Y(i);v o.50(),o.3q(e),f.1y.1V(e),!1},ac:j(t){v f.Y.ae(t)},jm:j(t){v f.Y.ae(t,!0)},ae:j(t,e){t.7X();q i=14.3i("br");if(f.1t.2M(i),e===!0){q o=14.3i("br");f.1t.2M(o)}v!1},eD:j(){q e=t(f.Y.21),i=t("<p>").1i(e.8l());e.2A(i);q o=t(i).2B();"12"!=O o[0]&&"5y"===o[0].1c&&o.1j(),f.1y.2Z(i)},ad:j(e){q i=f.F.V(),o=t(i).3D(),r=i.2J.G(/<br\\s?\\/?>/gi,"");if(i.1c===e&&f.K.3k(r)&&!t(i).2s("C-in")){q s=14.3i("p");v t(i).2A(s),f.Y.af(s),!1}if("P"===i.1c)v t(i).2f("1C").2f("2L"),f.1F.4D()&&f.K.3k(r)&&f.K.4Z(f.Y.2u)&&t(i).1s("2R",t.T(j(){q e=f.F.2u();if(f.K.4Z(e)){q o=t(e).1e();t(i).1e(o),f.1y.2Z(i)}t(i).1J("2g")},f)),!1;if(o.2s(f.y.8T)){o.2f("1C");q s=14.3i("p");v o.2A(s),f.Y.af(s),!1}},af:j(t){q e=14.5a();e.58(t,0);q i=14.4m("​");e.3q(i),e.5z(i),e.3C(!0);q o=2e.3R();o.44(),o.4n(e)},eL:j(){q e=t(f.Y.21);0===e.1p().2G(/^\\4p$/g)&&e.1j()},eM:j(e){q i=t(f.Y.21),o=t(f.Y.2u),r=i.2a("3G",f.$J[0]);if(0!==r.L&&i.2a("li",f.$J[0])&&1===o.5K("li").L){if(!f.K.3k(i.1p()))v;e.1P(),i.1j(),o.1j(),f.1y.1V(r)}},eO:j(){q e=j(){q e=t.2t(f.2J).G(/\\/t\\/n/g,"");""===e&&t(f).1j()};f.E.J().1d("li").1h(e),f.E.J().1d("2H, 2Q").1h(e)},eP:j(e){q i=t.2t(f.E.J().1e());if(f.K.3k(i))v e.1P(),"1m"===f.y.1f||"1w"===f.y.1f?(f.E.J().1e(f.1n.1e()),f.F.2m()):(f.E.J().1e(f.y.3p),f.1Y.1V()),!1}}},2g:j(){v{2o:j(e){if(!f.6q){q i=e.5u;f.2g.V=f.F.V(),f.2g.21=f.F.21(),f.2g.2u=f.F.2u();q o=f.E.1r("2g",e);if(o===!1)v e.1P(),!1;if(i===f.29.4g&&f.2g.V&&"6v"===f.2g.V.1c){q r=t(f.2g.V).3D();if(0!==r.L&&"6v"===r[0].1c){q s=f.K.3h(r,"p");v 1A f.1y.1V(s)}}if(i===f.29.4x||i===f.29.4f){if(f.K.5L())v 1A f.1Y.1V();if(f.2g.V&&f.Y.V&&"6v"===f.2g.V.1c&&f.K.5g(f.Y.V)){e.1P(),f.F.2C(),t(f.2g.V).1d("3S").1j(),t(f.2g.V).1d("2K").4o().1j(),f.K.3h(f.2g.V,"p");q n=f.1n.1d();v t("1e, 2N").8m({3X:n.3d().2I+20},9Z),1A f.F.2m()}if(f.2g.V&&"P"===f.2g.V.1c){q a=t(f.2g.V).1d("2K").L,l=t(f.2g.V).1p().G(/\\4p/g,"");""===l&&0!==a&&f.K.3h(f.2g.V,"3v")}f.2g.V&&"6v"===f.2g.V.1c&&0===t(f.2g.V).1d("2K").L&&(f.F.2C(),f.K.3h(f.2g.V,"p"),f.F.2m())}f.2p.eW(i)&&f.2p.2b()}}}},1l:j(){v{3a:j(){f.y.6S=f.y.4S[f.y.1l]},M:j(t){v"12"!=O f.y.6S[t]?f.y.6S[t]:""}}},4a:j(){v{1t:j(){f.1T.2c(),f.1t.1e(f.4a.eX());q t=f.E.J().1d("#C-hr-8e-id");v t.2f("id"),f.E.1r("jn",t),t},eX:j(){q t=\'<hr id="C-hr-8e-id" />\';v!f.1F.43()&&f.K.3k()&&(t+="<p>"+f.y.3p+"</p>"),t},eJ:j(e){if(f.K.3B()){q i=t(f.F.V());if(0!==i.L&&f.K.5g(i)){q o=i.3D();o&&"e3"===o[0].1c&&(e.1P(),o.1j())}}}}},1b:j(){v{M:j(){v t(f.F.5e("a"))},is:j(){q e=f.F.6u(),i=t(f.F.21()).2a("a",f.E.J()[0]);v 0===i.L||e.L>1?!1:i},4d:j(t){"12"!=O t&&t.1P&&t.1P(),f.1T.2c();q e=f.F.5e("a");if(0!==e.L){q i=f.1b.eY(e);f.1K.8n(),f.E.1r("jo",i)}},1t:j(e,i){q o=f.1b.is();if(i!==!0&&(e=f.1b.eZ(o,e),e===!1))v!1;if(f.1T.2c(),o===!1){o=t("<a />"),o=f.1b.3c(o,e),o=t(f.1t.2M(o));q r=o.2u();f.K.3Y(r)===!1&&o.a5("<p>"),r.2s("C-4d")&&r.2A(j(){v t(f).2E()}),f.1y.2d(o),f.E.1r("f0",o)}23 o=f.1b.3c(o,e),f.1y.2d(o)},3c:j(t,e){v t.1p(e.1p),t.1g("2y",e.1x),f.1b.1O(t,e.1O),t},1O:j(t,e){v e?t.1g("1O","6r"):t.2f("1O")},1W:j(e){"12"!=O e&&e.1P&&e.1P(),f.1K.8n();q i=f.1b.is();f.1b.fa(i);q o=f.1b.fb(i);o.1x=f.1b.ag(o.1x),f.y.bi&&!i&&(o.1O=!0),f.1b.fc(o),f.N.1W(),f.1F.31()&&t("#C-1b-1x").1Y()},fc:j(e){t("#C-1b-6s").8b("8c",e.1O),t("#C-1b-1x").2D(e.1x),t("#C-1b-1x-1p").2D(e.1p)},fa:j(e){f.N.3a("1b",f.1l.M(e===!1?"1b-1t":"1b-2r"),jp);q i=f.N.88();i.1p(f.1l.M(e===!1?"1t":"2C")).1s("1E",t.T(f.1b.1r,f))},1r:j(){q t=f.1b.fd();v t===!1?!1:(f.N.3o(),1A f.1b.1t(t,!0))},ah:j(e){v"12"==O e?"":t.2t(e.G(/[^\\W\\w\\D\\d+&\\\'@#\\/%?=~fe|!:,.;\\(\\)]/gi,""))},ai:j(e){v"12"==O e?"":t.2t(e.G(/(<([^>]+)>)/gi,""))},aj:j(t){v""===t.1p&&""!==t.1x?f.1b.fg(t.1x.G(/<|>/g,"")):t.1p},fh:j(t){q e="((ec--)?[\\\\W\\\\w\\\\D\\\\d]+(-[\\\\W\\\\w\\\\D\\\\d]+)*\\\\.)+[\\\\W\\\\w]{2,}",i=1q 1U("^(76|8d|4X)://"+e,"i"),o=1q 1U("^"+e,"i"),r=1q 1U(".(1e|jq)$","i"),s=1q 1U("^/","i"),n=1q 1U("^jr:(.*?)","i");v-1===t.2G(i)&&-1!==t.2G(o)&&(t="76://"+t),-1!==t.2G(i)||-1!==t.2G(r)||-1!==t.2G(s)||-1!==t.2G(n)?t:!1},fi:j(t){v-1!==t.2G("@")&&/(76|8d|4X):\\/\\//i.4J(t)===!1},3k:j(t){v""===t.1x||""===t.1p&&""===t.1x},fg:j(t){v t.L>f.y.6D?t.ak(0,f.y.6D)+"...":t},al:j(t){v f.1b.fi(t.1x)?t.1x="am:"+t.1x.G("am:",""):0!==t.1x.2G("#")&&(t.1x=f.1b.fh(t.1x)),f.1b.3k(t)||t.1x===!1?!1:t},fd:j(){q e={};v e.1x=f.1b.ah(t("#C-1b-1x").2D()),e.1p=f.1b.ai(t("#C-1b-1x-1p").2D()),e.1p=f.1b.aj(e),e.1O=!!t("#C-1b-6s").8b("8c"),f.1b.al(e)},eZ:j(t,e){v e.1x=f.1b.ah(e.1x),e.1p="12"==O e.1p&&f.F.is()?f.F.1p():f.1b.ai(e.1p),e.1p=f.1b.aj(e),e.1O=t===!1?e.1O:f.1b.an(t),f.1b.al(e)},fb:j(t){q e={1x:"",1p:f.F.is()?f.F.1p():"",1O:!1};v t!==!1&&(e.1x=t.1g("2y"),e.1p=t.1p(),e.1O=f.1b.an(t)),e},an:j(t){v"12"!=O t.1g("1O")&&"6r"===t.1g("1O")},ag:j(t){q e=js.jt.2y.G("#","").G(/\\/$/i,"");v t.G(/^\\/\\#/,"#").G(e,"").G("am:","")},eY:j(e){q i,o=t.1h(e,j(e,o){q r=t(o),s=t(\'<1N 1C="C-4d" />\').1i(r.2E());v r.2A(s),0===e&&(i=s),r});v 1===e.L&&f.F.3B()&&f.1y.2d(i),o}}},2p:j(){v{eW:j(t){v t===f.29.4g||t===f.29.7u},fj:j(t){v t.5h.2F(f.y.3z.6I)||t.5h.2F(f.y.3z.6J)||t.5h.2F(f.y.3z.7t)||t.5h.2F(f.y.3z.1x)},fk:j(e,i){v 3===i.4E&&""!==t.2t(i.5h)&&!t(i).2u().is("1w")&&f.2p.fj(i)},70:j(e,i){q o=t(i),r=o.1p(),s=r;s=s.2F(f.y.3z.6I)||s.2F(f.y.3z.6J)?f.2p.fl(s):s.2F(f.y.3z.7t)?f.2p.fm(s):f.2p.fo(s),o.42(r.G(r,s)).1j()},2b:j(){if(f.y.2p&&!f.K.4q("1w")){f.E.J().1d(":5x(4W,2K,a,1w,.C-4d)").ju().2E().5s(t.T(f.2p.fk,f)).1h(t.T(f.2p.70,f));q e=f.E.J().1d(".C-2p-2X").1h(t.T(j(e,i){q o=t(i);v o.2l("C-2p-2X"),""===o.1g("1C")&&o.2f("1C"),"7w"===i.1c?f.2p.5M(o,"8U"):"5J"===i.1c?f.2p.5M(o,"1k"):"A"===i.1c&&f.E.1r("f0",o),o},f));2U(t.T(j(){f.26.4H(),f.E.1r("2p",e)},f),52)}},5M:j(e,i){q o=f.K.5M();if(o!==!1){q r=e;"1k"===i&&(r=t("<3v />").1i(e)),"1V"===o.1f?o.$V.42(r):o.$V.2d(r),"1k"===i&&f.1y.2d(r)}},fl:j(t){q e=\'<1v 1C="\'+f.y.8T+\' C-2p-2X"><4W 1C="C-2p-2X" 2z="9Z" 4B="jv" 2V="\',i=\'" jw="0" jx></4W></1v>\';v t.2F(f.y.3z.6I)&&(t=t.G(f.y.3z.6I,e+"//64.bQ.7s/jy/$1"+i)),t.2F(f.y.3z.6J)&&(t=t.G(f.y.3z.6J,e+"//jz.bR.7s/8U/$2"+i)),t},fm:j(t){q e=t.2F(f.y.3z.7t);v e?t.G(t,\'<2K 2V="\'+e+\'" 1C="C-2p-2X" />\'):t},fo:j(e){q i=e.2F(f.y.3z.1x);if(!i)v e;i=t.jA(i,j(e,o){v t.3g(e,i)===o});1X(q o=i.L,r=0;o>r;r++){q s=i[r],n=s,a=1D!==s.2F(/(4X?|8d):\\/\\//i)?"":"76://";n.L>f.y.6D&&(n=n.ak(0,f.y.6D)+"..."),-1===n.2G("%")&&(n=fp(n));q l="\\\\b";-1!==t.3g(s.aW(-1),["/","&","="])&&(l="");q c=1q 1U("("+s.G(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,"\\\\$&")+l+")","g");e=e.G(c,\'<a 2y="\'+a+t.2t(s)+\'" 1C="C-2p-2X">\'+t.2t(n)+"</a>")}v e}}},3L:j(){v{3H:j(e){if(!f.K.fq(["7i","3G","4O","b1"])){q i="5W"===e||"2Q"===e?"5b":"5B";e="5b"===i?"5W":"6F";q o=t(f.F.21()).jB(".C-in","2H, 2Q").4o();if(f.1B.1Q(),f.1T.2c(),0!==o.L&&o[0].1c===i&&f.K.3Y(o))v f.F.2C(),o.1d("2H, 2Q").1h(j(){q e=t(f).2a("li");t(f).1d("li").1h(j(){t(e).2d(f)})}),o.1d("2H, 2Q").1j(),o.1d("li").1h(j(){v t(f).2A(j(){v t("<p />").1i(t(f).2E())})}),o.2A(j(){v t(f).2E()}),1A f.F.2m();f.F.2C(),0!==o.L&&o[0].1c!==i?o.1h(t.T(j(t,e){f.K.3h(e,i)},f)):14.4l("1t"+e),f.F.2m();q r=f.3L.M();if(!r)v 1A(f.F.V()||14.4l("eh",!1,"p"));r.1d("1N").2A(j(){v t(f).2E()}),r.1d(f.y.63.3A(",")).1h(j(){t(f).2f("2L")});q s=r.2u();f.K.3Y(s)&&"5d"!==s[0].1c&&f.K.8j(s)&&(f.F.2C(),s.2A(s.2E()),f.F.2m())}},M:j(){q e=f.F.21(),i=t(e).2a("2H, 2Q",f.E.J()[0]);v 0===i.L?!1:i},eK:j(e){q i=t(e).3D(),o=t(e).2B(),r=e&&"P"===e.1c&&("<br>"===e.2J||""===e.2J),s=1===i.2a("2Q, 2H").L&&1===o.2a("2Q, 2H").L;v r&&s?(i.5K("li").3r().1i(f.1n.M()),i.1i(o.2E()),f.F.2m(),!0):!1}}},1n:j(){v{M:j(t){t="12"==O t?1:t;q e=14.3i("1N");v e.id="F-1n-"+t,e.9z="C-F-1n",e.2J=f.y.9b,e},1e:j(t){v f.K.77(f.1n.M(t))},1d:j(t){v t="12"==O t?1:t,f.E.J().1d("1N#F-1n-"+t)},1t:j(){q t=f.F.M(),e=f.F.2Y(t);f.1n.3q(e,f.1n.M(1),!0),e&&e.6a===!1&&f.1n.3q(e,f.1n.M(2),!1)},1j:j(){f.E.J().1d(".C-F-1n").1h(f.1n.fr)},3q:j(e,i,o){q r=f.F.2u();if(1D!==e&&0!==t(r).2a(".C-in").L){e=e.8i();6c{e.3C(o),e.3q(i)}6d(s){f.1Y.1V()}}},fr:j(e,i){q o=t(i),r=o.1p().G(/\\4p/g,"");v""===r?o.1j():o.2A(j(){v t(f).2E()})}}},N:j(){v{4b:{},cN:j(){f.y.N={"1k-2r":6m()+\'<1v 1C="C-N-3I C-jC" 22-1u="fs"><1v id="C-1k-eb" 1C="C-N-3I-jD"></1v><1v 1C="C-N-3I-bM"><2k><1Z>\'+f.1l.M("1u")+\'</1Z><2R 1f="1p" id="C-1k-1u" /></2k><2k><1Z>\'+f.1l.M("5p")+\'</1Z><2R 1f="1p" id="C-1k-5p" 3b-1Z="\'+f.1l.M("5p")+\'" /></2k><2k><1Z>\'+f.1l.M("1b")+\'</1Z><2R 1f="1p" id="C-1k-1b" 3b-1Z="\'+f.1l.M("1b")+\'" /></2k><2k><1Z 1C="8o"><2R 1f="8o" id="C-1k-1b-6s" 3b-1Z="\'+f.1l.M("1b-in-1q-3I")+\'"> \'+f.1l.M("1b-in-1q-3I")+\'</1Z></2k><2k><R id="C-N-R-5N">\'+f.1l.M("1t")+\'</R><R id="C-N-R-4U">\'+f.1l.M("4U")+\'</R><R id="C-N-R-4V" 1C="C-N-R-2W">\'+f.1l.M("4V")+"</R></2k></1v></1v>",1k:6m()+\'<1v 1C="C-N-3I" 22-1u="ft"><2k><1v id="C-N-1k-3j"></1v></2k></1v>\',2i:6m()+\'<1v 1C="C-N-3I" 22-1u="ft"><2k><1Z>\'+f.1l.M("5Z")+\' <1N 1C="jE">(\'+f.1l.M("94")+\')</1N></1Z><2R 1f="1p" id="C-5Z" 3b-1Z="\'+f.1l.M("5Z")+\'" /><br><br></2k><2k><1v id="C-N-2i-1a"></1v></2k></1v>\',1b:6m()+\'<1v 1C="C-N-3I" 22-1u="fs"><2k><1Z>fu</1Z><2R 1f="1x" id="C-1b-1x" 3b-1Z="fu" /></2k><2k><1Z>\'+f.1l.M("1p")+\'</1Z><2R 1f="1p" id="C-1b-1x-1p" 3b-1Z="\'+f.1l.M("1p")+\'" /></2k><2k><1Z 1C="8o"><2R 1f="8o" id="C-1b-6s"> \'+f.1l.M("1b-in-1q-3I")+\'</1Z></2k><2k><R id="C-N-R-5N">\'+f.1l.M("1t")+\'</R><R id="C-N-R-4U">\'+f.1l.M("4U")+"</R></2k></1v>"},t.4Y(f.y,f.y.N)},9v:j(t,e){f.N.4b[t]=e},jF:j(t,e){f.y.N[t]=e},fv:j(t){v f.y.N[t]},jG:j(){v f.$5i},88:j(){v f.$5i.1d("#C-N-R-5N")},fw:j(){v f.$5i.1d("#C-N-R-4U")},e9:j(){v f.$5i.1d("#C-N-R-4V")},3a:j(t,e,i){"12"!=O f.$3s&&f.$3s.2s("6w")||(f.N.8p=t,f.N.2z=i,f.N.1M(),f.N.5G(),f.N.fx(e),f.N.fy(),f.N.fz(),"12"!=O f.N.4b[t]&&f.N.4b[t].49(f))},1W:j(){f.1F.31()||14.e4.55(),f.F.2C(),f.N.fA(),f.1F.4i()&&(f.N.2z="96%"),2U(t.T(f.N.ao,f),0),t(2e).1s("8q.C-N",t.T(f.N.ao,f)),f.$5E.4r("ap",{4s:.25}),f.$3s.1S("6w").1W(),f.$N.4r("ap",{5O:"fB-fC(0.aq, 0.fD, 0.fE, 1.fF)"},t.T(j(){f.K.8k(),f.K.9Q(),f.E.1r("jH",f.N.8p,f.$N),t(14).1J("jI.N");q e=f.$N.1d("2R[1f=1p],2R[1f=1x],2R[1f=jJ]");e.1s("Y.C-N",t.T(f.N.fG,f))},f))},ao:j(){q e=t(2e).4B(),i=t(2e).2z(),o="jK"==O f.N.2z;!o&&f.N.2z.2F(/%$/)?f.$N.28({2z:f.N.2z,"6Q-ar":"as"}):9U(f.N.2z)>i?f.$N.28({2z:"96%","6Q-ar":"2%"}):(o&&(f.N.2z+="3W"),f.$N.28({2z:f.N.2z,"6Q-ar":"as"}));q r=f.$N.fH(),s=e/2-r/2+"3W";f.1F.4i()?s="2%":r>e&&(s="as"),f.$N.28("6Q-2I",s)},fA:j(){f.N.7b=f.$N.1d(".C-N-3I"),f.N.7b.L<2||(f.N.$at=t(\'<1v id="C-N-fI" />\'),t.1h(f.N.7b,t.T(j(e,i){q o=t(\'<a 2y="#" 3K="\'+e+\'" />\').1p(t(i).1g("22-1u"));o.1s("1E",t.T(f.N.fJ,f)),0===e&&o.1S("2P"),f.N.$at.1i(o)},f)),f.$5i.6f(f.N.$at))},fJ:j(e){e.1P();q i=t(e.1O),o=i.1g("3K");v f.N.7b.1Q(),f.N.7b.eq(o).1W(),t("#C-N-fI").1d("a").2l("2P"),i.1S("2P"),!1},fx:j(t){f.$7c.1e(t)},fz:j(){f.$5i.1e(f.N.fv(f.N.8p)),f.N.fw().1s("3J",t.T(f.N.3o,f))},fy:j(){"12"!=O t.fn.fK&&(f.$N.fK({jL:f.$7c}),f.$7c.28("jM","jN"))},fG:j(t){13===t.5u&&(t.1P(),f.N.88().1E())},1M:j(){f.N.fL(),f.$3s=t(\'<1v id="C-N-1R"/>\').1Q(),f.$N=t(\'<1v id="C-N" 5t="jO" />\'),f.$7c=t(\'<1v id="C-N-95" />\'),f.$7d=t(\'<R 1f="R" id="C-N-3o" 3b-1Z="\'+f.1l.M("3o")+\'" />\').1e("&jP;"),f.$5i=t(\'<1v id="C-N-2N" />\'),f.$N.1i(f.$7c),f.$N.1i(f.$5i),f.$N.1i(f.$7d),f.$3s.1i(f.$N),f.$3s.9j(14.2N)},fL:j(){f.$5E=t(\'<1v id="C-N-jQ">\').1Q(),t("2N").6f(f.$5E)},5G:j(){f.$7d.1s("3J.C-N",t.T(f.N.3o,f)),t(14).1s("2g.C-N",t.T(f.N.74,f)),f.E.J().1s("2g.C-N",t.T(f.N.74,f)),f.$3s.1s("1E.C-N",t.T(f.N.3o,f))},8r:j(){f.$7d.1J("3J.C-N"),t(14).1J("2g.C-N"),f.E.J().1J("2g.C-N"),f.$3s.1J("1E§.C-N"),t(2e).1J("8q.C-N")},74:j(t){t.5u===f.29.6K&&f.N.3o(!1)},3o:j(e){if(e){if("C-N-R-4U"!==t(e.1O).1g("id")&&e.1O!==f.$7d[0]&&e.1O!==f.$3s[0])v;e.1P()}f.$3s&&(f.F.2m(),f.N.8r(),f.K.72(),f.K.8f(),f.$5E.4r("6N",{4s:.4},t.T(j(){f.$5E.1j()},f)),f.$N.4r("6N",{4s:.3,5O:"fB-fC(0.aq, 0.fD, 0.fE, 1.aq)"},t.T(j(){"12"!=O f.$3s&&(f.$3s.1j(),f.$3s=1A 0),t(14.2N).28("au",f.N.jR),f.E.1r("jS",f.N.8p)},f)))}}},1K:j(){v{3a:j(){"12"==O f.y.dz&&(f.1K.5C(),f.1K.5c())},jT:j(e,i){v"12"==O i&&(i=t(f.F.21())),i.is(e)||i.6t(e).L>0},15:j(){f.1K.3M(),f.1K.6H()},3M:j(e,i){q o=f.F.21(),r=f.F.2u();v e!==!1?f.R.6M():f.R.6M(i),e===!1&&"1e"!==i?1A(-1!==t.3g(i,f.y.bq)&&f.R.jU(i)):1A(f.K.3Y(o)&&(f.K.9M()||f.K.4q(["7i","1w","2h","li"])?f.R.9m("6G"):f.R.57("6G"),t.1h(f.y.bs,t.T(j(e,i){q s=t(r).2a(e,f.$J[0]),n=t(o).2a(e,f.$J[0]);(0===s.L||f.K.3Y(s))&&f.K.3Y(n)&&(0===s.L&&0===n.2a(e,f.$J[0]).L||f.R.9x(i))},f))))},6H:j(){q e=t("<1v />").1e(f.F.1e()).1d("a").L,i=t(f.F.21()),o=f.K.3Y(i);t.1h(f.y.1K.6H,t.T(j(t,r){q s=r.1K,n=s.1o,a=r.fM,l="12"!=O s["in"]?s["in"]:!1,c="12"!=O s.6h?s.6h:!1;i.2a(n).L>0&&o||"a"===n&&0!==e?f.1K.av(a,l,c):f.1K.av(a,c,l)},f))},av:j(t,e,i){i&&"12"!=O i.1g&&f.1K.aw(t,i.1g,!0),"12"!=O e.1g&&f.1K.aw(t,e.1g),"12"!=O e.1u&&t.1d("1N").1p(e.1u)},aw:j(e,i,o){t.1h(i,j(t,i){"1C"===t?o?e.2l(i):e.1S(i):o?e.2f(t):e.1g(t,i)})},9w:j(t,e,i){"12"!=O i.1K&&(i.fM=t,f.y.1K.6H.2q(i))},5c:j(){f.y.bb&&(f.E.J().1S("C-J-2K-2r"),f.E.J().1d("2K").1h(t.T(j(e,i){q o=t(i);o.2a("a",f.$J[0]).1s("1E",j(t){t.1P()}),f.1k.e6(o)},f)))},5C:j(){f.y.bj&&f.E.J().1d("a").1h(t.T(j(e,i){q o=t(i);o.22("fN")!==!0&&(o.22("fN",!0),o.1s("4k.C."+f.1z+" 1E.C."+f.1z,t.T(f.1K.fO,f)))},f))},fP:j(t){v t.2W()},fO:j(e){q i=t(e.1O);if("5J"!==i[0].1c&&("A"!==i[0].1c&&(i=i.2a("a",f.$J[0])),"A"===i[0].1c)){q o=i,r=f.1K.fP(o),s=t(\'<1N 1C="C-1b-4I"></1N>\'),n=o.1g("2y");1A 0===n&&(n=""),n.L>24&&(n=n.ak(0,24)+"...");q a=t(\'<a 2y="\'+o.1g("2y")+\'" 1O="6r" />\').1e(n).1S("C-1b-4I-5N"),l=t(\'<a 2y="#" />\').1e(f.1l.M("2r")).1s("1E",t.T(f.1b.1W,f)).1S("C-1b-4I-5N"),c=t(\'<a 2y="#" />\').1e(f.1l.M("4d")).1s("1E",t.T(f.1b.4d,f)).1S("C-1b-4I-5N");s.1i(a).1i(" | ").1i(l).1i(" | ").1i(c);q d=9U(o.28("4a-4B"),10),h=9T.jV((e.jW-r.2I)/d),u=r.2I+h*d;s.28({2I:u+"3W",2O:r.2O+"3W"}),t(".C-1b-4I").1j(),t("2N").1i(s),f.E.J().1s("4k.C."+f.1z+" 1E.C."+f.1z,t.T(f.1K.7e,f)),t(14).1s("4k.C."+f.1z+" 1E.C."+f.1z,t.T(f.1K.7e,f))}},8n:j(){t(".C-1b-4I").1j()},7e:j(e){e=e.75||e;q i=e.1O,o=t(i).2a("a",f.$J[0]);0!==o.L&&"A"===o[0].1c&&"A"!==i.1c||"A"===i.1c&&f.K.3Y(i)||t(i).2s("C-1b-4I-5N")||(f.1K.8n(),f.E.J().1J("4k.C."+f.1z+" 1E.C."+f.1z,t.T(f.1K.7e,f)),t(14).1J("4k.C."+f.1z+" 1E.C."+f.1z,t.T(f.1K.7e,f)))}}},2W:j(){v{M:j(e){q i=f.2W.8l(e);if(i===!1)v 0;q o=14.3i("1v");o.a6(i.fQ()),o.2J=o.2J.G(/<2K(.*?[^>])>$/gi,"i");q r=t.2t(t(o).1p()).G(/[\\t\\n\\r\\n]/g,"").G(/\\4p/g,"");v r.L},8l:j(t){q e=f.F.M(),i=f.F.2Y(e);if(1D===i&&"12"==O t)v!1;if(t="12"==O t?f.$J:t,t===!1)v!1;t=t[0]||t;q o=i.8i();v o.6j(t),o.7P(i.ax,i.fR),o},2c:j(t,e){e="12"==O e?t:e,f.1Y.is()||f.1Y.1V();1X(q i,o=f.F.M(),r=f.F.2Y(o),s=0,n=14.jX(f.$J[0],jY.jZ,1D,1D);1D!==(i=n.ay());)if(s+=i.5h.L,s>t&&(r.58(i,i.5h.L+t-s),t=1/0),s>=e){r.7P(i,i.5h.L+e-s);fS}r.3C(!1),f.F.3c(o,r)}}},2n:j(){v{3a:j(e){v f.y.2n===!1||"1m"===f.y.1f||"1w"===f.y.1f?e:""===e||"<p></p>"===e?f.y.3p:(e+="\\n",f.2n.8s=[],f.2n.z=0,e=e.G(/(<br\\s?\\/?>){1,}\\n?<\\/2h>/gi,"</2h>"),e=e.G(/<\\/1w>/gi,"</1w>\\n\\n"),e=f.2n.fT(e),e=e.G("<br>","\\n"),e=f.2n.fU(e),e=f.2n.7I(e),e=f.2n.fV(e),e=e.G(1q 1U("<br\\\\s?/?>\\n?<("+f.y.9a.3A("|")+")(.*?[^>])>","gi"),"<p><br /></p>\\n<$1$2>"),t.2t(e))},fT:j(e){q i=t("<1v />").1i(e);v i.1d("2h p").2A(j(){v t(f).1i("<br />").2E()}),i.1d(f.y.9a.3A(", ")).1h(t.T(j(e,i){v f.2n.z++,f.2n.8s[f.2n.z]=i.fW,t(i).2A("\\n#####G"+f.2n.z+"#####\\n\\n")},f)),i.1d("1N.C-F-1n").1h(t.T(j(e,i){v f.2n.z++,f.2n.8s[f.2n.z]=i.fW,t(i).2A("n#####G"+f.2n.z+"#####k0")},f)),i.1e()},fV:j(e){v t.1h(f.2n.8s,j(t,i){i="12"!=O i?i.G(/\\$/g,"&#36;"):i,e=e.G("#####G"+t+"#####",i)}),e},fU:j(e){e=e.G(/\\r\\n/g,"8t"),e=e.G(/\\n/g,"8t"),e=e.G(/\\r/g,"8t");q i=/\\s+/g;e=e.G(i," "),e=t.2t(e);q o=/k1/gi;e=e.G(o,"</p><p>");q r=/8t/gi;v e=e.G(r,"<br>"),e="<p>"+e+"</p>",e=e.G("<p></p>",""),e=e.G("\\r\\n\\r\\n",""),e=e.G(/<\\/p><p>/g,"</p>\\r\\n\\r\\n<p>"),e=e.G(1q 1U("<br\\\\s?/?></p>","g"),"</p>"),e=e.G(1q 1U("<p><br\\\\s?/?>","g"),"<p>"),e=e.G(1q 1U("<p><br\\\\s?/?>","g"),"<p>"),e=e.G(1q 1U("<br\\\\s?/?></p>","g"),"</p>"),e=e.G(/<p>&4G;<\\/p>/gi,""),e=e.G(/<p>\\s?<br>&4G;<\\/p>/gi,""),e=e.G(/<p>\\s?<br>/gi,"<p>")},7I:j(t){v t=t.G(/<p>(.*?)#####G(.*?)#####\\s?<\\/p>/gi,"<p>$1</p>#####G$2#####"),t=t.G(/(<br\\s?\\/?>){2,}<\\/p>/gi,"</p>"),t=t.G(1q 1U("</2h></p>","gi"),"</2h>"),t=t.G(1q 1U("<p></2h>","gi"),"</2h>"),t=t.G(1q 1U("<p><2h>","gi"),"<2h>"),t=t.G(1q 1U("<2h></p>","gi"),"<2h>"),t=t.G(1q 1U("<p><p ","gi"),"<p "),t=t.G(1q 1U("<p><p>","gi"),"<p>"),t=t.G(1q 1U("</p></p>","gi"),"</p>"),t=t.G(1q 1U("<p>\\\\s?</p>","gi"),""),t=t.G(1q 1U("\\n</p>","gi"),"</p>"),t=t.G(1q 1U("<p>     ?       ?\\n?<p>","gi"),"<p>"),t=t.G(1q 1U("<p> *</p>","gi"),"")}}},3u:j(){v{2o:j(e){f.6q=!0;q i=!("1w"!==f.y.1f&&!f.K.4q("1w"));v!f.3u.1w&&!f.1F.4i()&&f.y.8R&&f.y.3w&&f.3u.fX(e)?1A(f.1F.4D()&&2U(t.T(f.3u.az,f),52)):(f.K.8k(),f.F.2C(),f.3u.fY(i),t(2e).1s("5D.C-fZ",t.T(j(){t(2e).3X(f.k2)},f)),1A 2U(t.T(j(){q e=f.3u.g0(i);f.1T.2c(),f.F.2m(),f.K.8f();q o=f.1I.9H(e);e=f.1I.9F(e,o);q r=f.E.1r("3u",e);e="12"==O r?e:r,f.3u.1t(e,o),f.6q=!1,i&&f.1I.9J(),t(2e).1J("5D.C-fZ")},f),1))},g0:j(t){q e=t?f.$5j.2D():f.$5j.1e();v f.$5j.1j(),e},fY:j(e){q i={3d:"4L",2z:0,2I:0,2O:"-k3"};f.$5j=e?t("<2x>").28(i):t("<1v>").1g("9q","k4").28(i),f.3u.g1(),f.$5j.1Y()},g1:j(){if(f.1F.4D())f.E.1R().1i(f.$5j);23{q e=t(".N-2N:8u");e.L>0?e.1i(f.$5j):t("2N").1i(f.$5j)}},fX:j(e){e=e.75||e;q i=e.k5;if(f.1F.4D())v!0;if(f.1F.43())v!1;q o=i.k6;if(-1!==o.3P("g2.k7"))v e.1P(),!1;if(i.aA&&i.aA.L){q r=i.aA[0].k8();if(1D===r)v!1;q s=1q k9;v s.ka(r),s.g3=t.T(f.3u.g4,f),!0}},az:j(){q e=f.$J.1d("2K");t.1h(e,t.T(j(e,i){if(-1!==i.2V.2G(/^22\\:1k/i)){q o=2e.4t?1q 4t:1D;if(2e.4t){f.1T.2c(),f.1a.4u=!0,f.1a.1f="1k",f.1a.1x=f.y.3w,f.1a.1r=t.T(j(e){if(f.1F.4D())t(i).a5(t("<3v />"));23{q o=t(i).2u();f.K.3h(o,"3v")}i.2V=e.1x,f.E.1r("3w",t(i),e)},f);q r=f.K.aB(i.2V);o.1i("g5",1),o.1i(f.y.7l,r),f.2j.1W(),f.1a.3Z(o,!1),f.26.4H()}}},f))},g4:j(t){q e=2e.4t?1q 4t:1D;if(2e.4t){f.1T.2c(),f.1a.4u=!0,f.1a.1f="1k",f.1a.1x=f.y.3w,f.1a.1r=f.1k.1t;q i=f.K.aB(t.1O.kb);e.1i("g5",1),e.1i(f.y.7l,i),f.2j.1W(),f.1a.3Z(e,t)}},1t:j(e,i){i.1w?f.1t.8h(e):i.1p?f.1t.1p(e):f.1t.1e(e,i),f.1F.43()&&f.y.8R&&2U(t.T(f.3u.az,f),52)}}},1B:j(){v{57:j(){2U(t.T(j(){v f.1B.g6()?f.1B.1W():f.1B.1Q()},f),5)},1W:j(){f.E.J().1S("C-1B")},3c:j(t){f.y.1B=t,f.E.J().1g("1B",t)},1Q:j(){f.E.J().2l("C-1B")},is:j(){v f.E.J().2s("C-1B")},2o:j(){f.1B.4h()&&(f.K.g7()||f.K.g8(),f.1B.1M(),f.1B.g9(),f.1B.57(),f.1B.5G())},4h:j(){v f.y.1B?f.E.1o().1g("1B",f.y.1B):f.1B.ga()},5G:j(){f.E.J().1s("Y.C-1B."+f.1z,t.T(f.1B.57,f))},8r:j(){f.E.J().1J(".C-1B."+f.1z)},1M:j(){f.E.J().1g("1B",f.E.1o().1g("1B"))},g9:j(){q e=t("<2L />");e.1S("C-1B-2L-4F"),e.1e("#"+f.E.id()+".C-1B::2d "+f.1B.gb()),t("d2").1i(e)},gb:j(){v"{ 2I: "+f.E.J().28("8v-2I")+"; 2O: "+f.E.J().28("8v-2O")+"; }"},g6:j(){q e=t.2t(f.E.J().1e()).G(/[\\t\\n]/g,""),i=["","<p>​</p>","<p>​<br></p>"];v-1!==t.3g(e,i)},ga:j(){v"12"!=O f.E.1o().1g("1B")&&""!==f.E.1o().1g("1B")},4y:j(){f.E.J().2f("1B"),f.1B.1Q(),f.1B.8r(),t(".C-1B-2L-4F").1j()}}},2j:j(){v{$1R:1D,$7f:1D,1O:14.2N,1W:j(){f.2j.is()?f.2j.$1R.1W():(f.2j.1M(),f.2j.$1R.4r("ap"))},1Q:j(){f.2j.is()&&f.2j.$1R.4r("6N",{4s:.35},t.T(f.2j.4y,f))},3c:j(t){f.2j.1W(),f.2j.$7f.28("2z",t+"%")},is:j(){v 1D!==f.2j.$1R},1M:j(){f.2j.$7f=t("<1N />"),f.2j.$1R=t(\'<1v id="C-2j" />\'),f.2j.$1R.1i(f.2j.$7f),t(f.2j.1O).1i(f.2j.$1R)},4y:j(){f.2j.is()&&f.2j.$1R.1j(),f.2j.$1R=1D,f.2j.$7f=1D}}},F:j(){v{M:j(){v 2e.3R?2e.3R():14.F&&"kc"!==14.F.1f?14.F:1D},2Y:j(t){v"12"==O t&&(t=f.F.M()),t.5f&&t.78?t.5f(0):1D},is:j(){v!f.F.3B()},kd:j(){q e=f.F.2Y();if(1D!==e){q i=e.aC.47;if(t(i).2s("C-in")||0!==t(i).6t(".C-in").L)v!0}v!1},3B:j(){q t=f.F.M();v 1D===t?!1:t.3B},3c:j(t,e){1D!==e&&(t.44(),t.4n(e))},21:j(){q t=f.F.M();v 1D===t?!1:t.ke},2u:j(){q t=f.F.21();v 1D===t?!1:t.47},V:j(e){1X(e=e||f.F.21();e;){if(f.K.5A(e.1c))v t(e).2s("C-in")?!1:e;e=e.47}v!1},1m:j(e){1X(e=e||f.F.21();e;){if(f.K.6X(e.1c))v t(e).2s("C-in")?!1:e;e=e.47}v!1},1o:j(e){1X(e||(e=f.F.21());e;){if(1===e.4E)v t(e).2s("C-in")?!1:e;e=e.47}v!1},3D:j(){q t=f.F.21();v 1D===t?!1:f.F.21().kf},2B:j(){q t=f.F.21();v 1D===t?!1:f.F.21().aD},53:j(e){q i=[],o=f.F.6u(e);t.1h(o,t.T(j(t,e){f.K.8j(e)&&i.2q(e)},f));q r=f.F.V();v 0===i.L&&r===!1?[]:0===i.L&&r!==!1?[r]:i},5e:j(e){q i=[],o=f.F.6u(e);t.1h(o,t.T(j(t,e){f.K.4Z(e)&&i.2q(e)},f));q r=f.F.1m();v 0===i.L&&r===!1?[]:0===i.L&&r!==!1?[r]:i},6u:j(e){q i="12"==O e?[]:t.7a(e)?e:[e],o=f.F.M(),r=f.F.2Y(o);if(f.K.3B())v[f.F.21()];q s=r.aC,n=r.ax;if(s===n)v[s];1X(q a=[];s&&s!==n;)a.2q(s=f.F.ay(s));1X(s=r.aC;s&&s!==r.79;)a.kg(s),s=s.47;q l=[];v t.1h(a,j(e,o){q r=1!==o.4E?!1:o.1c.2S();t(o).2s("C-3n-4F, C-F-1n")||r&&0!==i.L&&-1===t.3g(r,i)||l.2q(o)}),0===l.L?[]:l},ay:j(t){if(t.kh())v t.es;1X(;t&&!t.aD;)t=t.47;v t?t.aD:1D},2C:j(){f.1n.1t(),f.gc=f.E.J().1e()},2m:j(t){q e=f.1n.1d(1),i=f.1n.1d(2);f.1F.43()&&f.E.J().1Y(),0!==e.L&&0!==i.L?f.1y.2c(e,i):0!==e.L?f.1y.1V(e):f.E.J().1Y(),t!==!1&&(f.1n.1j(),f.gc=!1)},2M:j(e){t(e).6f(f.1n.M(1)),t(e).1i(f.1n.M(2)),f.F.2m()},cU:j(){f.E.J().1Y();q t=f.F.M(),e=f.F.2Y(t);e.6j(f.E.J()[0]),f.F.3c(t,e)},1j:j(){f.F.M().44()},G:j(t){f.1t.1e(t)},1p:j(){v f.F.M().6b()},1e:j(){q t="",e=f.F.M();if(e.78){1X(q i=14.3i("1v"),o=e.78,r=0;o>r;++r)i.a6(e.5f(r).fQ());t=f.1I.9E(i.2J)}v t},a8:j(t){q e=f.F.M(),i=f.F.2Y(e),o=i.8i();v o.6j(t),o.58(i.ax,i.fR),o.ki()},9L:j(){f.1n.1j()},1n:j(t){v f.1n.M(t)},kj:j(t){v f.1n.1e(t)}}},3F:j(){v{gd:{8:"kk",9:"3I",10:"v",13:"v",16:"4P",17:"3e",18:"8a",19:"kl",20:"km",27:"kn",32:"9B",33:"ko",34:"kp",35:"2Z",36:"kq",37:"2O",38:"kr",39:"8w",40:"ks",45:"1t",46:"3T",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",52:"4",kt:"5",ku:"6",kv:"7",kw:"8",fF:"9",kx:"*",ky:"+",kz:"-",kA:".",kB:"/",kC:"f1",kD:"f2",kE:"f3",kF:"f4",kG:"f5",kH:"f6",kI:"f7",kJ:"f8",kK:"f9",kL:"kM",kN:"kO",kP:"kQ",kR:"kS",kT:"5D",kU:"-",kV:";",kW:"=",kX:",",kY:"-",kZ:".",l0:"/",l1:"`",aa:"[",l2:"\\\\",a9:"]",l3:"\'"},aE:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"fe","=":"+",";":": ","\'":\'"\',",":"<",".":">","/":"?","\\\\":"|"},2o:j(e,i){v f.y.3F===!1?(!e.5v&&!e.51||66!==i&&73!==i||e.1P(),!1):1A t.1h(f.y.3F,t.T(j(t,i){f.3F.1M(e,t,i)},f))},1M:j(e,i,o){1X(q r=t.T(j(){f.3F.ge(o)},f),s=i.3E(","),n=s.L,a=0;n>a;a++)"8D"==O s[a]&&f.3F.70(e,t.2t(s[a]),r)},ge:j(t){q e;"-1"!==t.1L.2G(/\\./)?(e=t.1L.3E("."),"12"!=O f[e[0]]&&f[e[0]][e[1]].5l(f,t.4R)):f[t.1L].5l(f,t.4R)},70:j(e,i,o){i=i.2S().3E(" ");q r=f.3F.gd[e.29],s=6m.l4(e.5u).2S(),n="",a={};t.1h(["8a","3e","4Q","4P"],j(t,i){e[i+"l5"]&&r!==i&&(n+=i+"+")}),r&&(a[n+r]=!0),s&&(a[n+s]=!0,a[n+f.3F.aE[s]]=!0,"4P+"===n&&(a[f.3F.aE[s]]=!0));1X(q l=i.L,c=0;l>c;c++)if(a[i[c]])v e.1P(),o.5l(f,aX)}}},3l:j(){v{22:[],54:j(t){t.5P=!0,t.1x=gf(f.1b.ag(t.1x)),f.3l.22[t.1x]=t},5P:j(t,e){f.3l.22[gf(t)].5P=e},1K:j(){q e=f,i=f.E.J().1d("[22-1k]");i.1h(j(i,o){e.3l.54({1f:"1k",2M:o,1x:o.2V,id:t(o).1g("22-1k")})});q o=f.E.J().1d("[22-2i]");o.1h(j(i,o){e.3l.54({1f:"2i",2M:o,1x:o.2y,id:t(o).1g("22-2i")})});q r=f.E.J().1d("[22-3x]");r.1h(j(i,o){q r="5J"===o.1c?o.2V:o.2y;e.3l.54({1f:"3x",2M:o,1x:r,id:t(o).1g("22-3x")})})},l6:j(){1X(q t in f.3l.22){q e=f.3l.22[t],i="5J"===e.2M.1c?"2V":"2y",o=f.E.J().1d("[22-"+e.1f+"]["+i+\'="\'+e.1x+\'"]\');0===o.L?f.3l.5P(e.1x,!1):f.3l.5P(e.1x,!0)}v f.3l.22}}},15:j(){v{1M:j(){f.R.9g(),f.R.9h(),f.$15=f.15.7A(),f.15.1i(),f.R.$15=f.$15,f.R.9i(),f.R.3a(f.$15),f.15.gg()},7A:j(){v t("<2H>").1S("C-15").1g({id:"C-15-"+f.1z,5t:"15"})},1i:j(){f.y.7o?(f.$15.1S("C-15-l7"),t(f.y.7o).1e(f.$15)):"2x"===f.y.1f?f.$1R.6f(f.$15):f.$1o.42(f.$15)},gg:j(){if(f.y.bl&&!f.y.7o){if(f.y.3y!==14){q e=t(f.y.3y);f.gh=0===e.L?0:f.E.1R().2W().2I-e.2W().2I}q i=0!==f.E.1R().2a(".N-2N").L?l8:0;2U(t.T(j(){if(f.15.8x(!1),f.1F.31())t(f.y.3y).1s("5D.C."+f.1z,t.T(f.15.8x,f));23{q e=f;t(f.y.3y).1s("5D.C."+f.1z,j(){e.E.15().1Q(),9Y(t.22(f,"gj")),t.22(f,"gj",2U(j(){e.E.15().1W(),e.15.8x()},l9))})}},f),i)}},gk:j(){v f.y.3y===14?f.E.1R().2W().2I:f.gh},8x:j(e){q i=0;e!==!1&&(i=f.y.3y===14?20:0);q o=t(f.y.3y).3X(),r=f.15.gk();o!==r&&(o+f.y.5o+i>r?f.15.gl(o,r):f.15.aF())},gm:j(){f.$15.28({2z:f.E.1R().6L(),2O:f.E.1R().2W().2O})},gl:j(e,i){if("12"!=O f.gn&&f.gn.la===!1)v 1A f.15.aF();q o=i+f.E.1R().fH()-32,r=f.E.1R().6L(),s=f.1F.31()?"4L":"5F",n=f.1F.31()?f.y.5o:t(f.y.3y).3X()-i,a=f.1F.31()?f.E.1R().2W().2O:0;f.y.3y!==14&&(s="5F",n=f.y.5o+t(f.y.3y).3X()-i,a=0),f.$15.1S("15-4L-1R"),f.$15.28({3d:s,2z:r,2I:n,2O:a}),e>o&&t(".C-Q-"+f.1z+":8u").1Q(),f.15.go(),f.$15.28("gp",o>e?"8u":"9p"),t(2e).1s("8q.C-15."+f.1z,t.T(f.15.gm,f))},aF:j(){f.$15.28({3d:"aG",2z:"cK",2I:0,2O:0,gp:"8u"}),f.15.gq(),f.$15.2l("15-4L-1R"),t(2e).1J("8q.C-15."+f.1z)},go:j(){q t=f.y.3y===14&&f.1F.31()?"4L":"5F";f.15.aH(t)},gq:j(){f.15.aH("5F")},aH:j(e){q i=f;t(".C-Q-"+f.1z).1h(j(){q o=t(f),r=i.R.M(o.1g("3K")),s="4L"===e?i.y.5o:r.2W().2I;o.28({3d:e,2I:r.7Y()+s+"3W"})})}}},1a:j(){v{2o:j(e,i,o){f.1a.4u=!1,f.1a.1r=o,f.1a.1x=i,f.1a.$el=t(e),f.1a.$3j=t(\'<1v id="C-3j" />\'),f.1a.$aI=t(\'<1v id="C-3j-1B" />\').1p(f.1l.M("1a-1Z")),f.1a.$2R=t(\'<2R 1f="2i" 2T="2i" />\'),f.1a.$aI.1i(f.1a.$2R),f.1a.$3j.1i(f.1a.$aI),f.1a.$el.1i(f.1a.$3j),f.1a.$3j.1J("C.1a"),f.1a.$2R.1J("C.1a"),f.1a.$3j.1s("5I.C.1a",t.T(f.1a.gr,f)),f.1a.$3j.1s("81.C.1a",t.T(f.1a.gs,f)),f.1a.$2R.1s("9N.C.1a",t.T(j(t){t=t.75||t,f.1a.7g(f.1a.$2R[0].83[0],t)},f)),f.1a.$3j.1s("4M.C.1a",t.T(j(t){t.1P(),f.1a.$3j.2l("6x-aJ").1S("6x-4M"),f.1a.84(t)},f))},e0:j(t,e){f.1a.4u=!0,f.1a.7g(t,e)},84:j(t){t=t.75||t;q e=t.82.83;if(f.y.bd)1X(q i=e.L,o=0;i>o;o++)f.1a.7g(e[o],t);23 f.1a.7g(e[0],t)},7g:j(t,e){if(f.y.3x)v f.1a.aK(t),1A f.5S.3Z(t,e);q i=2e.4t?1q 4t:1D;if(2e.4t){f.1a.aK(t);q o="1k"===f.1a.1f?f.y.7l:f.y.bf;i.1i(o,t)}f.2j.1W(),f.E.1r("lb",e,i),f.1a.3Z(i,e)},aK:j(t){f.1a.gu(t),f.1a.4u&&(f.1a.1x="1k"===f.1a.1f?f.y.3w:f.y.4w,f.1a.1r="1k"===f.1a.1f?f.1k.1t:f.2i.1t)},gu:j(t){f.1a.1f=-1===f.y.bN.3P(t.1f)?"2i":"1k",1D===f.y.3w&&1D!==f.y.4w&&(f.1a.1f="2i")},6O:j(e,i){v e===!1||"2X"!=O e?i:(t.1h(e,t.T(j(e,o){1D!==o&&0===o.6b().3P("#")&&(o=t(o).2D()),i.1i(e,o)},f)),i)},3Z:j(e,i){"1k"===f.1a.1f?(e=f.K.aL(f.y.b9,e),e=f.K.aM(f.y.ba,e),e=f.1a.6O(f.1a.8y,e)):(e=f.K.aL(f.y.bg,e),e=f.K.aM(f.y.bh,e),e=f.1a.6O(f.1a.8z,e));q o=1q 8A;o.6w("lc",f.1a.1x),o.aN("X-ld-le","8A"),o.gv=t.T(j(){if(4===o.gw){q e=o.gx;e=e.G(/^\\[/,""),e=e.G(/\\]$/,"");q r;6c{r="8D"==O e?t.cd(e):e}6d(s){r={5R:!0}}f.2j.1Q(),f.1a.4u||f.1a.$3j.2l("6x-4M"),f.1a.1r(r,f.1a.4u,i)}},f),o.3Z(e)},gr:j(t){t.1P(),f.1a.$3j.1S("6x-aJ")},gs:j(t){t.1P(),f.1a.$3j.2l("6x-aJ")},lf:j(){f.1a.8y={}},lg:j(t,e){f.1a.8y[t]=e},lh:j(t){4V f.1a.8y[t]},lj:j(){f.1a.8z={}},lk:j(t,e){f.1a.8z[t]=e},ll:j(t){4V f.1a.8z[t]}}},5S:j(){v{3Z:j(e,i){f.5S.gy(e,t.T(j(t){f.5S.gz(e,t,i)},f))},gy:j(t,e){q i=1q 8A,o=-1===f.y.3x.2G(/\\?/)?"?":"&";i.6w("lm",f.y.3x+o+"2T="+t.2T+"&1f="+t.1f,!0),i.gA&&i.gA("1p/ln; lo=x-lp-lq");q r=f;i.gv=j(t){4===f.gw&&7B===f.5P&&(r.2j.1W(),e(fp(f.gx)))},i.3Z()},gB:j(t,e){q i=1q 8A;v"lr"in i?i.6w(t,e,!0):"12"!=O gC?(i=1q gC,i.6w(t,e)):i=1D,i},gz:j(e,i,o){q r=f.5S.gB("ls",i);r&&(r.g3=t.T(j(){q t;if(f.2j.1Q(),7B!==r.5P)v t={5R:!0},1A f.1a.1r(t,f.1a.4u,r);q e=i.3E("?");if(!e[0])v!1;if(f.1a.4u||f.1a.$3j.2l("6x-4M"),t={1x:e[0],id:e[0],3x:!0},"2i"===f.1a.1f){q s=e[0].3E("/");t.2T=s[s.L-1]}f.1a.1r(t,f.1a.4u,o)},f),r.lu=j(){},r.1a.lv=j(t){},r.aN("lw-lx",e.1f),r.aN("x-ly-lz","g2-lA"),r.3Z(e))}}},K:j(){v{3k:j(e){v e="12"==O e?f.E.J().1e():e,e=e.G(/[\\4p-\\lB\\lC]/g,""),e=e.G(/&4G;/gi,""),e=e.G(/<\\/?br\\s?\\/?>/g,""),e=e.G(/\\s/g,""),e=e.G(/^<p>[^\\W\\w\\D\\d]*?<\\/p>$/i,""),e=e.G(/<4W(.*?[^>])>$/i,"4W"),e=e.G(/<5w(.*?[^>])>$/i,"5w"),e=e.G(/<[^\\/>][^>]*><\\/[^>]+>/gi,""),e=e.G(/<[^\\/>][^>]*><\\/[^>]+>/gi,""),e=t.2t(e),""===e},lD:j(t){6c{v t lE lF}6d(e){v"2X"==O t&&1===t.4E&&"2X"==O t.2L&&"2X"==O t.lG}},lH:j(t,e,i){q o=t.3P(e,i);v o>=0?o:!1},aB:j(t){q e;e=t.3E(",")[0].3P("lI")>=0?lJ(t.3E(",")[1]):lK(t.3E(",")[1]);1X(q i=t.3E(",")[0].3E(":")[1].3E(";")[0],o=1q lL(e.L),r=0;r<e.L;r++)o[r]=e.lM(r);v 1q lN([o],{1f:i})},77:j(e){v t("<1v>").1i(t(e).eq(0).8l()).1e()},a3:j(e,i){e=e[0]||e,i=t(i);1X(q o=e.3Q,r=o.L;r--;){q s=o[r];i.1g(s.2T,s.aO)}v i},5M:j(){q e=f.F.V();if(!e)v!1;q i=f.K.3k(e.2J),o=e.1c.2S();if("1w"===o||"li"===o||"3G"===o||"4O"===o)v!1;if(!i&&f.K.5g(e))v{$V:t(e),$2B:t(e).2B(),1f:"1V"};if(!i&&f.K.4N(e))v{$V:t(e),$2B:t(e).2B(),1f:"2Z"};q r=f.F.a8(e),s=t("<"+o+" />").1i(r);v s=f.K.a3(e,s),t(e).2d(s),{$V:t(e),$2B:s,1f:"fS"}},fq:j(e){e=t.7a(e)?e:[e];1X(q i=f.F.53(),o=i.L,r=!1,s=0;o>s;s++)if(i[s]!==!1){q n=i[s].1c.2S();-1!==t.3g(n,e)&&(r=!0)}v r},lO:j(e){e=t.7a(e)?e:[e];1X(q i=f.F.5e(),o=i.L,r=!1,s=0;o>s;s++){q n=i[s].1c.2S();-1!==t.3g(n,e)&&(r=!0)}v r},3O:j(e,i){q o=t(e).2a(i,f.E.J()[0]);v 1===o.L?o[0]:!1},8j:j(t){v 1D===t?!1:(t=t[0]||t,t&&f.K.5A(t.1c))},5A:j(t){v"12"==O t?!1:f.c2.4J(t)},4Z:j(t){v t=t[0]||t,t&&f.K.6X(t.1c)},6X:j(t){v"12"==O t?!1:f.c3.4J(t)},3Y:j(e){v e?0===t(e).6t(".C-in").L||t(e).2s("C-in")?!1:e:!1},9M:j(){v f.K.4q(["cf","cg","ch","ci","cj","ck"])},4q:j(e){q i=f.F.2u(),o=f.F.21();if(t.7a(e)){q r=0;v t.1h(e,t.T(j(t,e){f.K.aP(o,i,e)&&r++},f)),0!==r}v f.K.aP(o,i,e)},aP:j(t,e,i){v i=i.7v(),e&&e.1c===i?e:t&&t.1c===i?t:!1},g7:j(){q e=f.E.J().28("3d"),i=["5F","4L","aG"];v-1!==t.3g(i,e)},g8:j(){f.E.J().1S("C-aG")},cR:j(){f.8B=t(14).3X(),t(14).3X(f.8B)},cT:j(){"12"!=O f.8B&&t(14).3X(f.8B)},8k:j(){f.aQ=t(14).3X()},8f:j(){"12"!=O f.aQ&&t(14).3X(f.aQ)},5g:j(t){v"12"!=O t||(t=f.F.V())?0===f.2W.M(t):!1},4N:j(e){if("12"==O e&&(e=f.F.V(),!e))v!1;q i=t.2t(t(e).1p()).G(/[\\t\\n\\r\\n]/g,"").G(/\\4p/g,""),o=f.2W.M(e);v o===i.L},lP:j(e,i){q o=t(e);v"12"==O o.1g(i)?!0:""===o.1g(i)?(o.2f(i),!0):!1},3h:j(e,i){q o;v t(e).2A(j(){o=t("<"+i+" />").1i(t(f).2E());1X(q e=0;e<f.3Q.L;e++)o.1g(f.3Q[e].2T,f.3Q[e].aO);v o}),o},5L:j(){v f.aR},eV:j(){f.aR=!0},6p:j(){f.aR=!1},9Q:j(){q e=t("1e"),i=2e.6L;if(!i){q o=14.lQ.lR();i=o.8w-9T.lS(o.2O)}q r=14.2N.gD<i,s=f.K.gE();e.28("au","9p"),r&&e.28("8v-8w",s)},gE:j(){q e=t("2N"),i=14.3i("1v");i.9z="C-gF-gG",e.1i(i);q o=i.lT-i.gD;v e[0].lU(i),o},72:j(){t("1e").28({au:"","8v-8w":""}),t("2N").1j("C-gF-gG")},aL:j(e,i){if(!e)v i;if("2X"==O e)v t.1h(e,j(e,o){1D!==o&&0===o.6b().3P("#")&&(o=t(o).2D()),i.1i(e,o)}),i;q o=t(e);if(0===o.L)v i;v o.1h(j(){i.1i(t(f).1g("2T"),t(f).2D())}),i},aM:j(e,i){if(!e)v i;q o=t(e);if(0===o.L)v i;q r=o.lV();v t.1h(r,j(t,e){i.1i(e.2T,e.aO)}),i},3B:j(){v f.F.3B()},4i:j(){v f.1F.4i()},31:j(){v f.1F.31()},lW:j(){v f.1F.dG()}}},aY:j(){v{7W:j(){v f.1F.9O()},ff:j(){v f.1F.43()},ie:j(){v f.1F.4D()}}}},t(2e).1s("3a.gH.C",j(){t(\'[22-gH="C"]\').C()}),e.4v.2o.4v=e.4v}(gI),j(t){j e(e,i,o,r){q s={4s:.5,gJ:1,aS:0,8C:"C-",5O:"aT"};f.3m=i,f.aU="9R"===f.3m||"9V"===f.3m,f.$1o=t(e),f.6y=["","-lX-","-o-3m-","-7W-"],f.5k=[],"j"==O o?(r=o,f.y=s):f.y=t.4Y(s,o),f.aU&&f.$1o.4B(f.$1o.4B()),f.2o(r)}t.fn.4r=j(t,i,o){v f.1h(j(){1q e(f,t,i,o)})},e.4v={2o:j(t){f.5k.2q(f.3m),f.1I(),"1W"===f.3m?(f.y.5O="aT",f.$1o.2l("1Q").1W(),"j"==O t&&t(f)):"1Q"===f.3m?(f.y.5O="aT",f.$1o.1Q(),"j"==O t&&t(f)):f.8m(t)},8m:j(e){f.$1o.1S("gK").28("7O","").2l("1Q"),f.$1o.1S(f.y.8C+f.5k[0]),f.2c(f.y.4s+"s",f.y.aS+"s",f.y.gJ,f.y.5O);q i=f.5k.L>1?1D:e;f.gL("lY",t.T(j(){f.$1o.2s(f.y.8C+f.5k[0])&&(f.1I(),f.5k.4P(),f.5k.L&&f.8m(e))},f),i)},2c:j(t,e,i,o){1X(q r=f.6y.L;r--;)f.$1o.28(f.6y[r]+"3m-4s",t),f.$1o.28(f.6y[r]+"3m-aS",e),f.$1o.28(f.6y[r]+"3m-lZ-m0",i),f.$1o.28(f.6y[r]+"3m-5O-j",o)},1I:j(){f.$1o.2l("gK"),f.$1o.2l(f.y.8C+f.5k[0]),f.2c("","","","")},gL:j(e,i,o){f.$1o.m1(e.2S()+" 7W"+e+" o"+e+" m2"+e,t.T(j(){"j"==O i&&i(),"j"==O o&&o(f);q e=["6N","9V","m3","m4","m5","m6"];-1!==t.3g(f.3m,e)&&f.$1o.28("7O","9u"),f.aU&&f.$1o.28("4B","")},f))}}}(gI);',62,1371,'|||||||||||||||this||||function|||||||var|||||return|||opts||||redactor||core|selection|replace|||editor|utils|length|get|modal|typeof||dropdown|button||proxy||block|||keydown||||undefined||document|toolbar|||||upload|link|tagName|find|html|type|attr|each|append|remove|image|lang|inline|marker|element|text|new|callback|on|insert|title|div|pre|url|caret|uuid|void|placeholder|class|null|click|detect|events|air|clean|off|observe|func|build|span|target|preventDefault|hide|box|addClass|buffer|RegExp|start|show|for|focus|label||current|data|else|||code||css|keyCode|closest|format|set|after|window|removeAttr|keyup|blockquote|file|progress|section|removeClass|restore|paragraphize|init|linkify|push|edit|hasClass|trim|parent|autosave|indent|textarea|href|width|replaceWith|next|save|val|contents|match|search|ul|top|innerHTML|img|style|node|body|left|active|ol|input|toLowerCase|name|setTimeout|src|offset|object|range|end||isDesktop|||||||||load|aria|update|position|ctrl|to|inArray|replaceToTag|createElement|droparea|isEmpty|storage|animation|script|close|emptyHtml|insertNode|last|modalBox|Redactor|paste|figure|imageUpload|s3|toolbarFixedTarget|regexps|join|isCollapsed|collapse|prev|split|shortcuts|td|toggle|tab|mousedown|rel|list|buttons|lists|isTag|indexOf|attributes|getSelection|figcaption|del|bold|italic|px|scrollTop|isRedactorParent|send||re|before|isFirefox|removeAllRanges|||parentNode|getInlines|call|line|callbacks|deleted|unlink|userAgent|DELETE|ENTER|enabled|isMobile|getBlocks|touchstart|execCommand|createTextNode|addRange|first|u200B|isCurrentOrParent|redactorAnimation|duration|FormData|direct|prototype|fileUpload|BACKSPACE|destroy|shiftKey|setAttr|height|disabled|isIe|nodeType|tag|nbsp|sync|tooltip|test|key|fixed|drop|isEndOfElement|th|shift|meta|params|langs|abbr|cancel|delete|iframe|https|extend|isInline|deleteContents|metaKey|100|blocks|add|blur|command|enable|setStart||createRange|OL|images|LI|inlines|getRangeAt|isStartOfElement|nodeValue|modalBody|pasteBox|queue|apply|plugins|preSpaces|toolbarFixedTopOffset|caption|form|navigator|filter|role|which|ctrlKey|source|not|BR|setStartAfter|isBlockTag|UL|links|scroll|modalOverlay|absolute|enableEvents|dropImage|dragover|IMG|children|isSelectAll|breakBlockTag|action|timing|status|isFunction|error|uploads3|structure|enterKey|strong|orderedlist|underline|Heading|filename|outdent||rebuffer|inlineTags|www|||PRE|initToEdit|syncFire|collapsed|toString|try|catch|Attr|prepend|decrease|out|hideAll|selectNodeContents|lastChild|quot|String|getEvent|dropact|disableSelectAll|rtePaste|_blank|blank|parents|nodes|FIGURE|open|drag|prefixes|Array|settings|tabindex|pasteInlineTags|linkSize|strike|unorderedlist|horizontalrule|dropdowns|linkyoutube|linkvimeo|ESC|innerWidth|setInactiveAll|fadeOut|getHiddenFields|toggleClass|margin|toolbarsButtons|curLang|increase|isAdded|act|prepare|isInlineTag|amp|addEvent|handler|args|enableBodyScroll||closeHandler|originalEvent|http|getOuterHtml|rangeCount|commonAncestorContainer|isArray|tabs|modalHeader|modalClose|closeTooltip|bar|traverseFile|bind|table|tabAsSpaces|autosaveFields|imageUploadParam|dragImageUpload|dragFileUpload|toolbarExternal|buttonsHideOnMobile|blockTags|x200b|com|linkimage|SPACE|toUpperCase|DIV|clickToCancelStorage|clickToCancel|clickToSave|createContainer|200|autosaveTimeout|tags|formatCollapsed|formatUncollapsed|unwrap|addAttr|clear|undo|voice|onSync|max|inactive|display|setEnd|encode|encodeEntities|normalize|stopDetectChanges|startDetectChanges|plugin|webkit|stopPropagation|innerHeight|blured|stopChanges|dragleave|dataTransfer|files|onDrop|arrow|imageEditing|nodeToPoint|getActionButton|FIGCAPTION|alt|prop|checked|ftp|tmp|restoreScroll|removeItemEmpty|raw|cloneRange|isBlock|saveScroll|clone|animate|closeAllTooltip|checkbox|templateName|resize|disableEvents|safes|xparagraphmarkerz|visible|padding|right|observeScroll|imageFields|fileFields|XMLHttpRequest|freezeScrollTop|prefix|string|modules|direction|minHeight|maxHeight|maxWidth|pastePlainText|pasteImages|pasteLinks|pasteBlockTags|sup|sub|preClass|autosaveName|clipboardImageUpload|pasteLinkTarget|videoContainerClass|video|airWidth|formatting|formattingAdd|buttonsHide|replaceTags|||removeFormat|quote|optional|header|||||paragraphizeBlocks|invisibleSpace|TAB|namespace|getModuleMethods|collapseToStart|hideButtons|hideButtonsOnMobile|setFormatting|appendTo|clientX|altKey|disable|removeInlineTags|redo|hidden|contenteditable|cleaned|RedactorPlugins|hideButtonsSlicer|none|addCallback|addDropdown|setActive|textnode|className||space|onSet|parseHTML|onGet|onPaste|getPlainText|getCurrentType|isHtmlBlocked|cleanPre|z0|removeMarkers|isCurrentOrParentHeader|change|isWebkit|mouseover|disableBodyScroll|slideDown|enableCallback|Math|parseInt|slideUp|focused|isCallback|clearTimeout|500|removeEmpty|converted|insertInline|cloneAttributes|placeHtml|wrap|appendChild|placeNode|extractEndOfNode|221|219|insertNewLine|insertBreakLine|replaceToParagraph|insertBreakLineProcessing|setCaretToParagraph|removeSelfHostFromUrl|cleanUrl|cleanText|getText|substring|parse|mailto|buildTarget|buildWidth|fadeIn|175|bottom|16px|tabsBox|overflow|setDropdownProperties|setDropdownAttr|endContainer|nextNode|clipboardUpload|items|dataURItoBlob|startContainer|nextSibling|hotkeysShiftNums|observeScrollDisable|relative|setDropdownPosition|placeholdler|hover|setConfig|appendFields|appendForms|setRequestHeader|value|isCurrentOrParentOne|tmpScrollTop|selectAll|delay|linear|slide|Function|slice|arguments|browser|focusEnd|clickToEdit|tr|ins|samp|kbd|mark|cite|small|tabKey|imageUploadFields|imageUploadForms|imageEditable|imageCaption|multipleImageUpload||fileUploadParam|fileUploadFields|fileUploadForms|linkNewTab|linkTooltip|linkNofollow|toolbarFixed|removeComments|superscript|subscript|shortcutsAdd|activeButtons||activeButtonsStates|Insert|Edit|paragraph|heading1|heading2|heading3|heading4|heading5|heading6|List|bulletslist|numberslist|accessibility|help|address|footer|aside|article|select|area|imageTypes|png|gif|youtube|vimeo|UP|DOWN|CTRL|META|SHIFT|ALT|LEFT_WIN|loadOptions|loadModules|loadToEdit|reIsBlock|reIsInline|detectType|startToEdit|Object|bindModuleMethods|collapseToEnd|mouseup|clientY|bindHide|success|parseJSON|clearInterval|H1|H2|H3|H4|H5|H6|splice|Class|removeAll|replaceClass|removeAllClass|replaceAttr|toggleAttr|removeAllAttr|setUndo|setRedo|getUndo|pop|getRedo|startTextarea|setIn|setId|enableEditor|setOptions|callEditor|createContainerBox|getName|loadFromTextarea|toolbarMobile|dir|min|auto|disableBrowsersEditing|setHelpers|templates|bull|setEvent|haspopup|freezeScroll|clickCallback|unfreezeScroll|all|invisible|setStartBefore|TABLE|savePreCode|saveFormTags|marker1|marker2|head|stripTags|restoreFormTags|nofollow|sid|internal|isHtmlMsWord|cleanMsWord|replaceBrToNl|removeTagsInsidePre|removeSpans||removeEmptyInlineTags|convertTags|reconvertTags|replaceNbspToSpaces|encodeHtml|isHtmlLine|bmso||1href|concat|textContent|innerText|savePreFormatting|saveCodeFormatting|restoreSelectionMarkers||removeSpacesHard|normalizeCurrentHeading|isSync|startSync|event|destroyed|touchmove|iPhone|iPod|BlackBerry|Android|iPad|isIpad|buildFormatting|buildItem|classname|divider|buildClick|buildCommand|getButtonPosition|showIsFixedToolbar|showIsUnFixedToolbar|dropdownHide|mouseout|hideOut|onDropUpload|touchImageEditing|createObserver|setupObserver|observer|iterateObserver|changeHandler|directUpload|700|release|HR|activeElement|imageDelete|setEditable|showEdit|buttonDelete|getDeleteButton|buttonSave|preview|xn|linkProtocol|addCaption|boolean|repositionItem|formatblock|strikethrough|deline|containsNode||||insertBreakpoint|breakpoint||appendLists|firstChild|caretPositionFromPoint|caretRangeFromPoint|createTextRange|moveToPoint|checkEvents|setupBuffer|addArrowsEvent|setupSelectAll|onArrowDown|onArrowUp|wrapToParagraph|onShiftSpace|onShiftEnter|onEnter|onTab|onBackspaceAndDeleteBefore|removeOnBackspace|combineAfterAndBefore|removeInvisibleSpace|removeEmptyListInTable|onBackspaceAndDeleteAfter|removeEmptyLists|formatEmpty|exitFromBlockquote|insertParagraph|checkKeyEvents|insertAfterLastElement|insertBeforeFirstElement|enableSelectAll|isKey|getLineHtml|replaceLinksToText|buildLinkFromObject|insertedLink||||||||||buildModal|buildLinkFromElement|setModalValues|buildLinkFromModal|_||truncateUrl|isUrl|isMailto|isLink|isFiltered|convertVideoLinks|convertImages||convertLinks|decodeURIComponent|inBlocks|iterateRemove|General|Upload|URL|getTemplate|getCancelButton|setTitle|setDraggable|setContent|buildTabber|cubic|bezier|885|320|105|setEnter|outerHeight|tabber|showTab|draggable|buildOverlay|item|cached|showTooltip|getTooltipPosition|cloneContents|endOffset|break|getSafes|convert|restoreSafes|outerHTML|detectClipboardUpload|createPasteBox|freeze|getPasteBoxCode|appendPasteBox|public|onload|insertFromClipboard|clipboard|isEditorEmpty|isEditorRelative|setEditorRelative|buildPosition|isAttr|getPosition|savedSel|hotkeysSpecialKeys|buildHandler|decodeURI|setFixed|toolbarOffsetTop||scrollCheck|getBoxTop|observeScrollEnable|observeScrollResize|fullscreen|setDropdownsFixed|visibility|unsetDropdownsFixed|onDrag|onDragLeave||getType|onreadystatechange|readyState|responseText|executeOnSignedUrl|sendToS3|overrideMimeType|createCORSRequest|XDomainRequest|clientWidth|measureScrollbar|scrollbar|measure|tools|jQuery|iterate|animated|complete|use|strict|No|such|method|VERSION|ltr|tbody|thead|tfoot|container|Format|Image|File|Link|||||||Bold|Italic|Strikethrough|Underline|Lists|Open|Unlink|Cancel|Close|Save|Delete|Text|Title|Normal|Quote|Code|Name|Unordered|Ordered|Outdent||Indent|Line|Drop|here|or|Caption|Bullets|Numbers|Rich|output|option|map|math|fieldset|legend|hgroup|nav|details|menu|summary|jpeg|youtu|jpe|RIGHT|LEFT|getOwnPropertyNames|collapsedEnd|ajax|post|done|autosaveError|application|content|insertAfter|false|labelledby|presentation|TEXTAREA|40px|enableObjectResizing|enableInlineTableEditing|AutoUrlDetect|javascript|getButtons|getButtonsKeys|returnValue|addFirst||||addAfter|addBefore|setIcon|setInactive|disableAll|enableAll|setEndBefore||reg|keys|font|applet||trade|copy|hellip|mdash|dash|docs|guid|Mso|WordDocument|replaceNlToBr|1src|colspan|rowspan|removeSpaces|syncBefore|_data|removeData|firefox|documentMode|Edge|edge|msie|isNaN|Trident|rv|getDropdown|dropdownShow|dropdownShown|dragenter|MutationObserver|forEach|attributeName|subtree|childList|characterData|characterDataOldValue|300|stopDetect|startDetect|fileUploadError|imageUploadError|dragstart|705|STRIKE|childNodes|getElementsByTagName|createDocumentFragment|empty|offsetNode|duplicate|setEndPoint|EndToEnd|nodeToCaretPositionFromPoint|editter|enter|insertDblBreakLine|insertedLine|deletedLink|600|php|tel|self|location|addBack|281|frameborder|allowfullscreen|embed|player|grep|parentsUntil|group|side|desc|addTemplate|getModal|modalOpened|focusin|email|number|handle|cursor|move|dialog|times|overlay|bodyOveflow|modalClosed|isCurrent|toggleActive|ceil|pageY|createTreeWalker|NodeFilter|SHOW_TEXT|nn|xparagraphmarkerzxparagraphmarkerz|saveBodyScroll|9999px|true|clipboardData|types|tiff|getAsFile|FileReader|readAsDataURL|result|Control|isRedactor|anchorNode|previousSibling|unshift|hasChildNodes|extractContents|markerHtml|backspace|pause|capslock|esc|pageup|pagedown|home|up|down|101|102|103|104|106|107|109|110|111|112|113|114|115|116|117|118|119|120|121|f10|122|f11|123|f12|144|numlock|145|173|186|187|188|189|190|191|192|220|222|fromCharCode|Key|changes|external|1e3|250|isOpened|uploadStart|POST|Requested|With|clearImageFields|addImageFields|removeImageFields||clearFileFields|addFileFields|removeFileFields|GET|plain|charset|user|defined|withCredentials|PUT||onerror|onprogress|Content|Type|amz|acl|read|u200D|uFEFF|isElement|instanceof|HTMLElement|ownerDocument|strpos|base64|atob|unescape|Uint8Array|charCodeAt|Blob|inInlines|removeEmptyAttr|documentElement|getBoundingClientRect|abs|offsetWidth|removeChild|serializeArray|isPad|moz|AnimationEnd|iteration|count|one|MS|zoomOut|slideOutUp|slideOutRight|slideOutLeft'.split('|'),0,{}))
\ No newline at end of file
+!function(t){"use strict";function e(t,i){return new e.prototype.init(t,i)}Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;return function(){return e.apply(t)}});var i=0;t.fn.redactor=function(i){var o=[],r=Array.prototype.slice.call(arguments,1);return"string"==typeof i?this.each(function(){var e,s=t.data(this,"redactor");if("-1"!==i.search(/\./)?(e=i.split("."),"undefined"!=typeof s[e[0]]&&(e=s[e[0]][e[1]])):e=s[i],"undefined"!=typeof s&&t.isFunction(e)){var n=e.apply(s,r);void 0!==n&&n!==s&&o.push(n)}else t.error('No such method "'+i+'" for Redactor')}):this.each(function(){t.data(this,"redactor",{}),t.data(this,"redactor",e(this,i))}),0===o.length?this:1===o.length?o[0]:o},t.Redactor=e,t.Redactor.VERSION="1.2.7",t.Redactor.modules=["air","autosave","block","buffer","build","button","caret","clean","code","core","detect","dropdown","events","file","focus","image","indent","inline","insert","keydown","keyup","lang","line","link","linkify","list","marker","modal","observe","offset","paragraphize","paste","placeholder","progress","selection","shortcuts","storage","toolbar","upload","uploads3","utils","browser"],t.Redactor.settings={},t.Redactor.opts={animation:!1,lang:"en",direction:"ltr",focus:!1,focusEnd:!1,clickToEdit:!1,structure:!1,tabindex:!1,minHeight:!1,maxHeight:!1,maxWidth:!1,plugins:!1,callbacks:{},placeholder:!1,linkify:!0,enterKey:!0,pastePlainText:!1,pasteImages:!0,pasteLinks:!0,pasteBlockTags:["pre","h1","h2","h3","h4","h5","h6","table","tbody","thead","tfoot","th","tr","td","ul","ol","li","blockquote","p","figure","figcaption"],pasteInlineTags:["br","strong","ins","code","del","span","samp","kbd","sup","sub","mark","var","cite","small","b","u","em","i"],preClass:!1,preSpaces:4,tabAsSpaces:!1,tabKey:!0,autosave:!1,autosaveName:!1,autosaveFields:!1,imageUpload:null,imageUploadParam:"file",imageUploadFields:!1,imageUploadForms:!1,imageEditable:!0,imageCaption:!0,dragImageUpload:!0,multipleImageUpload:!0,clipboardImageUpload:!0,fileUpload:null,fileUploadParam:"file",fileUploadFields:!1,fileUploadForms:!1,dragFileUpload:!0,s3:!1,linkNewTab:!1,linkTooltip:!0,linkNofollow:!1,linkSize:30,pasteLinkTarget:!1,videoContainerClass:"video-container",toolbar:!0,toolbarFixed:!0,toolbarFixedTarget:document,toolbarFixedTopOffset:0,toolbarExternal:!1,air:!1,airWidth:!1,formatting:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],formattingAdd:!1,buttons:["format","bold","italic","deleted","lists","image","file","link"],buttonsHide:[],buttonsHideOnMobile:[],script:!0,removeComments:!0,replaceTags:{b:"strong",i:"em",strike:"del"},shortcuts:{"ctrl+shift+m, meta+shift+m":{func:"inline.removeFormat"},"ctrl+b, meta+b":{func:"inline.format",params:["bold"]},"ctrl+i, meta+i":{func:"inline.format",params:["italic"]},"ctrl+h, meta+h":{func:"inline.format",params:["superscript"]},"ctrl+l, meta+l":{func:"inline.format",params:["subscript"]},"ctrl+k, meta+k":{func:"link.show"},"ctrl+shift+7":{func:"list.toggle",params:["orderedlist"]},"ctrl+shift+8":{func:"list.toggle",params:["unorderedlist"]}},shortcutsAdd:!1,activeButtons:["deleted","italic","bold"],activeButtonsStates:{b:"bold",strong:"bold",i:"italic",em:"italic",del:"deleted",strike:"deleted"},langs:{en:{format:"Format",image:"Image",file:"File",link:"Link",bold:"Bold",italic:"Italic",deleted:"Strikethrough",underline:"Underline","bold-abbr":"B","italic-abbr":"I","deleted-abbr":"S","underline-abbr":"U",lists:"Lists","link-insert":"Insert link","link-edit":"Edit link","link-in-new-tab":"Open link in new tab",unlink:"Unlink",cancel:"Cancel",close:"Close",insert:"Insert",save:"Save","delete":"Delete",text:"Text",edit:"Edit",title:"Title",paragraph:"Normal text",quote:"Quote",code:"Code",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",filename:"Name",optional:"optional",unorderedlist:"Unordered List",orderedlist:"Ordered List",outdent:"Outdent",indent:"Indent",horizontalrule:"Line","upload-label":"Drop file here or ",caption:"Caption",bulletslist:"Bullets",numberslist:"Numbers","accessibility-help-label":"Rich text editor"}},type:"textarea",inline:!1,buffer:[],rebuffer:[],inlineTags:["a","span","strong","strike","b","u","em","i","code","del","ins","samp","kbd","sup","sub","mark","var","cite","small"],blockTags:["pre","ul","ol","li","p","h1","h2","h3","h4","h5","h6","dl","dt","dd","div","td","blockquote","output","figcaption","figure","address","section","header","footer","aside","article","iframe"],paragraphize:!0,paragraphizeBlocks:["table","div","pre","form","ul","ol","h1","h2","h3","h4","h5","h6","dl","blockquote","figcaption","address","section","header","footer","aside","article","object","style","script","iframe","select","input","textarea","button","option","map","area","math","hr","fieldset","legend","hgroup","nav","figure","details","menu","summary","p"],emptyHtml:"<p>&#x200b;</p>",invisibleSpace:"&#x200b;",imageTypes:["image/png","image/jpeg","image/gif"],userAgent:navigator.userAgent.toLowerCase(),observe:{dropdowns:[]},regexps:{linkyoutube:/https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com\S*[^\w\-\s])([\w\-]{11})(?=[^\w\-]|$)(?![?=&+%\w.\-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*/gi,linkvimeo:/https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/,linkimage:/((https?|www)[^\s]+\.)(jpe?g|png|gif)(\?[^\s-]+)?/gi,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/gi}},e.fn=t.Redactor.prototype={keyCode:{BACKSPACE:8,DELETE:46,UP:38,DOWN:40,ENTER:13,SPACE:32,ESC:27,TAB:9,CTRL:17,META:91,SHIFT:16,ALT:18,RIGHT:39,LEFT:37,LEFT_WIN:91},init:function(e,o){return this.$element=t(e),this.uuid=i++,this.loadOptions(o),this.loadModules(),this.opts.clickToEdit&&!this.$element.hasClass("redactor-click-to-edit")?this.loadToEdit(o):(this.$element.hasClass("redactor-click-to-edit")&&this.$element.removeClass("redactor-click-to-edit"),this.reIsBlock=new RegExp("^("+this.opts.blockTags.join("|").toUpperCase()+")$","i"),this.reIsInline=new RegExp("^("+this.opts.inlineTags.join("|").toUpperCase()+")$","i"),this.opts.dragImageUpload=null===this.opts.imageUpload?!1:this.opts.dragImageUpload,this.opts.dragFileUpload=null===this.opts.fileUpload?!1:this.opts.dragFileUpload,this.formatting={},this.lang.load(),t.extend(this.opts.shortcuts,this.opts.shortcutsAdd),this.$editor=this.$element,this.detectType(),this.core.callback("start"),this.core.callback("startToEdit"),this.start=!0,void this.build.start())},detectType:function(){this.build.isInline()||this.opts.inline?this.opts.type="inline":this.build.isTag("DIV")?this.opts.type="div":this.build.isTag("PRE")&&(this.opts.type="pre")},loadToEdit:function(e){this.$element.on("click.redactor-click-to-edit",t.proxy(function(){this.initToEdit(e)},this)),this.$element.addClass("redactor-click-to-edit")},initToEdit:function(e){t.extend(e.callbacks,{startToEdit:function(){this.insert.node(this.marker.get(),!1)},initToEdit:function(){this.selection.restore(),this.clickToCancelStorage=this.code.get(),t(this.opts.clickToCancel).off(".redactor-click-to-edit"),t(this.opts.clickToCancel).show().on("click.redactor-click-to-edit",t.proxy(function(i){i.preventDefault(),this.core.destroy(),this.events.syncFire=!1,this.$element.html(this.clickToCancelStorage),this.core.callback("cancel",this.clickToCancelStorage),this.events.syncFire=!0,this.clickToCancelStorage="",t(this.opts.clickToCancel).hide(),t(this.opts.clickToSave).hide(),this.$element.on("click.redactor-click-to-edit",t.proxy(function(){this.initToEdit(e)},this)),this.$element.addClass("redactor-click-to-edit")},this)),t(this.opts.clickToSave).off(".redactor-click-to-edit"),t(this.opts.clickToSave).show().on("click.redactor-click-to-edit",t.proxy(function(i){i.preventDefault(),this.core.destroy(),this.core.callback("save",this.code.get()),t(this.opts.clickToCancel).hide(),t(this.opts.clickToSave).hide(),this.$element.on("click.redactor-click-to-edit",t.proxy(function(){this.initToEdit(e)},this)),this.$element.addClass("redactor-click-to-edit")},this))}}),this.$element.redactor(e),this.$element.off(".redactor-click-to-edit")},loadOptions:function(e){var i={};"undefined"!=typeof t.Redactor.settings.namespace?this.$element.hasClass(t.Redactor.settings.namespace)&&(i=t.Redactor.settings):i=t.Redactor.settings,this.opts=t.extend({},t.extend(!0,{},t.Redactor.opts),t.extend(!0,{},i),this.$element.data(),e)},getModuleMethods:function(t){return Object.getOwnPropertyNames(t).filter(function(e){return"function"==typeof t[e]})},loadModules:function(){for(var e=t.Redactor.modules.length,i=0;e>i;i++)this.bindModuleMethods(t.Redactor.modules[i])},bindModuleMethods:function(t){if("undefined"!=typeof this[t]){this[t]=this[t]();for(var e=this.getModuleMethods(this[t]),i=e.length,o=0;i>o;o++)this[t][e[o]]=this[t][e[o]].bind(this)}},air:function(){return{enabled:!1,collapsed:function(){this.opts.air&&this.selection.get().collapseToStart()},collapsedEnd:function(){this.opts.air&&this.selection.get().collapseToEnd()},build:function(){this.detect.isMobile()||(this.button.hideButtons(),this.button.hideButtonsOnMobile(),0!==this.opts.buttons.length&&(this.$air=this.air.createContainer(),this.opts.airWidth!==!1&&this.$air.css("width",this.opts.airWidth),this.air.append(),this.button.$toolbar=this.$air,this.button.setFormatting(),this.button.load(this.$air),this.core.editor().on("mouseup.redactor",this,t.proxy(function(t){""!==this.selection.text()&&this.air.show(t)},this))))},append:function(){this.$air.appendTo("body")},createContainer:function(){return t("<ul>").addClass("redactor-air").attr({id:"redactor-air-"+this.uuid,role:"toolbar"}).hide()},show:function(e){this.marker.remove(),this.selection.save(),this.selection.restore(!1),t(".redactor-air").hide();var i=0,o=this.$air.innerWidth();t(window).width()<e.clientX+o&&(i=200),this.$air.css({left:e.clientX-i+"px",top:e.clientY+10+t(document).scrollTop()+"px"}).show(),this.air.enabled=!0,this.air.bindHide()},bindHide:function(){t(document).on("mousedown.redactor-air."+this.uuid,t.proxy(function(e){var i=t(e.target).closest(".redactor-dropdown").length;if(0===t(e.target).closest(this.$air).length&&0===i){var o=this.air.hide(e);o!==!1&&this.marker.remove()}},this)).on("keydown.redactor-air."+this.uuid,t.proxy(function(e){var i=e.which;if((this.utils.isRedactorParent(e.target)||t(e.target).hasClass("redactor-in"))&&0===t(e.target).closest("#redactor-modal").length){if(i===this.keyCode.ESC)this.selection.get().collapseToStart(),this.marker.remove();else if(i===this.keyCode.BACKSPACE||i===this.keyCode.DELETE){var o=this.selection.get(),r=this.selection.range(o);r.deleteContents(),this.marker.remove()}else i===this.keyCode.ENTER&&(this.selection.get().collapseToEnd(),this.marker.remove());this.air.enabled?this.air.hide(e):(this.selection.get().collapseToStart(),this.marker.remove())}},this))},hide:function(e){var i=e.ctrlKey||e.metaKey||e.shiftKey&&e.altKey;return i?!1:(this.button.setInactiveAll(),this.$air.fadeOut(100),this.air.enabled=!1,void t(document).off("mousedown.redactor-air."+this.uuid))}}},autosave:function(){return{enabled:!1,html:!1,init:function(){this.opts.autosave&&(this.autosave.enabled=!0,this.autosave.name=this.opts.autosaveName?this.opts.autosaveName:this.$textarea.attr("name"))},is:function(){return this.autosave.enabled},send:function(){if(this.opts.autosave&&(this.autosave.source=this.code.get(),this.autosave.html!==this.autosave.source)){var e={};e.name=this.autosave.name,e[this.autosave.name]=this.autosave.source,e=this.autosave.getHiddenFields(e);var i=t.ajax({url:this.opts.autosave,type:"post",data:e});i.done(this.autosave.success)}},getHiddenFields:function(e){return this.opts.autosaveFields===!1||"object"!=typeof this.opts.autosaveFields?e:(t.each(this.opts.autosaveFields,t.proxy(function(i,o){null!==o&&0===o.toString().indexOf("#")&&(o=t(o).val()),e[i]=o},this)),e)},success:function(e){var i;try{i=t.parseJSON(e)}catch(o){i=e}var r="undefined"==typeof i.error?"autosave":"autosaveError";this.core.callback(r,this.autosave.name,i),this.autosave.html=this.autosave.source},disable:function(){this.autosave.enabled=!1,clearInterval(this.autosaveTimeout)}}},block:function(){return{format:function(e,i,o,r){return e="quote"===e?"blockquote":e,this.block.tags=["p","blockquote","pre","h1","h2","h3","h4","h5","h6","div","figure"],-1!==t.inArray(e,this.block.tags)?("p"===e&&"undefined"==typeof i&&(i="class"),this.placeholder.hide(),this.buffer.set(),this.utils.isCollapsed()?this.block.formatCollapsed(e,i,o,r):this.block.formatUncollapsed(e,i,o,r)):void 0},formatCollapsed:function(e,i,o,r){this.selection.save();var s=this.selection.block(),n=s.tagName.toLowerCase();if(-1===t.inArray(n,this.block.tags))return void this.selection.restore();n===e&&(e="p");var a=this.utils.replaceToTag(s,e);if("object"==typeof i){r=o;for(var l in i)a=this.block.setAttr(a,l,i[l],r)}else a=this.block.setAttr(a,i,o,r);return"pre"===e&&1===a.length&&t(a).html(t.trim(t(a).html())),this.selection.restore(),this.block.removeInlineTags(a),a},formatUncollapsed:function(e,i,o,r){this.selection.save();var s=[],n=this.selection.blocks();n[0]&&t(n[0]).hasClass("redactor-in")&&(n=t(n[0]).find(this.opts.blockTags.join(", ")));for(var a=n.length,l=0;a>l;l++){var c=n[l].tagName.toLowerCase();if(-1!==t.inArray(c,this.block.tags)&&"figure"!==c){var d=this.utils.replaceToTag(n[l],e);if("object"==typeof i){r=o;for(var h in i)d=this.block.setAttr(d,h,i[h],r)}else d=this.block.setAttr(d,i,o,r);s.push(d),this.block.removeInlineTags(d)}}if(this.selection.restore(),"pre"===e&&0!==s.length){var u=s[0];t.each(s,function(e,i){0!==e&&(t(u).append("\n"+t.trim(i.html())),t(i).remove())}),s=[],s.push(u)}return s},removeInlineTags:function(e){e=e[0]||e;var i=this.opts.inlineTags,o=["PRE","H1","H2","H3","H4","H5","H6"];if(-1!==t.inArray(e.tagName,o)){if("PRE"!==e.tagName){var r=i.indexOf("a");i.splice(r,1)}t(e).find(i.join(",")).not(".redactor-selection-marker").contents().unwrap()}},setAttr:function(t,e,i,o){if("undefined"==typeof e)return t;var r="undefined"==typeof o?"replace":o;return t="class"===e?this.block[r+"Class"](i,t):"remove"===r?this.block[r+"Attr"](e,t):"removeAll"===r?this.block[r+"Attr"](e,t):this.block[r+"Attr"](e,i,t)},getBlocks:function(t){return"undefined"==typeof t?this.selection.blocks():t},replaceClass:function(e,i){return t(this.block.getBlocks(i)).removeAttr("class").addClass(e)[0]},toggleClass:function(e,i){return t(this.block.getBlocks(i)).toggleClass(e)[0]},addClass:function(e,i){return t(this.block.getBlocks(i)).addClass(e)[0]},removeClass:function(e,i){return t(this.block.getBlocks(i)).removeClass(e)[0]},removeAllClass:function(e){return t(this.block.getBlocks(e)).removeAttr("class")[0]},replaceAttr:function(e,i,o){return o=this.block.removeAttr(e,o),t(o).attr(e,i)[0]},toggleAttr:function(e,i,o){o=this.block.getBlocks(o);var r=this,s=[];return t.each(o,function(o,n){var a=t(n);a.attr(e)?s.push(r.block.removeAttr(e,n)):s.push(r.block.addAttr(e,i,n))}),s},addAttr:function(e,i,o){return t(this.block.getBlocks(o)).attr(e,i)[0]},removeAttr:function(e,i){return t(this.block.getBlocks(i)).removeAttr(e)[0]},removeAllAttr:function(e){e=this.block.getBlocks(e);var i=[];return t.each(e,function(e,o){"undefined"==typeof o.attributes&&i.push(o);for(var r=t(o),s=o.attributes.length,n=0;s>n;n++)r.removeAttr(o.attributes[n].name);i.push(r[0])}),i}}},buffer:function(){return{set:function(t){"undefined"==typeof t&&this.buffer.clear(),"undefined"==typeof t||"undo"===t?this.buffer.setUndo():this.buffer.setRedo()},setUndo:function(){this.selection.save();var t=this.opts.buffer[this.opts.buffer.length-1],e=this.core.editor().html();t!==e&&this.opts.buffer.push(e),this.selection.restore()},setRedo:function(){this.selection.save(),this.opts.rebuffer.push(this.core.editor().html()),this.selection.restore()},getUndo:function(){this.core.editor().html(this.opts.buffer.pop())},getRedo:function(){this.core.editor().html(this.opts.rebuffer.pop())},add:function(){this.opts.buffer.push(this.core.editor().html())},undo:function(){0!==this.opts.buffer.length&&(this.buffer.set("redo"),this.buffer.getUndo(),this.selection.restore())},redo:function(){0!==this.opts.rebuffer.length&&(this.buffer.set("undo"),this.buffer.getRedo(),this.selection.restore())},clear:function(){this.opts.rebuffer=[]}}},build:function(){return{start:function(){if("inline"===this.opts.type)this.opts.type="inline";else if("div"===this.opts.type){var e=t.trim(this.$editor.html());""===e&&this.$editor.html(this.opts.emptyHtml)}else"textarea"===this.opts.type&&this.build.startTextarea();this.build.setIn(),this.build.setId(),this.build.enableEditor(),this.build.setOptions(),this.build.callEditor()},createContainerBox:function(){this.$box=t('<div class="redactor-box" role="application" />')},setIn:function(){this.core.editor().addClass("redactor-in")},setId:function(){var t="textarea"===this.opts.type?"redactor-uuid-"+this.uuid:this.$element.attr("id");this.core.editor().attr("id","undefined"==typeof t?"redactor-uuid-"+this.uuid:t)},getName:function(){var t=this.$element.attr("name");return"undefined"==typeof t?"content-"+this.uuid:t},loadFromTextarea:function(){this.$editor=t("<div />"),this.$textarea=this.$element,this.$element.attr("name",this.build.getName()),this.$box.insertAfter(this.$element).append(this.$editor).append(this.$element),this.$editor.addClass("redactor-editor"),this.$element.hide(),this.$box.prepend('<span class="redactor-voice-label" id="redactor-voice-'+this.uuid+'" aria-hidden="false">'+this.lang.get("accessibility-help-label")+"</span>"),this.$editor.attr({"aria-labelledby":"redactor-voice-"+this.uuid,role:"presentation"})},startTextarea:function(){this.build.createContainerBox(),this.build.loadFromTextarea(),this.code.start(this.core.textarea().val()),this.core.textarea().val(this.clean.onSync(this.$editor.html()))},isTag:function(t){return this.$element[0].tagName===t},isInline:function(){return!this.build.isTag("TEXTAREA")&&!this.build.isTag("DIV")&&!this.build.isTag("PRE")},enableEditor:function(){this.core.editor().attr({contenteditable:!0})},setOptions:function(){"inline"===this.opts.type&&(this.opts.enterKey=!1),"inline"!==this.opts.type&&"pre"!==this.opts.type||(this.opts.toolbarMobile=!1,this.opts.toolbar=!1,this.opts.air=!1,this.opts.linkify=!1),this.opts.structure&&this.core.editor().addClass("redactor-structure"),"textarea"===this.opts.type&&(this.core.box().attr("dir",this.opts.direction),this.core.editor().attr("dir",this.opts.direction),this.opts.tabindex&&this.core.editor().attr("tabindex",this.opts.tabindex),this.opts.minHeight?this.core.editor().css("min-height",this.opts.minHeight):this.core.editor().css("min-height","40px"),this.opts.maxHeight&&this.core.editor().css("max-height",this.opts.maxHeight),this.opts.maxWidth&&this.core.editor().css({"max-width":this.opts.maxWidth,margin:"auto"}))},callEditor:function(){this.build.disableBrowsersEditing(),this.events.init(),this.build.setHelpers(),(this.opts.toolbar||this.opts.air)&&(this.toolbarsButtons=this.button.init()),this.opts.air?this.air.build():this.opts.toolbar&&this.toolbar.build(),this.detect.isMobile()&&this.opts.toolbarMobile&&this.opts.air&&(this.opts.toolbar=!0,this.toolbar.build()),(this.opts.air||this.opts.toolbar)&&(this.core.editor().on("mouseup.redactor-observe."+this.uuid+" keyup.redactor-observe."+this.uuid+" focus.redactor-observe."+this.uuid+" touchstart.redactor-observe."+this.uuid,t.proxy(this.observe.toolbar,this)),this.core.element().on("blur.callback.redactor",t.proxy(function(){this.button.setInactiveAll()},this))),this.modal.templates(),this.build.plugins(),this.autosave.init(),this.code.html=this.code.cleaned(this.core.editor().html()),this.core.callback("init"),this.core.callback("initToEdit"),this.storage.observe(),this.start=!1},setHelpers:function(){this.opts.linkify&&this.linkify.format(),this.placeholder.init(),this.opts.focus?setTimeout(this.focus.start,100):this.opts.focusEnd&&setTimeout(this.focus.end,100)},disableBrowsersEditing:function(){try{document.execCommand("enableObjectResizing",!1,!1),document.execCommand("enableInlineTableEditing",!1,!1),document.execCommand("AutoUrlDetect",!1,!1)}catch(t){}},plugins:function(){this.opts.plugins&&t.each(this.opts.plugins,t.proxy(function(i,o){var r="undefined"!=typeof RedactorPlugins&&"undefined"!=typeof RedactorPlugins[o]?RedactorPlugins:e.fn;if(t.isFunction(r[o])){this[o]=r[o]();for(var s=this.getModuleMethods(this[o]),n=s.length,a=0;n>a;a++)this[o][s[a]]=this[o][s[a]].bind(this);if("undefined"!=typeof this[o].langs){var l={};"undefined"!=typeof this[o].langs[this.opts.lang]?l=this[o].langs[this.opts.lang]:"undefined"==typeof this[o].langs[this.opts.lang]&&"undefined"!=typeof this[o].langs.en&&(l=this[o].langs.en);var c=this;t.each(l,function(t,e){"undefined"==typeof c.opts.curLang[t]&&(c.opts.curLang[t]=e)})}t.isFunction(this[o].init)&&this[o].init()}},this))}}},button:function(){return{toolbar:function(){return"undefined"!=typeof this.button.$toolbar&&this.button.$toolbar?this.button.$toolbar:this.$toolbar},init:function(){return{format:{title:this.lang.get("format"),dropdown:{p:{title:this.lang.get("paragraph"),func:"block.format"},blockquote:{title:this.lang.get("quote"),func:"block.format"},pre:{title:this.lang.get("code"),func:"block.format"},h1:{title:this.lang.get("heading1"),func:"block.format"},h2:{title:this.lang.get("heading2"),func:"block.format"},h3:{title:this.lang.get("heading3"),func:"block.format"},h4:{title:this.lang.get("heading4"),func:"block.format"},h5:{title:this.lang.get("heading5"),func:"block.format"},h6:{title:this.lang.get("heading6"),func:"block.format"}}},bold:{title:this.lang.get("bold-abbr"),label:this.lang.get("bold"),func:"inline.format"},italic:{title:this.lang.get("italic-abbr"),label:this.lang.get("italic"),func:"inline.format"},deleted:{title:this.lang.get("deleted-abbr"),label:this.lang.get("deleted"),func:"inline.format"},underline:{title:this.lang.get("underline-abbr"),label:this.lang.get("underline"),func:"inline.format"},lists:{title:this.lang.get("lists"),dropdown:{unorderedlist:{title:"&bull; "+this.lang.get("unorderedlist"),func:"list.toggle"},orderedlist:{title:"1. "+this.lang.get("orderedlist"),func:"list.toggle"},outdent:{title:"< "+this.lang.get("outdent"),func:"indent.decrease",observe:{element:"li",out:{attr:{"class":"redactor-dropdown-link-inactive","aria-disabled":!0}}}},indent:{title:"> "+this.lang.get("indent"),func:"indent.increase",observe:{element:"li",out:{attr:{"class":"redactor-dropdown-link-inactive","aria-disabled":!0}}}}}},ul:{title:"&bull; "+this.lang.get("bulletslist"),func:"list.toggle"},ol:{title:"1. "+this.lang.get("numberslist"),func:"list.toggle"},outdent:{title:this.lang.get("outdent"),func:"indent.decrease"},indent:{title:this.lang.get("indent"),func:"indent.increase"},image:{title:this.lang.get("image"),func:"image.show"},file:{title:this.lang.get("file"),func:"file.show"},link:{title:this.lang.get("link"),dropdown:{link:{title:this.lang.get("link-insert"),func:"link.show",observe:{element:"a","in":{title:this.lang.get("link-edit")},out:{title:this.lang.get("link-insert")}}},unlink:{title:this.lang.get("unlink"),func:"link.unlink",observe:{element:"a",out:{attr:{"class":"redactor-dropdown-link-inactive","aria-disabled":!0}}}}}},horizontalrule:{title:this.lang.get("horizontalrule"),func:"line.insert"}}},setFormatting:function(){t.each(this.toolbarsButtons.format.dropdown,t.proxy(function(e,i){-1===t.inArray(e,this.opts.formatting)&&delete this.toolbarsButtons.format.dropdown[e]},this))},hideButtons:function(){0!==this.opts.buttonsHide.length&&this.button.hideButtonsSlicer(this.opts.buttonsHide)},hideButtonsOnMobile:function(){this.detect.isMobile()&&0!==this.opts.buttonsHideOnMobile.length&&this.button.hideButtonsSlicer(this.opts.buttonsHideOnMobile)},hideButtonsSlicer:function(e){t.each(e,t.proxy(function(t,e){var i=this.opts.buttons.indexOf(e);-1!==i&&this.opts.buttons.splice(i,1)},this))},load:function(e){this.button.buttons=[],t.each(this.opts.buttons,t.proxy(function(i,o){!this.toolbarsButtons[o]||"file"===o&&!this.file.is()||"image"===o&&!this.image.is()||e.append(t("<li>").append(this.button.build(o,this.toolbarsButtons[o])))},this))},build:function(e,i){if(this.opts.toolbar!==!1){var o=t('<a href="javascript:void(null);" class="re-button re-'+e+'" title="'+i.title+'" rel="'+e+'" />').html(i.title);if(o.attr({role:"button","aria-label":i.title,tabindex:"-1"}),"undefined"!=typeof i.label&&(o.attr("aria-label",i.label),o.attr("title",i.label)),(i.func||i.command||i.dropdown)&&this.button.setEvent(o,e,i),i.dropdown){o.addClass("redactor-toolbar-link-dropdown").attr("aria-haspopup",!0);var r=t('<ul class="redactor-dropdown redactor-dropdown-'+this.uuid+" redactor-dropdown-box-"+e+'" style="display: none;">');o.data("dropdown",r),this.dropdown.build(e,r,i.dropdown)}return this.button.buttons.push(o),o}},getButtons:function(){return this.button.toolbar().find("a.re-button")},getButtonsKeys:function(){return this.button.buttons},setEvent:function(e,i,o){e.on("mousedown",t.proxy(function(t){if(t.preventDefault(),e.hasClass("redactor-button-disabled"))return!1;var r="func",s=o.func;return o.command?(r="command",s=o.command):o.dropdown&&(r="dropdown",s=!1),this.button.toggle(t,i,r,s),!1},this))},toggle:function(t,e,i,o,r){!this.detect.isIe()&&this.detect.isDesktop()||(this.utils.freezeScroll(),t.returnValue=!1),"command"===i?this.inline.format(o):"dropdown"===i?this.dropdown.show(t,e):this.button.clickCallback(t,o,e,r),"dropdown"!==i&&this.dropdown.hideAll(!1),this.opts.air&&"dropdown"!==i&&this.air.hide(t),!this.detect.isIe()&&this.detect.isDesktop()||this.utils.unfreezeScroll()},clickCallback:function(e,i,o,r){var s;if(r="undefined"==typeof r?o:r,t.isFunction(i))i.call(this,o);else if("-1"!==i.search(/\./)){if(s=i.split("."),"undefined"==typeof this[s[0]])return;"object"==typeof r?this[s[0]][s[1]].apply(this,r):this[s[0]][s[1]].call(this,r)}else"object"==typeof r?this[i].apply(this,r):this[i].call(this,r);this.observe.buttons(e,o)},all:function(){return this.button.buttons},get:function(t){return this.opts.toolbar!==!1?this.button.toolbar().find("a.re-"+t):void 0},set:function(t,e){if(this.opts.toolbar!==!1){var i=this.button.toolbar().find("a.re-"+t);return i.html(e).attr("aria-label",e),i}},add:function(e,i){if(this.button.isAdded(e)!==!0)return t();var o=this.button.build(e,{title:i});return this.button.toolbar().append(t("<li>").append(o)),o},addFirst:function(e,i){if(this.button.isAdded(e)!==!0)return t();var o=this.button.build(e,{title:i});return this.button.toolbar().prepend(t("<li>").append(o)),o},addAfter:function(e,i,o){if(this.button.isAdded(i)!==!0)return t();var r=this.button.build(i,{title:o}),s=this.button.get(e);return 0!==s.length?s.parent().after(t("<li>").append(r)):this.button.toolbar().append(t("<li>").append(r)),r},addBefore:function(e,i,o){if(this.button.isAdded(i)!==!0)return t();var r=this.button.build(i,{title:o}),s=this.button.get(e);return 0!==s.length?s.parent().before(t("<li>").append(r)):this.button.toolbar().append(t("<li>").append(r)),r},isAdded:function(t){var e=this.opts.buttonsHideOnMobile.indexOf(t);return!(this.opts.toolbar===!1||-1!==e&&this.detect.isMobile())},setIcon:function(t,e){t.html(e)},addCallback:function(e,i){if("undefined"!=typeof e&&this.opts.toolbar!==!1){var o="dropdown"===i?"dropdown":"func",r=e.attr("rel");e.on("mousedown",t.proxy(function(t){return e.hasClass("redactor-button-disabled")?!1:void this.button.toggle(t,r,o,i)},this))}},addDropdown:function(e,i){if(this.opts.toolbar!==!1){e.addClass("redactor-toolbar-link-dropdown").attr("aria-haspopup",!0);var o=e.attr("rel");this.button.addCallback(e,"dropdown");var r=t('<div class="redactor-dropdown redactor-dropdown-'+this.uuid+" redactor-dropdown-box-"+o+'" style="display: none;">');return e.data("dropdown",r),i&&this.dropdown.build(o,r,i),r}},setActive:function(t){this.button.get(t).addClass("redactor-act")},setInactive:function(t){this.button.get(t).removeClass("redactor-act")},setInactiveAll:function(t){var e=this.button.toolbar().find("a.re-button");"undefined"!=typeof t&&(e=e.not(".re-"+t)),e.removeClass("redactor-act")},disable:function(t){this.button.get(t).addClass("redactor-button-disabled")},enable:function(t){this.button.get(t).removeClass("redactor-button-disabled")},disableAll:function(t){var e=this.button.toolbar().find("a.re-button");"undefined"!=typeof t&&(e=e.not(".re-"+t)),e.addClass("redactor-button-disabled")},enableAll:function(){this.button.toolbar().find("a.re-button").removeClass("redactor-button-disabled")},remove:function(t){this.button.get(t).remove()}}},caret:function(){return{set:function(t,e,i){this.core.editor().focus(),i="undefined"==typeof i?0:1,t=t[0]||t,e=e[0]||e;var o=this.selection.get(),r=this.selection.range(o);try{r.setStart(t,0),r.setEnd(e,i)}catch(s){}this.selection.update(o,r)},prepare:function(t){return this.detect.isFirefox()&&"undefined"!=typeof this.start&&this.core.editor().focus(),t[0]||t},start:function(e){var i,o;if(e=this.caret.prepare(e)){if("BR"===e.tagName)return this.caret.before(e);var r=this.utils.isInlineTag(e.tagName);if(""===e.innerHTML||r){i=window.getSelection(),o=document.createRange();var s=document.createTextNode("​");o.setStart(e,0),o.insertNode(s),o.setStartAfter(s),o.collapse(!0),i.removeAllRanges(),i.addRange(o),r||this.core.editor().on("keydown.redactor-remove-textnode",function(){t(s).remove(),t(this).off("keydown.redactor-remove-textnode")})}else i=window.getSelection(),i.removeAllRanges(),o=document.createRange(),o.selectNodeContents(e),o.collapse(!0),i.addRange(o)}},end:function(e){var i,o;if(e=this.caret.prepare(e)){if("BR"!==e.tagName&&""===e.innerHTML)return this.caret.start(e);if("BR"===e.tagName){var r=document.createElement("span");return r.className="redactor-invisible-space",r.innerHTML="&#x200b;",t(e).after(r),i=window.getSelection(),i.removeAllRanges(),o=document.createRange(),o.setStartBefore(r),o.setEndBefore(r),i.addRange(o),void t(r).replaceWith(function(){return t(this).contents()})}if(e.lastChild&&1===e.lastChild.nodeType)return this.caret.after(e.lastChild);i=window.getSelection(),i.removeAllRanges(),o=document.createRange(),o.selectNodeContents(e),o.collapse(!1),i.addRange(o)}},after:function(e){var i,o;if(e=this.caret.prepare(e)){if("BR"===e.tagName)return this.caret.end(e);if(this.utils.isBlockTag(e.tagName)){var r=this.caret.next(e);return void("undefined"==typeof r?this.caret.end(e):("TABLE"===r.tagName?r=t(r).find("th, td").first()[0]:"UL"!==r.tagName&&"OL"!==r.tagName||(r=t(r).find("li").first()[0]),this.caret.start(r)))}var s=document.createTextNode("​");i=window.getSelection(),i.removeAllRanges(),o=document.createRange(),o.setStartAfter(e),o.insertNode(s),o.setStartAfter(s),o.collapse(!0),i.addRange(o)}},before:function(e){var i,o;if(e=this.caret.prepare(e)){if(this.utils.isBlockTag(e.tagName)){var r=this.caret.prev(e);return void("undefined"==typeof r?this.caret.start(e):("TABLE"===r.tagName?r=t(r).find("th, td").last()[0]:"UL"!==r.tagName&&"OL"!==r.tagName||(r=t(r).find("li").last()[0]),this.caret.end(r)))}i=window.getSelection(),i.removeAllRanges(),o=document.createRange(),o.setStartBefore(e),o.collapse(!0),i.addRange(o)}},next:function(e){var i=t(e).next();return i.hasClass("redactor-script-tag, redactor-selection-marker")?i.next()[0]:i[0]},prev:function(e){var i=t(e).prev();return i.hasClass("redactor-script-tag, redactor-selection-marker")?i.prev()[0]:i[0]},offset:function(t){return this.offset.get(t)}}},clean:function(){return{onSet:function(e){e=this.clean.savePreCode(e),e=this.clean.saveFormTags(e),this.opts.script&&(e=e.replace(/<script(.*?[^>]?)>([\w\W]*?)<\/script>/gi,'<pre class="redactor-script-tag" $1>$2</pre>')),e=e.replace(/\$/g,"&#36;"),e=e.replace(/&amp;/g,"&"),e=e.replace(/<a href="(.*?[^>]?)®(.*?[^>]?)">/gi,'<a href="$1&reg$2">'),e=e.replace(/<span(.*?[^>]?)id="selection-marker-1"(.*?[^>]?)>​<\/span>/gi,"[[[marker1]]]"),e=e.replace(/<span(.*?[^>]?)id="selection-marker-2"(.*?[^>]?)>​<\/span>/gi,"[[[marker2]]]");
+var i=this,o=t("<div/>").html(t.parseHTML(e,document,!0)),r=this.opts.replaceTags;if(r){var s=Object.keys(this.opts.replaceTags);o.find(s.join(",")).each(function(t,e){i.utils.replaceToTag(e,r[e.tagName.toLowerCase()])})}e=o.html();var n=["font","html","head","link","body","meta","applet"];return this.opts.script||n.push("script"),e=this.clean.stripTags(e,n),this.opts.removeComments&&(e=e.replace(/<!--[\s\S]*?-->/gi,"")),e=this.paragraphize.load(e),e=e.replace("[[[marker1]]]",'<span id="selection-marker-1" class="redactor-selection-marker">​</span>'),e=e.replace("[[[marker2]]]",'<span id="selection-marker-2" class="redactor-selection-marker">​</span>'),-1!==e.search(/^(||\s||<br\s?\/?>||&nbsp;)$/i)?this.opts.emptyHtml:e},onGet:function(t){return this.clean.onSync(t)},onSync:function(e){if(e=e.replace(/\u200B/g,""),e=e.replace(/&#x200b;/gi,""),-1!==e.search(/^<p>(||\s||<br\s?\/?>||&nbsp;)<\/p>$/i))return"";var i=t("<div/>").html(t.parseHTML(e,document,!0));i.find('*[style=""]').removeAttr("style"),i.find('*[class=""]').removeAttr("class"),i.find('*[rel=""]').removeAttr("rel"),i.find(".redactor-invisible-space").each(function(){t(this).contents().unwrap()}),i.find("span").each(function(){0===this.attributes.length&&t(this).contents().unwrap()}),i.find(".redactor-selection-marker, #redactor-insert-marker").remove(),e=i.html(),this.opts.script&&(e=e.replace(/<pre class="redactor-script-tag"(.*?[^>]?)>([\w\W]*?)<\/pre>/gi,"<script$1>$2</script>")),e=this.clean.restoreFormTags(e),e=e.replace(new RegExp("<br\\s?/?></h","gi"),"</h"),e=e.replace(new RegExp("<br\\s?/?></li>","gi"),"</li>"),e=e.replace(new RegExp("</li><br\\s?/?>","gi"),"</li>"),e=e.replace(/<pre>/gi,"<pre>\n"),this.opts.preClass&&(e=e.replace(/<pre>/gi,'<pre class="'+this.opts.preClass+'">')),this.opts.linkNofollow&&(e=e.replace(/<a(.*?)rel="nofollow"(.*?[^>])>/gi,"<a$1$2>"),e=e.replace(/<a(.*?[^>])>/gi,'<a$1 rel="nofollow">'));var o={"™":"&trade;","©":"&copy;","…":"&hellip;","—":"&mdash;","‐":"&dash;"};return t.each(o,function(t,i){e=e.replace(new RegExp(t,"g"),i)}),e=e.replace(/&amp;/g,"&"),e=e.replace(/<p><\/p>/gi,"")},onPaste:function(e,i,o){if(o!==!0){e=e.replace(/<b\sid="internal-source-marker(.*?)">([\w\W]*?)<\/b>/gi,"$2"),e=e.replace(/<b(.*?)id="docs-internal-guid(.*?)">([\w\W]*?)<\/b>/gi,"$3"),e=e.replace(/<span[^>]*(font-style: italic; font-weight: bold|font-weight: bold; font-style: italic)[^>]*>([\w\W]*?)<\/span>/gi,"<b><i>$2</i></b>"),e=e.replace(/<span[^>]*(font-style: italic; font-weight: 700|font-weight: 700; font-style: italic)[^>]*>([\w\W]*?)<\/span>/gi,"<b><i>$2</i></b>"),e=e.replace(/<span[^>]*font-style: italic[^>]*>([\w\W]*?)<\/span>/gi,"<i>$1</i>"),e=e.replace(/<span[^>]*font-weight: bold[^>]*>([\w\W]*?)<\/span>/gi,"<b>$1</b>"),e=e.replace(/<span[^>]*font-weight: 700[^>]*>([\w\W]*?)<\/span>/gi,"<b>$1</b>");var r=this.clean.isHtmlMsWord(e);r&&(e=this.clean.cleanMsWord(e))}return e=t.trim(e),i.pre?this.opts.preSpaces&&(e=e.replace(/\t/g,new Array(this.opts.preSpaces+1).join(" "))):(e=this.clean.replaceBrToNl(e),e=this.clean.removeTagsInsidePre(e)),o!==!0&&(e=this.clean.removeSpans(e),e=this.clean.removeEmptyInlineTags(e),i.encode===!1&&(e=e.replace(/&/g,"&amp;"),e=this.clean.convertTags(e,i),e=this.clean.getPlainText(e),e=this.clean.reconvertTags(e,i))),i.text&&(e=this.clean.replaceNbspToSpaces(e),e=this.clean.getPlainText(e)),i.lists&&(e=e.replace("\n","<br>")),i.encode&&(e=this.clean.encodeHtml(e)),i.paragraphize&&(e=this.paragraphize.load(e)),e},getCurrentType:function(t,e){var i=this.selection.blocks(),o={text:!1,encode:!1,paragraphize:!0,line:this.clean.isHtmlLine(t),blocks:this.clean.isHtmlBlocked(t),pre:!1,lists:!1,block:!0,inline:!0,links:!0,images:!0};return 1===i.length&&this.utils.isCurrentOrParent(["h1","h2","h3","h4","h5","h6","a","figcaption"])?(o.text=!0,o.paragraphize=!1,o.inline=!1,o.images=!1,o.links=!1,o.line=!0):"inline"===this.opts.type||this.opts.enterKey===!1?(o.paragraphize=!1,o.block=!1,o.line=!0):1===i.length&&this.utils.isCurrentOrParent(["li"])?(o.lists=!0,o.block=!1,o.paragraphize=!1,o.images=!1):1===i.length&&this.utils.isCurrentOrParent(["th","td","blockquote"])?(o.block=!1,o.paragraphize=!1):("pre"===this.opts.type||1===i.length&&this.utils.isCurrentOrParent("pre"))&&(o.inline=!1,o.block=!1,o.encode=!0,o.pre=!0,o.paragraphize=!1,o.images=!1,o.links=!1),o.line===!0&&(o.paragraphize=!1),e===!0&&(o.text=!1),o},isHtmlBlocked:function(t){var e=t.match(new RegExp("</("+this.opts.blockTags.join("|").toUpperCase()+")>","gi")),i=t.match(new RegExp("<hr(.*?[^>])>","gi"));return null!==e||null!==i},isHtmlLine:function(t){if(this.clean.isHtmlBlocked(t))return!1;var e=t.match(/<br\s?\/?>/gi),i=t.match(/\n/gi);return!e&&!i},isHtmlMsWord:function(t){return t.match(/class="?Mso|style="[^"]*\bmso-|style='[^'']*\bmso-|w:WordDocument/i)},removeEmptyInlineTags:function(t){for(var e=this.opts.inlineTags,i=e.length,o=0;i>o;o++)t=t.replace(new RegExp("<"+e[o]+"[^>]*>(s\n|    )?</"+e[o]+">","gi"),"");return t},removeSpans:function(t){return t=t.replace(/<\/span>/gi,""),t=t.replace(/<span[^>]*>/gi,"")},cleanMsWord:function(e){e=e.replace(/<!--[\s\S]*?-->/g,""),e=e.replace(/<o:p>[\s\S]*?<\/o:p>/gi,""),e=e.replace(/\n/g," "),e=e.replace(/<br\s?\/?>|<\/p>|<\/div>|<\/li>|<\/td>/gi,"\n\n");var i=t("<div/>").html(e),o=!1,r=1,s=[];return i.find("p[style]").each(function(){var e=t(this).attr("style").match(/mso\-list\:l([0-9]+)\slevel([0-9]+)/);if(e){var n=parseInt(e[1]),a=parseInt(e[2]),l=t(this).html().match(/^[\w]+\./)?"ol":"ul",c=t("<li/>").html(t(this).html());if(c.html(c.html().replace(/^([\w\.]+)</,"<")),c.find("span:first").remove(),1==a&&-1==t.inArray(n,s)){var d=t("<"+l+"/>").attr({"data-level":a,"data-list":n}).html(c);t(this).replaceWith(d),o=n,s.push(n)}else{if(a>r){for(var h=i.find('[data-level="'+r+'"][data-list="'+o+'"]'),u=h,p=r;a>p;p++)d=t("<"+l+"/>"),d.appendTo(u.find("li").last()),u=d;u.attr({"data-level":a,"data-list":n}).html(c)}else{var h=i.find('[data-level="'+a+'"][data-list="'+n+'"]').last();h.append(c)}r=a,o=n,t(this).remove()}}}),i.find("[data-level][data-list]").removeAttr("data-level data-list"),e=i.html()},replaceNbspToSpaces:function(t){return t.replace("&nbsp;"," ")},replaceBrToNl:function(t){return t.replace(/<br\s?\/?>/gi,"\n")},replaceNlToBr:function(t){return t.replace(/\n/g,"<br />")},convertTags:function(e,i){var o=t("<div>").html(e);o.find("iframe").remove();var r=o.find("a");if(r.removeAttr("style"),this.opts.pasteLinkTarget!==!1&&r.attr("target",this.opts.pasteLinkTarget),e=o.html(),i.links&&this.opts.pasteLinks&&(e=e.replace(/<a(.*?)href="(.*?)"(.*?)>(.*?)<\/a>/gi,'###a$1href="$2"$3###$4###/a###')),i.images&&this.opts.pasteImages&&(e=e.replace(/<img(.*?)src="(.*?)"(.*?[^>])>/gi,'###img$1src="$2"$3###')),this.opts.pastePlainText)return e;var s,n=i.lists?["ul","ol","li"]:this.opts.pasteBlockTags;s=i.block||i.lists?i.inline?n.concat(this.opts.pasteInlineTags):n:i.inline?this.opts.pasteInlineTags:[];for(var a=s.length,l=0;a>l;l++)e=e.replace(new RegExp("</"+s[l]+">","gi"),"###/"+s[l]+"###"),e="td"===s[l]||"th"===s[l]?e.replace(new RegExp("<"+s[l]+'(.*?[^>])((colspan|rowspan)="(.*?[^>])")?(.*?[^>])>',"gi"),"###"+s[l]+" $2###"):e.replace(new RegExp("<"+s[l]+"[^>]*>","gi"),"###"+s[l]+"###");return e},reconvertTags:function(t,e){if(e.links&&this.opts.pasteLinks&&(t=t.replace(/###a(.*?)href="(.*?)"(.*?)###(.*?)###\/a###/gi,'<a$1href="$2"$3>$4</a>')),e.images&&this.opts.pasteImages&&(t=t.replace(/###img(.*?)src="(.*?)"###/gi,'<img src="$2">')),this.opts.pastePlainText)return t;var i,o=e.lists?["ul","ol","li"]:this.opts.pasteBlockTags;i=e.block||e.lists?e.inline?o.concat(this.opts.pasteInlineTags):o:e.inline?this.opts.pasteInlineTags:[];for(var r=i.length,s=0;r>s;s++)t=t.replace(new RegExp("###/"+i[s]+"###","gi"),"</"+i[s]+">"),t=t.replace(new RegExp("###"+i[s]+"###","gi"),"<"+i[s]+">");for(var s=0;r>s;s++)"td"!==i[s]&&"th"!==i[s]||(t=t.replace(new RegExp("###"+i[s]+"s?(.*?[^#])###","gi"),"<"+i[s]+"$1>"));return t},cleanPre:function(e){e="undefined"==typeof e?t(this.selection.block()).closest("pre",this.core.editor()[0]):e,t(e).find("br").replaceWith(function(){return document.createTextNode("\n")}),t(e).find("p").replaceWith(function(){return t(this).contents()})},removeTagsInsidePre:function(e){var i=t("<div />").append(e);return i.find("pre").replaceWith(function(){var e=t(this).html();return e=e.replace(/<br\s?\/?>|<\/p>|<\/div>|<\/li>|<\/td>/gi,"\n"),e=e.replace(/(<([^>]+)>)/gi,""),t("<pre />").append(e)}),e=i.html(),i.remove(),e},getPlainText:function(e){e=e.replace(/<!--[\s\S]*?-->/gi,""),e=e.replace(/<style[\s\S]*?style>/gi,""),e=e.replace(/<\/p>|<\/div>|<\/li>|<\/td>/gi,"\n"),e=e.replace(/<\/H[1-6]>/gi,"\n\n");var i=document.createElement("div");return i.innerHTML=e,e=i.textContent||i.innerText,t.trim(e)},savePreCode:function(t){return t=this.clean.savePreFormatting(t),t=this.clean.saveCodeFormatting(t),t=this.clean.restoreSelectionMarkers(t)},savePreFormatting:function(e){var i=e.match(/<pre(.*?)>([\w\W]*?)<\/pre>/gi);return null===i?e:(t.each(i,t.proxy(function(t,i){var o=i.match(/<pre(.*?)>([\w\W]*?)<\/pre>/i);o[2]=o[2].replace(/<br\s?\/?>/g,"\n"),o[2]=o[2].replace(/&nbsp;/g," "),this.opts.preSpaces&&(o[2]=o[2].replace(/\t/g,new Array(this.opts.preSpaces+1).join(" "))),o[2]=this.clean.encodeEntities(o[2]),o[2]=o[2].replace(/\$/g,"&#36;"),e=e.replace(i,"<pre"+o[1]+">"+o[2]+"</pre>")},this)),e)},saveCodeFormatting:function(e){var i=e.match(/<code(.*?)>([\w\W]*?)<\/code>/gi);return null===i?e:(t.each(i,t.proxy(function(t,i){var o=i.match(/<code(.*?)>([\w\W]*?)<\/code>/i);o[2]=o[2].replace(/&nbsp;/g," "),o[2]=this.clean.encodeEntities(o[2]),o[2]=o[2].replace(/\$/g,"&#36;"),e=e.replace(i,"<code"+o[1]+">"+o[2]+"</code>")},this)),e)},restoreSelectionMarkers:function(t){return t=t.replace(/&lt;span id=&quot;selection-marker-([0-9])&quot; class=&quot;redactor-selection-marker&quot;&gt;​&lt;\/span&gt;/g,'<span id="selection-marker-$1" class="redactor-selection-marker">​</span>')},saveFormTags:function(t){return t.replace(/<form(.*?)>([\w\W]*?)<\/form>/gi,'<section$1 rel="redactor-form-tag">$2</section>')},restoreFormTags:function(t){return t.replace(/<section(.*?) rel="redactor-form-tag"(.*?)>([\w\W]*?)<\/section>/gi,"<form$1$2>$3</form>")},encodeHtml:function(t){return t=t.replace(/”/g,'"'),t=t.replace(/“/g,'"'),t=t.replace(/‘/g,"'"),t=t.replace(/’/g,"'"),t=this.clean.encodeEntities(t)},encodeEntities:function(t){return t=String(t).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"'),t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},stripTags:function(t,e){if("undefined"==typeof e)return t.replace(/(<([^>]+)>)/gi,"");var i=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi;return t.replace(i,function(t,i){return-1===e.indexOf(i.toLowerCase())?t:""})},removeMarkers:function(t){return t.replace(/<span(.*?[^>]?)class="redactor-selection-marker"(.*?[^>]?)>([\w\W]*?)<\/span>/gi,"")},removeSpaces:function(e){return e=t.trim(e),e=e.replace(/\n/g,""),e=e.replace(/[\t]*/g,""),e=e.replace(/\n\s*\n/g,"\n"),e=e.replace(/^[\s\n]*/g," "),e=e.replace(/[\s\n]*$/g," "),e=e.replace(/>\s{2,}</g,"> <"),e=e.replace(/\n\n/g,"\n"),e=e.replace(/\u200B/g,"")},removeSpacesHard:function(e){return e=t.trim(e),e=e.replace(/\n/g,""),e=e.replace(/[\t]*/g,""),e=e.replace(/\n\s*\n/g,"\n"),e=e.replace(/^[\s\n]*/g,""),e=e.replace(/[\s\n]*$/g,""),e=e.replace(/>\s{2,}</g,"><"),e=e.replace(/\n\n/g,"\n"),e=e.replace(/\u200B/g,"")},normalizeCurrentHeading:function(){var t=this.selection.block();this.utils.isCurrentOrParentHeader()&&t&&t.normalize()}}},code:function(){return{syncFire:!0,html:!1,start:function(e){e=t.trim(e),e=e.replace(/^(<span id="selection-marker-1" class="redactor-selection-marker">​<\/span>)/,""),"textarea"===this.opts.type?e=this.clean.onSet(e):"div"===this.opts.type&&""===e&&(e=this.opts.emptyHtml),this.events.stopDetectChanges(),this.core.editor().html(e),this.observe.load(),this.events.startDetectChanges()},set:function(e,i){e=t.trim(e),i=i||{},i.start&&(this.start=i.start),"textarea"===this.opts.type?e=this.clean.onSet(e):"div"===this.opts.type&&""===e&&(e=this.opts.emptyHtml),this.core.editor().html(e),"textarea"===this.opts.type&&this.code.sync(),this.placeholder.enable()},get:function(){if("textarea"===this.opts.type)return this.core.textarea().val();var t=this.core.editor().html();return t=this.clean.onGet(t)},sync:function(){if(this.code.syncFire){var e=this.core.editor().html(),i=this.code.cleaned(e);if(!this.code.isSync(i))return this.code.html=i,"textarea"!==this.opts.type?(this.core.callback("sync",e),void this.core.callback("change",e)):void("textarea"===this.opts.type&&setTimeout(t.proxy(function(){this.code.startSync(e)},this),10))}},startSync:function(t){t=this.core.callback("syncBefore",t),t=this.clean.onSync(t),this.core.textarea().val(t),this.core.callback("sync",t),this.start===!1&&this.core.callback("change",t),this.start=!1},isSync:function(t){var e=this.code.html!==!1?this.code.html:!1;return e!==!1&&e===t},cleaned:function(t){return t=t.replace(/\u200B/g,""),this.clean.removeMarkers(t)}}},core:function(){return{id:function(){return this.$editor.attr("id")},element:function(){return this.$element},editor:function(){return"undefined"==typeof this.$editor?t():this.$editor},textarea:function(){return this.$textarea},box:function(){return"textarea"===this.opts.type?this.$box:this.$element},toolbar:function(){return this.$toolbar?this.$toolbar:!1},air:function(){return this.$air?this.$air:!1},object:function(){return t.extend({},this)},structure:function(){this.core.editor().toggleClass("redactor-structure")},addEvent:function(t){this.core.event=t},getEvent:function(){return this.core.event},callback:function(e,i,o){var r="redactor",s=!1,n=t._data(this.core.element()[0],"events");if("undefined"!=typeof n&&"undefined"!=typeof n[e])for(var a=n[e].length,l=0;a>l;l++){var c=n[e][l].namespace;if(c==="callback."+r){var d=n[e][l].handler,h="undefined"==typeof o?[i]:[i,o];s="undefined"==typeof h?d.call(this,i):d.call(this,i,h)}}if(s)return s;if("undefined"==typeof this.opts.callbacks[e])return"undefined"==typeof o?i:o;var u=this.opts.callbacks[e];return t.isFunction(u)?"undefined"==typeof o?u.call(this,i):u.call(this,i,o):"undefined"==typeof o?i:o},destroy:function(){this.opts.destroyed=!0,this.core.callback("destroy"),this.placeholder.destroy(),this.progress.destroy(),t("#redactor-voice-"+this.uuid).remove(),this.core.editor().removeClass("redactor-in redactor-structure redactor-editor-img-edit"),this.core.editor().off("keydown.redactor-remove-textnode"),this.core.editor().off(".redactor-observe."+this.uuid),this.$element.off(".redactor").removeData("redactor"),this.core.editor().off(".redactor"),t(document).off(".redactor-dropdown"),t(document).off(".redactor-air."+this.uuid),t(document).off("mousedown.redactor-blur."+this.uuid),t(document).off("mousedown.redactor."+this.uuid),t(document).off("touchstart.redactor."+this.uuid+" click.redactor."+this.uuid),t(window).off(".redactor-toolbar."+this.uuid),t(window).off("touchmove.redactor."+this.uuid),t("body").off("scroll.redactor."+this.uuid),t(this.opts.toolbarFixedTarget).off("scroll.redactor."+this.uuid);var e=this;this.opts.plugins!==!1&&t.each(this.opts.plugins,function(i,o){t(window).off(".redactor-plugin-"+o),t(document).off(".redactor-plugin-"+o),t("body").off(".redactor-plugin-"+o),e.core.editor().off(".redactor-plugin-"+o)}),this.$element.off("click.redactor-click-to-edit"),this.$element.removeClass("redactor-click-to-edit"),this.core.editor().removeClass("redactor-editor"),this.core.editor().removeAttr("contenteditable");var i=this.code.get();this.opts.toolbar&&this.$toolbar&&this.$toolbar.find("a").each(function(){var e=t(this);e.data("dropdown")&&(e.data("dropdown").remove(),e.data("dropdown",{}))}),"textarea"===this.opts.type&&(this.$box.after(this.$element),this.$box.remove(),this.$element.val(i).show()),this.opts.air&&this.$air.remove(),this.opts.toolbar&&this.$toolbar&&this.$toolbar.remove(),this.$modalBox&&this.$modalBox.remove(),this.$modalOverlay&&this.$modalOverlay.remove(),t(".redactor-link-tooltip").remove(),clearInterval(this.autosaveTimeout)}}},detect:function(){return{isWebkit:function(){return/webkit/.test(this.opts.userAgent)},isFirefox:function(){return this.opts.userAgent.indexOf("firefox")>-1},isIe:function(t){if(document.documentMode||/Edge/.test(navigator.userAgent))return"edge";var e;return e=RegExp("msie"+(isNaN(t)?"":"\\s"+t),"i").test(navigator.userAgent),e||(e=!!navigator.userAgent.match(/Trident.*rv[ :]*11\./)),e},isMobile:function(){return/(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent)},isDesktop:function(){return!/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent)},isIpad:function(){return/iPad/.test(navigator.userAgent)}}},dropdown:function(){return{active:!1,button:!1,key:!1,position:[],getDropdown:function(){return this.dropdown.active},build:function(e,i,o){o=this.dropdown.buildFormatting(e,o),t.each(o,t.proxy(function(t,o){var r=this.dropdown.buildItem(t,o);this.observe.addDropdown(r,t,o),i.attr("rel",e).append(r)},this))},buildFormatting:function(e,i){return"format"!==e||this.opts.formattingAdd===!1?i:(t.each(this.opts.formattingAdd,t.proxy(function(t,e){var o=this.utils.isBlockTag(e.args[0])?"block":"inline";i[t]={func:"block"===o?"block.format":"inline.format",args:e.args,title:e.title}},this)),i)},buildItem:function(e,i){var o=t("<li />");if("undefined"!=typeof i.classname&&o.addClass(i.classname),-1!==e.search(/^divider/i))return o.addClass("redactor-dropdown-divider"),o;var r=t('<a href="#" class="redactor-dropdown-'+e+'" role="button" />'),s=t("<span />").html(i.title);return r.append(s),r.on("mousedown",t.proxy(function(t){t.preventDefault(),this.dropdown.buildClick(t,e,i)},this)),o.append(r),o},buildClick:function(e,i,o){if(!t(e.target).hasClass("redactor-dropdown-link-inactive")){var r=this.dropdown.buildCommand(o);" undefined"!=typeof o.args?this.button.toggle(e,i,r.type,r.callback,o.args):this.button.toggle(e,i,r.type,r.callback)}},buildCommand:function(t){var e={};return e.type="func",e.callback=t.func,t.command?(e.type="command",e.callback=t.command):t.dropdown&&(e.type="dropdown",e.callback=t.dropdown),e},show:function(e,i){return this.detect.isDesktop()&&this.core.editor().focus(),this.dropdown.hideAll(!1,i),this.dropdown.key=i,this.dropdown.button=this.button.get(this.dropdown.key),this.dropdown.button.hasClass("dropact")?void this.dropdown.hide():(this.dropdown.active=this.dropdown.button.data("dropdown").appendTo(document.body),this.core.callback("dropdownShow",{dropdown:this.dropdown.active,key:this.dropdown.key,button:this.dropdown.button}),this.button.setActive(this.dropdown.key),this.dropdown.button.addClass("dropact"),this.dropdown.getButtonPosition(),this.button.toolbar().hasClass("toolbar-fixed-box")&&this.detect.isDesktop()?this.dropdown.showIsFixedToolbar():this.dropdown.showIsUnFixedToolbar(),this.detect.isDesktop()&&!this.detect.isFirefox()&&(this.dropdown.active.on("mouseover.redactor-dropdown",t.proxy(this.utils.disableBodyScroll,this)),this.dropdown.active.on("mousedown.redactor-dropdown",t.proxy(this.utils.enableBodyScroll,this))),void e.stopPropagation())},showIsFixedToolbar:function(){var e=this.dropdown.button.position().top+this.dropdown.button.innerHeight()+this.opts.toolbarFixedTopOffset,i="fixed";this.opts.toolbarFixedTarget!==document&&(e=this.dropdown.button.innerHeight()+this.$toolbar.offset().top+this.opts.toolbarFixedTopOffset,i="absolute"),this.dropdown.active.css({position:i,left:this.dropdown.position.left+"px",top:e+"px"}).show(),this.dropdown.active.redactorAnimation("slideDown",{duration:.2},t.proxy(function(){this.dropdown.enableCallback(),this.dropdown.enableEvents()},this))},showIsUnFixedToolbar:function(){this.dropdown.active.css({position:"absolute",left:this.dropdown.position.left+"px",top:this.dropdown.button.innerHeight()+this.dropdown.position.top+"px"}).show(),this.dropdown.active.redactorAnimation(this.opts.animation?"slideDown":"show",{duration:.2},t.proxy(function(){this.dropdown.enableCallback(),this.dropdown.enableEvents()},this))},enableEvents:function(){t(document).on("mousedown.redactor-dropdown",t.proxy(this.dropdown.hideAll,this)),this.core.editor().on("touchstart.redactor-dropdown",t.proxy(this.dropdown.hideAll,this)),t(document).on("keyup.redactor-dropdown",t.proxy(this.dropdown.closeHandler,this))},enableCallback:function(){this.core.callback("dropdownShown",{dropdown:this.dropdown.active,key:this.dropdown.key,button:this.dropdown.button})},getButtonPosition:function(){this.dropdown.position=this.dropdown.button.offset();var e=this.dropdown.active.width();this.dropdown.position.left+e>t(document).width()&&(this.dropdown.position.left=Math.max(0,this.dropdown.position.left-e+parseInt(this.dropdown.button.innerWidth())))},closeHandler:function(t){t.which===this.keyCode.ESC&&(this.dropdown.hideAll(t),this.core.editor().focus())},hideAll:function(e,i){if(this.detect.isDesktop()&&this.utils.enableBodyScroll(),e===!1||0===t(e.target).closest(".redactor-dropdown").length){var o="undefined"==typeof i?this.button.toolbar().find("a.dropact"):this.button.toolbar().find("a.dropact").not(".re-"+i),r="undefined"==typeof i?t(".redactor-dropdown-"+this.uuid):t(".redactor-dropdown-"+this.uuid).not(".redactor-dropdown-box-"+i);0!==r.length&&(t(document).off(".redactor-dropdown"),this.core.editor().off(".redactor-dropdown"),t.each(r,t.proxy(function(e,i){var o=t(i);this.core.callback("dropdownHide",o),o.hide(),o.off("mouseover mouseout").off(".redactor-dropdown")},this)),o.removeClass("redactor-act dropact"))}},hide:function(){this.dropdown.active!==!1&&(this.detect.isDesktop()&&this.utils.enableBodyScroll(),this.dropdown.active.redactorAnimation(this.opts.animation?"slideUp":"hide",{duration:.2},t.proxy(function(){t(document).off(".redactor-dropdown"),this.core.editor().off(".redactor-dropdown"),this.dropdown.hideOut()},this)))},hideOut:function(){this.core.callback("dropdownHide",this.dropdown.active),this.dropdown.button.removeClass("redactor-act dropact"),this.dropdown.active.off("mouseover mouseout").off(".redactor-dropdown"),this.dropdown.button=!1,this.dropdown.key=!1,this.dropdown.active=!1}}},events:function(){return{focused:!1,blured:!0,dropImage:!1,stopChanges:!1,stopDetectChanges:function(){this.events.stopChanges=!0},startDetectChanges:function(){var t=this;setTimeout(function(){t.events.stopChanges=!1},1)},dragover:function(e){e.preventDefault(),e.stopPropagation(),"IMG"===e.target.tagName&&t(e.target).addClass("redactor-image-dragover")},dragleave:function(t){this.core.editor().find("img").removeClass("redactor-image-dragover")},drop:function(t){return t=t.originalEvent||t,this.core.editor().find("img").removeClass("redactor-image-dragover"),"inline"===this.opts.type||"pre"===this.opts.type?(t.preventDefault(),!1):void 0!==window.FormData&&t.dataTransfer?0===t.dataTransfer.files.length?this.events.onDrop(t):(this.events.onDropUpload(t),void this.core.callback("drop",t)):!0},click:function(t){var e=this.core.getEvent(),i="click"===e||"arrow"===e?!1:"click";this.core.addEvent(i),this.utils.disableSelectAll(),this.core.callback("click",t)},focus:function(t){if(!this.rtePaste&&(this.events.isCallback("focus")&&this.core.callback("focus",t),this.events.focused=!0,this.events.blured=!1,this.selection.current()===!1)){var e=this.selection.get(),i=this.selection.range(e);i.setStart(this.core.editor()[0],0),i.setEnd(this.core.editor()[0],0),this.selection.update(e,i)}},blur:function(e){this.start||this.rtePaste||0===t(e.target).closest("#"+this.core.id()+", .redactor-toolbar, .redactor-dropdown, #redactor-modal-box").length&&(!this.events.blured&&this.events.isCallback("blur")&&this.core.callback("blur",e),this.events.focused=!1,this.events.blured=!0)},touchImageEditing:function(){var e=-1;this.events.imageEditing=!1,t(window).on("touchmove.redactor."+this.uuid,t.proxy(function(){this.events.imageEditing=!0,-1!==e&&clearTimeout(e),e=setTimeout(t.proxy(function(){this.events.imageEditing=!1},this),500)},this))},init:function(){this.core.editor().on("dragover.redactor dragenter.redactor",t.proxy(this.events.dragover,this)),this.core.editor().on("dragleave.redactor",t.proxy(this.events.dragleave,this)),this.core.editor().on("drop.redactor",t.proxy(this.events.drop,this)),this.core.editor().on("click.redactor",t.proxy(this.events.click,this)),this.core.editor().on("paste.redactor",t.proxy(this.paste.init,this)),this.core.editor().on("keydown.redactor",t.proxy(this.keydown.init,this)),this.core.editor().on("keyup.redactor",t.proxy(this.keyup.init,this)),this.core.editor().on("focus.redactor",t.proxy(this.events.focus,this)),t(document).on("mousedown.redactor-blur."+this.uuid,t.proxy(this.events.blur,this)),this.events.touchImageEditing(),this.events.createObserver(),this.events.setupObserver()},createObserver:function(){var e=this;this.events.observer=new MutationObserver(function(i){i.forEach(t.proxy(e.events.iterateObserver,e))})},iterateObserver:function(t){var e=!1;(("textarea"===this.opts.type||"div"===this.opts.type)&&!this.detect.isFirefox()&&t.target===this.core.editor()[0]||"class"===t.attributeName&&t.target===this.core.editor()[0])&&(e=!0),e||(this.observe.load(),this.events.changeHandler())},setupObserver:function(){this.events.observer.observe(this.core.editor()[0],{attributes:!0,subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0})},changeHandler:function(){this.events.stopChanges||(this.code.sync(),this.autosave.is()&&(clearTimeout(this.autosaveTimeout),this.autosaveTimeout=setTimeout(t.proxy(this.autosave.send,this),300)))},onDropUpload:function(t){if(t.preventDefault(),t.stopPropagation(),(this.opts.dragImageUpload||this.opts.dragFileUpload)&&(null!==this.opts.imageUpload||null!==this.opts.fileUpload)){"IMG"===t.target.tagName&&(this.events.dropImage=t.target);var e=t.dataTransfer.files;this.upload.directUpload(e[0],t)}},onDrop:function(t){this.core.callback("drop",t)},isCallback:function(e){return"undefined"!=typeof this.opts.callbacks[e]&&t.isFunction(this.opts.callbacks[e])},stopDetect:function(){this.events.stopDetectChanges()},startDetect:function(){this.events.startDetectChanges()}}},file:function(){return{is:function(){return!(!this.opts.fileUpload||!this.opts.fileUpload&&!this.opts.s3)},show:function(){this.modal.load("file",this.lang.get("file"),700),this.upload.init("#redactor-modal-file-upload",this.opts.fileUpload,this.file.insert),t("#redactor-filename").val(this.selection.get().toString()),this.modal.show()},insert:function(e,i,o){if("undefined"!=typeof e.error)return this.modal.close(),void this.core.callback("fileUploadError",e);this.file.release(o,i),this.buffer.set(),this.air.collapsed();var r=this.file.text(e),s=t("<a />").attr("href",e.url).text(r),n="undefined"==typeof e.id?"":e.id,a="undefined"==typeof e.s3?"file":"s3";s.attr("data-"+a,n),s=t(this.insert.node(s)),this.caret.after(s),this.storage.add({type:a,node:s[0],url:s[0].href,id:n}),null!==i&&this.core.callback("fileUpload",s,e)},release:function(t,e){e?(this.marker.remove(),this.insert.nodeToPoint(t,this.marker.get()),this.selection.restore()):this.modal.close()},text:function(e){var i=t("#redactor-filename").val();return"undefined"==typeof i||""===i?e.name:i}}},focus:function(){return{start:function(){if(this.core.editor().focus(),"inline"!==this.opts.type){var t=this.focus.first();t!==!1&&this.caret.start(t)}},end:function(){this.core.editor().focus();var t=this.opts.inline?this.core.editor():this.focus.last();if(0!==t.length){var e=this.focus.lastChild(t);if(this.detect.isWebkit()||e===!1){var i=this.selection.get(),o=this.selection.range(i);null!==o?(o.selectNodeContents(t[0]),o.collapse(!1),this.selection.update(i,o)):this.caret.end(t)}else this.caret.end(e)}},first:function(){var t=this.core.editor().children().first();return 0!==t.length||0!==t[0].length&&"BR"!==t[0].tagName&&"HR"!==t[0].tagName&&3!==t[0].nodeType?"UL"===t[0].tagName||"OL"===t[0].tagName?t.find("li").first():t:!1},last:function(){return this.core.editor().children().last()},lastChild:function(t){var e=t[0].lastChild;return null!==e&&this.utils.isInlineTag(e.tagName)?e:!1},is:function(){return this.core.editor()[0]===document.activeElement}}},image:function(){return{is:function(){return!(!this.opts.imageUpload||!this.opts.imageUpload&&!this.opts.s3)},show:function(){this.modal.load("image",this.lang.get("image"),700),this.upload.init("#redactor-modal-image-droparea",this.opts.imageUpload,this.image.insert),this.modal.show()},insert:function(e,i,o){var r;if("undefined"!=typeof e.error)return this.modal.close(),this.events.dropImage=!1,void this.core.callback("imageUploadError",e,o);if(this.events.dropImage!==!1)return r=t(this.events.dropImage),this.core.callback("imageDelete",r[0].src,r),r.attr("src",e.url),this.events.dropImage=!1,void this.core.callback("imageUpload",r,e);this.placeholder.hide();var s=t("<figure>");r=t("<img>"),r.attr("src",e.url);var n="undefined"==typeof e.id?"":e.id,a="undefined"==typeof e.s3?"image":"s3";r.attr("data-"+a,n),s.append(r);var l=this.utils.isTag(this.selection.current(),"pre");if(i){this.air.collapsed(),this.marker.remove();var c=this.insert.nodeToPoint(o,this.marker.get()),d=t(c).next();this.selection.restore(),this.buffer.set(),"undefined"!=typeof d&&0!==d.length&&"IMG"===d[0].tagName?(this.core.callback("imageDelete",d[0].src,d),d.closest("figure, p",this.core.editor()[0]).replaceWith(s),this.caret.after(s)):(l?t(l).after(s):this.insert.node(s),this.caret.after(s))}else this.modal.close(),this.buffer.set(),this.air.collapsed(),l?t(l).after(s):this.insert.node(s),this.caret.after(s);this.events.dropImage=!1,this.storage.add({type:a,node:r[0],url:r[0].src,id:n}),null!==i&&this.core.callback("imageUpload",r,e)},setEditable:function(e){e.on("dragstart",function(t){t.preventDefault()}),e.off("click.redactor touchstart.redactor").on("click.redactor touchstart.redactor",t.proxy(function(i){setTimeout(t.proxy(function(){this.image.showEdit(e)},this),200)},this))},showEdit:function(e){if(!this.events.imageEditing){this.observe.image=e;var i=e.closest("a",this.$editor[0]);if(this.modal.load("image-edit",this.lang.get("edit"),705),this.image.buttonDelete=this.modal.getDeleteButton().text(this.lang.get("delete")),this.image.buttonSave=this.modal.getActionButton().text(this.lang.get("save")),this.image.buttonDelete.on("click",t.proxy(this.image.remove,this)),this.image.buttonSave.on("click",t.proxy(this.image.update,this)),this.opts.imageCaption===!1)t("#redactor-image-caption").val("").hide().prev().hide();else{var o=0===i.length?e.next():i.next();0!==o.length&&"FIGCAPTION"===o[0].tagName&&t("#redactor-image-caption").val(o.text()).show()}t("#redactor-image-preview").html(t('<img src="'+e.attr("src")+'" style="max-width: 100%;">')),t("#redactor-image-title").val(e.attr("alt"));var r=t("#redactor-image-link");r.attr("href",e.attr("src")),0!==i.length&&(r.val(i.attr("href")),"_blank"===i.attr("target")&&t("#redactor-image-link-blank").prop("checked",!0)),t(".redactor-link-tooltip").remove(),this.modal.show(),this.detect.isDesktop()&&t("#redactor-image-title").focus()}},update:function(){var e=this.observe.image,i=e.closest("a",this.core.editor()[0]),o=t("#redactor-image-title").val().replace(/(<([^>]+)>)/gi,"");e.attr("alt",o).attr("title",o);var r=t.trim(t("#redactor-image-link").val()).replace(/(<([^>]+)>)/gi,"");if(""!==r){var s="((xn--)?[a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,}",n=new RegExp("^(http|ftp|https)://"+s,"i"),a=new RegExp("^"+s,"i");-1===r.search(n)&&0===r.search(a)&&this.opts.linkProtocol&&(r=this.opts.linkProtocol+"://"+r);var l=!!t("#redactor-image-link-blank").prop("checked");if(0===i.length){var c=t('<a href="'+r+'" id="redactor-img-tmp">'+this.utils.getOuterHtml(e)+"</a>");l&&c.attr("target","_blank"),e=e.replaceWith(c),i=this.core.editor().find("#redactor-img-tmp"),i.removeAttr("id")}else i.attr("href",r),l?i.attr("target","_blank"):i.removeAttr("target");
+}else 0!==i.length&&i.replaceWith(this.utils.getOuterHtml(e));this.image.addCaption(e,i),this.modal.close(),this.buffer.set()},addCaption:function(e,i){var o=t("#redactor-image-caption").val(),r=0!==i.length?i:e,s=r.next();0!==s.length&&"FIGCAPTION"===s[0].tagName||(s=!1),""!==o?s===!1?(s=t("<figcaption />").text(o),r.after(s)):s.text(o):s!==!1&&s.remove()},remove:function(e,i,o){i="undefined"==typeof i?t(this.observe.image):i,"boolean"!=typeof e&&this.buffer.set(),this.events.stopDetectChanges();var r=i.closest("a",this.core.editor()[0]),s=i.closest("figure",this.core.editor()[0]),n=i.parent();0!==t("#redactor-image-box").length&&(n=t("#redactor-image-box").parent());var a;0!==s.length?(a=s.next(),s.remove()):0!==r.length?(n=r.parent(),r.remove()):i.remove(),t("#redactor-image-box").remove(),e!==!1&&(0!==s.length&&0!==a.length?this.caret.start(a):0!==n.length&&this.caret.start(n)),"boolean"!=typeof e&&this.modal.close(),this.utils.restoreScroll(),this.observe.image=!1,this.events.startDetectChanges(),this.placeholder.enable(),this.code.sync()}}},indent:function(){return{increase:function(){if(this.list.get()){var e=t(this.selection.current()).closest("li"),i=e.closest("ul, ol"),o=e.closest("li"),r=o.prev();if(0!==r.length&&"LI"===r[0].tagName)if(this.buffer.set(),this.utils.isCollapsed()){var s=i[0].tagName,n=t("<"+s+" />");this.selection.save(),n.append(e),r.append(n),this.selection.restore()}else document.execCommand("indent"),this.selection.save(),this.indent.removeEmpty(),this.indent.normalize(),this.selection.restore()}},decrease:function(){if(this.list.get()){var e=t(this.selection.current()).closest("li");e.closest("ul, ol");this.buffer.set(),document.execCommand("outdent");var i=t(this.selection.current()).closest("li",this.core.editor()[0]);if(this.utils.isCollapsed()&&this.indent.repositionItem(i),0===i.length){document.execCommand("formatblock",!1,"p"),i=t(this.selection.current());var o=i.next();0!==o.length&&"BR"===o[0].tagName&&o.remove()}this.selection.save(),this.indent.removeEmpty(),this.indent.normalize(),this.selection.restore()}},repositionItem:function(t){var e=t.prev();if(0!==e.length&&"LI"!==e[0].tagName){this.selection.save();var i=t.parents("li",this.core.editor()[0]);i.after(t),this.selection.restore()}},normalize:function(){this.core.editor().find("li").each(t.proxy(function(e,i){var o=t(i);o.find(this.opts.inlineTags.join(",")).each(function(){t(this).removeAttr("style")});var r=o.parent();if(0!==r.length&&"LI"===r[0].tagName)return void r.after(o);var s=o.next();0===s.length||"UL"!==s[0].tagName&&"OL"!==s[0].tagName||o.append(s)},this))},removeEmpty:function(e){var i=this.core.editor().find("ul, ol"),o=this.core.editor().find("li");o.each(t.proxy(function(t,e){this.indent.removeItemEmpty(e)},this)),i.each(t.proxy(function(t,e){this.indent.removeItemEmpty(e)},this)),o.each(t.proxy(function(t,e){this.indent.removeItemEmpty(e)},this))},removeItemEmpty:function(e){var i=e.innerHTML.replace(/[\t\s\n]/g,"");i=i.replace(/<span><\/span>/g,""),""===i&&t(e).remove()}}},inline:function(){return{format:function(t,e,i,o){if(t=t.toLowerCase(),!this.utils.isCurrentOrParent(["PRE"])){for(var r=["b","bold","i","italic","underline","strikethrough","deleted","superscript","subscript"],s=["strong","strong","em","em","u","del","del","sup","sub"],n=0;n<r.length;n++)t===r[n]&&(t=s[n]);this.placeholder.hide(),this.buffer.set(),this.utils.isCollapsed()?this.inline.formatCollapsed(t,e,i,o):this.inline.formatUncollapsed(t,e,i,o)}},formatUncollapsed:function(e,i,o,r){var s=this,n=this.inline.inlines(),a=this.selection.current();a&&n.push(a),this.selection.save(),"del"!==e&&this.core.editor().find("del").each(function(t,e){s.utils.replaceToTag(e,"deline")}),"u"!==e&&this.core.editor().find("u").each(function(t,e){s.utils.replaceToTag(e,"inline")}),t.each(n,function(){if(1===this.nodeType){var t=this.tagName.toLowerCase();if(t===e){var i=s.utils.replaceToTag(this,"strike");i.addClass("redactor-converted")}}}),this.selection.restore(),document.execCommand("strikethrough");var l=!0,c=this.selection.parent();c!==!1&&"STRIKE"===c.tagName||(l=!1),this.selection.save(),"u"!==e&&this.core.editor().find("u").replaceWith(function(){return t(this).contents()}),this.core.editor().find("strike").each(function(){var t=s.utils.replaceToTag(this,e);l&&s.inline.setAttr(t,i,o,r)}),this.core.editor().find(".redactor-converted").each(function(){var i=this.tagName.toLowerCase();i===e&&l!==!1||t(this).replaceWith(function(){return t(this).contents()}),t(this).removeClass("redactor-converted")}),"del"!==e&&this.core.editor().find("deline").each(function(t,e){s.utils.replaceToTag(e,"del")}),"u"!==e&&this.core.editor().find("inline").each(function(t,e){s.utils.replaceToTag(e,"u")}),this.selection.restore()},inlines:function(){var e=[],i=this.inline.nodes();t.each(i,t.proxy(function(t,i){this.utils.isInline(i)&&e.push(i)},this));var o=this.selection.inline();return o===!1&&0===e.length?[]:o!==!1&&0===e.length?[o]:e},nodes:function(){var t=document.getSelection();if(!t.rangeCount||t.isCollapsed||!t.getRangeAt(0).commonAncestorContainer)return[];var e=t.getRangeAt(0);if(3===e.commonAncestorContainer.nodeType){for(var i=[],o=e.commonAncestorContainer;o.parentNode&&1===o.parentNode.childNodes.length;)i.push(o.parentNode),o=o.parentNode;return i}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),function(e){return"function"==typeof t.containsNode?t.containsNode(e,!0):!0})},formatCollapsed:function(e,i,o,r){var s=this.selection.inline();if(s){var n=s.tagName.toLowerCase();if(n===e)if(this.utils.isEmpty(s.innerHTML))this.caret.after(s),t(s).remove();else{var a=this.inline.insertBreakpoint(s,n);this.caret.after(a)}else 0===t(s).closest(e).length?this.inline.insertInline(e,i,o,r):this.caret.start(s)}else this.inline.insertInline(e,i,o,r)},insertBreakpoint:function(e,i){var o=document.createElement("span");o.id="redactor-inline-breakpoint",o=this.insert.node(o);var r=this.utils.isEndOfElement(e),s=this.utils.getOuterHtml(e),n=r?"":"<"+i+">";s=s.replace(/<span\sid="redactor-inline-breakpoint">​<\/span>/i,"</"+i+">"+n);var a=t(s);return t(e).replaceWith(a),""!==n&&this.utils.cloneAttributes(e,a.last()),a.first()},insertInline:function(t,e,i,o){var r=document.createElement(t);r=this.inline.setAttr(r,e,i,o),this.insert.node(r),this.caret.start(r)},setAttr:function(t,e,i,o){if("undefined"==typeof e)return t;var r="undefined"==typeof o?"toggle":o;return t="class"===e?this.inline[r+"Class"](i,t):"remove"===r?this.inline[r+"Attr"](e,t):"removeAll"===r?this.inline[r+"Attr"](t):this.inline[r+"Attr"](e,i,t)},getInlines:function(t){return"undefined"==typeof t?this.selection.inlines():t},update:function(e,i,o,r){var s=this.selection.inlines(),n=[],a=this;return t.each(s,function(s,l){if(t.isArray(e)){if(-1===t.inArray(l.tagName.toLowerCase(),e))return}else if("*"!==e&&l.tagName.toLowerCase()!==e)return;n.push(a.inline.setAttr(l,i,o,r))}),n},replaceClass:function(e,i){return t(this.inline.getInlines(i)).removeAttr("class").addClass(e)[0]},toggleClass:function(e,i){return t(this.inline.getInlines(i)).toggleClass(e)[0]},addClass:function(e,i){return t(this.inline.getInlines(i)).addClass(e)[0]},removeClass:function(e,i){return t(this.inline.getInlines(i)).removeClass(e)[0]},removeAllClass:function(e){return t(this.inline.getInlines(e)).removeAttr("class")[0]},replaceAttr:function(e,i,o){return e=this.inline.removeAttr(i,this.inline.getInlines(e)),t(e).attr(i,o)[0]},toggleAttr:function(e,i,o){o=this.inline.getInlines(o);var r=this,s=[];return t.each(o,function(o,n){var a=t(n);a.attr(e)?s.push(r.inline.removeAttr(e,n)):s.push(r.inline.addAttr(e,i,n))}),s},addAttr:function(e,i,o){return t(this.inline.getInlines(o)).attr(e,i)[0]},removeAttr:function(e,i){return t(this.inline.getInlines(i)).removeAttr(e)[0]},removeAllAttr:function(e){e=this.inline.getInlines(e);var i=[];return t.each(e,function(e,o){"undefined"==typeof o.attributes&&i.push(o);for(var r=t(o),s=o.attributes.length,n=0;s>n;n++)r.removeAttr(o.attributes[n].name);i.push(r[0])}),i},removeFormat:function(){document.execCommand("removeFormat")}}},insert:function(){return{set:function(t){this.placeholder.hide(),this.code.set(t),this.focus.end(),this.placeholder.enable()},html:function(e,i){this.placeholder.hide(),this.core.editor().focus();var o=this.selection.block(),r=this.selection.inline();"undefined"==typeof i&&(i=this.clean.getCurrentType(e,!0),e=this.clean.onPaste(e,i,!0)),e=t.parseHTML(e);var s=this.selection.get(),n=this.selection.range(s);if(n.deleteContents(),this.selection.update(s,n),i.lists){var a=t(e);if(0!==a.length&&("UL"===a[0].tagName||"OL"===a[0].tagName))return void this.insert.appendLists(o,a)}if(i.blocks&&o)if(this.utils.isSelectAll())this.core.editor().html(e),this.focus.end();else{var l=this.utils.breakBlockTag();l===!1?this.insert.placeHtml(e):(console.log(t(e).last()),e=t(e).append(this.marker.get()),"start"===l.type?l.$block.before(e):l.$block.after(e),this.selection.restore(),this.core.editor().find("p").each(function(){""===t.trim(this.innerHTML)&&t(this).remove()}))}else{if(r){var c=t("<div/>").html(e);c.find(r.tagName.toLowerCase()).each(function(){t(this).contents().unwrap()}),e=c.html()}if(this.utils.isSelectAll()){var d=t(this.opts.emptyHtml);this.core.editor().html("").append(d),d.html(e),this.caret.end(d)}else this.insert.placeHtml(e)}this.utils.disableSelectAll(),this.linkify.format(),i.pre&&this.clean.cleanPre()},text:function(e){e=e.toString(),e=t.trim(e);var i=document.createElement("div");if(i.innerHTML=e,e=i.textContent||i.innerText,"undefined"!=typeof e){this.placeholder.hide(),this.core.editor().focus();var o=this.selection.blocks();if(e=e.replace(/\n/g," "),this.utils.isSelectAll()){var r=t(this.opts.emptyHtml);this.core.editor().html("").append(r),r.html(e),this.caret.end(r)}else{var s=this.selection.get(),n=document.createTextNode(e);if(s.getRangeAt&&s.rangeCount){var a=s.getRangeAt(0);a.deleteContents(),a.insertNode(n),a.setStartAfter(n),a.collapse(!0),this.selection.update(s,a)}o.length>1&&(t(n).wrap("<p>"),this.caret.after(n))}this.utils.disableSelectAll(),this.linkify.format(),this.clean.normalizeCurrentHeading()}},raw:function(t){this.placeholder.hide(),this.core.editor().focus();var e=this.selection.get(),i=this.selection.range(e);i.deleteContents();var o=document.createElement("div");o.innerHTML=t;for(var r,s,n=document.createDocumentFragment();r=o.firstChild;)s=n.appendChild(r);i.insertNode(n),s&&(i=i.cloneRange(),i.setStartAfter(s),i.collapse(!0),e.removeAllRanges(),e.addRange(i))},node:function(e,i){this.placeholder.hide(),"undefined"!=typeof this.start&&this.core.editor().focus(),e=e[0]||e;var o=this.selection.block(),r=this.utils.isBlockTag(e.tagName);if(this.utils.isSelectAll())r?this.core.editor().html(e):this.core.editor().html(t("<p>").html(e)),this.code.sync();else if(r&&o){var s=this.utils.breakBlockTag();s===!1?this.insert.placeNode(e,i):("start"===s.type?s.$block.before(e):s.$block.after(e),this.core.editor().find("p:empty").remove())}else this.insert.placeNode(e,i);return this.utils.disableSelectAll(),this.caret.end(e),e},appendLists:function(e,i){var o,r=t(e),s=this.utils.isEmpty(e.innerHTML);if(s||this.utils.isEndOfElement(e))o=r,i.find("li").each(function(){o.after(this),o=t(this)}),s&&r.remove();else if(this.utils.isStartOfElement(e))i.find("li").each(function(){r.before(this),o=t(this)});else{var n=this.selection.extractEndOfNode(e);r.after(t("<li>").append(n)),r.append(i),o=i}this.marker.remove(),o&&this.caret.end(o),this.linkify.format()},placeHtml:function(e){var i=document.createElement("span");i.id="redactor-insert-marker",i=this.insert.node(i),t(i).before(e),this.selection.restore(),this.caret.after(i),t(i).remove()},placeNode:function(t,e){var i=this.selection.get(),o=this.selection.range(i);e!==!1&&o.deleteContents(),o.insertNode(t),o.collapse(!1),this.selection.update(i,o)},nodeToPoint:function(e,i){if(this.placeholder.hide(),i=i[0]||i,this.utils.isEmpty())return i=this.utils.isBlock(i)?i:t("<p />").append(i),this.core.editor().html(i),i;var o,r=e.clientX,s=e.clientY;if(document.caretPositionFromPoint){var n=document.caretPositionFromPoint(r,s),a=document.getSelection();o=a.getRangeAt(0),o.setStart(n.offsetNode,n.offset),o.collapse(!0),o.insertNode(i)}else if(document.caretRangeFromPoint)o=document.caretRangeFromPoint(r,s),o.insertNode(i);else if("undefined"!=typeof document.body.createTextRange){o=document.body.createTextRange(),o.moveToPoint(r,s);var l=o.duplicate();l.moveToPoint(r,s),o.setEndPoint("EndToEnd",l),o.select()}return i},nodeToCaretPositionFromPoint:function(t,e){this.insert.nodeToPoint(t,e)},marker:function(){this.marker.insert()}}},keydown:function(){return{init:function(e){if(!this.rtePaste){var i=e.which,o=i>=37&&40>=i;this.keydown.ctrl=e.ctrlKey||e.metaKey,this.keydown.parent=this.selection.parent(),this.keydown.current=this.selection.current(),this.keydown.block=this.selection.block(),this.keydown.pre=this.utils.isTag(this.keydown.current,"pre"),this.keydown.blockquote=this.utils.isTag(this.keydown.current,"blockquote"),this.keydown.figcaption=this.utils.isTag(this.keydown.current,"figcaption"),this.keydown.figure=this.utils.isTag(this.keydown.current,"figure");var r=this.core.callback("keydown",e);if(r===!1)return e.preventDefault(),!1;if(this.shortcuts.init(e,i),this.keydown.checkEvents(o,i),this.keydown.setupBuffer(e,i),this.utils.isSelectAll()&&(i===this.keyCode.ENTER||i===this.keyCode.BACKSPACE||i===this.keyCode.DELETE))return e.preventDefault(),void this.code.set(this.opts.emptyHtml);if(this.keydown.addArrowsEvent(o),this.keydown.setupSelectAll(e,i),!this.opts.enterKey&&i===this.keyCode.ENTER){e.preventDefault();var s=this.selection.get(),n=this.selection.range(s);return void(n.collapsed||n.deleteContents())}if(this.opts.enterKey&&i===this.keyCode.DOWN&&this.keydown.onArrowDown(),this.opts.enterKey&&i===this.keyCode.UP&&this.keydown.onArrowUp(),("textarea"===this.opts.type||"div"===this.opts.type)&&this.keydown.current&&3===this.keydown.current.nodeType&&t(this.keydown.parent).hasClass("redactor-in")&&this.keydown.wrapToParagraph(),i===this.keyCode.SPACE&&(e.ctrlKey||e.shiftKey))return e.preventDefault(),this.keydown.onShiftSpace();if(i===this.keyCode.ENTER&&(e.ctrlKey||e.shiftKey))return e.preventDefault(),this.keydown.onShiftEnter(e);if(i===this.keyCode.ENTER&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey)return this.keydown.onEnter(e);if(i===this.keyCode.TAB||e.metaKey&&221===i||e.metaKey&&219===i)return this.keydown.onTab(e,i);if(i!==this.keyCode.BACKSPACE&&i!==this.keyCode.DELETE||this.keydown.onBackspaceAndDeleteBefore(),i===this.keyCode.DELETE){var a=t(this.keydown.block).next();if(this.utils.isEndOfElement(this.keydown.block)&&0!==a.length&&"FIGURE"===a[0].tagName)return a.remove(),!1;var l=this.keydown.block&&"LI"===this.keydown.block.tagName?this.keydown.block:!1;if(l){var c=t(this.keydown.block).parents("ul, ol").last(),d=c.next();if(this.utils.isRedactorParent(c)&&this.utils.isEndOfElement(c)&&0!==d.length&&("UL"===d[0].tagName||"OL"===d[0].tagName))return e.preventDefault(),c.append(d.contents()),d.remove(),!1}if(this.utils.isEndOfElement(this.keydown.block)&&0!==a.length&&"PRE"===a[0].tagName)return t(this.keydown.block).append(a.text()),a.remove(),!1}if(i===this.keyCode.DELETE&&0!==t("#redactor-image-box").length&&this.image.remove(),i===this.keyCode.BACKSPACE){if(this.detect.isFirefox()&&this.line.removeOnBackspace(e),this.list.combineAfterAndBefore(this.keydown.block))return void e.preventDefault();var h=this.selection.block();if(h&&"LI"===h.tagName&&this.utils.isCollapsed()&&this.utils.isStartOfElement())return this.indent.decrease(),void e.preventDefault();this.keydown.removeInvisibleSpace(),this.keydown.removeEmptyListInTable(e)}i!==this.keyCode.BACKSPACE&&i!==this.keyCode.DELETE||this.keydown.onBackspaceAndDeleteAfter(e)}},onShiftSpace:function(){return this.buffer.set(),this.insert.raw("&nbsp;"),!1},onShiftEnter:function(t){return this.buffer.set(),this.keydown.pre?this.keydown.insertNewLine(t):this.insert.raw("<br>")},onBackspaceAndDeleteBefore:function(){this.utils.saveScroll()},onBackspaceAndDeleteAfter:function(e){setTimeout(t.proxy(function(){this.code.syncFire=!1,this.keydown.removeEmptyLists(),this.core.editor().find("*[style]").not("img, #redactor-image-box, #redactor-image-editter").removeAttr("style"),this.keydown.formatEmpty(e),this.code.syncFire=!0},this),1)},onEnter:function(e){var i=this.core.callback("enter",e);if(i===!1)return e.preventDefault(),!1;if(this.keydown.blockquote&&this.keydown.exitFromBlockquote(e)===!0)return!1;if(this.keydown.pre)return this.keydown.insertNewLine(e);if(this.keydown.blockquote||this.keydown.figcaption)return this.keydown.insertBreakLine(e);if(this.keydown.figure)setTimeout(t.proxy(function(){this.keydown.replaceToParagraph("FIGURE")},this),1);else if(this.keydown.block){if(setTimeout(t.proxy(function(){this.keydown.replaceToParagraph("DIV")},this),1),"LI"===this.keydown.block.tagName){var o=this.selection.current(),r=t(o).closest("li",this.$editor[0]),s=r.parents("ul,ol",this.$editor[0]).last();if(0!==r.length&&this.utils.isEmpty(r.html())&&0===s.next().length&&this.utils.isEmpty(s.find("li").last().html())){s.find("li").last().remove();var n=t(this.opts.emptyHtml);return s.after(n),this.caret.start(n),!1}}}else if(!this.keydown.block)return this.keydown.insertParagraph(e);return this.detect.isFirefox()&&this.utils.isInline(this.keydown.parent)?void this.keydown.insertBreakLine(e):void setTimeout(t.proxy(function(){var e=this.selection.inline();if(e&&this.utils.isEmpty(e.innerHTML)){var i=this.selection.block();t(e).remove();var o=document.createRange();o.setStart(i,0);var r=document.createTextNode("​");o.insertNode(r),o.setStartAfter(r),o.collapse(!0);var s=window.getSelection();s.removeAllRanges(),s.addRange(o)}},this),1)},checkEvents:function(t,e){t||"click"!==this.core.getEvent()&&"arrow"!==this.core.getEvent()||(this.core.addEvent(!1),this.keydown.checkKeyEvents(e)&&this.buffer.set())},checkKeyEvents:function(e){var i=this.keyCode,o=[i.BACKSPACE,i.DELETE,i.ENTER,i.ESC,i.TAB,i.CTRL,i.META,i.ALT,i.SHIFT];return-1===t.inArray(e,o)},addArrowsEvent:function(t){return t?"click"===this.core.getEvent()||"arrow"===this.core.getEvent()?void this.core.addEvent(!1):void this.core.addEvent("arrow"):void 0},setupBuffer:function(t,e){return this.keydown.ctrl&&90===e&&!t.shiftKey&&!t.altKey&&this.opts.buffer.length?(t.preventDefault(),void this.buffer.undo()):this.keydown.ctrl&&90===e&&t.shiftKey&&!t.altKey&&0!==this.opts.rebuffer.length?(t.preventDefault(),void this.buffer.redo()):void(this.keydown.ctrl||e!==this.keyCode.SPACE&&e!==this.keyCode.BACKSPACE&&e!==this.keyCode.DELETE&&(e!==this.keyCode.ENTER||t.ctrlKey||t.shiftKey)||this.buffer.set())},exitFromBlockquote:function(e){if(this.utils.isEndOfElement(this.keydown.blockquote)){var i=this.clean.removeSpacesHard(t(this.keydown.blockquote).html());if(-1!==i.search(/(<br\s?\/?>){3}$/i)){e.preventDefault();var o=t(this.keydown.blockquote).children().last().prev();o.prev().filter("br").remove(),o.filter("br").remove(),t(this.keydown.blockquote).children().last().filter("br").remove(),t(this.keydown.blockquote).children().last().filter("span").remove();var r=t(this.opts.emptyHtml);return t(this.keydown.blockquote).after(r),this.caret.start(r),!0}}},onArrowDown:function(){for(var t=[this.keydown.blockquote,this.keydown.pre,this.keydown.figcaption],e=0;e<t.length;e++)if(t[e])return this.keydown.insertAfterLastElement(t[e]),!1},onArrowUp:function(){for(var t=[this.keydown.blockquote,this.keydown.pre,this.keydown.figcaption],e=0;e<t.length;e++)if(t[e])return this.keydown.insertBeforeFirstElement(t[e]),!1},insertAfterLastElement:function(e){if(this.utils.isEndOfElement(e)){var i=this.core.editor().contents().last(),o="FIGCAPTION"===e.tagName?t(this.keydown.block).parent().next():t(this.keydown.block).next();if(0===o.length){if(0===i.length&&i[0]!==e)return void this.caret.start(i);var r=t(this.opts.emptyHtml);"FIGCAPTION"===e.tagName?t(e).parent().after(r):t(e).after(r),this.caret.start(r)}}},insertBeforeFirstElement:function(e){if(this.utils.isStartOfElement()&&!(this.core.editor().contents().length>1&&this.core.editor().contents().first()[0]!==e)){var i=t(this.opts.emptyHtml);t(e).before(i),this.caret.start(i)}},onTab:function(t,e){if(!this.opts.tabKey)return!0;var i=this.keydown.block&&"LI"===this.keydown.block.tagName;if(this.utils.isEmpty(this.code.get())||!i&&!this.keydown.pre&&this.opts.tabAsSpaces===!1)return!0;t.preventDefault(),this.buffer.set();var o,r=i&&this.utils.isStartOfElement(this.keydown.block);return this.keydown.pre&&!t.shiftKey?(o=this.opts.preSpaces?document.createTextNode(Array(this.opts.preSpaces+1).join(" ")):document.createTextNode("   "),this.insert.node(o)):this.opts.tabAsSpaces===!1||r?t.metaKey&&219===e?this.indent.decrease():t.metaKey&&221===e?this.indent.increase():t.shiftKey?this.indent.decrease():this.indent.increase():(o=document.createTextNode(Array(this.opts.tabAsSpaces+1).join(" ")),this.insert.node(o)),!1},setupSelectAll:function(t,e){this.keydown.ctrl&&65===e?this.utils.enableSelectAll():e===this.keyCode.LEFT_WIN||this.keydown.ctrl||this.utils.disableSelectAll()},insertNewLine:function(t){t.preventDefault();var e=document.createTextNode("\n"),i=this.selection.get(),o=this.selection.range(i);return o.deleteContents(),o.insertNode(e),this.caret.after(e),!1},insertParagraph:function(t){t.preventDefault();var e=document.createElement("p");e.innerHTML=this.opts.invisibleSpace;var i=this.selection.get(),o=this.selection.range(i);return o.deleteContents(),o.insertNode(e),this.caret.start(e),!1},insertBreakLine:function(t){return this.keydown.insertBreakLineProcessing(t)},insertDblBreakLine:function(t){return this.keydown.insertBreakLineProcessing(t,!0)},insertBreakLineProcessing:function(t,e){t.stopPropagation();var i=document.createElement("br");if(this.insert.node(i),e===!0){var o=document.createElement("br");this.insert.node(o)}return!1},wrapToParagraph:function(){var e=t(this.keydown.current),i=t("<p>").append(e.clone());e.replaceWith(i);var o=t(i).next();"undefined"!=typeof o[0]&&"BR"===o[0].tagName&&o.remove(),this.caret.end(i)},replaceToParagraph:function(e){var i=this.selection.block(),o=t(i).prev(),r=i.innerHTML.replace(/<br\s?\/?>/gi,"");if(i.tagName===e&&this.utils.isEmpty(r)&&!t(i).hasClass("redactor-in")){var s=document.createElement("p");return t(i).replaceWith(s),this.keydown.setCaretToParagraph(s),!1}if("P"===i.tagName)return t(i).removeAttr("class").removeAttr("style"),this.detect.isIe()&&this.utils.isEmpty(r)&&this.utils.isInline(this.keydown.parent)&&t(i).on("input",t.proxy(function(){var e=this.selection.parent();if(this.utils.isInline(e)){var o=t(e).html();t(i).html(o),this.caret.end(i)}t(i).off("keyup")},this)),!1;if(o.hasClass(this.opts.videoContainerClass)){o.removeAttr("class");var s=document.createElement("p");return o.replaceWith(s),this.keydown.setCaretToParagraph(s),!1}},setCaretToParagraph:function(t){var e=document.createRange();e.setStart(t,0);var i=document.createTextNode("​");e.insertNode(i),e.setStartAfter(i),e.collapse(!0);var o=window.getSelection();o.removeAllRanges(),o.addRange(e)},removeInvisibleSpace:function(){var e=t(this.keydown.current);0===e.text().search(/^\u200B$/g)&&e.remove()},removeEmptyListInTable:function(e){var i=t(this.keydown.current),o=t(this.keydown.parent),r=i.closest("td",this.$editor[0]);if(0!==r.length&&i.closest("li",this.$editor[0])&&1===o.children("li").length){if(!this.utils.isEmpty(i.text()))return;e.preventDefault(),i.remove(),o.remove(),this.caret.start(r)}},removeEmptyLists:function(){var e=function(){var e=t.trim(this.innerHTML).replace(/\/t\/n/g,"");""===e&&t(this).remove()};this.core.editor().find("li").each(e),this.core.editor().find("ul, ol").each(e)},formatEmpty:function(e){var i=t.trim(this.core.editor().html());if(this.utils.isEmpty(i))return e.preventDefault(),"inline"===this.opts.type||"pre"===this.opts.type?(this.core.editor().html(this.marker.html()),this.selection.restore()):(this.core.editor().html(this.opts.emptyHtml),this.focus.start()),!1}}},keyup:function(){return{init:function(e){if(!this.rtePaste){var i=e.which;this.keyup.block=this.selection.block(),this.keyup.current=this.selection.current(),this.keyup.parent=this.selection.parent();var o=this.core.callback("keyup",e);if(o===!1)return e.preventDefault(),!1;if(i===this.keyCode.ENTER&&this.keyup.block&&"FIGURE"===this.keyup.block.tagName){var r=t(this.keyup.block).prev();if(0!==r.length&&"FIGURE"===r[0].tagName){var s=this.utils.replaceToTag(r,"p");return void this.caret.start(s)}}if(i===this.keyCode.BACKSPACE||i===this.keyCode.DELETE){if(this.utils.isSelectAll())return void this.focus.start();if(this.keyup.block&&this.keydown.block&&"FIGURE"===this.keyup.block.tagName&&this.utils.isStartOfElement(this.keydown.block)){e.preventDefault(),this.selection.save(),t(this.keyup.block).find("figcaption").remove(),t(this.keyup.block).find("img").first().remove(),this.utils.replaceToTag(this.keyup.block,"p");var n=this.marker.find();return t("html, body").animate({scrollTop:n.position().top+20},500),void this.selection.restore()}if(this.keyup.block&&"P"===this.keyup.block.tagName){var a=t(this.keyup.block).find("img").length,l=t(this.keyup.block).text().replace(/\u200B/g,"");""===l&&0!==a&&this.utils.replaceToTag(this.keyup.block,"figure")}this.keyup.block&&"FIGURE"===this.keyup.block.tagName&&0===t(this.keyup.block).find("img").length&&(this.selection.save(),this.utils.replaceToTag(this.keyup.block,"p"),this.selection.restore())}this.linkify.isKey(i)&&this.linkify.format()}}}},lang:function(){return{load:function(){this.opts.curLang=this.opts.langs[this.opts.lang]},get:function(t){return"undefined"!=typeof this.opts.curLang[t]?this.opts.curLang[t]:""}}},line:function(){return{insert:function(){this.buffer.set(),this.insert.html(this.line.getLineHtml());var t=this.core.editor().find("#redactor-hr-tmp-id");return t.removeAttr("id"),this.core.callback("insertedLine",t),t},getLineHtml:function(){var t='<hr id="redactor-hr-tmp-id" />';return!this.detect.isFirefox()&&this.utils.isEmpty()&&(t+="<p>"+this.opts.emptyHtml+"</p>"),t},removeOnBackspace:function(e){if(this.utils.isCollapsed()){var i=t(this.selection.block());if(0!==i.length&&this.utils.isStartOfElement(i)){var o=i.prev();o&&"HR"===o[0].tagName&&(e.preventDefault(),o.remove())}}}}},link:function(){return{get:function(){return t(this.selection.inlines("a"))},is:function(){var e=this.selection.nodes(),i=t(this.selection.current()).closest("a",this.core.editor()[0]);return 0===i.length||e.length>1?!1:i},unlink:function(t){"undefined"!=typeof t&&t.preventDefault&&t.preventDefault(),this.buffer.set();var e=this.selection.inlines("a");if(0!==e.length){var i=this.link.replaceLinksToText(e);this.observe.closeAllTooltip(),this.core.callback("deletedLink",i)}},insert:function(e,i){var o=this.link.is();if(i!==!0&&(e=this.link.buildLinkFromObject(o,e),e===!1))return!1;if(this.buffer.set(),o===!1){o=t("<a />"),o=this.link.update(o,e),o=t(this.insert.node(o));var r=o.parent();this.utils.isRedactorParent(r)===!1&&o.wrap("<p>"),r.hasClass("redactor-unlink")&&r.replaceWith(function(){return t(this).contents()}),this.caret.after(o),this.core.callback("insertedLink",o)}else o=this.link.update(o,e),this.caret.after(o)},update:function(t,e){return t.text(e.text),t.attr("href",e.url),this.link.target(t,e.target),t},target:function(t,e){return e?t.attr("target","_blank"):t.removeAttr("target")},show:function(e){"undefined"!=typeof e&&e.preventDefault&&e.preventDefault(),this.observe.closeAllTooltip();var i=this.link.is();this.link.buildModal(i);var o=this.link.buildLinkFromElement(i);o.url=this.link.removeSelfHostFromUrl(o.url),this.opts.linkNewTab&&!i&&(o.target=!0),this.link.setModalValues(o),this.modal.show(),this.detect.isDesktop()&&t("#redactor-link-url").focus()},setModalValues:function(e){t("#redactor-link-blank").prop("checked",e.target),t("#redactor-link-url").val(e.url),t("#redactor-link-url-text").val(e.text)},buildModal:function(e){this.modal.load("link",this.lang.get(e===!1?"link-insert":"link-edit"),600);var i=this.modal.getActionButton();i.text(this.lang.get(e===!1?"insert":"save")).on("click",t.proxy(this.link.callback,this))},callback:function(){var t=this.link.buildLinkFromModal();return t===!1?!1:(this.modal.close(),void this.link.insert(t,!0))},cleanUrl:function(e){return"undefined"==typeof e?"":t.trim(e.replace(/[^\W\w\D\d+&\'@#\/%?=~_|!:,.;\(\)]/gi,""))},cleanText:function(e){return"undefined"==typeof e?"":t.trim(e.replace(/(<([^>]+)>)/gi,""))},getText:function(t){return""===t.text&&""!==t.url?this.link.truncateUrl(t.url.replace(/<|>/g,"")):t.text},isUrl:function(t){var e="((xn--)?[\\W\\w\\D\\d]+(-[\\W\\w\\D\\d]+)*\\.)+[\\W\\w]{2,}",i=new RegExp("^(http|ftp|https)://"+e,"i"),o=new RegExp("^"+e,"i"),r=new RegExp(".(html|php)$","i"),s=new RegExp("^/","i"),n=new RegExp("^tel:(.*?)","i");return-1===t.search(i)&&-1!==t.search(o)&&-1===t.search(r)&&(t="http://"+t),-1!==t.search(i)||-1!==t.search(r)||-1!==t.search(s)||-1!==t.search(n)?t:!1},isMailto:function(t){return-1!==t.search("@")&&/(http|ftp|https):\/\//i.test(t)===!1},isEmpty:function(t){return""===t.url||""===t.text&&""===t.url},truncateUrl:function(t){return t.length>this.opts.linkSize?t.substring(0,this.opts.linkSize)+"...":t},parse:function(t){return this.link.isMailto(t.url)?t.url="mailto:"+t.url.replace("mailto:",""):0!==t.url.search("#")&&(t.url=this.link.isUrl(t.url)),this.link.isEmpty(t)||t.url===!1?!1:t},buildLinkFromModal:function(){var e={};return e.url=this.link.cleanUrl(t("#redactor-link-url").val()),e.text=this.link.cleanText(t("#redactor-link-url-text").val()),e.text=this.link.getText(e),e.target=!!t("#redactor-link-blank").prop("checked"),this.link.parse(e)},buildLinkFromObject:function(t,e){return e.url=this.link.cleanUrl(e.url),e.text="undefined"==typeof e.text&&this.selection.is()?this.selection.text():this.link.cleanText(e.text),e.text=this.link.getText(e),e.target=t===!1?e.target:this.link.buildTarget(t),this.link.parse(e)},buildLinkFromElement:function(t){var e={url:"",text:this.selection.is()?this.selection.text():"",target:!1};return t!==!1&&(e.url=t.attr("href"),e.text=t.text(),e.target=this.link.buildTarget(t)),e},buildTarget:function(t){return"undefined"!=typeof t.attr("target")&&"_blank"===t.attr("target")},removeSelfHostFromUrl:function(t){var e=self.location.href.replace("#","").replace(/\/$/i,"");return t.replace(/^\/\#/,"#").replace(e,"").replace("mailto:","")},replaceLinksToText:function(e){var i,o=t.each(e,function(e,o){var r=t(o),s=t('<span class="redactor-unlink" />').append(r.contents());return r.replaceWith(s),0===e&&(i=s),r});return 1===e.length&&this.selection.isCollapsed()&&this.caret.after(i),o}}},linkify:function(){return{isKey:function(t){return t===this.keyCode.ENTER||t===this.keyCode.SPACE},isLink:function(t){return t.nodeValue.match(this.opts.regexps.linkyoutube)||t.nodeValue.match(this.opts.regexps.linkvimeo)||t.nodeValue.match(this.opts.regexps.linkimage)||t.nodeValue.match(this.opts.regexps.url)},isFiltered:function(e,i){return 3===i.nodeType&&""!==t.trim(i.nodeValue)&&!t(i).parent().is("pre")&&this.linkify.isLink(i)},handler:function(e,i){var o=t(i),r=o.text(),s=r;s=s.match(this.opts.regexps.linkyoutube)||s.match(this.opts.regexps.linkvimeo)?this.linkify.convertVideoLinks(s):s.match(this.opts.regexps.linkimage)?this.linkify.convertImages(s):this.linkify.convertLinks(s),o.before(r.replace(r,s)).remove()},format:function(){if(this.opts.linkify&&!this.utils.isCurrentOrParent("pre")){this.core.editor().find(":not(iframe,img,a,pre,.redactor-unlink)").addBack().contents().filter(t.proxy(this.linkify.isFiltered,this)).each(t.proxy(this.linkify.handler,this));var e=this.core.editor().find(".redactor-linkify-object").each(t.proxy(function(e,i){var o=t(i);return o.removeClass("redactor-linkify-object"),""===o.attr("class")&&o.removeAttr("class"),"DIV"===i.tagName?this.linkify.breakBlockTag(o,"video"):"IMG"===i.tagName?this.linkify.breakBlockTag(o,"image"):"A"===i.tagName&&this.core.callback("insertedLink",o),
+o},this));setTimeout(t.proxy(function(){this.code.sync(),this.core.callback("linkify",e)},this),100)}},breakBlockTag:function(e,i){var o=this.utils.breakBlockTag();if(o!==!1){var r=e;"image"===i&&(r=t("<figure />").append(e)),"start"===o.type?o.$block.before(r):o.$block.after(r),"image"===i&&this.caret.after(r)}},convertVideoLinks:function(t){var e='<div class="'+this.opts.videoContainerClass+' redactor-linkify-object"><iframe class="redactor-linkify-object" width="500" height="281" src="',i='" frameborder="0" allowfullscreen></iframe></div>';return t.match(this.opts.regexps.linkyoutube)&&(t=t.replace(this.opts.regexps.linkyoutube,e+"//www.youtube.com/embed/$1"+i)),t.match(this.opts.regexps.linkvimeo)&&(t=t.replace(this.opts.regexps.linkvimeo,e+"//player.vimeo.com/video/$2"+i)),t},convertImages:function(t){var e=t.match(this.opts.regexps.linkimage);return e?t.replace(t,'<img src="'+e+'" class="redactor-linkify-object" />'):t},convertLinks:function(e){var i=e.match(this.opts.regexps.url);if(!i)return e;i=t.grep(i,function(e,o){return t.inArray(e,i)===o});for(var o=i.length,r=0;o>r;r++){var s=i[r],n=s,a=null!==s.match(/(https?|ftp):\/\//i)?"":"http://";n.length>this.opts.linkSize&&(n=n.substring(0,this.opts.linkSize)+"..."),-1===n.search("%")&&(n=decodeURIComponent(n));var l="\\b";-1!==t.inArray(s.slice(-1),["/","&","="])&&(l="");var c=new RegExp("("+s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+l+")","g");e=e.replace(c,'<a href="'+a+t.trim(s)+'" class="redactor-linkify-object">'+t.trim(n)+"</a>")}return e}}},list:function(){return{toggle:function(e){if(!this.utils.inBlocks(["table","td","th","tr"])){var i="orderedlist"===e||"ol"===e?"OL":"UL";e="OL"===i?"orderedlist":"unorderedlist";var o=t(this.selection.current()).parentsUntil(".redactor-in","ul, ol").first();if(this.placeholder.hide(),this.buffer.set(),0!==o.length&&o[0].tagName===i&&this.utils.isRedactorParent(o))return this.selection.save(),o.find("ul, ol").each(function(){var e=t(this).closest("li");t(this).find("li").each(function(){t(e).after(this)})}),o.find("ul, ol").remove(),o.find("li").each(function(){return t(this).replaceWith(function(){return t("<p />").append(t(this).contents())})}),o.replaceWith(function(){return t(this).contents()}),void this.selection.restore();this.selection.save(),0!==o.length&&o[0].tagName!==i?o.each(t.proxy(function(t,e){this.utils.replaceToTag(e,i)},this)):document.execCommand("insert"+e),this.selection.restore();var r=this.list.get();if(!r)return void(this.selection.block()||document.execCommand("formatblock",!1,"p"));r.find("span").replaceWith(function(){return t(this).contents()}),r.find(this.opts.inlineTags.join(",")).each(function(){t(this).removeAttr("style")});var s=r.parent();this.utils.isRedactorParent(s)&&"LI"!==s[0].tagName&&this.utils.isBlock(s)&&(this.selection.save(),s.replaceWith(s.contents()),this.selection.restore())}},get:function(){var e=this.selection.current(),i=t(e).closest("ul, ol",this.core.editor()[0]);return 0===i.length?!1:i},combineAfterAndBefore:function(e){var i=t(e).prev(),o=t(e).next(),r=e&&"P"===e.tagName&&("<br>"===e.innerHTML||""===e.innerHTML),s=1===i.closest("ol, ul").length&&1===o.closest("ol, ul").length;return r&&s?(i.children("li").last().append(this.marker.get()),i.append(o.contents()),this.selection.restore(),!0):!1}}},marker:function(){return{get:function(t){t="undefined"==typeof t?1:t;var e=document.createElement("span");return e.id="selection-marker-"+t,e.className="redactor-selection-marker",e.innerHTML=this.opts.invisibleSpace,e},html:function(t){return this.utils.getOuterHtml(this.marker.get(t))},find:function(t){return t="undefined"==typeof t?1:t,this.core.editor().find("span#selection-marker-"+t)},insert:function(){var t=this.selection.get(),e=this.selection.range(t);this.marker.insertNode(e,this.marker.get(1),!0),e&&e.collapsed===!1&&this.marker.insertNode(e,this.marker.get(2),!1)},remove:function(){this.core.editor().find(".redactor-selection-marker").each(this.marker.iterateRemove)},insertNode:function(e,i,o){var r=this.selection.parent();if(null!==e&&0!==t(r).closest(".redactor-in").length){e=e.cloneRange();try{e.collapse(o),e.insertNode(i)}catch(s){this.focus.start()}}},iterateRemove:function(e,i){var o=t(i),r=o.text().replace(/\u200B/g,"");return""===r?o.remove():o.replaceWith(function(){return t(this).contents()})}}},modal:function(){return{callbacks:{},templates:function(){this.opts.modal={"image-edit":String()+'<div class="redactor-modal-tab redactor-group" data-title="General"><div id="redactor-image-preview" class="redactor-modal-tab-side"></div><div class="redactor-modal-tab-area"><section><label>'+this.lang.get("title")+'</label><input type="text" id="redactor-image-title" /></section><section><label>'+this.lang.get("caption")+'</label><input type="text" id="redactor-image-caption" aria-label="'+this.lang.get("caption")+'" /></section><section><label>'+this.lang.get("link")+'</label><input type="text" id="redactor-image-link" aria-label="'+this.lang.get("link")+'" /></section><section><label class="checkbox"><input type="checkbox" id="redactor-image-link-blank" aria-label="'+this.lang.get("link-in-new-tab")+'"> '+this.lang.get("link-in-new-tab")+'</label></section><section><button id="redactor-modal-button-action">'+this.lang.get("insert")+'</button><button id="redactor-modal-button-cancel">'+this.lang.get("cancel")+'</button><button id="redactor-modal-button-delete" class="redactor-modal-button-offset">'+this.lang.get("delete")+"</button></section></div></div>",image:String()+'<div class="redactor-modal-tab" data-title="Upload"><section><div id="redactor-modal-image-droparea"></div></section></div>',file:String()+'<div class="redactor-modal-tab" data-title="Upload"><section><label>'+this.lang.get("filename")+' <span class="desc">('+this.lang.get("optional")+')</span></label><input type="text" id="redactor-filename" aria-label="'+this.lang.get("filename")+'" /><br><br></section><section><div id="redactor-modal-file-upload"></div></section></div>',link:String()+'<div class="redactor-modal-tab" data-title="General"><section><label>URL</label><input type="url" id="redactor-link-url" aria-label="URL" /></section><section><label>'+this.lang.get("text")+'</label><input type="text" id="redactor-link-url-text" aria-label="'+this.lang.get("text")+'" /></section><section><label class="checkbox"><input type="checkbox" id="redactor-link-blank"> '+this.lang.get("link-in-new-tab")+'</label></section><section><button id="redactor-modal-button-action">'+this.lang.get("insert")+'</button><button id="redactor-modal-button-cancel">'+this.lang.get("cancel")+"</button></section></div>"},t.extend(this.opts,this.opts.modal)},addCallback:function(t,e){this.modal.callbacks[t]=e},addTemplate:function(t,e){this.opts.modal[t]=e},getTemplate:function(t){return this.opts.modal[t]},getModal:function(){return this.$modalBody},getActionButton:function(){return this.$modalBody.find("#redactor-modal-button-action")},getCancelButton:function(){return this.$modalBody.find("#redactor-modal-button-cancel")},getDeleteButton:function(){return this.$modalBody.find("#redactor-modal-button-delete")},load:function(t,e,i){"undefined"!=typeof this.$modalBox&&this.$modalBox.hasClass("open")||(this.modal.templateName=t,this.modal.width=i,this.modal.build(),this.modal.enableEvents(),this.modal.setTitle(e),this.modal.setDraggable(),this.modal.setContent(),"undefined"!=typeof this.modal.callbacks[t]&&this.modal.callbacks[t].call(this))},show:function(){this.detect.isDesktop()||document.activeElement.blur(),this.selection.save(),this.modal.buildTabber(),this.detect.isMobile()&&(this.modal.width="96%"),setTimeout(t.proxy(this.modal.buildWidth,this),0),t(window).on("resize.redactor-modal",t.proxy(this.modal.buildWidth,this)),this.$modalOverlay.redactorAnimation("fadeIn",{duration:.25}),this.$modalBox.addClass("open").show(),this.$modal.redactorAnimation("fadeIn",{timing:"cubic-bezier(0.175, 0.885, 0.320, 1.105)"},t.proxy(function(){this.utils.saveScroll(),this.utils.disableBodyScroll(),this.core.callback("modalOpened",this.modal.templateName,this.$modal),t(document).off("focusin.modal");var e=this.$modal.find("input[type=text],input[type=url],input[type=email]");e.on("keydown.redactor-modal",t.proxy(this.modal.setEnter,this))},this))},buildWidth:function(){var e=t(window).height(),i=t(window).width(),o="number"==typeof this.modal.width;!o&&this.modal.width.match(/%$/)?this.$modal.css({width:this.modal.width,"margin-bottom":"16px"}):parseInt(this.modal.width)>i?this.$modal.css({width:"96%","margin-bottom":"2%"}):(o&&(this.modal.width+="px"),this.$modal.css({width:this.modal.width,"margin-bottom":"16px"}));var r=this.$modal.outerHeight(),s=e/2-r/2+"px";this.detect.isMobile()?s="2%":r>e&&(s="16px"),this.$modal.css("margin-top",s)},buildTabber:function(){this.modal.tabs=this.$modal.find(".redactor-modal-tab"),this.modal.tabs.length<2||(this.modal.$tabsBox=t('<div id="redactor-modal-tabber" />'),t.each(this.modal.tabs,t.proxy(function(e,i){var o=t('<a href="#" rel="'+e+'" />').text(t(i).attr("data-title"));o.on("click",t.proxy(this.modal.showTab,this)),0===e&&o.addClass("active"),this.modal.$tabsBox.append(o)},this)),this.$modalBody.prepend(this.modal.$tabsBox))},showTab:function(e){e.preventDefault();var i=t(e.target),o=i.attr("rel");return this.modal.tabs.hide(),this.modal.tabs.eq(o).show(),t("#redactor-modal-tabber").find("a").removeClass("active"),i.addClass("active"),!1},setTitle:function(t){this.$modalHeader.html(t)},setContent:function(){this.$modalBody.html(this.modal.getTemplate(this.modal.templateName)),this.modal.getCancelButton().on("mousedown",t.proxy(this.modal.close,this))},setDraggable:function(){"undefined"!=typeof t.fn.draggable&&(this.$modal.draggable({handle:this.$modalHeader}),this.$modalHeader.css("cursor","move"))},setEnter:function(t){13===t.which&&(t.preventDefault(),this.modal.getActionButton().click())},build:function(){this.modal.buildOverlay(),this.$modalBox=t('<div id="redactor-modal-box"/>').hide(),this.$modal=t('<div id="redactor-modal" role="dialog" />'),this.$modalHeader=t('<div id="redactor-modal-header" />'),this.$modalClose=t('<button type="button" id="redactor-modal-close" aria-label="'+this.lang.get("close")+'" />').html("&times;"),this.$modalBody=t('<div id="redactor-modal-body" />'),this.$modal.append(this.$modalHeader),this.$modal.append(this.$modalBody),this.$modal.append(this.$modalClose),this.$modalBox.append(this.$modal),this.$modalBox.appendTo(document.body)},buildOverlay:function(){this.$modalOverlay=t('<div id="redactor-modal-overlay">').hide(),t("body").prepend(this.$modalOverlay)},enableEvents:function(){this.$modalClose.on("mousedown.redactor-modal",t.proxy(this.modal.close,this)),t(document).on("keyup.redactor-modal",t.proxy(this.modal.closeHandler,this)),this.core.editor().on("keyup.redactor-modal",t.proxy(this.modal.closeHandler,this)),this.$modalBox.on("click.redactor-modal",t.proxy(this.modal.close,this))},disableEvents:function(){this.$modalClose.off("mousedown.redactor-modal"),t(document).off("keyup.redactor-modal"),this.core.editor().off("keyup.redactor-modal"),this.$modalBox.off("click§.redactor-modal"),t(window).off("resize.redactor-modal")},closeHandler:function(t){t.which===this.keyCode.ESC&&this.modal.close(!1)},close:function(e){if(e){if("redactor-modal-button-cancel"!==t(e.target).attr("id")&&e.target!==this.$modalClose[0]&&e.target!==this.$modalBox[0])return;e.preventDefault()}this.$modalBox&&(this.selection.restore(),this.modal.disableEvents(),this.utils.enableBodyScroll(),this.utils.restoreScroll(),this.$modalOverlay.redactorAnimation("fadeOut",{duration:.4},t.proxy(function(){this.$modalOverlay.remove()},this)),this.$modal.redactorAnimation("fadeOut",{duration:.3,timing:"cubic-bezier(0.175, 0.885, 0.320, 1.175)"},t.proxy(function(){"undefined"!=typeof this.$modalBox&&(this.$modalBox.remove(),this.$modalBox=void 0),t(document.body).css("overflow",this.modal.bodyOveflow),this.core.callback("modalClosed",this.modal.templateName)},this)))}}},observe:function(){return{load:function(){"undefined"==typeof this.opts.destroyed&&(this.observe.links(),this.observe.images())},isCurrent:function(e,i){return"undefined"==typeof i&&(i=t(this.selection.current())),i.is(e)||i.parents(e).length>0},toolbar:function(){this.observe.buttons(),this.observe.dropdowns()},buttons:function(e,i){var o=this.selection.current(),r=this.selection.parent();return e!==!1?this.button.setInactiveAll():this.button.setInactiveAll(i),e===!1&&"html"!==i?void(-1!==t.inArray(i,this.opts.activeButtons)&&this.button.toggleActive(i)):void(this.utils.isRedactorParent(o)&&(this.utils.isCurrentOrParentHeader()||this.utils.isCurrentOrParent(["table","pre","blockquote","li"])?this.button.disable("horizontalrule"):this.button.enable("horizontalrule"),t.each(this.opts.activeButtonsStates,t.proxy(function(e,i){var s=t(r).closest(e,this.$editor[0]),n=t(o).closest(e,this.$editor[0]);(0===s.length||this.utils.isRedactorParent(s))&&this.utils.isRedactorParent(n)&&(0===s.length&&0===n.closest(e,this.$editor[0]).length||this.button.setActive(i))},this))))},dropdowns:function(){var e=t("<div />").html(this.selection.html()).find("a").length,i=t(this.selection.current()),o=this.utils.isRedactorParent(i);t.each(this.opts.observe.dropdowns,t.proxy(function(t,r){var s=r.observe,n=s.element,a=r.item,l="undefined"!=typeof s["in"]?s["in"]:!1,c="undefined"!=typeof s.out?s.out:!1;i.closest(n).length>0&&o||"a"===n&&0!==e?this.observe.setDropdownProperties(a,l,c):this.observe.setDropdownProperties(a,c,l)},this))},setDropdownProperties:function(t,e,i){i&&"undefined"!=typeof i.attr&&this.observe.setDropdownAttr(t,i.attr,!0),"undefined"!=typeof e.attr&&this.observe.setDropdownAttr(t,e.attr),"undefined"!=typeof e.title&&t.find("span").text(e.title)},setDropdownAttr:function(e,i,o){t.each(i,function(t,i){"class"===t?o?e.removeClass(i):e.addClass(i):o?e.removeAttr(t):e.attr(t,i)})},addDropdown:function(t,e,i){"undefined"!=typeof i.observe&&(i.item=t,this.opts.observe.dropdowns.push(i))},images:function(){this.opts.imageEditable&&(this.core.editor().addClass("redactor-editor-img-edit"),this.core.editor().find("img").each(t.proxy(function(e,i){var o=t(i);o.closest("a",this.$editor[0]).on("click",function(t){t.preventDefault()}),this.image.setEditable(o)},this)))},links:function(){this.opts.linkTooltip&&this.core.editor().find("a").each(t.proxy(function(e,i){var o=t(i);o.data("cached")!==!0&&(o.data("cached",!0),o.on("touchstart.redactor."+this.uuid+" click.redactor."+this.uuid,t.proxy(this.observe.showTooltip,this)))},this))},getTooltipPosition:function(t){return t.offset()},showTooltip:function(e){var i=t(e.target);if("IMG"!==i[0].tagName&&("A"!==i[0].tagName&&(i=i.closest("a",this.$editor[0])),"A"===i[0].tagName)){var o=i,r=this.observe.getTooltipPosition(o),s=t('<span class="redactor-link-tooltip"></span>'),n=o.attr("href");void 0===n&&(n=""),n.length>24&&(n=n.substring(0,24)+"...");var a=t('<a href="'+o.attr("href")+'" target="_blank" />').html(n).addClass("redactor-link-tooltip-action"),l=t('<a href="#" />').html(this.lang.get("edit")).on("click",t.proxy(this.link.show,this)).addClass("redactor-link-tooltip-action"),c=t('<a href="#" />').html(this.lang.get("unlink")).on("click",t.proxy(this.link.unlink,this)).addClass("redactor-link-tooltip-action");s.append(a).append(" | ").append(l).append(" | ").append(c);var d=parseInt(o.css("line-height"),10),h=Math.ceil((e.pageY-r.top)/d),u=r.top+h*d;s.css({top:u+"px",left:r.left+"px"}),t(".redactor-link-tooltip").remove(),t("body").append(s),this.core.editor().on("touchstart.redactor."+this.uuid+" click.redactor."+this.uuid,t.proxy(this.observe.closeTooltip,this)),t(document).on("touchstart.redactor."+this.uuid+" click.redactor."+this.uuid,t.proxy(this.observe.closeTooltip,this))}},closeAllTooltip:function(){t(".redactor-link-tooltip").remove()},closeTooltip:function(e){e=e.originalEvent||e;var i=e.target,o=t(i).closest("a",this.$editor[0]);0!==o.length&&"A"===o[0].tagName&&"A"!==i.tagName||"A"===i.tagName&&this.utils.isRedactorParent(i)||t(i).hasClass("redactor-link-tooltip-action")||(this.observe.closeAllTooltip(),this.core.editor().off("touchstart.redactor."+this.uuid+" click.redactor."+this.uuid,t.proxy(this.observe.closeTooltip,this)),t(document).off("touchstart.redactor."+this.uuid+" click.redactor."+this.uuid,t.proxy(this.observe.closeTooltip,this)))}}},offset:function(){return{get:function(e){var i=this.offset.clone(e);if(i===!1)return 0;var o=document.createElement("div");o.appendChild(i.cloneContents()),o.innerHTML=o.innerHTML.replace(/<img(.*?[^>])>$/gi,"i");var r=t.trim(t(o).text()).replace(/[\t\n\r\n]/g,"").replace(/\u200B/g,"");return r.length},clone:function(t){var e=this.selection.get(),i=this.selection.range(e);if(null===i&&"undefined"==typeof t)return!1;if(t="undefined"==typeof t?this.$editor:t,t===!1)return!1;t=t[0]||t;var o=i.cloneRange();return o.selectNodeContents(t),o.setEnd(i.endContainer,i.endOffset),o},set:function(t,e){e="undefined"==typeof e?t:e,this.focus.is()||this.focus.start();for(var i,o=this.selection.get(),r=this.selection.range(o),s=0,n=document.createTreeWalker(this.$editor[0],NodeFilter.SHOW_TEXT,null,null);null!==(i=n.nextNode());)if(s+=i.nodeValue.length,s>t&&(r.setStart(i,i.nodeValue.length+t-s),t=1/0),s>=e){r.setEnd(i,i.nodeValue.length+e-s);break}r.collapse(!1),this.selection.update(o,r)}}},paragraphize:function(){return{load:function(e){return this.opts.paragraphize===!1||"inline"===this.opts.type||"pre"===this.opts.type?e:""===e||"<p></p>"===e?this.opts.emptyHtml:(e+="\n",this.paragraphize.safes=[],this.paragraphize.z=0,e=e.replace(/(<br\s?\/?>){1,}\n?<\/blockquote>/gi,"</blockquote>"),e=e.replace(/<\/pre>/gi,"</pre>\n\n"),e=this.paragraphize.getSafes(e),e=e.replace("<br>","\n"),e=this.paragraphize.convert(e),e=this.paragraphize.clear(e),e=this.paragraphize.restoreSafes(e),e=e.replace(new RegExp("<br\\s?/?>\n?<("+this.opts.paragraphizeBlocks.join("|")+")(.*?[^>])>","gi"),"<p><br /></p>\n<$1$2>"),t.trim(e))},getSafes:function(e){var i=t("<div />").append(e);return i.find("blockquote p").replaceWith(function(){return t(this).append("<br />").contents()}),i.find(this.opts.paragraphizeBlocks.join(", ")).each(t.proxy(function(e,i){return this.paragraphize.z++,this.paragraphize.safes[this.paragraphize.z]=i.outerHTML,t(i).replaceWith("\n#####replace"+this.paragraphize.z+"#####\n\n")},this)),i.find("span.redactor-selection-marker").each(t.proxy(function(e,i){return this.paragraphize.z++,this.paragraphize.safes[this.paragraphize.z]=i.outerHTML,t(i).replaceWith("n#####replace"+this.paragraphize.z+"#####nn")},this)),i.html()},restoreSafes:function(e){return t.each(this.paragraphize.safes,function(t,i){i="undefined"!=typeof i?i.replace(/\$/g,"&#36;"):i,e=e.replace("#####replace"+t+"#####",i)}),e},convert:function(e){e=e.replace(/\r\n/g,"xparagraphmarkerz"),e=e.replace(/\n/g,"xparagraphmarkerz"),e=e.replace(/\r/g,"xparagraphmarkerz");var i=/\s+/g;e=e.replace(i," "),e=t.trim(e);var o=/xparagraphmarkerzxparagraphmarkerz/gi;e=e.replace(o,"</p><p>");var r=/xparagraphmarkerz/gi;return e=e.replace(r,"<br>"),e="<p>"+e+"</p>",e=e.replace("<p></p>",""),e=e.replace("\r\n\r\n",""),e=e.replace(/<\/p><p>/g,"</p>\r\n\r\n<p>"),e=e.replace(new RegExp("<br\\s?/?></p>","g"),"</p>"),e=e.replace(new RegExp("<p><br\\s?/?>","g"),"<p>"),e=e.replace(new RegExp("<p><br\\s?/?>","g"),"<p>"),e=e.replace(new RegExp("<br\\s?/?></p>","g"),"</p>"),e=e.replace(/<p>&nbsp;<\/p>/gi,""),e=e.replace(/<p>\s?<br>&nbsp;<\/p>/gi,""),e=e.replace(/<p>\s?<br>/gi,"<p>")},clear:function(t){return t=t.replace(/<p>(.*?)#####replace(.*?)#####\s?<\/p>/gi,"<p>$1</p>#####replace$2#####"),t=t.replace(/(<br\s?\/?>){2,}<\/p>/gi,"</p>"),t=t.replace(new RegExp("</blockquote></p>","gi"),"</blockquote>"),t=t.replace(new RegExp("<p></blockquote>","gi"),"</blockquote>"),t=t.replace(new RegExp("<p><blockquote>","gi"),"<blockquote>"),t=t.replace(new RegExp("<blockquote></p>","gi"),"<blockquote>"),t=t.replace(new RegExp("<p><p ","gi"),"<p "),t=t.replace(new RegExp("<p><p>","gi"),"<p>"),t=t.replace(new RegExp("</p></p>","gi"),"</p>"),t=t.replace(new RegExp("<p>\\s?</p>","gi"),""),t=t.replace(new RegExp("\n</p>","gi"),"</p>"),t=t.replace(new RegExp("<p>   ?       ?\n?<p>","gi"),"<p>"),t=t.replace(new RegExp("<p>       *</p>","gi"),"")}}},paste:function(){return{init:function(e){this.rtePaste=!0;var i=!("pre"!==this.opts.type&&!this.utils.isCurrentOrParent("pre"));return!this.paste.pre&&!this.detect.isMobile()&&this.opts.clipboardImageUpload&&this.opts.imageUpload&&this.paste.detectClipboardUpload(e)?void(this.detect.isIe()&&setTimeout(t.proxy(this.paste.clipboardUpload,this),100)):(this.utils.saveScroll(),this.selection.save(),this.paste.createPasteBox(i),t(window).on("scroll.redactor-freeze",t.proxy(function(){t(window).scrollTop(this.saveBodyScroll)},this)),void setTimeout(t.proxy(function(){var e=this.paste.getPasteBoxCode(i);this.buffer.set(),this.selection.restore(),this.utils.restoreScroll();var o=this.clean.getCurrentType(e);e=this.clean.onPaste(e,o);var r=this.core.callback("paste",e);e="undefined"==typeof r?e:r,this.paste.insert(e,o),this.rtePaste=!1,i&&this.clean.cleanPre(),t(window).off("scroll.redactor-freeze")},this),1))},getPasteBoxCode:function(t){var e=t?this.$pasteBox.val():this.$pasteBox.html();return this.$pasteBox.remove(),e},createPasteBox:function(e){var i={position:"fixed",width:"1px",top:0,left:"-9999px"};this.$pasteBox=e?t("<textarea>").css(i):t("<div>").attr("contenteditable","true").css(i),this.paste.appendPasteBox(),this.$pasteBox.focus()},appendPasteBox:function(){if(this.detect.isIe())this.core.box().append(this.$pasteBox);else{var e=t(".modal-body:visible");e.length>0?e.append(this.$pasteBox):t("body").append(this.$pasteBox)}},detectClipboardUpload:function(e){e=e.originalEvent||e;var i=e.clipboardData;if(this.detect.isIe())return!0;if(this.detect.isFirefox())return!1;var o=i.types;if(-1!==o.indexOf("public.tiff"))return e.preventDefault(),!1;if(i.items&&i.items.length){var r=i.items[0].getAsFile();if(null===r)return!1;var s=new FileReader;return s.readAsDataURL(r),s.onload=t.proxy(this.paste.insertFromClipboard,this),!0}},clipboardUpload:function(){var e=this.$editor.find("img");t.each(e,t.proxy(function(e,i){if(-1!==i.src.search(/^data\:image/i)){var o=window.FormData?new FormData:null;if(window.FormData){this.buffer.set(),this.upload.direct=!0,this.upload.type="image",this.upload.url=this.opts.imageUpload,this.upload.callback=t.proxy(function(e){if(this.detect.isIe())t(i).wrap(t("<figure />"));else{var o=t(i).parent();this.utils.replaceToTag(o,"figure")}i.src=e.url,this.core.callback("imageUpload",t(i),e)},this);var r=this.utils.dataURItoBlob(i.src);o.append("clipboard",1),o.append(this.opts.imageUploadParam,r),this.progress.show(),this.upload.send(o,!1),this.code.sync()}}},this))},insertFromClipboard:function(t){var e=window.FormData?new FormData:null;if(window.FormData){this.buffer.set(),this.upload.direct=!0,this.upload.type="image",this.upload.url=this.opts.imageUpload,this.upload.callback=this.image.insert;var i=this.utils.dataURItoBlob(t.target.result);e.append("clipboard",1),e.append(this.opts.imageUploadParam,i),this.progress.show(),this.upload.send(e,t)}},insert:function(e,i){i.pre?this.insert.raw(e):i.text?this.insert.text(e):this.insert.html(e,i),this.detect.isFirefox()&&this.opts.clipboardImageUpload&&setTimeout(t.proxy(this.paste.clipboardUpload,this),100)}}},placeholder:function(){return{enable:function(){setTimeout(t.proxy(function(){return this.placeholder.isEditorEmpty()?this.placeholder.show():this.placeholder.hide()},this),5)},show:function(){this.core.editor().addClass("redactor-placeholder")},update:function(t){this.opts.placeholder=t,this.core.editor().attr("placeholder",t)},hide:function(){this.core.editor().removeClass("redactor-placeholder")},is:function(){return this.core.editor().hasClass("redactor-placeholder")},init:function(){this.placeholder.enabled()&&(this.utils.isEditorRelative()||this.utils.setEditorRelative(),this.placeholder.build(),this.placeholder.buildPosition(),this.placeholder.enable(),this.placeholder.enableEvents())},enabled:function(){return this.opts.placeholder?this.core.element().attr("placeholder",this.opts.placeholder):this.placeholder.isAttr()},enableEvents:function(){this.core.editor().on("keydown.redactor-placeholder."+this.uuid,t.proxy(this.placeholder.enable,this))},disableEvents:function(){this.core.editor().off(".redactor-placeholder."+this.uuid)},build:function(){this.core.editor().attr("placeholder",this.core.element().attr("placeholder"))},buildPosition:function(){var e=t("<style />");e.addClass("redactor-placeholder-style-tag"),e.html("#"+this.core.id()+".redactor-placeholder::after "+this.placeholder.getPosition()),t("head").append(e)},getPosition:function(){return"{ top: "+this.core.editor().css("padding-top")+"; left: "+this.core.editor().css("padding-left")+"; }"},isEditorEmpty:function(){var e=t.trim(this.core.editor().html()).replace(/[\t\n]/g,""),i=["","<p>​</p>","<p>​<br></p>"];return-1!==t.inArray(e,i)},isAttr:function(){return"undefined"!=typeof this.core.element().attr("placeholder")&&""!==this.core.element().attr("placeholder")},destroy:function(){this.core.editor().removeAttr("placeholder"),this.placeholder.hide(),this.placeholder.disableEvents(),t(".redactor-placeholder-style-tag").remove()}}},progress:function(){return{$box:null,$bar:null,target:document.body,show:function(){this.progress.is()?this.progress.$box.show():(this.progress.build(),this.progress.$box.redactorAnimation("fadeIn"))},hide:function(){this.progress.is()&&this.progress.$box.redactorAnimation("fadeOut",{duration:.35},t.proxy(this.progress.destroy,this))},update:function(t){this.progress.show(),this.progress.$bar.css("width",t+"%")},is:function(){return null!==this.progress.$box},build:function(){this.progress.$bar=t("<span />"),this.progress.$box=t('<div id="redactor-progress" />'),this.progress.$box.append(this.progress.$bar),t(this.progress.target).append(this.progress.$box)},destroy:function(){this.progress.is()&&this.progress.$box.remove(),this.progress.$box=null,this.progress.$bar=null}}},selection:function(){return{get:function(){return window.getSelection?window.getSelection():document.selection&&"Control"!==document.selection.type?document.selection:null},range:function(t){return"undefined"==typeof t&&(t=this.selection.get()),t.getRangeAt&&t.rangeCount?t.getRangeAt(0):null},is:function(){return!this.selection.isCollapsed()},isRedactor:function(){var e=this.selection.range();if(null!==e){var i=e.startContainer.parentNode;if(t(i).hasClass("redactor-in")||0!==t(i).parents(".redactor-in").length)return!0}return!1},isCollapsed:function(){var t=this.selection.get();return null===t?!1:t.isCollapsed},update:function(t,e){null!==e&&(t.removeAllRanges(),t.addRange(e))},current:function(){var t=this.selection.get();return null===t?!1:t.anchorNode},parent:function(){var t=this.selection.current();return null===t?!1:t.parentNode},block:function(e){for(e=e||this.selection.current();e;){if(this.utils.isBlockTag(e.tagName))return t(e).hasClass("redactor-in")?!1:e;e=e.parentNode}return!1},inline:function(e){for(e=e||this.selection.current();e;){if(this.utils.isInlineTag(e.tagName))return t(e).hasClass("redactor-in")?!1:e;e=e.parentNode}return!1},element:function(e){for(e||(e=this.selection.current());e;){if(1===e.nodeType)return t(e).hasClass("redactor-in")?!1:e;e=e.parentNode}return!1},prev:function(){var t=this.selection.current();return null===t?!1:this.selection.current().previousSibling},next:function(){var t=this.selection.current();return null===t?!1:this.selection.current().nextSibling},blocks:function(e){var i=[],o=this.selection.nodes(e);t.each(o,t.proxy(function(t,e){this.utils.isBlock(e)&&i.push(e)},this));var r=this.selection.block();return 0===i.length&&r===!1?[]:0===i.length&&r!==!1?[r]:i},inlines:function(e){var i=[],o=this.selection.nodes(e);t.each(o,t.proxy(function(t,e){this.utils.isInline(e)&&i.push(e)},this));var r=this.selection.inline();return 0===i.length&&r===!1?[]:0===i.length&&r!==!1?[r]:i},nodes:function(e){var i="undefined"==typeof e?[]:t.isArray(e)?e:[e],o=this.selection.get(),r=this.selection.range(o);if(this.utils.isCollapsed())return[this.selection.current()];var s=r.startContainer,n=r.endContainer;if(s===n)return[s];for(var a=[];s&&s!==n;)a.push(s=this.selection.nextNode(s));for(s=r.startContainer;s&&s!==r.commonAncestorContainer;)a.unshift(s),s=s.parentNode;var l=[];return t.each(a,function(e,o){var r=1!==o.nodeType?!1:o.tagName.toLowerCase();t(o).hasClass("redactor-script-tag, redactor-selection-marker")||r&&0!==i.length&&-1===t.inArray(r,i)||l.push(o)}),0===l.length?[]:l},nextNode:function(t){if(t.hasChildNodes())return t.firstChild;for(;t&&!t.nextSibling;)t=t.parentNode;return t?t.nextSibling:null},save:function(){this.marker.insert(),this.savedSel=this.core.editor().html()},restore:function(t){var e=this.marker.find(1),i=this.marker.find(2);this.detect.isFirefox()&&this.core.editor().focus(),0!==e.length&&0!==i.length?this.caret.set(e,i):0!==e.length?this.caret.start(e):this.core.editor().focus(),t!==!1&&(this.marker.remove(),this.savedSel=!1)},node:function(e){t(e).prepend(this.marker.get(1)),t(e).append(this.marker.get(2)),this.selection.restore()},all:function(){this.core.editor().focus();var t=this.selection.get(),e=this.selection.range(t);e.selectNodeContents(this.core.editor()[0]),this.selection.update(t,e)},remove:function(){this.selection.get().removeAllRanges()},replace:function(t){this.insert.html(t)},text:function(){return this.selection.get().toString()},html:function(){var t="",e=this.selection.get();if(e.rangeCount){for(var i=document.createElement("div"),o=e.rangeCount,r=0;o>r;++r)i.appendChild(e.getRangeAt(r).cloneContents());t=this.clean.onGet(i.innerHTML)}return t},extractEndOfNode:function(t){var e=this.selection.get(),i=this.selection.range(e),o=i.cloneRange();return o.selectNodeContents(t),o.setStart(i.endContainer,i.endOffset),o.extractContents()},removeMarkers:function(){this.marker.remove()},marker:function(t){return this.marker.get(t)},markerHtml:function(t){return this.marker.html(t)}}},shortcuts:function(){return{hotkeysSpecialKeys:{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},hotkeysShiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"},init:function(e,i){return this.opts.shortcuts===!1?(!e.ctrlKey&&!e.metaKey||66!==i&&73!==i||e.preventDefault(),!1):void t.each(this.opts.shortcuts,t.proxy(function(t,i){this.shortcuts.build(e,t,i)},this))},build:function(e,i,o){for(var r=t.proxy(function(){this.shortcuts.buildHandler(o)},this),s=i.split(","),n=s.length,a=0;n>a;a++)"string"==typeof s[a]&&this.shortcuts.handler(e,t.trim(s[a]),r)},buildHandler:function(t){var e;"-1"!==t.func.search(/\./)?(e=t.func.split("."),"undefined"!=typeof this[e[0]]&&this[e[0]][e[1]].apply(this,t.params)):this[t.func].apply(this,t.params)},handler:function(e,i,o){i=i.toLowerCase().split(" ");var r=this.shortcuts.hotkeysSpecialKeys[e.keyCode],s=String.fromCharCode(e.which).toLowerCase(),n="",a={};t.each(["alt","ctrl","meta","shift"],function(t,i){e[i+"Key"]&&r!==i&&(n+=i+"+")}),r&&(a[n+r]=!0),s&&(a[n+s]=!0,a[n+this.shortcuts.hotkeysShiftNums[s]]=!0,"shift+"===n&&(a[this.shortcuts.hotkeysShiftNums[s]]=!0));for(var l=i.length,c=0;l>c;c++)if(a[i[c]])return e.preventDefault(),
+o.apply(this,arguments)}}},storage:function(){return{data:[],add:function(t){t.status=!0,t.url=decodeURI(this.link.removeSelfHostFromUrl(t.url)),this.storage.data[t.url]=t},status:function(t,e){this.storage.data[decodeURI(t)].status=e},observe:function(){var e=this,i=this.core.editor().find("[data-image]");i.each(function(i,o){e.storage.add({type:"image",node:o,url:o.src,id:t(o).attr("data-image")})});var o=this.core.editor().find("[data-file]");o.each(function(i,o){e.storage.add({type:"file",node:o,url:o.href,id:t(o).attr("data-file")})});var r=this.core.editor().find("[data-s3]");r.each(function(i,o){var r="IMG"===o.tagName?o.src:o.href;e.storage.add({type:"s3",node:o,url:r,id:t(o).attr("data-s3")})})},changes:function(){for(var t in this.storage.data){var e=this.storage.data[t],i="IMG"===e.node.tagName?"src":"href",o=this.core.editor().find("[data-"+e.type+"]["+i+'="'+e.url+'"]');0===o.length?this.storage.status(e.url,!1):this.storage.status(e.url,!0)}return this.storage.data}}},toolbar:function(){return{build:function(){this.button.hideButtons(),this.button.hideButtonsOnMobile(),this.$toolbar=this.toolbar.createContainer(),this.toolbar.append(),this.button.$toolbar=this.$toolbar,this.button.setFormatting(),this.button.load(this.$toolbar),this.toolbar.setFixed()},createContainer:function(){return t("<ul>").addClass("redactor-toolbar").attr({id:"redactor-toolbar-"+this.uuid,role:"toolbar"})},append:function(){this.opts.toolbarExternal?(this.$toolbar.addClass("redactor-toolbar-external"),t(this.opts.toolbarExternal).html(this.$toolbar)):"textarea"===this.opts.type?this.$box.prepend(this.$toolbar):this.$element.before(this.$toolbar)},setFixed:function(){if(this.opts.toolbarFixed&&!this.opts.toolbarExternal){if(this.opts.toolbarFixedTarget!==document){var e=t(this.opts.toolbarFixedTarget);this.toolbarOffsetTop=0===e.length?0:this.core.box().offset().top-e.offset().top}var i=0!==this.core.box().closest(".modal-body").length?1e3:0;setTimeout(t.proxy(function(){if(this.toolbar.observeScroll(!1),this.detect.isDesktop())t(this.opts.toolbarFixedTarget).on("scroll.redactor."+this.uuid,t.proxy(this.toolbar.observeScroll,this));else{var e=this;t(this.opts.toolbarFixedTarget).on("scroll.redactor."+this.uuid,function(){e.core.toolbar().hide(),clearTimeout(t.data(this,"scrollCheck")),t.data(this,"scrollCheck",setTimeout(function(){e.core.toolbar().show(),e.toolbar.observeScroll()},250))})}},this),i)}},getBoxTop:function(){return this.opts.toolbarFixedTarget===document?this.core.box().offset().top:this.toolbarOffsetTop},observeScroll:function(e){var i=0;e!==!1&&(i=this.opts.toolbarFixedTarget===document?20:0);var o=t(this.opts.toolbarFixedTarget).scrollTop(),r=this.toolbar.getBoxTop();o!==r&&(o+this.opts.toolbarFixedTopOffset+i>r?this.toolbar.observeScrollEnable(o,r):this.toolbar.observeScrollDisable())},observeScrollResize:function(){this.$toolbar.css({width:this.core.box().innerWidth(),left:this.core.box().offset().left})},observeScrollEnable:function(e,i){if("undefined"!=typeof this.fullscreen&&this.fullscreen.isOpened===!1)return void this.toolbar.observeScrollDisable();var o=i+this.core.box().outerHeight()-32,r=this.core.box().innerWidth(),s=this.detect.isDesktop()?"fixed":"absolute",n=this.detect.isDesktop()?this.opts.toolbarFixedTopOffset:t(this.opts.toolbarFixedTarget).scrollTop()-i,a=this.detect.isDesktop()?this.core.box().offset().left:0;this.opts.toolbarFixedTarget!==document&&(s="absolute",n=this.opts.toolbarFixedTopOffset+t(this.opts.toolbarFixedTarget).scrollTop()-i,a=0),this.$toolbar.addClass("toolbar-fixed-box"),this.$toolbar.css({position:s,width:r,top:n,left:a}),e>o&&t(".redactor-dropdown-"+this.uuid+":visible").hide(),this.toolbar.setDropdownsFixed(),this.$toolbar.css("visibility",o>e?"visible":"hidden"),t(window).on("resize.redactor-toolbar."+this.uuid,t.proxy(this.toolbar.observeScrollResize,this))},observeScrollDisable:function(){this.$toolbar.css({position:"relative",width:"auto",top:0,left:0,visibility:"visible"}),this.toolbar.unsetDropdownsFixed(),this.$toolbar.removeClass("toolbar-fixed-box"),t(window).off("resize.redactor-toolbar."+this.uuid)},setDropdownsFixed:function(){var t=this.opts.toolbarFixedTarget===document&&this.detect.isDesktop()?"fixed":"absolute";this.toolbar.setDropdownPosition(t)},unsetDropdownsFixed:function(){this.toolbar.setDropdownPosition("absolute")},setDropdownPosition:function(e){var i=this;t(".redactor-dropdown-"+this.uuid).each(function(){var o=t(this),r=i.button.get(o.attr("rel")),s="fixed"===e?i.opts.toolbarFixedTopOffset:r.offset().top;o.css({position:e,top:r.innerHeight()+s+"px"})})}}},upload:function(){return{init:function(e,i,o){this.upload.direct=!1,this.upload.callback=o,this.upload.url=i,this.upload.$el=t(e),this.upload.$droparea=t('<div id="redactor-droparea" />'),this.upload.$placeholdler=t('<div id="redactor-droparea-placeholder" />').text(this.lang.get("upload-label")),this.upload.$input=t('<input type="file" name="file" />'),this.upload.$placeholdler.append(this.upload.$input),this.upload.$droparea.append(this.upload.$placeholdler),this.upload.$el.append(this.upload.$droparea),this.upload.$droparea.off("redactor.upload"),this.upload.$input.off("redactor.upload"),this.upload.$droparea.on("dragover.redactor.upload",t.proxy(this.upload.onDrag,this)),this.upload.$droparea.on("dragleave.redactor.upload",t.proxy(this.upload.onDragLeave,this)),this.upload.$input.on("change.redactor.upload",t.proxy(function(t){t=t.originalEvent||t,this.upload.traverseFile(this.upload.$input[0].files[0],t)},this)),this.upload.$droparea.on("drop.redactor.upload",t.proxy(function(t){t.preventDefault(),this.upload.$droparea.removeClass("drag-hover").addClass("drag-drop"),this.upload.onDrop(t)},this))},directUpload:function(t,e){this.upload.direct=!0,this.upload.traverseFile(t,e)},onDrop:function(t){t=t.originalEvent||t;var e=t.dataTransfer.files;if(this.opts.multipleImageUpload)for(var i=e.length,o=0;i>o;o++)this.upload.traverseFile(e[o],t);else this.upload.traverseFile(e[0],t)},traverseFile:function(t,e){if(this.opts.s3)return this.upload.setConfig(t),void this.uploads3.send(t,e);var i=window.FormData?new FormData:null;if(window.FormData){this.upload.setConfig(t);var o="image"===this.upload.type?this.opts.imageUploadParam:this.opts.fileUploadParam;i.append(o,t)}this.progress.show(),this.core.callback("uploadStart",e,i),this.upload.send(i,e)},setConfig:function(t){this.upload.getType(t),this.upload.direct&&(this.upload.url="image"===this.upload.type?this.opts.imageUpload:this.opts.fileUpload,this.upload.callback="image"===this.upload.type?this.image.insert:this.file.insert)},getType:function(t){this.upload.type=-1===this.opts.imageTypes.indexOf(t.type)?"file":"image",null===this.opts.imageUpload&&null!==this.opts.fileUpload&&(this.upload.type="file")},getHiddenFields:function(e,i){return e===!1||"object"!=typeof e?i:(t.each(e,t.proxy(function(e,o){null!==o&&0===o.toString().indexOf("#")&&(o=t(o).val()),i.append(e,o)},this)),i)},send:function(e,i){"image"===this.upload.type?(e=this.utils.appendFields(this.opts.imageUploadFields,e),e=this.utils.appendForms(this.opts.imageUploadForms,e),e=this.upload.getHiddenFields(this.upload.imageFields,e)):(e=this.utils.appendFields(this.opts.fileUploadFields,e),e=this.utils.appendForms(this.opts.fileUploadForms,e),e=this.upload.getHiddenFields(this.upload.fileFields,e));var o=new XMLHttpRequest;o.open("POST",this.upload.url),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.onreadystatechange=t.proxy(function(){if(4===o.readyState){var e=o.responseText;e=e.replace(/^\[/,""),e=e.replace(/\]$/,"");var r;try{r="string"==typeof e?t.parseJSON(e):e}catch(s){r={error:!0}}this.progress.hide(),this.upload.direct||this.upload.$droparea.removeClass("drag-drop"),this.upload.callback(r,this.upload.direct,i)}},this),o.send(e)},onDrag:function(t){t.preventDefault(),this.upload.$droparea.addClass("drag-hover")},onDragLeave:function(t){t.preventDefault(),this.upload.$droparea.removeClass("drag-hover")},clearImageFields:function(){this.upload.imageFields={}},addImageFields:function(t,e){this.upload.imageFields[t]=e},removeImageFields:function(t){delete this.upload.imageFields[t]},clearFileFields:function(){this.upload.fileFields={}},addFileFields:function(t,e){this.upload.fileFields[t]=e},removeFileFields:function(t){delete this.upload.fileFields[t]}}},uploads3:function(){return{send:function(e,i){this.uploads3.executeOnSignedUrl(e,t.proxy(function(t){this.uploads3.sendToS3(e,t,i)},this))},executeOnSignedUrl:function(t,e){var i=new XMLHttpRequest,o=-1===this.opts.s3.search(/\?/)?"?":"&";i.open("GET",this.opts.s3+o+"name="+t.name+"&type="+t.type,!0),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined");var r=this;i.onreadystatechange=function(t){4===this.readyState&&200===this.status&&(r.progress.show(),e(decodeURIComponent(this.responseText)))},i.send()},createCORSRequest:function(t,e){var i=new XMLHttpRequest;return"withCredentials"in i?i.open(t,e,!0):"undefined"!=typeof XDomainRequest?(i=new XDomainRequest,i.open(t,e)):i=null,i},sendToS3:function(e,i,o){var r=this.uploads3.createCORSRequest("PUT",i);r&&(r.onload=t.proxy(function(){var t;if(this.progress.hide(),200!==r.status)return t={error:!0},void this.upload.callback(t,this.upload.direct,r);var e=i.split("?");if(!e[0])return!1;if(this.upload.direct||this.upload.$droparea.removeClass("drag-drop"),t={url:e[0],id:e[0],s3:!0},"file"===this.upload.type){var s=e[0].split("/");t.name=s[s.length-1]}this.upload.callback(t,this.upload.direct,o)},this),r.onerror=function(){},r.upload.onprogress=function(t){},r.setRequestHeader("Content-Type",e.type),r.setRequestHeader("x-amz-acl","public-read"),r.send(e))}}},utils:function(){return{isEmpty:function(e){return e="undefined"==typeof e?this.core.editor().html():e,e=e.replace(/[\u200B-\u200D\uFEFF]/g,""),e=e.replace(/&nbsp;/gi,""),e=e.replace(/<\/?br\s?\/?>/g,""),e=e.replace(/\s/g,""),e=e.replace(/^<p>[^\W\w\D\d]*?<\/p>$/i,""),e=e.replace(/<iframe(.*?[^>])>$/i,"iframe"),e=e.replace(/<source(.*?[^>])>$/i,"source"),e=e.replace(/<[^\/>][^>]*><\/[^>]+>/gi,""),e=e.replace(/<[^\/>][^>]*><\/[^>]+>/gi,""),e=t.trim(e),""===e},isElement:function(t){try{return t instanceof HTMLElement}catch(e){return"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}},strpos:function(t,e,i){var o=t.indexOf(e,i);return o>=0?o:!1},dataURItoBlob:function(t){var e;e=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):unescape(t.split(",")[1]);for(var i=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(e.length),r=0;r<e.length;r++)o[r]=e.charCodeAt(r);return new Blob([o],{type:i})},getOuterHtml:function(e){return t("<div>").append(t(e).eq(0).clone()).html()},cloneAttributes:function(e,i){e=e[0]||e,i=t(i);for(var o=e.attributes,r=o.length;r--;){var s=o[r];i.attr(s.name,s.value)}return i},breakBlockTag:function(){var e=this.selection.block();if(!e)return!1;var i=this.utils.isEmpty(e.innerHTML),o=e.tagName.toLowerCase();if("pre"===o||"li"===o||"td"===o||"th"===o)return!1;if(!i&&this.utils.isStartOfElement(e))return{$block:t(e),$next:t(e).next(),type:"start"};if(!i&&this.utils.isEndOfElement(e))return{$block:t(e),$next:t(e).next(),type:"end"};var r=this.selection.extractEndOfNode(e),s=t("<"+o+" />").append(r);return s=this.utils.cloneAttributes(e,s),t(e).after(s),{$block:t(e),$next:s,type:"break"}},inBlocks:function(e){e=t.isArray(e)?e:[e];for(var i=this.selection.blocks(),o=i.length,r=!1,s=0;o>s;s++)if(i[s]!==!1){var n=i[s].tagName.toLowerCase();-1!==t.inArray(n,e)&&(r=!0)}return r},inInlines:function(e){e=t.isArray(e)?e:[e];for(var i=this.selection.inlines(),o=i.length,r=!1,s=0;o>s;s++){var n=i[s].tagName.toLowerCase();-1!==t.inArray(n,e)&&(r=!0)}return r},isTag:function(e,i){var o=t(e).closest(i,this.core.editor()[0]);return 1===o.length?o[0]:!1},isBlock:function(t){return null===t?!1:(t=t[0]||t,t&&this.utils.isBlockTag(t.tagName))},isBlockTag:function(t){return"undefined"==typeof t?!1:this.reIsBlock.test(t)},isInline:function(t){return t=t[0]||t,t&&this.utils.isInlineTag(t.tagName)},isInlineTag:function(t){return"undefined"==typeof t?!1:this.reIsInline.test(t)},isRedactorParent:function(e){return e?0===t(e).parents(".redactor-in").length||t(e).hasClass("redactor-in")?!1:e:!1},isCurrentOrParentHeader:function(){return this.utils.isCurrentOrParent(["H1","H2","H3","H4","H5","H6"])},isCurrentOrParent:function(e){var i=this.selection.parent(),o=this.selection.current();if(t.isArray(e)){var r=0;return t.each(e,t.proxy(function(t,e){this.utils.isCurrentOrParentOne(o,i,e)&&r++},this)),0!==r}return this.utils.isCurrentOrParentOne(o,i,e)},isCurrentOrParentOne:function(t,e,i){return i=i.toUpperCase(),e&&e.tagName===i?e:t&&t.tagName===i?t:!1},isEditorRelative:function(){var e=this.core.editor().css("position"),i=["absolute","fixed","relative"];return-1!==t.inArray(i,e)},setEditorRelative:function(){this.core.editor().addClass("redactor-relative")},freezeScroll:function(){this.freezeScrollTop=t(document).scrollTop(),t(document).scrollTop(this.freezeScrollTop)},unfreezeScroll:function(){"undefined"!=typeof this.freezeScrollTop&&t(document).scrollTop(this.freezeScrollTop)},saveScroll:function(){this.tmpScrollTop=t(document).scrollTop()},restoreScroll:function(){"undefined"!=typeof this.tmpScrollTop&&t(document).scrollTop(this.tmpScrollTop)},isStartOfElement:function(t){return"undefined"!=typeof t||(t=this.selection.block())?0===this.offset.get(t):!1},isEndOfElement:function(e){if("undefined"==typeof e&&(e=this.selection.block(),!e))return!1;var i=t.trim(t(e).text()).replace(/[\t\n\r\n]/g,"").replace(/\u200B/g,""),o=this.offset.get(e);return o===i.length},removeEmptyAttr:function(e,i){var o=t(e);return"undefined"==typeof o.attr(i)?!0:""===o.attr(i)?(o.removeAttr(i),!0):!1},replaceToTag:function(e,i){var o;return t(e).replaceWith(function(){o=t("<"+i+" />").append(t(this).contents());for(var e=0;e<this.attributes.length;e++)o.attr(this.attributes[e].name,this.attributes[e].value);return o}),o},isSelectAll:function(){return this.selectAll},enableSelectAll:function(){this.selectAll=!0},disableSelectAll:function(){this.selectAll=!1},disableBodyScroll:function(){var e=t("html"),i=window.innerWidth;if(!i){var o=document.documentElement.getBoundingClientRect();i=o.right-Math.abs(o.left)}var r=document.body.clientWidth<i,s=this.utils.measureScrollbar();e.css("overflow","hidden"),r&&e.css("padding-right",s)},measureScrollbar:function(){var e=t("body"),i=document.createElement("div");i.className="redactor-scrollbar-measure",e.append(i);var o=i.offsetWidth-i.clientWidth;return e[0].removeChild(i),o},enableBodyScroll:function(){t("html").css({overflow:"","padding-right":""}),t("body").remove("redactor-scrollbar-measure")},appendFields:function(e,i){if(!e)return i;if("object"==typeof e)return t.each(e,function(e,o){null!==o&&0===o.toString().indexOf("#")&&(o=t(o).val()),i.append(e,o)}),i;var o=t(e);if(0===o.length)return i;return o.each(function(){i.append(t(this).attr("name"),t(this).val())}),i},appendForms:function(e,i){if(!e)return i;var o=t(e);if(0===o.length)return i;var r=o.serializeArray();return t.each(r,function(t,e){i.append(e.name,e.value)}),i},isCollapsed:function(){return this.selection.isCollapsed()},isMobile:function(){return this.detect.isMobile()},isDesktop:function(){return this.detect.isDesktop()},isPad:function(){return this.detect.isIpad()}}},browser:function(){return{webkit:function(){return this.detect.isWebkit()},ff:function(){return this.detect.isFirefox()},ie:function(){return this.detect.isIe()}}}},t(window).on("load.tools.redactor",function(){t('[data-tools="redactor"]').redactor()}),e.prototype.init.prototype=e.prototype}(jQuery),function(t){function e(e,i,o,r){var s={duration:.5,iterate:1,delay:0,prefix:"redactor-",timing:"linear"};this.animation=i,this.slide="slideDown"===this.animation||"slideUp"===this.animation,this.$element=t(e),this.prefixes=["","-moz-","-o-animation-","-webkit-"],this.queue=[],"function"==typeof o?(r=o,this.opts=s):this.opts=t.extend(s,o),this.slide&&this.$element.height(this.$element.height()),this.init(r)}t.fn.redactorAnimation=function(t,i,o){return this.each(function(){new e(this,t,i,o)})},e.prototype={init:function(t){this.queue.push(this.animation),this.clean(),"show"===this.animation?(this.opts.timing="linear",this.$element.removeClass("hide").show(),"function"==typeof t&&t(this)):"hide"===this.animation?(this.opts.timing="linear",this.$element.hide(),"function"==typeof t&&t(this)):this.animate(t)},animate:function(e){this.$element.addClass("animated").css("display","").removeClass("hide"),this.$element.addClass(this.opts.prefix+this.queue[0]),this.set(this.opts.duration+"s",this.opts.delay+"s",this.opts.iterate,this.opts.timing);var i=this.queue.length>1?null:e;this.complete("AnimationEnd",t.proxy(function(){this.$element.hasClass(this.opts.prefix+this.queue[0])&&(this.clean(),this.queue.shift(),this.queue.length&&this.animate(e))},this),i)},set:function(t,e,i,o){for(var r=this.prefixes.length;r--;)this.$element.css(this.prefixes[r]+"animation-duration",t),this.$element.css(this.prefixes[r]+"animation-delay",e),this.$element.css(this.prefixes[r]+"animation-iteration-count",i),this.$element.css(this.prefixes[r]+"animation-timing-function",o)},clean:function(){this.$element.removeClass("animated"),this.$element.removeClass(this.opts.prefix+this.queue[0]),this.set("","","","")},complete:function(e,i,o){this.$element.one(e.toLowerCase()+" webkit"+e+" o"+e+" MS"+e,t.proxy(function(){"function"==typeof i&&i(),"function"==typeof o&&o(this);var e=["fadeOut","slideUp","zoomOut","slideOutUp","slideOutRight","slideOutLeft"];-1!==t.inArray(this.animation,e)&&this.$element.css("display","none"),this.slide&&this.$element.css("height","")},this))}}}(jQuery);
\ No newline at end of file