!function(a){"function"==typeofdefine&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){varb=0,c=Array.prototype.slice;returna.cleanData=function(b){returnfunction(c){vard,e,f;for(f=0;null!=(e=c[f]);f++)try{d=a._data(e,"events"),d&&d.remove&&a(e).triggerHandler("remove")}catch(g){}b(c)}}(a.cleanData),a.widget=function(b,c,d){vare,f,g,h,i={},j=b.split(".")[0];returnb=b.split(".")[1],e=j+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[j]=a[j]||{},f=a[j][b],g=a[j][b]=function(a,b){returnthis._createWidget?void(arguments.length&&this._createWidget(a,b)):newg(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=newc,h.options=a.widget.extend({},h.options),a.each(d,function(b,d){returna.isFunction(d)?void(i[b]=function(){vara=function(){returnc.prototype[b].apply(this,arguments)},e=function(a){returnc.prototype[b].apply(this,a)};returnfunction(){varb,c=this._super,f=this._superApply;returnthis._super=a,this._superApply=e,b=d.apply(this,arguments),this._super=c,this._superApply=f,b}}()):void(i[b]=d)}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix||b:b},i,{constructor:g,namespace:j,widgetName:b,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){vard=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),deletef._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g),g},a.widget.extend=function(b){for(vard,e,f=c.call(arguments,1),g=0,h=f.length;g<h;g++)for(dinf[g])e=f[g][d],f[g].hasOwnProperty(d)&&void0!==e&&(a.isPlainObject(e)?b[d]=a.isPlainObject(b[d])?a.widget.extend({},b[d],e):a.widget.extend({},e):b[d]=e);returnb},a.widget.bridge=function(b,d){vare=d.prototype.widgetFullName||b;a.fn[b]=function(f){varg="string"==typeoff,h=c.call(arguments,1),i=this;returng?this.each(function(){varc,d=a.data(this,e);return"instance"===f?(i=d,!1):d?a.isFunction(d[f])&&"_"!==f.charAt(0)?(c=d[f].apply(d,h),c!==d&&void0!==c?(i=c&&c.jquery?i.pushStack(c.get()):c,!1):void0):a.error("no such method '"+f+"' for "+b+" widget instance"):a.error("cannot call methods on "+b+" prior to initialization; attempted to call method '"+f+"'")}):(h.length&&(f=a.widget.extend.apply(null,[f].concat(h))),this.each(function(){varb=a.data(this,e);b?(b.option(f||{}),b._init&&b._init()):a.data(this,e,newd(f,this))})),i}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(c,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=b++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this.options=a.widget.extend({},this.options,this._getCreateOptions(),c),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(a.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:a.noop,widget:function(){returnthis.element},option:function(b,c){vard,e,f,g=b;if(0===arguments.length)returna.widget.extend({},this.options);if("string"==typeofb)if(g={},d=b.split("."),b=d.shift(),d.length){for(e=g[b]=a.widget.extend({},this.options[b]),f=0;f<d.length-1;f++)e[d[f]]=e[d[f]]||{},e=e[d[f]];if(b=d.pop(),1===arguments.length)returnvoid0===e[b]?null:e[b];e[b]=c}else{if(1===arguments.length)retu