Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / www / html / sman1baleendahoppppppp / assets / js / | server ip : 172.67.156.115 your ip : 172.70.127.104 H O M E |
Filename | /var/www/html/sman1baleendahoppppppp/assets/js/frontend.min.js |
Size | 269.62 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 04-May-2025 17:23 |
Last modified | 04-May-2025 17:23 |
Last accessed | 07-Jul-2025 03:10 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(_,j){"use strict";function y(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function m(e){return null!=e&&e===e.window}var t=[],L=Object.getPrototypeOf,a=t.slice,P=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},F=t.push,U=t.indexOf,q={},R=q.toString,B=q.hasOwnProperty,W=B.toString,V=W.call(Object),g={},T=_.document,z={type:!0,src:!0,nonce:!0,noModule:!0};function Y(e,t,n){var i,o,s=(n=n||T).createElement("script");if(s.text=e,t)for(i in z)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,o);n.head.appendChild(s).parentNode.removeChild(s)}function p(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?q[R.call(e)]||"object":typeof e}var e="3.6.0",C=function(e,t){return new C.fn.init(e,t)};function Q(e){var t=!!e&&"length"in e&&e.length,n=p(e);return!y(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}C.fn=C.prototype={jquery:e,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=C.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return C.each(this,e)},map:function(n){return this.pushStack(C.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:F,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,n,i,o,s=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[r]||{},r++),"object"==typeof s||y(s)||(s={}),r===a&&(s=this,r--);r<a;r++)if(null!=(e=arguments[r]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(l&&n&&(C.isPlainObject(n)||(i=Array.isArray(n)))?(o=s[t],o=i&&!Array.isArray(o)?[]:i||C.isPlainObject(o)?o:{},i=!1,s[t]=C.extend(l,o,n)):void 0!==n&&(s[t]=n));return s},C.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==R.call(e))&&(!(e=L(e))||"function"==typeof(e=B.call(e,"constructor")&&e.constructor)&&W.call(e)===V)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){Y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(Q(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(Q(Object(e))?C.merge(t,"string"==typeof e?[e]:e):F.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:U.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,s=e.length,r=!n;o<s;o++)!t(e[o],o)!=r&&i.push(e[o]);return i},map:function(e,t,n){var i,o,s=0,r=[];if(Q(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&r.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&r.push(o);return P(r)},guid:1,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=t[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){q["[object "+t+"]"]=t.toLowerCase()});function i(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&C(e).is(n))break;i.push(e)}return i}function X(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var e=function(j){function d(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function L(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function P(){T()}var e,h,w,s,F,f,U,q,_,l,u,T,C,n,x,p,i,o,m,S="sizzle"+ +new Date,c=j.document,D=0,R=0,B=I(),W=I(),V=I(),g=I(),z=function(e,t){return e===t&&(u=!0),0},Y={}.hasOwnProperty,t=[],Q=t.pop,X=t.push,k=t.push,K=t.slice,y=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",a="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",G="\\["+r+"*("+a+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+r+"*\\]",J=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",ee=new RegExp(r+"+","g"),v=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),te=new RegExp("^"+r+"*,"+r+"*"),ne=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ie=new RegExp(r+"|>"),oe=new RegExp(J),se=new RegExp("^"+a+"$"),b={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,ae=/^(?:input|select|textarea|button)$/i,le=/^h\d$/i,E=/^[^{]+\{\s*\[native \w/,ue=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ce=/[+~]/,M=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),de=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,he=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(t=K.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(e){k={apply:t.length?function(e,t){X.apply(e,K.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function A(t,e,n,i){var o,s,r,a,l,u,c=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&(T(e),e=e||C,x)){if(11!==d&&(a=ue.exec(t)))if(o=a[1]){if(9===d){if(!(u=e.getElementById(o)))return n;if(u.id===o)return n.push(u),n}else if(c&&(u=c.getElementById(o))&&m(e,u)&&u.id===o)return n.push(u),n}else{if(a[2])return k.apply(n,e.getElementsByTagName(t)),n;if((o=a[3])&&h.getElementsByClassName&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(o)),n}if(h.qsa&&!g[t+" "]&&(!p||!p.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(u=t,c=e,1===d&&(ie.test(t)||ne.test(t))){for((c=ce.test(t)&&ge(e.parentNode)||e)===e&&h.scope||((r=e.getAttribute("id"))?r=r.replace(de,L):e.setAttribute("id",r=S)),s=(l=f(t)).length;s--;)l[s]=(r?"#"+r:":scope")+" "+H(l[s]);u=l.join(",")}try{return k.apply(n,c.querySelectorAll(u)),n}catch(e){g(t,!0)}finally{r===S&&e.removeAttribute("id")}}}return q(t.replace(v,"$1"),e,n,i)}function I(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function N(e){return e[S]=!0,e}function $(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function O(r){return N(function(s){return s=+s,N(function(e,t){for(var n,i=r([],e.length,s),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=A.support={},F=A.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},T=A.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=C&&9===e.nodeType&&e.documentElement&&(n=(C=e).documentElement,x=!F(C),c!=C&&(e=C.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",P,!1):e.attachEvent&&e.attachEvent("onunload",P)),h.scope=$(function(e){return n.appendChild(e).appendChild(C.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=$(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=$(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=E.test(C.getElementsByClassName),h.getById=$(function(e){return n.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(M,d);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&x)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(M,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n,i,o,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(o=t.getElementsByName(e),i=0;s=o[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,s=t.getElementsByTagName(e);if("*"!==e)return s;for(;n=s[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&x)return t.getElementsByClassName(e)},i=[],p=[],(h.qsa=E.test(C.querySelectorAll))&&($(function(e){var t;n.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+r+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+S+"-]").length||p.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll("\\\f"),p.push("[\\r\\n\\f]")}),$(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(h.matchesSelector=E.test(o=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&$(function(e){h.disconnectedMatch=o.call(e,"*"),o.call(e,"[s!='']:x"),i.push("!=",J)}),p=p.length&&new RegExp(p.join("|")),i=i.length&&new RegExp(i.join("|")),e=E.test(n.compareDocumentPosition),m=e||E.test(n.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=e?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==c&&m(c,e)?-1:t==C||t.ownerDocument==c&&m(c,t)?1:l?y(l,e)-y(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,r=[e],a=[t];if(!o||!s)return e==C?-1:t==C?1:o?-1:s?1:l?y(l,e)-y(l,t):0;if(o===s)return pe(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;r[i]===a[i];)i++;return i?pe(r[i],a[i]):r[i]==c?-1:a[i]==c?1:0}),C},A.matches=function(e,t){return A(e,null,null,t)},A.matchesSelector=function(e,t){if(T(e),h.matchesSelector&&x&&!g[t+" "]&&(!i||!i.test(t))&&(!p||!p.test(t)))try{var n=o.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){g(t,!0)}return 0<A(t,C,null,[e]).length},A.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),m(e,t)},A.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Y.call(w.attrHandle,t.toLowerCase())?n(e,t,!x):void 0;return void 0!==n?n:h.attributes||!x?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},A.escape=function(e){return(e+"").replace(de,L)},A.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},A.uniqueSort=function(e){var t,n=[],i=0,o=0;if(u=!h.detectDuplicates,l=!h.sortStable&&e.slice(0),e.sort(z),u){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return l=null,e},s=A.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=s(t);return n},(w=A.selectors={cacheLength:50,createPseudo:N,match:b,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(M,d),e[3]=(e[3]||e[4]||e[5]||"").replace(M,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||A.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&A.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return b.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&oe.test(n)&&(t=f(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(M,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=A.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(ee," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,m,g){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,o,s,r,a,l,u=v!=y?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(c){if(v){for(;u;){for(r=e;r=r[u];)if(b?r.nodeName.toLowerCase()===d:1===r.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(f=(a=(i=(o=(s=(r=c)[S]||(r[S]={}))[r.uniqueID]||(s[r.uniqueID]={}))[p]||[])[0]===D&&i[1])&&i[2],r=a&&c.childNodes[a];r=++a&&r&&r[u]||(f=a=0)||l.pop();)if(1===r.nodeType&&++f&&r===e){o[p]=[D,a,f];break}}else if(!1===(f=h?a=(i=(o=(s=(r=e)[S]||(r[S]={}))[r.uniqueID]||(s[r.uniqueID]={}))[p]||[])[0]===D&&i[1]:f))for(;(r=++a&&r&&r[u]||(f=a=0)||l.pop())&&((b?r.nodeName.toLowerCase()!==d:1!==r.nodeType)||!++f||(h&&((o=(s=r[S]||(r[S]={}))[r.uniqueID]||(s[r.uniqueID]={}))[p]=[D,f]),r!==e)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,s){var t,r=w.pseudos[e]||w.setFilters[e.toLowerCase()]||A.error("unsupported pseudo: "+e);return r[S]?r(s):1<r.length?(t=[e,e,"",s],w.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,t){for(var n,i=r(e,s),o=i.length;o--;)e[n=y(e,i[o])]=!(t[n]=i[o])}):function(e){return r(e,0,t)}):r}},pseudos:{not:N(function(e){var i=[],o=[],a=U(e.replace(v,"$1"));return a[S]?N(function(e,t,n,i){for(var o,s=a(e,null,i,[]),r=e.length;r--;)(o=s[r])&&(e[r]=!(t[r]=o))}):function(e,t,n){return i[0]=e,a(i,null,n,o),i[0]=null,!o.pop()}}),has:N(function(t){return function(e){return 0<A(t,e).length}}),contains:N(function(t){return t=t.replace(M,d),function(e){return-1<(e.textContent||s(e)).indexOf(t)}}),lang:N(function(n){return se.test(n||"")||A.error("unsupported lang: "+n),n=n.replace(M,d).toLowerCase(),function(e){var t;do{if(t=x?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=j.location&&j.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return le.test(e.nodeName)},input:function(e){return ae.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:O(function(){return[0]}),last:O(function(e,t){return[t-1]}),eq:O(function(e,t,n){return[n<0?n+t:n]}),even:O(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:O(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:O(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:O(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ve(){}function H(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(r,e,t){var a=e.dir,l=e.next,u=l||a,c=t&&"parentNode"===u,d=R++;return e.first?function(e,t,n){for(;e=e[a];)if(1===e.nodeType||c)return r(e,t,n);return!1}:function(e,t,n){var i,o,s=[D,d];if(n){for(;e=e[a];)if((1===e.nodeType||c)&&r(e,t,n))return!0}else for(;e=e[a];)if(1===e.nodeType||c)if(o=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[a]||e;else{if((i=o[u])&&i[0]===D&&i[1]===d)return s[2]=i[2];if((o[u]=s)[2]=r(e,t,n))return!0}return!1}}function be(o){return 1<o.length?function(e,t,n){for(var i=o.length;i--;)if(!o[i](e,t,n))return!1;return!0}:o[0]}function we(e,t,n,i,o){for(var s,r=[],a=0,l=e.length,u=null!=t;a<l;a++)!(s=e[a])||n&&!n(s,i,o)||(r.push(s),u&&t.push(a));return r}function _e(f,p,m,g,v,e){return g&&!g[S]&&(g=_e(g)),v&&!v[S]&&(v=_e(v,e)),N(function(e,t,n,i){var o,s,r,a=[],l=[],u=t.length,c=e||function(e,t,n){for(var i=0,o=t.length;i<o;i++)A(e,t[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?c:we(c,a,f,n,i),h=m?v||(e?f:u||g)?[]:t:d;if(m&&m(d,h,n,i),g)for(o=we(h,l),g(o,[],n,i),s=o.length;s--;)(r=o[s])&&(h[l[s]]=!(d[l[s]]=r));if(e){if(v||f){if(v){for(o=[],s=h.length;s--;)(r=h[s])&&o.push(d[s]=r);v(null,h=[],o,i)}for(s=h.length;s--;)(r=h[s])&&-1<(o=v?y(e,r):a[s])&&(e[o]=!(t[o]=r))}}else h=we(h===t?h.splice(u,h.length):h),v?v(null,t,h,i):k.apply(t,h)})}function Te(g,v){function e(e,t,n,i,o){var s,r,a,l=0,u="0",c=e&&[],d=[],h=_,f=e||b&&w.find.TAG("*",o),p=D+=null==h?1:Math.random()||.1,m=f.length;for(o&&(_=t==C||t||o);u!==m&&null!=(s=f[u]);u++){if(b&&s){for(r=0,t||s.ownerDocument==C||(T(s),n=!x);a=g[r++];)if(a(s,t||C,n)){i.push(s);break}o&&(D=p)}y&&((s=!a&&s)&&l--,e&&c.push(s))}if(l+=u,y&&u!==l){for(r=0;a=v[r++];)a(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=Q.call(i));d=we(d)}k.apply(i,d),o&&!e&&0<d.length&&1<l+v.length&&A.uniqueSort(i)}return o&&(D=p,_=h),c}var y=0<v.length,b=0<g.length;return y?N(e):e}return ve.prototype=w.filters=w.pseudos,w.setFilters=new ve,f=A.tokenize=function(e,t){var n,i,o,s,r,a,l,u=W[e+" "];if(u)return t?0:u.slice(0);for(r=e,a=[],l=w.preFilter;r;){for(s in n&&!(i=te.exec(r))||(i&&(r=r.slice(i[0].length)||r),a.push(o=[])),n=!1,(i=ne.exec(r))&&(n=i.shift(),o.push({value:n,type:i[0].replace(v," ")}),r=r.slice(n.length)),w.filter)!(i=b[s].exec(r))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),r=r.slice(n.length));if(!n)break}return t?r.length:r?A.error(e):W(e,a).slice(0)},U=A.compile=function(e,t){var n,i=[],o=[],s=V[e+" "];if(!s){for(n=(t=t||f(e)).length;n--;)((s=function e(t){for(var i,n,o,s=t.length,r=w.relative[t[0].type],a=r||w.relative[" "],l=r?1:0,u=ye(function(e){return e===i},a,!0),c=ye(function(e){return-1<y(i,e)},a,!0),d=[function(e,t,n){return e=!r&&(n||t!==_)||((i=t).nodeType?u:c)(e,t,n),i=null,e}];l<s;l++)if(n=w.relative[t[l].type])d=[ye(be(d),n)];else{if((n=w.filter[t[l].type].apply(null,t[l].matches))[S]){for(o=++l;o<s&&!w.relative[t[o].type];o++);return _e(1<l&&be(d),1<l&&H(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(v,"$1"),n,l<o&&e(t.slice(l,o)),o<s&&e(t=t.slice(o)),o<s&&H(t))}d.push(n)}return be(d)}(t[n]))[S]?i:o).push(s);(s=V(e,Te(o,i))).selector=e}return s},q=A.select=function(e,t,n,i){var o,s,r,a,l,u="function"==typeof e&&e,c=!i&&f(e=u.selector||e);if(n=n||[],1===c.length){if(2<(s=c[0]=c[0].slice(0)).length&&"ID"===(r=s[0]).type&&9===t.nodeType&&x&&w.relative[s[1].type]){if(!(t=(w.find.ID(r.matches[0].replace(M,d),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=b.needsContext.test(e)?0:s.length;o--&&(r=s[o],!w.relative[a=r.type]);)if((l=w.find[a])&&(i=l(r.matches[0].replace(M,d),ce.test(s[0].type)&&ge(t.parentNode)||t))){if(s.splice(o,1),e=i.length&&H(s))break;return k.apply(n,i),n}}return(u||U(e,c))(i,t,!x,n,!t||ce.test(e)&&ge(t.parentNode)||t),n},h.sortStable=S.split("").sort(z).join("")===S,h.detectDuplicates=!!u,T(),h.sortDetached=$(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),$(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&$(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),$(function(e){return null==e.getAttribute("disabled")})||fe(Z,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),A}(_),K=(C.find=e,C.expr=e.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=e.uniqueSort,C.text=e.getText,C.isXMLDoc=e.isXML,C.contains=e.contains,C.escapeSelector=e.escape,C.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function G(e,n,i){return y(n)?C.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?C.grep(e,function(e){return e===n!==i}):"string"!=typeof n?C.grep(e,function(e){return-1<U.call(n,e)!==i}):C.filter(n,e,i)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<i;t++)if(C.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)C.find(e,o[t],n);return 1<i?C.uniqueSort(n):n},filter:function(e){return this.pushStack(G(this,e||[],!1))},not:function(e){return this.pushStack(G(this,e||[],!0))},is:function(e){return!!G(this,"string"==typeof e&&K.test(e)?C(e):e||[],!1).length}});var J,ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,te=((C.fn.init=function(e,t,n){if(!e)return this;if(n=n||J,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ee.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),Z.test(i[1])&&C.isPlainObject(t))for(var i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(n=T.getElementById(i[2]))&&(this[0]=n,this.length=1),this}).prototype=C.fn,J=C(T),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function ie(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,s=[],r="string"!=typeof e&&C(e);if(!K.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?-1<r.index(n):1===n.nodeType&&C.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(1<s.length?C.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?U.call(C(e),this[0]):U.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return i(e,"parentNode")},parentsUntil:function(e,t,n){return i(e,"parentNode",n)},next:function(e){return ie(e,"nextSibling")},prev:function(e){return ie(e,"previousSibling")},nextAll:function(e){return i(e,"nextSibling")},prevAll:function(e){return i(e,"previousSibling")},nextUntil:function(e,t,n){return i(e,"nextSibling",n)},prevUntil:function(e,t,n){return i(e,"previousSibling",n)},siblings:function(e){return X((e.parentNode||{}).firstChild,e)},children:function(e){return X(e.firstChild)},contents:function(e){return null!=e.contentDocument&&L(e.contentDocument)?e.contentDocument:(l(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(i,o){C.fn[i]=function(e,t){var n=C.map(this,o,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=C.filter(t,n)),1<this.length&&(ne[i]||C.uniqueSort(n),te.test(i)&&n.reverse()),this.pushStack(n)}});var x=/[^\x20\t\r\n\f]+/g;function c(e){return e}function oe(e){throw e}function se(e,t,n,i){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},C.each(e.match(x)||[],function(e,t){n[t]=!0}),n):C.extend({},i);function o(){for(a=a||i.once,r=s=!0;u.length;c=-1)for(t=u.shift();++c<l.length;)!1===l[c].apply(t[0],t[1])&&i.stopOnFalse&&(c=l.length,t=!1);i.memory||(t=!1),s=!1,a&&(l=t?[]:"")}var s,t,r,a,l=[],u=[],c=-1,d={add:function(){return l&&(t&&!s&&(c=l.length-1,u.push(t)),function n(e){C.each(e,function(e,t){y(t)?i.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==p(t)&&n(t)})}(arguments),t&&!s&&o()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;-1<(n=C.inArray(t,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<C.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=u=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=u=[],t||s||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),s||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},C.extend({Deferred:function(e){var s=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var o=arguments;return C.Deferred(function(i){C.each(s,function(e,t){var n=y(o[t[4]])&&o[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&y(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),o=null}).promise()},then:function(t,n,i){var l=0;function u(o,s,r,a){return function(){function e(){var e,t;if(!(o<l)){if((e=r.apply(n,i))===s.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,y(t)?a?t.call(e,u(l,s,c,a),u(l,s,oe,a)):(l++,t.call(e,u(l,s,c,a),u(l,s,oe,a),u(l,s,c,s.notifyWith))):(r!==c&&(n=void 0,i=[e]),(a||s.resolveWith)(n,i))}}var n=this,i=arguments,t=a?e:function(){try{e()}catch(e){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(e,t.stackTrace),l<=o+1&&(r!==oe&&(n=void 0,i=[e]),s.rejectWith(n,i))}};o?t():(C.Deferred.getStackHook&&(t.stackTrace=C.Deferred.getStackHook()),_.setTimeout(t))}}return C.Deferred(function(e){s[0][3].add(u(0,e,y(i)?i:c,e.notifyWith)),s[1][3].add(u(0,e,y(t)?t:c)),s[2][3].add(u(0,e,y(n)?n:oe))}).promise()},promise:function(e){return null!=e?C.extend(e,r):r}},a={};return C.each(s,function(e,t){var n=t[2],i=t[5];r[t[1]]=n.add,i&&n.add(function(){o=i},s[3-e][2].disable,s[3-e][3].disable,s[0][2].lock,s[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=n.fireWith}),r.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){o[t]=this,s[t]=1<arguments.length?a.call(arguments):e,--n||r.resolveWith(o,s)}}var n=arguments.length,i=n,o=Array(i),s=a.call(arguments),r=C.Deferred();if(n<=1&&(se(e,r.done(t(i)).resolve,r.reject,!n),"pending"===r.state()||y(s[i]&&s[i].then)))return r.then();for(;i--;)se(s[i],t(i),r.reject);return r.promise()}});var re=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,ae=(C.Deferred.exceptionHook=function(e,t){_.console&&_.console.warn&&e&&re.test(e.name)&&_.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){_.setTimeout(function(){throw e})},C.Deferred());function le(){T.removeEventListener("DOMContentLoaded",le),_.removeEventListener("load",le),C.ready()}C.fn.ready=function(e){return ae.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0)!==e&&0<--C.readyWait||ae.resolveWith(T,[C])}}),C.ready.then=ae.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?_.setTimeout(C.ready):(T.addEventListener("DOMContentLoaded",le),_.addEventListener("load",le));function d(e,t,n,i,o,s,r){var a=0,l=e.length,u=null==n;if("object"===p(n))for(a in o=!0,n)d(e,t,a,n[a],!0,s,r);else if(void 0!==i&&(o=!0,y(i)||(r=!0),t=u?r?(t.call(e,i),null):(u=t,function(e,t,n){return u.call(C(e),n)}):t))for(;a<l;a++)t(e[a],n,r?i:i.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):l?t(e[0],n):s}var ue=/^-ms-/,ce=/-([a-z])/g;function de(e,t){return t.toUpperCase()}function b(e){return e.replace(ue,"ms-").replace(ce,de)}function v(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function he(){this.expando=C.expando+he.uid++}he.uid=1,he.prototype={cache:function(e){var t=e[this.expando];return t||(t={},v(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[b(t)]=n;else for(i in t)o[b(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][b(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(b):(t=b(t))in i?[t]:t.match(x)||[]).length;for(;n--;)delete i[t[n]]}void 0!==t&&!C.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var w=new he,u=new he,fe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,pe=/[A-Z]/g;function me(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(pe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:fe.test(o)?JSON.parse(o):o)}catch(e){}u.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return u.hasData(e)||w.hasData(e)},data:function(e,t,n){return u.access(e,t,n)},removeData:function(e,t){u.remove(e,t)},_data:function(e,t,n){return w.access(e,t,n)},_removeData:function(e,t){w.remove(e,t)}}),C.fn.extend({data:function(n,e){var t,i,o,s=this[0],r=s&&s.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){u.set(this,n)}):d(this,function(e){var t;if(s&&void 0===e)return void 0!==(t=u.get(s,n))||void 0!==(t=me(s,n))?t:void 0;this.each(function(){u.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=u.get(s),1===s.nodeType&&!w.get(s,"hasDataAttrs"))){for(t=r.length;t--;)r[t]&&0===(i=r[t].name).indexOf("data-")&&(i=b(i.slice(5)),me(s,i,o[i]));w.set(s,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){u.remove(this,e)})}}),C.extend({queue:function(e,t,n){var i;if(e)return i=w.get(e,t=(t||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=w.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,o=n.shift(),s=C._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete s.stop,o.call(e,function(){C.dequeue(e,t)},s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return w.get(e,n)||w.access(e,n,{empty:C.Callbacks("once memory").add(function(){w.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):void 0===n?this:this.each(function(){var e=C.queue(this,t,n);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--o||s.resolveWith(r,[r])}var i,o=1,s=C.Deferred(),r=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=w.get(r[a],e+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),s.promise(t)}});function ge(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&D(e)&&"none"===C.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ve=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),h=["Top","Right","Bottom","Left"],S=T.documentElement,D=function(e){return C.contains(e.ownerDocument,e)},ye={composed:!0};S.getRootNode&&(D=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(ye)===e.ownerDocument});function be(e,t,n,i){var o,s,r=20,a=i?function(){return i.cur()}:function(){return C.css(e,t,"")},l=a(),u=n&&n[3]||(C.cssNumber[t]?"":"px"),c=e.nodeType&&(C.cssNumber[t]||"px"!==u&&+l)&&ve.exec(C.css(e,t));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;r--;)C.style(e,t,c+u),(1-s)*(1-(s=a()/l||.5))<=0&&(r=0),c/=s;C.style(e,t,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var we={};function k(e,t){for(var n,i,o,s,r,a=[],l=0,u=e.length;l<u;l++)(i=e[l]).style&&(n=i.style.display,t?("none"===n&&(a[l]=w.get(i,"display")||null,a[l]||(i.style.display="")),""===i.style.display&&ge(i)&&(a[l]=(r=s=void 0,s=(o=i).ownerDocument,o=o.nodeName,(r=we[o])||(s=s.body.appendChild(s.createElement(o)),r=C.css(s,"display"),s.parentNode.removeChild(s),we[o]=r="none"===r?"block":r),r))):"none"!==n&&(a[l]="none",w.set(i,"display",n)));for(l=0;l<u;l++)null!=a[l]&&(e[l].style.display=a[l]);return e}C.fn.extend({show:function(){return k(this,!0)},hide:function(){return k(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?C(this).show():C(this).hide()})}});var _e=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i,E=(N=T.createDocumentFragment().appendChild(T.createElement("div")),(r=T.createElement("input")).setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),N.appendChild(r),g.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue,N.innerHTML="<option></option>",g.option=!!N.lastChild,{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 M(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?C.merge([e],n):n}function xe(e,t){for(var n=0,i=e.length;n<i;n++)w.set(e[n],"globalEval",!t||w.get(t[n],"globalEval"))}E.tbody=E.tfoot=E.colgroup=E.caption=E.thead,E.th=E.td,g.option||(E.optgroup=E.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function De(e,t,n,i,o){for(var s,r,a,l,u,c=t.createDocumentFragment(),d=[],h=0,f=e.length;h<f;h++)if((s=e[h])||0===s)if("object"===p(s))C.merge(d,s.nodeType?[s]:s);else if(Se.test(s)){for(r=r||c.appendChild(t.createElement("div")),a=(Te.exec(s)||["",""])[1].toLowerCase(),a=E[a]||E._default,r.innerHTML=a[1]+C.htmlPrefilter(s)+a[2],u=a[0];u--;)r=r.lastChild;C.merge(d,r.childNodes),(r=c.firstChild).textContent=""}else d.push(t.createTextNode(s));for(c.textContent="",h=0;s=d[h++];)if(i&&-1<C.inArray(s,i))o&&o.push(s);else if(l=D(s),r=M(c.appendChild(s),"script"),l&&xe(r),n)for(u=0;s=r[u++];)Ce.test(s.type||"")&&n.push(s);return c}var ke=/^([^.]*)(?:\.(.+)|)/;function n(){return!0}function f(){return!1}function Ee(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,i,o,s){var r,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Me(e,a,n,i,t[a],s);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=f;else if(!o)return e;return 1===s&&(r=o,(o=function(e){return C().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,i,n)})}function Ae(e,o,s){s?(w.set(e,o,!1),C.event.add(e,o,{namespace:!1,handler:function(e){var t,n,i=w.get(this,o);if(1&e.isTrigger&&this[o]){if(i.length)(C.event.special[o]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),w.set(this,o,i),t=s(this,o),this[o](),i!==(n=w.get(this,o))||t?w.set(this,o,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else i.length&&(w.set(this,o,{value:C.event.trigger(C.extend(i[0],C.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===w.get(e,o)&&C.event.add(e,o,n)}C.event={global:{},add:function(t,e,n,i,o){var s,r,a,l,u,c,d,h,f,p=w.get(t);if(v(t))for(n.handler&&(n=(s=n).handler,o=s.selector),o&&C.find.matchesSelector(S,o),n.guid||(n.guid=C.guid++),(a=p.events)||(a=p.events=Object.create(null)),(r=p.handle)||(r=p.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(x)||[""]).length;l--;)d=f=(h=ke.exec(e[l])||[])[1],h=(h[2]||"").split(".").sort(),d&&(u=C.event.special[d]||{},d=(o?u.delegateType:u.bindType)||d,u=C.event.special[d]||{},f=C.extend({type:d,origType:f,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:h.join(".")},s),(c=a[d])||((c=a[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,h,r)||t.addEventListener&&t.addEventListener(d,r)),u.add&&(u.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),o?c.splice(c.delegateCount++,0,f):c.push(f),C.event.global[d]=!0)},remove:function(e,t,n,i,o){var s,r,a,l,u,c,d,h,f,p,m,g=w.hasData(e)&&w.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(x)||[""]).length;u--;)if(f=m=(a=ke.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=C.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)c=h[s],!o&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(s,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||C.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[u],n,i,!0);C.isEmptyObject(l)&&w.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,r=new Array(arguments.length),a=C.event.fix(e),e=(w.get(this,"events")||Object.create(null))[a.type]||[],l=C.event.special[a.type]||{};for(r[0]=a,t=1;t<arguments.length;t++)r[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=C.event.handlers.call(this,a,e),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(o=((C.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,r))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,o,s,r,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(s=[],r={},n=0;n<l;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?-1<C(o,this).index(u):C.find(o,this,null,[u]).length),r[o]&&s.push(i);s.length&&a.push({elem:u,handlers:s})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return _e.test(e.type)&&e.click&&l(e,"input")&&Ae(e,"click",n),!1},trigger:function(e){e=this||e;return _e.test(e.type)&&e.click&&l(e,"input")&&Ae(e,"click"),!0},_default:function(e){e=e.target;return _e.test(e.type)&&e.click&&l(e,"input")&&w.get(e,"click")||l(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?n:f,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=n,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=n,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=n,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.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,code:!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:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(e,t){C.event.special[e]={setup:function(){return Ae(this,e,Ee),!1},trigger:function(){return Ae(this,e),!0},_default:function(){return!0},delegateType:t}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){C.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||C.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),C.fn.extend({on:function(e,t,n,i){return Me(this,e,t,n,i)},one:function(e,t,n,i){return Me(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,C(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=f),this.each(function(){C.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o]);return this}});var Ie=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,$e=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,i,o,s;if(1===t.nodeType){if(w.hasData(e)&&(s=w.get(e).events))for(o in w.remove(t,"handle events"),s)for(n=0,i=s[o].length;n<i;n++)C.event.add(t,o,s[o][n]);u.hasData(e)&&(e=u.access(e),e=C.extend({},e),u.set(t,e))}}function A(n,i,o,s){i=P(i);var e,t,r,a,l,u,c=0,d=n.length,h=d-1,f=i[0],p=y(f);if(p||1<d&&"string"==typeof f&&!g.checkClone&&Ne.test(f))return n.each(function(e){var t=n.eq(e);p&&(i[0]=f.call(this,e,t.html())),A(t,i,o,s)});if(d&&(t=(e=De(i,n[0].ownerDocument,!1,n,s)).firstChild,1===e.childNodes.length&&(e=t),t||s)){for(a=(r=C.map(M(e,"script"),He)).length;c<d;c++)l=e,c!==h&&(l=C.clone(l,!0,!0),a&&C.merge(r,M(l,"script"))),o.call(n[c],l,c);if(a)for(u=r[r.length-1].ownerDocument,C.map(r,je),c=0;c<a;c++)l=r[c],Ce.test(l.type||"")&&!w.access(l,"globalEval")&&C.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):Y(l.textContent.replace($e,""),l,u))}return n}function Pe(e,t,n){for(var i,o=t?C.filter(t,e):e,s=0;null!=(i=o[s]);s++)n||1!==i.nodeType||C.cleanData(M(i)),i.parentNode&&(n&&D(i)&&xe(M(i,"script")),i.parentNode.removeChild(i));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,r,a,l,u,c=e.cloneNode(!0),d=D(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(r=M(c),i=0,o=(s=M(e)).length;i<o;i++)a=s[i],l=r[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&_e.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(s=s||M(e),r=r||M(c),i=0,o=s.length;i<o;i++)Le(s[i],r[i]);else Le(e,c);return 0<(r=M(c,"script")).length&&xe(r,!d&&M(e,"script")),c},cleanData:function(e){for(var t,n,i,o=C.event.special,s=0;void 0!==(n=e[s]);s++)if(v(n)){if(t=n[w.expando]){if(t.events)for(i in t.events)o[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[w.expando]=void 0}n[u.expando]&&(n[u.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return d(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return A(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return A(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Oe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(M(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!E[(Te.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(M(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return A(this,arguments,function(e){var t=this.parentNode;C.inArray(this,n)<0&&(C.cleanData(M(this)),t&&t.replaceChild(e,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,r){C.fn[e]=function(e){for(var t,n=[],i=C(e),o=i.length-1,s=0;s<=o;s++)t=s===o?this:this.clone(!0),C(i[s])[r](t),F.apply(n,t.get());return this.pushStack(n)}});function Fe(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:_).getComputedStyle(e)}function Ue(e,t,n){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in n=n.call(e),t)e.style[i]=o[i];return n}var qe,Re,Be,We,Ve,ze,Ye,o,Qe=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Xe=new RegExp(h.join("|"),"i");function Ke(){var e;o&&(Ye.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",o.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",S.appendChild(Ye).appendChild(o),e=_.getComputedStyle(o),qe="1%"!==e.top,ze=12===Ze(e.marginLeft),o.style.right="60%",We=36===Ze(e.right),Re=36===Ze(e.width),o.style.position="absolute",Be=12===Ze(o.offsetWidth/3),S.removeChild(Ye),o=null)}function Ze(e){return Math.round(parseFloat(e))}function Ge(e,t,n){var i,o,s=e.style;return(n=n||Fe(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||D(e)||(o=C.style(e,t)),!g.pixelBoxStyles()&&Qe.test(o)&&Xe.test(t)&&(e=s.width,t=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=e,s.minWidth=t,s.maxWidth=i)),void 0!==o?o+"":o}function Je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Ye=T.createElement("div"),(o=T.createElement("div")).style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===o.style.backgroundClip,C.extend(g,{boxSizingReliable:function(){return Ke(),Re},pixelBoxStyles:function(){return Ke(),We},pixelPosition:function(){return Ke(),qe},reliableMarginLeft:function(){return Ke(),ze},scrollboxSize:function(){return Ke(),Be},reliableTrDimensions:function(){var e,t,n;return null==Ve&&(e=T.createElement("table"),t=T.createElement("tr"),n=T.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",S.appendChild(e).appendChild(t).appendChild(n),n=_.getComputedStyle(t),Ve=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,S.removeChild(e)),Ve}}));var et=["Webkit","Moz","ms"],tt=T.createElement("div").style,nt={};function it(e){var t=C.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,st=/^--/,rt={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=ve.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ut(e,t,n,i,o,s){var r="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(l+=C.css(e,n+h[r],!0,o)),i?("content"===n&&(l-=C.css(e,"padding"+h[r],!0,o)),"margin"!==n&&(l-=C.css(e,"border"+h[r]+"Width",!0,o))):(l+=C.css(e,"padding"+h[r],!0,o),"padding"!==n?l+=C.css(e,"border"+h[r]+"Width",!0,o):a+=C.css(e,"border"+h[r]+"Width",!0,o));return!i&&0<=s&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l}function ct(e,t,n){var i=Fe(e),o=(!g.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),s=o,r=Ge(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(r)){if(!n)return r;r="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&l(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===C.css(e,"boxSizing",!1,i),(s=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+ut(e,t,n||(o?"border":"content"),s,i,r)+"px"}function s(e,t,n,i,o){return new s.prototype.init(e,t,n,i,o)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=Ge(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,r,a=b(t),l=st.test(t),u=e.style;if(l||(t=it(a)),r=C.cssHooks[t]||C.cssHooks[a],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:u[t];"string"===(s=typeof n)&&(o=ve.exec(n))&&o[1]&&(n=be(e,t,o),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=o&&o[3]||(C.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),r&&"set"in r&&void 0===(n=r.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var o,s=b(t);return st.test(t)||(t=it(s)),"normal"===(o=void 0===(o=(s=C.cssHooks[t]||C.cssHooks[s])&&"get"in s?s.get(e,!0,n):o)?Ge(e,t,i):o)&&t in at&&(o=at[t]),""===n||n?(s=parseFloat(o),!0===n||isFinite(s)?s||0:o):o}}),C.each(["height","width"],function(e,r){C.cssHooks[r]={get:function(e,t,n){if(t)return!ot.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,r,n):Ue(e,rt,function(){return ct(e,r,n)})},set:function(e,t,n){var i=Fe(e),o=!g.scrollboxSize()&&"absolute"===i.position,s=(o||n)&&"border-box"===C.css(e,"boxSizing",!1,i),n=n?ut(e,r,n,s,i):0;return s&&o&&(n-=Math.ceil(e["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(i[r])-ut(e,r,"border",!1,i)-.5)),n&&(s=ve.exec(t))&&"px"!==(s[3]||"px")&&(e.style[r]=t,t=C.css(e,r)),lt(0,t,n)}}}),C.cssHooks.marginLeft=Je(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(o,s){C.cssHooks[o+s]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+h[t]+s]=i[t]||i[t-2]||i[0];return n}},"margin"!==o&&(C.cssHooks[o+s].set=lt)}),C.fn.extend({css:function(e,t){return d(this,function(e,t,n){var i,o,s={},r=0;if(Array.isArray(t)){for(i=Fe(e),o=t.length;r<o;r++)s[t[r]]=C.css(e,t[r],!1,i);return s}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,1<arguments.length)}}),((C.Tween=s).prototype={constructor:s,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(C.cssNumber[n]?"":"px")},cur:function(){var e=s.propHooks[this.prop];return(e&&e.get?e:s.propHooks._default).get(this)},run:function(e){var t,n=s.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:s.propHooks._default).set(this),this}}).init.prototype=s.prototype,(s.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=C.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=s.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=s.prototype.init,C.fx.step={};var I,dt,r,N,ht=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function pt(){dt&&(!1===T.hidden&&_.requestAnimationFrame?_.requestAnimationFrame(pt):_.setTimeout(pt,C.fx.interval),C.fx.tick())}function mt(){return _.setTimeout(function(){I=void 0}),I=Date.now()}function gt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=h[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function vt(e,t,n){for(var i,o=($.tweeners[t]||[]).concat($.tweeners["*"]),s=0,r=o.length;s<r;s++)if(i=o[s].call(n,t,e))return i}function $(o,e,t){var n,s,i,r,a,l,u,c=0,d=$.prefilters.length,h=C.Deferred().always(function(){delete f.elem}),f=function(){if(!s){for(var e=I||mt(),e=Math.max(0,p.startTime+p.duration-e),t=1-(e/p.duration||0),n=0,i=p.tweens.length;n<i;n++)p.tweens[n].run(t);if(h.notifyWith(o,[p,t,e]),t<1&&i)return e;i||h.notifyWith(o,[p,1,0]),h.resolveWith(o,[p])}return!1},p=h.promise({elem:o,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},t),originalProperties:e,originalOptions:t,startTime:I||mt(),duration:t.duration,tweens:[],createTween:function(e,t){t=C.Tween(o,p.opts,e,t,p.opts.specialEasing[e]||p.opts.easing);return p.tweens.push(t),t},stop:function(e){var t=0,n=e?p.tweens.length:0;if(!s){for(s=!0;t<n;t++)p.tweens[t].run(1);e?(h.notifyWith(o,[p,1,0]),h.resolveWith(o,[p,e])):h.rejectWith(o,[p,e])}return this}}),m=p.props,g=m,v=p.opts.specialEasing;for(i in g)if(a=v[r=b(i)],l=g[i],Array.isArray(l)&&(a=l[1],l=g[i]=l[0]),i!==r&&(g[r]=l,delete g[i]),(u=C.cssHooks[r])&&"expand"in u)for(i in l=u.expand(l),delete g[r],l)i in g||(g[i]=l[i],v[i]=a);else v[r]=a;for(;c<d;c++)if(n=$.prefilters[c].call(p,o,m,p.opts))return y(n.stop)&&(C._queueHooks(p.elem,p.opts.queue).stop=n.stop.bind(n)),n;return C.map(m,vt,p),y(p.opts.start)&&p.opts.start.call(o,p),p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always),C.fx.timer(C.extend(f,{elem:o,anim:p,queue:p.opts.queue})),p}C.Animation=C.extend($,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,ve.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,o=(e=y(e)?(t=e,["*"]):e.match(x)).length;i<o;i++)n=e[i],$.tweeners[n]=$.tweeners[n]||[],$.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,s,r,a,l,u,c="width"in t||"height"in t,d=this,h={},f=e.style,p=e.nodeType&&ge(e),m=w.get(e,"fxshow");for(i in n.queue||(null==(r=C._queueHooks(e,"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--,C.queue(e,"fx").length||r.empty.fire()})})),t)if(o=t[i],ht.test(o)){if(delete t[i],s=s||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;p=!0}h[i]=m&&m[i]||C.style(e,i)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(i in c&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=m&&m.display)&&(u=w.get(e,"display")),"none"===(c=C.css(e,"display"))&&(u?c=u:(k([e],!0),u=e.style.display||u,c=C.css(e,"display"),k([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(e,"float")&&(l||(d.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(m?"hidden"in m&&(p=m.hidden):m=w.access(e,"fxshow",{display:u}),s&&(m.hidden=!p),p&&k([e],!0),d.done(function(){for(i in p||k([e]),w.remove(e,"fxshow"),h)C.style(e,i,h[i])})),l=vt(p?m[i]:0,i,d),i in m||(m[i]=l.start,p&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?$.prefilters.unshift(e):$.prefilters.push(e)}}),C.speed=function(e,t,n){var i=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function o(){var e=$(this,C.extend({},t),r);(s||w.get(this,"finish"))&&e.stop(!0)}var s=C.isEmptyObject(t),r=C.speed(e,n,i);return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(o,e,s){function r(e){var t=e.stop;delete e.stop,t(s)}return"string"!=typeof o&&(s=e,e=o,o=void 0),e&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=C.timers,i=w.get(this);if(t)i[t]&&i[t].stop&&r(i[t]);else for(t in i)i[t]&&i[t].stop&&ft.test(t)&&r(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(s),e=!1,n.splice(t,1));!e&&s||C.dequeue(this,o)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var e,t=w.get(this),n=t[r+"queue"],i=t[r+"queueHooks"],o=C.timers,s=n?n.length:0;for(t.finish=!0,C.queue(this,r,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===r&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,i){var o=C.fn[i];C.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(gt(i,!0),e,t,n)}}),C.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){C.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(I=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),I=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){dt||(dt=!0,pt())},C.fx.stop=function(){dt=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(i,e){return i=C.fx&&C.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=_.setTimeout(e,i);t.stop=function(){_.clearTimeout(n)}})},r=T.createElement("input"),N=T.createElement("select").appendChild(T.createElement("option")),r.type="checkbox",g.checkOn=""!==r.value,g.optSelected=N.selected,(r=T.createElement("input")).value="t",r.type="radio",g.radioValue="t"===r.value;var yt,bt=C.expr.attrHandle,wt=(C.fn.extend({attr:function(e,t){return d(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?C.prop(e,t,n):(1===s&&C.isXMLDoc(e)||(o=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(o&&"get"in o&&null!==(i=o.get(e,t)))&&null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){var n;if(!g.radioValue&&"radio"===t&&l(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(x);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var r=bt[t]||C.find.attr;bt[t]=function(e,t,n){var i,o,s=t.toLowerCase();return n||(o=bt[s],bt[s]=i,i=null!=r(e,t,n)?s:null,bt[s]=o),i}}),/^(?:input|select|textarea|button)$/i),_t=/^(?:a|area)$/i;function O(e){return(e.match(x)||[]).join(" ")}function H(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(x)||[]}C.fn.extend({prop:function(e,t){return d(this,C.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&C.isXMLDoc(e)||(t=C.propFix[t]||t,o=C.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,n,i,o,s,r,a=0;if(y(t))return this.each(function(e){C(this).addClass(t.call(this,e,H(this)))});if((e=Tt(t)).length)for(;n=this[a++];)if(r=H(n),i=1===n.nodeType&&" "+O(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(r=O(i))&&n.setAttribute("class",r)}return this},removeClass:function(t){var e,n,i,o,s,r,a=0;if(y(t))return this.each(function(e){C(this).removeClass(t.call(this,e,H(this)))});if(!arguments.length)return this.attr("class","");if((e=Tt(t)).length)for(;n=this[a++];)if(r=H(n),i=1===n.nodeType&&" "+O(r)+" "){for(s=0;o=e[s++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(r=O(i))&&n.setAttribute("class",r)}return this},toggleClass:function(o,t){var s=typeof o,r="string"==s||Array.isArray(o);return"boolean"==typeof t&&r?t?this.addClass(o):this.removeClass(o):y(o)?this.each(function(e){C(this).toggleClass(o.call(this,e,H(this),t),t)}):this.each(function(){var e,t,n,i;if(r)for(t=0,n=C(this),i=Tt(o);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==o&&"boolean"!=s||((e=H(this))&&w.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==o&&w.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+O(H(t))+" ").indexOf(i))return!0;return!1}});function Ct(e){e.stopPropagation()}var xt=/\r/g,St=(C.fn.extend({val:function(t){var n,e,i,o=this[0];return arguments.length?(i=y(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,C(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=C.map(e,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):o?(n=C.valHooks[o.type]||C.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(xt,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:O(C.text(e))}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],r=o?i+1:n.length,a=i<0?r:o?i:0;a<r;a++)if(((t=n[a]).selected||a===i)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=C(t).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,o=e.options,s=C.makeArray(t),r=o.length;r--;)((i=o[r]).selected=-1<C.inArray(C.valHooks.option.get(i),s))&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<C.inArray(C(e).val(),t)}},g.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in _,/^(?:focusinfocus|focusoutblur)$/),Dt=(C.extend(C.event,{trigger:function(e,t,n,i){var o,s,r,a,l,u,c,d=[n||T],h=B.call(e,"type")?e.type:e,f=B.call(e,"namespace")?e.namespace.split("."):[],p=c=s=n=n||T;if(3!==n.nodeType&&8!==n.nodeType&&!St.test(h+C.event.triggered)&&(-1<h.indexOf(".")&&(h=(f=h.split(".")).shift(),f.sort()),a=h.indexOf(":")<0&&"on"+h,(e=e[C.expando]?e:new C.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),u=C.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!m(n)){for(r=u.delegateType||h,St.test(r+h)||(p=p.parentNode);p;p=p.parentNode)d.push(p),s=p;s===(n.ownerDocument||T)&&d.push(s.defaultView||s.parentWindow||_)}for(o=0;(p=d[o++])&&!e.isPropagationStopped();)c=p,e.type=1<o?r:u.bindType||h,(l=(w.get(p,"events")||Object.create(null))[e.type]&&w.get(p,"handle"))&&l.apply(p,t),(l=a&&p[a])&&l.apply&&v(p)&&(e.result=l.apply(p,t),!1===e.result&&e.preventDefault());return e.type=h,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),t)||!v(n)||a&&y(n[h])&&!m(n)&&((s=n[a])&&(n[a]=null),C.event.triggered=h,e.isPropagationStopped()&&c.addEventListener(h,Ct),n[h](),e.isPropagationStopped()&&c.removeEventListener(h,Ct),C.event.triggered=void 0,s&&(n[a]=s)),e.result}},simulate:function(e,t,n){n=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(n,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),g.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,i){function o(e){C.event.simulate(i,e.target,C.event.fix(e))}C.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=w.access(e,i);t||e.addEventListener(n,o,!0),w.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=w.access(e,i)-1;t?w.access(e,i,t):(e.removeEventListener(n,o,!0),w.remove(e,i))}}}),_.location),kt={guid:Date.now()},Et=/\?/,Mt=(C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new _.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/\[\]$/),At=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;C.param=function(e,t){function n(e,t){t=y(t)?t():t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var i,o=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,o,s){if(Array.isArray(e))C.each(e,function(e,t){o||Mt.test(i)?s(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,s)});else if(o||"object"!==p(e))s(i,e);else for(var t in e)n(i+"["+t+"]",e[t],o,s)}(i,e[i],t,n);return o.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Nt.test(this.nodeName)&&!It.test(e)&&(this.checked||!_e.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var $t=/%20/g,Ot=/#.*$/,Ht=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ft={},Ut={},qt="*/".concat("*"),Rt=T.createElement("a");function Bt(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,o=e.toLowerCase().match(x)||[];if(y(t))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(s[n]=s[n]||[]).unshift(t)):(s[n]=s[n]||[]).push(t)}}function Wt(t,i,o,s){var r={},a=t===Ut;function l(e){var n;return r[e]=!0,C.each(t[e]||[],function(e,t){t=t(i,o,s);return"string"!=typeof t||a||r[t]?a?!(n=t):void 0:(i.dataTypes.unshift(t),l(t),!1)}),n}return l(i.dataTypes[0])||!r["*"]&&l("*")}function Vt(e,t){var n,i,o=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i=i||{})[n]=t[n]);return i&&C.extend(!0,e,i),e}Rt.href=Dt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,C.ajaxSettings),t):Vt(C.ajaxSettings,e)},ajaxPrefilter:Bt(Ft),ajaxTransport:Bt(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,u,c,n,d,h,f,i,p=C.ajaxSetup({},t=t||{}),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?C(m):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=p.statusCode||{},o={},s={},r="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=jt.exec(c);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?c:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,o[e]=t),this},overrideMimeType:function(e){return null==h&&(p.mimeType=e),this},statusCode:function(e){if(e)if(h)w.always(e[w.status]);else for(var t in e)b[t]=[b[t],e[t]];return this},abort:function(e){e=e||r;return l&&l.abort(e),a(0,e),this}};if(v.promise(w),p.url=((e||p.url||Dt.href)+"").replace(Pt,Dt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(x)||[""],null==p.crossDomain){e=T.createElement("a");try{e.href=p.url,e.href=e.href,p.crossDomain=Rt.protocol+"//"+Rt.host!=e.protocol+"//"+e.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Wt(Ft,p,t,w),!h){for(i in(f=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Lt.test(p.type),u=p.url.replace(Ot,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace($t,"+")):(e=p.url.slice(u.length),p.data&&(p.processData||"string"==typeof p.data)&&(u+=(Et.test(u)?"&":"?")+p.data,delete p.data),!1===p.cache&&(u=u.replace(Ht,"$1"),e=(Et.test(u)?"&":"?")+"_="+kt.guid+++e),p.url=u+e),p.ifModified&&(C.lastModified[u]&&w.setRequestHeader("If-Modified-Since",C.lastModified[u]),C.etag[u]&&w.setRequestHeader("If-None-Match",C.etag[u])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(m,w,p)||h))return w.abort();if(r="abort",y.add(p.complete),w.done(p.success),w.fail(p.error),l=Wt(Ut,p,t,w)){if(w.readyState=1,f&&g.trigger("ajaxSend",[w,p]),h)return w;p.async&&0<p.timeout&&(d=_.setTimeout(function(){w.abort("timeout")},p.timeout));try{h=!1,l.send(o,a)}catch(e){if(h)throw e;a(-1,e)}}else a(-1,"No Transport")}return w;function a(e,t,n,i){var o,s,r,a=t;h||(h=!0,d&&_.clearTimeout(d),l=void 0,c=i||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(r=function(e,t,n){for(var i,o,s,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)s=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}r=r||o}s=s||r}if(s)return s!==l[0]&&l.unshift(s),n[s]}(p,w,n)),!i&&-1<C.inArray("script",p.dataTypes)&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),r=function(e,t,n,i){var o,s,r,a,l,u={},c=e.dataTypes.slice();if(c[1])for(r in e.converters)u[r.toLowerCase()]=e.converters[r];for(s=c.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=u[l+" "+s]||u["* "+s]))for(o in u)if((a=o.split(" "))[1]===s&&(r=u[l+" "+a[0]]||u["* "+a[0]])){!0===r?r=u[o]:!0!==u[o]&&(s=a[0],c.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(p,r,w,i),i?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(C.lastModified[u]=n),(n=w.getResponseHeader("etag"))&&(C.etag[u]=n)),204===e||"HEAD"===p.type?a="nocontent":304===e?a="notmodified":(a=r.state,o=r.data,i=!(s=r.error))):(s=a,!e&&a||(a="error",e<0&&(e=0))),w.status=e,w.statusText=(t||a)+"",i?v.resolveWith(m,[o,a,w]):v.rejectWith(m,[w,a,s]),w.statusCode(b),b=void 0,f&&g.trigger(i?"ajaxSuccess":"ajaxError",[w,p,i?o:s]),y.fireWith(m,[w,a]),f&&(g.trigger("ajaxComplete",[w,p]),--C.active||C.event.trigger("ajaxStop")))}},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,o){C[o]=function(e,t,n,i){return y(t)&&(i=i||n,n=t,t=void 0),C.ajax(C.extend({url:e,type:o,dataType:i,data:t,success:n},C.isPlainObject(e)&&e))}}),C.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){return this[0]&&(y(e)&&(e=e.call(this[0])),e=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return y(n)?this.each(function(e){C(this).wrapInner(n.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=y(t);return this.each(function(e){C(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new _.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Yt=C.ajaxSettings.xhr(),Qt=(g.cors=!!Yt&&"withCredentials"in Yt,g.ajax=Yt=!!Yt,C.ajaxTransport(function(o){var s,r;if(g.cors||Yt&&!o.crossDomain)return{send:function(e,t){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);s=function(e){return function(){s&&(s=r=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(zt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=s(),r=i.onerror=i.ontimeout=s("error"),void 0!==i.onabort?i.onabort=r:i.onreadystatechange=function(){4===i.readyState&&_.setTimeout(function(){s&&r()})},s=s("abort");try{i.send(o.hasContent&&o.data||null)}catch(e){if(s)throw e}},abort:function(){s&&s()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(n){var i,o;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=C("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){i.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(i[0])},abort:function(){o&&o()}}}),[]),Xt=/(=)\?(?=&|$)|\?\?/,Kt=(C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||C.expando+"_"+kt.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,s,r=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Xt,"$1"+i):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||C.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=_[i],_[i]=function(){s=arguments},n.always(function(){void 0===o?C(_).removeProp(i):_[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Qt.push(i)),s&&y(o)&&o(s[0]),s=o=void 0}),"script"}),g.createHTMLDocument=((e=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(i)):t=T),i=!n&&[],(n=Z.exec(e))?[t.createElement(n[1])]:(n=De([e],t,i),i&&i.length&&C(i).remove(),C.merge([],n.childNodes)));var i},C.fn.load=function(e,t,n){var i,o,s,r=this,a=e.indexOf(" ");return-1<a&&(i=O(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<r.length&&C.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){s=arguments,r.html(i?C("<div>").append(C.parseHTML(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,s||[e.responseText,t,e])})}),this},C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var i,o,s,r,a=C.css(e,"position"),l=C(e),u={};"static"===a&&(e.style.position="relative"),s=l.offset(),i=C.css(e,"top"),r=C.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(i+r).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(i)||0,parseFloat(r)||0),null!=(t=y(t)?t.call(e,n,C.extend({},s)):t).top&&(u.top=t.top-s.top+o),null!=t.left&&(u.left=t.left-s.left+a),"using"in t?t.using.call(e,u):l.css(u)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(i,"marginTop",!0),left:t.left-o.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||S})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var s="pageYOffset"===o;C.fn[t]=function(e){return d(this,function(e,t,n){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[o]:e[t];i?i.scrollTo(s?i.pageXOffset:n,s?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),C.each(["top","left"],function(e,n){C.cssHooks[n]=Je(g.pixelPosition,function(e,t){if(t)return t=Ge(e,n),Qe.test(t)?C(e).position()[n]+"px":t})}),C.each({Height:"height",Width:"width"},function(r,a){C.each({padding:"inner"+r,content:a,"":"outer"+r},function(i,s){C.fn[s]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,n){var i;return m(e)?0===s.indexOf("outer")?e["inner"+r]:e.document.documentElement["client"+r]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+r],i["scroll"+r],e.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?C.css(e,t,o):C.style(e,t,n,o)},a,n?e:void 0,n)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.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(e,n){C.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Zt=(C.proxy=function(e,t){var n,i;if("string"==typeof t&&(i=e[t],t=e,e=i),y(e))return n=a.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(a.call(arguments)))}).guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=l,C.isFunction=y,C.isWindow=m,C.camelCase=b,C.type=p,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C}),_.jQuery),Gt=_.$;return C.noConflict=function(e){return _.$===C&&(_.$=Gt),e&&_.jQuery===C&&(_.jQuery=Zt),C},void 0===j&&(_.jQuery=_.$=C),C}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap={},e.jQuery)}(this,function(e,t){"use strict";function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=j(t);function L(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){t&&L(e.prototype,t),n&&L(e,n)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}var P="transitionend";function F(e){var t=this,n=!1;return c.default(this).one(d.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||d.triggerTransitionEnd(t)},e),this}var d={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=(e=e.getAttribute("href"))&&"#"!==e?e.trim():"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=c.default(e).css("transition-duration"),e=c.default(e).css("transition-delay"),n=parseFloat(t),i=parseFloat(e);return n||i?(t=t.split(",")[0],e=e.split(",")[0],1e3*(parseFloat(t)+parseFloat(e))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){c.default(e).trigger(P)},supportsTransitionEnd:function(){return Boolean(P)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],s=t[i],s=s&&d.isElement(s)?"element":null==(s=s)?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}},findShadowRoot:function(e){return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?d.findShadowRoot(e.parentNode):null:null;var t},jQueryDetection:function(){if(void 0===c.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=c.default.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}},U=(d.jQueryDetection(),c.default.fn.emulateTransitionEnd=F,c.default.event.special[d.TRANSITION_END]={bindType:P,delegateType:P,handle:function(e){if(c.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},"alert"),q="bs.alert",R=c.default.fn[U],n=function(){function i(e){this._element=e}var e=i.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){c.default.removeData(this._element,q),this._element=null},e._getRootElement=function(e){var t=d.getSelectorFromElement(e),n=!1;return n=(n=t?document.querySelector(t):n)||c.default(e).closest(".alert")[0]},e._triggerCloseEvent=function(e){var t=c.default.Event("close.bs.alert");return c.default(e).trigger(t),t},e._removeElement=function(t){var e,n=this;c.default(t).removeClass("show"),c.default(t).hasClass("fade")?(e=d.getTransitionDurationFromElement(t),c.default(t).one(d.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)):this._destroyElement(t)},e._destroyElement=function(e){c.default(e).detach().trigger("closed.bs.alert").remove()},i._jQueryInterface=function(n){return this.each(function(){var e=c.default(this),t=e.data(q);t||(t=new i(this),e.data(q,t)),"close"===n&&t[n](this)})},i._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(i,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),i}(),B=(c.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',n._handleDismiss(new n)),c.default.fn[U]=n._jQueryInterface,c.default.fn[U].Constructor=n,c.default.fn[U].noConflict=function(){return c.default.fn[U]=R,n._jQueryInterface},"button"),W="bs.button",V=c.default.fn[B],l="active",t='[data-toggle^="button"]',z='input:not([type="hidden"])',Y=function(){function o(e){this._element=e,this.shouldAvoidTriggerChange=!1}var e=o.prototype;return e.toggle=function(){var e,t=!0,n=!0,i=c.default(this._element).closest('[data-toggle="buttons"]')[0];i&&(e=this._element.querySelector(z))&&("radio"===e.type&&(e.checked&&this._element.classList.contains(l)?t=!1:(i=i.querySelector(".active"))&&c.default(i).removeClass(l)),t&&("checkbox"!==e.type&&"radio"!==e.type||(e.checked=!this._element.classList.contains(l)),this.shouldAvoidTriggerChange||c.default(e).trigger("change")),e.focus(),n=!1),this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(l)),t&&c.default(this._element).toggleClass(l))},e.dispose=function(){c.default.removeData(this._element,W),this._element=null},o._jQueryInterface=function(n,i){return this.each(function(){var e=c.default(this),t=e.data(W);t||(t=new o(this),e.data(W,t)),t.shouldAvoidTriggerChange=i,"toggle"===n&&t[n]()})},r(o,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),o}(),i=(c.default(document).on("click.bs.button.data-api",t,function(e){var t,n=e.target,i=n;!(n=c.default(n).hasClass("btn")?n:c.default(n).closest(".btn")[0])||n.hasAttribute("disabled")||n.classList.contains("disabled")||(t=n.querySelector(z))&&(t.hasAttribute("disabled")||t.classList.contains("disabled"))?e.preventDefault():"INPUT"!==i.tagName&&"LABEL"===n.tagName||Y._jQueryInterface.call(c.default(n),"toggle","INPUT"===i.tagName)}).on("focus.bs.button.data-api blur.bs.button.data-api",t,function(e){var t=c.default(e.target).closest(".btn")[0];c.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))}),c.default(window).on("load.bs.button.data-api",function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t<n;t++){var i=e[t],o=i.querySelector(z);o.checked||o.hasAttribute("checked")?i.classList.add(l):i.classList.remove(l)}for(var s=0,r=(e=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;s<r;s++){var a=e[s];"true"===a.getAttribute("aria-pressed")?a.classList.add(l):a.classList.remove(l)}}),c.default.fn[B]=Y._jQueryInterface,c.default.fn[B].Constructor=Y,c.default.fn[B].noConflict=function(){return c.default.fn[B]=V,Y._jQueryInterface},"carousel"),Q="bs.carousel",X="."+Q,K=c.default.fn[i],Z={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},G={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},J="next",ee="prev",te="slid"+X,h="active",ne=".active.carousel-item",ie={TOUCH:"touch",PEN:"pen"},o=function(){function o(e,t){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(t),this._element=e,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=o.prototype;return e.next=function(){this._isSliding||this._slide(J)},e.nextWhenVisible=function(){var e=c.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(ee)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this,n=(this._activeElement=this._element.querySelector(ne),this._getItemIndex(this._activeElement));if(!(e>this._items.length-1||e<0))if(this._isSliding)c.default(this._element).one(te,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();this._slide(n<e?J:ee,this._items[e])}},e.dispose=function(){c.default(this._element).off(X),c.default.removeData(this._element,Q),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=a({},Z,e),d.typeCheckConfig(i,e,G),e},e._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);e<=40||(e=e/this.touchDeltaX,(this.touchDeltaX=0)<e&&this.prev(),e<0&&this.next())},e._addEventListeners=function(){var t=this;this._config.keyboard&&c.default(this._element).on("keydown.bs.carousel",function(e){return t._keydown(e)}),"hover"===this._config.pause&&c.default(this._element).on("mouseenter.bs.carousel",function(e){return t.pause(e)}).on("mouseleave.bs.carousel",function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var e,t,n=this;this._touchSupported&&(e=function(e){n._pointerEvent&&ie[e.originalEvent.pointerType.toUpperCase()]?n.touchStartX=e.originalEvent.clientX:n._pointerEvent||(n.touchStartX=e.originalEvent.touches[0].clientX)},t=function(e){n._pointerEvent&&ie[e.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=e.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(e){return n.cycle(e)},500+n._config.interval))},c.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",function(e){return e.preventDefault()}),this._pointerEvent?(c.default(this._element).on("pointerdown.bs.carousel",e),c.default(this._element).on("pointerup.bs.carousel",t),this._element.classList.add("pointer-event")):(c.default(this._element).on("touchstart.bs.carousel",e),c.default(this._element).on("touchmove.bs.carousel",function(e){(e=e).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),c.default(this._element).on("touchend.bs.carousel",t)))},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===J,i=e===ee,o=this._getItemIndex(t),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return t;i=(o+(e===ee?-1:1))%this._items.length;return-1==i?this._items[this._items.length-1]:this._items[i]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(ne)),e=c.default.Event("slide.bs.carousel",{relatedTarget:e,direction:t,from:i,to:n});return c.default(this._element).trigger(e),e},e._setActiveIndicatorElement=function(e){var t;this._indicatorsElement&&(t=[].slice.call(this._indicatorsElement.querySelectorAll(".active")),c.default(t).removeClass(h),(t=this._indicatorsElement.children[this._getItemIndex(e)])&&c.default(t).addClass(h))},e._updateInterval=function(){var e=this._activeElement||this._element.querySelector(ne);e&&((e=parseInt(e.getAttribute("data-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval)},e._slide=function(e,t){var n,i,o,s=this,r=this._element.querySelector(ne),a=this._getItemIndex(r),l=t||r&&this._getItemByDirection(e,r),t=this._getItemIndex(l),u=Boolean(this._interval),e=e===J?(n="carousel-item-left",i="carousel-item-next","left"):(n="carousel-item-right",i="carousel-item-prev","right");l&&c.default(l).hasClass(h)?this._isSliding=!1:this._triggerSlideEvent(l,e).isDefaultPrevented()||r&&l&&(this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l,o=c.default.Event(te,{relatedTarget:l,direction:e,from:a,to:t}),c.default(this._element).hasClass("slide")?(c.default(l).addClass(i),d.reflow(l),c.default(r).addClass(n),c.default(l).addClass(n),e=d.getTransitionDurationFromElement(r),c.default(r).one(d.TRANSITION_END,function(){c.default(l).removeClass(n+" "+i).addClass(h),c.default(r).removeClass(h+" "+i+" "+n),s._isSliding=!1,setTimeout(function(){return c.default(s._element).trigger(o)},0)}).emulateTransitionEnd(e)):(c.default(r).removeClass(h),c.default(l).addClass(h),this._isSliding=!1,c.default(this._element).trigger(o)),u&&this.cycle())},o._jQueryInterface=function(i){return this.each(function(){var e=c.default(this).data(Q),t=a({},Z,c.default(this).data()),n=("object"==typeof i&&(t=a({},t,i)),"string"==typeof i?i:t.slide);if(e||(e=new o(this,t),c.default(this).data(Q,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&t.ride&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function(e){var t,n,i=d.getSelectorFromElement(this);!i||(i=c.default(i)[0])&&c.default(i).hasClass("carousel")&&(t=a({},c.default(i).data(),c.default(this).data()),(n=this.getAttribute("data-slide-to"))&&(t.interval=!1),o._jQueryInterface.call(c.default(i),t),n&&c.default(i).data(Q).to(n),e.preventDefault())},r(o,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Z}}]),o}(),u=(c.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",o._dataApiClickHandler),c.default(window).on("load.bs.carousel.data-api",function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,n=e.length;t<n;t++){var i=c.default(e[t]);o._jQueryInterface.call(i,i.data())}}),c.default.fn[i]=o._jQueryInterface,c.default.fn[i].Constructor=o,c.default.fn[i].noConflict=function(){return c.default.fn[i]=K,o._jQueryInterface},"collapse"),f="bs.collapse",oe=c.default.fn[u],se={toggle:!0,parent:""},re={toggle:"boolean",parent:"(string|element)"},p="show",ae="collapse",le="collapsing",ue="collapsed",ce='[data-toggle="collapse"]',de=function(){function s(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ce)),i=0,o=n.length;i<o;i++){var s=n[i],r=d.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter(function(e){return e===t});null!==r&&0<a.length&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=s.prototype;return e.toggle=function(){c.default(this._element).hasClass(p)?this.hide():this.show()},e.show=function(){var e,t,n,i,o=this;this._isTransitioning||c.default(this._element).hasClass(p)||(e=this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(ae)})).length?null:e)&&(i=c.default(e).not(this._selector).data(f))&&i._isTransitioning||(n=c.default.Event("show.bs.collapse"),c.default(this._element).trigger(n),n.isDefaultPrevented()||(e&&(s._jQueryInterface.call(c.default(e).not(this._selector),"hide"),i||c.default(e).data(f,null)),t=this._getDimension(),c.default(this._element).removeClass(ae).addClass(le),this._element.style[t]=0,this._triggerArray.length&&c.default(this._triggerArray).removeClass(ue).attr("aria-expanded",!0),this.setTransitioning(!0),n="scroll"+(t[0].toUpperCase()+t.slice(1)),i=d.getTransitionDurationFromElement(this._element),c.default(this._element).one(d.TRANSITION_END,function(){c.default(o._element).removeClass(le).addClass(ae+" "+p),o._element.style[t]="",o.setTransitioning(!1),c.default(o._element).trigger("shown.bs.collapse")}).emulateTransitionEnd(i),this._element.style[t]=this._element[n]+"px"))},e.hide=function(){var e=this;if(!this._isTransitioning&&c.default(this._element).hasClass(p)){var t=c.default.Event("hide.bs.collapse");if(c.default(this._element).trigger(t),!t.isDefaultPrevented()){var t=this._getDimension(),n=(this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",d.reflow(this._element),c.default(this._element).addClass(le).removeClass(ae+" "+p),this._triggerArray.length);if(0<n)for(var i=0;i<n;i++){var o=this._triggerArray[i],s=d.getSelectorFromElement(o);null===s||c.default([].slice.call(document.querySelectorAll(s))).hasClass(p)||c.default(o).addClass(ue).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[t]="";t=d.getTransitionDurationFromElement(this._element);c.default(this._element).one(d.TRANSITION_END,function(){e.setTransitioning(!1),c.default(e._element).removeClass(le).addClass(ae).trigger("hidden.bs.collapse")}).emulateTransitionEnd(t)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){c.default.removeData(this._element,f),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=a({},se,e)).toggle=Boolean(e.toggle),d.typeCheckConfig(u,e,re),e},e._getDimension=function(){return c.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this,t=(d.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent),'[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'),t=[].slice.call(e.querySelectorAll(t));return c.default(t).each(function(e,t){n._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){e=c.default(e).hasClass(p);t.length&&c.default(t).toggleClass(ue,!e).attr("aria-expanded",e)},s._getTargetFromElement=function(e){e=d.getSelectorFromElement(e);return e?document.querySelector(e):null},s._jQueryInterface=function(i){return this.each(function(){var e=c.default(this),t=e.data(f),n=a({},se,e.data(),"object"==typeof i&&i?i:{});if(!t&&n.toggle&&"string"==typeof i&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new s(this,n),e.data(f,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(s,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return se}}]),s}(),he=(c.default(document).on("click.bs.collapse.data-api",ce,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=c.default(this),e=d.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(e));c.default(e).each(function(){var e=c.default(this),t=e.data(f)?"toggle":n.data();de._jQueryInterface.call(e,t)})}),c.default.fn[u]=de._jQueryInterface,c.default.fn[u].Constructor=de,c.default.fn[u].noConflict=function(){return c.default.fn[u]=oe,de._jQueryInterface},"undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator),fe=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(he&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var pe=he&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},fe))}};function me(e){return e&&"[object Function]"==={}.toString.call(e)}function m(e,t){if(1!==e.nodeType)return[];e=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?e[t]:e}function ge(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ve(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=m(e),n=t.overflow,i=t.overflowX,t=t.overflowY;return/(auto|scroll|overlay)/.test(n+t+i)?e:ve(ge(e))}function ye(e){return e&&e.referenceNode?e.referenceNode:e}var be=he&&!(!window.MSInputMethodContext||!document.documentMode),we=he&&/MSIE 10/.test(navigator.userAgent);function g(e){return 11===e?be:10!==e&&be||we}function v(e){if(!e)return document.documentElement;for(var t=g(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===m(n,"position")?v(n):n:(e?e.ownerDocument:document).documentElement}function _e(e){return null!==e.parentNode?_e(e.parentNode):e}function Te(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,n=n?t:e,o=document.createRange(),o=(o.setStart(i,0),o.setEnd(n,0),o.commonAncestorContainer);if(e!==o&&t!==o||i.contains(n))return"BODY"===(n=(i=o).nodeName)||"HTML"!==n&&v(i.firstElementChild)!==i?v(o):o;n=_e(e);return n.host?Te(n.host,t):Te(e,_e(t).host)}function y(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return"BODY"===n||"HTML"===n?(n=e.ownerDocument.documentElement,(e.ownerDocument.scrollingElement||n)[t]):e[t]}function Ce(e,t){var t="x"===t?"Left":"Top",n="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"])+parseFloat(e["border"+n+"Width"])}function xe(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],g(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function Se(e){var t=e.body,e=e.documentElement,n=g(10)&&getComputedStyle(e);return{height:xe("Height",t,e,n),width:xe("Width",t,e,n)}}t=function(e,t,n){return t&&De(e.prototype,t),n&&De(e,n),e};function De(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function _(e){return w({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ke(e){var t={};try{g(10)?(t=e.getBoundingClientRect(),n=y(e,"top"),i=y(e,"left"),t.top+=n,t.left+=i,t.bottom+=n,t.right+=i):t=e.getBoundingClientRect()}catch(e){}var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?Se(e.ownerDocument):{},t=i.width||e.clientWidth||n.width,i=i.height||e.clientHeight||n.height,t=e.offsetWidth-t,i=e.offsetHeight-i;return(t||i)&&(t-=Ce(e=m(e),"x"),i-=Ce(e,"y"),n.width-=t,n.height-=i),_(n)}function Ee(e,t,n){var n=2<arguments.length&&void 0!==n&&n,i=g(10),o="HTML"===t.nodeName,s=ke(e),r=ke(t),e=ve(e),a=m(t),l=parseFloat(a.borderTopWidth),u=parseFloat(a.borderLeftWidth),r=(n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0)),_({top:s.top-r.top-l,left:s.left-r.left-u,width:s.width,height:s.height}));return r.marginTop=0,r.marginLeft=0,!i&&o&&(s=parseFloat(a.marginTop),o=parseFloat(a.marginLeft),r.top-=l-s,r.bottom-=l-s,r.left-=u-o,r.right-=u-o,r.marginTop=s,r.marginLeft=o),r=(i&&!n?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,n){var n=2<arguments.length&&void 0!==n&&n,i=y(t,"top"),t=y(t,"left"),n=n?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=t*n,e.right+=t*n,e}(r,t):r}function Me(e){if(!e||!e.parentElement||g())return document.documentElement;for(var t=e.parentElement;t&&"none"===m(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ae(e,t,n,i,o){var s,o=4<arguments.length&&void 0!==o&&o,r={top:0,left:0},a=o?Me(e):Te(e,ye(t)),a=("viewport"===i?r=function(e,t){var t=1<arguments.length&&void 0!==t&&t,n=e.ownerDocument.documentElement,e=Ee(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:y(n),t=t?0:y(n,"left");return _({top:s-e.top+e.marginTop,left:t-e.left+e.marginLeft,width:i,height:o})}(a,o):(s=void 0,"scrollParent"===i?"BODY"===(s=ve(ge(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i,t=Ee(s,a,o),"HTML"!==s.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===m(t,"position"))return!0;n=ge(t);return!!n&&e(n)}(a)?r=t:(o=(i=Se(e.ownerDocument)).height,s=i.width,r.top+=t.top-t.marginTop,r.bottom=o+t.top,r.left+=t.left-t.marginLeft,r.right=s+t.left)),"number"==typeof(n=n||0));return r.left+=a?n:n.left||0,r.top+=a?n:n.top||0,r.right-=a?n:n.right||0,r.bottom-=a?n:n.bottom||0,r}function Ie(e,t,n,i,o,s){s=5<arguments.length&&void 0!==s?s:0;if(-1===e.indexOf("auto"))return e;var i=Ae(n,i,s,o),r={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},s=Object.keys(r).map(function(e){return w({key:e},r[e],{area:(e=r[e]).width*e.height})}).sort(function(e,t){return t.area-e.area}),o=s.filter(function(e){var t=e.width,e=e.height;return t>=n.clientWidth&&e>=n.clientHeight}),t=(0<o.length?o:s)[0].key,i=e.split("-")[1];return t+(i?"-"+i:"")}function Ne(e,t,n,i){i=3<arguments.length&&void 0!==i?i:null;return Ee(n,i?Me(t):Te(t,ye(n)),i)}function $e(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+t,height:e.offsetHeight+n}}function Oe(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function He(e,t,n){n=n.split("-")[0];var e=$e(e),i={width:e.width,height:e.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",r=o?"left":"top",a=o?"height":"width",o=o?"width":"height";return i[s]=t[s]+t[a]/2-e[a]/2,i[r]=n===r?t[r]-e[o]:t[Oe(r)],i}function je(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Le(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=je(e,function(e){return e[t]===n});return e.indexOf(i)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&me(t)&&(n.offsets.popper=_(n.offsets.popper),n.offsets.reference=_(n.offsets.reference),n=t(n,e))}),n}function Pe(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function Fe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],o=o?""+o+n:e;if(void 0!==document.body.style[o])return o}return null}function Ue(e){e=e.ownerDocument;return e?e.defaultView:window}function qe(e,t,n,i){n.updateBound=i,Ue(e).addEventListener("resize",n.updateBound,{passive:!0});i=ve(e);return function e(t,n,i,o){var s="BODY"===t.nodeName,t=s?t.ownerDocument.defaultView:t;t.addEventListener(n,i,{passive:!0}),s||e(ve(t.parentNode),n,i,o),o.push(t)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Re(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Ue(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Be(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function We(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&Be(i[e])&&(t="px"),n.style[e]=i[e]+t})}function Ve(e,t){function n(e){return e}var i=e.offsets,o=i.popper,i=i.reference,s=Math.round,r=Math.floor,i=s(i.width),a=s(o.width),l=-1!==["left","right"].indexOf(e.placement),e=-1!==e.placement.indexOf("-"),l=t?l||e||i%2==a%2?s:r:n,r=t?s:n;return{left:l(i%2==1&&a%2==1&&!e&&t?o.left-1:o.left),top:r(o.top),bottom:r(o.bottom),right:l(o.right)}}var ze=he&&/Firefox/i.test(navigator.userAgent);function Ye(e,t,n){var i,o=je(e,function(e){return e.name===t}),e=!!o&&e.some(function(e){return e.name===n&&e.enabled&&e.order<o.order});return e||(i="`"+t+"`",console.warn("`"+n+"`"+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")),e}var Qe=["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"],Xe=Qe.slice(3);function Ke(e,t){t=1<arguments.length&&void 0!==t&&t,e=Xe.indexOf(e),e=Xe.slice(e+1).concat(Xe.slice(0,e));return t?e.reverse():e}var Ze="flip",Ge="clockwise",Je="counterclockwise";function et(e,a,l,t){var o=[0,0],i=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(je(t,function(e){return-1!==e.search(/,|\s/)})),n=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1!==e?[t.slice(0,e).concat([t[e].split(n)[0]]),[t[e].split(n)[1]].concat(t.slice(e+1))]:[t]).map(function(e,t){var r=(1===t?!i:i)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return t=r,n=a,i=l,o=+(s=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],s=s[2],o?0===s.indexOf("%")?_("%p"===s?n:i)[t]/100*o:"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e;var t,n,i,o,s})}).forEach(function(n,i){n.forEach(function(e,t){Be(e)&&(o[i]+=e*("-"===n[t-1]?-1:1))})}),o}var tt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,i,o=e.placement,s=o.split("-")[0];return(o=o.split("-")[1])&&(t=(n=e.offsets).reference,n=n.popper,i=(s=-1!==["bottom","top"].indexOf(s))?"width":"height",s={start:b({},s=s?"left":"top",t[s]),end:b({},s,t[s]+t[i]-n[i])},e.offsets.popper=w({},n,s[o])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,n=e.placement,i=(o=e.offsets).popper,o=o.reference,n=n.split("-")[0],s=void 0,s=Be(+t)?[+t,0]:et(t,i,o,n);return"left"===n?(i.top+=s[0],i.left-=s[1]):"right"===n?(i.top+=s[0],i.left+=s[1]):"top"===n?(i.left+=s[0],i.top-=s[1]):"bottom"===n&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||v(e.instance.popper),n=(e.instance.reference===t&&(t=v(t)),Fe("transform")),o=e.instance.popper.style,s=o.top,r=o.left,a=o[n],l=(o.top="",o.left="",o[n]="",Ae(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed)),t=(o.top=s,o.left=r,o[n]=a,i.boundaries=l,i.priority),u=e.offsets.popper,c={primary:function(e){var t=u[e];return u[e]<l[e]&&!i.escapeWithReference&&(t=Math.max(u[e],l[e])),b({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=u[t];return u[e]>l[e]&&!i.escapeWithReference&&(n=Math.min(u[t],l[e]-("right"===e?u.width:u.height))),b({},t,n)}};return t.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=w({},u,c[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=(n=e.offsets).popper,n=n.reference,i=e.placement.split("-")[0],o=Math.floor,s=(i=-1!==["top","bottom"].indexOf(i))?"right":"bottom",r=i?"left":"top",i=i?"width":"height";return t[s]<o(n[r])&&(e.offsets.popper[r]=o(n[r])-t[i]),t[r]>o(n[s])&&(e.offsets.popper[r]=o(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(Ye(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],i=e.offsets,o=i.popper,i=i.reference,n=-1!==["left","right"].indexOf(n),s=n?"height":"width",r=n?"Top":"Left",a=r.toLowerCase(),l=n?"left":"top",n=n?"bottom":"right",u=$e(t)[s],n=(i[n]-u<o[a]&&(e.offsets.popper[a]-=o[a]-(i[n]-u)),i[a]+u>o[n]&&(e.offsets.popper[a]+=i[a]+u-o[n]),e.offsets.popper=_(e.offsets.popper),i[a]+i[s]/2-u/2),i=m(e.instance.popper),c=parseFloat(i["margin"+r]),i=parseFloat(i["border"+r+"Width"]),r=n-e.offsets.popper[a]-c-i,r=Math.max(Math.min(o[s]-u,r),0);e.arrowElement=t,e.offsets.arrow=(b(n={},a,Math.round(r)),b(n,l,""),n)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(u,c){if(!(Pe(u.instance.modifiers,"inner")||u.flipped&&u.placement===u.originalPlacement)){var d=Ae(u.instance.popper,u.instance.reference,c.padding,c.boundariesElement,u.positionFixed),h=u.placement.split("-")[0],f=Oe(h),p=u.placement.split("-")[1]||"",m=[];switch(c.behavior){case Ze:m=[h,f];break;case Ge:m=Ke(h);break;case Je:m=Ke(h,!0);break;default:m=c.behavior}m.forEach(function(e,t){if(h!==e||m.length===t+1)return u;h=u.placement.split("-")[0],f=Oe(h);var e=u.offsets.popper,n=u.offsets.reference,i=Math.floor,n="left"===h&&i(e.right)>i(n.left)||"right"===h&&i(e.left)<i(n.right)||"top"===h&&i(e.bottom)>i(n.top)||"bottom"===h&&i(e.top)<i(n.bottom),o=i(e.left)<i(d.left),s=i(e.right)>i(d.right),r=i(e.top)<i(d.top),e=i(e.bottom)>i(d.bottom),i="left"===h&&o||"right"===h&&s||"top"===h&&r||"bottom"===h&&e,a=-1!==["top","bottom"].indexOf(h),l=!!c.flipVariations&&(a&&"start"===p&&o||a&&"end"===p&&s||!a&&"start"===p&&r||!a&&"end"===p&&e),s=!!c.flipVariationsByContent&&(a&&"start"===p&&s||a&&"end"===p&&o||!a&&"start"===p&&e||!a&&"end"===p&&r),o=l||s;(n||i||o)&&(u.flipped=!0,(n||i)&&(h=m[t+1]),o&&(p="end"===(e=p)?"start":"start"===e?"end":e),u.placement=h+(p?"-"+p:""),u.offsets.popper=w({},u.offsets.popper,He(u.instance.popper,u.offsets.reference,u.placement)),u=Le(u.instance.modifiers,u,"flip"))})}return u},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=(o=e.offsets).popper,o=o.reference,s=-1!==["left","right"].indexOf(n),r=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(r?i[s?"width":"height"]:0),e.placement=Oe(t),e.offsets.popper=_(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(Ye(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,n=je(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,s=(void 0!==(s=je(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),void 0!==s?s:t.gpuAcceleration),r=ke(t=v(e.instance.popper)),o={position:o.position},a=Ve(e,window.devicePixelRatio<2||!ze),n="bottom"===n?"top":"bottom",i="right"===i?"left":"right",l=Fe("transform"),u=void 0,c=void 0,c="bottom"==n?"HTML"===t.nodeName?-t.clientHeight+a.bottom:-r.height+a.bottom:a.top,u="right"==i?"HTML"===t.nodeName?-t.clientWidth+a.right:-r.width+a.right:a.left,r=(s&&l?(o[l]="translate3d("+u+"px, "+c+"px, 0)",o[n]=0,o[i]=0,o.willChange="transform"):(t="right"==i?-1:1,o[n]=c*("bottom"==n?-1:1),o[i]=u*t,o.willChange=n+", "+i),{"x-placement":e.placement});return e.attributes=w({},r,e.attributes),e.styles=w({},o,e.styles),e.arrowStyles=w({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return We(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&We(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){return o=Ne(o,t,e,n.positionFixed),o=Ie(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding),t.setAttribute("x-placement",o),We(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},s=(t(T,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=Ne(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ie(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=He(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Le(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Pe(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[Fe("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=qe(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Re.call(this)}}]),T);function T(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=this,s=T;if(!(o instanceof s))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=pe(this.update.bind(this)),this.options=w({},T.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(w({},T.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=w({},T.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return w({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&me(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}s.Utils=("undefined"!=typeof window?window:global).PopperUtils,s.placements=Qe,s.Defaults=tt;var C="dropdown",nt="bs.dropdown",it="."+nt,t=".data-api",ot=c.default.fn[C],st=new RegExp("38|40|27"),rt="hide"+it,at="hidden"+it,Qe="click"+it+t,tt="keydown"+it+t,lt="disabled",x="show",ut="dropdown-menu-right",ct='[data-toggle="dropdown"]',dt=".dropdown-menu",ht={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},ft={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},S=function(){function u(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=u.prototype;return e.toggle=function(){var e;this._element.disabled||c.default(this._element).hasClass(lt)||(e=c.default(this._menu).hasClass(x),u._clearMenus(),e||this.show(!0))},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||c.default(this._element).hasClass(lt)||c.default(this._menu).hasClass(x))){var t={relatedTarget:this._element},n=c.default.Event("show.bs.dropdown",t),i=u._getParentFromElement(this._element);if(c.default(i).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===s)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");n=this._element;"parent"===this._config.reference?n=i:d.isElement(this._config.reference)&&(n=this._config.reference,void 0!==this._config.reference.jquery&&(n=this._config.reference[0])),"scrollParent"!==this._config.boundary&&c.default(i).addClass("position-static"),this._popper=new s(n,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===c.default(i).closest(".navbar-nav").length&&c.default(document.body).children().on("mouseover",null,c.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),c.default(this._menu).toggleClass(x),c.default(i).toggleClass(x).trigger(c.default.Event("shown.bs.dropdown",t))}}},e.hide=function(){var e,t,n;this._element.disabled||c.default(this._element).hasClass(lt)||!c.default(this._menu).hasClass(x)||(e={relatedTarget:this._element},t=c.default.Event(rt,e),n=u._getParentFromElement(this._element),c.default(n).trigger(t),t.isDefaultPrevented()||(this._popper&&this._popper.destroy(),c.default(this._menu).toggleClass(x),c.default(n).toggleClass(x).trigger(c.default.Event(at,e))))},e.dispose=function(){c.default.removeData(this._element,nt),c.default(this._element).off(it),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;c.default(this._element).on("click.bs.dropdown",function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(e){return e=a({},this.constructor.Default,c.default(this._element).data(),e),d.typeCheckConfig(C,e,this.constructor.DefaultType),e},e._getMenuElement=function(){var e;return this._menu||(e=u._getParentFromElement(this._element))&&(this._menu=e.querySelector(dt)),this._menu},e._getPlacement=function(){var e=c.default(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?t=c.default(this._menu).hasClass(ut)?"top-end":"top-start":e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":c.default(this._menu).hasClass(ut)&&(t="bottom-end"),t},e._detectNavbar=function(){return 0<c.default(this._element).closest(".navbar").length},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),a({},e,this._config.popperConfig)},u._jQueryInterface=function(t){return this.each(function(){var e=c.default(this).data(nt);if(e||(e=new u(this,"object"==typeof t?t:null),c.default(this).data(nt,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},u._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(ct)),n=0,i=t.length;n<i;n++){var o,s,r=u._getParentFromElement(t[n]),a=c.default(t[n]).data(nt),l={relatedTarget:t[n]};e&&"click"===e.type&&(l.clickEvent=e),a&&(o=a._menu,!c.default(r).hasClass(x)||e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&c.default.contains(r,e.target)||(s=c.default.Event(rt,l),c.default(r).trigger(s),s.isDefaultPrevented()||("ontouchstart"in document.documentElement&&c.default(document.body).children().off("mouseover",null,c.default.noop),t[n].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),c.default(o).removeClass(x),c.default(r).removeClass(x).trigger(c.default.Event(at,l)))))}},u._getParentFromElement=function(e){var t,n=d.getSelectorFromElement(e);return(t=n?document.querySelector(n):t)||e.parentNode},u._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||c.default(e.target).closest(dt).length)):st.test(e.which))&&!this.disabled&&!c.default(this).hasClass(lt)){var t=u._getParentFromElement(this),n=c.default(t).hasClass(x);if(n||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!n||27===e.which||32===e.which)return 27===e.which&&c.default(t.querySelector(ct)).trigger("focus"),void c.default(this).trigger("click");n=[].slice.call(t.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(e){return c.default(e).is(":visible")});0!==n.length&&(t=n.indexOf(e.target),38===e.which&&0<t&&t--,40===e.which&&t<n.length-1&&t++,n[t=t<0?0:t].focus())}}},r(u,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return ht}},{key:"DefaultType",get:function(){return ft}}]),u}(),D=(c.default(document).on(tt,ct,S._dataApiKeydownHandler).on(tt,dt,S._dataApiKeydownHandler).on(Qe+" keyup.bs.dropdown.data-api",S._clearMenus).on(Qe,ct,function(e){e.preventDefault(),e.stopPropagation(),S._jQueryInterface.call(c.default(this),"toggle")}).on(Qe,".dropdown form",function(e){e.stopPropagation()}),c.default.fn[C]=S._jQueryInterface,c.default.fn[C].Constructor=S,c.default.fn[C].noConflict=function(){return c.default.fn[C]=ot,S._jQueryInterface},"modal"),pt="bs.modal",k="."+pt,mt=c.default.fn[D],gt={backdrop:!0,keyboard:!0,focus:!0,show:!0},vt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},yt="hidden"+k,bt="show"+k,wt="focusin"+k,_t="resize"+k,Tt="click.dismiss"+k,Ct="keydown.dismiss"+k,xt="mousedown.dismiss"+k,St="modal-open",E="fade",Dt="show",kt="modal-static",Et=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Mt=".sticky-top",At=function(){function o(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=o.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t,n=this;this._isShown||this._isTransitioning||(c.default(this._element).hasClass(E)&&(this._isTransitioning=!0),t=c.default.Event(bt,{relatedTarget:e}),c.default(this._element).trigger(t),this._isShown||t.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),c.default(this._element).on(Tt,'[data-dismiss="modal"]',function(e){return n.hide(e)}),c.default(this._dialog).on(xt,function(){c.default(n._element).one("mouseup.dismiss.bs.modal",function(e){c.default(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)})))},e.hide=function(e){var t=this;e&&e.preventDefault(),this._isShown&&!this._isTransitioning&&(e=c.default.Event("hide.bs.modal"),c.default(this._element).trigger(e),this._isShown&&!e.isDefaultPrevented()&&(this._isShown=!1,(e=c.default(this._element).hasClass(E))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),c.default(document).off(wt),c.default(this._element).removeClass(Dt),c.default(this._element).off(Tt),c.default(this._dialog).off(xt),e?(e=d.getTransitionDurationFromElement(this._element),c.default(this._element).one(d.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(e)):this._hideModal()))},e.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return c.default(e).off(k)}),c.default(document).off(wt),c.default.removeData(this._element,pt),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},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=a({},gt,e),d.typeCheckConfig(D,e,vt),e},e._triggerBackdropTransition=function(){var e,t,n=this,i=c.default.Event("hidePrevented.bs.modal");c.default(this._element).trigger(i),i.isDefaultPrevented()||((e=this._element.scrollHeight>document.documentElement.clientHeight)||(this._element.style.overflowY="hidden"),this._element.classList.add(kt),t=d.getTransitionDurationFromElement(this._dialog),c.default(this._element).off(d.TRANSITION_END),c.default(this._element).one(d.TRANSITION_END,function(){n._element.classList.remove(kt),e||c.default(n._element).one(d.TRANSITION_END,function(){n._element.style.overflowY=""}).emulateTransitionEnd(n._element,t)}).emulateTransitionEnd(t),this._element.focus())},e._showElement=function(e){function t(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,c.default(n._element).trigger(s)}var n=this,i=c.default(this._element).hasClass(E),o=this._dialog?this._dialog.querySelector(".modal-body"):null,s=(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),this._element.setAttribute("role","dialog"),c.default(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,i&&d.reflow(this._element),c.default(this._element).addClass(Dt),this._config.focus&&this._enforceFocus(),c.default.Event("shown.bs.modal",{relatedTarget:e}));i?(o=d.getTransitionDurationFromElement(this._dialog),c.default(this._dialog).one(d.TRANSITION_END,t).emulateTransitionEnd(o)):t()},e._enforceFocus=function(){var t=this;c.default(document).off(wt).on(wt,function(e){document!==e.target&&t._element!==e.target&&0===c.default(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown?c.default(this._element).on(Ct,function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()}):this._isShown||c.default(this._element).off(Ct)},e._setResizeEvent=function(){var t=this;this._isShown?c.default(window).on(_t,function(e){return t.handleUpdate(e)}):c.default(window).off(_t)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){c.default(document.body).removeClass(St),e._resetAdjustments(),e._resetScrollbar(),c.default(e._element).trigger(yt)})},e._removeBackdrop=function(){this._backdrop&&(c.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t,n=this,i=c.default(this._element).hasClass(E)?E:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),c.default(this._backdrop).appendTo(document.body),c.default(this._element).on(Tt,function(e){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===n._config.backdrop?n._triggerBackdropTransition():n.hide())}),i&&d.reflow(this._backdrop),c.default(this._backdrop).addClass(Dt),e&&(i?(i=d.getTransitionDurationFromElement(this._backdrop),c.default(this._backdrop).one(d.TRANSITION_END,e).emulateTransitionEnd(i)):e())):!this._isShown&&this._backdrop?(c.default(this._backdrop).removeClass(Dt),i=function(){n._removeBackdrop(),e&&e()},c.default(this._element).hasClass(E)?(t=d.getTransitionDurationFromElement(this._backdrop),c.default(this._backdrop).one(d.TRANSITION_END,i).emulateTransitionEnd(t)):i()):e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var e,t,o=this;this._isBodyOverflowing&&(e=[].slice.call(document.querySelectorAll(Et)),t=[].slice.call(document.querySelectorAll(Mt)),c.default(e).each(function(e,t){var n=t.style.paddingRight,i=c.default(t).css("padding-right");c.default(t).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),c.default(t).each(function(e,t){var n=t.style.marginRight,i=c.default(t).css("margin-right");c.default(t).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")}),e=document.body.style.paddingRight,t=c.default(document.body).css("padding-right"),c.default(document.body).data("padding-right",e).css("padding-right",parseFloat(t)+this._scrollbarWidth+"px")),c.default(document.body).addClass(St)},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(Et)),e=(c.default(e).each(function(e,t){var n=c.default(t).data("padding-right");c.default(t).removeData("padding-right"),t.style.paddingRight=n||""}),[].slice.call(document.querySelectorAll(Mt))),e=(c.default(e).each(function(e,t){var n=c.default(t).data("margin-right");void 0!==n&&c.default(t).css("margin-right",n).removeData("margin-right")}),c.default(document.body).data("padding-right"));c.default(document.body).removeData("padding-right"),document.body.style.paddingRight=e||""},e._getScrollbarWidth=function(){var e=document.createElement("div"),t=(e.className="modal-scrollbar-measure",document.body.appendChild(e),e.getBoundingClientRect().width-e.clientWidth);return document.body.removeChild(e),t},o._jQueryInterface=function(n,i){return this.each(function(){var e=c.default(this).data(pt),t=a({},gt,c.default(this).data(),"object"==typeof n&&n?n:{});if(e||(e=new o(this,t),c.default(this).data(pt,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](i)}else t.show&&e.show(i)})},r(o,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return gt}}]),o}(),It=(c.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t,n=this,i=d.getSelectorFromElement(this),i=(i&&(t=document.querySelector(i)),c.default(t).data(pt)?"toggle":a({},c.default(t).data(),c.default(this).data())),o=("A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault(),c.default(t).one(bt,function(e){e.isDefaultPrevented()||o.one(yt,function(){c.default(n).is(":visible")&&n.focus()})}));At._jQueryInterface.call(c.default(t),i,this)}),c.default.fn[D]=At._jQueryInterface,c.default.fn[D].Constructor=At,c.default.fn[D].noConflict=function(){return c.default.fn[D]=mt,At._jQueryInterface},["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),t={"*":["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","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Nt=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,$t=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Ot(e,s,t){if(0===e.length)return e;if(t&&"function"==typeof t)return t(e);for(var t=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(s),a=[].slice.call(t.body.querySelectorAll("*")),n=function(e,t){var n=a[e],e=n.nodeName.toLowerCase();if(-1===r.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var i=[].slice.call(n.attributes),o=[].concat(s["*"]||[],s[e]||[]);i.forEach(function(e){!function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===It.indexOf(n)||Boolean(e.nodeValue.match(Nt)||e.nodeValue.match($t));for(var i=t.filter(function(e){return e instanceof RegExp}),o=0,s=i.length;o<s;o++)if(n.match(i[o]))return 1}(e,o)&&n.removeAttribute(e.nodeName)})},i=0,o=a.length;i<o;i++)n(i);return t.body.innerHTML}var M="tooltip",Ht="bs.tooltip",A="."+Ht,jt=c.default.fn[M],Lt="bs-tooltip",Pt=new RegExp("(^|\\s)"+Lt+"\\S+","g"),Ft=["sanitize","whiteList","sanitizeFn"],Ut={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)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},qt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Rt={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",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:t,popperConfig:null},Bt="show",Wt={HIDE:"hide"+A,HIDDEN:"hidden"+A,SHOW:"show"+A,SHOWN:"shown"+A,INSERTED:"inserted"+A,CLICK:"click"+A,FOCUSIN:"focusin"+A,FOCUSOUT:"focusout"+A,MOUSEENTER:"mouseenter"+A,MOUSELEAVE:"mouseleave"+A},Vt="fade",zt="show",Yt="hover",Qt="focus",I=function(){function o(e,t){if(void 0===s)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=o.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){var t,n;this._isEnabled&&(e?(t=this.constructor.DATA_KEY,(n=c.default(e.currentTarget).data(t))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),c.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):c.default(this.getTipElement()).hasClass(zt)?this._leave(null,this):this._enter(null,this))},e.dispose=function(){clearTimeout(this._timeout),c.default.removeData(this.element,this.constructor.DATA_KEY),c.default(this.element).off(this.constructor.EVENT_KEY),c.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&c.default(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},e.show=function(){var t=this;if("none"===c.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e,n,i=c.default.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(c.default(this.element).trigger(i),n=d.findShadowRoot(this.element),n=c.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element),!i.isDefaultPrevented()&&n&&(i=this.getTipElement(),n=d.getUID(this.constructor.NAME),i.setAttribute("id",n),this.element.setAttribute("aria-describedby",n),this.setContent(),this.config.animation&&c.default(i).addClass(Vt),n="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,n=this._getAttachment(n),this.addAttachmentClass(n),e=this._getContainer(),c.default(i).data(this.constructor.DATA_KEY,this),c.default.contains(this.element.ownerDocument.documentElement,this.tip)||c.default(i).appendTo(e),c.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new s(this.element,i,this._getPopperConfig(n)),c.default(i).addClass(zt),c.default(i).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&c.default(document.body).children().on("mouseover",null,c.default.noop),e=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,c.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)},c.default(this.tip).hasClass(Vt)?(n=d.getTransitionDurationFromElement(this.tip),c.default(this.tip).one(d.TRANSITION_END,e).emulateTransitionEnd(n)):e()))},e.hide=function(e){function t(){n._hoverState!==Bt&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),c.default(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),o=c.default.Event(this.constructor.Event.HIDE);c.default(this.element).trigger(o),o.isDefaultPrevented()||(c.default(i).removeClass(zt),"ontouchstart"in document.documentElement&&c.default(document.body).children().off("mouseover",null,c.default.noop),this._activeTrigger.click=!1,this._activeTrigger[Qt]=!1,this._activeTrigger[Yt]=!1,c.default(this.tip).hasClass(Vt)?(o=d.getTransitionDurationFromElement(i),c.default(i).one(d.TRANSITION_END,t).emulateTransitionEnd(o)):t(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){c.default(this.getTipElement()).addClass(Lt+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||c.default(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(c.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),c.default(e).removeClass(Vt+" "+zt)},e.setElementContent=function(e,t){"object"==typeof t&&(t.nodeType||t.jquery)?this.config.html?c.default(t).parent().is(e)||e.empty().append(t):e.text(c.default(t).text()):this.config.html?(this.config.sanitize&&(t=Ot(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t)},e.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getPopperConfig=function(e){var t=this;return a({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:d.isElement(this.config.container)?c.default(this.config.container):c.default(document).find(this.config.container)},e._getAttachment=function(e){return qt[e.toUpperCase()]},e._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(e){var t;"click"===e?c.default(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(e){return n.toggle(e)}):"manual"!==e&&(t=e===Yt?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,e=e===Yt?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,c.default(n.element).on(t,n.config.selector,function(e){return n._enter(e)}).on(e,n.config.selector,function(e){return n._leave(e)}))}),this._hideModalHandler=function(){n.element&&n.hide()},c.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||c.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),c.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Qt:Yt]=!0),c.default(t.getTipElement()).hasClass(zt)||t._hoverState===Bt?t._hoverState=Bt:(clearTimeout(t._timeout),t._hoverState=Bt,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Bt&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||c.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),c.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Qt:Yt]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=c.default(this.element).data();return Object.keys(t).forEach(function(e){-1!==Ft.indexOf(e)&&delete t[e]}),"number"==typeof(e=a({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),d.typeCheckConfig(M,e,this.constructor.DefaultType),e.sanitize&&(e.template=Ot(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=c.default(this.getTipElement()),t=e.attr("class").match(Pt);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(c.default(e).removeClass(Vt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},o._jQueryInterface=function(i){return this.each(function(){var e=c.default(this),t=e.data(Ht),n="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new o(this,n),e.data(Ht,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(o,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Rt}},{key:"NAME",get:function(){return M}},{key:"DATA_KEY",get:function(){return Ht}},{key:"Event",get:function(){return Wt}},{key:"EVENT_KEY",get:function(){return A}},{key:"DefaultType",get:function(){return Ut}}]),o}(),N=(c.default.fn[M]=I._jQueryInterface,c.default.fn[M].Constructor=I,c.default.fn[M].noConflict=function(){return c.default.fn[M]=jt,I._jQueryInterface},"popover"),Xt="bs.popover",$="."+Xt,Kt=c.default.fn[N],Zt="bs-popover",Gt=new RegExp("(^|\\s)"+Zt+"\\S+","g"),Jt=a({},I.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>'}),en=a({},I.DefaultType,{content:"(string|element|function)"}),tn={HIDE:"hide"+$,HIDDEN:"hidden"+$,SHOW:"show"+$,SHOWN:"shown"+$,INSERTED:"inserted"+$,CLICK:"click"+$,FOCUSIN:"focusin"+$,FOCUSOUT:"focusout"+$,MOUSEENTER:"mouseenter"+$,MOUSELEAVE:"mouseleave"+$},nn=function(e){var t;function i(){return e.apply(this,arguments)||this}t=e,(n=i).prototype=Object.create(t.prototype),(n.prototype.constructor=n).__proto__=t;var n=i.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(e){c.default(this.getTipElement()).addClass(Zt+"-"+e)},n.getTipElement=function(){return this.tip=this.tip||c.default(this.config.template)[0],this.tip},n.setContent=function(){var e=c.default(this.getTipElement()),t=(this.setElementContent(e.find(".popover-header"),this.getTitle()),this._getContent());"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var e=c.default(this.getTipElement()),t=e.attr("class").match(Gt);null!==t&&0<t.length&&e.removeClass(t.join(""))},i._jQueryInterface=function(n){return this.each(function(){var e=c.default(this).data(Xt),t="object"==typeof n?n:null;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),c.default(this).data(Xt,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return Jt}},{key:"NAME",get:function(){return N}},{key:"DATA_KEY",get:function(){return Xt}},{key:"Event",get:function(){return tn}},{key:"EVENT_KEY",get:function(){return $}},{key:"DefaultType",get:function(){return en}}]),i}(I),O=(c.default.fn[N]=nn._jQueryInterface,c.default.fn[N].Constructor=nn,c.default.fn[N].noConflict=function(){return c.default.fn[N]=Kt,nn._jQueryInterface},"scrollspy"),on="bs.scrollspy",sn="."+on,rn=c.default.fn[O],an={offset:10,method:"auto",target:""},ln={offset:"number",method:"string",target:"(string|element)"},H="active",un=".nav, .list-group",cn=".nav-link",dn=".list-group-item",hn="position",fn=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+cn+","+this._config.target+" "+dn+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,c.default(this._scrollElement).on("scroll.bs.scrollspy",function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":hn,i="auto"===this._config.method?e:this._config.method,o=i===hn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,e=d.getSelectorFromElement(e);if(t=e?document.querySelector(e):t){var n=t.getBoundingClientRect();if(n.width||n.height)return[c.default(t)[i]().top+o,e]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){c.default.removeData(this._element,on),c.default(this._scrollElement).off(sn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){var t;return"string"!=typeof(e=a({},an,"object"==typeof e&&e?e:{})).target&&d.isElement(e.target)&&((t=c.default(e.target).attr("id"))||(t=d.getUID(O),c.default(e.target).attr("id",t)),e.target="#"+t),d.typeCheckConfig(O,e,ln),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e)return t=this._targets[this._targets.length-1],void(this._activeTarget!==t&&this._activate(t));if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),e=c.default([].slice.call(document.querySelectorAll(e.join(","))));e.hasClass("dropdown-item")?(e.closest(".dropdown").find(".dropdown-toggle").addClass(H),e.addClass(H)):(e.addClass(H),e.parents(un).prev(cn+", "+dn).addClass(H),e.parents(un).prev(".nav-item").children(cn).addClass(H)),c.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(H)}).forEach(function(e){return e.classList.remove(H)})},n._jQueryInterface=function(t){return this.each(function(){var e=c.default(this).data(on);if(e||(e=new n(this,"object"==typeof t&&t),c.default(this).data(on,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return an}}]),n}(),pn=(c.default(window).on("load.bs.scrollspy.data-api",function(){for(var e=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=e.length;t--;){var n=c.default(e[t]);fn._jQueryInterface.call(n,n.data())}}),c.default.fn[O]=fn._jQueryInterface,c.default.fn[O].Constructor=fn,c.default.fn[O].noConflict=function(){return c.default.fn[O]=rn,fn._jQueryInterface},"bs.tab"),mn=c.default.fn.tab,gn="active",vn=".active",yn="> li > .active",bn=function(){function i(e){this._element=e}var e=i.prototype;return e.show=function(){var e,t,n,i,o,s,r=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&c.default(this._element).hasClass(gn)||c.default(this._element).hasClass("disabled")||(t=c.default(this._element).closest(".nav, .list-group")[0],n=d.getSelectorFromElement(this._element),t&&(o="UL"===t.nodeName||"OL"===t.nodeName?yn:vn,i=(i=c.default.makeArray(c.default(t).find(o)))[i.length-1]),o=c.default.Event("hide.bs.tab",{relatedTarget:this._element}),s=c.default.Event("show.bs.tab",{relatedTarget:i}),i&&c.default(i).trigger(o),c.default(this._element).trigger(s),s.isDefaultPrevented()||o.isDefaultPrevented()||(n&&(e=document.querySelector(n)),this._activate(this._element,t),s=function(){var e=c.default.Event("hidden.bs.tab",{relatedTarget:r._element}),t=c.default.Event("shown.bs.tab",{relatedTarget:i});c.default(i).trigger(e),c.default(r._element).trigger(t)},e?this._activate(e,e.parentNode,s):s()))},e.dispose=function(){c.default.removeData(this._element,pn),this._element=null},e._activate=function(e,t,n){function i(){return o._transitionComplete(e,s,n)}var o=this,s=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?c.default(t).children(vn):c.default(t).find(yn))[0],t=n&&s&&c.default(s).hasClass("fade");s&&t?(t=d.getTransitionDurationFromElement(s),c.default(s).removeClass("show").one(d.TRANSITION_END,i).emulateTransitionEnd(t)):i()},e._transitionComplete=function(e,t,n){var i;t&&(c.default(t).removeClass(gn),(i=c.default(t.parentNode).find("> .dropdown-menu .active")[0])&&c.default(i).removeClass(gn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)),c.default(e).addClass(gn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),d.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&c.default(e.parentNode).hasClass("dropdown-menu")&&((i=c.default(e).closest(".dropdown")[0])&&(t=[].slice.call(i.querySelectorAll(".dropdown-toggle")),c.default(t).addClass(gn)),e.setAttribute("aria-expanded",!0)),n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=c.default(this),t=e.data(pn);if(t||(t=new i(this),e.data(pn,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),i}(),wn=(c.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),bn._jQueryInterface.call(c.default(this),"show")}),c.default.fn.tab=bn._jQueryInterface,c.default.fn.tab.Constructor=bn,c.default.fn.tab.noConflict=function(){return c.default.fn.tab=mn,bn._jQueryInterface},"toast"),_n="bs.toast",tt="."+_n,Tn=c.default.fn[wn],Cn="click.dismiss"+tt,xn="show",Sn="showing",Dn={animation:"boolean",autohide:"boolean",delay:"number"},kn={animation:!0,autohide:!0,delay:500},En=function(){function i(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=i.prototype;return e.show=function(){var e,t=this,n=c.default.Event("show.bs.toast");c.default(this._element).trigger(n),n.isDefaultPrevented()||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),n=function(){t._element.classList.remove(Sn),t._element.classList.add(xn),c.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))},this._element.classList.remove("hide"),d.reflow(this._element),this._element.classList.add(Sn),this._config.animation?(e=d.getTransitionDurationFromElement(this._element),c.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(e)):n())},e.hide=function(){var e;this._element.classList.contains(xn)&&(e=c.default.Event("hide.bs.toast"),c.default(this._element).trigger(e),e.isDefaultPrevented()||this._close())},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(xn)&&this._element.classList.remove(xn),c.default(this._element).off(Cn),c.default.removeData(this._element,_n),this._element=null,this._config=null},e._getConfig=function(e){return e=a({},kn,c.default(this._element).data(),"object"==typeof e&&e?e:{}),d.typeCheckConfig(wn,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;c.default(this._element).on(Cn,'[data-dismiss="toast"]',function(){return e.hide()})},e._close=function(){function e(){n._element.classList.add("hide"),c.default(n._element).trigger("hidden.bs.toast")}var t,n=this;this._element.classList.remove(xn),this._config.animation?(t=d.getTransitionDurationFromElement(this._element),c.default(this._element).one(d.TRANSITION_END,e).emulateTransitionEnd(t)):e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},i._jQueryInterface=function(n){return this.each(function(){var e=c.default(this),t=e.data(_n);if(t||(t=new i(this,"object"==typeof n&&n),e.data(_n,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},r(i,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return Dn}},{key:"Default",get:function(){return kn}}]),i}();c.default.fn[wn]=En._jQueryInterface,c.default.fn[wn].Constructor=En,c.default.fn[wn].noConflict=function(){return c.default.fn[wn]=Tn,En._jQueryInterface},e.Alert=n,e.Button=Y,e.Carousel=o,e.Collapse=de,e.Dropdown=S,e.Modal=At,e.Popover=nn,e.Scrollspy=fn,e.Tab=bn,e.Toast=En,e.Tooltip=I,e.Util=d,Object.defineProperty(e,"__esModule",{value:!0})}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(u){function e(){}function c(e,t){p.ev.on("mfp"+e+C,t)}function d(e,t,n,i){var o=document.createElement("div");return o.className="mfp-"+e,n&&(o.innerHTML=n),i?t&&t.appendChild(o):(o=u(o),t&&o.appendTo(t)),o}function h(e,t){p.ev.triggerHandler("mfp"+e,t),p.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),p.st.callbacks[e]&&p.st.callbacks[e].apply(p,u.isArray(t)?t:[t]))}function f(e){return e===n&&p.currTemplate.closeBtn||(p.currTemplate.closeBtn=u(p.st.closeMarkup.replace("%title%",p.st.tClose)),n=e),p.currTemplate.closeBtn}function s(){u.magnificPopup.instance||((p=new e).init(),u.magnificPopup.instance=p)}function r(){y&&(v.after(y.addClass(l)).detach(),y=null)}function o(){b&&u(document.body).removeClass(b)}function t(){o(),p.req&&p.req.abort()}var p,i,m,a,g,n,l,v,y,b,w="Close",j="BeforeClose",_="MarkupParse",T="Open",C=".mfp",x="mfp-ready",L="mfp-removing",S="mfp-prevent-close",D=!!window.jQuery,k=u(window),E=(u.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;p.isLowIE=p.isIE8=document.all&&!document.addEventListener,p.isAndroid=/android/gi.test(e),p.isIOS=/iphone|ipad|ipod/gi.test(e),p.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),p.probablyMobile=p.isAndroid||p.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),m=u(document),p.popupsCache={}},open:function(e){if(!1===e.isObj){p.items=e.items.toArray(),p.index=0;for(var t,n=e.items,i=0;i<n.length;i++)if((t=(t=n[i]).parsed?t.el[0]:t)===e.el[0]){p.index=i;break}}else p.items=u.isArray(e.items)?e.items:[e.items],p.index=e.index||0;if(!p.isOpen){p.types=[],g="",e.mainEl&&e.mainEl.length?p.ev=e.mainEl.eq(0):p.ev=m,e.key?(p.popupsCache[e.key]||(p.popupsCache[e.key]={}),p.currTemplate=p.popupsCache[e.key]):p.currTemplate={},p.st=u.extend(!0,{},u.magnificPopup.defaults,e),p.fixedContentPos="auto"===p.st.fixedContentPos?!p.probablyMobile:p.st.fixedContentPos,p.st.modal&&(p.st.closeOnContentClick=!1,p.st.closeOnBgClick=!1,p.st.showCloseBtn=!1,p.st.enableEscapeKey=!1),p.bgOverlay||(p.bgOverlay=d("bg").on("click"+C,function(){p.close()}),p.wrap=d("wrap").attr("tabindex",-1).on("click"+C,function(e){p._checkIfClose(e.target)&&p.close()}),p.container=d("container",p.wrap)),p.contentContainer=d("content"),p.st.preloader&&(p.preloader=d("preloader",p.container,p.st.tLoading));var o=u.magnificPopup.modules;for(i=0;i<o.length;i++){var s=(s=o[i]).charAt(0).toUpperCase()+s.slice(1);p["init"+s].call(p)}h("BeforeOpen"),p.st.showCloseBtn&&(p.st.closeBtnInside?(c(_,function(e,t,n,i){n.close_replaceWith=f(i.type)}),g+=" mfp-close-btn-in"):p.wrap.append(f())),p.st.alignTop&&(g+=" mfp-align-top"),p.fixedContentPos?p.wrap.css({overflow:p.st.overflowY,overflowX:"hidden",overflowY:p.st.overflowY}):p.wrap.css({top:k.scrollTop(),position:"absolute"}),!1!==p.st.fixedBgPos&&("auto"!==p.st.fixedBgPos||p.fixedContentPos)||p.bgOverlay.css({height:m.height(),position:"absolute"}),p.st.enableEscapeKey&&m.on("keyup"+C,function(e){27===e.keyCode&&p.close()}),k.on("resize"+C,function(){p.updateSize()}),p.st.closeOnContentClick||(g+=" mfp-auto-cursor"),g&&p.wrap.addClass(g);var r=p.wH=k.height(),a={},l=(p.fixedContentPos&&p._hasScrollBar(r)&&(l=p._getScrollbarSize())&&(a.marginRight=l),p.fixedContentPos&&(p.isIE7?u("body, html").css("overflow","hidden"):a.overflow="hidden"),p.st.mainClass);return p.isIE7&&(l+=" mfp-ie7"),l&&p._addClassToMFP(l),p.updateItemHTML(),h("BuildControls"),u("html").css(a),p.bgOverlay.add(p.wrap).prependTo(p.st.prependTo||u(document.body)),p._lastFocusedEl=document.activeElement,setTimeout(function(){p.content?(p._addClassToMFP(x),p._setFocus()):p.bgOverlay.addClass(x),m.on("focusin"+C,p._onFocusIn)},16),p.isOpen=!0,p.updateSize(r),h(T),e}p.updateItemHTML()},close:function(){p.isOpen&&(h(j),p.isOpen=!1,p.st.removalDelay&&!p.isLowIE&&p.supportsTransition?(p._addClassToMFP(L),setTimeout(function(){p._close()},p.st.removalDelay)):p._close())},_close:function(){h(w);var e=L+" "+x+" ";p.bgOverlay.detach(),p.wrap.detach(),p.container.empty(),p.st.mainClass&&(e+=p.st.mainClass+" "),p._removeClassFromMFP(e),p.fixedContentPos&&(e={marginRight:""},p.isIE7?u("body, html").css("overflow",""):e.overflow="",u("html").css(e)),m.off("keyup.mfp focusin"+C),p.ev.off(C),p.wrap.attr("class","mfp-wrap").removeAttr("style"),p.bgOverlay.attr("class","mfp-bg"),p.container.attr("class","mfp-container"),!p.st.showCloseBtn||p.st.closeBtnInside&&!0!==p.currTemplate[p.currItem.type]||p.currTemplate.closeBtn&&p.currTemplate.closeBtn.detach(),p.st.autoFocusLast&&p._lastFocusedEl&&u(p._lastFocusedEl).focus(),p.currItem=null,p.content=null,p.currTemplate=null,p.prevHeight=0,h("AfterClose")},updateSize:function(e){var t;p.isIOS?(t=document.documentElement.clientWidth/window.innerWidth,t=window.innerHeight*t,p.wrap.css("height",t),p.wH=t):p.wH=e||k.height(),p.fixedContentPos||p.wrap.css("height",p.wH),h("Resize")},updateItemHTML:function(){var e=p.items[p.index],t=(p.contentContainer.detach(),p.content&&p.content.detach(),(e=e.parsed?e:p.parseEl(p.index)).type),n=(h("BeforeChange",[p.currItem?p.currItem.type:"",t]),p.currItem=e,p.currTemplate[t]||(n=!!p.st[t]&&p.st[t].markup,h("FirstMarkupParse",n),p.currTemplate[t]=!n||u(n)),a&&a!==e.type&&p.container.removeClass("mfp-"+a+"-holder"),p["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,p.currTemplate[t]));p.appendContent(n,t),e.preloaded=!0,h("Change",e),a=e.type,p.container.prepend(p.contentContainer),h("AfterChange")},appendContent:function(e,t){(p.content=e)?p.st.showCloseBtn&&p.st.closeBtnInside&&!0===p.currTemplate[t]?p.content.find(".mfp-close").length||p.content.append(f()):p.content=e:p.content="",h("BeforeAppend"),p.container.addClass("mfp-"+t+"-holder"),p.contentContainer.append(p.content)},parseEl:function(e){var t,n=p.items[e];if((n=n.tagName?{el:u(n)}:(t=n.type,{data:n,src:n.src})).el){for(var i=p.types,o=0;o<i.length;o++)if(n.el.hasClass("mfp-"+i[o])){t=i[o];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||p.st.type||"inline",n.index=e,n.parsed=!0,p.items[e]=n,h("ElementParse",n),p.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,p._openClick(e,t,n)}var i="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(i).on(i,e)):(n.isObj=!1,n.delegate?t.off(i).on(i,n.delegate,e):(n.items=t).off(i).on(i,e))},_openClick:function(e,t,n){var i=(void 0!==n.midClick?n:u.magnificPopup.defaults).midClick;if(i||!(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){i=(void 0!==n.disableOn?n:u.magnificPopup.defaults).disableOn;if(i)if(u.isFunction(i)){if(!i.call(p))return!0}else if(k.width()<i)return!0;e.type&&(e.preventDefault(),p.isOpen&&e.stopPropagation()),n.el=u(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),p.open(n)}},updateStatus:function(e,t){var n;p.preloader&&(i!==e&&p.container.removeClass("mfp-s-"+i),n={status:e,text:t=t||"loading"!==e?t:p.st.tLoading},h("UpdateStatus",n),e=n.status,p.preloader.html(t=n.text),p.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),p.container.addClass("mfp-s-"+e),i=e)},_checkIfClose:function(e){if(!u(e).hasClass(S)){var t=p.st.closeOnContentClick,n=p.st.closeOnBgClick;if(t&&n)return!0;if(!p.content||u(e).hasClass("mfp-close")||p.preloader&&e===p.preloader[0])return!0;if(e===p.content[0]||u.contains(p.content[0],e)){if(t)return!0}else if(n&&u.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){p.bgOverlay.addClass(e),p.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),p.wrap.removeClass(e)},_hasScrollBar:function(e){return(p.isIE7?m.height():document.body.scrollHeight)>(e||k.height())},_setFocus:function(){(p.st.focus?p.content.find(p.st.focus).eq(0):p.wrap).focus()},_onFocusIn:function(e){if(e.target!==p.wrap[0]&&!u.contains(p.wrap[0],e.target))return p._setFocus(),!1},_parseMarkup:function(o,e,t){var s;t.data&&(e=u.extend(t.data,e)),h(_,[o,e,t]),u.each(e,function(e,t){if(void 0===t||!1===t)return!0;var n,i;1<(s=e.split("_")).length?0<(n=o.find(C+"-"+s[0])).length&&("replaceWith"===(i=s[1])?n[0]!==t[0]&&n.replaceWith(t):"img"===i?n.is("img")?n.attr("src",t):n.replaceWith(u("<img>").attr("src",t).attr("class",n.attr("class"))):n.attr(s[1],t)):o.find(C+"-"+e).html(t)})},_getScrollbarSize:function(){var e;return void 0===p.scrollbarSize&&((e=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),p.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),p.scrollbarSize}},modules:[],open:function(e,t){return s(),(e=e?u.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return u.magnificPopup.instance&&u.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(u.magnificPopup.defaults[e]=t.options),u.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},u.fn.magnificPopup=function(e){s();var t,n,i,o=u(this);return"string"==typeof e?"open"===e?(t=D?o.data("magnificPopup"):o[0].magnificPopup,n=parseInt(arguments[1],10)||0,i=t.items?t.items[n]:(i=o,(i=t.delegate?i.find(t.delegate):i).eq(n)),p._openClick({mfpEl:i},o,t)):p.isOpen&&p[e].apply(p,Array.prototype.slice.call(arguments,1)):(e=u.extend(!0,{},e),D?o.data("magnificPopup",e):o[0].magnificPopup=e,p.addGroup(o,e)),o},"inline"),M=(u.magnificPopup.registerModule(E,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){p.types.push(E),c(w+"."+E,function(){r()})},getInline:function(e,t){var n,i,o;return r(),e.src?(n=p.st.inline,(i=u(e.src)).length?((o=i[0].parentNode)&&o.tagName&&(v||(l=n.hiddenClass,v=d(l),l="mfp-"+l),y=i.after(v).detach().removeClass(l)),p.updateStatus("ready")):(p.updateStatus("error",n.tNotFound),i=u("<div>")),e.inlineElement=i):(p.updateStatus("ready"),p._parseMarkup(t,{},e),t)}}}),"ajax");u.magnificPopup.registerModule(M,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){p.types.push(M),b=p.st.ajax.cursor,c(w+"."+M,t),c("BeforeChange.ajax",t)},getAjax:function(i){b&&u(document.body).addClass(b),p.updateStatus("loading");var e=u.extend({url:i.src,success:function(e,t,n){e={data:e,xhr:n};h("ParseAjax",e),p.appendContent(u(e.data),M),i.finished=!0,o(),p._setFocus(),setTimeout(function(){p.wrap.addClass(x)},16),p.updateStatus("ready"),h("AjaxContentAdded")},error:function(){o(),i.finished=i.loadError=!0,p.updateStatus("error",p.st.ajax.tError.replace("%url%",i.src))}},p.st.ajax.settings);return p.req=u.ajax(e),""}}});var A;u.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=p.st.image,t=".image";p.types.push("image"),c(T+t,function(){"image"===p.currItem.type&&e.cursor&&u(document.body).addClass(e.cursor)}),c(w+t,function(){e.cursor&&u(document.body).removeClass(e.cursor),k.off("resize"+C)}),c("Resize"+t,p.resizeImage),p.isLowIE&&c("AfterChange",p.resizeImage)},resizeImage:function(){var e,t=p.currItem;t&&t.img&&p.st.image.verticalFit&&(e=0,p.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",p.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,A&&clearInterval(A),e.isCheckingImgSize=!1,h("ImageHasSize",e),e.imgHidden&&(p.content&&p.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){function n(e){A&&clearInterval(A),A=setInterval(function(){0<o.naturalWidth?p._onImageHasSize(t):(200<i&&clearInterval(A),3===++i?n(10):40===i?n(50):100===i&&n(500))},e)}var i=0,o=t.img[0];n(1)},getImage:function(e,t){function n(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===p.currItem&&(p._onImageHasSize(e),p.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,h("ImageLoadComplete")):++s<200?setTimeout(n,100):i())}function i(){e&&(e.img.off(".mfploader"),e===p.currItem&&(p._onImageHasSize(e),p.updateStatus("error",r.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)}var o,s=0,r=p.st.image,a=t.find(".mfp-img");return a.length&&((o=document.createElement("img")).className="mfp-img",e.el&&e.el.find("img").length&&(o.alt=e.el.find("img").attr("alt")),e.img=u(o).on("load.mfploader",n).on("error.mfploader",i),o.src=e.src,a.is("img")&&(e.img=e.img.clone()),0<(o=e.img[0]).naturalWidth?e.hasSize=!0:o.width||(e.hasSize=!1)),p._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=p.st.image.titleSrc;if(t){if(u.isFunction(t))return t.call(p,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),p.resizeImage(),e.hasSize?(A&&clearInterval(A),e.loadError?(t.addClass("mfp-loading"),p.updateStatus("error",r.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),p.updateStatus("ready"))):(p.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),p.findImageSize(e))),t}}});function I(e){var t;p.currTemplate[O]&&(t=p.currTemplate[O].find("iframe")).length&&(e||(t[0].src="//about:blank"),p.isIE8&&t.css("display",e?"block":"none"))}function N(e){var t=p.items.length;return t-1<e?e-t:e<0?t+e:e}function P(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}u.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,t,n,i,o,s,r=p.st.zoom;r.enabled&&p.supportsTransition&&(t=r.duration,n=function(e){var e=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),t="all "+r.duration/1e3+"s "+r.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return n["-webkit-"+i]=n["-moz-"+i]=n["-o-"+i]=n[i]=t,e.css(n),e},i=function(){p.content.css("visibility","visible")},c("BuildControls.zoom",function(){p._allowZoom()&&(clearTimeout(o),p.content.css("visibility","hidden"),(e=p._getItemToZoom())?((s=n(e)).css(p._getOffset()),p.wrap.append(s),o=setTimeout(function(){s.css(p._getOffset(!0)),o=setTimeout(function(){i(),setTimeout(function(){s.remove(),e=s=null,h("ZoomAnimationEnded")},16)},t)},16)):i())}),c(j+".zoom",function(){if(p._allowZoom()){if(clearTimeout(o),p.st.removalDelay=t,!e){if(!(e=p._getItemToZoom()))return;s=n(e)}s.css(p._getOffset(!0)),p.wrap.append(s),p.content.css("visibility","hidden"),setTimeout(function(){s.css(p._getOffset())},16)}}),c(w+".zoom",function(){p._allowZoom()&&(i(),s&&s.remove(),e=null)}))},_allowZoom:function(){return"image"===p.currItem.type},_getItemToZoom:function(){return!!p.currItem.hasSize&&p.currItem.img},_getOffset:function(e){var e=e?p.currItem.img:p.st.zoom.opener(p.currItem.el||p.currItem),t=e.offset(),n=parseInt(e.css("padding-top"),10),i=parseInt(e.css("padding-bottom"),10),e=(t.top-=u(window).scrollTop()-n,{width:e.width(),height:(D?e.innerHeight():e[0].offsetHeight)-i-n});return($=void 0===$?void 0!==document.createElement("p").style.MozTransform:$)?e["-moz-transform"]=e.transform="translate("+t.left+"px,"+t.top+"px)":(e.left=t.left,e.top=t.top),e}}});var $,O="iframe",H=(u.magnificPopup.registerModule(O,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){p.types.push(O),c("BeforeChange",function(e,t,n){t!==n&&(t===O?I():n===O&&I(!0))}),c(w+"."+O,function(){I()})},getIframe:function(e,t){var n=e.src,i=p.st.iframe,o=(u.each(i.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}),{});return i.srcAction&&(o[i.srcAction]=n),p._parseMarkup(t,o,e),p.updateStatus("ready"),t}}}),u.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var s=p.st.gallery,e=".mfp-gallery";if(p.direction=!0,!s||!s.enabled)return!1;g+=" mfp-gallery",c(T+e,function(){s.navigateByImgClick&&p.wrap.on("click"+e,".mfp-img",function(){if(1<p.items.length)return p.next(),!1}),m.on("keydown"+e,function(e){37===e.keyCode?p.prev():39===e.keyCode&&p.next()})}),c("UpdateStatus"+e,function(e,t){t.text&&(t.text=P(t.text,p.currItem.index,p.items.length))}),c(_+e,function(e,t,n,i){var o=p.items.length;n.counter=1<o?P(s.tCounter,i.index,o):""}),c("BuildControls"+e,function(){var e,t;1<p.items.length&&s.arrows&&!p.arrowLeft&&(t=s.arrowMarkup,e=p.arrowLeft=u(t.replace(/%title%/gi,s.tPrev).replace(/%dir%/gi,"left")).addClass(S),t=p.arrowRight=u(t.replace(/%title%/gi,s.tNext).replace(/%dir%/gi,"right")).addClass(S),e.click(function(){p.prev()}),t.click(function(){p.next()}),p.container.append(e.add(t)))}),c("Change"+e,function(){p._preloadTimeout&&clearTimeout(p._preloadTimeout),p._preloadTimeout=setTimeout(function(){p.preloadNearbyImages(),p._preloadTimeout=null},16)}),c(w+e,function(){m.off(e),p.wrap.off("click"+e),p.arrowRight=p.arrowLeft=null})},next:function(){p.direction=!0,p.index=N(p.index+1),p.updateItemHTML()},prev:function(){p.direction=!1,p.index=N(p.index-1),p.updateItemHTML()},goTo:function(e){p.direction=e>=p.index,p.index=e,p.updateItemHTML()},preloadNearbyImages:function(){for(var e=p.st.gallery.preload,t=Math.min(e[0],p.items.length),n=Math.min(e[1],p.items.length),i=1;i<=(p.direction?n:t);i++)p._preloadItem(p.index+i);for(i=1;i<=(p.direction?t:n);i++)p._preloadItem(p.index-i)},_preloadItem:function(e){var t;e=N(e),p.items[e].preloaded||((t=p.items[e]).parsed||(t=p.parseEl(e)),h("LazyLoad",t),"image"===t.type&&(t.img=u('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,h("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0)}}}),"retina");u.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){var n,i;1<window.devicePixelRatio&&(n=p.st.retina,i=n.ratio,1<(i=isNaN(i)?i():i)&&(c("ImageHasSize."+H,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),c("ElementParse."+H,function(e,t){t.src=n.replaceSrc(t,i)})))}}}),s()}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(x,r){function S(){return new Date(Date.UTC.apply(Date,arguments))}"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){(t=t===r?0:t)<0&&(t+=this.length),t<0&&(t=0);for(var n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1});function y(e,s){for(var t=this,n=(this.element=x(e),this.container=s.container||"body",this.language=s.language||this.element.data("date-language")||"en",this.language=this.language in k?this.language:this.language.split("-")[0],this.language=this.language in k?this.language:"en",this.isRTL=k[this.language].rtl||!1,this.formatType=s.formatType||this.element.data("format-type")||"standard",this.format=E.parseFormat(s.format||this.element.data("date-format")||k[this.language].format||E.getDefaultFormat(this.formatType,"input"),this.formatType),this.isInline=!1,this.isVisible=!1,this.isInput=this.element.is("input"),this.fontAwesome=s.fontAwesome||this.element.data("font-awesome")||!1,this.bootcssVer=s.bootcssVer||(this.isInput?this.element.is(".form-control")?3:2:this.bootcssVer=this.element.is(".input-group")?3:2),this.component=!!this.element.is(".date")&&(3===this.bootcssVer?this.element.find(".input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-remove, .input-group-addon .glyphicon-calendar, .input-group-addon .fa-calendar, .input-group-addon .fa-clock-o"):this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar, .add-on .fa-calendar, .add-on .fa-clock-o")).parent(),this.componentReset=!!this.element.is(".date")&&(3===this.bootcssVer?this.element.find(".input-group-addon .glyphicon-remove, .input-group-addon .fa-times"):this.element.find(".add-on .icon-remove, .add-on .fa-times")).parent(),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.linkField=s.linkField||this.element.data("link-field")||!1,this.linkFormat=E.parseFormat(s.linkFormat||this.element.data("link-format")||E.getDefaultFormat(this.formatType,"link"),this.formatType),this.minuteStep=s.minuteStep||this.element.data("minute-step")||5,this.pickerPosition=s.pickerPosition||this.element.data("picker-position")||"bottom-right",this.showMeridian=s.showMeridian||this.element.data("show-meridian")||!1,this.initialDate=s.initialDate||new Date,this.zIndex=s.zIndex||this.element.data("z-index")||r,this.title=void 0!==s.title&&s.title,this.timezone=s.timezone||function(){var e,t,n=(new Date).toString(),i=(null!=(t=n.split("(")[1])?t.slice(0,-1):0)||n.split(" ");if(i instanceof Array){for(var o=[],s=0,r=i.length;s<r;s++)(e=null!==(t=i[s].match(/\b[A-Z]+\b/)))&&t[0]&&o.push(e);i=o.pop()}return i}(),this.icons={leftArrow:this.fontAwesome?"fa-arrow-left":3===this.bootcssVer?"glyphicon-arrow-left":"icon-arrow-left",rightArrow:this.fontAwesome?"fa-arrow-right":3===this.bootcssVer?"glyphicon-arrow-right":"icon-arrow-right"},this.icontype=this.fontAwesome?"fa":"glyphicon",this._attachEvents(),this.clickedOutside=function(e){0===x(e.target).closest(".datetimepicker").length&&t.hide()},this.formatViewType="datetime","formatViewType"in s?this.formatViewType=s.formatViewType:"formatViewType"in this.element.data()&&(this.formatViewType=this.element.data("formatViewType")),this.minView=0,"minView"in s?this.minView=s.minView:"minView"in this.element.data()&&(this.minView=this.element.data("min-view")),this.minView=E.convertViewMode(this.minView),this.maxView=E.modes.length-1,"maxView"in s?this.maxView=s.maxView:"maxView"in this.element.data()&&(this.maxView=this.element.data("max-view")),this.maxView=E.convertViewMode(this.maxView),this.wheelViewModeNavigation=!1,"wheelViewModeNavigation"in s?this.wheelViewModeNavigation=s.wheelViewModeNavigation:"wheelViewModeNavigation"in this.element.data()&&(this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")),this.wheelViewModeNavigationInverseDirection=!1,"wheelViewModeNavigationInverseDirection"in s?this.wheelViewModeNavigationInverseDirection=s.wheelViewModeNavigationInverseDirection:"wheelViewModeNavigationInverseDirection"in this.element.data()&&(this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")),this.wheelViewModeNavigationDelay=100,"wheelViewModeNavigationDelay"in s?this.wheelViewModeNavigationDelay=s.wheelViewModeNavigationDelay:"wheelViewModeNavigationDelay"in this.element.data()&&(this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")),this.startViewMode=2,"startView"in s?this.startViewMode=s.startView:"startView"in this.element.data()&&(this.startViewMode=this.element.data("start-view")),this.startViewMode=E.convertViewMode(this.startViewMode),this.viewMode=this.startViewMode,this.viewSelect=this.minView,"viewSelect"in s?this.viewSelect=s.viewSelect:"viewSelect"in this.element.data()&&(this.viewSelect=this.element.data("view-select")),this.viewSelect=E.convertViewMode(this.viewSelect),this.forceParse=!0,"forceParse"in s?this.forceParse=s.forceParse:"dateForceParse"in this.element.data()&&(this.forceParse=this.element.data("date-force-parse")),3===this.bootcssVer?E.templateV3:E.template);-1!==n.indexOf("{iconType}");)n=n.replace("{iconType}",this.icontype);for(;-1!==n.indexOf("{leftArrow}");)n=n.replace("{leftArrow}",this.icons.leftArrow);for(;-1!==n.indexOf("{rightArrow}");)n=n.replace("{rightArrow}",this.icons.rightArrow);this.picker=x(n).appendTo(this.isInline?this.element:this.container).on({click:x.proxy(this.click,this),mousedown:x.proxy(this.mousedown,this)}),this.wheelViewModeNavigation&&(x.fn.mousewheel?this.picker.on({mousewheel:x.proxy(this.mousewheel,this)}):console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option")),this.isInline?this.picker.addClass("datetimepicker-inline"):this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu"),this.isRTL&&(this.picker.addClass("datetimepicker-rtl"),e=3===this.bootcssVer?".prev span, .next span":".prev i, .next i",this.picker.find(e).toggleClass(this.icons.leftArrow+" "+this.icons.rightArrow)),x(document).on("mousedown touchend",this.clickedOutside),this.autoclose=!1,"autoclose"in s?this.autoclose=s.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose")),this.keyboardNavigation=!0,"keyboardNavigation"in s?this.keyboardNavigation=s.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation")),this.todayBtn=s.todayBtn||this.element.data("date-today-btn")||!1,this.clearBtn=s.clearBtn||this.element.data("date-clear-btn")||!1,this.todayHighlight=s.todayHighlight||this.element.data("date-today-highlight")||!1,void(this.weekStart=0)!==s.weekStart?this.weekStart=s.weekStart:void 0!==this.element.data("date-weekstart")?this.weekStart=this.element.data("date-weekstart"):void 0!==k[this.language].weekStart&&(this.weekStart=k[this.language].weekStart),this.weekStart=this.weekStart%7,this.weekEnd=(this.weekStart+6)%7,this.onRenderDay=function(e){e=(s.onRenderDay||function(){return[]})(e);return["day"].concat((e="string"==typeof e?[e]:e)||[])},this.onRenderHour=function(e){e=(s.onRenderHour||function(){return[]})(e);return["hour"].concat((e="string"==typeof e?[e]:e)||[])},this.onRenderMinute=function(e){var t=(s.onRenderMinute||function(){return[]})(e),n=["minute"];return"string"==typeof t&&(t=[t]),e<this.startDate||e>this.endDate?n.push("disabled"):Math.floor(this.date.getUTCMinutes()/this.minuteStep)===Math.floor(e.getUTCMinutes()/this.minuteStep)&&n.push("active"),n.concat(t||[])},this.onRenderYear=function(e){var t=(s.onRenderYear||function(){return[]})(e),n=["year"],i=("string"==typeof t&&(t=[t]),this.date.getUTCFullYear()===e.getUTCFullYear()&&n.push("active"),e.getUTCFullYear()),o=this.endDate.getUTCFullYear();return(e<this.startDate||o<i)&&n.push("disabled"),n.concat(t||[])},this.onRenderMonth=function(e){e=(s.onRenderMonth||function(){return[]})(e);return["month"].concat((e="string"==typeof e?[e]:e)||[])},this.startDate=new Date(-8639968443048e3),this.endDate=new Date(8639968443048e3),this.datesDisabled=[],this.daysOfWeekDisabled=[],this.setStartDate(s.startDate||this.element.data("date-startdate")),this.setEndDate(s.endDate||this.element.data("date-enddate")),this.setDatesDisabled(s.datesDisabled||this.element.data("date-dates-disabled")),this.setDaysOfWeekDisabled(s.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled")),this.setMinutesDisabled(s.minutesDisabled||this.element.data("date-minute-disabled")),this.setHoursDisabled(s.hoursDisabled||this.element.data("date-hour-disabled")),this.fillDow(),this.fillMonths(),this.update(),this.showMode(),this.isInline&&this.show()}y.prototype={constructor:y,_events:[],_attachEvents:function(){this._detachEvents(),this.isInput?this._events=[[this.element,{focus:x.proxy(this.show,this),keyup:x.proxy(this.update,this),keydown:x.proxy(this.keydown,this)}]]:this.component&&this.hasInput?(this._events=[[this.element.find("input"),{focus:x.proxy(this.show,this),keyup:x.proxy(this.update,this),keydown:x.proxy(this.keydown,this)}],[this.component,{click:x.proxy(this.show,this)}]],this.componentReset&&this._events.push([this.componentReset,{click:x.proxy(this.reset,this)}])):this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:x.proxy(this.show,this)}]];for(var e,t,n=0;n<this._events.length;n++)e=this._events[n][0],t=this._events[n][1],e.on(t)},_detachEvents:function(){for(var e,t,n=0;n<this._events.length;n++)e=this._events[n][0],t=this._events[n][1],e.off(t);this._events=[]},show:function(e){this.picker.show(),this.height=(this.component||this.element).outerHeight(),this.forceParse&&this.update(),this.place(),x(window).on("resize",x.proxy(this.place,this)),e&&(e.stopPropagation(),e.preventDefault()),this.isVisible=!0,this.element.trigger({type:"show",date:this.date})},hide:function(){!this.isVisible||this.isInline||(this.picker.hide(),x(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||x(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.isVisible=!1,this.element.trigger({type:"hide",date:this.date}))},remove:function(){this._detachEvents(),x(document).off("mousedown",this.clickedOutside),this.picker.remove(),delete this.picker,delete this.element.data().datetimepicker},getDate:function(){var e=this.getUTCDate();return null===e?null:new Date(e.getTime()+6e4*e.getTimezoneOffset())},getUTCDate:function(){return this.date},getInitialDate:function(){return this.initialDate},setInitialDate:function(e){this.initialDate=e},setDate:function(e){this.setUTCDate(new Date(e.getTime()-6e4*e.getTimezoneOffset()))},setUTCDate:function(e){e>=this.startDate&&e<=this.endDate?(this.date=e,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:e,startDate:this.startDate,endDate:this.endDate})},setFormat:function(e){var t;this.format=E.parseFormat(e,this.formatType),this.isInput?t=this.element:this.component&&(t=this.element.find("input")),t&&t.val()&&this.setValue()},setValue:function(){var e=this.getFormattedDate();this.isInput?this.element.val(e):(this.component&&this.element.find("input").val(e),this.element.data("date",e)),this.linkField&&x("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(e){return e=e||this.format,E.formatDate(this.date,e,this.language,this.formatType,this.timezone)},setStartDate:function(e){this.startDate=e||this.startDate,8639968443048e3!==this.startDate.valueOf()&&(this.startDate=E.parseDate(this.startDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setEndDate:function(e){this.endDate=e||this.endDate,8639968443048e3!==this.endDate.valueOf()&&(this.endDate=E.parseDate(this.endDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setDatesDisabled:function(e){this.datesDisabled=e||[],x.isArray(this.datesDisabled)||(this.datesDisabled=this.datesDisabled.split(/,\s*/));var t=this;this.datesDisabled=x.map(this.datesDisabled,function(e){return E.parseDate(e,t.format,t.language,t.formatType,t.timezone).toDateString()}),this.update(),this.updateNavArrows()},setTitle:function(e,t){return this.picker.find(e).find("th:eq(1)").text(!1===this.title?t:this.title)},setDaysOfWeekDisabled:function(e){this.daysOfWeekDisabled=e||[],x.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)),this.daysOfWeekDisabled=x.map(this.daysOfWeekDisabled,function(e){return parseInt(e,10)}),this.update(),this.updateNavArrows()},setMinutesDisabled:function(e){this.minutesDisabled=e||[],x.isArray(this.minutesDisabled)||(this.minutesDisabled=this.minutesDisabled.split(/,\s*/)),this.minutesDisabled=x.map(this.minutesDisabled,function(e){return parseInt(e,10)}),this.update(),this.updateNavArrows()},setHoursDisabled:function(e){this.hoursDisabled=e||[],x.isArray(this.hoursDisabled)||(this.hoursDisabled=this.hoursDisabled.split(/,\s*/)),this.hoursDisabled=x.map(this.hoursDisabled,function(e){return parseInt(e,10)}),this.update(),this.updateNavArrows()},place:function(){var t,e,n,i,o;this.isInline||(this.zIndex||(t=0,x("div").each(function(){var e=parseInt(x(this).css("zIndex"),10);t<e&&(t=e)}),this.zIndex=t+10),i=(this.container instanceof x?this.container:x(this.container)).offset(),this.component?(n=(e=this.component.offset()).left,"bottom-left"!==this.pickerPosition&&"top-left"!==this.pickerPosition||(n+=this.component.outerWidth()-this.picker.outerWidth())):(n=(e=this.element.offset()).left,"bottom-left"!==this.pickerPosition&&"top-left"!==this.pickerPosition||(n+=this.element.outerWidth()-this.picker.outerWidth())),(o=document.body.clientWidth||window.innerWidth)<n+220&&(n=o-220),o="top-left"===this.pickerPosition||"top-right"===this.pickerPosition?e.top-this.picker.outerHeight():e.top+this.height,o-=i.top,n-=i.left,this.picker.css({top:o,left:n,zIndex:this.zIndex}))},hour_minute:"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]",update:function(){var e,t=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(e=arguments[0],t=!0):"string"==typeof(e=(this.isInput?this.element:this.element.find("input")).val()||this.element.data("date")||this.initialDate)&&(e=e.replace(/^\s+|\s+$/g,"")),e||(e=new Date,t=!1),"string"==typeof e&&(new RegExp(this.hour_minute).test(e)||new RegExp(this.hour_minute+":[0-5][0-9]").test(e))&&(e=this.getDate()),this.date=E.parseDate(e,this.format,this.language,this.formatType,this.timezone),t&&this.setValue(),this.date<this.startDate?this.viewDate=new Date(this.startDate):this.date>this.endDate?this.viewDate=new Date(this.endDate):this.viewDate=new Date(this.date),this.fill()},fillDow:function(){for(var e=this.weekStart,t="<tr>";e<this.weekStart+7;)t+='<th class="dow">'+k[this.language].daysMin[e++%7]+"</th>";t+="</tr>",this.picker.find(".datetimepicker-days thead").append(t)},fillMonths:function(){for(var e="",t=new Date(this.viewDate),n=0;n<12;n++)t.setUTCMonth(n),e+='<span class="'+this.onRenderMonth(t).join(" ")+'">'+k[this.language].monthsShort[n]+"</span>";this.picker.find(".datetimepicker-months td").html(e)},fill:function(){if(this.date&&this.viewDate){for(var e,t=(b=new Date(this.viewDate)).getUTCFullYear(),n=b.getUTCMonth(),i=b.getUTCDate(),o=b.getUTCHours(),s=this.startDate.getUTCFullYear(),r=this.startDate.getUTCMonth(),a=this.endDate.getUTCFullYear(),l=this.endDate.getUTCMonth()+1,u=new S(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),c=new Date,d=(this.setTitle(".datetimepicker-days",k[this.language].months[n]+" "+t),"time"===this.formatViewType?(h=this.getFormattedDate(),this.setTitle(".datetimepicker-hours",h),this.setTitle(".datetimepicker-minutes",h)):(this.setTitle(".datetimepicker-hours",i+" "+k[this.language].months[n]+" "+t),this.setTitle(".datetimepicker-minutes",i+" "+k[this.language].months[n]+" "+t)),this.picker.find("tfoot th.today").text(k[this.language].today||k.en.today).toggle(!1!==this.todayBtn),this.picker.find("tfoot th.clear").text(k[this.language].clear||k.en.clear).toggle(!1!==this.clearBtn),this.updateNavArrows(),this.fillMonths(),S(t,n-1,28,0,0,0,0)),h=E.getDaysInMonth(d.getUTCFullYear(),d.getUTCMonth()),f=(d.setUTCDate(h),d.setUTCDate(h-(d.getUTCDay()-this.weekStart+7)%7),new Date(d)),p=(f.setUTCDate(f.getUTCDate()+42),f=f.valueOf(),[]);d.valueOf()<f;)d.getUTCDay()===this.weekStart&&p.push("<tr>"),e=this.onRenderDay(d),d.getUTCFullYear()<t||d.getUTCFullYear()===t&&d.getUTCMonth()<n?e.push("old"):(d.getUTCFullYear()>t||d.getUTCFullYear()===t&&d.getUTCMonth()>n)&&e.push("new"),this.todayHighlight&&d.getUTCFullYear()===c.getFullYear()&&d.getUTCMonth()===c.getMonth()&&d.getUTCDate()===c.getDate()&&e.push("today"),d.valueOf()===u&&e.push("active"),(d.valueOf()+864e5<=this.startDate||d.valueOf()>this.endDate||-1!==x.inArray(d.getUTCDay(),this.daysOfWeekDisabled)||-1!==x.inArray(d.toDateString(),this.datesDisabled))&&e.push("disabled"),p.push('<td class="'+e.join(" ")+'">'+d.getUTCDate()+"</td>"),d.getUTCDay()===this.weekEnd&&p.push("</tr>"),d.setUTCDate(d.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(p.join(""));for(var p=[],m="",g="",v="",y=this.hoursDisabled||[],b=new Date(this.viewDate),w=0;w<24;w++){b.setUTCHours(w),e=this.onRenderHour(b),-1!==y.indexOf(w)&&e.push("disabled");var _=S(t,n,i,w);_.valueOf()+36e5<=this.startDate||_.valueOf()>this.endDate?e.push("disabled"):o===w&&e.push("active"),this.showMeridian&&2===k[this.language].meridiem.length?((g=w<12?k[this.language].meridiem[0]:k[this.language].meridiem[1])!==v&&(""!==v&&p.push("</fieldset>"),p.push('<fieldset class="hour"><legend>'+g.toUpperCase()+"</legend>")),v=g,m=w%12||12,w<12?e.push("hour_am"):e.push("hour_pm"),p.push('<span class="'+e.join(" ")+'">'+m+"</span>"),23===w&&p.push("</fieldset>")):(m=w+":00",p.push('<span class="'+e.join(" ")+'">'+m+"</span>"))}this.picker.find(".datetimepicker-hours td").html(p.join("")),p=[];var m="",g="",v="",T=this.minutesDisabled||[];b=new Date(this.viewDate);for(w=0;w<60;w+=this.minuteStep)-1===T.indexOf(w)&&(b.setUTCMinutes(w),b.setUTCSeconds(0),e=this.onRenderMinute(b),this.showMeridian&&2===k[this.language].meridiem.length?((g=o<12?k[this.language].meridiem[0]:k[this.language].meridiem[1])!==v&&(""!==v&&p.push("</fieldset>"),p.push('<fieldset class="minute"><legend>'+g.toUpperCase()+"</legend>")),v=g,m=o%12||12,p.push('<span class="'+e.join(" ")+'">'+m+":"+(w<10?"0"+w:w)+"</span>"),59===w&&p.push("</fieldset>")):(m=w+":00",p.push('<span class="'+e.join(" ")+'">'+o+":"+(w<10?"0"+w:w)+"</span>")));this.picker.find(".datetimepicker-minutes td").html(p.join(""));var h=this.date.getUTCFullYear(),C=this.setTitle(".datetimepicker-months",t).end().find(".month").removeClass("active"),h=(h===t&&C.eq(this.date.getUTCMonth()).addClass("active"),(t<s||a<t)&&C.addClass("disabled"),t===s&&C.slice(0,r).addClass("disabled"),t===a&&C.slice(l).addClass("disabled"),p="",t=10*parseInt(t/10,10),this.setTitle(".datetimepicker-years",t+"-"+(t+9)).end().find("td"));--t,b=new Date(this.viewDate);for(w=-1;w<11;w++)b.setUTCFullYear(t),e=this.onRenderYear(b),-1!==w&&10!==w||e.push(D),p+='<span class="'+e.join(" ")+'">'+t+"</span>",t+=1;h.html(p),this.place()}},updateNavArrows:function(){var e=new Date(this.viewDate),t=e.getUTCFullYear(),n=e.getUTCMonth(),i=e.getUTCDate(),o=e.getUTCHours();switch(this.viewMode){case 0:t<=this.startDate.getUTCFullYear()&&n<=this.startDate.getUTCMonth()&&i<=this.startDate.getUTCDate()&&o<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()&&n>=this.endDate.getUTCMonth()&&i>=this.endDate.getUTCDate()&&o>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:t<=this.startDate.getUTCFullYear()&&n<=this.startDate.getUTCMonth()&&i<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()&&n>=this.endDate.getUTCMonth()&&i>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:t<=this.startDate.getUTCFullYear()&&n<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()&&n>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:t<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(e){e.preventDefault(),e.stopPropagation(),this.wheelPause||(this.wheelPause=!0,e=0<(e=e.originalEvent.wheelDelta)?1:0===e?0:-1,this.wheelViewModeNavigationInverseDirection&&(e=-e),this.showMode(e),setTimeout(x.proxy(function(){this.wheelPause=!1},this),this.wheelViewModeNavigationDelay))},click:function(e){e.stopPropagation(),e.preventDefault();var t=x(e.target).closest("span, td, th, legend");if(1===(t=t.is("."+this.icontype)?x(t).parent().closest("span, td, th, legend"):t).length)if(t.is(".disabled"))this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});else switch(t[0].nodeName.toLowerCase()){case"th":switch(t[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var n=E.modes[this.viewMode].navStep*("prev"===t[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,n);break;case 1:this.viewDate=this.moveDate(this.viewDate,n);break;case 2:this.viewDate=this.moveMonth(this.viewDate,n);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,n)}this.fill(),this.element.trigger({type:t[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"clear":this.reset(),this.autoclose&&this.hide();break;case"today":var i=new Date;(i=S(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),0))<this.startDate?i=this.startDate:i>this.endDate&&(i=this.endDate),this.viewMode=this.startViewMode,this.showMode(0),this._setDate(i),this.fill(),this.autoclose&&this.hide()}break;case"span":t.is(".disabled")||(s=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),o=this.viewDate.getUTCDate(),a=this.viewDate.getUTCHours(),l=this.viewDate.getUTCMinutes(),u=this.viewDate.getUTCSeconds(),t.is(".month")?(this.viewDate.setUTCDate(1),r=t.parent().find("span").index(t),o=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(r),this.element.trigger({type:"changeMonth",date:this.viewDate}),3<=this.viewSelect&&this._setDate(S(s,r,o,a,l,u,0))):t.is(".year")?(this.viewDate.setUTCDate(1),s=parseInt(t.text(),10)||0,this.viewDate.setUTCFullYear(s),this.element.trigger({type:"changeYear",date:this.viewDate}),4<=this.viewSelect&&this._setDate(S(s,r,o,a,l,u,0))):t.is(".hour")?(a=parseInt(t.text(),10)||0,(t.hasClass("hour_am")||t.hasClass("hour_pm"))&&(12===a&&t.hasClass("hour_am")?a=0:12!==a&&t.hasClass("hour_pm")&&(a+=12)),this.viewDate.setUTCHours(a),this.element.trigger({type:"changeHour",date:this.viewDate}),1<=this.viewSelect&&this._setDate(S(s,r,o,a,l,u,0))):t.is(".minute")&&(l=parseInt(t.text().substr(t.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(l),this.element.trigger({type:"changeMinute",date:this.viewDate}),0<=this.viewSelect&&this._setDate(S(s,r,o,a,l,u,0))),0!==this.viewMode?(c=this.viewMode,this.showMode(-1),this.fill(),c===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide()));break;case"td":t.is(".day")&&!t.is(".disabled")&&(o=parseInt(t.text(),10)||1,s=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a=this.viewDate.getUTCHours(),l=this.viewDate.getUTCMinutes(),u=this.viewDate.getUTCSeconds(),t.is(".old")?0===r?(r=11,--s):--r:t.is(".new")&&(11===r?(r=0,s+=1):r+=1),this.viewDate.setUTCFullYear(s),this.viewDate.setUTCMonth(r,o),this.element.trigger({type:"changeDay",date:this.viewDate}),2<=this.viewSelect&&this._setDate(S(s,r,o,a,l,u,0)));var o,s,r,a,l,u,c=this.viewMode;this.showMode(-1),this.fill(),c===this.viewMode&&this.autoclose&&this.hide()}},_setDate:function(e,t){var n;t&&"date"!==t||(this.date=e),t&&"view"!==t||(this.viewDate=e),this.fill(),this.setValue(),this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&n.change(),this.element.trigger({type:"changeDate",date:this.getDate()}),null===e&&(this.date=this.viewDate)},moveMinute:function(e,t){if(!t)return e;e=new Date(e.valueOf());return e.setUTCMinutes(e.getUTCMinutes()+t*this.minuteStep),e},moveHour:function(e,t){if(!t)return e;e=new Date(e.valueOf());return e.setUTCHours(e.getUTCHours()+t),e},moveDate:function(e,t){if(!t)return e;e=new Date(e.valueOf());return e.setUTCDate(e.getUTCDate()+t),e},moveMonth:function(e,t){if(!t)return e;var n,i,o=new Date(e.valueOf()),s=o.getUTCDate(),r=o.getUTCMonth(),a=Math.abs(t);if(t=0<t?1:-1,1===a)i=-1===t?function(){return o.getUTCMonth()===r}:function(){return o.getUTCMonth()!==n},n=r+t,o.setUTCMonth(n),(n<0||11<n)&&(n=(n+12)%12);else{for(var l=0;l<a;l++)o=this.moveMonth(o,t);n=o.getUTCMonth(),o.setUTCDate(s),i=function(){return n!==o.getUTCMonth()}}for(;i();)o.setUTCDate(--s),o.setUTCMonth(n);return o},moveYear:function(e,t){return this.moveMonth(e,12*t)},dateWithinRange:function(e){return e>=this.startDate&&e<=this.endDate},keydown:function(e){if(this.picker.is(":not(:visible)"))27===e.keyCode&&this.show();else{var t,n,i,o=!1;switch(e.keyCode){case 27:this.hide(),e.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;var s=37===e.keyCode?-1:1,r=this.viewMode;e.ctrlKey?r+=2:e.shiftKey&&(r+=1),4===r?(t=this.moveYear(this.date,s),n=this.moveYear(this.viewDate,s)):3===r?(t=this.moveMonth(this.date,s),n=this.moveMonth(this.viewDate,s)):2===r?(t=this.moveDate(this.date,s),n=this.moveDate(this.viewDate,s)):1===r?(t=this.moveHour(this.date,s),n=this.moveHour(this.viewDate,s)):0===r&&(t=this.moveMinute(this.date,s),n=this.moveMinute(this.viewDate,s)),this.dateWithinRange(t)&&(this.date=t,this.viewDate=n,this.setValue(),this.update(),e.preventDefault(),o=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;s=38===e.keyCode?-1:1,r=this.viewMode,e.ctrlKey?r+=2:e.shiftKey&&(r+=1),4===r?(t=this.moveYear(this.date,s),n=this.moveYear(this.viewDate,s)):3===r?(t=this.moveMonth(this.date,s),n=this.moveMonth(this.viewDate,s)):2===r?(t=this.moveDate(this.date,7*s),n=this.moveDate(this.viewDate,7*s)):1===r?n=this.showMeridian?(t=this.moveHour(this.date,6*s),this.moveHour(this.viewDate,6*s)):(t=this.moveHour(this.date,4*s),this.moveHour(this.viewDate,4*s)):0===r&&(t=this.moveMinute(this.date,4*s),n=this.moveMinute(this.viewDate,4*s)),this.dateWithinRange(t)&&(this.date=t,this.viewDate=n,this.setValue(),this.update(),e.preventDefault(),o=!0);break;case 13:0!==this.viewMode?(r=this.viewMode,this.showMode(-1),this.fill(),r===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide()),e.preventDefault();break;case 9:this.hide()}o&&(this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),this.element.trigger({type:"changeDate",date:this.getDate()}))}},showMode:function(e){e&&(e=Math.max(0,Math.min(E.modes.length-1,this.viewMode+e)))>=this.minView&&e<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:e}),this.viewMode=e),this.picker.find(">div").hide().filter(".datetimepicker-"+E.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()},reset:function(){this._setDate(null,"date")},convertViewModeText:function(e){switch(e){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var D=x.fn.datetimepicker,k=(x.fn.datetimepicker=function(i){var o,s=Array.apply(null,arguments);return s.shift(),this.each(function(){var e=x(this),t=e.data("datetimepicker"),n="object"==typeof i&&i;if(t||e.data("datetimepicker",t=new y(this,x.extend({},x.fn.datetimepicker.defaults,n))),"string"==typeof i&&"function"==typeof t[i]&&(o=t[i].apply(t,s))!==r)return!1}),o!==r?o:this},x.fn.datetimepicker.defaults={},x.fn.datetimepicker.Constructor=y,x.fn.datetimepicker.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"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today",clear:"Clear"}}),E={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},getDaysInMonth:function(e,t){return[31,E.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},getDefaultFormat:function(e,t){if("standard"===e)return"input"===t?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if("php"===e)return"input"===t?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.")},validParts:function(e){if("standard"===e)return/t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if("php"===e)return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.")},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(e,t){var n=e.replace(this.validParts(t),"\0").split("\0"),e=e.match(this.validParts(t));if(n&&n.length&&e&&0!==e.length)return{separators:n,parts:e};throw new Error("Invalid date format.")},parseDate:function(e,t,n,i,o){var s;if(e instanceof Date)return(s=new Date(e.valueOf()-6e4*e.getTimezoneOffset())).setMilliseconds(0),s;if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(e)&&(t=this.parseFormat("yyyy-mm-dd",i)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(e)&&(t=this.parseFormat("yyyy-mm-dd hh:ii",i)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(e)&&(t=this.parseFormat("yyyy-mm-dd hh:ii:ss",i)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(e)){var r,a=/([-+]\d+)([dmwy])/,l=e.match(/([-+]\d+)([dmwy])/g);e=new Date;for(var u=0;u<l.length;u++)switch(h=a.exec(l[u]),r=parseInt(h[1]),h[2]){case"d":e.setUTCDate(e.getUTCDate()+r);break;case"m":e=y.prototype.moveMonth.call(y.prototype,e,r);break;case"w":e.setUTCDate(e.getUTCDate()+7*r);break;case"y":e=y.prototype.moveYear.call(y.prototype,e,r)}return S(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),0)}var c,d,h,l=e&&e.toString().match(this.nonpunctuation)||[],e=new Date(0,0,0,0,0,0,0),f={},p=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],m={hh:function(e,t){return e.setUTCHours(t)},h:function(e,t){return e.setUTCHours(t)},HH:function(e,t){return e.setUTCHours(12===t?0:t)},H:function(e,t){return e.setUTCHours(12===t?0:t)},ii:function(e,t){return e.setUTCMinutes(t)},i:function(e,t){return e.setUTCMinutes(t)},ss:function(e,t){return e.setUTCSeconds(t)},s:function(e,t){return e.setUTCSeconds(t)},yyyy:function(e,t){return e.setUTCFullYear(t)},yy:function(e,t){return e.setUTCFullYear(2e3+t)},m:function(e,t){for(--t;t<0;)t+=12;for(e.setUTCMonth(t%=12);e.getUTCMonth()!==t;){if(isNaN(e.getUTCMonth()))return e;e.setUTCDate(e.getUTCDate()-1)}return e},d:function(e,t){return e.setUTCDate(t)},p:function(e,t){return e.setUTCHours(1===t?e.getUTCHours()+12:e.getUTCHours())},z:function(){return o}};if(m.M=m.MM=m.mm=m.m,m.dd=m.d,m.P=m.p,m.Z=m.z,e=S(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()),l.length===t.parts.length){for(var u=0,g=t.parts.length;u<g;u++){if(c=parseInt(l[u],10),h=t.parts[u],isNaN(c))switch(h){case"MM":d=x(k[n].months).filter(function(){var e=this.slice(0,l[u].length);return e===l[u].slice(0,e.length)}),c=x.inArray(d[0],k[n].months)+1;break;case"M":d=x(k[n].monthsShort).filter(function(){var e=this.slice(0,l[u].length),t=l[u].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}),c=x.inArray(d[0],k[n].monthsShort)+1;break;case"p":case"P":c=x.inArray(l[u].toLowerCase(),k[n].meridiem)}f[h]=c}for(var v,u=0;u<p.length;u++)(v=p[u])in f&&!isNaN(f[v])&&m[v](e,f[v])}return e},formatDate:function(e,t,n,i,o){if(null===e)return"";var s;if("standard"===i)s={t:e.getTime(),yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear(),m:e.getUTCMonth()+1,M:k[n].monthsShort[e.getUTCMonth()],MM:k[n].months[e.getUTCMonth()],d:e.getUTCDate(),D:k[n].daysShort[e.getUTCDay()],DD:k[n].days[e.getUTCDay()],p:2===k[n].meridiem.length?k[n].meridiem[e.getUTCHours()<12?0:1]:"",h:e.getUTCHours(),i:e.getUTCMinutes(),s:e.getUTCSeconds(),z:o},2===k[n].meridiem.length?s.H=s.h%12==0?12:s.h%12:s.H=s.h,s.HH=(s.H<10?"0":"")+s.H,s.P=s.p.toUpperCase(),s.Z=s.z,s.hh=(s.h<10?"0":"")+s.h,s.ii=(s.i<10?"0":"")+s.i,s.ss=(s.s<10?"0":"")+s.s,s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m;else{if("php"!==i)throw new Error("Invalid format type.");(s={y:e.getUTCFullYear().toString().substring(2),Y:e.getUTCFullYear(),F:k[n].months[e.getUTCMonth()],M:k[n].monthsShort[e.getUTCMonth()],n:e.getUTCMonth()+1,t:E.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),j:e.getUTCDate(),l:k[n].days[e.getUTCDay()],D:k[n].daysShort[e.getUTCDay()],w:e.getUTCDay(),N:0===e.getUTCDay()?7:e.getUTCDay(),S:e.getUTCDate()%10<=k[n].suffix.length?k[n].suffix[e.getUTCDate()%10-1]:"",a:2===k[n].meridiem.length?k[n].meridiem[e.getUTCHours()<12?0:1]:"",g:e.getUTCHours()%12==0?12:e.getUTCHours()%12,G:e.getUTCHours(),i:e.getUTCMinutes(),s:e.getUTCSeconds()}).m=(s.n<10?"0":"")+s.n,s.d=(s.j<10?"0":"")+s.j,s.A=s.a.toString().toUpperCase(),s.h=(s.g<10?"0":"")+s.g,s.H=(s.G<10?"0":"")+s.G,s.i=(s.i<10?"0":"")+s.i,s.s=(s.s<10?"0":"")+s.s}for(var e=[],r=x.extend([],t.separators),a=0,l=t.parts.length;a<l;a++)r.length&&e.push(r.shift()),e.push(s[t.parts[a]]);return r.length&&e.push(r.shift()),e.join("")},convertViewMode:function(e){switch(e){case 4:case"decade":e=4;break;case 3:case"year":e=3;break;case 2:case"month":e=2;break;case 1:case"day":e=1;break;case 0:case"hour":e=0}return e},headTemplate:'<thead><tr><th class="prev"><i class="{iconType} {leftArrow}"/></th><th colspan="5" class="switch"></th><th class="next"><i class="{iconType} {rightArrow}"/></th></tr></thead>',headTemplateV3:'<thead><tr><th class="prev"><span class="{iconType} {leftArrow}"></span> </th><th colspan="5" class="switch"></th><th class="next"><span class="{iconType} {rightArrow}"></span> </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>'};E.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+E.headTemplate+E.contTemplate+E.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+E.headTemplate+E.contTemplate+E.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+E.headTemplate+"<tbody></tbody>"+E.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+E.headTemplate+E.contTemplate+E.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+E.headTemplate+E.contTemplate+E.footTemplate+"</table></div></div>",E.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+E.headTemplateV3+E.contTemplate+E.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+E.headTemplateV3+E.contTemplate+E.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+E.headTemplateV3+"<tbody></tbody>"+E.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+E.headTemplateV3+E.contTemplate+E.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+E.headTemplateV3+E.contTemplate+E.footTemplate+"</table></div></div>",x.fn.datetimepicker.DPGlobal=E,x.fn.datetimepicker.noConflict=function(){return x.fn.datetimepicker=D,this},x(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(e){var t=x(this);t.data("datetimepicker")||(e.preventDefault(),t.datetimepicker("show"))}),x(function(){x('[data-provide="datetimepicker-inline"]').datetimepicker()})}),(typeof define==="function"&&define.amd?define:function(e,t){if(typeof module!=="undefined"&&module.exports)module.exports=t(require("jquery"));else window["toastr"]=t(window["jQuery"])})(["jquery"],function(T){return function(){var m,t,g,v=0,i="error",o="info",s="success",r="warning",e={clear:function(e,t){var n=w();m||y(n);a(e,n,t)||!function(e){for(var t=m.children(),n=t.length-1;0<=n;n--)a(T(t[n]),e)}(n)},remove:function(e){var t=w();m||y(t);e&&0===T(":focus",e).length?_(e):m.children().length&&m.remove()},error:function(e,t,n){return l({type:i,iconClass:w().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:y,info:function(e,t,n){return l({type:o,iconClass:w().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){t=e},success:function(e,t,n){return l({type:s,iconClass:w().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.1",warning:function(e,t,n){return l({type:r,iconClass:w().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return e;function y(e,t){return e=e||w(),(m=T("#"+e.containerId)).length||t&&(t=e,(m=T("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(T(t.target))),m}function a(e,t,n){n=!(!n||!n.force)&&n.force;return e&&(n||0===T(":focus",e).length)&&(e[t.hideMethod]({duration:t.hideDuration,easing:t.hideEasing,complete:function(){_(e)}}),1)}function b(e){t&&t(e)}function l(e){var t,n,i,o,s,r,a,l,u=w(),c=e.iconClass||u.iconClass;if(void 0!==e.optionsOverride&&(u=T.extend(u,e.optionsOverride),c=e.optionsOverride.iconClass||c),!function(e,t){if(e.preventDuplicates){if(t.message===g)return 1;g=t.message}return}(u,e))return v++,m=y(u,!0),t=null,n=T("<div/>"),i=T("<div/>"),o=T("<div/>"),s=T("<div/>"),r=T(u.closeHtml),a={intervalId:null,hideEta:null,maxHideTime:null},l={toastId:v,state:"visible",startTime:new Date,options:u,map:e},e.iconClass&&n.addClass(u.toastClass).addClass(c),e.title&&(i.append(e.title).addClass(u.titleClass),n.append(i)),e.message&&(o.append(e.message).addClass(u.messageClass),n.append(o)),u.closeButton&&(r.addClass("toast-close-button").attr("role","button"),n.prepend(r)),u.progressBar&&(s.addClass("toast-progress"),n.prepend(s)),u.newestOnTop?m.prepend(n):m.append(n),n.hide(),n[u.showMethod]({duration:u.showDuration,easing:u.showEasing,complete:u.onShown}),0<u.timeOut&&(t=setTimeout(d,u.timeOut),a.maxHideTime=parseFloat(u.timeOut),a.hideEta=(new Date).getTime()+a.maxHideTime,u.progressBar&&(a.intervalId=setInterval(p,10))),n.hover(f,h),!u.onclick&&u.tapToDismiss&&n.click(d),u.closeButton&&r&&r.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),d(!0)}),u.onclick&&n.click(function(){u.onclick(),d()}),b(l),u.debug&&console&&console.log(l),n;function d(e){if(!T(":focus",n).length||e)return clearTimeout(a.intervalId),n[u.hideMethod]({duration:u.hideDuration,easing:u.hideEasing,complete:function(){_(n),u.onHidden&&"hidden"!==l.state&&u.onHidden(),l.state="hidden",l.endTime=new Date,b(l)}})}function h(){(0<u.timeOut||0<u.extendedTimeOut)&&(t=setTimeout(d,u.extendedTimeOut),a.maxHideTime=parseFloat(u.extendedTimeOut),a.hideEta=(new Date).getTime()+a.maxHideTime)}function f(){clearTimeout(t),a.hideEta=0,n.stop(!0,!0)[u.showMethod]({duration:u.showDuration,easing:u.showEasing})}function p(){var e=(a.hideEta-(new Date).getTime())/a.maxHideTime*100;s.width(e+"%")}}function w(){return T.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},e.options)}function _(e){m=m||y(),e.is(":visible")||(e.remove(),e=null,0===m.children().length&&(m.remove(),g=void 0))}}()}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function($){var menuTrees=[],mouse=!1,touchEvents="ontouchstart"in window,mouseDetectionEnabled=!1,requestAnimationFrame=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||function(e){clearTimeout(e)},canAnimate=!!$.fn.animate;function initMouseDetection(e){var s,r,t=".smartmenus_mouse";mouseDetectionEnabled||e?mouseDetectionEnabled&&e&&($(document).off(t),mouseDetectionEnabled=!1):(s=!0,r=null,(e={mousemove:function(e){var t,n,i,o={x:e.pageX,y:e.pageY,timeStamp:(new Date).getTime()};r&&(t=Math.abs(r.x-o.x),n=Math.abs(r.y-o.y),(0<t||0<n)&&t<=2&&n<=2&&o.timeStamp-r.timeStamp<=300&&(mouse=!0,s&&((i=$(e.target).closest("a")).is("a")&&$.each(menuTrees,function(){if($.contains(this.$root[0],i[0]))return this.itemEnter({currentTarget:i[0]}),!1}),s=!1))),r=o}})[touchEvents?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(e){isTouchEvent(e.originalEvent)&&(mouse=!1)},$(document).on(getEventsNS(e,t)),mouseDetectionEnabled=!0)}function isTouchEvent(e){return!/^(4|mouse)$/.test(e.pointerType)}function getEventsNS(e,t){t=t||"";var n,i={};for(n in e)i[n.split(" ").join(t+" ")+t]=e[n];return i}return $.SmartMenus=function(e,t){this.$root=$(e),this.opts=t,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in e.style||"webkitPerspective"in e.style,this.wasCollapsible=!1,this.init()},$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){this.menuHideAll()})},destroy:function(){for(;menuTrees.length;)menuTrees[0].destroy();initMouseDetection(!0)},prototype:{init:function(e){var n,i,o,s=this;e||(menuTrees.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0),e=".smartmenus",this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(getEventsNS({"mouseover focusin":$.proxy(this.rootOver,this),"mouseout focusout":$.proxy(this.rootOut,this),keydown:$.proxy(this.rootKeyDown,this)},e)).on(getEventsNS({mouseenter:$.proxy(this.itemEnter,this),mouseleave:$.proxy(this.itemLeave,this),mousedown:$.proxy(this.itemDown,this),focus:$.proxy(this.itemFocus,this),blur:$.proxy(this.itemBlur,this),click:$.proxy(this.itemClick,this)},e),"a"),e+=this.rootId,this.opts.hideOnClick&&$(document).on(getEventsNS({touchstart:$.proxy(this.docTouchStart,this),touchmove:$.proxy(this.docTouchMove,this),touchend:$.proxy(this.docTouchEnd,this),click:$.proxy(this.docClick,this)},e)),$(window).on(getEventsNS({"resize orientationchange":$.proxy(this.winResize,this)},e)),this.opts.subIndicators&&(this.$subArrow=$("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),initMouseDetection()),this.$firstSub=this.$root.find("ul").each(function(){s.menuInit($(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem&&(n=/(index|default)\.[^#\?\/]*/i,i=window.location.href.replace(n,""),o=i.replace(/#.*/,""),this.$root.find("a").each(function(){var e=this.href.replace(n,""),t=$(this);e!=i&&e!=o||(t.addClass("current"),s.opts.markCurrentTree&&t.parentsUntil("[data-smartmenus-id]","ul").each(function(){$(this).dataSM("parent-a").addClass("current")}))})),this.wasCollapsible=this.isCollapsible()},destroy:function(e){e||(t=".smartmenus",this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(".smartmenus"),t+=this.rootId,$(document).off(t),$(window).off(t),this.opts.subIndicators&&(this.$subArrow=null)),this.menuHideAll();var t,n=this;this.$root.find("ul").each(function(){var e=$(this);e.dataSM("scroll-arrows")&&e.dataSM("scroll-arrows").remove(),e.dataSM("shown-before")&&((n.opts.subMenusMinWidth||n.opts.subMenusMaxWidth)&&e.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),e.dataSM("scroll-arrows")&&e.dataSM("scroll-arrows").remove(),e.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(e.attr("id")||"").indexOf(n.accessIdPrefix)&&e.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var e=$(this);0==e.attr("id").indexOf(n.accessIdPrefix)&&e.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),e||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),menuTrees.splice($.inArray(this,menuTrees),1))},disable:function(e){this.disabled||(this.menuHideAll(),e||this.opts.isPopup||!this.$root.is(":visible")||(e=this.$root.offset(),this.$disableOverlay=$('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:e.top,left:e.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)),this.disabled=!0)},docClick:function(e){this.$touchScrollingSub?this.$touchScrollingSub=null:(this.visibleSubMenus.length&&!$.contains(this.$root[0],e.target)||$(e.target).closest("a").length)&&this.menuHideAll()},docTouchEnd:function(e){var t;this.lastTouch&&(!this.visibleSubMenus.length||void 0!==this.lastTouch.x2&&this.lastTouch.x1!=this.lastTouch.x2||void 0!==this.lastTouch.y2&&this.lastTouch.y1!=this.lastTouch.y2||this.lastTouch.target&&$.contains(this.$root[0],this.lastTouch.target)||(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),(t=this).hideTimeout=setTimeout(function(){t.menuHideAll()},350)),this.lastTouch=null)},docTouchMove:function(e){this.lastTouch&&(e=e.originalEvent.touches[0],this.lastTouch.x2=e.pageX,this.lastTouch.y2=e.pageY)},docTouchStart:function(e){e=e.originalEvent.touches[0];this.lastTouch={x1:e.pageX,y1:e.pageY,target:e.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(e){for(var t=$(e).closest("ul");t.dataSM("in-mega");)t=t.parent().closest("ul");return t[0]||null},getHeight:function(e){return this.getOffset(e,!0)},getOffset:function(e,t){"none"==e.css("display")&&(n={position:e[0].style.position,visibility:e[0].style.visibility},e.css({position:"absolute",visibility:"hidden"}).show());var n,i=e[0].getBoundingClientRect&&e[0].getBoundingClientRect(),i=i&&(t?i.height||i.bottom-i.top:i.width||i.right-i.left);return i||0===i||(i=t?e[0].offsetHeight:e[0].offsetWidth),n&&e.hide().css(n),i},getStartZIndex:function(e){var t=parseInt(this[e?"$root":"$firstSub"].css("z-index"));return!e&&isNaN(t)&&(t=parseInt(this.$root.css("z-index"))),isNaN(t)?1:t},getTouchPoint:function(e){return e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e},getViewport:function(e){var e=e?"Height":"Width",t=document.documentElement["client"+e],e=window["inner"+e];return t=e?Math.min(t,e):t},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(e){return this.getOffset(e)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(e){return this.handleEvents()&&!this.isLinkInMegaMenu(e)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var e="fixed"==this.$root.css("position");return e||this.$root.parentsUntil("body").each(function(){if("fixed"==$(this).css("position"))return!(e=!0)}),e},isLinkInMegaMenu:function(e){return $(this.getClosestMenu(e[0])).hasClass("mega-menu")},isTouchMode:function(){return!mouse||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(e,t){var n,i=e.closest("ul"),o=i.dataSM("level");1<o&&(!this.activatedItems[o-2]||this.activatedItems[o-2][0]!=i.dataSM("parent-a")[0])&&(n=this,$(i.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(i).each(function(){n.itemActivate($(this).dataSM("parent-a"))})),this.isCollapsible()&&!t||this.menuHideSubMenus(this.activatedItems[o-1]&&this.activatedItems[o-1][0]==e[0]?o:o-1),this.activatedItems[o-1]=e,!1!==this.$root.triggerHandler("activate.smapi",e[0])&&(i=e.dataSM("sub"))&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(i)},itemBlur:function(e){e=$(e.currentTarget);this.handleItemEvents(e)&&this.$root.triggerHandler("blur.smapi",e[0])},itemClick:function(e){var t=$(e.currentTarget);if(this.handleItemEvents(t)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==t.closest("ul")[0])return this.$touchScrollingSub=null,e.stopPropagation(),!1;if(!1===this.$root.triggerHandler("click.smapi",t[0]))return!1;var e=$(e.target).is(".sub-arrow"),n=t.dataSM("sub"),i=!!n&&2==n.dataSM("level"),o=this.isCollapsible(),s=/toggle$/.test(this.opts.collapsibleBehavior),r=/link$/.test(this.opts.collapsibleBehavior),a=/^accordion/.test(this.opts.collapsibleBehavior);if(n&&!n.is(":visible")){if((!r||!o||e)&&(this.opts.showOnClick&&i&&(this.clickActivated=!0),this.itemActivate(t,a),n.is(":visible")))return!(this.focusActivated=!0)}else if(o&&(s||e))return this.itemActivate(t,a),this.menuHide(n),s&&(this.focusActivated=!1),!1;return!(this.opts.showOnClick&&i||t.hasClass("disabled")||!1===this.$root.triggerHandler("select.smapi",t[0]))&&void 0}},itemDown:function(e){e=$(e.currentTarget);this.handleItemEvents(e)&&e.dataSM("mousedown",!0)},itemEnter:function(e){var t,n=$(e.currentTarget);this.handleItemEvents(n)&&(this.isTouchMode()||(this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0),(t=this).showTimeout=setTimeout(function(){t.itemActivate(n)},this.opts.showOnClick&&1==n.closest("ul").dataSM("level")?1:this.opts.showTimeout)),this.$root.triggerHandler("mouseenter.smapi",n[0]))},itemFocus:function(e){e=$(e.currentTarget);this.handleItemEvents(e)&&(!this.focusActivated||this.isTouchMode()&&e.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==e[0]||this.itemActivate(e,!0),this.$root.triggerHandler("focus.smapi",e[0]))},itemLeave:function(e){e=$(e.currentTarget);this.handleItemEvents(e)&&(this.isTouchMode()||(e[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),e.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",e[0]))},menuHide:function(e){var t;!1!==this.$root.triggerHandler("beforehide.smapi",e[0])&&(canAnimate&&e.stop(!0,!0),"none"!=e.css("display")&&(t=function(){e.css("z-index","")},this.isCollapsible()?canAnimate&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,e,t):e.hide(this.opts.collapsibleHideDuration,t):canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,e,t):e.hide(this.opts.hideDuration,t),e.dataSM("scroll")&&(this.menuScrollStop(e),e.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),e.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),e.attr({"aria-expanded":"false","aria-hidden":"true"}),t=e.dataSM("level"),this.activatedItems.splice(t-1,1),this.visibleSubMenus.splice($.inArray(e,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",e[0])))},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var e=this.opts.isPopup?1:0,t=this.visibleSubMenus.length-1;e<=t;t--)this.menuHide(this.visibleSubMenus[t]);this.opts.isPopup&&(canAnimate&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(e){for(var t=this.activatedItems.length-1;e<=t;t--){var n=this.activatedItems[t].dataSM("sub");n&&this.menuHide(n)}},menuInit:function(e){if(!e.dataSM("in-mega")){e.hasClass("mega-menu")&&e.find("ul").dataSM("in-mega",!0);for(var t=2,n=e[0];(n=n.parentNode.parentNode)!=this.$root[0];)t++;var i=e.prevAll("a").eq(-1),o=((i=i.length?i:e.prevAll().find("a").eq(-1)).addClass("has-submenu").dataSM("sub",e),e.dataSM("parent-a",i).dataSM("level",t).parent().dataSM("sub",e),i.attr("id")||this.accessIdPrefix+ ++this.idInc),s=e.attr("id")||this.accessIdPrefix+ ++this.idInc;i.attr({id:o,"aria-haspopup":"true","aria-controls":s,"aria-expanded":"false"}),e.attr({id:s,role:"group","aria-hidden":"true","aria-labelledby":o,"aria-expanded":"false"}),this.opts.subIndicators&&i[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(t){var e,n,i=t.dataSM("parent-a"),o=i.closest("li"),s=o.parent(),r=t.dataSM("level"),a=this.getWidth(t),l=this.getHeight(t),u=i.offset(),c=u.left,u=u.top,d=this.getWidth(i),i=this.getHeight(i),h=$(window),f=h.scrollLeft(),h=h.scrollTop(),p=this.getViewportWidth(),m=this.getViewportHeight(),s=s.parent().is("[data-sm-horizontal-sub]")||2==r&&!s.hasClass("sm-vertical"),o=this.opts.rightToLeftSubMenus&&!o.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&o.is("[data-sm-reverse]"),g=2==r?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,r=2==r?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY,r=s?(e=o?d-a-g:g,this.opts.bottomToTopSubMenus?-l-r:i+r):(e=o?g-a:d-g,this.opts.bottomToTopSubMenus?i-r-l:r);this.opts.keepInViewport&&(c=c+e,u=u+r,o&&c<f?e=s?f-c+e:d-g:!o&&f+p<c+a&&(e=s?f+p-a-c+e:g-a),s||(l<m&&h+m<u+l?r+=h+m-l-u:(m<=l||u<h)&&(r+=h-u)),(s&&(h+m+.49<u+l||u<h)||!s&&m+.49<l)&&(n=this,t.dataSM("scroll-arrows")||t.dataSM("scroll-arrows",$([$('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],$('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).on({mouseenter:function(){t.dataSM("scroll").up=$(this).hasClass("scroll-up"),n.menuScroll(t)},mouseleave:function(e){n.menuScrollStop(t),n.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(e){e.preventDefault()}}).insertAfter(t)),d=".smartmenus_scroll",t.dataSM("scroll",{y:this.cssTransforms3d?0:r-i,step:1,itemH:i,subH:l,arrowDownH:this.getHeight(t.dataSM("scroll-arrows").eq(1))}).on(getEventsNS({mouseover:function(e){n.menuScrollOver(t,e)},mouseout:function(e){n.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(e){n.menuScrollMousewheel(t,e)}},d)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:e+(parseInt(t.css("border-left-width"))||0),width:a-(parseInt(t.css("border-left-width"))||0)-(parseInt(t.css("border-right-width"))||0),zIndex:t.css("z-index")}).eq(s&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()&&((o={})[touchEvents?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(e){n.menuScrollTouch(t,e)},t.css({"touch-action":"none","-ms-touch-action":"none"}).on(getEventsNS(o,d))))),t.css({top:"auto",left:"0",marginLeft:e,marginTop:r-i})},menuScroll:function(e,t,n){var i,o=e.dataSM("scroll"),s=e.dataSM("scroll-arrows"),r=o.up?o.upEnd:o.downEnd;if(!t&&o.momentum){if(o.momentum*=.92,(i=o.momentum)<.5)return void this.menuScrollStop(e)}else i=n||(t||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(o.step));var a,n=e.dataSM("level");this.activatedItems[n-1]&&this.activatedItems[n-1].dataSM("sub")&&this.activatedItems[n-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(n-1),o.y=o.up&&r<=o.y||!o.up&&r>=o.y?o.y:Math.abs(r-o.y)>i?o.y+(o.up?i:-i):r,e.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+o.y+"px, 0)",transform:"translate3d(0, "+o.y+"px, 0)"}:{marginTop:o.y}),mouse&&(o.up&&o.y>o.downEnd||!o.up&&o.y<o.upEnd)&&s.eq(o.up?1:0).show(),o.y==r?(mouse&&s.eq(o.up?0:1).hide(),this.menuScrollStop(e)):t||(this.opts.scrollAccelerate&&o.step<this.opts.scrollStep&&(o.step+=.2),(a=this).scrollTimeout=requestAnimationFrame(function(){a.menuScroll(e)}))},menuScrollMousewheel:function(e,t){var n;this.getClosestMenu(t.target)==e[0]&&(n=0<((t=t.originalEvent).wheelDelta||-t.detail),e.dataSM("scroll-arrows").eq(n?0:1).is(":visible")&&(e.dataSM("scroll").up=n,this.menuScroll(e,!0))),t.preventDefault()},menuScrollOut:function(e,t){!mouse||/^scroll-(up|down)/.test((t.relatedTarget||"").className)||(e[0]==t.relatedTarget||$.contains(e[0],t.relatedTarget))&&this.getClosestMenu(t.relatedTarget)==e[0]||e.dataSM("scroll-arrows").css("visibility","hidden")},menuScrollOver:function(e,t){var n;mouse&&!/^scroll-(up|down)/.test(t.target.className)&&this.getClosestMenu(t.target)==e[0]&&(this.menuScrollRefreshData(e),t=e.dataSM("scroll"),n=$(window).scrollTop()-e.dataSM("parent-a").offset().top-t.itemH,e.dataSM("scroll-arrows").eq(0).css("margin-top",n).end().eq(1).css("margin-top",n+this.getViewportHeight()-t.arrowDownH).end().css("visibility","visible"))},menuScrollRefreshData:function(e){var t=e.dataSM("scroll"),n=$(window).scrollTop()-e.dataSM("parent-a").offset().top-t.itemH;this.cssTransforms3d&&(n=-(parseFloat(e.css("margin-top"))-n)),$.extend(t,{upEnd:n,downEnd:n+this.getViewportHeight()-t.subH})},menuScrollStop:function(e){if(this.scrollTimeout)return cancelAnimationFrame(this.scrollTimeout),this.scrollTimeout=0,e.dataSM("scroll").step=1,!0},menuScrollTouch:function(e,t){var n,i,o,s;isTouchEvent(t=t.originalEvent)&&(n=this.getTouchPoint(t),this.getClosestMenu(n.target)==e[0]&&(i=e.dataSM("scroll"),/(start|down)$/i.test(t.type)?(this.menuScrollStop(e)?(t.preventDefault(),this.$touchScrollingSub=e):this.$touchScrollingSub=null,this.menuScrollRefreshData(e),$.extend(i,{touchStartY:n.pageY,touchStartTime:t.timeStamp})):/move$/i.test(t.type)?(void 0!==(o=void 0!==i.touchY?i.touchY:i.touchStartY)&&o!=n.pageY&&(this.$touchScrollingSub=e,s=o<n.pageY,void 0!==i.up&&i.up!=s&&$.extend(i,{touchStartY:n.pageY,touchStartTime:t.timeStamp}),$.extend(i,{up:s,touchY:n.pageY}),this.menuScroll(e,!0,Math.abs(n.pageY-o))),t.preventDefault()):void 0!==i.touchY&&((i.momentum=15*Math.pow(Math.abs(n.pageY-i.touchStartY)/(t.timeStamp-i.touchStartTime),2))&&(this.menuScrollStop(e),this.menuScroll(e),t.preventDefault()),delete i.touchY)))},menuShow:function(e){var t,n,i;!e.dataSM("beforefirstshowfired")&&(e.dataSM("beforefirstshowfired",!0),!1===this.$root.triggerHandler("beforefirstshow.smapi",e[0]))||!1===this.$root.triggerHandler("beforeshow.smapi",e[0])||(e.dataSM("shown-before",!0),canAnimate&&e.stop(!0,!0),e.is(":visible")||(t=e.dataSM("parent-a"),n=this.isCollapsible(),(this.opts.keepHighlighted||n)&&t.addClass("highlighted"),n?e.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""}):(e.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(e.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&e.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth&&(i=this.getWidth(e),e.css("max-width",this.opts.subMenusMaxWidth),i>this.getWidth(e)&&e.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth))),this.menuPosition(e)),i=function(){e.css("overflow","")},n?canAnimate&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,e,i):e.show(this.opts.collapsibleShowDuration,i):canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,e,i):e.show(this.opts.showDuration,i),t.attr("aria-expanded","true"),e.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(e),this.$root.triggerHandler("show.smapi",e[0])))},popupHide:function(e){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll()},e?1:this.opts.hideTimeout)},popupShow:function(e,t){var n;this.opts.isPopup?(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),canAnimate&&this.$root.stop(!0,!0),this.$root.is(":visible")||(this.$root.css({left:e,top:t}),n=this,e=function(){n.$root.css("overflow","")},canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,e):this.$root.show(this.opts.showDuration,e),this.visibleSubMenus[0]=this.$root)):alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.')},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(e){if(this.handleEvents())switch(e.keyCode){case 27:var t=this.activatedItems[0];t&&(this.menuHideAll(),t[0].focus(),(n=t.dataSM("sub"))&&this.menuHide(n));break;case 32:var n,t=$(e.target);t.is("a")&&this.handleItemEvents(t)&&(n=t.dataSM("sub"))&&!n.is(":visible")&&(this.itemClick({currentTarget:e.target}),e.preventDefault())}},rootOut:function(e){var t;this.handleEvents()&&!this.isTouchMode()&&e.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.opts.showOnClick&&this.opts.hideOnClick||((t=this).hideTimeout=setTimeout(function(){t.menuHideAll()},this.opts.hideTimeout)))},rootOver:function(e){this.handleEvents()&&!this.isTouchMode()&&e.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(e){this.handleEvents()?"onorientationchange"in window&&"orientationchange"!=e.type||(e=this.isCollapsible(),this.wasCollapsible&&e||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=e):this.$disableOverlay&&(e=this.$root.offset(),this.$disableOverlay.css({top:e.top,left:e.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()}))}}}),$.fn.dataSM=function(e,t){return t?this.data(e+"_smartmenus",t):this.data(e+"_smartmenus")},$.fn.removeDataSM=function(e){return this.removeData(e+"_smartmenus")},$.fn.smartmenus=function(options){var args,method;return"string"==typeof options?(args=arguments,method=options,Array.prototype.shift.call(args),this.each(function(){var e=$(this).data("smartmenus");e&&e[method]&&e[method].apply(e,args)})):this.each(function(){var dataOpts=$(this).data("sm-options")||null;if(dataOpts)try{dataOpts=eval("("+dataOpts+")")}catch(e){dataOpts=null,alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}new $.SmartMenus(this,$.extend({},$.fn.smartmenus.defaults,options,dataOpts))})},$.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"auto",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(e,t){e.fadeOut(200,t)},collapsibleShowDuration:0,collapsibleShowFunction:function(e,t){e.slideDown(200,t)},collapsibleHideDuration:0,collapsibleHideFunction:function(e,t){e.slideUp(200,t)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},$}),!function(e){"function"==typeof define&&define.amd?define(["jquery","smartmenus"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(a){return a.extend(a.SmartMenus.Bootstrap={},{keydownFix:!1,init:function(){var e=a("ul.navbar-nav:not([data-sm-skip])");e.each(function(){var t,e,n,i=a(this),o=i.data("smartmenus");function s(){i.find("a.current").each(function(){var e=a(this);(e.hasClass("dropdown-item")?e:e.parent()).addClass("active")}),i.find("a.has-submenu").each(function(){var e=a(this);e.is('[data-toggle="dropdown"]')&&e.dataSM("bs-data-toggle-dropdown",!0).removeAttr("data-toggle"),!t&&e.hasClass("dropdown-toggle")&&e.dataSM("bs-dropdown-toggle",!0).removeClass("dropdown-toggle")})}function r(e){var t=o.getViewportWidth();t==n&&!e||(o.isCollapsible()?i.addClass("sm-collapsible"):i.removeClass("sm-collapsible"),n=t)}o||(t=i.is("[data-sm-skip-collapsible-behavior]"),e=i.hasClass("ml-auto")||0<i.prevAll(".mr-auto").length,i.smartmenus({subMenusSubOffsetX:2,subMenusSubOffsetY:-9,subIndicators:!t,collapsibleShowFunction:null,collapsibleHideFunction:null,rightToLeftSubMenus:e,bottomToTopSubMenus:0<i.closest(".fixed-bottom").length,bootstrapHighlightClasses:"text-dark bg-light"}).on({"show.smapi":function(e,t){var t=a(t),n=t.dataSM("scroll-arrows");n&&n.css("background-color",t.css("background-color")),t.parent().addClass("show"),o.opts.keepHighlighted&&2<t.dataSM("level")&&t.prevAll("a").addClass(o.opts.bootstrapHighlightClasses)},"hide.smapi":function(e,t){t=a(t);t.parent().removeClass("show"),o.opts.keepHighlighted&&2<t.dataSM("level")&&t.prevAll("a").removeClass(o.opts.bootstrapHighlightClasses)}}),o=i.data("smartmenus"),s(),o.refresh=function(){a.SmartMenus.prototype.refresh.call(this),s(),r(!0)},o.destroy=function(e){i.find("a.current").each(function(){var e=a(this);(e.hasClass("active")?e:e.parent()).removeClass("active")}),i.find("a.has-submenu").each(function(){var e=a(this);e.dataSM("bs-dropdown-toggle")&&e.addClass("dropdown-toggle").removeDataSM("bs-dropdown-toggle"),e.dataSM("bs-data-toggle-dropdown")&&e.attr("data-toggle","dropdown").removeDataSM("bs-data-toggle-dropdown")}),a.SmartMenus.prototype.destroy.call(this,e)},t&&(o.opts.collapsibleBehavior="toggle"),r(),a(window).on("resize.smartmenus"+o.rootId,r))}),e.length&&!a.SmartMenus.Bootstrap.keydownFix&&(a(document).off("keydown.bs.dropdown.data-api",".dropdown-menu"),a.fn.dropdown&&a.fn.dropdown.Constructor&&a(document).on("keydown.bs.dropdown.data-api",".dropdown-menu.show",a.fn.dropdown.Constructor._dataApiKeydownHandler),a.SmartMenus.Bootstrap.keydownFix=!0)}}),a(a.SmartMenus.Bootstrap.init),a}),!function(p){p.marquee={version:"1.0.01"},p.fn.marquee=function(e){var n,i="string"==typeof e&&e,o=i&&Array.prototype.slice.call(arguments,1)||arguments,s=0==this.length?null:p.data(this[0],"marquee");return s&&i&&this.length?"object"==i.toLowerCase()?s:s[i]?(this.each(function(e){var t=p.data(this,"marquee")[i].apply(s,o);if(0==e&&t){if(!t.jquery)return n=t,!1;n=p([]).add(t)}else t&&t.jquery&&(n=n.add(t))}),n||this):this:this.each(function(){new p.Marquee(this,e)})},p.Marquee=function(e,o){o=p.extend({},p.Marquee.defaults,o);var n=this,s=p(e),r=s.find("> li"),i=-1,t=!1,a=!1,l=0;function u(i,e){1!=a&&(e=e||o.pauseSpeed,i.outerWidth()>s.innerWidth()?setTimeout(function(){if(1==a)return!1;var e=i.outerWidth(),t=-1*e,n=parseInt(i.css("left"),10);i.animate({left:t+"px"},(e+n)*o.scrollSpeed,o.fxEasingScroll,function(){c(i)})},e):1<r.length&&setTimeout(function(){if(1==a)return!1;i.animate({top:("top"==o.yScroll?"+":"-")+s.innerHeight()+"px"},o.showSpeed,o.fxEasingScroll),c(i)},e))}function c(e){p.isFunction(o.aftershow)&&o.aftershow.apply(n,[s,e]),e.removeClass(o.cssShowing),f()}function d(){a=!0,1!=s.data("marquee.showing")&&r.filter("."+o.cssShowing).dequeue().stop()}function h(){a=!1,1!=s.data("marquee.showing")&&u(r.filter("."+o.cssShowing),1)}function f(){if(++i>=r.length){if(!isNaN(o.loop)&&0<o.loop&&++l>=o.loop)return;i=0}var e,t;e=i,0<r.filter("."+o.cssShowing).length||(t=r.eq(e),p.isFunction(o.beforeshow)&&o.beforeshow.apply(n,[s,t]),e={top:("top"==o.yScroll?"-":"+")+t.outerHeight()+"px",left:0},s.data("marquee.showing",!0),t.addClass(o.cssShowing),t.css(e).animate({top:"0px"},o.showSpeed,o.fxEasingShow,function(){p.isFunction(o.show)&&o.show.apply(n,[s,t]),s.data("marquee.showing",!1),u(t)}))}p.data(s[0],"marquee",n),this.pause=function(){t=!0,d()},this.resume=function(){t=!1,h()},this.update=function(){var e=r.length;r=s.find("> li"),e<=1&&h()},o.pauseOnHover&&s.hover(function(){if(t)return!1;d()},function(){if(t)return!1;h()}),p.isFunction(o.init)&&o.init.apply(n,[s,o]),f()},p.Marquee.defaults={yScroll:"top",showSpeed:850,scrollSpeed:12,pauseSpeed:5e3,pauseOnHover:!0,loop:-1,fxEasingShow:"swing",fxEasingScroll:"linear",cssShowing:"marquee-showing",init:null,beforeshow:null,show:null,aftershow:null}}(jQuery),toastr.options={closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!0,positionClass:"toast-top-right",preventDuplicates:!1,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},Number.prototype.to_money=function(e,t){t="\\d(?=(\\d{"+(t||3)+"})+"+(0<e?"\\.":"$")+")";return this.toFixed(Math.max(0,~~e)).replace(new RegExp(t,"g"),"$&.")};var _H=_H||{};function check_options(e){var t=$("#"+(1==e?"first":"second")+"_choice_id");1==e?(e=$("#second_choice_id")).val()==t.val()&&e.val(""):(e=$("#first_choice_id")).val()==t.val()&&e.val("")}function change_country_field(){var e=$("#citizenship").val(),t=$(".country");"WNA"==e?t.show():t.hide()}function renderRecaptcha(){grecaptcha.ready(function(){grecaptcha.execute(_RECAPTCHA_SITE_KEY,{action:"submit"}).then(function(e){document.querySelector(".g-recaptcha-response").value=e})})}function send_message(){var e={comment_author:$("#comment_author").val(),comment_email:$("#comment_email").val(),comment_url:$("#comment_url").val(),comment_content:$("#comment_content").val()};_RECAPTCHA_STATUS&&(e["g-recaptcha-response"]=$(".g-recaptcha-response").val()),_H.Loading(!0),$.post(_BASE_URL+"hubungi-kami/save",e,function(e){_H.Loading(!1);e=_H.StrToObject(e);_H.Notify(e.status,e.message),"success"==e.status&&$('input[type="text"], input[type="email"], textarea').val(""),renderRecaptcha()})}function post_comments(){var e={comment_author:$("#comment_author").val(),comment_email:$("#comment_email").val(),comment_url:$("#comment_url").val(),comment_content:$("#comment_content").val(),comment_post_id:$("#comment_post_id").val()};_RECAPTCHA_STATUS&&(e["g-recaptcha-response"]=$(".g-recaptcha-response").val()),_H.Loading(!0),$.post(_BASE_URL+"public/post_comments",e,function(e){_H.Loading(!1);e=_H.StrToObject(e);_H.Notify(e.status,e.message),"success"==e.status&&$('input[type="text"], input[type="email"], textarea').val(""),renderRecaptcha()})}function alumni_registration(){_H.Loading(!0);var e=new FormData;e.append("photo",$('input[name="photo"]')[0].files[0]),e.append("full_name",$("#full_name").val()),e.append("gender",$("#gender").val()),e.append("birth_date",$("#birth_date").val()),e.append("end_date",$("#end_date").val()),e.append("identity_number",$("#identity_number").val()),e.append("street_address",$("#street_address").val()),e.append("phone",$("#phone").val()),e.append("mobile_phone",$("#mobile_phone").val()),e.append("email",$("#email").val()),_RECAPTCHA_STATUS&&e.append("g-recaptcha-response",$(".g-recaptcha-response").val()),$.ajax({url:_BASE_URL+"public/alumni/save",type:"POST",data:e,contentType:!1,processData:!1,success:function(e){_H.Loading(!1);e=_H.StrToObject(e);"success"==e.status&&$(document).find("input, textarea").val(""),_H.Notify(e.status,e.message),renderRecaptcha()},error:function(){_H.Loading(!1),renderRecaptcha()}})}function photo_preview(e){_H.Loading(!0),$.post(_BASE_URL+"public/gallery_photos/preview",{id:e},function(e){_H.Loading(!1),0<e.count?$.magnificPopup.open({items:e.items,gallery:{enabled:!0},type:"image"}):_H.Notify("info","Photo tidak ditemukan !")})}function subscribe(){_H.Loading(!0);var e={subscriber:$("#subscriber").val(),csrf_token:$('meta[name="csrf-token"]').attr("content")};$.post(_BASE_URL+"subscribe",e,function(e){_H.Loading(!1);e=_H.StrToObject(e);"token_error"==e.status?window.location.reload(!0):(_H.Notify(e.status,e.message),$("#subscriber").val(""),$('meta[name="csrf-token"]').attr("content",e.csrf_token))})}function vote(){var e={answer_id:$('input[name="answer_id"]:checked').val(),csrf_token:$('meta[name="csrf-token"]').attr("content")};e.answer_id?(_H.Loading(!0),$.post(_BASE_URL+"vote",e,function(e){_H.Loading(!1);e=_H.StrToObject(e);"token_error"==e.status?window.location.reload(!0):(_H.Notify(e.status,e.message),$('meta[name="csrf-token"]').attr("content",e.csrf_token),$("input[name=answer_id]").prop("checked",!1))})):_H.Notify("info","Anda belum memilih jawaban.")}function print_admission_form(){var e={birth_date:$("#birth_date").val(),registration_number:$("#registration_number").val()};_RECAPTCHA_STATUS&&(e["g-recaptcha-response"]=$(".g-recaptcha-response").val()),_H.Loading(!0),$.post(_BASE_URL+"public/print_admission_form/process",e,function(e){_H.Loading(!1);e=_H.StrToObject(e);"success"==e.status?window.open(_BASE_URL+"media_library/students/"+e.file_name,"_self"):(_H.Notify(e.status,e.message),renderRecaptcha())})}function admission_selection_results(){var e={birth_date:$("#birth_date").val(),registration_number:$("#registration_number").val()};_RECAPTCHA_STATUS&&(e["g-recaptcha-response"]=$(".g-recaptcha-response").val()),_H.Loading(!0),$.post(_BASE_URL+"admission-selection-results",e,function(e){_H.Loading(!1);e=_H.StrToObject(e);_H.Notify(e.status,e.message),renderRecaptcha()})}function student_registration(){var e=new FormData;e.append("is_transfer",$("#is_transfer").val()),e.append("admission_type_id",$("#admission_type_id").val()),e.append("full_name",$("#full_name").val()),e.append("gender",$("#gender").val()),e.append("birth_date",$("#birth_date").val()),e.append("district",$("#district").val()),$("#photo").length&&e.append("photo",$('input[name="photo"]')[0].files[0]),$("#first_choice_id").length&&e.append("first_choice_id",$("#first_choice_id").val()),$("#second_choice_id").length&&e.append("second_choice_id",$("#second_choice_id").val()),$("#nisn").length&&e.append("nisn",$("#nisn").val()),$("#nik").length&&e.append("nik",$("#nik").val()),$("#prev_exam_number").length&&e.append("prev_exam_number",$("#prev_exam_number").val()),$("#prev_school_name").length&&e.append("prev_school_name",$("#prev_school_name").val()),$("#prev_school_address").length&&e.append("prev_school_address",$("#prev_school_address").val()),$("#achievement").length&&e.append("achievement",$("#achievement").val()),$("#paud").length&&e.append("paud",$("#paud").val()),$("#tk").length&&e.append("tk",$("#tk").val()),$("#skhun").length&&e.append("skhun",$("#skhun").val()),$("#prev_diploma_number").length&&e.append("prev_diploma_number",$("#prev_diploma_number").val()),$("#hobby").length&&e.append("hobby",$("#hobby").val()),$("#ambition").length&&e.append("ambition",$("#ambition").val()),$("#birth_place").length&&e.append("birth_place",$("#birth_place").val()),$("#religion_id").length&&e.append("religion_id",$("#religion_id").val()),$("#special_need_id").length&&e.append("special_need_id",$("#special_need_id").val()),$("#street_address").length&&e.append("street_address",$("#street_address").val()),$("#rt").length&&e.append("rt",$("#rt").val()),$("#rw").length&&e.append("rw",$("#rw").val()),$("#sub_village").length&&e.append("sub_village",$("#sub_village").val()),$("#village").length&&e.append("village",$("#village").val()),$("#sub_district").length&&e.append("sub_district",$("#sub_district").val()),$("#postal_code").length&&e.append("postal_code",$("#postal_code").val()),$("#residence_id").length&&e.append("residence_id",$("#residence_id").val()),$("#transportation_id").length&&e.append("transportation_id",$("#transportation_id").val()),$("#phone").length&&e.append("phone",$("#phone").val()),$("#mobile_phone").length&&e.append("mobile_phone",$("#mobile_phone").val()),$("#email").length&&e.append("email",$("#email").val()),$("#sktm").length&&e.append("sktm",$("#sktm").val()),$("#kks").length&&e.append("kks",$("#kks").val()),$("#kps").length&&e.append("kps",$("#kps").val()),$("#kip").length&&e.append("kip",$("#kip").val()),$("#kis").length&&e.append("kis",$("#kis").val()),$("#citizenship").length&&e.append("citizenship",$("#citizenship").val()),$("#country").length&&e.append("country",$("#country").val()),$("#father_name").length&&e.append("father_name",$("#father_name").val()),$("#father_birth_year").length&&e.append("father_birth_year",$("#father_birth_year").val()),$("#father_education_id").length&&e.append("father_education_id",$("#father_education_id").val()),$("#father_employment_id").length&&e.append("father_employment_id",$("#father_employment_id").val()),$("#father_monthly_income_id").length&&e.append("father_monthly_income_id",$("#father_monthly_income_id").val()),$("#father_special_need_id").length&&e.append("father_special_need_id",$("#father_special_need_id").val()),$("#mother_name").length&&e.append("mother_name",$("#mother_name").val()),$("#mother_birth_year").length&&e.append("mother_birth_year",$("#mother_birth_year").val()),$("#mother_education_id").length&&e.append("mother_education_id",$("#mother_education_id").val()),$("#mother_employment_id").length&&e.append("mother_employment_id",$("#mother_employment_id").val()),$("#mother_monthly_income_id").length&&e.append("mother_monthly_income_id",$("#mother_monthly_income_id").val()),$("#mother_special_need_id").length&&e.append("mother_special_need_id",$("#mother_special_need_id").val()),$("#guardian_name").length&&e.append("guardian_name",$("#guardian_name").val()),$("#guardian_birth_year").length&&e.append("guardian_birth_year",$("#guardian_birth_year").val()),$("#guardian_education_id").length&&e.append("guardian_education_id",$("#guardian_education_id").val()),$("#guardian_employment_id").length&&e.append("guardian_employment_id",$("#guardian_employment_id").val()),$("#guardian_monthly_income_id").length&&e.append("guardian_monthly_income_id",$("#guardian_monthly_income_id").val()),$("#mileage").length&&e.append("mileage",$("#mileage").val()),$("#traveling_time").length&&e.append("traveling_time",$("#traveling_time").val()),$("#height").length&&e.append("height",$("#height").val()),$("#weight").length&&e.append("weight",$("#weight").val()),$("#sibling_number").length&&e.append("sibling_number",$("#sibling_number").val()),e.append("declaration",$("#declaration").prop("checked")),_RECAPTCHA_STATUS&&e.append("g-recaptcha-response",$(".g-recaptcha-response").val()),_H.Loading(!0),$.ajax({url:_BASE_URL+"student-registration",type:"POST",data:e,contentType:!1,processData:!1,success:function(e){_H.Loading(!1);e=_H.StrToObject(e);_H.Notify(e.status,e.message),"success"==e.status&&window.open(_BASE_URL+"media_library/students/"+e.file_name,"_self"),renderRecaptcha()},error:function(){_H.Loading(!1)}})}_H.StrToObject=function(v){if("object"==typeof v)return v;if("string"!=typeof v)throw console.log(v),"cannot parse non-json-string";return""==v?v:eval("("+v+")")},_H.Notify=function(e,t){switch(e){case"success":toastr.success(t,"Sukses");break;case"info":toastr.info(t,"Info");break;case"warning":toastr.warning(t,"Peringatan");break;default:toastr.error(t,"Terjadi Kesalahan")}},_H.Month=function(e){var t={"01":"Januari","02":"Februari","03":"Maret","04":"April","05":"Mei","06":"Juni","07":"Juli","08":"Agustus","09":"September",10:"Oktober",11:"Nopember",12:"Desember"};return void 0===e?t:t[e]},_H.IsValidDate=function(e){if(!/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(e))return!1;var e=e.split("-"),t=parseInt(e[2],10),n=parseInt(e[1],10),e=parseInt(e[0],10);if(e<1e3||3e3<e||0==n||12<n)return!1;var i=[31,28,31,30,31,30,31,31,30,31,30,31];return(e%400==0||e%100!=0&&e%4==0)&&(i[1]=29),0<t&&t<=i[n-1]},_H.DayName=function(e){_H.IsValidDate(e)||console.error(e+" is not valid date");return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][new Date(e).getDay()]},_H.ToIndonesianDate=function(e){var t,n;if(null!=e)return e=e.split("-"),t=e[0],n=e[1],e[2]+" "+_H.Month(n)+" "+t},_H.FormatBytes=function(e,t){if(0==e)return"0 Byte";var t=t+1||3,n=Math.floor(Math.log(e)/Math.log(1e3));return(e/Math.pow(1e3,n)).toPrecision(t)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},_H.Message=function(e){var t="";switch(e){case"created":t="Data Anda telah disimpan !";break;case"not_created":t="Terjadi kesalahan dalam menyimpan data Anda !";break;case"updated":t="Data Anda telah diperbaharui !";break;case"not_updated":t="Data Anda tidak dapat diperbaharui !";break;case"404":t="Halaman tidak ditemukan !";break;case"deleted":t="Data Anda telah dihapus !";break;case"not_deleted":t="Terjadi kesalahan dalam menghapus data Anda !";break;case"restored":t="Data Anda telah dikembalikan !";break;case"not_restored":t="Terjadi kesalahan dalam mengembalikan data Anda !";break;case"not_selected":t="Tidak ada item terpilih !";break;case"existed":t="Data sudah tersedia !";break;case"empty":t="Data tidak tersedia !";break;case"required":t="Field harus diisi !";break;case"not_numeric":t="ID bukan tipe angka";break;case"keyword_empty":t="Kata kunci pencarian tidak boleh kosong, dan minimal 3 karakter !";break;case"no_changed":t="Tidak ada data yang berubah !";break;case"logged_in":t="Log In berhasil. Halaman akan dialihkan dalam 2 detik. Jika tidak dialihkan, silahkan refresh browser Anda!</a>";break;case"not_logged_in":t="Log In gagal. Nama akun dan/atau kata sandi yang Anda masukan salah.";break;case"forbidden":t="Akses ditolak!";break;case"extracted":t="Tema berhasil diextract";break;case"not_extracted":t="Tema gagal diextract";break;default:t=e}return t},String.prototype.ucwords=function(){return this.toLowerCase().replace(/(^([a-zA-Z\p{M}]))|([ -][a-zA-Z\p{M}])/g,function(e){return e.toUpperCase()})},_H.Loading=function(e){var t=$("body");e?t.append('<div id="loader-wrapper"><div id="loader"></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div></div>'):t.find("#loader-wrapper").remove()},_H.Preview=function(e){var t;e.files&&e.files[0]&&((t=new FileReader).onload=function(e){$("#preview").attr("src",e.target.result)},t.readAsDataURL(e.files[0]))},_H.ExportToExcel=function(e,t,n){n=n||"xlsx",t=t+"-"+(new Date).toISOString().replace(/[\-\:\.]/g,"")+"."+n;_H.ConvertHTML(e,n,t),$("#"+e).remove()},_H.ConvertHTML=function(t,e,n){t=XLSX.utils.table_to_book(document.getElementById(t),{sheet:"Sheet1"}),t=XLSX.write(t,{bookType:e,bookSST:!0,type:"binary"}),n=n||"test."+e;try{saveAs(new Blob([_H.StringToArrayBuffered(t)],{type:"application/octet-stream"}),n)}catch(e){console.log(e,t)}return t},_H.StringToArrayBuffered=function(e){if("undefined"!=typeof ArrayBuffer)for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);else for(t=new Array(e.length),i=0;i!=e.length;++i)t[i]=255&e.charCodeAt(i);return t},_H.SidebarCollapse=function(){$.post(_BASE_URL+"dashboard/sidebar_collapse")},toastr.options={closeButton:!0,debug:!1,newestOnTop:!0,progressBar:!1,positionClass:"toast-top-right",preventDuplicates:!0,onclick:null,showDuration:0,hideDuration:0,timeOut:0,extendedTimeOut:0,showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},$(document).ready(function(){$('a[href="#search_form"]').on("click",function(e){e.preventDefault(),$("#search_form").addClass("open"),$('#search_form > form > input[type="search_form"]').focus()}),$("#search_form").on("click keyup",function(e){e.target!=this&&"close"!=e.target.className&&27!=e.keyCode||$(this).removeClass("open")}),$(document).find("input.date:enabled").datetimepicker({format:"yyyy-mm-dd",weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,startView:2,minView:2,forceParse:0,fontAwesome:!0});function n(e,t,n){var i=e.outerHeight(),o=t.offset().top;n.scrollTop()>=o?(t.height(i),e.addClass("is-sticky")):(e.removeClass("is-sticky"),t.height("auto"))}var t=$("#main-menu"),e=(t.length&&t.smartmenus({mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0}),$("#main-menu-state")),i=(e.length&&(e.change(function(e){this.checked?t.hide().slideDown(250,function(){t.css("display","")}):t.show().slideUp(250,function(){t.css("display","")})}),$(window).bind("beforeunload unload",function(){e[0].checked&&e[0].click()})),$('[data-toggle="sticky-menu"]').each(function(){var e=$(this),t=$("<div>").addClass("sticky-wrapper");e.before(t),e.addClass("sticky"),$(window).on("scroll.sticky-menu resize.sticky-menu",function(){n(e,t,$(this))}),n(e,t,$(window))}),$("#quote").length&&$("#quote").marquee(),$("#return-to-top"));$(window).scroll(function(){50<=$(this).scrollTop()?i.fadeIn(200):i.fadeOut(200)}),i.click(function(){$("body,html").animate({scrollTop:0},500)})});