diff --git a/assets/js/admin.js b/assets/js/admin.js
index 82f50fba47..96df3ef514 100644
--- a/assets/js/admin.js
+++ b/assets/js/admin.js
@@ -21,7 +21,6 @@ const Admin = {
shared_setup(subject) {
Admin.read_config();
Admin.log('[core|shared_setup] Register services on', subject);
- Admin.set_object_field_value(subject);
Admin.add_filters(subject);
Admin.setup_select2(subject);
Admin.setup_icheck(subject);
@@ -366,35 +365,6 @@ const Admin = {
updateCounter();
},
- /**
- * Change object field value
- * @param subject
- */
- set_object_field_value(subject) {
- Admin.log('[core|set_object_field_value] set value field on', subject);
-
- this.log(jQuery('a.sonata-ba-edit-inline', subject));
- jQuery('a.sonata-ba-edit-inline', subject).on('click', (event) => {
- Admin.stopEvent(event);
- const element = jQuery(event.target);
- jQuery.ajax({
- url: element.attr('href'),
- type: 'POST',
- success: (response) => {
- const elm = element.parent();
- elm.children().remove();
- // fix issue with html comment ...
- elm.html(jQuery(response.replace(//g, '')).html());
- elm.effect('highlight', { color: '#57A957' }, 2000);
- Admin.set_object_field_value(elm);
- },
- error: () => {
- element.parent().effect('highlight', { color: '#C43C35' }, 2000);
- },
- });
- });
- },
-
setup_collection_counter(subject) {
Admin.log('[core|setup_collection_counter] setup collection counter', subject);
diff --git a/src/Resources/public/app.js b/src/Resources/public/app.js
index 0a5e5fa7e6..cb2b47992c 100644
--- a/src/Resources/public/app.js
+++ b/src/Resources/public/app.js
@@ -1 +1 @@
-!function(){var e={163:function(t){function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=function(){return[]},e.resolve=e,e.id=163,t.exports=e},3752:function(t,e,i){var n=i(9755);if(void 0===n)throw new Error("AdminLTE requires jQuery");!function(t){"use strict";function e(e,i){if(this.element=e,this.options=i,this.$overlay=t(i.overlayTemplate),""===i.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()}var i="lte.boxrefresh",n={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'
',onLoadStart:function(){},onLoadDone:function(t){return t}};function s(s){return this.each((function(){var o=t(this),r=o.data(i);if(!r){var a=t.extend({},n,o.data(),"object"==typeof s&&s);o.data(i,r=new e(o,a))}if("string"==typeof r){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}e.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(t(this)),t.get(this.options.source,this.options.params,function(e){this.options.loadInContent&&t(this.element).find(this.options.content).html(e),this.options.onLoadDone.call(t(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},e.prototype._setUpListeners=function(){t(this.element).on("click",this.options.trigger,function(t){t&&t.preventDefault(),this.load()}.bind(this))},e.prototype._addOverlay=function(){t(this.element).append(this.$overlay)},e.prototype._removeOverlay=function(){t(this.$overlay).remove()};var o=t.fn.boxRefresh;t.fn.boxRefresh=s,t.fn.boxRefresh.Constructor=e,t.fn.boxRefresh.noConflict=function(){return t.fn.boxRefresh=o,this},t(window).on("load",(function(){t('[data-widget="box-refresh"]').each((function(){s.call(t(this))}))}))}(n),function(t){"use strict";function e(t,e){this.element=t,this.options=e,this._setUpListeners()}var i="lte.boxwidget",n={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},s=".box-header",o=".box-body",r=".box-footer",a=".box-tools",l="collapsed-box";function c(s){return this.each((function(){var o=t(this),r=o.data(i);if(!r){var a=t.extend({},n,o.data(),"object"==typeof s&&s);o.data(i,r=new e(o,a))}if("string"==typeof s){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}e.prototype.toggle=function(){t(this.element).is(".collapsed-box")?this.expand():this.collapse()},e.prototype.expand=function(){var e=t.Event("expanded.boxwidget"),i=t.Event("expanding.boxwidget"),n=this.options.collapseIcon,c=this.options.expandIcon;t(this.element).removeClass(l),t(this.element).children(s+", "+o+", "+r).children(a).find("."+c).removeClass(c).addClass(n),t(this.element).children(o+", "+r).slideDown(this.options.animationSpeed,function(){t(this.element).trigger(e)}.bind(this)).trigger(i)},e.prototype.collapse=function(){var e=t.Event("collapsed.boxwidget"),i=t.Event("collapsing.boxwidget"),n=this.options.collapseIcon,c=this.options.expandIcon;t(this.element).children(s+", "+o+", "+r).children(a).find("."+n).removeClass(n).addClass(c),t(this.element).children(o+", "+r).slideUp(this.options.animationSpeed,function(){t(this.element).addClass(l),t(this.element).trigger(e)}.bind(this)).trigger(i)},e.prototype.remove=function(){var e=t.Event("removed.boxwidget"),i=t.Event("removing.boxwidget");t(this.element).slideUp(this.options.animationSpeed,function(){t(this.element).trigger(e),t(this.element).remove()}.bind(this)).trigger(i)},e.prototype._setUpListeners=function(){var e=this;t(this.element).on("click",this.options.collapseTrigger,(function(i){return i&&i.preventDefault(),e.toggle(t(this)),!1})),t(this.element).on("click",this.options.removeTrigger,(function(i){return i&&i.preventDefault(),e.remove(t(this)),!1}))};var h=t.fn.boxWidget;t.fn.boxWidget=c,t.fn.boxWidget.Constructor=e,t.fn.boxWidget.noConflict=function(){return t.fn.boxWidget=h,this},t(window).on("load",(function(){t(".box").each((function(){c.call(t(this))}))}))}(n),function(t){"use strict";function e(t,e){this.element=t,this.options=e,this.hasBindedResize=!1,this.init()}var i="lte.controlsidebar",n={controlsidebarSlide:!0},s=".control-sidebar",o='[data-toggle="control-sidebar"]',r=".control-sidebar-open",a="control-sidebar-open",l="control-sidebar-hold-transition";function c(s){return this.each((function(){var o=t(this),r=o.data(i);if(!r){var a=t.extend({},n,o.data(),"object"==typeof s&&s);o.data(i,r=new e(o,a))}"string"==typeof s&&r.toggle()}))}e.prototype.init=function(){t(this.element).is(o)||t(this).on("click",this.toggle),this.fix(),t(window).resize(function(){this.fix()}.bind(this))},e.prototype.toggle=function(e){e&&e.preventDefault(),this.fix(),t(s).is(r)||t("body").is(r)?this.collapse():this.expand()},e.prototype.expand=function(){t(s).show(),this.options.controlsidebarSlide?t(s).addClass(a):t("body").addClass(l).addClass(a).delay(50).queue((function(){t("body").removeClass(l),t(this).dequeue()})),t(this.element).trigger(t.Event("expanded.controlsidebar"))},e.prototype.collapse=function(){this.options.controlsidebarSlide?t(s).removeClass(a):t("body").addClass(l).removeClass(a).delay(50).queue((function(){t("body").removeClass(l),t(this).dequeue()})),t(s).fadeOut(),t(this.element).trigger(t.Event("collapsed.controlsidebar"))},e.prototype.fix=function(){t("body").is(".layout-boxed")&&this._fixForBoxed(t(".control-sidebar-bg"))},e.prototype._fixForBoxed=function(e){e.css({position:"absolute",height:t(".wrapper").height()})};var h=t.fn.controlSidebar;t.fn.controlSidebar=c,t.fn.controlSidebar.Constructor=e,t.fn.controlSidebar.noConflict=function(){return t.fn.controlSidebar=h,this},t(document).on("click",o,(function(e){e&&e.preventDefault(),c.call(t(this),"toggle")}))}(n),function(t){"use strict";function e(t){this.element=t}var i="lte.directchat";function n(n){return this.each((function(){var s=t(this),o=s.data(i);o||s.data(i,o=new e(s)),"string"==typeof n&&o.toggle(s)}))}e.prototype.toggle=function(t){t.parents(".direct-chat").first().toggleClass("direct-chat-contacts-open")};var s=t.fn.directChat;t.fn.directChat=n,t.fn.directChat.Constructor=e,t.fn.directChat.noConflict=function(){return t.fn.directChat=s,this},t(document).on("click",'[data-widget="chat-pane-toggle"]',(function(e){e&&e.preventDefault(),n.call(t(this),"toggle")}))}(n),function(t){"use strict";function e(t){this.options=t,this.init()}var i="lte.pushmenu",n={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},s='[data-toggle="push-menu"]',o=".sidebar-mini",r="sidebar-collapse",a="sidebar-open",l="sidebar-expanded-on-hover",c="expanded.pushMenu",h="collapsed.pushMenu";function u(s){return this.each((function(){var o=t(this),r=o.data(i);if(!r){var a=t.extend({},n,o.data(),"object"==typeof s&&s);o.data(i,r=new e(a))}"toggle"===s&&r.toggle()}))}e.prototype.init=function(){(this.options.expandOnHover||t("body").is(o+".fixed"))&&(this.expandOnHover(),t("body").addClass("sidebar-mini-expand-feature")),t(".content-wrapper").click(function(){t(window).width()<=this.options.collapseScreenSize&&t("body").hasClass(a)&&this.close()}.bind(this)),t(".sidebar-form .form-control").click((function(t){t.stopPropagation()}))},e.prototype.toggle=function(){var e=t(window).width(),i=!t("body").hasClass(r);e<=this.options.collapseScreenSize&&(i=t("body").hasClass(a)),i?this.close():this.open()},e.prototype.open=function(){t(window).width()>this.options.collapseScreenSize?t("body").removeClass(r).trigger(t.Event(c)):t("body").addClass(a).trigger(t.Event(c))},e.prototype.close=function(){t(window).width()>this.options.collapseScreenSize?t("body").addClass(r).trigger(t.Event(h)):t("body").removeClass(a+" "+r).trigger(t.Event(h))},e.prototype.expandOnHover=function(){t(".main-sidebar").hover(function(){t("body").is(o+".sidebar-collapse")&&t(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){t("body").is(".sidebar-expanded-on-hover")&&this.collapse()}.bind(this))},e.prototype.expand=function(){setTimeout((function(){t("body").removeClass(r).addClass(l)}),this.options.expandTransitionDelay)},e.prototype.collapse=function(){setTimeout((function(){t("body").removeClass(l).addClass(r)}),this.options.expandTransitionDelay)};var d=t.fn.pushMenu;t.fn.pushMenu=u,t.fn.pushMenu.Constructor=e,t.fn.pushMenu.noConflict=function(){return t.fn.pushMenu=d,this},t(document).on("click",s,(function(e){e.preventDefault(),u.call(t(this),"toggle")})),t(window).on("load",(function(){u.call(t(s))}))}(n),function(t){"use strict";function e(t,e){this.element=t,this.options=e,this._setUpListeners()}var i="lte.todolist",n={onCheck:function(t){return t},onUnCheck:function(t){return t}},s={data:'[data-widget="todo-list"]'};function o(s){return this.each((function(){var o=t(this),r=o.data(i);if(!r){var a=t.extend({},n,o.data(),"object"==typeof s&&s);o.data(i,r=new e(o,a))}if("string"==typeof r){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}e.prototype.toggle=function(t){t.parents(s.li).first().toggleClass("done"),t.prop("checked")?this.check(t):this.unCheck(t)},e.prototype.check=function(t){this.options.onCheck.call(t)},e.prototype.unCheck=function(t){this.options.onUnCheck.call(t)},e.prototype._setUpListeners=function(){var e=this;t(this.element).on("change ifChanged","input:checkbox",(function(){e.toggle(t(this))}))};var r=t.fn.todoList;t.fn.todoList=o,t.fn.todoList.Constructor=e,t.fn.todoList.noConflict=function(){return t.fn.todoList=r,this},t(window).on("load",(function(){t(s.data).each((function(){o.call(t(this))}))}))}(n),function(t){"use strict";function e(e,i){this.element=e,this.options=i,t(this.element).addClass(l),t(s+r,this.element).addClass(a),this._setUpListeners()}var i="lte.tree",n={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},s=".treeview",o=".treeview-menu",r=".active",a="menu-open",l="tree";function c(s){return this.each((function(){var o=t(this);if(!o.data(i)){var r=t.extend({},n,o.data(),"object"==typeof s&&s);o.data(i,new e(o,r))}}))}e.prototype.toggle=function(t,e){var i=t.next(o),n=t.parent(),r=n.hasClass(a);n.is(s)&&(this.options.followLink&&"#"!==t.attr("href")||e.preventDefault(),r?this.collapse(i,n):this.expand(i,n))},e.prototype.expand=function(e,i){var n=t.Event("expanded.tree");if(this.options.accordion){var s=i.siblings(".menu-open, .active"),r=s.children(o);this.collapse(r,s)}i.addClass(a),e.stop().slideDown(this.options.animationSpeed,function(){t(this.element).trigger(n),i.height("auto")}.bind(this))},e.prototype.collapse=function(e,i){var n=t.Event("collapsed.tree");i.removeClass(a),e.stop().slideUp(this.options.animationSpeed,function(){t(this.element).trigger(n),i.find(s).removeClass(a).find(o).hide()}.bind(this))},e.prototype._setUpListeners=function(){var e=this;t(this.element).on("click",this.options.trigger,(function(i){e.toggle(t(this),i)}))};var h=t.fn.tree;t.fn.tree=c,t.fn.tree.Constructor=e,t.fn.tree.noConflict=function(){return t.fn.tree=h,this},t(window).on("load",(function(){t('[data-widget="tree"]').each((function(){c.call(t(this))}))}))}(n),function(t){"use strict";function e(t){this.options=t,this.bindedResize=!1,this.activate()}var i="lte.layout",n={slimscroll:!0,resetHeight:!0},s=".wrapper",o=".content-wrapper",r=".main-header",a=".sidebar",l=".sidebar-menu",c="fixed";function h(s){return this.each((function(){var o=t(this),r=o.data(i);if(!r){var a=t.extend({},n,o.data(),"object"==typeof s&&s);o.data(i,r=new e(a))}if("string"==typeof s){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}e.prototype.activate=function(){this.fix(),this.fixSidebar(),t("body").removeClass("hold-transition"),this.options.resetHeight&&t("body, html, "+s).css({height:"auto","min-height":"100%"}),this.bindedResize||(t(window).resize(function(){this.fix(),this.fixSidebar(),t(".main-header .logo, "+a).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),t(l).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),t(l).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},e.prototype.fix=function(){t(".layout-boxed > "+s).css("overflow","hidden");var e=t(".main-footer").outerHeight()||0,i=t(r).outerHeight()||0,n=i+e,l=t(window).height(),h=t(a).outerHeight()||0;if(t("body").hasClass(c))t(o).css("min-height",l-e);else{var u;u=h+i<=l?(t(o).css("min-height",l-n),l-n):(t(o).css("min-height",h),h);var d=t(".control-sidebar");void 0!==d&&d.height()>u&&t(o).css("min-height",d.height())}},e.prototype.fixSidebar=function(){t("body").hasClass(c)?this.options.slimscroll&&void 0!==t.fn.slimScroll&&0===t(".main-sidebar").find("slimScrollDiv").length&&t(a).slimScroll({height:t(window).height()-t(r).height()+"px"}):void 0!==t.fn.slimScroll&&t(a).slimScroll({destroy:!0}).height("auto")};var u=t.fn.layout;t.fn.layout=h,t.fn.layout.Constuctor=e,t.fn.layout.noConflict=function(){return t.fn.layout=u,this},t(window).on("load",(function(){h.call(t("body"))}))}(n)},4040:function(t,e,i){var n=i(9755);const s={collectionCounters:[],config:null,translations:null,shared_setup(t){s.read_config(),s.log("[core|shared_setup] Register services on",t),s.set_object_field_value(t),s.add_filters(t),s.setup_select2(t),s.setup_icheck(t),s.setup_checkbox_range_selection(t),s.setup_xeditable(t),s.setup_form_tabs_for_errors(t),s.setup_inline_form_errors(t),s.setup_tree_view(t),s.setup_collection_counter(t),s.setup_sticky_elements(t),s.setup_readmore_elements(t),s.setup_form_submit(t)},read_config(){const t=n("[data-sonata-admin]").data("sonata-admin");this.config=t.config,this.translations=t.translations},get_config(t){return null==this.config&&this.read_config(),this.config[t]},get_translations(t){return null==this.translations&&this.read_config(),this.translations[t]},setup_list_modal(t){s.log("[core|setup_list_modal] configure modal on",t),n("div.modal-dialog",t).css({width:"90%",height:"85%",padding:0}),n("div.modal-content",t).css({"border-radius":"0",height:"100%",padding:0}),n(".modal-body",t).css({width:"auto",height:"90%",padding:15,overflow:"auto"}),n(t).trigger("sonata-admin-setup-list-modal")},setup_select2(t){s.get_config("USE_SELECT2")&&(s.log("[core|setup_select2] configure Select2 on",t),n('select:not([data-sonata-select2="false"])',t).each(((t,e)=>{const i=n(e);let o=!1;const r=i.data("popover");let a=null,l=10,c=!1;i.removeClass("form-control"),i.find('option[value=""]').length||i.attr("data-placeholder")&&i.attr("data-placeholder").length||"true"===i.attr("data-sonata-select2-allow-clear")?o=!0:"false"===i.attr("data-sonata-select2-allow-clear")&&(o=!1),"true"===i.attr("data-sonata-select2-allow-tags")&&(c=!0),i.attr("data-sonata-select2-maximumSelectionLength")&&(a=i.attr("data-sonata-select2-maximumSelectionLength")),i.attr("data-sonata-select2-minimumResultsForSearch")&&(l=i.attr("data-sonata-select2-minimumResultsForSearch")),i.select2({width:()=>s.get_select2_width(i),theme:"bootstrap",dropdownAutoWidth:!0,minimumResultsForSearch:l,placeholder:o?" ":"",allowClear:o,maximumSelectionLength:a,tags:c}),void 0!==r&&i.select2("container").popover(r.options)})))},setup_icheck(t){if(s.get_config("USE_ICHECK")){s.log("[core|setup_icheck] configure iCheck on",t);const e=n('input[type="checkbox"]:not(label.btn > input, [data-sonata-icheck="false"]), input[type="radio"]:not(label.btn > input, [data-sonata-icheck="false"])',t);e.iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue"}),t===window.document&&setTimeout((()=>{e.iCheck("update")}),0)}},setup_checkbox_range_selection(t){let e;s.log("[core|setup_checkbox_range_selection] configure checkbox range selection on",t);const i=s.get_config("USE_ICHECK");n('tbody input[type="checkbox"], tbody .iCheck-helper',t).on("click",(s=>{let o;if(o=i?n(s.target).prev('input[type="checkbox"]'):n(s.target),o.length){const r=o.closest("tr").index();if(s.shiftKey&&e>=0){const s=n(`tbody input[type="checkbox"]:nth(${r})`,t).prop("checked");n('tbody input[type="checkbox"]',t).each(((t,o)=>{if(t>e&&tr&&t',container:"body",placement:"auto",success(t){const e=n(t);s.setup_xeditable(e),n(this).closest("td").replaceWith(e)},error:t=>"application/json"===t.getResponseHeader("Content-Type")?JSON.parse(t.responseText):t.responseText})},log(){if(!s.get_config("DEBUG"))return;for(var t=arguments.length,e=new Array(t),i=0;i{if(t.preventDefault(),t.stopPropagation(),"false"===n(t.target).attr("sonata-filter"))return;s.log("[core|add_filters] handle filter container: ",n(t.target).attr("filter-container"));const i=n(`#${n(t.currentTarget).attr("filter-container")}`);0===n('div[sonata-filter="true"]:visible',i).length&&n(i).slideDown();const o=n(t.currentTarget).attr("filter-target"),r=n(`div[id="${o}"]`,i),a=n("i",`.sonata-toggle-filter[filter-target="${o}"]`);n(r).is(":visible")?(a.filter(":not(.fa-minus-circle)").removeClass("fa-check-square").addClass("fa-square"),r.hide()):(a.filter(":not(.fa-minus-circle)").removeClass("fa-square").addClass("fa-check-square"),r.show()),n('div[sonata-filter="true"]:visible',i).length>0?n(i).slideDown():n(i).slideUp(),e()})),n(".sonata-filter-form",t).on("submit",(t=>{const e=n(t.target);if(e.find('[sonata-filter="true"]:hidden :input').val(""),!t.target.dataset.defaultValues)return;const i=s.convert_query_string_to_object(n.param({filter:JSON.parse(t.target.dataset.defaultValues)}));e.find("[name*=filter]").each(((t,s)=>{const o=s.multiple?[]:"",r=i[s.name]||o,a=n(s).val()||o;if(JSON.stringify(r)===JSON.stringify(a))s.removeAttribute("name");else if(s.multiple&&"[]"===JSON.stringify(a)){const t=s.name.substring(0,s.name.length-2);e.append(``),s.removeAttribute("name")}})),0===e.find("[name*=filter]").length&&e.append('')})),0===n(".advanced-filter :input:visible",t).filter((function(){return n(this).val()})).length&&n(".advanced-filter").hide(),n('[data-toggle="advanced-filter"]',t).on("click",(()=>{n(".advanced-filter").toggle()})),e()},set_object_field_value(t){s.log("[core|set_object_field_value] set value field on",t),this.log(n("a.sonata-ba-edit-inline",t)),n("a.sonata-ba-edit-inline",t).on("click",(t=>{s.stopEvent(t);const e=n(t.target);n.ajax({url:e.attr("href"),type:"POST",success:t=>{const i=e.parent();i.children().remove(),i.html(n(t.replace(//g,"")).html()),i.effect("highlight",{color:"#57A957"},2e3),s.set_object_field_value(i)},error:()=>{e.parent().effect("highlight",{color:"#C43C35"},2e3)}})}))},setup_collection_counter(t){s.log("[core|setup_collection_counter] setup collection counter",t);const e=/_([0-9]+)[^0-9]*$/;n(t).find("[data-prototype]").each(((t,i)=>{const o=n(i);let r=-1;o.children().each(((t,i)=>{const s=e.exec(n('[id^="sonata-ba-field-container"]',i).attr("id"));s&&s[1]&&s[1]>r&&(r=parseInt(s[1],10))})),s.collectionCounters[o.attr("id")]=r}))},setup_collection_buttons(t){n(t).on("click",".sonata-collection-add",(t=>{s.stopEvent(t);const e=n(t.target).closest("[data-prototype]");s.collectionCounters[e.attr("id")]+=1;const i=s.collectionCounters[e.attr("id")];let o=e.attr("data-prototype");const r=e.attr("data-prototype-name")||"__name__",a=new RegExp(`${e.attr("id")}_${r}`,"g");o=o.replace(a,`${e.attr("id")}_${i}`);const l=e.attr("id").split("_"),c=new RegExp(`${l[l.length-1]}\\]\\[${r}`,"g");o=o.replace(c,`${l[l.length-1]}][${i}`),n(o).insertBefore(n(t.target).parent()).trigger("sonata-admin-append-form-element"),n(t.target).trigger("sonata-collection-item-added")})),n(t).on("click",".sonata-collection-delete",(t=>{s.stopEvent(t),n(t.target).trigger("sonata-collection-item-deleted"),n(t.target).closest(".sonata-collection-row").remove(),n(document).trigger("sonata-collection-item-deleted-successful")}))},setup_per_page_switcher(t){s.log("[core|setup_per_page_switcher] setup page switcher",t),n("select.per-page").on("change",(t=>{n("input[type=submit]").hide(),window.top.location.href=t.target.options[t.target.selectedIndex].value}))},setup_form_tabs_for_errors(t){s.log("[core|setup_form_tabs_for_errors] setup form tab's errors",t),n("form",t).each(((t,e)=>{s.show_form_first_tab_with_errors(n(e),".sonata-ba-field-error")})),n(t).on("click",'form [type="submit"]',(t=>{s.show_form_first_tab_with_errors(n(t.target).closest("form"),":invalid")})).on("keypress",'form [type="text"]',(t=>{13===t.which&&s.show_form_first_tab_with_errors(n(t.target),":invalid")}))},show_form_first_tab_with_errors(t,e){s.log("[core|show_form_first_tab_with_errors] show first tab with errors",t);let i;t.find(".nav-tabs a").each(((t,s)=>{const o=n(s).attr("href"),r=n(s),a=r.find(".has-errors");n(o).find(e).length>0?(i||(r.tab("show"),i=r),a.removeClass("hide")):a.addClass("hide")}))},setup_inline_form_errors(t){s.log("[core|setup_inline_form_errors] show first tab with errors",t);const e='.sonata-ba-field-inline-table [id$="_delete"][type="checkbox"]';n(e,t).each(((t,e)=>{s.switch_inline_form_errors(n(e))})),n(t).on("change",e,(t=>{s.switch_inline_form_errors(n(t.target))}))},switch_inline_form_errors(t){s.log("[core|switch_inline_form_errors] switch_inline_form_errors",t);const e=t.closest(".sonata-ba-field-inline-table"),i=e.find(".sonata-ba-field-error-messages");t.is(":checked")?(e.find("[required]").removeAttr("required").attr("data-required","required"),i.hide()):(e.find("[data-required]").attr("required","required"),i.show())},setup_tree_view(t){s.log("[core|setup_tree_view] setup tree view",t),n("ul.js-treeview",t).treeView()},get_select2_width(t){const e=/width:(auto|(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc)))/i;let i=t.attr("style");if(void 0!==i){const t=i.split(";");for(let i=0,n=t.length;i=1)return n[1]}}return i=t.css("width"),i.indexOf("%")>0?i:"100%"},setup_sortable_select2(t,e,i){const o=[],r=[],a=[],l=t.val()?t.val().split(","):[];for(let t=0;ts.get_select2_width(t),dropdownAutoWidth:!0,data:[...r,...a],multiple:!0,...i};t.select2(c);const h=t.data("select2").$container.find("ul.select2-selection__rendered");h.sortable({containment:"parent",items:"> li[data-select2-id]",update:()=>{const e=h.children("li[data-select2-id]").toArray().map((t=>o[t.title]));t.val(e.join())}}),t.parents("form:first").submit((()=>{let e=t.val().trim();if(""!==e){let i=t.attr("name");e=e.split(","),i=i.substring(0,i.length-1);for(let s=0;s").attr("type","hidden").attr("name","".concat(i+s,"]")).val(e[s]).appendTo(t.parents("form:first"))}t.remove()}))},setup_sticky_elements(t){if(s.get_config("USE_STICKYFORMS")){s.log("[core|setup_sticky_elements] setup sticky elements on",t);const e=n(t).find(".navbar-static-top"),i=n(t).find(".content-wrapper"),o=n(i).find("nav.navbar"),r=n(i).find(".sonata-ba-form-actions");o.length&&new window.Waypoint.Sticky({element:o[0],offset:()=>(s.refreshNavbarStuckClass(e),n(e).outerHeight()),handler:t=>{"up"===t?n(o).width("auto"):n(o).width(n(i).outerWidth()),s.refreshNavbarStuckClass(e)}}),r.length&&new window.Waypoint({element:i[0],offset:"bottom-in-view",handler:t=>{n(".sonata-ba-form form > .row").outerHeight()+n(r).outerHeight()-2{t.length&&Math.round(n(window).scrollTop()+n(window).height())>=n(document).height()&&n(t).removeClass("stuck"),e.length&&0===n(window).scrollTop()&&n(e).removeClass("stuck")}),250)),n("body").on("expanded.pushMenu collapsed.pushMenu",(()=>{setTimeout((()=>{s.handleResize(t,e,i)}),350)})),n(window).on("resize",s.debounce((()=>{s.handleResize(t,e,i)}),250))},handleResize(t,e,i){e.length&&n(e).hasClass("stuck")&&n(e).width(n(i).outerWidth()),t.length&&n(t).hasClass("stuck")&&n(t).width(n(i).outerWidth())},refreshNavbarStuckClass(t){const e=t.outerHeight();let i=document.getElementById("navbar-stuck");null===i&&(i=document.createElement("style"),i.id="navbar-stuck",i.type="text/css",i.dataset.lastOffset=e,i.innerHTML=`body.fixed .content-header .navbar.stuck { top: ${e}px; }`,document.head.appendChild(i)),i.dataset.lastOffset!==e&&(i.dataset.lastOffset=e,i.innerHTML=`body.fixed .content-header .navbar.stuck { top: ${e}px; }`)},debounce(t,e,i){let n;return function(){for(var s=arguments.length,o=new Array(s),r=0;r{n=null,i||t.apply(a,o)}),e),l&&t.apply(a,o)}},setup_readmore_elements(t){s.log("[core|setup_readmore_elements] setup readmore elements on",t),n(t).find(".sonata-readmore").each(((t,e)=>{const i=n(e);i.readmore({collapsedHeight:parseInt(i.data("readmore-height"),10),moreLink:`${i.data("readmore-more")}`,lessLink:`${i.data("readmore-less")}`})}))},handle_top_navbar_height(){n("body.fixed .content-wrapper").css("padding-top",n(".navbar-static-top").outerHeight())},setup_form_submit(t){s.log("[core|setup_form_submit] setup form submit on",t),n(t).find("form").on("submit",(t=>{const e=n(t.target);setTimeout((()=>{e.find("button").prop("disabled",!0)}),1);const i=e.find(".nav-tabs li.active .changer-tab");i.length>0&&e.find('input[name="_tab"]').val(i.attr("aria-controls"))}))},convert_query_string_to_object(t){return t.split("&").reduce(((t,e)=>{const i=decodeURIComponent(e.split("=")[0]),n=e.split("=")[1];return i.endsWith("[]")?(Object.prototype.hasOwnProperty.call(t,i)||(t[i]=[]),t[i].push(n)):t[i]=n,t}),{})},setup_view_tabs_changer(){n(".changer-tab").on("click",(t=>{const e=n(t.target).attr("aria-controls"),i=window.location.search.substring(1),s=decodeURIComponent(i).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"');let o="{}";s.length&&(o=`{"${s}"}`);const r=JSON.parse(o);r._tab=e;const a=`${window.location.origin+window.location.pathname}?${n.param(r,!0)}`;window.history.pushState({path:a},"",a)}))}};window.Admin=s,n((()=>{s.handle_top_navbar_height(),n("html").removeClass("no-js"),s.setup_per_page_switcher(document),s.setup_collection_buttons(document),s.setup_view_tabs_changer(),s.shared_setup(document)})),n(window).on("resize",(()=>{s.handle_top_navbar_height()})),n(document).on("sonata-admin-append-form-element",(t=>{s.setup_select2(t.target),s.setup_icheck(t.target),s.setup_collection_counter(t.target)})),n(window).on("load",(()=>{s.get_config("CONFIRM_EXIT")&&n(".sonata-ba-form form").each(((t,e)=>{n(e).confirmExit()}))}))},2056:function(t,e,i){var n=i(9755);const s={remove_iCheck_in_flashmessage(){n(".read-more-state").iCheck("destroy")},addFlashmessageListener(){document.querySelectorAll(".read-more-state").forEach((t=>{t.addEventListener("change",(e=>{const i=document.querySelector(`label[for="${t.id}"]`),n=i.querySelector(".more"),s=i.querySelector(".less");e.target.checked?(n.classList.add("hide"),s.classList.remove("hide")):(n.classList.remove("hide"),s.classList.add("hide"))}))}))}};n((()=>{s.remove_iCheck_in_flashmessage(),s.addFlashmessageListener()}))},243:function(t,e,i){var n=i(9755);n.fn.confirmExit=function(){return n(this).attr("data-original",n(this).serialize()),n(this).on("submit",(function(){n(this).removeAttr("data-original")})),n(this)},n(window).on("beforeunload",(t=>{const e=t||window.event,i=window.Admin.get_translations("CONFIRM_EXIT");let s=!1;if(n("form[data-original]").each(((t,e)=>{n(e).attr("data-original")!==n(e).serialize()&&(s=!0)})),s)return e&&(e.returnValue=i),i}))},9543:function(t,e,i){var n=i(9755);n((()=>{n(".sidebar-toggle").on("click",(()=>{document.cookie.includes("sonata_sidebar_hide=1")?document.cookie="sonata_sidebar_hide=0;path=/":document.cookie="sonata_sidebar_hide=1;path=/"}))}))},2916:function(t,e,i){var n=i(9755);const s="treeView",o={togglersAttribute:"[data-treeview-toggler]",toggledState:"is-toggled",activeState:"is-active",defaultToggled:"[data-treeview-toggled]",instanceAttribute:"data-treeview-instance"};function r(t,e){this.element=t,this.options=n.extend({},o,e),this.defaults=o,this.name=s,this.init()}r.prototype={init(){this.setElements(),this.setEvents(),this.setAttributes(),this.showActiveElement(),this.showToggledElements()},setElements(){this.$element=n(this.element),this.$togglers=this.$element.find(this.options.togglersAttribute),this.$defaultToggled=this.$element.find(this.options.defaultToggled)},setAttributes(){this.$element.attr(this.options.instanceAttribute,!0)},setEvents(){this.$togglers.on("click",this.toggle.bind(this))},toggle(t){const e=n(t.currentTarget).parent();e.toggleClass(this.options.toggledState),e.next("ul").slideToggle()},showActiveElement(){const t=`[${this.options.instanceAttribute}] ul, [${this.options.instanceAttribute}]`,e=this.$element.find(`.${this.options.activeState}`).parents(t);e.show(),e.prev().addClass(this.options.toggledState)},showToggledElements(){this.$defaultToggled.addClass(this.options.toggledState),this.$defaultToggled.next("ul").show()}},n.fn[s]=function(t){return this.each((function(){n.data(this,`plugin_${s}`)||n.data(this,`plugin_${s}`,new r(this,t))}))}},7915:function(t,e,i){i(8294),i(1309),i(3929),i(4050),i(63),i(9737),i(8852),i(6278),i(6927),i(3497),i(7814),i(5377)},5377:function(t,e,i){!function(t){"use strict";var e=function(i,n){this.options=t.extend({},e.DEFAULTS,n);var s=this.options.target===e.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=s.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(i){return this.each((function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof i&&i;s||n.data("bs.affix",s=new e(this,o)),"string"==typeof i&&s[i]()}))}e.VERSION="3.4.1",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return s=t-n&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),n=this.options.offset,s=n.top,o=n.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(o=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(r,i,s,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-i-o})}};var n=t.fn.affix;t.fn.affix=i,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var e=t(this),n=e.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),i.call(e,n)}))}))}(i(9755))},1309:function(t,e,i){!function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(e){var n=t(this),s=n.attr("data-target");s||(s=(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),s="#"===s?[]:s;var o=t(document).find(s);function r(){o.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",r).emulateTransitionEnd(i.TRANSITION_DURATION):r())};var n=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var n=t(this),s=n.data("bs.alert");s||n.data("bs.alert",s=new i(this)),"string"==typeof e&&s[e].call(n)}))},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(i(9755))},3929:function(t,e,i){!function(t){"use strict";var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.isLoading=!1};function i(i){return this.each((function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof i&&i;s||n.data("bs.button",s=new e(this,o)),"toggle"==i?s.toggle():i&&s.setState(i)}))}e.VERSION="3.4.1",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy((function(){n[s](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))}),this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=i,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var n=t(e.target).closest(".btn");i.call(n,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))}))}(i(9755))},4050:function(t,e,i){!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function i(i){return this.each((function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i),r="string"==typeof i?i:o.slide;s||n.data("bs.carousel",s=new e(this,o)),"number"==typeof i?s.to(i):r?s[r]():o.interval&&s.pause().cycle()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(n)},e.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){e.to(t)})):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(i,n){var s=this.$element.find(".item.active"),o=n||this.getItemForDirection(i,s),r=this.interval,a="next"==i?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],h=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(h),!h.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(o)]);u&&u.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(i),"object"==typeof o&&o.length&&o[0].offsetWidth,s.addClass(a),o.addClass(a),s.one("bsTransitionEnd",(function(){o.removeClass([i,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(d)}),0)})).emulateTransitionEnd(e.TRANSITION_DURATION)):(s.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=i,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(e){var n=t(this),s=n.attr("href");s&&(s=s.replace(/.*(?=#[^\s]+$)/,""));var o=n.attr("data-target")||s,r=t(document).find(o);if(r.hasClass("carousel")){var a=t.extend({},r.data(),n.data()),l=n.attr("data-slide-to");l&&(a.interval=!1),i.call(r,a),l&&r.data("bs.carousel").to(l),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(i(9755))},63:function(t,e,i){!function(t){"use strict";var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(n)}function n(i){return this.each((function(){var n=t(this),s=n.data("bs.collapse"),o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);!s&&o.toggle&&/show|hide/.test(i)&&(o.toggle=!1),s||n.data("bs.collapse",s=new e(this,o)),"string"==typeof i&&s[i]()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(i=s.data("bs.collapse"))&&i.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){s&&s.length&&(n.call(s,"hide"),i||s.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[r](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=t.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return s.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(e,n){var s=t(n);this.addAriaAndCollapsedClass(i(s),s)}),this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){var s=t(this);s.attr("data-target")||e.preventDefault();var o=i(s),r=o.data("bs.collapse")?"toggle":s.data();n.call(o,r)}))}(i(9755))},9737:function(t,e,i){!function(t){"use strict";var e='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function n(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==i?t(document).find(i):null;return n&&n.length?n:e.parent()}function s(i){i&&3===i.which||(t(".dropdown-backdrop").remove(),t(e).each((function(){var e=t(this),s=n(e),o={relatedTarget:this};s.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(s[0],i.target)||(s.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),s.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))})))}i.VERSION="3.4.1",i.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var o=n(i),r=o.hasClass("open");if(s(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",s);var a={relatedTarget:this};if(o.trigger(e=t.Event("show.bs.dropdown",a)),e.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},i.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var s=t(this);if(i.preventDefault(),i.stopPropagation(),!s.is(".disabled, :disabled")){var o=n(s),r=o.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&o.find(e).trigger("focus"),s.trigger("click");var a=o.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(i.target);38==i.which&&l>0&&l--,40==i.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var n=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===n&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===n?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=function(i){return this.each((function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof i&&i;!s&&/destroy|hide/.test(i)||(s||n.data("bs.popover",s=new e(this,o)),"string"==typeof i&&s[i]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(i(9755))},3497:function(t,e,i){!function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(i).is(document.body)?t(window):t(i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each((function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()}))}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var e=t(this),s=e.data("target")||e.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,s]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){e.offsets.push(this[0]),e.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e=s[t]&&(void 0===s[t+1]||e .active"),r=s&&t.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}o.length&&r?o.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),o.removeClass("in")};var n=t.fn.tab;t.fn.tab=i,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(e){e.preventDefault(),i.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(i(9755))},6278:function(t,e,i){!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},s=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function r(e,n){var r=e.nodeName.toLowerCase();if(-1!==t.inArray(r,n))return-1===t.inArray(r,i)||Boolean(e.nodeValue.match(s)||e.nodeValue.match(o));for(var a=t(n).filter((function(t,e){return e instanceof RegExp})),l=0,c=a.length;l',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:n},l.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),o=s.length;o--;){var r=s[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var n=this.$element.data();for(var s in n)n.hasOwnProperty(s)&&-1!==t.inArray(s,e)&&delete n[s];return(i=t.extend({},this.getDefaults(),n,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=a(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,(function(t,n){i[t]!=n&&(e[t]=n)})),e},l.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)}},l.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var n=this,s=this.tip(),o=this.getUID(this.type);this.setContent(),s.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&s.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,c=a.test(r);c&&(r=r.replace(a,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(t(document).find(this.options.container)):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),u=s[0].offsetWidth,d=s[0].offsetHeight;if(c){var p=r,f=this.getPosition(this.$viewport);r="bottom"==r&&h.bottom+d>f.bottom?"top":"top"==r&&h.top-df.width?"left":"left"==r&&h.left-ur.top+r.height&&(s.top=r.top+r.height-l)}else{var c=e.left-o,h=e.left+o+i;cr.right&&(s.left=r.left+r.width-h)}return s},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null}))},l.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)};var c=t.fn.tooltip;t.fn.tooltip=function(e){return this.each((function(){var i=t(this),n=i.data("bs.tooltip"),s="object"==typeof e&&e;!n&&/destroy|hide/.test(e)||(n||i.data("bs.tooltip",n=new l(this,s)),"string"==typeof e&&n[e]())}))},t.fn.tooltip.Constructor=l,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=c,this}}(i(9755))},8294:function(t,e,i){!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",(function(){i=!0}));return setTimeout((function(){i||t(n).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(i(9755))},9741:function(t,e,i){var n,s;!function(o,r){"use strict";void 0===(s="function"==typeof(n=r)?n.call(e,i,e,t):n)||(t.exports=s)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i")[g]("ifCreated").parent().append($.insert),l=t('').css(D).appendTo(H),r.data(e,{o:$,s:r.attr("style")}).css(N),$.inheritClass&&H[f](c.className||""),$.inheritID&&y&&H.attr("id",e+"-"+y),"static"==H.css("position")&&H.css("position","relative"),w(r,!0,h),P.length&&P.on(d+".i mouseover.i mouseout.i "+p,(function(e){var i=e[u],n=t(this);if(!c[a]){if(i==d){if(t(e.target).is("a"))return;w(r,!1,!0)}else O&&(/ut|nd/.test(i)?(H[m](S),n[m](M)):(H[f](S),n[f](M)));if(!b)return!1;e.stopPropagation()}})),r.on(d+".i focus.i blur.i keyup.i keydown.i keypress.i",(function(t){var e=t[u],i=t.keyCode;return e!=d&&("keydown"==e&&32==i?(c[u]==s&&c[o]||(c[o]?C(r,o):x(r,o)),!1):void("keyup"==e&&c[u]==s?!c[o]&&x(r,o):/us|ur/.test(e)&&H["blur"==e?m:f](E)))})),l.on(d+" mousedown mouseup mouseover mouseout "+p,(function(t){var e=t[u],i=/wn|up/.test(e)?A:S;if(!c[a]){if(e==d?w(r,!1,!0):(/wn|er|in/.test(e)?H[f](i):H[m](i+" "+A),P.length&&O&&i==S&&P[/ut|nd/.test(e)?m:f](M)),!b)return!1;t.stopPropagation()}}))}))}}(i(9755)||window.Zepto)},6569:function(t,e,i){var n,s,o;s=[i(9755)],n=function(t){"use strict";var e=/\r?\n/g,i={};i.fileapi=void 0!==t('').get(0).files,i.formdata=void 0!==window.FormData;var n=!!t.fn.prop;function s(e){var i=e.data;e.isDefaultPrevented()||(e.preventDefault(),t(e.target).closest("form").ajaxSubmit(i))}function o(e){var i=e.target,n=t(i);if(!n.is("[type=submit],[type=image]")){var s=n.closest("[type=submit]");if(0===s.length)return;i=s[0]}var o,r=i.form;"image"===(r.clk=i).type&&(void 0!==e.offsetX?(r.clk_x=e.offsetX,r.clk_y=e.offsetY):"function"==typeof t.fn.offset?(o=n.offset(),r.clk_x=e.pageX-o.left,r.clk_y=e.pageY-o.top):(r.clk_x=e.pageX-i.offsetLeft,r.clk_y=e.pageY-i.offsetTop)),setTimeout((function(){r.clk=r.clk_x=r.clk_y=null}),100)}function r(){var e;t.fn.ajaxSubmit.debug&&(e="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e))}t.fn.attr2=function(){if(!n)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},t.fn.ajaxSubmit=function(e,s,o,a){if(!this.length)return r("ajaxSubmit: skipping submit process - no element selected"),this;var l,c,h,u,d=this;"function"==typeof e?e={success:e}:"string"==typeof e||!1===e&&0',C)).css({position:"absolute",top:"-1000px",left:"-1000px"}),p=u[0],f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var i="timeout"===e?"timeout":"aborted";r("aborting upload... "+i),this.aborted=1;try{p.contentWindow.document.execCommand&&p.contentWindow.document.execCommand("Stop")}catch(e){}u.attr("src",a.iframeSrc),f.error=i,a.error&&a.error.call(a.context,f,i,e),c&&t.event.trigger("ajaxError",[f,a,i]),a.complete&&a.complete.call(a.context,f,i)}},(c=a.global)&&0==t.active++&&t.event.trigger("ajaxStart"),c&&t.event.trigger("ajaxSend",[f,a]),a.beforeSend&&!1===a.beforeSend.call(a.context,f,a))return a.global&&t.active--,x.reject(),x;if(f.aborted)return x.reject(),x;(m=w.clk)&&(g=m.name)&&!m.disabled&&(a.extraData=a.extraData||{},a.extraData[g]=m.value,"image"===m.type&&(a.extraData[g+".x"]=w.clk_x,a.extraData[g+".y"]=w.clk_y));var T=1,k=2;function $(t){var e=null;try{t.contentWindow&&(e=t.contentWindow.document)}catch(t){r("cannot get iframe.contentWindow document: "+t)}if(e)return e;try{e=t.contentDocument?t.contentDocument:t.document}catch(i){r("cannot get iframe.contentDocument: "+i),e=t.document}return e}var D=t("meta[name=csrf-token]").attr("content"),S=t("meta[name=csrf-param]").attr("content");function E(){var e=d.attr2("target"),i=d.attr2("action"),n=d.attr("enctype")||d.attr("encoding")||"multipart/form-data";w.setAttribute("target",h),l&&!/post/i.test(l)||w.setAttribute("method","POST"),i!==a.url&&w.setAttribute("action",a.url),a.skipEncodingOverride||l&&!/post/i.test(l)||d.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),a.timeout&&(b=setTimeout((function(){y=!0,N(T)}),a.timeout));var s=[];try{if(a.extraData)for(var o in a.extraData)a.extraData.hasOwnProperty(o)&&(t.isPlainObject(a.extraData[o])&&a.extraData[o].hasOwnProperty("name")&&a.extraData[o].hasOwnProperty("value")?s.push(t('',C).val(a.extraData[o].value).appendTo(w)[0]):s.push(t('',C).val(a.extraData[o]).appendTo(w)[0]));a.iframeTarget||u.appendTo(_),p.attachEvent?p.attachEvent("onload",N):p.addEventListener("load",N,!1),setTimeout((function t(){try{var e=$(p).readyState;r("state = "+e),e&&"uninitialized"===e.toLowerCase()&&setTimeout(t,50)}catch(t){r("Server abort: ",t," (",t.name,")"),N(k),b&&clearTimeout(b),b=void 0}}),15);try{w.submit()}catch(e){document.createElement("form").submit.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",n),e?w.setAttribute("target",e):d.removeAttr("target"),t(s).remove()}}S&&D&&(a.extraData=a.extraData||{},a.extraData[S]=D),a.forceSync?E():setTimeout(E,10);var A,O,M,I=50;function N(e){if(!f.aborted&&!M){if((O=$(p))||(r("cannot access response document"),e=k),e===T&&f)return f.abort("timeout"),void x.reject(f,"timeout");if(e===k&&f)return f.abort("server abort"),void x.reject(f,"error","server abort");if(O&&O.location.href!==a.iframeSrc||y){p.detachEvent?p.detachEvent("onload",N):p.removeEventListener("load",N,!1);var i,n="success";try{if(y)throw"timeout";var s="xml"===a.dataType||O.XMLDocument||t.isXMLDoc(O);if(r("isXml="+s),!s&&window.opera&&(null===O.body||!O.body.innerHTML)&&--I)return r("requeing onLoad callback, DOM not available"),void setTimeout(N,250);var o=O.body?O.body:O.documentElement;f.responseText=o?o.innerHTML:null,f.responseXML=O.XMLDocument?O.XMLDocument:O,s&&(a.dataType="xml"),f.getResponseHeader=function(t){return{"content-type":a.dataType}[t.toLowerCase()]},o&&(f.status=Number(o.getAttribute("status"))||f.status,f.statusText=o.getAttribute("statusText")||f.statusText);var l,h,d,m=(a.dataType||"").toLowerCase(),g=/(json|script|text)/.test(m);g||a.textarea?(l=O.getElementsByTagName("textarea")[0])?(f.responseText=l.value,f.status=Number(l.getAttribute("status"))||f.status,f.statusText=l.getAttribute("statusText")||f.statusText):g&&(h=O.getElementsByTagName("pre")[0],d=O.getElementsByTagName("body")[0],h?f.responseText=h.textContent?h.textContent:h.innerText:d&&(f.responseText=d.textContent?d.textContent:d.innerText)):"xml"===m&&!f.responseXML&&f.responseText&&(f.responseXML=L(f.responseText));try{A=j(f,m,a)}catch(e){n="parsererror",f.error=i=e||n}}catch(e){r("error caught: ",e),n="error",f.error=i=e||n}f.aborted&&(r("upload aborted"),n=null),f.status&&(n=200<=f.status&&f.status<300||304===f.status?"success":"error"),"success"===n?(a.success&&a.success.call(a.context,A,"success",f),x.resolve(f.responseText,"success",f),c&&t.event.trigger("ajaxSuccess",[f,a])):n&&(void 0===i&&(i=f.statusText),a.error&&a.error.call(a.context,f,n,i),x.reject(f,"error",i),c&&t.event.trigger("ajaxError",[f,a,i])),c&&t.event.trigger("ajaxComplete",[f,a]),c&&!--t.active&&t.event.trigger("ajaxStop"),a.complete&&a.complete.call(a.context,f,n),M=!0,a.timeout&&clearTimeout(b),setTimeout((function(){a.iframeTarget?u.attr("src",a.iframeSrc):u.remove(),f.responseXML=null}),100)}}}var L=t.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!==e.documentElement.nodeName?e:null},P=t.parseJSON||function(t){return window.eval("("+t+")")},j=function(e,i,n){var s=e.getResponseHeader("content-type")||"",o=("xml"===i||!i)&&0<=s.indexOf("xml"),r=o?e.responseXML:e.responseText;return o&&"parsererror"===r.documentElement.nodeName&&t.error&&t.error("parsererror"),n&&n.dataFilter&&(r=n.dataFilter(r,i)),"string"==typeof r&&(("json"===i||!i)&&0<=s.indexOf("json")?r=P(r):("script"===i||!i)&&0<=s.indexOf("javascript")&&t.globalEval(r)),r};return x}},t.fn.ajaxForm=function(e,i,n,a){if(("string"==typeof e||!1===e&&0",p=30,f=!1,m=s(this);if(m.parent().hasClass(i.wrapperClass)){var g=m.scrollTop();if(C=m.siblings("."+i.barClass),x=m.siblings("."+i.railClass),$(),s.isPlainObject(e)){if("height"in e&&"auto"==e.height){m.parent().css("height","auto"),m.css("height","auto");var v=m.parent().parent().height();m.parent().css("height",v),m.css("height",v)}else if("height"in e){var y=e.height;m.parent().css("height",y),m.css("height",y)}if("scrollTo"in e)g=parseInt(i.scrollTo);else if("scrollBy"in e)g+=parseInt(i.scrollBy);else if("destroy"in e)return C.remove(),x.remove(),void m.unwrap();k(g,!1,!0)}}else if(!s.isPlainObject(e)||!("destroy"in e)){i.height="auto"==i.height?m.parent().height():i.height;var b=s(d).addClass(i.wrapperClass).css({position:"relative",overflow:"hidden",width:i.width,height:i.height});m.css({overflow:"hidden",width:i.width,height:i.height});var w,x=s(d).addClass(i.railClass).css({width:i.size,height:"100%",position:"absolute",top:0,display:i.alwaysVisible&&i.railVisible?"block":"none","border-radius":i.railBorderRadius,background:i.railColor,opacity:i.railOpacity,zIndex:90}),C=s(d).addClass(i.barClass).css({background:i.color,width:i.size,position:"absolute",top:0,opacity:i.opacity,display:i.alwaysVisible?"block":"none","border-radius":i.borderRadius,BorderRadius:i.borderRadius,MozBorderRadius:i.borderRadius,WebkitBorderRadius:i.borderRadius,zIndex:99}),_="right"==i.position?{right:i.distance}:{left:i.distance};x.css(_),C.css(_),m.wrap(b),m.parent().append(C),m.parent().append(x),i.railDraggable&&C.bind("mousedown",(function(e){var i=s(document);return r=!0,t=parseFloat(C.css("top")),pageY=e.pageY,i.bind("mousemove.slimscroll",(function(e){currTop=t+e.pageY-pageY,C.css("top",currTop),k(0,C.position().top,!1)})),i.bind("mouseup.slimscroll",(function(t){r=!1,S(),i.unbind(".slimscroll")})),!1})).bind("selectstart.slimscroll",(function(t){return t.stopPropagation(),t.preventDefault(),!1})),x.hover((function(){D()}),(function(){S()})),C.hover((function(){o=!0}),(function(){o=!1})),m.hover((function(){n=!0,D(),S()}),(function(){n=!1,S()})),m.bind("touchstart",(function(t,e){t.originalEvent.touches.length&&(l=t.originalEvent.touches[0].pageY)})),m.bind("touchmove",(function(t){f||t.originalEvent.preventDefault(),t.originalEvent.touches.length&&(k((l-t.originalEvent.touches[0].pageY)/i.touchScrollStep,!0),l=t.originalEvent.touches[0].pageY)})),$(),"bottom"===i.start?(C.css({top:m.outerHeight()-C.outerHeight()}),k(0,!0)):"top"!==i.start&&(k(s(i.start).position().top,null,!0),i.alwaysVisible||C.hide()),w=this,window.addEventListener?(w.addEventListener("DOMMouseScroll",T,!1),w.addEventListener("mousewheel",T,!1)):document.attachEvent("onmousewheel",T)}function T(t){if(n){var e=0;(t=t||window.event).wheelDelta&&(e=-t.wheelDelta/120),t.detail&&(e=t.detail/3);var o=t.target||t.srcTarget||t.srcElement;s(o).closest("."+i.wrapperClass).is(m.parent())&&k(e,!0),t.preventDefault&&!f&&t.preventDefault(),f||(t.returnValue=!1)}}function k(t,e,n){f=!1;var s=t,o=m.outerHeight()-C.outerHeight();if(e&&(s=parseInt(C.css("top"))+t*parseInt(i.wheelStep)/100*C.outerHeight(),s=Math.min(Math.max(s,0),o),s=t>0?Math.ceil(s):Math.floor(s),C.css({top:s+"px"})),s=(h=parseInt(C.css("top"))/(m.outerHeight()-C.outerHeight()))*(m[0].scrollHeight-m.outerHeight()),n){var r=(s=t)/m[0].scrollHeight*m.outerHeight();r=Math.min(Math.max(r,0),o),C.css({top:r+"px"})}m.scrollTop(s),m.trigger("slimscrolling",~~s),D(),S()}function $(){c=Math.max(m.outerHeight()/m[0].scrollHeight*m.outerHeight(),p),C.css({height:c+"px"});var t=c==m.outerHeight()?"none":"block";C.css({display:t})}function D(){if($(),clearTimeout(a),h==~~h){if(f=i.allowPageScroll,u!=h){var t=0==~~h?"top":"bottom";m.trigger("slimscroll",t)}}else f=!1;u=h,c>=m.outerHeight()?f=!0:(C.stop(!0,!0).fadeIn("fast"),i.railVisible&&x.stop(!0,!0).fadeIn("fast"))}function S(){i.alwaysVisible||(a=setTimeout((function(){i.disableFadeOut&&n||o||r||(C.fadeOut("slow"),x.fadeOut("slow"))}),1e3))}})),this}}),s.fn.extend({slimscroll:s.fn.slimScroll})},6400:function(t,e,i){var n,s,o;!function(r){"use strict";s=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])}})})?n.apply(e,s):n)||(t.exports=o)}()},1870:function(t,e,i){var n,s,o;!function(r){"use strict";s=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(e,s):n)||(t.exports=o)}()},464:function(t,e,i){var n,s,o;!function(r){"use strict";s=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)}})?n.apply(e,s):n)||(t.exports=o)}()},5592:function(t,e,i){var n,s,o;!function(r){"use strict";s=[i(9755)],void 0===(o="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.13.2"})?n.apply(e,s):n)||(t.exports=o)}()},6891:function(t,e,i){var n,s,o;!function(r){"use strict";s=[i(9755),i(5592)],n=function(t){var e=0,i=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=function(e){return function(i){var n,s,o;for(o=0;null!=(s=i[o]);o++)(n=t._data(s,"events"))&&n.remove&&t(s).triggerHandler("remove");e(i)}}(t.cleanData),t.widget=function(e,i,n){var s,o,r,a={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},s=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(n,(function(t,e){a[t]="function"==typeof e?function(){function n(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=n,this._superApply=s,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),s?(t.each(s._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete s._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var s,o,r=n.call(arguments,1),a=0,l=r.length;a",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,o,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(s=r[e]=t.widget.extend({},this.options[e]),o=0;o=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,s):n)||(t.exports=o)}()},2526:function(t,e,i){var n,s,o;!function(r){"use strict";s=[i(9755),i(6177),i(6400),i(1870),i(464),i(5592),i(6891)],n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1})),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var s,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=t("").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;i--)if(s=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||n+c>a&&n+co&&e+ht[this.floating?"width":"height"]?p:o0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,o,r=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(s=t(l[i],this.document[0])).length-1;n>=0;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){r.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(c);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i=0;i--)for(n=(s=t(d[i],this.document[0])).length-1;n>=0;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(r=u[i][1],n=0,c=(a=u[i][0]).length;n=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),o=s.offset(),n.left=o.left,n.top=o.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,s=(e=e||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,o){i&&!s.forcePlaceholderSize||(o.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t(" | ",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,s,o,r,a,l,c,h,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,o=null,r=(h=d.floating||this._isFloating(this.currentItem))?"left":"top",a=h?"width":"height",u=h?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,e[u]-l>this.items[n][a]/2&&(c=!0),Math.abs(e[u]-l)this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i1;return l&&(r/=2),a.offset=s(a.offset),a.over=s(a.over),this.each((function(){if(null!==o){var c,h=i(this),u=h?this.contentWindow||window:this,d=t(u),p=o,f={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=s(p);break}p=h?t(p):t(p,u);case"object":if(0===p.length)return;(p.is||p.style)&&(c=(p=t(p)).offset())}var m=n(a.offset)&&a.offset(u,p)||a.offset;t.each(a.axis.split(""),(function(t,i){var n="x"===i?"Left":"Top",s=n.toLowerCase(),o="scroll"+n,r=d[o](),v=e.max(u,i);if(c)f[o]=c[s]+(h?0:r-d.offset()[s]),a.margin&&(f[o]-=parseInt(p.css("margin"+n),10)||0,f[o]-=parseInt(p.css("border"+n+"Width"),10)||0),f[o]+=m[s]||0,a.over[s]&&(f[o]+=p["x"===i?"width":"height"]()*a.over[s]);else{var y=p[s];f[o]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*v:y}a.limit&&/^\d+$/.test(f[o])&&(f[o]=f[o]<=0?0:Math.min(f[o],v)),!t&&a.axis.length>1&&(r===f[o]?f={}:l&&(g(a.onAfterFirst),f={}))})),g(a.onAfter)}function g(e){var i=t.extend({},a,{queue:!0,duration:r,complete:e&&function(){e.call(u,p,a)}});d.animate(f,i)}}))},e.max=function(e,n){var s="x"===n?"Width":"Height",o="scroll"+s;if(!i(e))return e[o]-t(e)[s.toLowerCase()]();var r="client"+s,a=e.ownerDocument||e.document,l=a.documentElement,c=a.body;return Math.max(l[o],c[o])-Math.min(l[r],c[r])},t.Tween.propHooks.scrollLeft=t.Tween.propHooks.scrollTop={get:function(e){return t(e.elem)[e.prop]()},set:function(e){var i=this.get(e);if(e.options.interrupt&&e._last&&e._last!==i)return t(e.elem).stop();var n=Math.round(e.now);i!==n&&(t(e.elem)[e.prop](n),e._last=this.get(e))}},e})?n.apply(e,s):n)||(t.exports=o)}()},9755:function(t,e){var i;!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(n,s){"use strict";var o=[],r=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,h=o.indexOf,u={},d=u.toString,p=u.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,i){var n,s,o=(i=i||b).createElement("script");if(o.text=t,e)for(n in w)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function C(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[d.call(t)]||"object":typeof t}var _="3.7.0",T=/HTML$/i,k=function(t,e){return new k.fn.init(t,e)};function $(t){var e=!!t&&"length"in t&&t.length,i=C(t);return!v(t)&&!y(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}k.fn=k.prototype={jquery:_,constructor:k,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i+~]|"+O+")"+O+"*"),U=new RegExp(O+"|>"),q=new RegExp(j),W=new RegExp("^"+I+"$"),z={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},B=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),X=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},J=function(){lt()},Q=dt((function(t){return!0===t.disabled&&D(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=a.call(L.childNodes),L.childNodes),o[L.childNodes.length].nodeType}catch(t){m={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function Z(t,e,i,n){var s,o,r,a,c,h,p,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return i;if(!n&&(lt(e),e=e||l,u)){if(11!==y&&(c=Y.exec(t)))if(s=c[1]){if(9===y){if(!(r=e.getElementById(s)))return i;if(r.id===s)return m.call(i,r),i}else if(f&&(r=f.getElementById(s))&&Z.contains(e,r)&&r.id===s)return m.call(i,r),i}else{if(c[2])return m.apply(i,e.getElementsByTagName(t)),i;if((s=c[3])&&e.getElementsByClassName)return m.apply(i,e.getElementsByClassName(s)),i}if(!(_[t+" "]||d&&d.test(t))){if(p=t,f=e,1===y&&(U.test(t)||R.test(t))){for((f=K.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=k.escapeSelector(a):e.setAttribute("id",a=v)),o=(h=ht(t)).length;o--;)h[o]=(a?"#"+a:":scope")+" "+ut(h[o]);p=h.join(",")}try{return m.apply(i,f.querySelectorAll(p)),i}catch(e){_(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(M,"$1"),e,i,n)}function tt(){var t=[];return function i(n,s){return t.push(n+" ")>e.cacheLength&&delete i[t.shift()],i[n+" "]=s}}function et(t){return t[v]=!0,t}function it(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function nt(t){return function(e){return D(e,"input")&&e.type===t}}function st(t){return function(e){return(D(e,"input")||D(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Q(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function rt(t){return et((function(e){return e=+e,et((function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var i,n=t?t.ownerDocument||t:L;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,u=!k.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,L!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",J),g.getById=it((function(t){return c.appendChild(t).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),g.disconnectedMatch=it((function(t){return f.call(t,"*")})),g.scope=it((function(){return l.querySelectorAll(":scope")})),g.cssHas=it((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace(G,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i=e.getElementById(t);return i?[i]:[]}}):(e.filter.ID=function(t){var e=t.replace(G,X);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&u)return e.getElementsByClassName(t)},d=[],it((function(t){var e;c.appendChild(t).innerHTML="",t.querySelectorAll("[selected]").length||d.push("\\["+O+"*(?:value|"+$+")"),t.querySelectorAll("[id~="+v+"-]").length||d.push("~="),t.querySelectorAll("a#"+v+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")})),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),T=function(t,e){if(t===e)return r=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===i?t===l||t.ownerDocument==L&&Z.contains(L,t)?-1:e===l||e.ownerDocument==L&&Z.contains(L,e)?1:s?h.call(s,t)-h.call(s,e):0:4&i?-1:1)},l):l}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(lt(t),u&&!_[e+" "]&&(!d||!d.test(e)))try{var i=f.call(t,e);if(i||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){_(e,!0)}return Z(e,l,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),k.contains(t,e)},Z.attr=function(t,i){(t.ownerDocument||t)!=l&<(t);var n=e.attrHandle[i.toLowerCase()],s=n&&p.call(e.attrHandle,i.toLowerCase())?n(t,i,!u):void 0;return void 0!==s?s:t.getAttribute(i)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},k.uniqueSort=function(t){var e,i=[],n=0,o=0;if(r=!g.sortStable,s=!g.sortStable&&a.call(t,0),E.call(t,T),r){for(;e=t[o++];)e===t[o]&&(n=i.push(o));for(;n--;)A.call(t,i[n],1)}return s=null,t},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(a.apply(this)))},e=k.expr={cacheLength:50,createPseudo:et,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(G,X),t[3]=(t[3]||t[4]||t[5]||"").replace(G,X),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&q.test(i)&&(e=ht(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(G,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return D(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var s=Z.attr(n,t);return null==s?"!="===e:!e||(s+="","="===e?s===i:"!="===e?s!==i:"^="===e?i&&0===s.indexOf(i):"*="===e?i&&s.indexOf(i)>-1:"$="===e?i&&s.slice(-i.length)===i:"~="===e?(" "+s.replace(F," ")+" ").indexOf(i)>-1:"|="===e&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,h,u,d,p,f=o!==r?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(m){if(o){for(;f;){for(u=e;u=u[f];)if(a?D(u,g):1===u.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&b){for(w=(d=(c=(h=m[v]||(m[v]={}))[t]||[])[0]===y&&c[1])&&c[2],u=d&&m.childNodes[d];u=++d&&u&&u[f]||(w=d=0)||p.pop();)if(1===u.nodeType&&++w&&u===e){h[t]=[y,d,w];break}}else if(b&&(w=d=(c=(h=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===w)for(;(u=++d&&u&&u[f]||(w=d=0)||p.pop())&&(!(a?D(u,g):1===u.nodeType)||!++w||(b&&((h=u[v]||(u[v]={}))[t]=[y,w]),u!==e)););return(w-=s)===n||w%n==0&&w/n>=0}}},PSEUDO:function(t,i){var n,s=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return s[v]?s(i):s.length>1?(n=[t,t,"",i],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var n,o=s(t,i),r=o.length;r--;)t[n=h.call(t,o[r])]=!(e[n]=o[r])})):function(t){return s(t,0,n)}):s}},pseudos:{not:et((function(t){var e=[],i=[],n=vt(t.replace(M,"$1"));return n[v]?et((function(t,e,i,s){for(var o,r=n(t,null,s,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))})):function(t,s,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:et((function(t){return function(e){return Z(t,e).length>0}})),contains:et((function(t){return t=t.replace(G,X),function(e){return(e.textContent||k.text(e)).indexOf(t)>-1}})),lang:et((function(t){return W.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(G,X).toLowerCase(),function(e){var i;do{if(i=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return D(t,"input")&&!!t.checked||D(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return V.test(t.nodeName)},input:function(t){return B.test(t.nodeName)},button:function(t){return D(t,"input")&&"button"===t.type||D(t,"button")},text:function(t){var e;return D(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:rt((function(){return[0]})),last:rt((function(t,e){return[e-1]})),eq:rt((function(t,e,i){return[i<0?i+e:i]})),even:rt((function(t,e){for(var i=0;ie?e:i;--n>=0;)t.push(n);return t})),gt:rt((function(t,e,i){for(var n=i<0?i+e:i;++n1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function ft(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a-1&&(o[c]=!(r[c]=d))}}else p=ft(p===r?p.splice(v,p.length):p),s?s(null,r,p,l):m.apply(r,p)}))}function gt(t){for(var n,s,o,r=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,u=dt((function(t){return t===n}),l,!0),d=dt((function(t){return h.call(n,t)>-1}),l,!0),p=[function(t,e,s){var o=!a&&(s||e!=i)||((n=e).nodeType?u(t,e,s):d(t,e,s));return n=null,o}];c1&&pt(p),c>1&&ut(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(M,"$1"),s,c0,o=t.length>0,r=function(r,a,c,h,d){var p,f,g,v=0,b="0",w=r&&[],x=[],C=i,_=r||o&&e.find.TAG("*",d),T=y+=null==C?1:Math.random()||.1,$=_.length;for(d&&(i=a==l||a||d);b!==$&&null!=(p=_[b]);b++){if(o&&p){for(f=0,a||p.ownerDocument==l||(lt(p),c=!u);g=t[f++];)if(g(p,a||l,c)){m.call(h,p);break}d&&(y=T)}s&&((p=!g&&p)&&v--,r&&w.push(p))}if(v+=b,s&&b!==v){for(f=0;g=n[f++];)g(w,x,a,c);if(r){if(v>0)for(;b--;)w[b]||x[b]||(x[b]=S.call(h));x=ft(x)}m.apply(h,x),d&&!r&&x.length>0&&v+n.length>1&&k.uniqueSort(h)}return d&&(y=T,i=C),w};return s?et(r):r}(r,o)),a.selector=t}return a}function yt(t,i,n,s){var o,r,a,l,c,h="function"==typeof t&&t,d=!s&&ht(t=h.selector||t);if(n=n||[],1===d.length){if((r=d[0]=d[0].slice(0)).length>2&&"ID"===(a=r[0]).type&&9===i.nodeType&&u&&e.relative[r[1].type]){if(!(i=(e.find.ID(a.matches[0].replace(G,X),i)||[])[0]))return n;h&&(i=i.parentNode),t=t.slice(r.shift().value.length)}for(o=z.needsContext.test(t)?0:r.length;o--&&(a=r[o],!e.relative[l=a.type]);)if((c=e.find[l])&&(s=c(a.matches[0].replace(G,X),K.test(r[0].type)&&at(i.parentNode)||i))){if(r.splice(o,1),!(t=s.length&&ut(r)))return m.apply(n,s),n;break}}return(h||vt(t,d))(s,i,!u,n,!i||K.test(t)&&at(i.parentNode)||i),n}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,g.sortStable=v.split("").sort(T).join("")===v,lt(),g.sortDetached=it((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),k.find=Z,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,Z.compile=vt,Z.select=yt,Z.setDocument=lt,Z.escape=k.escapeSelector,Z.getText=k.text,Z.isXML=k.isXMLDoc,Z.selectors=k.expr,Z.support=k.support,Z.uniqueSort=k.uniqueSort}();var j=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&k(t).is(i))break;n.push(t)}return n},F=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},H=k.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,i){return v(e)?k.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?k.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?k.grep(t,(function(t){return h.call(e,t)>-1!==i})):k.filter(e,t,i)}k.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?k.find.matchesSelector(n,t)?[n]:[]:k.find.matches(t,k.grep(e,(function(t){return 1===t.nodeType})))},k.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(k(t).filter((function(){for(e=0;e1?k.uniqueSort(i):i},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"==typeof t&&H.test(t)?k(t):t||[],!1).length}});var q,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||q,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),R.test(n[1])&&k.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=b.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,q=k(b);var z=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function V(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),i=e.length;return this.filter((function(){for(var t=0;t-1:1===i.nodeType&&k.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?h.call(k(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,"parentNode")},parentsUntil:function(t,e,i){return j(t,"parentNode",i)},next:function(t){return V(t,"nextSibling")},prev:function(t){return V(t,"previousSibling")},nextAll:function(t){return j(t,"nextSibling")},prevAll:function(t){return j(t,"previousSibling")},nextUntil:function(t,e,i){return j(t,"nextSibling",i)},prevUntil:function(t,e,i){return j(t,"previousSibling",i)},siblings:function(t){return F((t.parentNode||{}).firstChild,t)},children:function(t){return F(t.firstChild)},contents:function(t){return null!=t.contentDocument&&r(t.contentDocument)?t.contentDocument:(D(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},(function(t,e){k.fn[t]=function(i,n){var s=k.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=k.filter(n,s)),this.length>1&&(B[t]||k.uniqueSort(s),z.test(t)&&s.reverse()),this.pushStack(s)}}));var Y=/[^\x20\t\r\n\f]+/g;function K(t){return t}function G(t){throw t}function X(t,e,i,n){var s;try{t&&v(s=t.promise)?s.call(t).done(e).fail(i):t&&v(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}k.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return k.each(t.match(Y)||[],(function(t,i){e[i]=!0})),e}(t):k.extend({},t);var e,i,n,s,o=[],r=[],a=-1,l=function(){for(s=s||t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a-1;)o.splice(i,1),i<=a&&a--})),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=r=[],i||e||(o=i=""),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var t=arguments;return k.Deferred((function(i){k.each(e,(function(e,n){var s=v(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=s&&s.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,s){var o=0;function r(t,e,i,s){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(t=o&&(i!==G&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?h():(k.Deferred.getErrorHook?h.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(h.error=k.Deferred.getStackHook()),n.setTimeout(h))}}return k.Deferred((function(n){e[0][3].add(r(0,n,v(s)?s:K,n.notifyWith)),e[1][3].add(r(0,n,v(t)?t:K)),e[2][3].add(r(0,n,v(i)?i:G))})).promise()},promise:function(t){return null!=t?k.extend(t,s):s}},o={};return k.each(e,(function(t,n){var r=n[2],a=n[5];s[n[1]]=r.add,a&&r.add((function(){i=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),r.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=r.fireWith})),s.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),s=a.call(arguments),o=k.Deferred(),r=function(t){return function(i){n[t]=this,s[t]=arguments.length>1?a.call(arguments):i,--e||o.resolveWith(n,s)}};if(e<=1&&(X(t,o.done(r(i)).resolve,o.reject,!e),"pending"===o.state()||v(s[i]&&s[i].then)))return o.then();for(;i--;)X(s[i],r(i),o.reject);return o.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&J.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){n.setTimeout((function(){throw t}))};var Q=k.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),n.removeEventListener("load",Z),k.ready()}k.fn.ready=function(t){return Q.then(t).catch((function(t){k.readyException(t)})),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||Q.resolveWith(b,[k]))}}),k.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",Z),n.addEventListener("load",Z));var tt=function(t,e,i,n,s,o,r){var a=0,l=t.length,c=null==i;if("object"===C(i))for(a in s=!0,i)tt(t,e,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,v(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(k(t),i)})),e))for(;a1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),k.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=at.get(t,e),i&&(!n||Array.isArray(i)?n=at.access(t,e,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=k.queue(t,e),n=i.length,s=i.shift(),o=k._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,(function(){k.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return at.get(t,i)||at.access(t,i,{empty:k.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",i])}))})}}),k.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length\x20\t\r\n\f]*)/i,Dt=/^$|^module$|\/(?:java|ecma)script/i;_t=b.createDocumentFragment().appendChild(b.createElement("div")),(Tt=b.createElement("input")).setAttribute("type","radio"),Tt.setAttribute("checked","checked"),Tt.setAttribute("name","t"),_t.appendChild(Tt),g.checkClone=_t.cloneNode(!0).cloneNode(!0).lastChild.checked,_t.innerHTML="",g.noCloneChecked=!!_t.cloneNode(!0).lastChild.defaultValue,_t.innerHTML="",g.option=!!_t.lastChild;var St={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function Et(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?k.merge([t],i):i}function At(t,e){for(var i=0,n=t.length;i",""]);var Ot=/<|?\w+;/;function Mt(t,e,i,n,s){for(var o,r,a,l,c,h,u=e.createDocumentFragment(),d=[],p=0,f=t.length;p-1)s&&s.push(o);else if(c=gt(o),r=Et(u.appendChild(o),"script"),c&&At(r),i)for(h=0;o=r[h++];)Dt.test(o.type||"")&&i.push(o);return u}var It=/^([^.]*)(?:\.(.+)|)/;function Nt(){return!0}function Lt(){return!1}function Pt(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Pt(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=Lt;else if(!s)return t;return 1===o&&(r=s,s=function(t){return k().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=k.guid++)),t.each((function(){k.event.add(this,e,s,n,i)}))}function jt(t,e,i){i?(at.set(t,e,!1),k.event.add(t,e,{namespace:!1,handler:function(t){var i,n=at.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(k.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=a.call(arguments),at.set(this,e,n),this[e](),i=at.get(this,e),at.set(this,e,!1),n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else n&&(at.set(this,e,k.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Nt)}})):void 0===at.get(t,e)&&k.event.add(t,e,Nt)}k.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,c,h,u,d,p,f,m,g=at.get(t);if(ot(t))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&k.find.matchesSelector(mt,s),i.guid||(i.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(Y)||[""]).length;c--;)p=m=(a=It.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=k.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=k.event.special[p]||{},h=k.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&k.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,h):d.push(h),k.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,h,u,d,p,f,m,g=at.hasData(t)&&at.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(Y)||[""]).length;c--;)if(p=m=(a=It.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=k.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)h=d[o],!s&&m!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(o,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||k.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)k.event.remove(t,p+e[c],i,n,!0);k.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,r,a=new Array(arguments.length),l=k.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],h=k.event.special[l.type]||{};for(a[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],r={},i=0;i-1:k.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l\s*$/g;function Ut(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var i,n,s,o,r,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(s in at.remove(e,"handle events"),a)for(i=0,n=a[s].length;i1&&"string"==typeof f&&!g.checkClone&&Ht.test(f))return t.each((function(s){var o=t.eq(s);m&&(e[0]=f.call(this,s,o.html())),Vt(o,e,i,n)}));if(d&&(o=(s=Mt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===s.childNodes.length&&(s=o),o||n)){for(a=(r=k.map(Et(s,"script"),qt)).length;u0&&At(r,!l&&Et(t,"script")),a},cleanData:function(t){for(var e,i,n,s=k.event.special,o=0;void 0!==(i=t[o]);o++)if(ot(i)){if(e=i[at.expando]){if(e.events)for(n in e.events)s[n]?k.event.remove(i,n):k.removeEvent(i,n,e.handle);i[at.expando]=void 0}i[lt.expando]&&(i[lt.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Vt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ut(this,t).appendChild(t)}))},prepend:function(){return Vt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Vt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Vt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return k.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ft.test(t)&&!St[($t.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;i=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+c}function he(t,e,i){var n=Xt(t),s=(!g.boxSizingReliable()||i)&&"border-box"===k.css(t,"boxSizing",!1,n),o=s,r=Zt(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Kt.test(r)){if(!i)return r;r="auto"}return(!g.boxSizingReliable()&&s||!g.reliableTrDimensions()&&D(t,"tr")||"auto"===r||!parseFloat(r)&&"inline"===k.css(t,"display",!1,n))&&t.getClientRects().length&&(s="border-box"===k.css(t,"boxSizing",!1,n),(o=a in t)&&(r=t[a])),(r=parseFloat(r)||0)+ce(t,e,i||(s?"border":"content"),o,n,r)+"px"}function ue(t,e,i,n,s){return new ue.prototype.init(t,e,i,n,s)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Zt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=st(e),l=Gt.test(e),c=t.style;if(l||(e=se(a)),r=k.cssHooks[e]||k.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:c[e];"string"===(o=typeof i)&&(s=pt.exec(i))&&s[1]&&(i=bt(t,e,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(k.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var s,o,r,a=st(e);return Gt.test(e)||(e=se(a)),(r=k.cssHooks[e]||k.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=Zt(t,e,n)),"normal"===s&&e in ae&&(s=ae[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),k.each(["height","width"],(function(t,e){k.cssHooks[e]={get:function(t,i,n){if(i)return!oe.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?he(t,e,n):Jt(t,re,(function(){return he(t,e,n)}))},set:function(t,i,n){var s,o=Xt(t),r=!g.scrollboxSize()&&"absolute"===o.position,a=(r||n)&&"border-box"===k.css(t,"boxSizing",!1,o),l=n?ce(t,e,n,a,o):0;return a&&r&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ce(t,e,"border",!1,o)-.5)),l&&(s=pt.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=k.css(t,e)),le(0,i,l)}}})),k.cssHooks.marginLeft=te(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(t,e){k.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+ft[n]+e]=o[n]||o[n-2]||o[0];return s}},"margin"!==t&&(k.cssHooks[t+e].set=le)})),k.fn.extend({css:function(t,e){return tt(this,(function(t,e,i){var n,s,o={},r=0;if(Array.isArray(e)){for(n=Xt(t),s=e.length;r1)}}),k.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,i=ue.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[se(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=ue.prototype.init,k.fx.step={};var de,pe,fe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){pe&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ge):n.setTimeout(ge,k.fx.interval),k.fx.tick())}function ve(){return n.setTimeout((function(){de=void 0})),de=Date.now()}function ye(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=ft[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function be(t,e,i){for(var n,s=(we.tweeners[e]||[]).concat(we.tweeners["*"]),o=0,r=s.length;o1)},removeAttr:function(t){return this.each((function(){k.removeAttr(this,t)}))}}),k.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,i):(1===o&&k.isXMLDoc(t)||(s=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?xe:void 0)),void 0!==i?null===i?void k.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=k.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(Y);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),xe={set:function(t,e,i){return!1===e?k.removeAttr(t,i):t.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=Ce[e]||k.find.attr;Ce[e]=function(t,e,n){var s,o,r=e.toLowerCase();return n||(o=Ce[r],Ce[r]=s,s=null!=i(t,e,n)?r:null,Ce[r]=o),s}}));var _e=/^(?:input|select|textarea|button)$/i,Te=/^(?:a|area)$/i;function ke(t){return(t.match(Y)||[]).join(" ")}function $e(t){return t.getAttribute&&t.getAttribute("class")||""}function De(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}k.fn.extend({prop:function(t,e){return tt(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[k.propFix[t]||t]}))}}),k.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,s=k.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):_e.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(t){var e,i,n,s,o,r;return v(t)?this.each((function(e){k(this).addClass(t.call(this,e,$e(this)))})):(e=De(t)).length?this.each((function(){if(n=$e(this),i=1===this.nodeType&&" "+ke(n)+" "){for(o=0;o-1;)i=i.replace(" "+s+" "," ");r=ke(i),n!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(t,e){var i,n,s,o,r=typeof t,a="string"===r||Array.isArray(t);return v(t)?this.each((function(i){k(this).toggleClass(t.call(this,i,$e(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(i=De(t),this.each((function(){if(a)for(o=k(this),s=0;s-1)return!0;return!1}});var Se=/\r/g;k.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=v(t),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?t.call(this,i,k(this).val()):t)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=k.map(s,(function(t){return null==t?"":t+""}))),(e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))}))):s?(e=k.valHooks[s.type]||k.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(Se,""):null==i?"":i:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:ke(k.text(t))}},select:{get:function(t){var e,i,n,s=t.options,o=t.selectedIndex,r="select-one"===t.type,a=r?null:[],l=r?o+1:s.length;for(n=o<0?l:r?o:0;n-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},g.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ee=n.location,Ae={guid:Date.now()},Oe=/\?/;k.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Me=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,i,s){var o,r,a,l,c,h,u,d,f=[i||b],m=p.call(t,"type")?t.type:t,g=p.call(t,"namespace")?t.namespace.split("."):[];if(r=d=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Me.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[k.expando]?t:new k.Event(m,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:k.makeArray(e,[t]),u=k.event.special[m]||{},s||!u.trigger||!1!==u.trigger.apply(i,e))){if(!s&&!u.noBubble&&!y(i)){for(l=u.delegateType||m,Me.test(l+m)||(r=r.parentNode);r;r=r.parentNode)f.push(r),a=r;a===(i.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||n)}for(o=0;(r=f[o++])&&!t.isPropagationStopped();)d=r,t.type=o>1?l:u.bindType||m,(h=(at.get(r,"events")||Object.create(null))[t.type]&&at.get(r,"handle"))&&h.apply(r,e),(h=c&&r[c])&&h.apply&&ot(r)&&(t.result=h.apply(r,e),!1===t.result&&t.preventDefault());return t.type=m,s||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),e)||!ot(i)||c&&v(i[m])&&!y(i)&&((a=i[c])&&(i[c]=null),k.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,Ie),i[m](),t.isPropagationStopped()&&d.removeEventListener(m,Ie),k.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(t,e,i){var n=k.extend(new k.Event,i,{type:t,isSimulated:!0});k.event.trigger(n,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each((function(){k.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return k.event.trigger(t,e,i,!0)}});var Ne=/\[\]$/,Le=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,i,n){var s;if(Array.isArray(e))k.each(e,(function(e,s){i||Ne.test(t)?n(t,s):Fe(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)}));else if(i||"object"!==C(e))n(t,e);else for(s in e)Fe(t+"["+s+"]",e[s],i,n)}k.param=function(t,e){var i,n=[],s=function(t,e){var i=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,(function(){s(this.name,this.value)}));else for(i in t)Fe(i,t[i],e,s);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&je.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!kt.test(t))})).map((function(t,e){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,(function(t){return{name:e.name,value:t.replace(Le,"\r\n")}})):{name:e.name,value:i.replace(Le,"\r\n")}})).get()}});var He=/%20/g,Re=/#.*$/,Ue=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,ze=/^\/\//,Be={},Ve={},Ye="*/".concat("*"),Ke=b.createElement("a");function Ge(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(Y)||[];if(v(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Xe(t,e,i,n){var s={},o=t===Ve;function r(a){var l;return s[a]=!0,k.each(t[a]||[],(function(t,a){var c=a(e,i,n);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}return r(e.dataTypes[0])||!s["*"]&&r("*")}function Je(t,e){var i,n,s=k.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&k.extend(!0,t,n),t}Ke.href=Ee.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,k.ajaxSettings),e):Je(k.ajaxSettings,t)},ajaxPrefilter:Ge(Be),ajaxTransport:Ge(Ve),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,s,o,r,a,l,c,h,u,d,p=k.ajaxSetup({},e),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?k(f):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),y=p.statusCode||{},w={},x={},C="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(c){if(!r)for(r={};e=qe.exec(o);)r[e[1].toLowerCase()+" "]=(r[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=r[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)_.always(t[_.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||C;return i&&i.abort(e),T(0,e),this}};if(g.promise(_),p.url=((t||p.url||Ee.href)+"").replace(ze,Ee.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Y)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ke.protocol+"//"+Ke.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),Xe(Be,p,e,_),c)return _;for(u in(h=k.event&&p.global)&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),s=p.url.replace(Re,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(He,"+")):(d=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(Oe.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(Ue,"$1"),d=(Oe.test(s)?"&":"?")+"_="+Ae.guid+++d),p.url=s+d),p.ifModified&&(k.lastModified[s]&&_.setRequestHeader("If-Modified-Since",k.lastModified[s]),k.etag[s]&&_.setRequestHeader("If-None-Match",k.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ye+"; q=0.01":""):p.accepts["*"]),p.headers)_.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(f,_,p)||c))return _.abort();if(C="abort",v.add(p.complete),_.done(p.success),_.fail(p.error),i=Xe(Ve,p,e,_)){if(_.readyState=1,h&&m.trigger("ajaxSend",[_,p]),c)return _;p.async&&p.timeout>0&&(a=n.setTimeout((function(){_.abort("timeout")}),p.timeout));try{c=!1,i.send(w,T)}catch(t){if(c)throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,r,l){var u,d,b,w,x,C=e;c||(c=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",_.readyState=t>0?4:0,u=t>=200&&t<300||304===t,r&&(w=function(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,_,r)),!u&&k.inArray("script",p.dataTypes)>-1&&k.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,i,n){var s,o,r,a,l,c={},h=t.dataTypes.slice();if(h[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],h.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,_,u),u?(p.ifModified&&((x=_.getResponseHeader("Last-Modified"))&&(k.lastModified[s]=x),(x=_.getResponseHeader("etag"))&&(k.etag[s]=x)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=w.state,d=w.data,u=!(b=w.error))):(b=C,!t&&C||(C="error",t<0&&(t=0))),_.status=t,_.statusText=(e||C)+"",u?g.resolveWith(f,[d,C,_]):g.rejectWith(f,[_,C,b]),_.statusCode(y),y=void 0,h&&m.trigger(u?"ajaxSuccess":"ajaxError",[_,p,u?d:b]),v.fireWith(f,[_,C]),h&&(m.trigger("ajaxComplete",[_,p]),--k.active||k.event.trigger("ajaxStop")))}return _},getJSON:function(t,e,i){return k.get(t,e,i,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],(function(t,e){k[e]=function(t,i,n,s){return v(i)&&(s=s||n,n=i,i=void 0),k.ajax(k.extend({url:t,type:e,dataType:s,data:i,success:n},k.isPlainObject(t)&&t))}})),k.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),k._evalUrl=function(t,e,i){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,i)}})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){k(this).wrapInner(t.call(this,e))})):this.each((function(){var e=k(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(i){k(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Qe={0:200,1223:204},Ze=k.ajaxSettings.xhr();g.cors=!!Ze&&"withCredentials"in Ze,g.ajax=Ze=!!Ze,k.ajaxTransport((function(t){var e,i;if(g.cors||Ze&&!t.crossDomain)return{send:function(s,o){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];for(r in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Qe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),k.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),k.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,s){e=k("