").html(t).text()},value2str:function(e){return e},str2value:function(e){return e},value2submit:function(e){return e},value2input:function(e){this.$input.val(e)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(t){return e("
").text(t).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(e){void 0!==this.options[e]&&null!==this.options[e]&&this.$input.attr(e,this.options[e])},option:function(e,t){this.options[e]=t}},t.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0},e.extend(e.fn.editabletypes,{abstractinput:t})}(n)},45:()=>{!function(e){"use strict";var t=function(e){this.init("text",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),e.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=e('
'),this.$input.after(this.$clear).css("padding-right",24).keyup(e.proxy((function(t){if(!~e.inArray(t.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var o=this;this.t=setTimeout((function(){o.toggleClear(t)}),100)}}),this)).parent().css("position","relative"),this.$clear.click(e.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(e){if(this.$clear){var t=this.$input.val().length,o=this.$clear.is(":visible");t&&!o&&this.$clear.show(),!t&&o&&this.$clear.hide()}},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:'
',placeholder:null,clear:!0}),e.fn.editabletypes.text=t}(n)},52:()=>{!function(e){"use strict";var t=function(e){this.init("textarea",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown((function(t){t.ctrlKey&&13===t.which&&e(this).closest("form").submit()}))},activate:function(){e.fn.editabletypes.text.prototype.activate.call(this)}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:"
",inputclass:"input-large",placeholder:null,rows:7}),e.fn.editabletypes.textarea=t}(n)},53:()=>{!function(e){"use strict";e.fn.bdatepicker=e.fn.datepicker.noConflict(),e.fn.datepicker||(e.fn.datepicker=e.fn.bdatepicker);var t=function(e){console.log("Date input constructor called"),this.init("date",e,t.defaults),this.initPicker(e,t.defaults),this.type="date",console.log("Date input initialized")};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{prerender:function(){t.superclass.prerender.call(this)},initPicker:function(t,o){this.options.viewformat||(this.options.viewformat=this.options.format),t.datepicker=e.fn.editableutils.tryParseJson(t.datepicker,!0),this.options.datepicker=e.extend({},o.datepicker,t.datepicker,{format:this.options.viewformat}),this.options.datepicker.language=this.options.datepicker.language||"en",this.dpg=e.fn.datepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat)},render:function(){if(console.log("Date render method called"),this.$input&&this.$input.length){console.log("Date render: Input element found");try{this.$input.datepicker(this.options.datepicker),console.log("Date render: Datepicker initialized"),this.value&&this.$input.datepicker("setDate",this.value)}catch(e){console.log("Date render: Datepicker error:",e)}var t=this;setTimeout((function(){var o=t.$form?t.$form.find(".editable-buttons"):e();0===o.length&&(o=t.$tpl.closest(".editableform").find(".editable-buttons")),0===o.length&&(o=t.$tpl.closest(".editable-container").find(".editable-buttons")),console.log("Date render: Found buttons:",o.length),o.length>0&&(o.hide(),o.css("display","none"),console.log("Date render: Hidden buttons"))}),100),this.options.clear&&(this.$clear=e('
').html(this.options.clear).click(e.proxy((function(e){e.preventDefault(),e.stopPropagation(),this.clear()}),this)),this.$tpl.parent().append(e('
').append(this.$clear)))}else console.log("Date render: No input element found")},value2html:function(e,o){var r=e?this.dpg.formatDate(e,this.parsedViewFormat,this.options.datepicker.language):"";t.superclass.value2html.call(this,r,o)},html2value:function(e){return this.parseDate(e,this.parsedViewFormat)},value2str:function(e){return e?this.dpg.formatDate(e,this.parsedFormat,this.options.datepicker.language):""},str2value:function(e){return this.parseDate(e,this.parsedFormat)},value2submit:function(e){return this.value2str(e)},value2input:function(e){this.$input.data("datepicker")||this.$input.datepicker(this.options.datepicker),this.$input.datepicker("update",e)},input2value:function(){var e=this.$input.data("datepicker");if(e){if(e.date)return e.date;if(e.dates&&e.dates.length>0)return e.dates[0];if("function"==typeof e.getDate)return e.getDate()}var t=this.$input.val();return t?this.parseDate(t,this.parsedViewFormat):null},activate:function(){},clear:function(){this.$input.data("datepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("changeDate",e.proxy((function(t){console.log("Date changeDate event triggered"),this.$input.datepicker("hide"),setTimeout(e.proxy((function(){if(!1!==this.options.showbuttons){var t=this.$form?this.$form.find(".editable-buttons"):e();0===t.length&&(t=this.$tpl.closest(".editableform").find(".editable-buttons")),0===t.length&&(t=this.$tpl.closest(".editable-container").find(".editable-buttons")),console.log("Date changeDate: Found buttons to show:",t.length),t.show(),t.css("display","inline-block")}}),this),100)}),this)),this.$input.on("mouseup",".day",(function(t){if(!e(t.currentTarget).is(".old")&&!e(t.currentTarget).is(".new")){console.log("Date mouseup on day");var o=e(this).closest("form");setTimeout((function(){o.find(".editable-buttons").show()}),200)}}))},parseDate:function(e,t){var o=null;return e&&(o=this.dpg.parseDate(e,t,this.options.datepicker.language),"string"==typeof e&&e!==this.dpg.formatDate(o,t,this.options.datepicker.language)&&(o=null)),o}}),t.defaults=e.extend({},e.fn.editabletypes.abstractinput.defaults,{tpl:'
',inputclass:null,format:"yyyy-mm-dd",viewformat:null,datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!1},clear:"× clear"}),e.fn.editabletypes.date=t}(n)},243:()=>{!function(e){"use strict";e.fn.editableutils={inherit:function(e,t){var o=function(){};o.prototype=t.prototype,e.prototype=new o,e.prototype.constructor=e,e.superclass=t.prototype},setCursorPosition:function(e,t){if(e.setSelectionRange)e.setSelectionRange(t,t);else if(e.createTextRange){var o=e.createTextRange();o.collapse(!0),o.moveEnd("character",t),o.moveStart("character",t),o.select()}},tryParseJson:function(e,t){if("string"==typeof e&&e.length&&e.match(/^[\{\[].*[\}\]]$/))if(t)try{e=new Function("return "+e)()}catch(e){}finally{return e}else e=new Function("return "+e)();return e},sliceObj:function(e,t,o){var r,n,i={};if(!Array.isArray(t)||!t.length)return i;for(var a=0;a
").text(t).html()},itemsByValue:function(t,o,r){if(!o||null===t)return[];if("function"!=typeof r){var n=r||"value";r=function(e){return e[n]}}var i=Array.isArray(t),a=[],s=this;return e.each(o,(function(o,n){if(n.children)a=a.concat(s.itemsByValue(t,n.children,r));else if(i)e.grep(t,(function(e){return e==(n&&"object"==typeof n?r(n):n)})).length&&a.push(n);else{var l=n&&"object"==typeof n?r(n):n;t==l&&a.push(n)}})),a},createInput:function(t){var o,r=t.type;return"date"===r&&("inline"===t.mode?e.fn.editabletypes.datefield?r="datefield":e.fn.editabletypes.dateuifield&&(r="dateuifield"):e.fn.editabletypes.date?r="date":e.fn.editabletypes.dateui&&(r="dateui"),"date"!==r||e.fn.editabletypes.date||(r="combodate")),"datetime"===r&&"inline"===t.mode&&(r="datetimefield"),"wysihtml5"!==r||e.fn.editabletypes[r]||(r="textarea"),"function"==typeof e.fn.editabletypes[r]?new(o=e.fn.editabletypes[r])(this.sliceObj(t,this.objectKeys(o.defaults))):(e.error("Unknown type: "+r),!1)},supportsTransitions:function(){var e=(document.body||document.documentElement).style,t="transition",o=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof e[t])return!0;t=t.charAt(0).toUpperCase()+t.substr(1);for(var r=0;r{!function(e){"use strict";e.extend(e.fn.editableContainer.Inline.prototype,e.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=e(" "),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,e.proxy((function(){this.$element.show(),this.innerDestroy()}),this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(n)},418:()=>{!function(e){"use strict";var t=function(e){this.init("select",e,t.defaults)};e.fn.editableutils.inherit(t,e.fn.editabletypes.list),e.extend(t.prototype,{renderList:function(){this.$input.empty();var t=function(o,r){var n;if(Array.isArray(r))for(var i=0;i",n),r[i].children))):(n.value=r[i].value,r[i].disabled&&(n.disabled=!0),o.append(e("",n).text(r[i].text)));return o};t(this.$input,this.sourceData),this.setClass(),this.$input.on("keydown.editable",(function(t){13===t.which&&e(this).closest("form").submit()}))},value2htmlFinal:function(t,o){var r="",n=e.fn.editableutils.itemsByValue(t,this.sourceData);n.length&&(r=n[0].text),e.fn.editabletypes.abstractinput.prototype.value2html.call(this,r,o)},autosubmit:function(){this.$input.off("keydown.editable").on("change.editable",(function(){e(this).closest("form").submit()}))}}),t.defaults=e.extend({},e.fn.editabletypes.list.defaults,{tpl:" "}),e.fn.editabletypes.select=t}(n)},519:()=>{!function(e){"use strict";var t=function(o){if(this.init("select2",o,t.defaults),o.select2=o.select2||{},this.sourceData=null,o.placeholder&&(o.select2.placeholder=o.placeholder),!o.select2.tags&&o.source){var r=o.source;"function"==typeof o.source&&(r=o.source.call(o.scope)),"string"==typeof r?(o.select2.ajax=o.select2.ajax||{},o.select2.ajax.data||(o.select2.ajax.data=function(e){return{query:e}}),o.select2.ajax.results||(o.select2.ajax.results=function(e){return{results:e}}),o.select2.ajax.url=r):(this.sourceData=this.convertSource(r),o.select2.data=this.sourceData)}if(this.options.select2=e.extend({},t.defaults.select2,o.select2),this.isMultiple=this.options.select2.tags||this.options.select2.multiple,this.isRemote="ajax"in this.options.select2,this.idFunc=this.options.select2.id,"function"!=typeof this.idFunc){var n=this.idFunc||"id";this.idFunc=function(e){return e[n]}}this.formatSelection=this.options.select2.formatSelection,"function"!=typeof this.formatSelection&&(this.formatSelection=function(e){return e.text})};e.fn.editableutils.inherit(t,e.fn.editabletypes.abstractinput),e.extend(t.prototype,{render:function(){this.setClass(),void 0!==e.fn.select2?(this.isRemote&&this.$input.on("select2-loaded",e.proxy((function(e){this.sourceData=e.items.results}),this)),this.isMultiple&&this.$input.on("change",(function(){e(this).closest("form").parent().triggerHandler("resize")}))):this.error="Select2 library is not included. Please include Select2 CSS and JS files."},value2html:function(o,r){var n,i="",a=this;this.options.select2.tags?n=o:this.sourceData&&(n=e.fn.editableutils.itemsByValue(o,this.sourceData,this.idFunc)),Array.isArray(n)?(i=[],e.each(n,(function(e,t){i.push(t&&"object"==typeof t?a.formatSelection(t):t)}))):n&&(i=a.formatSelection(n)),i=Array.isArray(i)?i.join(this.options.viewseparator):i,t.superclass.value2html.call(this,i,r)},html2value:function(e){return this.options.select2.tags?this.str2value(e,this.options.viewseparator):null},value2input:function(t){if(Array.isArray(t)&&(t=t.join(this.getSeparator())),void 0!==e.fn.select2){if(this.$input.data("select2")?this.$input.val(t).trigger("change",!0):(this.$input.val(t),this.$input.select2(this.options.select2)),this.isRemote&&!this.isMultiple&&!this.options.select2.initSelection){var o=this.options.select2.id,r=this.options.select2.formatSelection;if(!o&&!r){var n=e(this.options.scope);if(!n.data("editable").isEmpty){var i={id:t,text:n.text()};this.$input.select2("data",i)}}}}else this.$input.val(t)},input2value:function(){return void 0!==e.fn.select2&&this.$input.data("select2")?this.$input.select2("val"):this.$input.val()},str2value:function(e,t){if("string"!=typeof e||!this.isMultiple)return e;var o,r,n;if(t=t||this.getSeparator(),null===e||e.length<1)return null;for(r=0,n=(o=e.split(t)).length;r',select2:null,placeholder:null,source:null,viewseparator:", "}),e.fn.editabletypes.select2=t}(n)},627:()=>{!function(e){"use strict";var t=function(t,o){this.options=e.extend({},e.fn.editableform.defaults,o),this.$div=e(t),this.options.scope||(this.options.scope=this)};t.prototype={constructor:t,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value),this.input.prerender()},initTemplate:function(){this.$form=e(e.fn.editableform.template)},initButtons:function(){var t=this.$form.find(".editable-buttons");t.append(e.fn.editableform.buttons),"bottom"===this.options.showbuttons&&t.addClass("editable-buttons-bottom")},render:function(){this.$loading=e(e.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),e.when(this.input.render()).then(e.proxy((function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(e.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit((function(e){e.preventDefault()}));else{this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled");var t=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(t),this.$form.submit(e.proxy(this.submit,this))}this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()}),this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var e,t;this.$form?(e=this.$form.outerWidth(),t=this.$form.outerHeight(),e&&this.$loading.width(e),t&&this.$loading.height(t),this.$form.hide()):(e=this.$loading.parent().width())&&this.$loading.width(e),this.$loading.show()},showForm:function(e){this.$loading.hide(),this.$form.show(),!1!==e&&this.input.activate(),this.$div.triggerHandler("show")},error:function(t){var o,r=this.$form.find(".control-group"),n=this.$form.find(".editable-error-block");if(!1===t)r.removeClass(e.fn.editableform.errorGroupClass),n.removeClass(e.fn.editableform.errorBlockClass).empty().hide();else{if(t){o=(""+t).split("\n");for(var i=0;i").text(o[i]).html();t=o.join(" ")}r.addClass(e.fn.editableform.errorGroupClass),n.addClass(e.fn.editableform.errorBlockClass).html(t).show()}},submit:function(t){t.stopPropagation(),t.preventDefault();var o=this.input.input2value(),r=this.validate(o);if("object"===e.type(r)&&void 0!==r.newValue){if(o=r.newValue,this.input.value2input(o),"string"==typeof r.msg)return this.error(r.msg),void this.showForm()}else if(r)return this.error(r),void this.showForm();if(this.options.savenochange||this.input.value2str(o)!=this.input.value2str(this.value)){var n=this.input.value2submit(o);this.isSaving=!0,e.when(this.save(n)).done(e.proxy((function(e){this.isSaving=!1;var t="function"==typeof this.options.success?this.options.success.call(this.options.scope,e,o):null;return!1===t?(this.error(!1),void this.showForm(!1)):"string"==typeof t?(this.error(t),void this.showForm()):(t&&"object"==typeof t&&t.hasOwnProperty("newValue")&&(o=t.newValue),this.error(!1),this.value=o,void this.$div.triggerHandler("save",{newValue:o,submitValue:n,response:e}))}),this)).fail(e.proxy((function(e){var t;this.isSaving=!1,t="function"==typeof this.options.error?this.options.error.call(this.options.scope,e,o):"string"==typeof e?e:e.responseText||e.statusText||"Unknown error!",this.error(t),this.showForm()}),this))}else this.$div.triggerHandler("nochange")},save:function(t){this.options.pk=e.fn.editableutils.tryParseJson(this.options.pk,!0);var o,r="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk;if("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!=r))return this.showLoading(),o={name:this.options.name||"",value:t,pk:r},"function"==typeof this.options.params?o=this.options.params.call(this.options.scope,o):(this.options.params=e.fn.editableutils.tryParseJson(this.options.params,!0),e.extend(o,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,o):e.ajax(e.extend({url:this.options.url,data:o,type:"POST"},this.options.ajaxOptions))},validate:function(e){if(void 0===e&&(e=this.value),"function"==typeof this.options.validate)return this.options.validate.call(this.options.scope,e)},option:function(e,t){e in this.options&&(this.options[e]=t),"value"===e&&this.setValue(t)},setValue:function(e,t){this.value=t?this.input.str2value(e):e,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},e.fn.editableform=function(o){var r=arguments;return this.each((function(){var n=e(this),i=n.data("editableform"),a="object"==typeof o&&o;i||n.data("editableform",i=new t(this,a)),"string"==typeof o&&i[o].apply(i,Array.prototype.slice.call(r,1))}))},e.fn.editableform.Constructor=t,e.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},e.fn.editableform.template='',e.fn.editableform.loading='
',e.fn.editableform.buttons='ok cancel ',e.fn.editableform.errorGroupClass=null,e.fn.editableform.errorBlockClass="editable-error",e.fn.editableform.engine="jquery"}(n)},665:()=>{!function(e){"use strict";var t=function(e){this.init("datefield",e,t.defaults),this.initPicker(e,t.defaults),this.type="datefield"};e.fn.editableutils.inherit(t,e.fn.editabletypes.date),e.extend(t.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.datepicker(this.options.datepicker),this.$input.off("focus keydown");var t=this;setTimeout((function(){if(!t.$form){var o=e(".editable-buttons:visible");o.length>0&&o.each((function(o,r){var n=e(r);n.hide(),n.css("display","none !important"),n.addClass("datepicker-hidden"),t.$dateButtons=n}))}}),500),this.$input.keyup(e.proxy((function(){this.$tpl.removeData("date"),this.$tpl.datepicker("update")}),this)),this.autosubmit()},value2input:function(e){var t=e?this.dpg.formatDate(e,this.parsedViewFormat,this.options.datepicker.language):"";this.$input.val(t),this.$tpl.datepicker("update")},input2value:function(){var e=this.$tpl.data("datepicker");if(e&&e.dates&&e.dates.length>0)return e.dates[0];var t=this.$input.data("datepicker");if(t&&t.dates&&t.dates.length>0)return t.dates[0];if(e&&"function"==typeof e.getDate){var o=e.getDate();if(o)return o}if(t&&"function"==typeof t.getDate){var r=t.getDate();if(r)return r}return this.html2value(this.$input.val())},activate:function(){e.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){this.$tpl.on("changeDate",e.proxy((function(t){setTimeout(e.proxy((function(){try{this.$tpl.datepicker("hide")}catch(e){}try{this.$input.datepicker("hide")}catch(e){}e(".datepicker").hide(),e(".datepicker-dropdown").hide();var t=e(".datepicker:visible, .datepicker-dropdown:visible");t.length>0&&(t.css("display","none !important"),t.css("visibility","hidden"))}),this),10),setTimeout(e.proxy((function(){if(!1!==this.options.showbuttons){var t=this.$dateButtons||e(".editable-buttons.datepicker-hidden");0===t.length&&(t=this.$form?this.$form.find(".editable-buttons"):e()),0===t.length&&(t=this.$tpl.closest(".editableform").find(".editable-buttons")),0===t.length&&(t=this.$tpl.closest(".editable-container").find(".editable-buttons")),t.show(),t.css("display","inline-flex"),t.addClass("show-buttons"),t.removeClass("datepicker-hidden")}}),this),100)}),this))}}),t.defaults=e.extend({},e.fn.editabletypes.date.defaults,{tpl:'
',inputclass:"form-control form-control-sm",datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!0,orientation:"top",container:"body"}}),e.fn.editabletypes.datefield=t}(n)},692:function(e,t){var o;!function(t,o){"use strict";"object"==typeof e.exports?e.exports=t.document?o(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return o(e)}:o(t)}("undefined"!=typeof window?window:this,(function(r,n){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,d=i.indexOf,f={},b=f.toString,p=f.hasOwnProperty,u=p.toString,h=u.call(Object),m={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,o){var r,n,i=(o=o||y).createElement("script");if(i.text=e,t)for(r in x)(n=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,n);o.head.appendChild(i).parentNode.removeChild(i)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[b.call(e)]||"object":typeof e}var _="3.7.1",D=/HTML$/i,C=function(e,t){return new C.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,o=k(e);return!g(e)&&!v(e)&&("array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}C.fn=C.prototype={jquery:_,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,o){return e.call(t,o,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,o=+e+(e<0?t:0);return this.pushStack(o>=0&&o+~]|"+O+")"+O+"*"),H=new RegExp(O+"|>"),R=new RegExp(I),U=new RegExp("^"+$+"$"),B={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+I),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("^(?:"+T+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var o="0x"+e.slice(1)-65536;return t||(o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320))},Q=function(){le()},J=be((function(e){return!0===e.disabled&&A(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{h.apply(i=s.call(L.childNodes),L.childNodes),i[L.childNodes.length].nodeType}catch(e){h={apply:function(e,t){z.apply(e,s.call(t))},call:function(e){z.apply(e,s.call(arguments,1))}}}function Z(e,t,o,r){var n,i,a,s,c,d,p,u=t&&t.ownerDocument,v=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return o;if(!r&&(le(t),t=t||l,f)){if(11!==v&&(c=Y.exec(e)))if(n=c[1]){if(9===v){if(!(a=t.getElementById(n)))return o;if(a.id===n)return h.call(o,a),o}else if(u&&(a=u.getElementById(n))&&Z.contains(t,a)&&a.id===n)return h.call(o,a),o}else{if(c[2])return h.apply(o,t.getElementsByTagName(e)),o;if((n=c[3])&&t.getElementsByClassName)return h.apply(o,t.getElementsByClassName(n)),o}if(!(_[e+" "]||b&&b.test(e))){if(p=e,u=t,1===v&&(H.test(e)||F.test(e))){for((u=X.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=C.escapeSelector(s):t.setAttribute("id",s=g)),i=(d=de(e)).length;i--;)d[i]=(s?"#"+s:":scope")+" "+fe(d[i]);p=d.join(",")}try{return h.apply(o,u.querySelectorAll(p)),o}catch(t){_(e,!0)}finally{s===g&&t.removeAttribute("id")}}}return ve(e.replace(M,"$1"),t,o,r)}function ee(){var e=[];return function o(r,n){return e.push(r+" ")>t.cacheLength&&delete o[e.shift()],o[r+" "]=n}}function te(e){return e[g]=!0,e}function oe(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return A(t,"input")&&t.type===e}}function ne(e){return function(t){return(A(t,"input")||A(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(o,r){for(var n,i=e([],o.length,t),a=i.length;a--;)o[n=i[a]]&&(o[n]=!(r[n]=o[n]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var o,r=e?e.ownerDocument||e:L;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,f=!C.isXMLDoc(l),u=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&L!=l&&(o=l.defaultView)&&o.top!==o&&o.addEventListener("unload",Q),m.getById=oe((function(e){return c.appendChild(e).id=C.expando,!l.getElementsByName||!l.getElementsByName(C.expando).length})),m.disconnectedMatch=oe((function(e){return u.call(e,"*")})),m.scope=oe((function(){return l.querySelectorAll(":scope")})),m.cssHas=oe((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(G,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var o=t.getElementById(e);return o?[o]:[]}}):(t.filter.ID=function(e){var t=e.replace(G,K);return function(e){var o=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return o&&o.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var o,r,n,i=t.getElementById(e);if(i){if((o=i.getAttributeNode("id"))&&o.value===e)return[i];for(n=t.getElementsByName(e),r=0;i=n[r++];)if((o=i.getAttributeNode("id"))&&o.value===e)return[i]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},b=[],oe((function(e){var t;c.appendChild(e).innerHTML=" ",e.querySelectorAll("[selected]").length||b.push("\\["+O+"*(?:value|"+T+")"),e.querySelectorAll("[id~="+g+"-]").length||b.push("~="),e.querySelectorAll("a#"+g+"+*").length||b.push(".#.+[+~]"),e.querySelectorAll(":checked").length||b.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&b.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||b.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")})),m.cssHas||b.push(":has"),b=b.length&&new RegExp(b.join("|")),D=function(e,t){if(e===t)return a=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===o?e===l||e.ownerDocument==L&&Z.contains(L,e)?-1:t===l||t.ownerDocument==L&&Z.contains(L,t)?1:n?d.call(n,e)-d.call(n,t):0:4&o?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),f&&!_[t+" "]&&(!b||!b.test(t)))try{var o=u.call(e,t);if(o||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){_(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),C.contains(e,t)},Z.attr=function(e,o){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[o.toLowerCase()],n=r&&p.call(t.attrHandle,o.toLowerCase())?r(e,o,!f):void 0;return void 0!==n?n:e.getAttribute(o)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},C.uniqueSort=function(e){var t,o=[],r=0,i=0;if(a=!m.sortStable,n=!m.sortStable&&s.call(e,0),S.call(e,D),a){for(;t=e[i++];)t===e[i]&&(r=o.push(i));for(;r--;)j.call(e,o[r],1)}return n=null,e},C.fn.uniqueSort=function(){return this.pushStack(C.uniqueSort(s.apply(this)))},t=C.expr={cacheLength:50,createPseudo:te,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(G,K),e[3]=(e[3]||e[4]||e[5]||"").replace(G,K),"~="===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]||Z.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]&&Z.error(e[0]),e},PSEUDO:function(e){var t,o=!e[6]&&e[2];return B.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":o&&R.test(o)&&(t=de(o,!0))&&(t=o.indexOf(")",o.length-t)-o.length)&&(e[0]=e[0].slice(0,t),e[2]=o.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(G,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return A(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,o){return function(r){var n=Z.attr(r,e);return null==n?"!="===t:!t||(n+="","="===t?n===o:"!="===t?n!==o:"^="===t?o&&0===n.indexOf(o):"*="===t?o&&n.indexOf(o)>-1:"$="===t?o&&n.slice(-o.length)===o:"~="===t?(" "+n.replace(P," ")+" ").indexOf(o)>-1:"|="===t&&(n===o||n.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,o,r,n){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===n?function(e){return!!e.parentNode}:function(t,o,l){var c,d,f,b,p,u=i!==a?"nextSibling":"previousSibling",h=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s,x=!1;if(h){if(i){for(;u;){for(f=t;f=f[u];)if(s?A(f,m):1===f.nodeType)return!1;p=u="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?h.firstChild:h.lastChild],a&&y){for(x=(b=(c=(d=h[g]||(h[g]={}))[e]||[])[0]===v&&c[1])&&c[2],f=b&&h.childNodes[b];f=++b&&f&&f[u]||(x=b=0)||p.pop();)if(1===f.nodeType&&++x&&f===t){d[e]=[v,b,x];break}}else if(y&&(x=b=(c=(d=t[g]||(t[g]={}))[e]||[])[0]===v&&c[1]),!1===x)for(;(f=++b&&f&&f[u]||(x=b=0)||p.pop())&&(!(s?A(f,m):1===f.nodeType)||!++x||(y&&((d=f[g]||(f[g]={}))[e]=[v,x]),f!==t)););return(x-=n)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,o){var r,n=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return n[g]?n(o):n.length>1?(r=[e,e,"",o],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,i=n(e,o),a=i.length;a--;)e[r=d.call(e,i[a])]=!(t[r]=i[a])})):function(e){return n(e,0,r)}):n}},pseudos:{not:te((function(e){var t=[],o=[],r=ge(e.replace(M,"$1"));return r[g]?te((function(e,t,o,n){for(var i,a=r(e,null,n,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,n,i){return t[0]=e,r(t,null,i,o),t[0]=null,!o.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,K),function(t){return(t.textContent||C.text(t)).indexOf(e)>-1}})),lang:te((function(e){return U.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(G,K).toLowerCase(),function(t){var o;do{if(o=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(o=o.toLowerCase())===e||0===o.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return A(e,"input")&&!!e.checked||A(e,"option")&&!!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!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return A(e,"input")&&"button"===e.type||A(e,"button")},text:function(e){var t;return A(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,o){return[o<0?o+t:o]})),even:ae((function(e,t){for(var o=0;ot?t:o;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,o){for(var r=o<0?o+t:o;++r1?function(t,o,r){for(var n=e.length;n--;)if(!e[n](t,o,r))return!1;return!0}:e[0]}function ue(e,t,o,r,n){for(var i,a=[],s=0,l=e.length,c=null!=t;s-1&&(i[c]=!(a[c]=b))}}else p=ue(p===a?p.splice(g,p.length):p),n?n(null,a,p,l):h.apply(a,p)}))}function me(e){for(var r,n,i,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,f=be((function(e){return e===r}),l,!0),b=be((function(e){return d.call(r,e)>-1}),l,!0),p=[function(e,t,n){var i=!s&&(n||t!=o)||((r=t).nodeType?f(e,t,n):b(e,t,n));return r=null,i}];c1&&pe(p),c>1&&fe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(M,"$1"),n,c0,i=e.length>0,a=function(a,s,c,d,b){var p,u,m,g=0,y="0",x=a&&[],w=[],k=o,_=a||i&&t.find.TAG("*",b),D=v+=null==k?1:Math.random()||.1,T=_.length;for(b&&(o=s==l||s||b);y!==T&&null!=(p=_[y]);y++){if(i&&p){for(u=0,s||p.ownerDocument==l||(le(p),c=!f);m=e[u++];)if(m(p,s||l,c)){h.call(d,p);break}b&&(v=D)}n&&((p=!m&&p)&&g--,a&&x.push(p))}if(g+=y,n&&y!==g){for(u=0;m=r[u++];)m(x,w,s,c);if(a){if(g>0)for(;y--;)x[y]||w[y]||(w[y]=E.call(d));w=ue(w)}h.apply(d,w),b&&!a&&w.length>0&&g+r.length>1&&C.uniqueSort(d)}return b&&(v=D,o=k),x};return n?te(a):a}(a,i)),s.selector=e}return s}function ve(e,o,r,n){var i,a,s,l,c,d="function"==typeof e&&e,b=!n&&de(e=d.selector||e);if(r=r||[],1===b.length){if((a=b[0]=b[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===o.nodeType&&f&&t.relative[a[1].type]){if(!(o=(t.find.ID(s.matches[0].replace(G,K),o)||[])[0]))return r;d&&(o=o.parentNode),e=e.slice(a.shift().value.length)}for(i=B.needsContext.test(e)?0:a.length;i--&&(s=a[i],!t.relative[l=s.type]);)if((c=t.find[l])&&(n=c(s.matches[0].replace(G,K),X.test(a[0].type)&&se(o.parentNode)||o))){if(a.splice(i,1),!(e=n.length&&fe(a)))return h.apply(r,n),r;break}}return(d||ge(e,b))(n,o,!f,r,!o||X.test(e)&&se(o.parentNode)||o),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=g.split("").sort(D).join("")===g,le(),m.sortDetached=oe((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),C.find=Z,C.expr[":"]=C.expr.pseudos,C.unique=C.uniqueSort,Z.compile=ge,Z.select=ve,Z.setDocument=le,Z.tokenize=de,Z.escape=C.escapeSelector,Z.getText=C.text,Z.isXML=C.isXMLDoc,Z.selectors=C.expr,Z.support=C.support,Z.uniqueSort=C.uniqueSort}();var I=function(e,t,o){for(var r=[],n=void 0!==o;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&C(e).is(o))break;r.push(e)}return r},P=function(e,t){for(var o=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&o.push(e);return o},q=C.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(e,t,o){return g(t)?C.grep(e,(function(e,r){return!!t.call(e,r,e)!==o})):t.nodeType?C.grep(e,(function(e){return e===t!==o})):"string"!=typeof t?C.grep(e,(function(e){return d.call(t,e)>-1!==o})):C.filter(t,e,o)}C.filter=function(e,t,o){var r=t[0];return o&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,o,r=this.length,n=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t1?C.uniqueSort(o):o},filter:function(e){return this.pushStack(H(this,e||[],!1))},not:function(e){return this.pushStack(H(this,e||[],!0))},is:function(e){return!!H(this,"string"==typeof e&&q.test(e)?C(e):e||[],!1).length}});var R,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,o){var r,n;if(!e)return this;if(o=o||R,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:U.exec(e))||!r[1]&&t)return!t||t.jquery?(t||o).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),F.test(r[1])&&C.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(n=y.getElementById(r[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==o.ready?o.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,R=C(y);var B=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),o=t.length;return this.filter((function(){for(var e=0;e-1:1===o.nodeType&&C.find.matchesSelector(o,e))){i.push(o);break}return this.pushStack(i.length>1?C.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?d.call(C(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,o){return I(e,"parentNode",o)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,o){return I(e,"nextSibling",o)},prevUntil:function(e,t,o){return I(e,"previousSibling",o)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(o,r){var n=C.map(this,t,o);return"Until"!==e.slice(-5)&&(r=o),r&&"string"==typeof r&&(n=C.filter(r,n)),this.length>1&&(W[e]||C.uniqueSort(n),B.test(e)&&n.reverse()),this.pushStack(n)}}));var Y=/[^\x20\t\r\n\f]+/g;function X(e){return e}function G(e){throw e}function K(e,t,o,r){var n;try{e&&g(n=e.promise)?n.call(e).done(t).fail(o):e&&g(n=e.then)?n.call(e,t,o):t.apply(void 0,[e].slice(r))}catch(e){o.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(Y)||[],(function(e,o){t[o]=!0})),t}(e):C.extend({},e);var t,o,r,n,i=[],a=[],s=-1,l=function(){for(n=n||e.once,r=t=!0;a.length;s=-1)for(o=a.shift();++s-1;)i.splice(o,1),o<=s&&s--})),this},has:function(e){return e?C.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return n=a=[],i=o="",this},disabled:function(){return!i},lock:function(){return n=a=[],o||t||(i=o=""),this},locked:function(){return!!n},fireWith:function(e,o){return n||(o=[e,(o=o||[]).slice?o.slice():o],a.push(o),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],o="pending",n={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(o){C.each(t,(function(t,r){var n=g(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=n&&n.apply(this,arguments);e&&g(e.promise)?e.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[r[0]+"With"](this,n?[e]:arguments)}))})),e=null})).promise()},then:function(e,o,n){var i=0;function a(e,t,o,n){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e=i&&(o!==G&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?d():(C.Deferred.getErrorHook?d.error=C.Deferred.getErrorHook():C.Deferred.getStackHook&&(d.error=C.Deferred.getStackHook()),r.setTimeout(d))}}return C.Deferred((function(r){t[0][3].add(a(0,r,g(n)?n:X,r.notifyWith)),t[1][3].add(a(0,r,g(e)?e:X)),t[2][3].add(a(0,r,g(o)?o:G))})).promise()},promise:function(e){return null!=e?C.extend(e,n):n}},i={};return C.each(t,(function(e,r){var a=r[2],s=r[5];n[r[1]]=a.add,s&&a.add((function(){o=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=a.fireWith})),n.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,o=t,r=Array(o),n=s.call(arguments),i=C.Deferred(),a=function(e){return function(o){r[e]=this,n[e]=arguments.length>1?s.call(arguments):o,--t||i.resolveWith(r,n)}};if(t<=1&&(K(e,i.done(a(o)).resolve,i.reject,!t),"pending"===i.state()||g(n[o]&&n[o].then)))return i.then();for(;o--;)K(n[o],a(o),i.reject);return i.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&Q.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){r.setTimeout((function(){throw e}))};var J=C.Deferred();function Z(){y.removeEventListener("DOMContentLoaded",Z),r.removeEventListener("load",Z),C.ready()}C.fn.ready=function(e){return J.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||J.resolveWith(y,[C]))}}),C.ready.then=J.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",Z),r.addEventListener("load",Z));var ee=function(e,t,o,r,n,i,a){var s=0,l=e.length,c=null==o;if("object"===k(o))for(s in n=!0,o)ee(e,t,s,o[s],!0,i,a);else if(void 0!==r&&(n=!0,g(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,o){return c.call(C(e),o)})),t))for(;s1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),C.extend({queue:function(e,t,o){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),o&&(!r||Array.isArray(o)?r=se.access(e,t,C.makeArray(o)):r.push(o)),r||[]},dequeue:function(e,t){t=t||"fx";var o=C.queue(e,t),r=o.length,n=o.shift(),i=C._queueHooks(e,t);"inprogress"===n&&(n=o.shift(),r--),n&&("fx"===t&&o.unshift("inprogress"),delete i.stop,n.call(e,(function(){C.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return se.get(e,o)||se.access(e,o,{empty:C.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",o])}))})}}),C.fn.extend({queue:function(e,t){var o=2;return"string"!=typeof e&&(t=e,e="fx",o--),arguments.length\x20\t\r\n\f]*)/i,Ae=/^$|^module$|\/(?:java|ecma)script/i;_e=y.createDocumentFragment().appendChild(y.createElement("div")),(De=y.createElement("input")).setAttribute("type","radio"),De.setAttribute("checked","checked"),De.setAttribute("name","t"),_e.appendChild(De),m.checkClone=_e.cloneNode(!0).cloneNode(!0).lastChild.checked,_e.innerHTML="",m.noCloneChecked=!!_e.cloneNode(!0).lastChild.defaultValue,_e.innerHTML=" ",m.option=!!_e.lastChild;var Ee={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function Se(e,t){var o;return o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?C.merge([e],o):o}function je(e,t){for(var o=0,r=e.length;o",""]);var Oe=/<|?\w+;/;function Me(e,t,o,r,n){for(var i,a,s,l,c,d,f=t.createDocumentFragment(),b=[],p=0,u=e.length;p-1)n&&n.push(i);else if(c=me(i),a=Se(f.appendChild(i),"script"),c&&je(a),o)for(d=0;i=a[d++];)Ae.test(i.type||"")&&o.push(i);return f}var $e=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Le(){return!1}function ze(e,t,o,r,n,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof o&&(r=r||o,o=void 0),t)ze(e,s,o,r,t[s],i);return e}if(null==r&&null==n?(n=o,r=o=void 0):null==n&&("string"==typeof o?(n=r,r=void 0):(n=r,r=o,o=void 0)),!1===n)n=Le;else if(!n)return e;return 1===i&&(a=n,n=function(e){return C().off(e),a.apply(this,arguments)},n.guid=a.guid||(a.guid=C.guid++)),e.each((function(){C.event.add(this,t,n,r,o)}))}function Ie(e,t,o){o?(se.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var o,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),o=se.get(this,t),se.set(this,t,!1),r!==o)return e.stopImmediatePropagation(),e.preventDefault(),o}else r&&(se.set(this,t,C.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===se.get(e,t)&&C.event.add(e,t,Ne)}C.event={global:{},add:function(e,t,o,r,n){var i,a,s,l,c,d,f,b,p,u,h,m=se.get(e);if(ie(e))for(o.handler&&(o=(i=o).handler,n=i.selector),n&&C.find.matchesSelector(he,n),o.guid||(o.guid=C.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Y)||[""]).length;c--;)p=h=(s=$e.exec(t[c])||[])[1],u=(s[2]||"").split(".").sort(),p&&(f=C.event.special[p]||{},p=(n?f.delegateType:f.bindType)||p,f=C.event.special[p]||{},d=C.extend({type:p,origType:h,data:r,handler:o,guid:o.guid,selector:n,needsContext:n&&C.expr.match.needsContext.test(n),namespace:u.join(".")},i),(b=l[p])||((b=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,u,a)||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,d),d.handler.guid||(d.handler.guid=o.guid)),n?b.splice(b.delegateCount++,0,d):b.push(d),C.event.global[p]=!0)},remove:function(e,t,o,r,n){var i,a,s,l,c,d,f,b,p,u,h,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(Y)||[""]).length;c--;)if(p=h=(s=$e.exec(t[c])||[])[1],u=(s[2]||"").split(".").sort(),p){for(f=C.event.special[p]||{},b=l[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=b.length;i--;)d=b[i],!n&&h!==d.origType||o&&o.guid!==d.guid||s&&!s.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(b.splice(i,1),d.selector&&b.delegateCount--,f.remove&&f.remove.call(e,d));a&&!b.length&&(f.teardown&&!1!==f.teardown.call(e,u,m.handle)||C.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[c],o,r,!0);C.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,o,r,n,i,a,s=new Array(arguments.length),l=C.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],d=C.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},o=0;o-1:C.find(n,this,null,[c]).length),a[n]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l\s*$/g;function He(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var o,r,n,i,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(n in se.remove(t,"handle events"),s)for(o=0,r=s[n].length;o1&&"string"==typeof u&&!m.checkClone&&qe.test(u))return e.each((function(n){var i=e.eq(n);h&&(t[0]=u.call(this,n,i.html())),Ve(i,t,o,r)}));if(b&&(i=(n=Me(t,e[0].ownerDocument,!1,e,r)).firstChild,1===n.childNodes.length&&(n=i),i||r)){for(s=(a=C.map(Se(n,"script"),Re)).length;f0&&je(a,!l&&Se(e,"script")),s},cleanData:function(e){for(var t,o,r,n=C.event.special,i=0;void 0!==(o=e[i]);i++)if(ie(o)){if(t=o[se.expando]){if(t.events)for(r in t.events)n[r]?C.event.remove(o,r):C.removeEvent(o,r,t.handle);o[se.expando]=void 0}o[le.expando]&&(o[le.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||He(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=He(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},o=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!Ee[(Te.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;o=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l+c}function dt(e,t,o){var r=Ke(e),n=(!m.boxSizingReliable()||o)&&"border-box"===C.css(e,"boxSizing",!1,r),i=n,a=Ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Xe.test(a)){if(!o)return a;a="auto"}return(!m.boxSizingReliable()&&n||!m.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(n="border-box"===C.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,o||(n?"border":"content"),i,r,a)+"px"}function ft(e,t,o,r,n){return new ft.prototype.init(e,t,o,r,n)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var o=Ze(e,"opacity");return""===o?"1":o}}}},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(e,t,o,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,i,a,s=ne(t),l=Ge.test(t),c=e.style;if(l||(t=nt(s)),a=C.cssHooks[t]||C.cssHooks[s],void 0===o)return a&&"get"in a&&void 0!==(n=a.get(e,!1,r))?n:c[t];"string"==(i=typeof o)&&(n=pe.exec(o))&&n[1]&&(o=ye(e,t,n),i="number"),null!=o&&o==o&&("number"!==i||l||(o+=n&&n[3]||(C.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==o||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(o=a.set(e,o,r))||(l?c.setProperty(t,o):c[t]=o))}},css:function(e,t,o,r){var n,i,a,s=ne(t);return Ge.test(t)||(t=nt(s)),(a=C.cssHooks[t]||C.cssHooks[s])&&"get"in a&&(n=a.get(e,!0,o)),void 0===n&&(n=Ze(e,t,r)),"normal"===n&&t in st&&(n=st[t]),""===o||o?(i=parseFloat(n),!0===o||isFinite(i)?i||0:n):n}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,o,r){if(o)return!it.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?dt(e,t,r):Qe(e,at,(function(){return dt(e,t,r)}))},set:function(e,o,r){var n,i=Ke(e),a=!m.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===C.css(e,"boxSizing",!1,i),l=r?ct(e,t,r,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ct(e,t,"border",!1,i)-.5)),l&&(n=pe.exec(o))&&"px"!==(n[3]||"px")&&(e.style[t]=o,o=C.css(e,t)),lt(0,o,l)}}})),C.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(o){for(var r=0,n={},i="string"==typeof o?o.split(" "):[o];r<4;r++)n[e+ue[r]+t]=i[r]||i[r-2]||i[0];return n}},"margin"!==e&&(C.cssHooks[e+t].set=lt)})),C.fn.extend({css:function(e,t){return ee(this,(function(e,t,o){var r,n,i={},a=0;if(Array.isArray(t)){for(r=Ke(e),n=t.length;a1)}}),C.Tween=ft,ft.prototype={constructor:ft,init:function(e,t,o,r,n,i){this.elem=e,this.prop=o,this.easing=n||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(C.cssNumber[o]?"":"px")},cur:function(){var e=ft.propHooks[this.prop];return e&&e.get?e.get(this):ft.propHooks._default.get(this)},run:function(e){var t,o=ft.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):ft.propHooks._default.set(this),this}},ft.prototype.init.prototype=ft.prototype,ft.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},ft.propHooks.scrollTop=ft.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=ft.prototype.init,C.fx.step={};var bt,pt,ut=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function mt(){pt&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(mt):r.setTimeout(mt,C.fx.interval),C.fx.tick())}function gt(){return r.setTimeout((function(){bt=void 0})),bt=Date.now()}function vt(e,t){var o,r=0,n={height:e};for(t=t?1:0;r<4;r+=2-t)n["margin"+(o=ue[r])]=n["padding"+o]=e;return t&&(n.opacity=n.width=e),n}function yt(e,t,o){for(var r,n=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),i=0,a=n.length;i1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,o){var r,n,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?C.prop(e,t,o):(1===i&&C.isXMLDoc(e)||(n=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?wt:void 0)),void 0!==o?null===o?void C.removeAttr(e,t):n&&"set"in n&&void 0!==(r=n.set(e,o,t))?r:(e.setAttribute(t,o+""),o):n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&A(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}},removeAttr:function(e,t){var o,r=0,n=t&&t.match(Y);if(n&&1===e.nodeType)for(;o=n[r++];)e.removeAttribute(o)}}),wt={set:function(e,t,o){return!1===t?C.removeAttr(e,o):e.setAttribute(o,o),o}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var o=kt[t]||C.find.attr;kt[t]=function(e,t,r){var n,i,a=t.toLowerCase();return r||(i=kt[a],kt[a]=n,n=null!=o(e,t,r)?a:null,kt[a]=i),n}}));var _t=/^(?:input|select|textarea|button)$/i,Dt=/^(?:a|area)$/i;function Ct(e){return(e.match(Y)||[]).join(" ")}function Tt(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}C.fn.extend({prop:function(e,t){return ee(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,o){var r,n,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&C.isXMLDoc(e)||(t=C.propFix[t]||t,n=C.propHooks[t]),void 0!==o?n&&"set"in n&&void 0!==(r=n.set(e,o,t))?r:e[t]=o:n&&"get"in n&&null!==(r=n.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||Dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,o,r,n,i,a;return g(e)?this.each((function(t){C(this).addClass(e.call(this,t,Tt(this)))})):(t=At(e)).length?this.each((function(){if(r=Tt(this),o=1===this.nodeType&&" "+Ct(r)+" "){for(i=0;i-1;)o=o.replace(" "+n+" "," ");a=Ct(o),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var o,r,n,i,a=typeof e,s="string"===a||Array.isArray(e);return g(e)?this.each((function(o){C(this).toggleClass(e.call(this,o,Tt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(o=At(e),this.each((function(){if(s)for(i=C(this),n=0;n-1)return!0;return!1}});var Et=/\r/g;C.fn.extend({val:function(e){var t,o,r,n=this[0];return arguments.length?(r=g(e),this.each((function(o){var n;1===this.nodeType&&(null==(n=r?e.call(this,o,C(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=C.map(n,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=C.valHooks[n.type]||C.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(o=t.get(n,"value"))?o:"string"==typeof(o=n.value)?o.replace(Et,""):null==o?"":o:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:Ct(C.text(e))}},select:{get:function(e){var t,o,r,n=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:n.length;for(r=i<0?l:a?i:0;r-1)&&(o=!0);return o||(e.selectedIndex=-1),i}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},m.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var St=r.location,jt={guid:Date.now()},Ot=/\?/;C.parseXML=function(e){var t,o;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return o=t&&t.getElementsByTagName("parsererror")[0],t&&!o||C.error("Invalid XML: "+(o?C.map(o.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Mt=/^(?:focusinfocus|focusoutblur)$/,$t=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,o,n){var i,a,s,l,c,d,f,b,u=[o||y],h=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(a=b=s=o=o||y,3!==o.nodeType&&8!==o.nodeType&&!Mt.test(h+C.event.triggered)&&(h.indexOf(".")>-1&&(m=h.split("."),h=m.shift(),m.sort()),c=h.indexOf(":")<0&&"on"+h,(e=e[C.expando]?e:new C.Event(h,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=null==t?[e]:C.makeArray(t,[e]),f=C.event.special[h]||{},n||!f.trigger||!1!==f.trigger.apply(o,t))){if(!n&&!f.noBubble&&!v(o)){for(l=f.delegateType||h,Mt.test(l+h)||(a=a.parentNode);a;a=a.parentNode)u.push(a),s=a;s===(o.ownerDocument||y)&&u.push(s.defaultView||s.parentWindow||r)}for(i=0;(a=u[i++])&&!e.isPropagationStopped();)b=a,e.type=i>1?l:f.bindType||h,(d=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&ie(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=h,n||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(u.pop(),t)||!ie(o)||c&&g(o[h])&&!v(o)&&((s=o[c])&&(o[c]=null),C.event.triggered=h,e.isPropagationStopped()&&b.addEventListener(h,$t),o[h](),e.isPropagationStopped()&&b.removeEventListener(h,$t),C.event.triggered=void 0,s&&(o[c]=s)),e.result}},simulate:function(e,t,o){var r=C.extend(new C.Event,o,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var o=this[0];if(o)return C.event.trigger(e,t,o,!0)}});var Nt=/\[\]$/,Lt=/\r?\n/g,zt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,o,r){var n;if(Array.isArray(t))C.each(t,(function(t,n){o||Nt.test(e)?r(e,n):Pt(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,o,r)}));else if(o||"object"!==k(t))r(e,t);else for(n in t)Pt(e+"["+n+"]",t[n],o,r)}C.param=function(e,t){var o,r=[],n=function(e,t){var o=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==o?"":o)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){n(this.name,this.value)}));else for(o in e)Pt(o,e[o],t,n);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&It.test(this.nodeName)&&!zt.test(e)&&(this.checked||!Ce.test(e))})).map((function(e,t){var o=C(this).val();return null==o?null:Array.isArray(o)?C.map(o,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:o.replace(Lt,"\r\n")}})).get()}});var qt=/%20/g,Ft=/#.*$/,Ht=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,Bt=/^\/\//,Wt={},Vt={},Yt="*/".concat("*"),Xt=y.createElement("a");function Gt(e){return function(t,o){"string"!=typeof t&&(o=t,t="*");var r,n=0,i=t.toLowerCase().match(Y)||[];if(g(o))for(;r=i[n++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(o)):(e[r]=e[r]||[]).push(o)}}function Kt(e,t,o,r){var n={},i=e===Vt;function a(s){var l;return n[s]=!0,C.each(e[s]||[],(function(e,s){var c=s(t,o,r);return"string"!=typeof c||i||n[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!n["*"]&&a("*")}function Qt(e,t){var o,r,n=C.ajaxSettings.flatOptions||{};for(o in t)void 0!==t[o]&&((n[o]?e:r||(r={}))[o]=t[o]);return r&&C.extend(!0,e,r),e}Xt.href=St.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,C.ajaxSettings),t):Qt(C.ajaxSettings,e)},ajaxPrefilter:Gt(Wt),ajaxTransport:Gt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,n,i,a,s,l,c,d,f,b,p=C.ajaxSetup({},t),u=p.context||p,h=p.context&&(u.nodeType||u.jquery)?C(u):C.event,m=C.Deferred(),g=C.Callbacks("once memory"),v=p.statusCode||{},x={},w={},k="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Rt.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)_.always(e[_.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||k;return o&&o.abort(t),D(0,t),this}};if(m.promise(_),p.url=((e||p.url||St.href)+"").replace(Bt,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Y)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Xt.protocol+"//"+Xt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Kt(Wt,p,t,_),c)return _;for(f in(d=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ut.test(p.type),n=p.url.replace(Ft,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(qt,"+")):(b=p.url.slice(n.length),p.data&&(p.processData||"string"==typeof p.data)&&(n+=(Ot.test(n)?"&":"?")+p.data,delete p.data),!1===p.cache&&(n=n.replace(Ht,"$1"),b=(Ot.test(n)?"&":"?")+"_="+jt.guid+++b),p.url=n+b),p.ifModified&&(C.lastModified[n]&&_.setRequestHeader("If-Modified-Since",C.lastModified[n]),C.etag[n]&&_.setRequestHeader("If-None-Match",C.etag[n])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Yt+"; q=0.01":""):p.accepts["*"]),p.headers)_.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(u,_,p)||c))return _.abort();if(k="abort",g.add(p.complete),_.done(p.success),_.fail(p.error),o=Kt(Vt,p,t,_)){if(_.readyState=1,d&&h.trigger("ajaxSend",[_,p]),c)return _;p.async&&p.timeout>0&&(s=r.setTimeout((function(){_.abort("timeout")}),p.timeout));try{c=!1,o.send(x,D)}catch(e){if(c)throw e;D(-1,e)}}else D(-1,"No Transport");function D(e,t,a,l){var f,b,y,x,w,k=t;c||(c=!0,s&&r.clearTimeout(s),o=void 0,i=l||"",_.readyState=e>0?4:0,f=e>=200&&e<300||304===e,a&&(x=function(e,t,o){for(var r,n,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(n in s)if(s[n]&&s[n].test(r)){l.unshift(n);break}if(l[0]in o)i=l[0];else{for(n in o){if(!l[0]||e.converters[n+" "+l[0]]){i=n;break}a||(a=n)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),o[i]}(p,_,a)),!f&&C.inArray("script",p.dataTypes)>-1&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(e,t,o,r){var n,i,a,s,l,c={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=d.shift();i;)if(e.responseFields[i]&&(o[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=d.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(n in c)if((s=n.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[n]:!0!==c[n]&&(i=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(p,x,_,f),f?(p.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(C.lastModified[n]=w),(w=_.getResponseHeader("etag"))&&(C.etag[n]=w)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=x.state,b=x.data,f=!(y=x.error))):(y=k,!e&&k||(k="error",e<0&&(e=0))),_.status=e,_.statusText=(t||k)+"",f?m.resolveWith(u,[b,k,_]):m.rejectWith(u,[_,k,y]),_.statusCode(v),v=void 0,d&&h.trigger(f?"ajaxSuccess":"ajaxError",[_,p,f?b:y]),g.fireWith(u,[_,k]),d&&(h.trigger("ajaxComplete",[_,p]),--C.active||C.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,o){return C.get(e,t,o,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,o,r,n){return g(o)&&(n=n||r,r=o,o=void 0),C.ajax(C.extend({url:e,type:t,dataType:n,data:o,success:r},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,o){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,o)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),o=t.contents();o.length?o.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(o){C(this).wrapAll(t?e.call(this,o):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Zt=C.ajaxSettings.xhr();m.cors=!!Zt&&"withCredentials"in Zt,m.ajax=Zt=!!Zt,C.ajaxTransport((function(e){var t,o;if(m.cors||Zt&&!e.crossDomain)return{send:function(n,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)s.setRequestHeader(a,n[a]);t=function(e){return function(){t&&(t=o=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),o=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&o()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,o;if(e.crossDomain||e.scriptAttrs)return{send:function(r,n){t=C("