// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0 (()=>{var Sl=Object.defineProperty,Dd=Object.defineProperties;var Md=Object.getOwnPropertyDescriptors;var hr=Object.getOwnPropertySymbols;var Tl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable;var Al=Math.pow,Cl=(t,i,r)=>i in t?Sl(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,si=(t,i)=>{for(var r in i||(i={}))Tl.call(i,r)&&Cl(t,r,i[r]);if(hr)for(var r of hr(i))El.call(i,r)&&Cl(t,r,i[r]);return t},Ni=(t,i)=>Dd(t,Md(i));var Ri=(t,i)=>{var r={};for(var l in t)Tl.call(t,l)&&i.indexOf(l)<0&&(r[l]=t[l]);if(t!=null&&hr)for(var l of hr(t))i.indexOf(l)<0&&El.call(t,l)&&(r[l]=t[l]);return r};var zi=(t,i)=>()=>(t&&(i=t(t=0)),i);var oo=(t,i)=>{for(var r in i)Sl(t,r,{get:i[r],enumerable:!0})};var ye=(t,i,r)=>new Promise((l,c)=>{var d=b=>{try{g(r.next(b))}catch(x){c(x)}},f=b=>{try{g(r.throw(b))}catch(x){c(x)}},g=b=>b.done?l(b.value):Promise.resolve(b.value).then(d,f);g((r=r.apply(t,i)).next())});var lg,hu,cg,hg,ug,dg,pg,fg,mg,gg,lu,cu,uu,Os=zi(()=>{lg=Object.create,hu=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,hg=Object.getOwnPropertyNames,ug=Object.getPrototypeOf,dg=Object.prototype.hasOwnProperty,pg=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),fg=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of hg(i))!dg.call(t,c)&&c!==r&&hu(t,c,{get:()=>i[c],enumerable:!(l=cg(i,c))||l.enumerable});return t},mg=(t,i,r)=>(r=t!=null?lg(ug(t)):{},fg(i||!t||!t.__esModule?hu(r,"default",{value:t,enumerable:!0}):r,t)),gg=pg(()=>{(function(){var t=function(r){return r.replace(/[^\-?0-9.]/g,"")},i=function(r,l){return r=parseFloat(r),l=parseFloat(l),r=isNaN(r)?0:r,l=isNaN(l)?0:l,r-l};Tablesort.extend("number",function(r){return r.match(/^[-+]?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||r.match(/^[-+]?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||r.match(/^[-+]?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(r,l){return r=t(r),l=t(l),i(l,r)})})()}),lu=mg(gg()),uu=(cu=lu.default)!=null?cu:lu});var du={};oo(du,{default:()=>uu});var pu=zi(()=>{Os();Os()});var vg,Rs,yg,bg,wg,_g,Pi,xg,Ns,kg,gu,Cg,Sg,Tg,Eg,Ag,$g,Dg,Mg,Ig,Pg,Og,Ng,vu,yu,Rg,fu,mu,zg,zs,Ls=zi(()=>{vg=Object.create,Rs=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,bg=Object.getOwnPropertyNames,wg=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty,Pi=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),xg=(t,i)=>{for(var r in i)Rs(t,r,{get:i[r],enumerable:!0})},Ns=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of bg(i))!_g.call(t,c)&&c!==r&&Rs(t,c,{get:()=>i[c],enumerable:!(l=yg(i,c))||l.enumerable});return t},kg=(t,i,r)=>(Ns(t,i,"default"),r&&Ns(r,i,"default")),gu=(t,i,r)=>(r=t!=null?vg(wg(t)):{},Ns(i||!t||!t.__esModule?Rs(r,"default",{value:t,enumerable:!0}):r,t)),Cg=Pi(()=>{+function(t){"use strict";function i(){var r=document.createElement("bootstrap"),l={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in l)if(r.style[c]!==void 0)return{end:l[c]};return!1}t.fn.emulateTransitionEnd=function(r){var l=!1,c=this;t(this).one("bsTransitionEnd",function(){l=!0});var d=function(){l||t(c).trigger(t.support.transition.end)};return setTimeout(d,r),this},t(function(){t.support.transition=i(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(r){if(t(r.target).is(this))return r.handleObj.handler.apply(this,arguments)}})})}(jQuery)}),Sg=Pi(()=>{+function(t){"use strict";var i='[data-dismiss="alert"]',r=function(d){t(d).on("click",i,this.close)};r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(d){var f=t(this),g=f.attr("data-target");g||(g=f.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,"")),g=g==="#"?[]:g;var b=t(document).find(g);if(d&&d.preventDefault(),b.length||(b=f.closest(".alert")),b.trigger(d=t.Event("close.bs.alert")),d.isDefaultPrevented())return;b.removeClass("in");function x(){b.detach().trigger("closed.bs.alert").remove()}t.support.transition&&b.hasClass("fade")?b.one("bsTransitionEnd",x).emulateTransitionEnd(r.TRANSITION_DURATION):x()};function l(d){return this.each(function(){var f=t(this),g=f.data("bs.alert");g||f.data("bs.alert",g=new r(this)),typeof d=="string"&&g[d].call(f)})}var c=t.fn.alert;t.fn.alert=l,t.fn.alert.Constructor=r,t.fn.alert.noConflict=function(){return t.fn.alert=c,this},t(document).on("click.bs.alert.data-api",i,r.prototype.close)}(jQuery)}),Tg=Pi(()=>{+function(t){"use strict";var i=function(c,d){this.$element=t(c),this.options=t.extend({},i.DEFAULTS,d),this.isLoading=!1};i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(c){var d="disabled",f=this.$element,g=f.is("input")?"val":"html",b=f.data();c+="Text",b.resetText==null&&f.data("resetText",f[g]()),setTimeout(t.proxy(function(){f[g](b[c]==null?this.options[c]:b[c]),c=="loadingText"?(this.isLoading=!0,f.addClass(d).attr(d,d).prop(d,!0)):this.isLoading&&(this.isLoading=!1,f.removeClass(d).removeAttr(d).prop(d,!1))},this),0)},i.prototype.toggle=function(){var c=!0,d=this.$element.closest('[data-toggle="buttons"]');if(d.length){var f=this.$element.find("input");f.prop("type")=="radio"?(f.prop("checked")&&(c=!1),d.find(".active").removeClass("active"),this.$element.addClass("active")):f.prop("type")=="checkbox"&&(f.prop("checked")!==this.$element.hasClass("active")&&(c=!1),this.$element.toggleClass("active")),f.prop("checked",this.$element.hasClass("active")),c&&f.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};function r(c){return this.each(function(){var d=t(this),f=d.data("bs.button"),g=typeof c=="object"&&c;f||d.data("bs.button",f=new i(this,g)),c=="toggle"?f.toggle():c&&f.setState(c)})}var l=t.fn.button;t.fn.button=r,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=l,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=t(c.target).closest(".btn");r.call(d,"toggle"),t(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(c){t(c.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(c.type))})}(jQuery)}),Eg=Pi(()=>{+function(t){"use strict";var i=function(d,f){this.$element=t(d),this.$indicators=this.$element.find(".carousel-indicators"),this.options=f,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.options.pause=="hover"&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(d){if(!/input|textarea/i.test(d.target.tagName)){switch(d.which){case 37:this.prev();break;case 39:this.next();break;default:return}d.preventDefault()}},i.prototype.cycle=function(d){return d||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(d){return this.$items=d.parent().children(".item"),this.$items.index(d||this.$active)},i.prototype.getItemForDirection=function(d,f){var g=this.getItemIndex(f),b=d=="prev"&&g===0||d=="next"&&g==this.$items.length-1;if(b&&!this.options.wrap)return f;var x=d=="prev"?-1:1,w=(g+x)%this.$items.length;return this.$items.eq(w)},i.prototype.to=function(d){var f=this,g=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(d>this.$items.length-1||d<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){f.to(d)}):g==d?this.pause().cycle():this.slide(d>g?"next":"prev",this.$items.eq(d))},i.prototype.pause=function(d){return d||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(d,f){var g=this.$element.find(".item.active"),b=f||this.getItemForDirection(d,g),x=this.interval,w=d=="next"?"left":"right",A=this;if(b.hasClass("active"))return this.sliding=!1;var M=b[0],O=t.Event("slide.bs.carousel",{relatedTarget:M,direction:w});if(this.$element.trigger(O),!O.isDefaultPrevented()){if(this.sliding=!0,x&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var E=t(this.$indicators.children()[this.getItemIndex(b)]);E&&E.addClass("active")}var U=t.Event("slid.bs.carousel",{relatedTarget:M,direction:w});return t.support.transition&&this.$element.hasClass("slide")?(b.addClass(d),typeof b=="object"&&b.length&&b[0].offsetWidth,g.addClass(w),b.addClass(w),g.one("bsTransitionEnd",function(){b.removeClass([d,w].join(" ")).addClass("active"),g.removeClass(["active",w].join(" ")),A.sliding=!1,setTimeout(function(){A.$element.trigger(U)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(g.removeClass("active"),b.addClass("active"),this.sliding=!1,this.$element.trigger(U)),x&&this.cycle(),this}};function r(d){return this.each(function(){var f=t(this),g=f.data("bs.carousel"),b=t.extend({},i.DEFAULTS,f.data(),typeof d=="object"&&d),x=typeof d=="string"?d:b.slide;g||f.data("bs.carousel",g=new i(this,b)),typeof d=="number"?g.to(d):x?g[x]():b.interval&&g.pause().cycle()})}var l=t.fn.carousel;t.fn.carousel=r,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=l,this};var c=function(d){var f=t(this),g=f.attr("href");g&&(g=g.replace(/.*(?=#[^\s]+$)/,""));var b=f.attr("data-target")||g,x=t(document).find(b);if(x.hasClass("carousel")){var w=t.extend({},x.data(),f.data()),A=f.attr("data-slide-to");A&&(w.interval=!1),r.call(x,w),A&&x.data("bs.carousel").to(A),d.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",c).on("click.bs.carousel.data-api","[data-slide-to]",c),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var d=t(this);r.call(d,d.data())})})}(jQuery)}),Ag=Pi(()=>{+function(t){"use strict";var i=function(d,f){this.$element=t(d),this.options=t.extend({},i.DEFAULTS,f),this.$trigger=t('[data-toggle="collapse"][href="#'+d.id+'"],[data-toggle="collapse"][data-target="#'+d.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var d=this.$element.hasClass("width");return d?"width":"height"},i.prototype.show=function(){if(!(this.transitioning||this.$element.hasClass("in"))){var d,f=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(f&&f.length&&(d=f.data("bs.collapse"),d&&d.transitioning))){var g=t.Event("show.bs.collapse");if(this.$element.trigger(g),!g.isDefaultPrevented()){f&&f.length&&(l.call(f,"hide"),d||f.data("bs.collapse",null));var b=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[b](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var x=function(){this.$element.removeClass("collapsing").addClass("collapse in")[b](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return x.call(this);var w=t.camelCase(["scroll",b].join("-"));this.$element.one("bsTransitionEnd",t.proxy(x,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[b](this.$element[0][w])}}}},i.prototype.hide=function(){if(!(this.transitioning||!this.$element.hasClass("in"))){var d=t.Event("hide.bs.collapse");if(this.$element.trigger(d),!d.isDefaultPrevented()){var f=this.dimension();this.$element[f](this.$element[f]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var g=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return g.call(this);this.$element[f](0).one("bsTransitionEnd",t.proxy(g,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(d,f){var g=t(f);this.addAriaAndCollapsedClass(r(g),g)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(d,f){var g=d.hasClass("in");d.attr("aria-expanded",g),f.toggleClass("collapsed",!g).attr("aria-expanded",g)};function r(d){var f,g=d.attr("data-target")||(f=d.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(g)}function l(d){return this.each(function(){var f=t(this),g=f.data("bs.collapse"),b=t.extend({},i.DEFAULTS,f.data(),typeof d=="object"&&d);!g&&b.toggle&&/show|hide/.test(d)&&(b.toggle=!1),g||f.data("bs.collapse",g=new i(this,b)),typeof d=="string"&&g[d]()})}var c=t.fn.collapse;t.fn.collapse=l,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=c,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var f=t(this);f.attr("data-target")||d.preventDefault();var g=r(f),b=g.data("bs.collapse"),x=b?"toggle":f.data();l.call(g,x)})}(jQuery)}),$g=Pi(()=>{+function(t){"use strict";var i=".dropdown-backdrop",r='[data-toggle="dropdown"]',l=function(b){t(b).on("click.bs.dropdown",this.toggle)};l.VERSION="3.4.1";function c(b){var x=b.attr("data-target");x||(x=b.attr("href"),x=x&&/#[A-Za-z]/.test(x)&&x.replace(/.*(?=#[^\s]*$)/,""));var w=x!=="#"?t(document).find(x):null;return w&&w.length?w:b.parent()}function d(b){b&&b.which===3||(t(i).remove(),t(r).each(function(){var x=t(this),w=c(x),A={relatedTarget:this};w.hasClass("open")&&(b&&b.type=="click"&&/input|textarea/i.test(b.target.tagName)&&t.contains(w[0],b.target)||(w.trigger(b=t.Event("hide.bs.dropdown",A)),!b.isDefaultPrevented()&&(x.attr("aria-expanded","false"),w.removeClass("open").trigger(t.Event("hidden.bs.dropdown",A)))))}))}l.prototype.toggle=function(b){var x=t(this);if(!x.is(".disabled, :disabled")){var w=c(x),A=w.hasClass("open");if(d(),!A){"ontouchstart"in document.documentElement&&!w.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",d);var M={relatedTarget:this};if(w.trigger(b=t.Event("show.bs.dropdown",M)),b.isDefaultPrevented())return;x.trigger("focus").attr("aria-expanded","true"),w.toggleClass("open").trigger(t.Event("shown.bs.dropdown",M))}return!1}},l.prototype.keydown=function(b){if(!(!/(38|40|27|32)/.test(b.which)||/input|textarea/i.test(b.target.tagName))){var x=t(this);if(b.preventDefault(),b.stopPropagation(),!x.is(".disabled, :disabled")){var w=c(x),A=w.hasClass("open");if(!A&&b.which!=27||A&&b.which==27)return b.which==27&&w.find(r).trigger("focus"),x.trigger("click");var M=" li:not(.disabled):visible a",O=w.find(".dropdown-menu"+M);if(O.length){var E=O.index(b.target);b.which==38&&E>0&&E--,b.which==40&&E{+function(t){"use strict";var i=function(c,d){this.options=d,this.$body=t(document.body),this.$element=t(c),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(c){return this.isShown?this.hide():this.show(c)},i.prototype.show=function(c){var d=this,f=t.Event("show.bs.modal",{relatedTarget:c});this.$element.trigger(f),!(this.isShown||f.isDefaultPrevented())&&(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(g){t(g.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var g=t.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),g&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var b=t.Event("shown.bs.modal",{relatedTarget:c});g?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(b)}).emulateTransitionEnd(i.TRANSITION_DURATION):d.$element.trigger("focus").trigger(b)}))},i.prototype.hide=function(c){c&&c.preventDefault(),c=t.Event("hide.bs.modal"),this.$element.trigger(c),!(!this.isShown||c.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(c){document!==c.target&&this.$element[0]!==c.target&&!this.$element.has(c.target).length&&this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(c){c.which==27&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var c=this;this.$element.hide(),this.backdrop(function(){c.$body.removeClass("modal-open"),c.resetAdjustments(),c.resetScrollbar(),c.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(c){var d=this,f=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var g=t.support.transition&&f;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(x){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}x.target===x.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this)),g&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!c)return;g?this.$backdrop.one("bsTransitionEnd",c).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):c()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var b=function(){d.removeBackdrop(),c&&c()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):b()}else c&&c()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var c=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&c?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!c?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var c=window.innerWidth;if(!c){var d=document.documentElement.getBoundingClientRect();c=d.right-Math.abs(d.left)}this.bodyIsOverflowing=document.body.clientWidth{+function(t){"use strict";var i=["sanitize","whiteList","sanitizeFn"],r=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],l=/^aria-[\w-]*$/i,c={"*":["class","dir","id","lang","role",l],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},d=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,f=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function g(M,O){var E=M.nodeName.toLowerCase();if(t.inArray(E,O)!==-1)return t.inArray(E,r)!==-1?!!(M.nodeValue.match(d)||M.nodeValue.match(f)):!0;for(var U=t(O).filter(function(G,wt){return wt instanceof RegExp}),Y=0,ct=U.length;Y
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:c},x.prototype.init=function(M,O,E){if(this.enabled=!0,this.type=M,this.$element=t(O),this.options=this.getOptions(E),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var U=this.options.trigger.split(" "),Y=U.length;Y--;){var ct=U[Y];if(ct=="click")this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if(ct!="manual"){var G=ct=="hover"?"mouseenter":"focusin",wt=ct=="hover"?"mouseleave":"focusout";this.$element.on(G+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(wt+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},x.prototype.getDefaults=function(){return x.DEFAULTS},x.prototype.getOptions=function(M){var O=this.$element.data();for(var E in O)O.hasOwnProperty(E)&&t.inArray(E,i)!==-1&&delete O[E];return M=t.extend({},this.getDefaults(),O,M),M.delay&&typeof M.delay=="number"&&(M.delay={show:M.delay,hide:M.delay}),M.sanitize&&(M.template=b(M.template,M.whiteList,M.sanitizeFn)),M},x.prototype.getDelegateOptions=function(){var M={},O=this.getDefaults();return this._options&&t.each(this._options,function(E,U){O[E]!=U&&(M[E]=U)}),M},x.prototype.enter=function(M){var O=M instanceof this.constructor?M:t(M.currentTarget).data("bs."+this.type);if(O||(O=new this.constructor(M.currentTarget,this.getDelegateOptions()),t(M.currentTarget).data("bs."+this.type,O)),M instanceof t.Event&&(O.inState[M.type=="focusin"?"focus":"hover"]=!0),O.tip().hasClass("in")||O.hoverState=="in"){O.hoverState="in";return}if(clearTimeout(O.timeout),O.hoverState="in",!O.options.delay||!O.options.delay.show)return O.show();O.timeout=setTimeout(function(){O.hoverState=="in"&&O.show()},O.options.delay.show)},x.prototype.isInStateTrue=function(){for(var M in this.inState)if(this.inState[M])return!0;return!1},x.prototype.leave=function(M){var O=M instanceof this.constructor?M:t(M.currentTarget).data("bs."+this.type);if(O||(O=new this.constructor(M.currentTarget,this.getDelegateOptions()),t(M.currentTarget).data("bs."+this.type,O)),M instanceof t.Event&&(O.inState[M.type=="focusout"?"focus":"hover"]=!1),!O.isInStateTrue()){if(clearTimeout(O.timeout),O.hoverState="out",!O.options.delay||!O.options.delay.hide)return O.hide();O.timeout=setTimeout(function(){O.hoverState=="out"&&O.hide()},O.options.delay.hide)}},x.prototype.show=function(){var M=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(M);var O=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(M.isDefaultPrevented()||!O)return;var E=this,U=this.tip(),Y=this.getUID(this.type);this.setContent(),U.attr("id",Y),this.$element.attr("aria-describedby",Y),this.options.animation&&U.addClass("fade");var ct=typeof this.options.placement=="function"?this.options.placement.call(this,U[0],this.$element[0]):this.options.placement,G=/\s?auto?\s?/i,wt=G.test(ct);wt&&(ct=ct.replace(G,"")||"top"),U.detach().css({top:0,left:0,display:"block"}).addClass(ct).data("bs."+this.type,this),this.options.container?U.appendTo(t(document).find(this.options.container)):U.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var e=this.getPosition(),n=U[0].offsetWidth,a=U[0].offsetHeight;if(wt){var o=ct,h=this.getPosition(this.$viewport);ct=ct=="bottom"&&e.bottom+a>h.bottom?"top":ct=="top"&&e.top-ah.width?"left":ct=="left"&&e.left-nG.top+G.height&&(Y.top=G.top+G.height-e)}else{var n=O.left-ct,a=O.left+ct+E;nG.right&&(Y.left=G.left+G.width-a)}return Y},x.prototype.getTitle=function(){var M,O=this.$element,E=this.options;return M=O.attr("data-original-title")||(typeof E.title=="function"?E.title.call(O[0]):E.title),M},x.prototype.getUID=function(M){do M+=~~(Math.random()*1e6);while(document.getElementById(M));return M},x.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},x.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},x.prototype.enable=function(){this.enabled=!0},x.prototype.disable=function(){this.enabled=!1},x.prototype.toggleEnabled=function(){this.enabled=!this.enabled},x.prototype.toggle=function(M){var O=this;M&&(O=t(M.currentTarget).data("bs."+this.type),O||(O=new this.constructor(M.currentTarget,this.getDelegateOptions()),t(M.currentTarget).data("bs."+this.type,O))),M?(O.inState.click=!O.inState.click,O.isInStateTrue()?O.enter(O):O.leave(O)):O.tip().hasClass("in")?O.leave(O):O.enter(O)},x.prototype.destroy=function(){var M=this;clearTimeout(this.timeout),this.hide(function(){M.$element.off("."+M.type).removeData("bs."+M.type),M.$tip&&M.$tip.detach(),M.$tip=null,M.$arrow=null,M.$viewport=null,M.$element=null})},x.prototype.sanitizeHtml=function(M){return b(M,this.options.whiteList,this.options.sanitizeFn)};function w(M){return this.each(function(){var O=t(this),E=O.data("bs.tooltip"),U=typeof M=="object"&&M;!E&&/destroy|hide/.test(M)||(E||O.data("bs.tooltip",E=new x(this,U)),typeof M=="string"&&E[M]())})}var A=t.fn.tooltip;t.fn.tooltip=w,t.fn.tooltip.Constructor=x,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=A,this}}(jQuery)}),Ig=Pi(()=>{+function(t){"use strict";var i=function(c,d){this.init("popover",c,d)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.4.1",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var c=this.tip(),d=this.getTitle(),f=this.getContent();if(this.options.html){var g=typeof f;this.options.sanitize&&(d=this.sanitizeHtml(d),g==="string"&&(f=this.sanitizeHtml(f))),c.find(".popover-title").html(d),c.find(".popover-content").children().detach().end()[g==="string"?"html":"append"](f)}else c.find(".popover-title").text(d),c.find(".popover-content").children().detach().end().text(f);c.removeClass("fade top bottom left right in"),c.find(".popover-title").html()||c.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var c=this.$element,d=this.options;return c.attr("data-content")||(typeof d.content=="function"?d.content.call(c[0]):d.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};function r(c){return this.each(function(){var d=t(this),f=d.data("bs.popover"),g=typeof c=="object"&&c;!f&&/destroy|hide/.test(c)||(f||d.data("bs.popover",f=new i(this,g)),typeof c=="string"&&f[c]())})}var l=t.fn.popover;t.fn.popover=r,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=l,this}}(jQuery)}),Pg=Pi(()=>{+function(t){"use strict";function i(c,d){this.$body=t(document.body),this.$scrollElement=t(c).is(document.body)?t(window):t(c),this.options=t.extend({},i.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}i.VERSION="3.4.1",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var c=this,d="offset",f=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(d="position",f=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var g=t(this),b=g.data("target")||g.attr("href"),x=/^#./.test(b)&&t(b);return x&&x.length&&x.is(":visible")&&[[x[d]().top+f,b]]||null}).sort(function(g,b){return g[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},i.prototype.process=function(){var c=this.$scrollElement.scrollTop()+this.options.offset,d=this.getScrollHeight(),f=this.options.offset+d-this.$scrollElement.height(),g=this.offsets,b=this.targets,x=this.activeTarget,w;if(this.scrollHeight!=d&&this.refresh(),c>=f)return x!=(w=b[b.length-1])&&this.activate(w);if(x&&c=g[w]&&(g[w+1]===void 0||c{+function(t){"use strict";var i=function(d){this.element=t(d)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.show=function(){var d=this.element,f=d.closest("ul:not(.dropdown-menu)"),g=d.data("target");if(g||(g=d.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,"")),!d.parent("li").hasClass("active")){var b=f.find(".active:last a"),x=t.Event("hide.bs.tab",{relatedTarget:d[0]}),w=t.Event("show.bs.tab",{relatedTarget:b[0]});if(b.trigger(x),d.trigger(w),!(w.isDefaultPrevented()||x.isDefaultPrevented())){var A=t(document).find(g);this.activate(d.closest("li"),f),this.activate(A,A.parent(),function(){b.trigger({type:"hidden.bs.tab",relatedTarget:d[0]}),d.trigger({type:"shown.bs.tab",relatedTarget:b[0]})})}}},i.prototype.activate=function(d,f,g){var b=f.find("> .active"),x=g&&t.support.transition&&(b.length&&b.hasClass("fade")||!!f.find("> .fade").length);function w(){b.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),d.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),x?(d[0].offsetWidth,d.addClass("in")):d.removeClass("fade"),d.parent(".dropdown-menu").length&&d.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),g&&g()}b.length&&x?b.one("bsTransitionEnd",w).emulateTransitionEnd(i.TRANSITION_DURATION):w(),b.removeClass("in")};function r(d){return this.each(function(){var f=t(this),g=f.data("bs.tab");g||f.data("bs.tab",g=new i(this)),typeof d=="string"&&g[d]()})}var l=t.fn.tab;t.fn.tab=r,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=l,this};var c=function(d){d.preventDefault(),r.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',c).on("click.bs.tab.data-api",'[data-toggle="pill"]',c)}(jQuery)}),Ng=Pi(()=>{+function(t){"use strict";var i=function(c,d){this.options=t.extend({},i.DEFAULTS,d);var f=this.options.target===i.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=f.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(c),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.4.1",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(c,d,f,g){var b=this.$target.scrollTop(),x=this.$element.offset(),w=this.$target.height();if(f!=null&&this.affixed=="top")return b=c-g?"bottom":!1},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var c=this.$target.scrollTop(),d=this.$element.offset();return this.pinnedOffset=d.top-c},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=this.$element.height(),d=this.options.offset,f=d.top,g=d.bottom,b=Math.max(t(document).height(),t(document.body).height());typeof d!="object"&&(g=f=d),typeof f=="function"&&(f=d.top(this.$element)),typeof g=="function"&&(g=d.bottom(this.$element));var x=this.getState(b,c,f,g);if(this.affixed!=x){this.unpin!=null&&this.$element.css("top","");var w="affix"+(x?"-"+x:""),A=t.Event(w+".bs.affix");if(this.$element.trigger(A),A.isDefaultPrevented())return;this.affixed=x,this.unpin=x=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(w).trigger(w.replace("affix","affixed")+".bs.affix")}x=="bottom"&&this.$element.offset({top:b-c-g})}};function r(c){return this.each(function(){var d=t(this),f=d.data("bs.affix"),g=typeof c=="object"&&c;f||d.data("bs.affix",f=new i(this,g)),typeof c=="string"&&f[c]()})}var l=t.fn.affix;t.fn.affix=r,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=l,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var c=t(this),d=c.data();d.offset=d.offset||{},d.offsetBottom!=null&&(d.offset.bottom=d.offsetBottom),d.offsetTop!=null&&(d.offset.top=d.offsetTop),r.call(c,d)})})}(jQuery)}),vu=Pi(()=>{Cg(),Sg(),Tg(),Eg(),Ag(),$g(),Dg(),Mg(),Ig(),Pg(),Og(),Ng()}),yu={};xg(yu,{default:()=>zs});Rg=gu(vu());kg(yu,gu(vu()));fu=Rg,{default:mu}=fu,zg=Ri(fu,["default"]),zs=mu!==void 0?mu:zg;console.warn("[npm] %cdeprecated%c bootstrap@3.4.1: This version of Bootstrap is no longer supported. Please upgrade to the latest version.","color:red","")});var Hs={};oo(Hs,{default:()=>zs});var Bs=zi(()=>{Ls();Ls()});var Lg,Fs,Hg,Bg,jg,Fg,Wg,Ug,js,qg,_u,xu,ku,Vg,bu,wu,Yg,Ws,Us=zi(()=>{Lg=Object.create,Fs=Object.defineProperty,Hg=Object.getOwnPropertyDescriptor,Bg=Object.getOwnPropertyNames,jg=Object.getPrototypeOf,Fg=Object.prototype.hasOwnProperty,Wg=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Ug=(t,i)=>{for(var r in i)Fs(t,r,{get:i[r],enumerable:!0})},js=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Bg(i))!Fg.call(t,c)&&c!==r&&Fs(t,c,{get:()=>i[c],enumerable:!(l=Hg(i,c))||l.enumerable});return t},qg=(t,i,r)=>(js(t,i,"default"),r&&js(r,i,"default")),_u=(t,i,r)=>(r=t!=null?Lg(jg(t)):{},js(i||!t||!t.__esModule?Fs(r,"default",{value:t,enumerable:!0}):r,t)),xu=Wg(()=>{(function(t){t.color={},t.color.make=function(r,l,c,d){var f={};return f.r=r||0,f.g=l||0,f.b=c||0,f.a=d!=null?d:1,f.add=function(g,b){for(var x=0;x=1?"rgb("+[f.r,f.g,f.b].join(",")+")":"rgba("+[f.r,f.g,f.b,f.a].join(",")+")"},f.normalize=function(){function g(b,x,w){return xw?w:x}return f.r=g(0,parseInt(f.r),255),f.g=g(0,parseInt(f.g),255),f.b=g(0,parseInt(f.b),255),f.a=g(0,f.a,1),f},f.clone=function(){return t.color.make(f.r,f.b,f.g,f.a)},f.normalize()},t.color.extract=function(r,l){var c;do{if(c=r.css(l).toLowerCase(),c!=""&&c!="transparent")break;r=r.parent()}while(r.length&&!t.nodeName(r.get(0),"body"));return c=="rgba(0, 0, 0, 0)"&&(c="transparent"),t.color.parse(c)},t.color.parse=function(r){var l,c=t.color.make;if(l=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(r))return c(parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10));if(l=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(r))return c(parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10),parseFloat(l[4]));if(l=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(r))return c(parseFloat(l[1])*2.55,parseFloat(l[2])*2.55,parseFloat(l[3])*2.55);if(l=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(r))return c(parseFloat(l[1])*2.55,parseFloat(l[2])*2.55,parseFloat(l[3])*2.55,parseFloat(l[4]));if(l=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(r))return c(parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16));if(l=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(r))return c(parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16));var d=t.trim(r).toLowerCase();return d=="transparent"?c(255,255,255,0):(l=i[d]||[0,0,0],c(l[0],l[1],l[2]))};var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery),function(t){var i=Object.prototype.hasOwnProperty;t.fn.detach||(t.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})});function r(d,f){var g=f.children("."+d)[0];if(g==null&&(g=document.createElement("canvas"),g.className=d,t(g).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(f),!g.getContext))if(window.G_vmlCanvasManager)g=window.G_vmlCanvasManager.initElement(g);else throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");this.element=g;var b=this.context=g.getContext("2d"),x=window.devicePixelRatio||1,w=b.webkitBackingStorePixelRatio||b.mozBackingStorePixelRatio||b.msBackingStorePixelRatio||b.oBackingStorePixelRatio||b.backingStorePixelRatio||1;this.pixelRatio=x/w,this.resize(f.width(),f.height()),this.textContainer=null,this.text={},this._textCache={}}r.prototype.resize=function(d,f){if(d<=0||f<=0)throw new Error("Invalid dimensions for plot, width = "+d+", height = "+f);var g=this.element,b=this.context,x=this.pixelRatio;this.width!=d&&(g.width=d*x,g.style.width=d+"px",this.width=d),this.height!=f&&(g.height=f*x,g.style.height=f+"px",this.height=f),b.restore(),b.save(),b.scale(x,x)},r.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},r.prototype.render=function(){var d=this._textCache;for(var f in d)if(i.call(d,f)){var g=this.getTextLayer(f),b=d[f];g.hide();for(var x in b)if(i.call(b,x)){var w=b[x];for(var A in w)if(i.call(w,A)){for(var M=w[A].positions,O=0,E;E=M[O];O++)E.active?E.rendered||(g.append(E.element),E.rendered=!0):(M.splice(O--,1),E.rendered&&E.element.detach());M.length==0&&delete w[A]}}g.show()}},r.prototype.getTextLayer=function(d){var f=this.text[d];return f==null&&(this.textContainer==null&&(this.textContainer=t("
").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),f=this.text[d]=t("
").addClass(d).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),f},r.prototype.getTextInfo=function(d,f,g,b,x){var w,A,M,O;if(f=""+f,typeof g=="object"?w=g.style+" "+g.variant+" "+g.weight+" "+g.size+"px/"+g.lineHeight+"px "+g.family:w=g,A=this._textCache[d],A==null&&(A=this._textCache[d]={}),M=A[w],M==null&&(M=A[w]={}),O=M[f],O==null){var E=t("
").html(f).css({position:"absolute","max-width":x,top:-9999}).appendTo(this.getTextLayer(d));typeof g=="object"?E.css({font:w,color:g.color}):typeof g=="string"&&E.addClass(g),O=M[f]={width:E.outerWidth(!0),height:E.outerHeight(!0),element:E,positions:[]},E.detach()}return O},r.prototype.addText=function(d,f,g,b,x,w,A,M,O){var E=this.getTextInfo(d,b,x,w,A),U=E.positions;M=="center"?f-=E.width/2:M=="right"&&(f-=E.width),O=="middle"?g-=E.height/2:O=="bottom"&&(g-=E.height);for(var Y=0,ct;ct=U[Y];Y++)if(ct.x==f&&ct.y==g){ct.active=!0;return}ct={active:!0,rendered:!1,element:U.length?E.element.clone():E.element,x:f,y:g},U.push(ct),ct.element.css({top:Math.round(g),left:Math.round(f),"text-align":M})},r.prototype.removeText=function(d,f,g,b,x,w){if(b==null){var A=this._textCache[d];if(A!=null){for(var M in A)if(i.call(A,M)){var O=A[M];for(var E in O)if(i.call(O,E))for(var U=O[E].positions,Y=0,ct;ct=U[Y];Y++)ct.active=!1}}}else for(var U=this.getTextInfo(d,b,x,w).positions,Y=0,ct;ct=U[Y];Y++)ct.x==f&&ct.y==g&&(ct.active=!1)};function l(d,f,g,b){var x=[],w={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:16.666666666666668},hooks:{}},A=null,M=null,O=null,E=null,U=null,Y=[],ct=[],G={left:0,right:0,top:0,bottom:0},wt=0,e=0,n={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},a=this;a.setData=y,a.setupGrid=$t,a.draw=Vt,a.getPlaceholder=function(){return d},a.getCanvas=function(){return A.element},a.getPlotOffset=function(){return G},a.width=function(){return wt},a.height=function(){return e},a.offset=function(){var S=O.offset();return S.left+=G.left,S.top+=G.top,S},a.getData=function(){return x},a.getAxes=function(){var S={},z;return t.each(Y.concat(ct),function(R,Q){Q&&(S[Q.direction+(Q.n!=1?Q.n:"")+"axis"]=Q)}),S},a.getXAxes=function(){return Y},a.getYAxes=function(){return ct},a.c2p=L,a.p2c=J,a.getOptions=function(){return w},a.highlight=ei,a.unhighlight=ni,a.triggerRedrawOverlay=vi,a.pointOffset=function(S){return{left:parseInt(Y[D(S,"x")-1].p2c(+S.x)+G.left,10),top:parseInt(ct[D(S,"y")-1].p2c(+S.y)+G.top,10)}},a.shutdown=ot,a.destroy=function(){ot(),d.removeData("plot").empty(),x=[],w=null,A=null,M=null,O=null,E=null,U=null,Y=[],ct=[],n=null,_e=[],a=null},a.resize=function(){var S=d.width(),z=d.height();A.resize(S,z),M.resize(S,z)},a.hooks=n,h(a),p(g),N(),y(f),$t(),Vt(),tt();function o(S,z){z=[a].concat(z);for(var R=0;Rz&&(z=Q))}S<=z&&(S=z+1);var ut,ft=[],lt=w.colors,rt=lt.length,et=0;for(R=0;R=0?et<.5?et=-et-.2:et=0:et=-et),ft[R]=ut.scale("rgb",1+et);var vt=0,_t;for(R=0;RLt.datamax&&me!=R&&(Lt.datamax=me)}for(t.each(P(),function(Lt,At){At.datamin=S,At.datamax=z,At.used=!1}),Q=0;Q0&&vt[ft-_t]!=null&&vt[ft-_t]!=vt[ft]&&vt[ft-_t+1]!=vt[ft+1]){for(lt=0;lt<_t;++lt)vt[ft+_t+lt]=vt[ft+lt];vt[ft+1]=vt[ft-_t+1],ft+=_t}}}}for(Q=0;Qci&&(ci=Dt)),Ft.y&&(Dtpn&&(pn=Dt)));if(et.bars.show){var H;switch(et.bars.align){case"left":H=0;break;case"right":H=-et.bars.barWidth;break;default:H=-et.bars.barWidth/2}et.bars.horizontal?(ri+=H,pn+=H+et.bars.barWidth):(Ue+=H,ci+=H+et.bars.barWidth)}St(et.xaxis,Ue,ci),St(et.yaxis,ri,pn)}t.each(P(),function(Lt,At){At.datamin==S&&(At.datamin=null),At.datamax==z&&(At.datamax=null)})}function N(){d.css("padding",0).children().filter(function(){return!t(this).hasClass("flot-overlay")&&!t(this).hasClass("flot-base")}).remove(),d.css("position")=="static"&&d.css("position","relative"),A=new r("flot-base",d),M=new r("flot-overlay",d),E=A.context,U=M.context,O=t(M.element).unbind();var S=d.data("plot");S&&(S.shutdown(),M.clear()),d.data("plot",a)}function tt(){w.grid.hoverable&&(O.mousemove(Le),O.bind("mouseleave",Fi)),w.grid.clickable&&O.click(gi),o(n.bindEvents,[O])}function ot(){Ce&&clearTimeout(Ce),O.unbind("mousemove",Le),O.unbind("mouseleave",Fi),O.unbind("click",gi),o(n.shutdown,[O])}function X(S){function z(lt){return lt}var R,Q,ut=S.options.transform||z,ft=S.options.inverseTransform;S.direction=="x"?(R=S.scale=wt/Math.abs(ut(S.max)-ut(S.min)),Q=Math.min(ut(S.max),ut(S.min))):(R=S.scale=e/Math.abs(ut(S.max)-ut(S.min)),R=-R,Q=Math.max(ut(S.max),ut(S.min))),ut==z?S.p2c=function(lt){return(lt-Q)*R}:S.p2c=function(lt){return(ut(lt)-Q)*R},ft?S.c2p=function(lt){return ft(Q+lt/R)}:S.c2p=function(lt){return Q+lt/R}}function K(S){for(var z=S.options,R=S.ticks||[],Q=z.labelWidth||0,ut=z.labelHeight||0,ft=Q||(S.direction=="x"?Math.floor(A.width/(R.length||1)):null),lt=S.direction+"Axis "+S.direction+S.n+"Axis",rt="flot-"+S.direction+"-axis flot-"+S.direction+S.n+"-axis "+lt,et=z.font||"flot-tick-label tickLabel",vt=0;vt=0;--S)at(ft[S]);bt(),t.each(ft,function(lt,rt){st(rt)})}wt=A.width-G.left-G.right,e=A.height-G.bottom-G.top,t.each(z,function(lt,rt){X(rt)}),R&&Ze(),li()}function Ht(S){var z=S.options,R=+(z.min!=null?z.min:S.datamin),Q=+(z.max!=null?z.max:S.datamax),ut=Q-R;if(ut==0){var ft=Q==0?1:.01;z.min==null&&(R-=ft),(z.max==null||z.min!=null)&&(Q+=ft)}else{var lt=z.autoscaleMargin;lt!=null&&(z.min==null&&(R-=ut*lt,R<0&&S.datamin!=null&&S.datamin>=0&&(R=0)),z.max==null&&(Q+=ut*lt,Q>0&&S.datamax!=null&&S.datamax<=0&&(Q=0)))}S.min=R,S.max=Q}function Zt(S){var z=S.options,R;typeof z.ticks=="number"&&z.ticks>0?R=z.ticks:R=.3*Math.sqrt(S.direction=="x"?A.width:A.height);var Q=(S.max-S.min)/R,ut=-Math.floor(Math.log(Q)/Math.LN10),ft=z.tickDecimals;ft!=null&&ut>ft&&(ut=ft);var lt=Math.pow(10,-ut),rt=Q/lt,et;if(rt<1.5?et=1:rt<3?(et=2,rt>2.25&&(ft==null||ut+1<=ft)&&(et=2.5,++ut)):rt<7.5?et=5:et=10,et*=lt,z.minTickSize!=null&&et0&&(z.min==null&&(S.min=Math.min(S.min,_t[0])),z.max==null&&_t.length>1&&(S.max=Math.max(S.max,_t[_t.length-1]))),S.tickGenerator=function(kt){var Dt=[],Ft,Ut;for(Ut=0;Ut1&&/\..*0$/.test((Yt[1]-Yt[0]).toFixed(Mt))||(S.tickDecimals=Mt)}}}}function qt(S){var z=S.options.ticks,R=[];z==null||typeof z=="number"&&z>0?R=S.tickGenerator(S):z&&(t.isFunction(z)?R=z(S):R=z);var Q,ut;for(S.ticks=[],Q=0;Q1&&(ft=lt[1])):ut=+lt,ft==null&&(ft=S.tickFormatter(ut,S)),isNaN(ut)||S.ticks.push({v:ut,label:ft})}}function Kt(S,z){S.options.autoscaleMargin&&z.length>0&&(S.options.min==null&&(S.min=Math.min(S.min,z[0].v)),S.options.max==null&&z.length>1&&(S.max=Math.max(S.max,z[z.length-1].v)))}function Vt(){A.clear(),o(n.drawBackground,[E]);var S=w.grid;S.show&&S.backgroundColor&&ge(),S.show&&!S.aboveData&&Ne();for(var z=0;zut){var et=Q;Q=ut,ut=et}return{from:Q,to:ut,axis:R}}function ge(){E.save(),E.translate(G.left,G.top),E.fillStyle=fe(w.grid.backgroundColor,e,0,"rgba(255, 255, 255, 0)"),E.fillRect(0,0,wt,e),E.restore()}function Ne(){var S,z,R,Q;E.save(),E.translate(G.left,G.top);var ut=w.grid.markings;if(ut)for(t.isFunction(ut)&&(z=a.getAxes(),z.xmin=z.xaxis.min,z.xmax=z.xaxis.max,z.ymin=z.yaxis.min,z.ymax=z.yaxis.max,ut=ut(z)),S=0;Slt.axis.max||rt.tort.axis.max)){lt.from=Math.max(lt.from,lt.axis.min),lt.to=Math.min(lt.to,lt.axis.max),rt.from=Math.max(rt.from,rt.axis.min),rt.to=Math.min(rt.to,rt.axis.max);var et=lt.from===lt.to,vt=rt.from===rt.to;if(!(et&&vt))if(lt.from=Math.floor(lt.axis.p2c(lt.from)),lt.to=Math.floor(lt.axis.p2c(lt.to)),rt.from=Math.floor(rt.axis.p2c(rt.from)),rt.to=Math.floor(rt.axis.p2c(rt.to)),et||vt){var _t=ft.lineWidth||w.grid.markingsLineWidth,Mt=_t%2?.5:0;E.beginPath(),E.strokeStyle=ft.color||w.grid.markingsColor,E.lineWidth=_t,et?(E.moveTo(lt.to+Mt,rt.from),E.lineTo(lt.to+Mt,rt.to)):(E.moveTo(lt.from,rt.to+Mt),E.lineTo(lt.to,rt.to+Mt)),E.stroke()}else E.fillStyle=ft.color||w.grid.markingsColor,E.fillRect(lt.from,rt.to,lt.to-lt.from,rt.from-rt.to)}}z=P(),R=w.grid.borderWidth;for(var Yt=0;Ytkt.max||Ft=="full"&&(typeof R=="object"&&R[kt.position]>0||R>0)&&(Bt==kt.min||Bt==kt.max))&&(kt.direction=="x"?(Ut=kt.p2c(Bt),St=Ft=="full"?-e:Ft,kt.position=="top"&&(St=-St)):(Rt=kt.p2c(Bt),Ct=Ft=="full"?-wt:Ft,kt.position=="left"&&(Ct=-Ct)),E.lineWidth==1&&(kt.direction=="x"?Ut=Math.floor(Ut)+.5:Rt=Math.floor(Rt)+.5),E.moveTo(Ut,Rt),E.lineTo(Ut+Ct,Rt+St))}E.stroke()}}R&&(Q=w.grid.borderColor,typeof R=="object"||typeof Q=="object"?(typeof R!="object"&&(R={top:R,right:R,bottom:R,left:R}),typeof Q!="object"&&(Q={top:Q,right:Q,bottom:Q,left:Q}),R.top>0&&(E.strokeStyle=Q.top,E.lineWidth=R.top,E.beginPath(),E.moveTo(0-R.left,0-R.top/2),E.lineTo(wt,0-R.top/2),E.stroke()),R.right>0&&(E.strokeStyle=Q.right,E.lineWidth=R.right,E.beginPath(),E.moveTo(wt+R.right/2,0-R.top),E.lineTo(wt+R.right/2,e),E.stroke()),R.bottom>0&&(E.strokeStyle=Q.bottom,E.lineWidth=R.bottom,E.beginPath(),E.moveTo(wt+R.right,e+R.bottom/2),E.lineTo(0,e+R.bottom/2),E.stroke()),R.left>0&&(E.strokeStyle=Q.left,E.lineWidth=R.left,E.beginPath(),E.moveTo(0-R.left/2,e+R.bottom),E.lineTo(0-R.left/2,0),E.stroke())):(E.lineWidth=R,E.strokeStyle=w.grid.borderColor,E.strokeRect(-R/2,-R/2,wt+R,e+R))),E.restore()}function Ze(){t.each(P(),function(S,z){var R=z.box,Q=z.direction+"Axis "+z.direction+z.n+"Axis",ut="flot-"+z.direction+"-axis flot-"+z.direction+z.n+"-axis "+Q,ft=z.options.font||"flot-tick-label tickLabel",lt,rt,et,vt,_t;if(A.removeText(ut),!(!z.show||z.ticks.length==0))for(var Mt=0;Mtz.max)&&(z.direction=="x"?(vt="center",rt=G.left+z.p2c(lt.v),z.position=="bottom"?et=R.top+R.padding:(et=R.top+R.height-R.padding,_t="bottom")):(_t="middle",et=G.top+z.p2c(lt.v),z.position=="left"?(rt=R.left+R.width-R.padding,vt="right"):rt=R.left+R.padding),A.addText(ut,rt,et,lt.label,ft,null,null,vt,_t))})}function Gt(S){S.lines.show&&re(S),S.bars.show&&ii(S),S.points.show&&ke(S)}function re(S){function z(rt,et,vt,_t,Mt){var Yt=rt.points,kt=rt.pointsize,Dt=null,Ft=null;E.beginPath();for(var Ut=kt;Ut=Bt&&Ct>Mt.max){if(Bt>Mt.max)continue;Rt=(Mt.max-Ct)/(Bt-Ct)*(St-Rt)+Rt,Ct=Mt.max}else if(Bt>=Ct&&Bt>Mt.max){if(Ct>Mt.max)continue;St=(Mt.max-Ct)/(Bt-Ct)*(St-Rt)+Rt,Bt=Mt.max}if(Rt<=St&&Rt<_t.min){if(St<_t.min)continue;Ct=(_t.min-Rt)/(St-Rt)*(Bt-Ct)+Ct,Rt=_t.min}else if(St<=Rt&&St<_t.min){if(Rt<_t.min)continue;Bt=(_t.min-Rt)/(St-Rt)*(Bt-Ct)+Ct,St=_t.min}if(Rt>=St&&Rt>_t.max){if(St>_t.max)continue;Ct=(_t.max-Rt)/(St-Rt)*(Bt-Ct)+Ct,Rt=_t.max}else if(St>=Rt&&St>_t.max){if(Rt>_t.max)continue;Bt=(_t.max-Rt)/(St-Rt)*(Bt-Ct)+Ct,St=_t.max}(Rt!=Dt||Ct!=Ft)&&E.moveTo(_t.p2c(Rt)+et,Mt.p2c(Ct)+vt),Dt=St,Ft=Bt,E.lineTo(_t.p2c(St)+et,Mt.p2c(Bt)+vt)}}E.stroke()}function R(rt,et,vt){for(var _t=rt.points,Mt=rt.pointsize,Yt=Math.min(Math.max(0,vt.min),vt.max),kt=0,Dt,Ft=!1,Ut=1,Rt=0,Ct=0;!(Mt>0&&kt>_t.length+Mt);){kt+=Mt;var St=_t[kt-Mt],Bt=_t[kt-Mt+Ut],oe=_t[kt],he=_t[kt+Ut];if(Ft){if(Mt>0&&St!=null&&oe==null){Ct=kt,Mt=-Mt,Ut=2;continue}if(Mt<0&&kt==Rt+Mt){E.fill(),Ft=!1,Mt=-Mt,Ut=1,kt=Rt=Ct+Mt;continue}}if(!(St==null||oe==null)){if(St<=oe&&St=oe&&St>et.max){if(oe>et.max)continue;Bt=(et.max-St)/(oe-St)*(he-Bt)+Bt,St=et.max}else if(oe>=St&&oe>et.max){if(St>et.max)continue;he=(et.max-St)/(oe-St)*(he-Bt)+Bt,oe=et.max}if(Ft||(E.beginPath(),E.moveTo(et.p2c(St),vt.p2c(Yt)),Ft=!0),Bt>=vt.max&&he>=vt.max){E.lineTo(et.p2c(St),vt.p2c(vt.max)),E.lineTo(et.p2c(oe),vt.p2c(vt.max));continue}else if(Bt<=vt.min&&he<=vt.min){E.lineTo(et.p2c(St),vt.p2c(vt.min)),E.lineTo(et.p2c(oe),vt.p2c(vt.min));continue}var Ue=St,ri=oe;Bt<=he&&Bt=vt.min?(St=(vt.min-Bt)/(he-Bt)*(oe-St)+St,Bt=vt.min):he<=Bt&&he=vt.min&&(oe=(vt.min-Bt)/(he-Bt)*(oe-St)+St,he=vt.min),Bt>=he&&Bt>vt.max&&he<=vt.max?(St=(vt.max-Bt)/(he-Bt)*(oe-St)+St,Bt=vt.max):he>=Bt&&he>vt.max&&Bt<=vt.max&&(oe=(vt.max-Bt)/(he-Bt)*(oe-St)+St,he=vt.max),St!=Ue&&E.lineTo(et.p2c(Ue),vt.p2c(Bt)),E.lineTo(et.p2c(St),vt.p2c(Bt)),E.lineTo(et.p2c(oe),vt.p2c(he)),oe!=ri&&(E.lineTo(et.p2c(oe),vt.p2c(he)),E.lineTo(et.p2c(ri),vt.p2c(he)))}}}E.save(),E.translate(G.left,G.top),E.lineJoin="round";var Q=S.lines.lineWidth,ut=S.shadowSize;if(Q>0&&ut>0){E.lineWidth=ut,E.strokeStyle="rgba(0,0,0,0.1)";var ft=Math.PI/18;z(S.datapoints,Math.sin(ft)*(Q/2+ut/2),Math.cos(ft)*(Q/2+ut/2),S.xaxis,S.yaxis),E.lineWidth=ut/2,z(S.datapoints,Math.sin(ft)*(Q/2+ut/4),Math.cos(ft)*(Q/2+ut/4),S.xaxis,S.yaxis)}E.lineWidth=Q,E.strokeStyle=S.color;var lt=Pe(S.lines,S.color,0,e);lt&&(E.fillStyle=lt,R(S.datapoints,S.xaxis,S.yaxis)),Q>0&&z(S.datapoints,0,0,S.xaxis,S.yaxis),E.restore()}function ke(S){function z(rt,et,vt,_t,Mt,Yt,kt,Dt){for(var Ft=rt.points,Ut=rt.pointsize,Rt=0;RtYt.max||Stkt.max||(E.beginPath(),Ct=Yt.p2c(Ct),St=kt.p2c(St)+_t,Dt=="circle"?E.arc(Ct,St,et,0,Mt?Math.PI:Math.PI*2,!1):Dt(E,Ct,St,et,Mt),E.closePath(),vt&&(E.fillStyle=vt,E.fill()),E.stroke())}}E.save(),E.translate(G.left,G.top);var R=S.points.lineWidth,Q=S.shadowSize,ut=S.points.radius,ft=S.points.symbol;if(R==0&&(R=1e-4),R>0&&Q>0){var lt=Q/2;E.lineWidth=lt,E.strokeStyle="rgba(0,0,0,0.1)",z(S.datapoints,ut,null,lt+lt/2,!0,S.xaxis,S.yaxis,ft),E.strokeStyle="rgba(0,0,0,0.2)",z(S.datapoints,ut,null,lt/2,!0,S.xaxis,S.yaxis,ft)}E.lineWidth=R,E.strokeStyle=S.color,z(S.datapoints,ut,Pe(S.points,S.color),0,!1,S.xaxis,S.yaxis,ft),E.restore()}function ti(S,z,R,Q,ut,ft,lt,rt,et,vt,_t){var Mt,Yt,kt,Dt,Ft,Ut,Rt,Ct,St;vt?(Ct=Ut=Rt=!0,Ft=!1,Mt=R,Yt=S,Dt=z+Q,kt=z+ut,Ytlt.max||Dtrt.max)&&(Mtlt.max&&(Yt=lt.max,Ut=!1),ktrt.max&&(Dt=rt.max,Rt=!1),Mt=lt.p2c(Mt),kt=rt.p2c(kt),Yt=lt.p2c(Yt),Dt=rt.p2c(Dt),ft&&(et.fillStyle=ft(kt,Dt),et.fillRect(Mt,Dt,Yt-Mt,kt-Dt)),_t>0&&(Ft||Ut||Rt||Ct)&&(et.beginPath(),et.moveTo(Mt,kt),Ft?et.lineTo(Mt,Dt):et.moveTo(Mt,Dt),Rt?et.lineTo(Yt,Dt):et.moveTo(Yt,Dt),Ut?et.lineTo(Yt,kt):et.moveTo(Yt,kt),Ct?et.lineTo(Mt,kt):et.moveTo(Mt,kt),et.stroke()))}function ii(S){function z(ut,ft,lt,rt,et,vt){for(var _t=ut.points,Mt=ut.pointsize,Yt=0;Yt<_t.length;Yt+=Mt)_t[Yt]!=null&&ti(_t[Yt],_t[Yt+1],_t[Yt+2],ft,lt,rt,et,vt,E,S.bars.horizontal,S.bars.lineWidth)}E.save(),E.translate(G.left,G.top),E.lineWidth=S.bars.lineWidth,E.strokeStyle=S.color;var R;switch(S.bars.align){case"left":R=0;break;case"right":R=-S.bars.barWidth;break;default:R=-S.bars.barWidth/2}var Q=S.bars.fill?function(ut,ft){return Pe(S.bars,S.color,ut,ft)}:null;z(S.datapoints,R,R+S.bars.barWidth,Q,S.xaxis,S.yaxis),E.restore()}function Pe(S,z,R,Q){var ut=S.fill;if(!ut)return null;if(S.fillColor)return fe(S.fillColor,R,Q,z);var ft=t.color.parse(z);return ft.a=typeof ut=="number"?ut:.4,ft.normalize(),ft.toString()}function li(){if(w.legend.container!=null?t(w.legend.container).html(""):d.find(".legend").remove(),!!w.legend.show){for(var S=[],z=[],R=!1,Q=w.legend.labelFormatter,ut,ft,lt=0;lt"),S.push(""),R=!0),S.push('
'+et.label+"")}if(R&&S.push(""),S.length!=0){var vt=''+S.join("")+"
";if(w.legend.container!=null)t(w.legend.container).html(vt);else{var _t="",Mt=w.legend.position,Yt=w.legend.margin;Yt[0]==null&&(Yt=[Yt,Yt]),Mt.charAt(0)=="n"?_t+="top:"+(Yt[1]+G.top)+"px;":Mt.charAt(0)=="s"&&(_t+="bottom:"+(Yt[1]+G.bottom)+"px;"),Mt.charAt(1)=="e"?_t+="right:"+(Yt[0]+G.right)+"px;":Mt.charAt(1)=="w"&&(_t+="left:"+(Yt[0]+G.left)+"px;");var kt=t('
'+vt.replace('style="','style="position:absolute;'+_t+";")+"
").appendTo(d);if(w.legend.backgroundOpacity!=0){var Dt=w.legend.backgroundColor;Dt==null&&(Dt=w.grid.backgroundColor,Dt&&typeof Dt=="string"?Dt=t.color.parse(Dt):Dt=t.color.extract(kt,"background-color"),Dt.a=1,Dt=Dt.toString());var Ft=kt.children();t('
').prependTo(kt).css("opacity",w.legend.backgroundOpacity)}}}}}var _e=[],Ce=null;function be(S,z,R){var Q=w.grid.mouseActiveRadius,ut=Q*Q+1,ft=null,lt=!1,rt,et,vt;for(rt=x.length-1;rt>=0;--rt)if(R(x[rt])){var _t=x[rt],Mt=_t.xaxis,Yt=_t.yaxis,kt=_t.datapoints.points,Dt=Mt.c2p(S),Ft=Yt.c2p(z),Ut=Q/Mt.scale,Rt=Q/Yt.scale;if(vt=_t.datapoints.pointsize,Mt.options.inverseTransform&&(Ut=Number.MAX_VALUE),Yt.options.inverseTransform&&(Rt=Number.MAX_VALUE),_t.lines.show||_t.points.show)for(et=0;etUt||Ct-Dt<-Ut||St-Ft>Rt||St-Ft<-Rt)){var Bt=Math.abs(Mt.p2c(Ct)-S),oe=Math.abs(Yt.p2c(St)-z),he=Bt*Bt+oe*oe;he=Math.min(ci,Ct)&&Ft>=St+Ue&&Ft<=St+ri:Dt>=Ct+Ue&&Dt<=Ct+ri&&Ft>=Math.min(ci,St)&&Ft<=Math.max(ci,St))&&(ft=[rt,et/vt])}}}return ft?(rt=ft[0],et=ft[1],vt=x[rt].datapoints.pointsize,{datapoint:x[rt].datapoints.points.slice(et*vt,(et+1)*vt),dataIndex:et,series:x[rt],seriesIndex:rt}):null}function Le(S){w.grid.hoverable&&We("plothover",S,function(z){return z.hoverable!=!1})}function Fi(S){w.grid.hoverable&&We("plothover",S,function(z){return!1})}function gi(S){We("plotclick",S,function(z){return z.clickable!=!1})}function We(S,z,R){var Q=O.offset(),ut=z.pageX-Q.left-G.left,ft=z.pageY-Q.top-G.top,lt=L({left:ut,top:ft});lt.pageX=z.pageX,lt.pageY=z.pageY;var rt=be(ut,ft,R);if(rt&&(rt.pageX=parseInt(rt.series.xaxis.p2c(rt.datapoint[0])+Q.left+G.left,10),rt.pageY=parseInt(rt.series.yaxis.p2c(rt.datapoint[1])+Q.top+G.top,10)),w.grid.autoHighlight){for(var et=0;et<_e.length;++et){var vt=_e[et];vt.auto==S&&!(rt&&vt.series==rt.series&&vt.point[0]==rt.datapoint[0]&&vt.point[1]==rt.datapoint[1])&&ni(vt.series,vt.point)}rt&&ei(rt.series,rt.datapoint,S)}d.trigger(S,[lt,rt])}function vi(){var S=w.interaction.redrawOverlayInterval;if(S==-1){Qi();return}Ce||(Ce=setTimeout(Qi,S))}function Qi(){Ce=null,U.save(),M.clear(),U.translate(G.left,G.top);var S,z;for(S=0;S<_e.length;++S)z=_e[S],z.series.bars.show?ce(z.series,z.point):Xe(z.series,z.point);U.restore(),o(n.drawOverlay,[U])}function ei(S,z,R){if(typeof S=="number"&&(S=x[S]),typeof z=="number"){var Q=S.datapoints.pointsize;z=S.datapoints.points.slice(Q*z,Q*(z+1))}var ut=He(S,z);ut==-1?(_e.push({series:S,point:z,auto:R}),vi()):R||(_e[ut].auto=!1)}function ni(S,z){if(S==null&&z==null){_e=[],vi();return}if(typeof S=="number"&&(S=x[S]),typeof z=="number"){var R=S.datapoints.pointsize;z=S.datapoints.points.slice(R*z,R*(z+1))}var Q=He(S,z);Q!=-1&&(_e.splice(Q,1),vi())}function He(S,z){for(var R=0;R<_e.length;++R){var Q=_e[R];if(Q.series==S&&Q.point[0]==z[0]&&Q.point[1]==z[1])return R}return-1}function Xe(S,z){var R=z[0],Q=z[1],ut=S.xaxis,ft=S.yaxis,lt=typeof S.highlightColor=="string"?S.highlightColor:t.color.parse(S.color).scale("a",.5).toString();if(!(Rut.max||Qft.max)){var rt=S.points.radius+S.points.lineWidth/2;U.lineWidth=rt,U.strokeStyle=lt;var et=1.5*rt;R=ut.p2c(R),Q=ft.p2c(Q),U.beginPath(),S.points.symbol=="circle"?U.arc(R,Q,et,0,2*Math.PI,!1):S.points.symbol(U,R,Q,et,!1),U.closePath(),U.stroke()}}function ce(S,z){var R=typeof S.highlightColor=="string"?S.highlightColor:t.color.parse(S.color).scale("a",.5).toString(),Q=R,ut;switch(S.bars.align){case"left":ut=0;break;case"right":ut=-S.bars.barWidth;break;default:ut=-S.bars.barWidth/2}U.lineWidth=S.bars.lineWidth,U.strokeStyle=R,ti(z[0],z[1],z[2]||0,ut,ut+S.bars.barWidth,function(){return Q},S.xaxis,S.yaxis,U,S.bars.horizontal,S.bars.lineWidth)}function fe(S,z,R,Q){if(typeof S=="string")return S;for(var ut=E.createLinearGradient(0,R,0,z),ft=0,lt=S.colors.length;ftWs});Vg=_u(xu());qg(ku,_u(xu()));bu=Vg,{default:wu}=bu,Yg=Ri(bu,["default"]),Ws=wu!==void 0?wu:Yg});var Cu={};oo(Cu,{default:()=>Ws});var Su=zi(()=>{Us();Us()});var Gg,Vs,Kg,Xg,Jg,Qg,Zg,tv,qs,ev,Au,$u,Du,iv,Tu,Eu,nv,Ys,Gs=zi(()=>{Gg=Object.create,Vs=Object.defineProperty,Kg=Object.getOwnPropertyDescriptor,Xg=Object.getOwnPropertyNames,Jg=Object.getPrototypeOf,Qg=Object.prototype.hasOwnProperty,Zg=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),tv=(t,i)=>{for(var r in i)Vs(t,r,{get:i[r],enumerable:!0})},qs=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Xg(i))!Qg.call(t,c)&&c!==r&&Vs(t,c,{get:()=>i[c],enumerable:!(l=Kg(i,c))||l.enumerable});return t},ev=(t,i,r)=>(qs(t,i,"default"),r&&qs(r,i,"default")),Au=(t,i,r)=>(r=t!=null?Gg(Jg(t)):{},qs(i||!t||!t.__esModule?Vs(r,"default",{value:t,enumerable:!0}):r,t)),$u=Zg(()=>{(function(t){var i={xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}};function r(A,M){return M*Math.floor(A/M)}function l(A,M,O,E){if(typeof A.strftime=="function")return A.strftime(M);var U=function(o,h){return o=""+o,h=""+(h!=null?h:"0"),o.length==1?h+o:o},Y=[],ct=!1,G=A.getHours(),wt=G<12;O==null&&(O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),E==null&&(E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);var e;G>12?e=G-12:G==0?e=12:e=G;for(var n=0;n=e);++a);var o=n[a][0],h=n[a][1];if(h=="year"){if(Y.minTickSize!=null&&Y.minTickSize[1]=="year")o=Math.floor(Y.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(ct.delta/f.year)/Math.LN10)),y=ct.delta/f.year/p;y<1.5?o=1:y<3?o=2:y<7.5?o=5:o=10,o*=p}o<1&&(o=1)}ct.tickSize=Y.tickSize||[o,h];var C=ct.tickSize[0];h=ct.tickSize[1];var D=C*f[h];h=="second"?wt.setSeconds(r(wt.getSeconds(),C)):h=="minute"?wt.setMinutes(r(wt.getMinutes(),C)):h=="hour"?wt.setHours(r(wt.getHours(),C)):h=="month"?wt.setMonth(r(wt.getMonth(),C)):h=="quarter"?wt.setMonth(3*r(wt.getMonth()/3,C)):h=="year"&&wt.setFullYear(r(wt.getFullYear(),C)),wt.setMilliseconds(0),D>=f.minute&&wt.setSeconds(0),D>=f.hour&&wt.setMinutes(0),D>=f.day&&wt.setHours(0),D>=f.day*4&&wt.setDate(1),D>=f.month*2&&wt.setMonth(r(wt.getMonth(),3)),D>=f.quarter*2&&wt.setMonth(r(wt.getMonth(),6)),D>=f.year&&wt.setMonth(0);var P=0,L=Number.NaN,J;do if(J=L,L=wt.getTime(),G.push(L),h=="month"||h=="quarter")if(C<1){wt.setDate(1);var dt=wt.getTime();wt.setMonth(wt.getMonth()+(h=="quarter"?3:1));var Et=wt.getTime();wt.setTime(L+P*f.hour+(Et-dt)*C),P=wt.getHours(),wt.setHours(0)}else wt.setMonth(wt.getMonth()+C*(h=="quarter"?3:1));else h=="year"?wt.setFullYear(wt.getFullYear()+C):wt.setTime(L+D);while(LYs});iv=Au($u());ev(Du,Au($u()));Tu=iv,{default:Eu}=Tu,nv=Ri(Tu,["default"]),Ys=Eu!==void 0?Eu:nv});var Mu={};oo(Mu,{default:()=>Ys});var Iu=zi(()=>{Gs();Gs()});var ov,Xs,rv,av,sv,lv,cv,hv,Ks,uv,Nu,Ru,zu,dv,Pu,Ou,pv,Js,Qs=zi(()=>{ov=Object.create,Xs=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,av=Object.getOwnPropertyNames,sv=Object.getPrototypeOf,lv=Object.prototype.hasOwnProperty,cv=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),hv=(t,i)=>{for(var r in i)Xs(t,r,{get:i[r],enumerable:!0})},Ks=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of av(i))!lv.call(t,c)&&c!==r&&Xs(t,c,{get:()=>i[c],enumerable:!(l=rv(i,c))||l.enumerable});return t},uv=(t,i,r)=>(Ks(t,i,"default"),r&&Ks(r,i,"default")),Nu=(t,i,r)=>(r=t!=null?ov(sv(t)):{},Ks(i||!t||!t.__esModule?Xs(r,"default",{value:t,enumerable:!0}):r,t)),Ru=cv(()=>{(function(t){var i={series:{stack:null}};function r(l){function c(f,g){for(var b=null,x=0;x2&&(a?b.format[2].x:b.format[2].y),h=n&&g.lines.steps,p=!0,y=a?1:0,C=a?0:1,D=0,P=0,L,J;!(D>=A.length);){if(L=E.length,A[D]==null){for(J=0;J=O.length){if(!n)for(J=0;JG){if(n&&D>0&&A[D-w]!=null){for(ct=Y+(A[D-w+C]-Y)*(G-U)/(A[D-w+y]-U),E.push(G),E.push(ct+wt),J=2;J0&&O[P-M]!=null&&(e=wt+(O[P-M+C]-wt)*(U-G)/(O[P-M+y]-G)),E[L+C]+=e,D+=w}p=!1,L!=E.length&&o&&(E[L+2]+=e)}if(h&&L!=E.length&&L>0&&E[L]!=null&&E[L]!=E[L-w]&&E[L+1]!=E[L-w+1]){for(J=0;JJs});dv=Nu(Ru());uv(zu,Nu(Ru()));Pu=dv,{default:Ou}=Pu,pv=Ri(Pu,["default"]),Js=Ou!==void 0?Ou:pv});var Lu={};oo(Lu,{default:()=>Js});var Hu=zi(()=>{Qs();Qs()});var fv,tl,mv,gv,vv,yv,bv,wv,Zs,_v,Fu,Wu,Uu,xv,Bu,ju,kv,el,il=zi(()=>{fv=Object.create,tl=Object.defineProperty,mv=Object.getOwnPropertyDescriptor,gv=Object.getOwnPropertyNames,vv=Object.getPrototypeOf,yv=Object.prototype.hasOwnProperty,bv=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),wv=(t,i)=>{for(var r in i)tl(t,r,{get:i[r],enumerable:!0})},Zs=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of gv(i))!yv.call(t,c)&&c!==r&&tl(t,c,{get:()=>i[c],enumerable:!(l=mv(i,c))||l.enumerable});return t},_v=(t,i,r)=>(Zs(t,i,"default"),r&&Zs(r,i,"default")),Fu=(t,i,r)=>(r=t!=null?fv(vv(t)):{},Zs(i||!t||!t.__esModule?tl(r,"default",{value:t,enumerable:!0}):r,t)),Wu=bv(()=>{(function(t){typeof define=="function"&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function i(e,n){var a,o,h,p=e.nodeName.toLowerCase();return p==="area"?(a=e.parentNode,o=a.name,e.href&&o&&a.nodeName.toLowerCase()==="map"?(h=t("img[usemap='#"+o+"']")[0],!!h&&r(h)):!1):(/input|select|textarea|button|object/.test(p)?!e.disabled:p==="a"&&e.href||n)&&r(e)}function r(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return t.css(this,"visibility")==="hidden"}).length}function l(e){for(var n,a;e.length&&e[0]!==document;){if(n=e.css("position"),(n==="absolute"||n==="relative"||n==="fixed")&&(a=parseInt(e.css("zIndex"),10),!isNaN(a)&&a!==0))return a;e=e.parent()}return 0}function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=d(t("
"))}function d(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(n,"mouseout",function(){t(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(n,"mouseover",f)}function f(){t.datepicker._isDisabledDatepicker(ct.inline?ct.dpDiv.parent()[0]:ct.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).addClass("ui-datepicker-next-hover"))}function g(e,n){t.extend(e,n);for(var a in n)n[a]==null&&(e[a]=n[a]);return e}function b(e){return function(){var n=this.element.val();e.apply(this,arguments),this._refresh(),n!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var n=this.css("position"),a=n==="absolute",o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,h=this.parents().filter(function(){var p=t(this);return a&&p.css("position")==="static"?!1:o.test(p.css("overflow")+p.css("overflow-y")+p.css("overflow-x"))}).eq(0);return n!=="fixed"&&h.length?h:t(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,a){return!!t.data(e,a[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),a=isNaN(n);return(a||n>=0)&&i(e,!a)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(e,n){function a(y,C,D,P){return t.each(o,function(){C-=parseFloat(t.css(y,"padding"+this))||0,D&&(C-=parseFloat(t.css(y,"border"+this+"Width"))||0),P&&(C-=parseFloat(t.css(y,"margin"+this))||0)}),C}var o=n==="Width"?["Left","Right"]:["Top","Bottom"],h=n.toLowerCase(),p={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(y){return y===void 0?p["inner"+n].call(this):this.each(function(){t(this).css(h,a(this,y)+"px")})},t.fn["outer"+n]=function(y,C){return typeof y!="number"?p["outer"+n].call(this,y):this.each(function(){t(this).css(h,a(this,y,!0,C)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(n,a){return typeof n=="number"?this.each(function(){var o=this;setTimeout(function(){t(o).focus(),a&&a.call(o)},n)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(e!==void 0)return this.css("zIndex",e);if(this.length)for(var n,a,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css("position"),(n==="absolute"||n==="relative"||n==="fixed")&&(a=parseInt(o.css("zIndex"),10),!isNaN(a)&&a!==0))return a;o=o.parent()}return 0}}),t.ui.plugin={add:function(e,n,a){var o,h=t.ui[e].prototype;for(o in a)h.plugins[o]=h.plugins[o]||[],h.plugins[o].push([n,a[o]])},call:function(e,n,a,o){var h,p=e.plugins[n];if(p&&(o||e.element[0].parentNode&&e.element[0].parentNode.nodeType!==11))for(h=0;p.length>h;h++)e.options[p[h][0]]&&p[h][1].apply(e.element,a)}};var x=0,w=Array.prototype.slice;t.cleanData=function(e){return function(n){var a,o,h;for(h=0;(o=n[h])!=null;h++)try{a=t._data(o,"events"),a&&a.remove&&t(o).triggerHandler("remove")}catch(p){}e(n)}}(t.cleanData),t.widget=function(e,n,a){var o,h,p,y,C={},D=e.split(".")[0];return e=e.split(".")[1],o=D+"-"+e,a||(a=n,n=t.Widget),t.expr[":"][o.toLowerCase()]=function(P){return!!t.data(P,o)},t[D]=t[D]||{},h=t[D][e],p=t[D][e]=function(P,L){return this._createWidget?(arguments.length&&this._createWidget(P,L),void 0):new p(P,L)},t.extend(p,h,{version:a.version,_proto:t.extend({},a),_childConstructors:[]}),y=new n,y.options=t.widget.extend({},y.options),t.each(a,function(P,L){return t.isFunction(L)?(C[P]=function(){var J=function(){return n.prototype[P].apply(this,arguments)},dt=function(Et){return n.prototype[P].apply(this,Et)};return function(){var Et,V=this._super,N=this._superApply;return this._super=J,this._superApply=dt,Et=L.apply(this,arguments),this._super=V,this._superApply=N,Et}}(),void 0):(C[P]=L,void 0)}),p.prototype=t.widget.extend(y,{widgetEventPrefix:h&&y.widgetEventPrefix||e},C,{constructor:p,namespace:D,widgetName:e,widgetFullName:o}),h?(t.each(h._childConstructors,function(P,L){var J=L.prototype;t.widget(J.namespace+"."+J.widgetName,p,L._proto)}),delete h._childConstructors):n._childConstructors.push(p),t.widget.bridge(e,p),p},t.widget.extend=function(e){for(var n,a,o=w.call(arguments,1),h=0,p=o.length;p>h;h++)for(n in o[h])a=o[h][n],o[h].hasOwnProperty(n)&&a!==void 0&&(e[n]=t.isPlainObject(a)?t.isPlainObject(e[n])?t.widget.extend({},e[n],a):t.widget.extend({},a):a);return e},t.widget.bridge=function(e,n){var a=n.prototype.widgetFullName||e;t.fn[e]=function(o){var h=typeof o=="string",p=w.call(arguments,1),y=this;return o=!h&&p.length?t.widget.extend.apply(null,[o].concat(p)):o,h?this.each(function(){var C,D=t.data(this,a);return o==="instance"?(y=D,!1):D?t.isFunction(D[o])&&o.charAt(0)!=="_"?(C=D[o].apply(D,p),C!==D&&C!==void 0?(y=C&&C.jquery?y.pushStack(C.get()):C,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var C=t.data(this,a);C?(C.option(o||{}),C._init&&C._init()):t.data(this,a,new n(o,this))}),y}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=x++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var a,o,h,p=e;if(arguments.length===0)return t.widget.extend({},this.options);if(typeof e=="string")if(p={},a=e.split("."),e=a.shift(),a.length){for(o=p[e]=t.widget.extend({},this.options[e]),h=0;a.length-1>h;h++)o[a[h]]=o[a[h]]||{},o=o[a[h]];if(e=a.pop(),arguments.length===1)return o[e]===void 0?null:o[e];o[e]=n}else{if(arguments.length===1)return this.options[e]===void 0?null:this.options[e];p[e]=n}return this._setOptions(p),this},_setOptions:function(e){var n;for(n in e)this._setOption(n,e[n]);return this},_setOption:function(e,n){return this.options[e]=n,e==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!n),n&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,n,a){var o,h=this;typeof e!="boolean"&&(a=n,n=e,e=!1),a?(n=o=t(n),this.bindings=this.bindings.add(n)):(a=n,n=this.element,o=this.widget()),t.each(a,function(p,y){function C(){return e||h.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?(typeof y=="string"?h[y]:y).apply(h,arguments):void 0}typeof y!="string"&&(C.guid=y.guid=y.guid||C.guid||t.guid++);var D=p.match(/^([\w:-]*)\s*(.*)$/),P=D[1]+h.eventNamespace,L=D[2];L?o.delegate(L,P,C):n.bind(P,C)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(n).undelegate(n)},_delay:function(e,n){function a(){return(typeof e=="string"?o[e]:e).apply(o,arguments)}var o=this;return setTimeout(a,n||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(n){t(n.currentTarget).addClass("ui-state-hover")},mouseleave:function(n){t(n.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(n){t(n.currentTarget).addClass("ui-state-focus")},focusout:function(n){t(n.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,n,a){var o,h,p=this.options[e];if(a=a||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],h=n.originalEvent)for(o in h)o in n||(n[o]=h[o]);return this.element.trigger(n,a),!(t.isFunction(p)&&p.apply(this.element[0],[n].concat(a))===!1||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(a,o,h){typeof o=="string"&&(o={effect:o});var p,y=o?o===!0||typeof o=="number"?n:o.effect||n:e;o=o||{},typeof o=="number"&&(o={duration:o}),p=!t.isEmptyObject(o),o.complete=h,o.delay&&a.delay(o.delay),p&&t.effects&&t.effects.effect[y]?a[e](o):y!==e&&a[y]?a[y](o.duration,o.easing,h):a.queue(function(C){t(this)[e](),h&&h.call(a[0]),C()})}}),t.widget;var A=!1;t(document).mouseup(function(){A=!1}),t.widget("ui.mouse",{version:"1.11.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(n){return e._mouseDown(n)}).bind("click."+this.widgetName,function(n){return t.data(n.target,e.widgetName+".preventClickEvent")===!0?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!A){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,a=e.which===1,o=typeof this.options.cancel=="string"&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return a&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(t.data(e.target,this.widgetName+".preventClickEvent")===!0&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(h){return n._mouseMove(h)},this._mouseUpDelegate=function(h){return n._mouseUp(h)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),A=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):e.which?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),A=!1,!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function e(V,N,tt){return[parseFloat(V[0])*(dt.test(V[0])?N/100:1),parseFloat(V[1])*(dt.test(V[1])?tt/100:1)]}function n(V,N){return parseInt(t.css(V,N),10)||0}function a(V){var N=V[0];return N.nodeType===9?{width:V.width(),height:V.height(),offset:{top:0,left:0}}:t.isWindow(N)?{width:V.width(),height:V.height(),offset:{top:V.scrollTop(),left:V.scrollLeft()}}:N.preventDefault?{width:0,height:0,offset:{top:N.pageY,left:N.pageX}}:{width:V.outerWidth(),height:V.outerHeight(),offset:V.offset()}}t.ui=t.ui||{};var o,h,p=Math.max,y=Math.abs,C=Math.round,D=/left|center|right/,P=/top|center|bottom/,L=/[\+\-]\d+(\.[\d]+)?%?/,J=/^\w+/,dt=/%$/,Et=t.fn.position;t.position={scrollbarWidth:function(){if(o!==void 0)return o;var V,N,tt=t("
"),ot=tt.children()[0];return t("body").append(tt),V=ot.offsetWidth,tt.css("overflow","scroll"),N=ot.offsetWidth,V===N&&(N=tt[0].clientWidth),tt.remove(),o=V-N},getScrollInfo:function(V){var N=V.isWindow||V.isDocument?"":V.element.css("overflow-x"),tt=V.isWindow||V.isDocument?"":V.element.css("overflow-y"),ot=N==="scroll"||N==="auto"&&V.widthli?"left":Pe>0?"right":"center",vertical:0>Ce?"top":_e>0?"bottom":"middle"};we>tt&&tt>y(Pe+li)&&(be.horizontal="center"),ge>ot&&ot>y(_e+Ce)&&(be.vertical="middle"),be.important=p(y(Pe),y(li))>p(y(_e),y(Ce))?"horizontal":"vertical",V.using.call(this,ii,be)}),Vt.offset(t.extend(ke,{using:Kt}))})},t.ui.position={fit:{left:function(V,N){var tt,ot=N.within,X=ot.isWindow?ot.scrollLeft:ot.offset.left,K=ot.width,at=V.left-N.collisionPosition.marginLeft,st=X-at,bt=at+N.collisionWidth-K-X;N.collisionWidth>K?st>0&&0>=bt?(tt=V.left+st+N.collisionWidth-K-X,V.left+=st-tt):V.left=bt>0&&0>=st?X:st>bt?X+K-N.collisionWidth:X:st>0?V.left+=st:bt>0?V.left-=bt:V.left=p(V.left-at,V.left)},top:function(V,N){var tt,ot=N.within,X=ot.isWindow?ot.scrollTop:ot.offset.top,K=N.within.height,at=V.top-N.collisionPosition.marginTop,st=X-at,bt=at+N.collisionHeight-K-X;N.collisionHeight>K?st>0&&0>=bt?(tt=V.top+st+N.collisionHeight-K-X,V.top+=st-tt):V.top=bt>0&&0>=st?X:st>bt?X+K-N.collisionHeight:X:st>0?V.top+=st:bt>0?V.top-=bt:V.top=p(V.top-at,V.top)}},flip:{left:function(V,N){var tt,ot,X=N.within,K=X.offset.left+X.scrollLeft,at=X.width,st=X.isWindow?X.scrollLeft:X.offset.left,bt=V.left-N.collisionPosition.marginLeft,$t=bt-st,Ht=bt+N.collisionWidth-at-st,Zt=N.my[0]==="left"?-N.elemWidth:N.my[0]==="right"?N.elemWidth:0,qt=N.at[0]==="left"?N.targetWidth:N.at[0]==="right"?-N.targetWidth:0,Kt=-2*N.offset[0];0>$t?(tt=V.left+Zt+qt+Kt+N.collisionWidth-at-K,(0>tt||y($t)>tt)&&(V.left+=Zt+qt+Kt)):Ht>0&&(ot=V.left-N.collisionPosition.marginLeft+Zt+qt+Kt-st,(ot>0||Ht>y(ot))&&(V.left+=Zt+qt+Kt))},top:function(V,N){var tt,ot,X=N.within,K=X.offset.top+X.scrollTop,at=X.height,st=X.isWindow?X.scrollTop:X.offset.top,bt=V.top-N.collisionPosition.marginTop,$t=bt-st,Ht=bt+N.collisionHeight-at-st,Zt=N.my[1]==="top",qt=Zt?-N.elemHeight:N.my[1]==="bottom"?N.elemHeight:0,Kt=N.at[1]==="top"?N.targetHeight:N.at[1]==="bottom"?-N.targetHeight:0,Vt=-2*N.offset[1];0>$t?(ot=V.top+qt+Kt+Vt+N.collisionHeight-at-K,V.top+qt+Kt+Vt>$t&&(0>ot||y($t)>ot)&&(V.top+=qt+Kt+Vt)):Ht>0&&(tt=V.top-N.collisionPosition.marginTop+qt+Kt+Vt-st,V.top+qt+Kt+Vt>Ht&&(tt>0||Ht>y(tt))&&(V.top+=qt+Kt+Vt))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var V,N,tt,ot,X,K=document.getElementsByTagName("body")[0],at=document.createElement("div");V=document.createElement(K?"div":"body"),tt={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},K&&t.extend(tt,{position:"absolute",left:"-1000px",top:"-1000px"});for(X in tt)V.style[X]=tt[X];V.appendChild(at),N=K||document.documentElement,N.insertBefore(V,N.firstChild),at.style.cssText="position: absolute; left: 10.7432222px;",ot=t(at).offset().left,h=ot>10&&11>ot,V.innerHTML="",N.removeChild(V)}()}(),t.ui.position,t.widget("ui.accordion",{version:"1.11.1",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&e.active!=null||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),this.options.heightStyle!=="content"&&e.css("height","")},_setOption:function(e,n){return e==="active"?(this._activate(n),void 0):(e==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(n)),this._super(e,n),e!=="collapsible"||n||this.options.active!==!1||this._activate(0),e==="icons"&&(this._destroyIcons(),n&&this._createIcons()),e==="disabled"&&(this.element.toggleClass("ui-state-disabled",!!n).attr("aria-disabled",n),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!n)),void 0)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,a=this.headers.length,o=this.headers.index(e.target),h=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:h=this.headers[(o+1)%a];break;case n.LEFT:case n.UP:h=this.headers[(o-1+a)%a];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:h=this.headers[0];break;case n.END:h=this.headers[a-1]}h&&(t(e.target).attr("tabIndex",-1),t(h).attr("tabIndex",0),h.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var e,n=this.options,a=n.heightStyle,o=this.element.parent();this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var h=t(this),p=h.uniqueId().attr("id"),y=h.next(),C=y.uniqueId().attr("id");h.attr("aria-controls",C),y.attr("aria-labelledby",p)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),a==="fill"?(e=o.height(),this.element.siblings(":visible").each(function(){var h=t(this),p=h.css("position");p!=="absolute"&&p!=="fixed"&&(e-=h.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):a==="auto"&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return typeof e=="number"?this.headers.eq(e):t()},_setupEvents:function(e){var n={keydown:"_keydown"};e&&t.each(e.split(" "),function(a,o){n[o]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var n=this.options,a=this.active,o=t(e.currentTarget),h=o[0]===a[0],p=h&&n.collapsible,y=p?t():o.next(),C=a.next(),D={oldHeader:a,oldPanel:C,newHeader:p?t():o,newPanel:y};e.preventDefault(),h&&!n.collapsible||this._trigger("beforeActivate",e,D)===!1||(n.active=p?!1:this.headers.index(o),this.active=h?t():o,this._toggle(D),a.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&a.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),h||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&o.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,a=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=a,this.options.animate?this._animate(n,a,e):(a.hide(),n.show(),this._toggleComplete(e)),a.attr({"aria-hidden":"true"}),a.prev().attr("aria-selected","false"),n.length&&a.length?a.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return t(this).attr("tabIndex")===0}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(e,n,a){var o,h,p,y=this,C=0,D=e.length&&(!n.length||e.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target);!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var n=t(e.currentTarget);n.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,n){var a=this.active||this.element.find(this.options.items).eq(0);n||this.focus(e,a)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function n(D){return D.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var a,o,h,p,y,C=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:C=!1,o=this.previousFilter||"",h=String.fromCharCode(e.keyCode),p=!1,clearTimeout(this.filterTimer),h===o?p=!0:h=o+h,y=RegExp("^"+n(h),"i"),a=this.activeMenu.find(this.options.items).filter(function(){return y.test(t(this).text())}),a=p&&a.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):a,a.length||(h=String.fromCharCode(e.keyCode),y=RegExp("^"+n(h),"i"),a=this.activeMenu.find(this.options.items).filter(function(){return y.test(t(this).text())})),a.length?(this.focus(e,a),a.length>1?(this.previousFilter=h,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}C&&e.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(e):this.select(e))},refresh:function(){var e,n,a=this,o=this.options.icons.submenu,h=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),h.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var p=t(this),y=p.parent(),C=t("").addClass("ui-menu-icon ui-icon "+o).data("ui-menu-submenu-carat",!0);y.attr("aria-haspopup","true").prepend(C),p.attr("aria-labelledby",y.attr("id"))}),e=h.add(this.element),n=e.find(this.options.items),n.not(".ui-menu-item").each(function(){var p=t(this);a._isDivider(p)&&p.addClass("ui-widget-content ui-menu-divider")}),n.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,n){e==="icons"&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(n.submenu),e==="disabled"&&this.element.toggleClass("ui-state-disabled",!!n).attr("aria-disabled",n),this._super(e,n)},focus:function(e,n){var a,o;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(n),this.active=n.first(),o=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",o.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),a=n.children(".ui-menu"),a.length&&e&&/^mouse/.test(e.type)&&this._startOpening(a),this.activeMenu=n.parent(),this._trigger("focus",e,{item:n})},_scrollIntoView:function(e){var n,a,o,h,p,y;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,a=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-n-a,h=this.activeMenu.scrollTop(),p=this.activeMenu.height(),y=e.outerHeight(),0>o?this.activeMenu.scrollTop(h+o):o+y>p&&this.activeMenu.scrollTop(h+o-p+y))},blur:function(e,n){n||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),e.attr("aria-hidden")==="true"&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var a=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));a.length||(a=this.element),this._close(a),this.blur(e),this.activeMenu=a},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var n=this.active&&this.active.parent().closest(".ui-menu-item",this.element);n&&n.length&&(this._close(),this.focus(e,n))},expand:function(e){var n=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();n&&n.length&&(this._open(n.parent()),this._delay(function(){this.focus(e,n)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,n,a){var o;this.active&&(o=e==="first"||e==="last"?this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),o&&o.length&&this.active||(o=this.activeMenu.find(this.options.items)[n]()),this.focus(a,o)},nextPage:function(e){var n,a,o;return this.active?(this.isLastItem()||(this._hasScroll()?(a=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),0>n.offset().top-a-o}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var n,a,o;return this.active?(this.isFirstItem()||(this._hasScroll()?(a=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-a+o>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,a,o=this.element[0].nodeName.toLowerCase(),h=o==="textarea",p=o==="input";this.isMultiLine=h?!0:p?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[h||p?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(y){if(this.element.prop("readOnly"))return e=!0,a=!0,n=!0,void 0;e=!1,a=!1,n=!1;var C=t.ui.keyCode;switch(y.keyCode){case C.PAGE_UP:e=!0,this._move("previousPage",y);break;case C.PAGE_DOWN:e=!0,this._move("nextPage",y);break;case C.UP:e=!0,this._keyEvent("previous",y);break;case C.DOWN:e=!0,this._keyEvent("next",y);break;case C.ENTER:this.menu.active&&(e=!0,y.preventDefault(),this.menu.select(y));break;case C.TAB:this.menu.active&&this.menu.select(y);break;case C.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(y),y.preventDefault());break;default:n=!0,this._searchTimeout(y)}},keypress:function(y){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&y.preventDefault(),void 0;if(!n){var C=t.ui.keyCode;switch(y.keyCode){case C.PAGE_UP:this._move("previousPage",y);break;case C.PAGE_DOWN:this._move("nextPage",y);break;case C.UP:this._keyEvent("previous",y);break;case C.DOWN:this._keyEvent("next",y)}}},input:function(y){return a?(a=!1,y.preventDefault(),void 0):(this._searchTimeout(y),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(y){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(y),this._change(y),void 0)}}),this._initSource(),this.menu=t("
    ").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(y){y.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var C=this.menu.element[0];t(y.target).closest(".ui-menu-item").length||this._delay(function(){var D=this;this.document.one("mousedown",function(P){P.target===D.element[0]||P.target===C||t.contains(C,P.target)||D.close()})})},menufocus:function(y,C){var D,P;return this.isNewMenu&&(this.isNewMenu=!1,y.originalEvent&&/^mouse/.test(y.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(y.target).trigger(y.originalEvent)}),void 0):(P=C.item.data("ui-autocomplete-item"),this._trigger("focus",y,{item:P})!==!1&&y.originalEvent&&/^key/.test(y.originalEvent.type)&&this._value(P.value),D=C.item.attr("aria-label")||P.value,D&&t.trim(D).length&&(this.liveRegion.children().hide(),t("
    ").text(D).appendTo(this.liveRegion)),void 0)},menuselect:function(y,C){var D=C.item.data("ui-autocomplete-item"),P=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=P,this._delay(function(){this.previous=P,this.selectedItem=D})),this._trigger("select",y,{item:D})!==!1&&this._value(D.value),this.term=this._value(),this.close(y),this.selectedItem=D}}),this.liveRegion=t("",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,n){this._super(e,n),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&n&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,a=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(o,h){h(t.ui.autocomplete.filter(e,o.term))}):typeof this.options.source=="string"?(n=this.options.source,this.source=function(o,h){a.xhr&&a.xhr.abort(),a.xhr=t.ajax({url:n,data:o,dataType:"json",success:function(p){h(p)},error:function(){h([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var n=this.term===this._value(),a=this.menu.element.is(":visible"),o=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!n||n&&!a&&!o)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,n){return e=e!=null?e:this._value(),this.term=this._value(),e.length").text(n.label).appendTo(e)},_move:function(e,n){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[e](n),void 0):(this.search(null,n),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,n){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,n),n.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var a=RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(o){return a.test(o.label||o.value||o)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("
    ").text(n).appendTo(this.liveRegion))}}),t.ui.autocomplete;var M,O="ui-button ui-widget ui-state-default ui-corner-all",E="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",U=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},Y=function(e){var n=e.name,a=e.form,o=t([]);return n&&(n=n.replace(/'/g,"\\'"),o=a?t(a).find("[name='"+n+"'][type=radio]"):t("[name='"+n+"'][type=radio]",e.ownerDocument).filter(function(){return!this.form})),o};t.widget("ui.button",{version:"1.11.1",defaultElement:"").addClass(this._triggerClass).html(h?t("").attr({src:h,alt:o,title:o}):o)),e[y?"before":"after"](n.trigger),n.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var n,a,o,h,p=new Date(2009,11,20),y=this._get(e,"dateFormat");y.match(/[DM]/)&&(n=function(C){for(a=0,o=0,h=0;C.length>h;h++)C[h].length>a&&(a=C[h].length,o=h);return o},p.setMonth(n(this._get(e,y.match(/MM/)?"monthNames":"monthNamesShort"))),p.setDate(n(this._get(e,y.match(/DD/)?"dayNames":"dayNamesShort"))+20-p.getDay())),e.input.attr("size",this._formatDate(e,p).length)}},_inlineDatepicker:function(e,n){var a=t(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,a,o,h){var p,y,C,D,P,L=this._dialogInst;return L||(this.uuid+=1,p="dp"+this.uuid,this._dialogInput=t(""),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),L=this._dialogInst=this._newInst(this._dialogInput,!1),L.settings={},t.data(this._dialogInput[0],"datepicker",L)),g(L.settings,o||{}),n=n&&n.constructor===Date?this._formatDate(L,n):n,this._dialogInput.val(n),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,D=document.documentElement.scrollLeft||document.body.scrollLeft,P=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[y/2-100+D,C/2-150+P]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),L.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",L),this},_destroyDatepicker:function(e){var n,a=t(e),o=t.data(e,"datepicker");a.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),n==="input"?(o.append.remove(),o.trigger.remove(),a.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(n==="div"||n==="span")&&a.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var n,a,o=t(e),h=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),n==="input"?(e.disabled=!1,h.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(n==="div"||n==="span")&&(a=o.children("."+this._inlineClass),a.children().removeClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(p){return p===e?null:p}))},_disableDatepicker:function(e){var n,a,o=t(e),h=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),n==="input"?(e.disabled=!0,h.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(n==="div"||n==="span")&&(a=o.children("."+this._inlineClass),a.children().addClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(p){return p===e?null:p}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var n=0;this._disabledInputs.length>n;n++)if(this._disabledInputs[n]===e)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(n){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,a){var o,h,p,y,C=this._getInst(e);return arguments.length===2&&typeof n=="string"?n==="defaults"?t.extend({},t.datepicker._defaults):C?n==="all"?t.extend({},C.settings):this._get(C,n):null:(o=n||{},typeof n=="string"&&(o={},o[n]=a),C&&(this._curInst===C&&this._hideDatepicker(),h=this._getDateDatepicker(e,!0),p=this._getMinMaxDate(C,"min"),y=this._getMinMaxDate(C,"max"),g(C.settings,o),p!==null&&o.dateFormat!==void 0&&o.minDate===void 0&&(C.settings.minDate=this._formatDate(C,p)),y!==null&&o.dateFormat!==void 0&&o.maxDate===void 0&&(C.settings.maxDate=this._formatDate(C,y)),"disabled"in o&&(o.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),C),this._autoSize(C),this._setDate(C,h),this._updateAlternate(C),this._updateDatepicker(C)),void 0)},_changeDatepicker:function(e,n,a){this._optionDatepicker(e,n,a)},_refreshDatepicker:function(e){var n=this._getInst(e);n&&this._updateDatepicker(n)},_setDateDatepicker:function(e,n){var a=this._getInst(e);a&&(this._setDate(a,n),this._updateDatepicker(a),this._updateAlternate(a))},_getDateDatepicker:function(e,n){var a=this._getInst(e);return a&&!a.inline&&this._setDateFromField(a,n),a?this._getDate(a):null},_doKeyDown:function(e){var n,a,o,h=t.datepicker._getInst(e.target),p=!0,y=h.dpDiv.is(".ui-datepicker-rtl");if(h._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),p=!1;break;case 13:return o=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",h.dpDiv),o[0]&&t.datepicker._selectDay(e.target,h.selectedMonth,h.selectedYear,o[0]),n=t.datepicker._get(h,"onSelect"),n?(a=t.datepicker._formatDate(h),n.apply(h.input?h.input[0]:null,[a,h])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(h,"stepBigMonths"):-t.datepicker._get(h,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(h,"stepBigMonths"):+t.datepicker._get(h,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),p=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),p=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,y?1:-1,"D"),p=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(h,"stepBigMonths"):-t.datepicker._get(h,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),p=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,y?-1:1,"D"),p=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(h,"stepBigMonths"):+t.datepicker._get(h,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),p=e.ctrlKey||e.metaKey;break;default:p=!1}else e.keyCode===36&&e.ctrlKey?t.datepicker._showDatepicker(this):p=!1;p&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,a,o=t.datepicker._getInst(e.target);return t.datepicker._get(o,"constrainInput")?(n=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),a=String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">a||!n||n.indexOf(a)>-1):void 0},_doKeyUp:function(e){var n,a=t.datepicker._getInst(e.target);if(a.input.val()!==a.lastVal)try{n=t.datepicker.parseDate(t.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,t.datepicker._getFormatConfig(a)),n&&(t.datepicker._setDateFromField(a),t.datepicker._updateAlternate(a),t.datepicker._updateDatepicker(a))}catch(o){}return!0},_showDatepicker:function(e){if(e=e.target||e,e.nodeName.toLowerCase()!=="input"&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var n,a,o,h,p,y,C;n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),a=t.datepicker._get(n,"beforeShow"),o=a?a.apply(e,[e,n]):{},o!==!1&&(g(n.settings,o),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),h=!1,t(e).parents().each(function(){return h|=t(this).css("position")==="fixed",!h}),p={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),p=t.datepicker._checkOffset(n,p,h),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":h?"fixed":"absolute",display:"none",left:p.left+"px",top:p.top+"px"}),n.inline||(y=t.datepicker._get(n,"showAnim"),C=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",l(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[y]?n.dpDiv.show(y,t.datepicker._get(n,"showOptions"),C):n.dpDiv[y||"show"](y?C:null),t.datepicker._shouldFocusInput(n)&&n.input.focus(),t.datepicker._curInst=n))}},_updateDatepicker:function(e){this.maxRows=4,ct=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n,a=this._getNumberOfMonths(e),o=a[1],h=17,p=e.dpDiv.find("."+this._dayOverClass+" a");p.length>0&&f.apply(p.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",h*o+"em"),e.dpDiv[(a[0]!==1||a[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(n=e.yearshtml,setTimeout(function(){n===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),n=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,n,a){var o=e.dpDiv.outerWidth(),h=e.dpDiv.outerHeight(),p=e.input?e.input.outerWidth():0,y=e.input?e.input.outerHeight():0,C=document.documentElement.clientWidth+(a?0:t(document).scrollLeft()),D=document.documentElement.clientHeight+(a?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?o-p:0,n.left-=a&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=a&&n.top===e.input.offset().top+y?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+o>C&&C>o?Math.abs(n.left+o-C):0),n.top-=Math.min(n.top,n.top+h>D&&D>h?Math.abs(h+y):0),n},_findPos:function(e){for(var n,a=this._getInst(e),o=this._get(a,"isRTL");e&&(e.type==="hidden"||e.nodeType!==1||t.expr.filters.hidden(e));)e=e[o?"previousSibling":"nextSibling"];return n=t(e).offset(),[n.left,n.top]},_hideDatepicker:function(e){var n,a,o,h,p=this._curInst;!p||e&&p!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(p,"showAnim"),a=this._get(p,"duration"),o=function(){t.datepicker._tidyDialog(p)},t.effects&&(t.effects.effect[n]||t.effects[n])?p.dpDiv.hide(n,t.datepicker._get(p,"showOptions"),a,o):p.dpDiv[n==="slideDown"?"slideUp":n==="fadeIn"?"fadeOut":"hide"](n?a:null,o),n||o(),this._datepickerShowing=!1,h=this._get(p,"onClose"),h&&h.apply(p.input?p.input[0]:null,[p.input?p.input.val():"",p]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),a=t.datepicker._getInst(n[0]);(n[0].id!==t.datepicker._mainDivId&&n.parents("#"+t.datepicker._mainDivId).length===0&&!n.hasClass(t.datepicker.markerClassName)&&!n.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||n.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==a)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,a){var o=t(e),h=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(h,n+(a==="M"?this._get(h,"showCurrentAtPos"):0),a),this._updateDatepicker(h))},_gotoToday:function(e){var n,a=t(e),o=this._getInst(a[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(n=new Date,o.selectedDay=n.getDate(),o.drawMonth=o.selectedMonth=n.getMonth(),o.drawYear=o.selectedYear=n.getFullYear()),this._notifyChange(o),this._adjustDate(a)},_selectMonthYear:function(e,n,a){var o=t(e),h=this._getInst(o[0]);h["selected"+(a==="M"?"Month":"Year")]=h["draw"+(a==="M"?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(h),this._adjustDate(o)},_selectDay:function(e,n,a,o){var h,p=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(p[0])||(h=this._getInst(p[0]),h.selectedDay=h.currentDay=t("a",o).html(),h.selectedMonth=h.currentMonth=n,h.selectedYear=h.currentYear=a,this._selectDate(e,this._formatDate(h,h.currentDay,h.currentMonth,h.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var a,o=t(e),h=this._getInst(o[0]);n=n!=null?n:this._formatDate(h),h.input&&h.input.val(n),this._updateAlternate(h),a=this._get(h,"onSelect"),a?a.apply(h.input?h.input[0]:null,[n,h]):h.input&&h.input.trigger("change"),h.inline?this._updateDatepicker(h):(this._hideDatepicker(),this._lastInput=h.input[0],typeof h.input[0]!="object"&&h.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var n,a,o,h=this._get(e,"altField");h&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),a=this._getDate(e),o=this.formatDate(n,a,this._getFormatConfig(e)),t(h).each(function(){t(this).val(o)}))},noWeekends:function(e){var n=e.getDay();return[n>0&&6>n,""]},iso8601Week:function(e){var n,a=new Date(e.getTime());return a.setDate(a.getDate()+4-(a.getDay()||7)),n=a.getTime(),a.setMonth(0),a.setDate(1),Math.floor(Math.round((n-a)/864e5)/7)+1},parseDate:function(e,n,a){if(e==null||n==null)throw"Invalid arguments";if(n=typeof n=="object"?""+n:n+"",n==="")return null;var o,h,p,y,C=0,D=(a?a.shortYearCutoff:null)||this._defaults.shortYearCutoff,P=typeof D!="string"?D:new Date().getFullYear()%100+parseInt(D,10),L=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,J=(a?a.dayNames:null)||this._defaults.dayNames,dt=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,Et=(a?a.monthNames:null)||this._defaults.monthNames,V=-1,N=-1,tt=-1,ot=-1,X=!1,K=function($t){var Ht=e.length>o+1&&e.charAt(o+1)===$t;return Ht&&o++,Ht},at=function($t){var Ht=K($t),Zt=$t==="@"?14:$t==="!"?20:$t==="y"&&Ht?4:$t==="o"?3:2,qt=$t==="y"?Zt:1,Kt=RegExp("^\\d{"+qt+","+Zt+"}"),Vt=n.substring(C).match(Kt);if(!Vt)throw"Missing number at position "+C;return C+=Vt[0].length,parseInt(Vt[0],10)},st=function($t,Ht,Zt){var qt=-1,Kt=t.map(K($t)?Zt:Ht,function(Vt,we){return[[we,Vt]]}).sort(function(Vt,we){return-(Vt[1].length-we[1].length)});if(t.each(Kt,function(Vt,we){var ge=we[1];return n.substr(C,ge.length).toLowerCase()===ge.toLowerCase()?(qt=we[0],C+=ge.length,!1):void 0}),qt!==-1)return qt+1;throw"Unknown name at position "+C},bt=function(){if(n.charAt(C)!==e.charAt(o))throw"Unexpected literal at position "+C;C++};for(o=0;e.length>o;o++)if(X)e.charAt(o)!=="'"||K("'")?bt():X=!1;else switch(e.charAt(o)){case"d":tt=at("d");break;case"D":st("D",L,J);break;case"o":ot=at("o");break;case"m":N=at("m");break;case"M":N=st("M",dt,Et);break;case"y":V=at("y");break;case"@":y=new Date(at("@")),V=y.getFullYear(),N=y.getMonth()+1,tt=y.getDate();break;case"!":y=new Date((at("!")-this._ticksTo1970)/1e4),V=y.getFullYear(),N=y.getMonth()+1,tt=y.getDate();break;case"'":K("'")?bt():X=!0;break;default:bt()}if(n.length>C&&(p=n.substr(C),!/^\s+/.test(p)))throw"Extra/unparsed characters found in date: "+p;if(V===-1?V=new Date().getFullYear():100>V&&(V+=new Date().getFullYear()-new Date().getFullYear()%100+(P>=V?0:-100)),ot>-1)for(N=1,tt=ot;h=this._getDaysInMonth(V,N-1),!(h>=tt);)N++,tt-=h;if(y=this._daylightSavingAdjust(new Date(V,N-1,tt)),y.getFullYear()!==V||y.getMonth()+1!==N||y.getDate()!==tt)throw"Invalid date";return y},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,n,a){if(!n)return"";var o,h=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,p=(a?a.dayNames:null)||this._defaults.dayNames,y=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,C=(a?a.monthNames:null)||this._defaults.monthNames,D=function(Et){var V=e.length>o+1&&e.charAt(o+1)===Et;return V&&o++,V},P=function(Et,V,N){var tt=""+V;if(D(Et))for(;N>tt.length;)tt="0"+tt;return tt},L=function(Et,V,N,tt){return D(Et)?tt[V]:N[V]},J="",dt=!1;if(n)for(o=0;e.length>o;o++)if(dt)e.charAt(o)!=="'"||D("'")?J+=e.charAt(o):dt=!1;else switch(e.charAt(o)){case"d":J+=P("d",n.getDate(),2);break;case"D":J+=L("D",n.getDay(),h,p);break;case"o":J+=P("o",Math.round((new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime()-new Date(n.getFullYear(),0,0).getTime())/864e5),3);break;case"m":J+=P("m",n.getMonth()+1,2);break;case"M":J+=L("M",n.getMonth(),y,C);break;case"y":J+=D("y")?n.getFullYear():(10>n.getYear()%100?"0":"")+n.getYear()%100;break;case"@":J+=n.getTime();break;case"!":J+=1e4*n.getTime()+this._ticksTo1970;break;case"'":D("'")?J+="'":dt=!0;break;default:J+=e.charAt(o)}return J},_possibleChars:function(e){var n,a="",o=!1,h=function(p){var y=e.length>n+1&&e.charAt(n+1)===p;return y&&n++,y};for(n=0;e.length>n;n++)if(o)e.charAt(n)!=="'"||h("'")?a+=e.charAt(n):o=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":a+="0123456789";break;case"D":case"M":return null;case"'":h("'")?a+="'":o=!0;break;default:a+=e.charAt(n)}return a},_get:function(e,n){return e.settings[n]!==void 0?e.settings[n]:this._defaults[n]},_setDateFromField:function(e,n){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),o=e.lastVal=e.input?e.input.val():null,h=this._getDefaultDate(e),p=h,y=this._getFormatConfig(e);try{p=this.parseDate(a,o,y)||h}catch(C){o=n?"":o}e.selectedDay=p.getDate(),e.drawMonth=e.selectedMonth=p.getMonth(),e.drawYear=e.selectedYear=p.getFullYear(),e.currentDay=o?p.getDate():0,e.currentMonth=o?p.getMonth():0,e.currentYear=o?p.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,n,a){var o=function(y){var C=new Date;return C.setDate(C.getDate()+y),C},h=function(y){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),y,t.datepicker._getFormatConfig(e))}catch(Et){}for(var C=(y.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,D=C.getFullYear(),P=C.getMonth(),L=C.getDate(),J=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,dt=J.exec(y);dt;){switch(dt[2]||"d"){case"d":case"D":L+=parseInt(dt[1],10);break;case"w":case"W":L+=7*parseInt(dt[1],10);break;case"m":case"M":P+=parseInt(dt[1],10),L=Math.min(L,t.datepicker._getDaysInMonth(D,P));break;case"y":case"Y":D+=parseInt(dt[1],10),L=Math.min(L,t.datepicker._getDaysInMonth(D,P))}dt=J.exec(y)}return new Date(D,P,L)},p=n==null||n===""?a:typeof n=="string"?h(n):typeof n=="number"?isNaN(n)?a:o(n):new Date(n.getTime());return p=p&&""+p=="Invalid Date"?a:p,p&&(p.setHours(0),p.setMinutes(0),p.setSeconds(0),p.setMilliseconds(0)),this._daylightSavingAdjust(p)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,n,a){var o=!n,h=e.selectedMonth,p=e.selectedYear,y=this._restrictMinMax(e,this._determineDate(e,n,new Date));e.selectedDay=e.currentDay=y.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=y.getMonth(),e.drawYear=e.selectedYear=e.currentYear=y.getFullYear(),h===e.selectedMonth&&p===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(o?"":this._formatDate(e))},_getDate:function(e){var n=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return n},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var o={prev:function(){t.datepicker._adjustDate(a,-n,"M")},next:function(){t.datepicker._adjustDate(a,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(a)},selectDay:function(){return t.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(a,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),o[this.getAttribute("data-handler")])})},_generateHTML:function(e){var n,a,o,h,p,y,C,D,P,L,J,dt,Et,V,N,tt,ot,X,K,at,st,bt,$t,Ht,Zt,qt,Kt,Vt,we,ge,Ne,Ze,Gt,re,ke,ti,ii,Pe,li,_e=new Date,Ce=this._daylightSavingAdjust(new Date(_e.getFullYear(),_e.getMonth(),_e.getDate())),be=this._get(e,"isRTL"),Le=this._get(e,"showButtonPanel"),Fi=this._get(e,"hideIfNoPrevNext"),gi=this._get(e,"navigationAsDateFormat"),We=this._getNumberOfMonths(e),vi=this._get(e,"showCurrentAtPos"),Qi=this._get(e,"stepMonths"),ei=We[0]!==1||We[1]!==1,ni=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),He=this._getMinMaxDate(e,"min"),Xe=this._getMinMaxDate(e,"max"),ce=e.drawMonth-vi,fe=e.drawYear;if(0>ce&&(ce+=12,fe--),Xe)for(n=this._daylightSavingAdjust(new Date(Xe.getFullYear(),Xe.getMonth()-We[0]*We[1]+1,Xe.getDate())),n=He&&He>n?He:n;this._daylightSavingAdjust(new Date(fe,ce,1))>n;)ce--,0>ce&&(ce=11,fe--);for(e.drawMonth=ce,e.drawYear=fe,a=this._get(e,"prevText"),a=gi?this.formatDate(a,this._daylightSavingAdjust(new Date(fe,ce-Qi,1)),this._getFormatConfig(e)):a,o=this._canAdjustMonth(e,-1,fe,ce)?""+a+"":Fi?"":""+a+"",h=this._get(e,"nextText"),h=gi?this.formatDate(h,this._daylightSavingAdjust(new Date(fe,ce+Qi,1)),this._getFormatConfig(e)):h,p=this._canAdjustMonth(e,1,fe,ce)?""+h+"":Fi?"":""+h+"",y=this._get(e,"currentText"),C=this._get(e,"gotoCurrent")&&e.currentDay?ni:Ce,y=gi?this.formatDate(y,C,this._getFormatConfig(e)):y,D=e.inline?"":"",P=Le?"
    "+(be?D:"")+(this._isInRange(e,C)?"":"")+(be?"":D)+"
    ":"",L=parseInt(this._get(e,"firstDay"),10),L=isNaN(L)?0:L,J=this._get(e,"showWeek"),dt=this._get(e,"dayNames"),Et=this._get(e,"dayNamesMin"),V=this._get(e,"monthNames"),N=this._get(e,"monthNamesShort"),tt=this._get(e,"beforeShowDay"),ot=this._get(e,"showOtherMonths"),X=this._get(e,"selectOtherMonths"),K=this._getDefaultDate(e),at="",bt=0;We[0]>bt;bt++){for($t="",this.maxRows=4,Ht=0;We[1]>Ht;Ht++){if(Zt=this._daylightSavingAdjust(new Date(fe,ce,e.selectedDay)),qt=" ui-corner-all",Kt="",ei){if(Kt+="
    "}for(Kt+="
    "+(/all|left/.test(qt)&&bt===0?be?p:o:"")+(/all|right/.test(qt)&&bt===0?be?o:p:"")+this._generateMonthYearHeader(e,ce,fe,He,Xe,bt>0||Ht>0,V,N)+"
    ",Vt=J?"":"",st=0;7>st;st++)we=(st+L)%7,Vt+="";for(Kt+=Vt+"",ge=this._getDaysInMonth(fe,ce),fe===e.selectedYear&&ce===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,ge)),Ne=(this._getFirstDayOfMonth(fe,ce)-L+7)%7,Ze=Math.ceil((Ne+ge)/7),Gt=ei&&this.maxRows>Ze?this.maxRows:Ze,this.maxRows=Gt,re=this._daylightSavingAdjust(new Date(fe,ce,1-Ne)),ke=0;Gt>ke;ke++){for(Kt+="",ti=J?"":"",st=0;7>st;st++)ii=tt?tt.apply(e.input?e.input[0]:null,[re]):[!0,""],Pe=re.getMonth()!==ce,li=Pe&&!X||!ii[0]||He&&He>re||Xe&&re>Xe,ti+="",re.setDate(re.getDate()+1),re=this._daylightSavingAdjust(re);Kt+=ti+""}ce++,ce>11&&(ce=0,fe++),Kt+="
    "+this._get(e,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+Et[we]+"
    "+this._get(e,"calculateWeek")(re)+""+(Pe&&!ot?" ":li?""+re.getDate()+"":""+re.getDate()+"")+"
    "+(ei?"
    "+(We[0]>0&&Ht===We[1]-1?"
    ":""):""),$t+=Kt}at+=$t}return at+=P,e._keyEvent=!1,at},_generateMonthYearHeader:function(e,n,a,o,h,p,y,C){var D,P,L,J,dt,Et,V,N,tt=this._get(e,"changeMonth"),ot=this._get(e,"changeYear"),X=this._get(e,"showMonthAfterYear"),K="
    ",at="";if(p||!tt)at+=""+y[n]+"";else{for(D=o&&o.getFullYear()===a,P=h&&h.getFullYear()===a,at+=""}if(X||(K+=at+(!p&&tt&&ot?"":" ")),!e.yearshtml)if(e.yearshtml="",p||!ot)K+=""+a+"";else{for(J=this._get(e,"yearRange").split(":"),dt=new Date().getFullYear(),Et=function(st){var bt=st.match(/c[+\-].*/)?a+parseInt(st.substring(1),10):st.match(/[+\-].*/)?dt+parseInt(st,10):parseInt(st,10);return isNaN(bt)?dt:bt},V=Et(J[0]),N=Math.max(V,Et(J[1]||"")),V=o?Math.max(V,o.getFullYear()):V,N=h?Math.min(N,h.getFullYear()):N,e.yearshtml+="",K+=e.yearshtml,e.yearshtml=null}return K+=this._get(e,"yearSuffix"),X&&(K+=(!p&&tt&&ot?"":" ")+at),K+="
    "},_adjustInstDate:function(e,n,a){var o=e.drawYear+(a==="Y"?n:0),h=e.drawMonth+(a==="M"?n:0),p=Math.min(e.selectedDay,this._getDaysInMonth(o,h))+(a==="D"?n:0),y=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(o,h,p)));e.selectedDay=y.getDate(),e.drawMonth=e.selectedMonth=y.getMonth(),e.drawYear=e.selectedYear=y.getFullYear(),(a==="M"||a==="Y")&&this._notifyChange(e)},_restrictMinMax:function(e,n){var a=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),h=a&&a>n?a:n;return o&&h>o?o:h},_notifyChange:function(e){var n=this._get(e,"onChangeMonthYear");n&&n.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var n=this._get(e,"numberOfMonths");return n==null?[1,1]:typeof n=="number"?[1,n]:n},_getMinMaxDate:function(e,n){return this._determineDate(e,this._get(e,n+"Date"),null)},_getDaysInMonth:function(e,n){return 32-this._daylightSavingAdjust(new Date(e,n,32)).getDate()},_getFirstDayOfMonth:function(e,n){return new Date(e,n,1).getDay()},_canAdjustMonth:function(e,n,a,o){var h=this._getNumberOfMonths(e),p=this._daylightSavingAdjust(new Date(a,o+(0>n?n:h[0]*h[1]),1));return 0>n&&p.setDate(this._getDaysInMonth(p.getFullYear(),p.getMonth())),this._isInRange(e,p)},_isInRange:function(e,n){var a,o,h=this._getMinMaxDate(e,"min"),p=this._getMinMaxDate(e,"max"),y=null,C=null,D=this._get(e,"yearRange");return D&&(a=D.split(":"),o=new Date().getFullYear(),y=parseInt(a[0],10),C=parseInt(a[1],10),a[0].match(/[+\-].*/)&&(y+=o),a[1].match(/[+\-].*/)&&(C+=o)),(!h||n.getTime()>=h.getTime())&&(!p||n.getTime()<=p.getTime())&&(!y||n.getFullYear()>=y)&&(!C||C>=n.getFullYear())},_getFormatConfig:function(e){var n=this._get(e,"shortYearCutoff");return n=typeof n!="string"?n:new Date().getFullYear()%100+parseInt(n,10),{shortYearCutoff:n,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,n,a,o){n||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var h=n?typeof n=="object"?n:this._daylightSavingAdjust(new Date(o,a,n)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),h,this._getFormatConfig(e))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),t("#"+t.datepicker._mainDivId).length===0&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return typeof e!="string"||e!=="isDisabled"&&e!=="getDate"&&e!=="widget"?e==="option"&&arguments.length===2&&typeof arguments[1]=="string"?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each(function(){typeof e=="string"?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new c,t.datepicker.initialized=!1,t.datepicker.uuid=new Date().getTime(),t.datepicker.version="1.11.1",t.datepicker,t.widget("ui.draggable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper!=="original"||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,n){this._super(e,n),e==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(e){var n=this.document[0],a=this.options;try{n.activeElement&&n.activeElement.nodeName.toLowerCase()!=="body"&&t(n.activeElement).blur()}catch(o){}return this.helper||a.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(a.iframeFix===!0?"iframe":a.iframeFix).each(function(){t("
    ").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,n){if(this.offsetParentCssPosition==="fixed"&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var a=this._uiHash();if(this._trigger("drag",e,a)===!1)return this._mouseUp({}),!1;this.position=a.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,a=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(a=t.ui.ddmanager.drop(this,e)),this.dropped&&(a=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!a||this.options.revert==="valid"&&a||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,a)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){n._trigger("stop",e)!==!1&&n._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var n=this.options,a=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e])):n.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return a.parents("body").length||a.appendTo(n.appendTo==="parent"?this.element[0].parentNode:n.appendTo),a[0]===this.element[0]||/(fixed|absolute)/.test(a.css("position"))||a.css("position","absolute"),a},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var e=this.element.position(),n=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(n?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(n?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,a,o=this.options,h=this.document[0];return this.relativeContainer=null,o.containment?o.containment==="window"?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||h.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):o.containment==="document"?(this.containment=[0,0,t(h).width()-this.helperProportions.width-this.margins.left,(t(h).height()||h.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):o.containment.constructor===Array?(this.containment=o.containment,void 0):(o.containment==="parent"&&(o.containment=this.helper[0].parentNode),n=t(o.containment),a=n[0],a&&(e=n.css("overflow")!=="hidden",this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(a.scrollWidth,a.offsetWidth):a.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(a.scrollHeight,a.offsetHeight):a.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n),void 0):(this.containment=null,void 0)},_convertPositionTo:function(e,n){n||(n=this.position);var a=e==="absolute"?1:-1,o=this._isRootNode(this.scrollParent[0]);return{top:n.top+this.offset.relative.top*a+this.offset.parent.top*a-(this.cssPosition==="fixed"?-this.offset.scroll.top:o?0:this.offset.scroll.top)*a,left:n.left+this.offset.relative.left*a+this.offset.parent.left*a-(this.cssPosition==="fixed"?-this.offset.scroll.left:o?0:this.offset.scroll.left)*a}},_generatePosition:function(e,n){var a,o,h,p,y=this.options,C=this._isRootNode(this.scrollParent[0]),D=e.pageX,P=e.pageY;return C&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),n&&(this.containment&&(this.relativeContainer?(o=this.relativeContainer.offset(),a=[this.containment[0]+o.left,this.containment[1]+o.top,this.containment[2]+o.left,this.containment[3]+o.top]):a=this.containment,e.pageX-this.offset.click.lefta[2]&&(D=a[2]+this.offset.click.left),e.pageY-this.offset.click.top>a[3]&&(P=a[3]+this.offset.click.top)),y.grid&&(h=y.grid[1]?this.originalPageY+Math.round((P-this.originalPageY)/y.grid[1])*y.grid[1]:this.originalPageY,P=a?h-this.offset.click.top>=a[1]||h-this.offset.click.top>a[3]?h:h-this.offset.click.top>=a[1]?h-y.grid[1]:h+y.grid[1]:h,p=y.grid[0]?this.originalPageX+Math.round((D-this.originalPageX)/y.grid[0])*y.grid[0]:this.originalPageX,D=a?p-this.offset.click.left>=a[0]||p-this.offset.click.left>a[2]?p:p-this.offset.click.left>=a[0]?p-y.grid[0]:p+y.grid[0]:p),y.axis==="y"&&(D=this.originalPageX),y.axis==="x"&&(P=this.originalPageY)),{top:P-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:C?0:this.offset.scroll.top),left:D-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:C?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,a){return a=a||this._uiHash(),t.ui.plugin.call(this,e,[n,a,this],!0),e==="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,n,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,a){var o=a.options,h=t.extend({},n,{item:a.element});a.sortables=[],t(o.connectToSortable).each(function(){var p=t(this).sortable("instance");p&&!p.options.disabled&&(a.sortables.push({instance:p,shouldRevert:p.options.revert}),p.refreshPositions(),p._trigger("activate",e,h))})},stop:function(e,n,a){var o=t.extend({},n,{item:a.element});t.each(a.sortables,function(){this.instance.isOver?(this.instance.isOver=0,a.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,a.options.helper==="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))})},drag:function(e,n,a){var o=this;t.each(a.sortables,function(){var h=!1,p=this;this.instance.positionAbs=a.positionAbs,this.instance.helperProportions=a.helperProportions,this.instance.offset.click=a.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(h=!0,t.each(a.sortables,function(){return this.instance.positionAbs=a.positionAbs,this.instance.helperProportions=a.helperProportions,this.instance.offset.click=a.offset.click,this!==p&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(p.instance.element[0],this.instance.element[0])&&(h=!1),h})),h?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return n.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=a.offset.click.top,this.instance.offset.click.left=a.offset.click.left,this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top,a._trigger("toSortable",e),a.dropped=this.instance.element,a.currentItem=a.element,this.instance.fromOutside=a),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),a._trigger("fromSortable",e),a.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,a){var o=t("body"),h=a.options;o.css("cursor")&&(h._cursor=o.css("cursor")),o.css("cursor",h.cursor)},stop:function(e,n,a){var o=a.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,a){var o=t(n.helper),h=a.options;o.css("opacity")&&(h._opacity=o.css("opacity")),o.css("opacity",h.opacity)},stop:function(e,n,a){var o=a.options;o._opacity&&t(n.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(e,n,a){a.scrollParentNotHidden||(a.scrollParentNotHidden=a.helper.scrollParent(!1)),a.scrollParentNotHidden[0]!==a.document[0]&&a.scrollParentNotHidden[0].tagName!=="HTML"&&(a.overflowOffset=a.scrollParentNotHidden.offset())},drag:function(e,n,a){var o=a.options,h=!1,p=a.scrollParentNotHidden[0],y=a.document[0];p!==y&&p.tagName!=="HTML"?(o.axis&&o.axis==="x"||(a.overflowOffset.top+p.offsetHeight-e.pageY=0;J--)C=a.snapElements[J].left,D=C+a.snapElements[J].width,P=a.snapElements[J].top,L=P+a.snapElements[J].height,C-V>tt||N>D+V||P-V>X||ot>L+V||!t.contains(a.snapElements[J].item.ownerDocument,a.snapElements[J].item)?(a.snapElements[J].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,e,t.extend(a._uiHash(),{snapItem:a.snapElements[J].item})),a.snapElements[J].snapping=!1):(Et.snapMode!=="inner"&&(o=V>=Math.abs(P-X),h=V>=Math.abs(L-ot),p=V>=Math.abs(C-tt),y=V>=Math.abs(D-N),o&&(n.position.top=a._convertPositionTo("relative",{top:P-a.helperProportions.height,left:0}).top-a.margins.top),h&&(n.position.top=a._convertPositionTo("relative",{top:L,left:0}).top-a.margins.top),p&&(n.position.left=a._convertPositionTo("relative",{top:0,left:C-a.helperProportions.width}).left-a.margins.left),y&&(n.position.left=a._convertPositionTo("relative",{top:0,left:D}).left-a.margins.left)),dt=o||h||p||y,Et.snapMode!=="outer"&&(o=V>=Math.abs(P-ot),h=V>=Math.abs(L-X),p=V>=Math.abs(C-N),y=V>=Math.abs(D-tt),o&&(n.position.top=a._convertPositionTo("relative",{top:P,left:0}).top-a.margins.top),h&&(n.position.top=a._convertPositionTo("relative",{top:L-a.helperProportions.height,left:0}).top-a.margins.top),p&&(n.position.left=a._convertPositionTo("relative",{top:0,left:C}).left-a.margins.left),y&&(n.position.left=a._convertPositionTo("relative",{top:0,left:D-a.helperProportions.width}).left-a.margins.left)),!a.snapElements[J].snapping&&(o||h||p||y||dt)&&a.options.snap.snap&&a.options.snap.snap.call(a.element,e,t.extend(a._uiHash(),{snapItem:a.snapElements[J].item})),a.snapElements[J].snapping=o||h||p||y||dt)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,a){var o,h=a.options,p=t.makeArray(t(h.stack)).sort(function(y,C){return(parseInt(t(y).css("zIndex"),10)||0)-(parseInt(t(C).css("zIndex"),10)||0)});p.length&&(o=parseInt(t(p[0]).css("zIndex"),10)||0,t(p).each(function(y){t(this).css("zIndex",o+y)}),this.css("zIndex",o+p.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,a){var o=t(n.helper),h=a.options;o.css("zIndex")&&(h._zIndex=o.css("zIndex")),o.css("zIndex",h.zIndex)},stop:function(e,n,a){var o=a.options;o._zIndex&&t(n.helper).css("zIndex",o._zIndex)}}),t.ui.draggable,t.widget("ui.resizable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseInt(e,10)||0},_isNumber:function(e){return!isNaN(parseInt(e,10))},_hasScroll:function(e,n){if(t(e).css("overflow")==="hidden")return!1;var a=n&&n==="left"?"scrollLeft":"scrollTop",o=!1;return e[a]>0?!0:(e[a]=1,o=e[a]>0,e[a]=0,o)},_create:function(){var e,n,a,o,h,p=this,y=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!y.aspectRatio,aspectRatio:y.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:y.helper||y.ghost||y.animate?y.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("
    ").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=y.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},n=0;e.length>n;n++)a=t.trim(e[n]),h="ui-resizable-"+a,o=t("
    "),o.css({zIndex:y.zIndex}),a==="se"&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[a]=".ui-resizable-"+a,this.element.append(o);this._renderAxis=function(C){var D,P,L,J;C=C||this.element;for(D in this.handles)this.handles[D].constructor===String&&(this.handles[D]=this.element.children(this.handles[D]).first().show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(P=t(this.handles[D],this.element),J=/sw|ne|nw|se|n|s/.test(D)?P.outerHeight():P.outerWidth(),L=["padding",/ne|nw|n/.test(D)?"Top":/se|sw|s/.test(D)?"Bottom":/^e$/.test(D)?"Right":"Left"].join(""),C.css(L,J),this._proportionallyResize()),t(this.handles[D]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){p.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),p.axis=o&&o[1]?o[1]:"se")}),y.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){y.disabled||(t(this).removeClass("ui-resizable-autohide"),p._handles.show())}).mouseleave(function(){y.disabled||p.resizing||(t(this).addClass("ui-resizable-autohide"),p._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,n=function(a){t(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_mouseCapture:function(e){var n,a,o=!1;for(n in this.handles)a=t(this.handles[n])[0],(a===e.target||t.contains(a,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(e){var n,a,o,h=this.options,p=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),a=this._num(this.helper.css("top")),h.containment&&(n+=t(h.containment).scrollLeft()||0,a+=t(h.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:a},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:p.width(),height:p.height()},this.originalSize=this._helper?{width:p.outerWidth(),height:p.outerHeight()}:{width:p.width(),height:p.height()},this.sizeDiff={width:p.outerWidth()-p.width(),height:p.outerHeight()-p.height()},this.originalPosition={left:n,top:a},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio=typeof h.aspectRatio=="number"?h.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor",o==="auto"?this.axis+"-resize":o),p.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,a,o=this.originalMousePosition,h=this.axis,p=e.pageX-o.left||0,y=e.pageY-o.top||0,C=this._change[h];return this._updatePrevProperties(),C&&(n=C.apply(this,[e,p,y]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),a=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(a)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var n,a,o,h,p,y,C,D=this.options,P=this;return this._helper&&(n=this._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&this._hasScroll(n[0],"left")?0:P.sizeDiff.height,h=a?0:P.sizeDiff.width,p={width:P.helper.width()-h,height:P.helper.height()-o},y=parseInt(P.element.css("left"),10)+(P.position.left-P.originalPosition.left)||null,C=parseInt(P.element.css("top"),10)+(P.position.top-P.originalPosition.top)||null,D.animate||this.element.css(t.extend(p,{top:C,left:y})),P.helper.height(P.size.height),P.helper.width(P.size.width),this._helper&&!D.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var n,a,o,h,p,y=this.options;p={minWidth:this._isNumber(y.minWidth)?y.minWidth:0,maxWidth:this._isNumber(y.maxWidth)?y.maxWidth:1/0,minHeight:this._isNumber(y.minHeight)?y.minHeight:0,maxHeight:this._isNumber(y.maxHeight)?y.maxHeight:1/0},(this._aspectRatio||e)&&(n=p.minHeight*this.aspectRatio,o=p.minWidth/this.aspectRatio,a=p.maxHeight*this.aspectRatio,h=p.maxWidth/this.aspectRatio,n>p.minWidth&&(p.minWidth=n),o>p.minHeight&&(p.minHeight=o),p.maxWidth>a&&(p.maxWidth=a),p.maxHeight>h&&(p.maxHeight=h)),this._vBoundaries=p},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var n=this.position,a=this.size,o=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),o==="sw"&&(e.left=n.left+(a.width-e.width),e.top=null),o==="nw"&&(e.top=n.top+(a.height-e.height),e.left=n.left+(a.width-e.width)),e},_respectSize:function(e){var n=this._vBoundaries,a=this.axis,o=this._isNumber(e.width)&&n.maxWidth&&n.maxWidthe.width,y=this._isNumber(e.height)&&n.minHeight&&n.minHeight>e.height,C=this.originalPosition.left+this.originalSize.width,D=this.position.top+this.size.height,P=/sw|nw|w/.test(a),L=/nw|ne|n/.test(a);return p&&(e.width=n.minWidth),y&&(e.height=n.minHeight),o&&(e.width=n.maxWidth),h&&(e.height=n.maxHeight),p&&P&&(e.left=C-n.minWidth),o&&P&&(e.left=C-n.maxWidth),y&&L&&(e.top=D-n.minHeight),h&&L&&(e.top=D-n.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var n=0,a=[],o=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],h=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];4>n;n++)a[n]=parseInt(o[n],10)||0,a[n]+=parseInt(h[n],10)||0;return{height:a[0]+a[2],width:a[1]+a[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,n=0,a=this.helper||this.element;this._proportionallyResizeElements.length>n;n++)e=this._proportionallyResizeElements[n],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:a.height()-this.outerDimensions.height||0,width:a.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("
    "),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,n){return{width:this.originalSize.width+n}},w:function(e,n){var a=this.originalSize,o=this.originalPosition;return{left:o.left+n,width:a.width-n}},n:function(e,n,a){var o=this.originalSize,h=this.originalPosition;return{top:h.top+a,height:o.height-a}},s:function(e,n,a){return{height:this.originalSize.height+a}},se:function(e,n,a){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,a]))},sw:function(e,n,a){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,a]))},ne:function(e,n,a){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,a]))},nw:function(e,n,a){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,a]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),e!=="resize"&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),a=n.options,o=n._proportionallyResizeElements,h=o.length&&/textarea/i.test(o[0].nodeName),p=h&&n._hasScroll(o[0],"left")?0:n.sizeDiff.height,y=h?0:n.sizeDiff.width,C={width:n.size.width-y,height:n.size.height-p},D=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,P=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(C,P&&D?{top:P,left:D}:{}),{duration:a.animateDuration,easing:a.animateEasing,step:function(){var L={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:L.width,height:L.height}),n._updateCache(L),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,a,o,h,p,y,C=t(this).resizable("instance"),D=C.options,P=C.element,L=D.containment,J=L instanceof t?L.get(0):/parent/.test(L)?P.parent().get(0):L;J&&(C.containerElement=t(J),/document/.test(L)||L===document?(C.containerOffset={left:0,top:0},C.containerPosition={left:0,top:0},C.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(J),n=[],t(["Top","Right","Left","Bottom"]).each(function(dt,Et){n[dt]=C._num(e.css("padding"+Et))}),C.containerOffset=e.offset(),C.containerPosition=e.position(),C.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},a=C.containerOffset,o=C.containerSize.height,h=C.containerSize.width,p=C._hasScroll(J,"left")?J.scrollWidth:h,y=C._hasScroll(J)?J.scrollHeight:o,C.parentData={element:J,left:a.left,top:a.top,width:p,height:y}))},resize:function(e){var n,a,o,h,p=t(this).resizable("instance"),y=p.options,C=p.containerOffset,D=p.position,P=p._aspectRatio||e.shiftKey,L={top:0,left:0},J=p.containerElement,dt=!0;J[0]!==document&&/static/.test(J.css("position"))&&(L=C),D.left<(p._helper?C.left:0)&&(p.size.width=p.size.width+(p._helper?p.position.left-C.left:p.position.left-L.left),P&&(p.size.height=p.size.width/p.aspectRatio,dt=!1),p.position.left=y.helper?C.left:0),D.top<(p._helper?C.top:0)&&(p.size.height=p.size.height+(p._helper?p.position.top-C.top:p.position.top),P&&(p.size.width=p.size.height*p.aspectRatio,dt=!1),p.position.top=p._helper?C.top:0),o=p.containerElement.get(0)===p.element.parent().get(0),h=/relative|absolute/.test(p.containerElement.css("position")),o&&h?(p.offset.left=p.parentData.left+p.position.left,p.offset.top=p.parentData.top+p.position.top):(p.offset.left=p.element.offset().left,p.offset.top=p.element.offset().top),n=Math.abs(p.sizeDiff.width+(p._helper?p.offset.left-L.left:p.offset.left-C.left)),a=Math.abs(p.sizeDiff.height+(p._helper?p.offset.top-L.top:p.offset.top-C.top)),n+p.size.width>=p.parentData.width&&(p.size.width=p.parentData.width-n,P&&(p.size.height=p.size.width/p.aspectRatio,dt=!1)),a+p.size.height>=p.parentData.height&&(p.size.height=p.parentData.height-a,P&&(p.size.width=p.size.height*p.aspectRatio,dt=!1)),dt||(p.position.left=p.prevPosition.left,p.position.top=p.prevPosition.top,p.size.width=p.prevSize.width,p.size.height=p.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,a=e.containerOffset,o=e.containerPosition,h=e.containerElement,p=t(e.helper),y=p.offset(),C=p.outerWidth()-e.sizeDiff.width,D=p.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(h.css("position"))&&t(this).css({left:y.left-o.left-a.left,width:C,height:D}),e._helper&&!n.animate&&/static/.test(h.css("position"))&&t(this).css({left:y.left-o.left-a.left,width:C,height:D})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),n=e.options,a=function(o){t(o).each(function(){var h=t(this);h.data("ui-resizable-alsoresize",{width:parseInt(h.width(),10),height:parseInt(h.height(),10),left:parseInt(h.css("left"),10),top:parseInt(h.css("top"),10)})})};typeof n.alsoResize!="object"||n.alsoResize.parentNode?a(n.alsoResize):n.alsoResize.length?(n.alsoResize=n.alsoResize[0],a(n.alsoResize)):t.each(n.alsoResize,function(o){a(o)})},resize:function(e,n){var a=t(this).resizable("instance"),o=a.options,h=a.originalSize,p=a.originalPosition,y={height:a.size.height-h.height||0,width:a.size.width-h.width||0,top:a.position.top-p.top||0,left:a.position.left-p.left||0},C=function(D,P){t(D).each(function(){var L=t(this),J=t(this).data("ui-resizable-alsoresize"),dt={},Et=P&&P.length?P:L.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(Et,function(V,N){var tt=(J[N]||0)+(y[N]||0);tt&&tt>=0&&(dt[N]=tt||null)}),L.css(dt)})};typeof o.alsoResize!="object"||o.alsoResize.nodeType?C(o.alsoResize):t.each(o.alsoResize,function(D,P){C(D,P)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.options,a=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof n.ghost=="string"?n.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),a=n.options,o=n.size,h=n.originalSize,p=n.originalPosition,y=n.axis,C=typeof a.grid=="number"?[a.grid,a.grid]:a.grid,D=C[0]||1,P=C[1]||1,L=Math.round((o.width-h.width)/D)*D,J=Math.round((o.height-h.height)/P)*P,dt=h.width+L,Et=h.height+J,V=a.maxWidth&&dt>a.maxWidth,N=a.maxHeight&&Et>a.maxHeight,tt=a.minWidth&&a.minWidth>dt,ot=a.minHeight&&a.minHeight>Et;a.grid=C,tt&&(dt+=D),ot&&(Et+=P),V&&(dt-=D),N&&(Et-=P),/^(se|s|e)$/.test(y)?(n.size.width=dt,n.size.height=Et):/^(ne)$/.test(y)?(n.size.width=dt,n.size.height=Et,n.position.top=p.top-J):/^(sw)$/.test(y)?(n.size.width=dt,n.size.height=Et,n.position.left=p.left-L):((0>=Et-P||0>=dt-D)&&(e=n._getPaddingPlusBorderDimensions(this)),Et-P>0?(n.size.height=Et,n.position.top=p.top-J):(Et=P-e.height,n.size.height=Et,n.position.top=p.top+h.height-Et),dt-D>0?(n.size.width=dt,n.position.left=p.left-L):(dt=P-e.height,n.size.width=dt,n.position.left=p.left+h.width-dt))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.11.1",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;0>n&&t(this).css("top",e.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var e,n=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=n.parent.children().eq(n.index),e.length&&e[0]!==this.element[0]?e.before(this.element):n.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var n,a=this;if(this._isOpen&&this._trigger("beforeClose",e)!==!1){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{n=this.document[0].activeElement,n&&n.nodeName.toLowerCase()!=="body"&&t(n).blur()}catch(o){}this._hide(this.uiDialog,this.options.hide,function(){a._trigger("close",e)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,n){var a=!1,o=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),h=Math.max.apply(null,o);return h>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",h+1),a=!0),a&&!n&&this._trigger("focus",e),a},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).focus()},_keepFocus:function(e){function n(){var a=this.document[0].activeElement,o=this.uiDialog[0]===a||t.contains(this.uiDialog[0],a);o||this._focusTabbable()}e.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=t("
    ").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),a=n.filter(":first"),o=n.filter(":last");e.target!==o[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==a[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){o.focus()}),e.preventDefault()):(this._delay(function(){a.focus()}),e.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("
    ").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(n){t(n.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault(),this.close(n)}}),e=t("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){this.options.title||e.html(" "),e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("
    ").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,n=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(n)||t.isArray(n)&&!n.length?(this.uiDialog.removeClass("ui-dialog-buttons"),void 0):(t.each(n,function(a,o){var h,p;o=t.isFunction(o)?{click:o,text:a}:o,o=t.extend({type:"button"},o),h=o.click,o.click=function(){h.apply(e.element[0],arguments)},p={icons:o.icons,text:o.showText},delete o.icons,delete o.showText,t("",o).button(p).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function e(o){return{position:o.position,offset:o.offset}}var n=this,a=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(o,h){t(this).addClass("ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",o,e(h))},drag:function(o,h){n._trigger("drag",o,e(h))},stop:function(o,h){var p=h.offset.left-n.document.scrollLeft(),y=h.offset.top-n.document.scrollTop();a.position={my:"left top",at:"left"+(p>=0?"+":"")+p+" top"+(y>=0?"+":"")+y,of:n.window},t(this).removeClass("ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",o,e(h))}})},_makeResizable:function(){function e(y){return{originalPosition:y.originalPosition,originalSize:y.originalSize,position:y.position,size:y.size}}var n=this,a=this.options,o=a.resizable,h=this.uiDialog.css("position"),p=typeof o=="string"?o:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:p,start:function(y,C){t(this).addClass("ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",y,e(C))},resize:function(y,C){n._trigger("resize",y,e(C))},stop:function(y,C){var D=n.uiDialog.offset(),P=D.left-n.document.scrollLeft(),L=D.top-n.document.scrollTop();a.height=n.uiDialog.height(),a.width=n.uiDialog.width(),a.position={my:"left top",at:"left"+(P>=0?"+":"")+P+" top"+(L>=0?"+":"")+L,of:n.window},t(this).removeClass("ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",y,e(C))}}).css("position",h)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),n=t.inArray(this,e);n!==-1&&e.splice(n,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(e){var n=this,a=!1,o={};t.each(e,function(h,p){n._setOption(h,p),h in n.sizeRelatedOptions&&(a=!0),h in n.resizableRelatedOptions&&(o[h]=p)}),a&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,n){var a,o,h=this.uiDialog;e==="dialogClass"&&h.removeClass(this.options.dialogClass).addClass(n),e!=="disabled"&&(this._super(e,n),e==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),e==="buttons"&&this._createButtons(),e==="closeText"&&this.uiDialogTitlebarClose.button({label:""+n}),e==="draggable"&&(a=h.is(":data(ui-draggable)"),a&&!n&&h.draggable("destroy"),!a&&n&&this._makeDraggable()),e==="position"&&this._position(),e==="resizable"&&(o=h.is(":data(ui-resizable)"),o&&!n&&h.resizable("destroy"),o&&typeof n=="string"&&h.resizable("option","handles",n),o||n===!1||this._makeResizable()),e==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,n,a,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),e=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),n=Math.max(0,o.minHeight-e),a=typeof o.maxHeight=="number"?Math.max(0,o.maxHeight-e):"none",o.height==="auto"?this.element.css({minHeight:n,maxHeight:a,height:"auto"}):this.element.height(Math.max(0,o.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("
    ").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(n){e||this._allowInteraction(n)||(n.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("
    ").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),t.widget("ui.droppable",{version:"1.11.1",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,a=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(a)?a:function(o){return o.is(a)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(n.scope),n.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var n=0;e.length>n;n++)e[n]===this&&e.splice(n,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,n){if(e==="accept")this.accept=t.isFunction(n)?n:function(o){return o.is(n)};else if(e==="scope"){var a=t.ui.ddmanager.droppables[this.options.scope];this._splice(a),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var a=n||t.ui.ddmanager.current,o=!1;return a&&(a.currentItem||a.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var h=t(this).droppable("instance");return h.options.greedy&&!h.options.disabled&&h.options.scope===a.options.scope&&h.accept.call(h.element[0],a.currentItem||a.element)&&t.ui.intersect(a,t.extend(h,{offset:h.element.offset()}),h.options.tolerance,e)?(o=!0,!1):void 0}),o?!1:this.accept.call(this.element[0],a.currentItem||a.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(a)),this.element):!1):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),t.ui.intersect=function(){function e(n,a,o){return n>=a&&a+o>n}return function(n,a,o,h){if(!a.offset)return!1;var p=(n.positionAbs||n.position.absolute).left,y=(n.positionAbs||n.position.absolute).top,C=p+n.helperProportions.width,D=y+n.helperProportions.height,P=a.offset.left,L=a.offset.top,J=P+a.proportions().width,dt=L+a.proportions().height;switch(o){case"fit":return p>=P&&J>=C&&y>=L&&dt>=D;case"intersect":return p+n.helperProportions.width/2>P&&J>C-n.helperProportions.width/2&&y+n.helperProportions.height/2>L&&dt>D-n.helperProportions.height/2;case"pointer":return e(h.pageY,L,a.proportions().height)&&e(h.pageX,P,a.proportions().width);case"touch":return(y>=L&&dt>=y||D>=L&&dt>=D||L>y&&D>dt)&&(p>=P&&J>=p||C>=P&&J>=C||P>p&&C>J);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,n){var a,o,h=t.ui.ddmanager.droppables[e.options.scope]||[],p=n?n.type:null,y=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(a=0;h.length>a;a++)if(!(h[a].options.disabled||e&&!h[a].accept.call(h[a].element[0],e.currentItem||e.element))){for(o=0;y.length>o;o++)if(y[o]===h[a].element[0]){h[a].proportions().height=0;continue t}h[a].visible=h[a].element.css("display")!=="none",h[a].visible&&(p==="mousedown"&&h[a]._activate.call(h[a],n),h[a].offset=h[a].element.offset(),h[a].proportions({width:h[a].element[0].offsetWidth,height:h[a].element[0].offsetHeight}))}},drop:function(e,n){var a=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,n)&&(a=this._drop.call(this,n)||a),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),a},dragStart:function(e,n){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var a,o,h,p=t.ui.intersect(e,this,this.options.tolerance,n),y=!p&&this.isover?"isout":p&&!this.isover?"isover":null;y&&(this.options.greedy&&(o=this.options.scope,h=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===o}),h.length&&(a=t(h[0]).droppable("instance"),a.greedyChild=y==="isover")),a&&y==="isover"&&(a.isover=!1,a.isout=!0,a._out.call(a,n)),this[y]=!0,this[y==="isout"?"isover":"isout"]=!1,this[y==="isover"?"_over":"_out"].call(this,n),a&&y==="isout"&&(a.isout=!1,a.isover=!0,a._over.call(a,n)))}})},dragStop:function(e,n){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},t.ui.droppable;var G="ui-effects-",wt=t;t.effects={effect:{}},function(e,n){function a(N,tt,ot){var X=J[tt.type]||{};return N==null?ot||!tt.def?null:tt.def:(N=X.floor?~~N:parseFloat(N),isNaN(N)?tt.def:X.mod?(N+X.mod)%X.mod:0>N?0:N>X.max?X.max:N)}function o(N){var tt=P(),ot=tt._rgba=[];return N=N.toLowerCase(),V(D,function(X,K){var at,st=K.re.exec(N),bt=st&&K.parse(st),$t=K.space||"rgba";return bt?(at=tt[$t](bt),tt[L[$t].cache]=at[L[$t].cache],ot=tt._rgba=at._rgba,!1):n}),ot.length?(ot.join()==="0,0,0,0"&&e.extend(ot,p.transparent),tt):p[N]}function h(N,tt,ot){return ot=(ot+1)%1,1>6*ot?N+6*(tt-N)*ot:1>2*ot?tt:2>3*ot?N+6*(tt-N)*(2/3-ot):N}var p,y="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",C=/^([\-+])=\s*(\d+\.?\d*)/,D=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(N){return[N[1],N[2],N[3],N[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(N){return[2.55*N[1],2.55*N[2],2.55*N[3],N[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(N){return[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(N){return[parseInt(N[1]+N[1],16),parseInt(N[2]+N[2],16),parseInt(N[3]+N[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(N){return[N[1],N[2]/100,N[3]/100,N[4]]}}],P=e.Color=function(N,tt,ot,X){return new e.Color.fn.parse(N,tt,ot,X)},L={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},J={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},dt=P.support={},Et=e("

    ")[0],V=e.each;Et.style.cssText="background-color:rgba(1,1,1,.5)",dt.rgba=Et.style.backgroundColor.indexOf("rgba")>-1,V(L,function(N,tt){tt.cache="_"+N,tt.props.alpha={idx:3,type:"percent",def:1}}),P.fn=e.extend(P.prototype,{parse:function(N,tt,ot,X){if(N===n)return this._rgba=[null,null,null,null],this;(N.jquery||N.nodeType)&&(N=e(N).css(tt),tt=n);var K=this,at=e.type(N),st=this._rgba=[];return tt!==n&&(N=[N,tt,ot,X],at="array"),at==="string"?this.parse(o(N)||p._default):at==="array"?(V(L.rgba.props,function(bt,$t){st[$t.idx]=a(N[$t.idx],$t)}),this):at==="object"?(N instanceof P?V(L,function(bt,$t){N[$t.cache]&&(K[$t.cache]=N[$t.cache].slice())}):V(L,function(bt,$t){var Ht=$t.cache;V($t.props,function(Zt,qt){if(!K[Ht]&&$t.to){if(Zt==="alpha"||N[Zt]==null)return;K[Ht]=$t.to(K._rgba)}K[Ht][qt.idx]=a(N[Zt],qt,!0)}),K[Ht]&&0>e.inArray(null,K[Ht].slice(0,3))&&(K[Ht][3]=1,$t.from&&(K._rgba=$t.from(K[Ht])))}),this):n},is:function(N){var tt=P(N),ot=!0,X=this;return V(L,function(K,at){var st,bt=tt[at.cache];return bt&&(st=X[at.cache]||at.to&&at.to(X._rgba)||[],V(at.props,function($t,Ht){return bt[Ht.idx]!=null?ot=bt[Ht.idx]===st[Ht.idx]:n})),ot}),ot},_space:function(){var N=[],tt=this;return V(L,function(ot,X){tt[X.cache]&&N.push(ot)}),N.pop()},transition:function(N,tt){var ot=P(N),X=ot._space(),K=L[X],at=this.alpha()===0?P("transparent"):this,st=at[K.cache]||K.to(at._rgba),bt=st.slice();return ot=ot[K.cache],V(K.props,function($t,Ht){var Zt=Ht.idx,qt=st[Zt],Kt=ot[Zt],Vt=J[Ht.type]||{};Kt!==null&&(qt===null?bt[Zt]=Kt:(Vt.mod&&(Kt-qt>Vt.mod/2?qt+=Vt.mod:qt-Kt>Vt.mod/2&&(qt-=Vt.mod)),bt[Zt]=a((Kt-qt)*tt+qt,Ht)))}),this[X](bt)},blend:function(N){if(this._rgba[3]===1)return this;var tt=this._rgba.slice(),ot=tt.pop(),X=P(N)._rgba;return P(e.map(tt,function(K,at){return(1-ot)*X[at]+ot*K}))},toRgbaString:function(){var N="rgba(",tt=e.map(this._rgba,function(ot,X){return ot!=null?ot:X>2?1:0});return tt[3]===1&&(tt.pop(),N="rgb("),N+tt.join()+")"},toHslaString:function(){var N="hsla(",tt=e.map(this.hsla(),function(ot,X){return ot==null&&(ot=X>2?1:0),X&&3>X&&(ot=Math.round(100*ot)+"%"),ot});return tt[3]===1&&(tt.pop(),N="hsl("),N+tt.join()+")"},toHexString:function(N){var tt=this._rgba.slice(),ot=tt.pop();return N&&tt.push(~~(255*ot)),"#"+e.map(tt,function(X){return X=(X||0).toString(16),X.length===1?"0"+X:X}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),P.fn.parse.prototype=P.fn,L.hsla.to=function(N){if(N[0]==null||N[1]==null||N[2]==null)return[null,null,null,N[3]];var tt,ot,X=N[0]/255,K=N[1]/255,at=N[2]/255,st=N[3],bt=Math.max(X,K,at),$t=Math.min(X,K,at),Ht=bt-$t,Zt=bt+$t,qt=.5*Zt;return tt=$t===bt?0:X===bt?60*(K-at)/Ht+360:K===bt?60*(at-X)/Ht+120:60*(X-K)/Ht+240,ot=Ht===0?0:.5>=qt?Ht/Zt:Ht/(2-Zt),[Math.round(tt)%360,ot,qt,st!=null?st:1]},L.hsla.from=function(N){if(N[0]==null||N[1]==null||N[2]==null)return[null,null,null,N[3]];var tt=N[0]/360,ot=N[1],X=N[2],K=N[3],at=.5>=X?X*(1+ot):X+ot-X*ot,st=2*X-at;return[Math.round(255*h(st,at,tt+1/3)),Math.round(255*h(st,at,tt)),Math.round(255*h(st,at,tt-1/3)),K]},V(L,function(N,tt){var ot=tt.props,X=tt.cache,K=tt.to,at=tt.from;P.fn[N]=function(st){if(K&&!this[X]&&(this[X]=K(this._rgba)),st===n)return this[X].slice();var bt,$t=e.type(st),Ht=$t==="array"||$t==="object"?st:arguments,Zt=this[X].slice();return V(ot,function(qt,Kt){var Vt=Ht[$t==="object"?qt:Kt.idx];Vt==null&&(Vt=Zt[Kt.idx]),Zt[Kt.idx]=a(Vt,Kt)}),at?(bt=P(at(Zt)),bt[X]=Zt,bt):P(Zt)},V(ot,function(st,bt){P.fn[st]||(P.fn[st]=function($t){var Ht,Zt=e.type($t),qt=st==="alpha"?this._hsla?"hsla":"rgba":N,Kt=this[qt](),Vt=Kt[bt.idx];return Zt==="undefined"?Vt:(Zt==="function"&&($t=$t.call(this,Vt),Zt=e.type($t)),$t==null&&bt.empty?this:(Zt==="string"&&(Ht=C.exec($t),Ht&&($t=Vt+parseFloat(Ht[2])*(Ht[1]==="+"?1:-1))),Kt[bt.idx]=$t,this[qt](Kt)))})})}),P.hook=function(N){var tt=N.split(" ");V(tt,function(ot,X){e.cssHooks[X]={set:function(K,at){var st,bt,$t="";if(at!=="transparent"&&(e.type(at)!=="string"||(st=o(at)))){if(at=P(st||at),!dt.rgba&&at._rgba[3]!==1){for(bt=X==="backgroundColor"?K.parentNode:K;($t===""||$t==="transparent")&&bt&&bt.style;)try{$t=e.css(bt,"backgroundColor"),bt=bt.parentNode}catch(Ht){}at=at.blend($t&&$t!=="transparent"?$t:"_default")}at=at.toRgbaString()}try{K.style[X]=at}catch(Ht){}}},e.fx.step[X]=function(K){K.colorInit||(K.start=P(K.elem,X),K.end=P(K.end),K.colorInit=!0),e.cssHooks[X].set(K.elem,K.start.transition(K.end,K.pos))}})},P.hook(y),e.cssHooks.borderColor={expand:function(N){var tt={};return V(["Top","Right","Bottom","Left"],function(ot,X){tt["border"+X+"Color"]=N}),tt}},p=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(wt),function(){function e(h){var p,y,C=h.ownerDocument.defaultView?h.ownerDocument.defaultView.getComputedStyle(h,null):h.currentStyle,D={};if(C&&C.length&&C[0]&&C[C[0]])for(y=C.length;y--;)p=C[y],typeof C[p]=="string"&&(D[t.camelCase(p)]=C[p]);else for(p in C)typeof C[p]=="string"&&(D[p]=C[p]);return D}function n(h,p){var y,C,D={};for(y in p)C=p[y],h[y]!==C&&(o[y]||(t.fx.step[y]||!isNaN(parseFloat(C)))&&(D[y]=C));return D}var a=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(h,p){t.fx.step[p]=function(y){(y.end!=="none"&&!y.setAttr||y.pos===1&&!y.setAttr)&&(wt.style(y.elem,p,y.end),y.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(h){return this.add(h==null?this.prevObject:this.prevObject.filter(h))}),t.effects.animateClass=function(h,p,y,C){var D=t.speed(p,y,C);return this.queue(function(){var P,L=t(this),J=L.attr("class")||"",dt=D.children?L.find("*").addBack():L;dt=dt.map(function(){var Et=t(this);return{el:Et,start:e(this)}}),P=function(){t.each(a,function(Et,V){h[V]&&L[V+"Class"](h[V])})},P(),dt=dt.map(function(){return this.end=e(this.el[0]),this.diff=n(this.start,this.end),this}),L.attr("class",J),dt=dt.map(function(){var Et=this,V=t.Deferred(),N=t.extend({},D,{queue:!1,complete:function(){V.resolve(Et)}});return this.el.animate(this.diff,N),V.promise()}),t.when.apply(t,dt.get()).done(function(){P(),t.each(arguments,function(){var Et=this.el;t.each(this.diff,function(V){Et.css(V,"")})}),D.complete.call(L[0])})})},t.fn.extend({addClass:function(h){return function(p,y,C,D){return y?t.effects.animateClass.call(this,{add:p},y,C,D):h.apply(this,arguments)}}(t.fn.addClass),removeClass:function(h){return function(p,y,C,D){return arguments.length>1?t.effects.animateClass.call(this,{remove:p},y,C,D):h.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(h){return function(p,y,C,D,P){return typeof y=="boolean"||y===void 0?C?t.effects.animateClass.call(this,y?{add:p}:{remove:p},C,D,P):h.apply(this,arguments):t.effects.animateClass.call(this,{toggle:p},y,C,D)}}(t.fn.toggleClass),switchClass:function(h,p,y,C,D){return t.effects.animateClass.call(this,{add:p,remove:h},y,C,D)}})}(),function(){function e(a,o,h,p){return t.isPlainObject(a)&&(o=a,a=a.effect),a={effect:a},o==null&&(o={}),t.isFunction(o)&&(p=o,h=null,o={}),(typeof o=="number"||t.fx.speeds[o])&&(p=h,h=o,o={}),t.isFunction(h)&&(p=h,h=null),o&&t.extend(a,o),h=h||o.duration,a.duration=t.fx.off?0:typeof h=="number"?h:h in t.fx.speeds?t.fx.speeds[h]:t.fx.speeds._default,a.complete=p||o.complete,a}function n(a){return!a||typeof a=="number"||t.fx.speeds[a]?!0:typeof a!="string"||t.effects.effect[a]?t.isFunction(a)?!0:!(typeof a!="object"||a.effect):!0}t.extend(t.effects,{version:"1.11.1",save:function(a,o){for(var h=0;o.length>h;h++)o[h]!==null&&a.data(G+o[h],a[0].style[o[h]])},restore:function(a,o){var h,p;for(p=0;o.length>p;p++)o[p]!==null&&(h=a.data(G+o[p]),h===void 0&&(h=""),a.css(o[p],h))},setMode:function(a,o){return o==="toggle"&&(o=a.is(":hidden")?"show":"hide"),o},getBaseline:function(a,o){var h,p;switch(a[0]){case"top":h=0;break;case"middle":h=.5;break;case"bottom":h=1;break;default:h=a[0]/o.height}switch(a[1]){case"left":p=0;break;case"center":p=.5;break;case"right":p=1;break;default:p=a[1]/o.width}return{x:p,y:h}},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var o={width:a.outerWidth(!0),height:a.outerHeight(!0),float:a.css("float")},h=t("

    ").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),p={width:a.width(),height:a.height()},y=document.activeElement;try{y.id}catch(C){y=document.body}return a.wrap(h),(a[0]===y||t.contains(a[0],y))&&t(y).focus(),h=a.parent(),a.css("position")==="static"?(h.css({position:"relative"}),a.css({position:"relative"})):(t.extend(o,{position:a.css("position"),zIndex:a.css("z-index")}),t.each(["top","left","bottom","right"],function(C,D){o[D]=a.css(D),isNaN(parseInt(o[D],10))&&(o[D]="auto")}),a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),a.css(p),h.css(o).show()},removeWrapper:function(a){var o=document.activeElement;return a.parent().is(".ui-effects-wrapper")&&(a.parent().replaceWith(a),(a[0]===o||t.contains(a[0],o))&&t(o).focus()),a},setTransition:function(a,o,h,p){return p=p||{},t.each(o,function(y,C){var D=a.cssUnit(C);D[0]>0&&(p[C]=D[0]*h+D[1])}),p}}),t.fn.extend({effect:function(){function a(C){function D(){t.isFunction(L)&&L.call(P[0]),t.isFunction(C)&&C()}var P=t(this),L=o.complete,J=o.mode;(P.is(":hidden")?J==="hide":J==="show")?(P[J](),D()):y.call(P[0],o,D)}var o=e.apply(this,arguments),h=o.mode,p=o.queue,y=t.effects.effect[o.effect];return t.fx.off||!y?h?this[h](o.duration,o.complete):this.each(function(){o.complete&&o.complete.call(this)}):p===!1?this.each(a):this.queue(p||"fx",a)},show:function(a){return function(o){if(n(o))return a.apply(this,arguments);var h=e.apply(this,arguments);return h.mode="show",this.effect.call(this,h)}}(t.fn.show),hide:function(a){return function(o){if(n(o))return a.apply(this,arguments);var h=e.apply(this,arguments);return h.mode="hide",this.effect.call(this,h)}}(t.fn.hide),toggle:function(a){return function(o){if(n(o)||typeof o=="boolean")return a.apply(this,arguments);var h=e.apply(this,arguments);return h.mode="toggle",this.effect.call(this,h)}}(t.fn.toggle),cssUnit:function(a){var o=this.css(a),h=[];return t.each(["em","px","%","pt"],function(p,y){o.indexOf(y)>0&&(h=[parseFloat(o),y])}),h}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,a){e[a]=function(o){return Math.pow(o,n+2)}}),t.extend(e,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var a,o=4;((a=Math.pow(2,--o))-1)/11>n;);return 1/Math.pow(4,3-o)-7.5625*Math.pow((3*a-2)/22-n,2)}}),t.each(e,function(n,a){t.easing["easeIn"+n]=a,t.easing["easeOut"+n]=function(o){return 1-a(1-o)},t.easing["easeInOut"+n]=function(o){return .5>o?a(2*o)/2:1-a(-2*o+2)/2}})}(),t.effects,t.effects.effect.blind=function(e,n){var a,o,h,p=t(this),y=/up|down|vertical/,C=/up|left|vertical|horizontal/,D=["position","top","bottom","left","right","height","width"],P=t.effects.setMode(p,e.mode||"hide"),L=e.direction||"up",J=y.test(L),dt=J?"height":"width",Et=J?"top":"left",V=C.test(L),N={},tt=P==="show";p.parent().is(".ui-effects-wrapper")?t.effects.save(p.parent(),D):t.effects.save(p,D),p.show(),a=t.effects.createWrapper(p).css({overflow:"hidden"}),o=a[dt](),h=parseFloat(a.css(Et))||0,N[dt]=tt?o:0,V||(p.css(J?"bottom":"right",0).css(J?"top":"left","auto").css({position:"absolute"}),N[Et]=tt?h:o+h),tt&&(a.css(dt,0),V||a.css(Et,h+o)),a.animate(N,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){P==="hide"&&p.hide(),t.effects.restore(p,D),t.effects.removeWrapper(p),n()}})},t.effects.effect.bounce=function(e,n){var a,o,h,p=t(this),y=["position","top","bottom","left","right","height","width"],C=t.effects.setMode(p,e.mode||"effect"),D=C==="hide",P=C==="show",L=e.direction||"up",J=e.distance,dt=e.times||5,Et=2*dt+(P||D?1:0),V=e.duration/Et,N=e.easing,tt=L==="up"||L==="down"?"top":"left",ot=L==="up"||L==="left",X=p.queue(),K=X.length;for((P||D)&&y.push("opacity"),t.effects.save(p,y),p.show(),t.effects.createWrapper(p),J||(J=p[tt==="top"?"outerHeight":"outerWidth"]()/3),P&&(h={opacity:1},h[tt]=0,p.css("opacity",0).css(tt,ot?2*-J:2*J).animate(h,V,N)),D&&(J/=Math.pow(2,dt-1)),h={},h[tt]=0,a=0;dt>a;a++)o={},o[tt]=(ot?"-=":"+=")+J,p.animate(o,V,N).animate(h,V,N),J=D?2*J:J/2;D&&(o={opacity:0},o[tt]=(ot?"-=":"+=")+J,p.animate(o,V,N)),p.queue(function(){D&&p.hide(),t.effects.restore(p,y),t.effects.removeWrapper(p),n()}),K>1&&X.splice.apply(X,[1,0].concat(X.splice(K,Et+1))),p.dequeue()},t.effects.effect.clip=function(e,n){var a,o,h,p=t(this),y=["position","top","bottom","left","right","height","width"],C=t.effects.setMode(p,e.mode||"hide"),D=C==="show",P=e.direction||"vertical",L=P==="vertical",J=L?"height":"width",dt=L?"top":"left",Et={};t.effects.save(p,y),p.show(),a=t.effects.createWrapper(p).css({overflow:"hidden"}),o=p[0].tagName==="IMG"?a:p,h=o[J](),D&&(o.css(J,0),o.css(dt,h/2)),Et[J]=D?h:0,Et[dt]=D?0:h/2,o.animate(Et,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){D||p.hide(),t.effects.restore(p,y),t.effects.removeWrapper(p),n()}})},t.effects.effect.drop=function(e,n){var a,o=t(this),h=["position","top","bottom","left","right","opacity","height","width"],p=t.effects.setMode(o,e.mode||"hide"),y=p==="show",C=e.direction||"left",D=C==="up"||C==="down"?"top":"left",P=C==="up"||C==="left"?"pos":"neg",L={opacity:y?1:0};t.effects.save(o,h),o.show(),t.effects.createWrapper(o),a=e.distance||o[D==="top"?"outerHeight":"outerWidth"](!0)/2,y&&o.css("opacity",0).css(D,P==="pos"?-a:a),L[D]=(y?P==="pos"?"+=":"-=":P==="pos"?"-=":"+=")+a,o.animate(L,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){p==="hide"&&o.hide(),t.effects.restore(o,h),t.effects.removeWrapper(o),n()}})},t.effects.effect.explode=function(e,n){function a(){X.push(this),X.length===L*J&&o()}function o(){dt.css({visibility:"visible"}),t(X).remove(),V||dt.hide(),n()}var h,p,y,C,D,P,L=e.pieces?Math.round(Math.sqrt(e.pieces)):3,J=L,dt=t(this),Et=t.effects.setMode(dt,e.mode||"hide"),V=Et==="show",N=dt.show().css("visibility","hidden").offset(),tt=Math.ceil(dt.outerWidth()/J),ot=Math.ceil(dt.outerHeight()/L),X=[];for(h=0;L>h;h++)for(C=N.top+h*ot,P=h-(L-1)/2,p=0;J>p;p++)y=N.left+p*tt,D=p-(J-1)/2,dt.clone().appendTo("body").wrap("
    ").css({position:"absolute",visibility:"visible",left:-p*tt,top:-h*ot}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:tt,height:ot,left:y+(V?D*tt:0),top:C+(V?P*ot:0),opacity:V?0:1}).animate({left:y+(V?0:D*tt),top:C+(V?0:P*ot),opacity:V?1:0},e.duration||500,e.easing,a)},t.effects.effect.fade=function(e,n){var a=t(this),o=t.effects.setMode(a,e.mode||"toggle");a.animate({opacity:o},{queue:!1,duration:e.duration,easing:e.easing,complete:n})},t.effects.effect.fold=function(e,n){var a,o,h=t(this),p=["position","top","bottom","left","right","height","width"],y=t.effects.setMode(h,e.mode||"hide"),C=y==="show",D=y==="hide",P=e.size||15,L=/([0-9]+)%/.exec(P),J=!!e.horizFirst,dt=C!==J,Et=dt?["width","height"]:["height","width"],V=e.duration/2,N={},tt={};t.effects.save(h,p),h.show(),a=t.effects.createWrapper(h).css({overflow:"hidden"}),o=dt?[a.width(),a.height()]:[a.height(),a.width()],L&&(P=parseInt(L[1],10)/100*o[D?0:1]),C&&a.css(J?{height:0,width:P}:{height:P,width:0}),N[Et[0]]=C?o[0]:P,tt[Et[1]]=C?o[1]:0,a.animate(N,V,e.easing).animate(tt,V,e.easing,function(){D&&h.hide(),t.effects.restore(h,p),t.effects.removeWrapper(h),n()})},t.effects.effect.highlight=function(e,n){var a=t(this),o=["backgroundImage","backgroundColor","opacity"],h=t.effects.setMode(a,e.mode||"show"),p={backgroundColor:a.css("backgroundColor")};h==="hide"&&(p.opacity=0),t.effects.save(a,o),a.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(p,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){h==="hide"&&a.hide(),t.effects.restore(a,o),n()}})},t.effects.effect.size=function(e,n){var a,o,h,p=t(this),y=["position","top","bottom","left","right","width","height","overflow","opacity"],C=["position","top","bottom","left","right","overflow","opacity"],D=["width","height","overflow"],P=["fontSize"],L=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],J=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],dt=t.effects.setMode(p,e.mode||"effect"),Et=e.restore||dt!=="effect",V=e.scale||"both",N=e.origin||["middle","center"],tt=p.css("position"),ot=Et?y:C,X={height:0,width:0,outerHeight:0,outerWidth:0};dt==="show"&&p.show(),a={height:p.height(),width:p.width(),outerHeight:p.outerHeight(),outerWidth:p.outerWidth()},e.mode==="toggle"&&dt==="show"?(p.from=e.to||X,p.to=e.from||a):(p.from=e.from||(dt==="show"?X:a),p.to=e.to||(dt==="hide"?X:a)),h={from:{y:p.from.height/a.height,x:p.from.width/a.width},to:{y:p.to.height/a.height,x:p.to.width/a.width}},(V==="box"||V==="both")&&(h.from.y!==h.to.y&&(ot=ot.concat(L),p.from=t.effects.setTransition(p,L,h.from.y,p.from),p.to=t.effects.setTransition(p,L,h.to.y,p.to)),h.from.x!==h.to.x&&(ot=ot.concat(J),p.from=t.effects.setTransition(p,J,h.from.x,p.from),p.to=t.effects.setTransition(p,J,h.to.x,p.to))),(V==="content"||V==="both")&&h.from.y!==h.to.y&&(ot=ot.concat(P).concat(D),p.from=t.effects.setTransition(p,P,h.from.y,p.from),p.to=t.effects.setTransition(p,P,h.to.y,p.to)),t.effects.save(p,ot),p.show(),t.effects.createWrapper(p),p.css("overflow","hidden").css(p.from),N&&(o=t.effects.getBaseline(N,a),p.from.top=(a.outerHeight-p.outerHeight())*o.y,p.from.left=(a.outerWidth-p.outerWidth())*o.x,p.to.top=(a.outerHeight-p.to.outerHeight)*o.y,p.to.left=(a.outerWidth-p.to.outerWidth)*o.x),p.css(p.from),(V==="content"||V==="both")&&(L=L.concat(["marginTop","marginBottom"]).concat(P),J=J.concat(["marginLeft","marginRight"]),D=y.concat(L).concat(J),p.find("*[width]").each(function(){var K=t(this),at={height:K.height(),width:K.width(),outerHeight:K.outerHeight(),outerWidth:K.outerWidth()};Et&&t.effects.save(K,D),K.from={height:at.height*h.from.y,width:at.width*h.from.x,outerHeight:at.outerHeight*h.from.y,outerWidth:at.outerWidth*h.from.x},K.to={height:at.height*h.to.y,width:at.width*h.to.x,outerHeight:at.height*h.to.y,outerWidth:at.width*h.to.x},h.from.y!==h.to.y&&(K.from=t.effects.setTransition(K,L,h.from.y,K.from),K.to=t.effects.setTransition(K,L,h.to.y,K.to)),h.from.x!==h.to.x&&(K.from=t.effects.setTransition(K,J,h.from.x,K.from),K.to=t.effects.setTransition(K,J,h.to.x,K.to)),K.css(K.from),K.animate(K.to,e.duration,e.easing,function(){Et&&t.effects.restore(K,D)})})),p.animate(p.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){p.to.opacity===0&&p.css("opacity",p.from.opacity),dt==="hide"&&p.hide(),t.effects.restore(p,ot),Et||(tt==="static"?p.css({position:"relative",top:p.to.top,left:p.to.left}):t.each(["top","left"],function(K,at){p.css(at,function(st,bt){var $t=parseInt(bt,10),Ht=K?p.to.left:p.to.top;return bt==="auto"?Ht+"px":$t+Ht+"px"})})),t.effects.removeWrapper(p),n()}})},t.effects.effect.scale=function(e,n){var a=t(this),o=t.extend(!0,{},e),h=t.effects.setMode(a,e.mode||"effect"),p=parseInt(e.percent,10)||(parseInt(e.percent,10)===0||h==="hide"?0:100),y=e.direction||"both",C=e.origin,D={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},P={y:y!=="horizontal"?p/100:1,x:y!=="vertical"?p/100:1};o.effect="size",o.queue=!1,o.complete=n,h!=="effect"&&(o.origin=C||["middle","center"],o.restore=!0),o.from=e.from||(h==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:D),o.to={height:D.height*P.y,width:D.width*P.x,outerHeight:D.outerHeight*P.y,outerWidth:D.outerWidth*P.x},o.fade&&(h==="show"&&(o.from.opacity=0,o.to.opacity=1),h==="hide"&&(o.from.opacity=1,o.to.opacity=0)),a.effect(o)},t.effects.effect.puff=function(e,n){var a=t(this),o=t.effects.setMode(a,e.mode||"hide"),h=o==="hide",p=parseInt(e.percent,10)||150,y=p/100,C={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:o,complete:n,percent:h?p:100,from:h?C:{height:C.height*y,width:C.width*y,outerHeight:C.outerHeight*y,outerWidth:C.outerWidth*y}}),a.effect(e)},t.effects.effect.pulsate=function(e,n){var a,o=t(this),h=t.effects.setMode(o,e.mode||"show"),p=h==="show",y=h==="hide",C=p||h==="hide",D=2*(e.times||5)+(C?1:0),P=e.duration/D,L=0,J=o.queue(),dt=J.length;for((p||!o.is(":visible"))&&(o.css("opacity",0).show(),L=1),a=1;D>a;a++)o.animate({opacity:L},P,e.easing),L=1-L;o.animate({opacity:L},P,e.easing),o.queue(function(){y&&o.hide(),n()}),dt>1&&J.splice.apply(J,[1,0].concat(J.splice(dt,D+1))),o.dequeue()},t.effects.effect.shake=function(e,n){var a,o=t(this),h=["position","top","bottom","left","right","height","width"],p=t.effects.setMode(o,e.mode||"effect"),y=e.direction||"left",C=e.distance||20,D=e.times||3,P=2*D+1,L=Math.round(e.duration/P),J=y==="up"||y==="down"?"top":"left",dt=y==="up"||y==="left",Et={},V={},N={},tt=o.queue(),ot=tt.length;for(t.effects.save(o,h),o.show(),t.effects.createWrapper(o),Et[J]=(dt?"-=":"+=")+C,V[J]=(dt?"+=":"-=")+2*C,N[J]=(dt?"-=":"+=")+2*C,o.animate(Et,L,e.easing),a=1;D>a;a++)o.animate(V,L,e.easing).animate(N,L,e.easing);o.animate(V,L,e.easing).animate(Et,L/2,e.easing).queue(function(){p==="hide"&&o.hide(),t.effects.restore(o,h),t.effects.removeWrapper(o),n()}),ot>1&&tt.splice.apply(tt,[1,0].concat(tt.splice(ot,P+1))),o.dequeue()},t.effects.effect.slide=function(e,n){var a,o=t(this),h=["position","top","bottom","left","right","width","height"],p=t.effects.setMode(o,e.mode||"show"),y=p==="show",C=e.direction||"left",D=C==="up"||C==="down"?"top":"left",P=C==="up"||C==="left",L={};t.effects.save(o,h),o.show(),a=e.distance||o[D==="top"?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(o).css({overflow:"hidden"}),y&&o.css(D,P?isNaN(a)?"-"+a:-a:a),L[D]=(y?P?"+=":"-=":P?"-=":"+=")+a,o.animate(L,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){p==="hide"&&o.hide(),t.effects.restore(o,h),t.effects.removeWrapper(o),n()}})},t.effects.effect.transfer=function(e,n){var a=t(this),o=t(e.to),h=o.css("position")==="fixed",p=t("body"),y=h?p.scrollTop():0,C=h?p.scrollLeft():0,D=o.offset(),P={top:D.top-y,left:D.left-C,height:o.innerHeight(),width:o.innerWidth()},L=a.offset(),J=t("
    ").appendTo(document.body).addClass(e.className).css({top:L.top-y,left:L.left-C,height:a.innerHeight(),width:a.innerWidth(),position:h?"fixed":"absolute"}).animate(P,e.duration,e.easing,function(){J.remove(),n()})},t.widget("ui.progressbar",{version:"1.11.1",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("
    ").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return e===void 0?this.options.value:(this.options.value=this._constrainedValue(e),this._refreshValue(),void 0)},_constrainedValue:function(e){return e===void 0&&(e=this.options.value),this.indeterminate=e===!1,typeof e!="number"&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var n=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(n),this._refreshValue()},_setOption:function(e,n){e==="max"&&(n=Math.max(this.min,n)),e==="disabled"&&this.element.toggleClass("ui-state-disabled",!!n).attr("aria-disabled",n),this._super(e,n)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(n.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("
    ").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.11.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,n=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(n.options.filter,n.element[0]),e.addClass("ui-selectee"),e.each(function(){var a=t(this),o=a.offset();t.data(this,"selectable-item",{element:this,$element:a,left:o.left,top:o.top,right:o.left+a.outerWidth(),bottom:o.top+a.outerHeight(),startselected:!1,selected:a.hasClass("ui-selected"),selecting:a.hasClass("ui-selecting"),unselecting:a.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
    ")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var n=this,a=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(a.filter,this.element[0]),this._trigger("start",e),t(a.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),a.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var o=t.data(this,"selectable-item");o.startselected=!0,e.metaKey||e.ctrlKey||(o.$element.removeClass("ui-selected"),o.selected=!1,o.$element.addClass("ui-unselecting"),o.unselecting=!0,n._trigger("unselecting",e,{unselecting:o.element}))}),t(e.target).parents().addBack().each(function(){var o,h=t.data(this,"selectable-item");return h?(o=!e.metaKey&&!e.ctrlKey||!h.$element.hasClass("ui-selected"),h.$element.removeClass(o?"ui-unselecting":"ui-selected").addClass(o?"ui-selecting":"ui-unselecting"),h.unselecting=!o,h.selecting=o,h.selected=o,o?n._trigger("selecting",e,{selecting:h.element}):n._trigger("unselecting",e,{unselecting:h.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var n,a=this,o=this.options,h=this.opos[0],p=this.opos[1],y=e.pageX,C=e.pageY;return h>y&&(n=y,y=h,h=n),p>C&&(n=C,C=p,p=n),this.helper.css({left:h,top:p,width:y-h,height:C-p}),this.selectees.each(function(){var D=t.data(this,"selectable-item"),P=!1;D&&D.element!==a.element[0]&&(o.tolerance==="touch"?P=!(D.left>y||h>D.right||D.top>C||p>D.bottom):o.tolerance==="fit"&&(P=D.left>h&&y>D.right&&D.top>p&&C>D.bottom),P?(D.selected&&(D.$element.removeClass("ui-selected"),D.selected=!1),D.unselecting&&(D.$element.removeClass("ui-unselecting"),D.unselecting=!1),D.selecting||(D.$element.addClass("ui-selecting"),D.selecting=!0,a._trigger("selecting",e,{selecting:D.element}))):(D.selecting&&((e.metaKey||e.ctrlKey)&&D.startselected?(D.$element.removeClass("ui-selecting"),D.selecting=!1,D.$element.addClass("ui-selected"),D.selected=!0):(D.$element.removeClass("ui-selecting"),D.selecting=!1,D.startselected&&(D.$element.addClass("ui-unselecting"),D.unselecting=!0),a._trigger("unselecting",e,{unselecting:D.element}))),D.selected&&(e.metaKey||e.ctrlKey||D.startselected||(D.$element.removeClass("ui-selected"),D.selected=!1,D.$element.addClass("ui-unselecting"),D.unselecting=!0,a._trigger("unselecting",e,{unselecting:D.element})))))}),!1}},_mouseStop:function(e){var n=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var a=t.data(this,"selectable-item");a.$element.removeClass("ui-unselecting"),a.unselecting=!1,a.startselected=!1,n._trigger("unselected",e,{unselected:a.element})}),t(".ui-selecting",this.element[0]).each(function(){var a=t.data(this,"selectable-item");a.$element.removeClass("ui-selecting").addClass("ui-selected"),a.selecting=!1,a.selected=!0,a.startselected=!0,n._trigger("selected",e,{selected:a.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",{version:"1.11.1",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this.value()!==""&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},n=this.element;return t.each(["min","max","step"],function(a,o){var h=n.attr(o);h!==void 0&&h.length&&(e[o]=h)}),e},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel:function(e,n){if(n){if(!this.spinning&&!this._start(e))return!1;this._spin((n>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){function n(){var o=this.element[0]===this.document[0].activeElement;o||(this.element.focus(),this.previous=a,this._delay(function(){this.previous=a}))}var a;a=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(e){var n=this.options,a=t.ui.keyCode;switch(e.keyCode){case a.UP:return this._repeat(null,1,e),!0;case a.DOWN:return this._repeat(null,-1,e),!0;case a.PAGE_UP:return this._repeat(null,n.page,e),!0;case a.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,n,a){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,n,a)},e),this._spin(n*this.options.step,a)},_spin:function(e,n){var a=this.value()||0;this.counter||(this.counter=1),a=this._adjustValue(a+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",n,{value:a})===!1||(this._value(a),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var n=""+e,a=n.indexOf(".");return a===-1?0:n.length-a-1},_adjustValue:function(e){var n,a,o=this.options;return n=o.min!==null?o.min:0,a=e-n,a=Math.round(a/o.step)*o.step,e=n+a,e=parseFloat(e.toFixed(this._precision())),o.max!==null&&e>o.max?o.max:o.min!==null&&o.min>e?o.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,n){if(e==="culture"||e==="numberFormat"){var a=this._parse(this.element.val());return this.options[e]=n,this.element.val(this._format(a)),void 0}(e==="max"||e==="min"||e==="step")&&typeof n=="string"&&(n=this._parse(n)),e==="icons"&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(n.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(n.down)),this._super(e,n),e==="disabled"&&(this.widget().toggleClass("ui-state-disabled",!!n),this.element.prop("disabled",!!n),this.buttons.button(n?"disable":"enable"))},_setOptions:b(function(e){this._super(e)}),_parse:function(e){return typeof e=="string"&&e!==""&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),e===""||isNaN(e)?null:e},_format:function(e){return e===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return e===null?!1:e===this._adjustValue(e)},_value:function(e,n){var a;e!==""&&(a=this._parse(e),a!==null&&(n||(a=this._adjustValue(a)),e=this._format(a))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:b(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:b(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:b(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?(b(this._value).call(this,e),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.widget("ui.tabs",{version:"1.11.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(n){var a,o;n=n.cloneNode(!1),a=n.href.replace(e,""),o=location.href.replace(e,"");try{a=decodeURIComponent(a)}catch(h){}try{o=decodeURIComponent(o)}catch(h){}return n.hash.length>1&&a===o}}(),_create:function(){var e=this,n=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible),this._processTabs(),n.active=this._initialActive(),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(a){return e.tabs.index(a)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(n.active):t(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var e=this.options.active,n=this.options.collapsible,a=location.hash.substring(1);return e===null&&(a&&this.tabs.each(function(o,h){return t(h).attr("aria-controls")===a?(e=o,!1):void 0}),e===null&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(e===null||e===-1)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),e===-1&&(e=n?!1:0)),!n&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(this.document[0].activeElement).closest("li"),a=this.tabs.index(n),o=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:a++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,a--;break;case t.ui.keyCode.END:a=this.anchors.length-1;break;case t.ui.keyCode.HOME:a=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),this._activate(a),void 0;case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),this._activate(a===this.options.active?!1:a),void 0;default:return}e.preventDefault(),clearTimeout(this.activating),a=this._focusNextTab(a,o),e.ctrlKey||(n.attr("aria-selected","false"),this.tabs.eq(a).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",a)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){function a(){return e>o&&(e=0),0>e&&(e=o),e}for(var o=this.tabs.length-1;t.inArray(a(),this.options.disabled)!==-1;)e=n?e+1:e-1;return e},_focusNextTab:function(e,n){return e=this._findNextTab(e,n),this.tabs.eq(e).focus(),e},_setOption:function(e,n){return e==="active"?(this._activate(n),void 0):e==="disabled"?(this._setupDisabled(n),void 0):(this._super(e,n),e==="collapsible"&&(this.element.toggleClass("ui-tabs-collapsible",n),n||this.options.active!==!1||this._activate(0)),e==="event"&&this._setupEvents(n),e==="heightStyle"&&this._setupHeightStyle(n),void 0)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),function(a){return n.index(a)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(n){t(this).is(".ui-state-disabled")&&n.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(n,a){var o,h,p,y=t(a).uniqueId().attr("id"),C=t(a).closest("li"),D=C.attr("aria-controls");e._isLocal(a)?(o=a.hash,p=o.substring(1),h=e.element.find(e._sanitizeSelector(o))):(p=C.attr("aria-controls")||t({}).uniqueId()[0].id,o="#"+p,h=e.element.find(o),h.length||(h=e._createPanel(p),h.insertAfter(e.panels[n-1]||e.tablist)),h.attr("aria-live","polite")),h.length&&(e.panels=e.panels.add(h)),D&&C.data("ui-tabs-aria-controls",D),C.attr({"aria-controls":p,"aria-labelledby":y}),h.attr("aria-labelledby",y)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("
    ").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var n,a=0;n=this.tabs[a];a++)e===!0||t.inArray(a,e)!==-1?t(n).addClass("ui-state-disabled").attr("aria-disabled","true"):t(n).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var n={};e&&t.each(e.split(" "),function(a,o){n[o]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(a){a.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,a=this.element.parent();e==="fill"?(n=a.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var o=t(this),h=o.css("position");h!=="absolute"&&h!=="fixed"&&(n-=o.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):e==="auto"&&(n=0,this.panels.each(function(){n=Math.max(n,t(this).height("").height())}).height(n))},_eventHandler:function(e){var n=this.options,a=this.active,o=t(e.currentTarget),h=o.closest("li"),p=h[0]===a[0],y=p&&n.collapsible,C=y?t():this._getPanelForTab(h),D=a.length?this._getPanelForTab(a):t(),P={oldTab:a,oldPanel:D,newTab:y?t():h,newPanel:C};e.preventDefault(),h.hasClass("ui-state-disabled")||h.hasClass("ui-tabs-loading")||this.running||p&&!n.collapsible||this._trigger("beforeActivate",e,P)===!1||(n.active=y?!1:this.tabs.index(h),this.active=p?t():h,this.xhr&&this.xhr.abort(),D.length||C.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),C.length&&this.load(this.tabs.index(h),e),this._toggle(e,P))},_toggle:function(e,n){function a(){h.running=!1,h._trigger("activate",e,n)}function o(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),p.length&&h.options.show?h._show(p,h.options.show,a):(p.show(),a())}var h=this,p=n.newPanel,y=n.oldPanel;this.running=!0,y.length&&this.options.hide?this._hide(y,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),y.hide(),o()),y.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),p.length&&y.length?n.oldTab.attr("tabIndex",-1):p.length&&this.tabs.filter(function(){return t(this).attr("tabIndex")===0}).attr("tabIndex",-1),p.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var n,a=this._findActive(e);a[0]!==this.active[0]&&(a.length||(a=this.active),n=a.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(e){var n=this.options.disabled;n!==!1&&(e===void 0?n=!1:(e=this._getIndex(e),n=t.isArray(n)?t.map(n,function(a){return a!==e?a:null}):t.map(this.tabs,function(a,o){return o!==e?o:null})),this._setupDisabled(n))},disable:function(e){var n=this.options.disabled;if(n!==!0){if(e===void 0)n=!0;else{if(e=this._getIndex(e),t.inArray(e,n)!==-1)return;n=t.isArray(n)?t.merge([e],n).sort():[e]}this._setupDisabled(n)}},load:function(e,n){e=this._getIndex(e);var a=this,o=this.tabs.eq(e),h=o.find(".ui-tabs-anchor"),p=this._getPanelForTab(o),y={tab:o,panel:p};this._isLocal(h[0])||(this.xhr=t.ajax(this._ajaxSettings(h,n,y)),this.xhr&&this.xhr.statusText!=="canceled"&&(o.addClass("ui-tabs-loading"),p.attr("aria-busy","true"),this.xhr.success(function(C){setTimeout(function(){p.html(C),a._trigger("load",n,y)},1)}).complete(function(C,D){setTimeout(function(){D==="abort"&&a.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),p.removeAttr("aria-busy"),C===a.xhr&&delete a.xhr},1)})))},_ajaxSettings:function(e,n,a){var o=this;return{url:e.attr("href"),beforeSend:function(h,p){return o._trigger("beforeLoad",n,t.extend({jqXHR:h,ajaxSettings:p},a))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),t.widget("ui.tooltip",{version:"1.11.1",options:{content:function(){var e=t(this).attr("title")||"";return t("").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(e,n){var a=(e.attr("aria-describedby")||"").split(/\s+/);a.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(a.join(" ")))},_removeDescribedBy:function(e){var n=e.data("ui-tooltip-id"),a=(e.attr("aria-describedby")||"").split(/\s+/),o=t.inArray(n,a);o!==-1&&a.splice(o,1),e.removeData("ui-tooltip-id"),a=t.trim(a.join(" ")),a?e.attr("aria-describedby",a):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=t("
    ").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,n){var a=this;return e==="disabled"?(this[n?"_disable":"_enable"](),this.options[e]=n,void 0):(this._super(e,n),e==="content"&&t.each(this.tooltips,function(o,h){a._updateContent(h)}),void 0)},_disable:function(){var e=this;t.each(this.tooltips,function(n,a){var o=t.Event("blur");o.target=o.currentTarget=a[0],e.close(o,!0)}),this.element.find(this.options.items).addBack().each(function(){var n=t(this);n.is("[title]")&&n.data("ui-tooltip-title",n.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var n=this,a=t(e?e.target:this.element).closest(this.options.items);a.length&&!a.data("ui-tooltip-id")&&(a.attr("title")&&a.data("ui-tooltip-title",a.attr("title")),a.data("ui-tooltip-open",!0),e&&e.type==="mouseover"&&a.parents().each(function(){var o,h=t(this);h.data("ui-tooltip-open")&&(o=t.Event("blur"),o.target=o.currentTarget=this,n.close(o,!0)),h.attr("title")&&(h.uniqueId(),n.parents[this.id]={element:this,title:h.attr("title")},h.attr("title",""))}),this._updateContent(a,e))},_updateContent:function(e,n){var a,o=this.options.content,h=this,p=n?n.type:null;return typeof o=="string"?this._open(n,e,o):(a=o.call(e[0],function(y){e.data("ui-tooltip-open")&&h._delay(function(){n&&(n.type=p),this._open(n,e,y)})}),a&&this._open(n,e,a),void 0)},_open:function(e,n,a){function o(P){D.of=P,h.is(":hidden")||h.position(D)}var h,p,y,C,D=t.extend({},this.options.position);if(a){if(h=this._find(n),h.length)return h.find(".ui-tooltip-content").html(a),void 0;n.is("[title]")&&(e&&e.type==="mouseover"?n.attr("title",""):n.removeAttr("title")),h=this._tooltip(n),this._addDescribedBy(n,h.attr("id")),h.find(".ui-tooltip-content").html(a),this.liveRegion.children().hide(),a.clone?(C=a.clone(),C.removeAttr("id").find("[id]").removeAttr("id")):C=a,t("
    ").html(C).appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:o}),o(e)):h.position(t.extend({of:n},this.options.position)),this.hiding=!1,this.closing=!1,h.hide(),this._show(h,this.options.show),this.options.show&&this.options.show.delay&&(y=this.delayedShow=setInterval(function(){h.is(":visible")&&(o(D.of),clearInterval(y))},t.fx.interval)),this._trigger("open",e,{tooltip:h}),p={keyup:function(P){if(P.keyCode===t.ui.keyCode.ESCAPE){var L=t.Event(P);L.currentTarget=n[0],this.close(L,!0)}}},n[0]!==this.element[0]&&(p.remove=function(){this._removeTooltip(h)}),e&&e.type!=="mouseover"||(p.mouseleave="close"),e&&e.type!=="focusin"||(p.focusout="close"),this._on(!0,n,p)}},close:function(e){var n=this,a=t(e?e.currentTarget:this.element),o=this._find(a);this.closing||(clearInterval(this.delayedShow),a.data("ui-tooltip-title")&&!a.attr("title")&&a.attr("title",a.data("ui-tooltip-title")),this._removeDescribedBy(a),this.hiding=!0,o.stop(!0),this._hide(o,this.options.hide,function(){n._removeTooltip(t(this)),this.hiding=!1,this.closing=!1}),a.removeData("ui-tooltip-open"),this._off(a,"mouseleave focusout keyup"),a[0]!==this.element[0]&&this._off(a,"remove"),this._off(this.document,"mousemove"),e&&e.type==="mouseleave"&&t.each(this.parents,function(h,p){t(p.element).attr("title",p.title),delete n.parents[h]}),this.closing=!0,this._trigger("close",e,{tooltip:o}),this.hiding||(this.closing=!1))},_tooltip:function(e){var n=t("
    ").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),a=n.uniqueId().attr("id");return t("
    ").addClass("ui-tooltip-content").appendTo(n),n.appendTo(this.document[0].body),this.tooltips[a]=e,n},_find:function(e){var n=e.data("ui-tooltip-id");return n?t("#"+n):t()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(n,a){var o=t.Event("blur");o.target=o.currentTarget=a[0],e.close(o,!0),t("#"+n).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})})}),Uu={};wv(Uu,{default:()=>el});xv=Fu(Wu());_v(Uu,Fu(Wu()));Bu=xv,{default:ju}=Bu,kv=Ri(Bu,["default"]),el=ju!==void 0?ju:kv;});var qu={};oo(qu,{default:()=>el});var Vu=zi(()=>{il();il()});function ur(t){for(var i=1;i"u")){f=ur({},i,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),c=encodeURIComponent(c).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var g="";for(var b in f)f[b]&&(g+="; "+b,f[b]!==!0&&(g+="="+f[b].split(";")[0]));return document.cookie=c+"="+t.write(d,c)+g}}function l(c){if(!(typeof document>"u"||arguments.length&&!c)){for(var d=document.cookie?document.cookie.split("; "):[],f={},g=0;g()=>(i||t((i={exports:{}}).exports,i),i.exports),Hd=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Nd(i))!zd.call(t,c)&&c!==r&&Dl(t,c,{get:()=>i[c],enumerable:!(l=Od(i,c))||l.enumerable});return t},Bd=(t,i,r)=>(r=t!=null?Pd(Rd(t)):{},Hd(i||!t||!t.__esModule?Dl(r,"default",{value:t,enumerable:!0}):r,t)),jd=Ld((t,i)=>{(function(){function r(x,w){if(!(this instanceof r))return new r(x,w);if(!x||x.tagName!=="TABLE")throw new Error("Element must be a table");this.init(x,w||{})}var l=[],c=function(x){var w;return!window.CustomEvent||typeof window.CustomEvent!="function"?(w=document.createEvent("CustomEvent"),w.initCustomEvent(x,!1,!1,void 0)):w=new CustomEvent(x),w},d=function(x,w){var A=w.sortAttribute||"data-sort";return x.hasAttribute(A)?x.getAttribute(A):x.textContent||x.innerText||""},f=function(x,w){return x=x.trim().toLowerCase(),w=w.trim().toLowerCase(),x===w?0:x0)if(x.tHead&&x.tHead.rows.length>0){for(E=0;E0&&Y.push(U),ct++;if(!Y)return}for(ct=0;ct()=>(i||t((i={exports:{}}).exports,i),i.exports),Gd=(t,i,r,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Ud(i))!Vd.call(t,c)&&c!==r&&Pl(t,c,{get:()=>i[c],enumerable:!(l=Wd(i,c))||l.enumerable});return t},Kd=(t,i,r)=>(r=t!=null?Fd(qd(t)):{},Gd(i||!t||!t.__esModule?Pl(r,"default",{value:t,enumerable:!0}):r,t)),Xd=Yd((t,i)=>{(function(r,l){"use strict";typeof i=="object"&&typeof i.exports=="object"?i.exports=r.document?l(r,!0):function(c){if(!c.document)throw new Error("jQuery requires a window with a document");return l(c)}:l(r)})(typeof window<"u"?window:t,function(r,l){"use strict";var c=[],d=Object.getPrototypeOf,f=c.slice,g=c.flat?function(s){return c.flat.call(s)}:function(s){return c.concat.apply([],s)},b=c.push,x=c.indexOf,w={},A=w.toString,M=w.hasOwnProperty,O=M.toString,E=O.call(Object),U={},Y=function(s){return typeof s=="function"&&typeof s.nodeType!="number"&&typeof s.item!="function"},ct=function(s){return s!=null&&s===s.window},G=r.document,wt={type:!0,src:!0,nonce:!0,noModule:!0};function e(s,u,m){m=m||G;var v,_,k=m.createElement("script");if(k.text=s,u)for(v in wt)_=u[v]||u.getAttribute&&u.getAttribute(v),_&&k.setAttribute(v,_);m.head.appendChild(k).parentNode.removeChild(k)}function n(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?w[A.call(s)]||"object":typeof s}var a="3.6.1",o=function(s,u){return new o.fn.init(s,u)};o.fn=o.prototype={jquery:a,constructor:o,length:0,toArray:function(){return f.call(this)},get:function(s){return s==null?f.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var u=o.merge(this.constructor(),s);return u.prevObject=this,u},each:function(s){return o.each(this,s)},map:function(s){return this.pushStack(o.map(this,function(u,m){return s.call(u,m,u)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(o.grep(this,function(s,u){return(u+1)%2}))},odd:function(){return this.pushStack(o.grep(this,function(s,u){return u%2}))},eq:function(s){var u=this.length,m=+s+(s<0?u:0);return this.pushStack(m>=0&&m0&&u-1 in s}var p=function(s){var u,m,v,_,k,T,W,B,nt,pt,xt,ht,mt,Xt,se,Jt,Je,Ye,Si,Se="sizzle"+1*new Date,ae=s.document,bi=0,ve=0,Re=ar(),ko=ar(),nr=ar(),Ti=ar(),En=function(I,j){return I===j&&(xt=!0),0},An={}.hasOwnProperty,wi=[],fn=wi.pop,Oi=wi.push,mn=wi.push,ml=wi.slice,$n=function(I,j){for(var Z=0,gt=I.length;Z+~]|"+xe+")"+xe+"*"),yd=new RegExp(xe+"|>"),bd=new RegExp(aa),wd=new RegExp("^"+Dn+"$"),rr={ID:new RegExp("^#("+Dn+")"),CLASS:new RegExp("^\\.("+Dn+")"),TAG:new RegExp("^("+Dn+"|[*])"),ATTR:new RegExp("^"+gl),PSEUDO:new RegExp("^"+aa),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+xe+"*(even|odd|(([+-]|)(\\d*)n|)"+xe+"*(?:([+-]|)"+xe+"*(\\d+)|))"+xe+"*\\)|)","i"),bool:new RegExp("^(?:"+ra+")$","i"),needsContext:new RegExp("^"+xe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+xe+"*((?:-\\d)?\\d*)"+xe+"*\\)|)(?=[^-]|$)","i")},_d=/HTML$/i,xd=/^(?:input|select|textarea|button)$/i,kd=/^h\d$/i,Co=/^[^{]+\{\s*\[native \w/,Cd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sa=/[+~]/,sn=new RegExp("\\\\[\\da-fA-F]{1,6}"+xe+"?|\\\\([^\\r\\n\\f])","g"),ln=function(I,j){var Z="0x"+I.slice(1)-65536;return j||(Z<0?String.fromCharCode(Z+65536):String.fromCharCode(Z>>10|55296,Z&1023|56320))},yl=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bl=function(I,j){return j?I==="\0"?"\uFFFD":I.slice(0,-1)+"\\"+I.charCodeAt(I.length-1).toString(16)+" ":"\\"+I},wl=function(){ht()},Sd=lr(function(I){return I.disabled===!0&&I.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{mn.apply(wi=ml.call(ae.childNodes),ae.childNodes),wi[ae.childNodes.length].nodeType}catch(I){mn={apply:wi.length?function(j,Z){Oi.apply(j,ml.call(Z))}:function(j,Z){for(var gt=j.length,it=0;j[gt++]=Z[it++];);j.length=gt-1}}}function Ee(I,j,Z,gt){var it,yt,Tt,zt,jt,ee,te,ne=j&&j.ownerDocument,de=j?j.nodeType:9;if(Z=Z||[],typeof I!="string"||!I||de!==1&&de!==9&&de!==11)return Z;if(!gt&&(ht(j),j=j||mt,se)){if(de!==11&&(jt=Cd.exec(I)))if(it=jt[1]){if(de===9)if(Tt=j.getElementById(it)){if(Tt.id===it)return Z.push(Tt),Z}else return Z;else if(ne&&(Tt=ne.getElementById(it))&&Si(j,Tt)&&Tt.id===it)return Z.push(Tt),Z}else{if(jt[2])return mn.apply(Z,j.getElementsByTagName(I)),Z;if((it=jt[3])&&m.getElementsByClassName&&j.getElementsByClassName)return mn.apply(Z,j.getElementsByClassName(it)),Z}if(m.qsa&&!Ti[I+" "]&&(!Jt||!Jt.test(I))&&(de!==1||j.nodeName.toLowerCase()!=="object")){if(te=I,ne=j,de===1&&(yd.test(I)||vl.test(I))){for(ne=sa.test(I)&&ca(j.parentNode)||j,(ne!==j||!m.scope)&&((zt=j.getAttribute("id"))?zt=zt.replace(yl,bl):j.setAttribute("id",zt=Se)),ee=T(I),yt=ee.length;yt--;)ee[yt]=(zt?"#"+zt:":scope")+" "+sr(ee[yt]);te=ee.join(",")}try{return mn.apply(Z,ne.querySelectorAll(te)),Z}catch(Ae){Ti(I,!0)}finally{zt===Se&&j.removeAttribute("id")}}}return B(I.replace(or,"$1"),j,Z,gt)}function ar(){var I=[];function j(Z,gt){return I.push(Z+" ")>v.cacheLength&&delete j[I.shift()],j[Z+" "]=gt}return j}function Ui(I){return I[Se]=!0,I}function qi(I){var j=mt.createElement("fieldset");try{return!!I(j)}catch(Z){return!1}finally{j.parentNode&&j.parentNode.removeChild(j),j=null}}function la(I,j){for(var Z=I.split("|"),gt=Z.length;gt--;)v.attrHandle[Z[gt]]=j}function _l(I,j){var Z=j&&I,gt=Z&&I.nodeType===1&&j.nodeType===1&&I.sourceIndex-j.sourceIndex;if(gt)return gt;if(Z){for(;Z=Z.nextSibling;)if(Z===j)return-1}return I?1:-1}function Td(I){return function(j){var Z=j.nodeName.toLowerCase();return Z==="input"&&j.type===I}}function Ed(I){return function(j){var Z=j.nodeName.toLowerCase();return(Z==="input"||Z==="button")&&j.type===I}}function xl(I){return function(j){return"form"in j?j.parentNode&&j.disabled===!1?"label"in j?"label"in j.parentNode?j.parentNode.disabled===I:j.disabled===I:j.isDisabled===I||j.isDisabled!==!I&&Sd(j)===I:j.disabled===I:"label"in j?j.disabled===I:!1}}function Mn(I){return Ui(function(j){return j=+j,Ui(function(Z,gt){for(var it,yt=I([],Z.length,j),Tt=yt.length;Tt--;)Z[it=yt[Tt]]&&(Z[it]=!(gt[it]=Z[it]))})})}function ca(I){return I&&typeof I.getElementsByTagName<"u"&&I}m=Ee.support={},k=Ee.isXML=function(I){var j=I&&I.namespaceURI,Z=I&&(I.ownerDocument||I).documentElement;return!_d.test(j||Z&&Z.nodeName||"HTML")},ht=Ee.setDocument=function(I){var j,Z,gt=I?I.ownerDocument||I:ae;return gt==mt||gt.nodeType!==9||!gt.documentElement||(mt=gt,Xt=mt.documentElement,se=!k(mt),ae!=mt&&(Z=mt.defaultView)&&Z.top!==Z&&(Z.addEventListener?Z.addEventListener("unload",wl,!1):Z.attachEvent&&Z.attachEvent("onunload",wl)),m.scope=qi(function(it){return Xt.appendChild(it).appendChild(mt.createElement("div")),typeof it.querySelectorAll<"u"&&!it.querySelectorAll(":scope fieldset div").length}),m.attributes=qi(function(it){return it.className="i",!it.getAttribute("className")}),m.getElementsByTagName=qi(function(it){return it.appendChild(mt.createComment("")),!it.getElementsByTagName("*").length}),m.getElementsByClassName=Co.test(mt.getElementsByClassName),m.getById=qi(function(it){return Xt.appendChild(it).id=Se,!mt.getElementsByName||!mt.getElementsByName(Se).length}),m.getById?(v.filter.ID=function(it){var yt=it.replace(sn,ln);return function(Tt){return Tt.getAttribute("id")===yt}},v.find.ID=function(it,yt){if(typeof yt.getElementById<"u"&&se){var Tt=yt.getElementById(it);return Tt?[Tt]:[]}}):(v.filter.ID=function(it){var yt=it.replace(sn,ln);return function(Tt){var zt=typeof Tt.getAttributeNode<"u"&&Tt.getAttributeNode("id");return zt&&zt.value===yt}},v.find.ID=function(it,yt){if(typeof yt.getElementById<"u"&&se){var Tt,zt,jt,ee=yt.getElementById(it);if(ee){if(Tt=ee.getAttributeNode("id"),Tt&&Tt.value===it)return[ee];for(jt=yt.getElementsByName(it),zt=0;ee=jt[zt++];)if(Tt=ee.getAttributeNode("id"),Tt&&Tt.value===it)return[ee]}return[]}}),v.find.TAG=m.getElementsByTagName?function(it,yt){if(typeof yt.getElementsByTagName<"u")return yt.getElementsByTagName(it);if(m.qsa)return yt.querySelectorAll(it)}:function(it,yt){var Tt,zt=[],jt=0,ee=yt.getElementsByTagName(it);if(it==="*"){for(;Tt=ee[jt++];)Tt.nodeType===1&&zt.push(Tt);return zt}return ee},v.find.CLASS=m.getElementsByClassName&&function(it,yt){if(typeof yt.getElementsByClassName<"u"&&se)return yt.getElementsByClassName(it)},Je=[],Jt=[],(m.qsa=Co.test(mt.querySelectorAll))&&(qi(function(it){var yt;Xt.appendChild(it).innerHTML="",it.querySelectorAll("[msallowcapture^='']").length&&Jt.push("[*^$]="+xe+`*(?:''|"")`),it.querySelectorAll("[selected]").length||Jt.push("\\["+xe+"*(?:value|"+ra+")"),it.querySelectorAll("[id~="+Se+"-]").length||Jt.push("~="),yt=mt.createElement("input"),yt.setAttribute("name",""),it.appendChild(yt),it.querySelectorAll("[name='']").length||Jt.push("\\["+xe+"*name"+xe+"*="+xe+`*(?:''|"")`),it.querySelectorAll(":checked").length||Jt.push(":checked"),it.querySelectorAll("a#"+Se+"+*").length||Jt.push(".#.+[+~]"),it.querySelectorAll("\\\f"),Jt.push("[\\r\\n\\f]")}),qi(function(it){it.innerHTML="";var yt=mt.createElement("input");yt.setAttribute("type","hidden"),it.appendChild(yt).setAttribute("name","D"),it.querySelectorAll("[name=d]").length&&Jt.push("name"+xe+"*[*^$|!~]?="),it.querySelectorAll(":enabled").length!==2&&Jt.push(":enabled",":disabled"),Xt.appendChild(it).disabled=!0,it.querySelectorAll(":disabled").length!==2&&Jt.push(":enabled",":disabled"),it.querySelectorAll("*,:x"),Jt.push(",.*:")})),(m.matchesSelector=Co.test(Ye=Xt.matches||Xt.webkitMatchesSelector||Xt.mozMatchesSelector||Xt.oMatchesSelector||Xt.msMatchesSelector))&&qi(function(it){m.disconnectedMatch=Ye.call(it,"*"),Ye.call(it,"[s!='']:x"),Je.push("!=",aa)}),Jt=Jt.length&&new RegExp(Jt.join("|")),Je=Je.length&&new RegExp(Je.join("|")),j=Co.test(Xt.compareDocumentPosition),Si=j||Co.test(Xt.contains)?function(it,yt){var Tt=it.nodeType===9?it.documentElement:it,zt=yt&&yt.parentNode;return it===zt||!!(zt&&zt.nodeType===1&&(Tt.contains?Tt.contains(zt):it.compareDocumentPosition&&it.compareDocumentPosition(zt)&16))}:function(it,yt){if(yt){for(;yt=yt.parentNode;)if(yt===it)return!0}return!1},En=j?function(it,yt){if(it===yt)return xt=!0,0;var Tt=!it.compareDocumentPosition-!yt.compareDocumentPosition;return Tt||(Tt=(it.ownerDocument||it)==(yt.ownerDocument||yt)?it.compareDocumentPosition(yt):1,Tt&1||!m.sortDetached&&yt.compareDocumentPosition(it)===Tt?it==mt||it.ownerDocument==ae&&Si(ae,it)?-1:yt==mt||yt.ownerDocument==ae&&Si(ae,yt)?1:pt?$n(pt,it)-$n(pt,yt):0:Tt&4?-1:1)}:function(it,yt){if(it===yt)return xt=!0,0;var Tt,zt=0,jt=it.parentNode,ee=yt.parentNode,te=[it],ne=[yt];if(!jt||!ee)return it==mt?-1:yt==mt?1:jt?-1:ee?1:pt?$n(pt,it)-$n(pt,yt):0;if(jt===ee)return _l(it,yt);for(Tt=it;Tt=Tt.parentNode;)te.unshift(Tt);for(Tt=yt;Tt=Tt.parentNode;)ne.unshift(Tt);for(;te[zt]===ne[zt];)zt++;return zt?_l(te[zt],ne[zt]):te[zt]==ae?-1:ne[zt]==ae?1:0}),mt},Ee.matches=function(I,j){return Ee(I,null,null,j)},Ee.matchesSelector=function(I,j){if(ht(I),m.matchesSelector&&se&&!Ti[j+" "]&&(!Je||!Je.test(j))&&(!Jt||!Jt.test(j)))try{var Z=Ye.call(I,j);if(Z||m.disconnectedMatch||I.document&&I.document.nodeType!==11)return Z}catch(gt){Ti(j,!0)}return Ee(j,mt,null,[I]).length>0},Ee.contains=function(I,j){return(I.ownerDocument||I)!=mt&&ht(I),Si(I,j)},Ee.attr=function(I,j){(I.ownerDocument||I)!=mt&&ht(I);var Z=v.attrHandle[j.toLowerCase()],gt=Z&&An.call(v.attrHandle,j.toLowerCase())?Z(I,j,!se):void 0;return gt!==void 0?gt:m.attributes||!se?I.getAttribute(j):(gt=I.getAttributeNode(j))&>.specified?gt.value:null},Ee.escape=function(I){return(I+"").replace(yl,bl)},Ee.error=function(I){throw new Error("Syntax error, unrecognized expression: "+I)},Ee.uniqueSort=function(I){var j,Z=[],gt=0,it=0;if(xt=!m.detectDuplicates,pt=!m.sortStable&&I.slice(0),I.sort(En),xt){for(;j=I[it++];)j===I[it]&&(gt=Z.push(it));for(;gt--;)I.splice(Z[gt],1)}return pt=null,I},_=Ee.getText=function(I){var j,Z="",gt=0,it=I.nodeType;if(it){if(it===1||it===9||it===11){if(typeof I.textContent=="string")return I.textContent;for(I=I.firstChild;I;I=I.nextSibling)Z+=_(I)}else if(it===3||it===4)return I.nodeValue}else for(;j=I[gt++];)Z+=_(j);return Z},v=Ee.selectors={cacheLength:50,createPseudo:Ui,match:rr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(I){return I[1]=I[1].replace(sn,ln),I[3]=(I[3]||I[4]||I[5]||"").replace(sn,ln),I[2]==="~="&&(I[3]=" "+I[3]+" "),I.slice(0,4)},CHILD:function(I){return I[1]=I[1].toLowerCase(),I[1].slice(0,3)==="nth"?(I[3]||Ee.error(I[0]),I[4]=+(I[4]?I[5]+(I[6]||1):2*(I[3]==="even"||I[3]==="odd")),I[5]=+(I[7]+I[8]||I[3]==="odd")):I[3]&&Ee.error(I[0]),I},PSEUDO:function(I){var j,Z=!I[6]&&I[2];return rr.CHILD.test(I[0])?null:(I[3]?I[2]=I[4]||I[5]||"":Z&&bd.test(Z)&&(j=T(Z,!0))&&(j=Z.indexOf(")",Z.length-j)-Z.length)&&(I[0]=I[0].slice(0,j),I[2]=Z.slice(0,j)),I.slice(0,3))}},filter:{TAG:function(I){var j=I.replace(sn,ln).toLowerCase();return I==="*"?function(){return!0}:function(Z){return Z.nodeName&&Z.nodeName.toLowerCase()===j}},CLASS:function(I){var j=Re[I+" "];return j||(j=new RegExp("(^|"+xe+")"+I+"("+xe+"|$)"))&&Re(I,function(Z){return j.test(typeof Z.className=="string"&&Z.className||typeof Z.getAttribute<"u"&&Z.getAttribute("class")||"")})},ATTR:function(I,j,Z){return function(gt){var it=Ee.attr(gt,I);return it==null?j==="!=":j?(it+="",j==="="?it===Z:j==="!="?it!==Z:j==="^="?Z&&it.indexOf(Z)===0:j==="*="?Z&&it.indexOf(Z)>-1:j==="$="?Z&&it.slice(-Z.length)===Z:j==="~="?(" "+it.replace(gd," ")+" ").indexOf(Z)>-1:j==="|="?it===Z||it.slice(0,Z.length+1)===Z+"-":!1):!0}},CHILD:function(I,j,Z,gt,it){var yt=I.slice(0,3)!=="nth",Tt=I.slice(-4)!=="last",zt=j==="of-type";return gt===1&&it===0?function(jt){return!!jt.parentNode}:function(jt,ee,te){var ne,de,Ae,ie,Qe,ai,Ei=yt!==Tt?"nextSibling":"previousSibling",Oe=jt.parentNode,So=zt&&jt.nodeName.toLowerCase(),To=!te&&!zt,Ai=!1;if(Oe){if(yt){for(;Ei;){for(ie=jt;ie=ie[Ei];)if(zt?ie.nodeName.toLowerCase()===So:ie.nodeType===1)return!1;ai=Ei=I==="only"&&!ai&&"nextSibling"}return!0}if(ai=[Tt?Oe.firstChild:Oe.lastChild],Tt&&To){for(ie=Oe,Ae=ie[Se]||(ie[Se]={}),de=Ae[ie.uniqueID]||(Ae[ie.uniqueID]={}),ne=de[I]||[],Qe=ne[0]===bi&&ne[1],Ai=Qe&&ne[2],ie=Qe&&Oe.childNodes[Qe];ie=++Qe&&ie&&ie[Ei]||(Ai=Qe=0)||ai.pop();)if(ie.nodeType===1&&++Ai&&ie===jt){de[I]=[bi,Qe,Ai];break}}else if(To&&(ie=jt,Ae=ie[Se]||(ie[Se]={}),de=Ae[ie.uniqueID]||(Ae[ie.uniqueID]={}),ne=de[I]||[],Qe=ne[0]===bi&&ne[1],Ai=Qe),Ai===!1)for(;(ie=++Qe&&ie&&ie[Ei]||(Ai=Qe=0)||ai.pop())&&!((zt?ie.nodeName.toLowerCase()===So:ie.nodeType===1)&&++Ai&&(To&&(Ae=ie[Se]||(ie[Se]={}),de=Ae[ie.uniqueID]||(Ae[ie.uniqueID]={}),de[I]=[bi,Ai]),ie===jt)););return Ai-=it,Ai===gt||Ai%gt===0&&Ai/gt>=0}}},PSEUDO:function(I,j){var Z,gt=v.pseudos[I]||v.setFilters[I.toLowerCase()]||Ee.error("unsupported pseudo: "+I);return gt[Se]?gt(j):gt.length>1?(Z=[I,I,"",j],v.setFilters.hasOwnProperty(I.toLowerCase())?Ui(function(it,yt){for(var Tt,zt=gt(it,j),jt=zt.length;jt--;)Tt=$n(it,zt[jt]),it[Tt]=!(yt[Tt]=zt[jt])}):function(it){return gt(it,0,Z)}):gt}},pseudos:{not:Ui(function(I){var j=[],Z=[],gt=W(I.replace(or,"$1"));return gt[Se]?Ui(function(it,yt,Tt,zt){for(var jt,ee=gt(it,null,zt,[]),te=it.length;te--;)(jt=ee[te])&&(it[te]=!(yt[te]=jt))}):function(it,yt,Tt){return j[0]=it,gt(j,null,Tt,Z),j[0]=null,!Z.pop()}}),has:Ui(function(I){return function(j){return Ee(I,j).length>0}}),contains:Ui(function(I){return I=I.replace(sn,ln),function(j){return(j.textContent||_(j)).indexOf(I)>-1}}),lang:Ui(function(I){return wd.test(I||"")||Ee.error("unsupported lang: "+I),I=I.replace(sn,ln).toLowerCase(),function(j){var Z;do if(Z=se?j.lang:j.getAttribute("xml:lang")||j.getAttribute("lang"))return Z=Z.toLowerCase(),Z===I||Z.indexOf(I+"-")===0;while((j=j.parentNode)&&j.nodeType===1);return!1}}),target:function(I){var j=s.location&&s.location.hash;return j&&j.slice(1)===I.id},root:function(I){return I===Xt},focus:function(I){return I===mt.activeElement&&(!mt.hasFocus||mt.hasFocus())&&!!(I.type||I.href||~I.tabIndex)},enabled:xl(!1),disabled:xl(!0),checked:function(I){var j=I.nodeName.toLowerCase();return j==="input"&&!!I.checked||j==="option"&&!!I.selected},selected:function(I){return I.parentNode&&I.parentNode.selectedIndex,I.selected===!0},empty:function(I){for(I=I.firstChild;I;I=I.nextSibling)if(I.nodeType<6)return!1;return!0},parent:function(I){return!v.pseudos.empty(I)},header:function(I){return kd.test(I.nodeName)},input:function(I){return xd.test(I.nodeName)},button:function(I){var j=I.nodeName.toLowerCase();return j==="input"&&I.type==="button"||j==="button"},text:function(I){var j;return I.nodeName.toLowerCase()==="input"&&I.type==="text"&&((j=I.getAttribute("type"))==null||j.toLowerCase()==="text")},first:Mn(function(){return[0]}),last:Mn(function(I,j){return[j-1]}),eq:Mn(function(I,j,Z){return[Z<0?Z+j:Z]}),even:Mn(function(I,j){for(var Z=0;Zj?j:Z;--gt>=0;)I.push(gt);return I}),gt:Mn(function(I,j,Z){for(var gt=Z<0?Z+j:Z;++gt1?function(j,Z,gt){for(var it=I.length;it--;)if(!I[it](j,Z,gt))return!1;return!0}:I[0]}function Ad(I,j,Z){for(var gt=0,it=j.length;gt-1&&(Tt[te]=!(zt[te]=de))}}else Oe=cr(Oe===zt?Oe.splice(Qe,Oe.length):Oe),it?it(null,zt,Oe,ee):mn.apply(zt,Oe)})}function da(I){for(var j,Z,gt,it=I.length,yt=v.relative[I[0].type],Tt=yt||v.relative[" "],zt=yt?1:0,jt=lr(function(ne){return ne===j},Tt,!0),ee=lr(function(ne){return $n(j,ne)>-1},Tt,!0),te=[function(ne,de,Ae){var ie=!yt&&(Ae||de!==nt)||((j=de).nodeType?jt(ne,de,Ae):ee(ne,de,Ae));return j=null,ie}];zt1&&ha(te),zt>1&&sr(I.slice(0,zt-1).concat({value:I[zt-2].type===" "?"*":""})).replace(or,"$1"),Z,zt0,gt=I.length>0,it=function(yt,Tt,zt,jt,ee){var te,ne,de,Ae=0,ie="0",Qe=yt&&[],ai=[],Ei=nt,Oe=yt||gt&&v.find.TAG("*",ee),So=bi+=Ei==null?1:Math.random()||.1,To=Oe.length;for(ee&&(nt=Tt==mt||Tt||ee);ie!==To&&(te=Oe[ie])!=null;ie++){if(gt&&te){for(ne=0,!Tt&&te.ownerDocument!=mt&&(ht(te),zt=!se);de=I[ne++];)if(de(te,Tt||mt,zt)){jt.push(te);break}ee&&(bi=So)}Z&&((te=!de&&te)&&Ae--,yt&&Qe.push(te))}if(Ae+=ie,Z&&ie!==Ae){for(ne=0;de=j[ne++];)de(Qe,ai,Tt,zt);if(yt){if(Ae>0)for(;ie--;)Qe[ie]||ai[ie]||(ai[ie]=fn.call(jt));ai=cr(ai)}mn.apply(jt,ai),ee&&!yt&&ai.length>0&&Ae+j.length>1&&Ee.uniqueSort(jt)}return ee&&(bi=So,nt=Ei),Qe};return Z?Ui(it):it}return W=Ee.compile=function(I,j){var Z,gt=[],it=[],yt=nr[I+" "];if(!yt){for(j||(j=T(I)),Z=j.length;Z--;)yt=da(j[Z]),yt[Se]?gt.push(yt):it.push(yt);yt=nr(I,$d(it,gt)),yt.selector=I}return yt},B=Ee.select=function(I,j,Z,gt){var it,yt,Tt,zt,jt,ee=typeof I=="function"&&I,te=!gt&&T(I=ee.selector||I);if(Z=Z||[],te.length===1){if(yt=te[0]=te[0].slice(0),yt.length>2&&(Tt=yt[0]).type==="ID"&&j.nodeType===9&&se&&v.relative[yt[1].type]){if(j=(v.find.ID(Tt.matches[0].replace(sn,ln),j)||[])[0],j)ee&&(j=j.parentNode);else return Z;I=I.slice(yt.shift().value.length)}for(it=rr.needsContext.test(I)?0:yt.length;it--&&(Tt=yt[it],!v.relative[zt=Tt.type]);)if((jt=v.find[zt])&&(gt=jt(Tt.matches[0].replace(sn,ln),sa.test(yt[0].type)&&ca(j.parentNode)||j))){if(yt.splice(it,1),I=gt.length&&sr(yt),!I)return mn.apply(Z,gt),Z;break}}return(ee||W(I,te))(gt,j,!se,Z,!j||sa.test(I)&&ca(j.parentNode)||j),Z},m.sortStable=Se.split("").sort(En).join("")===Se,m.detectDuplicates=!!xt,ht(),m.sortDetached=qi(function(I){return I.compareDocumentPosition(mt.createElement("fieldset"))&1}),qi(function(I){return I.innerHTML="",I.firstChild.getAttribute("href")==="#"})||la("type|href|height|width",function(I,j,Z){if(!Z)return I.getAttribute(j,j.toLowerCase()==="type"?1:2)}),(!m.attributes||!qi(function(I){return I.innerHTML="",I.firstChild.setAttribute("value",""),I.firstChild.getAttribute("value")===""}))&&la("value",function(I,j,Z){if(!Z&&I.nodeName.toLowerCase()==="input")return I.defaultValue}),qi(function(I){return I.getAttribute("disabled")==null})||la(ra,function(I,j,Z){var gt;if(!Z)return I[j]===!0?j.toLowerCase():(gt=I.getAttributeNode(j))&>.specified?gt.value:null}),Ee}(r);o.find=p,o.expr=p.selectors,o.expr[":"]=o.expr.pseudos,o.uniqueSort=o.unique=p.uniqueSort,o.text=p.getText,o.isXMLDoc=p.isXML,o.contains=p.contains,o.escapeSelector=p.escape;var y=function(s,u,m){for(var v=[],_=m!==void 0;(s=s[u])&&s.nodeType!==9;)if(s.nodeType===1){if(_&&o(s).is(m))break;v.push(s)}return v},C=function(s,u){for(var m=[];s;s=s.nextSibling)s.nodeType===1&&s!==u&&m.push(s);return m},D=o.expr.match.needsContext;function P(s,u){return s.nodeName&&s.nodeName.toLowerCase()===u.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(s,u,m){return Y(u)?o.grep(s,function(v,_){return!!u.call(v,_,v)!==m}):u.nodeType?o.grep(s,function(v){return v===u!==m}):typeof u!="string"?o.grep(s,function(v){return x.call(u,v)>-1!==m}):o.filter(u,s,m)}o.filter=function(s,u,m){var v=u[0];return m&&(s=":not("+s+")"),u.length===1&&v.nodeType===1?o.find.matchesSelector(v,s)?[v]:[]:o.find.matches(s,o.grep(u,function(_){return _.nodeType===1}))},o.fn.extend({find:function(s){var u,m,v=this.length,_=this;if(typeof s!="string")return this.pushStack(o(s).filter(function(){for(u=0;u1?o.uniqueSort(m):m},filter:function(s){return this.pushStack(J(this,s||[],!1))},not:function(s){return this.pushStack(J(this,s||[],!0))},is:function(s){return!!J(this,typeof s=="string"&&D.test(s)?o(s):s||[],!1).length}});var dt,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,V=o.fn.init=function(s,u,m){var v,_;if(!s)return this;if(m=m||dt,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?v=[null,s,null]:v=Et.exec(s),v&&(v[1]||!u))if(v[1]){if(u=u instanceof o?u[0]:u,o.merge(this,o.parseHTML(v[1],u&&u.nodeType?u.ownerDocument||u:G,!0)),L.test(v[1])&&o.isPlainObject(u))for(v in u)Y(this[v])?this[v](u[v]):this.attr(v,u[v]);return this}else return _=G.getElementById(v[2]),_&&(this[0]=_,this.length=1),this;else return!u||u.jquery?(u||m).find(s):this.constructor(u).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(Y(s))return m.ready!==void 0?m.ready(s):s(o)}return o.makeArray(s,this)};V.prototype=o.fn,dt=o(G);var N=/^(?:parents|prev(?:Until|All))/,tt={children:!0,contents:!0,next:!0,prev:!0};o.fn.extend({has:function(s){var u=o(s,this),m=u.length;return this.filter(function(){for(var v=0;v-1:m.nodeType===1&&o.find.matchesSelector(m,s))){k.push(m);break}}return this.pushStack(k.length>1?o.uniqueSort(k):k)},index:function(s){return s?typeof s=="string"?x.call(o(s),this[0]):x.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,u){return this.pushStack(o.uniqueSort(o.merge(this.get(),o(s,u))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function ot(s,u){for(;(s=s[u])&&s.nodeType!==1;);return s}o.each({parent:function(s){var u=s.parentNode;return u&&u.nodeType!==11?u:null},parents:function(s){return y(s,"parentNode")},parentsUntil:function(s,u,m){return y(s,"parentNode",m)},next:function(s){return ot(s,"nextSibling")},prev:function(s){return ot(s,"previousSibling")},nextAll:function(s){return y(s,"nextSibling")},prevAll:function(s){return y(s,"previousSibling")},nextUntil:function(s,u,m){return y(s,"nextSibling",m)},prevUntil:function(s,u,m){return y(s,"previousSibling",m)},siblings:function(s){return C((s.parentNode||{}).firstChild,s)},children:function(s){return C(s.firstChild)},contents:function(s){return s.contentDocument!=null&&d(s.contentDocument)?s.contentDocument:(P(s,"template")&&(s=s.content||s),o.merge([],s.childNodes))}},function(s,u){o.fn[s]=function(m,v){var _=o.map(this,u,m);return s.slice(-5)!=="Until"&&(v=m),v&&typeof v=="string"&&(_=o.filter(v,_)),this.length>1&&(tt[s]||o.uniqueSort(_),N.test(s)&&_.reverse()),this.pushStack(_)}});var X=/[^\x20\t\r\n\f]+/g;function K(s){var u={};return o.each(s.match(X)||[],function(m,v){u[v]=!0}),u}o.Callbacks=function(s){s=typeof s=="string"?K(s):o.extend({},s);var u,m,v,_,k=[],T=[],W=-1,B=function(){for(_=_||s.once,v=u=!0;T.length;W=-1)for(m=T.shift();++W-1;)k.splice(ht,1),ht<=W&&W--}),this},has:function(pt){return pt?o.inArray(pt,k)>-1:k.length>0},empty:function(){return k&&(k=[]),this},disable:function(){return _=T=[],k=m="",this},disabled:function(){return!k},lock:function(){return _=T=[],!m&&!u&&(k=m=""),this},locked:function(){return!!_},fireWith:function(pt,xt){return _||(xt=xt||[],xt=[pt,xt.slice?xt.slice():xt],T.push(xt),u||B()),this},fire:function(){return nt.fireWith(this,arguments),this},fired:function(){return!!v}};return nt};function at(s){return s}function st(s){throw s}function bt(s,u,m,v){var _;try{s&&Y(_=s.promise)?_.call(s).done(u).fail(m):s&&Y(_=s.then)?_.call(s,u,m):u.apply(void 0,[s].slice(v))}catch(k){m.apply(void 0,[k])}}o.extend({Deferred:function(s){var u=[["notify","progress",o.Callbacks("memory"),o.Callbacks("memory"),2],["resolve","done",o.Callbacks("once memory"),o.Callbacks("once memory"),0,"resolved"],["reject","fail",o.Callbacks("once memory"),o.Callbacks("once memory"),1,"rejected"]],m="pending",v={state:function(){return m},always:function(){return _.done(arguments).fail(arguments),this},catch:function(k){return v.then(null,k)},pipe:function(){var k=arguments;return o.Deferred(function(T){o.each(u,function(W,B){var nt=Y(k[B[4]])&&k[B[4]];_[B[1]](function(){var pt=nt&&nt.apply(this,arguments);pt&&Y(pt.promise)?pt.promise().progress(T.notify).done(T.resolve).fail(T.reject):T[B[0]+"With"](this,nt?[pt]:arguments)})}),k=null}).promise()},then:function(k,T,W){var B=0;function nt(pt,xt,ht,mt){return function(){var Xt=this,se=arguments,Jt=function(){var Ye,Si;if(!(pt=B&&(ht!==st&&(Xt=void 0,se=[Ye]),xt.rejectWith(Xt,se))}};pt?Je():(o.Deferred.getStackHook&&(Je.stackTrace=o.Deferred.getStackHook()),r.setTimeout(Je))}}return o.Deferred(function(pt){u[0][3].add(nt(0,pt,Y(W)?W:at,pt.notifyWith)),u[1][3].add(nt(0,pt,Y(k)?k:at)),u[2][3].add(nt(0,pt,Y(T)?T:st))}).promise()},promise:function(k){return k!=null?o.extend(k,v):v}},_={};return o.each(u,function(k,T){var W=T[2],B=T[5];v[T[1]]=W.add,B&&W.add(function(){m=B},u[3-k][2].disable,u[3-k][3].disable,u[0][2].lock,u[0][3].lock),W.add(T[3].fire),_[T[0]]=function(){return _[T[0]+"With"](this===_?void 0:this,arguments),this},_[T[0]+"With"]=W.fireWith}),v.promise(_),s&&s.call(_,_),_},when:function(s){var u=arguments.length,m=u,v=Array(m),_=f.call(arguments),k=o.Deferred(),T=function(W){return function(B){v[W]=this,_[W]=arguments.length>1?f.call(arguments):B,--u||k.resolveWith(v,_)}};if(u<=1&&(bt(s,k.done(T(m)).resolve,k.reject,!u),k.state()==="pending"||Y(_[m]&&_[m].then)))return k.then();for(;m--;)bt(_[m],T(m),k.reject);return k.promise()}});var $t=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;o.Deferred.exceptionHook=function(s,u){r.console&&r.console.warn&&s&&$t.test(s.name)&&r.console.warn("jQuery.Deferred exception: "+s.message,s.stack,u)},o.readyException=function(s){r.setTimeout(function(){throw s})};var Ht=o.Deferred();o.fn.ready=function(s){return Ht.then(s).catch(function(u){o.readyException(u)}),this},o.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--o.readyWait:o.isReady)||(o.isReady=!0,!(s!==!0&&--o.readyWait>0)&&Ht.resolveWith(G,[o]))}}),o.ready.then=Ht.then;function Zt(){G.removeEventListener("DOMContentLoaded",Zt),r.removeEventListener("load",Zt),o.ready()}G.readyState==="complete"||G.readyState!=="loading"&&!G.documentElement.doScroll?r.setTimeout(o.ready):(G.addEventListener("DOMContentLoaded",Zt),r.addEventListener("load",Zt));var qt=function(s,u,m,v,_,k,T){var W=0,B=s.length,nt=m==null;if(n(m)==="object"){_=!0;for(W in m)qt(s,u,W,m[W],!0,k,T)}else if(v!==void 0&&(_=!0,Y(v)||(T=!0),nt&&(T?(u.call(s,v),u=null):(nt=u,u=function(pt,xt,ht){return nt.call(o(pt),ht)})),u))for(;W1,null,!0)},removeData:function(s){return this.each(function(){re.remove(this,s)})}}),o.extend({queue:function(s,u,m){var v;if(s)return u=(u||"fx")+"queue",v=Gt.get(s,u),m&&(!v||Array.isArray(m)?v=Gt.access(s,u,o.makeArray(m)):v.push(m)),v||[]},dequeue:function(s,u){u=u||"fx";var m=o.queue(s,u),v=m.length,_=m.shift(),k=o._queueHooks(s,u),T=function(){o.dequeue(s,u)};_==="inprogress"&&(_=m.shift(),v--),_&&(u==="fx"&&m.unshift("inprogress"),delete k.stop,_.call(s,T,k)),!v&&k&&k.empty.fire()},_queueHooks:function(s,u){var m=u+"queueHooks";return Gt.get(s,m)||Gt.access(s,m,{empty:o.Callbacks("once memory").add(function(){Gt.remove(s,[u+"queue",m])})})}}),o.fn.extend({queue:function(s,u){var m=2;return typeof s!="string"&&(u=s,s="fx",m--),arguments.length\x20\t\r\n\f]*)/i,Xe=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=G.createDocumentFragment(),u=s.appendChild(G.createElement("div")),m=G.createElement("input");m.setAttribute("type","radio"),m.setAttribute("checked","checked"),m.setAttribute("name","t"),u.appendChild(m),U.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="",U.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="",U.option=!!u.lastChild})();var ce={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};ce.tbody=ce.tfoot=ce.colgroup=ce.caption=ce.thead,ce.th=ce.td,U.option||(ce.optgroup=ce.option=[1,""]);function fe(s,u){var m;return typeof s.getElementsByTagName<"u"?m=s.getElementsByTagName(u||"*"):typeof s.querySelectorAll<"u"?m=s.querySelectorAll(u||"*"):m=[],u===void 0||u&&P(s,u)?o.merge([s],m):m}function S(s,u){for(var m=0,v=s.length;m-1){_&&_.push(k);continue}if(nt=Le(k),T=fe(xt.appendChild(k),"script"),nt&&S(T),m)for(pt=0;k=T[pt++];)Xe.test(k.type||"")&&m.push(k)}return xt}var Q=/^([^.]*)(?:\.(.+)|)/;function ut(){return!0}function ft(){return!1}function lt(s,u){return s===rt()==(u==="focus")}function rt(){try{return G.activeElement}catch(s){}}function et(s,u,m,v,_,k){var T,W;if(typeof u=="object"){typeof m!="string"&&(v=v||m,m=void 0);for(W in u)et(s,W,m,v,u[W],k);return s}if(v==null&&_==null?(_=m,v=m=void 0):_==null&&(typeof m=="string"?(_=v,v=void 0):(_=v,v=m,m=void 0)),_===!1)_=ft;else if(!_)return s;return k===1&&(T=_,_=function(B){return o().off(B),T.apply(this,arguments)},_.guid=T.guid||(T.guid=o.guid++)),s.each(function(){o.event.add(this,u,_,v,m)})}o.event={global:{},add:function(s,u,m,v,_){var k,T,W,B,nt,pt,xt,ht,mt,Xt,se,Jt=Gt.get(s);if(Ne(s))for(m.handler&&(k=m,m=k.handler,_=k.selector),_&&o.find.matchesSelector(be,_),m.guid||(m.guid=o.guid++),(B=Jt.events)||(B=Jt.events=Object.create(null)),(T=Jt.handle)||(T=Jt.handle=function(Je){return typeof o<"u"&&o.event.triggered!==Je.type?o.event.dispatch.apply(s,arguments):void 0}),u=(u||"").match(X)||[""],nt=u.length;nt--;)W=Q.exec(u[nt])||[],mt=se=W[1],Xt=(W[2]||"").split(".").sort(),mt&&(xt=o.event.special[mt]||{},mt=(_?xt.delegateType:xt.bindType)||mt,xt=o.event.special[mt]||{},pt=o.extend({type:mt,origType:se,data:v,handler:m,guid:m.guid,selector:_,needsContext:_&&o.expr.match.needsContext.test(_),namespace:Xt.join(".")},k),(ht=B[mt])||(ht=B[mt]=[],ht.delegateCount=0,(!xt.setup||xt.setup.call(s,v,Xt,T)===!1)&&s.addEventListener&&s.addEventListener(mt,T)),xt.add&&(xt.add.call(s,pt),pt.handler.guid||(pt.handler.guid=m.guid)),_?ht.splice(ht.delegateCount++,0,pt):ht.push(pt),o.event.global[mt]=!0)},remove:function(s,u,m,v,_){var k,T,W,B,nt,pt,xt,ht,mt,Xt,se,Jt=Gt.hasData(s)&&Gt.get(s);if(!(!Jt||!(B=Jt.events))){for(u=(u||"").match(X)||[""],nt=u.length;nt--;){if(W=Q.exec(u[nt])||[],mt=se=W[1],Xt=(W[2]||"").split(".").sort(),!mt){for(mt in B)o.event.remove(s,mt+u[nt],m,v,!0);continue}for(xt=o.event.special[mt]||{},mt=(v?xt.delegateType:xt.bindType)||mt,ht=B[mt]||[],W=W[2]&&new RegExp("(^|\\.)"+Xt.join("\\.(?:.*\\.|)")+"(\\.|$)"),T=k=ht.length;k--;)pt=ht[k],(_||se===pt.origType)&&(!m||m.guid===pt.guid)&&(!W||W.test(pt.namespace))&&(!v||v===pt.selector||v==="**"&&pt.selector)&&(ht.splice(k,1),pt.selector&&ht.delegateCount--,xt.remove&&xt.remove.call(s,pt));T&&!ht.length&&((!xt.teardown||xt.teardown.call(s,Xt,Jt.handle)===!1)&&o.removeEvent(s,mt,Jt.handle),delete B[mt])}o.isEmptyObject(B)&&Gt.remove(s,"handle events")}},dispatch:function(s){var u,m,v,_,k,T,W=new Array(arguments.length),B=o.event.fix(s),nt=(Gt.get(this,"events")||Object.create(null))[B.type]||[],pt=o.event.special[B.type]||{};for(W[0]=B,u=1;u=1)){for(;nt!==this;nt=nt.parentNode||this)if(nt.nodeType===1&&!(s.type==="click"&&nt.disabled===!0)){for(k=[],T={},m=0;m-1:o.find(_,this,null,[nt]).length),T[_]&&k.push(v);k.length&&W.push({elem:nt,handlers:k})}}return nt=this,B\s*$/g;function kt(s,u){return P(s,"table")&&P(u.nodeType!==11?u:u.firstChild,"tr")&&o(s).children("tbody")[0]||s}function Dt(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function Ft(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function Ut(s,u){var m,v,_,k,T,W,B;if(u.nodeType===1){if(Gt.hasData(s)&&(k=Gt.get(s),B=k.events,B)){Gt.remove(u,"handle events");for(_ in B)for(m=0,v=B[_].length;m1&&typeof mt=="string"&&!U.checkClone&&Mt.test(mt))return s.each(function(se){var Jt=s.eq(se);Xt&&(u[0]=mt.call(this,se,Jt.html())),Ct(Jt,u,m,v)});if(xt&&(_=R(u,s[0].ownerDocument,!1,s,v),k=_.firstChild,_.childNodes.length===1&&(_=k),k||v)){for(T=o.map(fe(_,"script"),Dt),W=T.length;pt0&&S(T,!B&&fe(s,"script")),W},cleanData:function(s){for(var u,m,v,_=o.event.special,k=0;(m=s[k])!==void 0;k++)if(Ne(m)){if(u=m[Gt.expando]){if(u.events)for(v in u.events)_[v]?o.event.remove(m,v):o.removeEvent(m,v,u.handle);m[Gt.expando]=void 0}m[re.expando]&&(m[re.expando]=void 0)}}}),o.fn.extend({detach:function(s){return St(this,s,!0)},remove:function(s){return St(this,s)},text:function(s){return qt(this,function(u){return u===void 0?o.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=u)})},null,s,arguments.length)},append:function(){return Ct(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=kt(this,s);u.appendChild(s)}})},prepend:function(){return Ct(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=kt(this,s);u.insertBefore(s,u.firstChild)}})},before:function(){return Ct(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return Ct(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,u=0;(s=this[u])!=null;u++)s.nodeType===1&&(o.cleanData(fe(s,!1)),s.textContent="");return this},clone:function(s,u){return s=s!=null?s:!1,u=u!=null?u:s,this.map(function(){return o.clone(this,s,u)})},html:function(s){return qt(this,function(u){var m=this[0]||{},v=0,_=this.length;if(u===void 0&&m.nodeType===1)return m.innerHTML;if(typeof u=="string"&&!_t.test(u)&&!ce[(He.exec(u)||["",""])[1].toLowerCase()]){u=o.htmlPrefilter(u);try{for(;v<_;v++)m=this[v]||{},m.nodeType===1&&(o.cleanData(fe(m,!1)),m.innerHTML=u);m=0}catch(k){}}m&&this.empty().append(u)},null,s,arguments.length)},replaceWith:function(){var s=[];return Ct(this,arguments,function(u){var m=this.parentNode;o.inArray(this,s)<0&&(o.cleanData(fe(this)),m&&m.replaceChild(u,this))},s)}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,u){o.fn[s]=function(m){for(var v,_=[],k=o(m),T=k.length-1,W=0;W<=T;W++)v=W===T?this:this.clone(!0),o(k[W])[u](v),b.apply(_,v.get());return this.pushStack(_)}});var Bt=new RegExp("^("+li+")(?!px)[a-z%]+$","i"),oe=/^--/,he=function(s){var u=s.ownerDocument.defaultView;return(!u||!u.opener)&&(u=r),u.getComputedStyle(s)},Ue=function(s,u,m){var v,_,k={};for(_ in u)k[_]=s.style[_],s.style[_]=u[_];v=m.call(s);for(_ in u)s.style[_]=k[_];return v},ri=new RegExp(Ce.join("|"),"i"),ci="[\\x20\\t\\r\\n\\f]",pn=new RegExp("^"+ci+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ci+"+$","g");(function(){function s(){if(nt){B.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",nt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",be.appendChild(B).appendChild(nt);var pt=r.getComputedStyle(nt);m=pt.top!=="1%",W=u(pt.marginLeft)===12,nt.style.right="60%",k=u(pt.right)===36,v=u(pt.width)===36,nt.style.position="absolute",_=u(nt.offsetWidth/3)===12,be.removeChild(B),nt=null}}function u(pt){return Math.round(parseFloat(pt))}var m,v,_,k,T,W,B=G.createElement("div"),nt=G.createElement("div");nt.style&&(nt.style.backgroundClip="content-box",nt.cloneNode(!0).style.backgroundClip="",U.clearCloneStyle=nt.style.backgroundClip==="content-box",o.extend(U,{boxSizingReliable:function(){return s(),v},pixelBoxStyles:function(){return s(),k},pixelPosition:function(){return s(),m},reliableMarginLeft:function(){return s(),W},scrollboxSize:function(){return s(),_},reliableTrDimensions:function(){var pt,xt,ht,mt;return T==null&&(pt=G.createElement("table"),xt=G.createElement("tr"),ht=G.createElement("div"),pt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",xt.style.cssText="border:1px solid",xt.style.height="1px",ht.style.height="9px",ht.style.display="block",be.appendChild(pt).appendChild(xt).appendChild(ht),mt=r.getComputedStyle(xt),T=parseInt(mt.height,10)+parseInt(mt.borderTopWidth,10)+parseInt(mt.borderBottomWidth,10)===xt.offsetHeight,be.removeChild(pt)),T}}))})();function H(s,u,m){var v,_,k,T,W=oe.test(u),B=s.style;return m=m||he(s),m&&(T=m.getPropertyValue(u)||m[u],W&&(T=T.replace(pn,"$1")),T===""&&!Le(s)&&(T=o.style(s,u)),!U.pixelBoxStyles()&&Bt.test(T)&&ri.test(u)&&(v=B.width,_=B.minWidth,k=B.maxWidth,B.minWidth=B.maxWidth=B.width=T,T=m.width,B.width=v,B.minWidth=_,B.maxWidth=k)),T!==void 0?T+"":T}function Lt(s,u){return{get:function(){if(s()){delete this.get;return}return(this.get=u).apply(this,arguments)}}}var At=["Webkit","Moz","ms"],me=G.createElement("div").style,qe={};function Te(s){for(var u=s[0].toUpperCase()+s.slice(1),m=At.length;m--;)if(s=At[m]+u,s in me)return s}function xi(s){var u=o.cssProps[s]||qe[s];return u||(s in me?s:qe[s]=Te(s)||s)}var ki=/^(none|table(?!-c[ea]).+)/,Ci={position:"absolute",visibility:"hidden",display:"block"},eo={letterSpacing:"0",fontWeight:"400"};function Ve(s,u,m){var v=_e.exec(u);return v?Math.max(0,v[2]-(m||0))+(v[3]||"px"):u}function io(s,u,m,v,_,k){var T=u==="width"?1:0,W=0,B=0;if(m===(v?"border":"content"))return 0;for(;T<4;T+=2)m==="margin"&&(B+=o.css(s,m+Ce[T],!0,_)),v?(m==="content"&&(B-=o.css(s,"padding"+Ce[T],!0,_)),m!=="margin"&&(B-=o.css(s,"border"+Ce[T]+"Width",!0,_))):(B+=o.css(s,"padding"+Ce[T],!0,_),m!=="padding"?B+=o.css(s,"border"+Ce[T]+"Width",!0,_):W+=o.css(s,"border"+Ce[T]+"Width",!0,_));return!v&&k>=0&&(B+=Math.max(0,Math.ceil(s["offset"+u[0].toUpperCase()+u.slice(1)]-k-B-W-.5))||0),B}function bo(s,u,m){var v=he(s),_=!U.boxSizingReliable()||m,k=_&&o.css(s,"boxSizing",!1,v)==="border-box",T=k,W=H(s,u,v),B="offset"+u[0].toUpperCase()+u.slice(1);if(Bt.test(W)){if(!m)return W;W="auto"}return(!U.boxSizingReliable()&&k||!U.reliableTrDimensions()&&P(s,"tr")||W==="auto"||!parseFloat(W)&&o.css(s,"display",!1,v)==="inline")&&s.getClientRects().length&&(k=o.css(s,"boxSizing",!1,v)==="border-box",T=B in s,T&&(W=s[B])),W=parseFloat(W)||0,W+io(s,u,m||(k?"border":"content"),T,v,W)+"px"}o.extend({cssHooks:{opacity:{get:function(s,u){if(u){var m=H(s,"opacity");return m===""?"1":m}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(s,u,m,v){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var _,k,T,W=ge(u),B=oe.test(u),nt=s.style;if(B||(u=xi(W)),T=o.cssHooks[u]||o.cssHooks[W],m!==void 0){if(k=typeof m,k==="string"&&(_=_e.exec(m))&&_[1]&&(m=We(s,u,_),k="number"),m==null||m!==m)return;k==="number"&&!B&&(m+=_&&_[3]||(o.cssNumber[W]?"":"px")),!U.clearCloneStyle&&m===""&&u.indexOf("background")===0&&(nt[u]="inherit"),(!T||!("set"in T)||(m=T.set(s,m,v))!==void 0)&&(B?nt.setProperty(u,m):nt[u]=m)}else return T&&"get"in T&&(_=T.get(s,!1,v))!==void 0?_:nt[u]}},css:function(s,u,m,v){var _,k,T,W=ge(u),B=oe.test(u);return B||(u=xi(W)),T=o.cssHooks[u]||o.cssHooks[W],T&&"get"in T&&(_=T.get(s,!0,m)),_===void 0&&(_=H(s,u,v)),_==="normal"&&u in eo&&(_=eo[u]),m===""||m?(k=parseFloat(_),m===!0||isFinite(k)?k||0:_):_}}),o.each(["height","width"],function(s,u){o.cssHooks[u]={get:function(m,v,_){if(v)return ki.test(o.css(m,"display"))&&(!m.getClientRects().length||!m.getBoundingClientRect().width)?Ue(m,Ci,function(){return bo(m,u,_)}):bo(m,u,_)},set:function(m,v,_){var k,T=he(m),W=!U.scrollboxSize()&&T.position==="absolute",B=W||_,nt=B&&o.css(m,"boxSizing",!1,T)==="border-box",pt=_?io(m,u,_,nt,T):0;return nt&&W&&(pt-=Math.ceil(m["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(T[u])-io(m,u,"border",!1,T)-.5)),pt&&(k=_e.exec(v))&&(k[3]||"px")!=="px"&&(m.style[u]=v,v=o.css(m,u)),Ve(m,v,pt)}}}),o.cssHooks.marginLeft=Lt(U.reliableMarginLeft,function(s,u){if(u)return(parseFloat(H(s,"marginLeft"))||s.getBoundingClientRect().left-Ue(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),o.each({margin:"",padding:"",border:"Width"},function(s,u){o.cssHooks[s+u]={expand:function(m){for(var v=0,_={},k=typeof m=="string"?m.split(" "):[m];v<4;v++)_[s+Ce[v]+u]=k[v]||k[v-2]||k[0];return _}},s!=="margin"&&(o.cssHooks[s+u].set=Ve)}),o.fn.extend({css:function(s,u){return qt(this,function(m,v,_){var k,T,W={},B=0;if(Array.isArray(v)){for(k=he(m),T=v.length;B1)}});function yi(s,u,m,v,_){return new yi.prototype.init(s,u,m,v,_)}o.Tween=yi,yi.prototype={constructor:yi,init:function(s,u,m,v,_,k){this.elem=s,this.prop=m,this.easing=_||o.easing._default,this.options=u,this.start=this.now=this.cur(),this.end=v,this.unit=k||(o.cssNumber[m]?"":"px")},cur:function(){var s=yi.propHooks[this.prop];return s&&s.get?s.get(this):yi.propHooks._default.get(this)},run:function(s){var u,m=yi.propHooks[this.prop];return this.options.duration?this.pos=u=o.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=u=s,this.now=(this.end-this.start)*u+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),m&&m.set?m.set(this):yi.propHooks._default.set(this),this}},yi.prototype.init.prototype=yi.prototype,yi.propHooks={_default:{get:function(s){var u;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(u=o.css(s.elem,s.prop,""),!u||u==="auto"?0:u)},set:function(s){o.fx.step[s.prop]?o.fx.step[s.prop](s):s.elem.nodeType===1&&(o.cssHooks[s.prop]||s.elem.style[xi(s.prop)]!=null)?o.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},yi.propHooks.scrollTop=yi.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},o.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},o.fx=yi.prototype.init,o.fx.step={};var no,er,Yu=/^(?:toggle|show|hide)$/,Gu=/queueHooks$/;function Jr(){er&&(G.hidden===!1&&r.requestAnimationFrame?r.requestAnimationFrame(Jr):r.setTimeout(Jr,o.fx.interval),o.fx.tick())}function nl(){return r.setTimeout(function(){no=void 0}),no=Date.now()}function ir(s,u){var m,v=0,_={height:s};for(u=u?1:0;v<4;v+=2-u)m=Ce[v],_["margin"+m]=_["padding"+m]=s;return u&&(_.opacity=_.width=s),_}function ol(s,u,m){for(var v,_=(Wi.tweeners[u]||[]).concat(Wi.tweeners["*"]),k=0,T=_.length;k1)},removeAttr:function(s){return this.each(function(){o.removeAttr(this,s)})}}),o.extend({attr:function(s,u,m){var v,_,k=s.nodeType;if(!(k===3||k===8||k===2)){if(typeof s.getAttribute>"u")return o.prop(s,u,m);if((k!==1||!o.isXMLDoc(s))&&(_=o.attrHooks[u.toLowerCase()]||(o.expr.match.bool.test(u)?rl:void 0)),m!==void 0){if(m===null){o.removeAttr(s,u);return}return _&&"set"in _&&(v=_.set(s,m,u))!==void 0?v:(s.setAttribute(u,m+""),m)}return _&&"get"in _&&(v=_.get(s,u))!==null?v:(v=o.find.attr(s,u),v!=null?v:void 0)}},attrHooks:{type:{set:function(s,u){if(!U.radioValue&&u==="radio"&&P(s,"input")){var m=s.value;return s.setAttribute("type",u),m&&(s.value=m),u}}}},removeAttr:function(s,u){var m,v=0,_=u&&u.match(X);if(_&&s.nodeType===1)for(;m=_[v++];)s.removeAttribute(m)}}),rl={set:function(s,u,m){return u===!1?o.removeAttr(s,m):s.setAttribute(m,m),m}},o.each(o.expr.match.bool.source.match(/\w+/g),function(s,u){var m=wo[u]||o.find.attr;wo[u]=function(v,_,k){var T,W,B=_.toLowerCase();return k||(W=wo[B],wo[B]=T,T=m(v,_,k)!=null?B:null,wo[B]=W),T}});var Ju=/^(?:input|select|textarea|button)$/i,Qu=/^(?:a|area)$/i;o.fn.extend({prop:function(s,u){return qt(this,o.prop,s,u,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[o.propFix[s]||s]})}}),o.extend({prop:function(s,u,m){var v,_,k=s.nodeType;if(!(k===3||k===8||k===2))return(k!==1||!o.isXMLDoc(s))&&(u=o.propFix[u]||u,_=o.propHooks[u]),m!==void 0?_&&"set"in _&&(v=_.set(s,m,u))!==void 0?v:s[u]=m:_&&"get"in _&&(v=_.get(s,u))!==null?v:s[u]},propHooks:{tabIndex:{get:function(s){var u=o.find.attr(s,"tabindex");return u?parseInt(u,10):Ju.test(s.nodeName)||Qu.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),U.optSelected||(o.propHooks.selected={get:function(s){var u=s.parentNode;return u&&u.parentNode&&u.parentNode.selectedIndex,null},set:function(s){var u=s.parentNode;u&&(u.selectedIndex,u.parentNode&&u.parentNode.selectedIndex)}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this});function Sn(s){var u=s.match(X)||[];return u.join(" ")}function Tn(s){return s.getAttribute&&s.getAttribute("class")||""}function Qr(s){return Array.isArray(s)?s:typeof s=="string"?s.match(X)||[]:[]}o.fn.extend({addClass:function(s){var u,m,v,_,k,T;return Y(s)?this.each(function(W){o(this).addClass(s.call(this,W,Tn(this)))}):(u=Qr(s),u.length?this.each(function(){if(v=Tn(this),m=this.nodeType===1&&" "+Sn(v)+" ",m){for(k=0;k-1;)m=m.replace(" "+_+" "," ");T=Sn(m),v!==T&&this.setAttribute("class",T)}}):this):this.attr("class","")},toggleClass:function(s,u){var m,v,_,k,T=typeof s,W=T==="string"||Array.isArray(s);return Y(s)?this.each(function(B){o(this).toggleClass(s.call(this,B,Tn(this),u),u)}):typeof u=="boolean"&&W?u?this.addClass(s):this.removeClass(s):(m=Qr(s),this.each(function(){if(W)for(k=o(this),_=0;_-1)return!0;return!1}});var Zu=/\r/g;o.fn.extend({val:function(s){var u,m,v,_=this[0];return arguments.length?(v=Y(s),this.each(function(k){var T;this.nodeType===1&&(v?T=s.call(this,k,o(this).val()):T=s,T==null?T="":typeof T=="number"?T+="":Array.isArray(T)&&(T=o.map(T,function(W){return W==null?"":W+""})),u=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()],(!u||!("set"in u)||u.set(this,T,"value")===void 0)&&(this.value=T))})):_?(u=o.valHooks[_.type]||o.valHooks[_.nodeName.toLowerCase()],u&&"get"in u&&(m=u.get(_,"value"))!==void 0?m:(m=_.value,typeof m=="string"?m.replace(Zu,""):m!=null?m:"")):void 0}}),o.extend({valHooks:{option:{get:function(s){var u=o.find.attr(s,"value");return u!=null?u:Sn(o.text(s))}},select:{get:function(s){var u,m,v,_=s.options,k=s.selectedIndex,T=s.type==="select-one",W=T?null:[],B=T?k+1:_.length;for(k<0?v=B:v=T?k:0;v-1)&&(m=!0);return m||(s.selectedIndex=-1),k}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(s,u){if(Array.isArray(u))return s.checked=o.inArray(o(s).val(),u)>-1}},U.checkOn||(o.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})}),U.focusin="onfocusin"in r;var al=/^(?:focusinfocus|focusoutblur)$/,sl=function(s){s.stopPropagation()};o.extend(o.event,{trigger:function(s,u,m,v){var _,k,T,W,B,nt,pt,xt,ht=[m||G],mt=M.call(s,"type")?s.type:s,Xt=M.call(s,"namespace")?s.namespace.split("."):[];if(k=xt=T=m=m||G,!(m.nodeType===3||m.nodeType===8)&&!al.test(mt+o.event.triggered)&&(mt.indexOf(".")>-1&&(Xt=mt.split("."),mt=Xt.shift(),Xt.sort()),B=mt.indexOf(":")<0&&"on"+mt,s=s[o.expando]?s:new o.Event(mt,typeof s=="object"&&s),s.isTrigger=v?2:3,s.namespace=Xt.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+Xt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=m),u=u==null?[s]:o.makeArray(u,[s]),pt=o.event.special[mt]||{},!(!v&&pt.trigger&&pt.trigger.apply(m,u)===!1))){if(!v&&!pt.noBubble&&!ct(m)){for(W=pt.delegateType||mt,al.test(W+mt)||(k=k.parentNode);k;k=k.parentNode)ht.push(k),T=k;T===(m.ownerDocument||G)&&ht.push(T.defaultView||T.parentWindow||r)}for(_=0;(k=ht[_++])&&!s.isPropagationStopped();)xt=k,s.type=_>1?W:pt.bindType||mt,nt=(Gt.get(k,"events")||Object.create(null))[s.type]&&Gt.get(k,"handle"),nt&&nt.apply(k,u),nt=B&&k[B],nt&&nt.apply&&Ne(k)&&(s.result=nt.apply(k,u),s.result===!1&&s.preventDefault());return s.type=mt,!v&&!s.isDefaultPrevented()&&(!pt._default||pt._default.apply(ht.pop(),u)===!1)&&Ne(m)&&B&&Y(m[mt])&&!ct(m)&&(T=m[B],T&&(m[B]=null),o.event.triggered=mt,s.isPropagationStopped()&&xt.addEventListener(mt,sl),m[mt](),s.isPropagationStopped()&&xt.removeEventListener(mt,sl),o.event.triggered=void 0,T&&(m[B]=T)),s.result}},simulate:function(s,u,m){var v=o.extend(new o.Event,m,{type:s,isSimulated:!0});o.event.trigger(v,null,u)}}),o.fn.extend({trigger:function(s,u){return this.each(function(){o.event.trigger(s,u,this)})},triggerHandler:function(s,u){var m=this[0];if(m)return o.event.trigger(s,u,m,!0)}}),U.focusin||o.each({focus:"focusin",blur:"focusout"},function(s,u){var m=function(v){o.event.simulate(u,v.target,o.event.fix(v))};o.event.special[u]={setup:function(){var v=this.ownerDocument||this.document||this,_=Gt.access(v,u);_||v.addEventListener(s,m,!0),Gt.access(v,u,(_||0)+1)},teardown:function(){var v=this.ownerDocument||this.document||this,_=Gt.access(v,u)-1;_?Gt.access(v,u,_):(v.removeEventListener(s,m,!0),Gt.remove(v,u))}}});var _o=r.location,ll={guid:Date.now()},Zr=/\?/;o.parseXML=function(s){var u,m;if(!s||typeof s!="string")return null;try{u=new r.DOMParser().parseFromString(s,"text/xml")}catch(v){}return m=u&&u.getElementsByTagName("parsererror")[0],(!u||m)&&o.error("Invalid XML: "+(m?o.map(m.childNodes,function(v){return v.textContent}).join(` `):s)),u};var td=/\[\]$/,cl=/\r?\n/g,ed=/^(?:submit|button|image|reset|file)$/i,id=/^(?:input|select|textarea|keygen)/i;function ta(s,u,m,v){var _;if(Array.isArray(u))o.each(u,function(k,T){m||td.test(s)?v(s,T):ta(s+"["+(typeof T=="object"&&T!=null?k:"")+"]",T,m,v)});else if(!m&&n(u)==="object")for(_ in u)ta(s+"["+_+"]",u[_],m,v);else v(s,u)}o.param=function(s,u){var m,v=[],_=function(k,T){var W=Y(T)?T():T;v[v.length]=encodeURIComponent(k)+"="+encodeURIComponent(W!=null?W:"")};if(s==null)return"";if(Array.isArray(s)||s.jquery&&!o.isPlainObject(s))o.each(s,function(){_(this.name,this.value)});else for(m in s)ta(m,s[m],u,_);return v.join("&")},o.fn.extend({serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=o.prop(this,"elements");return s?o.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!o(this).is(":disabled")&&id.test(this.nodeName)&&!ed.test(s)&&(this.checked||!ni.test(s))}).map(function(s,u){var m=o(this).val();return m==null?null:Array.isArray(m)?o.map(m,function(v){return{name:u.name,value:v.replace(cl,`\r `)}}):{name:u.name,value:m.replace(cl,`\r `)}}).get()}});var nd=/%20/g,od=/#.*$/,rd=/([?&])_=[^&]*/,ad=/^(.*?):[ \t]*([^\r\n]*)$/mg,sd=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ld=/^(?:GET|HEAD)$/,cd=/^\/\//,hl={},ea={},ul="*/".concat("*"),ia=G.createElement("a");ia.href=_o.href;function dl(s){return function(u,m){typeof u!="string"&&(m=u,u="*");var v,_=0,k=u.toLowerCase().match(X)||[];if(Y(m))for(;v=k[_++];)v[0]==="+"?(v=v.slice(1)||"*",(s[v]=s[v]||[]).unshift(m)):(s[v]=s[v]||[]).push(m)}}function pl(s,u,m,v){var _={},k=s===ea;function T(W){var B;return _[W]=!0,o.each(s[W]||[],function(nt,pt){var xt=pt(u,m,v);if(typeof xt=="string"&&!k&&!_[xt])return u.dataTypes.unshift(xt),T(xt),!1;if(k)return!(B=xt)}),B}return T(u.dataTypes[0])||!_["*"]&&T("*")}function na(s,u){var m,v,_=o.ajaxSettings.flatOptions||{};for(m in u)u[m]!==void 0&&((_[m]?s:v||(v={}))[m]=u[m]);return v&&o.extend(!0,s,v),s}function hd(s,u,m){for(var v,_,k,T,W=s.contents,B=s.dataTypes;B[0]==="*";)B.shift(),v===void 0&&(v=s.mimeType||u.getResponseHeader("Content-Type"));if(v){for(_ in W)if(W[_]&&W[_].test(v)){B.unshift(_);break}}if(B[0]in m)k=B[0];else{for(_ in m){if(!B[0]||s.converters[_+" "+B[0]]){k=_;break}T||(T=_)}k=k||T}if(k)return k!==B[0]&&B.unshift(k),m[k]}function ud(s,u,m,v){var _,k,T,W,B,nt={},pt=s.dataTypes.slice();if(pt[1])for(T in s.converters)nt[T.toLowerCase()]=s.converters[T];for(k=pt.shift();k;)if(s.responseFields[k]&&(m[s.responseFields[k]]=u),!B&&v&&s.dataFilter&&(u=s.dataFilter(u,s.dataType)),B=k,k=pt.shift(),k){if(k==="*")k=B;else if(B!=="*"&&B!==k){if(T=nt[B+" "+k]||nt["* "+k],!T){for(_ in nt)if(W=_.split(" "),W[1]===k&&(T=nt[B+" "+W[0]]||nt["* "+W[0]],T)){T===!0?T=nt[_]:nt[_]!==!0&&(k=W[0],pt.unshift(W[1]));break}}if(T!==!0)if(T&&s.throws)u=T(u);else try{u=T(u)}catch(xt){return{state:"parsererror",error:T?xt:"No conversion from "+B+" to "+k}}}}return{state:"success",data:u}}o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_o.href,type:"GET",isLocal:sd.test(_o.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ul,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":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,u){return u?na(na(s,o.ajaxSettings),u):na(o.ajaxSettings,s)},ajaxPrefilter:dl(hl),ajaxTransport:dl(ea),ajax:function(s,u){typeof s=="object"&&(u=s,s=void 0),u=u||{};var m,v,_,k,T,W,B,nt,pt,xt,ht=o.ajaxSetup({},u),mt=ht.context||ht,Xt=ht.context&&(mt.nodeType||mt.jquery)?o(mt):o.event,se=o.Deferred(),Jt=o.Callbacks("once memory"),Je=ht.statusCode||{},Ye={},Si={},Se="canceled",ae={readyState:0,getResponseHeader:function(ve){var Re;if(B){if(!k)for(k={};Re=ad.exec(_);)k[Re[1].toLowerCase()+" "]=(k[Re[1].toLowerCase()+" "]||[]).concat(Re[2]);Re=k[ve.toLowerCase()+" "]}return Re==null?null:Re.join(", ")},getAllResponseHeaders:function(){return B?_:null},setRequestHeader:function(ve,Re){return B==null&&(ve=Si[ve.toLowerCase()]=Si[ve.toLowerCase()]||ve,Ye[ve]=Re),this},overrideMimeType:function(ve){return B==null&&(ht.mimeType=ve),this},statusCode:function(ve){var Re;if(ve)if(B)ae.always(ve[ae.status]);else for(Re in ve)Je[Re]=[Je[Re],ve[Re]];return this},abort:function(ve){var Re=ve||Se;return m&&m.abort(Re),bi(0,Re),this}};if(se.promise(ae),ht.url=((s||ht.url||_o.href)+"").replace(cd,_o.protocol+"//"),ht.type=u.method||u.type||ht.method||ht.type,ht.dataTypes=(ht.dataType||"*").toLowerCase().match(X)||[""],ht.crossDomain==null){W=G.createElement("a");try{W.href=ht.url,W.href=W.href,ht.crossDomain=ia.protocol+"//"+ia.host!=W.protocol+"//"+W.host}catch(ve){ht.crossDomain=!0}}if(ht.data&&ht.processData&&typeof ht.data!="string"&&(ht.data=o.param(ht.data,ht.traditional)),pl(hl,ht,u,ae),B)return ae;nt=o.event&&ht.global,nt&&o.active++===0&&o.event.trigger("ajaxStart"),ht.type=ht.type.toUpperCase(),ht.hasContent=!ld.test(ht.type),v=ht.url.replace(od,""),ht.hasContent?ht.data&&ht.processData&&(ht.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ht.data=ht.data.replace(nd,"+")):(xt=ht.url.slice(v.length),ht.data&&(ht.processData||typeof ht.data=="string")&&(v+=(Zr.test(v)?"&":"?")+ht.data,delete ht.data),ht.cache===!1&&(v=v.replace(rd,"$1"),xt=(Zr.test(v)?"&":"?")+"_="+ll.guid+++xt),ht.url=v+xt),ht.ifModified&&(o.lastModified[v]&&ae.setRequestHeader("If-Modified-Since",o.lastModified[v]),o.etag[v]&&ae.setRequestHeader("If-None-Match",o.etag[v])),(ht.data&&ht.hasContent&&ht.contentType!==!1||u.contentType)&&ae.setRequestHeader("Content-Type",ht.contentType),ae.setRequestHeader("Accept",ht.dataTypes[0]&&ht.accepts[ht.dataTypes[0]]?ht.accepts[ht.dataTypes[0]]+(ht.dataTypes[0]!=="*"?", "+ul+"; q=0.01":""):ht.accepts["*"]);for(pt in ht.headers)ae.setRequestHeader(pt,ht.headers[pt]);if(ht.beforeSend&&(ht.beforeSend.call(mt,ae,ht)===!1||B))return ae.abort();if(Se="abort",Jt.add(ht.complete),ae.done(ht.success),ae.fail(ht.error),m=pl(ea,ht,u,ae),!m)bi(-1,"No Transport");else{if(ae.readyState=1,nt&&Xt.trigger("ajaxSend",[ae,ht]),B)return ae;ht.async&&ht.timeout>0&&(T=r.setTimeout(function(){ae.abort("timeout")},ht.timeout));try{B=!1,m.send(Ye,bi)}catch(ve){if(B)throw ve;bi(-1,ve)}}function bi(ve,Re,ko,nr){var Ti,En,An,wi,fn,Oi=Re;B||(B=!0,T&&r.clearTimeout(T),m=void 0,_=nr||"",ae.readyState=ve>0?4:0,Ti=ve>=200&&ve<300||ve===304,ko&&(wi=hd(ht,ae,ko)),!Ti&&o.inArray("script",ht.dataTypes)>-1&&o.inArray("json",ht.dataTypes)<0&&(ht.converters["text script"]=function(){}),wi=ud(ht,wi,ae,Ti),Ti?(ht.ifModified&&(fn=ae.getResponseHeader("Last-Modified"),fn&&(o.lastModified[v]=fn),fn=ae.getResponseHeader("etag"),fn&&(o.etag[v]=fn)),ve===204||ht.type==="HEAD"?Oi="nocontent":ve===304?Oi="notmodified":(Oi=wi.state,En=wi.data,An=wi.error,Ti=!An)):(An=Oi,(ve||!Oi)&&(Oi="error",ve<0&&(ve=0))),ae.status=ve,ae.statusText=(Re||Oi)+"",Ti?se.resolveWith(mt,[En,Oi,ae]):se.rejectWith(mt,[ae,Oi,An]),ae.statusCode(Je),Je=void 0,nt&&Xt.trigger(Ti?"ajaxSuccess":"ajaxError",[ae,ht,Ti?En:An]),Jt.fireWith(mt,[ae,Oi]),nt&&(Xt.trigger("ajaxComplete",[ae,ht]),--o.active||o.event.trigger("ajaxStop")))}return ae},getJSON:function(s,u,m){return o.get(s,u,m,"json")},getScript:function(s,u){return o.get(s,void 0,u,"script")}}),o.each(["get","post"],function(s,u){o[u]=function(m,v,_,k){return Y(v)&&(k=k||_,_=v,v=void 0),o.ajax(o.extend({url:m,type:u,dataType:k,data:v,success:_},o.isPlainObject(m)&&m))}}),o.ajaxPrefilter(function(s){var u;for(u in s.headers)u.toLowerCase()==="content-type"&&(s.contentType=s.headers[u]||"")}),o._evalUrl=function(s,u,m){return o.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(v){o.globalEval(v,u,m)}})},o.fn.extend({wrapAll:function(s){var u;return this[0]&&(Y(s)&&(s=s.call(this[0])),u=o(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&u.insertBefore(this[0]),u.map(function(){for(var m=this;m.firstElementChild;)m=m.firstElementChild;return m}).append(this)),this},wrapInner:function(s){return Y(s)?this.each(function(u){o(this).wrapInner(s.call(this,u))}):this.each(function(){var u=o(this),m=u.contents();m.length?m.wrapAll(s):u.append(s)})},wrap:function(s){var u=Y(s);return this.each(function(m){o(this).wrapAll(u?s.call(this,m):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){o(this).replaceWith(this.childNodes)}),this}}),o.expr.pseudos.hidden=function(s){return!o.expr.pseudos.visible(s)},o.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},o.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(s){}};var dd={0:200,1223:204},xo=o.ajaxSettings.xhr();U.cors=!!xo&&"withCredentials"in xo,U.ajax=xo=!!xo,o.ajaxTransport(function(s){var u,m;if(U.cors||xo&&!s.crossDomain)return{send:function(v,_){var k,T=s.xhr();if(T.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(k in s.xhrFields)T[k]=s.xhrFields[k];s.mimeType&&T.overrideMimeType&&T.overrideMimeType(s.mimeType),!s.crossDomain&&!v["X-Requested-With"]&&(v["X-Requested-With"]="XMLHttpRequest");for(k in v)T.setRequestHeader(k,v[k]);u=function(W){return function(){u&&(u=m=T.onload=T.onerror=T.onabort=T.ontimeout=T.onreadystatechange=null,W==="abort"?T.abort():W==="error"?typeof T.status!="number"?_(0,"error"):_(T.status,T.statusText):_(dd[T.status]||T.status,T.statusText,(T.responseType||"text")!=="text"||typeof T.responseText!="string"?{binary:T.response}:{text:T.responseText},T.getAllResponseHeaders()))}},T.onload=u(),m=T.onerror=T.ontimeout=u("error"),T.onabort!==void 0?T.onabort=m:T.onreadystatechange=function(){T.readyState===4&&r.setTimeout(function(){u&&m()})},u=u("abort");try{T.send(s.hasContent&&s.data||null)}catch(W){if(u)throw W}},abort:function(){u&&u()}}}),o.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return o.globalEval(s),s}}}),o.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),o.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var u,m;return{send:function(v,_){u=o("