!function(c,C){"object"==typeof module&&"object"==typeof module.exports?module.exports=c.document?C(c,!0):function(c){if(!c.document)throw new Error("jQuery requires a window with a document");return C(c)}:C(c)}("undefined"!=typeof window?window:this,function(v,c){function C(c,C){return C.toUpperCase()}var l=[],a=l.slice,V=l.concat,t=l.push,s=l.indexOf,e={},h=e.toString,L=e.hasOwnProperty,H={},S=v.document,z="2.1.4",m=function(c,C){return new m.fn.init(c,C)},M=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i=/^-ms-/,n=/-([\da-z])/gi;function r(c){var C="length"in c&&c.length,l=m.type(c);return"function"!==l&&!m.isWindow(c)&&(!(1!==c.nodeType||!C)||("array"===l||0===C||"number"==typeof C&&0<C&&C-1 in c))}m.fn=m.prototype={jquery:z,constructor:m,selector:"",length:0,toArray:function(){return a.call(this)},get:function(c){return null!=c?c<0?this[c+this.length]:this[c]:a.call(this)},pushStack:function(c){var C=m.merge(this.constructor(),c);return C.prevObject=this,C.context=this.context,C},each:function(c,C){return m.each(this,c,C)},map:function(l){return this.pushStack(m.map(this,function(c,C){return l.call(c,C,c)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(c){var C=this.length,l=+c+(c<0?C:0);return this.pushStack(0<=l&&l<C?[this[l]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:t,sort:l.sort,splice:l.splice},m.extend=m.fn.extend=function(){var c,C,l,e,s,h,z=arguments[0]||{},t=1,M=arguments.length,i=!1;for("boolean"==typeof z&&(i=z,z=arguments[t]||{},t++),"object"==typeof z||m.isFunction(z)||(z={}),t===M&&(z=this,t--);t<M;t++)if(null!=(c=arguments[t]))for(C in c)l=z[C],z!==(e=c[C])&&(i&&e&&(m.isPlainObject(e)||(s=m.isArray(e)))?(h=s?(s=!1,l&&m.isArray(l)?l:[]):l&&m.isPlainObject(l)?l:{},z[C]=m.extend(i,h,e)):void 0!==e&&(z[C]=e));return z},m.extend({expando:"jQuery"+(z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isFunction:function(c){return"function"===m.type(c)},isArray:Array.isArray,isWindow:function(c){return null!=c&&c===c.window},isNumeric:function(c){return!m.isArray(c)&&0<=c-parseFloat(c)+1},isPlainObject:function(c){return"object"===m.type(c)&&!c.nodeType&&!m.isWindow(c)&&!(c.constructor&&!L.call(c.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(c){var C;for(C in c)return!1;return!0},type:function(c){return null==c?c+"":"object"==typeof c||"function"==typeof c?e[h.call(c)]||"object":typeof c},globalEval:function(c){var C,l=eval;(c=m.trim(c))&&(1===c.indexOf("use strict")?((C=S.createElement("script")).text=c,S.head.appendChild(C).parentNode.removeChild(C)):l(c))},camelCase:function(c){return c.replace(i,"ms-").replace(n,C)},nodeName:function(c,C){return c.nodeName&&c.nodeName.toLowerCase()===C.toLowerCase()},each:function(c,C,l){var e=0,s=c.length,h=r(c);if(l){if(h)for(;e<s&&!1!==C.apply(c[e],l);e++);else for(e in c)if(!1===C.apply(c[e],l))break}else if(h)for(;e<s&&!1!==C.call(c[e],e,c[e]);e++);else for(e in c)if(!1===C.call(c[e],e,c[e]))break;return c},trim:function(c){return null==c?"":(c+"").replace(M,"")},makeArray:function(c,C){var l=C||[];return null!=c&&(r(Object(c))?m.merge(l,"string"==typeof c?[c]:c):t.call(l,c)),l},inArray:function(c,C,l){return null==C?-1:s.call(C,c,l)},merge:function(c,C){for(var l=+C.length,e=0,s=c.length;e<l;e++)c[s++]=C[e];return c.length=s,c},grep:function(c,C,l){for(var e=[],s=0,h=c.length,z=!l;s<h;s++)!C(c[s],s)!=z&&e.push(c[s]);return e},map:function(c,C,l){var e,s=0,h=c.length,z=[];if(r(c))for(;s<h;s++)null!=(e=C(c[s],s,l))&&z.push(e);else for(s in c)null!=(e=C(c[s],s,l))&&z.push(e);return V.apply([],z)},guid:1,proxy:function(c,C){var l,e,s;return"string"==typeof C&&(l=c[C],C=c,c=l),m.isFunction(c)?(e=a.call(arguments,2),(s=function(){return c.apply(C||this,e.concat(a.call(arguments)))}).guid=c.guid=c.guid||m.guid++,s):void 0},now:Date.now,support:H}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(c,C){e["[object "+C+"]"]=C.toLowerCase()});var o=function(l){function n(c,C,l){var e="0x"+C-65536;return e!=e||l?C:e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320)}function e(){H()}var c,v,d,h,s,V,r,L,u,i,a,H,p,z,S,f,t,o,m,g="sizzle"+1*new Date,b=l.document,w=0,y=0,M=hc(),k=hc(),_=hc(),x=function(c,C){return c===C&&(a=!0),0},T={}.hasOwnProperty,C=[],q=C.pop,D=C.push,E=C.push,I=C.slice,A=function(c,C){for(var l=0,e=c.length;l<e;l++)if(c[l]===C)return l;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",j=N.replace("w","w#"),$="\\["+O+"*("+N+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+O+"*\\]",W=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+$+")*)|.*)\\)|)",R=new RegExp(O+"+","g"),F=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),B=new RegExp("^"+O+"*,"+O+"*"),Y=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),U=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),X=new RegExp(W),K=new RegExp("^"+j+"$"),Q={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,cc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Cc=/[+~]/,lc=/'|\\/g,ec=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig");try{E.apply(C=I.call(b.childNodes),b.childNodes),C[b.childNodes.length].nodeType}catch(c){E={apply:C.length?function(c,C){D.apply(c,I.call(C))}:function(c,C){for(var l=c.length,e=0;c[l++]=C[e++];);c.length=l-1}}}function sc(c,C,l,e){var s,h,z,t,M,i,a,n,r,o;if((C?C.ownerDocument||C:b)!==p&&H(C),l=l||[],t=(C=C||p).nodeType,"string"!=typeof c||!c||1!==t&&9!==t&&11!==t)return l;if(!e&&S){if(11!==t&&(s=cc.exec(c)))if(z=s[1]){if(9===t){if(!(h=C.getElementById(z))||!h.parentNode)return l;if(h.id===z)return l.push(h),l}else if(C.ownerDocument&&(h=C.ownerDocument.getElementById(z))&&m(C,h)&&h.id===z)return l.push(h),l}else{if(s[2])return E.apply(l,C.getElementsByTagName(c)),l;if((z=s[3])&&v.getElementsByClassName)return E.apply(l,C.getElementsByClassName(z)),l}if(v.qsa&&(!f||!f.test(c))){if(n=a=g,r=C,o=1!==t&&c,1===t&&"object"!==C.nodeName.toLowerCase()){for(i=V(c),(a=C.getAttribute("id"))?n=a.replace(lc,"\\$&"):C.setAttribute("id",n),n="[id='"+n+"'] ",M=i.length;M--;)i[M]=n+Vc(i[M]);r=Cc.test(c)&&oc(C.parentNode)||C,o=i.join(",")}if(o)try{return E.apply(l,r.querySelectorAll(o)),l}catch(c){}finally{a||C.removeAttribute("id")}}}return L(c.replace(F,"$1"),C,l,e)}function hc(){var e=[];return function c(C,l){return e.push(C+" ")>d.cacheLength&&delete c[e.shift()],c[C+" "]=l}}function zc(c){return c[g]=!0,c}function tc(c){var C=p.createElement("div");try{return!!c(C)}catch(c){return!1}finally{C.parentNode&&C.parentNode.removeChild(C),C=null}}function Mc(c,C){for(var l=c.split("|"),e=c.length;e--;)d.attrHandle[l[e]]=C}function ic(c,C){var l=C&&c,e=l&&1===c.nodeType&&1===C.nodeType&&(~C.sourceIndex||1<<31)-(~c.sourceIndex||1<<31);if(e)return e;if(l)for(;l=l.nextSibling;)if(l===C)return-1;return c?1:-1}function ac(C){return function(c){return"input"===c.nodeName.toLowerCase()&&c.type===C}}function nc(l){return function(c){var C=c.nodeName.toLowerCase();return("input"===C||"button"===C)&&c.type===l}}function rc(z){return zc(function(h){return h=+h,zc(function(c,C){for(var l,e=z([],c.length,h),s=e.length;s--;)c[l=e[s]]&&(c[l]=!(C[l]=c[l]))})})}function oc(c){return c&&void 0!==c.getElementsByTagName&&c}for(c in v=sc.support={},s=sc.isXML=function(c){var C=c&&(c.ownerDocument||c).documentElement;return!!C&&"HTML"!==C.nodeName},H=sc.setDocument=function(c){var C,l,M=c?c.ownerDocument||c:b;return M!==p&&9===M.nodeType&&M.documentElement?(z=(p=M).documentElement,(l=M.defaultView)&&l!==l.top&&(l.addEventListener?l.addEventListener("unload",e,!1):l.attachEvent&&l.attachEvent("onunload",e)),S=!s(M),v.attributes=tc(function(c){return c.className="i",!c.getAttribute("className")}),v.getElementsByTagName=tc(function(c){return c.appendChild(M.createComment("")),!c.getElementsByTagName("*").length}),v.getElementsByClassName=J.test(M.getElementsByClassName),v.getById=tc(function(c){return z.appendChild(c).id=g,!M.getElementsByName||!M.getElementsByName(g).length}),v.getById?(d.find.ID=function(c,C){if(void 0!==C.getElementById&&S){var l=C.getElementById(c);return l&&l.parentNode?[l]:[]}},d.filter.ID=function(c){var C=c.replace(ec,n);return function(c){return c.getAttribute("id")===C}}):(delete d.find.ID,d.filter.ID=function(c){var l=c.replace(ec,n);return function(c){var C=void 0!==c.getAttributeNode&&c.getAttributeNode("id");return C&&C.value===l}}),d.find.TAG=v.getElementsByTagName?function(c,C){return void 0!==C.getElementsByTagName?C.getElementsByTagName(c):v.qsa?C.querySelectorAll(c):void 0}:function(c,C){var l,e=[],s=0,h=C.getElementsByTagName(c);if("*"!==c)return h;for(;l=h[s++];)1===l.nodeType&&e.push(l);return e},d.find.CLASS=v.getElementsByClassName&&function(c,C){return S?C.getElementsByClassName(c):void 0},t=[],f=[],(v.qsa=J.test(M.querySelectorAll))&&(tc(function(c){z.appendChild(c).innerHTML="<a id='"+g+"'></a><select id='"+g+"-\f]' msallowcapture=''><option selected=''></option></select>",c.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+O+"*(?:''|\"\")"),c.querySelectorAll("[selected]").length||f.push("\\["+O+"*(?:value|"+P+")"),c.querySelectorAll("[id~="+g+"-]").length||f.push("~="),c.querySelectorAll(":checked").length||f.push(":checked"),c.querySelectorAll("a#"+g+"+*").length||f.push(".#.+[+~]")}),tc(function(c){var C=M.createElement("input");C.setAttribute("type","hidden"),c.appendChild(C).setAttribute("name","D"),c.querySelectorAll("[name=d]").length&&f.push("name"+O+"*[*^$|!~]?="),c.querySelectorAll(":enabled").length||f.push(":enabled",":disabled"),c.querySelectorAll("*,:x"),f.push(",.*:")})),(v.matchesSelector=J.test(o=z.matches||z.webkitMatchesSelector||z.mozMatchesSelector||z.oMatchesSelector||z.msMatchesSelector))&&tc(function(c){v.disconnectedMatch=o.call(c,"div"),o.call(c,"[s!='']:x"),t.push("!=",W)}),f=f.length&&new RegExp(f.join("|")),t=t.length&&new RegExp(t.join("|")),C=J.test(z.compareDocumentPosition),m=C||J.test(z.contains)?function(c,C){var l=9===c.nodeType?c.documentElement:c,e=C&&C.parentNode;return c===e||!(!e||1!==e.nodeType||!(l.contains?l.contains(e):c.compareDocumentPosition&&16&c.compareDocumentPosition(e)))}:function(c,C){if(C)for(;C=C.parentNode;)if(C===c)return!0;return!1},x=C?function(c,C){if(c===C)return a=!0,0;var l=!c.compareDocumentPosition-!C.compareDocumentPosition;return l||(1&(l=(c.ownerDocument||c)===(C.ownerDocument||C)?c.compareDocumentPosition(C):1)||!v.sortDetached&&C.compareDocumentPosition(c)===l?c===M||c.ownerDocument===b&&m(b,c)?-1:C===M||C.ownerDocument===b&&m(b,C)?1:i?A(i,c)-A(i,C):0:4&l?-1:1)}:function(c,C){if(c===C)return a=!0,0;var l,e=0,s=c.parentNode,h=C.parentNode,z=[c],t=[C];if(!s||!h)return c===M?-1:C===M?1:s?-1:h?1:i?A(i,c)-A(i,C):0;if(s===h)return ic(c,C);for(l=c;l=l.parentNode;)z.unshift(l);for(l=C;l=l.parentNode;)t.unshift(l);for(;z[e]===t[e];)e++;return e?ic(z[e],t[e]):z[e]===b?-1:t[e]===b?1:0},M):p},sc.matches=function(c,C){return sc(c,null,null,C)},sc.matchesSelector=function(c,C){if((c.ownerDocument||c)!==p&&H(c),C=C.replace(U,"='$1']"),!(!v.matchesSelector||!S||t&&t.test(C)||f&&f.test(C)))try{var l=o.call(c,C);if(l||v.disconnectedMatch||c.document&&11!==c.document.nodeType)return l}catch(c){}return 0<sc(C,p,null,[c]).length},sc.contains=function(c,C){return(c.ownerDocument||c)!==p&&H(c),m(c,C)},sc.attr=function(c,C){(c.ownerDocument||c)!==p&&H(c);var l=d.attrHandle[C.toLowerCase()],e=l&&T.call(d.attrHandle,C.toLowerCase())?l(c,C,!S):void 0;return void 0!==e?e:v.attributes||!S?c.getAttribute(C):(e=c.getAttributeNode(C))&&e.specified?e.value:null},sc.error=function(c){throw new Error("Syntax error, unrecognized expression: "+c)},sc.uniqueSort=function(c){var C,l=[],e=0,s=0;if(a=!v.detectDuplicates,i=!v.sortStable&&c.slice(0),c.sort(x),a){for(;C=c[s++];)C===c[s]&&(e=l.push(s));for(;e--;)c.splice(l[e],1)}return i=null,c},h=sc.getText=function(c){var C,l="",e=0,s=c.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof c.textContent)return c.textContent;for(c=c.firstChild;c;c=c.nextSibling)l+=h(c)}else if(3===s||4===s)return c.nodeValue}else for(;C=c[e++];)l+=h(C);return l},(d=sc.selectors={cacheLength:50,createPseudo:zc,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(c){return c[1]=c[1].replace(ec,n),c[3]=(c[3]||c[4]||c[5]||"").replace(ec,n),"~="===c[2]&&(c[3]=" "+c[3]+" "),c.slice(0,4)},CHILD:function(c){return c[1]=c[1].toLowerCase(),"nth"===c[1].slice(0,3)?(c[3]||sc.error(c[0]),c[4]=+(c[4]?c[5]+(c[6]||1):2*("even"===c[3]||"odd"===c[3])),c[5]=+(c[7]+c[8]||"odd"===c[3])):c[3]&&sc.error(c[0]),c},PSEUDO:function(c){var C,l=!c[6]&&c[2];return Q.CHILD.test(c[0])?null:(c[3]?c[2]=c[4]||c[5]||"":l&&X.test(l)&&(C=V(l,!0))&&(C=l.indexOf(")",l.length-C)-l.length)&&(c[0]=c[0].slice(0,C),c[2]=l.slice(0,C)),c.slice(0,3))}},filter:{TAG:function(c){var C=c.replace(ec,n).toLowerCase();return"*"===c?function(){return!0}:function(c){return c.nodeName&&c.nodeName.toLowerCase()===C}},CLASS:function(c){var C=M[c+" "];return C||(C=new RegExp("(^|"+O+")"+c+"("+O+"|$)"))&&M(c,function(c){return C.test("string"==typeof c.className&&c.className||void 0!==c.getAttribute&&c.getAttribute("class")||"")})},ATTR:function(l,e,s){return function(c){var C=sc.attr(c,l);return null==C?"!="===e:!e||(C+="","="===e?C===s:"!="===e?C!==s:"^="===e?s&&0===C.indexOf(s):"*="===e?s&&-1<C.indexOf(s):"$="===e?s&&C.slice(-s.length)===s:"~="===e?-1<(" "+C.replace(R," ")+" ").indexOf(s):"|="===e&&(C===s||C.slice(0,s.length+1)===s+"-"))}},CHILD:function(o,c,C,v,V){var L="nth"!==o.slice(0,3),H="last"!==o.slice(-4),S="of-type"===c;return 1===v&&0===V?function(c){return!!c.parentNode}:function(c,C,l){var e,s,h,z,t,M,i=L!=H?"nextSibling":"previousSibling",a=c.parentNode,n=S&&c.nodeName.toLowerCase(),r=!l&&!S;if(a){if(L){for(;i;){for(h=c;h=h[i];)if(S?h.nodeName.toLowerCase()===n:1===h.nodeType)return!1;M=i="only"===o&&!M&&"nextSibling"}return!0}if(M=[H?a.firstChild:a.lastChild],H&&r){for(t=(e=(s=a[g]||(a[g]={}))[o]||[])[0]===w&&e[1],z=e[0]===w&&e[2],h=t&&a.childNodes[t];h=++t&&h&&h[i]||(z=t=0)||M.pop();)if(1===h.nodeType&&++z&&h===c){s[o]=[w,t,z];break}}else if(r&&(e=(c[g]||(c[g]={}))[o])&&e[0]===w)z=e[1];else for(;(h=++t&&h&&h[i]||(z=t=0)||M.pop())&&((S?h.nodeName.toLowerCase()!==n:1!==h.nodeType)||!++z||(r&&((h[g]||(h[g]={}))[o]=[w,z]),h!==c)););return(z-=V)===v||z%v==0&&0<=z/v}}},PSEUDO:function(c,h){var C,z=d.pseudos[c]||d.setFilters[c.toLowerCase()]||sc.error("unsupported pseudo: "+c);return z[g]?z(h):1<z.length?(C=[c,c,"",h],d.setFilters.hasOwnProperty(c.toLowerCase())?zc(function(c,C){for(var l,e=z(c,h),s=e.length;s--;)c[l=A(c,e[s])]=!(C[l]=e[s])}):function(c){return z(c,0,C)}):z}},pseudos:{not:zc(function(c){var e=[],s=[],t=r(c.replace(F,"$1"));return t[g]?zc(function(c,C,l,e){for(var s,h=t(c,null,e,[]),z=c.length;z--;)(s=h[z])&&(c[z]=!(C[z]=s))}):function(c,C,l){return e[0]=c,t(e,null,l,s),e[0]=null,!s.pop()}}),has:zc(function(C){return function(c){return 0<sc(C,c).length}}),contains:zc(function(C){return C=C.replace(ec,n),function(c){return-1<(c.textContent||c.innerText||h(c)).indexOf(C)}}),lang:zc(function(l){return K.test(l||"")||sc.error("unsupported lang: "+l),l=l.replace(ec,n).toLowerCase(),function(c){var C;do{if(C=S?c.lang:c.getAttribute("xml:lang")||c.getAttribute("lang"))return(C=C.toLowerCase())===l||0===C.indexOf(l+"-")}while((c=c.parentNode)&&1===c.nodeType);return!1}}),target:function(c){var C=l.location&&l.location.hash;return C&&C.slice(1)===c.id},root:function(c){return c===z},focus:function(c){return c===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(c.type||c.href||~c.tabIndex)},enabled:function(c){return!1===c.disabled},disabled:function(c){return!0===c.disabled},checked:function(c){var C=c.nodeName.toLowerCase();return"input"===C&&!!c.checked||"option"===C&&!!c.selected},selected:function(c){return c.parentNode&&c.parentNode.selectedIndex,!0===c.selected},empty:function(c){for(c=c.firstChild;c;c=c.nextSibling)if(c.nodeType<6)return!1;return!0},parent:function(c){return!d.pseudos.empty(c)},header:function(c){return Z.test(c.nodeName)},input:function(c){return G.test(c.nodeName)},button:function(c){var C=c.nodeName.toLowerCase();return"input"===C&&"button"===c.type||"button"===C},text:function(c){var C;return"input"===c.nodeName.toLowerCase()&&"text"===c.type&&(null==(C=c.getAttribute("type"))||"text"===C.toLowerCase())},first:rc(function(){return[0]}),last:rc(function(c,C){return[C-1]}),eq:rc(function(c,C,l){return[l<0?l+C:l]}),even:rc(function(c,C){for(var l=0;l<C;l+=2)c.push(l);return c}),odd:rc(function(c,C){for(var l=1;l<C;l+=2)c.push(l);return c}),lt:rc(function(c,C,l){for(var e=l<0?l+C:l;0<=--e;)c.push(e);return c}),gt:rc(function(c,C,l){for(var e=l<0?l+C:l;++e<C;)c.push(e);return c})}}).pseudos.nth=d.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[c]=ac(c);for(c in{submit:!0,reset:!0})d.pseudos[c]=nc(c);function vc(){}function Vc(c){for(var C=0,l=c.length,e="";C<l;C++)e+=c[C].value;return e}function Lc(z,c,C){var t=c.dir,M=C&&"parentNode"===t,i=y++;return c.first?function(c,C,l){for(;c=c[t];)if(1===c.nodeType||M)return z(c,C,l)}:function(c,C,l){var e,s,h=[w,i];if(l){for(;c=c[t];)if((1===c.nodeType||M)&&z(c,C,l))return!0}else for(;c=c[t];)if(1===c.nodeType||M){if((e=(s=c[g]||(c[g]={}))[t])&&e[0]===w&&e[1]===i)return h[2]=e[2];if((s[t]=h)[2]=z(c,C,l))return!0}}}function Hc(s){return 1<s.length?function(c,C,l){for(var e=s.length;e--;)if(!s[e](c,C,l))return!1;return!0}:s[0]}function Sc(c,C,l,e,s){for(var h,z=[],t=0,M=c.length,i=null!=C;t<M;t++)!(h=c[t])||l&&!l(h,e,s)||(z.push(h),i&&C.push(t));return z}function fc(o,v,V,L,H,c){return L&&!L[g]&&(L=fc(L)),H&&!H[g]&&(H=fc(H,c)),zc(function(c,C,l,e){var s,h,z,t=[],M=[],i=C.length,a=c||function(c,C,l){for(var e=0,s=C.length;e<s;e++)sc(c,C[e],l);return l}(v||"*",l.nodeType?[l]:l,[]),n=!o||!c&&v?a:Sc(a,t,o,l,e),r=V?H||(c?o:i||L)?[]:C:n;if(V&&V(n,r,l,e),L)for(s=Sc(r,M),L(s,[],l,e),h=s.length;h--;)(z=s[h])&&(r[M[h]]=!(n[M[h]]=z));if(c){if(H||o){if(H){for(s=[],h=r.length;h--;)(z=r[h])&&s.push(n[h]=z);H(null,r=[],s,e)}for(h=r.length;h--;)(z=r[h])&&-1<(s=H?A(c,z):t[h])&&(c[s]=!(C[s]=z))}}else r=Sc(r===C?r.splice(i,r.length):r),H?H(null,C,r,e):E.apply(C,r)})}function dc(c){for(var s,C,l,e=c.length,h=d.relative[c[0].type],z=h||d.relative[" "],t=h?1:0,M=Lc(function(c){return c===s},z,!0),i=Lc(function(c){return-1<A(s,c)},z,!0),a=[function(c,C,l){var e=!h&&(l||C!==u)||((s=C).nodeType?M(c,C,l):i(c,C,l));return s=null,e}];t<e;t++)if(C=d.relative[c[t].type])a=[Lc(Hc(a),C)];else{if((C=d.filter[c[t].type].apply(null,c[t].matches))[g]){for(l=++t;l<e&&!d.relative[c[l].type];l++);return fc(1<t&&Hc(a),1<t&&Vc(c.slice(0,t-1).concat({value:" "===c[t-2].type?"*":""})).replace(F,"$1"),C,t<l&&dc(c.slice(t,l)),l<e&&dc(c=c.slice(l)),l<e&&Vc(c))}a.push(C)}return Hc(a)}return vc.prototype=d.filters=d.pseudos,d.setFilters=new vc,V=sc.tokenize=function(c,C){var l,e,s,h,z,t,M,i=k[c+" "];if(i)return C?0:i.slice(0);for(z=c,t=[],M=d.preFilter;z;){for(h in l&&!(e=B.exec(z))||(e&&(z=z.slice(e[0].length)||z),t.push(s=[])),l=!1,(e=Y.exec(z))&&(l=e.shift(),s.push({value:l,type:e[0].replace(F," ")}),z=z.slice(l.length)),d.filter)!(e=Q[h].exec(z))||M[h]&&!(e=M[h](e))||(l=e.shift(),s.push({value:l,type:h,matches:e}),z=z.slice(l.length));if(!l)break}return C?z.length:z?sc.error(c):k(c,t).slice(0)},r=sc.compile=function(c,C){var l,e=[],s=[],h=_[c+" "];if(!h){for(l=(C=C||V(c)).length;l--;)(h=dc(C[l]))[g]?e.push(h):s.push(h);(h=_(c,function(L,H){function c(c,C,l,e,s){var h,z,t,M=0,i="0",a=c&&[],n=[],r=u,o=c||f&&d.find.TAG("*",s),v=w+=null==r?1:Math.random()||.1,V=o.length;for(s&&(u=C!==p&&C);i!==V&&null!=(h=o[i]);i++){if(f&&h){for(z=0;t=L[z++];)if(t(h,C,l)){e.push(h);break}s&&(w=v)}S&&((h=!t&&h)&&M--,c&&a.push(h))}if(M+=i,S&&i!==M){for(z=0;t=H[z++];)t(a,n,C,l);if(c){if(0<M)for(;i--;)a[i]||n[i]||(n[i]=q.call(e));n=Sc(n)}E.apply(e,n),s&&!c&&0<n.length&&1<M+H.length&&sc.uniqueSort(e)}return s&&(w=v,u=r),a}var S=0<H.length,f=0<L.length;return S?zc(c):c}(s,e))).selector=c}return h},L=sc.select=function(c,C,l,e){var s,h,z,t,M,i="function"==typeof c&&c,a=!e&&V(c=i.selector||c);if(l=l||[],1===a.length){if(2<(h=a[0]=a[0].slice(0)).length&&"ID"===(z=h[0]).type&&v.getById&&9===C.nodeType&&S&&d.relative[h[1].type]){if(!(C=(d.find.ID(z.matches[0].replace(ec,n),C)||[])[0]))return l;i&&(C=C.parentNode),c=c.slice(h.shift().value.length)}for(s=Q.needsContext.test(c)?0:h.length;s--&&(z=h[s],!d.relative[t=z.type]);)if((M=d.find[t])&&(e=M(z.matches[0].replace(ec,n),Cc.test(h[0].type)&&oc(C.parentNode)||C))){if(h.splice(s,1),!(c=e.length&&Vc(h)))return E.apply(l,e),l;break}}return(i||r(c,a))(e,C,!S,l,Cc.test(c)&&oc(C.parentNode)||C),l},v.sortStable=g.split("").sort(x).join("")===g,v.detectDuplicates=!!a,H(),v.sortDetached=tc(function(c){return 1&c.compareDocumentPosition(p.createElement("div"))}),tc(function(c){return c.innerHTML="<a href='#'></a>","#"===c.firstChild.getAttribute("href")})||Mc("type|href|height|width",function(c,C,l){return l?void 0:c.getAttribute(C,"type"===C.toLowerCase()?1:2)}),v.attributes&&tc(function(c){return c.innerHTML="<input/>",c.firstChild.setAttribute("value",""),""===c.firstChild.getAttribute("value")})||Mc("value",function(c,C,l){return l||"input"!==c.nodeName.toLowerCase()?void 0:c.defaultValue}),tc(function(c){return null==c.getAttribute("disabled")})||Mc(P,function(c,C,l){var e;return l?void 0:!0===c[C]?C.toLowerCase():(e=c.getAttributeNode(C))&&e.specified?e.value:null}),sc}(v);m.find=o,m.expr=o.selectors,m.expr[":"]=m.expr.pseudos,m.unique=o.uniqueSort,m.text=o.getText,m.isXMLDoc=o.isXML,m.contains=o.contains;var f=m.expr.match.needsContext,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,u=/^.[^:#\[\.,]*$/;function p(c,l,e){if(m.isFunction(l))return m.grep(c,function(c,C){return!!l.call(c,C,c)!==e});if(l.nodeType)return m.grep(c,function(c){return c===l!==e});if("string"==typeof l){if(u.test(l))return m.filter(l,c,e);l=m.filter(l,c)}return m.grep(c,function(c){return 0<=s.call(l,c)!==e})}m.filter=function(c,C,l){var e=C[0];return l&&(c=":not("+c+")"),1===C.length&&1===e.nodeType?m.find.matchesSelector(e,c)?[e]:[]:m.find.matches(c,m.grep(C,function(c){return 1===c.nodeType}))},m.fn.extend({find:function(c){var C,l=this.length,e=[],s=this;if("string"!=typeof c)return this.pushStack(m(c).filter(function(){for(C=0;C<l;C++)if(m.contains(s[C],this))return!0}));for(C=0;C<l;C++)m.find(c,s[C],e);return(e=this.pushStack(1<l?m.unique(e):e)).selector=this.selector?this.selector+" "+c:c,e},filter:function(c){return this.pushStack(p(this,c||[],!1))},not:function(c){return this.pushStack(p(this,c||[],!0))},is:function(c){return!!p(this,"string"==typeof c&&f.test(c)?m(c):c||[],!1).length}});var g,b=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(c,C){var l,e;if(!c)return this;if("string"!=typeof c)return c.nodeType?(this.context=this[0]=c,this.length=1,this):m.isFunction(c)?void 0!==g.ready?g.ready(c):c(m):(void 0!==c.selector&&(this.selector=c.selector,this.context=c.context),m.makeArray(c,this));if(!(l="<"===c[0]&&">"===c[c.length-1]&&3<=c.length?[null,c,null]:b.exec(c))||!l[1]&&C)return!C||C.jquery?(C||g).find(c):this.constructor(C).find(c);if(l[1]){if(C=C instanceof m?C[0]:C,m.merge(this,m.parseHTML(l[1],C&&C.nodeType?C.ownerDocument||C:S,!0)),d.test(l[1])&&m.isPlainObject(C))for(l in C)m.isFunction(this[l])?this[l](C[l]):this.attr(l,C[l]);return this}return(e=S.getElementById(l[2]))&&e.parentNode&&(this.length=1,this[0]=e),this.context=S,this.selector=c,this}).prototype=m.fn,g=m(S);var w=/^(?:parents|prev(?:Until|All))/,y={children:!0,contents:!0,next:!0,prev:!0};function k(c,C){for(;(c=c[C])&&1!==c.nodeType;);return c}m.extend({dir:function(c,C,l){for(var e=[],s=void 0!==l;(c=c[C])&&9!==c.nodeType;)if(1===c.nodeType){if(s&&m(c).is(l))break;e.push(c)}return e},sibling:function(c,C){for(var l=[];c;c=c.nextSibling)1===c.nodeType&&c!==C&&l.push(c);return l}}),m.fn.extend({has:function(c){var C=m(c,this),l=C.length;return this.filter(function(){for(var c=0;c<l;c++)if(m.contains(this,C[c]))return!0})},closest:function(c,C){for(var l,e=0,s=this.length,h=[],z=f.test(c)||"string"!=typeof c?m(c,C||this.context):0;e<s;e++)for(l=this[e];l&&l!==C;l=l.parentNode)if(l.nodeType<11&&(z?-1<z.index(l):1===l.nodeType&&m.find.matchesSelector(l,c))){h.push(l);break}return this.pushStack(1<h.length?m.unique(h):h)},index:function(c){return c?"string"==typeof c?s.call(m(c),this[0]):s.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,C){return this.pushStack(m.unique(m.merge(this.get(),m(c,C))))},addBack:function(c){return this.add(null==c?this.prevObject:this.prevObject.filter(c))}}),m.each({parent:function(c){var C=c.parentNode;return C&&11!==C.nodeType?C:null},parents:function(c){return m.dir(c,"parentNode")},parentsUntil:function(c,C,l){return m.dir(c,"parentNode",l)},next:function(c){return k(c,"nextSibling")},prev:function(c){return k(c,"previousSibling")},nextAll:function(c){return m.dir(c,"nextSibling")},prevAll:function(c){return m.dir(c,"previousSibling")},nextUntil:function(c,C,l){return m.dir(c,"nextSibling",l)},prevUntil:function(c,C,l){return m.dir(c,"previousSibling",l)},siblings:function(c){return m.sibling((c.parentNode||{}).firstChild,c)},children:function(c){return m.sibling(c.firstChild)},contents:function(c){return c.contentDocument||m.merge([],c.childNodes)}},function(e,s){m.fn[e]=function(c,C){var l=m.map(this,s,c);return"Until"!==e.slice(-5)&&(C=c),C&&"string"==typeof C&&(l=m.filter(C,l)),1<this.length&&(y[e]||m.unique(l),w.test(e)&&l.reverse()),this.pushStack(l)}});var _,x=/\S+/g,T={};function q(){S.removeEventListener("DOMContentLoaded",q,!1),v.removeEventListener("load",q,!1),m.ready()}m.Callbacks=function(s){s="string"==typeof s?T[s]||function(c){var l=T[c]={};return m.each(c.match(x)||[],function(c,C){l[C]=!0}),l}(s):m.extend({},s);var C,l,e,h,z,t,M=[],i=!s.once&&[],a=function(c){for(C=s.memory&&c,l=!0,t=h||0,h=0,z=M.length,e=!0;M&&t<z;t++)if(!1===M[t].apply(c[0],c[1])&&s.stopOnFalse){C=!1;break}e=!1,M&&(i?i.length&&a(i.shift()):C?M=[]:n.disable())},n={add:function(){if(M){var c=M.length;!function e(c){m.each(c,function(c,C){var l=m.type(C);"function"===l?s.unique&&n.has(C)||M.push(C):C&&C.length&&"string"!==l&&e(C)})}(arguments),e?z=M.length:C&&(h=c,a(C))}return this},remove:function(){return M&&m.each(arguments,function(c,C){for(var l;-1<(l=m.inArray(C,M,l));)M.splice(l,1),e&&(l<=z&&z--,l<=t&&t--)}),this},has:function(c){return c?-1<m.inArray(c,M):!(!M||!M.length)},empty:function(){return M=[],z=0,this},disable:function(){return M=i=C=void 0,this},disabled:function(){return!M},lock:function(){return i=void 0,C||n.disable(),this},locked:function(){return!i},fireWith:function(c,C){return!M||l&&!i||(C=[c,(C=C||[]).slice?C.slice():C],e?i.push(C):a(C)),this},fire:function(){return n.fireWith(this,arguments),this},fired:function(){return!!l}};return n},m.extend({Deferred:function(c){var h=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],s="pending",z={state:function(){return s},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var s=arguments;return m.Deferred(function(e){m.each(h,function(c,C){var l=m.isFunction(s[c])&&s[c];t[C[1]](function(){var c=l&&l.apply(this,arguments);c&&m.isFunction(c.promise)?c.promise().done(e.resolve).fail(e.reject).progress(e.notify):e[C[0]+"With"](this===z?e.promise():this,l?[c]:arguments)})}),s=null}).promise()},promise:function(c){return null!=c?m.extend(c,z):z}},t={};return z.pipe=z.then,m.each(h,function(c,C){var l=C[2],e=C[3];z[C[1]]=l.add,e&&l.add(function(){s=e},h[1^c][2].disable,h[2][2].lock),t[C[0]]=function(){return t[C[0]+"With"](this===t?z:this,arguments),this},t[C[0]+"With"]=l.fireWith}),z.promise(t),c&&c.call(t,t),t},when:function(c){function C(C,l,e){return function(c){l[C]=this,e[C]=1<arguments.length?a.call(arguments):c,e===s?i.notifyWith(l,e):--M||i.resolveWith(l,e)}}var s,l,e,h=0,z=a.call(arguments),t=z.length,M=1!==t||c&&m.isFunction(c.promise)?t:0,i=1===M?c:m.Deferred();if(1<t)for(s=new Array(t),l=new Array(t),e=new Array(t);h<t;h++)z[h]&&m.isFunction(z[h].promise)?z[h].promise().done(C(h,e,z)).fail(i.reject).progress(C(h,l,s)):--M;return M||i.resolveWith(e,z),i.promise()}}),m.fn.ready=function(c){return m.ready.promise().done(c),this},m.extend({isReady:!1,readyWait:1,holdReady:function(c){c?m.readyWait++:m.ready(!0)},ready:function(c){(!0===c?--m.readyWait:m.isReady)||((m.isReady=!0)!==c&&0<--m.readyWait||(_.resolveWith(S,[m]),m.fn.triggerHandler&&(m(S).triggerHandler("ready"),m(S).off("ready"))))}}),m.ready.promise=function(c){return _||(_=m.Deferred(),"complete"===S.readyState?setTimeout(m.ready):(S.addEventListener("DOMContentLoaded",q,!1),v.addEventListener("load",q,!1))),_.promise(c)},m.ready.promise();var D=m.access=function(c,C,l,e,s,h,z){var t=0,M=c.length,i=null==l;if("object"===m.type(l))for(t in s=!0,l)m.access(c,C,t,l[t],!0,h,z);else if(void 0!==e&&(s=!0,m.isFunction(e)||(z=!0),i&&(C=z?(C.call(c,e),null):(i=C,function(c,C,l){return i.call(m(c),l)})),C))for(;t<M;t++)C(c[t],l,z?e:e.call(c[t],t,C(c[t],l)));return s?c:i?C.call(c):M?C(c[0],l):h};function E(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=m.expando+E.uid++}m.acceptData=function(c){return 1===c.nodeType||9===c.nodeType||!+c.nodeType},E.uid=1,E.accepts=m.acceptData,E.prototype={key:function(C){if(!E.accepts(C))return 0;var l={},e=C[this.expando];if(!e){e=E.uid++;try{l[this.expando]={value:e},Object.defineProperties(C,l)}catch(c){l[this.expando]=e,m.extend(C,l)}}return this.cache[e]||(this.cache[e]={}),e},set:function(c,C,l){var e,s=this.key(c),h=this.cache[s];if("string"==typeof C)h[C]=l;else if(m.isEmptyObject(h))m.extend(this.cache[s],C);else for(e in C)h[e]=C[e];return h},get:function(c,C){var l=this.cache[this.key(c)];return void 0===C?l:l[C]},access:function(c,C,l){var e;return void 0===C||C&&"string"==typeof C&&void 0===l?void 0!==(e=this.get(c,C))?e:this.get(c,m.camelCase(C)):(this.set(c,C,l),void 0!==l?l:C)},remove:function(c,C){var l,e,s,h=this.key(c),z=this.cache[h];if(void 0===C)this.cache[h]={};else{l=(e=m.isArray(C)?C.concat(C.map(m.camelCase)):(s=m.camelCase(C),C in z?[C,s]:(e=s)in z?[e]:e.match(x)||[])).length;for(;l--;)delete z[e[l]]}},hasData:function(c){return!m.isEmptyObject(this.cache[c[this.expando]]||{})},discard:function(c){c[this.expando]&&delete this.cache[c[this.expando]]}};var I=new E,A=new E,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function N(c,C,l){var e;if(void 0===l&&1===c.nodeType)if(e="data-"+C.replace(O,"-$1").toLowerCase(),"string"==typeof(l=c.getAttribute(e))){try{l="true"===l||"false"!==l&&("null"===l?null:+l+""===l?+l:P.test(l)?m.parseJSON(l):l)}catch(c){}A.set(c,C,l)}else l=void 0;return l}m.extend({hasData:function(c){return A.hasData(c)||I.hasData(c)},data:function(c,C,l){return A.access(c,C,l)},removeData:function(c,C){A.remove(c,C)},_data:function(c,C,l){return I.access(c,C,l)},_removeData:function(c,C){I.remove(c,C)}}),m.fn.extend({data:function(e,c){var C,l,s,h=this[0],z=h&&h.attributes;if(void 0!==e)return"object"==typeof e?this.each(function(){A.set(this,e)}):D(this,function(C){var c,l=m.camelCase(e);if(h&&void 0===C){if(void 0!==(c=A.get(h,e)))return c;if(void 0!==(c=A.get(h,l)))return c;if(void 0!==(c=N(h,l,void 0)))return c}else this.each(function(){var c=A.get(this,l);A.set(this,l,C),-1!==e.indexOf("-")&&void 0!==c&&A.set(this,e,C)})},null,c,1<arguments.length,null,!0);if(this.length&&(s=A.get(h),1===h.nodeType&&!I.get(h,"hasDataAttrs"))){for(C=z.length;C--;)z[C]&&(0===(l=z[C].name).indexOf("data-")&&(l=m.camelCase(l.slice(5)),N(h,l,s[l])));I.set(h,"hasDataAttrs",!0)}return s},removeData:function(c){return this.each(function(){A.remove(this,c)})}}),m.extend({queue:function(c,C,l){var e;return c?(C=(C||"fx")+"queue",e=I.get(c,C),l&&(!e||m.isArray(l)?e=I.access(c,C,m.makeArray(l)):e.push(l)),e||[]):void 0},dequeue:function(c,C){C=C||"fx";var l=m.queue(c,C),e=l.length,s=l.shift(),h=m._queueHooks(c,C);"inprogress"===s&&(s=l.shift(),e--),s&&("fx"===C&&l.unshift("inprogress"),delete h.stop,s.call(c,function(){m.dequeue(c,C)},h)),!e&&h&&h.empty.fire()},_queueHooks:function(c,C){var l=C+"queueHooks";return I.get(c,l)||I.access(c,l,{empty:m.Callbacks("once memory").add(function(){I.remove(c,[C+"queue",l])})})}}),m.fn.extend({queue:function(C,l){var c=2;return"string"!=typeof C&&(l=C,C="fx",c--),arguments.length<c?m.queue(this[0],C):void 0===l?this:this.each(function(){var c=m.queue(this,C,l);m._queueHooks(this,C),"fx"===C&&"inprogress"!==c[0]&&m.dequeue(this,C)})},dequeue:function(c){return this.each(function(){m.dequeue(this,c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,C){function l(){--s||h.resolveWith(z,[z])}var e,s=1,h=m.Deferred(),z=this,t=this.length;for("string"!=typeof c&&(C=c,c=void 0),c=c||"fx";t--;)(e=I.get(z[t],c+"queueHooks"))&&e.empty&&(s++,e.empty.add(l));return l(),h.promise(C)}});function j(c,C){return c=C||c,"none"===m.css(c,"display")||!m.contains(c.ownerDocument,c)}var $,W,R=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,F=["Top","Right","Bottom","Left"],B=/^(?:checkbox|radio)$/i;$=S.createDocumentFragment().appendChild(S.createElement("div")),(W=S.createElement("input")).setAttribute("type","radio"),W.setAttribute("checked","checked"),W.setAttribute("name","t"),$.appendChild(W),H.checkClone=$.cloneNode(!0).cloneNode(!0).lastChild.checked,$.innerHTML="<textarea>x</textarea>",H.noCloneChecked=!!$.cloneNode(!0).lastChild.defaultValue;var Y="undefined";H.focusinBubbles="onfocusin"in v;var U=/^key/,X=/^(?:mouse|pointer|contextmenu)|click/,K=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function G(){return!0}function Z(){return!1}function J(){try{return S.activeElement}catch(c){}}m.event={global:{},add:function(C,c,l,e,s){var h,z,t,M,i,a,n,r,o,v,V,L=I.get(C);if(L)for(l.handler&&(l=(h=l).handler,s=h.selector),l.guid||(l.guid=m.guid++),(M=L.events)||(M=L.events={}),(z=L.handle)||(z=L.handle=function(c){return typeof m!=Y&&m.event.triggered!==c.type?m.event.dispatch.apply(C,arguments):void 0}),i=(c=(c||"").match(x)||[""]).length;i--;)o=V=(t=Q.exec(c[i])||[])[1],v=(t[2]||"").split(".").sort(),o&&(n=m.event.special[o]||{},o=(s?n.delegateType:n.bindType)||o,n=m.event.special[o]||{},a=m.extend({type:o,origType:V,data:e,handler:l,guid:l.guid,selector:s,needsContext:s&&m.expr.match.needsContext.test(s),namespace:v.join(".")},h),(r=M[o])||((r=M[o]=[]).delegateCount=0,n.setup&&!1!==n.setup.call(C,e,v,z)||C.addEventListener&&C.addEventListener(o,z,!1)),n.add&&(n.add.call(C,a),a.handler.guid||(a.handler.guid=l.guid)),s?r.splice(r.delegateCount++,0,a):r.push(a),m.event.global[o]=!0)},remove:function(c,C,l,e,s){var h,z,t,M,i,a,n,r,o,v,V,L=I.hasData(c)&&I.get(c);if(L&&(M=L.events)){for(i=(C=(C||"").match(x)||[""]).length;i--;)if(o=V=(t=Q.exec(C[i])||[])[1],v=(t[2]||"").split(".").sort(),o){for(n=m.event.special[o]||{},r=M[o=(e?n.delegateType:n.bindType)||o]||[],t=t[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),z=h=r.length;h--;)a=r[h],!s&&V!==a.origType||l&&l.guid!==a.guid||t&&!t.test(a.namespace)||e&&e!==a.selector&&("**"!==e||!a.selector)||(r.splice(h,1),a.selector&&r.delegateCount--,n.remove&&n.remove.call(c,a));z&&!r.length&&(n.teardown&&!1!==n.teardown.call(c,v,L.handle)||m.removeEvent(c,o,L.handle),delete M[o])}else for(o in M)m.event.remove(c,o+C[i],l,e,!0);m.isEmptyObject(M)&&(delete L.handle,I.remove(c,"events"))}},trigger:function(c,C,l,e){var s,h,z,t,M,i,a,n=[l||S],r=L.call(c,"type")?c.type:c,o=L.call(c,"namespace")?c.namespace.split("."):[];if(h=z=l=l||S,3!==l.nodeType&&8!==l.nodeType&&!K.test(r+m.event.triggered)&&(0<=r.indexOf(".")&&(r=(o=r.split(".")).shift(),o.sort()),M=r.indexOf(":")<0&&"on"+r,(c=c[m.expando]?c:new m.Event(r,"object"==typeof c&&c)).isTrigger=e?2:3,c.namespace=o.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=l),C=null==C?[c]:m.makeArray(C,[c]),a=m.event.special[r]||{},e||!a.trigger||!1!==a.trigger.apply(l,C))){if(!e&&!a.noBubble&&!m.isWindow(l)){for(t=a.delegateType||r,K.test(t+r)||(h=h.parentNode);h;h=h.parentNode)n.push(h),z=h;z===(l.ownerDocument||S)&&n.push(z.defaultView||z.parentWindow||v)}for(s=0;(h=n[s++])&&!c.isPropagationStopped();)c.type=1<s?t:a.bindType||r,(i=(I.get(h,"events")||{})[c.type]&&I.get(h,"handle"))&&i.apply(h,C),(i=M&&h[M])&&i.apply&&m.acceptData(h)&&(c.result=i.apply(h,C),!1===c.result&&c.preventDefault());return c.type=r,e||c.isDefaultPrevented()||a._default&&!1!==a._default.apply(n.pop(),C)||!m.acceptData(l)||M&&m.isFunction(l[r])&&!m.isWindow(l)&&((z=l[M])&&(l[M]=null),l[m.event.triggered=r](),m.event.triggered=void 0,z&&(l[M]=z)),c.result}},dispatch:function(c){c=m.event.fix(c);var C,l,e,s,h,z=[],t=a.call(arguments),M=(I.get(this,"events")||{})[c.type]||[],i=m.event.special[c.type]||{};if((t[0]=c).delegateTarget=this,!i.preDispatch||!1!==i.preDispatch.call(this,c)){for(z=m.event.handlers.call(this,c,M),C=0;(s=z[C++])&&!c.isPropagationStopped();)for(c.currentTarget=s.elem,l=0;(h=s.handlers[l++])&&!c.isImmediatePropagationStopped();)c.namespace_re&&!c.namespace_re.test(h.namespace)||(c.handleObj=h,c.data=h.data,void 0!==(e=((m.event.special[h.origType]||{}).handle||h.handler).apply(s.elem,t))&&!1===(c.result=e)&&(c.preventDefault(),c.stopPropagation()));return i.postDispatch&&i.postDispatch.call(this,c),c.result}},handlers:function(c,C){var l,e,s,h,z=[],t=C.delegateCount,M=c.target;if(t&&M.nodeType&&(!c.button||"click"!==c.type))for(;M!==this;M=M.parentNode||this)if(!0!==M.disabled||"click"!==c.type){for(e=[],l=0;l<t;l++)void 0===e[s=(h=C[l]).selector+" "]&&(e[s]=h.needsContext?0<=m(s,this).index(M):m.find(s,this,null,[M]).length),e[s]&&e.push(h);e.length&&z.push({elem:M,handlers:e})}return t<C.length&&z.push({elem:this,handlers:C.slice(t)}),z},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(c,C){return null==c.which&&(c.which=null!=C.charCode?C.charCode:C.keyCode),c}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(c,C){var l,e,s,h=C.button;return null==c.pageX&&null!=C.clientX&&(e=(l=c.target.ownerDocument||S).documentElement,s=l.body,c.pageX=C.clientX+(e&&e.scrollLeft||s&&s.scrollLeft||0)-(e&&e.clientLeft||s&&s.clientLeft||0),c.pageY=C.clientY+(e&&e.scrollTop||s&&s.scrollTop||0)-(e&&e.clientTop||s&&s.clientTop||0)),c.which||void 0===h||(c.which=1&h?1:2&h?3:4&h?2:0),c}},fix:function(c){if(c[m.expando])return c;var C,l,e,s=c.type,h=c,z=this.fixHooks[s];for(z||(this.fixHooks[s]=z=X.test(s)?this.mouseHooks:U.test(s)?this.keyHooks:{}),e=z.props?this.props.concat(z.props):this.props,c=new m.Event(h),C=e.length;C--;)c[l=e[C]]=h[l];return c.target||(c.target=S),3===c.target.nodeType&&(c.target=c.target.parentNode),z.filter?z.filter(c,h):c},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==J()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===J()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&m.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(c){return m.nodeName(c.target,"a")}},beforeunload:{postDispatch:function(c){void 0!==c.result&&c.originalEvent&&(c.originalEvent.returnValue=c.result)}}},simulate:function(c,C,l,e){var s=m.extend(new m.Event,l,{type:c,isSimulated:!0,originalEvent:{}});e?m.event.trigger(s,null,C):m.event.dispatch.call(C,s),s.isDefaultPrevented()&&l.preventDefault()}},m.removeEvent=function(c,C,l){c.removeEventListener&&c.removeEventListener(C,l,!1)},m.Event=function(c,C){return this instanceof m.Event?(c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||void 0===c.defaultPrevented&&!1===c.returnValue?G:Z):this.type=c,C&&m.extend(this,C),this.timeStamp=c&&c.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(c,C)},m.Event.prototype={isDefaultPrevented:Z,isPropagationStopped:Z,isImmediatePropagationStopped:Z,preventDefault:function(){var c=this.originalEvent;this.isDefaultPrevented=G,c&&c.preventDefault&&c.preventDefault()},stopPropagation:function(){var c=this.originalEvent;this.isPropagationStopped=G,c&&c.stopPropagation&&c.stopPropagation()},stopImmediatePropagation:function(){var c=this.originalEvent;this.isImmediatePropagationStopped=G,c&&c.stopImmediatePropagation&&c.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(c,s){m.event.special[c]={delegateType:s,bindType:s,handle:function(c){var C,l=c.relatedTarget,e=c.handleObj;return l&&(l===this||m.contains(this,l))||(c.type=e.origType,C=e.handler.apply(this,arguments),c.type=s),C}}}),H.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(l,e){function s(c){m.event.simulate(e,c.target,m.event.fix(c),!0)}m.event.special[e]={setup:function(){var c=this.ownerDocument||this,C=I.access(c,e);C||c.addEventListener(l,s,!0),I.access(c,e,(C||0)+1)},teardown:function(){var c=this.ownerDocument||this,C=I.access(c,e)-1;C?I.access(c,e,C):(c.removeEventListener(l,s,!0),I.remove(c,e))}}}),m.fn.extend({on:function(c,C,l,e,s){var h,z;if("object"==typeof c){for(z in"string"!=typeof C&&(l=l||C,C=void 0),c)this.on(z,C,l,c[z],s);return this}if(null==l&&null==e?(e=C,l=C=void 0):null==e&&("string"==typeof C?(e=l,l=void 0):(e=l,l=C,C=void 0)),!1===e)e=Z;else if(!e)return this;return 1===s&&(h=e,(e=function(c){return m().off(c),h.apply(this,arguments)}).guid=h.guid||(h.guid=m.guid++)),this.each(function(){m.event.add(this,c,e,l,C)})},one:function(c,C,l,e){return this.on(c,C,l,e,1)},off:function(c,C,l){var e,s;if(c&&c.preventDefault&&c.handleObj)return e=c.handleObj,m(c.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if("object"!=typeof c)return!1!==C&&"function"!=typeof C||(l=C,C=void 0),!1===l&&(l=Z),this.each(function(){m.event.remove(this,c,l,C)});for(s in c)this.off(s,C,c[s]);return this},trigger:function(c,C){return this.each(function(){m.event.trigger(c,C,this)})},triggerHandler:function(c,C){var l=this[0];return l?m.event.trigger(c,C,l,!0):void 0}});var cc=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Cc=/<([\w:]+)/,lc=/<|&#?\w+;/,ec=/<(?:script|style|link)/i,sc=/checked\s*(?:[^=]|=\s*.checked.)/i,hc=/^$|\/(?:java|ecma)script/i,zc=/^true\/(.*)/,tc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Mc={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 ic(c,C){return m.nodeName(c,"table")&&m.nodeName(11!==C.nodeType?C:C.firstChild,"tr")?c.getElementsByTagName("tbody")[0]||c.appendChild(c.ownerDocument.createElement("tbody")):c}function ac(c){return c.type=(null!==c.getAttribute("type"))+"/"+c.type,c}function nc(c){var C=zc.exec(c.type);return C?c.type=C[1]:c.removeAttribute("type"),c}function rc(c,C){for(var l=0,e=c.length;l<e;l++)I.set(c[l],"globalEval",!C||I.get(C[l],"globalEval"))}function oc(c,C){var l,e,s,h,z,t,M,i;if(1===C.nodeType){if(I.hasData(c)&&(h=I.access(c),z=I.set(C,h),i=h.events))for(s in delete z.handle,z.events={},i)for(l=0,e=i[s].length;l<e;l++)m.event.add(C,s,i[s][l]);A.hasData(c)&&(t=A.access(c),M=m.extend({},t),A.set(C,M))}}function vc(c,C){var l=c.getElementsByTagName?c.getElementsByTagName(C||"*"):c.querySelectorAll?c.querySelectorAll(C||"*"):[];return void 0===C||C&&m.nodeName(c,C)?m.merge([c],l):l}Mc.optgroup=Mc.option,Mc.tbody=Mc.tfoot=Mc.colgroup=Mc.caption=Mc.thead,Mc.th=Mc.td,m.extend({clone:function(c,C,l){var e,s,h,z,t,M,i,a=c.cloneNode(!0),n=m.contains(c.ownerDocument,c);if(!(H.noCloneChecked||1!==c.nodeType&&11!==c.nodeType||m.isXMLDoc(c)))for(z=vc(a),e=0,s=(h=vc(c)).length;e<s;e++)t=h[e],M=z[e],void 0,"input"===(i=M.nodeName.toLowerCase())&&B.test(t.type)?M.checked=t.checked:"input"!==i&&"textarea"!==i||(M.defaultValue=t.defaultValue);if(C)if(l)for(h=h||vc(c),z=z||vc(a),e=0,s=h.length;e<s;e++)oc(h[e],z[e]);else oc(c,a);return 0<(z=vc(a,"script")).length&&rc(z,!n&&vc(c,"script")),a},buildFragment:function(c,C,l,e){for(var s,h,z,t,M,i,a=C.createDocumentFragment(),n=[],r=0,o=c.length;r<o;r++)if((s=c[r])||0===s)if("object"===m.type(s))m.merge(n,s.nodeType?[s]:s);else if(lc.test(s)){for(h=h||a.appendChild(C.createElement("div")),z=(Cc.exec(s)||["",""])[1].toLowerCase(),t=Mc[z]||Mc._default,h.innerHTML=t[1]+s.replace(cc,"<$1></$2>")+t[2],i=t[0];i--;)h=h.lastChild;m.merge(n,h.childNodes),(h=a.firstChild).textContent=""}else n.push(C.createTextNode(s));for(a.textContent="",r=0;s=n[r++];)if((!e||-1===m.inArray(s,e))&&(M=m.contains(s.ownerDocument,s),h=vc(a.appendChild(s),"script"),M&&rc(h),l))for(i=0;s=h[i++];)hc.test(s.type||"")&&l.push(s);return a},cleanData:function(c){for(var C,l,e,s,h=m.event.special,z=0;void 0!==(l=c[z]);z++){if(m.acceptData(l)&&((s=l[I.expando])&&(C=I.cache[s]))){if(C.events)for(e in C.events)h[e]?m.event.remove(l,e):m.removeEvent(l,e,C.handle);I.cache[s]&&delete I.cache[s]}delete A.cache[l[A.expando]]}}}),m.fn.extend({text:function(c){return D(this,function(c){return void 0===c?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=c)})},null,c,arguments.length)},append:function(){return this.domManip(arguments,function(c){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ic(this,c).appendChild(c)})},prepend:function(){return this.domManip(arguments,function(c){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var C=ic(this,c);C.insertBefore(c,C.firstChild)}})},before:function(){return this.domManip(arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return this.domManip(arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},remove:function(c,C){for(var l,e=c?m.filter(c,this):this,s=0;null!=(l=e[s]);s++)C||1!==l.nodeType||m.cleanData(vc(l)),l.parentNode&&(C&&m.contains(l.ownerDocument,l)&&rc(vc(l,"script")),l.parentNode.removeChild(l));return this},empty:function(){for(var c,C=0;null!=(c=this[C]);C++)1===c.nodeType&&(m.cleanData(vc(c,!1)),c.textContent="");return this},clone:function(c,C){return c=null!=c&&c,C=null==C?c:C,this.map(function(){return m.clone(this,c,C)})},html:function(c){return D(this,function(c){var C=this[0]||{},l=0,e=this.length;if(void 0===c&&1===C.nodeType)return C.innerHTML;if("string"==typeof c&&!ec.test(c)&&!Mc[(Cc.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(cc,"<$1></$2>");try{for(;l<e;l++)1===(C=this[l]||{}).nodeType&&(m.cleanData(vc(C,!1)),C.innerHTML=c);C=0}catch(c){}}C&&this.empty().append(c)},null,c,arguments.length)},replaceWith:function(){var C=arguments[0];return this.domManip(arguments,function(c){C=this.parentNode,m.cleanData(vc(this)),C&&C.replaceChild(c,this)}),C&&(C.length||C.nodeType)?this:this.remove()},detach:function(c){return this.remove(c,!0)},domManip:function(l,e){l=V.apply([],l);var c,C,s,h,z,t,M=0,i=this.length,a=this,n=i-1,r=l[0],o=m.isFunction(r);if(o||1<i&&"string"==typeof r&&!H.checkClone&&sc.test(r))return this.each(function(c){var C=a.eq(c);o&&(l[0]=r.call(this,c,C.html())),C.domManip(l,e)});if(i&&(C=(c=m.buildFragment(l,this[0].ownerDocument,!1,this)).firstChild,1===c.childNodes.length&&(c=C),C)){for(h=(s=m.map(vc(c,"script"),ac)).length;M<i;M++)z=c,M!==n&&(z=m.clone(z,!0,!0),h&&m.merge(s,vc(z,"script"))),e.call(this[M],z,M);if(h)for(t=s[s.length-1].ownerDocument,m.map(s,nc),M=0;M<h;M++)z=s[M],hc.test(z.type||"")&&!I.access(z,"globalEval")&&m.contains(t,z)&&(z.src?m._evalUrl&&m._evalUrl(z.src):m.globalEval(z.textContent.replace(tc,"")))}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,z){m.fn[c]=function(c){for(var C,l=[],e=m(c),s=e.length-1,h=0;h<=s;h++)C=h===s?this:this.clone(!0),m(e[h])[z](C),t.apply(l,C.get());return this.pushStack(l)}});var Vc,Lc={};function Hc(c,C){var l,e=m(C.createElement(c)).appendTo(C.body),s=v.getDefaultComputedStyle&&(l=v.getDefaultComputedStyle(e[0]))?l.display:m.css(e[0],"display");return e.detach(),s}function Sc(c){var C=S,l=Lc[c];return l||("none"!==(l=Hc(c,C))&&l||((C=(Vc=(Vc||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(C.documentElement))[0].contentDocument).write(),C.close(),l=Hc(c,C),Vc.detach()),Lc[c]=l),l}var fc=/^margin/,dc=new RegExp("^("+R+")(?!px)[a-z%]+$","i"),uc=function(c){return c.ownerDocument.defaultView.opener?c.ownerDocument.defaultView.getComputedStyle(c,null):v.getComputedStyle(c,null)};function pc(c,C,l){var e,s,h,z,t=c.style;return(l=l||uc(c))&&(z=l.getPropertyValue(C)||l[C]),l&&(""!==z||m.contains(c.ownerDocument,c)||(z=m.style(c,C)),dc.test(z)&&fc.test(C)&&(e=t.width,s=t.minWidth,h=t.maxWidth,t.minWidth=t.maxWidth=t.width=z,z=l.width,t.width=e,t.minWidth=s,t.maxWidth=h)),void 0!==z?z+"":z}function mc(c,C){return{get:function(){return c()?void delete this.get:(this.get=C).apply(this,arguments)}}}!function(){var C,l,e=S.documentElement,s=S.createElement("div"),h=S.createElement("div");if(h.style){function c(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",h.innerHTML="",e.appendChild(s);var c=v.getComputedStyle(h,null);C="1%"!==c.top,l="4px"===c.width,e.removeChild(s)}h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",H.clearCloneStyle="content-box"===h.style.backgroundClip,s.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",s.appendChild(h),v.getComputedStyle&&m.extend(H,{pixelPosition:function(){return c(),C},boxSizingReliable:function(){return null==l&&c(),l},reliableMarginRight:function(){var c,C=h.appendChild(S.createElement("div"));return C.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",C.style.marginRight=C.style.width="0",h.style.width="1px",e.appendChild(s),c=!parseFloat(v.getComputedStyle(C,null).marginRight),e.removeChild(s),h.removeChild(C),c}})}}(),m.swap=function(c,C,l,e){var s,h,z={};for(h in C)z[h]=c.style[h],c.style[h]=C[h];for(h in s=l.apply(c,e||[]),C)c.style[h]=z[h];return s};var gc=/^(none|table(?!-c[ea]).+)/,bc=new RegExp("^("+R+")(.*)$","i"),wc=new RegExp("^([+-])=("+R+")","i"),yc={position:"absolute",visibility:"hidden",display:"block"},kc={letterSpacing:"0",fontWeight:"400"},_c=["Webkit","O","Moz","ms"];function xc(c,C){if(C in c)return C;for(var l=C[0].toUpperCase()+C.slice(1),e=C,s=_c.length;s--;)if((C=_c[s]+l)in c)return C;return e}function Tc(c,C,l){var e=bc.exec(C);return e?Math.max(0,e[1]-(l||0))+(e[2]||"px"):C}function qc(c,C,l,e,s){for(var h=l===(e?"border":"content")?4:"width"===C?1:0,z=0;h<4;h+=2)"margin"===l&&(z+=m.css(c,l+F[h],!0,s)),e?("content"===l&&(z-=m.css(c,"padding"+F[h],!0,s)),"margin"!==l&&(z-=m.css(c,"border"+F[h]+"Width",!0,s))):(z+=m.css(c,"padding"+F[h],!0,s),"padding"!==l&&(z+=m.css(c,"border"+F[h]+"Width",!0,s)));return z}function Dc(c,C,l){var e=!0,s="width"===C?c.offsetWidth:c.offsetHeight,h=uc(c),z="border-box"===m.css(c,"boxSizing",!1,h);if(s<=0||null==s){if(((s=pc(c,C,h))<0||null==s)&&(s=c.style[C]),dc.test(s))return s;e=z&&(H.boxSizingReliable()||s===c.style[C]),s=parseFloat(s)||0}return s+qc(c,C,l||(z?"border":"content"),e,h)+"px"}function Ec(c,C){for(var l,e,s,h=[],z=0,t=c.length;z<t;z++)(e=c[z]).style&&(h[z]=I.get(e,"olddisplay"),l=e.style.display,C?(h[z]||"none"!==l||(e.style.display=""),""===e.style.display&&j(e)&&(h[z]=I.access(e,"olddisplay",Sc(e.nodeName)))):(s=j(e),"none"===l&&s||I.set(e,"olddisplay",s?l:m.css(e,"display"))));for(z=0;z<t;z++)(e=c[z]).style&&(C&&"none"!==e.style.display&&""!==e.style.display||(e.style.display=C?h[z]||"":"none"));return c}function Ic(c,C,l,e,s){return new Ic.prototype.init(c,C,l,e,s)}m.extend({cssHooks:{opacity:{get:function(c,C){if(C){var l=pc(c,"opacity");return""===l?"1":l}}}},cssNumber:{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(c,C,l,e){if(c&&3!==c.nodeType&&8!==c.nodeType&&c.style){var s,h,z,t=m.camelCase(C),M=c.style;return C=m.cssProps[t]||(m.cssProps[t]=xc(M,t)),z=m.cssHooks[C]||m.cssHooks[t],void 0===l?z&&"get"in z&&void 0!==(s=z.get(c,!1,e))?s:M[C]:("string"===(h=typeof l)&&(s=wc.exec(l))&&(l=(s[1]+1)*s[2]+parseFloat(m.css(c,C)),h="number"),void(null!=l&&l==l&&("number"!==h||m.cssNumber[t]||(l+="px"),H.clearCloneStyle||""!==l||0!==C.indexOf("background")||(M[C]="inherit"),z&&"set"in z&&void 0===(l=z.set(c,l,e))||(M[C]=l))))}},css:function(c,C,l,e){var s,h,z,t=m.camelCase(C);return C=m.cssProps[t]||(m.cssProps[t]=xc(c.style,t)),(z=m.cssHooks[C]||m.cssHooks[t])&&"get"in z&&(s=z.get(c,!0,l)),void 0===s&&(s=pc(c,C,e)),"normal"===s&&C in kc&&(s=kc[C]),""===l||l?(h=parseFloat(s),!0===l||m.isNumeric(h)?h||0:s):s}}),m.each(["height","width"],function(c,s){m.cssHooks[s]={get:function(c,C,l){return C?gc.test(m.css(c,"display"))&&0===c.offsetWidth?m.swap(c,yc,function(){return Dc(c,s,l)}):Dc(c,s,l):void 0},set:function(c,C,l){var e=l&&uc(c);return Tc(0,C,l?qc(c,s,l,"border-box"===m.css(c,"boxSizing",!1,e),e):0)}}}),m.cssHooks.marginRight=mc(H.reliableMarginRight,function(c,C){return C?m.swap(c,{display:"inline-block"},pc,[c,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(s,h){m.cssHooks[s+h]={expand:function(c){for(var C=0,l={},e="string"==typeof c?c.split(" "):[c];C<4;C++)l[s+F[C]+h]=e[C]||e[C-2]||e[0];return l}},fc.test(s)||(m.cssHooks[s+h].set=Tc)}),m.fn.extend({css:function(c,C){return D(this,function(c,C,l){var e,s,h={},z=0;if(m.isArray(C)){for(e=uc(c),s=C.length;z<s;z++)h[C[z]]=m.css(c,C[z],!1,e);return h}return void 0!==l?m.style(c,C,l):m.css(c,C)},c,C,1<arguments.length)},show:function(){return Ec(this,!0)},hide:function(){return Ec(this)},toggle:function(c){return"boolean"==typeof c?c?this.show():this.hide():this.each(function(){j(this)?m(this).show():m(this).hide()})}}),((m.Tween=Ic).prototype={constructor:Ic,init:function(c,C,l,e,s,h){this.elem=c,this.prop=l,this.easing=s||"swing",this.options=C,this.start=this.now=this.cur(),this.end=e,this.unit=h||(m.cssNumber[l]?"":"px")},cur:function(){var c=Ic.propHooks[this.prop];return c&&c.get?c.get(this):Ic.propHooks._default.get(this)},run:function(c){var C,l=Ic.propHooks[this.prop];return this.options.duration?this.pos=C=m.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=C=c,this.now=(this.end-this.start)*C+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),l&&l.set?l.set(this):Ic.propHooks._default.set(this),this}}).init.prototype=Ic.prototype,(Ic.propHooks={_default:{get:function(c){var C;return null==c.elem[c.prop]||c.elem.style&&null!=c.elem.style[c.prop]?(C=m.css(c.elem,c.prop,""))&&"auto"!==C?C:0:c.elem[c.prop]},set:function(c){m.fx.step[c.prop]?m.fx.step[c.prop](c):c.elem.style&&(null!=c.elem.style[m.cssProps[c.prop]]||m.cssHooks[c.prop])?m.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}}).scrollTop=Ic.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},m.easing={linear:function(c){return c},swing:function(c){return.5-Math.cos(c*Math.PI)/2}},m.fx=Ic.prototype.init,m.fx.step={};var Ac,Pc,Oc,Nc,jc,$c=/^(?:toggle|show|hide)$/,Wc=new RegExp("^(?:([+-])=|)("+R+")([a-z%]*)$","i"),Rc=/queueHooks$/,Fc=[function(C,c,l){var e,s,h,z,t,M,i,a=this,n={},r=C.style,o=C.nodeType&&j(C),v=I.get(C,"fxshow");for(e in l.queue||(null==(t=m._queueHooks(C,"fx")).unqueued&&(t.unqueued=0,M=t.empty.fire,t.empty.fire=function(){t.unqueued||M()}),t.unqueued++,a.always(function(){a.always(function(){t.unqueued--,m.queue(C,"fx").length||t.empty.fire()})})),1===C.nodeType&&("height"in c||"width"in c)&&(l.overflow=[r.overflow,r.overflowX,r.overflowY],i=m.css(C,"display"),"inline"===("none"===i?I.get(C,"olddisplay")||Sc(C.nodeName):i)&&"none"===m.css(C,"float")&&(r.display="inline-block")),l.overflow&&(r.overflow="hidden",a.always(function(){r.overflow=l.overflow[0],r.overflowX=l.overflow[1],r.overflowY=l.overflow[2]})),c)if(s=c[e],$c.exec(s)){if(delete c[e],h=h||"toggle"===s,s===(o?"hide":"show")){if("show"!==s||!v||void 0===v[e])continue;o=!0}n[e]=v&&v[e]||m.style(C,e)}else i=void 0;if(m.isEmptyObject(n))"inline"===("none"===i?Sc(C.nodeName):i)&&(r.display=i);else for(e in v?"hidden"in v&&(o=v.hidden):v=I.access(C,"fxshow",{}),h&&(v.hidden=!o),o?m(C).show():a.done(function(){m(C).hide()}),a.done(function(){var c;for(c in I.remove(C,"fxshow"),n)m.style(C,c,n[c])}),n)z=Xc(o?v[e]:0,e,a),e in v||(v[e]=z.start,o&&(z.end=z.start,z.start="width"===e||"height"===e?1:0))}],Bc={"*":[function(c,C){var l=this.createTween(c,C),e=l.cur(),s=Wc.exec(C),h=s&&s[3]||(m.cssNumber[c]?"":"px"),z=(m.cssNumber[c]||"px"!==h&&+e)&&Wc.exec(m.css(l.elem,c)),t=1,M=20;if(z&&z[3]!==h)for(h=h||z[3],s=s||[],z=+e||1;z/=t=t||".5",m.style(l.elem,c,z+h),t!==(t=l.cur()/e)&&1!==t&&--M;);return s&&(z=l.start=+z||+e||0,l.unit=h,l.end=s[1]?z+(s[1]+1)*s[2]:+s[2]),l}]};function Yc(){return setTimeout(function(){Ac=void 0}),Ac=m.now()}function Uc(c,C){var l,e=0,s={height:c};for(C=C?1:0;e<4;e+=2-C)s["margin"+(l=F[e])]=s["padding"+l]=c;return C&&(s.opacity=s.width=c),s}function Xc(c,C,l){for(var e,s=(Bc[C]||[]).concat(Bc["*"]),h=0,z=s.length;h<z;h++)if(e=s[h].call(l,C,c))return e}function Kc(h,c,C){var l,z,e=0,s=Fc.length,t=m.Deferred().always(function(){delete M.elem}),M=function(){if(z)return!1;for(var c=Ac||Yc(),C=Math.max(0,i.startTime+i.duration-c),l=1-(C/i.duration||0),e=0,s=i.tweens.length;e<s;e++)i.tweens[e].run(l);return t.notifyWith(h,[i,l,C]),l<1&&s?C:(t.resolveWith(h,[i]),!1)},i=t.promise({elem:h,props:m.extend({},c),opts:m.extend(!0,{specialEasing:{}},C),originalProperties:c,originalOptions:C,startTime:Ac||Yc(),duration:C.duration,tweens:[],createTween:function(c,C){var l=m.Tween(h,i.opts,c,C,i.opts.specialEasing[c]||i.opts.easing);return i.tweens.push(l),l},stop:function(c){var C=0,l=c?i.tweens.length:0;if(z)return this;for(z=!0;C<l;C++)i.tweens[C].run(1);return c?t.resolveWith(h,[i,c]):t.rejectWith(h,[i,c]),this}}),a=i.props;for(function(c,C){var l,e,s,h,z;for(l in c)if(s=C[e=m.camelCase(l)],h=c[l],m.isArray(h)&&(s=h[1],h=c[l]=h[0]),l!==e&&(c[e]=h,delete c[l]),(z=m.cssHooks[e])&&"expand"in z)for(l in h=z.expand(h),delete c[e],h)l in c||(c[l]=h[l],C[l]=s);else C[e]=s}(a,i.opts.specialEasing);e<s;e++)if(l=Fc[e].call(i,h,a,i.opts))return l;return m.map(a,Xc,i),m.isFunction(i.opts.start)&&i.opts.start.call(h,i),m.fx.timer(m.extend(M,{elem:h,anim:i,queue:i.opts.queue})),i.progress(i.opts.progress).done(i.opts.done,i.opts.complete).fail(i.opts.fail).always(i.opts.always)}m.Animation=m.extend(Kc,{tweener:function(c,C){for(var l,e=0,s=(c=m.isFunction(c)?(C=c,["*"]):c.split(" ")).length;e<s;e++)l=c[e],Bc[l]=Bc[l]||[],Bc[l].unshift(C)},prefilter:function(c,C){C?Fc.unshift(c):Fc.push(c)}}),m.speed=function(c,C,l){var e=c&&"object"==typeof c?m.extend({},c):{complete:l||!l&&C||m.isFunction(c)&&c,duration:c,easing:l&&C||C&&!m.isFunction(C)&&C};return e.duration=m.fx.off?0:"number"==typeof e.duration?e.duration:e.duration in m.fx.speeds?m.fx.speeds[e.duration]:m.fx.speeds._default,null!=e.queue&&!0!==e.queue||(e.queue="fx"),e.old=e.complete,e.complete=function(){m.isFunction(e.old)&&e.old.call(this),e.queue&&m.dequeue(this,e.queue)},e},m.fn.extend({fadeTo:function(c,C,l,e){return this.filter(j).css("opacity",0).show().end().animate({opacity:C},c,l,e)},animate:function(C,c,l,e){function s(){var c=Kc(this,m.extend({},C),z);(h||I.get(this,"finish"))&&c.stop(!0)}var h=m.isEmptyObject(C),z=m.speed(c,l,e);return s.finish=s,h||!1===z.queue?this.each(s):this.queue(z.queue,s)},stop:function(s,c,h){function z(c){var C=c.stop;delete c.stop,C(h)}return"string"!=typeof s&&(h=c,c=s,s=void 0),c&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var c=!0,C=null!=s&&s+"queueHooks",l=m.timers,e=I.get(this);if(C)e[C]&&e[C].stop&&z(e[C]);else for(C in e)e[C]&&e[C].stop&&Rc.test(C)&&z(e[C]);for(C=l.length;C--;)l[C].elem!==this||null!=s&&l[C].queue!==s||(l[C].anim.stop(h),c=!1,l.splice(C,1));!c&&h||m.dequeue(this,s)})},finish:function(z){return!1!==z&&(z=z||"fx"),this.each(function(){var c,C=I.get(this),l=C[z+"queue"],e=C[z+"queueHooks"],s=m.timers,h=l?l.length:0;for(C.finish=!0,m.queue(this,z,[]),e&&e.stop&&e.stop.call(this,!0),c=s.length;c--;)s[c].elem===this&&s[c].queue===z&&(s[c].anim.stop(!0),s.splice(c,1));for(c=0;c<h;c++)l[c]&&l[c].finish&&l[c].finish.call(this);delete C.finish})}}),m.each(["toggle","show","hide"],function(c,e){var s=m.fn[e];m.fn[e]=function(c,C,l){return null==c||"boolean"==typeof c?s.apply(this,arguments):this.animate(Uc(e,!0),c,C,l)}}),m.each({slideDown:Uc("show"),slideUp:Uc("hide"),slideToggle:Uc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,e){m.fn[c]=function(c,C,l){return this.animate(e,c,C,l)}}),m.timers=[],m.fx.tick=function(){var c,C=0,l=m.timers;for(Ac=m.now();C<l.length;C++)(c=l[C])()||l[C]!==c||l.splice(C--,1);l.length||m.fx.stop(),Ac=void 0},m.fx.timer=function(c){m.timers.push(c),c()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){Pc=Pc||setInterval(m.fx.tick,m.fx.interval)},m.fx.stop=function(){clearInterval(Pc),Pc=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(e,c){return e=m.fx&&m.fx.speeds[e]||e,c=c||"fx",this.queue(c,function(c,C){var l=setTimeout(c,e);C.stop=function(){clearTimeout(l)}})},Oc=S.createElement("input"),Nc=S.createElement("select"),jc=Nc.appendChild(S.createElement("option")),Oc.type="checkbox",H.checkOn=""!==Oc.value,H.optSelected=jc.selected,Nc.disabled=!0,H.optDisabled=!jc.disabled,(Oc=S.createElement("input")).value="t",Oc.type="radio",H.radioValue="t"===Oc.value;var Qc,Gc=m.expr.attrHandle;m.fn.extend({attr:function(c,C){return D(this,m.attr,c,C,1<arguments.length)},removeAttr:function(c){return this.each(function(){m.removeAttr(this,c)})}}),m.extend({attr:function(c,C,l){var e,s,h=c.nodeType;if(c&&3!==h&&8!==h&&2!==h)return typeof c.getAttribute==Y?m.prop(c,C,l):(1===h&&m.isXMLDoc(c)||(C=C.toLowerCase(),e=m.attrHooks[C]||(m.expr.match.bool.test(C)?Qc:void 0)),void 0===l?e&&"get"in e&&null!==(s=e.get(c,C))?s:null==(s=m.find.attr(c,C))?void 0:s:null!==l?e&&"set"in e&&void 0!==(s=e.set(c,l,C))?s:(c.setAttribute(C,l+""),l):void m.removeAttr(c,C))},removeAttr:function(c,C){var l,e,s=0,h=C&&C.match(x);if(h&&1===c.nodeType)for(;l=h[s++];)e=m.propFix[l]||l,m.expr.match.bool.test(l)&&(c[e]=!1),c.removeAttribute(l)},attrHooks:{type:{set:function(c,C){if(!H.radioValue&&"radio"===C&&m.nodeName(c,"input")){var l=c.value;return c.setAttribute("type",C),l&&(c.value=l),C}}}}}),Qc={set:function(c,C,l){return!1===C?m.removeAttr(c,l):c.setAttribute(l,l),l}},m.each(m.expr.match.bool.source.match(/\w+/g),function(c,C){var h=Gc[C]||m.find.attr;Gc[C]=function(c,C,l){var e,s;return l||(s=Gc[C],Gc[C]=e,e=null!=h(c,C,l)?C.toLowerCase():null,Gc[C]=s),e}});var Zc=/^(?:input|select|textarea|button)$/i;m.fn.extend({prop:function(c,C){return D(this,m.prop,c,C,1<arguments.length)},removeProp:function(c){return this.each(function(){delete this[m.propFix[c]||c]})}}),m.extend({propFix:{for:"htmlFor",class:"className"},prop:function(c,C,l){var e,s,h=c.nodeType;if(c&&3!==h&&8!==h&&2!==h)return(1!==h||!m.isXMLDoc(c))&&(C=m.propFix[C]||C,s=m.propHooks[C]),void 0!==l?s&&"set"in s&&void 0!==(e=s.set(c,l,C))?e:c[C]=l:s&&"get"in s&&null!==(e=s.get(c,C))?e:c[C]},propHooks:{tabIndex:{get:function(c){return c.hasAttribute("tabindex")||Zc.test(c.nodeName)||c.href?c.tabIndex:-1}}}}),H.optSelected||(m.propHooks.selected={get:function(c){var C=c.parentNode;return C&&C.parentNode&&C.parentNode.selectedIndex,null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});var Jc=/[\t\r\n\f]/g;m.fn.extend({addClass:function(C){var c,l,e,s,h,z,t="string"==typeof C&&C,M=0,i=this.length;if(m.isFunction(C))return this.each(function(c){m(this).addClass(C.call(this,c,this.className))});if(t)for(c=(C||"").match(x)||[];M<i;M++)if(e=1===(l=this[M]).nodeType&&(l.className?(" "+l.className+" ").replace(Jc," "):" ")){for(h=0;s=c[h++];)e.indexOf(" "+s+" ")<0&&(e+=s+" ");z=m.trim(e),l.className!==z&&(l.className=z)}return this},removeClass:function(C){var c,l,e,s,h,z,t=0===arguments.length||"string"==typeof C&&C,M=0,i=this.length;if(m.isFunction(C))return this.each(function(c){m(this).removeClass(C.call(this,c,this.className))});if(t)for(c=(C||"").match(x)||[];M<i;M++)if(e=1===(l=this[M]).nodeType&&(l.className?(" "+l.className+" ").replace(Jc," "):"")){for(h=0;s=c[h++];)for(;0<=e.indexOf(" "+s+" ");)e=e.replace(" "+s+" "," ");z=C?m.trim(e):"",l.className!==z&&(l.className=z)}return this},toggleClass:function(s,C){var h=typeof s;return"boolean"==typeof C&&"string"==h?C?this.addClass(s):this.removeClass(s):this.each(m.isFunction(s)?function(c){m(this).toggleClass(s.call(this,c,this.className,C),C)}:function(){if("string"==h)for(var c,C=0,l=m(this),e=s.match(x)||[];c=e[C++];)l.hasClass(c)?l.removeClass(c):l.addClass(c);else h!=Y&&"boolean"!=h||(this.className&&I.set(this,"__className__",this.className),this.className=this.className||!1===s?"":I.get(this,"__className__")||"")})},hasClass:function(c){for(var C=" "+c+" ",l=0,e=this.length;l<e;l++)if(1===this[l].nodeType&&0<=(" "+this[l].className+" ").replace(Jc," ").indexOf(C))return!0;return!1}});var cC=/\r/g;m.fn.extend({val:function(l){var e,c,s,C=this[0];return arguments.length?(s=m.isFunction(l),this.each(function(c){var C;1===this.nodeType&&(null==(C=s?l.call(this,c,m(this).val()):l)?C="":"number"==typeof C?C+="":m.isArray(C)&&(C=m.map(C,function(c){return null==c?"":c+""})),(e=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,C,"value")||(this.value=C))})):C?(e=m.valHooks[C.type]||m.valHooks[C.nodeName.toLowerCase()])&&"get"in e&&void 0!==(c=e.get(C,"value"))?c:"string"==typeof(c=C.value)?c.replace(cC,""):null==c?"":c:void 0}}),m.extend({valHooks:{option:{get:function(c){var C=m.find.attr(c,"value");return null!=C?C:m.trim(m.text(c))}},select:{get:function(c){for(var C,l,e=c.options,s=c.selectedIndex,h="select-one"===c.type||s<0,z=h?null:[],t=h?s+1:e.length,M=s<0?t:h?s:0;M<t;M++)if(!(!(l=e[M]).selected&&M!==s||(H.optDisabled?l.disabled:null!==l.getAttribute("disabled"))||l.parentNode.disabled&&m.nodeName(l.parentNode,"optgroup"))){if(C=m(l).val(),h)return C;z.push(C)}return z},set:function(c,C){for(var l,e,s=c.options,h=m.makeArray(C),z=s.length;z--;)((e=s[z]).selected=0<=m.inArray(e.value,h))&&(l=!0);return l||(c.selectedIndex=-1),h}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(c,C){return m.isArray(C)?c.checked=0<=m.inArray(m(c).val(),C):void 0}},H.checkOn||(m.valHooks[this].get=function(c){return null===c.getAttribute("value")?"on":c.value})}),m.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(c,l){m.fn[l]=function(c,C){return 0<arguments.length?this.on(l,null,c,C):this.trigger(l)}}),m.fn.extend({hover:function(c,C){return this.mouseenter(c).mouseleave(C||c)},bind:function(c,C,l){return this.on(c,null,C,l)},unbind:function(c,C){return this.off(c,null,C)},delegate:function(c,C,l,e){return this.on(C,c,l,e)},undelegate:function(c,C,l){return 1===arguments.length?this.off(c,"**"):this.off(C,c||"**",l)}});var CC=m.now(),lC=/\?/;m.parseJSON=function(c){return JSON.parse(c+"")},m.parseXML=function(c){var C;if(!c||"string"!=typeof c)return null;try{C=(new DOMParser).parseFromString(c,"text/xml")}catch(c){C=void 0}return C&&!C.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+c),C};var eC=/#.*$/,sC=/([?&])_=[^&]*/,hC=/^(.*?):[ \t]*([^\r\n]*)$/gm,zC=/^(?:GET|HEAD)$/,tC=/^\/\//,MC=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,iC={},aC={},nC="*/".concat("*"),rC=v.location.href,oC=MC.exec(rC.toLowerCase())||[];function vC(h){return function(c,C){"string"!=typeof c&&(C=c,c="*");var l,e=0,s=c.toLowerCase().match(x)||[];if(m.isFunction(C))for(;l=s[e++];)"+"===l[0]?(l=l.slice(1)||"*",(h[l]=h[l]||[]).unshift(C)):(h[l]=h[l]||[]).push(C)}}function VC(C,s,h,z){var t={},M=C===aC;function i(c){var e;return t[c]=!0,m.each(C[c]||[],function(c,C){var l=C(s,h,z);return"string"!=typeof l||M||t[l]?M?!(e=l):void 0:(s.dataTypes.unshift(l),i(l),!1)}),e}return i(s.dataTypes[0])||!t["*"]&&i("*")}function LC(c,C){var l,e,s=m.ajaxSettings.flatOptions||{};for(l in C)void 0!==C[l]&&((s[l]?c:e=e||{})[l]=C[l]);return e&&m.extend(!0,c,e),c}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:rC,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(oC[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":nC,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,C){return C?LC(LC(c,m.ajaxSettings),C):LC(m.ajaxSettings,c)},ajaxPrefilter:vC(iC),ajaxTransport:vC(aC),ajax:function(c,C){"object"==typeof c&&(C=c,c=void 0),C=C||{};var a,n,r,l,o,e,v,s,V=m.ajaxSetup({},C),L=V.context||V,H=V.context&&(L.nodeType||L.jquery)?m(L):m.event,S=m.Deferred(),f=m.Callbacks("once memory"),d=V.statusCode||{},h={},z={},u=0,t="canceled",p={readyState:0,getResponseHeader:function(c){var C;if(2===u){if(!l)for(l={};C=hC.exec(r);)l[C[1].toLowerCase()]=C[2];C=l[c.toLowerCase()]}return null==C?null:C},getAllResponseHeaders:function(){return 2===u?r:null},setRequestHeader:function(c,C){var l=c.toLowerCase();return u||(c=z[l]=z[l]||c,h[c]=C),this},overrideMimeType:function(c){return u||(V.mimeType=c),this},statusCode:function(c){var C;if(c)if(u<2)for(C in c)d[C]=[d[C],c[C]];else p.always(c[p.status]);return this},abort:function(c){var C=c||t;return a&&a.abort(C),M(0,C),this}};if(S.promise(p).complete=f.add,p.success=p.done,p.error=p.fail,V.url=((c||V.url||rC)+"").replace(eC,"").replace(tC,oC[1]+"//"),V.type=C.method||C.type||V.method||V.type,V.dataTypes=m.trim(V.dataType||"*").toLowerCase().match(x)||[""],null==V.crossDomain&&(e=MC.exec(V.url.toLowerCase()),V.crossDomain=!(!e||e[1]===oC[1]&&e[2]===oC[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(oC[3]||("http:"===oC[1]?"80":"443")))),V.data&&V.processData&&"string"!=typeof V.data&&(V.data=m.param(V.data,V.traditional)),VC(iC,V,C,p),2===u)return p;for(s in(v=m.event&&V.global)&&0==m.active++&&m.event.trigger("ajaxStart"),V.type=V.type.toUpperCase(),V.hasContent=!zC.test(V.type),n=V.url,V.hasContent||(V.data&&(n=V.url+=(lC.test(n)?"&":"?")+V.data,delete V.data),!1===V.cache&&(V.url=sC.test(n)?n.replace(sC,"$1_="+CC++):n+(lC.test(n)?"&":"?")+"_="+CC++)),V.ifModified&&(m.lastModified[n]&&p.setRequestHeader("If-Modified-Since",m.lastModified[n]),m.etag[n]&&p.setRequestHeader("If-None-Match",m.etag[n])),(V.data&&V.hasContent&&!1!==V.contentType||C.contentType)&&p.setRequestHeader("Content-Type",V.contentType),p.setRequestHeader("Accept",V.dataTypes[0]&&V.accepts[V.dataTypes[0]]?V.accepts[V.dataTypes[0]]+("*"!==V.dataTypes[0]?", "+nC+"; q=0.01":""):V.accepts["*"]),V.headers)p.setRequestHeader(s,V.headers[s]);if(V.beforeSend&&(!1===V.beforeSend.call(L,p,V)||2===u))return p.abort();for(s in t="abort",{success:1,error:1,complete:1})p[s](V[s]);if(a=VC(aC,V,C,p)){p.readyState=1,v&&H.trigger("ajaxSend",[p,V]),V.async&&0<V.timeout&&(o=setTimeout(function(){p.abort("timeout")},V.timeout));try{u=1,a.send(h,M)}catch(c){if(!(u<2))throw c;M(-1,c)}}else M(-1,"No Transport");function M(c,C,l,e){var s,h,z,t,M,i=C;2!==u&&(u=2,o&&clearTimeout(o),a=void 0,r=e||"",p.readyState=0<c?4:0,s=200<=c&&c<300||304===c,l&&(t=function(c,C,l){for(var e,s,h,z,t=c.contents,M=c.dataTypes;"*"===M[0];)M.shift(),void 0===e&&(e=c.mimeType||C.getResponseHeader("Content-Type"));if(e)for(s in t)if(t[s]&&t[s].test(e)){M.unshift(s);break}if(M[0]in l)h=M[0];else{for(s in l){if(!M[0]||c.converters[s+" "+M[0]]){h=s;break}z=z||s}h=h||z}return h?(h!==M[0]&&M.unshift(h),l[h]):void 0}(V,p,l)),t=function(c,C,l,e){var s,h,z,t,M,i={},a=c.dataTypes.slice();if(a[1])for(z in c.converters)i[z.toLowerCase()]=c.converters[z];for(h=a.shift();h;)if(c.responseFields[h]&&(l[c.responseFields[h]]=C),!M&&e&&c.dataFilter&&(C=c.dataFilter(C,c.dataType)),M=h,h=a.shift())if("*"===h)h=M;else if("*"!==M&&M!==h){if(!(z=i[M+" "+h]||i["* "+h]))for(s in i)if((t=s.split(" "))[1]===h&&(z=i[M+" "+t[0]]||i["* "+t[0]])){!0===z?z=i[s]:!0!==i[s]&&(h=t[0],a.unshift(t[1]));break}if(!0!==z)if(z&&c.throws)C=z(C);else try{C=z(C)}catch(c){return{state:"parsererror",error:z?c:"No conversion from "+M+" to "+h}}}return{state:"success",data:C}}(V,t,p,s),s?(V.ifModified&&((M=p.getResponseHeader("Last-Modified"))&&(m.lastModified[n]=M),(M=p.getResponseHeader("etag"))&&(m.etag[n]=M)),204===c||"HEAD"===V.type?i="nocontent":304===c?i="notmodified":(i=t.state,h=t.data,s=!(z=t.error))):(z=i,!c&&i||(i="error",c<0&&(c=0))),p.status=c,p.statusText=(C||i)+"",s?S.resolveWith(L,[h,i,p]):S.rejectWith(L,[p,i,z]),p.statusCode(d),d=void 0,v&&H.trigger(s?"ajaxSuccess":"ajaxError",[p,V,s?h:z]),f.fireWith(L,[p,i]),v&&(H.trigger("ajaxComplete",[p,V]),--m.active||m.event.trigger("ajaxStop")))}return p},getJSON:function(c,C,l){return m.get(c,C,l,"json")},getScript:function(c,C){return m.get(c,void 0,C,"script")}}),m.each(["get","post"],function(c,s){m[s]=function(c,C,l,e){return m.isFunction(C)&&(e=e||l,l=C,C=void 0),m.ajax({url:c,type:s,dataType:e,data:C,success:l})}}),m._evalUrl=function(c){return m.ajax({url:c,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(C){var c;return m.isFunction(C)?this.each(function(c){m(this).wrapAll(C.call(this,c))}):(this[0]&&(c=m(C,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){for(var c=this;c.firstElementChild;)c=c.firstElementChild;return c}).append(this)),this)},wrapInner:function(l){return this.each(m.isFunction(l)?function(c){m(this).wrapInner(l.call(this,c))}:function(){var c=m(this),C=c.contents();C.length?C.wrapAll(l):c.append(l)})},wrap:function(C){var l=m.isFunction(C);return this.each(function(c){m(this).wrapAll(l?C.call(this,c):C)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(c){return c.offsetWidth<=0&&c.offsetHeight<=0},m.expr.filters.visible=function(c){return!m.expr.filters.hidden(c)};var HC=/%20/g,SC=/\[\]$/,fC=/\r?\n/g,dC=/^(?:submit|button|image|reset|file)$/i,uC=/^(?:input|select|textarea|keygen)/i;function pC(l,c,e,s){var C;if(m.isArray(c))m.each(c,function(c,C){e||SC.test(l)?s(l,C):pC(l+"["+("object"==typeof C?c:"")+"]",C,e,s)});else if(e||"object"!==m.type(c))s(l,c);else for(C in c)pC(l+"["+C+"]",c[C],e,s)}m.param=function(c,C){function l(c,C){C=m.isFunction(C)?C():null==C?"":C,s[s.length]=encodeURIComponent(c)+"="+encodeURIComponent(C)}var e,s=[];if(void 0===C&&(C=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(c)||c.jquery&&!m.isPlainObject(c))m.each(c,function(){l(this.name,this.value)});else for(e in c)pC(e,c[e],C,l);return s.join("&").replace(HC,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=m.prop(this,"elements");return c?m.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!m(this).is(":disabled")&&uC.test(this.nodeName)&&!dC.test(c)&&(this.checked||!B.test(c))}).map(function(c,C){var l=m(this).val();return null==l?null:m.isArray(l)?m.map(l,function(c){return{name:C.name,value:c.replace(fC,"\r\n")}}):{name:C.name,value:l.replace(fC,"\r\n")}}).get()}}),m.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(c){}};var mC=0,gC={},bC={0:200,1223:204},wC=m.ajaxSettings.xhr();v.attachEvent&&v.attachEvent("onunload",function(){for(var c in gC)gC[c]()}),H.cors=!!wC&&"withCredentials"in wC,H.ajax=wC=!!wC,m.ajaxTransport(function(h){var z;return H.cors||wC&&!h.crossDomain?{send:function(c,C){var l,e=h.xhr(),s=++mC;if(e.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(l in h.xhrFields)e[l]=h.xhrFields[l];for(l in h.mimeType&&e.overrideMimeType&&e.overrideMimeType(h.mimeType),h.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest"),c)e.setRequestHeader(l,c[l]);z=function(c){return function(){z&&(delete gC[s],z=e.onload=e.onerror=null,"abort"===c?e.abort():"error"===c?C(e.status,e.statusText):C(bC[e.status]||e.status,e.statusText,"string"==typeof e.responseText?{text:e.responseText}:void 0,e.getAllResponseHeaders()))}},e.onload=z(),e.onerror=z("error"),z=gC[s]=z("abort");try{e.send(h.hasContent&&h.data||null)}catch(c){if(z)throw c}},abort:function(){z&&z()}}:void 0}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(c){return m.globalEval(c),c}}}),m.ajaxPrefilter("script",function(c){void 0===c.cache&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),m.ajaxTransport("script",function(l){var e,s;if(l.crossDomain)return{send:function(c,C){e=m("<script>").prop({async:!0,charset:l.scriptCharset,src:l.url}).on("load error",s=function(c){e.remove(),s=null,c&&C("error"===c.type?404:200,c.type)}),S.head.appendChild(e[0])},abort:function(){s&&s()}}});var yC=[],kC=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=yC.pop()||m.expando+"_"+CC++;return this[c]=!0,c}}),m.ajaxPrefilter("json jsonp",function(c,C,l){var e,s,h,z=!1!==c.jsonp&&(kC.test(c.url)?"url":"string"==typeof c.data&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&kC.test(c.data)&&"data");return z||"jsonp"===c.dataTypes[0]?(e=c.jsonpCallback=m.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,z?c[z]=c[z].replace(kC,"$1"+e):!1!==c.jsonp&&(c.url+=(lC.test(c.url)?"&":"?")+c.jsonp+"="+e),c.converters["script json"]=function(){return h||m.error(e+" was not called"),h[0]},c.dataTypes[0]="json",s=v[e],v[e]=function(){h=arguments},l.always(function(){v[e]=s,c[e]&&(c.jsonpCallback=C.jsonpCallback,yC.push(e)),h&&m.isFunction(s)&&s(h[0]),h=s=void 0}),"script"):void 0}),m.parseHTML=function(c,C,l){if(!c||"string"!=typeof c)return null;"boolean"==typeof C&&(l=C,C=!1),C=C||S;var e=d.exec(c),s=!l&&[];return e?[C.createElement(e[1])]:(e=m.buildFragment([c],C,s),s&&s.length&&m(s).remove(),m.merge([],e.childNodes))};var _C=m.fn.load;m.fn.load=function(c,C,l){if("string"!=typeof c&&_C)return _C.apply(this,arguments);var e,s,h,z=this,t=c.indexOf(" ");return 0<=t&&(e=m.trim(c.slice(t)),c=c.slice(0,t)),m.isFunction(C)?(l=C,C=void 0):C&&"object"==typeof C&&(s="POST"),0<z.length&&m.ajax({url:c,type:s,dataType:"html",data:C}).done(function(c){h=arguments,z.html(e?m("<div>").append(m.parseHTML(c)).find(e):c)}).complete(l&&function(c,C){z.each(l,h||[c.responseText,C,c])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(c,C){m.fn[C]=function(c){return this.on(C,c)}}),m.expr.filters.animated=function(C){return m.grep(m.timers,function(c){return C===c.elem}).length};var xC=v.document.documentElement;function TC(c){return m.isWindow(c)?c:9===c.nodeType&&c.defaultView}m.offset={setOffset:function(c,C,l){var e,s,h,z,t,M,i=m.css(c,"position"),a=m(c),n={};"static"===i&&(c.style.position="relative"),t=a.offset(),h=m.css(c,"top"),M=m.css(c,"left"),s=("absolute"===i||"fixed"===i)&&-1<(h+M).indexOf("auto")?(z=(e=a.position()).top,e.left):(z=parseFloat(h)||0,parseFloat(M)||0),m.isFunction(C)&&(C=C.call(c,l,t)),null!=C.top&&(n.top=C.top-t.top+z),null!=C.left&&(n.left=C.left-t.left+s),"using"in C?C.using.call(c,n):a.css(n)}},m.fn.extend({offset:function(C){if(arguments.length)return void 0===C?this:this.each(function(c){m.offset.setOffset(this,C,c)});var c,l,e=this[0],s={top:0,left:0},h=e&&e.ownerDocument;return h?(c=h.documentElement,m.contains(c,e)?(typeof e.getBoundingClientRect!=Y&&(s=e.getBoundingClientRect()),l=TC(h),{top:s.top+l.pageYOffset-c.clientTop,left:s.left+l.pageXOffset-c.clientLeft}):s):void 0},position:function(){if(this[0]){var c,C,l=this[0],e={top:0,left:0};return"fixed"===m.css(l,"position")?C=l.getBoundingClientRect():(c=this.offsetParent(),C=this.offset(),m.nodeName(c[0],"html")||(e=c.offset()),e.top+=m.css(c[0],"borderTopWidth",!0),e.left+=m.css(c[0],"borderLeftWidth",!0)),{top:C.top-e.top-m.css(l,"marginTop",!0),left:C.left-e.left-m.css(l,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||xC;c&&!m.nodeName(c,"html")&&"static"===m.css(c,"position");)c=c.offsetParent;return c||xC})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(C,s){var h="pageYOffset"===s;m.fn[C]=function(c){return D(this,function(c,C,l){var e=TC(c);return void 0===l?e?e[s]:c[C]:void(e?e.scrollTo(h?v.pageXOffset:l,h?l:v.pageYOffset):c[C]=l)},C,c,arguments.length,null)}}),m.each(["top","left"],function(c,l){m.cssHooks[l]=mc(H.pixelPosition,function(c,C){return C?(C=pc(c,l),dc.test(C)?m(c).position()[l]+"px":C):void 0})}),m.each({Height:"height",Width:"width"},function(h,z){m.each({padding:"inner"+h,content:z,"":"outer"+h},function(e,c){m.fn[c]=function(c,C){var l=arguments.length&&(e||"boolean"!=typeof c),s=e||(!0===c||!0===C?"margin":"border");return D(this,function(c,C,l){var e;return m.isWindow(c)?c.document.documentElement["client"+h]:9===c.nodeType?(e=c.documentElement,Math.max(c.body["scroll"+h],e["scroll"+h],c.body["offset"+h],e["offset"+h],e["client"+h])):void 0===l?m.css(c,C,s):m.style(c,C,l,s)},z,l?c:void 0,l,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var qC=v.jQuery,DC=v.$;return m.noConflict=function(c){return v.$===m&&(v.$=DC),c&&v.jQuery===m&&(v.jQuery=qC),m},typeof c==Y&&(v.jQuery=v.$=m),m}),function(c){"function"==typeof define&&define.amd?define(["jquery"],c):c(jQuery)}(function(m){function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},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},m.extend(this._defaults,this.regional[""]),this.regional.en=m.extend(!0,{},this.regional[""]),this.regional["en-US"]=m.extend(!0,{},this.regional.en),this.dpDiv=l(m("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function l(c){var C="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return c.on("mouseout",C,function(){m(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&m(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&m(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",C,h)}function h(){m.datepicker._isDisabledDatepicker(d.inline?d.dpDiv.parent()[0]:d.input[0])||(m(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),m(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&m(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&m(this).addClass("ui-datepicker-next-hover"))}function n(c,C){for(var l in m.extend(c,C),C)null==C[l]&&(c[l]=C[l]);return c}function C(C){return function(){var c=this.element.val();C.apply(this,arguments),this._refresh(),c!==this.element.val()&&this._trigger("change")}}m.ui=m.ui||{},m.ui.version="1.12.1";var e,s,z,t,p,g,M,i,a,b,r,w,o,v=0,V=Array.prototype.slice;function y(c,C,l){return[parseFloat(c[0])*(r.test(c[0])?C/100:1),parseFloat(c[1])*(r.test(c[1])?l/100:1)]}function k(c,C){return parseInt(m.css(c,C),10)||0}m.cleanData=(o=m.cleanData,function(c){var C,l,e;for(e=0;null!=(l=c[e]);e++)try{(C=m._data(l,"events"))&&C.remove&&m(l).triggerHandler("remove")}catch(c){}o(c)}),m.widget=function(c,l,C){var e,s,h,z={},t=c.split(".")[0],M=t+"-"+(c=c.split(".")[1]);return C||(C=l,l=m.Widget),m.isArray(C)&&(C=m.extend.apply(null,[{}].concat(C))),m.expr[":"][M.toLowerCase()]=function(c){return!!m.data(c,M)},m[t]=m[t]||{},e=m[t][c],s=m[t][c]=function(c,C){return this._createWidget?void(arguments.length&&this._createWidget(c,C)):new s(c,C)},m.extend(s,e,{version:C.version,_proto:m.extend({},C),_childConstructors:[]}),(h=new l).options=m.widget.extend({},h.options),m.each(C,function(C,e){return m.isFunction(e)?void(z[C]=function(){var c,C=this._super,l=this._superApply;return this._super=s,this._superApply=h,c=e.apply(this,arguments),this._super=C,this._superApply=l,c}):void(z[C]=e);function s(){return l.prototype[C].apply(this,arguments)}function h(c){return l.prototype[C].apply(this,c)}}),s.prototype=m.widget.extend(h,{widgetEventPrefix:e&&h.widgetEventPrefix||c},z,{constructor:s,namespace:t,widgetName:c,widgetFullName:M}),e?(m.each(e._childConstructors,function(c,C){var l=C.prototype;m.widget(l.namespace+"."+l.widgetName,s,C._proto)}),delete e._childConstructors):l._childConstructors.push(s),m.widget.bridge(c,s),s},m.widget.extend=function(c){for(var C,l,e=V.call(arguments,1),s=0,h=e.length;s<h;s++)for(C in e[s])l=e[s][C],e[s].hasOwnProperty(C)&&void 0!==l&&(c[C]=m.isPlainObject(l)?m.isPlainObject(c[C])?m.widget.extend({},c[C],l):m.widget.extend({},l):l);return c},m.widget.bridge=function(h,C){var z=C.prototype.widgetFullName||h;m.fn[h]=function(l){var c="string"==typeof l,e=V.call(arguments,1),s=this;return c?this.length||"instance"!==l?this.each(function(){var c,C=m.data(this,z);return"instance"===l?(s=C,!1):C?m.isFunction(C[l])&&"_"!==l.charAt(0)?(c=C[l].apply(C,e))!==C&&void 0!==c?(s=c&&c.jquery?s.pushStack(c.get()):c,!1):void 0:m.error("no such method '"+l+"' for "+h+" widget instance"):m.error("cannot call methods on "+h+" prior to initialization; attempted to call method '"+l+"'")}):s=void 0:(e.length&&(l=m.widget.extend.apply(null,[l].concat(e))),this.each(function(){var c=m.data(this,z);c?(c.option(l||{}),c._init&&c._init()):m.data(this,z,new C(l,this))})),s}},m.Widget=function(){},m.Widget._childConstructors=[],m.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(c,C){C=m(C||this.defaultElement||this)[0],this.element=m(C),this.uuid=v++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=m(),this.hoverable=m(),this.focusable=m(),this.classesElementLookup={},C!==this&&(m.data(C,this.widgetFullName,this),this._on(!0,this.element,{remove:function(c){c.target===C&&this.destroy()}}),this.document=m(C.style?C.ownerDocument:C.document||C),this.window=m(this.document[0].defaultView||this.document[0].parentWindow)),this.options=m.widget.extend({},this.options,this._getCreateOptions(),c),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:m.noop,_create:m.noop,_init:m.noop,destroy:function(){var l=this;this._destroy(),m.each(this.classesElementLookup,function(c,C){l._removeClass(C,c)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:m.noop,widget:function(){return this.element},option:function(c,C){var l,e,s,h=c;if(0===arguments.length)return m.widget.extend({},this.options);if("string"==typeof c)if(h={},c=(l=c.split(".")).shift(),l.length){for(e=h[c]=m.widget.extend({},this.options[c]),s=0;l.length-1>s;s++)e[l[s]]=e[l[s]]||{},e=e[l[s]];if(c=l.pop(),1===arguments.length)return void 0===e[c]?null:e[c];e[c]=C}else{if(1===arguments.length)return void 0===this.options[c]?null:this.options[c];h[c]=C}return this._setOptions(h),this},_setOptions:function(c){var C;for(C in c)this._setOption(C,c[C]);return this},_setOption:function(c,C){return"classes"===c&&this._setOptionClasses(C),this.options[c]=C,"disabled"===c&&this._setOptionDisabled(C),this},_setOptionClasses:function(c){var C,l,e;for(C in c)e=this.classesElementLookup[C],c[C]!==this.options.classes[C]&&e&&e.length&&(l=m(e.get()),this._removeClass(e,C),l.addClass(this._classes({element:l,keys:C,classes:c,add:!0})))},_setOptionDisabled:function(c){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!c),c&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(s){function c(c,C){var l,e;for(e=0;c.length>e;e++)l=z.classesElementLookup[c[e]]||m(),l=s.add?m(m.unique(l.get().concat(s.element.get()))):m(l.not(s.element).get()),z.classesElementLookup[c[e]]=l,h.push(c[e]),C&&s.classes[c[e]]&&h.push(s.classes[c[e]])}var h=[],z=this;return s=m.extend({element:this.element,classes:this.options.classes||{}},s),this._on(s.element,{remove:"_untrackClassesElement"}),s.keys&&c(s.keys.match(/\S+/g)||[],!0),s.extra&&c(s.extra.match(/\S+/g)||[]),h.join(" ")},_untrackClassesElement:function(l){var e=this;m.each(e.classesElementLookup,function(c,C){-1!==m.inArray(l.target,C)&&(e.classesElementLookup[c]=m(C.not(l.target).get()))})},_removeClass:function(c,C,l){return this._toggleClass(c,C,l,!1)},_addClass:function(c,C,l){return this._toggleClass(c,C,l,!0)},_toggleClass:function(c,C,l,e){e="boolean"==typeof e?e:l;var s="string"==typeof c||null===c,h={extra:s?C:l,keys:s?c:C,element:s?this.element:c,add:e};return h.element.toggleClass(this._classes(h),e),this},_on:function(z,t,c){var M,i=this;"boolean"!=typeof z&&(c=t,t=z,z=!1),c?(t=M=m(t),this.bindings=this.bindings.add(t)):(c=t,t=this.element,M=this.widget()),m.each(c,function(c,C){function l(){return z||!0!==i.options.disabled&&!m(this).hasClass("ui-state-disabled")?("string"==typeof C?i[C]:C).apply(i,arguments):void 0}"string"!=typeof C&&(l.guid=C.guid=C.guid||l.guid||m.guid++);var e=c.match(/^([\w:-]*)\s*(.*)$/),s=e[1]+i.eventNamespace,h=e[2];h?M.on(s,h,l):t.on(s,l)})},_off:function(c,C){C=(C||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,c.off(C).off(C),this.bindings=m(this.bindings.not(c).get()),this.focusable=m(this.focusable.not(c).get()),this.hoverable=m(this.hoverable.not(c).get())},_delay:function(c,C){var l=this;return setTimeout(function(){return("string"==typeof c?l[c]:c).apply(l,arguments)},C||0)},_hoverable:function(c){this.hoverable=this.hoverable.add(c),this._on(c,{mouseenter:function(c){this._addClass(m(c.currentTarget),null,"ui-state-hover")},mouseleave:function(c){this._removeClass(m(c.currentTarget),null,"ui-state-hover")}})},_focusable:function(c){this.focusable=this.focusable.add(c),this._on(c,{focusin:function(c){this._addClass(m(c.currentTarget),null,"ui-state-focus")},focusout:function(c){this._removeClass(m(c.currentTarget),null,"ui-state-focus")}})},_trigger:function(c,C,l){var e,s,h=this.options[c];if(l=l||{},(C=m.Event(C)).type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase(),C.target=this.element[0],s=C.originalEvent)for(e in s)e in C||(C[e]=s[e]);return this.element.trigger(C,l),!(m.isFunction(h)&&!1===h.apply(this.element[0],[C].concat(l))||C.isDefaultPrevented())}},m.each({show:"fadeIn",hide:"fadeOut"},function(h,z){m.Widget.prototype["_"+h]=function(C,c,l){"string"==typeof c&&(c={effect:c});var e,s=c?!0===c||"number"==typeof c?z:c.effect||z:h;"number"==typeof(c=c||{})&&(c={duration:c}),e=!m.isEmptyObject(c),c.complete=l,c.delay&&C.delay(c.delay),e&&m.effects&&m.effects.effect[s]?C[h](c):s!==h&&C[s]?C[s](c.duration,c.easing,l):C.queue(function(c){m(this)[h](),l&&l.call(C[0]),c()})}}),m.widget,p=Math.max,g=Math.abs,M=/left|center|right/,i=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,b=/^\w+/,r=/%$/,w=m.fn.position,m.position={scrollbarWidth:function(){if(void 0!==t)return t;var c,C,l=m("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),e=l.children()[0];return m("body").append(l),c=e.offsetWidth,l.css("overflow","scroll"),c===(C=e.offsetWidth)&&(C=l[0].clientWidth),l.remove(),t=c-C},getScrollInfo:function(c){var C=c.isWindow||c.isDocument?"":c.element.css("overflow-x"),l=c.isWindow||c.isDocument?"":c.element.css("overflow-y"),e="scroll"===C||"auto"===C&&c.width<c.element[0].scrollWidth;return{width:"scroll"===l||"auto"===l&&c.height<c.element[0].scrollHeight?m.position.scrollbarWidth():0,height:e?m.position.scrollbarWidth():0}},getWithinInfo:function(c){var C=m(c||window),l=m.isWindow(C[0]),e=!!C[0]&&9===C[0].nodeType;return{element:C,isWindow:l,isDocument:e,offset:l||e?{left:0,top:0}:m(c).offset(),scrollLeft:C.scrollLeft(),scrollTop:C.scrollTop(),width:C.outerWidth(),height:C.outerHeight()}}},m.fn.position=function(n){if(!n||!n.of)return w.apply(this,arguments);n=m.extend({},n);var r,o,v,V,L,c,H=m(n.of),S=m.position.getWithinInfo(n.within),f=m.position.getScrollInfo(S),d=(n.collision||"flip").split(" "),u={};return c=function(c){var C=c[0];return 9===C.nodeType?{width:c.width(),height:c.height(),offset:{top:0,left:0}}:m.isWindow(C)?{width:c.width(),height:c.height(),offset:{top:c.scrollTop(),left:c.scrollLeft()}}:C.preventDefault?{width:0,height:0,offset:{top:C.pageY,left:C.pageX}}:{width:c.outerWidth(),height:c.outerHeight(),offset:c.offset()}}(H),H[0].preventDefault&&(n.at="left top"),o=c.width,v=c.height,V=c.offset,L=m.extend({},V),m.each(["my","at"],function(){var c,C,l=(n[this]||"").split(" ");1===l.length&&(l=M.test(l[0])?l.concat(["center"]):i.test(l[0])?["center"].concat(l):["center","center"]),l[0]=M.test(l[0])?l[0]:"center",l[1]=i.test(l[1])?l[1]:"center",c=a.exec(l[0]),C=a.exec(l[1]),u[this]=[c?c[0]:0,C?C[0]:0],n[this]=[b.exec(l[0])[0],b.exec(l[1])[0]]}),1===d.length&&(d[1]=d[0]),"right"===n.at[0]?L.left+=o:"center"===n.at[0]&&(L.left+=o/2),"bottom"===n.at[1]?L.top+=v:"center"===n.at[1]&&(L.top+=v/2),r=y(u.at,o,v),L.left+=r[0],L.top+=r[1],this.each(function(){var l,c,z=m(this),t=z.outerWidth(),M=z.outerHeight(),C=k(this,"marginLeft"),e=k(this,"marginTop"),s=t+C+k(this,"marginRight")+f.width,h=M+e+k(this,"marginBottom")+f.height,i=m.extend({},L),a=y(u.my,z.outerWidth(),z.outerHeight());"right"===n.my[0]?i.left-=t:"center"===n.my[0]&&(i.left-=t/2),"bottom"===n.my[1]?i.top-=M:"center"===n.my[1]&&(i.top-=M/2),i.left+=a[0],i.top+=a[1],l={marginLeft:C,marginTop:e},m.each(["left","top"],function(c,C){m.ui.position[d[c]]&&m.ui.position[d[c]][C](i,{targetWidth:o,targetHeight:v,elemWidth:t,elemHeight:M,collisionPosition:l,collisionWidth:s,collisionHeight:h,offset:[r[0]+a[0],r[1]+a[1]],my:n.my,at:n.at,within:S,elem:z})}),n.using&&(c=function(c){var C=V.left-i.left,l=C+o-t,e=V.top-i.top,s=e+v-M,h={target:{element:H,left:V.left,top:V.top,width:o,height:v},element:{element:z,left:i.left,top:i.top,width:t,height:M},horizontal:l<0?"left":0<C?"right":"center",vertical:s<0?"top":0<e?"bottom":"middle"};o<t&&o>g(C+l)&&(h.horizontal="center"),v<M&&v>g(e+s)&&(h.vertical="middle"),h.important=p(g(C),g(l))>p(g(e),g(s))?"horizontal":"vertical",n.using.call(this,c,h)}),z.offset(m.extend(i,{using:c}))})},m.ui.position={fit:{left:function(c,C){var l,e=C.within,s=e.isWindow?e.scrollLeft:e.offset.left,h=e.width,z=c.left-C.collisionPosition.marginLeft,t=s-z,M=z+C.collisionWidth-h-s;C.collisionWidth>h?0<t&&M<=0?(l=c.left+t+C.collisionWidth-h-s,c.left+=t-l):c.left=0<M&&t<=0?s:M<t?s+h-C.collisionWidth:s:0<t?c.left+=t:0<M?c.left-=M:c.left=p(c.left-z,c.left)},top:function(c,C){var l,e=C.within,s=e.isWindow?e.scrollTop:e.offset.top,h=C.within.height,z=c.top-C.collisionPosition.marginTop,t=s-z,M=z+C.collisionHeight-h-s;C.collisionHeight>h?0<t&&M<=0?(l=c.top+t+C.collisionHeight-h-s,c.top+=t-l):c.top=0<M&&t<=0?s:M<t?s+h-C.collisionHeight:s:0<t?c.top+=t:0<M?c.top-=M:c.top=p(c.top-z,c.top)}},flip:{left:function(c,C){var l,e,s=C.within,h=s.offset.left+s.scrollLeft,z=s.width,t=s.isWindow?s.scrollLeft:s.offset.left,M=c.left-C.collisionPosition.marginLeft,i=M-t,a=M+C.collisionWidth-z-t,n="left"===C.my[0]?-C.elemWidth:"right"===C.my[0]?C.elemWidth:0,r="left"===C.at[0]?C.targetWidth:"right"===C.at[0]?-C.targetWidth:0,o=-2*C.offset[0];i<0?((l=c.left+n+r+o+C.collisionWidth-z-h)<0||g(i)>l)&&(c.left+=n+r+o):0<a&&(0<(e=c.left-C.collisionPosition.marginLeft+n+r+o-t)||a>g(e))&&(c.left+=n+r+o)},top:function(c,C){var l,e,s=C.within,h=s.offset.top+s.scrollTop,z=s.height,t=s.isWindow?s.scrollTop:s.offset.top,M=c.top-C.collisionPosition.marginTop,i=M-t,a=M+C.collisionHeight-z-t,n="top"===C.my[1]?-C.elemHeight:"bottom"===C.my[1]?C.elemHeight:0,r="top"===C.at[1]?C.targetHeight:"bottom"===C.at[1]?-C.targetHeight:0,o=-2*C.offset[1];i<0?((e=c.top+n+r+o+C.collisionHeight-z-h)<0||g(i)>e)&&(c.top+=n+r+o):0<a&&(0<(l=c.top-C.collisionPosition.marginTop+n+r+o-t)||a>g(l))&&(c.top+=n+r+o)}},flipfit:{left:function(){m.ui.position.flip.left.apply(this,arguments),m.ui.position.fit.left.apply(this,arguments)},top:function(){m.ui.position.flip.top.apply(this,arguments),m.ui.position.fit.top.apply(this,arguments)}}},m.ui.position,m.extend(m.expr[":"],{data:m.expr.createPseudo?m.expr.createPseudo(function(C){return function(c){return!!m.data(c,C)}}):function(c,C,l){return!!m.data(c,l[3])}}),m.fn.extend({disableSelection:(z="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(z+".ui-disableSelection",function(c){c.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),m.ui.focusable=function(c,C){var l,e,s,h,z,t=c.nodeName.toLowerCase();return"area"===t?(e=(l=c.parentNode).name,!(!c.href||!e||"map"!==l.nodeName.toLowerCase())&&(0<(s=m("img[usemap='#"+e+"']")).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(t)?(h=!c.disabled)&&((z=m(c).closest("fieldset")[0])&&(h=!z.disabled)):h="a"===t&&c.href||C,h&&m(c).is(":visible")&&function(c){for(var C=c.css("visibility");"inherit"===C;)C=(c=c.parent()).css("visibility");return"hidden"!==C}(m(c)))},m.extend(m.expr[":"],{focusable:function(c){return m.ui.focusable(c,null!=m.attr(c,"tabindex"))}}),m.ui.focusable,m.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):m(this[0].form)},m.ui.formResetMixin={_formResetHandler:function(){var C=m(this);setTimeout(function(){var c=C.data("ui-form-reset-instances");m.each(c,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var c=this.form.data("ui-form-reset-instances")||[];c.length||this.form.on("reset.ui-form-reset",this._formResetHandler),c.push(this),this.form.data("ui-form-reset-instances",c)}},_unbindFormResetHandler:function(){if(this.form.length){var c=this.form.data("ui-form-reset-instances");c.splice(m.inArray(this,c),1),c.length?this.form.data("ui-form-reset-instances",c):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===m.fn.jquery.substring(0,3)&&(m.each(["Width","Height"],function(c,l){function e(c,C,l,e){return m.each(s,function(){C-=parseFloat(m.css(c,"padding"+this))||0,l&&(C-=parseFloat(m.css(c,"border"+this+"Width"))||0),e&&(C-=parseFloat(m.css(c,"margin"+this))||0)}),C}var s="Width"===l?["Left","Right"]:["Top","Bottom"],h=l.toLowerCase(),z={innerWidth:m.fn.innerWidth,innerHeight:m.fn.innerHeight,outerWidth:m.fn.outerWidth,outerHeight:m.fn.outerHeight};m.fn["inner"+l]=function(c){return void 0===c?z["inner"+l].call(this):this.each(function(){m(this).css(h,e(this,c)+"px")})},m.fn["outer"+l]=function(c,C){return"number"!=typeof c?z["outer"+l].call(this,c):this.each(function(){m(this).css(h,e(this,c,!0,C)+"px")})}}),m.fn.addBack=function(c){return this.add(null==c?this.prevObject:this.prevObject.filter(c))}),m.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},m.ui.escapeSelector=(s=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(c){return c.replace(s,"\\$1")}),m.fn.labels=function(){var c,C,l,e,s;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(l=this.attr("id"))&&(s=(c=this.eq(0).parents().last()).add(c.length?c.siblings():this.siblings()),C="label[for='"+m.ui.escapeSelector(l)+"']",e=e.add(s.find(C).addBack(C))),this.pushStack(e))},m.fn.scrollParent=function(c){var C=this.css("position"),l="absolute"===C,e=c?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var c=m(this);return(!l||"static"!==c.css("position"))&&e.test(c.css("overflow")+c.css("overflow-y")+c.css("overflow-x"))}).eq(0);return"fixed"!==C&&s.length?s:m(this[0].ownerDocument||document)},m.extend(m.expr[":"],{tabbable:function(c){var C=m.attr(c,"tabindex"),l=null!=C;return(!l||0<=C)&&m.ui.focusable(c,l)}}),m.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&m(this).removeAttr("id")})}}),m.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var L=!1;m(document).on("mouseup",function(){L=!1}),m.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var C=this;this.element.on("mousedown."+this.widgetName,function(c){return C._mouseDown(c)}).on("click."+this.widgetName,function(c){return!0===m.data(c.target,C.widgetName+".preventClickEvent")?(m.removeData(c.target,C.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(c){if(!L){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(c),this._mouseDownEvent=c;var C=this,l=1===c.which,e=!("string"!=typeof this.options.cancel||!c.target.nodeName)&&m(c.target).closest(this.options.cancel).length;return l&&!e&&this._mouseCapture(c)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){C.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=!1!==this._mouseStart(c),!this._mouseStarted)?c.preventDefault():(!0===m.data(c.target,this.widgetName+".preventClickEvent")&&m.removeData(c.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(c){return C._mouseMove(c)},this._mouseUpDelegate=function(c){return C._mouseUp(c)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),c.preventDefault(),L=!0)),!0}},_mouseMove:function(c){if(this._mouseMoved){if(m.ui.ie&&(!document.documentMode||document.documentMode<9)&&!c.button)return this._mouseUp(c);if(!c.which)if(c.originalEvent.altKey||c.originalEvent.ctrlKey||c.originalEvent.metaKey||c.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(c)}return(c.which||c.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(c),c.preventDefault()):(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,c),this._mouseStarted?this._mouseDrag(c):this._mouseUp(c)),!this._mouseStarted)},_mouseUp:function(c){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&m.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,L=!1,c.preventDefault()},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),m.ui.plugin={add:function(c,C,l){var e,s=m.ui[c].prototype;for(e in l)s.plugins[e]=s.plugins[e]||[],s.plugins[e].push([C,l[e]])},call:function(c,C,l,e){var s,h=c.plugins[C];if(h&&(e||c.element[0].parentNode&&11!==c.element[0].parentNode.nodeType))for(s=0;h.length>s;s++)c.options[h[s][0]]&&h[s][1].apply(c.element,l)}},m.ui.safeActiveElement=function(C){var l;try{l=C.activeElement}catch(c){l=C.body}return(l=l||C.body).nodeName||(l=C.body),l},m.ui.safeBlur=function(c){c&&"body"!==c.nodeName.toLowerCase()&&m(c).trigger("blur")},m.widget("ui.draggable",m.ui.mouse,{version:"1.12.1",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._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(c,C){this._super(c,C),"handle"===c&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(c){var C=this.options;return!(this.helper||C.disabled||0<m(c.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(c),!!this.handle&&(this._blurActiveElement(c),this._blockFrames(!0===C.iframeFix?"iframe":C.iframeFix),!0))},_blockFrames:function(c){this.iframeBlocks=this.document.find(c).map(function(){var c=m(this);return m("<div>").css("position","absolute").appendTo(c.parent()).outerWidth(c.outerWidth()).outerHeight(c.outerHeight()).offset(c.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(c){var C=m.ui.safeActiveElement(this.document[0]);m(c.target).closest(C).length||m.ui.safeBlur(C)},_mouseStart:function(c){var C=this.options;return this.helper=this._createHelper(c),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),m.ui.ddmanager&&(m.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=0<this.helper.parents().filter(function(){return"fixed"===m(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(c),this.originalPosition=this.position=this._generatePosition(c,!1),this.originalPageX=c.pageX,this.originalPageY=c.pageY,C.cursorAt&&this._adjustOffsetFromHelper(C.cursorAt),this._setContainment(),!1===this._trigger("start",c)?(this._clear(),!1):(this._cacheHelperProportions(),m.ui.ddmanager&&!C.dropBehaviour&&m.ui.ddmanager.prepareOffsets(this,c),this._mouseDrag(c,!0),m.ui.ddmanager&&m.ui.ddmanager.dragStart(this,c),!0)},_refreshOffsets:function(c){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:c.pageX-this.offset.left,top:c.pageY-this.offset.top}},_mouseDrag:function(c,C){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(c,!0),this.positionAbs=this._convertPositionTo("absolute"),!C){var l=this._uiHash();if(!1===this._trigger("drag",c,l))return this._mouseUp(new m.Event("mouseup",c)),!1;this.position=l.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",m.ui.ddmanager&&m.ui.ddmanager.drag(this,c),!1},_mouseStop:function(c){var C=this,l=!1;return m.ui.ddmanager&&!this.options.dropBehaviour&&(l=m.ui.ddmanager.drop(this,c)),this.dropped&&(l=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!l||"valid"===this.options.revert&&l||!0===this.options.revert||m.isFunction(this.options.revert)&&this.options.revert.call(this.element,l)?m(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==C._trigger("stop",c)&&C._clear()}):!1!==this._trigger("stop",c)&&this._clear(),!1},_mouseUp:function(c){return this._unblockFrames(),m.ui.ddmanager&&m.ui.ddmanager.dragStop(this,c),this.handleElement.is(c.target)&&this.element.trigger("focus"),m.ui.mouse.prototype._mouseUp.call(this,c)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new m.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(c){return!this.options.handle||!!m(c.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._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(c){var C=this.options,l=m.isFunction(C.helper),e=l?m(C.helper.apply(this.element[0],[c])):"clone"===C.helper?this.element.clone().removeAttr("id"):this.element;return e.parents("body").length||e.appendTo("parent"===C.appendTo?this.element[0].parentNode:C.appendTo),l&&e[0]===this.element[0]&&this._setPositionRelative(),e[0]===this.element[0]||/(fixed|absolute)/.test(e.css("position"))||e.css("position","absolute"),e},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(c){"string"==typeof c&&(c=c.split(" ")),m.isArray(c)&&(c={left:+c[0],top:+c[1]||0}),"left"in c&&(this.offset.click.left=c.left+this.margins.left),"right"in c&&(this.offset.click.left=this.helperProportions.width-c.right+this.margins.left),"top"in c&&(this.offset.click.top=c.top+this.margins.top),"bottom"in c&&(this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top)},_isRootNode:function(c){return/(html|body)/i.test(c.tagName)||c===this.document[0]},_getParentOffset:function(){var c=this.offsetParent.offset(),C=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==C&&m.contains(this.scrollParent[0],this.offsetParent[0])&&(c.left+=this.scrollParent.scrollLeft(),c.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(c={top:0,left:0}),{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var c=this.element.position(),C=this._isRootNode(this.scrollParent[0]);return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+(C?0:this.scrollParent.scrollTop()),left:c.left-(parseInt(this.helper.css("left"),10)||0)+(C?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 c,C,l,e=this.options,s=this.document[0];return this.relativeContainer=null,e.containment?"window"===e.containment?void(this.containment=[m(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,m(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,m(window).scrollLeft()+m(window).width()-this.helperProportions.width-this.margins.left,m(window).scrollTop()+(m(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,m(s).width()-this.helperProportions.width-this.margins.left,(m(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),void((l=(C=m(e.containment))[0])&&(c=/(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),(c?Math.max(l.scrollWidth,l.offsetWidth):l.offsetWidth)-(parseInt(C.css("borderRightWidth"),10)||0)-(parseInt(C.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(l.scrollHeight,l.offsetHeight):l.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(c,C){C=C||this.position;var l="absolute"===c?1:-1,e=this._isRootNode(this.scrollParent[0]);return{top:C.top+this.offset.relative.top*l+this.offset.parent.top*l-("fixed"===this.cssPosition?-this.offset.scroll.top:e?0:this.offset.scroll.top)*l,left:C.left+this.offset.relative.left*l+this.offset.parent.left*l-("fixed"===this.cssPosition?-this.offset.scroll.left:e?0:this.offset.scroll.left)*l}},_generatePosition:function(c,C){var l,e,s,h,z=this.options,t=this._isRootNode(this.scrollParent[0]),M=c.pageX,i=c.pageY;return t&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),C&&(this.containment&&(l=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,c.pageX-this.offset.click.left<l[0]&&(M=l[0]+this.offset.click.left),c.pageY-this.offset.click.top<l[1]&&(i=l[1]+this.offset.click.top),c.pageX-this.offset.click.left>l[2]&&(M=l[2]+this.offset.click.left),c.pageY-this.offset.click.top>l[3]&&(i=l[3]+this.offset.click.top)),z.grid&&(s=z.grid[1]?this.originalPageY+Math.round((i-this.originalPageY)/z.grid[1])*z.grid[1]:this.originalPageY,i=l?s-this.offset.click.top>=l[1]||s-this.offset.click.top>l[3]?s:s-this.offset.click.top>=l[1]?s-z.grid[1]:s+z.grid[1]:s,h=z.grid[0]?this.originalPageX+Math.round((M-this.originalPageX)/z.grid[0])*z.grid[0]:this.originalPageX,M=l?h-this.offset.click.left>=l[0]||h-this.offset.click.left>l[2]?h:h-this.offset.click.left>=l[0]?h-z.grid[0]:h+z.grid[0]:h),"y"===z.axis&&(M=this.originalPageX),"x"===z.axis&&(i=this.originalPageY)),{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top),left:M-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(c,C,l){return l=l||this._uiHash(),m.ui.plugin.call(this,c,[C,l,this],!0),/^(drag|start|stop)/.test(c)&&(this.positionAbs=this._convertPositionTo("absolute"),l.offset=this.positionAbs),m.Widget.prototype._trigger.call(this,c,C,l)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),m.ui.plugin.add("draggable","connectToSortable",{start:function(C,c,l){var e=m.extend({},c,{item:l.element});l.sortables=[],m(l.options.connectToSortable).each(function(){var c=m(this).sortable("instance");c&&!c.options.disabled&&(l.sortables.push(c),c.refreshPositions(),c._trigger("activate",C,e))})},stop:function(C,c,l){var e=m.extend({},c,{item:l.element});l.cancelHelperRemoval=!1,m.each(l.sortables,function(){var c=this;c.isOver?(c.isOver=0,l.cancelHelperRemoval=!0,c.cancelHelperRemoval=!1,c._storedCSS={position:c.placeholder.css("position"),top:c.placeholder.css("top"),left:c.placeholder.css("left")},c._mouseStop(C),c.options.helper=c.options._helper):(c.cancelHelperRemoval=!0,c._trigger("deactivate",C,e))})},drag:function(l,e,s){m.each(s.sortables,function(){var c=!1,C=this;C.positionAbs=s.positionAbs,C.helperProportions=s.helperProportions,C.offset.click=s.offset.click,C._intersectsWith(C.containerCache)&&(c=!0,m.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==C&&this._intersectsWith(this.containerCache)&&m.contains(C.element[0],this.element[0])&&(c=!1),c})),c?(C.isOver||(C.isOver=1,s._parent=e.helper.parent(),C.currentItem=e.helper.appendTo(C.element).data("ui-sortable-item",!0),C.options._helper=C.options.helper,C.options.helper=function(){return e.helper[0]},l.target=C.currentItem[0],C._mouseCapture(l,!0),C._mouseStart(l,!0,!0),C.offset.click.top=s.offset.click.top,C.offset.click.left=s.offset.click.left,C.offset.parent.left-=s.offset.parent.left-C.offset.parent.left,C.offset.parent.top-=s.offset.parent.top-C.offset.parent.top,s._trigger("toSortable",l),s.dropped=C.element,m.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,C.fromOutside=s),C.currentItem&&(C._mouseDrag(l),e.position=C.position)):C.isOver&&(C.isOver=0,C.cancelHelperRemoval=!0,C.options._revert=C.options.revert,C.options.revert=!1,C._trigger("out",l,C._uiHash(C)),C._mouseStop(l,!0),C.options.revert=C.options._revert,C.options.helper=C.options._helper,C.placeholder&&C.placeholder.remove(),e.helper.appendTo(s._parent),s._refreshOffsets(l),e.position=s._generatePosition(l,!0),s._trigger("fromSortable",l),s.dropped=!1,m.each(s.sortables,function(){this.refreshPositions()}))})}}),m.ui.plugin.add("draggable","cursor",{start:function(c,C,l){var e=m("body"),s=l.options;e.css("cursor")&&(s._cursor=e.css("cursor")),e.css("cursor",s.cursor)},stop:function(c,C,l){var e=l.options;e._cursor&&m("body").css("cursor",e._cursor)}}),m.ui.plugin.add("draggable","opacity",{start:function(c,C,l){var e=m(C.helper),s=l.options;e.css("opacity")&&(s._opacity=e.css("opacity")),e.css("opacity",s.opacity)},stop:function(c,C,l){var e=l.options;e._opacity&&m(C.helper).css("opacity",e._opacity)}}),m.ui.plugin.add("draggable","scroll",{start:function(c,C,l){l.scrollParentNotHidden||(l.scrollParentNotHidden=l.helper.scrollParent(!1)),l.scrollParentNotHidden[0]!==l.document[0]&&"HTML"!==l.scrollParentNotHidden[0].tagName&&(l.overflowOffset=l.scrollParentNotHidden.offset())},drag:function(c,C,l){var e=l.options,s=!1,h=l.scrollParentNotHidden[0],z=l.document[0];h!==z&&"HTML"!==h.tagName?(e.axis&&"x"===e.axis||(l.overflowOffset.top+h.offsetHeight-c.pageY<e.scrollSensitivity?h.scrollTop=s=h.scrollTop+e.scrollSpeed:c.pageY-l.overflowOffset.top<e.scrollSensitivity&&(h.scrollTop=s=h.scrollTop-e.scrollSpeed)),e.axis&&"y"===e.axis||(l.overflowOffset.left+h.offsetWidth-c.pageX<e.scrollSensitivity?h.scrollLeft=s=h.scrollLeft+e.scrollSpeed:c.pageX-l.overflowOffset.left<e.scrollSensitivity&&(h.scrollLeft=s=h.scrollLeft-e.scrollSpeed))):(e.axis&&"x"===e.axis||(c.pageY-m(z).scrollTop()<e.scrollSensitivity?s=m(z).scrollTop(m(z).scrollTop()-e.scrollSpeed):m(window).height()-(c.pageY-m(z).scrollTop())<e.scrollSensitivity&&(s=m(z).scrollTop(m(z).scrollTop()+e.scrollSpeed))),e.axis&&"y"===e.axis||(c.pageX-m(z).scrollLeft()<e.scrollSensitivity?s=m(z).scrollLeft(m(z).scrollLeft()-e.scrollSpeed):m(window).width()-(c.pageX-m(z).scrollLeft())<e.scrollSensitivity&&(s=m(z).scrollLeft(m(z).scrollLeft()+e.scrollSpeed)))),!1!==s&&m.ui.ddmanager&&!e.dropBehaviour&&m.ui.ddmanager.prepareOffsets(l,c)}}),m.ui.plugin.add("draggable","snap",{start:function(c,C,l){var e=l.options;l.snapElements=[],m(e.snap.constructor!==String?e.snap.items||":data(ui-draggable)":e.snap).each(function(){var c=m(this),C=c.offset();this!==l.element[0]&&l.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:C.top,left:C.left})})},drag:function(c,C,l){var e,s,h,z,t,M,i,a,n,r,o=l.options,v=o.snapTolerance,V=C.offset.left,L=V+l.helperProportions.width,H=C.offset.top,S=H+l.helperProportions.height;for(n=l.snapElements.length-1;0<=n;n--)M=(t=l.snapElements[n].left-l.margins.left)+l.snapElements[n].width,a=(i=l.snapElements[n].top-l.margins.top)+l.snapElements[n].height,L<t-v||M+v<V||S<i-v||a+v<H||!m.contains(l.snapElements[n].item.ownerDocument,l.snapElements[n].item)?(l.snapElements[n].snapping&&l.options.snap.release&&l.options.snap.release.call(l.element,c,m.extend(l._uiHash(),{snapItem:l.snapElements[n].item})),l.snapElements[n].snapping=!1):("inner"!==o.snapMode&&(e=v>=Math.abs(i-S),s=v>=Math.abs(a-H),h=v>=Math.abs(t-L),z=v>=Math.abs(M-V),e&&(C.position.top=l._convertPositionTo("relative",{top:i-l.helperProportions.height,left:0}).top),s&&(C.position.top=l._convertPositionTo("relative",{top:a,left:0}).top),h&&(C.position.left=l._convertPositionTo("relative",{top:0,left:t-l.helperProportions.width}).left),z&&(C.position.left=l._convertPositionTo("relative",{top:0,left:M}).left)),r=e||s||h||z,"outer"!==o.snapMode&&(e=v>=Math.abs(i-H),s=v>=Math.abs(a-S),h=v>=Math.abs(t-V),z=v>=Math.abs(M-L),e&&(C.position.top=l._convertPositionTo("relative",{top:i,left:0}).top),s&&(C.position.top=l._convertPositionTo("relative",{top:a-l.helperProportions.height,left:0}).top),h&&(C.position.left=l._convertPositionTo("relative",{top:0,left:t}).left),z&&(C.position.left=l._convertPositionTo("relative",{top:0,left:M-l.helperProportions.width}).left)),!l.snapElements[n].snapping&&(e||s||h||z||r)&&l.options.snap.snap&&l.options.snap.snap.call(l.element,c,m.extend(l._uiHash(),{snapItem:l.snapElements[n].item})),l.snapElements[n].snapping=e||s||h||z||r)}}),m.ui.plugin.add("draggable","stack",{start:function(c,C,l){var e,s=l.options,h=m.makeArray(m(s.stack)).sort(function(c,C){return(parseInt(m(c).css("zIndex"),10)||0)-(parseInt(m(C).css("zIndex"),10)||0)});h.length&&(e=parseInt(m(h[0]).css("zIndex"),10)||0,m(h).each(function(c){m(this).css("zIndex",e+c)}),this.css("zIndex",e+h.length))}}),m.ui.plugin.add("draggable","zIndex",{start:function(c,C,l){var e=m(C.helper),s=l.options;e.css("zIndex")&&(s._zIndex=e.css("zIndex")),e.css("zIndex",s.zIndex)},stop:function(c,C,l){var e=l.options;e._zIndex&&m(C.helper).css("zIndex",e._zIndex)}}),m.ui.draggable,m.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var c,C=this.options,l=C.accept;this.isover=!1,this.isout=!0,this.accept=m.isFunction(l)?l:function(c){return c.is(l)},this.proportions=function(){return arguments.length?void(c=arguments[0]):c||(c={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(C.scope),C.addClasses&&this._addClass("ui-droppable")},_addToManager:function(c){m.ui.ddmanager.droppables[c]=m.ui.ddmanager.droppables[c]||[],m.ui.ddmanager.droppables[c].push(this)},_splice:function(c){for(var C=0;c.length>C;C++)c[C]===this&&c.splice(C,1)},_destroy:function(){var c=m.ui.ddmanager.droppables[this.options.scope];this._splice(c)},_setOption:function(c,C){if("accept"===c)this.accept=m.isFunction(C)?C:function(c){return c.is(C)};else if("scope"===c){var l=m.ui.ddmanager.droppables[this.options.scope];this._splice(l),this._addToManager(C)}this._super(c,C)},_activate:function(c){var C=m.ui.ddmanager.current;this._addActiveClass(),C&&this._trigger("activate",c,this.ui(C))},_deactivate:function(c){var C=m.ui.ddmanager.current;this._removeActiveClass(),C&&this._trigger("deactivate",c,this.ui(C))},_over:function(c){var C=m.ui.ddmanager.current;C&&(C.currentItem||C.element)[0]!==this.element[0]&&this.accept.call(this.element[0],C.currentItem||C.element)&&(this._addHoverClass(),this._trigger("over",c,this.ui(C)))},_out:function(c){var C=m.ui.ddmanager.current;C&&(C.currentItem||C.element)[0]!==this.element[0]&&this.accept.call(this.element[0],C.currentItem||C.element)&&(this._removeHoverClass(),this._trigger("out",c,this.ui(C)))},_drop:function(C,c){var l=c||m.ui.ddmanager.current,e=!1;return!(!l||(l.currentItem||l.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var c=m(this).droppable("instance");return c.options.greedy&&!c.options.disabled&&c.options.scope===l.options.scope&&c.accept.call(c.element[0],l.currentItem||l.element)&&H(l,m.extend(c,{offset:c.element.offset()}),c.options.tolerance,C)?!(e=!0):void 0}),!e&&(!!this.accept.call(this.element[0],l.currentItem||l.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",C,this.ui(l)),this.element)))},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var H=m.ui.intersect=function(c,C,l,e){if(!C.offset)return!1;var s=(c.positionAbs||c.position.absolute).left+c.margins.left,h=(c.positionAbs||c.position.absolute).top+c.margins.top,z=s+c.helperProportions.width,t=h+c.helperProportions.height,M=C.offset.left,i=C.offset.top,a=M+C.proportions().width,n=i+C.proportions().height;switch(l){case"fit":return M<=s&&z<=a&&i<=h&&t<=n;case"intersect":return s+c.helperProportions.width/2>M&&a>z-c.helperProportions.width/2&&h+c.helperProportions.height/2>i&&n>t-c.helperProportions.height/2;case"pointer":return S(e.pageY,i,C.proportions().height)&&S(e.pageX,M,C.proportions().width);case"touch":return(i<=h&&h<=n||i<=t&&t<=n||h<i&&n<t)&&(M<=s&&s<=a||M<=z&&z<=a||s<M&&a<z);default:return!1}};function S(c,C,l){return C<=c&&c<C+l}!(m.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(c,C){var l,e,s=m.ui.ddmanager.droppables[c.options.scope]||[],h=C?C.type:null,z=(c.currentItem||c.element).find(":data(ui-droppable)").addBack();c:for(l=0;s.length>l;l++)if(!(s[l].options.disabled||c&&!s[l].accept.call(s[l].element[0],c.currentItem||c.element))){for(e=0;z.length>e;e++)if(z[e]===s[l].element[0]){s[l].proportions().height=0;continue c}s[l].visible="none"!==s[l].element.css("display"),s[l].visible&&("mousedown"===h&&s[l]._activate.call(s[l],C),s[l].offset=s[l].element.offset(),s[l].proportions({width:s[l].element[0].offsetWidth,height:s[l].element[0].offsetHeight}))}},drop:function(c,C){var l=!1;return m.each((m.ui.ddmanager.droppables[c.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&H(c,this,this.options.tolerance,C)&&(l=this._drop.call(this,C)||l),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,C)))}),l},dragStart:function(c,C){c.element.parentsUntil("body").on("scroll.droppable",function(){c.options.refreshPositions||m.ui.ddmanager.prepareOffsets(c,C)})},drag:function(h,z){h.options.refreshPositions&&m.ui.ddmanager.prepareOffsets(h,z),m.each(m.ui.ddmanager.droppables[h.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var c,C,l,e=H(h,this,this.options.tolerance,z),s=!e&&this.isover?"isout":e&&!this.isover?"isover":null;s&&(this.options.greedy&&(C=this.options.scope,(l=this.element.parents(":data(ui-droppable)").filter(function(){return m(this).droppable("instance").options.scope===C})).length&&((c=m(l[0]).droppable("instance")).greedyChild="isover"===s)),c&&"isover"===s&&(c.isover=!1,c.isout=!0,c._out.call(c,z)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,z),c&&"isout"===s&&(c.isout=!1,c.isover=!0,c._over.call(c,z)))}})},dragStop:function(c,C){c.element.parentsUntil("body").off("scroll.droppable"),c.options.refreshPositions||m.ui.ddmanager.prepareOffsets(c,C)}})!==m.uiBackCompat&&m.widget("ui.droppable",m.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),m.ui.droppable,m.widget("ui.resizable",m.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},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(c){return parseFloat(c)||0},_isNumber:function(c){return!isNaN(parseFloat(c))},_hasScroll:function(c,C){if("hidden"===m(c).css("overflow"))return!1;var l=C&&"left"===C?"scrollLeft":"scrollTop",e=!1;return 0<c[l]||(c[l]=1,e=0<c[l],c[l]=0,e)},_create:function(){var c,C=this.options,l=this;this._addClass("ui-resizable"),m.extend(this,{_aspectRatio:!!C.aspectRatio,aspectRatio:C.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:C.helper||C.ghost||C.animate?C.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(m("<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,c={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(c),this.originalElement.css("margin",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(c),this._proportionallyResize()),this._setupHandles(),C.autoHide&&m(this.element).on("mouseenter",function(){C.disabled||(l._removeClass("ui-resizable-autohide"),l._handles.show())}).on("mouseleave",function(){C.disabled||l.resizing||(l._addClass("ui-resizable-autohide"),l._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function c(c){m(c).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var C;return this.elementIsWrapper&&(c(this.element),C=this.element,this.originalElement.css({position:C.css("position"),width:C.outerWidth(),height:C.outerHeight(),top:C.css("top"),left:C.css("left")}).insertAfter(C),C.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_setOption:function(c,C){switch(this._super(c,C),c){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var c,C,l,e,s,h=this.options,z=this;if(this.handles=h.handles||(m(".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=m(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),l=this.handles.split(","),this.handles={},C=0;l.length>C;C++)e="ui-resizable-"+(c=m.trim(l[C])),s=m("<div>"),this._addClass(s,"ui-resizable-handle "+e),s.css({zIndex:h.zIndex}),this.handles[c]=".ui-resizable-"+c,this.element.append(s);this._renderAxis=function(c){var C,l,e,s;for(C in c=c||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]=m(this.handles[C]),this._on(this.handles[C],{mousedown:z._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(l=m(this.handles[C],this.element),s=/sw|ne|nw|se|n|s/.test(C)?l.outerHeight():l.outerWidth(),e=["padding",/ne|nw|n/.test(C)?"Top":/se|sw|s/.test(C)?"Bottom":/^e$/.test(C)?"Right":"Left"].join(""),c.css(e,s),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.on("mouseover",function(){z.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),z.axis=s&&s[1]?s[1]:"se")}),h.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(c){var C,l,e=!1;for(C in this.handles)(l=m(this.handles[C])[0])!==c.target&&!m.contains(l,c.target)||(e=!0);return!this.options.disabled&&e},_mouseStart:function(c){var C,l,e,s=this.options,h=this.element;return this.resizing=!0,this._renderProxy(),C=this._num(this.helper.css("left")),l=this._num(this.helper.css("top")),s.containment&&(C+=m(s.containment).scrollLeft()||0,l+=m(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:C,top:l},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalPosition={left:C,top:l},this.originalMousePosition={left:c.pageX,top:c.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=m(".ui-resizable-"+this.axis).css("cursor"),m("body").css("cursor","auto"===e?this.axis+"-resize":e),this._addClass("ui-resizable-resizing"),this._propagate("start",c),!0},_mouseDrag:function(c){var C,l,e=this.originalMousePosition,s=this.axis,h=c.pageX-e.left||0,z=c.pageY-e.top||0,t=this._change[s];return this._updatePrevProperties(),t&&(C=t.apply(this,[c,h,z]),this._updateVirtualBoundaries(c.shiftKey),(this._aspectRatio||c.shiftKey)&&(C=this._updateRatio(C,c)),C=this._respectSize(C,c),this._updateCache(C),this._propagate("resize",c),l=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),m.isEmptyObject(l)||(this._updatePrevProperties(),this._trigger("resize",c,this.ui()),this._applyChanges())),!1},_mouseStop:function(c){this.resizing=!1;var C,l,e,s,h,z,t,M=this.options,i=this;return this._helper&&(e=(l=(C=this._proportionallyResizeElements).length&&/textarea/i.test(C[0].nodeName))&&this._hasScroll(C[0],"left")?0:i.sizeDiff.height,s=l?0:i.sizeDiff.width,h={width:i.helper.width()-s,height:i.helper.height()-e},z=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,t=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null,M.animate||this.element.css(m.extend(h,{top:t,left:z})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!M.animate&&this._proportionallyResize()),m("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",c),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 c={};return this.position.top!==this.prevPosition.top&&(c.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(c.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(c.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(c.height=this.size.height+"px"),this.helper.css(c),c},_updateVirtualBoundaries:function(c){var C,l,e,s,h,z=this.options;h={minWidth:this._isNumber(z.minWidth)?z.minWidth:0,maxWidth:this._isNumber(z.maxWidth)?z.maxWidth:1/0,minHeight:this._isNumber(z.minHeight)?z.minHeight:0,maxHeight:this._isNumber(z.maxHeight)?z.maxHeight:1/0},(this._aspectRatio||c)&&(C=h.minHeight*this.aspectRatio,e=h.minWidth/this.aspectRatio,l=h.maxHeight*this.aspectRatio,s=h.maxWidth/this.aspectRatio,C>h.minWidth&&(h.minWidth=C),e>h.minHeight&&(h.minHeight=e),h.maxWidth>l&&(h.maxWidth=l),h.maxHeight>s&&(h.maxHeight=s)),this._vBoundaries=h},_updateCache:function(c){this.offset=this.helper.offset(),this._isNumber(c.left)&&(this.position.left=c.left),this._isNumber(c.top)&&(this.position.top=c.top),this._isNumber(c.height)&&(this.size.height=c.height),this._isNumber(c.width)&&(this.size.width=c.width)},_updateRatio:function(c){var C=this.position,l=this.size,e=this.axis;return this._isNumber(c.height)?c.width=c.height*this.aspectRatio:this._isNumber(c.width)&&(c.height=c.width/this.aspectRatio),"sw"===e&&(c.left=C.left+(l.width-c.width),c.top=null),"nw"===e&&(c.top=C.top+(l.height-c.height),c.left=C.left+(l.width-c.width)),c},_respectSize:function(c){var C=this._vBoundaries,l=this.axis,e=this._isNumber(c.width)&&C.maxWidth&&C.maxWidth<c.width,s=this._isNumber(c.height)&&C.maxHeight&&C.maxHeight<c.height,h=this._isNumber(c.width)&&C.minWidth&&C.minWidth>c.width,z=this._isNumber(c.height)&&C.minHeight&&C.minHeight>c.height,t=this.originalPosition.left+this.originalSize.width,M=this.originalPosition.top+this.originalSize.height,i=/sw|nw|w/.test(l),a=/nw|ne|n/.test(l);return h&&(c.width=C.minWidth),z&&(c.height=C.minHeight),e&&(c.width=C.maxWidth),s&&(c.height=C.maxHeight),h&&i&&(c.left=t-C.minWidth),e&&i&&(c.left=t-C.maxWidth),z&&a&&(c.top=M-C.minHeight),s&&a&&(c.top=M-C.maxHeight),c.width||c.height||c.left||!c.top?c.width||c.height||c.top||!c.left||(c.left=null):c.top=null,c},_getPaddingPlusBorderDimensions:function(c){for(var C=0,l=[],e=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],s=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];C<4;C++)l[C]=parseFloat(e[C])||0,l[C]+=parseFloat(s[C])||0;return{height:l[0]+l[2],width:l[1]+l[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var c,C=0,l=this.helper||this.element;this._proportionallyResizeElements.length>C;C++)c=this._proportionallyResizeElements[C],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(c)),c.css({height:l.height()-this.outerDimensions.height||0,width:l.width()-this.outerDimensions.width||0})},_renderProxy:function(){var c=this.element,C=this.options;this.elementOffset=c.offset(),this._helper?(this.helper=this.helper||m("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),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(c,C){return{width:this.originalSize.width+C}},w:function(c,C){var l=this.originalSize;return{left:this.originalPosition.left+C,width:l.width-C}},n:function(c,C,l){var e=this.originalSize;return{top:this.originalPosition.top+l,height:e.height-l}},s:function(c,C,l){return{height:this.originalSize.height+l}},se:function(c,C,l){return m.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[c,C,l]))},sw:function(c,C,l){return m.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[c,C,l]))},ne:function(c,C,l){return m.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[c,C,l]))},nw:function(c,C,l){return m.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[c,C,l]))}},_propagate:function(c,C){m.ui.plugin.call(this,c,[C,this.ui()]),"resize"!==c&&this._trigger(c,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}}}),m.ui.plugin.add("resizable","animate",{stop:function(C){var l=m(this).resizable("instance"),c=l.options,e=l._proportionallyResizeElements,s=e.length&&/textarea/i.test(e[0].nodeName),h=s&&l._hasScroll(e[0],"left")?0:l.sizeDiff.height,z=s?0:l.sizeDiff.width,t={width:l.size.width-z,height:l.size.height-h},M=parseFloat(l.element.css("left"))+(l.position.left-l.originalPosition.left)||null,i=parseFloat(l.element.css("top"))+(l.position.top-l.originalPosition.top)||null;l.element.animate(m.extend(t,i&&M?{top:i,left:M}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var c={width:parseFloat(l.element.css("width")),height:parseFloat(l.element.css("height")),top:parseFloat(l.element.css("top")),left:parseFloat(l.element.css("left"))};e&&e.length&&m(e[0]).css({width:c.width,height:c.height}),l._updateCache(c),l._propagate("resize",C)}})}}),m.ui.plugin.add("resizable","containment",{start:function(){var l,e,c,C,s,h,z,t=m(this).resizable("instance"),M=t.options,i=t.element,a=M.containment,n=a instanceof m?a.get(0):/parent/.test(a)?i.parent().get(0):a;n&&(t.containerElement=m(n),/document/.test(a)||a===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:m(document),left:0,top:0,width:m(document).width(),height:m(document).height()||document.body.parentNode.scrollHeight}):(l=m(n),e=[],m(["Top","Right","Left","Bottom"]).each(function(c,C){e[c]=t._num(l.css("padding"+C))}),t.containerOffset=l.offset(),t.containerPosition=l.position(),t.containerSize={height:l.innerHeight()-e[3],width:l.innerWidth()-e[1]},c=t.containerOffset,C=t.containerSize.height,s=t.containerSize.width,h=t._hasScroll(n,"left")?n.scrollWidth:s,z=t._hasScroll(n)?n.scrollHeight:C,t.parentData={element:n,left:c.left,top:c.top,width:h,height:z}))},resize:function(c){var C,l,e,s,h=m(this).resizable("instance"),z=h.options,t=h.containerOffset,M=h.position,i=h._aspectRatio||c.shiftKey,a={top:0,left:0},n=h.containerElement,r=!0;n[0]!==document&&/static/.test(n.css("position"))&&(a=t),M.left<(h._helper?t.left:0)&&(h.size.width=h.size.width+(h._helper?h.position.left-t.left:h.position.left-a.left),i&&(h.size.height=h.size.width/h.aspectRatio,r=!1),h.position.left=z.helper?t.left:0),M.top<(h._helper?t.top:0)&&(h.size.height=h.size.height+(h._helper?h.position.top-t.top:h.position.top),i&&(h.size.width=h.size.height*h.aspectRatio,r=!1),h.position.top=h._helper?t.top:0),e=h.containerElement.get(0)===h.element.parent().get(0),s=/relative|absolute/.test(h.containerElement.css("position")),e&&s?(h.offset.left=h.parentData.left+h.position.left,h.offset.top=h.parentData.top+h.position.top):(h.offset.left=h.element.offset().left,h.offset.top=h.element.offset().top),C=Math.abs(h.sizeDiff.width+(h._helper?h.offset.left-a.left:h.offset.left-t.left)),l=Math.abs(h.sizeDiff.height+(h._helper?h.offset.top-a.top:h.offset.top-t.top)),C+h.size.width>=h.parentData.width&&(h.size.width=h.parentData.width-C,i&&(h.size.height=h.size.width/h.aspectRatio,r=!1)),l+h.size.height>=h.parentData.height&&(h.size.height=h.parentData.height-l,i&&(h.size.width=h.size.height*h.aspectRatio,r=!1)),r||(h.position.left=h.prevPosition.left,h.position.top=h.prevPosition.top,h.size.width=h.prevSize.width,h.size.height=h.prevSize.height)},stop:function(){var c=m(this).resizable("instance"),C=c.options,l=c.containerOffset,e=c.containerPosition,s=c.containerElement,h=m(c.helper),z=h.offset(),t=h.outerWidth()-c.sizeDiff.width,M=h.outerHeight()-c.sizeDiff.height;c._helper&&!C.animate&&/relative/.test(s.css("position"))&&m(this).css({left:z.left-e.left-l.left,width:t,height:M}),c._helper&&!C.animate&&/static/.test(s.css("position"))&&m(this).css({left:z.left-e.left-l.left,width:t,height:M})}}),m.ui.plugin.add("resizable","alsoResize",{start:function(){var c=m(this).resizable("instance").options;m(c.alsoResize).each(function(){var c=m(this);c.data("ui-resizable-alsoresize",{width:parseFloat(c.width()),height:parseFloat(c.height()),left:parseFloat(c.css("left")),top:parseFloat(c.css("top"))})})},resize:function(c,l){var C=m(this).resizable("instance"),e=C.options,s=C.originalSize,h=C.originalPosition,z={height:C.size.height-s.height||0,width:C.size.width-s.width||0,top:C.position.top-h.top||0,left:C.position.left-h.left||0};m(e.alsoResize).each(function(){var c=m(this),e=m(this).data("ui-resizable-alsoresize"),s={},C=c.parents(l.originalElement[0]).length?["width","height"]:["width","height","top","left"];m.each(C,function(c,C){var l=(e[C]||0)+(z[C]||0);l&&0<=l&&(s[C]=l||null)}),c.css(s)})},stop:function(){m(this).removeData("ui-resizable-alsoresize")}}),m.ui.plugin.add("resizable","ghost",{start:function(){var c=m(this).resizable("instance"),C=c.size;c.ghost=c.originalElement.clone(),c.ghost.css({opacity:.25,display:"block",position:"relative",height:C.height,width:C.width,margin:0,left:0,top:0}),c._addClass(c.ghost,"ui-resizable-ghost"),!1!==m.uiBackCompat&&"string"==typeof c.options.ghost&&c.ghost.addClass(this.options.ghost),c.ghost.appendTo(c.helper)},resize:function(){var c=m(this).resizable("instance");c.ghost&&c.ghost.css({position:"relative",height:c.size.height,width:c.size.width})},stop:function(){var c=m(this).resizable("instance");c.ghost&&c.helper&&c.helper.get(0).removeChild(c.ghost.get(0))}}),m.ui.plugin.add("resizable","grid",{resize:function(){var c,C=m(this).resizable("instance"),l=C.options,e=C.size,s=C.originalSize,h=C.originalPosition,z=C.axis,t="number"==typeof l.grid?[l.grid,l.grid]:l.grid,M=t[0]||1,i=t[1]||1,a=Math.round((e.width-s.width)/M)*M,n=Math.round((e.height-s.height)/i)*i,r=s.width+a,o=s.height+n,v=l.maxWidth&&r>l.maxWidth,V=l.maxHeight&&o>l.maxHeight,L=l.minWidth&&l.minWidth>r,H=l.minHeight&&l.minHeight>o;l.grid=t,L&&(r+=M),H&&(o+=i),v&&(r-=M),V&&(o-=i),/^(se|s|e)$/.test(z)?(C.size.width=r,C.size.height=o):/^(ne)$/.test(z)?(C.size.width=r,C.size.height=o,C.position.top=h.top-n):/^(sw)$/.test(z)?(C.size.width=r,C.size.height=o,C.position.left=h.left-a):((o-i<=0||r-M<=0)&&(c=C._getPaddingPlusBorderDimensions(this)),0<o-i?(C.size.height=o,C.position.top=h.top-n):(o=i-c.height,C.size.height=o,C.position.top=h.top+s.height-o),0<r-M?(C.size.width=r,C.position.left=h.left-a):(r=M-c.width,C.size.width=r,C.position.left=h.left+s.width-r))}}),m.ui.resizable,m.widget("ui.selectable",m.ui.mouse,{version:"1.12.1",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 e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=m(e.element[0]).offset(),e.selectees=m(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var c=m(this),C=c.offset(),l={left:C.left-e.elementPos.left,top:C.top-e.elementPos.top};m.data(this,"selectable-item",{element:this,$element:c,left:l.left,top:l.top,right:l.left+c.outerWidth(),bottom:l.top+c.outerHeight(),startselected:!1,selected:c.hasClass("ui-selected"),selecting:c.hasClass("ui-selecting"),unselecting:c.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=m("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(l){var e=this,c=this.options;this.opos=[l.pageX,l.pageY],this.elementPos=m(this.element[0]).offset(),this.options.disabled||(this.selectees=m(c.filter,this.element[0]),this._trigger("start",l),m(c.appendTo).append(this.helper),this.helper.css({left:l.pageX,top:l.pageY,width:0,height:0}),c.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var c=m.data(this,"selectable-item");c.startselected=!0,l.metaKey||l.ctrlKey||(e._removeClass(c.$element,"ui-selected"),c.selected=!1,e._addClass(c.$element,"ui-unselecting"),c.unselecting=!0,e._trigger("unselecting",l,{unselecting:c.element}))}),m(l.target).parents().addBack().each(function(){var c,C=m.data(this,"selectable-item");return C?(c=!l.metaKey&&!l.ctrlKey||!C.$element.hasClass("ui-selected"),e._removeClass(C.$element,c?"ui-unselecting":"ui-selected")._addClass(C.$element,c?"ui-selecting":"ui-unselecting"),C.unselecting=!c,C.selecting=c,(C.selected=c)?e._trigger("selecting",l,{selecting:C.element}):e._trigger("unselecting",l,{unselecting:C.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var c,s=this,h=this.options,z=this.opos[0],t=this.opos[1],M=e.pageX,i=e.pageY;return M<z&&(c=M,M=z,z=c),i<t&&(c=i,i=t,t=c),this.helper.css({left:z,top:t,width:M-z,height:i-t}),this.selectees.each(function(){var c=m.data(this,"selectable-item"),C=!1,l={};c&&c.element!==s.element[0]&&(l.left=c.left+s.elementPos.left,l.right=c.right+s.elementPos.left,l.top=c.top+s.elementPos.top,l.bottom=c.bottom+s.elementPos.top,"touch"===h.tolerance?C=!(l.left>M||z>l.right||l.top>i||t>l.bottom):"fit"===h.tolerance&&(C=l.left>z&&M>l.right&&l.top>t&&i>l.bottom),C?(c.selected&&(s._removeClass(c.$element,"ui-selected"),c.selected=!1),c.unselecting&&(s._removeClass(c.$element,"ui-unselecting"),c.unselecting=!1),c.selecting||(s._addClass(c.$element,"ui-selecting"),c.selecting=!0,s._trigger("selecting",e,{selecting:c.element}))):(c.selecting&&((e.metaKey||e.ctrlKey)&&c.startselected?(s._removeClass(c.$element,"ui-selecting"),c.selecting=!1,s._addClass(c.$element,"ui-selected"),c.selected=!0):(s._removeClass(c.$element,"ui-selecting"),c.selecting=!1,c.startselected&&(s._addClass(c.$element,"ui-unselecting"),c.unselecting=!0),s._trigger("unselecting",e,{unselecting:c.element}))),c.selected&&(e.metaKey||e.ctrlKey||c.startselected||(s._removeClass(c.$element,"ui-selected"),c.selected=!1,s._addClass(c.$element,"ui-unselecting"),c.unselecting=!0,s._trigger("unselecting",e,{unselecting:c.element})))))}),!1}},_mouseStop:function(C){var l=this;return this.dragged=!1,m(".ui-unselecting",this.element[0]).each(function(){var c=m.data(this,"selectable-item");l._removeClass(c.$element,"ui-unselecting"),c.unselecting=!1,c.startselected=!1,l._trigger("unselected",C,{unselected:c.element})}),m(".ui-selecting",this.element[0]).each(function(){var c=m.data(this,"selectable-item");l._removeClass(c.$element,"ui-selecting")._addClass(c.$element,"ui-selected"),c.selecting=!1,c.selected=!0,c.startselected=!0,l._trigger("selected",C,{selected:c.element})}),this._trigger("stop",C),this.helper.remove(),!1}}),m.widget("ui.sortable",m.ui.mouse,{version:"1.12.1",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(c,C,l){return C<=c&&c<C+l},_isFloating:function(c){return/left|right/.test(c.css("float"))||/inline|table-cell/.test(c.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(c,C){this._super(c,C),"handle"===c&&this._setHandleClassName()},_setHandleClassName:function(){var c=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),m.each(this.items,function(){c._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var c=this.items.length-1;0<=c;c--)this.items[c].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(c,C){var l=null,e=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(c),m(c.target).parents().each(function(){return m.data(this,s.widgetName+"-item")===s?(l=m(this),!1):void 0}),m.data(c.target,s.widgetName+"-item")===s&&(l=m(c.target)),!!l&&(!(this.options.handle&&!C&&(m(this.options.handle,l).find("*").addBack().each(function(){this===c.target&&(e=!0)}),!e))&&(this.currentItem=l,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(c,C,l){var e,s,h=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(c),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},m.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.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(c),this.originalPageX=c.pageX,this.originalPageY=c.pageY,h.cursorAt&&this._adjustOffsetFromHelper(h.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),h.containment&&this._setContainment(),h.cursor&&"auto"!==h.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",h.cursor),this.storedStylesheet=m("<style>*{ cursor: "+h.cursor+" !important; }</style>").appendTo(s)),h.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",h.opacity)),h.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",h.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",c,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!l)for(e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("activate",c,this._uiHash(this));return m.ui.ddmanager&&(m.ui.ddmanager.current=this),m.ui.ddmanager&&!h.dropBehaviour&&m.ui.ddmanager.prepareOffsets(this,c),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(c),!0},_mouseDrag:function(c){var C,l,e,s,h=this.options,z=!1;for(this.position=this._generatePosition(c),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-c.pageY<h.scrollSensitivity?this.scrollParent[0].scrollTop=z=this.scrollParent[0].scrollTop+h.scrollSpeed:c.pageY-this.overflowOffset.top<h.scrollSensitivity&&(this.scrollParent[0].scrollTop=z=this.scrollParent[0].scrollTop-h.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-c.pageX<h.scrollSensitivity?this.scrollParent[0].scrollLeft=z=this.scrollParent[0].scrollLeft+h.scrollSpeed:c.pageX-this.overflowOffset.left<h.scrollSensitivity&&(this.scrollParent[0].scrollLeft=z=this.scrollParent[0].scrollLeft-h.scrollSpeed)):(c.pageY-this.document.scrollTop()<h.scrollSensitivity?z=this.document.scrollTop(this.document.scrollTop()-h.scrollSpeed):this.window.height()-(c.pageY-this.document.scrollTop())<h.scrollSensitivity&&(z=this.document.scrollTop(this.document.scrollTop()+h.scrollSpeed)),c.pageX-this.document.scrollLeft()<h.scrollSensitivity?z=this.document.scrollLeft(this.document.scrollLeft()-h.scrollSpeed):this.window.width()-(c.pageX-this.document.scrollLeft())<h.scrollSensitivity&&(z=this.document.scrollLeft(this.document.scrollLeft()+h.scrollSpeed))),!1!==z&&m.ui.ddmanager&&!h.dropBehaviour&&m.ui.ddmanager.prepareOffsets(this,c)),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;0<=C;C--)if(e=(l=this.items[C]).item[0],(s=this._intersectsWithPointer(l))&&l.instance===this.currentContainer&&e!==this.currentItem[0]&&this.placeholder[1===s?"next":"prev"]()[0]!==e&&!m.contains(this.placeholder[0],e)&&("semi-dynamic"!==this.options.type||!m.contains(this.element[0],e))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(l))break;this._rearrange(c,l),this._trigger("change",c,this._uiHash());break}return this._contactContainers(c),m.ui.ddmanager&&m.ui.ddmanager.drag(this,c),this._trigger("sort",c,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(c,C){if(c){if(m.ui.ddmanager&&!this.options.dropBehaviour&&m.ui.ddmanager.drop(this,c),this.options.revert){var l=this,e=this.placeholder.offset(),s=this.options.axis,h={};s&&"x"!==s||(h.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(h.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,m(this.helper).animate(h,parseInt(this.options.revert,10)||500,function(){l._clear(c)})}else this._clear(c,C);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new m.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var c=this.containers.length-1;0<=c;c--)this.containers[c]._trigger("deactivate",null,this._uiHash(this)),this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",null,this._uiHash(this)),this.containers[c].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(),m.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?m(this.domPosition.prev).after(this.currentItem):m(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(C){var c=this._getItemsAsjQuery(C&&C.connected),l=[];return C=C||{},m(c).each(function(){var c=(m(C.item||this).attr(C.attribute||"id")||"").match(C.expression||/(.+)[\-=_](.+)/);c&&l.push((C.key||c[1]+"[]")+"="+(C.key&&C.expression?c[1]:c[2]))}),!l.length&&C.key&&l.push(C.key+"="),l.join("&")},toArray:function(c){var C=this._getItemsAsjQuery(c&&c.connected),l=[];return c=c||{},C.each(function(){l.push(m(c.item||this).attr(c.attribute||"id")||"")}),l},_intersectsWith:function(c){var C=this.positionAbs.left,l=C+this.helperProportions.width,e=this.positionAbs.top,s=e+this.helperProportions.height,h=c.left,z=h+c.width,t=c.top,M=t+c.height,i=this.offset.click.top,a=this.offset.click.left,n="x"===this.options.axis||t<e+i&&e+i<M,r="y"===this.options.axis||h<C+a&&C+a<z,o=n&&r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>c[this.floating?"width":"height"]?o:C+this.helperProportions.width/2>h&&z>l-this.helperProportions.width/2&&e+this.helperProportions.height/2>t&&M>s-this.helperProportions.height/2},_intersectsWithPointer:function(c){var C,l,e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width);return!!(e&&s)&&(C=this._getDragVerticalDirection(),l=this._getDragHorizontalDirection(),this.floating?"right"===l||"down"===C?2:1:C&&("down"===C?2:1))},_intersectsWithSides:function(c){var C=this._isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height),l=this._isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width),e=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&l||"left"===s&&!l:e&&("down"===e&&C||"up"===e&&!C)},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return 0!=c&&(0<c?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return 0!=c&&(0<c?"right":"left")},refresh:function(c){return this._refreshItems(c),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var c=this.options;return c.connectWith.constructor===String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){function C(){z.push(this)}var l,e,s,h,z=[],t=[],M=this._connectWith();if(M&&c)for(l=M.length-1;0<=l;l--)for(e=(s=m(M[l],this.document[0])).length-1;0<=e;e--)(h=m.data(s[e],this.widgetFullName))&&h!==this&&!h.options.disabled&&t.push([m.isFunction(h.options.items)?h.options.items.call(h.element):m(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h]);for(t.push([m.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):m(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),l=t.length-1;0<=l;l--)t[l][0].each(C);return m(z)},_removeCurrentsFromItems:function(){var l=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=m.grep(this.items,function(c){for(var C=0;l.length>C;C++)if(l[C]===c.item[0])return!1;return!0})},_refreshItems:function(c){this.items=[],this.containers=[this];var C,l,e,s,h,z,t,M,i=this.items,a=[[m.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):m(this.options.items,this.element),this]],n=this._connectWith();if(n&&this.ready)for(C=n.length-1;0<=C;C--)for(l=(e=m(n[C],this.document[0])).length-1;0<=l;l--)(s=m.data(e[l],this.widgetFullName))&&s!==this&&!s.options.disabled&&(a.push([m.isFunction(s.options.items)?s.options.items.call(s.element[0],c,{item:this.currentItem}):m(s.options.items,s.element),s]),this.containers.push(s));for(C=a.length-1;0<=C;C--)for(h=a[C][1],l=0,M=(z=a[C][0]).length;l<M;l++)(t=m(z[l])).data(this.widgetName+"-item",h),i.push({item:t,instance:h,width:0,height:0,left:0,top:0})},refreshPositions:function(c){var C,l,e,s;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;0<=C;C--)(l=this.items[C]).instance!==this.currentContainer&&this.currentContainer&&l.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?m(this.options.toleranceElement,l.item):l.item,c||(l.width=e.outerWidth(),l.height=e.outerHeight()),s=e.offset(),l.left=s.left,l.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(C=this.containers.length-1;0<=C;C--)s=this.containers[C].element.offset(),this.containers[C].containerCache.left=s.left,this.containers[C].containerCache.top=s.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(l){var e,s=(l=l||this).options;s.placeholder&&s.placeholder.constructor!==String||(e=s.placeholder,s.placeholder={element:function(){var c=l.currentItem[0].nodeName.toLowerCase(),C=m("<"+c+">",l.document[0]);return l._addClass(C,"ui-sortable-placeholder",e||l.currentItem[0].className)._removeClass(C,"ui-sortable-helper"),"tbody"===c?l._createTrPlaceholder(l.currentItem.find("tr").eq(0),m("<tr>",l.document[0]).appendTo(C)):"tr"===c?l._createTrPlaceholder(l.currentItem,C):"img"===c&&C.attr("src",l.currentItem.attr("src")),e||C.css("visibility","hidden"),C},update:function(c,C){e&&!s.forcePlaceholderSize||(C.height()||C.height(l.currentItem.innerHeight()-parseInt(l.currentItem.css("paddingTop")||0,10)-parseInt(l.currentItem.css("paddingBottom")||0,10)),C.width()||C.width(l.currentItem.innerWidth()-parseInt(l.currentItem.css("paddingLeft")||0,10)-parseInt(l.currentItem.css("paddingRight")||0,10)))}}),l.placeholder=m(s.placeholder.element.call(l.element,l.currentItem)),l.currentItem.after(l.placeholder),s.placeholder.update(l,l.placeholder)},_createTrPlaceholder:function(c,C){var l=this;c.children().each(function(){m("<td>&#160;</td>",l.document[0]).attr("colspan",m(this).attr("colspan")||1).appendTo(C)})},_contactContainers:function(c){var C,l,e,s,h,z,t,M,i,a,n=null,r=null;for(C=this.containers.length-1;0<=C;C--)if(!m.contains(this.currentItem[0],this.containers[C].element[0]))if(this._intersectsWith(this.containers[C].containerCache)){if(n&&m.contains(this.containers[C].element[0],n.element[0]))continue;n=this.containers[C],r=C}else this.containers[C].containerCache.over&&(this.containers[C]._trigger("out",c,this._uiHash(this)),this.containers[C].containerCache.over=0);if(n)if(1===this.containers.length)this.containers[r].containerCache.over||(this.containers[r]._trigger("over",c,this._uiHash(this)),this.containers[r].containerCache.over=1);else{for(e=1e4,s=null,h=(i=n.floating||this._isFloating(this.currentItem))?"left":"top",z=i?"width":"height",a=i?"pageX":"pageY",l=this.items.length-1;0<=l;l--)m.contains(this.containers[r].element[0],this.items[l].item[0])&&this.items[l].item[0]!==this.currentItem[0]&&(t=this.items[l].item.offset()[h],M=!1,c[a]-t>this.items[l][z]/2&&(M=!0),e>Math.abs(c[a]-t)&&(e=Math.abs(c[a]-t),s=this.items[l],this.direction=M?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[r])return void(this.currentContainer.containerCache.over||(this.containers[r]._trigger("over",c,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(c,s,null,!0):this._rearrange(c,null,this.containers[r].element,!0),this._trigger("change",c,this._uiHash()),this.containers[r]._trigger("change",c,this._uiHash(this)),this.currentContainer=this.containers[r],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[r]._trigger("over",c,this._uiHash(this)),this.containers[r].containerCache.over=1}},_createHelper:function(c){var C=this.options,l=m.isFunction(C.helper)?m(C.helper.apply(this.element[0],[c,this.currentItem])):"clone"===C.helper?this.currentItem.clone():this.currentItem;return l.parents("body").length||m("parent"!==C.appendTo?C.appendTo:this.currentItem[0].parentNode)[0].appendChild(l[0]),l[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")}),l[0].style.width&&!C.forceHelperSize||l.width(this.currentItem.width()),l[0].style.height&&!C.forceHelperSize||l.height(this.currentItem.height()),l},_adjustOffsetFromHelper:function(c){"string"==typeof c&&(c=c.split(" ")),m.isArray(c)&&(c={left:+c[0],top:+c[1]||0}),"left"in c&&(this.offset.click.left=c.left+this.margins.left),"right"in c&&(this.offset.click.left=this.helperProportions.width-c.right+this.margins.left),"top"in c&&(this.offset.click.top=c.top+this.margins.top),"bottom"in c&&(this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&m.contains(this.scrollParent[0],this.offsetParent[0])&&(c.left+=this.scrollParent.scrollLeft(),c.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&m.ui.ie)&&(c={top:0,left:0}),{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_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 c,C,l,e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode),"document"!==e.containment&&"window"!==e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===e.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===e.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||(c=m(e.containment)[0],C=m(e.containment).offset(),l="hidden"!==m(c).css("overflow"),this.containment=[C.left+(parseInt(m(c).css("borderLeftWidth"),10)||0)+(parseInt(m(c).css("paddingLeft"),10)||0)-this.margins.left,C.top+(parseInt(m(c).css("borderTopWidth"),10)||0)+(parseInt(m(c).css("paddingTop"),10)||0)-this.margins.top,C.left+(l?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(m(c).css("borderLeftWidth"),10)||0)-(parseInt(m(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,C.top+(l?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(m(c).css("borderTopWidth"),10)||0)-(parseInt(m(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(c,C){C=C||this.position;var l="absolute"===c?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&m.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(e[0].tagName);return{top:C.top+this.offset.relative.top*l+this.offset.parent.top*l-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:e.scrollTop())*l,left:C.left+this.offset.relative.left*l+this.offset.parent.left*l-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:e.scrollLeft())*l}},_generatePosition:function(c){var C,l,e=this.options,s=c.pageX,h=c.pageY,z="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&m.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(z[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&&(c.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),c.pageY-this.offset.click.top<this.containment[1]&&(h=this.containment[1]+this.offset.click.top),c.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),c.pageY-this.offset.click.top>this.containment[3]&&(h=this.containment[3]+this.offset.click.top)),e.grid&&(C=this.originalPageY+Math.round((h-this.originalPageY)/e.grid[1])*e.grid[1],h=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-e.grid[1]:C+e.grid[1]:C,l=this.originalPageX+Math.round((s-this.originalPageX)/e.grid[0])*e.grid[0],s=this.containment?l-this.offset.click.left>=this.containment[0]&&l-this.offset.click.left<=this.containment[2]?l:l-this.offset.click.left>=this.containment[0]?l-e.grid[0]:l+e.grid[0]:l)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:z.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:z.scrollLeft())}},_rearrange:function(c,C,l,e){l?l[0].appendChild(this.placeholder[0]):C.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?C.item[0]:C.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!e)})},_clear:function(c,C){function l(C,l,e){return function(c){e._trigger(C,c,l._uiHash(l))}}this.reverting=!1;var e,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(e in this._storedCSS)"auto"!==this._storedCSS[e]&&"static"!==this._storedCSS[e]||(this._storedCSS[e]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!C&&s.push(function(c){this._trigger("receive",c,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||C||s.push(function(c){this._trigger("update",c,this._uiHash())}),this!==this.currentContainer&&(C||(s.push(function(c){this._trigger("remove",c,this._uiHash())}),s.push(function(C){return function(c){C._trigger("receive",c,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(C){return function(c){C._trigger("update",c,this._uiHash(this))}}.call(this,this.currentContainer)))),e=this.containers.length-1;0<=e;e--)C||s.push(l("deactivate",this,this.containers[e])),this.containers[e].containerCache.over&&(s.push(l("out",this,this.containers[e])),this.containers[e].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,C||this._trigger("beforeStop",c,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!C){for(e=0;s.length>e;e++)s[e].call(this,c);this._trigger("stop",c,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===m.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(c){var C=c||this;return{helper:C.helper,placeholder:C.placeholder||m([]),position:C.position,originalPosition:C.originalPosition,offset:C.positionAbs,item:C.currentItem,sender:c?c.element:null}}}),m.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},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 c=this.options;this.prevShow=this.prevHide=m(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),c.collapsible||!1!==c.active&&null!=c.active||(c.active=0),this._processPanels(),c.active<0&&(c.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():m()}},_createIcons:function(){var c,C,l=this.options.icons;l&&(c=m("<span>"),this._addClass(c,"ui-accordion-header-icon","ui-icon "+l.header),c.prependTo(this.headers),C=this.active.children(".ui-accordion-header-icon"),this._removeClass(C,l.header)._addClass(C,null,l.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var c;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),c=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&c.css("height","")},_setOption:function(c,C){return"active"===c?void this._activate(C):("event"===c&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(C)),this._super(c,C),"collapsible"!==c||C||!1!==this.options.active||this._activate(0),void("icons"===c&&(this._destroyIcons(),C&&this._createIcons())))},_setOptionDisabled:function(c){this._super(c),this.element.attr("aria-disabled",c),this._toggleClass(null,"ui-state-disabled",!!c),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!c)},_keydown:function(c){if(!c.altKey&&!c.ctrlKey){var C=m.ui.keyCode,l=this.headers.length,e=this.headers.index(c.target),s=!1;switch(c.keyCode){case C.RIGHT:case C.DOWN:s=this.headers[(e+1)%l];break;case C.LEFT:case C.UP:s=this.headers[(e-1+l)%l];break;case C.SPACE:case C.ENTER:this._eventHandler(c);break;case C.HOME:s=this.headers[0];break;case C.END:s=this.headers[l-1]}s&&(m(c.target).attr("tabIndex",-1),m(s).attr("tabIndex",0),m(s).trigger("focus"),c.preventDefault())}},_panelKeyDown:function(c){c.keyCode===m.ui.keyCode.UP&&c.ctrlKey&&m(c.currentTarget).prev().trigger("focus")},refresh:function(){var c=this.options;this._processPanels(),!1===c.active&&!0===c.collapsible||!this.headers.length?(c.active=!1,this.active=m()):!1===c.active?this._activate(0):this.active.length&&!m.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(c.active=!1,this.active=m()):this._activate(Math.max(0,c.active-1)):c.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var c=this.headers,C=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),C&&(this._off(c.not(this.headers)),this._off(C.not(this.panels)))},_refresh:function(){var l,c=this.options,C=c.heightStyle,e=this.element.parent();this.active=this._findActive(c.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var c=m(this),C=c.uniqueId().attr("id"),l=c.next(),e=l.uniqueId().attr("id");c.attr("aria-controls",e),l.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"===C?(l=e.height(),this.element.siblings(":visible").each(function(){var c=m(this),C=c.css("position");"absolute"!==C&&"fixed"!==C&&(l-=c.outerHeight(!0))}),this.headers.each(function(){l-=m(this).outerHeight(!0)}),this.headers.next().each(function(){m(this).height(Math.max(0,l-m(this).innerHeight()+m(this).height()))}).css("overflow","auto")):"auto"===C&&(l=0,this.headers.next().each(function(){var c=m(this).is(":visible");c||m(this).show(),l=Math.max(l,m(this).css("height","").height()),c||m(this).hide()}).height(l))},_activate:function(c){var C=this._findActive(c)[0];C!==this.active[0]&&(C=C||this.active[0],this._eventHandler({target:C,currentTarget:C,preventDefault:m.noop}))},_findActive:function(c){return"number"==typeof c?this.headers.eq(c):m()},_setupEvents:function(c){var l={keydown:"_keydown"};c&&m.each(c.split(" "),function(c,C){l[C]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,l),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(c){var C,l,e=this.options,s=this.active,h=m(c.currentTarget),z=h[0]===s[0],t=z&&e.collapsible,M=t?m():h.next(),i=s.next(),a={oldHeader:s,oldPanel:i,newHeader:t?m():h,newPanel:M};c.preventDefault(),z&&!e.collapsible||!1===this._trigger("beforeActivate",c,a)||(e.active=!t&&this.headers.index(h),this.active=z?m():h,this._toggle(a),this._removeClass(s,"ui-accordion-header-active","ui-state-active"),e.icons&&(C=s.children(".ui-accordion-header-icon"),this._removeClass(C,null,e.icons.activeHeader)._addClass(C,null,e.icons.header)),z||(this._removeClass(h,"ui-accordion-header-collapsed")._addClass(h,"ui-accordion-header-active","ui-state-active"),e.icons&&(l=h.children(".ui-accordion-header-icon"),this._removeClass(l,null,e.icons.header)._addClass(l,null,e.icons.activeHeader)),this._addClass(h.next(),"ui-accordion-content-active")))},_toggle:function(c){var C=c.newPanel,l=this.prevShow.length?this.prevShow:c.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=C,this.prevHide=l,this.options.animate?this._animate(C,l,c):(l.hide(),C.show(),this._toggleComplete(c)),l.attr({"aria-hidden":"true"}),l.prev().attr({"aria-selected":"false","aria-expanded":"false"}),C.length&&l.length?l.prev().attr({tabIndex:-1,"aria-expanded":"false"}):C.length&&this.headers.filter(function(){return 0===parseInt(m(this).attr("tabIndex"),10)}).attr("tabIndex",-1),C.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(c,l,C){function e(){t._toggleComplete(C)}var s,h,z,t=this,M=0,i=c.css("box-sizing"),a=c.length&&(!l.length||c.index()<l.index()),n=this.options.animate||{},r=a&&n.down||n;return"number"==typeof r&&(z=r),"string"==typeof r&&(h=r),h=h||r.easing||n.easing,z=z||r.duration||n.duration,l.length?c.length?(s=c.show().outerHeight(),l.animate(this.hideProps,{duration:z,easing:h,step:function(c,C){C.now=Math.round(c)}}),void c.hide().animate(this.showProps,{duration:z,easing:h,complete:e,step:function(c,C){C.now=Math.round(c),"height"!==C.prop?"content-box"===i&&(M+=C.now):"content"!==t.options.heightStyle&&(C.now=Math.round(s-l.outerHeight()-M),M=0)}})):l.animate(this.hideProps,z,h,e):c.animate(this.showProps,z,h,e)},_toggleComplete:function(c){var C=c.oldPanel,l=C.prev();this._removeClass(C,"ui-accordion-content-active"),this._removeClass(l,"ui-accordion-header-active")._addClass(l,"ui-accordion-header-collapsed"),C.length&&(C.parent()[0].className=C.parent()[0].className),this._trigger("activate",null,c)}}),m.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(c){c.preventDefault()},"click .ui-menu-item":function(c){var C=m(c.target),l=m(m.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&C.not(".ui-state-disabled").length&&(this.select(c),c.isPropagationStopped()||(this.mouseHandled=!0),C.has(".ui-menu").length?this.expand(c):!this.element.is(":focus")&&l.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(c){if(!this.previousFilter){var C=m(c.target).closest(".ui-menu-item"),l=m(c.currentTarget);C[0]===l[0]&&(this._removeClass(l.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(c,l))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(c,C){var l=this.active||this.element.find(this.options.items).eq(0);C||this.focus(c,l)},blur:function(c){this._delay(function(){m.contains(this.element[0],m.ui.safeActiveElement(this.document[0]))||this.collapseAll(c)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(c){this._closeOnDocumentClick(c)&&this.collapseAll(c),this.mouseHandled=!1}})},_destroy:function(){var c=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),c.children().each(function(){var c=m(this);c.data("ui-menu-submenu-caret")&&c.remove()})},_keydown:function(c){var C,l,e,s,h=!0;switch(c.keyCode){case m.ui.keyCode.PAGE_UP:this.previousPage(c);break;case m.ui.keyCode.PAGE_DOWN:this.nextPage(c);break;case m.ui.keyCode.HOME:this._move("first","first",c);break;case m.ui.keyCode.END:this._move("last","last",c);break;case m.ui.keyCode.UP:this.previous(c);break;case m.ui.keyCode.DOWN:this.next(c);break;case m.ui.keyCode.LEFT:this.collapse(c);break;case m.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(c);break;case m.ui.keyCode.ENTER:case m.ui.keyCode.SPACE:this._activate(c);break;case m.ui.keyCode.ESCAPE:this.collapse(c);break;default:h=!1,l=this.previousFilter||"",s=!1,e=96<=c.keyCode&&c.keyCode<=105?""+(c.keyCode-96):String.fromCharCode(c.keyCode),clearTimeout(this.filterTimer),e===l?s=!0:e=l+e,C=this._filterMenuItems(e),(C=s&&-1!==C.index(this.active.next())?this.active.nextAll(".ui-menu-item"):C).length||(e=String.fromCharCode(c.keyCode),C=this._filterMenuItems(e)),C.length?(this.focus(c,C),this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}h&&c.preventDefault()},_activate:function(c){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(c):this.select(c))},refresh:function(){var c,C,l,e,s=this,h=this.options.icons.submenu,z=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),C=z.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var c=m(this),C=c.prev(),l=m("<span>").data("ui-menu-submenu-caret",!0);s._addClass(l,"ui-menu-icon","ui-icon "+h),C.attr("aria-haspopup","true").prepend(l),c.attr("aria-labelledby",C.attr("id"))}),this._addClass(C,"ui-menu","ui-widget ui-widget-content ui-front"),(c=z.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var c=m(this);s._isDivider(c)&&s._addClass(c,"ui-menu-divider","ui-widget-content")}),e=(l=c.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(l,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),c.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!m.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(c,C){if("icons"===c){var l=this.element.find(".ui-menu-icon");this._removeClass(l,null,this.options.icons.submenu)._addClass(l,null,C.submenu)}this._super(c,C)},_setOptionDisabled:function(c){this._super(c),this.element.attr("aria-disabled",c+""),this._toggleClass(null,"ui-state-disabled",!!c)},focus:function(c,C){var l,e,s;this.blur(c,c&&"focus"===c.type),this._scrollIntoView(C),this.active=C.first(),e=this.active.children(".ui-menu-item-wrapper"),this._addClass(e,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",e.attr("id")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),c&&"keydown"===c.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(l=C.children(".ui-menu")).length&&c&&/^mouse/.test(c.type)&&this._startOpening(l),this.activeMenu=C.parent(),this._trigger("focus",c,{item:C})},_scrollIntoView:function(c){var C,l,e,s,h,z;this._hasScroll()&&(C=parseFloat(m.css(this.activeMenu[0],"borderTopWidth"))||0,l=parseFloat(m.css(this.activeMenu[0],"paddingTop"))||0,e=c.offset().top-this.activeMenu.offset().top-C-l,s=this.activeMenu.scrollTop(),h=this.activeMenu.height(),z=c.outerHeight(),e<0?this.activeMenu.scrollTop(s+e):h<e+z&&this.activeMenu.scrollTop(s+e-h+z))},blur:function(c,C){C||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",c,{item:this.active}),this.active=null)},_startOpening:function(c){clearTimeout(this.timer),"true"===c.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(c)},this.delay))},_open:function(c){var C=m.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(c.parents(".ui-menu")).hide().attr("aria-hidden","true"),c.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(C)},collapseAll:function(C,l){clearTimeout(this.timer),this.timer=this._delay(function(){var c=l?this.element:m(C&&C.target).closest(this.element.find(".ui-menu"));c.length||(c=this.element),this._close(c),this.blur(C),this._removeClass(c.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=c},this.delay)},_close:function(c){(c=c||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(c){return!m(c.target).closest(".ui-menu").length},_isDivider:function(c){return!/[^\-\u2014\u2013\s]/.test(c.text())},collapse:function(c){var C=this.active&&this.active.parent().closest(".ui-menu-item",this.element);C&&C.length&&(this._close(),this.focus(c,C))},expand:function(c){var C=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();C&&C.length&&(this._open(C.parent()),this._delay(function(){this.focus(c,C)}))},next:function(c){this._move("next","first",c)},previous:function(c){this._move("prev","last",c)},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(c,C,l){var e;this.active&&(e="first"===c||"last"===c?this.active["first"===c?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[c+"All"](".ui-menu-item").eq(0)),e&&e.length&&this.active||(e=this.activeMenu.find(this.options.items)[C]()),this.focus(l,e)},nextPage:function(c){var C,l,e;return this.active?void(this.isLastItem()||(this._hasScroll()?(l=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(C=m(this)).offset().top-l-e<0}),this.focus(c,C)):this.focus(c,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(c)},previousPage:function(c){var C,l,e;return this.active?void(this.isFirstItem()||(this._hasScroll()?(l=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(C=m(this)).offset().top-l+e}),this.focus(c,C)):this.focus(c,this.activeMenu.find(this.options.items).first()))):void this.next(c)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(c){this.active=this.active||m(c.target).closest(".ui-menu-item");var C={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(c,!0),this._trigger("select",c,C)},_filterMenuItems:function(c){var C=c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),l=RegExp("^"+C,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return l.test(m.trim(m(this).children(".ui-menu-item-wrapper").text()))})}}),m.widget("ui.autocomplete",{version:"1.12.1",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 l,e,s,c=this.element[0].nodeName.toLowerCase(),C="textarea"===c,h="input"===c;this.isMultiLine=C||!h&&this._isContentEditable(this.element),this.valueMethod=this.element[C||h?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(c){if(this.element.prop("readOnly"))e=s=l=!0;else{e=s=l=!1;var C=m.ui.keyCode;switch(c.keyCode){case C.PAGE_UP:l=!0,this._move("previousPage",c);break;case C.PAGE_DOWN:l=!0,this._move("nextPage",c);break;case C.UP:l=!0,this._keyEvent("previous",c);break;case C.DOWN:l=!0,this._keyEvent("next",c);break;case C.ENTER:this.menu.active&&(l=!0,c.preventDefault(),this.menu.select(c));break;case C.TAB:this.menu.active&&this.menu.select(c);break;case C.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(c),c.preventDefault());break;default:e=!0,this._searchTimeout(c)}}},keypress:function(c){if(l)return l=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||c.preventDefault());if(!e){var C=m.ui.keyCode;switch(c.keyCode){case C.PAGE_UP:this._move("previousPage",c);break;case C.PAGE_DOWN:this._move("nextPage",c);break;case C.UP:this._keyEvent("previous",c);break;case C.DOWN:this._keyEvent("next",c)}}},input:function(c){return s?(s=!1,void c.preventDefault()):void this._searchTimeout(c)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(c){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(c),void this._change(c))}}),this._initSource(),this.menu=m("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(c){c.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==m.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(c,C){var l,e;return this.isNewMenu&&(this.isNewMenu=!1,c.originalEvent&&/^mouse/.test(c.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){m(c.target).trigger(c.originalEvent)})):(e=C.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",c,{item:e})&&c.originalEvent&&/^key/.test(c.originalEvent.type)&&this._value(e.value),void((l=C.item.attr("aria-label")||e.value)&&m.trim(l).length&&(this.liveRegion.children().hide(),m("<div>").text(l).appendTo(this.liveRegion))))},menuselect:function(c,C){var l=C.item.data("ui-autocomplete-item"),e=this.previous;this.element[0]!==m.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e,this.selectedItem=l})),!1!==this._trigger("select",c,{item:l})&&this._value(l.value),this.term=this._value(),this.close(c),this.selectedItem=l}}),this.liveRegion=m("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(c,C){this._super(c,C),"source"===c&&this._initSource(),"appendTo"===c&&this.menu.element.appendTo(this._appendTo()),"disabled"===c&&C&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(c){var C=this.menu.element[0];return c.target===this.element[0]||c.target===C||m.contains(C,c.target)},_closeOnClickOutside:function(c){this._isEventTargetInWidget(c)||this.close()},_appendTo:function(){var c=this.options.appendTo;return(c=c&&(c.jquery||c.nodeType?m(c):this.document.find(c).eq(0)))&&c[0]||(c=this.element.closest(".ui-front, dialog")),c.length||(c=this.document[0].body),c},_initSource:function(){var l,e,s=this;m.isArray(this.options.source)?(l=this.options.source,this.source=function(c,C){C(m.ui.autocomplete.filter(l,c.term))}):"string"==typeof this.options.source?(e=this.options.source,this.source=function(c,C){s.xhr&&s.xhr.abort(),s.xhr=m.ajax({url:e,data:c,dataType:"json",success:function(c){C(c)},error:function(){C([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var c=this.term===this._value(),C=this.menu.element.is(":visible"),l=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;c&&(!c||C||l)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(c,C){return c=null!=c?c:this._value(),this.term=this._value(),c.length<this.options.minLength?this.close(C):!1!==this._trigger("search",C)?this._search(c):void 0},_search:function(c){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:c},this._response())},_response:function(){var C=++this.requestIndex;return m.proxy(function(c){C===this.requestIndex&&this.__response(c),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(c){c=c&&this._normalize(c),this._trigger("response",null,{content:c}),!this.options.disabled&&c&&c.length&&!this.cancelSearch?(this._suggest(c),this._trigger("open")):this._close()},close:function(c){this.cancelSearch=!0,this._close(c)},_close:function(c){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",c))},_change:function(c){this.previous!==this._value()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){return c.length&&c[0].label&&c[0].value?c:m.map(c,function(c){return"string"==typeof c?{label:c,value:c}:m.extend({},c,{label:c.label||c.value,value:c.value||c.label})})},_suggest:function(c){var C=this.menu.element.empty();this._renderMenu(C,c),this.isNewMenu=!0,this.menu.refresh(),C.show(),this._resizeMenu(),C.position(m.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(l,c){var e=this;m.each(c,function(c,C){e._renderItemData(l,C)})},_renderItemData:function(c,C){return this._renderItem(c,C).data("ui-autocomplete-item",C)},_renderItem:function(c,C){return m("<li>").append(m("<div>").text(C.label)).appendTo(c)},_move:function(c,C){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(c)||this.menu.isLastItem()&&/^next/.test(c)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[c](C):void this.search(null,C)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(c,C){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(c,C),C.preventDefault())},_isContentEditable:function(c){if(!c.length)return!1;var C=c.prop("contentEditable");return"inherit"===C?this._isContentEditable(c.parent()):"true"===C}}),m.extend(m.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(c,C){var l=RegExp(m.ui.autocomplete.escapeRegex(C),"i");return m.grep(c,function(c){return l.test(c.label||c.value||c)})}}),m.widget("ui.autocomplete",m.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(c){return c+(1<c?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(c){var C;this._superApply(arguments),this.options.disabled||this.cancelSearch||(C=c&&c.length?this.options.messages.results(c.length):this.options.messages.noResults,this.liveRegion.children().hide(),m("<div>").text(C).appendTo(this.liveRegion))}}),m.ui.autocomplete;var f,d,u,_=/ui-corner-([a-z]){2,6}/g;m.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var z=this,t=[];m.each(this.options.items,function(s,c){var C,h={};return c?"controlgroupLabel"===s?((C=z.element.find(c)).each(function(){var c=m(this);c.children(".ui-controlgroup-label-contents").length||c.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),z._addClass(C,null,"ui-widget ui-widget-content ui-state-default"),void(t=t.concat(C.get()))):void(m.fn[s]&&(h=z["_"+s+"Options"]?z["_"+s+"Options"]("middle"):{classes:{}},z.element.find(c).each(function(){var c=m(this),C=c[s]("instance"),l=m.widget.extend({},h);if("button"!==s||!c.parent(".ui-spinner").length){(C=C||c[s]()[s]("instance"))&&(l.classes=z._resolveClassesValues(l.classes,C)),c[s](l);var e=c[s]("widget");m.data(e[0],"ui-controlgroup-data",C||c[s]("instance")),t.push(e[0])}}))):void 0}),this.childWidgets=m(m.unique(t)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(C){this.childWidgets.each(function(){var c=m(this).data("ui-controlgroup-data");c&&c[C]&&c[C]()})},_updateCornerClass:function(c,C){var l=this._buildSimpleOptions(C,"label").classes.label;this._removeClass(c,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(c,null,l)},_buildSimpleOptions:function(c,C){var l="vertical"===this.options.direction,e={classes:{}};return e.classes[C]={middle:"",first:"ui-corner-"+(l?"top":"left"),last:"ui-corner-"+(l?"bottom":"right"),only:"ui-corner-all"}[c],e},_spinnerOptions:function(c){var C=this._buildSimpleOptions(c,"ui-spinner");return C.classes["ui-spinner-up"]="",C.classes["ui-spinner-down"]="",C},_buttonOptions:function(c){return this._buildSimpleOptions(c,"ui-button")},_checkboxradioOptions:function(c){return this._buildSimpleOptions(c,"ui-checkboxradio-label")},_selectmenuOptions:function(c){var C="vertical"===this.options.direction;return{width:C&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(C?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(C?"top":"left")},last:{"ui-selectmenu-button-open":C?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(C?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[c]}},_resolveClassesValues:function(l,e){var s={};return m.each(l,function(c){var C=e.options.classes[c]||"";C=m.trim(C.replace(_,"")),s[c]=(C+" "+l[c]).replace(/\s+/g," ")}),s},_setOption:function(c,C){return"direction"===c&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(c,C),"disabled"===c?void this._callChildMethod(C?"disable":"enable"):void this.refresh()},refresh:function(){var s,h=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),s=this.childWidgets,this.options.onlyVisible&&(s=s.filter(":visible")),s.length&&(m.each(["first","last"],function(c,C){var l=s[C]().data("ui-controlgroup-data");if(l&&h["_"+l.widgetName+"Options"]){var e=h["_"+l.widgetName+"Options"](1===s.length?"only":C);e.classes=h._resolveClassesValues(e.classes,l),l.element[l.widgetName](e)}else h._updateCornerClass(s[C](),C)}),this._callChildMethod("refresh"))}}),m.widget("ui.checkboxradio",[m.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var c,C,l=this,e=this._super()||{};return this._readType(),C=this.element.labels(),this.label=m(C[C.length-1]),this.label.length||m.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){l.originalLabel+=3===this.nodeType?m(this).text():this.outerHTML}),this.originalLabel&&(e.label=this.originalLabel),null!=(c=this.element[0].disabled)&&(e.disabled=c),e},_create:function(){var c=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),c&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var c=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===c&&/radio|checkbox/.test(this.type)||m.error("Can't create checkboxradio on element.nodeName="+c+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var c=this.element[0].name,C="input[name='"+m.ui.escapeSelector(c)+"']";return c?(this.form.length?m(this.form[0].elements).filter(C):m(C).filter(function(){return 0===m(this).form().length})).not(this.element):m([])},_toggleClasses:function(){var c=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",c),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",c)._toggleClass(this.icon,null,"ui-icon-blank",!c),"radio"===this.type&&this._getRadioGroup().each(function(){var c=m(this).checkboxradio("instance");c&&c._removeClass(c.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(c,C){return"label"!==c||C?(this._super(c,C),"disabled"===c?(this._toggleClass(this.label,null,"ui-state-disabled",C),void(this.element[0].disabled=C)):void this.refresh()):void 0},_updateIcon:function(c){var C="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=m("<span>"),this.iconSpace=m("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(C+=c?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,c?"ui-icon-blank":"ui-icon-check")):C+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",C),c||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var c=this.label.contents().not(this.element[0]);this.icon&&(c=c.not(this.icon[0])),this.iconSpace&&(c=c.not(this.iconSpace[0])),c.remove(),this.label.append(this.options.label)},refresh:function(){var c=this.element[0].checked,C=this.element[0].disabled;this._updateIcon(c),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",c),null!==this.options.label&&this._updateLabel(),C!==this.options.disabled&&this._setOptions({disabled:C})}}]),m.ui.checkboxradio,m.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var c,C=this._super()||{};return this.isInput=this.element.is("input"),null!=(c=this.element[0].disabled)&&(C.disabled=c),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(C.label=this.originalLabel),C},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(c){c.keyCode===m.ui.keyCode.SPACE&&(c.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(c,C){var l="iconPosition"!==c,e=l?this.options.iconPosition:C,s="top"===e||"bottom"===e;this.icon?l&&this._removeClass(this.icon,null,this.options.icon):(this.icon=m("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),l&&this._addClass(this.icon,null,C),this._attachIcon(e),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=m("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(e))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(c){this.icon[/^(?:end|bottom)/.test(c)?"before":"after"](this.iconSpace)},_attachIcon:function(c){this.element[/^(?:end|bottom)/.test(c)?"append":"prepend"](this.icon)},_setOptions:function(c){var C=void 0===c.showLabel?this.options.showLabel:c.showLabel,l=void 0===c.icon?this.options.icon:c.icon;C||l||(c.showLabel=!0),this._super(c)},_setOption:function(c,C){"icon"===c&&(C?this._updateIcon(c,C):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===c&&this._updateIcon(c,C),"showLabel"===c&&(this._toggleClass("ui-button-icon-only",null,!C),this._updateTooltip()),"label"===c&&(this.isInput?this.element.val(C):(this.element.html(C),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(c,C),"disabled"===c&&(this._toggleClass(null,"ui-state-disabled",C),(this.element[0].disabled=C)&&this.element.blur())},refresh:function(){var c=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");c!==this.options.disabled&&this._setOptions({disabled:c}),this._updateTooltip()}}),!1!==m.uiBackCompat&&(m.widget("ui.button",m.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(c,C){return"text"===c?void this._super("showLabel",C):("showLabel"===c&&(this.options.text=C),"icon"===c&&(this.options.icons.primary=C),"icons"===c&&(C.primary?(this._super("icon",C.primary),this._super("iconPosition","beginning")):C.secondary&&(this._super("icon",C.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),m.fn.button=(f=m.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?f.apply(this,arguments):(m.ui.checkboxradio||m.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),m.fn.buttonset=function(){return m.ui.controlgroup||m.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),m.ui.button,m.extend(m.ui,{datepicker:{version:"1.12.1"}}),m.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(c){return n(this._defaults,c||{}),this},_attachDatepicker:function(c,C){var l,e,s;e="div"===(l=c.nodeName.toLowerCase())||"span"===l,c.id||(this.uuid+=1,c.id="dp"+this.uuid),(s=this._newInst(m(c),e)).settings=m.extend({},C||{}),"input"===l?this._connectDatepicker(c,s):e&&this._inlineDatepicker(c,s)},_newInst:function(c,C){return{id:c[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:C,dpDiv:C?l(m("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(c,C){var l=m(c);C.append=m([]),C.trigger=m([]),l.hasClass(this.markerClassName)||(this._attachments(l,C),l.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(C),m.data(c,"datepicker",C),C.settings.disabled&&this._disableDatepicker(c))},_attachments:function(c,C){var l,e,s,h=this._get(C,"appendText"),z=this._get(C,"isRTL");C.append&&C.append.remove(),h&&(C.append=m("<span class='"+this._appendClass+"'>"+h+"</span>"),c[z?"before":"after"](C.append)),c.off("focus",this._showDatepicker),C.trigger&&C.trigger.remove(),"focus"!==(l=this._get(C,"showOn"))&&"both"!==l||c.on("focus",this._showDatepicker),"button"!==l&&"both"!==l||(e=this._get(C,"buttonText"),s=this._get(C,"buttonImage"),C.trigger=m(this._get(C,"buttonImageOnly")?m("<img/>").addClass(this._triggerClass).attr({src:s,alt:e,title:e}):m("<button type='button'></button>").addClass(this._triggerClass).html(s?m("<img/>").attr({src:s,alt:e,title:e}):e)),c[z?"before":"after"](C.trigger),C.trigger.on("click",function(){return m.datepicker._datepickerShowing&&m.datepicker._lastInput===c[0]?m.datepicker._hideDatepicker():(m.datepicker._datepickerShowing&&m.datepicker._lastInput!==c[0]&&m.datepicker._hideDatepicker(),m.datepicker._showDatepicker(c[0])),!1}))},_autoSize:function(c){if(this._get(c,"autoSize")&&!c.inline){var C,l,e,s,h=new Date(2009,11,20),z=this._get(c,"dateFormat");z.match(/[DM]/)&&(C=function(c){for(s=e=l=0;c.length>s;s++)c[s].length>l&&(l=c[s].length,e=s);return e},h.setMonth(C(this._get(c,z.match(/MM/)?"monthNames":"monthNamesShort"))),h.setDate(C(this._get(c,z.match(/DD/)?"dayNames":"dayNamesShort"))+20-h.getDay())),c.input.attr("size",this._formatDate(c,h).length)}},_inlineDatepicker:function(c,C){var l=m(c);l.hasClass(this.markerClassName)||(l.addClass(this.markerClassName).append(C.dpDiv),m.data(c,"datepicker",C),this._setDate(C,this._getDefaultDate(C),!0),this._updateDatepicker(C),this._updateAlternate(C),C.settings.disabled&&this._disableDatepicker(c),C.dpDiv.css("display","block"))},_dialogDatepicker:function(c,C,l,e,s){var h,z,t,M,i,a=this._dialogInst;return a||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=m("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),m("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},m.data(this._dialogInput[0],"datepicker",a)),n(a.settings,e||{}),C=C&&C.constructor===Date?this._formatDate(a,C):C,this._dialogInput.val(C),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(z=document.documentElement.clientWidth,t=document.documentElement.clientHeight,M=document.documentElement.scrollLeft||document.body.scrollLeft,i=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[z/2-100+M,t/2-150+i]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=l,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),m.blockUI&&m.blockUI(this.dpDiv),m.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(c){var C,l=m(c),e=m.data(c,"datepicker");l.hasClass(this.markerClassName)&&(C=c.nodeName.toLowerCase(),m.removeData(c,"datepicker"),"input"===C?(e.append.remove(),e.trigger.remove(),l.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==C&&"span"!==C||l.removeClass(this.markerClassName).empty(),d===e&&(d=null))},_enableDatepicker:function(C){var c,l,e=m(C),s=m.data(C,"datepicker");e.hasClass(this.markerClassName)&&("input"===(c=C.nodeName.toLowerCase())?(C.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==c&&"span"!==c||((l=e.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),l.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=m.map(this._disabledInputs,function(c){return c===C?null:c}))},_disableDatepicker:function(C){var c,l,e=m(C),s=m.data(C,"datepicker");e.hasClass(this.markerClassName)&&("input"===(c=C.nodeName.toLowerCase())?(C.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==c&&"span"!==c||((l=e.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),l.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=m.map(this._disabledInputs,function(c){return c===C?null:c}),this._disabledInputs[this._disabledInputs.length]=C)},_isDisabledDatepicker:function(c){if(!c)return!1;for(var C=0;this._disabledInputs.length>C;C++)if(this._disabledInputs[C]===c)return!0;return!1},_getInst:function(c){try{return m.data(c,"datepicker")}catch(c){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(c,C,l){var e,s,h,z,t=this._getInst(c);return 2===arguments.length&&"string"==typeof C?"defaults"===C?m.extend({},m.datepicker._defaults):t?"all"===C?m.extend({},t.settings):this._get(t,C):null:(e=C||{},"string"==typeof C&&((e={})[C]=l),void(t&&(this._curInst===t&&this._hideDatepicker(),s=this._getDateDatepicker(c,!0),h=this._getMinMaxDate(t,"min"),z=this._getMinMaxDate(t,"max"),n(t.settings,e),null!==h&&void 0!==e.dateFormat&&void 0===e.minDate&&(t.settings.minDate=this._formatDate(t,h)),null!==z&&void 0!==e.dateFormat&&void 0===e.maxDate&&(t.settings.maxDate=this._formatDate(t,z)),"disabled"in e&&(e.disabled?this._disableDatepicker(c):this._enableDatepicker(c)),this._attachments(m(c),t),this._autoSize(t),this._setDate(t,s),this._updateAlternate(t),this._updateDatepicker(t))))},_changeDatepicker:function(c,C,l){this._optionDatepicker(c,C,l)},_refreshDatepicker:function(c){var C=this._getInst(c);C&&this._updateDatepicker(C)},_setDateDatepicker:function(c,C){var l=this._getInst(c);l&&(this._setDate(l,C),this._updateDatepicker(l),this._updateAlternate(l))},_getDateDatepicker:function(c,C){var l=this._getInst(c);return l&&!l.inline&&this._setDateFromField(l,C),l?this._getDate(l):null},_doKeyDown:function(c){var C,l,e,s=m.datepicker._getInst(c.target),h=!0,z=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,m.datepicker._datepickerShowing)switch(c.keyCode){case 9:m.datepicker._hideDatepicker(),h=!1;break;case 13:return(e=m("td."+m.datepicker._dayOverClass+":not(."+m.datepicker._currentClass+")",s.dpDiv))[0]&&m.datepicker._selectDay(c.target,s.selectedMonth,s.selectedYear,e[0]),(C=m.datepicker._get(s,"onSelect"))?(l=m.datepicker._formatDate(s),C.apply(s.input?s.input[0]:null,[l,s])):m.datepicker._hideDatepicker(),!1;case 27:m.datepicker._hideDatepicker();break;case 33:m.datepicker._adjustDate(c.target,c.ctrlKey?-m.datepicker._get(s,"stepBigMonths"):-m.datepicker._get(s,"stepMonths"),"M");break;case 34:m.datepicker._adjustDate(c.target,c.ctrlKey?+m.datepicker._get(s,"stepBigMonths"):+m.datepicker._get(s,"stepMonths"),"M");break;case 35:(c.ctrlKey||c.metaKey)&&m.datepicker._clearDate(c.target),h=c.ctrlKey||c.metaKey;break;case 36:(c.ctrlKey||c.metaKey)&&m.datepicker._gotoToday(c.target),h=c.ctrlKey||c.metaKey;break;case 37:(c.ctrlKey||c.metaKey)&&m.datepicker._adjustDate(c.target,z?1:-1,"D"),h=c.ctrlKey||c.metaKey,c.originalEvent.altKey&&m.datepicker._adjustDate(c.target,c.ctrlKey?-m.datepicker._get(s,"stepBigMonths"):-m.datepicker._get(s,"stepMonths"),"M");break;case 38:(c.ctrlKey||c.metaKey)&&m.datepicker._adjustDate(c.target,-7,"D"),h=c.ctrlKey||c.metaKey;break;case 39:(c.ctrlKey||c.metaKey)&&m.datepicker._adjustDate(c.target,z?-1:1,"D"),h=c.ctrlKey||c.metaKey,c.originalEvent.altKey&&m.datepicker._adjustDate(c.target,c.ctrlKey?+m.datepicker._get(s,"stepBigMonths"):+m.datepicker._get(s,"stepMonths"),"M");break;case 40:(c.ctrlKey||c.metaKey)&&m.datepicker._adjustDate(c.target,7,"D"),h=c.ctrlKey||c.metaKey;break;default:h=!1}else 36===c.keyCode&&c.ctrlKey?m.datepicker._showDatepicker(this):h=!1;h&&(c.preventDefault(),c.stopPropagation())},_doKeyPress:function(c){var C,l,e=m.datepicker._getInst(c.target);return m.datepicker._get(e,"constrainInput")?(C=m.datepicker._possibleChars(m.datepicker._get(e,"dateFormat")),l=String.fromCharCode(null==c.charCode?c.keyCode:c.charCode),c.ctrlKey||c.metaKey||l<" "||!C||-1<C.indexOf(l)):void 0},_doKeyUp:function(c){var C=m.datepicker._getInst(c.target);if(C.input.val()!==C.lastVal)try{m.datepicker.parseDate(m.datepicker._get(C,"dateFormat"),C.input?C.input.val():null,m.datepicker._getFormatConfig(C))&&(m.datepicker._setDateFromField(C),m.datepicker._updateAlternate(C),m.datepicker._updateDatepicker(C))}catch(c){}return!0},_showDatepicker:function(c){var C,l,e,s,h,z,t;"input"!==(c=c.target||c).nodeName.toLowerCase()&&(c=m("input",c.parentNode)[0]),m.datepicker._isDisabledDatepicker(c)||m.datepicker._lastInput===c||(C=m.datepicker._getInst(c),m.datepicker._curInst&&m.datepicker._curInst!==C&&(m.datepicker._curInst.dpDiv.stop(!0,!0),C&&m.datepicker._datepickerShowing&&m.datepicker._hideDatepicker(m.datepicker._curInst.input[0])),!1!==(e=(l=m.datepicker._get(C,"beforeShow"))?l.apply(c,[c,C]):{})&&(n(C.settings,e),C.lastVal=null,m.datepicker._lastInput=c,m.datepicker._setDateFromField(C),m.datepicker._inDialog&&(c.value=""),m.datepicker._pos||(m.datepicker._pos=m.datepicker._findPos(c),m.datepicker._pos[1]+=c.offsetHeight),s=!1,m(c).parents().each(function(){return!(s|="fixed"===m(this).css("position"))}),h={left:m.datepicker._pos[0],top:m.datepicker._pos[1]},m.datepicker._pos=null,C.dpDiv.empty(),C.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),m.datepicker._updateDatepicker(C),h=m.datepicker._checkOffset(C,h,s),C.dpDiv.css({position:m.datepicker._inDialog&&m.blockUI?"static":s?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),C.inline||(z=m.datepicker._get(C,"showAnim"),t=m.datepicker._get(C,"duration"),C.dpDiv.css("z-index",function(c){for(var C,l;c.length&&c[0]!==document;){if(("absolute"===(C=c.css("position"))||"relative"===C||"fixed"===C)&&(l=parseInt(c.css("zIndex"),10),!isNaN(l)&&0!==l))return l;c=c.parent()}return 0}(m(c))+1),m.datepicker._datepickerShowing=!0,m.effects&&m.effects.effect[z]?C.dpDiv.show(z,m.datepicker._get(C,"showOptions"),t):C.dpDiv[z||"show"](z?t:null),m.datepicker._shouldFocusInput(C)&&C.input.trigger("focus"),m.datepicker._curInst=C)))},_updateDatepicker:function(c){this.maxRows=4,(d=c).dpDiv.empty().append(this._generateHTML(c)),this._attachHandlers(c);var C,l=this._getNumberOfMonths(c),e=l[1],s=c.dpDiv.find("."+this._dayOverClass+" a");0<s.length&&h.apply(s.get(0)),c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<e&&c.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"),c.dpDiv[(1!==l[0]||1!==l[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),c===m.datepicker._curInst&&m.datepicker._datepickerShowing&&m.datepicker._shouldFocusInput(c)&&c.input.trigger("focus"),c.yearshtml&&(C=c.yearshtml,setTimeout(function(){C===c.yearshtml&&c.yearshtml&&c.dpDiv.find("select.ui-datepicker-year:first").replaceWith(c.yearshtml),C=c.yearshtml=null},0))},_shouldFocusInput:function(c){return c.input&&c.input.is(":visible")&&!c.input.is(":disabled")&&!c.input.is(":focus")},_checkOffset:function(c,C,l){var e=c.dpDiv.outerWidth(),s=c.dpDiv.outerHeight(),h=c.input?c.input.outerWidth():0,z=c.input?c.input.outerHeight():0,t=document.documentElement.clientWidth+(l?0:m(document).scrollLeft()),M=document.documentElement.clientHeight+(l?0:m(document).scrollTop());return C.left-=this._get(c,"isRTL")?e-h:0,C.left-=l&&C.left===c.input.offset().left?m(document).scrollLeft():0,C.top-=l&&C.top===c.input.offset().top+z?m(document).scrollTop():0,C.left-=Math.min(C.left,C.left+e>t&&e<t?Math.abs(C.left+e-t):0),C.top-=Math.min(C.top,C.top+s>M&&s<M?Math.abs(s+z):0),C},_findPos:function(c){for(var C,l=this._getInst(c),e=this._get(l,"isRTL");c&&("hidden"===c.type||1!==c.nodeType||m.expr.filters.hidden(c));)c=c[e?"previousSibling":"nextSibling"];return[(C=m(c).offset()).left,C.top]},_hideDatepicker:function(c){var C,l,e,s,h=this._curInst;!h||c&&h!==m.data(c,"datepicker")||this._datepickerShowing&&(C=this._get(h,"showAnim"),l=this._get(h,"duration"),e=function(){m.datepicker._tidyDialog(h)},m.effects&&(m.effects.effect[C]||m.effects[C])?h.dpDiv.hide(C,m.datepicker._get(h,"showOptions"),l,e):h.dpDiv["slideDown"===C?"slideUp":"fadeIn"===C?"fadeOut":"hide"](C?l:null,e),C||e(),this._datepickerShowing=!1,(s=this._get(h,"onClose"))&&s.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),m.blockUI&&(m.unblockUI(),m("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(c){c.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(c){if(m.datepicker._curInst){var C=m(c.target),l=m.datepicker._getInst(C[0]);(C[0].id===m.datepicker._mainDivId||0!==C.parents("#"+m.datepicker._mainDivId).length||C.hasClass(m.datepicker.markerClassName)||C.closest("."+m.datepicker._triggerClass).length||!m.datepicker._datepickerShowing||m.datepicker._inDialog&&m.blockUI)&&(!C.hasClass(m.datepicker.markerClassName)||m.datepicker._curInst===l)||m.datepicker._hideDatepicker()}},_adjustDate:function(c,C,l){var e=m(c),s=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(s,C+("M"===l?this._get(s,"showCurrentAtPos"):0),l),this._updateDatepicker(s))},_gotoToday:function(c){var C,l=m(c),e=this._getInst(l[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(C=new Date,e.selectedDay=C.getDate(),e.drawMonth=e.selectedMonth=C.getMonth(),e.drawYear=e.selectedYear=C.getFullYear()),this._notifyChange(e),this._adjustDate(l)},_selectMonthYear:function(c,C,l){var e=m(c),s=this._getInst(e[0]);s["selected"+("M"===l?"Month":"Year")]=s["draw"+("M"===l?"Month":"Year")]=parseInt(C.options[C.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(e)},_selectDay:function(c,C,l,e){var s,h=m(c);m(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(h[0])||((s=this._getInst(h[0])).selectedDay=s.currentDay=m("a",e).html(),s.selectedMonth=s.currentMonth=C,s.selectedYear=s.currentYear=l,this._selectDate(c,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(c){var C=m(c);this._selectDate(C,"")},_selectDate:function(c,C){var l,e=m(c),s=this._getInst(e[0]);C=null!=C?C:this._formatDate(s),s.input&&s.input.val(C),this._updateAlternate(s),(l=this._get(s,"onSelect"))?l.apply(s.input?s.input[0]:null,[C,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(c){var C,l,e,s=this._get(c,"altField");s&&(C=this._get(c,"altFormat")||this._get(c,"dateFormat"),l=this._getDate(c),e=this.formatDate(C,l,this._getFormatConfig(c)),m(s).val(e))},noWeekends:function(c){var C=c.getDay();return[0<C&&C<6,""]},iso8601Week:function(c){var C,l=new Date(c.getTime());return l.setDate(l.getDate()+4-(l.getDay()||7)),C=l.getTime(),l.setMonth(0),l.setDate(1),Math.floor(Math.round((C-l)/864e5)/7)+1},parseDate:function(l,h,c){if(null==l||null==h)throw"Invalid arguments";if(""===(h="object"==typeof h?""+h:h+""))return null;function z(c){var C=l.length>t+1&&l.charAt(t+1)===c;return C&&t++,C}function C(c){var C=z(c),l="@"===c?14:"!"===c?20:"y"===c&&C?4:"o"===c?3:2,e=RegExp("^\\d{"+("y"===c?l:1)+","+l+"}"),s=h.substring(n).match(e);if(!s)throw"Missing number at position "+n;return n+=s[0].length,parseInt(s[0],10)}function e(c,C,l){var e=-1,s=m.map(z(c)?l:C,function(c,C){return[[C,c]]}).sort(function(c,C){return-(c[1].length-C[1].length)});if(m.each(s,function(c,C){var l=C[1];return h.substr(n,l.length).toLowerCase()===l.toLowerCase()?(e=C[0],n+=l.length,!1):void 0}),-1!==e)return e+1;throw"Unknown name at position "+n}function s(){if(h.charAt(n)!==l.charAt(t))throw"Unexpected literal at position "+n;n++}var t,M,i,a,n=0,r=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,o="string"!=typeof r?r:(new Date).getFullYear()%100+parseInt(r,10),v=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,V=(c?c.dayNames:null)||this._defaults.dayNames,L=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,H=(c?c.monthNames:null)||this._defaults.monthNames,S=-1,f=-1,d=-1,u=-1,p=!1;for(t=0;l.length>t;t++)if(p)"'"!==l.charAt(t)||z("'")?s():p=!1;else switch(l.charAt(t)){case"d":d=C("d");break;case"D":e("D",v,V);break;case"o":u=C("o");break;case"m":f=C("m");break;case"M":f=e("M",L,H);break;case"y":S=C("y");break;case"@":S=(a=new Date(C("@"))).getFullYear(),f=a.getMonth()+1,d=a.getDate();break;case"!":S=(a=new Date((C("!")-this._ticksTo1970)/1e4)).getFullYear(),f=a.getMonth()+1,d=a.getDate();break;case"'":z("'")?s():p=!0;break;default:s()}if(h.length>n&&(i=h.substr(n),!/^\s+/.test(i)))throw"Extra/unparsed characters found in date: "+i;if(-1===S?S=(new Date).getFullYear():S<100&&(S+=(new Date).getFullYear()-(new Date).getFullYear()%100+(S<=o?0:-100)),-1<u)for(f=1,d=u;!(d<=(M=this._getDaysInMonth(S,f-1)));)f++,d-=M;if((a=this._daylightSavingAdjust(new Date(S,f-1,d))).getFullYear()!==S||a.getMonth()+1!==f||a.getDate()!==d)throw"Invalid date";return a},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(l,c,C){if(!c)return"";function s(c){var C=l.length>z+1&&l.charAt(z+1)===c;return C&&z++,C}function e(c,C,l){var e=""+C;if(s(c))for(;l>e.length;)e="0"+e;return e}function h(c,C,l,e){return s(c)?e[C]:l[C]}var z,t=(C?C.dayNamesShort:null)||this._defaults.dayNamesShort,M=(C?C.dayNames:null)||this._defaults.dayNames,i=(C?C.monthNamesShort:null)||this._defaults.monthNamesShort,a=(C?C.monthNames:null)||this._defaults.monthNames,n="",r=!1;if(c)for(z=0;l.length>z;z++)if(r)"'"!==l.charAt(z)||s("'")?n+=l.charAt(z):r=!1;else switch(l.charAt(z)){case"d":n+=e("d",c.getDate(),2);break;case"D":n+=h("D",c.getDay(),t,M);break;case"o":n+=e("o",Math.round((new Date(c.getFullYear(),c.getMonth(),c.getDate()).getTime()-new Date(c.getFullYear(),0,0).getTime())/864e5),3);break;case"m":n+=e("m",c.getMonth()+1,2);break;case"M":n+=h("M",c.getMonth(),i,a);break;case"y":n+=s("y")?c.getFullYear():(c.getFullYear()%100<10?"0":"")+c.getFullYear()%100;break;case"@":n+=c.getTime();break;case"!":n+=1e4*c.getTime()+this._ticksTo1970;break;case"'":s("'")?n+="'":r=!0;break;default:n+=l.charAt(z)}return n},_possibleChars:function(l){function c(c){var C=l.length>e+1&&l.charAt(e+1)===c;return C&&e++,C}var e,C="",s=!1;for(e=0;l.length>e;e++)if(s)"'"!==l.charAt(e)||c("'")?C+=l.charAt(e):s=!1;else switch(l.charAt(e)){case"d":case"m":case"y":case"@":C+="0123456789";break;case"D":case"M":return null;case"'":c("'")?C+="'":s=!0;break;default:C+=l.charAt(e)}return C},_get:function(c,C){return void 0!==c.settings[C]?c.settings[C]:this._defaults[C]},_setDateFromField:function(c,C){if(c.input.val()!==c.lastVal){var l=this._get(c,"dateFormat"),e=c.lastVal=c.input?c.input.val():null,s=this._getDefaultDate(c),h=s,z=this._getFormatConfig(c);try{h=this.parseDate(l,e,z)||s}catch(c){e=C?"":e}c.selectedDay=h.getDate(),c.drawMonth=c.selectedMonth=h.getMonth(),c.drawYear=c.selectedYear=h.getFullYear(),c.currentDay=e?h.getDate():0,c.currentMonth=e?h.getMonth():0,c.currentYear=e?h.getFullYear():0,this._adjustInstDate(c)}},_getDefaultDate:function(c){return this._restrictMinMax(c,this._determineDate(c,this._get(c,"defaultDate"),new Date))},_determineDate:function(t,c,C){var l,e,s=null==c||""===c?C:"string"==typeof c?function(c){try{return m.datepicker.parseDate(m.datepicker._get(t,"dateFormat"),c,m.datepicker._getFormatConfig(t))}catch(c){}for(var C=(c.toLowerCase().match(/^c/)?m.datepicker._getDate(t):null)||new Date,l=C.getFullYear(),e=C.getMonth(),s=C.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,z=h.exec(c);z;){switch(z[2]||"d"){case"d":case"D":s+=parseInt(z[1],10);break;case"w":case"W":s+=7*parseInt(z[1],10);break;case"m":case"M":e+=parseInt(z[1],10),s=Math.min(s,m.datepicker._getDaysInMonth(l,e));break;case"y":case"Y":l+=parseInt(z[1],10),s=Math.min(s,m.datepicker._getDaysInMonth(l,e))}z=h.exec(c)}return new Date(l,e,s)}(c):"number"==typeof c?isNaN(c)?C:(l=c,(e=new Date).setDate(e.getDate()+l),e):new Date(c.getTime());return(s=s&&"Invalid Date"==""+s?C:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(c){return c?(c.setHours(12<c.getHours()?c.getHours()+2:0),c):null},_setDate:function(c,C,l){var e=!C,s=c.selectedMonth,h=c.selectedYear,z=this._restrictMinMax(c,this._determineDate(c,C,new Date));c.selectedDay=c.currentDay=z.getDate(),c.drawMonth=c.selectedMonth=c.currentMonth=z.getMonth(),c.drawYear=c.selectedYear=c.currentYear=z.getFullYear(),s===c.selectedMonth&&h===c.selectedYear||l||this._notifyChange(c),this._adjustInstDate(c),c.input&&c.input.val(e?"":this._formatDate(c))},_getDate:function(c){return!c.currentYear||c.input&&""===c.input.val()?null:this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay))},_attachHandlers:function(c){var C=this._get(c,"stepMonths"),l="#"+c.id.replace(/\\\\/g,"\\");c.dpDiv.find("[data-handler]").map(function(){var c={prev:function(){m.datepicker._adjustDate(l,-C,"M")},next:function(){m.datepicker._adjustDate(l,+C,"M")},hide:function(){m.datepicker._hideDatepicker()},today:function(){m.datepicker._gotoToday(l)},selectDay:function(){return m.datepicker._selectDay(l,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return m.datepicker._selectMonthYear(l,this,"M"),!1},selectYear:function(){return m.datepicker._selectMonthYear(l,this,"Y"),!1}};m(this).on(this.getAttribute("data-event"),c[this.getAttribute("data-handler")])})},_generateHTML:function(c){var C,l,e,s,h,z,t,M,i,a,n,r,o,v,V,L,H,S,f,d,u,p,m,g,b,w,y,k,_,x,T,q,D,E,I,A,P,O,N,j=new Date,$=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate())),W=this._get(c,"isRTL"),R=this._get(c,"showButtonPanel"),F=this._get(c,"hideIfNoPrevNext"),B=this._get(c,"navigationAsDateFormat"),Y=this._getNumberOfMonths(c),U=this._get(c,"showCurrentAtPos"),X=this._get(c,"stepMonths"),K=1!==Y[0]||1!==Y[1],Q=this._daylightSavingAdjust(c.currentDay?new Date(c.currentYear,c.currentMonth,c.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(c,"min"),Z=this._getMinMaxDate(c,"max"),J=c.drawMonth-U,cc=c.drawYear;if(J<0&&(J+=12,cc--),Z)for(C=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-Y[0]*Y[1]+1,Z.getDate())),C=G&&C<G?G:C;this._daylightSavingAdjust(new Date(cc,J,1))>C;)--J<0&&(J=11,cc--);for(c.drawMonth=J,c.drawYear=cc,l=this._get(c,"prevText"),l=B?this.formatDate(l,this._daylightSavingAdjust(new Date(cc,J-X,1)),this._getFormatConfig(c)):l,e=this._canAdjustMonth(c,-1,cc,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+l+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+l+"</span></a>":F?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+l+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+l+"</span></a>",s=this._get(c,"nextText"),s=B?this.formatDate(s,this._daylightSavingAdjust(new Date(cc,J+X,1)),this._getFormatConfig(c)):s,h=this._canAdjustMonth(c,1,cc,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+s+"</span></a>":F?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+s+"</span></a>",z=this._get(c,"currentText"),t=this._get(c,"gotoCurrent")&&c.currentDay?Q:$,z=B?this.formatDate(z,t,this._getFormatConfig(c)):z,M=c.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(c,"closeText")+"</button>",i=R?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(W?M:"")+(this._isInRange(c,t)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+z+"</button>":"")+(W?"":M)+"</div>":"",a=parseInt(this._get(c,"firstDay"),10),a=isNaN(a)?0:a,n=this._get(c,"showWeek"),r=this._get(c,"dayNames"),o=this._get(c,"dayNamesMin"),v=this._get(c,"monthNames"),V=this._get(c,"monthNamesShort"),L=this._get(c,"beforeShowDay"),H=this._get(c,"showOtherMonths"),S=this._get(c,"selectOtherMonths"),f=this._getDefaultDate(c),d="",p=0;Y[0]>p;p++){for(m="",this.maxRows=4,g=0;Y[1]>g;g++){if(b=this._daylightSavingAdjust(new Date(cc,J,c.selectedDay)),w=" ui-corner-all",y="",K){if(y+="<div class='ui-datepicker-group",1<Y[1])switch(g){case 0:y+=" ui-datepicker-group-first",w=" ui-corner-"+(W?"right":"left");break;case Y[1]-1:y+=" ui-datepicker-group-last",w=" ui-corner-"+(W?"left":"right");break;default:y+=" ui-datepicker-group-middle",w=""}y+="'>"}for(y+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+w+"'>"+(/all|left/.test(w)&&0===p?W?h:e:"")+(/all|right/.test(w)&&0===p?W?e:h:"")+this._generateMonthYearHeader(c,J,cc,G,Z,0<p||0<g,v,V)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=n?"<th class='ui-datepicker-week-col'>"+this._get(c,"weekHeader")+"</th>":"",u=0;u<7;u++)k+="<th scope='col'"+(5<=(u+a+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+r[_=(u+a)%7]+"'>"+o[_]+"</span></th>";for(y+=k+"</tr></thead><tbody>",x=this._getDaysInMonth(cc,J),cc===c.selectedYear&&J===c.selectedMonth&&(c.selectedDay=Math.min(c.selectedDay,x)),T=(this._getFirstDayOfMonth(cc,J)-a+7)%7,q=Math.ceil((T+x)/7),D=K&&this.maxRows>q?this.maxRows:q,this.maxRows=D,E=this._daylightSavingAdjust(new Date(cc,J,1-T)),I=0;I<D;I++){for(y+="<tr>",A=n?"<td class='ui-datepicker-week-col'>"+this._get(c,"calculateWeek")(E)+"</td>":"",u=0;u<7;u++)P=L?L.apply(c.input?c.input[0]:null,[E]):[!0,""],N=(O=E.getMonth()!==J)&&!S||!P[0]||G&&E<G||Z&&Z<E,A+="<td class='"+(5<=(u+a+6)%7?" ui-datepicker-week-end":"")+(O?" ui-datepicker-other-month":"")+(E.getTime()===b.getTime()&&J===c.selectedMonth&&c._keyEvent||f.getTime()===E.getTime()&&f.getTime()===b.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(O&&!H?"":" "+P[1]+(E.getTime()===Q.getTime()?" "+this._currentClass:"")+(E.getTime()===$.getTime()?" ui-datepicker-today":""))+"'"+(O&&!H||!P[2]?"":" title='"+P[2].replace(/'/g,"&#39;")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+E.getMonth()+"' data-year='"+E.getFullYear()+"'")+">"+(O&&!H?"&#xa0;":N?"<span class='ui-state-default'>"+E.getDate()+"</span>":"<a class='ui-state-default"+(E.getTime()===$.getTime()?" ui-state-highlight":"")+(E.getTime()===Q.getTime()?" ui-state-active":"")+(O?" ui-priority-secondary":"")+"' href='#'>"+E.getDate()+"</a>")+"</td>",E.setDate(E.getDate()+1),E=this._daylightSavingAdjust(E);y+=A+"</tr>"}11<++J&&(J=0,cc++),m+=y+="</tbody></table>"+(K?"</div>"+(0<Y[0]&&g===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}d+=m}return d+=i,c._keyEvent=!1,d},_generateMonthYearHeader:function(c,C,l,e,s,h,z,t){var M,i,a,n,r,o,v,V,L=this._get(c,"changeMonth"),H=this._get(c,"changeYear"),S=this._get(c,"showMonthAfterYear"),f="<div class='ui-datepicker-title'>",d="";if(h||!L)d+="<span class='ui-datepicker-month'>"+z[C]+"</span>";else{for(M=e&&e.getFullYear()===l,i=s&&s.getFullYear()===l,d+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",a=0;a<12;a++)(!M||a>=e.getMonth())&&(!i||s.getMonth()>=a)&&(d+="<option value='"+a+"'"+(a===C?" selected='selected'":"")+">"+t[a]+"</option>");d+="</select>"}if(S||(f+=d+(!h&&L&&H?"":"&#xa0;")),!c.yearshtml)if(c.yearshtml="",h||!H)f+="<span class='ui-datepicker-year'>"+l+"</span>";else{for(n=this._get(c,"yearRange").split(":"),r=(new Date).getFullYear(),v=(o=function(c){var C=c.match(/c[+\-].*/)?l+parseInt(c.substring(1),10):c.match(/[+\-].*/)?r+parseInt(c,10):parseInt(c,10);return isNaN(C)?r:C})(n[0]),V=Math.max(v,o(n[1]||"")),v=e?Math.max(v,e.getFullYear()):v,V=s?Math.min(V,s.getFullYear()):V,c.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";v<=V;v++)c.yearshtml+="<option value='"+v+"'"+(v===l?" selected='selected'":"")+">"+v+"</option>";c.yearshtml+="</select>",f+=c.yearshtml,c.yearshtml=null}return f+=this._get(c,"yearSuffix"),S&&(f+=(!h&&L&&H?"":"&#xa0;")+d),f+"</div>"},_adjustInstDate:function(c,C,l){var e=c.selectedYear+("Y"===l?C:0),s=c.selectedMonth+("M"===l?C:0),h=Math.min(c.selectedDay,this._getDaysInMonth(e,s))+("D"===l?C:0),z=this._restrictMinMax(c,this._daylightSavingAdjust(new Date(e,s,h)));c.selectedDay=z.getDate(),c.drawMonth=c.selectedMonth=z.getMonth(),c.drawYear=c.selectedYear=z.getFullYear(),"M"!==l&&"Y"!==l||this._notifyChange(c)},_restrictMinMax:function(c,C){var l=this._getMinMaxDate(c,"min"),e=this._getMinMaxDate(c,"max"),s=l&&C<l?l:C;return e&&e<s?e:s},_notifyChange:function(c){var C=this._get(c,"onChangeMonthYear");C&&C.apply(c.input?c.input[0]:null,[c.selectedYear,c.selectedMonth+1,c])},_getNumberOfMonths:function(c){var C=this._get(c,"numberOfMonths");return null==C?[1,1]:"number"==typeof C?[1,C]:C},_getMinMaxDate:function(c,C){return this._determineDate(c,this._get(c,C+"Date"),null)},_getDaysInMonth:function(c,C){return 32-this._daylightSavingAdjust(new Date(c,C,32)).getDate()},_getFirstDayOfMonth:function(c,C){return new Date(c,C,1).getDay()},_canAdjustMonth:function(c,C,l,e){var s=this._getNumberOfMonths(c),h=this._daylightSavingAdjust(new Date(l,e+(C<0?C:s[0]*s[1]),1));return C<0&&h.setDate(this._getDaysInMonth(h.getFullYear(),h.getMonth())),this._isInRange(c,h)},_isInRange:function(c,C){var l,e,s=this._getMinMaxDate(c,"min"),h=this._getMinMaxDate(c,"max"),z=null,t=null,M=this._get(c,"yearRange");return M&&(l=M.split(":"),e=(new Date).getFullYear(),z=parseInt(l[0],10),t=parseInt(l[1],10),l[0].match(/[+\-].*/)&&(z+=e),l[1].match(/[+\-].*/)&&(t+=e)),(!s||C.getTime()>=s.getTime())&&(!h||C.getTime()<=h.getTime())&&(!z||C.getFullYear()>=z)&&(!t||t>=C.getFullYear())},_getFormatConfig:function(c){var C=this._get(c,"shortYearCutoff");return{shortYearCutoff:C="string"!=typeof C?C:(new Date).getFullYear()%100+parseInt(C,10),dayNamesShort:this._get(c,"dayNamesShort"),dayNames:this._get(c,"dayNames"),monthNamesShort:this._get(c,"monthNamesShort"),monthNames:this._get(c,"monthNames")}},_formatDate:function(c,C,l,e){C||(c.currentDay=c.selectedDay,c.currentMonth=c.selectedMonth,c.currentYear=c.selectedYear);var s=C?"object"==typeof C?C:this._daylightSavingAdjust(new Date(e,l,C)):this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay));return this.formatDate(this._get(c,"dateFormat"),s,this._getFormatConfig(c))}}),m.fn.datepicker=function(c){if(!this.length)return this;m.datepicker.initialized||(m(document).on("mousedown",m.datepicker._checkExternalClick),m.datepicker.initialized=!0),0===m("#"+m.datepicker._mainDivId).length&&m("body").append(m.datepicker.dpDiv);var C=Array.prototype.slice.call(arguments,1);return"string"!=typeof c||"isDisabled"!==c&&"getDate"!==c&&"widget"!==c?"option"===c&&2===arguments.length&&"string"==typeof arguments[1]?m.datepicker["_"+c+"Datepicker"].apply(m.datepicker,[this[0]].concat(C)):this.each(function(){"string"==typeof c?m.datepicker["_"+c+"Datepicker"].apply(m.datepicker,[this].concat(C)):m.datepicker._attachDatepicker(this,c)}):m.datepicker["_"+c+"Datepicker"].apply(m.datepicker,[this[0]].concat(C))},m.datepicker=new c,m.datepicker.initialized=!1,m.datepicker.uuid=(new Date).getTime(),m.datepicker.version="1.12.1",m.datepicker,m.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",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(c){var C=m(this).css(c).offset().top;C<0&&m(this).css("top",c.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"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&m.fn.draggable&&this._makeDraggable(),this.options.resizable&&m.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var c=this.options.appendTo;return c&&(c.jquery||c.nodeType)?m(c):this.document.find(c||"body").eq(0)},_destroy:function(){var c,C=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(c=C.parent.children().eq(C.index)).length&&c[0]!==this.element[0]?c.before(this.element):C.parent.append(this.element)},widget:function(){return this.uiDialog},disable:m.noop,enable:m.noop,close:function(c){var C=this;this._isOpen&&!1!==this._trigger("beforeClose",c)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||m.ui.safeBlur(m.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){C._trigger("close",c)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(c,C){var l=!1,e=this.uiDialog.siblings(".ui-front:visible").map(function(){return+m(this).css("z-index")}).get(),s=Math.max.apply(null,e);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),l=!0),l&&!C&&this._trigger("focus",c),l},open:function(){var c=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=m(m.ui.safeActiveElement(this.document[0])),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(){c._focusTabbable(),c._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var c=this._focusedElement;(c=c||this.element.find("[autofocus]")).length||(c=this.element.find(":tabbable")),c.length||(c=this.uiDialogButtonPane.find(":tabbable")),c.length||(c=this.uiDialogTitlebarClose.filter(":tabbable")),c.length||(c=this.uiDialog),c.eq(0).trigger("focus")},_keepFocus:function(c){function C(){var c=m.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===c||m.contains(this.uiDialog[0],c)||this._focusTabbable()}c.preventDefault(),C.call(this),this._delay(C)},_createWrapper:function(){this.uiDialog=m("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(c){if(this.options.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===m.ui.keyCode.ESCAPE)return c.preventDefault(),void this.close(c);if(c.keyCode===m.ui.keyCode.TAB&&!c.isDefaultPrevented()){var C=this.uiDialog.find(":tabbable"),l=C.filter(":first"),e=C.filter(":last");c.target!==e[0]&&c.target!==this.uiDialog[0]||c.shiftKey?c.target!==l[0]&&c.target!==this.uiDialog[0]||!c.shiftKey||(this._delay(function(){e.trigger("focus")}),c.preventDefault()):(this._delay(function(){l.trigger("focus")}),c.preventDefault())}},mousedown:function(c){this._moveToTop(c)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var c;this.uiDialogTitlebar=m("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(c){m(c.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=m("<button type='button'></button>").button({label:m("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(c){c.preventDefault(),this.close(c)}}),c=m("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(c,"ui-dialog-title"),this._title(c),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":c.attr("id")})},_title:function(c){this.options.title?c.text(this.options.title):c.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=m("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=m("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),m.isEmptyObject(c)||m.isArray(c)&&!c.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(m.each(c,function(c,C){var l,e;C=m.isFunction(C)?{click:C,text:c}:C,C=m.extend({type:"button"},C),l=C.click,e={icon:C.icon,iconPosition:C.iconPosition,showLabel:C.showLabel,icons:C.icons,text:C.text},delete C.click,delete C.icon,delete C.iconPosition,delete C.showLabel,delete C.icons,"boolean"==typeof C.text&&delete C.text,m("<button></button>",C).button(e).appendTo(s.uiButtonSet).on("click",function(){l.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function s(c){return{position:c.position,offset:c.offset}}var h=this,z=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,C){h._addClass(m(this),"ui-dialog-dragging"),h._blockFrames(),h._trigger("dragStart",c,s(C))},drag:function(c,C){h._trigger("drag",c,s(C))},stop:function(c,C){var l=C.offset.left-h.document.scrollLeft(),e=C.offset.top-h.document.scrollTop();z.position={my:"left top",at:"left"+(0<=l?"+":"")+l+" top"+(0<=e?"+":"")+e,of:h.window},h._removeClass(m(this),"ui-dialog-dragging"),h._unblockFrames(),h._trigger("dragStop",c,s(C))}})},_makeResizable:function(){function h(c){return{originalPosition:c.originalPosition,originalSize:c.originalSize,position:c.position,size:c.size}}var z=this,t=this.options,c=t.resizable,C=this.uiDialog.css("position"),l="string"==typeof c?c:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:t.maxWidth,maxHeight:t.maxHeight,minWidth:t.minWidth,minHeight:this._minHeight(),handles:l,start:function(c,C){z._addClass(m(this),"ui-dialog-resizing"),z._blockFrames(),z._trigger("resizeStart",c,h(C))},resize:function(c,C){z._trigger("resize",c,h(C))},stop:function(c,C){var l=z.uiDialog.offset(),e=l.left-z.document.scrollLeft(),s=l.top-z.document.scrollTop();t.height=z.uiDialog.height(),t.width=z.uiDialog.width(),t.position={my:"left top",at:"left"+(0<=e?"+":"")+e+" top"+(0<=s?"+":"")+s,of:z.window},z._removeClass(m(this),"ui-dialog-resizing"),z._unblockFrames(),z._trigger("resizeStop",c,h(C))}}).css("position",C)},_trackFocus:function(){this._on(this.widget(),{focusin:function(c){this._makeFocusTarget(),this._focusedElement=m(c.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var c=this._trackingInstances(),C=m.inArray(this,c);-1!==C&&c.splice(C,1)},_trackingInstances:function(){var c=this.document.data("ui-dialog-instances");return c||(c=[],this.document.data("ui-dialog-instances",c)),c},_minHeight:function(){var c=this.options;return"auto"===c.height?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(){var c=this.uiDialog.is(":visible");c||this.uiDialog.show(),this.uiDialog.position(this.options.position),c||this.uiDialog.hide()},_setOptions:function(c){var l=this,e=!1,s={};m.each(c,function(c,C){l._setOption(c,C),c in l.sizeRelatedOptions&&(e=!0),c in l.resizableRelatedOptions&&(s[c]=C)}),e&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(c,C){var l,e,s=this.uiDialog;"disabled"!==c&&(this._super(c,C),"appendTo"===c&&this.uiDialog.appendTo(this._appendTo()),"buttons"===c&&this._createButtons(),"closeText"===c&&this.uiDialogTitlebarClose.button({label:m("<a>").text(""+this.options.closeText).html()}),"draggable"===c&&((l=s.is(":data(ui-draggable)"))&&!C&&s.draggable("destroy"),!l&&C&&this._makeDraggable()),"position"===c&&this._position(),"resizable"===c&&((e=s.is(":data(ui-resizable)"))&&!C&&s.resizable("destroy"),e&&"string"==typeof C&&s.resizable("option","handles",C),e||!1===C||this._makeResizable()),"title"===c&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var c,C,l,e=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),e.minWidth>e.width&&(e.width=e.minWidth),c=this.uiDialog.css({height:"auto",width:e.width}).outerHeight(),C=Math.max(0,e.minHeight-c),l="number"==typeof e.maxHeight?Math.max(0,e.maxHeight-c):"none","auto"===e.height?this.element.css({minHeight:C,maxHeight:l,height:"auto"}):this.element.height(Math.max(0,e.height-c)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var c=m(this);return m("<div>").css({position:"absolute",width:c.outerWidth(),height:c.outerHeight()}).appendTo(c.parent()).offset(c.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(c){return!!m(c.target).closest(".ui-dialog").length||!!m(c.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var C=!0;this._delay(function(){C=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(c){C||this._allowInteraction(c)||(c.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=m("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),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 c=this.document.data("ui-dialog-overlays")-1;c?this.document.data("ui-dialog-overlays",c):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==m.uiBackCompat&&m.widget("ui.dialog",m.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(c,C){"dialogClass"===c&&this.uiDialog.removeClass(this.options.dialogClass).addClass(C),this._superApply(arguments)}}),m.ui.dialog,m.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=m("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(c){return void 0===c?this.options.value:(this.options.value=this._constrainedValue(c),void this._refreshValue())},_constrainedValue:function(c){return void 0===c&&(c=this.options.value),this.indeterminate=!1===c,"number"!=typeof c&&(c=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,c))},_setOptions:function(c){var C=c.value;delete c.value,this._super(c),this.options.value=this._constrainedValue(C),this._refreshValue()},_setOption:function(c,C){"max"===c&&(C=Math.max(this.min,C)),this._super(c,C)},_setOptionDisabled:function(c){this._super(c),this.element.attr("aria-disabled",c),this._toggleClass(null,"ui-state-disabled",!!c)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var c=this.options.value,C=this._percentage();this.valueDiv.toggle(this.indeterminate||c>this.min).width(C.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,c===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=m("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":c}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==c&&(this.oldValue=c,this._trigger("change")),c===this.options.max&&this._trigger("complete")}}),m.widget("ui.selectmenu",[m.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var c=this.element.uniqueId().attr("id");this.ids={element:c,button:c+"-button",menu:c+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=m()},_drawButton:function(){var c,C=this,l=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(c){this.button.focus(),c.preventDefault()}}),this.element.hide(),this.button=m("<span>",{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",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),c=m("<span>").appendTo(this.button),this._addClass(c,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(l).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){C._rendered||C._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=m("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=m("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(c,C){c.preventDefault(),e._setSelection(),e._select(C.item.data("ui-selectmenu-item"),c)},focus:function(c,C){var l=C.item.data("ui-selectmenu-item");null!=e.focusIndex&&l.index!==e.focusIndex&&(e._trigger("focus",c,{item:l}),e.isOpen||e._select(l,c)),e.focusIndex=l.index,e.button.attr("aria-activedescendant",e.menuItems.eq(l.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var c,C=this.element.find("option");this.menu.empty(),this._parseOptions(C),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,C.length&&(c=this._getSelectedItem(),this.menuInstance.focus(null,c),this._setAria(c.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(c){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",c)))},_position:function(){this.menuWrap.position(m.extend({of:this.button},this.options.position))},close:function(c){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",c))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(c){var C=m("<span>");return this._setText(C,c.label),this._addClass(C,"ui-selectmenu-text"),C},_renderMenu:function(e,c){var s=this,h="";m.each(c,function(c,C){var l;C.optgroup!==h&&(l=m("<li>",{text:C.optgroup}),s._addClass(l,"ui-selectmenu-optgroup","ui-menu-divider"+(C.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),l.appendTo(e),h=C.optgroup),s._renderItemData(e,C)})},_renderItemData:function(c,C){return this._renderItem(c,C).data("ui-selectmenu-item",C)},_renderItem:function(c,C){var l=m("<li>"),e=m("<div>",{title:C.element.attr("title")});return C.disabled&&this._addClass(l,null,"ui-state-disabled"),this._setText(e,C.label),l.append(e).appendTo(c)},_setText:function(c,C){C?c.text(C):c.html("&#160;")},_move:function(c,C){var l,e,s=".ui-menu-item";this.isOpen?l=this.menuItems.eq(this.focusIndex).parent("li"):(l=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(e="first"===c||"last"===c?l["first"===c?"prevAll":"nextAll"](s).eq(-1):l[c+"All"](s).eq(0)).length&&this.menuInstance.focus(C,e)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(c){this[this.isOpen?"close":"open"](c)},_setSelection:function(){var c;this.range&&(window.getSelection?((c=window.getSelection()).removeAllRanges(),c.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(c){this.isOpen&&(m(c.target).closest(".ui-selectmenu-menu, #"+m.ui.escapeSelector(this.ids.button)).length||this.close(c))}},_buttonEvents:{mousedown:function(){var c;window.getSelection?(c=window.getSelection()).rangeCount&&(this.range=c.getRangeAt(0)):this.range=document.selection.createRange()},click:function(c){this._setSelection(),this._toggle(c)},keydown:function(c){var C=!0;switch(c.keyCode){case m.ui.keyCode.TAB:case m.ui.keyCode.ESCAPE:this.close(c),C=!1;break;case m.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(c);break;case m.ui.keyCode.UP:c.altKey?this._toggle(c):this._move("prev",c);break;case m.ui.keyCode.DOWN:c.altKey?this._toggle(c):this._move("next",c);break;case m.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(c):this._toggle(c);break;case m.ui.keyCode.LEFT:this._move("prev",c);break;case m.ui.keyCode.RIGHT:this._move("next",c);break;case m.ui.keyCode.HOME:case m.ui.keyCode.PAGE_UP:this._move("first",c);break;case m.ui.keyCode.END:case m.ui.keyCode.PAGE_DOWN:this._move("last",c);break;default:this.menu.trigger(c),C=!1}C&&c.preventDefault()}},_selectFocusedItem:function(c){var C=this.menuItems.eq(this.focusIndex).parent("li");C.hasClass("ui-state-disabled")||this._select(C.data("ui-selectmenu-item"),c)},_select:function(c,C){var l=this.element[0].selectedIndex;this.element[0].selectedIndex=c.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(c)),this._setAria(c),this._trigger("select",C,{item:c}),c.index!==l&&this._trigger("change",C,{item:c}),this.close(C)},_setAria:function(c){var C=this.menuItems.eq(c.index).attr("id");this.button.attr({"aria-labelledby":C,"aria-activedescendant":C}),this.menu.attr("aria-activedescendant",C)},_setOption:function(c,C){if("icons"===c){var l=this.button.find("span.ui-icon");this._removeClass(l,null,this.options.icons.button)._addClass(l,null,C.button)}this._super(c,C),"appendTo"===c&&this.menuWrap.appendTo(this._appendTo()),"width"===c&&this._resizeButton()},_setOptionDisabled:function(c){this._super(c),this.menuInstance.option("disabled",c),this.button.attr("aria-disabled",c),this._toggleClass(this.button,null,"ui-state-disabled",c),this.element.prop("disabled",c),c?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var c=this.options.appendTo;return(c=c&&(c.jquery||c.nodeType?m(c):this.document.find(c).eq(0)))&&c[0]||(c=this.element.closest(".ui-front, dialog")),c.length||(c=this.document[0].body),c},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var c=this.options.width;return!1===c?void this.button.css("width",""):(null===c&&(c=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(c))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var c=this._super();return c.disabled=this.element.prop("disabled"),c},_parseOptions:function(c){var l=this,e=[];c.each(function(c,C){e.push(l._parseOption(m(C),c))}),this.items=e},_parseOption:function(c,C){var l=c.parent("optgroup");return{element:c,index:C,value:c.val(),label:c.text(),optgroup:l.attr("label")||"",disabled:l.prop("disabled")||c.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),m.widget("ui.slider",m.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},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._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var c,C,l=this.options,e=this.element.find(".ui-slider-handle"),s=[];for(C=l.values&&l.values.length||1,e.length>C&&(e.slice(C).remove(),e=e.slice(0,C)),c=e.length;c<C;c++)s.push("<span tabindex='0'></span>");this.handles=e.add(m(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(c){m(this).data("ui-slider-handle-index",c).attr("tabIndex",0)})},_createRange:function(){var c=this.options;c.range?(!0===c.range&&(c.values?c.values.length&&2!==c.values.length?c.values=[c.values[0],c.values[0]]:m.isArray(c.values)&&(c.values=c.values.slice(0)):c.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=m("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==c.range&&"max"!==c.range||this._addClass(this.range,"ui-slider-range-"+c.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._mouseDestroy()},_mouseCapture:function(c){var C,l,e,s,h,z,t,M=this,i=this.options;return!i.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),C={x:c.pageX,y:c.pageY},l=this._normValueFromMouse(C),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(c){var C=Math.abs(l-M.values(c));(C<e||e===C&&(c===M._lastChangedValue||M.values(c)===i.min))&&(e=C,s=m(this),h=c)}),!1!==this._start(c,h)&&(this._mouseSliding=!0,this._handleIndex=h,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),z=s.offset(),t=!m(c.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=t?{left:0,top:0}:{left:c.pageX-z.left-s.width()/2,top:c.pageY-z.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(c,h,l),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(c){var C={x:c.pageX,y:c.pageY},l=this._normValueFromMouse(C);return this._slide(c,this._handleIndex,l),!1},_mouseStop:function(c){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(c,this._handleIndex),this._change(c,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(c){var C,l,e,s;return 1<(l=("horizontal"===this.orientation?(C=this.elementSize.width,c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(C=this.elementSize.height,c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/C)&&(l=1),l<0&&(l=0),"vertical"===this.orientation&&(l=1-l),e=this._valueMax()-this._valueMin(),s=this._valueMin()+l*e,this._trimAlignValue(s)},_uiHash:function(c,C,l){var e={handle:this.handles[c],handleIndex:c,value:void 0!==C?C:this.value()};return this._hasMultipleValues()&&(e.value=void 0!==C?C:this.values(c),e.values=l||this.values()),e},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(c,C){return this._trigger("start",c,this._uiHash(C))},_slide:function(c,C,l){var e,s=this.value(),h=this.values();this._hasMultipleValues()&&(e=this.values(C?0:1),s=this.values(C),2===this.options.values.length&&!0===this.options.range&&(l=0===C?Math.min(e,l):Math.max(e,l)),h[C]=l),l===s||!1!==this._trigger("slide",c,this._uiHash(C,l,h))&&(this._hasMultipleValues()?this.values(C,l):this.value(l))},_stop:function(c,C){this._trigger("stop",c,this._uiHash(C))},_change:function(c,C){this._keySliding||this._mouseSliding||(this._lastChangedValue=C,this._trigger("change",c,this._uiHash(C)))},value:function(c){return arguments.length?(this.options.value=this._trimAlignValue(c),this._refreshValue(),void this._change(null,0)):this._value()},values:function(c,C){var l,e,s;if(1<arguments.length)return this.options.values[c]=this._trimAlignValue(C),this._refreshValue(),void this._change(null,c);if(!arguments.length)return this._values();if(!m.isArray(c))return this._hasMultipleValues()?this._values(c):this.value();for(l=this.options.values,e=c,s=0;l.length>s;s+=1)l[s]=this._trimAlignValue(e[s]),this._change(null,s);this._refreshValue()},_setOption:function(c,C){var l,e=0;switch("range"===c&&!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)),m.isArray(this.options.values)&&(e=this.options.values.length),this._super(c,C),c){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(C),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(),l=e-1;0<=l;l--)this._change(null,l);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}},_setOptionDisabled:function(c){this._super(c),this._toggleClass(null,"ui-state-disabled",!!c)},_value:function(){var c=this.options.value;return this._trimAlignValue(c)},_values:function(c){var C,l,e;if(arguments.length)return C=this.options.values[c],this._trimAlignValue(C);if(this._hasMultipleValues()){for(l=this.options.values.slice(),e=0;l.length>e;e+=1)l[e]=this._trimAlignValue(l[e]);return l}return[]},_trimAlignValue:function(c){if(this._valueMin()>=c)return this._valueMin();if(c>=this._valueMax())return this._valueMax();var C=0<this.options.step?this.options.step:1,l=(c-this._valueMin())%C,e=c-l;return 2*Math.abs(l)>=C&&(e+=0<l?C:-C),parseFloat(e.toFixed(5))},_calculateNewMax:function(){var c=this.options.max,C=this._valueMin(),l=this.options.step;(c=Math.round((c-C)/l)*l+C)>this.options.max&&(c-=l),this.max=parseFloat(c.toFixed(this._precision()))},_precision:function(){var c=this._precisionOf(this.options.step);return null!==this.options.min&&(c=Math.max(c,this._precisionOf(this.options.min))),c},_precisionOf:function(c){var C=""+c,l=C.indexOf(".");return-1===l?0:C.length-l-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(c){"vertical"===c&&this.range.css({width:"",left:""}),"horizontal"===c&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var C,l,c,e,s,h=this.options.range,z=this.options,t=this,M=!this._animateOff&&z.animate,i={};this._hasMultipleValues()?this.handles.each(function(c){l=(t.values(c)-t._valueMin())/(t._valueMax()-t._valueMin())*100,i["horizontal"===t.orientation?"left":"bottom"]=l+"%",m(this).stop(1,1)[M?"animate":"css"](i,z.animate),!0===t.options.range&&("horizontal"===t.orientation?(0===c&&t.range.stop(1,1)[M?"animate":"css"]({left:l+"%"},z.animate),1===c&&t.range[M?"animate":"css"]({width:l-C+"%"},{queue:!1,duration:z.animate})):(0===c&&t.range.stop(1,1)[M?"animate":"css"]({bottom:l+"%"},z.animate),1===c&&t.range[M?"animate":"css"]({height:l-C+"%"},{queue:!1,duration:z.animate}))),C=l}):(c=this.value(),e=this._valueMin(),s=this._valueMax(),l=s!==e?(c-e)/(s-e)*100:0,i["horizontal"===this.orientation?"left":"bottom"]=l+"%",this.handle.stop(1,1)[M?"animate":"css"](i,z.animate),"min"===h&&"horizontal"===this.orientation&&this.range.stop(1,1)[M?"animate":"css"]({width:l+"%"},z.animate),"max"===h&&"horizontal"===this.orientation&&this.range.stop(1,1)[M?"animate":"css"]({width:100-l+"%"},z.animate),"min"===h&&"vertical"===this.orientation&&this.range.stop(1,1)[M?"animate":"css"]({height:l+"%"},z.animate),"max"===h&&"vertical"===this.orientation&&this.range.stop(1,1)[M?"animate":"css"]({height:100-l+"%"},z.animate))},_handleEvents:{keydown:function(c){var C,l,e,s=m(c.target).data("ui-slider-handle-index");switch(c.keyCode){case m.ui.keyCode.HOME:case m.ui.keyCode.END:case m.ui.keyCode.PAGE_UP:case m.ui.keyCode.PAGE_DOWN:case m.ui.keyCode.UP:case m.ui.keyCode.RIGHT:case m.ui.keyCode.DOWN:case m.ui.keyCode.LEFT:if(c.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(m(c.target),null,"ui-state-active"),!1===this._start(c,s)))return}switch(e=this.options.step,C=l=this._hasMultipleValues()?this.values(s):this.value(),c.keyCode){case m.ui.keyCode.HOME:l=this._valueMin();break;case m.ui.keyCode.END:l=this._valueMax();break;case m.ui.keyCode.PAGE_UP:l=this._trimAlignValue(C+(this._valueMax()-this._valueMin())/this.numPages);break;case m.ui.keyCode.PAGE_DOWN:l=this._trimAlignValue(C-(this._valueMax()-this._valueMin())/this.numPages);break;case m.ui.keyCode.UP:case m.ui.keyCode.RIGHT:if(C===this._valueMax())return;l=this._trimAlignValue(C+e);break;case m.ui.keyCode.DOWN:case m.ui.keyCode.LEFT:if(C===this._valueMin())return;l=this._trimAlignValue(C-e)}this._slide(c,s,l)},keyup:function(c){var C=m(c.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(c,C),this._change(c,C),this._removeClass(m(c.target),null,"ui-state-active"))}}}),m.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},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 e=this._super(),s=this.element;return m.each(["min","max","step"],function(c,C){var l=s.attr(C);null!=l&&l.length&&(e[C]=l)}),e},_events:{keydown:function(c){this._start(c)&&this._keydown(c)&&c.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(c){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",c)))},mousewheel:function(c,C){if(C){if(!this.spinning&&!this._start(c))return!1;this._spin((0<C?1:-1)*this.options.step,c),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(c)},100),c.preventDefault()}},"mousedown .ui-spinner-button":function(c){function C(){this.element[0]===m.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=l,this._delay(function(){this.previous=l}))}var l;l=this.element[0]===m.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),c.preventDefault(),C.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,C.call(this)}),!1!==this._start(c)&&this._repeat(null,m(c.currentTarget).hasClass("ui-spinner-up")?1:-1,c)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(c){return m(c.currentTarget).hasClass("ui-state-active")?!1!==this._start(c)&&void this._repeat(null,m(c.currentTarget).hasClass("ui-spinner-up")?1:-1,c):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(c){var C=this.options,l=m.ui.keyCode;switch(c.keyCode){case l.UP:return this._repeat(null,1,c),!0;case l.DOWN:return this._repeat(null,-1,c),!0;case l.PAGE_UP:return this._repeat(null,C.page,c),!0;case l.PAGE_DOWN:return this._repeat(null,-C.page,c),!0}return!1},_start:function(c){return!(!this.spinning&&!1===this._trigger("start",c))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(c,C,l){c=c||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,C,l)},c),this._spin(C*this.options.step,l)},_spin:function(c,C){var l=this.value()||0;this.counter||(this.counter=1),l=this._adjustValue(l+c*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",C,{value:l})||(this._value(l),this.counter++)},_increment:function(c){var C=this.options.incremental;return C?m.isFunction(C)?C(c):Math.floor(c*c*c/5e4-c*c/500+17*c/200+1):1},_precision:function(){var c=this._precisionOf(this.options.step);return null!==this.options.min&&(c=Math.max(c,this._precisionOf(this.options.min))),c},_precisionOf:function(c){var C=""+c,l=C.indexOf(".");return-1===l?0:C.length-l-1},_adjustValue:function(c){var C,l,e=this.options;return l=c-(C=null!==e.min?e.min:0),c=C+(l=Math.round(l/e.step)*e.step),c=parseFloat(c.toFixed(this._precision())),null!==e.max&&c>e.max?e.max:null!==e.min&&e.min>c?e.min:c},_stop:function(c){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",c))},_setOption:function(c,C){var l,e,s;return"culture"===c||"numberFormat"===c?(l=this._parse(this.element.val()),this.options[c]=C,void this.element.val(this._format(l))):("max"!==c&&"min"!==c&&"step"!==c||"string"!=typeof C||(C=this._parse(C)),"icons"===c&&(e=this.buttons.first().find(".ui-icon"),this._removeClass(e,null,this.options.icons.up),this._addClass(e,null,C.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,C.down)),void this._super(c,C))},_setOptionDisabled:function(c){this._super(c),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!c),this.element.prop("disabled",!!c),this.buttons.button(c?"disable":"enable")},_setOptions:C(function(c){this._super(c)}),_parse:function(c){return"string"==typeof c&&""!==c&&(c=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(c,10,this.options.culture):+c),""===c||isNaN(c)?null:c},_format:function(c){return""===c?"":window.Globalize&&this.options.numberFormat?Globalize.format(c,this.options.numberFormat,this.options.culture):c},_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 c=this.value();return null!==c&&c===this._adjustValue(c)},_value:function(c,C){var l;""===c||null!==(l=this._parse(c))&&(C||(l=this._adjustValue(l)),c=this._format(l)),this.element.val(c),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:C(function(c){this._stepUp(c)}),_stepUp:function(c){this._start()&&(this._spin((c||1)*this.options.step),this._stop())},stepDown:C(function(c){this._stepDown(c)}),_stepDown:function(c){this._start()&&(this._spin((c||1)*-this.options.step),this._stop())},pageUp:C(function(c){this._stepUp((c||1)*this.options.page)}),pageDown:C(function(c){this._stepDown((c||1)*this.options.page)}),value:function(c){return arguments.length?void C(this._value).call(this,c):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==m.uiBackCompat&&m.widget("ui.spinner",m.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),m.ui.spinner,m.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(u=/#.*$/,function(c){var C,l;C=c.href.replace(u,""),l=location.href.replace(u,"");try{C=decodeURIComponent(C)}catch(c){}try{l=decodeURIComponent(l)}catch(c){}return 1<c.hash.length&&C===l}),_create:function(){var C=this,c=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,c.collapsible),this._processTabs(),c.active=this._initialActive(),m.isArray(c.disabled)&&(c.disabled=m.unique(c.disabled.concat(m.map(this.tabs.filter(".ui-state-disabled"),function(c){return C.tabs.index(c)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(c.active):m(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var l=this.options.active,c=this.options.collapsible,e=location.hash.substring(1);return null===l&&(e&&this.tabs.each(function(c,C){return m(C).attr("aria-controls")===e?(l=c,!1):void 0}),null===l&&(l=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==l&&-1!==l||(l=!!this.tabs.length&&0)),!1!==l&&(-1===(l=this.tabs.index(this.tabs.eq(l)))&&(l=!c&&0)),!c&&!1===l&&this.anchors.length&&(l=0),l},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):m()}},_tabKeydown:function(c){var C=m(m.ui.safeActiveElement(this.document[0])).closest("li"),l=this.tabs.index(C),e=!0;if(!this._handlePageNav(c)){switch(c.keyCode){case m.ui.keyCode.RIGHT:case m.ui.keyCode.DOWN:l++;break;case m.ui.keyCode.UP:case m.ui.keyCode.LEFT:e=!1,l--;break;case m.ui.keyCode.END:l=this.anchors.length-1;break;case m.ui.keyCode.HOME:l=0;break;case m.ui.keyCode.SPACE:return c.preventDefault(),clearTimeout(this.activating),void this._activate(l);case m.ui.keyCode.ENTER:return c.preventDefault(),clearTimeout(this.activating),void this._activate(l!==this.options.active&&l);default:return}c.preventDefault(),clearTimeout(this.activating),l=this._focusNextTab(l,e),c.ctrlKey||c.metaKey||(C.attr("aria-selected","false"),this.tabs.eq(l).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",l)},this.delay))}},_panelKeydown:function(c){this._handlePageNav(c)||c.ctrlKey&&c.keyCode===m.ui.keyCode.UP&&(c.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(c){return c.altKey&&c.keyCode===m.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):c.altKey&&c.keyCode===m.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(c,C){for(var l=this.tabs.length-1;-1!==m.inArray((l<c&&(c=0),c<0&&(c=l),c),this.options.disabled);)c=C?c+1:c-1;return c},_focusNextTab:function(c,C){return c=this._findNextTab(c,C),this.tabs.eq(c).trigger("focus"),c},_setOption:function(c,C){return"active"===c?void this._activate(C):(this._super(c,C),"collapsible"===c&&(this._toggleClass("ui-tabs-collapsible",null,C),C||!1!==this.options.active||this._activate(0)),"event"===c&&this._setupEvents(C),void("heightStyle"===c&&this._setupHeightStyle(C)))},_sanitizeSelector:function(c){return c?c.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var c=this.options,C=this.tablist.children(":has(a[href])");c.disabled=m.map(C.filter(".ui-state-disabled"),function(c){return C.index(c)}),this._processTabs(),!1!==c.active&&this.anchors.length?this.active.length&&!m.contains(this.tablist[0],this.active[0])?this.tabs.length===c.disabled.length?(c.active=!1,this.active=m()):this._activate(this._findNextTab(Math.max(0,c.active-1),!1)):c.active=this.tabs.index(this.active):(c.active=!1,this.active=m()),this._refresh()},_refresh:function(){this._setOptionDisabled(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.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var M=this,c=this.tabs,C=this.anchors,l=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(c){m(this).is(".ui-state-disabled")&&c.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){m(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return m("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=m(),this.anchors.each(function(c,C){var l,e,s,h=m(C).uniqueId().attr("id"),z=m(C).closest("li"),t=z.attr("aria-controls");M._isLocal(C)?(s=(l=C.hash).substring(1),e=M.element.find(M._sanitizeSelector(l))):(l="#"+(s=z.attr("aria-controls")||m({}).uniqueId()[0].id),(e=M.element.find(l)).length||(e=M._createPanel(s)).insertAfter(M.panels[c-1]||M.tablist),e.attr("aria-live","polite")),e.length&&(M.panels=M.panels.add(e)),t&&z.data("ui-tabs-aria-controls",t),z.attr({"aria-controls":s,"aria-labelledby":h}),e.attr("aria-labelledby",h)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),c&&(this._off(c.not(this.tabs)),this._off(C.not(this.anchors)),this._off(l.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(c){return m("<div>").attr("id",c).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(c){var C,l,e;for(m.isArray(c)&&(c.length?c.length===this.anchors.length&&(c=!0):c=!1),e=0;l=this.tabs[e];e++)C=m(l),!0===c||-1!==m.inArray(e,c)?(C.attr("aria-disabled","true"),this._addClass(C,null,"ui-state-disabled")):(C.removeAttr("aria-disabled"),this._removeClass(C,null,"ui-state-disabled"));this.options.disabled=c,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===c)},_setupEvents:function(c){var l={};c&&m.each(c.split(" "),function(c,C){l[C]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(c){c.preventDefault()}}),this._on(this.anchors,l),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(c){var l,C=this.element.parent();"fill"===c?(l=C.height(),l-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var c=m(this),C=c.css("position");"absolute"!==C&&"fixed"!==C&&(l-=c.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){l-=m(this).outerHeight(!0)}),this.panels.each(function(){m(this).height(Math.max(0,l-m(this).innerHeight()+m(this).height()))}).css("overflow","auto")):"auto"===c&&(l=0,this.panels.each(function(){l=Math.max(l,m(this).height("").height())}).height(l))},_eventHandler:function(c){var C=this.options,l=this.active,e=m(c.currentTarget).closest("li"),s=e[0]===l[0],h=s&&C.collapsible,z=h?m():this._getPanelForTab(e),t=l.length?this._getPanelForTab(l):m(),M={oldTab:l,oldPanel:t,newTab:h?m():e,newPanel:z};c.preventDefault(),e.hasClass("ui-state-disabled")||e.hasClass("ui-tabs-loading")||this.running||s&&!C.collapsible||!1===this._trigger("beforeActivate",c,M)||(C.active=!h&&this.tabs.index(e),this.active=s?m():e,this.xhr&&this.xhr.abort(),t.length||z.length||m.error("jQuery UI Tabs: Mismatching fragment identifier."),z.length&&this.load(this.tabs.index(e),c),this._toggle(c,M))},_toggle:function(c,C){function l(){s.running=!1,s._trigger("activate",c,C)}function e(){s._addClass(C.newTab.closest("li"),"ui-tabs-active","ui-state-active"),h.length&&s.options.show?s._show(h,s.options.show,l):(h.show(),l())}var s=this,h=C.newPanel,z=C.oldPanel;this.running=!0,z.length&&this.options.hide?this._hide(z,this.options.hide,function(){s._removeClass(C.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),e()}):(this._removeClass(C.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),z.hide(),e()),z.attr("aria-hidden","true"),C.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),h.length&&z.length?C.oldTab.attr("tabIndex",-1):h.length&&this.tabs.filter(function(){return 0===m(this).attr("tabIndex")}).attr("tabIndex",-1),h.attr("aria-hidden","false"),C.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(c){var C,l=this._findActive(c);l[0]!==this.active[0]&&(l.length||(l=this.active),C=l.find(".ui-tabs-anchor")[0],this._eventHandler({target:C,currentTarget:C,preventDefault:m.noop}))},_findActive:function(c){return!1===c?m():this.tabs.eq(c)},_getIndex:function(c){return"string"==typeof c&&(c=this.anchors.index(this.anchors.filter("[href$='"+m.ui.escapeSelector(c)+"']"))),c},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){m.data(this,"ui-tabs-destroy")?m(this).remove():m(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var c=m(this),C=c.data("ui-tabs-aria-controls");C?c.attr("aria-controls",C).removeData("ui-tabs-aria-controls"):c.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(l){var c=this.options.disabled;!1!==c&&(c=void 0!==l&&(l=this._getIndex(l),m.isArray(c)?m.map(c,function(c){return c!==l?c:null}):m.map(this.tabs,function(c,C){return C!==l?C:null})),this._setOptionDisabled(c))},disable:function(c){var C=this.options.disabled;if(!0!==C){if(void 0===c)C=!0;else{if(c=this._getIndex(c),-1!==m.inArray(c,C))return;C=m.isArray(C)?m.merge([c],C).sort():[c]}this._setOptionDisabled(C)}},load:function(c,e){c=this._getIndex(c);function s(c,C){"abort"===C&&h.panels.stop(!1,!0),h._removeClass(l,"ui-tabs-loading"),z.removeAttr("aria-busy"),c===h.xhr&&delete h.xhr}var h=this,l=this.tabs.eq(c),C=l.find(".ui-tabs-anchor"),z=this._getPanelForTab(l),t={tab:l,panel:z};this._isLocal(C[0])||(this.xhr=m.ajax(this._ajaxSettings(C,e,t)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(l,"ui-tabs-loading"),z.attr("aria-busy","true"),this.xhr.done(function(c,C,l){setTimeout(function(){z.html(c),h._trigger("load",e,t),s(l,C)},1)}).fail(function(c,C){setTimeout(function(){s(c,C)},1)})))},_ajaxSettings:function(c,l,e){var s=this;return{url:c.attr("href").replace(/#.*$/,""),beforeSend:function(c,C){return s._trigger("beforeLoad",l,m.extend({jqXHR:c,ajaxSettings:C},e))}}},_getPanelForTab:function(c){var C=m(c).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+C))}}),!1!==m.uiBackCompat&&m.widget("ui.tabs",m.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),m.ui.tabs,m.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var c=m(this).attr("title")||"";return m("<a>").text(c).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(c,C){var l=(c.attr("aria-describedby")||"").split(/\s+/);l.push(C),c.data("ui-tooltip-id",C).attr("aria-describedby",m.trim(l.join(" ")))},_removeDescribedBy:function(c){var C=c.data("ui-tooltip-id"),l=(c.attr("aria-describedby")||"").split(/\s+/),e=m.inArray(C,l);-1!==e&&l.splice(e,1),c.removeData("ui-tooltip-id"),(l=m.trim(l.join(" ")))?c.attr("aria-describedby",l):c.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=m("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=m([])},_setOption:function(c,C){var l=this;this._super(c,C),"content"===c&&m.each(this.tooltips,function(c,C){l._updateContent(C.element)})},_setOptionDisabled:function(c){this[c?"_disable":"_enable"]()},_disable:function(){var e=this;m.each(this.tooltips,function(c,C){var l=m.Event("blur");l.target=l.currentTarget=C.element[0],e.close(l,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var c=m(this);return c.is("[title]")?c.data("ui-tooltip-title",c.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var c=m(this);c.data("ui-tooltip-title")&&c.attr("title",c.data("ui-tooltip-title"))}),this.disabledTitles=m([])},open:function(c){var l=this,C=m(c?c.target:this.element).closest(this.options.items);C.length&&!C.data("ui-tooltip-id")&&(C.attr("title")&&C.data("ui-tooltip-title",C.attr("title")),C.data("ui-tooltip-open",!0),c&&"mouseover"===c.type&&C.parents().each(function(){var c,C=m(this);C.data("ui-tooltip-open")&&((c=m.Event("blur")).target=c.currentTarget=this,l.close(c,!0)),C.attr("title")&&(C.uniqueId(),l.parents[this.id]={element:this,title:C.attr("title")},C.attr("title",""))}),this._registerCloseHandlers(c,C),this._updateContent(C,c))},_updateContent:function(C,l){var c,e=this.options.content,s=this,h=l?l.type:null;return"string"==typeof e||e.nodeType||e.jquery?this._open(l,C,e):void((c=e.call(C[0],function(c){s._delay(function(){C.data("ui-tooltip-open")&&(l&&(l.type=h),this._open(l,C,c))})}))&&this._open(l,C,c))},_open:function(c,C,l){function e(c){M.of=c,h.is(":hidden")||h.position(M)}var s,h,z,t,M=m.extend({},this.options.position);if(l){if(s=this._find(C))return void s.tooltip.find(".ui-tooltip-content").html(l);C.is("[title]")&&(c&&"mouseover"===c.type?C.attr("title",""):C.removeAttr("title")),s=this._tooltip(C),h=s.tooltip,this._addDescribedBy(C,h.attr("id")),h.find(".ui-tooltip-content").html(l),this.liveRegion.children().hide(),(t=m("<div>").html(h.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),t.removeAttr("id").find("[id]").removeAttr("id"),t.appendTo(this.liveRegion),this.options.track&&c&&/^mouse/.test(c.type)?(this._on(this.document,{mousemove:e}),e(c)):h.position(m.extend({of:C},this.options.position)),h.hide(),this._show(h,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(z=this.delayedShow=setInterval(function(){h.is(":visible")&&(e(M.of),clearInterval(z))},m.fx.interval)),this._trigger("open",c,{tooltip:h})}},_registerCloseHandlers:function(c,l){var C={keyup:function(c){if(c.keyCode===m.ui.keyCode.ESCAPE){var C=m.Event(c);C.currentTarget=l[0],this.close(C,!0)}}};l[0]!==this.element[0]&&(C.remove=function(){this._removeTooltip(this._find(l).tooltip)}),c&&"mouseover"!==c.type||(C.mouseleave="close"),c&&"focusin"!==c.type||(C.focusout="close"),this._on(!0,l,C)},close:function(c){var C,l=this,e=m(c?c.currentTarget:this.element),s=this._find(e);return s?(C=s.tooltip,void(s.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&!e.attr("title")&&e.attr("title",e.data("ui-tooltip-title")),this._removeDescribedBy(e),s.hiding=!0,C.stop(!0),this._hide(C,this.options.hide,function(){l._removeTooltip(m(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),c&&"mouseleave"===c.type&&m.each(this.parents,function(c,C){m(C.element).attr("title",C.title),delete l.parents[c]}),s.closing=!0,this._trigger("close",c,{tooltip:C}),s.hiding||(s.closing=!1)))):void e.removeData("ui-tooltip-open")},_tooltip:function(c){var C=m("<div>").attr("role","tooltip"),l=m("<div>").appendTo(C),e=C.uniqueId().attr("id");return this._addClass(l,"ui-tooltip-content"),this._addClass(C,"ui-tooltip","ui-widget ui-widget-content"),C.appendTo(this._appendTo(c)),this.tooltips[e]={element:c,tooltip:C}},_find:function(c){var C=c.data("ui-tooltip-id");return C?this.tooltips[C]:null},_removeTooltip:function(c){c.remove(),delete this.tooltips[c.attr("id")]},_appendTo:function(c){var C=c.closest(".ui-front, dialog");return C.length||(C=this.document[0].body),C},_destroy:function(){var s=this;m.each(this.tooltips,function(c,C){var l=m.Event("blur"),e=C.element;l.target=l.currentTarget=e[0],s.close(l,!0),m("#"+c).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==m.uiBackCompat&&m.widget("ui.tooltip",m.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var c=this._superApply(arguments);return this.options.tooltipClass&&c.tooltip.addClass(this.options.tooltipClass),c}}),m.ui.tooltip;var x,T,q,D,E,I,A,P,O,N,j,$,W,R,F,B,Y,U,X,K,Q,G="ui-effects-",Z="ui-effects-style",J="ui-effects-animated",cc=m;function Cc(c,C,l,e){return m.isPlainObject(c)&&(c=(C=c).effect),c={effect:c},null==C&&(C={}),m.isFunction(C)&&(e=C,l=null,C={}),"number"!=typeof C&&!m.fx.speeds[C]||(e=l,l=C,C={}),m.isFunction(l)&&(e=l,l=null),C&&m.extend(c,C),l=l||C.duration,c.duration=m.fx.off?0:"number"==typeof l?l:l in m.fx.speeds?m.fx.speeds[l]:m.fx.speeds._default,c.complete=e||C.complete,c}function lc(c){return!(c&&"number"!=typeof c&&!m.fx.speeds[c])||("string"==typeof c&&!m.effects.effect[c]||(!!m.isFunction(c)||"object"==typeof c&&!c.effect))}function ec(c,C){var l=C.outerWidth(),e=C.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(c)||["",0,l,e,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?l:parseFloat(s[2]),bottom:"auto"===s[3]?e:parseFloat(s[3]),left:parseFloat(s[4])||0}}function sc(c){var C,l,e=c.ownerDocument.defaultView?c.ownerDocument.defaultView.getComputedStyle(c,null):c.currentStyle,s={};if(e&&e.length&&e[0]&&e[e[0]])for(l=e.length;l--;)"string"==typeof e[C=e[l]]&&(s[m.camelCase(C)]=e[C]);else for(C in e)"string"==typeof e[C]&&(s[C]=e[C]);return s}function hc(c,C,l){var e=U[C.type]||{};return null==c?l||!C.def?null:C.def:(c=e.floor?~~c:parseFloat(c),isNaN(c)?C.def:e.mod?(c+e.mod)%e.mod:c<0?0:c>e.max?e.max:c)}function zc(z){var t=B(),M=t._rgba=[];return z=z.toLowerCase(),Q(F,function(c,C){var l,e=C.re.exec(z),s=e&&C.parse(e),h=C.space||"rgba";return s?(l=t[h](s),t[Y[h].cache]=l[Y[h].cache],M=t._rgba=l._rgba,!1):$}),M.length?("0,0,0,0"===M.join()&&j.extend(M,W.transparent),t):W[z]}function tc(c,C,l){return 6*(l=(l+1)%1)<1?c+6*(C-c)*l:2*l<1?C:3*l<2?c+6*(C-c)*(2/3-l):c}m.effects={effect:{}},R=/^([\-+])=\s*(\d+\.?\d*)/,F=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[c[1],c[2],c[3],c[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[2.55*c[1],2.55*c[2],2.55*c[3],c[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(c){return[c[1],c[2]/100,c[3]/100,c[4]]}}],B=(j=cc).Color=function(c,C,l,e){return new j.Color.fn.parse(c,C,l,e)},Y={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"}}}},U={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},X=B.support={},K=j("<p>")[0],Q=j.each,K.style.cssText="background-color:rgba(1,1,1,.5)",X.rgba=-1<K.style.backgroundColor.indexOf("rgba"),Q(Y,function(c,C){C.cache="_"+c,C.props.alpha={idx:3,type:"percent",def:1}}),B.fn=j.extend(B.prototype,{parse:function(s,c,C,l){if(s===$)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=j(s).css(c),c=$);var h=this,e=j.type(s),z=this._rgba=[];return c!==$&&(s=[s,c,C,l],e="array"),"string"===e?this.parse(zc(s)||W._default):"array"===e?(Q(Y.rgba.props,function(c,C){z[C.idx]=hc(s[C.idx],C)}),this):"object"===e?(Q(Y,s instanceof B?function(c,C){s[C.cache]&&(h[C.cache]=s[C.cache].slice())}:function(c,l){var e=l.cache;Q(l.props,function(c,C){if(!h[e]&&l.to){if("alpha"===c||null==s[c])return;h[e]=l.to(h._rgba)}h[e][C.idx]=hc(s[c],C,!0)}),h[e]&&j.inArray(null,h[e].slice(0,3))<0&&(h[e][3]=1,l.from&&(h._rgba=l.from(h[e])))}),this):$},is:function(c){var s=B(c),h=!0,z=this;return Q(Y,function(c,C){var l,e=s[C.cache];return e&&(l=z[C.cache]||C.to&&C.to(z._rgba)||[],Q(C.props,function(c,C){return null!=e[C.idx]?h=e[C.idx]===l[C.idx]:$})),h}),h},_space:function(){var l=[],e=this;return Q(Y,function(c,C){e[C.cache]&&l.push(c)}),l.pop()},transition:function(c,z){var t=B(c),C=t._space(),l=Y[C],e=0===this.alpha()?B("transparent"):this,M=e[l.cache]||l.to(e._rgba),i=M.slice();return t=t[l.cache],Q(l.props,function(c,C){var l=C.idx,e=M[l],s=t[l],h=U[C.type]||{};null!==s&&(null===e?i[l]=s:(h.mod&&(s-e>h.mod/2?e+=h.mod:e-s>h.mod/2&&(e-=h.mod)),i[l]=hc((s-e)*z+e,C)))}),this[C](i)},blend:function(c){if(1===this._rgba[3])return this;var C=this._rgba.slice(),l=C.pop(),e=B(c)._rgba;return B(j.map(C,function(c,C){return(1-l)*e[C]+l*c}))},toRgbaString:function(){var c="rgba(",C=j.map(this._rgba,function(c,C){return null==c?2<C?1:0:c});return 1===C[3]&&(C.pop(),c="rgb("),c+C.join()+")"},toHslaString:function(){var c="hsla(",C=j.map(this.hsla(),function(c,C){return null==c&&(c=2<C?1:0),C&&C<3&&(c=Math.round(100*c)+"%"),c});return 1===C[3]&&(C.pop(),c="hsl("),c+C.join()+")"},toHexString:function(c){var C=this._rgba.slice(),l=C.pop();return c&&C.push(~~(255*l)),"#"+j.map(C,function(c){return 1===(c=(c||0).toString(16)).length?"0"+c:c}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),B.fn.parse.prototype=B.fn,Y.hsla.to=function(c){if(null==c[0]||null==c[1]||null==c[2])return[null,null,null,c[3]];var C,l,e=c[0]/255,s=c[1]/255,h=c[2]/255,z=c[3],t=Math.max(e,s,h),M=Math.min(e,s,h),i=t-M,a=t+M,n=.5*a;return C=M===t?0:e===t?60*(s-h)/i+360:s===t?60*(h-e)/i+120:60*(e-s)/i+240,l=0==i?0:n<=.5?i/a:i/(2-a),[Math.round(C)%360,l,n,null==z?1:z]},Y.hsla.from=function(c){if(null==c[0]||null==c[1]||null==c[2])return[null,null,null,c[3]];var C=c[0]/360,l=c[1],e=c[2],s=c[3],h=e<=.5?e*(1+l):e+l-e*l,z=2*e-h;return[Math.round(255*tc(z,h,C+1/3)),Math.round(255*tc(z,h,C)),Math.round(255*tc(z,h,C-1/3)),s]},Q(Y,function(M,c){var l=c.props,z=c.cache,t=c.to,i=c.from;B.fn[M]=function(c){if(t&&!this[z]&&(this[z]=t(this._rgba)),c===$)return this[z].slice();var C,e=j.type(c),s="array"===e||"object"===e?c:arguments,h=this[z].slice();return Q(l,function(c,C){var l=s["object"===e?c:C.idx];null==l&&(l=h[C.idx]),h[C.idx]=hc(l,C)}),i?((C=B(i(h)))[z]=h,C):B(h)},Q(l,function(z,t){B.fn[z]||(B.fn[z]=function(c){var C,l=j.type(c),e="alpha"===z?this._hsla?"hsla":"rgba":M,s=this[e](),h=s[t.idx];return"undefined"===l?h:("function"===l&&(c=c.call(this,h),l=j.type(c)),null==c&&t.empty?this:("string"===l&&(C=R.exec(c))&&(c=h+parseFloat(C[2])*("+"===C[1]?1:-1)),s[t.idx]=c,this[e](s)))})})}),B.hook=function(c){var C=c.split(" ");Q(C,function(c,h){j.cssHooks[h]={set:function(c,C){var l,e,s="";if("transparent"!==C&&("string"!==j.type(C)||(l=zc(C)))){if(C=B(l||C),!X.rgba&&1!==C._rgba[3]){for(e="backgroundColor"===h?c.parentNode:c;(""===s||"transparent"===s)&&e&&e.style;)try{s=j.css(e,"backgroundColor"),e=e.parentNode}catch(c){}C=C.blend(s&&"transparent"!==s?s:"_default")}C=C.toRgbaString()}try{c.style[h]=C}catch(c){}}},j.fx.step[h]=function(c){c.colorInit||(c.start=B(c.elem,h),c.end=B(c.end),c.colorInit=!0),j.cssHooks[h].set(c.elem,c.start.transition(c.end,c.pos))}})},B.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),j.cssHooks.borderColor={expand:function(l){var e={};return Q(["Top","Right","Bottom","Left"],function(c,C){e["border"+C+"Color"]=l}),e}},W=j.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"},O=["add","remove","toggle"],N={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},m.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(c,C){m.fx.step[C]=function(c){("none"!==c.end&&!c.setAttr||1===c.pos&&!c.setAttr)&&(cc.style(c.elem,C,c.end),c.setAttr=!0)}}),m.fn.addBack||(m.fn.addBack=function(c){return this.add(null==c?this.prevObject:this.prevObject.filter(c))}),m.effects.animateClass=function(s,c,C,l){var h=m.speed(c,C,l);return this.queue(function(){var c,l=m(this),C=l.attr("class")||"",e=h.children?l.find("*").addBack():l;e=e.map(function(){return{el:m(this),start:sc(this)}}),(c=function(){m.each(O,function(c,C){s[C]&&l[C+"Class"](s[C])})})(),e=e.map(function(){return this.end=sc(this.el[0]),this.diff=function(c,C){var l,e,s={};for(l in C)e=C[l],c[l]!==e&&(N[l]||!m.fx.step[l]&&isNaN(parseFloat(e))||(s[l]=e));return s}(this.start,this.end),this}),l.attr("class",C),e=e.map(function(){var c=this,C=m.Deferred(),l=m.extend({},h,{queue:!1,complete:function(){C.resolve(c)}});return this.el.animate(this.diff,l),C.promise()}),m.when.apply(m,e.get()).done(function(){c(),m.each(arguments,function(){var C=this.el;m.each(this.diff,function(c){C.css(c,"")})}),h.complete.call(l[0])})})},m.fn.extend({addClass:(P=m.fn.addClass,function(c,C,l,e){return C?m.effects.animateClass.call(this,{add:c},C,l,e):P.apply(this,arguments)}),removeClass:(A=m.fn.removeClass,function(c,C,l,e){return 1<arguments.length?m.effects.animateClass.call(this,{remove:c},C,l,e):A.apply(this,arguments)}),toggleClass:(I=m.fn.toggleClass,function(c,C,l,e,s){return"boolean"==typeof C||void 0===C?l?m.effects.animateClass.call(this,C?{add:c}:{remove:c},l,e,s):I.apply(this,arguments):m.effects.animateClass.call(this,{toggle:c},C,l,e)}),switchClass:function(c,C,l,e,s){return m.effects.animateClass.call(this,{add:C,remove:c},l,e,s)}}),m.expr&&m.expr.filters&&m.expr.filters.animated&&(m.expr.filters.animated=(E=m.expr.filters.animated,function(c){return!!m(c).data(J)||E(c)})),!1!==m.uiBackCompat&&m.extend(m.effects,{save:function(c,C){for(var l=0,e=C.length;l<e;l++)null!==C[l]&&c.data(G+C[l],c[0].style[C[l]])},restore:function(c,C){for(var l,e=0,s=C.length;e<s;e++)null!==C[e]&&(l=c.data(G+C[e]),c.css(C[e],l))},setMode:function(c,C){return"toggle"===C&&(C=c.is(":hidden")?"show":"hide"),C},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper"))return l.parent();var e={width:l.outerWidth(!0),height:l.outerHeight(!0),float:l.css("float")},c=m("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),C={width:l.width(),height:l.height()},s=document.activeElement;try{s.id}catch(c){s=document.body}return l.wrap(c),l[0]!==s&&!m.contains(l[0],s)||m(s).trigger("focus"),c=l.parent(),"static"===l.css("position")?(c.css({position:"relative"}),l.css({position:"relative"})):(m.extend(e,{position:l.css("position"),zIndex:l.css("z-index")}),m.each(["top","left","bottom","right"],function(c,C){e[C]=l.css(C),isNaN(parseInt(e[C],10))&&(e[C]="auto")}),l.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),l.css(C),c.css(e).show()},removeWrapper:function(c){var C=document.activeElement;return c.parent().is(".ui-effects-wrapper")&&(c.parent().replaceWith(c),c[0]!==C&&!m.contains(c[0],C)||m(C).trigger("focus")),c}}),m.extend(m.effects,{version:"1.12.1",define:function(c,C,l){return l||(l=C,C="effect"),m.effects.effect[c]=l,m.effects.effect[c].mode=C,l},scaledDimensions:function(c,C,l){if(0===C)return{height:0,width:0,outerHeight:0,outerWidth:0};var e="horizontal"!==l?(C||100)/100:1,s="vertical"!==l?(C||100)/100:1;return{height:c.height()*s,width:c.width()*e,outerHeight:c.outerHeight()*s,outerWidth:c.outerWidth()*e}},clipToBox:function(c){return{width:c.clip.right-c.clip.left,height:c.clip.bottom-c.clip.top,left:c.clip.left,top:c.clip.top}},unshift:function(c,C,l){var e=c.queue();1<C&&e.splice.apply(e,[1,0].concat(e.splice(C,l))),c.dequeue()},saveStyle:function(c){c.data(Z,c[0].style.cssText)},restoreStyle:function(c){c[0].style.cssText=c.data(Z)||"",c.removeData(Z)},mode:function(c,C){var l=c.is(":hidden");return"toggle"===C&&(C=l?"show":"hide"),(l?"hide"===C:"show"===C)&&(C="none"),C},getBaseline:function(c,C){var l,e;switch(c[0]){case"top":l=0;break;case"middle":l=.5;break;case"bottom":l=1;break;default:l=c[0]/C.height}switch(c[1]){case"left":e=0;break;case"center":e=.5;break;case"right":e=1;break;default:e=c[1]/C.width}return{x:e,y:l}},createPlaceholder:function(c){var C,l=c.css("position"),e=c.position();return c.css({marginTop:c.css("marginTop"),marginBottom:c.css("marginBottom"),marginLeft:c.css("marginLeft"),marginRight:c.css("marginRight")}).outerWidth(c.outerWidth()).outerHeight(c.outerHeight()),/^(static|relative)/.test(l)&&(l="absolute",C=m("<"+c[0].nodeName+">").insertAfter(c).css({display:/^(inline|ruby)/.test(c.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:c.css("marginTop"),marginBottom:c.css("marginBottom"),marginLeft:c.css("marginLeft"),marginRight:c.css("marginRight"),float:c.css("float")}).outerWidth(c.outerWidth()).outerHeight(c.outerHeight()).addClass("ui-effects-placeholder"),c.data(G+"placeholder",C)),c.css({position:l,left:e.left,top:e.top}),C},removePlaceholder:function(c){var C=G+"placeholder",l=c.data(C);l&&(l.remove(),c.removeData(C))},cleanUp:function(c){m.effects.restoreStyle(c),m.effects.removePlaceholder(c)},setTransition:function(e,c,s,h){return h=h||{},m.each(c,function(c,C){var l=e.cssUnit(C);0<l[0]&&(h[C]=l[0]*s+l[1])}),h}}),m.fn.extend({effect:function(){function c(c){function C(){m.isFunction(t)&&t.call(l[0]),m.isFunction(c)&&c()}var l=m(this);e.mode=i.shift(),!1===m.uiBackCompat||h?"none"===e.mode?(l[M](),C()):s.call(l[0],e,function(){l.removeData(J),m.effects.cleanUp(l),"hide"===e.mode&&l.hide(),C()}):(l.is(":hidden")?"hide"===M:"show"===M)?(l[M](),C()):s.call(l[0],e,C)}function C(c){var C=m(this),l=m.effects.mode(C,M)||h;C.data(J,!0),i.push(l),h&&("show"===l||l===h&&"hide"===l)&&C.show(),h&&"none"===l||m.effects.saveStyle(C),m.isFunction(c)&&c()}var e=Cc.apply(this,arguments),s=m.effects.effect[e.effect],h=s.mode,l=e.queue,z=l||"fx",t=e.complete,M=e.mode,i=[];return m.fx.off||!s?M?this[M](e.duration,t):this.each(function(){t&&t.call(this)}):!1===l?this.each(C).each(c):this.queue(z,C).queue(z,c)},show:(D=m.fn.show,function(c){if(lc(c))return D.apply(this,arguments);var C=Cc.apply(this,arguments);return C.mode="show",this.effect.call(this,C)}),hide:(q=m.fn.hide,function(c){if(lc(c))return q.apply(this,arguments);var C=Cc.apply(this,arguments);return C.mode="hide",this.effect.call(this,C)}),toggle:(T=m.fn.toggle,function(c){if(lc(c)||"boolean"==typeof c)return T.apply(this,arguments);var C=Cc.apply(this,arguments);return C.mode="toggle",this.effect.call(this,C)}),cssUnit:function(c){var l=this.css(c),e=[];return m.each(["em","px","%","pt"],function(c,C){0<l.indexOf(C)&&(e=[parseFloat(l),C])}),e},cssClip:function(c){return c?this.css("clip","rect("+c.top+"px "+c.right+"px "+c.bottom+"px "+c.left+"px)"):ec(this.css("clip"),this)},transfer:function(c,C){var l=m(this),e=m(c.to),s="fixed"===e.css("position"),h=m("body"),z=s?h.scrollTop():0,t=s?h.scrollLeft():0,M=e.offset(),i={top:M.top-z,left:M.left-t,height:e.innerHeight(),width:e.innerWidth()},a=l.offset(),n=m("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(c.className).css({top:a.top-z,left:a.left-t,height:l.innerHeight(),width:l.innerWidth(),position:s?"fixed":"absolute"}).animate(i,c.duration,c.easing,function(){n.remove(),m.isFunction(C)&&C()})}}),m.fx.step.clip=function(c){c.clipInit||(c.start=m(c.elem).cssClip(),"string"==typeof c.end&&(c.end=ec(c.end,c.elem)),c.clipInit=!0),m(c.elem).cssClip({top:c.pos*(c.end.top-c.start.top)+c.start.top,right:c.pos*(c.end.right-c.start.right)+c.start.right,bottom:c.pos*(c.end.bottom-c.start.bottom)+c.start.bottom,left:c.pos*(c.end.left-c.start.left)+c.start.left})},x={},m.each(["Quad","Cubic","Quart","Quint","Expo"],function(C,c){x[c]=function(c){return Math.pow(c,C+2)}}),m.extend(x,{Sine:function(c){return 1-Math.cos(c*Math.PI/2)},Circ:function(c){return 1-Math.sqrt(1-c*c)},Elastic:function(c){return 0===c||1===c?c:-Math.pow(2,8*(c-1))*Math.sin((80*(c-1)-7.5)*Math.PI/15)},Back:function(c){return c*c*(3*c-2)},Bounce:function(c){for(var C,l=4;((C=Math.pow(2,--l))-1)/11>c;);return 1/Math.pow(4,3-l)-7.5625*Math.pow((3*C-2)/22-c,2)}}),m.each(x,function(c,C){m.easing["easeIn"+c]=C,m.easing["easeOut"+c]=function(c){return 1-C(1-c)},m.easing["easeInOut"+c]=function(c){return c<.5?C(2*c)/2:1-C(-2*c+2)/2}});m.effects;m.effects.define("blind","hide",function(c,C){var l={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},e=m(this),s=c.direction||"up",h=e.cssClip(),z={clip:m.extend({},h)},t=m.effects.createPlaceholder(e);z.clip[l[s][0]]=z.clip[l[s][1]],"show"===c.mode&&(e.cssClip(z.clip),t&&t.css(m.effects.clipToBox(z)),z.clip=h),t&&t.animate(m.effects.clipToBox(z),c.duration,c.easing),e.animate(z,{queue:!1,duration:c.duration,easing:c.easing,complete:C})}),m.effects.define("bounce",function(c,C){var l,e,s,h=m(this),z=c.mode,t="hide"===z,M="show"===z,i=c.direction||"up",a=c.distance,n=c.times||5,r=2*n+(M||t?1:0),o=c.duration/r,v=c.easing,V="up"===i||"down"===i?"top":"left",L="up"===i||"left"===i,H=0,S=h.queue().length;for(m.effects.createPlaceholder(h),s=h.css(V),a=a||h["top"==V?"outerHeight":"outerWidth"]()/3,M&&((e={opacity:1})[V]=s,h.css("opacity",0).css(V,L?2*-a:2*a).animate(e,o,v)),t&&(a/=Math.pow(2,n-1)),(e={})[V]=s;H<n;H++)(l={})[V]=(L?"-=":"+=")+a,h.animate(l,o,v).animate(e,o,v),a=t?2*a:a/2;t&&((l={opacity:0})[V]=(L?"-=":"+=")+a,h.animate(l,o,v)),h.queue(C),m.effects.unshift(h,S,1+r)}),m.effects.define("clip","hide",function(c,C){var l,e={},s=m(this),h=c.direction||"vertical",z="both"===h,t=z||"horizontal"===h,M=z||"vertical"===h;l=s.cssClip(),e.clip={top:M?(l.bottom-l.top)/2:l.top,right:t?(l.right-l.left)/2:l.right,bottom:M?(l.bottom-l.top)/2:l.bottom,left:t?(l.right-l.left)/2:l.left},m.effects.createPlaceholder(s),"show"===c.mode&&(s.cssClip(e.clip),e.clip=l),s.animate(e,{queue:!1,duration:c.duration,easing:c.easing,complete:C})}),m.effects.define("drop","hide",function(c,C){var l,e=m(this),s="show"===c.mode,h=c.direction||"left",z="up"===h||"down"===h?"top":"left",t="up"===h||"left"===h?"-=":"+=",M="+="==t?"-=":"+=",i={opacity:0};m.effects.createPlaceholder(e),l=c.distance||e["top"==z?"outerHeight":"outerWidth"](!0)/2,i[z]=t+l,s&&(e.css(i),i[z]=M+l,i.opacity=1),e.animate(i,{queue:!1,duration:c.duration,easing:c.easing,complete:C})}),m.effects.define("explode","hide",function(c,C){function l(){L.push(this),L.length===i*a&&(n.css({visibility:"visible"}),m(L).remove(),C())}var e,s,h,z,t,M,i=c.pieces?Math.round(Math.sqrt(c.pieces)):3,a=i,n=m(this),r="show"===c.mode,o=n.show().css("visibility","hidden").offset(),v=Math.ceil(n.outerWidth()/a),V=Math.ceil(n.outerHeight()/i),L=[];for(e=0;e<i;e++)for(z=o.top+e*V,M=e-(i-1)/2,s=0;s<a;s++)h=o.left+s*v,t=s-(a-1)/2,n.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*v,top:-e*V}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:V,left:h+(r?t*v:0),top:z+(r?M*V:0),opacity:r?0:1}).animate({left:h+(r?0:t*v),top:z+(r?0:M*V),opacity:r?1:0},c.duration||500,c.easing,l)}),m.effects.define("fade","toggle",function(c,C){var l="show"===c.mode;m(this).css("opacity",l?0:1).animate({opacity:l?1:0},{queue:!1,duration:c.duration,easing:c.easing,complete:C})}),m.effects.define("fold","hide",function(C,c){var l=m(this),e=C.mode,s="show"===e,h="hide"===e,z=C.size||15,t=/([0-9]+)%/.exec(z),M=!!C.horizFirst?["right","bottom"]:["bottom","right"],i=C.duration/2,a=m.effects.createPlaceholder(l),n=l.cssClip(),r={clip:m.extend({},n)},o={clip:m.extend({},n)},v=[n[M[0]],n[M[1]]],V=l.queue().length;t&&(z=parseInt(t[1],10)/100*v[h?0:1]),r.clip[M[0]]=z,o.clip[M[0]]=z,o.clip[M[1]]=0,s&&(l.cssClip(o.clip),a&&a.css(m.effects.clipToBox(o)),o.clip=n),l.queue(function(c){a&&a.animate(m.effects.clipToBox(r),i,C.easing).animate(m.effects.clipToBox(o),i,C.easing),c()}).animate(r,i,C.easing).animate(o,i,C.easing).queue(c),m.effects.unshift(l,V,4)}),m.effects.define("highlight","show",function(c,C){var l=m(this),e={backgroundColor:l.css("backgroundColor")};"hide"===c.mode&&(e.opacity=0),m.effects.saveStyle(l),l.css({backgroundImage:"none",backgroundColor:c.color||"#ffff99"}).animate(e,{queue:!1,duration:c.duration,easing:c.easing,complete:C})}),m.effects.define("size",function(s,C){var c,h,l,e=m(this),z=["fontSize"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],M=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],i=s.mode,a="effect"!==i,n=s.scale||"both",r=s.origin||["middle","center"],o=e.css("position"),v=e.position(),V=m.effects.scaledDimensions(e),L=s.from||V,H=s.to||m.effects.scaledDimensions(e,0);m.effects.createPlaceholder(e),"show"===i&&(l=L,L=H,H=l),h={from:{y:L.height/V.height,x:L.width/V.width},to:{y:H.height/V.height,x:H.width/V.width}},"box"!==n&&"both"!==n||(h.from.y!==h.to.y&&(L=m.effects.setTransition(e,t,h.from.y,L),H=m.effects.setTransition(e,t,h.to.y,H)),h.from.x!==h.to.x&&(L=m.effects.setTransition(e,M,h.from.x,L),H=m.effects.setTransition(e,M,h.to.x,H))),"content"!==n&&"both"!==n||h.from.y===h.to.y||(L=m.effects.setTransition(e,z,h.from.y,L),H=m.effects.setTransition(e,z,h.to.y,H)),r&&(c=m.effects.getBaseline(r,V),L.top=(V.outerHeight-L.outerHeight)*c.y+v.top,L.left=(V.outerWidth-L.outerWidth)*c.x+v.left,H.top=(V.outerHeight-H.outerHeight)*c.y+v.top,H.left=(V.outerWidth-H.outerWidth)*c.x+v.left),e.css(L),"content"!==n&&"both"!==n||(t=t.concat(["marginTop","marginBottom"]).concat(z),M=M.concat(["marginLeft","marginRight"]),e.find("*[width]").each(function(){var c=m(this),C=m.effects.scaledDimensions(c),l={height:C.height*h.from.y,width:C.width*h.from.x,outerHeight:C.outerHeight*h.from.y,outerWidth:C.outerWidth*h.from.x},e={height:C.height*h.to.y,width:C.width*h.to.x,outerHeight:C.height*h.to.y,outerWidth:C.width*h.to.x};h.from.y!==h.to.y&&(l=m.effects.setTransition(c,t,h.from.y,l),e=m.effects.setTransition(c,t,h.to.y,e)),h.from.x!==h.to.x&&(l=m.effects.setTransition(c,M,h.from.x,l),e=m.effects.setTransition(c,M,h.to.x,e)),a&&m.effects.saveStyle(c),c.css(l),c.animate(e,s.duration,s.easing,function(){a&&m.effects.restoreStyle(c)})})),e.animate(H,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var c=e.offset();0===H.opacity&&e.css("opacity",L.opacity),a||(e.css("position","static"===o?"relative":o).offset(c),m.effects.saveStyle(e)),C()}})}),m.effects.define("scale",function(c,C){var l=m(this),e=c.mode,s=parseInt(c.percent,10)||(0===parseInt(c.percent,10)?0:"effect"!==e?0:100),h=m.extend(!0,{from:m.effects.scaledDimensions(l),to:m.effects.scaledDimensions(l,s,c.direction||"both"),origin:c.origin||["middle","center"]},c);c.fade&&(h.from.opacity=1,h.to.opacity=0),m.effects.effect.size.call(this,h,C)}),m.effects.define("puff","hide",function(c,C){var l=m.extend(!0,{},c,{fade:!0,percent:parseInt(c.percent,10)||150});m.effects.effect.scale.call(this,l,C)}),m.effects.define("pulsate","show",function(c,C){var l=m(this),e=c.mode,s="show"===e,h=s||"hide"===e,z=2*(c.times||5)+(h?1:0),t=c.duration/z,M=0,i=1,a=l.queue().length;for(!s&&l.is(":visible")||(l.css("opacity",0).show(),M=1);i<z;i++)l.animate({opacity:M},t,c.easing),M=1-M;l.animate({opacity:M},t,c.easing),l.queue(C),m.effects.unshift(l,a,1+z)}),m.effects.define("shake",function(c,C){var l=1,e=m(this),s=c.direction||"left",h=c.distance||20,z=c.times||3,t=2*z+1,M=Math.round(c.duration/t),i="up"===s||"down"===s?"top":"left",a="up"===s||"left"===s,n={},r={},o={},v=e.queue().length;for(m.effects.createPlaceholder(e),n[i]=(a?"-=":"+=")+h,r[i]=(a?"+=":"-=")+2*h,o[i]=(a?"-=":"+=")+2*h,e.animate(n,M,c.easing);l<z;l++)e.animate(r,M,c.easing).animate(o,M,c.easing);e.animate(r,M,c.easing).animate(n,M/2,c.easing).queue(C),m.effects.unshift(e,v,1+t)}),m.effects.define("slide","show",function(c,C){var l,e,s=m(this),h={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},z=c.mode,t=c.direction||"left",M="up"===t||"down"===t?"top":"left",i="up"===t||"left"===t,a=c.distance||s["top"==M?"outerHeight":"outerWidth"](!0),n={};m.effects.createPlaceholder(s),l=s.cssClip(),e=s.position()[M],n[M]=(i?-1:1)*a+e,n.clip=s.cssClip(),n.clip[h[t][1]]=n.clip[h[t][0]],"show"===z&&(s.cssClip(n.clip),s.css(M,n[M]),n.clip=l,n[M]=e),s.animate(n,{queue:!1,duration:c.duration,easing:c.easing,complete:C})}),!1!==m.uiBackCompat&&m.effects.define("transfer",function(c,C){m(this).transfer(c,C)})}),function(c,C){"object"==typeof exports&&"undefined"!=typeof module?module.exports=C():"function"==typeof define&&define.amd?define(C):c.Popper=C()}(this,function(){"use strict";function h(c){return c&&"[object Function]"==={}.toString.call(c)}function H(c,C){if(1!==c.nodeType)return[];var l=window.getComputedStyle(c,null);return C?l[C]:l}function n(c){return"HTML"===c.nodeName?c:c.parentNode||c.host}function o(c){if(!c||-1!==["HTML","BODY","#document"].indexOf(c.nodeName))return window.document.body;var C=H(c),l=C.overflow,e=C.overflowX,s=C.overflowY;return/(auto|scroll)/.test(l+s+e)?c:o(n(c))}function S(c){var C=c&&c.offsetParent,l=C&&C.nodeName;return l&&"BODY"!==l&&"HTML"!==l?-1!==["TD","TABLE"].indexOf(C.nodeName)&&"static"===H(C,"position")?S(C):C:window.document.documentElement}function M(c){return null===c.parentNode?c:M(c.parentNode)}function r(c,C){if(!(c&&c.nodeType&&C&&C.nodeType))return window.document.documentElement;var l=c.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING,e=l?c:C,s=l?C:c,h=document.createRange();h.setStart(e,0),h.setEnd(s,0);var z=h.commonAncestorContainer;if(c!==z&&C!==z||e.contains(s))return function(c){var C=c.nodeName;return"BODY"!==C&&("HTML"===C||S(c.firstElementChild)===c)}(z)?z:S(z);var t=M(c);return t.host?r(t.host,C):r(c,M(C).host)}function v(c,C){var l="top"===(1<arguments.length&&void 0!==C?C:"top")?"scrollTop":"scrollLeft",e=c.nodeName;if("BODY"!==e&&"HTML"!==e)return c[l];var s=window.document.documentElement;return(window.document.scrollingElement||s)[l]}function V(c,C){var l="x"===C?"Left":"Top",e="Left"==l?"Right":"Bottom";return+c["border"+l+"Width"].split("px")[0]+ +c["border"+e+"Width"].split("px")[0]}function e(c,C,l,e){return E(C["offset"+c],C["scroll"+c],l["client"+c],l["offset"+c],l["scroll"+c],R()?l["offset"+c]+e["margin"+("Height"===c?"Top":"Left")]+e["margin"+("Height"===c?"Bottom":"Right")]:0)}function L(){var c=window.document.body,C=window.document.documentElement,l=R()&&window.getComputedStyle(C);return{height:e("Height",c,C,l),width:e("Width",c,C,l)}}function f(c){return B({},c,{right:c.left+c.width,bottom:c.top+c.height})}function d(c){var C={};if(R())try{C=c.getBoundingClientRect();var l=v(c,"top"),e=v(c,"left");C.top+=l,C.left+=e,C.bottom+=l,C.right+=e}catch(c){}else C=c.getBoundingClientRect();var s={left:C.left,top:C.top,width:C.right-C.left,height:C.bottom-C.top},h="HTML"===c.nodeName?L():{},z=h.width||c.clientWidth||s.right-s.left,t=h.height||c.clientHeight||s.bottom-s.top,M=c.offsetWidth-z,i=c.offsetHeight-t;if(M||i){var a=H(c);M-=V(a,"x"),i-=V(a,"y"),s.width-=M,s.height-=i}return f(s)}function u(c,C){var l=R(),e="HTML"===C.nodeName,s=d(c),h=d(C),z=o(c),t=H(C),M=+t.borderTopWidth.split("px")[0],i=+t.borderLeftWidth.split("px")[0],a=f({top:s.top-h.top-M,left:s.left-h.left-i,width:s.width,height:s.height});if(a.marginTop=0,a.marginLeft=0,!l&&e){var n=+t.marginTop.split("px")[0],r=+t.marginLeft.split("px")[0];a.top-=M-n,a.bottom-=M-n,a.left-=i-r,a.right-=i-r,a.marginTop=n,a.marginLeft=r}return(l?C.contains(z):C===z&&"BODY"!==z.nodeName)&&(a=function(c,C,l){var e=2<arguments.length&&void 0!==l&&l,s=v(C,"top"),h=v(C,"left"),z=e?-1:1;return c.top+=s*z,c.bottom+=s*z,c.left+=h*z,c.right+=h*z,c}(a,C)),a}function p(c,C,l,e){var s={top:0,left:0},h=r(c,C);if("viewport"===e)s=function(c){var C=window.document.documentElement,l=u(c,C),e=E(C.clientWidth,window.innerWidth||0),s=E(C.clientHeight,window.innerHeight||0),h=v(C),z=v(C,"left");return f({top:h-l.top+l.marginTop,left:z-l.left+l.marginLeft,width:e,height:s})}(h);else{var z;"scrollParent"===e?"BODY"===(z=o(n(c))).nodeName&&(z=window.document.documentElement):z="window"===e?window.document.documentElement:e;var t=u(z,h);if("HTML"!==z.nodeName||function c(C){var l=C.nodeName;return"BODY"!==l&&"HTML"!==l&&("fixed"===H(C,"position")||c(n(C)))}(h))s=t;else{var M=L(),i=M.height,a=M.width;s.top+=t.top-t.marginTop,s.bottom=i+t.top,s.left+=t.left-t.marginLeft,s.right=a+t.left}}return s.left+=l,s.top+=l,s.right-=l,s.bottom-=l,s}function t(c,C,e,l,s,h){var z=5<arguments.length&&void 0!==h?h:0;if(-1===c.indexOf("auto"))return c;var t=p(e,l,z,s),M={top:{width:t.width,height:C.top-t.top},right:{width:t.right-C.right,height:t.height},bottom:{width:t.width,height:t.bottom-C.bottom},left:{width:C.left-t.left,height:t.height}},i=Object.keys(M).map(function(c){return B({key:c},M[c],{area:function(c){return c.width*c.height}(M[c])})}).sort(function(c,C){return C.area-c.area}),a=i.filter(function(c){var C=c.width,l=c.height;return C>=e.clientWidth&&l>=e.clientHeight}),n=0<a.length?a[0].key:i[0].key,r=c.split("-")[1];return n+(r?"-"+r:"")}function i(c,C,l){return u(l,r(C,l))}function m(c){var C=window.getComputedStyle(c),l=parseFloat(C.marginTop)+parseFloat(C.marginBottom),e=parseFloat(C.marginLeft)+parseFloat(C.marginRight);return{width:c.offsetWidth+e,height:c.offsetHeight+l}}function g(c){var C={left:"right",right:"left",bottom:"top",top:"bottom"};return c.replace(/left|right|bottom|top/g,function(c){return C[c]})}function b(c,C,l){l=l.split("-")[0];var e=m(c),s={width:e.width,height:e.height},h=-1!==["right","left"].indexOf(l),z=h?"top":"left",t=h?"left":"top",M=h?"height":"width",i=h?"width":"height";return s[z]=C[z]+C[M]/2-e[M]/2,s[t]=l===t?C[t]-e[i]:C[g(t)],s}function w(c,C){return Array.prototype.find?c.find(C):c.filter(C)[0]}function y(c,l,C){return(void 0===C?c:c.slice(0,function(c,C,l){if(Array.prototype.findIndex)return c.findIndex(function(c){return c[C]===l});var e=w(c,function(c){return c[C]===l});return c.indexOf(e)}(c,"name",C))).forEach(function(c){c.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var C=c.function||c.fn;c.enabled&&h(C)&&(l.offsets.popper=f(l.offsets.popper),l.offsets.reference=f(l.offsets.reference),l=C(l,c))}),l}function c(c,l){return c.some(function(c){var C=c.name;return c.enabled&&C===l})}function k(c){for(var C=[!1,"ms","Webkit","Moz","O"],l=c.charAt(0).toUpperCase()+c.slice(1),e=0;e<C.length-1;e++){var s=C[e],h=s?""+s+l:c;if(void 0!==window.document.body.style[h])return h}return null}function C(c,C,l,e){l.updateBound=e,window.addEventListener("resize",l.updateBound,{passive:!0});var s=o(c);return function c(C,l,e,s){var h="BODY"===C.nodeName,z=h?window:C;z.addEventListener(l,e,{passive:!0}),h||c(o(z.parentNode),l,e,s),s.push(z)}(s,"scroll",l.updateBound,l.scrollParents),l.scrollElement=s,l.eventsEnabled=!0,l}function l(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=function(c,C){return window.removeEventListener("resize",C.updateBound),C.scrollParents.forEach(function(c){c.removeEventListener("scroll",C.updateBound)}),C.updateBound=null,C.scrollParents=[],C.scrollElement=null,C.eventsEnabled=!1,C}(this.reference,this.state))}function a(c){return""!==c&&!isNaN(parseFloat(c))&&isFinite(c)}function _(l,e){Object.keys(e).forEach(function(c){var C="";-1!==["width","height","top","right","bottom","left"].indexOf(c)&&a(e[c])&&(C="px"),l.style[c]=e[c]+C})}function x(c,C,l){var e=w(c,function(c){return c.name===C}),s=!!e&&c.some(function(c){return c.name===l&&c.enabled&&c.order<e.order});if(!s){var h="`"+C+"`";console.warn("`"+l+"` modifier is required by "+h+" modifier in order to work, be sure to include it before "+h+"!")}return s}function s(c,C){var l=1<arguments.length&&void 0!==C&&C,e=U.indexOf(c),s=U.slice(e+1).concat(U.slice(0,e));return l?s.reverse():s}function T(c,s,h,C){var z=[0,0],t=-1!==["right","left"].indexOf(C),l=c.split(/(\+|\-)/).map(function(c){return c.trim()}),e=l.indexOf(w(l,function(c){return-1!==c.search(/,|\s/)}));l[e]&&-1===l[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var M=/\s*,\s*|\s+/,i=-1===e?[l]:[l.slice(0,e).concat([l[e].split(M)[0]]),[l[e].split(M)[1]].concat(l.slice(e+1))];return(i=i.map(function(c,C){var l=(1===C?!t:t)?"height":"width",e=!1;return c.reduce(function(c,C){return""===c[c.length-1]&&-1!==["+","-"].indexOf(C)?(c[c.length-1]=C,e=!0,c):e?(c[c.length-1]+=C,e=!1,c):c.concat(C)},[]).map(function(c){return function(c,C,l,e){var s,h=c.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),z=+h[1],t=h[2];if(!z)return c;if(0!==t.indexOf("%"))return"vh"!==t&&"vw"!==t?z:("vh"===t?E(document.documentElement.clientHeight,window.innerHeight||0):E(document.documentElement.clientWidth,window.innerWidth||0))/100*z;switch(t){case"%p":s=l;break;case"%":case"%r":default:s=e}return f(s)[C]/100*z}(c,l,s,h)})})).forEach(function(l,e){l.forEach(function(c,C){a(c)&&(z[e]+=c*("-"===l[C-1]?-1:1))})}),z}for(var q=Math.min,D=Math.floor,E=Math.max,z=["native code","[object MutationObserverConstructor]"],I="undefined"!=typeof window,A=["Edge","Trident","Firefox"],P=0,O=0;O<A.length;O+=1)if(I&&0<=navigator.userAgent.indexOf(A[O])){P=1;break}function N(c,C,l){return C in c?Object.defineProperty(c,C,{value:l,enumerable:!0,configurable:!0,writable:!0}):c[C]=l,c}var j,$,W=I&&($=window.MutationObserver,z.some(function(c){return-1<($||"").toString().indexOf(c)}))?function(c){var C=!1,l=0,e=document.createElement("span");return new MutationObserver(function(){c(),C=!1}).observe(e,{attributes:!0}),function(){C||(C=!0,e.setAttribute("x-index",l),++l)}}:function(c){var C=!1;return function(){C||(C=!0,setTimeout(function(){C=!1,c()},P))}},R=function(){return null==j&&(j=-1!==navigator.appVersion.indexOf("MSIE 10")),j},F=function(c,C,l){return C&&J(c.prototype,C),l&&J(c,l),c},B=Object.assign||function(c){for(var C,l=1;l<arguments.length;l++)for(var e in C=arguments[l])Object.prototype.hasOwnProperty.call(C,e)&&(c[e]=C[e]);return c},Y=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],U=Y.slice(3),X="flip",K="clockwise",Q="counterclockwise",G=(F(Z,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var c={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};c.offsets.reference=i(this.state,this.popper,this.reference),c.placement=t(this.options.placement,c.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),c.originalPlacement=c.placement,c.offsets.popper=b(this.popper,c.offsets.reference,c.placement),c.offsets.popper.position="absolute",c=y(this.modifiers,c),this.state.isCreated?this.options.onUpdate(c):(this.state.isCreated=!0,this.options.onCreate(c))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,c(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[k("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=C(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return l.call(this)}}]),Z);function Z(c,C){var l=this,e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};(function(c,C){if(!(c instanceof C))throw new TypeError("Cannot call a class as a function")})(this,Z),this.scheduleUpdate=function(){return requestAnimationFrame(l.update)},this.update=W(this.update.bind(this)),this.options=B({},Z.Defaults,e),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=c.jquery?c[0]:c,this.popper=C.jquery?C[0]:C,this.options.modifiers={},Object.keys(B({},Z.Defaults.modifiers,e.modifiers)).forEach(function(c){l.options.modifiers[c]=B({},Z.Defaults.modifiers[c]||{},e.modifiers?e.modifiers[c]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(c){return B({name:c},l.options.modifiers[c])}).sort(function(c,C){return c.order-C.order}),this.modifiers.forEach(function(c){c.enabled&&h(c.onLoad)&&c.onLoad(l.reference,l.popper,l.options,c,l.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}function J(c,C){for(var l,e=0;e<C.length;e++)(l=C[e]).enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(c,l.key,l)}return G.Utils=("undefined"==typeof window?global:window).PopperUtils,G.placements=Y,G.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(c){var C=c.placement,l=C.split("-")[0],e=C.split("-")[1];if(e){var s=c.offsets,h=s.reference,z=s.popper,t=-1!==["bottom","top"].indexOf(l),M=t?"left":"top",i=t?"width":"height",a={start:N({},M,h[M]),end:N({},M,h[M]+h[i]-z[i])};c.offsets.popper=B({},z,a[e])}return c}},offset:{order:200,enabled:!0,fn:function(c,C){var l,e=C.offset,s=c.placement,h=c.offsets,z=h.popper,t=h.reference,M=s.split("-")[0];return l=a(+e)?[+e,0]:T(e,z,t,M),"left"===M?(z.top+=l[0],z.left-=l[1]):"right"===M?(z.top+=l[0],z.left+=l[1]):"top"===M?(z.left+=l[0],z.top-=l[1]):"bottom"===M&&(z.left+=l[0],z.top+=l[1]),c.popper=z,c},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(c,e){var C=e.boundariesElement||S(c.instance.popper);c.instance.reference===C&&(C=S(C));var s=p(c.instance.popper,c.instance.reference,e.padding,C);e.boundaries=s;var l=e.priority,h=c.offsets.popper,z={primary:function(c){var C=h[c];return h[c]<s[c]&&!e.escapeWithReference&&(C=E(h[c],s[c])),N({},c,C)},secondary:function(c){var C="right"===c?"left":"top",l=h[C];return h[c]>s[c]&&!e.escapeWithReference&&(l=q(h[C],s[c]-("right"===c?h.width:h.height))),N({},C,l)}};return l.forEach(function(c){var C=-1===["left","top"].indexOf(c)?"secondary":"primary";h=B({},h,z[C](c))}),c.offsets.popper=h,c},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(c){var C=c.offsets,l=C.popper,e=C.reference,s=c.placement.split("-")[0],h=D,z=-1!==["top","bottom"].indexOf(s),t=z?"right":"bottom",M=z?"left":"top",i=z?"width":"height";return l[t]<h(e[M])&&(c.offsets.popper[M]=h(e[M])-l[i]),l[M]>h(e[t])&&(c.offsets.popper[M]=h(e[t])),c}},arrow:{order:500,enabled:!0,fn:function(c,C){if(!x(c.instance.modifiers,"arrow","keepTogether"))return c;var l=C.element;if("string"==typeof l){if(!(l=c.instance.popper.querySelector(l)))return c}else if(!c.instance.popper.contains(l))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),c;var e=c.placement.split("-")[0],s=c.offsets,h=s.popper,z=s.reference,t=-1!==["left","right"].indexOf(e),M=t?"height":"width",i=t?"Top":"Left",a=i.toLowerCase(),n=t?"left":"top",r=t?"bottom":"right",o=m(l)[M];z[r]-o<h[a]&&(c.offsets.popper[a]-=h[a]-(z[r]-o)),z[a]+o>h[r]&&(c.offsets.popper[a]+=z[a]+o-h[r]);var v=z[a]+z[M]/2-o/2,V=H(c.instance.popper,"margin"+i).replace("px",""),L=v-f(c.offsets.popper)[a]-V;return L=E(q(h[M]-o,L),0),c.arrowElement=l,c.offsets.arrow={},c.offsets.arrow[a]=Math.round(L),c.offsets.arrow[n]="",c},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(o,v){if(c(o.instance.modifiers,"inner"))return o;if(o.flipped&&o.placement===o.originalPlacement)return o;var V=p(o.instance.popper,o.instance.reference,v.padding,v.boundariesElement),L=o.placement.split("-")[0],H=g(L),S=o.placement.split("-")[1]||"",f=[];switch(v.behavior){case X:f=[L,H];break;case K:f=s(L);break;case Q:f=s(L,!0);break;default:f=v.behavior}return f.forEach(function(c,C){if(L!==c||f.length===C+1)return o;L=o.placement.split("-")[0],H=g(L);var l=o.offsets.popper,e=o.offsets.reference,s=D,h="left"===L&&s(l.right)>s(e.left)||"right"===L&&s(l.left)<s(e.right)||"top"===L&&s(l.bottom)>s(e.top)||"bottom"===L&&s(l.top)<s(e.bottom),z=s(l.left)<s(V.left),t=s(l.right)>s(V.right),M=s(l.top)<s(V.top),i=s(l.bottom)>s(V.bottom),a="left"===L&&z||"right"===L&&t||"top"===L&&M||"bottom"===L&&i,n=-1!==["top","bottom"].indexOf(L),r=!!v.flipVariations&&(n&&"start"===S&&z||n&&"end"===S&&t||!n&&"start"===S&&M||!n&&"end"===S&&i);(h||a||r)&&(o.flipped=!0,(h||a)&&(L=f[C+1]),r&&(S=function(c){return"end"===c?"start":"start"===c?"end":c}(S)),o.placement=L+(S?"-"+S:""),o.offsets.popper=B({},o.offsets.popper,b(o.instance.popper,o.offsets.reference,o.placement)),o=y(o.instance.modifiers,o,"flip"))}),o},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(c){var C=c.placement,l=C.split("-")[0],e=c.offsets,s=e.popper,h=e.reference,z=-1!==["left","right"].indexOf(l),t=-1===["top","left"].indexOf(l);return s[z?"left":"top"]=h[l]-(t?s[z?"width":"height"]:0),c.placement=g(C),c.offsets.popper=f(s),c}},hide:{order:800,enabled:!0,fn:function(c){if(!x(c.instance.modifiers,"hide","preventOverflow"))return c;var C=c.offsets.reference,l=w(c.instance.modifiers,function(c){return"preventOverflow"===c.name}).boundaries;if(C.bottom<l.top||C.left>l.right||C.top>l.bottom||C.right<l.left){if(!0===c.hide)return c;c.hide=!0,c.attributes["x-out-of-boundaries"]=""}else{if(!1===c.hide)return c;c.hide=!1,c.attributes["x-out-of-boundaries"]=!1}return c}},computeStyle:{order:850,enabled:!0,fn:function(c,C){var l=C.x,e=C.y,s=c.offsets.popper,h=w(c.instance.modifiers,function(c){return"applyStyle"===c.name}).gpuAcceleration;void 0!==h&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var z,t,M=void 0===h?C.gpuAcceleration:h,i=d(S(c.instance.popper)),a={position:s.position},n={left:D(s.left),top:D(s.top),bottom:D(s.bottom),right:D(s.right)},r="bottom"===l?"top":"bottom",o="right"===e?"left":"right",v=k("transform");if(t="bottom"==r?-i.height+n.bottom:n.top,z="right"==o?-i.width+n.right:n.left,M&&v)a[v]="translate3d("+z+"px, "+t+"px, 0)",a[r]=0,a[o]=0,a.willChange="transform";else{var V="bottom"==r?-1:1,L="right"==o?-1:1;a[r]=t*V,a[o]=z*L,a.willChange=r+", "+o}var H={"x-placement":c.placement};return c.attributes=B({},H,c.attributes),c.styles=B({},a,c.styles),c.arrowStyles=B({},c.offsets.arrow,c.arrowStyles),c},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(c){return _(c.instance.popper,c.styles),function(C,l){Object.keys(l).forEach(function(c){!1===l[c]?C.removeAttribute(c):C.setAttribute(c,l[c])})}(c.instance.popper,c.attributes),c.arrowElement&&Object.keys(c.arrowStyles).length&&_(c.arrowElement,c.arrowStyles),c},onLoad:function(c,C,l,e,s){var h=i(0,C,c),z=t(l.placement,h,C,c,l.modifiers.flip.boundariesElement,l.modifiers.flip.padding);return C.setAttribute("x-placement",z),_(C,{position:"absolute"}),l},gpuAcceleration:void 0}}},G}),function(c,C){"object"==typeof exports&&"undefined"!=typeof module?C(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],C):C((c=c||self).bootstrap={},c.jQuery,c.Popper)}(this,function(c,v,n){"use strict";function e(c,C){for(var l=0;l<C.length;l++){var e=C[l];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(c,e.key,e)}}function h(c,C,l){return C&&e(c.prototype,C),l&&e(c,l),c}function C(C,c){var l=Object.keys(C);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(C);c&&(e=e.filter(function(c){return Object.getOwnPropertyDescriptor(C,c).enumerable})),l.push.apply(l,e)}return l}function z(s){for(var c=1;c<arguments.length;c++){var h=null!=arguments[c]?arguments[c]:{};c%2?C(Object(h),!0).forEach(function(c){var C,l,e;C=s,e=h[l=c],l in C?Object.defineProperty(C,l,{value:e,enumerable:!0,configurable:!0,writable:!0}):C[l]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):C(Object(h)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(h,c))})}return s}v=v&&v.hasOwnProperty("default")?v.default:v,n=n&&n.hasOwnProperty("default")?n.default:n;var l="transitionend";var V={TRANSITION_END:"bsTransitionEnd",getUID:function(c){for(;c+=~~(1e6*Math.random()),document.getElementById(c););return c},getSelectorFromElement:function(c){var C=c.getAttribute("data-target");if(!C||"#"===C){var l=c.getAttribute("href");C=l&&"#"!==l?l.trim():""}try{return document.querySelector(C)?C:null}catch(c){return null}},getTransitionDurationFromElement:function(c){if(!c)return 0;var C=v(c).css("transition-duration"),l=v(c).css("transition-delay"),e=parseFloat(C),s=parseFloat(l);return e||s?(C=C.split(",")[0],l=l.split(",")[0],1e3*(parseFloat(C)+parseFloat(l))):0},reflow:function(c){return c.offsetHeight},triggerTransitionEnd:function(c){v(c).trigger(l)},supportsTransitionEnd:function(){return Boolean(l)},isElement:function(c){return(c[0]||c).nodeType},typeCheckConfig:function(c,C,l){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)){var s=l[e],h=C[e],z=h&&V.isElement(h)?"element":(t=h,{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(z))throw new Error(c.toUpperCase()+': Option "'+e+'" provided type "'+z+'" but expected type "'+s+'".')}var t},findShadowRoot:function(c){if(!document.documentElement.attachShadow)return null;if("function"!=typeof c.getRootNode)return c instanceof ShadowRoot?c:c.parentNode?V.findShadowRoot(c.parentNode):null;var C=c.getRootNode();return C instanceof ShadowRoot?C:null},jQueryDetection:function(){if(void 0===v)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var c=v.fn.jquery.split(" ")[0].split(".");if(c[0]<2&&c[1]<9||1===c[0]&&9===c[1]&&c[2]<1||4<=c[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};V.jQueryDetection(),v.fn.emulateTransitionEnd=function(c){var C=this,l=!1;return v(this).one(V.TRANSITION_END,function(){l=!0}),setTimeout(function(){l||V.triggerTransitionEnd(C)},c),this},v.event.special[V.TRANSITION_END]={bindType:l,delegateType:l,handle:function(c){if(v(c.target).is(this))return c.handleObj.handler.apply(this,arguments)}};var s,t="alert",M="bs.alert",i="."+M,a=v.fn[t],r={CLOSE:"close"+i,CLOSED:"closed"+i,CLICK_DATA_API:"click"+i+".data-api"},o=((s=L.prototype).close=function(c){var C=this._element;c&&(C=this._getRootElement(c)),this._triggerCloseEvent(C).isDefaultPrevented()||this._removeElement(C)},s.dispose=function(){v.removeData(this._element,M),this._element=null},s._getRootElement=function(c){var C=V.getSelectorFromElement(c),l=!1;return C&&(l=document.querySelector(C)),l||v(c).closest(".alert")[0]},s._triggerCloseEvent=function(c){var C=v.Event(r.CLOSE);return v(c).trigger(C),C},s._removeElement=function(C){var l=this;if(v(C).removeClass("show"),v(C).hasClass("fade")){var c=V.getTransitionDurationFromElement(C);v(C).one(V.TRANSITION_END,function(c){return l._destroyElement(C,c)}).emulateTransitionEnd(c)}else this._destroyElement(C)},s._destroyElement=function(c){v(c).detach().trigger(r.CLOSED).remove()},L._jQueryInterface=function(l){return this.each(function(){var c=v(this),C=c.data(M);C||(C=new L(this),c.data(M,C)),"close"===l&&C[l](this)})},L._handleDismiss=function(C){return function(c){c&&c.preventDefault(),C.close(this)}},h(L,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),L);function L(c){this._element=c}v(document).on(r.CLICK_DATA_API,'[data-dismiss="alert"]',o._handleDismiss(new o)),v.fn[t]=o._jQueryInterface,v.fn[t].Constructor=o,v.fn[t].noConflict=function(){return v.fn[t]=a,o._jQueryInterface};var H,S="button",f="bs.button",d="."+f,u=".data-api",p=v.fn[S],m="active",g='[data-toggle^="button"]',b='input:not([type="hidden"])',w={CLICK_DATA_API:"click"+d+u,FOCUS_BLUR_DATA_API:"focus"+d+u+" blur"+d+u,LOAD_DATA_API:"load"+d+u},y=((H=k.prototype).toggle=function(){var c=!0,C=!0,l=v(this._element).closest('[data-toggle="buttons"]')[0];if(l){var e=this._element.querySelector(b);if(e){if("radio"===e.type)if(e.checked&&this._element.classList.contains(m))c=!1;else{var s=l.querySelector(".active");s&&v(s).removeClass(m)}else"checkbox"===e.type?"LABEL"===this._element.tagName&&e.checked===this._element.classList.contains(m)&&(c=!1):c=!1;c&&(e.checked=!this._element.classList.contains(m),v(e).trigger("change")),e.focus(),C=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(C&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(m)),c&&v(this._element).toggleClass(m))},H.dispose=function(){v.removeData(this._element,f),this._element=null},k._jQueryInterface=function(C){return this.each(function(){var c=v(this).data(f);c||(c=new k(this),v(this).data(f,c)),"toggle"===C&&c[C]()})},h(k,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),k);function k(c){this._element=c}v(document).on(w.CLICK_DATA_API,g,function(c){var C=c.target;if(v(C).hasClass("btn")||(C=v(C).closest(".btn")[0]),!C||C.hasAttribute("disabled")||C.classList.contains("disabled"))c.preventDefault();else{var l=C.querySelector(b);if(l&&(l.hasAttribute("disabled")||l.classList.contains("disabled")))return void c.preventDefault();y._jQueryInterface.call(v(C),"toggle")}}).on(w.FOCUS_BLUR_DATA_API,g,function(c){var C=v(c.target).closest(".btn")[0];v(C).toggleClass("focus",/^focus(in)?$/.test(c.type))}),v(window).on(w.LOAD_DATA_API,function(){for(var c=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),C=0,l=c.length;C<l;C++){var e=c[C],s=e.querySelector(b);s.checked||s.hasAttribute("checked")?e.classList.add(m):e.classList.remove(m)}for(var h=0,z=(c=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;h<z;h++){var t=c[h];"true"===t.getAttribute("aria-pressed")?t.classList.add(m):t.classList.remove(m)}}),v.fn[S]=y._jQueryInterface,v.fn[S].Constructor=y,v.fn[S].noConflict=function(){return v.fn[S]=p,y._jQueryInterface};var _,x="carousel",T="bs.carousel",q="."+T,D=v.fn[x],E={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},I={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},A="next",P="prev",O={SLIDE:"slide"+q,SLID:"slid"+q,KEYDOWN:"keydown"+q,MOUSEENTER:"mouseenter"+q,MOUSELEAVE:"mouseleave"+q,TOUCHSTART:"touchstart"+q,TOUCHMOVE:"touchmove"+q,TOUCHEND:"touchend"+q,POINTERDOWN:"pointerdown"+q,POINTERUP:"pointerup"+q,DRAG_START:"dragstart"+q,LOAD_DATA_API:"load"+q+".data-api",CLICK_DATA_API:"click"+q+".data-api"},N="active",j=".active.carousel-item",$={TOUCH:"touch",PEN:"pen"},W=((_=R.prototype).next=function(){this._isSliding||this._slide(A)},_.nextWhenVisible=function(){!document.hidden&&v(this._element).is(":visible")&&"hidden"!==v(this._element).css("visibility")&&this.next()},_.prev=function(){this._isSliding||this._slide(P)},_.pause=function(c){c||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(V.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},_.cycle=function(c){c||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},_.to=function(c){var C=this;this._activeElement=this._element.querySelector(j);var l=this._getItemIndex(this._activeElement);if(!(c>this._items.length-1||c<0))if(this._isSliding)v(this._element).one(O.SLID,function(){return C.to(c)});else{if(l===c)return this.pause(),void this.cycle();var e=l<c?A:P;this._slide(e,this._items[c])}},_.dispose=function(){v(this._element).off(q),v.removeData(this._element,T),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},_._getConfig=function(c){return c=z({},E,{},c),V.typeCheckConfig(x,c,I),c},_._handleSwipe=function(){var c=Math.abs(this.touchDeltaX);if(!(c<=40)){var C=c/this.touchDeltaX;(this.touchDeltaX=0)<C&&this.prev(),C<0&&this.next()}},_._addEventListeners=function(){var C=this;this._config.keyboard&&v(this._element).on(O.KEYDOWN,function(c){return C._keydown(c)}),"hover"===this._config.pause&&v(this._element).on(O.MOUSEENTER,function(c){return C.pause(c)}).on(O.MOUSELEAVE,function(c){return C.cycle(c)}),this._config.touch&&this._addTouchEventListeners()},_._addTouchEventListeners=function(){var l=this;if(this._touchSupported){var C=function(c){l._pointerEvent&&$[c.originalEvent.pointerType.toUpperCase()]?l.touchStartX=c.originalEvent.clientX:l._pointerEvent||(l.touchStartX=c.originalEvent.touches[0].clientX)},e=function(c){l._pointerEvent&&$[c.originalEvent.pointerType.toUpperCase()]&&(l.touchDeltaX=c.originalEvent.clientX-l.touchStartX),l._handleSwipe(),"hover"===l._config.pause&&(l.pause(),l.touchTimeout&&clearTimeout(l.touchTimeout),l.touchTimeout=setTimeout(function(c){return l.cycle(c)},500+l._config.interval))};v(this._element.querySelectorAll(".carousel-item img")).on(O.DRAG_START,function(c){return c.preventDefault()}),this._pointerEvent?(v(this._element).on(O.POINTERDOWN,function(c){return C(c)}),v(this._element).on(O.POINTERUP,function(c){return e(c)}),this._element.classList.add("pointer-event")):(v(this._element).on(O.TOUCHSTART,function(c){return C(c)}),v(this._element).on(O.TOUCHMOVE,function(c){var C;(C=c).originalEvent.touches&&1<C.originalEvent.touches.length?l.touchDeltaX=0:l.touchDeltaX=C.originalEvent.touches[0].clientX-l.touchStartX}),v(this._element).on(O.TOUCHEND,function(c){return e(c)}))}},_._keydown=function(c){if(!/input|textarea/i.test(c.target.tagName))switch(c.which){case 37:c.preventDefault(),this.prev();break;case 39:c.preventDefault(),this.next()}},_._getItemIndex=function(c){return this._items=c&&c.parentNode?[].slice.call(c.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(c)},_._getItemByDirection=function(c,C){var l=c===A,e=c===P,s=this._getItemIndex(C),h=this._items.length-1;if((e&&0===s||l&&s===h)&&!this._config.wrap)return C;var z=(s+(c===P?-1:1))%this._items.length;return-1==z?this._items[this._items.length-1]:this._items[z]},_._triggerSlideEvent=function(c,C){var l=this._getItemIndex(c),e=this._getItemIndex(this._element.querySelector(j)),s=v.Event(O.SLIDE,{relatedTarget:c,direction:C,from:e,to:l});return v(this._element).trigger(s),s},_._setActiveIndicatorElement=function(c){if(this._indicatorsElement){var C=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));v(C).removeClass(N);var l=this._indicatorsElement.children[this._getItemIndex(c)];l&&v(l).addClass(N)}},_._slide=function(c,C){var l,e,s,h=this,z=this._element.querySelector(j),t=this._getItemIndex(z),M=C||z&&this._getItemByDirection(c,z),i=this._getItemIndex(M),a=Boolean(this._interval);if(s=c===A?(l="carousel-item-left",e="carousel-item-next","left"):(l="carousel-item-right",e="carousel-item-prev","right"),M&&v(M).hasClass(N))this._isSliding=!1;else if(!this._triggerSlideEvent(M,s).isDefaultPrevented()&&z&&M){this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(M);var n=v.Event(O.SLID,{relatedTarget:M,direction:s,from:t,to:i});if(v(this._element).hasClass("slide")){v(M).addClass(e),V.reflow(M),v(z).addClass(l),v(M).addClass(l);var r=parseInt(M.getAttribute("data-interval"),10);r?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=r):this._config.interval=this._config.defaultInterval||this._config.interval;var o=V.getTransitionDurationFromElement(z);v(z).one(V.TRANSITION_END,function(){v(M).removeClass(l+" "+e).addClass(N),v(z).removeClass(N+" "+e+" "+l),h._isSliding=!1,setTimeout(function(){return v(h._element).trigger(n)},0)}).emulateTransitionEnd(o)}else v(z).removeClass(N),v(M).addClass(N),this._isSliding=!1,v(this._element).trigger(n);a&&this.cycle()}},R._jQueryInterface=function(e){return this.each(function(){var c=v(this).data(T),C=z({},E,{},v(this).data());"object"==typeof e&&(C=z({},C,{},e));var l="string"==typeof e?e:C.slide;if(c||(c=new R(this,C),v(this).data(T,c)),"number"==typeof e)c.to(e);else if("string"==typeof l){if(void 0===c[l])throw new TypeError('No method named "'+l+'"');c[l]()}else C.interval&&C.ride&&(c.pause(),c.cycle())})},R._dataApiClickHandler=function(c){var C=V.getSelectorFromElement(this);if(C){var l=v(C)[0];if(l&&v(l).hasClass("carousel")){var e=z({},v(l).data(),{},v(this).data()),s=this.getAttribute("data-slide-to");s&&(e.interval=!1),R._jQueryInterface.call(v(l),e),s&&v(l).data(T).to(s),c.preventDefault()}}},h(R,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return E}}]),R);function R(c,C){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(C),this._element=c,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}v(document).on(O.CLICK_DATA_API,"[data-slide], [data-slide-to]",W._dataApiClickHandler),v(window).on(O.LOAD_DATA_API,function(){for(var c=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),C=0,l=c.length;C<l;C++){var e=v(c[C]);W._jQueryInterface.call(e,e.data())}}),v.fn[x]=W._jQueryInterface,v.fn[x].Constructor=W,v.fn[x].noConflict=function(){return v.fn[x]=D,W._jQueryInterface};var F,B="collapse",Y="bs.collapse",U="."+Y,X=v.fn[B],K={toggle:!0,parent:""},Q={toggle:"boolean",parent:"(string|element)"},G={SHOW:"show"+U,SHOWN:"shown"+U,HIDE:"hide"+U,HIDDEN:"hidden"+U,CLICK_DATA_API:"click"+U+".data-api"},Z="show",J="collapse",cc="collapsing",Cc="collapsed",lc='[data-toggle="collapse"]',ec=((F=sc.prototype).toggle=function(){v(this._element).hasClass(Z)?this.hide():this.show()},F.show=function(){var c,C,l=this;if(!(this._isTransitioning||v(this._element).hasClass(Z)||(this._parent&&0===(c=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(c){return"string"==typeof l._config.parent?c.getAttribute("data-parent")===l._config.parent:c.classList.contains(J)})).length&&(c=null),c&&(C=v(c).not(this._selector).data(Y))&&C._isTransitioning))){var e=v.Event(G.SHOW);if(v(this._element).trigger(e),!e.isDefaultPrevented()){c&&(sc._jQueryInterface.call(v(c).not(this._selector),"hide"),C||v(c).data(Y,null));var s=this._getDimension();v(this._element).removeClass(J).addClass(cc),this._element.style[s]=0,this._triggerArray.length&&v(this._triggerArray).removeClass(Cc).attr("aria-expanded",!0),this.setTransitioning(!0);var h="scroll"+(s[0].toUpperCase()+s.slice(1)),z=V.getTransitionDurationFromElement(this._element);v(this._element).one(V.TRANSITION_END,function(){v(l._element).removeClass(cc).addClass(J).addClass(Z),l._element.style[s]="",l.setTransitioning(!1),v(l._element).trigger(G.SHOWN)}).emulateTransitionEnd(z),this._element.style[s]=this._element[h]+"px"}}},F.hide=function(){var c=this;if(!this._isTransitioning&&v(this._element).hasClass(Z)){var C=v.Event(G.HIDE);if(v(this._element).trigger(C),!C.isDefaultPrevented()){var l=this._getDimension();this._element.style[l]=this._element.getBoundingClientRect()[l]+"px",V.reflow(this._element),v(this._element).addClass(cc).removeClass(J).removeClass(Z);var e=this._triggerArray.length;if(0<e)for(var s=0;s<e;s++){var h=this._triggerArray[s],z=V.getSelectorFromElement(h);null!==z&&(v([].slice.call(document.querySelectorAll(z))).hasClass(Z)||v(h).addClass(Cc).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[l]="";var t=V.getTransitionDurationFromElement(this._element);v(this._element).one(V.TRANSITION_END,function(){c.setTransitioning(!1),v(c._element).removeClass(cc).addClass(J).trigger(G.HIDDEN)}).emulateTransitionEnd(t)}}},F.setTransitioning=function(c){this._isTransitioning=c},F.dispose=function(){v.removeData(this._element,Y),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},F._getConfig=function(c){return(c=z({},K,{},c)).toggle=Boolean(c.toggle),V.typeCheckConfig(B,c,Q),c},F._getDimension=function(){return v(this._element).hasClass("width")?"width":"height"},F._getParent=function(){var c,l=this;V.isElement(this._config.parent)?(c=this._config.parent,void 0!==this._config.parent.jquery&&(c=this._config.parent[0])):c=document.querySelector(this._config.parent);var C='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',e=[].slice.call(c.querySelectorAll(C));return v(e).each(function(c,C){l._addAriaAndCollapsedClass(sc._getTargetFromElement(C),[C])}),c},F._addAriaAndCollapsedClass=function(c,C){var l=v(c).hasClass(Z);C.length&&v(C).toggleClass(Cc,!l).attr("aria-expanded",l)},sc._getTargetFromElement=function(c){var C=V.getSelectorFromElement(c);return C?document.querySelector(C):null},sc._jQueryInterface=function(e){return this.each(function(){var c=v(this),C=c.data(Y),l=z({},K,{},c.data(),{},"object"==typeof e&&e?e:{});if(!C&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),C||(C=new sc(this,l),c.data(Y,C)),"string"==typeof e){if(void 0===C[e])throw new TypeError('No method named "'+e+'"');C[e]()}})},h(sc,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return K}}]),sc);function sc(C,c){this._isTransitioning=!1,this._element=C,this._config=this._getConfig(c),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+C.id+'"],[data-toggle="collapse"][data-target="#'+C.id+'"]'));for(var l=[].slice.call(document.querySelectorAll(lc)),e=0,s=l.length;e<s;e++){var h=l[e],z=V.getSelectorFromElement(h),t=[].slice.call(document.querySelectorAll(z)).filter(function(c){return c===C});null!==z&&0<t.length&&(this._selector=z,this._triggerArray.push(h))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}v(document).on(G.CLICK_DATA_API,lc,function(c){"A"===c.currentTarget.tagName&&c.preventDefault();var l=v(this),C=V.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(C));v(e).each(function(){var c=v(this),C=c.data(Y)?"toggle":l.data();ec._jQueryInterface.call(c,C)})}),v.fn[B]=ec._jQueryInterface,v.fn[B].Constructor=ec,v.fn[B].noConflict=function(){return v.fn[B]=X,ec._jQueryInterface};var hc,zc="dropdown",tc="bs.dropdown",Mc="."+tc,ic=".data-api",ac=v.fn[zc],nc=new RegExp("38|40|27"),rc={HIDE:"hide"+Mc,HIDDEN:"hidden"+Mc,SHOW:"show"+Mc,SHOWN:"shown"+Mc,CLICK:"click"+Mc,CLICK_DATA_API:"click"+Mc+ic,KEYDOWN_DATA_API:"keydown"+Mc+ic,KEYUP_DATA_API:"keyup"+Mc+ic},oc="disabled",vc="show",Vc="dropdown-menu-right",Lc='[data-toggle="dropdown"]',Hc=".dropdown-menu",Sc={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},fc={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},dc=((hc=uc.prototype).toggle=function(){if(!this._element.disabled&&!v(this._element).hasClass(oc)){var c=v(this._menu).hasClass(vc);uc._clearMenus(),c||this.show(!0)}},hc.show=function(c){if(void 0===c&&(c=!1),!(this._element.disabled||v(this._element).hasClass(oc)||v(this._menu).hasClass(vc))){var C={relatedTarget:this._element},l=v.Event(rc.SHOW,C),e=uc._getParentFromElement(this._element);if(v(e).trigger(l),!l.isDefaultPrevented()){if(!this._inNavbar&&c){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=e:V.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&v(e).addClass("position-static"),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===v(e).closest(".navbar-nav").length&&v(document.body).children().on("mouseover",null,v.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),v(this._menu).toggleClass(vc),v(e).toggleClass(vc).trigger(v.Event(rc.SHOWN,C))}}},hc.hide=function(){if(!this._element.disabled&&!v(this._element).hasClass(oc)&&v(this._menu).hasClass(vc)){var c={relatedTarget:this._element},C=v.Event(rc.HIDE,c),l=uc._getParentFromElement(this._element);v(l).trigger(C),C.isDefaultPrevented()||(this._popper&&this._popper.destroy(),v(this._menu).toggleClass(vc),v(l).toggleClass(vc).trigger(v.Event(rc.HIDDEN,c)))}},hc.dispose=function(){v.removeData(this._element,tc),v(this._element).off(Mc),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},hc.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},hc._addEventListeners=function(){var C=this;v(this._element).on(rc.CLICK,function(c){c.preventDefault(),c.stopPropagation(),C.toggle()})},hc._getConfig=function(c){return c=z({},this.constructor.Default,{},v(this._element).data(),{},c),V.typeCheckConfig(zc,c,this.constructor.DefaultType),c},hc._getMenuElement=function(){if(!this._menu){var c=uc._getParentFromElement(this._element);c&&(this._menu=c.querySelector(Hc))}return this._menu},hc._getPlacement=function(){var c=v(this._element.parentNode),C="bottom-start";return c.hasClass("dropup")?(C="top-start",v(this._menu).hasClass(Vc)&&(C="top-end")):c.hasClass("dropright")?C="right-start":c.hasClass("dropleft")?C="left-start":v(this._menu).hasClass(Vc)&&(C="bottom-end"),C},hc._detectNavbar=function(){return 0<v(this._element).closest(".navbar").length},hc._getOffset=function(){var C=this,c={};return"function"==typeof this._config.offset?c.fn=function(c){return c.offsets=z({},c.offsets,{},C._config.offset(c.offsets,C._element)||{}),c}:c.offset=this._config.offset,c},hc._getPopperConfig=function(){var c={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(c.modifiers.applyStyle={enabled:!1}),z({},c,{},this._config.popperConfig)},uc._jQueryInterface=function(C){return this.each(function(){var c=v(this).data(tc);if(c||(c=new uc(this,"object"==typeof C?C:null),v(this).data(tc,c)),"string"==typeof C){if(void 0===c[C])throw new TypeError('No method named "'+C+'"');c[C]()}})},uc._clearMenus=function(c){if(!c||3!==c.which&&("keyup"!==c.type||9===c.which))for(var C=[].slice.call(document.querySelectorAll(Lc)),l=0,e=C.length;l<e;l++){var s=uc._getParentFromElement(C[l]),h=v(C[l]).data(tc),z={relatedTarget:C[l]};if(c&&"click"===c.type&&(z.clickEvent=c),h){var t=h._menu;if(v(s).hasClass(vc)&&!(c&&("click"===c.type&&/input|textarea/i.test(c.target.tagName)||"keyup"===c.type&&9===c.which)&&v.contains(s,c.target))){var M=v.Event(rc.HIDE,z);v(s).trigger(M),M.isDefaultPrevented()||("ontouchstart"in document.documentElement&&v(document.body).children().off("mouseover",null,v.noop),C[l].setAttribute("aria-expanded","false"),h._popper&&h._popper.destroy(),v(t).removeClass(vc),v(s).removeClass(vc).trigger(v.Event(rc.HIDDEN,z)))}}}},uc._getParentFromElement=function(c){var C,l=V.getSelectorFromElement(c);return l&&(C=document.querySelector(l)),C||c.parentNode},uc._dataApiKeydownHandler=function(c){if((/input|textarea/i.test(c.target.tagName)?!(32===c.which||27!==c.which&&(40!==c.which&&38!==c.which||v(c.target).closest(Hc).length)):nc.test(c.which))&&(c.preventDefault(),c.stopPropagation(),!this.disabled&&!v(this).hasClass(oc))){var C=uc._getParentFromElement(this),l=v(C).hasClass(vc);if(l||27!==c.which)if(l&&(!l||27!==c.which&&32!==c.which)){var e=[].slice.call(C.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(c){return v(c).is(":visible")});if(0!==e.length){var s=e.indexOf(c.target);38===c.which&&0<s&&s--,40===c.which&&s<e.length-1&&s++,s<0&&(s=0),e[s].focus()}}else{if(27===c.which){var h=C.querySelector(Lc);v(h).trigger("focus")}v(this).trigger("click")}}},h(uc,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Sc}},{key:"DefaultType",get:function(){return fc}}]),uc);function uc(c,C){this._element=c,this._popper=null,this._config=this._getConfig(C),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}v(document).on(rc.KEYDOWN_DATA_API,Lc,dc._dataApiKeydownHandler).on(rc.KEYDOWN_DATA_API,Hc,dc._dataApiKeydownHandler).on(rc.CLICK_DATA_API+" "+rc.KEYUP_DATA_API,dc._clearMenus).on(rc.CLICK_DATA_API,Lc,function(c){c.preventDefault(),c.stopPropagation(),dc._jQueryInterface.call(v(this),"toggle")}).on(rc.CLICK_DATA_API,".dropdown form",function(c){c.stopPropagation()}),v.fn[zc]=dc._jQueryInterface,v.fn[zc].Constructor=dc,v.fn[zc].noConflict=function(){return v.fn[zc]=ac,dc._jQueryInterface};var pc,mc="modal",gc="bs.modal",bc="."+gc,wc=v.fn[mc],yc={backdrop:!0,keyboard:!0,focus:!0,show:!0},kc={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},_c={HIDE:"hide"+bc,HIDE_PREVENTED:"hidePrevented"+bc,HIDDEN:"hidden"+bc,SHOW:"show"+bc,SHOWN:"shown"+bc,FOCUSIN:"focusin"+bc,RESIZE:"resize"+bc,CLICK_DISMISS:"click.dismiss"+bc,KEYDOWN_DISMISS:"keydown.dismiss"+bc,MOUSEUP_DISMISS:"mouseup.dismiss"+bc,MOUSEDOWN_DISMISS:"mousedown.dismiss"+bc,CLICK_DATA_API:"click"+bc+".data-api"},xc="modal-open",Tc="fade",qc="show",Dc="modal-static",Ec=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ic=".sticky-top",Ac=((pc=Pc.prototype).toggle=function(c){return this._isShown?this.hide():this.show(c)},pc.show=function(c){var C=this;if(!this._isShown&&!this._isTransitioning){v(this._element).hasClass(Tc)&&(this._isTransitioning=!0);var l=v.Event(_c.SHOW,{relatedTarget:c});v(this._element).trigger(l),this._isShown||l.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),v(this._element).on(_c.CLICK_DISMISS,'[data-dismiss="modal"]',function(c){return C.hide(c)}),v(this._dialog).on(_c.MOUSEDOWN_DISMISS,function(){v(C._element).one(_c.MOUSEUP_DISMISS,function(c){v(c.target).is(C._element)&&(C._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return C._showElement(c)}))}},pc.hide=function(c){var C=this;if(c&&c.preventDefault(),this._isShown&&!this._isTransitioning){var l=v.Event(_c.HIDE);if(v(this._element).trigger(l),this._isShown&&!l.isDefaultPrevented()){this._isShown=!1;var e=v(this._element).hasClass(Tc);if(e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),v(document).off(_c.FOCUSIN),v(this._element).removeClass(qc),v(this._element).off(_c.CLICK_DISMISS),v(this._dialog).off(_c.MOUSEDOWN_DISMISS),e){var s=V.getTransitionDurationFromElement(this._element);v(this._element).one(V.TRANSITION_END,function(c){return C._hideModal(c)}).emulateTransitionEnd(s)}else this._hideModal()}}},pc.dispose=function(){[window,this._element,this._dialog].forEach(function(c){return v(c).off(bc)}),v(document).off(_c.FOCUSIN),v.removeData(this._element,gc),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},pc.handleUpdate=function(){this._adjustDialog()},pc._getConfig=function(c){return c=z({},yc,{},c),V.typeCheckConfig(mc,c,kc),c},pc._triggerBackdropTransition=function(){var c=this;if("static"===this._config.backdrop){var C=v.Event(_c.HIDE_PREVENTED);if(v(this._element).trigger(C),C.defaultPrevented)return;this._element.classList.add(Dc);var l=V.getTransitionDurationFromElement(this._element);v(this._element).one(V.TRANSITION_END,function(){c._element.classList.remove(Dc)}).emulateTransitionEnd(l),this._element.focus()}else this.hide()},pc._showElement=function(c){var C=this,l=v(this._element).hasClass(Tc),e=this._dialog?this._dialog.querySelector(".modal-body"):null;function s(){C._config.focus&&C._element.focus(),C._isTransitioning=!1,v(C._element).trigger(h)}this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),v(this._dialog).hasClass("modal-dialog-scrollable")&&e?e.scrollTop=0:this._element.scrollTop=0,l&&V.reflow(this._element),v(this._element).addClass(qc),this._config.focus&&this._enforceFocus();var h=v.Event(_c.SHOWN,{relatedTarget:c});if(l){var z=V.getTransitionDurationFromElement(this._dialog);v(this._dialog).one(V.TRANSITION_END,s).emulateTransitionEnd(z)}else s()},pc._enforceFocus=function(){var C=this;v(document).off(_c.FOCUSIN).on(_c.FOCUSIN,function(c){document!==c.target&&C._element!==c.target&&0===v(C._element).has(c.target).length&&C._element.focus()})},pc._setEscapeEvent=function(){var C=this;this._isShown&&this._config.keyboard?v(this._element).on(_c.KEYDOWN_DISMISS,function(c){27===c.which&&C._triggerBackdropTransition()}):this._isShown||v(this._element).off(_c.KEYDOWN_DISMISS)},pc._setResizeEvent=function(){var C=this;this._isShown?v(window).on(_c.RESIZE,function(c){return C.handleUpdate(c)}):v(window).off(_c.RESIZE)},pc._hideModal=function(){var c=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){v(document.body).removeClass(xc),c._resetAdjustments(),c._resetScrollbar(),v(c._element).trigger(_c.HIDDEN)})},pc._removeBackdrop=function(){this._backdrop&&(v(this._backdrop).remove(),this._backdrop=null)},pc._showBackdrop=function(c){var C=this,l=v(this._element).hasClass(Tc)?Tc:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",l&&this._backdrop.classList.add(l),v(this._backdrop).appendTo(document.body),v(this._element).on(_c.CLICK_DISMISS,function(c){C._ignoreBackdropClick?C._ignoreBackdropClick=!1:c.target===c.currentTarget&&C._triggerBackdropTransition()}),l&&V.reflow(this._backdrop),v(this._backdrop).addClass(qc),!c)return;if(!l)return void c();var e=V.getTransitionDurationFromElement(this._backdrop);v(this._backdrop).one(V.TRANSITION_END,c).emulateTransitionEnd(e)}else if(!this._isShown&&this._backdrop){v(this._backdrop).removeClass(qc);var s=function(){C._removeBackdrop(),c&&c()};if(v(this._element).hasClass(Tc)){var h=V.getTransitionDurationFromElement(this._backdrop);v(this._backdrop).one(V.TRANSITION_END,s).emulateTransitionEnd(h)}else s()}else c&&c()},pc._adjustDialog=function(){var c=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&c&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!c&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},pc._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},pc._checkScrollbar=function(){var c=document.body.getBoundingClientRect();this._isBodyOverflowing=c.left+c.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},pc._setScrollbar=function(){var s=this;if(this._isBodyOverflowing){var c=[].slice.call(document.querySelectorAll(Ec)),C=[].slice.call(document.querySelectorAll(Ic));v(c).each(function(c,C){var l=C.style.paddingRight,e=v(C).css("padding-right");v(C).data("padding-right",l).css("padding-right",parseFloat(e)+s._scrollbarWidth+"px")}),v(C).each(function(c,C){var l=C.style.marginRight,e=v(C).css("margin-right");v(C).data("margin-right",l).css("margin-right",parseFloat(e)-s._scrollbarWidth+"px")});var l=document.body.style.paddingRight,e=v(document.body).css("padding-right");v(document.body).data("padding-right",l).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px")}v(document.body).addClass(xc)},pc._resetScrollbar=function(){var c=[].slice.call(document.querySelectorAll(Ec));v(c).each(function(c,C){var l=v(C).data("padding-right");v(C).removeData("padding-right"),C.style.paddingRight=l||""});var C=[].slice.call(document.querySelectorAll(Ic));v(C).each(function(c,C){var l=v(C).data("margin-right");void 0!==l&&v(C).css("margin-right",l).removeData("margin-right")});var l=v(document.body).data("padding-right");v(document.body).removeData("padding-right"),document.body.style.paddingRight=l||""},pc._getScrollbarWidth=function(){var c=document.createElement("div");c.className="modal-scrollbar-measure",document.body.appendChild(c);var C=c.getBoundingClientRect().width-c.clientWidth;return document.body.removeChild(c),C},Pc._jQueryInterface=function(l,e){return this.each(function(){var c=v(this).data(gc),C=z({},yc,{},v(this).data(),{},"object"==typeof l&&l?l:{});if(c||(c=new Pc(this,C),v(this).data(gc,c)),"string"==typeof l){if(void 0===c[l])throw new TypeError('No method named "'+l+'"');c[l](e)}else C.show&&c.show(e)})},h(Pc,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return yc}}]),Pc);function Pc(c,C){this._config=this._getConfig(C),this._element=c,this._dialog=c.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}v(document).on(_c.CLICK_DATA_API,'[data-toggle="modal"]',function(c){var C,l=this,e=V.getSelectorFromElement(this);e&&(C=document.querySelector(e));var s=v(C).data(gc)?"toggle":z({},v(C).data(),{},v(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||c.preventDefault();var h=v(C).one(_c.SHOW,function(c){c.isDefaultPrevented()||h.one(_c.HIDDEN,function(){v(l).is(":visible")&&l.focus()})});Ac._jQueryInterface.call(v(C),s,this)}),v.fn[mc]=Ac._jQueryInterface,v.fn[mc].Constructor=Ac,v.fn[mc].noConflict=function(){return v.fn[mc]=wc,Ac._jQueryInterface};var Oc=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Nc=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,jc=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function $c(c,h,C){if(0===c.length)return c;if(C&&"function"==typeof C)return C(c);for(var l=(new window.DOMParser).parseFromString(c,"text/html"),z=Object.keys(h),t=[].slice.call(l.body.querySelectorAll("*")),e=function(c){var C=t[c],l=C.nodeName.toLowerCase();if(-1===z.indexOf(C.nodeName.toLowerCase()))return C.parentNode.removeChild(C),"continue";var e=[].slice.call(C.attributes),s=[].concat(h["*"]||[],h[l]||[]);e.forEach(function(c){!function(c,C){var l=c.nodeName.toLowerCase();if(-1!==C.indexOf(l))return-1===Oc.indexOf(l)||Boolean(c.nodeValue.match(Nc)||c.nodeValue.match(jc));for(var e=C.filter(function(c){return c instanceof RegExp}),s=0,h=e.length;s<h;s++)if(l.match(e[s]))return!0;return!1}(c,s)&&C.removeAttribute(c.nodeName)})},s=0,M=t.length;s<M;s++)e(s);return l.body.innerHTML}var Wc,Rc="tooltip",Fc="bs.tooltip",Bc="."+Fc,Yc=v.fn[Rc],Uc="bs-tooltip",Xc=new RegExp("(^|\\s)"+Uc+"\\S+","g"),Kc=["sanitize","whiteList","sanitizeFn"],Qc={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Gc={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Zc={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Jc="show",cC={HIDE:"hide"+Bc,HIDDEN:"hidden"+Bc,SHOW:"show"+Bc,SHOWN:"shown"+Bc,INSERTED:"inserted"+Bc,CLICK:"click"+Bc,FOCUSIN:"focusin"+Bc,FOCUSOUT:"focusout"+Bc,MOUSEENTER:"mouseenter"+Bc,MOUSELEAVE:"mouseleave"+Bc},CC="fade",lC="show",eC="hover",sC=((Wc=hC.prototype).enable=function(){this._isEnabled=!0},Wc.disable=function(){this._isEnabled=!1},Wc.toggleEnabled=function(){this._isEnabled=!this._isEnabled},Wc.toggle=function(c){if(this._isEnabled)if(c){var C=this.constructor.DATA_KEY,l=v(c.currentTarget).data(C);l||(l=new this.constructor(c.currentTarget,this._getDelegateConfig()),v(c.currentTarget).data(C,l)),l._activeTrigger.click=!l._activeTrigger.click,l._isWithActiveTrigger()?l._enter(null,l):l._leave(null,l)}else{if(v(this.getTipElement()).hasClass(lC))return void this._leave(null,this);this._enter(null,this)}},Wc.dispose=function(){clearTimeout(this._timeout),v.removeData(this.element,this.constructor.DATA_KEY),v(this.element).off(this.constructor.EVENT_KEY),v(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&v(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},Wc.show=function(){var C=this;if("none"===v(this.element).css("display"))throw new Error("Please use show on visible elements");var c=v.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){v(this.element).trigger(c);var l=V.findShadowRoot(this.element),e=v.contains(null!==l?l:this.element.ownerDocument.documentElement,this.element);if(c.isDefaultPrevented()||!e)return;var s=this.getTipElement(),h=V.getUID(this.constructor.NAME);s.setAttribute("id",h),this.element.setAttribute("aria-describedby",h),this.setContent(),this.config.animation&&v(s).addClass(CC);var z="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,t=this._getAttachment(z);this.addAttachmentClass(t);var M=this._getContainer();v(s).data(this.constructor.DATA_KEY,this),v.contains(this.element.ownerDocument.documentElement,this.tip)||v(s).appendTo(M),v(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,s,this._getPopperConfig(t)),v(s).addClass(lC),"ontouchstart"in document.documentElement&&v(document.body).children().on("mouseover",null,v.noop);var i=function(){C.config.animation&&C._fixTransition();var c=C._hoverState;C._hoverState=null,v(C.element).trigger(C.constructor.Event.SHOWN),"out"===c&&C._leave(null,C)};if(v(this.tip).hasClass(CC)){var a=V.getTransitionDurationFromElement(this.tip);v(this.tip).one(V.TRANSITION_END,i).emulateTransitionEnd(a)}else i()}},Wc.hide=function(c){function C(){l._hoverState!==Jc&&e.parentNode&&e.parentNode.removeChild(e),l._cleanTipClass(),l.element.removeAttribute("aria-describedby"),v(l.element).trigger(l.constructor.Event.HIDDEN),null!==l._popper&&l._popper.destroy(),c&&c()}var l=this,e=this.getTipElement(),s=v.Event(this.constructor.Event.HIDE);if(v(this.element).trigger(s),!s.isDefaultPrevented()){if(v(e).removeClass(lC),"ontouchstart"in document.documentElement&&v(document.body).children().off("mouseover",null,v.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[eC]=!1,v(this.tip).hasClass(CC)){var h=V.getTransitionDurationFromElement(e);v(e).one(V.TRANSITION_END,C).emulateTransitionEnd(h)}else C();this._hoverState=""}},Wc.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},Wc.isWithContent=function(){return Boolean(this.getTitle())},Wc.addAttachmentClass=function(c){v(this.getTipElement()).addClass(Uc+"-"+c)},Wc.getTipElement=function(){return this.tip=this.tip||v(this.config.template)[0],this.tip},Wc.setContent=function(){var c=this.getTipElement();this.setElementContent(v(c.querySelectorAll(".tooltip-inner")),this.getTitle()),v(c).removeClass("fade show")},Wc.setElementContent=function(c,C){"object"!=typeof C||!C.nodeType&&!C.jquery?this.config.html?(this.config.sanitize&&(C=$c(C,this.config.whiteList,this.config.sanitizeFn)),c.html(C)):c.text(C):this.config.html?v(C).parent().is(c)||c.empty().append(C):c.text(v(C).text())},Wc.getTitle=function(){var c=this.element.getAttribute("data-original-title");return c||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},Wc._getPopperConfig=function(c){var C=this;return z({},{placement:c,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(c){c.originalPlacement!==c.placement&&C._handlePopperPlacementChange(c)},onUpdate:function(c){return C._handlePopperPlacementChange(c)}},{},this.config.popperConfig)},Wc._getOffset=function(){var C=this,c={};return"function"==typeof this.config.offset?c.fn=function(c){return c.offsets=z({},c.offsets,{},C.config.offset(c.offsets,C.element)||{}),c}:c.offset=this.config.offset,c},Wc._getContainer=function(){return!1===this.config.container?document.body:V.isElement(this.config.container)?v(this.config.container):v(document).find(this.config.container)},Wc._getAttachment=function(c){return Gc[c.toUpperCase()]},Wc._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(c){if("click"===c)v(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(c){return e.toggle(c)});else if("manual"!==c){var C=c===eC?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,l=c===eC?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;v(e.element).on(C,e.config.selector,function(c){return e._enter(c)}).on(l,e.config.selector,function(c){return e._leave(c)})}}),this._hideModalHandler=function(){e.element&&e.hide()},v(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=z({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},Wc._fixTitle=function(){var c=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==c||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},Wc._enter=function(c,C){var l=this.constructor.DATA_KEY;(C=C||v(c.currentTarget).data(l))||(C=new this.constructor(c.currentTarget,this._getDelegateConfig()),v(c.currentTarget).data(l,C)),c&&(C._activeTrigger["focusin"===c.type?"focus":eC]=!0),v(C.getTipElement()).hasClass(lC)||C._hoverState===Jc?C._hoverState=Jc:(clearTimeout(C._timeout),C._hoverState=Jc,C.config.delay&&C.config.delay.show?C._timeout=setTimeout(function(){C._hoverState===Jc&&C.show()},C.config.delay.show):C.show())},Wc._leave=function(c,C){var l=this.constructor.DATA_KEY;(C=C||v(c.currentTarget).data(l))||(C=new this.constructor(c.currentTarget,this._getDelegateConfig()),v(c.currentTarget).data(l,C)),c&&(C._activeTrigger["focusout"===c.type?"focus":eC]=!1),C._isWithActiveTrigger()||(clearTimeout(C._timeout),C._hoverState="out",C.config.delay&&C.config.delay.hide?C._timeout=setTimeout(function(){"out"===C._hoverState&&C.hide()},C.config.delay.hide):C.hide())},Wc._isWithActiveTrigger=function(){for(var c in this._activeTrigger)if(this._activeTrigger[c])return!0;return!1},Wc._getConfig=function(c){var C=v(this.element).data();return Object.keys(C).forEach(function(c){-1!==Kc.indexOf(c)&&delete C[c]}),"number"==typeof(c=z({},this.constructor.Default,{},C,{},"object"==typeof c&&c?c:{})).delay&&(c.delay={show:c.delay,hide:c.delay}),"number"==typeof c.title&&(c.title=c.title.toString()),"number"==typeof c.content&&(c.content=c.content.toString()),V.typeCheckConfig(Rc,c,this.constructor.DefaultType),c.sanitize&&(c.template=$c(c.template,c.whiteList,c.sanitizeFn)),c},Wc._getDelegateConfig=function(){var c={};if(this.config)for(var C in this.config)this.constructor.Default[C]!==this.config[C]&&(c[C]=this.config[C]);return c},Wc._cleanTipClass=function(){var c=v(this.getTipElement()),C=c.attr("class").match(Xc);null!==C&&C.length&&c.removeClass(C.join(""))},Wc._handlePopperPlacementChange=function(c){var C=c.instance;this.tip=C.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(c.placement))},Wc._fixTransition=function(){var c=this.getTipElement(),C=this.config.animation;null===c.getAttribute("x-placement")&&(v(c).removeClass(CC),this.config.animation=!1,this.hide(),this.show(),this.config.animation=C)},hC._jQueryInterface=function(l){return this.each(function(){var c=v(this).data(Fc),C="object"==typeof l&&l;if((c||!/dispose|hide/.test(l))&&(c||(c=new hC(this,C),v(this).data(Fc,c)),"string"==typeof l)){if(void 0===c[l])throw new TypeError('No method named "'+l+'"');c[l]()}})},h(hC,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Zc}},{key:"NAME",get:function(){return Rc}},{key:"DATA_KEY",get:function(){return Fc}},{key:"Event",get:function(){return cC}},{key:"EVENT_KEY",get:function(){return Bc}},{key:"DefaultType",get:function(){return Qc}}]),hC);function hC(c,C){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=c,this.config=this._getConfig(C),this.tip=null,this._setListeners()}v.fn[Rc]=sC._jQueryInterface,v.fn[Rc].Constructor=sC,v.fn[Rc].noConflict=function(){return v.fn[Rc]=Yc,sC._jQueryInterface};var zC="popover",tC="bs.popover",MC="."+tC,iC=v.fn[zC],aC="bs-popover",nC=new RegExp("(^|\\s)"+aC+"\\S+","g"),rC=z({},sC.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),oC=z({},sC.DefaultType,{content:"(string|element|function)"}),vC={HIDE:"hide"+MC,HIDDEN:"hidden"+MC,SHOW:"show"+MC,SHOWN:"shown"+MC,INSERTED:"inserted"+MC,CLICK:"click"+MC,FOCUSIN:"focusin"+MC,FOCUSOUT:"focusout"+MC,MOUSEENTER:"mouseenter"+MC,MOUSELEAVE:"mouseleave"+MC},VC=function(c){function e(){return c.apply(this,arguments)||this}var C,l;l=c,(C=e).prototype=Object.create(l.prototype),(C.prototype.constructor=C).__proto__=l;var s=e.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(c){v(this.getTipElement()).addClass(aC+"-"+c)},s.getTipElement=function(){return this.tip=this.tip||v(this.config.template)[0],this.tip},s.setContent=function(){var c=v(this.getTipElement());this.setElementContent(c.find(".popover-header"),this.getTitle());var C=this._getContent();"function"==typeof C&&(C=C.call(this.element)),this.setElementContent(c.find(".popover-body"),C),c.removeClass("fade show")},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var c=v(this.getTipElement()),C=c.attr("class").match(nC);null!==C&&0<C.length&&c.removeClass(C.join(""))},e._jQueryInterface=function(l){return this.each(function(){var c=v(this).data(tC),C="object"==typeof l?l:null;if((c||!/dispose|hide/.test(l))&&(c||(c=new e(this,C),v(this).data(tC,c)),"string"==typeof l)){if(void 0===c[l])throw new TypeError('No method named "'+l+'"');c[l]()}})},h(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return rC}},{key:"NAME",get:function(){return zC}},{key:"DATA_KEY",get:function(){return tC}},{key:"Event",get:function(){return vC}},{key:"EVENT_KEY",get:function(){return MC}},{key:"DefaultType",get:function(){return oC}}]),e}(sC);v.fn[zC]=VC._jQueryInterface,v.fn[zC].Constructor=VC,v.fn[zC].noConflict=function(){return v.fn[zC]=iC,VC._jQueryInterface};var LC,HC="scrollspy",SC="bs.scrollspy",fC="."+SC,dC=v.fn[HC],uC={offset:10,method:"auto",target:""},pC={offset:"number",method:"string",target:"(string|element)"},mC={ACTIVATE:"activate"+fC,SCROLL:"scroll"+fC,LOAD_DATA_API:"load"+fC+".data-api"},gC="active",bC=".nav, .list-group",wC=".nav-link",yC=".list-group-item",kC=((LC=_C.prototype).refresh=function(){var C=this,c=this._scrollElement===this._scrollElement.window?"offset":"position",s="auto"===this._config.method?c:this._config.method,h="position"===s?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(c){var C,l=V.getSelectorFromElement(c);if(l&&(C=document.querySelector(l)),C){var e=C.getBoundingClientRect();if(e.width||e.height)return[v(C)[s]().top+h,l]}return null}).filter(function(c){return c}).sort(function(c,C){return c[0]-C[0]}).forEach(function(c){C._offsets.push(c[0]),C._targets.push(c[1])})},LC.dispose=function(){v.removeData(this._element,SC),v(this._scrollElement).off(fC),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},LC._getConfig=function(c){if("string"!=typeof(c=z({},uC,{},"object"==typeof c&&c?c:{})).target){var C=v(c.target).attr("id");C||(C=V.getUID(HC),v(c.target).attr("id",C)),c.target="#"+C}return V.typeCheckConfig(HC,c,pC),c},LC._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},LC._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},LC._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},LC._process=function(){var c=this._getScrollTop()+this._config.offset,C=this._getScrollHeight(),l=this._config.offset+C-this._getOffsetHeight();if(this._scrollHeight!==C&&this.refresh(),l<=c){var e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&c<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&c>=this._offsets[s]&&(void 0===this._offsets[s+1]||c<this._offsets[s+1])&&this._activate(this._targets[s])}},LC._activate=function(C){this._activeTarget=C,this._clear();var c=this._selector.split(",").map(function(c){return c+'[data-target="'+C+'"],'+c+'[href="'+C+'"]'}),l=v([].slice.call(document.querySelectorAll(c.join(","))));l.hasClass("dropdown-item")?(l.closest(".dropdown").find(".dropdown-toggle").addClass(gC),l.addClass(gC)):(l.addClass(gC),l.parents(bC).prev(wC+", "+yC).addClass(gC),l.parents(bC).prev(".nav-item").children(wC).addClass(gC)),v(this._scrollElement).trigger(mC.ACTIVATE,{relatedTarget:C})},LC._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(c){return c.classList.contains(gC)}).forEach(function(c){return c.classList.remove(gC)})},_C._jQueryInterface=function(C){return this.each(function(){var c=v(this).data(SC);if(c||(c=new _C(this,"object"==typeof C&&C),v(this).data(SC,c)),"string"==typeof C){if(void 0===c[C])throw new TypeError('No method named "'+C+'"');c[C]()}})},h(_C,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return uC}}]),_C);function _C(c,C){var l=this;this._element=c,this._scrollElement="BODY"===c.tagName?window:c,this._config=this._getConfig(C),this._selector=this._config.target+" "+wC+","+this._config.target+" "+yC+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,v(this._scrollElement).on(mC.SCROLL,function(c){return l._process(c)}),this.refresh(),this._process()}v(window).on(mC.LOAD_DATA_API,function(){for(var c=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),C=c.length;C--;){var l=v(c[C]);kC._jQueryInterface.call(l,l.data())}}),v.fn[HC]=kC._jQueryInterface,v.fn[HC].Constructor=kC,v.fn[HC].noConflict=function(){return v.fn[HC]=dC,kC._jQueryInterface};var xC,TC="bs.tab",qC="."+TC,DC=v.fn.tab,EC={HIDE:"hide"+qC,HIDDEN:"hidden"+qC,SHOW:"show"+qC,SHOWN:"shown"+qC,CLICK_DATA_API:"click.bs.tab.data-api"},IC="active",AC="> li > .active",PC=((xC=OC.prototype).show=function(){var l=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&v(this._element).hasClass(IC)||v(this._element).hasClass("disabled"))){var c,e,C=v(this._element).closest(".nav, .list-group")[0],s=V.getSelectorFromElement(this._element);if(C){var h="UL"===C.nodeName||"OL"===C.nodeName?AC:".active";e=(e=v.makeArray(v(C).find(h)))[e.length-1]}var z=v.Event(EC.HIDE,{relatedTarget:this._element}),t=v.Event(EC.SHOW,{relatedTarget:e});if(e&&v(e).trigger(z),v(this._element).trigger(t),!t.isDefaultPrevented()&&!z.isDefaultPrevented()){s&&(c=document.querySelector(s)),this._activate(this._element,C);var M=function(){var c=v.Event(EC.HIDDEN,{relatedTarget:l._element}),C=v.Event(EC.SHOWN,{relatedTarget:e});v(e).trigger(c),v(l._element).trigger(C)};c?this._activate(c,c.parentNode,M):M()}}},xC.dispose=function(){v.removeData(this._element,TC),this._element=null},xC._activate=function(c,C,l){function e(){return s._transitionComplete(c,h,l)}var s=this,h=(!C||"UL"!==C.nodeName&&"OL"!==C.nodeName?v(C).children(".active"):v(C).find(AC))[0],z=l&&h&&v(h).hasClass("fade");if(h&&z){var t=V.getTransitionDurationFromElement(h);v(h).removeClass("show").one(V.TRANSITION_END,e).emulateTransitionEnd(t)}else e()},xC._transitionComplete=function(c,C,l){if(C){v(C).removeClass(IC);var e=v(C.parentNode).find("> .dropdown-menu .active")[0];e&&v(e).removeClass(IC),"tab"===C.getAttribute("role")&&C.setAttribute("aria-selected",!1)}if(v(c).addClass(IC),"tab"===c.getAttribute("role")&&c.setAttribute("aria-selected",!0),V.reflow(c),c.classList.contains("fade")&&c.classList.add("show"),c.parentNode&&v(c.parentNode).hasClass("dropdown-menu")){var s=v(c).closest(".dropdown")[0];if(s){var h=[].slice.call(s.querySelectorAll(".dropdown-toggle"));v(h).addClass(IC)}c.setAttribute("aria-expanded",!0)}l&&l()},OC._jQueryInterface=function(l){return this.each(function(){var c=v(this),C=c.data(TC);if(C||(C=new OC(this),c.data(TC,C)),"string"==typeof l){if(void 0===C[l])throw new TypeError('No method named "'+l+'"');C[l]()}})},h(OC,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),OC);function OC(c){this._element=c}v(document).on(EC.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(c){c.preventDefault(),PC._jQueryInterface.call(v(this),"show")}),v.fn.tab=PC._jQueryInterface,v.fn.tab.Constructor=PC,v.fn.tab.noConflict=function(){return v.fn.tab=DC,PC._jQueryInterface};var NC,jC="toast",$C="bs.toast",WC="."+$C,RC=v.fn[jC],FC={CLICK_DISMISS:"click.dismiss"+WC,HIDE:"hide"+WC,HIDDEN:"hidden"+WC,SHOW:"show"+WC,SHOWN:"shown"+WC},BC="show",YC={animation:"boolean",autohide:"boolean",delay:"number"},UC={animation:!0,autohide:!0,delay:500},XC=((NC=KC.prototype).show=function(){var c=this,C=v.Event(FC.SHOW);if(v(this._element).trigger(C),!C.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var l=function(){c._element.classList.remove("showing"),c._element.classList.add(BC),v(c._element).trigger(FC.SHOWN),c._config.autohide&&(c._timeout=setTimeout(function(){c.hide()},c._config.delay))};if(this._element.classList.remove("hide"),V.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var e=V.getTransitionDurationFromElement(this._element);v(this._element).one(V.TRANSITION_END,l).emulateTransitionEnd(e)}else l()}},NC.hide=function(){if(this._element.classList.contains(BC)){var c=v.Event(FC.HIDE);v(this._element).trigger(c),c.isDefaultPrevented()||this._close()}},NC.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(BC)&&this._element.classList.remove(BC),v(this._element).off(FC.CLICK_DISMISS),v.removeData(this._element,$C),this._element=null,this._config=null},NC._getConfig=function(c){return c=z({},UC,{},v(this._element).data(),{},"object"==typeof c&&c?c:{}),V.typeCheckConfig(jC,c,this.constructor.DefaultType),c},NC._setListeners=function(){var c=this;v(this._element).on(FC.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return c.hide()})},NC._close=function(){function c(){C._element.classList.add("hide"),v(C._element).trigger(FC.HIDDEN)}var C=this;if(this._element.classList.remove(BC),this._config.animation){var l=V.getTransitionDurationFromElement(this._element);v(this._element).one(V.TRANSITION_END,c).emulateTransitionEnd(l)}else c()},KC._jQueryInterface=function(l){return this.each(function(){var c=v(this),C=c.data($C);if(C||(C=new KC(this,"object"==typeof l&&l),c.data($C,C)),"string"==typeof l){if(void 0===C[l])throw new TypeError('No method named "'+l+'"');C[l](this)}})},h(KC,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return YC}},{key:"Default",get:function(){return UC}}]),KC);function KC(c,C){this._element=c,this._config=this._getConfig(C),this._timeout=null,this._setListeners()}v.fn[jC]=XC._jQueryInterface,v.fn[jC].Constructor=XC,v.fn[jC].noConflict=function(){return v.fn[jC]=RC,XC._jQueryInterface},c.Alert=o,c.Button=y,c.Carousel=W,c.Collapse=ec,c.Dropdown=dc,c.Modal=Ac,c.Popover=VC,c.Scrollspy=kC,c.Tab=PC,c.Toast=XC,c.Tooltip=sC,c.Util=V,Object.defineProperty(c,"__esModule",{value:!0})}),function(){"use strict";var c={},C={};try{"undefined"!=typeof window&&(c=window),"undefined"!=typeof document&&(C=document)}catch(c){}var l=(c.navigator||{}).userAgent,e=void 0===l?"":l,s=c,h=C,z=(s.document,!h.documentElement||!h.head||"function"!=typeof h.addEventListener||h.createElement,~e.indexOf("MSIE")||e.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return!0}catch(c){return!1}}();function M(C,c){var l=Object.keys(C);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(C);c&&(e=e.filter(function(c){return Object.getOwnPropertyDescriptor(C,c).enumerable})),l.push.apply(l,e)}return l}function i(s){for(var c=1;c<arguments.length;c++){var h=null!=arguments[c]?arguments[c]:{};c%2?M(Object(h),!0).forEach(function(c){var C,l,e;C=s,e=h[l=c],l in C?Object.defineProperty(C,l,{value:e,enumerable:!0,configurable:!0,writable:!0}):C[l]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):M(Object(h)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(h,c))})}return s}var a=s||{};a[z]||(a[z]={}),a[z].styles||(a[z].styles={}),a[z].hooks||(a[z].hooks={}),a[z].shims||(a[z].shims=[]);var n=a[z];function r(e){return Object.keys(e).reduce(function(c,C){var l=e[C];return l.icon?c[l.iconName]=l.icon:c[C]=l,c},{})}!function(){try{for(var c=arguments.length,C=new Array(1<c?c-1:0),l=1;l<c;l++)C[l-1]=arguments[l];(function(){o("fat",v),o("fa-thin",v)}).apply(void 0,C)}catch(c){if(!t)throw c}}(function(){o("fat",v),o("fa-thin",v)})}(),function(){"use strict";function C(C,c){var l=Object.keys(C);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(C);c&&(e=e.filter(function(c){return Object.getOwnPropertyDescriptor(C,c).enumerable})),l.push.apply(l,e)}return l}function q(s){for(var c=1;c<arguments.length;c++){var h=null!=arguments[c]?arguments[c]:{};c%2?C(Object(h),!0).forEach(function(c){var C,l,e;C=s,e=h[l=c],l in C?Object.defineProperty(C,l,{value:e,enumerable:!0,configurable:!0,writable:!0}):C[l]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):C(Object(h)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(h,c))})}return s}function h(c){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(c)}function l(c,C){if(!(c instanceof C))throw new TypeError("Cannot call a class as a function")}function e(c,C){for(var l=0;l<C.length;l++){var e=C[l];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(c,e.key,e)}}function c(c,C,l){return C&&e(c.prototype,C),l&&e(c,l),c}function v(c,C){return function(c){if(Array.isArray(c))return c}(c)||function(c,C){var l=c&&("undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"]);if(null!=l){var e,s,h=[],z=!0,t=!1;try{for(l=l.call(c);!(z=(e=l.next()).done)&&(h.push(e.value),!C||h.length!==C);z=!0);}catch(c){t=!0,s=c}finally{try{z||null==l.return||l.return()}finally{if(t)throw s}}return h}}(c,C)||s(c,C)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(c){return function(c){if(Array.isArray(c))return z(c)}(c)||function(c){if("undefined"!=typeof Symbol&&null!=c[Symbol.iterator]||null!=c["@@iterator"])return Array.from(c)}(c)||s(c)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(c,C){if(c){if("string"==typeof c)return z(c,C);var l=Object.prototype.toString.call(c).slice(8,-1);return"Object"===l&&c.constructor&&(l=c.constructor.name),"Map"===l||"Set"===l?Array.from(c):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?z(c,C):void 0}}function z(c,C){(null==C||C>c.length)&&(C=c.length);for(var l=0,e=new Array(C);l<C;l++)e[l]=c[l];return e}function t(){}var M={},i=void 0,a=void 0,n={},o={},V=null,L={mark:t,measure:t};try{"undefined"!=typeof global&&(M=global),"function"==typeof setTimeout&&(i=setTimeout),"function"==typeof setImmediate&&(a=setImmediate),"undefined"!=typeof window&&(n=window),"undefined"!=typeof document&&(o=document),"undefined"!=typeof MutationObserver&&(V=MutationObserver),"undefined"!=typeof performance&&(L=performance)}catch(t){}function H(){}var S,f=(n.navigator||{}).userAgent,d=void 0===f?"":f,u=M,p=i,m=a,w=n,y=o,g=V,b=L,k=!!w.document,_=!!y.documentElement&&!!y.head&&"function"==typeof y.addEventListener&&"function"==typeof y.createElement,x=~d.indexOf("MSIE")||~d.indexOf("Trident/"),T="pending",D="settled",E="fulfilled",I="rejected",A=void 0!==u&&void 0!==u.process&&"function"==typeof u.process.emit,P=void 0!==m?m:p,O=[];function N(){for(var c=0;c<O.length;c++)O[c][0](O[c][1]);S=!(O=[])}function j(c,C){O.push([c,C]),S||(S=!0,P(N,0))}function $(c){var C=c.owner,l=C._state,e=C._data,s=c[l],h=c.then;if("function"==typeof s){l=E;try{e=s(e)}catch(c){B(h,c)}}W(h,e)||(l===E&&R(h,e),l===I&&B(h,e))}function W(C,l){var e;try{if(C===l)throw new TypeError("A promises callback cannot return that same promise.");if(l&&("function"==typeof l||"object"===h(l))){var c=l.then;if("function"==typeof c)return c.call(l,function(c){e||(e=!0,l===c?F(C,c):R(C,c))},function(c){e||(e=!0,B(C,c))}),!0}}catch(c){return e||B(C,c),!0}return!1}function R(c,C){c!==C&&W(c,C)||F(c,C)}function F(c,C){c._state===T&&(c._state=D,c._data=C,j(U,c))}function B(c,C){c._state===T&&(c._state=D,c._data=C,j(X,c))}function Y(c){c._then=c._then.forEach($)}function U(c){c._state=E,Y(c)}function X(c){c._state=I,Y(c),!c._handled&&A&&u.process.emit("unhandledRejection",c._data,c)}function K(c){u.process.emit("rejectionHandled",c)}var Q=(c(pc,[{key:"then",value:function(c,C){var l={owner:this,then:new this.constructor(H),fulfilled:c,rejected:C};return!C&&!c||this._handled||(this._handled=!0,this._state===I&&A&&j(K,this)),this._state===E||this._state===I?j($,l):this._then.push(l),l.then}},{key:"catch",value:function(c){return this.then(null,c)}}],[{key:"all",value:function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new pc(function(l,c){var e=[],s=0;function C(C){return s++,function(c){e[C]=c,--s||l(e)}}for(var h,z=0;z<t.length;z++)(h=t[z])&&"function"==typeof h.then?h.then(C(z),c):e[z]=h;s||l(e)})}},{key:"resolve",value:function(C){return C&&"object"===h(C)&&C.constructor===pc?C:new pc(function(c){c(C)})}},{key:"reject",value:function(l){return new pc(function(c,C){C(l)})}}]),pc),G={provides:function(c){void 0===c.Promise&&(c.Promise=Q)}},Z="___FONT_AWESOME___",J="fa",cc="svg-inline--fa",Cc="data-fa-i2svg",lc="data-fa-pseudo-element",ec="data-fa-pseudo-element-pending",sc="data-prefix",hc="data-icon",zc="fontawesome-i2svg",tc="async",Mc=["HTML","HEAD","STYLE","SCRIPT"],ic=function(){try{return!0}catch(c){return!1}}(),ac={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},nc={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},rc=/fa[srltdbk\-\ ]/,oc="fa-layers-text",vc=/Font ?Awesome ?([6 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,Vc={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},Lc=[1,2,3,4,5,6,7,8,9,10],Hc=Lc.concat([11,12,13,14,15,16,17,18,19,20]),Sc=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],fc={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},dc=["2xs","xs","sm","lg","xl","2xl","beat","border","fade","flash","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",fc.GROUP,fc.SWAP_OPACITY,fc.PRIMARY,fc.SECONDARY].concat(Lc.map(function(c){return"".concat(c,"x")})).concat(Hc.map(function(c){return"w-".concat(c)})),uc=w.FontAwesomeConfig||{};function pc(c){if(l(this,pc),"function"!=typeof c)throw new TypeError("Promise resolver "+c+" is not a function");if(this instanceof pc==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],this._state=T,this._data=void 0,this._handled=!1,function(c,C){function l(c){B(C,c)}try{c(function(c){R(C,c)},l)}catch(c){l(c)}}(c,this)}y&&"function"==typeof y.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(c){var C,l=v(c,2),e=l[0],s=l[1],h=""===(C=function(c){var C=y.querySelector("script["+c+"]");if(C)return C.getAttribute(c)}(e))||"false"!==C&&("true"===C||C);null!=h&&(uc[s]=h)});var mc=q(q({},{familyPrefix:J,styleDefault:"solid",replacementClass:cc,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),uc);mc.autoReplaceSvg||(mc.observeMutations=!1);var gc={};Object.keys(mc).forEach(function(C){Object.defineProperty(gc,C,{enumerable:!0,set:function(c){mc[C]=c,bc.forEach(function(c){return c(gc)})},get:function(){return mc[C]}})}),w.FontAwesomeConfig=gc;var bc=[],wc={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},yc="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function kc(){for(var c=12,C="";0<c--;)C+=yc[62*Math.random()|0];return C}function _c(c){for(var C=[],l=(c||[]).length>>>0;l--;)C[l]=c[l];return C}function xc(c){return c.classList?_c(c.classList):(c.getAttribute("class")||"").split(" ").filter(function(c){return c})}function Tc(c){return"".concat(c).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qc(l){return Object.keys(l||{}).reduce(function(c,C){return c+"".concat(C,": ").concat(l[C].trim(),";")},"")}function Dc(c){return c.size!==wc.size||c.x!==wc.x||c.y!==wc.y||c.rotate!==wc.rotate||c.flipX||c.flipY}var Ec="svg:not(:root).svg-inline--fa{overflow:visible;-webkit-box-sizing:content-box;box-sizing:content-box}.svg-inline--fa{display:inline-block;display:var(--fa-display,inline-block);height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.0714285705em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:.3em;margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:2em;width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:1.25em;width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;background-color:var(--fa-counter-background-color,#ff253a);border-radius:1em;border-radius:var(--fa-counter-border-radius,1em);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--fa-inverse,#fff);line-height:1;line-height:var(--fa-counter-line-height,1);max-width:5em;max-width:var(--fa-counter-max-width,5em);min-width:1.5em;min-width:var(--fa-counter-min-width,1.5em);overflow:hidden;padding:.25em .5em;padding:var(--fa-counter-padding,.25em .5em);right:0;right:var(--fa-right,0);text-overflow:ellipsis;top:0;top:var(--fa-top,0);-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform:scale(var(--fa-counter-scale,.25));transform:scale(var(--fa-counter-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;bottom:var(--fa-bottom,0);right:0;right:var(--fa-right,0);top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;bottom:var(--fa-bottom,0);left:0;left:var(--fa-left,0);right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{top:0;top:var(--fa-top,0);right:0;right:var(--fa-right,0);-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;left:var(--fa-left,0);right:auto;top:0;top:var(--fa-top,0);-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top left;transform-origin:top left}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.0833333337em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.0714285718em;vertical-align:.0535714295em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.0416666682em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(2em * -1);left:calc(var(--fa-li-width,2em) * -1);position:absolute;text-align:center;width:2em;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-color:#eee;border-color:var(--fa-border-color,#eee);border-radius:.1em;border-radius:var(--fa-border-radius,.1em);border-style:solid;border-style:var(--fa-border-style,solid);border-width:.08em;border-width:var(--fa-border-width,.08em);padding:.2em .25em .15em;padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:.3em;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:.3em;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:0;animation-delay:0;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-delay:0;animation-delay:0;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:cubic-bezier(.4,0,.6,1);animation-timing-function:cubic-bezier(.4,0,.6,1);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flash{-webkit-animation-name:fa-flash;animation-name:fa-flash;-webkit-animation-delay:0;animation-delay:0;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:cubic-bezier(.4,0,.6,1);animation-timing-function:cubic-bezier(.4,0,.6,1);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:0;animation-delay:0;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-delay:0;animation-delay:0;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:var(--fa-animation-duration,2s);animation-duration:var(--fa-animation-duration,2s);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:steps(8);animation-timing-function:steps(8);-webkit-animation-timing-function:var(--fa-animation-timing,steps(8));animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-fade,.fa-flash,.fa-flip,.fa-pulse,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(1.25);transform:scale(1.25);-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(1.25);transform:scale(1.25);-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@-webkit-keyframes fa-fade{50%{opacity:.4;opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-fade{50%{opacity:.4;opacity:var(--fa-fade-opacity,.4)}}@-webkit-keyframes fa-flash{0%,100%{opacity:.4;opacity:var(--fa-flash-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(1.125);transform:scale(1.125);-webkit-transform:scale(var(--fa-flash-scale,1.125));transform:scale(var(--fa-flash-scale,1.125))}}@keyframes fa-flash{0%,100%{opacity:.4;opacity:var(--fa-flash-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(1.125);transform:scale(1.125);-webkit-transform:scale(var(--fa-flash-scale,1.125));transform:scale(var(--fa-flash-scale,1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(0,1,0,-180deg);transform:rotate3d(0,1,0,-180deg);-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(0,1,0,-180deg);transform:rotate3d(0,1,0,-180deg);-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}.fa-rotate-by{-webkit-transform:rotate(none);transform:rotate(none);-webkit-transform:rotate(var(--fa-rotate-angle,none));transform:rotate(var(--fa-rotate-angle,none))}.fa-stack{display:inline-block;vertical-align:middle;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;z-index:auto;z-index:var(--fa-stack-z-index,auto)}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:#fff;color:var(--fa-inverse,#fff)}.fa-sr-only,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fa-sr-only-focusable:not(:focus),.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.svg-inline--fa .fa-primary{fill:currentColor;fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:currentColor;fill:var(--fa-secondary-color,currentColor);opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fa-duotone.fa-inverse,.fad.fa-inverse{color:#fff;color:var(--fa-inverse,#fff)}";function Ic(){var c=J,C=cc,l=gc.familyPrefix,e=gc.replacementClass,s=Ec;if(l!==c||e!==C){var h=new RegExp("\\.".concat(c,"\\-"),"g"),z=new RegExp("\\--".concat(c,"\\-"),"g"),t=new RegExp("\\.".concat(C),"g");s=s.replace(h,".".concat(l,"-")).replace(z,"--".concat(l,"-")).replace(t,".".concat(e))}return s}var Ac=!1;function Pc(){gc.autoAddCss&&!Ac&&(function(c){if(c&&_){var C=y.createElement("style");C.setAttribute("type","text/css"),C.innerHTML=c;for(var l=y.head.childNodes,e=null,s=l.length-1;-1<s;s--){var h=l[s],z=(h.tagName||"").toUpperCase();-1<["STYLE","LINK"].indexOf(z)&&(e=h)}y.head.insertBefore(C,e)}}(Ic()),Ac=!0)}var Oc={mixout:function(){return{dom:{css:Ic,insertCss:Pc}}},hooks:function(){return{beforeDOMElementCreation:function(){Pc()},beforeI2svg:function(){Pc()}}}},Nc=w||{};Nc[Z]||(Nc[Z]={}),Nc[Z].styles||(Nc[Z].styles={}),Nc[Z].hooks||(Nc[Z].hooks={}),Nc[Z].shims||(Nc[Z].shims=[]);var jc=Nc[Z],$c=[],Wc=!1;function Rc(c){_&&(Wc?setTimeout(c,0):$c.push(c))}function Fc(c){var l,C=c.tag,e=c.attributes,s=void 0===e?{}:e,h=c.children,z=void 0===h?[]:h;return"string"==typeof c?Tc(c):"<".concat(C," ").concat((l=s,Object.keys(l||{}).reduce(function(c,C){return c+"".concat(C,'="').concat(Tc(l[C]),'" ')},"").trim()),">").concat(z.map(Fc).join(""),"</").concat(C,">")}function Bc(c,C,l){if(c&&c[C]&&c[C][l])return{prefix:C,iconName:l,icon:c[C][l]}}_&&((Wc=(y.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(y.readyState))||y.addEventListener("DOMContentLoaded",function c(){y.removeEventListener("DOMContentLoaded",c),Wc=1,$c.map(function(c){return c()})}));function Yc(c,C,l,e){var s,h,z,t,M,i=Object.keys(c),a=i.length,n=void 0!==e?(t=C,M=e,function(c,C,l,e){return t.call(M,c,C,l,e)}):C;for(z=void 0===l?(s=1,c[i[0]]):(s=0,l);s<a;s++)z=n(z,c[h=i[s]],h,c);return z}function Uc(c){var C=function(c){for(var C=[],l=0,e=c.length;l<e;){var s=c.charCodeAt(l++);if(55296<=s&&s<=56319&&l<e){var h=c.charCodeAt(l++);56320==(64512&h)?C.push(((1023&s)<<10)+(1023&h)+65536):(C.push(s),l--)}else C.push(s)}return C}(c);return 1===C.length?C[0].toString(16):null}function Xc(e){return Object.keys(e).reduce(function(c,C){var l=e[C];return l.icon?c[l.iconName]=l.icon:c[C]=l,c},{})}var Kc=[],Qc={},Gc={Promise:"undefined"!=typeof Promise?Promise:void 0},Zc=Object.keys(Gc);function Jc(c,C){for(var l=arguments.length,e=new Array(2<l?l-2:0),s=2;s<l;s++)e[s-2]=arguments[s];return(Qc[c]||[]).forEach(function(c){C=c.apply(null,[C].concat(e))}),C}function cC(c){for(var C=arguments.length,l=new Array(1<C?C-1:0),e=1;e<C;e++)l[e-1]=arguments[e];(Qc[c]||[]).forEach(function(c){c.apply(null,l)})}function CC(c){var C=c,l=Array.prototype.slice.call(arguments,1);return Gc[C]?Gc[C].apply(null,l):void 0}var lC=jc.styles,eC=jc.shims,sC=null,hC={},zC={},tC={},MC={},iC=Object.keys(ac);function aC(){function c(e){return Yc(lC,function(c,C,l){return c[l]=Yc(C,e,{}),c},{})}hC=c(function(C,c,l){return c[3]&&(C[c[3]]=l),c[2]&&c[2].filter(function(c){return"number"==typeof c}).forEach(function(c){C[c.toString(16)]=l}),C}),zC=c(function(C,c,l){return C[l]=l,c[2]&&c[2].filter(function(c){return"string"==typeof c}).forEach(function(c){C[c]=l}),C}),MC=c(function(C,c,l){var e=c[2];return C[l]=l,e.forEach(function(c){C[c]=l}),C});var h="far"in lC||gc.autoFetchSvg;tC=Yc(eC,function(c,C){var l=C[0],e=C[1],s=C[2];return"far"!==e||h||(e="fas"),c[l]={prefix:e,iconName:s},c},{}),sC=HC(gc.styleDefault)}var nC;function rC(c,C){return(hC[c]||{})[C]}function oC(c,C){return(MC[c]||{})[C]}function vC(c){return tC[c]||{prefix:null,iconName:null}}function VC(){return sC}nC=function(c){sC=HC(c.styleDefault)},bc.push(nC),aC();var LC=function(){return{prefix:null,iconName:null,rest:[]}};function HC(c){var C=ac[c],l=nc[c]||nc[C],e=c in jc.styles?c:null;return l||e||null}function SC(c,C){var l=(1<arguments.length&&void 0!==C?C:{}).skipLookups,h=void 0!==l&&l,z=null,e=c.reduce(function(c,C){var l=function(c,C){var l,e=C.split("-"),s=e[0],h=e.slice(1).join("-");return s!==c||""===h||(l=h,~dc.indexOf(l))?null:h}(gc.familyPrefix,C);if(lC[C]?(z=C,c.prefix=C):-1<iC.indexOf(C)?(z=C,c.prefix=HC(C)):l?c.iconName=l:C!==gc.replacementClass&&c.rest.push(C),!h&&c.prefix&&c.iconName){var e="fa"===z?vC(c.iconName):{},s=oC(c.prefix,c.iconName);e.prefix&&(z=null),c.iconName=e.iconName||s||c.iconName,c.prefix=e.prefix||c.prefix,"far"===c.prefix&&!lC.far&&lC.fas&&(c.prefix="fas")}return c},LC());return"fa"!==e.prefix&&"fa"!==z||(e.prefix=VC()||"fas"),e}function fC(c){"fa"===c.prefix&&(c.prefix="fas");var C=c.iconName,l=c.prefix||VC();if(C)return C=oC(l,C)||C,Bc(dC.definitions,l,C)||Bc(jc.styles,l,C)}var dC=(c(gC,[{key:"add",value:function(){for(var C=this,c=arguments.length,l=new Array(c),e=0;e<c;e++)l[e]=arguments[e];var s=l.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(c){C.definitions[c]=q(q({},C.definitions[c]||{}),s[c]),function c(C,l,e){var s=(2<arguments.length&&void 0!==e?e:{}).skipHooks,h=void 0!==s&&s,z=Xc(l);"function"!=typeof jc.hooks.addPack||h?jc.styles[C]=q(q({},jc.styles[C]||{}),z):jc.hooks.addPack(C,Xc(l)),"fas"===C&&c("fa",l)}(c,s[c]),aC()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(z,c){var t=c.prefix&&c.iconName&&c.icon?{0:c}:c;return Object.keys(t).map(function(c){var C=t[c],l=C.prefix,e=C.iconName,s=C.icon,h=s[2];z[l]||(z[l]={}),0<h.length&&h.forEach(function(c){"string"==typeof c&&(z[l][c]=s)}),z[l][e]=s}),z}}]),new gC),uC={i2svg:function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return _?(cC("beforeI2svg",c),CC("pseudoElements2svg",c),CC("i2svg",c)):Gc.Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},C=c.autoReplaceSvgRoot;!1===gc.autoReplaceSvg&&(gc.autoReplaceSvg=!0),gc.observeMutations=!0,Rc(function(){mC({autoReplaceSvgRoot:C}),cC("watch",c)})}},pC={noAuto:function(){gc.autoReplaceSvg=!1,gc.observeMutations=!1,cC("noAuto")},config:gc,dom:uC,parse:{icon:function(c){if(null===c)return null;if("object"===h(c)&&c.prefix&&c.iconName)return{prefix:c.prefix,iconName:oC(c.prefix,c.iconName)||c.iconName};if(Array.isArray(c)&&2===c.length){var C=0===c[1].indexOf("fa-")?c[1].slice(3):c[1],l=HC(c[0]);return{prefix:l,iconName:oC(l,C)||C}}if("string"==typeof c&&(-1<c.indexOf("".concat(gc.familyPrefix,"-"))||c.match(rc))){var e=SC(c.split(" "),{skipLookups:!0});return{prefix:e.prefix||VC(),iconName:oC(e.prefix,e.iconName)||e.iconName}}if("string"==typeof c){var s=VC();return{prefix:s,iconName:oC(s,c)||c}}}},library:dC,findIconDefinition:fC,toHtml:Fc},mC=function(){var c=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,C=void 0===c?y:c;(0<Object.keys(jc.styles).length||gc.autoFetchSvg)&&_&&gc.autoReplaceSvg&&pC.dom.i2svg({node:C})};function gC(){l(this,gC),this.definitions={}}function bC(C,c){return Object.defineProperty(C,"abstract",{get:c}),Object.defineProperty(C,"html",{get:function(){return C.abstract.map(function(c){return Fc(c)})}}),Object.defineProperty(C,"node",{get:function(){if(_){var c=y.createElement("div");return c.innerHTML=C.html,c.children}}}),C}function wC(c){var C=c.icons,l=C.main,e=C.mask,s=c.prefix,h=c.iconName,z=c.transform,t=c.symbol,M=c.title,i=c.maskId,a=c.titleId,n=c.extra,r=c.watchable,o=void 0!==r&&r,v=e.found?e:l,V=v.width,L=v.height,H="fak"===s,S=[gc.replacementClass,h?"".concat(gc.familyPrefix,"-").concat(h):""].filter(function(c){return-1===n.classes.indexOf(c)}).filter(function(c){return""!==c||!!c}).concat(n.classes).join(" "),f={children:[],attributes:q(q({},n.attributes),{},{"data-prefix":s,"data-icon":h,class:S,role:n.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(V," ").concat(L)})},d=H&&!~n.classes.indexOf("fa-fw")?{width:"".concat(V/L*16*.0625,"em")}:{};o&&(f.attributes[Cc]=""),M&&(f.children.push({tag:"title",attributes:{id:f.attributes["aria-labelledby"]||"title-".concat(a||kc())},children:[M]}),delete f.attributes.title);var u,p,m,g,b,w,y,k=q(q({},f),{},{prefix:s,iconName:h,main:l,mask:e,maskId:i,transform:z,symbol:t,styles:q(q({},d),n.styles)}),_=e.found&&l.found?CC("generateAbstractMask",k)||{children:[],attributes:{}}:CC("generateAbstractIcon",k)||{children:[],attributes:{}},x=_.children,T=_.attributes;return k.children=x,k.attributes=T,t?(p=(u=k).prefix,m=u.iconName,g=u.children,b=u.attributes,y=!0===(w=u.symbol)?"".concat(p,"-").concat(gc.familyPrefix,"-").concat(m):w,[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},b),{},{id:y}),children:g}]}]):function(c){var C=c.children,l=c.main,e=c.mask,s=c.attributes,h=c.styles,z=c.transform;if(Dc(z)&&l.found&&!e.found){var t=l.width/l.height/2;s.style=qc(q(q({},h),{},{"transform-origin":"".concat(t+z.x/16,"em ").concat(.5+z.y/16,"em")}))}return[{tag:"svg",attributes:s,children:C}]}(k)}function yC(c){var C=c.content,l=c.width,e=c.height,s=c.transform,h=c.title,z=c.extra,t=c.watchable,M=void 0!==t&&t,i=q(q(q({},z.attributes),h?{title:h}:{}),{},{class:z.classes.join(" ")});M&&(i[Cc]="");var a,n,r,o,v,V,L,H,S,f=q({},z.styles);Dc(s)&&(f.transform=(n=(a={transform:s,startCentered:!0,width:l,height:e}).transform,o=void 0===(r=a.width)?16:r,V=void 0===(v=a.height)?16:v,S="",S+=(H=void 0!==(L=a.startCentered)&&L)&&x?"translate(".concat(n.x/16-o/2,"em, ").concat(n.y/16-V/2,"em) "):H?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),S+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),S+="rotate(".concat(n.rotate,"deg) ")),f["-webkit-transform"]=f.transform);var d=qc(f);0<d.length&&(i.style=d);var u=[];return u.push({tag:"span",attributes:i,children:[C]}),h&&u.push({tag:"span",attributes:{class:"sr-only"},children:[h]}),u}function kC(c){this.name="MissingIcon",this.message=c||"Icon unavailable",this.stack=(new Error).stack}(kC.prototype=Object.create(Error.prototype)).constructor=kC;var _C=jc.styles;function xC(c){var C=c[0],l=c[1],e=v(c.slice(4),1)[0];return{found:!0,width:C,height:l,icon:Array.isArray(e)?{tag:"g",attributes:{class:"".concat(gc.familyPrefix,"-").concat(fc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(gc.familyPrefix,"-").concat(fc.SECONDARY),fill:"currentColor",d:e[0]}},{tag:"path",attributes:{class:"".concat(gc.familyPrefix,"-").concat(fc.PRIMARY),fill:"currentColor",d:e[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:e}}}}function TC(s,h){var z=h;return"fa"===h&&null!==gc.styleDefault&&(h=VC()),new Gc.Promise(function(c,C){var l={found:!1,width:512,height:512,icon:CC("missingIconAbstract")||{}};if("fa"===z){var e=vC(s)||{};s=e.iconName||s,h=e.prefix||h}if(s&&h&&_C[h]&&_C[h][s])return c(xC(_C[h][s]));s&&h&&!gc.showMissingIcons?C(new kC("Icon is missing for prefix ".concat(h," with icon name ").concat(s))):c(l)})}function qC(){}function DC(c){EC.mark("".concat(IC," ").concat(c," ends")),EC.measure("".concat(IC," ").concat(c),"".concat(IC," ").concat(c," begins"),"".concat(IC," ").concat(c," ends"))}var EC=gc.measurePerformance&&b&&b.mark&&b.measure?b:{mark:qC,measure:qC},IC='FA "6.0.0-beta2"',AC={begin:function(c){return EC.mark("".concat(IC," ").concat(c," begins")),function(){return DC(c)}},end:DC},PC=function(){};function OC(c){return"string"==typeof(c.getAttribute?c.getAttribute(Cc):null)}function NC(c){return y.createElementNS("http://www.w3.org/2000/svg",c)}function jC(c){return y.createElement(c)}var $C={replace:function(c){var C=c[0],l=C.tagName.toLowerCase();if(C.parentNode){c[1].forEach(function(c){C.parentNode.insertBefore(function C(l,c){var e=(1<arguments.length&&void 0!==c?c:{}).ceFn,s=void 0===e?"svg"===l.tag?NC:jC:e;if("string"==typeof l)return y.createTextNode(l);var h=s(l.tag);return Object.keys(l.attributes||[]).forEach(function(c){h.setAttribute(c,l.attributes[c])}),(l.children||[]).forEach(function(c){h.appendChild(C(c,{ceFn:s}))}),h}(c),C)});var e=y.createComment(gc.keepOriginalSource&&"svg"!==l.toLowerCase()?" ".concat(C.outerHTML," "):"");C.parentNode.replaceChild(e,C)}},nest:function(c){var C=c[0],l=c[1];if(~xc(C).indexOf(gc.replacementClass))return $C.replace(c);var e=new RegExp("".concat(gc.familyPrefix,"-.*"));delete l[0].attributes.id;var s=l[0].attributes.class.split(" ").reduce(function(c,C){return C===gc.replacementClass||C.match(e)?c.toSvg.push(C):c.toNode.push(C),c},{toNode:[],toSvg:[]});l[0].attributes.class=s.toSvg.join(" ");var h=l.map(function(c){return Fc(c)}).join("\n");0===s.toNode.length?C.removeAttribute("class"):C.setAttribute("class",s.toNode.join(" ")),C.setAttribute(Cc,""),C.innerHTML=h}};function WC(c){c()}function RC(l,c){var e="function"==typeof c?c:PC;if(0===l.length)e();else{var C=WC;gc.mutateApproach===tc&&(C=w.requestAnimationFrame||WC),C(function(){var c=!0===gc.autoReplaceSvg?$C.replace:$C[gc.autoReplaceSvg]||$C.replace,C=AC.begin("mutate");l.map(c),C(),e()})}}var FC=!1;function BC(){FC=!0}function YC(){FC=!1}var UC=null;function XC(c){if(g&&gc.observeMutations){var C=c.treeCallback,i=void 0===C?PC:C,l=c.nodeCallback,a=void 0===l?PC:l,e=c.pseudoElementsCallback,n=void 0===e?PC:e,s=c.observeMutationsRoot,h=void 0===s?y:s;UC=new g(function(c){if(!FC){var M=VC();_c(c).forEach(function(c){if("childList"===c.type&&0<c.addedNodes.length&&!OC(c.addedNodes[0])&&(gc.searchPseudoElements&&n(c.target),i(c.target)),"attributes"===c.type&&c.target.parentNode&&gc.searchPseudoElements&&n(c.target.parentNode),"attributes"===c.type&&OC(c.target)&&~Sc.indexOf(c.attributeName))if("class"===c.attributeName&&(z=(h=c.target).getAttribute?h.getAttribute(sc):null,t=h.getAttribute?h.getAttribute(hc):null,z&&t)){var C=SC(xc(c.target)),l=C.prefix,e=C.iconName;c.target.setAttribute(sc,l||M),e&&c.target.setAttribute(hc,e)}else(s=c.target)&&s.classList&&s.classList.contains&&s.classList.contains(gc.replacementClass)&&a(c.target);var s,h,z,t})}}),_&&UC.observe(h,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function KC(c,C){var l,e,s,h,z,t,M=1<arguments.length&&void 0!==C?C:{styleParser:!0},i=function(c){var C,l,e=c.getAttribute("data-prefix"),s=c.getAttribute("data-icon"),h=void 0!==c.innerText?c.innerText.trim():"",z=SC(xc(c));return z.prefix||(z.prefix=VC()),e&&s&&(z.prefix=e,z.iconName=s),z.iconName&&z.prefix||z.prefix&&0<h.length&&(z.iconName=(C=z.prefix,l=c.innerText,(zC[C]||{})[l]||rC(z.prefix,Uc(c.innerText)))),z}(c),a=i.iconName,n=i.prefix,r=i.rest,o=(e=_c((l=c).attributes).reduce(function(c,C){return"class"!==c.name&&"style"!==c.name&&(c[C.name]=C.value),c},{}),s=l.getAttribute("title"),h=l.getAttribute("data-fa-title-id"),gc.autoA11y&&(s?e["aria-labelledby"]="".concat(gc.replacementClass,"-title-").concat(h||kc()):(e["aria-hidden"]="true",e.focusable="false")),e),v=Jc("parseNodeAttributes",{},c),V=M.styleParser?(t=[],(z=c.getAttribute("style"))&&(t=z.split(";").reduce(function(c,C){var l=C.split(":"),e=l[0],s=l.slice(1);return e&&0<s.length&&(c[e]=s.join(":").trim()),c},{})),t):[];return q({iconName:a,title:c.getAttribute("title"),titleId:c.getAttribute("data-fa-title-id"),prefix:n,transform:wc,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:V,attributes:o}},v)}var QC=jc.styles;function GC(c){var C="nest"===gc.autoReplaceSvg?KC(c,{styleParser:!1}):KC(c);return~C.extra.classes.indexOf(oc)?CC("generateLayersText",c,C):CC("generateSvgReplacementMutation",c,C)}function ZC(c){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if(!_)return Gc.Promise.resolve();function e(c){return C.add("".concat(zc,"-").concat(c))}function s(c){return C.remove("".concat(zc,"-").concat(c))}var C=y.documentElement.classList,h=gc.autoFetchSvg?Object.keys(ac):Object.keys(QC),z=[".".concat(oc,":not([").concat(Cc,"])")].concat(h.map(function(c){return".".concat(c,":not([").concat(Cc,"])")})).join(", ");if(0===z.length)return Gc.Promise.resolve();var t=[];try{t=_c(c.querySelectorAll(z))}catch(c){}if(!(0<t.length))return Gc.Promise.resolve();e("pending"),s("complete");var M=AC.begin("onTree"),i=t.reduce(function(c,C){try{var l=GC(C);l&&c.push(l)}catch(c){ic||"MissingIcon"===c.name&&console.error(c)}return c},[]);return new Gc.Promise(function(C,c){Gc.Promise.all(i).then(function(c){RC(c,function(){e("active"),e("complete"),s("pending"),"function"==typeof l&&l(),M(),C()})}).catch(function(){M(),c()})})}function JC(c){var C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;GC(c).then(function(c){c&&RC([c],C)})}function cl(c){var C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=C.transform,e=void 0===l?wc:l,s=C.symbol,h=void 0!==s&&s,z=C.mask,t=void 0===z?null:z,M=C.maskId,i=void 0===M?null:M,a=C.title,n=void 0===a?null:a,r=C.titleId,o=void 0===r?null:r,v=C.classes,V=void 0===v?[]:v,L=C.attributes,H=void 0===L?{}:L,S=C.styles,f=void 0===S?{}:S;if(c){var d=c.prefix,u=c.iconName,p=c.icon;return bC(q({type:"icon"},c),function(){return cC("beforeDOMElementCreation",{iconDefinition:c,params:C}),gc.autoA11y&&(n?H["aria-labelledby"]="".concat(gc.replacementClass,"-title-").concat(o||kc()):(H["aria-hidden"]="true",H.focusable="false")),wC({icons:{main:xC(p),mask:t?xC(t.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:u,transform:q(q({},wc),e),symbol:h,title:n,maskId:i,titleId:o,extra:{attributes:H,styles:f,classes:V}})})}}var Cl={mixout:function(){return{icon:(s=cl,function(c){var C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=(c||{}).icon?c:fC(c||{}),e=C.mask;return e=e&&((e||{}).icon?e:fC(e||{})),s(l,q(q({},C),{},{mask:e}))})};var s},hooks:function(){return{mutationObserverCallbacks:function(c){return c.treeCallback=ZC,c.nodeCallback=JC,c}}},provides:function(l){l.i2svg=function(c){var C=c.node,l=void 0===C?y:C,e=c.callback;return ZC(l,void 0===e?function(){}:e)},l.generateSvgReplacementMutation=function(h,c){var z=c.iconName,t=c.title,M=c.titleId,i=c.prefix,a=c.transform,n=c.symbol,C=c.mask,r=c.maskId,o=c.extra;return new l.Promise(function(s,c){l.Promise.all([TC(z,i),TC(C.iconName,C.prefix)]).then(function(c){var C=v(c,2),l=C[0],e=C[1];s([h,wC({icons:{main:l,mask:e},prefix:i,iconName:z,transform:a,symbol:n,mask:e,maskId:r,title:t,titleId:M,extra:o,watchable:!0})])})})},l.generateAbstractIcon=function(c){var C,l=c.children,e=c.attributes,s=c.main,h=c.transform,z=qc(c.styles);return 0<z.length&&(e.style=z),Dc(h)&&(C=CC("generateAbstractTransformGrouping",{main:s,transform:h,containerWidth:s.width,iconWidth:s.width})),l.push(C||s.icon),{children:l,attributes:e}}}},ll={mixout:function(){return{layer:function(c){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},C=l.classes,e=void 0===C?[]:C;return bC({type:"layer"},function(){cC("beforeDOMElementCreation",{assembler:c,params:l});var C=[];return c(function(c){Array.isArray(c)?c.map(function(c){C=C.concat(c.abstract)}):C=C.concat(c.abstract)}),[{tag:"span",attributes:{class:["".concat(gc.familyPrefix,"-layers")].concat(r(e)).join(" ")},children:C}]})}}}},el={mixout:function(){return{counter:function(c){var C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=C.title,e=void 0===l?null:l,s=C.classes,h=void 0===s?[]:s,z=C.attributes,t=void 0===z?{}:z,M=C.styles,i=void 0===M?{}:M;return bC({type:"counter",content:c},function(){return cC("beforeDOMElementCreation",{content:c,params:C}),function(c){var C=c.content,l=c.title,e=c.extra,s=q(q(q({},e.attributes),l?{title:l}:{}),{},{class:e.classes.join(" ")}),h=qc(e.styles);0<h.length&&(s.style=h);var z=[];return z.push({tag:"span",attributes:s,children:[C]}),l&&z.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),z}({content:c.toString(),title:e,extra:{attributes:t,styles:i,classes:["".concat(gc.familyPrefix,"-layers-counter")].concat(r(h))}})})}}}},sl={mixout:function(){return{text:function(c){var C=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=C.transform,e=void 0===l?wc:l,s=C.title,h=void 0===s?null:s,z=C.classes,t=void 0===z?[]:z,M=C.attributes,i=void 0===M?{}:M,a=C.styles,n=void 0===a?{}:a;return bC({type:"text",content:c},function(){return cC("beforeDOMElementCreation",{content:c,params:C}),yC({content:c,transform:q(q({},wc),e),title:h,extra:{attributes:i,styles:n,classes:["".concat(gc.familyPrefix,"-layers-text")].concat(r(t))}})})}}},provides:function(c){c.generateLayersText=function(c,C){var l=C.title,e=C.transform,s=C.extra,h=null,z=null;if(x){var t=parseInt(getComputedStyle(c).fontSize,10),M=c.getBoundingClientRect();h=M.width/t,z=M.height/t}return gc.autoA11y&&!l&&(s.attributes["aria-hidden"]="true"),Gc.Promise.resolve([c,yC({content:c.innerHTML,width:h,height:z,transform:e,title:l,extra:s,watchable:!0})])}}},hl=new RegExp('"',"ug"),zl=[1105920,1112319];function tl(m,g){var b="".concat(ec).concat(g.replace(":","-"));return new Gc.Promise(function(e,c){if(null!==m.getAttribute(b))return e();var C,l,s,h,z,t,M,i,a=_c(m.children).filter(function(c){return c.getAttribute(lc)===g})[0],n=w.getComputedStyle(m,g),r=n.getPropertyValue("font-family").match(vc),o=n.getPropertyValue("font-weight"),v=n.getPropertyValue("content");if(a&&!r)return m.removeChild(a),e();if(r&&"none"!==v&&""!==v){var V=n.getPropertyValue("content"),L=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(r[2])?nc[r[2].toLowerCase()]:Vc[o],H=(0,s=(C=z=V.replace(hl,"")).length,M=(t=55296<=(h=C.charCodeAt(0))&&h<=56319&&1<s&&56320<=(l=C.charCodeAt(1))&&l<=57343?1024*(h-55296)+l-56320+65536:h)>=zl[0]&&t<=zl[1],{value:Uc((i=2===z.length&&z[0]===z[1])?z[0]:z),isSecondary:M||i}),S=H.isSecondary,f=rC(L,H.value),d=f;if(!f||S||a&&a.getAttribute(sc)===L&&a.getAttribute(hc)===d)e();else{m.setAttribute(b,d),a&&m.removeChild(a);var u={iconName:null,title:null,titleId:null,prefix:null,transform:wc,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},p=u.extra;p.attributes[lc]=g,TC(f,L).then(function(c){var C=wC(q(q({},u),{},{icons:{main:c,mask:LC()},prefix:L,iconName:d,extra:p,watchable:!0})),l=y.createElement("svg");"::before"===g?m.insertBefore(l,m.firstChild):m.appendChild(l),l.outerHTML=C.map(function(c){return Fc(c)}).join("\n"),m.removeAttribute(b),e()}).catch(c)}}else e()})}function Ml(c){return Gc.Promise.all([tl(c,"::before"),tl(c,"::after")])}function il(c){return!(c.parentNode===document.head||~Mc.indexOf(c.tagName.toUpperCase())||c.getAttribute(lc)||c.parentNode&&"svg"===c.parentNode.tagName)}function al(s){if(_)return new Gc.Promise(function(c,C){var l=_c(s.querySelectorAll("*")).filter(il).map(Ml),e=AC.begin("searchPseudoElements");BC(),Gc.Promise.all(l).then(function(){e(),YC(),c()}).catch(function(){e(),YC(),C()})})}function nl(c){return c.toLowerCase().split(" ").reduce(function(c,C){var l=C.toLowerCase().split("-"),e=l[0],s=l.slice(1).join("-");if(e&&"h"===s)return c.flipX=!0,c;if(e&&"v"===s)return c.flipY=!0,c;if(s=parseFloat(s),isNaN(s))return c;switch(e){case"grow":c.size=c.size+s;break;case"shrink":c.size=c.size-s;break;case"left":c.x=c.x-s;break;case"right":c.x=c.x+s;break;case"up":c.y=c.y-s;break;case"down":c.y=c.y+s;break;case"rotate":c.rotate=c.rotate+s}return c},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})}var rl,ol=!1,vl={x:0,y:0,width:"100%",height:"100%"};function Vl(c){var C=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];return c.attributes&&(c.attributes.fill||C)&&(c.attributes.fill="black"),c}rl=pC,Kc=[G,Oc,Cl,ll,el,sl,{hooks:function(){return{mutationObserverCallbacks:function(c){return c.pseudoElementsCallback=al,c}}},provides:function(c){c.pseudoElements2svg=function(c){var C=c.node,l=void 0===C?y:C;gc.searchPseudoElements&&al(l)}}},{mixout:function(){return{dom:{unwatch:function(){BC(),ol=!0}}}},hooks:function(){return{bootstrap:function(){XC(Jc("mutationObserverCallbacks",{}))},noAuto:function(){UC&&UC.disconnect()},watch:function(c){var C=c.observeMutationsRoot;ol?YC():XC(Jc("mutationObserverCallbacks",{observeMutationsRoot:C}))}}}},{mixout:function(){return{parse:{transform:function(c){return nl(c)}}}},hooks:function(){return{parseNodeAttributes:function(c,C){var l=C.getAttribute("data-fa-transform");return l&&(c.transform=nl(l)),c}}},provides:function(c){c.generateAbstractTransformGrouping=function(c){var C=c.main,l=c.transform,e=c.containerWidth,s=c.iconWidth,h={transform:"translate(".concat(e/2," 256)")},z="translate(".concat(32*l.x,", ").concat(32*l.y,") "),t="scale(".concat(l.size/16*(l.flipX?-1:1),", ").concat(l.size/16*(l.flipY?-1:1),") "),M="rotate(".concat(l.rotate," 0 0)"),i={outer:h,inner:{transform:"".concat(z," ").concat(t," ").concat(M)},path:{transform:"translate(".concat(s/2*-1," -256)")}};return{tag:"g",attributes:q({},i.outer),children:[{tag:"g",attributes:q({},i.inner),children:[{tag:C.icon.tag,children:C.icon.children,attributes:q(q({},C.icon.attributes),i.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(c,C){var l=C.getAttribute("data-fa-mask"),e=l?SC(l.split(" ").map(function(c){return c.trim()})):LC();return e.prefix||(e.prefix=VC()),c.mask=e,c.maskId=C.getAttribute("data-fa-mask-id"),c}}},provides:function(c){c.generateAbstractMask=function(c){var C,l,e,s,h,z,t,M,i=c.children,a=c.attributes,n=c.main,r=c.mask,o=c.maskId,v=c.transform,V=n.width,L=n.icon,H=r.width,S=r.icon,f=(l=(C={transform:v,containerWidth:H,iconWidth:V}).transform,e=C.iconWidth,s={transform:"translate(".concat(C.containerWidth/2," 256)")},h="translate(".concat(32*l.x,", ").concat(32*l.y,") "),z="scale(".concat(l.size/16*(l.flipX?-1:1),", ").concat(l.size/16*(l.flipY?-1:1),") "),t="rotate(".concat(l.rotate," 0 0)"),{outer:s,inner:{transform:"".concat(h," ").concat(z," ").concat(t)},path:{transform:"translate(".concat(e/2*-1," -256)")}}),d={tag:"rect",attributes:q(q({},vl),{},{fill:"white"})},u=L.children?{children:L.children.map(Vl)}:{},p={tag:"g",attributes:q({},f.inner),children:[Vl(q({tag:L.tag,attributes:q(q({},L.attributes),f.path)},u))]},m={tag:"g",attributes:q({},f.outer),children:[p]},g="mask-".concat(o||kc()),b="clip-".concat(o||kc()),w={tag:"mask",attributes:q(q({},vl),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,m]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(M=S,"g"===M.tag?M.children:[M])},w]};return i.push(y,{tag:"rect",attributes:q({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(g,")")},vl)}),{children:i,attributes:a}}}},{provides:function(c){var h=!1;w.matchMedia&&(h=w.matchMedia("(prefers-reduced-motion: reduce)").matches),c.missingIconAbstract=function(){var c=[],C={fill:"currentColor",test:2},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};c.push({tag:"path",attributes:q(q({},C),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var e=q(q({},l),{},{attributeName:"opacity"}),s={tag:"circle",attributes:q(q({},C),{},{cx:"256",cy:"364",r:"28"}),children:[]};return h||s.children.push({tag:"animate",attributes:q(q({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:q(q({},e),{},{values:"1;0;1;1;0;1;"})}),c.push(s),c.push({tag:"path",attributes:q(q({},C),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:h?[]:[{tag:"animate",attributes:q(q({},e),{},{values:"1;0;0;0;0;1;"})}]}),h||c.push({tag:"path",attributes:q(q({},C),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:q(q({},e),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",children:c}}}},{hooks:function(){return{parseNodeAttributes:function(c,C){var l=C.getAttribute("data-fa-symbol"),e=null!==l&&(""===l||l);return c.symbol=e,c}}}}],Qc={},Object.keys(Gc).forEach(function(c){-1===Zc.indexOf(c)&&delete Gc[c]}),Kc.forEach(function(c){var l=c.mixout?c.mixout():{};if(Object.keys(l).forEach(function(C){"function"==typeof l[C]&&(rl[C]=l[C]),"object"===h(l[C])&&Object.keys(l[C]).forEach(function(c){rl[C]||(rl[C]={}),rl[C][c]=l[C][c]})}),c.hooks){var C=c.hooks();Object.keys(C).forEach(function(c){Qc[c]||(Qc[c]=[]),Qc[c].push(C[c])})}c.provides&&c.provides(Gc)}),function(){try{for(var c=arguments.length,C=new Array(1<c?c-1:0),l=1;l<c;l++)C[l-1]=arguments[l];(function(c){k&&(w.FontAwesome||(w.FontAwesome=pC),Rc(function(){mC(),cC("bootstrap")})),jc.hooks=q(q({},jc.hooks),{},{addPack:function(c,C){jc.styles[c]=q(q({},jc.styles[c]||{}),C),aC(),mC()},addPacks:function(c){c.forEach(function(c){var C=v(c,2),l=C[0],e=C[1];jc.styles[l]=q(q({},jc.styles[l]||{}),e)}),aC(),mC()},addShims:function(c){var C;(C=jc.shims).push.apply(C,r(c)),aC(),mC()}})}).apply(void 0,C)}catch(c){if(!ic)throw c}}(function(c){k&&(w.FontAwesome||(w.FontAwesome=pC),Rc(function(){mC(),cC("bootstrap")})),jc.hooks=q(q({},jc.hooks),{},{addPack:function(c,C){jc.styles[c]=q(q({},jc.styles[c]||{}),C),aC(),mC()},addPacks:function(c){c.forEach(function(c){var C=v(c,2),l=C[0],e=C[1];jc.styles[l]=q(q({},jc.styles[l]||{}),e)}),aC(),mC()},addShims:function(c){var C;(C=jc.shims).push.apply(C,r(c)),aC(),mC()}})})}(),function(c,C){"function"==typeof define&&define.amd?define(C):"object"==typeof exports?module.exports=C():c.NProgress=C()}(this,function(){var C,l,z={version:"0.2.0"},t=z.settings={minimum:.08,easing:"linear",positionUsing:"",speed:350,trickle:!0,trickleSpeed:250,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function M(c,C,l){return c<C?C:l<c?l:c}function i(c){return 100*(-1+c)}z.configure=function(c){var C,l;for(C in c)void 0!==(l=c[C])&&c.hasOwnProperty(C)&&(t[C]=l);return this},z.status=null,z.set=function(C){var c=z.isStarted();C=M(C,t.minimum,1),z.status=1===C?null:C;var l=z.render(!c),e=l.querySelector(t.barSelector),s=t.speed,h=t.easing;return l.offsetWidth,a(function(c){""===t.positionUsing&&(t.positionUsing=z.getPositioningCSS()),r(e,function(c,C,l){var e;e="translate3d"===t.positionUsing?{transform:"translate3d("+i(c)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(c)+"%,0)"}:{"margin-left":i(c)+"%"};return e.transition="all "+C+"ms "+l,e}(C,s,h)),1===C?(r(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout(function(){r(l,{transition:"all "+s+"ms linear",opacity:0}),setTimeout(function(){z.remove(),c()},s)},s)):setTimeout(c,s)}),this},z.isStarted=function(){return"number"==typeof z.status},z.start=function(){z.status||z.set(0);var c=function(){setTimeout(function(){z.status&&(z.trickle(),c())},t.trickleSpeed)};return t.trickle&&c(),this},z.done=function(c){return c||z.status?z.inc(.3+.5*Math.random()).set(1):this},z.inc=function(c){var C=z.status;return C?1<C?void 0:("number"!=typeof c&&(c=0<=C&&C<.25?(3*Math.random()+3)/100:.25<=C&&C<.65?3*Math.random()/100:.65<=C&&C<.9?2*Math.random()/100:.9<=C&&C<.99?.005:0),C=M(C+c,0,.994),z.set(C)):z.start()},z.trickle=function(){return z.inc()},l=C=0,z.promise=function(c){return c&&"resolved"!==c.state()&&(0===l&&z.start(),C++,l++,c.always(function(){0==--l?(C=0,z.done()):z.set((C-l)/C)})),this},z.render=function(c){if(z.isRendered())return document.getElementById("nprogress");L(document.documentElement,"nprogress-busy");var C=document.createElement("div");C.id="nprogress",C.innerHTML=t.template;var l,e=C.querySelector(t.barSelector),s=c?"-100":i(z.status||0),h=document.querySelector(t.parent);return r(e,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),t.showSpinner||(l=C.querySelector(t.spinnerSelector))&&f(l),h!=document.body&&L(h,"nprogress-custom-parent"),h.appendChild(C),C},z.remove=function(){H(document.documentElement,"nprogress-busy"),H(document.querySelector(t.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&f(c)},z.isRendered=function(){return!!document.getElementById("nprogress")},z.getPositioningCSS=function(){var c=document.body.style,C="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return C+"Perspective"in c?"translate3d":C+"Transform"in c?"translate":"margin"};var e,a=(e=[],function(c){e.push(c),1==e.length&&s()});function s(){var c=e.shift();c&&c(s)}var h,n,r=(h=["Webkit","O","Moz","ms"],n={},function(c,C){var l,e,s=arguments;if(2==s.length)for(l in C)void 0!==(e=C[l])&&C.hasOwnProperty(l)&&v(c,l,e);else v(c,s[1],s[2])});function o(c){return c=function(c){return c.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(c,C){return C.toUpperCase()})}(c),n[c]||(n[c]=function(c){var C=document.body.style;if(c in C)return c;for(var l,e=h.length,s=c.charAt(0).toUpperCase()+c.slice(1);e--;)if((l=h[e]+s)in C)return l;return c}(c))}function v(c,C,l){C=o(C),c.style[C]=l}function V(c,C){return 0<=("string"==typeof c?c:S(c)).indexOf(" "+C+" ")}function L(c,C){var l=S(c),e=l+C;V(l,C)||(c.className=e.substring(1))}function H(c,C){var l,e=S(c);V(c,C)&&(l=e.replace(" "+C+" "," "),c.className=l.substring(1,l.length-1))}function S(c){return(" "+(c&&c.className||"")+" ").replace(/\s+/gi," ")}function f(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return z}),function(M,i,h,t){function l(c,C){this.settings=null,this.options=M.extend({},l.Defaults,C),this.$element=M(c),this.drag=M.extend({},e),this.state=M.extend({},s),this.e=M.extend({},z),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],M.each(l.Plugins,M.proxy(function(c,C){this._plugins[c[0].toLowerCase()+c.slice(1)]=new C(this)},this)),M.each(l.Pipe,M.proxy(function(c,C){this._pipe.push({filter:C.filter,run:M.proxy(C.run,this)})},this)),this.setup(),this.initialize()}function a(c){if(c.touches!==t)return{x:c.touches[0].pageX,y:c.touches[0].pageY};if(c.touches===t){if(c.pageX!==t)return{x:c.pageX,y:c.pageY};if(c.pageX===t)return{x:c.clientX,y:c.clientY}}}function c(c){var C,l,e=h.createElement("div"),s=c;for(C in s)if(l=s[C],void 0!==e.style[l])return e=null,[l,C];return[!1]}var e,s,z;l.Defaults={items:3,loop:!(z={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null}),center:!(s={isTouch:!(e={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null}),isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1}),mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},l.Width={Default:"default",Inner:"inner",Outer:"outer"},l.Plugins={},l.Pipe=[{filter:["width","items","settings"],run:function(c){c.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var c=this._clones;(this.$stage.children(".cloned").length!==c.length||!this.settings.loop&&0<c.length)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var c,C,l=this._clones,e=this._items,s=this.settings.loop?l.length-Math.max(2*this.settings.items,4):0;for(c=0,C=Math.abs(s/2);c<C;c++)0<s?(this.$stage.children().eq(e.length+l.length-1).remove(),l.pop(),this.$stage.children().eq(0).remove(),l.pop()):(l.push(l.length/2),this.$stage.append(e[l[l.length-1]].clone().addClass("cloned")),l.push(e.length-1-(l.length-1)/2),this.$stage.prepend(e[l[l.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var c,C,l,e=this.settings.rtl?1:-1,s=(this.width()/this.settings.items).toFixed(3),h=0;for(this._coordinates=[],C=0,l=this._clones.length+this._items.length;C<l;C++)c=this._mergers[this.relative(C)],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,h+=(this.settings.autoWidth?this._items[this.relative(C)].width()+this.settings.margin:s*c)*e,this._coordinates.push(h)}},{filter:["width","items","settings"],run:function(){var c,C,l=(this.width()/this.settings.items).toFixed(3),e={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(e),(e={width:this.settings.autoWidth?"auto":l-this.settings.margin})[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&0<M.grep(this._mergers,function(c){return 1<c}).length)for(c=0,C=this._coordinates.length;c<C;c++)e.width=Math.abs(this._coordinates[c])-Math.abs(this._coordinates[c-1]||0)-this.settings.margin,this.$stage.children().eq(c).css(e);else this.$stage.children().css(e)}},{filter:["width","items","settings"],run:function(c){c.current&&this.reset(this.$stage.children().index(c.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var c,C,l,e,s=this.settings.rtl?1:-1,h=2*this.settings.stagePadding,z=this.coordinates(this.current())+h,t=z+this.width()*s,M=[];for(l=0,e=this._coordinates.length;l<e;l++)c=this._coordinates[l-1]||0,C=Math.abs(this._coordinates[l])+h*s,(this.op(c,"<=",z)&&this.op(c,">",t)||this.op(C,"<",z)&&this.op(C,">",t))&&M.push(l);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+M.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],l.prototype.initialize=function(){var c,C,l;if((this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded)&&(c=this.$element.find("img"),C=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:t,l=this.$element.children(C).width(),c.length&&l<=0))return this.preloadAutoWidthImages(c),!1;this.$element.addClass("owl-loading"),this.$stage=M("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},l.prototype.setup=function(){var C=this.viewport(),c=this.options.responsive,l=-1,e=null;c?(M.each(c,function(c){c<=C&&l<c&&(l=Number(c))}),delete(e=M.extend({},this.options,c[l])).responsive,e.responsiveClass&&this.$element.attr("class",function(c,C){return C.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+l)):e=M.extend({},this.options),null!==this.settings&&this._breakpoint===l||(this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=l,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},l.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},l.prototype.prepare=function(c){var C=this.trigger("prepare",{content:c});return C.data||(C.data=M("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(c)),this.trigger("prepared",{content:C.data}),C.data},l.prototype.update=function(){for(var c=0,C=this._pipe.length,l=M.proxy(function(c){return this[c]},this._invalidated),e={};c<C;)(this._invalidated.all||0<M.grep(this._pipe[c].filter,l).length)&&this._pipe[c].run(e),c++;this._invalidated={}},l.prototype.width=function(c){switch(c=c||l.Width.Default){case l.Width.Inner:case l.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},l.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime(),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=i.orientation,this.watchVisibility(),this.trigger("refreshed")},l.prototype.eventsCall=function(){this.e._onDragStart=M.proxy(function(c){this.onDragStart(c)},this),this.e._onDragMove=M.proxy(function(c){this.onDragMove(c)},this),this.e._onDragEnd=M.proxy(function(c){this.onDragEnd(c)},this),this.e._onResize=M.proxy(function(c){this.onResize(c)},this),this.e._transitionEnd=M.proxy(function(c){this.transitionEnd(c)},this),this.e._preventClick=M.proxy(function(c){this.preventClick(c)},this)},l.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},l.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))))},l.prototype.eventsRouter=function(c){var C=c.type;"mousedown"===C||"touchstart"===C?this.onDragStart(c):"mousemove"===C||"touchmove"===C?this.onDragMove(c):"mouseup"===C||"touchend"===C?this.onDragEnd(c):"touchcancel"===C&&this.onDragEnd(c)},l.prototype.internalEvents=function(){var c=("ontouchstart"in i||navigator.msMaxTouchPoints,i.navigator.msPointerEnabled);this.settings.mouseDrag?(this.$stage.on("mousedown",M.proxy(function(c){this.eventsRouter(c)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!c&&this.$stage.on("touchstart touchcancel",M.proxy(function(c){this.eventsRouter(c)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),!1!==this.settings.responsive&&this.on(i,"resize",M.proxy(this.onThrottledResize,this))},l.prototype.onDragStart=function(c){var C,l,e,s;if(3===(C=c.originalEvent||c||i.event).which||this.state.isTouch)return!1;if("mousedown"===C.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,l=a(C).x,e=a(C).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)s=this.getTransformProperty(),this.drag.offsetX=s,this.animate(s),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1;this.drag.startX=l-this.drag.offsetX,this.drag.startY=e-this.drag.offsetY,this.drag.start=l-this.drag.startX,this.drag.targetEl=C.target||C.srcElement,this.drag.updatedX=this.drag.start,"IMG"!==this.drag.targetEl.tagName&&"A"!==this.drag.targetEl.tagName||(this.drag.targetEl.draggable=!1),M(h).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",M.proxy(function(c){this.eventsRouter(c)},this))},l.prototype.onDragMove=function(c){var C,l,e,s,h,z;this.state.isTouch&&(this.state.isScrolling||(l=a(C=c.originalEvent||c||i.event).x,e=a(C).y,this.drag.currentX=l-this.drag.startX,this.drag.currentY=e-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":0<this.drag.distance&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(s=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),h=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),z=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,s+z),h+z)),(8<this.drag.distance||this.drag.distance<-8)&&(C.preventDefault!==t?C.preventDefault():C.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(16<this.drag.currentY||this.drag.currentY<-16)&&!1===this.state.isSwiping&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},l.prototype.onDragEnd=function(c){var C,l;if(this.state.isTouch){if("mouseup"===c.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&!0!==this.state.inMotion)return this.state.inMotion=!1;this.drag.endTime=(new Date).getTime(),C=this.drag.endTime-this.drag.startTime,(3<Math.abs(this.drag.distance)||300<C)&&this.removeClick(this.drag.targetEl),l=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(l),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(l)||this.transitionEnd(),this.drag.distance=0,M(h).off(".owl.dragEvents")}},l.prototype.removeClick=function(c){this.drag.targetEl=c,M(c).on("click.preventClick",this.e._preventClick),i.setTimeout(function(){M(c).off("click.preventClick")},300)},l.prototype.preventClick=function(c){c.preventDefault?c.preventDefault():c.returnValue=!1,c.stopPropagation&&c.stopPropagation(),M(c.target).off("click.preventClick")},l.prototype.getTransformProperty=function(){var c;return!0!=(16===(c=(c=i.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform")).replace(/matrix(3d)?\(|\)/g,"").split(",")).length)?c[4]:c[12]},l.prototype.closest=function(l){var e=-1,s=this.width(),h=this.coordinates();return this.settings.freeDrag||M.each(h,M.proxy(function(c,C){return C-30<l&&l<C+30?e=c:this.op(l,"<",C)&&this.op(l,">",h[c+1]||C-s)&&(e="left"===this.state.direction?c+1:c),-1===e},this)),this.settings.loop||(this.op(l,">",h[this.minimum()])?e=l=this.minimum():this.op(l,"<",h[this.maximum()])&&(e=l=this.maximum())),e},l.prototype.animate=function(c){this.trigger("translate"),this.state.inMotion=0<this.speed(),this.support3d?this.$stage.css({transform:"translate3d("+c+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:c+"px"}):this.$stage.animate({left:c},this.speed()/1e3,this.settings.fallbackEasing,M.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},l.prototype.current=function(c){if(c===t)return this._current;if(0===this._items.length)return t;if(c=this.normalize(c),this._current!==c){var C=this.trigger("change",{property:{name:"position",value:c}});C.data!==t&&(c=this.normalize(C.data)),this._current=c,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},l.prototype.invalidate=function(c){this._invalidated[c]=!0},l.prototype.reset=function(c){(c=this.normalize(c))!==t&&(this._speed=0,this._current=c,this.suppress(["translate","translated"]),this.animate(this.coordinates(c)),this.release(["translate","translated"]))},l.prototype.normalize=function(c,C){var l=C?this._items.length:this._items.length+this._clones.length;return!M.isNumeric(c)||l<1?t:c=this._clones.length?(c%l+l)%l:Math.max(this.minimum(C),Math.min(this.maximum(C),c))},l.prototype.relative=function(c){return c=this.normalize(c),c-=this._clones.length/2,this.normalize(c,!0)},l.prototype.maximum=function(c){var C,l,e,s=0,h=this.settings;if(c)return this._items.length-1;if(!h.loop&&h.center)C=this._items.length-1;else if(h.loop||h.center)if(h.loop||h.center)C=this._items.length+h.items;else{if(!h.autoWidth&&!h.merge)throw"Can not detect maximum absolute position.";for(revert=h.rtl?1:-1,l=this.$stage.width()-this.$element.width();(e=this.coordinates(s))&&!(e*revert>=l);)C=++s}else C=this._items.length-h.items;return C},l.prototype.minimum=function(c){return c?0:this._clones.length/2},l.prototype.items=function(c){return c===t?this._items.slice():(c=this.normalize(c,!0),this._items[c])},l.prototype.mergers=function(c){return c===t?this._mergers.slice():(c=this.normalize(c,!0),this._mergers[c])},l.prototype.clones=function(l){function e(c){return c%2==0?s+c/2:C-(c+1)/2}var C=this._clones.length/2,s=C+this._items.length;return l===t?M.map(this._clones,function(c,C){return e(C)}):M.map(this._clones,function(c,C){return c===l?e(C):null})},l.prototype.speed=function(c){return c!==t&&(this._speed=c),this._speed},l.prototype.coordinates=function(c){var C=null;return c===t?M.map(this._coordinates,M.proxy(function(c,C){return this.coordinates(C)},this)):(this.settings.center?(C=this._coordinates[c],C+=(this.width()-C+(this._coordinates[c-1]||0))/2*(this.settings.rtl?-1:1)):C=this._coordinates[c-1]||0,C)},l.prototype.duration=function(c,C,l){return Math.min(Math.max(Math.abs(C-c),1),6)*Math.abs(l||this.settings.smartSpeed)},l.prototype.to=function(c,C){if(this.settings.loop){var l=c-this.relative(this.current()),e=this.current(),s=this.current(),h=this.current()+l,z=s-h<0,t=this._clones.length+this._items.length;h<this.settings.items&&!1==z?(e=s+this._items.length,this.reset(e)):h>=t-this.settings.items&&!0==z&&(e=s-this._items.length,this.reset(e)),i.clearTimeout(this.e._goToLoop),this.e._goToLoop=i.setTimeout(M.proxy(function(){this.speed(this.duration(this.current(),e+l,C)),this.current(e+l),this.update()},this),30)}else this.speed(this.duration(this.current(),c,C)),this.current(c),this.update()},l.prototype.next=function(c){c=c||!1,this.to(this.relative(this.current())+1,c)},l.prototype.prev=function(c){c=c||!1,this.to(this.relative(this.current())-1,c)},l.prototype.transitionEnd=function(c){return(c===t||(c.stopPropagation(),(c.target||c.srcElement||c.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},l.prototype.viewport=function(){var c;if(this.options.responsiveBaseElement!==i)c=M(this.options.responsiveBaseElement).width();else if(i.innerWidth)c=i.innerWidth;else{if(!h.documentElement||!h.documentElement.clientWidth)throw"Can not detect viewport width.";c=h.documentElement.clientWidth}return c},l.prototype.replace=function(c){this.$stage.empty(),this._items=[],c=c&&(c instanceof jQuery?c:M(c)),this.settings.nestedItemSelector&&(c=c.find("."+this.settings.nestedItemSelector)),c.filter(function(){return 1===this.nodeType}).each(M.proxy(function(c,C){C=this.prepare(C),this.$stage.append(C),this._items.push(C),this._mergers.push(1*C.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(M.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},l.prototype.add=function(c,C){C=C===t?this._items.length:this.normalize(C,!0),this.trigger("add",{content:c,position:C}),0===this._items.length||C===this._items.length?(this.$stage.append(c),this._items.push(c),this._mergers.push(1*c.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[C].before(c),this._items.splice(C,0,c),this._mergers.splice(C,0,1*c.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:c,position:C})},l.prototype.remove=function(c){(c=this.normalize(c,!0))!==t&&(this.trigger("remove",{content:this._items[c],position:c}),this._items[c].remove(),this._items.splice(c,1),this._mergers.splice(c,1),this.invalidate("items"),this.trigger("removed",{content:null,position:c}))},l.prototype.addTriggerableEvents=function(){var l=M.proxy(function(C,l){return M.proxy(function(c){c.relatedTarget!==this&&(this.suppress([l]),C.apply(this,[].slice.call(arguments,1)),this.release([l]))},this)},this);M.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},M.proxy(function(c,C){this.$element.on(c+".owl.carousel",l(C,c+".owl.carousel"))},this))},l.prototype.watchVisibility=function(){function c(c){return 0<c.offsetWidth&&0<c.offsetHeight}c(this.$element.get(0))||(this.$element.addClass("owl-hidden"),i.clearInterval(this.e._checkVisibile),this.e._checkVisibile=i.setInterval(M.proxy(function(){c(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),i.clearInterval(this.e._checkVisibile))},this),500))},l.prototype.preloadAutoWidthImages=function(l){var e,s,h,z;e=0,s=this,l.each(function(c,C){h=M(C),(z=new Image).onload=function(){e++,h.attr("src",z.src),h.css("opacity",1),e>=l.length&&(s.state.imagesLoaded=!0,s.initialize())},z.src=h.attr("src")||h.attr("data-src")||h.attr("data-src-retina")})},l.prototype.destroy=function(){for(var c in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&M(i).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[c].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),M(h).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},l.prototype.op=function(c,C,l){var e=this.settings.rtl;switch(C){case"<":return e?l<c:c<l;case">":return e?c<l:l<c;case">=":return e?c<=l:l<=c;case"<=":return e?l<=c:c<=l}},l.prototype.on=function(c,C,l,e){c.addEventListener?c.addEventListener(C,l,e):c.attachEvent&&c.attachEvent("on"+C,l)},l.prototype.off=function(c,C,l,e){c.removeEventListener?c.removeEventListener(C,l,e):c.detachEvent&&c.detachEvent("on"+C,l)},l.prototype.trigger=function(c,C,l){var e={item:{count:this._items.length,index:this.current()}},s=M.camelCase(M.grep(["on",c,l],function(c){return c}).join("-").toLowerCase()),h=M.Event([c,"owl",l||"carousel"].join(".").toLowerCase(),M.extend({relatedTarget:this},e,C));return this._supress[c]||(M.each(this._plugins,function(c,C){C.onTrigger&&C.onTrigger(h)}),this.$element.trigger(h),this.settings&&"function"==typeof this.settings[s]&&this.settings[s].apply(this,h)),h},l.prototype.suppress=function(c){M.each(c,M.proxy(function(c,C){this._supress[C]=!0},this))},l.prototype.release=function(c){M.each(c,M.proxy(function(c,C){delete this._supress[C]},this))},l.prototype.browserSupport=function(){if(this.support3d=c(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=c(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][c(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=i.orientation},M.fn.owlCarousel=function(c){return this.each(function(){M(this).data("owlCarousel")||M(this).data("owlCarousel",new l(this,c))})},M.fn.owlCarousel.Constructor=l}(window.Zepto||window.jQuery,window,document),function(t,h){var C=function(c){this._core=c,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":t.proxy(function(c){if(c.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(c.property&&"position"==c.property.name||"initialized"==c.type))for(var C=this._core.settings,l=C.center&&Math.ceil(C.items/2)||C.items,e=C.center&&-1*l||0,s=(c.property&&c.property.value||this._core.current())+e,h=this._core.clones().length,z=t.proxy(function(c,C){this.load(C)},this);e++<l;)this.load(h/2+this._core.relative(s)),h&&t.each(this._core.clones(this._core.relative(s++)),z)},this)},this._core.options=t.extend({},C.Defaults,this._core.options),this._core.$element.on(this._handlers)};C.Defaults={lazyLoad:!1},C.prototype.load=function(c){var C=this._core.$stage.children().eq(c),l=C&&C.find(".owl-lazy");!l||-1<t.inArray(C.get(0),this._loaded)||(l.each(t.proxy(function(c,C){var l,e=t(C),s=1<h.devicePixelRatio&&e.attr("data-src-retina")||e.attr("data-src");this._core.trigger("load",{element:e,url:s},"lazy"),e.is("img")?e.one("load.owl.lazy",t.proxy(function(){e.css("opacity",1),this._core.trigger("loaded",{element:e,url:s},"lazy")},this)).attr("src",s):((l=new Image).onload=t.proxy(function(){e.css({"background-image":"url("+s+")",opacity:"1"}),this._core.trigger("loaded",{element:e,url:s},"lazy")},this),l.src=s)},this)),this._loaded.push(C.get(0)))},C.prototype.destroy=function(){var c,C;for(c in this.handlers)this._core.$element.off(c,this.handlers[c]);for(C in Object.getOwnPropertyNames(this))"function"!=typeof this[C]&&(this[C]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=C}(window.Zepto||window.jQuery,window,document),function(C){var l=function(c){this._core=c,this._handlers={"initialized.owl.carousel":C.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":C.proxy(function(c){this._core.settings.autoHeight&&"position"==c.property.name&&this.update()},this),"loaded.owl.lazy":C.proxy(function(c){this._core.settings.autoHeight&&c.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=C.extend({},l.Defaults,this._core.options),this._core.$element.on(this._handlers)};l.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},l.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},l.prototype.destroy=function(){var c,C;for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(C in Object.getOwnPropertyNames(this))"function"!=typeof this[C]&&(this[C]=null)},C.fn.owlCarousel.Constructor.Plugins.AutoHeight=l}(window.Zepto||window.jQuery,window,document),function(a,C,l){var e=function(c){this._core=c,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":a.proxy(function(c){this._core.settings.video&&!this.isInFullScreen()&&c.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":a.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(c){var C=a(c.content).find(".owl-video");C.length&&(C.css("display","none"),this.fetch(C,a(c.content)))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(c){this.play(c)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(c,C){var l=c.attr("data-vimeo-id")?"vimeo":"youtube",e=c.attr("data-vimeo-id")||c.attr("data-youtube-id"),s=c.attr("data-width")||this._core.settings.videoWidth,h=c.attr("data-height")||this._core.settings.videoHeight,z=c.attr("href");if(!z)throw new Error("Missing video URL.");if(-1<(e=z.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))l="youtube";else{if(!(-1<e[3].indexOf("vimeo")))throw new Error("Video URL not supported.");l="vimeo"}e=e[6],this._videos[z]={type:l,id:e,width:s,height:h},C.attr("data-video",z),this.thumbnail(c,this._videos[z])},e.prototype.thumbnail=function(C,c){function l(c){'<div class="owl-video-play-icon"></div>',e=i.lazyLoad?'<div class="owl-video-tn '+M+'" '+t+'="'+c+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+c+')"></div>',C.after(e),C.after('<div class="owl-video-play-icon"></div>')}var e,s,h=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",z=C.find("img"),t="src",M="",i=this._core.settings;return C.wrap('<div class="owl-video-wrapper"'+h+"></div>"),this._core.settings.lazyLoad&&(t="data-src",M="owl-lazy"),z.length?(l(z.attr(t)),z.remove(),!1):void("youtube"===c.type?(s="http://img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(s)):"vimeo"===c.type&&a.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(c){s=c[0].thumbnail_large,l(s)}}))},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},e.prototype.play=function(c){this._core.trigger("play",null,"video"),this._playing&&this.stop();var C,l,e=a(c.target||c.srcElement),s=e.closest("."+this._core.settings.itemClass),h=this._videos[s.attr("data-video")],z=h.width||"100%",t=h.height||this._core.$stage.height();"youtube"===h.type?C='<iframe width="'+z+'" height="'+t+'" src="http://www.youtube.com/embed/'+h.id+"?autoplay=1&v="+h.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===h.type&&(C='<iframe src="http://player.vimeo.com/video/'+h.id+'?autoplay=1" width="'+z+'" height="'+t+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),s.addClass("owl-video-playing"),this._playing=s,l=a('<div style="height:'+t+"px; width:"+z+'px" class="owl-video-frame">'+C+"</div>"),e.after(l)},e.prototype.isInFullScreen=function(){var c=l.fullscreenElement||l.mozFullScreenElement||l.webkitFullscreenElement;return c&&a(c).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(c&&this._fullscreen&&this._playing)&&(this._fullscreen?this._fullscreen=!1:!this._playing||this._core.state.orientation===C.orientation||(this._core.state.orientation=C.orientation,!1))},e.prototype.destroy=function(){var c,C;for(c in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(c,this._handlers[c]);for(C in Object.getOwnPropertyNames(this))"function"!=typeof this[C]&&(this[C]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(z){var C=function(c){this.core=c,this.core.options=z.extend({},C.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":z.proxy(function(c){"position"==c.property.name&&(this.previous=this.core.current(),this.next=c.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":z.proxy(function(c){this.swapping="translated"==c.type},this),"translate.owl.carousel":z.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};C.Defaults={animateOut:!1,animateIn:!1},C.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var c,C=z.proxy(this.clear,this),l=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,h=this.core.settings.animateOut;this.core.current()!==this.previous&&(h&&(c=this.core.coordinates(this.previous)-this.core.coordinates(this.next),l.css({left:c+"px"}).addClass("animated owl-animated-out").addClass(h).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",C)),s&&e.addClass("animated owl-animated-in").addClass(s).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",C))}},C.prototype.clear=function(c){z(c.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},C.prototype.destroy=function(){var c,C;for(c in this.handlers)this.core.$element.off(c,this.handlers[c]);for(C in Object.getOwnPropertyNames(this))"function"!=typeof this[C]&&(this[C]=null)},z.fn.owlCarousel.Constructor.Plugins.Animate=C}(window.Zepto||window.jQuery,window,document),function(C,l,c){var e=function(c){this.core=c,this.core.options=C.extend({},e.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":C.proxy(function(){this.autoplay()},this),"play.owl.autoplay":C.proxy(function(c,C,l){this.play(C,l)},this),"stop.owl.autoplay":C.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":C.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":C.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(l.clearInterval(this.interval),this.interval=l.setInterval(C.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):l.clearInterval(this.interval)},e.prototype.play=function(){return!0===c.hidden||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:!1===this.core.settings.autoplay?void l.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},e.prototype.stop=function(){l.clearInterval(this.interval)},e.prototype.pause=function(){l.clearInterval(this.interval)},e.prototype.destroy=function(){var c,C;for(c in l.clearInterval(this.interval),this.handlers)this.core.$element.off(c,this.handlers[c]);for(C in Object.getOwnPropertyNames(this))"function"!=typeof this[C]&&(this[C]=null)},C.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(h){"use strict";var C=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":h.proxy(function(c){this._core.settings.dotsData&&this._templates.push(h(c.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":h.proxy(function(c){this._core.settings.dotsData&&this._templates.splice(c.position,0,h(c.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":h.proxy(function(c){this._core.settings.dotsData&&this._templates.splice(c.position,1)},this),"change.owl.carousel":h.proxy(function(c){if("position"==c.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var C=this._core.current(),l=this._core.maximum(),e=this._core.minimum();c.data=c.property.value>l?l<=C?e:l:c.property.value<e?l:c.property.value}},this),"changed.owl.carousel":h.proxy(function(c){"position"==c.property.name&&this.draw()},this),"refreshed.owl.carousel":h.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=h.extend({},C.Defaults,this._core.options),this.$element.on(this._handlers)};C.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},C.prototype.initialize=function(){var c,C,l=this._core.settings;for(C in l.dotsData||(this._templates=[h("<div>").addClass(l.dotClass).append(h("<span>")).prop("outerHTML")]),l.navContainer&&l.dotsContainer||(this._controls.$container=h("<div>").addClass(l.controlsClass).appendTo(this.$element)),this._controls.$indicators=l.dotsContainer?h(l.dotsContainer):h("<div>").hide().addClass(l.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",h.proxy(function(c){var C=h(c.target).parent().is(this._controls.$indicators)?h(c.target).index():h(c.target).parent().index();c.preventDefault(),this.to(C,l.dotsSpeed)},this)),c=l.navContainer?h(l.navContainer):h("<div>").addClass(l.navContainerClass).prependTo(this._controls.$container),this._controls.$next=h("<"+l.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(l.navClass[0]).html(l.navText[0]).hide().prependTo(c).on("click",h.proxy(function(){this.prev(l.navSpeed)},this)),this._controls.$next.addClass(l.navClass[1]).html(l.navText[1]).hide().appendTo(c).on("click",h.proxy(function(){this.next(l.navSpeed)},this)),this._overrides)this._core[C]=h.proxy(this[C],this)},C.prototype.destroy=function(){var c,C,l,e;for(c in this._handlers)this.$element.off(c,this._handlers[c]);for(C in this._controls)this._controls[C].remove();for(e in this.overides)this._core[e]=this._overrides[e];for(l in Object.getOwnPropertyNames(this))"function"!=typeof this[l]&&(this[l]=null)},C.prototype.update=function(){var c,C,l=this._core.settings,e=this._core.clones().length/2,s=e+this._core.items().length,h=l.center||l.autoWidth||l.dotData?1:l.dotsEach||l.items;if("page"!==l.slideBy&&(l.slideBy=Math.min(l.slideBy,l.items)),l.dots||"page"==l.slideBy)for(this._pages=[],c=e,C=0;c<s;c++)(h<=C||0===C)&&(this._pages.push({start:c-e,end:c-e+h-1}),C=0,0),C+=this._core.mergers(this._core.relative(c))},C.prototype.draw=function(){var c,C,l="",e=this._core.settings,s=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!e.nav||e.loop||e.navRewind||(this._controls.$previous.toggleClass("disabled",s<=0),this._controls.$next.toggleClass("disabled",s>=this._core.maximum())),this._controls.$previous.toggle(e.nav),this._controls.$next.toggle(e.nav),e.dots){if(c=this._pages.length-this._controls.$indicators.children().length,e.dotData&&0!=c){for(C=0;C<this._controls.$indicators.children().length;C++)l+=this._templates[this._core.relative(C)];this._controls.$indicators.html(l)}else 0<c?(l=new Array(1+c).join(this._templates[0]),this._controls.$indicators.append(l)):c<0&&this._controls.$indicators.children().slice(c).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(h.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(e.dots)},C.prototype.onTrigger=function(c){var C=this._core.settings;c.page={index:h.inArray(this.current(),this._pages),count:this._pages.length,size:C&&(C.center||C.autoWidth||C.dotData?1:C.dotsEach||C.items)}},C.prototype.current=function(){var C=this._core.relative(this._core.current());return h.grep(this._pages,function(c){return c.start<=C&&c.end>=C}).pop()},C.prototype.getPosition=function(c){var C,l,e=this._core.settings;return"page"==e.slideBy?(C=h.inArray(this.current(),this._pages),l=this._pages.length,c?++C:--C,C=this._pages[(C%l+l)%l].start):(C=this._core.relative(this._core.current()),l=this._core.items().length,c?C+=e.slideBy:C-=e.slideBy),C},C.prototype.next=function(c){h.proxy(this._overrides.to,this._core)(this.getPosition(!0),c)},C.prototype.prev=function(c){h.proxy(this._overrides.to,this._core)(this.getPosition(!1),c)},C.prototype.to=function(c,C,l){var e;l?h.proxy(this._overrides.to,this._core)(c,C):(e=this._pages.length,h.proxy(this._overrides.to,this._core)(this._pages[(c%e+e)%e].start,C))},h.fn.owlCarousel.Constructor.Plugins.Navigation=C}(window.Zepto||window.jQuery,window,document),function(l,e){"use strict";var C=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":l.proxy(function(){"URLHash"==this._core.settings.startPosition&&l(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":l.proxy(function(c){var C=l(c.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[C]=c.content},this)},this._core.options=l.extend({},C.Defaults,this._core.options),this.$element.on(this._handlers),l(e).on("hashchange.owl.navigation",l.proxy(function(){var c=e.location.hash.substring(1),C=this._core.$stage.children(),l=this._hashes[c]&&C.index(this._hashes[c])||0;return!!c&&void this._core.to(l,!1,!0)},this))};C.Defaults={URLhashListener:!1},C.prototype.destroy=function(){var c,C;for(c in l(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(c,this._handlers[c]);for(C in Object.getOwnPropertyNames(this))"function"!=typeof this[C]&&(this[C]=null)},l.fn.owlCarousel.Constructor.Plugins.Hash=C}(window.Zepto||window.jQuery,window,document),function(){var x,T;x=window.jQuery,T=x(window),x.fn.stick_in_parent=function(c){var u,p,C,l,m,e,g,b,w,y,k,_;for(null==c&&(c={}),_=c.sticky_class,m=c.inner_scrolling,k=c.recalc_every,y=c.parent,b=c.offset_top,g=c.spacer,p=c.bottoming,null==b&&(b=0),null==y&&(y=void 0),null==m&&(m=!0),null==_&&(_="is_stuck"),u=x(document),null==p&&(p=!0),w=function(c){var C;return window.getComputedStyle?(c=window.getComputedStyle(c[0]),C=parseFloat(c.getPropertyValue("width"))+parseFloat(c.getPropertyValue("margin-left"))+parseFloat(c.getPropertyValue("margin-right")),"border-box"!==c.getPropertyValue("box-sizing")&&(C+=parseFloat(c.getPropertyValue("border-left-width"))+parseFloat(c.getPropertyValue("border-right-width"))+parseFloat(c.getPropertyValue("padding-left"))+parseFloat(c.getPropertyValue("padding-right"))),C):c.outerWidth(!0)},C=function(s,h,z,t,M,i,a,n){var r,c,o,v,V,L,H,S,C,f,d,e;if(!s.data("sticky_kit")){if(s.data("sticky_kit",!0),V=u.height(),H=s.parent(),null!=y&&(H=H.closest(y)),!H.length)throw"failed to find stick parent";if(r=o=!1,(d=null!=g?g&&s.closest(g):x("<div />"))&&d.css("position",s.css("position")),(S=function(){var c,C,l;if(!n&&(V=u.height(),c=parseInt(H.css("border-top-width"),10),C=parseInt(H.css("padding-top"),10),h=parseInt(H.css("padding-bottom"),10),z=H.offset().top+c+C,t=H.height(),o&&(r=o=!1,null==g&&(s.insertAfter(d),d.detach()),s.css({position:"",top:"",width:"",bottom:""}).removeClass(_),l=!0),M=s.offset().top-(parseInt(s.css("margin-top"),10)||0)-b,i=s.outerHeight(!0),a=s.css("float"),d&&d.css({width:w(s),height:i,display:s.css("display"),"vertical-align":s.css("vertical-align"),float:a}),l))return e()})(),i!==t)return v=void 0,L=b,f=k,e=function(){var c,C,l,e;if(!n&&(l=!1,null!=f&&(--f<=0&&(f=k,S(),l=!0)),l||u.height()===V||S(),l=T.scrollTop(),null!=v&&(C=l-v),v=l,o?(p&&(e=t+z<l+i+L,r&&!e&&(r=!1,s.css({position:"fixed",bottom:"",top:L}).trigger("sticky_kit:unbottom"))),l<M&&(o=!1,L=b,null==g&&("left"!==a&&"right"!==a||s.insertAfter(d),d.detach()),c={position:"",width:"",top:""},s.css(c).removeClass(_).trigger("sticky_kit:unstick")),m&&((c=T.height())<i+b&&!r&&(L-=C,L=Math.max(c-i,L),L=Math.min(b,L),o&&s.css({top:L+"px"})))):M<l&&(o=!0,(c={position:"fixed",top:L}).width="border-box"===s.css("box-sizing")?s.outerWidth()+"px":s.width()+"px",s.css(c).addClass(_),null==g&&(s.after(d),"left"!==a&&"right"!==a||d.append(s)),s.trigger("sticky_kit:stick")),o&&p&&(null==e&&(e=t+z<l+i+L),!r&&e)))return r=!0,"static"===H.css("position")&&H.css({position:"relative"}),s.css({position:"absolute",bottom:h,top:"auto"}).trigger("sticky_kit:bottom")},C=function(){return S(),e()},c=function(){if(n=!0,T.off("touchmove",e),T.off("scroll",e),T.off("resize",C),x(document.body).off("sticky_kit:recalc",C),s.off("sticky_kit:detach",c),s.removeData("sticky_kit"),s.css({position:"",bottom:"",top:"",width:""}),H.position("position",""),o)return null==g&&("left"!==a&&"right"!==a||s.insertAfter(d),d.remove()),s.removeClass(_)},T.on("touchmove",e),T.on("scroll",e),T.on("resize",C),x(document.body).on("sticky_kit:recalc",C),s.on("sticky_kit:detach",c),setTimeout(e,0)}},l=0,e=this.length;l<e;l++)c=this[l],C(x(c));return this}}.call(this),function(){var M,c,s,z,h={}.hasOwnProperty;function C(){this.options_index=0,this.parsed=[]}function l(c,C){this.form_field=c,this.options=null!=C?C:{},l.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}function e(){return e.__super__.constructor.apply(this,arguments)}C.prototype.add_node=function(c){return"OPTGROUP"===c.nodeName.toUpperCase()?this.add_group(c):this.add_option(c)},C.prototype.add_group=function(c){var C,l,e,s,h,z;for(C=this.parsed.length,this.parsed.push({array_index:C,group:!0,label:this.escapeExpression(c.label),title:c.title?c.title:void 0,children:0,disabled:c.disabled,classes:c.className}),z=[],e=0,s=(h=c.childNodes).length;e<s;e++)l=h[e],z.push(this.add_option(l,C,c.disabled));return z},C.prototype.add_option=function(c,C,l){if("OPTION"===c.nodeName.toUpperCase())return""!==c.text?(null!=C&&(this.parsed[C].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:c.value,text:c.text,html:c.innerHTML,title:c.title?c.title:void 0,selected:c.selected,disabled:!0===l?l:c.disabled,group_array_index:C,group_label:null!=C?this.parsed[C].label:null,classes:c.className,style:c.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},C.prototype.escapeExpression=function(c){var C,l;return null==c||!1===c?"":/[\&\<\>\"\'\`]/.test(c)?(C={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},l=/&(?!\w+;)|[\<\>\"\'\`]/g,c.replace(l,function(c){return C[c]||"&amp;"})):c},(z=C).select_to_array=function(c){var C,l,e,s,h;for(l=new z,e=0,s=(h=c.childNodes).length;e<s;e++)C=h[e],l.add_node(C);return l.parsed},l.prototype.set_default_values=function(){var C=this;return this.click_test_action=function(c){return C.test_active_click(c)},this.activate_action=function(c){return C.activate_field(c)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1},l.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||l.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||l.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||l.default_no_result_text},l.prototype.choice_label=function(c){return this.include_group_label_in_selected&&null!=c.group_label?"<b class='group-name'>"+c.group_label+"</b>"+c.html:c.html},l.prototype.mouse_enter=function(){return this.mouse_on_container=!0},l.prototype.mouse_leave=function(){return this.mouse_on_container=!1},l.prototype.input_focus=function(c){var C=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return C.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},l.prototype.input_blur=function(c){var C=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return C.blur_test()},100)},l.prototype.results_option_build=function(c){var C,l,e,s,h,z,t;for(C="",h=s=0,z=(t=this.results_data).length;h<z&&((e="")!==(e=(l=t[h]).group?this.result_add_group(l):this.result_add_option(l))&&(s++,C+=e),(null!=c?c.first:void 0)&&(l.selected&&this.is_multiple?this.choice_build(l):l.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(l))),!(s>=this.max_shown_results));h++);return C},l.prototype.result_add_option=function(c){var C,l;return c.search_match&&this.include_option_in_results(c)?(C=[],c.disabled||c.selected&&this.is_multiple||C.push("active-result"),!c.disabled||c.selected&&this.is_multiple||C.push("disabled-result"),c.selected&&C.push("result-selected"),null!=c.group_array_index&&C.push("group-option"),""!==c.classes&&C.push(c.classes),(l=document.createElement("li")).className=C.join(" "),l.style.cssText=c.style,l.setAttribute("data-option-array-index",c.array_index),l.innerHTML=c.search_text,c.title&&(l.title=c.title),this.outerHTML(l)):""},l.prototype.result_add_group=function(c){var C,l;return(c.search_match||c.group_match)&&0<c.active_options?((C=[]).push("group-result"),c.classes&&C.push(c.classes),(l=document.createElement("li")).className=C.join(" "),l.innerHTML=c.search_text,c.title&&(l.title=c.title),this.outerHTML(l)):""},l.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},l.prototype.reset_single_select_options=function(){var c,C,l,e,s;for(s=[],C=0,l=(e=this.results_data).length;C<l;C++)(c=e[C]).selected?s.push(c.selected=!1):s.push(void 0);return s},l.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},l.prototype.results_search=function(c){return this.results_showing?this.winnow_results():this.results_show()},l.prototype.winnow_results=function(){var c,C,l,e,s,h,z,t,M,i,a,n;for(this.no_results_clear(),e=0,c=(h=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),M=new RegExp(c,"i"),l=this.get_search_regex(c),i=0,a=(n=this.results_data).length;i<a;i++)(C=n[i]).search_match=!1,s=null,this.include_option_in_results(C)&&(C.group&&(C.group_match=!1,C.active_options=0),null!=C.group_array_index&&this.results_data[C.group_array_index]&&(0===(s=this.results_data[C.group_array_index]).active_options&&s.search_match&&(e+=1),s.active_options+=1),C.search_text=C.group?C.label:C.html,C.group&&!this.group_search||(C.search_match=this.search_string_match(C.search_text,l),C.search_match&&!C.group&&(e+=1),C.search_match?(h.length&&(z=C.search_text.search(M),t=C.search_text.substr(0,z+h.length)+"</em>"+C.search_text.substr(z+h.length),C.search_text=t.substr(0,z)+"<em>"+t.substr(z)),null!=s&&(s.group_match=!0)):null!=C.group_array_index&&this.results_data[C.group_array_index].search_match&&(C.search_match=!0)));return this.result_clear_highlight(),e<1&&h.length?(this.update_results_content(""),this.no_results(h)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},l.prototype.get_search_regex=function(c){var C,l;return C=this.search_contains?"":"^",l=this.case_sensitive_search?"":"i",new RegExp(C+c,l)},l.prototype.search_string_match=function(c,C){var l,e,s,h;if(C.test(c))return!0;if(this.enable_split_word_search&&(0<=c.indexOf(" ")||0===c.indexOf("["))&&(e=c.replace(/\[|\]/g,"").split(" ")).length)for(s=0,h=e.length;s<h;s++)if(l=e[s],C.test(l))return!0},l.prototype.choices_count=function(){var c,C,l;if(null!=this.selected_option_count)return this.selected_option_count;for(c=this.selected_option_count=0,C=(l=this.form_field.options).length;c<C;c++)l[c].selected&&(this.selected_option_count+=1);return this.selected_option_count},l.prototype.choices_click=function(c){if(c.preventDefault(),!this.results_showing&&!this.is_disabled)return this.results_show()},l.prototype.keyup_checker=function(c){var C,l;switch(C=null!=(l=c.which)?l:c.keyCode,this.search_field_scale(),C){case 8:if(this.is_multiple&&this.backstroke_length<1&&0<this.choices_count())return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(c.preventDefault(),this.results_showing)return this.result_select(c);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:case 18:break;default:return this.results_search()}},l.prototype.clipboard_event_checker=function(c){var C=this;return setTimeout(function(){return C.results_search()},50)},l.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},l.prototype.include_option_in_results=function(c){return!(this.is_multiple&&!this.display_selected_options&&c.selected||!this.display_disabled_options&&c.disabled||c.empty)},l.prototype.search_results_touchstart=function(c){return this.touch_started=!0,this.search_results_mouseover(c)},l.prototype.search_results_touchmove=function(c){return this.touch_started=!1,this.search_results_mouseout(c)},l.prototype.search_results_touchend=function(c){if(this.touch_started)return this.search_results_mouseup(c)},l.prototype.outerHTML=function(c){var C;return c.outerHTML?c.outerHTML:((C=document.createElement("div")).appendChild(c),C.innerHTML)},l.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?8<=document.documentMode:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},l.default_multiple_text="Select Some Options",l.default_single_text="Select an Option",l.default_no_result_text="No results match",c=l,(M=jQuery).fn.extend({chosen:function(e){return c.browser_is_supported()?this.each(function(c){var C,l;l=(C=M(this)).data("chosen"),"destroy"!==e?l instanceof s||C.data("chosen",new s(this,e)):l instanceof s&&l.destroy()}):this}}),function(c,C){for(var l in C)h.call(C,l)&&(c[l]=C[l]);function e(){this.constructor=c}e.prototype=C.prototype,c.prototype=new e,c.__super__=C.prototype}(e,c),e.prototype.setup=function(){return this.form_field_jq=M(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},e.prototype.set_up_html=function(){var c,C;return(c=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&c.push(this.form_field.className),this.is_rtl&&c.push("chosen-rtl"),C={class:c.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(C.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=M("<div />",C),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},e.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},e.prototype.register_observers=function(){var C=this;return this.container.bind("touchstart.chosen",function(c){return C.container_mousedown(c),c.preventDefault()}),this.container.bind("touchend.chosen",function(c){return C.container_mouseup(c),c.preventDefault()}),this.container.bind("mousedown.chosen",function(c){C.container_mousedown(c)}),this.container.bind("mouseup.chosen",function(c){C.container_mouseup(c)}),this.container.bind("mouseenter.chosen",function(c){C.mouse_enter(c)}),this.container.bind("mouseleave.chosen",function(c){C.mouse_leave(c)}),this.search_results.bind("mouseup.chosen",function(c){C.search_results_mouseup(c)}),this.search_results.bind("mouseover.chosen",function(c){C.search_results_mouseover(c)}),this.search_results.bind("mouseout.chosen",function(c){C.search_results_mouseout(c)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(c){C.search_results_mousewheel(c)}),this.search_results.bind("touchstart.chosen",function(c){C.search_results_touchstart(c)}),this.search_results.bind("touchmove.chosen",function(c){C.search_results_touchmove(c)}),this.search_results.bind("touchend.chosen",function(c){C.search_results_touchend(c)}),this.form_field_jq.bind("chosen:updated.chosen",function(c){C.results_update_field(c)}),this.form_field_jq.bind("chosen:activate.chosen",function(c){C.activate_field(c)}),this.form_field_jq.bind("chosen:open.chosen",function(c){C.container_mousedown(c)}),this.form_field_jq.bind("chosen:close.chosen",function(c){C.input_blur(c)}),this.search_field.bind("blur.chosen",function(c){C.input_blur(c)}),this.search_field.bind("keyup.chosen",function(c){C.keyup_checker(c)}),this.search_field.bind("keydown.chosen",function(c){C.keydown_checker(c)}),this.search_field.bind("focus.chosen",function(c){C.input_focus(c)}),this.search_field.bind("cut.chosen",function(c){C.clipboard_event_checker(c)}),this.search_field.bind("paste.chosen",function(c){C.clipboard_event_checker(c)}),this.is_multiple?this.search_choices.bind("click.chosen",function(c){C.choices_click(c)}):this.container.bind("click.chosen",function(c){c.preventDefault()})},e.prototype.destroy=function(){return M(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},e.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},e.prototype.container_mousedown=function(c){if(!this.is_disabled&&(c&&"mousedown"===c.type&&!this.results_showing&&c.preventDefault(),null==c||!M(c.target).hasClass("search-choice-close")))return this.active_field?this.is_multiple||!c||M(c.target)[0]!==this.selected_item[0]&&!M(c.target).parents("a.chosen-single").length||(c.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),M(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},e.prototype.container_mouseup=function(c){if("ABBR"===c.target.nodeName&&!this.is_disabled)return this.results_reset(c)},e.prototype.search_results_mousewheel=function(c){var C;if(c.originalEvent&&(C=c.originalEvent.deltaY||-c.originalEvent.wheelDelta||c.originalEvent.detail),null!=C)return c.preventDefault(),"DOMMouseScroll"===c.type&&(C*=40),this.search_results.scrollTop(C+this.search_results.scrollTop())},e.prototype.blur_test=function(c){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},e.prototype.close_field=function(){return M(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},e.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},e.prototype.test_active_click=function(c){var C;return(C=M(c.target).closest(".chosen-container")).length&&this.container[0]===C[0]?this.active_field=!0:this.close_field()},e.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=z.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},e.prototype.result_do_highlight=function(c){var C,l,e,s;if(c.length){if(this.result_clear_highlight(),this.result_highlight=c,this.result_highlight.addClass("highlighted"),(e=parseInt(this.search_results.css("maxHeight"),10))+(s=this.search_results.scrollTop())<=(C=(l=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight()))return this.search_results.scrollTop(0<C-e?C-e:0);if(l<s)return this.search_results.scrollTop(l)}},e.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},e.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},e.prototype.update_results_content=function(c){return this.search_results.html(c)},e.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},e.prototype.set_tab_index=function(c){var C;if(this.form_field.tabIndex)return C=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=C},e.prototype.set_label_behavior=function(){var C=this;if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=M("label[for='"+this.form_field.id+"']")),0<this.form_field_label.length)return this.form_field_label.bind("click.chosen",function(c){return C.is_multiple?C.container_mousedown(c):C.activate_field()})},e.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},e.prototype.search_results_mouseup=function(c){var C;if((C=M(c.target).hasClass("active-result")?M(c.target):M(c.target).parents(".active-result").first()).length)return this.result_highlight=C,this.result_select(c),this.search_field.focus()},e.prototype.search_results_mouseover=function(c){var C;if(C=M(c.target).hasClass("active-result")?M(c.target):M(c.target).parents(".active-result").first())return this.result_do_highlight(C)},e.prototype.search_results_mouseout=function(c){if(M(c.target).hasClass("active-result"))return this.result_clear_highlight()},e.prototype.choice_build=function(c){var C,l,e=this;return C=M("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(c)+"</span>"),c.disabled?C.addClass("search-choice-disabled"):((l=M("<a />",{class:"search-choice-close","data-option-array-index":c.array_index})).bind("click.chosen",function(c){return e.choice_destroy_link_click(c)}),C.append(l)),this.search_container.before(C)},e.prototype.choice_destroy_link_click=function(c){if(c.preventDefault(),c.stopPropagation(),!this.is_disabled)return this.choice_destroy(M(c.target))},e.prototype.choice_destroy=function(c){if(this.result_deselect(c[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&0<this.choices_count()&&this.search_field.val().length<1&&this.results_hide(),c.parents("li").first().remove(),this.search_field_scale()},e.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field)return this.results_hide()},e.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},e.prototype.result_select=function(c){var C,l;if(this.result_highlight)return C=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?C.removeClass("active-result"):this.reset_single_select_options(),C.addClass("result-selected"),(l=this.results_data[C[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[l.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(l):this.single_set_selected_text(this.choice_label(l)),(c.metaKey||c.ctrlKey)&&this.is_multiple||this.results_hide(),this.show_search_field_default(),!this.is_multiple&&this.form_field.selectedIndex===this.current_selectedIndex||this.form_field_jq.trigger("change",{selected:this.form_field.options[l.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,c.preventDefault(),this.search_field_scale())},e.prototype.single_set_selected_text=function(c){return null==c&&(c=this.default_text),c===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(c)},e.prototype.result_deselect=function(c){var C;return C=this.results_data[c],!this.form_field.options[C.options_index].disabled&&(C.selected=!1,this.form_field.options[C.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[C.options_index].value}),this.search_field_scale(),!0)},e.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},e.prototype.get_search_text=function(){return M("<div/>").text(M.trim(this.search_field.val())).html()},e.prototype.winnow_results_set_highlight=function(){var c,C;if(null!=(c=(C=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?C.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(c)},e.prototype.no_results=function(c){var C;return(C=M('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>')).find("span").first().html(c),this.search_results.append(C),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},e.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},e.prototype.keydown_arrow=function(){var c;return this.results_showing&&this.result_highlight?(c=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(c):void 0:this.results_show()},e.prototype.keyup_arrow=function(){var c;return this.results_showing||this.is_multiple?this.result_highlight?(c=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(c.first()):(0<this.choices_count()&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},e.prototype.keydown_backstroke=function(){var c;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(c=this.search_container.siblings("li.search-choice").last()).length&&!c.hasClass("search-choice-disabled")?(this.pending_backstroke=c,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},e.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},e.prototype.keydown_checker=function(c){var C,l;switch(C=null!=(l=c.which)?l:c.keyCode,this.search_field_scale(),8!==C&&this.pending_backstroke&&this.clear_backstroke(),C){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(c),this.mouse_on_container=!1;break;case 13:this.results_showing&&c.preventDefault();break;case 32:this.disable_search&&c.preventDefault();break;case 38:c.preventDefault(),this.keyup_arrow();break;case 40:c.preventDefault(),this.keydown_arrow()}},e.prototype.search_field_scale=function(){var c,C,l,e,s,h,z,t;if(this.is_multiple){for(e="position:absolute; left: -1000px; top: -1000px; display:none;",z=h=0,t=(s=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"]).length;z<t;z++)e+=(l=s[z])+":"+this.search_field.css(l)+";";return(c=M("<div />",{style:e})).text(this.search_field.val()),M("body").append(c),h=c.width()+25,c.remove(),(C=this.container.outerWidth())-10<h&&(h=C-10),this.search_field.css({width:h+"px"})}},s=e}.call(this),function(p){"use strict";function m(c,C){return p.map(c,function(c){return function(c,C){return c+".touchspin_"+C}(c,C)})}var g=0;p.fn.TouchSpin=function(f){if("destroy"!==f){var d={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},u={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){function l(){var c,C,l;return""===(c=V.val())?void(""!==i.replacementval&&(V.val(i.replacementval),V.trigger("change"))):void(0<i.decimals&&"."===c||(C=parseFloat(c),isNaN(C)&&(C=""!==i.replacementval?i.replacementval:0),(l=C).toString()!==c&&(l=C),C<i.min&&(l=i.min),C>i.max&&(l=i.max),l=function(c){switch(i.forcestepdivisibility){case"round":return(Math.round(c/i.step)*i.step).toFixed(i.decimals);case"floor":return(Math.floor(c/i.step)*i.step).toFixed(i.decimals);case"ceil":return(Math.ceil(c/i.step)*i.step).toFixed(i.decimals);default:return c}}(l),Number(c).toString()!==l.toString()&&(V.val(l),V.trigger("change"))))}function e(){if(i.booster){var c=Math.pow(2,Math.floor(H/i.boostat))*i.step;return i.maxboostedstep&&c>i.maxboostedstep&&(c=i.maxboostedstep,r=Math.round(r/c)*c),Math.max(i.step,c)}return i.step}function s(){l(),r=parseFloat(n.input.val()),isNaN(r)&&(r=0);var c=r,C=e();(r+=C)>i.max&&(r=i.max,V.trigger("touchspin.on.max"),M()),n.input.val(Number(r).toFixed(i.decimals)),c!==r&&V.trigger("change")}function h(){l(),r=parseFloat(n.input.val()),isNaN(r)&&(r=0);var c=r,C=e();(r-=C)<i.min&&(r=i.min,V.trigger("touchspin.on.min"),M()),n.input.val(r.toFixed(i.decimals)),c!==r&&V.trigger("change")}function z(){M(),H=0,S="down",V.trigger("touchspin.on.startspin"),V.trigger("touchspin.on.startdownspin"),o=setTimeout(function(){c=setInterval(function(){H++,h()},i.stepinterval)},i.stepintervaldelay)}function t(){M(),H=0,S="up",V.trigger("touchspin.on.startspin"),V.trigger("touchspin.on.startupspin"),v=setTimeout(function(){C=setInterval(function(){H++,s()},i.stepinterval)},i.stepintervaldelay)}function M(){switch(clearTimeout(o),clearTimeout(v),clearInterval(c),clearInterval(C),S){case"up":V.trigger("touchspin.on.stopupspin"),V.trigger("touchspin.on.stopspin");break;case"down":V.trigger("touchspin.on.stopdownspin"),V.trigger("touchspin.on.stopspin")}H=0,S=!1}var i,a,n,r,c,C,o,v,V=p(this),L=V.data(),H=0,S=!1;!function(){if(!V.data("alreadyinitialized")){if(V.data("alreadyinitialized",!0),g+=1,V.data("spinnerid",g),!V.is("input"))return console.log("Must be an input.");""!==(i=p.extend({},d,L,function(){var e={};return p.each(u,function(c,C){var l="bts-"+C;V.is("[data-"+l+"]")&&(e[c]=V.data(l))}),e}(),f)).initval&&""===V.val()&&V.val(i.initval),l(),function(){var c=V.val(),C=V.parent();""!==c&&(c=Number(c).toFixed(i.decimals)),V.data("initvalue",c).val(c),V.addClass("form-control"),C.hasClass("input-group")?function(c){c.addClass("bootstrap-touchspin");var C,l,e=V.prev(),s=V.next(),h='<span class="input-group-addon bootstrap-touchspin-prefix">'+i.prefix+"</span>",z='<span class="input-group-addon bootstrap-touchspin-postfix">'+i.postfix+"</span>";e.hasClass("input-group-btn")?(C='<button class="'+i.buttondown_class+' bootstrap-touchspin-down" type="button">'+i.buttondown_txt+"</button>",e.append(C)):(C='<span class="input-group-btn"><button class="'+i.buttondown_class+' bootstrap-touchspin-down" type="button">'+i.buttondown_txt+"</button></span>",p(C).insertBefore(V)),s.hasClass("input-group-btn")?(l='<button class="'+i.buttonup_class+' bootstrap-touchspin-up" type="button">'+i.buttonup_txt+"</button>",s.prepend(l)):(l='<span class="input-group-btn"><button class="'+i.buttonup_class+' bootstrap-touchspin-up" type="button">'+i.buttonup_txt+"</button></span>",p(l).insertAfter(V)),p(h).insertBefore(V),p(z).insertAfter(V),a=c}(C):function(){var c;c=i.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+i.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+i.postfix+'</span><span class="input-group-btn-vertical"><button class="'+i.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+i.verticalupclass+'"></i></button><button class="'+i.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+i.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+i.buttondown_class+' bootstrap-touchspin-down" type="button">'+i.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+i.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+i.postfix+'</span><span class="input-group-btn"><button class="'+i.buttonup_class+' bootstrap-touchspin-up" type="button">'+i.buttonup_txt+"</button></span></div>",a=p(c).insertBefore(V),p(".bootstrap-touchspin-prefix",a).after(V),V.hasClass("input-sm")?a.addClass("input-group-sm"):V.hasClass("input-lg")&&a.addClass("input-group-lg")}()}(),n={down:p(".bootstrap-touchspin-down",a),up:p(".bootstrap-touchspin-up",a),input:p("input",a),prefix:p(".bootstrap-touchspin-prefix",a).addClass(i.prefix_extraclass),postfix:p(".bootstrap-touchspin-postfix",a).addClass(i.postfix_extraclass)},""===i.prefix&&n.prefix.hide(),""===i.postfix&&n.postfix.hide(),V.on("keydown",function(c){var C=c.keyCode||c.which;38===C?("up"!==S&&(s(),t()),c.preventDefault()):40===C&&("down"!==S&&(h(),z()),c.preventDefault())}),V.on("keyup",function(c){var C=c.keyCode||c.which;38===C?M():40===C&&M()}),V.on("blur",function(){l()}),n.down.on("keydown",function(c){var C=c.keyCode||c.which;32!==C&&13!==C||("down"!==S&&(h(),z()),c.preventDefault())}),n.down.on("keyup",function(c){var C=c.keyCode||c.which;32!==C&&13!==C||M()}),n.up.on("keydown",function(c){var C=c.keyCode||c.which;32!==C&&13!==C||("up"!==S&&(s(),t()),c.preventDefault())}),n.up.on("keyup",function(c){var C=c.keyCode||c.which;32!==C&&13!==C||M()}),n.down.on("mousedown.touchspin",function(c){n.down.off("touchstart.touchspin"),V.is(":disabled")||(h(),z(),c.preventDefault(),c.stopPropagation())}),n.down.on("touchstart.touchspin",function(c){n.down.off("mousedown.touchspin"),V.is(":disabled")||(h(),z(),c.preventDefault(),c.stopPropagation())}),n.up.on("mousedown.touchspin",function(c){n.up.off("touchstart.touchspin"),V.is(":disabled")||(s(),t(),c.preventDefault(),c.stopPropagation())}),n.up.on("touchstart.touchspin",function(c){n.up.off("mousedown.touchspin"),V.is(":disabled")||(s(),t(),c.preventDefault(),c.stopPropagation())}),n.up.on("mouseout touchleave touchend touchcancel",function(c){S&&(c.stopPropagation(),M())}),n.down.on("mouseout touchleave touchend touchcancel",function(c){S&&(c.stopPropagation(),M())}),n.down.on("mousemove touchmove",function(c){S&&(c.stopPropagation(),c.preventDefault())}),n.up.on("mousemove touchmove",function(c){S&&(c.stopPropagation(),c.preventDefault())}),p(document).on(m(["mouseup","touchend","touchcancel"],g).join(" "),function(c){S&&(c.preventDefault(),M())}),p(document).on(m(["mousemove","touchmove","scroll","scrollstart"],g).join(" "),function(c){S&&(c.preventDefault(),M())}),V.on("mousewheel DOMMouseScroll",function(c){if(i.mousewheel&&V.is(":focus")){var C=c.originalEvent.wheelDelta||-c.originalEvent.deltaY||-c.originalEvent.detail;c.stopPropagation(),c.preventDefault(),C<0?h():s()}}),V.on("touchspin.uponce",function(){M(),s()}),V.on("touchspin.downonce",function(){M(),h()}),V.on("touchspin.startupspin",function(){t()}),V.on("touchspin.startdownspin",function(){z()}),V.on("touchspin.stopspin",function(){M()}),V.on("touchspin.updatesettings",function(c,C){!function(c){(function(c){i=p.extend({},i,c),c.postfix&&V.parent().find(".bootstrap-touchspin-postfix").text(c.postfix),c.prefix&&V.parent().find(".bootstrap-touchspin-prefix").text(c.prefix)})(c),l();var C=n.input.val();""!==C&&(C=Number(n.input.val()),n.input.val(C.toFixed(i.decimals)))}(C)}),n.input.css("display","block")}}()})}this.each(function(){var c=p(this).data();p(document).off(m(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],c.spinnerid).join(" "))})}}(jQuery),function(c){"use strict";"function"==typeof define&&define.amd?define(["jquery"],c):"undefined"!=typeof exports?module.exports=c(require("jquery")):c(jQuery)}(function(i){"use strict";var s,h=window.Slick||{};s=0,(h=function(c,C){var l,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(c),appendDots:i(c),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(c,C){return i('<button type="button" data-role="none" role="button" tabindex="0" />').text(C+1)},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,pauseOnFocus:!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:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.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,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=i(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,l=i(c).data("slick")||{},e.options=i.extend({},e.defaults,C,l),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,void 0!==document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=i.proxy(e.autoPlay,e),e.autoPlayClear=i.proxy(e.autoPlayClear,e),e.autoPlayIterator=i.proxy(e.autoPlayIterator,e),e.changeSlide=i.proxy(e.changeSlide,e),e.clickHandler=i.proxy(e.clickHandler,e),e.selectHandler=i.proxy(e.selectHandler,e),e.setPosition=i.proxy(e.setPosition,e),e.swipeHandler=i.proxy(e.swipeHandler,e),e.dragHandler=i.proxy(e.dragHandler,e),e.keyHandler=i.proxy(e.keyHandler,e),e.instanceUid=s++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},h.prototype.addSlide=h.prototype.slickAdd=function(c,C,l){var e=this;if("boolean"==typeof C)l=C,C=null;else if(C<0||C>=e.slideCount)return!1;e.unload(),"number"==typeof C?0===C&&0===e.$slides.length?i(c).appendTo(e.$slideTrack):l?i(c).insertBefore(e.$slides.eq(C)):i(c).insertAfter(e.$slides.eq(C)):!0===l?i(c).prependTo(e.$slideTrack):i(c).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(c,C){i(C).attr("data-slick-index",c)}),e.$slidesCache=e.$slides,e.reinit()},h.prototype.animateHeight=function(){if(1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical){var c=this.$slides.eq(this.currentSlide).outerHeight(!0);this.$list.animate({height:c},this.options.speed)}},h.prototype.animateSlide=function(c,C){var l={},e=this;e.animateHeight(),!0===e.options.rtl&&!1===e.options.vertical&&(c=-c),!1===e.transformsEnabled?!1===e.options.vertical?e.$slideTrack.animate({left:c},e.options.speed,e.options.easing,C):e.$slideTrack.animate({top:c},e.options.speed,e.options.easing,C):!1===e.cssTransitions?(!0===e.options.rtl&&(e.currentLeft=-e.currentLeft),i({animStart:e.currentLeft}).animate({animStart:c},{duration:e.options.speed,easing:e.options.easing,step:function(c){c=Math.ceil(c),!1===e.options.vertical?l[e.animType]="translate("+c+"px, 0px)":l[e.animType]="translate(0px,"+c+"px)",e.$slideTrack.css(l)},complete:function(){C&&C.call()}})):(e.applyTransition(),c=Math.ceil(c),!1===e.options.vertical?l[e.animType]="translate3d("+c+"px, 0px, 0px)":l[e.animType]="translate3d(0px,"+c+"px, 0px)",e.$slideTrack.css(l),C&&setTimeout(function(){e.disableTransition(),C.call()},e.options.speed))},h.prototype.getNavTarget=function(){var c=this.options.asNavFor;return c&&null!==c&&(c=i(c).not(this.$slider)),c},h.prototype.asNavFor=function(C){var c=this.getNavTarget();null!==c&&"object"==typeof c&&c.each(function(){var c=i(this).slick("getSlick");c.unslicked||c.slideHandler(C,!0)})},h.prototype.applyTransition=function(c){var C=this,l={};!1===C.options.fade?l[C.transitionType]=C.transformType+" "+C.options.speed+"ms "+C.options.cssEase:l[C.transitionType]="opacity "+C.options.speed+"ms "+C.options.cssEase,!1===C.options.fade?C.$slideTrack.css(l):C.$slides.eq(c).css(l)},h.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},h.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},h.prototype.autoPlayIterator=function(){var c=this,C=c.currentSlide+c.options.slidesToScroll;c.paused||c.interrupted||c.focussed||(!1===c.options.infinite&&(1===c.direction&&c.currentSlide+1===c.slideCount-1?c.direction=0:0===c.direction&&(C=c.currentSlide-c.options.slidesToScroll,c.currentSlide-1==0&&(c.direction=1))),c.slideHandler(C))},h.prototype.buildArrows=function(){var c=this;!0===c.options.arrows&&(c.$prevArrow=i(c.options.prevArrow).addClass("slick-arrow"),c.$nextArrow=i(c.options.nextArrow).addClass("slick-arrow"),c.slideCount>c.options.slidesToShow?(c.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),c.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.prependTo(c.options.appendArrows),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.appendTo(c.options.appendArrows),!0!==c.options.infinite&&c.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):c.$prevArrow.add(c.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},h.prototype.buildDots=function(){var c,C,l=this;if(!0===l.options.dots&&l.slideCount>l.options.slidesToShow){for(l.$slider.addClass("slick-dotted"),C=i("<ul />").addClass(l.options.dotsClass),c=0;c<=l.getDotCount();c+=1)C.append(i("<li />").append(l.options.customPaging.call(this,l,c)));l.$dots=C.appendTo(l.options.appendDots),l.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},h.prototype.buildOut=function(){var c=this;c.$slides=c.$slider.children(c.options.slide+":not(.slick-cloned)").addClass("slick-slide"),c.slideCount=c.$slides.length,c.$slides.each(function(c,C){i(C).attr("data-slick-index",c).data("originalStyling",i(C).attr("style")||"")}),c.$slider.addClass("slick-slider"),c.$slideTrack=0===c.slideCount?i('<div class="slick-track"/>').appendTo(c.$slider):c.$slides.wrapAll('<div class="slick-track"/>').parent(),c.$list=c.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),c.$slideTrack.css("opacity",0),!0!==c.options.centerMode&&!0!==c.options.swipeToSlide||(c.options.slidesToScroll=1),i("img[data-lazy]",c.$slider).not("[src]").addClass("slick-loading"),c.setupInfinite(),c.buildArrows(),c.buildDots(),c.updateDots(),c.setSlideClasses("number"==typeof c.currentSlide?c.currentSlide:0),!0===c.options.draggable&&c.$list.addClass("draggable")},h.prototype.buildRows=function(){var c,C,l,e,s,h,z,t=this;if(e=document.createDocumentFragment(),h=t.$slider.children(),1<t.options.rows){for(z=t.options.slidesPerRow*t.options.rows,s=Math.ceil(h.length/z),c=0;c<s;c++){var M=document.createElement("div");for(C=0;C<t.options.rows;C++){var i=document.createElement("div");for(l=0;l<t.options.slidesPerRow;l++){var a=c*z+(C*t.options.slidesPerRow+l);h.get(a)&&i.appendChild(h.get(a))}M.appendChild(i)}e.appendChild(M)}t.$slider.empty().append(e),t.$slider.children().children().children().css({width:100/t.options.slidesPerRow+"%",display:"inline-block"})}},h.prototype.checkResponsive=function(c,C){var l,e,s,h=this,z=!1,t=h.$slider.width(),M=window.innerWidth||i(window).width();if("window"===h.respondTo?s=M:"slider"===h.respondTo?s=t:"min"===h.respondTo&&(s=Math.min(M,t)),h.options.responsive&&h.options.responsive.length&&null!==h.options.responsive){for(l in e=null,h.breakpoints)h.breakpoints.hasOwnProperty(l)&&(!1===h.originalSettings.mobileFirst?s<h.breakpoints[l]&&(e=h.breakpoints[l]):s>h.breakpoints[l]&&(e=h.breakpoints[l]));null!==e?null!==h.activeBreakpoint?e===h.activeBreakpoint&&!C||(h.activeBreakpoint=e,"unslick"===h.breakpointSettings[e]?h.unslick(e):(h.options=i.extend({},h.originalSettings,h.breakpointSettings[e]),!0===c&&(h.currentSlide=h.options.initialSlide),h.refresh(c)),z=e):(h.activeBreakpoint=e,"unslick"===h.breakpointSettings[e]?h.unslick(e):(h.options=i.extend({},h.originalSettings,h.breakpointSettings[e]),!0===c&&(h.currentSlide=h.options.initialSlide),h.refresh(c)),z=e):null!==h.activeBreakpoint&&(h.activeBreakpoint=null,h.options=h.originalSettings,!0===c&&(h.currentSlide=h.options.initialSlide),h.refresh(c),z=e),c||!1===z||h.$slider.trigger("breakpoint",[h,z])}},h.prototype.changeSlide=function(c,C){var l,e,s=this,h=i(c.currentTarget);switch(h.is("a")&&c.preventDefault(),h.is("li")||(h=h.closest("li")),l=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,c.data.message){case"previous":e=0==l?s.options.slidesToScroll:s.options.slidesToShow-l,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-e,!1,C);break;case"next":e=0==l?s.options.slidesToScroll:l,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+e,!1,C);break;case"index":var z=0===c.data.index?0:c.data.index||h.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(z),!1,C),h.children().trigger("focus");break;default:return}},h.prototype.checkNavigable=function(c){var C,l;if(l=0,c>(C=this.getNavigableIndexes())[C.length-1])c=C[C.length-1];else for(var e in C){if(c<C[e]){c=l;break}l=C[e]}return c},h.prototype.cleanUpEvents=function(){var c=this;c.options.dots&&null!==c.$dots&&i("li",c.$dots).off("click.slick",c.changeSlide).off("mouseenter.slick",i.proxy(c.interrupt,c,!0)).off("mouseleave.slick",i.proxy(c.interrupt,c,!1)),c.$slider.off("focus.slick blur.slick"),!0===c.options.arrows&&c.slideCount>c.options.slidesToShow&&(c.$prevArrow&&c.$prevArrow.off("click.slick",c.changeSlide),c.$nextArrow&&c.$nextArrow.off("click.slick",c.changeSlide)),c.$list.off("touchstart.slick mousedown.slick",c.swipeHandler),c.$list.off("touchmove.slick mousemove.slick",c.swipeHandler),c.$list.off("touchend.slick mouseup.slick",c.swipeHandler),c.$list.off("touchcancel.slick mouseleave.slick",c.swipeHandler),c.$list.off("click.slick",c.clickHandler),i(document).off(c.visibilityChange,c.visibility),c.cleanUpSlideEvents(),!0===c.options.accessibility&&c.$list.off("keydown.slick",c.keyHandler),!0===c.options.focusOnSelect&&i(c.$slideTrack).children().off("click.slick",c.selectHandler),i(window).off("orientationchange.slick.slick-"+c.instanceUid,c.orientationChange),i(window).off("resize.slick.slick-"+c.instanceUid,c.resize),i("[draggable!=true]",c.$slideTrack).off("dragstart",c.preventDefault),i(window).off("load.slick.slick-"+c.instanceUid,c.setPosition),i(document).off("ready.slick.slick-"+c.instanceUid,c.setPosition)},h.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",i.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",i.proxy(this.interrupt,this,!1))},h.prototype.cleanUpRows=function(){var c;1<this.options.rows&&((c=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(c))},h.prototype.clickHandler=function(c){!1===this.shouldClick&&(c.stopImmediatePropagation(),c.stopPropagation(),c.preventDefault())},h.prototype.destroy=function(c){var C=this;C.autoPlayClear(),C.touchObject={},C.cleanUpEvents(),i(".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(){i(this).attr("style",i(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.$slider.removeClass("slick-dotted"),C.unslicked=!0,c||C.$slider.trigger("destroy",[C])},h.prototype.disableTransition=function(c){var C={};C[this.transitionType]="",!1===this.options.fade?this.$slideTrack.css(C):this.$slides.eq(c).css(C)},h.prototype.fadeSlide=function(c,C){var l=this;!1===l.cssTransitions?(l.$slides.eq(c).css({zIndex:l.options.zIndex}),l.$slides.eq(c).animate({opacity:1},l.options.speed,l.options.easing,C)):(l.applyTransition(c),l.$slides.eq(c).css({opacity:1,zIndex:l.options.zIndex}),C&&setTimeout(function(){l.disableTransition(c),C.call()},l.options.speed))},h.prototype.fadeSlideOut=function(c){!1===this.cssTransitions?this.$slides.eq(c).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(c),this.$slides.eq(c).css({opacity:0,zIndex:this.options.zIndex-2}))},h.prototype.filterSlides=h.prototype.slickFilter=function(c){null!==c&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(c).appendTo(this.$slideTrack),this.reinit())},h.prototype.focusHandler=function(){var l=this;l.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var C=i(this);setTimeout(function(){l.options.pauseOnFocus&&(l.focussed=C.is(":focus"),l.autoPlay())},0)})},h.prototype.getCurrent=h.prototype.slickCurrentSlide=function(){return this.currentSlide},h.prototype.getDotCount=function(){var c=this,C=0,l=0,e=0;if(!0===c.options.infinite)for(;C<c.slideCount;)++e,C=l+c.options.slidesToScroll,l+=c.options.slidesToScroll<=c.options.slidesToShow?c.options.slidesToScroll:c.options.slidesToShow;else if(!0===c.options.centerMode)e=c.slideCount;else if(c.options.asNavFor)for(;C<c.slideCount;)++e,C=l+c.options.slidesToScroll,l+=c.options.slidesToScroll<=c.options.slidesToShow?c.options.slidesToScroll:c.options.slidesToShow;else e=1+Math.ceil((c.slideCount-c.options.slidesToShow)/c.options.slidesToScroll);return e-1},h.prototype.getLeft=function(c){var C,l,e,s=this,h=0;return s.slideOffset=0,l=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,h=l*s.options.slidesToShow*-1),s.slideCount%s.options.slidesToScroll!=0&&c+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(h=c>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(c-s.slideCount))*s.slideWidth*-1,(s.options.slidesToShow-(c-s.slideCount))*l*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,s.slideCount%s.options.slidesToScroll*l*-1))):c+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(c+s.options.slidesToShow-s.slideCount)*s.slideWidth,h=(c+s.options.slidesToShow-s.slideCount)*l),s.slideCount<=s.options.slidesToShow&&(h=s.slideOffset=0),!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),C=!1===s.options.vertical?c*s.slideWidth*-1+s.slideOffset:c*l*-1+h,!0===s.options.variableWidth&&(e=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(c):s.$slideTrack.children(".slick-slide").eq(c+s.options.slidesToShow),C=!0===s.options.rtl?e[0]?-1*(s.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,!0===s.options.centerMode&&(e=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(c):s.$slideTrack.children(".slick-slide").eq(c+s.options.slidesToShow+1),C=!0===s.options.rtl?e[0]?-1*(s.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,C+=(s.$list.width()-e.outerWidth())/2)),C},h.prototype.getOption=h.prototype.slickGetOption=function(c){return this.options[c]},h.prototype.getNavigableIndexes=function(){var c,C=this,l=0,e=0,s=[];for(c=!1===C.options.infinite?C.slideCount:(l=-1*C.options.slidesToScroll,e=-1*C.options.slidesToScroll,2*C.slideCount);l<c;)s.push(l),l=e+C.options.slidesToScroll,e+=C.options.slidesToScroll<=C.options.slidesToShow?C.options.slidesToScroll:C.options.slidesToShow;return s},h.prototype.getSlick=function(){return this},h.prototype.getSlideCount=function(){var l,e,s=this;return e=!0===s.options.centerMode?s.slideWidth*Math.floor(s.options.slidesToShow/2):0,!0===s.options.swipeToSlide?(s.$slideTrack.find(".slick-slide").each(function(c,C){return C.offsetLeft-e+i(C).outerWidth()/2>-1*s.swipeLeft?(l=C,!1):void 0}),Math.abs(i(l).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},h.prototype.goTo=h.prototype.slickGoTo=function(c,C){this.changeSlide({data:{message:"index",index:parseInt(c)}},C)},h.prototype.init=function(c){var C=this;i(C.$slider).hasClass("slick-initialized")||(i(C.$slider).addClass("slick-initialized"),C.buildRows(),C.buildOut(),C.setProps(),C.startLoad(),C.loadSlider(),C.initializeEvents(),C.updateArrows(),C.updateDots(),C.checkResponsive(!0),C.focusHandler()),c&&C.$slider.trigger("init",[C]),!0===C.options.accessibility&&C.initADA(),C.options.autoplay&&(C.paused=!1,C.autoPlay())},h.prototype.initADA=function(){var C=this;C.$slides.add(C.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),C.$slideTrack.attr("role","listbox"),C.$slides.not(C.$slideTrack.find(".slick-cloned")).each(function(c){i(this).attr({role:"option","aria-describedby":"slick-slide"+C.instanceUid+c})}),null!==C.$dots&&C.$dots.attr("role","tablist").find("li").each(function(c){i(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+C.instanceUid+c,id:"slick-slide"+C.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),C.activateADA()},h.prototype.initArrowEvents=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},this.changeSlide),this.$nextArrow.off("click.slick").on("click.slick",{message:"next"},this.changeSlide))},h.prototype.initDotEvents=function(){var c=this;!0===c.options.dots&&c.slideCount>c.options.slidesToShow&&i("li",c.$dots).on("click.slick",{message:"index"},c.changeSlide),!0===c.options.dots&&!0===c.options.pauseOnDotsHover&&i("li",c.$dots).on("mouseenter.slick",i.proxy(c.interrupt,c,!0)).on("mouseleave.slick",i.proxy(c.interrupt,c,!1))},h.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",i.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",i.proxy(this.interrupt,this,!1)))},h.prototype.initializeEvents=function(){var c=this;c.initArrowEvents(),c.initDotEvents(),c.initSlideEvents(),c.$list.on("touchstart.slick mousedown.slick",{action:"start"},c.swipeHandler),c.$list.on("touchmove.slick mousemove.slick",{action:"move"},c.swipeHandler),c.$list.on("touchend.slick mouseup.slick",{action:"end"},c.swipeHandler),c.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},c.swipeHandler),c.$list.on("click.slick",c.clickHandler),i(document).on(c.visibilityChange,i.proxy(c.visibility,c)),!0===c.options.accessibility&&c.$list.on("keydown.slick",c.keyHandler),!0===c.options.focusOnSelect&&i(c.$slideTrack).children().on("click.slick",c.selectHandler),i(window).on("orientationchange.slick.slick-"+c.instanceUid,i.proxy(c.orientationChange,c)),i(window).on("resize.slick.slick-"+c.instanceUid,i.proxy(c.resize,c)),i("[draggable!=true]",c.$slideTrack).on("dragstart",c.preventDefault),i(window).on("load.slick.slick-"+c.instanceUid,c.setPosition),i(document).on("ready.slick.slick-"+c.instanceUid,c.setPosition)},h.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},h.prototype.keyHandler=function(c){c.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===c.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===c.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},h.prototype.lazyLoad=function(){function c(c){i("img[data-lazy]",c).each(function(){var c=i(this),C=i(this).attr("data-lazy"),l=document.createElement("img");l.onload=function(){c.animate({opacity:0},100,function(){c.attr("src",C).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),e.$slider.trigger("lazyLoaded",[e,c,C])})},l.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),e.$slider.trigger("lazyLoadError",[e,c,C])},l.src=C})}var C,l,e=this;!0===e.options.centerMode?l=!0===e.options.infinite?(C=e.currentSlide+(e.options.slidesToShow/2+1))+e.options.slidesToShow+2:(C=Math.max(0,e.currentSlide-(e.options.slidesToShow/2+1)),e.options.slidesToShow/2+1+2+e.currentSlide):(C=e.options.infinite?e.options.slidesToShow+e.currentSlide:e.currentSlide,l=Math.ceil(C+e.options.slidesToShow),!0===e.options.fade&&(0<C&&C--,l<=e.slideCount&&l++)),c(e.$slider.find(".slick-slide").slice(C,l)),e.slideCount<=e.options.slidesToShow?c(e.$slider.find(".slick-slide")):e.currentSlide>=e.slideCount-e.options.slidesToShow?c(e.$slider.find(".slick-cloned").slice(0,e.options.slidesToShow)):0===e.currentSlide&&c(e.$slider.find(".slick-cloned").slice(-1*e.options.slidesToShow))},h.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},h.prototype.next=h.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},h.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},h.prototype.pause=h.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},h.prototype.play=h.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},h.prototype.postSlide=function(c){var C=this;C.unslicked||(C.$slider.trigger("afterChange",[C,c]),C.animating=!1,C.setPosition(),C.swipeLeft=null,C.options.autoplay&&C.autoPlay(),!0===C.options.accessibility&&C.initADA())},h.prototype.prev=h.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},h.prototype.preventDefault=function(c){c.preventDefault()},h.prototype.progressiveLazyLoad=function(c){c=c||1;var C,l,e,s=this,h=i("img[data-lazy]",s.$slider);h.length?(C=h.first(),l=C.attr("data-lazy"),(e=document.createElement("img")).onload=function(){C.attr("src",l).removeAttr("data-lazy").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,C,l]),s.progressiveLazyLoad()},e.onerror=function(){c<3?setTimeout(function(){s.progressiveLazyLoad(c+1)},500):(C.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,C,l]),s.progressiveLazyLoad())},e.src=l):s.$slider.trigger("allImagesLoaded",[s])},h.prototype.refresh=function(c){var C,l,e=this;l=e.slideCount-e.options.slidesToShow,!e.options.infinite&&e.currentSlide>l&&(e.currentSlide=l),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),C=e.currentSlide,e.destroy(!0),i.extend(e,e.initials,{currentSlide:C}),e.init(),c||e.changeSlide({data:{message:"index",index:C}},!1)},h.prototype.registerBreakpoints=function(){var c,C,l,e=this,s=e.options.responsive||null;if("array"===i.type(s)&&s.length){for(c in e.respondTo=e.options.respondTo||"window",s)if(l=e.breakpoints.length-1,C=s[c].breakpoint,s.hasOwnProperty(c)){for(;0<=l;)e.breakpoints[l]&&e.breakpoints[l]===C&&e.breakpoints.splice(l,1),l--;e.breakpoints.push(C),e.breakpointSettings[C]=s[c].settings}e.breakpoints.sort(function(c,C){return e.options.mobileFirst?c-C:C-c})}},h.prototype.reinit=function(){var c=this;c.$slides=c.$slideTrack.children(c.options.slide).addClass("slick-slide"),c.slideCount=c.$slides.length,c.currentSlide>=c.slideCount&&0!==c.currentSlide&&(c.currentSlide=c.currentSlide-c.options.slidesToScroll),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),c.registerBreakpoints(),c.setProps(),c.setupInfinite(),c.buildArrows(),c.updateArrows(),c.initArrowEvents(),c.buildDots(),c.updateDots(),c.initDotEvents(),c.cleanUpSlideEvents(),c.initSlideEvents(),c.checkResponsive(!1,!0),!0===c.options.focusOnSelect&&i(c.$slideTrack).children().on("click.slick",c.selectHandler),c.setSlideClasses("number"==typeof c.currentSlide?c.currentSlide:0),c.setPosition(),c.focusHandler(),c.paused=!c.options.autoplay,c.autoPlay(),c.$slider.trigger("reInit",[c])},h.prototype.resize=function(){var c=this;i(window).width()!==c.windowWidth&&(clearTimeout(c.windowDelay),c.windowDelay=window.setTimeout(function(){c.windowWidth=i(window).width(),c.checkResponsive(),c.unslicked||c.setPosition()},50))},h.prototype.removeSlide=h.prototype.slickRemove=function(c,C,l){var e=this;return c="boolean"==typeof c?!0===(C=c)?0:e.slideCount-1:!0===C?--c:c,!(e.slideCount<1||c<0||c>e.slideCount-1)&&(e.unload(),!0===l?e.$slideTrack.children().remove():e.$slideTrack.children(this.options.slide).eq(c).remove(),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slidesCache=e.$slides,void e.reinit())},h.prototype.setCSS=function(c){var C,l,e=this,s={};!0===e.options.rtl&&(c=-c),C="left"==e.positionProp?Math.ceil(c)+"px":"0px",l="top"==e.positionProp?Math.ceil(c)+"px":"0px",s[e.positionProp]=c,!1===e.transformsEnabled||(!(s={})===e.cssTransitions?s[e.animType]="translate("+C+", "+l+")":s[e.animType]="translate3d("+C+", "+l+", 0px)"),e.$slideTrack.css(s)},h.prototype.setDimensions=function(){var c=this;!1===c.options.vertical?!0===c.options.centerMode&&c.$list.css({padding:"0px "+c.options.centerPadding}):(c.$list.height(c.$slides.first().outerHeight(!0)*c.options.slidesToShow),!0===c.options.centerMode&&c.$list.css({padding:c.options.centerPadding+" 0px"})),c.listWidth=c.$list.width(),c.listHeight=c.$list.height(),!1===c.options.vertical&&!1===c.options.variableWidth?(c.slideWidth=Math.ceil(c.listWidth/c.options.slidesToShow),c.$slideTrack.width(Math.ceil(c.slideWidth*c.$slideTrack.children(".slick-slide").length))):!0===c.options.variableWidth?c.$slideTrack.width(5e3*c.slideCount):(c.slideWidth=Math.ceil(c.listWidth),c.$slideTrack.height(Math.ceil(c.$slides.first().outerHeight(!0)*c.$slideTrack.children(".slick-slide").length)));var C=c.$slides.first().outerWidth(!0)-c.$slides.first().width();!1===c.options.variableWidth&&c.$slideTrack.children(".slick-slide").width(c.slideWidth-C)},h.prototype.setFade=function(){var l,e=this;e.$slides.each(function(c,C){l=e.slideWidth*c*-1,!0===e.options.rtl?i(C).css({position:"relative",right:l,top:0,zIndex:e.options.zIndex-2,opacity:0}):i(C).css({position:"relative",left:l,top:0,zIndex:e.options.zIndex-2,opacity:0})}),e.$slides.eq(e.currentSlide).css({zIndex:e.options.zIndex-1,opacity:1})},h.prototype.setHeight=function(){if(1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical){var c=this.$slides.eq(this.currentSlide).outerHeight(!0);this.$list.css("height",c)}},h.prototype.setOption=h.prototype.slickSetOption=function(){var c,C,l,e,s,h=this,z=!1;if("object"===i.type(arguments[0])?(l=arguments[0],z=arguments[1],s="multiple"):"string"===i.type(arguments[0])&&(e=arguments[1],z=arguments[2],"responsive"===(l=arguments[0])&&"array"===i.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)h.options[l]=e;else if("multiple"===s)i.each(l,function(c,C){h.options[c]=C});else if("responsive"===s)for(C in e)if("array"!==i.type(h.options.responsive))h.options.responsive=[e[C]];else{for(c=h.options.responsive.length-1;0<=c;)h.options.responsive[c].breakpoint===e[C].breakpoint&&h.options.responsive.splice(c,1),c--;h.options.responsive.push(e[C])}z&&(h.unload(),h.reinit())},h.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},h.prototype.setProps=function(){var c=this,C=document.body.style;c.positionProp=!0===c.options.vertical?"top":"left","top"===c.positionProp?c.$slider.addClass("slick-vertical"):c.$slider.removeClass("slick-vertical"),void 0===C.WebkitTransition&&void 0===C.MozTransition&&void 0===C.msTransition||!0!==c.options.useCSS||(c.cssTransitions=!0),c.options.fade&&("number"==typeof c.options.zIndex?c.options.zIndex<3&&(c.options.zIndex=3):c.options.zIndex=c.defaults.zIndex),void 0!==C.OTransform&&(c.animType="OTransform",c.transformType="-o-transform",c.transitionType="OTransition",void 0===C.perspectiveProperty&&void 0===C.webkitPerspective&&(c.animType=!1)),void 0!==C.MozTransform&&(c.animType="MozTransform",c.transformType="-moz-transform",c.transitionType="MozTransition",void 0===C.perspectiveProperty&&void 0===C.MozPerspective&&(c.animType=!1)),void 0!==C.webkitTransform&&(c.animType="webkitTransform",c.transformType="-webkit-transform",c.transitionType="webkitTransition",void 0===C.perspectiveProperty&&void 0===C.webkitPerspective&&(c.animType=!1)),void 0!==C.msTransform&&(c.animType="msTransform",c.transformType="-ms-transform",c.transitionType="msTransition",void 0===C.msTransform&&(c.animType=!1)),void 0!==C.transform&&!1!==c.animType&&(c.animType="transform",c.transformType="transform",c.transitionType="transition"),c.transformsEnabled=c.options.useTransform&&null!==c.animType&&!1!==c.animType},h.prototype.setSlideClasses=function(c){var C,l,e,s,h=this;l=h.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),h.$slides.eq(c).addClass("slick-current"),!0===h.options.centerMode?(C=Math.floor(h.options.slidesToShow/2),!0===h.options.infinite&&(C<=c&&c<=h.slideCount-1-C?h.$slides.slice(c-C,c+C+1).addClass("slick-active").attr("aria-hidden","false"):(e=h.options.slidesToShow+c,l.slice(e-C+1,e+C+2).addClass("slick-active").attr("aria-hidden","false")),0===c?l.eq(l.length-1-h.options.slidesToShow).addClass("slick-center"):c===h.slideCount-1&&l.eq(h.options.slidesToShow).addClass("slick-center")),h.$slides.eq(c).addClass("slick-center")):0<=c&&c<=h.slideCount-h.options.slidesToShow?h.$slides.slice(c,c+h.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):l.length<=h.options.slidesToShow?l.addClass("slick-active").attr("aria-hidden","false"):(s=h.slideCount%h.options.slidesToShow,e=!0===h.options.infinite?h.options.slidesToShow+c:c,h.options.slidesToShow==h.options.slidesToScroll&&h.slideCount-c<h.options.slidesToShow?l.slice(e-(h.options.slidesToShow-s),e+s).addClass("slick-active").attr("aria-hidden","false"):l.slice(e,e+h.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===h.options.lazyLoad&&h.lazyLoad()},h.prototype.setupInfinite=function(){var c,C,l,e=this;if(!0===e.options.fade&&(e.options.centerMode=!1),!0===e.options.infinite&&!1===e.options.fade&&(C=null,e.slideCount>e.options.slidesToShow)){for(l=!0===e.options.centerMode?e.options.slidesToShow+1:e.options.slidesToShow,c=e.slideCount;c>e.slideCount-l;c-=1)C=c-1,i(e.$slides[C]).clone(!0).attr("id","").attr("data-slick-index",C-e.slideCount).prependTo(e.$slideTrack).addClass("slick-cloned");for(c=0;c<l;c+=1)C=c,i(e.$slides[C]).clone(!0).attr("id","").attr("data-slick-index",C+e.slideCount).appendTo(e.$slideTrack).addClass("slick-cloned");e.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},h.prototype.interrupt=function(c){c||this.autoPlay(),this.interrupted=c},h.prototype.selectHandler=function(c){var C=i(c.target).is(".slick-slide")?i(c.target):i(c.target).parents(".slick-slide"),l=parseInt(C.attr("data-slick-index"));return l=l||0,this.slideCount<=this.options.slidesToShow?(this.setSlideClasses(l),void this.asNavFor(l)):void this.slideHandler(l)},h.prototype.slideHandler=function(c,C,l){var e,s,h,z,t,M=null,i=this;return C=C||!1,!0===i.animating&&!0===i.options.waitForAnimate||!0===i.options.fade&&i.currentSlide===c||i.slideCount<=i.options.slidesToShow?void 0:(!1===C&&i.asNavFor(c),e=c,M=i.getLeft(e),z=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?z:i.swipeLeft,!1===i.options.infinite&&!1===i.options.centerMode&&(c<0||c>i.getDotCount()*i.options.slidesToScroll)?void(!1===i.options.fade&&(e=i.currentSlide,!0!==l?i.animateSlide(z,function(){i.postSlide(e)}):i.postSlide(e))):!1===i.options.infinite&&!0===i.options.centerMode&&(c<0||c>i.slideCount-i.options.slidesToScroll)?void(!1===i.options.fade&&(e=i.currentSlide,!0!==l?i.animateSlide(z,function(){i.postSlide(e)}):i.postSlide(e))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),s=e<0?i.slideCount%i.options.slidesToScroll!=0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+e:e>=i.slideCount?i.slideCount%i.options.slidesToScroll!=0?0:e-i.slideCount:e,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,s]),h=i.currentSlide,i.currentSlide=s,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&((t=(t=i.getNavTarget()).slick("getSlick")).slideCount<=t.options.slidesToShow&&t.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),!0===i.options.fade?(!0!==l?(i.fadeSlideOut(h),i.fadeSlide(s,function(){i.postSlide(s)})):i.postSlide(s),void i.animateHeight()):void(!0!==l?i.animateSlide(M,function(){i.postSlide(s)}):i.postSlide(s))))},h.prototype.startLoad=function(){var c=this;!0===c.options.arrows&&c.slideCount>c.options.slidesToShow&&(c.$prevArrow.hide(),c.$nextArrow.hide()),!0===c.options.dots&&c.slideCount>c.options.slidesToShow&&c.$dots.hide(),c.$slider.addClass("slick-loading")},h.prototype.swipeDirection=function(){var c,C,l,e;return c=this.touchObject.startX-this.touchObject.curX,C=this.touchObject.startY-this.touchObject.curY,l=Math.atan2(C,c),(e=Math.round(180*l/Math.PI))<0&&(e=360-Math.abs(e)),e<=45&&0<=e?!1===this.options.rtl?"left":"right":e<=360&&315<=e?!1===this.options.rtl?"left":"right":135<=e&&e<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},h.prototype.swipeEnd=function(c){var C,l,e=this;if(e.dragging=!1,e.interrupted=!1,e.shouldClick=!(10<e.touchObject.swipeLength),void 0===e.touchObject.curX)return!1;if(!0===e.touchObject.edgeHit&&e.$slider.trigger("edge",[e,e.swipeDirection()]),e.touchObject.swipeLength>=e.touchObject.minSwipe){switch(l=e.swipeDirection()){case"left":case"down":C=e.options.swipeToSlide?e.checkNavigable(e.currentSlide+e.getSlideCount()):e.currentSlide+e.getSlideCount(),e.currentDirection=0;break;case"right":case"up":C=e.options.swipeToSlide?e.checkNavigable(e.currentSlide-e.getSlideCount()):e.currentSlide-e.getSlideCount(),e.currentDirection=1}"vertical"!=l&&(e.slideHandler(C),e.touchObject={},e.$slider.trigger("swipe",[e,l]))}else e.touchObject.startX!==e.touchObject.curX&&(e.slideHandler(e.currentSlide),e.touchObject={})},h.prototype.swipeHandler=function(c){var C=this;if(!(!1===C.options.swipe||"ontouchend"in document&&!1===C.options.swipe||!1===C.options.draggable&&-1!==c.type.indexOf("mouse")))switch(C.touchObject.fingerCount=c.originalEvent&&void 0!==c.originalEvent.touches?c.originalEvent.touches.length:1,C.touchObject.minSwipe=C.listWidth/C.options.touchThreshold,!0===C.options.verticalSwiping&&(C.touchObject.minSwipe=C.listHeight/C.options.touchThreshold),c.data.action){case"start":C.swipeStart(c);break;case"move":C.swipeMove(c);break;case"end":C.swipeEnd(c)}},h.prototype.swipeMove=function(c){var C,l,e,s,h,z=this;return h=void 0!==c.originalEvent?c.originalEvent.touches:null,!(!z.dragging||h&&1!==h.length)&&(C=z.getLeft(z.currentSlide),z.touchObject.curX=void 0!==h?h[0].pageX:c.clientX,z.touchObject.curY=void 0!==h?h[0].pageY:c.clientY,z.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(z.touchObject.curX-z.touchObject.startX,2))),!0===z.options.verticalSwiping&&(z.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(z.touchObject.curY-z.touchObject.startY,2)))),"vertical"!==(l=z.swipeDirection())?(void 0!==c.originalEvent&&4<z.touchObject.swipeLength&&c.preventDefault(),s=(!1===z.options.rtl?1:-1)*(z.touchObject.curX>z.touchObject.startX?1:-1),!0===z.options.verticalSwiping&&(s=z.touchObject.curY>z.touchObject.startY?1:-1),e=z.touchObject.swipeLength,(z.touchObject.edgeHit=!1)===z.options.infinite&&(0===z.currentSlide&&"right"===l||z.currentSlide>=z.getDotCount()&&"left"===l)&&(e=z.touchObject.swipeLength*z.options.edgeFriction,z.touchObject.edgeHit=!0),!1===z.options.vertical?z.swipeLeft=C+e*s:z.swipeLeft=C+e*(z.$list.height()/z.listWidth)*s,!0===z.options.verticalSwiping&&(z.swipeLeft=C+e*s),!0!==z.options.fade&&!1!==z.options.touchMove&&(!0===z.animating?(z.swipeLeft=null,!1):void z.setCSS(z.swipeLeft))):void 0)},h.prototype.swipeStart=function(c){var C,l=this;return l.interrupted=!0,1!==l.touchObject.fingerCount||l.slideCount<=l.options.slidesToShow?!(l.touchObject={}):(void 0!==c.originalEvent&&void 0!==c.originalEvent.touches&&(C=c.originalEvent.touches[0]),l.touchObject.startX=l.touchObject.curX=void 0!==C?C.pageX:c.clientX,l.touchObject.startY=l.touchObject.curY=void 0!==C?C.pageY:c.clientY,void(l.dragging=!0))},h.prototype.unfilterSlides=h.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},h.prototype.unload=function(){var c=this;i(".slick-cloned",c.$slider).remove(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove(),c.$nextArrow&&c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove(),c.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},h.prototype.unslick=function(c){this.$slider.trigger("unslick",[this,c]),this.destroy()},h.prototype.updateArrows=function(){var c=this;Math.floor(c.options.slidesToShow/2),!0===c.options.arrows&&c.slideCount>c.options.slidesToShow&&!c.options.infinite&&(c.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),c.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===c.currentSlide?(c.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),c.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):c.currentSlide>=c.slideCount-c.options.slidesToShow&&!1===c.options.centerMode?(c.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),c.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):c.currentSlide>=c.slideCount-1&&!0===c.options.centerMode&&(c.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),c.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},h.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},h.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},i.fn.slick=function(){var c,C,l=arguments[0],e=Array.prototype.slice.call(arguments,1),s=this.length;for(c=0;c<s;c++)if("object"==typeof l||void 0===l?this[c].slick=new h(this[c],l):C=this[c].slick[l].apply(this[c].slick,e),void 0!==C)return C;return this}}),function(c,C){"function"==typeof define&&define.amd?define(["jquery"],C):"object"==typeof exports?module.exports=C(require("jquery")):c.jquery_mhead_js=C(c.jQuery)}(this,function(c){var M,z,C,i,t,s;return(M=c)[s="mhead"]&&"1.0.1"<M[s].version||(M[s]=function(c,C,l){return this.$head=c,this.opts=C,this.conf=l,this._initButtons(),this._initList(),this._initHamburger(),this._initScroll(),this},M[s].version="1.0.1",M[s].defaults={scroll:{hide:0,show:0,tolerance:4},hamburger:{menu:null,animation:"collapse"}},M[s].configuration={initButtons:!0,initList:!0,initHamburger:!0,initScroll:!0},M[s].prototype={_initButtons:function(){if(!this.conf.initButtons)return this;var c=!1,C={left:0,right:0},l=0,e=0;for(var s in C)c=c||this.$head.hasClass(z.align+"-"+s),(l=this.$head.children("."+z.btns+"-"+s).children().length)&&(e=Math.max(l,e),C[s]=l);if(!c)for(var s in C)C[s]=e;for(var s in C)if(C[s]){var h=z.btns+"-"+s;1<C[s]&&(h+="-"+C[s]),this.$head.addClass(h)}return this},_initList:function(){return this.conf.initList?void this.$head.find("."+z.list).each(function(){M(this).children().appendTo(this)}):this},_initScroll:function(){if(!this.conf.initScroll)return this;if(!this.opts.scroll||!1===this.opts.scroll.hide)return this;this.$head.hasClass(z.sticky)||this.$head.addClass(z.sticky);var e=this,s=0,h=null,c=this.$head.offset().top+this.$head.outerHeight();return this.opts.scroll.hide=Math.max(c,this.opts.scroll.hide||0),this.opts.scroll.show=Math.max(c,this.opts.scroll.show||0),t.$wndw.on(i.scroll,function(){var c=t.$wndw.scrollTop(),C=s-c,l=C<0?"down":"up";C=Math.abs(C),s=c,null===h&&(h=c>e.opts.scroll.show),h?"up"==l&&(c<e.opts.scroll.show||C>e.opts.scroll.tolerance)&&(h=!1,e.$head.removeClass(z.scrolledout)):"down"==l&&c>e.opts.scroll.hide&&C>e.opts.scroll.tolerance&&(h=!0,e.$head.addClass(z.scrolledout))}).trigger(i.scroll),this},_initHamburger:function(){if(!this.conf.initHamburger)return this;var c=this.$head.find("."+z.hamburger);if(c.length){var t=this;return c.each(function(){var c=M(this),C=M('<button class="hamburger"><span class="hamburger-box"><span class="hamburger-inner"></span></span></button>'),l=c.attr("href");c.replaceWith(C),C.addClass("hamburger--"+t.opts.hamburger.animation);for(var e=M(),s=[l,t.opts.hamburger.menu,".mm-menu"],h=0;h<s.length;h++)if(s[h]&&(e=M(s[h])).length&&e.is(".mm-menu")){e=e.first();break}var z=e.data("mmenu");C.on(i.click,function(){z.open()}),z.bind("open:finish",function(){setTimeout(function(){C.addClass("is-active")},100)}),z.bind("close:finish",function(){setTimeout(function(){C.removeClass("is-active")},100)})}),this}}},M.fn[s]=function(l,e){return M[s].glbl||(t={$wndw:M(window),$docu:M(document),$html:M("html"),$body:M("body")},z={},C={},i={},M.each([z,C,i],function(c,e){e.add=function(c){for(var C=0,l=(c=c.split(" ")).length;C<l;C++)e[c[C]]=e.mh(c[C])}}),z.mh=function(c){return"mh-"+c},z.add("head sticky scrolledout align btns list hamburger"),z.umh=function(c){return"mh-"==c.slice(0,3)&&(c=c.slice(3)),c},C.mh=function(c){return"mh-"+c},i.mh=function(c){return c+".mh"},i.add("scroll click"),M[s]._c=z,M[s]._d=C,M[s]._e=i,M[s].glbl=t),l=M.extend(!0,{},M[s].defaults,l),e=M.extend(!0,{},M[s].configuration,e),this.each(function(){var c=M(this);if(!c.data(s)){var C=new M[s](c,l,e);c.data(s,C)}})},M[s].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1}),!0}),function(c,C){"function"==typeof define&&define.amd?define(["jquery"],C):"object"==typeof exports?module.exports=C(require("jquery")):c.jquery_mmenu_all_js=C(c.jQuery)}(this,function(c){var h,z,C,l,t,M,s,i,a,n,r,o,v,V,L,H,S,f,d,u,e,p,m,g,b,w,y,k,_,x,T,q,D,E,I,A,P,O,N,j,$,W,R,F,B,Y,U,X,K,Q,G,Z,J,cc,Cc,lc,ec,sc,hc,zc,tc,Mc,ic,ac,nc,rc,oc,vc,Vc,Lc,Hc,Sc,fc,dc,uc,pc,mc,gc,bc,wc,yc,kc,_c,xc,Tc,qc,Dc,Ec,Ic,Ac,Pc,Oc,Nc,jc,$c,Wc,Rc,Fc,Bc,Yc,Uc,Xc,Kc,Qc,Gc,Zc,Jc,cC,CC,lC,eC,sC,hC,zC;function tC(c,C,l){return c<C&&(c=C),l<c&&(c=l),c}return(cC=c)[zC="mmenu"]&&"6.1.4"<cC[zC].version||(cC[zC]=function(c,C,l){return this.$menu=c,this._api=["bind","getInstance","initPanels","openPanel","closePanel","closeAllPanels","setSelected"],this.opts=C,this.conf=l,this.vars={},this.cbck={},this.mtch={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initAddons(),this._initExtensions(),this._initMenu(),this._initPanels(),this._initOpened(),this._initAnchors(),this._initMatchMedia(),"function"==typeof this.___debug&&this.___debug(),this},cC[zC].version="6.1.4",cC[zC].addons={},cC[zC].uniqueId=0,cC[zC].defaults={extensions:[],initMenu:function(){},initPanels:function(){},navbar:{add:!0,title:"Menu",titleLink:"parent"},onClick:{setSelected:!0},slidingSubmenus:!0},cC[zC].configuration={classNames:{divider:"Divider",inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},cC[zC].prototype={getInstance:function(){return this},initPanels:function(c){this._initPanels(c)},openPanel:function(c,C){if(this.trigger("openPanel:before",c),c&&c.length&&(c.is("."+CC.panel)||(c=c.closest("."+CC.panel)),c.is("."+CC.panel))){var l=this;if("boolean"!=typeof C&&(C=!0),c.hasClass(CC.vertical))c.add(c.parents("."+CC.vertical)).removeClass(CC.hidden).parent("li").addClass(CC.opened),this.openPanel(c.parents("."+CC.panel).not("."+CC.vertical).first()),this.trigger("openPanel:start",c),this.trigger("openPanel:finish",c);else{if(c.hasClass(CC.opened))return;var e=this.$pnls.children("."+CC.panel),s=e.filter("."+CC.opened);if(!cC[zC].support.csstransitions)return s.addClass(CC.hidden).removeClass(CC.opened),c.removeClass(CC.hidden).addClass(CC.opened),this.trigger("openPanel:start",c),void this.trigger("openPanel:finish",c);e.not(c).removeClass(CC.subopened);for(var h=c.data(lC.parent);h;)(h=h.closest("."+CC.panel)).is("."+CC.vertical)||h.addClass(CC.subopened),h=h.data(lC.parent);function z(){s.removeClass(CC.opened),c.addClass(CC.opened),c.hasClass(CC.subopened)?(s.addClass(CC.highest),c.removeClass(CC.subopened)):(s.addClass(CC.subopened),c.addClass(CC.highest)),this.trigger("openPanel:start",c)}function t(){s.removeClass(CC.highest).addClass(CC.hidden),c.removeClass(CC.highest),this.trigger("openPanel:finish",c)}e.removeClass(CC.highest).not(s).not(c).addClass(CC.hidden),c.removeClass(CC.hidden),C&&!c.hasClass(CC.noanimation)?setTimeout(function(){l.__transitionend(c,function(){t.call(l)},l.conf.transitionDuration),z.call(l)},this.conf.openingInterval):(z.call(this),t.call(this))}this.trigger("openPanel:after",c)}},closePanel:function(c){this.trigger("closePanel:before",c);var C=c.parent();C.hasClass(CC.vertical)&&(C.removeClass(CC.opened),this.trigger("closePanel",c)),this.trigger("closePanel:after",c)},closeAllPanels:function(){this.trigger("closeAllPanels:before"),this.$pnls.find("."+CC.listview).children().removeClass(CC.selected).filter("."+CC.vertical).removeClass(CC.opened);var c=this.$pnls.children("."+CC.panel).first();this.$pnls.children("."+CC.panel).not(c).removeClass(CC.subopened).removeClass(CC.opened).removeClass(CC.highest).addClass(CC.hidden),this.openPanel(c),this.trigger("closeAllPanels:after")},togglePanel:function(c){var C=c.parent();C.hasClass(CC.vertical)&&this[C.hasClass(CC.opened)?"closePanel":"openPanel"](c)},setSelected:function(c){this.trigger("setSelected:before",c),this.$menu.find("."+CC.listview).children("."+CC.selected).removeClass(CC.selected),c.addClass(CC.selected),this.trigger("setSelected:after",c)},bind:function(c,C){this.cbck[c]=this.cbck[c]||[],this.cbck[c].push(C)},trigger:function(){var c=Array.prototype.slice.call(arguments),C=c.shift();if(this.cbck[C])for(var l=0,e=this.cbck[C].length;l<e;l++)this.cbck[C][l].apply(this,c)},matchMedia:function(c,C,l){var e={yes:C,no:l};this.mtch[c]=this.mtch[c]||[],this.mtch[c].push(e)},_initAddons:function(){var c;for(c in this.trigger("initAddons:before"),cC[zC].addons)cC[zC].addons[c].add.call(this),cC[zC].addons[c].add=function(){};for(c in cC[zC].addons)cC[zC].addons[c].setup.call(this);this.trigger("initAddons:after")},_initExtensions:function(){this.trigger("initExtensions:before");var C=this;for(var c in this.opts.extensions.constructor===Array&&(this.opts.extensions={all:this.opts.extensions}),this.opts.extensions)this.opts.extensions[c]=this.opts.extensions[c].length?"mm-"+this.opts.extensions[c].join(" mm-"):"",this.opts.extensions[c]&&function(c){C.matchMedia(c,function(){this.$menu.addClass(this.opts.extensions[c])},function(){this.$menu.removeClass(this.opts.extensions[c])})}(c);this.trigger("initExtensions:after")},_initMenu:function(){this.trigger("initMenu:before"),this.conf.clone&&(this.$orig=this.$menu,this.$menu=this.$orig.clone(),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){cC(this).attr("id",CC.mm(cC(this).attr("id")))})),this.opts.initMenu.call(this,this.$menu,this.$orig),this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.$pnls=cC('<div class="'+CC.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu);var c=[CC.menu];this.opts.slidingSubmenus||c.push(CC.vertical),this.$menu.addClass(c.join(" ")).parent().addClass(CC.wrapper),this.trigger("initMenu:after")},_initPanels:function(c){this.trigger("initPanels:before",c),c=c||this.$pnls.children(this.conf.panelNodetype);var l=cC(),e=this,s=function(c){c.filter(this.conf.panelNodetype).each(function(){var c=e._initPanel(cC(this));if(c){e._initNavbar(c),e._initListview(c),l=l.add(c);var C=c.children("."+CC.listview).children("li").children(e.conf.panelNodeType).add(c.children("."+e.conf.classNames.panel));C.length&&s.call(e,C)}})};s.call(this,c),this.opts.initPanels.call(this,l),this.trigger("initPanels:after",l)},_initPanel:function(c){if(this.trigger("initPanel:before",c),c.hasClass(CC.panel))return c;if(this.__refactorClass(c,this.conf.classNames.panel,"panel"),this.__refactorClass(c,this.conf.classNames.nopanel,"nopanel"),this.__refactorClass(c,this.conf.classNames.vertical,"vertical"),this.__refactorClass(c,this.conf.classNames.inset,"inset"),c.filter("."+CC.inset).addClass(CC.nopanel),c.hasClass(CC.nopanel))return!1;var C=c.hasClass(CC.vertical)||!this.opts.slidingSubmenus;c.removeClass(CC.vertical);var l=c.attr("id")||this.__getUniqueId();c.removeAttr("id"),c.is("ul, ol")&&(c.wrap("<div />"),c=c.parent()),c.addClass(CC.panel+" "+CC.hidden).attr("id",l);var e=c.parent("li");return C?c.add(e).addClass(CC.vertical):c.appendTo(this.$pnls),e.length&&(e.data(lC.child,c),c.data(lC.parent,e)),this.trigger("initPanel:after",c),c},_initNavbar:function(c){if(this.trigger("initNavbar:before",c),!c.children("."+CC.navbar).length){var C=c.data(lC.parent),l=cC('<div class="'+CC.navbar+'" />'),e=cC[zC].i18n(this.opts.navbar.title),s="";if(C&&C.length){if(C.hasClass(CC.vertical))return;if(C.parent().is("."+CC.listview))var h=C.children("a, span").not("."+CC.next);else h=C.closest("."+CC.panel).find('a[href="#'+c.attr("id")+'"]');var z=(C=(h=h.first()).closest("."+CC.panel)).attr("id");switch(e=h.text(),this.opts.navbar.titleLink){case"anchor":s=h.attr("href");break;case"parent":s="#"+z}l.append('<a class="'+CC.btn+" "+CC.prev+'" href="#'+z+'" />')}else if(!this.opts.navbar.title)return;this.opts.navbar.add&&c.addClass(CC.hasnavbar),l.append('<a class="'+CC.title+'"'+(s.length?' href="'+s+'"':"")+">"+e+"</a>").prependTo(c),this.trigger("initNavbar:after",c)}},_initListview:function(c){this.trigger("initListview:before",c);var C=this.__childAddBack(c,"ul, ol");this.__refactorClass(C,this.conf.classNames.nolistview,"nolistview"),C.filter("."+this.conf.classNames.inset).addClass(CC.nolistview);var l=C.not("."+CC.nolistview).addClass(CC.listview).children();this.__refactorClass(l,this.conf.classNames.selected,"selected"),this.__refactorClass(l,this.conf.classNames.divider,"divider"),this.__refactorClass(l,this.conf.classNames.spacer,"spacer");var e=c.data(lC.parent);if(e&&e.parent().is("."+CC.listview)&&!e.children("."+CC.next).length){var s=e.children("a, span").first(),h=cC('<a class="'+CC.next+'" href="#'+c.attr("id")+'" />').insertBefore(s);s.is("span")&&h.addClass(CC.fullsubopen)}this.trigger("initListview:after",c)},_initOpened:function(){this.trigger("initOpened:before");var c=this.$pnls.find("."+CC.listview).children("."+CC.selected).removeClass(CC.selected).last().addClass(CC.selected),C=c.length?c.closest("."+CC.panel):this.$pnls.children("."+CC.panel).first();this.openPanel(C,!1),this.trigger("initOpened:after")},_initAnchors:function(){var M=this;sC.$body.on(eC.click+"-oncanvas","a[href]",function(c){var C=cC(this),l=!1,e=M.$menu.find(C).length;for(var s in cC[zC].addons)if(cC[zC].addons[s].clickAnchor.call(M,C,e)){l=!0;break}var h=C.attr("href");if(!l&&e&&1<h.length&&"#"==h.slice(0,1))try{var z=cC(h,M.$menu);z.is("."+CC.panel)&&(l=!0,M[C.parent().hasClass(CC.vertical)?"togglePanel":"openPanel"](z))}catch(c){}if(l&&c.preventDefault(),!l&&e&&C.is("."+CC.listview+" > li > a")&&!C.is('[rel="external"]')&&!C.is('[target="_blank"]')){M.__valueOrFn(M.opts.onClick.setSelected,C)&&M.setSelected(cC(c.target).parent());var t=M.__valueOrFn(M.opts.onClick.preventDefault,C,"#"==h.slice(0,1));t&&c.preventDefault(),M.__valueOrFn(M.opts.onClick.close,C,t)&&M.close()}})},_initMatchMedia:function(){var C=this;this._fireMatchMedia(),sC.$wndw.on(eC.resize,function(c){C._fireMatchMedia()})},_fireMatchMedia:function(){for(var c in this.mtch)for(var C=window.matchMedia&&window.matchMedia(c).matches?"yes":"no",l=0;l<this.mtch[c].length;l++)this.mtch[c][l][C].call(this)},_getOriginalMenuId:function(){var c=this.$menu.attr("id");return this.conf.clone&&c&&c.length&&(c=CC.umm(c)),c},__api:function(){var l=this,e={};return cC.each(this._api,function(c){var C=this;e[C]=function(){var c=l[C].apply(l,arguments);return void 0===c?e:c}}),e},__valueOrFn:function(c,C,l){return"function"==typeof c?c.call(C[0]):void 0===c&&void 0!==l?l:c},__refactorClass:function(c,C,l){return c.filter("."+C).removeClass(C).addClass(CC[l])},__findAddBack:function(c,C){return c.find(C).add(c.filter(C))},__childAddBack:function(c,C){return c.children(C).add(c.filter(C))},__filterListItems:function(c){return c.not("."+CC.divider).not("."+CC.hidden)},__filterListItemAnchors:function(c){return this.__filterListItems(c).children("a").not("."+CC.next)},__transitionend:function(C,l,c){function e(c){void 0!==c&&c.target!=C[0]||(s||(C.unbind(eC.transitionend),C.unbind(eC.webkitTransitionEnd),l.call(C[0])),s=!0)}var s=!1;C.on(eC.transitionend,e),C.on(eC.webkitTransitionEnd,e),setTimeout(e,1.1*c)},__getUniqueId:function(){return CC.mm(cC[zC].uniqueId++)}},cC.fn[zC]=function(l,e){cC[zC].glbl||(sC={$wndw:cC(window),$docu:cC(document),$html:cC("html"),$body:cC("body")},CC={},lC={},eC={},cC.each([CC,lC,eC],function(c,e){e.add=function(c){for(var C=0,l=(c=c.split(" ")).length;C<l;C++)e[c[C]]=e.mm(c[C])}}),CC.mm=function(c){return"mm-"+c},CC.add("wrapper menu panels panel nopanel highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen noanimation"),CC.umm=function(c){return"mm-"==c.slice(0,3)&&(c=c.slice(3)),c},lC.mm=function(c){return"mm-"+c},lC.add("parent child"),eC.mm=function(c){return c+".mm"},eC.add("transitionend webkitTransitionEnd click scroll resize keydown mousedown mouseup touchstart touchmove touchend orientationchange"),cC[zC]._c=CC,cC[zC]._d=lC,cC[zC]._e=eC,cC[zC].glbl=sC),l=cC.extend(!0,{},cC[zC].defaults,l),e=cC.extend(!0,{},cC[zC].configuration,e);var s=cC();return this.each(function(){var c=cC(this);if(!c.data(zC)){var C=new cC[zC](c,l,e);C.$menu.data(zC,C.__api()),s=s.add(C.$menu)}}),s},cC[zC].i18n=(hC={},function(c){switch(typeof c){case"object":return cC.extend(hC,c),hC;case"string":return hC[c]||c;case"undefined":default:return hC}}),cC[zC].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:"undefined"==typeof Modernizr||void 0===Modernizr.csstransitions||Modernizr.csstransitions,csstransforms:"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms||Modernizr.csstransforms,csstransforms3d:"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms3d||Modernizr.csstransforms3d}),Jc="offCanvas",(Uc=c)[Zc="mmenu"].addons[Jc]={setup:function(){if(this.opts[Jc]){var e=this,c=this.opts[Jc],s=this.conf[Jc];Gc=Uc[Zc].glbl,this._api=Uc.merge(this._api,["open","close","setPage"]),"object"!=typeof c&&(c={}),"top"!=c.position&&"bottom"!=c.position||(c.zposition="front"),c=this.opts[Jc]=Uc.extend(!0,{},Uc[Zc].defaults[Jc],c),"string"!=typeof s.pageSelector&&(s.pageSelector="> "+s.pageNodetype),Gc.$allMenus=(Gc.$allMenus||Uc()).add(this.$menu),this.vars.opened=!1;var h=[Xc.offcanvas];"left"!=c.position&&h.push(Xc.mm(c.position)),"back"!=c.zposition&&h.push(Xc.mm(c.zposition)),Uc[Zc].support.csstransforms||h.push(Xc["no-csstransforms"]),Uc[Zc].support.csstransforms3d||h.push(Xc["no-csstransforms3d"]),this.bind("initMenu:after",function(){var c=this;this.setPage(Gc.$page),this._initBlocker(),this["_initWindow_"+Jc](),this.$menu.addClass(h.join(" ")).parent("."+Xc.wrapper).removeClass(Xc.wrapper),this.$menu[s.menuInsertMethod](s.menuInsertSelector);var C=window.location.hash;if(C){var l=this._getOriginalMenuId();l&&l==C.slice(1)&&setTimeout(function(){c.open()},1e3)}}),this.bind("initExtensions:after",function(){for(var l=[Xc.mm("widescreen"),Xc.mm("iconbar")],c=0;c<l.length;c++)for(var C in this.opts.extensions)if(-1<this.opts.extensions[C].indexOf(l[c])){!function(c,C){e.matchMedia(c,function(){Gc.$html.addClass(l[C])},function(){Gc.$html.removeClass(l[C])})}(C,c);break}}),this.bind("open:start:sr-aria",function(){this.__sr_aria(this.$menu,"hidden",!1)}),this.bind("close:finish:sr-aria",function(){this.__sr_aria(this.$menu,"hidden",!0)}),this.bind("initMenu:after:sr-aria",function(){this.__sr_aria(this.$menu,"hidden",!0)})}},add:function(){Xc=Uc[Zc]._c,Kc=Uc[Zc]._d,Qc=Uc[Zc]._e,Xc.add("offcanvas slideout blocking modal background opening blocker page no-csstransforms3d"),Kc.add("style")},clickAnchor:function(c,C){var l=this;if(this.opts[Jc]){var e=this._getOriginalMenuId();if(e&&c.is('[href="#'+e+'"]')){if(C)return!0;var s=c.closest("."+Xc.menu);if(s.length){var h=s.data("mmenu");if(h&&h.close)return h.close(),l.__transitionend(s,function(){l.open()},l.conf.transitionDuration),!0}return this.open(),!0}if(Gc.$page)return(e=Gc.$page.first().attr("id"))&&c.is('[href="#'+e+'"]')?(this.close(),!0):void 0}}},Uc[Zc].defaults[Jc]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},Uc[Zc].configuration[Jc]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuInsertMethod:"prependTo",menuInsertSelector:"body"},Uc[Zc].prototype.open=function(){if(this.trigger("open:before"),!this.vars.opened){var c=this;this._openSetup(),setTimeout(function(){c._openFinish()},this.conf.openingInterval),this.trigger("open:after")}},Uc[Zc].prototype._openSetup=function(){var c=this,C=this.opts[Jc];this.closeAllOthers(),Gc.$page.each(function(){Uc(this).data(Kc.style,Uc(this).attr("style")||"")}),Gc.$wndw.trigger(Qc.resize+"-"+Jc,[!0]);var l=[Xc.opened];C.blockUI&&l.push(Xc.blocking),"modal"==C.blockUI&&l.push(Xc.modal),C.moveBackground&&l.push(Xc.background),"left"!=C.position&&l.push(Xc.mm(this.opts[Jc].position)),"back"!=C.zposition&&l.push(Xc.mm(this.opts[Jc].zposition)),Gc.$html.addClass(l.join(" ")),setTimeout(function(){c.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(Xc.opened)},Uc[Zc].prototype._openFinish=function(){var c=this;this.__transitionend(Gc.$page.first(),function(){c.trigger("open:finish")},this.conf.transitionDuration),this.trigger("open:start"),Gc.$html.addClass(Xc.opening)},Uc[Zc].prototype.close=function(){if(this.trigger("close:before"),this.vars.opened){var C=this;this.__transitionend(Gc.$page.first(),function(){C.$menu.removeClass(Xc.opened);var c=[Xc.opened,Xc.blocking,Xc.modal,Xc.background,Xc.mm(C.opts[Jc].position),Xc.mm(C.opts[Jc].zposition)];Gc.$html.removeClass(c.join(" ")),Gc.$page.each(function(){Uc(this).attr("style",Uc(this).data(Kc.style))}),C.vars.opened=!1,C.trigger("close:finish")},this.conf.transitionDuration),this.trigger("close:start"),Gc.$html.removeClass(Xc.opening),this.trigger("close:after")}},Uc[Zc].prototype.closeAllOthers=function(){Gc.$allMenus.not(this.$menu).each(function(){var c=Uc(this).data(Zc);c&&c.close&&c.close()})},Uc[Zc].prototype.setPage=function(c){this.trigger("setPage:before",c);var C=this,l=this.conf[Jc];c&&c.length||(c=Gc.$body.find(l.pageSelector),l.noPageSelector.length&&(c=c.not(l.noPageSelector.join(", "))),1<c.length&&l.wrapPageIfNeeded&&(c=c.wrapAll("<"+this.conf[Jc].pageNodetype+" />").parent())),c.each(function(){Uc(this).attr("id",Uc(this).attr("id")||C.__getUniqueId())}),c.addClass(Xc.page+" "+Xc.slideout),Gc.$page=c,this.trigger("setPage:after",c)},Uc[Zc].prototype["_initWindow_"+Jc]=function(){Gc.$wndw.off(Qc.keydown+"-"+Jc).on(Qc.keydown+"-"+Jc,function(c){if(Gc.$html.hasClass(Xc.opened)&&9==c.keyCode)return c.preventDefault(),!1});var e=0;Gc.$wndw.off(Qc.resize+"-"+Jc).on(Qc.resize+"-"+Jc,function(c,C){if(1==Gc.$page.length&&(C||Gc.$html.hasClass(Xc.opened))){var l=Gc.$wndw.height();!C&&l==e||(e=l,Gc.$page.css("minHeight",l))}})},Uc[Zc].prototype._initBlocker=function(){var C=this;this.opts[Jc].blockUI&&(Gc.$blck||(Gc.$blck=Uc('<div id="'+Xc.blocker+'" class="'+Xc.slideout+'" />')),Gc.$blck.appendTo(Gc.$body).off(Qc.touchstart+"-"+Jc+" "+Qc.touchmove+"-"+Jc).on(Qc.touchstart+"-"+Jc+" "+Qc.touchmove+"-"+Jc,function(c){c.preventDefault(),c.stopPropagation(),Gc.$blck.trigger(Qc.mousedown+"-"+Jc)}).off(Qc.mousedown+"-"+Jc).on(Qc.mousedown+"-"+Jc,function(c){c.preventDefault(),Gc.$html.hasClass(Xc.modal)||(C.closeAllOthers(),C.close())}))},Yc="scrollBugFix",($c=c)[Bc="mmenu"].addons[Yc]={setup:function(){var c=this.opts[Yc];this.conf[Yc],Fc=$c[Bc].glbl,$c[Bc].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof c&&(c={fix:c}),"object"!=typeof c&&(c={}),(c=this.opts[Yc]=$c.extend(!0,{},$c[Bc].defaults[Yc],c)).fix&&(this.bind("open:start",function(){this.$pnls.children("."+Wc.opened).scrollTop(0)}),this.bind("initMenu:after",function(){this["_initWindow_"+Yc]()})))},add:function(){Wc=$c[Bc]._c,$c[Bc]._d,Rc=$c[Bc]._e},clickAnchor:function(c,C){}},$c[Bc].defaults[Yc]={fix:!0},$c[Bc].prototype["_initWindow_"+Yc]=function(){var c=this;Fc.$docu.off(Rc.touchmove+"-"+Yc).on(Rc.touchmove+"-"+Yc,function(c){Fc.$html.hasClass(Wc.opened)&&c.preventDefault()});var C=!1;Fc.$body.off(Rc.touchstart+"-"+Yc).on(Rc.touchstart+"-"+Yc,"."+Wc.panels+"> ."+Wc.panel,function(c){Fc.$html.hasClass(Wc.opened)&&(C||(C=!0,0===c.currentTarget.scrollTop?c.currentTarget.scrollTop=1:c.currentTarget.scrollHeight===c.currentTarget.scrollTop+c.currentTarget.offsetHeight&&(c.currentTarget.scrollTop-=1),C=!1))}).off(Rc.touchmove+"-"+Yc).on(Rc.touchmove+"-"+Yc,"."+Wc.panels+"> ."+Wc.panel,function(c){Fc.$html.hasClass(Wc.opened)&&$c(this)[0].scrollHeight>$c(this).innerHeight()&&c.stopPropagation()}),Fc.$wndw.off(Rc.orientationchange+"-"+Yc).on(Rc.orientationchange+"-"+Yc,function(){c.$pnls.children("."+Wc.opened).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})},jc="screenReader",(Ac=c)[Nc="mmenu"].addons[jc]={setup:function(){var h=this,c=this.opts[jc],z=this.conf[jc];Ac[Nc].glbl,"boolean"==typeof c&&(c={aria:c,text:c}),"object"!=typeof c&&(c={}),(c=this.opts[jc]=Ac.extend(!0,{},Ac[Nc].defaults[jc],c)).aria&&(this.bind("initAddons:after",function(){this.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria")}),this.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",arguments[0])}),this.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",arguments[0])}),this.bind("close:start",function(){this.trigger("close:start:sr-aria")}),this.bind("close:finish",function(){this.trigger("close:finish:sr-aria")}),this.bind("open:start",function(){this.trigger("open:start:sr-aria")}),this.bind("open:finish",function(){this.trigger("open:finish:sr-aria")})}),this.bind("updateListview",function(){this.$pnls.find("."+Pc.listview).children().each(function(){h.__sr_aria(Ac(this),"hidden",Ac(this).is("."+Pc.hidden))})}),this.bind("openPanel:start",function(c){var C=this.$menu.find("."+Pc.panel).not(c).not(c.parents("."+Pc.panel)),l=c.add(c.find("."+Pc.vertical+"."+Pc.opened).children("."+Pc.panel));this.__sr_aria(C,"hidden",!0),this.__sr_aria(l,"hidden",!1)}),this.bind("closePanel",function(c){this.__sr_aria(c,"hidden",!0)}),this.bind("initPanels:after",function(c){var C=c.find("."+Pc.prev+", ."+Pc.next).each(function(){h.__sr_aria(Ac(this),"owns",Ac(this).attr("href").replace("#",""))});this.__sr_aria(C,"haspopup",!0)}),this.bind("initNavbar:after",function(c){var C=c.children("."+Pc.navbar);this.__sr_aria(C,"hidden",!c.hasClass(Pc.hasnavbar))}),c.text&&(this.bind("initlistview:after",function(c){var C=c.find("."+Pc.listview).find("."+Pc.fullsubopen).parent().children("span");this.__sr_aria(C,"hidden",!0)}),"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(c){var C=c.children("."+Pc.navbar),l=!!C.children("."+Pc.prev).length;this.__sr_aria(C.children("."+Pc.title),"hidden",l)}))),c.text&&(this.bind("initAddons:after",function(){this.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",arguments[0])})}),this.bind("initNavbar:after",function(c){var C=c.children("."+Pc.navbar),l=C.children("."+Pc.title).text(),e=Ac[Nc].i18n(z.text.closeSubmenu);l&&(e+=" ("+l+")"),C.children("."+Pc.prev).html(this.__sr_text(e))}),this.bind("initListview:after",function(c){var C=c.data(Oc.parent);if(C&&C.length){var l=C.children("."+Pc.next),e=l.nextAll("span, a").first().text(),s=Ac[Nc].i18n(z.text[l.parent().is("."+Pc.vertical)?"toggleSubmenu":"openSubmenu"]);e&&(s+=" ("+e+")"),l.html(h.__sr_text(s))}}))},add:function(){Pc=Ac[Nc]._c,Oc=Ac[Nc]._d,Ac[Nc]._e,Pc.add("sronly")},clickAnchor:function(c,C){}},Ac[Nc].defaults[jc]={aria:!0,text:!0},Ac[Nc].configuration[jc]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},Ac[Nc].prototype.__sr_aria=function(c,C,l){c.prop("aria-"+C,l)[l?"attr":"removeAttr"]("aria-"+C,l)},Ac[Nc].prototype.__sr_text=function(c){return'<span class="'+Pc.sronly+'">'+c+"</span>"},Ic="autoHeight",(Tc=c)[Ec="mmenu"].addons[Ic]={setup:function(){var s=this.opts[Ic];if(this.conf[Ic],Tc[Ec].glbl,"boolean"==typeof s&&s&&(s={height:"auto"}),"string"==typeof s&&(s={height:s}),"object"!=typeof s&&(s={}),"auto"==(s=this.opts[Ic]=Tc.extend(!0,{},Tc[Ec].defaults[Ic],s)).height||"highest"==s.height){function c(c){if(!this.opts.offCanvas||this.vars.opened){var C=Math.max(parseInt(this.$pnls.css("top"),10),0)||0,l=Math.max(parseInt(this.$pnls.css("bottom"),10),0)||0,e=0;this.$menu.addClass(qc.measureheight),"auto"==s.height?((c=c||this.$pnls.children("."+qc.opened)).is("."+qc.vertical)&&(c=c.parents("."+qc.panel).not("."+qc.vertical)),c.length||(c=this.$pnls.children("."+qc.panel)),e=c.first().outerHeight()):"highest"==s.height&&this.$pnls.children().each(function(){var c=Tc(this);c.is("."+qc.vertical)&&(c=c.parents("."+qc.panel).not("."+qc.vertical).first()),e=Math.max(e,c.outerHeight())}),this.$menu.height(e+C+l).removeClass(qc.measureheight)}}this.bind("initMenu:after",function(){this.$menu.addClass(qc.autoheight)}),this.opts.offCanvas&&this.bind("open:start",c),"highest"==s.height&&this.bind("initPanels:after",c),"auto"==s.height&&(this.bind("updateListview",c),this.bind("openPanel:start",c),this.bind("closePanel",c))}},add:function(){qc=Tc[Ec]._c,Tc[Ec]._d,Dc=Tc[Ec]._e,qc.add("autoheight measureheight"),Dc.add("resize")},clickAnchor:function(c,C){}},Tc[Ec].defaults[Ic]={height:"default"},xc="backButton",(wc=c)[_c="mmenu"].addons[xc]={setup:function(){if(this.opts.offCanvas){var C=this,c=this.opts[xc];if(this.conf[xc],kc=wc[_c].glbl,"boolean"==typeof c&&(c={close:c}),"object"!=typeof c&&(c={}),(c=wc.extend(!0,{},wc[_c].defaults[xc],c)).close){var l="#"+C.$menu.attr("id");this.bind("open:finish",function(c){location.hash!=l&&history.pushState(null,document.title,l)}),wc(window).on("popstate",function(c){kc.$html.hasClass(yc.opened)?(c.stopPropagation(),C.close()):location.hash==l&&(c.stopPropagation(),C.open())})}}},add:function(){return window.history&&window.history.pushState?(yc=wc[_c]._c,wc[_c]._d,void wc[_c]._e):void(wc[_c].addons[xc].setup=function(){})},clickAnchor:function(c,C){}},wc[_c].defaults[xc]={close:!1},bc="columns",(uc=c)[gc="mmenu"].addons[bc]={setup:function(){var l=this.opts[bc];if(this.conf[bc],mc=uc[gc].glbl,"boolean"==typeof l&&(l={add:l}),"number"==typeof l&&(l={add:!0,visible:l}),"object"!=typeof l&&(l={}),"number"==typeof l.visible&&(l.visible={min:l.visible,max:l.visible}),(l=this.opts[bc]=uc.extend(!0,{},uc[gc].defaults[bc],l)).add){l.visible.min=Math.max(1,Math.min(6,l.visible.min)),l.visible.max=Math.max(l.visible.min,Math.min(6,l.visible.max));for(var e=this.opts.offCanvas?this.$menu.add(mc.$html):this.$menu,s="",c=0;c<=l.visible.max;c++)s+=" "+pc.columns+"-"+c;s.length&&(s=s.slice(1)),this.bind("initMenu:after",function(){this.$menu.addClass(pc.columns)}),this.bind("openPanel:start",function(c){var C=this.$pnls.children("."+pc.subopened).length;c&&!c.hasClass(pc.subopened)&&C++,C=Math.min(l.visible.max,Math.max(l.visible.min,C)),e.removeClass(s).addClass(pc.columns+"-"+C)}),this.bind("openPanel:start",function(c){c=c||this.$pnls.children("."+pc.opened),this.$pnls.children("."+pc.panel).removeClass(s).filter("."+pc.subopened).add(c).slice(-l.visible.max).each(function(c){uc(this).addClass(pc.columns+"-"+c)})})}},add:function(){pc=uc[gc]._c,uc[gc]._d,uc[gc]._e,pc.add("columns")},clickAnchor:function(c,C){if(!this.opts[bc].add)return!1;if(C){var l=c.attr("href");if(1<l.length&&"#"==l.slice(0,1))try{if(uc(l,this.$menu).is("."+pc.panel))for(var e=parseInt(c.closest("."+pc.panel).attr("class").split(pc.columns+"-")[1].split(" ")[0],10)+1;0<e;){var s=this.$pnls.children("."+pc.columns+"-"+e);if(!s.length){e=-1;break}e++,s.removeClass(pc.subopened).removeClass(pc.opened).removeClass(pc.highest).addClass(pc.hidden)}}catch(c){}}}},uc[gc].defaults[bc]={add:!1,visible:{min:1,max:3}},dc="counters",(Lc=c)[fc="mmenu"].addons[dc]={setup:function(){var e=this,l=this.opts[dc];if(this.conf[dc],Lc[fc].glbl,"boolean"==typeof l&&(l={add:l,update:l}),"object"!=typeof l&&(l={}),l=this.opts[dc]=Lc.extend(!0,{},Lc[fc].defaults[dc],l),this.bind("initListview:after",function(c){this.__refactorClass(Lc("em",c),this.conf.classNames[dc].counter,"counter")}),l.add&&this.bind("initListview:after",function(c){var C;switch(l.addTo){case"panels":C=c;break;default:C=c.filter(l.addTo)}C.each(function(){var c=Lc(this).data(Sc.parent);c&&(c.children("em."+Hc.counter).length||c.prepend(Lc('<em class="'+Hc.counter+'" />')))})}),l.update){function c(c){(c=c||this.$pnls.children("."+Hc.panel)).each(function(){var c=Lc(this),C=c.data(Sc.parent);if(C){var l=C.children("em."+Hc.counter);l.length&&(c=c.children("."+Hc.listview)).length&&l.html(e.__filterListItems(c.children()).length)}})}this.bind("initListview:after",c),this.bind("updateListview",c)}},add:function(){Hc=Lc[fc]._c,Sc=Lc[fc]._d,Lc[fc]._e,Hc.add("counter search noresultsmsg")},clickAnchor:function(c,C){}},Lc[fc].defaults[dc]={add:!1,addTo:"panels",count:!1},Lc[fc].configuration.classNames[dc]={counter:"Counter"},Vc="dividers",(nc=c)[vc="mmenu"].addons[Vc]={setup:function(){var l=this,e=this.opts[Vc];if(this.conf[Vc],nc[vc].glbl,"boolean"==typeof e&&(e={add:e,fixed:e}),"object"!=typeof e&&(e={}),e=this.opts[Vc]=nc.extend(!0,{},nc[vc].defaults[Vc],e),this.bind("initListview:after",function(c){this.__refactorClass(c.find("li"),this.conf.classNames[Vc].collapsed,"collapsed")}),e.add&&this.bind("initListview:after",function(c){var C;switch(e.addTo){case"panels":C=c;break;default:C=c.filter(e.addTo)}C.length&&C.find("."+rc.listview).find("."+rc.divider).remove().end().each(function(){var C="";l.__filterListItems(nc(this).children()).each(function(){var c=nc.trim(nc(this).children("a, span").text()).slice(0,1).toLowerCase();c!=C&&c.length&&(C=c,nc('<li class="'+rc.divider+'">'+c+"</li>").insertBefore(this))})})}),e.collapse&&this.bind("initListview:after",function(c){c.find("."+rc.divider).each(function(){var c=nc(this);c.nextUntil("."+rc.divider,"."+rc.collapsed).length&&(c.children("."+rc.next).length||(c.wrapInner("<span />"),c.prepend('<a href="#" class="'+rc.next+" "+rc.fullsubopen+'" />')))})}),e.fixed){function s(c){if(!(c=c||this.$pnls.children("."+rc.opened)).is(":hidden")){var C=c.children("."+rc.listview).children("."+rc.divider).not("."+rc.hidden),l=c.scrollTop()||0,e="";C.each(function(){nc(this).position().top+l<l+1&&(e=nc(this).text())}),this.$fixeddivider.text(e),this.$pnls[e.length?"addClass":"removeClass"](rc.hasdividers)}}this.bind("initPanels:after",function(){void 0===this.$fixeddivider&&(this.$fixeddivider=nc('<ul class="'+rc.listview+" "+rc.fixeddivider+'"><li class="'+rc.divider+'"></li></ul>').prependTo(this.$pnls).children())}),this.bind("open:start",s),this.bind("openPanel:start",s),this.bind("updateListview",s),this.bind("initPanel:after",function(C){C.off(oc.scroll+"-"+Vc+" "+oc.touchmove+"-"+Vc).on(oc.scroll+"-"+Vc+" "+oc.touchmove+"-"+Vc,function(c){s.call(l,C)})})}},add:function(){rc=nc[vc]._c,nc[vc]._d,oc=nc[vc]._e,rc.add("collapsed uncollapsed fixeddivider hasdividers"),oc.add("scroll")},clickAnchor:function(c,C){if(this.opts[Vc].collapse&&C){var l=c.parent();if(l.is("."+rc.divider)){var e=l.nextUntil("."+rc.divider,"."+rc.collapsed);return l.toggleClass(rc.opened),e[l.hasClass(rc.opened)?"addClass":"removeClass"](rc.uncollapsed),!0}}return!1}},nc[vc].defaults[Vc]={add:!1,addTo:"panels",fixed:!1,collapse:!1},nc[vc].configuration.classNames[Vc]={collapsed:"Collapsed"},(zc=c)[ac="mmenu"].addons.drag={setup:function(){if(this.opts.offCanvas){var C=this.opts.drag,l=this.conf.drag;ic=zc[ac].glbl,"boolean"==typeof C&&(C={menu:C,panels:C}),"object"!=typeof C&&(C={}),"boolean"==typeof C.menu&&(C.menu={open:C.menu}),"object"!=typeof C.menu&&(C.menu={}),"boolean"==typeof C.panels&&(C.panels={close:C.panels}),"object"!=typeof C.panels&&(C.panels={}),(C=this.opts.drag=zc.extend(!0,{},zc[ac].defaults.drag,C)).menu.open&&this.bind("setPage:after",function(){(function(C,l,e){var s,h,z,t=this,M={events:"panleft panright",typeLower:"x",typeUpper:"X",open_dir:"right",close_dir:"left",negative:!1},i="width",a=M.open_dir,n=function(c){c<=C.maxStartPos&&(o=1)},r=function(){return zc("."+tc.slideout)},o=0,v=0,V=0;switch(this.opts.offCanvas.position){case"top":case"bottom":M.events="panup pandown",M.typeLower="y",M.typeUpper="Y",i="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":M.negative=!0,n=function(c){c>=e.$wndw[i]()-C.maxStartPos&&(o=1)}}switch(this.opts.offCanvas.position){case"left":break;case"right":M.open_dir="left",M.close_dir="right";break;case"top":M.open_dir="down",M.close_dir="up";break;case"bottom":M.open_dir="up",M.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":r=function(){return this.$menu}}var c=this.__valueOrFn(C.node,this.$menu,e.$page);"string"==typeof c&&(c=zc(c));var L=new Hammer(c[0],this.opts.drag.vendors.hammer);L.on("panstart",function(c){n(c.center[M.typeLower]),e.$slideOutNodes=r(),a=M.open_dir}),L.on(M.events+" panend",function(c){0<o&&c.preventDefault()}),L.on(M.events,function(c){if(s=c["delta"+M.typeUpper],M.negative&&(s=-s),s!=v&&(a=v<=s?M.open_dir:M.close_dir),(v=s)>C.threshold&&1==o){if(e.$html.hasClass(tc.opened))return;o=2,t._openSetup(),t.trigger("open:start"),e.$html.addClass(tc.dragging),V=tC(e.$wndw[i]()*l[i].perc,l[i].min,l[i].max)}2==o&&(h=tC(v,10,V)-("front"==t.opts.offCanvas.zposition?V:0),M.negative&&(h=-h),z="translate"+M.typeUpper+"("+h+"px )",e.$slideOutNodes.css({"-webkit-transform":"-webkit-"+z,transform:z}))}),L.on("panend",function(c){2==o&&(e.$html.removeClass(tc.dragging),e.$slideOutNodes.css("transform",""),t[a==M.open_dir?"_openFinish":"close"]()),o=0})}).call(this,C.menu,l.menu,ic)}),C.panels.close&&this.bind("initPanel:after",function(c){(function(c,C,l,e){var s=this,h=c.data(Mc.parent);if(h){h=h.closest("."+tc.panel);var z=new Hammer(c[0],s.opts.drag.vendors.hammer),t=null;z.on("panright",function(c){t||(s.openPanel(h),t=setTimeout(function(){clearTimeout(t),t=null},s.conf.openingInterval+s.conf.transitionDuration))})}}).call(this,c,C.panels,l.panels,ic)})}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?(zc[ac].addons.drag.add=function(){},void(zc[ac].addons.drag.setup=function(){})):(tc=zc[ac]._c,Mc=zc[ac]._d,zc[ac]._e,void tc.add("dragging"))},clickAnchor:function(c,C){}},zc[ac].defaults.drag={menu:{open:!1,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},zc[ac].configuration.drag={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},panels:{}},hc="dropdown",(J=c)[sc="mmenu"].addons[hc]={setup:function(){if(this.opts.offCanvas){var C=this,S=this.opts[hc],f=this.conf[hc];if(ec=J[sc].glbl,"boolean"==typeof S&&S&&(S={drop:S}),"object"!=typeof S&&(S={}),"string"==typeof S.position&&(S.position={of:S.position}),(S=this.opts[hc]=J.extend(!0,{},J[sc].defaults[hc],S)).drop){var d;function l(c,C){var l,e,s=C[0],h=C[1],z="x"==c?"scrollLeft":"scrollTop",t="x"==c?"outerWidth":"outerHeight",M="x"==c?"left":"top",i="x"==c?"right":"bottom",a="x"==c?"width":"height",n="x"==c?"maxWidth":"maxHeight",r=null,o=ec.$wndw[z](),v=d.offset()[M]-=o,V=v+d[t](),L=ec.$wndw[a](),H=f.offset.button[c]+f.offset.viewport[c];if(S.position[c])switch(S.position[c]){case"left":case"bottom":r="after";break;case"right":case"top":r="before"}return null===r&&(r=v+(V-v)/2<L/2?"after":"before"),"after"==r?(e=L-((l="x"==c?v:V)+H),s[M]=l+f.offset.button[c],s[i]="auto",h.push(cc["x"==c?"tipleft":"tiptop"])):(e=(l="x"==c?V:v)-H,s[i]="calc( 100% - "+(l-f.offset.button[c])+"px )",s[M]="auto",h.push(cc["x"==c?"tipright":"tipbottom"])),s[n]=Math.min(f[a].max,e),[s,h]}function e(c){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(Cc.style));var C=[{},[]];C=l.call(this,"y",C),C=l.call(this,"x",C),this.$menu.css(C[0]),S.tip&&this.$menu.removeClass(cc.tipleft+" "+cc.tipright+" "+cc.tiptop+" "+cc.tipbottom).addClass(C[1].join(" "))}}this.bind("initMenu:after",function(){if(this.$menu.addClass(cc.dropdown),S.tip&&this.$menu.addClass(cc.tip),"string"!=typeof S.position.of){var c=this._getOriginalMenuId();c&&c.length&&(S.position.of='[href="#'+c+'"]')}"string"==typeof S.position.of&&(d=J(S.position.of),S.event=S.event.split(" "),1==S.event.length&&(S.event[1]=S.event[0]),"hover"==S.event[0]&&d.on(lc.mouseenter+"-"+hc,function(){C.open()}),"hover"==S.event[1]&&this.$menu.on(lc.mouseleave+"-"+hc,function(){C.close()}))}),this.bind("open:start",function(){this.$menu.data(Cc.style,this.$menu.attr("style")||""),ec.$html.addClass(cc.dropdown)}),this.bind("close:finish",function(){this.$menu.attr("style",this.$menu.data(Cc.style)),ec.$html.removeClass(cc.dropdown)}),this.bind("open:start",e),ec.$wndw.on(lc.resize+"-"+hc,function(c){e.call(C)}),this.opts.offCanvas.blockUI||ec.$wndw.on(lc.scroll+"-"+hc,function(c){e.call(C)})}}},add:function(){cc=J[sc]._c,Cc=J[sc]._d,lc=J[sc]._e,cc.add("dropdown tip tipleft tipright tiptop tipbottom"),lc.add("mouseenter mouseleave resize scroll")},clickAnchor:function(c,C){}},J[sc].defaults[hc]={drop:!1,event:"click",position:{},tip:!0},J[sc].configuration[hc]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}},Z="fixedElements",(X=c)[G="mmenu"].addons[Z]={setup:function(){if(this.opts.offCanvas){var c=this.opts[Z],h=this.conf[Z];Q=X[G].glbl,c=this.opts[Z]=X.extend(!0,{},X[G].defaults[Z],c),this.bind("setPage:after",function(c){var C=this.conf.classNames[Z].fixed,l=c.find("."+C);this.__refactorClass(l,C,"slideout"),l[h.elemInsertMethod](h.elemInsertSelector);var e=this.conf.classNames[Z].sticky,s=c.find("."+e);this.__refactorClass(s,e,"sticky"),s.length&&(this.bind("open:before",function(){var c=Q.$wndw.scrollTop();s.each(function(){X(this).css("top",parseInt(X(this).css("top"),10)+c)})}),this.bind("close:finish",function(){s.css("top","")}))})}},add:function(){K=X[G]._c,X[G]._d,X[G]._e,K.add("sticky")},clickAnchor:function(c,C){}},X[G].configuration[Z]={elemInsertMethod:"appendTo",elemInsertSelector:"body"},X[G].configuration.classNames[Z]={fixed:"Fixed",sticky:"Sticky"},U="iconPanels",(F=c)[Y="mmenu"].addons[U]={setup:function(){var C=this,l=this.opts[U];if(this.conf[U],F[Y].glbl,"boolean"==typeof l&&(l={add:l}),"number"==typeof l&&(l={add:!0,visible:l}),"object"!=typeof l&&(l={}),(l=this.opts[U]=F.extend(!0,{},F[Y].defaults[U],l)).visible++,l.add){for(var e="",c=0;c<=l.visible;c++)e+=" "+B.iconpanel+"-"+c;function s(c){c.hasClass(B.vertical)||C.$pnls.children("."+B.panel).removeClass(e).filter("."+B.subopened).removeClass(B.hidden).add(c).not("."+B.vertical).slice(-l.visible).each(function(c){F(this).addClass(B.iconpanel+"-"+c)})}e.length&&(e=e.slice(1)),this.bind("initMenu:after",function(){this.$menu.addClass(B.iconpanel)}),this.bind("openPanel:start",s),this.bind("initPanels:after",function(c){s.call(C,C.$pnls.children("."+B.opened))}),this.bind("initListview:after",function(c){c.hasClass(B.vertical)||c.children("."+B.subblocker).length||c.prepend('<a href="#'+c.closest("."+B.panel).attr("id")+'" class="'+B.subblocker+'" />')})}},add:function(){B=F[Y]._c,F[Y]._d,F[Y]._e,B.add("iconpanel subblocker")},clickAnchor:function(c,C){}},F[Y].defaults[U]={add:!1,visible:3},function(h){function e(c,C){c=c||this.$pnls.children("."+M.opened);var l=h(),e=this.$menu.children("."+M.mm("navbars-top")+", ."+M.mm("navbars-bottom")).children("."+M.navbar);e.find(r).filter(":focus").length||("default"==C&&((l=c.children("."+M.listview).find("a[href]").not("."+M.hidden)).length||(l=c.find(r).not("."+M.hidden)),l.length||(l=e.find(r).not("."+M.hidden))),l.length||(l=this.$menu.children("."+M.tabstart)),l.first().focus())}function s(c){c=c||this.$pnls.children("."+M.opened),this.$pnls.children("."+M.panel).not(c).find(r).attr("tabindex",-1),c.find(r).attr("tabindex",0),c.find("."+M.mm("toggle")+", ."+M.mm("check")).attr("tabindex",-1),c.children("."+M.navbar).children("."+M.title).attr("tabindex",-1)}var z="mmenu",t="keyboardNavigation";h[z].addons[t]={setup:function(){if(!h[z].support.touch){var C=this.opts[t];if(this.conf[t],n=h[z].glbl,"boolean"!=typeof C&&"string"!=typeof C||(C={enable:C}),"object"!=typeof C&&(C={}),(C=this.opts[t]=h.extend(!0,{},h[z].defaults[t],C)).enable){var c=h('<button class="'+M.tabstart+'" tabindex="0" type="button" />'),l=h('<button class="'+M.tabend+'" tabindex="0" type="button" />');this.bind("initMenu:after",function(){C.enhance&&this.$menu.addClass(M.keyboardfocus),this["_initWindow_"+t](C.enhance)}),this.bind("initOpened:before",function(){this.$menu.prepend(c).append(l).children("."+M.mm("navbars-top")+", ."+M.mm("navbars-bottom")).children("."+M.navbar).children("a."+M.title).attr("tabindex",-1)}),this.bind("open:start",function(){s.call(this)}),this.bind("open:finish",function(){e.call(this,null,C.enable)}),this.bind("openPanel:start",function(c){s.call(this,c)}),this.bind("openPanel:finish",function(c){e.call(this,c,C.enable)}),this.bind("initOpened:after",function(){this.__sr_aria(this.$menu.children("."+M.mm("tabstart")+", ."+M.mm("tabend")),"hidden",!0)})}}},add:function(){M=h[z]._c,i=h[z]._d,a=h[z]._e,M.add("tabstart tabend keyboardfocus"),a.add("focusin keydown")},clickAnchor:function(c,C){}},h[z].defaults[t]={enable:!1,enhance:!1},h[z].configuration[t]={},h[z].prototype["_initWindow_"+t]=function(c){n.$wndw.off(a.keydown+"-offCanvas"),n.$wndw.off(a.focusin+"-"+t).on(a.focusin+"-"+t,function(c){if(n.$html.hasClass(M.opened)){var C=h(c.target);C.is("."+M.tabend)&&C.parent().find("."+M.tabstart).focus()}}),n.$wndw.off(a.keydown+"-"+t).on(a.keydown+"-"+t,function(c){var C=h(c.target),l=C.closest("."+M.menu);if(l.length)if(l.data("mmenu"),C.is("input, textarea"));else switch(c.keyCode){case 13:(C.is(".mm-toggle")||C.is(".mm-check"))&&C.trigger(a.click);break;case 32:case 37:case 38:case 39:case 40:c.preventDefault()}}),c&&n.$wndw.off(a.keydown+"-"+t).on(a.keydown+"-"+t,function(c){var C=h(c.target),l=C.closest("."+M.menu);if(l.length){var e=l.data("mmenu");if(C.is("input, textarea"))switch(c.keyCode){case 27:C.val("")}else switch(c.keyCode){case 8:var s=C.closest("."+M.panel).data(i.parent);s&&s.length&&e.openPanel(s.closest("."+M.panel));break;case 27:l.hasClass(M.offcanvas)&&e.close()}}})};var M,i,a,n,r="input, select, textarea, button, label, a[href]"}(c),R="lazySubmenus",(N=c)[W="mmenu"].addons[R]={setup:function(){var c=this.opts[R];this.conf[R],N[W].glbl,"boolean"==typeof c&&(c={load:c}),"object"!=typeof c&&(c={}),(c=this.opts[R]=N.extend(!0,{},N[W].defaults[R],c)).load&&(this.bind("initMenu:after",function(){this.$pnls.find("li").children(this.conf.panelNodetype).not("."+j.inset).not("."+j.nolistview).not("."+j.nopanel).addClass(j.lazysubmenu+" "+j.nolistview+" "+j.nopanel)}),this.bind("initPanels:before",function(c){c=c||this.$pnls.children(this.conf.panelNodetype),this.__findAddBack(c,"."+j.lazysubmenu).not("."+j.lazysubmenu+" ."+j.lazysubmenu).removeClass(j.lazysubmenu+" "+j.nolistview+" "+j.nopanel)}),this.bind("initOpened:before",function(){var c=this.$pnls.find("."+this.conf.classNames.selected).parents("."+j.lazysubmenu);c.length&&(c.removeClass(j.lazysubmenu+" "+j.nolistview+" "+j.nopanel),this.initPanels(c.last()))}),this.bind("openPanel:before",function(c){var C=this.__findAddBack(c,"."+j.lazysubmenu).not("."+j.lazysubmenu+" ."+j.lazysubmenu);C.length&&this.initPanels(C)}))},add:function(){j=N[W]._c,$=N[W]._d,N[W]._e,j.add("lazysubmenu"),$.add("lazysubmenu")},clickAnchor:function(c,C){}},N[W].defaults[R]={load:!1},N[W].configuration[R]={},O="navbars",(I=c)[P="mmenu"].addons[O]={setup:function(){var i=this,a=this.opts[O],n=this.conf[O];if(I[P].glbl,void 0!==a){a instanceof Array||(a=[a]);var r={},o={};a.length&&(I.each(a,function(c){var C=a[c];"boolean"==typeof C&&C&&(C={}),"object"!=typeof C&&(C={}),void 0===C.content&&(C.content=["prev","title"]),C.content instanceof Array||(C.content=[C.content]),C=I.extend(!0,{},i.opts.navbar,C);var l=I('<div class="'+A.navbar+'" />'),e=C.height;"number"!=typeof e&&(e=1),e=Math.min(4,Math.max(1,e)),l.addClass(A.navbar+"-size-"+e);var s=C.position;"bottom"!=s&&(s="top"),r[s]||(r[s]=0),r[s]+=e,o[s]||(o[s]=I('<div class="'+A.navbars+"-"+s+'" />')),o[s].append(l);for(var h=0,z=0,t=C.content.length;z<t;z++){var M=I[P].addons[O][C.content[z]]||!1;M?h+=M.call(i,l,C,n):((M=C.content[z])instanceof I||(M=I(C.content[z])),l.append(M))}1<(h+=Math.ceil(l.children().not("."+A.btn).length/e))&&l.addClass(A.navbar+"-content-"+h),l.children("."+A.btn).length&&l.addClass(A.hasbtns)}),this.bind("initMenu:after",function(){for(var c in r)this.$menu.addClass(A.hasnavbar+"-"+c+"-"+r[c]),this.$menu["bottom"==c?"append":"prepend"](o[c])}))}},add:function(){A=I[P]._c,I[P]._d,I[P]._e,A.add("navbars close hasbtns")},clickAnchor:function(c,C){}},I[P].configuration[O]={breadcrumbSeparator:"/"},I[P].configuration.classNames[O]={},(E=c).mmenu.addons.navbars.breadcrumbs=function(c,C,z){var l=this,t=E.mmenu._c,M=E.mmenu._d;t.add("breadcrumbs separator");var e=E('<span class="'+t.breadcrumbs+'" />').appendTo(c);return this.bind("initNavbar:after",function(c){c.removeClass(t.hasnavbar);for(var C=[],l=E('<span class="'+t.breadcrumbs+'"></span>'),e=c,s=!0;e&&e.length;){if(e.is("."+t.panel)||(e=e.closest("."+t.panel)),!e.hasClass(t.vertical)){var h=e.children("."+t.navbar).children("."+t.title).text();C.unshift(s?"<span>"+h+"</span>":'<a href="#'+e.attr("id")+'">'+h+"</a>"),s=!1}e=e.data(M.parent)}l.append(C.join('<span class="'+t.separator+'">'+z.breadcrumbSeparator+"</span>")).appendTo(c.children("."+t.navbar))}),this.bind("openPanel:start",function(c){e.html(c.children("."+t.navbar).children("."+t.breadcrumbs).html()||"")}),this.bind("initNavbar:after:sr-aria",function(c){c.children("."+t.navbar).children("."+t.breadcrumbs).children("a").each(function(){l.__sr_aria(E(this),"owns",E(this).attr("href").slice(1))})}),0},(q=c)[D="mmenu"].addons.navbars.close=function(c,C){var l=q[D]._c,e=(q[D].glbl,q('<a class="'+l.close+" "+l.btn+'" href="#" />').appendTo(c));return this.bind("setPage:after",function(c){e.attr("href","#"+c.attr("id"))}),this.bind("setPage:after:sr-text",function(c){e.html(this.__sr_text(q[D].i18n(this.conf.screenReader.text.closeMenu))),this.__sr_aria(e,"owns",e.attr("href").slice(1))}),-1},T="navbars",(x=c).mmenu.addons[T].next=function(c,C){var l,e,s,h=x.mmenu._c,z=x('<a class="'+h.next+" "+h.btn+'" href="#" />').appendTo(c);return this.bind("openPanel:start",function(c){l=c.find("."+this.conf.classNames[T].panelNext),e=l.attr("href"),s=l.html(),e?z.attr("href",e):z.removeAttr("href"),z[e||s?"removeClass":"addClass"](h.hidden),z.html(s)}),this.bind("openPanel:start:sr-aria",function(c){this.__sr_aria(z,"hidden",z.hasClass(h.hidden)),this.__sr_aria(z,"owns",(z.attr("href")||"").slice(1))}),-1},x.mmenu.configuration.classNames[T].panelNext="Next",_="navbars",(k=c).mmenu.addons[_].prev=function(c,C){var l,e,s,h=k.mmenu._c,z=k('<a class="'+h.prev+" "+h.btn+'" href="#" />').appendTo(c);return this.bind("initNavbar:after",function(c){c.removeClass(h.hasnavbar)}),this.bind("openPanel:start",function(c){c.hasClass(h.vertical)||((l=c.find("."+this.conf.classNames[_].panelPrev)).length||(l=c.children("."+h.navbar).children("."+h.prev)),e=l.attr("href"),s=l.html(),e?z.attr("href",e):z.removeAttr("href"),z[e||s?"removeClass":"addClass"](h.hidden),z.html(s))}),this.bind("initNavbar:after:sr-aria",function(c){var C=c.children("."+h.navbar);this.__sr_aria(C,"hidden",!0)}),this.bind("openPanel:start:sr-aria",function(c){this.__sr_aria(z,"hidden",z.hasClass(h.hidden)),this.__sr_aria(z,"owns",(z.attr("href")||"").slice(1))}),-1},k.mmenu.configuration.classNames[_].panelPrev="Prev",(y=c).mmenu.addons.navbars.searchfield=function(c,C){var l=y.mmenu._c,e=y('<div class="'+l.search+'" />').appendTo(c);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=e,0},w="navbars",(b=c).mmenu.addons[w].title=function(c,C){var l,e,s,h,z=b.mmenu._c,t=b('<a class="'+z.title+'" />').appendTo(c);return this.bind("openPanel:start",function(c){c.hasClass(z.vertical)||((s=c.find("."+this.conf.classNames[w].panelTitle)).length||(s=c.children("."+z.navbar).children("."+z.title)),l=s.attr("href"),e=s.html()||C.title,l?t.attr("href",l):t.removeAttr("href"),t[l||e?"removeClass":"addClass"](z.hidden),t.html(e))}),this.bind("openPanel:start:sr-aria",function(c){if(this.opts.screenReader.text&&(h=h||this.$menu.children("."+z.navbars+"-top, ."+z.navbars+"-bottom").children("."+z.navbar).children("."+z.prev)).length){var C=!0;"parent"==this.opts.navbar.titleLink&&(C=!h.hasClass(z.hidden)),this.__sr_aria(t,"hidden",C)}}),0},b.mmenu.configuration.classNames[w].panelTitle="Title",function(t){function M(c){e&&e.length&&e.is(":visible")&&o.$html.add(o.$body).animate({scrollTop:e.offset().top+c}),e=!1}function i(c){try{return!("#"==c||"#"!=c.slice(0,1)||!o.$page.find(c).length)}catch(c){return!1}}var l="mmenu",a="pageScroll";t[l].addons[a]={setup:function(){var e=this,c=this.opts[a],s=this.conf[a];if(o=t[l].glbl,"boolean"==typeof c&&(c={scroll:c}),(c=this.opts[a]=t.extend(!0,{},t[l].defaults[a],c)).scroll&&this.bind("close:finish",function(){M(s.scrollOffset)}),c.update){var C=[],h=[];(e=this).bind("initListview:after",function(c){e.__filterListItemAnchors(c.find("."+n.listview).children("li")).each(function(){var c=t(this).attr("href");i(c)&&C.push(c)}),h=C.reverse()});var z=-1;o.$wndw.on(r.scroll+"-"+a,function(c){for(var C=o.$wndw.scrollTop(),l=0;l<h.length;l++)if(t(h[l]).offset().top<C+s.updateOffset){z!==l&&(z=l,e.setSelected(e.__filterListItemAnchors(e.$pnls.children("."+n.opened).find("."+n.listview).children("li")).filter('[href="'+h[l]+'"]').parent()));break}})}},add:function(){n=t[l]._c,t[l]._d,r=t[l]._e},clickAnchor:function(c,C){if(e=!1,C&&this.opts[a].scroll&&this.opts.offCanvas&&o.$page&&o.$page.length){var l=c.attr("href");i(l)&&(e=t(l),o.$html.hasClass(n.mm("widescreen"))&&M(this.conf[a].scrollOffset))}}},t[l].defaults[a]={scroll:!1,update:!1};var n,r,o,e=!(t[l].configuration[a]={scrollOffset:0,updateOffset:50})}(c),(e=c)[g="mmenu"].addons.rtl={setup:function(){var c=this.opts.rtl;this.conf.rtl,m=e[g].glbl,"object"!=typeof c&&(c={use:c}),"boolean"!=typeof(c=this.opts.rtl=e.extend(!0,{},e[g].defaults.rtl,c)).use&&(c.use="rtl"==(m.$html.attr("dir")||"").toLowerCase()),c.use&&this.bind("initMenu:after",function(){this.$menu.addClass(p.rtl)})},add:function(){p=e[g]._c,e[g]._d,e[g]._e,p.add("rtl")},clickAnchor:function(c,C){}},e[g].defaults.rtl={use:"detect"},u="searchfield",(L=c)[d="mmenu"].addons[u]={setup:function(){var r=this,o=this.opts[u],i=this.conf[u];L[d].glbl,"boolean"==typeof o&&(o={add:o}),"object"!=typeof o&&(o={}),"boolean"==typeof o.resultsPanel&&(o.resultsPanel={add:o.resultsPanel}),o=this.opts[u]=L.extend(!0,{},L[d].defaults[u],o),i=this.conf[u]=L.extend(!0,{},L[d].configuration[u],i),this.bind("close:start",function(){this.$menu.find("."+H.search).find("input").blur()}),this.bind("initPanels:after",function(c){if(o.add){var C;switch(o.addTo){case"panels":C=c;break;default:C=this.$menu.find(o.addTo)}if(C.each(function(){var c=L(this);if(!c.is("."+H.panel)||!c.is("."+H.vertical)){if(!c.children("."+H.search).length){var C,l=r.__valueOrFn(i.clear,c),e=r.__valueOrFn(i.form,c),s=r.__valueOrFn(i.input,c),h=r.__valueOrFn(i.submit,c),z=L("<"+(e?"form":"div")+' class="'+H.search+'" />'),t=L('<input placeholder="'+L[d].i18n(o.placeholder)+'" type="text" autocomplete="off" />');if(z.append(t),s)for(C in s)t.attr(C,s[C]);if(l&&L('<a class="'+H.btn+" "+H.clear+'" href="#" />').appendTo(z).on(f.click+"-searchfield",function(c){c.preventDefault(),t.val("").trigger(f.keyup+"-searchfield")}),e){for(C in e)z.attr(C,e[C]);h&&!l&&L('<a class="'+H.btn+" "+H.next+'" href="#" />').appendTo(z).on(f.click+"-searchfield",function(c){c.preventDefault(),z.submit()})}c.hasClass(H.search)?c.replaceWith(z):c.prepend(z).addClass(H.hassearch)}if(o.noResults&&(c.closest("."+H.panel).length||(c=r.$pnls.children("."+H.panel).first()),!c.children("."+H.noresultsmsg).length)){var M=c.children("."+H.listview).first();L('<div class="'+H.noresultsmsg+" "+H.hidden+'" />').append(L[d].i18n(o.noResults))[M.length?"insertAfter":"prependTo"](M.length?M:c)}}}),o.search){if(o.resultsPanel.add){o.showSubPanels=!1;var n=this.$pnls.children("."+H.resultspanel);n.length||(n=L('<div class="'+H.resultspanel+" "+H.noanimation+" "+H.hidden+'" />').appendTo(this.$pnls).append('<div class="'+H.navbar+" "+H.hidden+'"><a class="'+H.title+'">'+L[d].i18n(o.resultsPanel.title)+"</a></div>").append('<ul class="'+H.listview+'" />').append(this.$pnls.find("."+H.noresultsmsg).first().clone()),this._initPanel(n))}this.$menu.find("."+H.search).each(function(){var l,e,c=L(this),s=c.closest("."+H.panel).length;function C(){var c=h.val().toLowerCase();if(c!=i){if(i=c,o.resultsPanel.add&&n.children("."+H.listview).empty(),l.scrollTop(0),M.add(t).addClass(H.hidden).find("."+H.fullsubopensearch).removeClass(H.fullsubopen+" "+H.fullsubopensearch),M.each(function(){var c=L(this),C="a";(o.showTextItems||o.showSubPanels&&c.find("."+H.next))&&(C="a, span"),-1<(c.data(S.searchtext)||c.children(C).not("."+H.next).text()).toLowerCase().indexOf(i)&&c.add(c.prevAll("."+H.divider).first()).removeClass(H.hidden)}),o.showSubPanels&&l.each(function(c){var C=L(this);r.__filterListItems(C.find("."+H.listview).children()).each(function(){var c=L(this),C=c.data(S.child);c.removeClass(H.nosubresults),C&&C.find("."+H.listview).children().removeClass(H.hidden)})}),o.resultsPanel.add)if(""===i)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+H.subopened).last());else{var C=L();l.each(function(){var c=r.__filterListItems(L(this).find("."+H.listview).children()).not("."+H.hidden).clone(!0);c.length&&(o.resultsPanel.dividers&&(C=C.add('<li class="'+H.divider+'">'+L(this).children("."+H.navbar).children("."+H.title).text()+"</li>")),c.children("."+H.mm("toggle")+", ."+H.mm("check")).remove(),C=C.add(c))}),C.find("."+H.next).remove(),n.children("."+H.listview).append(C),this.openPanel(n)}else L(l.get().reverse()).each(function(c){var C=L(this),l=C.data(S.parent);l&&(r.__filterListItems(C.find("."+H.listview).children()).length?(l.hasClass(H.hidden)&&l.children("."+H.next).not("."+H.fullsubopen).addClass(H.fullsubopen).addClass(H.fullsubopensearch),l.removeClass(H.hidden).removeClass(H.nosubresults).prevAll("."+H.divider).first().removeClass(H.hidden)):s||(C.hasClass(H.opened)&&setTimeout(function(){r.openPanel(l.closest("."+H.panel))},(c+1)*(1.5*r.conf.openingInterval)),l.addClass(H.nosubresults)))});e.find("."+H.noresultsmsg)[M.not("."+H.hidden).length?"addClass":"removeClass"](H.hidden),this.trigger("updateListview")}}e=s?l=c.closest("."+H.panel):(l=L("."+H.panel,r.pnls),r.$menu),o.resultsPanel.add&&(l=l.not(n));var h=c.children("input"),z=r.__findAddBack(l,"."+H.listview).children("li"),t=z.filter("."+H.divider),M=r.__filterListItems(z),i="";h.off(f.keyup+"-"+u+" "+f.change+"-"+u).on(f.keyup+"-"+u,function(c){!function(c){switch(c){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}(c.keyCode)&&C.call(r)}).on(f.change+"-"+u,function(c){C.call(r)});var a=c.children("."+H.btn);a.length&&h.on(f.keyup+"-"+u,function(c){a[h.val().length?"removeClass":"addClass"](H.hidden)}),h.trigger(f.keyup+"-"+u)})}}})},add:function(){H=L[d]._c,S=L[d]._d,f=L[d]._e,H.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),S.add("searchtext"),f.add("change keyup")},clickAnchor:function(c,C){}},L[d].defaults[u]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},L[d].configuration[u]={clear:!1,form:!1,input:!1,submit:!1},V="setSelected",(n=c)[v="mmenu"].addons[V]={setup:function(){var l=this,c=this.opts[V];if(this.conf[V],n[v].glbl,"boolean"==typeof c&&(c={hover:c,parent:c}),"object"!=typeof c&&(c={}),"detect"==(c=this.opts[V]=n.extend(!0,{},n[v].defaults[V],c)).current){var e=function(c){c=c.split("?")[0].split("#")[0];var C=l.$menu.find('a[href="'+c+'"], a[href="'+c+'/"]');C.length?l.setSelected(C.parent(),!0):(c=c.split("/").slice(0,-1)).length&&e(c.join("/"))};this.bind("initMenu:after",function(){e(window.location.href)})}else c.current||this.bind("initListview:after",function(c){this.$pnls.find("."+r.listview).children("."+r.selected).removeClass(r.selected)});c.hover&&this.bind("initMenu:after",function(){this.$menu.addClass(r.hoverselected)}),c.parent&&(this.bind("openPanel:finish",function(c){this.$pnls.find("."+r.listview).find("."+r.next).removeClass(r.selected);for(var C=c.data(o.parent);C;)C.not("."+r.vertical).children("."+r.next).addClass(r.selected),C=C.closest("."+r.panel).data(o.parent)}),this.bind("initMenu:after",function(){this.$menu.addClass(r.parentselected)}))},add:function(){r=n[v]._c,o=n[v]._d,n[v]._e,r.add("hoverselected parentselected")},clickAnchor:function(c,C){}},n[v].defaults[V]={current:!0,hover:!1,parent:!1},a="sectionIndexer",(t=c)[i="mmenu"].addons[a]={setup:function(){var z=this,e=this.opts[a];this.conf[a],t[i].glbl,"boolean"==typeof e&&(e={add:e}),"object"!=typeof e&&(e={}),e=this.opts[a]=t.extend(!0,{},t[i].defaults[a],e),this.bind("initPanels:after",function(c){if(e.add){var C;switch(e.addTo){case"panels":C=c;break;default:C=t(e.addTo,this.$menu).filter("."+M.panel)}function l(c){c=c||this.$pnls.children("."+M.opened),this.$menu[(c.hasClass(M.hasindexer)?"add":"remove")+"Class"](M.hasindexer)}C.find("."+M.divider).closest("."+M.panel).addClass(M.hasindexer),this.$indexer||(this.$indexer=t('<div class="'+M.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(s.mouseover+"-"+a+" "+s.touchstart+"-"+a,function(c){var C=t(this).attr("href").slice(1),l=z.$pnls.children("."+M.opened),e=l.find("."+M.listview),s=-1,h=l.scrollTop();l.scrollTop(0),e.children("."+M.divider).not("."+M.hidden).each(function(){s<0&&C==t(this).text().slice(0,1).toLowerCase()&&(s=t(this).position().top)}),l.scrollTop(-1<s?s:h)})),this.bind("openPanel:start",l),this.bind("initPanels:after",l)}})},add:function(){M=t[i]._c,t[i]._d,s=t[i]._e,M.add("indexer hasindexer"),s.add("mouseover")},clickAnchor:function(c,C){if(c.parent().is("."+M.indexer))return!0}},t[i].defaults[a]={add:!1,addTo:"panels"},l="toggles",(h=c)[C="mmenu"].addons[l]={setup:function(){var s=this;this.opts[l],this.conf[l],h[C].glbl,this.bind("initListview:after",function(c){this.__refactorClass(c.find("input"),this.conf.classNames[l].toggle,"toggle"),this.__refactorClass(c.find("input"),this.conf.classNames[l].check,"check"),c.find("input."+z.toggle+", input."+z.check).each(function(){var c=h(this),C=c.closest("li"),l=c.hasClass(z.toggle)?"toggle":"check",e=c.attr("id")||s.__getUniqueId();C.children('label[for="'+e+'"]').length||(c.attr("id",e),C.prepend(c),h('<label for="'+e+'" class="'+z[l]+'"></label>').insertBefore(C.children("a, span").last()))})})},add:function(){z=h[C]._c,h[C]._d,h[C]._e,z.add("toggle check")},clickAnchor:function(c,C){}},h[C].configuration.classNames[l]={toggle:"Toggle",check:"Check"},!0}),function(V){"use strict";var L;if(void 0===L){var c=V('<div style="background:none;display:none;"/>').appendTo("body");L=c.css("backgroundColor"),c.remove()}V.fn.rippleEffect=function(c){var v=V.extend({},V.fn.rippleEffect.defaults,c);return this.each(function(){V(this).on("click",function(c){var C,l,e,s,h,z,t,M,i=V(this),a=c.type;function n(){return""!=v.inkColor?v.inkColor:function(c,C){var l,e,s,h;l=function(c,l){return function c(C){return C.css("backgroundColor")==L?C.is("body")?l||L:c(C.parent()):C.css("backgroundColor")}(c)}(c,C),e=V.fn.rippleEffect.colorToHex(l),h=(s=V.fn.rippleEffect.getLuminationValue(e))<=239?s<=70?V.fn.rippleEffect.getColorLuminance(e,.8):V.fn.rippleEffect.getColorLuminance(e,.2):V.fn.rippleEffect.getColorLuminance(e,-.15);return h}(M,v.inkDefaultColor)}if(M=i,""!=v.appendInkTo&&(M=i.closest(v.appendInkTo)),0==M.find("."+v.inkClass).length&&M.append('<span class="'+v.inkContainerClass+'"><span class="'+v.inkClass+'"></span></span>'),(t=M.find("."+v.inkContainerClass+" >  ."+v.inkClass)).removeClass("animate"),!t.height()&&!t.width()){if(h=Math.max(M.outerWidth(),M.outerHeight()),void 0!==i.data("ripple")&&""!=i.data("ripple"))z=i.data("ripple");else if(void 0!==i.data("ripple-getcolorfromid")&&""!=i.data("ripple-getcolorfromid")){var r=i.data("ripple-getcolorfromid");z=0<V(r).length?V(r).css("background-color"):n()}else z=n();t.css({height:h,width:h,"background-color":z})}if("click"===a)C=c.pageX,l=c.pageY;else if("touchstart"===a){var o=c.originalEvent.touches[0]||c.originalEvent.changedTouches[0];C=o.pageX,l=o.pageY}e=C-M.offset().left-t.width()/2,s=l-M.offset().top-t.height()/2,t.css({top:s+"px",left:e+"px"}).addClass("animate"),setTimeout(function(){t.removeClass("animate")},800)})})},V.fn.rippleEffect.defaults={inkContainerClass:"ripple",inkClass:"ink",inkDefaultColor:"#F0F0F0",inkColor:"",appendInkTo:""},V.fn.rippleEffect.getLuminationValue=function(c){c=c.substring(1);var C=parseInt(c,16);return.2126*(C>>16&255)+.7152*(C>>8&255)+.0722*(C>>0&255)},V.fn.rippleEffect.getColorLuminance=function(c,C){(c=String(c).replace(/[^0-9a-f]/gi,"")).length<6&&(c=c[0]+c[0]+c[1]+c[1]+c[2]+c[2]),C=C||0;var l,e,s="#";for(e=0;e<3;e++)l=parseInt(c.substr(2*e,2),16),s+=("00"+(l=Math.round(Math.min(Math.max(0,l+l*C),255)).toString(16))).substr(l.length);return s},V.fn.rippleEffect.colorToHex=function(c){return"#"===c.substr(0,1)?color:(c=c.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===c.length?"#"+("0"+parseInt(c[1],10).toString(16)).slice(-2)+("0"+parseInt(c[2],10).toString(16)).slice(-2)+("0"+parseInt(c[3],10).toString(16)).slice(-2):""},V("[data-ripple]").rippleEffect()}(jQuery),function h(z,t,M){function i(l,c){if(!t[l]){if(!z[l]){var C="function"==typeof require&&require;if(!c&&C)return C(l,!0);if(a)return a(l,!0);var e=new Error("Cannot find module '"+l+"'");throw e.code="MODULE_NOT_FOUND",e}var s=t[l]={exports:{}};z[l][0].call(s.exports,function(c){var C=z[l][1][c];return i(C||c)},s,s.exports,h,z,t,M)}return t[l].exports}for(var a="function"==typeof require&&require,c=0;c<M.length;c++)i(M[c]);return i}({1:[function(c,C,l){"use strict";function e(c){c.fn.perfectScrollbar=function(l){return this.each(function(){if("object"==typeof l||void 0===l){var c=l;h.get(this)||s.initialize(this,c)}else{var C=l;"update"===C?s.update(this):"destroy"===C&&s.destroy(this)}})}}var s=c("../main"),h=c("../plugin/instances");if("function"==typeof define&&define.amd)define(["jquery"],e);else{var z=window.jQuery?window.jQuery:window.$;void 0!==z&&e(z)}C.exports=e},{"../main":7,"../plugin/instances":18}],2:[function(c,C,l){"use strict";l.add=function(c,C){c.classList?c.classList.add(C):function(c,C){var l=c.className.split(" ");l.indexOf(C)<0&&l.push(C),c.className=l.join(" ")}(c,C)},l.remove=function(c,C){c.classList?c.classList.remove(C):function(c,C){var l=c.className.split(" "),e=l.indexOf(C);0<=e&&l.splice(e,1),c.className=l.join(" ")}(c,C)},l.list=function(c){return c.classList?Array.prototype.slice.apply(c.classList):c.className.split(" ")}},{}],3:[function(c,C,l){"use strict";var e={e:function(c,C){var l=document.createElement(c);return l.className=C,l},appendTo:function(c,C){return C.appendChild(c),c}};e.css=function(c,C,l){return"object"==typeof C?function(c,C){for(var l in C){var e=C[l];"number"==typeof e&&(e=e.toString()+"px"),c.style[l]=e}return c}(c,C):void 0===l?function(c,C){return window.getComputedStyle(c)[C]}(c,C):function(c,C,l){return"number"==typeof l&&(l=l.toString()+"px"),c.style[C]=l,c}(c,C,l)},e.matches=function(c,C){return void 0!==c.matches?c.matches(C):void 0!==c.matchesSelector?c.matchesSelector(C):void 0!==c.webkitMatchesSelector?c.webkitMatchesSelector(C):void 0!==c.mozMatchesSelector?c.mozMatchesSelector(C):void 0!==c.msMatchesSelector?c.msMatchesSelector(C):void 0},e.remove=function(c){void 0!==c.remove?c.remove():c.parentNode&&c.parentNode.removeChild(c)},e.queryChildren=function(c,C){return Array.prototype.filter.call(c.childNodes,function(c){return e.matches(c,C)})},C.exports=e},{}],4:[function(c,C,l){"use strict";function e(c){this.element=c,this.events={}}e.prototype.bind=function(c,C){void 0===this.events[c]&&(this.events[c]=[]),this.events[c].push(C),this.element.addEventListener(c,C,!1)},e.prototype.unbind=function(C,l){var e=void 0!==l;this.events[C]=this.events[C].filter(function(c){return!(!e||c===l)||(this.element.removeEventListener(C,c,!1),!1)},this)},e.prototype.unbindAll=function(){for(var c in this.events)this.unbind(c)};function s(){this.eventElements=[]}s.prototype.eventElement=function(C){var c=this.eventElements.filter(function(c){return c.element===C})[0];return void 0===c&&(c=new e(C),this.eventElements.push(c)),c},s.prototype.bind=function(c,C,l){this.eventElement(c).bind(C,l)},s.prototype.unbind=function(c,C,l){this.eventElement(c).unbind(C,l)},s.prototype.unbindAll=function(){for(var c=0;c<this.eventElements.length;c++)this.eventElements[c].unbindAll()},s.prototype.once=function(c,C,l){var e=this.eventElement(c),s=function(c){e.unbind(C,s),l(c)};e.bind(C,s)},C.exports=s},{}],5:[function(c,C,l){"use strict";function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}C.exports=function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},{}],6:[function(c,C,l){"use strict";var s=c("./class"),e=c("./dom"),h=l.toInt=function(c){return parseInt(c,10)||0},z=l.clone=function(c){if(c){if(c.constructor===Array)return c.map(z);if("object"!=typeof c)return c;var C={};for(var l in c)C[l]=z(c[l]);return C}return null};l.extend=function(c,C){var l=z(c);for(var e in C)l[e]=z(C[e]);return l},l.isEditable=function(c){return e.matches(c,"input,[contenteditable]")||e.matches(c,"select,[contenteditable]")||e.matches(c,"textarea,[contenteditable]")||e.matches(c,"button,[contenteditable]")},l.removePsClasses=function(c){for(var C=s.list(c),l=0;l<C.length;l++){var e=C[l];0===e.indexOf("ps-")&&s.remove(c,e)}},l.outerWidth=function(c){return h(e.css(c,"width"))+h(e.css(c,"paddingLeft"))+h(e.css(c,"paddingRight"))+h(e.css(c,"borderLeftWidth"))+h(e.css(c,"borderRightWidth"))},l.startScrolling=function(c,C){s.add(c,"ps-in-scrolling"),void 0!==C?s.add(c,"ps-"+C):(s.add(c,"ps-x"),s.add(c,"ps-y"))},l.stopScrolling=function(c,C){s.remove(c,"ps-in-scrolling"),void 0!==C?s.remove(c,"ps-"+C):(s.remove(c,"ps-x"),s.remove(c,"ps-y"))},l.env={isWebKit:"WebkitAppearance"in document.documentElement.style,supportsTouch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,supportsIePointer:null!==window.navigator.msMaxTouchPoints}},{"./class":2,"./dom":3}],7:[function(c,C,l){"use strict";var e=c("./plugin/destroy"),s=c("./plugin/initialize"),h=c("./plugin/update");C.exports={initialize:s,update:h,destroy:e}},{"./plugin/destroy":9,"./plugin/initialize":17,"./plugin/update":21}],8:[function(c,C,l){"use strict";C.exports={handlers:["click-rail","drag-scrollbar","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1,theme:"default"}},{}],9:[function(c,C,l){"use strict";var e=c("../lib/helper"),s=c("../lib/dom"),h=c("./instances");C.exports=function(c){var C=h.get(c);C&&(C.event.unbindAll(),s.remove(C.scrollbarX),s.remove(C.scrollbarY),s.remove(C.scrollbarXRail),s.remove(C.scrollbarYRail),e.removePsClasses(c),h.remove(c))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18}],10:[function(c,C,l){"use strict";var e=c("../instances"),h=c("../update-geometry"),z=c("../update-scroll");C.exports=function(c){!function(l,e){function s(c){return c.getBoundingClientRect()}function c(c){c.stopPropagation()}e.event.bind(e.scrollbarY,"click",c),e.event.bind(e.scrollbarYRail,"click",function(c){var C=c.pageY-window.pageYOffset-s(e.scrollbarYRail).top>e.scrollbarYTop?1:-1;z(l,"top",l.scrollTop+C*e.containerHeight),h(l),c.stopPropagation()}),e.event.bind(e.scrollbarX,"click",c),e.event.bind(e.scrollbarXRail,"click",function(c){var C=c.pageX-window.pageXOffset-s(e.scrollbarXRail).left>e.scrollbarXLeft?1:-1;z(l,"left",l.scrollLeft+C*e.containerWidth),h(l),c.stopPropagation()})}(c,e.get(c))}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],11:[function(c,C,l){"use strict";function e(s,h){function C(c){(function(c){var C=z+c*h.railXRatio,l=Math.max(0,h.scrollbarXRail.getBoundingClientRect().left)+h.railXRatio*(h.railXWidth-h.scrollbarXWidth);h.scrollbarXLeft=C<0?0:l<C?l:C;var e=t.toInt(h.scrollbarXLeft*(h.contentWidth-h.containerWidth)/(h.containerWidth-h.railXRatio*h.scrollbarXWidth))-h.negativeScrollAdjustment;a(s,"left",e)})(c.pageX-e),i(s),c.stopPropagation(),c.preventDefault()}function l(){t.stopScrolling(s,"x"),h.event.unbind(h.ownerDocument,"mousemove",C)}var z=null,e=null;h.event.bind(h.scrollbarX,"mousedown",function(c){e=c.pageX,z=t.toInt(M.css(h.scrollbarX,"left"))*h.railXRatio,t.startScrolling(s,"x"),h.event.bind(h.ownerDocument,"mousemove",C),h.event.once(h.ownerDocument,"mouseup",l),c.stopPropagation(),c.preventDefault()})}function s(s,h){function C(c){(function(c){var C=z+c*h.railYRatio,l=Math.max(0,h.scrollbarYRail.getBoundingClientRect().top)+h.railYRatio*(h.railYHeight-h.scrollbarYHeight);h.scrollbarYTop=C<0?0:l<C?l:C;var e=t.toInt(h.scrollbarYTop*(h.contentHeight-h.containerHeight)/(h.containerHeight-h.railYRatio*h.scrollbarYHeight));a(s,"top",e)})(c.pageY-e),i(s),c.stopPropagation(),c.preventDefault()}function l(){t.stopScrolling(s,"y"),h.event.unbind(h.ownerDocument,"mousemove",C)}var z=null,e=null;h.event.bind(h.scrollbarY,"mousedown",function(c){e=c.pageY,z=t.toInt(M.css(h.scrollbarY,"top"))*h.railYRatio,t.startScrolling(s,"y"),h.event.bind(h.ownerDocument,"mousemove",C),h.event.once(h.ownerDocument,"mouseup",l),c.stopPropagation(),c.preventDefault()})}var t=c("../../lib/helper"),M=c("../../lib/dom"),h=c("../instances"),i=c("../update-geometry"),a=c("../update-scroll");C.exports=function(c){var C=h.get(c);e(c,C),s(c,C)}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],12:[function(c,C,l){"use strict";function e(h,z){var t=!1;z.event.bind(h,"mouseenter",function(){t=!0}),z.event.bind(h,"mouseleave",function(){t=!1});z.event.bind(z.ownerDocument,"keydown",function(c){if(!(c.isDefaultPrevented&&c.isDefaultPrevented()||c.defaultPrevented)){var C=i.matches(z.scrollbarX,":focus")||i.matches(z.scrollbarY,":focus");if(t||C){var l=document.activeElement?document.activeElement:z.ownerDocument.activeElement;if(l){if("IFRAME"===l.tagName)l=l.contentDocument.activeElement;else for(;l.shadowRoot;)l=l.shadowRoot.activeElement;if(M.isEditable(l))return}var e=0,s=0;switch(c.which){case 37:e=c.metaKey?-z.contentWidth:c.altKey?-z.containerWidth:-30;break;case 38:s=c.metaKey?z.contentHeight:c.altKey?z.containerHeight:30;break;case 39:e=c.metaKey?z.contentWidth:c.altKey?z.containerWidth:30;break;case 40:s=c.metaKey?-z.contentHeight:c.altKey?-z.containerHeight:-30;break;case 33:s=90;break;case 32:s=c.shiftKey?90:-90;break;case 34:s=-90;break;case 35:s=c.ctrlKey?-z.contentHeight:-z.containerHeight;break;case 36:s=c.ctrlKey?h.scrollTop:z.containerHeight;break;default:return}n(h,"top",h.scrollTop-s),n(h,"left",h.scrollLeft+e),a(h),function(c,C){var l=h.scrollTop;if(0===c){if(!z.scrollbarYActive)return!1;if(0===l&&0<C||l>=z.contentHeight-z.containerHeight&&C<0)return!z.settings.wheelPropagation}var e=h.scrollLeft;if(0===C){if(!z.scrollbarXActive)return!1;if(0===e&&c<0||e>=z.contentWidth-z.containerWidth&&0<c)return!z.settings.wheelPropagation}return!0}(e,s)&&c.preventDefault()}}})}var M=c("../../lib/helper"),i=c("../../lib/dom"),s=c("../instances"),a=c("../update-geometry"),n=c("../update-scroll");C.exports=function(c){e(c,s.get(c))}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],13:[function(c,C,l){"use strict";function e(h,s){function c(c){var C=function(c){var C=c.deltaX,l=-1*c.deltaY;return void 0!==C&&void 0!==l||(C=-1*c.wheelDeltaX/6,l=c.wheelDeltaY/6),c.deltaMode&&1===c.deltaMode&&(C*=10,l*=10),C!=C&&l!=l&&(C=0,l=c.wheelDelta),c.shiftKey?[-l,-C]:[C,l]}(c),l=C[0],e=C[1];!function(c,C){var l=h.querySelector("textarea:hover, select[multiple]:hover, .ps-child:hover");if(l){if(!window.getComputedStyle(l).overflow.match(/(scroll|auto)/))return!1;var e=l.scrollHeight-l.clientHeight;if(0<e&&!(0===l.scrollTop&&0<C||l.scrollTop===e&&C<0))return!0;var s=l.scrollLeft-l.clientWidth;if(0<s&&!(0===l.scrollLeft&&c<0||l.scrollLeft===s&&0<c))return!0}return!1}(l,e)&&(z=!1,s.settings.useBothWheelAxes?s.scrollbarYActive&&!s.scrollbarXActive?(M(h,"top",e?h.scrollTop-e*s.settings.wheelSpeed:h.scrollTop+l*s.settings.wheelSpeed),z=!0):s.scrollbarXActive&&!s.scrollbarYActive&&(M(h,"left",l?h.scrollLeft+l*s.settings.wheelSpeed:h.scrollLeft-e*s.settings.wheelSpeed),z=!0):(M(h,"top",h.scrollTop-e*s.settings.wheelSpeed),M(h,"left",h.scrollLeft+l*s.settings.wheelSpeed)),t(h),(z=z||function(c,C){var l=h.scrollTop;if(0===c){if(!s.scrollbarYActive)return!1;if(0===l&&0<C||l>=s.contentHeight-s.containerHeight&&C<0)return!s.settings.wheelPropagation}var e=h.scrollLeft;if(0===C){if(!s.scrollbarXActive)return!1;if(0===e&&c<0||e>=s.contentWidth-s.containerWidth&&0<c)return!s.settings.wheelPropagation}return!0}(l,e))&&(c.stopPropagation(),c.preventDefault()))}var z=!1;void 0!==window.onwheel?s.event.bind(h,"wheel",c):void 0!==window.onmousewheel&&s.event.bind(h,"mousewheel",c)}var s=c("../instances"),t=c("../update-geometry"),M=c("../update-scroll");C.exports=function(c){e(c,s.get(c))}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],14:[function(c,C,l){"use strict";var e=c("../instances"),s=c("../update-geometry");C.exports=function(c){!function(c,C){C.event.bind(c,"scroll",function(){s(c)})}(c,e.get(c))}},{"../instances":18,"../update-geometry":19}],15:[function(c,C,l){"use strict";function e(t,c){function M(){i&&(clearInterval(i),i=null),r.stopScrolling(t)}var i=null,a={top:0,left:0},n=!1;c.event.bind(c.ownerDocument,"selectionchange",function(){t.contains(function(){var c=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"";return 0===c.toString().length?null:c.getRangeAt(0).commonAncestorContainer}())?n=!0:(n=!1,M())}),c.event.bind(window,"mouseup",function(){n&&(n=!1,M())}),c.event.bind(window,"keyup",function(){n&&(n=!1,M())}),c.event.bind(window,"mousemove",function(c){if(n){var C=c.pageX,l=c.pageY,e=t.offsetLeft,s=t.offsetLeft+t.offsetWidth,h=t.offsetTop,z=t.offsetTop+t.offsetHeight;C<e+3?(a.left=-5,r.startScrolling(t,"x")):s-3<C?(a.left=5,r.startScrolling(t,"x")):a.left=0,l<h+3?(a.top=h+3-l<5?-5:-20,r.startScrolling(t,"y")):z-3<l?(a.top=l-z+3<5?5:20,r.startScrolling(t,"y")):a.top=0,0===a.top&&0===a.left?M():i=i||setInterval(function(){return o.get(t)?(V(t,"top",t.scrollTop+a.top),V(t,"left",t.scrollLeft+a.left),void v(t)):void clearInterval(i)},50)}})}var r=c("../../lib/helper"),o=c("../instances"),v=c("../update-geometry"),V=c("../update-scroll");C.exports=function(c){e(c,o.get(c))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],16:[function(c,C,l){"use strict";function e(t,M,c,C){function i(c,C){d(t,"top",t.scrollTop-C),d(t,"left",t.scrollLeft-c),f(t)}function l(){L=!0}function e(){L=!1}function a(c){return c.targetTouches?c.targetTouches[0]:c}function n(c){return!(!c.targetTouches||1!==c.targetTouches.length)||!(!c.pointerType||"mouse"===c.pointerType||c.pointerType===c.MSPOINTER_TYPE_MOUSE)}function r(c){if(n(c)){H=!0;var C=a(c);o.pageX=C.pageX,o.pageY=C.pageY,v=(new Date).getTime(),null!==z&&clearInterval(z),c.stopPropagation()}}function s(c){if(!H&&M.settings.swipePropagation&&r(c),!L&&H&&n(c)){var C=a(c),l={pageX:C.pageX,pageY:C.pageY},e=l.pageX-o.pageX,s=l.pageY-o.pageY;i(e,s),o=l;var h=(new Date).getTime(),z=h-v;0<z&&(V.x=e/z,V.y=s/z,v=h),function(c,C){var l=t.scrollTop,e=t.scrollLeft,s=Math.abs(c),h=Math.abs(C);if(s<h){if(C<0&&l===M.contentHeight-M.containerHeight||0<C&&0===l)return!M.settings.swipePropagation}else if(h<s&&(c<0&&e===M.contentWidth-M.containerWidth||0<c&&0===e))return!M.settings.swipePropagation;return!0}(e,s)&&(c.stopPropagation(),c.preventDefault())}}function h(){!L&&H&&(H=!1,clearInterval(z),z=setInterval(function(){return S.get(t)&&(V.x||V.y)?Math.abs(V.x)<.01&&Math.abs(V.y)<.01?void clearInterval(z):(i(30*V.x,30*V.y),V.x*=.8,void(V.y*=.8)):void clearInterval(z)},10))}var o={},v=0,V={},z=null,L=!1,H=!1;c&&(M.event.bind(window,"touchstart",l),M.event.bind(window,"touchend",e),M.event.bind(t,"touchstart",r),M.event.bind(t,"touchmove",s),M.event.bind(t,"touchend",h)),C&&(window.PointerEvent?(M.event.bind(window,"pointerdown",l),M.event.bind(window,"pointerup",e),M.event.bind(t,"pointerdown",r),M.event.bind(t,"pointermove",s),M.event.bind(t,"pointerup",h)):window.MSPointerEvent&&(M.event.bind(window,"MSPointerDown",l),M.event.bind(window,"MSPointerUp",e),M.event.bind(t,"MSPointerDown",r),M.event.bind(t,"MSPointerMove",s),M.event.bind(t,"MSPointerUp",h)))}var s=c("../../lib/helper"),S=c("../instances"),f=c("../update-geometry"),d=c("../update-scroll");C.exports=function(c){(s.env.supportsTouch||s.env.supportsIePointer)&&e(c,S.get(c),s.env.supportsTouch,s.env.supportsIePointer)}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],17:[function(c,C,l){"use strict";var e=c("../lib/helper"),s=c("../lib/class"),h=c("./instances"),z=c("./update-geometry"),t={"click-rail":c("./handler/click-rail"),"drag-scrollbar":c("./handler/drag-scrollbar"),keyboard:c("./handler/keyboard"),wheel:c("./handler/mouse-wheel"),touch:c("./handler/touch"),selection:c("./handler/selection")},M=c("./handler/native-scroll");C.exports=function(C,c){c="object"==typeof c?c:{},s.add(C,"ps-container");var l=h.add(C);l.settings=e.extend(l.settings,c),s.add(C,"ps-theme-"+l.settings.theme),l.settings.handlers.forEach(function(c){t[c](C)}),M(C),z(C)}},{"../lib/class":2,"../lib/helper":6,"./handler/click-rail":10,"./handler/drag-scrollbar":11,"./handler/keyboard":12,"./handler/mouse-wheel":13,"./handler/native-scroll":14,"./handler/selection":15,"./handler/touch":16,"./instances":18,"./update-geometry":19}],18:[function(c,C,l){"use strict";function e(c){function C(){t.add(c,"ps-focus")}function l(){t.remove(c,"ps-focus")}var e,s,h=this;h.settings=z.clone(M),h.containerWidth=null,h.containerHeight=null,h.contentWidth=null,h.contentHeight=null,h.isRtl="rtl"===i.css(c,"direction"),h.isNegativeScroll=(s=c.scrollLeft,c.scrollLeft=-1,e=c.scrollLeft<0,c.scrollLeft=s,e),h.negativeScrollAdjustment=h.isNegativeScroll?c.scrollWidth-c.clientWidth:0,h.event=new a,h.ownerDocument=c.ownerDocument||document,h.scrollbarXRail=i.appendTo(i.e("div","ps-scrollbar-x-rail"),c),h.scrollbarX=i.appendTo(i.e("div","ps-scrollbar-x"),h.scrollbarXRail),h.scrollbarX.setAttribute("tabindex",0),h.event.bind(h.scrollbarX,"focus",C),h.event.bind(h.scrollbarX,"blur",l),h.scrollbarXActive=null,h.scrollbarXWidth=null,h.scrollbarXLeft=null,h.scrollbarXBottom=z.toInt(i.css(h.scrollbarXRail,"bottom")),h.isScrollbarXUsingBottom=h.scrollbarXBottom==h.scrollbarXBottom,h.scrollbarXTop=h.isScrollbarXUsingBottom?null:z.toInt(i.css(h.scrollbarXRail,"top")),h.railBorderXWidth=z.toInt(i.css(h.scrollbarXRail,"borderLeftWidth"))+z.toInt(i.css(h.scrollbarXRail,"borderRightWidth")),i.css(h.scrollbarXRail,"display","block"),h.railXMarginWidth=z.toInt(i.css(h.scrollbarXRail,"marginLeft"))+z.toInt(i.css(h.scrollbarXRail,"marginRight")),i.css(h.scrollbarXRail,"display",""),h.railXWidth=null,h.railXRatio=null,h.scrollbarYRail=i.appendTo(i.e("div","ps-scrollbar-y-rail"),c),h.scrollbarY=i.appendTo(i.e("div","ps-scrollbar-y"),h.scrollbarYRail),h.scrollbarY.setAttribute("tabindex",0),h.event.bind(h.scrollbarY,"focus",C),h.event.bind(h.scrollbarY,"blur",l),h.scrollbarYActive=null,h.scrollbarYHeight=null,h.scrollbarYTop=null,h.scrollbarYRight=z.toInt(i.css(h.scrollbarYRail,"right")),h.isScrollbarYUsingRight=h.scrollbarYRight==h.scrollbarYRight,h.scrollbarYLeft=h.isScrollbarYUsingRight?null:z.toInt(i.css(h.scrollbarYRail,"left")),h.scrollbarYOuterWidth=h.isRtl?z.outerWidth(h.scrollbarY):null,h.railBorderYWidth=z.toInt(i.css(h.scrollbarYRail,"borderTopWidth"))+z.toInt(i.css(h.scrollbarYRail,"borderBottomWidth")),i.css(h.scrollbarYRail,"display","block"),h.railYMarginHeight=z.toInt(i.css(h.scrollbarYRail,"marginTop"))+z.toInt(i.css(h.scrollbarYRail,"marginBottom")),i.css(h.scrollbarYRail,"display",""),h.railYHeight=null,h.railYRatio=null}function s(c){return c.getAttribute("data-ps-id")}var z=c("../lib/helper"),t=c("../lib/class"),M=c("./default-setting"),i=c("../lib/dom"),a=c("../lib/event-manager"),h=c("../lib/guid"),n={};l.add=function(c){var C=h();return function(c,C){c.setAttribute("data-ps-id",C)}(c,C),n[C]=new e(c),n[C]},l.remove=function(c){delete n[s(c)],function(c){c.removeAttribute("data-ps-id")}(c)},l.get=function(c){return n[s(c)]}},{"../lib/class":2,"../lib/dom":3,"../lib/event-manager":4,"../lib/guid":5,"../lib/helper":6,"./default-setting":8}],19:[function(c,C,l){"use strict";function e(c,C){return c.settings.minScrollbarLength&&(C=Math.max(C,c.settings.minScrollbarLength)),c.settings.maxScrollbarLength&&(C=Math.min(C,c.settings.maxScrollbarLength)),C}var s=c("../lib/helper"),h=c("../lib/class"),z=c("../lib/dom"),t=c("./instances"),M=c("./update-scroll");C.exports=function(c){var C,l=t.get(c);l.containerWidth=c.clientWidth,l.containerHeight=c.clientHeight,l.contentWidth=c.scrollWidth,l.contentHeight=c.scrollHeight,c.contains(l.scrollbarXRail)||(0<(C=z.queryChildren(c,".ps-scrollbar-x-rail")).length&&C.forEach(function(c){z.remove(c)}),z.appendTo(l.scrollbarXRail,c)),c.contains(l.scrollbarYRail)||(0<(C=z.queryChildren(c,".ps-scrollbar-y-rail")).length&&C.forEach(function(c){z.remove(c)}),z.appendTo(l.scrollbarYRail,c)),!l.settings.suppressScrollX&&l.containerWidth+l.settings.scrollXMarginOffset<l.contentWidth?(l.scrollbarXActive=!0,l.railXWidth=l.containerWidth-l.railXMarginWidth,l.railXRatio=l.containerWidth/l.railXWidth,l.scrollbarXWidth=e(l,s.toInt(l.railXWidth*l.containerWidth/l.contentWidth)),l.scrollbarXLeft=s.toInt((l.negativeScrollAdjustment+c.scrollLeft)*(l.railXWidth-l.scrollbarXWidth)/(l.contentWidth-l.containerWidth))):l.scrollbarXActive=!1,!l.settings.suppressScrollY&&l.containerHeight+l.settings.scrollYMarginOffset<l.contentHeight?(l.scrollbarYActive=!0,l.railYHeight=l.containerHeight-l.railYMarginHeight,l.railYRatio=l.containerHeight/l.railYHeight,l.scrollbarYHeight=e(l,s.toInt(l.railYHeight*l.containerHeight/l.contentHeight)),l.scrollbarYTop=s.toInt(c.scrollTop*(l.railYHeight-l.scrollbarYHeight)/(l.contentHeight-l.containerHeight))):l.scrollbarYActive=!1,l.scrollbarXLeft>=l.railXWidth-l.scrollbarXWidth&&(l.scrollbarXLeft=l.railXWidth-l.scrollbarXWidth),l.scrollbarYTop>=l.railYHeight-l.scrollbarYHeight&&(l.scrollbarYTop=l.railYHeight-l.scrollbarYHeight),function(c,C){var l={width:C.railXWidth};C.isRtl?l.left=C.negativeScrollAdjustment+c.scrollLeft+C.containerWidth-C.contentWidth:l.left=c.scrollLeft,C.isScrollbarXUsingBottom?l.bottom=C.scrollbarXBottom-c.scrollTop:l.top=C.scrollbarXTop+c.scrollTop,z.css(C.scrollbarXRail,l);var e={top:c.scrollTop,height:C.railYHeight};C.isScrollbarYUsingRight?C.isRtl?e.right=C.contentWidth-(C.negativeScrollAdjustment+c.scrollLeft)-C.scrollbarYRight-C.scrollbarYOuterWidth:e.right=C.scrollbarYRight-c.scrollLeft:C.isRtl?e.left=C.negativeScrollAdjustment+c.scrollLeft+2*C.containerWidth-C.contentWidth-C.scrollbarYLeft-C.scrollbarYOuterWidth:e.left=C.scrollbarYLeft+c.scrollLeft,z.css(C.scrollbarYRail,e),z.css(C.scrollbarX,{left:C.scrollbarXLeft,width:C.scrollbarXWidth-C.railBorderXWidth}),z.css(C.scrollbarY,{top:C.scrollbarYTop,height:C.scrollbarYHeight-C.railBorderYWidth})}(c,l),l.scrollbarXActive?h.add(c,"ps-active-x"):(h.remove(c,"ps-active-x"),l.scrollbarXWidth=0,l.scrollbarXLeft=0,M(c,"left",0)),l.scrollbarYActive?h.add(c,"ps-active-y"):(h.remove(c,"ps-active-y"),l.scrollbarYHeight=0,l.scrollbarYTop=0,M(c,"top",0))}},{"../lib/class":2,"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-scroll":20}],20:[function(c,C,l){"use strict";function s(c){var C=document.createEvent("Event");return C.initEvent(c,!0,!0),C}var h,z,t=c("./instances");C.exports=function(c,C,l){if(void 0===c)throw"You must provide an element to the update-scroll function";if(void 0===C)throw"You must provide an axis to the update-scroll function";if(void 0===l)throw"You must provide a value to the update-scroll function";"top"===C&&l<=0&&(c.scrollTop=l=0,c.dispatchEvent(s("ps-y-reach-start"))),"left"===C&&l<=0&&(c.scrollLeft=l=0,c.dispatchEvent(s("ps-x-reach-start")));var e=t.get(c);"top"===C&&l>=e.contentHeight-e.containerHeight&&((l=e.contentHeight-e.containerHeight)-c.scrollTop<=1?l=c.scrollTop:c.scrollTop=l,c.dispatchEvent(s("ps-y-reach-end"))),"left"===C&&l>=e.contentWidth-e.containerWidth&&((l=e.contentWidth-e.containerWidth)-c.scrollLeft<=1?l=c.scrollLeft:c.scrollLeft=l,c.dispatchEvent(s("ps-x-reach-end"))),h=h||c.scrollTop,z=z||c.scrollLeft,"top"===C&&l<h&&c.dispatchEvent(s("ps-scroll-up")),"top"===C&&h<l&&c.dispatchEvent(s("ps-scroll-down")),"left"===C&&l<z&&c.dispatchEvent(s("ps-scroll-left")),"left"===C&&z<l&&c.dispatchEvent(s("ps-scroll-right")),"top"===C&&(c.scrollTop=h=l,c.dispatchEvent(s("ps-scroll-y"))),"left"===C&&(c.scrollLeft=z=l,c.dispatchEvent(s("ps-scroll-x")))}},{"./instances":18}],21:[function(c,C,l){"use strict";var e=c("../lib/helper"),s=c("../lib/dom"),h=c("./instances"),z=c("./update-geometry"),t=c("./update-scroll");C.exports=function(c){var C=h.get(c);C&&(C.negativeScrollAdjustment=C.isNegativeScroll?c.scrollWidth-c.clientWidth:0,s.css(C.scrollbarXRail,"display","block"),s.css(C.scrollbarYRail,"display","block"),C.railXMarginWidth=e.toInt(s.css(C.scrollbarXRail,"marginLeft"))+e.toInt(s.css(C.scrollbarXRail,"marginRight")),C.railYMarginHeight=e.toInt(s.css(C.scrollbarYRail,"marginTop"))+e.toInt(s.css(C.scrollbarYRail,"marginBottom")),s.css(C.scrollbarXRail,"display","none"),s.css(C.scrollbarYRail,"display","none"),z(c),t(c,"top",c.scrollTop),t(c,"left",c.scrollLeft),s.css(C.scrollbarXRail,"display",""),s.css(C.scrollbarYRail,"display",""))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-geometry":19,"./update-scroll":20}]},{},[1]),function(c,C){"function"==typeof define&&define.amd?define(["jquery"],C):"object"==typeof module&&module.exports?module.exports=C(require("jquery")):c.Strip=C(jQuery)}(this,function($){function Spinner(){return this.initialize.apply(this,_slice.call(arguments))}function Timers(){return this.initialize.apply(this,_slice.call(arguments))}function getURIData(e){var s={type:"image"};return $.each(Types,function(c,C){var l=C.data(e);l&&((s=l).type=c,s.url=e)}),s}function detectExtension(c){var C=(c||"").replace(/\?.*/g,"").match(/\.([^.]{3,4})$/);return C?C[1].toLowerCase():null}function View(){this.initialize.apply(this,_slice.call(arguments))}var Strip={version:"1.6.5",Skins:{strip:{}}},Browser=(NOb=navigator.userAgent,{IE:!(!window.attachEvent||-1!==NOb.indexOf("Opera"))&&OOb("MSIE "),Opera:-1<NOb.indexOf("Opera")&&(!!window.opera&&opera.version&&parseFloat(opera.version())||7.55),WebKit:-1<NOb.indexOf("AppleWebKit/")&&OOb("AppleWebKit/"),Gecko:-1<NOb.indexOf("Gecko")&&-1===NOb.indexOf("KHTML")&&OOb("rv:"),MobileSafari:!!NOb.match(/Apple.*Mobile.*Safari/),Chrome:-1<NOb.indexOf("Chrome")&&OOb("Chrome/"),ChromeMobile:-1<NOb.indexOf("CrMo")&&OOb("CrMo/"),Android:-1<NOb.indexOf("Android")&&OOb("Android "),IEMobile:-1<NOb.indexOf("IEMobile")&&OOb("IEMobile/")}),_slice=Array.prototype.slice,Fit={within:function(c,C){for(var l=$.extend({height:!0,width:!0},arguments[2]||{}),e=$.extend({},C),s=1,h=5,z=l.width,t=l.height;0<h&&(z&&e.width>c.width||t&&e.height>c.height);){var M=1,i=1;z&&e.width>c.width&&(M=c.width/e.width),t&&e.height>c.height&&(i=c.height/e.height);s=Math.min(M,i);e={width:Math.round(C.width*s),height:Math.round(C.height*s)},h--}return e.width=Math.max(e.width,0),e.height=Math.max(e.height,0),e}},NOb;function OOb(c){var C=new RegExp(c+"([\\d.]+)").exec(NOb);return!C||parseFloat(C[1])}$.extend($.easing,{stripEaseInCubic:function(c,C,l,e,s){return e*(C/=s)*C*C+l},stripEaseInSine:function(c,C,l,e,s){return-e*Math.cos(C/s*(Math.PI/2))+e+l},stripEaseOutSine:function(c,C,l,e,s){return e*Math.sin(C/s*(Math.PI/2))+l}});var Support=(qPb=document.createElement("div"),rPb="Webkit Moz O ms Khtml".split(" "),{css:{animation:pPb("animation"),transform:pPb("transform"),prefixed:function(c){return pPb(c,"prefix")}},svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:function(){try{return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}catch(c){return!1}}()}),qPb,rPb;function pPb(c,C){var l=c.charAt(0).toUpperCase()+c.substr(1);return function(c,C){for(var l in c)if(void 0!==qPb.style[c[l]])return"prefix"!=C||c[l];return!1}((c+" "+rPb.join(l+" ")+l).split(" "),C)}Support.mobileTouch=Support.touch&&(Browser.MobileSafari||Browser.Android||Browser.IEMobile||Browser.ChromeMobile||!/^(Win|Mac|Linux)/.test(navigator.platform));var Bounds={viewport:function(){var c={width:$(window).width()};if(Browser.MobileSafari||Browser.Android&&Browser.Gecko){var C=document.documentElement.clientWidth/window.innerWidth;c.height=window.innerHeight*C}else c.height=$(window).height();return c}},ImageReady=function(h){function c(){return this.initialize.apply(this,Array.prototype.slice.call(arguments))}h.extend(c.prototype,{initialize:function(){this.options=h.extend({test:function(){},success:function(){},timeout:function(){},callAt:!1,intervals:[[0,0],[1e3,10],[2e3,50],[4e3,100],[2e4,500]]},arguments[0]||{}),this._test=this.options.test,this._success=this.options.success,this._timeout=this.options.timeout,this._ipos=0,this._time=0,this._delay=this.options.intervals[this._ipos][1],this._callTimeouts=[],this.poll(),this._createCallsAt()},poll:function(){this._polling=setTimeout(h.proxy(function(){if(this._test())this.success();else{if(this._time+=this._delay,this._time>=this.options.intervals[this._ipos][0]){if(!this.options.intervals[this._ipos+1])return void("function"==h.type(this._timeout)&&this._timeout());this._ipos++,this._delay=this.options.intervals[this._ipos][1]}this.poll()}},this),this._delay)},success:function(){this.abort(),this._success()},_createCallsAt:function(){this.options.callAt&&h.each(this.options.callAt,h.proxy(function(c,C){var l=C[0],e=C[1],s=setTimeout(h.proxy(function(){e()},this),l);this._callTimeouts.push(s)},this))},_stopCallTimeouts:function(){h.each(this._callTimeouts,function(c,C){clearTimeout(C)}),this._callTimeouts=[]},abort:function(){this._stopCallTimeouts(),this._polling&&(clearTimeout(this._polling),this._polling=null)}});function C(){return this.initialize.apply(this,Array.prototype.slice.call(arguments))}return h.extend(C.prototype,{supports:{naturalWidth:"naturalWidth"in new Image},initialize:function(c,C,l){return this.img=h(c)[0],this.successCallback=C,this.errorCallback=l,this.isLoaded=!1,this.options=h.extend({method:"onload",pollFallbackAfter:1e3},arguments[3]||{}),"onload"!=this.options.method&&this.supports.naturalWidth?void this.poll():void this.load()},poll:function(){this._poll=new c({test:h.proxy(function(){return 0<this.img.naturalWidth},this),success:h.proxy(function(){this.success()},this),timeout:h.proxy(function(){this.error()},this),callAt:[[this.options.pollFallbackAfter,h.proxy(function(){this.load()},this)]]})},load:function(){this._loading=setTimeout(h.proxy(function(){var c=new Image;(this._onloadImage=c).onload=h.proxy(function(){c.onload=function(){},this.supports.naturalWidth||(this.img.naturalWidth=c.width,this.img.naturalHeight=c.height,c.naturalWidth=c.width,c.naturalHeight=c.height),this.success()},this),c.onerror=h.proxy(this.error,this),c.src=this.img.src},this))},success:function(){this._calledSuccess||(this._calledSuccess=!0,this.abort(),this.waitForRender(h.proxy(function(){this.isLoaded=!0,this.successCallback(this)},this)))},error:function(){this._calledError||(this._calledError=!0,this.abort(),this._errorRenderTimeout=setTimeout(h.proxy(function(){this.errorCallback&&this.errorCallback(this)},this)))},abort:function(){this.stopLoading(),this.stopPolling(),this.stopWaitingForRender()},stopPolling:function(){this._poll&&(this._poll.abort(),this._poll=null)},stopLoading:function(){this._loading&&(clearTimeout(this._loading),this._loading=null),this._onloadImage&&(this._onloadImage.onload=function(){},this._onloadImage.onerror=function(){})},waitForRender:function(c){this._renderTimeout=setTimeout(c)},stopWaitingForRender:function(){this._renderTimeout&&(clearTimeout(this._renderTimeout),this._renderTimeout=null),this._errorRenderTimeout&&(clearTimeout(this._errorRenderTimeout),this._errorRenderTimeout=null)}}),C}(jQuery);Spinner.supported=Support.css.transform&&Support.css.animation,$.extend(Spinner.prototype,{initialize:function(c){this.element=$(c),this.element[0]&&(this.classPrefix="strp-",this.setOptions(arguments[1]||{}),this.element.addClass(this.classPrefix+"spinner"),this.element.append(this._rotate=$("<div>").addClass(this.classPrefix+"spinner-rotate")),this.build(),this.start())},setOptions:function(c){this.options=$.extend({show:200,hide:200},c||{})},build:function(){if(!this._build){this._rotate.html("");var c=(this.options.length,this.options.radius,this.element.is(":visible"));c||this.element.show(),this._rotate.append(s=$("<div>").addClass(this.classPrefix+"spinner-frame").append(h=$("<div>").addClass(this.classPrefix+"spinner-line")));var C=parseInt($(h).css("z-index"));this.lines=C,h.css({"z-index":"inherit"}),s.remove(),c||this.element.hide();for(var l,e=0;e<C;e++){var s,h;this._rotate.append(s=$("<div>").addClass(this.classPrefix+"spinner-frame").append(h=$("<div>").addClass(this.classPrefix+"spinner-line"))),l=l||h.css("color"),h.css({background:l}),s.css({opacity:(1/C*(e+1)).toFixed(2)});var z={};z[Support.css.prefixed("transform")]="rotate("+360/C*(e+1)+"deg)",s.css(z)}this._build=!0}},start:function(){var c={};c[Support.css.prefixed("animation")]=this.classPrefix+"spinner-spin 1s infinite steps("+this.lines+")",this._rotate.css(c)},stop:function(){var c={};c[Support.css.prefixed("animation")]="none",this._rotate.css(c)},show:function(c){this.build(),this.start(),this.element.stop(!0).fadeTo(this.options.show,1,c)},hide:function(c){this.element.stop(!0).fadeOut(this.options.hide,$.proxy(function(){this.stop(),c&&c()},this))},refresh:function(){this._build=!1,this.build()}}),$.extend(Timers.prototype,{initialize:function(){this._timers={}},set:function(c,C,l){this._timers[c]=setTimeout(C,l)},get:function(c){return this._timers[c]},clear:function(c){c?this._timers[c]&&(clearTimeout(this._timers[c]),delete this._timers[c]):this.clearAll()},clearAll:function(){$.each(this._timers,function(c,C){clearTimeout(C)}),this._timers={}}});var Types={image:{extensions:"bmp gif jpeg jpg png webp",detect:function(c){return-1<$.inArray(detectExtension(c),this.extensions.split(" "))},data:function(c){return!!this.detect()&&{extension:detectExtension(c)}}},youtube:{detect:function(c){var C=/(youtube\.com|youtu\.be)\/watch\?(?=.*vi?=([a-zA-Z0-9-_]+))(?:\S+)?$/.exec(c);return C&&C[2]?C[2]:!(!(C=/(youtube\.com|youtu\.be)\/(vi?\/|u\/|embed\/)?([a-zA-Z0-9-_]+)(?:\S+)?$/i.exec(c))||!C[3])&&C[3]},data:function(c){var C=this.detect(c);return!!C&&{id:C}}},vimeo:{detect:function(c){var C=/(vimeo\.com)\/([a-zA-Z0-9-_]+)(?:\S+)?$/i.exec(c);return!(!C||!C[2])&&C[2]},data:function(c){var C=this.detect(c);return!!C&&{id:C}}}},VimeoReady=function(){function c(){return this.initialize.apply(this,_slice.call(arguments))}$.extend(c.prototype,{initialize:function(c,C){this.url=c,this.callback=C,this.load()},load:function(){var c=e.get(this.url);if(c)return this.callback(c.data);var C="http"+(window.location&&"https:"==window.location.protocol?"s":"")+":",l=getURIData(this.url).id;this._xhr=$.getJSON(C+"//vimeo.com/api/oembed.json?url="+C+"//vimeo.com/"+l+"&maxwidth=9999999&maxheight=9999999&callback=?",$.proxy(function(c){var C={dimensions:{width:c.width,height:c.height}};e.set(this.url,C),this.callback&&this.callback(C)},this))},abort:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)}});var e={cache:[],get:function(c){for(var C=null,l=0;l<this.cache.length;l++)this.cache[l]&&this.cache[l].url==c&&(C=this.cache[l]);return C},set:function(c,C){this.remove(c),this.cache.push({url:c,data:C})},remove:function(c){for(var C=0;C<this.cache.length;C++)this.cache[C]&&this.cache[C].url==c&&delete this.cache[C]}};return c}(),Options={defaults:{effects:{spinner:{show:200,hide:200},transition:{min:175,max:250},ui:{show:0,hide:200},window:{show:300,hide:300}},hideOnClickOutside:!0,keyboard:{left:!0,right:!0,esc:!0},loop:!0,overlap:!0,preload:[1,2],position:!0,skin:"strip",side:"right",spinner:!0,toggle:!0,uiDelay:3e3,vimeo:{autoplay:1,api:1,title:1,byline:1,portrait:0,loop:0},youtube:{autoplay:1,controls:1,enablejsapi:1,hd:1,iv_load_policy:3,loop:0,modestbranding:1,rel:0,vq:"hd1080"},initialTypeOptions:{image:{},vimeo:{width:1280},youtube:{width:1280,height:720}}},create:function(c,C,l){(c=c||{}).skin=c.skin||this.defaults.skin;var e=c.skin?$.extend({},Strip.Skins[c.skin]||Strip.Skins[this.defaults.skin]):{},s=$.extend(!0,{},this.defaults,e);s.initialTypeOptions&&(C&&s.initialTypeOptions[C]&&(s=$.extend(!0,{},s.initialTypeOptions[C],s)),delete s.initialTypeOptions);var h=$.extend(!0,{},s,c);return(!h.effects||Browser.IE&&Browser.IE<9)&&(h.effects={},$.each(this.defaults.effects,function(C,c){$.each(h.effects[C]=$.extend({},c),function(c){h.effects[C][c]=0})}),h.spinner=!1),h.keyboard&&("boolean"===$.type(h.keyboard)&&(h.keyboard={},$.each(this.defaults.keyboard,function(c){h.keyboard[c]=!0})),"vimeo"!==C&&"youtube"!==C||$.extend(h.keyboard,{left:!1,right:!1})),"vimeo"!==C&&"youtube"!==C||(h.overlap=!1),h}};$.extend(View.prototype,{initialize:function(object){var options=arguments[1]||{},data={};if("string"===$.type(object))object={url:object};else if(object&&1===object.nodeType){var element=$(object);object={element:element[0],url:element.attr("href"),caption:element.attr("data-strip-caption"),group:element.attr("data-strip-group"),extension:element.attr("data-strip-extension"),type:element.attr("data-strip-type"),options:element.attr("data-strip-options")&&eval("({"+element.attr("data-strip-options")+"})")||{}}}if(object&&(object.extension||(object.extension=detectExtension(object.url)),!object.type)){var data=getURIData(object.url);object._data=data,object.type=data.type}return object._data||(object._data=getURIData(object.url)),object.options=object&&object.options?$.extend(!0,$.extend({},options),$.extend({},object.options)):$.extend({},options),object.options=Options.create(object.options,object.type,object._data),$.extend(this,object),this}});var Pages={initialize:function(c){this.element=c,this.pages={},this.uid=1},add:function(c){this.uid++,this.views=c,this.pages[this.uid]=[],Window._showUIOnResize=!0,$.each(c,$.proxy(function(c,C){this.pages[this.uid].push(new Page(C,c+1,this.views.length))},this))},show:function(c,C){var l=this.pages[this.uid][c-1];return this.page&&this.page.uid==l.uid?void(l.view.options.toggle&&(Window.hide(),this.page=null)):(Pages.setActiveClass(l),this.page=l,this.removeHiddenAndLoadingInactive(),void l.show($.proxy(function(){this._switched=!1,C&&C()},this)))},getLoadingCount:function(){var l=0;return $.each(this.pages,function(c,C){$.each(C,function(c,C){C.loading&&l++})}),l},getPositionInActivePageGroup:function(l){var e=0,c=this.pages[this.uid];return c&&$.each(c,function(c,C){C.view.element&&C.view.element==l&&(e=c+1)}),e},removeExpired:function(l){$.each(this.pages,function(c,C){c!=this._id&&$.each(C,function(c,C){C.remove(l)})})},removeAll:function(){$.each(this.pages,function(c,C){$.each(C,function(c,C){C.remove()})}),this.pages={}},hideVisibleInactive:function(l){$.each(this.pages,$.proxy(function(c,C){$.each(C,$.proxy(function(c,C){C.uid!=this.page.uid&&C.hide(null,l)},this))},this))},stopInactive:function(){$.each(this.pages,$.proxy(function(c,C){$.each(C,$.proxy(function(c,C){C.uid==this.page.uid||C.preloading||C.stop()},this))},this))},removeHiddenAndLoadingInactive:function(){var e=[];$.each(this.pages,$.proxy(function(c,C){if(c!=this.uid){var l=0;$.each(C,$.proxy(function(c,C){C.visible&&!C.loading||C.animatingWindow||C.remove(),C.removed&&l++},this)),l==C.length&&e.push(c)}},this)),$.each(e,$.proxy(function(c,C){delete this.pages[C]},this))},stop:function(){$.each(this.pages,function(c,C){$.each(C,function(c,C){C.stop()})})},setActiveClass:function(c){this.removeActiveClasses();var C=c.view.element;if(C){$(C).addClass("strip-active-element strip-active-group");var l=$(C).attr("data-strip-group");l&&$('.strip[data-strip-group="'+l+'"]').addClass("strip-active-group")}},removeActiveClasses:function(){$(".strip-active-group").removeClass("strip-active-group strip-active-element")}},Page=(RRb=0,SRb={},$.extend(QRb.prototype,{initialize:function(c,C,l){this.view=c,this.dimensions={width:0,height:0},this.uid=RRb++,this._position=C,this._total=l,this.animated=!1,this.visible=!1,this.queues={},this.queues.showhide=$({})},create:function(){if(!this._created){Pages.element.append(this.element=$("<div>").addClass("strp-page").append(this.container=$("<div>").addClass("strp-container")).css({opacity:0}).hide());var c=this.view.options.position&&1<this._total;switch((this.view.caption||c)&&(this.element.append(this.info=$("<div>").addClass("strp-info").append(this.info_padder=$("<div><a href='#' class='show-comt'>Show Comments</a>").addClass("strp-info-padder"))),c&&(this.element.addClass("strp-has-position"),this.info_padder.append($("<div>").addClass("strp-position").html(this._position+" / "+this._total))),this.view.caption&&this.info_padder.append(this.caption=$("<div>").addClass("strp-caption").html(this.view.caption))),this.view.type){case"image":this.container.append(this.content=$("<img>").attr({src:this.view.url}));break;case"vimeo":case"youtube":this.container.append(this.content=$("<div>"))}this.element.addClass("strp"+(this.view.options.overlap?"":"-no")+"-overlap"),this._total<2&&this.element.addClass("strp-no-sides"),this.content.addClass("strp-content-element"),this._created=!0}},_getSurroundingPages:function(){var c;if(!(c=this.view.options.preload))return[];for(var C=[],l=Math.max(1,this._position-c[0]),e=Math.min(this._position+c[1],this._total),s=this._position,h=s;h<=e;h++)(z=Pages.pages[Pages.uid][h-1])._position!=s&&C.push(z);for(h=s;l<=h;h--){var z;(z=Pages.pages[Pages.uid][h-1])._position!=s&&C.push(z)}return C},preloadSurroundingImages:function(){var c=this._getSurroundingPages();$.each(c,$.proxy(function(c,C){C.preload()},this))},preload:function(){this.preloading||this.preloaded||"image"!==this.view.type||!this.view.options.preload||this.loaded||(this.create(),this.preloading=!0,new ImageReady(this.content[0],$.proxy(function(c){this.loaded=!0,this.preloading=!1,this.preloaded=!0,this.dimensions={width:c.img.naturalWidth,height:c.img.naturalHeight}},this),null,{method:"naturalWidth"}))},load:function(C){if(this.create(),this.loaded)C&&C();else switch(this.abort(),this.loading=!0,this.view.options.spinner&&!SRb[this.view.url]&&Window.startLoading(),this.view.type){case"image":if(this.error)return void(C&&C());this.imageReady=new ImageReady(this.content[0],$.proxy(function(c){this._markAsLoaded(),this.dimensions={width:c.img.naturalWidth,height:c.img.naturalHeight},C&&C()},this),$.proxy(function(){this._markAsLoaded(),this.content.hide(),this.container.append(this.error=$("<div>").addClass("strp-error")),this.element.addClass("strp-has-error"),this.dimensions={width:this.error.outerWidth(),height:this.error.outerHeight()},C&&C()},this),{method:"naturalWidth"});break;case"vimeo":this.vimeoReady=new VimeoReady(this.view.url,$.proxy(function(c){this._markAsLoaded(),this.dimensions={width:c.dimensions.width,height:c.dimensions.height},C&&C()},this));break;case"youtube":this._markAsLoaded(),this.dimensions={width:this.view.options.width,height:this.view.options.height},C&&C()}},_markAsLoaded:function(){this.loading=!1,this.loaded=!0,SRb[this.view.url]=!0,Window.stopLoading()},isVideo:function(){return/^(youtube|vimeo)$/.test(this.view.type)},insertVideo:function(c){if(!this.playerIframe&&this.isVideo()){var C="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":",l=$.extend({},this.view.options[this.view.type]||{}),e=$.param(l),s={vimeo:C+"//player.vimeo.com/video/{id}?{queryString}",youtube:C+"//www.youtube.com/embed/{id}?{queryString}"}[this.view.type].replace("{id}",this.view._data.id).replace("{queryString}",e);this.content.append(this.playerIframe=$("<iframe webkitAllowFullScreen mozallowfullscreen allowFullScreen>").attr({src:s,height:this.contentDimensions.height,width:this.contentDimensions.width,frameborder:0})),c&&c()}else c&&c()},raise:function(){var c=Pages.element[0].lastChild;c&&c===this.element[0]||Pages.element.append(this.element)},show:function(C){var c=this.queues.showhide;c.queue([]),this.animated=!0,this.animatingWindow=!1,c.queue(function(c){Pages.stopInactive(),c()}),c.queue($.proxy(function(c){Window.setSide(this.view.options.side,c)},this)),c.queue($.proxy(function(c){this.view.options.spinner&&Window._spinner&&(Window.setSpinnerSkin(this.view.options.skin),Window._spinner.setOptions(this.view.options.effects.spinner),Window._spinner.refresh()),this.load($.proxy(function(){this.preloadSurroundingImages(),c()},this))},this)),c.queue($.proxy(function(c){this.raise(),Window.setSkin(this.view.options.skin),Window.bindUI(),Keyboard.enable(this.view.options.keyboard),this.fitToWindow(),c()},this)),c.queue($.proxy(function(c){Window.timers.set("bind-hide-on-click-outside",$.proxy(function(){Window.bindHideOnClickOutside(),c()},this),1)},this)),this.isVideo()&&c.queue($.proxy(function(c){this.insertVideo($.proxy(function(){c()}))},this)),c.queue($.proxy(function(c){this.animatingWindow=!0;var C=3,l="horizontal"===this.getOrientation()?"width":"height",e=this.view&&this.view.options.onShow;"function"===$.type(e)&&e.call(Strip);var s=Window.resize(this[l],function(){--C<1&&c()},s);this._show(function(){--C<1&&c()},s),Window.adjustPrevNext(function(){--C<1&&c()},s),Window._showUIOnResize&&(Window.showUI(null,s),Window._showUIOnResize=!1),Pages.hideVisibleInactive(s)},this)),c.queue($.proxy(function(c){this.animatingWindow=!1,this.animated=!1,this.visible=!0,C&&C(),c()},this))},_show:function(c,C){var l=Window.visible?"number"===$.type(C)?C:this.view.options.effects.transition.min:0;this.element.stop(!0).show().fadeTo(l||0,1,c)},hide:function(c,C){if(this.element){this.removeVideo(),this.abort();var l=this.view.options.effects.transition.min;"number"===$.type(C)&&(l=C),this.isVideo()&&(l=0),this.element.stop(!0).fadeTo(l,0,"stripEaseInCubic",$.proxy(function(){this.element.hide(),this.visible=!1,c&&c()},this))}},stop:function(){this.queues.showhide.queue([]),this.element&&this.element.stop(!0),this.abort()},removeVideo:function(){this.playerIframe&&(this.playerIframe[0].src="//about:blank",this.playerIframe.remove(),this.playerIframe=null)},remove:function(){this.stop(),this.removeVideo(),this.element&&this.element.remove(),this.visible=!1,this.removed=!0},abort:function(){this.imageReady&&!this.preloading&&(this.imageReady.abort(),this.imageReady=null),this.vimeoReady&&(this.vimeoReady.abort(),this.vimeoReady=null),this.loading=!1,Window.stopLoading()},_getDimensionsFitToView:function(){var c=$.extend({},this.dimensions),C=$.extend({},this.dimensions),l=this.view.options;return l.maxWidth&&(c.width=l.maxWidth),l.maxHeight&&(c.heigth=l.maxHeight),Fit.within(c,C)},getOrientation:function(){return"left"===this.view.options.side||"right"===this.view.options.side?"horizontal":"vertical"},fitToWindow:function(){var c=this.element,C=this._getDimensionsFitToView(),l=Bounds.viewport(),e=$.extend({},l),s="horizontal"===this.getOrientation()?"width":"height",h=c.find(".strp-container");Window.element.removeClass("strp-measured");var z=Window.element,t="width"==s?0<parseInt(z.css("min-width")):0<parseInt(z.css("min-height")),M=t?0:parseInt(z.css("margin-"+("width"==s?"left":"bottom")));Window.element.addClass("strp-measured"),e[s]-=M;var i=parseInt(h.css("padding-left"))+parseInt(h.css("padding-right")),a=parseInt(h.css("padding-top"))+parseInt(h.css("padding-bottom"));e.width-=i,e.height-=a;var n=Fit.within(e,C),r=$.extend({},n),o=this.content;this.error&&(o=this.error);var v=this.info,V=0;if(v){var L=Window.element.is(":visible");L||Window.element.show();var H=c.is(":visible");if(H||c.show(),"width"==s){c.css({width:t?l.width:n.width+i});var S=e.height;o.hide(),V=v.outerHeight(),o.show(),e.height=S-V,r=Fit.within(e,C);for(var f,d,u,p=$.extend({},r),m=V,g=t?0:4;0<g&&(u=n.width-r.width);)c.css({width:n.width+i-u}),d=V,o.hide(),V=v.outerHeight(),f=Math.max(this.caption?this.caption.outerWidth()+i:0,this.position?this.position.outerWidth()+i:0),o.show(),V===d&&f<=n.width+i-u?n.width-=u:(e.height=S-V,r=Fit.within(e,C),g-1<=0&&(c.css({width:n.width+i}),r=p,V=m)),g--}else Browser.IE&&Browser.IE<8&&c.css({width:l.width}),o.hide(),V=v.outerHeight(),o.show(),e.height-=V,r=Fit.within(e,C),n.height=r.height;H||c.hide(),L||Window.element.hide()}var b={width:n.width+i,height:n.height+a+V};t&&(b=l),c.css("width"==s?{width:b.width}:{height:b.height}),h.css({bottom:V});var w=-.5*r.width,y=-.5*r.height;Browser.IE&&Browser.IE<8&&(w=Math.floor(w),y=Math.floor(y)),o.css($.extend({},r,{"margin-left":w,"margin-top":y})),this.playerIframe&&this.playerIframe.attr(r),this.contentDimensions=r,this.width=b.width,this.height=b.height,this.z=this[s]}}),QRb),Window={initialize:function(){this.queues=[],this.queues.hide=$({}),this.pages=[],this.timers=new Timers,this.build(),this.setSkin(Options.defaults.skin)},build:function(){Spinner.supported&&($(document.body).append(this.spinnerMove=$("<div>").addClass("strp-spinner-move").hide().append(this.spinner=$("<div>").addClass("strp-spinner"))),this._spinner=new Spinner(this.spinner),this._spinnerMoveSkinless=this.spinnerMove[0].className),$(document.body).append(this.element=$("<div>").addClass("strp-window strp-measured").append(this._pages=$("<div>").addClass("strp-pages")).append(this._previous=$("<div>").addClass("strp-nav strp-nav-previous").append($("<div>").addClass("strp-nav-button").append($("<div>").addClass("strp-nav-button-background")).append($("<div>").addClass("strp-nav-button-icon"))).hide()).append(this._next=$("<div>").addClass("strp-nav strp-nav-next").append($("<div>").addClass("strp-nav-button").append($("<div>").addClass("strp-nav-button-background")).append($("<div>").addClass("strp-nav-button-icon"))).hide()).append(this._close=$("<div>").addClass("strp-close").append($("<div>").addClass("strp-close-background")).append($("<div>").addClass("strp-close-icon")))),Pages.initialize(this._pages),Support.mobileTouch&&this.element.addClass("strp-mobile-touch"),Support.svg||this.element.addClass("strp-no-svg"),this._close.on("click",$.proxy(function(c){c.preventDefault(),this.hide()},this)),this._previous.on("click",$.proxy(function(c){this.previous(),this._onMouseMove(c)},this)),this._next.on("click",$.proxy(function(c){this.next(),this._onMouseMove(c)},this)),this.hideUI(null,0)},setSkin:function(c){this._skin&&this.element.removeClass("strp-window-skin-"+this._skin),this.element.addClass("strp-window-skin-"+c),this._skin=c},setSpinnerSkin:function(c){this.spinnerMove&&(this._spinnerSkin&&this.spinnerMove.removeClass("strp-spinner-move-skin-"+this._spinnerSkin),this.spinnerMove.addClass("strp-spinner-move-skin-"+c),this._spinner.refresh(),this._spinnerSkin=c)},startObservingResize:function(){this._isObservingResize||(this._onWindowResizeHandler=$.proxy(this._onWindowResize,this),$(window).on("resize orientationchange",this._onWindowResizeHandler),this._isObservingResize=!0)},stopObservingResize:function(){this._onWindowResizeHandler&&($(window).off("resize orientationchange",this._onWindowResizeHandler),this._onWindowResizeHandler=null),this._isObservingResize=!1},_onWindowResize:function(){var c;(c=Pages.page)&&(c.animated||c.animatingWindow?(c.fitToWindow(),c.show()):(c.fitToWindow(),this.resize(c.z,null,0),this.adjustPrevNext(null,!0)))},resize:function(c,C,l){var e="vertical"===this.getOrientation()?"Height":"Width",s=e.toLowerCase();0<c&&(this.visible=!0,this.startObservingResize());var h,z=Window.element["outer"+e]();if(0===z)h=this.view.options.effects.window.show,this.element.addClass("strp-opening"),this.opening=!0;else if("number"===$.type(l))h=l;else{var t=this.view.options.effects.transition,M=t.min,i=t.max-M,a=Bounds.viewport(),n=Math.abs(z-c),r=Math.min(1,n/a[s]);h=Math.round(M+r*i)}0===c&&(this.closing=!0,this.element.is(":animated")||this.element.addClass("strp-closing"));var o={overflow:"visible"};o[s]=c;var v=1;this._outerWidth=null,this._offsetLeft=null;var V=this.view.options.onResize,L="function"===$.type(V);return this.element.stop(!0).animate(o,$.extend({duration:h,complete:$.proxy(function(){--v<1&&this._afterResize(C)},this)},L?{step:$.proxy(function(c,C){C.prop===s&&V.call(Strip,C.prop,c,this.side)},this)}:{})),this.spinnerMove&&(v++,this.spinnerMove.stop(!0).animate(o,h,$.proxy(function(){--v<1&&this._afterResize(C)},this))),h},_afterResize:function(c){this.opening=!1,this.closing=!1,this.element.removeClass("strp-opening strp-closing"),this._outerWidth=this.element.outerWidth(),this._offsetLeft=this.element.offset().left,c&&c()},adjustPrevNext:function(c,C){if(this.view&&Pages.page){var l=Pages.page,e=this.element.is(":visible");e||this.element.show();var s=this._previous.attr("style");this._previous.removeAttr("style");var h=parseInt(this._previous.css("margin-top"));this._previous.attr({style:s}),e||this.element.hide();var z=l.info?l.info.outerHeight():0,t=this._previous.add(this._next),M={"margin-top":h-.5*z},i=this.view.options.effects.transition.min;"number"===$.type(C)&&(i=C),this.opening&&(i=0),t.stop(!0).animate(M,i,c),this._previous[this.mayPrevious()?"show":"hide"](),this._next[this.mayNext()?"show":"hide"]()}},resetPrevNext:function(){this._previous.add(this._next).stop(!0).removeAttr("style")},load:function(c,C){this.views=c,Pages.add(c),C&&this.setPosition(C)},setSide:function(c,C){if(this.side!==c)if(this.visible){var l=this.view?this.view.options.effects.window.hide:0;this.hideUI(null,l),this.unbindUI(),this.resize(0,$.proxy(function(){this._safeResetsAfterSwitchSide(),Pages.hideVisibleInactive(0),this._setSide(c,C)},this)),this._showUIOnResize=!0}else this._setSide(c,C);else C&&C()},_setSide:function(c,C){this.side=c;var l=this.getOrientation(),e=this.element;this.spinnerMove&&(e=e.add(this.spinnerMove)),e.removeClass("strp-horizontal strp-vertical").addClass("strp-"+l);var s="strp-side-";e.removeClass(s+"top "+s+"right "+s+"bottom "+s+"left").addClass(s+c),C&&C()},getOrientation:function(){return"left"===this.side||"right"===this.side?"horizontal":"vertical"},startLoading:function(){this._spinner&&(this.spinnerMove.show(),this._spinner.show())},stopLoading:function(){this._spinner&&Pages.getLoadingCount()<1&&this._spinner.hide($.proxy(function(){this.spinnerMove.hide()},this))},setPosition:function(C,l){this._position=C,this.view=this.views[C-1],this.stopHideQueue(),this.page=Pages.show(C,$.proxy(function(){var c=this.view.options.afterPosition;"function"===$.type(c)&&c.call(Strip,C),l&&l()},this))},hide:function(C){if(this.view){var c=this.queues.hide;c.queue([]),c.queue($.proxy(function(c){Pages.stop(),c()},this)),c.queue($.proxy(function(c){var C=this.view?this.view.options.effects.window.hide:0;this.unbindUI(),this.hideUI(null,C),this.unbindHideOnClickOutside(),Keyboard.disable(),c()},this)),c.queue($.proxy(function(c){Pages.removeActiveClasses(),this.resize(0,c,this.view.options.effects.window.hide),this._showUIOnResize=!0},this)),c.queue($.proxy(function(c){this._safeResetsAfterSwitchSide(),this.stopObservingResize(),Pages.removeAll(),this.timers.clear(),this._position=-1;var C=this.view&&this.view.options.afterHide;"function"===$.type(C)&&C.call(Strip),this.view=null,c()},this)),"function"===$.type(C)&&c.queue($.proxy(function(c){C(),c()},this))}},stopHideQueue:function(){this.queues.hide.queue([])},_safeResetsAfterSwitchSide:function(){this.element.removeAttr("style"),this.spinnerMove&&this.spinnerMove.removeAttr("style"),this.visible=!1,this.hideUI(null,0),this.timers.clear("ui"),this.resetPrevNext(),this._x=-1,this._y=-1},mayPrevious:function(){return this.view&&this.view.options.loop&&this.views&&1<this.views.length||1!==this._position},previous:function(c){var C=this.mayPrevious();(c||C)&&this.setPosition(this.getSurroundingIndexes().previous)},mayNext:function(){var c=this.views&&1<this.views.length;return this.view&&this.view.options.loop&&c||c&&1!==this.getSurroundingIndexes().next},next:function(c){var C=this.mayNext();(c||C)&&this.setPosition(this.getSurroundingIndexes().next)},getSurroundingIndexes:function(){if(!this.views)return{};var c=this._position,C=this.views.length;return{previous:c<=1?C:c-1,next:C<=c?1:c+1}},bindHideOnClickOutside:function(){this.unbindHideOnClickOutside(),$(document.documentElement).on("click",this._delegateHideOutsideHandler=$.proxy(this._delegateHideOutside,this))},unbindHideOnClickOutside:function(){this._delegateHideOutsideHandler&&($(document.documentElement).off("click",this._delegateHideOutsideHandler),this._delegateHideOutsideHandler=null)},_delegateHideOutside:function(c){var C=Pages.page;if(this.visible&&C&&C.view.options.hideOnClickOutside){var l=c.target;$(l).closest(".strip, .strp-window")[0]||this.hide()}},bindUI:function(){this.unbindUI(),Support.mobileTouch||(this.element.on("mouseenter",this._showUIHandler=$.proxy(this.showUI,this)).on("mouseleave",this._hideUIHandler=$.proxy(this.hideUI,this)),this.element.on("mousemove",this._mousemoveUIHandler=$.proxy(function(c){var C=c.pageX,l=c.pageY;this._hoveringNav||l===this._y&&C===this._x||(this._x=C,this._y=l,this.showUI(),this.startUITimer())},this)),this._pages.on("mousemove",".strp-container",this._onMouseMoveHandler=$.proxy(this._onMouseMove,this)).on("mouseleave",".strp-container",this._onMouseLeaveHandler=$.proxy(this._onMouseLeave,this)).on("mouseenter",".strp-container",this._onMouseEnterHandler=$.proxy(this._onMouseEnter,this)),this.element.on("mouseenter",".strp-nav",this._onNavMouseEnterHandler=$.proxy(this._onNavMouseEnter,this)).on("mouseleave",".strp-nav",this._onNavMouseLeaveHandler=$.proxy(this._onNavMouseLeave,this)),$(window).on("scroll",this._onScrollHandler=$.proxy(this._onScroll,this))),this._pages.on("click",".strp-container",this._onClickHandler=$.proxy(this._onClick,this))},unbindUI:function(){this._showUIHandler&&(this.element.off("mouseenter",this._showUIHandler).off("mouseleave",this._hideUIHandler).off("mousemove",this._mousemoveUIHandler),this._pages.off("mousemove",".strp-container",this._onMouseMoveHandler).off("mouseleave",".strp-container",this._onMouseLeaveHandler).off("mouseenter",".strp-container",this._onMouseEnterHandler),this.element.off("mouseenter",".strp-nav",this._onNavMouseEnterHandler).off("mouseleave",".strp-nav",this._onNavMouseLeaveHandler),$(window).off("scroll",this._onScrollHandler),this._showUIHandler=null),this._onClickHandler&&(this._pages.off("click",".strp-container",this._onClickHandler),this._onClickHandler=null)},_onScroll:function(){this._offsetLeft=this._outerWidth=null},_onMouseMove:function(c){var C=this._getEventSide(c),l=C.toLowerCase();this.element[(this["may"+C]()?"add":"remove")+"Class"]("strp-hovering-clickable"),this._previous[("next"!==l?"add":"remove")+"Class"]("strp-nav-previous-hover strp-nav-hover"),this._next[("next"===l?"add":"remove")+"Class"]("strp-nav-next-hover strp-nav-hover")},_onMouseLeave:function(){this.element.removeClass("strp-hovering-clickable"),this._previous.removeClass("strp-nav-previous-hover").add(this._next.removeClass("strp-nav-next-hover")).removeClass("strp-nav-hover")},_onClick:function(c){var C=this._getEventSide(c);this[C.toLowerCase()](),this._onMouseMove(c)},_onMouseEnter:function(c){this._onMouseMove(c)},_getEventSide:function(c){var C=this._offsetLeft||this.element.offset().left;return c.pageX-C<.5*(this._outerWidth||this.element.outerWidth())?"Previous":"Next"},_onNavMouseEnter:function(){this._hoveringNav=!0,this.clearUITimer()},_onNavMouseLeave:function(){this._hoveringNav=!1,this.startUITimer()},showUI:function(c,C){this.clearUITimer();var l=this.element.find(".strp-nav-button"),e=this.view?this.view.options.effects.ui.show:0;"number"===$.type(C)&&(e=C),l.stop(!0).fadeTo(e,1,"stripEaseInSine",$.proxy(function(){this.startUITimer(),"function"===$.type(c)&&c()},this))},hideUI:function(c,C){var l=this.element.find(".strp-nav-button"),e=this.view?this.view.options.effects.ui.hide:0;"number"===$.type(C)&&(e=C),l.stop(!0).fadeOut(e,"stripEaseOutSine",function(){"function"===$.type(c)&&c()})},clearUITimer:function(){Support.mobileTouch||this.timers.clear("ui")},startUITimer:function(){Support.mobileTouch||(this.clearUITimer(),this.timers.set("ui",$.proxy(function(){this.hideUI()},this),this.view?this.view.options.uiDelay:0))}},Keyboard={enabled:!1,keyCode:{left:37,right:39,esc:27},enable:function(c){this.disable(),c&&($(document).on("keydown",this._onKeyDownHandler=$.proxy(this.onKeyDown,this)).on("keyup",this._onKeyUpHandler=$.proxy(this.onKeyUp,this)),this.enabled=c)},disable:function(){this.enabled=!1,this._onKeyUpHandler&&($(document).off("keyup",this._onKeyUpHandler).off("keydown",this._onKeyDownHandler),this._onKeyUpHandler=this._onKeyDownHandler=null)},onKeyDown:function(c){if(this.enabled&&Window.visible){var C=this.getKeyByKeyCode(c.keyCode);if(C&&(!C||!this.enabled||this.enabled[C]))switch(c.preventDefault(),c.stopPropagation(),C){case"left":Window.previous();break;case"right":Window.next()}}},onKeyUp:function(c){if(this.enabled&&Window.visible){var C=this.getKeyByKeyCode(c.keyCode);if(C&&(!C||!this.enabled||this.enabled[C]))switch(C){case"esc":Window.hide()}}},getKeyByKeyCode:function(c){for(var C in this.keyCode)if(this.keyCode[C]===c)return C;return null}},_Strip={_disabled:!1,_fallback:!0,initialize:function(){Window.initialize(),this._disabled||this.startDelegating()},startDelegating:function(){this.stopDelegating(),$(document.documentElement).on("click",".strip[href]",this._delegateHandler=$.proxy(this.delegate,this))},stopDelegating:function(){this._delegateHandler&&($(document.documentElement).off("click",".strip[href]",this._delegateHandler),this._delegateHandler=null)},delegate:function(c){if(!this._disabled){c.stopPropagation(),c.preventDefault();var C=c.currentTarget;_Strip.show(C)}},show:function(object){if(this._disabled)this.showFallback.apply(_Strip,_slice.call(arguments));else{var options=arguments[1]||{},position=arguments[2];arguments[1]&&"number"===$.type(arguments[1])&&(position=arguments[1],options={});var views=[],object_type,isElement=object&&1===object.nodeType,positionInAPG;switch(object_type=$.type(object)){case"string":case"object":var view=new View(object,options),_dgo="data-strip-group-options";if(view.group){if(isElement){var elements=$('.strip[data-strip-group="'+$(object).attr("data-strip-group")+'"]'),groupOptions={};elements.filter("["+_dgo+"]").each(function(i,element){$.extend(groupOptions,eval("({"+($(element).attr(_dgo)||"")+"})"))}),elements.each(function(c,C){position||C!==object||(position=c+1),views.push(new View(C,$.extend({},groupOptions,options)))})}}else{var groupOptions={};isElement&&$(object).is("["+_dgo+"]")&&($.extend(groupOptions,eval("({"+($(object).attr(_dgo)||"")+"})")),view=new View(object,$.extend({},groupOptions,options))),views.push(view)}break;case"array":$.each(object,function(c,C){var l=new View(C,options);views.push(l)})}(!position||position<1)&&(position=1),position>views.length&&(position=views.length),Window.unbindHideOnClickOutside(),isElement&&(positionInAPG=Pages.getPositionInActivePageGroup(object))?(positionInAPG===Window._position&&Window.bindHideOnClickOutside(),Window.setPosition(positionInAPG)):Window.load(views,position)}},showFallback:function(c){if(_Strip._fallback){var C=function c(C){var l=$.type(C);return"string"===l?C:"array"===l&&C[0]?c(C[0]):_.isElement(C)&&$(C).attr("href")?$(C).attr("href"):!!C.url&&C.url}(c);C&&(window.location.href=C)}}},RRb,SRb;function QRb(){return this.initialize.apply(this,_slice.call(arguments))}return $.extend(Strip,{show:function(){return _Strip.show.apply(_Strip,_slice.call(arguments)),this},hide:function(){return Window.hide(),this},disable:function(){return _Strip.stopDelegating(),_Strip._disabled=!0,this},enable:function(){return _Strip._disabled=!1,_Strip.startDelegating(),this},fallback:function(c){return _Strip._fallback=c,this},setDefaultSkin:function(c){return Options.defaults.skin=c,this}}),(Browser.IE&&Browser.IE<7||"number"===$.type(Browser.Android)&&Browser.Android<3||Browser.MobileSafari&&"number"===$.type(Browser.WebKit)&&Browser.WebKit<533.18)&&(_Strip.show=_Strip.showFallback,$.each("startDelegating stopDelegating initialize".split(" "),function(c,C){_Strip[C]=function(){}}),Strip.hide=function(){return this}),$(document).ready(function(){_Strip.initialize()}),Strip}),function(M){"use strict";M.fn.loadMoreResults=function(c){var s={tag:{name:"div",class:"item"},displayedItems:2,showItems:2,button:{class:"btn-load-more",text:"Load More"}},z=M.extend(!0,{},s,c),h=/^[A-Za-z][-_A-Za-z0-9]+$/,t=/^[0-9]+$/;function l(c,C,l,e){null!==l&&"object"!=typeof l?typeof C[l]===e&&null!==String(C[l]).match("string"==e?h:t)||(z[c][l]=s[c][l]):typeof C===e&&null!==String(C).match("string"==e?h:t)||(z[c]=s[c])}return M.each(z,function(c,C){"tag"===c&&(l(c,C,"name","string"),l(c,C,"class","string")),"displayedItems"===c&&l(c,C,null,"number"),"showItems"===c&&l(c,C,null,"number"),"button"===c&&l(c,C,"class","string")}),this.each(function(c,C){var l=M(C),e=l.find(" > "+z.tag.name+"."+z.tag.class).length,s=parseInt(z.displayedItems),h=parseInt(z.showItems);l.find(" > "+z.tag.name+"."+z.tag.class+":lt("+s+")").css("display","inline-block"),l.find(" > "+z.tag.name+"."+z.tag.class+":gt("+(s-1)+")").css("display","none"),l.parent().append('<button class="btn-view '+z.button.class+'">'+z.button.text+"</button>"),l.parent().on("click",".btn-view",function(c){c.preventDefault(),s=s+h<=e?s+h:e,l.find(" > "+z.tag.name+"."+z.tag.class+":lt("+s+")").fadeIn(),s==e&&M(this).hide()})})}}(jQuery),function(C,l){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(c){return l(C,c)}):"object"==typeof module&&module.exports?module.exports=l(C,require("jquery")):C.jQueryBridget=l(C,C.jQuery)}(window,function(c,C){"use strict";function l(i,s,a){(a=a||C||c.jQuery)&&(s.prototype.option||(s.prototype.option=function(c){a.isPlainObject(c)&&(this.options=a.extend(!0,this.options,c))}),a.fn[i]=function(c){return"string"!=typeof c?(function(c,e){c.each(function(c,C){var l=a.data(C,i);l?(l.option(e),l._init()):(l=new s(C,e),a.data(C,i,l))})}(this,c),this):function(c,h,z){var t,M="$()."+i+'("'+h+'")';return c.each(function(c,C){var l=a.data(C,i);if(l){var e=l[h];if(e&&"_"!=h.charAt(0)){var s=e.apply(l,z);t=void 0===t?s:t}else n(M+" is not a valid method")}else n(i+" not initialized. Cannot call methods, i.e. "+M)}),void 0!==t?t:c}(this,c,h.call(arguments,1))},e(a))}function e(c){!c||c&&c.bridget||(c.bridget=l)}var h=Array.prototype.slice,s=c.console,n=void 0===s?function(){}:function(c){s.error(c)};return e(C||c.jQuery),l}),function(c,C){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",C):"object"==typeof module&&module.exports?module.exports=C():c.EvEmitter=C()}("undefined"!=typeof window?window:this,function(){function c(){}var C=c.prototype;return C.on=function(c,C){if(c&&C){var l=this._events=this._events||{},e=l[c]=l[c]||[];return-1==e.indexOf(C)&&e.push(C),this}},C.once=function(c,C){if(c&&C){this.on(c,C);var l=this._onceEvents=this._onceEvents||{};return(l[c]=l[c]||{})[C]=!0,this}},C.off=function(c,C){var l=this._events&&this._events[c];if(l&&l.length){var e=l.indexOf(C);return-1!=e&&l.splice(e,1),this}},C.emitEvent=function(c,C){var l=this._events&&this._events[c];if(l&&l.length){var e=0,s=l[e];C=C||[];for(var h=this._onceEvents&&this._onceEvents[c];s;){var z=h&&h[s];z&&(this.off(c,s),delete h[s]),s.apply(this,C),s=l[e+=z?0:1]}return this}},c}),function(c,C){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return C()}):"object"==typeof module&&module.exports?module.exports=C():c.getSize=C()}(window,function(){"use strict";function H(c){var C=parseFloat(c);return-1==c.indexOf("%")&&!isNaN(C)&&C}function S(c){var C=getComputedStyle(c);return C||l("Style returned "+C+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),C}function f(c){if(function(){if(!m){m=!0;var c=document.createElement("div");c.style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box";var C=document.body||document.documentElement;C.appendChild(c);var l=S(c);f.isBoxSizeOuter=d=200==H(l.width),C.removeChild(c)}}(),"string"==typeof c&&(c=document.querySelector(c)),c&&"object"==typeof c&&c.nodeType){var C=S(c);if("none"==C.display)return function(){for(var c={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},C=0;C<p;C++){c[u[C]]=0}return c}();var l={};l.width=c.offsetWidth,l.height=c.offsetHeight;for(var e=l.isBorderBox="border-box"==C.boxSizing,s=0;s<p;s++){var h=u[s],z=C[h],t=parseFloat(z);l[h]=isNaN(t)?0:t}var M=l.paddingLeft+l.paddingRight,i=l.paddingTop+l.paddingBottom,a=l.marginLeft+l.marginRight,n=l.marginTop+l.marginBottom,r=l.borderLeftWidth+l.borderRightWidth,o=l.borderTopWidth+l.borderBottomWidth,v=e&&d,V=H(C.width);!1!==V&&(l.width=V+(v?0:M+r));var L=H(C.height);return!1!==L&&(l.height=L+(v?0:i+o)),l.innerWidth=l.width-(M+r),l.innerHeight=l.height-(i+o),l.outerWidth=l.width+a,l.outerHeight=l.height+n,l}}var d,l="undefined"==typeof console?function(){}:function(c){console.error(c)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=u.length,m=!1;return f}),function(c,C){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",C):"object"==typeof module&&module.exports?module.exports=C():c.matchesSelector=C()}(window,function(){"use strict";var l=function(){var c=window.Element.prototype;if(c.matches)return"matches";if(c.matchesSelector)return"matchesSelector";for(var C=["webkit","moz","ms","o"],l=0;l<C.length;l++){var e=C[l]+"MatchesSelector";if(c[e])return e}}();return function(c,C){return c[l](C)}}),function(C,l){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(c){return l(C,c)}):"object"==typeof module&&module.exports?module.exports=l(C,require("desandro-matches-selector")):C.fizzyUIUtils=l(C,C.matchesSelector)}(window,function(i,h){var a={extend:function(c,C){for(var l in C)c[l]=C[l];return c},modulo:function(c,C){return(c%C+C)%C},makeArray:function(c){var C=[];if(Array.isArray(c))C=c;else if(c&&"object"==typeof c&&"number"==typeof c.length)for(var l=0;l<c.length;l++)C.push(c[l]);else C.push(c);return C},removeFrom:function(c,C){var l=c.indexOf(C);-1!=l&&c.splice(l,1)},getParent:function(c,C){for(;c.parentNode&&c!=document.body;)if(c=c.parentNode,h(c,C))return c},getQueryElement:function(c){return"string"==typeof c?document.querySelector(c):c},handleEvent:function(c){var C="on"+c.type;this[C]&&this[C](c)},filterFindElements:function(c,e){c=a.makeArray(c);var s=[];return c.forEach(function(c){if(c instanceof HTMLElement){if(!e)return void s.push(c);h(c,e)&&s.push(c);for(var C=c.querySelectorAll(e),l=0;l<C.length;l++)s.push(C[l])}}),s},debounceMethod:function(c,C,e){var s=c.prototype[C],h=C+"Timeout";c.prototype[C]=function(){var c=this[h];c&&clearTimeout(c);var C=arguments,l=this;this[h]=setTimeout(function(){s.apply(l,C),delete l[h]},e||100)}},docReady:function(c){var C=document.readyState;"complete"==C||"interactive"==C?setTimeout(c):document.addEventListener("DOMContentLoaded",c)},toDashed:function(c){return c.replace(/(.)([A-Z])/g,function(c,C,l){return C+"-"+l}).toLowerCase()}},n=i.console;return a.htmlInit=function(t,M){a.docReady(function(){var c=a.toDashed(M),s="data-"+c,C=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+c),e=a.makeArray(C).concat(a.makeArray(l)),h=s+"-options",z=i.jQuery;e.forEach(function(C){var c,l=C.getAttribute(s)||C.getAttribute(h);try{c=l&&JSON.parse(l)}catch(c){return void(n&&n.error("Error parsing "+s+" on "+C.className+": "+c))}var e=new t(C,c);z&&z.data(C,M,e)})})},a}),function(c,C){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],C):"object"==typeof module&&module.exports?module.exports=C(require("ev-emitter"),require("get-size")):(c.Outlayer={},c.Outlayer.Item=C(c.EvEmitter,c.getSize))}(window,function(c,C){"use strict";function l(c,C){c&&(this.element=c,this.layout=C,this.position={x:0,y:0},this._create())}var e=document.documentElement.style,s="string"==typeof e.transition?"transition":"WebkitTransition",h="string"==typeof e.transform?"transform":"WebkitTransform",z={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],t={transform:h,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},M=l.prototype=Object.create(c.prototype);M.constructor=l,M._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},M.handleEvent=function(c){var C="on"+c.type;this[C]&&this[C](c)},M.getSize=function(){this.size=C(this.element)},M.css=function(c){var C=this.element.style;for(var l in c){C[t[l]||l]=c[l]}},M.getPosition=function(){var c=getComputedStyle(this.element),C=this.layout._getOption("originLeft"),l=this.layout._getOption("originTop"),e=c[C?"left":"right"],s=c[l?"top":"bottom"],h=this.layout.size,z=-1!=e.indexOf("%")?parseFloat(e)/100*h.width:parseInt(e,10),t=-1!=s.indexOf("%")?parseFloat(s)/100*h.height:parseInt(s,10);z=isNaN(z)?0:z,t=isNaN(t)?0:t,z-=C?h.paddingLeft:h.paddingRight,t-=l?h.paddingTop:h.paddingBottom,this.position.x=z,this.position.y=t},M.layoutPosition=function(){var c=this.layout.size,C={},l=this.layout._getOption("originLeft"),e=this.layout._getOption("originTop"),s=l?"paddingLeft":"paddingRight",h=l?"left":"right",z=l?"right":"left",t=this.position.x+c[s];C[h]=this.getXValue(t),C[z]="";var M=e?"paddingTop":"paddingBottom",i=e?"top":"bottom",a=e?"bottom":"top",n=this.position.y+c[M];C[i]=this.getYValue(n),C[a]="",this.css(C),this.emitEvent("layout",[this])},M.getXValue=function(c){var C=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!C?c/this.layout.size.width*100+"%":c+"px"},M.getYValue=function(c){var C=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&C?c/this.layout.size.height*100+"%":c+"px"},M._transitionTo=function(c,C){this.getPosition();var l=this.position.x,e=this.position.y,s=parseInt(c,10),h=parseInt(C,10),z=s===this.position.x&&h===this.position.y;if(this.setPosition(c,C),!z||this.isTransitioning){var t=c-l,M=C-e,i={};i.transform=this.getTranslate(t,M),this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},M.getTranslate=function(c,C){return"translate3d("+(c=this.layout._getOption("originLeft")?c:-c)+"px, "+(C=this.layout._getOption("originTop")?C:-C)+"px, 0)"},M.goTo=function(c,C){this.setPosition(c,C),this.layoutPosition()},M.moveTo=M._transitionTo,M.setPosition=function(c,C){this.position.x=parseInt(c,10),this.position.y=parseInt(C,10)},M._nonTransition=function(c){for(var C in this.css(c.to),c.isCleaning&&this._removeStyles(c.to),c.onTransitionEnd)c.onTransitionEnd[C].call(this)},M.transition=function(c){if(parseFloat(this.layout.options.transitionDuration)){var C=this._transn;for(var l in c.onTransitionEnd)C.onEnd[l]=c.onTransitionEnd[l];for(l in c.to)C.ingProperties[l]=!0,c.isCleaning&&(C.clean[l]=!0);if(c.from){this.css(c.from);this.element.offsetHeight;null}this.enableTransition(c.to),this.css(c.to),this.isTransitioning=!0}else this._nonTransition(c)};var i="opacity,"+h.replace(/([A-Z])/g,function(c){return"-"+c.toLowerCase()});M.enableTransition=function(){if(!this.isTransitioning){var c=this.layout.options.transitionDuration;c="number"==typeof c?c+"ms":c,this.css({transitionProperty:i,transitionDuration:c,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(z,this,!1)}},M.onwebkitTransitionEnd=function(c){this.ontransitionend(c)},M.onotransitionend=function(c){this.ontransitionend(c)};var a={"-webkit-transform":"transform"};M.ontransitionend=function(c){if(c.target===this.element){var C=this._transn,l=a[c.propertyName]||c.propertyName;if(delete C.ingProperties[l],function(c){for(var C in c)return!1;return!null}(C.ingProperties)&&this.disableTransition(),l in C.clean&&(this.element.style[c.propertyName]="",delete C.clean[l]),l in C.onEnd)C.onEnd[l].call(this),delete C.onEnd[l];this.emitEvent("transitionEnd",[this])}},M.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(z,this,!1),this.isTransitioning=!1},M._removeStyles=function(c){var C={};for(var l in c)C[l]="";this.css(C)};var n={transitionProperty:"",transitionDuration:"",transitionDelay:""};return M.removeTransitionStyles=function(){this.css(n)},M.stagger=function(c){c=isNaN(c)?0:c,this.staggerDelay=c+"ms"},M.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},M.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},M.reveal=function(){delete this.isHidden,this.css({display:""});var c=this.layout.options,C={};C[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:c.hiddenStyle,to:c.visibleStyle,isCleaning:!0,onTransitionEnd:C})},M.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},M.getHideRevealTransitionEndProperty=function(c){var C=this.layout.options[c];if(C.opacity)return"opacity";for(var l in C)return l},M.hide=function(){this.isHidden=!0,this.css({display:""});var c=this.layout.options,C={};C[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:c.visibleStyle,to:c.hiddenStyle,isCleaning:!0,onTransitionEnd:C})},M.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},M.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l}),function(s,h){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,C,l,e){return h(s,c,C,l,e)}):"object"==typeof module&&module.exports?module.exports=h(s,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):s.Outlayer=h(s,s.EvEmitter,s.getSize,s.fizzyUIUtils,s.Outlayer.Item)}(window,function(c,C,s,h,e){"use strict";function z(c,C){var l=h.getQueryElement(c);if(l){this.element=l,i&&(this.$element=i(this.element)),this.options=h.extend({},this.constructor.defaults),this.option(C);var e=++a;this.element.outlayerGUID=e,(n[e]=this)._create(),this._getOption("initLayout")&&this.layout()}else M&&M.error("Bad element for "+this.constructor.namespace+": "+(l||c))}function t(c){function C(){c.apply(this,arguments)}return(C.prototype=Object.create(c.prototype)).constructor=C}function l(){}var M=c.console,i=c.jQuery,a=0,n={};z.namespace="outlayer",z.Item=e,z.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var r=z.prototype;h.extend(r,C.prototype),r.option=function(c){h.extend(this.options,c)},r._getOption=function(c){var C=this.constructor.compatOptions[c];return C&&void 0!==this.options[C]?this.options[C]:this.options[c]},z.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},r._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),h.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},r.reloadItems=function(){this.items=this._itemize(this.element.children)},r._itemize=function(c){for(var C=this._filterFindItemElements(c),l=this.constructor.Item,e=[],s=0;s<C.length;s++){var h=new l(C[s],this);e.push(h)}return e},r._filterFindItemElements=function(c){return h.filterFindElements(c,this.options.itemSelector)},r.getItemElements=function(){return this.items.map(function(c){return c.element})},r.layout=function(){this._resetLayout(),this._manageStamps();var c=this._getOption("layoutInstant"),C=void 0!==c?c:!this._isLayoutInited;this.layoutItems(this.items,C),this._isLayoutInited=!0},r._init=r.layout,r._resetLayout=function(){this.getSize()},r.getSize=function(){this.size=s(this.element)},r._getMeasurement=function(c,C){var l,e=this.options[c];e?("string"==typeof e?l=this.element.querySelector(e):e instanceof HTMLElement&&(l=e),this[c]=l?s(l)[C]:e):this[c]=0},r.layoutItems=function(c,C){c=this._getItemsForLayout(c),this._layoutItems(c,C),this._postLayout()},r._getItemsForLayout=function(c){return c.filter(function(c){return!c.isIgnored})},r._layoutItems=function(c,l){if(this._emitCompleteOnItems("layout",c),c&&c.length){var e=[];c.forEach(function(c){var C=this._getItemLayoutPosition(c);C.item=c,C.isInstant=l||c.isLayoutInstant,e.push(C)},this),this._processLayoutQueue(e)}},r._getItemLayoutPosition=function(){return{x:0,y:0}},r._processLayoutQueue=function(c){this.updateStagger(),c.forEach(function(c,C){this._positionItem(c.item,c.x,c.y,c.isInstant,C)},this)},r.updateStagger=function(){var c=this.options.stagger;return null==c?void(this.stagger=0):(this.stagger=function(c){if("number"==typeof c)return c;var C=c.match(/(^\d*\.?\d*)(\w*)/),l=C&&C[1],e=C&&C[2];return l.length?(l=parseFloat(l))*(o[e]||1):0}(c),this.stagger)},r._positionItem=function(c,C,l,e,s){e?c.goTo(C,l):(c.stagger(s*this.stagger),c.moveTo(C,l))},r._postLayout=function(){this.resizeContainer()},r.resizeContainer=function(){if(this._getOption("resizeContainer")){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1))}},r._getContainerSize=l,r._setContainerMeasure=function(c,C){if(void 0!==c){var l=this.size;l.isBorderBox&&(c+=C?l.paddingLeft+l.paddingRight+l.borderLeftWidth+l.borderRightWidth:l.paddingBottom+l.paddingTop+l.borderTopWidth+l.borderBottomWidth),c=Math.max(c,0),this.element.style[C?"width":"height"]=c+"px"}},r._emitCompleteOnItems=function(C,c){function l(){s.dispatchEvent(C+"Complete",null,[c])}function e(){++z==h&&l()}var s=this,h=c.length;if(c&&h){var z=0;c.forEach(function(c){c.once(C,e)})}else l()},r.dispatchEvent=function(c,C,l){var e=C?[C].concat(l):l;if(this.emitEvent(c,e),i)if(this.$element=this.$element||i(this.element),C){var s=i.Event(C);s.type=c,this.$element.trigger(s,l)}else this.$element.trigger(c,l)},r.ignore=function(c){var C=this.getItem(c);C&&(C.isIgnored=!0)},r.unignore=function(c){var C=this.getItem(c);C&&delete C.isIgnored},r.stamp=function(c){(c=this._find(c))&&(this.stamps=this.stamps.concat(c),c.forEach(this.ignore,this))},r.unstamp=function(c){(c=this._find(c))&&c.forEach(function(c){h.removeFrom(this.stamps,c),this.unignore(c)},this)},r._find=function(c){if(c)return"string"==typeof c&&(c=this.element.querySelectorAll(c)),h.makeArray(c)},r._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},r._getBoundingRect=function(){var c=this.element.getBoundingClientRect(),C=this.size;this._boundingRect={left:c.left+C.paddingLeft+C.borderLeftWidth,top:c.top+C.paddingTop+C.borderTopWidth,right:c.right-(C.paddingRight+C.borderRightWidth),bottom:c.bottom-(C.paddingBottom+C.borderBottomWidth)}},r._manageStamp=l,r._getElementOffset=function(c){var C=c.getBoundingClientRect(),l=this._boundingRect,e=s(c);return{left:C.left-l.left-e.marginLeft,top:C.top-l.top-e.marginTop,right:l.right-C.right-e.marginRight,bottom:l.bottom-C.bottom-e.marginBottom}},r.handleEvent=h.handleEvent,r.bindResize=function(){c.addEventListener("resize",this),this.isResizeBound=!0},r.unbindResize=function(){c.removeEventListener("resize",this),this.isResizeBound=!1},r.onresize=function(){this.resize()},h.debounceMethod(z,"onresize",100),r.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},r.needsResizeLayout=function(){var c=s(this.element);return this.size&&c&&c.innerWidth!==this.size.innerWidth},r.addItems=function(c){var C=this._itemize(c);return C.length&&(this.items=this.items.concat(C)),C},r.appended=function(c){var C=this.addItems(c);C.length&&(this.layoutItems(C,!0),this.reveal(C))},r.prepended=function(c){var C=this._itemize(c);if(C.length){var l=this.items.slice(0);this.items=C.concat(l),this._resetLayout(),this._manageStamps(),this.layoutItems(C,!0),this.reveal(C),this.layoutItems(l)}},r.reveal=function(c){if(this._emitCompleteOnItems("reveal",c),c&&c.length){var l=this.updateStagger();c.forEach(function(c,C){c.stagger(C*l),c.reveal()})}},r.hide=function(c){if(this._emitCompleteOnItems("hide",c),c&&c.length){var l=this.updateStagger();c.forEach(function(c,C){c.stagger(C*l),c.hide()})}},r.revealItemElements=function(c){var C=this.getItems(c);this.reveal(C)},r.hideItemElements=function(c){var C=this.getItems(c);this.hide(C)},r.getItem=function(c){for(var C=0;C<this.items.length;C++){var l=this.items[C];if(l.element==c)return l}},r.getItems=function(c){c=h.makeArray(c);var l=[];return c.forEach(function(c){var C=this.getItem(c);C&&l.push(C)},this),l},r.remove=function(c){var C=this.getItems(c);this._emitCompleteOnItems("remove",C),C&&C.length&&C.forEach(function(c){c.remove(),h.removeFrom(this.items,c)},this)},r.destroy=function(){var c=this.element.style;c.height="",c.position="",c.width="",this.items.forEach(function(c){c.destroy()}),this.unbindResize();var C=this.element.outlayerGUID;delete n[C],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},z.data=function(c){var C=(c=h.getQueryElement(c))&&c.outlayerGUID;return C&&n[C]},z.create=function(c,C){var l=t(z);return l.defaults=h.extend({},z.defaults),h.extend(l.defaults,C),l.compatOptions=h.extend({},z.compatOptions),l.namespace=c,l.data=z.data,l.Item=t(e),h.htmlInit(l,c),i&&i.bridget&&i.bridget(c,l),l};var o={ms:1,s:1e3};return z.Item=e,z}),function(c,C){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],C):"object"==typeof module&&module.exports?module.exports=C(require("outlayer")):(c.Isotope=c.Isotope||{},c.Isotope.Item=C(c.Outlayer))}(window,function(c){"use strict";function C(){c.Item.apply(this,arguments)}var l=C.prototype=Object.create(c.Item.prototype),e=l._create;l._create=function(){this.id=this.layout.itemGUID++,e.call(this),this.sortData={}},l.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var c=this.layout.options.getSortData,C=this.layout._sorters;for(var l in c){var e=C[l];this.sortData[l]=e(this.element,this)}}};var s=l.destroy;return l.destroy=function(){s.apply(this,arguments),this.css({display:""})},C}),function(c,C){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],C):"object"==typeof module&&module.exports?module.exports=C(require("get-size"),require("outlayer")):(c.Isotope=c.Isotope||{},c.Isotope.LayoutMode=C(c.getSize,c.Outlayer))}(window,function(C,l){"use strict";function e(c){(this.isotope=c)&&(this.options=c.options[this.namespace],this.element=c.element,this.items=c.filteredItems,this.size=c.size)}var s=e.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(c){s[c]=function(){return l.prototype[c].apply(this.isotope,arguments)}}),s.needsVerticalResizeLayout=function(){var c=C(this.isotope.element);return this.isotope.size&&c&&c.innerHeight!=this.isotope.size.innerHeight},s._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},s.getColumnWidth=function(){this.getSegmentSize("column","Width")},s.getRowHeight=function(){this.getSegmentSize("row","Height")},s.getSegmentSize=function(c,C){var l=c+C,e="outer"+C;if(this._getMeasurement(l,e),!this[l]){var s=this.getFirstItemSize();this[l]=s&&s[e]||this.isotope.size["inner"+C]}},s.getFirstItemSize=function(){var c=this.isotope.filteredItems[0];return c&&c.element&&C(c.element)},s.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},s.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},e.modes={},e.create=function(c,C){function l(){e.apply(this,arguments)}return(l.prototype=Object.create(s)).constructor=l,C&&(l.options=C),e.modes[l.prototype.namespace=c]=l},e}),function(c,C){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],C):"object"==typeof module&&module.exports?module.exports=C(require("outlayer"),require("get-size")):c.Masonry=C(c.Outlayer,c.getSize)}(window,function(c,i){var C=c.create("masonry");C.compatOptions.fitWidth="isFitWidth";var l=C.prototype;return l._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var c=0;c<this.cols;c++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},l.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var c=this.items[0],C=c&&c.element;this.columnWidth=C&&i(C).outerWidth||this.containerWidth}var l=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,s=e/l,h=l-e%l;s=Math[h&&h<1?"round":"floor"](s),this.cols=Math.max(s,1)},l.getContainerWidth=function(){var c=this._getOption("fitWidth")?this.element.parentNode:this.element,C=i(c);this.containerWidth=C&&C.innerWidth},l._getItemLayoutPosition=function(c){c.getSize();var C=c.size.outerWidth%this.columnWidth,l=Math[C&&C<1?"round":"ceil"](c.size.outerWidth/this.columnWidth);l=Math.min(l,this.cols);for(var e=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](l,c),s={x:this.columnWidth*e.col,y:e.y},h=e.y+c.size.outerHeight,z=l+e.col,t=e.col;t<z;t++)this.colYs[t]=h;return s},l._getTopColPosition=function(c){var C=this._getTopColGroup(c),l=Math.min.apply(Math,C);return{col:C.indexOf(l),y:l}},l._getTopColGroup=function(c){if(c<2)return this.colYs;for(var C=[],l=this.cols+1-c,e=0;e<l;e++)C[e]=this._getColGroupY(e,c);return C},l._getColGroupY=function(c,C){if(C<2)return this.colYs[c];var l=this.colYs.slice(c,c+C);return Math.max.apply(Math,l)},l._getHorizontalColPosition=function(c,C){var l=this.horizontalColIndex%this.cols;l=1<c&&l+c>this.cols?0:l;var e=C.size.outerWidth&&C.size.outerHeight;return this.horizontalColIndex=e?l+c:this.horizontalColIndex,{col:l,y:this._getColGroupY(l,c)}},l._manageStamp=function(c){var C=i(c),l=this._getElementOffset(c),e=this._getOption("originLeft")?l.left:l.right,s=e+C.outerWidth,h=Math.floor(e/this.columnWidth);h=Math.max(0,h);var z=Math.floor(s/this.columnWidth);z-=s%this.columnWidth?0:1,z=Math.min(this.cols-1,z);for(var t=(this._getOption("originTop")?l.top:l.bottom)+C.outerHeight,M=h;M<=z;M++)this.colYs[M]=Math.max(t,this.colYs[M])},l._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var c={height:this.maxY};return this._getOption("fitWidth")&&(c.width=this._getContainerFitWidth()),c},l._getContainerFitWidth=function(){for(var c=0,C=this.cols;--C&&0===this.colYs[C];)c++;return(this.cols-c)*this.columnWidth-this.gutter},l.needsResizeLayout=function(){var c=this.containerWidth;return this.getContainerWidth(),c!=this.containerWidth},C}),function(c,C){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],C):"object"==typeof module&&module.exports?module.exports=C(require("../layout-mode"),require("masonry-layout")):C(c.Isotope.LayoutMode,c.Masonry)}(window,function(c,C){"use strict";var l=c.create("masonry"),e=l.prototype,s={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var h in C.prototype)s[h]||(e[h]=C.prototype[h]);var z=e.measureColumns;e.measureColumns=function(){this.items=this.isotope.filteredItems,z.call(this)};var t=e._getOption;return e._getOption=function(c){return"fitWidth"==c?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:t.apply(this.isotope,arguments)},l}),function(c,C){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],C):"object"==typeof exports?module.exports=C(require("../layout-mode")):C(c.Isotope.LayoutMode)}(window,function(c){"use strict";var C=c.create("fitRows"),l=C.prototype;return l._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},l._getItemLayoutPosition=function(c){c.getSize();var C=c.size.outerWidth+this.gutter,l=this.isotope.size.innerWidth+this.gutter;0!==this.x&&C+this.x>l&&(this.x=0,this.y=this.maxY);var e={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+c.size.outerHeight),this.x+=C,e},l._getContainerSize=function(){return{height:this.maxY}},C}),function(c,C){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],C):"object"==typeof module&&module.exports?module.exports=C(require("../layout-mode")):C(c.Isotope.LayoutMode)}(window,function(c){"use strict";var C=c.create("vertical",{horizontalAlignment:0}),l=C.prototype;return l._resetLayout=function(){this.y=0},l._getItemLayoutPosition=function(c){c.getSize();var C=(this.isotope.size.innerWidth-c.size.outerWidth)*this.options.horizontalAlignment,l=this.y;return this.y+=c.size.outerHeight,{x:C,y:l}},l._getContainerSize=function(){return{height:this.y}},C}),function(z,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,C,l,e,s,h){return t(z,c,C,l,e,s,h)}):"object"==typeof module&&module.exports?module.exports=t(z,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):z.Isotope=t(z,z.Outlayer,z.getSize,z.matchesSelector,z.fizzyUIUtils,z.Isotope.Item,z.Isotope.LayoutMode)}(window,function(c,l,C,e,h,s,z){var t=c.jQuery,M=String.prototype.trim?function(c){return c.trim()}:function(c){return c.replace(/^\s+|\s+$/g,"")},i=l.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});i.Item=s,i.LayoutMode=z;var a=i.prototype;a._create=function(){for(var c in this.itemGUID=0,this._sorters={},this._getSorters(),l.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],z.modes)this._initLayoutMode(c)},a.reloadItems=function(){this.itemGUID=0,l.prototype.reloadItems.call(this)},a._itemize=function(){for(var c=l.prototype._itemize.apply(this,arguments),C=0;C<c.length;C++){c[C].id=this.itemGUID++}return this._updateItemsSortData(c),c},a._initLayoutMode=function(c){var C=z.modes[c],l=this.options[c]||{};this.options[c]=C.options?h.extend(C.options,l):l,this.modes[c]=new C(this)},a.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},a._layout=function(){var c=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,c),this._isLayoutInited=!0},a.arrange=function(c){this.option(c),this._getIsInstant();var C=this._filter(this.items);this.filteredItems=C.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[C]):this._hideReveal(C),this._sort(),this._layout()},a._init=a.arrange,a._hideReveal=function(c){this.reveal(c.needReveal),this.hide(c.needHide)},a._getIsInstant=function(){var c=this._getOption("layoutInstant"),C=void 0!==c?c:!this._isLayoutInited;return this._isInstant=C},a._bindArrangeComplete=function(){function c(){C&&l&&e&&s.dispatchEvent("arrangeComplete",null,[s.filteredItems])}var C,l,e,s=this;this.once("layoutComplete",function(){C=!0,c()}),this.once("hideComplete",function(){l=!0,c()}),this.once("revealComplete",function(){e=!0,c()})},a._filter=function(c){var C=this.options.filter;C=C||"*";for(var l=[],e=[],s=[],h=this._getFilterTest(C),z=0;z<c.length;z++){var t=c[z];if(!t.isIgnored){var M=h(t);M&&l.push(t),M&&t.isHidden?e.push(t):M||t.isHidden||s.push(t)}}return{matches:l,needReveal:e,needHide:s}},a._getFilterTest=function(C){return t&&this.options.isJQueryFiltering?function(c){return t(c.element).is(C)}:"function"==typeof C?function(c){return C(c.element)}:function(c){return e(c.element,C)}},a.updateSortData=function(c){var C;C=c?(c=h.makeArray(c),this.getItems(c)):this.items,this._getSorters(),this._updateItemsSortData(C)},a._getSorters=function(){var c=this.options.getSortData;for(var C in c){var l=c[C];this._sorters[C]=n(l)}},a._updateItemsSortData=function(c){for(var C=c&&c.length,l=0;C&&l<C;l++){c[l].updateSortData()}};var n=function(c){if("string"!=typeof c)return c;var C=M(c).split(" "),l=C[0],e=l.match(/^\[(.+)\]$/),s=function(C,l){return C?function(c){return c.getAttribute(C)}:function(c){var C=c.querySelector(l);return C&&C.textContent}}(e&&e[1],l),h=i.sortDataParsers[C[1]];return h?function(c){return c&&h(s(c))}:function(c){return c&&s(c)}};i.sortDataParsers={parseInt:function(c){return parseInt(c,10)},parseFloat:function(c){return parseFloat(c)}},a._sort=function(){if(this.options.sortBy){var c=h.makeArray(this.options.sortBy);this._getIsSameSortBy(c)||(this.sortHistory=c.concat(this.sortHistory));var C=function(z,t){return function(c,C){for(var l=0;l<z.length;l++){var e=z[l],s=c.sortData[e],h=C.sortData[e];if(h<s||s<h)return(h<s?1:-1)*((void 0!==t[e]?t[e]:t)?1:-1)}return 0}}(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(C)}},a._getIsSameSortBy=function(c){for(var C=0;C<c.length;C++)if(c[C]!=this.sortHistory[C])return!1;return!0},a._mode=function(){var c=this.options.layoutMode,C=this.modes[c];if(!C)throw new Error("No layout mode: "+c);return C.options=this.options[c],C},a._resetLayout=function(){l.prototype._resetLayout.call(this),this._mode()._resetLayout()},a._getItemLayoutPosition=function(c){return this._mode()._getItemLayoutPosition(c)},a._manageStamp=function(c){this._mode()._manageStamp(c)},a._getContainerSize=function(){return this._mode()._getContainerSize()},a.needsResizeLayout=function(){return this._mode().needsResizeLayout()},a.appended=function(c){var C=this.addItems(c);if(C.length){var l=this._filterRevealAdded(C);this.filteredItems=this.filteredItems.concat(l)}},a.prepended=function(c){var C=this._itemize(c);if(C.length){this._resetLayout(),this._manageStamps();var l=this._filterRevealAdded(C);this.layoutItems(this.filteredItems),this.filteredItems=l.concat(this.filteredItems),this.items=C.concat(this.items)}},a._filterRevealAdded=function(c){var C=this._filter(c);return this.hide(C.needHide),this.reveal(C.matches),this.layoutItems(C.matches,!0),C.matches},a.insert=function(c){var C=this.addItems(c);if(C.length){var l,e,s=C.length;for(l=0;l<s;l++)e=C[l],this.element.appendChild(e.element);var h=this._filter(C).matches;for(l=0;l<s;l++)C[l].isLayoutInstant=!0;for(this.arrange(),l=0;l<s;l++)delete C[l].isLayoutInstant;this.reveal(h)}};var r=a.remove;return a.remove=function(c){c=h.makeArray(c);var C=this.getItems(c);r.call(this,c);for(var l=C&&C.length,e=0;l&&e<l;e++){var s=C[e];h.removeFrom(this.filteredItems,s)}},a.shuffle=function(){for(var c=0;c<this.items.length;c++){this.items[c].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},a._noTransition=function(c,C){var l=this.options.transitionDuration;this.options.transitionDuration=0;var e=c.apply(this,C);return this.options.transitionDuration=l,e},a.getFilteredItemElements=function(){return this.filteredItems.map(function(c){return c.element})},i}),$(window).on("load",function(){"use strict";$(function(){var h=$(".masonry");h.isotope({masonry:{}}),$("#options .option-set").find("a").click(function(){var c=$(this);if(c.hasClass("selected"))return!1;var C=c.parents(".option-set");C.find(".selected").removeClass("selected"),c.addClass("selected");var l={},e=C.attr("data-option-key"),s=c.attr("data-option-value");return s="false"!==s&&s,l[e]=s,h.isotope(l),!1})})});var scrolltotop={setting:{startline:400,scrollto:0,scrollduration:1e3,fadeduration:[500,100]},controlHTML:'<i class="ti-arrow-up"></i>',controlattrs:{offsetx:5,offsety:10},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var c=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);c="string"==typeof c&&1==jQuery("#"+c).length?jQuery("#"+c).offset().top:0,this.$body.animate({scrollTop:c},this.setting.scrollduration)},keepfixed:function(){var c=jQuery(window),C=c.scrollLeft()+c.width()-this.$control.width()-this.controlattrs.offsetx,l=c.scrollTop()+c.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:C+"px",top:l+"px"})},togglecontrol:function(){var c=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=c>=this.setting.startline,this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):0==this.state.shouldvisible&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(c){var C=scrolltotop,l=document.all;C.cssfixedsupport=!l||l&&"CSS1Compat"==document.compatMode&&window.XMLHttpRequest,C.$body=window.opera?"CSS1Compat"==document.compatMode?c("html"):c("body"):c("html,body"),C.$control=c('<div id="topcontrol">'+C.controlHTML+"</div>").css({position:C.cssfixedsupport?"fixed":"absolute",bottom:C.controlattrs.offsety,right:C.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Scroll Back to Top"}).click(function(){return C.scrollup(),!1}).appendTo("body"),document.all&&!window.XMLHttpRequest&&""!=C.$control.text()&&C.$control.css({width:C.$control.width()}),C.togglecontrol(),c('a[href="'+C.anchorkeyword+'"]').click(function(){return C.scrollup(),!1}),c(window).bind("scroll resize",function(c){C.togglecontrol()})})}};scrolltotop.init();