!function(){var e={3752:function(e,t,n){var i=n(9755);if(void 0===i)throw new Error("AdminLTE requires jQuery");!function(e){"use strict";function t(t,n){if(this.element=t,this.options=n,this.$overlay=e(n.overlayTemplate),""===n.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()}var n="lte.boxrefresh",i={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'
',onLoadStart:function(){},onLoadDone:function(e){return e}};function s(s){return this.each((function(){var a=e(this),r=a.data(n);if(!r){var o=e.extend({},i,a.data(),"object"==typeof s&&s);a.data(n,r=new t(a,o))}if("string"==typeof r){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}t.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(e(this)),e.get(this.options.source,this.options.params,function(t){this.options.loadInContent&&e(this.element).find(this.options.content).html(t),this.options.onLoadDone.call(e(this),t),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},t.prototype._setUpListeners=function(){e(this.element).on("click",this.options.trigger,function(e){e&&e.preventDefault(),this.load()}.bind(this))},t.prototype._addOverlay=function(){e(this.element).append(this.$overlay)},t.prototype._removeOverlay=function(){e(this.$overlay).remove()};var a=e.fn.boxRefresh;e.fn.boxRefresh=s,e.fn.boxRefresh.Constructor=t,e.fn.boxRefresh.noConflict=function(){return e.fn.boxRefresh=a,this},e(window).on("load",(function(){e('[data-widget="box-refresh"]').each((function(){s.call(e(this))}))}))}(i),function(e){"use strict";function t(e,t){this.element=e,this.options=t,this._setUpListeners()}var n="lte.boxwidget",i={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},s=".box-header",a=".box-body",r=".box-footer",o=".box-tools",d="collapsed-box";function l(s){return this.each((function(){var a=e(this),r=a.data(n);if(!r){var o=e.extend({},i,a.data(),"object"==typeof s&&s);a.data(n,r=new t(a,o))}if("string"==typeof s){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}t.prototype.toggle=function(){e(this.element).is(".collapsed-box")?this.expand():this.collapse()},t.prototype.expand=function(){var t=e.Event("expanded.boxwidget"),n=e.Event("expanding.boxwidget"),i=this.options.collapseIcon,l=this.options.expandIcon;e(this.element).removeClass(d),e(this.element).children(s+", "+a+", "+r).children(o).find("."+l).removeClass(l).addClass(i),e(this.element).children(a+", "+r).slideDown(this.options.animationSpeed,function(){e(this.element).trigger(t)}.bind(this)).trigger(n)},t.prototype.collapse=function(){var t=e.Event("collapsed.boxwidget"),n=e.Event("collapsing.boxwidget"),i=this.options.collapseIcon,l=this.options.expandIcon;e(this.element).children(s+", "+a+", "+r).children(o).find("."+i).removeClass(i).addClass(l),e(this.element).children(a+", "+r).slideUp(this.options.animationSpeed,function(){e(this.element).addClass(d),e(this.element).trigger(t)}.bind(this)).trigger(n)},t.prototype.remove=function(){var t=e.Event("removed.boxwidget"),n=e.Event("removing.boxwidget");e(this.element).slideUp(this.options.animationSpeed,function(){e(this.element).trigger(t),e(this.element).remove()}.bind(this)).trigger(n)},t.prototype._setUpListeners=function(){var t=this;e(this.element).on("click",this.options.collapseTrigger,(function(n){return n&&n.preventDefault(),t.toggle(e(this)),!1})),e(this.element).on("click",this.options.removeTrigger,(function(n){return n&&n.preventDefault(),t.remove(e(this)),!1}))};var u=e.fn.boxWidget;e.fn.boxWidget=l,e.fn.boxWidget.Constructor=t,e.fn.boxWidget.noConflict=function(){return e.fn.boxWidget=u,this},e(window).on("load",(function(){e(".box").each((function(){l.call(e(this))}))}))}(i),function(e){"use strict";function t(e,t){this.element=e,this.options=t,this.hasBindedResize=!1,this.init()}var n="lte.controlsidebar",i={controlsidebarSlide:!0},s=".control-sidebar",a='[data-toggle="control-sidebar"]',r=".control-sidebar-open",o="control-sidebar-open",d="control-sidebar-hold-transition";function l(s){return this.each((function(){var a=e(this),r=a.data(n);if(!r){var o=e.extend({},i,a.data(),"object"==typeof s&&s);a.data(n,r=new t(a,o))}"string"==typeof s&&r.toggle()}))}t.prototype.init=function(){e(this.element).is(a)||e(this).on("click",this.toggle),this.fix(),e(window).resize(function(){this.fix()}.bind(this))},t.prototype.toggle=function(t){t&&t.preventDefault(),this.fix(),e(s).is(r)||e("body").is(r)?this.collapse():this.expand()},t.prototype.expand=function(){e(s).show(),this.options.controlsidebarSlide?e(s).addClass(o):e("body").addClass(d).addClass(o).delay(50).queue((function(){e("body").removeClass(d),e(this).dequeue()})),e(this.element).trigger(e.Event("expanded.controlsidebar"))},t.prototype.collapse=function(){this.options.controlsidebarSlide?e(s).removeClass(o):e("body").addClass(d).removeClass(o).delay(50).queue((function(){e("body").removeClass(d),e(this).dequeue()})),e(s).fadeOut(),e(this.element).trigger(e.Event("collapsed.controlsidebar"))},t.prototype.fix=function(){e("body").is(".layout-boxed")&&this._fixForBoxed(e(".control-sidebar-bg"))},t.prototype._fixForBoxed=function(t){t.css({position:"absolute",height:e(".wrapper").height()})};var u=e.fn.controlSidebar;e.fn.controlSidebar=l,e.fn.controlSidebar.Constructor=t,e.fn.controlSidebar.noConflict=function(){return e.fn.controlSidebar=u,this},e(document).on("click",a,(function(t){t&&t.preventDefault(),l.call(e(this),"toggle")}))}(i),function(e){"use strict";function t(e){this.element=e}var n="lte.directchat";function i(i){return this.each((function(){var s=e(this),a=s.data(n);a||s.data(n,a=new t(s)),"string"==typeof i&&a.toggle(s)}))}t.prototype.toggle=function(e){e.parents(".direct-chat").first().toggleClass("direct-chat-contacts-open")};var s=e.fn.directChat;e.fn.directChat=i,e.fn.directChat.Constructor=t,e.fn.directChat.noConflict=function(){return e.fn.directChat=s,this},e(document).on("click",'[data-widget="chat-pane-toggle"]',(function(t){t&&t.preventDefault(),i.call(e(this),"toggle")}))}(i),function(e){"use strict";function t(e){this.options=e,this.init()}var n="lte.pushmenu",i={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},s='[data-toggle="push-menu"]',a=".sidebar-mini",r="sidebar-collapse",o="sidebar-open",d="sidebar-expanded-on-hover",l="expanded.pushMenu",u="collapsed.pushMenu";function c(s){return this.each((function(){var a=e(this),r=a.data(n);if(!r){var o=e.extend({},i,a.data(),"object"==typeof s&&s);a.data(n,r=new t(o))}"toggle"===s&&r.toggle()}))}t.prototype.init=function(){(this.options.expandOnHover||e("body").is(a+".fixed"))&&(this.expandOnHover(),e("body").addClass("sidebar-mini-expand-feature")),e(".content-wrapper").click(function(){e(window).width()<=this.options.collapseScreenSize&&e("body").hasClass(o)&&this.close()}.bind(this)),e(".sidebar-form .form-control").click((function(e){e.stopPropagation()}))},t.prototype.toggle=function(){var t=e(window).width(),n=!e("body").hasClass(r);t<=this.options.collapseScreenSize&&(n=e("body").hasClass(o)),n?this.close():this.open()},t.prototype.open=function(){e(window).width()>this.options.collapseScreenSize?e("body").removeClass(r).trigger(e.Event(l)):e("body").addClass(o).trigger(e.Event(l))},t.prototype.close=function(){e(window).width()>this.options.collapseScreenSize?e("body").addClass(r).trigger(e.Event(u)):e("body").removeClass(o+" "+r).trigger(e.Event(u))},t.prototype.expandOnHover=function(){e(".main-sidebar").hover(function(){e("body").is(a+".sidebar-collapse")&&e(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){e("body").is(".sidebar-expanded-on-hover")&&this.collapse()}.bind(this))},t.prototype.expand=function(){setTimeout((function(){e("body").removeClass(r).addClass(d)}),this.options.expandTransitionDelay)},t.prototype.collapse=function(){setTimeout((function(){e("body").removeClass(d).addClass(r)}),this.options.expandTransitionDelay)};var h=e.fn.pushMenu;e.fn.pushMenu=c,e.fn.pushMenu.Constructor=t,e.fn.pushMenu.noConflict=function(){return e.fn.pushMenu=h,this},e(document).on("click",s,(function(t){t.preventDefault(),c.call(e(this),"toggle")})),e(window).on("load",(function(){c.call(e(s))}))}(i),function(e){"use strict";function t(e,t){this.element=e,this.options=t,this._setUpListeners()}var n="lte.todolist",i={onCheck:function(e){return e},onUnCheck:function(e){return e}},s={data:'[data-widget="todo-list"]'};function a(s){return this.each((function(){var a=e(this),r=a.data(n);if(!r){var o=e.extend({},i,a.data(),"object"==typeof s&&s);a.data(n,r=new t(a,o))}if("string"==typeof r){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}t.prototype.toggle=function(e){e.parents(s.li).first().toggleClass("done"),e.prop("checked")?this.check(e):this.unCheck(e)},t.prototype.check=function(e){this.options.onCheck.call(e)},t.prototype.unCheck=function(e){this.options.onUnCheck.call(e)},t.prototype._setUpListeners=function(){var t=this;e(this.element).on("change ifChanged","input:checkbox",(function(){t.toggle(e(this))}))};var r=e.fn.todoList;e.fn.todoList=a,e.fn.todoList.Constructor=t,e.fn.todoList.noConflict=function(){return e.fn.todoList=r,this},e(window).on("load",(function(){e(s.data).each((function(){a.call(e(this))}))}))}(i),function(e){"use strict";function t(t,n){this.element=t,this.options=n,e(this.element).addClass(d),e(s+r,this.element).addClass(o),this._setUpListeners()}var n="lte.tree",i={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},s=".treeview",a=".treeview-menu",r=".active",o="menu-open",d="tree";function l(s){return this.each((function(){var a=e(this);if(!a.data(n)){var r=e.extend({},i,a.data(),"object"==typeof s&&s);a.data(n,new t(a,r))}}))}t.prototype.toggle=function(e,t){var n=e.next(a),i=e.parent(),r=i.hasClass(o);i.is(s)&&(this.options.followLink&&"#"!==e.attr("href")||t.preventDefault(),r?this.collapse(n,i):this.expand(n,i))},t.prototype.expand=function(t,n){var i=e.Event("expanded.tree");if(this.options.accordion){var s=n.siblings(".menu-open, .active"),r=s.children(a);this.collapse(r,s)}n.addClass(o),t.stop().slideDown(this.options.animationSpeed,function(){e(this.element).trigger(i),n.height("auto")}.bind(this))},t.prototype.collapse=function(t,n){var i=e.Event("collapsed.tree");n.removeClass(o),t.stop().slideUp(this.options.animationSpeed,function(){e(this.element).trigger(i),n.find(s).removeClass(o).find(a).hide()}.bind(this))},t.prototype._setUpListeners=function(){var t=this;e(this.element).on("click",this.options.trigger,(function(n){t.toggle(e(this),n)}))};var u=e.fn.tree;e.fn.tree=l,e.fn.tree.Constructor=t,e.fn.tree.noConflict=function(){return e.fn.tree=u,this},e(window).on("load",(function(){e('[data-widget="tree"]').each((function(){l.call(e(this))}))}))}(i),function(e){"use strict";function t(e){this.options=e,this.bindedResize=!1,this.activate()}var n="lte.layout",i={slimscroll:!0,resetHeight:!0},s=".wrapper",a=".content-wrapper",r=".main-header",o=".sidebar",d=".sidebar-menu",l="fixed";function u(s){return this.each((function(){var a=e(this),r=a.data(n);if(!r){var o=e.extend({},i,a.data(),"object"==typeof s&&s);a.data(n,r=new t(o))}if("string"==typeof s){if(void 0===r[s])throw new Error("No method named "+s);r[s]()}}))}t.prototype.activate=function(){this.fix(),this.fixSidebar(),e("body").removeClass("hold-transition"),this.options.resetHeight&&e("body, html, "+s).css({height:"auto","min-height":"100%"}),this.bindedResize||(e(window).resize(function(){this.fix(),this.fixSidebar(),e(".main-header .logo, "+o).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),e(d).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),e(d).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},t.prototype.fix=function(){e(".layout-boxed > "+s).css("overflow","hidden");var t=e(".main-footer").outerHeight()||0,n=e(r).outerHeight()||0,i=n+t,d=e(window).height(),u=e(o).outerHeight()||0;if(e("body").hasClass(l))e(a).css("min-height",d-t);else{var c;c=u+n<=d?(e(a).css("min-height",d-i),d-i):(e(a).css("min-height",u),u);var h=e(".control-sidebar");void 0!==h&&h.height()>c&&e(a).css("min-height",h.height())}},t.prototype.fixSidebar=function(){e("body").hasClass(l)?this.options.slimscroll&&void 0!==e.fn.slimScroll&&0===e(".main-sidebar").find("slimScrollDiv").length&&e(o).slimScroll({height:e(window).height()-e(r).height()+"px"}):void 0!==e.fn.slimScroll&&e(o).slimScroll({destroy:!0}).height("auto")};var c=e.fn.layout;e.fn.layout=u,e.fn.layout.Constuctor=t,e.fn.layout.noConflict=function(){return e.fn.layout=c,this},e(window).on("load",(function(){u.call(e("body"))}))}(i)},4078:function(e,t,n){var i=n(9755);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r={collectionCounters:[],config:null,translations:null,shared_setup:function(e){r.read_config(),r.log("[core|shared_setup] Register services on",e),r.set_object_field_value(e),r.add_filters(e),r.setup_select2(e),r.setup_icheck(e),r.setup_checkbox_range_selection(e),r.setup_xeditable(e),r.setup_form_tabs_for_errors(e),r.setup_inline_form_errors(e),r.setup_tree_view(e),r.setup_collection_counter(e),r.setup_sticky_elements(e),r.setup_readmore_elements(e),r.setup_form_submit(e)},read_config:function(){var e=i("[data-sonata-admin]").data("sonata-admin");this.config=e.config,this.translations=e.translations},get_config:function(e){return null==this.config&&this.read_config(),this.config[e]},get_translations:function(e){return null==this.translations&&this.read_config(),this.translations[e]},setup_list_modal:function(e){r.log("[core|setup_list_modal] configure modal on",e),i("div.modal-dialog",e).css({width:"90%",height:"85%",padding:0}),i("div.modal-content",e).css({"border-radius":"0",height:"100%",padding:0}),i(".modal-body",e).css({width:"auto",height:"90%",padding:15,overflow:"auto"}),i(e).trigger("sonata-admin-setup-list-modal")},setup_select2:function(e){r.get_config("USE_SELECT2")&&(r.log("[core|setup_select2] configure Select2 on",e),i('select:not([data-sonata-select2="false"])',e).each((function(e,t){var n=i(t),s=!1,a=n.data("popover"),o=null,d=10;n.removeClass("form-control"),n.find('option[value=""]').length||"true"===n.attr("data-sonata-select2-allow-clear")?s=!0:"false"===n.attr("data-sonata-select2-allow-clear")&&(s=!1),n.attr("data-sonata-select2-maximumSelectionSize")&&(o=n.attr("data-sonata-select2-maximumSelectionSize")),n.attr("data-sonata-select2-minimumResultsForSearch")&&(d=n.attr("data-sonata-select2-minimumResultsForSearch")),n.select2({width:function(){return r.get_select2_width(n)},theme:"bootstrap",dropdownAutoWidth:!0,minimumResultsForSearch:d,placeholder:s?" ":"",allowClear:s,maximumSelectionSize:o}),void 0!==a&&n.select2("container").popover(a.options)})))},setup_icheck:function(e){if(r.get_config("USE_ICHECK")){r.log("[core|setup_icheck] configure iCheck on",e);var t=i('input[type="checkbox"]:not(label.btn > input, [data-sonata-icheck="false"]), input[type="radio"]:not(label.btn > input, [data-sonata-icheck="false"])',e);t.iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue"}),e===window.document&&setTimeout((function(){t.iCheck("update")}),0)}},setup_checkbox_range_selection:function(e){var t;r.log("[core|setup_checkbox_range_selection] configure checkbox range selection on",e);var n=r.get_config("USE_ICHECK");i('tbody input[type="checkbox"], tbody .iCheck-helper',e).on("click",(function(s){var a;if((a=n?i(s.target).prev('input[type="checkbox"]'):i(s.target)).length){var r=a.closest("tr").index();if(s.shiftKey&&t>=0){var o=i('tbody input[type="checkbox"]:nth('.concat(r,")"),e).prop("checked");i('tbody input[type="checkbox"]',e).each((function(e,s){if(e>t&&er&&e',container:"body",placement:"auto",success:function(e){var t=i(e);r.setup_xeditable(t),i(this).closest("td").replaceWith(t)},error:function(e){return"application/json"===e.getResponseHeader("Content-Type")?JSON.parse(e.responseText):e.responseText}})},log:function(){if(r.get_config("DEBUG")){for(var e=arguments.length,t=new Array(e),n=0;n0?i(n).slideDown():i(n).slideUp(),t()}})),i(".sonata-filter-form",e).on("submit",(function(e){var t=i(e.target);if(t.find('[sonata-filter="true"]:hidden :input').val(""),e.target.dataset.defaultValues){var n=r.convert_query_string_to_object(i.param({filter:JSON.parse(e.target.dataset.defaultValues)}));t.find("[name*=filter]").each((function(e,t){var s=t.multiple?[]:"",a=n[t.name]||s,r=i(t).val()||s;JSON.stringify(a)===JSON.stringify(r)&&t.removeAttribute("name")})),0===t.find("[name*=filter]").length&&t.append(' ')}})),0===i(".advanced-filter :input:visible",e).filter((function(){return i(this).val()})).length&&i(".advanced-filter").hide(),i('[data-toggle="advanced-filter"]',e).on("click",(function(){i(".advanced-filter").toggle()})),t()},set_object_field_value:function(e){r.log("[core|set_object_field_value] set value field on",e),this.log(i("a.sonata-ba-edit-inline",e)),i("a.sonata-ba-edit-inline",e).on("click",(function(e){r.stopEvent(e);var t=i(e.target);i.ajax({url:t.attr("href"),type:"POST",success:function(e){var n=t.parent();n.children().remove(),n.html(i(e.replace(//g,"")).html()),n.effect("highlight",{color:"#57A957"},2e3),r.set_object_field_value(n)},error:function(){t.parent().effect("highlight",{color:"#C43C35"},2e3)}})}))},setup_collection_counter:function(e){r.log("[core|setup_collection_counter] setup collection counter",e);var t=new RegExp("_([0-9]+)[^0-9]*$");i(e).find("[data-prototype]").each((function(e,n){var s=i(n),a=-1;s.children().each((function(e,n){var s=t.exec(i('[id^="sonata-ba-field-container"]',n).attr("id"));s&&s[1]&&s[1]>a&&(a=parseInt(s[1],10))})),r.collectionCounters[s.attr("id")]=a}))},setup_collection_buttons:function(e){i(e).on("click",".sonata-collection-add",(function(e){r.stopEvent(e);var t=i(e.target).closest("[data-prototype]");r.collectionCounters[t.attr("id")]+=1;var n=r.collectionCounters[t.attr("id")],s=t.attr("data-prototype"),a=t.attr("data-prototype-name")||"__name__",o=new RegExp("".concat(t.attr("id"),"_").concat(a),"g");s=s.replace(o,"".concat(t.attr("id"),"_").concat(n));var d=t.attr("id").split("_"),l=new RegExp("".concat(d[d.length-1],"\\]\\[").concat(a),"g");s=s.replace(l,"".concat(d[d.length-1],"][").concat(n)),i(s).insertBefore(i(e.target).parent()).trigger("sonata-admin-append-form-element"),i(e.target).trigger("sonata-collection-item-added")})),i(e).on("click",".sonata-collection-delete",(function(e){r.stopEvent(e),i(e.target).trigger("sonata-collection-item-deleted"),i(e.target).closest(".sonata-collection-row").remove(),i(document).trigger("sonata-collection-item-deleted-successful")}))},setup_per_page_switcher:function(e){r.log("[core|setup_per_page_switcher] setup page switcher",e),i("select.per-page").on("change",(function(e){i("input[type=submit]").hide(),window.top.location.href=e.target.options[e.target.selectedIndex].value}))},setup_form_tabs_for_errors:function(e){r.log("[core|setup_form_tabs_for_errors] setup form tab's errors",e),i("form",e).each((function(e,t){r.show_form_first_tab_with_errors(i(t),".sonata-ba-field-error")})),i(e).on("click",'form [type="submit"]',(function(e){r.show_form_first_tab_with_errors(i(e.target).closest("form"),":invalid")})).on("keypress",'form [type="text"]',(function(e){13===e.which&&r.show_form_first_tab_with_errors(i(e.target),":invalid")}))},show_form_first_tab_with_errors:function(e,t){var n;r.log("[core|show_form_first_tab_with_errors] show first tab with errors",e),e.find(".nav-tabs a").each((function(e,s){var a=i(s).attr("href"),r=i(s),o=r.find(".has-errors");i(a).find(t).length>0?(n||(r.tab("show"),n=r),o.removeClass("hide")):o.addClass("hide")}))},setup_inline_form_errors:function(e){r.log("[core|setup_inline_form_errors] show first tab with errors",e);var t='.sonata-ba-field-inline-table [id$="_delete"][type="checkbox"]';i(t,e).each((function(e,t){r.switch_inline_form_errors(i(t))})),i(e).on("change",t,(function(e){r.switch_inline_form_errors(i(e.target))}))},switch_inline_form_errors:function(e){r.log("[core|switch_inline_form_errors] switch_inline_form_errors",e);var t=e.closest(".sonata-ba-field-inline-table"),n=t.find(".sonata-ba-field-error-messages");e.is(":checked")?(t.find("[required]").removeAttr("required").attr("data-required","required"),n.hide()):(t.find("[data-required]").attr("required","required"),n.show())},setup_tree_view:function(e){r.log("[core|setup_tree_view] setup tree view",e),i("ul.js-treeview",e).treeView()},get_select2_width:function(e){var t=/width:(auto|(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc)))/i,n=e.attr("style");if(void 0!==n)for(var i=n.split(";"),s=0,a=i.length;s=1)return r[1]}return(n=e.css("width")).indexOf("%")>0?n:"100%"},setup_sortable_select2:function(e,t,n){for(var o=[],d=0;d").attr("type","hidden").attr("name","".concat(n+s,"]")).val(t[s]).appendTo(e.parents("form:first"))}e.remove()}))},setup_sticky_elements:function(e){if(r.get_config("USE_STICKYFORMS")){r.log("[core|setup_sticky_elements] setup sticky elements on",e);var t=i(e).find(".navbar-static-top"),n=i(e).find(".content-wrapper"),s=i(n).find("nav.navbar"),a=i(n).find(".sonata-ba-form-actions");s.length&&new window.Waypoint.Sticky({element:s[0],offset:function(){return r.refreshNavbarStuckClass(t),i(t).outerHeight()},handler:function(e){"up"===e?i(s).width("auto"):i(s).width(i(n).outerWidth()),r.refreshNavbarStuckClass(t)}}),a.length&&new window.Waypoint({element:n[0],offset:"bottom-in-view",handler:function(e){i(".sonata-ba-form form > .row").outerHeight()+i(a).outerHeight()-2=i(document).height()&&i(e).removeClass("stuck"),t.length&&0===i(window).scrollTop()&&i(t).removeClass("stuck")}),250)),i("body").on("expanded.pushMenu collapsed.pushMenu",(function(){setTimeout((function(){r.handleResize(e,t,n)}),350)})),i(window).on("resize",r.debounce((function(){r.handleResize(e,t,n)}),250))},handleResize:function(e,t,n){t.length&&i(t).hasClass("stuck")&&i(t).width(i(n).outerWidth()),e.length&&i(e).hasClass("stuck")&&i(e).width(i(n).outerWidth())},refreshNavbarStuckClass:function(e){var t=i("#navbar-stuck");t.length||(t=i('").appendTo(a)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var n,i,s,a,r=this.options,o=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;n--)if(s=(i=this.items[n]).item[0],(a=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var i=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(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,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){i._clear(t)}))}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.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 t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].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(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e(n).each((function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&i.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))})),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n.each((function(){i.push(e(t.item||this).attr(t.attribute||"id")||"")})),i},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,i=this.positionAbs.top,s=i+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,d=o+e.height,l=this.offset.click.top,u=this.offset.click.left,c="x"===this.options.axis||i+l>o&&i+la&&t+ue[this.floating?"width":"height"]?p:a0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,i,s,a,r=[],o=[],d=this._connectWith();if(d&&t)for(n=d.length-1;n>=0;n--)for(i=(s=e(d[n],this.document[0])).length-1;i>=0;i--)(a=e.data(s[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push([e.isFunction(a.options.items)?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function l(){r.push(this)}for(o.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=o.length-1;n>=0;n--)o[n][0].each(l);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var n=0;n=0;n--)for(i=(s=e(h[n],this.document[0])).length-1;i>=0;i--)(a=e.data(s[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&(c.push([e.isFunction(a.options.items)?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(n=c.length-1;n>=0;n--)for(r=c[n][1],i=0,l=(o=c[n][0]).length;i=0;n--)(i=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=s.outerWidth(),i.height=s.outerHeight()),a=s.offset(),i.left=a.left,i.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)a=this.containers[n].element.offset(),this.containers[n].containerCache.left=a.left,this.containers[n].containerCache.top=a.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){var n,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,i.placeholder={element:function(){var i=t.currentItem[0].nodeName.toLowerCase(),s=e("<"+i+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",n||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===i?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("",t.document[0]).appendTo(s)):"tr"===i?t._createTrPlaceholder(t.currentItem,s):"img"===i&&s.attr("src",t.currentItem.attr("src")),n||s.css("visibility","hidden"),s},update:function(e,s){n&&!i.forcePlaceholderSize||(s.height()||s.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var i=this;t.children().each((function(){e(" ",i.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)}))},_contactContainers:function(t){var n,i,s,a,r,o,d,l,u,c,h=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&e.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,a=null,r=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",c=u?"pageX":"pageY",i=this.items.length-1;i>=0;i--)e.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(d=this.items[i].item.offset()[r],l=!1,t[c]-d>this.items[i][o]/2&&(l=!0),Math.abs(t[c]-d)this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(n=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-s.grid[1]:n+s.grid[1]:n,i=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-s.grid[0]:i+s.grid[0]:i)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():d?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():d?0:o.scrollLeft())}},_rearrange:function(e,t,n,i){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!i)}))},_clear:function(e,t){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,t,n){return function(i){n._trigger(e,i,t._uiHash(t))}}for(this.fromOutside&&!t&&i.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||i.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(i.push((function(e){this._trigger("remove",e,this._uiHash())})),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||i.push(s("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(s("out",this,this.containers[n])),this.containers[n].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,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n1;return d&&(r/=2),o.offset=s(o.offset),o.over=s(o.over),this.each((function(){if(null!==a){var l,u=n(this),c=u?this.contentWindow||window:this,h=e(c),p=a,m={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=s(p);break}p=u?e(p):e(p,c);case"object":if(0===p.length)return;(p.is||p.style)&&(l=(p=e(p)).offset())}var f=i(o.offset)&&o.offset(c,p)||o.offset;e.each(o.axis.split(""),(function(e,n){var i="x"===n?"Left":"Top",s=i.toLowerCase(),a="scroll"+i,r=h[a](),g=t.max(c,n);if(l)m[a]=l[s]+(u?0:r-h.offset()[s]),o.margin&&(m[a]-=parseInt(p.css("margin"+i),10)||0,m[a]-=parseInt(p.css("border"+i+"Width"),10)||0),m[a]+=f[s]||0,o.over[s]&&(m[a]+=p["x"===n?"width":"height"]()*o.over[s]);else{var y=p[s];m[a]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*g:y}o.limit&&/^\d+$/.test(m[a])&&(m[a]=m[a]<=0?0:Math.min(m[a],g)),!e&&o.axis.length>1&&(r===m[a]?m={}:d&&(_(o.onAfterFirst),m={}))})),_(o.onAfter)}function _(t){var n=e.extend({},o,{queue:!0,duration:r,complete:t&&function(){t.call(c,p,o)}});h.animate(m,n)}}))},t.max=function(t,i){var s="x"===i?"Width":"Height",a="scroll"+s;if(!n(t))return t[a]-e(t)[s.toLowerCase()]();var r="client"+s,o=t.ownerDocument||t.document,d=o.documentElement,l=o.body;return Math.max(d[a],l[a])-Math.min(d[r],l[r])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var i=Math.round(t.now);n!==i&&(e(t.elem)[t.prop](i),t._last=this.get(t))}},t})?i.apply(t,s):i)||(e.exports=a)}()},9755:function(e,t){var n,i,s;i="undefined"!=typeof window?window:this,s=function(i,s){var a=[],r=i.document,o=a.slice,d=a.concat,l=a.push,u=a.indexOf,c={},h=c.toString,p=c.hasOwnProperty,m={},f="2.2.4",_=function(e,t){return new _.fn.init(e,t)},g=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,v=/-([\da-z])/gi,M=function(e,t){return t.toUpperCase()};function b(e){var t=!!e&&"length"in e&&e.length,n=_.type(e);return"function"!==n&&!_.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}_.fn=_.prototype={jquery:f,constructor:_,selector:"",length:0,toArray:function(){return o.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:o.call(this)},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},isPlainObject:function(e){var t;if("object"!==_.type(e)||e.nodeType||_.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[h.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=_.trim(e))&&(1===e.indexOf("use strict")?((t=r.createElement("script")).text=e,r.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(v,M)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(b(e))for(n=e.length;i+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),q=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),V=new RegExp(N),J=new RegExp("^"+W+"$"),B={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=function(){h()};try{E.apply(H=O.call(b.childNodes),b.childNodes),H[b.childNodes.length].nodeType}catch(e){E={apply:H.length?function(e,t){j.apply(e,O.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,s){var a,o,l,u,c,m,g,y,w=t&&t.ownerDocument,L=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==L&&9!==L&&11!==L)return i;if(!s&&((t?t.ownerDocument||t:b)!==p&&h(t),t=t||p,f)){if(11!==L&&(m=Z.exec(e)))if(a=m[1]){if(9===L){if(!(l=t.getElementById(a)))return i;if(l.id===a)return i.push(l),i}else if(w&&(l=w.getElementById(a))&&v(t,l)&&l.id===a)return i.push(l),i}else{if(m[2])return E.apply(i,t.getElementsByTagName(e)),i;if((a=m[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(i,t.getElementsByClassName(a)),i}if(n.qsa&&!D[e+" "]&&(!_||!_.test(e))){if(1!==L)w=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(ee,"\\$&"):t.setAttribute("id",u=M),o=(g=r(e)).length,c=J.test(u)?"#"+u:"[id='"+u+"']";o--;)g[o]=c+" "+fe(g[o]);y=g.join(","),w=Q.test(e)&&pe(t.parentNode)||t}if(y)try{return E.apply(i,w.querySelectorAll(y)),i}catch(e){}finally{u===M&&t.removeAttribute("id")}}}return d(e.replace(z,"$1"),t,i,s)}function ae(){var e=[];return function t(n,s){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=s}}function re(e){return e[M]=!0,e}function oe(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),s=n.length;s--;)i.attrHandle[n[s]]=t}function le(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||x)-(~e.sourceIndex||x);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ce(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return re((function(t){return t=+t,re((function(n,i){for(var s,a=e([],n.length,t),r=a.length;r--;)n[s=a[r]]&&(n[s]=!(i[s]=n[s]))}))}))}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=se.setDocument=function(e){var t,s,r=e?e.ownerDocument||e:b;return r!==p&&9===r.nodeType&&r.documentElement?(m=(p=r).documentElement,f=!a(p),(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",ie,!1):s.attachEvent&&s.attachEvent("onunload",ie)),n.attributes=oe((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=oe((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(p.getElementsByClassName),n.getById=oe((function(e){return m.appendChild(e).id=M,!p.getElementsByName||!p.getElementsByName(M).length})),n.getById?(i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}},i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[s++];)1===n.nodeType&&i.push(n);return i}return a},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},g=[],_=[],(n.qsa=X.test(p.querySelectorAll))&&(oe((function(e){m.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+P+")"),e.querySelectorAll("[id~="+M+"-]").length||_.push("~="),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||_.push(".#.+[+~]")})),oe((function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),e.querySelectorAll(":enabled").length||_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")}))),(n.matchesSelector=X.test(y=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&oe((function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",N)})),_=_.length&&new RegExp(_.join("|")),g=g.length&&new RegExp(g.join("|")),t=X.test(m.compareDocumentPosition),v=t||X.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===p||e.ownerDocument===b&&v(b,e)?-1:t===p||t.ownerDocument===b&&v(b,t)?1:u?A(u,e)-A(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,s=e.parentNode,a=t.parentNode,r=[e],o=[t];if(!s||!a)return e===p?-1:t===p?1:s?-1:a?1:u?A(u,e)-A(u,t):0;if(s===a)return le(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;r[i]===o[i];)i++;return i?le(r[i],o[i]):r[i]===b?-1:o[i]===b?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(q,"='$1']"),n.matchesSelector&&f&&!D[t+" "]&&(!g||!g.test(t))&&(!_||!_.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var s=i.attrHandle[t.toLowerCase()],a=s&&S.call(i.attrHandle,t.toLowerCase())?s(e,t,!f):void 0;return void 0!==a?a:n.attributes||!f?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],s=0,a=0;if(c=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(T),c){for(;t=e[a++];)t===e[a]&&(s=i.push(a));for(;s--;)e.splice(i[s],1)}return u=null,e},s=se.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=s(t);return n},(i=se.selectors={cacheLength:50,createPseudo:re,match:B,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return B.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=r(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+$+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var s=se.attr(i,e);return null==s?"!="===t:!t||(s+="","="===t?s===n:"!="===t?s!==n:"^="===t?n&&0===s.indexOf(n):"*="===t?n&&s.indexOf(n)>-1:"$="===t?n&&s.slice(-n.length)===n:"~="===t?(" "+s.replace(I," ")+" ").indexOf(n)>-1:"|="===t&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,s){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===i&&0===s?function(e){return!!e.parentNode}:function(t,n,d){var l,u,c,h,p,m,f=a!==r?"nextSibling":"previousSibling",_=t.parentNode,g=o&&t.nodeName.toLowerCase(),y=!d&&!o,v=!1;if(_){if(a){for(;f;){for(h=t;h=h[f];)if(o?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;m=f="only"===e&&!m&&"nextSibling"}return!0}if(m=[r?_.firstChild:_.lastChild],r&&y){for(v=(p=(l=(u=(c=(h=_)[M]||(h[M]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],h=p&&_.childNodes[p];h=++p&&h&&h[f]||(v=p=0)||m.pop();)if(1===h.nodeType&&++v&&h===t){u[e]=[w,p,v];break}}else if(y&&(v=p=(l=(u=(c=(h=t)[M]||(h[M]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===v)for(;(h=++p&&h&&h[f]||(v=p=0)||m.pop())&&((o?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++v||(y&&((u=(c=h[M]||(h[M]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]=[w,v]),h!==t)););return(v-=s)===i||v%i==0&&v/i>=0}}},PSEUDO:function(e,t){var n,s=i.pseudos[e]||i.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return s[M]?s(t):s.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?re((function(e,n){for(var i,a=s(e,t),r=a.length;r--;)e[i=A(e,a[r])]=!(n[i]=a[r])})):function(e){return s(e,0,n)}):s}},pseudos:{not:re((function(e){var t=[],n=[],i=o(e.replace(z,"$1"));return i[M]?re((function(e,t,n,s){for(var a,r=i(e,null,s,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))})):function(e,s,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:re((function(e){return function(t){return se(e,t).length>0}})),contains:re((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}})),lang:re((function(e){return J.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;n=0;)e.push(i);return e})),gt:he((function(e,t,n){for(var i=n<0?n+t:n;++i1?function(t,n,i){for(var s=e.length;s--;)if(!e[s](t,n,i))return!1;return!0}:e[0]}function ye(e,t,n,i,s){for(var a,r=[],o=0,d=e.length,l=null!=t;o-1&&(a[l]=!(r[l]=c))}}else g=ye(g===r?g.splice(m,g.length):g),s?s(null,r,g,d):E.apply(r,g)}))}function Me(e){for(var t,n,s,a=e.length,r=i.relative[e[0].type],o=r||i.relative[" "],d=r?1:0,u=_e((function(e){return e===t}),o,!0),c=_e((function(e){return A(t,e)>-1}),o,!0),h=[function(e,n,i){var s=!r&&(i||n!==l)||((t=n).nodeType?u(e,n,i):c(e,n,i));return t=null,s}];d1&&ge(h),d>1&&fe(e.slice(0,d-1).concat({value:" "===e[d-2].type?"*":""})).replace(z,"$1"),n,d0,s=e.length>0,a=function(a,r,o,d,u){var c,m,_,g=0,y="0",v=a&&[],M=[],b=l,L=a||s&&i.find.TAG("*",u),k=w+=null==b?1:Math.random()||.1,Y=L.length;for(u&&(l=r===p||r||u);y!==Y&&null!=(c=L[y]);y++){if(s&&c){for(m=0,r||c.ownerDocument===p||(h(c),o=!f);_=e[m++];)if(_(c,r||p,o)){d.push(c);break}u&&(w=k)}n&&((c=!_&&c)&&g--,a&&v.push(c))}if(g+=y,n&&y!==g){for(m=0;_=t[m++];)_(v,M,r,o);if(a){if(g>0)for(;y--;)v[y]||M[y]||(M[y]=C.call(d));M=ye(M)}E.apply(d,M),u&&!a&&M.length>0&&g+t.length>1&&se.uniqueSort(d)}return u&&(w=k,l=b),v};return n?re(a):a}(a,s))).selector=e}return o},d=se.select=function(e,t,s,a){var d,l,u,c,h,p="function"==typeof e&&e,m=!a&&r(e=p.selector||e);if(s=s||[],1===m.length){if((l=m[0]=m[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&n.getById&&9===t.nodeType&&f&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return s;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(d=B.needsContext.test(e)?0:l.length;d--&&(u=l[d],!i.relative[c=u.type]);)if((h=i.find[c])&&(a=h(u.matches[0].replace(te,ne),Q.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(d,1),!(e=a.length&&fe(l)))return E.apply(s,a),s;break}}return(p||o(e,m))(a,t,!f,s,!t||Q.test(e)&&pe(t.parentNode)||t),s},n.sortStable=M.split("").sort(T).join("")===M,n.detectDuplicates=!!c,h(),n.sortDetached=oe((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),oe((function(e){return e.innerHTML=" ","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&oe((function(e){return e.innerHTML=" ",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),oe((function(e){return null==e.getAttribute("disabled")}))||de(P,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),se}(i);_.find=w,_.expr=w.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=w.uniqueSort,_.text=w.getText,_.isXMLDoc=w.isXML,_.contains=w.contains;var L=function(e,t,n){for(var i=[],s=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&_(e).is(n))break;i.push(e)}return i},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Y=_.expr.match.needsContext,D=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,T=/^.[^:#\[\.,]*$/;function x(e,t,n){if(_.isFunction(t))return _.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return _.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(T.test(t))return _.filter(t,e,n);t=_.filter(t,e)}return _.grep(e,(function(e){return u.call(t,e)>-1!==n}))}_.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?_.find.matchesSelector(i,e)?[i]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,n=this.length,i=[],s=this;if("string"!=typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t1?_.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&Y.test(e)?_(e):e||[],!1).length}});var S,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(_.fn.init=function(e,t,n){var i,s;if(!e)return this;if(n=n||S,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),D.test(i[1])&&_.isPlainObject(t))for(i in t)_.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(s=r.getElementById(i[2]))&&s.parentNode&&(this.length=1,this[0]=s),this.context=r,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):_.isFunction(e)?void 0!==n.ready?n.ready(e):e(_):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),_.makeArray(e,this))}).prototype=_.fn,S=_(r);var C=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function E(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&_.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?_.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(_(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L(e,"parentNode")},parentsUntil:function(e,t,n){return L(e,"parentNode",n)},next:function(e){return E(e,"nextSibling")},prev:function(e){return E(e,"previousSibling")},nextAll:function(e){return L(e,"nextSibling")},prevAll:function(e){return L(e,"previousSibling")},nextUntil:function(e,t,n){return L(e,"nextSibling",n)},prevUntil:function(e,t,n){return L(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return e.contentDocument||_.merge([],e.childNodes)}},(function(e,t){_.fn[e]=function(n,i){var s=_.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=_.filter(i,s)),this.length>1&&(j[e]||_.uniqueSort(s),C.test(e)&&s.reverse()),this.pushStack(s)}}));var O,A=/\S+/g;function P(){r.removeEventListener("DOMContentLoaded",P),i.removeEventListener("load",P),_.ready()}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return _.each(e.match(A)||[],(function(e,n){t[n]=!0})),t}(e):_.extend({},e);var t,n,i,s,a=[],r=[],o=-1,d=function(){for(s=e.once,i=t=!0;r.length;o=-1)for(n=r.shift();++o-1;)a.splice(n,1),n<=o&&o--})),this},has:function(e){return e?_.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=r=[],a=n="",this},disabled:function(){return!a},lock:function(){return s=r=[],n||(a=n=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=[e,(n=n||[]).slice?n.slice():n],r.push(n),t||d()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},_.extend({Deferred:function(e){var t=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var e=arguments;return _.Deferred((function(n){_.each(t,(function(t,a){var r=_.isFunction(e[t])&&e[t];s[a[1]]((function(){var e=r&&r.apply(this,arguments);e&&_.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[a[0]+"With"](this===i?n.promise():this,r?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?_.extend(e,i):i}},s={};return i.pipe=i.then,_.each(t,(function(e,a){var r=a[2],o=a[3];i[a[1]]=r.add,o&&r.add((function(){n=o}),t[1^e][2].disable,t[2][2].lock),s[a[0]]=function(){return s[a[0]+"With"](this===s?i:this,arguments),this},s[a[0]+"With"]=r.fireWith})),i.promise(s),e&&e.call(s,s),s},when:function(e){var t,n,i,s=0,a=o.call(arguments),r=a.length,d=1!==r||e&&_.isFunction(e.promise)?r:0,l=1===d?e:_.Deferred(),u=function(e,n,i){return function(s){n[e]=this,i[e]=arguments.length>1?o.call(arguments):s,i===t?l.notifyWith(n,i):--d||l.resolveWith(n,i)}};if(r>1)for(t=new Array(r),n=new Array(r),i=new Array(r);s0||(O.resolveWith(r,[_]),_.fn.triggerHandler&&(_(r).triggerHandler("ready"),_(r).off("ready"))))}}),_.ready.promise=function(e){return O||(O=_.Deferred(),"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?i.setTimeout(_.ready):(r.addEventListener("DOMContentLoaded",P),i.addEventListener("load",P))),O.promise(e)},_.ready.promise();var $=function(e,t,n,i,s,a,r){var o=0,d=e.length,l=null==n;if("object"===_.type(n))for(o in s=!0,n)$(e,t,o,n[o],!0,a,r);else if(void 0!==i&&(s=!0,_.isFunction(i)||(r=!0),l&&(r?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(_(e),n)})),t))for(;o-1&&void 0!==n&&I.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){I.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=N.get(e,t),n&&(!i||_.isArray(n)?i=N.access(e,t,_.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),i=n.length,s=n.shift(),a=_._queueHooks(e,t);"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===t&&n.unshift("inprogress"),delete a.stop,s.call(e,(function(){_.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return N.get(e,n)||N.access(e,n,{empty:_.Callbacks("once memory").add((function(){N.remove(e,[t+"queue",n])}))})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length",""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ee(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&_.nodeName(e,t)?_.merge([e],n):n}function te(e,t){for(var n=0,i=e.length;n-1)s&&s.push(a);else if(l=_.contains(a.ownerDocument,a),r=ee(c.appendChild(a),"script"),l&&te(r),n)for(u=0;a=r[u++];)Z.test(a.type||"")&&n.push(a);return c}ne=r.createDocumentFragment().appendChild(r.createElement("div")),(ie=r.createElement("input")).setAttribute("type","radio"),ie.setAttribute("checked","checked"),ie.setAttribute("name","t"),ne.appendChild(ie),m.checkClone=ne.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.innerHTML="",m.noCloneChecked=!!ne.cloneNode(!0).lastChild.defaultValue;var re=/^key/,oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,de=/^([^.]*)(?:\.(.+)|)/;function le(){return!0}function ue(){return!1}function ce(){try{return r.activeElement}catch(e){}}function he(e,t,n,i,s,a){var r,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)he(e,o,n,i,t[o],a);return e}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=ue;else if(!s)return e;return 1===a&&(r=s,(s=function(e){return _().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=_.guid++)),e.each((function(){_.event.add(this,t,s,i,n)}))}_.event={global:{},add:function(e,t,n,i,s){var a,r,o,d,l,u,c,h,p,m,f,g=N.get(e);if(g)for(n.handler&&(n=(a=n).handler,s=a.selector),n.guid||(n.guid=_.guid++),(d=g.events)||(d=g.events={}),(r=g.handle)||(r=g.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(A)||[""]).length;l--;)p=f=(o=de.exec(t[l])||[])[1],m=(o[2]||"").split(".").sort(),p&&(c=_.event.special[p]||{},p=(s?c.delegateType:c.bindType)||p,c=_.event.special[p]||{},u=_.extend({type:p,origType:f,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&_.expr.match.needsContext.test(s),namespace:m.join(".")},a),(h=d[p])||((h=d[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,m,r)||e.addEventListener&&e.addEventListener(p,r)),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),_.event.global[p]=!0)},remove:function(e,t,n,i,s){var a,r,o,d,l,u,c,h,p,m,f,g=N.hasData(e)&&N.get(e);if(g&&(d=g.events)){for(l=(t=(t||"").match(A)||[""]).length;l--;)if(p=f=(o=de.exec(t[l])||[])[1],m=(o[2]||"").split(".").sort(),p){for(c=_.event.special[p]||{},h=d[p=(i?c.delegateType:c.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=h.length;a--;)u=h[a],!s&&f!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,c.remove&&c.remove.call(e,u));r&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,m,g.handle)||_.removeEvent(e,p,g.handle),delete d[p])}else for(p in d)_.event.remove(e,p+t[l],n,i,!0);_.isEmptyObject(d)&&N.remove(e,"handle events")}},dispatch:function(e){e=_.event.fix(e);var t,n,i,s,a,r=[],d=o.call(arguments),l=(N.get(this,"events")||{})[e.type]||[],u=_.event.special[e.type]||{};if(d[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(r=_.event.handlers.call(this,e,l),t=0;(s=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=s.elem,n=0;(a=s.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,void 0!==(i=((_.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,d))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,s,a,r=[],o=t.delegateCount,d=e.target;if(o&&d.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&(!0!==d.disabled||"click"!==e.type)){for(i=[],n=0;n-1:_.find(s,this,null,[d]).length),i[s]&&i.push(a);i.length&&r.push({elem:d,handlers:i})}return o]*)\/>/gi,me=/