(function(e){"function"==typeofdefine&&define.amd?define(["jquery.min"],e):e(jQuery)})(function(e){vart=0,i=Array.prototype.slice;returne.cleanData=function(t){returnfunction(i){vars,n,a;for(a=0;null!=(n=i[a]);a++)try{s=e._data(n,"events"),s&&s.remove&&e(n).triggerHandler("remove")}catch(o){}t(i)}}(e.cleanData),e.widget=function(t,i,s){varn,a,o,r,h={},l=t.split(".")[0];returnt=t.split(".")[1],n=l+"-"+t,s||(s=i,i=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[l]=e[l]||{},a=e[l][t],o=e[l][t]=function(e,t){returnthis._createWidget?(arguments.length&&this._createWidget(e,t),void0):newo(e,t)},e.extend(o,a,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),r=newi,r.options=e.widget.extend({},r.options),e.each(s,function(t,s){returne.isFunction(s)?(h[t]=function(){vare=function(){returni.prototype[t].apply(this,arguments)},n=function(e){returni.prototype[t].apply(this,e)};returnfunction(){vart,i=this._super,a=this._superApply;returnthis._super=e,this._superApply=n,t=s.apply(this,arguments),this._super=i,this._superApply=a,t}}(),void0):(h[t]=s,void0)}),o.prototype=e.widget.extend(r,{widgetEventPrefix:a?r.widgetEventPrefix||t:t},h,{constructor:o,namespace:l,widgetName:t,widgetFullName:n}),a?(e.each(a._childConstructors,function(t,i){vars=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),deletea._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(vars,n,a=i.call(arguments,1),o=0,r=a.length;r>o;o++)for(sina[o])n=a[o][s],a[o].hasOwnProperty(s)&&void0!==n&&(t[s]=e.isPlainObject(n)?e.isPlainObject(t[s])?e.widget.extend({},t[s],n):e.widget.extend({},n):n);returnt},e.widget.bridge=function(t,s){varn=s.prototype.widgetFullName||t;e.fn[t]=function(a){varo="string"==typeofa,r=i.call(arguments,1),h=this;returna=!o&&r.length?e.widget.extend.apply(null,[a].concat(r)):a,o?this.each(function(){vari,s=e.data(this,n);return"instance"===a?(h=s,!1):s?e.isFunction(s[a])&&"_"!==a.charAt(0)?(i=s[a].apply(s,r),i!==s&&void0!==i?(h=i&&i.jquery?h.pushStack(i.get()):i,!1):void0):e.error("no such method '"+a+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; "+"attempted to call method '"+a+"'")}):this.each(function(){vart=e.data(this,n);t?(t.option(a||{}),t._init&&t._init()):e.data(this,n,news(a,this))}),h}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(i,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){returnthis.element},option:function(t,i){vars,n,a,o=t;if(0===arguments.length)returne.widget.extend({},this.options);if("string"==typeoft)if(o={},s=t.split("."),t=s.shift(),s.length){for(n=o[t]=e.widget.extend({},this.options[t]),a=0;s.length-1>a;a++)n[s[a]]=n[s[a]]||{},n=n[s[a]];if(t=s.pop(),1===arguments.length)returnvoid0===n[t]?null:n[t];n[t]=i}else{if(1===argum