PageSourceSearch

https://vilniustech.lt/wp-content/themes/vilniustech/js/jquery-ui.min.js?x66886&ver=1.14.1

js vilniustech.lt collected 2026-10-01 10:28:44 UTC 60,019 bytes, 6 lines download raw bytes

vendor: 60,019 bytes, lines 1-6
1/*! jQuery UI - v1.14.1 - 2025-07-31
2* https://jqueryui.com
3* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/datepicker.js, widgets/tooltip.js
4* Copyright OpenJS Foundation and other contributors; Licensed MIT */
5
6!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){"use strict";t.ui=t.ui||{},t.ui.version="1.14.1";var e,i,a,s,n=0,r=Array.prototype.hasOwnProperty,o=Array.prototype.slice;function l(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=d(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function d(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,c)}function c(){t.datepicker._isDisabledDatepicker(s.inline?s.dpDiv.parent()[0]:s.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function h(e,i){for(var a in t.extend(e,i),i)null==i[a]&&(e[a]=i[a]);return e}e=t.cleanData,t.cleanData=function(i){var a,s,n;for(n=0;null!=(s=i[n]);n++)(a=t._data(s,"events"))&&a.remove&&t(s).triggerHandler("remove");e(i)},t.widget=function(e,i,a){var s,n,r,o={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var d=l+"-"+e;return a||(a=i,i=t.Widget),Array.isArray(a)&&(a=t.extend.apply(null,[{}].concat(a))),t.expr.pseudos[d.toLowerCase()]=function(e){return!!t.data(e,d)},t[l]=t[l]||{},s=t[l][e],n=t[l][e]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},t.extend(n,s,{version:a.version,_proto:t.extend({},a),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(a,function(t,e){if("function"!=typeof e){o[t]=e;return}o[t]=function(){function a(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,n=this._superApply;return this._super=a,this._superApply=s,t=e.apply(this,arguments),this._super=i,this._superApply=n,t}}()}),n.prototype=t.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||e},o,{constructor:n,namespace:l,widgetName:e,widgetFullName:d}),s?(t.each(s._childConstructors,function(e,i){var a=i.prototype;t.widget(a.namespace+"."+a.widgetName,n,i._proto)}),delete s._childConstructors):i._childConstructors.push(n),t.widget.bridge(e,n),n},t.widget.extend=function(e){for(var i,a,s=o.call(arguments,1),n=0,l=s.length;n<l;n++)for(i in s[n])a=s[n][i],r.call(s[n],i)&&void 0!==a&&(t.isPlainObject(a)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],a):t.widget.extend({},a):e[i]=a);return e},t.widget.bridge=function(e,i){var a=i.prototype.widgetFullName||e;t.fn[e]=function(s){var n="string"==typeof s,r=o.call(arguments,1),l=this;return n?this.length||"instance"!==s?this.each(function(){var i,n=t.data(this,a);return"instance"===s?(l=n,!1):n?"function"!=typeof n[s]||"_"===s.charAt(0)?t.error("no such method '"+s+"' for "+e+" widget instance"):(i=n[s].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(r.length&&(s=t.widget.extend.apply(null,[s].concat(r))),this.each(function(){var e=t.data(this,a);e?(e.option(s||{}),e._init&&e._init()):t.data(this,a,new i(s,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var a,s,n,r=e;if(0==arguments.length)return t.widget.extend({},this.options);if("string"==typeof e){if(r={},e=(a=e.split(".")).shift(),a.length){for(n=0,s=r[e]=t.widget.extend({},this.options[e]);n<a.length-1;n++)s[a[n]]=s[a[n]]||{},s=s[a[n]];if(e=a.pop(),1==arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1==arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,a,s;for(i in e)s=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&s&&s.length&&(a=t(s.get()),this._removeClass(s,i),a.addClass(this._classes({element:a,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],a=this;function s(s,n){var r,o;for(o=0;o<s.length;o++)r=a.classesElementLookup[s[o]]||t(),e.add?(function(){var i=[];e.element.each(function(e,s){t.map(a.classesElementLookup,function(t){return t}).some(function(t){return t.is(s)})||i.push(s)}),a._on(t(i),{remove:"_untrackClassesElement"})}(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),a.classesElementLookup[s[o]]=r,i.push(s[o]),n&&e.classes[s[o]]&&i.push(e.classes[s[o]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&s(e.keys.match(/\S+/g)||[],!0),e.extra&&s(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(a,s){-1!==t.inArray(e.target,s)&&(i.classesElementLookup[a]=t(s.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,a){a="boolean"==typeof a?a:i;var s="string"==typeof t||null===t,n={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:a};return n.element.toggleClass(this._classes(n),a),this},_on:function(e,i,a){var s,n=this;"boolean"!=typeof e&&(a=i,i=e,e=!1),a?(i=s=t(i),this.bindings=this.bindings.add(i)):(a=i,i=this.element,s=this.widget()),t.each(a,function(a,r){function o(){if(!(!e&&(!0===n.options.disabled||t(this).hasClass("ui-state-disabled"))))return("string"==typeof r?n[r]:r).apply(n,arguments)}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||t.guid++);var l=a.match(/^([\w:-]*)\s*(.*)$/),d=l[1]+n.eventNamespace,c=l[2];c?s.on(d,c,o):i.on(d,o)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,a){var s,n,r=this.options[e];if(a=a||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],n=i.originalEvent)for(s in n)s in i||(i[s]=n[s]);return this.element.trigger(i,a),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(a))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(a,s,n){"string"==typeof s&&(s={effect:s});var r,o=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!t.isEmptyObject(s),s.complete=n,s.delay&&a.delay(s.delay),r&&t.effects&&t.effects.effect[o]?a[e](s):o!==e&&a[o]?a[o](s.duration,s.easing,n):a.queue(function(i){t(this)[e](),n&&n.call(a[0]),i()})}}),t.widget,function(){var e,i=Math.max,a=Math.abs,s=/left|center|right/,n=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,o=/^\w+/,l=/%$/,d=t.fn.position;function c(t,e,i){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?i/100:1)]}function h(e,i){return parseInt(t.css(e,i),10)||0}function u(t){return null!=t&&t===t.window}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,a,s=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),n=s.children()[0];return t("body").append(s),i=n.offsetWidth,s.css("overflow","scroll"),i===(a=n.offsetWidth)&&(a=s[0].clientWidth),s.remove(),e=i-a},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),a=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===a||"auto"===a&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),a=u(i[0]),s=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:a,isDocument:s,offset:a||s?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return d.apply(this,arguments);var l,p,f,g,m,_,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),k=t.position.getWithinInfo(e.within),D=t.position.getScrollInfo(k),b=(e.collision||"flip").split(" "),w={};return v=9===(l=y[0]).nodeType?{width:y.width(),height:y.height(),offset:{top:0,left:0}}:u(l)?{width:y.width(),height:y.height(),offset:{top:y.scrollTop(),left:y.scrollLeft()}}:l.preventDefault?{width:0,height:0,offset:{top:l.pageY,left:l.pageX}}:{width:y.outerWidth(),height:y.outerHeight(),offset:y.offset()},y[0].preventDefault&&(e.at="left top"),f=v.width,g=v.height,m=v.offset,_=t.extend({},m),t.each(["my","at"],function(){var t,i,a=(e[this]||"").split(" ");1===a.length&&(a=s.test(a[0])?a.concat(["center"]):n.test(a[0])?["center"].concat(a):["center","center"]),a[0]=s.test(a[0])?a[0]:"center",a[1]=n.test(a[1])?a[1]:"center",t=r.exec(a[0]),i=r.exec(a[1]),w[this]=[t?t[0]:0,i?i[0]:0],e[this]=[o.exec(a[0])[0],o.exec(a[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===e.at[0]?_.left+=f:"center"===e.at[0]&&(_.left+=f/2),"bottom"===e.at[1]?_.top+=g:"center"===e.at[1]&&(_.top+=g/2),p=c(w.at,f,g),_.left+=p[0],_.top+=p[1],this.each(function(){var s,n,r=t(this),o=r.outerWidth(),l=r.outerHeight(),d=h(this,"marginLeft"),u=h(this,"marginTop"),v=o+d+h(this,"marginRight")+D.width,M=l+u+h(this,"marginBottom")+D.height,C=t.extend({},_),x=c(w.my,r.outerWidth(),r.outerHeight());"right"===e.my[0]?C.left-=o:"center"===e.my[0]&&(C.left-=o/2),"bottom"===e.my[1]?C.top-=l:"center"===e.my[1]&&(C.top-=l/2),C.left+=x[0],C.top+=x[1],s={marginLeft:d,marginTop:u},t.each(["left","top"],function(i,a){t.ui.position[b[i]]&&t.ui.position[b[i]][a](C,{targetWidth:f,targetHeight:g,elemWidth:o,elemHeight:l,collisionPosition:s,collisionWidth:v,collisionHeight:M,offset:[p[0]+x[0],p[1]+x[1]],my:e.my,at:e.at,within:k,elem:r})}),e.using&&(n=function(t){var s=m.left-C.left,n=s+f-o,d=m.top-C.top,c=d+g-l,h={target:{element:y,left:m.left,top:m.top,width:f,height:g},element:{element:r,left:C.left,top:C.top,width:o,height:l},horizontal:n<0?"left":s>0?"right":"center",vertical:c<0?"top":d>0?"bottom":"middle"};f<o&&a(s+n)<f&&(h.horizontal="center"),g<l&&a(d+c)<g&&(h.vertical="middle"),i(a(s),a(n))>i(a(d),a(c))?h.important="horizontal":h.important="vertical",e.using.call(this,t,h)}),r.offset(t.extend(C,{using:n}))})},t.ui.position={fit:{left:function(t,e){var a,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,r=s.width,o=t.left-e.collisionPosition.marginLeft,l=n-o,d=o+e.collisionWidth-r-n;e.collisionWidth>r?l>0&&d<=0?(a=t.left+l+e.collisionWidth-r-n,t.left+=l-a):d>0&&l<=0?t.left=n:l>d?t.left=n+r-e.collisionWidth:t.left=n:l>0?t.left+=l:d>0?t.left-=d:t.left=i(t.left-o,t.left)},top:function(t,e){var a,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,r=e.within.height,o=t.top-e.collisionPosition.marginTop,l=n-o,d=o+e.collisionHeight-r-n;e.collisionHeight>r?l>0&&d<=0?(a=t.top+l+e.collisionHeight-r-n,t.top+=l-a):d>0&&l<=0?t.top=n:l>d?t.top=n+r-e.collisionHeight:t.top=n:l>0?t.top+=l:d>0?t.top-=d:t.top=i(t.top-o,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,r=n.offset.left+n.scrollLeft,o=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,d=t.left-e.collisionPosition.marginLeft,c=d-l,h=d+e.collisionWidth-o-l,u="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];c<0?((i=t.left+u+p+f+e.collisionWidth-o-r)<0||i<a(c))&&(t.left+=u+p+f):h>0&&((s=t.left-e.collisionPosition.marginLeft+u+p+f-l)>0||a(s)<h)&&(t.left+=u+p+f)},top:function(t,e){var i,s,n=e.within,r=n.offset.top+n.scrollTop,o=n.height,l=n.isWindow?n.scrollTop:n.offset.top,d=t.top-e.collisionPosition.marginTop,c=d-l,h=d+e.collisionHeight-o-l,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];c<0?((s=t.top+u+p+f+e.collisionHeight-o-r)<0||s<a(c))&&(t.top+=u+p+f):h>0&&((i=t.top-e.collisionPosition.marginTop+u+p+f-l)>0||a(i)<h)&&(t.top+=u+p+f)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr.pseudos,{data:t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}})}),t.fn.extend({disableSelection:(i="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(i+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(e,i){var a,s,n,r,o,l=e.nodeName.toLowerCase();return"area"===l?(s=(a=e.parentNode).name,!!e.href&&!!s&&"map"===a.nodeName.toLowerCase()&&(n=t("img[usemap='#"+s+"']")).length>0&&n.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(r=!e.disabled)&&(o=t(e).closest("fieldset")[0])&&(r=!o.disabled):r="a"===l&&e.href||i,r&&t(e).is(":visible")&&"visible"===t(e).css("visibility"))},t.extend(t.expr.pseudos,{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=t(this.element.prop("form")),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},t.escapeSelector||(t.escapeSelector=function(t){return CSS.escape(t+"")}),t.fn.even&&t.fn.odd||t.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.labels=function(){var t,e,i,a,s;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(a=this.eq(0).parents("label"),(i=this.attr("id"))&&(s=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),e="label[for='"+CSS.escape(i)+"']",a=a.add(s.find(e).addBack(e))),this.pushStack(a)):this.pushStack([])},t.fn.scrollParent=function(e){var i=this.css("position"),a="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,n=this.parents().filter(function(){var e=t(this);return(!a||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&n.length?n:t(this[0].ownerDocument||document)},t.extend(t.expr.pseudos,{tabbable:function(e){var i=t.attr(e,"tabindex"),a=null!=i;return(!a||i>=0)&&t.ui.focusable(e,a)}}),t.fn.extend({uniqueId:(a=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.ui,{datepicker:{version:"1.14.1"}}),t.extend(l.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return h(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var a,s,n;s="div"===(a=e.nodeName.toLowerCase())||"span"===a,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(n=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===a?this._connectDatepicker(e,n):s&&this._inlineDatepicker(e,n)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?d(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var a=t(e);i.append=t([]),i.trigger=t([]),!a.hasClass(this.markerClassName)&&(this._attachments(a,i),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var a,s,n,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span>").addClass(this._appendClass).text(r),e[o?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(a=this._get(i,"showOn"))||"both"===a)&&e.on("focus",this._showDatepicker),("button"===a||"both"===a)&&(s=this._get(i,"buttonText"),n=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:n,alt:s,title:s}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),n?i.trigger.html(t("<img>").attr({src:n,alt:s,title:s})):i.trigger.text(s)),e[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,a,s,n=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(s=0,i=0,a=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,a=s);return a},n.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),t.input.attr("size",this._formatDate(t,n).length)}},_inlineDatepicker:function(e,i){var a=t(e);!a.hasClass(this.markerClassName)&&(a.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,a,s,n){var r,o,l,d,c,u=this._dialogInst;return u||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",u)),h(u.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(u,i):i,this._dialogInput.val(i),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(o=document.documentElement.clientWidth,l=document.documentElement.clientHeight,d=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+d,l/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(e){var i,a=t(e),n=t.data(e,"datepicker");a.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&a.removeClass(this.markerClassName).empty(),t.datepicker._hideDatepicker(),s===n&&(s=null,this._curInst=null))},_enableDatepicker:function(e){var i,a,s=t(e),n=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((a=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,a,s=t(e),n=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((a=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,a){var s,n,r,o,l=this._getInst(e);if(2==arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.extend({},l.settings):this._get(l,i):null;s=i||{},"string"==typeof i&&((s={})[i]=a),l&&(this._curInst===l&&this._hideDatepicker(),n=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(l,"min"),o=this._getMinMaxDate(l,"max"),h(l.settings,s),null!==r&&void 0!==s.dateFormat&&void 0===s.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==o&&void 0!==s.dateFormat&&void 0===s.maxDate&&(l.settings.maxDate=this._formatDate(l,o)),"disabled"in s&&(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),l),this._autoSize(l),this._setDate(l,n),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,a,s,n=t.datepicker._getInst(e.target),r=!0,o=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",n.dpDiv))[0]&&t.datepicker._selectDay(e.target,n.selectedMonth,n.selectedYear,s[0]),(i=t.datepicker._get(n,"onSelect"))?(a=t.datepicker._formatDate(n),i.apply(n.input?n.input[0]:null,[a,n])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(n,"stepBigMonths"):-t.datepicker._get(n,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(n,"stepBigMonths"):+t.datepicker._get(n,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(n,"stepBigMonths"):-t.datepicker._get(n,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(n,"stepBigMonths"):+t.datepicker._get(n,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,a,s=t.datepicker._getInst(e.target);if(t.datepicker._get(s,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),a=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||a<" "||!i||i.indexOf(a)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,a,s,n,r,o,l;if("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e)i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(s=(a=t.datepicker._get(i,"beforeShow"))?a.apply(e,[e,i]):{})&&(h(i.settings,s),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),n=!1,t(e).parents().each(function(){return!(n|="fixed"===t(this).css("position"))}),r={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),r=t.datepicker._checkOffset(i,r,n),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":n?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),i.inline||(o=t.datepicker._get(i,"showAnim"),l=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){var e,i;while(t.length&&t[0]!==document){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&!isNaN(i=parseInt(t.css("zIndex"),10))&&0!==i)return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[o]?i.dpDiv.show(o,t.datepicker._get(i,"showOptions"),l):i.dpDiv[o||"show"](o?l:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i))},_updateDatepicker:function(e){this.maxRows=4,s=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,a=this._getNumberOfMonths(e),n=a[1],r=e.dpDiv.find("."+this._dayOverClass+" a"),o=t.datepicker._get(e,"onUpdateDatepicker");r.length>0&&c.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),i=e.yearshtml=null},0)),o&&o.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")},_checkOffset:function(e,i,a){var s=e.dpDiv.outerWidth(),n=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(a?0:t(document).scrollLeft()),d=document.documentElement.clientHeight+(a?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-r:0,i.left-=a&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=a&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+n>d&&d>n?Math.abs(n+o):0),i},_findPos:function(e){var i,a=this._getInst(e),s=this._get(a,"isRTL");while(e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e)))e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,a,s,n,r=this._curInst;r&&(!e||r===t.data(e,"datepicker"))&&this._datepickerShowing&&(i=this._get(r,"showAnim"),a=this._get(r,"duration"),s=function(){t.datepicker._tidyDialog(r)},t.effects&&t.effects.effect[i]?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),a,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?a:null,s),i||s(),this._datepickerShowing=!1,(n=this._get(r,"onClose"))&&n.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),a=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&!(t.datepicker._inDialog&&t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==a)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,a){var s=t(e),n=this._getInst(s[0]);!this._isDisabledDatepicker(s[0])&&(this._adjustInstDate(n,i,a),this._updateDatepicker(n))},_gotoToday:function(e){var i,a=t(e),s=this._getInst(a[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(s.selectedDay=(i=new Date).getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(a)},_selectMonthYear:function(e,i,a){var s=t(e),n=this._getInst(s[0]);n["selected"+("M"===a?"Month":"Year")]=n["draw"+("M"===a?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(s)},_selectDay:function(e,i,a,s){var n,r=t(e);!(t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0]))&&((n=this._getInst(r[0])).selectedDay=n.currentDay=parseInt(t("a",s).attr("data-date")),n.selectedMonth=n.currentMonth=i,n.selectedYear=n.currentYear=a,this._selectDate(e,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var a,s=t(e),n=this._getInst(s[0]);i=null!=i?i:this._formatDate(n),n.input&&n.input.val(i),this._updateAlternate(n),(a=this._get(n,"onSelect"))?a.apply(n.input?n.input[0]:null,[i,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,a,s,n=this._get(e,"altField");n&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),a=this._getDate(e),s=this.formatDate(i,a,this._getFormatConfig(e)),t(document).find(n).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,a){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,n,r,o,l=0,d=(a?a.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof d?d:new Date().getFullYear()%100+parseInt(d,10),h=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,u=(a?a.dayNames:null)||this._defaults.dayNames,p=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,f=(a?a.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,y=!1,k=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},D=function(t){var e=k(t),a="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s=RegExp("^\\d{"+("y"===t?a:1)+","+a+"}"),n=i.substring(l).match(s);if(!n)throw"Missing number at position "+l;return l+=n[0].length,parseInt(n[0],10)},b=function(e,a,s){var n=-1,r=t.map(k(e)?s:a,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,e){var a=e[1];if(i.substr(l,a.length).toLowerCase()===a.toLowerCase())return n=e[0],l+=a.length,!1}),-1!==n)return n+1;throw"Unknown name at position "+l},w=function(){if(i.charAt(l)!==e.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<e.length;s++)if(y)"'"!==e.charAt(s)||k("'")?w():y=!1;else switch(e.charAt(s)){case"d":_=D("d");break;case"D":b("D",h,u);break;case"o":v=D("o");break;case"m":m=D("m");break;case"M":m=b("M",p,f);break;case"y":g=D("y");break;case"@":g=(o=new Date(D("@"))).getFullYear(),m=o.getMonth()+1,_=o.getDate();break;case"!":g=(o=new Date((D("!")-this._ticksTo1970)/1e4)).getFullYear(),m=o.getMonth()+1,_=o.getDate();break;case"'":k("'")?w():y=!0;break;default:w()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=new Date().getFullYear():g<100&&(g+=new Date().getFullYear()-new Date().getFullYear()%100+(g<=c?0:-100)),v>-1){m=1,_=v;do{if(_<=(n=this._getDaysInMonth(g,m-1)))break;m++,_-=n}while(!0)}if((o=this._daylightSavingAdjust(new Date(g,m-1,_))).getFullYear()!==g||o.getMonth()+1!==m||o.getDate()!==_)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(t,e,i){if(!e)return"";var a,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=a+1<t.length&&t.charAt(a+1)===e;return i&&a++,i},d=function(t,e,i){var a=""+e;if(l(t))while(a.length<i)a="0"+a;return a},c=function(t,e,i,a){return l(t)?a[e]:i[e]},h="",u=!1;if(e)for(a=0;a<t.length;a++)if(u)"'"!==t.charAt(a)||l("'")?h+=t.charAt(a):u=!1;else switch(t.charAt(a)){case"d":h+=d("d",e.getDate(),2);break;case"D":h+=c("D",e.getDay(),s,n);break;case"o":h+=d("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=d("m",e.getMonth()+1,2);break;case"M":h+=c("M",e.getMonth(),r,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(a)}return h},_possibleChars:function(t){var e,i="",a=!1,s=function(i){var a=e+1<t.length&&t.charAt(e+1)===i;return a&&e++,a};for(e=0;e<t.length;e++)if(a)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):a=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":a=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),a=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),n=s,r=this._getFormatConfig(t);try{n=this.parseDate(i,a,r)||s}catch(t){a=e?"":a}t.selectedDay=n.getDate(),t.drawMonth=t.selectedMonth=n.getMonth(),t.drawYear=t.selectedYear=n.getFullYear(),t.currentDay=a?n.getDate():0,t.currentMonth=a?n.getMonth():0,t.currentYear=a?n.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,a){var s,n=null==i||""===i?a:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}var a=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=a.getFullYear(),n=a.getMonth(),r=a.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);while(l){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":n+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,n));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,n))}l=o.exec(i)}return new Date(s,n,r)}(i):"number"==typeof i?isNaN(i)?a:((s=new Date).setDate(s.getDate()+i),s):new Date(i.getTime());return(n=n&&"Invalid Date"===n.toString()?a:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var a=!e,s=t.selectedMonth,n=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),s===t.selectedMonth&&n===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(a?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){t(this).on(this.getAttribute("data-event"),{prev:function(){t.datepicker._adjustDate(a,-i,"M")},next:function(){t.datepicker._adjustDate(a,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(a)},selectDay:function(){return t.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(a,this,"Y"),!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(e){var i,a,s,n,r,o,l,d,c,h,u,p,f,g,m,_,v,y,k,D,b,w,M,C,x,I,T,S,N,A,Y,F,W,E,O,L,j,H,K,P=new Date,R=this._daylightSavingAdjust(new Date(P.getFullYear(),P.getMonth(),P.getDate())),U=this._get(e,"isRTL"),B=this._get(e,"showButtonPanel"),z=this._get(e,"hideIfNoPrevNext"),q=this._get(e,"navigationAsDateFormat"),J=this._getNumberOfMonths(e),V=this._get(e,"showCurrentAtPos"),$=this._get(e,"stepMonths"),G=1!==J[0]||1!==J[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(e,"min"),Z=this._getMinMaxDate(e,"max"),tt=e.drawMonth-V,te=e.drawYear;if(tt<0&&(tt+=12,te--),Z){i=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-J[0]*J[1]+1,Z.getDate())),i=Q&&i<Q?Q:i;while(this._daylightSavingAdjust(new Date(te,tt,1))>i)--tt<0&&(tt=11,te--)}for(e.drawMonth=tt,e.drawYear=te,a=this._get(e,"prevText"),a=q?this.formatDate(a,this._daylightSavingAdjust(new Date(te,tt-$,1)),this._getFormatConfig(e)):a,s=this._canAdjustMonth(e,-1,te,tt)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:a}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(a))[0].outerHTML:z?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:a}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(a))[0].outerHTML,n=this._get(e,"nextText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(te,tt+$,1)),this._getFormatConfig(e)):n,r=this._canAdjustMonth(e,1,te,tt)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(n))[0].outerHTML:z?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:n}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(n))[0].outerHTML,o=this._get(e,"currentText"),l=this._get(e,"gotoCurrent")&&e.currentDay?X:R,o=q?this.formatDate(o,l,this._getFormatConfig(e)):o,d="",e.inline||(d=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),c="",B&&(c=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(U?d:"").append(this._isInRange(e,l)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(U?"":d)[0].outerHTML),h=isNaN(h=parseInt(this._get(e,"firstDay"),10))?0:h,u=this._get(e,"showWeek"),p=this._get(e,"dayNames"),f=this._get(e,"dayNamesMin"),g=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),_=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),k=this._getDefaultDate(e),D="",w=0;w<J[0];w++){for(C=0,M="",this.maxRows=4;C<J[1];C++){if(x=this._daylightSavingAdjust(new Date(te,tt,e.selectedDay)),I=" ui-corner-all",T="",G){if(T+="<div class='ui-datepicker-group",J[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",I=" ui-corner-"+(U?"right":"left");break;case J[1]-1:T+=" ui-datepicker-group-last",I=" ui-corner-"+(U?"left":"right");break;default:T+=" ui-datepicker-group-middle",I=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===w?U?r:s:"")+(/all|right/.test(I)&&0===w?U?s:r:"")+this._generateMonthYearHeader(e,tt,te,Q,Z,w>0||C>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=u?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",b=0;b<7;b++)N=(b+h)%7,S+="<th scope='col'"+((b+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[N]+"'>"+f[N]+"</span></th>";for(T+=S+"</tr></thead><tbody>",A=this._getDaysInMonth(te,tt),te===e.selectedYear&&tt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),F=Math.ceil(((Y=(this._getFirstDayOfMonth(te,tt)-h+7)%7)+A)/7),W=G&&this.maxRows>F?this.maxRows:F,this.maxRows=W,E=this._daylightSavingAdjust(new Date(te,tt,1-Y)),O=0;O<W;O++){for(T+="<tr>",L=u?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(E)+"</td>":"",b=0;b<7;b++)j=_?_.apply(e.input?e.input[0]:null,[E]):[!0,""],K=(H=E.getMonth()!==tt)&&!y||!j[0]||Q&&E<Q||Z&&E>Z,L+="<td class='"+((b+h+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(E.getTime()===x.getTime()&&tt===e.selectedMonth&&e._keyEvent||k.getTime()===E.getTime()&&k.getTime()===x.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!v?"":" "+j[1]+(E.getTime()===X.getTime()?" "+this._currentClass:"")+(E.getTime()===R.getTime()?" ui-datepicker-today":""))+"'"+((!H||v)&&j[2]?" title='"+j[2].replace(/'/g,"&#39;")+"'":"")+(K?"":" data-handler='selectDay' data-event='click' data-month='"+E.getMonth()+"' data-year='"+E.getFullYear()+"'")+">"+(H&&!v?"&#xa0;":K?"<span class='ui-state-default'>"+E.getDate()+"</span>":"<a class='ui-state-default"+(E.getTime()===R.getTime()?" ui-state-highlight":"")+(E.getTime()===X.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(E.getTime()===X.getTime()?"true":"false")+"' data-date='"+E.getDate()+"'>"+E.getDate()+"</a>")+"</td>",E.setDate(E.getDate()+1),E=this._daylightSavingAdjust(E);T+=L+"</tr>"}++tt>11&&(tt=0,te++),T+="</tbody></table>"+(G?"</div>"+(J[0]>0&&C===J[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),M+=T}D+=M}return D+=c,e._keyEvent=!1,D},_generateMonthYearHeader:function(t,e,i,a,s,n,r,o){var l,d,c,h,u,p,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),k=this._get(t,"selectYearLabel"),D="<div class='ui-datepicker-title'>",b="";if(n||!m)b+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=a&&a.getFullYear()===i,d=s&&s.getFullYear()===i,b+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=a.getMonth())&&(!d||c<=s.getMonth())&&(b+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+o[c]+"</option>");b+="</select>"}if(v||(D+=b+(n||!(m&&_)?"&#xa0;":"")),!t.yearshtml){if(t.yearshtml="",n||!_)D+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),u=new Date().getFullYear(),g=Math.max(f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(e)?u:e})(h[0]),p(h[1]||"")),f=a?Math.max(f,a.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+k+"' data-handler='selectYear' data-event='change'>";f<=g;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",D+=t.yearshtml,t.yearshtml=null}}return D+=this._get(t,"yearSuffix"),v&&(D+=(n||!(m&&_)?"&#xa0;":"")+b),D+="</div>"},_adjustInstDate:function(t,e,i){var a=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),n=Math.min(t.selectedDay,this._getDaysInMonth(a,s))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(a,s,n)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),s=i&&e<i?i:e;return a&&s>a?a:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,a){var s=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(i,a+(e<0?e:s[0]*s[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var i,a,s=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),a=new Date().getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=a),i[1].match(/[+\-].*/)&&(o+=a)),(!s||e.getTime()>=s.getTime())&&(!n||e.getTime()<=n.getTime())&&(!r||e.getFullYear()>=r)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:new Date().getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,a){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(a,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2==arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})},t.datepicker=new l,t.datepicker.initialized=!1,t.datepicker.uuid=new Date().getTime(),t.datepicker.version="1.14.1",t.datepicker,t.widget("ui.tooltip",{version:"1.14.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title");return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),a=(e.attr("aria-describedby")||"").split(/\s+/),s=t.inArray(i,a);-1!==s&&a.splice(s,1),e.removeData("ui-tooltip-id"),(a=String.prototype.trim.call(a.join(" ")))?e.attr("aria-describedby",a):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var a=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){a._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,a){var s=t.Event("blur");s.target=s.currentTarget=a.element[0],e.close(s,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var i=this,a=t(e?e.target:this.element).closest(this.options.items);!(!a.length||a.data("ui-tooltip-id"))&&(a.attr("title")&&a.data("ui-tooltip-title",a.attr("title")),a.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&a.parents().each(function(){var e,a=t(this);a.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),a.attr("title")&&(a.uniqueId(),i.parents[this.id]={element:this,title:a.attr("title")},a.attr("title",""))}),this._registerCloseHandlers(e,a),this._updateContent(a,e))},_updateContent:function(t,e){var i,a=this.options.content,s=this,n=e?e.type:null;if("string"==typeof a||a.nodeType||a.jquery)return this._open(e,t,a);(i=a.call(t[0],function(i){t.data("ui-tooltip-open")&&(e&&(e.type=n),s._open(e,t,i))}))&&this._open(e,t,i)},_open:function(e,i,a){var s,n,r,o,l=t.extend({},this.options.position);if(a){if(s=this._find(i)){s.tooltip.find(".ui-tooltip-content").html(a);return}i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),n=(s=this._tooltip(i)).tooltip,this._addDescribedBy(i,n.attr("id")),n.find(".ui-tooltip-content").html(a),this.liveRegion.children().hide(),(o=t("<div>").html(n.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),o.removeAttr("id").find("[id]").removeAttr("id"),o.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:d}),d(e)):n.position(t.extend({of:i},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){n.is(":visible")&&(d(l.of),clearInterval(r))},13)),this._trigger("open",e,{tooltip:n})}function d(t){l.of=t,!n.is(":hidden")&&n.position(l)}},_registerCloseHandlers:function(e,i){var a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var a=t.Event(e);a.currentTarget=i[0],this.close(a,!0)}}};i[0]!==this.element[0]&&(a.remove=function(){var t=this._find(i);t&&this._removeTooltip(t.tooltip)}),e&&"mouseover"!==e.type||(a.mouseleave="close"),e&&"focusin"!==e.type||(a.focusout="close"),this._on(!0,i,a)},close:function(e){var i,a=this,s=t(e?e.currentTarget:this.element),n=this._find(s);if(!n){s.removeData("ui-tooltip-open");return}i=n.tooltip,!n.closing&&(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){a._removeTooltip(t(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete a.parents[e]}),n.closing=!0,this._trigger("close",e,{tooltip:i}),n.hiding||(n.closing=!1))},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),a=t("<div>").appendTo(i),s=i.uniqueId().attr("id");return this._addClass(a,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[s]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,a){var s=t.Event("blur"),n=a.element;s.target=s.currentTarget=n[0],e.close(s,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!0===t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.