diff --git a/app/Http/Controllers/Legacy/TestLegacyController.php b/app/Http/Controllers/Legacy/TestLegacyController.php new file mode 100644 index 0000000..0f6bce9 --- /dev/null +++ b/app/Http/Controllers/Legacy/TestLegacyController.php @@ -0,0 +1,23 @@ +=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],rA=Array.prototype.slice;if(AA.event.fixHooks)for(var oA=nA.length;oA;)AA.event.fixHooks[nA[--oA]]=AA.event.mouseHooks;var sA=AA.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var eA=iA.length;eA;)this.addEventListener(iA[--eA],handler,!1);else this.onmousewheel=handler;AA.data(this,"mousewheel-line-height",sA.getLineHeight(this)),AA.data(this,"mousewheel-page-height",sA.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var eA=iA.length;eA;)this.removeEventListener(iA[--eA],handler,!1);else this.onmousewheel=null;AA.removeData(this,"mousewheel-line-height"),AA.removeData(this,"mousewheel-page-height")},getLineHeight:function(eA){var tA=AA(eA),nA=tA["offsetParent"in AA.fn?"offsetParent":"parent"]();return nA.length||(nA=AA("body")),parseInt(nA.css("fontSize"),10)||parseInt(tA.css("fontSize"),10)||16},getPageHeight:function(eA){return AA(eA).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function handler(nA){var iA,oA=nA||window.event,aA=rA.call(arguments,1),cA=0,lA=0,gA=0,uA=0,hA=0;if((nA=AA.event.fix(oA)).type="mousewheel","detail"in oA&&(gA=-1*oA.detail),"wheelDelta"in oA&&(gA=oA.wheelDelta),"wheelDeltaY"in oA&&(gA=oA.wheelDeltaY),"wheelDeltaX"in oA&&(lA=-1*oA.wheelDeltaX),"axis"in oA&&oA.axis===oA.HORIZONTAL_AXIS&&(lA=-1*gA,gA=0),cA=0===gA?lA:gA,"deltaY"in oA&&(cA=gA=-1*oA.deltaY),"deltaX"in oA&&(lA=oA.deltaX,0===gA&&(cA=-1*lA)),0!==gA||0!==lA){if(1===oA.deltaMode){var BA=AA.data(this,"mousewheel-line-height");cA*=BA,gA*=BA,lA*=BA}else if(2===oA.deltaMode){var fA=AA.data(this,"mousewheel-page-height");cA*=fA,gA*=fA,lA*=fA}if(iA=Math.max(Math.abs(gA),Math.abs(lA)),(!tA||iA=1?"floor":"ceil"](cA/tA),lA=Math[lA>=1?"floor":"ceil"](lA/tA),gA=Math[gA>=1?"floor":"ceil"](gA/tA),sA.settings.normalizeOffset&&this.getBoundingClientRect){var dA=this.getBoundingClientRect();uA=nA.clientX-dA.left,hA=nA.clientY-dA.top}return nA.deltaX=lA,nA.deltaY=gA,nA.deltaFactor=tA,nA.offsetX=uA,nA.offsetY=hA,nA.deltaMode=0,aA.unshift(nA,cA,lA,gA),eA&&clearTimeout(eA),eA=setTimeout(nullLowestDelta,200),(AA.event.dispatch||AA.event.handle).apply(this,aA)}}function nullLowestDelta(){tA=null}function shouldAdjustOldDeltas(AA,eA){return sA.settings.adjustOldDeltas&&"mousewheel"===AA.type&&eA%120==0}AA.fn.extend({mousewheel:function(AA){return AA?this.bind("mousewheel",AA):this.trigger("mousewheel")},unmousewheel:function(AA){return this.unbind("mousewheel",AA)}})},"function"==typeof eA.define&&eA.define.amd?eA.define("jquery-mousewheel",["jquery"],tA):"object"==typeof exports?module.exports=tA:tA(AA),eA.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(AA,eA,tA,nA,iA){if(null==AA.fn.select2){var rA=["open","close","destroy"];AA.fn.select2=function(eA){if("object"==typeof(eA=eA||{}))return this.each(function(){var nA=AA.extend(!0,{},eA);new tA(AA(this),nA)}),this;if("string"==typeof eA){var nA,oA=Array.prototype.slice.call(arguments,1);return this.each(function(){var AA=iA.GetData(this,"select2");null==AA&&window.console&&console.error&&console.error("The select2('"+eA+"') method was called on an element that is not using Select2."),nA=AA[eA].apply(AA,oA)}),rA.indexOf(eA)>-1?this:nA}throw new Error("Invalid arguments for Select2: "+eA)}}return null==AA.fn.select2.defaults&&(AA.fn.select2.defaults=nA),tA}),{define:eA.define,require:eA.require}}(),tA=eA.require("jquery.select2");return AA.fn.select2.amd=eA,tA}),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var AA=jQuery.fn.select2.amd;AA.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(AA){return"Túl hosszú. "+(AA.input.length-AA.maximum)+" karakterrel több, mint kellene."},inputTooShort:function(AA){return"Túl rövid. Még "+(AA.minimum-AA.input.length)+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(AA){return"Csak "+AA.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"},removeAllItems:function(){return"Távolítson el minden elemet"},removeItem:function(){return"Elem eltávolítása"},search:function(){return"Keresés"}}}),AA.define,AA.require}();const TOAST_CONTAINER=document.createElement("div");TOAST_CONTAINER.id="toastContainer",TOAST_CONTAINER.className="position-fixed top-0 right-0",TOAST_CONTAINER.setAttribute("aria-live","polite"),document.body.appendChild(TOAST_CONTAINER);const TOAST_TEMPLATE=document.createElement("div");var TOAST_STATUS,TOAST_PLACEMENT,TOAST_THEME,TOAST_TIMERS;TOAST_TEMPLATE.className="toast",TOAST_TEMPLATE.setAttribute("role","status"),TOAST_TEMPLATE.setAttribute("aria-live","polite"),TOAST_TEMPLATE.setAttribute("aria-atomic","true"),TOAST_TEMPLATE.setAttribute("data-autohide","false"),TOAST_TEMPLATE.innerHTML='\n
\n \n \n \n \n
\n
',function(AA){AA[AA.SUCCESS=1]="SUCCESS",AA[AA.DANGER=2]="DANGER",AA[AA.WARNING=3]="WARNING",AA[AA.INFO=4]="INFO"}(TOAST_STATUS||(TOAST_STATUS={})),function(AA){AA[AA.TOP_LEFT=1]="TOP_LEFT",AA[AA.TOP_CENTER=2]="TOP_CENTER",AA[AA.TOP_RIGHT=3]="TOP_RIGHT",AA[AA.MIDDLE_LEFT=4]="MIDDLE_LEFT",AA[AA.MIDDLE_CENTER=5]="MIDDLE_CENTER",AA[AA.MIDDLE_RIGHT=6]="MIDDLE_RIGHT",AA[AA.BOTTOM_LEFT=7]="BOTTOM_LEFT",AA[AA.BOTTOM_CENTER=8]="BOTTOM_CENTER",AA[AA.BOTTOM_RIGHT=9]="BOTTOM_RIGHT"}(TOAST_PLACEMENT||(TOAST_PLACEMENT={})),function(AA){AA[AA.LIGHT=1]="LIGHT",AA[AA.DARK=2]="DARK"}(TOAST_THEME||(TOAST_THEME={})),function(AA){AA[AA.DISABLED=0]="DISABLED",AA[AA.ELAPSED=1]="ELAPSED",AA[AA.COUNTDOWN=2]="COUNTDOWN"}(TOAST_TIMERS||(TOAST_TIMERS={}));class Toast{static configure(AA){this.setMaxCount(null==AA?void 0:AA.maxToasts),this.setPlacement(null==AA?void 0:AA.placement),this.setTheme(null==AA?void 0:AA.theme),this.enableTimers(null==AA?void 0:AA.enableTimers),this.enableQueue(null==AA?void 0:AA.enableQueue)}static setMaxCount(AA){null!==AA&&(AA>0?this.maxToastCount=AA:console.error("The maximum number of toasts must be greater than 0. Reverting to default."))}static setPlacement(AA){switch(TOAST_CONTAINER.className="toast-container position-fixed",AA){case TOAST_PLACEMENT.TOP_LEFT:TOAST_CONTAINER.classList.add("top-0","left-0");break;case TOAST_PLACEMENT.TOP_CENTER:TOAST_CONTAINER.classList.add("top-0","left-50","translate-middle-x");break;case TOAST_PLACEMENT.TOP_RIGHT:TOAST_CONTAINER.classList.add("top-0","right-0");break;case TOAST_PLACEMENT.MIDDLE_LEFT:TOAST_CONTAINER.classList.add("top-50","left-0","translate-middle-y");break;case TOAST_PLACEMENT.MIDDLE_CENTER:TOAST_CONTAINER.classList.add("top-50","left-50","translate-middle");break;case TOAST_PLACEMENT.MIDDLE_RIGHT:TOAST_CONTAINER.classList.add("top-50","right-0","translate-middle-y");break;case TOAST_PLACEMENT.BOTTOM_LEFT:TOAST_CONTAINER.classList.add("bottom-0","left-0");break;case TOAST_PLACEMENT.BOTTOM_CENTER:TOAST_CONTAINER.classList.add("bottom-0","left-50","translate-middle-x");break;case TOAST_PLACEMENT.BOTTOM_RIGHT:TOAST_CONTAINER.classList.add("bottom-0","right-0");break;default:TOAST_CONTAINER.classList.add("top-0","right-0")}}static setTheme(AA=null){let eA=TOAST_TEMPLATE.querySelector(".toast-header"),tA=eA.querySelector(".close");switch(AA){case TOAST_THEME.LIGHT:TOAST_TEMPLATE.style.backgroundColor="var(--body-bg-color-light)",TOAST_TEMPLATE.style.color="var(--text-color-light)",eA.style.backgroundColor="var(--header-bg-color-light)",eA.style.color="var(--header-color-light)",tA.style.color="var(--text-color-light)";break;case TOAST_THEME.DARK:TOAST_TEMPLATE.style.backgroundColor="var(--body-bg-color-dark)",TOAST_TEMPLATE.style.color="var(--text-color-dark)",eA.style.backgroundColor="var(--header-bg-color-dark)",eA.style.color="var(--header-color-dark)",tA.style.color="var(--text-color-dark)";break;default:TOAST_TEMPLATE.removeAttribute("style"),eA.removeAttribute("style"),tA.removeAttribute("style")}}static enableTimers(AA){this.timersEnabled=AA}static enableQueue(AA=!0){this.queueEnabled=AA,AA||(this.queue=[])}static create(AA){let eA=TOAST_TEMPLATE.cloneNode(!0);if(eA.querySelector(".toast-title").innerText=AA.title,eA.querySelector(".toast-body").innerHTML=AA.message,this.setStatus(eA,AA.status),this.currentToastCount>=this.maxToastCount){if(!this.queueEnabled)return;const tA={toast:eA,timeout:AA.timeout};return void this.queue.push(tA)}const tA={toast:eA,timeout:AA.timeout};this.render(tA)}static setStatus(AA,eA){let tA=AA.querySelector(".status-icon");switch(eA){case TOAST_STATUS.SUCCESS:tA.classList.add("text-success","bi-check-circle-fill");break;case TOAST_STATUS.DANGER:tA.classList.add("text-danger","bi-x-circle-fill"),AA.setAttribute("role","alert"),AA.setAttribute("aria-live","assertive");break;case TOAST_STATUS.WARNING:tA.classList.add("text-warning","bi-exclamation-circle-fill"),AA.setAttribute("role","alert"),AA.setAttribute("aria-live","assertive");break;case TOAST_STATUS.INFO:tA.classList.add("text-info","bi-info-circle-fill");break;default:tA.classList.add("d-none")}}static render(AA){AA.timeout>0&&(AA.toast.setAttribute("data-delay",AA.timeout.toString()),AA.toast.setAttribute("data-autohide","true")),this.renderTimer(AA),TOAST_CONTAINER.appendChild(AA.toast),$(AA.toast).toast("show"),this.currentToastCount++,$(AA.toast).on("hidden.bs.toast",()=>{if(TOAST_CONTAINER.removeChild(AA.toast),this.currentToastCount--,this.queueEnabled&&this.queue.length>0&&this.currentToastCount{eA.innerText=`${tA}m ago`,tA++},6e4);$(AA.toast).on("hidden.bs.toast",()=>{clearInterval(nA)});break}case TOAST_TIMERS.COUNTDOWN:if(AA.timeout>0){let tA=AA.timeout/1e3;eA.innerText=`${tA}s`;let nA=setInterval(()=>{eA.innerText=tA-1+"s",tA--},1e3);$(AA.toast).on("hidden.bs.toast",()=>{clearInterval(nA)});break}default:AA.toast.querySelector(".toast-header").removeChild(eA);break}}static oldConfigure(AA=null,eA=TOAST_PLACEMENT.TOP_RIGHT,tA=null,nA=!0){const iA={maxToasts:AA,placement:eA,theme:tA,enableTimers:nA?TOAST_TIMERS.ELAPSED:TOAST_TIMERS.DISABLED};this.configure(iA)}static oldCreate(AA,eA,tA=0,nA=0){const iA={title:AA,message:eA,status:tA,timeout:nA};this.create(iA)}static oldEnableTimers(AA){this.timersEnabled=AA?TOAST_TIMERS.ELAPSED:TOAST_TIMERS.DISABLED}}Toast.maxToastCount=4,Toast.currentToastCount=0,Toast.timersEnabled=TOAST_TIMERS.ELAPSED,Toast.queueEnabled=!0,Toast.queue=[],function(AA){"use strict";"function"==typeof define&&define.amd?define(["jquery"],AA):AA(jQuery)}(function(AA){"use strict";AA.ui=AA.ui||{},AA.ui.version="1.13.3";var eA,tA,nA,iA,rA,oA,sA,aA,cA,lA,gA=0,uA=Array.prototype.hasOwnProperty,hA=Array.prototype.slice;function C(AA,eA,tA){return[parseFloat(AA[0])*(cA.test(AA[0])?eA/100:1),parseFloat(AA[1])*(cA.test(AA[1])?tA/100:1)]}function D(eA,tA){return parseInt(AA.css(eA,tA),10)||0}function I(AA){return null!=AA&&AA===AA.window}AA.cleanData=(eA=AA.cleanData,function(tA){for(var nA,iA,rA=0;null!=(iA=tA[rA]);rA++)(nA=AA._data(iA,"events"))&&nA.remove&&AA(iA).triggerHandler("remove");eA(tA)}),AA.widget=function(eA,tA,nA){var iA,rA,oA,sA={},aA=eA.split(".")[0],cA=aA+"-"+(eA=eA.split(".")[1]);return nA||(nA=tA,tA=AA.Widget),Array.isArray(nA)&&(nA=AA.extend.apply(null,[{}].concat(nA))),AA.expr.pseudos[cA.toLowerCase()]=function(eA){return!!AA.data(eA,cA)},AA[aA]=AA[aA]||{},iA=AA[aA][eA],rA=AA[aA][eA]=function(AA,eA){if(!this||!this._createWidget)return new rA(AA,eA);arguments.length&&this._createWidget(AA,eA)},AA.extend(rA,iA,{version:nA.version,_proto:AA.extend({},nA),_childConstructors:[]}),(oA=new tA).options=AA.widget.extend({},oA.options),AA.each(nA,function(AA,eA){function n(){return tA.prototype[AA].apply(this,arguments)}function o(eA){return tA.prototype[AA].apply(this,eA)}sA[AA]="function"!=typeof eA?eA:function(){var AA,tA=this._super,nA=this._superApply;return this._super=n,this._superApply=o,AA=eA.apply(this,arguments),this._super=tA,this._superApply=nA,AA}}),rA.prototype=AA.widget.extend(oA,{widgetEventPrefix:iA&&oA.widgetEventPrefix||eA},sA,{constructor:rA,namespace:aA,widgetName:eA,widgetFullName:cA}),iA?(AA.each(iA._childConstructors,function(eA,tA){var nA=tA.prototype;AA.widget(nA.namespace+"."+nA.widgetName,rA,tA._proto)}),delete iA._childConstructors):tA._childConstructors.push(rA),AA.widget.bridge(eA,rA),rA},AA.widget.extend=function(eA){for(var tA,nA,iA=hA.call(arguments,1),rA=0,oA=iA.length;rA",options:{classes:{},disabled:!1,create:null},_createWidget:function(eA,tA){tA=AA(tA||this.defaultElement||this)[0],this.element=AA(tA),this.uuid=gA++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=AA(),this.hoverable=AA(),this.focusable=AA(),this.classesElementLookup={},tA!==this&&(AA.data(tA,this.widgetFullName,this),this._on(!0,this.element,{remove:function(AA){AA.target===tA&&this.destroy()}}),this.document=AA(tA.style?tA.ownerDocument:tA.document||tA),this.window=AA(this.document[0].defaultView||this.document[0].parentWindow)),this.options=AA.widget.extend({},this.options,this._getCreateOptions(),eA),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:AA.noop,_create:AA.noop,_init:AA.noop,destroy:function(){var eA=this;this._destroy(),AA.each(this.classesElementLookup,function(AA,tA){eA._removeClass(tA,AA)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:AA.noop,widget:function(){return this.element},option:function(eA,tA){var nA,iA,rA,oA=eA;if(0===arguments.length)return AA.widget.extend({},this.options);if("string"==typeof eA)if(oA={},eA=(nA=eA.split(".")).shift(),nA.length){for(iA=oA[eA]=AA.widget.extend({},this.options[eA]),rA=0;rA
")).children()[0],AA("body").append(nA),eA=iA.offsetWidth,nA.css("overflow","scroll"),eA===(iA=iA.offsetWidth)&&(iA=nA[0].clientWidth),nA.remove(),tA=eA-iA)},getScrollInfo:function(eA){var tA=eA.isWindow||eA.isDocument?"":eA.element.css("overflow-x"),nA=eA.isWindow||eA.isDocument?"":eA.element.css("overflow-y");tA="scroll"===tA||"auto"===tA&&eA.widthnA(iA(oA),iA(hA))?fA.important="horizontal":fA.important="vertical",eA.using.call(this,AA,fA)}),sA.offset(AA.extend(MA,{using:oA}))})):lA.apply(this,arguments)},AA.ui.position={fit:{left:function(AA,eA){var tA,iA=(rA=eA.within).isWindow?rA.scrollLeft:rA.offset.left,rA=rA.width,oA=AA.left-eA.collisionPosition.marginLeft,sA=iA-oA,aA=oA+eA.collisionWidth-rA-iA;eA.collisionWidth>rA?0rA?0")[0],DA=fA.each;function m(AA){return null==AA?AA+"":"object"==typeof AA?dA[wA.call(AA)]||"object":typeof AA}function _(AA,eA,tA){var nA=mA[eA.type]||{};return null==AA?tA||!eA.def?null:eA.def:(AA=nA.floor?~~AA:parseFloat(AA),isNaN(AA)?eA.def:nA.mod?(AA+nA.mod)%nA.mod:Math.min(nA.max,Math.max(0,AA)))}function j(AA){var eA=QA(),tA=eA._rgba=[];return AA=AA.toLowerCase(),DA(EA,function(nA,iA){var rA=(rA=iA.re.exec(AA))&&iA.parse(rA);iA=iA.space||"rgba";if(rA)return rA=eA[iA](rA),eA[CA[iA].cache]=rA[CA[iA].cache],tA=eA._rgba=rA._rgba,!1}),tA.length?("0,0,0,0"===tA.join()&&fA.extend(tA,UA.transparent),eA):UA[AA]}function v(AA,eA,tA){return 6*(tA=(tA+1)%1)<1?AA+(eA-AA)*tA*6:2*tA<1?eA:3*tA<2?AA+(eA-AA)*(2/3-tA)*6:AA}yA.style.cssText="background-color:rgba(1,1,1,.5)",MA.rgba=-1cA.mod/2?sA+=cA.mod:sA-aA>cA.mod/2&&(sA-=cA.mod)),rA[nA]=_((aA-sA)*eA+sA,tA)))}),this[AA](rA)},blend:function(AA){var eA,tA,nA;return 1===this._rgba[3]?this:(eA=this._rgba.slice(),tA=eA.pop(),nA=QA(AA)._rgba,QA(fA.map(eA,function(AA,eA){return(1-tA)*nA[eA]+tA*AA})))},toRgbaString:function(){var AA="rgba(",eA=fA.map(this._rgba,function(AA,eA){return null!=AA?AA:2").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),iA={width:eA.width(),height:eA.height()},rA=document.activeElement;try{rA.id}catch(nA){rA=document.body}return eA.wrap(nA),eA[0]!==rA&&!AA.contains(eA[0],rA)||AA(rA).trigger("focus"),nA=eA.parent(),"static"===eA.css("position")?(nA.css({position:"relative"}),eA.css({position:"relative"})):(AA.extend(tA,{position:eA.css("position"),zIndex:eA.css("z-index")}),AA.each(["top","left","bottom","right"],function(AA,nA){tA[nA]=eA.css(nA),isNaN(parseInt(tA[nA],10))&&(tA[nA]="auto")}),eA.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),eA.css(iA),nA.css(tA).show()},removeWrapper:function(eA){var tA=document.activeElement;return eA.parent().is(".ui-effects-wrapper")&&(eA.parent().replaceWith(eA),eA[0]!==tA&&!AA.contains(eA[0],tA)||AA(tA).trigger("focus")),eA}}),AA.extend(AA.effects,{version:"1.13.3",define:function(eA,tA,nA){return nA||(nA=tA,tA="effect"),AA.effects.effect[eA]=nA,AA.effects.effect[eA].mode=tA,nA},scaledDimensions:function(AA,eA,tA){var nA;return 0===eA?{height:0,width:0,outerHeight:0,outerWidth:0}:(nA="horizontal"!==tA?(eA||100)/100:1,tA="vertical"!==tA?(eA||100)/100:1,{height:AA.height()*tA,width:AA.width()*nA,outerHeight:AA.outerHeight()*tA,outerWidth:AA.outerWidth()*nA})},clipToBox:function(AA){return{width:AA.clip.right-AA.clip.left,height:AA.clip.bottom-AA.clip.top,left:AA.clip.left,top:AA.clip.top}},unshift:function(AA,eA,tA){var nA=AA.queue();1").insertAfter(eA).css({display:/^(inline|ruby)/.test(eA.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:eA.css("marginTop"),marginBottom:eA.css("marginBottom"),marginLeft:eA.css("marginLeft"),marginRight:eA.css("marginRight"),float:eA.css("float")}).outerWidth(eA.outerWidth()).outerHeight(eA.outerHeight()).addClass("ui-effects-placeholder"),eA.data(kA+"placeholder",tA)),eA.css({position:nA,left:iA.left,top:iA.top}),tA},removePlaceholder:function(AA){var eA=kA+"placeholder",tA=AA.data(eA);tA&&(tA.remove(),AA.removeData(eA))},cleanUp:function(eA){AA.effects.restoreStyle(eA),AA.effects.removePlaceholder(eA)},setTransition:function(eA,tA,nA,iA){return iA=iA||{},AA.each(tA,function(AA,tA){var rA=eA.cssUnit(tA);0");cA.appendTo("body").addClass(eA.className).css({top:aA.top-oA,left:aA.left-rA,height:nA.innerHeight(),width:nA.innerWidth(),position:iA?"fixed":"absolute"}).animate(sA,eA.duration,eA.easing,function(){cA.remove(),"function"==typeof tA&&tA()})}}),AA.fx.step.clip=function(eA){eA.clipInit||(eA.start=AA(eA.elem).cssClip(),"string"==typeof eA.end&&(eA.end=et(eA.end,eA.elem)),eA.clipInit=!0),AA(eA.elem).cssClip({top:eA.pos*(eA.end.top-eA.start.top)+eA.start.top,right:eA.pos*(eA.end.right-eA.start.right)+eA.start.right,bottom:eA.pos*(eA.end.bottom-eA.start.bottom)+eA.start.bottom,left:eA.pos*(eA.end.left-eA.start.left)+eA.start.left})},zA={},AA.each(["Quad","Cubic","Quart","Quint","Expo"],function(AA,eA){zA[eA]=function(eA){return Math.pow(eA,AA+2)}}),AA.extend(zA,{Sine:function(AA){return 1-Math.cos(AA*Math.PI/2)},Circ:function(AA){return 1-Math.sqrt(1-AA*AA)},Elastic:function(AA){return 0===AA||1===AA?AA:-Math.pow(2,8*(AA-1))*Math.sin((80*(AA-1)-7.5)*Math.PI/15)},Back:function(AA){return AA*AA*(3*AA-2)},Bounce:function(AA){for(var eA,tA=4;AA<((eA=Math.pow(2,--tA))-1)/11;);return 1/Math.pow(4,3-tA)-7.5625*Math.pow((3*eA-2)/22-AA,2)}}),AA.each(zA,function(eA,tA){AA.easing["easeIn"+eA]=tA,AA.easing["easeOut"+eA]=function(AA){return 1-tA(1-AA)},AA.easing["easeInOut"+eA]=function(AA){return AA<.5?tA(2*AA)/2:1-tA(-2*AA+2)/2}}),yA=AA.effects,AA.effects.define("blind","hide",function(eA,tA){var nA={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},iA=AA(this),rA=eA.direction||"up",oA=iA.cssClip(),sA={clip:AA.extend({},oA)},aA=AA.effects.createPlaceholder(iA);sA.clip[nA[rA][0]]=sA.clip[nA[rA][1]],"show"===eA.mode&&(iA.cssClip(sA.clip),aA&&aA.css(AA.effects.clipToBox(sA)),sA.clip=oA),aA&&aA.animate(AA.effects.clipToBox(sA),eA.duration,eA.easing),iA.animate(sA,{queue:!1,duration:eA.duration,easing:eA.easing,complete:tA})}),AA.effects.define("bounce",function(eA,tA){var nA,iA,rA=AA(this),oA="hide"===(sA=eA.mode),sA="show"===sA,aA=eA.direction||"up",cA=eA.distance,lA=eA.times||5,gA=2*lA+(sA||oA?1:0),uA=eA.duration/gA,hA=eA.easing,BA="up"===aA||"down"===aA?"top":"left",fA="up"===aA||"left"===aA,dA=0;eA=rA.queue().length;for(AA.effects.createPlaceholder(rA),aA=rA.css(BA),cA=cA||rA["top"==BA?"outerHeight":"outerWidth"]()/3,sA&&((iA={opacity:1})[BA]=aA,rA.css("opacity",0).css(BA,fA?2*-cA:2*cA).animate(iA,uA,hA)),oA&&(cA/=Math.pow(2,lA-1)),(iA={})[BA]=aA;dA").css({position:"absolute",visibility:"visible",left:-iA*BA,top:-nA*fA}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:BA,height:fA,left:rA+(uA?sA*BA:0),top:oA+(uA?aA*fA:0),opacity:uA?0:1}).animate({left:rA+(uA?0:sA*BA),top:oA+(uA?0:aA*fA),opacity:uA?1:0},eA.duration||500,eA.easing,m)}),AA.effects.define("fade","toggle",function(eA,tA){var nA="show"===eA.mode;AA(this).css("opacity",nA?0:1).animate({opacity:nA?1:0},{queue:!1,duration:eA.duration,easing:eA.easing,complete:tA})}),AA.effects.define("fold","hide",function(eA,tA){var nA=AA(this),iA="show"===(rA=eA.mode),rA="hide"===rA,oA=eA.size||15,sA=/([0-9]+)%/.exec(oA),aA=eA.horizFirst?["right","bottom"]:["bottom","right"],cA=eA.duration/2,lA=AA.effects.createPlaceholder(nA),gA=nA.cssClip(),uA={clip:AA.extend({},gA)},hA={clip:AA.extend({},gA)},BA=[gA[aA[0]],gA[aA[1]]],fA=nA.queue().length;sA&&(oA=parseInt(sA[1],10)/100*BA[rA?0:1]),uA.clip[aA[0]]=oA,hA.clip[aA[0]]=oA,hA.clip[aA[1]]=0,iA&&(nA.cssClip(hA.clip),lA&&lA.css(AA.effects.clipToBox(hA)),hA.clip=gA),nA.queue(function(tA){lA&&lA.animate(AA.effects.clipToBox(uA),cA,eA.easing).animate(AA.effects.clipToBox(hA),cA,eA.easing),tA()}).animate(uA,cA,eA.easing).animate(hA,cA,eA.easing).queue(tA),AA.effects.unshift(nA,fA,4)}),AA.effects.define("highlight","show",function(eA,tA){var nA=AA(this),iA={backgroundColor:nA.css("backgroundColor")};"hide"===eA.mode&&(iA.opacity=0),AA.effects.saveStyle(nA),nA.css({backgroundImage:"none",backgroundColor:eA.color||"#ffff99"}).animate(iA,{queue:!1,duration:eA.duration,easing:eA.easing,complete:tA})}),AA.effects.define("size",function(eA,tA){var nA,iA=AA(this),rA=["fontSize"],oA=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],sA=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],aA=eA.mode,cA="effect"!==aA,lA=eA.scale||"both",gA=eA.origin||["middle","center"],uA=iA.css("position"),hA=iA.position(),BA=AA.effects.scaledDimensions(iA),fA=eA.from||BA,dA=eA.to||AA.effects.scaledDimensions(iA,0);AA.effects.createPlaceholder(iA),"show"===aA&&(aA=fA,fA=dA,dA=aA),nA={from:{y:fA.height/BA.height,x:fA.width/BA.width},to:{y:dA.height/BA.height,x:dA.width/BA.width}},"box"!==lA&&"both"!==lA||(nA.from.y!==nA.to.y&&(fA=AA.effects.setTransition(iA,oA,nA.from.y,fA),dA=AA.effects.setTransition(iA,oA,nA.to.y,dA)),nA.from.x!==nA.to.x&&(fA=AA.effects.setTransition(iA,sA,nA.from.x,fA),dA=AA.effects.setTransition(iA,sA,nA.to.x,dA))),"content"!==lA&&"both"!==lA||nA.from.y!==nA.to.y&&(fA=AA.effects.setTransition(iA,rA,nA.from.y,fA),dA=AA.effects.setTransition(iA,rA,nA.to.y,dA)),gA&&(aA=AA.effects.getBaseline(gA,BA),fA.top=(BA.outerHeight-fA.outerHeight)*aA.y+hA.top,fA.left=(BA.outerWidth-fA.outerWidth)*aA.x+hA.left,dA.top=(BA.outerHeight-dA.outerHeight)*aA.y+hA.top,dA.left=(BA.outerWidth-dA.outerWidth)*aA.x+hA.left),delete fA.outerHeight,delete fA.outerWidth,iA.css(fA),"content"!==lA&&"both"!==lA||(oA=oA.concat(["marginTop","marginBottom"]).concat(rA),sA=sA.concat(["marginLeft","marginRight"]),iA.find("*[width]").each(function(){var tA=AA(this),iA={height:(rA=AA.effects.scaledDimensions(tA)).height*nA.from.y,width:rA.width*nA.from.x,outerHeight:rA.outerHeight*nA.from.y,outerWidth:rA.outerWidth*nA.from.x},rA={height:rA.height*nA.to.y,width:rA.width*nA.to.x,outerHeight:rA.height*nA.to.y,outerWidth:rA.width*nA.to.x};nA.from.y!==nA.to.y&&(iA=AA.effects.setTransition(tA,oA,nA.from.y,iA),rA=AA.effects.setTransition(tA,oA,nA.to.y,rA)),nA.from.x!==nA.to.x&&(iA=AA.effects.setTransition(tA,sA,nA.from.x,iA),rA=AA.effects.setTransition(tA,sA,nA.to.x,rA)),cA&&AA.effects.saveStyle(tA),tA.css(iA),tA.animate(rA,eA.duration,eA.easing,function(){cA&&AA.effects.restoreStyle(tA)})})),iA.animate(dA,{queue:!1,duration:eA.duration,easing:eA.easing,complete:function(){var eA=iA.offset();0===dA.opacity&&iA.css("opacity",fA.opacity),cA||(iA.css("position","static"===uA?"relative":uA).offset(eA),AA.effects.saveStyle(iA)),tA()}})}),AA.effects.define("scale",function(eA,tA){var nA=AA(this),iA=eA.mode;iA=parseInt(eA.percent,10)||(0===parseInt(eA.percent,10)||"effect"!==iA?0:100),nA=AA.extend(!0,{from:AA.effects.scaledDimensions(nA),to:AA.effects.scaledDimensions(nA,iA,eA.direction||"both"),origin:eA.origin||["middle","center"]},eA);eA.fade&&(nA.from.opacity=1,nA.to.opacity=0),AA.effects.effect.size.call(this,nA,tA)}),AA.effects.define("puff","hide",function(eA,tA){eA=AA.extend(!0,{},eA,{fade:!0,percent:parseInt(eA.percent,10)||150}),AA.effects.effect.scale.call(this,eA,tA)}),AA.effects.define("pulsate","show",function(eA,tA){var nA=AA(this),iA="show"===(cA=eA.mode),rA=2*(eA.times||5)+(iA||"hide"===cA?1:0),oA=eA.duration/rA,sA=0,aA=1,cA=nA.queue().length;for(!iA&&nA.is(":visible")||(nA.css("opacity",0).show(),sA=1);aA li > :first-child").add(AA.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var eA=this.options;this.prevShow=this.prevHide=AA(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),eA.collapsible||!1!==eA.active&&null!=eA.active||(eA.active=0),this._processPanels(),eA.active<0&&(eA.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():AA()}},_createIcons:function(){var eA,tA=this.options.icons;tA&&(eA=AA(""),this._addClass(eA,"ui-accordion-header-icon","ui-icon "+tA.header),eA.prependTo(this.headers),eA=this.active.children(".ui-accordion-header-icon"),this._removeClass(eA,tA.header)._addClass(eA,null,tA.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var AA;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),AA=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&AA.css("height","")},_setOption:function(AA,eA){"active"===AA?this._activate(eA):("event"===AA&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(eA)),this._super(AA,eA),"collapsible"!==AA||eA||!1!==this.options.active||this._activate(0),"icons"===AA&&(this._destroyIcons(),eA)&&this._createIcons())},_setOptionDisabled:function(AA){this._super(AA),this.element.attr("aria-disabled",AA),this._toggleClass(null,"ui-state-disabled",!!AA),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!AA)},_keydown:function(eA){if(!eA.altKey&&!eA.ctrlKey){var tA=AA.ui.keyCode,nA=this.headers.length,iA=this.headers.index(eA.target),rA=!1;switch(eA.keyCode){case tA.RIGHT:case tA.DOWN:rA=this.headers[(iA+1)%nA];break;case tA.LEFT:case tA.UP:rA=this.headers[(iA-1+nA)%nA];break;case tA.SPACE:case tA.ENTER:this._eventHandler(eA);break;case tA.HOME:rA=this.headers[0];break;case tA.END:rA=this.headers[nA-1]}rA&&(AA(eA.target).attr("tabIndex",-1),AA(rA).attr("tabIndex",0),AA(rA).trigger("focus"),eA.preventDefault())}},_panelKeyDown:function(eA){eA.keyCode===AA.ui.keyCode.UP&&eA.ctrlKey&&AA(eA.currentTarget).prev().trigger("focus")},refresh:function(){var eA=this.options;this._processPanels(),!1===eA.active&&!0===eA.collapsible||!this.headers.length?(eA.active=!1,this.active=AA()):!1===eA.active?this._activate(0):this.active.length&&!AA.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(eA.active=!1,this.active=AA()):this._activate(Math.max(0,eA.active-1)):eA.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var AA=this.headers,eA=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),eA&&(this._off(AA.not(this.headers)),this._off(eA.not(this.panels)))},_refresh:function(){var eA,tA=this.options,nA=tA.heightStyle,iA=this.element.parent();this.active=this._findActive(tA.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var eA=AA(this),tA=eA.uniqueId().attr("id"),nA=eA.next(),iA=nA.uniqueId().attr("id");eA.attr("aria-controls",iA),nA.attr("aria-labelledby",tA)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(tA.event),"fill"===nA?(eA=iA.height(),this.element.siblings(":visible").each(function(){var tA=AA(this),nA=tA.css("position");"absolute"!==nA&&"fixed"!==nA&&(eA-=tA.outerHeight(!0))}),this.headers.each(function(){eA-=AA(this).outerHeight(!0)}),this.headers.next().each(function(){AA(this).height(Math.max(0,eA-AA(this).innerHeight()+AA(this).height()))}).css("overflow","auto")):"auto"===nA&&(eA=0,this.headers.next().each(function(){var tA=AA(this).is(":visible");tA||AA(this).show(),eA=Math.max(eA,AA(this).css("height","").height()),tA||AA(this).hide()}).height(eA))},_activate:function(eA){(eA=this._findActive(eA)[0])!==this.active[0]&&(eA=eA||this.active[0],this._eventHandler({target:eA,currentTarget:eA,preventDefault:AA.noop}))},_findActive:function(eA){return"number"==typeof eA?this.headers.eq(eA):AA()},_setupEvents:function(eA){var tA={keydown:"_keydown"};eA&&AA.each(eA.split(" "),function(AA,eA){tA[eA]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,tA),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(eA){var tA=this.options,nA=this.active,iA=AA(eA.currentTarget),rA=iA[0]===nA[0],oA=rA&&tA.collapsible,sA=oA?AA():iA.next(),aA=nA.next();aA={oldHeader:nA,oldPanel:aA,newHeader:oA?AA():iA,newPanel:sA};eA.preventDefault(),rA&&!tA.collapsible||!1===this._trigger("beforeActivate",eA,aA)||(tA.active=!oA&&this.headers.index(iA),this.active=rA?AA():iA,this._toggle(aA),this._removeClass(nA,"ui-accordion-header-active","ui-state-active"),tA.icons&&(sA=nA.children(".ui-accordion-header-icon"),this._removeClass(sA,null,tA.icons.activeHeader)._addClass(sA,null,tA.icons.header)),rA)||(this._removeClass(iA,"ui-accordion-header-collapsed")._addClass(iA,"ui-accordion-header-active","ui-state-active"),tA.icons&&(eA=iA.children(".ui-accordion-header-icon"),this._removeClass(eA,null,tA.icons.header)._addClass(eA,null,tA.icons.activeHeader)),this._addClass(iA.next(),"ui-accordion-content-active"))},_toggle:function(eA){var tA=eA.newPanel,nA=this.prevShow.length?this.prevShow:eA.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=tA,this.prevHide=nA,this.options.animate?this._animate(tA,nA,eA):(nA.hide(),tA.show(),this._toggleComplete(eA)),nA.attr({"aria-hidden":"true"}),nA.prev().attr({"aria-selected":"false","aria-expanded":"false"}),tA.length&&nA.length?nA.prev().attr({tabIndex:-1,"aria-expanded":"false"}):tA.length&&this.headers.filter(function(){return 0===parseInt(AA(this).attr("tabIndex"),10)}).attr("tabIndex",-1),tA.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(AA,eA,tA){function s(){iA._toggleComplete(tA)}var nA,iA=this,rA=0,oA=AA.css("box-sizing"),sA=AA.length&&(!eA.length||AA.index()",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(AA){AA.preventDefault(),this._activateItem(AA)},"click .ui-menu-item":function(eA){var tA=AA(eA.target),nA=AA(AA.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&tA.not(".ui-state-disabled").length&&(this.select(eA),eA.isPropagationStopped()||(this.mouseHandled=!0),tA.has(".ui-menu").length?this.expand(eA):!this.element.is(":focus")&&nA.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(AA,eA){var tA=this.active||this._menuItems().first();eA||this.focus(AA,tA)},blur:function(eA){this._delay(function(){AA.contains(this.element[0],AA.ui.safeActiveElement(this.document[0]))||this.collapseAll(eA)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(AA){this._closeOnDocumentClick(AA)&&this.collapseAll(AA,!0),this.mouseHandled=!1}})},_activateItem:function(eA){var tA,nA;this.previousFilter||eA.clientX===this.lastMousePosition.x&&eA.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:eA.clientX,y:eA.clientY},tA=AA(eA.target).closest(".ui-menu-item"),nA=AA(eA.currentTarget),tA[0]!==nA[0])||nA.is(".ui-state-active")||(this._removeClass(nA.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(eA,nA))},_destroy:function(){var eA=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),eA.children().each(function(){var eA=AA(this);eA.data("ui-menu-submenu-caret")&&eA.remove()})},_keydown:function(eA){var tA,nA,iA,rA=!0;switch(eA.keyCode){case AA.ui.keyCode.PAGE_UP:this.previousPage(eA);break;case AA.ui.keyCode.PAGE_DOWN:this.nextPage(eA);break;case AA.ui.keyCode.HOME:this._move("first","first",eA);break;case AA.ui.keyCode.END:this._move("last","last",eA);break;case AA.ui.keyCode.UP:this.previous(eA);break;case AA.ui.keyCode.DOWN:this.next(eA);break;case AA.ui.keyCode.LEFT:this.collapse(eA);break;case AA.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(eA);break;case AA.ui.keyCode.ENTER:case AA.ui.keyCode.SPACE:this._activate(eA);break;case AA.ui.keyCode.ESCAPE:this.collapse(eA);break;default:tA=this.previousFilter||"",iA=rA=!1,nA=96<=eA.keyCode&&eA.keyCode<=105?(eA.keyCode-96).toString():String.fromCharCode(eA.keyCode),clearTimeout(this.filterTimer),nA===tA?iA=!0:nA=tA+nA,tA=this._filterMenuItems(nA),(tA=iA&&-1!==tA.index(this.active.next())?this.active.nextAll(".ui-menu-item"):tA).length||(nA=String.fromCharCode(eA.keyCode),tA=this._filterMenuItems(nA)),tA.length?(this.focus(eA,tA),this.previousFilter=nA,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}rA&&eA.preventDefault()},_activate:function(AA){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(AA):this.select(AA))},refresh:function(){var eA,tA,nA=this,iA=this.options.icons.submenu,rA=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),eA=rA.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var eA=AA(this),tA=eA.prev(),rA=AA("").data("ui-menu-submenu-caret",!0);nA._addClass(rA,"ui-menu-icon","ui-icon "+iA),tA.attr("aria-haspopup","true").prepend(rA),eA.attr("aria-labelledby",tA.attr("id"))}),this._addClass(eA,"ui-menu","ui-widget ui-widget-content ui-front"),(eA=rA.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var eA=AA(this);nA._isDivider(eA)&&nA._addClass(eA,"ui-menu-divider","ui-widget-content")}),tA=(rA=eA.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(rA,"ui-menu-item")._addClass(tA,"ui-menu-item-wrapper"),eA.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!AA.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(AA,eA){var tA;"icons"===AA&&(tA=this.element.find(".ui-menu-icon"),this._removeClass(tA,null,this.options.icons.submenu)._addClass(tA,null,eA.submenu)),this._super(AA,eA)},_setOptionDisabled:function(AA){this._super(AA),this.element.attr("aria-disabled",String(AA)),this._toggleClass(null,"ui-state-disabled",!!AA)},focus:function(AA,eA){var tA;this.blur(AA,AA&&"focus"===AA.type),this._scrollIntoView(eA),this.active=eA.first(),tA=this.active.children(".ui-menu-item-wrapper"),this._addClass(tA,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",tA.attr("id")),tA=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(tA,null,"ui-state-active"),AA&&"keydown"===AA.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(tA=eA.children(".ui-menu")).length&&AA&&/^mouse/.test(AA.type)&&this._startOpening(tA),this.activeMenu=eA.parent(),this._trigger("focus",AA,{item:eA})},_scrollIntoView:function(eA){var tA,nA,iA;this._hasScroll()&&(tA=parseFloat(AA.css(this.activeMenu[0],"borderTopWidth"))||0,nA=parseFloat(AA.css(this.activeMenu[0],"paddingTop"))||0,tA=eA.offset().top-this.activeMenu.offset().top-tA-nA,nA=this.activeMenu.scrollTop(),iA=this.activeMenu.height(),eA=eA.outerHeight(),tA<0?this.activeMenu.scrollTop(nA+tA):iA",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var eA,tA,nA,iA="textarea"===(rA=this.element[0].nodeName.toLowerCase()),rA="input"===rA;this.isMultiLine=iA||!rA&&this._isContentEditable(this.element),this.valueMethod=this.element[iA||rA?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(iA){if(this.element.prop("readOnly"))tA=nA=eA=!0;else{tA=nA=eA=!1;var rA=AA.ui.keyCode;switch(iA.keyCode){case rA.PAGE_UP:eA=!0,this._move("previousPage",iA);break;case rA.PAGE_DOWN:eA=!0,this._move("nextPage",iA);break;case rA.UP:eA=!0,this._keyEvent("previous",iA);break;case rA.DOWN:eA=!0,this._keyEvent("next",iA);break;case rA.ENTER:this.menu.active&&(eA=!0,iA.preventDefault(),this.menu.select(iA));break;case rA.TAB:this.menu.active&&this.menu.select(iA);break;case rA.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(iA),iA.preventDefault());break;default:tA=!0,this._searchTimeout(iA)}}},keypress:function(nA){if(eA)eA=!1,this.isMultiLine&&!this.menu.element.is(":visible")||nA.preventDefault();else if(!tA){var iA=AA.ui.keyCode;switch(nA.keyCode){case iA.PAGE_UP:this._move("previousPage",nA);break;case iA.PAGE_DOWN:this._move("nextPage",nA);break;case iA.UP:this._keyEvent("previous",nA);break;case iA.DOWN:this._keyEvent("next",nA)}}},input:function(AA){nA?(nA=!1,AA.preventDefault()):this._searchTimeout(AA)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(AA){clearTimeout(this.searching),this.close(AA),this._change(AA)}}),this._initSource(),this.menu=AA("