(function(s,z,h,S){var n=function(){var d={};return{register:function(f,h){d[f]=h},require:function(f,h){var p=d[f];if(!p)throw Error('CommonJS error: failed to require("'+h+'")');return p}}}();n.register("$1",function(d,f,h){function p(b){var c=typeof b;if("string"===c)if(/[^ <>!=()%^&|?:n0-9]/.test(b))console.error("Invalid plural: "+b);else return new Function("n","return "+b);"function"!==c&&(b=function(a){return 1!=a});return b}d.init=function(b){function c(e,b,c){return(e=a[e])&&e[c]?e[c]:b||
""}b=p(b);var a={};return{_:function(a){return c(a,a,0)},_x:function(a,b){return c(b+"\u0004"+a,a,0)},_n:function(a,m,k){k=Number(b(k));isNaN(k)&&(k=0);return c(a,k?m:a,k)},load:function(e){a=e||{};return this},pluraleq:function(a){b=p(a);return this}}};return d}({},s,z));n.register("$2",function(d,f,h){Array.prototype.indexOf||(Array.prototype.indexOf=function(d){if(null==this)throw new TypeError;var b,c=Object(this),a=c.length>>>0;if(0===a)return-1;b=0;1<arguments.length&&(b=Number(arguments[1]),
b!=b?b=0:0!=b&&Infinity!=b&&-Infinity!=b&&(b=(0<b||-1)*Math.floor(Math.abs(b))));if(b>=a)return-1;for(b=0<=b?b:Math.max(a-Math.abs(b),0);b<a;b++)if(b in c&&c[b]===d)return b;return-1});return d}({},s,z));n.register("$3",function(d,f,h){d.trim=function(d,b){for(b||(b=" \n");d&&-1!==b.indexOf(d.substr(0,1));)d=d.substr(1);for(;d&&-1!==b.indexOf(d.substr(-1));)d=d.substr(0,d.length-1);return d};d.sprintf=function(d){var b=0,c,a=[].slice.call(arguments,1);return d.replace(/%(s|u|%)/g,function(e,m){if("%"===
m)return"%";c=a[b++];return String(c)||""})};return d}({},s,z));n.register("$47",function(d,f,h){function p(){var b=a;e&&(b="("+e+") "+b);h.title=b}function b(e){e||(e=c);e!==a&&(a=e,p())}var c=h.title,a=c,e=0;d.set=function(a){b(a);return d};d.get=function(){return a};d.replace=function(e,c){b(a.replace(e,c));return d};d.badge=function(a){isNaN(a=Number(a))&&(a=0);a!==e&&(e=a,p());return d};return d}({},s,z));n.register("$40",function(d,f,h){function p(e){a||f._gat&&(a=_gat._createTracker(b,"loco"));
if(a){var m=e.shift();a[m].apply(a,e)}else c&&c.push(e);return d}var b,c,a;d._init=function(a){if(b=a.code){c=f._gaq||(f._gaq=[]);c.push(["_setAccount",b]);c.push(["_trackPageview"]);c.push(["_setDomainName",a.host]);a=h.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==h.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var m=h.getElementsByTagName("script")[0];m.parentNode.insertBefore(a,m)}return d};d.event=function(a,b,c,g){return p(["_trackEvent",
a||"",b||"",c||"",g||0])};d.page=function(a,b){var c={page:a||location.pathname+location.hash,title:b||n.require("$47","title.js").get()};return p(["_trackPageview",c])};return d}({},s,z));n.register("$41",function(d,f,h){function p(a,e){if(b)b[a](e);else f.ga&&ga(a,e);return d}var b,c;d._init=function(a){a.code&&(function(a,b,c,g,l,w,d){a.GoogleAnalyticsObject=l;a[l]=a[l]||function(){(a[l].q=a[l].q||[]).push(arguments)};a[l].l=1*new Date;w=b.createElement(c);d=b.getElementsByTagName(c)[0];w.async=
1;w.src=g;d.parentNode.insertBefore(w,d)}(f,h,"script","//www.google-analytics.com/analytics.js","ga"),ga("create",a.code,{alwaysSendReferrer:!0,userId:a.user}),a.custom&&p("set",a.custom),d.page(),ga(function(a){b=a}));return d};d.event=function(a,e,b,c){return p("send",{hitType:"event",eventCategory:a||"",eventAction:e||"",eventLabel:b||"",eventValue:Number(c||0)})};d.page=function(a,e){var b={hitType:"pageview",page:a||location.pathname+location.hash,title:e||n.require("$47","title.js").get()};
b.location=location.protocol+"//"+location.hostname+b.page;c&&p("set",{referrer:c});c=b.location;return p("send",b)};d.reset=function(){c=location.href;var a={page:location.pathname+location.hash,title:n.require("$47","title.js").get(),location:c};p("set",a);return d};return d}({},s,z));n.register("$31",function(d,f,D){function p(a,c){h(a).click(function(a){b&&b.event(c,"click",this.getAttribute("href")||"");return!0});a=null;return d}var b,c=location.hostname,a="/help"===location.pathname.substr(0,
5);d.init=function(a){!b&&a&&(c=a.host||(a.host=c),b=a.legacy?n.require("$40","legacy.js"):n.require("$41","universal.js"),b._init(a));return d};d.link=function(b){for(var m=b.getAttribute("href");m&&"#"!==m;){if(0===m.indexOf("#"))return p(b,"anchor");if("/help"===m.substr(0,5)&&!a)b.setAttribute("target","_blank");else if(0===m.indexOf("http")||0===m.indexOf("//")){if(-1!==m.indexOf(c)&&/^(https?:)*\/\/([^\/]+)/.exec(m)&&c===RegExp.$2)break;b.setAttribute("target","_blank");p(b,"external")}break}return d};
d.page=function(){b&&b.page.apply(b,arguments);return d};d.event=function(){b&&b.event.apply(b,arguments);return d};d.reset=function(){b&&b.reset&&b.reset();return d};return d}({},s,z));n.register("$35",function(d,f,n){function p(a,b,m,d,g){function l(){u&&clearTimeout(u);r&&r.fadeOut(400,function(){h(this).remove();r=null});return!1}function w(){C();-1!==d&&(u=setTimeout(l,d||2E3));r.off("mouseleave").on("mouseenter",C)}function C(){u&&clearTimeout(u);u=null;r.off("mouseenter").on("mouseleave",w)}
var u;c||(c=n.createElement("div"),c.id="growls",n.body.appendChild(c));var r=h('<div class="growl growl-'+m+'"><div><a class="close" href="#"><span>X</span></a><span class="badge"></span><p class="message"></p><small class="caption"></small></div></div>');r.find("p").text(a||"Empty message");b?r.find("small").text(b):r.find("small").remove();if(g.length){g.push({label:"Cancel",callback:l,css:"cancel"});var y,q=h('<form action="#" class="dialog"></form>');b=function(a,b){y=h('<input type="button" value="'+
b.label+'" class="butt '+(b.css||"")+'" />');y.click(function(a){"function"===typeof b.callback&&b.callback(a,{close:l})});q.append(y);return y};for(a=0;a<g.length;a++)b(a,g[a]);r.append(q)}h(c).prepend(r.hide().fadeIn(400));r.find("a").click(l);w()}var b,c;d.init=function(){if(!b)return b=f.alert,f.alert=function(a){a=String(a).split("\n");var b=a[1]&&a.slice(1).join("\n");d.alert(a[0],b)},d};d.debug=function(a){b(a);return d};d.alert=function(a,e,c,d,g){try{return p(a,e||"",c||"alert",d||4E3,g||
[]),!0}catch(l){return a+="\n\n--\n"+(l.message||l),b.call(f,a),!1}};d.success=function(a,b,c){return d.alert(a,b,"success",c||2E3)};d.dialog=function(a,b,c,k){return d.alert(a,b,k||"alert",-1,c)};return d}({},s,z));n.register("$42",function(d,f,n){function p(a){return 27===a.keyCode&&r&&y?(H(),a.preventDefault(),!1):!0}function b(){if(r){var a=f.innerWidth,q=f.innerHeight;a!==F&&(F=a,I(A));q!==v&&(v=q,u&&c())}return!0}function c(){var a=m.outerHeight(!0)-u.clientHeight;u.style.maxHeight=String(v-
a)+"px"}function a(a){a?(l.show(),k.addClass("has-title")):(l.hide(),k.removeClass("has-title"))}var e,m,k,g,l,w,C,u,r=!1,y=!1,q=!1,E,B,F,A,v,G=d.init=function(){if(!e){e=h('<div id="overlay"></div>');m=h('<div class="overlay-frame"></div>');k=h('<div class="overlay-container"></div>');l=h('<div class="overlay-title"><span class="icon"></span><span class="title">Untitled</span></div>');w=h("<nav></nav>");C=h('<a class="overlay-close" href="#"><span>x</span></a>');g=h('<div class="overlay-bg"></div>');
e.append(m.append(k)).append(g).prependTo(n.body);h(n).on("keydown",p);h(f).resize(b);F=f.innerWidth;v=f.innerHeight;B=k.outerWidth(!0)-k.width()+(m.innerWidth()-m.width());E=parseInt(k.css("width"));if(!E||isNaN(E))E=k.width();w.hide().prependTo(m);l.append(C.hide()).hide().prependTo(m);e.hide()}return e},I=d.width=function(a){var q=G();if(null===a)m.css("width",""),k.css("width","");else{a=a||E||640;x=a+B;A=a;var b=F;x>b?(x=b,a=x-B,q.addClass("spill")):q.removeClass("spill");m.css("width",x+"px");
k.css("width",a+"px")}return d};d.autoSize=function(){var a=G(),q=E||0;k.children().each(function(a,b){q=Math.max(q,h(b).outerWidth(!0))});I(q);if(u=a.find("div.overlay-scroll")[0])v=f.innerHeight,c();return d};d.css=function(a){G().attr("class",a);return d};d.think=function(){G().addClass("loading");return d};d.unthink=function(){G().removeClass("loading");return d};d.html=function(a){G();f.innerShiv&&(a=innerShiv(a,!1));return k.html(a)};d.append=function(a){G();a instanceof jQuery||(a=h(a));k.append(a);
return d};var H=d.close=function(a){if(r){var q=function(){G().hide();h(n.body).removeClass("has-overlay");r=!1;k.html("");r=null;e.trigger("overlayClosed",[d])};null==a&&(a=300);e.trigger("overlayClosing",[d]);a?e.fadeOut(a,q):q()}return d};d.title=function(b,g){G();var e="",c=l.find("span");g&&/^lang lang-(\w+)/.exec(g)&&(e=RegExp.$1);c.eq(0).attr("class",g||"icon").attr("lang",e);q=b||"";c.eq(1).text(q);null!=b?a(!0):y||a(!1);return d};d.enableClose=function(){G();y=!0;C.off("click").on("click",
function(a){H();return!1});a(!0);C.show();return d};d.disableClose=function(){G();y=!1;C.hide();r&&q||a(!1);return d};d.enableNav=function(a){w.append(a);w.show();return d};d.disableNav=function(){w.html("").hide();return d};d.open=function(){G();k.html("");I(E);e.attr("class","");h(n.body).addClass("has-overlay");G().show();r||(r=!0,b());d.title(null);y&&a(!0);e.trigger("overlayOpened",[d]);return d};d.active=function(){return r};d.listen=function(a){G().on("overlayClosed",a);return d};d.unlisten=
function(a){G().off("overlayClosed",a);return d};return d}({},s,z));n.register("$11",function(d,f,n){function p(a,b){this.$element=h(a);this.options=b;this.enabled=!0;this.fixTitle()}d.init=function(a,e){var m={fade:!0,offset:5,delayIn:b,delayOut:c,anchor:a.attr("data-anchor"),gravity:a.attr("data-gravity")||"s"};e&&(m=h.extend({},m,e));a.tipsy(m)};d.delays=function(a,e){b=a||150;c=e||100};d.kill=function(){h("div.tipsy").remove()};d.text=function(a,b){b.data("tipsy").setTitle(a)};var b,c;d.delays();
h(n.body).on("overlayOpened overlayClosing",function(a){d.kill();return!0});p.prototype={show:function(){var a=this.getTitle();if(a&&this.enabled){var b=this.tip();b.find(".tipsy-inner")[this.options.html?"html":"text"](a);b[0].className="tipsy";b.remove().css({top:0,left:0}).prependTo(n.body);var a=(a=this.options.anchor)?this.$element.find(a):this.$element,a=h.extend({},a.offset(),{width:a[0].offsetWidth,height:a[0].offsetHeight}),c=b[0].offsetWidth,d=b[0].offsetHeight,g="function"==typeof this.options.gravity?
this.options.gravity.call(this.$element[0]):this.options.gravity,l;switch(g.charAt(0)){case "n":l={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-c/2};break;case "s":l={top:a.top-d-this.options.offset,left:a.left+a.width/2-c/2};break;case "e":l={top:a.top+a.height/2-d/2,left:a.left-c-this.options.offset};break;case "w":l={top:a.top+a.height/2-d/2,left:a.left+a.width+this.options.offset}}2==g.length&&("w"==g.charAt(1)?l.left=a.left+a.width/2-15:l.left=a.left+a.width/2-c+15);b.css(l).addClass("tipsy-"+
g);b.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+g.charAt(0);this.options.className&&b.addClass("function"==typeof this.options.className?this.options.className.call(this.$element[0]):this.options.className);b.addClass("in")}},hide:function(){this.tip().remove()},fixTitle:function(){var a=this.$element,b=a.attr("title")||"";(b||"string"!==typeof a.attr("original-title"))&&a.attr("original-title",b).removeAttr("title")},getTitle:function(){var a,b=this.$element,c=this.options;this.fixTitle();
"string"==typeof c.title?a=b.attr("title"==c.title?"original-title":c.title):"function"==typeof c.title&&(a=c.title.call(b[0]));return(a=(""+a).replace(/(^\s*|\s*$)/,""))||c.fallback},setTitle:function(a){var b=this.$element;b.attr("default-title")||b.attr("default-title",this.getTitle());null==a&&(a=b.attr("default-title")||this.getTitle());b.attr("original-title",a);if(this.$tip)this.$tip.find(".tipsy-inner")[this.options.html?"html":"text"](a)},tip:function(){this.$tip||(this.$tip=h('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),
this.$tip.data("tipsy-pointee",this.$element[0]));return this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.options=this.$element=null)},enable:function(){this.enabled=!0},disable:function(){this.hide();this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};h.fn.tipsy=function(a){function b(g){var c=h.data(g,"tipsy");c||(c=new p(g,h.fn.tipsy.elementOptions(g,a)),h.data(g,"tipsy",c));return c}function c(){var g=b(this),l=a.delayIn;g.hoverState="in";0==l?g.show():
(g.fixTitle(),setTimeout(function(){"in"==g.hoverState&&g.show()},l))}function d(){var g=b(this),c=a.delayOut;g.hoverState="out";0==c?g.hide():(g.tip().removeClass("in"),setTimeout(function(){"out"==g.hoverState&&g.hide()},c))}a=h.extend({},h.fn.tipsy.defaults,a);a.live||this.each(function(){b(this)});if("manual"!=a.trigger){var g=a.live?"live":"bind",l="hover"==a.trigger?"mouseleave":"blur";this[g]("hover"==a.trigger?"mouseenter":"focus",c)[g](l,d)}return this};h.fn.tipsy.defaults={className:null,
delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover",anchor:null};h.fn.tipsy.elementOptions=function(a,b){return h.metadata?h.extend({},b,h(a).metadata()):b};h.fn.tipsy.autoNS=function(){return h(this).offset().top>h(n).scrollTop()+h(f).height()/2?"s":"n"};h.fn.tipsy.autoWE=function(){return h(this).offset().left>h(n).scrollLeft()+h(f).width()/2?"e":"w"};h.fn.tipsy.autoBounds=function(a,b){return function(){var c=b[0],d=1<b.length?
b[1]:!1,g=h(n).scrollTop()+a,l=h(n).scrollLeft()+a,w=h(this);w.offset().top<g&&(c="n");w.offset().left<l&&(d="w");h(f).width()+h(n).scrollLeft()-w.offset().left<a&&(d="e");h(f).height()+h(n).scrollTop()-w.offset().top<a&&(c="s");return c+(d?d:"")}};return d}({},s,z));n.register("$8",function(d,f,n){d.listen=function(d,b){function c(){u[k?"show":"hide"]()}function a(a){C&&d.setAttribute("size",a.length||1);k=a;c();return a}function e(){g=null;b(k)}function m(){var b=d.value;w&&b===w&&(b="");b!==k&&
(g&&clearTimeout(g),a(b),l?g=setTimeout(e,l):e())}var k,g;d=d instanceof jQuery?d[0]:d;var l=150,w=f.attachEvent&&d.getAttribute("placeholder"),C=1===Number(d.size),u=h('<a href="#clear" tabindex="-1" class="icon clear"><span>clear</span></a>').click(function(a){d.value="";m();return!1});a(d.value);h(d).on("input blur focus",function(){m();return!0}).after(u);c();return{delay:function(a){l=a},ping:function(b){b?(g&&clearTimeout(g),b=d.value,w&&b===w&&(b=""),a(b),e(),b=void 0):b=m();return b},val:function(b){if(null==
b)return k;g&&clearTimeout(g);d.value=a(b);c()},el:function(){return d},blur:function(a){return h(d).on("blur",a)}}};return d}({},s,z));n.register("$22",function(d,f,D){var p,b,c={401:"Authorization Required",422:"Invalid data sent to server",404:"Not Found",500:"Server Error",502:"Bad Gateway",503:"Service unavailable",504:"Gateway timeout"};d.keepAlive=function(a){p=a;b&&clearTimeout(b);b=setTimeout(function(){b=null;d.ajax({url:"/ajax/user/session.json"})},a)};d.jsonLink=function(a){if(!a)return"";
a=a.split("?");a[0]=a[0].replace(/(\.[a-z0-9]{1,4})?$/i,".json");return a.join("?")};d.errorData=function(a,b,d){var k,g;d=a.responseText;b=a.status;if(!d&&0===b)return null;try{k=h.parseJSON(d)||{}}catch(l){k={},g=c[a.status]||l.message||l}k.error=g||k.error||k.statusText||a.statusText||c[b]||"Unknown Error";return k};d.ajax=function(a,b,m,k){function g(a){function b(a){var q=a&&a[0];if(!q||D.contains&&!D.contains(q))a=h(D.body);return a}a.alert&&alert(a.alert);var g=a.events,g=a.success,c=b(k);
g&&n.require("$35","growl.js").success.apply(null,g.push?g:[g]);c.trigger("locoAjaxSuccess",[a]);if((g=a.events)&&g.length)for(var e,q=n.require("$31","ga.js");e=g.shift();)c=b(c),c.trigger(e,[a]),q.event("ajax",e);if(c=a.download)f.location.assign(c);else if(c=a.redirect)if(0===c.indexOf("/modal/"))a.modal={url:c};else return f.location.assign(c),!1;else if(a.reload)return f.location.reload(),!1;(c=a.modal)&&n.require("$32","modal.js").replace(c);m&&m();return!0}function l(a,l,k){if("abort"!==l){var r=
a.status,y;if(401===r)n.require("$32","modal.js").load("/modal/user/ping.json?r="+encodeURIComponent(location.pathname),c[r]);else{if("parsererror"===l)f.console&&console.error&&console.error(r,a.responseText),y=404===r?"Ajax service not found":/^\s+Fatal error/.test(a.responseText)?"Fatal server error from Ajax request":"Bad Ajax response";else{var q=d.errorData(a,l,k);q&&q.error&&(y=q.error)}"function"===typeof b&&!1===b(null,y,r,a)?m&&m():q&&q.data&&!g(q.data)||(alert(y||"Unknown Ajax error"),
m&&m())}}}(a.headers||(a.headers={}))["X-Loco-Csrf"]=f.loco&&J.csrf||"";a.error=l;a.success=function(a,k,u){if(!a||"object"!==typeof a)return l(u,"unknown");p&&d.keepAlive(p);(a.status||a.error)&&alert(a.error||a.statusText||u.statusText||c[a.status]||"Unknown Error");"function"===typeof b&&!1===b(a&&a.data?a.data:a,null,k,u)?m&&m():a&&a.data?g(a.data):m&&m()};-1!==a.url.indexOf(".json")&&(a.dataType="json");return h.ajax(a)};return d}({},s,z));n.register("$32",function(d,f,D){function p(a){a.stopPropagation();
a.preventDefault();return!1}function b(){k||(k=n.require("$42","overlay.js"),k.listen(e));return k}function c(){var a=w.length-1,b=w[a],g=h('<a class="has-icon icon-back" data-gravity="w">Back</a>').attr("href",b[0]).attr("title",b[1]).click(function(g){if(w[a]===b&&y())return n.require("$11","tooltip.js").kill(),p(g)});k.enableNav(g);n.require("$11","tooltip.js").init(g)}function a(a,g){b().autoSize();var e=k.init();n.require("$18","html.js").init(e);w.length&&c();e.find("[data-script]").each(function(a,
b){b=h(b);for(var q=-1,c,e=b.attr("data-script").split(" ");++q<e.length;)c=e[q],l[c]?l[c](b,g||{}):alert("Unknown script "+c)});e.trigger("locoModalLoaded",[k,a||"",g||{}]);var r,d=e.find("form")[0],v;if(d)a:for(e=0;e<d.elements.length;e++)switch(r=d.elements[e],r.type){case "text":case "email":case "textarea":v=Number(r.getAttribute("tabindex"));if(isNaN(v)||100>v)continue a;h(r).focus();break a}}function e(){C=null;w=[];return!0}function m(a){var b=h(a.currentTarget),g=b.attr("data-modal");if("back"===
g){if(y())return p(a);g="close"}if("close"===g){r();var c=b.attr("href");if(c&&-1!==c.indexOf("#!"))return!0}else{var e="submit"===a.type,l=b.attr("title")||b.attr("data-title"),c=b.attr("href")||b.attr("action"),d=e?b.serialize():"",e=e?b.attr("method"):"get";g||(g="http"===c.substr(0,4)?c.split("/").slice(3,6).join("-"):c.split("/").slice(1,4).join("-"));b.trigger("locoModalInvoked",[]);u(c,l,e,d,"modal "+g)}return p(a)}var k,g=n.require("$31","ga.js"),l={},w=[],C,u=d.load=function(q,c,e,l,r){var v=
C;C=[].slice.call(arguments);v&&q!==v[0]&&(w.push(v),q+=-1===q.indexOf("?")?"?":"&",q+="r="+encodeURIComponent(v[0]));v=b();v.active()||v.open().css("modal").html('<div class="loading"></div>');v.title("Loading ..").disableClose().disableNav();v.think();var v=q.split("#"),m=v[1];m&&(q=v[0]);var v=n.require("$22","http.js"),y={type:e||"get",data:l||"",url:v.jsonLink(q)};v.ajax(y,function(b,d,v){var y=b&&b.html;if(!y)return b&&b.redirect?(C=w.pop()||null,u(b.redirect,c,e,l,r)):(b=h('<h3 class="error"></h3>').text(d||
"Unknown error"),d=h('<footer class="buttonset"><a href="/" data-modal="close" class="has-icon icon-ok">Close</a></footer>'),b=h('<div class="basic"></div>').append(b).append(d),d="Error",v&&200!==v&&(d+=" "+v),k.unthink().enableClose().title(d).html("").append(b),n.require("$18","html.js").init(k.init())),!1;c=b.title||c||"Untitled";C&&(C[1]=c);k.unthink().enableClose().title(c,b.icon).width(null).css(r||"modal").autoSize().html(y);v=b.js||{};m&&(v["#"]=m);a(q,v);g.page(q,c);k.init().one("overlayClosed",
function(){g.reset()});return!0});return d},r=d.close=function(){b().close();return d},y=d.back=function(){if(previous=w.pop())return C=w[w.length-2],u.apply(null,previous),!0};d.reload=function(){C&&u.apply(null,C)};d.postback=function(a){C&&(C[2]="post",C[3]=a,u.apply(null,C))};d.initLink=function(a){a.click(m)};d.initForm=function(a){h(a).submit(m)};d.replace=function(g){b();var c=g&&g.html,e=g&&g.url,l=g&&g.title,r=g&&g.action;if(e)c=w.length-1,c=0<=c?w[c][0]:void 0,e===c?y():(g=g&&g.css||e.split("/").slice(1,
4).join("-"),u(e,l,"","",g));else if(c)k.open().html(c),l&&k.enableClose().title(l),a("",g&&g.js);else if("function"===typeof d[r])d[r]()};d.find=function(a){return b().init().find(a)};d.script=function(a,b){if(b){if("function"!==typeof b.run)throw Error(a+" macro has no run function");l[a]=b.run;return d}return l[a]};return d}({},s,z));n.register("$21",{"\u00e1":"a","\u00e0":"a","\u0103":"a","\u1eaf":"a","\u1eb1":"a","\u1eb5":"a","\u1eb3":"a","\u00e2":"a","\u1ea5":"a","\u1ea7":"a","\u1eab":"a","\u1ea9":"a",
"\u01ce":"a","\u00e5":"a","\u01fb":"a","\u00e4":"a","\u01df":"a","\u00e3":"a","\u0227":"a","\u01e1":"a","\u0105":"a","\u0101":"a","\u1ea3":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1eb7":"a","\u1ead":"a","\u1e01":"a","\u01fd":"\u00e6","\u01e3":"\u00e6","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0107":"c","\u0109":"c","\u010d":"c","\u010b":"c","\u00e7":"c","\u1e09":"c","\u010f":"d","\u1e0b":"d","\u1e11":"d","\u0111":"d","\u1e0d":"d","\u1e13":"d","\u1e0f":"d","\u00f0":"d","\ua77a":"d","\u01c6":"\u01f3",
"\u00e9":"e","\u00e8":"e","\u0115":"e","\u00ea":"e","\u1ebf":"e","\u1ec1":"e","\u1ec5":"e","\u1ec3":"e","\u011b":"e","\u00eb":"e","\u1ebd":"e","\u0117":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u1ebb":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u1e19":"e","\u1e1b":"e","\u1e1f":"f","\ua77c":"f","\u01f5":"g","\u011f":"g","\u011d":"g","\u01e7":"g","\u0121":"g","\u0123":"g","\u1e21":"g","\ua7a1":"g","\u1d79":"g","\u0125":"h","\u021f":"h","\u1e27":"h",
"\u1e23":"h","\u1e29":"h","\u0127":"h","\u210f":"h","\u1e25":"h","\u1e2b":"h","\u1e96":"h","\u00ed":"i","\u00ec":"i","\u012d":"i","\u00ee":"i","\u01d0":"i","\u00ef":"i","\u1e2f":"i","\u0129":"i","\u012f":"i","\u012b":"i","\u1ec9":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u1e2d":"i","\u0135":"j","\u01f0":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\ua7a3":"k","\u1e33":"k","\u1e35":"k","\u013a":"l","\u013e":"l","\u013c":"l","\u0142":"l","\u1e37":"l","\u1e39":"l","\u1e3d":"l","\u1e3b":"l","\u0140":"l",
"\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0144":"n","\u01f9":"n","\u0148":"n","\u00f1":"n","\u1e45":"n","\u0146":"n","\ua7a5":"n","\u1e47":"n","\u1e4b":"n","\u1e49":"n","\u00f3":"o","\u00f2":"o","\u014f":"o","\u00f4":"o","\u1ed1":"o","\u1ed3":"o","\u1ed7":"o","\u1ed5":"o","\u01d2":"o","\u00f6":"o","\u022b":"o","\u0151":"o","\u00f5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u022f":"o","\u0231":"o","\u00f8":"o","\u01ff":"o","\u01eb":"o","\u01ed":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u1ecf":"o",
"\u020d":"o","\u020f":"o","\u01a1":"o","\u1edb":"o","\u1edd":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u1e55":"p","\u1e57":"p","\u0155":"r","\u0159":"r","\u1e59":"r","\u0157":"r","\ua7a7":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u1e5f":"r","\ua783":"r","\u015b":"s","\u1e65":"s","\u015d":"s","\u0161":"s","\u1e67":"s","\u1e61":"s","\u015f":"s","\ua7a9":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u017f":"s","\ua785":"s","\u1e9b":"s","\u0165":"t","\u1e97":"t",
"\u1e6b":"t","\u0163":"t","\u1e6d":"t","\u021b":"t","\u1e71":"t","\u1e6f":"t","\ua787":"t","\u00fa":"u","\u00f9":"u","\u016d":"u","\u00fb":"u","\u01d4":"u","\u016f":"u","\u00fc":"u","\u01d8":"u","\u01dc":"u","\u01da":"u","\u01d6":"u","\u0171":"u","\u0169":"u","\u1e79":"u","\u0173":"u","\u016b":"u","\u1e7b":"u","\u1ee7":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1ee9":"u","\u1eeb":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u1e77":"u","\u1e75":"u","\u1e7d":"v","\u1e7f":"v",
"\u1e83":"w","\u1e81":"w","\u0175":"w","\u1e98":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e8d":"x","\u1e8b":"x","\u00fd":"y","\u1ef3":"y","\u0177":"y","\u1e99":"y","\u00ff":"y","\u1ef9":"y","\u1e8f":"y","\u0233":"y","\u1ef7":"y","\u1ef5":"y","\u017a":"z","\u1e91":"z","\u017e":"z","\u017c":"z","\u1e93":"z","\u1e95":"z","\u01ef":"\u0292","\u1f00":"\u03b1","\u1f04":"\u03b1","\u1f84":"\u03b1","\u1f02":"\u03b1","\u1f82":"\u03b1","\u1f06":"\u03b1","\u1f86":"\u03b1","\u1f80":"\u03b1","\u1f01":"\u03b1",
"\u1f05":"\u03b1","\u1f85":"\u03b1","\u1f03":"\u03b1","\u1f83":"\u03b1","\u1f07":"\u03b1","\u1f87":"\u03b1","\u1f81":"\u03b1","\u03ac":"\u03b1","\u1f71":"\u03b1","\u1fb4":"\u03b1","\u1f70":"\u03b1","\u1fb2":"\u03b1","\u1fb0":"\u03b1","\u1fb6":"\u03b1","\u1fb7":"\u03b1","\u1fb1":"\u03b1","\u1fb3":"\u03b1","\u1f10":"\u03b5","\u1f14":"\u03b5","\u1f12":"\u03b5","\u1f11":"\u03b5","\u1f15":"\u03b5","\u1f13":"\u03b5","\u03ad":"\u03b5","\u1f73":"\u03b5","\u1f72":"\u03b5","\u1f20":"\u03b7","\u1f24":"\u03b7",
"\u1f94":"\u03b7","\u1f22":"\u03b7","\u1f92":"\u03b7","\u1f26":"\u03b7","\u1f96":"\u03b7","\u1f90":"\u03b7","\u1f21":"\u03b7","\u1f25":"\u03b7","\u1f95":"\u03b7","\u1f23":"\u03b7","\u1f93":"\u03b7","\u1f27":"\u03b7","\u1f97":"\u03b7","\u1f91":"\u03b7","\u03ae":"\u03b7","\u1f75":"\u03b7","\u1fc4":"\u03b7","\u1f74":"\u03b7","\u1fc2":"\u03b7","\u1fc6":"\u03b7","\u1fc7":"\u03b7","\u1fc3":"\u03b7","\u1f30":"\u03b9","\u1f34":"\u03b9","\u1f32":"\u03b9","\u1f36":"\u03b9","\u1f31":"\u03b9","\u1f35":"\u03b9",
"\u1f33":"\u03b9","\u1f37":"\u03b9","\u03af":"\u03b9","\u1f77":"\u03b9","\u1f76":"\u03b9","\u1fd0":"\u03b9","\u1fd6":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u1fd3":"\u03b9","\u1fd2":"\u03b9","\u1fd7":"\u03b9","\u1fd1":"\u03b9","\u1f40":"\u03bf","\u1f44":"\u03bf","\u1f42":"\u03bf","\u1f41":"\u03bf","\u1f45":"\u03bf","\u1f43":"\u03bf","\u03cc":"\u03bf","\u1f79":"\u03bf","\u1f78":"\u03bf","\u1fe4":"\u03c1","\u1fe5":"\u03c1","\u1f50":"\u03c5","\u1f54":"\u03c5","\u1f52":"\u03c5","\u1f56":"\u03c5",
"\u1f51":"\u03c5","\u1f55":"\u03c5","\u1f53":"\u03c5","\u1f57":"\u03c5","\u03cd":"\u03c5","\u1f7b":"\u03c5","\u1f7a":"\u03c5","\u1fe0":"\u03c5","\u1fe6":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u1fe3":"\u03c5","\u1fe2":"\u03c5","\u1fe7":"\u03c5","\u1fe1":"\u03c5","\u1f60":"\u03c9","\u1f64":"\u03c9","\u1fa4":"\u03c9","\u1f62":"\u03c9","\u1fa2":"\u03c9","\u1f66":"\u03c9","\u1fa6":"\u03c9","\u1fa0":"\u03c9","\u1f61":"\u03c9","\u1f65":"\u03c9","\u1fa5":"\u03c9","\u1f63":"\u03c9","\u1fa3":"\u03c9",
"\u1f67":"\u03c9","\u1fa7":"\u03c9","\u1fa1":"\u03c9","\u03ce":"\u03c9","\u1f7d":"\u03c9","\u1ff4":"\u03c9","\u1f7c":"\u03c9","\u1ff2":"\u03c9","\u1ff6":"\u03c9","\u1ff7":"\u03c9","\u1ff3":"\u03c9","\u0491":"\u0433","\u0450":"\u0435","\u0451":"\u0435","\u04c2":"\u0436","\u045d":"\u0438","\u04e3":"\u0438","\u04ef":"\u0443"});n.register("$7",function(d,f,h){d.init=function(){function d(a){return w[a]||a}function b(a){return String(a||"").toLowerCase().replace(g,d)}function c(a,b,g,c){b=a.split(b);for(var q=
b.length;0!==q--;)(a=b[q])&&null==c[a]&&(g.push(a),c[a]=!0);return g}function a(a){return c(b(a),l,[],{})}function e(a,g){for(var e=[],d={},q,w=g.length,m=l;0!==w--;)(q=g[w])&&c(b(q),m,e,d);k[a]=e}function m(a,b){var g=[],c=-1,q=k,e=q.length,l,d,w,v,m,f,h=a.length,p=b?!0:!1;a:for(;++c<e;)if(w=q[c],null!=w&&(v=w.length)){m=0;b:for(;m<h;m++){f=a[m];for(l=0;l<v;l++)if(d=w[l],0===d.indexOf(f))continue b;continue a}g.push(p?b[c]:c)}return g}var k=[],g=/[^a-z0-9]/g,l=/[\-_\s.?!;:,*^+=~`"(){}<>\[\]\/\\\u00a0\u1680\u180e\u2000-\u206f\u2e00-\u2e7f\u3000-\u303f]+/,
w=n.require("$21","flatten.json");return{split:a,norm:b,pull:function(a,b){return m(a,b)},find:function(b,g){return m(a(b),g)},add:function(b,g){k[b]=a(g)},push:function(a){e(k.length,a)},index:function(a,b){e(a,b)},size:function(){return k.length},clear:function(){k=[]},remove:function(a){k[a]=null}}};return d}({},s,z));n.register("$23",function(d,f,h){d.create=function(){var d=[],b=n.require("$7","fulltext.js").init();return{add:function(c,a){b.add(d.length,a);d.push(c);return this},find:function(c){return b.find(c,
d)},clear:function(){d=[];b.clear();return this}}};return d}({},s,z));n.register("$10",function(d,f,D){function p(b){-1===b.indexOf("?")&&(b="/auto/"+b+".json?q=");this.url=b;this.dead={}}function b(){this.dict=n.require("$23","dict.js").create()}d.init=function(c){function a(){if("hint"!==I){var a=v.val()&&!(K&&K.val())&&null==F&&!q;D[a?"addClass":"removeClass"]("error")}}function e(a){K&&K.val(a)}function d(){s.show();var a=v.outerWidth(!1),b=v.outerHeight(!1),g=v.css("margin-top");g&&(g=parseInt(g),
isNaN(g)||(b+=g));a-=2;s.css("top",b+"px").css("width",a+"px");q=!0}function k(){s.hide();q=!1}function g(){s.html("");k();y=0;A=F=null}function l(b){g();var c;for(c=0;c<b.length;c++){var q=c,e=b[c],l=e.value,r=e.lang||l.lang,v=h('<span class="label"></span>').text(e.label),k=h('<div class="auto-comp-result"></div>'),B=void 0,u=void 0;if(u=e.icon)B=h("<span></span>").attr("class",u).appendTo(k),r?(B.attr("lang",r),e.lang=r):-1!==u.indexOf("lang-"+l)&&(B.attr("lang",l),e.lang=l);for(u in e)k.data(u,
e[u]);k.append(v);w(q,k)}(y=b.length)?(E&&d(),f(0)):(f(null),a(),D.trigger("locoAutonone",[]))}function w(a,b){s.append(b);b.click(function(g){g.stopPropagation();f(a,b);r();return!1});return b}function f(a,b){A&&(A.removeClass("selected"),A=null);F=null;null==a?e(""):(b||(b=s.find("div.auto-comp-result").eq(a)),b.length&&(b.addClass("selected"),F=a,A=b))}function u(a){if(y){var b=y-1;null==F?a=0<a?0:b:(a=F+a,0>a?a=b:a>b&&(a=0));return f(a)}}function r(){if(null==F)Q.val(""),e("");else{var b=s.find("div.auto-comp-result").eq(F),
c=b.data()||{label:"Error"},q=c.value,l=c.label;e(q);Q.val(l);k();b=b.clone();b.data(c);g();w(0,b);y=1;f(0,b);a();b.trigger("locoAutocomp",[q,l,b])}}var y=0,q=!1,E=!1,B=c.form,F=null,A=null,v=h(c),G=v.attr("name"),I=v.attr("data-mode"),H=v.attr("data-provider"),K="hint"!==I&&h('<input type="hidden" value="" name="'+G+'" />').appendTo(B),D=h('<div class="auto-comp-wrap"></div>').replaceAll(v),s=h('<div class="auto-comp-drop"></div>');H&&(H=new p(H));K&&v.attr("name","_"+G);v.attr("autocomplete")||
v.attr("autocomplete","off");D.append(v).append(s);k();v.focus(function(a){E=!0;1<y&&d()}).blur(function(b){E=!1;a()}).keydown(function(a){function b(){a.preventDefault();a.stopPropagation();return!1}switch(a.keyCode){case 27:q&&(a.stopPropagation(),k(),v.blur());break;case 40:y&&(q?u(1):d());break;case 38:q&&u(-1);break;case 13:if(q)return r(),b();if(!F&&"hint"!==I)return b()}return!0});var Q=n.require("$8","LocoTextListener.js").listen(v,function(a){H&&H.fetch(a,l)});(B=v.attr("data-pre"))&&(B=
h.parseJSON(B))&&B.value&&B.label?(l([B]),r()):!c.value||K&&K.val()||!H||H.fetch(c.value,function(a){l(a);r()});return{$:v,val:function(){return K&&K.val()},clear:g,reset:function(){g();v.val("");e("");Q.ping()},force:function(a,b){g();e(b||"");Q.val(a)},preload:function(a){y&&g();H=new b;var c,q;for(c in a)q=a[c],H.add(q)},mode:function(a){I=a},provide:function(a){H=new p(a)}}};p.prototype.fetch=function(b,a){if(!b)return a&&a([]),this.dead={},this;var e,d=this.dead;for(e in d)if(0===b.indexOf(e))return a&&
a([]),this;e={dataType:"json",url:this.url+encodeURIComponent(b)};n.require("$22","http.js").ajax(e,function(e){var g=e&&e.results;g&&(a&&e.query&&e.query===b&&a(e.results),g.length||(d[b]=0));return!0});return this};b.prototype.add=function(b){var a=b.fulltext||b.label||b.value;a&&this.dict.add(b,a)};b.prototype.fetch=function(b,a){var e=b?this.dict.find(b):[];a&&a(e);return this};return d}({},s,z));n.register("$9",function(d,f,D){function p(a){a.stopPropagation();a.preventDefault();return!1}function b(a,
b,c){if(c=c||a.getElement(b))c.off().mouseup(function(c){c.stopPropagation();a.selectIndex(b,!0);return!1}).mouseover(function(){h(this).addClass("over");a.hover=b;return!0}).mouseout(function(){h(this).removeClass("over");a.hover=-1;return!0}),c=null;return a}function c(b){m===b&&(h(f).off("resize scroll",a),m=null);return b}function a(a){m&&m.resize()}function e(a){if(a){var b,c=a[0],e=c.id,d=c.title,r=[],m=[],q=-1,k=c.options.length,B,f=this.selectedIcon||"";this.id=e||"";this.name=c.name||"";
this.prefix=c.getAttribute("data-prefix");for(this.defaultIcon=c.getAttribute("data-icon")||"icon no-icon";++q<k;)b=c.options[q],B=b.disabled,b.selected&&r.push(q),b=h(b),m.push([b.val(),b.text(),b.attr("data-icon")||f,B,b.attr("lang")]);this.hidden||(this.hidden=h('<input type="hidden" name="'+this.name+'" value="" />').appendTo(c.form));this.list=h("<ul></ul>");this.icon=h('<span class="icon"> </span>');this.selection=h('<span class="label"></span>');this.handle=h('<a class="handle" href="#"></a>').attr("tabindex",
a.attr("tabindex")||"").append(this.icon).append(this.selection);b=h('<div class="selector"></div>').addClass(c.className).append(this.handle).append(this.list).replaceAll(c);e&&b.attr("id",e);d&&a.hasClass("hastip")&&(b.attr("title",d),n.require("$11","tooltip.js").init(b,{gravity:a.attr("data-gravity")||"s",anchor:a.attr("data-anchor")}));this.wrapper=b;this.up=b.hasClass("up");for(this.clearOptions();b=m.shift();)this.addOption.apply(this,b);this.enable();this.close();if(k=r.length)for(q=0;q<k;q++)this.selectIndex(r[q]);
else q=c.selectedIndex,null!=q&&0<=q&&this.selectIndex(q)}}d.create=function(a){return new e(a)};d.extend=function(a){a.parent=e;a.prototype=new e};var m,k=e.prototype;k.enable=function(){var a=this;a.handle.click(function(a){a.preventDefault();return!1}).mouseover(function(b){return a.onRollover(b)}).mouseout(function(b){return a.onRollout(b)}).mousedown(function(b){return a.onPress(b)}).keydown(function(b){return a.onKeydown(b)});h(D).mouseup(function(b){return a.onRelease(b)}).keydown(function(b){return a.onGlobalKeydown(b)})};
k.onRollover=function(a){return this.over=!0};k.onRollout=function(a){this.over=!1;return!0};k.onPress=function(a){return this.active?this.over?(this.close(),a.stopPropagation(),a.preventDefault(),!1):!0:(this.open(),a.stopPropagation(),a.preventDefault(),this.handle.focus(),!1)};k.onRelease=function(a){this.active&&!this.over&&this.close();return!0};k.onGlobalKeydown=function(a){if(this.active)switch(a.keyCode){case 27:return this.close(),p(a);case 40:return this.hoverNext(1),p(a);case 38:return this.hoverNext(-1),
p(a);case 13:if(-1!=this.hover)return this.selectIndex(this.hover,!0),this.hoverItem(-1),this.close(),p(a)}return!0};k.onKeydown=function(a){return this.active||40!==a.keyCode?!0:(this.open(),p(a))};k.resize=function(){var a=this.list,b=this.handle,c=b.outerWidth()||0,e=a.outerWidth()||0,d;this.up?(d=a.outerHeight(),a.css("top","-"+(d+2)+"px")):(d=b.outerHeight()||0,d+=2,a.css("top",d+"px"),b=d+n.require("$18","html.js").top(b[0]),d=f.innerHeight-Math.max(0,b-f.pageYOffset),d-=4,a.css("max-height",
d+"px"));c>e&&(c-=e-a.width(),a.css("min-width",String(c)+"px"))};k.open=function(){var b=this.list,e=this.wrapper,d=e.data("tipsy");this.active=!0;this.hover=-1;e.addClass("active");b.show().scrollTop(0);d&&d.disable();this!==m&&(m&&c(m),h(f).on("resize scroll",a),m=this);this.resize()};k.close=function(){var a=this.wrapper,b=a.data("tipsy");this.list.hide();this.active=!1;-1!==this.hover&&(this.getElement(this.hover).removeClass("over"),this.hover=-1);a.removeClass("active");b&&b.enable();c(this)};
k.hoverItem=function(a,b){-1!==this.hover&&this.getElement(this.hover).removeClass("over");this.hover=a;-1!==a&&(b=b||this.getElement(a),b.addClass("over"))};k.hoverNext=function(a){var b=this.options.length;if(b){b-=1;if(-1==this.hover)a=0<a?0:b;else{a=this.hover+a;if(0>a){this.close();return}a>b&&(a=0)}this.hoverItem(a)}};k.enableChange=function(a){this.eventName=a;this.eventData=[].slice.call(arguments,1);return this};k.enableConfirm=function(a){this.confirm=a;return this};k.clearOptions=function(){this.index=
{};this.length=0;this.options=[];this.list.html("");this.hidden.val("");this.idx=this.hover=-1;return this};k.destroy=function(){this.clearOptions();this.hidden.remove()};k.addOption=function(a,c,e,d,m){var r=this.options.length,k=h("<span></span>").addClass(e||"icon no-icon"),q=h('<span class="label"></span>').text(c||a),q=h("<li></li>").append(k).append(q).appendTo(this.list);m?m=m.split("-").shift():e&&-1!==e.indexOf("lang-"+a)&&(m=a);m&&k.attr("lang",m);q.attr("data-option",r);this.options[r]=
{value:a,text:c,lang:m||"",icon:e};this.index[a]=r;this.length=r+1;d?this.disableIndex(r):b(this,r,q);return r};k.disableOption=function(a){return this.disableIndex(this.index[a])};k.disableIndex=function(a){(a=this.getElement(a))&&a.addClass("disabled").off();return this};k.enableOption=function(a){return this.enableIndex(this.index[a])};k.enableIndex=function(a){return b(this,a)};k.reIndex=function(){for(var a=-1,b={},c=this.options,e=c.length;++a<e;)b[c[a].value]=a;this.index=b;this.length=e};
k.selectValue=function(a,b){return this.selectIndex(this.index[a],b)};k.hasValue=function(a){return null!=this.index[a]};k.selectIndex=function(a,b){var c=this.options[a];if(c){var e=this,d=e.idx,r=c.value,m=c.icon||e.defaultIcon,q=function(){null!=d&&e.getElement(d).removeClass("active");e.getElement(a).addClass("active");e.setLabel(c.text).setIcon(m,c.lang);e.hidden.val(r);e.idx=a;b&&e.change()};d===a?e.hidden.val(r):b?"function"===typeof e.confirm?e.confirm.call(null,c,function(a){a&&q()}):e.beforeChange(r)&&
q():q();e.active&&e.close()}return this};k.setLabel=function(a){this.selection.text(a);(a=this.prefix)&&this.selection.prepend(h('<span class="prefix"></span>').text(a));return this};k.setIcon=function(a,b){this.icon.attr("class",a).attr("lang",b||"");return this};k.val=function(){var a=this.options[this.idx];return a&&a.value};k.change=function(){var a=this.val(),b=this.save,c=this.eventName||"change",e=[a].concat(this.eventData||[]);this.wrapper.trigger(c,e);b&&b(a);this.hidden.triggerHandler("change");
return this};k.beforeChange=function(a){var b=h.Event("locoBeforeSelect");this.wrapper.trigger(b,[a]);return!b.isDefaultPrevented()};k.renameOption=function(a,b){var c=this.index[a],e=this.options[c];e&&(e.text=b,this.getElement(c).find("span.label").text(b),c===this.idx&&this.setLabel(b));return this};k.removeOption=function(a){var b=this.index[a],c=this.options[b];c&&(a=this.val(),this.getElement(b).remove(),this.options.splice(b,1),this.reIndex(),a===c.value?this.selectIndex(0,!0):this.selectValue(a,
!1))};k.getElement=function(a){return this.list.find("li").eq(a)};k.getWrapper=function(){return this.wrapper};k.persist=function(a){var b=this.id||this.name,c=a.fetch(b);null!=c&&this.selectValue(c,!0);this.save=function(c){a.store(b,c)};return this};k.listen=function(a){return this.on(this.eventName||"change",a)};k.on=function(a,b){this.wrapper.on(a,b);return this};k=null;return d}({},s,z));n.register("$33",function(d,f,D){function p(b){var c=[],a=h([]);this.hidden=a;this.selected=c;this.selectedIcon=
"icon icon-checkbox";this.constructor.call(this,b);this.wrapper.addClass("multi");for(var e,d,k,g=h('<input type="checkbox" name="'+this.name+'[]" />')[0],l=this.options,w=l.length,f=-1;++f<w;)e=this.getElement(f)[0],k=g.cloneNode(!0),c[f]&&(k.checked=!0),k.setAttribute("value",l[f].value),a.push(e.appendChild(k));(d=this.defaultIcon)&&this.setIcon(d);(d=b.attr("title"))?this.setLabel(d):this.wrapper.addClass("no-title")}d.create=function(b){return new p(b)};n.require("$9","LocoSelector.js").extend(p);
f=p.prototype;f.selectIndex=function(b,c){return this.setIndexState(b,!this.selected[b],c)};f.setIndexState=function(b,c,a){var e=this.options[b],d=this.getElement(b),k=this.hidden[b],g=this.selected;e&&c!==g[b]&&(g[b]=c,d[c?"addClass":"removeClass"]("checked"),k&&(k.checked=c),a&&this.change());return this};f.selectValue=function(b,c){if(null==b.pop)return p.parent.prototype.selectValue.call(this,b,c);for(var a=this.selected.slice(),e=this.options.length,d=this.index||{},k=!1,g=-1,l=-1;++g<e;)a[g]&&
(k=!0),a[g]=!1;if(e=b.length)for(;++l<e;)g=d[b[l]],null==g?k=!0:!1===a[g]&&(k=a[g]=!0);if(k){for(g in a)this.setIndexState(g,a[g]);c&&this.change()}return this};f.val=function(){for(var b=[],c=this.options,a=this.selected,e=a.length,d=-1;++d<e;)a[d]&&b.push(c[d].value);return b};f=null;return d}({},s,z));n.register("$43",function(d,f,h){function p(b,a){for(var e=String(b);a>e.length;)e="0"+e;return e}function b(b){var a=b%10;if(1===a){if(11!==b)return"st"}else if(2===a){if(12!==b)return"nd"}else if(3===
a&&13!==b)return"rd";return"th"}d.formatter=function(){return{format:function(b,a){var e=this;return a.replace(/%[YmdHisMjSghAa]/g,function(a){return e[a.charAt(1)](b)})},Y:function(b){return String(b.getFullYear())},m:function(b){return p(1+b.getFullMonth(),2)},M:function(b){return"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[b.getMonth()]},d:function(b){return p(b.getDate(),2)},H:function(b){return p(b.getHours(),2)},i:function(b){return p(b.getMinutes(),2)},s:function(b){return p(b.getSeconds(),
2)},j:function(b){return String(b.getDate())},S:function(c){return b(c.getDate())},g:function(b){b=b.getHours();return String(0===b?12:12<b?b-12:b)},h:function(b){return p(this.g(b),2)},a:function(b){return 12>b.getHours()?"am":"pm"},A:function(b){return 12>b.getHours()?"AM":"PM"}}};return d}({},s,z));n.register("$34",function(d,f,D){function p(a){var c=a.id,d=m||(m=[]),r=k||(k={}),y=a.getAttribute("datetime"),y=l(y);if(!isNaN(y))return c||(c="tick"+ ++g,a.setAttribute("id",c)),a={id:c,el:a,dt:new Date(y),
st:a.textContent},r[c]||d.push(a),r[c]=a,e||(e=setTimeout(b,200)),a}function b(){for(var a=m,d=a.length,g={},r=[];0<d--;)ticker=a[d],c(ticker)&&(r.push(ticker),g[ticker.id]=ticker);r.length?(m=r,k=g,e=setTimeout(b,3E4)):e=k=m=null}function c(b){var c=b.el;if(D.contains&&!D.contains(c))return!1;strDate=a(b.dt,new Date,!0);if(""===strDate)return!1;strDate!==b.st&&(h(c).text(strDate),b.st=strDate);return!0}function a(a,b,c){var e=b.getTime(),d=a.getTime(),q=e-d;if(6E4>q)return"Just now";if(36E5>q)return a=
Math.floor(q/6E4),String(a)+" minute"+(1===a?"":"s")+" ago";if(864E5>q&&b.getDate()===a.getDate()&&b.getMonth()===a.getMonth()&&b.getFullYear()===a.getFullYear())return a=Math.round(q/36E5),"About "+String(a)+" hour"+(1===a?"":"s")+" ago";if(c)return"";c=Math.floor(e/864E5)-Math.floor(d/864E5);e=n.require("$43","date.js").formatter();q=e.format(a," %g:%i %A");return 1>=c&&(b.setHours(0),b.setMinutes(0),b.setSeconds(0),b=b.getTime()-864E5,d>=b)?"Yesterday at"+q:11>c?c+" days ago at"+q:e.format(a,"%M %j%S %Y,")+
q}var e,m,k,g=0,l=Date.parse||function(){return Number.NaN};d.onEach=function(a,b){p(b)};d.update=function(a){c(p(a))};d.rel=a;return d}({},s,z));n.register("$18",function(d,f,D){var p=f.ieVersion;d.ie=function(b){return b?p<=b:p};var b=d.init=function(b){b?b instanceof jQuery||(b=h(b)):b=h(D.body);var a=n.require("$31","ga.js"),e=n.require("$19","forms.js"),m=n.require("$32","modal.js"),k=n.require("$10","LocoAutoComplete.js"),g=n.require("$9","LocoSelector.js"),l=n.require("$33","LocoMultiSelector.js"),
w=n.require("$11","tooltip.js");b.find("form").each(function(a,b){var c=h(b);p&&10>p&&e.placeholders(c);b.getAttribute("data-modal")?m.initForm(b):b.action&&0!==c.attr("action").indexOf("#")&&!b.target&&e.jsonify(b);c.find("input.auto-comp").each(function(a,b){k.init(b)});c.find("select.selector").each(function(a,b){b.hasAttribute("multiple")?l.create(h(b)):g.create(h(b))});c.hasClass("hasreveal")&&e.revealify(c);c.find("button.hastip").each(function(a,b){w.init(h(b))})});b.find("a").each(function(b,
c){-1!==c.className.indexOf("hastip")&&w.init(h(c));-1!==c.href.indexOf("/modal/")||c.getAttribute("data-modal")?m.initLink(h(c)):a.link(c)});b.find("time.tick").each(n.require("$34","tick.js").onEach);e=m=k=b=null;return d};d.$=function(b){return h(f.innerShiv?innerShiv(b,!1):b)};h.fn._html=function(c){return null!=c?(c=this.html(f.innerShiv?innerShiv(c,!1):c),b(this),c):j.html()};h.fn.macro=function(b,a){if("function"!==typeof b.run)throw Error("macro has no run function");b.run(this,a||{});return this};
d.el=function(b,a){var e=D.createElement(b||"div");a&&(e.className=a);return e};d.txt=function(b){return D.createTextNode(b||"")};d.h=function(){function b(){d=/[<>&]/g;k=/(\r\n|\n|\r)/g;g=/(?:https?):\/\/([a-zA-Z0-9\-_\.\?%~&;=\/]+(?:#.*)?)/g;b=null}function a(a){return"&#"+a.charCodeAt(0)+";"}function e(a,b){return'<a href="'+a+'">'+b+"</a>"}var d,k,g;return function(l,w){b&&b();var f=l.replace(d,a);w&&(f=f.replace(k,"<br />").replace(g,e));return f}}();d.noop=function(b){b&&(b.preventDefault(),
b.stopPropagation(),h(b.target).blur());return!1};d.top=function(b,a){a||(a=D.body);for(var e=b.offsetTop||0;(b=b.offsetParent)&&b!==a;)e+=b.offsetTop||0;return e};d.left=function(b,a){a||(a=D.body);for(var e=b.offsetLeft||0;(b=b.offsetParent)&&b!==a;)e+=b.offsetLeft||0;return e};return d}({},s,z));n.register("$19",function(d,f,D){function p(a){function b(){a.value===g&&(a.value="",d.removeClass("placeheld"));return!0}function c(){""===a.value&&(a.value=g,d.addClass("placeheld"));return!0}var d=h(a);
if(!d.hasClass("auto-comp")){var g=d.attr("placeholder");if(g)return d.focus(b).blur(c),c(),{kill:function(){b();d.off("focus",b).off("blur",c)}}}}var b=d.enable=function(a){function b(a,c){c.getAttribute("data-was-disabled")||(c.disabled=!1)}a.find(".button").removeClass("loading");a.find("button").each(b);a.find("input").each(b);a.find("select").each(b);a.find("textarea").each(b);f.attachEvent&&a.hasClass("has-placeholders")&&d.placeholders(a);a.removeClass("disabled").trigger("locoEnable");delete a._disabled},
c=d.disable=function(a){function b(a,c){c.disabled?c.setAttribute("data-was-disabled","true"):c.disabled=!0}a._disabled||(a.find(".button").addClass("loading"),a.find("button").each(b),a.find("input").each(b),a.find("select").each(b),a.find("textarea").each(b),a.addClass("disabled").trigger("locoDisable"),a._disabled=!0)};d.jsonify=function(a,e,d){a instanceof jQuery||(a=h(a));a.disable||(h.fn.disable=function(){c(this);return this},h.fn.enable=function(){b(this);this.placehold&&this.placehold();
return this});var k="";a.find('[type="submit"]').click(function(a){a&&a.target&&a.target.name&&(k=encodeURIComponent(a.target.name)+"="+encodeURIComponent(a.target.value));return!0});a.submit(function(b){if(b&&b.isDefaultPrevented&&b.isDefaultPrevented()||d&&!1===d(b))return!1;var c=a.serialize(),c=c.replace(/%0D%0A/g,"%0A");k&&(c&&(c+="&"),c+=k,k="");a.disable();var w=n.require("$22","http.js"),c={url:w.jsonLink(a.attr("action")),type:a.attr("method"),data:c};w.ajax(c,e,function(){a.enable()},a);
b.preventDefault();b.stopPropagation();return!1})};d.revealify=function(a){a=a.closest("form");a.find("div[data-reveal-if]").each(function(b,c){function d(a){var b;b=f;q=q||a.target;if("."===r)b=Boolean(q&&q[y]),f&&(b=!b);else{var c,e,v=h(q.form).serializeArray();for(e in v)v[e].name===u&&(c=v[e].value);"!="===r&&(b=!b);b=b?y!==c:y===c}if(b!==w)if(w=b,a)g[w?"slideDown":"slideUp"](200);else g[w?"show":"hide"]();return!0}var g=h(c),l=/^(\!?)([_\w\-\[\]]+)(\.|!?=)(.*)$/.exec(g.attr("data-reveal-if"));
if(l){var w,f=l[1]?!0:!1,u=l[2],r=l[3],y=l[4],l=a[0][u];if(l.type||null==l.length)l=[l];b=l.length;for(var q;0!==b--;)q=l[b],d(),h(q).change(d).removeClass("jshide");l=l=q=null}});a=null};d.linkify=function(a){var b=a.getAttribute("data-icon");if(b){var c=h(a),d=h("<a> </a>");d.attr("href",a.form.action);d.attr("class",c.attr("class"));d.attr("tabindex",c.attr("tabindex"));c.attr("tabindex","-1");d.text(c.val());b&&h("<span></span>").prependTo(d).addClass(b);c.hide().after(d);d.click(function(a){c.click();
return!1})}};d.placeholders=function(a){var b,c=[];a.find("input[placeholder]").each(function(a,d){"password"!==d.type&&(b=p(d))&&c.push(b)});c.length&&(a.submit(function(){for(var a in c)c[a].kill()}),a.addClass("has-placeholders"),b=i=null)};return d}({},s,z));n.register("$4",function(d,f,D){function p(a,b,c){function d(){e();g=setTimeout(b,c)}function e(){g&&clearTimeout(g);g=null}var g;d();h(a).mouseenter(e).mouseleave(d);return{die:function(){e();h(a).off("mouseenter mouseleave")}}}function b(a,
b){a.fadeTo(b,0,function(){a.slideUp(b,function(){a.remove();h(f).triggerHandler("resize")})})}function c(a,c){function d(c){k[l]=null;b(h(a),250);e&&e.die();var q;if(q=c)c.stopPropagation(),c.preventDefault(),q=!1;return q}var e,l;h(a).addClass("is-dismissible");h('<button type="button" class="notice-dismiss" href="#"> </a>').prependTo(a).click(d);h(f).triggerHandler("resize");g();l=k.length;k.push(d);c&&(e=p(a,d,c));return{stick:function(){e&&e.die();e=null;k[l]=null}}}function a(a,b,c){var d=n.require("$18",
"html.js");a=h('<div class="notice notice-'+a+'" loco-notice inline></div>').prependTo(h("#loco-notices"));var e=h(d.el("p"));c=h(d.el("span")).text(c);b=h(d.el("strong","has-icon")).text(b+": ");e.append(b).append(c).appendTo(a);return a}function e(b,d,e,g){b=a(e,d,b).hide().fadeIn(500);h(f).triggerHandler("resize");return c(b,g)}function m(){h("#loco-notices").find("div.notice").each(function(a,b){if(-1===b.className.indexOf("jshide")){var d=-1===b.className.indexOf("notice-success")?null:5E3;c(b,
d)}})}var k=[],g=Date.now||function(){return(new Date).getTime()},l,w,C,u;d.error=function(a){return e(a,l,"error")};d.warning=function(a){return e(a,w,"warning")};d.info=function(a){return e(a,C,"info")};d.success=function(a){return e(a,u,"success",5E3)};d.log=function(){f.console&&console.log&&console.log.apply(console,arguments)};d.debug=function(a,b){f.console&&console.error&&(console.error("Loco Error: "+a),b&&console.debug&&console.debug(b))};d.clear=function(){for(var a=-1,b,c=k,e=c.length;++a<
e;)(b=c[a])&&b();k=[];return d};d.create=a;d.raise=function(a){(d[a.type]||d.error).call(d,a.message)};d.convert=c;d.init=function(a){l=a._("Error");w=a._("Warning");C=a._("Notice");u=a._("OK");setTimeout(m,1E3);return d};return d}({},s,z));n.register("$5",function(d,f,D){function p(a){var b=h("<pre>"+a+"</pre>").text();b&&(b=b.replace(/[\r\n]+/g,"\n").replace(/(^|\n)\s+/g,"$1").replace(/\s+$/,""));b||(b=a)||(b="Blank response from server");return b}function b(a){return(a=a.split(/[\r\n]/)[0])?(a=
a.replace(/ +in +\S+ on line \d+/,""),a=a.replace(/^[()! ]+Fatal error:\s*/,"")):t._("Server returned invalid data")}function c(a,c,d,g){function r(c,g,r){if("abort"!==g){var k=e||{_:function(a){return a}},w=c.status,v=c.responseText,h=p(v),u=c.getResponseHeader("Content-Type")||"text/html",n=c.getResponseHeader("Content-Length")||v.length;"success"===g&&r?f.error(r):(f.error(b(h)+".\n"+k._("Check console output for debugging information")),f.debug("Ajax failure for "+a,{status:w,error:g,message:r,
output:v}),"parsererror"===g&&(r="Response not JSON"),f.log([k._("Provide the following text when reporting a problem")+":","----","Status "+w+' "'+(r||k._("Unknown error"))+'" ('+u+" "+n+" bytes)",h,"===="].join("\n")));d&&d.call&&d(c,g,r);m=c}}g.url=k;g.dataType="json";g.error=r;g.success=function(a,b,d){var e=a&&a.data,g=a&&a.notices,v=g&&g.length;for(!e||a.error?r(d,b,a&&a.error&&a.error.message):c&&c(e,b,d);v--;)f.raise(g[v])};var f=n.require("$4","notices.js").clear();return h.ajax(g)}var a=
{},e,m,k=f.ajaxurl||"/wp-admin/admin-ajax.php",g=f.encodeURIComponent;d.init=function(b){a=b.nonces||a;return d};d.localise=function(a){e=a;return d};d.xhr=function(){return m};d.strip=p;d.parse=b;d.submit=function(a,b,d){function e(){g.removeClass("loading");n.require("$19","forms.js").enable(g)}var g=h(a),m=g.serialize();g.addClass("loading");n.require("$19","forms.js").disable(g);return c(a.route.value,function(a,c,d){e();b&&b(a,c,d)},function(a,b,c){e();d&&d(a,b,c)},{type:a.method,data:m})};d.post=
function(b,d,e,m){var r;(r=a[b])||(f.console&&console.debug&&console.debug('No nonce for "'+b+'"'),r="");r="action=loco_json&route="+g(b)+"&loco-nonce="+g(r);(d=d?h.param(d):"")&&(r+="&"+d);return c(b,e,m,{type:"post",data:r})};d.setNonce=function(b,c){a[b]=c;return d};d.hasNonce=function(b){return!!a[b]};return d}({},s,z));n.register("$20",{arab:1,aran:1,hebr:1,nkoo:1,syrc:1,syrn:1,syrj:1,syre:1,samr:1,mand:1,mend:1,thaa:1,adlm:1,cprt:1,phnx:1,armi:1,prti:1,phli:1,phlp:1,phlv:1,avst:1,mani:1,khar:1,
orkh:1,ital:1,lydi:1,ar:1,ary:1,ckb:1,dv:1,fa:1,he:1,nqo:1,ps:1,ur:1,yi:1});n.register("$6",function(d,f,h){function p(){}var b,c=n.require("$20","rtl.json");d.init=function(){return new p};d.cast=function(a){return a instanceof p?a:"string"===typeof a?d.parse(a):d.clone(a)};d.clone=function(a){var b,c=new p;for(b in a)c[b]=a[b];return c};d.parse=function(a){if(!(b||(b=/^([a-z]{2,3})(?:[-_]([a-z]{2}))?(?:[-_]([a-z0-9]{3,8}))?$/i)).exec(a))return null;var c=new p;c.lang=RegExp.$1.toLowerCase();if(a=
RegExp.$2)c.region=a.toUpperCase();if(a=RegExp.$3)c.variant=a.toLowerCase();return c};f=p.prototype;f.isValid=function(){return!!this.lang};f.isKnown=function(){var a=this.lang;return!(!a||"zxx"===a)};f.toString=function(a){a=a||"-";var b,c=this.lang||"zxx";if(b=this.region)c+=a+b;if(b=this.variant)c+=a+b;return c};f.getIcon=function(){for(var a=3,b,c,d=["variant","region","lang"],g=[];0!==a--;)if(b=d[a],c=this[b])g.push(b),g.push(b+"-"+c.toLowerCase());return g.join(" ")};f.isRTL=function(){return!!c[String(this.lang).toLowerCase()]};
f=null;return d}({},s,z));n.register("$36",function(d,f,h){function p(){}var b,c,a=n.require("$20","rtl.json");d.init=function(){return new p};d.cast=function(a){return a instanceof p?a:"string"===typeof a?d.parse(a):d.clone(a)};d.clone=function(a){var b,c=new p;for(b in a)c[b]=a[b];return c};d.parse=function(a){b||(c=/[-_+]/,b=/^([a-z]{2,3})(?:-([a-z]{4}))?(?:-([a-z]{2}|[0-9]{3}))?(?:-([0-9][a-z0-9]{3,8}|[a-z0-9]{5,8}))?(?:-([a-z]-[-a-z]+))?$/i);a=String(a).split(c).join("-");if(!b.exec(a))return null;
var d=new p;d.lang=RegExp.$1.toLowerCase();if(a=RegExp.$2)d.script=a.charAt(0).toUpperCase()+a.substr(1).toLowerCase();if(a=RegExp.$3)d.region=a.toUpperCase();if(a=RegExp.$4)d.variant=a.toLowerCase();if(a=RegExp.$5)d.extension=a;return d};f=p.prototype;f.isValid=function(){return!!this.lang};f.isKnown=function(){var a=this.lang;return!(!a||"zxx"===a)};f.toString=function(a){a=a||"-";var b,c=this.lang||"zxx";if(b=this.script)c+=a+b;if(b=this.region)c+=a+b;if(b=this.variant)c+=a+b;if(b=this.extension)c+=
a+b;return c};f.getIcon=function(){for(var a=4,b,c,d=["variant","region","script","lang"],l=[];0!==a--;)if(b=d[a],c=this[b])1===a&&3===c.length?l.push("region-m49"):l=l.concat([b,b+"-"+c.toLowerCase()]);return l.join(" ")};f.isRTL=function(){return!!a[String(this.script||this.lang).toLowerCase()]};f=null;return d}({},s,z));n.register("$37",function(d,f,h){function p(a){f.console&&console.error&&console.error(a)}function b(){p("Method not implemented")}function c(){}function a(a){}c.prototype.toString=
function(){return"[Undefined]"};a.prototype._validate=function(a){var d,f,g=!0;for(d in this)f=this[d],f===b?(p(a+"."+d+"() must be implemented"),g=!1):f instanceof c&&(p(a+"."+d+" must be defined"),g=!1);return g};d.init=function(d,f){var k,g=new a;if(d)for(k=d.length;0!==k--;)g[d[k]]=b;if(f)for(k=f.length;0!==k--;)g[f[k]]=new c;return g};d.validate=function(a){var b=/function (\w+)\(/.exec(a.toString())?RegExp.$1:"";a.prototype._validate(b||"Object")};return d}({},s,z));n.register("$48",function(d,
f,h){var p=f.requestAnimationFrame,b=f.cancelAnimationFrame,c=0;if(!p||!b)for(var a in{ms:1,moz:1,webkit:1,o:1})if(p=f[a+"RequestAnimationFrame"])if(b=f[a+"CancelAnimationFrame"]||f[a+"CancelRequestAnimationFrame"])break;p&&b||(p=function(a){var b=e();timeToCall=Math.max(0,16-(b-c));nextTime=b+timeToCall;timerId=f.setTimeout(function(){a(nextTime)},timeToCall);c=nextTime;return timerId},b=function(a){clearTimeout(a)});var e=Date.now||function(){return(new Date).getTime()};d.loop=function(a,c){function d(){f=
p(d,c);a(e++)}var e=0,f;d();return{stop:function(){f&&b(f);f=null}}};return d}({},s,z));n.register("$44",function(d,f,h){function p(b,c,d,e){if(a){var g=d;d=function(a){if((a.MSPOINTER_TYPE_TOUCH||"touch")===a.pointerType)return g(a)}}b.addEventListener(c,d,e);return{unbind:function(){b.removeEventListener(c,d,e)}}}function b(a){a.preventDefault();a.stopPropagation();return!1}var c,a=!!f.navigator.msPointerEnabled,e=a?"MSPointerDown":"touchstart",m=a?"MSPointerMove":"touchmove",k=a?"MSPointerUp":
"touchend";d.ok=function(a){null==c&&(c="function"===typeof h.body.addEventListener);c&&a&&a(d);return c};d.ms=function(){return a};d.dragger=function(a,c){function d(b){a.addEventListener(b,f[b],!1)}function r(b){a.removeEventListener(b,f[b],!1)}var f={};f[e]=function(a){g(a,function(b,d){d.type=e;c(a,d,q)});d(m);d(k);return!0};f[k]=function(a){r(m);r(k);g(a,function(b,d){d.type=k;c(a,d,q)});return!0};f[m]=function(a){g(a,function(b,d){d.type=m;c(a,d,q)});return b(a)};d(e);var q={kill:function(){r(e);
r(m);r(k);a=q=c=null}};return q};d.swiper=function(c,d,f){function r(a){c.addEventListener(a,p[a],!1)}function y(a){c.removeEventListener(a,p[a],!1)}function q(){h&&h.stop();h=null}var h,B,F,p={},v=[],G=[],I=[];p[e]=function(a){B=!1;q();var b=l();g(a,function(a,c){v[a]=b;G[a]=c.clientX;I[a]=c.clientY});F=c.scrollLeft;return!0};p[k]=function(a){g(a,function(a,b){var c=l()-v[a],e=G[a]-b.clientX,c=Math.abs(e)/c;d(c,e?0>e?-1:1:0)});F=null;return!0};p[m]=function(a){var d,e;null==F||g(a,function(a,b){d=
G[a]-b.clientX;e=I[a]-b.clientY});if(e&&Math.abs(e)>Math.abs(d))return B=!0;d&&(B=!0,c.scrollLeft=Math.max(0,F+d));return b(a)};if(!a||f)r(e),r(m),r(k),a&&(c.className+=" mstouch");return{kill:function(){y(e);y(m);y(k);q()},swiped:function(){return B},ms:function(){return a},snap:function(b){a&&!f&&(c.style["-ms-scroll-snap-points-x"]="snapInterval(0px,"+b+"px)",c.style["-ms-scroll-snap-type"]="mandatory",c.style["-ms-scroll-chaining"]="none")},scroll:function(a,b,d){q();var e=c.scrollLeft,g=a>e?
1:-1,v=Math[1===g?"min":"max"],r=Math.round(16*b*g);return h=n.require("$48","fps.js").loop(function(b){b&&(e=Math.max(0,v(a,e+r)),c.scrollLeft=e,a===e&&(q(),d&&d(e)))},c)}}};d.start=function(a,b){return p(a,e,b,!1)};d.move=function(a,b){return p(a,m,b,!1)};d.end=function(a,b){return p(a,k,b,!1)};var g=d.each=function(b,c){if(a)(b.MSPOINTER_TYPE_TOUCH||"touch")===b.pointerType&&c(0,b);else for(var d=-1,e=(b.originalEvent||b).changedTouches||[];++d<e.length;)c(d,e[d])},l=Date.now||function(){return(new Date).getTime()};
return d}({},s,z));n.register("$49",function(d,f,n){d.init=function(d){function b(){f.style.top=String(-d.scrollTop)+"px";return!0}function c(){var b=f;b.textContent=d.value;b.innerHTML=b.innerHTML.replace(/[ \t]/g,a).split(/(?:\r\n|\r|\n)/).join('<span class="eol crlf"></span>\r\n')+'<span class="eol eof"></span>';return!0}function a(a){return'<span class="x'+a.charCodeAt(0).toString(16)+'">'+a+"</span>"}var e=d.parentNode,f=e.insertBefore(n.createElement("div"),d);h(d).on("input",c).on("scroll",
b);h(e).addClass("has-mirror");f.className="ta-mirror";var k=d.offsetWidth-d.clientWidth;2<k&&(f.style.marginRight=String(k-2)+"px");c();b();return{kill:function(){h(d).off("input",c).off("scroll",b);e.removeChild(f);f=null;h(e).removeClass("has-mirror")}}};return d}({},s,z));n.register("$30",function(d,f,h){function p(a,c){for(var d=0,k=-1,g=c&&f[c],l=b[a]||[],h=l.length;++k<h;)callback=l[k],"function"===typeof callback&&(callback(g),d++);return d}var b={},c;d.load=function(a,c,d){function k(){w&&
(clearTimeout(w),w=null);n&&(n.onreadystatechange=null,n=n=n.onload=null);a&&(delete b[a],a=null)}function g(b,c){var e=n&&n.readyState;if(c||!e||"loaded"===e||"complete"===e)c||p(a,d),k()}function l(){if(0===p(a))throw Error('Failed to load "'+(d||a)+'"');k()}if(d&&f[d])"function"===typeof c&&c(f[d]);else if(null!=b[a])b[a].push(c);else{b[a]=[c];var w=setTimeout(l,4E3),n=h.createElement("script");n.setAttribute("src",a);n.setAttribute("async","true");n.onreadystatechange=g;n.onload=g;n.onerror=l;
n.onabort=k;h.getElementsByTagName("head")[0].appendChild(n)}};d.stat=function(a){var b;if(!(b=c)){for(var d,f,g=h.getElementsByTagName("script"),l=-1,w=g.length;++l<w;)if(b=g[l].getAttribute("src"))if(d=b.indexOf("/lib/vendor"),-1!==d){f=b.substr(0,d);break}b=c=f||"/static"}return b+a};return d}({},s,z));n.register("$15",function(d,f,D){function p(a,b){a.setReadOnly(!1);a.on("change",function(a,c){return b.val(c.getValue())});a.on("focus",function(a,c){return b.focus()});a.on("blur",function(a,c){return b.blur()})}
function b(a){a.off("change");a.off("focus");a.off("blur")}function c(a){b(a);a.setReadOnly(!0);a.setHighlightGutterLine(!1);a.setHighlightActiveLine(!1)}function a(a,b){function c(){this.HighlightRules=d}var d=e(b),g=a.require,f=g("ace/lib/oop");f.inherits(d,g("ace/mode/text_highlight_rules").TextHighlightRules);f.inherits(c,g("ace/mode/text").Mode);return new c}function e(a){var b=m(a);return function(){var c=[{token:"empty_line",regex:"^$"},{token:"constant.language",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"},
{token:"constant.language",regex:"<!\\[CDATA\\["},{token:"constant.language",regex:"\\]\\]>"},{token:"locked",regex:"<(?:xliff:)?(?:g|ph)[^>]*>[^<]*</(?:xliff:)?(?:g|ph)>"},{token:"locked",regex:"<(?:xliff:)?(bx|ex|x)[^/>]*/>"},{token:"constant.language",regex:"</?[:a-z]+[^>]*>"}];b&&c.push({token:"printf printf-"+a,regex:b});c.push({defaultToken:"text"});this.$rules={start:c}}}function m(a){switch(a){case "objc":return"%(?:\\d+\\$)?[-+'0# ]*\\d*(?:\\.\\d+|\\.\\*(?:\\d+\\$)?)?(?:hh?|ll?|[qjzTL])?[sScCdDioOuUxXfFeEgGaAp%@]";
case "java":return"%(?:\\d+\\$)?[-+,(0# ]*\\d*(?:\\.\\d+)?(?:[bBhHsScCdoxXeEfgGaA%n]|[tT][A-DFH-IL-NQ-TY-Za-ehj-mpr-sz])";case "php":return"%(?:\\d+\\$)?(?:'.|[-+0 ])*\\d*(?:\\.\\d+)?[suxXbcdeEfFgGo%]";case "auto":return"%(?:\\d+\\$)?(?:[-+0]?\\d*(\\.\\d+)?[duxoefgaDUXOEFGA]|[@scSC%])";case g:return k||"%%"}}var k,g="auto";d.init=function(d,e,k){var m,r=!1,y=k||g,q=d.parentNode,E=q.appendChild(D.createElement("div"));h(q).addClass("has-proxy has-ace");n.require("$30","remote.js").load("https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.6/ace.js",
function(b){if(E){if(!b)throw Error("Failed to load code editor");m=b.edit(E);var q=m.session,g=m.renderer;m.$blockScrolling=Infinity;m.setShowInvisibles(r);m.setWrapBehavioursEnabled(!1);m.setBehavioursEnabled(!1);m.setHighlightActiveLine(!1);q.setUseSoftTabs(!1);g.setShowGutter(!0);g.setPadding(10);g.setScrollMargin(8);q.setMode(a(b,y));m.setValue(d.value,-1);q.setUseWrapMode(!0);e?p(m,e):c(m)}},"ace");return{kill:function(){m&&(b(m),m.destroy(),m=null);E&&(q.removeChild(E),h(q).removeClass("has-proxy has-ace"),
E=null);return this},disable:function(){m&&c(m);e=null;return this},enable:function(a){e=a;m&&p(m,a);return this},resize:function(){m&&m.resize();return this},val:function(a){m&&a!==m.getValue()&&m.setValue(a,-1);return this},invs:function(a){a=a||!1;r!==a&&(r=a,m&&m.setShowInvisibles(a));return this},strf:function(b){b=b||g;b!==y&&(y=b,m&&m.session.setMode(a(f.ace,b)));return this},focus:function(){return this}}};d.strf=function(a,b){g=a;k=b;return d};return d}({},s,z));n.register("$50",function(d,
f,D){function p(a,b){function c(){return b.val(a.getContent())}a.on("input",c);a.on("change",c);a.on("focus",function(a){return b.focus()});a.on("blur",function(a){return b.blur()});a.setMode("design")}function b(a){a.off("input");a.off("change");a.off("focus");a.off("blur")}function c(a){b(a);a.setMode("readonly")}var a=0;d.load=function(a){var b=n.require("$30","remote.js");b.load(b.stat("/lib/tinymce.min.js"),a,"tinymce");return d};d.init=function(e,f){function k(a){n=a;u="<p>"===a.substr(0,3)&&
"</p>"===a.substr(-4);return a.replace(/(<\/?)script/ig,"$1loco:script")}function g(a){l=a;a._getContent=a.getContent;a.getContent=function(a){a=this._getContent(a);a=a.replace(/(<\/?)loco:script/ig,"$1script");if(!u&&"<p>"===a.substr(0,3)&&"</p>"===a.substr(-4)){var b=a.substr(3,a.length-7);if(b===n||-1===b.indexOf("</p>"))a=b}return a};a._setContent=a.setContent;a.setContent=function(a,b){return this._setContent(k(a),b)};f?p(a,f):c(a);h(q).removeClass("loading")}var l,w=!1,n="",u=!1,r=e.parentNode,
y=r.parentNode,q=r.appendChild(D.createElement("div")),E=y.insertBefore(D.createElement("nav"),r);E.id="_tb"+String(++a);h(r).addClass("has-proxy has-mce");h(q).addClass("mce-content-body loading").html(k(e.value));d.load(function(a){if(!a)throw Error("Failed to load HTML editor");q&&a.init({inline:!0,target:q,hidden_input:!1,theme:"modern",skin:!1,plugins:"link",browser_spellcheck:!0,menubar:!1,fixed_toolbar_container:"#"+E.id,toolbar:"formatselect | bold italic link unlink | bullist numlist outdent indent",
block_formats:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h4;Heading 4=h4;Heading 5=h5;Heading 6=h6;",forced_root_block:"p",relative_urls:!1,convert_urls:!1,remove_script_host:!1,document_base_url:"",allow_script_urls:!1,formats:{alignleft:{classes:"alignleft"},alignright:{selector:"p,h1,h2,h3,h4,span,strong,em,a",classes:"alignright"},aligncenter:{selector:"p,h1,h2,h3,h4,span,strong,em,a",classes:"aligncenter"},strikethrough:{inline:"del"}},fix_list_elements:!0,extended_valid_elements:"span,b,i,u,loco:script",
entities:"38,amp,60,lt,62,gt,160,nbsp",entity_encoding:"named",keep_styles:!1,init_instance_callback:g})});return{val:function(a){null==l?h(q).html(a):l.getContent()!==a&&l.setContent(a);return this},kill:function(){l&&(f&&f.val(l.getContent()),b(l),l.destroy(),l=null);q&&(r.removeChild(q),h(r).removeClass("has-proxy has-mce"),q=null);E&&(y.removeChild(E),E=null);return this},enable:function(a){f=a;l&&p(l,a);return this},disable:function(){l&&c(l);f=null;return this},focus:function(){l&&f&&l.focus();
return this},invs:function(a){a=a||!1;w!==a&&(w=a,h(r)[a?"addClass":"removeClass"]("show-invs"));return this}}};return d}({},s,z));n.register("$45",function(d,f,D){function p(a){function b(){w&&(p.off("input",d),w=!1)}function d(){var b=a.value;b!==r&&(p.trigger("changing",[b,r]),r=b)}function f(){d();w&&y!==r&&p.trigger("changed",[r])}function g(){c=a;y=r;w||(p.on("input",d),w=!0);p.trigger("editFocus");n.addClass("has-focus");return!0}function l(){c===a&&(c=null);p.trigger("editBlur");n.removeClass("has-focus");
w&&(f(),b());return!0}var w=!1,p=h(a),n=h(a.parentNode),r=a.value,y;p.blur(l).focus(g);return{val:function(b){r!==b&&(a.value=b,p.triggerHandler("input"),r=b);return!0},kill:function(){b();p.off("blur",l).off("focus",g)},fire:function(){r=null;d()},ping:f,blur:l,focus:g}}function b(a){this.e=a}var c;d._new=function(a){return new b(a)};d.init=function(a){var c=new b(a);a.disabled?(a.removeAttribute("disabled"),c.disable()):a.readOnly?c.disable():c.enable();return c};TextAreaPrototype=b.prototype;TextAreaPrototype.destroy=
function(){this.unlisten();this.e=null};TextAreaPrototype.reload=function(a,b){b?this.l||this.enable():this.l&&this.disable();return this.val(a||"")};TextAreaPrototype.val=function(a){var b=this.e;if(null==a)return b.value;var c=this.l,d=this.p||c;d&&d.val(a);c||b.value===a||(b.value=a,h(b).triggerHandler("input"));return this};TextAreaPrototype.fire=function(){this.l&&this.l.fire();return this};TextAreaPrototype.ping=function(){this.l&&this.l.ping();return this};TextAreaPrototype.focus=function(){var a=
this.p;a?a.focus():h(this.e).focus()};TextAreaPrototype.focused=function(){return c&&c===this.el};TextAreaPrototype.parent=function(){return this.e.parentNode};TextAreaPrototype.attr=function(a,b){var c=this.e;if(1===arguments.length)return c.getAttribute(a);null==b?c.removeAttribute(a):c.setAttribute(a,b);return this};TextAreaPrototype.editable=function(){return!!this.l};TextAreaPrototype.enable=function(){var a=this.p;this.e.removeAttribute("readonly");this.listen();a&&a.enable&&a.enable(this.l);
return this};TextAreaPrototype.disable=function(){var a=this.p;this.e.setAttribute("readonly",!0);this.unlisten();a&&a.disable&&a.disable();return this};TextAreaPrototype.listen=function(){var a=this.l;a&&a.kill();this.l=p(this.e);return this};TextAreaPrototype.unlisten=function(){this.l&&this.l.kill();this.l=null;return this};TextAreaPrototype.setInvs=function(a,b){var c=this.i||!1;if(b||c!==a)this._i&&(this._i.kill(),delete this._i),(c=this.p)?c.invs&&c.invs(a):a&&(this._i=n.require("$49","mirror.js").init(this.e)),
this.i=a;return this};TextAreaPrototype.getInvs=function(){return this.i||!1};TextAreaPrototype.setMode=function(a){var b=this.p;a!==(this.m||"")&&(this.m=a,b&&b.kill(),this.p=b="code"===a?n.require("$15","ace.js").init(this.e,this.l,this["%"]):"html"===a?n.require("$50","mce.js").init(this.e,this.l):null,this.setInvs(this.i,!0),c&&this.focus());return this};TextAreaPrototype.setStrf=function(a){this["%"]=a;"code"===this.m&&this.p.strf(a);return this};TextAreaPrototype.name=function(a){this.e.setAttribute("name",
a);return this};TextAreaPrototype.placeholder=function(a){this.e.setAttribute("placeholder",a);return this};TextAreaPrototype.redraw=function(){var a=this.p;a&&a.resize&&a.resize()};TextAreaPrototype=null;return d}({},s,z));n.register("$46",function(d,f,n){function p(a){var b=f.console;b&&b.error&&b.error(a)}function b(a){var b=n.createElement("div");a&&b.setAttribute("class",a);return b}function c(a){return function(){a.resize();return this}}function a(a){return function(b){var c=b.target.$index;
null!=c&&(b.stopImmediatePropagation(),a.select(c));return!0}}function e(a){return function(){a.redrawDirty()&&a.redraw();return!0}}function m(a){return function(b){var c;c=b.keyCode;if(40===c)c=1;else if(38===c)c=-1;else return!0;if(b.shiftKey||b.ctrlKey||b.metaKey||b.altKey)return!0;a.selectNext(c);b.stopPropagation();b.preventDefault();return!1}}function k(a,b,c){function d(a){p("row["+a+"] disappeared");return{cellVal:function(){return""}}}return function(g){var e=b||0,f=c?-1:1,v=a.rows||[];g.sort(function(a,
b){return f*(v[a]||d(a)).cellVal(e).localeCompare((v[b]||d(b)).cellVal(e))})}}function g(a){this.w=a}function l(a){this.t=a;this.length=0}function w(a,b,c){var d=n.createElement("div");d.className=c||"";this._=d;this.d=b||[];this.i=a||0;this.length=b.length}function C(a){this.live=a;this.rows=[]}d.create=function(a){return new g(a)};var u=g.prototype;u.init=function(d){var g=this.w,q=g.id,f=g.splity(q+"-thead",q+"-tbody"),l=f[0],f=f[1],k=[],p=[],v=[],G=[];if(d)this.ds=d,this.idxs=p,this._idxs=null;
else if(!(d=this.ds))throw Error("No datasource");l.css.push("wg-thead");f.css.push("wg-tbody");d.eachCol(function(a,b,c){v[a]=q+"-col-"+b;G[a]=c||b});for(var n=b(),u=-1,K=v.length,C=b("wg-cols"),s=l.splitx.apply(l,v);++u<K;)s[u].header(G[u]),C.appendChild(n.cloneNode(!1)).setAttribute("for",v[u]);d.eachRow(function(a,b,c){k[a]=new w(a,b,c);p[a]=a});this.rows=k;this.cols=C;this.ww=null;this.root=n=f.body;this.head=l;l.redraw=c(this);l=f.fixed=s[0].bodyY()||20;g.lock().resize(l,f);g.css.push("is-table");
g.restyle();this.sc?this._re_sort(K):d.sort&&d.sort(p);this.redrawDirty();this.render();h(n).attr("tabindex","-1").on("keydown",m(this)).on("mousedown",a(this)).on("scroll",e(this));return this};u.clear=function(){for(var a=this.pages||[],b=a.length;0!==b--;)a[b].destroy();this.pages=[];this.sy=this.mx=this.mn=this.vh=null;void 0;return this};u.render=function(){for(var a,b,c=[],d=this.rows||[],g=-1,e,f=this.idxs,v=f.length,l=this.idxr={},k=this.r,h=this._r,m=this.root,p=this.cols;++g<v;){0===g%100&&
(a=p.cloneNode(!0),b=new C(a),b.h=2200,b.insert(m),c.push(b));e=f[g];l[e]=g;a=d[e];if(null==a)throw Error("Render error, no data at ["+e+"]");a.page=b;b.rows.push(a)}b&&100!==b.size()&&b.sleepH(22);this.pages=c;this.mx=this.mn=null;this.redrawDirty();this.redraw();null==k?null!=h&&(a=d[h])&&a.page&&(delete this._r,this.select(h,!0)):(a=d[k])&&a.page?this.select(k,!0):(this.deselect(),this._r=k);return this};u.resize=function(){var a=-1,b=this.ww||(this.ww=[]),c=this.w,d=c.cells[0],g=d.body.childNodes,
e=g.length,f=this.pages||[],v=f.length;for(c.redraw.call(d);++a<e;)b[a]=g[a].style.width;if(v){c=this.mx;for(a=this.mn;a<=c;a++)f[a].widths(b);this.redrawDirty()&&this.redraw()}};u.redrawDirty=function(){var a=!1,b=this.root,c=b.scrollTop,b=b.clientHeight;this.sy!==c&&(a=!0,this.sy=c);this.vh!==b&&(a=!0,this.vh=b);return a};u.redraw=function(){for(var a=0,b=-1,c=null,d=null,g=this.ww,e=this.sy,f=this.vh,v=this.mn,l=this.mx,k=Math.max(0,e-100),e=f+e+100,h=this.pages||[],m=h.length;++b<m&&!(a>e);)f=
h[b],a+=f.height(),a<k||(null===c&&(c=b),d=b,f.rendered||f.render(g));if(v!==c){if(null!==v&&c>v)for(b=v;b<c;b++){f=h[b];if(!f)throw Error("Shit!");f.rendered&&f.sleep()}this.mn=c}if(l!==d){if(null!==l&&d<l)for(b=l;b>d;b--)f=h[b],f.rendered&&f.sleep();this.mx=d}};u.selected=function(){return this.r};u.thead=function(){return this.w.cells[0]};u.tbody=function(){return this.w.cells[1]};u.tr=function(a){return(a=this.rows[a])?a.cells():[]};u.td=function(a,b){return this.tr(a)[b]};u.next=function(a,b,
c){null==c&&(c=this.r||0);var d=this.idxs,g=d.length,e=(this.idxr||{})[c];for(c=e;c!==(e+=a)&&!(0<=e&&g>e);)if(b&&g)e=1===a?-1:g,b=!1;else return null;c=d[e];return null==c||null==this.rows[c]?(p("Bad next: ["+e+"] does not map to data row"),null):c};u.selectNext=function(a,b,c){a=this.next(a,b);null!=a&&this.r!==a&&this.select(a,c);return this};u.deselect=function(a){var b=this.r;null!=b&&(this.r=null,h(this.tr(b)).removeClass("selected"),this.w.fire("wgRowDeselect",[b,a]));return this};u.selectRow=
function(a,b){return this.select(this.idxs[a])};u.select=function(a,b){var c=this.rows[a],d=c&&c.page;if(!d)return this.deselect(!1),p("Row is filtered out"),this;this.deselect(!0);var g,e=this.w.cells[1];d.rendered||(g=d.top(),e.scrollY(g),this.redrawDirty()&&this.redraw());if(!c.rendered)return d.rendered||p("Failed to render page"),p("Row ["+c.i+"] not rendered"),this;d=c.cells();h(d).addClass("selected");this.r=a;b||(g=e.scrollY(),h(this.root).focus(),g!==e.scrollY()&&e.scrollY(g));e.scrollTo(d[0],
!0);this.w.fire("wgRowSelect",[a,c.data()]);return this};u.unfilter=function(){this._idxs&&(this.idxs=this._sort(this._idxs),this._idxs=null,this.clear().render());return this};u.filter=function(a){this._idxs||(this._idxs=this.idxs);this.idxs=this._sort(a);return this.clear().render()};u.each=function(a){for(var b,c=-1,d=this.rows||[],g=this.idxs||[],e=g.length;++c<e;)b=g[c],a(d[b],c,b);return this};u.sortable=function(a){var b=this.sc||(this.sc=new l(this));b.has(a)||b.add(a);return this};u._re_sort=
function(a){var b=-1,c=this.sc,d=c.active;for(this.sc=c=new l(this);++b<a;)c.add(b);d&&(b=this.head.indexOf(d.id),-1===b&&(b=Math.min(d.idx,a-1)),this.sort(b,d.desc));return this};u._sort=function(a,b){b?(this.s=b,b(a)):(b=this.s)&&b(a);return a};u.sort=function(a,b){this._sort(this.idxs,k(this,a,b));this.sc.activate(a,b);return this};u=null;u=l.prototype;u.has=function(a){return null!=this[a]};u.add=function(a){var b=this,c=b.t.head.cells[a];b[a]={desc:null,idx:a,id:c.id};b.length++;c.addClass("wg-sortable").on("click",
function(c){if("header"===c.target.nodeName.toLowerCase())return c.stopImmediatePropagation(),b.toggle(a),!1});return b};u.toggle=function(a){this.t.sort(a,!this[a].desc).clear().render();return this};u.activate=function(a,b){var c,d;c=this.active;var g=this[a],e=this.t.head.cells;c&&(d=e[c.idx])&&(d.removeClass(c.css),c!==g&&d.restyle());(d=e[a])?(g.desc=b,this.active=g,c="wg-"+(b?"desc":"asc"),d.addClass(c).restyle(),g.css=c):this.active=null;return this};u=null;u=w.prototype;u.render=function(a){var b,
c=[],d=this._,g=this.d,e=this.length;if(d){for(;0!==e--;)c[e]=b=d.cloneNode(!1),b.textContent=g[e]()||"\u00a0",b.$index=this.i,a[e].appendChild(b);this._=null;this.c=c}else for(c=this.c;0!==e--;)a[e].appendChild(c[e]);this.rendered=!0;return this};u.cells=function(){return this.c||[]};u.data=function(){for(var a=-1,b=[],c=this.length;++a<c;)b[a]=this.cellVal(a);return b};u.destroy=function(){this.page=null;this.rendered=!1};u.cellVal=function(a){return this.d[a]()};u=null;u=C.prototype;u.size=function(){return this.rows.length};
u.insert=function(a){var c=this.h,d=b("wg-dead");d.style.height=String(c)+"px";a.appendChild(d);return this.dead=d};u.top=function(){return(this.rendered?this.live:this.dead).offsetTop};u.height=function(){var a=this.h;null==a&&(this.h=a=this.rendered?this.live.firstChild.offsetHeight:this.dead.offsetHight);a||p("row has zero height");return a};u.render=function(a){for(var b,c=-1,d=this.rows,g=d.length,e=this.dead,f=this.live,v=f.childNodes;++c<g;)b=d[c],b.rendered||b.render(v);g=a.length;for(c=0;c<
g;c++)v[c].style.width=a[c];e.parentNode.replaceChild(f,e);this.rendered=!0;this.h=null;return this};u.sleep=function(){var a=this.height(),b=this.live,c=this.dead;c.style.height=String(a)+"px";b.parentNode.replaceChild(c,b);this.rendered=!1;this.h=a;return this};u.sleepH=function(a){a*=this.rows.length;var b=this.dead;b&&(b.style.height=String(a)+"px");this.rendered||(this.h=a);return this};u.widths=function(a){for(var b=this.live.childNodes,c=a.length;0!==c--;)b[c].style.width=a[c];return this};
u.destroy=function(){var a=this.rendered?this.live:this.dead,b=this.rows,c=b.length;for(a.parentNode.removeChild(a);0!==c--;)b[c].destroy()};u=null;return d}({},s,z));n.register("$38",function(d,f,s){function p(a,b){var c=a.id,d=c&&u[c],g=d&&d.parent();if(!d||!g)return null;var e=g.dir===C,c=e?"X":"Y",f="page"+c,e=e?w:l,k=e(g.el),c=b["offset"+c],h=g.el,m=h.className;null==c&&(c=b[f]-e(a));c&&(k+=c);h.className=m+" is-resizing";return{done:function(){h.className=m},move:function(a){g.resize(a[f]-k,
d);return!0}}}function b(b,c){function d(){h(s).off("mousemove",g);y&&(y.done(),y=null);return!0}function g(a){y?y.move(a):d();return!0}if(y)return!0;y=p(b.target,b);if(!y)return!0;h(s).one("mouseup",d).on("mousemove",g);return a(b)}function c(a,b){var c=b.type;"touchmove"===c?y&&y.move(b):"touchstart"===c?y=p(a.target,b):"touchend"===c&&y&&(y.done(),y=null)}function a(a){a.stopPropagation();a.preventDefault();return!1}function e(a){var b=r;b&&b.redraw();a&&a.redraw();return r=a}function m(a,b){var c=
h(b).on("editFocus",function(){c.trigger("wgFocus",[e(a)])}).on("editBlur",function(){c.trigger("wgBlur",[e(null)])})}function k(a){var b=a.id,c=a.className;this.id=b;this.el=a;this.pos=this.index=0;this.css=[c||"wg-root","wg-cell"];this._cn=c;u[b]=this;this.clear()}var g=n.require("$18","html.js"),l=g.top,w=g.left,C=1,u={},r,y=!1;d.init=function(a){var d=new k(a);d.redraw();n.require("$44","touch.js").ok(function(b){b.dragger(a,c)});h(a).mousedown(b);return d};f=k.prototype;f.fire=function(a,b){var c=
h.Event(a);c.cell=this;h(this.el).trigger(c,b);return this};f.each=function(a){for(var b=-1,c=this.cells,d=c.length;++b<d;)a(c[b],b);return this};f.indexOf=function(a){return(a=u[a.id||String(a)])&&a.pid===this.id?a.index:-1};f.on=function(){return this.$("on",arguments)};f.off=function(){return this.$("off",arguments)};f.find=function(a){return h(this.el).find(a)};f.$=function(a,b){h.fn[a].apply(h(this.el),b);return this};f.addClass=function(a){this.css.push(a);return this};f.removeClass=function(a){a=
this.css.indexOf(a);-1!==a&&this.css.splice(a,1);return this};f.parent=function(){return this.pid&&u[this.pid]};f.splitx=function(){return this._split(C,arguments)};f.splity=function(){return this._split(2,arguments)};f._split=function(a,b){(this.length||this.field)&&this.clear();for(var c=-1,d,e=b.length,f=1/e,l=0;++c<e;){d=g.el();this.body.appendChild(d);for(var h=d,m=b[c],p=m,w=1;u[m];)m=p+"-"+ ++w;h.id=m;d=new k(d);d.index=c;d.pid=this.id;d.pos=l;l+=f;this.cells.push(d);this.length++}this.dir=
a;this.redraw();return this.cells};f.destroy=function(){this.clear();delete u[this.id];var a=this.el;a.innerHTML="";a.className=this._cn||"";h(a).off();return this};f.exists=function(){return this===u[this.id]};f.clear=function(){for(var a=this.el,b=this.cells,c=this.field,d=this.body,e=this.nav,f=this.length||0;0!==f--;)delete u[b[f].destroy().id];this.cells=[];this.length=0;e&&(a.removeChild(e),this.nav=null);d&&(c&&(g.ie()&&h(d).triggerHandler("blur"),c.destroy(),this.field=null),this.table&&(this.table=
null),a.removeChild(d));this.body=a.appendChild(g.el("","wg-body"));this._h=null;return this};f.resize=function(a,b){if(!b&&(b=this.cells[1],!b))return;var c=b.index,d=this.cells;this.parent();var g=h(this.el)[this.dir===C?"width":"height"](),e=d[c+1],c=d[c-1];pad=(b.body||b.el.firstChild).offsetTop||0;max=(e?e.pos*g:g)-pad;min=c?c.pos*g:0;b.pos=Math.min(max,Math.max(min,a))/g;this.redraw();return this};f.distribute=function(a){for(var b=-1,c=0,d,g=this.cells,e=a.length;++b<e&&(d=g[++c]);)d.pos=Math.max(0,
Math.min(1,a[b]));this.redraw();return this};f.distribution=function(){for(var a=[],b=0,c=this.cells,d=c.length-1;b<d;)a[b]=c[++b].pos;return a};f.restyle=function(){var a=this.css.concat();0===this.index?a.push("first"):a.push("not-first");this.dir&&(a.push("wg-split"),2===this.dir?a.push("wg-split-y"):a.push("wg-split-x"));this.t&&a.push("has-title");this.nav&&a.push("has-nav");this.field&&(a.push("is-field"),this.field.editable()?a.push("is-editable"):a.push("is-readonly"));a=a.join(" ");a!==this._css&&
(this._css=a,this.el.className=a);return this};f.redraw=function(a){this.restyle();var b=this.el,c=this.body,d=this.field;if(c){var g,e=b.clientWidth||0,f=b.clientHeight||0,l=c.offsetTop||0,f=l>f?0:f-l;this._h!==f&&(this._h=f,c.style.height=String(f)+"px",g=d);this._w!==e&&(this._w=e,g=d);g&&g.redraw()}c=this.length;e=1;f=this.nav;for(l=2===this.dir?"height":"width";0!==c--;)d=this.cells[c],f?g=1:(d.fixed&&(d.pos=d.fixed/h(b)[l]()),g=e-d.pos,e=d.pos),d.el.style[l]=String(100*g)+"%",d.redraw(a);return this};
f.contents=function(a,b){var c=this.el,d=this.body;if(null==a)return d.innerHTML;this.length?this.clear():d&&(c.removeChild(d),d=null);d||(this.body=d=c.appendChild(g.el("",b||"wg-content")),this._h=null,(c=this.lang)&&this._locale(c,this.rtl,!0));"string"===typeof a?h(d)._html(a):a&&this.append(a);this.redraw();return this};f.textarea=function(a,b){var c=this.field;if(c){var d=c.editable();c.reload(a,b);d!==b&&this.restyle()}else this.length&&this.clear(),d=g.el("textarea"),d.setAttribute("wrap",
"virtual"),d.value=a,this.contents(d),c=n.require("$45","field.js")._new(d)[b?"enable":"disable"](),m(this,d),this.field=c,this.restyle();this.lang||this.locale("en");return c};f.locale=function(a){a=n.require("$36","locale.js").cast(a);return this._locale(String(a),a.isRTL())};f._locale=function(a,b,c){var d=this.body;if(c||a!==this.lang)this.lang=a,d&&d.setAttribute("lang",a);if(c||b!==this.rtl)this.rtl=b,d&&d.setAttribute("dir",b?"RTL":"LTR");return this};f.editable=function(){var a=this.field;
if(a)return a.editable()?a:null;var b=this.cells,c=b.length,d=this.navigated();if(null!=d)return b[d].editable();for(;++d<c;){for(d=0;d<c;c++);if(a=b[d].editable())return a}};f.eachTextarea=function(a){var b=this.field;b?a(b):this.each(function(b){b.eachTextarea(a)});return this};f.append=function(a){a&&(a.nodeType?g.init(this.body.appendChild(a)):g.init(h(a).appendTo(this.body)));return this};f.prepend=function(a){var b=this.body;if(a.nodeType){var c=b.firstChild;g.init(c?b.insertBefore(a,c):b.appendChild(a))}else g.init(h(a).prependTo(b));
return this};f.before=function(a){var b=this.body;a.nodeType?g.init(this.el.insertBefore(a,b)):g.init(h(a).insertBefore(b));return this};f.header=function(a,b){if(null==a&&null==b)return this.el.getElementsByTagName("header")[0];this.t=g.txt(a||"");this.el.insertBefore(g.el("header",b),this.body).appendChild(this.t);this.redraw();return this};f.title=function(a){var b=this.t;if(b)return b.nodeValue=a||"",b;this.header(a);return this.t};f.titled=function(){var a=this.t;return a&&a.nodeValue};f.bodyY=
function(){return l(this.body,this.el)};f.scrollY=function(a){if(S===a)return this.body.scrollTop;this.body.scrollTop=a};f.tabulate=function(a){var b=this.table;b?b.clear():b=n.require("$46","wgtable.js").create(this);b.init(a);return this.table=b};f.lock=function(){this.body.className+=" locked";return this};f.scrollTo=function(a,b){var c,d=this.body;c=d.scrollTop;var g=l(a,d);if(c>g)c=g;else{var e=d.clientHeight,g=g+h(a).outerHeight();if(e+c<g)c=g-e;else return}b?d.scrollTop=c:h(d).stop(!0).animate({scrollTop:c},
250)};f.navigize=function(b,c){function d(a){var b=f[a],c=k[a],g=h(b.el).show();c.addClass("active");l=a;m.data("idx",a);b.fire("wgTabSelect",[a]);return g}var e=this,f=e.cells,v=e.nav,l,k=[];v&&e.el.removeChild(v);var v=e.nav=e.el.insertBefore(g.el("nav","wg-tabs"),e.body),m=h(v).on("click",function(b){var c=h(b.target).data("idx");if(null==c)return!0;if(null!=l){var g=k[l];h(f[l].el).hide();g.removeClass("active")}d(c);e.redraw();return a(b)});null==c&&(c=m.data("idx")||0);e.each(function(a,c){k[c]=
h('<a href="#'+a.id+'"></a>').data("idx",c).text(b[c]).appendTo(m);a.pos=0;h(a.el).hide()});d(f[c]?c:0);e.lock();e.redraw();return e};f.navigated=function(){var a=this.nav;if(a)return h(a).data("idx")};f=null;return d}({},s,z));n.register("$26",function(d,f,h){function p(){this.reIndex([])}d.init=function(){return new p};f=p.prototype;f.reIndex=function(b){for(var c={},a=-1,d=b.length;++a<d;)c[b[a]]=a;this.keys=b;this.length=a;this.ords=c};f.key=function(b,c){if(null==c)return this.keys[b];var a=
this.keys[b],d=this.ords[c];if(c!==a){if(null!=d)throw Error("Clash with item at ["+d+"]");this.keys[b]=c;delete this.ords[a];this.ords[c]=b}return b};f.indexOf=function(b){b=this.ords[b];return null==b?-1:b};f.add=function(b,c){var a=this.ords[b];null==a&&(this.keys[this.length]=b,a=this.ords[b]=this.length++);this[a]=c;return a};f.get=function(b){return this[this.ords[b]]};f.has=function(b){return null!=this.ords[b]};f.del=function(b){this.cut(this.ords[b],1)};f.cut=function(b,c){c=c||1;var a=[].splice.call(this,
b,c);this.keys.splice(b,c);this.reIndex(this.keys);return a};f.each=function(b){for(var c=-1,a=this.keys,d=this.length;++c<d;)b(a[c],this[c],c);return this};f.sort=function(b){for(var c=-1,a=this.length,d,f=this.keys,k=this.ords,g=[];++c<a;)g[c]=[this[c],f[c]];g.sort(function(a,c){return b(a[0],c[0])});for(c=0;c<a;c++)d=g[c],this[c]=d[0],d=d[1],f[c]=d,k[d]=c;return this};f.join=function(b){return[].join.call(this,b)};f=null;return d}({},s,z));n.register("$24",function(d,f,s){function p(a){var b=[];
a&&(a.saved()||b.push("po-unsaved"),a.fuzzy()?b.push("po-fuzzy"):a.flagged()&&(b.push("po-flagged"),b.push("po-flag-"+a.flags().join(" po-flag-"))),a.translation()||b.push("po-empty"),a.comment()&&b.push("po-comment"));return b.join(" ")}function b(a,b,c){b=h(a.title(b).parentNode);var d=b.find("span.lang");c?(c=n.require("$36","locale.js").cast(c),d.length||(d=h("<span></span>").prependTo(b)),d.attr("lang",c.lang).attr("class",c.getIcon()||"lang region region-"+(c.region||"zz").toLowerCase())):(d.remove(),
c="en");a.locale(c);return b}function c(){this.dirty=0}var a="poUpdate",e="changing",m="changed",k=0,g=1,l=2,w=3,C=4,u=5,r=/^\s+/,y,q,E=n.require("$3","string.js").sprintf,z=n.require("$18","html.js");d.extend=function(a){return a.prototype=new c};d.localise=function(a){q=a;return d};var F=function(){var a=s.createElement("p");return function(b){a.innerHTML=b.replace("src=","x=");return a.textContent}}(),A=c.prototype=n.require("$37","abstract.js").init(["getListColumns","getListHeadings","getListEntry"],
["editable","t"]);A.init=function(){this.localise();this.editable={source:!0,target:!0};this.mode="";this.html=!1;return this};A.localise=function(a){a||(a=q||n.require("$1","t.js").init());var b=[];b[k]=a._x("Source text","Editor")+":";b[w]=a._x("%s translation","Editor")+":";b[C]=a._x("Context","Editor")+":";b[u]=a._x("Comments","Editor")+":";b[g]=a._x("Single","Editor")+":";b[l]=a._x("Plural","Editor")+":";this.labels=b;this.t=a;return this};A.setRootCell=function(a){function b(a){c.redraw(!0,
a);return!0}var c=n.require("$38","wingrid.js").init(a);h(f).on("resize",b);this.redraw=b;h(a).on("wgFocus wgBlur",function(a,b){a.stopPropagation();y=b});this.destroy=function(){c.destroy();h(f).off("resize",b)};this.rootDiv=a;return c};c.prototype.$=function(){return h(this.rootDiv)};A.on=function(a,b){return h(this.rootDiv).on(a,b)};A.setListCell=function(a){var b=this;b.listCell=a;a.on("wgRowSelect",function(a,c){b.loadMessage(b.po.row(c));return!0}).on("wgRowDeselect",function(a,c,d){d||b.loadNothing();
return!0})};A.setSourceCell=function(a){this.sourceCell=a;a=a.find("p.notes");this.$notes=a.length?a:null};A.setTargetCell=function(a){this.targetCell=a;a=a.find("p.errors");this.$errs=a.length?a:null};A.next=function(a,b,c){for(var d=this.listTable,g=d.selected(),e=g,f,l=this.po;null!=(g=d.next(a,c,g));){if(e===g){g=null;break}if(b&&(f=l.row(g),f.translated(0)))continue;break}null!=g&&d.select(g,!0);return g};A.current=function(a){var b=this.active;if("undefined"===typeof a)return b;a?a.is(b)?this.reloadMessage(a):
this.loadMessage(a):this.unloadActive();return this};A.getTargetEditable=function(){return this.editable.target&&this.targetCell&&this.targetCell.editable()};A.getSourceEditable=function(){return this.editable.source&&this.sourceCell&&this.sourceCell.editable()};A.getContextEditable=function(){return this.editable.context&&this.contextCell&&this.contextCell.editable()};A.getFirstEditable=function(){return this.getTargetEditable()||this.getSourceEditable()||this.getContextEditable()};A.searchable=
function(a){a&&(this.dict=a,this.po&&this.rebuildSearch());return this.dict&&!0};A.rebuildSearch=function(){var a=-1,b=this.po.rows,c=b.length,d=this.dict;for(d.clear();++a<c;)d.add(a,b[a].toText())};A.filtered=function(){return this.lastSearch||""};A.filter=function(a,b){var c,d=this.listTable,g=this.lastFound,e=this.lastSearch;if(a){if(e===a)return g||0;if(e&&!g&&0===a.indexOf(e))return 0;c=this.dict.find(a)}this.lastSearch=e=a;this.lastFound=g=c?c.length:this.po.length;c?d.filter(c):d.unfilter();
b||this.fire("poFilter",[e,g]);return g};A.countFiltered=function(){return this.lastSearch?this.lastFound:this.po.length};A.unsave=function(a,b){var c=!1;if(a=a||self.active){if(c=a.saved(b))this.dirty++,a.unsave(b),this.fire("poUnsaved",[a,b]);this.markUnsaved(a)}return c};A.markUnsaved=function(a){var b=this.po.indexOf(a);if(b=this.listTable.tr(b)){var c=b[0].className;changedStyle=c.replace(/(?:^| +)po-[a-z]+/g,"")+" "+p(a);changedStyle!==c&&h(b).attr("class",changedStyle)}};A.save=function(a){var b=
this.po;if(this.dirty||a)b.each(function(a,b){b.save()}),this.listCell.find("div.po-unsaved").removeClass("po-unsaved"),this.dirty=0,this.fire("poSave");return b};A.fire=function(a,b){var c=this.on;if(c&&c[a]&&(c=c[a].apply(this,b||[]),!1===c))return!1;c=h.Event(a);h(this.rootDiv).trigger(c,b);return!c.isDefaultPrevented()};A.getSorter=function(){return null};A.reload=function(){var a=this,b,c=a.listCell,d=a.listTable,g=a.po,e=g&&g.locale(),f=e&&e.isRTL(),l=g&&g.length||0;if(g&&g.row){a.lastSearch&&
(a.lastSearch="",a.lastFound=l,a.fire("poFilter",["",l]));d&&(b=d.thead().distribution());a.listTable=d=c.tabulate({eachCol:function(b){var c,d,g=a.getListColumns(),e=a.getListHeadings();for(d in g)c=g[d],b(c,d,e[c])},eachRow:function(b){g.each(function(c,d){b(d.idx,a.getListEntry(d),p(d))})},sort:a.getSorter()});var k,c=a.getListColumns();for(k in c)d.sortable(c[k]);b&&d.thead().distribute(b);d.tbody().$(f?"addClass":"removeClass",["is-rtl"]);a.targetLocale=e;a.fire("poLoad");return!!l}c&&c.clear().header("Error").contents("Invalid messages list")};
A.load=function(a,b){this.po=a;this.dict&&this.rebuildSearch();this.reload()&&(-1!==b?this.listTable.selectRow(b||0):this.active&&this.unloadActive())};A.pasteMessage=function(a){var b,c=0;(b=this.sourceCell)&&b.eachTextarea(function(b){b.val(a.source(null,c++))});(b=this.contextCell)&&b.eachTextarea(function(b){b.val(a.context())});if(b=this.targetCell)c=0,b.eachTextarea(function(b){b.val(a.translation(c++))});this.updateListCell(a,"source");this.updateListCell(a,"target");return this};A.reloadMessage=
function(a){var b,c;this.pasteMessage(a);(b=this.sourceCell)&&this.setNotes(a.notes())&&b.redraw();if(b=this.targetCell)c=b.navigated()||0,this.setErrors(a.errors(c))&&b.redraw();return this};A.setNotes=function(a){var b=!1,c=this.$notes;a?(c||(this.$notes=c=h('<p class="notes"></p>').insertAfter(this.sourceCell.header())),a=z.h(a,!0),c.html(a).show(),z.init(c),b=!0):c&&c.text()&&(c.text("").hide(),b=!0);return b};A.setErrors=function(a){var b=!1,c=this.$errs;a&&a.length?(c||(this.$errs=c=h('<p class="errors"></p>').insertAfter(this.targetCell.header())),
c.html(z.h(a.join(".\n")+".",!0)).show(),z.init(c),b=!0):c&&c.text()&&(c.text("").hide(),b=!0);return b};A.loadMessage=function(c){function d(a){var e,h=a,h=a.id;e=M[k];a.off();a.titled()!==e&&b(a,e,s.sourceLocale||"en");s.setNotes(c.notes())&&a.clear();V?(e=a.splity(h+"-singular",h+"-plural"),h=e[0],e=e[1],h.header(M[g]).textarea(W,N).setStrf(B).setMode(A).setInvs(D),e.header(M[l]).textarea(V,N).setStrf(B).setMode(A).setInvs(D),a.lock(),N&&(f(h,0),f(e,1))):(a.textarea(W,N).setStrf(B).setMode(A).setInvs(D),
N&&f(a,0))}function f(b,d){b.on(e,function(a,b,g){1===d?c.plural(b):(c.source(b),s.updateListCell(c,"source"));s.unsave(c,d)}).on(m,function(b){0===d&&s.po.reIndex(c);s.dict&&s.rebuildSearch();s.fire(a,[c])})}function h(a,d,g){L&&a.eachTextarea(function(a){a.ping()});a.off();var e=d.isKnown()&&d.label||"Target",e=E(M[w],e);a.titled()!==e&&b(a,e,d);s.setErrors(c.errors(g))&&a.clear();if(c.pluralized()){var f=[],l=d.plurals||["One","Other"],k=n.require("$26","collection.js").init();for(c.each(function(a,
b,c){if(c||l[a])f.push(l[a]||"Form "+a),k.add("plural-"+a,c)});(e=f.length)<d.nplurals;)f.push(l[e]||"Form "+k.length),k.add("plural-"+e,c.translation(e));children=a.splitx.apply(a,k.keys);a.each(function(a,b){var d=L&&!c.disabled(b);a.textarea(k[b],d).setStrf(B).setMode(A).setInvs(D);L&&p(a,b)});a.navigize(f,g||null).on("wgTabSelect",function(a,b){var d=L&&a.cell.editable();d&&d.focus();s.setErrors(c.errors(b));s.fire("poTab",[b])})}else L=L&&!c.disabled(0),a.textarea(c.translation(),L).setStrf(B).setMode(A).setInvs(D),
L&&p(a,0)}function p(b,d){b.on(e,function(a,b,g){c.translate(b,d);0===d&&s.updateListCell(c,"target");c.fuzzy(d)?s.fuzzy(!1,c,d):s.unsave(c,d);""===b?s.fire("poEmpty",[!0,c,d]):""===g&&s.fire("poEmpty",[!1,c,d])}).on(m,function(b){s.dict&&s.rebuildSearch();s.fire(a,[c])})}function q(d){d.off();b(d,M[C]);d.textarea(c.context(),!0).setMode(A).setInvs(D);S&&d.on(e,function(a,b){c.context(b);s.updateListCell(c,"source");s.unsave(c,R)}).on(m,function(){s.po.reIndex(c);s.dict&&s.rebuildSearch();s.fire(a,
[c])})}function r(a){var d=M[u];a.titled()!==d&&b(a,d);a.off().on(e,function(a,b){c.comment(b);s.fire("poComment",[c,b]);s.unsave(c,R)}).textarea(c.comment(),!0)}var s=this,A=s.mode,z=c.isHTML(),D=s.inv||!1,F=this.fmt||null,B=c.format()||null,J=c.is(s.active),R=0,P=s.sourceCell,T=s.targetCell,U=s.contextCell,X=s.commentCell,L=s.editable.target,N=s.editable.source,S=s.editable.context,W=c.source()||"",V=c.plural()||"",O=y,Y=s.targetLocale,M=s.labels;s.html!==z&&(s.html=z,"code"!==s.mode&&(A=z?"html":
"",s.setMode(A)));s.active=c;P&&d(P);U&&q(U);T&&Y&&(R=T.navigated()||0,h(T,Y,R));X&&r(X);O&&(O.exists()||(O=O.parent()),(z=O.editable())&&z.focus());F!==B&&(this.fmt=B);J||s.fire("poSelected",[c])};A.unloadActive=function(){var a;(a=this.$notes)&&a.text("").hide();(a=this.$errs)&&a.text("").hide();(a=this.sourceCell)&&a.off().clear();(a=this.contextCell)&&a.off().clear();(a=this.targetCell)&&a.off().clear();(a=this.commentCell)&&a.off();this.active&&(this.fire("poDeselected",[this.active]),this.active=
null);return this};A.loadNothing=function(){var a,b=this.t,c=this.mode||"",d=this.inv||!1,g=this.fmt;this.unloadActive();(a=this.commentCell)&&a.textarea("",!1);if(a=this.sourceCell)a.textarea("",!1).setStrf(g).setMode(c).setInvs(d),a.title(b._x("Source text not loaded","Editor")+":");if(a=this.contextCell)a.textarea("",!1).setMode(c).setInvs(d),a.title(b._x("Context not loaded","Editor")+":");if(a=this.targetCell)a.textarea("",!1).setStrf(g).setMode(c).setInvs(d),a.title(b._x("Translation not loaded",
"Editor")+":");this.fire("poSelected",[null])};A.updateListCell=function(a,b){var c=this.getListColumns()[b],d=this.getListEntry(a)[c||0](),g=this.po.indexOf(a);if(c=this.listTable.td(g,c))c.textContent=d};A.cellText=function(a){if(-1!==a.indexOf("<")||-1!==a.indexOf("&"))a=F(a);return a.replace(r,"")||"\u00a0"};A.fuzzy=function(b,c,d){if(!c){c=this.active;if(!c)return null;null==d&&(d=this.targetCell&&this.targetCell.navigated()||0)}var g=c.fuzzy(d);null==b||g==b||b&&!c.translated(d)||!this.fire("poFuzzy",
[c,b,d])||(c.fuzzy(d,b),this.fire(a,[c])&&this.unsave(c,d));return g};A.add=function(b,c){var d,g=this.po.get(b,c);g?d=this.po.indexOf(g):(d=this.po.length,g=this.po.add(b,c),this.load(this.po,-1),this.fire("poAdd",[g]),this.fire(a,[g]));this.lastSearch&&this.filter("");this.listTable.select(d);return g};A.del=function(b){if(b=b||this.active){var c=this.lastSearch,d=this.po.del(b);null!=d&&(this.unsave(b),this.fire("poDel",[b]),this.fire(a,[b]),this.reload(),this.dict&&this.rebuildSearch(),this.active&&
this.active.equals(b)&&this.unloadActive(),this.po.length&&(c&&this.filter(c),this.active||(d=Math.min(d,this.po.length-1),this.listTable.select(d))))}};A.setMono=function(a){return this.setMode(a?"code":this.html?"html":"")};A.setMode=function(a){this.mode!==a&&(this.mode=a,this.callTextareas(function(b){b.setMode(a)}));return this};A.getMono=function(){return"code"===this.mode};A.setInvs=function(a){(this.inv||!1)!==a&&(this.inv=a,this.callTextareas(function(b){b.setInvs(a)}),this.fire("poInvs",
[a]));return this};A.getInvs=function(){return this.inv||!1};A.callTextareas=function(a){var b=this.targetCell;b&&b.eachTextarea(a);(b=this.contextCell)&&b.eachTextarea(a);(b=this.sourceCell)&&b.eachTextarea(a);return this};A.focus=function(){var a=this.getTargetEditable();a&&a.focus();return this};A=null;return d}({},s,z));n.register("$25",function(d,f,h){Number.prototype.format=function(d){d=Math.pow(10,d||0);var b=Math.round(d*this)/d;d=[];var b=String(b),c=b.split("."),b=c[0],c=c[1],a=b.length;
do d.unshift(b.substring(a-3,a));while(0<(a-=3));b=d.join(",");if(d=c){d=c;for(var e,c=d.length;"0"===d.charAt(--c);)e=c;e&&(d=substring(0,e));d=c=d}d&&(b+="."+c);return b};Number.prototype.percent=function(d){var b=0,c=this&&d?100*(this/d):0;if(0===c)return"0";if(100===c)return"100";if(99<c){c=Math.min(c,99.99);do d=c.format(++b);while("100"===d.substr(0,3)&&2>b)}else if(0.5>c){c=Math.max(c,1E-4);do d=c.format(++b);while("0"===d&&4>b)}else d=c.format(0);return d};return d}({},s,z));n.register("$12",
function(d,f,h){function p(){this.init()._validate();this.sourceLocale={lang:"en",label:"English",plurals:["One","Other"]}}f=n.require("$24","base.js");n.require("$25","number.js");d.init=function(b){var c=new p;b=c.setRootCell(b);var a=b.splity("po-list","po-edit"),d=a[0],f=a[1],a=f.splitx("po-trans","po-comment"),k=a[0],g=a[1].header("Loading.."),a=k.splity("po-source","po-target"),k=a[0].header("Loading.."),a=a[1].header("Loading..");b.distribute([0.34]);f.distribute([0.8]);c.setListCell(d);c.setSourceCell(k);
c.setTargetCell(a);c.commentCell=g;c.editable.source=!1;return c};f=p.prototype=f.extend(p);f.getListHeadings=function(){var b=this.t||{_x:function(b){return b}};return[b._x("Source text","Editor"),b._x("Translation","Editor")]};f.getListColumns=function(){return{source:0,target:1}};f.getListEntry=function(b){flatten=this.cellText;return[function(){var c=flatten(b.source()||""),a=b.context();a&&(c+=" [ "+flatten(a)+" ]");return c},function(){return flatten(b.translation()||"")}]};f.stats=function(){var b=
this.po,c=b.length,a=0,d=0,f=0;b.each(function(b,c){c.fuzzy()?f++:c.translated()?a++:d++});return{t:c,p:a.percent(c)+"%",f:f,u:d}};f.unlock=function(){this._unlocked||(this._unlocked=this.targetLocale,delete this.targetLocale,this.po&&this.po.unlock(),this.editable={source:!0,context:!0,target:!1},this.contextCell=this.targetCell,delete this.targetCell,this.fire("poLock",[!1]),this.active&&this.loadMessage(this.active))};f.lock=function(){var b;this._unlocked&&(b=this.targetLocale=this._unlocked,
delete this._unlocked,this.po&&this.po.lock(b),this.editable={source:!1,context:!1,target:!0},this.targetCell=this.contextCell,delete this.contextCell,this.fire("poLock",[!0,b]),this.active&&this.loadMessage(this.active))};f.locked=function(){return!this._unlocked};f.getSorter=function(){function b(a,b){var d=a.weight(),g=b.weight();return d===g?c(a,b):d>g?-1:1}function c(a,b){return a.hash().localeCompare(b.hash())}var a=this;return function(d){var f=a.po,h=a.locked()?b:c;d.sort(function(a,b){return h(f.row(a),
f.row(b))})}};return d}({},s,z));n.register("$13",function(d,f,n){var p={copy:66,clear:75,save:83,fuzzy:85,next:40,prev:38,enter:13,invis:73},b={38:!0,40:!0,73:!0},c={66:function(a,b){var c=b.current();c&&(c.normalize(),b.focus().pasteMessage(c))},75:function(a,b){var c=b.current();c&&(c.untranslate(),b.focus().pasteMessage(c))},85:function(a,b){b.focus().fuzzy(!b.fuzzy())},13:function(a,b){b.getFirstEditable()&&b.next(1,!0,!0)},40:function(a,b){var c=a.shiftKey;b.next(1,c,c)},38:function(a,b){var c=
a.shiftKey;b.next(-1,c,c)},73:function(a,b){if(!a.shiftKey)return!1;b.setInvs(!b.getInvs())}};d.init=function(a,d){function m(d){if(d.isDefaultPrevented()||!d.metaKey&&!d.ctrlKey)return!0;var e=d.which;if(!k[e])return!0;var f=c[e];if(!f)throw Error("command undefined #"+e);if(d.altKey||d.shiftKey&&!b[e]||!1===f(d,a))return!0;d.stopPropagation();d.preventDefault();return!1}var k={};h(d||f).on("keydown",m);return{add:function(a,b){c[p[a]]=b;return this},enable:function(){var a,b;for(b in arguments)a=
p[arguments[b]],k[a]=!0;return this},disable:function(){h(d||f).off("keydown",m);a=d=k=null}}};return d}({},s,z));n.register("$27",function(d,f,h){function p(b,c){var a=RegExp("^.{0,"+(b-1)+"}["+c+"]"),d=RegExp("^[^"+c+"]+");return function(c,f){for(var g=c.length,l;g>b;){l=a.exec(c)||d.exec(c);if(null==l)break;l=l[0];f.push(l);l=l.length;g-=l;c=c.substr(l)}0!==g&&f.push(c);return f}}d.create=function(b){function c(a){return l[a]||"\\"+a}var a,d,f=/(?:\r\n|[\r\n\v\f\u2028\u2029])/g,h=/[ \r\n]+/g,
g=/[\t\v\f\x07\x08\\\"]/g,l={"\t":"\\t","\v":"\\v","\f":"\\f","\u0007":"\\a","\b":"\\b"};if(null==b||isNaN(b=Number(b)))b=79;0<b&&(a=p(b-3," "),d=p(b-2,"-\u2013 \\.,:;\\?!\\)\\]\\}\\>"));return{pair:function(a,l){if(!l)return a+' ""';l=l.replace(g,c);var h=0;l=l.replace(f,function(){h++;return"\\n\n"});if(!(h||b&&b<l.length+a.length+3))return a+' "'+l+'"';var k=[a+' "'],p=l.split("\n");if(d)for(var n=-1,s=p.length;++n<s;)d(p[n],k);else k=k.concat(p);return k.join('"\n"')+'"'},prefix:function(a,b){var c=
a.split(f);return b+c.join("\n"+b)},refs:function(b){b=b.replace(h," ",b);a&&(b=a(b,[]).join("\n#: "));return"#: "+b}}};return d}({},s,z));n.register("$39",function(d,f,h){function p(){this.length=0}d.init=function(){return new p};f=p.prototype;f.push=function(b){this[this.length++]=b;return this};f.sort=function(b){[].sort.call(this,b);return this};f.each=function(b){for(var c=-1,a=this.length;++c<a;)b(c,this[c]);return this};return d}({},s,z));n.register("$28",function(d,f,h){function p(){}d.extend=
function(b){return b.prototype=new p};f=p.prototype=n.require("$37","abstract.js").init(["add","load"]);f.row=function(b){return this.rows[b]};f.lock=function(b){return this.locale(b||{lang:"zxx",label:"Unknown",nplurals:1,pluraleq:"n!=1"})};f.unlock=function(){var b=this.loc;this.loc=null;return b};f.locale=function(b){null==b?b=this.loc:this.loc=b=n.require("$36","locale.js").cast(b);return b};f.each=function(b){this.rows.each(b);return this};f.indexOf=function(b){"object"!==typeof b&&(b=this.get(b));
if(!b)return-1;null==b.idx&&(b.idx=this.rows.indexOf(b.hash()));return b.idx};f.get=function(b){return this.rows&&this.rows.get(b)};f.del=function(b){b=this.indexOf(b);if(-1!==b){var c=this.rows.cut(b,1);if(c&&c.length)return this.length=this.rows.length,this.rows.each(function(a,b,c){b.idx=c}),b}};f.reIndex=function(b,c){var a=this.indexOf(b),d=b.hash(),f=this.rows.indexOf(d);return f===a?a:-1!==f?(c=(c||0)+1,b.source("Error, duplicate "+String(c)+": "+b.source()),this.reIndex(b,c)):this.rows.key(a,
d)};f.sort=function(b){this.rows.sort(b);return this};f["export"]=function(){for(var b=-1,c=this.rows,a=c.length,d=n.require("$39","list.js").init();++b<a;)d.push(c[b]);return d};f=null;return d}({},s,z));n.register("$29",function(d,f,h){function p(){this.id=this._id=this.ref=this.cmt=this.xcmt=""}d.extend=function(b){return b.prototype=new p};f=p.prototype;f.flag=function(b,c){var a=this.flg||(this.flg=[]);if(null!=c)a[c]=b;else for(var d=Math.max(a.length,this.src.length,this.msg.length);0!==d--;)a[d]=
b;return this};f.flagged=function(b){var c=this.flg||[];if(null!=b)return c[b]||0;for(b=c.length;0!==b--;)if(c[b])return!0;return!1};f.flags=function(){for(var b,c={},a=[],d=this.flg||[],f=d.length;0!==f--;)b=d[f],c[b]||(c[b]=!0,a.push(b));return a};f.flaggedAs=function(b,c){var a=this.flg||[];if(null!=c)return b===a[c]||0;for(var d=a.length;0!==d--;)if(a[d]===b)return!0;return!1};f.fuzzy=function(b,c){var a=this.flaggedAs(4,b);null!=c&&this.flag(c?4:0,b);return a};f.source=function(b,c){if(null==
b)return this.src[c||0]||"";this.src[c||0]=b;return this};f.plural=function(b,c){if(null==b)return this.src[c||1]||"";this.src[c||1]=b||"";return this};f.each=function(b){for(var c=-1,a=this.src,d=this.msg,f=Math.max(a.length,d.length);++c<f;)b(c,a[c],d[c]);return this};f.count=function(){return Math.max(this.src.length,this.msg.length)};f.pluralized=function(){return 1<this.src.length||1<this.msg.length};f.translate=function(b,c){this.msg[c||0]=b||"";return this};f.untranslate=function(b){if(null!=
b)this.msg[b]="";else{var c=this.msg,a=c.length;for(b=0;b<a;b++)c[b]=""}return this};f.translation=function(b){return this.msg[b||0]||""};f.errors=function(b){return this.err&&this.err[b||0]||[]};f.translated=function(b){if(null!=b)return!!this.msg[b];var c=this.msg,a=c.length;for(b=0;b<a;b++)if(!c[b])return!1;return!0};f.comment=function(b){if(null==b)return this.cmt;this.cmt=b||"";return this};f.notes=function(b){if(null==b)return this.xcmt;this.xcmt=b||"";return this};f.refs=function(b){if(null==
b)return this.ref;this.ref=b||"";return this};f.format=function(b){if(null==b)return this.fmt;this.fmt=b;return this};f.context=function(b){if(null==b)return this.ctx||"";this.ctx=b||"";return this};f.toString=f.toText=function(){return this.src.concat(this.msg,[this.id,this.ctx]).join(" ")};f.weight=function(){var b=0;this.translation()||(b+=2);this.fuzzy()&&(b+=1);return b};f.equals=function(b){return this===b||this.hash()===b.hash()};f.hash=function(){return this.id};f.normalize=function(){for(var b=
this.msg.length;0!==b--;)this.msg[b]=this.src[b]||""};f.disabled=function(b){return!!(this.lck||[])[b||0]};f.disable=function(b){(this.lck||(this.lck=[]))[b||0]=!0;return this};f.saved=function(b){var c=this.drt;if(!c)return!0;if(null!=b)return!c[b];for(b=c.length;0!==b--;)if(c[b])return!1;return!0};f.unsave=function(b){(this.drt||(this.drt=[]))[b||0]=!0;return this};f.save=function(b){var c=this.drt;null==b?this.drt=null:c[b]=!1;return this};f.is=function(b){return b&&(b===this||b.idx===this.idx)};
f.isHTML=function(b){if(null==b)return this.htm||!1;this.htm=b};f=null;return d}({},s,z));n.register("$14",function(d,f,h){function p(a){return{"Project-Id-Version":"PACKAGE VERSION","Report-Msgid-Bugs-To":"","POT-Creation-Date":a||"","PO-Revision-Date":a||"","Last-Translator":"","Language-Team":"",Language:"","Plural-Forms":"","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit"}}function b(a,b){var c=a||"";b&&(c+="\x00"+b);return c}function c(){return n.require("$26",
"collection.js").init()}function a(a){var b=f.console;b&&b.error&&b.error(a.message||String(a))}function e(a){return n.require("$27","format.js").create(a)}function m(a){this.locale(a);this.length=0;this.rows=c();this.head=p(this.now())}function k(a,b){this.src=[a||""];this.msg=[b||""]}d.create=function(a){return new m(a)};h=n.require("$28","messages.js").extend(m);h.now=function(){function a(b,c){for(var d=String(b);d.length<c;)d="0"+d;return d}var b=new Date,c=b.getUTCFullYear(),d=b.getUTCMonth()+
1,e=b.getUTCDate(),f=b.getUTCHours(),b=b.getUTCMinutes();return a(c,4)+"-"+a(d,2)+"-"+a(e,2)+" "+a(f,2)+":"+a(b,2)+"+0000"};h.header=function(a,b){var c=this.head||(this.head={});if(null==b)return this.headers()[a]||"";c[a]=b||"";return this};h.headers=function(a){var b,c=this.now(),d=this.head||(this.head=p(c));if(null!=a){for(b in a)d[b]=a[b];return this}var e=this.locale();a={};for(b in d)a[b]=String(d[b]);e?(a.Language=String(e)||"zxx",a["Language-Team"]=e.label||a.Language,a["Plural-Forms"]=
"nplurals="+(e.nplurals||"2")+"; plural="+(e.pluraleq||"n!=1")+";",b="PO-Revision-Date"):(a.Language="",a["Plural-Forms"]="nplurals=INTEGER; plural=EXPRESSION;",a["PO-Revision-Date"]="YEAR-MO-DA HO:MI+ZONE",b="POT-Creation-Date");a[b]||(a[b]=c);a["X-Generator"]="Loco https://localise.biz/";return a};h.get=function(a,c){var d=b(a,c);return this.rows.get(d)};h.add=function(b,c){b instanceof k||(b=new k(b));c&&b.context(c);var d=b.hash();this.rows.get(d)?a("Duplicate message at index "+this.indexOf(b)):
(b.idx=this.rows.add(d,b),this.length=this.rows.length);return b};h.load=function(b){for(var c=-1,d,e,f,h,m,p,n=(f=this.locale())&&f.nplurals||2,s=[];++c<b.length;)d=b[c],null==d.parent?(e=d.source||d.id,f=d.target||"",h=d.context,e||h?(m=new k(e,f),m._id=d._id,h&&m.context(h),d.flag&&m.flag(d.flag,0),d.comment&&m.comment(d.comment),d.notes&&m.notes(d.notes),d.refs&&m.refs(d.refs),m.format(d.format),d.message=m,this.add(m)):0===c&&"object"===typeof f&&(this.head=f,this.headcmt=d.comment)):s.push(d);
for(c=-1;++c<s.length;)try{d=s[c];e=d.source||d.id;m=b[d.parent]&&b[d.parent].message;if(!m)throw Error("parent missing for plural "+e);p=d.plural;1===p&&m.plural(e);p>=n||(d.flag&&m.flag(d.flag,p),m.translate(d.target||"",p),d.format&&!m.format()&&m.format(d.format))}catch(z){a(z)}return this};h.merge=function(b){var d=this,e,f=b.header("POT-Creation-Date"),h=d.rows,k=[],m=[];b=b.rows;d.rows.each(function(a,c){null==b.get(a)&&m.push(c)});d.rows=c();b.each(function(b,c){try{(e=h.get(b))?(e.ref=c.ref,
e.fmt=c.fmt):(e=c,k.push(e)),d.add(e)}catch(g){a(g)}});f&&d.header("POT-Creation-Date",f);return{add:k,del:m}};h.wrap=function(a){this.fmtr=e(a);return this};h.toString=function(){var a,b=this.locale(),c=[],d=[],f=this.headers(),h=!b,m=b&&b.nplurals||2,p=this.fmtr||e();f[b?"PO-Revision-Date":"POT-Creation-Date"]=this.now();for(a in f)d.push(a+": "+f[a]);d=new k("",d.join("\n"));d.comment(this.headcmt||"");h&&d.fuzzy(0,!0);c.push(d.toString());c.push("");this.rows.each(function(a,b){a&&(c.push(b.cat(p,
h,m)),c.push(""))});return c.join("\n")};h=n.require("$29","message.js").extend(k);h.hash=function(){return b(this.source(),this.context())};h.toString=function(){return this.cat(e())};h.cat=function(a,b,c){var d,e=[],f;(f=this.cmt)&&e.push(a.prefix(f,"# "));(f=this.xcmt)&&e.push(a.prefix(f,"#. "));d=this.ref;if(f=this._id)d+=(d?" ":"")+"loco:"+f;d&&/\S/.test(d)&&e.push(a.refs(d));!b&&this.fuzzy()&&e.push("#, fuzzy");(f=this.fmt)&&e.push("#, "+f+"-format");(f=this.ctx)&&e.push(a.pair("msgctxt",f));
e.push(a.pair("msgid",this.src[0]));if(null==this.src[1])e.push(a.pair("msgstr",b?"":this.msg[0]));else for(d=-1,e.push(a.pair("msgid_plural",this.src[1])),f=this.msg||["",""],c=c||f.length;++d<c;)e.push(a.pair("msgstr["+d+"]",b?"":f[d]||""));return e.join("\n")};h.compare=function(a,b){var c=this.weight(),d=a.weight();if(c>d)return 1;if(c<d)return-1;if(b){c=this.hash().toLowerCase();d=a.hash().toLowerCase();if(c<d)return 1;if(c>d)return-1}return 0};h=h=null;return d}({},s,z));n.register("$16",function(d,
f,n){d.init=function(d){function b(){h(r).addClass("jshide");I&&E&&h(I).removeClass("jshide").hide().fadeIn(500)}function c(){if(E)return H&&H.dialog("close"),b(),h(d).find('button[type="submit"]').attr("disabled",!1),h(f).triggerHandler("resize"),u&&u(!0),!0;F&&H?(h(r).removeClass("jshide").hide().fadeIn(500),I&&h(I).addClass("jshide")):b();h(d).find('input[type="submit"]').attr("disabled",!0);u&&u(!1);return!1}function a(a){var b,c;for(b in z)c=z[b],a[b]?a[b].value=c:h('<input type="hidden" />').attr("name",
b).appendTo(a).val(c)}function e(a){a.preventDefault();a=h(a.target).serializeArray();s(a);q=!0;return!1}function m(a){a.preventDefault();H.dialog("close");return!1}function k(a){a.preventDefault();H.dialog("open");return!1}function g(b){z=b.authed&&b.creds;y=b.method;b.notice&&B.notices.info(b.notice);if(z)"direct"!==y&&(a(d),q&&b.success&&B.notices.success(b.success)),E=!0,c();else if(E=!1,b.reason)B.notices.info(b.reason);else if(b=b.prompt){var g;H||(G.click(k),H=h('<div id="loco-fs-creds"></div>').dialog({dialogClass:"request-filesystem-credentials-dialog loco-modal",
minWidth:580,modal:!0,autoOpen:!1,closeOnEscape:!0}));g=H;g.html(b).find("form").submit(e);g.dialog("option","title",g.find("h2").remove().text());g.find("button.cancel-button").show().click(m);g.find('input[type="submit"]').addClass("button-primary");c();h(f).triggerHandler("resize")}else B.notices.error("Server didn't return credentials, nor a prompt for credentials")}function l(){c()}function s(a){q=!1;a.path=F;a.auth=A;B.ajax.setNonce("fsConnect",v).post("fsConnect",a,g,l);return a}var z,u,r=
d,y=null,q=!1,E=!1,B=f.locoScope,F=d.path.value,A=d.auth.value,v=d["loco-nonce"].value,G=h(r).find("button.button-primary"),I=n.getElementById(r.id+"-warn"),H;I&&B.notices.convert(I).stick();d.connection_type?(z={},z.connection_type=d.connection_type.value,E=!0):F&&A&&s({});c();return{applyCreds:function(b){if(b.nodeType)a(b);else{var c,d=z||{};for(c in d)b[c]=d[c]}return this},setForm:function(b){d=b;c();a(b);return this},connect:function(){F=d.path.value;A=d.auth.value;s(h(d).serializeArray());
return this},listen:function(a){u=a;E&&a(!0);return this}}};return d}({},s,z));n.register("$17",function(d,f,s){function p(d,f,g,h){f="n"===g?c(f):a(f);h&&(f=e(f));return b([].sort,[f])(d)}function b(a,b){return function(c){a.apply(c,b);return c}}function c(a){return function(b,c){var d=b&&b[a]||0,e=c&&c[a]||0;return d===e?0:d>e?1:-1}}function a(a){return function(b,c){return(b&&b[a]||"").localeCompare(c&&c[a]||"")}}function e(a){return function(b,c){return-1*a(b,c)}}d.init=function(a){function b(a){var c=
-1,d=a.length;for(h("tr",q).remove();++c<d;)q.appendChild(a[c].$)}function c(a){s=a?B.find(a,d):d.slice(0);y&&(a=e[y],s=p(s,y,a.type,a.desc));b(s)}var d=[],e=[],f=0,s,r,y,q=a.getElementsByTagName("tbody")[0],z=a.getElementsByTagName("thead")[0],B=n.require("$7","fulltext.js").init();z&&q&&(h("th",z).each(function(a,c){var g=c.getAttribute("data-sort-type");g&&(a=f,h(c).addClass("loco-sort").click(function(c){c.preventDefault();c=a;var f=e[c],g=f.type,m=!(f.desc=!f.desc);s=p(s||d.slice(0),c,g,m);b(s);
r&&r.removeClass("loco-desc loco-asc");r=h(f.$).addClass(m?"loco-desc":"loco-asc").removeClass(m?"loco-asc":"loco-desc");y=c;return!1}),e[f]={$:c,type:g});c.hasAttribute("colspan")?f+=Number(c.getAttribute("colspan")):f++}),h("tr",q).each(function(a,b){var c,f,g,h=[],k={_:a,$:b},m=b.getElementsByTagName("td");for(f in e){c=m[f];(g=c.textContent.replace(/(^\s+|\s+$)/g,""))&&h.push(g);c.hasAttribute("data-sort-value")&&(g=c.getAttribute("data-sort-value"));switch(e[f].type){case "n":g=Number(g)}k[f]=
g}d[a]=k;B.index(a,h)}),a=h('form.loco-filter input[type="text"]',a.parentNode),a.length&&(a=a[0],z=h(a.form),1<d.length?n.require("$8","LocoTextListener.js").listen(a,c):z.hide(),z.on("submit",function(a){a.preventDefault();return!1})))};return d}({},s,z));var J=s.locoScope||(s.locoScope={});s=s.locoConf||(s.locoConf={});z=n.require("$1","t.js").init();var P=s.wplang;n.require("$2","array.js");J.l10n=z;z.load(s.wpl10n);P&&z.pluraleq(P.pluraleq);J.string=n.require("$3","string.js");J.notices=n.require("$4",
"notices.js").init(z);J.ajax=n.require("$5","ajax.js").init(s).localise(z);J.locale=n.require("$6","wplocale.js");J.fulltext=n.require("$7","fulltext.js");J.watchtext=n.require("$8","LocoTextListener.js").listen;J.selector=n.require("$9","LocoSelector.js").create;J.autocomp=n.require("$10","LocoAutoComplete.js").init;J.tooltip=n.require("$11","tooltip.js");J.po={ed:n.require("$12","poedit.js"),kbd:n.require("$13","hotkeys.js"),init:n.require("$14","po.js").create,ace:n.require("$15","ace.js").strf("php")};
J.fs=n.require("$16","fsconn.js");h("#loco.wrap table.wp-list-table").each(function(d,f){n.require("$17","tables.js").init(f)})})(window,document,window.jQuery);