").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(n){t||this._allowInteraction(n)||(n.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=n("
").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 n=this.document.data("ui-dialog-overlays")-1;n?this.document.data("ui-dialog-overlays",n):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),n.widget("ui.droppable",{version:"1.11.4",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 t,i=this.options,r=i.accept;this.isover=!1,this.isout=!0,this.accept=n.isFunction(r)?r:function(n){return n.is(r)},this.proportions=function(){return arguments.length?(t=arguments[0],void 0):t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[],n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;n.length>t;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){if("accept"===t)this.accept=n.isFunction(i)?i:function(n){return n.is(i)};else if("scope"===t){var r=n.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return r&&(r.currentItem||r.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return u=!0,!1}),u?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(r)),this.element):!1):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}}}),n.ui.intersect=function(){function n(n,t,i){return n>=t&&t+i>n}return function(t,i,r,u){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,h=o+t.helperProportions.width,c=s+t.helperProportions.height,f=i.offset.left,e=i.offset.top,l=f+i.proportions().width,a=e+i.proportions().height;switch(r){case"fit":return o>=f&&l>=h&&s>=e&&a>=c;case"intersect":return o+t.helperProportions.width/2>f&&l>h-t.helperProportions.width/2&&s+t.helperProportions.height/2>e&&a>c-t.helperProportions.height/2;case"pointer":return n(u.pageY,e,i.proportions().height)&&n(u.pageX,f,i.proportions().width);case"touch":return(s>=e&&a>=s||c>=e&&a>=c||e>s&&c>a)&&(o>=f&&l>=o||h>=f&&l>=h||f>o&&h>l);default:return!1}}}(),n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;u.length>r;r++)if(!(u[r].options.disabled||t&&!u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;e.length>f;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}u[r].visible="none"!==u[r].element.css("display"),u[r].visible&&("mousedown"===o&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i),n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,e,f,o=n.ui.intersect(t,this,this.options.tolerance,i),u=!o&&this.isover?"isout":o&&!this.isover?"isover":null;u&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===e}),f.length&&(r=n(f[0]).droppable("instance"),r.greedyChild="isover"===u)),r&&"isover"===u&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this["isout"===u?"isover":"isout"]=!1,this["isover"===u?"_over":"_out"].call(this,i),r&&"isout"===u&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}},n.ui.droppable,o="ui-effects-",s=n,n.effects={effect:{}},function(n,t){function f(n,t,i){var r=h[t.type]||{};return null==n?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n)?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:n>r.max?r.max:n)}function s(f){var o=i(),s=o._rgba=[];return f=f.toLowerCase(),r(y,function(n,i){var r,h=i.re.exec(f),c=h&&i.parse(h),e=i.space||"rgba";return c?(r=o[e](c),o[u[e].cache]=r[u[e].cache],s=o._rgba=r._rgba,!1):t}),s.length?("0,0,0,0"===s.join()&&n.extend(s,e.transparent),o):e[f]}function o(n,t,i){return i=(i+1)%1,1>6*i?n+6*(t-n)*i:1>2*i?t:2>3*i?n+6*(t-n)*(2/3-i):n}var e,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",v=/^([\-+])=\s*(\d+\.?\d*)/,y=[{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]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={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"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=i.support={},l=n("
")[0],r=n.each;l.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=l.style.backgroundColor.indexOf("rgba")>-1,r(u,function(n,t){t.cache="_"+n,t.props.alpha={idx:3,type:"percent",def:1}}),i.fn=n.extend(i.prototype,{parse:function(o,h,c,l){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(h),h=t);var a=this,v=n.type(o),y=this._rgba=[];return h!==t&&(o=[o,h,c,l],v="array"),"string"===v?this.parse(s(o)||e._default):"array"===v?(r(u.rgba.props,function(n,t){y[t.idx]=f(o[t.idx],t)}),this):"object"===v?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if("alpha"===n||null==o[n])return;a[u]=i.to(a._rgba)}a[u][t.idx]=f(o[n],t,!0)}),a[u]&&0>n.inArray(null,a[u].slice(0,3))&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):t},is:function(n){var o=i(n),f=!0,e=this;return r(u,function(n,i){var s,u=o[i.cache];return u&&(s=e[i.cache]||i.to&&i.to(e._rgba)||[],r(i.props,function(n,i){return null!=u[i.idx]?f=u[i.idx]===s[i.idx]:t})),f}),f},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var e=i(n),c=e._space(),o=u[c],l=0===this.alpha()?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),s=a.slice();return e=e[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=e[c],o=h[i.type]||{};null!==u&&(null===r?s[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),s[c]=f((u-r)*t+r,i)))}),this[c](s)},blend:function(t){if(1===this._rgba[3])return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return null==n?t>2?1:0:n});return 1===t[3]&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return null==n&&(n=t>2?1:0),t&&3>t&&(n=Math.round(100*n)+"%"),n});return 1===t[3]&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(255*r)),"#"+n.map(i,function(n){return n=(n||0).toString(16),1===n.length?"0"+n:n}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),i.fn.parse.prototype=i.fn,u.hsla.to=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var s,h,i=n[0]/255,r=n[1]/255,f=n[2]/255,c=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,l=.5*o;return s=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,h=0===t?0:.5>=l?t/o:t/(2-o),[Math.round(s)%360,h,l,null==c?1:c]},u.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=.5>=t?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(255*o(f,i,r+1/3)),Math.round(255*o(f,i,r)),Math.round(255*o(f,i,r-1/3)),e]},r(u,function(u,e){var s=e.props,o=e.cache,h=e.to,c=e.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v="array"===a||"object"===a?u:arguments,e=this[o].slice();return r(s,function(n,t){var i=v["object"===a?n:t.idx];null==i&&(i=e[t.idx]),e[t.idx]=f(i,t)}),c?(l=i(c(e)),l[o]=e,l):i(e)},r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f,e=n.type(i),h="alpha"===t?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx];return"undefined"===e?s:("function"===e&&(i=i.call(this,s),e=n.type(i)),null==i&&r.empty?this:("string"===e&&(f=v.exec(i),f&&(i=s+parseFloat(f[2])*("+"===f[1]?1:-1))),o[r.idx]=i,this[h](o)))})})}),i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if("transparent"!==u&&("string"!==n.type(u)||(o=s(u)))){if(u=i(o||u),!c.rgba&&1!==u._rgba[3]){for(f="backgroundColor"===r?t.parentNode:t;(""===e||"transparent"===e)&&f&&f.style;)try{e=n.css(f,"backgroundColor"),f=f.parentNode}catch(h){}u=u.blend(e&&"transparent"!==e?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(h){}}},n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0),n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})},i.hook(a),n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}},e=n.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"}}(s),function(){function t(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],"string"==typeof i[r]&&(f[n.camelCase(r)]=i[r]);else for(r in i)"string"==typeof i[r]&&(f[r]=i[r]);return f}function i(t,i){var r,f,e={};for(r in i)f=i[r],t[r]!==f&&(u[r]||(n.fx.step[r]||!isNaN(parseFloat(f)))&&(e[r]=f));return e}var r=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){("none"!==n.end&&!n.setAttr||1===n.pos&&!n.setAttr)&&(s.style(n.elem,i,n.end),n.setAttr=!0)}}),n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}),n.effects.animateClass=function(u,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var o,e=n(this),h=e.attr("class")||"",f=s.children?e.find("*").addBack():e;f=f.map(function(){var i=n(this);return{el:i,start:t(this)}}),o=function(){n.each(r,function(n,t){u[t]&&e[t+"Class"](u[t])})},o(),f=f.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),e.attr("class",h),f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()}),n.when.apply(n,f.get()).done(function(){o(),n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})}),s.complete.call(e[0])})})},n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return"boolean"==typeof r||void 0===r?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function t(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),("number"==typeof i||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:"number"==typeof r?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function i(t){return!t||"number"==typeof t||n.fx.speeds[t]?!0:"string"!=typeof t||n.effects.effect[t]?n.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}n.extend(n.effects,{version:"1.11.4",save:function(n,t){for(var i=0;t.length>i;i++)null!==t[i]&&n.data(o+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0;t.length>i;i++)null!==t[i]&&(r=n.data(o+t[i]),void 0===r&&(r=""),n.css(t[i],r))},setMode:function(n,t){return"toggle"===t&&(t=n.is(":hidden")?"show":"hide"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).focus(),u=t.parent(),"static"===t.css("position")?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r),isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).focus()),t},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}}),n.fn.extend({effect:function(){function r(t){function f(){n.isFunction(o)&&o.call(r[0]),n.isFunction(t)&&t()}var r=n(this),o=i.complete,u=i.mode;(r.is(":hidden")?"hide"===u:"show"===u)?(r[u](),f()):e.call(r[0],i,f)}var i=t.apply(this,arguments),u=i.mode,f=i.queue,e=n.effects.effect[i.effect];return n.fx.off||!e?u?this[u](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):f===!1?this.each(r):this.queue(f||"fx",r)},show:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="show",this.effect.call(this,u)}}(n.fn.show),hide:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="hide",this.effect.call(this,u)}}(n.fn.hide),toggle:function(n){return function(r){if(i(r)||"boolean"==typeof r)return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="toggle",this.effect.call(this,u)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r}})}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}}),n.extend(t,{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 0===n||1===n?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 t,i=4;((t=Math.pow(2,--i))-1)/11>n;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-n,2)}}),n.each(t,function(t,i){n.easing["easeIn"+t]=i,n.easing["easeOut"+t]=function(n){return 1-i(1-n)},n.easing["easeInOut"+t]=function(n){return.5>n?i(2*n)/2:1-i(-2*n+2)/2}})}(),n.effects,n.effects.effect.blind=function(t,i){var u,f,e,r=n(this),b=/up|down|vertical/,w=/up|left|vertical|horizontal/,c=["position","top","bottom","left","right","height","width"],p=n.effects.setMode(r,t.mode||"hide"),v=t.direction||"up",o=b.test(v),h=o?"height":"width",s=o?"top":"left",y=w.test(v),l={},a="show"===p;r.parent().is(".ui-effects-wrapper")?n.effects.save(r.parent(),c):n.effects.save(r,c),r.show(),u=n.effects.createWrapper(r).css({overflow:"hidden"}),f=u[h](),e=parseFloat(u.css(s))||0,l[h]=a?f:0,y||(r.css(o?"bottom":"right",0).css(o?"top":"left","auto").css({position:"absolute"}),l[s]=a?e:f+e),a&&(u.css(h,0),y||u.css(s,e+f)),u.animate(l,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===p&&r.hide(),n.effects.restore(r,c),n.effects.removeWrapper(r),i()}})},n.effects.effect.bounce=function(t,i){var b,f,e,r=n(this),w=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),s="hide"===k,y="show"===k,l=t.direction||"up",u=t.distance,p=t.times||5,d=2*p+(y||s?1:0),a=t.duration/d,h=t.easing,o="up"===l||"down"===l?"top":"left",v="up"===l||"left"===l,c=r.queue(),g=c.length;for((y||s)&&w.push("opacity"),n.effects.save(r,w),r.show(),n.effects.createWrapper(r),u||(u=r["top"===o?"outerHeight":"outerWidth"]()/3),y&&(e={opacity:1},e[o]=0,r.css("opacity",0).css(o,v?2*-u:2*u).animate(e,a,h)),s&&(u/=Math.pow(2,p-1)),e={},e[o]=0,b=0;p>b;b++)f={},f[o]=(v?"-=":"+=")+u,r.animate(f,a,h).animate(e,a,h),u=s?2*u:u/2;s&&(f={opacity:0},f[o]=(v?"-=":"+=")+u,r.animate(f,a,h)),r.queue(function(){s&&r.hide(),n.effects.restore(r,w),n.effects.removeWrapper(r),i()}),g>1&&c.splice.apply(c,[1,0].concat(c.splice(g,d+1))),r.dequeue()},n.effects.effect.clip=function(t,i){var h,u,f,r=n(this),c=["position","top","bottom","left","right","height","width"],v=n.effects.setMode(r,t.mode||"hide"),e="show"===v,y=t.direction||"vertical",l="vertical"===y,o=l?"height":"width",a=l?"top":"left",s={};n.effects.save(r,c),r.show(),h=n.effects.createWrapper(r).css({overflow:"hidden"}),u="IMG"===r[0].tagName?h:r,f=u[o](),e&&(u.css(o,0),u.css(a,f/2)),s[o]=e?f:0,s[a]=e?0:f/2,u.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){e||r.hide(),n.effects.restore(r,c),n.effects.removeWrapper(r),i()}})},n.effects.effect.drop=function(t,i){var u,r=n(this),h=["position","top","bottom","left","right","opacity","height","width"],c=n.effects.setMode(r,t.mode||"hide"),e="show"===c,f=t.direction||"left",o="up"===f||"down"===f?"top":"left",s="up"===f||"left"===f?"pos":"neg",l={opacity:e?1:0};n.effects.save(r,h),r.show(),n.effects.createWrapper(r),u=t.distance||r["top"===o?"outerHeight":"outerWidth"](!0)/2,e&&r.css("opacity",0).css(o,"pos"===s?-u:u),l[o]=(e?"pos"===s?"+=":"-=":"pos"===s?"-=":"+=")+u,r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===c&&r.hide(),n.effects.restore(r,h),n.effects.removeWrapper(r),i()}})},n.effects.effect.explode=function(t,i){function d(){p.push(this),p.length===s*c&&k()}function k(){u.css({visibility:"visible"}),n(p).remove(),r||u.hide(),i()}for(var e,v,a,y,l,s=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=s,u=n(this),b=n.effects.setMode(u,t.mode||"hide"),r="show"===b,w=u.show().css("visibility","hidden").offset(),o=Math.ceil(u.outerWidth()/c),h=Math.ceil(u.outerHeight()/s),p=[],f=0;s>f;f++)for(a=w.top+f*h,l=f-(s-1)/2,e=0;c>e;e++)v=w.left+e*o,y=e-(c-1)/2,u.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-e*o,top:-f*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:o,height:h,left:v+(r?y*o:0),top:a+(r?l*h:0),opacity:r?0:1}).animate({left:v+(r?0:y*o),top:a+(r?0:l*h),opacity:r?1:0},t.duration||500,t.easing,d)},n.effects.effect.fade=function(t,i){var r=n(this),u=n.effects.setMode(r,t.mode||"toggle");r.animate({opacity:u},{queue:!1,duration:t.duration,easing:t.easing,complete:i})},n.effects.effect.fold=function(t,i){var r,e,u=n(this),p=["position","top","bottom","left","right","height","width"],y=n.effects.setMode(u,t.mode||"hide"),o="show"===y,a="hide"===y,f=t.size||15,w=/([0-9]+)%/.exec(f),l=!!t.horizFirst,c=o!==l,h=c?["width","height"]:["height","width"],s=t.duration/2,v={},b={};n.effects.save(u,p),u.show(),r=n.effects.createWrapper(u).css({overflow:"hidden"}),e=c?[r.width(),r.height()]:[r.height(),r.width()],w&&(f=parseInt(w[1],10)/100*e[a?0:1]),o&&r.css(l?{height:0,width:f}:{height:f,width:0}),v[h[0]]=o?e[0]:f,b[h[1]]=o?e[1]:0,r.animate(v,s,t.easing).animate(b,s,t.easing,function(){a&&u.hide(),n.effects.restore(u,p),n.effects.removeWrapper(u),i()})},n.effects.effect.highlight=function(t,i){var r=n(this),u=["backgroundImage","backgroundColor","opacity"],f=n.effects.setMode(r,t.mode||"show"),e={backgroundColor:r.css("backgroundColor")};"hide"===f&&(e.opacity=0),n.effects.save(r,u),r.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===f&&r.hide(),n.effects.restore(r,u),i()}})},n.effects.effect.size=function(t,i){var f,l,u,r=n(this),w=["position","top","bottom","left","right","width","height","overflow","opacity"],k=["position","top","bottom","left","right","overflow","opacity"],y=["width","height","overflow"],v=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=n.effects.setMode(r,t.mode||"effect"),a=t.restore||"effect"!==c,h=t.scale||"both",b=t.origin||["middle","center"],d=r.css("position"),e=a?w:k,p={height:0,width:0,outerHeight:0,outerWidth:0};"show"===c&&r.show(),f={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===t.mode&&"show"===c?(r.from=t.to||p,r.to=t.from||f):(r.from=t.from||("show"===c?p:f),r.to=t.to||("hide"===c?p:f)),u={from:{y:r.from.height/f.height,x:r.from.width/f.width},to:{y:r.to.height/f.height,x:r.to.width/f.width}},("box"===h||"both"===h)&&(u.from.y!==u.to.y&&(e=e.concat(o),r.from=n.effects.setTransition(r,o,u.from.y,r.from),r.to=n.effects.setTransition(r,o,u.to.y,r.to)),u.from.x!==u.to.x&&(e=e.concat(s),r.from=n.effects.setTransition(r,s,u.from.x,r.from),r.to=n.effects.setTransition(r,s,u.to.x,r.to))),("content"===h||"both"===h)&&u.from.y!==u.to.y&&(e=e.concat(v).concat(y),r.from=n.effects.setTransition(r,v,u.from.y,r.from),r.to=n.effects.setTransition(r,v,u.to.y,r.to)),n.effects.save(r,e),r.show(),n.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),b&&(l=n.effects.getBaseline(b,f),r.from.top=(f.outerHeight-r.outerHeight())*l.y,r.from.left=(f.outerWidth-r.outerWidth())*l.x,r.to.top=(f.outerHeight-r.to.outerHeight)*l.y,r.to.left=(f.outerWidth-r.to.outerWidth)*l.x),r.css(r.from),("content"===h||"both"===h)&&(o=o.concat(["marginTop","marginBottom"]).concat(v),s=s.concat(["marginLeft","marginRight"]),y=w.concat(o).concat(s),r.find("*[width]").each(function(){var i=n(this),r={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};a&&n.effects.save(i,y),i.from={height:r.height*u.from.y,width:r.width*u.from.x,outerHeight:r.outerHeight*u.from.y,outerWidth:r.outerWidth*u.from.x},i.to={height:r.height*u.to.y,width:r.width*u.to.x,outerHeight:r.height*u.to.y,outerWidth:r.width*u.to.x},u.from.y!==u.to.y&&(i.from=n.effects.setTransition(i,o,u.from.y,i.from),i.to=n.effects.setTransition(i,o,u.to.y,i.to)),u.from.x!==u.to.x&&(i.from=n.effects.setTransition(i,s,u.from.x,i.from),i.to=n.effects.setTransition(i,s,u.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){a&&n.effects.restore(i,y)})})),r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===c&&r.hide(),n.effects.restore(r,e),a||("static"===d?r.css({position:"relative",top:r.to.top,left:r.to.left}):n.each(["top","left"],function(n,t){r.css(t,function(t,i){var f=parseInt(i,10),u=n?r.to.left:r.to.top;return"auto"===i?u+"px":f+u+"px"})})),n.effects.removeWrapper(r),i()}})},n.effects.effect.scale=function(t,i){var u=n(this),r=n.extend(!0,{},t),f=n.effects.setMode(u,t.mode||"effect"),s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===f?0:100),h=t.direction||"both",c=t.origin,e={height:u.height(),width:u.width(),outerHeight:u.outerHeight(),outerWidth:u.outerWidth()},o={y:"horizontal"!==h?s/100:1,x:"vertical"!==h?s/100:1};r.effect="size",r.queue=!1,r.complete=i,"effect"!==f&&(r.origin=c||["middle","center"],r.restore=!0),r.from=t.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:e),r.to={height:e.height*o.y,width:e.width*o.x,outerHeight:e.outerHeight*o.y,outerWidth:e.outerWidth*o.x},r.fade&&("show"===f&&(r.from.opacity=0,r.to.opacity=1),"hide"===f&&(r.from.opacity=1,r.to.opacity=0)),u.effect(r)},n.effects.effect.puff=function(t,i){var r=n(this),e=n.effects.setMode(r,t.mode||"hide"),o="hide"===e,s=parseInt(t.percent,10)||150,f=s/100,u={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};n.extend(t,{effect:"scale",queue:!1,fade:!0,mode:e,complete:i,percent:o?s:100,from:o?u:{height:u.height*f,width:u.width*f,outerHeight:u.outerHeight*f,outerWidth:u.outerWidth*f}}),r.effect(t)},n.effects.effect.pulsate=function(t,i){var e,r=n(this),o=n.effects.setMode(r,t.mode||"show"),h="show"===o,a="hide"===o,v=h||"hide"===o,s=2*(t.times||5)+(v?1:0),c=t.duration/s,u=0,f=r.queue(),l=f.length;for((h||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1),e=1;s>e;e++)r.animate({opacity:u},c,t.easing),u=1-u;r.animate({opacity:u},c,t.easing),r.queue(function(){a&&r.hide(),i()}),l>1&&f.splice.apply(f,[1,0].concat(f.splice(l,s+1))),r.dequeue()},n.effects.effect.shake=function(t,i){var o,r=n(this),p=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),f=t.direction||"left",h=t.distance||20,y=t.times||3,w=2*y+1,u=Math.round(t.duration/w),l="up"===f||"down"===f?"top":"left",a="up"===f||"left"===f,c={},s={},v={},e=r.queue(),b=e.length;for(n.effects.save(r,p),r.show(),n.effects.createWrapper(r),c[l]=(a?"-=":"+=")+h,s[l]=(a?"+=":"-=")+2*h,v[l]=(a?"-=":"+=")+2*h,r.animate(c,u,t.easing),o=1;y>o;o++)r.animate(s,u,t.easing).animate(v,u,t.easing);r.animate(s,u,t.easing).animate(c,u/2,t.easing).queue(function(){"hide"===k&&r.hide(),n.effects.restore(r,p),n.effects.removeWrapper(r),i()}),b>1&&e.splice.apply(e,[1,0].concat(e.splice(b,w+1))),r.dequeue()},n.effects.effect.slide=function(t,i){var u,r=n(this),s=["position","top","bottom","left","right","width","height"],h=n.effects.setMode(r,t.mode||"show"),c="show"===h,f=t.direction||"left",e="up"===f||"down"===f?"top":"left",o="up"===f||"left"===f,l={};n.effects.save(r,s),r.show(),u=t.distance||r["top"===e?"outerHeight":"outerWidth"](!0),n.effects.createWrapper(r).css({overflow:"hidden"}),c&&r.css(e,o?isNaN(u)?"-"+u:-u:u),l[e]=(c?o?"+=":"-=":o?"-=":"+=")+u,r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===h&&r.hide(),n.effects.restore(r,s),n.effects.removeWrapper(r),i()}})},n.effects.effect.transfer=function(t,i){var u=n(this),r=n(t.to),f="fixed"===r.css("position"),e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("
").appendTo(document.body).addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove(),i()})},n.widget("ui.progressbar",{version:"1.11.4",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=n("").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(n){return void 0===n?this.options.value:(this.options.value=this._constrainedValue(n),this._refreshValue(),void 0)},_constrainedValue:function(n){return void 0===n&&(n=this.options.value),this.indeterminate=n===!1,"number"!=typeof n&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value,this._super(n),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(n,t){"max"===n&&(t=Math.max(this.min,t)),"disabled"===n&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(n,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("
").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),n.widget("ui.selectable",n.ui.mouse,{version:"1.11.4",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 t,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t=n(i.options.filter,i.element[0]),t.addClass("ui-selectee"),t.each(function(){var t=n(this),i=t.offset();n.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=n("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0,t.metaKey||t.ctrlKey||(r.$element.removeClass("ui-selected"),r.selected=!1,r.$element.addClass("ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(u?"ui-unselecting":"ui-selected").addClass(u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var e,o=this,s=this.options,i=this.opos[0],r=this.opos[1],u=t.pageX,f=t.pageY;return i>u&&(e=u,u=i,i=e),r>f&&(e=f,f=r,r=e),this.helper.css({left:i,top:r,width:u-i,height:f-r}),this.selectees.each(function(){var e=n.data(this,"selectable-item"),h=!1;e&&e.element!==o.element[0]&&("touch"===s.tolerance?h=!(e.left>u||i>e.right||e.top>f||r>e.bottom):"fit"===s.tolerance&&(h=e.left>i&&u>e.right&&e.top>r&&f>e.bottom),h?(e.selected&&(e.$element.removeClass("ui-selected"),e.selected=!1),e.unselecting&&(e.$element.removeClass("ui-unselecting"),e.unselecting=!1),e.selecting||(e.$element.addClass("ui-selecting"),e.selecting=!0,o._trigger("selecting",t,{selecting:e.element}))):(e.selecting&&((t.metaKey||t.ctrlKey)&&e.startselected?(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.$element.addClass("ui-selected"),e.selected=!0):(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.startselected&&(e.$element.addClass("ui-unselecting"),e.unselecting=!0),o._trigger("unselecting",t,{unselecting:e.element}))),e.selected&&(t.metaKey||t.ctrlKey||e.startselected||(e.$element.removeClass("ui-selected"),e.selected=!1,e.$element.addClass("ui-unselecting"),e.unselecting=!0,o._trigger("unselecting",t,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-unselecting"),r.unselecting=!1,r.startselected=!1,i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-selecting").addClass("ui-selected"),r.selecting=!1,r.selected=!0,r.startselected=!0,i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),n.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"
",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var n=this.element.uniqueId().attr("id");this.ids={element:n,button:n+"-button",menu:n+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var t=this;this.label=n("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(n){this.button.focus(),n.preventDefault()}}),this.element.hide(),this.button=n("",{"class":"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),n("",{"class":"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=n("",{"class":"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){t.menuItems||t._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var t=this;this.menu=n("",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=n("",{"class":"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(n,i){n.preventDefault(),t._setSelection(),t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){var r=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&r.index!==t.focusIndex&&(t._trigger("focus",n,{item:r}),t.isOpen||t._select(r,n)),t.focusIndex=r.index,t.button.attr("aria-activedescendant",t.menuItems.eq(r.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var n,t=this.element.find("option");t.length&&(this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(t,i){var u=this,r="";n.each(i,function(i,f){f.optgroup!==r&&(n("
",{"class":"ui-selectmenu-optgroup ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:f.optgroup}).appendTo(t),r=f.optgroup),u._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n(" ");return i.disabled&&r.addClass("ui-state-disabled"),this._setText(r,i.label),r.appendTo(t)},_setText:function(n,t){t?n.text(t):n.html(" ")},_move:function(n,t){var i,r,u=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),u+=":not(.ui-state-disabled)"),r="first"===n||"last"===n?i["first"===n?"prevAll":"nextAll"](u).eq(-1):i[n+"All"](u).eq(0),r.length&&this.menuInstance.focus(t,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_setSelection:function(){var n;this.range&&(window.getSelection?(n=window.getSelection(),n.removeAllRanges(),n.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(t))}},_buttonEvents:{mousedown:function(){var n;window.getSelection?(n=window.getSelection(),n.rangeCount&&(this.range=n.getRangeAt(0))):this.range=document.selection.createRange()},click:function(n){this._setSelection(),this._toggle(n)},keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t),i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex);t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index,this._setText(this.buttonText,n.label),this._setAria(n),this._trigger("select",t,{item:n}),n.index!==i&&this._trigger("change",t,{item:n}),this.close(t)},_setAria:function(n){var t=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(n,t){"icons"===n&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(t.button),this._super(n,t),"appendTo"===n&&this.menuWrap.appendTo(this._appendTo()),"disabled"===n&&(this.menuInstance.option("disabled",t),this.button.toggleClass("ui-state-disabled",t).attr("aria-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===n&&this._resizeButton()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;n||(n=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(n)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(t){var i=[];t.each(function(t,r){var u=n(r),f=u.parent("optgroup");i.push({element:u,index:t,value:u.val(),label:u.text(),optgroup:f.attr("label")||"",disabled:f.prop("disabled")||u.prop("disabled")})}),this.items=i},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),n.widget("ui.slider",n.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),e=" ",f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;i>r;r++)f.push(e);this.handles=t.add(n(f.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(t){n(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=n("
").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1?!1:(this._mouseSliding=!0,this._handleIndex=u,i.addClass("ui-state-active").focus(),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return"horizontal"===this.orientation?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),0>t&&(t=0),"vertical"===this.orientation&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_start:function(n,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",n,i)},_slide:function(n,t,i){var r,f,u;this.options.values&&this.options.values.length?(r=this.values(t?0:1),2===this.options.values.length&&this.options.range===!0&&(0===t&&i>r||1===t&&r>i)&&(i=r),i!==this.values(t)&&(f=this.values(),f[t]=i,u=this._trigger("slide",n,{handle:this.handles[t],value:i,values:f}),r=this.values(t?0:1),u!==!1&&this.values(t,i))):i!==this.value()&&(u=this._trigger("slide",n,{handle:this.handles[t],value:i}),u!==!1&&this.value(i))},_stop:function(n,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",n,i)},_change:function(n,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._lastChangedValue=t,this._trigger("change",n,i)}},value:function(n){return arguments.length?(this.options.value=this._trimAlignValue(n),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(t,i){var u,f,r;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),void 0;if(!arguments.length)return this._values();if(!n.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(u=this.options.values,f=arguments[0],r=0;u.length>r;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()},_setOption:function(t,i){var r,u=0;switch("range"===t&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),n.isArray(this.options.values)&&(u=this.options.values.length),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!i),this._super(t,i),t){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=0;u>r;r+=1)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var n=this.options.value;return n=this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],r=this._trimAlignValue(r);if(this.options.values&&this.options.values.length){for(t=this.options.values.slice(),i=0;t.length>i;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(this._valueMin()>=n)return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return 2*Math.abs(i)>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,t=this._valueMin(),i=this.options.step,r=Math.floor(+(n-t).toFixed(this._precision())/i)*i;n=r+t,this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=""+n,i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this.options.values&&this.options.values.length?this.handles.each(function(f){t=100*((r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())),o["horizontal"===r.orientation?"left":"bottom"]=t+"%",n(this).stop(1,1)[u?"animate":"css"](o,i.animate),r.options.range===!0&&("horizontal"===r.orientation?(0===f&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(0===f&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate}))),s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?100*((c-f)/(h-f)):0,o["horizontal"===this.orientation?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),"min"===e&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),"max"===e&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-t+"%"},{queue:!1,duration:i.animate}),"min"===e&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),"max"===e&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-t+"%"},{queue:!1,duration:i.animate}))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,n(t.target).addClass("ui-state-active"),e=this._start(t,f),e===!1))return}switch(u=this.options.step,r=i=this.options.values&&this.options.values.length?this.values(f):this.value(),t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),n(t.target).removeClass("ui-state-active"))}}}),n.widget("ui.sortable",n.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(n,t,i){return n>=t&&t+i>n},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(n,t){this._super(n,t),"handle"===n&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),n.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return r=n(this),!1}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),r?!this.options.handle||i||(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),f)?(this.currentItem=r,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),u.containment&&this._setContainment(),u.cursor&&"auto"!==u.cursor&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("").appendTo(e)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,u,f,o,i=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;e--)if(u=this.items[e],f=u.item[0],o=this._intersectsWithPointer(u),o&&u.instance===this.currentContainer&&f!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==f&&!n.contains(this.placeholder[0],f)&&("semi-dynamic"===this.options.type?!n.contains(this.element[0],f):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(u))break;this._rearrange(t,u),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&"x"!==r||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l="x"===this.options.axis||i+o>u&&e>i+o,a="y"===this.options.axis||t+s>r&&f>t+s,v=l&&a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:t+this.helperProportions.width/2>r&&f>h-this.helperProportions.width/2&&i+this.helperProportions.height/2>u&&e>c-this.helperProportions.height/2},_intersectsWithPointer:function(n){var r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),f=r&&u,t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return f?this.floating?i&&"right"===i||"down"===t?2:1:t&&("down"===t?2:1):!1},_intersectsWithSides:function(n){var r=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),u=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?"right"===i&&u||"left"===i&&!u:t&&("down"===t&&r||"up"===t&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return 0!==n&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return 0!==n&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([n.isFunction(i.options.items)?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([n.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;t.length>i;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[n.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r],this.document[0]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([n.isFunction(i.options.items)?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;l>u;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var r,f,u,i=this.items.length-1;i>=0;i--)r=this.items[i],r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(f=this.options.toleranceElement?n(this.options.toleranceElement,r.item):r.item,t||(r.width=f.outerWidth(),r.height=f.outerHeight()),u=f.offset(),r.left=u.left,r.top=u.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)u=this.containers[i].element.offset(),this.containers[i].containerCache.left=u.left,this.containers[i].containerCache.top=u.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(r=i.placeholder,i.placeholder={element:function(){var u=t.currentItem[0].nodeName.toLowerCase(),i=n("<"+u+">",t.document[0]).addClass(r||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===u?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),n("",t.document[0]).appendTo(i)):"tr"===u?t._createTrPlaceholder(t.currentItem,i):"img"===u&&i.attr("src",t.currentItem.attr("src")),r||i.css("visibility","hidden"),i},update:function(n,u){(!r||i.forcePlaceholderSize)&&(u.height()||u.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),u.width()||u.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var r=this;t.children().each(function(){n(" ",r.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var u,c,f,a,v,o,l,s,h,e=null,i=null,r=this.containers.length-1;r>=0;r--)if(!n.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(e&&n.contains(this.containers[r].element[0],e.element[0]))continue;e=this.containers[r],i=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",t,this._uiHash(this)),this.containers[r].containerCache.over=0);if(e)if(1===this.containers.length)this.containers[i].containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1);else{for(c=1e4,f=null,s=e.floating||this._isFloating(this.currentItem),a=s?"left":"top",v=s?"width":"height",h=s?"clientX":"clientY",u=this.items.length-1;u>=0;u--)n.contains(this.containers[i].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],l=!1,t[h]-o>this.items[u][v]/2&&(l=!0),c>Math.abs(t[h]-o)&&(c=Math.abs(t[h]-o),f=this.items[u],this.direction=l?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[i])return this.currentContainer.containerCache.over||(this.containers[i]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1),void 0;f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[i].element,!0),this._trigger("change",t,this._uiHash()),this.containers[i]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[i],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[i]._trigger("over",t,this._uiHash(this)),this.containers[i].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t,this.currentItem])):"clone"===r.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||n("parent"!==r.appendTo?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),n.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),("document"===i.containment||"window"===i.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u="hidden"!==n(t).css("overflow"),this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r="absolute"===t?1:-1,u="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.leftthis.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;r.length>i;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}}),n.widget("ui.spinner",{version:"1.11.4",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 t={},i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);void 0!==u&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",n),void 0)},mousewheel:function(n,t){if(t){if(!this.spinning&&!this._start(n))return!1;this._spin((t>0?1:-1)*this.options.step,n),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(n)},100),n.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var n=this.element[0]===this.document[0].activeElement;n||(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,r.call(this)}),this._start(t)!==!1&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active"))return this._start(t)===!1?!1:(this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var n=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=n.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*n.height())&&n.height()>0&&n.height(n.height()),this.options.disabled&&this.disable()},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_uiSpinnerHtml:function(){return" "},_buttonHtml:function(){return"▲ ▼ "},_start:function(n){return this.spinning||this._trigger("start",n)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(n,t,i){n=n||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},n),this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+n*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?n.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=""+n,i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return r=null!==t.min?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),null!==t.max&&n>t.max?t.max:null!==t.min&&t.min>n?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){if("culture"===n||"numberFormat"===n){var i=this._parse(this.element.val());return this.options[n]=t,this.element.val(this._format(i)),void 0}("max"===n||"min"===n||"step"===n)&&"string"==typeof t&&(t=this._parse(t)),"icons"===n&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)),this._super(n,t),"disabled"===n&&(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable"))},_setOptions:i(function(n){this._super(n)}),_parse:function(n){return"string"==typeof n&&""!==n&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),""===n||isNaN(n)?null:n},_format:function(n){return""===n?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_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 n=this.value();return null===n?!1:n===this._adjustValue(n)},_value:function(n,t){var i;""!==n&&(i=this._parse(n),null!==i&&(t||(i=this._adjustValue(i)),n=this._format(i))),this.element.val(n),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:i(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:i(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:i(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:i(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){return arguments.length?(i(this._value).call(this,n),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),n.widget("ui.tabs",{version:"1.11.4",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 n=/#.*$/;return function(t){var i,r;t=t.cloneNode(!1),i=t.href.replace(n,""),r=location.href.replace(n,"");try{i=decodeURIComponent(i)}catch(u){}try{r=decodeURIComponent(r)}catch(u){}return t.hash.length>1&&i===r}}(),_create:function(){var i=this,t=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",t.collapsible),this._processTabs(),t.active=this._initialActive(),n.isArray(t.disabled)&&(t.disabled=n.unique(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return null===t&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),-1===t&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(this.document[0].activeElement).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1,i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),this._activate(i),void 0;case n.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._activate(i===this.options.active?!1:i),void 0;default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,u),t.ctrlKey||t.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),0>t&&(t=r),t}for(var r=this.tabs.length-1;-1!==n.inArray(u(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).focus(),n},_setOption:function(n,t){return"active"===n?(this._activate(t),void 0):"disabled"===n?(this._setupDisabled(t),void 0):(this._super(n,t),"collapsible"===n&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)),"event"===n&&this._setupEvents(t),"heightStyle"===n&&this._setupHeightStyle(t),void 0)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n()),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 t=this,i=this.tabs,r=this.anchors,u=this.panels;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(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){n(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 n("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=n(),this.anchors.each(function(i,r){var f,u,e,s=n(r).uniqueId().attr("id"),o=n(r).closest("li"),h=o.attr("aria-controls");t._isLocal(r)?(f=r.hash,e=f.substring(1),u=t.element.find(t._sanitizeSelector(f))):(e=o.attr("aria-controls")||n({}).uniqueId()[0].id,f="#"+e,u=t.element.find(f),u.length||(u=t._createPanel(e),u.insertAfter(t.panels[i-1]||t.tablist)),u.attr("aria-live","polite")),u.length&&(t.panels=t.panels.add(u)),h&&o.data("ui-tabs-aria-controls",h),o.attr({"aria-controls":e,"aria-labelledby":s}),u.attr("aria-labelledby",s)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(u.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(t){return n("").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){n.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,r=0;i=this.tabs[r];r++)t===!0||-1!==n.inArray(r,t)?n(i).addClass("ui-state-disabled").attr("aria-disabled","true"):n(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(n){n.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();"fill"===t?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");"absolute"!==r&&"fixed"!==r&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){u.running=!1,u._trigger("activate",t,i)}function o(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&u.options.show?u._show(r,u.options.show,e):(r.show(),e())}var u=this,r=i.newPanel,f=i.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),o()),f.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&f.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===n(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(n){return"string"==typeof n&&(n=this.anchors.index(this.anchors.filter("[href$='"+n+"']"))),n},_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(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(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 t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(void 0===t?i=!1:(t=this._getIndex(t),i=n.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setupDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==n.inArray(t,i))return;i=n.isArray(i)?n.merge([t],i).sort():[t]}this._setupDisabled(i)}},load:function(t,i){t=this._getIndex(t);var u=this,r=this.tabs.eq(t),e=r.find(".ui-tabs-anchor"),f=this._getPanelForTab(r),o={tab:r,panel:f},s=function(n,t){"abort"===t&&u.panels.stop(!1,!0),r.removeClass("ui-tabs-loading"),f.removeAttr("aria-busy"),n===u.xhr&&delete u.xhr};this._isLocal(e[0])||(this.xhr=n.ajax(this._ajaxSettings(e,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(r.addClass("ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.done(function(n,t,r){setTimeout(function(){f.html(n),u._trigger("load",i,o),s(r,t)},1)}).fail(function(n,t){setTimeout(function(){s(n,t)},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href"),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),n.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var t=n(this).attr("title")||"";return n("
").text(t).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(t,i){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",n.trim(r.join(" ")))},_removeDescribedBy:function(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);-1!==r&&i.splice(r,1),t.removeData("ui-tooltip-id"),i=n.trim(i.join(" ")),i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=n("").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,i){var r=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&n.each(this.tooltips,function(n,t){r._updateContent(t.element)}),void 0)},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r.element[0],t.close(u,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=n(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var i,t=n(this);t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0)),t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(n,t){var i,r=this.options.content,u=this,f=t?t.type:null;return"string"==typeof r?this._open(t,n,r):(i=r.call(n[0],function(i){u._delay(function(){n.data("ui-tooltip-open")&&(t&&(t.type=f),this._open(t,n,i))})}),i&&this._open(t,n,i),void 0)},_open:function(t,i,r){function o(n){s.of=n,u.is(":hidden")||u.position(s)}var f,u,h,e,s=n.extend({},this.options.position);if(r){if(f=this._find(i))return f.tooltip.find(".ui-tooltip-content").html(r),void 0;i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),f=this._tooltip(i),u=f.tooltip,this._addDescribedBy(i,u.attr("id")),u.find(".ui-tooltip-content").html(r),this.liveRegion.children().hide(),r.clone?(e=r.clone(),e.removeAttr("id").find("[id]").removeAttr("id")):e=r,n("
").html(e).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:o}),o(t)):u.position(n.extend({of:i},this.options.position)),u.hide(),this._show(u,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(o(s.of),clearInterval(h))},n.fx.interval)),this._trigger("open",t,{tooltip:u})}},_registerCloseHandlers:function(t,i){var r={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var r=n.Event(t);r.currentTarget=i[0],this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(i).tooltip)}),t&&"mouseover"!==t.type||(r.mouseleave="close"),t&&"focusin"!==t.type||(r.focusout="close"),this._on(!0,i,r)},close:function(t){var u,f=this,i=n(t?t.currentTarget:this.element),r=this._find(i);return r?(u=r.tooltip,r.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),r.hiding=!0,u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title),delete f.parents[t]}),r.closing=!0,this._trigger("close",t,{tooltip:u}),r.hiding||(r.closing=!1)),void 0):(i.removeData("ui-tooltip-open"),void 0)},_tooltip:function(t){var i=n("
").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),r=i.uniqueId().attr("id");return n("
").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[r]={element:t,tooltip:i}},_find:function(n){var t=n.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(n){n.remove(),delete this.tooltips[n.attr("id")]},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var f=n.Event("blur"),u=r.element;f.target=f.currentTarget=u[0],t.close(f,!0),n("#"+i).remove(),u.data("ui-tooltip-title")&&(u.attr("title")||u.attr("title",u.data("ui-tooltip-title")),u.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})}),eval(function(n,t,i,r,u,f){if(u=function(n){return(n
35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}],u=function(){return"\\w+"},i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}('(3(d){d.a=3(a,b){j c=a.v(".")[0],a=a.v(".")[1];d[c]=d[c]||{};d[c][a]=3(a,b){I.O&&2.1i(a,b)};d[c][a].K=d.n({1s:c,1u:a},b);d.N[a]=3(b){j g="1p"===1k b,f=L.K.X.W(I,1),i=2;l(g&&"1j"===b.1l(0,1))6 i;2.18(3(){j h=d.1b(2,a);h||(h=d.1b(2,a,k d[c][a](b,2)));g&&(i=h[b].14(h,f))});6 i}};d.a("1J.1G",{u:{1A:"1x",1y:5},1B:3(a,b){6 b?(2.u[a]=b,2.4("9").x(a,b),2):2.u[a]},1i:3(a,b){2.E=b;a=a||{};m.n(2.u,a,{1h:2.w(a.1h)});2.1g();2.1f&&2.1f()},1g:3(){j a=2;2.o={9:k 8.7.1D(a.E,a.u),M:[],p:[],q:[]};8.7.G.1C(a.o.9,"1F",3(){d(a.E).19("1E",a.o.9)});a.C(a.u.1t,a.o.9)},Z:3(a){j b=2.4("12",k 8.7.1z);b.n(2.w(a));2.4("9").1M(b);6 2},1L:3(a){j b=2.4("9").1O();6 b?b.1N(a.Y()):!1},1K:3(a,b){2.4("9").1H[b].J(2.F(a));6 2},1I:3(a,b){a.9=2.4("9");a.13=2.w(a.13);j c=k(a.1n||8.7.1o)(a),e=2.4("M");c.16?e[c.16]=c:e.J(c);c.12&&2.Z(c.Y());2.C(b,a.9,c);6 d(c)},z:3(a){2.B(2.4(a));2.x(a,[]);6 2},B:3(a){y(j b Q a)a.11(b)&&(a[b]r 8.7.17?(8.7.G.1v(a[b]),a[b].A&&a[b].A(t)):a[b]r L&&2.B(a[b]),a[b]=t)},1w:3(a,b,c){a=2.4(a);b.s=d.1m(b.s)?b.s:[b.s];y(j e Q a)l(a.11(e)){j g=!1,f;y(f Q b.s)l(-1")){y(j e=a.T(/ /g,"").v(">"),d=0;d U",k 8.7.U),f=2.4("q > S",k 8.7.S);b&&f.R(b);g.1U(a,3(a,b){"1T"===b?(f.26(a),f.A(d.4("9"))):f.A(t);c(a,b)})},27:3(a,b){2.4("9").29(2.4("q > 1d",k 8.7.1d(2.F(a),b)))},28:3(a,b){2.4("q > 1a",k 8.7.1a).21(a,b)},20:3(a,b){j c=k 8.7[a](m.n({9:2.4("9")},b));2.4("p > "+a,[]).J(c);6 d(c)},22:3(a,b){(!b?2.4("p > D",k 8.7.D):2.4("p > D",k 8.7.D(b,a))).R(m.n({9:2.4("9")},a))},23:3(a,b,c){2.4("p > "+a,k 8.7.1Y(b,m.n({9:2.4("9")},c)))}});m.N.n({1e:3(a){8.7.G.19(2[0],a);6 2},15:3(a,b,c){8.7&&2[0]r 8.7.17?8.7.G.24(2[0],a,b):c?2.1c(a,b,c):2.1c(a,b);6 2}});m.18("25 1R 1Z 1V 2m 2l 2j".v(" "),3(a,b){m.N[b]=3(a,d){6 2.15(b,a,d)}})})(m);',62,151,"||this|function|get||return|maps|google|map||||||||||var|new|if|jQuery|extend|instance|overlays|services|instanceof|value|null|options|split|_latLng|set|for|clear|setMap|_c|_call|FusionTablesLayer|el|_unwrap|event|iw|arguments|push|prototype|Array|markers|fn|length|LatLng|in|setOptions|DirectionsRenderer|replace|DirectionsService|operator|call|slice|getPosition|addBounds|else|hasOwnProperty|bounds|position|apply|addEventListener|id|MVCObject|each|trigger|Geocoder|data|bind|StreetViewPanorama|triggerEvent|_init|_create|center|_setup|_|typeof|substring|isArray|marker|Marker|string|property|inArray|namespace|callback|pluginName|clearInstanceListeners|find|roadmap|zoom|LatLngBounds|mapTypeId|option|addListenerOnce|Map|init|bounds_changed|gmap|controls|addMarker|ui|addControl|inViewport|fitBounds|contains|getBounds|AND|Object|rightclick|displayDirections|OK|route|mouseover|name|isFunction|KmlLayer|dblclick|addShape|geocode|loadFusion|loadKML|addListener|click|setDirections|displayStreetView|search|setStreetView|close|closeInfoWindow|break|refresh|indexOf|infoWindow|openInfoWindow|open|InfoWindow|dragend|destroy|drag|mouseout|removeData|getCenter|setCenter|resize".split("|"),0,{})),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(arguments.length>1&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c=0&&e>f;f+=t){var o=u?u[f]:f;r=i(r,n[o],o,n)}return r}return function(u,f,o,s){f=e(f,s,4);var h=!i(u)&&n.keys(u),l=(h||u).length,c=t>0?0:l-1;return arguments.length<3&&(o=u[h?h[c]:c],c+=t),r(u,f,o,h,c,l)}}function rt(n){return function(i,r,f){r=t(r,f);for(var o=u(i),e=n>0?0:o-1;e>=0&&o>e;e+=n)if(r(i[e],e,i))return e;return-1}}function ut(t,i,f){return function(e,o,s){var c=0,h=u(e);if("number"==typeof s)t>0?c=s>=0?s:Math.max(s+h,c):h=s>=0?Math.min(s+1,h):s+h+1;else if(f&&s&&h)return s=f(e,o),e[s]===o?s:-1;if(o!==o)return s=i(r.call(e,c,h),n.isNaN),s>=0?s+c:-1;for(s=t>0?c:h-1;s>=0&&h>s;s+=t)if(e[s]===o)return s;return-1}}function ft(t,i){var u=k.length,f=t.constructor,e=n.isFunction(f)&&f.prototype||w,r="constructor";for(n.has(t,r)&&!n.contains(i,r)&&i.push(r);u--;)r=k[u],r in t&&t[r]!==e[r]&&!n.contains(i,r)&&i.push(r)}var a=this,lt=a._,l=Array.prototype,w=Object.prototype,gt=Function.prototype,dt=l.push,r=l.slice,o=w.toString,wt=w.hasOwnProperty,pt=Array.isArray,ct=Object.keys,y=gt.bind,ht=Object.create,p=function(){},n=function(t){return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)},e,t,h,f,g,d,k,s,nt,c;"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=n),exports._=n):a._=n,n.VERSION="1.8.3",e=function(n,t,i){if(t===void 0)return n;switch(null==i?3:i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return function(){return n.apply(t,arguments)}},t=function(t,i,r){return null==t?n.identity:n.isFunction(t)?e(t,i,r):n.isObject(t)?n.matcher(t):n.property(t)},n.iteratee=function(n,i){return t(n,i,1/0)};var b=function(n,t){return function(i){var e=arguments.length,r,u;if(2>e||null==i)return i;for(r=1;e>r;r++)for(var o=arguments[r],s=n(o),h=s.length,f=0;h>f;f++)u=s[f],t&&i[u]!==void 0||(i[u]=o[u]);return i}},st=function(t){if(!n.isObject(t))return{};if(ht)return ht(t);p.prototype=t;var i=new p;return p.prototype=null,i},ot=function(n){return function(t){if(null!=t)return t[n]}},at=Math.pow(2,53)-1,u=ot("length"),i=function(n){var t=u(n);return"number"==typeof t&&t>=0&&at>=t};n.each=n.forEach=function(t,r,u){var f,o,s;if(r=e(r,u),i(t))for(f=0,o=t.length;o>f;f++)r(t[f],f,t);else for(s=n.keys(t),f=0,o=s.length;o>f;f++)r(t[s[f]],s[f],t);return t},n.map=n.collect=function(r,u,f){var s;u=t(u,f);for(var o=!i(r)&&n.keys(r),h=(o||r).length,c=Array(h),e=0;h>e;e++)s=o?o[e]:e,c[e]=u(r[s],s,r);return c},n.reduce=n.foldl=n.inject=et(1),n.reduceRight=n.foldr=et(-1),n.find=n.detect=function(t,r,u){var f;return f=i(t)?n.findIndex(t,r,u):n.findKey(t,r,u),f!==void 0&&f!==-1?t[f]:void 0},n.filter=n.select=function(i,r,u){var f=[];return r=t(r,u),n.each(i,function(n,t,i){r(n,t,i)&&f.push(n)}),f},n.reject=function(i,r,u){return n.filter(i,n.negate(t(r)),u)},n.every=n.all=function(r,u,f){var s;u=t(u,f);for(var o=!i(r)&&n.keys(r),h=(o||r).length,e=0;h>e;e++)if(s=o?o[e]:e,!u(r[s],s,r))return!1;return!0},n.some=n.any=function(r,u,f){var s;u=t(u,f);for(var o=!i(r)&&n.keys(r),h=(o||r).length,e=0;h>e;e++)if(s=o?o[e]:e,u(r[s],s,r))return!0;return!1},n.contains=n.includes=n.include=function(t,r,u,f){return i(t)||(t=n.values(t)),("number"!=typeof u||f)&&(u=0),n.indexOf(t,r,u)>=0},n.invoke=function(t,i){var u=r.call(arguments,2),f=n.isFunction(i);return n.map(t,function(n){var t=f?i:n[i];return null==t?t:t.apply(n,u)})},n.pluck=function(t,i){return n.map(t,n.property(i))},n.where=function(t,i){return n.filter(t,n.matcher(i))},n.findWhere=function(t,i){return n.find(t,n.matcher(i))},n.max=function(r,u,f){var h,o,e=-1/0,c=-1/0,s,l;if(null==u&&null!=r)for(r=i(r)?r:n.values(r),s=0,l=r.length;l>s;s++)h=r[s],h>e&&(e=h);else u=t(u,f),n.each(r,function(n,t,i){o=u(n,t,i),(o>c||o===-1/0&&e===-1/0)&&(e=n,c=o)});return e},n.min=function(r,u,f){var h,o,e=1/0,c=1/0,s,l;if(null==u&&null!=r)for(r=i(r)?r:n.values(r),s=0,l=r.length;l>s;s++)h=r[s],e>h&&(e=h);else u=t(u,f),n.each(r,function(n,t,i){o=u(n,t,i),(c>o||1/0===o&&1/0===e)&&(e=n,c=o)});return e},n.shuffle=function(t){for(var u,e=i(t)?t:n.values(t),o=e.length,f=Array(o),r=0;o>r;r++)u=n.random(0,r),u!==r&&(f[r]=f[u]),f[u]=e[r];return f},n.sample=function(t,r,u){return null==r||u?(i(t)||(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,r))},n.sortBy=function(i,r,u){return r=t(r,u),n.pluck(n.map(i,function(n,t,i){return{value:n,index:t,criteria:r(n,t,i)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(r>i||r===void 0)return-1}return n.index-t.index}),"value")},h=function(i){return function(r,u,f){var e={};return u=t(u,f),n.each(r,function(n,t){var f=u(n,t,r);i(e,n,f)}),e}},n.groupBy=h(function(t,i,r){n.has(t,r)?t[r].push(i):t[r]=[i]}),n.indexBy=h(function(n,t,i){n[i]=t}),n.countBy=h(function(t,i,r){n.has(t,r)?t[r]++:t[r]=1}),n.toArray=function(t){return t?n.isArray(t)?r.call(t):i(t)?n.map(t,n.identity):n.values(t):[]},n.size=function(t){return null==t?0:i(t)?t.length:n.keys(t).length},n.partition=function(i,r,u){r=t(r,u);var f=[],e=[];return n.each(i,function(n,t,i){(r(n,t,i)?f:e).push(n)}),[f,e]},n.first=n.head=n.take=function(t,i,r){if(null!=t)return null==i||r?t[0]:n.initial(t,t.length-i)},n.initial=function(n,t,i){return r.call(n,0,Math.max(0,n.length-(null==t||i?1:t)))},n.last=function(t,i,r){if(null!=t)return null==i||r?t[t.length-1]:n.rest(t,Math.max(0,t.length-i))},n.rest=n.tail=n.drop=function(n,t,i){return r.call(n,null==t||i?1:t)},n.compact=function(t){return n.filter(t,n.identity)},f=function(t,r,e,o){for(var s,l,a,h=[],v=0,c=o||0,y=u(t);y>c;c++)if(s=t[c],i(s)&&(n.isArray(s)||n.isArguments(s)))for(r||(s=f(s,r,e)),l=0,a=s.length,h.length+=a;a>l;)h[v++]=s[l++];else e||(h[v++]=s);return h},n.flatten=function(n,t){return f(n,t,!1)},n.without=function(t){return n.difference(t,r.call(arguments,1))},n.uniq=n.unique=function(i,r,f,e){var o,c;n.isBoolean(r)||(e=f,f=r,r=!1),null!=f&&(f=t(f,e));for(var s=[],l=[],h=0,a=u(i);a>h;h++)o=i[h],c=f?f(o,h,i):o,r?(h&&l===c||s.push(o),l=c):f?n.contains(l,c)||(l.push(c),s.push(o)):n.contains(s,o)||s.push(o);return s},n.union=function(){return n.uniq(f(arguments,!0,!0))},n.intersection=function(t){for(var r,i,f=[],o=arguments.length,e=0,s=u(t);s>e;e++)if(r=t[e],!n.contains(f,r)){for(i=1;o>i&&n.contains(arguments[i],r);i++);i===o&&f.push(r)}return f},n.difference=function(t){var i=f(arguments,!0,!0,1);return n.filter(t,function(t){return!n.contains(i,t)})},n.zip=function(){return n.unzip(arguments)},n.unzip=function(t){for(var r=t&&n.max(t,u).length||0,f=Array(r),i=0;r>i;i++)f[i]=n.pluck(t,i);return f},n.object=function(n,t){for(var r={},i=0,f=u(n);f>i;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r},n.findIndex=rt(1),n.findLastIndex=rt(-1),n.sortedIndex=function(n,i,r,f){var o;r=t(r,f,1);for(var h=r(i),e=0,s=u(n);s>e;)o=Math.floor((e+s)/2),r(n[o])r;r++,n+=i)f[r]=n;return f},g=function(t,i,r,u,f){if(!(u instanceof i))return t.apply(r,f);var e=st(t.prototype),o=t.apply(e,f);return n.isObject(o)?o:e},n.bind=function(t,i){if(y&&t.bind===y)return y.apply(t,r.call(arguments,1));if(!n.isFunction(t))throw new TypeError("Bind must be called on a function");var f=r.call(arguments,2),u=function(){return g(t,u,i,this,f.concat(r.call(arguments)))};return u},n.partial=function(t){var i=r.call(arguments,1),u=function(){for(var f=0,o=i.length,e=Array(o),r=0;o>r;r++)e[r]=i[r]===n?arguments[f++]:i[r];for(;f=u)throw new Error("bindAll must be passed function names");for(i=1;u>i;i++)r=arguments[i],t[r]=n.bind(t[r],t);return t},n.memoize=function(t,i){var r=function(u){var f=r.cache,e=""+(i?i.apply(this,arguments):u);return n.has(f,e)||(f[e]=t.apply(this,arguments)),f[e]};return r.cache={},r},n.delay=function(n,t){var i=r.call(arguments,2);return setTimeout(function(){return n.apply(null,i)},t)},n.defer=n.partial(n.delay,n,1),n.throttle=function(t,i,r){var f,e,s,u=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now(),u=null,s=t.apply(f,e),u||(f=e=null)},function(){var l=n.now(),c;return o||r.leading!==!1||(o=l),c=i-(l-o),f=this,e=arguments,0>=c||c>i?(u&&(clearTimeout(u),u=null),o=l,s=t.apply(f,e),u||(f=e=null)):u||r.trailing===!1||(u=setTimeout(h,c)),s}},n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;i>c&&c>=0?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),u||(e=f=null)))};return function(){e=this,f=arguments,s=n.now();var c=r&&!u;return u||(u=setTimeout(h,i)),c&&(o=t.apply(e,f),e=f=null),o}},n.wrap=function(t,i){return n.partial(i,t)},n.negate=function(n){return function(){return!n.apply(this,arguments)}},n.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,i=n[t].apply(this,arguments);r--;)i=n[r].call(this,i);return i}},n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},n.before=function(n,t){var i;return function(){return--n>0&&(i=t.apply(this,arguments)),1>=n&&(t=null),i}},n.once=n.partial(n.before,2),d=!{toString:null}.propertyIsEnumerable("toString"),k=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(ct)return ct(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return d&&ft(t,i),i},n.allKeys=function(t){var i,r;if(!n.isObject(t))return[];i=[];for(r in t)i.push(r);return d&&ft(t,i),i},n.values=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;u>i;i++)f[i]=t[r[i]];return f},n.mapObject=function(i,r,u){r=t(r,u);for(var f,o=n.keys(i),h=o.length,s={},e=0;h>e;e++)f=o[e],s[f]=r(i[f],f,i);return s},n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=Array(u),i=0;u>i;i++)f[i]=[r[i],t[r[i]]];return f},n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;f>i;i++)u[t[r[i]]]=r[i];return u},n.functions=n.methods=function(t){var r=[],i;for(i in t)n.isFunction(t[i])&&r.push(i);return r.sort()},n.extend=b(n.allKeys),n.extendOwn=n.assign=b(n.keys),n.findKey=function(i,r,u){r=t(r,u);for(var f,o=n.keys(i),e=0,s=o.length;s>e;e++)if(f=o[e],r(i[f],f,i))return f},n.pick=function(t,i,r){var c,o,l={},u=t,s,v,h,a;if(null==u)return l;for(n.isFunction(i)?(o=n.allKeys(u),c=e(i,r)):(o=f(arguments,!1,!1,1),c=function(n,t,i){return t in i},u=Object(u)),s=0,v=o.length;v>s;s++)h=o[s],a=u[h],c(a,h,u)&&(l[h]=a);return l},n.omit=function(t,i,r){if(n.isFunction(i))i=n.negate(i);else{var u=n.map(f(arguments,!1,!1,1),String);i=function(t,i){return!n.contains(u,i)}}return n.pick(t,i,r)},n.defaults=b(n.allKeys,!0),n.create=function(t,i){var r=st(t);return i&&n.extendOwn(r,i),r},n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t},n.tap=function(n,t){return t(n),n},n.isMatch=function(t,i){var e=n.keys(i),o=e.length,f,r,u;if(null==t)return!o;for(f=Object(t),r=0;o>r;r++)if(u=e[r],i[u]!==f[u]||!(u in f))return!1;return!0},s=function(t,i,r,u){var c,a,e,h,f,l,v;if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),c=o.call(t),c!==o.call(i))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:0==+t?1/+t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}if(a="[object Array]"===c,!a&&("object"!=typeof t||"object"!=typeof i||(e=t.constructor,h=i.constructor,e!==h&&!(n.isFunction(e)&&e instanceof e&&n.isFunction(h)&&h instanceof h)&&"constructor"in t&&"constructor"in i)))return!1;for(r=r||[],u=u||[],f=r.length;f--;)if(r[f]===t)return u[f]===i;if(r.push(t),u.push(i),a){if(f=t.length,f!==i.length)return!1;for(;f--;)if(!s(t[f],i[f],r,u))return!1}else{if(v=n.keys(t),f=v.length,n.keys(i).length!==f)return!1;for(;f--;)if(l=v[f],!n.has(i,l)||!s(t[l],i[l],r,u))return!1}return r.pop(),u.pop(),!0},n.isEqual=function(n,t){return s(n,t)},n.isEmpty=function(t){return null==t?!0:i(t)&&(n.isArray(t)||n.isString(t)||n.isArguments(t))?0===t.length:0===n.keys(t).length},n.isElement=function(n){return!(!n||1!==n.nodeType)},n.isArray=pt||function(n){return"[object Array]"===o.call(n)},n.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},n.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){n["is"+t]=function(n){return o.call(n)==="[object "+t+"]"}}),n.isArguments(arguments)||(n.isArguments=function(t){return n.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(n.isFunction=function(n){return"function"==typeof n||!1}),n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},n.isNaN=function(t){return n.isNumber(t)&&t!==+t},n.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===o.call(n)},n.isNull=function(n){return null===n},n.isUndefined=function(n){return n===void 0},n.has=function(n,t){return null!=n&&wt.call(n,t)},n.noConflict=function(){return a._=lt,this},n.identity=function(n){return n},n.constant=function(n){return function(){return n}},n.noop=function(){},n.property=ot,n.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},n.matcher=n.matches=function(t){return t=n.extendOwn({},t),function(i){return n.isMatch(i,t)}},n.times=function(n,t,i){var u=Array(Math.max(0,n)),r;for(t=e(t,i,1),r=0;n>r;r++)u[r]=t(r);return u},n.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},n.now=Date.now||function(){return+new Date};var it={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},yt=n.invert(it),tt=function(t){var r=function(n){return t[n]},i="(?:"+n.keys(t).join("|")+")",u=RegExp(i),f=RegExp(i,"g");return function(n){return n=null==n?"":""+n,u.test(n)?n.replace(f,r):n}};n.escape=tt(it),n.unescape=tt(yt),n.result=function(t,i,r){var u=null==t?void 0:t[i];return u===void 0&&(u=r),n.isFunction(u)?u.call(t):u},nt=0,n.uniqueId=function(n){var t=++nt+"";return n?n+t:t},n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var v=/(.)^/,bt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},kt=/\\|'|\r|\n|\u2028|\u2029/g,vt=function(n){return"\\"+bt[n]};n.template=function(t,i,r){var o,f,s;!i&&r&&(i=r),i=n.defaults({},i,n.templateSettings);var h=RegExp([(i.escape||v).source,(i.interpolate||v).source,(i.evaluate||v).source].join("|")+"|$","g"),e=0,u="__p+='";t.replace(h,function(n,i,r,f,o){return u+=t.slice(e,o).replace(kt,vt),e=o+n.length,i?u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":f&&(u+="';\n"+f+"\n__p+='"),n}),u+="';\n",i.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{o=new Function(i.variable||"obj","_",u)}catch(c){throw c.source=u,c;}return f=function(t){return o.call(this,t,n)},s=i.variable||"obj",f.source="function("+s+"){\n"+u+"}",f},n.chain=function(t){var i=n(t);return i._chain=!0,i},c=function(t,i){return t._chain?n(i).chain():i},n.mixin=function(t){n.each(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return dt.apply(t,arguments),c(this,r.apply(n,t))}})},n.mixin(n),n.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=l[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],c(this,n)}}),n.each(["concat","join","slice"],function(t){var i=l[t];n.prototype[t]=function(){return c(this,i.apply(this._wrapped,arguments))}}),n.prototype.value=function(){return this._wrapped},n.prototype.valueOf=n.prototype.toJSON=n.prototype.value,n.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return n})}.call(this),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery),+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this)),"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.5",t.TRANSITION_DURATION=150,t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())},r=n.fn.alert,n.fn.alert=u,n.fn.alert.Constructor=t,n.fn.alert.noConflict=function(){return n.fn.alert=r,this},n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f)),"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.isLoading=!1},r;t.VERSION="3.3.5",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text",null==u.resetText&&i.data("resetText",i[f]()),setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)},t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))},r=n.fn.button,n.fn.button=i,n.fn.button.Constructor=t,n.fn.button.noConflict=function(){return n.fn.button=r,this},n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn")),i.call(r,"toggle"),n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f)),"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.5",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)},t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))},t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active"),e.removeClass(["active",f].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)},u=n.fn.carousel,n.fn.carousel=i,n.fn.carousel.Constructor=t,n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this},r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())},n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this)),"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.5",t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}},t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&udocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.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(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())},t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent(),r.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s
e.width?"left":"left"==i&&f.left-ou.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,hu.right&&(f.left=u.left+u.width-c)),f):f},t.prototype.getTitle=function(){var i,t=this.$element,n=this.options;return i=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout),this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type),n.$tip&&n.$tip.detach(),n.$tip=null,n.$arrow=null,n.$viewport=null})},i=n.fn.tooltip,n.fn.tooltip=r,n.fn.tooltip.Constructor=t,n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.5",t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i),n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t),n.removeClass("fade top bottom left right in"),n.find(".popover-title").html()||n.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i=n.fn.popover,n.fn.popover=r,n.fn.popover.Constructor=t,n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this)),"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.5",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}},t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),f.removeClass("in")},u=n.fn.tab,n.fn.tab=r,n.fn.tab.Constructor=t,n.fn.tab.noConflict=function(){return n.fn.tab=u,this},i=function(t){t.preventDefault(),r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f)),"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r),this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this)),this.$element=n(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()},r;t.VERSION="3.3.5",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=u?"top":null!=r&&s+h>=n-r?"bottom":!1},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n},t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}},r=n.fn.affix,n.fn.affix=i,n.fn.affix.Constructor=t,n.fn.affix.noConflict=function(){return n.fn.affix=r,this},n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),i.call(r,t)})})}(jQuery),+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1),r||u.data("bs.collapse",r=new t(this,f)),"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()},u;t.VERSION="3.3.5",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"},t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-")),this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}},t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)},u=n.fn.collapse,n.fn.collapse=i,n.fn.collapse.Constructor=t,n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this},n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery),+function(n){"use strict";function t(i,r){this.$body=n(document.body),this.$scrollElement=n(n(i).is(document.body)?window:i),this.options=n.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f)),"string"==typeof i&&r[i]()})}t.VERSION="3.3.5",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i=t[n]&&(void 0===t[n+1]||iy?(this.picker.addClass("datepicker-orient-right"),r=u.left+o-f):this.picker.addClass("datepicker-orient-left"),t=this.o.orientation.y,t==="auto"&&(h=-v+i-e,s=v+b-(i+c+e),t=Math.max(h,s)===s?"top":"bottom"),this.picker.addClass("datepicker-orient-"+t),t==="top"?i+=c:i-=e+parseInt(this.picker.css("padding-top")),this.o.rtl?(w=y-(r+o),this.picker.css({top:i,right:w,zIndex:l})):this.picker.css({top:i,left:r,zIndex:l}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var r=this.dates.copy(),t=[],u=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i)),t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language)},this)),t=n.grep(t,n.proxy(function(n){return nthis.o.endDate||!n},this),!0),this.dates.replace(t),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate&&(this.viewDate=new Date(this.o.endDate)),u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&r.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var t=this.o.weekStart,n="",i;for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(n,t){return parseInt(t)+1}),i=' ',n+=i);t'+r[this.o.language].daysMin[t++%7]+"";n+=" ",this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+=''+r[this.o.language].monthsShort[t++]+" ";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),(t.valueOf()this.o.endDate||n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&i.push("disabled"),this.o.datesDisabled.length>0&&n.grep(this.o.datesDisabled,function(n){return y(t,n)}).length>0&&i.push("disabled","disabled-date"),this.range&&(t>this.range[0]&&t"),this.o.calendarWeeks)){var g=new Date(+e+(this.o.weekStart-e.getUTCDay()-7)%7*864e5),nt=new Date(Number(g)+(11-g.getUTCDay())%7*864e5),k=new Date(Number(k=u(nt.getUTCFullYear(),0,1))+(11-k.getUTCDay())%7*864e5),ot=(nt-k)/6048e5+1;s.push(''+ot+" ")}h=this.getClassNames(e),h.push("day"),this.o.beforeShowDay!==n.noop&&(o=this.o.beforeShowDay(this._utc_to_local(e)),o===t?o={}:typeof o=="boolean"?o={enabled:o}:typeof o=="string"&&(o={classes:o}),o.enabled===!1&&h.push("disabled"),o.classes&&(h=h.concat(o.classes.split(/\s+/))),o.tooltip&&(y=o.tooltip)),h=n.unique(h),s.push('"+e.getUTCDate()+" "),y=null,e.getUTCDay()===this.o.weekEnd&&s.push(" "),e.setUTCDate(e.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(s.join("")),l=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),n.each(this.dates,function(n,t){t.getUTCFullYear()===f&&l.eq(t.getUTCMonth()).addClass("active")}),(fb)&&l.addClass("disabled"),f===w&&l.slice(0,ft).addClass("disabled"),f===b&&l.slice(ht+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop&&(tt=this,n.each(l,function(t,i){if(!n(i).hasClass("disabled")){var r=new Date(f,t,1),u=tt.o.beforeShowMonth(r);u===!1&&n(i).addClass("disabled")}})),s="",f=parseInt(f/10,10)*10,it=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,rt=n.map(this.dates,function(n){return n.getUTCFullYear()}),v=-1;v<11;v++)a=["year"],v===-1?a.push("old"):v===10&&a.push("new"),n.inArray(f,rt)!==-1&&a.push("active"),(fb)&&a.push("disabled"),s+=''+f+" ",f+=1;it.html(s)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){var r,e,f,o,h,s,c;if(t.preventDefault(),r=n(t.target).closest("span, td, th"),r.length===1)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":h=i.modes[this.viewMode].navStep*(r[0].className==="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h),this.viewMode===1&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":s=new Date,s=u(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0),this.showMode(-2),c=this.o.todayBtn==="linked"?null:"view",this._setDate(s,c);break;case"clear":this.clearDates()}break;case"span":r.hasClass("disabled")||(this.viewDate.setUTCDate(1),r.hasClass("month")?(o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),this.o.minViewMode===1&&this._setDate(u(e,f,o))):(o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),this.o.minViewMode===2&&this._setDate(u(e,f,o))),this.showMode(-1),this.fill());break;case"td":r.hasClass("day")&&!r.hasClass("disabled")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.hasClass("old")?f===0?(f=11,e-=1):f-=1:r.hasClass("new")&&(f===11?(f=0,e+=1):f+=1),this._setDate(u(e,f,o)))}this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),typeof this.o.multidate=="number")while(this.dates.length>this.o.multidate)this.dates.remove(0)},_setDate:function(n,t){t&&t!=="date"||this._toggle_multidate(n&&new Date(n)),t&&t!=="view"||(this.viewDate=n&&new Date(n)),this.fill(),this.setValue(),t&&t==="view"||this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),this.o.autoclose&&(!t||t==="date")&&this.hide()},moveMonth:function(n,i){var e;if(!n)return t;if(!i)return n;var r=new Date(n.valueOf()),o=r.getUTCDate(),s=r.getUTCMonth(),h=Math.abs(i),u,f;if(i=i>0?1:-1,h===1)f=i===-1?function(){return r.getUTCMonth()===s}:function(){return r.getUTCMonth()!==u},u=s+i,r.setUTCMonth(u),(u<0||u>11)&&(u=(u+12)%12);else{for(e=0;e=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var o,t,u,i,r,f;if(!this.picker.is(":visible")){n.keyCode===27&&this.show();return}o=!1,r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=n.keyCode===37?-1:1,n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+t),i=new Date(r),i.setUTCDate(r.getUTCDate()+t)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=n.keyCode===38?-1:1,n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+t*7),i=new Date(r),i.setUTCDate(r.getUTCDate()+t*7)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),o=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(n.preventDefault(),typeof n.stopPropagation=="function"?n.stopPropagation():n.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}o&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+n))),this.picker.children("div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}},h=function(t,i){this.element=n(t),this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n}),delete i.inputs,o.call(n(this.inputs),i).bind("changeDate",n.proxy(this.dateUpdated,this)),this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")}),this.updateDates()},h.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var e=n(t.target).data("datepicker"),i=e.getUTCDate(),f=n.inArray(t.target,this.inputs),r=f-1,u=f+1,o=this.inputs.length;if(f!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(i)}),i=0&&ithis.dates[u])while(uthis.dates[u])this.pickers[u++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()}),delete this.element.data().datepicker}},a=n.fn.datepicker,o=function(i){var u=Array.apply(null,arguments),r;return u.shift(),this.each(function(){var o=n(this),e=o.data("datepicker"),l=typeof i=="object"&&i,v;if(!e){var a=p(this,"date"),y=n.extend({},s,a,l),b=w(y.language),c=n.extend({},s,b,a,l);o.hasClass("input-daterange")||c.inputs?(v={inputs:c.inputs||o.find("input").toArray()},o.data("datepicker",e=new h(this,n.extend(c,v)))):o.data("datepicker",e=new f(this,c))}if(typeof i=="string"&&typeof e[i]=="function"&&(r=e[i].apply(e,u),r!==t))return!1}),r!==t?r:this},n.fn.datepicker=o,s=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:Infinity,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-Infinity,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body"},v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"],n.fn.datepicker.Constructor=f,r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,"\x00").split("\x00"),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s){function tt(){var n=this.slice(0,c[h].length),t=c[h].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var nt,c,v,w,h,l,it,b,p;if(!e)return t;if(e instanceof Date)return e;if(typeof o=="string"&&(o=i.parseFormat(o)),nt=/([\-+]\d+)([dmwy])/,c=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,h=0;h« » ',contTemplate:' ',footTemplate:' '},i.template=''+i.headTemplate+" "+i.footTemplate+'
'+i.headTemplate+i.contTemplate+i.footTemplate+'
'+i.headTemplate+i.contTemplate+i.footTemplate+"
",n.fn.datepicker.DPGlobal=i,n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this},n.fn.datepicker.version="1.4.0";n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})}(window.jQuery),!function(n){n.fn.datepicker.dates.tr={days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar"],daysShort:["Pz","Pzt","Sal","Çrş","Prş","Cu","Cts","Pz"],daysMin:["Pz","Pzt","Sa","Çr","Pr","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthsShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],today:"Bugün",clear:"Temizle",weekStart:1,format:"dd.mm.yyyy"}}(jQuery),Date.prototype.getWeek=function(){var n=new Date(this.getFullYear(),0,1);return Math.ceil(((this.getTime()-n.getTime())/864e5+n.getDay()+1)/7)},Date.prototype.getMonthFormatted=function(){var n=this.getMonth()+1;return n<10?"0"+n:n},Date.prototype.getDateFormatted=function(){var n=this.getDate();return n<10?"0"+n:n},String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})}),String.prototype.formatNum||(String.prototype.formatNum=function(n){for(var t=""+this;t.length"),function(n,r){var s,h=null,f;if(s=/^(\d\d)-(\d\d)$/.exec(r))h=new Date(i,parseInt(s[2],10)-1,parseInt(s[1],10));else if(s=/^(\d\d)-(\d\d)-(\d\d\d\d)$/.exec(r))parseInt(s[3],10)==i&&(h=new Date(i,parseInt(s[2],10)-1,parseInt(s[1],10)));else if(s=/^easter(([+\-])(\d+))?$/.exec(r))h=l(i,s[1]?parseInt(s[1],10):0);else if(s=/^(\d\d)([+\-])([1-5])\*([0-6])$/.exec(r)){var a=parseInt(s[1],10)-1,p=s[2],v=parseInt(s[3]),y=parseInt(s[4]);switch(p){case"+":for(f=new Date(i,a,-6);f.getDay()!=y;)f=new Date(f.getFullYear(),f.getMonth(),f.getDate()+1);h=new Date(f.getFullYear(),f.getMonth(),f.getDate()+7*v);break;case"-":for(f=new Date(i,a+1,7);f.getDay()!=y;)f=new Date(f.getFullYear(),f.getMonth(),f.getDate()-1);h=new Date(f.getFullYear(),f.getMonth(),f.getDate()-7*v)}}if(!h)return u("Unknown holiday: "+t),o=!0,!1;switch(n){case 0:e=h;break;case 1:if(h.getTime()<=e.getTime())return u("Unknown holiday: "+t),o=!0,!1;c=h;break;default:return u("Unknown holiday: "+t),o=!0,!1}}),!o){if(s=[],c)for(f=new Date(e.getTime());f.getTime()<=c.getTime();f.setDate(f.getDate()+1))s.push(new Date(f.getTime()));else s.push(e);h.push({name:r,days:s})}}),r.cache[e]=h)}function u(){}function t(t,i){return this.options=n.extend(!0,{position:{start:new Date,end:new Date}},h,t),this.setLanguage(this.options.language),this.context=i,i.css("width",this.options.width).addClass("cal-context"),this.view(),this}function s(t,i,r,u){t.stopPropagation();var i=n(i),f=i.closest(".cal-cell"),e=f.closest(".cal-before-eventlist"),o=f.data("cal-row");i.fadeOut("fast"),r.slideUp("fast",function(){var t=n(".events-list",f);r.html(u.options.templates["events-list"]({cal:u,events:u.getEventsBetween(parseInt(t.data("cal-start")),parseInt(t.data("cal-end")))})),e.after(r),u.activecell=n("[data-cal-date]",f).text(),n("#cal-slide-tick").addClass("tick"+o).show(),r.slideDown("fast",function(){n("body").one("click",function(){r.slideUp("fast"),u.activecell=0})})}),setTimeout(function(){n("a.event-item").mouseenter(function(){n('a[data-event-id="'+n(this).data("event-id")+'"]').closest(".cal-cell1").addClass("day-highlight dh-"+n(this).data("event-class"))}),n("a.event-item").mouseleave(function(){n("div.cal-cell1").removeClass("day-highlight dh-"+n(this).data("event-class"))}),u._update_modal()},400)}function l(n,t){var u=n%19,i=Math.floor(n/100),f=n%100,y=Math.floor(i/4),v=i%4,a=Math.floor((i+8)/25),c=Math.floor((i-a+1)/3),r=(19*u+i-y-c+15)%30,p=Math.floor(f/4),h=f%4,o=(32+2*v+2*p-r-h)%7,s=Math.floor((u+11*r+22*o)/451),e=r+o+7*s+114,l=Math.floor(e/31)-1,w=e%31+1;return new Date(n,l,w+(t?t:0),0,0,0)}var h={width:"100%",view:"month",day:"now",time_start:"09:00",time_end:"23:00",time_split:"30",events_source:"",tmpl_path:"tmpls/",tmpl_cache:!0,classes:{months:{inmonth:"cal-day-inmonth",outmonth:"cal-day-outmonth",saturday:"cal-day-weekend",sunday:"cal-day-weekend",holidays:"cal-day-holiday",today:"cal-day-today"},week:{workday:"cal-day-workday",saturday:"cal-day-weekend",sunday:"cal-day-weekend",holidays:"cal-day-holiday",today:"cal-day-today"}},modal:null,modal_type:"iframe",modal_title:null,views:{year:{slide_events:1,enable:1},month:{slide_events:1,enable:1},week:{enable:1},day:{enable:0}},merge_holidays:!1,onAfterEventsLoad:function(){},onBeforeEventsLoad:function(n){n()},onAfterViewLoad:function(){},onAfterModalShown:function(){},onAfterModalHidden:function(){},events:[],templates:{year:"",month:"",week:"",day:""},stop_cycling:!1},e={first_day:2,holidays:{"01-01":"New Year's Day","01+3*1":"Birthday of Dr. Martin Luther King, Jr.","02+3*1":"Washington's Birthday","05-1*1":"Memorial Day","04-07":"Independence Day","09+1*1":"Labor Day","10+2*1":"Columbus Day","11-11":"Veterans Day","11+4*4":"Thanksgiving Day","25-12":"Christmas"}},o={error_noview:"Calendar: View {0} not found",error_dateformat:'Calendar: Wrong date format {0}. Should be either "now" or "yyyy-mm-dd"',error_loadurl:"Calendar: Event URL is not set",error_where:'Calendar: Wrong navigation direction {0}. Can be only "next" or "prev" or "today"',error_timedevide:"Calendar: Time split parameter should divide 60 without decimals. Something like 10, 15, 30",no_events_in_day:"No events in this day.",title_year:"{0}",title_month:"{0} {1}",title_week:"week {0} of {1}",title_day:"{0} {1} {2}, {3}",week:"Week {0}",all_day:"All day",time:"Time",events:"Events",before_time:"Ends before timeline",after_time:"Starts after timeline",m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December",ms0:"Jan",ms1:"Feb",ms2:"Mar",ms3:"Apr",ms4:"May",ms5:"Jun",ms6:"Jul",ms7:"Aug",ms8:"Sep",ms9:"Oct",ms10:"Nov",ms11:"Dec",d0:"Sunday",d1:"Monday",d2:"Tuesday",d3:"Wednesday",d4:"Thursday",d5:"Friday",d6:"Saturday"},i="";try{n.type(window.jstz)=="object"&&n.type(jstz.determine)=="function"&&(i=jstz.determine().name(),n.type(i)!=="string"&&(i=""))}catch(a){}r.cache={},t.prototype.setOptions=function(t){n.extend(this.options,t),"language"in t&&this.setLanguage(t.language),"modal"in t&&this._update_modal()},t.prototype.setLanguage=function(t){window.calendar_languages&&t in window.calendar_languages?(this.locale=n.extend(!0,{},o,calendar_languages[t]),this.options.language=t):(this.locale=o,delete this.options.language)},t.prototype._render=function(){var n,t,i;this.context.html(""),this._loadTemplate(this.options.view),this.stop_cycling=!1,n={},n.cal=this,n.day=1,n.days_name=f(this,"first_day")==1?[this.locale.d1,this.locale.d2,this.locale.d3,this.locale.d4,this.locale.d5,this.locale.d6,this.locale.d0]:[this.locale.d0,this.locale.d1,this.locale.d2,this.locale.d3,this.locale.d4,this.locale.d5,this.locale.d6],t=parseInt(this.options.position.start.getTime()),i=parseInt(this.options.position.end.getTime()),n.events=this.getEventsBetween(t,i);switch(this.options.view){case"week":this._calculate_hour_minutes(n,12.5);break;case"day":this._calculate_hour_minutes(n,90)}n.start=new Date(this.options.position.start.getTime()),n.lang=this.locale,this.context.append(this.options.templates[this.options.view](n)),this._update()},t.prototype.get_start_end_day_time=function(){var t=this.options.time_start.split(":"),i=this.options.time_end.split(":"),r=new Date(this.options.position.start.getTime()),n;return r.setHours(t[0]),r.setMinutes(t[1]),n=new Date(this.options.position.start.getTime()),n.setHours(i[0]),n.setMinutes(i[1]),{start_time:t,end_time:i,date_start:r,date_end:n}},t.prototype._calculate_hour_minutes=function(t,i){var f=this,o=parseInt(this.options.time_split),r,s,e;t.in_hour=60/parseInt(this.options.time_split),t.hour_split=parseInt(this.options.time_split),(t.in_hour>=1&&t.in_hour%1!=0||t.in_hour<1&&1440/o%1!=0)&&n.error(this.locale.error_timedevide),r=this.get_start_end_day_time(),t.hours=parseInt(r.end_time[0])-parseInt(r.start_time[0]),s=t.hours*t.in_hour,e=6e4*o,t.all_day=[],t.by_hour=[],t.after_time=[],t.before_time=[],n.each(t.events,function(n,o){var h=new Date(parseInt(o.start)),c=new Date(parseInt(o.end)),l,v,a;if(o.start_hour=h.getHours().toString().formatNum(2)+":"+h.getMinutes().toString().formatNum(2),o.end_hour=c.getHours().toString().formatNum(2)+":"+c.getMinutes().toString().formatNum(2),o.startr.date_end.getTime()&&(u(1),o.end_hour=c.getDate()+" "+f.locale["ms"+c.getMonth()]+" "+o.end_hour),o.startr.date_end.getTime()){t.all_day.push(o);return}if(o.endr.date_end.getTime()){t.after_time.push(o);return}o.width=f._day_hour_interchange_calculate_width(o,t.events,i),o.margin_left=f._day_hour_interchange_calculate_margin_left(o,t.events,o.width),l=r.date_start.getTime()-o.start,o.top=l>=0?0:Math.abs(l)/e,v=Math.abs(s-o.top),a=(o.end-o.start)/e,l>=0&&(a=(o.end-r.date_start.getTime())/e),o.lines=a,a>v&&(o.lines=v),t.by_hour.push(o)})},t.prototype._day_hour_interchange_calculate_width=function(n,t,i){var r=this._total_amount_of_events_intersect(n,t),u;if(r!=1)return u=i/r-.25},t.prototype._total_amount_of_events_intersect=function(t,i){var r=0,u=this;return n.each(i,function(n,i){u._events_intersect(t,i)&&(r+=1)}),r},t.prototype._events_intersect=function(n,t){var f=new Date(parseInt(n.start)),e=new Date(parseInt(n.end)),i=new Date(parseInt(t.start)),r=new Date(parseInt(t.end)),u=this.get_start_end_day_time();return iu.date_end?!1:(t.end-t.start)/864e5>1?!1:f<=r&&i<=e?!0:!1},t.prototype._day_hour_interchange_calculate_margin_left=function(t,i,r){var e=this,u=null,f=0,o=e._events_to_loop(t,i);return n.each(i,function(n,i){if(t.id==i.id)return!0;if(e._events_intersect(t,i)){if(f+=1,f>o)return!1;u=f==1?r+.5:u+r+.5}}),u},t.prototype._events_to_loop=function(t,i){var r=0,u=this;return n.each(i,function(n,i){u._events_intersect(t,i)&&t.id>i.id&&(r+=1)}),r},t.prototype._hour_min=function(n){var r=this.options.time_start.split(":"),t=parseInt(this.options.time_split),i=60/t;return n==0?i-parseInt(r[1])/t:i},t.prototype._hour=function(n,t){var i=this.options.time_start.split(":"),r=parseInt(this.options.time_split),u=""+(parseInt(i[0])+n*Math.max(r/60,1)),f=""+(r*t+(n==0?parseInt(i[1]):0));return u.formatNum(2)+":"+f.formatNum(2)},t.prototype._week=function(){var e,o;this._loadTemplate("week-days");var s={},u=parseInt(this.options.position.start.getTime()),l=parseInt(this.options.position.end.getTime()),i=[],h=this,v=f(this,"first_day"),r={};r.in_hour=60/parseInt(this.options.time_split),r.hour_split=parseInt(this.options.time_split),(!/^\d+$/.exec(r.in_hour)||this.options.time_split>30)&&n.error(this.locale.error_timedevide),e=this.options.time_start.split(":"),o=this.options.time_end.split(":"),r.hours=parseInt(o[0])-parseInt(e[0]);var y=r.hours*r.in_hour,c=6e4*parseInt(this.options.time_split),a=this.getEventsBetween(u,l);return i.all_day=[],i.by_hour=[],i.after_time=[],i.before_time=[],n.each(this.getEventsBetween(u,l),function(n,t){var f,w,nt,s,d,p,r,g;t.start_day=new Date(parseInt(t.start)).getDay(),v==1&&(t.start_day=(t.start_day+6)%7),t.days=t.end-t.start<=864e5?1:(t.end-t.start)/864e5,t.start7&&(t.days=7-t.start_day),t.start_day=t.start_day+1,f=new Date(parseInt(t.start)),w=new Date(parseInt(t.start)),w.setHours(23,59,59,999),nt=w.getTime(),s=new Date(parseInt(t.end)),t.display_start_hour=f.getHours().toString().formatNum(2)+":"+f.getMinutes().toString().formatNum(2),t.display_end_hour=s.getHours().toString().formatNum(2)+":"+s.getMinutes().toString().formatNum(2);var l=f.getTime(),b=s.getTime(),k=new Date(l);if(k.setHours(e[0]),k.setMinutes(e[1]),d=new Date(b),d.setHours(o[0]),d.setMinutes(o[1]),t.days>1){t.width=t.days*12.5,i.all_day.push(t);return}p=l-k,p<0?(t.top=0,r=(b-(l-p))/c):(t.top=Math.abs(p)/c,r=(b-l)/c),t.width=h._day_hour_interchange_calculate_width(t,a,12.5),t.margin_left=h._day_hour_interchange_calculate_margin_left(t,a,t.width)+t.start_day*12.5,g=y-(t.top+r),t.lines=r,t.lines=r>g?t.lines+g:r,i.by_hour.push(t)}),s.events=i,s.cal=this,h.options.templates["week-days"](s)},t.prototype._get_week_day_width=function(n){n.width==null},t.prototype._get_week_day_margin_left=function(n){if(n.margin_left!=null)return"margin-left:"+n.margin_left+"%;"},t.prototype._month=function(n){var t,i,r;return this._loadTemplate("year-month"),t={cal:this},i=n+1,t.data_day=this.options.position.start.getFullYear()+"-"+(i<10?"0"+i:i)+"-01",t.month_name=this.locale["m"+n],r=new Date(this.options.position.start.getFullYear(),n,1,0,0,0),t.start=parseInt(r.getTime()),t.end=parseInt(+new Date(this.options.position.start.getFullYear(),n+1,1,0,0,0)),t.events=this.getEventsBetween(t.start,t.end),this.options.templates["year-month"](t)},t.prototype._day=function(t,i){var e,s,c,h;this._loadTemplate("month-day");var r={tooltip:"",cal:this},u=this.options.classes.months.outmonth,o=this.options.position.start.getDay();return f(this,"first_day")==2?o++:o=o==0?7:o,i=i-o+1,e=new Date(this.options.position.start.getFullYear(),this.options.position.start.getMonth(),i,0,0,0),i>0&&(u=this.options.classes.months.inmonth),s=new Date(this.options.position.end.getTime()-1).getDate(),i+1>s&&(this.stop_cycling=!0),i>s&&(i=i-s,u=this.options.classes.months.outmonth),u=n.trim(u+" "+this._getDayClass("months",e)),i<=0&&(c=new Date(this.options.position.start.getFullYear(),this.options.position.start.getMonth(),0).getDate(),i=c-Math.abs(i),u+=" cal-month-first-row"),h=this._getHoliday(e),h!==!1&&(r.tooltip=h),r.data_day=e.getFullYear()+"-"+e.getMonthFormatted()+"-"+(i<10?"0"+i:i),r.cls=u,r.day=i,r.start=parseInt(e.getTime()),r.end=parseInt(r.start+864e5),r.events=this.getEventsBetween(r.start,r.end),this.options.templates["month-day"](r)},t.prototype._getHoliday=function(t){var i=!1;return n.each(r(this,t.getFullYear()),function(){var r=!1;return n.each(this.days,function(){if(this.toDateString()==t.toDateString())return r=!0,!1}),r?(i=this.name,!1):void 0}),i},t.prototype._getHolidayName=function(n){var t=this._getHoliday(n);return t===!1?"":t},t.prototype._getDayClass=function(n,t){var u=this,r=function(t,i){var r;r=u.options.classes&&n in u.options.classes&&t in u.options.classes[n]?u.options.classes[n][t]:"",typeof r=="string"&&r.length&&i.push(r)},i=[],f;t.toDateString()==(new Date).toDateString()&&r("today",i),f=this._getHoliday(t),f!==!1&&r("holidays",i);switch(t.getDay()){case 0:r("sunday",i);break;case 6:r("saturday",i)}return r(t.toDateString(),i),i.join(" ")},t.prototype.view=function(n){if(n){if(!this.options.views[n].enable)return;this.options.view=n}this._init_position(),this._loadEvents(),this._render(),this.options.onAfterViewLoad.call(this,this.options.view)},t.prototype.navigate=function(t,i){var r=n.extend({},this.options.position);if(t=="next")switch(this.options.view){case"year":r.start.setFullYear(this.options.position.start.getFullYear()+1);break;case"month":r.start.setMonth(this.options.position.start.getMonth()+1);break;case"week":r.start.setDate(this.options.position.start.getDate()+7);break;case"day":r.start.setDate(this.options.position.start.getDate()+1)}else if(t=="prev")switch(this.options.view){case"year":r.start.setFullYear(this.options.position.start.getFullYear()-1);break;case"month":r.start.setMonth(this.options.position.start.getMonth()-1);break;case"week":r.start.setDate(this.options.position.start.getDate()-7);break;case"day":r.start.setDate(this.options.position.start.getDate()-1)}else t=="today"?r.start.setTime(+new Date):n.error(this.locale.error_where.format(t));this.options.day=r.start.getFullYear()+"-"+r.start.getMonthFormatted()+"-"+r.start.getDateFormatted(),this.view(),_.isFunction(i)&&i()},t.prototype._init_position=function(){var t,i,r,e,o,u,s;this.options.day=="now"?(e=new Date,t=e.getFullYear(),i=e.getMonth(),r=e.getDate()):this.options.day.match(/^\d{4}-\d{2}-\d{2}$/g)?(o=this.options.day.split("-"),t=parseInt(o[0],10),i=parseInt(o[1],10)-1,r=parseInt(o[2],10)):n.error(this.locale.error_dateformat.format(this.options.day));switch(this.options.view){case"year":this.options.position.start.setTime(+new Date(t,0,1)),this.options.position.end.setTime(+new Date(t+1,0,1));break;case"month":this.options.position.start.setTime(+new Date(t,i,1)),this.options.position.end.setTime(+new Date(t,i+1,1));break;case"day":this.options.position.start.setTime(+new Date(t,i,r)),this.options.position.end.setTime(+new Date(t,i,r+1));break;case"week":u=new Date(t,i,r),s=f(this,"first_day")==1?u.getDate()-(u.getDay()+6)%7:u.getDate()-u.getDay(),this.options.position.start.setTime(+new Date(t,i,s)),this.options.position.end.setTime(+new Date(t,i,s+7));break;default:n.error(this.locale.error_noview.format(this.options.view))}return this},t.prototype.getTitle=function(){var n=this.options.position.start;switch(this.options.view){case"year":return this.locale.title_year.format(n.getFullYear());case"month":return this.locale.title_month.format(this.locale["m"+n.getMonth()],n.getFullYear());case"week":return this.locale.title_week.format(n.getWeek(),n.getFullYear());case"day":return this.locale.title_day.format(this.locale["d"+n.getDay()],n.getDate(),this.locale["m"+n.getMonth()],n.getFullYear())}return},t.prototype.isToday=function(){var n=+new Date;return n>this.options.position.start&&n');n(".cal-month-day, .cal-year-box .span3").on("mouseenter",function(){n(".events-list",this).length!=0&&n(this).children("[data-cal-date]").text()!=t.activecell&&i.show().appendTo(this)}).on("mouseleave",function(){i.hide()}).on("click",function(u){n(".events-list",this).length!=0&&n(this).children("[data-cal-date]").text()!=t.activecell&&s(u,i,r,t)});r=n(document.createElement("div")).attr("id","cal-slide-box"),r.hide().click(function(n){n.stopPropagation()}),this._loadTemplate("events-list"),i.click(function(i){s(i,n(this),r,t)})}},t.prototype.getEventsBetween=function(t,i){var r=[];return n.each(this.options.events,function(){if(this.start==null)return!0;var n=this.end||this.start;parseInt(this.start)=t&&r.push(this)}),r},n.fn.calendar=function(n){return new t(n,this)}}(jQuery),window.calendar_languages||(window.calendar_languages={}),window.calendar_languages["tr-TR"]={error_noview:"Takvim: Görünüm {0} bulunamadı",error_dateformat:'Takvim: Yanlış tarih formatı {0}. Şunlardan biri olmalı "now" veya "yyyy-mm-dd"',error_loadurl:"Takvim: Etkinlik bağlantısı belirtilmemiş",error_where:'Takvim: Yanlış gezinme yönü {0}. Sadece bunlardan biri olabilir "next" veya "prev" veya "today"',error_timedevide:"Takvim: Zaman bölme parametresi 60'ı kalansız bölmelidir. 10, 15, 30 gibi",no_events_in_day:"Bugün etkinlik yok",title_year:"{0}",title_month:"{0} {1}",title_week:"{1} - {0}. Hafta",title_day:"{1} {2} {3}, {0}",week:"{0}. Hafta",all_day:"Tüm gün",time:"Zaman",events:"Etkinlikler",before_time:"Zamanından önce biter",after_time:"Zamanından sonra başlar",m0:"Ocak",m1:"Şubat",m2:"Mart",m3:"Nisan",m4:"Mayıs",m5:"Haziran",m6:"Temmuz",m7:"Ağustos",m8:"Eylül",m9:"Ekim",m10:"Kasım",m11:"Aralık",ms0:"Oca",ms1:"Şub",ms2:"Mar",ms3:"Nis",ms4:"May",ms5:"Haz",ms6:"Tem",ms7:"Ağu",ms8:"Eyl",ms9:"Eki",ms10:"Kas",ms11:"Ara",d0:"Pazar",d1:"Pazartesi",d2:"Salı",d3:"Çarşamba",d4:"Perşembe",d5:"Cuma",d6:"Cumartesi",first_day:1,holidays:{"01-01":"Yılbaşı","23-04":"Ulusal Egemenlik ve Çocuk Bayramı","01-05":"İşçi Bayramı","19-05":"Atatürk'ü Anma, Gençlik ve Spor Bayramı","30-08":"Zafer Bayramı","29-10":"Cumhuriyet Bayramı"}},function(n){"use strict";var t={init:function(i){var r=this;if(!r.data("jqv")||r.data("jqv")==null){i=t._saveOptions(r,i);n(document).on("click",".formError",function(){n(this).fadeOut(150,function(){n(this).closest(".formErrorOuter").remove()})})}return this},attach:function(i){var u=this,r;if(r=i?t._saveOptions(u,i):u.data("jqv"),r.validateAttribute=u.find("[data-validation-engine*=validate]").length?"data-validation-engine":"class",r.binded){u.on(r.validationEventTrigger,"["+r.validateAttribute+"*=validate]:not([type=checkbox]):not([type=radio]):not(.datepicker)",t._onFieldEvent);u.on("click","["+r.validateAttribute+"*=validate][type=checkbox],["+r.validateAttribute+"*=validate][type=radio]",t._onFieldEvent);u.on(r.validationEventTrigger,"["+r.validateAttribute+"*=validate][class*=datepicker]",{delay:300},t._onFieldEvent)}r.autoPositionUpdate&&n(window).bind("resize",{noAnimation:!0,formElem:u},t.updatePromptsPosition);u.on("click","a[data-validation-engine-skip], a[class*='validate-skip'], button[data-validation-engine-skip], button[class*='validate-skip'], input[data-validation-engine-skip], input[class*='validate-skip']",t._submitButtonClick);u.removeData("jqv_submitButton");u.on("submit",t._onSubmitEvent);return this},detach:function(){var i=this,r=i.data("jqv");return i.off(r.validationEventTrigger,"["+r.validateAttribute+"*=validate]:not([type=checkbox]):not([type=radio]):not(.datepicker)",t._onFieldEvent),i.off("click","["+r.validateAttribute+"*=validate][type=checkbox],["+r.validateAttribute+"*=validate][type=radio]",t._onFieldEvent),i.off(r.validationEventTrigger,"["+r.validateAttribute+"*=validate][class*=datepicker]",t._onFieldEvent),i.off("submit",t._onSubmitEvent),i.removeData("jqv"),i.off("click","a[data-validation-engine-skip], a[class*='validate-skip'], button[data-validation-engine-skip], button[class*='validate-skip'], input[data-validation-engine-skip], input[class*='validate-skip']",t._submitButtonClick),i.removeData("jqv_submitButton"),r.autoPositionUpdate&&n(window).off("resize",t.updatePromptsPosition),this},validate:function(i){var r=n(this),f=null,u;if(r.is("form")||r.hasClass("validationEngineContainer")){if(r.hasClass("validating"))return!1;r.addClass("validating"),u=i?t._saveOptions(r,i):r.data("jqv"),f=t._validateFields(this),setTimeout(function(){r.removeClass("validating")},100),f&&u.onSuccess?u.onSuccess():!f&&u.onFailure&&u.onFailure()}else if(r.is("form")||r.hasClass("validationEngineContainer"))r.removeClass("validating");else var e=r.closest("form, .validationEngineContainer"),u=e.data("jqv")?e.data("jqv"):n.validationEngine.defaults,f=t._validateField(r,u);return u.onValidationComplete?!!u.onValidationComplete(e,f):f},updatePromptsPosition:function(i){var f,u,r;return i&&this==window?(u=i.data.formElem,f=i.data.noAnimation):u=n(this.closest("form, .validationEngineContainer")),r=u.data("jqv"),r||(r=t._saveOptions(u,r)),u.find("["+r.validateAttribute+"*=validate]").not(":disabled").each(function(){var i=n(this),e,o;r.prettySelect&&i.is(":hidden")&&(i=u.find("#"+r.usePrefix+i.attr("id")+r.useSuffix)),e=t._getPrompt(i),o=n(e).find(".formErrorContent").html(),e&&t._updatePrompt(i,n(e),o,undefined,!1,r,f)}),this},showPrompt:function(n,i,r,u){var e=this.closest("form, .validationEngineContainer"),f=e.data("jqv");return f||(f=t._saveOptions(this,f)),r&&(f.promptPosition=r),f.showArrow=u==!0,t._showPrompt(this,n,i,!1,f),this},hide:function(){var u=n(this).closest("form, .validationEngineContainer"),i=u.data("jqv"),f,r;return i||(i=t._saveOptions(u,i)),f=i&&i.fadeDuration?i.fadeDuration:.3,r=n(this).is("form")||n(this).hasClass("validationEngineContainer")?"parentForm"+t._getClassName(n(this).attr("id")):t._getClassName(n(this).attr("id"))+"formError",n("."+r).fadeTo(f,.3,function(){n(this).closest(".formErrorOuter").remove()}),this},hideAll:function(){var i=this,t=i.data("jqv"),r=t?t.fadeDuration:300;return n(".formError").fadeTo(r,300,function(){n(this).closest(".formErrorOuter").remove()}),this},_onFieldEvent:function(i){var u=n(this),f=u.closest("form, .validationEngineContainer"),r=f.data("jqv");r||(r=t._saveOptions(f,r)),r.eventTrigger="field",r.notEmpty==!0?u.val().length>0&&window.setTimeout(function(){t._validateField(u,r)},i.data?i.data.delay:0):window.setTimeout(function(){t._validateField(u,r)},i.data?i.data.delay:0)},_onSubmitEvent:function(){var i=n(this),r=i.data("jqv"),u,f;return i.data("jqv_submitButton")&&(u=n("#"+i.data("jqv_submitButton")),u&&u.length>0&&(u.hasClass("validate-skip")||u.attr("data-validation-engine-skip")=="true"))?!0:(r.eventTrigger="submit",f=t._validateFields(i),f&&r.ajaxFormValidation)?(t._validateFormWithAjax(i,r),!1):r.onValidationComplete?!!r.onValidationComplete(i,f):f},_checkAjaxStatus:function(t){var i=!0;return n.each(t.ajaxValidCache,function(n,t){if(!t)return i=!1,!1}),i},_checkAjaxFieldStatus:function(n,t){return t.ajaxValidCache[n]==!0},_validateFields:function(i){var r=i.data("jqv"),e=!1,u,h,s,c,l,a;if(i.trigger("jqv.form.validating"),u=null,i.find("["+r.validateAttribute+"*=validate]").not(":disabled").each(function(){var f=n(this),o=[];if(n.inArray(f.attr("name"),o)<0&&((e|=t._validateField(f,r),e&&u==null&&(f.is(":hidden")&&r.prettySelect?u=f=i.find("#"+r.usePrefix+t._jqSelector(f.attr("id"))+r.useSuffix):(f.data("jqv-prompt-at")instanceof jQuery?f=f.data("jqv-prompt-at"):f.data("jqv-prompt-at")&&(f=n(f.data("jqv-prompt-at"))),u=f)),r.doNotShowAllErrosOnSubmit)||(o.push(f.attr("name")),r.showOneMessage==!0&&e)))return!1}),i.trigger("jqv.form.result",[e]),e){if(r.scroll){var o=u.offset().top,v=u.offset().left,f=r.promptPosition;if(typeof f=="string"&&f.indexOf(":")!=-1&&(f=f.substring(0,f.indexOf(":"))),f!="bottomRight"&&f!="bottomLeft"&&(h=t._getPrompt(u),h&&(o=h.offset().top)),r.scrollOffset&&(o-=r.scrollOffset),r.isOverflown){if(s=n(r.overflownDIV),!s.length)return!1;c=s.scrollTop(),l=-parseInt(s.offset().top),o+=c+l-5,a=n(r.overflownDIV).filter(":not(:animated)"),a.animate({scrollTop:o},1100,function(){r.focusFirstField&&u.focus()})}else n("html, body").animate({scrollTop:o},1100,function(){r.focusFirstField&&u.focus()}),n("html, body").animate({scrollLeft:v},1100)}else r.focusFirstField&&u.focus();return!1}return!0},_validateFormWithAjax:function(i,r){var f=i.serialize(),e=r.ajaxFormValidationMethod?r.ajaxFormValidationMethod:"GET",o=r.ajaxFormValidationURL?r.ajaxFormValidationURL:i.attr("action"),u=r.dataType?r.dataType:"json";n.ajax({type:e,url:o,cache:!1,dataType:u,data:f,form:i,methods:t,options:r,beforeSend:function(){return r.onBeforeAjaxFormValidation(i,r)},error:function(n,i){if(r.onFailure)r.onFailure(n,i);else t._ajaxError(n,i)},success:function(f){var c,s,e,o;if(u=="json"&&f!==!0){for(c=!1,s=0;s0&&(tt=!0),s=n(i.closest("form, .validationEngineContainer")),f=0;f=r.maxErrorsPerField){h||(w=n.inArray("required",e),h=w!=-1&&w>=f);break}o=undefined;switch(e[f]){case"required":h=!0,o=t._getErrorMessage(s,i,e[f],e,f,r,t._required);break;case"custom":o=t._getErrorMessage(s,i,e[f],e,f,r,t._custom);break;case"groupRequired":c="["+r.validateAttribute+"*="+e[f+1]+"]",b=s.find(c).eq(0),b[0]!=i[0]&&(t._validateField(b,r,u),r.showArrow=!0),o=t._getErrorMessage(s,i,e[f],e,f,r,t._groupRequired),o&&(h=!0),r.showArrow=!1;break;case"ajax":o=t._ajax(i,e,f,r),o&&(g="load");break;case"minSize":o=t._getErrorMessage(s,i,e[f],e,f,r,t._minSize);break;case"maxSize":o=t._getErrorMessage(s,i,e[f],e,f,r,t._maxSize);break;case"min":o=t._getErrorMessage(s,i,e[f],e,f,r,t._min);break;case"max":o=t._getErrorMessage(s,i,e[f],e,f,r,t._max);break;case"past":o=t._getErrorMessage(s,i,e[f],e,f,r,t._past);break;case"future":o=t._getErrorMessage(s,i,e[f],e,f,r,t._future);break;case"dateRange":c="["+r.validateAttribute+"*="+e[f+1]+"]",r.firstOfGroup=s.find(c).eq(0),r.secondOfGroup=s.find(c).eq(1),(r.firstOfGroup[0].value||r.secondOfGroup[0].value)&&(o=t._getErrorMessage(s,i,e[f],e,f,r,t._dateRange)),o&&(h=!0),r.showArrow=!1;break;case"dateTimeRange":c="["+r.validateAttribute+"*="+e[f+1]+"]",r.firstOfGroup=s.find(c).eq(0),r.secondOfGroup=s.find(c).eq(1),(r.firstOfGroup[0].value||r.secondOfGroup[0].value)&&(o=t._getErrorMessage(s,i,e[f],e,f,r,t._dateTimeRange)),o&&(h=!0),r.showArrow=!1;break;case"maxCheckbox":i=n(s.find("input[name='"+l+"']")),o=t._getErrorMessage(s,i,e[f],e,f,r,t._maxCheckbox);break;case"minCheckbox":i=n(s.find("input[name='"+l+"']")),o=t._getErrorMessage(s,i,e[f],e,f,r,t._minCheckbox);break;case"equals":o=t._getErrorMessage(s,i,e[f],e,f,r,t._equals);break;case"funcCall":o=t._getErrorMessage(s,i,e[f],e,f,r,t._funcCall);break;case"creditCard":o=t._getErrorMessage(s,i,e[f],e,f,r,t._creditCard);break;case"condRequired":o=t._getErrorMessage(s,i,e[f],e,f,r,t._condRequired),o!==undefined&&(h=!0);break;case"funcCallRequired":o=t._getErrorMessage(s,i,e[f],e,f,r,t._funcCallRequired),o!==undefined&&(h=!0)}if(y=!1,typeof o=="object")switch(o.status){case"_break":y=!0;break;case"_error":o=o.message;break;case"_error_no_prompt":return!0}if(f==0&&it.indexOf("funcCallRequired")==0&&o!==undefined&&(a+=o+" ",r.isError=!0,v++,y=!0),y)break;typeof o=="string"&&(a+=o+" ",r.isError=!0,v++)}if(!h&&!i.val()&&i.val().length<1&&n.inArray("equals",e)<0&&(r.isError=!1),k=i.prop("type"),nt=i.data("promptPosition")||r.promptPosition,(k=="radio"||k=="checkbox")&&s.find("input[name='"+l+"']").size()>1&&(i=nt==="inline"?n(s.find("input[name='"+l+"'][type!=hidden]:last")):n(s.find("input[name='"+l+"'][type!=hidden]:first")),r.showArrow=r.showArrowOnRadioAndCheckbox),i.is(":hidden")&&r.prettySelect&&(i=s.find("#"+r.usePrefix+t._jqSelector(i.attr("id"))+r.useSuffix)),r.isError&&r.showPrompts?t._showPrompt(i,a,g,!1,r):ut||t._closePrompt(i),ut||i.trigger("jqv.field.result",[i,r.isError,a]),d=n.inArray(i[0],r.InvalidFields),d==-1?r.isError&&r.InvalidFields.push(i[0]):r.isError||r.InvalidFields.splice(d,1),t._handleStatusCssClasses(i,r),r.isError&&r.onFieldFailure)r.onFieldFailure(i);if(!r.isError&&r.onFieldSuccess)r.onFieldSuccess(i);return r.isError},_handleStatusCssClasses:function(n,t){t.addSuccessCssClassToField&&n.removeClass(t.addSuccessCssClassToField),t.addFailureCssClassToField&&n.removeClass(t.addFailureCssClassToField),t.addSuccessCssClassToField&&!t.isError&&n.addClass(t.addSuccessCssClassToField),t.addFailureCssClassToField&&t.isError&&n.addClass(t.addFailureCssClassToField)},_getErrorMessage:function(i,r,u,f,e,o,s){var l=jQuery.inArray(u,f),a,c;(u==="custom"||u==="funcCall"||u==="funcCallRequired")&&(a=f[l+1],u=u+"["+a+"]",delete f[l]);var v=u,y=r.attr("data-validation-engine")?r.attr("data-validation-engine"):r.attr("class"),p=y.split(" "),h;return h=u=="future"||u=="past"||u=="maxCheckbox"||u=="minCheckbox"?s(i,r,f,e,o):s(r,f,e,o),h!=undefined&&(c=t._getCustomErrorMessage(n(r),p,v,o),c&&(h=c)),h},_getCustomErrorMessage:function(n,i,r,u){var f=!1,h=/^custom\[.*\]$/.test(r)?t._validityProp.custom:t._validityProp[r],e,o,s;if(h!=undefined&&(f=n.attr("data-errormessage-"+h),f!=undefined)||(f=n.attr("data-errormessage"),f!=undefined))return f;if(e="#"+n.attr("id"),typeof u.custom_error_messages[e]!="undefined"&&typeof u.custom_error_messages[e][r]!="undefined")f=u.custom_error_messages[e][r].message;else if(i.length>0)for(o=0;o0;o++)if(s="."+i[o],typeof u.custom_error_messages[s]!="undefined"&&typeof u.custom_error_messages[s][r]!="undefined"){f=u.custom_error_messages[s][r].message;break}return f||typeof u.custom_error_messages[r]=="undefined"||typeof u.custom_error_messages[r].message=="undefined"||(f=u.custom_error_messages[r].message),f},_validityProp:{required:"value-missing",custom:"custom-error",groupRequired:"value-missing",ajax:"custom-error",minSize:"range-underflow",maxSize:"range-overflow",min:"range-underflow",max:"range-overflow",past:"type-mismatch",future:"type-mismatch",dateRange:"type-mismatch",dateTimeRange:"type-mismatch",maxCheckbox:"range-overflow",minCheckbox:"range-underflow",equals:"pattern-mismatch",funcCall:"custom-error",funcCallRequired:"custom-error",creditCard:"pattern-mismatch",condRequired:"value-missing"},_required:function(t,i,r,u,f){var e,o;switch(t.prop("type")){case"radio":case"checkbox":if(f){if(!t.prop("checked"))return u.allrules[i[r]].alertTextCheckboxMultiple;break}if(e=t.closest("form, .validationEngineContainer"),o=t.attr("name"),e.find("input[name='"+o+"']:checked").size()==0)return e.find("input[name='"+o+"']:visible").size()==1?u.allrules[i[r]].alertTextCheckboxe:u.allrules[i[r]].alertTextCheckboxMultiple;break;case"text":case"password":case"textarea":case"file":case"select-one":case"select-multiple":default:var s=n.trim(t.val()),h=n.trim(t.attr("data-validation-placeholder")),c=n.trim(t.attr("placeholder"));if(!s||h&&s==h||c&&s==c)return u.allrules[i[r]].alertText}},_groupRequired:function(i,r,u,f){var o="["+f.validateAttribute+"*="+r[u+1]+"]",e=!1;return i.closest("form, .validationEngineContainer").find(o).each(function(){if(!t._required(n(this),r,u,f))return e=!0,!1}),e?void 0:f.allrules[r[u]].alertText},_custom:function(n,t,i,r){var u=t[i+1],f=r.allrules[u],e,o,s;if(!f){alert("jqv:custom rule not found - "+u);return}if(f.regex){if(o=f.regex,!o){alert("jqv:custom regex not found - "+u);return}if(s=new RegExp(o),!s.test(n.val()))return r.allrules[u].alertText}else if(f.func){if(e=f.func,typeof e!="function"){alert("jqv:custom parameter 'function' is no function - "+u);return}if(!e(n,t,i,r))return r.allrules[u].alertText}else{alert("jqv:custom type not allowed "+u);return}},_funcCall:function(n,t,i,r){var u=t[i+1],f,o,e;if(u.indexOf(".")>-1){for(o=u.split("."),e=window;o.length;)e=e[o.shift()];f=e}else f=window[u]||r.customFunctions[u];if(typeof f=="function")return f(n,t,i,r)},_funcCallRequired:function(n,i,r,u){return t._funcCall(n,i,r,u)},_equals:function(t,i,r,u){var f=i[r+1];if(t.val()!=n("#"+f).val())return u.allrules.equals.alertText},_maxSize:function(n,t,i,r){var f=t[i+1],e=n.val().length,u;if(e>f)return u=r.allrules.maxSize,u.alertText+f+u.alertText2},_minSize:function(n,t,i,r){var f=t[i+1],e=n.val().length,u;if(ef)return(u=r.allrules.max,u.alertText2)?u.alertText+f+u.alertText2:u.alertText+f},_past:function(i,r,u,f,e){var h=u[f+1],c=n(i.find("*[name='"+h.replace(/^#+/,"")+"']")),o,l,s;if(h.toLowerCase()=="now")o=new Date;else if(undefined!=c.val()){if(c.is(":disabled"))return;o=t._parseDate(c.val())}else o=t._parseDate(h);return l=t._parseDate(r.val()),l>o?(s=e.allrules.past,s.alertText2)?s.alertText+t._dateToString(o)+s.alertText2:s.alertText+t._dateToString(o):void 0},_future:function(i,r,u,f,e){var h=u[f+1],c=n(i.find("*[name='"+h.replace(/^#+/,"")+"']")),o,l,s;if(h.toLowerCase()=="now")o=new Date;else if(undefined!=c.val()){if(c.is(":disabled"))return;o=t._parseDate(c.val())}else o=t._parseDate(h);return l=t._parseDate(r.val()),lf)return(u.showArrow=!1,u.allrules.maxCheckbox.alertText2)?u.allrules.maxCheckbox.alertText+" "+f+" "+u.allrules.maxCheckbox.alertText2:u.allrules.maxCheckbox.alertText},_minCheckbox:function(n,t,i,r,u){var f=i[r+1],e=t.attr("name"),o=n.find("input[name='"+e+"']:checked").size();if(o=14&&f<=16&&parseInt(u)>0){var h=0,i=f-1,c=1,e,o=new String;do e=parseInt(u.charAt(i)),o+=c++%2==0?e*2:e;while(--i>=0);for(i=0;i"),a,h,c,l,s;o.addClass(t._getClassName(i.attr("id"))+"formError"),o.addClass("parentForm"+t._getClassName(i.closest("form, .validationEngineContainer").attr("id"))),o.addClass("formError");switch(u){case"pass":o.addClass("greenPopup");break;case"load":o.addClass("blackPopup")}return f&&o.addClass("ajaxed"),a=n("").addClass("formErrorContent").html(r).appendTo(o),h=i.data("promptPosition")||e.promptPosition,e.showArrow,e.addPromptClass&&o.addClass(e.addPromptClass),c=i.attr("data-required-class"),c!==undefined?o.addClass(c):e.prettySelect&&n("#"+i.attr("id")).next().is("select")&&(l=n("#"+i.attr("id").substr(e.usePrefix.length).substring(e.useSuffix.length)).attr("data-required-class"),l!==undefined&&o.addClass(l)),o.css({opacity:0}),h==="inline"?(o.addClass("inline"),typeof i.attr("data-prompt-target")!="undefined"&&n("#"+i.attr("data-prompt-target")).length>0?o.appendTo(n("#"+i.attr("data-prompt-target"))):i.after(o)):i.before(o),s=t._calculatePosition(i,o,e),o.css({position:h==="inline"?"relative":"absolute",top:s.callerTopPosition,left:s.callerleftPosition,marginTop:s.marginTopSize,opacity:0}).data("callerField",i),e.autoHidePrompt&&setTimeout(function(){o.animate({opacity:0},function(){o.closest(".formErrorOuter").remove()})},e.autoHideDelay),o.animate({opacity:1})},_updatePrompt:function(n,i,r,u,f,e,o){if(i){typeof u!="undefined"&&(u=="pass"?i.addClass("greenPopup"):i.removeClass("greenPopup"),u=="load"?i.addClass("blackPopup"):i.removeClass("blackPopup")),f?i.addClass("ajaxed"):i.removeClass("ajaxed"),i.find(".formErrorContent").html(r);var s=t._calculatePosition(n,i,e),h={top:s.callerTopPosition,left:s.callerleftPosition,marginTop:s.marginTopSize,opacity:1};i.css({opacity:0,display:"block"}),o?i.css(h):i.animate(h)}},_closePrompt:function(n){var i=t._getPrompt(n);i&&i.fadeTo("fast",0,function(){i.closest(".formErrorOuter").remove()})},closePrompt:function(n){return t._closePrompt(n)},_getPrompt:function(i){var u=n(i).closest("form, .validationEngineContainer").attr("id"),f=t._getClassName(i.attr("id"))+"formError",r=n("."+t._escapeExpression(f)+".parentForm"+t._getClassName(u))[0];if(r)return n(r)},_escapeExpression:function(n){return n.replace(/([#;&,\.\+\*\~':"\!\^$\[\]\(\)=>\|])/g,"\\$1")},isRTL:function(t){var i=n(document),r=n("body"),u=t&&t.hasClass("rtl")||t&&(t.attr("dir")||"").toLowerCase()==="rtl"||i.hasClass("rtl")||(i.attr("dir")||"").toLowerCase()==="rtl"||r.hasClass("rtl")||(r.attr("dir")||"").toLowerCase()==="rtl";return Boolean(u)},_calculatePosition:function(n,t,i){var r,u,o,l=n.width(),s=n.position().left,h=n.position().top,p=n.height(),y=t.height();r=u=0,o=-y;var e=n.data("promptPosition")||i.promptPosition,f="",a="",v=0,c=10;typeof e=="string"&&e.indexOf(":")!=-1&&(f=e.substring(e.indexOf(":")+1),e=e.substring(0,e.indexOf(":")),f.indexOf(",")!=-1&&(a=f.substring(f.indexOf(",")+1),f=f.substring(0,f.indexOf(",")),c=parseInt(a),isNaN(c)&&(c=0)),v=parseInt(f),isNaN(f)&&(f=0));switch(e){default:case"topRight":u+=s+l-27,r+=h;break;case"topLeft":r+=h,u+=s;break;case"centerRight":r=h+4,o=0,u=s+n.outerWidth(!0)+5;break;case"centerLeft":u=s-(t.width()+2),r=h+4,o=0;break;case"bottomLeft":r=h+n.height()+5,o=0,u=s;break;case"bottomRight":u=s+l-27,r=h+n.height()+5,o=0;break;case"inline":u=0,r=0,o=0}return u+=v,r+=c,{callerTopPosition:r+"px",callerleftPosition:u+"px",marginTopSize:o+"px"}},_saveOptions:function(t,i){var u,r;return n.validationEngineLanguage?u=n.validationEngineLanguage.allRules:n.error("jQuery.validationEngine rules are not loaded, plz add localization files to the page"),n.validationEngine.defaults.allrules=u,r=n.extend(!0,{},n.validationEngine.defaults,i),t.data("jqv",r),r},_getClassName:function(n){if(n)return n.replace(/:/g,"_").replace(/\./g,"_")},_jqSelector:function(n){return n.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")},_condRequired:function(n,i,r,u){for(var e,f=r+1;f
()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,alertText:"* Invalid email address"},fullname:{regex:/^([a-zA-Z]+[\'\,\.\-]?[a-zA-Z ]*)+[ ]([a-zA-Z]+[\'\,\.\-]?[a-zA-Z ]+)+$/,alertText:"* Must be first and last name"},zip:{regex:/^\d{5}$|^\d{5}-\d{4}$/,alertText:"* Invalid zip format"},integer:{regex:/^[\-\+]?\d+$/,alertText:"* Not a valid integer"},number:{regex:/^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,alertText:"* Invalid floating decimal number"},date:{func:function(n){var e=new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/),t=e.exec(n.val());if(t==null)return!1;var r=t[1],u=t[2]*1,f=t[3]*1,i=new Date(r,u-1,f);return i.getFullYear()==r&&i.getMonth()==u-1&&i.getDate()==f},alertText:"* Invalid date, must be in YYYY-MM-DD format"},ipv4:{regex:/^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,alertText:"* Invalid IP address"},url:{regex:/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,alertText:"* Invalid URL"},onlyNumberSp:{regex:/^[0-9\ ]+$/,alertText:"* Numbers only"},onlyLetterSp:{regex:/^[a-zA-Z\ \']+$/,alertText:"* Letters only"},onlyLetterAccentSp:{regex:/^[a-z\u00C0-\u017F\ ]+$/i,alertText:"* Letters only (accents allowed)"},onlyLetterNumber:{regex:/^[0-9a-zA-Z]+$/,alertText:"* No special characters allowed"},ajaxUserCall:{url:"ajaxValidateFieldUser",extraData:"name=eric",alertText:"* This user is already taken",alertTextLoad:"* Validating, please wait"},ajaxUserCallPhp:{url:"phpajax/ajaxValidateFieldUser.php",extraData:"name=eric",alertTextOk:"* This username is available",alertText:"* This user is already taken",alertTextLoad:"* Validating, please wait"},ajaxNameCall:{url:"ajaxValidateFieldName",alertText:"* This name is already taken",alertTextOk:"* This name is available",alertTextLoad:"* Validating, please wait"},ajaxNameCallPhp:{url:"phpajax/ajaxValidateFieldName.php",alertText:"* This name is already taken",alertTextLoad:"* Validating, please wait"},validate2fields:{alertText:"* Please input HELLO"},dateFormat:{regex:/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,alertText:"* Invalid Date"},dateTimeFormat:{regex:/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,alertText:"* Invalid Date or Date Format",alertText2:"Expected Format: ",alertText3:"mm/dd/yyyy hh:mm:ss AM|PM or ",alertText4:"yyyy-mm-dd hh:mm:ss AM|PM"}}}},n.validationEngineLanguage.newLang()}(jQuery),function(n){n.fn.validationEngineLanguage=function(){},n.validationEngineLanguage={newLang:function(){n.validationEngineLanguage.allRules={required:{regex:"none",alertText:"* Bu alan zorunludur",alertTextCheckboxMultiple:"* Lütfen bir seçeneği işaretleyiniz",alertTextCheckboxe:"* Bu onay kutusu zorunludur"},requiredInFunction:{func:function(n){return n.val()=="test"?!0:!1},alertText:"* Field must equal test"},minSize:{regex:"none",alertText:"* Bu alana en az ",alertText2:" karakter girmelisiniz "},maxSize:{regex:"none",alertText:"* Bu alana en fazla ",alertText2:" karakter girebilirsiniz"},groupRequired:{regex:"none",alertText:"* You must fill one of the following fields"},min:{regex:"none",alertText:"* Geçerli en küçük değer: "},max:{regex:"none",alertText:"* Geçerli en yüksek değer: "},past:{regex:"none",alertText:"* Lütfen ",alertText2:" tarihinden daha ileri bir tarih giriniz "},future:{regex:"none",alertText:"* Lütfen ",alertText2:" tarihinden daha geri bir tarih giriniz "},maxCheckbox:{regex:"none",alertText:"* En fazla ",alertText2:" onay kutusu işaretleyebilirsiniz"},minCheckbox:{regex:"none",alertText:"* Lütfen en az ",alertText2:" onay kutusunu işaretleyiniz"},equals:{regex:"none",alertText:"* Değerler aynı olmalı"},creditCard:{regex:"none",alertText:"* Geçersiz kredi kartı numarası"},phone:{regex:/^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,alertText:"* Geçersiz telefon numarası"},email:{regex:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,alertText:"* Geçersiz e-posta adresi"},integer:{regex:/^[\-\+]?\d+$/,alertText:"* Geçerli bir tam sayı değil"},number:{regex:/^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,alertText:"* Geçerli bir noktalı sayı değil"},date:{regex:/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,alertText:"* Geçersiz tarih. Tarih YYYY-MM-DD formatında olmalı"},ipv4:{regex:/^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,alertText:"* Geçersiz IP adresi"},url:{regex:/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,alertText:"* Geçersiz URL"},onlyNumberSp:{regex:/^[0-9\ ]+$/,alertText:"* Bu alanda sadece rakam olmalı"},onlyLetterSp:{regex:/^[a-zA-Z\ \']+$/,alertText:"* Bu alanda sadece harf olmalı"},onlyLetterAccentSp:{regex:/^[a-z\u00C0-\u017F\ \']+$/i,alertText:"* Bu alanda sadece harf olmalı"},onlyLetterNumber:{regex:/^[0-9a-zA-Z]+$/,alertText:"* Bu alanda özel karakterler olamaz"},ajaxUserCall:{url:"ajaxValidateFieldUser",extraData:"name=eric",alertText:"* Bu kullanıcı adı kullanımda",alertTextLoad:"* Doğrulanıyor, lütfen bekleyiniz"},ajaxUserCallPhp:{url:"phpajax/ajaxValidateFieldUser.php",extraData:"name=eric",alertTextOk:"* Bu kullanıcı adını kullanabilirsiniz",alertText:"* Bu kullanıcı adı kullanımda",alertTextLoad:"* Doğrulanıyor, lütfen bekleyiniz"},ajaxNameCall:{url:"ajaxValidateFieldName",alertText:"* Bu isim kullanımda",alertTextOk:"* Bu isim kullanılabilir",alertTextLoad:"* Doğrulanıyor, lütfen bekleyiniz"},ajaxNameCallPhp:{url:"phpajax/ajaxValidateFieldName.php",alertText:"* Bu isim kullanımda",alertTextLoad:"* Doğrulanıyor, lütfen bekleyiniz"},validate2fields:{alertText:"* Lütfen 'HELLO' yazın"}}}},n.validationEngineLanguage.newLang()}(jQuery),function(n,t,i,r){var p=i("html"),e=i(n),o=i(t),u=i.fancybox=function(){u.open.apply(this,arguments)},y=navigator.userAgent.match(/msie/i),v=null,s=t.createTouch!==r,a=function(n){return n&&n.hasOwnProperty&&n instanceof i},c=function(n){return n&&"string"===i.type(n)},l=function(n){return c(n)&&0 ',image:' ',iframe:'",error:'İçerik yüklenemedi. Lütfen daha sonra tekrar deneyiniz.
',closeBtn:' ',next:' ',prev:' '},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(n,t){if(n&&(i.isPlainObject(t)||(t={}),!1!==u.close(!0)))return i.isArray(n)||(n=a(n)?i(n).get():[n]),i.each(n,function(f,e){var h={},s,y,l,o,v;"object"===i.type(e)&&(e.nodeType&&(e=i(e)),a(e)?(h={href:e.data("fancybox-href")||e.attr("href"),title:e.data("fancybox-title")||e.attr("title"),isDom:!0,element:e},i.metadata&&i.extend(!0,h,e.metadata())):h=e),s=t.href||h.href||(c(e)?e:null),y=t.title!==r?t.title:h.title||"",o=(l=t.content||h.content)?"html":t.type||h.type,!o&&h.isDom&&(o=e.data("fancybox-type"),o||(o=(o=e.prop("class").match(/fancybox\.(\w+)/))?o[1]:null)),c(s)&&(o||(u.isImage(s)?o="image":u.isSWF(s)?o="swf":"#"===s.charAt(0)?o="inline":c(e)&&(o="html",l=e)),"ajax"===o&&(v=s.split(/\s+/,2),s=v.shift(),v=v.shift())),l||("inline"===o?s?l=i(c(s)?s.replace(/.*(?=#[^\s]+$)/,""):s):h.isDom&&(l=e):"html"===o?l=s:!o&&!s&&h.isDom&&(o="inline",l=e)),i.extend(h,{href:s,type:o,content:l,title:y,selector:v}),n[f]=h}),u.opts=i.extend(!0,{},u.defaults,t),t.keys!==r&&(u.opts.keys=t.keys?i.extend({},u.defaults.keys,t.keys):!1),u.group=n,u._start(u.opts.index)},cancel:function(){var n=u.coming;n&&!1!==u.trigger("onCancel")&&(u.hideLoading(),u.ajaxLoad&&u.ajaxLoad.abort(),u.ajaxLoad=null,u.imgPreload&&(u.imgPreload.onload=u.imgPreload.onerror=null),n.wrap&&n.wrap.stop(!0,!0).trigger("onReset").remove(),u.coming=null,u.current||u._afterZoomOut(n))},close:function(n){u.cancel(),!1!==u.trigger("beforeClose")&&(u.unbindEvents(),u.isActive&&(!u.isOpen||!0===n?(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),u._afterZoomOut()):(u.isOpen=u.isOpened=!1,u.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),u.wrap.stop(!0,!0).removeClass("fancybox-opened"),u.transitions[u.current.closeMethod]())))},play:function(n){var t=function(){clearTimeout(u.player.timer)},i=function(){t(),u.current&&u.player.isActive&&(u.player.timer=setTimeout(u.next,u.current.playSpeed))},r=function(){t(),o.unbind(".player"),u.player.isActive=!1,u.trigger("onPlayEnd")};!0!==n&&(u.player.isActive||!1===n)?r():u.current&&(u.current.loop||u.current.index=e.index?"next":"prev"],u.router=i||"jumpto",e.loop&&(0>n&&(n=e.group.length+n%e.group.length),n%=e.group.length),e.group[n]!==r&&(u.cancel(),u._start(n)))},reposition:function(n,t){var f=u.current,e=f?f.wrap:null,r;e&&(r=u._getPosition(t),n&&"scroll"===n.type?(delete r.position,e.stop(!0,!0).animate(r,200)):(e.css(r),f.pos=i.extend({},f.dim,r)))},update:function(n){var t=n&&n.type,i=!t||"orientationchange"===t;i&&(clearTimeout(v),v=null),u.isOpen&&!v&&(v=setTimeout(function(){var r=u.current;r&&!u.isClosing&&(u.wrap.removeClass("fancybox-tmp"),(i||"load"===t||"resize"===t&&r.autoResize)&&u._setDimension(),"scroll"===t&&r.canShrink||u.reposition(n),u.trigger("onUpdate"),v=null)},i&&!s?0:300))},toggle:function(n){u.isOpen&&(u.current.fitToView="boolean"===i.type(n)?n:!u.current.fitToView,s&&(u.wrap.removeAttr("style").addClass("fancybox-tmp"),u.trigger("onUpdate")),u.update())},hideLoading:function(){o.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var t,n;u.hideLoading(),t=i('').click(u.cancel).appendTo("body"),o.bind("keydown.loading",function(n){27===(n.which||n.keyCode)&&(n.preventDefault(),u.cancel())}),u.defaults.fixed||(n=u.getViewport(),t.css({position:"absolute",top:.5*n.h+n.y,left:.5*n.w+n.x}))},getViewport:function(){var i=u.current&&u.current.locked||!1,t={x:e.scrollLeft(),y:e.scrollTop()};return i?(t.w=i[0].clientWidth,t.h=i[0].clientHeight):(t.w=s&&n.innerWidth?n.innerWidth:e.width(),t.h=s&&n.innerHeight?n.innerHeight:e.height()),t},unbindEvents:function(){u.wrap&&a(u.wrap)&&u.wrap.unbind(".fb"),o.unbind(".fb"),e.unbind(".fb")},bindEvents:function(){var n=u.current,t;n&&(e.bind("orientationchange.fb"+(s?"":" resize.fb")+(n.autoCenter&&!n.locked?" scroll.fb":""),u.update),(t=n.keys)&&o.bind("keydown.fb",function(f){var e=f.which||f.keyCode,o=f.target||f.srcElement;if(27===e&&u.coming)return!1;!f.ctrlKey&&!f.altKey&&!f.shiftKey&&!f.metaKey&&(!o||!o.type&&!i(o).is("[contenteditable]"))&&i.each(t,function(t,o){return 1o[0].clientWidth||o[0].clientHeight&&o[0].scrollHeight>o[0].clientHeight),o=i(o).parent();0!==r&&!s&&1e||0>f)&&u.next(0>e?"up":"right"),t.preventDefault())}))},trigger:function(n,t){var f,r=t||u.coming||u.current;if(r){if(i.isFunction(r[n])&&(f=r[n].apply(r,Array.prototype.slice.call(arguments,1))),!1===f)return!1;r.helpers&&i.each(r.helpers,function(t,f){f&&u.helpers[t]&&i.isFunction(u.helpers[t][n])&&u.helpers[t][n](i.extend(!0,{},u.helpers[t].defaults,f),r)}),o.trigger(n)}},isImage:function(n){return c(n)&&n.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(n){return c(n)&&n.match(/\.(swf)((\?|#).*)?$/i)},_start:function(n){var t={},e,r;if(n=f(n),e=u.group[n]||null,!e)return!1;if(t=i.extend(!0,{},u.opts,e),e=t.margin,r=t.padding,"number"===i.type(e)&&(t.margin=[e,e,e,e]),"number"===i.type(r)&&(t.padding=[r,r,r,r]),t.modal&&i.extend(!0,t,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),t.autoSize&&(t.autoWidth=t.autoHeight=!0),"auto"===t.width&&(t.autoWidth=!0),"auto"===t.height&&(t.autoHeight=!0),t.group=u.group,t.index=n,u.coming=t,!1===u.trigger("beforeLoad"))u.coming=null;else{if(r=t.type,e=t.href,!r)return u.coming=null,u.current&&u.router&&"jumpto"!==u.router?(u.current.index=n,u[u.router](u.direction)):!1;if(u.isActive=!0,("image"===r||"swf"===r)&&(t.autoHeight=t.autoWidth=!1,t.scrolling="visible"),"image"===r&&(t.aspectRatio=!0),"iframe"===r&&s&&(t.scrolling="scroll"),t.wrap=i(t.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+r+" fancybox-tmp "+t.wrapCSS).appendTo(t.parent||"body"),i.extend(t,{skin:i(".fancybox-skin",t.wrap),outer:i(".fancybox-outer",t.wrap),inner:i(".fancybox-inner",t.wrap)}),i.each(["Top","Right","Bottom","Left"],function(n,i){t.skin.css("padding"+i,h(t.padding[n]))}),u.trigger("onReady"),"inline"===r||"html"===r){if(!t.content||!t.content.length)return u._error("content")}else if(!e)return u._error("href");"image"===r?u._loadImage():"ajax"===r?u._loadAjax():"iframe"===r?u._loadIframe():u._afterLoad()}},_error:function(n){i.extend(u.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:n,content:u.coming.tpl.error}),u._afterLoad()},_loadImage:function(){var n=u.imgPreload=new Image;n.onload=function(){this.onload=this.onerror=null,u.coming.width=this.width/u.opts.pixelRatio,u.coming.height=this.height/u.opts.pixelRatio,u._afterLoad()},n.onerror=function(){this.onload=this.onerror=null,u._error("image")},n.src=u.coming.href,!0!==n.complete&&u.showLoading()},_loadAjax:function(){var n=u.coming;u.showLoading(),u.ajaxLoad=i.ajax(i.extend({},n.ajax,{url:n.href,error:function(n,t){u.coming&&"abort"!==t?u._error("ajax",n):u.hideLoading()},success:function(t,i){"success"===i&&(n.content=t,u._afterLoad())}}))},_loadIframe:function(){var n=u.coming,t=i(n.tpl.iframe.replace(/\{rnd\}/g,+new Date)).attr("scrolling",s?"auto":n.iframe.scrolling).attr("src",n.href);i(n.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(n){}}),n.iframe.preload&&(u.showLoading(),t.one("load",function(){i(this).data("ready",1),s||i(this).bind("load.fb",u.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),u._afterLoad()})),n.content=t.appendTo(n.inner),n.iframe.preload||u._afterLoad()},_preloadImages:function(){for(var r=u.group,i=u.current,f=r.length,e=i.preload?Math.min(i.preload,f-1):0,n,t=1;t<=e;t+=1)n=r[(i.index+t)%f],"image"===n.type&&n.href&&((new Image).src=n.href)},_afterLoad:function(){var n=u.coming,r=u.current,t,s,f,e,o;if(u.hideLoading(),n&&!1!==u.isActive)if(!1===u.trigger("afterLoad",n,r))n.wrap.stop(!0).trigger("onReset").remove(),u.coming=null;else{r&&(u.trigger("beforeChange",r),r.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),u.unbindEvents(),t=n.content,s=n.type,f=n.scrolling,i.extend(u,{wrap:n.wrap,skin:n.skin,outer:n.outer,inner:n.inner,current:n,previous:r}),e=n.href;switch(s){case"inline":case"ajax":case"html":n.selector?t=i("").html(t).find(n.selector):a(t)&&(t.data("fancybox-placeholder")||t.data("fancybox-placeholder",i('
').insertAfter(t).hide()),t=t.show().detach(),n.wrap.bind("onReset",function(){i(this).find(t).length&&t.hide().replaceAll(t.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":t=n.tpl.image.replace("{href}",e);break;case"swf":t='
',o="",i.each(n.swf,function(n,i){t+=' ',o+=" "+n+'="'+i+'"'}),t+='"}(!a(t)||!t.parent().is(n.inner))&&n.inner.append(t),u.trigger("beforeShow"),n.inner.css("overflow","yes"===f?"scroll":"no"===f?"hidden":f),u._setDimension(),u.reposition(),u.isOpen=!1,u.coming=null,u.bindEvents(),u.isOpened?r.prevMethod&&u.transitions[r.prevMethod]():i(".fancybox-wrap").not(n.wrap).stop(!0).trigger("onReset").remove(),u.transitions[u.isOpened?n.nextMethod:n.openMethod](),u._preloadImages()}},_setDimension:function(){var o=u.getViewport(),ht=0,y=!1,n=!1,y=u.wrap,nt=u.skin,e=u.inner,r=u.current,n=r.width,t=r.height,a=r.minWidth,c=r.minHeight,v=r.maxWidth,s=r.maxHeight,st=r.scrolling,ft=r.scrollOutside?r.scrollbarWidth:0,p=r.margin,w=f(p[1]+p[3]),it=f(p[0]+p[2]),ot,k,rt,d,b,tt,et,g,ut;if(y.add(nt).add(e).width("auto").height("auto").removeClass("fancybox-tmp"),p=f(nt.outerWidth(!0)-nt.width()),ot=f(nt.outerHeight(!0)-nt.height()),k=w+p,rt=it+ot,d=l(n)?(o.w-k)*f(n)/100:n,b=l(t)?(o.h-rt)*f(t)/100:t,"iframe"===r.type){if(ut=r.content,r.autoHeight&&1===ut.data("ready"))try{ut[0].contentWindow.document.location&&(e.width(d).height(9999),tt=ut.contents().find("body"),ft&&tt.css("overflow-x","hidden"),b=tt.outerHeight(!0))}catch(ct){}}else(r.autoWidth||r.autoHeight)&&(e.addClass("fancybox-tmp"),r.autoWidth||e.width(d),r.autoHeight||e.height(b),r.autoWidth&&(d=e.width()),r.autoHeight&&(b=e.height()),e.removeClass("fancybox-tmp"));if(n=f(d),t=f(b),g=d/b,a=f(l(a)?f(a,"w")-k:a),v=f(l(v)?f(v,"w")-k:v),c=f(l(c)?f(c,"h")-rt:c),s=f(l(s)?f(s,"h")-rt:s),tt=v,et=s,r.fitToView&&(v=Math.min(o.w-k,v),s=Math.min(o.h-rt,s)),k=o.w-w,it=o.h-it,r.aspectRatio?(n>v&&(n=v,t=f(n/g)),t>s&&(t=s,n=f(t*g)),n
k||w>it)&&n>a&&t>c&&!(19v&&(n=v,t=f(n/g)),e.width(n).height(t),y.width(n+p),o=y.width(),w=y.height();else n=Math.max(a,Math.min(n,n-(o-k))),t=Math.max(c,Math.min(t,t-(w-it)));ft&&"auto"===st&&tk||w>it)&&n>a&&t>c,n=r.aspectRatio?nc&&t ').appendTo(u.coming?u.coming.parent:n.parent),this.fixed=!1,n.fixed&&u.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(n){var t=this;n=i.extend({},this.defaults,n),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(n),this.fixed||(e.bind("resize.overlay",i.proxy(this.update,this)),this.update()),n.closeClick&&this.overlay.bind("click.overlay",function(n){if(i(n.target).hasClass("fancybox-overlay"))return u.isActive?u.close():t.close(),!1}),this.overlay.css(n.css).show()},close:function(){var n,t;e.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),n=e.scrollTop(),t=e.scrollLeft(),this.el.removeClass("fancybox-lock"),e.scrollTop(n).scrollLeft(t)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var n="100%",i;this.overlay.width(n).height("100%"),y?(i=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),o.width()>i&&(n=o.width())):o.width()>e.width()&&(n=o.width()),this.overlay.width(n).height(o.height())},onReady:function(n,t){var r=this.overlay;i(".fancybox-overlay").stop(!0,!0),r||this.create(n),n.locked&&this.fixed&&t.fixed&&(r||(this.margin=o.height()>e.height()?i("html").css("margin-right").replace("px",""):!1),t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===n.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(n,t){var r,u;t.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),r=e.scrollTop(),u=e.scrollLeft(),this.el.addClass("fancybox-lock"),e.scrollTop(r).scrollLeft(u)),this.open(n)},onUpdate:function(){this.fixed||this.update()},afterClose:function(n){this.overlay&&!u.coming&&this.overlay.fadeOut(n.speedOut,i.proxy(this.close,this))}},u.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(n){var t=u.current,e=t.title,r=n.type;if(i.isFunction(e)&&(e=e.call(t.element,t)),c(e)&&""!==i.trim(e)){t=i(''+e+"
");switch(r){case"inside":r=u.skin;break;case"outside":r=u.wrap;break;case"over":r=u.inner;break;default:r=u.skin,t.appendTo("body"),y&&t.width(t.width()),t.wrapInner(' '),u.current.margin[2]+=Math.abs(f(t.css("margin-bottom")))}t["top"===n.position?"prependTo":"appendTo"](r)}}},i.fn.fancybox=function(n){var r,f=i(this),t=this.selector||"",e=function(e){var o=i(this).blur(),c=r,h,s;!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey&&!o.is(".fancybox-wrap")&&(h=n.groupAttr||"data-fancybox-group",s=o.attr(h),s||(h="rel",s=o.get(0)[h]),s&&""!==s&&"nofollow"!==s&&(o=t.length?i(t):f,o=o.filter("["+h+'="'+s+'"]'),c=o.index(this)),n.index=c,!1!==u.open(o,n)&&e.preventDefault())};return n=n||{},r=n.index||0,!t||!1===n.live?f.unbind("click.fb-start").bind("click.fb-start",e):o.undelegate(t,"click.fb-start").delegate(t+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e),this.filter("[data-fancybox-start=1]").trigger("click"),this},o.ready(function(){var f,t,e;i.scrollbarWidth===r&&(i.scrollbarWidth=function(){var t=i('').appendTo("body"),n=t.children(),n=n.innerWidth()-n.height(99).innerWidth();return t.remove(),n}),i.support.fixedPosition===r&&(f=i.support,t=i('
').appendTo("body"),e=20===t[0].offsetTop||15===t[0].offsetTop,t.remove(),f.fixedPosition=e),i.extend(u.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),f=i(n).width(),p.addClass("fancybox-lock-test"),t=i(n).width(),p.removeClass("fancybox-lock-test"),i("").appendTo("head")})}(window,document,jQuery),function(n){var t=n.fancybox;t.helpers.buttons={defaults:{skipSingle:!1,position:"top",tpl:''},list:null,buttons:null,beforeLoad:function(n,t){if(n.skipSingle&&t.group.length<2){t.helpers.buttons=!1,t.closeBtn=!0;return}t.margin[n.position==="bottom"?2:0]+=30},onPlayStart:function(){this.buttons&&this.buttons.play.attr("title","Pause slideshow").addClass("btnPlayOn")},onPlayEnd:function(){this.buttons&&this.buttons.play.attr("title","Start slideshow").removeClass("btnPlayOn")},afterShow:function(i,r){var u=this.buttons;u||(this.list=n(i.tpl).addClass(i.position).appendTo("body"),u={prev:this.list.find(".btnPrev").click(t.prev),next:this.list.find(".btnNext").click(t.next),play:this.list.find(".btnPlay").click(t.play),toggle:this.list.find(".btnToggle").click(t.toggle),close:this.list.find(".btnClose").click(t.close)}),r.index>0||r.loop?u.prev.removeClass("btnDisabled"):u.prev.addClass("btnDisabled"),r.loop||r.index0?"&":"?")+r),t};t.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"opaque",enablejsapi:1},type:"iframe",url:"//www.youtube.com/embed/$3"},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:"iframe",url:"//player.vimeo.com/video/$1"},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:"yes"},type:"swf",url:function(t,i,r){return r.swf.flashVars="playerVars="+n.param(i,!0),"//www.metacafe.com/fplayer/"+t[1]+"/.swf"}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"swf",url:"//www.dailymotion.com/swf/video/$1"},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:"iframe",url:"//www.twitvid.com/embed.php?guid=$1"},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:"image",url:"//twitpic.com/show/full/$1/"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:"iframe",url:function(n){return"//maps.google."+n[1]+"/"+n[3]+""+n[4]+"&output="+(n[4].indexOf("layer=c")>0?"svembed":"embed")}}},beforeLoad:function(t,r){var o=r.href||"",s=!1,f,u,e,h;for(f in t)if(t.hasOwnProperty(f)&&(u=t[f],e=o.match(u.matcher),e)){s=u.type,h=n.extend(!0,{},u.params,r[f]||(n.isPlainObject(t[f])?t[f].params:null)),o=n.type(u.url)==="function"?u.url.call(this,e,h,r):i(u.url,e,h);break}s&&(r.href=o,r.type=s,r.autoHeight=!1)}}}(jQuery),function(n){var t=n.fancybox;t.helpers.thumbs={defaults:{width:50,height:50,position:"bottom",source:function(t){var i;return t.element&&(i=n(t.element).find("img").attr("src")),!i&&t.type==="image"&&t.href&&(i=t.href),i}},wrap:null,list:null,width:0,init:function(t,i){for(var o=this,r=t.width,u=t.height,s=t.source,e="",f=0;f ';this.wrap=n('
').addClass(t.position).appendTo("body"),this.list=n("
").appendTo(this.wrap),n.each(i.group,function(t){var f=s(i.group[t]);f&&n("
").load(function(){var i=this.width,f=this.height,e,s,h;o.list&&i&&f&&(e=i/r,s=f/u,h=o.list.children().eq(t).find("a"),e>=1&&s>=1&&(e>s?(i=Math.floor(i/s),f=u):(i=r,f=Math.floor(f/e))),n(this).css({width:i,height:f,top:Math.floor(u/2-f/2),left:Math.floor(r/2-i/2)}),h.width(r).height(u),n(this).hide().appendTo(h).fadeIn(300))}).attr("src",f)}),this.width=this.list.children().eq(0).outerWidth(!0),this.list.width(this.width*(i.group.length+1)).css("left",Math.floor(n(window).width()*.5-(i.index*this.width+this.width*.5)))},beforeLoad:function(n,t){if(t.group.length<2){t.helpers.thumbs=!1;return}t.margin[n.position==="top"?0:2]+=n.height+15},afterShow:function(n,t){if(this.list)this.onUpdate(n,t);else this.init(n,t);this.list.children().removeClass("active").eq(t.index).addClass("active")},onUpdate:function(t,i){this.list&&this.list.stop(!0).animate({left:Math.floor(n(window).width()*.5-(i.index*this.width+this.width*.5))},150)},beforeClose:function(){this.wrap&&this.wrap.remove(),this.wrap=null,this.list=null,this.width=0}}}(jQuery),!function(n){var t={},r={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){}};n.fn.bxSlider=function(u){var f,e;if(0==this.length)return this;if(this.length>1)return this.each(function(){n(this).bxSlider(u)}),this;f={},e=this,t.el=this;var tt=n(window).width(),it=n(window).height(),rt=function(){f.settings=n.extend({},r,u),f.settings.slideWidth=parseInt(f.settings.slideWidth),f.children=e.children(f.settings.slideSelector),f.children.length
1||f.settings.maxSlides>1,f.carousel&&(f.settings.preloadImages="all"),f.minThreshold=f.settings.minSlides*f.settings.slideWidth+(f.settings.minSlides-1)*f.settings.slideMargin,f.maxThreshold=f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin,f.working=!1,f.controls={},f.interval=null,f.animProp="vertical"==f.settings.mode?"top":"left",f.usingCSS=f.settings.useCSS&&"fade"!=f.settings.mode&&function(){var i=document.createElement("div"),n=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(void 0!==i.style[n[t]])return f.cssPrefix=n[t].replace("Perspective","").toLowerCase(),f.animProp="-"+f.cssPrefix+"-transform",!0;return!1}(),"vertical"==f.settings.mode&&(f.settings.maxSlides=f.settings.minSlides),e.data("origStyle",e.attr("style")),e.children(f.settings.slideSelector).each(function(){n(this).data("origStyle",n(this).attr("style"))}),ht()},ht=function(){e.wrap(''),f.viewport=e.parent(),f.loader=n('
'),f.viewport.prepend(f.loader),e.css({width:"horizontal"==f.settings.mode?100*f.children.length+215+"%":"auto",position:"relative"}),f.usingCSS&&f.settings.easing?e.css("-"+f.cssPrefix+"-transition-timing-function",f.settings.easing):f.settings.easing||(f.settings.easing="swing"),h(),f.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),f.viewport.parent().css({maxWidth:kt()}),f.settings.pager||f.viewport.parent().css({margin:"0 auto 0px"}),f.children.css({float:"horizontal"==f.settings.mode?"left":"none",listStyle:"none",position:"relative"}),f.children.css("width",nt()),"horizontal"==f.settings.mode&&f.settings.slideMargin>0&&f.children.css("marginRight",f.settings.slideMargin),"vertical"==f.settings.mode&&f.settings.slideMargin>0&&f.children.css("marginBottom",f.settings.slideMargin),"fade"==f.settings.mode&&(f.children.css({position:"absolute",zIndex:0,display:"none"}),f.children.eq(f.settings.startSlide).css({zIndex:50,display:"block"})),f.controls.el=n('
'),f.settings.captions&&wt(),f.active.last=f.settings.startSlide==s()-1,f.settings.video&&e.fitVids();var t=f.children.eq(f.settings.startSlide);"all"==f.settings.preloadImages&&(t=f.children),f.settings.ticker?f.settings.pager=!1:(f.settings.pager&&dt(),f.settings.controls&&ni(),f.settings.auto&&f.settings.autoControls&&bt(),(f.settings.controls||f.settings.autoControls||f.settings.pager)&&f.viewport.after(f.controls.el)),ct(t,lt)},ct=function(t,i){var r=t.find("img, iframe").length,u;if(0==r)return i(),void 0;u=0,t.find("img, iframe").each(function(){n(this).one("load",function(){++u==r&&i()}).each(function(){this.complete&&n(this).load()})})},lt=function(){if(f.settings.infiniteLoop&&"fade"!=f.settings.mode&&!f.settings.ticker){var t="vertical"==f.settings.mode?f.settings.minSlides:f.settings.maxSlides,i=f.children.slice(0,t).clone().addClass("bx-clone"),r=f.children.slice(-t).clone().addClass("bx-clone");e.append(i).prepend(r)}f.loader.remove(),ut(),"vertical"==f.settings.mode&&(f.settings.adaptiveHeight=!0),f.viewport.height(l()),e.redrawSlider(),f.settings.onSliderLoad(f.active.index),f.initialized=!0,f.settings.responsive&&n(window).bind("resize",g),f.settings.auto&&f.settings.autoStart&&st(),f.settings.ticker&&ot(),f.settings.pager&&p(f.settings.startSlide),f.settings.controls&&b(),f.settings.touchEnabled&&!f.settings.ticker&&et()},l=function(){var r=0,t=n(),u;if("vertical"==f.settings.mode||f.settings.adaptiveHeight)if(f.carousel)for(u=1==f.settings.moveSlides?f.active.index:f.active.index*c(),t=f.children.eq(u),i=1;i<=f.settings.maxSlides-1;i++)t=u+i>=f.children.length?t.add(f.children.eq(i-1)):t.add(f.children.eq(u+i));else t=f.children.eq(f.active.index);else t=f.children;return"vertical"==f.settings.mode?(t.each(function(){r+=n(this).outerHeight()}),f.settings.slideMargin>0&&(r+=f.settings.slideMargin*(f.settings.minSlides-1))):r=Math.max.apply(Math,t.map(function(){return n(this).outerHeight(!1)}).get()),r},kt=function(){var n="100%";return f.settings.slideWidth>0&&(n="horizontal"==f.settings.mode?f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin:f.settings.slideWidth),n},nt=function(){var t=f.settings.slideWidth,n=f.viewport.width();return 0==f.settings.slideWidth||f.settings.slideWidth>n&&!f.carousel||"vertical"==f.settings.mode?t=n:f.settings.maxSlides>1&&"horizontal"==f.settings.mode&&(n>f.maxThreshold||n0?f.viewport.width()f.maxThreshold?n=f.settings.maxSlides:(t=f.children.first().width(),n=Math.floor(f.viewport.width()/t)):"vertical"==f.settings.mode&&(n=f.settings.minSlides),n},s=function(){var n=0,t,i;if(f.settings.moveSlides>0)if(f.settings.infiniteLoop)n=f.children.length/c();else for(t=0,i=0;t0&&f.settings.moveSlides<=h()?f.settings.moveSlides:h()},ut=function(){var t,i,n;f.children.length>f.settings.maxSlides&&f.active.last&&!f.settings.infiniteLoop?"horizontal"==f.settings.mode?(t=f.children.last(),n=t.position(),o(-(n.left-(f.viewport.width()-t.width())),"reset",0)):"vertical"==f.settings.mode&&(i=f.children.length-f.settings.minSlides,n=f.children.eq(i).position(),o(-n.top,"reset",0)):(n=f.children.eq(f.active.index*c()).position(),f.active.index==s()-1&&(f.active.last=!0),void 0!=n&&("horizontal"==f.settings.mode?o(-n.left,"reset",0):"vertical"==f.settings.mode&&o(-n.top,"reset",0)))},o=function(n,t,i,r){var u,s;f.usingCSS?(u="vertical"==f.settings.mode?"translate3d(0, "+n+"px, 0)":"translate3d("+n+"px, 0, 0)",e.css("-"+f.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==t?(e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),y()})):"reset"==t?e.css(f.animProp,u):"ticker"==t&&(e.css("-"+f.cssPrefix+"-transition-timing-function","linear"),e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),o(r.resetValue,"reset",0),a()}))):(s={},s[f.animProp]=n,"slide"==t?e.animate(s,i,f.settings.easing,function(){y()}):"reset"==t?e.css(f.animProp,n):"ticker"==t&&e.animate(s,speed,"linear",function(){o(r.resetValue,"reset",0),a()}))},d=function(){for(var i,r="",u=s(),t=0;u>t;t++)i="",f.settings.buildPager&&n.isFunction(f.settings.buildPager)?(i=f.settings.buildPager(t),f.pagerEl.addClass("bx-custom-pager")):(i=t+1,f.pagerEl.addClass("bx-default-pager")),r+='";f.pagerEl.html(r)},dt=function(){f.settings.pagerCustom?f.pagerEl=n(f.settings.pagerCustom):(f.pagerEl=n(''),f.settings.pagerSelector?n(f.settings.pagerSelector).html(f.pagerEl):f.controls.el.addClass("bx-has-pager").append(f.pagerEl),d()),f.pagerEl.delegate("a","click",gt)},ni=function(){f.controls.next=n(''+f.settings.nextText+" "),f.controls.prev=n(''+f.settings.prevText+" "),f.controls.next.bind("click",pt),f.controls.prev.bind("click",yt),f.settings.nextSelector&&n(f.settings.nextSelector).append(f.controls.next),f.settings.prevSelector&&n(f.settings.prevSelector).append(f.controls.prev),f.settings.nextSelector||f.settings.prevSelector||(f.controls.directionEl=n('
'),f.controls.directionEl.append(f.controls.prev).append(f.controls.next),f.controls.el.addClass("bx-has-controls-direction").append(f.controls.directionEl))},bt=function(){f.controls.start=n('"),f.controls.stop=n('"),f.controls.autoEl=n('
'),f.controls.autoEl.delegate(".bx-start","click",vt),f.controls.autoEl.delegate(".bx-stop","click",at),f.settings.autoControlsCombine?f.controls.autoEl.append(f.controls.start):f.controls.autoEl.append(f.controls.start).append(f.controls.stop),f.settings.autoControlsSelector?n(f.settings.autoControlsSelector).html(f.controls.autoEl):f.controls.el.addClass("bx-has-controls-auto").append(f.controls.autoEl),v(f.settings.autoStart?"stop":"start")},wt=function(){f.children.each(function(){var t=n(this).find("img:first").attr("title");void 0!=t&&(""+t).length&&n(this).append(''+t+"
")})},pt=function(n){f.settings.auto&&e.stopAuto(),e.goToNextSlide(),n.preventDefault()},yt=function(n){f.settings.auto&&e.stopAuto(),e.goToPrevSlide(),n.preventDefault()},vt=function(n){e.startAuto(),n.preventDefault()},at=function(n){e.stopAuto(),n.preventDefault()},gt=function(t){f.settings.auto&&e.stopAuto();var r=n(t.currentTarget),i=parseInt(r.attr("data-slide-index"));i!=f.active.index&&e.goToSlide(i),t.preventDefault()},p=function(t){var i=f.children.length;return"short"==f.settings.pagerType?(f.settings.maxSlides>1&&(i=Math.ceil(f.children.length/f.settings.maxSlides)),f.pagerEl.html(t+1+f.settings.pagerShortSeparator+i),void 0):(f.pagerEl.find("a").removeClass("active"),f.pagerEl.each(function(i,r){n(r).find("a").eq(t).addClass("active")}),void 0)},y=function(){if(f.settings.infiniteLoop){var n="";0==f.active.index?n=f.children.eq(0).position():f.active.index==s()-1&&f.carousel?n=f.children.eq((s()-1)*c()).position():f.active.index==f.children.length-1&&(n=f.children.eq(f.children.length-1).position()),"horizontal"==f.settings.mode?o(-n.left,"reset",0):"vertical"==f.settings.mode&&o(-n.top,"reset",0)}f.working=!1,f.settings.onSlideAfter(f.children.eq(f.active.index),f.oldIndex,f.active.index)},v=function(n){f.settings.autoControlsCombine?f.controls.autoEl.html(f.controls[n]):(f.controls.autoEl.find("a").removeClass("active"),f.controls.autoEl.find("a:not(.bx-"+n+")").addClass("active"))},b=function(){1==s()?(f.controls.prev.addClass("disabled"),f.controls.next.addClass("disabled")):!f.settings.infiniteLoop&&f.settings.hideControlOnEnd&&(0==f.active.index?(f.controls.prev.addClass("disabled"),f.controls.next.removeClass("disabled")):f.active.index==s()-1?(f.controls.next.addClass("disabled"),f.controls.prev.removeClass("disabled")):(f.controls.prev.removeClass("disabled"),f.controls.next.removeClass("disabled")))},st=function(){f.settings.autoDelay>0?setTimeout(e.startAuto,f.settings.autoDelay):e.startAuto(),f.settings.autoHover&&e.hover(function(){f.interval&&(e.stopAuto(!0),f.autoPaused=!0)},function(){f.autoPaused&&(e.startAuto(!0),f.autoPaused=null)})},ot=function(){var i=0,t;"next"==f.settings.autoDirection?e.append(f.children.clone().addClass("bx-clone")):(e.prepend(f.children.clone().addClass("bx-clone")),t=f.children.first().position(),i="horizontal"==f.settings.mode?-t.left:-t.top),o(i,"reset",0),f.settings.pager=!1,f.settings.controls=!1,f.settings.autoControls=!1,f.settings.tickerHover&&!f.usingCSS&&f.viewport.hover(function(){e.stop()},function(){var t=0;f.children.each(function(){t+="horizontal"==f.settings.mode?n(this).outerWidth(!0):n(this).outerHeight(!0)});var i=f.settings.speed/t,r="horizontal"==f.settings.mode?"left":"top",u=i*(t-Math.abs(parseInt(e.css(r))));a(u)}),a()},a=function(n){var t,i;speed=n?n:f.settings.speed,t={left:0,top:0},i={left:0,top:0},"next"==f.settings.autoDirection?t=e.find(".bx-clone").first().position():i=f.children.first().position();var r="horizontal"==f.settings.mode?-t.left:-t.top,u="horizontal"==f.settings.mode?-i.left:-i.top,s={resetValue:u};o(r,"ticker",speed,s)},et=function(){f.touch={start:{x:0,y:0},end:{x:0,y:0}},f.viewport.bind("touchstart",ft)},ft=function(n){if(f.working)n.preventDefault();else{f.touch.originalPos=e.position();var t=n.originalEvent;f.touch.start.x=t.changedTouches[0].pageX,f.touch.start.y=t.changedTouches[0].pageY,f.viewport.bind("touchmove",w),f.viewport.bind("touchend",k)}},w=function(n){var t=n.originalEvent,u=Math.abs(t.changedTouches[0].pageX-f.touch.start.x),e=Math.abs(t.changedTouches[0].pageY-f.touch.start.y),i,r;(3*u>e&&f.settings.preventDefaultSwipeX?n.preventDefault():3*e>u&&f.settings.preventDefaultSwipeY&&n.preventDefault(),"fade"!=f.settings.mode&&f.settings.oneToOneTouch)&&(i=0,"horizontal"==f.settings.mode?(r=t.changedTouches[0].pageX-f.touch.start.x,i=f.touch.originalPos.left+r):(r=t.changedTouches[0].pageY-f.touch.start.y,i=f.touch.originalPos.top+r),o(i,"reset",0))},k=function(n){var r,i,t;f.viewport.unbind("touchmove",w),r=n.originalEvent,i=0,(f.touch.end.x=r.changedTouches[0].pageX,f.touch.end.y=r.changedTouches[0].pageY,"fade"==f.settings.mode)?(t=Math.abs(f.touch.start.x-f.touch.end.x),t>=f.settings.swipeThreshold&&(f.touch.start.x>f.touch.end.x?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto())):(t=0,"horizontal"==f.settings.mode?(t=f.touch.end.x-f.touch.start.x,i=f.touch.originalPos.left):(t=f.touch.end.y-f.touch.start.y,i=f.touch.originalPos.top),!f.settings.infiniteLoop&&(0==f.active.index&&t>0||f.active.last&&0>t)?o(i,"reset",200):Math.abs(t)>=f.settings.swipeThreshold?(0>t?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto()):o(i,"reset",200)),f.viewport.unbind("touchend",k)},g=function(){var t=n(window).width(),i=n(window).height();(tt!=t||it!=i)&&(tt=t,it=i,e.redrawSlider())};return e.goToSlide=function(t,i){var h,r,a,v,u,w,k;f.working||f.active.index==t||((f.working=!0,f.oldIndex=f.active.index,f.active.index=0>t?s()-1:t>=s()?0:t,f.settings.onSlideBefore(f.children.eq(f.active.index),f.oldIndex,f.active.index),"next"==i?f.settings.onSlideNext(f.children.eq(f.active.index),f.oldIndex,f.active.index):"prev"==i&&f.settings.onSlidePrev(f.children.eq(f.active.index),f.oldIndex,f.active.index),f.active.last=f.active.index>=s()-1,f.settings.pager&&p(f.active.index),f.settings.controls&&b(),"fade"==f.settings.mode)?(f.settings.adaptiveHeight&&f.viewport.height()!=l()&&f.viewport.animate({height:l()},f.settings.adaptiveHeightSpeed),f.children.filter(":visible").fadeOut(f.settings.speed).css({zIndex:0}),f.children.eq(f.active.index).css("zIndex",51).fadeIn(f.settings.speed,function(){n(this).css("zIndex",50),y()})):(f.settings.adaptiveHeight&&f.viewport.height()!=l()&&f.viewport.animate({height:l()},f.settings.adaptiveHeightSpeed),h=0,r={left:0,top:0},!f.settings.infiniteLoop&&f.carousel&&f.active.last?"horizontal"==f.settings.mode?(u=f.children.eq(f.children.length-1),r=u.position(),h=f.viewport.width()-u.outerWidth()):(a=f.children.length-f.settings.minSlides,r=f.children.eq(a).position()):f.carousel&&f.active.last&&"prev"==i?(v=1==f.settings.moveSlides?f.settings.maxSlides-c():(s()-1)*c()-(f.children.length-f.settings.maxSlides),u=e.children(".bx-clone").eq(v),r=u.position()):"next"==i&&0==f.active.index?(r=e.find("> .bx-clone").eq(f.settings.maxSlides).position(),f.active.last=!1):t>=0&&(w=t*c(),r=f.children.eq(w).position()),"undefined"!=typeof r&&(k="horizontal"==f.settings.mode?-(r.left-h):-r.top,o(k,"slide",f.settings.speed))))},e.goToNextSlide=function(){if(f.settings.infiniteLoop||!f.active.last){var n=parseInt(f.active.index)+1;e.goToSlide(n,"next")}},e.goToPrevSlide=function(){if(f.settings.infiniteLoop||0!=f.active.index){var n=parseInt(f.active.index)-1;e.goToSlide(n,"prev")}},e.startAuto=function(n){f.interval||(f.interval=setInterval(function(){"next"==f.settings.autoDirection?e.goToNextSlide():e.goToPrevSlide()},f.settings.pause),f.settings.autoControls&&1!=n&&v("stop"))},e.stopAuto=function(n){f.interval&&(clearInterval(f.interval),f.interval=null,f.settings.autoControls&&1!=n&&v("start"))},e.getCurrentSlide=function(){return f.active.index},e.getSlideCount=function(){return f.children.length},e.redrawSlider=function(){f.children.add(e.find(".bx-clone")).outerWidth(nt()),f.viewport.css("height",l()),f.settings.ticker||ut(),f.active.last&&(f.active.index=s()-1),f.active.index>=s()&&(f.active.last=!0),f.settings.pager&&!f.settings.pagerCustom&&(d(),p(f.active.index))},e.destroySlider=function(){f.initialized&&(f.initialized=!1,n(".bx-clone",this).remove(),f.children.each(function(){void 0!=n(this).data("origStyle")?n(this).attr("style",n(this).data("origStyle")):n(this).removeAttr("style")}),void 0!=n(this).data("origStyle")?this.attr("style",n(this).data("origStyle")):n(this).removeAttr("style"),n(this).unwrap().unwrap(),f.controls.el&&f.controls.el.remove(),f.controls.next&&f.controls.next.remove(),f.controls.prev&&f.controls.prev.remove(),f.pagerEl&&f.pagerEl.remove(),n(".bx-caption",this).remove(),f.controls.autoEl&&f.controls.autoEl.remove(),clearInterval(f.interval),f.settings.responsive&&n(window).unbind("resize",g))},e.reloadSlider=function(n){void 0!=n&&(u=n),e.destroySlider(),rt()},rt(),this}}(jQuery),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:6,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX,e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.sqrt((o-f)*(o-f)+(s-e)*(s-e))").html(t))},getState:function(){return paused?2:this.state},checkSpeed:function(){this.options.duration0)){var u=t.originalEvent?t.originalEvent:t,f,e=r?u.touches[0]:u;return(ht=nt,r?ct=u.touches.length:t.preventDefault(),at=0,vt=null,wt=null,lt=0,kt=0,gt=0,pt=1,bt=0,st=hu(),oi=ru(),cr(),!r||ct===ft.fingers||ft.fingers===a||ui()?(er(0,e),rr=ni(),ct==2&&(er(1,u.touches[1]),kt=gt=yi(st[0].start,st[1].start)),(ft.swipeStatus||ft.pinchStatus)&&(f=yt(u,ht))):f=!1,f===!1)?(ht=i,yt(u,ht),f):(ft.hold&&(ir=setTimeout(n.proxy(function(){et.trigger("hold",[u.target]),ft.hold&&(f=ft.hold.call(et,u,u.target))},this),ft.longTapThreshold)),ei(!0),null)}}function nr(n){var u=n.originalEvent?n.originalEvent:n,o,h,f,e,c;ht===t||ht===i||sr()||(h=r?u.touches[0]:u,f=pr(h),si=ni(),r&&(ct=u.touches.length),ft.hold&&clearTimeout(ir),ht=s,ct==2&&(kt==0?(er(1,u.touches[1]),kt=gt=yi(st[0].start,st[1].start)):(pr(u.touches[1]),gt=yi(st[0].end,st[1].end),wt=eu(st[0].end,st[1].end)),pt=fu(kt,gt),bt=Math.abs(kt-gt)),ct===ft.fingers||ft.fingers===a||!r||ui()?(vt=su(f.start,f.end),cu(n,vt),at=ou(f.start,f.end),lt=ar(),iu(vt,at),(ft.swipeStatus||ft.pinchStatus)&&(o=yt(u,ht)),(!ft.triggerOnTouchEnd||ft.triggerOnTouchLeave)&&(e=!0,ft.triggerOnTouchLeave&&(c=tu(this),e=tf(f.end,c)),!ft.triggerOnTouchEnd&&e?ht=bi(s):ft.triggerOnTouchLeave&&!e&&(ht=bi(t)),(ht==i||ht==t)&&yt(u,ht))):(ht=i,yt(u,ht)),o===!1&&(ht=i,yt(u,ht)))}function gi(n){var u=n.originalEvent;return r&&u.touches.length>0?(au(),!0):(sr()&&(ct=ki),si=ni(),lt=ar(),pi()||!wi()?(ht=i,yt(u,ht)):ft.triggerOnTouchEnd||ft.triggerOnTouchEnd==!1&&ht===s?(n.preventDefault(),ht=t,yt(u,ht)):!ft.triggerOnTouchEnd&&gr()?(ht=t,ii(u,ht,v)):ht===s&&(ht=i,yt(u,ht)),ei(!1),null)}function ri(){ct=0,si=0,rr=0,kt=0,gt=0,pt=1,cr(),ei(!1)}function di(n){var i=n.originalEvent;ft.triggerOnTouchLeave&&(ht=bi(t),yt(i,ht))}function vr(){et.unbind(li,tr),et.unbind(hi,ri),et.unbind(fr,nr),et.unbind(ur,gi),ti&&et.unbind(ti,di),ei(!1)}function bi(n){var r=n,f=br(),u=wi(),e=pi();return!f||e?r=i:u&&n==s&&(!ft.triggerOnTouchEnd||ft.triggerOnTouchLeave)?r=t:!u&&n==t&&ft.triggerOnTouchLeave&&(r=i),r}function yt(n,u){var f=undefined;return gu()||kr()?f=ii(n,u,g):(nf()||ui())&&f!==!1&&(f=ii(n,u,it)),yu()&&f!==!1?f=ii(n,u,rt):vu()&&f!==!1?f=ii(n,u,d):pu()&&f!==!1&&(f=ii(n,u,v)),u===i&&ri(n),u===t&&(r?n.touches.length==0&&ri(n):ri(n)),f}function ii(r,s,h){var c=undefined;if(h==g){if(et.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,st]),ft.swipeStatus&&(c=ft.swipeStatus.call(et,r,s,vt||null,at||0,lt||0,ct,st),c===!1))return!1;if(s==t&&dr()){if(et.trigger("swipe",[vt,at,lt,ct,st]),ft.swipe&&(c=ft.swipe.call(et,r,vt,at,lt,ct,st),c===!1))return!1;switch(vt){case u:et.trigger("swipeLeft",[vt,at,lt,ct,st]),ft.swipeLeft&&(c=ft.swipeLeft.call(et,r,vt,at,lt,ct,st));break;case f:et.trigger("swipeRight",[vt,at,lt,ct,st]),ft.swipeRight&&(c=ft.swipeRight.call(et,r,vt,at,lt,ct,st));break;case e:et.trigger("swipeUp",[vt,at,lt,ct,st]),ft.swipeUp&&(c=ft.swipeUp.call(et,r,vt,at,lt,ct,st));break;case o:et.trigger("swipeDown",[vt,at,lt,ct,st]),ft.swipeDown&&(c=ft.swipeDown.call(et,r,vt,at,lt,ct,st))}}}if(h==it){if(et.trigger("pinchStatus",[s,wt||null,bt||0,lt||0,ct,pt,st]),ft.pinchStatus&&(c=ft.pinchStatus.call(et,r,s,wt||null,bt||0,lt||0,ct,pt,st),c===!1))return!1;if(s==t&&nu())switch(wt){case k:et.trigger("pinchIn",[wt||null,bt||0,lt||0,ct,pt,st]),ft.pinchIn&&(c=ft.pinchIn.call(et,r,wt||null,bt||0,lt||0,ct,pt,st));break;case b:et.trigger("pinchOut",[wt||null,bt||0,lt||0,ct,pt,st]),ft.pinchOut&&(c=ft.pinchOut.call(et,r,wt||null,bt||0,lt||0,ct,pt,st))}}return h==v?(s===i||s===t)&&(clearTimeout(fi),clearTimeout(ir),or()&&!ku()?(dt=ni(),fi=setTimeout(n.proxy(function(){dt=null,et.trigger("tap",[r.target]),ft.tap&&(c=ft.tap.call(et,r,r.target))},this),ft.doubleTapThreshold)):(dt=null,et.trigger("tap",[r.target]),ft.tap&&(c=ft.tap.call(et,r,r.target)))):h==rt?(s===i||s===t)&&(clearTimeout(fi),dt=null,et.trigger("doubletap",[r.target]),ft.doubleTap&&(c=ft.doubleTap.call(et,r,r.target))):h==d&&(s===i||s===t)&&(clearTimeout(fi),dt=null,et.trigger("longtap",[r.target]),ft.longTap&&(c=ft.longTap.call(et,r,r.target))),c}function wi(){var n=!0;return ft.threshold!==null&&(n=at>=ft.threshold),n}function pi(){var n=!1;return ft.cancelThreshold!==null&&vt!==null&&(n=lr(vt)-at>=ft.cancelThreshold),n}function rf(){return ft.pinchThreshold!==null?bt>=ft.pinchThreshold:!0}function br(){var n;return n=ft.maxTimeThreshold?lt>=ft.maxTimeThreshold?!1:!0:!0}function cu(n,t){if(ft.allowPageScroll===w||ui())n.preventDefault();else{var i=ft.allowPageScroll===tt;switch(t){case u:(ft.swipeLeft&&i||!i&&ft.allowPageScroll!=y)&&n.preventDefault();break;case f:(ft.swipeRight&&i||!i&&ft.allowPageScroll!=y)&&n.preventDefault();break;case e:(ft.swipeUp&&i||!i&&ft.allowPageScroll!=p)&&n.preventDefault();break;case o:(ft.swipeDown&&i||!i&&ft.allowPageScroll!=p)&&n.preventDefault()}}}function nu(){var n=wr(),t=yr(),i=rf();return n&&t&&i}function ui(){return!!(ft.pinchStatus||ft.pinchIn||ft.pinchOut)}function nf(){return!!(nu()&&ui())}function dr(){var n=br(),t=wi(),i=wr(),r=yr(),u=pi();return!u&&r&&i&&t&&n}function kr(){return!!(ft.swipe||ft.swipeStatus||ft.swipeLeft||ft.swipeRight||ft.swipeUp||ft.swipeDown)}function gu(){return!!(dr()&&kr())}function wr(){return ct===ft.fingers||ft.fingers===a||!r}function yr(){return st[0].end.x!==0}function gr(){return!!ft.tap}function or(){return!!ft.doubleTap}function du(){return!!ft.longTap}function hr(){if(dt==null)return!1;var n=ni();return or()&&n-dt<=ft.doubleTapThreshold}function ku(){return hr()}function bu(){return(ct===1||!r)&&(isNaN(at)||atft.longTapThreshold&&at=0?u:i<=360&&i>=315?u:i>=135&&i<=225?f:i>45&&i<135?o:e}function ni(){var n=new Date;return n.getTime()}function tu(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function tf(n,t){return n.x>t.left&&n.xt.top&&n.y "),r.parents(".simplePagerContainer").find("ul.simplePagerNav").remove(),r.children().each(function(i){i=(f-1)*t.pageSize?n(this).addClass("simplePagerPage"+f):(n(this).addClass("simplePagerPage"+(f+1)),f++)}),r.children().hide(),r.children(".simplePagerPage"+t.currentPage).css("display","block"),!(f<=1)){for(u="",t.holder)n(t.holder).append(u);else switch(t.pagerLocation){case"before":r.before(u);break;case"both":r.before(u),r.after(u);break;default:r.after(u)}r.parent().find(".simplePagerNav a").hover(function(){var i=n(this).attr("rel");return t.currentPage=i,t.holder?(n(this).parent("li").parent("ul").parent(t.holder).find("li.currentPage").removeClass("currentPage"),n(this).parent("li").parent("ul").parent(t.holder).find("a[rel='"+i+"']").parent("li").addClass("currentPage")):(n(this).parent("li").parent("ul").parent(".simplePagerContainer").find("li.currentPage").removeClass("currentPage"),n(this).parent("li").parent("ul").parent(".simplePagerContainer").find("a[rel='"+i+"']").parent("li").addClass("currentPage")),r.children().hide(),r.find(".simplePagerPage"+i).css("display","block"),!1}),r.parent().find(".simplePagerNav a").click(function(n){n.preventDefault()})}})}}(jQuery),function(){var t,n;t=this.jQuery||window.jQuery,n=t(window),t.fn.stick_in_parent=function(i){var s,e,a,h,c,v,r,u,o,l,f;for(null==i&&(i={}),f=i.sticky_class,c=i.inner_scrolling,l=i.recalc_every,o=i.parent,u=i.offset_top,r=i.spacer,e=i.bottoming,null==u&&(u=0),null==o&&(o=void 0),null==c&&(c=!0),null==f&&(f="is_stuck"),s=t(document),null==e&&(e=!0),a=function(i,h,a,v,y,p,w,b){var it,st,nt,et,ot,g,k,rt,ut,ft,d,tt;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),ot=s.height(),k=i.parent(),null!=o&&(k=k.closest(o)),!k.length)throw"failed to find stick parent";if(it=nt=!1,(d=null!=r?r&&i.closest(r):t("
"))&&d.css("position",i.css("position")),rt=function(){var n,t,e;if(!b&&(ot=s.height(),n=parseInt(k.css("border-top-width"),10),t=parseInt(k.css("padding-top"),10),h=parseInt(k.css("padding-bottom"),10),a=k.offset().top+n+t,v=k.height(),nt&&(it=nt=!1,null==r&&(i.insertAfter(d),d.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(f),e=!0),y=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-u,p=i.outerHeight(!0),w=i.css("float"),d&&d.css({width:i.outerWidth(!0),height:p,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:w}),e))return tt()},rt(),p!==v)return et=void 0,g=u,ft=l,tt=function(){var o,ut,t,tt;if(!b&&(t=!1,null!=ft&&(--ft,0>=ft&&(ft=l,rt(),t=!0)),t||s.height()===ot||rt(),t=n.scrollTop(),null!=et&&(ut=t-et),et=t,nt?(e&&(tt=t+p+g>v+a,it&&!tt&&(it=!1,i.css({position:"fixed",bottom:"",top:g}).trigger("sticky_kit:unbottom"))),to&&!it&&(g-=ut,g=Math.max(o-p,g),g=Math.min(u,g),nt&&i.css({top:g+"px"})))):t>y&&(nt=!0,o={position:"fixed",top:g},o.width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(o).addClass(f),null==r&&(i.after(d),"left"!==w&&"right"!==w||d.append(i)),i.trigger("sticky_kit:stick")),nt&&e&&(null==tt&&(tt=t+p+g>v+a),!it&&tt)))return it=!0,"static"===k.css("position")&&k.css({position:"relative"}),i.css({position:"absolute",bottom:h,top:"auto"}).trigger("sticky_kit:bottom")},ut=function(){return rt(),tt()},st=function(){return b=!0,n.off("touchmove",tt),n.off("scroll",tt),n.off("resize",ut),t(document.body).off("sticky_kit:recalc",ut),i.off("sticky_kit:detach",st),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),k.position("position",""),nt?(null==r&&("left"!==w&&"right"!==w||i.insertAfter(d),d.remove()),i.removeClass(f)):void 0},n.on("touchmove",tt),n.on("scroll",tt),n.on("resize",ut),t(document.body).on("sticky_kit:recalc",ut),i.on("sticky_kit:detach",st),setTimeout(tt,0)}},h=0,v=this.length;ht?i=" > ":n==t&&(i=" = "),i}r("[TextFill] "+n+" { font-size: "+t.css("font-size")+",Height: "+t.height()+"px "+o(t.height(),i)+i+"px,Width: "+t.width()+o(t.width(),u)+u+",minFontPixels: "+f+"px, maxFontPixels: "+e+"px }")}function f(n,t,i,r,f,e,o,s){for(u(n,t,f,e,o,s);o=i.maxFontPixels?u:i.maxFontPixels,v=void 0;i.widthOnly||(v=f("Height",t,n.fn.height,u,u,o,s,a)),h=void 0,h=f("Width",t,n.fn.width,o,u,o,s,a),i.widthOnly?(t.css({"font-size":h,"white-space":"nowrap"}),i.changeLineHeight&&t.parent().css("line-height",l*h+"px")):(s=Math.min(v,h),t.css("font-size",s),i.changeLineHeight&&t.parent().css("line-height",l*s+"px")),r("[TextFill] Finished { Old font-size: "+c+", New font-size: "+t.css("font-size")+" }"),t.width()>o||t.height()>u&&!i.widthOnly?(t.css("font-size",c),i.fail&&i.fail(this),r("[TextFill] Failure { Current Width: "+t.width()+", Maximum Width: "+o+", Current Height: "+t.height()+", Maximum Height: "+u+" }")):i.success?i.success(this):i.callback&&(e("callback is deprecated, use success, instead"),i.callback(this))}),i.complete&&i.complete(this),r("[TextFill] End Debug"),this}}(window.jQuery),!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){"use strict";function f(n){if(n instanceof Date)return n;if(String(n).match(t))return String(n).match(/^[0-9]*$/)&&(n=Number(n)),String(n).match(/\-/)&&(n=String(n).replace(/\-/g,"/")),new Date(n);throw new Error("Couldn't cast `"+n+"` to a date object.");}function e(n){return function(t){var e=t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi),f,s;if(e)for(f=0,s=e.length;s>f;++f){var r=e[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),c=new RegExp(r[0]),h=r[1]||"",l=r[3]||"",i=null;r=r[2],u.hasOwnProperty(r)&&(i=u[r],i=Number(n[i])),null!==i&&("!"===h&&(i=o(l,i)),""===h&&10>i&&(i="0"+i.toString()),t=t.replace(c,i.toString()))}return t=t.replace(/%%/,"%")}}function o(n,t){var i="s",r="";return n&&(n=n.replace(/(:|;|\s)/gi,"").split(/\,/),1===n.length?i=n[0]:(r=n[0],i=n[1])),1===Math.abs(t)?r:i}var s=100,i=[],t=[],u,r;t.push(/^[0-9]*$/.source),t.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),t.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),t=new RegExp(t.join("|")),u={Y:"years",m:"months",w:"weeks",d:"days",D:"totalDays",H:"hours",M:"minutes",S:"seconds"},r=function(t,r,u){this.el=t,this.$el=n(t),this.interval=null,this.offset={},this.instanceNumber=i.length,i.push(this),this.$el.data("countdown-instance",this.instanceNumber),u&&(this.$el.on("update.countdown",u),this.$el.on("stoped.countdown",u),this.$el.on("finish.countdown",u)),this.setFinalDate(r),this.start()},n.extend(r.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var n=this;this.update(),this.interval=setInterval(function(){n.update.call(n)},s)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},pause:function(){this.stop.call(this)},resume:function(){this.start.call(this)},remove:function(){this.stop(),i[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(n){this.finalDate=f(n)},update:function(){return 0===this.$el.closest("html").length?void this.remove():(this.totalSecsLeft=this.finalDate.getTime()-+new Date,this.totalSecsLeft=Math.ceil(this.totalSecsLeft/1e3),this.totalSecsLeft=this.totalSecsLeft<0?0:this.totalSecsLeft,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/3600)%24,days:Math.floor(this.totalSecsLeft/86400)%7,totalDays:Math.floor(this.totalSecsLeft/86400),weeks:Math.floor(this.totalSecsLeft/604800),months:Math.floor(this.totalSecsLeft/2592e3),years:Math.floor(this.totalSecsLeft/31536e3)},void(0===this.totalSecsLeft?(this.stop(),this.dispatchEvent("finish")):this.dispatchEvent("update")))},dispatchEvent:function(t){var i=n.Event(t+".countdown");i.finalDate=this.finalDate,i.offset=n.extend({},this.offset),i.strftime=e(this.offset),this.$el.trigger(i)}}),n.fn.countdown=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){var e=n(this).data("countdown-instance"),u,f;void 0!==e?(u=i[e],f=t[0],r.prototype.hasOwnProperty(f)?u[f].apply(u,t.slice(1)):null===String(f).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(u.setFinalDate.call(u,f),u.start()):n.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,f))):new r(this,t[0],t[1])})}}),function(n,t){typeof define=="function"&&define.amd?define(t):typeof exports=="object"?module.exports=t():n.NProgress=t()}(this,function(){function u(n,t,i){return ni?i:n}function r(n){return(-1+n)*100}function l(n,i,u){var f;return f=t.positionUsing==="translate3d"?{transform:"translate3d("+r(n)+"%,0,0)"}:t.positionUsing==="translate"?{transform:"translate("+r(n)+"%,0)"}:{"margin-left":r(n)+"%"},f.transition="all "+i+"ms "+u,f}function o(n,t){var i=typeof n=="string"?n:f(n);return i.indexOf(" "+t+" ")>=0}function s(n,t){var i=f(n),r=i+t;o(i,t)||(n.className=r.substring(1))}function h(n,t){var r=f(n),i;o(n,t)&&(i=r.replace(" "+t+" "," "),n.className=i.substring(1,i.length-1))}function f(n){return(" "+(n.className||"")+" ").replace(/\s+/gi," ")}function c(n){n&&n.parentNode&&n.parentNode.removeChild(n)}var n={},t,e,i;return n.version="0.2.0",t=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:''},n.configure=function(n){var i,r;for(i in n)r=n[i],r!==undefined&&n.hasOwnProperty(i)&&(t[i]=r);return this},n.status=null,n.set=function(r){var s=n.isStarted();r=u(r,t.minimum,1),n.status=r===1?null:r;var f=n.render(!s),h=f.querySelector(t.barSelector),o=t.speed,c=t.easing;return f.offsetWidth,e(function(u){t.positionUsing===""&&(t.positionUsing=n.getPositioningCSS()),i(h,l(r,o,c)),r===1?(i(f,{transition:"none",opacity:1}),f.offsetWidth,setTimeout(function(){i(f,{transition:"all "+o+"ms linear",opacity:0}),setTimeout(function(){n.remove(),u()},o)},o)):setTimeout(u,o)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var i=function(){setTimeout(function(){n.status&&(n.trickle(),i())},t.trickleSpeed)};return t.trickle&&i(),this},n.done=function(t){return!t&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(t){var i=n.status;return i?(typeof t!="number"&&(t=(1-i)*u(Math.random()*i,.1,.95)),i=u(i+t,0,.994),n.set(i)):n.start()},n.trickle=function(){return n.inc(Math.random()*t.trickleRate)},function(){var i=0,t=0;n.promise=function(r){return!r||r.state()==="resolved"?this:(t===0&&n.start(),i++,t++,r.always(function(){t--,t===0?(i=0,n.done()):n.set((i-t)/i)}),this)}}(),n.render=function(u){var f;if(n.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy"),f=document.createElement("div"),f.id="nprogress",f.innerHTML=t.template;var h=f.querySelector(t.barSelector),l=u?"-100":r(n.status||0),e=document.querySelector(t.parent),o;return i(h,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=f.querySelector(t.spinnerSelector),o&&c(o)),e!=document.body&&s(e,"nprogress-custom-parent"),e.appendChild(f),f},n.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(t.parent),"nprogress-custom-parent");var n=document.getElementById("nprogress");n&&c(n)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var n=document.body.style,t="WebkitTransform"in n?"Webkit":"MozTransform"in n?"Moz":"msTransform"in n?"ms":"OTransform"in n?"O":"";return t+"Perspective"in n?"translate3d":t+"Transform"in n?"translate":"margin"},e=function(){function t(){var i=n.shift();i&&i(t)}var n=[];return function(i){n.push(i),n.length==1&&t()}}(),i=function(){function r(n){return n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()})}function u(t){var u=document.body.style,i,f,r;if(t in u)return t;for(i=n.length,f=t.charAt(0).toUpperCase()+t.slice(1);i--;)if(r=n[i]+f,r in u)return r;return t}function f(n){return n=r(n),t[n]||(t[n]=u(n))}function i(n,t,i){t=f(t),n.style[t]=i}var n=["Webkit","O","Moz","ms"],t={};return function(n,t){var u=arguments,r,f;if(u.length==2)for(r in t)f=t[r],f!==undefined&&t.hasOwnProperty(r)&&i(n,r,f);else i(n,u[1],u[2])}}(),n}),function(n,t,i,r){"use strict";var it,ht,w,d,y,ct,l,rt,tt,nt,ot,ft,v,e,et,b,c,g,st,u,s,p,f,a,ut,h,k,o=[].indexOf||function(n){for(var t=0,i=this.length;t\n
\n
\n ',css:"."+u+"-corner {\n position: fixed;\n margin: 5px;\n z-index: 1050;\n}\n\n."+u+"-corner ."+u+"-wrapper,\n."+u+"-corner ."+u+"-container {\n position: relative;\n display: block;\n height: inherit;\n width: inherit;\n margin: 3px;\n}\n\n."+u+"-wrapper {\n z-index: 1;\n position: absolute;\n display: inline-block;\n height: 0;\n width: 0;\n}\n\n."+u+"-container {\n display: none;\n z-index: 1;\n position: absolute;\n}\n\n."+u+"-hidable {\n cursor: pointer;\n}\n\n[data-notify-text],[data-notify-html] {\n position: relative;\n}\n\n."+u+"-arrow {\n position: absolute;\n z-index: 2;\n width: 0;\n height: 0;\n}"},ut={"border-radius":["-webkit-","-moz-"]},ot=function(n){return h[n]},ht=function(t,r){var f,o,e,c;if(!t)throw"Missing Style name";if(!r)throw"Missing Style definition";if(!r.html)throw"Missing Style HTML";return((c=h[t])!=null?c.cssElem:void 0)&&(n.console&&console.warn(""+s+": overwriting style '"+t+"'"),h[t].cssElem.remove()),r.name=t,h[t]=r,f="",r.classes&&i.each(r.classes,function(n,t){return f+="."+u+"-"+r.name+"-"+n+" {\n",i.each(t,function(n,t){return ut[n]&&i.each(ut[n],function(i,r){return f+=" "+r+n+": "+t+";\n"}),f+=" "+n+": "+t+";\n"}),f+="}\n"}),r.css&&(f+="/* styles for "+r.name+" */\n"+r.css),f&&(r.cssElem=b(f),r.cssElem.attr("id","notify-"+r.name)),e={},o=i(r.html),tt("html",o,e),tt("text",o,e),r.fields=e},b=function(n){var t;t=y("style"),t.attr("type","text/css"),i("head").append(t);try{t.html(n)}catch(r){t[0].styleSheet.cssText=n}return t},tt=function(n,t,r){var u;return n!=="html"&&(n="text"),u="data-notify-"+n,rt(t,"["+u+"]").each(function(){var t;return t=i(this).attr(u),t||(t=w),r[t]=n})},rt=function(n,t){return n.is(t)?n:n.find(t)},p={clickToHide:!0,autoHide:!0,autoHideDelay:8e3,arrowShow:!0,arrowSize:5,breakNewLines:!0,elementPosition:"bottom",globalPosition:"top right",style:"bootstrap",className:"error",showAnimation:"slideDown",showDuration:400,hideAnimation:"slideUp",hideDuration:200,gap:5},et=function(n,t){var r;return r=function(){},r.prototype=n,i.extend(!0,new r,t)},ct=function(n){return i.extend(p,n)},y=function(n){return i("<"+n+">"+n+">")},ft={},nt=function(n){var t;return n.is("[type=radio]")&&(t=n.parents("form:first").find("[type=radio]").filter(function(t,r){return i(r).attr("name")===n.attr("name")}),n=t.first()),n},e=function(n,t,i){var u,e;if(typeof i=="string")i=parseInt(i,10);else if(typeof i!="number")return;if(!isNaN(i))return u=f[g[t.charAt(0)]],e=t,n[u]!==r&&(t=f[u.charAt(0)],i=-i),n[t]===r?n[t]=i:n[t]+=i,null},a=function(n,t,i){if(n==="l"||n==="t")return 0;if(n==="c"||n==="m")return i/2-t/2;if(n==="r"||n==="b")return i-t;throw"Invalid alignment";},l=function(n){return l.e=l.e||y("div"),l.e.text(n).html()},it=function(){function n(n,t,r){typeof r=="string"&&(r={className:r}),this.options=et(p,i.isPlainObject(r)?r:{}),this.loadHTML(),this.wrapper=i(d.html),this.options.clickToHide&&this.wrapper.addClass(""+u+"-hidable"),this.wrapper.data(u,this),this.arrow=this.wrapper.find("."+u+"-arrow"),this.container=this.wrapper.find("."+u+"-container"),this.container.append(this.userContainer),n&&n.length&&(this.elementType=n.attr("type"),this.originalElement=n,this.elem=nt(n),this.elem.data(u,this),this.elem.before(this.wrapper)),this.container.hide(),this.run(t)}return n.prototype.loadHTML=function(){var n;return n=this.getStyle(),this.userContainer=i(n.html),this.userFields=n.fields},n.prototype.show=function(n,t){var i,f,e,r,u,o=this;if(f=function(){return n||o.elem||o.destroy(),t?t():void 0},u=this.container.parent().parents(":hidden").length>0,e=this.container.add(this.arrow),i=[],u&&n)r="show";else if(u&&!n)r="hide";else if(!u&&n)r=this.options.showAnimation,i.push(this.options.showDuration);else{if(u||n)return f();r=this.options.hideAnimation,i.push(this.options.hideDuration)}return i.push(f),e[r].apply(e,i)},n.prototype.setGlobalPosition=function(){var r,n,t,e,c,o,s,h;return h=this.getPosition(),s=h[0],o=h[1],c=f[s],r=f[o],e=s+"|"+o,n=ft[e],n||(n=ft[e]=y("div"),t={},t[c]=0,r==="middle"?t.top="45%":r==="center"?t.left="45%":t[r]=0,n.css(t).addClass(""+u+"-corner"),i("body").append(n)),n.prepend(this.wrapper)},n.prototype.setElementPosition=function(){var pt,t,r,at,lt,ct,n,ft,ht,st,ut,rt,ot,et,b,w,tt,s,wt,u,h,nt,p,d,y,l,vt,yt,it;for(p=this.getPosition(),u=p[0],s=p[1],wt=p[2],ut=this.elem.position(),ft=this.elem.outerHeight(),rt=this.elem.outerWidth(),ht=this.elem.innerHeight(),st=this.elem.innerWidth(),d=this.wrapper.position(),lt=this.container.height(),ct=this.container.width(),et=f[u],w=g[u],tt=f[w],n={},n[tt]=u==="b"?ft:u==="r"?rt:0,e(n,"top",ut.top-d.top),e(n,"left",ut.left-d.left),it=["top","left"],y=0,vt=it.length;y