(function(v,z,h,T){var m=function(){var d={};return{register:function(e,h){d[e]=h},require:function(e,h){var n=d[e];if(!n)throw Error('CommonJS error: failed to require("'+h+'")');return n}}}();m.register("$1",function(d,e,h){function n(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(f,b,c){return(f=a[f])&&f[c]?f[c]:b||
""}b=n(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,p,k){k=Number(b(k));isNaN(k)&&(k=0);return c(a,k?p:a,k)},load:function(f){a=f||{};return this},pluraleq:function(a){b=n(a);return this}}};return d}({},v,z));m.register("$2",function(d,e,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=a)return-1;for(b=0<=b?b:Math.max(a-Math.abs(b),0);b');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 w,q=h('');
b=function(a,b){w=h('');w.click(function(a){"function"===typeof b.callback&&b.callback(a,{close:l})});q.append(w);return w};for(a=0;a');p=h('');k=h('');l=h('Untitled
');A=h("");D=h('x');
g=h('');f.append(p.append(k)).append(g).prependTo(m.body);h(m).on("keydown",n);h(e).resize(b);F=e.innerWidth;y=e.innerHeight;C=k.outerWidth(!0)-k.width()+(p.innerWidth()-p.width());E=parseInt(k.css("width"));if(!E||isNaN(E))E=k.width();A.hide().prependTo(p);l.append(D.hide()).hide().prependTo(p);f.hide()}return f},K=d.width=function(a){var b=G();if(null===a)p.css("width",""),k.css("width","");else{a=a||E||640;x=a+C;u=a;var g=F;x>g?(x=g,a=x-C,b.addClass("spill")):b.removeClass("spill");
p.css("width",x+"px");k.css("width",a+"px")}return d};d.autoSize=function(){var a=G(),b=E||0;k.children().each(function(a,g){b=Math.max(b,h(g).outerWidth(!0))});K(b);if(s=a.find("div.overlay-scroll")[0])y=e.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();e.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 b=function(){G().hide();h(m.body).removeClass("has-overlay");r=!1;k.html("");r=null;f.trigger("overlayClosed",[d])};null==a&&(a=300);f.trigger("overlayClosing",[d]);a?f.fadeOut(a,b):b()}return d};d.title=function(b,g){G();var f="",r=l.find("span");g&&/^lang lang-(\w+)/.exec(g)&&(f=RegExp.$1);r.eq(0).attr("class",g||"no-icon").attr("lang",f);q=b||"";r.eq(1).text(q);null!=b?a(!0):w||a(!1);return d};d.enableClose=function(){G();
w=!0;D.off("click").on("click",function(){H();return!1});a(!0);D.show();return d};d.disableClose=function(){G();w=!1;D.hide();r&&q||a(!1);return d};d.enableNav=function(a){A.append(a);A.show();return d};d.disableNav=function(){A.html("").hide();return d};d.open=function(){G();k.html("");K(E);f.attr("class","");h(m.body).addClass("has-overlay");G().show();r||(r=!0,b());d.title(null);w&&a(!0);f.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}({},v,z));m.register("$11",function(d,e,m){function n(a,b){this.$element=h(a);this.options=b;this.enabled=!0;this.fixTitle()}d.init=function(a,f){var p={fade:!0,offset:5,delayIn:b,delayOut:c,anchor:a.attr("data-anchor"),gravity:a.attr("data-gravity")||"s"};f&&(p=h.extend({},p,f));a.tipsy(p)};d.delays=function(a,f){b=a||150;c=f||100};d.kill=function(){h("div.tipsy").remove()};d.text=function(a,b){b.data("tipsy").setTitle(a)};
var b,c;d.delays();h(m.body).on("overlayOpened overlayClosing",function(a){d.kill();return!0});n.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(m.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('').html(''),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 n(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(m).scrollTop()+h(e).height()/2?"s":"n"};h.fn.tipsy.autoWE=function(){return h(this).offset().left>h(m).scrollLeft()+h(e).width()/
2?"e":"w"};h.fn.tipsy.autoBounds=function(a,b){return function(){var c=b[0],d=1clear').click(function(a){d.value="";p();return!1});a(d.value);h(d).on("input blur focus",function(){p();return!0}).after(s);c();return{delay:function(a){l=a},ping:function(b){b?
(g&&clearTimeout(g),b=d.value,A&&b===A&&(b=""),a(b),f(),b=void 0):b=p();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}({},v,z));m.register("$22",function(d,e,B){var n,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){n=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,p,k){function g(a){function b(a){var g=a&&a[0];if(!g||
B.contains&&!B.contains(g))a=h(B.body);return a}a.alert&&alert(a.alert);var g=a.success,c=b(k);g&&m.require("$35","growl.js").success.apply(null,g.push?g:[g]);c.trigger("locoAjaxSuccess",[a]);if((g=a.events)&&g.length)for(var l,q=m.require("$31","ga.js");l=g.shift();)c=b(c),c.trigger(l,[a]),q.event("ajax",l);if(c=a.download)e.location.assign(c);else if(c=a.redirect)if(0===c.indexOf("/modal/"))a.modal={url:c};else return e.location.assign(c),!1;else if(a.reload)return e.location.reload(),!1;(c=a.modal)&&
m.require("$32","modal.js").replace(c);p&&p();return!0}function l(a,l,k){if("abort"!==l){var r=a.status,w;if(401===r)m.require("$32","modal.js").load("/modal/user/ping.json?r="+encodeURIComponent(location.pathname),c[r]);else{if("parsererror"===l)e.console&&console.error&&console.error(r,a.responseText),w=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&&(w=q.error)}"function"===
typeof b&&!1===b(null,w,r,a)?p&&p():q&&q.data&&!g(q.data)||(alert(w||"Unknown Ajax error"),p&&p())}}}(a.headers||(a.headers={}))["X-Loco-Csrf"]=e.loco&&J.csrf||"";a.error=l;a.success=function(a,k,s){if(!a||"object"!==typeof a)return l(s,"unknown");n&&d.keepAlive(n);(a.status||a.error)&&alert(a.error||a.statusText||s.statusText||c[a.status]||"Unknown Error");"function"===typeof b&&!1===b(a&&a.data?a.data:a,null,k,s)?p&&p():a&&a.data?g(a.data):p&&p()};-1!==a.url.indexOf(".json")&&(a.dataType="json");
return h.ajax(a)};return d}({},v,z));m.register("$32",function(d,e,B){function n(a){a.stopPropagation();a.preventDefault();return!1}function b(){l||(l=m.require("$42","overlay.js"),l.listen(p));return l}function c(){var a=s.length-1,b=s[a],g=h('Back').attr("href",b[0]).attr("title",b[1]).click(function(g){if(s[a]===b&&E())return m.require("$11","tooltip.js").kill(),n(g)});l.enableNav(g);m.require("$11","tooltip.js").init(g)}function a(a,b,g){a=a.split("#");
var c=a[0],c=c+(-1===c.indexOf("?")?"?":"&"),c=c+(encodeURIComponent(b)+"="+encodeURIComponent(g));a[0]=c;return a.join("#")}function f(a,g){var q=b().autoSize(),l=q.init();m.require("$18","html.js").init(l);g&&g.lock&&q.disableClose();s.length&&c();l.find("[data-script]").each(function(a,b){b=h(b);for(var c=-1,q,l=b.attr("data-script").split(" ");++cr)continue a;h(l).focus();break a}}function p(){r=null;s=[];return!0}function k(a){var b=h(a.currentTarget),c=b.attr("data-modal");if("back"===c){if(E())return n(a);c="close"}if("close"===c){q();var l=b.attr("href");if(l&&-1!==l.indexOf("#!"))return!0}else{var f="submit"===a.type,r=b.attr("title")||b.attr("data-title"),l=b.attr("href")||b.attr("action"),
d=f?b.serialize():"",b=f?b.attr("method"):"get";w(l,r,b,d,"modal "+(c||g(l)))}return n(a)}function g(a){return"http"===a.substr(0,4)?a.split("/").slice(3,6).join("-"):a.split("/").slice(1,4).join("-")}var l,A=m.require("$31","ga.js"),D={},s=[],r,w=d.load=function(g,c,q,y,p){var k=r;r=[].slice.call(arguments);k&&g!==k[0]&&(s.push(k),g=a(g,"r",k[0]));k=b();k.active()||k.open().css("modal").html('');k.title("Loading ..").disableClose().disableNav();k.think();var k=g.split("#"),
E=k[1];E&&(g=k[0]);var k=m.require("$22","http.js"),D={type:q||"get",data:y||"",url:k.jsonLink(g)};k.ajax(D,function(a,b,d){var k=a&&a.html;if(!k)return a&&a.redirect?(r=s.pop()||null,w(a.redirect,c,q,y,p)):(a=h('').text(b||"Unknown error"),b=h(''),a=h('').append(a).append(b),b="Error",d&&200!==d&&(b+=" "+d),l.unthink().enableClose().title(b).html("").append(a),
m.require("$18","html.js").init(l.init())),!1;c=a.title||c||"Untitled";r&&(r[1]=c);l.unthink().enableClose().title(c,a.icon).width(null).css(p||"modal").autoSize().html(k);d=a.js||{};E&&(d["#"]=E);f(g,d);A.page(g,c);l.init().one("overlayClosed",function(){A.reset()});return!0});return d},q=d.close=function(){b().close();return d},E=d.back=function(){if(previous=s.pop())return r=s[s.length-2],w.apply(null,previous),!0};d.reload=function(){r&&w.apply(null,r)};d.postback=function(a){r&&(r[2]="post",
r[3]=a,w.apply(null,r))};d.initLink=function(a){a.click(k)};d.initForm=function(a){h(a).submit(k)};d.replace=function(a){var c=b(),q=a&&a.html,l=a&&a.url,r=a&&a.title,A=a&&a.action;if(l)q=s.length-1,q=0<=q?s[q][0]:void 0,l===q?E():w(l,r,"","",a&&a.css||"modal "+g(l));else if(q)c.open().html(q),r&&c.enableClose().title(r),f("",a&&a.js);else if("function"===typeof d[A])d[A]();return c};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");D[a]=b.run;return d}return D[a]};d.hash=function(a){var b=a.hash;"#/modal/"===b.substr(0,8)&&(b=b.substr(1),a.hash="",d.replace({url:b}))};return d}({},v,z));m.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"});m.register("$7",function(d,e,h){d.init=function(){function d(a){return A[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 f(a,g){for(var f=[],
d={},q,A=g.length,p=l;0!==A--;)(q=g[A])&&c(b(q),p,f,d);k[a]=f}function p(a,b){var g=[],c=-1,q=k,l=q.length,f,d,A,y,p,e,h=a.length,n=b?!0:!1;a:for(;++c\[\]\/\\\u00a0\u1680\u180e\u2000-\u206f\u2e00-\u2e7f\u3000-\u303f]+/,A=m.require("$21","flatten.json");return{split:a,norm:b,pull:function(a,b){return p(a,
b)},find:function(b,g){return p(a(b),g)},add:function(b,g){k[b]=a(g)},push:function(a){f(k.length,a)},index:function(a,b){f(a,b)},size:function(){return k.length},clear:function(){k=[]},remove:function(a){k[a]=null}}};return d}({},v,z));m.register("$23",function(d,e,h){d.create=function(){var d=[],b=m.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}({},
v,z));m.register("$10",function(d,e,B){function n(b){-1===b.indexOf("?")&&(b="/auto/"+b+".json?q=");this.url=b;this.dead={}}function b(){this.dict=m.require("$23","dict.js").create()}d.init=function(c){function a(){if("hint"!==K){var a=y.val()&&!(I&&I.val())&&null==F&&!q;M[a?"addClass":"removeClass"]("error")}}function f(a){I&&I.val(a)}function d(){B.show();var a=y.outerWidth(!1),b=y.outerHeight(!1),g=y.css("margin-top");g&&(g=parseInt(g),isNaN(g)||(b+=g));a-=2;B.css("top",b+"px").css("width",a+"px");
q=!0}function k(){B.hide();q=!1}function g(){B.html("");k();w=0;u=F=null}function l(b){g();var c;for(c=0;c').text(l.label),k=h(''),s=void 0,C=void 0;if(C=l.icon)s=h("").attr("class",C).appendTo(k),r?(s.attr("lang",r),l.lang=r):-1!==C.indexOf("lang-"+f)&&(s.attr("lang",f),l.lang=f);for(C in l)k.data(C,l[C]);k.append(y);A(q,k)}(w=b.length)?(E&&d(),e(0)):(e(null),
a(),M.trigger("locoAutonone",[]))}function A(a,b){B.append(b);b.click(function(g){g.stopPropagation();e(a,b);r();return!1});return b}function e(a,b){u&&(u.removeClass("selected"),u=null);F=null;null==a?f(""):(b||(b=B.find("div.auto-comp-result").eq(a)),b.length&&(b.addClass("selected"),F=a,u=b))}function s(a){if(w){var b=w-1;null==F?a=0a?a=b:a>b&&(a=0));return e(a)}}function r(){if(null==F)R.val(""),f("");else{var b=B.find("div.auto-comp-result").eq(F),c=b.data()||{label:"Error"},
q=c.value,l=c.label;f(q);R.val(l);k();b=b.clone();b.data(c);g();A(0,b);w=1;e(0,b);a();b.trigger("locoAutocomp",[q,l,b])}}var w=0,q=!1,E=!1,C=c.form,F=null,u=null,y=h(c),G=y.attr("name"),K=y.attr("data-mode"),H=y.attr("data-provider"),I="hint"!==K&&h('').appendTo(C),M=h('').replaceAll(y),B=h('');H&&(H=new n(H));I&&y.attr("name","_"+G);y.attr("autocomplete")||y.attr("autocomplete","off");
M.append(y).append(B);k();y.focus(function(a){E=!0;1').appendTo(c.form));this.list=h("");this.icon=h(' ');this.selection=h('');this.handle=h('').attr("tabindex",a.attr("tabindex")||"").append(this.icon).append(this.selection);b=h('').addClass(c.className).append(this.handle).append(this.list).replaceAll(c);
f&&b.attr("id",f);d&&a.hasClass("hastip")&&(b.attr("title",d),m.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=p.shift();)this.addOption.apply(this,b);this.enable();this.close();if(k=r.length)for(q=0;qf&&(c-=f-a.width(),a.css("min-width",String(c)+"px"))};k.open=function(){var b=this.list,f=this.wrapper,d=f.data("tipsy");this.active=!0;this.hover=-1;f.addClass("active");b.show().scrollTop(0);d&&d.disable();this!==p&&(p&&c(p),h(e).on("resize scroll",a),p=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=0a){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,f,d,p){var r=this.options.length,k=h("").addClass(f||"icon no-icon"),q=h('').text(c||a),q=h("").append(k).append(q).appendTo(this.list);p?p=p.split("-").shift():f&&-1!==f.indexOf("lang-"+a)&&(p=a);p&&k.attr("lang",p);q.attr("data-option",r);this.options[r]=
{value:a,text:c,lang:p||"",icon:f};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){var c=this.getElement(a);c&&b(this,a,c).removeClass("disabled");return this};k.each=function(a){for(var b=-1,c=this.options,f=c.length;++b<
f;)a(b,c[b]);return this};k.reIndex=function(){for(var a=-1,b={},c=this.options,f=c.length;++a').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",f=[a].concat(this.eventData||[]);this.wrapper.trigger(c,f);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],f=this.options[c];f&&(f.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.tip=function(){return this.getWrapper().data("tipsy")};k.$=function(a,b){h.fn[a].apply(this.wrapper,b||[]);return this};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}({},v,z));m.register("$33",function(d,e,B){function n(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 f,d,k,g=h('')[0],l=this.options,A=l.length,e=-1;++ef.length;)f="0"+f;return f}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 f=this;return a.replace(/%[YmdHisMjSghAa]/g,function(a){return f[a.charAt(1)](b)})},Y:function(b){return String(b.getFullYear())},m:function(b){return n(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 n(b.getDate(),2)},H:function(b){return n(b.getHours(),2)},i:function(b){return n(b.getMinutes(),2)},s:function(b){return n(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:12b.getHours()?"am":
"pm"},A:function(b){return 12>b.getHours()?"AM":"PM"}}};return d}({},v,z));m.register("$34",function(d,e,B){function n(a){var c=a.id,d=p||(p=[]),r=k||(k={}),w=a.getAttribute("datetime"),w=l(w);if(!isNaN(w))return c||(c="tick"+ ++g,a.setAttribute("id",c)),a={id:c,el:a,dt:new Date(w),st:a.textContent},r[c]||d.push(a),r[c]=a,f||(f=setTimeout(b,200)),a}function b(){for(var a=p,d=a.length,g={},r=[];0q)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(f/864E5)-Math.floor(d/864E5);f=m.require("$43","date.js").formatter();q=f.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:f.format(a,"%M %j%S %Y,")+q}var f,p,k,g=0,l=Date.parse||function(){return Number.NaN};d.onEach=function(a,b){n(b)};d.update=function(a){c(n(a))};d.rel=a;return d}({},v,z));m.register("$18",function(d,e,B){var n=e.ieVersion;d.ie=function(b){return b?
n<=b:n};var b=d.init=function(b){b?b instanceof jQuery||(b=h(b)):b=h(B.body);var a=m.require("$31","ga.js"),f=m.require("$19","forms.js"),p=m.require("$32","modal.js"),k=m.require("$10","LocoAutoComplete.js"),g=m.require("$9","LocoSelector.js"),l=m.require("$33","LocoMultiSelector.js"),A=m.require("$11","tooltip.js");b.find("form").each(function(a,b){var c=h(b);n&&10>n&&f.placeholders(c);b.getAttribute("data-modal")?p.initForm(b):b.hasAttribute("action")&&"#"!==c.attr("action").charAt(0)&&!b.target&&
f.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")&&f.revealify(c);c.find("button.hastip").each(function(a,b){A.init(h(b))})});b.find("a").each(function(b,c){-1!==c.className.indexOf("hastip")&&A.init(h(c));"/modal/"===String(c.getAttribute("href")).substr(0,7)||c.getAttribute("data-modal")?p.initLink(h(c)):a.link(c)});b.find("time.tick").each(m.require("$34",
"tick.js").onEach);f=p=k=b=null;return d};d.$=function(b){return h(e.innerShiv?innerShiv(b,!1):b)};h.fn._html=function(c){return null!=c?(c=this.html(e.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 f=B.createElement(b||"div");a&&(f.className=a);return f};d.txt=function(b){return B.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 f(a,b){return''+b+""}var d,k,g;return function(l,e){b&&b();var h=l.replace(d,a);e&&(h=h.replace(k,"
").replace(g,f));return h}}();d.noop=function(b){b&&(b.preventDefault(),b.stopPropagation(),h(b.target).blur());return!1};d.top=function(b,a){a||(a=B.body);for(var f=b.offsetTop||0;(b=b.offsetParent)&&b!==a;)f+=b.offsetTop||0;return f};d.left=function(b,a){a||
(a=B.body);for(var f=b.offsetLeft||0;(b=b.offsetParent)&&b!==a;)f+=b.offsetLeft||0;return f};return d}({},v,z));m.register("$19",function(d,e,B){function n(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);e.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,f,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 e=m.require("$22","http.js"),c={url:e.jsonLink(a.attr("action")),type:a.attr("method"),data:c};e.ajax(c,f,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=n;q=q||a.target;if("."===r)b=Boolean(q&&q[w]),
n&&(b=!b);else{var c,f,y=h(q.form).serializeArray();for(f in y)y[f].name===s&&(c=y[f].value);"!="===r&&(b=!b);b=b?w!==c:w===c}if(b!==e)if(e=b,a)g[e?"slideDown":"slideUp"](200);else g[e?"show":"hide"]();return!0}var g=h(c),l=/^(\!?)([_\w\-\[\]]+)(\.|!?=)(.*)$/.exec(g.attr("data-reveal-if"));if(l){var e,n=l[1]?!0:!1,s=l[2],r=l[3],w=l[4],l=a[0][s];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(" ");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("").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=n(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}({},v,z));m.register("$4",function(d,e,B){function n(a,b,c){function d(){f();g=setTimeout(b,c)}function f(){g&&clearTimeout(g);g=null}var g;d();h(a).mouseenter(f).mouseleave(d);return{die:function(){f();h(a).off("mouseenter mouseleave")}}}function b(a,b){a.fadeTo(b,0,function(){a.slideUp(b,function(){a.remove();h(e).triggerHandler("resize")})})}function c(a,c){function d(c){k[l]=null;b(h(a),250);f&&f.die();var q;if(q=c)c.stopPropagation(),c.preventDefault(),q=!1;return q}var f,
l;h(a).addClass("is-dismissible");h('').prependTo(a).click(d);h(e).triggerHandler("resize");g();l=k.length;k.push(d);c&&(f=n(a,d,c));return{stick:function(){f&&f.die();f=null;k[l]=null}}}function a(a,b,c){var d=m.require("$18","html.js");a=h('').prependTo(h("#loco-notices"));var f=h(d.el("p"));c=h(d.el("span")).text(c);b=h(d.el("strong","has-icon")).text(b+": ");f.append(b).append(c).appendTo(a);
return a}function f(b,d,f,g){b=a(f,d,b).hide().fadeIn(500);h(e).triggerHandler("resize");return c(b,g)}function p(){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,A,D,s;d.error=function(a){return f(a,l,"error")};d.warning=function(a){return f(a,A,"warning")};d.info=function(a){return f(a,D,"info")};d.success=function(a){return f(a,
s,"success",5E3)};d.log=function(){e.console&&console.log&&console.log.apply(console,arguments)};d.debug=function(a,b){e.console&&console.error&&(console.error("Loco Error: "+a),b&&console.debug&&console.debug(b))};d.clear=function(){for(var a=-1,b,c=k,f=c.length;++a"+a+"").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=f||{_:function(a){return a}},A=c.status,y=c.responseText,
h=n(y),s=c.getResponseHeader("Content-Type")||"text/html",m=c.getResponseHeader("Content-Length")||y.length;"success"===g&&r?e.error(r):(e.error(b(h)+".\n"+k._("Check console output for debugging information")),e.debug("Ajax failure for "+a,{status:A,error:g,message:r,output:y}),"parsererror"===g&&(r="Response not JSON"),e.log([k._("Provide the following text when reporting a problem")+":","----","Status "+A+' "'+(r||k._("Unknown error"))+'" ('+s+" "+m+" bytes)",h,"===="].join("\n")));d&&d.call&&
d(c,g,r);p=c}}g.url=k;g.dataType="json";g.error=r;g.success=function(a,b,d){var f=a&&a.data,g=a&&a.notices,y=g&&g.length;for(!f||a.error?r(d,b,a&&a.error&&a.error.message):c&&c(f,b,d);y--;)e.raise(g[y])};var e=m.require("$4","notices.js").clear();return h.ajax(g)}var a={},f,p,k=e.ajaxurl||"/wp-admin/admin-ajax.php",g=e.encodeURIComponent;d.init=function(b){a=b.nonces||a;return d};d.localise=function(a){f=a;return d};d.xhr=function(){return p};d.strip=n;d.parse=b;d.submit=function(a,b,d){function f(){g.removeClass("loading");
m.require("$19","forms.js").enable(g)}var g=h(a),k=g.serialize();g.addClass("loading");m.require("$19","forms.js").disable(g);return c(a.route.value,function(a,c,d){f();b&&b(a,c,d)},function(a,b,c){f();d&&d(a,b,c)},{type:a.method,data:k})};d.post=function(b,d,f,k){var r;(r=a[b])||(e.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,f,k,{type:"post",data:r})};d.setNonce=function(b,c){a[b]=
c;return d};d.hasNonce=function(b){return!!a[b]};return d}({},v,z));m.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});m.register("$6",function(d,e,h){function n(){}var b,c=m.require("$20","rtl.json");d.init=function(){return new n};d.cast=function(a){return a instanceof n?a:"string"===typeof a?d.parse(a):
d.clone(a)};d.clone=function(a){var b,c=new n;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 n;c.lang=RegExp.$1.toLowerCase();if(a=RegExp.$2)c.region=a.toUpperCase();if(a=RegExp.$3)c.variant=a.toLowerCase();return c};e=n.prototype;e.isValid=function(){return!!this.lang};e.isKnown=function(){var a=this.lang;return!(!a||"zxx"===a)};e.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};e.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(" ")};e.isRTL=function(){return!!c[String(this.lang).toLowerCase()]};e=null;return d}({},v,z));m.register("$36",function(d,e,h){function n(){}var b,c,a=m.require("$20","rtl.json");d.init=function(){return new n};d.cast=function(a){return a instanceof n?a:"string"===typeof a?d.parse(a):d.clone(a)};
d.clone=function(a){var b,c=new n;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 n;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};e=n.prototype;e.isValid=function(){return!!this.lang};e.isKnown=function(){var a=this.lang;return!(!a||"zxx"===a)};e.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};e.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(" ")};
e.isRTL=function(){return!!a[String(this.script||this.lang).toLowerCase()]};e=null;return d}({},v,z));m.register("$37",function(d,e,h){function n(a){e.console&&console.error&&console.error(a)}function b(){n("Method not implemented")}function c(){}function a(a){}c.prototype.toString=function(){return"[Undefined]"};a.prototype._validate=function(a){var d,k,g=!0;for(d in this)k=this[d],k===b?(n(a+"."+d+"() must be implemented"),g=!1):k instanceof c&&(n(a+"."+d+" must be defined"),g=!1);return g};d.init=
function(d,e){var k,g=new a;if(d)for(k=d.length;0!==k--;)g[d[k]]=b;if(e)for(k=e.length;0!==k--;)g[e[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}({},v,z));m.register("$48",function(d,e,h){var n=e.requestAnimationFrame,b=e.cancelAnimationFrame,c=0;if(!n||!b)for(var a in{ms:1,moz:1,webkit:1,o:1})if(n=e[a+"RequestAnimationFrame"])if(b=e[a+"CancelAnimationFrame"]||e[a+"CancelRequestAnimationFrame"])break;
n&&b||(n=function(a){var b=f();timeToCall=Math.max(0,16-(b-c));nextTime=b+timeToCall;timerId=e.setTimeout(function(){a(nextTime)},timeToCall);c=nextTime;return timerId},b=function(a){clearTimeout(a)});var f=Date.now||function(){return(new Date).getTime()};d.loop=function(a,c){function d(){e=n(d,c);a(f++)}var f=0,e;d();return{stop:function(){e&&b(e);e=null}}};return d}({},v,z));m.register("$44",function(d,e,h){function n(b,c,d,f){if(a){var g=d;d=function(a){if((a.MSPOINTER_TYPE_TOUCH||"touch")===a.pointerType)return g(a)}}b.addEventListener(c,
d,f);return{unbind:function(){b.removeEventListener(c,d,f)}}}function b(a){a.preventDefault();a.stopPropagation();return!1}var c,a=!!e.navigator.msPointerEnabled,f=a?"MSPointerDown":"touchstart",p=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,l[b],!1)}function r(b){a.removeEventListener(b,l[b],!1)}var l={};
l[f]=function(a){g(a,function(b,d){d.type=f;c(a,d,q)});d(p);d(k);return!0};l[k]=function(a){r(p);r(k);g(a,function(b,d){d.type=k;c(a,d,q)});return!0};l[p]=function(a){g(a,function(b,d){d.type=p;c(a,d,q)});return b(a)};d(f);var q={kill:function(){r(f);r(p);r(k);a=q=c=null}};return q};d.swiper=function(c,d,e){function r(a){c.addEventListener(a,u[a],!1)}function w(a){c.removeEventListener(a,u[a],!1)}function q(){h&&h.stop();h=null}var h,C,n,u={},y=[],G=[],K=[];u[f]=function(a){C=!1;q();var b=l();g(a,
function(a,c){y[a]=b;G[a]=c.clientX;K[a]=c.clientY});n=c.scrollLeft;return!0};u[k]=function(a){g(a,function(a,b){var c=l()-y[a],q=G[a]-b.clientX,c=Math.abs(q)/c;d(c,q?0>q?-1:1:0)});n=null;return!0};u[p]=function(a){var d,q;null==n||g(a,function(a,b){d=G[a]-b.clientX;q=K[a]-b.clientY});if(q&&Math.abs(q)>Math.abs(d))return C=!0;d&&(C=!0,c.scrollLeft=Math.max(0,n+d));return b(a)};if(!a||e)r(f),r(p),r(k),a&&(c.className+=" mstouch");return{kill:function(){w(f);w(p);w(k);q()},swiped:function(){return C},
ms:function(){return a},snap:function(b){a&&!e&&(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 f=c.scrollLeft,g=a>f?1:-1,y=Math[1===g?"min":"max"],r=Math.round(16*b*g);return h=m.require("$48","fps.js").loop(function(b){b&&(f=Math.max(0,y(a,f+r)),c.scrollLeft=f,a===f&&(q(),d&&d(f)))},c)}}};d.start=function(a,b){return n(a,f,b,!1)};d.move=function(a,b){return n(a,p,b,
!1)};d.end=function(a,b){return n(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,f=(b.originalEvent||b).changedTouches||[];++d\r\n')+
'';return!0}function a(a){return''+a+""}var f=d.parentNode,e=f.insertBefore(m.createElement("div"),d);h(d).on("input",c).on("scroll",b);h(f).addClass("has-mirror");e.className="ta-mirror";var k=d.offsetWidth-d.clientWidth;2"},{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 p(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,f,k){var p,r=!1,w=k||g,q=d.parentNode,E=q.appendChild(B.createElement("div"));h(q).addClass("has-proxy has-ace");m.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");p=b.edit(E);var q=p.session,g=p.renderer;p.$blockScrolling=Infinity;p.setShowInvisibles(r);p.setWrapBehavioursEnabled(!1);p.setBehavioursEnabled(!1);p.setHighlightActiveLine(!1);
q.setUseSoftTabs(!1);g.setShowGutter(!0);g.setPadding(10);g.setScrollMargin(8);q.setMode(a(b,w));p.setValue(d.value,-1);q.setUseWrapMode(!0);f?n(p,f):c(p)}},"ace");return{kill:function(){p&&(b(p),p.destroy(),p=null);E&&(q.removeChild(E),h(q).removeClass("has-proxy has-ace"),E=null);return this},disable:function(){p&&c(p);f=null;return this},enable:function(a){f=a;p&&n(p,a);return this},resize:function(){p&&p.resize();return this},val:function(a){p&&a!==p.getValue()&&p.setValue(a,-1);return this},
invs:function(a){a=a||!1;r!==a&&(r=a,p&&p.setShowInvisibles(a));return this},strf:function(b){b=b||g;b!==w&&(w=b,p&&p.session.setMode(a(e.ace,b)));return this},focus:function(){return this}}};d.strf=function(a,b){g=a;k=b;return d};return d}({},v,z));m.register("$50",function(d,e,B){function n(a,b){function c(){return b.val(a.getContent())}a.on("input",c);a.on("change",c);a.on("focus",function(){return b.focus()});a.on("blur",function(){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=m.require("$30","remote.js");b.load(b.stat("/lib/tinymce.min.js"),a,"tinymce");return d};d.init=function(f,e){function k(a){m=a;s=""===a.substr(0,3)&&"
"===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(!s&&""===a.substr(0,
3)&&"
"===a.substr(-4)){var b=a.substr(3,a.length-7);if(b===m||-1===b.indexOf("
"))a=b}return a};a._setContent=a.setContent;a.setContent=function(a,b){return this._setContent(k(a),b)};e?n(a,e):c(a);h(q).removeClass("loading")}var l,A=!1,m="",s=!1,r=f.parentNode,w=r.parentNode,q=r.appendChild(B.createElement("div")),E=w.insertBefore(B.createElement("nav"),r);E.id="_tb"+String(++a);h(r).addClass("has-proxy has-mce");h(q).addClass("mce-content-body loading").html(k(f.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 lists",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&&(e&&e.val(l.getContent()),b(l),
l.destroy(),l=null);q&&(r.removeChild(q),h(r).removeClass("has-proxy has-mce"),q=null);E&&(w.removeChild(E),E=null);return this},enable:function(a){e=a;l&&n(l,a);return this},disable:function(){l&&c(l);e=null;return this},focus:function(){l&&e&&l.focus();return this},invs:function(a){a=a||!1;A!==a&&(A=a,h(r)[a?"addClass":"removeClass"]("show-invs"));return this}}};return d}({},v,z));m.register("$45",function(d,e,B){function n(a){function b(){n&&(m.off("input",d),n=!1)}function d(){var b=a.value;b!==
r&&(m.trigger("changing",[b,r]),r=b)}function e(){d();n&&w!==r&&m.trigger("changed",[r])}function g(){c=a;w=r;n||(m.on("input",d),n=!0);m.trigger("editFocus");s.addClass("has-focus");return!0}function l(){c===a&&(c=null);m.trigger("editBlur");s.removeClass("has-focus");n&&(e(),b());return!0}var n=!1,m=h(a),s=h(a.parentNode),r=a.value,w;m.blur(l).focus(g);return{val:function(b){r!==b&&(a.value=b,m.triggerHandler("input"),r=b);return!0},kill:function(){b();m.off("blur",l).off("focus",g)},fire:function(){r=
null;d()},ping:e,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=
n(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=m.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?m.require("$15",
"ace.js").init(this.e,this.l,this["%"]):"html"===a?m.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}({},v,z));m.register("$46",function(d,e,m){function n(a){var b=e.console;b&&b.error&&b.error(a)}function b(a){var b=m.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 f(a){return function(){a.redrawDirty()&&a.redraw();return!0}}function p(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){n("row["+a+"] disappeared");return{cellVal:function(){return""}}}return function(g){var f=b||0,e=c?-1:1,y=a.rows||[];g.sort(function(a,b){return e*(y[a]||d(a)).cellVal(f).localeCompare((y[b]||d(b)).cellVal(f))})}}function g(a){this.w=a}function l(a){this.t=a;this.length=0}function A(a,b,c){var d=m.createElement("div");d.className=
c||"";this._=d;this.d=b||[];this.i=a||0;this.length=b.length}function D(a){this.live=a;this.rows=[]}d.create=function(a){return new g(a)};var s=g.prototype;s.init=function(d){var g=this.w,q=g.id,e=g.splity(q+"-thead",q+"-tbody"),l=e[0],e=e[1],k=[],n=[],y=[],G=[];if(d)this.ds=d,this.idxs=n,this._idxs=null;else if(!(d=this.ds))throw Error("No datasource");l.css.push("wg-thead");e.css.push("wg-tbody");d.eachCol(function(a,b,c){y[a]=q+"-col-"+b;G[a]=c||b});for(var m=b(),s=-1,D=y.length,M=b("wg-cols"),
B=l.splitx.apply(l,y);++sf);)e=h[b],a+=e.height(),ay)for(b=y;bd;b--)e=h[b],e.rendered&&e.sleep();this.mx=d}};s.selected=function(){return this.r};s.thead=function(){return this.w.cells[0]};s.tbody=function(){return this.w.cells[1]};s.tr=function(a){return(a=this.rows[a])?a.cells():[]};s.td=function(a,b){return this.tr(a)[b]};s.next=function(a,b,c){null==c&&(c=this.r||0);var d=this.idxs,g=d.length,f=(this.idxr||{})[c];for(c=f;c!==(f+=a)&&!(0<=f&&g>f);)if(b&&g)f=1===a?-1:g,b=!1;else return null;c=d[f];return null==c||null==this.rows[c]?(n("Bad next: ["+
f+"] does not map to data row"),null):c};s.selectNext=function(a,b,c){a=this.next(a,b);null!=a&&this.r!==a&&this.select(a,c);return this};s.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};s.selectRow=function(a,b){return this.select(this.idxs[a])};s.select=function(a,b){var c=this.rows[a],d=c&&c.page;if(!d)return this.deselect(!1),n("Row is filtered out"),this;this.deselect(!0);var g,f=this.w.cells[1];d.rendered||
(g=d.top(),f.scrollY(g),this.redrawDirty()&&this.redraw());if(!c.rendered)return d.rendered||n("Failed to render page"),n("Row ["+c.i+"] not rendered"),this;d=c.cells();h(d).addClass("selected");this.r=a;b||(g=f.scrollY(),h(this.root).focus(),g!==f.scrollY()&&f.scrollY(g));f.scrollTo(d[0],!0);this.w.fire("wgRowSelect",[a,c.data()]);return this};s.unfilter=function(){this._idxs&&(this.idxs=this._sort(this._idxs),this._idxs=null,this.clear().render());return this};s.filter=function(a){this._idxs||(this._idxs=
this.idxs);this.idxs=this._sort(a);return this.clear().render()};s.each=function(a){for(var b,c=-1,d=this.rows||[],g=this.idxs||[],f=g.length;++ce?0:e-l;this._h!==e&&(this._h=e,c.style.height=String(e)+"px",g=d);this._w!==f&&(this._w=f,g=d);g&&g.redraw()}c=this.length;f=1;e=this.nav;for(l=2===this.dir?"height":"width";0!==c--;)d=this.cells[c],e?g=1:(d.fixed&&(d.pos=d.fixed/h(b)[l]()),g=f-d.pos,f=d.pos),d.el.style[l]=String(100*g)+"%",d.redraw(a);return this};e.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};e.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=m.require("$45","field.js")._new(d)[b?"enable":"disable"](),p(this,d),this.field=c,this.restyle();this.lang||this.locale("en");return c};e.locale=function(a){a=
m.require("$36","locale.js").cast(a);return this._locale(String(a),a.isRTL())};e._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};e.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(;++dg)c=g;else{var f=d.clientHeight,g=g+h(a).outerHeight();if(f+c').data("idx",c).text(b[c]).appendTo(p);a.pos=0;h(a.el).hide()});d(e[c]?c:0);f.lock();f.redraw();return f};e.navigated=function(){var a=
this.nav;if(a)return h(a).data("idx")};e=null;return d}({},v,z));m.register("$26",function(d,e,h){function n(){this.reIndex([])}d.init=function(){return new n};e=n.prototype;e.reIndex=function(b){for(var c={},a=-1,d=b.length;++a").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",f="changing",p="changed",k=0,g=1,l=2,A=3,D=4,s=5,r=/^\s+/,w,q,E=m.require("$3","string.js").sprintf,v=m.require("$18","html.js");d.extend=
function(a){return a.prototype=new c};d.localise=function(a){q=a;return d};var z=function(){var a=B.createElement("p");return function(b){a.innerHTML=b.replace("src=","x=");return a.textContent}}(),u=c.prototype=m.require("$37","abstract.js").init(["getListColumns","getListHeadings","getListEntry"],["editable","t"]);u.init=function(){this.localise();this.editable={source:!0,target:!0};this.mode="";this.html=!1;return this};u.localise=function(a){a||(a=q||m.require("$1","t.js").init());var b=[];b[k]=
a._x("Source text","Editor")+":";b[A]=a._x("%s translation","Editor")+":";b[D]=a._x("Context","Editor")+":";b[s]=a._x("Comments","Editor")+":";b[g]=a._x("Single","Editor")+":";b[l]=a._x("Plural","Editor")+":";b[6]=a._x("Untranslated","Editor");b[7]=a._x("Translated","Editor");b[8]=a._x("Fuzzy","Editor");this.labels=b;this.t=a;return this};u.setRootCell=function(a){function b(a){c.redraw(!0,a);return!0}var c=m.require("$38","wingrid.js").init(a);h(e).on("resize",b);this.redraw=b;h(a).on("wgFocus wgBlur",
function(a,b){a.stopPropagation();w=b});this.destroy=function(){c.destroy();h(e).off("resize",b)};this.rootDiv=a;return c};u.$=function(){return h(this.rootDiv)};u.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})};u.setSourceCell=function(a){this.sourceCell=a;a=a.find("p.notes");this.$notes=a.length?a:null};u.setTargetCell=function(a){this.targetCell=a;a=a.find("p.errors");
this.$errs=a.length?a:null};u.next=function(a,b,c){for(var d=this.listTable,g=d.selected(),f=g,e,l=this.po;null!=(g=d.next(a,c,g));){if(f===g){g=null;break}if(b&&(e=l.row(g),e.translated(0)))continue;break}null!=g&&d.select(g,!0);return g};u.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};u.getTargetOffset=function(){if(this.active)return this.targetCell&&this.targetCell.navigated()||0};u.getTargetEditable=
function(){return this.editable.target&&this.targetCell&&this.targetCell.editable()};u.getSourceEditable=function(){return this.editable.source&&this.sourceCell&&this.sourceCell.editable()};u.getContextEditable=function(){return this.editable.context&&this.contextCell&&this.contextCell.editable()};u.getFirstEditable=function(){return this.getTargetEditable()||this.getSourceEditable()||this.getContextEditable()};u.searchable=function(a){a&&(this.dict=a,this.po&&this.rebuildSearch());return this.dict&&
!0};u.rebuildSearch=function(){var a=-1,b=this.po.rows,c=b.length,d=this.dict;for(d.clear();++a').insertAfter(this.sourceCell.header())),a=v.h(a,!0),c.html(a).show(),v.init(c),b=!0):c&&c.text()&&(c.text("").hide(),b=!0);return b};u.setErrors=function(a){var b=!1,c=this.$errs;a&&a.length?(c||(this.$errs=c=h('').insertAfter(this.targetCell.header())),
c.html(v.h(a.join(".\n")+".",!0)).show(),v.init(c),b=!0):c&&c.text()&&(c.text("").hide(),b=!0);return b};u.loadMessage=function(c){function d(a){var f,h=a,h=a.id;f=N[k];a.off();a.titled()!==f&&b(a,f,u.sourceLocale||"en");u.setNotes(c.notes())&&a.clear();W?(f=a.splity(h+"-singular",h+"-plural"),h=f[0],f=f[1],h.header(N[g]).textarea(X,O).setStrf(F).setMode(B).setInvs(z),f.header(N[l]).textarea(W,O).setStrf(F).setMode(B).setInvs(z),a.lock(),O&&(e(h,0),e(f,1))):(a.textarea(X,O).setStrf(F).setMode(B).setInvs(z),
O&&e(a,0))}function e(b,d){b.on(f,function(a,b){1===d?c.plural(b):(c.source(b),u.updateListCell(c,"source"));u.unsave(c,d)}).on(p,function(){0===d&&u.po.reIndex(c);u.dict&&u.rebuildSearch();u.fire(a,[c])})}function h(a,d,g){L&&a.eachTextarea(function(a){a.ping()});a.off();var f=d.isKnown()&&d.label||"Target",f=E(N[A],f);a.titled()!==f&&b(a,f,d);u.setErrors(c.errors(g))&&a.clear();u.setStatus(c,g);if(c.pluralized()){var e=[],l=d.plurals||["One","Other"],k=m.require("$26","collection.js").init();for(c.each(function(a,
b,c){if(c||l[a])e.push(l[a]||"Form "+a),k.add("plural-"+a,c)});(f=e.length)c){c=Math.max(c,1E-4);do d=c.format(++b);while("0"===d&&4>b);d=d.substr(1)}else d=c.format(0);return d};return d}({},v,z));m.register("$12",function(d,e,h){function n(){this.init()._validate();this.sourceLocale={lang:"en",label:"English",plurals:["One","Other"]}}e=m.require("$24","base.js");m.require("$25","number.js");d.init=function(b){var c=new n;b=c.setRootCell(b);var a=b.splity("po-list",
"po-edit"),d=a[0],e=a[1],a=e.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]);e.distribute([0.8]);c.setListCell(d);c.setSourceCell(k);c.setTargetCell(a);c.commentCell=g;c.editable.source=!1;return c};e=n.prototype=e.extend(n);e.getListHeadings=function(){var b=this.t||{_x:function(b){return b}};return[b._x("Source text","Editor"),b._x("Translation","Editor")]};e.getListColumns=
function(){return{source:0,target:1}};e.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()||"")}]};e.stats=function(){var b=this.po,c=b.length,a=0,d=0,e=0;b.each(function(b,c){c.fuzzy()?e++:c.translated()?a++:d++});return{t:c,p:a.percent(c)+"%",f:e,u:d}};e.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))};e.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))};e.locked=function(){return!this._unlocked};
e.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 e=a.po,k=a.locked()?b:c;d.sort(function(a,b){return k(e.row(a),e.row(b))})}};return d}({},v,z));m.register("$13",function(d,e,m){var n={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 p(d){if(d.isDefaultPrevented()||!d.metaKey&&!d.ctrlKey)return!0;var f=d.which;if(!k[f])return!0;var e=c[f];if(!e)throw Error("command undefined #"+
f);if(d.altKey||d.shiftKey&&!b[f]||!1===e(d,a))return!0;d.stopPropagation();d.preventDefault();return!1}var k={};h(d||e).on("keydown",p);return{add:function(a,b){c[n[a]]=b;return this},enable:function(){var a,b;for(b in arguments)a=n[arguments[b]],k[a]=!0;return this},disable:function(){h(d||e).off("keydown",p);a=d=k=null}}};return d}({},v,z));m.register("$27",function(d,e,h){function m(b,c){var a=RegExp("^.{0,"+(b-1)+"}["+c+"]"),d=RegExp("^[^"+c+"]+");return function(c,e){for(var g=c.length,l;g>
b;){l=a.exec(c)||d.exec(c);if(null==l)break;l=l[0];e.push(l);l=l.length;g-=l;c=c.substr(l)}0!==g&&e.push(c);return e}}d.create=function(b){function c(a){return l[a]||"\\"+a}var a,d,e=/(?:\r\n|[\r\n\v\f\u2028\u2029])/g,k=/[ \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"));return{pair:function(a,l){if(!l)return a+' ""';l=l.replace(g,c);var k=0;l=l.replace(e,
function(){k++;return"\\n\n"});if(!(k||b&&b=p||(d.flag&&m.flag(d.flag,n),m.translate(d.target||"",n),d.format&&!m.format()&&m.format(d.format))}catch(z){a(z)}return this};h.merge=
function(b){var d=this,f,e=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{(f=h.get(b))?(f.ref=c.ref,f.fmt=c.fmt):(f=c,k.push(f)),d.add(f)}catch(g){a(g)}});e&&d.header("POT-Creation-Date",e);return{add:k,del:m}};h.wrap=function(a){this.fmtr=f(a);return this};h.toString=function(){var a,b=this.locale(),c=[],d=[],e=this.headers(),h=!b,m=b&&b.nplurals||2,n=this.fmtr||f();e[b?"PO-Revision-Date":"POT-Creation-Date"]=
this.now();for(a in e)d.push(a+": "+e[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(n,h,m)),c.push(""))});return c.join("\n")};h=m.require("$29","message.js").extend(k);h.hash=function(){return b(this.source(),this.context())};h.toString=function(){return this.cat(f())};h.cat=function(a,b,c){var d,f=[],e;(e=this.cmt)&&f.push(a.prefix(e,"# "));(e=this.xcmt)&&f.push(a.prefix(e,"#. "));d=this.ref;
if(e=this._id)d+=(d?" ":"")+"loco:"+e;d&&/\S/.test(d)&&f.push(a.refs(d));!b&&this.fuzzy()&&f.push("#, fuzzy");(e=this.fmt)&&f.push("#, "+e+"-format");(e=this.ctx)&&f.push(a.pair("msgctxt",e));f.push(a.pair("msgid",this.src[0]));if(null==this.src[1])f.push(a.pair("msgstr",b?"":this.msg[0]));else for(d=-1,f.push(a.pair("msgid_plural",this.src[1])),e=this.msg||["",""],c=c||e.length;++dd)return 1;if(cd)return-1}return 0};h=h=null;return d}({},v,z));m.register("$16",function(d,e,m){d.init=function(d){function b(){I||(K.click(g),I=h('').dialog({dialogClass:"request-filesystem-credentials-dialog loco-modal",minWidth:580,modal:!0,autoOpen:!1,closeOnEscape:!0}).on("change",'input[name="connection_type"]',function(){this.checked&&h("#ssh-keys").toggleClass("hidden",
"ssh"!==h(this).val())}));return I}function c(){h(w).addClass("jshide");H&&C&&h(H).removeClass("jshide").hide().fadeIn(500)}function a(){if(C)return I&&I.dialog("close"),c(),h(d).find('button[type="submit"]').attr("disabled",!1),h(e).triggerHandler("resize"),r&&r(!0),!0;u&&I?(h(w).removeClass("jshide").hide().fadeIn(500),H&&h(H).addClass("jshide")):c();h(d).find('input[type="submit"]').attr("disabled",!0);r&&r(!1);return!1}function f(a){var b,c;for(b in s)c=s[b],a[b]?a[b].value=c:h('').attr("name",
b).appendTo(a).val(c)}function p(a){a.preventDefault();a=h(a.target).serializeArray();v(a);z=!0;return!1}function k(a){a.preventDefault();I.dialog("close");return!1}function g(a){a.preventDefault();I.dialog("open").find('input[name="connection_type"]').change();return!1}function l(c){s=c.authed&&c.creds;q=c.method;c.notice&&F.notices.info(c.notice);if(s)"direct"!==q&&(f(d),z&&c.success&&F.notices.success(c.success)),C=!0,a();else if(C=!1,c.reason)F.notices.info(c.reason);else if(c=c.prompt){var g=
b();g.html(c).find("form").submit(p);g.dialog("option","title",g.find("h2").remove().text());g.find("button.cancel-button").show().click(k);g.find('input[type="submit"]').addClass("button-primary");a();h(e).triggerHandler("resize")}else F.notices.error("Server didn't return credentials, nor a prompt for credentials")}function A(){a()}function v(a){z=!1;a.path=u;a.auth=y;F.ajax.setNonce("fsConnect",G).post("fsConnect",a,l,A);return a}var s,r,w=d,q=null,z=!1,C=!1,F=e.locoScope,u=d.path.value,y=d.auth.value,
G=d["loco-nonce"].value,K=h(w).find("button.button-primary"),H=m.getElementById(w.id+"-warn"),I;H&&F.notices.convert(H).stick();d.connection_type?(s={},s.connection_type=d.connection_type.value,C=!0):u&&y&&v({});a();return{applyCreds:function(a){if(a.nodeType)f(a);else{var b,c=s||{};for(b in c)a[b]=c[b]}return this},setForm:function(b){d=b;a();f(b);return this},connect:function(){u=d.path.value;y=d.auth.value;v(h(d).serializeArray());return this},listen:function(a){r=a;C&&a(!0);return this}}};return d}({},
v,z));m.register("$17",function(d,e,v){function n(d,e,g,h){e="n"===g?c(e):a(e);h&&(e=f(e));return b([].sort,[e])(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,f=c&&c[a]||0;return d===f?0:d>f?1:-1}}function a(a){return function(b,c){return(b&&b[a]||"").localeCompare(c&&c[a]||"")}}function f(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