text: !function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(x,t){"use strict";var e=[],T=x.document,n=Object.getPrototypeOf,a=e.slice,m=e.concat,l=e.push,s=e.indexOf,i={},o=i.toString,f=i.hasOwnProperty,r=f.toString,c=r.call(Object),g={};function v(t,e){var i=(e=e||T).createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}var h="3.2.1",k=function(t,e){return new k.fn.init(t,e)},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,d=/^-ms-/,p=/-([a-z])/g,y=function(t,e){return e.toUpperCase()};function _(t){var e=!!t&&"length"in t&&t.length,i=k.type(t);return"function"!==i&&!k.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}k.fn=k.prototype={jquery:h,constructor:k,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(i){return this.pushStack(k.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},k.extend=k.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||k.isFunction(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=r[e],r!==(n=t[e])&&(c&&n&&(k.isPlainObject(n)||(s=Array.isArray(n)))?(s?(s=!1,o=i&&Array.isArray(i)?i:[]):o=i&&k.isPlainObject(i)?i:{},r[e]=k.extend(c,o,n)):void 0!==n&&(r[e]=n));return r},k.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===k.type(t)},isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==o.call(t)||(e=n(t))&&("function"!=typeof(i=f.call(e,"constructor")&&e.constructor)||r.call(i)!==c))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t},globalEval:function(t){v(t)},camelCase:function(t){return t.replace(d,"ms-").replace(p,y)},each:function(t,e){var i,n=0;if(_(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(u,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(_(Object(t))?k.merge(i,"string"==typeof t?[t]:t):l.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:s.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=0,r=[];if(_(t))for(n=t.length;o<n;o++)null!=(s=e(t[o],o,i))&&r.push(s);else for(o in t)null!=(s=e(t[o],o,i))&&r.push(s);return m.apply([],r)},guid:1,proxy:function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),k.isFunction(t))return n=a.call(arguments,2),(s=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||k.guid++,s},now:Date.now,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=e[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var b=function(i){var t,p,b,o,s,f,u,m,w,l,c,C,x,r,T,g,a,h,v,k="sizzle"+1*new Date,y=i.document,E=0,n=0,d=rt(),_=rt(),D=rt(),S=function(t,e){return t===e&&(c=!0),0},A={}.hasOwnProperty,e=[],I=e.pop,P=e.push,N=e.push,O=e.slice,M=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+j+"*("+L+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+j+"*\\]",R=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",H=new RegExp(j+"+","g"),q=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),U=new RegExp("^"+j+"*,"+j+"*"),z=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),W=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),B=new RegExp(R),Q=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),tt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},nt=function(){C()},st=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{N.apply(e=O.call(y.childNodes),y.childNodes),e[y.childNodes.length].nodeType}catch(t){N={apply:e.length?function(t,e){P.apply(t,O.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function ot(t,e,i,n){var s,o,r,a,l,c,h,u=e&&e.ownerDocument,d=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return i;if(!n&&((e?e.ownerDocument||e:y)!==x&&C(e),e=e||x,T)){if(11!==d&&(l=G.exec(t)))if(s=l[1]){if(9===d){if(!(r=e.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(u&&(r=u.getElementById(s))&&v(e,r)&&r.id===s)return i.push(r),i}else{if(l[2])return N.apply(i,e.getElementsByTagName(t)),i;if((s=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return N.apply(i,e.getElementsByClassName(s)),i}if(p.qsa&&!D[t+" "]&&(!g||!g.test(t))){if(1!==d)u=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(et,it):e.setAttribute("id",a=k),o=(c=f(t)).length;o--;)c[o]="#"+a+" "+vt(c[o]);h=c.join(","),u=Z.test(t)&&mt(e.parentNode)||e}if(h)try{return N.apply(i,u.querySelectorAll(h)),i}catch(t){}finally{a===k&&e.removeAttribute("id")}}}return m(t.replace(q,"$1"),e,i,n)}function rt(){var n=[];return function t(e,i){return n.push(e+" ")>b.cacheLength&&delete t[n.shift()],t[e+" "]=i}}function at(t){return t[k]=!0,t}function lt(t){var e=x.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var i=t.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function dt(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function pt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ft(r){return at(function(o){return o=+o,at(function(t,e){for(var i,n=r([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=ot.support={},s=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},C=ot.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:y;return n!==x&&9===n.nodeType&&n.documentElement&&(r=(x=n).documentElement,T=!s(x),y!==x&&(i=x.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",nt,!1):i.attachEvent&&i.attachEvent("onunload",nt)),p.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=lt(function(t){return t.appendChild(x.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=X.test(x.getElementsByClassName),p.getById=lt(function(t){return r.appendChild(t).id=k,!x.getElementsByName||!x.getElementsByName(k).length}),p.getById?(b.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var i=e.getElementById(t);return i?[i]:[]}}):(b.filter.ID=function(t){var i=t.replace(J,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),b.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},b.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&T)return e.getElementsByClassName(t)},a=[],g=[],(p.qsa=X.test(x.querySelectorAll))&&(lt(function(t){r.appendChild(t).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+$+")"),t.querySelectorAll("[id~="+k+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+k+"+*").length||g.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=x.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),r.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=X.test(h=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&lt(function(t){p.disconnectedMatch=h.call(t,"*"),h.call(t,"[s!='']:x"),a.push("!=",R)}),g=g.length&&new RegExp(g.join("|")),a=a.length&&new RegExp(a.join("|")),e=X.test(r.compareDocumentPosition),v=e||X.test(r.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},S=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===i?t===x||t.ownerDocument===y&&v(y,t)?-1:e===x||e.ownerDocument===y&&v(y,e)?1:l?M(l,t)-M(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===x?-1:e===x?1:s?-1:o?1:l?M(l,t)-M(l,e):0;if(s===o)return ht(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ht(r[n],a[n]):r[n]===y?-1:a[n]===y?1:0}),x},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==x&&C(t),e=e.replace(W,"='$1']"),p.matchesSelector&&T&&!D[e+" "]&&(!a||!a.test(e))&&(!g||!g.test(e)))try{var i=h.call(t,e);if(i||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0<ot(e,x,null,[t]).length},ot.contains=function(t,e){return(t.ownerDocument||t)!==x&&C(t),v(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==x&&C(t);var i=b.attrHandle[e.toLowerCase()],n=i&&A.call(b.attrHandle,e.toLowerCase())?i(t,e,!T):void 0;return void 0!==n?n:p.attributes||!T?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},ot.escape=function(t){return(t+"").replace(et,it)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,i=[],n=0,s=0;if(c=!p.detectDuplicates,l=!p.sortStable&&t.slice(0),t.sort(S),c){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return l=null,t},o=ot.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=o(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=o(e);return i},(b=ot.selectors={cacheLength:50,createPseudo:at,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(J,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&B.test(i)&&(e=f(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=d[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&d(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(t){var e=ot.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexOf(s):"*="===n?s&&-1<e.indexOf(s):"$="===n?s&&e.slice(-s.length)===s:"~="===n?-1<(" "+e.replace(H," ")+" ").indexOf(s):"|="===n&&(e===s||e.slice(0,s.length+1)===s+"-"))}},CHILD:function(f,t,e,m,g){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),_="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,i){var n,s,o,r,a,l,c=v!==y?"nextSibling":"previousSibling",h=t.parentNode,u=_&&t.nodeName.toLowerCase(),d=!i&&!_,p=!1;if(h){if(v){for(;c;){for(r=t;r=r[c];)if(_?r.nodeName.toLowerCase()===u:1===r.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?h.firstChild:h.lastChild],y&&d){for(p=(a=(n=(s=(o=(r=h)[k]||(r[k]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]||[])[0]===E&&n[1])&&n[2],r=a&&h.childNodes[a];r=++a&&r&&r[c]||(p=a=0)||l.pop();)if(1===r.nodeType&&++p&&r===t){s[f]=[E,a,p];break}}else if(d&&(p=a=(n=(s=(o=(r=t)[k]||(r[k]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]||[])[0]===E&&n[1]),!1===p)for(;(r=++a&&r&&r[c]||(p=a=0)||l.pop())&&((_?r.nodeName.toLowerCase()!==u:1!==r.nodeType)||!++p||(d&&((s=(o=r[k]||(r[k]={}))[r.uniqueID]||(o[r.uniqueID]={}))[f]=[E,p]),r!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,o){var e,r=b.pseudos[t]||b.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[k]?r(o):1<r.length?(e=[t,t,"",o],b.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,e){for(var i,n=r(t,o),s=n.length;s--;)t[i=M(t,n[s])]=!(e[i]=n[s])}):function(t){return r(t,0,e)}):r}},pseudos:{not:at(function(t){var n=[],s=[],a=u(t.replace(q,"$1"));return a[k]?at(function(t,e,i,n){for(var s,o=a(t,null,n,[]),r=t.length;r--;)(s=o[r])&&(t[r]=!(e[r]=s))}):function(t,e,i){return n[0]=t,a(n,null,i,s),n[0]=null,!s.pop()}}),has:at(function(e){return function(t){return 0<ot(e,t).length}}),contains:at(function(e){return e=e.replace(J,tt),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:at(function(i){return Q.test(i||"")||ot.error("unsupported lang: "+i),i=i.replace(J,tt).toLowerCase(),function(t){var e;do{if(e=T?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===r},focus:function(t){return t===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:pt(!1),disabled:pt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft(function(){return[0]}),last:ft(function(t,e){return[e-1]}),eq:ft(function(t,e,i){return[i<0?i+e:i]}),even:ft(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:ft(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:ft(function(t,e,i){for(var n=i<0?i+e:i;0<=--n;)t.push(n);return t}),gt:ft(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[t]=ut(t);for(t in{submit:!0,reset:!0})b.pseudos[t]=dt(t);function gt(){}function vt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function yt(a,t,e){var l=t.dir,c=t.next,h=c||l,u=e&&"parentNode"===h,d=n++;return t.first?function(t,e,i){for(;t=t[l];)if(1===t.nodeType||u)return a(t,e,i);return!1}:function(t,e,i){var n,s,o,r=[E,d];if(i){for(;t=t[l];)if((1===t.nodeType||u)&&a(t,e,i))return!0}else for(;t=t[l];)if(1===t.nodeType||u)if(s=(o=t[k]||(t[k]={}))[t.uniqueID]||(o[t.uniqueID]={}),c&&c===t.nodeName.toLowerCase())t=t[l]||t;else{if((n=s[h])&&n[0]===E&&n[1]===d)return r[2]=n[2];if((s[h]=r)[2]=a(t,e,i))return!0}return!1}}function _t(s){return 1<s.length?function(t,e,i){for(var n=s.length;n--;)if(!s[n](t,e,i))return!1;return!0}:s[0]}function bt(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),c&&e.push(a)));return r}function wt(p,f,m,g,v,t){return g&&!g[k]&&(g=wt(g)),v&&!v[k]&&(v=wt(v,t)),at(function(t,e,i,n){var s,o,r,a=[],l=[],c=e.length,h=t||function(t,e,i){for(var n=0,s=e.length;n<s;n++)ot(t,e[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),u=!p||!t&&f?h:bt(h,a,p,i,n),d=m?v||(t?p:c||g)?[]:e:u;if(m&&m(u,d,i,n),g)for(s=bt(d,l),g(s,[],i,n),o=s.length;o--;)(r=s[o])&&(d[l[o]]=!(u[l[o]]=r));if(t){if(v||p){if(v){for(s=[],o=d.length;o--;)(r=d[o])&&s.push(u[o]=r);v(null,d=[],s,n)}for(o=d.length;o--;)(r=d[o])&&-1<(s=v?M(t,r):a[o])&&(t[s]=!(e[s]=r))}}else d=bt(d===e?d.splice(c,d.length):d),v?v(null,e,d,n):N.apply(e,d)})}function Ct(t){for(var s,e,i,n=t.length,o=b.relative[t[0].type],r=o||b.relative[" "],a=o?1:0,l=yt(function(t){return t===s},r,!0),c=yt(function(t){return-1<M(s,t)},r,!0),h=[function(t,e,i){var n=!o&&(i||e!==w)||((s=e).nodeType?l(t,e,i):c(t,e,i));return s=null,n}];a<n;a++)if(e=b.relative[t[a].type])h=[yt(_t(h),e)];else{if((e=b.filter[t[a].type].apply(null,t[a].matches))[k]){for(i=++a;i<n&&!b.relative[t[i].type];i++);return wt(1<a&&_t(h),1<a&&vt(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(q,"$1"),e,a<i&&Ct(t.slice(a,i)),i<n&&Ct(t=t.slice(i)),i<n&&vt(t))}h.push(e)}return _t(h)}return gt.prototype=b.filters=b.pseudos,b.setFilters=new gt,f=ot.tokenize=function(t,e){var i,n,s,o,r,a,l,c=_[t+" "];if(c)return e?0:c.slice(0);for(r=t,a=[],l=b.preFilter;r;){for(o in i&&!(n=U.exec(r))||(n&&(r=r.slice(n[0].length)||r),a.push(s=[])),i=!1,(n=z.exec(r))&&(i=n.shift(),s.push({value:i,type:n[0].replace(q," ")}),r=r.slice(i.length)),b.filter)!(n=V[o].exec(r))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),r=r.slice(i.length));if(!i)break}return e?r.length:r?ot.error(t):_(t,a).slice(0)},u=ot.compile=function(t,e){var i,g,v,y,_,n,s=[],o=[],r=D[t+" "];if(!r){for(e||(e=f(t)),i=e.length;i--;)(r=Ct(e[i]))[k]?s.push(r):o.push(r);(r=D(t,(g=o,y=0<(v=s).length,_=0<g.length,n=function(t,e,i,n,s){var o,r,a,l=0,c="0",h=t&&[],u=[],d=w,p=t||_&&b.find.TAG("*",s),f=E+=null==d?1:Math.random()||.1,m=p.length;for(s&&(w=e===x||e||s);c!==m&&null!=(o=p[c]);c++){if(_&&o){for(r=0,e||o.ownerDocument===x||(C(o),i=!T);a=g[r++];)if(a(o,e||x,i)){n.push(o);break}s&&(E=f)}y&&((o=!a&&o)&&l--,t&&h.push(o))}if(l+=c,y&&c!==l){for(r=0;a=v[r++];)a(h,u,e,i);if(t){if(0<l)for(;c--;)h[c]||u[c]||(u[c]=I.call(n));u=bt(u)}N.apply(n,u),s&&!t&&0<u.length&&1<l+v.length&&ot.uniqueSort(n)}return s&&(E=f,w=d),h},y?at(n):n))).selector=t}return r},m=ot.select=function(t,e,i,n){var s,o,r,a,l,c="function"==typeof t&&t,h=!n&&f(t=c.selector||t);if(i=i||[],1===h.length){if(2<(o=h[0]=h[0].slice(0)).length&&"ID"===(r=o[0]).type&&9===e.nodeType&&T&&b.relative[o[1].type]){if(!(e=(b.find.ID(r.matches[0].replace(J,tt),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=V.needsContext.test(t)?0:o.length;s--&&(r=o[s],!b.relative[a=r.type]);)if((l=b.find[a])&&(n=l(r.matches[0].replace(J,tt),Z.test(o[0].type)&&mt(e.parentNode)||e))){if(o.splice(s,1),!(t=n.length&&vt(o)))return N.apply(i,n),i;break}}return(c||u(t,h))(n,e,!T,i,!e||Z.test(t)&&mt(e.parentNode)||e),i},p.sortStable=k.split("").sort(S).join("")===k,p.detectDuplicates=!!c,C(),p.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(x.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ct($,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),ot}(x);k.find=b,k.expr=b.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=b.uniqueSort,k.text=b.getText,k.isXMLDoc=b.isXML,k.contains=b.contains,k.escapeSelector=b.escape;var w=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&k(t).is(i))break;n.push(t)}return n},C=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},E=k.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,A=/^.[^:#\[\.,]*$/;function I(t,i,n){return k.isFunction(i)?k.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?k.grep(t,function(t){return t===i!==n}):"string"!=typeof i?k.grep(t,function(t){return-1<s.call(i,t)!==n}):A.test(i)?k.filter(i,t,n):(i=k.filter(i,t),k.grep(t,function(t){return-1<s.call(i,t)!==n&&1===t.nodeType}))}k.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?k.find.matchesSelector(n,t)?[n]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<n;e++)if(k.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)k.find(t,s[e],i);return 1<n?k.uniqueSort(i):i},filter:function(t){return this.pushStack(I(this,t||[],!1))},not:function(t){return this.pushStack(I(this,t||[],!0))},is:function(t){return!!I(this,"string"==typeof t&&E.test(t)?k(t):t||[],!1).length}});var P,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||P,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:N.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:T,!0)),S.test(n[1])&&k.isPlainObject(e))for(n in e)k.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=T.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):k.isFunction(t)?void 0!==i.ready?i.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,P=k(T);var O=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(k.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,o=[],r="string"!=typeof t&&k(t);if(!E.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&k.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(k(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return w(t,"parentNode")},parentsUntil:function(t,e,i){return w(t,"parentNode",i)},next:function(t){return $(t,"nextSibling")},prev:function(t){return $(t,"previousSibling")},nextAll:function(t){return w(t,"nextSibling")},prevAll:function(t){return w(t,"previousSibling")},nextUntil:function(t,e,i){return w(t,"nextSibling",i)},prevUntil:function(t,e,i){return w(t,"previousSibling",i)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return D(t,"iframe")?t.contentDocument:(D(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(n,s){k.fn[n]=function(t,e){var i=k.map(this,s,t);return"Until"!==n.slice(-5)&&(e=t),e&&"string"==typeof e&&(i=k.filter(e,i)),1<this.length&&(M[n]||k.uniqueSort(i),O.test(n)&&i.reverse()),this.pushStack(i)}});var j=/[^\x20\t\r\n\f]+/g;function L(t){return t}function F(t){throw t}function R(t,e,i,n){var s;try{t&&k.isFunction(s=t.promise)?s.call(t).done(e).fail(i):t&&k.isFunction(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}k.Callbacks=function(n){var t,i;n="string"==typeof n?(t=n,i={},k.each(t.match(j)||[],function(t,e){i[e]=!0}),i):k.extend({},n);var s,e,o,r,a=[],l=[],c=-1,h=function(){for(r=r||n.once,o=s=!0;l.length;c=-1)for(e=l.shift();++c<a.length;)!1===a[c].apply(e[0],e[1])&&n.stopOnFalse&&(c=a.length,e=!1);n.memory||(e=!1),s=!1,r&&(a=e?[]:"")},u={add:function(){return a&&(e&&!s&&(c=a.length-1,l.push(e)),function i(t){k.each(t,function(t,e){k.isFunction(e)?n.unique&&u.has(e)||a.push(e):e&&e.length&&"string"!==k.type(e)&&i(e)})}(arguments),e&&!s&&h()),this},remove:function(){return k.each(arguments,function(t,e){for(var i;-1<(i=k.inArray(e,a,i));)a.splice(i,1),i<=c&&c--}),this},has:function(t){return t?-1<k.inArray(t,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return r=l=[],a=e="",this},disabled:function(){return!a},lock:function(){return r=l=[],e||s||(a=e=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),s||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},k.extend({Deferred:function(t){var o=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],s="pending",r={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var s=arguments;return k.Deferred(function(n){k.each(o,function(t,e){var i=k.isFunction(s[e[4]])&&s[e[4]];a[e[1]](function(){var t=i&&i.apply(this,arguments);t&&k.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)})}),s=null}).promise()},then:function(e,i,n){var l=0;function c(s,o,r,a){return function(){var i=this,n=arguments,t=function(){var t,e;if(!(s<l)){if((t=r.apply(i,n))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,k.isFunction(e)?a?e.call(t,c(l,o,L,a),c(l,o,F,a)):(l++,e.call(t,c(l,o,L,a),c(l,o,F,a),c(l,o,L,o.notifyWith))):(r!==L&&(i=void 0,n=[t]),(a||o.resolveWith)(i,n))}},e=a?t:function(){try{t()}catch(t){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(t,e.stackTrace),l<=s+1&&(r!==F&&(i=void 0,n=[t]),o.rejectWith(i,n))}};s?e():(k.Deferred.getStackHook&&(e.stackTrace=k.Deferred.getStackHook()),x.setTimeout(e))}}return k.Deferred(function(t){o[0][3].add(c(0,t,k.isFunction(n)?n:L,t.notifyWith)),o[1][3].add(c(0,t,k.isFunction(e)?e:L)),o[2][3].add(c(0,t,k.isFunction(i)?i:F))}).promise()},promise:function(t){return null!=t?k.extend(t,r):r}},a={};return k.each(o,function(t,e){var i=e[2],n=e[5];r[e[1]]=i.add,n&&i.add(function(){s=n},o[3-t][2].disable,o[0][2].lock),i.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=i.fireWith}),r.promise(a),t&&t.call(a,a),a},when:function(t){var i=arguments.length,e=i,n=Array(e),s=a.call(arguments),o=k.Deferred(),r=function(e){return function(t){n[e]=this,s[e]=1<arguments.length?a.call(arguments):t,--i||o.resolveWith(n,s)}};if(i<=1&&(R(t,o.done(r(e)).resolve,o.reject,!i),"pending"===o.state()||k.isFunction(s[e]&&s[e].then)))return o.then();for(;e--;)R(s[e],r(e),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){x.console&&x.console.warn&&t&&H.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){x.setTimeout(function(){throw t})};var q=k.Deferred();function U(){T.removeEventListener("DOMContentLoaded",U),x.removeEventListener("load",U),k.ready()}k.fn.ready=function(t){return q.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||((k.isReady=!0)!==t&&0<--k.readyWait||q.resolveWith(T,[k]))}}),k.ready.then=q.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?x.setTimeout(k.ready):(T.addEventListener("DOMContentLoaded",U),x.addEventListener("load",U));var z=function(t,e,i,n,s,o,r){var a=0,l=t.length,c=null==i;if("object"===k.type(i))for(a in s=!0,i)z(t,e,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,k.isFunction(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(k(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:c?e.call(t):l?e(t[0],i):o},W=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function B(){this.expando=k.expando+B.uid++}B.uid=1,B.prototype={cache:function(t){var e=t[this.expando];return e||(e={},W(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[k.camelCase(e)]=i;else for(n in e)s[k.camelCase(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][k.camelCase(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){Array.isArray(e)?e=e.map(k.camelCase):e=(e=k.camelCase(e))in n?[e]:e.match(j)||[],i=e.length;for(;i--;)delete n[e[i]]}(void 0===e||k.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var Q=new B,V=new B,Y=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function X(t,e,i){var n,s;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(K,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:Y.test(s)?JSON.parse(s):s)}catch(t){}V.set(t,e,i)}else i=void 0;return i}k.extend({hasData:function(t){return V.hasData(t)||Q.hasData(t)},data:function(t,e,i){return V.access(t,e,i)},removeData:function(t,e){V.remove(t,e)},_data:function(t,e,i){return Q.access(t,e,i)},_removeData:function(t,e){Q.remove(t,e)}}),k.fn.extend({data:function(i,t){var e,n,s,o=this[0],r=o&&o.attributes;if(void 0===i){if(this.length&&(s=V.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(e=r.length;e--;)r[e]&&(0===(n=r[e].name).indexOf("data-")&&(n=k.camelCase(n.slice(5)),X(o,n,s[n])));Q.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof i?this.each(function(){V.set(this,i)}):z(this,function(t){var e;if(o&&void 0===t){if(void 0!==(e=V.get(o,i)))return e;if(void 0!==(e=X(o,i)))return e}else this.each(function(){V.set(this,i,t)})},null,t,1<arguments.length,null,!0)},removeData:function(t){return this.each(function(){V.remove(this,t)})}}),k.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Q.get(t,e),i&&(!n||Array.isArray(i)?n=Q.access(t,e,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=k.queue(t,e),n=i.length,s=i.shift(),o=k._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,function(){k.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Q.get(t,i)||Q.access(t,i,{empty:k.Callbacks("once memory").add(function(){Q.remove(t,[e+"queue",i])})})}}),k.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?k.queue(this[0],e):void 0===i?this:this.each(function(){var t=k.queue(this,e,i);k._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&k.dequeue(this,e)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=k.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=Q.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Z=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),J=["Top","Right","Bottom","Left"],tt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&k.contains(t.ownerDocument,t)&&"none"===k.css(t,"display")},et=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s};function it(t,e,i,n){var s,o=1,r=20,a=n?function(){return n.cur()}:function(){return k.css(t,e,"")},l=a(),c=i&&i[3]||(k.cssNumber[e]?"":"px"),h=(k.cssNumber[e]||"px"!==c&&+l)&&Z.exec(k.css(t,e));if(h&&h[3]!==c)for(c=c||h[3],i=i||[],h=+l||1;h/=o=o||".5",k.style(t,e,h+c),o!==(o=a()/l)&&1!==o&&--r;);return i&&(h=+h||+l||0,s=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=s)),s}var nt={};function st(t,e){for(var i,n,s=[],o=0,r=t.length;o<r;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(s[o]=Q.get(n,"display")||null,s[o]||(n.style.display="")),""===n.style.display&&tt(n)&&(s[o]=(u=c=l=void 0,c=(a=n).ownerDocument,h=a.nodeName,(u=nt[h])||(l=c.body.appendChild(c.createElement(h)),u=k.css(l,"display"),l.parentNode.removeChild(l),"none"===u&&(u="block"),nt[h]=u)))):"none"!==i&&(s[o]="none",Q.set(n,"display",i)));var a,l,c,h,u;for(o=0;o<r;o++)null!=s[o]&&(t[o].style.display=s[o]);return t}k.fn.extend({show:function(){return st(this,!0)},hide:function(){return st(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){tt(this)?k(this).show():k(this).hide()})}});var ot=/^(?:checkbox|radio)$/i,rt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,at=/^$|\/(?:java|ecma)script/i,lt={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 ct(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?k.merge([t],i):i}function ht(t,e){for(var i=0,n=t.length;i<n;i++)Q.set(t[i],"globalEval",!e||Q.get(e[i],"globalEval"))}lt.optgroup=lt.option,lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead,lt.th=lt.td;var ut,dt,pt=/<|&#?\w+;/;function ft(t,e,i,n,s){for(var o,r,a,l,c,h,u=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===k.type(o))k.merge(d,o.nodeType?[o]:o);else if(pt.test(o)){for(r=r||u.appendChild(e.createElement("div")),a=(rt.exec(o)||["",""])[1].toLowerCase(),l=lt[a]||lt._default,r.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],h=l[0];h--;)r=r.lastChild;k.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(e.createTextNode(o));for(u.textContent="",p=0;o=d[p++];)if(n&&-1<k.inArray(o,n))s&&s.push(o);else if(c=k.contains(o.ownerDocument,o),r=ct(u.appendChild(o),"script"),c&&ht(r),i)for(h=0;o=r[h++];)at.test(o.type||"")&&i.push(o);return u}ut=T.createDocumentFragment().appendChild(T.createElement("div")),(dt=T.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ut.appendChild(dt),g.checkClone=ut.cloneNode(!0).cloneNode(!0).lastChild.checked,ut.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!ut.cloneNode(!0).lastChild.defaultValue;var mt=T.documentElement,gt=/^key/,vt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function bt(){return!1}function wt(){try{return T.activeElement}catch(t){}}function Ct(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Ct(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=bt;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return k().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=k.guid++)),t.each(function(){k.event.add(this,e,s,n,i)})}k.event={global:{},add:function(e,t,i,n,s){var o,r,a,l,c,h,u,d,p,f,m,g=Q.get(e);if(g)for(i.handler&&(i=(o=i).handler,s=o.selector),s&&k.find.matchesSelector(mt,s),i.guid||(i.guid=k.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)p=m=(a=yt.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=k.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=k.event.special[p]||{},h=k.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&k.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(p,r)),u.add&&(u.add.call(e,h),h.handler.guid||(h.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,h):d.push(h),k.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,h,u,d,p,f,m,g=Q.hasData(t)&&Q.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(j)||[""]).length;c--;)if(p=m=(a=yt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=k.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)h=d[o],!s&&m!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(o,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||k.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)k.event.remove(t,p+e[c],i,n,!0);k.isEmptyObject(l)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,r,a=k.event.fix(t),l=new Array(arguments.length),c=(Q.get(this,"events")||{})[a.type]||[],h=k.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,a)){for(r=k.event.handlers.call(this,a,c),e=0;(s=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(n=((k.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,l))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,s,o,r,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[s=(n=e[i]).selector+" "]&&(r[s]=n.needsContext?-1<k(s,this).index(c):k.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:k.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==wt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===wt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&D(this,"input"))return this.click(),!1},_default:function(t){return D(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},k.Event=function(t,e){return this instanceof k.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?_t:bt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||k.now(),void(this[k.expando]=!0)):new k.Event(t,e)},k.Event.prototype={constructor:k.Event,isDefaultPrevented:bt,isPropagationStopped:bt,isImmediatePropagationStopped:bt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=_t,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=_t,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=_t,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&gt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&vt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,s){k.event.special[t]={delegateType:s,bindType:s,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;return i&&(i===this||k.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=s),e}}}),k.fn.extend({on:function(t,e,i,n){return Ct(this,t,e,i,n)},one:function(t,e,i,n){return Ct(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,k(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=bt),this.each(function(){k.event.remove(this,t,i,e)})}});var xt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Tt=/<script|<style|<link/i,kt=/checked\s*(?:[^=]|=\s*.checked.)/i,Et=/^true\/(.*)/,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function St(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&k(">tbody",t)[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function It(t){var e=Et.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Pt(t,e){var i,n,s,o,r,a,l,c;if(1===e.nodeType){if(Q.hasData(t)&&(o=Q.access(t),r=Q.set(e,o),c=o.events))for(s in delete r.handle,r.events={},c)for(i=0,n=c[s].length;i<n;i++)k.event.add(e,s,c[s][i]);V.hasData(t)&&(a=V.access(t),l=k.extend({},a),V.set(e,l))}}function Nt(i,n,s,o){n=m.apply([],n);var t,e,r,a,l,c,h=0,u=i.length,d=u-1,p=n[0],f=k.isFunction(p);if(f||1<u&&"string"==typeof p&&!g.checkClone&&kt.test(p))return i.each(function(t){var e=i.eq(t);f&&(n[0]=p.call(this,t,e.html())),Nt(e,n,s,o)});if(u&&(e=(t=ft(n,i[0].ownerDocument,!1,i,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(a=(r=k.map(ct(t,"script"),At)).length;h<u;h++)l=t,h!==d&&(l=k.clone(l,!0,!0),a&&k.merge(r,ct(l,"script"))),s.call(i[h],l,h);if(a)for(c=r[r.length-1].ownerDocument,k.map(r,It),h=0;h<a;h++)l=r[h],at.test(l.type||"")&&!Q.access(l,"globalEval")&&k.contains(c,l)&&(l.src?k._evalUrl&&k._evalUrl(l.src):v(l.textContent.replace(Dt,""),c))}return i}function Ot(t,e,i){for(var n,s=e?k.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||k.cleanData(ct(n)),n.parentNode&&(i&&k.contains(n.ownerDocument,n)&&ht(ct(n,"script")),n.parentNode.removeChild(n));return t}k.extend({htmlPrefilter:function(t){return t.replace(xt,"<$1></$2>")},clone:function(t,e,i){var n,s,o,r,a,l,c,h=t.cloneNode(!0),u=k.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(r=ct(h),n=0,s=(o=ct(t)).length;n<s;n++)a=o[n],l=r[n],void 0,"input"===(c=l.nodeName.toLowerCase())&&ot.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(i)for(o=o||ct(t),r=r||ct(h),n=0,s=o.length;n<s;n++)Pt(o[n],r[n]);else Pt(t,h);return 0<(r=ct(h,"script")).length&&ht(r,!u&&ct(t,"script")),h},cleanData:function(t){for(var e,i,n,s=k.event.special,o=0;void 0!==(i=t[o]);o++)if(W(i)){if(e=i[Q.expando]){if(e.events)for(n in e.events)s[n]?k.event.remove(i,n):k.removeEvent(i,n,e.handle);i[Q.expando]=void 0}i[V.expando]&&(i[V.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Ot(this,t,!0)},remove:function(t){return Ot(this,t)},text:function(t){return z(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Nt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||St(this,t).appendChild(t)})},prepend:function(){return Nt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=St(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Nt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Nt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return z(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!lt[(rt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(k.cleanData(ct(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return Nt(this,arguments,function(t){var e=this.parentNode;k.inArray(this,i)<0&&(k.cleanData(ct(this)),e&&e.replaceChild(t,this))},i)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){k.fn[t]=function(t){for(var e,i=[],n=k(t),s=n.length-1,o=0;o<=s;o++)e=o===s?this:this.clone(!0),k(n[o])[r](e),l.apply(i,e.get());return this.pushStack(i)}});var Mt=/^margin/,$t=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),jt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=x),e.getComputedStyle(t)};function Lt(t,e,i){var n,s,o,r,a=t.style;return(i=i||jt(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||k.contains(t.ownerDocument,t)||(r=k.style(t,e)),!g.pixelMarginRight()&&$t.test(r)&&Mt.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function Ft(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){function t(){if(r){r.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",r.innerHTML="",mt.appendChild(o);var t=x.getComputedStyle(r);e="1%"!==t.top,s="2px"===t.marginLeft,i="4px"===t.width,r.style.marginRight="50%",n="4px"===t.marginRight,mt.removeChild(o),r=null}}var e,i,n,s,o=T.createElement("div"),r=T.createElement("div");r.style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===r.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(r),k.extend(g,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return t(),i},pixelMarginRight:function(){return t(),n},reliableMarginLeft:function(){return t(),s}}))}();var Rt=/^(none|table(?!-c[ea]).+)/,Ht=/^--/,qt={position:"absolute",visibility:"hidden",display:"block"},Ut={letterSpacing:"0",fontWeight:"400"},zt=["Webkit","Moz","ms"],Wt=T.createElement("div").style;function Bt(t){var e=k.cssProps[t];return e||(e=k.cssProps[t]=function(t){if(t in Wt)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=zt.length;i--;)if((t=zt[i]+e)in Wt)return t}(t)||t),e}function Qt(t,e,i){var n=Z.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Vt(t,e,i,n,s){var o,r=0;for(o=i===(n?"border":"content")?4:"width"===e?1:0;o<4;o+=2)"margin"===i&&(r+=k.css(t,i+J[o],!0,s)),n?("content"===i&&(r-=k.css(t,"padding"+J[o],!0,s)),"margin"!==i&&(r-=k.css(t,"border"+J[o]+"Width",!0,s))):(r+=k.css(t,"padding"+J[o],!0,s),"padding"!==i&&(r+=k.css(t,"border"+J[o]+"Width",!0,s)));return r}function Yt(t,e,i){var n,s=jt(t),o=Lt(t,e,s),r="border-box"===k.css(t,"boxSizing",!1,s);return $t.test(o)?o:(n=r&&(g.boxSizingReliable()||o===t.style[e]),"auto"===o&&(o=t["offset"+e[0].toUpperCase()+e.slice(1)]),(o=parseFloat(o)||0)+Vt(t,e,i||(r?"border":"content"),n,s)+"px")}function Kt(t,e,i,n,s){return new Kt.prototype.init(t,e,i,n,s)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Lt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=k.camelCase(e),l=Ht.test(e),c=t.style;return l||(e=Bt(a)),r=k.cssHooks[e]||k.cssHooks[a],void 0===i?r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:c[e]:("string"===(o=typeof i)&&(s=Z.exec(i))&&s[1]&&(i=it(t,e,s),o="number"),void(null!=i&&i==i&&("number"===o&&(i+=s&&s[3]||(k.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))))}},css:function(t,e,i,n){var s,o,r,a=k.camelCase(e);return Ht.test(e)||(e=Bt(a)),(r=k.cssHooks[e]||k.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=Lt(t,e,n)),"normal"===s&&e in Ut&&(s=Ut[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),k.each(["height","width"],function(t,r){k.cssHooks[r]={get:function(t,e,i){if(e)return!Rt.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Yt(t,r,i):et(t,qt,function(){return Yt(t,r,i)})},set:function(t,e,i){var n,s=i&&jt(t),o=i&&Vt(t,r,i,"border-box"===k.css(t,"boxSizing",!1,s),s);return o&&(n=Z.exec(e))&&"px"!==(n[3]||"px")&&(t.style[r]=e,e=k.css(t,r)),Qt(0,e,o)}}}),k.cssHooks.marginLeft=Ft(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Lt(t,"marginLeft"))||t.getBoundingClientRect().left-et(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(s,o){k.cssHooks[s+o]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[s+J[e]+o]=n[e]||n[e-2]||n[0];return i}},Mt.test(s)||(k.cssHooks[s+o].set=Qt)}),k.fn.extend({css:function(t,e){return z(this,function(t,e,i){var n,s,o={},r=0;if(Array.isArray(e)){for(n=jt(t),s=e.length;r<s;r++)o[e[r]]=k.css(t,e[r],!1,n);return o}return void 0!==i?k.style(t,e,i):k.css(t,e)},t,e,1<arguments.length)}}),((k.Tween=Kt).prototype={constructor:Kt,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var t=Kt.propHooks[this.prop];return t&&t.get?t.get(this):Kt.propHooks._default.get(this)},run:function(t){var e,i=Kt.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Kt.propHooks._default.set(this),this}}).init.prototype=Kt.prototype,(Kt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[k.cssProps[t.prop]]&&!k.cssHooks[t.prop]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Kt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=Kt.prototype.init,k.fx.step={};var Xt,Gt,Zt,Jt,te=/^(?:toggle|show|hide)$/,ee=/queueHooks$/;function ie(){Gt&&(!1===T.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(ie):x.setTimeout(ie,k.fx.interval),k.fx.tick())}function ne(){return x.setTimeout(function(){Xt=void 0}),Xt=k.now()}function se(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=J[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function oe(t,e,i){for(var n,s=(re.tweeners[e]||[]).concat(re.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function re(o,t,e){var i,r,n=0,s=re.prefilters.length,a=k.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Xt||ne(),e=Math.max(0,c.startTime+c.duration-t),i=1-(e/c.duration||0),n=0,s=c.tweens.length;n<s;n++)c.tweens[n].run(i);return a.notifyWith(o,[c,i,e]),i<1&&s?e:(s||a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},e),originalProperties:t,originalOptions:e,startTime:Xt||ne(),duration:e.duration,tweens:[],createTween:function(t,e){var i=k.Tween(o,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var e=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;e<i;e++)c.tweens[e].run(1);return t?(a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c,t])):a.rejectWith(o,[c,t]),this}}),h=c.props;for(function(t,e){var i,n,s,o,r;for(i in t)if(s=e[n=k.camelCase(i)],o=t[i],Array.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=k.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(h,c.opts.specialEasing);n<s;n++)if(i=re.prefilters[n].call(c,o,h,c.opts))return k.isFunction(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=k.proxy(i.stop,i)),i;return k.map(h,oe,c),k.isFunction(c.opts.start)&&c.opts.start.call(o,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(re,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return it(i.elem,t,Z.exec(e),i),i}]},tweener:function(t,e){k.isFunction(t)?(e=t,t=["*"]):t=t.match(j);for(var i,n=0,s=t.length;n<s;n++)i=t[n],re.tweeners[i]=re.tweeners[i]||[],re.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,r,a,l,c,h,u="width"in e||"height"in e,d=this,p={},f=t.style,m=t.nodeType&&tt(t),g=Q.get(t,"fxshow");for(n in i.queue||(null==(r=k._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,d.always(function(){d.always(function(){r.unqueued--,k.queue(t,"fx").length||r.empty.fire()})})),e)if(s=e[n],te.test(s)){if(delete e[n],o=o||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||k.style(t,n)}if((l=!k.isEmptyObject(e))||!k.isEmptyObject(p))for(n in u&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=Q.get(t,"display")),"none"===(h=k.css(t,"display"))&&(c?h=c:(st([t],!0),c=t.style.display||c,h=k.css(t,"display"),st([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===k.css(t,"float")&&(l||(d.done(function(){f.display=c}),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Q.access(t,"fxshow",{display:c}),o&&(g.hidden=!m),m&&st([t],!0),d.done(function(){for(n in m||st([t]),Q.remove(t,"fxshow"),p)k.style(t,n,p[n])})),l=oe(m?g[n]:0,n,d),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?re.prefilters.unshift(t):re.prefilters.push(t)}}),k.speed=function(t,e,i){var n=t&&"object"==typeof t?k.extend({},t):{complete:i||!i&&e||k.isFunction(t)&&t,duration:t,easing:i&&e||e&&!k.isFunction(e)&&e};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){k.isFunction(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(t,e,i,n){return this.filter(tt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var s=k.isEmptyObject(e),o=k.speed(t,i,n),r=function(){var t=re(this,k.extend({},e),o);(s||Q.get(this,"finish"))&&t.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(s,t,o){var r=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof s&&(o=t,t=s,s=void 0),t&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var t=!0,e=null!=s&&s+"queueHooks",i=k.timers,n=Q.get(this);if(e)n[e]&&n[e].stop&&r(n[e]);else for(e in n)n[e]&&n[e].stop&&ee.test(e)&&r(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=s&&i[e].queue!==s||(i[e].anim.stop(o),t=!1,i.splice(e,1));!t&&o||k.dequeue(this,s)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var t,e=Q.get(this),i=e[r+"queue"],n=e[r+"queueHooks"],s=k.timers,o=i?i.length:0;for(e.finish=!0,k.queue(this,r,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===r&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),k.each(["toggle","show","hide"],function(t,n){var s=k.fn[n];k.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?s.apply(this,arguments):this.animate(se(n,!0),t,e,i)}}),k.each({slideDown:se("show"),slideUp:se("hide"),slideToggle:se("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){k.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),k.timers=[],k.fx.tick=function(){var t,e=0,i=k.timers;for(Xt=k.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||k.fx.stop(),Xt=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){Gt||(Gt=!0,ie())},k.fx.stop=function(){Gt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(n,t){return n=k.fx&&k.fx.speeds[n]||n,t=t||"fx",this.queue(t,function(t,e){var i=x.setTimeout(t,n);e.stop=function(){x.clearTimeout(i)}})},Zt=T.createElement("input"),Jt=T.createElement("select").appendChild(T.createElement("option")),Zt.type="checkbox",g.checkOn=""!==Zt.value,g.optSelected=Jt.selected,(Zt=T.createElement("input")).value="t",Zt.type="radio",g.radioValue="t"===Zt.value;var ae,le=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return z(this,k.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,i):(1===o&&k.isXMLDoc(t)||(s=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?ae:void 0)),void 0!==i?null===i?void k.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=k.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(j);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),ae={set:function(t,e,i){return!1===e?k.removeAttr(t,i):t.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var r=le[e]||k.find.attr;le[e]=function(t,e,i){var n,s,o=e.toLowerCase();return i||(s=le[o],le[o]=n,n=null!=r(t,e,i)?o:null,le[o]=s),n}});var ce=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function ue(t){return(t.match(j)||[]).join(" ")}function de(t){return t.getAttribute&&t.getAttribute("class")||""}k.fn.extend({prop:function(t,e){return z(this,k.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,s=k.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):ce.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,i,n,s,o,r,a,l=0;if(k.isFunction(e))return this.each(function(t){k(this).addClass(e.call(this,t,de(this)))});if("string"==typeof e&&e)for(t=e.match(j)||[];i=this[l++];)if(s=de(i),n=1===i.nodeType&&" "+ue(s)+" "){for(r=0;o=t[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s!==(a=ue(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,s,o,r,a,l=0;if(k.isFunction(e))return this.each(function(t){k(this).removeClass(e.call(this,t,de(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(j)||[];i=this[l++];)if(s=de(i),n=1===i.nodeType&&" "+ue(s)+" "){for(r=0;o=t[r++];)for(;-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");s!==(a=ue(n))&&i.setAttribute("class",a)}return this},toggleClass:function(s,e){var o=typeof s;return"boolean"==typeof e&&"string"===o?e?this.addClass(s):this.removeClass(s):k.isFunction(s)?this.each(function(t){k(this).toggleClass(s.call(this,t,de(this),e),e)}):this.each(function(){var t,e,i,n;if("string"===o)for(e=0,i=k(this),n=s.match(j)||[];t=n[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==s&&"boolean"!==o||((t=de(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===s?"":Q.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+ue(de(i))+" ").indexOf(e))return!0;return!1}});var pe=/\r/g;k.fn.extend({val:function(i){var n,t,s,e=this[0];return arguments.length?(s=k.isFunction(i),this.each(function(t){var e;1===this.nodeType&&(null==(e=s?i.call(this,t,k(this).val()):i)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=k.map(e,function(t){return null==t?"":t+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):e?(n=k.valHooks[e.type]||k.valHooks[e.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(pe,""):null==t?"":t:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:ue(k.text(t))}},select:{get:function(t){var e,i,n,s=t.options,o=t.selectedIndex,r="select-one"===t.type,a=r?null:[],l=r?o+1:s.length;for(n=o<0?l:r?o:0;n<l;n++)if(((i=s[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(e=k(i).val(),r)return e;a.push(e)}return a},set:function(t,e){for(var i,n,s=t.options,o=k.makeArray(e),r=s.length;r--;)((n=s[r]).selected=-1<k.inArray(k.valHooks.option.get(n),o))&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<k.inArray(k(t).val(),e)}},g.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var fe=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(t,e,i,n){var s,o,r,a,l,c,h,u=[i||T],d=f.call(t,"type")?t.type:t,p=f.call(t,"namespace")?t.namespace.split("."):[];if(o=r=i=i||T,3!==i.nodeType&&8!==i.nodeType&&!fe.test(d+k.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,(t=t[k.expando]?t:new k.Event(d,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:k.makeArray(e,[t]),h=k.event.special[d]||{},n||!h.trigger||!1!==h.trigger.apply(i,e))){if(!n&&!h.noBubble&&!k.isWindow(i)){for(a=h.delegateType||d,fe.test(a+d)||(o=o.parentNode);o;o=o.parentNode)u.push(o),r=o;r===(i.ownerDocument||T)&&u.push(r.defaultView||r.parentWindow||x)}for(s=0;(o=u[s++])&&!t.isPropagationStopped();)t.type=1<s?a:h.bindType||d,(c=(Q.get(o,"events")||{})[t.type]&&Q.get(o,"handle"))&&c.apply(o,e),(c=l&&o[l])&&c.apply&&W(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=d,n||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(u.pop(),e)||!W(i)||l&&k.isFunction(i[d])&&!k.isWindow(i)&&((r=i[l])&&(i[l]=null),i[k.event.triggered=d](),k.event.triggered=void 0,r&&(i[l]=r)),t.result}},simulate:function(t,e,i){var n=k.extend(new k.Event,i,{type:t,isSimulated:!0});k.event.trigger(n,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return k.event.trigger(t,e,i,!0)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){k.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),k.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),g.focusin="onfocusin"in x,g.focusin||k.each({focus:"focusin",blur:"focusout"},function(i,n){var s=function(t){k.event.simulate(n,t.target,k.event.fix(t))};k.event.special[n]={setup:function(){var t=this.ownerDocument||this,e=Q.access(t,n);e||t.addEventListener(i,s,!0),Q.access(t,n,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=Q.access(t,n)-1;e?Q.access(t,n,e):(t.removeEventListener(i,s,!0),Q.remove(t,n))}}});var me=x.location,ge=k.now(),ve=/\?/;k.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+t),e};var ye=/\[\]$/,_e=/\r?\n/g,be=/^(?:submit|button|image|reset|file)$/i,we=/^(?:input|select|textarea|keygen)/i;function Ce(i,t,n,s){var e;if(Array.isArray(t))k.each(t,function(t,e){n||ye.test(i)?s(i,e):Ce(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,n,s)});else if(n||"object"!==k.type(t))s(i,t);else for(e in t)Ce(i+"["+e+"]",t[e],n,s)}k.param=function(t,e){var i,n=[],s=function(t,e){var i=k.isFunction(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){s(this.name,this.value)});else for(i in t)Ce(i,t[i],e,s);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&we.test(this.nodeName)&&!be.test(t)&&(this.checked||!ot.test(t))}).map(function(t,e){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,function(t){return{name:e.name,value:t.replace(_e,"\r\n")}}):{name:e.name,value:i.replace(_e,"\r\n")}}).get()}});var xe=/%20/g,Te=/#.*$/,ke=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)$/gm,De=/^(?:GET|HEAD)$/,Se=/^\/\//,Ae={},Ie={},Pe="*/".concat("*"),Ne=T.createElement("a");function Oe(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,s=t.toLowerCase().match(j)||[];if(k.isFunction(e))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(e)):(o[i]=o[i]||[]).push(e)}}function Me(e,s,o,r){var a={},l=e===Ie;function c(t){var n;return a[t]=!0,k.each(e[t]||[],function(t,e){var i=e(s,o,r);return"string"!=typeof i||l||a[i]?l?!(n=i):void 0:(s.dataTypes.unshift(i),c(i),!1)}),n}return c(s.dataTypes[0])||!a["*"]&&c("*")}function $e(t,e){var i,n,s=k.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&k.extend(!0,t,n),t}Ne.href=me.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:me.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?$e($e(t,k.ajaxSettings),e):$e(k.ajaxSettings,t)},ajaxPrefilter:Oe(Ae),ajaxTransport:Oe(Ie),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var h,u,d,i,p,n,f,m,s,o,g=k.ajaxSetup({},e),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?k(v):k.event,_=k.Deferred(),b=k.Callbacks("once memory"),w=g.statusCode||{},r={},a={},l="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(f){if(!i)for(i={};e=Ee.exec(d);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return f?d:null},setRequestHeader:function(t,e){return null==f&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==f&&(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(f)C.always(t[C.status]);else for(e in t)w[e]=[w[e],t[e]];return this},abort:function(t){var e=t||l;return h&&h.abort(e),c(0,e),this}};if(_.promise(C),g.url=((t||g.url||me.href)+"").replace(Se,me.protocol+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(j)||[""],null==g.crossDomain){n=T.createElement("a");try{n.href=g.url,n.href=n.href,g.crossDomain=Ne.protocol+"//"+Ne.host!=n.protocol+"//"+n.host}catch(t){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=k.param(g.data,g.traditional)),Me(Ae,g,e,C),f)return C;for(s in(m=k.event&&g.global)&&0==k.active++&&k.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!De.test(g.type),u=g.url.replace(Te,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(xe,"+")):(o=g.url.slice(u.length),g.data&&(u+=(ve.test(u)?"&":"?")+g.data,delete g.data),!1===g.cache&&(u=u.replace(ke,"$1"),o=(ve.test(u)?"&":"?")+"_="+ge+++o),g.url=u+o),g.ifModified&&(k.lastModified[u]&&C.setRequestHeader("If-Modified-Since",k.lastModified[u]),k.etag[u]&&C.setRequestHeader("If-None-Match",k.etag[u])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&C.setRequestHeader("Content-Type",g.contentType),C.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Pe+"; q=0.01":""):g.accepts["*"]),g.headers)C.setRequestHeader(s,g.headers[s]);if(g.beforeSend&&(!1===g.beforeSend.call(v,C,g)||f))return C.abort();if(l="abort",b.add(g.complete),C.done(g.success),C.fail(g.error),h=Me(Ie,g,e,C)){if(C.readyState=1,m&&y.trigger("ajaxSend",[C,g]),f)return C;g.async&&0<g.timeout&&(p=x.setTimeout(function(){C.abort("timeout")},g.timeout));try{f=!1,h.send(r,c)}catch(t){if(f)throw t;c(-1,t)}}else c(-1,"No Transport");function c(t,e,i,n){var s,o,r,a,l,c=e;f||(f=!0,p&&x.clearTimeout(p),h=void 0,d=n||"",C.readyState=0<t?4:0,s=200<=t&&t<300||304===t,i&&(a=function(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(g,C,i)),a=function(t,e,i,n){var s,o,r,a,l,c={},h=t.dataTypes.slice();if(h[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],h.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(g,a,C,s),s?(g.ifModified&&((l=C.getResponseHeader("Last-Modified"))&&(k.lastModified[u]=l),(l=C.getResponseHeader("etag"))&&(k.etag[u]=l)),204===t||"HEAD"===g.type?c="nocontent":304===t?c="notmodified":(c=a.state,o=a.data,s=!(r=a.error))):(r=c,!t&&c||(c="error",t<0&&(t=0))),C.status=t,C.statusText=(e||c)+"",s?_.resolveWith(v,[o,c,C]):_.rejectWith(v,[C,c,r]),C.statusCode(w),w=void 0,m&&y.trigger(s?"ajaxSuccess":"ajaxError",[C,g,s?o:r]),b.fireWith(v,[C,c]),m&&(y.trigger("ajaxComplete",[C,g]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,i){return k.get(t,e,i,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,s){k[s]=function(t,e,i,n){return k.isFunction(e)&&(n=n||i,i=e,e=void 0),k.ajax(k.extend({url:t,type:s,dataType:n,data:e,success:i},k.isPlainObject(t)&&t))}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(k.isFunction(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(i){return k.isFunction(i)?this.each(function(t){k(this).wrapInner(i.call(this,t))}):this.each(function(){var t=k(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=k.isFunction(e);return this.each(function(t){k(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var je={0:200,1223:204},Le=k.ajaxSettings.xhr();g.cors=!!Le&&"withCredentials"in Le,g.ajax=Le=!!Le,k.ajaxTransport(function(s){var o,r;if(g.cors||Le&&!s.crossDomain)return{send:function(t,e){var i,n=s.xhr();if(n.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)n.setRequestHeader(i,t[i]);o=function(t){return function(){o&&(o=r=n.onload=n.onerror=n.onabort=n.onreadystatechange=null,"abort"===t?n.abort():"error"===t?"number"!=typeof n.status?e(0,"error"):e(n.status,n.statusText):e(je[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=o(),r=n.onerror=o("error"),void 0!==n.onabort?n.onabort=r:n.onreadystatechange=function(){4===n.readyState&&x.setTimeout(function(){o&&r()})},o=o("abort");try{n.send(s.hasContent&&s.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(i){var n,s;if(i.crossDomain)return{send:function(t,e){n=k("<script>").prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),T.head.appendChild(n[0])},abort:function(){s&&s()}}});var Fe,Re=[],He=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||k.expando+"_"+ge++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,r=!1!==t.jsonp&&(He.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=k.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(He,"$1"+n):!1!==t.jsonp&&(t.url+=(ve.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||k.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=x[n],x[n]=function(){o=arguments},i.always(function(){void 0===s?k(x).removeProp(n):x[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,Re.push(n)),o&&k.isFunction(s)&&s(o[0]),o=s=void 0}),"script"}),g.createHTMLDocument=((Fe=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Fe.childNodes.length),k.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(g.createHTMLDocument?((n=(e=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,e.head.appendChild(n)):e=T),o=!i&&[],(s=S.exec(t))?[e.createElement(s[1])]:(s=ft([t],e,o),o&&o.length&&k(o).remove(),k.merge([],s.childNodes)));var n,s,o},k.fn.load=function(t,e,i){var n,s,o,r=this,a=t.indexOf(" ");return-1<a&&(n=ue(t.slice(a)),t=t.slice(0,a)),k.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),0<r.length&&k.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?k("<div>").append(k.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,c=k.css(t,"position"),h=k(t),u={};"static"===c&&(t.style.position="relative"),a=h.offset(),o=k.css(t,"top"),l=k.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(r=(n=h.position()).top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),k.isFunction(e)&&(e=e.call(t,i,k.extend({},a))),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+s),"using"in e?e.using.call(t,u):h.css(u)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,i,n,s,o=this[0];return o?o.getClientRects().length?(n=o.getBoundingClientRect(),i=(t=o.ownerDocument).documentElement,s=t.defaultView,{top:n.top+s.pageYOffset-i.clientTop,left:n.left+s.pageXOffset-i.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===k.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),D(t[0],"html")||(n=t.offset()),n={top:n.top+k.css(t[0],"borderTopWidth",!0),left:n.left+k.css(t[0],"borderLeftWidth",!0)}),{top:e.top-n.top-k.css(i,"marginTop",!0),left:e.left-n.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||mt})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;k.fn[e]=function(t){return z(this,function(t,e,i){var n;return k.isWindow(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i?n?n[s]:t[e]:void(n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):t[e]=i)},e,t,arguments.length)}}),k.each(["top","left"],function(t,i){k.cssHooks[i]=Ft(g.pixelPosition,function(t,e){if(e)return e=Lt(t,i),$t.test(e)?k(t).position()[i]+"px":e})}),k.each({Height:"height",Width:"width"},function(r,a){k.each({padding:"inner"+r,content:a,"":"outer"+r},function(n,o){k.fn[o]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return z(this,function(t,e,i){var n;return k.isWindow(t)?0===o.indexOf("outer")?t["inner"+r]:t.document.documentElement["client"+r]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+r],n["scroll"+r],t.body["offset"+r],n["offset"+r],n["client"+r])):void 0===i?k.css(t,e,s):k.style(t,e,i,s)},a,i?t:void 0,i)}})}),k.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=D,"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var qe=x.jQuery,Ue=x.$;return k.noConflict=function(t){return x.$===k&&(x.$=Ue),t&&x.jQuery===k&&(x.jQuery=qe),k},t||(x.jQuery=x.$=k),k}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(h){h.extend(h.fn,{validate:function(t){if(this.length){var n=h.data(this[0],"validator");return n||(this.attr("novalidate","novalidate"),n=new h.validator(t,this[0]),h.data(this[0],"validator",n),n.settings.onsubmit&&(this.on("click.validate",":submit",function(t){n.submitButton=t.currentTarget,h(this).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==h(this).attr("formnovalidate")&&(n.cancelSubmit=!0)}),this.on("submit.validate",function(i){function t(){var t,e;return n.submitButton&&(n.settings.submitHandler||n.formSubmitted)&&(t=h("<input type='hidden'/>").attr("name",n.submitButton.name).val(h(n.submitButton).val()).appendTo(n.currentForm)),!n.settings.submitHandler||(e=n.settings.submitHandler.call(n,n.currentForm,i),t&&t.remove(),void 0!==e&&e)}return n.settings.debug&&i.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,t()):n.form()?n.pendingRequest?(n.formSubmitted=!0,!1):t():(n.focusInvalid(),!1)})),n)}t&&t.debug&&window.console},valid:function(){var t,e,i;return h(this[0]).is("form")?t=this.validate().form():(i=[],t=!0,e=h(this[0].form).validate(),this.each(function(){(t=e.element(this)&&t)||(i=i.concat(e.errorList))}),e.errorList=i),t},rules:function(t,e){var i,n,s,o,r,a,l=this[0];if(null!=l&&(!l.form&&l.hasAttribute("contenteditable")&&(l.form=this.closest("form")[0],l.name=this.attr("name")),null!=l.form)){if(t)switch(n=(i=h.data(l.form,"validator").settings).rules,s=h.validator.staticRules(l),t){case"add":h.extend(s,h.validator.normalizeRule(e)),delete s.messages,n[l.name]=s,e.messages&&(i.messages[l.name]=h.extend(i.messages[l.name],e.messages));break;case"remove":return e?(a={},h.each(e.split(/\s/),function(t,e){a[e]=s[e],delete s[e]}),a):(delete n[l.name],s)}return(o=h.validator.normalizeRules(h.extend({},h.validator.classRules(l),h.validator.attributeRules(l),h.validator.dataRules(l),h.validator.staticRules(l)),l)).required&&(r=o.required,delete o.required,o=h.extend({required:r},o)),o.remote&&(r=o.remote,delete o.remote,o=h.extend(o,{remote:r})),o}}}),h.extend(h.expr.pseudos||h.expr[":"],{blank:function(t){return!h.trim(""+h(t).val())},filled:function(t){var e=h(t).val();return null!==e&&!!h.trim(""+e)},unchecked:function(t){return!h(t).prop("checked")}}),h.validator=function(t,e){this.settings=h.extend(!0,{},h.validator.defaults,t),this.currentForm=e,this.init()},h.validator.format=function(i,t){return 1===arguments.length?function(){var t=h.makeArray(arguments);return t.unshift(i),h.validator.format.apply(this,t)}:(void 0===t||(2<arguments.length&&t.constructor!==Array&&(t=h.makeArray(arguments).slice(1)),t.constructor!==Array&&(t=[t]),h.each(t,function(t,e){i=i.replace(new RegExp("\\{"+t+"\\}","g"),function(){return e})})),i)},h.extend(h.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:h([]),errorLabelContainer:h([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){9===e.which&&""===this.elementValue(t)||-1!==h.inArray(e.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(t,e,i){"radio"===t.type?this.findByName(t.name).addClass(e).removeClass(i):h(t).addClass(e).removeClass(i)},unhighlight:function(t,e,i){"radio"===t.type?this.findByName(t.name).removeClass(e).addClass(i):h(t).removeClass(e).addClass(i)}},setDefaults:function(t){h.extend(h.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:h.validator.format("Please enter no more than {0} characters."),minlength:h.validator.format("Please enter at least {0} characters."),rangelength:h.validator.format("Please enter a value between {0} and {1} characters long."),range:h.validator.format("Please enter a value between {0} and {1}."),max:h.validator.format("Please enter a value less than or equal to {0}."),min:h.validator.format("Please enter a value greater than or equal to {0}."),step:h.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=h(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||h(this.currentForm),this.containers=h(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,n=this.groups={};function t(t){!this.form&&this.hasAttribute("contenteditable")&&(this.form=h(this).closest("form")[0],this.name=h(this).attr("name"));var e=h.data(this.form,"validator"),i="on"+t.type.replace(/^validate/,""),n=e.settings;n[i]&&!h(this).is(n.ignore)&&n[i].call(e,this,t)}h.each(this.settings.groups,function(i,t){"string"==typeof t&&(t=t.split(/\s/)),h.each(t,function(t,e){n[e]=i})}),i=this.settings.rules,h.each(i,function(t,e){i[t]=h.validator.normalizeRule(e)}),h(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",t).on("click.validate","select, option, [type='radio'], [type='checkbox']",t),this.settings.invalidHandler&&h(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),h.extend(this.submitted,this.errorMap),this.invalid=h.extend({},this.errorMap),this.valid()||h(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(t){var e,i,n=this.clean(t),s=this.validationTargetFor(n),o=this,r=!0;return void 0===s?delete this.invalid[n.name]:(this.prepareElement(s),this.currentElements=h(s),(i=this.groups[s.name])&&h.each(this.groups,function(t,e){e===i&&t!==s.name&&(n=o.validationTargetFor(o.clean(o.findByName(t))))&&n.name in o.invalid&&(o.currentElements.push(n),r=o.check(n)&&r)}),e=!1!==this.check(s),r=r&&e,this.invalid[s.name]=!e,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),h(t).attr("aria-invalid",!e)),r},showErrors:function(e){if(e){var i=this;h.extend(this.errorMap,e),this.errorList=h.map(this.errorMap,function(t,e){return{message:t,element:i.findByName(e)[0]}}),this.successList=h.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){h.fn.resetForm&&h(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)void 0!==t[e]&&null!==t[e]&&!1!==t[e]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{h(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===h.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return h(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var t=this.name||h(this).attr("name");return!t&&e.settings.debug&&window.console,this.hasAttribute("contenteditable")&&(this.form=h(this).closest("form")[0],this.name=t),!(t in i||!e.objectLength(h(this).rules()))&&(i[t]=!0)})},clean:function(t){return h(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return h(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=h([]),this.toHide=h([])},reset:function(){this.resetInternals(),this.currentElements=h([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(t){var e,i,n=h(t),s=t.type;return"radio"===s||"checkbox"===s?this.findByName(t.name).filter(":checked").val():"number"===s&&void 0!==t.validity?t.validity.badInput?"NaN":n.val():(e=t.hasAttribute("contenteditable")?n.text():n.val(),"file"===s?"C:\\fakepath\\"===e.substr(0,12)?e.substr(12):0<=(i=e.lastIndexOf("/"))?e.substr(i+1):0<=(i=e.lastIndexOf("\\"))?e.substr(i+1):e:"string"==typeof e?e.replace(/\r/g,""):e)},check:function(e){e=this.validationTargetFor(this.clean(e));var t,i,n,s,o=h(e).rules(),r=h.map(o,function(t,e){return e}).length,a=!1,l=this.elementValue(e);if("function"==typeof o.normalizer?s=o.normalizer:"function"==typeof this.settings.normalizer&&(s=this.settings.normalizer),s){if("string"!=typeof(l=s.call(e,l)))throw new TypeError("The normalizer should return a string value.");delete o.normalizer}for(i in o){n={method:i,parameters:o[i]};try{if("dependency-mismatch"===(t=h.validator.methods[i].call(this,l,e,n.parameters))&&1===r){a=!0;continue}if(a=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,n),!1}catch(t){throw this.settings.debug&&window.console,t instanceof TypeError&&(t.message+=".  Exception occurred when checking element "+e.id+", check the '"+n.method+"' method."),t}}if(!a)return this.objectLength(o)&&this.successList.push(e),!0},customDataMessage:function(t,e){return h(t).data("msg"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase())||h(t).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(t,e){"string"==typeof e&&(e={method:e});var i=this.findDefined(this.customMessage(t.name,e.method),this.customDataMessage(t,e.method),!this.settings.ignoreTitle&&t.title||void 0,h.validator.messages[e.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),n=/\$?\{(\d+)\}/g;return"function"==typeof i?i=i.call(this,e.parameters,t):n.test(i)&&(i=h.validator.format(i.replace(n,"{$1}"),e.parameters)),i},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return h(this.errorList).map(function(){return this.element})},showLabel:function(t,e){var i,n,s,o,r=this.errorsFor(t),a=this.idOrName(t),l=h(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(e)):(i=r=h("<"+this.settings.errorElement+">").attr("id",a+"-error").addClass(this.settings.errorClass).html(e||""),this.settings.wrapper&&(i=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,h(t)):i.insertAfter(t),r.is("label")?r.attr("for",a):0===r.parents("label[for='"+this.escapeCssMeta(a)+"']").length&&(s=r.attr("id"),l?l.match(new RegExp("\\b"+this.escapeCssMeta(s)+"\\b"))||(l+=" "+s):l=s,h(t).attr("aria-describedby",l),(n=this.groups[t.name])&&(o=this,h.each(o.groups,function(t,e){e===n&&h("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))})))),!e&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t)),this.toShow=this.toShow.add(r)},errorsFor:function(t){var e=this.escapeCssMeta(this.idOrName(t)),i=h(t).attr("aria-describedby"),n="label[for='"+e+"'], label[for='"+e+"'] *";return i&&(n=n+", #"+this.escapeCssMeta(i).replace(/\s+/g,", #")),this.errors().filter(n)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),h(t).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(t){return h(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,e){switch(e.nodeName.toLowerCase()){case"select":return h("option:selected",e).length;case"input":if(this.checkable(e))return this.findByName(e.name).filter(":checked").length}return t.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(t,e){return!!h(t,e.form).length},function:function(t,e){return t(e)}},optional:function(t){var e=this.elementValue(t);return!h.validator.methods.required.call(this,e,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,h(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,e){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],h(t).removeClass(this.settings.pendingClass),e&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(h(this.currentForm).submit(),this.submitButton&&h("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!e&&0===this.pendingRequest&&this.formSubmitted&&(h(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,e){return e="string"==typeof e&&e||"remote",h.data(t,"previousValue")||h.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:e})})},destroy:function(){this.resetForm(),h(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,e){t.constructor===String?this.classRuleSettings[t]=e:h.extend(this.classRuleSettings,t)},classRules:function(t){var e={},i=h(t).attr("class");return i&&h.each(i.split(" "),function(){this in h.validator.classRuleSettings&&h.extend(e,h.validator.classRuleSettings[this])}),e},normalizeAttributeRule:function(t,e,i,n){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?t[i]=n:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(t){var e,i,n={},s=h(t),o=t.getAttribute("type");for(e in h.validator.methods)"required"===e?(""===(i=t.getAttribute(e))&&(i=!0),i=!!i):i=s.attr(e),this.normalizeAttributeRule(n,o,e,i);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(t){var e,i,n={},s=h(t),o=t.getAttribute("type");for(e in h.validator.methods)i=s.data("rule"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()),this.normalizeAttributeRule(n,o,e,i);return n},staticRules:function(t){var e={},i=h.data(t.form,"validator");return i.settings.rules&&(e=h.validator.normalizeRule(i.settings.rules[t.name])||{}),e},normalizeRules:function(n,s){return h.each(n,function(t,e){if(!1!==e){if(e.param||e.depends){var i=!0;switch(typeof e.depends){case"string":i=!!h(e.depends,s.form).length;break;case"function":i=e.depends.call(s,s)}i?n[t]=void 0===e.param||e.param:(h.data(s.form,"validator").resetElements(h(s)),delete n[t])}}else delete n[t]}),h.each(n,function(t,e){n[t]=h.isFunction(e)&&"normalizer"!==t?e(s):e}),h.each(["minlength","maxlength"],function(){n[this]&&(n[this]=Number(n[this]))}),h.each(["rangelength","range"],function(){var t;n[this]&&(h.isArray(n[this])?n[this]=[Number(n[this][0]),Number(n[this][1])]:"string"==typeof n[this]&&(t=n[this].replace(/[\[\]]/g,"").split(/[\s,]+/),n[this]=[Number(t[0]),Number(t[1])]))}),h.validator.autoCreateRanges&&(null!=n.min&&null!=n.max&&(n.range=[n.min,n.max],delete n.min,delete n.max),null!=n.minlength&&null!=n.maxlength&&(n.rangelength=[n.minlength,n.maxlength],delete n.minlength,delete n.maxlength)),n},normalizeRule:function(t){if("string"==typeof t){var e={};h.each(t.split(/\s/),function(){e[this]=!0}),t=e}return t},addMethod:function(t,e,i){h.validator.methods[t]=e,h.validator.messages[t]=void 0!==i?i:h.validator.messages[t],e.length<3&&h.validator.addClassRules(t,h.validator.normalizeRule(t))},methods:{required:function(t,e,i){if(!this.depend(i,e))return"dependency-mismatch";if("select"===e.nodeName.toLowerCase()){var n=h(e).val();return n&&0<n.length}return this.checkable(e)?0<this.getLength(t,e):0<t.length},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(t,e,i){var n=h.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||i<=n},maxlength:function(t,e,i){var n=h.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||n<=i},rangelength:function(t,e,i){var n=h.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||n>=i[0]&&n<=i[1]},min:function(t,e,i){return this.optional(e)||i<=t},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(t,e,i){var n,s=h(e).attr("type"),o="Step attribute on input type "+s+" is not supported.",r=new RegExp("\\b"+s+"\\b"),a=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},l=function(t){return Math.round(t*Math.pow(10,n))},c=!0;if(s&&!r.test(["text","number","range"].join()))throw new Error(o);return n=a(i),(a(t)>n||l(t)%l(i)!=0)&&(c=!1),this.optional(e)||c},equalTo:function(t,e,i){var n=h(i);return this.settings.onfocusout&&n.not(".validate-equalTo-blur").length&&n.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){h(e).valid()}),t===n.val()},remote:function(o,r,t,a){if(this.optional(r))return"dependency-mismatch";a="string"==typeof a&&a||"remote";var l,e,i,c=this.previousValue(r,a);return this.settings.messages[r.name]||(this.settings.messages[r.name]={}),c.originalMessage=c.originalMessage||this.settings.messages[r.name][a],this.settings.messages[r.name][a]=c.message,t="string"==typeof t&&{url:t}||t,i=h.param(h.extend({data:o},t.data)),c.old===i?c.valid:(c.old=i,(l=this).startRequest(r),(e={})[r.name]=o,h.ajax(h.extend(!0,{mode:"abort",port:"validate"+r.name,dataType:"json",data:e,context:l.currentForm,success:function(t){var e,i,n,s=!0===t||"true"===t;l.settings.messages[r.name][a]=c.originalMessage,s?(n=l.formSubmitted,l.resetInternals(),l.toHide=l.errorsFor(r),l.formSubmitted=n,l.successList.push(r),l.invalid[r.name]=!1,l.showErrors()):(e={},i=t||l.defaultMessage(r,{method:a,parameters:o}),e[r.name]=c.message=i,l.invalid[r.name]=!0,l.showErrors(e)),c.valid=s,l.stopRequest(r,s)}},t)),"pending")}}});var n,s={};return h.ajaxPrefilter?h.ajaxPrefilter(function(t,e,i){var n=t.port;"abort"===t.mode&&(s[n]&&s[n].abort(),s[n]=i)}):(n=h.ajax,h.ajax=function(t){var e=("mode"in t?t:h.ajaxSettings).mode,i=("port"in t?t:h.ajaxSettings).port;return"abort"===e?(s[i]&&s[i].abort(),s[i]=n.apply(this,arguments),s[i]):n.apply(this,arguments)}),h}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self).bootstrap={},t.jQuery)}(this,function(t,f){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function l(s){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e(Object(o),!0).forEach(function(t){var e,i,n;e=s,n=o[i=t],i in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(o,t))})}return s}f=f&&f.hasOwnProperty("default")?f.default:f;var i="transitionend";var m={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=f(t).css("transition-duration"),i=f(t).css("transition-delay"),n=parseFloat(e),s=parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(e)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){f(t).trigger(i)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=i[n],o=e[n],r=o&&m.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(r))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+r+'" but expected type "'+s+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?m.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null},jQueryDetection:function(){if(void 0===f)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=f.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};m.jQueryDetection(),f.fn.emulateTransitionEnd=function(t){var e=this,i=!1;return f(this).one(m.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||m.triggerTransitionEnd(e)},t),this},f.event.special[m.TRANSITION_END]={bindType:i,delegateType:i,handle:function(t){if(f(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var s="alert",o="bs.alert",a="."+o,c=f.fn[s],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},u=function(){function n(t){this._element=t}var t=n.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){f.removeData(this._element,o),this._element=null},t._getRootElement=function(t){var e=m.getSelectorFromElement(t),i=!1;return e&&(i=document.querySelector(e)),i||f(t).closest(".alert")[0]},t._triggerCloseEvent=function(t){var e=f.Event(h.CLOSE);return f(t).trigger(e),e},t._removeElement=function(e){var i=this;if(f(e).removeClass("show"),f(e).hasClass("fade")){var t=m.getTransitionDurationFromElement(e);f(e).one(m.TRANSITION_END,function(t){return i._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){f(t).detach().trigger(h.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(o);e||(e=new n(this),t.data(o,e)),"close"===i&&e[i](this)})},n._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();f(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',u._handleDismiss(new u)),f.fn[s]=u._jQueryInterface,f.fn[s].Constructor=u,f.fn[s].noConflict=function(){return f.fn[s]=c,u._jQueryInterface};var d="button",p="bs.button",g="."+p,v=".data-api",y=f.fn[d],_="active",b='[data-toggle^="button"]',w='input:not([type="hidden"])',C={CLICK_DATA_API:"click"+g+v,FOCUS_BLUR_DATA_API:"focus"+g+v+" blur"+g+v,LOAD_DATA_API:"load"+g+v},x=function(){function i(t){this._element=t}var t=i.prototype;return t.toggle=function(){var t=!0,e=!0,i=f(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=this._element.querySelector(w);if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains(_))t=!1;else{var s=i.querySelector(".active");s&&f(s).removeClass(_)}else"checkbox"===n.type?"LABEL"===this._element.tagName&&n.checked===this._element.classList.contains(_)&&(t=!1):t=!1;t&&(n.checked=!this._element.classList.contains(_),f(n).trigger("change")),n.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(_)),t&&f(this._element).toggleClass(_))},t.dispose=function(){f.removeData(this._element,p),this._element=null},i._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(p);t||(t=new i(this),f(this).data(p,t)),"toggle"===e&&t[e]()})},r(i,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),i}();f(document).on(C.CLICK_DATA_API,b,function(t){var e=t.target;if(f(e).hasClass("btn")||(e=f(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector(w);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();x._jQueryInterface.call(f(e),"toggle")}}).on(C.FOCUS_BLUR_DATA_API,b,function(t){var e=f(t.target).closest(".btn")[0];f(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),f(window).on(C.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,i=t.length;e<i;e++){var n=t[e],s=n.querySelector(w);s.checked||s.hasAttribute("checked")?n.classList.add(_):n.classList.remove(_)}for(var o=0,r=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;o<r;o++){var a=t[o];"true"===a.getAttribute("aria-pressed")?a.classList.add(_):a.classList.remove(_)}}),f.fn[d]=x._jQueryInterface,f.fn[d].Constructor=x,f.fn[d].noConflict=function(){return f.fn[d]=y,x._jQueryInterface};var T="carousel",k="bs.carousel",E="."+k,D=".data-api",S=f.fn[T],A={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"},P="next",N="prev",O={SLIDE:"slide"+E,SLID:"slid"+E,KEYDOWN:"keydown"+E,MOUSEENTER:"mouseenter"+E,MOUSELEAVE:"mouseleave"+E,TOUCHSTART:"touchstart"+E,TOUCHMOVE:"touchmove"+E,TOUCHEND:"touchend"+E,POINTERDOWN:"pointerdown"+E,POINTERUP:"pointerup"+E,DRAG_START:"dragstart"+E,LOAD_DATA_API:"load"+E+D,CLICK_DATA_API:"click"+E+D},M="active",$=".active.carousel-item",j=".carousel-indicators",L={TOUCH:"touch",PEN:"pen"},F=function(){function o(t,e){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(e),this._element=t,this._indicatorsElement=this._element.querySelector(j),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=o.prototype;return t.next=function(){this._isSliding||this._slide(P)},t.nextWhenVisible=function(){!document.hidden&&f(this._element).is(":visible")&&"hidden"!==f(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(N)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(m.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(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))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector($);var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)f(this._element).one(O.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=i<t?P:N;this._slide(n,this._items[t])}},t.dispose=function(){f(this._element).off(E),f.removeData(this._element,k),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},A,{},t),m.typeCheckConfig(T,t,I),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;(this.touchDeltaX=0)<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&f(this._element).on(O.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&f(this._element).on(O.MOUSEENTER,function(t){return e.pause(t)}).on(O.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var i=this;if(this._touchSupported){var e=function(t){i._pointerEvent&&L[t.originalEvent.pointerType.toUpperCase()]?i.touchStartX=t.originalEvent.clientX:i._pointerEvent||(i.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){i._pointerEvent&&L[t.originalEvent.pointerType.toUpperCase()]&&(i.touchDeltaX=t.originalEvent.clientX-i.touchStartX),i._handleSwipe(),"hover"===i._config.pause&&(i.pause(),i.touchTimeout&&clearTimeout(i.touchTimeout),i.touchTimeout=setTimeout(function(t){return i.cycle(t)},500+i._config.interval))};f(this._element.querySelectorAll(".carousel-item img")).on(O.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(f(this._element).on(O.POINTERDOWN,function(t){return e(t)}),f(this._element).on(O.POINTERUP,function(t){return n(t)}),this._element.classList.add("pointer-event")):(f(this._element).on(O.TOUCHSTART,function(t){return e(t)}),f(this._element).on(O.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?i.touchDeltaX=0:i.touchDeltaX=e.originalEvent.touches[0].clientX-i.touchStartX}),f(this._element).on(O.TOUCHEND,function(t){return n(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var i=t===P,n=t===N,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;var r=(s+(t===N?-1:1))%this._items.length;return-1==r?this._items[this._items.length-1]:this._items[r]},t._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector($)),s=f.Event(O.SLIDE,{relatedTarget:t,direction:e,from:n,to:i});return f(this._element).trigger(s),s},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));f(e).removeClass(M);var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&f(i).addClass(M)}},t._slide=function(t,e){var i,n,s,o=this,r=this._element.querySelector($),a=this._getItemIndex(r),l=e||r&&this._getItemByDirection(t,r),c=this._getItemIndex(l),h=Boolean(this._interval);if(s=t===P?(i="carousel-item-left",n="carousel-item-next","left"):(i="carousel-item-right",n="carousel-item-prev","right"),l&&f(l).hasClass(M))this._isSliding=!1;else if(!this._triggerSlideEvent(l,s).isDefaultPrevented()&&r&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=f.Event(O.SLID,{relatedTarget:l,direction:s,from:a,to:c});if(f(this._element).hasClass("slide")){f(l).addClass(n),m.reflow(l),f(r).addClass(i),f(l).addClass(i);var d=parseInt(l.getAttribute("data-interval"),10);d?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=d):this._config.interval=this._config.defaultInterval||this._config.interval;var p=m.getTransitionDurationFromElement(r);f(r).one(m.TRANSITION_END,function(){f(l).removeClass(i+" "+n).addClass(M),f(r).removeClass(M+" "+n+" "+i),o._isSliding=!1,setTimeout(function(){return f(o._element).trigger(u)},0)}).emulateTransitionEnd(p)}else f(r).removeClass(M),f(l).addClass(M),this._isSliding=!1,f(this._element).trigger(u);h&&this.cycle()}},o._jQueryInterface=function(n){return this.each(function(){var t=f(this).data(k),e=l({},A,{},f(this).data());"object"==typeof n&&(e=l({},e,{},n));var i="string"==typeof n?n:e.slide;if(t||(t=new o(this,e),f(this).data(k,t)),"number"==typeof n)t.to(n);else if("string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},o._dataApiClickHandler=function(t){var e=m.getSelectorFromElement(this);if(e){var i=f(e)[0];if(i&&f(i).hasClass("carousel")){var n=l({},f(i).data(),{},f(this).data()),s=this.getAttribute("data-slide-to");s&&(n.interval=!1),o._jQueryInterface.call(f(i),n),s&&f(i).data(k).to(s),t.preventDefault()}}},r(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return A}}]),o}();f(document).on(O.CLICK_DATA_API,"[data-slide], [data-slide-to]",F._dataApiClickHandler),f(window).on(O.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,i=t.length;e<i;e++){var n=f(t[e]);F._jQueryInterface.call(n,n.data())}}),f.fn[T]=F._jQueryInterface,f.fn[T].Constructor=F,f.fn[T].noConflict=function(){return f.fn[T]=S,F._jQueryInterface};var R="collapse",H="bs.collapse",q="."+H,U=f.fn[R],z={toggle:!0,parent:""},W={toggle:"boolean",parent:"(string|element)"},B={SHOW:"show"+q,SHOWN:"shown"+q,HIDE:"hide"+q,HIDDEN:"hidden"+q,CLICK_DATA_API:"click"+q+".data-api"},Q="show",V="collapse",Y="collapsing",K="collapsed",X='[data-toggle="collapse"]',G=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(X)),n=0,s=i.length;n<s;n++){var o=i[n],r=m.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(r)).filter(function(t){return t===e});null!==r&&0<a.length&&(this._selector=r,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){f(this._element).hasClass(Q)?this.hide():this.show()},t.show=function(){var t,e,i=this;if(!(this._isTransitioning||f(this._element).hasClass(Q)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(V)})).length&&(t=null),t&&(e=f(t).not(this._selector).data(H))&&e._isTransitioning))){var n=f.Event(B.SHOW);if(f(this._element).trigger(n),!n.isDefaultPrevented()){t&&(a._jQueryInterface.call(f(t).not(this._selector),"hide"),e||f(t).data(H,null));var s=this._getDimension();f(this._element).removeClass(V).addClass(Y),this._element.style[s]=0,this._triggerArray.length&&f(this._triggerArray).removeClass(K).attr("aria-expanded",!0),this.setTransitioning(!0);var o="scroll"+(s[0].toUpperCase()+s.slice(1)),r=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(){f(i._element).removeClass(Y).addClass(V).addClass(Q),i._element.style[s]="",i.setTransitioning(!1),f(i._element).trigger(B.SHOWN)}).emulateTransitionEnd(r),this._element.style[s]=this._element[o]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&f(this._element).hasClass(Q)){var e=f.Event(B.HIDE);if(f(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",m.reflow(this._element),f(this._element).addClass(Y).removeClass(V).removeClass(Q);var n=this._triggerArray.length;if(0<n)for(var s=0;s<n;s++){var o=this._triggerArray[s],r=m.getSelectorFromElement(o);null!==r&&(f([].slice.call(document.querySelectorAll(r))).hasClass(Q)||f(o).addClass(K).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var a=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(){t.setTransitioning(!1),f(t._element).removeClass(Y).addClass(V).trigger(B.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){f.removeData(this._element,H),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},z,{},t)).toggle=Boolean(t.toggle),m.typeCheckConfig(R,t,W),t},t._getDimension=function(){return f(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var t,i=this;m.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',n=[].slice.call(t.querySelectorAll(e));return f(n).each(function(t,e){i._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var i=f(t).hasClass(Q);e.length&&f(e).toggleClass(K,!i).attr("aria-expanded",i)},a._getTargetFromElement=function(t){var e=m.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(n){return this.each(function(){var t=f(this),e=t.data(H),i=l({},z,{},t.data(),{},"object"==typeof n&&n?n:{});if(!e&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),e||(e=new a(this,i),t.data(H,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r(a,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return z}}]),a}();f(document).on(B.CLICK_DATA_API,X,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=f(this),e=m.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(e));f(n).each(function(){var t=f(this),e=t.data(H)?"toggle":i.data();G._jQueryInterface.call(t,e)})}),f.fn[R]=G._jQueryInterface,f.fn[R].Constructor=G,f.fn[R].noConflict=function(){return f.fn[R]=U,G._jQueryInterface};var Z="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,J=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Z&&0<=navigator.userAgent.indexOf(t[e]))return 1;return 0}(),tt=Z&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},J))}};function et(t){return t&&"[object Function]"==={}.toString.call(t)}function it(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function nt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function st(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=it(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(i+s+n)?t:st(nt(t))}function ot(t){return t&&t.referenceNode?t.referenceNode:t}var rt=Z&&!(!window.MSInputMethodContext||!document.documentMode),at=Z&&/MSIE 10/.test(navigator.userAgent);function lt(t){return 11===t?rt:10===t?at:rt||at}function ct(t){if(!t)return document.documentElement;for(var e=lt(10)?document.body:null,i=t.offsetParent||null;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===it(i,"position")?ct(i):i:t?t.ownerDocument.documentElement:document.documentElement}function ht(t){return null!==t.parentNode?ht(t.parentNode):t}function ut(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,s=i?e:t,o=document.createRange();o.setStart(n,0),o.setEnd(s,0);var r,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||n.contains(s))return"BODY"===(a=(r=l).nodeName)||"HTML"!==a&&ct(r.firstElementChild)!==r?ct(l):l;var c=ht(t);return c.host?ut(c.host,e):ut(t,ht(e).host)}function dt(t,e){var i="top"===(1<arguments.length&&void 0!==e?e:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"!==n&&"HTML"!==n)return t[i];var s=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||s)[i]}function pt(t,e){var i="x"===e?"Left":"Top",n="Left"==i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function ft(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],lt(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function mt(t){var e=t.body,i=t.documentElement,n=lt(10)&&getComputedStyle(i);return{height:ft("Height",e,i,n),width:ft("Width",e,i,n)}}function gt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function vt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function _t(t){return yt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function bt(t){var e={};try{if(lt(10)){e=t.getBoundingClientRect();var i=dt(t,"top"),n=dt(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var s={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?mt(t.ownerDocument):{},r=o.width||t.clientWidth||s.width,a=o.height||t.clientHeight||s.height,l=t.offsetWidth-r,c=t.offsetHeight-a;if(l||c){var h=it(t);l-=pt(h,"x"),c-=pt(h,"y"),s.width-=l,s.height-=c}return _t(s)}function wt(t,e,i){var n=2<arguments.length&&void 0!==i&&i,s=lt(10),o="HTML"===e.nodeName,r=bt(t),a=bt(e),l=st(t),c=it(e),h=parseFloat(c.borderTopWidth,10),u=parseFloat(c.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=_t({top:r.top-a.top-h,left:r.left-a.left-u,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!s&&o){var p=parseFloat(c.marginTop,10),f=parseFloat(c.marginLeft,10);d.top-=h-p,d.bottom-=h-p,d.left-=u-f,d.right-=u-f,d.marginTop=p,d.marginLeft=f}return(s&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(d=function(t,e,i){var n=2<arguments.length&&void 0!==i&&i,s=dt(e,"top"),o=dt(e,"left"),r=n?-1:1;return t.top+=s*r,t.bottom+=s*r,t.left+=o*r,t.right+=o*r,t}(d,e)),d}function Ct(t){if(!t||!t.parentElement||lt())return document.documentElement;for(var e=t.parentElement;e&&"none"===it(e,"transform");)e=e.parentElement;return e||document.documentElement}function xt(t,e,i,n,s){var o=4<arguments.length&&void 0!==s&&s,r={top:0,left:0},a=o?Ct(t):ut(t,ot(e));if("viewport"===n)r=function(t,e){var i=1<arguments.length&&void 0!==e&&e,n=t.ownerDocument.documentElement,s=wt(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=i?0:dt(n),l=i?0:dt(n,"left");return _t({top:a-s.top+s.marginTop,left:l-s.left+s.marginLeft,width:o,height:r})}(a,o);else{var l=void 0;"scrollParent"===n?"BODY"===(l=st(nt(e))).nodeName&&(l=t.ownerDocument.documentElement):l="window"===n?t.ownerDocument.documentElement:n;var c=wt(l,a,o);if("HTML"!==l.nodeName||function t(e){var i=e.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===it(e,"position"))return!0;var n=nt(e);return!!n&&t(n)}(a))r=c;else{var h=mt(t.ownerDocument),u=h.height,d=h.width;r.top+=c.top-c.marginTop,r.bottom=u+c.top,r.left+=c.left-c.marginLeft,r.right=d+c.left}}var p="number"==typeof(i=i||0);return r.left+=p?i:i.left||0,r.top+=p?i:i.top||0,r.right-=p?i:i.right||0,r.bottom-=p?i:i.bottom||0,r}function Tt(t,e,n,i,s,o){var r=5<arguments.length&&void 0!==o?o:0;if(-1===t.indexOf("auto"))return t;var a=xt(n,i,r,s),l={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(l).map(function(t){return yt({key:t},l[t],{area:(e=l[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),h=c.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),u=0<h.length?h[0].key:c[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function kt(t,e,i,n){var s=3<arguments.length&&void 0!==n?n:null;return wt(i,s?Ct(e):ut(e,ot(i)),s)}function Et(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function Dt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function St(t,e,i){i=i.split("-")[0];var n=Et(t),s={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(i),r=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return s[r]=e[r]+e[l]/2-n[l]/2,s[a]=i===a?e[a]-n[c]:e[Dt(a)],s}function At(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function It(t,i,e){return(void 0===e?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t.name===i});var n=At(t,function(t){return t.name===i});return t.indexOf(n)}(t,0,e))).forEach(function(t){t.function;var e=t.function||t.fn;t.enabled&&et(e)&&(i.offsets.popper=_t(i.offsets.popper),i.offsets.reference=_t(i.offsets.reference),i=e(i,t))}),i}function Pt(t,i){return t.some(function(t){var e=t.name;return t.enabled&&e===i})}function Nt(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var s=e[n],o=s?""+s+i:t;if(void 0!==document.body.style[o])return o}return null}function Ot(t){var e=t.ownerDocument;return e?e.defaultView:window}function Mt(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function $t(i,n){Object.keys(n).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&Mt(n[t])&&(e="px"),i.style[t]=n[t]+e})}var jt=Z&&/Firefox/i.test(navigator.userAgent);function Lt(t,e,i){var n=At(t,function(t){return t.name===e}),s=!!n&&t.some(function(t){return t.name===i&&t.enabled&&t.order<n.order});if(!s);return s}var Ft=["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"],Rt=Ft.slice(3);function Ht(t,e){var i=1<arguments.length&&void 0!==e&&e,n=Rt.indexOf(t),s=Rt.slice(n+1).concat(Rt.slice(0,n));return i?s.reverse():s}var qt,Ut,zt,Wt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var s=t.offsets,o=s.reference,r=s.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",c=a?"width":"height",h={start:vt({},l,o[l]),end:vt({},l,o[l]+o[c]-r[c])};t.offsets.popper=yt({},r,h[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i,n=e.offset,s=t.placement,o=t.offsets,r=o.popper,a=o.reference,l=s.split("-")[0];return i=Mt(+n)?[+n,0]:function(t,s,o,e){var r=[0,0],a=-1!==["right","left"].indexOf(e),i=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=i.indexOf(At(i,function(t){return-1!==t.search(/,|\s/)}));i[n]&&i[n].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==n?[i.slice(0,n).concat([i[n].split(l)[0]]),[i[n].split(l)[1]].concat(i.slice(n+1))]:[i];return(c=c.map(function(t,e){var i=(1===e?!a:a)?"height":"width",n=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,n=!0,t):n?(t[t.length-1]+=e,n=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,i,n){var s=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+s[1],r=s[2];if(!o)return t;if(0!==r.indexOf("%"))return"vh"!==r&&"vw"!==r?o:("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var a=void 0;switch(r){case"%p":a=i;break;case"%":case"%r":default:a=n}return _t(a)[e]/100*o}(t,i,s,o)})})).forEach(function(i,n){i.forEach(function(t,e){Mt(t)&&(r[n]+=t*("-"===i[e-1]?-1:1))})}),r}(n,r,a,l),"left"===l?(r.top+=i[0],r.left-=i[1]):"right"===l?(r.top+=i[0],r.left+=i[1]):"top"===l?(r.left+=i[0],r.top-=i[1]):"bottom"===l&&(r.left+=i[0],r.top+=i[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,n){var e=n.boundariesElement||ct(t.instance.popper);t.instance.reference===e&&(e=ct(e));var i=Nt("transform"),s=t.instance.popper.style,o=s.top,r=s.left,a=s[i];s.top="",s.left="",s[i]="";var l=xt(t.instance.popper,t.instance.reference,n.padding,e,t.positionFixed);s.top=o,s.left=r,s[i]=a,n.boundaries=l;var c=n.priority,h=t.offsets.popper,u={primary:function(t){var e=h[t];return h[t]<l[t]&&!n.escapeWithReference&&(e=Math.max(h[t],l[t])),vt({},t,e)},secondary:function(t){var e="right"===t?"left":"top",i=h[e];return h[t]>l[t]&&!n.escapeWithReference&&(i=Math.min(h[e],l[t]-("right"===t?h.width:h.height))),vt({},e,i)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=yt({},h,u[e](t))}),t.offsets.popper=h,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,s=t.placement.split("-")[0],o=Math.floor,r=-1!==["top","bottom"].indexOf(s),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return i[a]<o(n[l])&&(t.offsets.popper[l]=o(n[l])-i[c]),i[l]>o(n[a])&&(t.offsets.popper[l]=o(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!Lt(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return t;var s=t.placement.split("-")[0],o=t.offsets,r=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(s),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",f=Et(n)[c];a[p]-f<r[u]&&(t.offsets.popper[u]-=r[u]-(a[p]-f)),a[u]+f>r[p]&&(t.offsets.popper[u]+=a[u]+f-r[p]),t.offsets.popper=_t(t.offsets.popper);var m=a[u]+a[c]/2-f/2,g=it(t.instance.popper),v=parseFloat(g["margin"+h],10),y=parseFloat(g["border"+h+"Width"],10),_=m-t.offsets.popper[u]-v-y;return _=Math.max(Math.min(r[c]-f,_),0),t.arrowElement=n,t.offsets.arrow=(vt(i={},u,Math.round(_)),vt(i,d,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(m,g){if(Pt(m.instance.modifiers,"inner"))return m;if(m.flipped&&m.placement===m.originalPlacement)return m;var v=xt(m.instance.popper,m.instance.reference,g.padding,g.boundariesElement,m.positionFixed),y=m.placement.split("-")[0],_=Dt(y),b=m.placement.split("-")[1]||"",w=[];switch(g.behavior){case"flip":w=[y,_];break;case"clockwise":w=Ht(y);break;case"counterclockwise":w=Ht(y,!0);break;default:w=g.behavior}return w.forEach(function(t,e){if(y!==t||w.length===e+1)return m;y=m.placement.split("-")[0],_=Dt(y);var i=m.offsets.popper,n=m.offsets.reference,s=Math.floor,o="left"===y&&s(i.right)>s(n.left)||"right"===y&&s(i.left)<s(n.right)||"top"===y&&s(i.bottom)>s(n.top)||"bottom"===y&&s(i.top)<s(n.bottom),r=s(i.left)<s(v.left),a=s(i.right)>s(v.right),l=s(i.top)<s(v.top),c=s(i.bottom)>s(v.bottom),h="left"===y&&r||"right"===y&&a||"top"===y&&l||"bottom"===y&&c,u=-1!==["top","bottom"].indexOf(y),d=!!g.flipVariations&&(u&&"start"===b&&r||u&&"end"===b&&a||!u&&"start"===b&&l||!u&&"end"===b&&c),p=!!g.flipVariationsByContent&&(u&&"start"===b&&a||u&&"end"===b&&r||!u&&"start"===b&&c||!u&&"end"===b&&l),f=d||p;(o||h||f)&&(m.flipped=!0,(o||h)&&(y=w[e+1]),f&&(b="end"===b?"start":"start"===b?"end":b),m.placement=y+(b?"-"+b:""),m.offsets.popper=yt({},m.offsets.popper,St(m.instance.popper,m.offsets.reference,m.placement)),m=It(m.instance.modifiers,m,"flip"))}),m},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,s=n.popper,o=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return s[r?"left":"top"]=o[i]-(a?s[r?"width":"height"]:0),t.placement=Dt(e),t.offsets.popper=_t(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Lt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=At(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i,n,s=e.x,o=e.y,r=t.offsets.popper,a=At(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration,l=void 0!==a?a:e.gpuAcceleration,c=ct(t.instance.popper),h=bt(c),u={position:r.position},d=function(t,e){function i(t){return t}var n=t.offsets,s=n.popper,o=n.reference,r=Math.round,a=Math.floor,l=r(o.width),c=r(s.width),h=-1!==["left","right"].indexOf(t.placement),u=-1!==t.placement.indexOf("-"),d=e?h||u||l%2==c%2?r:a:i,p=e?r:i;return{left:d(l%2==1&&c%2==1&&!u&&e?s.left-1:s.left),top:p(s.top),bottom:p(s.bottom),right:d(s.right)}}(t,window.devicePixelRatio<2||!jt),p="bottom"===s?"top":"bottom",f="right"===o?"left":"right",m=Nt("transform");if(n="bottom"==p?"HTML"===c.nodeName?-c.clientHeight+d.bottom:-h.height+d.bottom:d.top,i="right"==f?"HTML"===c.nodeName?-c.clientWidth+d.right:-h.width+d.right:d.left,l&&m)u[m]="translate3d("+i+"px, "+n+"px, 0)",u[p]=0,u[f]=0,u.willChange="transform";else{var g="bottom"==p?-1:1,v="right"==f?-1:1;u[p]=n*g,u[f]=i*v,u.willChange=p+", "+f}var y={"x-placement":t.placement};return t.attributes=yt({},y,t.attributes),t.styles=yt({},u,t.styles),t.arrowStyles=yt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return $t(t.instance.popper,t.styles),e=t.instance.popper,i=t.attributes,Object.keys(i).forEach(function(t){!1!==i[t]?e.setAttribute(t,i[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&$t(t.arrowElement,t.arrowStyles),t;var e,i},onLoad:function(t,e,i,n,s){var o=kt(s,e,t,i.positionFixed),r=Tt(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",r),$t(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},Bt=(qt=Qt,(Ut=[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=kt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Tt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=St(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=It(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Pt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Nt("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=function(t,e,i,n){i.updateBound=n,Ot(t).addEventListener("resize",i.updateBound,{passive:!0});var s=st(t);return function t(e,i,n,s){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(i,n,{passive:!0}),o||t(st(r.parentNode),i,n,s),s.push(r)}(s,"scroll",i.updateBound,i.scrollParents),i.scrollElement=s,i.eventsEnabled=!0,i}(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return function(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Ot(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}.call(this)}}])&&gt(qt.prototype,Ut),zt&&gt(qt,zt),Qt);function Qt(t,e){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof Qt))throw new TypeError("Cannot call a class as a function")}(this),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=tt(this.update.bind(this)),this.options=yt({},Qt.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(yt({},Qt.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=yt({},Qt.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return yt({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&et(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}Bt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Bt.placements=Ft,Bt.Defaults=Wt;var Vt="dropdown",Yt="bs.dropdown",Kt="."+Yt,Xt=".data-api",Gt=f.fn[Vt],Zt=new RegExp("38|40|27"),Jt={HIDE:"hide"+Kt,HIDDEN:"hidden"+Kt,SHOW:"show"+Kt,SHOWN:"shown"+Kt,CLICK:"click"+Kt,CLICK_DATA_API:"click"+Kt+Xt,KEYDOWN_DATA_API:"keydown"+Kt+Xt,KEYUP_DATA_API:"keyup"+Kt+Xt},te="disabled",ee="show",ie="dropdown-menu-right",ne='[data-toggle="dropdown"]',se=".dropdown-menu",oe={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},re={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},ae=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!f(this._element).hasClass(te)){var t=f(this._menu).hasClass(ee);c._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||f(this._element).hasClass(te)||f(this._menu).hasClass(ee))){var e={relatedTarget:this._element},i=f.Event(Jt.SHOW,e),n=c._getParentFromElement(this._element);if(f(n).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===Bt)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=n:m.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&f(n).addClass("position-static"),this._popper=new Bt(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===f(n).closest(".navbar-nav").length&&f(document.body).children().on("mouseover",null,f.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),f(this._menu).toggleClass(ee),f(n).toggleClass(ee).trigger(f.Event(Jt.SHOWN,e))}}},t.hide=function(){if(!this._element.disabled&&!f(this._element).hasClass(te)&&f(this._menu).hasClass(ee)){var t={relatedTarget:this._element},e=f.Event(Jt.HIDE,t),i=c._getParentFromElement(this._element);f(i).trigger(e),e.isDefaultPrevented()||(this._popper&&this._popper.destroy(),f(this._menu).toggleClass(ee),f(i).toggleClass(ee).trigger(f.Event(Jt.HIDDEN,t)))}},t.dispose=function(){f.removeData(this._element,Yt),f(this._element).off(Kt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;f(this._element).on(Jt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,{},f(this._element).data(),{},t),m.typeCheckConfig(Vt,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(se))}return this._menu},t._getPlacement=function(){var t=f(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?(e="top-start",f(this._menu).hasClass(ie)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":f(this._menu).hasClass(ie)&&(e="bottom-end"),e},t._detectNavbar=function(){return 0<f(this._element).closest(".navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,{},this._config.popperConfig)},c._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(Yt);if(t||(t=new c(this,"object"==typeof e?e:null),f(this).data(Yt,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(ne)),i=0,n=e.length;i<n;i++){var s=c._getParentFromElement(e[i]),o=f(e[i]).data(Yt),r={relatedTarget:e[i]};if(t&&"click"===t.type&&(r.clickEvent=t),o){var a=o._menu;if(f(s).hasClass(ee)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&f.contains(s,t.target))){var l=f.Event(Jt.HIDE,r);f(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),e[i].setAttribute("aria-expanded","false"),o._popper&&o._popper.destroy(),f(a).removeClass(ee),f(s).removeClass(ee).trigger(f.Event(Jt.HIDDEN,r)))}}}},c._getParentFromElement=function(t){var e,i=m.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||f(t.target).closest(se).length)):Zt.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!f(this).hasClass(te))){var e=c._getParentFromElement(this),i=f(e).hasClass(ee);if(i||27!==t.which)if(i&&(!i||27!==t.which&&32!==t.which)){var n=[].slice.call(e.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(t){return f(t).is(":visible")});if(0!==n.length){var s=n.indexOf(t.target);38===t.which&&0<s&&s--,40===t.which&&s<n.length-1&&s++,s<0&&(s=0),n[s].focus()}}else{if(27===t.which){var o=e.querySelector(ne);f(o).trigger("focus")}f(this).trigger("click")}}},r(c,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return oe}},{key:"DefaultType",get:function(){return re}}]),c}();f(document).on(Jt.KEYDOWN_DATA_API,ne,ae._dataApiKeydownHandler).on(Jt.KEYDOWN_DATA_API,se,ae._dataApiKeydownHandler).on(Jt.CLICK_DATA_API+" "+Jt.KEYUP_DATA_API,ae._clearMenus).on(Jt.CLICK_DATA_API,ne,function(t){t.preventDefault(),t.stopPropagation(),ae._jQueryInterface.call(f(this),"toggle")}).on(Jt.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),f.fn[Vt]=ae._jQueryInterface,f.fn[Vt].Constructor=ae,f.fn[Vt].noConflict=function(){return f.fn[Vt]=Gt,ae._jQueryInterface};var le="modal",ce="bs.modal",he="."+ce,ue=f.fn[le],de={backdrop:!0,keyboard:!0,focus:!0,show:!0},pe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},fe={HIDE:"hide"+he,HIDE_PREVENTED:"hidePrevented"+he,HIDDEN:"hidden"+he,SHOW:"show"+he,SHOWN:"shown"+he,FOCUSIN:"focusin"+he,RESIZE:"resize"+he,CLICK_DISMISS:"click.dismiss"+he,KEYDOWN_DISMISS:"keydown.dismiss"+he,MOUSEUP_DISMISS:"mouseup.dismiss"+he,MOUSEDOWN_DISMISS:"mousedown.dismiss"+he,CLICK_DATA_API:"click"+he+".data-api"},me="modal-open",ge="fade",ve="show",ye="modal-static",_e=".modal-dialog",be=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",we=".sticky-top",Ce=function(){function s(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(_e),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=s.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){f(this._element).hasClass(ge)&&(this._isTransitioning=!0);var i=f.Event(fe.SHOW,{relatedTarget:t});f(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),f(this._element).on(fe.CLICK_DISMISS,'[data-dismiss="modal"]',function(t){return e.hide(t)}),f(this._dialog).on(fe.MOUSEDOWN_DISMISS,function(){f(e._element).one(fe.MOUSEUP_DISMISS,function(t){f(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var i=f.Event(fe.HIDE);if(f(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=f(this._element).hasClass(ge);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),f(document).off(fe.FOCUSIN),f(this._element).removeClass(ve),f(this._element).off(fe.CLICK_DISMISS),f(this._dialog).off(fe.MOUSEDOWN_DISMISS),n){var s=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(s)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return f(t).off(he)}),f(document).off(fe.FOCUSIN),f.removeData(this._element,ce),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},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},de,{},t),m.typeCheckConfig(le,t,pe),t},t._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var e=f.Event(fe.HIDE_PREVENTED);if(f(this._element).trigger(e),e.defaultPrevented)return;this._element.classList.add(ye);var i=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,function(){t._element.classList.remove(ye)}).emulateTransitionEnd(i),this._element.focus()}else this.hide()},t._showElement=function(t){var e=this,i=f(this._element).hasClass(ge),n=this._dialog?this._dialog.querySelector(".modal-body"):null;function s(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,f(e._element).trigger(o)}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),f(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,i&&m.reflow(this._element),f(this._element).addClass(ve),this._config.focus&&this._enforceFocus();var o=f.Event(fe.SHOWN,{relatedTarget:t});if(i){var r=m.getTransitionDurationFromElement(this._dialog);f(this._dialog).one(m.TRANSITION_END,s).emulateTransitionEnd(r)}else s()},t._enforceFocus=function(){var e=this;f(document).off(fe.FOCUSIN).on(fe.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===f(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?f(this._element).on(fe.KEYDOWN_DISMISS,function(t){27===t.which&&e._triggerBackdropTransition()}):this._isShown||f(this._element).off(fe.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?f(window).on(fe.RESIZE,function(t){return e.handleUpdate(t)}):f(window).off(fe.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){f(document.body).removeClass(me),t._resetAdjustments(),t._resetScrollbar(),f(t._element).trigger(fe.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(f(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,i=f(this._element).hasClass(ge)?ge:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),f(this._backdrop).appendTo(document.body),f(this._element).on(fe.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&e._triggerBackdropTransition()}),i&&m.reflow(this._backdrop),f(this._backdrop).addClass(ve),!t)return;if(!i)return void t();var n=m.getTransitionDurationFromElement(this._backdrop);f(this._backdrop).one(m.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){f(this._backdrop).removeClass(ve);var s=function(){e._removeBackdrop(),t&&t()};if(f(this._element).hasClass(ge)){var o=m.getTransitionDurationFromElement(this._backdrop);f(this._backdrop).one(m.TRANSITION_END,s).emulateTransitionEnd(o)}else s()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var s=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(be)),e=[].slice.call(document.querySelectorAll(we));f(t).each(function(t,e){var i=e.style.paddingRight,n=f(e).css("padding-right");f(e).data("padding-right",i).css("padding-right",parseFloat(n)+s._scrollbarWidth+"px")}),f(e).each(function(t,e){var i=e.style.marginRight,n=f(e).css("margin-right");f(e).data("margin-right",i).css("margin-right",parseFloat(n)-s._scrollbarWidth+"px")});var i=document.body.style.paddingRight,n=f(document.body).css("padding-right");f(document.body).data("padding-right",i).css("padding-right",parseFloat(n)+this._scrollbarWidth+"px")}f(document.body).addClass(me)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(be));f(t).each(function(t,e){var i=f(e).data("padding-right");f(e).removeData("padding-right"),e.style.paddingRight=i||""});var e=[].slice.call(document.querySelectorAll(""+we));f(e).each(function(t,e){var i=f(e).data("margin-right");void 0!==i&&f(e).css("margin-right",i).removeData("margin-right")});var i=f(document.body).data("padding-right");f(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},s._jQueryInterface=function(i,n){return this.each(function(){var t=f(this).data(ce),e=l({},de,{},f(this).data(),{},"object"==typeof i&&i?i:{});if(t||(t=new s(this,e),f(this).data(ce,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i](n)}else e.show&&t.show(n)})},r(s,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return de}}]),s}();f(document).on(fe.CLICK_DATA_API,'[data-toggle="modal"]',function(t){var e,i=this,n=m.getSelectorFromElement(this);n&&(e=document.querySelector(n));var s=f(e).data(ce)?"toggle":l({},f(e).data(),{},f(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=f(e).one(fe.SHOW,function(t){t.isDefaultPrevented()||o.one(fe.HIDDEN,function(){f(i).is(":visible")&&i.focus()})});Ce._jQueryInterface.call(f(e),s,this)}),f.fn[le]=Ce._jQueryInterface,f.fn[le].Constructor=Ce,f.fn[le].noConflict=function(){return f.fn[le]=ue,Ce._jQueryInterface};var xe=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Te=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ke=/^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 Ee(t,o,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),r=Object.keys(o),a=[].slice.call(i.body.querySelectorAll("*")),n=function(t){var e=a[t],i=e.nodeName.toLowerCase();if(-1===r.indexOf(e.nodeName.toLowerCase()))return e.parentNode.removeChild(e),"continue";var n=[].slice.call(e.attributes),s=[].concat(o["*"]||[],o[i]||[]);n.forEach(function(t){!function(t,e){var i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===xe.indexOf(i)||Boolean(t.nodeValue.match(Te)||t.nodeValue.match(ke));for(var n=e.filter(function(t){return t instanceof RegExp}),s=0,o=n.length;s<o;s++)if(i.match(n[s]))return!0;return!1}(t,s)&&e.removeAttribute(t.nodeName)})},s=0,l=a.length;s<l;s++)n(s);return i.body.innerHTML}var De="tooltip",Se="bs.tooltip",Ae="."+Se,Ie=f.fn[De],Pe="bs-tooltip",Ne=new RegExp("(^|\\s)"+Pe+"\\S+","g"),Oe=["sanitize","whiteList","sanitizeFn"],Me={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)"},$e={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},je={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},Le="show",Fe={HIDE:"hide"+Ae,HIDDEN:"hidden"+Ae,SHOW:"show"+Ae,SHOWN:"shown"+Ae,INSERTED:"inserted"+Ae,CLICK:"click"+Ae,FOCUSIN:"focusin"+Ae,FOCUSOUT:"focusout"+Ae,MOUSEENTER:"mouseenter"+Ae,MOUSELEAVE:"mouseleave"+Ae},Re="fade",He="show",qe="hover",Ue="focus",ze=function(){function n(t,e){if(void 0===Bt)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=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=n.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=f(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(f(this.getTipElement()).hasClass(He))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),f.removeData(this.element,this.constructor.DATA_KEY),f(this.element).off(this.constructor.EVENT_KEY),f(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&f(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},t.show=function(){var e=this;if("none"===f(this.element).css("display"))throw new Error("Please use show on visible elements");var t=f.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){f(this.element).trigger(t);var i=m.findShadowRoot(this.element),n=f.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var s=this.getTipElement(),o=m.getUID(this.constructor.NAME);s.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&f(s).addClass(Re);var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var l=this._getContainer();f(s).data(this.constructor.DATA_KEY,this),f.contains(this.element.ownerDocument.documentElement,this.tip)||f(s).appendTo(l),f(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Bt(this.element,s,this._getPopperConfig(a)),f(s).addClass(He),"ontouchstart"in document.documentElement&&f(document.body).children().on("mouseover",null,f.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,f(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(f(this.tip).hasClass(Re)){var h=m.getTransitionDurationFromElement(this.tip);f(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){function e(){i._hoverState!==Le&&n.parentNode&&n.parentNode.removeChild(n),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),f(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),t&&t()}var i=this,n=this.getTipElement(),s=f.Event(this.constructor.Event.HIDE);if(f(this.element).trigger(s),!s.isDefaultPrevented()){if(f(n).removeClass(He),"ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),this._activeTrigger.click=!1,this._activeTrigger[Ue]=!1,this._activeTrigger[qe]=!1,f(this.tip).hasClass(Re)){var o=m.getTransitionDurationFromElement(n);f(n).one(m.TRANSITION_END,e).emulateTransitionEnd(o)}else e();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Pe+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(f(t.querySelectorAll(".tooltip-inner")),this.getTitle()),f(t).removeClass(Re+" "+He)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Ee(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?f(e).parent().is(t)||t.empty().append(e):t.text(f(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},t._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?f(this.config.container):f(document).find(this.config.container)},t._getAttachment=function(t){return $e[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)f(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if("manual"!==t){var e=t===qe?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,i=t===qe?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;f(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(i,n.config.selector,function(t){return n._leave(t)})}}),this._hideModalHandler=function(){n.element&&n.hide()},f(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?Ue:qe]=!0),f(e.getTipElement()).hasClass(He)||e._hoverState===Le?e._hoverState=Le:(clearTimeout(e._timeout),e._hoverState=Le,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Le&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?Ue:qe]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=f(this.element).data();return Object.keys(e).forEach(function(t){-1!==Oe.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,{},e,{},"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig(De,t,this.constructor.DefaultType),t.sanitize&&(t.template=Ee(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Ne);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(f(t).removeClass(Re),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Se),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(Se,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return je}},{key:"NAME",get:function(){return De}},{key:"DATA_KEY",get:function(){return Se}},{key:"Event",get:function(){return Fe}},{key:"EVENT_KEY",get:function(){return Ae}},{key:"DefaultType",get:function(){return Me}}]),n}();f.fn[De]=ze._jQueryInterface,f.fn[De].Constructor=ze,f.fn[De].noConflict=function(){return f.fn[De]=Ie,ze._jQueryInterface};var We="popover",Be="bs.popover",Qe="."+Be,Ve=f.fn[We],Ye="bs-popover",Ke=new RegExp("(^|\\s)"+Ye+"\\S+","g"),Xe=l({},ze.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>'}),Ge=l({},ze.DefaultType,{content:"(string|element|function)"}),Ze={HIDE:"hide"+Qe,HIDDEN:"hidden"+Qe,SHOW:"show"+Qe,SHOWN:"shown"+Qe,INSERTED:"inserted"+Qe,CLICK:"click"+Qe,FOCUSIN:"focusin"+Qe,FOCUSOUT:"focusout"+Qe,MOUSEENTER:"mouseenter"+Qe,MOUSELEAVE:"mouseleave"+Qe},Je=function(t){function n(){return t.apply(this,arguments)||this}var e,i;i=t,(e=n).prototype=Object.create(i.prototype),(e.prototype.constructor=e).__proto__=i;var s=n.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Ye+"-"+t)},s.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},s.setContent=function(){var t=f(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Ke);null!==e&&0<e.length&&t.removeClass(e.join(""))},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Be),e="object"==typeof i?i:null;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(Be,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Xe}},{key:"NAME",get:function(){return We}},{key:"DATA_KEY",get:function(){return Be}},{key:"Event",get:function(){return Ze}},{key:"EVENT_KEY",get:function(){return Qe}},{key:"DefaultType",get:function(){return Ge}}]),n}(ze);f.fn[We]=Je._jQueryInterface,f.fn[We].Constructor=Je,f.fn[We].noConflict=function(){return f.fn[We]=Ve,Je._jQueryInterface};var ti="scrollspy",ei="bs.scrollspy",ii="."+ei,ni=f.fn[ti],si={offset:10,method:"auto",target:""},oi={offset:"number",method:"string",target:"(string|element)"},ri={ACTIVATE:"activate"+ii,SCROLL:"scroll"+ii,LOAD_DATA_API:"load"+ii+".data-api"},ai="active",li=".nav, .list-group",ci=".nav-link",hi=".list-group-item",ui=".dropdown-item",di="position",pi=function(){function i(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ci+","+this._config.target+" "+hi+","+this._config.target+" "+ui,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,f(this._scrollElement).on(ri.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var t=i.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":di,s="auto"===this._config.method?t:this._config.method,o=s===di?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,i=m.getSelectorFromElement(t);if(i&&(e=document.querySelector(i)),e){var n=e.getBoundingClientRect();if(n.width||n.height)return[f(e)[s]().top+o,i]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){f.removeData(this._element,ei),f(this._scrollElement).off(ii),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},si,{},"object"==typeof t&&t?t:{})).target){var e=f(t.target).attr("id");e||(e=m.getUID(ti),f(t.target).attr("id",e)),t.target="#"+e}return m.typeCheckConfig(ti,t,oi),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),i<=t){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<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]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),i=f([].slice.call(document.querySelectorAll(t.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass(ai),i.addClass(ai)):(i.addClass(ai),i.parents(li).prev(ci+", "+hi).addClass(ai),i.parents(li).prev(".nav-item").children(ci).addClass(ai)),f(this._scrollElement).trigger(ri.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(ai)}).forEach(function(t){return t.classList.remove(ai)})},i._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(ei);if(t||(t=new i(this,"object"==typeof e&&e),f(this).data(ei,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return si}}]),i}();f(window).on(ri.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var i=f(t[e]);pi._jQueryInterface.call(i,i.data())}}),f.fn[ti]=pi._jQueryInterface,f.fn[ti].Constructor=pi,f.fn[ti].noConflict=function(){return f.fn[ti]=ni,pi._jQueryInterface};var fi="bs.tab",mi="."+fi,gi=f.fn.tab,vi={HIDE:"hide"+mi,HIDDEN:"hidden"+mi,SHOW:"show"+mi,SHOWN:"shown"+mi,CLICK_DATA_API:"click"+mi+".data-api"},yi="active",_i=".active",bi="> li > .active",wi=function(){function n(t){this._element=t}var t=n.prototype;return t.show=function(){var i=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&f(this._element).hasClass(yi)||f(this._element).hasClass("disabled"))){var t,n,e=f(this._element).closest(".nav, .list-group")[0],s=m.getSelectorFromElement(this._element);if(e){var o="UL"===e.nodeName||"OL"===e.nodeName?bi:_i;n=(n=f.makeArray(f(e).find(o)))[n.length-1]}var r=f.Event(vi.HIDE,{relatedTarget:this._element}),a=f.Event(vi.SHOW,{relatedTarget:n});if(n&&f(n).trigger(r),f(this._element).trigger(a),!a.isDefaultPrevented()&&!r.isDefaultPrevented()){s&&(t=document.querySelector(s)),this._activate(this._element,e);var l=function(){var t=f.Event(vi.HIDDEN,{relatedTarget:i._element}),e=f.Event(vi.SHOWN,{relatedTarget:n});f(n).trigger(t),f(i._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){f.removeData(this._element,fi),this._element=null},t._activate=function(t,e,i){function n(){return s._transitionComplete(t,o,i)}var s=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?f(e).children(_i):f(e).find(bi))[0],r=i&&o&&f(o).hasClass("fade");if(o&&r){var a=m.getTransitionDurationFromElement(o);f(o).removeClass("show").one(m.TRANSITION_END,n).emulateTransitionEnd(a)}else n()},t._transitionComplete=function(t,e,i){if(e){f(e).removeClass(yi);var n=f(e.parentNode).find("> .dropdown-menu .active")[0];n&&f(n).removeClass(yi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(f(t).addClass(yi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),m.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&f(t.parentNode).hasClass("dropdown-menu")){var s=f(t).closest(".dropdown")[0];if(s){var o=[].slice.call(s.querySelectorAll(".dropdown-toggle"));f(o).addClass(yi)}t.setAttribute("aria-expanded",!0)}i&&i()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(fi);if(e||(e=new n(this),t.data(fi,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),n}();f(document).on(vi.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),wi._jQueryInterface.call(f(this),"show")}),f.fn.tab=wi._jQueryInterface,f.fn.tab.Constructor=wi,f.fn.tab.noConflict=function(){return f.fn.tab=gi,wi._jQueryInterface};var Ci="toast",xi="bs.toast",Ti="."+xi,ki=f.fn[Ci],Ei={CLICK_DISMISS:"click.dismiss"+Ti,HIDE:"hide"+Ti,HIDDEN:"hidden"+Ti,SHOW:"show"+Ti,SHOWN:"shown"+Ti},Di="hide",Si="show",Ai="showing",Ii={animation:"boolean",autohide:"boolean",delay:"number"},Pi={animation:!0,autohide:!0,delay:500},Ni=function(){function n(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=n.prototype;return t.show=function(){var t=this,e=f.Event(Ei.SHOW);if(f(this._element).trigger(e),!e.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove(Ai),t._element.classList.add(Si),f(t._element).trigger(Ei.SHOWN),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove(Di),m.reflow(this._element),this._element.classList.add(Ai),this._config.animation){var n=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,i).emulateTransitionEnd(n)}else i()}},t.hide=function(){if(this._element.classList.contains(Si)){var t=f.Event(Ei.HIDE);f(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Si)&&this._element.classList.remove(Si),f(this._element).off(Ei.CLICK_DISMISS),f.removeData(this._element,xi),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},Pi,{},f(this._element).data(),{},"object"==typeof t&&t?t:{}),m.typeCheckConfig(Ci,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;f(this._element).on(Ei.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return t.hide()})},t._close=function(){function t(){e._element.classList.add(Di),f(e._element).trigger(Ei.HIDDEN)}var e=this;if(this._element.classList.remove(Si),this._config.animation){var i=m.getTransitionDurationFromElement(this._element);f(this._element).one(m.TRANSITION_END,t).emulateTransitionEnd(i)}else t()},n._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(xi);if(e||(e=new n(this,"object"==typeof i&&i),t.data(xi,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},r(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Ii}},{key:"Default",get:function(){return Pi}}]),n}();f.fn[Ci]=Ni._jQueryInterface,f.fn[Ci].Constructor=Ni,f.fn[Ci].noConflict=function(){return f.fn[Ci]=ki,Ni._jQueryInterface},t.Alert=u,t.Button=x,t.Carousel=F,t.Collapse=G,t.Dropdown=ae,t.Modal=Ce,t.Popover=Je,t.Scrollspy=pi,t.Tab=wi,t.Toast=Ni,t.Tooltip=ze,t.Util=m,Object.defineProperty(t,"__esModule",{value:!0})}),function(){function n(t,e,i){return t.call.apply(t.bind,arguments)}function s(e,i,t){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,n),e.apply(i,t)}}return function(){return e.apply(i,arguments)}}function p(t,e,i){return(p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?n:s).apply(null,arguments)}var a=Date.now||function(){return+new Date};var l=!!window.FontFace;function c(t,e,i,n){if(e=t.c.createElement(e),i)for(var s in i)i.hasOwnProperty(s)&&("style"==s?e.style.cssText=i[s]:e.setAttribute(s,i[s]));return n&&e.appendChild(t.c.createTextNode(n)),e}function h(t,e,i){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(i,t.lastChild)}function i(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,i){e=e||[],i=i||[];for(var n=t.className.split(/\s+/),s=0;s<e.length;s+=1){for(var o=!1,r=0;r<n.length;r+=1)if(e[s]===n[r]){o=!0;break}o||n.push(e[s])}for(e=[],s=0;s<n.length;s+=1){for(o=!1,r=0;r<i.length;r+=1)if(n[s]===i[r]){o=!0;break}o||e.push(n[s])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function o(t,e){for(var i=t.className.split(/\s+/),n=0,s=i.length;n<s;n++)if(i[n]==e)return!0;return!1}function u(t){if("string"==typeof t.f)return t.f;var e=t.m.location.protocol;return"about:"==e&&(e=t.a.location.protocol),"https:"==e?"https:":"http:"}function d(t,e,i){function n(){a&&s&&o&&(a(r),a=null)}e=c(t,"link",{rel:"stylesheet",href:e,media:"all"});var s=!1,o=!0,r=null,a=i||null;l?(e.onload=function(){s=!0,n()},e.onerror=function(){s=!0,r=Error("Stylesheet failed to load"),n()}):setTimeout(function(){s=!0,n()},0),h(t,"head",e)}function m(t,e,i,n){var s=t.c.getElementsByTagName("head")[0];if(s){var o=c(t,"script",{src:e}),r=!1;return o.onload=o.onreadystatechange=function(){r||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(r=!0,i&&i(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&s.removeChild(o))},s.appendChild(o),setTimeout(function(){r||(r=!0,i&&i(Error("Script load timeout")))},n||5e3),o}return null}function g(){this.a=0,this.c=null}function v(t){return t.a++,function(){t.a--,r(t)}}function y(t,e){t.c=e,r(t)}function r(t){0==t.a&&t.c&&(t.c(),t.c=null)}function _(t){this.a=t||"-"}function b(t,e){this.c=t,this.f=4,this.a="n";var i=(e||"n4").match(/^([nio])([1-9])$/i);i&&(this.a=i[1],this.f=parseInt(i[2],10))}function w(t){var e=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var n=t[i].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?e.push("'"+n+"'"):e.push(n)}return e.join(",")}function C(t){return t.a+t.f}function x(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function T(t){if(t.g){var e=o(t.f,t.a.c("wf","active")),i=[],n=[t.a.c("wf","loading")];e||i.push(t.a.c("wf","inactive")),f(t.f,i,n)}k(t,"inactive")}function k(t,e,i){t.j&&t.h[e]&&(i?t.h[e](i.c,C(i)):t.h[e]())}function E(t,e){this.c=t,this.f=e,this.a=c(this.c,"span",{"aria-hidden":"true"},this.f)}function D(t){h(t.c,"body",t.a)}function S(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(t.c)+";font-style:"+x(t)+";font-weight:"+t.f+"00;"}function A(t,e,i,n,s,o){this.g=t,this.j=e,this.a=n,this.c=i,this.f=s||3e3,this.h=o||void 0}function I(t,e,i,n,s,o,r){this.v=t,this.B=e,this.c=i,this.a=n,this.s=r||"BESbswy",this.f={},this.w=s||3e3,this.u=o||null,this.o=this.j=this.h=this.g=null,this.g=new E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.o=new E(this.c,this.s),t=S(t=new b(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=t,t=S(t=new b(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=t,t=S(t=new b("serif",C(this.a))),this.j.a.style.cssText=t,t=S(t=new b("sans-serif",C(this.a))),this.o.a.style.cssText=t,D(this.g),D(this.h),D(this.j),D(this.o)}_.prototype.c=function(t){for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},A.prototype.start=function(){var s=this.c.m.document,o=this,r=a(),t=new Promise(function(i,n){!function e(){var t;a()-r>=o.f?n():s.fonts.load((t=o.a,x(t)+" "+t.f+"00 300px "+w(t.c)),o.h).then(function(t){1<=t.length?i():setTimeout(e,25)},function(){n()})}()}),e=new Promise(function(t,e){setTimeout(e,o.f)});Promise.race([e,t]).then(function(){o.g(o.a)},function(){o.j(o.a)})};var P={D:"serif",C:"sans-serif"},e=null;function N(){if(null===e){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);e=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)}return e}function O(t,e,i){for(var n in P)if(P.hasOwnProperty(n)&&e===t.f[P[n]]&&i===t.f[P[n]])return!0;return!1}function M(t){var e,i=t.g.a.offsetWidth,n=t.h.a.offsetWidth;(e=i===t.f.serif&&n===t.f["sans-serif"])||(e=N()&&O(t,i,n)),e?a()-t.A>=t.w?N()&&O(t,i,n)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?$(t,t.v):$(t,t.B):setTimeout(p(function(){M(this)},t),50):$(t,t.v)}function $(t,e){setTimeout(p(function(){i(this.g.a),i(this.h.a),i(this.j.a),i(this.o.a),e(this.a)},t),0)}function j(t,e,i){this.c=t,this.a=e,this.f=0,this.o=this.j=!1,this.s=i}I.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=a(),M(this)};var L=null;function F(t){0==--t.f&&t.j&&(t.o?((t=t.a).g&&f(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),k(t,"active")):T(t.a))}function t(t){this.j=t,this.a=new function(){this.c={}},this.h=0,this.f=this.g=!0}function R(t,e){this.c=t,this.a=e}function H(t,e){this.c=t,this.a=e}j.prototype.g=function(t){var e=this.a;e.g&&f(e.f,[e.a.c("wf",t.c,C(t).toString(),"active")],[e.a.c("wf",t.c,C(t).toString(),"loading"),e.a.c("wf",t.c,C(t).toString(),"inactive")]),k(e,"fontactive",t),this.o=!0,F(this)},j.prototype.h=function(t){var e=this.a;if(e.g){var i=o(e.f,e.a.c("wf",t.c,C(t).toString(),"active")),n=[],s=[e.a.c("wf",t.c,C(t).toString(),"loading")];i||n.push(e.a.c("wf",t.c,C(t).toString(),"inactive")),f(e.f,n,s)}k(e,"fontinactive",t),F(this)},t.prototype.load=function(t){this.c=new function(t,e){this.a=t,this.m=e||t,this.c=this.m.document}(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(s,t,e){var i=[],n=e.timeout;o=t,o.g&&f(o.f,[o.a.c("wf","loading")]),k(o,"loading");var o;var i=function(t,e,i){var n,s=[];for(n in e)if(e.hasOwnProperty(n)){var o=t.c[n];o&&s.push(o(e[n],i))}return s}(s.a,e,s.c),r=new j(s.c,t,n);for(s.h=i.length,t=0,e=i.length;t<e;t++)i[t].load(function(t,e,i){var n,l,c,h,u,d;l=r,c=t,h=e,u=i,d=0==--(n=s).h,(n.f||n.g)&&setTimeout(function(){var t=u||null,e=h||{};if(0===c.length&&d)T(l.a);else{l.f+=c.length,d&&(l.j=d);var i,n=[];for(i=0;i<c.length;i++){var s=c[i],o=e[s.c],r=l.a,a=s;r.g&&f(r.f,[r.a.c("wf",a.c,C(a).toString(),"loading")]),k(r,"fontloading",a),(r=null)===L&&(L=!!window.FontFace&&(!(a=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(a[1],10))),r=L?new A(p(l.g,l),p(l.h,l),l.c,s,l.s,o):new I(p(l.g,l),p(l.h,l),l.c,s,l.s,t,o),n.push(r)}for(i=0;i<n.length;i++)n[i].start()}},0)})}(this,new function(t,e){this.c=t,this.f=t.m.document.documentElement,this.h=e,this.a=new _("-"),this.j=!1!==e.events,this.g=!1!==e.classes}(this.c,t),t)},R.prototype.load=function(r){var t,e,i,n=this,a=n.a.projectId,s=n.a.version;if(a){var l=n.c.m;m(this.c,(t=n,e=a,i=s,u(t.c)+"//"+(t=(t.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,""))+"/"+e+".js"+(i?"?v="+i:"")),function(t){t?r([]):(l["__MonotypeConfiguration__"+a]=function(){return n.a},function t(){if(l["__mti_fntLst"+a]){var e,i=l["__mti_fntLst"+a](),n=[];if(i)for(var s=0;s<i.length;s++){var o=i[s].fontfamily;null!=i[s].fontStyle&&null!=i[s].fontWeight?(e=i[s].fontStyle+i[s].fontWeight,n.push(new b(o,e))):n.push(new b(o))}r(n)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+a}else r([])},H.prototype.load=function(t){var e,i,n=this.a.urls||[],s=this.a.families||[],o=this.a.testStrings||{},r=new g;for(e=0,i=n.length;e<i;e++)d(this.c,n[e],v(r));var a=[];for(e=0,i=s.length;e<i;e++)if((n=s[e].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)a.push(new b(n[0],l[c]));else a.push(new b(n[0]));y(r,function(){t(a,o)})};var q="//fonts.googleapis.com/css";var U={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},W={i:"i",italic:"i",n:"n",normal:"n"},B=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(t,e){this.c=t,this.a=e}var V={Arimo:!0,Cousine:!0,Tinos:!0};function Y(t,e){this.c=t,this.a=e}function K(t,e){this.c=t,this.f=e,this.a=[]}Q.prototype.load=function(t){var e=new g,i=this.c,n=new function(t,e,i){this.c=t||e+q,this.a=[],this.f=[],this.g=i||""}(this.a.api,u(i),this.a.text),s=this.a.families;!function(t,e){for(var i=e.length,n=0;n<i;n++){var s=e[n].split(":");3==s.length&&t.f.push(s.pop());var o="";2==s.length&&""!=s[1]&&(o=":"),t.a.push(s.join(o))}}(n,s);var o=new function(t){this.f=t,this.a=[],this.c={}}(s);!function(t){for(var e=t.f.length,i=0;i<e;i++){var n=t.f[i].split(":"),s=n[0].replace(/\+/g," "),o=["n4"];if(2<=n.length){var r;if(r=[],a=n[1])for(var a,l=(a=a.split(",")).length,c=0;c<l;c++){var h;if((h=a[c]).match(/^[\w-]+$/))if(null==(d=B.exec(h.toLowerCase())))h="";else{if(h=null==(h=d[2])||""==h?"n":W[h],null==(d=d[1])||""==d)d="4";else var u=z[d],d=u||(isNaN(d)?"4":d.substr(0,1));h=[h,d].join("")}else h="";h&&r.push(h)}0<r.length&&(o=r),3==n.length&&(r=[],0<(n=(n=n[2])?n.split(","):r).length&&(n=U[n[0]])&&(t.c[s]=n))}for(t.c[s]||(n=U[s])&&(t.c[s]=n),n=0;n<o.length;n+=1)t.a.push(new b(s,o[n]))}}(o),d(i,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,i=[],n=0;n<e;n++)i.push(t.a[n].replace(/ /g,"+"));return e=t.c+"?family="+i.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(n),v(e)),y(e,function(){t(o.a,o.c,V)})},Y.prototype.load=function(r){var t=this.a.id,a=this.c.m;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)r([]);else if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){t=a.Typekit.config.fn;for(var e=[],i=0;i<t.length;i+=2)for(var n=t[i],s=t[i+1],o=0;o<s.length;o++)e.push(new b(n,s[o]));try{a.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}r(e)}},2e3):r([])},K.prototype.load=function(c){var t,e=this.f.id,i=this.c.m,h=this;e?(i.__webfontfontdeckmodule__||(i.__webfontfontdeckmodule__={}),i.__webfontfontdeckmodule__[e]=function(t,e){for(var i=0,n=e.fonts.length;i<n;++i){var s=e.fonts[i];h.a.push(new b(s.name,(o="font-weight:"+s.weight+";font-style:"+s.style,l=a=r=void 0,r=4,a="n",l=null,o&&((l=o.match(/(normal|oblique|italic)/i))&&l[1]&&(a=l[1].substr(0,1).toLowerCase()),(l=o.match(/([1-9]00|normal|bold)/i))&&l[1]&&(/bold/i.test(l[1])?r=7:/[1-9]00/.test(l[1])&&(r=parseInt(l[1].substr(0,1),10)))),a+r)))}var o,r,a,l;c(h.a)},m(this.c,u(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+((t=this.c).m.location.hostname||t.a.location.hostname)+"/"+e+".js",function(t){t&&c([])})):c([])};var X=new t(window);X.a.c.custom=function(t,e){return new H(e,t)},X.a.c.fontdeck=function(t,e){return new K(e,t)},X.a.c.monotype=function(t,e){return new R(e,t)},X.a.c.typekit=function(t,e){return new Y(e,t)},X.a.c.google=function(t,e){return new Q(e,t)};var G={load:p(X.load,X)};"function"==typeof define&&define.amd?define(function(){return G}):"undefined"!=typeof module&&module.exports?module.exports=G:(window.WebFont=G,window.WebFontConfig&&X.load(window.WebFontConfig))}(),function(k,E){var f=k(window);function D(){return new Date(Date.UTC.apply(Date,arguments))}function a(){var t=new Date;return D(t.getFullYear(),t.getMonth(),t.getDate())}function t(t){return function(){return this[t].apply(this,arguments)}}var e,i=(e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(this[i].valueOf()===e)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(k.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.splice(0)},copy:function(){var t=new i;return t.replace(this),t}},function(){var t=[];return t.push.apply(t,arguments),k.extend(t,e),t}),y=function(t,e){this.dates=new i,this.viewDate=a(),this.focusDate=null,this._process_options(e),this.element=k(t),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.is(".date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=k(A.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(t,e){return parseInt(e)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};y.prototype={constructor:y,_process_options:function(t){this._o=k.extend({},this._o,t);var e=this.o=k.extend({},this._o),i=e.language;switch(S[i]||(i=i.split("-")[0],S[i]||(i=u.language)),e.language=i,e.startView){case 2:case"decade":e.startView=2;break;case 1:case"year":e.startView=1;break;default:e.startView=0}switch(e.minViewMode){case 1:case"months":e.minViewMode=1;break;case 2:case"years":e.minViewMode=2;break;default:e.minViewMode=0}e.startView=Math.max(e.startView,e.minViewMode),!0!==e.multidate&&(e.multidate=Number(e.multidate)||!1,!1!==e.multidate?e.multidate=Math.max(0,e.multidate):e.multidate=1),e.multidateSeparator=String(e.multidateSeparator),e.weekStart%=7,e.weekEnd=(e.weekStart+6)%7;var n=A.parseFormat(e.format);e.startDate!==-1/0&&(e.startDate?e.startDate instanceof Date?e.startDate=this._local_to_utc(this._zero_time(e.startDate)):e.startDate=A.parseDate(e.startDate,n,e.language):e.startDate=-1/0),e.endDate!==1/0&&(e.endDate?e.endDate instanceof Date?e.endDate=this._local_to_utc(this._zero_time(e.endDate)):e.endDate=A.parseDate(e.endDate,n,e.language):e.endDate=1/0),e.daysOfWeekDisabled=e.daysOfWeekDisabled||[],k.isArray(e.daysOfWeekDisabled)||(e.daysOfWeekDisabled=e.daysOfWeekDisabled.split(/[,\s]*/)),e.daysOfWeekDisabled=k.map(e.daysOfWeekDisabled,function(t){return parseInt(t,10)});var s=String(e.orientation).toLowerCase().split(/\s+/g),o=e.orientation.toLowerCase();if(s=k.grep(s,function(t){return/^auto|left|right|top|bottom$/.test(t)}),e.orientation={x:"auto",y:"auto"},o&&"auto"!==o)if(1===s.length)switch(s[0]){case"top":case"bottom":e.orientation.y=s[0];break;case"left":case"right":e.orientation.x=s[0]}else o=k.grep(s,function(t){return/^left|right$/.test(t)}),e.orientation.x=o[0]||"auto",o=k.grep(s,function(t){return/^top|bottom$/.test(t)}),e.orientation.y=o[0]||"auto";else;},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var e,i,n,s=0;s<t.length;s++)e=t[s][0],2===t[s].length?(i=E,n=t[s][1]):3===t[s].length&&(i=t[s][1],n=t[s][2]),e.on(n,i)},_unapplyEvents:function(t){for(var e,i,n,s=0;s<t.length;s++)e=t[s][0],2===t[s].length?(n=E,i=t[s][1]):3===t[s].length&&(n=t[s][1],i=t[s][2]),e.off(i,n)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:k.proxy(this.show,this),keyup:k.proxy(function(t){-1===k.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:k.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:k.proxy(this.show,this),keyup:k.proxy(function(t){-1===k.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:k.proxy(this.keydown,this)}],[this.component,{click:k.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:k.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:k.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:k.proxy(function(t){this._focused_from=t.target},this)}]),this._secondaryEvents=[[this.picker,{click:k.proxy(this.click,this)}],[k(window),{resize:k.proxy(this.place,this)}],[k(document),{"mousedown touchstart":k.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,e){var i=e||this.dates.get(-1),n=this._utc_to_local(i);this.element.trigger({type:t,date:n,dates:k.map(this.dates,this._utc_to_local),format:k.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return A.formatDate(i,e,this.o.language)},this)})},show:function(){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.place(),this._attachSecondaryEvents(),this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},_utc_to_local:function(t){return t&&new Date(t.getTime()+6e4*t.getTimezoneOffset())},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))},getDates:function(){return k.map(this.dates,this._utc_to_local)},getUTCDates:function(){return k.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return new Date(this.dates.get(-1))},setDates:function(){var t=k.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,t),this._trigger("changeDate"),this.setValue()},setUTCDates:function(){var t=k.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,k.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue()},setDate:t("setDates"),setUTCDate:t("setUTCDates"),setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t).change():this.component&&this.element.find("input").val(t).change()},getFormattedDate:function(e){e===E&&(e=this.o.format);var i=this.o.language;return k.map(this.dates,function(t){return A.formatDate(t,e,i)}).join(this.o.multidateSeparator)},setStartDate:function(t){this._process_options({startDate:t}),this.update(),this.updateNavArrows()},setEndDate:function(t){this._process_options({endDate:t}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var t=this.picker.outerWidth(),e=this.picker.outerHeight(),i=f.width(),n=f.height(),s=f.scrollTop(),o=parseInt(this.element.parents().filter(function(){return"auto"!==k(this).css("z-index")}).first().css("z-index"))+10,r=this.component?this.component.parent().offset():this.element.offset(),a=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),l=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),c=r.left,h=r.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(c-=t-l)):(this.picker.addClass("datepicker-orient-left"),r.left<0?c-=r.left-10:r.left+t>i&&(c=i-t-10));var u,d,p=this.o.orientation.y;"auto"===p&&(u=-s+r.top-e,d=s+n-(r.top+a+e),p=Math.max(u,d)===d?"top":"bottom"),this.picker.addClass("datepicker-orient-"+p),"top"===p?h+=a:h-=e+parseInt(this.picker.css("padding-top")),this.picker.css({top:h,left:c,zIndex:o})}},_allow_update:!0,update:function(){if(this._allow_update){var t=this.dates.copy(),i=[],e=!1;arguments.length?(k.each(arguments,k.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),e=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=k.map(i,k.proxy(function(t){return A.parseDate(t,this.o.format,this.o.language)},this)),i=k.grep(i,k.proxy(function(t){return t<this.o.startDate||t>this.o.endDate||!t},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),e?this.setValue():i.length&&String(t)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&t.length&&this._trigger("clearDate"),this.fill()}},fillDow:function(){var t=this.o.weekStart,e="<tr>";if(this.o.calendarWeeks){var i='<th class="cw">&nbsp;</th>';e+=i,this.picker.find(".datepicker-days thead tr:first-child").prepend(i)}for(;t<this.o.weekStart+7;)e+='<th class="dow">'+S[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+S[this.o.language].monthsShort[e++]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=k.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var e=[],i=this.viewDate.getUTCFullYear(),n=this.viewDate.getUTCMonth(),s=new Date;return t.getUTCFullYear()<i||t.getUTCFullYear()===i&&t.getUTCMonth()<n?e.push("old"):(t.getUTCFullYear()>i||t.getUTCFullYear()===i&&t.getUTCMonth()>n)&&e.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&e.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===s.getFullYear()&&t.getUTCMonth()===s.getMonth()&&t.getUTCDate()===s.getDate()&&e.push("today"),-1!==this.dates.contains(t)&&e.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||-1!==k.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&e.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&e.push("range"),-1!==k.inArray(t.valueOf(),this.range)&&e.push("selected")),e},fill:function(){var t,e=new Date(this.viewDate),i=e.getUTCFullYear(),n=e.getUTCMonth(),s=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,r=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=S[this.o.language].today||S.en.today||"",c=S[this.o.language].clear||S.en.clear||"";this.picker.find(".datepicker-days thead th.datepicker-switch").text(S[this.o.language].months[n]+" "+i),this.picker.find("tfoot th.today").text(l).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot th.clear").text(c).toggle(!1!==this.o.clearBtn),this.updateNavArrows(),this.fillMonths();var h=D(i,n-1,28),u=A.getDaysInMonth(h.getUTCFullYear(),h.getUTCMonth());h.setUTCDate(u),h.setUTCDate(u-(h.getUTCDay()-this.o.weekStart+7)%7);var d=new Date(h);d.setUTCDate(d.getUTCDate()+42),d=d.valueOf();for(var p,f=[];h.valueOf()<d;){if(h.getUTCDay()===this.o.weekStart&&(f.push("<tr>"),this.o.calendarWeeks)){var m=new Date(+h+(this.o.weekStart-h.getUTCDay()-7)%7*864e5),g=new Date(Number(m)+(11-m.getUTCDay())%7*864e5),v=new Date(Number(v=D(g.getUTCFullYear(),0,1))+(11-v.getUTCDay())%7*864e5),y=(g-v)/864e5/7+1;f.push('<td class="cw">'+y+"</td>")}if((p=this.getClassNames(h)).push("day"),this.o.beforeShowDay!==k.noop){var _=this.o.beforeShowDay(this._utc_to_local(h));_===E?_={}:"boolean"==typeof _?_={enabled:_}:"string"==typeof _&&(_={classes:_}),!1===_.enabled&&p.push("disabled"),_.classes&&(p=p.concat(_.classes.split(/\s+/))),_.tooltip&&(t=_.tooltip)}p=k.unique(p),f.push('<td class="'+p.join(" ")+'"'+(t?' title="'+t+'"':"")+">"+h.getUTCDate()+"</td>"),h.getUTCDay()===this.o.weekEnd&&f.push("</tr>"),h.setUTCDate(h.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(f.join(""));var b=this.picker.find(".datepicker-months").find("th:eq(1)").text(i).end().find("span").removeClass("active");k.each(this.dates,function(t,e){e.getUTCFullYear()===i&&b.eq(e.getUTCMonth()).addClass("active")}),(i<s||r<i)&&b.addClass("disabled"),i===s&&b.slice(0,o).addClass("disabled"),i===r&&b.slice(a+1).addClass("disabled"),f="",i=10*parseInt(i/10,10);var w=this.picker.find(".datepicker-years").find("th:eq(1)").text(i+"-"+(i+9)).end().find("td");i-=1;for(var C,x=k.map(this.dates,function(t){return t.getUTCFullYear()}),T=-1;T<11;T++)C=["year"],-1===T?C.push("old"):10===T&&C.push("new"),-1!==k.inArray(i,x)&&C.push("active"),(i<s||r<i)&&C.push("disabled"),f+='<span class="'+C.join(" ")+'">'+i+"</span>",i+=1;w.html(f)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){t.preventDefault();var e,i,n,s=k(t.target).closest("span, td, th");if(1===s.length)switch(s[0].nodeName.toLowerCase()){case"th":switch(s[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var o=A.modes[this.viewMode].navStep*("prev"===s[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,o),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,o),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var r=new Date;r=D(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0),this.showMode(-2);var a="linked"===this.o.todayBtn?null:"view";this._setDate(r,a);break;case"clear":var l;this.isInput?l=this.element:this.component&&(l=this.element.find("input")),l&&l.val("").change(),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()}break;case"span":s.is(".disabled")||(this.viewDate.setUTCDate(1),s.is(".month")?(n=1,i=s.parent().find("span").index(s),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(i),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(D(e,i,n))):(n=1,i=0,e=parseInt(s.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(D(e,i,n))),this.showMode(-1),this.fill());break;case"td":s.is(".day")&&!s.is(".disabled")&&(n=parseInt(s.text(),10)||1,e=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),s.is(".old")?0===i?(i=11,e-=1):i-=1:s.is(".new")&&(11===i?(i=0,e+=1):i+=1),this._setDate(D(e,i,n)))}this.picker.is(":visible")&&this._focused_from&&k(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t?-1!==e?this.dates.remove(e):this.dates.push(t):this.dates.clear(),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){var i;e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),this._trigger("changeDate"),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveMonth:function(t,e){if(!t)return E;if(!e)return t;var i,n,s=new Date(t.valueOf()),o=s.getUTCDate(),r=s.getUTCMonth(),a=Math.abs(e);if(e=0<e?1:-1,1===a)n=-1===e?function(){return s.getUTCMonth()===r}:function(){return s.getUTCMonth()!==i},i=r+e,s.setUTCMonth(i),(i<0||11<i)&&(i=(i+12)%12);else{for(var l=0;l<a;l++)s=this.moveMonth(s,e);i=s.getUTCMonth(),s.setUTCDate(o),n=function(){return i!==s.getUTCMonth()}}for(;n();)s.setUTCDate(--o),s.setUTCMonth(i);return s},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))27===t.keyCode&&this.show();else{var e,i,n,s,o=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||a(),e),n=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||a(),e),n=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||a())).setUTCDate(i.getUTCDate()+e),(n=new Date(r)).setUTCDate(r.getUTCDate()+e)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||a(),e),n=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||a(),e),n=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||a())).setUTCDate(i.getUTCDate()+7*e),(n=new Date(r)).setUTCDate(r.getUTCDate()+7*e)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 32:break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate,this._toggle_multidate(r),o=!0,this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(o)this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?s=this.element:this.component&&(s=this.element.find("input")),s&&s.change()}},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.find(">div").hide().filter(".datepicker-"+A.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var h=function(t,e){this.element=k(t),this.inputs=k.map(e.inputs,function(t){return t.jquery?t[0]:t}),delete e.inputs,k(this.inputs).datepicker(e).bind("changeDate",k.proxy(this.dateUpdated,this)),this.pickers=k.map(this.inputs,function(t){return k(t).data("datepicker")}),this.updateDates()};h.prototype={updateDates:function(){this.dates=k.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var i=k.map(this.dates,function(t){return t.valueOf()});k.each(this.pickers,function(t,e){e.setRange(i)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var i=k(t.target).data("datepicker").getUTCDate(),e=k.inArray(t.target,this.inputs),n=this.inputs.length;if(-1!==e){if(k.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(i)}),i<this.dates[e])for(;0<=e&&i<this.dates[e];)this.pickers[e--].setUTCDate(i);else if(i>this.dates[e])for(;e<n&&i>this.dates[e];)this.pickers[e++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){k.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var n=k.fn.datepicker;k.fn.datepicker=function(a){var l,c=Array.apply(null,arguments);return c.shift(),this.each(function(){var t=k(this),e=t.data("datepicker"),i="object"==typeof a&&a;if(!e){var n=function(t,e){var i=k(t).data(),n={},s=new RegExp("^"+e.toLowerCase()+"([A-Z])");function o(t,e){return e.toLowerCase()}for(var r in e=new RegExp("^"+e.toLowerCase()),i)e.test(r)&&(n[r.replace(s,o)]=i[r]);return n}(this,"date"),s=function(t){var i={};if(S[t]||(t=t.split("-")[0],S[t])){var n=S[t];return k.each(d,function(t,e){e in n&&(i[e]=n[e])}),i}}(k.extend({},u,n,i).language),o=k.extend({},u,s,n,i);if(t.is(".input-daterange")||o.inputs){var r={inputs:o.inputs||t.find("input").toArray()};t.data("datepicker",e=new h(this,k.extend(o,r)))}else t.data("datepicker",e=new y(this,o))}if("string"==typeof a&&"function"==typeof e[a]&&(l=e[a].apply(e,c))!==E)return!1}),l!==E?l:this};var u=k.fn.datepicker.defaults={autoclose:!1,beforeShowDay:k.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},d=k.fn.datepicker.locale_opts=["format","rtl","weekStart"];k.fn.datepicker.Constructor=y;var S=k.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},A={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,A.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(t,e,i){if(!t)return E;if(t instanceof Date)return t;"string"==typeof e&&(e=A.parseFormat(e));var n,s,o,r=/([\-+]\d+)([dmwy])/,a=t.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(t)){for(t=new Date,o=0;o<a.length;o++)switch(n=r.exec(a[o]),s=parseInt(n[1]),n[2]){case"d":t.setUTCDate(t.getUTCDate()+s);break;case"m":t=y.prototype.moveMonth.call(y.prototype,t,s);break;case"w":t.setUTCDate(t.getUTCDate()+7*s);break;case"y":t=y.prototype.moveYear.call(y.prototype,t,s)}return D(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),0,0,0)}a=t&&t.match(this.nonpunctuation)||[],t=new Date;var l,c,h={},u=["yyyy","yy","M","MM","m","mm","d","dd"],d={yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};d.M=d.MM=d.mm=d.m,d.dd=d.d,t=D(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0);var p=e.parts.slice();function f(){var t=this.slice(0,a[o].length);return t===a[o].slice(0,t.length)}if(a.length!==p.length&&(p=k(p).filter(function(t,e){return-1!==k.inArray(e,u)}).toArray()),a.length===p.length){var m,g,v;for(o=0,m=p.length;o<m;o++){if(l=parseInt(a[o],10),n=p[o],isNaN(l))switch(n){case"MM":c=k(S[i].months).filter(f),l=k.inArray(c[0],S[i].months)+1;break;case"M":c=k(S[i].monthsShort).filter(f),l=k.inArray(c[0],S[i].monthsShort)+1}h[n]=l}for(o=0;o<u.length;o++)(v=u[o])in h&&!isNaN(h[v])&&(g=new Date(t),d[v](g,h[v]),isNaN(g)||(t=g))}return t},formatDate:function(t,e,i){if(!t)return"";"string"==typeof e&&(e=A.parseFormat(e));var n={d:t.getUTCDate(),D:S[i].daysShort[t.getUTCDay()],DD:S[i].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:S[i].monthsShort[t.getUTCMonth()],MM:S[i].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};n.dd=(n.d<10?"0":"")+n.d,n.mm=(n.m<10?"0":"")+n.m,t=[];for(var s=k.extend([],e.separators),o=0,r=e.parts.length;o<=r;o++)s.length&&t.push(s.shift()),t.push(n[e.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">&laquo;</th><th colspan="5" class="datepicker-switch"></th><th class="next">&raquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};A.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+A.headTemplate+"<tbody></tbody>"+A.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+A.headTemplate+A.contTemplate+A.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+A.headTemplate+A.contTemplate+A.footTemplate+"</table></div></div>",k.fn.datepicker.DPGlobal=A,k.fn.datepicker.noConflict=function(){return k.fn.datepicker=n,this},k(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=k(this);e.data("datepicker")||(t.preventDefault(),e.datepicker("show"))}),k(function(){k('[data-provide="datepicker-inline"]').datepicker()})}(window.jQuery),jQuery.fn.datepicker.dates.pl={days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],daysShort:["Nie","Pn","Wt","Śr","Czw","Pt","So","Nie"],daysMin:["N","Pn","Wt","Śr","Cz","Pt","So","N"],months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],today:"Dzisiaj",weekStart:1},function(h){"use strict";function s(t,e){this.options=this.mergeOptions(e),this.$select=h(t),this.originalOptions=this.$select.clone()[0].options,this.query="",this.searchTimeout=null,this.options.multiple="multiple"===this.$select.attr("multiple"),this.options.onChange=h.proxy(this.options.onChange,this),this.options.onDropdownShow=h.proxy(this.options.onDropdownShow,this),this.options.onDropdownHide=h.proxy(this.options.onDropdownHide,this),this.buildContainer(),this.buildButton(),this.buildSelectAll(),this.buildDropdown(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll(),this.$select.hide().after(this.$container)}"undefined"!=typeof ko&&ko.bindingHandlers&&!ko.bindingHandlers.multiselect&&(ko.bindingHandlers.multiselect={init:function(t,e,i,n,s){},update:function(t,e,i,n,s){var o=ko.utils.unwrapObservable(e()),r=i().options,a=h(t).data("multiselect");a?(a.updateOriginalOptions(),r&&r().length!==a.originalOptions.length&&h(t).multiselect("rebuild")):h(t).multiselect(o)}}),s.prototype={defaults:{buttonText:function(t,e){if(0===t.length)return this.nonSelectedText+' <b class="caret"></b>';if(t.length>this.numberDisplayed)return t.length+" "+this.nSelectedText+' <b class="caret"></b>';var i="";return t.each(function(){var t=void 0!==h(this).attr("label")?h(this).attr("label"):h(this).html();i+=t+", "}),i.substr(0,i.length-2)+' <b class="caret"></b>'},buttonTitle:function(t,e){if(0===t.length)return this.nonSelectedText;var i="";return t.each(function(){i+=h(this).text()+", "}),i.substr(0,i.length-2)},label:function(t){return h(t).attr("label")||h(t).html()},onChange:function(t,e){},onDropdownShow:function(t){},onDropdownHide:function(t){},buttonClass:"btn btn-default",dropRight:!1,selectedClass:"active",buttonWidth:"auto",buttonContainer:'<div class="btn-group" />',maxHeight:!1,includeSelectAllOption:!1,selectAllText:" Select all",selectAllValue:"multiselect-all",enableFiltering:!1,enableCaseInsensitiveFiltering:!1,filterPlaceholder:"Search",filterBehavior:"text",preventInputChangeEvent:!1,nonSelectedText:"None selected",nSelectedText:"selected",numberDisplayed:3},templates:{button:'<button type="button" class="multiselect dropdown-toggle" data-toggle="dropdown"></button>',ul:'<ul class="multiselect-container dropdown-menu"></ul>',filter:'<div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span><input class="form-control multiselect-search" type="text"></div>',li:'<li><a href="javascript:void(0);"><label></label></a></li>',divider:'<li class="divider"></li>',liGroup:'<li><label class="multiselect-group"></label></li>'},constructor:s,buildContainer:function(){this.$container=h(this.options.buttonContainer),this.$container.on("show.bs.dropdown",this.options.onDropdownShow),this.$container.on("hide.bs.dropdown",this.options.onDropdownHide)},buildButton:function(){this.$button=h(this.templates.button).addClass(this.options.buttonClass),this.$select.prop("disabled")?this.disable():this.enable(),this.options.buttonWidth&&"auto"!=this.options.buttonWidth&&this.$button.css({width:this.options.buttonWidth});var t=this.$select.attr("tabindex");t&&this.$button.attr("tabindex",t),this.$container.prepend(this.$button)},buildDropdown:function(){this.$ul=h(this.templates.ul),this.options.dropRight&&this.$ul.addClass("pull-right"),this.options.maxHeight&&this.$ul.css({"max-height":this.options.maxHeight+"px","overflow-y":"auto","overflow-x":"hidden"}),this.$container.append(this.$ul)},buildDropdownOptions:function(){this.$select.children().each(h.proxy(function(t,e){var i=h(e).prop("tagName").toLowerCase();"optgroup"===i?this.createOptgroup(e):"option"===i&&("divider"===h(e).data("role")?this.createDivider():this.createOptionValue(e))},this)),h("li input",this.$ul).on("change",h.proxy(function(t){var e=h(t.target).prop("checked")||!1,i=h(t.target).val()===this.options.selectAllValue;this.options.selectedClass&&(e?h(t.target).parents("li").addClass(this.options.selectedClass):h(t.target).parents("li").removeClass(this.options.selectedClass));var n=h(t.target).val(),s=this.getOptionByValue(n),o=h("option",this.$select).not(s),r=h("input",this.$container).not(h(t.target));if(i&&this.$select[0][0].value===this.options.selectAllValue){for(var a=[],l=h('option[value!="'+this.options.selectAllValue+'"]',this.$select),c=0;c<l.length;c++)l[c].value!==this.options.selectAllValue&&this.getInputByValue(l[c].value).is(":visible")&&a.push(l[c].value);e?this.select(a):this.deselect(a)}if(e?(s.prop("selected",!0),this.options.multiple?s.prop("selected",!0):(this.options.selectedClass&&h(r).parents("li").removeClass(this.options.selectedClass),h(r).prop("checked",!1),o.prop("selected",!1),this.$button.click()),"active"===this.options.selectedClass&&o.parents("a").css("outline","")):s.prop("selected",!1),this.$select.change(),this.options.onChange(s,e),this.updateButtonText(),this.updateSelectAll(),this.options.preventInputChangeEvent)return!1},this)),h("li a",this.$ul).on("touchstart click",function(t){if((t.stopPropagation(),t.shiftKey)&&(h(t.target).prop("checked")||!1)){var e=h(t.target).parents("li:last").siblings('li[class="active"]:first'),i=h(t.target).parents("li").index();e.index()<i?h(t.target).parents("li:last").prevUntil(e).each(function(){h(this).find("input:first").prop("checked",!0).trigger("change")}):h(t.target).parents("li:last").nextUntil(e).each(function(){h(this).find("input:first").prop("checked",!0).trigger("change")})}h(t.target).blur()}),this.$container.on("keydown",h.proxy(function(t){if(!h('input[type="text"]',this.$container).is(":focus"))if(9!==t.keyCode&&27!==t.keyCode||!this.$container.hasClass("open")){var e=h(this.$container).find("li:not(.divider):visible a");if(!e.length)return;var i=e.index(e.filter(":focus"));38===t.keyCode&&0<i?i--:40===t.keyCode&&i<e.length-1?i++:~i||(i=0);var n=e.eq(i);if(n.focus(),32===t.keyCode||13===t.keyCode){var s=n.find("input");s.prop("checked",!s.prop("checked")),s.change()}t.stopPropagation(),t.preventDefault()}else this.$button.click()},this))},createOptionValue:function(t){h(t).is(":selected")&&h(t).prop("selected",!0);var e=this.options.label(t),i=h(t).val(),n=this.options.multiple?"checkbox":"radio",s=h(this.templates.li);h("label",s).addClass(n),h("label",s).append('<input type="'+n+'" />');var o=h(t).prop("selected")||!1,r=h("input",s);r.val(i),i===this.options.selectAllValue&&r.parent().parent().addClass("multiselect-all"),h("label",s).append(" "+e),this.$ul.append(s),h(t).is(":disabled")&&r.attr("disabled","disabled").prop("disabled",!0).parents("li").addClass("disabled"),r.prop("checked",o),o&&this.options.selectedClass&&r.parents("li").addClass(this.options.selectedClass)},createDivider:function(t){var e=h(this.templates.divider);this.$ul.append(e)},createOptgroup:function(t){var e=h(t).prop("label"),i=h(this.templates.liGroup);h("label",i).text(e),this.$ul.append(i),h("option",t).each(h.proxy(function(t,e){this.createOptionValue(e)},this))},buildSelectAll:function(){var t=this.hasSelectAll();this.options.includeSelectAllOption&&this.options.multiple&&!t&&this.$select.prepend('<option value="'+this.options.selectAllValue+'">'+this.options.selectAllText+"</option>")},buildFilter:function(){if(this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering){var t=Math.max(this.options.enableFiltering,this.options.enableCaseInsensitiveFiltering);this.$select.find("option").length>=t&&(this.$filter=h(this.templates.filter),h("input",this.$filter).attr("placeholder",this.options.filterPlaceholder),this.$ul.prepend(this.$filter),this.$filter.val(this.query).on("click",function(t){t.stopPropagation()}).on("input keydown",h.proxy(function(t){clearTimeout(this.searchTimeout),this.searchTimeout=this.asyncFunction(h.proxy(function(){this.query!==t.target.value&&(this.query=t.target.value,h.each(h("li",this.$ul),h.proxy(function(t,e){var i=h("input",e).val(),n=h("label",e).text();if(i!==this.options.selectAllValue&&n){var s=!1,o="";"text"!==this.options.filterBehavior&&"both"!==this.options.filterBehavior||(o=n),"value"!==this.options.filterBehavior&&"both"!==this.options.filterBehavior||(o=i),this.options.enableCaseInsensitiveFiltering&&-1<o.toLowerCase().indexOf(this.query.toLowerCase())?s=!0:-1<o.indexOf(this.query)&&(s=!0),s?h(e).show():h(e).hide()}},this)))},this),300,this)},this)))}},destroy:function(){this.$container.remove(),this.$select.show()},refresh:function(){h("option",this.$select).each(h.proxy(function(t,e){var i=h("li input",this.$ul).filter(function(){return h(this).val()===h(e).val()});h(e).is(":selected")?(i.prop("checked",!0),this.options.selectedClass&&i.parents("li").addClass(this.options.selectedClass)):(i.prop("checked",!1),this.options.selectedClass&&i.parents("li").removeClass(this.options.selectedClass)),h(e).is(":disabled")?i.attr("disabled","disabled").prop("disabled",!0).parents("li").addClass("disabled"):i.prop("disabled",!1).parents("li").removeClass("disabled")},this)),this.updateButtonText(),this.updateSelectAll()},select:function(t){t&&!h.isArray(t)&&(t=[t]);for(var e=0;e<t.length;e++){var i=t[e],n=this.getOptionByValue(i),s=this.getInputByValue(i);this.options.selectedClass&&s.parents("li").addClass(this.options.selectedClass),s.prop("checked",!0),n.prop("selected",!0)}this.updateButtonText()},deselect:function(t){t&&!h.isArray(t)&&(t=[t]);for(var e=0;e<t.length;e++){var i=t[e],n=this.getOptionByValue(i),s=this.getInputByValue(i);this.options.selectedClass&&s.parents("li").removeClass(this.options.selectedClass),s.prop("checked",!1),n.prop("selected",!1)}this.updateButtonText()},rebuild:function(){this.$ul.html(""),h('option[value="'+this.options.selectAllValue+'"]',this.$select).remove(),this.options.multiple="multiple"===this.$select.attr("multiple"),this.buildSelectAll(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll()},dataprovider:function(t){var e="";t.forEach(function(t){e+='<option value="'+t.value+'">'+t.label+"</option>"}),this.$select.html(e),this.rebuild()},enable:function(){this.$select.prop("disabled",!1),this.$button.prop("disabled",!1).removeClass("disabled")},disable:function(){this.$select.prop("disabled",!0),this.$button.prop("disabled",!0).addClass("disabled")},setOptions:function(t){this.options=this.mergeOptions(t)},mergeOptions:function(t){return h.extend({},this.defaults,t)},hasSelectAll:function(){return!!this.$select[0][0]&&this.$select[0][0].value===this.options.selectAllValue},updateSelectAll:function(){this.hasSelectAll()&&(this.getSelected().length===h("option",this.$select).length-1?this.select(this.options.selectAllValue):this.deselect(this.options.selectAllValue))},updateButtonText:function(){var t=this.getSelected();h("button",this.$container).html(this.options.buttonText(t,this.$select)),h("button",this.$container).attr("title",this.options.buttonTitle(t,this.$select))},getSelected:function(){return h('option[value!="'+this.options.selectAllValue+'"]:selected',this.$select).filter(function(){return h(this).prop("selected")})},getOptionByValue:function(t){return h("option",this.$select).filter(function(){return h(this).val()===t})},getInputByValue:function(t){return h("li input",this.$ul).filter(function(){return h(this).val()===t})},updateOriginalOptions:function(){this.originalOptions=this.$select.clone()[0].options},asyncFunction:function(t,e,i){var n=Array.prototype.slice.call(arguments,3);return setTimeout(function(){t.apply(i||window,n)},e)}},h.fn.multiselect=function(i,n){return this.each(function(){var t=h(this).data("multiselect"),e="object"==typeof i&&i;t||h(this).data("multiselect",t=new s(this,e)),"string"==typeof i&&t[i](n)})},h.fn.multiselect.Constructor=s,h(function(){h("select[data-role=multiselect]").multiselect()})}(window.jQuery),function(t,e){"object"==typeof exports?module.exports=e(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],e):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)}(this,function(a,e,c,i){function h(t,e){return this instanceof h?(void 0===t&&(t="undefined"!=typeof location?location.href+"":""),this.href(t),void 0!==e?this.absoluteTo(e):this):new h(t,e)}function s(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function o(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function l(t){return"Array"===o(t)}function r(t,e){var i,n;if(l(e)){for(i=0,n=e.length;i<n;i++)if(!r(t,e[i]))return!1;return!0}var s=o(e);for(i=0,n=t.length;i<n;i++)if("RegExp"===s){if("string"==typeof t[i]&&t[i].match(e))return!0}else if(t[i]===e)return!0;return!1}function u(t,e){if(!l(t)||!l(e)||t.length!==e.length)return!1;t.sort(),e.sort();for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function n(t){return escape(t)}function d(t){return encodeURIComponent(t).replace(/[!'()*]/g,n).replace(/\*/g,"%2A")}var p=i&&i.URI,t=h.prototype,f=Object.prototype.hasOwnProperty;h._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:h.duplicateQueryParameters,escapeQuerySpace:h.escapeQuerySpace}},h.duplicateQueryParameters=!1,h.escapeQuerySpace=!0,h.protocol_expression=/^[a-z][a-z0-9-+-]*$/i,h.idn_expression=/[^a-z0-9\.-]/i,h.punycode_expression=/(xn--)/i,h.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,h.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,h.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/gi,h.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},h.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,h.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src"},h.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();return"input"===e&&"image"!==t.type?void 0:h.domAttributes[e]}},h.encode=d,h.decode=decodeURIComponent,h.iso8859=function(){h.encode=escape,h.decode=unescape},h.unicode=function(){h.encode=d,h.decode=decodeURIComponent},h.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}}},h.encodeQuery=function(t,e){var i=h.encode(t+"");return e?i.replace(/%20/g,"+"):i},h.decodeQuery=function(e,t){e+="";try{return h.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}},h.recodePath=function(t){for(var e=0,i=(t=(t+"").split("/")).length;e<i;e++)t[e]=h.encodePathSegment(h.decode(t[e]));return t.join("/")},h.decodePath=function(t){for(var e=0,i=(t=(t+"").split("/")).length;e<i;e++)t[e]=h.decodePathSegment(t[e]);return t.join("/")};var m,g={encode:"encode",decode:"decode"},v=function(e,i){return function(t){return h[i](t+"").replace(h.characters[e][i].expression,function(t){return h.characters[e][i].map[t]})}};for(m in g)h[m+"PathSegment"]=v("pathname",g[m]);for(m in h.encodeReserved=v("reserved","encode"),h.parse=function(t,e){var i;return e||(e={}),-1<(i=t.indexOf("#"))&&(e.fragment=t.substring(i+1)||null,t=t.substring(0,i)),-1<(i=t.indexOf("?"))&&(e.query=t.substring(i+1)||null,t=t.substring(0,i)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=h.parseAuthority(t,e)):-1<(i=t.indexOf(":"))&&(e.protocol=t.substring(0,i)||null,e.protocol&&!e.protocol.match(h.protocol_expression)?e.protocol=void 0:"file"===e.protocol?t=t.substring(i+3):"//"===t.substring(i+1,i+3)?(t=t.substring(i+3),t=h.parseAuthority(t,e)):(t=t.substring(i+1),e.urn=!0)),e.path=t,e},h.parseHost=function(t,e){var i,n=t.indexOf("/");return-1===n&&(n=t.length),"["===t.charAt(0)?(i=t.indexOf("]"),e.hostname=t.substring(1,i)||null,e.port=t.substring(i+2,n)||null):t.indexOf(":")!==t.lastIndexOf(":")?(e.hostname=t.substring(0,n)||null,e.port=null):(i=t.substring(0,n).split(":"),e.hostname=i[0]||null,e.port=i[1]||null),e.hostname&&"/"!==t.substring(n).charAt(0)&&(n++,t="/"+t),t.substring(n)||"/"},h.parseAuthority=function(t,e){return t=h.parseUserinfo(t,e),h.parseHost(t,e)},h.parseUserinfo=function(t,e){var i=t.indexOf("/"),n=-1<i?t.lastIndexOf("@",i):t.indexOf("@");return-1<n&&(-1===i||n<i)?(i=t.substring(0,n).split(":"),e.username=i[0]?h.decode(i[0]):null,i.shift(),e.password=i[0]?h.decode(i.join(":")):null,t=t.substring(n+1)):(e.username=null,e.password=null),t},h.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var i,n,s={},o=t.split("&"),r=o.length,a=0;a<r;a++)i=o[a].split("="),n=h.decodeQuery(i.shift(),e),i=i.length?h.decodeQuery(i.join("="),e):null,s[n]?("string"==typeof s[n]&&(s[n]=[s[n]]),s[n].push(i)):s[n]=i;return s},h.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=h.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},h.buildHost=function(t){var e="";return t.hostname?(h.ip6_expression.test(t.hostname)?e=t.port?e+"["+t.hostname+"]:"+t.port:e+t.hostname:(e+=t.hostname,t.port&&(e+=":"+t.port)),e):""},h.buildAuthority=function(t){return h.buildUserinfo(t)+h.buildHost(t)},h.buildUserinfo=function(t){var e="";return t.username&&(e+=h.encode(t.username),t.password&&(e+=":"+h.encode(t.password)),e+="@"),e},h.buildQuery=function(t,e,i){var n,s,o,r,a="";for(s in t)if(f.call(t,s)&&s)if(l(t[s]))for(n={},o=0,r=t[s].length;o<r;o++)void 0!==t[s][o]&&void 0===n[t[s][o]+""]&&(a+="&"+h.buildQueryParameter(s,t[s][o],i),!0!==e&&(n[t[s][o]+""]=!0));else void 0!==t[s]&&(a+="&"+h.buildQueryParameter(s,t[s],i));return a.substring(1)},h.buildQueryParameter=function(t,e,i){return h.encodeQuery(t,i)+(null!==e?"="+h.encodeQuery(e,i):"")},h.addQuery=function(t,e,i){if("object"==typeof e)for(var n in e)f.call(e,n)&&h.addQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");void 0===t[e]?t[e]=i:("string"==typeof t[e]&&(t[e]=[t[e]]),l(i)||(i=[i]),t[e]=t[e].concat(i))}},h.removeQuery=function(t,e,i){var n;if(l(e))for(i=0,n=e.length;i<n;i++)t[e[i]]=void 0;else if("object"==typeof e)for(n in e)f.call(e,n)&&h.removeQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the first parameter");if(void 0!==i){if(t[e]===i)t[e]=void 0;else if(l(t[e])){n=t[e];var s,o,r={};if(l(i))for(s=0,o=i.length;s<o;s++)r[i[s]]=!0;else r[i]=!0;for(s=0,o=n.length;s<o;s++)void 0!==r[n[s]]&&(n.splice(s,1),o--,s--);t[e]=n}}else t[e]=void 0}},h.hasQuery=function(t,e,i,n){if("object"==typeof e){for(var s in e)if(f.call(e,s)&&!h.hasQuery(t,s,e[s]))return!1;return!0}if("string"!=typeof e)throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(o(i)){case"Undefined":return e in t;case"Boolean":return i===(t=Boolean(l(t[e])?t[e].length:t[e]));case"Function":return!!i(t[e],e,t);case"Array":return!!l(t[e])&&(n?r:u)(t[e],i);case"RegExp":return l(t[e])?!!n&&r(t[e],i):Boolean(t[e]&&t[e].match(i));case"Number":i=String(i);case"String":return l(t[e])?!!n&&r(t[e],i):t[e]===i;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},h.commonPath=function(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i++)if(t.charAt(i)!==e.charAt(i)){i--;break}return i<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(i)&&"/"===e.charAt(i)||(i=t.substring(0,i).lastIndexOf("/")),t.substring(0,i+1))},h.withinString=function(t,e){return t.replace(h.find_uri_expression,e)},h.ensureValidHostname=function(t){if(t.match(h.invalid_hostname_characters)){if(!a)throw new TypeError("Hostname '"+t+"' contains characters other than [A-Z0-9.-] and Punycode.js is not available");if(a.toASCII(t).match(h.invalid_hostname_characters))throw new TypeError("Hostname '"+t+"' contains characters other than [A-Z0-9.-]")}},h.noConflict=function(t){return t?(t={URI:this.noConflict()},URITemplate&&"function"==typeof URITemplate.noConflict&&(t.URITemplate=URITemplate.noConflict()),e&&"function"==typeof e.noConflict&&(t.IPv6=e.noConflict()),SecondLevelDomains&&"function"==typeof SecondLevelDomains.noConflict&&(t.SecondLevelDomains=SecondLevelDomains.noConflict()),t):(i.URI===this&&(i.URI=p),this)},t.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=h.build(this._parts),this._deferred_build=!1),this},t.clone=function(){return new h(this)},t.valueOf=t.toString=function(){return this.build(!1)._string},v=function(i){return function(t,e){return void 0===t?this._parts[i]||"":(this._parts[i]=t||null,this.build(!e),this)}},g={protocol:"protocol",username:"username",password:"password",hostname:"hostname",port:"port"})t[m]=v(g[m]);for(m in v=function(i,n){return function(t,e){return void 0===t?this._parts[i]||"":(null!==t&&((t+="").charAt(0)===n&&(t=t.substring(1))),this._parts[i]=t,this.build(!e),this)}},g={query:"?",fragment:"#"})t[m]=v(m,g[m]);for(m in v=function(n,s){return function(t,e){var i=this[n](t,e);return"string"==typeof i&&i.length?s+i:i}},g={search:["?","query"],hash:["#","fragment"]})t[m]=v(g[m][1],g[m][0]);t.pathname=function(t,e){if(void 0===t||!0===t){var i=this._parts.path||(this._parts.hostname?"/":"");return t?h.decodePath(i):i}return this._parts.path=t?h.recodePath(t):"/",this.build(!e),this},t.path=t.pathname,t.href=function(t,e){var i;if(void 0===t)return this.toString();this._string="",this._parts=h._parts();var n=t instanceof h,s="object"==typeof t&&(t.hostname||t.path||t.pathname);if(t.nodeName&&(t=t[s=h.getDomAttribute(t)]||"",s=!1),!n&&s&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t)this._parts=h.parse(t,this._parts);else{if(!n&&!s)throw new TypeError("invalid input");for(i in n=n?t._parts:t)f.call(this._parts,i)&&(this._parts[i]=n[i])}return this.build(!e),this},t.is=function(t){var e=!1,i=!1,n=!1,s=!1,o=!1,r=!1,a=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,i=h.ip4_expression.test(this._parts.hostname),n=h.ip6_expression.test(this._parts.hostname),o=(s=!(e=i||n))&&c&&c.has(this._parts.hostname),r=s&&h.idn_expression.test(this._parts.hostname),a=s&&h.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return s;case"sld":return o;case"ip":return e;case"ip4":case"ipv4":case"inet4":return i;case"ip6":case"ipv6":case"inet6":return n;case"idn":return r;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return a}return null};var y=t.protocol,_=t.port,b=t.hostname;t.protocol=function(t,e){if(void 0!==t&&t&&(t=t.replace(/:(\/\/)?$/,"")).match(/[^a-zA-z0-9\.+-]/))throw new TypeError("Protocol '"+t+"' contains characters other than [A-Z0-9.+-]");return y.call(this,t,e)},t.scheme=t.protocol,t.port=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),t.match(/[^0-9]/))))throw new TypeError("Port '"+t+"' contains characters other than [0-9]");return _.call(this,t,e)},t.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var i={};h.parseHost(t,i),t=i.hostname}return b.call(this,t,e)},t.host=function(t,e){return this._parts.urn?void 0===t?"":this:void 0===t?this._parts.hostname?h.buildHost(this._parts):"":(h.parseHost(t,this._parts),this.build(!e),this)},t.authority=function(t,e){return this._parts.urn?void 0===t?"":this:void 0===t?this._parts.hostname?h.buildAuthority(this._parts):"":(h.parseAuthority(t,this._parts),this.build(!e),this)},t.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.username)return"";var i=h.buildUserinfo(this._parts);return i.substring(0,i.length-1)}return"@"!==t[t.length-1]&&(t+="@"),h.parseUserinfo(t,this._parts),this.build(!e),this},t.resource=function(t,e){var i;return void 0===t?this.path()+this.search()+this.hash():(i=h.parse(t),this._parts.path=i.path,this._parts.query=i.query,this._parts.fragment=i.fragment,this.build(!e),this)},t.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,i)||""}return i=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,i),i=RegExp("^"+s(i)),t&&"."!==t.charAt(t.length-1)&&(t+="."),t&&h.ensureValidHostname(t),this._parts.hostname=this._parts.hostname.replace(i,t),this.build(!e),this},t.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.match(/\./g);return i&&i.length<2?this._parts.hostname:(i=this._parts.hostname.length-this.tld(e).length-1,i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||"")}if(!t)throw new TypeError("cannot set domain empty");return h.ensureValidHostname(t),!this._parts.hostname||this.is("IP")?this._parts.hostname=t:(i=RegExp(s(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(i,t)),this.build(!e),this},t.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.lastIndexOf(".");i=this._parts.hostname.substring(i+1);return!0!==e&&c&&c.list[i.toLowerCase()]&&c.get(this._parts.hostname)||i}if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!c||!c.is(t))throw new TypeError("TLD '"+t+"' contains characters other than [A-Z0-9]");i=RegExp(s(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=RegExp(s(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},t.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var i=this._parts.path.length-this.filename().length-1;i=this._parts.path.substring(0,i)||(this._parts.hostname?"/":"");return t?h.decodePath(i):i}return i=this._parts.path.length-this.filename().length,i=this._parts.path.substring(0,i),i=RegExp("^"+s(i)),this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=h.recodePath(t),this._parts.path=this._parts.path.replace(i,t),this.build(!e),this},t.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var i=this._parts.path.lastIndexOf("/");i=this._parts.path.substring(i+1);return t?h.decodePathSegment(i):i}i=!1,"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(i=!0);var n=RegExp(s(this.filename())+"$");return t=h.recodePath(t),this._parts.path=this._parts.path.replace(n,t),i?this.normalizePath(e):this.build(!e),this},t.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var i=this.filename(),n=i.lastIndexOf(".");return-1===n?"":(i=i.substring(n+1),i=/^[a-z0-9%]+$/i.test(i)?i:"",t?h.decodePathSegment(i):i)}if("."===t.charAt(0)&&(t=t.substring(1)),i=this.suffix())n=t?RegExp(s(i)+"$"):RegExp(s("."+i)+"$");else{if(!t)return this;this._parts.path+="."+h.recodePath(t)}return n&&(t=h.recodePath(t),this._parts.path=this._parts.path.replace(n,t)),this.build(!e),this},t.segment=function(t,e,i){var n=this._parts.urn?":":"/",s="/"===(o=this.path()).substring(0,1),o=o.split(n);if(void 0!==t&&"number"!=typeof t&&(i=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw Error("Bad segment '"+t+"', must be 0-based integer");if(s&&o.shift(),t<0&&(t=Math.max(o.length+t,0)),void 0===e)return void 0===t?o:o[t];if(null===t||void 0===o[t])if(l(e)){o=[],t=0;for(var r=e.length;t<r;t++)(e[t].length||o.length&&o[o.length-1].length)&&(o.length&&!o[o.length-1].length&&o.pop(),o.push(e[t]))}else(e||"string"==typeof e)&&(""===o[o.length-1]?o[o.length-1]=e:o.push(e));else e||"string"==typeof e&&e.length?o[t]=e:o.splice(t,1);return s&&o.unshift(""),this.path(o.join(n),i)},t.segmentCoded=function(t,e,i){var n,s;if("number"!=typeof t&&(i=e,e=t,t=void 0),void 0===e){if(l(t=this.segment(t,e,i)))for(n=0,s=t.length;n<s;n++)t[n]=h.decode(t[n]);else t=void 0!==t?h.decode(t):void 0;return t}if(l(e))for(n=0,s=e.length;n<s;n++)e[n]=h.decode(e[n]);else e="string"==typeof e?h.encode(e):e;return this.segment(t,e,i)};var w=t.query;return t.query=function(t,e){if(!0===t)return h.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var i=h.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=t.call(this,i);return this._parts.query=h.buildQuery(n||i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=h.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):w.call(this,t,e)},t.setQuery=function(t,e,i){var n=h.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("object"==typeof t)for(var s in t)f.call(t,s)&&(n[s]=t[s]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");n[t]=void 0!==e?e:null}return this._parts.query=h.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(i=e),this.build(!i),this},t.addQuery=function(t,e,i){var n=h.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return h.addQuery(n,t,void 0===e?null:e),this._parts.query=h.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(i=e),this.build(!i),this},t.removeQuery=function(t,e,i){var n=h.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return h.removeQuery(n,t,e),this._parts.query=h.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(i=e),this.build(!i),this},t.hasQuery=function(t,e,i){var n=h.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return h.hasQuery(n,t,e,i)},t.setSearch=t.setQuery,t.addSearch=t.addQuery,t.removeSearch=t.removeQuery,t.hasSearch=t.hasQuery,t.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},t.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},t.normalizeHostname=function(t){return this._parts.hostname&&(this.is("IDN")&&a?this._parts.hostname=a.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!t)),this},t.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===h.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},t.normalizePath=function(t){if(this._parts.urn||!this._parts.path||"/"===this._parts.path)return this;var e,i,n,s=this._parts.path;for("/"!==s.charAt(0)&&(e=!0,s="/"+s),s=s.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");-1!==(i=s.indexOf("/../"));){if(0===i){s=s.substring(3);break}-1===(n=s.substring(0,i).lastIndexOf("/"))&&(n=i),s=s.substring(0,n)+s.substring(i+3)}return e&&this.is("relative")&&(s=s.substring(1)),s=h.recodePath(s),this._parts.path=s,this.build(!t),this},t.normalizePathname=t.normalizePath,t.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(h.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},t.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},t.normalizeSearch=t.normalizeQuery,t.normalizeHash=t.normalizeFragment,t.iso8859=function(){var t=h.encode,e=h.decode;return h.encode=escape,h.decode=decodeURIComponent,this.normalize(),h.encode=t,h.decode=e,this},t.unicode=function(){var t=h.encode,e=h.decode;return h.encode=d,h.decode=unescape,this.normalize(),h.encode=t,h.decode=e,this},t.readable=function(){var t=this.clone();t.username("").password("").normalize();var e="";if(t._parts.protocol&&(e+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&a?(e+=a.toUnicode(t._parts.hostname),t._parts.port&&(e+=":"+t._parts.port)):e+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(e+="/"),e+=t.path(!0),t._parts.query){for(var i="",n=0,s=t._parts.query.split("&"),o=s.length;n<o;n++){var r=(s[n]||"").split("=");i=i+"&"+h.decodeQuery(r[0],this._parts.escapeQuerySpace).replace(/&/g,"%26");void 0!==r[1]&&(i+="="+h.decodeQuery(r[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}e+="?"+i.substring(1)}return e+h.decodeQuery(t.hash(),!0)},t.absoluteTo=function(t){var e,i,n=this.clone(),s=["protocol","username","password","hostname","port"];if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(t instanceof h||(t=new h(t)),n._parts.protocol||(n._parts.protocol=t._parts.protocol),this._parts.hostname)return n;for(e=0;i=s[e];e++)n._parts[i]=t._parts[i];for(s=["query","path"],e=0;i=s[e];e++)!n._parts[i]&&t._parts[i]&&(n._parts[i]=t._parts[i]);return"/"!==n.path().charAt(0)&&(t=t.directory(),n._parts.path=(t?t+"/":"")+n._parts.path,n.normalizePath()),n.build(),n},t.relativeTo=function(t){var e,i,n,s,o=this.clone().normalize();if(o._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(t=new h(t).normalize(),e=o._parts,i=t._parts,n=o.path(),s=t.path(),"/"!==n.charAt(0))throw Error("URI is already relative");if("/"!==s.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");return e.protocol===i.protocol&&(e.protocol=null),e.username!==i.username||e.password!==i.password||null!==e.protocol||null!==e.username||null!==e.password||e.hostname!==i.hostname||e.port!==i.port?o.build():(e.hostname=null,e.port=null,n===s?e.path="":(t=h.commonPath(o.path(),t.path()))&&(i=i.path.substring(t.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../"),e.path=i+e.path.substring(t.length)),o.build())},t.equals=function(t){var e=this.clone();t=new h(t);var i,n={},s={},o={};if(e.normalize(),t.normalize(),e.toString()===t.toString())return!0;if(n=e.query(),s=t.query(),e.query(""),t.query(""),e.toString()!==t.toString()||n.length!==s.length)return!1;for(i in n=h.parseQuery(n,this._parts.escapeQuerySpace),s=h.parseQuery(s,this._parts.escapeQuerySpace),n)if(f.call(n,i)){if(l(n[i])){if(!u(n[i],s[i]))return!1}else if(n[i]!==s[i])return!1;o[i]=!0}for(i in s)if(f.call(s,i)&&!o[i])return!1;return!0},t.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},t.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},h}),function(t,e){"object"==typeof exports?module.exports=e(require("./URI")):"function"==typeof define&&define.amd?define(["./URI"],e):t.URITemplate=e(t.URI,t)}(this,function(p,t){function u(t){return u._cache[t]?u._cache[t]:this instanceof u?(this.expression=t,u._cache[t]=this):new u(t)}function s(t){this.data=t,this.cache={}}var e=t&&t.URITemplate,o=Object.prototype.hasOwnProperty,i=u.prototype,d={"":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encode"},"+":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},"#":{prefix:"#",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},".":{prefix:".",separator:".",named:!1,empty_name_separator:!1,encode:"encode"},"/":{prefix:"/",separator:"/",named:!1,empty_name_separator:!1,encode:"encode"},";":{prefix:";",separator:";",named:!0,empty_name_separator:!1,encode:"encode"},"?":{prefix:"?",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"},"&":{prefix:"&",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"}};return u._cache={},u.EXPRESSION_PATTERN=/\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g,u.VARIABLE_PATTERN=/^([^*:]+)((\*)|:(\d+))?$/,u.VARIABLE_NAME_PATTERN=/[^a-zA-Z0-9%_]/,u.expand=function(t,e){var i,n,s,o=d[t.operator],r=o.named?"Named":"Unnamed",a=t.variables,l=[];for(s=0;n=a[s];s++)(i=e.get(n.name)).val.length?l.push(u["expand"+r](i,o,n.explode,n.explode&&o.separator||",",n.maxlength,n.name)):i.type&&l.push("");return l.length?o.prefix+l.join(o.separator):""},u.expandNamed=function(t,e,i,n,s,o){var r="",a=e.encode;e=e.empty_name_separator;var l,c,h,u=!t[a].length,d=2===t.type?"":p[a](o);for(c=0,h=t.val.length;c<h;c++)s?(l=p[a](t.val[c][1].substring(0,s)),2===t.type&&(d=p[a](t.val[c][0].substring(0,s)))):u?(l=p[a](t.val[c][1]),2===t.type?(d=p[a](t.val[c][0]),t[a].push([d,l])):t[a].push([void 0,l])):(l=t[a][c][1],2===t.type&&(d=t[a][c][0])),r&&(r+=n),i?r+=d+(e||l?"=":"")+l:(c||(r+=p[a](o)+(e||l?"=":"")),2===t.type&&(r+=d+","),r+=l);return r},u.expandUnnamed=function(t,e,i,n,s,o){o="";var r=e.encode;e=e.empty_name_separator;var a,l,c,h=!t[r].length;for(l=0,c=t.val.length;l<c;l++)s?a=p[r](t.val[l][1].substring(0,s)):h?(a=p[r](t.val[l][1]),t[r].push([2===t.type?p[r](t.val[l][0]):void 0,a])):a=t[r][l][1],o&&(o+=n),2===t.type&&(o+=s?p[r](t.val[l][0].substring(0,s)):t[r][l][0],o=i?o+(e||a?"=":""):o+","),o+=a;return o},u.noConflict=function(){return t.URITemplate===u&&(t.URITemplate=e),u},i.expand=function(t){var e="";this.parts&&this.parts.length||this.parse(),t instanceof s||(t=new s(t));for(var i=0,n=this.parts.length;i<n;i++)e+="string"==typeof this.parts[i]?this.parts[i]:u.expand(this.parts[i],t);return e},i.parse=function(){var t,e,i,n=this.expression,s=u.EXPRESSION_PATTERN,o=u.VARIABLE_PATTERN,r=u.VARIABLE_NAME_PATTERN,a=[],l=0;for(s.lastIndex=0;;){if(null===(e=s.exec(n))){a.push(n.substring(l));break}if(a.push(n.substring(l,e.index)),l=e.index+e[0].length,!d[e[1]])throw Error('Unknown Operator "'+e[1]+'" in "'+e[0]+'"');if(!e[3])throw Error('Unclosed Expression "'+e[0]+'"');for(var c=0,h=(t=e[2].split(",")).length;c<h;c++){if(null===(i=t[c].match(o)))throw Error('Invalid Variable "'+t[c]+'" in "'+e[0]+'"');if(i[1].match(r))throw Error('Invalid Variable Name "'+i[1]+'" in "'+e[0]+'"');t[c]={name:i[1],explode:!!i[3],maxlength:i[4]&&parseInt(i[4],10)}}if(!t.length)throw Error('Expression Missing Variable(s) "'+e[0]+'"');a.push({expression:e[0],operator:e[1],variables:t})}return a.length||a.push(n),this.parts=a,this},s.prototype.get=function(t){var e,i=this.data,n={type:0,val:[],encode:[],encodeReserved:[]};if(void 0!==this.cache[t])return this.cache[t];if(this.cache[t]=n,null!=(i="[object Function]"===String(Object.prototype.toString.call(i))?i(t):"[object Function]"===String(Object.prototype.toString.call(i[t]))?i[t](t):i[t]))if("[object Array]"===String(Object.prototype.toString.call(i))){for(e=0,t=i.length;e<t;e++)void 0!==i[e]&&null!==i[e]&&n.val.push([void 0,String(i[e])]);n.val.length&&(n.type=3)}else if("[object Object]"===String(Object.prototype.toString.call(i))){for(e in i)o.call(i,e)&&void 0!==i[e]&&null!==i[e]&&n.val.push([e,String(i[e])]);n.val.length&&(n.type=2)}else n.type=1,n.val.push([void 0,String(i)]);return n},p.expand=function(t,e){var i=new u(t).expand(e);return new p(i)},u}),function(t,e){"object"==typeof exports?module.exports=e(require("jquery","./URI")):"function"==typeof define&&define.amd?define(["jquery","./URI"],e):e(t.jQuery,t.URI)}(this,function(o,r){function n(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function a(t){var e=t.nodeName.toLowerCase();return"input"===e&&"image"!==t.type?void 0:r.domAttributes[e]}function s(t,e){var i,n,s;return!(!a(t)||!e)&&(!(!(i=e.match(h))||!i[5]&&":"!==i[2]&&!c[i[2]])&&(s=o(t).uri(),i[5]?s.is(i[5]):":"===i[2]?(n=i[1].toLowerCase()+":",!!c[n]&&c[n](s,i[4])):(n=i[1].toLowerCase(),!!l[n]&&c[i[2]](s[n](),i[4],n))))}var l={},c={"=":function(t,e){return t===e},"^=":function(t,e,i){return!!(t+"").match(RegExp("^"+n(e),"i"))},"$=":function(t,e,i){return!!(t+"").match(RegExp(n(e)+"$","i"))},"*=":function(t,e,i){return"directory"==i&&(t+="/"),!!(t+"").match(RegExp(n(e),"i"))},"equals:":function(t,e){return t.equals(e)},"is:":function(t,e){return t.is(e)}};o.each("authority directory domain filename fragment hash host hostname href password path pathname port protocol query resource scheme search subdomain suffix tld username".split(" "),function(t,e){var i;l[e]=!0,o.attrHooks["uri:"+e]=(i=e,{get:function(t){return o(t).uri()[i]()},set:function(t,e){return o(t).uri()[i](e),e}})});var i=function(t,e){return o(t).uri().href(e).toString()};o.each(["src","href","action","uri","cite"],function(t,e){o.attrHooks[e]={set:i}}),o.attrHooks.uri.get=function(t){return o(t).uri()},o.fn.uri=function(t){var e=this.first(),i=e.get(0),n=a(i);if(!n)throw Error('Element "'+i.nodeName+'" does not have either property: href, src, action, cite');if(void 0!==t){var s=e.data("uri");if(s)return s.href(t);t instanceof r||(t=r(t||""))}else{if(t=e.data("uri"))return t;t=r(e.attr(n)||"")}return t._dom_element=i,t._dom_attribute=n,t.normalize(),e.data("uri",t),t},r.prototype.build=function(t){return this._dom_element?(this._string=r.build(this._parts),this._deferred_build=!1,this._dom_element.setAttribute(this._dom_attribute,this._string),this._dom_element[this._dom_attribute]=this._string):!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=r.build(this._parts),this._deferred_build=!1),this};var t,h=/^([a-zA-Z]+)\s*([\^\$*]?=|:)\s*(['"]?)(.+)\3|^\s*([a-zA-Z0-9]+)\s*$/;return t=o.expr.createPseudo?o.expr.createPseudo(function(e){return function(t){return s(t,e)}}):function(t,e,i){return s(t,i[3])},o.expr[":"].uri=t,{}}),function(t,e){"object"==typeof exports?module.exports=e(require("./URI")):"function"==typeof define&&define.amd?define(["./URI"],e):e(t.URI)}(this,function(o){var t=o.prototype,s=t.fragment;o.fragmentPrefix="?";var e=o._parts;return o._parts=function(){var t=e();return t.fragmentPrefix=o.fragmentPrefix,t},t.fragmentPrefix=function(t){return this._parts.fragmentPrefix=t,this},t.fragment=function(t,e){var i=this._parts.fragmentPrefix,n=this._parts.fragment||"";return!0===t?n.substring(0,i.length)!==i?{}:o.parseQuery(n.substring(i.length)):void 0!==t&&"string"!=typeof t?(this._parts.fragment=i+o.buildQuery(t),this.build(!e),this):s.call(this,t,e)},t.addFragment=function(t,e,i){var n=this._parts.fragmentPrefix,s=o.parseQuery((this._parts.fragment||"").substring(n.length));return o.addQuery(s,t,e),this._parts.fragment=n+o.buildQuery(s),"string"!=typeof t&&(i=e),this.build(!i),this},t.removeFragment=function(t,e,i){var n=this._parts.fragmentPrefix,s=o.parseQuery((this._parts.fragment||"").substring(n.length));return o.removeQuery(s,t,e),this._parts.fragment=n+o.buildQuery(s),"string"!=typeof t&&(i=e),this.build(!i),this},t.addHash=t.addFragment,t.removeHash=t.removeFragment,{}}),function(y){var n,t,s=((t=document.createElement("input")).setAttribute("onpaste",""),("function"==typeof t.onpaste?"paste":"input")+".mask"),e=navigator.userAgent,_=/iphone/i.test(e),b=/android/i.test(e);y.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"},y.fn.extend({caret:function(t,e){var i;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof t?(e="number"==typeof e?e:t,this.each(function(){this.setSelectionRange?this.setSelectionRange(t,e):this.createTextRange&&((i=this.createTextRange()).collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select())})):(this[0].setSelectionRange?(t=this[0].selectionStart,e=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),t=0-i.duplicate().moveStart("character",-1e5),e=t+i.text.length),{begin:t,end:e})},unmask:function(){return this.trigger("unmask")},mask:function(e,p){var i,f,m,g,v;return!e&&0<this.length?y(this[0]).data(y.mask.dataName)():(p=y.extend({placeholder:y.mask.placeholder,completed:null},p),i=y.mask.definitions,f=[],m=v=e.length,g=null,y.each(e.split(""),function(t,e){"?"==e?(v--,m=t):i[e]?(f.push(RegExp(i[e])),null===g&&(g=f.length-1)):f.push(null)}),this.trigger("unmask").each(function(){function r(t){for(;v>++t&&!f[t];);return t}function a(t,e){var i,n;if(!(t<0)){for(i=t,n=r(e);i<v;i++)if(f[i]){if(!(n<v&&f[i].test(u[n])))break;u[i]=u[n],u[n]=p.placeholder,n=r(n)}c(),h.caret(Math.max(g,t))}}function l(t,e){var i;for(i=t;i<e&&i<v;i++)f[i]&&(u[i]=p.placeholder)}function c(){h.val(u.join(""))}function o(t){var e,i,n=h.val(),s=-1;for(e=0,pos=0;e<v;e++)if(f[e]){for(u[e]=p.placeholder;pos++<n.length;)if(i=n.charAt(pos-1),f[e].test(i)){u[e]=i,s=e;break}if(pos>n.length)break}else u[e]===n.charAt(pos)&&e!==m&&(pos++,s=e);return t?c():s+1<m?(h.val(""),l(0,v)):(c(),h.val(h.val().substring(0,s+1))),m?e:g}var h=y(this),u=y.map(e.split(""),function(t){return"?"!=t?i[t]?p.placeholder:t:void 0}),d=h.val();h.data(y.mask.dataName,function(){return y.map(u,function(t,e){return f[e]&&t!=p.placeholder?t:null}).join("")}),h.attr("readonly")||h.one("unmask",function(){h.unbind(".mask").removeData(y.mask.dataName)}).bind("focus.mask",function(){var t;clearTimeout(n),d=h.val(),t=o(),n=setTimeout(function(){c(),t==e.length?h.caret(0,t):h.caret(t)},10)}).bind("blur.mask",function(){o(),h.val()!=d&&h.change()}).bind("keydown.mask",function(t){var e,i,n,s=t.which;8===s||46===s||_&&127===s?(i=(e=h.caret()).begin,0==(n=e.end)-i&&(i=46!==s?function(t){for(;0<=--t&&!f[t];);return t}(i):n=r(i-1),n=46===s?r(n):n),l(i,n),a(i,n-1),t.preventDefault()):27==s&&(h.val(d),h.caret(0,o()),t.preventDefault())}).bind("keypress.mask",function(t){var e,i,n,s=t.which,o=h.caret();t.ctrlKey||t.altKey||t.metaKey||s<32||s&&(0!=o.end-o.begin&&(l(o.begin,o.end),a(o.begin,o.end-1)),(e=r(o.begin-1))<v&&(i=String.fromCharCode(s),f[e].test(i)&&(function(t){var e,i,n,s;for(e=t,i=p.placeholder;e<v;e++)if(f[e]){if(n=r(e),s=u[e],u[e]=i,!(n<v&&f[n].test(s)))break;i=s}}(e),u[e]=i,c(),n=r(e),b?setTimeout(y.proxy(y.fn.caret,h,n),0):h.caret(n),p.completed&&v<=n&&p.completed.call(h))),t.preventDefault())}).bind(s,function(){setTimeout(function(){var t=o(!0);h.caret(t),p.completed&&t==h.val().length&&p.completed.call(h)},0)}),o()}))}})}(jQuery),function(a){a.fn.characterCounter=function(r){return r=a.extend({maximumCharacters:1e3,characterCounterNeeded:!0,charactersRemainingNeeded:!0,chopText:!1,positionBefore:!1,limitExceededClass:"character-counter-limit-exceeded",charactersTypedSuffix:" characters typed",charactersRemainingSuffixText:" characters left",shortFormat:!1,shortFormatSeparator:"/"},r),this.each(function(){var t,n,s,o=a(this);if(!o.is("input[type=text]")&&!o.is("textarea"))return this;if((r.characterCounterNeeded||r.charactersRemainingNeeded)&&(t=a("<div>",{class:"character-counter-main-wrapper"}),r.positionBefore?t.insertBefore(o):t.insertAfter(o)),r.characterCounterNeeded)if(n=a("<span>",{class:"counter character-counter",text:0}),r.shortFormat){n.appendTo(t);a("<span>",{html:r.shortFormatSeparator}).appendTo(t)}else{var e=a("<div>",{class:"character-counter-wrapper",html:r.charactersTypedSuffix});e.prepend(n),e.appendTo(t)}if(r.charactersRemainingNeeded)if(s=a("<span>",{class:"counter characters-remaining",text:r.maximumCharacters}),r.shortFormat)s.appendTo(t);else{var i=a("<div>",{class:"characters-remaining-wrapper",html:r.charactersRemainingSuffixText});i.prepend(s),i.appendTo(t)}o.keyup(function(){var t=o.val(),e=t.length,i=r.maximumCharacters-e;i<0&&r.chopText&&(o.val(t.substr(0,r.maximumCharacters)),i=0,e=r.maximumCharacters),r.characterCounterNeeded&&n.text(e),r.charactersRemainingNeeded&&(s.text(i),i<=0?s.hasClass(r.limitExceededClass)||s.addClass(r.limitExceededClass):s.removeClass(r.limitExceededClass))})}),this}}(jQuery),jQuery.cookie=function(t,e,i){if(void 0===e){var n=null;if(document.cookie&&""!=document.cookie)for(var s=document.cookie.split(";"),o=0;o<s.length;o++){var r=jQuery.trim(s[o]);if(r.substring(0,t.length+1)==t+"="){n=decodeURIComponent(r.substring(t.length+1));break}}return n}i=i||{},null===e&&(e="",i.expires=-1);var a,l="";i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(a=new Date).setTime(a.getTime()+24*i.expires*60*60*1e3):a=i.expires,l="; expires="+a.toUTCString());var c=i.path?"; path="+i.path:"",h=i.domain?"; domain="+i.domain:"",u=i.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(e),l,c,h,u].join("")},function($){$.cookieCuttr=function(e){var t={cookieCutter:!1,cookieCutterDeclineOnly:!1,cookieAnalytics:!0,cookieDeclineButton:!1,cookieAcceptButton:!0,cookieResetButton:!1,cookieOverlayEnabled:!1,cookiePolicyLink:"/privacy-policy/",cookieMessage:'We use cookies on this website, you can <a href="{{cookiePolicyLink}}" title="read about our cookies">read about them here</a>. To use the website as intended please...',cookieAnalyticsMessage:"We use cookies, just to track visits to our website, we store no personal details.",cookieErrorMessage:"We're sorry, this feature places cookies in your browser and has been disabled. <br>To continue using this functionality, please",cookieWhatAreTheyLink:"http://www.allaboutcookies.org/",cookieDisable:"",cookieExpires:365,cookieAcceptButtonText:"ACCEPT COOKIES",cookieDeclineButtonText:"DECLINE COOKIES",cookieResetButtonText:"RESET COOKIES FOR THIS WEBSITE",cookieWhatAreLinkText:"What are cookies?",cookieNotificationLocationBottom:!1,cookiePolicyPage:!1,cookiePolicyPageMessage:"Please read the information below and then choose from the following options",cookieDiscreetLink:!1,cookieDiscreetReset:!1,cookieDiscreetLinkText:"Cookies?",cookieDiscreetPosition:"topleft",cookieNoMessage:!1,cookieDomain:""},i=(e=$.extend(t,e),t.cookieMessage.replace("{{cookiePolicyLink}}",t.cookiePolicyLink));t.cookieMessage='We use cookies on this website, you can <a href="'+t.cookiePolicyLink+'" title="read about our cookies">read about them here</a>. To use the website as intended please...';var n=e.cookiePolicyLink,s=e.cookieCutter,o=e.cookieCutterDeclineOnly,r=e.cookieAnalytics,a=e.cookieDeclineButton,l=e.cookieAcceptButton,c=e.cookieResetButton,h=e.cookieOverlayEnabled;e.cookiePolicyLink;var u=i,d=e.cookieAnalyticsMessage,p=e.cookieErrorMessage,f=e.cookieDisable,m=e.cookieWhatAreTheyLink,g=e.cookieExpires,v=e.cookieAcceptButtonText,y=e.cookieDeclineButtonText,_=e.cookieResetButtonText,b=e.cookieWhatAreLinkText,w=e.cookieNotificationLocationBottom,C=e.cookiePolicyPage,x=e.cookiePolicyPageMessage,T=e.cookieDiscreetLink,k=e.cookieDiscreetReset,E=e.cookieDiscreetLinkText,D=e.cookieDiscreetPosition,S=e.cookieNoMessage,A="cc_cookie_accept"==$.cookie("cc_cookie_accept");$.cookieAccepted=function(){return A};var I="cc_cookie_decline"==$.cookie("cc_cookie_decline");if($.cookieDeclined=function(){return I},l)var P=' <a href="#accept" class="cc-cookie-accept">'+v+"</a> ";else P="";if(a)var N=' <a href="#decline" class="cc-cookie-decline">'+y+"</a> ";else N="";if(h)var O="cc-overlay";else O="";if(w||"bottomright"==D||"bottomleft"==D)var M=!0;else M=!1;if(A||I)if(c&&k)M?$("body").append('<div class="cc-cookies cc-discreet"><a class="cc-cookie-reset" href="#" title="'+_+'">'+_+"</a></div>"):$("body").prepend('<div class="cc-cookies cc-discreet"><a class="cc-cookie-reset" href="#" title="'+_+'">'+_+"</a></div>"),"topleft"==D&&($("div.cc-cookies").css("top","0"),$("div.cc-cookies").css("left","0")),"topright"==D&&($("div.cc-cookies").css("top","0"),$("div.cc-cookies").css("right","0")),"bottomleft"==D&&($("div.cc-cookies").css("bottom","0"),$("div.cc-cookies").css("left","0")),"bottomright"==D&&($("div.cc-cookies").css("bottom","0"),$("div.cc-cookies").css("right","0"));else if(c)M?$("body").append('<div class="cc-cookies"><a href="#" class="cc-cookie-reset">'+_+"</a></div>"):$("body").prepend('<div class="cc-cookies"><a href="#" class="cc-cookie-reset">'+_+"</a></div>");else c="";else S&&!C||(T&&!C?(M?$("body").append('<div class="cc-cookies cc-discreet"><a href="'+n+'" title="'+E+'">'+E+"</a></div>"):$("body").prepend('<div class="cc-cookies cc-discreet"><a href="'+n+'" title="'+E+'">'+E+"</a></div>"),"topleft"==D&&($("div.cc-cookies").css("top","0"),$("div.cc-cookies").css("left","0")),"topright"==D&&($("div.cc-cookies").css("top","0"),$("div.cc-cookies").css("right","0")),"bottomleft"==D&&($("div.cc-cookies").css("bottom","0"),$("div.cc-cookies").css("left","0")),"bottomright"==D&&($("div.cc-cookies").css("bottom","0"),$("div.cc-cookies").css("right","0"))):r&&(M?$("body").append('<div class="cc-cookies '+O+'">'+d+P+N+'<a href="'+m+'" title="Visit All about cookies (External link)">'+b+"</a></div>"):$("body").prepend('<div class="cc-cookies '+O+'">'+d+P+N+'<a href="'+m+'" title="Visit All about cookies (External link)">'+b+"</a></div>"))),C?M?$("body").append('<div class="cc-cookies '+O+'">'+x+'  <a href="#accept" class="cc-cookie-accept">'+v+'</a>  <a href="#decline" class="cc-cookie-decline">'+y+"</a> </div>"):$("body").prepend('<div class="cc-cookies '+O+'">'+x+'  <a href="#accept" class="cc-cookie-accept">'+v+'</a>  <a href="#decline" class="cc-cookie-decline">'+y+"</a> </div>"):r||T||(M?$("body").append('<div class="cc-cookies '+O+'">'+u+P+N+"</div>"):$("body").prepend('<div class="cc-cookies '+O+'">'+u+P+N+"</div>"));!s||o||!I&&A||$(f).html('<div class="cc-cookies-error">'+p+' <a href="#accept" class="cc-cookie-accept">'+v+"</a> </div>"),s&&o&&I&&$(f).html('<div class="cc-cookies-error">'+p+' <a href="#accept" class="cc-cookie-accept">'+v+"</a> </div>"),w&&!T&&($("div.cc-cookies").css("top","auto"),$("div.cc-cookies").css("bottom","0")),w&&T&&C&&($("div.cc-cookies").css("top","auto"),$("div.cc-cookies").css("bottom","0")),$(".cc-cookie-accept, .cc-cookie-decline").click(function(t){t.preventDefault(),$(this).is("[href$=#decline]")?($.cookie("cc_cookie_accept",null,{path:"/"}),$.cookie("cc_cookie_decline","cc_cookie_decline",{expires:g,path:"/"}),e.cookieDomain&&($.cookie("__utma",null,{domain:"."+e.cookieDomain,path:"/"}),$.cookie("__utmb",null,{domain:"."+e.cookieDomain,path:"/"}),$.cookie("__utmc",null,{domain:"."+e.cookieDomain,path:"/"}),$.cookie("__utmz",null,{domain:"."+e.cookieDomain,path:"/"}))):($.cookie("cc_cookie_decline",null,{path:"/"}),$.cookie("cc_cookie_accept","cc_cookie_accept",{expires:g,path:"/"}),$.cookie("cc_cookie_accept_temp","cc_cookie_accept",{expires:g,path:"/"})),$(".cc-cookies").fadeOut(function(){location.reload()})}),$("a.cc-cookie-reset").click(function(t){t.preventDefault(),$.cookie("cc_cookie_accept",null,{path:"/"}),$.cookie("cc_cookie_decline",null,{path:"/"}),$(".cc-cookies").fadeOut(function(){location.reload()})}),$(".cc-cookies-error a.cc-cookie-accept").click(function(t){t.preventDefault(),$.cookie("cc_cookie_accept","cc_cookie_accept",{expires:g,path:"/"}),$.cookie("cc_cookie_decline",null,{path:"/"}),location.reload()})}}(jQuery),function(t){if("function"==typeof define&&define.amd)define(t);else if("object"==typeof exports)module.exports=t();else{var e=window.Cookies,i=window.Cookies=t();i.noConflict=function(){return window.Cookies=e,i}}}(function(){function p(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}return function t(u){function d(t,e,i){var n;if(1<arguments.length){if("number"==typeof(i=p({path:"/"},d.defaults,i)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}try{n=JSON.stringify(e),/^[\{\[]/.test(n)&&(e=n)}catch(t){}return e=u.write?u.write(e,t):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",e,i.expires&&"; expires="+i.expires.toUTCString(),i.path&&"; path="+i.path,i.domain&&"; domain="+i.domain,i.secure?"; secure":""].join("")}t||(n={});for(var o=document.cookie?document.cookie.split("; "):[],r=/(%[0-9A-Z]{2})+/g,a=0;a<o.length;a++){var l=o[a].split("="),c=l[0].replace(r,decodeURIComponent),h=l.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{if(h=u.read?u.read(h,c):u(h,c)||h.replace(r,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(t){}if(t===c){n=h;break}t||(n[c]=h)}catch(t){}}return n}return d.get=d.set=d,d.getJSON=function(){return d.apply({json:!0},[].slice.call(arguments))},d.defaults={},d.remove=function(t,e){d(t,"",p(e,{expires:-1}))},d.withConverter=t,d}(function(){})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper"],t):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=t(window.blueimp.helper||window.jQuery))}(function(h){"use strict";function i(t,e){return void 0===document.body.style.maxHeight?null:this&&this.options===i.prototype.options?t&&t.length?(this.list=t,this.num=t.length,this.initOptions(e),void this.initialize()):void this.console.log("blueimp Gallery: No or empty list provided as first argument.",t):new i(t,e)}return h.extend(i.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:(n=document.createElement("div"),s={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},t=function(){var t,e,i=s.transition;document.body.appendChild(n),i&&(t=i.name.slice(0,-9)+"ransform",void 0!==n.style[t]&&(n.style[t]="translateZ(0)",e=window.getComputedStyle(n).getPropertyValue(i.prefix+"transform"),s.transform={prefix:i.prefix,name:t,translate:!0,translateZ:!!e&&"none"!==e})),void 0!==n.style.backgroundSize&&(s.backgroundSize={},n.style.backgroundSize="contain",s.backgroundSize.contain="contain"===window.getComputedStyle(n).getPropertyValue("background-size"),n.style.backgroundSize="cover",s.backgroundSize.cover="cover"===window.getComputedStyle(n).getPropertyValue("background-size")),document.body.removeChild(n)},function(t,e){var i;for(i in e)if(e.hasOwnProperty(i)&&void 0!==n.style[i]){t.transition=e[i],t.transition.name=i;break}}(s,{webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}}),document.body?t():h(document).on("DOMContentLoaded",t),s),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),!1!==this.initWidget()&&(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void(this.options.startSlideshow&&this.play()))},slide:function(t,e){window.clearTimeout(this.timeout);var i,n,s,o=this.index;if(o!==t&&1!==this.num){if(e||(e=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(t=this.circle(t)),i=Math.abs(o-t)/(o-t),this.options.continuous&&(n=i,(i=-this.positions[this.circle(t)]/this.slideWidth)!==n&&(t=-i*this.num+t)),s=Math.abs(o-t)-1;s;)s-=1,this.move(this.circle((o<t?t:o)-s-1),this.slideWidth*i,0);t=this.circle(t),this.move(o,this.slideWidth*i,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-i),-this.slideWidth*i,0)}else t=this.circle(t),this.animate(o*-this.slideWidth,t*-this.slideWidth,e);this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var i=this;window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,1<this.elements[this.index]&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,e){i.animationFrameId=i.requestAnimationFrame.call(window,function(){i.slide(t,e)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.container.removeClass(this.options.playingClass)},add:function(t){var e;for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,2<this.num&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e);this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.slides=[]},handleClose:function(){var t=this.options;this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var e=this,i=function(t){t.target===e.container[0]&&(e.container.off(e.support.transition.end,i),e.handleClose())};this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,i),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,i){this.translateX(t,e,i),this.positions[t]=e},translate:function(t,e,i,n){var s=this.slides[t].style,o=this.support.transition,r=this.support.transform;s[o.name+"Duration"]=n+"ms",s[r.name]="translate("+e+"px, "+i+"px)"+(r.translateZ?" translateZ(0)":"")},translateX:function(t,e,i){this.translate(t,e,0,i)},translateY:function(t,e,i){this.translate(t,0,e,i)},animate:function(e,i,n){if(n)var s=this,o=(new Date).getTime(),r=window.setInterval(function(){var t=(new Date).getTime()-o;return n<t?(s.slidesContainer[0].style.left=i+"px",s.ontransitionend(),void window.clearInterval(r)):void(s.slidesContainer[0].style.left=(i-e)*(Math.floor(t/n*100)/100)+e+"px")},4);else this.slidesContainer[0].style.left=i+"px"},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(t){t.which&&1===t.which&&"VIDEO"!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(t){if(this.touchStart){var e=t.target,i=t.relatedTarget;(!i||i!==e&&!h.contains(e,i))&&this.onmouseup(t)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e=(t.originalEvent||t).touches[0];this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,i,n=(t.originalEvent||t).touches[0],s=(t.originalEvent||t).scale,o=this.index;if(!(1<n.length||s&&1!==s))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:n.pageX-this.touchStart.x,y:n.pageY-this.touchStart.y},e=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(e)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.closeOnSwipeUpOrDown&&this.translateY(o,this.touchDelta.y+this.positions[o],0);else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?i=[this.circle(o+1),o,this.circle(o-1)]:(this.touchDelta.x=e/=!o&&0<e||o===this.num-1&&e<0?Math.abs(e)/this.slideWidth+1:1,i=[o],o&&i.push(o-1),o<this.num-1&&i.unshift(o+1));i.length;)o=i.pop(),this.translateX(o,e+this.positions[o],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,i,n,s,o,r=this.index,a=this.options.transitionSpeed,l=this.slideWidth,c=Number(Date.now()-this.touchStart.time)<250,h=c&&20<Math.abs(this.touchDelta.x)||Math.abs(this.touchDelta.x)>l/2,u=!r&&0<this.touchDelta.x||r===this.num-1&&this.touchDelta.x<0,d=!h&&this.options.closeOnSwipeUpOrDown&&(c&&20<Math.abs(this.touchDelta.y)||Math.abs(this.touchDelta.y)>this.slideHeight/2);this.options.continuous&&(u=!1),e=this.touchDelta.x<0?-1:1,this.isScrolling?d?this.close():this.translateY(r,0,a):h&&!u?(i=r+e,n=r-e,s=l*e,o=-l*e,this.options.continuous?(this.move(this.circle(i),s,0),this.move(this.circle(r-2*e),o,0)):0<=i&&i<this.num&&this.move(i,s,0),this.move(r,this.positions[r]+s,a),this.move(this.circle(n),this.positions[this.circle(n)]+s,a),r=this.circle(n),this.onslide(r)):this.options.continuous?(this.move(this.circle(r-1),-l,a),this.move(r,0,a),this.move(this.circle(r+1),l,a)):(r&&this.move(r-1,-l,a),this.move(r,0,a),r<this.num-1&&this.move(r+1,l,a))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index];t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(t){var e,i=t.target||t.srcElement,n=i&&i.parentNode;i&&n&&(e=this.getNodeIndex(n),h(n).removeClass(this.options.slideLoadingClass),"error"===t.type?(h(n).addClass(this.options.slideErrorClass),this.elements[e]=3):this.elements[e]=2,i.clientHeight>this.container[0].clientHeight&&(i.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===n&&this.play(),this.setTimeout(this.options.onslidecomplete,[e,n]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls());break;case 27:this.options.closeOnEscape&&this.close();break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(t){var e=this.options,i=t.target||t.srcElement,n=i.parentNode,s=function(t){return h(i).hasClass(t)||h(n).hasClass(t)};s(e.toggleClass)?(this.preventDefault(t),this.toggleControls()):s(e.prevClass)?(this.preventDefault(t),this.prev()):s(e.nextClass)?(this.preventDefault(t),this.next()):s(e.closeClass)?(this.preventDefault(t),this.close()):s(e.playPauseClass)?(this.preventDefault(t),this.toggleSlideshow()):n===this.slidesContainer[0]?(this.preventDefault(t),e.closeOnSlideClick?this.close():this.toggleControls()):n.parentNode&&n.parentNode===this.slidesContainer[0]&&(this.preventDefault(t),this.toggleControls())},onclick:function(t){return this.options.emulateTouchEvents&&this.touchDelta&&(20<Math.abs(this.touchDelta.x)||20<Math.abs(this.touchDelta.y))?void delete this.touchDelta:this.handleClick(t)},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild.title,i=this.titleElement;i.length&&(this.titleElement.empty(),e&&i[0].appendChild(document.createTextNode(e)))},setTimeout:function(t,e,i){var n=this;return t&&window.setTimeout(function(){t.apply(n,e||[])},i||0)},imageFactory:function(t,e){var i,n,s,o=this,r=this.imagePrototype.cloneNode(!1),a=t,l=this.options.stretchImages,c=function(t){if(!i){if(t={type:t.type,target:n},!n.parentNode)return o.setTimeout(c,[t]);i=!0,h(r).off("load error",c),l&&"load"===t.type&&(n.style.background='url("'+a+'") center no-repeat',n.style.backgroundSize=l),e(t)}};return"string"!=typeof a&&(a=this.getItemProperty(t,this.options.urlProperty),s=this.getItemProperty(t,this.options.titleProperty)),!0===l&&(l="contain"),(l=this.support.backgroundSize&&this.support.backgroundSize[l]&&l)?n=this.elementPrototype.cloneNode(!1):(n=r).draggable=!1,s&&(n.title=s),h(r).on("load error",c),r.src=a,n},createElement:function(t,e){var i=t&&this.getItemProperty(t,this.options.typeProperty),n=i&&this[i.split("/")[0]+"Factory"]||this.imageFactory,s=t&&n.call(this,t,e);return s||(s=this.elementPrototype.cloneNode(!1),this.setTimeout(e,[{type:"error",target:s}])),h(s).addClass(this.options.slideContentClass),s},loadElement:function(t){this.elements[t]||(this.slides[t].firstChild?this.elements[t]=h(this.slides[t]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[t]=1,h(this.slides[t]).addClass(this.options.slideLoadingClass),this.slides[t].appendChild(this.createElement(this.list[t],this.proxyListener))))},loadElements:function(t){var e,i=Math.min(this.num,2*this.options.preloadRange+1),n=t;for(e=0;e<i;e+=1)n+=e*(e%2==0?-1:1),n=this.circle(n),this.loadElement(n)},unloadElements:function(t){var e,i,n;for(e in this.elements)this.elements.hasOwnProperty(e)&&((n=Math.abs(t-e))>this.options.preloadRange&&n+this.options.preloadRange<this.num&&((i=this.slides[e]).removeChild(i.firstChild),delete this.elements[e]))},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1);e.setAttribute("data-index",t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t];e.style.width=this.slideWidth+"px",this.support.transform&&(e.style.left=t*-this.slideWidth+"px",this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(t){var e,i;for(t||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),h(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,e=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",e&&this.resetSlides(),i=0;i<this.num;i+=1)e&&this.addSlide(i),this.positionSlide(i);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},toggleControls:function(){var t=this.options.controlsClass;this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute("data-index"),10)},getNestedProperty:function(r,t){return t.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(t,e,i,n,s){var o=s||e||i||n&&parseInt(n,10);t&&r&&(r=r[o])}),r},getDataProperty:function(t,e){if(t.getAttribute){var i=t.getAttribute("data-"+e.replace(/([A-Z])/g,"-$1").toLowerCase());if("string"==typeof i){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(i))try{return h.parseJSON(i)}catch(t){}return i}}},getItemProperty:function(t,e){var i=t[e];return void 0===i&&(void 0===(i=this.getDataProperty(t,e))&&(i=this.getNestedProperty(t,e))),i},initStartIndex:function(){var t,e=this.options.index,i=this.options.urlProperty;if(e&&"number"!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],i)===this.getItemProperty(e,i)){e=t;break}this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){var i=this,t=this.slidesContainer,e=function(t){var e=i.support.transition&&i.support.transition.end===t.type?"transitionend":t.type;i["on"+e](t)};h(window).on("resize",e),h(document.body).on("keydown",e),this.container.on("click",e),this.support.touch?t.on("touchstart touchmove touchend touchcancel",e):this.options.emulateTouchEvents&&this.support.transition&&t.on("mousedown mousemove mouseup mouseout",e),this.support.transition&&t.on(this.support.transition.end,e),this.proxyListener=e},destroyEventListeners:function(){var t=this.slidesContainer,e=this.proxyListener;h(window).off("resize",e),h(document.body).off("keydown",e),this.container.off("click",e),this.support.touch?t.off("touchstart touchmove touchend touchcancel",e):this.options.emulateTouchEvents&&this.support.transition&&t.off("mousedown mousemove mouseup mouseout",e),this.support.transition&&t.off(this.support.transition.end,e)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var e=this,i=function(t){t.target===e.container[0]&&(e.container.off(e.support.transition.end,i),e.handleOpen())};return this.container=h(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,i):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(t){this.options=h.extend({},this.options),(t&&t.carousel||this.options.carousel&&(!t||!1!==t.carousel))&&h.extend(this.options,this.carouselOptions),h.extend(this.options,t),this.num<3&&(this.options.continuous=!!this.options.continuous&&null),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),i;var n,s,t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{fullScreen:!1});var i=e.prototype.initialize,n=e.prototype.close;return t.extend(e.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){i.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),n.call(this)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(r,t){"use strict";r.extend(t.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0});var e=t.prototype.initSlides,i=t.prototype.addSlide,n=t.prototype.resetSlides,s=t.prototype.handleClick,o=t.prototype.handleSlide,a=t.prototype.handleClose;return r.extend(t.prototype,{createIndicator:function(t){var e,i,n=this.indicatorPrototype.cloneNode(!1),s=this.getItemProperty(t,this.options.titleProperty),o=this.options.thumbnailProperty;return this.options.thumbnailIndicators&&((i=t.getElementsByTagName&&r(t).find("img")[0])?e=i.src:o&&(e=this.getItemProperty(t,o)),e&&(n.style.backgroundImage='url("'+e+'")')),s&&(n.title=s),n},addIndicator:function(t){if(this.indicatorContainer.length){var e=this.createIndicator(this.list[t]);e.setAttribute("data-index",t),this.indicatorContainer[0].appendChild(e),this.indicators.push(e)}},setActiveIndicator:function(t){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=r(this.indicators[t]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(t){t||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children)),e.call(this,t)},addSlide:function(t){i.call(this,t),this.addIndicator(t)},resetSlides:function(){n.call(this),this.indicatorContainer.empty(),this.indicators=[]},handleClick:function(t){var e=t.target||t.srcElement,i=e.parentNode;if(i===this.indicatorContainer[0])this.preventDefault(t),this.slide(this.getNodeIndex(e));else{if(i.parentNode!==this.indicatorContainer[0])return s.call(this,t);this.preventDefault(t),this.slide(this.getNodeIndex(i))}},handleSlide:function(t){o.call(this,t),this.setActiveIndicator(t)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),a.call(this)}}),t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(_,t){"use strict";_.extend(t.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});var e=t.prototype.handleSlide;return _.extend(t.prototype,{handleSlide:function(t){e.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(t,e,i){var n,s,o,r,a,l=this,c=this.options,h=this.elementPrototype.cloneNode(!1),u=_(h),d=[{type:"error",target:h}],p=i||document.createElement("video"),f=this.getItemProperty(t,c.urlProperty),m=this.getItemProperty(t,c.typeProperty),g=this.getItemProperty(t,c.titleProperty),v=this.getItemProperty(t,c.videoPosterProperty),y=this.getItemProperty(t,c.videoSourcesProperty);if(u.addClass(c.videoContentClass),g&&(h.title=g),p.canPlayType)if(f&&m&&p.canPlayType(m))p.src=f;else for(;y&&y.length;)if(s=y.shift(),f=this.getItemProperty(s,c.urlProperty),m=this.getItemProperty(s,c.typeProperty),f&&m&&p.canPlayType(m)){p.src=f;break}return v&&(p.poster=v,n=this.imagePrototype.cloneNode(!1),_(n).addClass(c.toggleClass),n.src=v,n.draggable=!1,h.appendChild(n)),(o=document.createElement("a")).setAttribute("target","_blank"),i||o.setAttribute("download",g),o.href=f,p.src&&(p.controls=!0,(i||_(p)).on("error",function(){l.setTimeout(e,d)}).on("pause",function(){r=!1,u.removeClass(l.options.videoLoadingClass).removeClass(l.options.videoPlayingClass),a&&l.container.addClass(l.options.controlsClass),delete l.playingVideo,l.interval&&l.play()}).on("playing",function(){r=!1,u.removeClass(l.options.videoLoadingClass).addClass(l.options.videoPlayingClass),l.container.hasClass(l.options.controlsClass)?(a=!0,l.container.removeClass(l.options.controlsClass)):a=!1}).on("play",function(){window.clearTimeout(l.timeout),r=!0,u.addClass(l.options.videoLoadingClass),l.playingVideo=p}),_(o).on("click",function(t){l.preventDefault(t),r?p.pause():p.play()}),h.appendChild(i&&i.element||p)),h.appendChild(o),this.setTimeout(e,[{type:"load",target:h}]),h}}),t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(a,t){"use strict";if(!window.postMessage)return t;a.extend(t.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0});var s=t.prototype.textFactory||t.prototype.imageFactory,o=function(t,e,i,n){this.url=t,this.videoId=e,this.playerId=i,this.clickToPlay=n,this.element=document.createElement("div"),this.listeners={}},r=0;return a.extend(o.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){for(var t,e,i=this,n="//"+("https"===location.protocol?"secure-":"")+"a.vimeocdn.com/js/froogaloop2.min.js",s=document.getElementsByTagName("script"),o=s.length,r=function(){!e&&i.playOnReady&&i.play(),e=!0};o;)if(s[o-=1].src===n){t=s[o];break}t||((t=document.createElement("script")).src=n),a(t).on("load",r),s[0].parentNode.insertBefore(t,s[0]),/loaded|complete/.test(t.readyState)&&r()},onReady:function(){var t=this;this.ready=!0,this.player.addEvent("play",function(){t.hasPlayed=!0,t.onPlaying()}),this.player.addEvent("pause",function(){t.onPause()}),this.player.addEvent("finish",function(){t.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var t=document.createElement("iframe");t.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),t.id=this.playerId,this.element.parentNode.replaceChild(t,this.element),this.element=t},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){t.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),a.extend(t.prototype,{VimeoPlayer:o,textFactory:function(t,e){var i=this.options,n=this.getItemProperty(t,i.vimeoVideoIdProperty);return n?(void 0===this.getItemProperty(t,i.urlProperty)&&(t[i.urlProperty]="//vimeo.com/"+n),r+=1,this.videoFactory(t,e,new o(i.vimeoPlayerUrl,n,i.vimeoPlayerIdPrefix+r,i.vimeoClickToPlay))):s.call(this,t,e)}}),t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";if(!window.postMessage)return e;t.extend(e.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});var s=e.prototype.textFactory||e.prototype.imageFactory,o=function(t,e,i){this.videoId=t,this.playerVars=e,this.clickToPlay=i,this.element=document.createElement("div"),this.listeners={}};return t.extend(o.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var t,e=this,i=window.onYouTubeIframeAPIReady,n="//www.youtube.com/iframe_api",s=document.getElementsByTagName("script"),o=s.length;for(window.onYouTubeIframeAPIReady=function(){i&&i.apply(this),e.playOnReady&&e.play()};o;)if(s[o-=1].src===n)return;(t=document.createElement("script")).src=n,s[0].parentNode.insertBefore(t,s[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){e.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var e=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){e.onReady()},onStateChange:function(t){e.onStateChange(t)},onError:function(t){e.onError(t)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{YouTubePlayer:o,textFactory:function(t,e){var i=this.options,n=this.getItemProperty(t,i.youTubeVideoIdProperty);return n?(void 0===this.getItemProperty(t,i.urlProperty)&&(t[i.urlProperty]="//www.youtube.com/watch?v="+n),void 0===this.getItemProperty(t,i.videoPosterProperty)&&(t[i.videoPosterProperty]="//img.youtube.com/vi/"+n+"/0.jpg"),this.videoFactory(t,e,new o(n,i.youTubePlayerVars,i.youTubeClickToPlay))):s.call(this,t,e)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],t):t(window.jQuery,window.blueimp.Gallery)}(function(a,l){"use strict";a(document).on("click","[data-gallery]",function(t){var e=a(this).data("gallery"),i=a(e),n=i.length&&i||a(l.prototype.options.container),s={onopen:function(){n.data("gallery",this).trigger("open")},onopened:function(){n.trigger("opened")},onslide:function(){n.trigger("slide",arguments)},onslideend:function(){n.trigger("slideend",arguments)},onslidecomplete:function(){n.trigger("slidecomplete",arguments)},onclose:function(){n.trigger("close")},onclosed:function(){n.trigger("closed").removeData("gallery")}},o=a.extend(n.data(),{container:n[0],index:this,event:t},s),r=a('[data-gallery="'+e+'"]');return o.filter&&(r=r.filter(o.filter)),new l(r,o)})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],t):t(window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{useBootstrapModal:!0});var i=e.prototype.close,n=e.prototype.imageFactory,s=e.prototype.videoFactory,o=e.prototype.textFactory;t.extend(e.prototype,{modalFactory:function(t,e,i,n){if(!this.options.useBootstrapModal||i)return n.call(this,t,e,i);var s=this,o=this.container.children(".modal").clone().show().on("click",function(t){t.target!==o[0]&&t.target!==o.children()[0]||(t.preventDefault(),t.stopPropagation(),s.close())}),r=n.call(this,t,function(t){e({type:t.type,target:o[0]}),o.addClass("in")},i);return o.find(".modal-title").text(r.title||String.fromCharCode(160)),o.find(".modal-body").append(r),o[0]},imageFactory:function(t,e,i){return this.modalFactory(t,e,i,n)},videoFactory:function(t,e,i){return this.modalFactory(t,e,i,s)},textFactory:function(t,e,i){return this.modalFactory(t,e,i,o)},close:function(){this.container.find(".modal").removeClass("in"),i.call(this)}})}),Number.prototype.formatMoney=function(t,e,i){var n=this,s=(t=isNaN(t=Math.abs(t))?2:t,e=null==e?".":e,i=null==i?",":i,n<0?"-":""),o=String(parseInt(n=Math.abs(Number(n)||0).toFixed(t))),r=3<(r=o.length)?r%3:0;return s+(r?o.substr(0,r)+i:"")+o.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+i)+(t?e+Math.abs(n-o).toFixed(t).slice(2):"")},Number.prototype.format=function(t,e,i,n){var s="\\d(?=(\\d{"+(e||3)+"})+"+(0<t?"\\D":"$")+")",o=this.toFixed(Math.max(0,~~t));return(n?o.replace(".",n):o).replace(new RegExp(s,"g"),"$&"+(i||","))},jQuery.fn.forceNumeric=function(){return this.each(function(){$(this).keydown(function(t){var e=t.which||t.keyCode;return!t.shiftKey&&!t.altKey&&!t.ctrlKey&&48<=e&&e<=57||96<=e&&e<=105||190==e||188==e||109==e||110==e||8==e||9==e||13==e||35==e||36==e||37==e||39==e||46==e||45==e})})};var querySearchRequest,rmDot=function(t){return t.replace(".","")},pd=function(t){t.preventDefault()},setWH=function(){pageWidth=$(window).width(),pageHeight=$(window).height()},checkAndAddClass=function(t,e){$("."+t).hasClass(e)||$("."+t).addClass(e)},checkAndRemoveClass=function(t,e){$("."+t).hasClass(e)&&$("."+t).removeClass(e)},scrollTopClassSwitcher=function(t,e,i){$(document).scrollTop()>t?checkAndAddClass(e,i):checkAndRemoveClass(e,i)},scrollTopCheckAndAddClass=function(t,e,i){$(document).scrollTop()<t&&checkAndAddClass(e,i)},scrollTopCheckAndRemoveClass=function(t,e,i){$(document).scrollTop()<t&&checkAndRemoveClass(e,i)},checkAndHideNavbarIfWidthIsLargerThanAmount=function(t,e,i){t<pageWidth&&$("."+e).hasClass(i)&&$(".navbar-collapse").collapse("hide")},SHAREONE={Property:{cls:".sharelinks",wrapperCls:".c-sharelinks",btnCls:".sharepop",firedCls:".fired"},Method:{setEvents:function(){var r=this.Parent,a=r.Property;$(window).resize(function(){r.Method.removeSharelinks()}),$("body").on("click",a.btnCls,function(t){if($(this).hasClass(rmDot(a.firedCls)))r.Method.removeSharelinks();else{$(a.wrapperCls).remove(),$(a.btnCls+a.firedCls).not(this).removeClass(rmDot(a.firedCls)),$(this).blur().addClass(rmDot(a.firedCls));var e=$(this).offset(),i=$('<div class="'+rmDot(a.wrapperCls)+'"><div class="'+rmDot(a.cls)+'"></div></div>'),n=$(this).closest("article"),s=n.data("mediasrc"),o=n.find("> a").first().attr("href");jsSocials.setDefaults("pinterest",{media:s}),$("body").append(i),i.offset({top:e.top+4,left:e.left+10}),i.find(a.cls).addClass(rmDot(a.firedCls)),o=o?baseURL+o:location.href,$(a.cls+a.firedCls).jsSocials({shares:["facebook","googleplus","twitter","linkedin"],url:o,showLabel:!1,showCount:!1,shareIn:"popup"}),$("html").one("click",function(){r.Method.removeSharelinks()})}t.stopPropagation(),pd(t)})},removeSharelinks:function(){var t=this.Parent.Property;$(t.wrapperCls+" "+t.firedCls).removeClass(rmDot(t.firedCls)).animate({opacity:0},300,function(){$(t.wrapperCls).remove()}),$(t.btnCls+t.firedCls).blur().removeClass(rmDot(t.firedCls))}},Init:function(){return(this.Method.Parent=this).Method.setEvents(),delete this.Init,this}},CONTACT={Property:{cls:".contact-form",loaderCls:".loader",url:MOD_CONTACT__Property__url},Method:{setEvents:function(){var e=this.Parent.Property;$(e.cls).html('<div class="'+rmDot(e.loaderCls)+'" style="display: block; opacity: 1; min-height: 150px;"></div>');var t=$(e.cls).data("ajaxurl"),i=t||e.url;$.ajax({url:i}).done(function(t){$(e.cls).animate({opacity:0},200,function(){$(this).html(t.html).animate({opacity:1},200)})})}},Init:function(){return $(this.Property.cls).length&&(this.Method.Parent=this).Method.setEvents(),delete this.Init,this}},CONTACTMAP={Property:{cls:".map--contact",loaderCls:".loader",urlAddScript:"https://maps.googleapis.com/maps/api/js?key=[[GMAPSAPIKEY]]",markerSrc:"/assets/images/marker.png",markerTitle:"",lat:0,lng:0,mlat:0,mlng:0},Method:{setEvents:function(){var t=this.Parent.Property;t.lat=$(t.cls).data("lat"),t.lng=$(t.cls).data("lng"),t.mlat=$(t.cls).data("mlat"),t.mlng=$(t.cls).data("mlng"),t.markerTitle=$(t.cls).data("mtitle");var e=$(t.cls).data("gmapskey"),i=t.urlAddScript.replace("[[GMAPSAPIKEY]]",e);$.getScript(i,function(){google.maps.event.addDomListener(window,"load",CONTACTMAP.Method.initGM)})},initGM:function(){var t=CONTACTMAP.Property,e={zoom:13,scrollwheel:!1,center:new google.maps.LatLng(t.lat,t.lng),styles:[{featureType:"landscape",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"on"}]},{stylers:[{hue:"#00aaff"},{saturation:-100},{gamma:1.15},{lightness:2}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{visibility:"on"},{lightness:24}]},{featureType:"road",elementType:"geometry",stylers:[{lightness:17}]}]},i=document.getElementById("map"),n=new google.maps.Map(i,e),s=t.markerSrc,o={position:new google.maps.LatLng(t.mlat,t.mlng),map:n,title:t.markerTitle,icon:s};new google.maps.Marker(o)}},Init:function(){return $(this.Property.cls).length&&(this.Method.Parent=this).Method.setEvents(),delete this.Init,this}},SEARCH={Property:{cls:".btn-loope",modalId:"#searchlarge_modal",initialContent:""},Method:{triggerClick:function(t){$(SEARCH.Property.modalId).modal({show:!0,backdrop:"static"})},setEvents:function(){var e=this.Parent.Property;e.initialContent=$(e.modalId+" .modal-body").html(),$(e.cls).is("input")?$(e.cls).keypress(function(t){return!1}).focus(function(t){$(e.modalId).modal({show:!0,backdrop:"static"}),pd(t)}):$("body").on("click",e.cls,function(t){SEARCH.Method.triggerClick($(this)),pd(t)}),$(e.modalId).on("show.bs.modal",function(){$(e.modalId+" .modal-body").html(SEARCH.Property.initialContent),$.ajax({url:sHref,data:{quick:1},dataType:"json"}).done(function(t){$(e.modalId+" .modal-body").animate({opacity:0},200,function(){$(this).html(t.html).animate({opacity:1},200,function(){$("#search_p").focus(),$(e.modalId).data("phrase")&&($("#search_p").val($(e.modalId).data("phrase")),$(".btn-search",$(e.modalId)).click())})})})}).on("hidden.bs.modal",function(){$(e.modalId).data("phrase",null)})}},Init:function(){return $(this.Property.cls).length&&(this.Method.Parent=this).Method.setEvents(),delete this.Init,this}};!function(l,i,s,a){function c(t,e){this.settings=null,this.options=l.extend({},c.Defaults,e),this.$element=l(t),this._handlers={},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._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(t,e){this._handlers[e]=l.proxy(this[e],this)},this)),l.each(c.Plugins,l.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(c.Workers,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}c.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,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,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},c.Width={Default:"default",Inner:"inner",Outer:"outer"},c.Type={Event:"event",State:"state"},c.Plugins={},c.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?e:"","margin-right":n?"":e};!i&&this.$stage.children().css(s),t.css=s}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,o[n]=s?e*i:this._items[n].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,n=Math.max(2*i.items,4),s=2*Math.ceil(e.length/2),o=i.loop&&e.length?i.rewind?n:Math.max(n,s):0,r="",a="";for(o/=2;0<o;)t.push(this.normalize(t.length/2,!0)),r+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a,o-=1;this._clones=t,l(r).addClass("cloned").appendTo(this.$stage),l(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,s=0,o=[];++i<e;)n=o[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,o.push(n+s*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*s,l=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*s,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return l(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},c.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,n=null;t?(l.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),"function"==typeof(n=l.extend({},this.options,t[i])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):n=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=i,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},c.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},c.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},c.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),n={};t<e;)(this._invalidated.all||0<l.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(n),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},c.prototype.width=function(t){switch(t=t||c.Width.Default){case c.Width.Inner:case c.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},c.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},c.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},c.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},c.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(i,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},c.prototype.onDragStart=function(t){var e=null;3!==t.which&&(l.support.transform?e={x:(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),e={x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(l.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),l(s).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(s).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));l(s).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},c.prototype.onDragMove=function(t){var e=null,i=null,n=null,s=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,s);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*s.x/5:0,o.x=Math.max(Math.min(o.x,e+n),i+n)),this._drag.stage.current=o,this.animate(o.x))},c.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,n=0<e.x^this.settings.rtl?"left":"right";l(s).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==e.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,(3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},c.prototype.closest=function(i,n){var s=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||l.each(r,l.proxy(function(t,e){return"left"===n&&e-30<i&&i<e+30?s=t:"right"===n&&e-o-30<i&&i<e-o+30?s=t+1:this.op(i,"<",e)&&this.op(i,">",r[t+1]!==a?r[t+1]:e-o)&&(s="left"===n?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?s=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(s=i=this.maximum())),s},c.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},c.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},c.prototype.current=function(t){if(t===a)return this._current;if(0===this._items.length)return a;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},c.prototype.invalidate=function(t){return"string"===l.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),l.map(this._invalidated,function(t,e){return e})},c.prototype.reset=function(t){(t=this.normalize(t))!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},c.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=a:(t<0||i+n<=t)&&(t=((t-n/2)%i+i)%i+n/2),t},c.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},c.prototype.maximum=function(t){var e,i,n,s=this.settings,o=this._coordinates.length;if(s.loop)o=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){if(e=this._items.length)for(i=this._items[--e].width(),n=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>n););o=e+1}else o=s.center?this._items.length-1:this._items.length-s.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},c.prototype.minimum=function(t){return t?0:this._clones.length/2},c.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},c.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},c.prototype.clones=function(i){var e=this._clones.length/2,n=e+this._items.length,s=function(t){return t%2==0?n+t/2:e-(t+1)/2};return i===a?l.map(this._clones,function(t,e){return s(e)}):l.map(this._clones,function(t,e){return t===i?s(e):null})},c.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},c.prototype.coordinates=function(t){var e,i=1,n=t-1;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,n=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[n]||0))/2*i):e=this._coordinates[n]||0,e=Math.ceil(e))},c.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},c.prototype.to=function(t,e){var i=this.current(),n=null,s=t-this.relative(i),o=(0<s)-(s<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>r/2&&(s+=-1*o*r),(n=(((t=i+s)-a)%r+r)%r+a)!==t&&n-s<=l&&0<n-s&&(i=n-s,t=n,this.reset(i))):this.settings.rewind?t=(t%(l+=1)+l)%l:t=Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},c.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},c.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},c.prototype.onTransitionEnd=function(t){if(t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},c.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==i?t=l(this.options.responsiveBaseElement).width():i.innerWidth?t=i.innerWidth:s.documentElement&&s.documentElement.clientWidth&&(t=s.documentElement.clientWidth),t},c.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:l(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},c.prototype.add=function(t,e){var i=this.relative(this._current);e=e===a?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:l(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},c.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},c.prototype.preloadAutoWidthImages=function(t){t.each(l.proxy(function(t,e){this.enter("pre-loading"),e=l(e),l(new Image).one("load",l.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},c.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(s).off(".owl.core"),!1!==this.settings.responsive&&(i.clearTimeout(this.resizeTimer),this.off(i,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},c.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?i<t:t<i;case">":return n?t<i:i<t;case">=":return n?t<=i:i<=t;case"<=":return n?i<=t:t<=i}},c.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},c.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},c.prototype.trigger=function(t,e,i,n,s){var o={item:{count:this._items.length,index:this.current()}},r=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},o,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:c.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},c.prototype.enter=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},c.prototype.leave=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]--},this))},c.prototype.register=function(i){if(i.type===c.Type.Event){if(l.event.special[i.name]||(l.event.special[i.name]={}),!l.event.special[i.name].owl){var e=l.event.special[i.name]._default;l.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},l.event.special[i.name].owl=!0}}else i.type===c.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=l.grep(this._states.tags[i.name],l.proxy(function(t,e){return l.inArray(t,this._states.tags[i.name])===e},this)))},c.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},c.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},c.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||i.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},c.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},c.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},l.fn.owlCarousel=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=l(this),i=t.data("owl.carousel");i||(i=new c(this,"object"==typeof e&&e),t.data("owl.carousel",i),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){i.register({type:c.Type.Event,name:e}),i.$element.on(e+".owl.carousel.core",l.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,n)})},l.fn.owlCarousel.Constructor=c}(window.Zepto||window.jQuery,window,document),function(e,i,t,n){var s=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers)};s.Defaults={autoRefresh:!0,autoRefreshInterval:500},s.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=i.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},s.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},s.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=s}(window.Zepto||window.jQuery,window,document),function(a,o,t,e){var i=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,n=e.center&&-1*i||0,s=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+n,o=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);for(0<e.lazyLoadEager&&(i+=e.lazyLoadEager,e.loop&&(s-=e.lazyLoadEager,i++));n++<i;)this.load(o/2+this._core.relative(s)),o&&a.each(this._core.clones(this._core.relative(s)),r),s++}},this)},this._core.options=a.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||-1<a.inArray(e.get(0),this._loaded)||(i.each(a.proxy(function(t,e){var i,n=a(e),s=1<o.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src")||n.attr("data-srcset");this._core.trigger("load",{element:n,url:s},"lazy"),n.is("img")?n.one("load.owl.lazy",a.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:s},"lazy")},this)).attr("src",s):n.is("source")?n.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:n,url:s},"lazy")},this)).attr("srcset",s):((i=new Image).onload=a.proxy(function(){n.css({"background-image":'url("'+s+'")',opacity:"1"}),this._core.trigger("loaded",{element:n,url:s},"lazy")},this),i.src=s)},this)),this._loaded.push(e.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(r,i,t,e){var n=function(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":r.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=r.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;r(i).on("load",function(){e._core.settings.autoHeight&&e.update()}),r(i).resize(function(){e._core.settings.autoHeight&&(null!=e._intervalId&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,i=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(t,e),s=[],o=0;r.each(n,function(t,e){s.push(r(e).height())}),(o=Math.max.apply(null,s))<=1&&i&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(h,t,e,i){var n=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":h.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":h.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":h.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":h.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":h.proxy(function(t){if(t.namespace){var e=h(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,h(t.content)))}},this)},this._core.options=h.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",h.proxy(function(t){this.play(t)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),s=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<n[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<n[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:s,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,t){var i,n,s=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",o=e.find("img"),r="src",a="",l=this._core.settings,c=function(t){'<div class="owl-video-play-icon"></div>',i=l.lazyLoad?h("<div/>",{class:"owl-video-tn "+a,srcType:t}):h("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(i),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(h("<div/>",{class:"owl-video-wrapper",style:s})),this._core.settings.lazyLoad&&(r="data-src",a="owl-lazy"),o.length)return c(o.attr(r)),o.remove(),!1;"youtube"===t.type?(n="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",c(n)):"vimeo"===t.type?h.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===t.type&&h.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.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,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(t){var e,i=h(t.target).closest("."+this._core.settings.itemClass),n=this._videos[i.attr("data-video")],s=n.width||"100%",o=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(e=h('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",o),e.attr("width",s),"youtube"===n.type?e.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?e.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&e.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),h(e).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&h(t).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},h.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(r,t,e,i){var n=function(t){this.core=t,this.core.options=r.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&r.support.animation&&r.support.transition){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),s&&n.one(r.support.animation.end,e).addClass("animated owl-animated-in").addClass(s))}},n.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(n,s,e,t){var i=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":n.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":n.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},i.Defaults,this._core.options)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=s.setTimeout(n.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):s.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=s.setTimeout(n.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,s.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,s.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o,t,e,i){"use strict";var n=function(t){this._core=t,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":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('<button role="button">').addClass(i.dotClass).append(o("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?o(i.dotsContainer):o("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",o.proxy(function(t){var e=o(t.target).parent().is(this._controls.$absolute)?o(t.target).index():o(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=o.proxy(this[t],this)},n.prototype.destroy=function(){var t,e,i,n,s;for(t in s=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&s.navContainer?this._controls[e].html(""):this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},n.prototype.update=function(){var t,e,i=this._core.clones().length/2,n=i+this._core.items().length,s=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0;t<n;t++){if(r<=e||0===e){if(this._pages.push({start:Math.min(s,t-i),end:t-i+r-1}),Math.min(s,t-i)===s)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},n.prototype.draw=function(){var t,e=this._core.settings,i=this._core.items().length<=e.items,n=this._core.relative(this._core.current()),s=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||i),e.nav&&(this._controls.$previous.toggleClass("disabled",!s&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!s&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||i),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(o.inArray(this.current(),this._pages)).addClass("active"))},n.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:o.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},n.prototype.current=function(){var i=this._core.relative(this._core.current());return o.grep(this._pages,o.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},n.prototype.getPosition=function(t){var e,i,n=this._core.settings;return"page"==n.slideBy?(e=o.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=n.slideBy:e-=n.slideBy),e},n.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},n.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},n.prototype.to=function(t,e,i){var n;!i&&this._pages.length?(n=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,e)):o.proxy(this._overrides.to,this._core)(t,e)},o.fn.owlCarousel.Constructor.Plugins.Navigation=n}(window.Zepto||window.jQuery,window,document),function(n,s,t,e){"use strict";var i=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":n.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&n(s).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){if(t.namespace){var e=n(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!e)return;this._hashes[e]=t.content}},this),"changed.owl.carousel":n.proxy(function(t){if(t.namespace&&"position"===t.property.name){var i=this._core.items(this._core.relative(this._core.current())),e=n.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!e||s.location.hash.slice(1)===e)return;s.location.hash=e}},this)},this._core.options=n.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),n(s).on("hashchange.owl.navigation",n.proxy(function(t){var e=s.location.hash.substring(1),i=this._core.$stage.children(),n=this._hashes[e]&&i.index(this._hashes[e]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var t,e;for(t in n(s).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(s,t,e,o){function i(t,i){var n=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return s.each((t+" "+a.join(e+" ")+e).split(" "),function(t,e){if(r[e]!==o)return n=!i||e,!1}),n}function n(t){return i(t,!0)}var r=s("<support>").get(0).style,a="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},c=function(){return!!i("transform")},h=function(){return!!i("perspective")},u=function(){return!!i("animation")};(function(){return!!i("transition")})()&&(s.support.transition=new String(n("transition")),s.support.transition.end=l.transition.end[s.support.transition]),u()&&(s.support.animation=new String(n("animation")),s.support.animation.end=l.animation.end[s.support.animation]),c()&&(s.support.transform=new String(n("transform")),s.support.transform3d=h())}(window.Zepto||window.jQuery,window,document);var pageWidth=$(window).width(),pageHeight=$(window).height(),modulePage=1,posStep=3,wURI=new URI(location.href),BN_VAT=.23,BN_h0=1+BN_VAT,MAIN={Property:{loaderCls:".sloader",loaderBottomCls:".loader-on-bottom",styleNotify:"blowblue",blueimpId:"#blueimp-gallery",iOS:!1},Method:{runPL:function(t,e,i){var n;1==e?(n=$(this.Parent.Property.loaderCls,t),i&&n.addClass(rmDot(this.Parent.Property.loaderBottomCls)),n.show().animate({opacity:.8},100)):$(this.Parent.Property.loaderCls,t).animate({opacity:0},100,function(){$(this).hide().removeClass(rmDot(MAIN.Property.loaderBottomCls))})},isIOS:function(){for(var t=["iPad","iPhone","iPod"],e=0;e<t.length;e++)if(navigator.platform===t[e]){this.Parent.Property.iOS=!0;break}return this.Parent.Property.iOS},urlPage:function(t){var e=t.attr("href").split("?"),i=t.attr("href").split("-");i[i.length-1]=t.data("page")+1+"/";var n=i.join("-");return e[1]&&(n=n+"?"+e[1]),n},hideToggle:function(t,e){return e?t.show():t.hide()},ajaxAbort:function(t){null!=t&&t.abort()},loadMoreDone:function(t,e,i,n){var s=$(n.cls+" "+n.itemsCls);i?s.append(t.html):s.html(t.html),MAIN.Method.hideToggle(s.parent().find(".c-btn-load_more"),!t.last),e.parent().removeClass("fired"),MAIN.Method.runPL(n.cls,0,1),"undefined"!=typeof IMAGES&&IMAGES.Method.loadExternalImages()},isElementInView:function(t,e){var i=$(window).scrollTop(),n=i+$(window).height(),s=$(t).offset().top,o=s+$(t).height();return!0===e?i<s&&o<n:s<=n&&i<=o},setDefaults:function(){$.ajaxSetup({type:"POST",dataType:"json",data:{is_ajax:1}}),$(document).on("show.bs.modal",".modal",function(){var t=1040+10*$(".modal:visible").length;$(this).css("z-index",t),setTimeout(function(){$(".modal-backdrop").not(".modal-stack").css("z-index",t-1).addClass("modal-stack")},0)}),$(document).on("hidden.bs.modal",".modal",function(){$(".modal:visible").length&&$(document.body).addClass("modal-open")})},setCarousel:function(){$(".carousel").carousel(),$(document).on("swiperight",".carousel-inner",function(t){$(this).parent().carousel("prev")}),$(document).on("swipeleft",".carousel-inner",function(t){$(this).parent().carousel("next")}),$(document).on("click",".carousel-control.left",function(t){$(this).parent().parent().carousel("prev"),pd(t)}),$(document).on("click",".carousel-control.right",function(t){$(this).parent().parent().carousel("next"),pd(t)})},setBlueimpGallery:function(){$(this.Parent.Property.blueimpId).data("useBootstrapModal",!1).addClass("blueimp-gallery-controls")},setCookieMessage:function(){c_c&&$.cookieCuttr({cookieAnalytics:!1,cookieMessage:cookieMessage,cookieAcceptButtonText:'<i class="glyphicon glyphicon-remove-circle"></i>',cookieNotificationLocationBottom:!0})},decodeMailAddresses:function(){$(".theemail").each(function(t,e){var i=$(this).text().replace(/ na /,"@").replace(/ kropka /g,"."),n=$(this).data("cls"),s=n?' class="'+n+'"':"";$(this).replaceWith('<a href="mailto:'+i+'" title="Wyślij wiadomość!"'+s+' target="_blank">'+i+"</a>"),$(this).fadeIn("slow")})},autohide:function(){$(".autohide").length&&setTimeout(function(){$(".autohide").slideUp(400,function(){$(this).parent().slideUp(400,function(){$(this).remove()}),$(this).remove()})},2e3)},navbarFixedJuice:function(){$(".navbar-collapse").hasClass("show")||scrollTopClassSwitcher(50,"fixed-top","showed"),scrollTopClassSwitcher(50,"fixed-top","showed_smaller")},setNavbarFixed:function(){MAIN.Method.navbarFixedJuice(),$(window).scroll(function(){MAIN.Method.navbarFixedJuice()})},fadeInOut:function(t,e){t.animate({opacity:0},300,function(){e(),$(this).animate({opacity:1},300)})},confirmModal:function(t,e,i){var n=$('<div class="modal fade" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button class="close" data-dismiss="modal"><i class="deco slglyphicon slglyphicon-close"></i></button><h4 class="modal-title" style="font-size: 15px; letter-spacing: 3px;">'+t+'</h4></div><div class="modal-body text-center" style="padding-top: 25px;"><p>'+e+'</p></div><div class="modal-footer"><a href="#" class="btn btn-link btn-link-lg" data-dismiss="modal">Nie</a><a href="#" class="btn btn-link-lg btn-ok">Tak</a></div></div></div></div>');n.find(".btn-ok").click(function(t){i(),n.modal("hide")}),n.modal("show")},setTooltip:function(){$('[data-toggle="tooltip"]').tooltip()},setPrinting:function(){$(".btn-print").click(function(t){window.print(),pd(t)})},setScrollTo:function(){$(".scrollto").click(function(t){var e=$(this);$("html,body").animate({scrollTop:$(e.attr("href")).offset().top-35},500)})},setSearch:function(){$(".c-search").hover(function(t){$("#search").removeClass("hidden").show()},function(t){$("#search").hide()})},setSubmenu:function(){$(".btn-toggle_submenu").click(function(t){$(this).hasClass("active")?($(this).removeClass("active"),$("aside > ul").removeClass("opened")):($(this).addClass("active"),$("aside > ul").addClass("opened")),$(this).blur(),pd(t)})},setMainTogglerClass:function(){$(".navbar-collapse").on("show.bs.collapse",function(){scrollTopCheckAndAddClass(50,"fixed-top","showed"),checkAndAddClass("fixed-top","toggled")}),$(".navbar-collapse").on("hide.bs.collapse",function(){scrollTopCheckAndRemoveClass(50,"fixed-top","showed"),checkAndRemoveClass("fixed-top","toggled")}),$("#main-menu .nav-header, .btn-homepage").click(function(){$(".navbar-collapse").collapse("hide")})},checkMenuScroller:function(){!$(".c-navbar-main").hasClass("smaller-static")&&$($(".navbar-toggler").hasClass("collapsed"))&&scrollTopClassSwitcher(50,"c-navbar-main","smaller")},setScrollEvents:function(){MAIN.Method.checkMenuScroller(),$(window).scroll(function(){MAIN.Method.checkMenuScroller()})},setScrollTo:function(){$(".scrollto").click(function(t){var e=$(this);$(e.attr("href")).length&&$("html,body").animate({scrollTop:$(e.attr("href")).offset().top-40},500),e.closest(".bigmenu").length&&$(".btn-toggle_bigmenu").trigger("click"),$("body").hasClass("ssite")&&(location.href="/"+e.attr("href")),"#start"==e.attr("href")&&pd(t)})},setOWLCarousel:function(){$(".ocarousel.carousel-metamorphosis").owlCarousel({items:1,nav:!1,dots:!0,loop:!0,navText:["<span></span>","<span></span>"]}),$(".ocarousel.carousel-follow").owlCarousel({items:6,nav:!1,dots:!0,responsive:{0:{items:1,nav:!1},500:{items:2,nav:!1},700:{items:3,nav:!1},900:{items:4,nav:!1},1200:{items:6,nav:!1}}})},setCommonActions:function(){var t=this.Parent;setWH(),$(window).resize(function(){setWH(),checkAndHideNavbarIfWidthIsLargerThanAmount(768,"fixed-top","toggled")}).trigger("scroll"),$(".btn-openlink").click(function(t){window.open($(this).data("href"),$(this).data("target")),t.preventDefault()}),t.Method.setScrollEvents(),t.Method.setScrollTo(),t.Method.setTooltip(),t.Method.setNavbarFixed(),t.Method.setMainTogglerClass(),t.Method.decodeMailAddresses(),t.Method.autohide(),t.Method.setPrinting(),t.Method.setScrollTo(),t.Method.setSearch(),t.Method.setOWLCarousel(),t.Method.setSubmenu()}},Init:function(){return(this.Method.Parent=this).Method.setDefaults(),this.Method.setCommonActions(),this.Method.setCarousel(),this.Method.setBlueimpGallery(),this.Method.setCookieMessage(),delete this.Init,this}};$(document).ready(function(){MAIN.Init(),CONTACT.Init(),SEARCH.Init()});