PageSourceSearch

https://www.werstreamt.es/_resources/themes/wse/js/app.min.js?m=1790860320

js werstreamt.es collected 2026-10-02 03:03:24 UTC 520,464 bytes, 17 lines download raw bytes

vendor: 4,306 bytes, lines 1-2
1/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */
2!function(p,y){"object"==typeof module&&"object"==typeof module.exports?module.exports=p.document?y(p,!0):function(p){if(!p.document)throw new Error("jQuery requires a window with a document");return y(p)}:y(p)}("undefined"!=typeof window?window:this,(function(p,y){var C=[],T=p.document,D=C.slice,$=C.concat,P=C.push,I=C.indexOf,A={},E=A.toString,O=A.hasOwnProperty,N={},j="2.2.4",n=function(p,y){return new n.fn.init(p,y)},q=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,U=/^-ms-/,Y=/-([\da-z])/gi,r=function(p,y){return y.toUpperCase()};function s(p){var y=!!p&&"length"in p&&p.length,C=n.type(p);return"function"!==C&&!n.isWindow(p)&&("array"===C||0===y||"number"==typeof y&&y>0&&y-1 in p)}n.fn=n.prototype={jquery:j,constructor:n,selector:"",length:0,toArray:function(){return D.call(this)},get:function(p){return null!=p?0>p?this[p+this.length]:this[p]:D.call(this)},pushStack:function(p){var y=n.merge(this.constructor(),p);return y.prevObject=this,y.context=this.context,y},each:function(p){return n.each(this,p)},map:function(p){return this.pushStack(n.map(this,(function(y,C){return p.call(y,C,y)})))},slice:function(){return this.pushStack(D.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(p){var y=this.length,C=+p+(0>p?y:0);return this.pushStack(C>=0&&y>C?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:P,sort:C.sort,splice:C.splice},n.extend=n.fn.extend=function(){var p,y,C,T,D,$,P=arguments[0]||{},I=1,A=arguments.length,E=!1;for("boolean"==typeof P&&(E=P,P=arguments[I]||{},I++),"object"==typeof P||n.isFunction(P)||(P={}),I===A&&(P=this,I--);A>I;I++)if(null!=(p=arguments[I]))for(y in p)C=P[y],P!==(T=p[y])&&(E&&T&&(n.isPlainObject(T)||(D=n.isArray(T)))?(D?(D=!1,$=C&&n.isArray(C)?C:[]):$=C&&n.isPlainObject(C)?C:{},P[y]=n.extend(E,$,T)):void 0!==T&&(P[y]=T));return P},n.extend({expando:"jQuery"+(j+Math.random()).replace(/\D/g,""),isReady:!0,error:function(p){throw new Error(p)},noop:function(){},isFunction:function(p){return"function"===n.type(p)},isArray:Array.isArray,isWindow:function(p){return null!=p&&p===p.window},isNumeric:function(p){var y=p&&p.toString();return!n.isArray(p)&&y-parseFloat(y)+1>=0},isPlainObject:function(p){var y;if("object"!==n.type(p)||p.nodeType||n.isWindow(p))return!1;if(p.constructor&&!O.call(p,"constructor")&&!O.call(p.constructor.prototype||{},"isPrototypeOf"))return!1;for(y in p);return void 0===y||O.call(p,y)},isEmptyObject:function(p){var y;for(y in p)return!1;return!0},type:function(p){return null==p?p+"":"object"==typeof p||"function"==typeof p?A[E.call(p)]||"object":typeof p},globalEval:function(p){var y,C=eval;(p=n.trim(p))&&(1===p.indexOf("use strict")?((y=T.createElement("script")).text=p,T.head.appendChild(y).parentNode.removeChild(y)):C(p))},camelCase:function(p){return p.replace(U,"ms-").replace(Y,r)},nodeName:function(p,y){return p.nodeName&&p.nodeName.toLowerCase()===y.toLowerCase()},each:function(p,y){var C,T=0;if(s(p))for(C=p.length;C>T&&!1!==y.call(p[T],T,p[T]);T++);else for(T in p)if(!1===y.call(p[T],T,p[T]))break;return p},trim:function(p){return null==p?"":(p+"").replace(q,"")},makeArray:function(p,y){var C=y||[];return null!=p&&(s(Object(p))?n.merge(C,"string"==typeof p?[p]:p):P.call(C,p)),C},inArray:function(p,y,C){return null==y?-1:I.call(y,p,C)},merge:function(p,y){for(var C=+y.length,T=0,D=p.length;C>T;T++)p[D++]=y[T];return p.length=D,p},grep:function(p,y,C){for(var T=[],D=0,$=p.length,P=!C;$>D;D++)!y(p[D],D)!==P&&T.push(p[D]);return T},map:function(p,y,C){var T,D,P=0,I=[];if(s(p))for(T=p.length;T>P;P++)null!=(D=y(p[P],P,C))&&I.push(D);else for(P in p)null!=(D=y(p[P],P,C))&&I.push(D);return $.apply([],I)},guid:1,proxy:function(p,y){var C,T,$;return"string"==typeof y&&(C=p[y],y=p,p=C),n.isFunction(p)?(T=D.call(arguments,2),$=function(){return p.apply(y||this,T.concat(D.call(arguments)))},$.guid=p.guid=p.guid||n.guid++,$):void 0},now:Date.now,support:N}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=C[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(p,y){A["[object "+y+"]"]=y.toLowerCase()}));var X=function(p){var y,C,T,D,$,P,I,A,E,O,N,j,q,U,Y,X,Q,G,Z,tt="sizzle"+1*ne
vendor: 14,431 bytes, line 2
2w Date,et=p.document,it=0,nt=0,st=ga(),ot=ga(),at=ga(),B=function(p,y){return p===y&&(N=!0),0},rt=1<<31,lt={}.hasOwnProperty,ct=[],dt=ct.pop,ht=ct.push,ut=ct.push,pt=ct.slice,J=function(p,y){for(var C=0,T=p.length;T>C;C++)if(p[C]===y)return C;return-1},ft="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",gt="[\\x20\\t\\r\\n\\f]",mt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vt="\\["+gt+"*("+mt+")(?:"+gt+"*([*^$|!~]?=)"+gt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+mt+"))|)"+gt+"*\\]",bt=":("+mt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vt+")*)|.*)\\)|)",_t=new RegExp(gt+"+","g"),yt=new RegExp("^"+gt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+gt+"+$","g"),wt=new RegExp("^"+gt+"*,"+gt+"*"),xt=new RegExp("^"+gt+"*([>+~]|"+gt+")"+gt+"*"),kt=new RegExp("="+gt+"*([^\\]'\"]*?)"+gt+"*\\]","g"),Ct=new RegExp(bt),Tt=new RegExp("^"+mt+"$"),St={ID:new RegExp("^#("+mt+")"),CLASS:new RegExp("^\\.("+mt+")"),TAG:new RegExp("^("+mt+"|[*])"),ATTR:new RegExp("^"+vt),PSEUDO:new RegExp("^"+bt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+gt+"*(even|odd|(([+-]|)(\\d*)n|)"+gt+"*(?:([+-]|)"+gt+"*(\\d+)|))"+gt+"*\\)|)","i"),bool:new RegExp("^(?:"+ft+")$","i"),needsContext:new RegExp("^"+gt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+gt+"*((?:-\\d)?\\d*)"+gt+"*\\)|)(?=[^-]|$)","i")},Dt=/^(?:input|select|textarea|button)$/i,$t=/^h\d$/i,Pt=/^[^{]+\{\s*\[native \w/,It=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Lt=/[+~]/,Mt=/'|\\/g,At=new RegExp("\\\\([\\da-f]{1,6}"+gt+"?|("+gt+")|.)","ig"),ca=function(p,y,C){var T="0x"+y-65536;return T!=T||C?y:0>T?String.fromCharCode(T+65536):String.fromCharCode(T>>10|55296,1023&T|56320)},da=function(){j()};try{ut.apply(ct=pt.call(et.childNodes),et.childNodes),ct[et.childNodes.length].nodeType}catch(p){ut={apply:ct.length?function(p,y){ht.apply(p,pt.call(y))}:function(p,y){for(var C=p.length,T=0;p[C++]=y[T++];);p.length=C-1}}}function fa(p,y,T,D){var $,I,E,O,N,U,Q,G,it=y&&y.ownerDocument,nt=y?y.nodeType:9;if(T=T||[],"string"!=typeof p||!p||1!==nt&&9!==nt&&11!==nt)return T;if(!D&&((y?y.ownerDocument||y:et)!==q&&j(y),y=y||q,Y)){if(11!==nt&&(U=It.exec(p)))if($=U[1]){if(9===nt){if(!(E=y.getElementById($)))return T;if(E.id===$)return T.push(E),T}else if(it&&(E=it.getElementById($))&&Z(y,E)&&E.id===$)return T.push(E),T}else{if(U[2])return ut.apply(T,y.getElementsByTagName(p)),T;if(($=U[3])&&C.getElementsByClassName&&y.getElementsByClassName)return ut.apply(T,y.getElementsByClassName($)),T}if(C.qsa&&!at[p+" "]&&(!X||!X.test(p))){if(1!==nt)it=y,G=p;else if("object"!==y.nodeName.toLowerCase()){for((O=y.getAttribute("id"))?O=O.replace(Mt,"\\$&"):y.setAttribute("id",O=tt),I=(Q=P(p)).length,N=Tt.test(O)?"#"+O:"[id='"+O+"']";I--;)Q[I]=N+" "+qa(Q[I]);G=Q.join(","),it=Lt.test(p)&&oa(y.parentNode)||y}if(G)try{return ut.apply(T,it.querySelectorAll(G)),T}catch(p){}finally{O===tt&&y.removeAttribute("id")}}}return A(p.replace(yt,"$1"),y,T,D)}function ga(){var p=[];return function b(y,C){return p.push(y+" ")>T.cacheLength&&delete b[p.shift()],b[y+" "]=C}}function ha(p){return p[tt]=!0,p}function ia(p){var y=q.createElement("div");try{return!!p(y)}catch(p){return!1}finally{y.parentNode&&y.parentNode.removeChild(y),y=null}}function ja(p,y){for(var C=p.split("|"),D=C.length;D--;)T.attrHandle[C[D]]=y}function ka(p,y){var C=y&&p,T=C&&1===p.nodeType&&1===y.nodeType&&(~y.sourceIndex||rt)-(~p.sourceIndex||rt);if(T)return T;if(C)for(;C=C.nextSibling;)if(C===y)return-1;return p?1:-1}function la(p){return function(y){return"input"===y.nodeName.toLowerCase()&&y.type===p}}function ma(p){return function(y){var C=y.nodeName.toLowerCase();return("input"===C||"button"===C)&&y.type===p}}function na(p){return ha((function(y){return y=+y,ha((function(C,T){for(var D,$=p([],C.length,y),P=$.length;P--;)C[D=$[P]]&&(C[D]=!(T[D]=C[D]))}))}))}function oa(p){return p&&void 0!==p.getElementsByTagName&&p}for(y in C=fa.support={},$=fa.isXML=function(p){var y=p&&(p.ownerDocument||p).documentElement;return!!y&&"HTML"!==y.nodeName},j=fa.setDocument=function(p){var y,D,P=p?p.ownerDocument||p:et;return P!==q&&9===P.nodeType&&P.documentElement?(U=(q=P).documentElement,Y=!$(q),(D=q.defaultView)&&D.top!==D&&(D.addEventListener?D.addEventListener("unload",da,!1):D.attachEvent&&D.attachEvent("onunload",da)),C.attributes=ia((function(p){return p.className="i",!p.getAttribute("className")})),C.getElementsByTagName=ia((function(p){return p.appendChild(q.createComment("")),!p.getElementsByTagName("*").length})),C.getElementsByClassName=Pt.test(q.getElementsByClassName),C.getById=ia((function(p){return U.appendChild(p).id=tt,!q.getElementsByName||!q.getElementsByName(tt).length})),C.getById?(T.find.ID=function(p,y){if(void 0!==y.getElementById&&Y){var C=y.getElementById(p);return C?[C]:[]}},T.filter.ID=function(p){var y=p.replace(At,ca);return function(p){return p.getAttribute("id")===y}}):(delete T.find.ID,T.filter.ID=function(p){var y=p.replace(At,ca);return function(p){var C=void 0!==p.getAttributeNode&&p.getAttributeNode("id");return C&&C.value===y}}),T.find.TAG=C.getElementsByTagName?function(p,y){return void 0!==y.getElementsByTagName?y.getElementsByTagName(p):C.qsa?y.querySelectorAll(p):void 0}:function(p,y){var C,T=[],D=0,$=y.getElementsByTagName(p);if("*"===p){for(;C=$[D++];)1===C.nodeType&&T.push(C);return T}return $},T.find.CLASS=C.getElementsByClassName&&function(p,y){return void 0!==y.getElementsByClassName&&Y?y.getElementsByClassName(p):void 0},Q=[],X=[],(C.qsa=Pt.test(q.querySelectorAll))&&(ia((function(p){U.appendChild(p).innerHTML="<a id='"+tt+"'></a><select id='"+tt+"-\r\\' msallowcapture=''><option selected=''></option></select>",p.querySelectorAll("[msallowcapture^='']").length&&X.push("[*^$]="+gt+"*(?:''|\"\")"),p.querySelectorAll("[selected]").length||X.push("\\["+gt+"*(?:value|"+ft+")"),p.querySelectorAll("[id~="+tt+"-]").length||X.push("~="),p.querySelectorAll(":checked").length||X.push(":checked"),p.querySelectorAll("a#"+tt+"+*").length||X.push(".#.+[+~]")})),ia((function(p){var y=q.createElement("input");y.setAttribute("type","hidden"),p.appendChild(y).setAttribute("name","D"),p.querySelectorAll("[name=d]").length&&X.push("name"+gt+"*[*^$|!~]?="),p.querySelectorAll(":enabled").length||X.push(":enabled",":disabled"),p.querySelectorAll("*,:x"),X.push(",.*:")}))),(C.matchesSelector=Pt.test(G=U.matches||U.webkitMatchesSelector||U.mozMatchesSelector||U.oMatchesSelector||U.msMatchesSelector))&&ia((function(p){C.disconnectedMatch=G.call(p,"div"),G.call(p,"[s!='']:x"),Q.push("!=",bt)})),X=X.length&&new RegExp(X.join("|")),Q=Q.length&&new RegExp(Q.join("|")),y=Pt.test(U.compareDocumentPosition),Z=y||Pt.test(U.contains)?function(p,y){var C=9===p.nodeType?p.documentElement:p,T=y&&y.parentNode;return p===T||!(!T||1!==T.nodeType||!(C.contains?C.contains(T):p.compareDocumentPosition&&16&p.compareDocumentPosition(T)))}:function(p,y){if(y)for(;y=y.parentNode;)if(y===p)return!0;return!1},B=y?function(p,y){if(p===y)return N=!0,0;var T=!p.compareDocumentPosition-!y.compareDocumentPosition;return T||(1&(T=(p.ownerDocument||p)===(y.ownerDocument||y)?p.compareDocumentPosition(y):1)||!C.sortDetached&&y.compareDocumentPosition(p)===T?p===q||p.ownerDocument===et&&Z(et,p)?-1:y===q||y.ownerDocument===et&&Z(et,y)?1:O?J(O,p)-J(O,y):0:4&T?-1:1)}:function(p,y){if(p===y)return N=!0,0;var C,T=0,D=p.parentNode,$=y.parentNode,P=[p],I=[y];if(!D||!$)return p===q?-1:y===q?1:D?-1:$?1:O?J(O,p)-J(O,y):0;if(D===$)return ka(p,y);for(C=p;C=C.parentNode;)P.unshift(C);for(C=y;C=C.parentNode;)I.unshift(C);for(;P[T]===I[T];)T++;return T?ka(P[T],I[T]):P[T]===et?-1:I[T]===et?1:0},q):q},fa.matches=function(p,y){return fa(p,null,null,y)},fa.matchesSelector=function(p,y){if((p.ownerDocument||p)!==q&&j(p),y=y.replace(kt,"='$1']"),C.matchesSelector&&Y&&!at[y+" "]&&(!Q||!Q.test(y))&&(!X||!X.test(y)))try{var T=G.call(p,y);if(T||C.disconnectedMatch||p.document&&11!==p.document.nodeType)return T}catch(p){}return fa(y,q,null,[p]).length>0},fa.contains=function(p,y){return(p.ownerDocument||p)!==q&&j(p),Z(p,y)},fa.attr=function(p,y){(p.ownerDocument||p)!==q&&j(p);var D=T.attrHandle[y.toLowerCase()],$=D&&lt.call(T.attrHandle,y.toLowerCase())?D(p,y,!Y):void 0;return void 0!==$?$:C.attributes||!Y?p.getAttribute(y):($=p.getAttributeNode(y))&&$.specified?$.value:null},fa.error=function(p){throw new Error("Syntax error, unrecognized expression: "+p)},fa.uniqueSort=function(p){var y,T=[],D=0,$=0;if(N=!C.detectDuplicates,O=!C.sortStable&&p.slice(0),p.sort(B),N){for(;y=p[$++];)y===p[$]&&(D=T.push($));for(;D--;)p.splice(T[D],1)}return O=null,p},D=fa.getText=function(p){var y,C="",T=0,$=p.nodeType;if($){if(1===$||9===$||11===$){if("string"==typeof p.textContent)return p.textContent;for(p=p.firstChild;p;p=p.nextSibling)C+=D(p)}else if(3===$||4===$)return p.nodeValue}else for(;y=p[T++];)C+=D(y);return C},T=fa.selectors={cacheLength:50,createPseudo:ha,match:St,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(p){return p[1]=p[1].replace(At,ca),p[3]=(p[3]||p[4]||p[5]||"").replace(At,ca),"~="===p[2]&&(p[3]=" "+p[3]+" "),p.slice(0,4)},CHILD:function(p){return p[1]=p[1].toLowerCase(),"nth"===p[1].slice(0,3)?(p[3]||fa.error(p[0]),p[4]=+(p[4]?p[5]+(p[6]||1):2*("even"===p[3]||"odd"===p[3])),p[5]=+(p[7]+p[8]||"odd"===p[3])):p[3]&&fa.error(p[0]),p},PSEUDO:function(p){var y,C=!p[6]&&p[2];return St.CHILD.test(p[0])?null:(p[3]?p[2]=p[4]||p[5]||"":C&&Ct.test(C)&&(y=P(C,!0))&&(y=C.indexOf(")",C.length-y)-C.length)&&(p[0]=p[0].slice(0,y),p[2]=C.slice(0,y)),p.slice(0,3))}},filter:{TAG:function(p){var y=p.replace(At,ca).toLowerCase();return"*"===p?function(){return!0}:function(p){return p.nodeName&&p.nodeName.toLowerCase()===y}},CLASS:function(p){var y=st[p+" "];return y||(y=new RegExp("(^|"+gt+")"+p+"("+gt+"|$)"))&&st(p,(function(p){return y.test("string"==typeof p.className&&p.className||void 0!==p.getAttribute&&p.getAttribute("class")||"")}))},ATTR:function(p,y,C){return function(T){var D=fa.attr(T,p);return null==D?"!="===y:!y||(D+="","="===y?D===C:"!="===y?D!==C:"^="===y?C&&0===D.indexOf(C):"*="===y?C&&D.indexOf(C)>-1:"$="===y?C&&D.slice(-C.length)===C:"~="===y?(" "+D.replace(_t," ")+" ").indexOf(C)>-1:"|="===y&&(D===C||D.slice(0,C.length+1)===C+"-"))}},CHILD:function(p,y,C,T,D){var $="nth"!==p.slice(0,3),P="last"!==p.slice(-4),I="of-type"===y;return 1===T&&0===D?function(p){return!!p.parentNode}:function(y,C,A){var E,O,N,j,q,U,Y=$!==P?"nextSibling":"previousSibling",X=y.parentNode,Q=I&&y.nodeName.toLowerCase(),G=!A&&!I,Z=!1;if(X){if($){for(;Y;){for(j=y;j=j[Y];)if(I?j.nodeName.toLowerCase()===Q:1===j.nodeType)return!1;U=Y="only"===p&&!U&&"nextSibling"}return!0}if(U=[P?X.firstChild:X.lastChild],P&&G){for(Z=(q=(E=(O=(N=(j=X)[tt]||(j[tt]={}))[j.uniqueID]||(N[j.uniqueID]={}))[p]||[])[0]===it&&E[1])&&E[2],j=q&&X.childNodes[q];j=++q&&j&&j[Y]||(Z=q=0)||U.pop();)if(1===j.nodeType&&++Z&&j===y){O[p]=[it,q,Z];break}}else if(G&&(Z=q=(E=(O=(N=(j=y)[tt]||(j[tt]={}))[j.uniqueID]||(N[j.uniqueID]={}))[p]||[])[0]===it&&E[1]),!1===Z)for(;(j=++q&&j&&j[Y]||(Z=q=0)||U.pop())&&((I?j.nodeName.toLowerCase()!==Q:1!==j.nodeType)||!++Z||(G&&((O=(N=j[tt]||(j[tt]={}))[j.uniqueID]||(N[j.uniqueID]={}))[p]=[it,Z]),j!==y)););return(Z-=D)===T||Z%T==0&&Z/T>=0}}},PSEUDO:function(p,y){var C,D=T.pseudos[p]||T.setFilters[p.toLowerCase()]||fa.error("unsupported pseudo: "+p);return D[tt]?D(y):D.length>1?(C=[p,p,"",y],T.setFilters.hasOwnProperty(p.toLowerCase())?ha((function(p,C){for(var T,$=D(p,y),P=$.length;P--;)p[T=J(p,$[P])]=!(C[T]=$[P])})):function(p){return D(p,0,C)}):D}},pseudos:{not:ha((function(p){var y=[],C=[],T=I(p.replace(yt,"$1"));return T[tt]?ha((function(p,y,C,D){for(var $,P=T(p,null,D,[]),I=p.length;I--;)($=P[I])&&(p[I]=!(y[I]=$))})):function(p,D,$){return y[0]=p,T(y,null,$,C),y[0]=null,!C.pop()}})),has:ha((function(p){return function(y){return fa(p,y).length>0}})),contains:ha((function(p){return p=p.replace(At,ca),function(y){return(y.textContent||y.innerText||D(y)).indexOf(p)>-1}})),lang:ha((function(p){return Tt.test(p||"")||fa.error("unsupported lang: "+p),p=p.replace(At,ca).toLowerCase(),function(y){var C;do{if(C=Y?y.lang:y.getAttribute("xml:lang")||y.getAttribute("lang"))return(C=C.toLowerCase())===p||0===C.indexOf(p+"-")}while((y=y.parentNode)&&1===y.nodeType);return!1}})),target:function(y){var C=p.location&&p.location.hash;return C&&C.slice(1)===y.id},root:function(p){return p===U},focus:function(p){return p===q.activeElement&&(!q.hasFocus||q.hasFocus())&&!!(p.type||p.href||~p.tabIndex)},enabled:function(p){return!1===p.disabled},disabled:function(p){return!0===p.disabled},checked:function(p){var y=p.nodeName.toLowerCase();return"input"===y&&!!p.checked||"option"===y&&!!p.selected},selected:function(p){return p.parentNode&&p.parentNode.selectedIndex,!0===p.selected},empty:function(p){for(p=p.firstChild;p;p=p.nextSibling)if(p.nodeType<6)return!1;return!0},parent:function(p){return!T.pseudos.empty(p)},header:function(p){return $t.test(p.nodeName)},input:function(p){return Dt.test(p.nodeName)},button:function(p){var y=p.nodeName.toLowerCase();return"input"===y&&"button"===p.type||"button"===y},text:function(p){var y;return"input"===p.nodeName.toLowerCase()&&"text"===p.type&&(null==(y=p.getAttribute("type"))||"text"===y.toLowerCase())},first:na((function(){return[0]})),last:na((function(p,y){return[y-1]})),eq:na((function(p,y,C){return[0>C?C+y:C]})),even:na((function(p,y){for(var C=0;y>C;C+=2)p.push(C);return p})),odd:na((function(p,y){for(var C=1;y>C;C+=2)p.push(C);return p})),lt:na((function(p,y,C){for(var T=0>C?C+y:C;--T>=0;)p.push(T);return p})),gt:na((function(p,y,C){for(var T=0>C?C+y:C;++T<y;)p.push(T);return p}))}},T.pseudos.nth=T.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[y]=la(y);for(y in{submit:!0,reset:!0})T.pseudos[y]=ma(y);function pa(){}function qa(p){for(var y=0,C=p.length,T="";C>y;y++)T+=p[y].value;return T}function ra(p,y,C){var T=y.dir,D=C&&"parentNode"===T,$=nt++;return y.first?function(y,C,$){for(;y=y[T];)if(1===y.nodeType||D)return p(y,C,$)}:function(y,C,P){var I,A,E,O=[it,$];if(P){for(;y=y[T];)if((1===y.nodeType||D)&&p(y,C,P))return!0}else for(;y=y[T];)if(1===y.nodeType||D){if((I=(A=(E=y[tt]||(y[tt]={}))[y.uniqueID]||(E[y.uniqueID]={}))[T])&&I[0]===it&&I[1]===$)return O[2]=I[2];
vendor: 5,823 bytes, line 2
2if(A[T]=O,O[2]=p(y,C,P))return!0}}}function sa(p){return p.length>1?function(y,C,T){for(var D=p.length;D--;)if(!p[D](y,C,T))return!1;return!0}:p[0]}function ua(p,y,C,T,D){for(var $,P=[],I=0,A=p.length,E=null!=y;A>I;I++)($=p[I])&&(C&&!C($,T,D)||(P.push($),E&&y.push(I)));return P}function va(p,y,C,T,D,$){return T&&!T[tt]&&(T=va(T)),D&&!D[tt]&&(D=va(D,$)),ha((function($,P,I,A){var E,O,N,j=[],q=[],U=P.length,Y=$||function ta(p,y,C){for(var T=0,D=y.length;D>T;T++)fa(p,y[T],C);return C}(y||"*",I.nodeType?[I]:I,[]),X=!p||!$&&y?Y:ua(Y,j,p,I,A),Q=C?D||($?p:U||T)?[]:P:X;if(C&&C(X,Q,I,A),T)for(E=ua(Q,q),T(E,[],I,A),O=E.length;O--;)(N=E[O])&&(Q[q[O]]=!(X[q[O]]=N));if($){if(D||p){if(D){for(E=[],O=Q.length;O--;)(N=Q[O])&&E.push(X[O]=N);D(null,Q=[],E,A)}for(O=Q.length;O--;)(N=Q[O])&&(E=D?J($,N):j[O])>-1&&($[E]=!(P[E]=N))}}else Q=ua(Q===P?Q.splice(U,Q.length):Q),D?D(null,P,Q,A):ut.apply(P,Q)}))}function wa(p){for(var y,C,D,$=p.length,P=T.relative[p[0].type],I=P||T.relative[" "],A=P?1:0,O=ra((function(p){return p===y}),I,!0),N=ra((function(p){return J(y,p)>-1}),I,!0),j=[function(p,C,T){var D=!P&&(T||C!==E)||((y=C).nodeType?O(p,C,T):N(p,C,T));return y=null,D}];$>A;A++)if(C=T.relative[p[A].type])j=[ra(sa(j),C)];else{if((C=T.filter[p[A].type].apply(null,p[A].matches))[tt]){for(D=++A;$>D&&!T.relative[p[D].type];D++);return va(A>1&&sa(j),A>1&&qa(p.slice(0,A-1).concat({value:" "===p[A-2].type?"*":""})).replace(yt,"$1"),C,D>A&&wa(p.slice(A,D)),$>D&&wa(p=p.slice(D)),$>D&&qa(p))}j.push(C)}return sa(j)}function xa(p,y){var C=y.length>0,D=p.length>0,f=function($,P,I,A,O){var N,U,X,Q=0,G="0",Z=$&&[],tt=[],et=E,nt=$||D&&T.find.TAG("*",O),st=it+=null==et?1:Math.random()||.1,ot=nt.length;for(O&&(E=P===q||P||O);G!==ot&&null!=(N=nt[G]);G++){if(D&&N){for(U=0,P||N.ownerDocument===q||(j(N),I=!Y);X=p[U++];)if(X(N,P||q,I)){A.push(N);break}O&&(it=st)}C&&((N=!X&&N)&&Q--,$&&Z.push(N))}if(Q+=G,C&&G!==Q){for(U=0;X=y[U++];)X(Z,tt,P,I);if($){if(Q>0)for(;G--;)Z[G]||tt[G]||(tt[G]=dt.call(A));tt=ua(tt)}ut.apply(A,tt),O&&!$&&tt.length>0&&Q+y.length>1&&fa.uniqueSort(A)}return O&&(it=st,E=et),Z};return C?ha(f):f}return pa.prototype=T.filters=T.pseudos,T.setFilters=new pa,P=fa.tokenize=function(p,y){var C,D,$,P,I,A,E,O=ot[p+" "];if(O)return y?0:O.slice(0);for(I=p,A=[],E=T.preFilter;I;){for(P in C&&!(D=wt.exec(I))||(D&&(I=I.slice(D[0].length)||I),A.push($=[])),C=!1,(D=xt.exec(I))&&(C=D.shift(),$.push({value:C,type:D[0].replace(yt," ")}),I=I.slice(C.length)),T.filter)!(D=St[P].exec(I))||E[P]&&!(D=E[P](D))||(C=D.shift(),$.push({value:C,type:P,matches:D}),I=I.slice(C.length));if(!C)break}return y?I.length:I?fa.error(p):ot(p,A).slice(0)},I=fa.compile=function(p,y){var C,T=[],D=[],$=at[p+" "];if(!$){for(y||(y=P(p)),C=y.length;C--;)($=wa(y[C]))[tt]?T.push($):D.push($);($=at(p,xa(D,T))).selector=p}return $},A=fa.select=function(p,y,D,$){var A,E,O,N,j,q="function"==typeof p&&p,U=!$&&P(p=q.selector||p);if(D=D||[],1===U.length){if((E=U[0]=U[0].slice(0)).length>2&&"ID"===(O=E[0]).type&&C.getById&&9===y.nodeType&&Y&&T.relative[E[1].type]){if(!(y=(T.find.ID(O.matches[0].replace(At,ca),y)||[])[0]))return D;q&&(y=y.parentNode),p=p.slice(E.shift().value.length)}for(A=St.needsContext.test(p)?0:E.length;A--&&(O=E[A],!T.relative[N=O.type]);)if((j=T.find[N])&&($=j(O.matches[0].replace(At,ca),Lt.test(E[0].type)&&oa(y.parentNode)||y))){if(E.splice(A,1),!(p=$.length&&qa(E)))return ut.apply(D,$),D;break}}return(q||I(p,U))($,y,!Y,D,!y||Lt.test(p)&&oa(y.parentNode)||y),D},C.sortStable=tt.split("").sort(B).join("")===tt,C.detectDuplicates=!!N,j(),C.sortDetached=ia((function(p){return 1&p.compareDocumentPosition(q.createElement("div"))})),ia((function(p){return p.innerHTML="<a href='#'></a>","#"===p.firstChild.getAttribute("href")}))||ja("type|href|height|width",(function(p,y,C){return C?void 0:p.getAttribute(y,"type"===y.toLowerCase()?1:2)})),C.attributes&&ia((function(p){return p.innerHTML="<input/>",p.firstChild.setAttribute("value",""),""===p.firstChild.getAttribute("value")}))||ja("value",(function(p,y,C){return C||"input"!==p.nodeName.toLowerCase()?void 0:p.defaultValue})),ia((function(p){return null==p.getAttribute("disabled")}))||ja(ft,(function(p,y,C){var T;return C?void 0:!0===p[y]?y.toLowerCase():(T=p.getAttributeNode(y))&&T.specified?T.value:null})),fa}(p);n.find=X,n.expr=X.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=X.uniqueSort,n.text=X.getText,n.isXMLDoc=X.isXML,n.contains=X.contains;var u=function(p,y,C){for(var T=[],D=void 0!==C;(p=p[y])&&9!==p.nodeType;)if(1===p.nodeType){if(D&&n(p).is(C))break;T.push(p)}return T},v=function(p,y){for(var C=[];p;p=p.nextSibling)1===p.nodeType&&p!==y&&C.push(p);return C},Q=n.expr.match.needsContext,G=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Z=/^.[^:#\[\.,]*$/;function z(p,y,C){if(n.isFunction(y))return n.grep(p,(function(p,T){return!!y.call(p,T,p)!==C}));if(y.nodeType)return n.grep(p,(function(p){return p===y!==C}));if("string"==typeof y){if(Z.test(y))return n.filter(y,p,C);y=n.filter(y,p)}return n.grep(p,(function(p){return I.call(y,p)>-1!==C}))}n.filter=function(p,y,C){var T=y[0];return C&&(p=":not("+p+")"),1===y.length&&1===T.nodeType?n.find.matchesSelector(T,p)?[T]:[]:n.find.matches(p,n.grep(y,(function(p){return 1===p.nodeType})))},n.fn.extend({find:function(p){var y,C=this.length,T=[],D=this;if("string"!=typeof p)return this.pushStack(n(p).filter((function(){for(y=0;C>y;y++)if(n.contains(D[y],this))return!0})));for(y=0;C>y;y++)n.find(p,D[y],T);return(T=this.pushStack(C>1?n.unique(T):T)).selector=this.selector?this.selector+" "+p:p,T},filter:function(p){return this.pushStack(z(this,p||[],!1))},not:function(p){return this.pushStack(z(this,p||[],!0))},is:function(p){return!!z(this,"string"==typeof p&&Q.test(p)?n(p):p||[],!1).length}});var tt,et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,it=n.fn.init=function(p,y,C){var D,$;if(!p)return this;
2if(C=C||tt,"string"==typeof p){if(!(D="<"===p[0]&&">"===p[p.length-1]&&p.length>=3?[null,p,null]:et.exec(p))||!D[1]&&y)return!y||y.jquery?(y||C).find(p):this.constructor(y).find(p);if(D[1]){if(y=y instanceof n?y[0]:y,n.merge(this,n.parseHTML(D[1],y&&y.nodeType?y.ownerDocument||y:T,!0)),G.test(D[1])&&n.isPlainObject(y))for(D in y)n.isFunction(this[D])?this[D](y[D]):this.attr(D,y[D]);return this}return($=T.getElementById(D[2]))&&$.parentNode&&(this.length=1,this[0]=$),this.context=T,this.selector=p,this}return p.nodeType?(this.context=this[0]=p,this.length=1,this):n.isFunction(p)?void 0!==C.ready?C.ready(p):p(n):(void 0!==p.selector&&(this.selector=p.selector,this.context=p.context),n.makeArray(p,this))};it.prototype=n.fn,tt=n(T);var nt=/^(?:parents|prev(?:Until|All))/,st={children:!0,contents:!0,next:!0,prev:!0};function F(p,y){for(;(p=p[y])&&1!==p.nodeType;);return p}n.fn.extend({has:function(p){var y=n(p,this),C=y.length;return this.filter((function(){for(var p=0;C>p;p++)if(n.contains(this,y[p]))return!0}))},closest:function(p,y){for(var C,T=0,D=this.length,$=[],P=Q.test(p)||"string"!=typeof p?n(p,y||this.context):0;D>T;T++)for(C=this[T];C&&C!==y;C=C.parentNode)if(C.nodeType<11&&(P?P.index(C)>-1:1===C.nodeType&&n.find.matchesSelector(C,p))){$.push(C);break}return this.pushStack($.length>1?n.uniqueSort($):$)},index:function(p){return p?"string"==typeof p?I.call(n(p),this[0]):I.call(this,p.jquery?p[0]:p):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(p,y){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(p,y))))},addBack:function(p){return this.add(null==p?this.prevObject:this.prevObject.filter(p))}}),n.each({parent:function(p){var y=p.parentNode;return y&&11!==y.nodeType?y:null},parents:function(p){return u(p,"parentNode")},parentsUntil:function(p,y,C){return u(p,"parentNode",C)},next:function(p){return F(p,"nextSibling")},prev:function(p){return F(p,"previousSibling")},nextAll:function(p){return u(p,"nextSibling")},prevAll:function(p){return u(p,"previousSibling")},nextUntil:function(p,y,C){return u(p,"nextSibling",C)},prevUntil:function(p,y,C){return u(p,"previousSibling",C)},siblings:function(p){return v((p.parentNode||{}).firstChild,p)},children:function(p){return v(p.firstChild)},contents:function(p){return p.contentDocument||n.merge([],p.childNodes)}},(function(p,y){n.fn[p]=function(C,T){var D=n.map(this,y,C);return"Until"!==p.slice(-5)&&(T=C),T&&"string"==typeof T&&(D=n.filter(T,D)),this.length>1&&(st[p]||n.uniqueSort(D),nt.test(p)&&D.reverse()),this.pushStack(D)}}));var ot,at=/\S+/g;function J(){T.removeEventListener("DOMContentLoaded",J),p.removeEventListener("load",J),n.ready()}n.Callbacks=function(p){p="string"==typeof p?function H(p){var y={};return n.each(p.match(at)||[],(function(p,C){y[C]=!0})),y}(p):n.extend({},p);var y,C,T,D,$=[],P=[],I=-1,i=function(){for(D=p.once,T=y=!0;P.length;I=-1)for(C=P.shift();++I<$.length;)!1===$[I].apply(C[0],C[1])&&p.stopOnFalse&&(I=$.length,C=!1);p.memory||(C=!1),y=!1,D&&($=C?[]:"")},A={add:function(){return $&&(C&&!y&&(I=$.length-1,P.push(C)),function d(y){n.each(y,(function(y,C){n.isFunction(C)?p.unique&&A.has(C)||$.push(C):C&&C.length&&"string"!==n.type(C)&&d(C)}))}(arguments),C&&!y&&i()),this},remove:function(){return n.each(arguments,(function(p,y){for(var C;(C=n.inArray(y,$,C))>-1;)$.splice(C,1),I>=C&&I--})),this},has:function(p){return p?n.inArray(p,$)>-1:$.length>0},empty:function(){return $&&($=[]),this},disable:function(){return D=P=[],$=C="",this},disabled:function(){return!$},lock:function(){return D=P=[],C||($=C=""),this},locked:function(){return!!D},fireWith:function(p,C){return D||(C=[p,(C=C||[]).slice?C.slice():C],P.push(C),y||i()),this},fire:function(){return A.fireWith(this,arguments),this},fired:function(){return!!T}};return A},n.extend({Deferred:function(p){var y=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],C="pending",T={state:function(){return C},always:function(){return D.done(arguments).fail(arguments),this},then:function(){var p=arguments;return n.Deferred((function(C){n.each(y,(function(y,$){var P=n.isFunction(p[y])&&p[y];D[$[1]]((function(){var p=P&&P.apply(this,arguments);p&&n.isFunction(p.promise)?p.promise().progress(C.notify).done(C.resolve).fail(C.reject):C[$[0]+"With"](this===T?C.promise():this,P?[p]:arguments)}))})),p=null})).promise()},promise:function(p){return null!=p?n.extend(p,T):T}},D={};return T.pipe=T.then,n.each(y,(function(p,$){var P=$[2],I=$[3];T[$[1]]=P.add,I&&P.add((function(){C=I}),y[1^p][2].disable,y[2][2].lock),D[$[0]]=function(){return D[$[0]+"With"](this===D?T:this,arguments),this},D[$[0]+"With"]=P.fireWith})),T.promise(D),p&&p.call(D,D),D},when:function(p){var y,C,T,$=0,P=D.call(arguments),I=P.length,A=1!==I||p&&n.isFunction(p.promise)?I:0,E=1===A?p:n.Deferred(),h=function(p,C,T){return function($){C[p]=this,T[p]=arguments.length>1?D.call(arguments):$,T===y?E.notifyWith(C,T):--A||E.resolveWith(C,T)}};if(I>1)for(y=new Array(I),C=new Array(I),T=new Array(I);I>$;$++)P[$]&&n.isFunction(P[$].promise)?P[$].promise().progress(h($,C,y)).done(h($,T,P)).fail(E.reject):--A;return A||E.resolveWith(T,P),E.promise()}}),n.fn.ready=function(p){return n.ready.promise().done(p),this},n.extend({isReady:!1,readyWait:1,holdReady:function(p){p?n.readyWait++:n.ready(!0)},ready:function(p){(!0===p?--n.readyWait:n.isReady)||(n.isReady=!0,!0!==p&&--n.readyWait>0||(ot.resolveWith(T,[n]),n.fn.triggerHandler&&(n(T).triggerHandler("ready"),n(T).off("ready"))))}}),n.ready.promise=function(y){return ot||(ot=n.Deferred(),"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?p.setTimeout(n.ready):(T.addEventListener("DOMContentLoaded",J),p.addEventListener("load",J))),ot.promise(y)},n.ready.promise();var K=function(p,y,C,T,D,$,P){var I=0,A=p.length,E=null==C;if("object"===n.type(C))for(I in D=!0,C)K(p,y,I,C[I],!0,$,P);else if(void 0!==T&&(D=!0,n.isFunction(T)||(P=!0),E&&(P?(y.call(p,T),y=null):(E=y,y=function(p,y,C){return E.call(n(p),C)})),y))for(;A>I;I++)y(p[I],C,P?T:T.call(p[I],I,y(p[I],C)));return D?p:E?y.call(p):A?y(p[0],C):$},L=function(p){return 1===p.nodeType||9===p.nodeType||!+p.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(p,y){var C=y||{};return p.nodeType?p[this.expando]=C:Object.defineProperty(p,this.expando,{value:C,writable:!0,configurable:!0}),p[this.expando]},cache:function(p){if(!L(p))return{};var y=p[this.expando];return y||(y={},L(p)&&(p.nodeType?p[this.expando]=y:Object.defineProperty(p,this.expando,{value:y,configurable:!0}))),y},set:function(p,y,C){var T,D=this.cache(p);if("string"==typeof y)D[y]=C;else for(T in y)D[T]=y[T];return D},get:function(p,y){return void 0===y?this.cache(p):p[this.expando]&&p[this.expando][y]},access:function(p,y,C){var T;return void 0===y||y&&"string"==typeof y&&void 0===C?void 0!==(T=this.get(p,y))?T:this.get(p,n.camel
2Case(y)):(this.set(p,y,C),void 0!==C?C:y)},remove:function(p,y){var C,T,D,$=p[this.expando];if(void 0!==$){if(void 0===y)this.register(p);else{n.isArray(y)?T=y.concat(y.map(n.camelCase)):(D=n.camelCase(y),y in $?T=[y,D]:T=(T=D)in $?[T]:T.match(at)||[]),C=T.length;for(;C--;)delete $[T[C]]}(void 0===y||n.isEmptyObject($))&&(p.nodeType?p[this.expando]=void 0:delete p[this.expando])}},hasData:function(p){var y=p[this.expando];return void 0!==y&&!n.isEmptyObject(y)}};var rt=new M,lt=new M,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,dt=/[A-Z]/g;function R(p,y,C){var T;if(void 0===C&&1===p.nodeType)if(T="data-"+y.replace(dt,"-$&").toLowerCase(),"string"==typeof(C=p.getAttribute(T))){try{C="true"===C||"false"!==C&&("null"===C?null:+C+""===C?+C:ct.test(C)?n.parseJSON(C):C)}catch(p){}lt.set(p,y,C)}else C=void 0;return C}n.extend({hasData:function(p){return lt.hasData(p)||rt.hasData(p)},data:function(p,y,C){return lt.access(p,y,C)},removeData:function(p,y){lt.remove(p,y)},_data:function(p,y,C){return rt.access(p,y,C)},_removeData:function(p,y){rt.remove(p,y)}}),n.fn.extend({data:function(p,y){var C,T,D,$=this[0],P=$&&$.attributes;if(void 0===p){if(this.length&&(D=lt.get($),1===$.nodeType&&!rt.get($,"hasDataAttrs"))){for(C=P.length;C--;)P[C]&&(0===(T=P[C].name).indexOf("data-")&&(T=n.camelCase(T.slice(5)),R($,T,D[T])));rt.set($,"hasDataAttrs",!0)}return D}return"object"==typeof p?this.each((function(){lt.set(this,p)})):K(this,(function(y){var C,T;if($&&void 0===y){if(void 0!==(C=lt.get($,p)||lt.get($,p.replace(dt,"-$&").toLowerCase())))return C;if(T=n.camelCase(p),void 0!==(C=lt.get($,T)))return C;if(void 0!==(C=R($,T,void 0)))return C}else T=n.camelCase(p),this.each((function(){var C=lt.get(this,T);lt.set(this,T,y),p.indexOf("-")>-1&&void 0!==C&&lt.set(this,p,y)}))}),null,y,arguments.length>1,null,!0)},removeData:function(p){return this.each((function(){lt.remove(this,p)}))}}),n.extend({queue:function(p,y,C){var T;return p?(y=(y||"fx")+"queue",T=rt.get(p,y),C&&(!T||n.isArray(C)?T=rt.access(p,y,n.makeArray(C)):T.push(C)),T||[]):void 0},dequeue:function(p,y){y=y||"fx";var C=n.queue(p,y),T=C.length,D=C.shift(),$=n._queueHooks(p,y);"inprogress"===D&&(D=C.shift(),T--),D&&("fx"===y&&C.unshift("inprogress"),delete $.stop,D.call(p,(function(){n.dequeue(p,y)}),$)),!T&&$&&$.empty.fire()},_queueHooks:function(p,y){var C=y+"queueHooks";return rt.get(p,C)||rt.access(p,C,{empty:n.Callbacks("once memory").add((function(){rt.remove(p,[y+"queue",C])}))})}}),n.fn.extend({queue:function(p,y){var C=2;return"string"!=typeof p&&(y=p,p="fx",C--),arguments.length<C?n.queue(this[0],p):void 0===y?this:this.each((function(){var C=n.queue(this,p,y);n._queueHooks(this,p),"fx"===p&&"inprogress"!==C[0]&&n.dequeue(this,p)}))},dequeue:function(p){return this.each((function(){n.dequeue(this,p)}))},clearQueue:function(p){return this.queue(p||"fx",[])},promise:function(p,y){var C,T=1,D=n.Deferred(),$=this,P=this.length,h=function(){--T||D.resolveWith($,[$])};for("string"!=typeof p&&(y=p,p=void 0),p=p||"fx";P--;)(C=rt.get($[P],p+"queueHooks"))&&C.empty&&(T++,C.empty.add(h));return h(),D.promise(y)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ut=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],V=function(p,y){return p=y||p,"none"===n.css(p,"display")||!n.contains(p.ownerDocument,p)};function W(p,y,C,T){var D,$=1,P=20,I=T?function(){return T.cur()}:function(){return n.css(p,y,"")},A=I(),E=C&&C[3]||(n.cssNumber[y]?"":"px"),O=(n.cssNumber[y]||"px"!==E&&+A)&&ut.exec(n.css(p,y));if(O&&O[3]!==E){E=E||O[3],C=C||[],O=+A||1;do{O/=$=$||".5",n.style(p,y,O+E)}while($!==($=I()/A)&&1!==$&&--P)}return C&&(O=+O||+A||0,D=C[1]?O+(C[1]+1)*C[2]:+C[2],T&&(T.unit=E,T.start=O,T.end=D)),D}var ft=/^(?:checkbox|radio)$/i,gt=/<([\w:-]+)/,mt=/^$|\/(?:java|ecma)script/i,vt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function _(p,y){var C=void 0!==p.getElementsByTagName?p.getElementsByTagName(y||"*"):void 0!==p.querySelectorAll?p.querySelectorAll(y||"*"):[];return void 0===y||y&&n.nodeName(p,y)?n.merge([p],C):C}function aa(p,y){for(var C=0,T=p.length;T>C;C++)rt.set(p[C],"globalEval",!y||rt.get(y[C],"globalEval"))}vt.optgroup=vt.option,vt.tbody=vt.tfoot=vt.colgroup=vt.caption=vt.thead,vt.th=vt.td;var bt=/<|&#?\w+;/;function ca(p,y,C,T,D){for(var $,P,I,A,E,O,N=y.createDocumentFragment(),j=[],q=0,U=p.length;U>q;q++)if(($=p[q])||0===$)if("object"===n.type($))n.merge(j,$.nodeType?[$]:$);else if(bt.test($)){for(P=P||N.appendChild(y.createElement("div")),I=(gt.exec($)||["",""])[1].toLowerCase(),A=vt[I]||vt._default,P.innerHTML=A[1]+n.htmlPrefilter($)+A[2],O=A[0];O--;)P=P.lastChild;n.merge(j,P.childNodes),(P=N.firstChild).textContent=""}else j.push(y.createTextNode($));for(N.textContent="",q=0;$=j[q++];)if(T&&n.inArray($,T)>-1)D&&D.push($);else if(E=n.contains($.ownerDocument,$),P=_(N.appendChild($),"script"),E&&aa(P),C)for(O=0;$=P[O++];)mt.test($.type||"")&&C.push($);return N}!function(){var p=T.createDocumentFragment().appendChild(T.createElement("div")),y=T.createElement("input");y.setAttribute("type","radio"),y.setAttribute("checked","checked"),y.setAttribute("name","t"),p.appendChild(y),N.checkClone
vendor: 6,238 bytes, line 2
2=p.cloneNode(!0).cloneNode(!0).lastChild.checked,p.innerHTML="<textarea>x</textarea>",N.noCloneChecked=!!p.cloneNode(!0).lastChild.defaultValue}();var _t=/^key/,yt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wt=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return T.activeElement}catch(p){}}function ja(p,y,C,T,D,$){var P,I;if("object"==typeof y){for(I in"string"!=typeof C&&(T=T||C,C=void 0),y)ja(p,I,C,T,y[I],$);return p}if(null==T&&null==D?(D=C,T=C=void 0):null==D&&("string"==typeof C?(D=T,T=void 0):(D=T,T=C,C=void 0)),!1===D)D=ha;else if(!D)return p;return 1===$&&(P=D,D=function(p){return n().off(p),P.apply(this,arguments)},D.guid=P.guid||(P.guid=n.guid++)),p.each((function(){n.event.add(this,y,D,T,C)}))}n.event={global:{},add:function(p,y,C,T,D){var $,P,I,A,E,O,N,j,q,U,Y,X=rt.get(p);if(X)for(C.handler&&(C=($=C).handler,D=$.selector),C.guid||(C.guid=n.guid++),(A=X.events)||(A=X.events={}),(P=X.handle)||(P=X.handle=function(y){return void 0!==n&&n.event.triggered!==y.type?n.event.dispatch.apply(p,arguments):void 0}),E=(y=(y||"").match(at)||[""]).length;E--;)q=Y=(I=wt.exec(y[E])||[])[1],U=(I[2]||"").split(".").sort(),q&&(N=n.event.special[q]||{},q=(D?N.delegateType:N.bindType)||q,N=n.event.special[q]||{},O=n.extend({type:q,origType:Y,data:T,handler:C,guid:C.guid,selector:D,needsContext:D&&n.expr.match.needsContext.test(D),namespace:U.join(".")},$),(j=A[q])||((j=A[q]=[]).delegateCount=0,N.setup&&!1!==N.setup.call(p,T,U,P)||p.addEventListener&&p.addEventListener(q,P)),N.add&&(N.add.call(p,O),O.handler.guid||(O.handler.guid=C.guid)),D?j.splice(j.delegateCount++,0,O):j.push(O),n.event.global[q]=!0)},remove:function(p,y,C,T,D){var $,P,I,A,E,O,N,j,q,U,Y,X=rt.hasData(p)&&rt.get(p);if(X&&(A=X.events)){for(E=(y=(y||"").match(at)||[""]).length;E--;)if(q=Y=(I=wt.exec(y[E])||[])[1],U=(I[2]||"").split(".").sort(),q){for(N=n.event.special[q]||{},j=A[q=(T?N.delegateType:N.bindType)||q]||[],I=I[2]&&new RegExp("(^|\\.)"+U.join("\\.(?:.*\\.|)")+"(\\.|$)"),P=$=j.length;$--;)O=j[$],!D&&Y!==O.origType||C&&C.guid!==O.guid||I&&!I.test(O.namespace)||T&&T!==O.selector&&("**"!==T||!O.selector)||(j.splice($,1),O.selector&&j.delegateCount--,N.remove&&N.remove.call(p,O));P&&!j.length&&(N.teardown&&!1!==N.teardown.call(p,U,X.handle)||n.removeEvent(p,q,X.handle),delete A[q])}else for(q in A)n.event.remove(p,q+y[E],C,T,!0);n.isEmptyObject(A)&&rt.remove(p,"handle events")}},dispatch:function(p){p=n.event.fix(p);var y,C,T,$,P,I=[],A=D.call(arguments),E=(rt.get(this,"events")||{})[p.type]||[],O=n.event.special[p.type]||{};if(A[0]=p,p.delegateTarget=this,!O.preDispatch||!1!==O.preDispatch.call(this,p)){for(I=n.event.handlers.call(this,p,E),y=0;($=I[y++])&&!p.isPropagationStopped();)for(p.currentTarget=$.elem,C=0;(P=$.handlers[C++])&&!p.isImmediatePropagationStopped();)p.rnamespace&&!p.rnamespace.test(P.namespace)||(p.handleObj=P,p.data=P.data,void 0!==(T=((n.event.special[P.origType]||{}).handle||P.handler).apply($.elem,A))&&!1===(p.result=T)&&(p.preventDefault(),p.stopPropagation()));return O.postDispatch&&O.postDispatch.call(this,p),p.result}},handlers:function(p,y){var C,T,D,$,P=[],I=y.delegateCount,A=p.target;if(I&&A.nodeType&&("click"!==p.type||isNaN(p.button)||p.button<1))for(;A!==this;A=A.parentNode||this)if(1===A.nodeType&&(!0!==A.disabled||"click"!==p.type)){for(T=[],C=0;I>C;C++)void 0===T[D=($=y[C]).selector+" "]&&(T[D]=$.needsContext?n(D,this).index(A)>-1:n.find(D,this,null,[A]).length),T[D]&&T.push($);T.length&&P.push({elem:A,handlers:T})}return I<y.length&&P.push({elem:this,handlers:y.slice(I)}),P},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(p,y){return null==p.which&&(p.which=null!=y.charCode?y.charCode:y.keyCode),p}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(p,y){var C,D,$,P=y.button;return null==p.pageX&&null!=y.clientX&&(D=(C=p.target.ownerDocument||T).documentElement,$=C.body,p.pageX=y.clientX+(D&&D.scrollLeft||$&&$.scrollLeft||0)-(D&&D.clientLeft||$&&$.clientLeft||0),p.pageY=y.clientY+(D&&D.scrollTop||$&&$.scrollTop||0)-(D&&D.clientTop||$&&$.clientTop||0)),p.which||void 0===P||(p.which=1&P?1:2&P?3:4&P?2:0),p}},fix:function(p){if(p[n.expando])return p;var y,C,D,$=p.type,P=p,I=this.fixHooks[$];for(I||(this.fixHooks[$]=I=yt.test($)?this.mouseHooks:_t.test($)?this.keyHooks:{}),D=I.props?this.props.concat(I.props):this.props,p=new n.Event(P),y=D.length;y--;)p[C=D[y]]=P[C];return p.target||(p.target=T),3===p.target.nodeType&&(p.target=p.target.parentNode),I.filter?I.filter(p,P):p},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(p){return n.nodeName(p.target,"a")}},beforeunload:{postDispatch:function(p){void 0!==p.result&&p.originalEvent&&(p.originalEvent.returnValue=p.result)}}}},n.removeEvent=function(p,y,C){p.removeEventListener&&p.removeEventListener(y,C)},n.Event=function(p,y){return this instanceof n.Event?(p&&p.type?(this.originalEvent=p,this.type=p.type,this.isDefaultPrevented=p.defaultPrevented||void 0===p.defaultPrevented&&!1===p.returnValue?ga:ha):this.type=p,y&&n.extend(this,y),this.timeStamp=p&&p.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(p,y)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var p=this.originalEvent;this.isDefaultPrevented=ga,p&&!this.isSimulated&&p.preventDefault()},stopPropagation:function(){var p=this.originalEvent;this.isPropagationStopped=ga,p&&!this.isSimulated&&p.stopPropagation()},stopImmediatePropagation:function(){var p=this.originalEvent;this.isImmediatePropagationStopped=ga,p&&!this.isSimulated&&p.stopImmediatePropagation(),this.stopPropagation()}}
vendor: 4,315 bytes, line 2
2,n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(p,y){n.event.special[p]={delegateType:y,bindType:y,handle:function(p){var C,T=this,D=p.relatedTarget,$=p.handleObj;return D&&(D===T||n.contains(T,D))||(p.type=$.origType,C=$.handler.apply(this,arguments),p.type=y),C}}})),n.fn.extend({on:function(p,y,C,T){return ja(this,p,y,C,T)},one:function(p,y,C,T){return ja(this,p,y,C,T,1)},off:function(p,y,C){var T,D;if(p&&p.preventDefault&&p.handleObj)return T=p.handleObj,n(p.delegateTarget).off(T.namespace?T.origType+"."+T.namespace:T.origType,T.selector,T.handler),this;if("object"==typeof p){for(D in p)this.off(D,y,p[D]);return this}return!1!==y&&"function"!=typeof y||(C=y,y=void 0),!1===C&&(C=ha),this.each((function(){n.event.remove(this,p,C,y)}))}});var xt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,kt=/<script|<style|<link/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,Tt=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(p,y){return n.nodeName(p,"table")&&n.nodeName(11!==y.nodeType?y:y.firstChild,"tr")?p.getElementsByTagName("tbody")[0]||p.appendChild(p.ownerDocument.createElement("tbody")):p}function qa(p){return p.type=(null!==p.getAttribute("type"))+"/"+p.type,p}function ra(p){var y=Tt.exec(p.type);return y?p.type=y[1]:p.removeAttribute("type"),p}function sa(p,y){var C,T,D,$,P,I,A,E;if(1===y.nodeType){if(rt.hasData(p)&&($=rt.access(p),P=rt.set(y,$),E=$.events))for(D in delete P.handle,P.events={},E)for(C=0,T=E[D].length;T>C;C++)n.event.add(y,D,E[D][C]);lt.hasData(p)&&(I=lt.access(p),A=n.extend({},I),lt.set(y,A))}}function ta(p,y){var C=y.nodeName.toLowerCase();"input"===C&&ft.test(p.type)?y.checked=p.checked:"input"!==C&&"textarea"!==C||(y.defaultValue=p.defaultValue)}function ua(p,y,C,T){y=$.apply([],y);var D,P,I,A,E,O,j=0,q=p.length,U=q-1,Y=y[0],X=n.isFunction(Y);if(X||q>1&&"string"==typeof Y&&!N.checkClone&&Ct.test(Y))return p.each((function(D){var $=p.eq(D);X&&(y[0]=Y.call(this,D,$.html())),ua($,y,C,T)}));if(q&&(P=(D=ca(y,p[0].ownerDocument,!1,p,T)).firstChild,1===D.childNodes.length&&(D=P),P||T)){for(A=(I=n.map(_(D,"script"),qa)).length;q>j;j++)E=D,j!==U&&(E=n.clone(E,!0,!0),A&&n.merge(I,_(E,"script"))),C.call(p[j],E,j);if(A)for(O=I[I.length-1].ownerDocument,n.map(I,ra),j=0;A>j;j++)E=I[j],mt.test(E.type||"")&&!rt.access(E,"globalEval")&&n.contains(O,E)&&(E.src?n._evalUrl&&n._evalUrl(E.src):n.globalEval(E.textContent.replace(St,"")))}return p}function va(p,y,C){for(var T,D=y?n.filter(y,p):p,$=0;null!=(T=D[$]);$++)C||1!==T.nodeType||n.cleanData(_(T)),T.parentNode&&(C&&n.contains(T.ownerDocument,T)&&aa(_(T,"script")),T.parentNode.removeChild(T));return p}n.extend({htmlPrefilter:function(p){return p.replace(xt,"<$1></$2>")},clone:function(p,y,C){var T,D,$,P,I=p.cloneNode(!0),A=n.contains(p.ownerDocument,p);if(!(N.noCloneChecked||1!==p.nodeType&&11!==p.nodeType||n.isXMLDoc(p)))for(P=_(I),T=0,D=($=_(p)).length;D>T;T++)ta($[T],P[T]);if(y)if(C)for($=$||_(p),P=P||_(I),T=0,D=$.length;D>T;T++)sa($[T],P[T]);else sa(p,I);return(P=_(I,"script")).length>0&&aa(P,!A&&_(p,"script")),I},cleanData:function(p){for(var y,C,T,D=n.event.special,$=0;void 0!==(C=p[$]);$++)if(L(C)){if(y=C[rt.expando]){if(y.events)for(T in y.events)D[T]?n.event.remove(C,T):n.removeEvent(C,T,y.handle);C[rt.expando]=void 0}C[lt.expando]&&(C[lt.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(p){return va(this,p,!0)},remove:function(p){return va(this,p)},text:function(p){return K(this,(function(p){return void 0===p?n.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=p)}))}),null,p,arguments.length)},append:function(){return ua(this,arguments,(function(p){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pa(this,p).appendChild(p)}))},prepend:function(){return ua(this,arguments,(function(p){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var y=pa(this,p);y.insertBefore(p,y.firstChild)}}))},before:function(){return ua(this,arguments,(function(p){this.parentNode&&this.parentNode.insertBefore(p,this)}))},after:function(){return ua(this,arguments,(function(p){this.parentNode&&this.parentNode.insertBefore(p,this.nextSibling)}))},empty:function(){for(var p,y=0;null!=(p=this[y]);
vendor: 14,646 bytes, line 2
2y++)1===p.nodeType&&(n.cleanData(_(p,!1)),p.textContent="");return this},clone:function(p,y){return p=null!=p&&p,y=null==y?p:y,this.map((function(){return n.clone(this,p,y)}))},html:function(p){return K(this,(function(p){var y=this[0]||{},C=0,T=this.length;if(void 0===p&&1===y.nodeType)return y.innerHTML;if("string"==typeof p&&!kt.test(p)&&!vt[(gt.exec(p)||["",""])[1].toLowerCase()]){p=n.htmlPrefilter(p);try{for(;T>C;C++)1===(y=this[C]||{}).nodeType&&(n.cleanData(_(y,!1)),y.innerHTML=p);y=0}catch(p){}}y&&this.empty().append(p)}),null,p,arguments.length)},replaceWith:function(){var p=[];return ua(this,arguments,(function(y){var C=this.parentNode;n.inArray(this,p)<0&&(n.cleanData(_(this)),C&&C.replaceChild(y,this))}),p)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(p,y){n.fn[p]=function(p){for(var C,T=[],D=n(p),$=D.length-1,I=0;$>=I;I++)C=I===$?this:this.clone(!0),n(D[I])[y](C),P.apply(T,C.get());return this.pushStack(T)}}));var Dt,$t={HTML:"block",BODY:"block"};function ya(p,y){var C=n(y.createElement(p)).appendTo(y.body),T=n.css(C[0],"display");return C.detach(),T}function za(p){var y=T,C=$t[p];return C||("none"!==(C=ya(p,y))&&C||((y=(Dt=(Dt||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(y.documentElement))[0].contentDocument).write(),y.close(),C=ya(p,y),Dt.detach()),$t[p]=C),C}var Pt=/^margin/,It=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Ca=function(y){var C=y.ownerDocument.defaultView;return C&&C.opener||(C=p),C.getComputedStyle(y)},Da=function(p,y,C,T){var D,$,P={};for($ in y)P[$]=p.style[$],p.style[$]=y[$];for($ in D=C.apply(p,T||[]),y)p.style[$]=P[$];return D},Lt=T.documentElement;function Fa(p,y,C){var T,D,$,P,I=p.style;return""!==(P=(C=C||Ca(p))?C.getPropertyValue(y)||C[y]:void 0)&&void 0!==P||n.contains(p.ownerDocument,p)||(P=n.style(p,y)),C&&!N.pixelMarginRight()&&It.test(P)&&Pt.test(y)&&(T=I.width,D=I.minWidth,$=I.maxWidth,I.minWidth=I.maxWidth=I.width=P,P=C.width,I.width=T,I.minWidth=D,I.maxWidth=$),void 0!==P?P+"":P}function Ga(p,y){return{get:function(){return p()?void delete this.get:(this.get=y).apply(this,arguments)}}}!function(){var y,C,D,$,P=T.createElement("div"),I=T.createElement("div");if(I.style){function i(){I.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",I.innerHTML="",Lt.appendChild(P);var T=p.getComputedStyle(I);y="1%"!==T.top,$="2px"===T.marginLeft,C="4px"===T.width,I.style.marginRight="50%",D="4px"===T.marginRight,Lt.removeChild(P)}I.style.backgroundClip="content-box",I.cloneNode(!0).style.backgroundClip="",N.clearCloneStyle="content-box"===I.style.backgroundClip,P.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",P.appendChild(I),n.extend(N,{pixelPosition:function(){return i(),y},boxSizingReliable:function(){return null==C&&i(),C},pixelMarginRight:function(){return null==C&&i(),D},reliableMarginLeft:function(){return null==C&&i(),$},reliableMarginRight:function(){var y,C=I.appendChild(T.createElement("div"));return C.style.cssText=I.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",C.style.marginRight=C.style.width="0",I.style.width="1px",Lt.appendChild(P),y=!parseFloat(p.getComputedStyle(C).marginRight),Lt.removeChild(P),I.removeChild(C),y}})}}();var Mt=/^(none|table(?!-c[ea]).+)/,At={position:"absolute",visibility:"hidden",display:"block"},Et={letterSpacing:"0",fontWeight:"400"},Ht=["Webkit","O","Moz","ms"],Ft=T.createElement("div").style;function Ma(p){if(p in Ft)return p;for(var y=p[0].toUpperCase()+p.slice(1),C=Ht.length;C--;)if((p=Ht[C]+y)in Ft)return p}function Na(p,y,C){var T=ut.exec(y);return T?Math.max(0,T[2]-(C||0))+(T[3]||"px"):y}function Oa(p,y,C,T,D){for(var $=C===(T?"border":"content")?4:"width"===y?1:0,P=0;4>$;$+=2)"margin"===C&&(P+=n.css(p,C+pt[$],!0,D)),T?("content"===C&&(P-=n.css(p,"padding"+pt[$],!0,D)),"margin"!==C&&(P-=n.css(p,"border"+pt[$]+"Width",!0,D))):(P+=n.css(p,"padding"+pt[$],!0,D),"padding"!==C&&(P+=n.css(p,"border"+pt[$]+"Width",!0,D)));return P}function Pa(p,y,C){var T=!0,D="width"===y?p.offsetWidth:p.offsetHeight,$=Ca(p),P="border-box"===n.css(p,"boxSizing",!1,$);if(0>=D||null==D){if((0>(D=Fa(p,y,$))||null==D)&&(D=p.style[y]),It.test(D))return D;T=P&&(N.boxSizingReliable()||D===p.style[y]),D=parseFloat(D)||0}return D+Oa(p,y,C||(P?"border":"content"),T,$)+"px"}function Qa(p,y){for(var C,T,D,$=[],P=0,I=p.length;I>P;P++)(T=p[P]).style&&($[P]=rt.get(T,"olddisplay"),C=T.style.display,y?($[P]||"none"!==C||(T.style.display=""),""===T.style.display&&V(T)&&($[P]=rt.access(T,"olddisplay",za(T.nodeName)))):(D=V(T),"none"===C&&D||rt.set(T,"olddisplay",D?C:n.css(T,"display"))));for(P=0;I>P;P++)(T=p[P]).style&&(y&&"none"!==T.style.display&&""!==T.style.display||(T.style.display=y?$[P]||"":"none"));return p}function Ra(p,y,C,T,D){return new Ra.prototype.init(p,y,C,T,D)}n.extend({cssHooks:{opacity:{get:function(p,y){if(y){var C=Fa(p,"opacity");return""===C?"1":C}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(p,y,C,T){if(p&&3!==p.nodeType&&8!==p.nodeType&&p.style){var D,$,P,I=n.camelCase(y),A=p.style;return y=n.cssProps[I]||(n.cssProps[I]=Ma(I)||I),P=n.cssHooks[y]||n.cssHooks[I],void 0===C?P&&"get"in P&&void 0!==(D=P.get(p,!1,T))?D:A[y]:("string"===($=typeof C)&&(D=ut.exec(C))&&D[1]&&(C=W(p,y,D),$="number"),void(null!=C&&C==C&&("number"===$&&(C+=D&&D[3]||(n.cssNumber[I]?"":"px")),N.clearCloneStyle||""!==C||0!==y.indexOf("background")||(A[y]="inherit"),P&&"set"in P&&void 0===(C=P.set(p,C,T))||(A[y]=C))))}},css:function(p,y,C,T){var D,$,P,I=n.camelCase(y);return y=n.cssProps[I]||(n.cssProps[I]=Ma(I)||I),(P=n.cssHooks[y]||n.cssHooks[I])&&"get"in P&&(D=P.get(p,!0,C)),void 0===D&&(D=Fa(p,y,T)),"normal"===D&&y in Et&&(D=Et[y]),""===C||C?($=parseFloat(D),!0===C||isFinite($)?$||0:D):D}}),n.each(["height","width"],(function(p,y){n.cssHooks[y]={get:function(p,C,T){return C?Mt.test(n.css(p,"display"))&&0===p.offsetWidth?Da(p,At,(function(){return Pa(p,y,T)})):Pa(p,y,T):void 0},set:function(p,C,T){var D,$=T&&Ca(p),P=T&&Oa(p,y,T,"border-box"===n.css(p,"boxSizing",!1,$),$);return P&&(D=ut.exec(C))&&"px"!==(D[3]||"px")&&(p.style[y]=C,C=n.css(p,y)),Na(0,C,P)}}})),n.cssHooks.marginLeft=Ga(N.reliableMarginLeft,(function(p,y){return y?(parseFloat(Fa(p,"marginLeft"))||p.getBoundingClientRect().left-Da(p,{marginLeft:0},(function(){return p.getBoundingClientRect().left})))+"px":void 0})),n.cssHooks.marginRight=Ga(N.reliableMarginRight,(function(p,y){return y?Da(p,{display:"inline-block"},Fa,[p,"marginRight"]):void 0})),n.each({margin:"",padding:"",border:"Width"},(function(p,y){n.cssHooks[p+y]={expand:function(C){for(var T=0,D={},$="string"==typeof C?C.split(" "):[C];4>T;T++)D[p+pt[T]+y]=$[T]||$[T-2]||$[0];return D}},Pt.test(p)||(n.cssHooks[p+y].set=Na)})),n.fn.extend({css:function(p,y){return K(this,(function(p,y,C){var T,D,$={},P=0;if(n.isArray(y)){for(T=Ca(p),D=y.length;D>P;P++)$[y[P]]=n.css(p,y[P],!1,T);return $}return void 0!==C?n.style(p,y,C):n.css(p,y)}),p,y,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(p){return"boolean"==typeof p?p?this.show():this.hide():this.each((function(){V(this)?n(this).show():n(this).hide()}))}}),n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(p,y,C,T,D,$){this.elem=p,this.prop=C,this.easing=D||n.easing._default,this.options=y,this.start=this.now=this.cur(),this.end=T,this.unit=$||(n.cssNumber[C]?"":"px")},cur:function(){var p=Ra.propHooks[this.prop];return p&&p.get?p.get(this):Ra.propHooks._default.get(this)},run:function(p){var y,C=Ra.propHooks[this.prop];return this.options.duration?this.pos=y=n.easing[this.easing](p,this.options.duration*p,0,1,this.options.duration):this.pos=y=p,this.now=(this.end-this.start)*y+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(p){var y;return 1!==p.elem.nodeType||null!=p.elem[p.prop]&&null==p.elem.style[p.prop]?p.elem[p.prop]:(y=n.css(p.elem,p.prop,""))&&"auto"!==y?y:0},set:function(p){n.fx.step[p.prop]?n.fx.step[p.prop](p):1!==p.elem.nodeType||null==p.elem.style[n.cssProps[p.prop]]&&!n.cssHooks[p.prop]?p.elem[p.prop]=p.now:n.style(p.elem,p.prop,p.now+p.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(p){p.elem.nodeType&&p.elem.parentNode&&(p.elem[p.prop]=p.now)}},n.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Ot,Nt,zt=/^(?:toggle|show|hide)$/,jt=/queueHooks$/;function Wa(){return p.setTimeout((function(){Ot=void 0})),Ot=n.now()}function Xa(p,y){var C,T=0,D={height:p};for(y=y?1:0;4>T;T+=2-y)D["margin"+(C=pt[T])]=D["padding"+C]=p;return y&&(D.opacity=D.width=p),D}function Ya(p,y,C){for(var T,D=(_a.tweeners[y]||[]).concat(_a.tweeners["*"]),$=0,P=D.length;P>$;$++)if(T=D[$].call(C,y,p))return T}function _a(p,y,C){var T,D,$=0,P=_a.prefilters.length,I=n.Deferred().always((function(){delete i.elem})),i=function(){if(D)return!1;for(var y=Ot||Wa(),C=Math.max(0,A.startTime+A.duration-y),T=1-(C/A.duration||0),$=0,P=A.tweens.length;P>$;$++)A.tweens[$].run(T);return I.notifyWith(p,[A,T,C]),1>T&&P?C:(I.resolveWith(p,[A]),!1)},A=I.promise({elem:p,props:n.extend({},y),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},C),originalProperties:y,originalOptions:C,startTime:Ot||Wa(),duration:C.duration,tweens:[],createTween:function(y,C){var T=n.Tween(p,A.opts,y,C,A.opts.specialEasing[y]||A.opts.easing);return A.tweens.push(T),T},stop:function(y){var C=0,T=y?A.tweens.length:0;if(D)return this;for(D=!0;T>C;C++)A.tweens[C].run(1);return y?(I.notifyWith(p,[A,1,0]),I.resolveWith(p,[A,y])):I.rejectWith(p,[A,y]),this}}),E=A.props;for(function $a(p,y){var C,T,D,$,P;for(C in p)if(D=y[T=n.camelCase(C)],$=p[C],n.isArray($)&&(D=$[1],$=p[C]=$[0]),C!==T&&(p[T]=$,delete p[C]),(P=n.cssHooks[T])&&"expand"in P)for(C in $=P.expand($),delete p[T],$)C in p||(p[C]=$[C],y[C]=D);else y[T]=D}(E,A.opts.specialEasing);P>$;$++)if(T=_a.prefilters[$].call(A,p,E,A.opts))return n.isFunction(T.stop)&&(n._queueHooks(A.elem,A.opts.queue).stop=n.proxy(T.stop,T)),T;return n.map(E,Ya,A),n.isFunction(A.opts.start)&&A.opts.start.call(p,A),n.fx.timer(n.extend(i,{elem:p,anim:A,queue:A.opts.queue})),A.progress(A.opts.progress).done(A.opts.done,A.opts.complete).fail(A.opts.fail).always(A.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(p,y){var C=this.createTween(p,y);return W(C.elem,p,ut.exec(y),C),C}]},tweener:function(p,y){n.isFunction(p)?(y=p,p=["*"]):p=p.match(at);for(var C,T=0,D=p.length;D>T;T++)C=p[T],_a.tweeners[C]=_a.tweeners[C]||[],_a.tweeners[C].unshift(y)},prefilters:[function Za(p,y,C){var T,D,$,P,I,A,E,O=this,N={},j=p.style,q=p.nodeType&&V(p),U=rt.get(p,"fxshow");for(T in C.queue||(null==(I=n._queueHooks(p,"fx")).unqueued&&(I.unqueued=0,A=I.empty.fire,I.empty.fire=function(){I.unqueued||A()}),I.unqueued++,O.always((function(){O.always((function(){I.unqueued--,n.queue(p,"fx").length||I.empty.fire()}))}))),1===p.nodeType&&("height"in y||"width"in y)&&(C.overflow=[j.overflow,j.overflowX,j.overflowY],"inline"===("none"===(E=n.css(p,"display"))?rt.get(p,"olddisplay")||za(p.nodeName):E)&&"none"===n.css(p,"float")&&(j.display="inline-block")),C.overflow&&(j.overflow="hidden",O.always((function(){j.overflow=C.overflow[0],j.overflowX=C.overflow[1],j.overflowY=C.overflow[2]}))),y)if(D=y[T],zt.exec(D)){if(delete y[T],$=$||"toggle"===D,D===(q?"hide":"show")){if("show"!==D||!U||void 0===U[T])continue;q=!0}N[T]=U&&U[T]||n.style(p,T)}else E=void 0;if(n.isEmptyObject(N))"inline"===("none"===E?za(p.nodeName):E)&&(j.display=E);else for(T in U?"hidden"in U&&(q=U.hidden):U=rt.access(p,"fxshow",{}),$&&(U.hidden=!q),q?n(p).show():O.done((function(){n(p).hide()})),O.done((function(){var y;for(y in rt.remove(p,"fxshow"),N)n.style(p,y,N[y])})),N)P=Ya(q?U[T]:0,T,O),T in U||(U[T]=P.start,q&&(P.end=P.start,P.start="width"===T||"height"===T?1:0))}],prefilter:function(p,y){y?_a.prefilters.unshift(p):_a.prefilters.push(p)}}),n.speed=function(p,y,C){var T=p&&"object"==typeof p?n.extend({},p):{complete:C||!C&&y||n.isFunction(p)&&p,duration:p,easing:C&&y||y&&!n.isFunction(y)&&y};return T.duration=n.fx.off?0:"number"==typeof T.duration?T.duration:T.duration in n.fx.speeds?n.fx.speeds[T.duration]:n.fx.speeds._default,null!=T.queue&&!0!==T.queue||(T.queue="fx"),T.old=T.complete,T.complete=function(){n.isFunction(T.old)&&T.old.call(this),T.queue&&n.dequeue(this,T.queue)},T},n.fn.extend({fadeTo:function(p,y,C,T){return this.filter(V).css("opacity",0).show().end().animate({opacity:y},p,C,T)},animate:function(p,y,C,T){var D=n.isEmptyObject(p),$=n.speed(y,C,T),g=function(){var y=_a(this,n.extend({},p),$);(D||rt.get(this,"finish"))&&y.stop(!0)};return g.finish=g,D||!1===$.queue?this.each(g):this.queue($.queue,g)},stop:function(p,y,C){var d=function(p){var y=p.stop;delete p.stop,y(C)};return"string"!=typeof p&&(C=y,y=p,p=void 0),y&&!1!==p&&this.queue(p||"fx",[]),this.each((function(){var y=!0,T=null!=p&&p+"queueHooks",D=n.timers,$=rt.get(this);if(T)$[T]&&$[T].stop&&d($[T]);else for(T in $)$[T]&&$[T].stop&&jt.test(T)&&d($[T]);for(T=D.length;T--;)D[T].elem!==this||null!=p&&D[T].queue!==p||(D[T].anim.stop(C),y=!1,D.splice(T,1));!y&&C||n.dequeue(this,p)}))},finish:function(p){return!1!==p&&(p=p||"fx"),this.each((function(){var y,C=rt.get(this),T=C[p+"queue"],D=C[p+"queueHooks"],$=n.timers,P=T?T.length:0;for(C.finish=!0,n.queue(this,p,[]),D&&D.stop&&D.stop.call(this,!0),y=$.length;y--;)$[y].elem===this&&$[y].queue===p&&($[y].anim.stop(!0),$.splice(y,1));for(y=0;P>y;y++)T[y]&&T[y].finish&&T[y].finish.call(this);delete C.finish}))}}),n.each(["toggle","show","hide"],(function(p,y){var C=n.fn[y];n.fn[y]=function(p,T,D){return null==p||"boolean"==typeof p?C.apply(this,arguments):this.animate(Xa(y,!0),p,T,D)}})),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(p,y){n.fn[p]=function(p,C,T){return this.animate(y,p,C,T)}})),n.timers=[],n.fx.tick=function(){var p,y=0,C=n.timers;for(Ot=n.now();y<C.length;y++)(p=C[y])()||C[y]!==p||C.splice(y--,1);C.length||n.fx.stop(),Ot=void 0}
vendor: 8,197 bytes, line 2
2,n.fx.timer=function(p){n.timers.push(p),p()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Nt||(Nt=p.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){p.clearInterval(Nt),Nt=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(y,C){return y=n.fx&&n.fx.speeds[y]||y,C=C||"fx",this.queue(C,(function(C,T){var D=p.setTimeout(C,y);T.stop=function(){p.clearTimeout(D)}}))},function(){var p=T.createElement("input"),y=T.createElement("select"),C=y.appendChild(T.createElement("option"));p.type="checkbox",N.checkOn=""!==p.value,N.optSelected=C.selected,y.disabled=!0,N.optDisabled=!C.disabled,(p=T.createElement("input")).value="t",p.type="radio",N.radioValue="t"===p.value}();var Wt,Rt=n.expr.attrHandle;n.fn.extend({attr:function(p,y){return K(this,n.attr,p,y,arguments.length>1)},removeAttr:function(p){return this.each((function(){n.removeAttr(this,p)}))}}),n.extend({attr:function(p,y,C){var T,D,$=p.nodeType;if(3!==$&&8!==$&&2!==$)return void 0===p.getAttribute?n.prop(p,y,C):(1===$&&n.isXMLDoc(p)||(y=y.toLowerCase(),D=n.attrHooks[y]||(n.expr.match.bool.test(y)?Wt:void 0)),void 0!==C?null===C?void n.removeAttr(p,y):D&&"set"in D&&void 0!==(T=D.set(p,C,y))?T:(p.setAttribute(y,C+""),C):D&&"get"in D&&null!==(T=D.get(p,y))?T:null==(T=n.find.attr(p,y))?void 0:T)},attrHooks:{type:{set:function(p,y){if(!N.radioValue&&"radio"===y&&n.nodeName(p,"input")){var C=p.value;return p.setAttribute("type",y),C&&(p.value=C),y}}}},removeAttr:function(p,y){var C,T,D=0,$=y&&y.match(at);if($&&1===p.nodeType)for(;C=$[D++];)T=n.propFix[C]||C,n.expr.match.bool.test(C)&&(p[T]=!1),p.removeAttribute(C)}}),Wt={set:function(p,y,C){return!1===y?n.removeAttr(p,C):p.setAttribute(C,C),C}},n.each(n.expr.match.bool.source.match(/\w+/g),(function(p,y){var C=Rt[y]||n.find.attr;Rt[y]=function(p,y,T){var D,$;return T||($=Rt[y],Rt[y]=D,D=null!=C(p,y,T)?y.toLowerCase():null,Rt[y]=$),D}}));var qt=/^(?:input|select|textarea|button)$/i,Bt=/^(?:a|area)$/i;n.fn.extend({prop:function(p,y){return K(this,n.prop,p,y,arguments.length>1)},removeProp:function(p){return this.each((function(){delete this[n.propFix[p]||p]}))}}),n.extend({prop:function(p,y,C){var T,D,$=p.nodeType;if(3!==$&&8!==$&&2!==$)return 1===$&&n.isXMLDoc(p)||(y=n.propFix[y]||y,D=n.propHooks[y]),void 0!==C?D&&"set"in D&&void 0!==(T=D.set(p,C,y))?T:p[y]=C:D&&"get"in D&&null!==(T=D.get(p,y))?T:p[y]},propHooks:{tabIndex:{get:function(p){var y=n.find.attr(p,"tabindex");return y?parseInt(y,10):qt.test(p.nodeName)||Bt.test(p.nodeName)&&p.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),N.optSelected||(n.propHooks.selected={get:function(p){var y=p.parentNode;return y&&y.parentNode&&y.parentNode.selectedIndex,null},set:function(p){var y=p.parentNode;y&&(y.selectedIndex,y.parentNode&&y.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){n.propFix[this.toLowerCase()]=this}));var Ut=/[\t\r\n\f]/g;function fb(p){return p.getAttribute&&p.getAttribute("class")||""}n.fn.extend({addClass:function(p){var y,C,T,D,$,P,I,A=0;if(n.isFunction(p))return this.each((function(y){n(this).addClass(p.call(this,y,fb(this)))}));if("string"==typeof p&&p)for(y=p.match(at)||[];C=this[A++];)if(D=fb(C),T=1===C.nodeType&&(" "+D+" ").replace(Ut," ")){for(P=0;$=y[P++];)T.indexOf(" "+$+" ")<0&&(T+=$+" ");D!==(I=n.trim(T))&&C.setAttribute("class",I)}return this},removeClass:function(p){var y,C,T,D,$,P,I,A=0;if(n.isFunction(p))return this.each((function(y){n(this).removeClass(p.call(this,y,fb(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof p&&p)for(y=p.match(at)||[];C=this[A++];)if(D=fb(C),T=1===C.nodeType&&(" "+D+" ").replace(Ut," ")){for(P=0;$=y[P++];)for(;T.indexOf(" "+$+" ")>-1;)T=T.replace(" "+$+" "," ");D!==(I=n.trim(T))&&C.setAttribute("class",I)}return this},toggleClass:function(p,y){var C=typeof p;return"boolean"==typeof y&&"string"===C?y?this.addClass(p):this.removeClass(p):n.isFunction(p)?this.each((function(C){n(this).toggleClass(p.call(this,C,fb(this),y),y)})):this.each((function(){var y,T,D,$;if("string"===C)for(T=0,D=n(this),$=p.match(at)||[];y=$[T++];)D.hasClass(y)?D.removeClass(y):D.addClass(y);else void 0!==p&&"boolean"!==C||((y=fb(this))&&rt.set(this,"__className__",y),this.setAttribute&&this.setAttribute("class",y||!1===p?"":rt.get(this,"__className__")||""))}))},hasClass:function(p){var y,C,T=0;for(y=" "+p+" ";C=this[T++];)if(1===C.nodeType&&(" "+fb(C)+" ").replace(Ut," ").indexOf(y)>-1)return!0;return!1}});var Yt=/\r/g,Xt=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(p){var y,C,T,D=this[0];return arguments.length?(T=n.isFunction(p),this.each((function(C){var D;1===this.nodeType&&(null==(D=T?p.call(this,C,n(this).val()):p)?D="":"number"==typeof D?D+="":n.isArray(D)&&(D=n.map(D,(function(p){return null==p?"":p+""}))),(y=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()])&&"set"in y&&void 0!==y.set(this,D,"value")||(this.value=D))}))):D?(y=n.valHooks[D.type]||n.valHooks[D.nodeName.toLowerCase()])&&"get"in y&&void 0!==(C=y.get(D,"value"))?C:"string"==typeof(C=D.value)?C.replace(Yt,""):null==C?"":C:void 0}}),n.extend({valHooks:{option:{get:function(p){var y=n.find.attr(p,"value");return null!=y?y:n.trim(n.text(p)).replace(Xt," ")}},select:{get:function(p){for(var y,C,T=p.options,D=p.selectedIndex,$="select-one"===p.type||0>D,P=$?null:[],I=$?D+1:T.length,A=0>D?I:$?D:0;I>A;A++)if(((C=T[A]).selected||A===D)&&(N.optDisabled?!C.disabled:null===C.getAttribute("disabled"))&&(!C.parentNode.disabled||!n.nodeName(C.parentNode,"optgroup"))){if(y=n(C).val(),$)return y;P.push(y)}return P},set:function(p,y){for(var C,T,D=p.options,$=n.makeArray(y),P=D.length;P--;)((T=D[P]).selected=n.inArray(n.valHooks.option.get(T),$)>-1)&&(C=!0);return C||(p.selectedIndex=-1),$}}}}),n.each(["radio","checkbox"],(function(){n.valHooks[this]={set:function(p,y){return n.isArray(y)?p.checked=n.inArray(n(p).val(),y)>-1:void 0}},N.checkOn||(n.valHooks[this].get=function(p){return null===p.getAttribute("value")?"on":p.value})}));var Vt=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(y,C,D,$){var P,I,A,E,N,j,q,U=[D||T],Y=O.call(y,"type")?y.type:y,X=O.call(y,"namespace")?y.namespace.split("."):[];if(I=A=D=D||T,3!==D.nodeType&&8!==D.nodeType&&!Vt.test(Y+n.event.triggered)&&(Y.indexOf(".")>-1&&(X=Y.split("."),Y=X.shift(),X.sort()),N=Y.indexOf(":")<0&&"on"+Y,(y=y[n.expando]?y:new n.Event(Y,"object"==typeof y&&y)).isTrigger=$?2:3,y.namespace=X.join("."),y.rnamespace=y.namespace?new RegExp("(^|\\.)"+X.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,y.result=void 0,y.target||(y.target=D),C=null==C?[y]:n.makeArray(C,[y]),q=n.event.special[Y]||{},$||!q.trigger||!1!==q.trigger.apply(D,C))){if(!$&&!q.noBubble&&!n.isWindow(D)){for(E=q.delegateType||Y,Vt.test(E+Y)||(I=I.parentNode);I;I=I.parentNode)U.push(I),A=I;A===(D.ownerDocument||T)&&U.push(A.defaultView||A.parentWindow||p)}for(P=0;(I=U[P++])&&!y.isPropagationStopped();)y.type=P>1?E:q.bindType||Y,(j=(rt.get(I,"events")||{})[y.type]&&rt.get(I,"handle"))&&j.apply(I,C),(j=N&&I[N])&&j.apply&&L(I)&&(y.result=j.apply(I,C),!1===y.result&&y.preventDefault());return y.type=Y,$||y.isDefaultPrevented()||q._default&&!1!==q._default.apply(U.pop(),C)||!L(D)||N&&n.isFunction(D[Y])&&!n.isWindow(D)&&((A=D[N])&&(D[N]=null),n.event.triggered=Y,D[Y](),n.event.triggered=void 0,A&&(D[N]=A)),y.result}},simulate:function(p,y,C){var T=n.extend(new n.Event,C,{type:p,isSimulated:!0});n.event.trigger(T,null,y)}}),n.fn.extend({trigger:function(p,y){return this.each((function(){n.event.trigger(p,y,this)}))},triggerHandler:function(p,y){var C=this[0];return C?n.event.trigger(p,y,C,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(p,y){n.fn[y]=function(p,C){return arguments.length>0?this.on(y,null,p,C):this.trigger(y)}})),n.fn.extend({hover:function(p,y){return this.mouseenter(p).mouseleave(y||p)}}),N.focusin="onfocusin"in p,N.focusin||n.each({focus:"focusin",blur:"focusout"}
vendor: 2,181 bytes, line 2
2,(function(p,y){var c=function(p){n.event.simulate(y,p.target,n.event.fix(p))};n.event.special[y]={setup:function(){var C=this.ownerDocument||this,T=rt.access(C,y);T||C.addEventListener(p,c,!0),rt.access(C,y,(T||0)+1)},teardown:function(){var C=this.ownerDocument||this,T=rt.access(C,y)-1;T?rt.access(C,y,T):(C.removeEventListener(p,c,!0),rt.remove(C,y))}}}));var Kt=p.location,Qt=n.now(),Gt=/\?/;n.parseJSON=function(p){return JSON.parse(p+"")},n.parseXML=function(y){var C;if(!y||"string"!=typeof y)return null;try{C=(new p.DOMParser).parseFromString(y,"text/xml")}catch(p){C=void 0}return C&&!C.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+y),C};var Jt=/#.*$/,Zt=/([?&])_=[^&]*/,te=/^(.*?):[ \t]*([^\r\n]*)$/gm,ee=/^(?:GET|HEAD)$/,ie=/^\/\//,ne={},se={},oe="*/".concat("*"),ae=T.createElement("a");function wb(p){return function(y,C){"string"!=typeof y&&(C=y,y="*");var T,D=0,$=y.toLowerCase().match(at)||[];if(n.isFunction(C))for(;T=$[D++];)"+"===T[0]?(T=T.slice(1)||"*",(p[T]=p[T]||[]).unshift(C)):(p[T]=p[T]||[]).push(C)}}function xb(p,y,C,T){var D={},$=p===se;function g(P){var I;return D[P]=!0,n.each(p[P]||[],(function(p,P){var A=P(y,C,T);return"string"!=typeof A||$||D[A]?$?!(I=A):void 0:(y.dataTypes.unshift(A),g(A),!1)})),I}return g(y.dataTypes[0])||!D["*"]&&g("*")}function yb(p,y){var C,T,D=n.ajaxSettings.flatOptions||{};for(C in y)void 0!==y[C]&&((D[C]?p:T||(T={}))[C]=y[C]);return T&&n.extend(!0,p,T),p}ae.href=Kt.href,n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":oe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(p,y){return y?yb(yb(p,n.ajaxSettings),y):yb(n.ajaxSettings,p)}
vendor: 5,855 bytes, line 2
2,ajaxPrefilter:wb(ne),ajaxTransport:wb(se),ajax:function(y,C){"object"==typeof y&&(C=y,y=void 0),C=C||{};var D,$,P,I,A,E,O,N,j=n.ajaxSetup({},C),q=j.context||j,U=j.context&&(q.nodeType||q.jquery)?n(q):n.event,Y=n.Deferred(),X=n.Callbacks("once memory"),Q=j.statusCode||{},G={},Z={},tt=0,et="canceled",it={readyState:0,getResponseHeader:function(p){var y;if(2===tt){if(!I)for(I={};y=te.exec(P);)I[y[1].toLowerCase()]=y[2];y=I[p.toLowerCase()]}return null==y?null:y},getAllResponseHeaders:function(){return 2===tt?P:null},setRequestHeader:function(p,y){var C=p.toLowerCase();return tt||(p=Z[C]=Z[C]||p,G[p]=y),this},overrideMimeType:function(p){return tt||(j.mimeType=p),this},statusCode:function(p){var y;if(p)if(2>tt)for(y in p)Q[y]=[Q[y],p[y]];else it.always(p[it.status]);return this},abort:function(p){var y=p||et;return D&&D.abort(y),z(0,y),this}};if(Y.promise(it).complete=X.add,it.success=it.done,it.error=it.fail,j.url=((y||j.url||Kt.href)+"").replace(Jt,"").replace(ie,Kt.protocol+"//"),j.type=C.method||C.type||j.method||j.type,j.dataTypes=n.trim(j.dataType||"*").toLowerCase().match(at)||[""],null==j.crossDomain){E=T.createElement("a");try{E.href=j.url,E.href=E.href,j.crossDomain=ae.protocol+"//"+ae.host!=E.protocol+"//"+E.host}catch(p){j.crossDomain=!0}}if(j.data&&j.processData&&"string"!=typeof j.data&&(j.data=n.param(j.data,j.traditional)),xb(ne,j,C,it),2===tt)return it;for(N in(O=n.event&&j.global)&&0==n.active++&&n.event.trigger("ajaxStart"),j.type=j.type.toUpperCase(),j.hasContent=!ee.test(j.type),$=j.url,j.hasContent||(j.data&&($=j.url+=(Gt.test($)?"&":"?")+j.data,delete j.data),!1===j.cache&&(j.url=Zt.test($)?$.replace(Zt,"$1_="+Qt++):$+(Gt.test($)?"&":"?")+"_="+Qt++)),j.ifModified&&(n.lastModified[$]&&it.setRequestHeader("If-Modified-Since",n.lastModified[$]),n.etag[$]&&it.setRequestHeader("If-None-Match",n.etag[$])),(j.data&&j.hasContent&&!1!==j.contentType||C.contentType)&&it.setRequestHeader("Content-Type",j.contentType),it.setRequestHeader("Accept",j.dataTypes[0]&&j.accepts[j.dataTypes[0]]?j.accepts[j.dataTypes[0]]+("*"!==j.dataTypes[0]?", "+oe+"; q=0.01":""):j.accepts["*"]),j.headers)it.setRequestHeader(N,j.headers[N]);if(j.beforeSend&&(!1===j.beforeSend.call(q,it,j)||2===tt))return it.abort();for(N in et="abort",{success:1,error:1,complete:1})it[N](j[N]);if(D=xb(se,j,C,it)){if(it.readyState=1,O&&U.trigger("ajaxSend",[it,j]),2===tt)return it;j.async&&j.timeout>0&&(A=p.setTimeout((function(){it.abort("timeout")}),j.timeout));try{tt=1,D.send(G,z)}catch(p){if(!(2>tt))throw p;z(-1,p)}}else z(-1,"No Transport");function z(y,C,T,I){var E,N,G,Z,et,nt=C;2!==tt&&(tt=2,A&&p.clearTimeout(A),D=void 0,P=I||"",it.readyState=y>0?4:0,E=y>=200&&300>y||304===y,T&&(Z=function zb(p,y,C){for(var T,D,$,P,I=p.contents,A=p.dataTypes;"*"===A[0];)A.shift(),void 0===T&&(T=p.mimeType||y.getResponseHeader("Content-Type"));if(T)for(D in I)if(I[D]&&I[D].test(T)){A.unshift(D);break}if(A[0]in C)$=A[0];else{for(D in C){if(!A[0]||p.converters[D+" "+A[0]]){$=D;break}P||(P=D)}$=$||P}return $?($!==A[0]&&A.unshift($),C[$]):void 0}(j,it,T)),Z=function Ab(p,y,C,T){var D,$,P,I,A,E={},O=p.dataTypes.slice();if(O[1])for(P in p.converters)E[P.toLowerCase()]=p.converters[P];for($=O.shift();$;)if(p.responseFields[$]&&(C[p.responseFields[$]]=y),!A&&T&&p.dataFilter&&(y=p.dataFilter(y,p.dataType)),A=$,$=O.shift())if("*"===$)$=A;else if("*"!==A&&A!==$){if(!(P=E[A+" "+$]||E["* "+$]))for(D in E)if((I=D.split(" "))[1]===$&&(P=E[A+" "+I[0]]||E["* "+I[0]])){!0===P?P=E[D]:!0!==E[D]&&($=I[0],O.unshift(I[1]));break}if(!0!==P)if(P&&p.throws)y=P(y);else try{y=P(y)}catch(p){return{state:"parsererror",error:P?p:"No conversion from "+A+" to "+$}}}return{state:"success",data:y}}(j,Z,it,E),E?(j.ifModified&&((et=it.getResponseHeader("Last-Modified"))&&(n.lastModified[$]=et),(et=it.getResponseHeader("etag"))&&(n.etag[$]=et)),204===y||"HEAD"===j.type?nt="nocontent":304===y?nt="notmodified":(nt=Z.state,N=Z.data,E=!(G=Z.error))):(G=nt,!y&&nt||(nt="error",0>y&&(y=0))),it.status=y,it.statusText=(C||nt)+"",E?Y.resolveWith(q,[N,nt,it]):Y.rejectWith(q,[it,nt,G]),it.statusCode(Q),Q=void 0,O&&U.trigger(E?"ajaxSuccess":"ajaxError",[it,j,E?N:G]),X.fireWith(q,[it,nt]),O&&(U.trigger("ajaxComplete",[it,j]),--n.active||n.event.trigger("ajaxStop")))}return it},getJSON:function(p,y,C){return n.get(p,y,C,"json")},getScript:function(p,y){return n.get(p,void 0,y,"script")}}),n.each(["get","post"],(function(p,y){n[y]=function(p,C,T,D){return n.isFunction(C)&&(D=D||T,T=C,C=void 0),n.ajax(n.extend({url:p,type:y,dataType:D,data:C,success:T},n.isPlainObject(p)&&p))}})),n._evalUrl=function(p){return n.ajax({url:p,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},n.fn.extend({wrapAll:function(p){var y;return n.isFunction(p)?this.each((function(y){n(this).wrapAll(p.call(this,y))})):(this[0]&&(y=n(p,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&y.insertBefore(this[0]),y.map((function(){for(var p=this;p.firstElementChild;)p=p.firstElementChild;return p})).append(this)),this)},wrapInner:function(p){return n.isFunction(p)?this.each((function(y){n(this).wrapInner(p.call(this,y))})):this.each((function(){var y=n(this),C=y.contents();C.length?C.wrapAll(p):y.append(p)}))},wrap:function(p){var y=n.isFunction(p);return this.each((function(C){n(this).wrapAll(y?p.call(this,C):p)}))},unwrap:function(){return this.parent().each((function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)})).end()}}),n.expr.filters.hidden=function(p){return!n.expr.filters.visible(p)},n.expr.filters.visible=function(p){return p.offsetWidth>0||p.offsetHeight>0||p.getClientRects().length>0};var re=/%20/g,le=/\[\]$/,ce=/\r?\n/g,de=/^(?:submit|button|image|reset|file)$/i,he=/^(?:input|select|textarea|keygen)/i;function Gb(p,y,C,T){var D;if(n.isArray(y))n.each(y,(function(y,D){C||le.test(p)?T(p,D):Gb(p+"["+("object"==typeof D&&null!=D?
2y:"")+"]",D,C,T)}));else if(C||"object"!==n.type(y))T(p,y);else for(D in y)Gb(p+"["+D+"]",y[D],C,T)}n.param=function(p,y){var C,T=[],e=function(p,y){y=n.isFunction(y)?y():null==y?"":y,T[T.length]=encodeURIComponent(p)+"="+encodeURIComponent(y)};if(void 0===y&&(y=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(p)||p.jquery&&!n.isPlainObject(p))n.each(p,(function(){e(this.name,this.value)}));else for(C in p)Gb(C,p[C],y,e);return T.join("&").replace(re,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var p=n.prop(this,"elements");return p?n.makeArray(p):this})).filter((function(){var p=this.type;return this.name&&!n(this).is(":disabled")&&he.test(this.nodeName)&&!de.test(p)&&(this.checked||!ft.test(p))})).map((function(p,y){var C=n(this).val();return null==C?null:n.isArray(C)?n.map(C,(function(p){return{name:y.name,value:p.replace(ce,"\r\n")}})):{name:y.name,value:C.replace(ce,"\r\n")}})).get()}}),n.ajaxSettings.xhr=function(){try{return new p.XMLHttpRequest}catch(p){}};var ue={0:200,1223:204},pe=n.ajaxSettings.xhr();N.cors=!!pe&&"withCredentials"in pe,N.ajax=pe=!!pe,n.ajaxTransport((function(y){var C,T;return N.cors||pe&&!y.crossDomain?{send:function(D,$){var P,I=y.xhr();if(I.open(y.type,y.url,y.async,y.username,y.password),y.xhrFields)for(P in y.xhrFields)I[P]=y.xhrFields[P];for(P in y.mimeType&&I.overrideMimeType&&I.overrideMimeType(y.mimeType),y.crossDomain||D["X-Requested-With"]||(D["X-Requested-With"]="XMLHttpRequest"),D)I.setRequestHeader(P,D[P]);C=function(p){return function(){C&&(C=T=I.onload=I.onerror=I.onabort=I.onreadystatechange=null,"abort"===p?I.abort():"error"===p?"number"!=typeof I.status?$(0,"error"):$(I.status,I.statusText):$(ue[I.status]||I.status,I.statusText,"text"!==(I.responseType||"text")||"string"!=typeof I.responseText?{binary:I.response}:{text:I.responseText},I.getAllResponseHeaders()))}},I.onload=C(),T=I.onerror=C("error"),void 0!==I.onabort?I.onabort=T:I.onreadystatechange=function(){4===I.readyState&&p.setTimeout((function(){C&&T()}))},C=C("abort");try{I.send(y.hasContent&&y.data||null)}catch(p){if(C)throw p}},abort:function(){C&&C()}}:void 0})),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(p){return n.globalEval(p),p}}}),n.ajaxPrefilter("script",(function(p){void 0===p.cache&&(p.cache=!1),p.crossDomain&&(p.type="GET")})),n.ajaxTransport("script",(function(p){var y,C;if(p.crossDomain)return{send:function(D,$){y=n("<script>").prop({charset:p.scriptCharset,src:p.url}).on("load error",C=function(p){y.remove(),C=null,p&&$("error"===p.type?404:200,p.type)}),T.head.appendChild(y[0])},abort:function(){C&&C()}}}));var fe=[],ge=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var p=fe.pop()||n.expando+"_"+Qt++;return this[p]=!0,p}}),n.ajaxPrefilter("json jsonp",(function(y,C,T){var D,$,P,I=!1!==y.jsonp&&(ge.test(y.url)?"url":"string"==typeof y.data&&0===(y.contentType||"").indexOf("application/x-www-form-urlencoded")&&ge.test(y.data)&&"data");return I||"jsonp"===y.dataTypes[0]?(D=y.jsonpCallback=n.isFunction(y.jsonpCallback)?y.jsonpCallback():y.jsonpCallback,I?y[I]=y[I].replace(ge,"$1"+D):!1!==y.jsonp&&(y.url+=(Gt.test(y.url)?"&":"?")+y.jsonp+"="+D),y.converters["script json"]=function(){return P||n.error(D+" was not called"),P[0]},y.dataTypes[0]="json",$=p[D],p[D]=function(){P=arguments},T.always((function(){void 0===$?n(p).removeProp(D):p[D]=$,y[D]&&(y.jsonpCallback=C.jsonpCallback,fe.push(D)),P&&n.isFunction($)&&$(P[0]),P=$=void 0})),"script"):void 0})),n.parseHTML=function(p,y,C){if(!p||"string"!=typeof p)return null;"boolean"==typeof y&&(C=y,y=!1),y=y||T;var D=G.exec(p),$=!C&&[];return D?[y.createElement(D[1])]:(D=ca([p],y,$),$&&$.length&&n($).remove(),n.merge([],D.childNodes))};var me=n.fn.load;function Mb(p){return n.isWindow(p)?p:9===p.nodeType&&p.defaultView}n.fn.load=function(p,y,C){if("string"!=typeof p&&me)return me.apply(this,arguments);var T,D,$,P=this,I=p.indexOf(" ");return I>-1&&(T=n.trim(p.slice(I)),p=p.slice(0,I)),n.isFunction(y)?(C=y,y=void 0):y&&"object"==typeof y&&(D="POST"),P.length>0&&n.ajax({url:p,type:D||"GET",dataType:"html",data:y}).done((function(p){$=arguments,P.html(T?n("<div>
2").append(n.parseHTML(p)).find(T):p)})).always(C&&function(p,y){P.each((function(){C.apply(this,$||[p.responseText,y,p])}))}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(p,y){n.fn[y]=function(p){return this.on(y,p)}})),n.expr.filters.animated=function(p){return n.grep(n.timers,(function(y){return p===y.elem})).length},n.offset={setOffset:function(p,y,C){var T,D,$,P,I,A,E=n.css(p,"position"),O=n(p),N={};"static"===E&&(p.style.position="relative"),I=O.offset(),$=n.css(p,"top"),A=n.css(p,"left"),("absolute"===E||"fixed"===E)&&($+A).indexOf("auto")>-1?(P=(T=O.position()).top,D=T.left):(P=parseFloat($)||0,D=parseFloat(A)||0),n.isFunction(y)&&(y=y.call(p,C,n.extend({},I))),null!=y.top&&(N.top=y.top-I.top+P),null!=y.left&&(N.left=y.left-I.left+D),"using"in y?y.using.call(p,N):O.css(N)}},n.fn.extend({offset:function(p){if(arguments.length)return void 0===p?this:this.each((function(y){n.offset.setOffset(this,p,y)}));var y,C,T=this[0],D={top:0,left:0},$=T&&T.ownerDocument;return $?(y=$.documentElement,n.contains(y,T)?(D=T.getBoundingClientRect(),C=Mb($),{top:D.top+C.pageYOffset-y.clientTop,left:D.left+C.pageXOffset-y.clientLeft}):D):void 0},position:function(){if(this[0]){var p,y,C=this[0],T={top:0,left:0};return"fixed"===n.css(C,"position")?y=C.getBoundingClientRect():(p=this.offsetParent(),y=this.offset(),n.nodeName(p[0],"html")||(T=p.offset()),T.top+=n.css(p[0],"borderTopWidth",!0),T.left+=n.css(p[0],"borderLeftWidth",!0)),{top:y.top-T.top-n.css(C,"marginTop",!0),left:y.left-T.left-n.css(C,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var p=this.offsetParent;p&&"static"===n.css(p,"position");)p=p.offsetParent;return p||Lt}))}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(p,y){var C="pageYOffset"===y;n.fn[p]=function(T){return K(this,(function(p,T,D){var $=Mb(p);return void 0===D?$?$[y]:p[T]:void($?$.scrollTo(C?$.pageXOffset:D,C?D:$.pageYOffset):p[T]=D)}),p,T,arguments.length)}})),n.each(["top","left"],(function(p,y){n.cssHooks[y]=Ga(N.pixelPosition,(function(p,C){return C?(C=Fa(p,y),It.test(C)?n(p).position()[y]+"px":C):void 0}))})),n.each({Height:"height",Width:"width"},(function(p,y){n.each({padding:"inner"+p,content:y,"":"outer"+p},(function(C,T){n.fn[T]=function(T,D){var $=arguments.length&&(C||"boolean"!=typeof T),P=C||(!0===T||!0===D?"margin":"border");return K(this,(function(y,C,T){var D;return n.isWindow(y)?y.document.documentElement["client"+p]:9===y.nodeType?(D=y.documentElement,Math.max(y.body["scroll"+p],D["scroll"+p],y.body["offset"+p],D["offset"+p],D["client"+p])):void 0===T?n.css(y,C,P):n.style(y,C,T,P)}),y,$?T:void 0,$,null)}}))})),n.fn.extend({bind:function(p,y,C){return this.on(p,null,y,C)},unbind:function(p,y){return this.off(p,null,y)},delegate:function(p,y,C,T){return this.on(y,p,C,T)},undelegate:function(p,y,C){return 1===arguments.length?this.off(p,"**"):this.off(y,p||"**",C)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return n}));var ve=p.jQuery,be=p.$;return n.noConflict=function(y){return p.$===n&&(p.$=be),y&&p.jQuery===n&&(p.jQuery=ve),n},y||(p.jQuery=p.$=n),n})),
3/*! jQuery UI - v1.11.4 - 2015-03-11
4* http://jqueryui.com
5* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js, menu.js, progressbar.js, resizable.js, selectable.js, selectmenu.js, slider.js, sortable.js, spinner.js, tabs.js, tooltip.js
6* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
7function(p){"function"==typeof define&&define.amd?define(["jquery"],p):p(jQuery)}((function(p){function t(y,C){var T,D,$,P=y.nodeName.toLowerCase();return"area"===P?(D=(T=y.parentNode).name,!(!y.href||!D||"map"!==T.nodeName.toLowerCase())&&(!!($=p("img[usemap='#"+D+"']")[0])&&i($))):(/^(input|select|textarea|button|object)$/.test(P)?!y.disabled:"a"===P&&y.href||C)&&i(y)}function i(y){return p.expr.filters.visible(y)&&!p(y).parents().addBack().filter((function(){return"hidden"===p.css(this,"visibility")})).length}function n(){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","Frid
7ay","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:""},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,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},p.extend(this._defaults,this.regional[""]),this.regional.en=p.extend(!0,{},this.regional[""]),this.regional["en-US"]=p.extend(!0,{},this.regional.en),this.dpDiv=a(p("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(y){var C="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return y.delegate(C,"mouseout",(function(){p(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&p(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&p(this).removeClass("ui-datepicker-next-hover")})).delegate(C,"mouseover",o)}function o(){p.datepicker._isDisabledDatepicker($.inline?$.dpDiv.parent()[0]:$.input[0])||(p(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),p(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&p(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&p(this).addClass("ui-datepicker-next-hover"))}function r(y,C){for(var T in p.extend(y,C),C)null==C[T]&&(y[T]=C[T]);return y}function h(p){return function(){var y=this.element.val();p.apply(this,arguments),this._refresh(),y!==this.element.val()&&this._trigger("change")}}p.ui=p.ui||{},p.extend(p.ui,{version:"1.11.4",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}}),p.fn.extend({scrollParent:function(y){var C=this.css("position"),T="absolute"===C,D=y?/(auto|scroll|hidden)/:/(auto|scroll)/,$=this.parents().filter((function(){var y=p(this);return(!T||"static"!==y.css("position"))&&D.test(y.css("overflow")+y.css("overflow-y")+y.css("overflow-x"))})).eq(0);return"fixed"!==C&&$.length?$:p(this[0].ownerDocument||document)},uniqueId:function(){var p=0;return function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++p)}))}}(),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&p(this).removeAttr("id")}))}}),p.extend(p.expr[":"],{data:p.expr.createPseudo?p.expr.createPseudo((function(y){return function(C){return!!p.data(C,y)}})):function(y,C,T){return!!p.data(y,T[3])},focusable:function(y){return t(y,!isNaN(p.attr(y,"tabindex")))},tabbable:function(y){var C=p.attr(y,"tabindex"),T=isNaN(C);return(T||C>=0)&&t(y,!T)}}),p("<a>").outerWidth(1).jquery||p.each(["Width","Height"],(function(y,C){function s(y,C,D,$){return p.each(T,(function(){C-=parseFloat(p.css(y,"padding"+this))||0,D&&(C-=parseFloat(p.css(y,"border"+this+"Width"))||0),$&&(C-=parseFloat(p.css(y,"margin"+this))||0)})),C}var T="Width"===C?["Left","Right"]:["Top","Bottom"],D=C.toLowerCase(),$={innerWidth:p.fn.innerWidth,innerHeight:p.fn.innerHeight,outerWidth:p.fn.outerWidth,outerHeight:p.fn.outerHeight};p.fn["inner"+C]=function(y){return void 0===y?$["inner"+C].call(this):this.each((function(){p(this).css(D,s(this,y)+"px")}))},p.fn["outer"+C]=function(y,T){return"number"!=typeof y?$["outer"+C].call(this,y):this.each((function(){p(this).css(D,s(this,y,!0,T)+"px")}))}})),p.fn.addBack||(p.fn.addBack=function(p){return this.add(null==p?this.prevObject:this.prevObject.filter(p))}),p("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(p.fn.removeData=function(y){return function(C){return arguments.length?y.call(this,p.camelCase(C)):y.call(this)}}(p.fn.removeData)),p.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),p.fn.extend({focus:function(y){return function(C,T){return"number"==typeof C?this.each((function(){var y=this;setTimeout((function(){p(y).focus(),T&&T.call(y)}),C)})):y.apply(this,arguments)}}(p.fn.focus),disableSelection:function(){var p="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(p+".ui-disableSelection",(function(p){p.preventDefault()}))}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(y){if(void 0!==y)return this.css("zIndex",y);if(this.length)for(var C,T,D=p(this[0]);D.length&&D[0]!==document;){if(("absolute"===(C=D.css("position"))||"relative"===C||"fixed"===C)&&(T=parseInt(D.css("zIndex"),10),!isNaN(T)&&0!==T))return T;D=D.parent()}return 0}}),p.ui.plugin={add:function(y,C,T){var D,$=p.ui[y].prototype;for(D in T)$.plugins[D]=$.plugins[D]||[],$.plugins[D].push([C,T[D]])},call:function(p,y,C,T){var D,$=p.plugins[y];if($&&(T||p.element[0].parentNode&&11!==p.element[0].parentNode.nodeType))for(D=0;$.length>D;
vendor: 10,116 bytes, line 7
7D++)p.options[$[D][0]]&&$[D][1].apply(p.element,C)}};var y=0,C=Array.prototype.slice;p.cleanData=function(y){return function(C){var T,D,$;for($=0;null!=(D=C[$]);$++)try{(T=p._data(D,"events"))&&T.remove&&p(D).triggerHandler("remove")}catch(p){}y(C)}}(p.cleanData),p.widget=function(y,C,T){var D,$,P,I,A={},E=y.split(".")[0];return y=y.split(".")[1],D=E+"-"+y,T||(T=C,C=p.Widget),p.expr[":"][D.toLowerCase()]=function(y){return!!p.data(y,D)},p[E]=p[E]||{},$=p[E][y],P=p[E][y]=function(p,y){return this._createWidget?void(arguments.length&&this._createWidget(p,y)):new P(p,y)},p.extend(P,$,{version:T.version,_proto:p.extend({},T),_childConstructors:[]}),(I=new C).options=p.widget.extend({},I.options),p.each(T,(function(y,T){return p.isFunction(T)?void(A[y]=function(){var e=function(){return C.prototype[y].apply(this,arguments)},n=function(p){return C.prototype[y].apply(this,p)};return function(){var p,y=this._super,C=this._superApply;return this._super=e,this._superApply=n,p=T.apply(this,arguments),this._super=y,this._superApply=C,p}}()):void(A[y]=T)})),P.prototype=p.widget.extend(I,{widgetEventPrefix:$&&I.widgetEventPrefix||y},A,{constructor:P,namespace:E,widgetName:y,widgetFullName:D}),$?(p.each($._childConstructors,(function(y,C){var T=C.prototype;p.widget(T.namespace+"."+T.widgetName,P,C._proto)})),delete $._childConstructors):C._childConstructors.push(P),p.widget.bridge(y,P),P},p.widget.extend=function(y){for(var T,D,$=C.call(arguments,1),P=0,I=$.length;I>P;P++)for(T in $[P])D=$[P][T],$[P].hasOwnProperty(T)&&void 0!==D&&(y[T]=p.isPlainObject(D)?p.isPlainObject(y[T])?p.widget.extend({},y[T],D):p.widget.extend({},D):D);return y},p.widget.bridge=function(y,T){var D=T.prototype.widgetFullName||y;p.fn[y]=function($){var P="string"==typeof $,I=C.call(arguments,1),A=this;return P?this.each((function(){var C,T=p.data(this,D);return"instance"===$?(A=T,!1):T?p.isFunction(T[$])&&"_"!==$.charAt(0)?(C=T[$].apply(T,I))!==T&&void 0!==C?(A=C&&C.jquery?A.pushStack(C.get()):C,!1):void 0:p.error("no such method '"+$+"' for "+y+" widget instance"):p.error("cannot call methods on "+y+" prior to initialization; attempted to call method '"+$+"'")})):(I.length&&($=p.widget.extend.apply(null,[$].concat(I))),this.each((function(){var y=p.data(this,D);y?(y.option($||{}),y._init&&y._init()):p.data(this,D,new T($,this))}))),A}},p.Widget=function(){},p.Widget._childConstructors=[],p.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(C,T){T=p(T||this.defaultElement||this)[0],this.element=p(T),this.uuid=y++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=p(),this.hoverable=p(),this.focusable=p(),T!==this&&(p.data(T,this.widgetFullName,this),this._on(!0,this.element,{remove:function(p){p.target===T&&this.destroy()}}),this.document=p(T.style?T.ownerDocument:T.document||T),this.window=p(this.document[0].defaultView||this.document[0].parentWindow)),this.options=p.widget.extend({},this.options,this._getCreateOptions(),C),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:p.noop,_getCreateEventData:p.noop,_create:p.noop,_init:p.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(p.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:p.noop,widget:function(){return this.element},option:function(y,C){var T,D,$,P=y;if(0===arguments.length)return p.widget.extend({},this.options);if("string"==typeof y)if(P={},T=y.split("."),y=T.shift(),T.length){for(D=P[y]=p.widget.extend({},this.options[y]),$=0;T.length-1>$;$++)D[T[$]]=D[T[$]]||{},D=D[T[$]];if(y=T.pop(),1===arguments.length)return void 0===D[y]?null:D[y];D[y]=C}else{if(1===arguments.length)return void 0===this.options[y]?null:this.options[y];P[y]=C}return this._setOptions(P),this},_setOptions:function(p){var y;for(y in p)this._setOption(y,p[y]);return this},_setOption:function(p,y){return this.options[p]=y,"disabled"===p&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!y),y&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(y,C,T){var D,$=this;"boolean"!=typeof y&&(T=C,C=y,y=!1),T?(C=D=p(C),this.bindings=this.bindings.add(C)):(T=C,C=this.element,D=this.widget()),p.each(T,(function(T,P){function r(){return y||!0!==$.options.disabled&&!p(this).hasClass("ui-state-disabled")?("string"==typeof P?$[P]:P).apply($,arguments):void 0}"string"!=typeof P&&(r.guid=P.guid=P.guid||r.guid||p.guid++);var I=T.match(/^([\w:-]*)\s*(.*)$/),A=I[1]+$.eventNamespace,E=I[2];E?D.delegate(E,A,r):C.bind(A,r)}))},_off:function(y,C){C=(C||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,y.unbind(C).undelegate(C),this.bindings=p(this.bindings.not(y).get()),this.focusable=p(this.focusable.not(y).get()),this.hoverable=p(this.hoverable.not(y).get())},_delay:function(p,y){var C=this;return setTimeout((function i(){return("string"==typeof p?C[p]:p).apply(C,arguments)}),y||0)},_hoverable:function(y){this.hoverable=this.hoverable.add(y),this._on(y,{mouseenter:function(y){p(y.currentTarget).addClass("ui-state-hover")},mouseleave:function(y){p(y.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(y){this.focusable=this.focusable.add(y),this._on(y,{focusin:function(y){p(y.currentTarget).addClass("ui-state-focus")},focusout:function(y){p(y.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(y,C,T){var D,$,P=this.options[y];if(T=T||{},(C=p.Event(C)).type=(y===this.widgetEventPrefix?y:this.widgetEventPrefix+y).toLowerCase(),C.target=this.element[0],$=C.originalEvent)for(D in $)D in C||(C[D]=$[D]);return this.element.trigger(C,T),!(p.isFunction(P)&&!1===P.apply(this.element[0],[C].concat(T))||C.isDefaultPrevented())}},p.each({show:"fadeIn",hide:"fadeOut"},(function(y,C){p.Widget.prototype["_"+y]=function(T,D,$){"string"==typeof D&&(D={effect:D});var P,I=D?!0===D||"number"==typeof D?C:D.effect||C:y;"number"==typeof(D=D||{})&&(D={duration:D}),P=!p.isEmptyObject(D),D.complete=$,D.delay&&T.delay(D.delay),P&&p.effects&&p.effects.effect[I]?T[y](D):I!==y&&T[I]?T[I](D.duration,D.easing,$):T.queue((function(C){p(this)[y](),$&&$.call(T[0]),C()}))}})),p.widget;var T=!1;p(document).mouseup((function(){T=!1})),p.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var y=this;this.element.bind("mousedown."+this.widgetName,(function(p){return y._mouseDown(p)})).bind("click."+this.widgetName,(function(C){return!0===p.data(C.target,y.widgetName+".preventClickEvent")?(p.removeData(C.target,y.widgetName+".preventClickEvent"),C.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(y){if(!T){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(y),this._mouseDownEvent=y;var C=this,D=1===y.which,$=!("string"!=typeof this.options.cancel||!y.target.nodeName)&&p(y.target).closest(this.options.cancel).length;return!(D&&!$&&this._mouseCapture(y))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){C.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(y)&&this._mouseDelayMet(y)&&(this._mouseStarted=!1!==this._mouseStart(y),!this._mouseStarted)?(y.preventDefault(),!0):(!0===p.data(y.target,this.widgetName+".preventClickEvent")&&p.removeData(y.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(p){return C._mouseMove(p)},this._mouseUpDelegate=function(p){return C._mouseUp(p)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),y.preventDefault(),T=!0,!0))}},_mouseMove:function(y){if(this._mouseMoved){if(p.ui.ie&&(!document.documentMode||9>document.documentMode)&&!y.button)return this._mouseUp(y);if(!y.which)return this._mouseUp(y)}return(y.which||y.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(y),y.preventDefault()):(this._mouseDistanceMet(y)&&this._mouseDelayMet(y)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,y),this._mouseStarted?this._mouseDrag(y):this._mouseUp(y)),!this._mouseStarted)},_mouseUp:function(y){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,y.target===this._mouseDownEvent.target&&p.data(y.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(y)),T=!1,!1},_mouseDistanceMet:function(p){return Math.max(Math.abs(this._mouseDownEvent.pageX-p.pageX),Math.abs(this._mouseDownEvent.pageY-p.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function t(p,y,C){return[parseFloat(p[0])*(O.test(p[0])?y/100:1),parseFloat(p[1])*(O.test(p[1])?C/100:1)]}function i(y,C){return parseInt(p.css(y,C),10)||0}function s(y){var C=y[0];return 9===C.nodeType?{width:y.width(),height:y.height(),offset:{top:0,left:0}}:p.isWindow(C)?{width:y.width(),height:y.height(),offset:{top:y.scrollTop(),left:y.scrollLeft()}}:C.preventDefault?{width:0,height:0,offset:{top:C.pageY,left:C.pageX}}:{width:y.outerWidth(),height:y.outerHeight(),offset:y.offset()}}p.ui=p.ui||{};var y,C,T=Math.max,D=Math.abs,$=Math.round,P=/left|center|right/,I=/top|center|bottom/,A=/[\+\-]\d+(\.[\d]+)?%?/,E=/^\w+/,O=
vendor: 5,196 bytes, line 7
7/%$/,N=p.fn.position;p.position={scrollbarWidth:function(){if(void 0!==y)return y;var C,T,D=p("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),$=D.children()[0];return p("body").append(D),C=$.offsetWidth,D.css("overflow","scroll"),C===(T=$.offsetWidth)&&(T=D[0].clientWidth),D.remove(),y=C-T},getScrollInfo:function(y){var C=y.isWindow||y.isDocument?"":y.element.css("overflow-x"),T=y.isWindow||y.isDocument?"":y.element.css("overflow-y"),D="scroll"===C||"auto"===C&&y.width<y.element[0].scrollWidth;return{width:"scroll"===T||"auto"===T&&y.height<y.element[0].scrollHeight?p.position.scrollbarWidth():0,height:D?p.position.scrollbarWidth():0}},getWithinInfo:function(y){var C=p(y||window),T=p.isWindow(C[0]),D=!!C[0]&&9===C[0].nodeType;return{element:C,isWindow:T,isDocument:D,offset:C.offset()||{left:0,top:0},scrollLeft:C.scrollLeft(),scrollTop:C.scrollTop(),width:T||D?C.width():C.outerWidth(),height:T||D?C.height():C.outerHeight()}}},p.fn.position=function(y){if(!y||!y.of)return N.apply(this,arguments);y=p.extend({},y);var O,j,q,U,Y,X,Q=p(y.of),G=p.position.getWithinInfo(y.within),Z=p.position.getScrollInfo(G),tt=(y.collision||"flip").split(" "),et={};return X=s(Q),Q[0].preventDefault&&(y.at="left top"),j=X.width,q=X.height,U=X.offset,Y=p.extend({},U),p.each(["my","at"],(function(){var p,C,T=(y[this]||"").split(" ");1===T.length&&(T=P.test(T[0])?T.concat(["center"]):I.test(T[0])?["center"].concat(T):["center","center"]),T[0]=P.test(T[0])?T[0]:"center",T[1]=I.test(T[1])?T[1]:"center",p=A.exec(T[0]),C=A.exec(T[1]),et[this]=[p?p[0]:0,C?C[0]:0],y[this]=[E.exec(T[0])[0],E.exec(T[1])[0]]})),1===tt.length&&(tt[1]=tt[0]),"right"===y.at[0]?Y.left+=j:"center"===y.at[0]&&(Y.left+=j/2),"bottom"===y.at[1]?Y.top+=q:"center"===y.at[1]&&(Y.top+=q/2),O=t(et.at,j,q),Y.left+=O[0],Y.top+=O[1],this.each((function(){var P,I,A=p(this),E=A.outerWidth(),N=A.outerHeight(),X=i(this,"marginLeft"),it=i(this,"marginTop"),nt=E+X+i(this,"marginRight")+Z.width,st=N+it+i(this,"marginBottom")+Z.height,ot=p.extend({},Y),at=t(et.my,A.outerWidth(),A.outerHeight());"right"===y.my[0]?ot.left-=E:"center"===y.my[0]&&(ot.left-=E/2),"bottom"===y.my[1]?ot.top-=N:"center"===y.my[1]&&(ot.top-=N/2),ot.left+=at[0],ot.top+=at[1],C||(ot.left=$(ot.left),ot.top=$(ot.top)),P={marginLeft:X,marginTop:it},p.each(["left","top"],(function(C,T){p.ui.position[tt[C]]&&p.ui.position[tt[C]][T](ot,{targetWidth:j,targetHeight:q,elemWidth:E,elemHeight:N,collisionPosition:P,collisionWidth:nt,collisionHeight:st,offset:[O[0]+at[0],O[1]+at[1]],my:y.my,at:y.at,within:G,elem:A})})),y.using&&(I=function(p){var C=U.left-ot.left,$=C+j-E,P=U.top-ot.top,I=P+q-N,O={target:{element:Q,left:U.left,top:U.top,width:j,height:q},element:{element:A,left:ot.left,top:ot.top,width:E,height:N},horizontal:0>$?"left":C>0?"right":"center",vertical:0>I?"top":P>0?"bottom":"middle"};E>j&&j>D(C+$)&&(O.horizontal="center"),N>q&&q>D(P+I)&&(O.vertical="middle"),O.important=T(D(C),D($))>T(D(P),D(I))?"horizontal":"vertical",y.using.call(this,p,O)}),A.offset(p.extend(ot,{using:I}))}))},p.ui.position={fit:{left:function(p,y){var C,D=y.within,$=D.isWindow?D.scrollLeft:D.offset.left,P=D.width,I=p.left-y.collisionPosition.marginLeft,A=$-I,E=I+y.collisionWidth-P-$;y.collisionWidth>P?A>0&&0>=E?(C=p.left+A+y.collisionWidth-P-$,p.left+=A-C):p.left=E>0&&0>=A?$:A>E?$+P-y.collisionWidth:$:A>0?p.left+=A:E>0?p.left-=E:p.left=T(p.left-I,p.left)},top:function(p,y){var C,D=y.within,$=D.isWindow?D.scrollTop:D.offset.top,P=y.within.height,I=p.top-y.collisionPosition.marginTop,A=$-I,E=I+y.collisionHeight-P-$;y.collisionHeight>P?A>0&&0>=E?(C=p.top+A+y.collisionHeight-P-$,p.top+=A-C):p.top=E>0&&0>=A?$:A>E?$+P-y.collisionHeight:$:A>0?p.top+=A:E>0?p.top-=E:p.top=T(p.top-I,p.top)}},flip:{left:function(p,y){var C,T,$=y.within,P=$.offset.left+$.scrollLeft,I=$.width,A=$.isWindow?$.scrollLeft:$.offset.left,E=p.left-y.collisionPosition.marginLeft,O=E-A,N=E+y.collisionWidth-I-A,j="left"===y.my[0]?-y.elemWidth:"right"===y.my[0]?y.elemWidth:0,q="left"===y.at[0]?y.targetWidth:"right"===y.at[0]?-y.targetWidth:0,U=-2*y.offset[0];0>O?(0>(C=p.left+j+q+U+y.collisionWidth-I-P)||D(O)>C)&&(p.left+=j+q+U):N>0&&(((T=p.left-y.collisionPosition.marginLeft+j+q+U-A)>0||N>D(T))&&(p.left+=j+q+U))},top:function(p,y){var C,T,$=y.within,P=$.offset.top+$.scrollTop,I=$.height,A=$.isWindow?$.scrollTop:$.offset.top,E=p.top-y.collisionPosition.marginTop,O=E-A,N=E+y.collisionHeight-I-A,j="top"===y.my[1]?-y.elemHeight:"bottom"===y.my[1]?y.elemHeight:0,q="top"===y.at[1]?y.targetHeight:"bottom"===y.at[1]?-y.targetHeight:0,U=-2*y.offset[1];0>O?(0>(T=p.top+j+q+U+y.collisionHeight-I-P)||D(O)>T)&&(p.top+=j+q+U):N>0&&(((C=p.top-y.collisionPosition.marginTop+j+q+U-A)>0||N>D(C))&&(p.top+=j+q+U))}},flipfit:{left:function(){p.ui.position.flip.left.apply(this,arguments),p.ui.position.fit.left.apply(this,arguments)},top:function(){p.ui.position.flip.top.apply(this,arguments),p.ui.position.fit.top.apply(this,arguments)}}},function(){var y,T,D,$,P,I=document.getElementsByTagName("body")[0],A=document.createElement("div");for(P in y=document.createElement(I?"div":"body"),D={visibility:"hidden",
7width:0,height:0,border:0,margin:0,background:"none"},I&&p.extend(D,{position:"absolute",left:"-1000px",top:"-1000px"}),D)y.style[P]=D[P];y.appendChild(A),(T=I||document.documentElement).insertBefore(y,T.firstChild),A.style.cssText="position: absolute; left: 10.7432222px;",$=p(A).offset().left,C=$>10&&11>$,y.innerHTML="",T.removeChild(y)}()}(),p.ui.position,p.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :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 y=this.options;this.prevShow=this.prevHide=p(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),y.collapsible||!1!==y.active&&null!=y.active||(y.active=0),this._processPanels(),0>y.active&&(y.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():p()}},_createIcons:function(){var y=this.options.icons;y&&(p("<span>").addClass("ui-accordion-header-icon ui-icon "+y.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(y.header).addClass(y.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var p;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),p=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&p.css("height","")},_setOption:function(p,y){return"active"===p?void this._activate(y):("event"===p&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(y)),this._super(p,y),"collapsible"!==p||y||!1!==this.options.active||this._activate(0),"icons"===p&&(this._destroyIcons(),y&&this._createIcons()),void("disabled"===p&&(this.element.toggleClass("ui-state-disabled",!!y).attr("aria-disabled",y),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!y))))},_keydown:function(y){if(!y.altKey&&!y.ctrlKey){var C=p.ui.keyCode,T=this.headers.length,D=this.headers.index(y.target),$=!1;switch(y.keyCode){case C.RIGHT:case C.DOWN:$=this.headers[(D+1)%T];break;case C.LEFT:case C.UP:$=this.headers[(D-1+T)%T];break;case C.SPACE:case C.ENTER:this._eventHandler(y);break;case C.HOME:$=this.headers[0];break;case C.END:$=this.headers[T-1]}$&&(p(y.target).attr("tabIndex",-1),p($).attr("tabIndex",0),$.focus(),y.preventDefault())}},_panelKeyDown:function(y){y.keyCode===p.ui.keyCode.UP&&y.ctrlKey&&p(y.currentTarget).prev().focus()},refresh:function(){var y=this.options;this._processPanels(),!1===y.active&&!0===y.collapsible||!this.headers.length?(y.active=!1,this.active=p()):!1===y.active?this._activate(0):this.active.length&&!p.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(y.active=!1,this.active=p()):this._activate(Math.max(0,y.active-1)):y.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var p=this.headers,y=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),y&&(this._off(p.not(this.headers)),this._off(y.not(this.panels)))},_refresh:function(){var y,C=this.options,T=C.heightStyle,D=this.element.parent();this.active=this._findActive(C.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each((function(){var y=p(this),C=y.uniqueId().attr("id"),T=y.next(),D=T.uniqueId().attr("id");y.attr("aria-controls",D),T.attr("aria-labelledby",C)})).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(C.event),"fill"===T?(y=D.height(),this.element.siblings(":visible").each((function(){var C=p(this),T=C.css("position");"absolute"!==T&&"fixed"!==T&&(y-=C.outerHeight(!0))})),this.headers.each((function(){y-=p(this).outerHeight(!0)})),this.headers.next().each((function(){p(this).height(Math.max(0,y-p(this).innerHeight()+p(this).height()))}
vendor: 4,214 bytes, line 7
7)).css("overflow","auto")):"auto"===T&&(y=0,this.headers.next().each((function(){y=Math.max(y,p(this).css("height","").height())})).height(y))},_activate:function(y){var C=this._findActive(y)[0];C!==this.active[0]&&(C=C||this.active[0],this._eventHandler({target:C,currentTarget:C,preventDefault:p.noop}))},_findActive:function(y){return"number"==typeof y?this.headers.eq(y):p()},_setupEvents:function(y){var C={keydown:"_keydown"};y&&p.each(y.split(" "),(function(p,y){C[y]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,C),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(y){var C=this.options,T=this.active,D=p(y.currentTarget),$=D[0]===T[0],P=$&&C.collapsible,I=P?p():D.next(),A=T.next(),E={oldHeader:T,oldPanel:A,newHeader:P?p():D,newPanel:I};y.preventDefault(),$&&!C.collapsible||!1===this._trigger("beforeActivate",y,E)||(C.active=!P&&this.headers.index(D),this.active=$?p():D,this._toggle(E),T.removeClass("ui-accordion-header-active ui-state-active"),C.icons&&T.children(".ui-accordion-header-icon").removeClass(C.icons.activeHeader).addClass(C.icons.header),$||(D.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),C.icons&&D.children(".ui-accordion-header-icon").removeClass(C.icons.header).addClass(C.icons.activeHeader),D.next().addClass("ui-accordion-content-active")))},_toggle:function(y){var C=y.newPanel,T=this.prevShow.length?this.prevShow:y.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=C,this.prevHide=T,this.options.animate?this._animate(C,T,y):(T.hide(),C.show(),this._toggleComplete(y)),T.attr({"aria-hidden":"true"}),T.prev().attr({"aria-selected":"false","aria-expanded":"false"}),C.length&&T.length?T.prev().attr({tabIndex:-1,"aria-expanded":"false"}):C.length&&this.headers.filter((function(){return 0===parseInt(p(this).attr("tabIndex"),10)})).attr("tabIndex",-1),C.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(p,y,C){var T,D,$,P=this,I=0,A=p.css("box-sizing"),E=p.length&&(!y.length||p.index()<y.index()),O=this.options.animate||{},N=E&&O.down||O,c=function(){P._toggleComplete(C)};return"number"==typeof N&&($=N),"string"==typeof N&&(D=N),D=D||N.easing||O.easing,$=$||N.duration||O.duration,y.length?p.length?(T=p.show().outerHeight(),y.animate(this.hideProps,{duration:$,easing:D,step:function(p,y){y.now=Math.round(p)}}),void p.hide().animate(this.showProps,{duration:$,easing:D,complete:c,step:function(p,C){C.now=Math.round(p),"height"!==C.prop?"content-box"===A&&(I+=C.now):"content"!==P.options.heightStyle&&(C.now=Math.round(T-y.outerHeight()-I),I=0)}})):y.animate(this.hideProps,$,D,c):p.animate(this.showProps,$,D,c)},_toggleComplete:function(p){var y=p.oldPanel;y.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),y.length&&(y.parent()[0].className=y.parent()[0].className),this._trigger("activate",null,p)}}),p.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(p){p.preventDefault()},"click .ui-menu-item":function(y){var C=p(y.target);!this.mouseHandled&&C.not(".ui-state-disabled").length&&(this.select(y),y.isPropagationStopped()||(this.mouseHandled=!0),C.has(".ui-menu").length?this.expand(y):!this.element.is(":focus")&&p(this.document[0].activeElement).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":function(y){if(!this.previousFilter){var 
7C=p(y.currentTarget);C.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(y,C)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(p,y){var C=this.active||this.element.find(this.options.items).eq(0);y||this.focus(p,C)},blur:function(y){this._delay((function(){p.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(y)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(p){this._closeOnDocumentClick(p)&&this.collapseAll(p),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each((function(){var y=p(this);y.data("ui-menu-submenu-carat")&&y.remove()})),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(y){var C,T,D,$,P=!0;switch(y.keyCode){case p.ui.keyCode.PAGE_UP:this.previousPage(y);break;case p.ui.keyCode.PAGE_DOWN:this.nextPage(y);break;case p.ui.keyCode.HOME:this._move("first","first",y);break;case p.ui.keyCode.END:this._move("last","last",y);break;case p.ui.keyCode.UP:this.previous(y);break;case p.ui.keyCode.DOWN:this.next(y);break;case p.ui.keyCode.LEFT:this.collapse(y);break;case p.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(y);break;case p.ui.keyCode.ENTER:case p.ui.keyCode.SPACE:this._activate(y);break;case p.ui.keyCode.ESCAPE:this.collapse(y);break;default:P=!1,T=this.previousFilter||"",D=String.fromCharCode(y.keyCode),$=!1,clearTimeout(this.filterTimer),D===T?$=!0:D=T+D,C=this._filterMenuItems(D),(C=$&&-1!==C.index(this.active.next())?this.active.nextAll(".ui-menu-item"):C).length||(D=String.fromCharCode(y.keyCode),C=this._filterMenuItems(D)),C.length?(this.focus(y,C),this.previousFilter=D,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}P&&y.preventDefault()},_activate:function(p){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(p):this.select(p))},refresh:function(){var y,C=this,T=this.options.icons.submenu,D=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),D.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var y=p(this),C=y.parent(),D=p("<span>").addClass("ui-menu-icon ui-icon "+T).data("ui-menu-submenu-carat",!0);C.attr("aria-haspopup","true").prepend(D),y.attr("aria-labelledby",C.attr("id"))})),(y=D.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var y=p(this);C._isDivider(y)&&y.addClass("ui-widget-content ui-menu-divider")})),y.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),y.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!p.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(p,y){"icons"===p&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(y.submenu),"disabled"===p&&this.element.toggleClass("ui-state-disabled",!!y).attr("aria-disabled",y),this._super(p,y)},focus:function(p,y){var C,T;this.blur(p,p&&"focus"===p.type),this._scrollIntoView(y),this.active=y.first(),T=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",T.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),p&&"keydown"===p.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(C=y.children(".ui-menu")).length&&p&&/^mouse/.test(p.type)&&this._startOpening(C),this.activeMenu=y.parent(),this._trigger("focus",p,{item:y})},_scrollIntoView:function(y){var C,T,D,$,P,I;this._hasScroll()&&(C=parseFloat(p.css(this.activeMenu[0],"borderTopWidth"))||0,T=parseFloat(p.css(this.activeMenu[0],"paddingTop"))||0,D=y.offset().top-this.activeMenu.offset().top-C-T,$=this.activeMenu.scrollTop(),P=this.activeMenu.height(),I=y.outerHeight(),0>D?this.activeMenu.scrollTop($+D):D+I>P&&this.activeMenu.scrollTop($+D-P+I))},blur:function(p,y){y||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",p,{item:this.active}))},_startOpening:function(p){clearTimeout(this.timer),"true"===p.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(p)}),this.delay))},_open:function(y){var C=p.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(y.parents(".ui-menu")).hide().attr("aria-hidden","true"),y.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(C)},collapseAll:function(y,C){clearTimeout(this.timer),this.timer=this._delay((function(){var T=C?this.element:p(y&&y.target).closest(this.element.find(".ui-menu"));T.length||(T=this.element),this._close(T),this.blur(y),this.activeMenu=T}),this.delay)},_close:function(p){p||(p=this.active?this.active.parent():this.element),p.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
7se").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(y){return!p(y.target).closest(".ui-menu").length},_isDivider:function(p){return!/[^\-\u2014\u2013\s]/.test(p.text())},collapse:function(p){var y=this.active&&this.active.parent().closest(".ui-menu-item",this.element);y&&y.length&&(this._close(),this.focus(p,y))},expand:function(p){var y=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();y&&y.length&&(this._open(y.parent()),this._delay((function(){this.focus(p,y)})))},next:function(p){this._move("next","first",p)},previous:function(p){this._move("prev","last",p)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(p,y,C){var T;this.active&&(T="first"===p||"last"===p?this.active["first"===p?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[p+"All"](".ui-menu-item").eq(0)),T&&T.length&&this.active||(T=this.activeMenu.find(this.options.items)[y]()),this.focus(C,T)},nextPage:function(y){var C,T,D;return this.active?void(this.isLastItem()||(this._hasScroll()?(T=this.active.offset().top,D=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return 0>(C=p(this)).offset().top-T-D})),this.focus(y,C)):this.focus(y,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(y)},previousPage:function(y){var C,T,D;return this.active?void(this.isFirstItem()||(this._hasScroll()?(T=this.active.offset().top,D=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(C=p(this)).offset().top-T+D>0})),this.focus(y,C)):this.focus(y,this.activeMenu.find(this.options.items).first()))):void this.next(y)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(y){this.active=this.active||p(y.target).closest(".ui-menu-item");var C={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(y,!0),this._trigger("select",y,C)},_filterMenuItems:function(y){var C=y.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),T=RegExp("^"+C,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return T.test(p.trim(p(this).text()))}))}}),p.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",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,_create:function(){var y,C,T,D=this.element[0].nodeName.toLowerCase(),$="textarea"===D,P="input"===D;this.isMultiLine=!!$||!P&&this.element.prop("isContentEditable"),this.valueMethod=this.element[$||P?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(D){if(this.element.prop("readOnly"))return y=!0,T=!0,void(C=!0);y=!1,T=!1,C=!1;var $=p.ui.keyCode;switch(D.keyCode){case $.PAGE_UP:y=!0,this._move("previousPage",D);break;case $.PAGE_DOWN:y=!0,this._move("nextPage",D);break;case $.UP:y=!0,this._keyEvent("previous",D);break;case $.DOWN:y=!0,this._keyEvent("next",D);break;case $.ENTER:this.menu.active&&(y=!0,D.preventDefault(),this.menu.select(D));break;case $.TAB:this.menu.active&&this.menu.select(D);break;case $.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(D),D.preventDefault());break;default:C=!0,this._searchTimeout(D)}},keypress:function(T){if(y)return y=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&T.preventDefault());if(!C){var D=p.ui.keyCode;switch(T.keyCode){case D.PAGE_UP:this._move("previousPage",T);break;case D.PAGE_DOWN:this._move("nextPage",T);break;case D.UP:this._keyEvent("previous",T);break;case D.DOWN:this._keyEvent("next",T)}}},input:function(p){return T?(T=!1,void p.preventDefault()):void this._searchTimeout(p)},focus:function(){this.selectedItem=null,this.previous=this._value(
7)},blur:function(p){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(p),void this._change(p))}}),this._initSource(),this.menu=p("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(y){y.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur}));var C=this.menu.element[0];p(y.target).closest(".ui-menu-item").length||this._delay((function(){var y=this;this.document.one("mousedown",(function(T){T.target===y.element[0]||T.target===C||p.contains(C,T.target)||y.close()}))}))},menufocus:function(y,C){var T,D;return this.isNewMenu&&(this.isNewMenu=!1,y.originalEvent&&/^mouse/.test(y.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",(function(){p(y.target).trigger(y.originalEvent)}))):(D=C.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",y,{item:D})&&y.originalEvent&&/^key/.test(y.originalEvent.type)&&this._value(D.value),void((T=C.item.attr("aria-label")||D.value)&&p.trim(T).length&&(this.liveRegion.children().hide(),p("<div>").text(T).appendTo(this.liveRegion))))},menuselect:function(p,y){var C=y.item.data("ui-autocomplete-item"),T=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=T,this._delay((function(){this.previous=T,this.selectedItem=C}))),!1!==this._trigger("select",p,{item:C})&&this._value(C.value),this.term=this._value(),this.close(p),this.selectedItem=C}}),this.liveRegion=p("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(p,y){this._super(p,y),"source"===p&&this._initSource(),"appendTo"===p&&this.menu.element.appendTo(this._appendTo()),"disabled"===p&&y&&this.xhr&&this.xhr.abort()},_appendTo:function(){var y=this.options.appendTo;return y&&(y=y.jquery||y.nodeType?p(y):this.document.find(y).eq(0)),y&&y[0]||(y=this.element.closest(".ui-front")),y.length||(y=this.document[0].body),y},_initSource:function(){var y,C,T=this;p.isArray(this.options.source)?(y=this.options.source,this.source=function(C,T){T(p.ui.autocomplete.filter(y,C.term))}):"string"==typeof this.options.source?(C=this.options.source,this.source=function(y,D){T.xhr&&T.xhr.abort(),T.xhr=p.ajax({url:C,data:y,dataType:"json",success:function(p){D(p)},error:function(){D([])}})}):this.source=this.options.source},_searchTimeout:function(p){clearTimeout(this.searching),this.searching=this._delay((function(){var y=this.term===this._value(),C=this.menu.element.is(":visible"),T=p.altKey||p.ctrlKey||p.metaKey||p.shiftKey;(!y||y&&!C&&!T)&&(this.selectedItem=null,this.search(null,p))}),this.options.delay)},search:function(p,y){return p=null!=p?p:this._value(),this.term=this._value(),p.length<this.options.minLength?this.close(y):!1!==this._trigger("search",y)?this._search(p):void 0},_search:function(p){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:p},this._response())},_response:function(){var y=++this.requestIndex;return p.proxy((function(p){y===this.requestIndex&&this.__response(p),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")}),this)},__response:function(p){p&&(p=this._normalize(p)),this._trigger("response",null,{content:p}),!this.options.disabled&&p&&p.length&&!this.cancelSearch?(this._suggest(p),this._trigger("open")):this._close()},close:function(p){this.cancelSearch=!0,this._close(p)},_close:function(p){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",p))},_change:function(p){this.previous!==this._value()&&this._trigger("change",p,{item:this.selectedItem})},_normalize:function(y){return y.length&&y[0].label&&y[0].value?y:p.map(y,(function(y){return"string"==typeof y?{label:y,value:y}:p.extend({},y,{label:y.label||y.value,value:y.value||y.label})}))},_suggest:function(y){var C=this.menu.element.empty();this._renderMenu(C,y),this.isNewMenu=!0,this.menu.refresh(),C.show(),this._resizeMenu(),C.position(p.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var p=this.menu.element;p.outerWidth(Math.max(p.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(y,C){var T=this;p.each(C,(function(p,C){T._renderItemData(y,C)}))},_renderItemData:function(p,y){return this._renderItem(p,y).data("ui-autocomplete-item",y)},_renderItem:function(y,C){return p("<li>").text(C.label).appendTo(y)},_move:function(p,y){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(p)||this.menu.isLastItem()&&/^next/.test(p)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[p](y):void this.search(null,y)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(p,y){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(p,y),y.preventDefault())}}),p.extend(p.ui.autocomplete,{escapeRegex:function(p){return p.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(y,C){var T=RegExp(p.ui.autocomplete.escapeRegex(C),"i");return p.grep(y,(function(p){return T.test(p.label||p.value||p)}))}}),p.widget("ui.autocomplete",p.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(p){return p+(p>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(y){var C;this._superApply(arguments),this.options.disabled||this.cancelSearch||(C=y&&y.length?this.options.messages.results(y.length):this.options.messages.noResults,this.liveRegion.children().hide(),p("<div>").text(C).appendTo(this.liveRegion))}}),p.ui.autocomplete;var D,$,P="ui-button ui-widget ui-state-default ui-corner-all",I="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",m=function(){var y=p(this);setTimeout((function(){y.find(":ui-button").button("refresh")}),1)},g=function(y){var C=y.name,T=y.form,D=p([]);return C&&(C=C.replace(/'/g,"\\'"),D=T?p(T).find("[name='"+C+"'][type=radio]"):p("[name='"+C+"'][type=radio]",y.ownerDocument).filter((function(){return!this.form}))),D};p.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,m),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var y=this,C=this.options,T="checkbox"===this.type||"radio"===this.type,$=T?"":"ui-state-active";null===C.label&&(C.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(P).attr("role","button").bind("mouseenter"+this.eventNamespace,(function(){C.disabled||this===D&&p(this).addClass("ui-state-active")})).bind("mouseleave"+this.eventNamespace,(function(){C.disabled||p(this).removeClass($)})).bind("click"+this.eventNamespace,(function(p){C.disabled&&(p.preventDefault(),p.stopImmediatePropagation())}
7)),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),T&&this.element.bind("change"+this.eventNamespace,(function(){y.refresh()})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,(function(){return!C.disabled&&void 0})):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,(function(){if(C.disabled)return!1;p(this).addClass("ui-state-active"),y.buttonElement.attr("aria-pressed","true");var T=y.element[0];g(T).not(T).map((function(){return p(this).button("widget")[0]})).removeClass("ui-state-active").attr("aria-pressed","false")})):(this.buttonElement.bind("mousedown"+this.eventNamespace,(function(){return!C.disabled&&(p(this).addClass("ui-state-active"),D=this,void y.document.one("mouseup",(function(){D=null})))})).bind("mouseup"+this.eventNamespace,(function(){return!C.disabled&&void p(this).removeClass("ui-state-active")})).bind("keydown"+this.eventNamespace,(function(y){return!C.disabled&&void((y.keyCode===p.ui.keyCode.SPACE||y.keyCode===p.ui.keyCode.ENTER)&&p(this).addClass("ui-state-active"))})).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,(function(){p(this).removeClass("ui-state-active")})),this.buttonElement.is("a")&&this.buttonElement.keyup((function(y){y.keyCode===p.ui.keyCode.SPACE&&p(this).click()}))),this._setOption("disabled",C.disabled),this._resetButton()},_determineButtonType:function(){var p,y,C;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(p=this.element.parents().last(),y="label[for='"+this.element.attr("id")+"']",this.buttonElement=p.find(y),this.buttonElement.length||(p=p.length?p.siblings():this.element.siblings(),this.buttonElement=p.filter(y),this.buttonElement.length||(this.buttonElement=p.find(y))),this.element.addClass("ui-helper-hidden-accessible"),(C=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",C)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(P+" ui-state-active "+I).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(p,y){return this._super(p,y),"disabled"===p?(this.widget().toggleClass("ui-state-disabled",!!y),this.element.prop("disabled",!!y),void(y&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")))):void this._resetButton()},refresh:function(){var y=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");y!==this.options.disabled&&this._setOption("disabled",y),"radio"===this.type?g(this.element[0]).each((function(){p(this).is(":checked")?p(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):p(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")})):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var y=this.buttonElement.removeClass(I),C=p("<sp
vendor: 6,027 bytes, line 7
7an></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(y.empty()).text(),T=this.options.icons,D=T.primary&&T.secondary,$=[];T.primary||T.secondary?(this.options.text&&$.push("ui-button-text-icon"+(D?"s":T.primary?"-primary":"-secondary")),T.primary&&y.prepend("<span class='ui-button-icon-primary ui-icon "+T.primary+"'></span>"),T.secondary&&y.append("<span class='ui-button-icon-secondary ui-icon "+T.secondary+"'></span>"),this.options.text||($.push(D?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||y.attr("title",p.trim(C)))):$.push("ui-button-text-only"),y.addClass($.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),p.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(p,y){"disabled"===p&&this.buttons.button("option",p,y),this._super(p,y)},refresh:function(){var y="rtl"===this.element.css("direction"),C=this.element.find(this.options.items),T=C.filter(":ui-button");C.not(":ui-button").button(),T.button("refresh"),this.buttons=C.map((function(){return p(this).button("widget")[0]})).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(y?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(y?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map((function(){return p(this).button("widget")[0]})).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}}),p.ui.button,p.extend(p.ui,{datepicker:{version:"1.11.4"}}),p.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(p){return r(this._defaults,p||{}),this},_attachDatepicker:function(y,C){var T,D,$;D="div"===(T=y.nodeName.toLowerCase())||"span"===T,y.id||(this.uuid+=1,y.id="dp"+this.uuid),($=this._newInst(p(y),D)).settings=p.extend({},C||{}),"input"===T?this._connectDatepicker(y,$):D&&this._inlineDatepicker(y,$)},_newInst:function(y,C){return{id:y[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:y,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:C,dpDiv:C?a(p("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(y,C){var T=p(y);C.append=p([]),C.trigger=p([]),T.hasClass(this.markerClassName)||(this._attachments(T,C),T.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(C),p.data(y,"datepicker",C),C.settings.disabled&&this._disableDatepicker(y))},_attachments:function(y,C){var T,D,$,P=this._get(C,"appendText"),I=this._get(C,"isRTL");C.append&&C.append.remove(),P&&(C.append=p("<span class='"+this._appendClass+"'>"+P+"</span>"),y[I?"before":"after"](C.append)),y.unbind("focus",this._showDatepicker),C.trigger&&C.trigger.remove(),("focus"===(T=this._get(C,"showOn"))||"both"===T)&&y.focus(this._showDatepicker),("button"===T||"both"===T)&&(D=this._get(C,"buttonText"),$=this._get(C,"buttonImage"),C.trigger=p(this._get(C,"buttonImageOnly")?p("<img/>").addClass(this._triggerClass).attr({src:$,alt:D,title:D}):p("<button type='button'></button>").addClass(this._triggerClass).html($?p("<img/>").attr({src:$,alt:D,title:D}):D)),y[I?"before":"after"](C.trigger),C.trigger.click((function(){return p.datepicker._datepickerShowing&&p.datepicker._lastInput===y[0]?p.datepicker._hideDatepicker():p.datepicker._datepickerShowing&&p.datepicker._lastInput!==y[0]?(p.datepicker._hideDatepicker(),p.datepicker._showDatepicker(y[0])):p.datepicker._showDatepicker(y[0]),!1})))},_autoSize:function(p){if(this._get(p,"autoSize")&&!p.inline){var y,C,T,D,$=new Date(2009,11,20),P=this._get(p,"dateFormat");P.match(/[DM]/)&&(y=function(p){for(C=0,T=0,D=0;p.length>D;D++)p[D].length>C&&(C=p[D].length,T=D);return T},$.setMonth(y(this._get(p,P.match(/MM/)?"monthNames":"monthNamesShort"))),$.setDate(y(this._get(p,P.match(/DD/)?"dayNames":"dayNamesShort"))+20-$.getDay())),p.input.attr("size",this._formatDate(p,$).length)}},_inlineDatepicker:function(y,C){var T=p(y);T.hasClass(this.markerClassName)||(T.addClass(this.markerClassName).append(C.dpDiv),p.data(y,"datepicker",C),this._setDate(C,this._getDefaultDate(C),!0),this._updateDatepicker(C),this._updateAlternate(C),C.settings.disabled&&this._disableDatepicker(y),C.dpDiv.css("display","block"))},_dialogDatepicker:function(y,C,T,D,$){var P,I,A,E,O,N=this._dialogInst;return N||(this.uuid+=1,P="dp"+this.uuid,this._dialogInput=p("<input type='text' id='"+P+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),p("body").append(this._dialogInput),(N=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},p.data(this._dialogInput[0],"datepicker",N)),r(N.settings,D||{}),C=C&&C.constructor===Date?this._formatDate(N,C):C,this._dialogInput.val(C),this._pos=$?$.length?$:[$.pageX,$.pageY]:null,this._pos||(I=document.documentElement.clientWidth,A=document.documentElement.clientHeight,E=document.documentElement.scrollLeft||document.body.scrollLeft,O=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[I/2-100+E,A/2-150+O]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),N.settings.onSelect=T,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),p.blockUI&&p.blockUI(this.dpDiv),p.data(this._dialogInput[0],"datepicker",N),this},_destroyDatepicker:function(y){var C,T=p(y),D=p.data(y,"datepicker");T.hasClass(this.markerClassName)&&(C=y.nodeName.toLowerCase(),p.removeData(y,"datepicker"),"input"===C?(D.append.remove(),D.trigger.remove(),T.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("
7keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===C||"span"===C)&&T.removeClass(this.markerClassName).empty(),$===D&&($=null))},_enableDatepicker:function(y){var C,T,D=p(y),$=p.data(y,"datepicker");D.hasClass(this.markerClassName)&&("input"===(C=y.nodeName.toLowerCase())?(y.disabled=!1,$.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===C||"span"===C)&&((T=D.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),T.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=p.map(this._disabledInputs,(function(p){return p===y?null:p})))},_disableDatepicker:function(y){var C,T,D=p(y),$=p.data(y,"datepicker");D.hasClass(this.markerClassName)&&("input"===(C=y.nodeName.toLowerCase())?(y.disabled=!0,$.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===C||"span"===C)&&((T=D.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),T.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=p.map(this._disabledInputs,(function(p){return p===y?null:p})),this._disabledInputs[this._disabledInputs.length]=y)},_isDisabledDatepicker:function(p){if(!p)return!1;for(var y=0;this._disabledInputs.length>y;y++)if(this._disabledInputs[y]===p)return!0;return!1},_getInst:function(y){try{return p.data(y,"datepicker")}catch(p){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(y,C,T){var D,$,P,I,A=this._getInst(y);return 2===arguments.length&&"string"==typeof C?"defaults"===C?p.extend({},p.datepicker._defaults):A?"all"===C?p.extend({},A.settings):this._get(A,C):null:(D=C||{},"string"==typeof C&&((D={})[C]=T),void(A&&(this._curInst===A&&this._hideDatepicker(),$=this._getDateDatepicker(y,!0),P=this._getMinMaxDate(A,"min"),I=this._getMinMaxDate(A,"max"),r(A.settings,D),null!==P&&void 0!==D.dateFormat&&void 0===D.minDate&&(A.settings.minDate=this._formatDate(A,P)),null!==I&&void 0!==D.dateFormat&&void 0===D.maxDate&&(A.settings.maxDate=this._formatDate(A,I)),"disabled"in D&&(D.disabled?this._disableDatepicker(y):this._enableDatepicker(y)),this._attachments(p(y),A),this._autoSize(A),this._setDate(A,$),this._updateAlternate(A),this._updateDatepicker(A))))},_changeDatepicker:function(p,y,C){this._optionDatepicker(p,y,C)},_refreshDatepicker:function(p){var y=this._getInst(p);y&&this._updateDatepicker(y)},_setDateDatepicker:function(p,y){var C=this._getInst(p);C&&(this._setDate(C,y),this._updateDatepicker(C),this._updateAlternate(C))},_getDateDatepicker:function(p,y){var C=this._getInst(p);return C&&!C.inline&&this._setDateFromField(C,y),C?this._getDate(C):null},_doKeyDown:function(y){var C,T,D,$=p.datepicker._getInst(y.target),P=!0,I=$.dpDiv.is(".ui-datepicker-rtl");if($._keyEvent=!0,p.datepicker._datepickerShowing)switch(y.keyCode){case 9:p.datepicker._hideDatepicker(),P=!1;break;case 13:return(D=p("td."+p.datepicker._dayOverClass+":not(."+p.datepicker._currentClass+")",$.dpDiv))[0]&&p.datepicker._selectDay(y.target,$.selectedMonth,$.selectedYear,D[0]),(C=p.datepicker._get($,"onSelect"))?(T=p.datepicker._formatDate($),C.apply($.input?$.input[0]:null,[T,$])):p.datepicker._hideDatepicker(),!1;case 27:p.datepicker._hideDatepicker();break;case 33:p.datepicker._adjustDate(y.target,y.ctrlKey?-p.datepicker._get($,"stepBigMonths"):-p.datepicker._get($,"stepMonths"),"M");break;case 34:p.datepicker._adjustDate(y.target,y.ctrlKey?+p.datepicker._get($,"stepBigMonths"):+p.datepicker._get($,"stepMonths"),"M");break;case 35:(y.ctrlKey||y.metaKey)&&p.datepicker._clearDate(y.target),P=y.ctrlKey||y.metaKey;break;case 36:(y.ctrlKey||y.metaKey)&&p.datepicker._gotoToday(y.target),P=y.ctrlKey||y.metaKey;break;case 37:(y.ctrlKey||y.metaKey)&&p.datepicker._adjustDate(y.target,I?1:-1,"D"),P=y.ctrlKey||y.metaKey,y.originalEvent.altKey&&p.datepicker._adjustDate(y.target,y.ctrlKey?-p.datepicker._get($,"stepBigMonths"):-p.datepicker._get($,"stepMonths"),"M");break;case 38:(y.ctrlKey||y.metaKey)&&p.datepicker._adjustDate(y.target,-7,"D"),P=y.ctrlKey||y.metaKey;break;case 39:(y.ctrlKey||y.metaKey)&&p.datepicker._adjustDate(y.target,I?-1:1,"D"),P=y.ctrlKey||y.metaKey,y.originalEvent.altKey&&p.datepicker._adjustDate(y.target,y.ctrlKey?+p.datepicker._get($,"stepBigMonths"):+p.datepicker._get($,"stepMonths"),"M");break;case 40:(y.ctrlKey||y.metaKey)&&p.datepicker._adjustDate(y.target,7,"D"),P=y.ctrlKey||y.metaKey;break;default:P=!1}else 36===y.keyCode&&y.ctrlKey?p.datepicker._showDatepicker(this):P=!1;P&&(y.preventDefault(),y.stopPropagation())},_doKeyPress:function(y){var C,T,D=p.datepicker._getInst(y.target);return p.datepicker._get(D,"constrainInput")?(C=p.datepicker._possibleChars(p.datepicker._get(D,"dateFormat")),T=String.fromCharCode(null==y.charCode?y.keyCode:y.charCode),y.ctrlKey||y.metaKey||" ">T||!C||C.indexOf(T)>-1):void 0},_doKeyUp:function(y){var C=p.datepicker._getInst(y.target);if(C.input.val()!==C.lastVal)try{p.datepicker.parseDate(p.datepicker._get(C,"dateFormat"),C.input?C.input.val():null,p.datepicker._getFormatConfig(C))&&(p.datepicker._setDateFromField(C),p.datepicker._updateAlternate(C),p.datepicker._updateDatepicker(C))}catch(p){}return!0},_showDatepicker:function(y){var C,T,D,$,P,I,A;("input"!==(y=y.target||y).nodeName.toLowerCase()&&(y=p("input",y.parentNode)[0]),p.datepicker._isDisabledDatepicker(y)||p.datepicker._lastInput===y)||(C=p.datepicker._getInst(y),p.datepicker._curInst&&p.datepicker._curInst!==C&&(p.datepicker._curInst.dpDiv.stop(!0,!0),C&&p.datepicker._datepickerShowing&&p.datepicker._hideDatepicker(p.datepicker._curInst.input[0])),!1!==(D=(T=p.datepicker._get(C,"beforeShow"))?T.apply(y,[y,C]):{}
vendor: 5,048 bytes, line 7
7)&&(r(C.settings,D),C.lastVal=null,p.datepicker._lastInput=y,p.datepicker._setDateFromField(C),p.datepicker._inDialog&&(y.value=""),p.datepicker._pos||(p.datepicker._pos=p.datepicker._findPos(y),p.datepicker._pos[1]+=y.offsetHeight),$=!1,p(y).parents().each((function(){return!($|="fixed"===p(this).css("position"))})),P={left:p.datepicker._pos[0],top:p.datepicker._pos[1]},p.datepicker._pos=null,C.dpDiv.empty(),C.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),p.datepicker._updateDatepicker(C),P=p.datepicker._checkOffset(C,P,$),C.dpDiv.css({position:p.datepicker._inDialog&&p.blockUI?"static":$?"fixed":"absolute",display:"none",left:P.left+"px",top:P.top+"px"}),C.inline||(I=p.datepicker._get(C,"showAnim"),A=p.datepicker._get(C,"duration"),C.dpDiv.css("z-index",function s(p){for(var y,C;p.length&&p[0]!==document;){if(("absolute"===(y=p.css("position"))||"relative"===y||"fixed"===y)&&(C=parseInt(p.css("zIndex"),10),!isNaN(C)&&0!==C))return C;p=p.parent()}return 0}(p(y))+1),p.datepicker._datepickerShowing=!0,p.effects&&p.effects.effect[I]?C.dpDiv.show(I,p.datepicker._get(C,"showOptions"),A):C.dpDiv[I||"show"](I?A:null),p.datepicker._shouldFocusInput(C)&&C.input.focus(),p.datepicker._curInst=C)))},_updateDatepicker:function(y){this.maxRows=4,$=y,y.dpDiv.empty().append(this._generateHTML(y)),this._attachHandlers(y);var C,T=this._getNumberOfMonths(y),D=T[1],P=y.dpDiv.find("."+this._dayOverClass+" a");P.length>0&&o.apply(P.get(0)),y.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),D>1&&y.dpDiv.addClass("ui-datepicker-multi-"+D).css("width",17*D+"em"),y.dpDiv[(1!==T[0]||1!==T[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),y.dpDiv[(this._get(y,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),y===p.datepicker._curInst&&p.datepicker._datepickerShowing&&p.datepicker._shouldFocusInput(y)&&y.input.focus(),y.yearshtml&&(C=y.yearshtml,setTimeout((function(){C===y.yearshtml&&y.yearshtml&&y.dpDiv.find("select.ui-datepicker-year:first").replaceWith(y.yearshtml),C=y.yearshtml=null}),0))},_shouldFocusInput:function(p){return p.input&&p.input.is(":visible")&&!p.input.is(":disabled")&&!p.input.is(":focus")},_checkOffset:function(y,C,T){var D=y.dpDiv.outerWidth(),$=y.dpDiv.outerHeight(),P=y.input?y.input.outerWidth():0,I=y.input?y.input.outerHeight():0,A=document.documentElement.clientWidth+(T?0:p(document).scrollLeft()),E=document.documentElement.clientHeight+(T?0:p(document).scrollTop());return C.left-=this._get(y,"isRTL")?D-P:0,C.left-=T&&C.left===y.input.offset().left?p(document).scrollLeft():0,C.top-=T&&C.top===y.input.offset().top+I?p(document).scrollTop():0,C.left-=Math.min(C.left,C.left+D>A&&A>D?Math.abs(C.left+D-A):0),C.top-=Math.min(C.top,C.top+$>E&&E>$?Math.abs($+I):0),C},_findPos:function(y){for(var C,T=this._getInst(y),D=this._get(T,"isRTL");y&&("hidden"===y.type||1!==y.nodeType||p.expr.filters.hidden(y));)y=y[D?"previousSibling":"nextSibling"];return[(C=p(y).offset()).left,C.top]},_hideDatepicker:function(y){var C,T,D,$,P=this._curInst;!P||y&&P!==p.data(y,"datepicker")||this._datepickerShowing&&(C=this._get(P,"showAnim"),T=this._get(P,"duration"),D=function(){p.datepicker._tidyDialog(P)},p.effects&&(p.effects.effect[C]||p.effects[C])?P.dpDiv.hide(C,p.datepicker._get(P,"showOptions"),T,D):P.dpDiv["slideDown"===C?"slideUp":"fadeIn"===C?"fadeOut":"hide"](C?T:null,D),C||D(),this._datepickerShowing=!1,($=this._get(P,"onClose"))&&$.apply(P.input?P.input[0]:null,[P.input?P.input.val():"",P]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),p.blockUI&&(p.unblockUI(),p("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(p){p.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(y){if(p.datepicker._curInst){var C=p(y.target),T=p.datepicker._getInst(C[0]);(C[0].id!==p.datepicker._mainDivId&&0===C.parents("#"+p.datepicker._mainDivId).length&&!C.hasClass(p.datepicker.markerClassName)&&!C.closest("."+p.datepicker._triggerClass).length&&p.datepicker._datepickerShowing&&(!p.datepicker._inDialog||!p.blockUI)||C.hasClass(p.datepicker.markerClassName)&&p.datepicker._curInst!==T)&&p.datepicker._hideDatepicker()}},_adjustDate:function(y,C,T){var D=p(y),$=this._getInst(D[0]);this._isDisabledDatepicker(D[0])||(this._adjustInstDate($,C+("M"===T?this._get($,"showCurrentAtPos"):0),T),this._updateDatepicker($))},_gotoToday:function(y){var C,T=p(y),D=this._getInst(T[0]);this._get(D,"gotoCurrent")&&D.currentDay?(D.selectedDay=D.currentDay,D.drawMonth=D.selectedMonth=D.currentMonth,D.drawYear=D.selectedYear=D.currentYear):(C=new Date,D.selectedDay=C.getDate(),D.drawMonth=D.selectedMonth=C.getMonth(),D.drawYear=D.selectedYear=C.getFullYear()),this._notifyChange(D),this._adjustDate(T)},_selectMonthYear:function(y,C,T){var D=p(y),$=this._getInst(D[0]);$["selected"+("M"===T?"Month":"Year")]=$["draw"+("M"===T?"Month":"Year")]=parseInt(C.options[C.selectedIndex].value,10),this._notifyChange($),this._adjustDate(D
vendor: 5,187 bytes, line 7
7)},_selectDay:function(y,C,T,D){var $,P=p(y);p(D).hasClass(this._unselectableClass)||this._isDisabledDatepicker(P[0])||(($=this._getInst(P[0])).selectedDay=$.currentDay=p("a",D).html(),$.selectedMonth=$.currentMonth=C,$.selectedYear=$.currentYear=T,this._selectDate(y,this._formatDate($,$.currentDay,$.currentMonth,$.currentYear)))},_clearDate:function(y){var C=p(y);this._selectDate(C,"")},_selectDate:function(y,C){var T,D=p(y),$=this._getInst(D[0]);C=null!=C?C:this._formatDate($),$.input&&$.input.val(C),this._updateAlternate($),(T=this._get($,"onSelect"))?T.apply($.input?$.input[0]:null,[C,$]):$.input&&$.input.trigger("change"),$.inline?this._updateDatepicker($):(this._hideDatepicker(),this._lastInput=$.input[0],"object"!=typeof $.input[0]&&$.input.focus(),this._lastInput=null)},_updateAlternate:function(y){var C,T,D,$=this._get(y,"altField");$&&(C=this._get(y,"altFormat")||this._get(y,"dateFormat"),T=this._getDate(y),D=this.formatDate(C,T,this._getFormatConfig(y)),p($).each((function(){p(this).val(D)})))},noWeekends:function(p){var y=p.getDay();return[y>0&&6>y,""]},iso8601Week:function(p){var y,C=new Date(p.getTime());return C.setDate(C.getDate()+4-(C.getDay()||7)),y=C.getTime(),C.setMonth(0),C.setDate(1),Math.floor(Math.round((y-C)/864e5)/7)+1},parseDate:function(y,C,T){if(null==y||null==C)throw"Invalid arguments";if(""===(C="object"==typeof C?""+C:C+""))return null;var D,$,P,I,A=0,E=(T?T.shortYearCutoff:null)||this._defaults.shortYearCutoff,O="string"!=typeof E?E:(new Date).getFullYear()%100+parseInt(E,10),N=(T?T.dayNamesShort:null)||this._defaults.dayNamesShort,j=(T?T.dayNames:null)||this._defaults.dayNames,q=(T?T.monthNamesShort:null)||this._defaults.monthNamesShort,U=(T?T.monthNames:null)||this._defaults.monthNames,Y=-1,X=-1,Q=-1,G=-1,Z=!1,_=function(p){var C=y.length>D+1&&y.charAt(D+1)===p;return C&&D++,C},x=function(p){var y=_(p),T="@"===p?14:"!"===p?20:"y"===p&&y?4:"o"===p?3:2,D=RegExp("^\\d{"+("y"===p?T:1)+","+T+"}"),$=C.substring(A).match(D);if(!$)throw"Missing number at position "+A;return A+=$[0].length,parseInt($[0],10)},w=function(y,T,D){var $=-1,P=p.map(_(y)?D:T,(function(p,y){return[[y,p]]})).sort((function(p,y){return-(p[1].length-y[1].length)}));if(p.each(P,(function(p,y){var T=y[1];return C.substr(A,T.length).toLowerCase()===T.toLowerCase()?($=y[0],A+=T.length,!1):void 0})),-1!==$)return $+1;throw"Unknown name at position "+A},k=function(){if(C.charAt(A)!==y.charAt(D))throw"Unexpected literal at position "+A;A++};for(D=0;y.length>D;D++)if(Z)"'"!==y.charAt(D)||_("'")?k():Z=!1;else switch(y.charAt(D)){case"d":Q=x("d");break;case"D":w("D",N,j);break;case"o":G=x("o");break;case"m":X=x("m");break;case"M":X=w("M",q,U);break;case"y":Y=x("y");break;case"@":Y=(I=new Date(x("@"))).getFullYear(),X=I.getMonth()+1,Q=I.getDate();break;case"!":Y=(I=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),X=I.getMonth()+1,Q=I.getDate();break;case"'":_("'")?k():Z=!0;break;default:k()}if(C.length>A&&(P=C.substr(A),!/^\s+/.test(P)))throw"Extra/unparsed characters found in date: "+P;if(-1===Y?Y=(new Date).getFullYear():100>Y&&(Y+=(new Date).getFullYear()-(new Date).getFullYear()%100+(O>=Y?0:-100)),G>-1)for(X=1,Q=G;!(($=this._getDaysInMonth(Y,X-1))>=Q);)X++,Q-=$;if((I=this._daylightSavingAdjust(new Date(Y,X-1,Q))).getFullYear()!==Y||I.getMonth()+1!==X||I.getDate()!==Q)throw"Invalid date";return I},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:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(p,y,C){if(!y)return"";var T,D=(C?C.dayNamesShort:null)||this._defaults.dayNamesShort,$=(C?C.dayNames:null)||this._defaults.dayNames,P=(C?C.monthNamesShort:null)||this._defaults.monthNamesShort,I=(C?C.monthNames:null)||this._defaults.monthNames,h=function(y){var C=p.length>T+1&&p.charAt(T+1)===y;return C&&T++,C},l=function(p,y,C){var T=""+y;if(h(p))for(;C>T.length;)T="0"+T;return T},u=function(p,y,C,T){return h(p)?T[y]:C[y]},A="",E=!1;if(y)for(T=0;p.length>T;T++)if(E)"'"!==p.charAt(T)||h("'")?A+=p.charAt(T):E=!1;else switch(p.charAt(T)){case"d":A+=l("d",y.getDate(),2);break;case"D":A+=u("D",y.getDay(),D,$);break;case"o":A+=l("o",Math.round((new Date(y.getFullYear(),y.getMonth(),y.getDate()).getTime()-new Date(y.getFullYear(),0,0).getTime())/864e5),3);break;case"m":A+=l("m",y.getMonth()+1,2);break;case"M":A+=u("M",y.getMonth(),P,I);break;case"y":A+=h("y")?y.getFullYear():(10>y.getYear()%100?"0":"")+y.getYear()%100;break;case"@":A+=y.getTime();break;case"!":A+=1e4*y.getTime()+this._ticksTo1970;break;case"'":h("'")?A+="'":E=!0;break;default:A+=p.charAt(T)}return A},_possibleChars:function(p){var y,C="",T=!1,n=function(C){var T=p.length>y+1&&p.charAt(y+1)===C;return T&&y++,T};for(y=0;p.length>y;y++)if(T)"'"!==p.charAt(y)||n("'")?C+=p.charAt(y):T=!1;else switch(p.charAt(y)){case"d":case"m":case"y":case"@":C+="0123456789";break;case"D":case"M":return null;case"'":n("'")?C+="'":T=!0;break;default:C+=p.charAt(y)}return C},_get:function(p,y){return void 0!==p.settings[y]?p.settings[y]:this._defaults[y]}
vendor: 6,339 bytes, line 7
7,_setDateFromField:function(p,y){if(p.input.val()!==p.lastVal){var C=this._get(p,"dateFormat"),T=p.lastVal=p.input?p.input.val():null,D=this._getDefaultDate(p),$=D,P=this._getFormatConfig(p);try{$=this.parseDate(C,T,P)||D}catch(p){T=y?"":T}p.selectedDay=$.getDate(),p.drawMonth=p.selectedMonth=$.getMonth(),p.drawYear=p.selectedYear=$.getFullYear(),p.currentDay=T?$.getDate():0,p.currentMonth=T?$.getMonth():0,p.currentYear=T?$.getFullYear():0,this._adjustInstDate(p)}},_getDefaultDate:function(p){return this._restrictMinMax(p,this._determineDate(p,this._get(p,"defaultDate"),new Date))},_determineDate:function(y,C,T){var D=null==C||""===C?T:"string"==typeof C?function(C){try{return p.datepicker.parseDate(p.datepicker._get(y,"dateFormat"),C,p.datepicker._getFormatConfig(y))}catch(p){}for(var T=(C.toLowerCase().match(/^c/)?p.datepicker._getDate(y):null)||new Date,D=T.getFullYear(),$=T.getMonth(),P=T.getDate(),I=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,A=I.exec(C);A;){switch(A[2]||"d"){case"d":case"D":P+=parseInt(A[1],10);break;case"w":case"W":P+=7*parseInt(A[1],10);break;case"m":case"M":$+=parseInt(A[1],10),P=Math.min(P,p.datepicker._getDaysInMonth(D,$));break;case"y":case"Y":D+=parseInt(A[1],10),P=Math.min(P,p.datepicker._getDaysInMonth(D,$))}A=I.exec(C)}return new Date(D,$,P)}(C):"number"==typeof C?isNaN(C)?T:function(p){var y=new Date;return y.setDate(y.getDate()+p),y}(C):new Date(C.getTime());return(D=D&&"Invalid Date"==""+D?T:D)&&(D.setHours(0),D.setMinutes(0),D.setSeconds(0),D.setMilliseconds(0)),this._daylightSavingAdjust(D)},_daylightSavingAdjust:function(p){return p?(p.setHours(p.getHours()>12?p.getHours()+2:0),p):null},_setDate:function(p,y,C){var T=!y,D=p.selectedMonth,$=p.selectedYear,P=this._restrictMinMax(p,this._determineDate(p,y,new Date));p.selectedDay=p.currentDay=P.getDate(),p.drawMonth=p.selectedMonth=p.currentMonth=P.getMonth(),p.drawYear=p.selectedYear=p.currentYear=P.getFullYear(),D===p.selectedMonth&&$===p.selectedYear||C||this._notifyChange(p),this._adjustInstDate(p),p.input&&p.input.val(T?"":this._formatDate(p))},_getDate:function(p){return!p.currentYear||p.input&&""===p.input.val()?null:this._daylightSavingAdjust(new Date(p.currentYear,p.currentMonth,p.currentDay))},_attachHandlers:function(y){var C=this._get(y,"stepMonths"),T="#"+y.id.replace(/\\\\/g,"\\");y.dpDiv.find("[data-handler]").map((function(){var y={prev:function(){p.datepicker._adjustDate(T,-C,"M")},next:function(){p.datepicker._adjustDate(T,+C,"M")},hide:function(){p.datepicker._hideDatepicker()},today:function(){p.datepicker._gotoToday(T)},selectDay:function(){return p.datepicker._selectDay(T,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return p.datepicker._selectMonthYear(T,this,"M"),!1},selectYear:function(){return p.datepicker._selectMonthYear(T,this,"Y"),!1}};p(this).bind(this.getAttribute("data-event"),y[this.getAttribute("data-handler")])}))},_generateHTML:function(p){var y,C,T,D,$,P,I,A,E,O,N,j,q,U,Y,X,Q,G,Z,tt,et,it,nt,st,ot,at,rt,lt,ct,dt,ht,ut,pt,ft,gt,mt,vt,bt,_t,yt=new Date,wt=this._daylightSavingAdjust(new Date(yt.getFullYear(),yt.getMonth(),yt.getDate())),xt=this._get(p,"isRTL"),kt=this._get(p,"showButtonPanel"),Ct=this._get(p,"hideIfNoPrevNext"),Tt=this._get(p,"navigationAsDateFormat"),St=this._getNumberOfMonths(p),Dt=this._get(p,"showCurrentAtPos"),$t=this._get(p,"stepMonths"),Pt=1!==St[0]||1!==St[1],It=this._daylightSavingAdjust(p.currentDay?new Date(p.currentYear,p.currentMonth,p.currentDay):new Date(9999,9,9)),Lt=this._getMinMaxDate(p,"min"),Mt=this._getMinMaxDate(p,"max"),At=p.drawMonth-Dt,Et=p.drawYear;if(0>At&&(At+=12,Et--),Mt)for(y=this._daylightSavingAdjust(new Date(Mt.getFullYear(),Mt.getMonth()-St[0]*St[1]+1,Mt.getDate())),y=Lt&&Lt>y?Lt:y;this._daylightSavingAdjust(new Date(Et,At,1))>y;)0>--At&&(At=11,Et--);for(p.drawMonth=At,p.drawYear=Et,C=this._get(p,"prevText"),C=Tt?this.formatDate(C,this._daylightSavingAdjust(new Date(Et,At-$t,1)),this._getFormatConfig(p)):C,T=this._canAdjustMonth(p,-1,Et,At)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+C+"'><span class='ui-icon ui-icon-circle-triangle-"+(xt?"e":"w")+"'>"+C+"</span></a>":Ct?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+C+"'><span class='ui-icon ui-icon-circle-triangle-"+(xt?"e":"w")+"'>"+C+"</span></a>",D=this._get(p,"nextText"),D=Tt?this.formatDate(D,this._daylightSavingAdjust(new Date(Et,At+$t,1)),this._getFormatConfig(p)):D,$=this._canAdjustMonth(p,1,Et,At)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+D+"'><span class='ui-icon ui-icon-circle-triangle-"+(xt?"w":"e")+"'>"+D+"</span></a>":Ct?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+D+"'><span class='ui-icon ui-icon-circle-triangle-"+(xt?"w":"e")+"'>"+D+"</span></a>",P=this._get(p,"currentText"),I=this._get(p,"gotoCurrent")&&p.currentDay?It:wt,P=Tt?this.formatDate(P,I,this._getFormatConfig(p)):P,A=p.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(p,"closeText")+"</button>",E=kt?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(xt?A:"")+(this._isInRange(p,I)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+P+"</button>":"")+(xt?"":A)+"</div>":"",O=parseInt(this._get(p,"firstDay"),10),O=isNaN(O)?0:O,N=this._get(p,"showWeek"),j=this._get(p,"dayNames"),q=this._get(p,"dayNamesMin"),U=this._get(p,"monthNames"),Y=this._get(p,"monthNamesShort"),X=this._get(p,"beforeShowDay"),Q=this._get(p,"showOtherMonths"),G=this._get(p,"selectOtherMonths"),Z=this._getDefaultDate(p),tt="",it=0;St[0]>it;it++){for(nt="",this.maxRows=4,st=0;St[1]>st;st++){if(ot=this._daylightSavingAdjust(new Date(Et,At,p.selectedDay)),at=" ui-corner-all",rt="",Pt){if(rt+="<div class='ui-datepicker-group",St[1]>1)switch(st){case 0:rt+=" ui-datepicker-group-first",at=" ui-corner-"+(xt?"right":"left");break;case St[1]-1:rt+=" ui-datepicker-group-last",at=" ui-corner-"+(xt?"left":"right");break;default:rt+=" ui-datepicker-group-middle",at=""}rt+="'>"}for(rt+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+
vendor: 3,398 bytes, line 7
7at+"'>"+(/all|left/.test(at)&&0===it?xt?$:T:"")+(/all|right/.test(at)&&0===it?xt?T:$:"")+this._generateMonthYearHeader(p,At,Et,Lt,Mt,it>0||st>0,U,Y)+"</div><table class='ui-datepicker-calendar'><thead><tr>",lt=N?"<th class='ui-datepicker-week-col'>"+this._get(p,"weekHeader")+"</th>":"",et=0;7>et;et++)lt+="<th scope='col'"+((et+O+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+j[ct=(et+O)%7]+"'>"+q[ct]+"</span></th>";for(rt+=lt+"</tr></thead><tbody>",dt=this._getDaysInMonth(Et,At),Et===p.selectedYear&&At===p.selectedMonth&&(p.selectedDay=Math.min(p.selectedDay,dt)),ht=(this._getFirstDayOfMonth(Et,At)-O+7)%7,ut=Math.ceil((ht+dt)/7),pt=Pt&&this.maxRows>ut?this.maxRows:ut,this.maxRows=pt,ft=this._daylightSavingAdjust(new Date(Et,At,1-ht)),gt=0;pt>gt;gt++){for(rt+="<tr>",mt=N?"<td class='ui-datepicker-week-col'>"+this._get(p,"calculateWeek")(ft)+"</td>":"",et=0;7>et;et++)vt=X?X.apply(p.input?p.input[0]:null,[ft]):[!0,""],_t=(bt=ft.getMonth()!==At)&&!G||!vt[0]||Lt&&Lt>ft||Mt&&ft>Mt,mt+="<td class='"+((et+O+6)%7>=5?" ui-datepicker-week-end":"")+(bt?" ui-datepicker-other-month":"")+(ft.getTime()===ot.getTime()&&At===p.selectedMonth&&p._keyEvent||Z.getTime()===ft.getTime()&&Z.getTime()===ot.getTime()?" "+this._dayOverClass:"")+(_t?" "+this._unselectableClass+" ui-state-disabled":"")+(bt&&!Q?"":" "+vt[1]+(ft.getTime()===It.getTime()?" "+this._currentClass:"")+(ft.getTime()===wt.getTime()?" ui-datepicker-today":""))+"'"+(bt&&!Q||!vt[2]?"":" title='"+vt[2].replace(/'/g,"&#39;")+"'")+(_t?"":" data-handler='selectDay' data-event='click' data-month='"+ft.getMonth()+"' data-year='"+ft.getFullYear()+"'")+">"+(bt&&!Q?"&#xa0;":_t?"<span class='ui-state-default'>"+ft.getDate()+"</span>":"<a class='ui-state-default"+(ft.getTime()===wt.getTime()?" ui-state-highlight":"")+(ft.getTime()===It.getTime()?" ui-state-active":"")+(bt?" ui-priority-secondary":"")+"' href='#'>"+ft.getDate()+"</a>")+"</td>",ft.setDate(ft.getDate()+1),ft=this._daylightSavingAdjust(ft);rt+=mt+"</tr>"}++At>11&&(At=0,Et++),nt+=rt+="</tbody></table>"+(Pt?"</div>"+(St[0]>0&&st===St[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}tt+=nt}return tt+=E,p._keyEvent=!1,tt},_generateMonthYearHeader:function(p,y,C,T,D,$,P,I){var A,E,O,N,j,q,U,Y,X=this._get(p,"changeMonth"),Q=this._get(p,"changeYear"),G=this._get(p,"showMonthAfterYear"),Z="<div class='ui-datepicker-title'>",tt="";if($||!X)tt+="<span class='ui-datepicker-month'>"+P[y]+"</span>";else{for(A=T&&T.getFullYear()===C,E=D&&D.getFullYear()===C,tt+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",O=0;12>O;O++)(!A||O>=T.getMonth())&&(!E||D.getMonth()>=O)&&(tt+="<option value='"+O+"'"+(O===y?" selected='selected'":"")+">"+I[O]+"</option>");tt+="</select>"}if(G||(Z+=tt+(!$&&X&&Q?"":"&#xa0;")),!p.yearshtml)if(p.yearshtml="",$||!Q)Z+="<span class='ui-datepicker-year'>"+C+"</span>";else{for(N=this._get(p,"yearRange").split(":"),j=(new Date).getFullYear(),q=function(p){var y=p.match(/c[+\-].*/)?C+parseInt(p.substring(1),10):p.match(/[+\-].*/)?j+parseInt(p,10):parseInt(p,10);return isNaN(y)?j:y},U=q(N[0]),Y=Math.max(U,q(N[1]||"")),U=T?Math.max(U,T.getFullYear()):U,Y=D?Math.min(Y,D.getFullYear()):Y,p.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";Y>=U;U++)p.yearshtml+="<option value='"+U+"'"+(U===C?" selected='selected'":"")+">"+U+"</option>";
vendor: 6,297 bytes, line 7
7p.yearshtml+="</select>",Z+=p.yearshtml,p.yearshtml=null}return Z+=this._get(p,"yearSuffix"),G&&(Z+=(!$&&X&&Q?"":"&#xa0;")+tt),Z+"</div>"},_adjustInstDate:function(p,y,C){var T=p.drawYear+("Y"===C?y:0),D=p.drawMonth+("M"===C?y:0),$=Math.min(p.selectedDay,this._getDaysInMonth(T,D))+("D"===C?y:0),P=this._restrictMinMax(p,this._daylightSavingAdjust(new Date(T,D,$)));p.selectedDay=P.getDate(),p.drawMonth=p.selectedMonth=P.getMonth(),p.drawYear=p.selectedYear=P.getFullYear(),("M"===C||"Y"===C)&&this._notifyChange(p)},_restrictMinMax:function(p,y){var C=this._getMinMaxDate(p,"min"),T=this._getMinMaxDate(p,"max"),D=C&&C>y?C:y;return T&&D>T?T:D},_notifyChange:function(p){var y=this._get(p,"onChangeMonthYear");y&&y.apply(p.input?p.input[0]:null,[p.selectedYear,p.selectedMonth+1,p])},_getNumberOfMonths:function(p){var y=this._get(p,"numberOfMonths");return null==y?[1,1]:"number"==typeof y?[1,y]:y},_getMinMaxDate:function(p,y){return this._determineDate(p,this._get(p,y+"Date"),null)},_getDaysInMonth:function(p,y){return 32-this._daylightSavingAdjust(new Date(p,y,32)).getDate()},_getFirstDayOfMonth:function(p,y){return new Date(p,y,1).getDay()},_canAdjustMonth:function(p,y,C,T){var D=this._getNumberOfMonths(p),$=this._daylightSavingAdjust(new Date(C,T+(0>y?y:D[0]*D[1]),1));return 0>y&&$.setDate(this._getDaysInMonth($.getFullYear(),$.getMonth())),this._isInRange(p,$)},_isInRange:function(p,y){var C,T,D=this._getMinMaxDate(p,"min"),$=this._getMinMaxDate(p,"max"),P=null,I=null,A=this._get(p,"yearRange");return A&&(C=A.split(":"),T=(new Date).getFullYear(),P=parseInt(C[0],10),I=parseInt(C[1],10),C[0].match(/[+\-].*/)&&(P+=T),C[1].match(/[+\-].*/)&&(I+=T)),(!D||y.getTime()>=D.getTime())&&(!$||y.getTime()<=$.getTime())&&(!P||y.getFullYear()>=P)&&(!I||I>=y.getFullYear())},_getFormatConfig:function(p){var y=this._get(p,"shortYearCutoff");return{shortYearCutoff:y="string"!=typeof y?y:(new Date).getFullYear()%100+parseInt(y,10),dayNamesShort:this._get(p,"dayNamesShort"),dayNames:this._get(p,"dayNames"),monthNamesShort:this._get(p,"monthNamesShort"),monthNames:this._get(p,"monthNames")}},_formatDate:function(p,y,C,T){y||(p.currentDay=p.selectedDay,p.currentMonth=p.selectedMonth,p.currentYear=p.selectedYear);var D=y?"object"==typeof y?y:this._daylightSavingAdjust(new Date(T,C,y)):this._daylightSavingAdjust(new Date(p.currentYear,p.currentMonth,p.currentDay));return this.formatDate(this._get(p,"dateFormat"),D,this._getFormatConfig(p))}}),p.fn.datepicker=function(y){if(!this.length)return this;p.datepicker.initialized||(p(document).mousedown(p.datepicker._checkExternalClick),p.datepicker.initialized=!0),0===p("#"+p.datepicker._mainDivId).length&&p("body").append(p.datepicker.dpDiv);var C=Array.prototype.slice.call(arguments,1);return"string"!=typeof y||"isDisabled"!==y&&"getDate"!==y&&"widget"!==y?"option"===y&&2===arguments.length&&"string"==typeof arguments[1]?p.datepicker["_"+y+"Datepicker"].apply(p.datepicker,[this[0]].concat(C)):this.each((function(){"string"==typeof y?p.datepicker["_"+y+"Datepicker"].apply(p.datepicker,[this].concat(C)):p.datepicker._attachDatepicker(this,y)})):p.datepicker["_"+y+"Datepicker"].apply(p.datepicker,[this[0]].concat(C))},p.datepicker=new n,p.datepicker.initialized=!1,p.datepicker.uuid=(new Date).getTime(),p.datepicker.version="1.11.4",p.datepicker,p.widget("ui.draggable",p.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(p,y){this._super(p,y),"handle"===p&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(y){var C=this.options;return this._blurActiveElement(y),!(this.helper||C.disabled||p(y.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(y),!!this.handle&&(this._blockFrames(!0===C.iframeFix?"iframe":C.iframeFix),!0))},_blockFrames:function(y){this.iframeBlocks=this.document.find(y).map((function(){var y=p(this);return p("<div>").css("position","absolute").appendTo(y.parent()).outerWidth(y.outerWidth()).outerHeight(y.outerHeight()).offset(y.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(y){var C=this.document[0];if(this.handleElement.is(y.target))try{C.activeElement&&"body"!==C.activeElement.nodeName.toLowerCase()&&p(C.activeElement).blur()}catch(p){}},_mouseStart:function(y){var C=this.options;return this.helper=this._createHelper(y),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),p.ui.ddmanager&&(p.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===p(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(y),this.originalPosition=this.position=this._generatePosition(y,!1),this.originalPageX=y.pageX,this.originalPageY=y.pageY,C.cursorAt&&this._adjustOffsetFromHelper(C.cursorAt),this._setContainment(),!1===this._trigger("start",y)?(this._clear(),!1):(this._cacheHelperProportions(),p.ui.ddmanager&&!C.dropBehaviour&&p.ui.ddmanager.prepareOffsets(this,y),this._normalizeRightBottom(),this._mouseDrag(y,!0),p.ui.ddmanager&&p.ui.ddmanager.dragStart(this,y),!0)},_refreshOffsets:function(p){this.offset={top:this.positionAbs.top-this.margins.top,left
vendor: 7,335 bytes, line 7
7:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:p.pageX-this.offset.left,top:p.pageY-this.offset.top}},_mouseDrag:function(y,C){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(y,!0),this.positionAbs=this._convertPositionTo("absolute"),!C){var T=this._uiHash();if(!1===this._trigger("drag",y,T))return this._mouseUp({}),!1;this.position=T.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",p.ui.ddmanager&&p.ui.ddmanager.drag(this,y),!1},_mouseStop:function(y){var C=this,T=!1;return p.ui.ddmanager&&!this.options.dropBehaviour&&(T=p.ui.ddmanager.drop(this,y)),this.dropped&&(T=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!T||"valid"===this.options.revert&&T||!0===this.options.revert||p.isFunction(this.options.revert)&&this.options.revert.call(this.element,T)?p(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==C._trigger("stop",y)&&C._clear()})):!1!==this._trigger("stop",y)&&this._clear(),!1},_mouseUp:function(y){return this._unblockFrames(),p.ui.ddmanager&&p.ui.ddmanager.dragStop(this,y),this.handleElement.is(y.target)&&this.element.focus(),p.ui.mouse.prototype._mouseUp.call(this,y)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(y){return!this.options.handle||!!p(y.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(y){var C=this.options,T=p.isFunction(C.helper),D=T?p(C.helper.apply(this.element[0],[y])):"clone"===C.helper?this.element.clone().removeAttr("id"):this.element;return D.parents("body").length||D.appendTo("parent"===C.appendTo?this.element[0].parentNode:C.appendTo),T&&D[0]===this.element[0]&&this._setPositionRelative(),D[0]===this.element[0]||/(fixed|absolute)/.test(D.css("position"))||D.css("position","absolute"),D},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(y){"string"==typeof y&&(y=y.split(" ")),p.isArray(y)&&(y={left:+y[0],top:+y[1]||0}),"left"in y&&(this.offset.click.left=y.left+this.margins.left),"right"in y&&(this.offset.click.left=this.helperProportions.width-y.right+this.margins.left),"top"in y&&(this.offset.click.top=y.top+this.margins.top),"bottom"in y&&(this.offset.click.top=this.helperProportions.height-y.bottom+this.margins.top)},_isRootNode:function(p){return/(html|body)/i.test(p.tagName)||p===this.document[0]},_getParentOffset:function(){var y=this.offsetParent.offset(),C=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==C&&p.contains(this.scrollParent[0],this.offsetParent[0])&&(y.left+=this.scrollParent.scrollLeft(),y.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(y={top:0,left:0}),{top:y.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:y.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var p=this.element.position(),y=this._isRootNode(this.scrollParent[0]);return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+(y?0:this.scrollParent.scrollTop()),left:p.left-(parseInt(this.helper.css("left"),10)||0)+(y?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var y,C,T,D=this.options,$=this.document[0];return this.relativeContainer=null,D.containment?"window"===D.containment?void(this.containment=[p(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,p(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,p(window).scrollLeft()+p(window).width()-this.helperProportions.width-this.margins.left,p(window).scrollTop()+(p(window).height()||$.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===D.containment?void(this.containment=[0,0,p($).width()-this.helperProportions.width-this.margins.left,(p($).height()||$.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):D.containment.constructor===Array?void(this.containment=D.containment):("parent"===D.containment&&(D.containment=this.helper[0].parentNode),void((T=(C=p(D.containment))[0])&&(y=/(scroll|auto)/.test(C.css("overflow")),this.containment=[(parseInt(C.css("borderLeftWidth"),10)||0)+(parseInt(C.css("paddingLeft"),10)||0),(parseInt(C.css("borderTopWidth"),10)||0)+(parseInt(C.css("paddingTop"),10)||0),(y?Math.max(T.scrollWidth,T.offsetWidth):T.offsetWidth)-(parseInt(C.css("borderRightWidth"),10)||0)-(parseInt(C.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(y?Math.max(T.scrollHeight,T.offsetHeight):T.offsetHeight)-(parseInt(C.css("borderBottomWidth"),10)||0)-(parseInt(C.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=C))):void(this.containment=null)},_convertPositionTo:function(p,y){y||(y=this.position);var C="absolute"===p?1:-1,T=this._isRootNode(this.scrollParent[0]);return{top:y.top+this.offset.relative.top*C+this.offset.parent.top*C-("fixed"===this.cssPosition?-this.offset.scroll.top:T?0:this.offset.scroll.top)*C,left:y.left+this.offset.relative.left*C+this.offset.parent.left*C-("fixed"===this.cssPosition?-this.offset.scroll.left:T?0:this.offset.scroll.left)*C}},_generatePosition:function(p,y){var C,T,D,$,P=this.options,I=this._isRootNode(this.scrollParent[0]),A=p.pageX,E=p.pageY;return I&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),y&&(this.containment&&(this.relativeContainer?(T=this.relativeContainer.offset(),C=[this.containment[0]+T.left,this.containment[1]+T.top,this.containment[2]+T.left,this.containment[3]+T.top]):C=this.containment,p.pageX-this.offset.click.left<C[0]&&(A=C[0]+this.offset.click.left),p.pageY-this.offset.click.top<C[1]&&(E=C[1]+this.offset.click.top),p.pageX-this.offset.click.left>C[2]&&(A=C[2]+this.offset.click.left),p.pageY-this.offset.click.top>C[3]&&(E=C[3]+this.offset.click.top)),P.grid&&(D=P.grid[1]?this.originalPageY+Math.round((E-this.originalPageY)/P.grid[1])*P.grid[1]:this.originalPageY,E=C?D-this.offset.click.top>=C[1]||D-this.offset.click.top>C[3]?D:D-this.offset.click.top>=C[1]?D-P.grid[1]:D+P.grid[1]:D,$=P.grid[0]?this.originalPageX+Math.round((A-this.originalPageX)/P.grid[0])*P.grid[0]:this.originalPageX,A=C?$-this.offset.click.left>=C[0]||$-this.offset.click.left>C[2]?$:$-this.offset.click.left>
vendor: 1,072 bytes, line 7
7=C[0]?$-P.grid[0]:$+P.grid[0]:$),"y"===P.axis&&(A=this.originalPageX),"x"===P.axis&&(E=this.originalPageY)),{top:E-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:I?0:this.offset.scroll.top),left:A-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:I?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(y,C,T){return T=T||this._uiHash(),p.ui.plugin.call(this,y,[C,T,this],!0),/^(drag|start|stop
vendor: 4,833 bytes, line 7
7)/.test(y)&&(this.positionAbs=this._convertPositionTo("absolute"),T.offset=this.positionAbs),p.Widget.prototype._trigger.call(this,y,C,T)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),p.ui.plugin.add("draggable","connectToSortable",{start:function(y,C,T){var D=p.extend({},C,{item:T.element});T.sortables=[],p(T.options.connectToSortable).each((function(){var C=p(this).sortable("instance");C&&!C.options.disabled&&(T.sortables.push(C),C.refreshPositions(),C._trigger("activate",y,D))}))},stop:function(y,C,T){var D=p.extend({},C,{item:T.element});T.cancelHelperRemoval=!1,p.each(T.sortables,(function(){var p=this;p.isOver?(p.isOver=0,T.cancelHelperRemoval=!0,p.cancelHelperRemoval=!1,p._storedCSS={position:p.placeholder.css("position"),top:p.placeholder.css("top"),left:p.placeholder.css("left")},p._mouseStop(y),p.options.helper=p.options._helper):(p.cancelHelperRemoval=!0,p._trigger("deactivate",y,D))}))},drag:function(y,C,T){p.each(T.sortables,(function(){var D=!1,$=this;$.positionAbs=T.positionAbs,$.helperProportions=T.helperProportions,$.offset.click=T.offset.click,$._intersectsWith($.containerCache)&&(D=!0,p.each(T.sortables,(function(){return this.positionAbs=T.positionAbs,this.helperProportions=T.helperProportions,this.offset.click=T.offset.click,this!==$&&this._intersectsWith(this.containerCache)&&p.contains($.element[0],this.element[0])&&(D=!1),D}))),D?($.isOver||($.isOver=1,T._parent=C.helper.parent(),$.currentItem=C.helper.appendTo($.element).data("ui-sortable-item",!0),$.options._helper=$.options.helper,$.options.helper=function(){return C.helper[0]},y.target=$.currentItem[0],$._mouseCapture(y,!0),$._mouseStart(y,!0,!0),$.offset.click.top=T.offset.click.top,$.offset.click.left=T.offset.click.left,$.offset.parent.left-=T.offset.parent.left-$.offset.parent.left,$.offset.parent.top-=T.offset.parent.top-$.offset.parent.top,T._trigger("toSortable",y),T.dropped=$.element,p.each(T.sortables,(function(){this.refreshPositions()})),T.currentItem=T.element,$.fromOutside=T),$.currentItem&&($._mouseDrag(y),C.position=$.position)):$.isOver&&($.isOver=0,$.cancelHelperRemoval=!0,$.options._revert=$.options.revert,$.options.revert=!1,$._trigger("out",y,$._uiHash($)),$._mouseStop(y,!0),$.options.revert=$.options._revert,$.options.helper=$.options._helper,$.placeholder&&$.placeholder.remove(),C.helper.appendTo(T._parent),T._refreshOffsets(y),C.position=T._generatePosition(y,!0),T._trigger("fromSortable",y),T.dropped=!1,p.each(T.sortables,(function(){this.refreshPositions()})))}))}}),p.ui.plugin.add("draggable","cursor",{start:function(y,C,T){var D=p("body"),$=T.options;D.css("cursor")&&($._cursor=D.css("cursor")),D.css("cursor",$.cursor)},stop:function(y,C,T){var D=T.options;D._cursor&&p("body").css("cursor",D._cursor)}}),p.ui.plugin.add("draggable","opacity",{start:function(y,C,T){var D=p(C.helper),$=T.options;D.css("opacity")&&($._opacity=D.css("opacity")),D.css("opacity",$.opacity)},stop:function(y,C,T){var D=T.options;D._opacity&&p(C.helper).css("opacity",D._opacity)}}),p.ui.plugin.add("draggable","scroll",{start:function(p,y,C){C.scrollParentNotHidden||(C.scrollParentNotHidden=C.helper.scrollParent(!1)),C.scrollParentNotHidden[0]!==C.document[0]&&"HTML"!==C.scrollParentNotHidden[0].tagName&&(C.overflowOffset=C.scrollParentNotHidden.offset())},drag:function(y,C,T){var D=T.options,$=!1,P=T.scrollParentNotHidden[0],I=T.document[0];P!==I&&"HTML"!==P.tagName?(D.axis&&"x"===D.axis||(T.overflowOffset.top+P.offsetHeight-y.pageY<D.scrollSensitivity?P.scrollTop=$=P.scrollTop+D.scrollSpeed:y.pageY-T.overflowOffset.top<D.scrollSensitivity&&(P.scrollTop=$=P.scrollTop-D.scrollSpeed)),D.axis&&"y"===D.axis||(T.overflowOffset.left+P.offsetWidth-y.pageX<D.scrollSensitivity?P.scrollLeft=$=P.scrollLeft+D.scrollSpeed:y.pageX-T.overflowOffset.left<D.scrollSensitivity&&(P.scrollLeft=$=P.scrollLeft-D.scrollSpeed))):(D.axis&&"x"===D.axis||(y.pageY-p(I).scrollTop()<D.scrollSensitivity?$=p(I).scrollTop(p(I).scrollTop()-D.scrollSpeed):p(window).height()-(y.pageY-p(I).scrollTop())<D.scrollSensitivity&&($=p(I).scrollTop(p(I).scrollTop()+D.scrollSpeed))),D.axis&&"y"===D.axis||(y.pageX-p(I).scrollLeft()<D.scrollSensitivity?$=p(I).scrollLeft(p(I).scrollLeft()-D.scrollSpeed):p(window).width()-(y.pageX-p(I).scrollLeft())<D.scrollSensitivity&&($=p(I).scrollLeft(p(I).scrollLeft()+D.scrollSpeed)))),!1!==$&&p.ui.ddmanager&&!D.dropBehaviour&&p.ui.ddmanager.prepareOffsets(T,y)}}),p.ui.plugin.add("draggable","snap",{start:function(y,C,T){var D=T.options;T.snapElements=[],p(D.snap.constructor!==String?D.snap.items||":data(ui-draggable)":D.snap).each((function(){var y=p(this),C=y.offset();this!==T.element[0]&&T.snapElements.push({item:this,width:y.outerWidth(),height:y.outerHeight(),top:C.top,left
vendor: 5,521 bytes, line 7
7:C.left})}))},drag:function(y,C,T){var D,$,P,I,A,E,O,N,j,q,U=T.options,Y=U.snapTolerance,X=C.offset.left,Q=X+T.helperProportions.width,G=C.offset.top,Z=G+T.helperProportions.height;for(j=T.snapElements.length-1;j>=0;j--)E=(A=T.snapElements[j].left-T.margins.left)+T.snapElements[j].width,N=(O=T.snapElements[j].top-T.margins.top)+T.snapElements[j].height,A-Y>Q||X>E+Y||O-Y>Z||G>N+Y||!p.contains(T.snapElements[j].item.ownerDocument,T.snapElements[j].item)?(T.snapElements[j].snapping&&T.options.snap.release&&T.options.snap.release.call(T.element,y,p.extend(T._uiHash(),{snapItem:T.snapElements[j].item})),T.snapElements[j].snapping=!1):("inner"!==U.snapMode&&(D=Y>=Math.abs(O-Z),$=Y>=Math.abs(N-G),P=Y>=Math.abs(A-Q),I=Y>=Math.abs(E-X),D&&(C.position.top=T._convertPositionTo("relative",{top:O-T.helperProportions.height,left:0}).top),$&&(C.position.top=T._convertPositionTo("relative",{top:N,left:0}).top),P&&(C.position.left=T._convertPositionTo("relative",{top:0,left:A-T.helperProportions.width}).left),I&&(C.position.left=T._convertPositionTo("relative",{top:0,left:E}).left)),q=D||$||P||I,"outer"!==U.snapMode&&(D=Y>=Math.abs(O-G),$=Y>=Math.abs(N-Z),P=Y>=Math.abs(A-X),I=Y>=Math.abs(E-Q),D&&(C.position.top=T._convertPositionTo("relative",{top:O,left:0}).top),$&&(C.position.top=T._convertPositionTo("relative",{top:N-T.helperProportions.height,left:0}).top),P&&(C.position.left=T._convertPositionTo("relative",{top:0,left:A}).left),I&&(C.position.left=T._convertPositionTo("relative",{top:0,left:E-T.helperProportions.width}).left)),!T.snapElements[j].snapping&&(D||$||P||I||q)&&T.options.snap.snap&&T.options.snap.snap.call(T.element,y,p.extend(T._uiHash(),{snapItem:T.snapElements[j].item})),T.snapElements[j].snapping=D||$||P||I||q)}}),p.ui.plugin.add("draggable","stack",{start:function(y,C,T){var D,$=T.options,P=p.makeArray(p($.stack)).sort((function(y,C){return(parseInt(p(y).css("zIndex"),10)||0)-(parseInt(p(C).css("zIndex"),10)||0)}));P.length&&(D=parseInt(p(P[0]).css("zIndex"),10)||0,p(P).each((function(y){p(this).css("zIndex",D+y)})),this.css("zIndex",D+P.length))}}),p.ui.plugin.add("draggable","zIndex",{start:function(y,C,T){var D=p(C.helper),$=T.options;D.css("zIndex")&&($._zIndex=D.css("zIndex")),D.css("zIndex",$.zIndex)},stop:function(y,C,T){var D=T.options;D._zIndex&&p(C.helper).css("zIndex",D._zIndex)}}),p.ui.draggable,p.widget("ui.resizable",p.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(p){return parseInt(p,10)||0},_isNumber:function(p){return!isNaN(parseInt(p,10))},_hasScroll:function(y,C){if("hidden"===p(y).css("overflow"))return!1;var T=C&&"left"===C?"scrollLeft":"scrollTop",D=!1;return y[T]>0||(y[T]=1,D=y[T]>0,y[T]=0,D)},_create:function(){var y,C,T,D,$=this,P=this.options;if(this.element.addClass("ui-resizable"),p.extend(this,{_aspectRatio:!!P.aspectRatio,aspectRatio:P.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:P.helper||P.ghost||P.animate?P.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(p("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=P.handles||(p(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=p(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),y=this.handles.split(","),this.handles={},C=0;y.length>C;C++)T=p.trim(y[C]),(D=p("<div class='ui-resizable-handle "+("ui-resizable-"+T)+"'></div>")).css({zIndex:P.zIndex}),"se"===T&&D.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[T]=".ui-resizable-"+T,this.element.append(D);this._renderAxis=function(y){var C,T,D,P;for(C in y=y||this.element,this.handles)this.handles[C].constructor===String?this.handles[C]=this.element.children(this.handles[C]).first().show():(this.handles[C].jquery||this.handles[C].nodeType)&&(this.handles[C]=p(this.handles[C]),this._on(this.handles[C],{mousedown:$._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(T=p(this.handles[C],this.element),P=/sw|ne|nw|se|n|s/.test(C)?T.outerHeight():T.outerWidth(),D=["padding",/ne|nw|n
vendor: 5,114 bytes, line 7
7/.test(C)?"Top":/se|sw|s/.test(C)?"Bottom":/^e$/.test(C)?"Right":"Left"].join(""),y.css(D,P),this._proportionallyResize()),this._handles=this._handles.add(this.handles[C])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover((function(){$.resizing||(this.className&&(D=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),$.axis=D&&D[1]?D[1]:"se")})),P.autoHide&&(this._handles.hide(),p(this.element).addClass("ui-resizable-autohide").mouseenter((function(){P.disabled||(p(this).removeClass("ui-resizable-autohide"),$._handles.show())})).mouseleave((function(){P.disabled||$.resizing||(p(this).addClass("ui-resizable-autohide"),$._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var y,i=function(y){p(y).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),y=this.element,this.originalElement.css({position:y.css("position"),width:y.outerWidth(),height:y.outerHeight(),top:y.css("top"),left:y.css("left")}).insertAfter(y),y.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(y){var C,T,D=!1;for(C in this.handles)((T=p(this.handles[C])[0])===y.target||p.contains(T,y.target))&&(D=!0);return!this.options.disabled&&D},_mouseStart:function(y){var C,T,D,$=this.options,P=this.element;return this.resizing=!0,this._renderProxy(),C=this._num(this.helper.css("left")),T=this._num(this.helper.css("top")),$.containment&&(C+=p($.containment).scrollLeft()||0,T+=p($.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:C,top:T},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:P.width(),height:P.height()},this.originalSize=this._helper?{width:P.outerWidth(),height:P.outerHeight()}:{width:P.width(),height:P.height()},this.sizeDiff={width:P.outerWidth()-P.width(),height:P.outerHeight()-P.height()},this.originalPosition={left:C,top:T},this.originalMousePosition={left:y.pageX,top:y.pageY},this.aspectRatio="number"==typeof $.aspectRatio?$.aspectRatio:this.originalSize.width/this.originalSize.height||1,D=p(".ui-resizable-"+this.axis).css("cursor"),p("body").css("cursor","auto"===D?this.axis+"-resize":D),P.addClass("ui-resizable-resizing"),this._propagate("start",y),!0},_mouseDrag:function(y){var C,T,D=this.originalMousePosition,$=this.axis,P=y.pageX-D.left||0,I=y.pageY-D.top||0,A=this._change[$];return this._updatePrevProperties(),!!A&&(C=A.apply(this,[y,P,I]),this._updateVirtualBoundaries(y.shiftKey),(this._aspectRatio||y.shiftKey)&&(C=this._updateRatio(C,y)),C=this._respectSize(C,y),this._updateCache(C),this._propagate("resize",y),T=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),p.isEmptyObject(T)||(this._updatePrevProperties(),this._trigger("resize",y,this.ui()),this._applyChanges()),!1)},_mouseStop:function(y){this.resizing=!1;var C,T,D,$,P,I,A,E=this.options,O=this;return this._helper&&(D=(T=(C=this._proportionallyResizeElements).length&&/textarea/i.test(C[0].nodeName))&&this._hasScroll(C[0],"left")?0:O.sizeDiff.height,$=T?0:O.sizeDiff.width,P={width:O.helper.width()-$,height:O.helper.height()-D},I=parseInt(O.element.css("left"),10)+(O.position.left-O.originalPosition.left)||null,A=parseInt(O.element.css("top"),10)+(O.position.top-O.originalPosition.top)||null,E.animate||this.element.css(p.extend(P,{top:A,left:I})),O.helper.height(O.size.height),O.helper.width(O.size.width),this._helper&&!E.animate&&this._proportionallyResize()),p("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",y),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var p={};return this.position.top!==this.prevPosition.top&&(p.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(p.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(p.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(p.height=this.size.height+"px"),this.helper.css(p),p},_updateVirtualBoundaries:function(p){var y,C,T,D,$,P=this.options;$={minWidth:this._isNumber(P.minWidth)?P.minWidth:0,maxWidth:this._isNumber(P.maxWidth)?P.maxWidth:1/0,minHeight:this._isNumber(P.minHeight)?P.minHeight:0,maxHeight:this._isNumber(P.maxHeight)?P.maxHeight:1/0},(this._aspectRatio||p)&&(y=$.minHeight*this.aspectRatio,T=$.minWidth/this.aspectRatio,C=$.maxHeight*this.aspectRatio,D=$.maxWidth/this.aspectRatio,y>$.minWidth&&($.minWidth=y),T>$.minHeight&&($.minHeight=T),$.maxWidth>C&&($.maxWidth=C),$.maxHeight>D&&($.maxHeight=D)),this._vBoundaries=$},_updateCache:function(p){this.offset=this.helper.offset(),this._isNumber(p.left)&&(this.position.left
vendor: 26,335 bytes, line 7
7=p.left),this._isNumber(p.top)&&(this.position.top=p.top),this._isNumber(p.height)&&(this.size.height=p.height),this._isNumber(p.width)&&(this.size.width=p.width)},_updateRatio:function(p){var y=this.position,C=this.size,T=this.axis;return this._isNumber(p.height)?p.width=p.height*this.aspectRatio:this._isNumber(p.width)&&(p.height=p.width/this.aspectRatio),"sw"===T&&(p.left=y.left+(C.width-p.width),p.top=null),"nw"===T&&(p.top=y.top+(C.height-p.height),p.left=y.left+(C.width-p.width)),p},_respectSize:function(p){var y=this._vBoundaries,C=this.axis,T=this._isNumber(p.width)&&y.maxWidth&&y.maxWidth<p.width,D=this._isNumber(p.height)&&y.maxHeight&&y.maxHeight<p.height,$=this._isNumber(p.width)&&y.minWidth&&y.minWidth>p.width,P=this._isNumber(p.height)&&y.minHeight&&y.minHeight>p.height,I=this.originalPosition.left+this.originalSize.width,A=this.position.top+this.size.height,E=/sw|nw|w/.test(C),O=/nw|ne|n/.test(C);return $&&(p.width=y.minWidth),P&&(p.height=y.minHeight),T&&(p.width=y.maxWidth),D&&(p.height=y.maxHeight),$&&E&&(p.left=I-y.minWidth),T&&E&&(p.left=I-y.maxWidth),P&&O&&(p.top=A-y.minHeight),D&&O&&(p.top=A-y.maxHeight),p.width||p.height||p.left||!p.top?p.width||p.height||p.top||!p.left||(p.left=null):p.top=null,p},_getPaddingPlusBorderDimensions:function(p){for(var y=0,C=[],T=[p.css("borderTopWidth"),p.css("borderRightWidth"),p.css("borderBottomWidth"),p.css("borderLeftWidth")],D=[p.css("paddingTop"),p.css("paddingRight"),p.css("paddingBottom"),p.css("paddingLeft")];4>y;y++)C[y]=parseInt(T[y],10)||0,C[y]+=parseInt(D[y],10)||0;return{height:C[0]+C[2],width:C[1]+C[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var p,y=0,C=this.helper||this.element;this._proportionallyResizeElements.length>y;y++)p=this._proportionallyResizeElements[y],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(p)),p.css({height:C.height()-this.outerDimensions.height||0,width:C.width()-this.outerDimensions.width||0})},_renderProxy:function(){var y=this.element,C=this.options;this.elementOffset=y.offset(),this._helper?(this.helper=this.helper||p("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++C.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(p,y){return{width:this.originalSize.width+y}},w:function(p,y){var C=this.originalSize;return{left:this.originalPosition.left+y,width:C.width-y}},n:function(p,y,C){var T=this.originalSize;return{top:this.originalPosition.top+C,height:T.height-C}},s:function(p,y,C){return{height:this.originalSize.height+C}},se:function(y,C,T){return p.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[y,C,T]))},sw:function(y,C,T){return p.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[y,C,T]))},ne:function(y,C,T){return p.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[y,C,T]))},nw:function(y,C,T){return p.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[y,C,T]))}},_propagate:function(y,C){p.ui.plugin.call(this,y,[C,this.ui()]),"resize"!==y&&this._trigger(y,C,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),p.ui.plugin.add("resizable","animate",{stop:function(y){var C=p(this).resizable("instance"),T=C.options,D=C._proportionallyResizeElements,$=D.length&&/textarea/i.test(D[0].nodeName),P=$&&C._hasScroll(D[0],"left")?0:C.sizeDiff.height,I=$?0:C.sizeDiff.width,A={width:C.size.width-I,height:C.size.height-P},E=parseInt(C.element.css("left"),10)+(C.position.left-C.originalPosition.left)||null,O=parseInt(C.element.css("top"),10)+(C.position.top-C.originalPosition.top)||null;C.element.animate(p.extend(A,O&&E?{top:O,left:E}:{}),{duration:T.animateDuration,easing:T.animateEasing,step:function(){var T={width:parseInt(C.element.css("width"),10),height:parseInt(C.element.css("height"),10),top:parseInt(C.element.css("top"),10),left:parseInt(C.element.css("left"),10)};D&&D.length&&p(D[0]).css({width:T.width,height:T.height}),C._updateCache(T),C._propagate("resize",y)}})}}),p.ui.plugin.add("resizable","containment",{start:function(){var y,C,T,D,$,P,I,A=p(this).resizable("instance"),E=A.options,O=A.element,N=E.containment,j=N instanceof p?N.get(0):/parent/.test(N)?O.parent().get(0):N;j&&(A.containerElement=p(j),/document/.test(N)||N===document?(A.containerOffset={left:0,top:0},A.containerPosition={left:0,top:0},A.parentData={element:p(document),left:0,top:0,width:p(document).width(),height:p(document).height()||document.body.parentNode.scrollHeight}):(y=p(j),C=[],p(["Top","Right","Left","Bottom"]).each((function(p,T){C[p]=A._num(y.css("padding"+T))})),A.containerOffset=y.offset(),A.containerPosition=y.position(),A.containerSize={height:y.innerHeight()-C[3],width:y.innerWidth()-C[1]},T=A.containerOffset,D=A.containerSize.height,$=A.containerSize.width,P=A._hasScroll(j,"left")?j.scrollWidth:$,I=A._hasScroll(j)?j.scrollHeight:D,A.parentData={element:j,left:T.left,top:T.top,width:P,height:I}))},resize:function(y){var C,T,D,$,P=p(this).resizable("instance"),I=P.options,A=P.containerOffset,E=P.position,O=P._aspectRatio||y.shiftKey,N={top:0,left:0},j=P.containerElement,q=!0;j[0]!==document&&/static/.test(j.css("position"))&&(N=A),E.left<(P._helper?A.left:0)&&(P.size.width=P.size.width+(P._helper?P.position.left-A.left:P.position.left-N.left),O&&(P.size.height=P.size.width/P.aspectRatio,q=!1),P.position.left=I.helper?A.left:0),E.top<(P._helper?A.top:0)&&(P.size.height=P.size.height+(P._helper?P.position.top-A.top:P.position.top),O&&(P.size.width=P.size.height*P.aspectRatio,q=!1),P.position.top=P._helper?A.top:0),D=P.containerElement.get(0)===P.element.parent().get(0),$=/relative|absolute/.test(P.containerElement.css("position")),D&&$?(P.offset.left=P.parentData.left+P.position.left,P.offset.top=P.parentData.top+P.position.top):(P.offset.left=P.element.offset().left,P.offset.top=P.element.offset().top),C=Math.abs(P.sizeDiff.width+(P._helper?P.offset.left-N.left:P.offset.left-A.left)),T=Math.abs(P.sizeDiff.height+(P._helper?P.offset.top-N.top:P.offset.top-A.top)),C+P.size.width>=P.parentData.width&&(P.size.width=P.parentData.width-C,O&&(P.size.height=P.size.width/P.aspectRatio,q=!1)),T+P.size.height>=P.parentData.height&&(P.size.height=P.parentData.height-T,O&&(P.size.width=P.size.height*P.aspectRatio,q=!1)),q||(P.position.left=P.prevPosition.left,P.position.top=P.prevPosition.top,P.size.width=P.prevSize.width,P.size.height=P.prevSize.height)},stop:function(){var y=p(this).resizable("instance"),C=y.options,T=y.containerOffset,D=y.containerPosition,$=y.containerElement,P=p(y.helper),I=P.offset(),A=P.outerWidth()-y.sizeDiff.width,E=P.outerHeight()-y.sizeDiff.height;y._helper&&!C.animate&&/relative/.test($.css("position"))&&p(this).css({left:I.left-D.left-T.left,width:A,height:E}),y._helper&&!C.animate&&/static/.test($.css("position"))&&p(this).css({left:I.left-D.left-T.left,width:A,height:E})}}),p.ui.plugin.add("resizable","alsoResize",{start:function(){var y=p(this).resizable("instance").options;p(y.alsoResize).each((function(){var y=p(this);y.data("ui-resizable-alsoresize",{width:parseInt(y.width(),10),height:parseInt(y.height(),10),left:parseInt(y.css("left"),10),top:parseInt(y.css("top"),10)})}))},resize:function(y,C){var T=p(this).resizable("instance"),D=T.options,$=T.originalSize,P=T.originalPosition,I={height:T.size.height-$.height||0,width:T.size.width-$.width||0,top:T.position.top-P.top||0,left:T.position.left-P.left||0};p(D.alsoResize).each((function(){var y=p(this),T=p(this).data("ui-resizable-alsoresize"),D={},$=y.parents(C.originalElement[0]).length?["width","height"]:["width","height","top","left"];p.each($,(function(p,y){var C=(T[y]||0)+(I[y]||0);C&&C>=0&&(D[y]=C||null)})),y.css(D)}))},stop:function(){p(this).removeData("resizable-alsoresize")}}),p.ui.plugin.add("resizable","ghost",{start:function(){var y=p(this).resizable("instance"),C=y.options,T=y.size;y.ghost=y.originalElement.clone(),y.ghost.css({opacity:.25,display:"block",position:"relative",height:T.height,width:T.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof C.ghost?C.ghost:""),y.ghost.appendTo(y.helper)},resize:function(){var y=p(this).resizable("instance");y.ghost&&y.ghost.css({position:"relative",height:y.size.height,width:y.size.width})},stop:function(){var y=p(this).resizable("instance");y.ghost&&y.helper&&y.helper.get(0).removeChild(y.ghost.get(0))}}),p.ui.plugin.add("resizable","grid",{resize:function(){var y,C=p(this).resizable("instance"),T=C.options,D=C.size,$=C.originalSize,P=C.originalPosition,I=C.axis,A="number"==typeof T.grid?[T.grid,T.grid]:T.grid,E=A[0]||1,O=A[1]||1,N=Math.round((D.width-$.width)/E)*E,j=Math.round((D.height-$.height)/O)*O,q=$.width+N,U=$.height+j,Y=T.maxWidth&&q>T.maxWidth,X=T.maxHeight&&U>T.maxHeight,Q=T.minWidth&&T.minWidth>q,G=T.minHeight&&T.minHeight>U;T.grid=A,Q&&(q+=E),G&&(U+=O),Y&&(q-=E),X&&(U-=O),/^(se|s|e)$/.test(I)?(C.size.width=q,C.size.height=U):/^(ne)$/.test(I)?(C.size.width=q,C.size.height=U,C.position.top=P.top-j):/^(sw)$/.test(I)?(C.size.width=q,C.size.height=U,C.position.left=P.left-N):((0>=U-O||0>=q-E)&&(y=C._getPaddingPlusBorderDimensions(this)),U-O>0?(C.size.height=U,C.position.top=P.top-j):(U=O-y.height,C.size.height=U,C.position.top=P.top+$.height-U),q-E>0?(C.size.width=q,C.position.left=P.left-N):(q=E-y.width,C.size.width=q,C.position.left=P.left+$.width-q))}}),p.ui.resizable,p.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(y){var C=p(this).css(y).offset().top;0>C&&p(this).css("top",y.top-C)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&p.fn.draggable&&this._makeDraggable(),this.options.resizable&&p.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var y=this.options.appendTo;return y&&(y.jquery||y.nodeType)?p(y):this.document.find(y||"body").eq(0)},_destroy:function(){var p,y=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(p=y.parent.children().eq(y.index)).length&&p[0]!==this.element[0]?p.before(this.element):y.parent.append(this.element)},widget:function(){return this.uiDialog},disable:p.noop,enable:p.noop,close:function(y){var C,T=this;if(this._isOpen&&!1!==this._trigger("beforeClose",y)){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{(C=this.document[0].activeElement)&&"body"!==C.nodeName.toLowerCase()&&p(C).blur()}catch(p){}this._hide(this.uiDialog,this.options.hide,(function(){T._trigger("close",y)}))}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(y,C){var T=!1,D=this.uiDialog.siblings(".ui-front:visible").map((function(){return+p(this).css("z-index")})).get(),$=Math.max.apply(null,D);return $>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",$+1),T=!0),T&&!C&&this._trigger("focus",y),T},open:function(){var y=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=p(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){y._focusTabbable(),y._trigger("focus")})),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var p=this._focusedElement;p||(p=this.element.find("[autofocus]")),p.length||(p=this.element.find(":tabbable")),p.length||(p=this.uiDialogButtonPane.find(":tabbable")),p.length||(p=this.uiDialogTitlebarClose.filter(":tabbable")),p.length||(p=this.uiDialog),p.eq(0).focus()},_keepFocus:function(y){function i(){var y=this.document[0].activeElement;this.uiDialog[0]===y||p.contains(this.uiDialog[0],y)||this._focusTabbable()}y.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=p("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(y){if(this.options.closeOnEscape&&!y.isDefaultPrevented()&&y.keyCode&&y.keyCode===p.ui.keyCode.ESCAPE)return y.preventDefault(),void this.close(y);if(y.keyCode===p.ui.keyCode.TAB&&!y.isDefaultPrevented()){var C=this.uiDialog.find(":tabbable"),T=C.filter(":first"),D=C.filter(":last");y.target!==D[0]&&y.target!==this.uiDialog[0]||y.shiftKey?y.target!==T[0]&&y.target!==this.uiDialog[0]||!y.shiftKey||(this._delay((function(){D.focus()})),y.preventDefault()):(this._delay((function(){T.focus()})),y.preventDefault())}},mousedown:function(p){this._moveToTop(p)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var y;this.uiDialogTitlebar=p("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(y){p(y.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=p("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(p){p.preventDefault(),this.close(p)}}),y=p("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(y),this.uiDialog.attr({"aria-labelledby":y.attr("id")})},_title:function(p){this.options.title||p.html("&#160;"),p.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=p("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=p("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var y=this,C=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),p.isEmptyObject(C)||p.isArray(C)&&!C.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(p.each(C,(function(C,T){var D,$;T=p.isFunction(T)?{click:T,text:C}:T,T=p.extend({type:"button"},T),D=T.click,T.click=function(){D.apply(y.element[0],arguments)},$={icons:T.icons,text:T.showText},delete T.icons,delete T.showText,p("<button></button>",T).button($).appendTo(y.uiButtonSet)})),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function t(p){return{position:p.position,offset:p.offset}}var y=this,C=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(C,T){p(this).addClass("ui-dialog-dragging"),y._blockFrames(),y._trigger("dragStart",C,t(T))},drag:function(p,C){y._trigger("drag",p,t(C))},stop:function(T,D){var $=D.offset.left-y.document.scrollLeft(),P=D.offset.top-y.document.scrollTop();C.position={my:"left top",at:"left"+($>=0?"+":"")+$+" top"+(P>=0?"+":"")+P,of:y.window},p(this).removeClass("ui-dialog-dragging"),y._unblockFrames(),y._trigger("dragStop",T,t(D))}})},_makeResizable:function(){function t(p){return{originalPosition:p.originalPosition,originalSize:p.originalSize,position:p.position,size:p.size}}var y=this,C=this.options,T=C.resizable,D=this.uiDialog.css("position"),$="string"==typeof T?T:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:C.maxWidth,maxHeight:C.maxHeight,minWidth:C.minWidth,minHeight:this._minHeight(),handles:$,start:function(C,T){p(this).addClass("ui-dialog-resizing"),y._blockFrames(),y._trigger("resizeStart",C,t(T))},resize:function(p,C){y._trigger("resize",p,t(C))},stop:function(T,D){var $=y.uiDialog.offset(),P=$.left-y.document.scrollLeft(),I=$.top-y.document.scrollTop();C.height=y.uiDialog.height(),C.width=y.uiDialog.width(),C.position={my:"left top",at:"left"+(P>=0?"+":"")+P+" top"+(I>=0?"+":"")+I,of:y.window},p(this).removeClass("ui-dialog-resizing"),y._unblockFrames(),y._trigger("resizeStop",T,t(D))}}).css("position",D)},_trackFocus:function(){this._on(this.widget(),{focusin:function(y){this._makeFocusTarget(),this._focusedElement=p(y.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var y=this._trackingInstances(),C=p.inArray(this,y);-1!==C&&y.splice(C,1)},_trackingInstances:function(){var p=this.document.data("ui-dialog-instances");return p||(p=[],this.document.data("ui-dialog-instances",p)),p},_minHeight:function(){var p=this.options;return"auto"===p.height?p.minHeight:Math.min(p.minHeight,p.height)},_position:function(){var p=this.uiDialog.is(":visible");p||this.uiDialog.show(),this.uiDialog.position(this.options.position),p||this.uiDialog.hide()},_setOptions:function(y){var C=this,T=!1,D={};p.each(y,(function(p,y){C._setOption(p,y),p in C.sizeRelatedOptions&&(T=!0),p in C.resizableRelatedOptions&&(D[p]=y)})),T&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",D)},_setOption:function(p,y){var C,T,D=this.uiDialog;"dialogClass"===p&&D.removeClass(this.options.dialogClass).addClass(y),"disabled"!==p&&(this._super(p,y),"appendTo"===p&&this.uiDialog.appendTo(this._appendTo()),"buttons"===p&&this._createButtons(),"closeText"===p&&this.uiDialogTitlebarClose.button({label:""+y}),"draggable"===p&&((C=D.is(":data(ui-draggable)"))&&!y&&D.draggable("destroy"),!C&&y&&this._makeDraggable()),"position"===p&&this._position(),"resizable"===p&&((T=D.is(":data(ui-resizable)"))&&!y&&D.resizable("destroy"),T&&"string"==typeof y&&D.resizable("option","handles",y),T||!1===y||this._makeResizable()),"title"===p&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var p,y,C,T=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),T.minWidth>T.width&&(T.width=T.minWidth),p=this.uiDialog.css({height:"auto",width:T.width}).outerHeight(),y=Math.max(0,T.minHeight-p),C="number"==typeof T.maxHeight?Math.max(0,T.maxHeight-p):"none","auto"===T.height?this.element.css({minHeight:y,maxHeight:C,height:"auto"}):this.element.height(Math.max(0,T.height-p)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var y=p(this);return p("<div>").css({position:"absolute",width:y.outerWidth(),height:y.outerHeight()}).appendTo(y.parent()).offset(y.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(y){return!!p(y.target).closest(".ui-dialog").length||!!p(y.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var y=!0;this._delay((function(){y=!1})),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(p){y||this._allowInteraction(p)||(p.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=p("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var p=this.document.data("ui-dialog-overlays")-1;p?this.document.data("ui-dialog-overlays",p):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),p.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var y,C=this.options,T=C.accept;this.isover=!1,this.isout=!0,this.accept=p.isFunction(T)?T:function(p){return p.is(T)},this.proportions=function(){return arguments.length?void(y=arguments[0]):y||(y={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(C.scope),C.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(y){p.ui.ddmanager.droppables[y]=p.ui.ddmanager.droppables[y]||[],p.ui.ddmanager.droppables[y].push(this)},_splice:function(p){for(var y=0;p.length>y;y++)p[y]===this&&p.splice(y,1)},_destroy:function(){var y=p.ui.ddmanager.droppables[this.options.scope];this._splice(y),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(y,C){if("accept"===y)this.accept=p.isFunction(C)?C:function(p){return p.is(C)};else if("scope"===y){var T=p.ui.ddmanager.droppables[this.options.scope];this._splice(T),this._addToManager(C)}this._super(y,C)},_activate:function(y){var C=p.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),C&&this._trigger("activate",y,this.ui(C))},_deactivate:function(y){var C=p.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),C&&this._trigger("deactivate",y,this.ui(C))},_over:function(y){var C=p.ui.ddmanager.current;C&&(C.currentItem||C.element)[0]!==this.element[0]&&this.accept.call(this.element[0],C.currentItem||C.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",y,this.ui(C)))},_out:function(y){var C=p.ui.ddmanager.current;C&&(C.currentItem||C.element)[0]!==this.element[0]&&this.accept.call(this.element[0],C.currentItem||C.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",y,this.ui(C)))},_drop:function(y,C){var T=C||p.ui.ddmanager.current,D=!1;return!(!T||(T.currentItem||T.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var C=p(this).droppable("instance");return C.options.greedy&&!C.options.disabled&&C.options.scope===T.options.scope&&C.accept.call(C.element[0],T.currentItem||T.element)&&p.ui.intersect(T,p.extend(C,{offset:C.element.offset()}),C.options.tolerance,y)?(D=!0,!1):void 0})),!D&&(!!this.accept.call(this.element[0],T.currentItem||T.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",y,this.ui(T)),this.element)))},ui:function(p){return{draggable:p.currentItem||p.element,helper:p.helper,position:p.position,offset:p.positionAbs}}}),p.ui.intersect=function(){function e(p,y,C){return p>=y&&y+C>p}return function(p,y,C,T){if(!y.offset)return!1;var D=(p.positionAbs||p.position.absolute).left+p.margins.left,$=(p.positionAbs||p.position.absolute).top+p.margins.top,P=D+p.helperProportions.width,I=$+p.helperProportions.height,A=y.offset.left,E=y.offset.top,O=A+y.proportions().width,N=E+y.proportions().height;switch(C){case"fit":return D>=A&&O>=P&&$>=E&&N>=I;case"intersect":return D+p.helperProportions.width/2>A&&O>P-p.helperProportions.width/2&&$+p.helperProportions.height/2>E&&N>I-p.helperProportions.height/2;case"pointer":return e(T.pageY,E,y.proportions().height)&&e(T.pageX,A,y.proportions().width);case"touch":return($>=E&&N>=$||I>=E&&N>=I||E>$&&I>N)&&(D>=A&&O>=D||P>=A&&O>=P||A>D&&P>O);default:return!1}}}(),p.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(y,C){var T,D,$=p.ui.ddmanager.droppables[y.options.scope]||[],P=C?C.type:null,I=(y.currentItem||y.element).find(":data(ui-droppable)").addBack();t:for(T=0;$.length>T;T++)if(!($[T].options.disabled||y&&!$[T].accept.call($[T].element[0],y.currentItem||y.element))){for(D=0;I.length>D;D++)if(I[D]===$[T].element[0]){$[T].proportions().height=0;continue t}$[T].visible="none"!==$[T].element.css("display"),$[T].visible&&("mousedown"===P&&$[T]._activate.call($[T],C),$[T].offset=$[T].element.offset(),$[T].proportions({width:$[T].element[0].offsetWidth,height:$[T].element[0].offsetHeight}))}},drop:function(y,C){var T=!1;return p.each((p.ui.ddmanager.droppables[y.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&p.ui.intersect(y,this,this.options.tolerance,C)&&(T=this._drop.call(this,C)||T),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],y.currentItem||y.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,C)))}
vendor: 10,658 bytes, line 7
7)),T},dragStart:function(y,C){y.element.parentsUntil("body").bind("scroll.droppable",(function(){y.options.refreshPositions||p.ui.ddmanager.prepareOffsets(y,C)}))},drag:function(y,C){y.options.refreshPositions&&p.ui.ddmanager.prepareOffsets(y,C),p.each(p.ui.ddmanager.droppables[y.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var T,D,$,P=p.ui.intersect(y,this,this.options.tolerance,C),I=!P&&this.isover?"isout":P&&!this.isover?"isover":null;I&&(this.options.greedy&&(D=this.options.scope,($=this.element.parents(":data(ui-droppable)").filter((function(){return p(this).droppable("instance").options.scope===D}))).length&&((T=p($[0]).droppable("instance")).greedyChild="isover"===I)),T&&"isover"===I&&(T.isover=!1,T.isout=!0,T._out.call(T,C)),this[I]=!0,this["isout"===I?"isover":"isout"]=!1,this["isover"===I?"_over":"_out"].call(this,C),T&&"isout"===I&&(T.isout=!1,T.isover=!0,T._over.call(T,C)))}}))},dragStop:function(y,C){y.element.parentsUntil("body").unbind("scroll.droppable"),y.options.refreshPositions||p.ui.ddmanager.prepareOffsets(y,C)}},p.ui.droppable;var A="ui-effects-",E=p;p.effects={effect:{}},function(p,y){function i(p,y,C){var T=I[y.type]||{};return null==p?C||!y.def?null:y.def:(p=T.floor?~~p:parseFloat(p),isNaN(p)?y.def:T.mod?(p+T.mod)%T.mod:0>p?0:p>T.max?T.max:p)}function s(T){var I=$(),A=I._rgba=[];return T=T.toLowerCase(),O(D,(function(p,C){var D,$=C.re.exec(T),E=$&&C.parse($),O=C.space||"rgba";return E?(D=I[O](E),I[P[O].cache]=D[P[O].cache],A=I._rgba=D._rgba,!1):y})),A.length?("0,0,0,0"===A.join()&&p.extend(A,C.transparent),I):C[T]}function n(p,y,C){return 1>6*(C=(C+1)%1)?p+6*(y-p)*C:1>2*C?y:2>3*C?p+6*(y-p)*(2/3-C):p}var C,T=/^([\-+])=\s*(\d+\.?\d*)/,D=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(p){return[p[1],p[2],p[3],p[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(p){return[2.55*p[1],2.55*p[2],2.55*p[3],p[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(p){return[parseInt(p[1],16),parseInt(p[2],16),parseInt(p[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(p){return[parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16),parseInt(p[3]+p[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(p){return[p[1],p[2]/100,p[3]/100,p[4]]}}],$=p.Color=function(y,C,T,D){return new p.Color.fn.parse(y,C,T,D)},P={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},I={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},A=$.support={},E=p("<p>")[0],O=p.each;E.style.cssText="background-color:rgba(1,1,1,.5)",A.rgba=E.style.backgroundColor.indexOf("rgba")>-1,O(P,(function(p,y){y.cache="_"+p,y.props.alpha={idx:3,type:"percent",def:1}})),$.fn=p.extend($.prototype,{parse:function(T,D,I,A){if(T===y)return this._rgba=[null,null,null,null],this;(T.jquery||T.nodeType)&&(T=p(T).css(D),D=y);var E=this,N=p.type(T),j=this._rgba=[];return D!==y&&(T=[T,D,I,A],N="array"),"string"===N?this.parse(s(T)||C._default):"array"===N?(O(P.rgba.props,(function(p,y){j[y.idx]=i(T[y.idx],y)})),this):"object"===N?(O(P,T instanceof $?function(p,y){T[y.cache]&&(E[y.cache]=T[y.cache].slice())}:function(y,C){var D=C.cache;O(C.props,(function(p,y){if(!E[D]&&C.to){if("alpha"===p||null==T[p])return;E[D]=C.to(E._rgba)}E[D][y.idx]=i(T[p],y,!0)})),E[D]&&0>p.inArray(null,E[D].slice(0,3))&&(E[D][3]=1,C.from&&(E._rgba=C.from(E[D])))}),this):y},is:function(p){var C=$(p),T=!0,D=this;return O(P,(function(p,$){var P,I=C[$.cache];return I&&(P=D[$.cache]||$.to&&$.to(D._rgba)||[],O($.props,(function(p,C){return null!=I[C.idx]?T=I[C.idx]===P[C.idx]:y}))),T})),T},_space:function(){var p=[],y=this;return O(P,(function(C,T){y[T.cache]&&p.push(C)})),p.pop()},transition:function(p,y){var C=$(p),T=C._space(),D=P[T],A=0===this.alpha()?$("transparent"):this,E=A[D.cache]||D.to(A._rgba),N=E.slice();return C=C[D.cache],O(D.props,(function(p,T){var D=T.idx,$=E[D],P=C[D],A=I[T.type]||{};null!==P&&(null===$?N[D]=P:(A.mod&&(P-$>A.mod/2?$+=A.mod:$-P>A.mod/2&&($-=A.mod)),N[D]=i((P-$)*y+$,T)))})),this[T](N)},blend:function(y){if(1===this._rgba[3])return this;var C=this._rgba.slice(),T=C.pop(),D=$(y)._rgba;return $(p.map(C,(function(p,y){return(1-T)*D[y]+T*p})))},toRgbaString:function(){var y="rgba(",C=p.map(this._rgba,(function(p,y){return null==p?y>2?1:0:p}));return 1===C[3]&&(C.pop(),y="rgb("),y+C.join()+")"},toHslaString:function(){var y="hsla(",C=p.map(this.hsla(),(function(p,y){return null==p&&(p=y>2?1:0),y&&3>y&&(p=Math.round(100*p)+"%"),p}));return 1===C[3]&&(C.pop(),y="hsl("),y+C.join()+")"},toHexString:function(y){var C=this._rgba.slice(),T=C.pop();return y&&C.push(~~(255*T)),"#"+p.map(C,(function(p){return 1===(p=(p||0).toString(16)).length?"0"+p:p})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),$.fn.parse.prototype=$.fn,P.hsla.to=function(p){if(null==p[0]||null==p[1]||null==p[2])return[null,null,null,p[3]];var y,C,T=p[0]/255,D=p[1]/255,$=p[2]/255,P=p[3],I=Math.max(T,D,$),A=Math.min(T,D,$),E=I-A,O=I+A,N=.5*O;return y=A===I?0:T===I?60*(D-$)/E+360:D===I?60*($-T)/E+120:60*(T-D)/E+240,C=0===E?0:.5>=N?E/O:E/(2-O),[Math.round(y)%360,C,N,null==P?1:P]},P.hsla.from=function(p){if(null==p[0]||null==p[1]||null==p[2])return[null,null,null,p[3]];var y=p[0]/360,C=p[1],T=p[2],D=p[3],$=.5>=T?T*(1+C):T+C-T*C,P=2*T-$;return[Math.round(255*n(P,$,y+1/3)),Math.round(255*n(P,$,y)),Math.round(255*n(P,$,y-1/3)),D]},O(P,(function(C,D){var P=D.props,I=D.cache,A=D.to,E=D.from;$.fn[C]=function(C){if(A&&!this[I]&&(this[I]=A(this._rgba)),C===y)return this[I].slice();var T,D=p.type(C),N="array"===D||"object"===D?C:arguments,j=this[I].slice();return O(P,(function(p,y){var C=N["object"===D?p:y.idx];null==C&&(C=j[y.idx]),j[y.idx]=i(C,y)})),E?((T=$(E(j)))[I]=j,T):$(j)},O(P,(function(y,D){$.fn[y]||($.fn[y]=function($){var P,I=p.type($),A="alpha"===y?this._hsla?"hsla":"rgba":C,E=this[A](),O=E[D.idx];return"undefined"===I?O:("function"===I&&($=$.call(this,O),I=p.type($)),null==$&&D.empty?this:("string"===I&&((P=T.exec($))&&($=O+parseFloat(P[2])*("+"===P[1]?1:-1))),E[D.idx]=$,this[A](E)))})}))})),$.hook=function(y){var C=y.split(" ");O(C,(function(y,C){p.cssHooks[C]={set:function(y,T){var D,P,I="";if("transparent"!==T&&("string"!==p.type(T)||(D=s(T)))){if(T=$(D||T),!A.rgba&&1!==T._rgba[3]){for(P="backgroundColor"===C?y.parentNode:y;(""===I||"transparent"===I)&&P&&P.style;)try{I=p.css(P,"backgroundColor"),P=P.parentNode}catch(p){}T=T.blend(I&&"transparent"!==I?I:"_default")}T=T.toRgbaString()}try{y.style[C]=T}catch(p){}}},p.fx.step[C]=function(y){y.colorInit||(y.start=$(y.elem,C),y.end=$(y.end),y.colorInit=!0),p.cssHooks[C].set(y.elem,y.start.transition(y.end,y.pos))}}))},$.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),p.cssHooks.borderColor={expand:function(p){var y={};return O(["Top","Right","Bottom","Left"],(function(C,T){y["border"+T+"Color"]=p})),y}},C=p.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(E),function(){function t(y){var C,T,D=y.ownerDocument.defaultView?y.ownerDocument.defaultView.getComputedStyle(y,null):y.currentStyle,$={};if(D&&D.length&&D[0]&&D[D[0]])for(T=D.length;T--;)"string"==typeof D[C=D[T]]&&($[p.camelCase(C)]=D[C]);else for(C in D)"string"==typeof D[C]&&($[C]=D[C]);return $}function i(y,T){var D,$,P={};for(D in T)$=T[D],y[D]!==$&&(C[D]||(p.fx.step[D]||!isNaN(parseFloat($)))&&(P[D]=$));return P}var y=["add","remove","toggle"],C={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};p.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(y,C){p.fx.step[C]=function(p){("none"!==p.end&&!p.setAttr||1===p.pos&&!p.setAttr)&&(E.style(p.elem,C,p.end),p.setAttr=!0)}})),p.fn.addBack||(p.fn.addBack=function(p){return this.add(null==p?this.prevObject:this.prevObject.filter(p))}),p.effects.animateClass=function(C,T,D,$){var P=p.speed(T,D,$);return this.queue((function(){var T,D=p(this),$=D.attr("class")||"",I=P.children?D.find("*").addBack():D;I=I.map((function(){return{el:p(this),start:t(this)}})),T=function(){p.each(y,(function(p,y){C[y]&&D[y+"Class"](C[y])}))},T(),I=I.map((function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this})),D.attr("class",$),I=I.map((function(){var y=this,C=p.Deferred(),T=p.extend({},P,{queue:!1,complete:function(){C.resolve(y)}});return this.el.animate(this.diff,T),C.promise()})),p.when.apply(p,I.get()).done((function(){T(),p.each(arguments,(function(){var y=this.el;p.each(this.diff,(function(p){y.css(p,"")}))})),P.complete.call(D[0])}))}))},p.fn.extend({addClass:function(y){return function(C,T,D,$){return T?p.effects.animateClass.call(this,{add:C},T,D,$):y.apply(this,arguments)}}(p.fn.addClass),removeClass:function(y){return function(C,T,D,$){return arguments.length>1?p.effects.animateClass.call(this,{remove:C},T,D,$):y.apply(this,arguments)}}(p.fn.removeClass),toggleClass:function(y){return function(C,T,D,$,P){return"boolean"==typeof T||void 0===T?D?p.effects.animateClass.call(this,T?{add:C}:{remove:C},D,$,P):y.apply(this,arguments):p.effects.animateClass.call(this,{toggle:C},T,D,$)}}(p.fn.toggleClass),switchClass:function(y,C,T,D,$){return p.effects.animateClass.call(this,{add:C,remove:y},T,D,$)}})}(),function(){function t(y,C,T,D){return p.isPlainObject(y)&&(C=y,y=y.effect),y={effect:y},null==C&&(C={}),p.isFunction(C)&&(D=C,T=null,C={}),("number"==typeof C||p.fx.speeds[C])&&(D=T,T=C,C={}),p.isFunction(T)&&(D=T,T=null),C&&p.extend(y,C),T=T||C.duration,y.duration=p.fx.off?0:"number"==typeof T?T:T in p.fx.speeds?p.fx.speeds[T]:p.fx.speeds._default,y.complete=D||C.complete,y}function i(y){return!(y&&"number"!=typeof y&&!p.fx.speeds[y])||("string"==typeof y&&!p.effects.effect[y]||(!!p.isFunction(y)||"object"==typeof y&&!y.effect))}p.extend(p.effects,{version:"1.11.4",save:function(p,y){for(var C=0;y.length>C;C++)null!==y[C]&&p.data(A+y[C],p[0].style[y[C]])},restore:function(p,y){var C,T;for(T=0;y.length>T;
vendor: 9,227 bytes, line 7
7T++)null!==y[T]&&(void 0===(C=p.data(A+y[T]))&&(C=""),p.css(y[T],C))},setMode:function(p,y){return"toggle"===y&&(y=p.is(":hidden")?"show":"hide"),y},getBaseline:function(p,y){var C,T;switch(p[0]){case"top":C=0;break;case"middle":C=.5;break;case"bottom":C=1;break;default:C=p[0]/y.height}switch(p[1]){case"left":T=0;break;case"center":T=.5;break;case"right":T=1;break;default:T=p[1]/y.width}return{x:T,y:C}},createWrapper:function(y){if(y.parent().is(".ui-effects-wrapper"))return y.parent();var C={width:y.outerWidth(!0),height:y.outerHeight(!0),float:y.css("float")},T=p("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),D={width:y.width(),height:y.height()},$=document.activeElement;try{$.id}catch(p){$=document.body}return y.wrap(T),(y[0]===$||p.contains(y[0],$))&&p($).focus(),T=y.parent(),"static"===y.css("position")?(T.css({position:"relative"}),y.css({position:"relative"})):(p.extend(C,{position:y.css("position"),zIndex:y.css("z-index")}),p.each(["top","left","bottom","right"],(function(p,T){C[T]=y.css(T),isNaN(parseInt(C[T],10))&&(C[T]="auto")})),y.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),y.css(D),T.css(C).show()},removeWrapper:function(y){var C=document.activeElement;return y.parent().is(".ui-effects-wrapper")&&(y.parent().replaceWith(y),(y[0]===C||p.contains(y[0],C))&&p(C).focus()),y},setTransition:function(y,C,T,D){return D=D||{},p.each(C,(function(p,C){var $=y.cssUnit(C);$[0]>0&&(D[C]=$[0]*T+$[1])})),D}}),p.fn.extend({effect:function(){function i(C){function i(){p.isFunction($)&&$.call(T[0]),p.isFunction(C)&&C()}var T=p(this),$=y.complete,P=y.mode;(T.is(":hidden")?"hide"===P:"show"===P)?(T[P](),i()):D.call(T[0],y,i)}var y=t.apply(this,arguments),C=y.mode,T=y.queue,D=p.effects.effect[y.effect];return p.fx.off||!D?C?this[C](y.duration,y.complete):this.each((function(){y.complete&&y.complete.call(this)})):!1===T?this.each(i):this.queue(T||"fx",i)},show:function(p){return function(y){if(i(y))return p.apply(this,arguments);var C=t.apply(this,arguments);return C.mode="show",this.effect.call(this,C)}}(p.fn.show),hide:function(p){return function(y){if(i(y))return p.apply(this,arguments);var C=t.apply(this,arguments);return C.mode="hide",this.effect.call(this,C)}}(p.fn.hide),toggle:function(p){return function(y){if(i(y)||"boolean"==typeof y)return p.apply(this,arguments);var C=t.apply(this,arguments);return C.mode="toggle",this.effect.call(this,C)}}(p.fn.toggle),cssUnit:function(y){var C=this.css(y),T=[];return p.each(["em","px","%","pt"],(function(p,y){C.indexOf(y)>0&&(T=[parseFloat(C),y])})),T}})}(),function(){var y={};p.each(["Quad","Cubic","Quart","Quint","Expo"],(function(p,C){y[C]=function(y){return Math.pow(y,p+2)}})),p.extend(y,{Sine:function(p){return 1-Math.cos(p*Math.PI/2)},Circ:function(p){return 1-Math.sqrt(1-p*p)},Elastic:function(p){return 0===p||1===p?p:-Math.pow(2,8*(p-1))*Math.sin((80*(p-1)-7.5)*Math.PI/15)},Back:function(p){return p*p*(3*p-2)},Bounce:function(p){for(var y,C=4;((y=Math.pow(2,--C))-1)/11>p;);return 1/Math.pow(4,3-C)-7.5625*Math.pow((3*y-2)/22-p,2)}}),p.each(y,(function(y,C){p.easing["easeIn"+y]=C,p.easing["easeOut"+y]=function(p){return 1-C(1-p)},p.easing["easeInOut"+y]=function(p){return.5>p?C(2*p)/2:1-C(-2*p+2)/2}}))}(),p.effects,p.effects.effect.blind=function(y,C){var T,D,$,P=p(this),I=["position","top","bottom","left","right","height","width"],A=p.effects.setMode(P,y.mode||"hide"),E=y.direction||"up",O=/up|down|vertical/.test(E),N=O?"height":"width",j=O?"top":"left",q=/up|left|vertical|horizontal/.test(E),U={},Y="show"===A;P.parent().is(".ui-effects-wrapper")?p.effects.save(P.parent(),I):p.effects.save(P,I),P.show(),D=(T=p.effects.createWrapper(P).css({overflow:"hidden"}))[N](),$=parseFloat(T.css(j))||0,U[N]=Y?D:0,q||(P.css(O?"bottom":"right",0).css(O?"top":"left","auto").css({position:"absolute"}),U[j]=Y?$:D+$),Y&&(T.css(N,0),q||T.css(j,$+D)),T.animate(U,{duration:y.duration,easing:y.easing,queue:!1,complete:function(){"hide"===A&&P.hide(),p.effects.restore(P,I),p.effects.removeWrapper(P),C()}})},p.effects.effect.bounce=function(y,C){var T,D,$,P=p(this),I=["position","top","bottom","left","right","height","width"],A=p.effects.setMode(P,y.mode||"effect"),E="hide"===A,O="show"===A,N=y.direction||"up",j=y.distance,q=y.times||5,U=2*q+(O||E?1:0),Y=y.duration/U,X=y.easing,Q="up"===N||"down"===N?"top":"left",G="up"===N||"left"===N,Z=P.queue(),tt=Z.length;for((O||E)&&I.push("opacity"),p.effects.save(P,I),P.show(),p.effects.createWrapper(P),j||(j=P["top"===Q?"outerHeight":"outerWidth"]()/3),O&&(($={opacity:1})[Q]=0,P.css("opacity",0).css(Q,G?2*-j:2*j).animate($,Y,X)),E&&(j/=Math.pow(2,q-1)),($={})[Q]=0,T=0;q>T;T++)(D={})[Q]=(G?"-=":"+=")+j,P.animate(D,Y,X).animate($,Y,X),j=E?2*j:j/2;E&&((D={opacity:0})[Q]=(G?"-=":"+=")+j,P.animate(D,Y,X)),P.queue((function(){E&&P.hide(),p.effects.restore(P,I),p.effects.removeWrapper(P),C()})),tt>1&&Z.splice.apply(Z,[1,0].concat(Z.splice(tt,U+1))),P.dequeue()},p.effects.effect.clip=function(y,C){var T,D,$,P=p(this),I=["position","top","bottom","left","right","height","width"],A="show"===p.effects.setMode(P,y.mode||"hide"),E="vertical"===(y.direction||"vertical"),O=E?"height":"width",N=E?"top":"left",j={};p.effects.save(P,I),P.show(),T=p.effects.createWrapper(P).css({overflow:"hidden"}),$=(D="IMG"===P[0].tagName?T:P)[O](),A&&(D.css(O,0),D.css(N,$/2)),j[O]=A?$:0,j[N]=A?0:$/2,D.animate(j,{queue:!1,duration:y.duration,easing:y.easing,complete:function(){A||P.hide(),p.effects.restore(P,I),p.effects.removeWrapper(P),C()}})},p.effects.effect.drop=function(y,C){var T,D=p(this),$=["position","top","bottom","left","right","opacity","height","width"],P=p.effects.setMode(D,y.mode||"hide"),I="show"===P,A=y.direction||"left",E="up"===A||"down"===A?"top":"left",O="up"===A||"left"===A?"pos":"neg",N={opacity:I?1:0};p.effects.save(D,$),D.show(),p.effects.createWrapper(D),T=y.distance||D["top"===E?"outerHeight":"outerWidth"](!0)/2,I&&D.css("opacity",0).css(E,"pos"===O?-T:T),N[E]=(I?"pos"===O?"+=":"-=":"pos"===O?"-=":"+=")+T,D.animate(N,{queue:!1,duration:y.duration,easing:y.easing,complete:function(){"hide"===P&&D.hide(),p.effects.restore(D,$),p.effects.removeWrapper(D),C()}})},p.effects.effect.explode=function(y,C){function s(){X.push(this),X.length===E*O&&function n(){N.css({visibility:"visible"}),p(X).remove(),j||N.hide(),C()}()}var T,D,$,P,I,A,E=y.pieces?Math.round(Math.sqrt(y.pieces)):3,O=E,N=p(this),j="show"===p.effects.setMode(N,y.mode||"hide"),q=N.show().css("visibility","hidden").offset(),U=Math.ceil(N.outerWidth()/O),Y=Math.ceil(N.outerHeight()/E),X=[];for(T=0;E>T;T++)for(P=q.top+T*Y,A=T-(E-1)/2,D=0;O>D;D++)$=q.left+D*U,I=D-(O-1)/2,N.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-D*U,top:-T*Y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:U,height:Y,left:$+(j?I*U:0),top:P+(j?A*Y:0),opacity:j?0:1}).animate({left:$+(j?0:I*U),top:P+(j?0:A*Y),opacity:j?1:0},y.duration||500,y.easing,s)},p.effects.effect.fade=function(y,C){var T=p(this),D=p.effects.setMode(T,y.mode||"toggle");T.animate({opacity:D},{queue:!1,duration:y.duration,easing:y.easing,complete:C})},p.effects.effect.fold=function(y,C){var T,D,$=p(this),P=["position","top","bottom","left","right","height","width"],I=p.effects.setMode($,y.mode||"hide"),A="show"===I,E="hide"===I,O=y.size||15,N=/([0-9]+)%/.exec(O),j=!!y.horizFirst,q=A!==j,U=q?["width","height"]:["height","width"],Y=y.duration/2,X={},Q={};p.effects.save($,P),$.show(),T=p.effects.createWrapper($).css({overflow:"hidden"}),D=q?[T.width(),T.height()]:[T.height(),T.width()],N&&(O=parseInt(N[1],10)/100*D[E?0:1]),A&&T.css(j?{height:0,width:O}:{height:O,width:0}),X[U[0]]=A?D[0]:O,Q[U[1]]=A?D[1]:0,T.animate(X,Y,y.easing).animate(Q,Y,y.easing,(function(){E&&$.hide(),p.effects.restore($,P),p.effects.removeWrapper($),C()}))},p.effects.effect.highlight=function(y,C){var T=p(this),D=["backgroundImage","backgroundColor","opacity"],$=p.effects.setMode(T,y.mode||"show"),P={backgroundColor:T.css("backgroundColor")};"hide"===$&&(P.opacity=0),p.effects.save(T,D),T.show().css({backgroundImage:"none",backgroundColor:y.color||"#ffff99"}).animate(P,{queue:!1,duration:y.duration,easing:y.easing,complete:function(){"hide"===$&&T.hide(),p.effects.restore(T,D),C()}})},p.effects.effect.size=function(y,C){var T,D,$,P=p(this),I=["position","top","bottom","left","right","width","height","overflow","opacity"],A=["width","height","overflow"],E=["fontSize"],O=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],N=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],j=p.effects.setMode(P,y.mode||"effect"),q=y.restore||"effect"!==j,U=y.scale||"both",Y=y.origin||["middle","center"],X=P.css("position"),Q=q?I:["position","top","bottom","left","right","overflow","opacity"],G={height:0,width:0,outerHeight:0,outerWidth:0};"show"===j&&P.show(),T={height:P.height(),width:P.width(),outerHeight:P.outerHeight(),outerWidth:P.outerWidth()},"toggle"===y.mode&&"show"===j?(P.from=y.to||G,P.to=y.from||T):(P.from=y.from||("show"===j?G:T),P.to=y.to||("hide"===j?G:T)),$={from:{y:P.from.height/T.height,x:P.from.width/T.width}
7,to:{y:P.to.height/T.height,x:P.to.width/T.width}},("box"===U||"both"===U)&&($.from.y!==$.to.y&&(Q=Q.concat(O),P.from=p.effects.setTransition(P,O,$.from.y,P.from),P.to=p.effects.setTransition(P,O,$.to.y,P.to)),$.from.x!==$.to.x&&(Q=Q.concat(N),P.from=p.effects.setTransition(P,N,$.from.x,P.from),P.to=p.effects.setTransition(P,N,$.to.x,P.to))),("content"===U||"both"===U)&&$.from.y!==$.to.y&&(Q=Q.concat(E).concat(A),P.from=p.effects.setTransition(P,E,$.from.y,P.from),P.to=p.effects.setTransition(P,E,$.to.y,P.to)),p.effects.save(P,Q),P.show(),p.effects.createWrapper(P),P.css("overflow","hidden").css(P.from),Y&&(D=p.effects.getBaseline(Y,T),P.from.top=(T.outerHeight-P.outerHeight())*D.y,P.from.left=(T.outerWidth-P.outerWidth())*D.x,P.to.top=(T.outerHeight-P.to.outerHeight)*D.y,P.to.left=(T.outerWidth-P.to.outerWidth)*D.x),P.css(P.from),("content"===U||"both"===U)&&(O=O.concat(["marginTop","marginBottom"]).concat(E),N=N.concat(["marginLeft","marginRight"]),A=I.concat(O).concat(N),P.find("*[width]").each((function(){var C=p(this),T=C.height(),D=C.width(),P=C.outerHeight(),I=C.outerWidth();q&&p.effects.save(C,A),C.from={height:T*$.from.y,width:D*$.from.x,outerHeight:P*$.from.y,outerWidth:I*$.from.x},C.to={height:T*$.to.y,width:D*$.to.x,outerHeight:T*$.to.y,outerWidth:D*$.to.x},$.from.y!==$.to.y&&(C.from=p.effects.setTransition(C,O,$.from.y,C.from),C.to=p.effects.setTransition(C,O,$.to.y,C.to)),$.from.x!==$.to.x&&(C.from=p.effects.setTransition(C,N,$.from.x,C.from),C.to=p.effects.setTransition(C,N,$.to.x,C.to)),C.css(C.from),C.animate(C.to,y.duration,y.easing,(function(){q&&p.effects.restore(C,A)}))}))),P.animate(P.to,{queue:!1,duration:y.duration,easing:y.easing,complete:function(){0===P.to.opacity&&P.css("opacity",P.from.opacity),"hide"===j&&P.hide(),p.effects.restore(P,Q),q||("static"===X?P.css({position:"relative",top:P.to.top,left
vendor: 26,125 bytes, line 7
7:P.to.left}):p.each(["top","left"],(function(p,y){P.css(y,(function(y,C){var T=parseInt(C,10),D=p?P.to.left:P.to.top;return"auto"===C?D+"px":T+D+"px"}))}))),p.effects.removeWrapper(P),C()}})},p.effects.effect.scale=function(y,C){var T=p(this),D=p.extend(!0,{},y),$=p.effects.setMode(T,y.mode||"effect"),P=parseInt(y.percent,10)||(0===parseInt(y.percent,10)||"hide"===$?0:100),I=y.direction||"both",A=y.origin,E={height:T.height(),width:T.width(),outerHeight:T.outerHeight(),outerWidth:T.outerWidth()},O="horizontal"!==I?P/100:1,N="vertical"!==I?P/100:1;D.effect="size",D.queue=!1,D.complete=C,"effect"!==$&&(D.origin=A||["middle","center"],D.restore=!0),D.from=y.from||("show"===$?{height:0,width:0,outerHeight:0,outerWidth:0}:E),D.to={height:E.height*O,width:E.width*N,outerHeight:E.outerHeight*O,outerWidth:E.outerWidth*N},D.fade&&("show"===$&&(D.from.opacity=0,D.to.opacity=1),"hide"===$&&(D.from.opacity=1,D.to.opacity=0)),T.effect(D)},p.effects.effect.puff=function(y,C){var T=p(this),D=p.effects.setMode(T,y.mode||"hide"),$="hide"===D,P=parseInt(y.percent,10)||150,I=P/100,A={height:T.height(),width:T.width(),outerHeight:T.outerHeight(),outerWidth:T.outerWidth()};p.extend(y,{effect:"scale",queue:!1,fade:!0,mode:D,complete:C,percent:$?P:100,from:$?A:{height:A.height*I,width:A.width*I,outerHeight:A.outerHeight*I,outerWidth:A.outerWidth*I}}),T.effect(y)},p.effects.effect.pulsate=function(y,C){var T,D=p(this),$=p.effects.setMode(D,y.mode||"show"),P="show"===$,I="hide"===$,A=P||"hide"===$,E=2*(y.times||5)+(A?1:0),O=y.duration/E,N=0,j=D.queue(),q=j.length;for((P||!D.is(":visible"))&&(D.css("opacity",0).show(),N=1),T=1;E>T;T++)D.animate({opacity:N},O,y.easing),N=1-N;D.animate({opacity:N},O,y.easing),D.queue((function(){I&&D.hide(),C()})),q>1&&j.splice.apply(j,[1,0].concat(j.splice(q,E+1))),D.dequeue()},p.effects.effect.shake=function(y,C){var T,D=p(this),$=["position","top","bottom","left","right","height","width"],P=p.effects.setMode(D,y.mode||"effect"),I=y.direction||"left",A=y.distance||20,E=y.times||3,O=2*E+1,N=Math.round(y.duration/O),j="up"===I||"down"===I?"top":"left",q="up"===I||"left"===I,U={},Y={},X={},Q=D.queue(),G=Q.length;for(p.effects.save(D,$),D.show(),p.effects.createWrapper(D),U[j]=(q?"-=":"+=")+A,Y[j]=(q?"+=":"-=")+2*A,X[j]=(q?"-=":"+=")+2*A,D.animate(U,N,y.easing),T=1;E>T;T++)D.animate(Y,N,y.easing).animate(X,N,y.easing);D.animate(Y,N,y.easing).animate(U,N/2,y.easing).queue((function(){"hide"===P&&D.hide(),p.effects.restore(D,$),p.effects.removeWrapper(D),C()})),G>1&&Q.splice.apply(Q,[1,0].concat(Q.splice(G,O+1))),D.dequeue()},p.effects.effect.slide=function(y,C){var T,D=p(this),$=["position","top","bottom","left","right","width","height"],P=p.effects.setMode(D,y.mode||"show"),I="show"===P,A=y.direction||"left",E="up"===A||"down"===A?"top":"left",O="up"===A||"left"===A,N={};p.effects.save(D,$),D.show(),T=y.distance||D["top"===E?"outerHeight":"outerWidth"](!0),p.effects.createWrapper(D).css({overflow:"hidden"}),I&&D.css(E,O?isNaN(T)?"-"+T:-T:T),N[E]=(I?O?"+=":"-=":O?"-=":"+=")+T,D.animate(N,{queue:!1,duration:y.duration,easing:y.easing,complete:function(){"hide"===P&&D.hide(),p.effects.restore(D,$),p.effects.removeWrapper(D),C()}})},p.effects.effect.transfer=function(y,C){var T=p(this),D=p(y.to),$="fixed"===D.css("position"),P=p("body"),I=$?P.scrollTop():0,A=$?P.scrollLeft():0,E=D.offset(),O={top:E.top-I,left:E.left-A,height:D.innerHeight(),width:D.innerWidth()},N=T.offset(),j=p("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(y.className).css({top:N.top-I,left:N.left-A,height:T.innerHeight(),width:T.innerWidth(),position:$?"fixed":"absolute"}).animate(O,y.duration,y.easing,(function(){j.remove(),C()}))},p.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=p("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(p){return void 0===p?this.options.value:(this.options.value=this._constrainedValue(p),void this._refreshValue())},_constrainedValue:function(p){return void 0===p&&(p=this.options.value),this.indeterminate=!1===p,"number"!=typeof p&&(p=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,p))},_setOptions:function(p){var y=p.value;delete p.value,this._super(p),this.options.value=this._constrainedValue(y),this._refreshValue()},_setOption:function(p,y){"max"===p&&(y=Math.max(this.min,y)),"disabled"===p&&this.element.toggleClass("ui-state-disabled",!!y).attr("aria-disabled",y),this._super(p,y)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var y=this.options.value,C=this._percentage();this.valueDiv.toggle(this.indeterminate||y>this.min).toggleClass("ui-corner-right",y===this.options.max).width(C.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=p("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":y}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==y&&(this.oldValue=y,this._trigger("change")),y===this.options.max&&this._trigger("complete")}}),p.widget("ui.selectable",p.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var y,C=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(y=p(C.options.filter,C.element[0])).addClass("ui-selectee"),y.each((function(){var y=p(this),C=y.offset();p.data(this,"selectable-item",{element:this,$element:y,left:C.left,top:C.top,right:C.left+y.outerWidth(),bottom:C.top+y.outerHeight(),startselected:!1,selected:y.hasClass("ui-selected"),selecting:y.hasClass("ui-selecting"),unselecting:y.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=y.addClass("ui-selectee"),this._mouseInit(),this.helper=p("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(y){var C=this,T=this.options;this.opos=[y.pageX,y.pageY],this.options.disabled||(this.selectees=p(T.filter,this.element[0]),this._trigger("start",y),p(T.appendTo).append(this.helper),this.helper.css({left:y.pageX,top:y.pageY,width:0,height:0}),T.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var T=p.data(this,"selectable-item");T.startselected=!0,y.metaKey||y.ctrlKey||(T.$element.removeClass("ui-selected"),T.selected=!1,T.$element.addClass("ui-unselecting"),T.unselecting=!0,C._trigger("unselecting",y,{unselecting:T.element}))})),p(y.target).parents().addBack().each((function(){var T,D=p.data(this,"selectable-item");return D?(T=!y.metaKey&&!y.ctrlKey||!D.$element.hasClass("ui-selected"),D.$element.removeClass(T?"ui-unselecting":"ui-selected").addClass(T?"ui-selecting":"ui-unselecting"),D.unselecting=!T,D.selecting=T,D.selected=T,T?C._trigger("selecting",y,{selecting:D.element}):C._trigger("unselecting",y,{unselecting:D.element}),!1):void 0})))},_mouseDrag:function(y){if(this.dragged=!0,!this.options.disabled){var C,T=this,D=this.options,$=this.opos[0],P=this.opos[1],I=y.pageX,A=y.pageY;return $>I&&(C=I,I=$,$=C),P>A&&(C=A,A=P,P=C),this.helper.css({left:$,top:P,width:I-$,height:A-P}),this.selectees.each((function(){var C=p.data(this,"selectable-item"),E=!1;C&&C.element!==T.element[0]&&("touch"===D.tolerance?E=!(C.left>I||$>C.right||C.top>A||P>C.bottom):"fit"===D.tolerance&&(E=C.left>$&&I>C.right&&C.top>P&&A>C.bottom),E?(C.selected&&(C.$element.removeClass("ui-selected"),C.selected=!1),C.unselecting&&(C.$element.removeClass("ui-unselecting"),C.unselecting=!1),C.selecting||(C.$element.addClass("ui-selecting"),C.selecting=!0,T._trigger("selecting",y,{selecting:C.element}))):(C.selecting&&((y.metaKey||y.ctrlKey)&&C.startselected?(C.$element.removeClass("ui-selecting"),C.selecting=!1,C.$element.addClass("ui-selected"),C.selected=!0):(C.$element.removeClass("ui-selecting"),C.selecting=!1,C.startselected&&(C.$element.addClass("ui-unselecting"),C.unselecting=!0),T._trigger("unselecting",y,{unselecting:C.element}))),C.selected&&(y.metaKey||y.ctrlKey||C.startselected||(C.$element.removeClass("ui-selected"),C.selected=!1,C.$element.addClass("ui-unselecting"),C.unselecting=!0,T._trigger("unselecting",y,{unselecting:C.element})))))})),!1}},_mouseStop:function(y){var C=this;return this.dragged=!1,p(".ui-unselecting",this.element[0]).each((function(){var T=p.data(this,"selectable-item");T.$element.removeClass("ui-unselecting"),T.unselecting=!1,T.startselected=!1,C._trigger("unselected",y,{unselected:T.element})})),p(".ui-selecting",this.element[0]).each((function(){var T=p.data(this,"selectable-item");T.$element.removeClass("ui-selecting").addClass("ui-selected"),T.selecting=!1,T.selected=!0,T.startselected=!0,C._trigger("selected",y,{selected:T.element})})),this._trigger("stop",y),this.helper.remove(),!1}}),p.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var p=this.element.uniqueId().attr("id");this.ids={element:p,button:p+"-button",menu:p+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var y=this;this.label=p("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(p){this.button.focus(),p.preventDefault()}}),this.element.hide(),this.button=p("<span>",{class:"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),p("<span>",{class:"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=p("<span>",{class:"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){y.menuItems||y._refreshMenu()})),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var y=this;this.menu=p("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=p("<div>",{class:"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(p,C){p.preventDefault(),y._setSelection(),y._select(C.item.data("ui-selectmenu-item"),p)},focus:function(p,C){var T=C.item.data("ui-selectmenu-item");null!=y.focusIndex&&T.index!==y.focusIndex&&(y._trigger("focus",p,{item:T}),y.isOpen||y._select(T,p)),y.focusIndex=T.index,y.button.attr("aria-activedescendant",y.menuItems.eq(T.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var p,y=this.element.find("option");y.length&&(this._parseOptions(y),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),p=this._getSelectedItem(),this.menuInstance.focus(null,p),this._setAria(p.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(p){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",p))},_position:function(){this.menuWrap.position(p.extend({of:this.button},this.options.position))},close:function(p){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",p))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(y,C){var T=this,D="";p.each(C,(function(C,$){$.optgroup!==D&&(p("<li>",{class:"ui-selectmenu-optgroup ui-menu-divider"+($.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:$.optgroup}).appendTo(y),D=$.optgroup),T._renderItemData(y,$)}))},_renderItemData:function(p,y){return this._renderItem(p,y).data("ui-selectmenu-item",y)},_renderItem:function(y,C){var T=p("<li>");return C.disabled&&T.addClass("ui-state-disabled"),this._setText(T,C.label),T.appendTo(y)},_setText:function(p,y){y?p.text(y):p.html("&#160;")},_move:function(p,y){var C,T,D=".ui-menu-item";this.isOpen?C=this.menuItems.eq(this.focusIndex):(C=this.menuItems.eq(this.element[0].selectedIndex),D+=":not(.ui-state-disabled)"),(T="first"===p||"last"===p?C["first"===p?"prevAll":"nextAll"](D).eq(-1):C[p+"All"](D).eq(0)).length&&this.menuInstance.focus(y,T)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(p){this[this.isOpen?"close":"open"](p)},_setSelection:function(){var p;this.range&&(window.getSelection?((p=window.getSelection()).removeAllRanges(),p.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(y){this.isOpen&&(p(y.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(y))}},_buttonEvents:{mousedown:function(){var p;window.getSelection?(p=window.getSelection()).rangeCount&&(this.range=p.getRangeAt(0)):this.range=document.selection.createRange()},click:function(p){this._setSelection(),this._toggle(p)},keydown:function(y){var C=!0;switch(y.keyCode){case p.ui.keyCode.TAB:case p.ui.keyCode.ESCAPE:this.close(y),C=!1;break;case p.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(y);break;case p.ui.keyCode.UP:y.altKey?this._toggle(y):this._move("prev",y);break;case p.ui.keyCode.DOWN:y.altKey?this._toggle(y):this._move("next",y);break;case p.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(y):this._toggle(y);break;case p.ui.keyCode.LEFT:this._move("prev",y);break;case p.ui.keyCode.RIGHT:this._move("next",y);break;case p.ui.keyCode.HOME:case p.ui.keyCode.PAGE_UP:this._move("first",y);break;case p.ui.keyCode.END:case p.ui.keyCode.PAGE_DOWN:this._move("last",y);break;default:this.menu.trigger(y),C=!1}C&&y.preventDefault()}},_selectFocusedItem:function(p){var y=this.menuItems.eq(this.focusIndex);y.hasClass("ui-state-disabled")||this._select(y.data("ui-selectmenu-item"),p)},_select:function(p,y){var C=this.element[0].selectedIndex;this.element[0].selectedIndex=p.index,this._setText(this.buttonText,p.label),this._setAria(p),this._trigger("select",y,{item:p}),p.index!==C&&this._trigger("change",y,{item:p}),this.close(y)},_setAria:function(p){var y=this.menuItems.eq(p.index).attr("id");this.button.attr({"aria-labelledby":y,"aria-activedescendant":y}),this.menu.attr("aria-activedescendant",y)},_setOption:function(p,y){"icons"===p&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(y.button),this._super(p,y),"appendTo"===p&&this.menuWrap.appendTo(this._appendTo()),"disabled"===p&&(this.menuInstance.option("disabled",y),this.button.toggleClass("ui-state-disabled",y).attr("aria-disabled",y),this.element.prop("disabled",y),y?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===p&&this._resizeButton()},_appendTo:function(){var y=this.options.appendTo;return y&&(y=y.jquery||y.nodeType?p(y):this.document.find(y).eq(0)),y&&y[0]||(y=this.element.closest(".ui-front")),y.length||(y=this.document[0].body),y},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var p=this.options.width;p||(p=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(p)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(y){var C=[];y.each((function(y,T){var D=p(T),$=D.parent("optgroup");C.push({element:D,index:y,value:D.val(),label:D.text(),optgroup:$.attr("label")||"",disabled:$.prop("disabled")||D.prop("disabled")})})),this.items=C},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),p.widget("ui.slider",p.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var y,C,T=this.options,D=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),$=[];for(C=T.values&&T.values.length||1,D.length>C&&(D.slice(C).remove(),D=D.slice(0,C)),y=D.length;C>y;y++)$.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=D.add(p($.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each((function(y){p(this).data("ui-slider-handle-index",y)}))},_createRange:function(){var y=this.options,C="";y.range?(!0===y.range&&(y.values?y.values.length&&2!==y.values.length?y.values=[y.values[0],y.values[0]]:p.isArray(y.values)&&(y.values=y.values.slice(0)):y.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=p("<div></div>").appendTo(this.element),C="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(C+("min"===y.range||"max"===y.range?" ui-slider-range-"+y.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(y){var C,T,D,$,P,I,A,E=this,O=this.options;return!O.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),C={x:y.pageX,y:y.pageY},T=this._normValueFromMouse(C),D=this._valueMax()-this._valueMin()+1,this.handles.each((function(y){var C=Math.abs(T-E.values(y));(D>C||D===C&&(y===E._lastChangedValue||E.values(y)===O.min))&&(D=C,$=p(this),P=y)})),!1!==this._start(y,P)&&(this._mouseSliding=!0,this._handleIndex=P,$.addClass("ui-state-active").focus(),I=$.offset(),A=!p(y.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=A?{left:0,top:0}:{left:y.pageX-I.left-$.width()/2,top:y.pageY-I.top-$.height()/2-(parseInt($.css("borderTopWidth"),10)||0)-(parseInt($.css("borderBottomWidth"),10)||0)+(parseInt($.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(y,P,T),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(p){var y={x:p.pageX,y:p.pageY},C=this._normValueFromMouse(y);return this._slide(p,this._handleIndex,C),!1},_mouseStop:function(p){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(p,this._handleIndex),this._change(p,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(p){var y,C,T,D,$;return"horizontal"===this.orientation?(y=this.elementSize.width,C=p.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(y=this.elementSize.height,C=p.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(T=C/y)>1&&(T=1),0>T&&(T=0),"vertical"===this.orientation&&(T=1-T),D=this._valueMax()-this._valueMin(),$=this._valueMin()+T*D,this._trimAlignValue($)},_start:function(p,y){var C={handle:this.handles[y],value:this.value()};return this.options.values&&this.options.values.length&&(C.value=this.values(y),C.values=this.values()),this._trigger("start",p,C)},_slide:function(p,y,C){var T,D,$;this.options.values&&this.options.values.length?(T=this.values(y?0:1),2===this.options.values.length&&!0===this.options.range&&(0===y&&C>T||1===y&&T>C)&&(C=T),C!==this.values(y)&&((D=this.values())[y]=C,$=this._trigger("slide",p,{handle:this.handles[y],value:C,values:D}),T=this.values(y?0:1),!1!==$&&this.values(y,C))):C!==this.value()&&(!1!==($=this._trigger("slide",p,{handle:this.handles[y],value:C}))&&this.value(C))},_stop:function(p,y){var C={handle:this.handles[y],value:this.value()};this.options.values&&this.options.values.length&&(C.value=this.values(y),C.values=this.values()),this._trigger("stop",p,C)},_change:function(p,y){if(!this._keySliding&&!this._mouseSliding){var C={handle:this.handles[y],value:this.value()};this.options.values&&this.options.values.length&&(C.value=this.values(y),C.values=this.values()),this._lastChangedValue=y,this._trigger("change",p,C)}},value:function(p){return arguments.length?(this.options.value=this._trimAlignValue(p),this._refreshValue(),void this._change(null,0)):this._value()},values:function(y,C){var T,D,$;if(arguments.length>1)return this.options.values[y]=this._trimAlignValue(C),this._refreshValue(),void this._change(null,y);if(!arguments.length)return this._values();if(!p.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(y):this.value();for(T=this.options.values,D=arguments[0],$=0;T.length>$;$+=1)T[$]=this._trimAlignValue(D[$]),this._change(null,$);this._refreshValue()},_setOption:function(y,C){var T,D=0;switch("range"===y&&!0===this.options.range&&("min"===C?(this.options.value=this._values(0),this.options.values=null):"max"===C&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),p.isArray(this.options.values)&&(D=this.options.values.length),"disabled"===y&&this.element.toggleClass("ui-state-disabled",!!C),this._super(y,C),y){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===C?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),T=0;D>T;T+=1)this._change(null,T);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var p=this.options.value;return this._trimAlignValue(p)},_values:function(p){var y,C,T;if(arguments.length)return y=this.options.values[p],this._trimAlignValue(y);if(this.options.values&&this.options.values.length){for(C=this.options.values.slice(),T=0;C.length>T;T+=1)C[T]=this._trimAlignValue(C[T]);return C}return[]},_trimAlignValue:function(p){if(this._valueMin()>=p)return this._valueMin();if(p>=this._valueMax())return this._valueMax();var y=this.options.step>0?this.options.step:1,C=(p-this._valueMin())%y,T=p-C;return 2*Math.abs(C)>=y&&(T+=C>0?y:-y),parseFloat(T.toFixed(5))},_calculateNewMax:function(){var p=this.options.max,y=this._valueMin(),C=this.options.step;p=Math.floor(+(p-y).toFixed(this._precision())/C)*C+y,this.max=parseFloat(p.toFixed(this._precision()))},_precision:function(){var p=this._precisionOf(this.options.step);return null!==this.options.min&&(p=Math.max(p,this._precisionOf(this.options.min))),p},_precisionOf:function(p){var y=""+p,C=y.indexOf(".");return-1===C?0:y.length-C-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var y,C,T,D,$,P=this.options.range,I=this.options,A=this,E=!this._animateOff&&I.animate,O={};this.options.values&&this.options.values.length?this.handles.each((function(T){C=(A.values(T)-A._valueMin())/(A._valueMax()-A._valueMin())*100,O["horizontal"===A.orientation?"left":"bottom"]=C+"%",p(this).stop(1,1)[E?"animate":"css"](O,I.animate),!0===A.options.range&&("horizontal"===A.orientation?(0===T&&A.range.stop(1,
71)[E?"animate":"css"]({left:C+"%"},I.animate),1===T&&A.range[E?"animate":"css"]({width:C-y+"%"},{queue:!1,duration:I.animate})):(0===T&&A.range.stop(1,1)[E?"animate":"css"]({bottom:C+"%"},I.animate),1===T&&A.range[E?"animate":"css"]({height:C-y+"%"},{queue:!1,duration:I.animate}))),y=C})):(T=this.value(),D=this._valueMin(),$=this._valueMax(),C=$!==D?(T-D)/($-D)*100:0,O["horizontal"===this.orientation?"left":"bottom"]=C+"%",this.handle.stop(1,1)[E?"animate":"css"](O,I.animate),"min"===P&&"horizontal"===this.orientation&&this.range.stop(1,1)[E?"animate":"css"]({width:C+"%"},I.animate),"max"===P&&"horizontal"===this.orientation&&this.range[E?"animate":"css"]({width:100-C+"%"},{queue:!1,duration:I.animate}),"min"===P&&"vertical"===this.orientation&&this.range.stop(1,1)[E?"animate":"css"]({height:C+"%"},I.animate),"max"===P&&"vertical"===this.orientation&&this.range[E?"animate":"css"]({height:100-C+"%"},{queue:!1,duration:I.animate}))},_handleEvents:{keydown:function(y){var C,T,D,$=p(y.target).data("ui-slider-handle-index");switch(y.keyCode){case p.ui.keyCode.HOME:case p.ui.keyCode.END:case p.ui.keyCode.PAGE_UP:case p.ui.keyCode.PAGE_DOWN:case p.ui.keyCode.UP:case p.ui.keyCode.RIGHT:case p.ui.keyCode.DOWN:case p.ui.keyCode.LEFT:if(y.preventDefault(),!this._keySliding&&(this._keySliding=!0,p(y.target).addClass("ui-state-active"),!1===this._start(y,$)))return}switch(D=this.options.step,C=T=this.options.values&&this.options.values.length?this.values($):this.value(),y.keyCode){case p.ui.keyCode.HOME:T=this._valueMin();break;case p.ui.keyCode.END:T=this._valueMax();break;case p.ui.keyCode.PAGE_UP:T=this._trimAlignValue(C+(this._valueMax()-this._valueMin())/this.numPages);break;case p.ui.keyCode.PAGE_DOWN:T=this._trimAlignValue(C-(this._valueMax()-this._valueMin())/this.numPages);break;case p.ui.keyCode.UP:case p.ui.keyCode.RIGHT:if(C===this._valueMax())return;T=this._trimAlignValue(C+D);break;case p.ui.keyCode.DOWN:case p.ui.keyCode.LEFT:if(C===this._valueMin())return;T=this._trimAlignValue(C-D)}this._slide(y,$,T)},keyup:function(y){var C=p(y.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(y,C),this._change(y,C),p(y.target).removeClass("ui-state-active"))}}}),p.widget("ui.sortable",p.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(p,y,C){return p>=y&&y+C>p},_isFloating:function(p){return/left|right/.test(p.css("float"))||/inline|table-cell/.test(p.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(p,y){this._super(p,y),"handle"===p&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),p.each(this.items,(function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")}))},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var p=this.items.length-1;p>=0;p--)this.items[p].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(y,C){var T=null,D=!1,$=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(y),p(y.target).parents().each((function(){return p.data(this,$.widgetName+"-item")===$?(T=p(this),!1):void 0})),p.data(y.target,$.widgetName+"-item")===$&&(T=p(y.target)),!!T&&(!(this.options.handle&&!C&&(p(this.options.handle,T).find("*").addBack().each((function(){this===y.target&&(D=!0)}
vendor: 3,929 bytes, line 7
7)),!D))&&(this.currentItem=T,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(y,C,T){var D,$,P=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(y),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},p.extend(this.offset,{click:{left:y.pageX-this.offset.left,top:y.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(y),this.originalPageX=y.pageX,this.originalPageY=y.pageY,P.cursorAt&&this._adjustOffsetFromHelper(P.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),P.containment&&this._setContainment(),P.cursor&&"auto"!==P.cursor&&($=this.document.find("body"),this.storedCursor=$.css("cursor"),$.css("cursor",P.cursor),this.storedStylesheet=p("<style>*{ cursor: "+P.cursor+" !important; }</style>").appendTo($)),P.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",P.opacity)),P.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",P.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",y,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!T)for(D=this.containers.length-1;D>=0;D--)this.containers[D]._trigger("activate",y,this._uiHash(this));return p.ui.ddmanager&&(p.ui.ddmanager.current=this),p.ui.ddmanager&&!P.dropBehaviour&&p.ui.ddmanager.prepareOffsets(this,y),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(y),!0},_mouseDrag:function(y){var C,T,D,$,P=this.options,I=!1;for(this.position=this._generatePosition(y),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-y.pageY<P.scrollSensitivity?this.scrollParent[0].scrollTop=I=this.scrollParent[0].scrollTop+P.scrollSpeed:y.pageY-this.overflowOffset.top<P.scrollSensitivity&&(this.scrollParent[0].scrollTop=I=this.scrollParent[0].scrollTop-P.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-y.pageX<P.scrollSensitivity?this.scrollParent[0].scrollLeft=I=this.scrollParent[0].scrollLeft+P.scrollSpeed:y.pageX-this.overflowOffset.left<P.scrollSensitivity&&(this.scrollParent[0].scrollLeft=I=this.scrollParent[0].scrollLeft-P.scrollSpeed)):(y.pageY-this.document.scrollTop()<P.scrollSensitivity?I=this.document.scrollTop(this.document.scrollTop()-P.scrollSpeed):this.window.height()-(y.pageY-this.document.scrollTop())<P.scrollSensitivity&&(I=this.document.scrollTop(this.document.scrollTop()+P.scrollSpeed)),y.pageX-this.document.scrollLeft()<P.scrollSensitivity?I=this.document.scrollLeft(this.document.scrollLeft()-P.scrollSpeed):this.window.width()-(y.pageX-this.document.scrollLeft())<P.scrollSensitivity&&(I=this.document.scrollLeft(this.document.scrollLeft()+P.scrollSpeed))),!1!==I&&p.ui.ddmanager&&!P.dropBehaviour&&p.ui.ddmanager.prepareOffsets(this,y)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),C=this.items.length-1;C>=0;C--)if(D=(T=this.items[C]).item[0],($=this._intersectsWithPointer(T))&&T.
vendor: 4,384 bytes, line 7
7instance===this.currentContainer&&D!==this.currentItem[0]&&this.placeholder[1===$?"next":"prev"]()[0]!==D&&!p.contains(this.placeholder[0],D)&&("semi-dynamic"!==this.options.type||!p.contains(this.element[0],D))){if(this.direction=1===$?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(T))break;this._rearrange(y,T),this._trigger("change",y,this._uiHash());break}return this._contactContainers(y),p.ui.ddmanager&&p.ui.ddmanager.drag(this,y),this._trigger("sort",y,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(y,C){if(y){if(p.ui.ddmanager&&!this.options.dropBehaviour&&p.ui.ddmanager.drop(this,y),this.options.revert){var T=this,D=this.placeholder.offset(),$=this.options.axis,P={};$&&"x"!==$||(P.left=D.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),$&&"y"!==$||(P.top=D.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,p(this.helper).animate(P,parseInt(this.options.revert,10)||500,(function(){T._clear(y)}))}else this._clear(y,C);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var y=this.containers.length-1;y>=0;y--)this.containers[y]._trigger("deactivate",null,this._uiHash(this)),this.containers[y].containerCache.over&&(this.containers[y]._trigger("out",null,this._uiHash(this)),this.containers[y].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),p.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?p(this.domPosition.prev).after(this.currentItem):p(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(y){var C=this._getItemsAsjQuery(y&&y.connected),T=[];return y=y||{},p(C).each((function(){var C=(p(y.item||this).attr(y.attribute||"id")||"").match(y.expression||/(.+)[\-=_](.+)/);C&&T.push((y.key||C[1]+"[]")+"="+(y.key&&y.expression?C[1]:C[2]))})),!T.length&&y.key&&T.push(y.key+"="),T.join("&")},toArray:function(y){var C=this._getItemsAsjQuery(y&&y.connected),T=[];return y=y||{},C.each((function(){T.push(p(y.item||this).attr(y.attribute||"id")||"")})),T},_intersectsWith:function(p){var y=this.positionAbs.left,C=y+this.helperProportions.width,T=this.positionAbs.top,D=T+this.helperProportions.height,$=p.left,P=$+p.width,I=p.top,A=I+p.height,E=this.offset.click.top,O=this.offset.click.left,N="x"===this.options.axis||T+E>I&&A>T+E,j="y"===this.options.axis||y+O>$&&P>y+O,q=N&&j;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>p[this.floating?"width":"height"]?q:y+this.helperProportions.width/2>$&&P>C-this.helperProportions.width/2&&T+this.helperProportions.height/2>I&&A>D-this.helperProportions.height/2},_intersectsWithPointer:function(p){var y="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,p.top,p.height),C="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,p.left,p.width),T=y&&C,D=this._getDragVerticalDirection(),$=this._getDragHorizontalDirection();return!!T&&(this.floating?$&&"right"===$||"down"===D?2:1:D&&("down"===D?2:1))},_intersectsWithSides:function(p){var y=this._isOverAxis(this.positionAbs.top+this.offset.click.top,p.top+p.height/2,p.height),C=this._isOverAxis(this.positionAbs.left+this.offset.click.left,p.left+p.width/2,p.width),T=this._getDragVerticalDirection(),D=this._getDragHorizontalDirection();return this.floating&&D?"right"===D&&C||"left"===D&&!C:T&&("down"===T&&y||"up"===T&&!y)},_getDragVerticalDirection:function(){var p=this.positionAbs.top-this.lastPositionAbs.top;return 0!==p&&(p>0?"down":"up")},_getDragHorizontalDirection:function(){var p=this.positionAbs.left-this.lastPositionAbs.left;return 0!==p&&(p>0?"right":"left")},refresh:function(p){return this._refreshItems(p),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var p=this.options;
7return p.connectWith.constructor===String?[p.connectWith]:p.connectWith},_getItemsAsjQuery:function(y){function i(){P.push(this)}var C,T,D,$,P=[],I=[],A=this._connectWith();if(A&&y)for(C=A.length-1;C>=0;C--)for(T=(D=p(A[C],this.document[0])).length-1;T>=0;T--)($=p.data(D[T],this.widgetFullName))&&$!==this&&!$.options.disabled&&I.push([p.isFunction($.options.items)?$.options.items.call($.element):p($.options.items,$.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),$]);for(I.push([p.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):p(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),C=I.length-1;C>=0;C--)I[C][0].each(i);return p(P)},_removeCurrentsFromItems:function(){var y=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=p.grep(this.items,(function(p){for(var C=0;y.length>C;C++)if(y[C]===p.item[0])return!1;return!0}))},_refreshItems:function(y){this.items=[],this.containers=[this];var C,T,D,$,P,I,A,E,O=this.items,N=[[p.isFunction(this.options.items)?this.options.items.call(this.element[0],y,{item:this.currentItem}):p(this.options.items,this.element),this]],j=this._connectWith();if(j&&this.ready)for(C=j.length-1;C>=0;C--)for(T=(D=p(j[C],this.document[0])).length-1;T>=0;T--)($=p.data(D[T],this.widgetFullName))&&$!==this&&!$.options.disabled&&(N.push([p.isFunction($.options.items)?$.options.items.call($.element[0],y,{item:this.currentItem}):p($.options.items,$.element),$]),this.containers.push($));for(C=N.length-1;C>=0;C--)for(P=N[C][1],T=0,E=(I=N[C][0]).length;E>T;T++)(A=p(I[T])).data(this.widgetName+"-item",P),O.push({item:A,instance:P,width:0,height:0,left:0,top:0})},refreshPositions:function(y){var C,T,D,$;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),C=this.items.length-1;C>=0;C--)(T=this.items[C]).instance!==this.currentContainer&&this.currentContainer&&T.item[0]!==this.currentItem[0]||(D=this.options.toleranceElement?p(this.options.toleranceElement,T.item):T.item,y||(T.width=D.outerWidth(),T.height=D.outerHeight()),$=D.offset(),T.left=$.left,T.top=$.top);
vendor: 6,625 bytes, line 7
7if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(C=this.containers.length-1;C>=0;C--)$=this.containers[C].element.offset(),this.containers[C].containerCache.left=$.left,this.containers[C].containerCache.top=$.top,this.containers[C].containerCache.width=this.containers[C].element.outerWidth(),this.containers[C].containerCache.height=this.containers[C].element.outerHeight();return this},_createPlaceholder:function(y){var C,T=(y=y||this).options;T.placeholder&&T.placeholder.constructor!==String||(C=T.placeholder,T.placeholder={element:function(){var T=y.currentItem[0].nodeName.toLowerCase(),D=p("<"+T+">",y.document[0]).addClass(C||y.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===T?y._createTrPlaceholder(y.currentItem.find("tr").eq(0),p("<tr>",y.document[0]).appendTo(D)):"tr"===T?y._createTrPlaceholder(y.currentItem,D):"img"===T&&D.attr("src",y.currentItem.attr("src")),C||D.css("visibility","hidden"),D},update:function(p,D){(!C||T.forcePlaceholderSize)&&(D.height()||D.height(y.currentItem.innerHeight()-parseInt(y.currentItem.css("paddingTop")||0,10)-parseInt(y.currentItem.css("paddingBottom")||0,10)),D.width()||D.width(y.currentItem.innerWidth()-parseInt(y.currentItem.css("paddingLeft")||0,10)-parseInt(y.currentItem.css("paddingRight")||0,10)))}}),y.placeholder=p(T.placeholder.element.call(y.element,y.currentItem)),y.currentItem.after(y.placeholder),T.placeholder.update(y,y.placeholder)},_createTrPlaceholder:function(y,C){var T=this;y.children().each((function(){p("<td>&#160;</td>",T.document[0]).attr("colspan",p(this).attr("colspan")||1).appendTo(C)}))},_contactContainers:function(y){var C,T,D,$,P,I,A,E,O,N,j=null,q=null;for(C=this.containers.length-1;C>=0;C--)if(!p.contains(this.currentItem[0],this.containers[C].element[0]))if(this._intersectsWith(this.containers[C].containerCache)){if(j&&p.contains(this.containers[C].element[0],j.element[0]))continue;j=this.containers[C],q=C}else this.containers[C].containerCache.over&&(this.containers[C]._trigger("out",y,this._uiHash(this)),this.containers[C].containerCache.over=0);if(j)if(1===this.containers.length)this.containers[q].containerCache.over||(this.containers[q]._trigger("over",y,this._uiHash(this)),this.containers[q].containerCache.over=1);else{for(D=1e4,$=null,P=(O=j.floating||this._isFloating(this.currentItem))?"left":"top",I=O?"width":"height",N=O?"clientX":"clientY",T=this.items.length-1;T>=0;T--)p.contains(this.containers[q].element[0],this.items[T].item[0])&&this.items[T].item[0]!==this.currentItem[0]&&(A=this.items[T].item.offset()[P],E=!1,y[N]-A>this.items[T][I]/2&&(E=!0),D>Math.abs(y[N]-A)&&(D=Math.abs(y[N]-A),$=this.items[T],this.direction=E?"up":"down"));if(!$&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[q])return void(this.currentContainer.containerCache.over||(this.containers[q]._trigger("over",y,this._uiHash()),this.currentContainer.containerCache.over=1));$?this._rearrange(y,$,null,!0):this._rearrange(y,null,this.containers[q].element,!0),this._trigger("change",y,this._uiHash()),this.containers[q]._trigger("change",y,this._uiHash(this)),this.currentContainer=this.containers[q],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[q]._trigger("over",y,this._uiHash(this)),this.containers[q].containerCache.over=1}},_createHelper:function(y){var C=this.options,T=p.isFunction(C.helper)?p(C.helper.apply(this.element[0],[y,this.currentItem])):"clone"===C.helper?this.currentItem.clone():this.currentItem;return T.parents("body").length||p("parent"!==C.appendTo?C.appendTo:this.currentItem[0].parentNode)[0].appendChild(T[0]),T[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!T[0].style.width||C.forceHelperSize)&&T.width(this.currentItem.width()),(!T[0].style.height||C.forceHelperSize)&&T.height(this.currentItem.height()),T},_adjustOffsetFromHelper:function(y){"string"==typeof y&&(y=y.split(" ")),p.isArray(y)&&(y={left:+y[0],top:+y[1]||0}),"left"in y&&(this.offset.click.left=y.left+this.margins.left),"right"in y&&(this.offset.click.left=this.helperProportions.width-y.right+this.margins.left),"top"in y&&(this.offset.click.top=y.top+this.margins.top),"bottom"in y&&(this.offset.click.top=this.helperProportions.height-y.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var y=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&p.contains(this.scrollParent[0],this.offsetParent[0])&&(y.left+=this.scrollParent.scrollLeft(),y.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&p.ui.ie)&&(y={top:0,left:0}),{top:y.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:y.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var p=this.currentItem.position();return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var y,C,T,D=this.options;"parent"===D.containment&&(D.containment=this.helper[0].parentNode),("document"===D.containment||"window"===D.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===D.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===D.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(D.containment)||(y=p(D.containment)[0],C=p(D.containment).offset(),T="hidden"!==p(y).css("overflow"),this.containment=[C.left+(parseInt(p(y).css("borderLeftWidth"),10)||0)+(parseInt(p(y).css("paddingLeft"),10)||0)-this.margins.left,C.top+(parseInt(p(y).css("borderTopWidth"),
vendor: 3,209 bytes, line 7
710)||0)+(parseInt(p(y).css("paddingTop"),10)||0)-this.margins.top,C.left+(T?Math.max(y.scrollWidth,y.offsetWidth):y.offsetWidth)-(parseInt(p(y).css("borderLeftWidth"),10)||0)-(parseInt(p(y).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,C.top+(T?Math.max(y.scrollHeight,y.offsetHeight):y.offsetHeight)-(parseInt(p(y).css("borderTopWidth"),10)||0)-(parseInt(p(y).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(y,C){C||(C=this.position);var T="absolute"===y?1:-1,D="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&p.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,$=/(html|body)/i.test(D[0].tagName);return{top:C.top+this.offset.relative.top*T+this.offset.parent.top*T-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():$?0:D.scrollTop())*T,left:C.left+this.offset.relative.left*T+this.offset.parent.left*T-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():$?0:D.scrollLeft())*T}},_generatePosition:function(y){var C,T,D=this.options,$=y.pageX,P=y.pageY,I="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&p.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,A=/(html|body)/i.test(I[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(y.pageX-this.offset.click.left<this.containment[0]&&($=this.containment[0]+this.offset.click.left),y.pageY-this.offset.click.top<this.containment[1]&&(P=this.containment[1]+this.offset.click.top),y.pageX-this.offset.click.left>this.containment[2]&&($=this.containment[2]+this.offset.click.left),y.pageY-this.offset.click.top>this.containment[3]&&(P=this.containment[3]+this.offset.click.top)),D.grid&&(C=this.originalPageY+Math.round((P-this.originalPageY)/D.grid[1])*D.grid[1],P=this.containment?C-this.offset.click.top>=this.containment[1]&&C-this.offset.click.top<=this.containment[3]?C:C-this.offset.click.top>=this.containment[1]?C-D.grid[1]:C+D.grid[1]:C,T=this.originalPageX+Math.round(($-this.originalPageX)/D.grid[0])*D.grid[0],$=this.containment?T-this.offset.click.left>=this.containment[0]&&T-this.offset.click.left<=this.containment[2]?T:T-this.offset.click.left>=this.containment[0]?T-D.grid[0]:T+D.grid[0]:T)),{top:P-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():A?0:I.scrollTop()),left:$-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():A?0:I.scrollLeft())}},_rearrange:function(p,y,C,T){C?C[0].appendChild(this.placeholder[0]):y.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?y.item[0]:y.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var D=this.counter;this._delay((function(){D===this.counter&&this.refreshPositions(!T)}))},_clear:function(p,y){function i(p,y,C){return function(T){C._trigger(p,T,y._uiHash(y))}}this.reverting=!1;var C,T=[];
7if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(C in this._storedCSS)("auto"===this._storedCSS[C]||"static"===this._storedCSS[C])&&(this._storedCSS[C]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!y&&T.push((function(p){this._trigger("receive",p,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||y||T.push((function(p){this._trigger("update",p,this._uiHash())})),this!==this.currentContainer&&(y||(T.push((function(p){this._trigger("remove",p,this._uiHash())})),T.push(function(p){return function(y){p._trigger("receive",y,this._uiHash(this))}}.call(this,this.currentContainer)),T.push(function(p){return function(y){p._trigger("update",y,this._uiHash(this))}}.call(this,this.currentContainer)))),C=this.containers.length-1;C>=0;C--)y||T.push(i("deactivate",this,this.containers[C])),this.containers[C].containerCache.over&&(T.push(i("out",this,this.containers[C])),this.containers[C].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,y||this._trigger("beforeStop",p,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!y){for(C=0;T.length>C;C++)T[C].call(this,p);this._trigger("stop",p,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===p.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(y){var C=y||this;return{helper:C.helper,placeholder:C.placeholder||p([]),position:C.position,originalPosition:C.originalPosition,offset:C.positionAbs,item:C.currentItem,sender:y?y.element:null}}}),p.widget("ui.spinner",{version:"1.11.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var y={},C=this.element;return p.each(["min","max","step"],(function(p,T){var D=C.attr(T);void 0!==D&&D.length&&(y[T]=D)})),y},_events:{keydown:function(p){this._start(p)&&this._keydown(p)&&p.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(p){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",p)))},mousewheel:function(p,y){if(y){if(!this.spinning&&!this._start(p))return!1;this._spin((y>0?1:-1)*this.options.step,p),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(p)}),100),p.preventDefault()}},"mousedown .ui-spinner-button":function(y){function i(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=C,this._delay((function(){this.previous=C})))}var C;C=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),y.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(y)&&this._repeat(null,p(y.currentTarget).hasClass("ui-spinner-up")?1:-1,y)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(y){return p(y.currentTarget).hasClass("ui-state-active")?!1!==this._start(y)&&void this._repeat(null,p(y.currentTarget).hasClass("ui-spinner-up")?1:-1,y):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var p=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=p.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*p.height())&&p.height()>0&&p.height(p.height()),this.options.disabled&&this.disable()},_keydown:function(y){var C=this.options,T=p.ui.keyCode;switch(y.keyCode){case T.UP:return this._repeat(null,1,y),!0;case T.DOWN:return this._repeat(null,-1,y),!0;case T.PAGE_UP:return this._repeat(null,C.page,y),!0;case T.PAGE_DOWN:return this._repeat(null,-C.page,y),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(p){return!(!this.spinning&&!1===this._trigger("start",p))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(p,y,C){p=p||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,y,C)}),p),this._spin(y*this.options.step,C)},_spin:function(p,y){var C=this.value()||0;this.counter||(this.counter=1),C=this._adjustValue(C+p*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",y,{value:C})||(this._value(C),this.counter++)},_increment:function(y){var C=this.options.incremental;return C?p.isFunction(C)?C(y):Math.floor(y*y*y/5e4-y*y/500+17*y/200+1):1},_precision:function(){var p=this._precisionOf(this.options.step);return null!==this.options.min&&(p=Math.max(p,this._precisionOf(this.options.min))),p},_precisionOf:function(p){var y=""+p,C=y.indexOf(".");return-1===C?0:y.length-C-1},_adjustValue:function(p){var y,C,T=this.options;return C=p-(y=null!==T.min?T.min:0),p=y+(C=Math.round(C/T.step)*T.step),p=parseFloat(p.toFixed(this._precision())),null!==T.max&&p>T.max?T.max:null!==T.min&&T.min>p?T.min:p},_stop:function(p){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",p))}
7,_setOption:function(p,y){if("culture"===p||"numberFormat"===p){var C=this._parse(this.element.val());return this.options[p]=y,void this.element.val(this._format(C))}("max"===p||"min"===p||"step"===p)&&"string"==typeof y&&(y=this._parse(y)),"icons"===p&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(y.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(y.down)),this._super(p,y),"disabled"===p&&(this.widget().toggleClass("ui-state-disabled",!!y),this.element.prop("disabled",!!y),this.buttons.button(y?"disable":"enable"))},_setOptions:h((function(p){this._super(p)})),_parse:function(p){return"string"==typeof p&&""!==p&&(p=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(p,10,this.options.culture):+p),""===p||isNaN(p)?null:p},_format:function(p){return""===p?"":window.Globalize&&this.options.numberFormat?Globalize.format(p,this.options.numberFormat,this.options.culture):p},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var p=this.value();return null!==p&&p===this._adjustValue(p)},_value:function(p,y){var C;""!==p&&(null!==(C=this._parse(p))&&(y||(C=this._adjustValue(C)),p=this._format(C))),this.element.val(p),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:h((function(p){this._stepUp(p)})),_stepUp:function(p){this._start()&&(this._spin((p||1)*this.options.step),this._stop())},stepDown:h((function(p){this._stepDown(p)})),_stepDown:function(p){this._start()&&(this._spin((p||1)*-this.options.step),this._stop())},pageUp:h((function(p){this._stepUp((p||1)*this.options.page)})),pageDown:h((function(p){this._stepDown((p||1)*this.options.page)})),value:function(p){return arguments.length?void h(this._value).call(this,p):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),p.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var p=/#.*$/;return function(y){var C,T;C=(y=y.cloneNode(!1)).href.replace(p,""),T=location.href.replace(p,"");try{C=decodeURIComponent(C)}catch(p){}try{T=decodeURIComponent(T)}catch(p){}return y.hash.length>1&&C===T}}(),_create:function(){var y=this,C=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",C.collapsible),this._processTabs(),C.active=this._initialActive(),p.isArray(C.disabled)&&(C.disabled=p.unique(C.disabled.concat(p.map(this.tabs.filter(".ui-state-disabled"),(function(p){return y.tabs.index(p)})))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(C.active):p(),this._refresh(),this.active.length&&this.load(C.active)},_initialActive:function(){var y=this.options.active,C=this.options.collapsible,T=location.hash.substring(1);return null===y&&(T&&this.tabs.each((function(C,D){return p(D).attr("aria-controls")===T?(y=C,!1):void 0})),null===y&&(y=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===y||-1===y)&&(y=!!this.tabs.length&&0)),!1!==y&&(-1===(y=this.tabs.index(this.tabs.eq(y)))&&(y=!C&&0)),!C&&!1===y&&this.anchors.length&&(y=0),y},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):p()}},_tabKeydown:function(y){var C=p(this.document[0].activeElement).closest("li"),T=this.tabs.index(C),D=!0;if(!this._handlePageNav(y)){switch(y.keyCode){case p.ui.keyCode.RIGHT:case p.ui.keyCode.DOWN:T++;break;case p.ui.keyCode.UP:case p.ui.keyCode.LEFT:D=!1,T--;break;case p.ui.keyCode.END:T=this.anchors.length-1;break;case p.ui.keyCode.HOME:T=0;break;case p.ui.keyCode.SPACE:return y.preventDefault(),clearTimeout(this.activating),void this._activate(T);case p.ui.keyCode.ENTER:return y.preventDefault(),clearTimeout(this.activating),void this._activate(T!==this.options.active&&T);default:return}y.preventDefault(),clearTimeout(this.activating),T=this._focusNextTab(T,D),y.ctrlKey||y.metaKey||(C.attr("aria-selected","false"),this.tabs.eq(T).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",T)}),this.delay))}},_panelKeydown:function(y){this._handlePageNav(y)||y.ctrlKey&&y.keyCode===p.ui.keyCode.UP&&(y.preventDefault(),this.active.focus())},_handlePageNav:function(y){return y.altKey&&y.keyCode===p.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):y.altKey&&y.keyCode===p.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(y,C){for(var T=this.tabs.length-1;-1!==p.inArray((y>T&&(y=0),0>y&&(y=T),y),this.options.disabled);)y=C?y+1:y-1;return y},_focusNextTab:function(p,y){return p=this._findNextTab(p,y),this.tabs.eq(p).focus(),p},_setOption:function(p,y){return"active"===p?void this._activate(y):"disabled"===p?void this._setupDisabled(y):(this._super(p,y),"collapsible"===p&&(this.element.toggleClass("ui-tabs-collapsible",y),y||!1!==this.options.active||this._activate(0)),"event"===p&&this._setupEvents(y),void("heightStyle"===p&&this._setupHeightStyle(y)))},_sanitizeSelector:function(p){return p?p.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var y=this.options,C=this.tablist.children(":has(a[href])");y.disabled=p.map(C.filter(".ui-state-disabled"),(function(p){return C.index(p)})),this._processTabs(),!1!==y.active&&this.anchors.length?this.active.length&&!p.contains(this.tablist[0],this.active[0])?this.tabs.length===y.disabled.length?(y.active=!1,this.active=p()):this._activate(this._findNextTab(Math.max(0,y.active-1),!1)):y.active=this.tabs.index(this.active):(y.active=!1,this.active=p()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var y=this,C=this.tabs,T=this.anchors,D=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,(function(y){p(this).is(".ui-state-disabled")&&y.preventDefault()})).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,(function(){p(this).closest("li").is(".ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map((function(){return p("a",this)[0]})).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=p(),this.anchors.each((function(C,T){var D,$,P,I=p(T).uniqueId().attr("id"),A=p(T).closest("li"),E=A.attr("aria-controls");y._isLocal(T)?(P=(D=T.hash).substring(1),$=y.element.find(y._sanitizeSelector(D))):(D="#"+(P=A.attr("aria-controls")||p({}).uniqueId()[0].id),($=y.element.find(D)).length||($=y._createPanel(P)).insertAfter(y.panels[C-1]||y.tablist),$.attr("aria-live","polite")),$.length&&(y.panels=y.panels.add($)),E&&A.data("ui-tabs-aria-controls",E),A.attr({"aria-controls":P,"aria-labelledby":I}),$.attr("aria-labelledby",I)})),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),C&&(this._off(C.not(this.tabs)
vendor: 9,663 bytes, line 7
7),this._off(T.not(this.anchors)),this._off(D.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(y){return p("<div>").attr("id",y).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(y){p.isArray(y)&&(y.length?y.length===this.anchors.length&&(y=!0):y=!1);for(var C,T=0;C=this.tabs[T];T++)!0===y||-1!==p.inArray(T,y)?p(C).addClass("ui-state-disabled").attr("aria-disabled","true"):p(C).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=y},_setupEvents:function(y){var C={};y&&p.each(y.split(" "),(function(p,y){C[y]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(p){p.preventDefault()}}),this._on(this.anchors,C),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(y){var C,T=this.element.parent();"fill"===y?(C=T.height(),C-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var y=p(this),T=y.css("position");"absolute"!==T&&"fixed"!==T&&(C-=y.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){C-=p(this).outerHeight(!0)})),this.panels.each((function(){p(this).height(Math.max(0,C-p(this).innerHeight()+p(this).height()))})).css("overflow","auto")):"auto"===y&&(C=0,this.panels.each((function(){C=Math.max(C,p(this).height("").height())})).height(C))},_eventHandler:function(y){var C=this.options,T=this.active,D=p(y.currentTarget).closest("li"),$=D[0]===T[0],P=$&&C.collapsible,I=P?p():this._getPanelForTab(D),A=T.length?this._getPanelForTab(T):p(),E={oldTab:T,oldPanel:A,newTab:P?p():D,newPanel:I};y.preventDefault(),D.hasClass("ui-state-disabled")||D.hasClass("ui-tabs-loading")||this.running||$&&!C.collapsible||!1===this._trigger("beforeActivate",y,E)||(C.active=!P&&this.tabs.index(D),this.active=$?p():D,this.xhr&&this.xhr.abort(),A.length||I.length||p.error("jQuery UI Tabs: Mismatching fragment identifier."),I.length&&this.load(this.tabs.index(D),y),this._toggle(y,E))},_toggle:function(y,C){function s(){T.running=!1,T._trigger("activate",y,C)}function n(){C.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),D.length&&T.options.show?T._show(D,T.options.show,s):(D.show(),s())}var T=this,D=C.newPanel,$=C.oldPanel;this.running=!0,$.length&&this.options.hide?this._hide($,this.options.hide,(function(){C.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()})):(C.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),$.hide(),n()),$.attr("aria-hidden","true"),C.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),D.length&&$.length?C.oldTab.attr("tabIndex",-1):D.length&&this.tabs.filter((function(){return 0===p(this).attr("tabIndex")})).attr("tabIndex",-1),D.attr("aria-hidden","false"),C.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(y){var C,T=this._findActive(y);T[0]!==this.active[0]&&(T.length||(T=this.active),C=T.find(".ui-tabs-anchor")[0],this._eventHandler({target:C,currentTarget:C,preventDefault:p.noop}))},_findActive:function(y){return!1===y?p():this.tabs.eq(y)},_getIndex:function(p){return"string"==typeof p&&(p=this.anchors.index(this.anchors.filter("[href$='"+p+"']"))),p},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each((function(){p.data(this,"ui-tabs-destroy")?p(this).remove():p(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")})),this.tabs.each((function(){var y=p(this),C=y.data("ui-tabs-aria-controls");C?y.attr("aria-controls",C).removeData("ui-tabs-aria-controls"):y.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(y){var C=this.options.disabled;!1!==C&&(void 0===y?C=!1:(y=this._getIndex(y),C=p.isArray(C)?p.map(C,(function(p){return p!==y?p:null})):p.map(this.tabs,(function(p,C){return C!==y?C:null}))),this._setupDisabled(C))},disable:function(y){var C=this.options.disabled;if(!0!==C){if(void 0===y)C=!0;else{if(y=this._getIndex(y),-1!==p.inArray(y,C))return;C=p.isArray(C)?p.merge([y],C).sort():[y]}this._setupDisabled(C)}},load:function(y,C){y=this._getIndex(y);var T=this,D=this.tabs.eq(y),$=D.find(".ui-tabs-anchor"),P=this._getPanelForTab(D),I={tab:D,panel:P},h=function(p,y){"abort"===y&&T.panels.stop(!1,!0),D.removeClass("ui-tabs-loading"),P.removeAttr("aria-busy"),p===T.xhr&&delete T.xhr};this._isLocal($[0])||(this.xhr=p.ajax(this._ajaxSettings($,C,I)),this.xhr&&"canceled"!==this.xhr.statusText&&(D.addClass("ui-tabs-loading"),P.attr("aria-busy","true"),this.xhr.done((function(p,y,D){setTimeout((function(){P.html(p),T._trigger("load",C,I),h(D,y)}),1)})).fail((function(p,y){setTimeout((function(){h(p,y)}),1)}))))},_ajaxSettings:function(y,C,T){var D=this;return{url:y.attr("href"),beforeSend:function(y,$){return D._trigger("beforeLoad",C,p.extend({jqXHR:y,ajaxSettings:$},T))}}},_getPanelForTab:function(y){var C=p(y).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+C))}}),p.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var y=p(this).attr("title")||"";return p("<a>").text(y).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(y,C){var T=(y.attr("aria-describedby")||"").split(/\s+/);T.push(C),y.data("ui-tooltip-id",C).attr("aria-describedby",p.trim(T.join(" ")))},_removeDescribedBy:function(y){var C=y.data("ui-tooltip-id"),T=(y.attr("aria-describedby")||"").split(/\s+/),D=p.inArray(C,T);-1!==D&&T.splice(D,1),y.removeData("ui-tooltip-id"),(T=p.trim(T.join(" ")))?y.attr("aria-describedby",T):y.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=p("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(y,C){var T=this;return"disabled"===y?(this[C?"_disable":"_enable"](),void(this.options[y]=C)):(this._super(y,C),void("content"===y&&p.each(this.tooltips,(function(p,y){T._updateContent(y.element)}))))},_disable:function(){var y=this;p.each(this.tooltips,(function(C,T){var D=p.Event("blur");D.target=D.currentTarget=T.element[0],y.close(D,!0)})),this.element.find(this.options.items).addBack().each((function(){var y=p(this);y.is("[title]")&&y.data("ui-tooltip-title",y.attr("title")).removeAttr("title")}))},_enable:function(){this.element.find(this.options.items).addBack().each((function(){var y=p(this);y.data("ui-tooltip-title")&&y.attr("title",y.data("ui-tooltip-title"))}))},open:function(y){var C=this,T=p(y?y.target:this.element).closest(this.options.items);T.length&&!T.data("ui-tooltip-id")&&(T.attr("title")&&T.data("ui-tooltip-title",T.attr("title")),T.data("ui-tooltip-open",!0),y&&"mouseover"===y.type&&T.parents().each((function(){var y,T=p(this);T.data("ui-tooltip-open")&&((y=p.Event("blur")).target=y.currentTarget=this,C.close(y,!0)),T.attr("title")&&(T.uniqueId(),C.parents[this.id]={element:this,title:T.attr("title")},T.attr("title",""))})),this._registerCloseHandlers(y,T),this._updateContent(T,y))},_updateContent:function(p,y){var C,T=this.options.content,D=this,$=y?y.type:null;return"string"==typeof T?this._open(y,p,T):void((C=T.call(p[0],(function(C){D._delay((function(){p.data("ui-tooltip-open")&&(y&&(y.type=$),this._open(y,p,C))}))})))&&this._open(y,p,C))},_open:function(y,C,T){function n(p){A.of=p,$.is(":hidden")||$.position(A)}var D,$,P,I,A=p.extend({},this.options.position);if(T){if(D=this._find(C))return void D.tooltip.find(".ui-tooltip-content").html(T);C.is("[title]")&&(y&&"mouseover"===y.type?C.attr("title",""):C.removeAttr("title")),D=this._tooltip(C),$=D.tooltip,this._addDescribedBy(C,$.attr("id")),$.find(".ui-tooltip-content").html(T),this.liveRegion.children().hide(),T.clone?(I=T.clone()).removeAttr("id").find("[id]").removeAttr("id"):I=T,p("<div>").html(I).appendTo(this.liveRegion),this.options.track&&y&&/^mouse/.test(y.type)?(this._on(this.document,{mousemove:n}),n(y)):$.position(p.extend({of:C},this.options.position)),$.hide(),this._show($,this.options.show),this.options.show&&this.options.show.delay&&(P=this.delayedShow=setInterval((function(){$.is(":visible")&&(n(A.of),clearInterval(P))}),p.fx.interval)),this._trigger("open",y,{tooltip:$})}},_registerCloseHandlers:function(y,C){var T={keyup:function(y){if(y.keyCode===p.ui.keyCode.ESCAPE){var T=p.Event(y);T.currentTarget=C[0],this.close(T,!0)}}};C[0]!==this.element[0]&&(T.remove=function(){this._removeTooltip(this._find(C).tooltip)}),y&&"mouseover"!==y.type||(T.mouseleave="close"),y&&"focusin"!==y.type||(T.focu
7sout="close"),this._on(!0,C,T)},close:function(y){var C,T=this,D=p(y?y.currentTarget:this.element),$=this._find(D);return $?(C=$.tooltip,void($.closing||(clearInterval(this.delayedShow),D.data("ui-tooltip-title")&&!D.attr("title")&&D.attr("title",D.data("ui-tooltip-title")),this._removeDescribedBy(D),$.hiding=!0,C.stop(!0),this._hide(C,this.options.hide,(function(){T._removeTooltip(p(this))})),D.removeData("ui-tooltip-open"),this._off(D,"mouseleave focusout keyup"),D[0]!==this.element[0]&&this._off(D,"remove"),this._off(this.document,"mousemove"),y&&"mouseleave"===y.type&&p.each(this.parents,(function(y,C){p(C.element).attr("title",C.title),delete T.parents[y]})),$.closing=!0,this._trigger("close",y,{tooltip:C}),$.hiding||($.closing=!1)))):void D.removeData("ui-tooltip-open")},_tooltip:function(y){var C=p("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),T=C.uniqueId().attr("id");return p("<div>").addClass("ui-tooltip-content").appendTo(C),C.appendTo(this.document[0].body),this.tooltips[T]={element:y,tooltip:C}},_find:function(p){var y=p.data("ui-tooltip-id");return y?this.tooltips[y]:null},_removeTooltip:function(p){p.remove(),delete this.tooltips[p.attr("id")]},_destroy:function(){var y=this;p.each(this.tooltips,(function(C,T){var D=p.Event("blur"),$=T.element;D.target=D.currentTarget=$[0],y.close(D,!0),p("#"+C).remove(),$.data("ui-tooltip-title")&&($.attr("title")||$.attr("title",$.data("ui-tooltip-title")),$.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}})})),
8/*!
9 * jQuery Cookie Plugin v1.4.1
10 * https://github.com/carhartl/jquery-cookie
11 *
12 * Copyright 2013 Klaus Hartl
13 * Released under the MIT license
14 */
15function(p){"function"==typeof define&&define.amd?define(["jquery"],p):"object"==typeof exports?p(require("jquery")):p(jQuery)}((function(p){var y=/\+/g;function encode(p){return C.raw?p:encodeURIComponent(p)}function stringifyCookieValue(p){return encode(C.json?JSON.stringify(p):String(p))}function read(T,D){var $=C.raw?T:function parseCookieValue(p){0===p.indexOf('"')&&(p=p.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return p=decodeURIComponent(p.replace(y," ")),C.json?JSON.parse(p):p}catch(p){}}(T);return p.isFunction(D)?D($):$}var C=p.cookie=function(y,T,D){if(void 0!==T&&!p.isFunction(T)){if("number"==typeof(D=p.extend({},C.defaults,D)).expires){var $=D.expires,P=D.expires=new Date;P.setTime(+P+864e5*$)}return document.cookie=[encode(y),"=",stringifyCookieValue(T),D.expires?"; expires="+D.expires.toUTCString():"",D.path?"; path="+D.path:"",D.domain?"; domain="+D.domain:"",D.secure?"; secure":""].join("")}for(var I,A=y?void 0:{},E=document.cookie?document.cookie.split("; "):[],O=0,N=E.length;O<N;O++){var j=E[O].split("="),q=(I=j.shift(),C.raw?I:decodeURIComponent(I)),U=j.join("=");if(y&&y===q){A=read(U,T);break}y||void 0===(U=read(U))||(A[q]=U)}return A};C.defaults={},p.removeCookie=function(y,C){return void 0!==p.cookie(y)&&(p.cookie(y,"",p.extend({},C,{expires:-1})),!p.cookie(y))}})),function(p){"use strict";var y={init:function(C){return this.each((function(){this.self=p(this),y.destroy.call(this.self),this.opt=p.extend(!0,{},p.fn.raty.defaults,C),y._adjustCallback.call(this),y._adjustNumber.call(this),y._adjustHints.call(this),this.opt.score=y._adjustedScore.call(this,this.opt.score),"img"!==this.opt.starType&&y._adjustStarType.call(this),y._adjustPath.call(this),y._createStars.call(this),this.opt.cancel&&y._createCancel.call(this),this.opt.precision&&y._adjustPrecision.call(this),y._createScore.call(this),y._apply.call(this,this.opt.score),y._setTitle.call(this,this.opt.score),y._target.call(this,this.opt.score),this.opt.readOnly?y._lock.call(this):(this.style.cursor="pointer",y._binds.call(this))}))},_adjustCallback:function(){for(var p=["number","readOnly","score","scoreName","target"],y=0;y<p.length;y++)"function"==typeof this.opt[p[y]]&&(this.opt[p[y]]=this.opt[p[y]].call(this))},_adjustedScore:function(p){return p?y._between(p,0,this.opt.number):p},_adjustHints:function(){if(this.opt.hints||(this.opt.hints=[]),this.opt.halfShow||this.opt.half)for(var p=this.opt.precision?10:2,y=0;y<this.opt.number;y++){var C=this.opt.hints[y];"[object Array]"!==Object.prototype.toString.call(C)&&(C=[C]),this.opt.hints[y]=[];for(var T=0;T<p;T++){var D=C[T],$=C[C.length-1];void 0===$&&($=null),this.opt.hints[y][T]=void 0===D?$:D}}},_adjustNumber:function(){this.opt.number=y._between(this.opt.number,1,this.opt.numberMax)},_adjustPath:function(){this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.charAt(this.opt.path.length-1)&&(this.opt.path+="/")},_adjustPrecision:function(){this.opt.half=!0},_adjustStarType:function(){var p=["cancelOff","cancelOn","starHalf","starOff","starOn"];this.opt.path="";for(var y=0;y<p.length;y++)this.opt[p[y]]=this.opt[p[y]].replace(".","-")},_apply:function(p){y._fill.call(this,p),p&&(p>0&&this.score.val(p),y._roundStars.call(this,p))},_between:function(p,y,C){return Math.min(Math.max(parseFloat(p),y),C)},_binds:function(){this.cancel&&(y._bindOverCancel.call(this),y._bindClickCancel.call(this),y._bindOutCancel.call(this)),y._bindOver.call(this),y._bindClick.call(this),y._bindOut.call(this)},_bindClick:function(){var C=this;C.stars.on("click.raty",(function(T){var D=!0,$=C.opt.half||C.opt.precision?C.self.data("score"):this.alt||p(this).data("alt");C.opt.click&&(D=C.opt.click.call(C,+$,T)),(D||void 0===D)&&(C.opt.half&&!C.opt.precision&&($=y._roun
15dHalfScore.call(C,$)),y._apply.call(C,$))}))},_bindClickCancel:function(){var p=this;p.cancel.on("click.raty",(function(y){p.score.removeAttr("value"),p.opt.click&&p.opt.click.call(p,null,y)}))},_bindOut:function(){var p=this;p.self.on("mouseleave.raty",(function(C){var T=+p.score.val()||void 0;y._apply.call(p,T),y._target.call(p,T,C),y._resetTitle.call(p),p.opt.mouseout&&p.opt.mouseout.call(p,T,C)}))},_bindOutCancel:function(){var p=this;p.cancel.on("mouseleave.raty",(function(C){var T=p.opt.cancelOff;if("img"!==p.opt.starType&&(T=p.opt.cancelClass+" "+T),y._setIcon.call(p,this,T),p.opt.mouseout){var D=+p.score.val()||void 0;p.opt.mouseout.call(p,D,C)}}))},_bindOver:function(){var p=this,C=p.opt.half?"mousemove.raty":"mouseover.raty";p.stars.on(C,(function(C){var T=y._getScoreByPosition.call(p,C,this);y._fill.call(p,T),p.opt.half&&(y._roundStars.call(p,T,C),y._setTitle.call(p,T,C),p.self.data("score",T)),y._target.call(p,T,C),p.opt.mouseover&&p.opt.mouseover.call(p,T,C)}))},_bindOverCancel:function(){var p=this;p.cancel.on("mouseover.raty",(function(C){var T=p.opt.path+p.opt.starOff,D=p.opt.cancelOn;"img"===p.opt.starType?p.stars.attr("src",T):(D=p.opt.cancelClass+" "+D,p.stars.attr("class",T)),y._setIcon.call(p,this,D),y._target.call(p,null,C),p.opt.mouseover&&p.opt.mouseover.call(p,null)}))},_buildScoreField:function(){return p("<input />",{name:this.opt.scoreName,type:"hidden"}).appendTo(this)},_createCancel:function(){var y=this.opt.path+this.opt.cancelOff,C=p("<"+this.opt.starType+" />",{title:this.opt.cancelHint,class:this.opt.cancelClass});"img"===this.opt.starType?C.attr({src:y,alt:"x"}):C.attr("data-alt","x").addClass(y),"left"===this.opt.cancelPlace?this.self.prepend("&#160;").prepend(C):this.self.append("&#160;").append(C),this.cancel=C},_createScore:function(){var C=p(this.opt.targetScore);this.score=C.length?C:y._buildScoreField.call(this)},_createStars:function(){for(var C=1;C<=this.opt.number;C++){var T=y._nameForIndex.call(this,C),D={alt:C,src:this.opt.path+this.opt[T]};"img"!==this.opt.starType&&(D={"data-alt":C,class:D.src}),D.title=y._getHint.call(this,C),p("<"+this.opt.starType+" />",D).appendTo(this),this.opt.space&&this.self.append(C<this.opt.number?"&#160;":"")}this.stars=this.self.children(this.opt.starType)},_error:function(y){p(this).text(y),p.error(y)},_fill:function(p){for(var C=0,T=1;T<=this.stars.length;T++){var D,$=this.stars[T-1],P=y._turnOn.call(this,T,p);if(this.opt.iconRange&&this.opt.iconRange.length>C){var I=this.opt.iconRange[C];D=y._getRangeIcon.call(this,I,P),T<=I.range&&y._setIcon.call(this,$,D),T===I.range&&C++}else D=this.opt[P?"starOn":"starOff"],y._setIcon.call(this,$,D)}},_getFirstDecimal:function(p){var y=p.toString().split(".")[1],C=0;return y&&(C=parseInt(y.charAt(0),10),"9999"===y.slice(1,5)&&C++),C},_getRangeIcon:function(p,y){return y?p.on||this.opt.starOn:p.off||this.opt.starOff},_getScoreByPosition:function(C,T){var D=parseInt(T.alt||T.getAttribute("data-alt"),10);if(this.opt.half){var $=y._getWidth.call(this);D=D-1+parseFloat((C.pageX-p(T).offset().left)/$)}return D},_getHint:function(p,C){if(0!==p&&!p)return this.opt.noRatedMsg;var T=y._getFirstDecimal.call(this,p),D=Math.ceil(p),$=this.opt.hints[(D||1)-1],P=$,I=!C||this.move;return this.opt.precision?(I&&(T=0===T?9:T-1),P=$[T]):(this.opt.halfShow||this.opt.half)&&(P=$[T=I&&0===T||T>5?1:0]),""===P?"":P||p},_getWidth:function(){var p=this.stars[0].width||parseFloat(this.stars.eq(0).css("font-size"));return p||y._error.call(this,"Could not get the icon width!"),p},_lock:function(){var p=y._getHint.call(this,this.score.val());this.style.cursor="",this.title=p,this.score.prop("readonly",!0),this.stars.prop("title",p),this.cancel&&this.cancel.hide(),this.self.data("readonly",!0)},_nameForIndex:function(p){return this.opt.score&&this.opt.score>=p?"starOn":"starOff"},_resetTitle:function(p){for(var C=0;C<this.opt.number;C++)this.stars[C].title=y._getHint.call(this,C+1)},_roundHalfScore:function(p){var C=parseInt(p,10),T=y._getFirstDecimal.call(this,p);return 0!==T&&(T=T>5?1:.5),C+T},_roundStars:function(p,C){var T,D=(p%1).toFixed(2);if(C||this.move?T=D>.5?"starOn":"starHalf":D>this.opt.round.down&&(T="starOn",this.opt.halfShow&&D<this.opt.round.up?T="starHalf":D<this.opt.round.full&&(T="starOff")),T){var $=this.opt[T],P=this.stars[Math.ceil(p)-1];y._setIcon.call(this,P,$)}},_setIcon:function(p,y){p["img"===this.opt.starType?"src":"className"]=this.opt.path+y},_setTarget:function(p,y){y&&(y=this.opt.targetFormat.toString().replace("{score}",y)),p.is(":input")?p.val(y):p.html(y)},_setTitle:function(p,C){if(p){var T=parseInt(Math.ceil(p),10);this.stars[T-1].title=y._getHint.call(this,p,C)}},_target:function(C,T){if(this.opt.target){var D=p(this.opt.target);D.length||y._error.call(this,"Target selector invalid or missing!");var $=T&&"mouseover"===T.type;if(void 0===C)C=this.opt.targetText;else if(null===C)C=$?this.opt.cancelHint:this.opt.targetText;else{"hint"===this.opt.targetType?C=y._getHint.call(this,C,T):this.opt.precision&&(C=parseFloat(C).toFixed(1));var P=T&&"mousemove"===T.type;$||P||this.opt.targetKeep||(C=this.opt.targetText)}y._setTarget.call(this,D,C)}},_turnOn:function(p,y){return this.opt.single?p===y:p<=y},_unlock:function(){this.style.cursor="pointer",this.removeAttribute("title"),this.score.removeAttr("readonly"),this.self.data("readonly",!1);for(var p=0;p<this.opt.number;p++)this.stars[p].title=y._getHint.call(this,p+1);this.cancel&&this.cancel.css("display","")},cancel:function(C){return this.each((function(){var T=p(this);!0!==T.data("readonly")&&(y[C?"click":"score"].call(T,null),this.score.removeAttr("value"))}))},click:function(C){return this.each((function(){!0!==p(this).data("readonly")&&(C=y._adjustedScore.call(this,C),y._apply.call(this,C),this.opt.click&&this.opt.click.call(this,C,p.Event("click")),y._target.call(this,C))}))},destroy:function(){return this.each((function(){var y=p(this),C=y.data("raw");C?y.off(".raty").empty().css({cursor:C.style.cursor}).removeData("readonly"):y.data("raw",y.clone()[0])}))},getScore:function(){var p,y=[];return this.each((function(){p=this.score.val(),y.push(p?+p:void 0)})),y.length>1?y:y[0]},move:function(C){return this.each((function(){var T=parseInt(C,10),D=y._getFirstDecimal.call(this,C);T>=this.opt.number&&(T=this.opt.number-1,D=10);var $=y._getWidth.call(this)/10,P=p(this.stars[T]),I=P.offset().left+$*D,A=p.Event("mousemove",{pageX:I});this.move=!0,P.trigger(A),this.move=!1}))},readOnly:function(C){return this.each((function(){var T=p(this);T.data("readonly")!==C&&(C?(T.off(".raty").children("img").off(".raty"),y._lock.call(this)):(y._binds.call(this),y._unlock.call(this)),T.data("readonly",C))}))},reload:function(){return y.set.call(this,{})},score:function(){var C=p(this);
15return arguments.length?y.setScore.apply(C,arguments):y.getScore.call(C)},set:function(y){return this.each((function(){p(this).raty(p.extend({},this.opt,y))}))},setScore:function(C){return this.each((function(){!0!==p(this).data("readonly")&&(C=y._adjustedScore.call(this,C),y._apply.call(this,C),y._target.call(this,C))}))}};p.fn.raty=function(C){return y[C]?y[C].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof C&&C?void p.error("Method "+C+" does not exist!"):y.init.apply(this,arguments)},p.fn.raty.defaults={cancel:!1,cancelClass:"raty-cancel",cancelHint:"Cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:void 0,precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,space:!0,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",starType:"img",target:void 0,targetFormat:"{score}",targetKeep:!1,targetScore:void 0,targetText:"",targetType:"hint"}}(jQuery),function(p){var y=p.ui.autocomplete.prototype,C=y._initSource;p.extend(y,{_initSource:function(){this.options.html&&p.isArray(this.options.source)?this.source=function(y,C){C(function filter(y,C){var T=new RegExp(p.ui.autocomplete.escapeRegex(C),"i");return p.grep(y,(function(y){return T.test(p("<div>").html(y.label||y.value||y).text())}))}(this.options.source,y.term))}:C.call(this)},_renderItem:function(y,C){return p("<li></li>").data("item.autocomplete",C).append(p(C.label)).addClass(C.class).appendTo(y)},_resizeMenu:function(){Foundation.utils.is_small_only()&&this.menu.element.outerWidth("96%")}})}(jQuery),function(p,y,C,T){"use strict";var D="disableSubmit",$={};function Plugin(y,C){this.element=y,this.$element=p(y),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){this.$element.closest("form").on("submit",p.proxy(this.disableSubmit,this))},disableSubmit:function(p){var y=this.$element;setTimeout((function(){y.prop("disabled",!0).addClass("loading")}),200),setTimeout((function(){y.prop("disabled",!1).removeClass("loading")}),5e3)}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),$(".submitOnce").disableSubmit(),function(p){var y=p(window);p.fn.visible=function(C,T,D,$){if(!(this.length<1)){D=D||"both";var P=this.length>1?this.eq(0):this,I=null!=$,A=I?p($):y,E=I?A.position():0,O=P.get(0),N=A.outerWidth(),j=A.outerHeight(),q=!0!==T||O.offsetWidth*O.offsetHeight;if("function"==typeof O.getBoundingClientRect){var U=O.getBoundingClientRect(),Y=I?U.top-E.top>=0&&U.top<j+E.top:U.top>=0&&U.top<j,X=I?U.bottom-E.top>0&&U.bottom<=j+E.top:U.bottom>0&&U.bottom<=j,Q=I?U.left-E.left>=0&&U.left<N+E.left:U.left>=0&&U.left<N,G=I?U.right-E.left>0&&U.right<N+E.left:U.right>0&&U.right<=N,Z=C?Y||X:Y&&X,tt=C?Q||G:Q&&G;Z=U.top<0&&U.bottom>j||Z,tt=U.left<0&&U.right>N||tt;if("both"===D)return q&&Z&&tt;if("vertical"===D)return q&&Z;if("horizontal"===D)return q&&tt}else{var et=I?0:E,it=et+j,nt=A.scrollLeft(),st=nt+N,ot=P.position(),at=ot.top,rt=at+P.height(),lt=ot.left,ct=lt+P.width(),dt=!0===C?rt:at,ht=!0===C?at:rt,ut=!0===C?ct:lt,pt=!0===C?lt:ct;if("both"===D)return!!q&&ht<=it&&dt>=et&&pt<=st&&ut>=nt;if("vertical"===D)return!!q&&ht<=it&&dt>=et;if("horizontal"===D)return!!q&&pt<=st&&ut>=nt}}}}(jQuery),function(p,y,C,T){"use strict";var D,$;D=["foundation-mq-small","foundation-mq-small-only","foundation-mq-medium","foundation-mq-medium-only","foundation-mq-large","foundation-mq-large-only","foundation-mq-xlarge","foundation-mq-xlarge-only","foundation-mq-xxlarge","foundation-data-attribute-namespace"],($=p("head")).prepend(p.map(D,(function(p){if(0===$.has("."+p).length)return'<meta class="'+p+'" />'}))),p((function(){"undefined"!=typeof FastClick&&void 0!==C.body&&FastClick.attach(C.body)}));var S=function(y,T){if("string"==typeof y){if(T){var D;if(T.jquery){if(!(D=T[0]))return T}else D=T;return p(D.querySelectorAll(y))}return p(C.querySelectorAll(y))}return p(y,T)},attr_name=function(p){var y=[];return p||y.push("data"),this.namespace.length>0&&y.push(this.namespace),y.push(this.name),y.join("-")},add_namespace=function(p){for(var y=p.split("-"),C=y.length,T=[];C--;)0!==C?T.push(y[C]):this.namespace.length>0?T.push(this.namespace,y[C]):T.push(y[C]);return T.reverse().join("-")},bindings=function(y,C){var T=this,bind=function(){var D=S(this),$=!D.data(T.attr_name(!0)+"-init");D.data(T.attr_name(!0)+"-init",p.extend({},T.settings,C||y,T.data_options(D))),$&&T.events(this)};if(S(this.scope).is("["+this.attr_name()+"]")?bind.call(this.scope):S("["+this.attr_name()+"]",this.scope).each(bind),"string"==typeof y)return this[y].call(this,C)};function MediaQuery(p){this.selector=p,this.query=""}
16/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
17y.matchMedia||(y.matchMedia=function(){var p=y.styleMedia||y.media;if(!p){var T,D=C.createElement("style"),$=C.getElementsByTagName("script")[0];D.type="text/css",D.id="matchmediajs-test",$.parentNode.insertBefore(D,$),T="getComputedStyle"in y&&y.getComputedStyle(D,null)||D.currentStyle,p={matchMedium:function(p){var y="@media "+p+"{ #matchmediajs-test { width: 1px; } }";return D.styleSheet?D.styleSheet.cssText=y:D.textContent=y,"1px"===T.width}}}return function(y){return{matches:p.matchMedium(y||"all"),media:y||"all"}}}()),function(p){for(var C,T=0,D=["webkit","moz"],$=y.requestAnimationFrame,P=y.cancelAnimationFrame,I=void 0!==p.fx;T<D.length&&!$;T++)$=y[D[T]+"RequestAnimationFrame"],P=P||y[D[T]+"CancelAnimationFrame"]||y[D[T]+"CancelRequestAnimationFrame"];function raf(){C&&($(raf),I&&p.fx.tick())}$?(y.requestAnimationFrame=$,y.cancelAnimationFrame=P,I&&(p.fx.timer=function(y){y()&&p.timers.push(y)&&!C&&(C=!0,raf())},p.fx.stop=function(){C=!1})):(y.requestAnimationFrame=function(p){var C=(new Date).getTime(),D=Math.max(0,16-(C-T)),$=y.setTimeout((function(){p(C+D)}),D);return T=C+D,$},y.cancelAnimationFrame=function(p){clearTimeout(p)})}(p),MediaQuery.prototype.toString=function(){return this.query||(this.query=S(this.selector).css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""))},y.Foundation={name:"Foundation",version:"5.5.3",media_queries:{small:new MediaQuery(".foundation-mq-small"),"small-only":ne
17w MediaQuery(".foundation-mq-small-only"),medium:new MediaQuery(".foundation-mq-medium"),"medium-only":new MediaQuery(".foundation-mq-medium-only"),large:new MediaQuery(".foundation-mq-large"),"large-only":new MediaQuery(".foundation-mq-large-only"),xlarge:new MediaQuery(".foundation-mq-xlarge"),"xlarge-only":new MediaQuery(".foundation-mq-xlarge-only"),xxlarge:new MediaQuery(".foundation-mq-xxlarge")},stylesheet:p("<style></style>").appendTo("head")[0].sheet,global:{namespace:T},init:function(p,C,T,D,$){var P=[p,T,D,$],I=[];if(this.rtl=/rtl/i.test(S("html").attr("dir")),this.scope=p||this.scope,this.set_namespace(),C&&"string"==typeof C&&!/reflow/i.test(C))this.libs.hasOwnProperty(C)&&I.push(this.init_lib(C,P));else for(var A in this.libs)I.push(this.init_lib(A,C));return S(y).load((function(){S(y).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider")})),p},init_lib:function(y,C){return this.libs.hasOwnProperty(y)?(this.patch(this.libs[y]),C&&C.hasOwnProperty(y)?(void 0!==this.libs[y].settings?p.extend(!0,this.libs[y].settings,C[y]):void 0!==this.libs[y].defaults&&p.extend(!0,this.libs[y].defaults,C[y]),this.libs[y].init.apply(this.libs[y],[this.scope,C[y]])):(C=C instanceof Array?C:new Array(C),this.libs[y].init.apply(this.libs[y],C))):function(){}},patch:function(p){p.scope=this.scope,p.namespace=this.global.namespace,p.rtl=this.rtl,p.data_options=this.utils.data_options,p.attr_name=attr_name,p.add_namespace=add_namespace,p.bindings=bindings,p.S=this.utils.S},inherit:function(p,y){for(var C=y.split(" "),T=C.length;T--;)this.utils.hasOwnProperty(C[T])&&(p[C[T]]=this.utils[C[T]])},set_namespace:function(){var y=this.global.namespace===T?p(".foundation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=y===T||/false/i.test(y)?"":y},libs:{},utils:{S:S,throttle:function(p,y){var C=null;return function(){var T=this,D=arguments;null==C&&(C=setTimeout((function(){p.apply(T,D),C=null}),y))}},debounce:function(p,y,C){var T,D;return function(){var $=this,P=arguments,later=function(){T=null,C||(D=p.apply($,P))},I=C&&!T;return clearTimeout(T),T=setTimeout(later,y),I&&(D=p.apply($,P)),D}},data_options:function(y,C){C=C||"options";var T,D,$,P,I={},A=function(p){var y=Foundation.global.namespace;return y.length>0?p.data(y+"-"+C):p.data(C)}(y);if("object"==typeof A)return A;function trim(y){return"string"==typeof y?p.trim(y):y}for(T=($=(A||":").split(";")).length;T--;)D=[(D=$[T].split(":"))[0],D.slice(1).join(":")],/true/i.test(D[1])&&(D[1]=!0),/false/i.test(D[1])&&(D[1]=!1),P=D[1],isNaN(P-0)||null===P||""===P||!1===P||!0===P||(-1===D[1].indexOf(".")?D[1]=parseInt(D[1],10):D[1]=parseFloat(D[1])),2===D.length&&D[0].length>0&&(I[trim(D[0])]=trim(D[1]));return I},register_media:function(y,C){Foundation.media_queries[y]===T&&(p("head").append('<meta class="'+C+'"/>'),Foundation.media_queries[y]=function removeQuotes(p){return("string"==typeof p||p instanceof String)&&(p=p.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")),p}(p("."+C).css("font-family")))},add_custom_rule:function(p,y){y===T&&Foundation.stylesheet?Foundation.stylesheet.insertRule(p,Foundation.stylesheet.cssRules.length):Foundation.media_queries[y]!==T&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[y]+"{ "+p+" }",Foundation.stylesheet.cssRules.length)},image_loaded:function(p,y){var C=this,D=p.length;(0===D||function pictures_has_height(p){for(var y=p.length-1;y>=0;y--)if(p.attr("height")===T)return!1;return!0}(p))&&y(p),p.each((function(){!function(p,y){function loaded(){y(p[0])}p.attr("src")?p[0].complete||4===p[0].readyState?loaded():function bindLoad(){if(this.one("load",loaded),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var p=this.attr("src"),y=p.match(/\?/)?"&":"?";y+="random="+(new Date).getTime(),this.attr("src",p+y)}}.call(p):loaded()}(C.S(this),(function(){0===(D-=1)&&y(p)}))}))},random_str:function(){return this.fidx||(this.fidx=0),this.prefix=this.prefix||[this.name||"F",(+new Date).toString(36)].join("-"),this.prefix+(this.fidx++).toString(36)},match:function(p){return y.matchMedia(p).matches},is_small_up:function(){return this.match(Foundation.media_queries.small)},is_medium_up:function(){return this.match(Foundation.media_queries.medium)},is_large_up:function(){return this.match(Foundation.media_queries.large)},is_xlarge_up:function(){return this.match(Foundation.media_queries.xlarge)},is_xxlarge_up:function(){return this.match(Foundation.media_queries.xxlarge)},is_small_only:function(){return!(this.is_medium_up()||this.is_large_up()||this.is_xlarge_up()||this.is_xxlarge_up())},is_medium_only:function(){return this.is_medium_up()&&!this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_large_only:function(){return this.is_medium_up()&&this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xxlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&this.is_xxlarge_up()}}},p.fn.foundation=function(){var p=Array.prototype.slice.call(arguments,0);
17return this.each((function(){return Foundation.init.apply(Foundation,[this].concat(p)),this}))}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.alert={name:"alert",version:"5.5.3",settings:{callback:function(){}},init:function(p,y,C){this.bindings(y,C)},events:function(){var y=this,C=this.S;p(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] .close",(function(p){var T=C(this).closest("["+y.attr_name()+"]"),D=T.data(y.attr_name(!0)+"-init")||y.settings;p.preventDefault(),Modernizr.csstransitions?(T.addClass("alert-close"),T.on("transitionend webkitTransitionEnd oTransitionEnd",(function(p){C(this).trigger("close.fndtn.alert").remove(),D.callback()}))):T.fadeOut(300,(function(){C(this).trigger("close.fndtn.alert").remove(),D.callback()}))}))},reflow:function(){}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.5.3",settings:{active_class:"open",disabled_class:"disabled",mega_class:"mega",align:"bottom",is_hover:!1,hover_timeout:150,opened:function(){},closed:function(){}},init:function(y,C,T){Foundation.inherit(this,"throttle"),p.extend(!0,this.settings,C,T),this.bindings(C,T)},events:function(T){var D=this,$=D.S;$(this.scope).off(".dropdown").on("click.fndtn.dropdown","["+this.attr_name()+"]",(function(y){($(this).data(D.attr_name(!0)+"-init")||D.settings).is_hover&&!Modernizr.touch||(y.preventDefault(),$(this).parent("[data-reveal-id]").length&&y.stopPropagation(),D.toggle(p(this)))})).on("mouseenter.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",(function(p){var y,C,T=$(this);clearTimeout(D.timeout),T.data(D.data_attr())?(y=$("#"+T.data(D.data_attr())),C=T):(y=T,C=$("["+D.attr_name()+'="'+y.attr("id")+'"]'));var P=C.data(D.attr_name(!0)+"-init")||D.settings;$(p.currentTarget).data(D.data_attr())&&P.is_hover&&D.closeall.call(D),P.is_hover&&D.open.apply(D,[y,C])})).on("mouseleave.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",(function(p){var y=$(this);if(y.data(D.data_attr()))C=y.data(D.data_attr(!0)+"-init")||D.settings;else var C=$("["+D.attr_name()+'="'+$(this).attr("id")+'"]').data(D.attr_name(!0)+"-init")||D.settings;D.timeout=setTimeout(function(){y.data(D.data_attr())?C.is_hover&&D.close.call(D,$("#"+y.data(D.data_attr()))):C.is_hover&&D.close.call(D,y)}.bind(this),C.hover_timeout)})).on("click.fndtn.dropdown",(function(y){var T=$(y.target).closest("["+D.attr_name()+"-content]");T.find("a").length>0&&"false"!==T.attr("aria-autoclose")&&D.close.call(D,$("["+D.attr_name()+"-content]")),(y.target===C||p.contains(C.documentElement,y.target))&&($(y.target).closest("["+D.attr_name()+"]").length>0||(!$(y.target).data("revealId")&&T.length>0&&($(y.target).is("["+D.attr_name()+"-content]")||p.contains(T.first()[0],y.target))?y.stopPropagation():D.close.call(D,$("["+D.attr_name()+"-content]"))))})).on("opened.fndtn.dropdown","["+D.attr_name()+"-content]",(function(){D.settings.opened.call(this)})).on("closed.fndtn.dropdown","["+D.attr_name()+"-content]",(function(){D.settings.closed.call(this)})),$(y).off(".dropdown").on("resize.fndtn.dropdown",D.throttle((function(){D.resize.call(D)}),50)),this.resize()},close:function(y){var C=this;y.each((function(T){(p("["+C.attr_name()+"="+y[T].id+"]")||p("aria-controls="+y[T].id+"]")).attr("aria-expanded","false"),C.S(this).hasClass(C.settings.active_class)&&(C.S(this).css(Foundation.rtl?"right":"left","-99999px").attr("aria-hidden","true").removeClass(C.settings.active_class).prev("["+C.attr_name()+"]").removeClass(C.settings.active_class).removeData("target"),C.S(this).trigger("closed.fndtn.dropdown",[y]))})),y.removeClass("f-open-"+this.attr_name(!0))},closeall:function(){var y=this;p.each(y.S(".f-open-"+this.attr_name(!0)),(function(){y.close.call(y,y.S(this))}))},open:function(p,y){this.css(p.addClass(this.settings.active_class),y),p.prev("["+this.attr_name()+"]").addClass(this.settings.active_class),p.data("target",y.get(0)).trigger("opened.fndtn.dropdown",[p,y]),p.attr("aria-hidden","false"),y.attr("aria-expanded","true"),p.focus(),p.addClass("f-open-"+this.attr_name(!0))},data_attr:function(){return this.namespace.length>0?this.namespace+"-"+this.name:this.name},toggle:function(p){if(!p.hasClass(this.settings.disabled_class)){var y=this.S("#"+p.data(this.data_attr()));0!==y.length&&(this.close.call(this,this.S("["+this.attr_name()+"-content]").not(y)),y.hasClass(this.settings.active_class)?(this.close.call(this,y),y.data("target")!==p.get(0)&&this.open.call(this,y,p)):this.open.call(this,y,p))}},resize:function(){var y=this.S("["+this.attr_name()+"-content].open"),C=p(y.data("target"));y.length&&C.length&&this.css(y,C)},css:function(p,y){var C=Math.max((y.width()-p.width())/2,8),T=y.data(this.attr_name(!0)+"-init")||this.settings,D=p.parent().css("overflow-y")||p.parent().css("overflow");
17if(this.clear_idx(),this.small()){var $=this.dirs.bottom.call(p,y,T);p.attr("style","").removeClass("drop-left drop-right drop-top").css({position:"absolute",width:"95%","max-width":"none",top:$.top}),p.css(Foundation.rtl?"right":"left",C)}else if("visible"!==D){var P=y[0].offsetTop+y[0].offsetHeight;p.attr("style","").css({position:"absolute",top:P}),p.css(Foundation.rtl?"right":"left",C)}else this.style(p,y,T);return p},style:function(y,C,T){var D=p.extend({position:"absolute"},this.dirs[T.align].call(y,C,T));y.attr("style","").css(D)},dirs:{_base:function(p,T){var D=this.offsetParent().offset(),$=p.offset();$.top-=D.top,$.left-=D.left,$.missRight=!1,$.missTop=!1,$.missLeft=!1,$.leftRightFlag=!1;var P=y.innerWidth,I=(P-(C.getElementsByClassName("row")[0]?C.getElementsByClassName("row")[0].clientWidth:P))/2;if(!this.hasClass("mega")&&!T.ignore_repositioning){var A=this.outerWidth(),E=p.offset().left;p.offset().top<=this.outerHeight()&&($.missTop=!0,P-I,$.leftRightFlag=!0),E+A>E+I&&E-I>A&&($.missRight=!0,$.missLeft=!1),E-A<=0&&($.missLeft=!0,$.missRight=!1)}return $},top:function(p,y){var C=Foundation.libs.dropdown,T=C.dirs._base.call(this,p,y);return this.addClass("drop-top"),1==T.missTop&&(T.top=T.top+p.outerHeight()+this.outerHeight(),this.removeClass("drop-top")),1==T.missRight&&(T.left=T.left-this.outerWidth()+p.outerWidth()),(p.outerWidth()<this.outerWidth()||C.small()||this.hasClass(y.mega_menu))&&C.adjust_pip(this,p,y,T),Foundation.rtl?{left:T.left-this.outerWidth()+p.outerWidth(),top:T.top-this.outerHeight()}:{left:T.left,top:T.top-this.outerHeight()}},bottom:function(p,y){var C=Foundation.libs.dropdown,T=C.dirs._base.call(this,p,y);return 1==T.missRight&&(T.left=T.left-this.outerWidth()+p.outerWidth()),(p.outerWidth()<this.outerWidth()||C.small()||this.hasClass(y.mega_menu))&&C.adjust_pip(this,p,y,T),C.rtl?{left:T.left-this.outerWidth()+p.outerWidth(),top:T.top+p.outerHeight()}:{left:T.left,top:T.top+p.outerHeight()}},left:function(p,y){var C=Foundation.libs.dropdown.dirs._base.call(this,p,y);return this.addClass("drop-left"),1==C.missLeft&&(C.left=C.left+this.outerWidth(),C.top=C.top+p.outerHeight(),this.removeClass("drop-left")),{left:C.left-this.outerWidth(),top:C.top}},right:function(p,y){var C=Foundation.libs.dropdown.dirs._base.call(this,p,y);this.addClass("drop-right"),1==C.missRight?(C.left=C.left-this.outerWidth(),C.top=C.top+p.outerHeight(),this.removeClass("drop-right")):C.triggeredRight=!0;var T=Foundation.libs.dropdown;return(p.outerWidth()<this.outerWidth()||T.small()||this.hasClass(y.mega_menu))&&T.adjust_pip(this,p,y,C),{left:C.left+p.outerWidth(),top:C.top}}},adjust_pip:function(p,y,C,T){var D=Foundation.stylesheet,$=8;p.hasClass(C.mega_class)?$=T.left+y.outerWidth()/2-8:this.small()&&($+=T.left-8),this.rule_idx=D.cssRules.length;var P=".f-dropdown.open:before",I=".f-dropdown.open:after",A="left: "+$+"px;",E="left: "+($-1)+"px;";1==T.missRight&&(P=".f-dropdown.open:before",I=".f-dropdown.open:after",A="left: "+($=p.outerWidth()-23)+"px;",E="left: "+($-1)+"px;"),1==T.triggeredRight&&(P=".f-dropdown.open:before",I=".f-dropdown.open:after",A="left:-12px;",E="left:-14px;"),D.insertRule?(D.insertRule([P,"{",A,"}"].join(" "),this.rule_idx),D.insertRule([I,"{",E,"}"].join(" "),this.rule_idx+1)):(D.addRule(P,A,this.rule_idx),D.addRule(I,E,this.rule_idx+1))},clear_idx:function(){var p=Foundation.stylesheet;void 0!==this.rule_idx&&(p.deleteRule(this.rule_idx),p.deleteRule(this.rule_idx),delete this.rule_idx)},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){this.S(this.scope).off(".fndtn.dropdown"),this.S("html, body").off(".fndtn.dropdown"),this.S(y).off(".fndtn.dropdown"),this.S("[data-dropdown-content]").off(".fndtn.dropdown")},reflow:function(){}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.equalizer={name:"equalizer",version:"5.5.3",settings:{use_tallest:!0,before_height_change:p.noop,after_height_change:p.noop,equalize_on_stack:!1,act_on_hidden_el:!1},init:function(p,y,C){Foundation.inherit(this,"image_loaded"),this.bindings(y,C),this.reflow()},events:function(){this.S(y).off(".equalizer").on("resize.fndtn.equalizer",function(p){this.reflow()}.bind(this))},equalize:function(y){var C,T,D=!1,$=y.data("equalizer"),P=y.data(this.attr_name(!0)+"-init")||this.settings;if(0!==(C=P.act_on_hidden_el?$?y.find("["+this.attr_name()+'-watch="'+$+'"]'):y.find("["+this.attr_name()+"-watch]"):$?y.find("["+this.attr_name()+'-watch="'+$+'"]:visible'):y.find("["+this.attr_name()+"-watch]:visible")).length&&(P.before_height_change(),y.trigger("before-height-change.fndth.equalizer"),C.height("inherit"),!1!==P.equalize_on_stack||(T=C.first().offset().top,C.each((function(){if(p(this).offset().top!==T)return D=!0,!1})),!D))){var I=C.map((function(){return p(this).outerHeight(!1)})).get();if(P.use_tallest){var A=Math.max.apply(null,I);C.css("height",A)}else{var E=Math.min.apply(null,I);C.css("height",E)}P.after_height_change(),y.trigger("after-height-change.fndtn.equalizer")}},reflow:function(){var y=this;this.S("["+this.attr_name()+"]",this.scope).each((function(){var C=p(this),T=C.data("equalizer-mq"),D=!0;T&&(T="is_"+T.replace(/-/g,"_"),Foundation.utils.hasOwnProperty(T)&&(D=!1)),y.image_loaded(y.S("img",this),(function(){D||Foundation.utils[T]()?y.equalize(C):C.find("["+y.attr_name()+"-watch]:visible").css("height","auto")}))}))}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.5.3",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{default:"only screen",small:Foundation.media_queries.small,"small-only":Foundation.media_queries["small-only"],medium:Foundation.media_queries.medium,"medium-only":Foundation.media_queries["medium-only"],large:Foundation.media_queries.large,"large-only":Foundation.media_queries["large-only"],xlarge:Foundation.media_queries.xlarge,"xlarge-only":Foundation.media_queries["xlarge-only"],xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(y,C,T){if(null!==y&&/IMG/.test(y[0].nodeName)){var D=p.each(y,(function(){this.src=C}));if(new RegExp(C,"i").test(D))return;return y.attr("src",C),T(y[0].src)}var $=y.data(this.data_attr+"-last-path"),P=this;if($!=C)return/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(C)?(p(y).css("background-image","url("+C+")"),y.data("interchange-last-path",C),T(C)):p.get(C,(function(p){y.html(p),y.data(P.data_attr+"-last-path",C),T()}))}}},init:function(y,C,T){Foundation.inherit(this,"throttle random_str"),this.data_attr=this.set_data_attr(),p.extend(!0,this.settings,C,T),this.bindings(C,T),this.reflow()},get_media_hash:function(){var p="";for(var y in this.settings.named_queries)p+=matchMedia(this.settings.named_queries[y]).matches.toString();return p},events:function(){var C,T=this;return p(y).off(".interchange").on("resize.fndtn.interchange",T.throttle((function(){var p=T.get_media_hash();p!==C&&T.resize(),C=p}),50)),this},resize:function(){var y=this.cache;if(this.images_loaded&&this.nodes_loaded){for(var C in y)if(y.hasOwnProperty(C)){var T=this.results(C,y[C]);
vendor: 5,397 bytes, line 17
17T&&this.settings.directives[T.scenario[1]].call(this,T.el,T.scenario[0],function(p){if(arguments[0]instanceof Array)var y=arguments[0];else y=Array.prototype.slice.call(arguments,0);return function(){p.el.trigger(p.scenario[1],y)}}(T))}}else setTimeout(p.proxy(this.resize,this),50)},results:function(p,y){var C=y.length;if(C>0)for(var T=this.S("["+this.add_namespace("data-uuid")+'="'+p+'"]');C--;){var D=y[C][2];if((this.settings.named_queries.hasOwnProperty(D)?matchMedia(this.settings.named_queries[D]):matchMedia(D)).matches)return{el:T,scenario:y[C]}}return!1},load:function(p,y){return(void 0===this["cached_"+p]||y)&&this["update_"+p](),this["cached_"+p]},update_images:function(){var p=this.S("img["+this.data_attr+"]"),y=p.length,C=y,T=0,D=this.data_attr;for(this.cache={},this.cached_images=[],this.images_loaded=0===y;C--;){if(T++,p[C])(p[C].getAttribute(D)||"").length>0&&this.cached_images.push(p[C]);T===y&&(this.images_loaded=!0,this.enhance("images"))}return this},update_nodes:function(){var p=this.S("["+this.data_attr+"]").not("img"),y=p.length,C=y,T=0,D=this.data_attr;for(this.cached_nodes=[],this.nodes_loaded=0===y;C--;){T++,(p[C].getAttribute(D)||"").length>0&&this.cached_nodes.push(p[C]),T===y&&(this.nodes_loaded=!0,this.enhance("nodes"))}return this},enhance:function(C){for(var T=this["cached_"+C].length;T--;)this.object(p(this["cached_"+C][T]));return p(y).trigger("resize.fndtn.interchange")},convert_directive:function(p){var y=this.trim(p);return y.length>0?y:"replace"},parse_scenario:function(p){var y=p[0].match(/(.+),\s*(\w+)\s*$/),C=p[1].match(/(.*)\)/);if(y)var T=y[1],D=y[2];else T=p[0].split(/,\s*$/)[0],D="";return[this.trim(T),this.convert_directive(D),this.trim(C[1])]},object:function(p){var y=this.parse_data_attr(p),C=[],T=y.length;if(T>0)for(;T--;){var D=y[T].split(/,\s?\(/);if(D.length>1){var $=this.parse_scenario(D);C.push($)}}return this.store(p,C)},store:function(p,y){var C=this.random_str(),T=p.data(this.add_namespace("uuid",!0));return this.cache[T]?this.cache[T]:(p.attr(this.add_namespace("data-uuid"),C),this.cache[C]=y)},trim:function(y){return"string"==typeof y?p.trim(y):y},set_data_attr:function(p){return p?this.namespace.length>0?this.namespace+"-"+this.settings.load_attr:this.settings.load_attr:this.namespace.length>0?"data-"+this.namespace+"-"+this.settings.load_attr:"data-"+this.settings.load_attr},parse_data_attr:function(p){for(var y=p.attr(this.attr_name()).split(/\[(.*?)\]/),C=y.length,T=[];C--;)y[C].replace(/[\W\d]+/,"").length>4&&T.push(y[C]);return T},reflow:function(){this.load("images",!0),this.load("nodes",!0)}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.5.3",settings:{open_method:"move",close_on_click:!1},init:function(p,y,C){this.bindings(y,C)},events:function(){var y=this,C=y.S,T="",D="",$="",P="",I="";"move"===this.settings.open_method?(T="move-",D="right",$="left",P="top",I="bottom"):"overlap_single"===this.settings.open_method?(T="offcanvas-overlap-",D="right",$="left",P="top",I="bottom"):"overlap"===this.settings.open_method&&(T="offcanvas-overlap"),C(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",(function($){y.click_toggle_class($,T+D),"overlap"!==y.settings.open_method&&C(".left-submenu").removeClass(T+D),p(".left-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".left-off-canvas-menu a",(function($){var P=y.get_settings($),I=C(this).parent();!P.close_on_click||I.hasClass("has-submenu")||I.hasClass("back")?C(this).parent().hasClass("has-submenu")?($.preventDefault(),C(this).siblings(".left-submenu").toggleClass(T+D)):I.hasClass("back")&&($.preventDefault(),I.parent().removeClass(T+D)):(y.hide.call(y,T+D,y.get_wrapper($)),I.parent().removeClass(T+D)),p(".left-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".right-off-canvas-toggle",(function(D){y.click_toggle_class(D,T+$),"overlap"!==y.settings.open_method&&C(".right-submenu").removeClass(T+$),p(".right-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".right-off-canvas-menu a",(function(D){var P=y.get_settings(D),I=C(this).parent();!P.close_on_click||I.hasClass("has-submenu")||I.hasClass("back")?C(this).parent().hasClass("has-submenu")?(D.preventDefault(),C(this).siblings(".right-submenu").toggleClass(T+$)):I.hasClass("back")&&(D.preventDefault(),I.parent().removeClass(T+$)):(y.hide.call(y,T+$,y.get_wrapper(D)),I.parent().removeClass(T+$)),p(".right-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".top-off-canvas-toggle",(function(D){y.click_toggle_class(D,T+I),"overlap"!==y.settings.open_method&&C(".top-submenu").removeClass(T+I),p(".top-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".top-off-canvas-menu a",(function(D){var $=y.get_settings(D),P=C(this).parent();!$.close_on_click||P.hasClass("has-submenu")||P.hasClass("back")?C(this).parent().hasClass("has-submenu")?(D.preventDefault(),C(this).siblings(".top-submenu").toggleClass(T+I)):P.hasClass("back")&&(D.preventDefault(),P.parent().removeClass(T+I)):(y.hide.call(y,T+I,y.get_wrapper(D)),P.parent().removeClass(T+I)),p(".top-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".bottom-off-canvas-toggle",(function(D){y.click_toggle_class(D,T+P),"overlap"
17!==y.settings.open_method&&C(".bottom-submenu").removeClass(T+P),p(".bottom-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".bottom-off-canvas-menu a",(function(D){var $=y.get_settings(D),I=C(this).parent();!$.close_on_click||I.hasClass("has-submenu")||I.hasClass("back")?C(this).parent().hasClass("has-submenu")?(D.preventDefault(),C(this).siblings(".bottom-submenu").toggleClass(T+P)):I.hasClass("back")&&(D.preventDefault(),I.parent().removeClass(T+P)):(y.hide.call(y,T+P,y.get_wrapper(D)),I.parent().removeClass(T+P)),p(".bottom-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".exit-off-canvas",(function(P){y.click_remove_class(P,T+$),C(".right-submenu").removeClass(T+$),D&&(y.click_remove_class(P,T+D),C(".left-submenu").removeClass(T+$)),p(".right-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".exit-off-canvas",(function(C){y.click_remove_class(C,T+$),p(".left-off-canvas-toggle").attr("aria-expanded","false"),D&&(y.click_remove_class(C,T+D),p(".right-off-canvas-toggle").attr("aria-expanded","false"))})).on("click.fndtn.offcanvas",".exit-off-canvas",(function(D){y.click_remove_class(D,T+P),C(".bottom-submenu").removeClass(T+P),I&&(y.click_remove_class(D,T+I),C(".top-submenu").removeClass(T+P)),p(".bottom-off-canvas-toggle").attr("aria-expanded","true")})).on("click.fndtn.offcanvas",".exit-off-canvas",(function(C){y.click_remove_class(C,T+P),p(".top-off-canvas-toggle").attr("aria-expanded","false"),I&&(y.click_remove_class(C,T+I),p(".bottom-off-canvas-toggle").attr("aria-expanded","false"))}))},toggle:function(p,y){(y=y||this.get_wrapper()).is("."+p)?this.hide(p,y):this.show(p,y)},show:function(p,y){(y=y||this.get_wrapper()).trigger("open.fndtn.offcanvas"),y.addClass(p)},hide:function(p,y){(y=y||this.get_wrapper()).trigger("close.fndtn.offcanvas"),y.removeClass(p)},click_toggle_class:function(p,y){p.preventDefault();var C=this.get_wrapper(p);this.toggle(y,C)},click_remove_class:function(p,y){p.preventDefault();var C=this.get_wrapper(p);this.hide(y,C)},get_settings:function(p){return this.S(p.target).closest("["+this.attr_name()+"]").data(this.attr_name(!0)+"-init")||this.settings},get_wrapper:function(p){var y=this.S(p?p.target:this.scope).closest(".off-canvas-wrap");return 0===y.length&&(y=this.S(".off-canvas-wrap")),y},reflow:function(){}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";var D=[];function getAnimationData(p){var y=/fade/i.test(p),C=/pop/i.test(p);return{animate:y||C,pop:C,fade:y}}Foundation.libs.reveal={name:"reveal",version:"5.5.3",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",multiple_opened:!1,bg_class:"reveal-modal-bg",root_element:"body",open:function(){},opened:function(){},close:function(){},closed:function(){},on_ajax_error:p.noop,bg:p(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(y,C,T){p.extend(!0,this.settings,C,T),this.bindings(C,T)},events:function(p){var y=this,T=y.S;return T(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]:not([disabled])",(function(p){if(p.preventDefault(),!y.locked){var C=T(this),D=C.data(y.data_attr("reveal-ajax")),$=C.data(y.data_attr("reveal-replace-content"));if(y.locked=!0,void 0===D)y.open.call(y,C);else{var P=!0===D?C.attr("href"):D;y.open.call(y,C,{url:P},{replaceContentSel:$})}}})),T(C).on("click.fndtn.reveal",this.close_targets(),(function(p){if(p.preventDefault(),!y.locked){var C=T("["+y.attr_name()+"].open").data(y.attr_name(!0)+"-init")||y.settings,D=T(p.target)[0]===T("."+C.bg_class)[0];if(D){if(!C.close_on_background_click)return;p.stopPropagation()}y.locked=!0,y.close.call(y,D?T("["+y.attr_name()+"].open:not(.toback)"):T(this).closest("["+y.attr_name()+"]"))}})),T("["+y.attr_name()+"]",this.scope).length>0?T(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):T(this.scope).on("open.fndtn.reveal","["+y.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+y.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+y.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+y.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+y.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+y.attr_name()+"]",this.close_video),!0},key_up_on:function(p){var y=this;return y.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",(function(p){var C=y.S("["+y.attr_name()+"].open"),T=C.data(y.attr_name(!0)+"-init")||y.settings;T&&27===p.which&&T.close_on_esc&&!y.locked&&y.close.call(y,C)})),!0},key_up_off:function(p){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(C,$){var P,I=this;C?void 0!==C.selector?P=I.S("#"+C.data(I.data_attr("reveal-id"))).first():(P=I.S(this.scope),$=C):P=I.S(this.scope);var A=P.data(I.attr_name(!0)+"-init");if(A=A||this.settings,P.hasClass("open")&&C!==T&&C.attr("data-reveal-id")==P.attr("id"))return I.close(P);if(!P.hasClass("open")){var E=I.S("["+I.attr_name()+"].open");void 0===P.data("css-top")&&P.data("css-top",parseInt(P.css("top"),10)).data("offset",this.cache_offset(P)),P.attr("tabindex","0").attr("aria-hidden","false"),this.key_up_on(P),P.on("open.fndtn.reveal",(function(p){p.namespace})),P.on("open.fndtn.reveal").trigger("open.fndtn.reveal"),E.length<1&&this.toggle_bg(P,!0),"string"==typeof $&&($={url:$});var openModal=function(){E.length>0&&(A.multiple_opened?I.to_back(E):I.hide(E,A.css.close)),A.multiple_opened&&D.push(P),I.show(P,A.css.open)};if(void 0!==$&&$.url){var O=void 0!==$.success?$.success:null;p.extend($,{success:function(y,C,T){if(p.isFunction(O)){var D=O(y,C,T);"string"==typeof D&&(y=D)}"undefined"!=typeof options&&void 0!==options.replaceContentSel?P.find(options.replaceContentSel).html(y):P.html(y),I.S(P).foundation("section","reflow"),I.S(P).children().foundation(),openModal()}}),A.on_ajax_error!==p.noop&&p.extend($,{error:A.on_ajax_error}),p.ajax($)}else openModal()}I.S(y).trigger("resize")},close:function(y){y=y&&y.length?y:this.S(this.scope);var C=this.S("["+this.attr_name()+"].open"),T=y.data(this.attr_name(!0)+"-init")||this.settings,$=this;if(C.length>0)if(y.removeAttr("tabindex","0").attr("aria-hidden","true"),this.locked=!0,this.key_up_off(y),y.trigger("close.fndtn.reveal"),(T.multiple_opened&&1===C.length||!T.multiple_opened||y.length>1)&&($.toggle_bg(y,!1),$.to_front(y)),T.multiple_opened){var P=y.is(":not(.toback)");$.hide(y,T.css.close,T),P?D.pop():D=p.grep(D,(function(p){var C=p[0]===y[0];return C&&$.to_front(y),!C})),D.length>0&&$.to_front(D[D.length-1])}else $.hide(C,T.css.close,T)},close_targets:function(){var p="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?p+", ."+this.settings.bg_class:p},toggle_bg:function(y,C){0===this.S("."+this.settings.bg_class).length&&(this.settings.bg=p("<div />",{class:this.settings.bg_class}).appendTo("body").hide());var D=this.settings.bg.filter(":visible").length>0;C!=D&&((C==T?D:!C)?this.hide(this.settings.bg):this.show(this.settings.bg))},show:function(C,T){if(T){var D=(E=C.data(this.attr_name(!0)+"-init")||this.settings).root_element,$=this;if(0===C.parent(D).length){var P=C.wrap('<div style="display: none;" />').parent();C.on("closed.fndtn.reveal.wrapped",(function(){C.detach().appendTo(P),C.unwrap().unbind("closed.fndtn.reveal.wrapped")})),C.detach().appendTo(D)}var I=getAnimationData(E.animation);if(I.animate||(this.locked=!1),I.pop){T.top=p(y).scrollTop()-C.data("offset")+"px";var A={top:p(y).scrollTop()+C.data("css-top")+"px",opacity:1};return setTimeout((function(){return C.css(T).animate(A,E.animation_speed,"linear",(function(){$.locked=!1,C.trigger("opened.fndtn.reveal")})).addClass("open")}),E.animation_speed/2)}if(T.top=p(y).scrollTop()+C.data("css-top")+"px",I.fade){A={opacity:1};return setTimeout((function(){return C.css(T).animate(A,E.animation_speed,"linear",(function(){$.locked=!1,C.trigger("opened.fndtn.reveal")})).addClass("open")}),E.animation_speed/2)}return C.css(T).show().css({opacity:1}).addClass("open").trigger("opened.fndtn.reveal")}var E;return getAnimationData((E=this.settings).animation).fade?C.fadeIn(E.animation_speed/2):(this.locked=!1,C.show())},to_back:function(p){p.addClass("toback")},to_front:function(p){p.removeClass("toback")},hide:function(C,T){if(T){var D=C.data(this.attr_name(!0)+"-init"),$=this,P=getAnimationData((D=D||this.settings).animation);if(P.animate||(this.locked=!1),P.pop){var I={top:-p(y).scrollTop()-C.data("offset")+"px",opacity:0}
17;return setTimeout((function(){return C.animate(I,D.animation_speed,"linear",(function(){$.locked=!1,C.css(T).trigger("closed.fndtn.reveal")})).removeClass("open")}),D.animation_speed/2)}if(P.fade){I={opacity:0};return setTimeout((function(){return C.animate(I,D.animation_speed,"linear",(function(){$.locked=!1,C.css(T).trigger("closed.fndtn.reveal")})).removeClass("open")}),D.animation_speed/2)}return C.hide().css(T).removeClass("open").trigger("closed.fndtn.reveal")}return getAnimationData((D=this.settings).animation).fade?C.fadeOut(D.animation_speed/2):C.hide()},close_video:function(y){var C=p(".flex-video",y.target),T=p("iframe",C);T.length>0&&(T.attr("data-src",T[0].src),T.attr("src",T.attr("src")),C.hide())},open_video:function(y){var C=p(".flex-video",y.target),D=C.find("iframe");if(D.length>0){if("string"==typeof D.attr("data-src"))D[0].src=D.attr("data-src");else{var $=D[0].src;D[0].src=T,D[0].src=$}C.show()}},data_attr:function(p){return this.namespace.length>0?this.namespace+"-"+p:p},cache_offset:function(p){var y=p.show().height()+parseInt(p.css("top"),10)+p.scrollY;return p.hide(),y},off:function(){p(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.tab={name:"tab",version:"5.5.3",settings:{active_class:"active",callback:function(){},deep_linking:!1,scroll_to_content:!0,is_hover:!1},default_tab_hashes:[],init:function(p,y,C){var T=this;(0,this.S)("["+this.attr_name()+"] > .active > a",this.scope).each((function(){T.default_tab_hashes.push(this.hash)})),this.bindings(y,C),this.handle_location_hash_change()},events:function(){var p=this,C=this.S,usual_tab_behavior=function(y,T){C(T).closest("["+p.attr_name()+"]").data(p.attr_name(!0)+"-init").is_hover&&!Modernizr.touch||(9!==(y.keyCode||y.which)&&(y.preventDefault(),y.stopPropagation()),p.toggle_active_tab(C(T).parent()))};C(this.scope).off(".tab").on("keydown.fndtn.tab","["+this.attr_name()+"] > * > a",(function(p){var y=p.keyCode||p.which;if(13===y||32===y){usual_tab_behavior(p,this)}})).on("click.fndtn.tab","["+this.attr_name()+"] > * > a",(function(p){usual_tab_behavior(p,this)})).on("mouseenter.fndtn.tab","["+this.attr_name()+"] > * > a",(function(y){C(this).closest("["+p.attr_name()+"]").data(p.attr_name(!0)+"-init").is_hover&&p.toggle_active_tab(C(this).parent())})),C(y).on("hashchange.fndtn.tab",(function(y){y.preventDefault(),p.handle_location_hash_change()}))},handle_location_hash_change:function(){var y=this,C=this.S;C("["+this.attr_name()+"]",this.scope).each((function(){var D,$=C(this).data(y.attr_name(!0)+"-init");if($.deep_linking)if(""!=(D=$.scroll_to_content?y.scope.location.hash:y.scope.location.hash.replace("fndtn-",""))){var P=C(D);if(P.hasClass("content")&&P.parent().hasClass("tabs-content"))y.toggle_active_tab(p("["+y.attr_name()+"] > * > a[href="+D+"]").parent());else{var I=P.closest(".content").attr("id");I!=T&&y.toggle_active_tab(p("["+y.attr_name()+"] > * > a[href=#"+I+"]").parent(),D)}}else for(var A=0;A<y.default_tab_hashes.length;A++)y.toggle_active_tab(p("["+y.attr_name()+"] > * > a[href="+y.default_tab_hashes[A]+"]").parent())}))},toggle_active_tab:function(D,$){var P=this,I=P.S,A=D.closest("["+this.attr_name()+"]"),E=D.find("a"),O=D.children("a").first(),N="#"+O.attr("href").split("#")[1],j=I(N),q=D.siblings(),U=A.data(this.attr_name(!0)+"-init"),go_to_hash=function(p){(p!==(U.scroll_to_content?P.default_tab_hashes[0]:"fndtn-"+P.default_tab_hashes[0].replace("#",""))||y.location.hash)&&(y.location.hash=p)};O.data("tab-content")&&(j=I(N="#"+O.data("tab-content").split("#")[1])),U.deep_linking&&(U.scroll_to_content?(go_to_hash($||N),$==T||$==N?D.parent()[0].scrollIntoView():I(N)[0].scrollIntoView()):go_to_hash($!=T?"fndtn-"+$.replace("#",""):"fndtn-"+N.replace("#",""))),D.addClass(U.active_class).triggerHandler("opened"),E.attr({"aria-selected":"true",tabindex:0}),q.removeClass(U.active_class),q.find("a").attr({"aria-selected":"false"}),j.siblings().removeClass(U.active_class).attr({"aria-hidden":"true"}),j.addClass(U.active_class).attr("aria-hidden","false").removeAttr("tabindex"),U.callback(D),j.triggerHandler("toggled",[j]),A.triggerHandler("toggled",[D]),E.off("keydown").on("keydown",(function(y){var T,D=p(this),$=p(this).parents("li").prev().children('[role="tab"]'),P=p(this).parents("li").next().children('[role="tab"]');switch(y.keyCode){case 37:T=$;break;case 39:T=P;break;default:T=!1}T.length&&(D.attr({tabindex:"-1","aria-selected":null}),T.attr({tabindex:"0","aria-selected":!0}).focus()),p('[role="tabpanel"]').attr("aria-hidden","true"),p("#"+p(C.activeElement).attr("href").substring(1)).attr("aria-hidden",null)}))},data_attr:function(p){return this.namespace.length>0?this.namespace+"-"+p:p},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.5.3",settings:{content_class:"content",active_class:"active",multi_expand:!1,toggleable:!0,callback:function(){}},init:function(p,y,C){this.bindings(y,C)},events:function(y){var C=this,T=this.S;C.create(this.S(y)),T(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion","["+this.attr_name()+"] > dd > a, ["+this.attr_name()+"] > li > a",(function(y){var D=T(this).closest("["+C.attr_name()+"]"),$=C.attr_name()+"="+D.attr(C.attr_name()),P=D.data(C.attr_name(!0)+"-init")||C.settings,I=T("#"+this.href.split("#")[1]),A=p("> dd, > li",D),E=A.children("."+P.content_class),O=E.filter("."+P.active_class);if(y.preventDefault(),D.attr(C.attr_name())&&(E=E.add("["+$+"] dd > ."+P.content_class+", ["+$+"] li > ."+P.content_class),A=A.add("["+$+"] dd, ["+$+"] li")),P.toggleable&&I.is(O))return I.parent("dd, li").toggleClass(P.active_class,!1),I.toggleClass(P.active_class,!1),T(this).attr("aria-expanded",(function(p,y){return"true"===y?"fal
17se":"true"})),P.callback(I),I.triggerHandler("toggled",[D]),void D.triggerHandler("toggled",[I]);P.multi_expand||(E.removeClass(P.active_class),A.removeClass(P.active_class),A.children("a").attr("aria-expanded","false")),I.addClass(P.active_class).parent().addClass(P.active_class),P.callback(I),I.triggerHandler("toggled",[D]),D.triggerHandler("toggled",[I]),T(this).attr("aria-expanded","true")}))},create:function(y){var C=y,T=p("> .accordion-navigation",C),D=C.data(this.attr_name(!0)+"-init")||this.settings;T.children("a").attr("aria-expanded","false"),T.has("."+D.content_class+"."+D.active_class).addClass(D.active_class).children("a").attr("aria-expanded","true"),D.multi_expand&&y.attr("aria-multiselectable","true")},toggle:function(p){var C=void 0!==(p=void 0!==p?p:{}).selector?p.selector:"",T=void 0!==p.toggle_state?p.toggle_state:"",D=(void 0!==p.$accordion?p.$accordion:this.S(this.scope).closest("["+this.attr_name()+"]")).find("> dd"+C+", > li"+C);if(D.length<1)return y.console&&console.error("Selection not found.",C),!1;var $=this.S,P=this.settings.active_class;D.each((function(){var p=$(this),y=p.hasClass(P);(y&&"close"===T||!y&&"open"===T||""===T)&&p.find("> a").trigger("click.fndtn.accordion")}))},open:function(p){(p=void 0!==p?p:{}).toggle_state="open",this.toggle(p)},close:function(p){(p=void 0!==p?p:{}).toggle_state="close",this.toggle(p)},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(p,y,C,T){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.5.3",settings:{index:0,start_offset:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",mobile_show_parent_link:!0,is_hover:!0,scrolltop:!0,sticky_on:"all",dropdown_autoclose:!0},init:function(y,C,T){Foundation.inherit(this,"add_custom_rule register_media throttle");var D=this;D.register_media("topbar","foundation-mq-topbar"),this.bindings(C,T),D.S("["+this.attr_name()+"]",this.scope).each((function(){var y=p(this),C=y.data(D.attr_name(!0)+"-init");D.S("section, .top-bar-section",this);y.data("index",0);var T=y.parent();T.hasClass("fixed")||D.is_sticky(y,T,C)?(D.settings.sticky_class=C.sticky_class,D.settings.sticky_topbar=y,y.data("height",T.outerHeight()),y.data("stickyoffset",T.offset().top)):y.data("height",y.outerHeight()),C.assembled||D.assemble(y),C.is_hover?D.S(".has-dropdown",y).addClass("not-click"):D.S(".has-dropdown",y).removeClass("not-click"),D.add_custom_rule(".f-topbar-fixed { padding-top: "+y.data("height")+"px }"),T.hasClass("fixed")&&D.S("body").addClass("f-topbar-fixed")}))},is_sticky:function(p,y,C){var T=y.hasClass(C.sticky_class),D=matchMedia(Foundation.media_queries.small).matches,$=matchMedia(Foundation.media_queries.medium).matches,P=matchMedia(Foundation.media_queries.large).matches;return!(!T||"all"!==C.sticky_on)||(!(!(T&&this.small()&&-1!==C.sticky_on.indexOf("small")&&D)||$||P)||(!(!(T&&this.medium()&&-1!==C.sticky_on.indexOf("medium")&&D&&$)||P)||!!(T&&this.large()&&-1!==C.sticky_on.indexOf("large")&&D&&$&&P)))},toggle:function(C){var T,D=this,$=(T=C?D.S(C).closest("["+this.attr_name()+"]"):D.S("["+this.attr_name()+"]")).data(this.attr_name(!0)+"-init"),P=D.S("section, .top-bar-section",T);D.breakpoint()&&(D.rtl?(P.css({right:"0%"}),p(">.name",P).css({right:"100%"})):(P.css({left:"0%"}),p(">.name",P).css({left:"100%"})),D.S("li.moved",P).removeClass("moved"),T.data("index",0),T.toggleClass("expanded").css("height","")),$.scrolltop?T.hasClass("expanded")?T.parent().hasClass("fixed")&&($.scrolltop?(T.parent().removeClass("fixed"),T.addClass("fixed"),D.S("body").removeClass("f-topbar-fixed"),y.scrollTo(0,0)):T.parent().removeClass("expanded")):T.hasClass("fixed")&&(T.parent().addClass("fixed"),T.removeClass("fixed"),D.S("body").addClass("f-topbar-fixed")):(D.is_sticky(T,T.parent(),$)&&T.parent().addClass("fixed"),T.parent().hasClass("fixed")&&(T.hasClass("expanded")?(T.addClass("fixed"),T.parent().addClass("expanded"),D.S("body").addClass("f-topbar-fixed")):(T.removeClass("fixed"),T.parent().removeClass("expanded"),D.update_sticky_positioning())))},timer:null,events:function(C){var T=this,D=this.S;D(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",(function(p){p.preventDefault(),T.toggle(this)})).on("click.fndtn.topbar contextmenu.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',(function(y){var C=p(this).closest("li"),D=C.closest("["+T.attr_name()+"]").data(T.attr_name(!0)+"-init");D.dropdown_autoclose&&D.is_hover&&p(this).closest(".hover").removeClass("hover");!T.breakpoint()||C.hasClass("back")||C.hasClass("has-dropdown")||T.toggle(
17)})).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",(function(y){var C=D(this),$=D(y.target),P=C.closest("["+T.attr_name()+"]").data(T.attr_name(!0)+"-init");$.data("revealId")?T.toggle():T.breakpoint()||P.is_hover&&!Modernizr.touch||(y.stopImmediatePropagation(),C.hasClass("hover")?(C.removeClass("hover").find("li").removeClass("hover"),C.parents("li.hover").removeClass("hover")):(C.addClass("hover"),p(C).siblings().removeClass("hover"),"A"===$[0].nodeName&&$.parent().hasClass("has-dropdown")&&y.preventDefault()))})).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",(function(p){if(T.breakpoint()){p.preventDefault();var y=D(this),C=y.closest("["+T.attr_name()+"]"),$=C.find("section, .top-bar-section"),P=(y.next(".dropdown").outerHeight(),y.closest("li"));C.data("index",C.data("index")+1),P.addClass("moved"),T.rtl?($.css({right:-100*C.data("index")+"%"}),$.find(">.name").css({right:100*C.data("index")+"%"})):($.css({left:-100*C.data("index")+"%"}),$.find(">.name").css({left:100*C.data("index")+"%"})),C.css("height",y.siblings("ul").outerHeight(!0)+C.data("height"))}})),D(y).off(".topbar").on("resize.fndtn.topbar",T.throttle((function(){T.resize.call(T)}),50)).trigger("resize.fndtn.topbar").load((function(){D(this).trigger("resize.fndtn.topbar")})),D("body").off(".topbar").on("click.fndtn.topbar",(function(p){D(p.target).closest("li").closest("li.hover").length>0||D("["+T.attr_name()+"] li.hover").removeClass("hover")})),D(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",(function(p){p.preventDefault();var y=D(this),C=y.closest("["+T.attr_name()+"]"),$=C.find("section, .top-bar-section"),P=(C.data(T.attr_name(!0)+"-init"),y.closest("li.moved")),I=P.parent();C.data("index",C.data("index")-1),T.rtl?($.css({right:-100*C.data("index")+"%"}),$.find(">.name").css({right:100*C.data("index")+"%"})):($.css({left:-100*C.data("index")+"%"}),$.find(">.name").css({left:100*C.data("index")+"%"})),0===C.data("index")?C.css("height",""):C.css("height",I.outerHeight(!0)+C.data("height")),setTimeout((function(){P.removeClass("moved")}),300)})),D(this.scope).find(".dropdown a").focus((function(){p(this).parents(".has-dropdown").addClass("hover")})).blur((function(){p(this).parents(".has-dropdown").removeClass("hover")}))},resize:function(){var p=this;p.S("["+this.attr_name()+"]").each((function(){var y,T=p.S(this),D=T.data(p.attr_name(!0)+"-init"),$=T.parent("."+p.settings.sticky_class);if(!p.breakpoint()){var P=T.hasClass("expanded");T.css("height","").removeClass("expanded").find("li").removeClass("hover"),P&&p.toggle(T)}p.is_sticky(T,$,D)&&($.hasClass("fixed")?($.removeClass("fixed"),y=$.offset().top,p.S(C.body).hasClass("f-topbar-fixed")&&(y-=T.data("height")),T.data("stickyoffset",y),$.addClass("fixed")):(y=$.offset().top,T.data("stickyoffset",y)))}))},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},small:function(){return matchMedia(Foundation.media_queries.small).matches},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},assemble:function(y){var C=this,T=y.data(this.attr_name(!0)+"-init"),D=C.S("section, .top-bar-section",y);D.detach(),C.S(".has-dropdown>a",D).each((function(){var y,D=C.S(this),$=D.siblings(".dropdown"),P=D.attr("href");$.find(".title.back").length||(y=1==T.mobile_show_parent_link&&P?p('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link hide-for-medium-up"><a class="parent-link js-generated" href="'+P+'">'+D.html()+"</a></li>"):p('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>'),1==T.custom_back_text?p("h5>a",y).html(T.back_text):p("h5>a",y).html("&laquo; "+D.html()),$.prepend(y))})),D.appendTo(y),this.sticky(),this.assembled(y)},assembled:function(y){y.data(this.attr_name(!0),p.extend({},y.data(this.attr_name(!0)),{assembled:!0}))},height:function(y){var C=0,T=this;return p("> li",y).each((function(){C+=T.S(this).outerHeight(!0)})),C},sticky:function(){var p=this;this.S(y).on("scroll",(function(){p.update_sticky_positioning()}))},update_sticky_positioning:function(){var p="."+this.settings.sticky_class,C=this.S(y),T=this;if(T.settings.sticky_topbar&&T.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)){var D=this.settings.sticky_topbar.data("stickyoffset")+this.settings.start_offset;T.S(p).hasClass("expanded")||(C.scrollTop()>D?T.S(p).hasClass("fixed")||(T.S(p).addClass("fixed"),T.S("body").addClass("f-topbar-fixed")):C.scrollTop()<=D&&T.S(p).hasClass("fixed")&&(T.S(p).removeClass("fixed"),T.S("body").removeClass("f-topbar-fixed")))}},off:function(){this.S(this.scope).off(".fndtn.topbar"),this.S(y).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,window,window.document),function(p){"use strict";"function"==typeof define&&define.amd?define(["jquery"],p):"undefined"!=typeof exports?module.exports=p(require("jquery")):p(jQuery)}((function(p){"use strict";var y,C=window.Slick||{};y=0,(C=function C(T,D){var $,P=this;P.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:p(T),appendDots:p(T),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(p,y){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(y+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},P.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
17sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},p.extend(P,P.initials),P.activeBreakpoint=null,P.animType=null,P.animProp=null,P.breakpoints=[],P.breakpointSettings=[],P.cssTransitions=!1,P.hidden="hidden",P.paused=!1,P.positionProp=null,P.respondTo=null,P.rowCount=1,P.shouldClick=!0,P.$slider=p(T),P.$slidesCache=null,P.transformType=null,P.transitionType=null,P.visibilityChange="visibilitychange",P.windowWidth=0,P.windowTimer=null,$=p(T).data("slick")||{},P.options=p.extend({},P.defaults,$,D),P.currentSlide=P.options.initialSlide,P.originalSettings=P.options,void 0!==document.mozHidden?(P.hidden="mozHidden",P.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(P.hidden="webkitHidden",P.visibilityChange="webkitvisibilitychange"),P.autoPlay=p.proxy(P.autoPlay,P),P.autoPlayClear=p.proxy(P.autoPlayClear,P),P.changeSlide=p.proxy(P.changeSlide,P),P.clickHandler=p.proxy(P.clickHandler,P),P.selectHandler=p.proxy(P.selectHandler,P),P.setPosition=p.proxy(P.setPosition,P),P.swipeHandler=p.proxy(P.swipeHandler,P),P.dragHandler=p.proxy(P.dragHandler,P),P.keyHandler=p.proxy(P.keyHandler,P),P.autoPlayIterator=p.proxy(P.autoPlayIterator,P),P.instanceUid=y++,P.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,P.registerBreakpoints(),P.init(!0),P.checkResponsive(!0)}).prototype.addSlide=C.prototype.slickAdd=function(y,C,T){var D=this;if("boolean"==typeof C)T=C,C=null;else if(C<0||C>=D.slideCount)return!1;D.unload(),"number"==typeof C?0===C&&0===D.$slides.length?p(y).appendTo(D.$slideTrack):T?p(y).insertBefore(D.$slides.eq(C)):p(y).insertAfter(D.$slides.eq(C)):!0===T?p(y).prependTo(D.$slideTrack):p(y).appendTo(D.$slideTrack),D.$slides=D.$slideTrack.children(this.options.slide),D.$slideTrack.children(this.options.slide).detach(),D.$slideTrack.append(D.$slides),D.$slides.each((function(y,C){p(C).attr("data-slick-index",y)})),D.$slidesCache=D.$slides,D.reinit()},C.prototype.animateHeight=function(){var p=this;if(1===p.options.slidesToShow&&!0===p.options.adaptiveHeight&&!1===p.options.vertical){var y=p.$slides.eq(p.currentSlide).outerHeight(!0);p.$list.animate({height:y},p.options.speed)}},C.prototype.animateSlide=function(y,C){var T={},D=this;D.animateHeight(),!0===D.options.rtl&&!1===D.options.vertical&&(y=-y),!1===D.transformsEnabled?!1===D.options.vertical?D.$slideTrack.animate({left:y},D.options.speed,D.options.easing,C):D.$slideTrack.animate({top:y},D.options.speed,D.options.easing,C):!1===D.cssTransitions?(!0===D.options.rtl&&(D.currentLeft=-D.currentLeft),p({animStart:D.currentLeft}).animate({animStart:y},{duration:D.options.speed,easing:D.options.easing,step:function(p){p=Math.ceil(p),!1===D.options.vertical?(T[D.animType]="translate("+p+"px, 0px)",D.$slideTrack.css(T)):(T[D.animType]="translate(0px,"+p+"px)",D.$slideTrack.css(T))},complete:function(){C&&C.call()}})):(D.applyTransition(),y=Math.ceil(y),!1===D.options.vertical?T[D.animType]="translate3d("+y+"px, 0px, 0px)":T[D.animType]="translate3d(0px,"+y+"px, 0px)",D.$slideTrack.css(T),C&&setTimeout((function(){D.disableTransition(),C.call()}),D.options.speed))},C.prototype.asNavFor=function(y){var C=this.options.asNavFor;C&&null!==C&&(C=p(C).not(this.$slider)),null!==C&&"object"==typeof C&&C.each((function(){var C=p(this).slick("getSlick");C.unslicked||C.slideHandler(y,!0)}))},C.prototype.applyTransition=function(p){var y=this,C={};!1===y.options.fade?C[y.transitionType]=y.transformType+" "+y.options.speed+"ms "+y.options.cssEase:C[y.transitionType]="opacity "+y.options.speed+"ms "+y.options.cssEase,!1===y.options.fade?y.$slideTrack.css(C):y.$slides.eq(p).css(C)},C.prototype.autoPlay=function(){var p=this;p.autoPlayTimer&&clearInterval(p.autoPlayTimer),p.slideCount>p.options.slidesToShow&&!0!==p.paused&&(p.autoPlayTimer=setInterval(p.autoPlayIterator,p.options.autoplaySpeed))},C.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},C.prototype.autoPlayIterator=function(){var p=this;!1===p.options.infinite?1===p.direction?(p.currentSlide+1===p.slideCount-1&&(p.direction=0),p.slideHandler(p.currentSlide+p.options.slidesToScroll)):(p.currentSlide-1==0&&(p.direction=1),p.slideHandler(p.currentSlide-p.options.slidesToScroll)):p.slideHandler(p.currentSlide+p.options.slidesToScroll)},C.prototype.buildArrows=function(){var y=this;!0===y.options.arrows&&(y.$prevArrow=p(y.options.prevArrow).addClass("slick-arrow"),y.$nextArrow=p(y.options.nextArrow).addClass("slick-arrow"),y.slideCount>y.options.slidesToShow?(y.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),y.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),y.htmlExpr.test(y.options.prevArrow)&&y.$prevArrow.prependTo(y.options.appendArrows),y.htmlExpr.test(y.options.nextArrow)&&y.$nextArrow.appendTo(y.options.appendArrows),!0!==y.options.infinite&&y.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):y.$prevArrow.add(y.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},C.prototype.buildDots=function(){var y,C,T=this;if(!0===T.options.dots&&T.slideCount>T.options.slidesToShow){for(C='<ul class="'+T.options.dotsClass+'">',y=0;y<=T.getDotCount();y+=1)C+="<li>"+T.options.customPaging.call(this,T,y)+"</li>";C+="</ul>",T.$dots=p(C).appendTo(T.options.appendDots),T.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},C.prototype.buildOut=function(){var y=this;y.$slides=y.$slider.children(y.options.slide+":not(.slick-cloned)").addClass("slick-slide"),y.slideCount=y.$slides.length,y.$slides.each((function(y,C){p(C).attr("data-slick-index",y).data("originalStyling",p(C).attr("style")||"")})),y.$slider.addClass("slick-slider"),y.$slideTrack=0===y.slideCount?p('<div class="slick-track"/>').appendTo(y.$slider):y.$slides.wrapAll('<div class="slick-track"/>').parent(),y.$list=y.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),y.$slideTrack.css("opacity",0),!0!==y.options.centerMode&&!0!==y.options.swipeToSlide||(y.options.slidesToScroll=1),p("img[data-lazy]",y.$slider).not("[src]").addClass("slick-loading"),y.setupInfinite(),y.buildArrows(),y.buildDots(),y.updateDots(),y.setSlideClasses("number"==typeof y.currentSlide?y.currentSlide:0),!0===y.options.draggable&&y.$list.addClass("draggable")},C.prototype.buildRows=function(){var p,y,C,T,D,$,P,I=this;if(T=document.createDocumentFragment(),$=I.$slider.children(),I.options.rows>
vendor: 3,215 bytes, line 17
171){for(P=I.options.slidesPerRow*I.options.rows,D=Math.ceil($.length/P),p=0;p<D;p++){var A=document.createElement("div");for(y=0;y<I.options.rows;y++){var E=document.createElement("div");for(C=0;C<I.options.slidesPerRow;C++){var O=p*P+(y*I.options.slidesPerRow+C);$.get(O)&&E.appendChild($.get(O))}A.appendChild(E)}T.appendChild(A)}I.$slider.html(T),I.$slider.children().children().children().css({width:100/I.options.slidesPerRow+"%",display:"inline-block"})}},C.prototype.checkResponsive=function(y,C){var T,D,$,P=this,I=!1,A=P.$slider.width(),E=window.innerWidth||p(window).width();if("window"===P.respondTo?$=E:"slider"===P.respondTo?$=A:"min"===P.respondTo&&($=Math.min(E,A)),P.options.responsive&&P.options.responsive.length&&null!==P.options.responsive){for(T in D=null,P.breakpoints)P.breakpoints.hasOwnProperty(T)&&(!1===P.originalSettings.mobileFirst?$<P.breakpoints[T]&&(D=P.breakpoints[T]):$>P.breakpoints[T]&&(D=P.breakpoints[T]));null!==D?null!==P.activeBreakpoint?(D!==P.activeBreakpoint||C)&&(P.activeBreakpoint=D,"unslick"===P.breakpointSettings[D]?P.unslick(D):(P.options=p.extend({},P.originalSettings,P.breakpointSettings[D]),!0===y&&(P.currentSlide=P.options.initialSlide),P.refresh(y)),I=D):(P.activeBreakpoint=D,"unslick"===P.breakpointSettings[D]?P.unslick(D):(P.options=p.extend({},P.originalSettings,P.breakpointSettings[D]),!0===y&&(P.currentSlide=P.options.initialSlide),P.refresh(y)),I=D):null!==P.activeBreakpoint&&(P.activeBreakpoint=null,P.options=P.originalSettings,!0===y&&(P.currentSlide=P.options.initialSlide),P.refresh(y),I=D),y||!1===I||P.$slider.trigger("breakpoint",[P,I])}},C.prototype.changeSlide=function(y,C){var T,D,$=this,P=p(y.target);switch(P.is("a")&&y.preventDefault(),P.is("li")||(P=P.closest("li")),T=$.slideCount%$.options.slidesToScroll!=0?0:($.slideCount-$.currentSlide)%$.options.slidesToScroll,y.data.message){case"previous":D=0===T?$.options.slidesToScroll:$.options.slidesToShow-T,$.slideCount>$.options.slidesToShow&&$.slideHandler($.currentSlide-D,!1,C);break;case"next":D=0===T?$.options.slidesToScroll:T,$.slideCount>$.options.slidesToShow&&$.slideHandler($.currentSlide+D,!1,C);break;case"index":var I=0===y.data.index?0:y.data.index||P.index()*$.options.slidesToScroll;$.slideHandler($.checkNavigable(I),!1,C),P.children().trigger("focus");break;default:return}},C.prototype.checkNavigable=function(p){var y,C;if(C=0,p>(y=this.getNavigableIndexes())[y.length-1])p=y[y.length-1];else for(var T in y){if(p<y[T]){p=C;break}C=y[T]}return p},C.prototype.cleanUpEvents=function(){var y=this;y.options.dots&&null!==y.$dots&&(p("li",y.$dots).off("click.slick",y.changeSlide),!0===y.options.pauseOnDotsHover&&!0===y.options.autoplay&&p("li",y.$dots).off("mouseenter.slick",p.proxy(y.setPaused,y,!0)).off("mouseleave.slick",p.proxy(y.setPaused,y,!1))),!0===y.options.arrows&&y.slideCount>y.options.slidesToShow&&(y.$prevArrow&&y.$prevArrow.off("click.slick",y.changeSlide),y.$nextArrow&&y.$nextArrow.off("click.slick",y.changeSlide)),y.$list.off("touchstart.slick mousedown.slick",y.swipeHandler),y.$list.off("touchmove.slick mousemove.slick",y.swipeHandler),y.$list.off("touchend.slick mouseup.slick",y.swipeHandler),y.$list.off("touchcancel.slick mouseleave.
17slick",y.swipeHandler),y.$list.off("click.slick",y.clickHandler),p(document).off(y.visibilityChange,y.visibility),y.$list.off("mouseenter.slick",p.proxy(y.setPaused,y,!0)),y.$list.off("mouseleave.slick",p.proxy(y.setPaused,y,!1)),!0===y.options.accessibility&&y.$list.off("keydown.slick",y.keyHandler),!0===y.options.focusOnSelect&&p(y.$slideTrack).children().off("click.slick",y.selectHandler),p(window).off("orientationchange.slick.slick-"+y.instanceUid,y.orientationChange),p(window).off("resize.slick.slick-"+y.instanceUid,y.resize),p("[draggable!=true]",y.$slideTrack).off("dragstart",y.preventDefault),p(window).off("load.slick.slick-"+y.instanceUid,y.setPosition),p(document).off("ready.slick.slick-"+y.instanceUid,y.setPosition)},C.prototype.cleanUpRows=function(){var p,y=this;y.options.rows>1&&((p=y.$slides.children().children()).removeAttr("style"),y.$slider.html(p))},C.prototype.clickHandler=function(p){!1===this.shouldClick&&(p.stopImmediatePropagation(),p.stopPropagation(),p.preventDefault())},C.prototype.destroy=function(y){var C=this;C.autoPlayClear(),C.touchObject={},C.cleanUpEvents(),p(".slick-cloned",C.$slider).detach(),C.$dots&&C.$dots.remove(),C.$prevArrow&&C.$prevArrow.length&&(C.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),C.htmlExpr.test(C.options.prevArrow)&&C.$prevArrow.remove()),C.$nextArrow&&C.$nextArrow.length&&(C.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),C.htmlExpr.test(C.options.nextArrow)&&C.$nextArrow.remove()),C.$slides&&(C.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){p(this).attr("style",p(this).data("originalStyling"))})),C.$slideTrack.children(this.options.slide).detach(),C.$slideTrack.detach(),C.$list.detach(),C.$slider.append(C.$slides)),C.cleanUpRows(),C.$slider.removeClass("slick-slider"),C.$slider.removeClass("slick-initialized"),C.unslicked=!0,y||C.$slider.trigger("destroy",[C])},C.prototype.disableTransition=function(p){var y=this,C={};C[y.transitionType]="",!1===y.options.fade?y.$slideTrack.css(C):y.$slides.eq(p).css(C)},C.prototype.fadeSlide=function(p,y){var C=this;!1===C.cssTransitions?(C.$slides.eq(p).css({zIndex:C.options.zIndex}),C.$slides.eq(p).animate({opacity:1},C.options.speed,C.options.easing,y)):(C.applyTransition(p),C.$slides.eq(p).css({opacity:1,zIndex:C.options.zIndex}),y&&setTimeout((function(){C.disableTransition(p),y.call()}),C.options.speed))},C.prototype.fadeSlideOut=function(p){var y=this;!1===y.cssTransitions?y.$slides.eq(p).animate({opacity:0,zIndex:y.options.zIndex-2},y.options.speed,y.options.easing):(y.applyTransition(p),y.$slides.eq(p).css({opacity:0,zIndex:y.options.zIndex-2}))},C.prototype.filterSlides=C.prototype.slickFilter=function(p){var y=this;null!==p&&(y.$slidesCache=y.$slides,y.unload(),y.$slideTrack.children(this.options.slide).detach(),y.$slidesCache.filter(p).appendTo(y.$slideTrack),y.reinit())},C.prototype.getCurrent=C.prototype.slickCurrentSlide=function(){return this.currentSlide},C.prototype.getDotCount=function(){var p=this,y=0,C=0,T=0;if(!0===p.options.infinite)for(;y<p.slideCount;)++T,y=C+p.options.slidesToScroll,C+=p.options.slidesToScroll<=p.options.slidesToShow?p.options.slidesToScroll:p.options.slidesToShow;else if(!0===p.options.centerMode)T=p.slideCount;else for(;y<p.slideCount;)++T,y=C+p.options.slidesToScroll,C+=p.options.slidesToScroll<=p.options.slidesToShow?p.options.slidesToScroll:p.options.slidesToShow;return T-1},C.prototype.getLeft=function(p){var y,C,T,D=this,$=0;return D.slideOffset=0,C=D.$slides.first().outerHeight(!0),!0===D.options.infinite?(D.slideCount>D.options.slidesToShow&&(D.slideOffset=D.slideWidth*D.options.slidesToShow*-1,$=C*D.options.slidesToShow*-1),D.slideCount%D.options.slidesToScroll!=0&&p+D.options.slidesToScroll>D.slideCount&&D.slideCount>D.options.slidesToShow&&(p>D.slideCount?(D.slideOffset=(D.options.slidesToShow-(p-D.slideCount))*D.slideWidth*-1,$=(D.options.slidesToShow-(p-D.slideCount))*C*-1):(D.slideOffset=D.slideCount%D.options.slidesToScroll*D.slideWidth*-1,$=D.slideCount%D.options.slidesToScroll*C*-1))):p+D.options.slidesToShow>D.slideCount&&(D.slideOffset=(p+D.options.slidesToShow-D.slideCount)*D.slideWidth,$=(p+D.options.slidesToShow-D.slideCount)*C),D.slideCount<=D.options.slidesToShow&&(D.slideOffset=0,$=0),!0===D.options.centerMode&&!0===D.options.infinite?D.slideOffset+=D.slideWidth*Math.floor(D.options.slidesToShow/2)-D.slideWidth:!0===D.options.centerMode&&(D.slideOffset=0,D.slideOffset+=D.slideWidth*Math.floor(D.options.slidesToShow/2)),y=!1===D.options.vertical?p*D.slideWidth*-1+D.slideOffset:p*C*-1+$,!0===D.options.variableWidth&&(T=D.slideCount<=D.options.slidesToShow||!1===D.options.infinite?D.$slideTrack.children(".slick-slide").eq(p):D.$slideTrack.children(".slick-slide").eq(p+D.options.slidesToShow),y=!0===D.options.rtl?T[0]?-1*(D.$slideTrack.width()-T[0].offsetLeft-T.width()):0:T[0]?-1*T[0].offsetLeft:0,!0===D.options.centerMode&&(T=D.slideCount<=D.options.slidesToShow||!1===D.options.infinite?D.$slideTrack.children(".slick-slide").eq(p):D.$slideTrack.children(".slick-slide").eq(p+D.options.slidesToShow+1),y=!0===D.options.rtl?T[0]?-1*(D.$slideTrack.width()-T[0].offsetLeft-T.width()):0:T[0]?-1*T[0].offsetLeft:0,y+=(D.$list.width()-T.outerWidth())/2)),y},C.prototype.getOption=C.prototype.slickGetOption=function(p){return this.options[p]},C.prototype.getNavigableIndexes=function(){var p,y=this,C=0,T=0,D=[];for(!1===y.options.infinite?p=y.slideCount:(C=-1*y.options.slidesToScroll,T=-1*y.options.slidesToScroll,p=2*y.slideCount);C<p;)D.push(C),C=T+y.options.slidesToScroll,T+=y.options.slidesToScroll<=y.options.slidesToShow?y.options.slidesToScroll:y.options.slidesToShow;return D},C.prototype.getSlick=function(){return this},C.prototype.getSlideCount=function(){var y,C,T=this;return C=!0===T.options.centerMode?T.slideWidth*Math.floor(T.options.slidesToShow/2):0,!0===T.options.swipeToSlide?(T.$slideTrack.find(".slick-slide").each((function(D,$){if($.offsetLeft-C+p($).outerWidth()/2>-1*T.swipeLeft)return y=$,!1})),Math.abs(p(y).attr("data-slick-index")-T.currentSlide)||1):T.options.slidesToScroll},C.prototype.goTo=C.prototype.slickGoTo=function(p,y){this.changeSlide({data:{message:"index",index:
vendor: 1,253 bytes, line 17
17parseInt(p)}},y)},C.prototype.init=function(y){var C=this;p(C.$slider).hasClass("slick-initialized")||(p(C.$slider).addClass("slick-initialized"),C.buildRows(),C.buildOut(),C.setProps(),C.startLoad(),C.loadSlider(),C.initializeEvents(),C.updateArrows(),C.updateDots()),y&&C.$slider.trigger("init",[C]),!0===C.options.accessibility&&C.initADA()},C.prototype.initArrowEvents=function(){var p=this;!0===p.options.arrows&&p.slideCount>p.options.slidesToShow&&(p.$prevArrow.on("click.slick",{message:"previous"},p.changeSlide),p.$nextArrow.on("click.slick",{message:"next"},p.changeSlide))},C.prototype.initDotEvents=function(){var y=this;!0===y.options.dots&&y.slideCount>y.options.slidesToShow&&p("li",y.$dots).on("click.slick",{message:"index"},y.changeSlide),!0===y.options.dots&&!0===y.options.pauseOnDotsHover&&!0===y.options.autoplay&&p("li",y.$dots).on("mouseenter.slick",p.proxy(y.setPaused,y,!0)).on("mouseleave.slick",p.proxy(y.setPaused,y,!1))},C.prototype.initializeEvents=function(){var y=this;y.initArrowEvents(),y.initDotEvents(),y.$list.on("touchstart.slick mousedown.slick",{action:"start"},y.swipeHandler),y.$list.on("touchmove.slick mousemove.slick",{action:"move"},y.swipeHandler),y.$list.on("touchend.slick mouseup.slick",{action:"end"}
17,y.swipeHandler),y.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},y.swipeHandler),y.$list.on("click.slick",y.clickHandler),p(document).on(y.visibilityChange,p.proxy(y.visibility,y)),y.$list.on("mouseenter.slick",p.proxy(y.setPaused,y,!0)),y.$list.on("mouseleave.slick",p.proxy(y.setPaused,y,!1)),!0===y.options.accessibility&&y.$list.on("keydown.slick",y.keyHandler),!0===y.options.focusOnSelect&&p(y.$slideTrack).children().on("click.slick",y.selectHandler),p(window).on("orientationchange.slick.slick-"+y.instanceUid,p.proxy(y.orientationChange,y)),p(window).on("resize.slick.slick-"+y.instanceUid,p.proxy(y.resize,y)),p("[draggable!=true]",y.$slideTrack).on("dragstart",y.preventDefault),p(window).on("load.slick.slick-"+y.instanceUid,y.setPosition),p(document).on("ready.slick.slick-"+y.instanceUid,y.setPosition)},C.prototype.initUI=function(){var p=this;!0===p.options.arrows&&p.slideCount>p.options.slidesToShow&&(p.$prevArrow.show(),p.$nextArrow.show()),!0===p.options.dots&&p.slideCount>p.options.slidesToShow&&p.$dots.show(),!0===p.options.autoplay&&p.autoPlay()},C.prototype.keyHandler=function(p){var y=this;p.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===p.keyCode&&!0===y.options.accessibility?y.changeSlide({data:{message:"previous"}}):39===p.keyCode&&!0===y.options.accessibility&&y.changeSlide({data:{message:"next"}}))},C.prototype.lazyLoad=function(){var y,C,T=this;function loadImages(y){p("img[data-lazy]",y).each((function(){var y=p(this),C=p(this).attr("data-lazy"),T=document.createElement("img");T.onload=function(){y.animate({opacity:0}
17,100,(function(){y.attr("src",C).animate({opacity:1},200,(function(){y.removeAttr("data-lazy").removeClass("slick-loading")}))}))},T.src=C}))}!0===T.options.centerMode?!0===T.options.infinite?C=(y=T.currentSlide+(T.options.slidesToShow/2+1))+T.options.slidesToShow+2:(y=Math.max(0,T.currentSlide-(T.options.slidesToShow/2+1)),C=T.options.slidesToShow/2+1+2+T.currentSlide):(C=(y=T.options.infinite?T.options.slidesToShow+T.currentSlide:T.currentSlide)+T.options.slidesToShow,!0===T.options.fade&&(y>0&&y--,C<=T.slideCount&&C++)),loadImages(T.$slider.find(".slick-slide").slice(y,C)),T.slideCount<=T.options.slidesToShow?loadImages(T.$slider.find(".slick-slide")):T.currentSlide>=T.slideCount-T.options.slidesToShow?loadImages(T.$slider.find(".slick-cloned").slice(0,T.options.slidesToShow)):0===T.currentSlide&&loadImages(T.$slider.find(".slick-cloned").slice(-1*T.options.slidesToShow))},C.prototype.loadSlider=function(){var p=this;p.setPosition(),p.$slideTrack.css({opacity:1}),p.$slider.removeClass("slick-loading"),p.initUI(),"progressive"===p.options.lazyLoad&&p.progressiveLazyLoad()},C.prototype.next=C.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},C.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},C.prototype.pause=C.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},C.prototype.play=C.prototype.slickPlay=function(){this.paused=!1,this.autoPlay()},C.prototype.postSlide=function(p){var y=this;y.$slider.trigger("afterChange",[y,p]),y.animating=!1,y.setPosition(),y.swipeLeft=null,!0===y.options.autoplay&&!1===y.paused&&y.autoPlay(),!0===y.options.accessibility&&y.initADA()},C.prototype.prev=C.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},C.prototype.preventDefault=function(p){p.preventDefault()},C.prototype.progressiveLazyLoad=function(){var y,C=this;p("img[data-lazy]",C.$slider).length>0&&((y=p("img[data-lazy]",C.$slider).first()).attr("src",null),y.attr("src",y.attr("data-lazy")).removeClass("slick-loading").load((function(){y.removeAttr("data-lazy"),C.progressiveLazyLoad(),!0===C.options.adaptiveHeight&&C.setPosition()})).error((function(){y.removeAttr("data-lazy"),C.progressiveLazyLoad()})))},C.prototype.refresh=function(y){var C,T,D=this;T=D.slideCount-D.options.slidesToShow,D.options.infinite||(D.slideCount<=D.options.slidesToShow?D.currentSlide=0:D.currentSlide>T&&(D.currentSlide=T)),C=D.currentSlide,D.destroy(!0),p.extend(D,D.initials,{currentSlide:C}),D.init(),y||D.changeSlide({data:{message:"index",index:C}},!1)},C.prototype.registerBreakpoints=function(){var y,C,T,D=this,$=D.options.responsive||null;if("array"===p.type($)&&$.length){for(y in D.respondTo=D.options.respondTo||"window",$)if(T=D.breakpoints.length-1,C=$[y].breakpoint,$.hasOwnProperty(y)){for(;T>=0;)D.breakpoints[T]&&D.breakpoints[T]===C&&D.breakpoints.splice(T,1),T--;D.breakpoints.push(C),D.breakpointSettings[C]=$[y].settings}D.breakpoints.sort((function(p,y){return D.options.mobileFirst?p-y:y-p}))}},C.prototype.reinit=function(){var y=this;y.$slides=y.$slideTrack.children(y.options.slide).addClass("slick-slide"),y.slideCount=y.$slides.length,y.currentSlide>=y.slideCount&&0!==y.currentSlide&&(y.currentSlide=y.currentSlide-y.options.slidesToScroll),y.slideCount<=y.options.slidesToShow&&(y.currentSlide=0),y.registerBreakpoints(),y.setProps(),y.setupInfinite(),y.buildArrows(),y.updateArrows(),y.initArrowEvents(),y.buildDots(),y.updateDots(),y.initDotEvents(),y.checkResponsive(!1,!0),!0===y.options.focusOnSelect&&p(y.$slideTrack).children().on("click.slick",y.selectHandler),y.setSlideClasses(0),y.setPosition(),y.$slider.trigger("reInit",[y]),!0===y.options.autoplay&&y.focusHandler()},C.prototype.resize=function(){var y=this;p(window).width()!==y.windowWidth&&(clearTimeout(y.windowDelay),y.windowDelay=window.setTimeout((function(){y.windowWidth=p(window).width(),y.checkResponsive(),y.unslicked||y.setPosition()}),50))},C.prototype.removeSlide=C.prototype.slickRemove=function(p,y,C){var T=this;if(p="boolean"==typeof p?!0===(y=p)?0:T.slideCount-1:!0===y?--p:p,T.slideCount<1||p<0||p>T.slideCount-1)return!1;T.unload(),!0===C?T.$slideTrack.children().remove():T.$slideTrack.children(this.options.slide).eq(p).remove(),T.$slides=T.$slideTrack.children(this.options.slide),T.$slideTrack.children(this.options.slide).detach(),T.$slideTrack.append(T.$slides),T.$slidesCache=T.$slides,T.reinit()},C.prototype.setCSS=function(p){var y,C,T=this,D={};!0===T.options.rtl&&(p=-p),y="left"==T.positionProp?Math.ceil(p)+"px":"0px",C="top"==T.positionProp?Math.ceil(p)+"px":"0px",D[T.positionProp]=p,!1===T.transformsEnabled?T.$slideTrack.css(D):(D={},!1===T.cssTransitions?(D[T.animType]="translate("+y+", "+C+")",T.$slideTrack.css(D)):(D[T.animType]="translate3d("+y+", "+C+", 0px)",T.$slideTrack.css(D)))},C.prototype.setDimensions=function(){var p=this;!1===p.options.vertical?!0===p.options.centerMode&&p.$list.css({padding:"0px "+p.options.centerPadding}):(p.$list.height(p.$slides.first().outerHeight(!0)*p.options.slidesToShow),!0===p.options.centerMode&&p.$list.css({padding:p.options.centerPadding+" 0px"})),p.listWidth=p.$list.width(),p.listHeight=p.$list.height(),!1===p.options.vertical&&!1===p.options.variableWidth?(p.slideWidth=Math.ceil(p.listWidth/p.options.slidesToShow),p.$slideTrack.width(Math.ceil(p.slideWidth*p.$slideTrack.children(".slick-slide").length))):!0===p.options.variableWidth?p.$slideTrack.width(5e3*p.slideCount):(p.slideWidth=Math.ceil(p.listWidth),p.$slideTrack.height(Math.ceil(p.$slides.first().outerHeight(!0)*p.$slideTrack.children(".slick-slide").length)));var y=p.$slides.first().outerWidth(!0)-p.$slides.first().width();
17!1===p.options.variableWidth&&p.$slideTrack.children(".slick-slide").width(p.slideWidth-y)},C.prototype.setFade=function(){var y,C=this;C.$slides.each((function(T,D){y=C.slideWidth*T*-1,!0===C.options.rtl?p(D).css({position:"relative",right:y,top:0,zIndex:C.options.zIndex-2,opacity:0}):p(D).css({position:"relative",left:y,top:0,zIndex:C.options.zIndex-2,opacity:0})})),C.$slides.eq(C.currentSlide).css({zIndex:C.options.zIndex-1,opacity:1})},C.prototype.setHeight=function(){var p=this;if(1===p.options.slidesToShow&&!0===p.options.adaptiveHeight&&!1===p.options.vertical){var y=p.$slides.eq(p.currentSlide).outerHeight(!0);p.$list.css("height",y)}},C.prototype.setOption=C.prototype.slickSetOption=function(y,C,T){var D,$,P=this;if("responsive"===y&&"array"===p.type(C))for($ in C)if("array"!==p.type(P.options.responsive))P.options.responsive=[C[$]];else{for(D=P.options.responsive.length-1;D>=0;)P.options.responsive[D].breakpoint===C[$].breakpoint&&P.options.responsive.splice(D,1),D--;P.options.responsive.push(C[$])}else P.options[y]=C;!0===T&&(P.unload(),P.reinit())},C.prototype.setPosition=function(){var p=this;p.setDimensions(),p.setHeight(),!1===p.options.fade?p.setCSS(p.getLeft(p.currentSlide)):p.setFade(),p.$slider.trigger("setPosition",[p])},C.prototype.setProps=function(){var p=this,y=document.body.style;p.positionProp=!0===p.options.vertical?"top":"left","top"===p.positionProp?p.$slider.addClass("slick-vertical"):p.$slider.removeClass("slick-vertical"),void 0===y.WebkitTransition&&void 0===y.MozTransition&&void 0===y.msTransition||!0===p.options.useCSS&&(p.cssTransitions=!0),p.options.fade&&("number"==typeof p.options.zIndex?p.options.zIndex<3&&(p.options.zIndex=3):p.options.zIndex=p.defaults.zIndex),void 0!==y.OTransform&&(p.animType="OTransform",p.transformType="-o-transform",p.transitionType="OTransition",void 0===y.perspectiveProperty&&void 0===y.webkitPerspective&&(p.animType=!1)),void 0!==y.MozTransform&&(p.animType="MozTransform",p.transformType="-moz-transform",p.transitionType="MozTransition",void 0===y.perspectiveProperty&&void 0===y.MozPerspective&&(p.animType=!1)),void 0!==y.webkitTransform&&(p.animType="webkitTransform",p.transformType="-webkit-transform",p.transitionType="webkitTransition",void 0===y.perspectiveProperty&&void 0===y.webkitPerspective&&(p.animType=!1)),void 0!==y.msTransform&&(p.animType="msTransform",p.transformType="-ms-transform",p.transitionType="msTransition",void 0===y.msTransform&&(p.animType=!1)),void 0!==y.transform&&!1!==p.animType&&(p.animType="transform",p.transformType="transform",p.transitionType="transition"),p.transformsEnabled=p.options.useTransform&&null!==p.animType&&!1!==p.animType},C.prototype.setSlideClasses=function(p){var y,C,T,D,$=this;C=$.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),$.$slides.eq(p).addClass("slick-current"),!0===$.options.centerMode?(y=Math.floor($.options.slidesToShow/2),!0===$.options.infinite&&(p>=y&&p<=$.slideCount-1-y?$.$slides.slice(p-y,p+y+1).addClass("slick-active").attr("aria-hidden","false"):(T=$.options.slidesToShow+p,C.slice(T-y+1,T+y+2).addClass("slick-active").attr("aria-hidden","false")),0===p?C.eq(C.length-1-$.options.slidesToShow).addClass("slick-center"):p===$.slideCount-1&&C.eq($.options.slidesToShow).addClass("slick-center")),$.$slides.eq(p).addClass("slick-center")):p>=0&&p<=$.slideCount-$.options.slidesToShow?$.$slides.slice(p,p+$.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):C.length<=$.options.slidesToShow?C.addClass("slick-active").attr("aria-hidden","false"):(D=$.slideCount%$.options.slidesToShow,T=!0===$.options.infinite?$.options.slidesToShow+p:p,$.options.slidesToShow==$.options.slidesToScroll&&$.slideCount-p<$.options.slidesToShow?C.slice(T-($.options.slidesToShow-D),T+D).addClass("slick-active").attr("aria-hidden","false"):C.slice(T,T+$.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===$.options.lazyLoad&&$.lazyLoad()},C.prototype.setupInfinite=function(){var y,C,T,D=this;if(!0===D.options.fade&&(D.options.centerMode=!1),!0===D.options.infinite&&!1===D.options.fade&&(C=null,D.slideCount>D.options.slidesToShow)){for(T=!0===D.options.centerMode?D.options.slidesToShow+1:D.options.slidesToShow,y=D.slideCount;y>D.slideCount-T;y-=1)C=y-1,p(D.$slides[C]).clone(!0).attr("id","").attr("data-slick-index",C-D.slideCount).prependTo(D.$slideTrack).addClass("slick-cloned");for(y=0;y<T;y+=1)C=y,p(D.$slides[C]).clone(!0).attr("id","").attr("data-slick-index",C+D.slideCount).appendTo(D.$slideTrack).addClass("slick-cloned");D.$slideTrack.find(".slick-cloned").find("[id]").each((function(){p(this).attr("id","")}))}},C.prototype.setPaused=function(p){var y=this;!0===y.options.autoplay&&!0===y.options.pauseOnHover&&(y.paused=p,p?y.autoPlayClear():y.autoPlay())},C.prototype.selectHandler=function(y){var C=this,T=p(y.target).is(".slick-slide")?p(y.target):p(y.target).parents(".slick-slide"),D=parseInt(T.attr("data-slick-index"));
17if(D||(D=0),C.slideCount<=C.options.slidesToShow)return C.setSlideClasses(D),void C.asNavFor(D);C.slideHandler(D)},C.prototype.slideHandler=function(p,y,C){var T,D,$,P,I,A=this;if(y=y||!1,(!0!==A.animating||!0!==A.options.waitForAnimate)&&!(!0===A.options.fade&&A.currentSlide===p||A.slideCount<=A.options.slidesToShow))if(!1===y&&A.asNavFor(p),T=p,I=A.getLeft(T),P=A.getLeft(A.currentSlide),A.currentLeft=null===A.swipeLeft?P:A.swipeLeft,!1===A.options.infinite&&!1===A.options.centerMode&&(p<0||p>A.getDotCount()*A.options.slidesToScroll))!1===A.options.fade&&(T=A.currentSlide,!0!==C?A.animateSlide(P,(function(){A.postSlide(T)})):A.postSlide(T));else if(!1===A.options.infinite&&!0===A.options.centerMode&&(p<0||p>A.slideCount-A.options.slidesToScroll))!1===A.options.fade&&(T=A.currentSlide,!0!==C?A.animateSlide(P,(function(){A.postSlide(T)})):A.postSlide(T));else{if(!0===A.options.autoplay&&clearInterval(A.autoPlayTimer),D=T<0?A.slideCount%A.options.slidesToScroll!=0?A.slideCount-A.slideCount%A.options.slidesToScroll:A.slideCount+T:T>=A.slideCount?A.slideCount%A.options.slidesToScroll!=0?0:T-A.slideCount:T,A.animating=!0,A.$slider.trigger("beforeChange",[A,A.currentSlide,D]),$=A.currentSlide,A.currentSlide=D,A.setSlideClasses(A.currentSlide),A.updateDots(),A.updateArrows(),!0===A.options.fade)return!0!==C?(A.fadeSlideOut($),A.fadeSlide(D,(function(){A.postSlide(D)}))):A.postSlide(D),void A.animateHeight();!0!==C?A.animateSlide(I,(function(){A.postSlide(D)})):A.postSlide(D)}},C.prototype.startLoad=function(){var p=this;!0===p.options.arrows&&p.slideCount>p.options.slidesToShow&&(p.$prevArrow.hide(),p.$nextArrow.hide()),!0===p.options.dots&&p.slideCount>p.options.slidesToShow&&p.$dots.hide(),p.$slider.addClass("slick-loading")},C.prototype.swipeDirection=function(){var p,y,C,T,D=this;return p=D.touchObject.startX-D.touchObject.curX,y=D.touchObject.startY-D.touchObject.curY,C=Math.atan2(y,p),(T=Math.round(180*C/Math.PI))<0&&(T=360-Math.abs(T)),T<=45&&T>=0||T<=360&&T>=315?!1===D.options.rtl?"left":"right":T>=135&&T<=225?!1===D.options.rtl?"right":"left":!0===D.options.verticalSwiping?T>=35&&T<=135?"left":"right":"vertical"},C.prototype.swipeEnd=function(p){var y,C=this;if(C.dragging=!1,C.shouldClick=!(C.touchObject.swipeLength>10),void 0===C.touchObject.curX)return!1;if(!0===C.touchObject.edgeHit&&C.$slider.trigger("edge",[C,C.swipeDirection()]),C.touchObject.swipeLength>=C.touchObject.minSwipe)switch(C.swipeDirection()){case"left":y=C.options.swipeToSlide?C.checkNavigable(C.currentSlide+C.getSlideCount()):C.currentSlide+C.getSlideCount(),C.slideHandler(y),C.currentDirection=0,C.touchObject={},C.$slider.trigger("swipe",[C,"left"]);break;case"right":y=C.options.swipeToSlide?C.checkNavigable(C.currentSlide-C.getSlideCount()):C.currentSlide-C.getSlideCount(),C.slideHandler(y),C.currentDirection=1,C.touchObject={},C.$slider.trigger("swipe",[C,"right"])}else C.touchObject.startX!==C.touchObject.curX&&(C.slideHandler(C.currentSlide),C.touchObject={})},C.prototype.swipeHandler=function(p){var y=this;if(!(!1===y.options.swipe||"ontouchend"in document&&!1===y.options.swipe||!1===y.options.draggable&&-1!==p.type.indexOf("mouse")))switch(y.touchObject.fingerCount=p.originalEvent&&void 0!==p.originalEvent.touches?p.originalEvent.touches.length:1,y.touchObject.minSwipe=y.listWidth/y.options.touchThreshold,!0===y.options.verticalSwiping&&(y.touchObject.minSwipe=y.listHeight/y.options.touchThreshold),p.data.action){case"start":y.swipeStart(p);break;case"move":y.swipeMove(p);break;case"end":y.swipeEnd(p)}},C.prototype.swipeMove=function(p){var y,C,T,D,$,P=this;return $=void 0!==p.originalEvent?p.originalEvent.touches:null,!(!P.dragging||$&&1!==$.length)&&(y=P.getLeft(P.currentSlide),P.touchObject.curX=void 0!==$?$[0].pageX:p.clientX,P.touchObject.curY=void 0!==$?$[0].pageY:p.clientY,P.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(P.touchObject.curX-P.touchObject.startX,2))),!0===P.options.verticalSwiping&&(P.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(P.touchObject.curY-P.touchObject.startY,2)))),"vertical"!==(C=P.swipeDirection())?(void 0!==p.originalEvent&&P.touchObject.swipeLength>4&&p.preventDefault(),D=(!1===P.options.rtl?1:-1)*(P.touchObject.curX>P.touchObject.startX?1:-1),!0===P.options.verticalSwiping&&(D=P.touchObject.curY>P.touchObject.startY?1:-1),T=P.touchObject.swipeLength,P.touchObject.edgeHit=!1,!1===P.options.infinite&&(0===P.currentSlide&&"right"===C||P.currentSlide>=P.getDotCount()&&"left"===C)&&(T=P.touchObject.swipeLength*P.options.edgeFriction,P.touchObject.edgeHit=!0),!1===P.options.vertical?P.swipeLeft=y+T*D:P.swipeLeft=y+T*(P.$list.height()/P.listWidth)*D,!0===P.options.verticalSwiping&&(P.swipeLeft=y+T*D),!0!==P.options.fade&&!1!==P.options.touchMove&&(!0===P.animating?(P.swipeLeft=null,!1):void P.setCSS(P.swipeLeft))):void 0)},C.prototype.swipeStart=function(p){var y,C=this;if(1!==C.touchObject.fingerCount||C.slideCount<=C.options.slidesToShow)return C.touchObject={},!1;void 0!==p.originalEvent&&void 0!==p.originalEvent.touches&&(y=p.originalEvent.touches[0]),C.touchObject.startX=C.touchObject.curX=void 0!==y?y.pageX:p.clientX,C.touchObject.startY=C.touchObject.curY=void 0!==y?y.pageY:p.clientY,C.dragging=!0},C.prototype.unfilterSlides=C.prototype.slickUnfilter=function(){var p=this;
17null!==p.$slidesCache&&(p.unload(),p.$slideTrack.children(this.options.slide).detach(),p.$slidesCache.appendTo(p.$slideTrack),p.reinit())},C.prototype.unload=function(){var y=this;p(".slick-cloned",y.$slider).remove(),y.$dots&&y.$dots.remove(),y.$prevArrow&&y.htmlExpr.test(y.options.prevArrow)&&y.$prevArrow.remove(),y.$nextArrow&&y.htmlExpr.test(y.options.nextArrow)&&y.$nextArrow.remove(),y.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},C.prototype.unslick=function(p){var y=this;y.$slider.trigger("unslick",[y,p]),y.destroy()},C.prototype.updateArrows=function(){var p=this;Math.floor(p.options.slidesToShow/2),!0===p.options.arrows&&p.slideCount>p.options.slidesToShow&&!p.options.infinite&&(p.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),p.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===p.currentSlide?(p.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),p.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(p.currentSlide>=p.slideCount-p.options.slidesToShow&&!1===p.options.centerMode||p.currentSlide>=p.slideCount-1&&!0===p.options.centerMode)&&(p.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),p.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},C.prototype.updateDots=function(){var p=this;null!==p.$dots&&(p.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),p.$dots.find("li").eq(Math.floor(p.currentSlide/p.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},C.prototype.visibility=function(){var p=this;document[p.hidden]?(p.paused=!0,p.autoPlayClear()):!0===p.options.autoplay&&(p.paused=!1,p.autoPlay())},C.prototype.initADA=function(){var y=this;y.$slides.add(y.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),y.$slideTrack.attr("role","listbox"),y.$slides.not(y.$slideTrack.find(".slick-cloned")).each((function(C){p(this).attr({role:"option","aria-describedby":"slick-slide"+y.instanceUid+C})})),null!==y.$dots&&y.$dots.attr("role","tablist").find("li").each((function(C){p(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+y.instanceUid+C,id:"slick-slide"+y.instanceUid+C})})).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),y.activateADA()},C.prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},C.prototype.focusHandler=function(){var y=this;y.$slider.on("focus.slick blur.slick","*",(function(C){C.stopImmediatePropagation();var T=p(this);setTimeout((function(){y.isPlay&&(T.is(":focus")?(y.autoPlayClear(),y.paused=!0):(y.paused=!1,y.autoPlay()))}),0)}))},p.fn.slick=function(){var p,y,T=this,D=arguments[0],$=Array.prototype.slice.call(arguments,1),P=T.length;for(p=0;p<P;p++)if("object"==typeof D||void 0===D?T[p].slick=new C(T[p],D):y=T[p].slick[D].apply(T[p].slick,$),void 0!==y)return y;return T}})),function(p,y,C,T){"use strict";var D="wseUpdatePanel",$={indicator:"<span class='updateIndicator'></span>",textUpdating:"speichere",textUpdated:'<i class="fi-check"></i> aktualisiert',textFailed:'<i class="fi-alert"></i> fehlgeschlagen',updatedDuration:1500};function Plugin(y,C){this.element=y,this.$element=p(this.element),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){this.indicator=p(this.settings.indicator).prependTo(this.$element),this.$element.on("updating",p.proxy(this.onUpdating,this)).on("updated",p.proxy(this.onUpdated,this)).on("failed",p.proxy(this.onFailed,this))},resetStatus:function(){this.$element.removeClass("updating updated failed"),clearTimeout(this.timeOut)},onUpdating:function(){this.resetStatus(),this.indicator.html(this.settings.textUpdating).slideDown("fast"),this.$element.addClass("updating")},onFailed:function(){this.resetStatus(),this.indicator.html(this.settings.textFailed).slideDown("fast"),this.$element.addClass("failed"),this.timeOut=setTimeout(p.proxy(this.hideIndicator,this),this.settings.updatedDuration)},onUpdated:function(){this.resetStatus(),this.indicator.html(this.settings.textUpdated).slideDown("fast"),this.$element.addClass("updated"),this.timeOut=setTimeout(p.proxy(this.hideIndicator,this),this.settings.updatedDuration)},hideIndicator:function(){var p=this;this.indicator.slideUp("fast",(function(){p.resetStatus()}))}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseAvaStatus",$={onlineClass:"avaOnline",myprovidersClass:"avaMyProviders",flatrateClass:"avaMyFlat"};function Plugin(y,C){this.element=y,this.$element=p(y),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){this.$element.parent().is("ul.content")&&this.$element.find("div.details").append(p("<div class='"+this.settings.onlineClass+"'>Online verfügbar</div>"),p("<div class='"+this.settings.myprovidersClass+"'>Bei meinen Anbietern verfügbar</div>"),p("<div class='"+this.settings.flatrateClass+"'>Bei meinen Anbietern in der Flatrate</div>")),this.setStatus()},setStatus:function(){var p=this.$element.data("avastatus");if(null==p||""==p)return!1;this.$element.toggleClass(this.settings.onlineClass,!(p instanceof Array)),this.$element.removeClass(this.settings.myprovidersClass).removeClass(this.settings.flatrateClass);for(var y=0;y<wse.user.providers.length;y++){var C=wse.user.providers[y];if(C in p&&(this.$element.addClass(this.settings.myprovidersClass),p[C])){this.$element.addClass(this.settings.flatrateClass);break}}var T=this.$element.attr("class");this.$element.find(".avaStatus.label").addClass(T)},update:function(){this.setStatus()}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)?p.data(this,"plugin_"+D).update():p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseMyProgramm",$={};function Plugin(y,C){this.element=y,this.$element=p(y),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.templatesLoaded=!1,this.init()}p.extend(Plugin.prototype,{init:function(){var y=this;this.updatePanel=this.$element.find(".updateable"),this.updatePanel.wseUpdatePanel({textUpdating:"lade"}),this.$element.on("click",".editLists",p.proxy(this.enableEditMode,y)),this.$element.find(".showLists").click(p.proxy(this.disableEditMode,y)),this.$element.on("click","button.addList",(function(){y.addListHandler.call(y,p(this).closest("div.filterTemplate"))})),this.$element.on("click",".filterUrl .editFilter, .editMode .filterUrl .listTitle > a.noLink",(function(C){C.stopPropagation(),C.preventDefault(),y.editFilterHandler.call(y,p(this).closest("div.filterUrl"))})),this.$element.on("click",".filterUrl .deleteFilter",(function(C){y.deleteFilterHandler.call(y,p(this).closest("div.filterUrl"))})),p("div.currentLists").sortable({items:"> div.row.filterUrl",handle:"a.moveFilter",cursor:"move",opacity:.5,axis:"y",containment:"div.editListsContainer",start:function(){},stop:function(){},update:function(p,C){y.sortProgrammLists(p,C)}}),p("div.currentLists").on("click",".moveFilter i.fi-arrow-down",(function(C){if(p(this).parents("div.filterUrl").next().length>0){wse.transferEffect(p(this).parents("div.filterUrl"),p(this).parents("div.filterUrl").next(),300),p(this).parents("div.filterUrl").before(p(this).parents("div.filterUrl").next());var T={item:this};y.sortProgrammLists(C,T)}}
17)).on("click","i.fi-arrow-up",(function(C){if(p(this).parents("div.filterUrl").prev().length>0){wse.transferEffect(p(this).parents("div.filterUrl"),p(this).parents("div.filterUrl").prev(),300),p(this).parents("div.filterUrl").after(p(this).parents("div.filterUrl").prev());var T={item:this};y.sortProgrammLists(C,T)}})).on("click","i.fi-minus",(function(C){var T=p(this).parents("div.filterUrl"),D={item:T.clone()};y.sortProgrammLists(C,D),T.remove()}))},disableEditMode:function(){var y=this;this.$element.find(".homepageList").addClass("listMode").removeClass("editMode"),this.$element.find(".currentLists .filterUrl.editing").each((function(){y.saveFilterHandler(p(this))})),this.$element.find(".button.showLists").hide(),this.$element.find(".button.editLists").fadeIn(),this.$element.find(".row.filterUrl .content").slideDown(),this.$element.find(".availableLists").css("display","block").fadeOut(),this.$element.find("div.Highlights").slideDown()},enableEditMode:function(){var y=this;this.templatesLoaded||this.$element.find("div.availableLists").load("/home/FilterTemplates div.availableLists",(function(T,D,$){y.templatesLoaded=!0,p("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus");var P=p(this).find("ul.content");wse.lists.setupEvents(P),P.find(" > li").wseAvaStatus("update"),p(C).foundation("alert","reflow")})),p("html, body").animate({scrollTop:0}),this.$element.find(".homepageList").addClass("editMode").removeClass("listMode"),this.$element.find(".button.editLists").hide(),this.$element.find(".button.showLists").fadeIn(),this.$element.find(".row.filterUrl .content").slideUp(),this.$element.find(".availableLists").css("display","none").fadeIn(),this.$element.find("div.Highlights").slideUp()},editFilterHandler:function(C){console.log("editFilter");var T=this,D=C.data("filter"),$=p(".filterEditor ul .accordion-navigation").find("ul.content.active").attr("id");$||($="panel1"),C.siblings(".filterUrl.editing").each((function(){T.saveFilterHandler(p(this))})),C.siblings("div.filterUrl").css("opacity","0.5");var P="/home/editFilter/"+D.filterUrlID+"/?filterUrl="+encodeURIComponent(D.filterUrl)+"&filterTitle="+encodeURIComponent(D.filterTitle);T.updatePanel.trigger("updating"),p("<div>").load(P,(function(){var P=p(this).find("> div.filterUrl");C.replaceWith(P),P.find("a.saveFilter").click((function(p){p.preventDefault(),T.saveFilterHandler(P)})),P.find(".filterEditor a.remote").click((function(y){y.preventDefault(),D.filterUrl=p(this).attr("href"),D.filterTitle=P.find("input").val(),P.data("filter",D),T.editFilterHandler(P)}));var I=P.find("ul.content");p("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus"),wse.lists.setupEvents(I),T.updatePanel.trigger("updated"),I.find(" > li").wseAvaStatus("update"),wse.smallHome(),p(".filterEditor .accordion-navigation ul.content#"+$).slideDown().addClass("active").siblings("a").attr("aria-expanded",!0),y.onresize=function(){wse.smallHome()},p(".filterEditor ul").on("click",".accordion-navigation a",(function(){var y=p(this).closest("li").find("ul.content");y.hasClass("active")?y.slideUp():(p(".filterEditor .accordionWrapper ul.content").slideUp(),y.slideDown())}))}))},saveFilterHandler:function(y){console.log("saveFilter");var C=this,T=y.data("filter");T.filterTitle=y.find("input").val(),y.find(".filterEditor").slideUp();var D="/home/saveFilter/"+T.filterUrlID+"/?filterUrl="+encodeURIComponent(T.filterUrl)+"&filterTitle="+encodeURIComponent(T.filterTitle);C.updatePanel.trigger("updating"),p("<div>").load(D,(function(){var T=p(this).find("> div.filterUrl");y.replaceWith(T);var D=T.find("ul.content");C.$element.find(".homepageList").is(".editMode")&&(D.hide(),T.find("div.content").hide()),p("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus"),wse.lists.setupEvents(D),D.find(" > li").wseAvaStatus("update"),T.siblings("div.filterUrl").css("opacity","1"),C.updatePanel.trigger("updated")}))},addListHandler:function(y){var C=this,T=y.data("filter"),D=p("<div>").addClass("row collapse filterUrl").html("<h4>"+y.find("h4").html()+"</h4>").css({visibility:"hidden",display:"none"});D.appendTo(this.$element.find(".currentLists")).slideDown("fast",(function(){y.effect("transfer",{to:D},800,(function(){D.css("visibility","visible")})),p("html, body").animate({scrollTop:D.offset().top-150})}));var $="/home/addFilter/?filterTemplateID="+T.filterTemplateID;C.updatePanel.trigger("updating"),p("<div>").load($,(function(){var y=p(this).find("> div.filterUrl");D.replaceWith(y);var $=y.find("ul.content");$.hide(),p("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus"),wse.lists.setupEvents($),$.find(" > li").wseAvaStatus("update"),C.updatePanel.trigger("updated"),T.customFilter&&C.editFilterHandler(y)}))},deleteFilterHandler:function(y){var C=this;
17if(1==confirm("Wirklich löschen?")){var T="/jsonservice/Profile/deleteFilter?filterID="+y.data("filter").filterUrlID;C.updatePanel.trigger("updating"),p.ajax(T).done((function(T){y.siblings("div.filterUrl").css("opacity","1"),y.fadeOut((function(){p(this).remove()})),C.updatePanel.trigger("updated")})).fail((function(){C.updatePanel.trigger("failed")}))}},homepageTimeoutID:null,sortProgrammLists:function(y,C){var T=this,D=p(C.item).closest("div.currentLists"),$=D.find("div.filterUrl"),P=$.map((function(){return p(this).data("filter").filterUrlID})).toArray();T.updatePanel.trigger("updating"),p.ajax("/jsonservice/Profile/sortFilter",{type:"post",data:{sort:P}}).done((function(p){!0===p.response?T.updatePanel.trigger("updated"):T.updatePanel.trigger("failed")})).fail((function(){T.updatePanel.trigger("failed")}));for(var I=D.find("div.readOnlyFilter"),A=0;A<$.length;A++)A>0&&A%2==0&&$.eq(A).before(I.eq(0))}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseSocialShare",$={};function Plugin(y,C){this.element=y,this.$element=p(y),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){this.$element.find("a").click((function(){gaSend("Share",this.title,C.location.href)}))}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseListNotifications",$={Sample1:"Sample Vale"};function Plugin(y,C){this.element=y,this.$element=p(this.element),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{listId:y.location.pathname.split("/")[3],customProviders:p(".customProviderSelection"),listBased:p(".notificationOptionSettings .listBased"),providerBased:p(".notificationOptionSettings .providerBased"),setForAllOptions:p(".notificationOptionSettings .setForAll input"),individualOptionsHolder:p(".individualProviderSettings"),noProvidersError:p(".noProviders"),noOptionsError:p(".noOptions"),notifSettingsLink:p(".notifSettingsLink"),notifSettings:p(".editableNotifSettings"),myProvidersLink:p(".linkToMyProviders"),init:function(){var y=this;y.notifSettings.find("input").attr("disabled",y.notifSettings.hasClass("deactivated")),y.checkCustomOptions(),y.$element.on("click",".notifButton",(function(){y.setNotification(p(this))})),y.$element.find("input#setDaily").on("change",(function(){y.setBasicOptions(p(this),"dailyNotifications",p(this).is(":checked"))})),y.$element.find("input#setNative").on("change",(function(){y.setBasicOptions(p(this),"onlyNativeNotifications",p(this).is(":checked"))})),y.$element.find(".providerSetSelection").on("change","input",(function(){y.chooseProviderSet(p(this))})),y.customProviders.on("click","input",(function(){y.chooseCustomProviders(p(this))})),y.listBased.on("click","input",(function(){y.choosePriceOptions(p(this))})),y.providerBased.on("click","input",(function(){y.chooseCustomPriceOptions(p(this))}))},setNotification:function(y){var C=this,T=C.$element.find(".notifLabel"),D=p(".ContentListPage").length>0;y.toggleClass("active"),y.hasClass("active")?T.text("Benachrichtigungen aktiviert"):T.text("Benachrichtigungen aktivieren");var $=C.listId;if(D){var P=y.siblings(".savingFailed");P.hide();var I=y.closest(".updateable");I.trigger("updating")}else $=y.closest("div[data-listid]").data("listid");p.ajax("/jsonservice/Profile/setListNotifications?ListID="+$+"&wanted="+y.hasClass("active")).done((function(T){if(!0===T.response){if(D){C.notifSettingsLink.toggle(),C.notifSettings.toggleClass("deactivated"),C.notifSettings.find("input").attr("disabled",C.notifSettings.hasClass("deactivated"));var $=p(".ContentListPage #notificationLabel"),A=$.children();y.hasClass("active")?($.removeClass("secondary"),$.text(" Benachrichtigungen aktiviert").prepend(A)):($.addClass("secondary"),$.text(" Benachrichtigungen deaktiviert").prepend(A)),I.trigger("updated")}}else!1===T.response&&D&&(I.trigger("failed"),P.show())})).fail((function(){D&&(I.trigger("failed"),y.removeClass("updating"),P.show()),y.toggleClass("active"),y.hasClass("active")?T.text("Benachrichtigungen aktiviert"):T.text("Benachrichtigungen aktivieren")}))},setBasicOptions:function(y,C,T){var D=this,$=y.closest(".updateable");$.trigger("updating");var P={};P[C]=T;var I=p.param({ListID:D.listId,Settings:P});p.ajax("/jsonservice/Profile/notificationSettings",{type:"post",data:I}).done((function(){$.trigger("updated"),D.$element.find("."+C+"Enabled").toggleClass("hide"),D.$element.find("."+C+"Disabled").toggleClass("hide")})).fail((function(){$.trigger("failed")}))},chooseProviderSet:function(y){var C=this,T=y.attr("value"),D=y.closest(".updateable");D.trigger("updating");var $=p.param({ListID:C.listId,Settings:{ProviderSet:T}});
17p.ajax("/jsonservice/Profile/notificationSettings",{type:"post",data:$}).done((function(p){!0===p.response?(D.trigger("updated"),"My"===T?C.myProvidersLink.show():C.myProvidersLink.hide(),"Custom"===T?(C.customProviders.slideDown(),C.providerBased.show(),C.listBased.hide(),0===C.checkedProviders.length?(C.setForAllOptions.prop("disabled",!0),C.noProvidersError.show()):(C.setForAllOptions.prop("disabled",!1),C.noProvidersError.hide())):(C.customProviders.hide(),C.providerBased.hide(),C.listBased.show(),C.noProvidersError.hide())):!1===p.response&&D.trigger("failed")})).fail((function(){D.trigger("failed")}))},chooseCustomProviders:function(y){var C=this,T=y.closest(".updateable");0===C.customProviders.find("input:checked").length?(C.setForAllOptions.prop("disabled",!0),C.noProvidersError.show()):(C.setForAllOptions.prop("disabled",!1),C.noProvidersError.hide());var D=C.individualOptionsHolder.find(".row.provider"+y.val());y.is(":checked")?(D.find("input").each((function(){p(this).prop("checked",!0)})),D.show()):(D.find("input").each((function(){p(this).prop("checked",!1)})),D.hide()),C.updateCustomProvidersWithOptions(T)},choosePriceOptions:function(y){var C=this,T=y.closest(".updateable"),D=p.param({ListID:C.listId})+"&"+C.listBased.find("input").serialize();T.trigger("updating"),p.ajax("/jsonservice/Profile/updateNotifPriceOptionsListBased",{type:"post",data:D}).done((function(p){!0===p.response?(0===C.listBased.find("input:checked").length?C.noOptionsError.show():C.noOptionsError.hide(),T.trigger("updated")):!1===p.response&&T.trigger("failed")})).fail((function(){T.trigger("failed")}))},chooseCustomPriceOptions:function(p){var y=this,C=p.closest(".updateable");p.parents(".setForAll").length>0?y.individualOptionsHolder.find("input[value="+p.val()+"]:visible").prop("checked",p.is(":checked")):y.checkCustomOptions(),y.updateCustomProvidersWithOptions(C)},checkCustomOptions:function(){var y=this;y.setForAllOptions.each((function(){var C=p(this);y.individualOptionsHolder.find("input[value="+C.val()+"]:visible:not(:checked)").length>0?C.prop("checked",!1):C.prop("checked",!0)}))},updateCustomProvidersWithOptions:function(y){var C=p.param({ListID:this.listId})+"&"+this.individualOptionsHolder.find("input:visible").serialize();y.trigger("updating"),p.ajax("/jsonservice/Profile/updateNotifPriceOptionsProviderBased",{type:"post",data:C}).done((function(p){!0===p.response?y.trigger("updated"):!1===p.response&&y.trigger("failed")})).fail((function(){y.trigger("failed")}))}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseListOptions",$={Sample1:"Sample Vale"};function Plugin(y,C){this.element=y,this.$element=p(this.element),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){var C=this;C.$element.closest(".reveal-modal").length<=0&&C.loadListStatus(),C.$element.on("click","span",(function(){let y=p(this).closest("li[data-contentid]").data("contentid");y||(y=p(this).closest("div[data-contentid]").data("contentid")),gaSend("OptionClick",p(this).attr("title"),y)})).on("click","span.defaultList",(function(y){if(Foundation.utils.is_small_only()&&p(this).closest("ul.content li").length>0)return!1;y.stopPropagation(),y.preventDefault();var T=p(this);T.is(".active")?C.removeContentFromDefaultList(T):C.addContentToDefaultList(T)})).on("click","span.otherList",(function(){if(!wse.user.isMember)return wse.showLogin(),!1})).on("click","span.dragItem",(function(){const T=p(this);T.addClass("loading"),p.ajax("/jsonservice/Profile/getContentLists",{cache:!0}).done((D=>{const $=T.closest("li"),P=$.data("contentid"),I=p("#sortContentDialog"),A=parseInt(C.$element.data("list-id")),E=$.closest("ul").find("li").index($),O=$.closest("ul").find("li:not(.add)").index($)+1,generateAvailablePositions=(y,C,T)=>{I.find("#position").find("option").remove();const $=D.response.find((p=>p.ID===y));for(let D=1;D<=$.Items;D+=1)p(`<option value="${D}" ${D===T?"selected":""}>${D}
17${D===T&&y===C?" (aktuell)":""}</option>`).appendTo(I.find("#position"))};generateAvailablePositions(A,A,O),T.removeClass("loading"),I.find("#copyContainer").hide(),I.find("h5").html($.find(".wse-titel-text").html()),I.find("#copy").prop("checked",!1),I.find("#position").val(O),I.find("button[type='button']").off("click").on("click",(()=>I.foundation("reveal","close"))),I.find("button[type='submit']").off("click").on("click",(()=>{const y=parseInt(I.find("#position").val());p("#move").addClass("loading"),p.ajax("/jsonservice/Profile/sortContentList",{type:"post",data:{Copy:p("#copy").is(":checked"),CopyListID:parseInt(p("#list").val()),ListID:A,EndPosition:y,ContentID:P}}).done((function(C){const T=p(".customList li");p(".ContentListPage h4 span.listContent").addClass("updated"),I.foundation("reveal","close"),p("#move").removeClass("loading"),T[E-1].remove(),T[E].remove(),p("#copy").is(":checked")||p("<li class='add'></li>"+C.response).insertBefore(T[2*y]),wse.initAddInsideListElements()}))})),I.find("#list").off("change").on("change",(y=>{const C=parseInt(p(y.target).val());C!==A?I.find("#copyContainer").show():I.find("#copyContainer").hide(),generateAvailablePositions(C,A,O)})).html(D.response.map((y=>p(`<option value="${y.ID}" ${y.ID===A?'selected=""':""}></option>`).text(y.Title)))),I.foundation("reveal","open"),y.setTimeout((()=>I.find("#position").val(O).focus()),500)}))})).on("click","span.notify",(function(){var y=p(this),C=y.closest("[data-contentid]"),T=C.data("contentid");if(!wse.user.isMember)return wse.showLogin("/profil/addContentToWatchListForNotifications/"+T),!1;C.hasClass("onwatch")||p.ajax("/jsonservice/Profile/addContentToListForNotifications?ContentID="+T).done((function(T){!1===T.response?p("#dialogBox").foundation("reveal","open","/profil/ActivateNotificationsDialog/WatchList"):p("#dialogBox2").foundation("reveal","close");var D=p(".ContentSummary:has(.options[data-contentid])");D.find(".options[data-contentid]").data("liststatus",null).removeClass("listStatusSet"),D.wseListOptions("loadStatus");var $=y.children();y.text(" der Watchlist hinzugefügt").prepend($),C.addClass("onwatch")}))})).on("click",".listContainer input[type='checkbox']",(function(){var y=p(this),C=1===y.closest("div[data-notifications]").data("notifications")?"ForNotifications":"",T=y.is(":checked")?"addContentToList"+C:"removeContentFrom
17List",D=y.data("listid");p.ajax("/jsonservice/Profile/"+T+"?ContentID="+y.closest("[data-contentid]").data("contentid")+"&ListID="+D).done((function(y){"ForNotifications"===C&&!1===y.response&&p("#dialogBox2").foundation("reveal","open","/profil/ActivateNotificationsDialog/"+D)}))})).on("click",".formCreateList button",(function(T){T.stopPropagation(),T.preventDefault();var D=p(this);C.createList(p(this)).done((function(C){if(!1!==C.response){var T=C.response,$=D.closest("[data-contentid]").data("contentid");if($){var P=p("#dialogBox"),I=1===D.closest("div[data-notifications]").data("notifications")?"ForNotifications":"";P.addClass("loading"),P.load("/profil/ListDialog/"+$,(function(){p(this).removeClass("loading"),p(".listContainer").scrollTop(p(".listContainer")[0].scrollHeight),p("html, body").animate({scrollTop:P.offset().top},500);var y="/jsonservice/Profile/addContentToList"+I+"?ContentID="+D.closest("[data-contentid]").data("contentid")+"&ListID="+T;p.ajax(y).done((function(){"ForNotifications"===I&&p("#dialogBox2").foundation("reveal","open","/profil/ActivateNotificationsDialog/"+T)})),P.find(".switch #id-"+T).attr("checked","checked")}))}else y.location="/listen/bearbeiten/"+T}}))}))},setFavoriteLists:function(y){var C=y.find(".options.defaultLists").addBack(".options.defaultLists");if(0===C.length)return!1;var T=this,D=p(".ContentListPage").length>0&&!p(".PersonPage").length;C.removeClass("defaultLists"),C.find("span.defaultList").remove(),(wse.user.lists||[]).slice().reverse().forEach((function(y){var $=T.sanitizeListId(y?y.id:null);if(null===$)return;var P=T.normalizeListTitle(y?y.title:""),I=T.sanitizeListIcon(y?y.icon:"");let A;D?(A=p("<span>",{"data-options":"disable_for_touch:true",class:"defaultList label secondary","data-list-id":$}).attr("title",P),A.append(p("<span>",{class:"wse-cl-icon-container"}).append(p("<i>").addClass("icon-"+I))),A.append(p("<span>",{class:"wse-cl-titel"}).text(P))):(A=p("<span>",{class:"defaultList fav-list radius","data-list-id":$}).attr("title",P),A.append(p("<i>").addClass("icon-"+I))),A.data("types",y.types),C.prepend(A)}))},sanitizeListId:function(p){var y=null===p||p===T?"":String(p).trim();return/^\d+$/.test(y)?y:null},sanitizeListIcon:function(p){var y=null===p||p===T?"":String(p).trim();return/^[a-z0-9_-]+$/i.test(y)?y:"list-thumbnails"},sanitizeListLink:function(p){var y=null===p||p===T?"":String(p).trim();return""===y?"#":/^(https?:)?\/\//i.test(y)||/^[/.]/.test(y)?y:"#"},normalizeListTitle:function(p){return null===p||p===T?"":String(p)},setListStatusClasses:function(y){y.addClass("listStatusSet");var C=y.find(".options").addBack(".options"),T=y.data("liststatus");p.each(T,(function(p,y){C.find("span[data-list-id='"+p+"']").toggleClass("active",y)}))},updateOwnListStatus:function(y,T){var D=this;if(y&&wse.user.ownLists){const $=Object.entries(y).filter((([p,y])=>!0===y)).map((([p])=>Number(p))),P=Object.entries(wse.user.ownLists).filter((([p])=>$.includes(Number(p)))).reduce(((p,[y,C])=>(p[y]=C,p)),{}),I=p(`.options-own-${T}`),A=p(`#details-own-${T}`);if(Object.keys(P).length>0){if(A.length){const y=A.show().find(".lists").empty(),T=Object.entries(P);T.forEach((([$,P],I)=>{I>0&&y.append(C.createTextNode(I===T.length-1?" und ":", ")),y.append(p("<a>").attr("href",D.sanitizeListLink(P.Link)).attr("style","font-weight: normal; color: white; text-decoration: underline;").text(`„${D.normalizeListTitle(P.Title)}“`))}))}I.length&&I.show()}else A.length&&A.hide(),I.length&&I.hide()}},loadListStatus:function(){this.$element.find(".poster img").each((function(){p(this).load((function(){p(this).closest("div.poster:not(.cover)").css({backgroundImage:`url(${p(this).attr("src")})`})})),this.complete&&p(this).closest("div.poster:not(.cover)").css({backgroundImage:`url(${p(this).attr("src")})`})}));var y=this;wse.user.accountLoaded.promise().then((function(){if(wse.user.isMember){y.setFavoriteLists(y.$element);for(var C=y.$element.find("li[data-contentid]:not(.listStatusSet), .options[data-contentid]:not(.listStatusSet)").map((function(){return p(this).data("contentid")})).toArray(),T=0;T<C.length;T+=250){var D=C.slice(T,T+250);p.ajax("/jsonservice/Profile/getListContentStatus?includeOwnLists=true",{data:{ContentIDs:D}}).done((function(C){for(var T in C.response){p("[data-has-pro=true]").length>0&&C.response[T]&&C.response[T].own&&y.updateOwnListStatus(C.response[T].own,T);var D=y.$element.find("li[data-contentid='"+T+"'], .options[data-contentid='"+T+"']");D.data("liststatus",C.response[T]),y.setListStatusClasses(D)}}))}}}))},createList:function(y){var C=y.parents(".formCreateList").find("input[type=text]");if(""===C.val())return C.addClass("emptyInput"),!1;var T=y.parents(".formCreateList").find("input[type=checkbox]").is(":checked");
17return p.ajax("/jsonservice/Profile/createContentList?Title="+encodeURIComponent(C.val())+"&public="+T)},addContentToDefaultList:function(y){var C=y.data("types"),T=y.closest("[data-contentid]").data("contentid"),D=this;if(!wse.user.isMember){var $=y.data("optiontype");return wse.showLogin("/profil/addContentToDefaultList/"+T+"/"+$),!1}if(C.includes("Black")){var P=wse.user.lists.find((p=>p.types.includes("Black"))).title;if(!1===confirm('Willst du diesen Inhalt wirklich auf deine "'+P+'"-Liste packen? Der Inhalt wird dir dann nicht mehr angezeigt. Du kannst ihn weiterhinüber die Suche und Listen finden.'))return!1}p.ajax("/jsonservice/Profile/addContentToList?ContentID="+T+"&ListID="+y.data("list-id")).done((function($){if(!0===$.response){p("[data-has-pro=true]").length>0&&p.ajax("/jsonservice/Profile/getListContentStatus?includeOwnLists=true",{data:{ContentIDs:[T]}}).done((function(p){for(var y in p.response)D.updateOwnListStatus(p.response[y].own,T)}));var P=y.closest("[data-contentid]").data("liststatus");P[y.data("list-id")]=!0;var I=p(`.listStatusSet[data-contentid="${T}"]`).data("liststatus",P);D.setListStatusClasses(I),C.includes("Seen")&&p.ajax("/jsonservice/Profile/getRatings",{type:"post",data:{ContentIDs:[T]}}).done((function(y){y.response[T].UserRating<0&&p("#dialogBox").foundation("reveal","open","/home/RatingDialog/"+T)}))}}))},removeContentFromDefaultList:function(y){var C=y.closest("[data-contentid]").data("contentid"),T=this;
17p.ajax("/jsonservice/Profile/removeContentFromList?ContentID="+C+"&ListID="+y.data("list-id")).done((function(D){if(!0===D.response){var $=y.closest("[data-contentid]").data("liststatus");$[y.data("list-id")]=!1;var P=p(`.listStatusSet[data-contentid="${C}"]`).data("liststatus",$);T.setListStatusClasses(P),p("[data-has-pro=true]").length>0&&p.ajax("/jsonservice/Profile/getListContentStatus?includeOwnLists=true",{data:{ContentIDs:[C]}}).done((function(p){for(var y in p.response)T.updateOwnListStatus(p.response[y].own,C)}))}}))},update:function(p){"setStatus"===p?this.setListStatusClasses(this.$element.find("div.options.listStatusSet")):"loadStatus"===p&&this.loadListStatus()}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)?p.data(this,"plugin_"+D).update(y):p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseVideoEvents",$={};function Plugin(y,C){this.element=y,this.$element=p(this.element),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){console.log("läuft!"),p(y).on("message",p.proxy(this.onMessage,this))},onMessage:function(p){if(p.originalEvent.source===this.element.contentWindow){var y=p.originalEvent.data,C=jQuery.parseJSON(y);"play"===C.event&&gaSend("Trailer",C.info.ProviderID,C.info.ContentID)}}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseLiveDateTime",$={};function Plugin(y,C){this.element=y,this.$element=p(this.element),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}function parseDate(p){const y=Date.parse(p);return isNaN(y)?Date.parse(p.replace(/-/g,"/").replace("T"," ").replace(/\..*|\+.*/,"")):y}p.extend(Plugin.prototype,{init:function(){var p=this;this.$labelElement=this.$element.find("span.time");var y=this.$element.find('meta[itemprop="startDate"]').attr("content"),C=new Date(parseDate(y));this.startTime=C.getTime(),this.startDate=C.setHours(0,0,0,0);var T=this.$element.find('meta[itemprop="endDate"]').attr("content"),D=new Date(parseDate(T));this.endTime=D.getTime(),this.endDate=D.setHours(0,0,0,0),this.updateTime(),setInterval((function(){p.updateTime()}),5e3)},updateTime:function(){var p=(new Date).getTime(),y=new Date(this.startTime).toLocaleDateString("de-DE")+" um "+new Date(this.startTime).toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})+" Uhr";if(this.startTime<=p&&this.endTime>=p){this.$element.addClass("isLive");var C=Math.ceil(Math.abs((this.startTime-p)/1e3/60));if(C<=2)y="Jetzt";else if(C<=15)y="Seit "+C+" Min.";else{var T=Math.ceil((this.endTime-p)/1e3/60);if(T>60)y="Noch "+Math.floor(T/60)+" Std. "+(T%=60)+" Min.";else y="Noch "+T+" Min."}}else{this.$element.removeClass("isLive");var D=new Date;switch(D.setHours(0,0,0,0),(this.startDate-D)/864e5){case 0:var $=Math.ceil((this.startTime-p)/1e3/60);y=$>0&&$<31?"In "+$+" Min.":"Heute um "+new Date(this.startTime).toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})+" Uhr";break;case-1:y="Gestern um "+new Date(this.startTime).toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})+" Uhr";break;case 1:y="Morgen um "+new Date(this.startTime).toLocaleTimeString(["de-DE"],{hour:"2-digit",minute:"2-digit"})+" Uhr"}}this.$labelElement.text(y)}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wseElementalRefresh",$={};function Plugin(y,C){this.element=y,this.$element=p(this.element),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){var y=this,T=this.$element.data("refresh");this.$element.addClass("refreshing"),p.get(T,(function(T,D){if(y.$element.removeClass("refreshing"),"success"===D){y.$element.replaceWith(T),wse.lists.setupSliders(),p("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus");var $=y.$element.find("ul.content");wse.lists.setupEvents($),$.find(" > li").wseAvaStatus("update"),p(C).foundation()}else y.$element.addClass("failed")}))}}),p.fn[D]=function(y){return this.each((function(){p.data(this,"plugin_"+D)||p.data(this,"plugin_"+D,new Plugin(this,y))}))}}(jQuery,window,document),function(p,y,C,T){"use strict";var D="wsePostable",$={clickTargets:".wse-postable",formID:"wse-postable-form",target:"_blank",callback:!1};function Plugin(y,C){this.element=y,this.$element=p(this.element),this.settings=p.extend({},$,C),this._defaults=$,this._name=D,this.init()}p.extend(Plugin.prototype,{init:function(){var y=this,C=p("#"+this.settings.formID);0===C.length&&(C=p("<form style='display: none' id='"+this.settings.formID+"' method='post' target='"+this.settings.target+"' action=''></form>").appendTo("body"));var T=this.$element.data("wse-postable-url");this.$element.find(this.settings.clickTargets).on("click",(function(p){p.stopPropagation(),p.preventDefault(),C.attr("action",T).submit(),y.settings.callback&&y.settings.callback(p,T)}))}}),p.fn.wsePostable=function(y){return this.each((function(){p.data(this,"plugin_wsePostable")||p.data(this,"plugin_wsePostable",new Plugin(this,y))}))}}(jQuery,window,document);"use strict";function getUrlParams(p){for(var y=window.location.search.substring(1).split("&"),C=0;C<y.length;C++){var T=y[C].split("=");if(T[0]===p)return T[1]}return!1}wseConsole.log("starting wse"),$(document).foundation({accordion:{multi_expand:!1},topbar:{custom_back_text:!0,back_text:"Zurück"},reveal:{animation_speed:150}}),jQuery.browser={},jQuery.browser.msie=!1,jQuery.browser.version=0,navigator.userAgent.match(/MSIE ([0-9]+)\./)&&(jQuery.browser.msie=!0,jQuery.browser.version=RegExp.$1),$(document).ready((function(){$(".faq-element .faq-title").on("click keydown",(function(p){if("click"===p.type||"ke
17ydown"===p.type&&("Enter"===p.key||13===p.keyCode)){const p=$(this).parent();p.hasClass("open")?(p.removeClass("open"),p.find(".faq-content").attr("hidden","until-found"),$(this).attr("aria-expanded","false")):(p.addClass("open"),p.find(".faq-content").removeAttr("hidden"),$(this).attr("aria-expanded","true"))}})),$(".faq-element.open").each((function(){$(this).find(".faq-content").slideDown()})),$(".wse-sport-slide-container").each((function(){const p=$(this),y=p.find(".wse-sport-arrow-right"),C=p.find(".wse-sport-arrow-left"),T=p.find(".scrollable").first(),D=T.get(0);if(!D)return;let P=!1,I=0,A=0,E=!1;const setSnapType=p=>T.css("scroll-snap-type",p),maxScrollLeft=()=>Math.max(0,D.scrollWidth-D.clientWidth),updateArrows=function(){const p=maxScrollLeft(),T=D.scrollLeft;if(!(p>1))return C.hide(),void y.hide();T>1?C.show():C.hide(),T<p-1?y.show():y.hide()},scrollByPage=function(p){const y=maxScrollLeft();if(y<=0)return;const C=Math.max(120,Math.round(.85*D.clientWidth)),$=Math.max(0,Math.min(y,D.scrollLeft+p*C));setSnapType("none"),T.stop(!0).animate({scrollLeft:$},200,(function(){setSnapType("x mandatory"),updateArrows()}))},startDrag=function(p){maxScrollLeft()<=0||(P=!0,I=p,A=D.scrollLeft,E=!1,setSnapType("none"),T.addClass("is-dragging"))},drag=function(p){if(!P)return;const y=p-I;Math.abs(y)>4&&(E=!0),D.scrollLeft=A-y,updateArrows()},stopDrag=function(){P&&(P=!1,T.removeClass("is-dragging"),window.setTimeout((function(){setSnapType("x mandatory")}),0))};if(T.on("scroll",updateArrows),window.PointerEvent)T.on("pointerdown",(function(p){"mouse"===p.pointerType&&0!==p.button||("function"==typeof D.setPointerCapture&&void 0!==p.pointerId&&D.setPointerCapture(p.pointerId),startDrag(p.pageX))})),T.on("pointermove",(function(p){drag(p.pageX)})),T.on("pointerup pointercancel",(function(p){"function"==typeof D.releasePointerCapture&&void 0!==p.pointerId&&D.releasePointerCapture(p.pointerId),stopDrag()})),T.on("pointerleave",(function(){stopDrag()}));else{const p=".wseSportSlider"+Math.random().toString(36).slice(2);T.on("mousedown",(function(p){0===p.button&&(startDrag(p.pageX),p.preventDefault())})),$(document).on("mousemove"+p,(function(p){drag(p.pageX)})),$(document).on("mouseup"+p,(function(){stopDrag()})),T.on("touchstart",(function(p){const y=p.originalEvent&&p.originalEvent.touches?p.originalEvent.touches[0]:null;y&&startDrag(y.pageX)})),T.on("touchmove",(function(p){const y=p.originalEvent&&p.originalEvent.touches?p.originalEvent.touches[0]:null;y&&drag(y.pageX)})),T.on("touchend touchcancel",(function(){stopDrag()}))}T.on("click","a",(function(p){E&&(p.preventDefault(),p.stopPropagation(),E=!1)})),y.on("click",(function(p){p.preventDefault(),scrollByPage(1)})),C.on("click",(function(p){p.preventDefault(),scrollByPage(-1)})),y.on("keydown",(function(p){"Enter"!==p.key&&" "!==p.key||(p.preventDefault(),scrollByPage(1))})),C.on("keydown",(function(p){"Enter"!==p.key&&" "!==p.key||(p.preventDefault(),scrollByPage(-1))})),$(window).on("resize orientationchange load",updateArrows),window.setTimeout(updateArrows,0)})),$("[data-vote]").click((function(){const p=$(this).attr("data-vote");if($(this).hasClass("noLink"))return;const y=new URL(window.location);y.searchParams.set("action","vote"),y.searchParams.set("state",p),$.get(y).then((function(){$("[data-vote=true], [data-vote=false]").addClass("noLink"),"false"===p?$(".send-feedback").slideDown():$(".thank-you").slideDown()}))})),$(".news-block-element h5").each((function(){$(this).css("height",Math.max(...$(".news-block-element").find("h5").map((function(){return $(this).height()}))))})),$("#affiliateLink").click((p=>{window.setTimeout((function(){$(p.target).select(),document.execCommand("copy")}),100)})),$("#partner").change((()=>{if(""===$("#affiliateLink").val())return;const p=new URL($("#affiliateLink").val());p.searchParams.set("tag",$("#partner").val()),p.searchParams.set("source","aui"),$("#affiliateLink").val(p.toString())})),$("#provider").change((()=>{if(""===$("#provider").val())return;const p=new URL($("#provider").val());p.searchParams.set("tag",$("#partner").val()),p.searchParams.set("source","aui"),$("#affiliateLink").val(p)})),$("#provider, #partner").change(),$(".advLabel[data-reveal-id='dialogBox_wide'][data-reveal-ajax='/pro/modal/']").keydown((function(p){"Enter"!==p.key&&" "!==p.key||(p.preventDefault(),$(this).trigger("click"))})),$("#Form_feedbackForm_DuplicateIdentifier_Holder, #Form_feedbackForm_MissingIdentifier_Holder").hide();const p=$("#Form_feedbackForm_MissingIdentifier"),y=$("#Form_feedbackForm_MissingIdentifier_Holder span.description").html();
17function validateUrl(p){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(p)}"#missing"===document.location.hash?($("#Form_feedbackForm_ReportType").val("missing"),$("#Form_feedbackForm_Message_Holder").hide(),$("#Form_feedbackForm_MissingIdentifier_Holder").show(),window.setTimeout((()=>p.focus()),100)):"#dsa"===document.location.hash&&($("#Form_feedbackForm_ReportType").val("dsa"),$("#Form_feedbackForm_Message_Holder").show(),$("#Form_feedbackForm_MissingIdentifier_Holder").hide(),window.setTimeout((()=>$("#Form_feedbackForm_Message_Holder").focus()),100)),function stabilizeInitialHashAnchor(){if(Foundation.utils.is_small_only())return;if(!window.location.hash||window.location.hash.length<2)return;const p=decodeURIComponent(window.location.hash.slice(1)),y=document.getElementById(p);if(!y)return;let C=0;const scrollToTarget=()=>{C>=4||(C+=1,window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{y.scrollIntoView(!0)}))})))},T=new MutationObserver((()=>{document.body.classList.contains("f-topbar-fixed")&&scrollToTarget()}));T.observe(document.body,{attributes:!0,attributeFilter:["class"]}),$(document).on("after-height-change.fndtn.equalizer.wseHashAnchorFix",scrollToTarget),$(window).one("load.wseHashAnchorFix",(function(){scrollToTarget(),window.setTimeout(scrollToTarget,150),window.setTimeout((()=>{scrollToTarget(),$(document).off(".wseHashAnchorFix"),T.disconnect()}),400)})),scrollToTarget()}();const C=$("#Form_feedbackForm_action_sendFeedback");p.change((function(){const p=$(this).val();C.prop("disabled",!0),$("#Form_feedbackForm_MissingIdentifier_Holder span.description").html(y),p.indexOf("imdb")>-1&&p.match(/tt(\d)/)||p.indexOf("themoviedb")>-1?$.post("suche/urlToContent",{url:p}).then((p=>{p.title?($("#Form_feedbackForm_MissingIdentifier_Holder span.description").html(`<div class="mt-10 ml-5 fs-15" style="display: flex;"><img src="${p.poster}" alt="${p.title}" class="mr-10" style="height: 50px;" /><div style="height: fit-content;margin: auto 0;"><strong>Diesen Eintrag gibt es schon bei uns <a href='${p.url}'>${p.title}</a></strong>.<br />Wenn etwas mit dem Eintrag nicht stimmt, gib uns bitte <a href='${p.feedbackUrl}'>hier</a> Bescheid.</div></div>`),C.prop("disabled",!0)):C.prop("disabled",!1)})):""!==p&&validateUrl(p)&&C.prop("disabled",!1)})),$("#Form_feedbackForm_ReportType").change((function(){$("#Form_feedbackForm_DuplicateIdentifier_Holder input").val(""),$("#Form_feedbackForm_Message_Holder textarea").val(""),C.prop("disabled",!0),"duplicate"===$(this).val()?($("#Form_feedbackForm_Message_Holder").hide(),$("#Form_feedbackForm_DuplicateIdentifier_Holder").show(),window.setTimeout((()=>$("#Form_feedbackForm_DuplicateIdentifier").focus()),100)):"missing"===$(this).val()?($("#Form_feedbackForm_Message_Holder").hide(),$("#Form_feedbackForm_MissingIdentifier_Holder").show(),window.setTimeout((()=>p.focus()),100)):(""!==$("#Form_feedbackForm_Message").val()&&C.prop("disabled",!1),$("#Form_feedbackForm_Message_Holder").show(),$("#Form_feedbackForm_DuplicateIdentifier_Holder").hide(),$("#Form_feedbackForm_MissingIdentifier_Holder").hide(),window.setTimeout((()=>$("#Form_feedbackForm_Message").focus()),100))})).change(),$("#Form_feedbackForm_Message").change((function(){$(this).val().includes("imdb.com")&&$("#missingContentModal").foundation("reveal","open"),C.prop("disabled",""===$(this).val().trim())})),$("#missingContentModalYes").click((function(){const p=$("#Form_feedbackForm_Message").val(),y=p.match(/https?:\/\/(?:www\.)?imdb\.com\/[a-z]{2}\/title\/tt\d+/i);$("#Form_feedbackForm_MissingIdentifier").val(y?y[0]:p),$("#Form_feedbackForm_ReportType").val("missing").change(),$("#missingContentModal").foundation("reveal","close")})),$("#missingContentModalNo").click((function(){$("#missingContentModal").foundation("reveal","close")})),$("#Form_feedbackForm_DuplicateIdentifier").change((function(){const p=$(this).val(),y=$("#Form_feedbackForm_DuplicateIdentifier_Holder span.description");validateUrl(p)&&p.indexOf("werstreamt.es")>-1?$.post("suche/urlToContent",{url:p}).then((p=>{p.title?(y.html(`<div class="mt-10 ml-5 fs-15" style="display: flex;"><img src="${p.poster}" alt="${p.title}" class="mr-10" style="height: 50px;" /><div style="height: fit-content;margin: auto 0;"><strong><a href='${p.url}'>${p.title}</a></strong><br />${p.character}, ${p.year}</div></div>`),C.prop("disabled",!1)):(y.html("Leider konnten wir keinen passenden Eintrag zur URL finden."),C.prop("disabled",!0))})):(y.html("Wenn du ein Duplikat melden möchtest, verwende bitte eine URL von uns."),C.prop("disabled",!0))})),$(".seasons .season").click((function(p){$(p.target).hasClass("go-to")||$(this).toggleClass("active").next("div.episodes").slideToggle(100)}
17)),$(".confirm").click((function(p){return confirm("Bist du sicher dass du diesen Eintrag behalten möchtest?")}))}));const removeFromList=()=>{$(".ContentListPage ul.customList .manage .removeFromList").off("click").on("click",(function(p){p.stopPropagation(),p.preventDefault();const y=$(this).closest("li"),C=y.data("contentid"),T=$(this).closest("ul"),D=window.location.pathname.split("/")[3];y.find(".removeFromList").addClass("loading"),$.ajax("/jsonservice/Profile/removeContentFromList",{type:"post",data:{ContentID:C,ListID:D}}).done((function(p){})).done((function(p){!0===p.response&&(T.find("li")[T.find("li").index(y)-1].remove(),y.remove(),1===T.find("li").length&&(T.find("li.add").click(),$(".ContentListPage .noContentMsg").fadeIn()))}))}))};function initPaddle(){if(window.Paddle_initialized&&window.Paddle)return $.Deferred().resolve(window.Paddle).promise();if(window.Paddle_initializing)return window.Paddle_initializing.promise();const p=$.Deferred(),initializePaddle=function(){window.Paddle_initialized||("production"!==$('meta[name="paddle-environment"]').attr("content")?(Paddle.Environment.set("sandbox"),Paddle.Initialize({token:"test_b507d640243f480edb4eb483f63"})):Paddle.Initialize({token:"live_b5635e8ff61c660140245316677"}),window.Paddle_initialized=!0),p.resolve(window.Paddle)};return window.Paddle_initializing=p,window.Paddle?initializePaddle():$.getScript("https://cdn.paddle.com/paddle/v2/paddle.js").done((function(){initializePaddle()})).fail((function(){window.Paddle_initializing=null,p.reject()})),p.promise()}function openCheckout(p){initPaddle().done((function(){window.Paddle.Checkout.open({items:p,customer:{email:wse.user.member.EMail},settings:{allowLogout:!1,successUrl:window.location.origin+"/profil/pro/done/?temporaryOptOut=true",theme:"dark"},customData:{app_user_id:wse.user.member.SubscriberID}})}))}"/pro/"===window.location.pathname&&initPaddle();var wse={user:{isMember:!1,isVerified:!1,providers:[],lists:[],ownLists:[],recommendations:!1,accountLoaded:new $.Deferred},content:{id:0},init:function(){if(wseConsole.log("WSE Init start"),window.location.hash&&window.location.hash.length>0){var p=window.location.hash.split("/");"#wseconsole"==p[0]&&(wseConsole.log("wseconsole parameter found, value: "+p[1]),$.cookie("wseconsole",p[1],{path:"/"}),alert("wseconsole set to "+p[1]+", please reload page"))}navigator.userAgent.indexOf("WerStreamtEsApp")>-1&&$("body").addClass("wseApp"),navigator.userAgent.indexOf("WerStreamtEsSportApp")>-1&&$("body").addClass("wseSportApp"),wseConsole.log("WSE Init 1"),wse.runBrowserHacks(),wseConsole.log("WSE Init 2"),wse.content.id=$(".ContentSummary").find(".options[data-contentid]").data("contentid"),wseConsole.log("WSE Init 3"),(async()=>{try{await window.UserWidgetReady,wse.loadAccountMenu()}catch(p){console.error("Widget-Fehler:",p)}})(),wseConsole.log("WSE Init 4"),wseConsole.log("WSE Init 5"),wse.user.accountLoaded.promise().then((function(){$("ul.content, ul.customList").children("li").wseAvaStatus(),xAvailability.init(),$("ul:has(li[data-contentid] .options)").wseListOptions(),$(".ContentSummary:has(.options[data-contentid])").wseListOptions(),wse.user.isMember&&($("div.element[data-refresh]").wseElementalRefresh(),$(document).on("opened.fndtn.reveal","[data-reveal]",(function(){$(this).find("div.element[data-refresh]").wseElementalRefresh()})))})),wseConsole.log("WSE Init 8"),wse.home.init(),wseConsole.log("WSE Init 9"),wse.lists.init(),wseConsole.log("WSE Init 10"),wse.lists.setupSliders(),wse.initReturnBox(),$("[data-wse-postable-url]").wsePostable({callback:function(p,y){var C=(y=y.split("/").filter(Boolean))[y.length-1];wse.ReturnBox.show(C);var T=$(p.target),D="ProviderButton";T.is(".noButton")&&(D="Text"),gaSend("Clickout",D,T.closest("div.provider").data("options").StreamProviderID)}}),$("div.avalibility").on("submit","form",(function(){var p=$(this).attr("action").split("/"),y=p[p.length-1];wse.ReturnBox.show(y)})),wseConsole.log("WSE Init 12"),$("ul.socialShare").wseSocialShare(),wseConsole.log("WSE Init 13"),$("body.ContentListPage, body.ContentPage").wseListNotifications(),wseConsole.log("WSE Init 14"),wseConsole.log("WSE Init 15"),wseConsole.log("WSE Init 16"),$(".customTrailerPlayer").wseVideoEvents(),wseConsole.log("WSE Init 17"),$(".wseLiveDateTime").wseLiveDateTime();var y=null;if(window.location.hash.length>0&&window.location.hash.indexOf("utm_")>-1?y=window.location.hash:window.location.search.length>0&&window.location.search.indexOf("utm_")>-1&&(y=window.location.search),y){y=y.substr(1),$('a[href^="https://play.google.com/store/apps/details"]').attr("href",(function(p,C){return C+"&referrer="+encodeURI(y)}));var C=new URLSearchParams(y);y=C.get("utm_campaign"),$('a[href^="https://apps.apple.com/"]').attr("href",(function(p,C){return C+"&pt=240941&ct="+encodeURI(y)}))}wseConsole.log("WSE Init done")},initAddInsideListElements:()=>
17$("li.add").off("click").on("click",(p=>{if("INPUT"===$(p.target).prop("tagName")||$(p.target).hasClass("ui-autocomplete-input"))return;const y=$("li.add"),C=y.index($(p.target))+1;y.removeClass("content-list-auto-completer").html(""),$(p.target).addClass("content-list-auto-completer"),window.setTimeout((()=>{$("<input>").attr("id","q").attr("placeholder",`Film oder Serie ${window.innerWidth>500?`an Position ${C}`:""} hinzufügen`).focusout((p=>{const y=$(p.target).parent();if(1===$("ul.customList li.add").length||y.hasClass("loading"))return!1;y.removeClass("content-list-auto-completer").find("input").hide()})).autocomplete({minLength:2,delay:200,html:!0,autoFocus:!0,source:(p,y)=>{$.ajax({url:`/suche/suggestTitle?ListID=${$("[data-list-id]").data("list-id")}&term=${$("#q").val()}`,success:p=>{if(Object.keys(p).length>0)return y(p);y([{label:`<span>Die Suche nach „${$("#q").val()}” hat keine Ergebnisse geliefert.</span>`,id:-1}])}})},response:p=>{$(p.target).parent().removeClass("loading")},open:()=>{$("ul.ui-autocomplete.ui-widget-content > li").each((function(){$(this).data("avastatus",$(this).find("a[data-avastatus]").data("avastatus"))})).wseAvaStatus("update")},search:p=>{$(p.target).parent().addClass("loading")},select:(p,y)=>{if(-1===y.item.id)return void window.setTimeout((()=>$(p.target).val("")));$(p.target).parent().addClass("loading");const T=$("ul.customList"),D=T.data("list-id");$.ajax("/jsonservice/Profile/sortContentList",{type:"post",data:{Copy:!1,CopyListID:D,ListID:D,EndPosition:C,ContentID:y.item.id}}).done((C=>{$(p.target).parent().removeClass("loading");const D=$(`[data-contentid='${y.item.id}']`);D.length>0&&(T.find("li")[T.find("li").index(D)-1].remove(),D.remove()),$(C.response).insertAfter($(p.target).parent()).after($("<li>
17").addClass("add")),removeFromList(),initCommentForm(),loadRating($("div.rating")),$("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus"),$("ul.customList li").wseAvaStatus("update"),wse.initAddInsideListElements(),$(p.target).parent().next().next().click(),$(".noContentMsg").fadeOut()}))}}).appendTo($(p.target)).focus()}),280)})),initReturnBox:function(){wse.ReturnBox={tmHandle:null},wse.ReturnBox.show=function(p){clearTimeout(wse.ReturnBox.tmHandle),$("#returnBox").find("form input[name=StreamID]").val(p),setTimeout(showReturnBox,100)};let showReturnBox=function(){$("#returnBox").removeClass("alert-close").show().find("div.noproblem").hide(),$("#returnBox").find("div.problem").show(),wse.ReturnBox.tmHandle=setTimeout(updateReturnBox,3e5)};var updateReturnBox=function(){$("#returnBox").is(":visible")&&($("#returnBox").find("div.problem").hide(),$("#returnBox").find("div.noproblem").show(),loadRating($("#returnBox").find("div.rating")))};$("#returnBox").on("click","a.close, .rating .stars",(function(){$("#returnBox").fadeOut()}))},runBrowserHacks:function(){navigator.userAgent.match(/(Windows Phone)/)&&$("html").addClass("touch").removeClass("no-touch"),navigator.userAgent.match(/(iPod|iPhone|iPad|Android|Windows Phone)/)&&$("div.backdrop").css("background-attachment","scroll")},loadAccountMenu:function(){if(wse.user.isMember=$("nav li.login").is(".isMember"),wse.user.isMember){$(document).foundation("topbar","reflow"),wse.user.providers=$("nav li.login").data("providers"),wse.user.isVerified=$("nav li.login").data("verified"),wse.user.recommendations=$("nav li.login").data("recommendations"),wse.user.member=$("nav li.login").data("member"),wse.user.recommendations&&$("body").addClass("recommendations");const p=$("[data-user-lists] [data-list]");p.length>0&&(wse.user.lists=[],p.each((function(){wse.user.lists.push({id:$(this).data("id"),title:$(this).data("title"),icon:$(this).data("icon"),types:$(this).data("types")})}))),wse.user.ownLists=$("[data-own-lists]").data("own-lists"),$("ul.content > li, ul.customList > li").wseAvaStatus("update")}else{let p=$("nav li.login > a");-1!==p.attr("href").indexOf("BackURL")||document.location.pathname.startsWith("/registrieren/")||p.attr("href",p.attr("href")+"?BackURL="+encodeURIComponent(document.location.pathname+document.location.search))}wse.setIsMember(wse.user.isMember),wse.user.accountLoaded.resolve()},setIsMember:function(p){wse.user.isMember=p,$.cookie("WasMember",wse.user.isMember?"yes":"no",{path:"/"})},showLogin:function(p){void 0===p&&(p=document.location),$("#dialogBox").foundation("reveal","open","/Security/login?BackURL="+escape(p))},transferEffect:function(p,y,C){p.effect("transfer",{to:y},C)},smallHome:function(){Foundation.utils.is_small_only()||Foundation.utils.is_medium_only()?($("div.filterEditor ul.filterEditList").addClass("accordion").attr("data-accordion",""),$("div.filterEditor ul.filterEditList > li").addClass("accordion-navigation column small-12"),$(document).foundation("accordion","reflow")):($("div.filterEditor ul.filterEditList").removeClass("accordion"),$("div.filterEditor ul.filterEditList > li").removeClass("accordion-navigation column small-12"),$(".filterEditor ul.content").show())},home:{init:function(){$("body").is(".HomePage")&&($("html").is(".no-touch")&&$("#NiceSearchForm_SearchForm_q").focus(),wse.home.initHightlights(),wse.user.isMember)},checkSlider:function(){Foundation.utils.is_large_up()?$(".homepage-orbit.slick-initialized").slick("unslick"):$(".homepage-orbit:not(.slick-initialized)").slick({autoplay:!0,fade:!0,dots:!0,arrows:!1,mobileFirst:!0})},initHightlights:function(){$(window).on("resize",Foundation.utils.debounce((function(p){wse.home.checkSlider()}),100)),wse.home.checkSlider()},loadUserLists:function(){if(!wse.user.isMember)return!1;wse.user.recommendations&&$(".loadingMyProgramm").slideDown(100),$("<div>").load("/home/UserLists",(function(p,y,C){if("error"!==y){var T=$("div.HomeContent").find("div.dsfg");$(this).find("div.homepageList").prepend(T),$("div.HomeContent").html(""),$("div.HomeContent").append($(this)),wse.home.checkSlider(),wse.lists.setupSliders(),$("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus");var D=$(this).find("ul.content");wse.lists.setupEvents(D),D.find(" > li").wseAvaStatus("update"),wse.user.recommendations&&$(this).wseMyProgramm(),$(document).foundation("alert","reflow")}else $(".loadingMyProgramm").hide()}))}},lists:{init:function(){$(".saveFilterBtn").click(wse.lists.saveFilter)},setupEvents:function(p){p.on("click","li a[itemprop=url]",(function(p){var y=$(this).closest("ul").data("list");if(void 0!==y){p.stopPropagation(),p.preventDefault();var C=$(this).attr("href");0!==C.indexOf("/")&&(C="/"+C),jQuery.get("/home/track/"+y.sponsor+"/"+$(this).closest("li").data("c
17ontentid")).always((function(){window.location=C}))}}))},saveFilter:function(){if(!wse.user.isMember)return wse.showLogin(),!1;var p=$("div[data-filter]").data("filter"),y=window.prompt("Wie soll der Eintrag heißen?",p.longTitle);y&&$.ajax("/jsonservice/Profile/saveFilter?title="+encodeURIComponent(y)+"&filterUrl="+p.filterUrl).done((function(){alert("hat geklappt")})).fail((function(){alert("ging nicht :(")}))},setupSliders:function(){var p=$(".sliderList div:not(.sliderActive) > ul.content.lines-1, .slideThisContainer  div:not(.sliderActive) > ul.slideThisInner"),checkSliders=function(){var p=$(this).closest("div.sliderActive");$(this).scrollLeft()>0?p.find(".sliderLeft").addClass("showSlider"):p.find(".sliderLeft").removeClass("showSlider"),this.scrollWidth-$(this).scrollLeft()>$(this).width()?p.find(".sliderRight").addClass("showSlider"):p.find(".sliderRight").removeClass("showSlider")};p.each((function(){var p=$(this),y=$("<span class='sliderControl sliderLeft'>&lt;</span><span class='sliderControl sliderRight'>&gt;</span>");p.closest("div").addClass("sliderActive").append(y),y.click((function(){p.css("scroll-snap-type","unset");const resetSnap=()=>p.css("scroll-snap-type","x proximity");var y=p.scrollLeft();if($(this).is(".sliderLeft"))(y-=p.width())<0&&(y=0),p.animate({scrollLeft:y},resetSnap);else{y+=p.width();var C=p.get().scrollWidth-p.width();y>C&&(y=C),p.animate({scrollLeft:y},resetSnap)}})),checkSliders.apply(this)})).hover(checkSliders).scroll(checkSliders)}}};function showAvailabilityMessage(){var p=$("#avalibility").data("options").ContentClassName,y=-1;$("div.myProviders").length>0&&(y=$("div.myProviders").nextUntil("div.otherProviders").has($("div.row.available")).length);var C,T=$("div#avalibility div.provider:has(div.row.available span.free)").length,D=$("div#avalibility div.provider:has(div.row.available)").length;$("div.notAvaliableMessage").remove();var P="",I="",A="Aktiviere Benachrichtigungen für "+("Film"===p?"diesem Film":"diese Serie")+", um über Änderungen informiert zu werden.",E="",O="Film"===p?"er Film":"ie Serie";if(0===D)P="Anbieter";else{var N=$("div#avalibility div.provider:has(div.row.available) h5").length,j=N>1?"n":"";$(".filterMyProviders").hasClass("active")&&0===y?(P="deiner Anbieter",I=", aber bei "+N+" anderen Anbieter"+j):$(".filterFree").hasClass("active")&&0===T&&(P="Anbieter gratis",A="",E="Bei "+N+" Anbieter"+j+" ist d"+O+" kostenpflichtig verfügbar.")}""!==P&&(C=$("<div data-alert class='alert-box radius notAvaliableMessage'><strong>D"+O+" ist aktuell bei keinem "+P+" verfügbar"+I+".</strong><br />"+A+E+"<a class='close'>&times;</a></div>"),D>0&&$("div.tabs-content div.content div.avalibility div.otherProviders").before(C),$(document).foundation("alert","reflow"))}var xAvailability={init:function(){if(0===$("div#avalibility").length)return!1;xAvailability.loadAvailability(wse.user.providers)},loadAvailability:function(p){var y=$("div#avalibility"),sortContent=function(p){var y=p.get(0).className.replace("active","").trim();if($.cookie("streamSort",y,{expires:30,path:"/"}),!wse.user.isMember&&"filterMyProviders"===y)return wse.showLogin(),!1;updateSort(y),showAvailabilityMessage()},updateSort=function(C){"filterMyProviders"!==C||wse.user.isMember||(C="filterAvalibility"),$("dl.sub-nav dd."+C).addClass("active").siblings().removeClass("active"),$("ul#dropFilter li."+C).addClass("active").siblings().removeClass("active"),$("a[data-dropdown='dropFilter'] span").text("Filter: "+$("li."+C+" a").text()),y.find("div.row.providerHeader").remove();var T=y,D=T.find("> div.provider"),P=D.get(),I=T.find("> div.row:not(.provider):not(.providerHeader)");P.sort((function(p,y){return $(p).data("options").DefaultPos-$(y).data("options").DefaultPos})),$.each(P,(function(p,y){T.append(y)}));var A=$('<span class="notifDialogButton" style="font-size: 1rem; float: right; cursor: pointer" data-reveal-id="dialogBox2" data-reveal-ajax="/home/NotificationDialog/'+wse.content.id+'"><i class="fi-mail"></i> Über Änderungen benachrichtigen</span>');if(0!==D.length){switch(y.prepend("<div class='row collapsed otherProviders providerHeader'><h6>Weitere Anbieter</h6></div>"),C){case"filterFree":y.prepend("<div class='row collapsed myProvi
17ders providerHeader'><h6>Gratisinhalte</h6></div>"),0===y.find("span.badge.free").closest("div.provider").each((function(){y.find("div.row.otherProviders").before(this)})).length&&y.find("div.row.myProviders").remove();break;case"filterAvalibility":y.prepend("<div class='row collapsed myProviders providerHeader'><h6>Verfügbar bei</h6></div>"),0===y.find(".available").closest("div.provider").each((function(){y.find("div.row.otherProviders").before(this)})).length&&y.find("div.row.myProviders").remove();break;case"filterMyProviders":if(p.length>0){y.prepend("<div class='row collapsed myProviders providerHeader'><h6>Meine Anbieter</h6></div>");var E=p.slice();E.reverse(),$.each(E,(function(p,C){y.find("> div.provider").each((function(){if(String($(this).data("options").StreamProviderID)===String(C))return y.find("div.row.myProviders").after(this),!0}))}))}}y.find("div.row.providerHeader h6").append(A);var O=y.find("> ").not(I),N=$("#avalibility").find("div.row.providerHeader:first").nextUntil(":not(.provider)").addBack();N.length>=5?O.each((function(p){p<5?I.before(this):y.append(this)})):O.each((function(p){$(this).is(N)?I.before(this):y.append(this)}))}},C=$.cookie("streamSort");C||(C="filterAvalibility",wse.user.isMember?C="filterMyProviders":document.referrer.indexOf("/option-kostenlos")>-1&&(C="filterFree")),updateSort(C),showAvailabilityMessage(),$("dl.sub-nav dd a:not([href])").click((function(){sortContent($(this).closest("dd"))})),$("ul#dropFilter li a").click((function(){sortContent($(this).closest("li"))}))}};
17function initCommentForm(){$(".comment-form textarea").keydown((function(p){13==p.keyCode&&p.preventDefault()})),$(".comment-form").submit((function(p){p.preventDefault(),p.stopPropagation();const y=$(this);if(0==$("[data-has-pro='true']").length)return void $("#dialogBox_wide").foundation("reveal","open","/pro/modal/");const C=window.location.pathname.split("/")[3],T=$(this).data("contentid"),D=(new DOMParser).parseFromString($(this).find(".comment").val(),"text/html").body.textContent||"",P=$(this).find(".spoiler"),I=$(this).find(".when").val()??null;$.ajax(`/jsonservice/Profile/updateContentListItem?${I?`when=${I}&`:""}ListID=${C}&ContentListItemId=${T}&comment=${encodeURI(D)}&spoiler=${P.is(":checked")?"true":"false"}`).done((function(p){y.closest("[data-reveal]").foundation("reveal","close");const C=$(`[data-contentid='${T}'] .comment`),A=C.find(".comment-text"),E=C.find("p"),O=P.is(":checked"),N=A.find(".show-spoiler");if(D?(C.show(),E.show().html('<span class="comment-value"></span><i class="ml-4 fi-pencil"></i>'),E.find(".comment-value").text(D),E.toggleClass("spoiler",O),O&&0===N.length&&A.append('<a class="show-spoiler" style="font-size: 12px; text-align: left">Spoiler anzeigen</a>'),O||N.remove()):(C.hide(),E.hide().removeClass("spoiler"),N.remove()),I){const p=new Intl.DateTimeFormat("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}).format(new Date(I));$(`[data-contentid='${T}'] .whenWatched`).html(p).parent().show()}}))}))}function loadRating(p){if(0===p.length)return!1;var y=[];p.each((function(){var p=$(this);p.find("em").remove(),y.push(p.data("contentid"))}));var setupRatingControl=function(y,C){var T=p.filter('[data-contentid="'+y+'"]'),D=C.TotalRating;(T.parent(".noproblem").length>0||T.parent("#dialogBox").length>0)&&(D=null),T.data("score",D);var P={score:D,starType:"i",space:!1,cancelPlace:"right",cancelHint:"Deine Bewertung löschen",hints:["Mit einem Stern bewerten.","Mit 2 Sternen bewerten.","Mit 3 Sternen bewerten.","Mit 4 Sternen bewerten.","Mit 5 Sternen bewerten."],click:function(p,y){y.preventDefault(),y.stopPropagation();var C=$(this),T=null===p?"/jsonservice/Profile/deleteRating?ContentID="+C.closest("div.rating").data("contentid"):"/jsonservice/Profile/setRating?ContentID="+C.closest("div.rating").data("contentid")+"&Score="+p;C.addClass("loading"),$.ajax(T).always((function(){var p=C.closest("div.rating");loadRating(p),p.parents(".ContentSummary").length<=0&&loadRating($(".ContentSummary .rating")),C.removeClass("loading"),$("#returnBox").fadeOut(),$("#dialogBox").foundation("reveal","close")})).fail((function(){wse.showLogin("/profil/setRating/"+C.closest("div.rating").data("contentid")+"/"+p)}))}};C.UserRating>=0?(T.children("span.notRated").hide(),$("<em>Deine Wertung: "+C.UserRating+"</em>").appendTo(T),P.cancel=!0):($(".ContentListPage").length>0&&$(".PersonPage").length<=0&&T.children("span.notRated").show(),P.cancel=!1),T.find("span.stars").html("").raty(P)};wse.user.accountLoaded.promise().then((function(){if(wse.user.isMember)for(var C=0;C<y.length;C+=500){var T=y.slice(C,C+500);$.ajax("/jsonservice/Profile/getRatings",{type:"post",data:{ContentIDs:T}}).done((function(p){for(var y in p.response)setupRatingControl(y,p.response[y])}))}else for(C=0;C<y.length;C++){var D=y[C],P=p.filter('[data-contentid="'+D+'"]');setupRatingControl(D,{TotalRating:P.data("score")||0,UserRating:-1,UserRatingDate:null})}}))}$((function(){wse.init(),$(".updateable").wseUpdatePanel(),loadRating($(".ContentSummary div.rating")),loadRating($(".ContentListPage ul.customList li div.rating")),$.fn.isOnScreen=function(p){var y=this.get(0).getBoundingClientRect();return y.top-p<window.innerHeight&&y.bottom>0};var p=$("ul.pagination");if(p.length>0){var loadMore=function(){var y=p.find("a.next");if(y.length>0){p.html('<li class="unavailable loading" aria-disabled="true"><a>Lade weitere Einträge ..</a></li>');var C=y.attr("href");$("<div>").load(C,(function(){dataLayer.push({event:"wseVirtualPageView",wsePage:{title:document.title,location:C}}),$("div.results > ul").length>0?$("div.results > ul").append($(this).find("div.results > ul > li")):$("div.groupedResults > ul").length>0?$("div.groupedResults > ul").append($(this).find("div.groupedResults > ul > li")):$("div.dp-news-container > ul").length>0?$("div.dp-news-container > ul").append($(this).find("ul.NewsExtraList > li")):$("div.content-list-container > ul").length>0&&($("div.content-list-container > ul").append($(this).find("ul.customList > li")),removeFromList(),loadRating($(".ContentListPage ul.customList li div.rating")),wse.initAddInsideListElements()),$("ul:has(li[data-contentid] .options)").wseListOptions("loadStatus"),wse.lists.setupSliders(),$("ul.content > li, ul.customList > li").wseAvaStatus("update"),wse.lists.setupEvents($("ul.content")),p.html($(this).find("ul.pagination").html()),$(window).scroll(scrollEvent),scrollEvent(),$('div.sadfD > div:not(".mcloaded")').each((function(){var p=$("div.sadfD").index($(this).parent()),y="wse_sas_results_btf";p>1&&(y+="_"+p+Math.floor(1e8*Math.random()).toString()),this.id=y,function moreContent(p){$(p).addClass("mcloaded"),wseConsole.log("more
17Content called for "+p.id),wseConsole.log("call fd_nextAd"),wseAdSetup.getNextAd(p.id)}(this)}))}))}else p.fadeOut()},scrollEvent=function(){!p.isOnScreen(400)||window.location.hash&&0!==window.location.hash.indexOf("#utm_")||($(window).unbind("scroll",scrollEvent),setTimeout(loadMore(),10))};$(window).scroll(scrollEvent),scrollEvent()}$("#NiceSearchForm_SearchForm_q").autocomplete({source:"/suche/suggestTitle",minLength:2,delay:200,html:!0,response:function(p,y){$(this).closest("form").removeClass("loading")},open:function(p,y){$("ul.ui-autocomplete.ui-widget-content > li").each((function(){$(this).data("avastatus",$(this).find("a[data-avastatus]").data("avastatus"))})).wseAvaStatus("update")},search:function(p,y){$(this).closest("form").addClass("loading")},select:function(p,y){$(this).closest("form").submit()}}),Foundation.utils.is_small_only()&&$("#NiceSearchForm_SearchForm_q").on("focus",(function(){$("html, body").animate({scrollTop:$(this).closest("div.sticky").offset().top},"fast","swing")}));let y=$("body.ContentPage");if(y.length>0){y.find(".subNav").on("click","a",(function(){var p=$(this).attr("href").split("#")[1],y=$(".tabs li a[href$='#"+p+"']");y.length>0?y.click():($(".tabs li:eq(0) a").click(),(y=$("#"+p)).is("h5")&&y.closest("div.row").next("div.row").is(".seasons")&&y.parent().parent().parent().find(".seasons").slideDown(100))})),y.find(".tabs li").on("opened",(function(){var p=$(this);if(p.siblings(".active").length>0){var y=p.find("a").attr("href"),C=y.split("#")[1];dataLayer.push({event:"wseVirtualPageView",wsePage:{title:document.title,location:y}}),gaSend("TabClicked",C,wse.content.id),"disc"==C&&wseAdSetup.getNextAd("wse_sas_details_disc")}})),setTimeout((function(){var p=$("div#avalibility").data("options");p&&jQuery.get(p.ContentClassName.toLowerCase()+"/track/"+p.ContentID)}),3e3);var C="onbeforematch"in document.body,hideMoreDescription=function(){$("a.ellips").hide(),$("div.more").removeAttr("hidden").css("display","inline")};C&&($("ul.more-people").on("beforematch",(function(){$("li.showAllPeople").hide()})),$("div.more").on("beforematch",(function(){hideMoreDescription()}))),$("a.ellips").on("click",(function(){hideMoreDescription()})),$("li.showAllPeople").on("click",(function(){$(this).hide(),$("ul.more-people").removeAttr("hidden")}))}var T;function sortUserProvider(p,y){var C=$(y.item).closest("ol").find("> li").map((function(){return $(this).data("id")})).toArray();$.ajax("/jsonservice/Profile/setStreamProviders",{type:"post",data:{sort:C}}).done((function(p){if(!0===p.response){var y=$("span.providersUpdated");y.hide().fadeIn(),clearTimeout(T),T=setTimeout((function(){y.fadeOut()}),2e3)}})),0===C.length?$(".providerLists .providerBox").addClass("noProviders"):$(".providerLists .providerBox").removeClass("noProviders")}$(".providerLists ol").sortable({cursor:"move",containment:".Layout"}),$(".providerLists").disableSelection(),$(".providerLists ol").on("sortupdate",(function(p,y){clearTimeout(T),sortUserProvider(0,y)})),$("div.providerLists").on("click","i.fi-arrow-down",(function(p){$(this).parents("li").next().length>0&&(wse.transferEffect($(this).parents("li"),$(this).parents("li").next(),300),$(this).parents("li").before($(this).parents("li").next()),sortUserProvider(0,{item:this}))})).on("click","i.fi-arrow-up",(function(p){$(this).parents("li").prev().length>0&&(wse.transferEffect($(this).parents("li"),$(this).parents("li").prev(),300),$(this).parents("li").after($(this).parents("li").prev()),sortUserProvider(0,{item:this}))})),$(".providerLists ol").on("click","i.fi-x",(function(p){var y=$(this).closest("li"),C=y.data("id"),T=y.clone();$('.providerLists li[data-id="'+C+'"] input[type="checkbox"]').removeAttr("checked"),wse.transferEffect(y,T,500),y.remove(),sortUserProvider(0,{item:$(".providerLists ol").find("li").first()})})),$(".providerLists .allProviderSort div.switch").on("change",(function(p){var y=$(this).children('input[type="checkbox"]').is(":checked"),C=$(this).closest("li"),T=C.text(),D=C.data("id"),P=C.data("grouptitle");if(y){var I="";I=P?'<div class="left">'+T+'<span class="grouptitle">'+P+"</div>":'<div class="left">'+T+"</div>";var A=C.clone();A.css("opacity",0),A.children().remove(),A.text(""),A.append($(I)),A.append($('                        <div class="right">
17\n                            <span class="userIcons">\n                                <i class="fi-arrow-up" style="padding: .5em 1em;"></i>\n                                <i class="fi-arrow-down" style="padding: .5em 1em;"></i>\n                            </span>\n                            <span class="userIcons">\n                                <i class="fi-x" style="padding: .5em 1em;"></i>\n                             </span>\n                        </div>\n')),$("ol.ui-sortable").append(A),C.effect("transfer",{to:A},500,(function(){A.animate({opacity:1},"fast")})),sortUserProvider(0,{item:A})}else{(A=$("ol.ui-sortable").find('li[data-id="'+D+'"]')).remove(),sortUserProvider(0,{item:$(".providerLists ol").find("li").first()})}})),$(document).on("opened.fndtn.reveal","[data-reveal]",(function(){var p=$(this);if(0===p.find(".close-reveal-modal").length&&p.prepend('<a class="close-reveal-modal" aria-label="Close">&#215;</a>'),navigator.userAgent.match(/(iPod|iPhone|iPad|Android|Windows Phone)/)||$("body").addClass("stop-scrolling"),p.find("div.rating").length>0&&loadRating(p.find("div.rating")),p.is("#createListBox")&&(p.find(".formCreateList input[type=text]").focus(),p.wseListOptions()),p.find(".customLists").length>0&&p.find(".customLists").wseListOptions(),p.find("div.options.notifyDialog").length>0){p.find(".options.notifyDialog").wseListOptions();for(var y=wse.user.lists.filter((p=>p.types.includes("Watch"))),C=$(".ContentSummary .options").data("liststatus"),T=0;T<y.length;T++){var D=y[T];if(C&&!0===C[D.id]){var P=$(".options.notifyDialog"),I=P.find("span.notify"),A=I.children();I.text(" Bereits auf der "+D.title).prepend(A),P.addClass("onwatch")}}}})).on("closed.fndtn.reveal","[data-reveal]",(function(){$("body").removeClass("stop-scrolling")})),$("input#setMyProgramNewsletter").on("change",(function(){var p=$(this),y=p.closest(".updateable"),C=0;p.is(":checked")?(C=1,$(".myProgramNewsletterEnabled").removeClass("hide"),$(".myProgramNewsletterDisabled").addClass("hide")):($(".myProgramNewsletterDisabled").removeClass("hide"),$(".myProgramNewsletterEnabled").addClass("hide")),y.trigger("updating"),$.ajax("/jsonservice/Profile/editMyProgramNewsletter?wanted="+C).done((function(){y.trigger("updated")})).fail((function(){y.trigger("failed")}))})),wse.lists.setupEvents($("ul.content"));const D=$("ul.customList li.add").first();function updateSelectedListIconPreview(){const p=$(".list-icon-picker");if(!p.length)return;const y=p.find(".icons-list .icon.active").first();if(!y.length)return;const C=y.data("icon");C&&p.find(".list-icon-trigger .selected-icon i").attr("class","icon-"+C)}D.length>0&&window.setTimeout((()=>D.click())),$("div#dialogBox").on("click","div.createList",(function(){$(this).hide(),$(this).parents().find(".formCreateList").fadeIn(),$(this).parents().find(".formCreateList input[type=text]").focus()})),$('span[data-optiontype="custom"]').click((function(){let p="addContentToList";
17$(this).find("i").hasClass("active")&&(p="removeContentFromList");const y=$(this);$.ajax("/jsonservice/Profile/"+p+"?ContentID="+$(this).data("content-id")+"&ListID="+$(this).data("list-id")).done((function(C){C.response&&("addContentToList"===p?y.find("i").addClass("active"):y.find("i").removeClass("active"))}))})),updateSelectedListIconPreview(),$(".list-icon-dropdown .icons-list .icon").click((function(p){if(p.preventDefault(),$(this).hasClass("disabled"))return;$(".list-icon-dropdown .icons-list .icon").removeClass("active"),$(this).addClass("active"),updateSelectedListIconPreview();$("#listIconDropdown").removeClass("open").attr("aria-hidden","true"),$(".list-icon-trigger[data-dropdown='listIconDropdown']").attr("aria-expanded","false"),refreshListSettingsSaveHint()}));let P=$(".editableTitle").length?$(".editableTitle").val():null,I=$(".editableDescription").length?$(".editableDescription").val():null,A=$(".icons-list .icon.active").first().data("icon")??null,E=$("#ContentListTags").length?$("#ContentListTags").val():null,O=E;const N=$(".list-settings-save-hint");function normalizeListSettingValue(p){return null==p?"":"string"==typeof p?p:String(p)}function getSelectedListIcon(){return $(".icons-list .icon.active").first().data("icon")??null}function refreshListSettingsSaveHint(){if(!N.length)return;const p=$(".editableTitle").length?$(".editableTitle").val():null,y=$(".editableDescription").length?$(".editableDescription").val():null,C=getSelectedListIcon(),T=$("#ContentListTags").length?null!=O?O:$("#ContentListTags").val():null,D=null!==P&&normalizeListSettingValue(p)!==normalizeListSettingValue(P),j=null!==I&&normalizeListSettingValue(y)!==normalizeListSettingValue(I),q=normalizeListSettingValue(C)!==normalizeListSettingValue(A),U=null!==E&&normalizeListSettingValue(T)!==normalizeListSettingValue(E);N.toggleClass("is-visible",D||j||q||U)}function formatDescriptionHtml(p){return $("<div>").text(p).html().replace(/\r?\n/g,"<br>")}function updateListSettings(p){var y=window.location.pathname.split("/")[3],C=$(".editableTitle").val(),T=$(".editableDescription").val();const D=!(!p||!p.hasClass("list-settings-save-action"));C||((C=$("h1 .list-title-text").first().text().trim())||(C=$("h1").html().replace(/<[^>]*>/g,"").trim()),$(".editableTitle").val(C)),null===P||D||(C=P),null===I||D||(T=I);var N=$("input#publishList").is(":checked"),j=$("input#favoriteList").is(":checked");const q=getSelectedListIcon(),U=D?q:A,Y=D?O:E;var X=$(".listOptions.updateable");X.trigger("updating");var Q={Title:C,Description:T,Public:N,Icon:U,Favorite:j};$.ajax("/jsonservice/Profile/updateContentList",{type:"post",data:{ListID:y,Settings:Q}}).done((function(){X.trigger("updated");var j=$(".ContentListPage #publicLabel"),q=j.children();N?($(".ContentListPage .sharePanel, .ContentListPage .shareIconForSmall, .ContentListPage .rss").addClass("public"),j.removeClass("secondary"),j.text(" öffentlich").prepend(q)):($(".ContentListPage .sharePanel, .ContentListPage .shareIconForSmall, .ContentListPage .rss").removeClass("public"),j.addClass("secondary"),j.text(" privat").prepend(q));const Q=$("h1 .list-title-text");if(Q.length)Q.text(C);else{var G=$("h1").children();$("h1").text(C+" ").append(G)}D&&null!==P&&(P=C);const Z=$("h1 .list-title-icon");if(Z.length&&(U?Z.attr("class","list-title-icon icon-"+U):Z.attr("class","list-title-icon fi-list-thumbnails")),"string"==typeof T){const p=T.trim(),y=$(".ContentListPage .list-description-intro"),C=T!==I;p.length>0?y.length?C&&y.html(formatDescriptionHtml(T)):$(".ContentListPage .listBadges").after($("<div>").addClass("list-description-intro").html(formatDescriptionHtml(T))):y.remove(),I=T}D&&null!==Y&&Y!==E?function updateContentListTags(p,y){return $.ajax("/jsonservice/Profile/updateContentListTags",{type:"post",data:{Tags:JSON.stringify(y),ListID:p}})}(y,Y).done((function(p){!0===p.response&&(E=Y,O=Y,refreshListSettingsSaveHint())})).fail((function(){console.log("Leider ist ein Fehler beim Speichern der Tags aufgetreten."),refreshListSettingsSaveHint()})):D&&null!==Y&&(E=Y,O=Y),A=U,$(".list-settings-save-action").blur(),refreshListSettingsSaveHint(),p.hasClass("rss")&&(window.location.href="/listen/details/"+y+"/rss",$("#makeListPublicBox").foundation("reveal","close"))})).fail((function(){X.trigger("failed"),refreshListSettingsSaveHint()}))}refreshListSettingsSaveHint(),$(".ContentListPage").on("click",".editListSettings, #publicLabel, #notificationLabel",(function(){$(".listOptions").slideToggle(100,refreshListSettingsSaveHint)})).on("click",".listOptions .close",(function(){$(".listOptions").slide
17Up(100,refreshListSettingsSaveHint)})).on("click",".list-settings-save-action",(function(){updateListSettings($(this))})).on("input change keyup",".editableTitle, .editableDescription",(function(){refreshListSettingsSaveHint()})).on("click",".listOptions input#publishList",(function(){updateListSettings($(this))})).on("click",".listOptions input#favoriteList",(function(){updateListSettings($(this))})).on("click",".rss",(function(p){$("input#publishList").is(":checked")||(p.stopPropagation(),p.preventDefault(),$("#makeListPublicBox").foundation("reveal","open"))})),$("#makeListPublicBox button").on("click",(function(){$(this).hasClass("submit")?($("#makeListPublicBox .processing").show(),$("input#publishList").prop("checked",!0),updateListSettings($(".ContentListPage a.rss"))):$("#makeListPublicBox").foundation("reveal","close")}));var j=getUrlParams("imported");if(j){var q=parseInt(j);if(q>1)var U=q+" Einträge hinzugefügt.";else U="Ein Eintrag hinzugefügt.";var Y=$('<div data-alert="" class="alert-box radius"><strong>'+U+'</strong><a class="close">×</a></div>');q>0&&(Y.addClass("success"),$(".ContentListPage .row :has(.listContent) h4").before(Y),$(document).foundation("alert","reflow"))}removeFromList(),$(".ContentListPage .emptyList").on("click",(function(){if(event.stopPropagation(),event.preventDefault(),!0===confirm("Liste wirklich leeren?")){var p=window.location.pathname.split("/")[3];$.ajax("/jsonservice/Profile/clearContentList?ListID="+p).done((function(){$(".ContentListPage ul.customList li").each(((p,y)=>{0!==p&&$(y).remove()})),$(".ContentListPage .noContentMsg").fadeIn(),$("ul.customList li.add").first().click()}))}})),$(".ContentListPage .subscribeToSharedContentList").on("click",(function(){event.stopPropagation(),event.preventDefault(),$(this).prop("disabled",!0);let p=window.location.pathname.split("/")[3];$.ajax("/jsonservice/Profile/subscribeToSharedContentList?ShareToken="+p).done((function(p){!1===p.response?alert("Es ist leider ein Fehler aufgetreten."):window.location="/listen/bearbeiten/"+p.response+"/"}))})),$(".ContentListPage input[name='shareContentList']").change((function(){var p=$(this);setTimeout((function(){let y="yes"===p.val();if(!y){if(!confirm("Möchtest du die Freigabe der Liste wirklich aufheben? Andere Nutzer haben dann keinen Zugriff mehr auf die Liste."))return $(".ContentListPage input[name='shareContentList'][value='yes']").prop("checked",!0),!1}var C=$(".listOptions.updateable");C.trigger("updating");let T=window.location.pathname.split("/")[3];$.ajax("/jsonservice/Profile/shareContentList?ListID="+T+"&share="+y).done((function(p){C.trigger("updated"),$("input.sharedLinkInput").val(p.response)})).fail((function(){C.trigger("failed")}))}),100)}));const revealSpoiler=function(p){const y=p.find("p.spoiler .comment-value"),C=p.find(".show-spoiler");0!==y.length&&(y.addClass("spoiler-reveal"),C.addClass("is-hiding"),setTimeout((function(){p.find("p.spoiler").removeClass("spoiler"),y.removeClass("spoiler-reveal"),C.removeClass("is-hiding").addClass("is-hidden").attr("aria-hidden","true")}),100))};$(document).on("click",".show-spoiler",(function(){revealSpoiler($(this).closest(".comment"))})),$(document).on("click",".comment-text p.spoiler",(function(p){const y=$(this);y.attr("data-reveal-id")||$(p.target).closest("a").length>0||revealSpoiler(y.closest(".comment"))}
17)),initCommentForm(),$(".ContentListPage #duplicateListBtn").on("click",(function(){event.stopPropagation(),event.preventDefault();let p="/jsonservice/Profile/duplicateContentList?ListID="+window.location.pathname.split("/")[3];p+="&Public="+($("#isPublic").is(":checked")?"true":"false"),$.ajax(p).done((function(p){p.response.ID&&(document.location.href=`/listen/bearbeiten/${p.response.ID}/`)}))})),$("#duplicateList .cancel").click((function(){$("#duplicateList").foundation("reveal","close")}));var X=$(".ContentListPage h4 span.listContent"),Q=$(".ContentListPage ul.customList.sortable");Q.sortable({cursor:"move",cancel:"span,.add, textarea, .comment-section, input, a, .commentf",opacity:.5,axis:"y",start:function(p,y){X.removeClass("updated"),X.addClass("loading"),y.item.addClass("loading"),Q.addClass("sort"),Q.find("li.add").remove()},stop:function(p,y){X.removeClass("loading"),y.item.removeClass("loading"),$("div.listLoading li.afterLoading").unwrap(),y.item.nextAll().removeClass("afterLoading"),Q.removeClass("sort"),Q.find("li").each(((p,y)=>{$(y).before($("<li>").addClass("add")),wse.initAddInsideListElements()})),Q.find("li").last().after($("<li>").addClass("add"))},update:function(p,y){const C=window.location.pathname.split("/")[3];$.ajax("/jsonservice/Profile/sortContentList",{type:"post",data:{Copy:!1,CopyListID:C,ListID:C,EndPosition:y.item.index()-1,ContentID:$(y.item).attr("data-contentid")}}).done((function(){X.addClass("updated")}))}}),$(".ContentListPage .deleteList").on("click",(function(p){if(p.stopPropagation(),p.preventDefault(),!0===confirm("Liste wirklich löschen?")){var y=window.location.pathname.split("/")[3];$.ajax("/jsonservice/Profile/deleteContentList?ListID="+y).done((function(){window.location="/listen/meine"}))}})),$(".NotificationChange").on("click",".submitNotiflistChange",(function(){$(".loading-wrapper").removeClass("hide");var p=$("input[name=manageNotifs]:checked").val();$.ajax("/jsonservice/Profile/mergeNotificationLists?ListType="+p).done((function(p){$(".loading-wrapper, .beforeMigration").addClass("hide"),$(".afterMigration").removeClass("hide"),$(".migrationDone").on("click",(function(){var p=decodeURIComponent(getUrlParams("BackURL"));window.location=p||"/"}))}))})),$("#Form_deleteAccountForm").submit((function(){const p=$($(".ProfilePage .userEmail").contents().get(0)).text().trim();gaSend("AccountDeleted",p)})),$(".ProfilePage .userdataExportButton").on("click",(function(){const p=$($(".ProfilePage .userEmail").contents().get(0)).text().trim();gaSend("UserdataExportClick",p)})),$(".PartnerPage #overviewForUs").load("/partner/OverviewForUs",(function(p,y,C){"error"===y&&console.log(C),$(this).removeClass("loading")})),$(".PartnerPage #weeklyConversions").load("/partner/WeeklyConversions?"+$(".wseReport").serialize(),(function(p,y,C){"error"===y&&console.log(C),$(this).removeClass("loading")})),$(".PartnerPage .wseReport button").on("click",(function(p){p.stopPropagation(),p.preventDefault(),$(".PartnerPage #weeklyConversions").html("").addClass("loading"),$(".PartnerPage #weeklyConversions").load("/partner/WeeklyConversions?"+$(".wseReport").serialize(),(function(p,y,C){"error"===y&&console.log(C),$(this).removeClass("loading")}))}));const G=$("#allListsStateBtn"),updateListState=(p,y)=>$.ajax("/jsonservice/Profile/setListNotifications?ListID="+p+"&wanted="+y).done((function(C){!1===C.response?alert("Es ist leider ein Fehler aufgetreten."):(G.prop("disabled",0===$("[data-list-state-switch]:checked").length),"all"!==p||y||(G.prop("disabled",!0),$("[data-list-state-switch]:checked").each((function(){$(this).val(!1).prop("checked",!1)}))))})).fail((function(){alert("Failed!")}));function updateContentList(p,y){return $.ajax("/jsonservice/Profile/updateContentList",{type:"post",data:{ListID:p,Settings:y}}).fail((function(){console.log("Leider ist ein Fehler aufgetreten.")}))}function updatePinToggleState(p,y){const C=$(p),T=y?"Als Favorit entpinnen":"Als Favorit anpinnen";C.toggleClass("is-pinned",y),C.attr("data-pin-state",y?"1":"0"),C.attr("title",T),C.attr("aria-label",T),C.find(".pin-label").text(y?"Entpinnen":"Anpinnen"),C.closest(".content-list-overview-item").attr("data-list-favorite",y?"1":"0")}function updateFavoriteListEmptyState(){$("#fav-lists").length&&$("#fav-lists .empty").toggle(0===$("#fav-lists .list").length)}function persistContentListOrder(){if(!$("#fav-lists").length||!$("#default-lists").length)return;const p=$("#fav-lists").sortable("toArray").filter((p=>p)),y=$("#default-lists").sortable("toArray").filter((p=>p));return $.ajax("/jsonservice/IonicApp/sortContentLists?order="+[...p,...y].join(","))}function animateListTransfer(p,y,C){const T=$.Deferred();if(!p.length||!y.length)return T.resolve(),T.promise();const D=p.offset();if(!D)return"prepend"===C?y.prepend(p):y.append(p),T.resolve(),T.promise();const P=p.outerWidth(),I=p.outerHeight(),A=p.clone();
17A.css({position:"absolute",top:D.top,left:D.left,width:P,height:I,margin:0,opacity:.9,pointerEvents:"none",zIndex:1e5}),$("body").append(A),p.css("visibility","hidden"),"prepend"===C?y.prepend(p):y.append(p);const E=p.offset()||y.offset()||D;return A.animate({top:E.top,left:E.left,opacity:.35},230,(function(){A.remove(),p.css("visibility",""),T.resolve()})),T.promise()}if($("[data-list-state-switch]").change((function(){updateListState($(this).data("list-id"),$(this).is(":checked"))})),"undefined"!=typeof Tagify&&$("#ContentListTags").length>0){var Z=$("#ContentListTags")[0],tt=new Tagify(Z,{editTags:!1,whitelist:$(Z).data("tags"),transformTag:function transformTag(p){const y=$(Z).data("tags").find((y=>y.value===p.value));y&&y.color&&(p.style="--tag-bg: #DFAD05; --tag-hover: #f2bb02")}});tt.on("add remove input edit:updated",(function(){O=Z.value,refreshListSettingsSaveHint()})),$(".addTag").click((function(p){if(p.preventDefault(),Z.disabled)return;const y=$(this).data("tag");tt.addTags([y]),O=Z.value,refreshListSettingsSaveHint(),$(this).hasClass("addTagFromHint")&&$("#tagHint").foundation("reveal","close")})),Z&&Z.addEventListener("change",(function(p){O=p.target.value,refreshListSettingsSaveHint()})),function syncSavedListSettingsFromCurrentForm(){if($(".editableTitle").length&&(P=$(".editableTitle").val()),$(".editableDescription").length&&(I=$(".editableDescription").val()),A=getSelectedListIcon(),$("#ContentListTags").length){const p=$("#ContentListTags").val();E=p,O=p}}(),refreshListSettingsSaveHint()}$("#fav-lists, #default-lists").sortable({placeholder:"fav-list-placeholder",connectWith:".connectable",handle:".content-list-sort",cancel:".empty",revert:!0,receive:function(p,y){"fav-lists"===this.id&&updateContentList(y.item.attr("id"),{Favorite:!0}).done((function(){updatePinToggleState(y.item.find(".content-list-pin-toggle"),!0)}))},remove:function(p,y){"fav-lists"===this.id&&(confirm("Bist du sicher, dass du die Liste aus deinen Favoriten entfernen möchtest?")?updateContentList(y.item.attr("id"),{Favorite:!1}).done((function(){updatePinToggleState(y.item.find(".content-list-pin-toggle"),!1)})):$(this).sortable("cancel"))},stop:function(){updateFavoriteListEmptyState(),persistContentListOrder()}}).disableSelection(),$(".ContentListPage").on("click",".content-list-pin-toggle",(function(p){p.preventDefault(),p.stopPropagation();const y=$(this),C="1"===y.attr("data-pin-state"),T=!C,D=y.closest(".list"),P=D.attr("id")||y.closest(".content-list-overview-item").data("list-id");P&&(C&&!confirm("Bist du sicher, dass du die Liste aus deinen Favoriten entfernen möchtest?")||(y.prop("disabled",!0),updateContentList(P,{Favorite:T}).done((function(){updatePinToggleState(y,T);let p=$.Deferred().resolve().promise();D.length&&$("#fav-lists").length&&$("#default-lists").length&&(T&&"fav-lists"!==D.parent().attr("id")?p=animateListTransfer(D,$("#fav-lists"),"append"):T||"fav-lists"!==D.parent().attr("id")||(p=animateListTransfer(D,$("#default-lists"),"prepend")),updateFavoriteListEmptyState(),persistContentListOrder()),p.always((function(){y.prop("disabled",!1)}))})).fail((function(){y.prop("disabled",!1)}))))})),G.click((function(){updateListState("all",!1)})),wse.initAddInsideListElements()})),$((function(){$("ul.sport > li.wse-slide-item").on("click",(function(p){p.stopPropagation(),$("ul.sport > li.wse-slide-item").removeClass("active"),$(this).addClass("active"),$(this).find("ul.wse-slide-menu").scrollTop(0)}));var closeActiveOverlay=function(p){p.stopPropagation(),$("ul.sport > li.active ul.wse-slide-menu").scrollTop(0),$("ul.sport > li.wse-slide-item").removeClass("active")};$(".wse-slide-overlay-cancel").on("click",closeActiveOverlay),$("ul.wse-slide-menu > li > a").on("click",closeActiveOverlay)}));var wseQ=wseQ||{cmd:[]};!function(p,y,C,T){p((function(){if(!wseQ.loaded){!function(p,y){var C;for(p.push=function(p){y(p)};undefined!==(C=p.shift());)y(C)}(wseQ.cmd,(function(p){p()})),wseQ.loaded=!0}}))}(jQuery,window,document);

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.