joomla=window.joomla||{},joomla.editors=joomla.editors||{},joomla.editors.instances=joomla.editors.instances||{},function(e,t){"use strict";e.submitform=function(e,o,n){o||(o=t.getelementbyid("adminform")),e&&(o.task.value=e),o.novalidate=!n,n?o.hasattribute("novalidate")&&o.removeattribute("novalidate"):o.setattribute("novalidate","");var r=t.createelement("input");r.style.display="none",r.type="submit",o.appendchild(r).click(),o.removechild(r)},e.submitbutton=function(t){e.submitform(t)},e.text={strings:{},_:function(t,o){var n=e.getoptions("joomla.jtext");return n&&(this.load(n),e.loadoptions({"joomla.jtext":null})),o=void 0===o?"":o,t=t.touppercase(),void 0!==this.strings[t]?this.strings[t]:o},load:function(e){for(var t in e)e.hasownproperty(t)&&(this.strings[t.touppercase()]=e[t]);return this}},e.jtext=e.text,e.optionsstorage=e.optionsstorage||null,e.getoptions=function(t,o){return e.optionsstorage||e.loadoptions(),void 0!==e.optionsstorage[t]?e.optionsstorage[t]:o},e.loadoptions=function(o){if(!o){for(var n,r,a,i=t.queryselectorall(".joomla-script-options.new"),s=0,l=0,d=i.length;l=0;s--)(l=t.createelement("div")).innerhtml=r[s],a.appendchild(l);c.appendchild(a)}},e.removemessages=function(){for(var e=t.getelementbyid("system-message-container");e.firstchild;)e.removechild(e.firstchild);e.style.display="none",e.offsetheight,e.style.display=""},e.ajaxerrorsmessages=function(t,o,n){var r={};if("parsererror"===o){for(var a=t.responsetext.trim(),i=[],s=a.length-1;s>=0;s--)i.unshift(["&#",a[s].charcodeat(),";"].join(""));a=i.join(""),r.error=[e.jtext._("jlib_js_ajax_error_parse").replace("%s",a)]}else"nocontent"===o?r.error=[e.jtext._("jlib_js_ajax_error_no_content")]:"timeout"===o?r.error=[e.jtext._("jlib_js_ajax_error_timeout")]:"abort"===o?r.error=[e.jtext._("jlib_js_ajax_error_connection_abort")]:t.responsejson&&t.responsejson.message?r.error=[e.jtext._("jlib_js_ajax_error_other").replace("%s",t.status)+" "+t.responsejson.message+""]:t.statustext?r.error=[e.jtext._("jlib_js_ajax_error_other").replace("%s",t.status)+" "+t.statustext+""]:r.error=[e.jtext._("jlib_js_ajax_error_other").replace("%s",t.status)];return r},e.ischecked=function(e,o){if(void 0===o&&(o=t.getelementbyid("adminform")),o.boxchecked.value=e?parseint(o.boxchecked.value)+1:parseint(o.boxchecked.value)-1,o.elements["checkall-toggle"]){var n,r,a,i=!0;for(n=0,a=o.elements.length;n-1?n.options[r].value:null},window.listitemtask=function(t,o){return console.warn("window.listitemtask() is deprecated use joomla.listitemtask() instead"),e.listitemtask(t,o)},e.listitemtask=function(e,o){var n,r=t.adminform,a=0,i=r[e];if(!i)return!1;for(;n=r["cb"+a];)n.checked=!1,a++;return i.checked=!0,r.boxchecked.value=1,window.submitform(o),!1},window.submitbutton=function(t){console.warn("window.submitbutton() is deprecated use joomla.submitbutton() instead"),e.submitbutton(t)},window.submitform=function(t){console.warn("window.submitform() is deprecated use joomla.submitform() instead"),e.submitform(t)},window.saveorder=function(e,t){console.warn("window.saveorder() is deprecated without a replacement!"),window.checkall_button(e,t)},window.checkall_button=function(o,n){var r,a;for(console.warn("window.checkall_button() is deprecated without a replacement!"),n=n||"saveorder",r=0;r<=o;r++){if(!(a=t.adminform["cb"+r]))return void alert("you cannot change the order of items, as an item in the list is `checked out`");a.checked=!0}e.submitform(n)},e.loadinglayer=function(o,n){if(o=o||"show",n=n||t.body,"load"===o){var r=(e.getoptions("system.paths")||{}).root||"",a=t.createelement("div");a.id="loading-logo",a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.opacity="0.8",a.style.filter="alpha(opacity=80)",a.style.overflow="hidden",a.style["z-index"]="10000",a.style.display="none",a.style["background-color"]="#fff",a.style["background-image"]='url("'+r+'/media/jui/images/ajax-loader.gif")',a.style["background-position"]="center",a.style["background-repeat"]="no-repeat",a.style["background-attachment"]="fixed",n.appendchild(a)}else t.getelementbyid("loading-logo")||e.loadinglayer("load",n),t.getelementbyid("loading-logo").style.display="show"==o?"block":"none";return t.getelementbyid("loading-logo")},e.extend=function(e,t){for(var o in t)t.hasownproperty(o)&&(e[o]=t[o]);return e},e.request=function(t){(t=e.extend({url:"",method:"get",data:null,perform:!0},t)).method=t.data?"post":t.method.touppercase();try{var o=window.xmlhttprequest?new xmlhttprequest:new activexobject("msxml2.xmlhttp.3.0");if(o.open(t.method,t.url,!0),o.setrequestheader("x-requested-with","xmlhttprequest"),o.setrequestheader("x-ajax-engine","joomla!"),"post"===t.method){var n=e.getoptions("csrf.token","");n&&o.setrequestheader("x-csrf-token",n),t.headers&&t.headers["content-type"]||o.setrequestheader("content-type","application/x-www-form-urlencoded")}if(t.headers)for(var r in t.headers)t.headers.hasownproperty(r)&&o.setrequestheader(r,t.headers[r]);if(o.onreadystatechange=function(){4===o.readystate&&(200===o.status?t.onsuccess&&t.onsuccess.call(window,o.responsetext,o):t.onerror&&t.onerror.call(window,o))},t.perform){if(t.onbefore&&!1===t.onbefore.call(window,o))return o;o.send(t.data)}}catch(e){return window.console&&console.log(e),!1}return o}}(joomla,document);